From 0c6dd6b51624a120791af6172fbf15c8c3c00afb Mon Sep 17 00:00:00 2001 From: EWASJON Date: Thu, 25 Apr 2024 12:44:53 +0200 Subject: [PATCH] Release: 3.4.7 (#22) * 3gpp lpp 18.1.0 * release: 3.4.7 --- CHANGELOG.md | 7 +- CMakeLists.txt | 4 +- README.md | 2 +- asn.1/AUTHORS | 32 + asn.1/CMakeLists.txt | 315 +- asn.1/LICENSE | 23 + asn.1/README | 8 + asn.1/generated/A-GNSS-Error.c | 62 - .../generated/A-GNSS-ProvideAssistanceData.c | 127 - .../generated/A-GNSS-ProvideAssistanceData.h | 63 - asn.1/generated/A-GNSS-ProvideCapabilities.c | 282 - asn.1/generated/A-GNSS-ProvideCapabilities.h | 85 - .../A-GNSS-ProvideLocationInformation.c | 72 - .../A-GNSS-ProvideLocationInformation.h | 55 - .../generated/A-GNSS-RequestAssistanceData.c | 117 - .../generated/A-GNSS-RequestAssistanceData.h | 60 - asn.1/generated/A-GNSS-RequestCapabilities.c | 70 - .../A-GNSS-RequestLocationInformation.c | 50 - asn.1/generated/ARFCN-ValueEUTRA-r14.c | 61 - asn.1/generated/ARFCN-ValueEUTRA-r14.h | 42 - asn.1/generated/ARFCN-ValueEUTRA-v9a0.c | 61 - asn.1/generated/ARFCN-ValueEUTRA-v9a0.h | 42 - asn.1/generated/ARFCN-ValueEUTRA.c | 61 - asn.1/generated/ARFCN-ValueEUTRA.h | 42 - asn.1/generated/ARFCN-ValueNR-r15.c | 61 - asn.1/generated/ARFCN-ValueNR-r15.h | 42 - asn.1/generated/ARFCN-ValueUTRA.c | 61 - asn.1/generated/ARFCN-ValueUTRA.h | 42 - .../AUX-ReferenceStationID-Element-r15.c | 50 - .../generated/AUX-ReferenceStationList-r15.c | 49 - asn.1/generated/Abort-r9-IEs.c | 62 - asn.1/generated/Abort-r9-IEs.h | 52 - asn.1/generated/Abort.c | 206 - asn.1/generated/AccessTypes.c | 86 - asn.1/generated/Acknowledgement.c | 62 - asn.1/generated/Acknowledgement.h | 42 - .../Add-PRSconfigNeighbourElement-r14.c | 52 - asn.1/generated/AdditionalInformation.c | 55 - asn.1/generated/AdditionalPath-r14.c | 92 - asn.1/generated/AdditionalPathList-r14.c | 49 - asn.1/generated/AllowedReportingType.c | 57 - asn.1/generated/AlmanacBDS-AlmanacSet-r12.c | 498 - asn.1/generated/AlmanacECEF-SBAS-AlmanacSet.c | 416 - asn.1/generated/AlmanacGLONASS-AlmanacSet.c | 568 - asn.1/generated/AlmanacKeplerianSet.c | 504 - asn.1/generated/AlmanacMidiAlmanacSet.c | 440 - asn.1/generated/AlmanacNAV-KeplerianSet.c | 450 - asn.1/generated/AlmanacNavIC-AlmanacSet-r16.c | 412 - asn.1/generated/AlmanacReducedKeplerianSet.c | 200 - asn.1/generated/AltitudeInfo.c | 176 - asn.1/generated/AntennaDescription-r15.c | 151 - .../generated/AntennaReferencePointUnc-r15.c | 280 - asn.1/generated/ApplicationID.c | 207 - asn.1/generated/ApplicationID.h | 46 - asn.1/generated/AreaEventParams.c | 245 - asn.1/generated/AreaEventParams.h | 69 - asn.1/generated/AreaEventType.c | 59 - asn.1/generated/AreaId.c | 122 - asn.1/generated/AreaIdList.c | 72 - asn.1/generated/AreaIdList.h | 49 - asn.1/generated/AreaIdSet.c | 49 - asn.1/generated/AreaIdSetType.c | 55 - asn.1/generated/AssistanceDataSupportList.c | 60 - asn.1/generated/Aux-ARP-Unc-r15.c | 202 - asn.1/generated/Aux-ARP-Unc-r15.h | 47 - asn.1/generated/AuxiliaryStationElement-r15.c | 182 - asn.1/generated/AuxiliaryStationList-r15.c | 49 - asn.1/generated/BDS-ClockModel-r12.c | 280 - asn.1/generated/BDS-ClockModel-r12.h | 49 - asn.1/generated/BDS-ClockModel2-r16.c | 280 - asn.1/generated/BDS-ClockModel2-r16.h | 49 - .../BDS-DifferentialCorrections-r12.c | 90 - .../BDS-DifferentialCorrectionsReq-r12.c | 50 - .../BDS-DifferentialCorrectionsSupport-r12.c | 50 - asn.1/generated/BDS-GridModelParameter-r12.c | 90 - asn.1/generated/BDS-GridModelReq-r12.c | 35 - asn.1/generated/BDS-GridModelSupport-r12.c | 35 - asn.1/generated/BDS-SgnTypeElement-r12.c | 62 - asn.1/generated/BDS-SgnTypeList-r12.c | 49 - asn.1/generated/BIT_STRING.c | 652 -- asn.1/generated/BIT_STRING.h | 46 - asn.1/generated/BOOLEAN.c | 434 - asn.1/generated/BOOLEAN.h | 43 - asn.1/generated/BT-Error-r13.c | 62 - .../BT-LocationServerErrorCauses-r13.c | 96 - .../BT-LocationServerErrorCauses-r13.h | 53 - asn.1/generated/BT-MeasurementElement-r13.c | 128 - .../generated/BT-MeasurementInformation-r13.c | 62 - .../generated/BT-MeasurementInformation-r13.h | 51 - asn.1/generated/BT-MeasurementList-r13.c | 49 - asn.1/generated/BT-ProvideCapabilities-r13.c | 243 - asn.1/generated/BT-ProvideCapabilities-r13.h | 72 - .../BT-ProvideLocationInformation-r13.c | 62 - .../BT-ProvideLocationInformation-r13.h | 52 - asn.1/generated/BT-RequestCapabilities-r13.c | 35 - .../BT-RequestLocationInformation-r13.c | 86 - .../BT-RequestLocationInformation-r13.h | 49 - .../BT-TargetDeviceErrorCauses-r13.c | 112 - asn.1/generated/BadSignalElement.c | 62 - asn.1/generated/BasicProtectionParams.c | 167 - asn.1/generated/BatchRepCap.c | 142 - asn.1/generated/BatchRepCap.h | 48 - asn.1/generated/BatchRepConditions.c | 132 - asn.1/generated/BatchRepType.c | 82 - asn.1/generated/CDMAAreaId.c | 162 - asn.1/generated/CDMAAreaId.h | 46 - asn.1/generated/CNAV-ClockModel.c | 642 -- asn.1/generated/CNAV-ClockModel.h | 58 - asn.1/generated/CPICH-Ec-N0.c | 61 - asn.1/generated/CPICH-Ec-N0.h | 42 - asn.1/generated/CPICH-RSCP.c | 61 - asn.1/generated/CPICH-RSCP.h | 42 - asn.1/generated/CarrierFreq-NB-r14.c | 62 - asn.1/generated/CauseCode.c | 57 - asn.1/generated/CdmaCellInformation.c | 360 - asn.1/generated/CellGlobalIdEUTRA-AndUTRA.c | 445 - asn.1/generated/CellGlobalIdEUTRA.c | 60 - asn.1/generated/CellGlobalIdGERAN.c | 401 - asn.1/generated/CellIdentity.c | 67 - asn.1/generated/CellIdentity.h | 42 - asn.1/generated/CellInfo.c | 82 - asn.1/generated/CellMeasuredResults.c | 306 - asn.1/generated/CellMeasuredResultsList.c | 49 - asn.1/generated/CellParametersID.c | 61 - asn.1/generated/CellParametersID.h | 42 - asn.1/generated/ChipRate.c | 57 - asn.1/generated/CircularArea.c | 172 - asn.1/generated/CircularArea.h | 44 - asn.1/generated/CommonIEsAbort.c | 104 - asn.1/generated/CommonIEsError.c | 106 - .../CommonIEsProvideAssistanceData.c | 152 - .../generated/CommonIEsProvideCapabilities.c | 107 - .../generated/CommonIEsProvideCapabilities.h | 57 - .../CommonIEsProvideLocationInformation.c | 247 - .../CommonIEsProvideLocationInformation.h | 78 - .../CommonIEsRequestAssistanceData.c | 172 - .../CommonIEsRequestAssistanceData.h | 67 - .../generated/CommonIEsRequestCapabilities.c | 97 - .../generated/CommonIEsRequestCapabilities.h | 55 - .../CommonIEsRequestLocationInformation.c | 232 - .../CommonIEsRequestLocationInformation.h | 82 - asn.1/generated/Coordinate.c | 176 - asn.1/generated/DBDS-CorrectionElement-r12.c | 170 - asn.1/generated/DBDS-CorrectionList-r12.c | 49 - asn.1/generated/DGANSS-Sig-Id-Req.c | 67 - asn.1/generated/DGANSS-Sig-Id-Req.h | 42 - asn.1/generated/DGNSS-CorrectionsElement.c | 298 - asn.1/generated/DGNSS-SatList.c | 49 - asn.1/generated/DGNSS-SgnTypeElement.c | 100 - asn.1/generated/DGNSS-SgnTypeList.c | 49 - asn.1/generated/DL-PRS-BeamInfoElement-r16.c | 122 - asn.1/generated/DL-PRS-BeamInfoElement-r16.h | 45 - .../DL-PRS-BeamInfoResourceSet-r16.c | 49 - asn.1/generated/DL-PRS-BeamInfoSet-r16.c | 49 - asn.1/generated/DL-PRS-IdInfo-r16.c | 145 - asn.1/generated/DL-PRS-IdInfo-r16.h | 56 - asn.1/generated/DL-PRS-QCL-Info-r16.c | 256 - .../DL-PRS-Resource-ARP-Element-r16.c | 52 - .../DL-PRS-Resource-ARP-Element-r16.h | 49 - .../DL-PRS-ResourceSets-TRP-Element-r16.c | 135 - .../DL-PRS-ResourceSets-TRP-Element-r16.h | 59 - .../DL-Selected-PRS-ResourceSetIndex-r16.c | 165 - .../DL-Selected-PRS-ResourceSetIndex-r16.h | 54 - .../DL-SelectedPRS-ResourceIndex-r16.c | 80 - asn.1/generated/Delta-Height-r16.c | 122 - asn.1/generated/Delta-Height-r16.h | 45 - asn.1/generated/Delta-Latitude-r16.c | 122 - asn.1/generated/Delta-Longitude-r16.c | 122 - asn.1/generated/DeltaTime-r15.c | 122 - asn.1/generated/Displacement-r15.c | 476 - asn.1/generated/Displacement-r15.h | 67 - asn.1/generated/DisplacementInfoList-r15.c | 49 - .../DisplacementInfoListElement-r15.c | 62 - asn.1/generated/DisplacementTimeStamp-r15.c | 112 - asn.1/generated/ECGI.c | 312 - asn.1/generated/ECID-Error.c | 62 - .../ECID-LocationServerErrorCauses.c | 96 - asn.1/generated/ECID-ProvideCapabilities.c | 394 - .../ECID-ProvideLocationInformation.c | 62 - asn.1/generated/ECID-RequestCapabilities.c | 35 - .../ECID-RequestLocationInformation.c | 86 - .../ECID-SignalMeasurementInformation.c | 62 - .../generated/ECID-TargetDeviceErrorCauses.c | 197 - asn.1/generated/EPDU-Body.c | 31 - asn.1/generated/EPDU-Body.h | 41 - asn.1/generated/EPDU-ID.c | 61 - asn.1/generated/EPDU-ID.h | 42 - asn.1/generated/EPDU-Identifier.c | 62 - asn.1/generated/EPDU-Name.c | 76 - asn.1/generated/EPDU-Name.h | 42 - asn.1/generated/EPDU-Sequence.c | 49 - asn.1/generated/EPDU.c | 60 - asn.1/generated/EarlyFixReport-r12.c | 53 - asn.1/generated/Ellipsoid-Point.c | 176 - .../Ellipsoid-PointWithUncertaintyCircle.c | 216 - asn.1/generated/EllipsoidArc.c | 376 - asn.1/generated/EllipsoidPointWithAltitude.c | 272 - ...PointWithAltitudeAndUncertaintyEllipsoid.c | 472 - .../EllipsoidPointWithUncertaintyEllipse.c | 336 - asn.1/generated/EllipticalArea.c | 332 - asn.1/generated/EllipticalArea.h | 48 - asn.1/generated/EncodingType.c | 57 - asn.1/generated/Environment.c | 57 - .../EqualIntegerAmbiguityLevel-r16.c | 62 - asn.1/generated/Error-r9-IEs.c | 62 - asn.1/generated/Error-r9-IEs.h | 52 - asn.1/generated/Error.c | 90 - asn.1/generated/EventTriggerCapabilities.c | 172 - asn.1/generated/EventTriggerCapabilities.h | 48 - asn.1/generated/ExtendedEphCheck.c | 60 - asn.1/generated/ExtendedEphemeris.c | 80 - asn.1/generated/FKP-Gradients-Element-r15.c | 256 - asn.1/generated/FKP-Gradients-List-r15.c | 49 - asn.1/generated/FQDN.h | 42 - asn.1/generated/FormatIndicator.c | 67 - asn.1/generated/FrequencyInfo.c | 104 - asn.1/generated/FrequencyInfoFDD.c | 62 - asn.1/generated/FrequencyInfoTDD.c | 50 - asn.1/generated/GANSSPositionMethod.c | 148 - asn.1/generated/GANSSPositionMethods.c | 49 - asn.1/generated/GANSSPositioningMethodTypes.c | 70 - asn.1/generated/GANSSSignals.c | 67 - asn.1/generated/GANSSSignalsDescription.c | 90 - asn.1/generated/GANSSextEphTime.c | 120 - asn.1/generated/GANSSsignalsInfo.c | 49 - asn.1/generated/GLO-RTK-BiasInformation-r15.c | 258 - asn.1/generated/GLO-RTK-BiasInformation-r15.h | 51 - .../GLO-RTK-BiasInformationReq-r15.c | 52 - .../GLO-RTK-BiasInformationSupport-r15.c | 35 - asn.1/generated/GLONASS-ClockModel.c | 162 - .../generated/GNSS-AcquisitionAssistElement.c | 446 - asn.1/generated/GNSS-AcquisitionAssistList.c | 49 - asn.1/generated/GNSS-AcquisitionAssistance.c | 102 - .../generated/GNSS-AcquisitionAssistanceReq.c | 50 - .../GNSS-AcquisitionAssistanceSupport.c | 150 - asn.1/generated/GNSS-Almanac.c | 432 - asn.1/generated/GNSS-Almanac.h | 64 - asn.1/generated/GNSS-AlmanacElement.c | 122 - asn.1/generated/GNSS-AlmanacList.c | 49 - asn.1/generated/GNSS-AlmanacReq.c | 82 - asn.1/generated/GNSS-AlmanacSupport.c | 88 - asn.1/generated/GNSS-AuxiliaryInformation.c | 115 - .../generated/GNSS-AuxiliaryInformationReq.c | 35 - .../GNSS-AuxiliaryInformationSupport.c | 35 - asn.1/generated/GNSS-BadSignalList.c | 49 - asn.1/generated/GNSS-ClockModel.c | 122 - asn.1/generated/GNSS-CommonAssistData.c | 212 - asn.1/generated/GNSS-CommonAssistData.h | 80 - asn.1/generated/GNSS-CommonAssistDataReq.c | 202 - asn.1/generated/GNSS-CommonAssistDataReq.h | 77 - .../GNSS-CommonAssistanceDataSupport.c | 147 - .../GNSS-CommonAssistanceDataSupport.h | 69 - asn.1/generated/GNSS-DataBitAssistance.c | 132 - asn.1/generated/GNSS-DataBitAssistanceReq.c | 182 - .../generated/GNSS-DataBitAssistanceSupport.c | 35 - asn.1/generated/GNSS-DataBitsReqSatElement.c | 50 - asn.1/generated/GNSS-DataBitsReqSatList.c | 49 - asn.1/generated/GNSS-DataBitsSatElement.c | 60 - asn.1/generated/GNSS-DataBitsSatList.c | 49 - asn.1/generated/GNSS-DataBitsSgnElement.c | 96 - asn.1/generated/GNSS-DataBitsSgnList.c | 49 - .../generated/GNSS-DifferentialCorrections.c | 90 - .../GNSS-DifferentialCorrectionsReq.c | 60 - .../GNSS-DifferentialCorrectionsSupport.c | 60 - .../GNSS-EarthOrientationParameters.c | 320 - .../GNSS-EarthOrientationParametersReq.c | 35 - .../GNSS-EarthOrientationParametersSupport.c | 35 - asn.1/generated/GNSS-FrequencyID-r15.c | 80 - asn.1/generated/GNSS-GenericAssistData.c | 49 - .../generated/GNSS-GenericAssistDataElement.c | 447 - .../generated/GNSS-GenericAssistDataElement.h | 141 - asn.1/generated/GNSS-GenericAssistDataReq.c | 49 - .../GNSS-GenericAssistDataReqElement.c | 447 - .../GNSS-GenericAssistDataReqElement.h | 141 - .../GNSS-GenericAssistDataSupportElement.c | 447 - .../GNSS-GenericAssistDataSupportElement.h | 141 - .../GNSS-GenericAssistanceDataSupport.c | 49 - asn.1/generated/GNSS-ID-BDS-SatElement-r16.c | 90 - asn.1/generated/GNSS-ID-BDS-r16.c | 49 - asn.1/generated/GNSS-ID-Bitmap.c | 86 - asn.1/generated/GNSS-ID-GLONASS-SatElement.c | 102 - asn.1/generated/GNSS-ID-GLONASS.c | 49 - asn.1/generated/GNSS-ID-GPS-SatElement.c | 60 - asn.1/generated/GNSS-ID-GPS.c | 49 - asn.1/generated/GNSS-ID.c | 108 - asn.1/generated/GNSS-IonosphericModel.c | 117 - asn.1/generated/GNSS-IonosphericModel.h | 60 - asn.1/generated/GNSS-IonosphericModelReq.c | 153 - asn.1/generated/GNSS-IonosphericModelReq.h | 52 - .../generated/GNSS-IonosphericModelSupport.c | 86 - asn.1/generated/GNSS-Link-Combinations-r15.c | 60 - .../GNSS-Link-CombinationsList-r15.c | 49 - asn.1/generated/GNSS-LocationInformation.c | 60 - asn.1/generated/GNSS-LocationInformation.h | 46 - asn.1/generated/GNSS-MeasurementForOneGNSS.c | 60 - asn.1/generated/GNSS-MeasurementList.c | 49 - asn.1/generated/GNSS-NavListInfo-r15.c | 49 - .../generated/GNSS-NavModelSatelliteElement.c | 255 - asn.1/generated/GNSS-NavModelSatelliteList.c | 49 - asn.1/generated/GNSS-NavigationModel.c | 90 - asn.1/generated/GNSS-NavigationModelReq.c | 62 - asn.1/generated/GNSS-NavigationModelSupport.c | 134 - asn.1/generated/GNSS-NetworkID-r15.c | 80 - asn.1/generated/GNSS-ObservationList-r15.c | 49 - asn.1/generated/GNSS-OrbitModel.c | 122 - asn.1/generated/GNSS-PeriodicAssistData-r15.c | 207 - asn.1/generated/GNSS-PeriodicAssistData-r15.h | 65 - .../GNSS-PeriodicAssistDataReq-r15.c | 207 - .../GNSS-PeriodicAssistDataReq-r15.h | 65 - .../generated/GNSS-PeriodicControlParam-r15.c | 120 - .../generated/GNSS-PositioningInstructions.c | 191 - .../generated/GNSS-PositioningInstructions.h | 62 - .../GNSS-RTK-AuxiliaryStationData-r15.c | 82 - .../GNSS-RTK-AuxiliaryStationDataReq-r15.c | 52 - ...GNSS-RTK-AuxiliaryStationDataSupport-r15.c | 35 - .../GNSS-RTK-CommonObservationInfo-r15.c | 222 - asn.1/generated/GNSS-RTK-FKP-Gradients-r15.c | 92 - .../generated/GNSS-RTK-FKP-GradientsReq-r15.c | 62 - .../generated/GNSS-RTK-FKP-GradientsReq-r15.h | 52 - .../GNSS-RTK-FKP-GradientsSupport-r15.c | 50 - .../GNSS-RTK-MAC-CorrectionDifferences-r15.c | 102 - ...NSS-RTK-MAC-CorrectionDifferencesReq-r15.c | 72 - ...RTK-MAC-CorrectionDifferencesSupport-r15.c | 50 - asn.1/generated/GNSS-RTK-Observations-r15.c | 60 - .../generated/GNSS-RTK-ObservationsReq-r15.c | 92 - .../GNSS-RTK-ObservationsSupport-r15.c | 50 - .../GNSS-RTK-ReferenceStationInfo-r15.c | 371 - .../GNSS-RTK-ReferenceStationInfoReq-r15.c | 82 - ...GNSS-RTK-ReferenceStationInfoSupport-r15.c | 35 - asn.1/generated/GNSS-RTK-Residuals-r15.c | 132 - asn.1/generated/GNSS-RTK-ResidualsReq-r15.c | 62 - asn.1/generated/GNSS-RTK-ResidualsReq-r15.h | 52 - .../generated/GNSS-RTK-ResidualsSupport-r15.c | 50 - .../GNSS-RTK-SatelliteDataElement-r15.c | 182 - .../GNSS-RTK-SatelliteSignalDataElement-r15.c | 298 - .../GNSS-RTK-SatelliteSignalDataList-r15.c | 49 - asn.1/generated/GNSS-RealTimeIntegrity.c | 50 - asn.1/generated/GNSS-RealTimeIntegrityReq.c | 35 - .../generated/GNSS-RealTimeIntegritySupport.c | 35 - asn.1/generated/GNSS-ReferenceLocation.c | 50 - asn.1/generated/GNSS-ReferenceLocationReq.c | 35 - .../generated/GNSS-ReferenceLocationSupport.c | 35 - asn.1/generated/GNSS-ReferenceStationID-r15.c | 137 - asn.1/generated/GNSS-ReferenceTime.c | 175 - .../generated/GNSS-ReferenceTimeForOneCell.c | 146 - asn.1/generated/GNSS-ReferenceTimeReq.c | 145 - asn.1/generated/GNSS-ReferenceTimeSupport.c | 62 - .../GNSS-SSR-ArrayOfCorrectionPoints-r16.c | 328 - .../generated/GNSS-SSR-ClockCorrections-r15.c | 140 - .../generated/GNSS-SSR-ClockCorrections-r15.h | 49 - .../GNSS-SSR-ClockCorrectionsReq-r15.c | 52 - .../GNSS-SSR-ClockCorrectionsReq-r15.h | 49 - .../GNSS-SSR-ClockCorrectionsSupport-r15.c | 35 - .../GNSS-SSR-ClockCorrectionsSupport-r15.h | 41 - asn.1/generated/GNSS-SSR-CodeBias-r15.c | 140 - asn.1/generated/GNSS-SSR-CodeBiasReq-r15.c | 62 - asn.1/generated/GNSS-SSR-CodeBiasReq-r15.h | 51 - .../generated/GNSS-SSR-CodeBiasSupport-r15.c | 50 - .../generated/GNSS-SSR-CodeBiasSupport-r15.h | 44 - .../generated/GNSS-SSR-CorrectionPoints-r16.c | 144 - .../GNSS-SSR-CorrectionPointsReq-r16.c | 82 - .../GNSS-SSR-GriddedCorrection-r16.c | 228 - .../GNSS-SSR-GriddedCorrection-r16.h | 52 - .../GNSS-SSR-GriddedCorrectionReq-r16.c | 35 - .../GNSS-SSR-GriddedCorrectionReq-r16.h | 41 - .../GNSS-SSR-GriddedCorrectionSupport-r16.c | 35 - .../GNSS-SSR-GriddedCorrectionSupport-r16.h | 41 - .../GNSS-SSR-ListOfCorrectionPoints-r16.c | 203 - .../generated/GNSS-SSR-OrbitCorrections-r15.c | 198 - .../GNSS-SSR-OrbitCorrectionsReq-r15.c | 52 - .../GNSS-SSR-OrbitCorrectionsReq-r15.h | 49 - .../GNSS-SSR-OrbitCorrectionsSupport-r15.c | 35 - .../GNSS-SSR-OrbitCorrectionsSupport-r15.h | 41 - asn.1/generated/GNSS-SSR-PhaseBias-r16.c | 140 - asn.1/generated/GNSS-SSR-PhaseBiasReq-r16.c | 62 - asn.1/generated/GNSS-SSR-PhaseBiasReq-r16.h | 51 - .../generated/GNSS-SSR-PhaseBiasSupport-r16.c | 50 - .../generated/GNSS-SSR-PhaseBiasSupport-r16.h | 44 - .../generated/GNSS-SSR-STEC-Correction-r16.c | 180 - .../generated/GNSS-SSR-STEC-Correction-r16.h | 50 - .../GNSS-SSR-STEC-CorrectionReq-r16.c | 35 - .../GNSS-SSR-STEC-CorrectionReq-r16.h | 41 - .../GNSS-SSR-STEC-CorrectionSupport-r16.c | 35 - .../GNSS-SSR-STEC-CorrectionSupport-r16.h | 41 - asn.1/generated/GNSS-SSR-URA-Req-r16.c | 35 - asn.1/generated/GNSS-SSR-URA-Support-r16.c | 35 - asn.1/generated/GNSS-SSR-URA-r16.c | 140 - asn.1/generated/GNSS-SatMeasElement.c | 615 -- asn.1/generated/GNSS-SatMeasList.c | 49 - asn.1/generated/GNSS-SgnMeasElement.c | 102 - asn.1/generated/GNSS-SgnMeasList.c | 49 - asn.1/generated/GNSS-SignalID.c | 167 - asn.1/generated/GNSS-SignalIDs.c | 179 - .../GNSS-SignalMeasurementInformation.c | 60 - asn.1/generated/GNSS-SubNetworkID-r15.c | 80 - asn.1/generated/GNSS-SupportElement.c | 274 - asn.1/generated/GNSS-SupportElement.h | 86 - asn.1/generated/GNSS-SupportList.c | 49 - asn.1/generated/GNSS-SystemTime.c | 228 - asn.1/generated/GNSS-SystemTime.h | 57 - .../generated/GNSS-TargetDeviceErrorCauses.c | 134 - .../generated/GNSS-TargetDeviceErrorCauses.h | 60 - asn.1/generated/GNSS-TimeModelElement.c | 322 - asn.1/generated/GNSS-TimeModelElement.h | 50 - asn.1/generated/GNSS-TimeModelElementReq.c | 90 - asn.1/generated/GNSS-TimeModelList.c | 49 - asn.1/generated/GNSS-TimeModelListReq.c | 49 - asn.1/generated/GNSS-TimeModelListSupport.c | 35 - asn.1/generated/GNSS-UTC-Model.c | 92 - asn.1/generated/GNSS-UTC-ModelReq.c | 82 - asn.1/generated/GNSS-UTC-ModelSupport.c | 88 - asn.1/generated/GNSSPosTechnology.c | 100 - asn.1/generated/GPS-TOW-Assist.c | 49 - asn.1/generated/GPS-TOW-AssistElement.c | 240 - asn.1/generated/GSMAreaId.c | 202 - asn.1/generated/GSMAreaId.h | 47 - asn.1/generated/GanssAdditionalDataChoices.c | 202 - asn.1/generated/GanssAdditionalDataChoices.h | 47 - asn.1/generated/GanssDataBits.c | 90 - asn.1/generated/GanssExtendedEphCheck.c | 60 - asn.1/generated/GanssNavigationModelData.c | 172 - asn.1/generated/GanssReqGenericData.c | 284 - asn.1/generated/GanssReqGenericData.h | 74 - .../GanssRequestedCommonAssistanceDataList.c | 90 - .../GanssRequestedGenericAssistanceDataList.c | 49 - asn.1/generated/GeneralizedTime.c | 829 -- asn.1/generated/GeneralizedTime.h | 78 - asn.1/generated/GeoAreaIndex.c | 61 - asn.1/generated/GeoAreaIndex.h | 42 - asn.1/generated/GeoAreaMappingList.c | 49 - asn.1/generated/GeoAreaShapesSupported.c | 60 - asn.1/generated/GeographicTargetArea.c | 72 - asn.1/generated/GeographicTargetAreaList.c | 49 - ...eric-Corrections-Differences-Element-r15.c | 256 - ...-Ionospheric-Corrections-Differences-r15.c | 49 - asn.1/generated/GridElement-r16.c | 62 - asn.1/generated/GridElement-r16.h | 52 - asn.1/generated/GridIonElement-r12.c | 160 - asn.1/generated/GridIonList-r12.c | 49 - asn.1/generated/GridList-r16.c | 49 - asn.1/generated/GsmCellInformation.c | 252 - asn.1/generated/HRPDAreaId.c | 86 - ...tWithAltitudeAndUncertaintyEllipsoid-r15.c | 400 - ...EllipsoidPointWithUncertaintyEllipse-r15.c | 280 - asn.1/generated/HistoricReporting.c | 62 - asn.1/generated/Horandveruncert.c | 316 - asn.1/generated/Horandvervel.c | 224 - asn.1/generated/HorizontalAccuracy.c | 120 - asn.1/generated/HorizontalAccuracyExt-r15.c | 120 - asn.1/generated/HorizontalVelocity.c | 120 - .../HorizontalVelocityWithUncertainty.c | 160 - .../HorizontalWithVerticalVelocity.c | 216 - ...zontalWithVerticalVelocityAndUncertainty.c | 296 - asn.1/generated/Horvel.c | 132 - asn.1/generated/Horveluncert.c | 178 - asn.1/generated/HrpdCellInformation.c | 248 - asn.1/generated/IA5String.c | 93 - asn.1/generated/IA5String.h | 38 - asn.1/generated/INTEGER.c | 1339 --- asn.1/generated/INTEGER.h | 104 - asn.1/generated/IPAddress.c | 124 - asn.1/generated/Initiator.c | 55 - asn.1/generated/KeyIdentity.c | 67 - asn.1/generated/KeyIdentity.h | 42 - asn.1/generated/KeyIdentity4.c | 67 - asn.1/generated/KeyIdentity4.h | 42 - .../generated/KlobucharModel2Parameter-r16.c | 400 - asn.1/generated/KlobucharModelParameter.c | 406 - .../LCS-GCS-Translation-Parameter-r16.c | 160 - .../LCS-GCS-Translation-Parameter-r16.h | 46 - asn.1/generated/LPP-Message.c | 92 - asn.1/generated/LPP-Message.h | 53 - asn.1/generated/LPP-MessageBody.c | 284 - asn.1/generated/LPP-TransactionID.c | 60 - asn.1/generated/LTEAreaId.c | 168 - asn.1/generated/LTEAreaId.h | 47 - asn.1/generated/LocationCoordinateTypes.c | 177 - asn.1/generated/LocationCoordinateTypes.h | 57 - asn.1/generated/LocationCoordinates.c | 132 - asn.1/generated/LocationCoordinates.h | 79 - asn.1/generated/LocationData.c | 164 - asn.1/generated/LocationDataLCI-r14.c | 364 - asn.1/generated/LocationDataLCI-r14.h | 50 - asn.1/generated/LocationEncodingDescriptor.c | 55 - asn.1/generated/LocationError.c | 50 - asn.1/generated/LocationFailureCause.c | 59 - asn.1/generated/LocationId.c | 60 - asn.1/generated/LocationIdData.c | 72 - asn.1/generated/LocationInformationType.c | 59 - asn.1/generated/LocationSource-r13.c | 67 - asn.1/generated/LocationSource-r13.h | 53 - asn.1/generated/LocationUncertainty-r16.c | 200 - asn.1/generated/LocationUncertainty-r16.h | 43 - asn.1/generated/LteCellInformation.c | 142 - asn.1/generated/LteCellInformation.h | 61 - asn.1/generated/MAC.c | 67 - asn.1/generated/MAC.h | 42 - .../generated/MBS-AcquisitionAssistance-r14.c | 224 - asn.1/generated/MBS-AlmanacAssistance-r14.c | 260 - .../generated/MBS-AssistanceDataElement-r14.c | 62 - .../generated/MBS-AssistanceDataElement-r14.h | 52 - asn.1/generated/MBS-AssistanceDataList-r14.c | 49 - .../MBS-AssistanceDataSupportList-r14.c | 60 - asn.1/generated/MBS-BeaconMeasElement-r13.c | 247 - asn.1/generated/MBS-BeaconMeasList-r13.c | 49 - asn.1/generated/MCC-MNC-Digit.c | 61 - asn.1/generated/MCC-MNC-Digit.h | 42 - asn.1/generated/MCC.c | 49 - asn.1/generated/MNC.c | 49 - asn.1/generated/Makefile.am.libasncodec | 1725 --- asn.1/generated/MeasQuantityResults-r16.c | 122 - asn.1/generated/MeasQuantityResults-r16.h | 41 - asn.1/generated/MeasResultEUTRA.c | 180 - asn.1/generated/MeasResultListEUTRA.c | 49 - asn.1/generated/MeasuredResults.c | 72 - asn.1/generated/MeasuredResults.h | 50 - asn.1/generated/MeasuredResultsElement.c | 629 -- asn.1/generated/MeasuredResultsElement.h | 82 - asn.1/generated/MeasuredResultsList.c | 49 - asn.1/generated/MeasurementReferenceTime.c | 1290 --- asn.1/generated/MessageSizeLimitNB-r14.c | 82 - asn.1/generated/MotionTimeSource-r15.c | 106 - asn.1/generated/MultipleLocationIds.c | 49 - asn.1/generated/MutingPattern-r16.c | 318 - asn.1/generated/MutingPattern-r16.h | 66 - asn.1/generated/NAV-ClockModel.c | 240 - asn.1/generated/NCGI-r15.c | 312 - asn.1/generated/NMR.c | 49 - asn.1/generated/NMRelement.c | 160 - asn.1/generated/NPRS-Info-r14.c | 1633 --- asn.1/generated/NR-AdditionalPath-r16.c | 92 - asn.1/generated/NR-AdditionalPath-r16.h | 51 - asn.1/generated/NR-AdditionalPathList-r16.c | 49 - ...-DL-AoD-AdditionalMeasurementElement-r16.c | 152 - ...-DL-AoD-AdditionalMeasurementElement-r16.h | 51 - .../NR-DL-AoD-AdditionalMeasurements-r16.c | 49 - asn.1/generated/NR-DL-AoD-Error-r16.c | 62 - .../NR-DL-AoD-LocationInformation-r16.c | 106 - .../NR-DL-AoD-LocationServerErrorCauses-r16.c | 102 - asn.1/generated/NR-DL-AoD-MeasElement-r16.c | 182 - asn.1/generated/NR-DL-AoD-MeasElement-r16.h | 62 - asn.1/generated/NR-DL-AoD-MeasList-r16.c | 49 - .../NR-DL-AoD-ProvideAssistanceData-r16.c | 155 - .../NR-DL-AoD-ProvideAssistanceData-r16.h | 65 - .../NR-DL-AoD-ProvideCapabilities-r16.c | 116 - .../NR-DL-AoD-ProvideCapabilities-r16.h | 59 - ...NR-DL-AoD-ProvideLocationInformation-r16.c | 72 - ...NR-DL-AoD-ProvideLocationInformation-r16.h | 55 - asn.1/generated/NR-DL-AoD-ReportConfig-r16.c | 82 - asn.1/generated/NR-DL-AoD-ReportConfig-r16.h | 40 - .../NR-DL-AoD-RequestAssistanceData-r16.c | 98 - .../NR-DL-AoD-RequestAssistanceData-r16.h | 57 - .../NR-DL-AoD-RequestCapabilities-r16.c | 35 - ...NR-DL-AoD-RequestLocationInformation-r16.c | 60 - ...NR-DL-AoD-RequestLocationInformation-r16.h | 46 - ...-DL-AoD-SignalMeasurementInformation-r16.c | 50 - .../NR-DL-AoD-TargetDeviceErrorCauses-r16.c | 118 - .../NR-DL-AoD-TargetDeviceErrorCauses-r16.h | 60 - .../generated/NR-DL-PRS-AssistanceData-r16.c | 218 - .../generated/NR-DL-PRS-AssistanceData-r16.h | 67 - .../NR-DL-PRS-AssistanceDataPerFreq-r16.c | 135 - .../NR-DL-PRS-AssistanceDataPerTRP-r16.c | 142 - .../NR-DL-PRS-AssistanceDataPerTRP-r16.h | 54 - asn.1/generated/NR-DL-PRS-BeamInfo-r16.c | 72 - asn.1/generated/NR-DL-PRS-BeamInfo-r16.h | 53 - .../NR-DL-PRS-BeamInfoPerFreqLayer-r16.c | 49 - .../NR-DL-PRS-BeamInfoPerFreqLayer-r16.h | 44 - asn.1/generated/NR-DL-PRS-Config-r16.c | 250 - asn.1/generated/NR-DL-PRS-Config-r16.h | 64 - .../generated/NR-DL-PRS-MeasCapability-r16.c | 375 - .../generated/NR-DL-PRS-MeasCapability-r16.h | 64 - ...eriodicity-and-ResourceSetSlotOffset-r16.c | 2938 ----- .../NR-DL-PRS-PositioningFrequencyLayer-r16.c | 312 - asn.1/generated/NR-DL-PRS-Resource-r16.c | 386 - asn.1/generated/NR-DL-PRS-Resource-r16.h | 77 - asn.1/generated/NR-DL-PRS-ResourceID-r16.c | 61 - asn.1/generated/NR-DL-PRS-ResourceID-r16.h | 42 - asn.1/generated/NR-DL-PRS-ResourceSet-r16.c | 592 - asn.1/generated/NR-DL-PRS-ResourceSet-r16.h | 132 - asn.1/generated/NR-DL-PRS-ResourceSetID-r16.c | 61 - asn.1/generated/NR-DL-PRS-ResourceSetID-r16.h | 42 - ...DL-TDOA-AdditionalMeasurementElement-r16.c | 162 - ...DL-TDOA-AdditionalMeasurementElement-r16.h | 58 - .../NR-DL-TDOA-AdditionalMeasurements-r16.c | 49 - asn.1/generated/NR-DL-TDOA-Error-r16.c | 62 - .../NR-DL-TDOA-LocationInformation-r16.c | 106 - ...NR-DL-TDOA-LocationServerErrorCauses-r16.c | 102 - asn.1/generated/NR-DL-TDOA-MeasElement-r16.c | 192 - asn.1/generated/NR-DL-TDOA-MeasElement-r16.h | 65 - asn.1/generated/NR-DL-TDOA-MeasList-r16.c | 49 - .../NR-DL-TDOA-ProvideAssistanceData-r16.c | 155 - .../NR-DL-TDOA-ProvideAssistanceData-r16.h | 65 - .../NR-DL-TDOA-ProvideCapabilities-r16.c | 216 - .../NR-DL-TDOA-ProvideCapabilities-r16.h | 69 - ...R-DL-TDOA-ProvideLocationInformation-r16.c | 72 - ...R-DL-TDOA-ProvideLocationInformation-r16.h | 55 - asn.1/generated/NR-DL-TDOA-ReportConfig-r16.c | 162 - asn.1/generated/NR-DL-TDOA-ReportConfig-r16.h | 42 - .../NR-DL-TDOA-RequestAssistanceData-r16.c | 98 - .../NR-DL-TDOA-RequestAssistanceData-r16.h | 57 - .../NR-DL-TDOA-RequestCapabilities-r16.c | 35 - ...R-DL-TDOA-RequestLocationInformation-r16.c | 216 - ...R-DL-TDOA-RequestLocationInformation-r16.h | 69 - ...DL-TDOA-SignalMeasurementInformation-r16.c | 60 - ...DL-TDOA-SignalMeasurementInformation-r16.h | 46 - .../NR-DL-TDOA-TargetDeviceErrorCauses-r16.c | 128 - .../NR-DL-TDOA-TargetDeviceErrorCauses-r16.h | 61 - asn.1/generated/NR-ECID-Error-r16.c | 62 - .../NR-ECID-LocationServerErrorCauses-r16.c | 96 - .../NR-ECID-ProvideCapabilities-r16.c | 196 - .../NR-ECID-ProvideCapabilities-r16.h | 63 - .../NR-ECID-ProvideLocationInformation-r16.c | 62 - .../NR-ECID-RequestCapabilities-r16.c | 35 - .../NR-ECID-RequestLocationInformation-r16.c | 86 - ...NR-ECID-SignalMeasurementInformation-r16.c | 62 - .../NR-ECID-TargetDeviceErrorCauses-r16.c | 142 - .../NR-ECID-TargetDeviceErrorCauses-r16.h | 60 - .../generated/NR-MeasuredResultsElement-r16.c | 273 - .../generated/NR-MeasuredResultsElement-r16.h | 76 - asn.1/generated/NR-MeasuredResultsList-r16.c | 49 - ...lti-RTT-AdditionalMeasurementElement-r16.c | 162 - ...lti-RTT-AdditionalMeasurementElement-r16.h | 58 - .../NR-Multi-RTT-AdditionalMeasurements-r16.c | 49 - asn.1/generated/NR-Multi-RTT-Error-r16.c | 62 - ...-Multi-RTT-LocationServerErrorCauses-r16.c | 100 - .../generated/NR-Multi-RTT-MeasElement-r16.c | 192 - .../generated/NR-Multi-RTT-MeasElement-r16.h | 65 - asn.1/generated/NR-Multi-RTT-MeasList-r16.c | 49 - .../NR-Multi-RTT-ProvideAssistanceData-r16.c | 145 - .../NR-Multi-RTT-ProvideAssistanceData-r16.h | 62 - .../NR-Multi-RTT-ProvideCapabilities-r16.c | 216 - .../NR-Multi-RTT-ProvideCapabilities-r16.h | 64 - ...Multi-RTT-ProvideLocationInformation-r16.c | 62 - ...Multi-RTT-ProvideLocationInformation-r16.h | 52 - .../generated/NR-Multi-RTT-ReportConfig-r16.c | 162 - .../generated/NR-Multi-RTT-ReportConfig-r16.h | 42 - .../NR-Multi-RTT-RequestAssistanceData-r16.c | 98 - .../NR-Multi-RTT-RequestAssistanceData-r16.h | 57 - .../NR-Multi-RTT-RequestCapabilities-r16.c | 35 - ...Multi-RTT-RequestLocationInformation-r16.c | 162 - ...Multi-RTT-RequestLocationInformation-r16.h | 59 - ...lti-RTT-SignalMeasurementInformation-r16.c | 50 - ...lti-RTT-SignalMeasurementInformation-r16.h | 44 - ...NR-Multi-RTT-TargetDeviceErrorCauses-r16.c | 128 - ...NR-Multi-RTT-TargetDeviceErrorCauses-r16.h | 61 - asn.1/generated/NR-PhysCellId-r16.c | 80 - asn.1/generated/NR-PhysCellId-r16.h | 40 - ...NR-PositionCalculationAssistanceData-r16.c | 72 - ...NR-PositionCalculationAssistanceData-r16.h | 55 - asn.1/generated/NR-RTD-Info-r16.c | 60 - asn.1/generated/NR-SSB-Config-r16.c | 875 -- asn.1/generated/NR-SSB-Config-r16.h | 131 - .../NR-Selected-DL-PRS-IndexPerTRP-r16.c | 165 - .../NR-Selected-DL-PRS-IndexPerTRP-r16.h | 58 - .../generated/NR-SelectedDL-PRS-PerFreq-r16.c | 165 - asn.1/generated/NR-TRP-LocationInfo-r16.c | 49 - .../NR-TRP-LocationInfoPerFreqLayer-r16.c | 135 - asn.1/generated/NR-TimeStamp-r16.c | 296 - asn.1/generated/NR-TimeStamp-r16.h | 73 - asn.1/generated/NR-TimingMeasQuality-r16.c | 142 - asn.1/generated/NR-TimingMeasQuality-r16.h | 58 - .../generated/NR-UL-ProvideCapabilities-r16.c | 50 - .../generated/NR-UL-ProvideCapabilities-r16.h | 44 - .../generated/NR-UL-RequestCapabilities-r16.c | 35 - .../generated/NR-UL-SRS-MeasCapability-r16.c | 35 - .../generated/NR-UL-SRS-MeasCapability-r16.h | 37 - asn.1/generated/NULL.c | 250 - asn.1/generated/NULL.h | 43 - asn.1/generated/NativeEnumerated.c | 226 - asn.1/generated/NativeEnumerated.h | 43 - asn.1/generated/NativeInteger.c | 484 - asn.1/generated/NativeInteger.h | 44 - asn.1/generated/NavIC-CDC-r16.c | 120 - asn.1/generated/NavIC-ClockModel-r16.c | 240 - .../NavIC-CorrectionElementAutoNav-r16.c | 230 - .../NavIC-CorrectionListAutoNav-r16.c | 49 - .../NavIC-DifferentialCorrections-r16.c | 90 - .../NavIC-DifferentialCorrectionsReq-r16.c | 50 - ...NavIC-DifferentialCorrectionsSupport-r16.c | 50 - asn.1/generated/NavIC-EDC-r16.c | 280 - .../generated/NavIC-GridModelParameter-r16.c | 130 - asn.1/generated/NavIC-GridModelReq-r16.c | 35 - asn.1/generated/NavIC-GridModelSupport-r16.c | 35 - .../generated/NavModel-BDS-KeplerianSet-r12.c | 842 -- .../NavModel-BDS-KeplerianSet2-r16.c | 830 -- asn.1/generated/NavModel-GLONASS-ECEF.c | 536 - asn.1/generated/NavModel-SBAS-ECEF.c | 488 - asn.1/generated/NavModelCNAV-KeplerianSet.c | 830 -- asn.1/generated/NavModelKeplerianSet.c | 762 -- asn.1/generated/NavModelNAV-KeplerianSet.c | 1210 --- asn.1/generated/NeQuickModelParameter.c | 362 - asn.1/generated/NeQuickModelParameter.h | 51 - .../NeighbourMeasurementElement-NB-r14.c | 332 - .../NeighbourMeasurementElement-NB-r14.h | 65 - asn.1/generated/NeighbourMeasurementElement.c | 517 - asn.1/generated/NeighbourMeasurementElement.h | 83 - .../NeighbourMeasurementList-NB-r14.c | 49 - asn.1/generated/NeighbourMeasurementList.c | 49 - asn.1/generated/NetworkTime.c | 986 -- asn.1/generated/Notification.c | 174 - asn.1/generated/Notification.h | 59 - asn.1/generated/NotificationMode.c | 55 - asn.1/generated/NotificationResponse.c | 55 - asn.1/generated/NotificationType.c | 61 - asn.1/generated/OCTET_STRING.c | 2043 ---- asn.1/generated/OCTET_STRING.h | 100 - asn.1/generated/OPEN_TYPE.c | 402 - asn.1/generated/OPEN_TYPE.h | 63 - asn.1/generated/OTDOA-Error.c | 62 - .../OTDOA-LocationServerErrorCauses.c | 100 - asn.1/generated/OTDOA-MeasQuality.c | 180 - .../OTDOA-NeighbourCellInfoElement.c | 852 -- asn.1/generated/OTDOA-NeighbourCellInfoList.c | 49 - .../OTDOA-NeighbourCellInfoListNB-r14.c | 49 - .../generated/OTDOA-NeighbourCellInfoNB-r14.c | 588 - .../generated/OTDOA-NeighbourCellInfoNB-r14.h | 98 - asn.1/generated/OTDOA-NeighbourFreqInfo.c | 49 - asn.1/generated/OTDOA-ProvideAssistanceData.c | 137 - asn.1/generated/OTDOA-ProvideAssistanceData.h | 66 - asn.1/generated/OTDOA-ProvideCapabilities.c | 1242 --- .../OTDOA-ProvideLocationInformation.c | 117 - asn.1/generated/OTDOA-ReferenceCellInfo.c | 763 -- .../generated/OTDOA-ReferenceCellInfoNB-r14.c | 346 - .../generated/OTDOA-ReferenceCellInfoNB-r14.h | 89 - asn.1/generated/OTDOA-RequestAssistanceData.c | 258 - asn.1/generated/OTDOA-RequestCapabilities.c | 35 - .../OTDOA-RequestLocationInformation.c | 290 - ...TDOA-SignalMeasurementInformation-NB-r14.c | 354 - ...TDOA-SignalMeasurementInformation-NB-r14.h | 69 - .../OTDOA-SignalMeasurementInformation.c | 509 - .../OTDOA-SignalMeasurementInformation.h | 89 - .../generated/OTDOA-TargetDeviceErrorCauses.c | 104 - asn.1/generated/PLMN-Identity.c | 62 - asn.1/generated/PLMN-Identity.h | 47 - asn.1/generated/PRS-Info-NB-r14.c | 49 - asn.1/generated/PRS-Info.c | 1106 -- asn.1/generated/Pathloss.c | 61 - asn.1/generated/Pathloss.h | 42 - ...iodicAssistanceDataControlParameters-r15.c | 107 - asn.1/generated/PeriodicParams.c | 162 - asn.1/generated/PeriodicSessionID-r15.c | 138 - asn.1/generated/PhysCellId.c | 61 - asn.1/generated/PhysCellId.h | 42 - .../PhysicalReferenceStationInfo-r15.c | 200 - asn.1/generated/Polygon.c | 49 - asn.1/generated/PolygonArea.c | 92 - asn.1/generated/PolygonArea.h | 42 - asn.1/generated/PolygonDescription.c | 49 - asn.1/generated/PolygonPoints.c | 176 - asn.1/generated/PosPayLoad.c | 175 - asn.1/generated/PosProtocol.c | 82 - asn.1/generated/PosProtocol.h | 53 - asn.1/generated/PosProtocolVersion3GPP.c | 160 - asn.1/generated/PosProtocolVersion3GPP2.c | 49 - asn.1/generated/PosTechnology.c | 122 - asn.1/generated/Position.c | 72 - asn.1/generated/PositionEstimate.c | 391 - asn.1/generated/PositioningModes.c | 86 - asn.1/generated/PrefMethod.c | 55 - asn.1/generated/PressureValidityArea-v1520.c | 130 - .../generated/PressureValidityPeriod-v1520.c | 132 - asn.1/generated/PrimaryCCPCH-RSCP.c | 61 - asn.1/generated/PrimaryCCPCH-RSCP.h | 42 - asn.1/generated/PrimaryCPICH-Info.c | 80 - asn.1/generated/ProtLevel.c | 55 - asn.1/generated/ProtectionLevel.c | 62 - asn.1/generated/ProtectionLevel.h | 51 - .../generated/ProvideAssistanceData-r9-IEs.c | 232 - .../generated/ProvideAssistanceData-r9-IEs.h | 86 - asn.1/generated/ProvideAssistanceData.c | 206 - asn.1/generated/ProvideCapabilities-r9-IEs.c | 272 - asn.1/generated/ProvideCapabilities-r9-IEs.h | 98 - asn.1/generated/ProvideCapabilities.c | 206 - .../ProvideLocationInformation-r9-IEs.c | 262 - .../ProvideLocationInformation-r9-IEs.h | 95 - asn.1/generated/ProvideLocationInformation.c | 206 - asn.1/generated/QoP.c | 202 - asn.1/generated/QoP.h | 47 - asn.1/generated/QoS.c | 212 - asn.1/generated/QoS.h | 77 - asn.1/generated/RSRP-Range.c | 61 - asn.1/generated/RSRP-Range.h | 42 - asn.1/generated/RSRQ-Range.c | 61 - asn.1/generated/RSRQ-Range.h | 42 - asn.1/generated/RTD-InfoElement-r16.c | 100 - asn.1/generated/RTD-InfoElement-r16.h | 48 - asn.1/generated/RTD-InfoList-r16.c | 49 - .../generated/RTD-InfoListPerFreqLayer-r16.c | 49 - asn.1/generated/RTD.c | 132 - asn.1/generated/RTD.h | 47 - asn.1/generated/RTDUnits.c | 61 - .../RTK-CorrectionDifferencesElement-r15.c | 70 - .../RTK-CorrectionDifferencesList-r15.c | 49 - asn.1/generated/RTK-Residuals-Element-r15.c | 250 - asn.1/generated/RTK-Residuals-List-r15.c | 49 - asn.1/generated/ReferencePoint-r16.c | 104 - asn.1/generated/ReferenceStationList-r16.c | 49 - asn.1/generated/ReferenceTRP-RTD-Info-r16.c | 162 - asn.1/generated/ReferenceTRP-RTD-Info-r16.h | 77 - asn.1/generated/RegionIgpElement-r16.c | 1280 --- asn.1/generated/RegionIgpList-r16.c | 49 - asn.1/generated/RelativeLocation-r16.c | 204 - asn.1/generated/RelativeLocation.c | 120 - asn.1/generated/RelativeLocation.h | 45 - asn.1/generated/RelativeTime.c | 61 - asn.1/generated/RelativeTime.h | 42 - asn.1/generated/RepMode-cap.c | 70 - asn.1/generated/RepMode.c | 57 - asn.1/generated/RepeatedReportingParams.c | 120 - asn.1/generated/ReportData.c | 82 - asn.1/generated/ReportData.h | 57 - asn.1/generated/ReportDataList.c | 49 - asn.1/generated/ReportedLocation.c | 60 - asn.1/generated/ReportingCap.c | 142 - asn.1/generated/ReportingCap.h | 54 - asn.1/generated/ReportingCriteria.c | 132 - asn.1/generated/ReportingCriteria.h | 52 - asn.1/generated/ReportingDuration.c | 61 - asn.1/generated/ReportingDuration.h | 42 - asn.1/generated/ReportingMode.c | 72 - asn.1/generated/ReportingMode.h | 54 - asn.1/generated/ReqDataBitAssistanceList.c | 205 - asn.1/generated/ReqNavListInfo.c | 324 - .../generated/RequestAssistanceData-r9-IEs.c | 232 - .../generated/RequestAssistanceData-r9-IEs.h | 86 - asn.1/generated/RequestAssistanceData.c | 206 - asn.1/generated/RequestCapabilities-r9-IEs.c | 272 - asn.1/generated/RequestCapabilities-r9-IEs.h | 98 - asn.1/generated/RequestCapabilities.c | 206 - .../RequestLocationInformation-r9-IEs.c | 262 - .../RequestLocationInformation-r9-IEs.h | 95 - asn.1/generated/RequestLocationInformation.c | 206 - asn.1/generated/RequestedAssistData.c | 152 - asn.1/generated/ResponseTime.c | 268 - asn.1/generated/ResponseTimeNB-r14.c | 223 - asn.1/generated/ResultCode.c | 65 - asn.1/generated/ResultsPerCSI-RS-Index-r16.c | 92 - asn.1/generated/ResultsPerCSI-RS-Index-r16.h | 47 - .../ResultsPerCSI-RS-IndexList-r16.c | 49 - asn.1/generated/ResultsPerSSB-Index-r16.c | 92 - asn.1/generated/ResultsPerSSB-Index-r16.h | 47 - asn.1/generated/ResultsPerSSB-IndexList-r16.c | 49 - asn.1/generated/SBAS-ClockModel.c | 160 - asn.1/generated/SBAS-ID.c | 102 - asn.1/generated/SBAS-IDs.c | 86 - asn.1/generated/SET-GANSSReferenceTime.c | 436 - asn.1/generated/SETAuthKey.c | 134 - asn.1/generated/SETCapabilities.c | 82 - asn.1/generated/SETId.c | 276 - asn.1/generated/SFN-r15.c | 134 - asn.1/generated/SFN-r15.h | 45 - asn.1/generated/SLPAddress.c | 62 - asn.1/generated/SLPMode.c | 53 - asn.1/generated/SPCSETKey.c | 67 - asn.1/generated/SPCSETKey.h | 42 - asn.1/generated/SPCSETKeylifetime.c | 61 - asn.1/generated/SPCSETKeylifetime.h | 42 - asn.1/generated/SPCTID.c | 96 - asn.1/generated/SSR-ClockCorrectionList-r15.c | 49 - .../SSR-ClockCorrectionSatelliteElement-r15.c | 172 - .../SSR-ClockCorrectionSatelliteElement-r15.h | 48 - asn.1/generated/SSR-CodeBiasSatElement-r15.c | 60 - asn.1/generated/SSR-CodeBiasSatList-r15.c | 49 - .../generated/SSR-CodeBiasSignalElement-r15.c | 90 - .../generated/SSR-CodeBiasSignalElement-r15.h | 46 - asn.1/generated/SSR-CodeBiasSignalList-r15.c | 49 - asn.1/generated/SSR-OrbitCorrectionList-r15.c | 49 - .../SSR-OrbitCorrectionSatelliteElement-r15.c | 338 - .../SSR-OrbitCorrectionSatelliteElement-r15.h | 53 - asn.1/generated/SSR-PhaseBiasSatElement-r16.c | 60 - asn.1/generated/SSR-PhaseBiasSatList-r16.c | 49 - .../SSR-PhaseBiasSignalElement-r16.c | 172 - .../SSR-PhaseBiasSignalElement-r16.h | 48 - asn.1/generated/SSR-PhaseBiasSignalList-r16.c | 49 - asn.1/generated/SSR-URA-SatElement-r16.c | 96 - asn.1/generated/SSR-URA-SatList-r16.c | 49 - asn.1/generated/STEC-ResidualSatElement-r16.c | 174 - asn.1/generated/STEC-ResidualSatList-r16.c | 49 - asn.1/generated/STEC-SatElement-r16.c | 258 - asn.1/generated/STEC-SatElement-r16.h | 51 - asn.1/generated/STEC-SatList-r16.c | 49 - asn.1/generated/SUPL-GPSTime.c | 120 - asn.1/generated/SUPL-NavigationModel.c | 212 - asn.1/generated/SUPL-PositionData.c | 82 - asn.1/generated/SUPL-PositionData.h | 56 - asn.1/generated/SUPLAUTHREQ.c | 62 - asn.1/generated/SUPLAUTHREQ.h | 51 - asn.1/generated/SUPLAUTHRESP.c | 72 - asn.1/generated/SUPLAUTHRESP.h | 48 - asn.1/generated/SUPLEND.c | 82 - asn.1/generated/SUPLEND.h | 56 - asn.1/generated/SUPLINIT.c | 122 - asn.1/generated/SUPLINIT.h | 66 - asn.1/generated/SUPLPOS.c | 72 - asn.1/generated/SUPLPOS.h | 54 - asn.1/generated/SUPLPOSINIT.c | 112 - asn.1/generated/SUPLPOSINIT.h | 64 - asn.1/generated/SUPLRESPONSE.c | 92 - asn.1/generated/SUPLRESPONSE.h | 59 - asn.1/generated/SUPLSTART.c | 82 - asn.1/generated/SUPLSTART.h | 56 - asn.1/generated/SV-ID.c | 80 - asn.1/generated/SatListElement-r15.c | 96 - asn.1/generated/SatListRelatedDataElement.c | 178 - asn.1/generated/SatListRelatedDataList.c | 49 - asn.1/generated/SatelliteInfo.c | 49 - asn.1/generated/SatelliteInfoElement.c | 120 - asn.1/generated/SatellitesListRelatedData.c | 120 - .../generated/SatellitesListRelatedDataList.c | 49 - asn.1/generated/SegmentationInfo-r14.c | 53 - .../generated/Sensor-AssistanceDataList-r14.c | 407 - .../Sensor-AssistanceDataSupportList-r14.c | 195 - asn.1/generated/Sensor-Error-r13.c | 62 - .../Sensor-LocationServerErrorCauses-r13.c | 100 - .../Sensor-MeasurementInformation-r13.c | 345 - .../generated/Sensor-MotionInformation-r15.c | 60 - .../Sensor-ProvideAssistanceData-r14.c | 62 - .../Sensor-ProvideCapabilities-r13.c | 405 - .../Sensor-ProvideLocationInformation-r13.c | 117 - .../Sensor-RequestAssistanceData-r14.c | 35 - .../Sensor-RequestCapabilities-r13.c | 35 - .../Sensor-RequestLocationInformation-r13.c | 217 - .../Sensor-TargetDeviceErrorCauses-r13.c | 98 - asn.1/generated/SequenceNumber.c | 61 - asn.1/generated/SequenceNumber.h | 42 - asn.1/generated/ServiceCapabilities.c | 82 - asn.1/generated/ServiceCapabilities.h | 56 - asn.1/generated/ServicesSupported.c | 60 - asn.1/generated/SessionCapabilities.c | 160 - asn.1/generated/SessionID.c | 62 - asn.1/generated/SessionID.h | 48 - asn.1/generated/SessionInformation.c | 50 - asn.1/generated/SessionList.c | 49 - asn.1/generated/SetSessionID.c | 90 - asn.1/generated/SlpSessionID.c | 91 - asn.1/generated/StandardClockModelElement.c | 322 - asn.1/generated/StandardClockModelList.c | 49 - asn.1/generated/Status.c | 57 - asn.1/generated/StoredNavListInfo.c | 172 - .../Supported3GPP2PosProtocolVersion.c | 166 - asn.1/generated/SupportedBandEUTRA-v9a0.c | 82 - asn.1/generated/SupportedBandEUTRA-v9a0.h | 40 - asn.1/generated/SupportedBandEUTRA.c | 80 - asn.1/generated/SupportedBandNR-r16.c | 80 - asn.1/generated/SupportedBandNR-r16.h | 40 - asn.1/generated/SupportedBearers.c | 120 - asn.1/generated/SupportedChannels-11a-r14.c | 200 - asn.1/generated/SupportedChannels-11bg-r14.c | 180 - asn.1/generated/SupportedNetworkInformation.c | 192 - asn.1/generated/SupportedNetworkInformation.h | 68 - asn.1/generated/SupportedWCDMAInfo.c | 50 - asn.1/generated/SupportedWLANApData.c | 146 - asn.1/generated/SupportedWLANApsChannel11a.c | 200 - asn.1/generated/SupportedWLANApsChannel11bg.c | 180 - asn.1/generated/SupportedWLANApsList.c | 145 - asn.1/generated/SupportedWLANInfo.c | 160 - asn.1/generated/TAResolution.c | 57 - asn.1/generated/TBS-AssistanceDataList-r14.c | 52 - asn.1/generated/TBS-AssistanceDataList-r14.h | 49 - asn.1/generated/TBS-Error-r13.c | 62 - .../TBS-LocationServerErrorCauses-r13.c | 100 - .../TBS-MeasurementInformation-r13.c | 62 - .../TBS-MeasurementInformation-r13.h | 51 - .../generated/TBS-ProvideAssistanceData-r14.c | 62 - .../generated/TBS-ProvideAssistanceData-r14.h | 52 - asn.1/generated/TBS-ProvideCapabilities-r13.c | 253 - asn.1/generated/TBS-ProvideCapabilities-r13.h | 79 - .../TBS-ProvideLocationInformation-r13.c | 62 - .../generated/TBS-RequestAssistanceData-r14.c | 60 - asn.1/generated/TBS-RequestCapabilities-r13.c | 35 - .../TBS-RequestLocationInformation-r13.c | 153 - .../TBS-TargetDeviceErrorCauses-r13.c | 100 - asn.1/generated/TDD-Config-v1520.c | 106 - asn.1/generated/TGSN.c | 61 - asn.1/generated/TGSN.h | 42 - asn.1/generated/TRP-ID-r16.c | 112 - asn.1/generated/TRP-ID-r16.h | 52 - asn.1/generated/TRP-LocationInfoElement-r16.c | 145 - asn.1/generated/TRP-LocationInfoElement-r16.h | 61 - asn.1/generated/ThirdParty.c | 49 - asn.1/generated/TimeStamp.c | 92 - asn.1/generated/TimeWindow.c | 120 - asn.1/generated/TimeWindow.h | 41 - asn.1/generated/TimeslotISCP-List.c | 49 - asn.1/generated/TimeslotISCP.c | 61 - asn.1/generated/TimeslotISCP.h | 42 - asn.1/generated/TimingAdvance.c | 102 - asn.1/generated/TimingAdvance.h | 48 - asn.1/generated/TrackingAreaCode.c | 67 - asn.1/generated/TrackingAreaCode.h | 42 - asn.1/generated/TransactionNumber.c | 61 - asn.1/generated/TransactionNumber.h | 42 - asn.1/generated/TriggerParams.c | 62 - asn.1/generated/TriggerType.c | 55 - asn.1/generated/TriggeredReportingCriteria.c | 60 - .../TropospericDelayCorrection-r16.c | 120 - .../TropospericDelayCorrection-r16.h | 45 - asn.1/generated/UARFCN.c | 61 - asn.1/generated/UARFCN.h | 42 - asn.1/generated/ULP-MeasuredResultsList.c | 49 - asn.1/generated/ULP-PDU.c | 110 - asn.1/generated/ULP-Velocity.c | 82 - asn.1/generated/UMBAreaId.c | 168 - asn.1/generated/UMBAreaId.h | 47 - asn.1/generated/UTC-ModelSet1.c | 360 - asn.1/generated/UTC-ModelSet2.c | 493 - asn.1/generated/UTC-ModelSet3.c | 248 - asn.1/generated/UTC-ModelSet3.h | 49 - asn.1/generated/UTC-ModelSet4.c | 400 - asn.1/generated/UTC-ModelSet5-r12.c | 280 - asn.1/generated/UTC-Time-r15.c | 90 - asn.1/generated/UTCTime.c | 273 - asn.1/generated/UTCTime.h | 48 - asn.1/generated/UTRA-CarrierRSSI.c | 61 - asn.1/generated/UTRA-CarrierRSSI.h | 42 - asn.1/generated/UTRAN-GANSSReferenceTime.c | 352 - .../UTRAN-GANSSReferenceTimeAssistance.c | 142 - .../UTRAN-GANSSReferenceTimeResult.c | 90 - asn.1/generated/UTRAN-GPSReferenceTime.c | 396 - .../UTRAN-GPSReferenceTimeAssistance.c | 102 - .../UTRAN-GPSReferenceTimeAssistance.h | 44 - .../generated/UTRAN-GPSReferenceTimeResult.c | 436 - asn.1/generated/UlpMessage.c | 192 - asn.1/generated/UmbCellInformation.c | 326 - asn.1/generated/UpdateCapabilities-r15.c | 67 - asn.1/generated/Velocity.c | 82 - asn.1/generated/VelocityTypes.c | 80 - asn.1/generated/Ver.c | 67 - asn.1/generated/Ver.h | 42 - asn.1/generated/Ver2-CellInfo-extension.c | 92 - asn.1/generated/Ver2-Notification-extension.c | 52 - asn.1/generated/Ver2-PosPayLoad-extension.c | 270 - asn.1/generated/Ver2-PosProtocol-extension.c | 92 - asn.1/generated/Ver2-PosProtocol-extension.h | 56 - .../generated/Ver2-PosTechnology-extension.c | 52 - .../Ver2-RequestedAssistData-extension.c | 82 - .../Ver2-RequestedAssistData-extension.h | 58 - .../Ver2-SETCapabilities-extension.c | 62 - .../Ver2-SETCapabilities-extension.h | 52 - asn.1/generated/Ver2-SUPL-END-extension.c | 52 - asn.1/generated/Ver2-SUPL-END-extension.h | 49 - asn.1/generated/Ver2-SUPL-INIT-extension.c | 152 - asn.1/generated/Ver2-SUPL-INIT-extension.h | 67 - .../generated/Ver2-SUPL-POS-INIT-extension.c | 72 - .../generated/Ver2-SUPL-POS-INIT-extension.h | 55 - asn.1/generated/Ver2-SUPL-POS-extension.c | 82 - asn.1/generated/Ver2-SUPL-POS-extension.h | 58 - .../generated/Ver2-SUPL-RESPONSE-extension.c | 102 - .../generated/Ver2-SUPL-RESPONSE-extension.h | 62 - asn.1/generated/Ver2-SUPL-START-extension.c | 82 - asn.1/generated/Ver2-SUPL-START-extension.h | 58 - asn.1/generated/Ver2-SUPLNOTIFY.c | 50 - asn.1/generated/Ver2-SUPLNOTIFYRESPONSE.c | 52 - asn.1/generated/Ver2-SUPLNOTIFYRESPONSE.h | 44 - asn.1/generated/Ver2-SUPLREPORT.c | 92 - asn.1/generated/Ver2-SUPLREPORT.h | 59 - asn.1/generated/Ver2-SUPLSETINIT.c | 72 - asn.1/generated/Ver2-SUPLSETINIT.h | 54 - asn.1/generated/Ver2-SUPLTRIGGEREDRESPONSE.c | 132 - asn.1/generated/Ver2-SUPLTRIGGEREDRESPONSE.h | 70 - asn.1/generated/Ver2-SUPLTRIGGEREDSTART.c | 162 - asn.1/generated/Ver2-SUPLTRIGGEREDSTART.h | 77 - asn.1/generated/Ver2-SUPLTRIGGEREDSTOP.c | 52 - asn.1/generated/Version.c | 160 - asn.1/generated/Version.h | 42 - asn.1/generated/VerticalAccuracy.c | 120 - asn.1/generated/VerticalAccuracyExt-r15.c | 120 - asn.1/generated/VisibleString.c | 95 - asn.1/generated/VisibleString.h | 36 - asn.1/generated/WCDMAAreaId.c | 202 - asn.1/generated/WCDMAAreaId.h | 47 - asn.1/generated/WLAN-AP-Data-r14.c | 62 - asn.1/generated/WLAN-AP-Identifier-r13.c | 124 - asn.1/generated/WLAN-AP-Location-r14.c | 50 - asn.1/generated/WLAN-DataSet-r14.c | 145 - asn.1/generated/WLAN-DataSet-r14.h | 62 - asn.1/generated/WLAN-Error-r13.c | 62 - .../WLAN-LocationServerErrorCauses-r13.c | 157 - asn.1/generated/WLAN-MeasurementElement-r13.c | 152 - asn.1/generated/WLAN-MeasurementElement-r13.h | 56 - .../WLAN-MeasurementInformation-r13.c | 62 - .../WLAN-MeasurementInformation-r13.h | 51 - asn.1/generated/WLAN-MeasurementList-r13.c | 49 - .../WLAN-ProvideAssistanceData-r14.c | 135 - .../generated/WLAN-ProvideCapabilities-r13.c | 289 - .../WLAN-ProvideLocationInformation-r13.c | 62 - asn.1/generated/WLAN-RTT-r13.c | 186 - .../WLAN-RequestAssistanceData-r14.c | 254 - .../generated/WLAN-RequestCapabilities-r13.c | 35 - .../WLAN-RequestLocationInformation-r13.c | 143 - .../WLAN-TargetDeviceErrorCauses-r13.c | 122 - asn.1/generated/WLANAreaId.c | 86 - asn.1/generated/WcdmaCellInformation.c | 272 - asn.1/generated/WcdmaCellInformation.h | 61 - asn.1/generated/WimaxAreaId.c | 134 - asn.1/generated/WimaxAreaId.h | 41 - asn.1/generated/WimaxBSInformation.c | 72 - asn.1/generated/WimaxBSInformation.h | 54 - asn.1/generated/WimaxBsID.c | 134 - asn.1/generated/WimaxBsID.h | 45 - asn.1/generated/WimaxNMR.c | 342 - asn.1/generated/WimaxNMR.h | 59 - asn.1/generated/WimaxNMRList.c | 49 - asn.1/generated/WimaxRTD.c | 122 - asn.1/generated/WimaxRTD.h | 45 - asn.1/generated/WlanAPInformation.c | 528 - asn.1/generated/WlanAPInformation.h | 77 - asn.1/generated/asn_application.c | 440 - asn.1/generated/asn_codecs_prim.c | 317 - asn.1/generated/asn_codecs_prim.h | 51 - asn.1/generated/constr_CHOICE.c | 1340 --- asn.1/generated/constr_CHOICE.h | 78 - asn.1/generated/constr_SEQUENCE.c | 1626 --- asn.1/generated/constr_SEQUENCE.h | 66 - asn.1/generated/constr_SEQUENCE_OF.c | 284 - asn.1/generated/constr_SEQUENCE_OF.h | 39 - asn.1/generated/constr_SET_OF.c | 1348 --- asn.1/generated/constr_SET_OF.h | 47 - asn.1/generated/constr_TYPE.h | 260 - asn.1/generated/per_decoder.c | 97 - asn.1/generated/per_decoder.h | 57 - asn.1/generated/per_encoder.c | 165 - asn.1/generated/per_encoder.h | 70 - asn.1/generated/per_opentype.c | 396 - asn.1/generated/per_opentype.h | 32 - asn.1/generated/per_support.c | 375 - asn.1/generated/per_support.h | 117 - asn.1/helper/CMakeLists.txt | 2 +- asn.1/helper/bit_string.cpp | 3 +- asn.1/helper/include/asn.1/bit_string.hpp | 2 + asn.1/lpp_generated/A-GNSS-Error.c | 88 + .../A-GNSS-Error.h | 4 +- .../A-GNSS-ProvideAssistanceData.c | 187 + .../A-GNSS-ProvideAssistanceData.h | 57 + .../A-GNSS-ProvideCapabilities.c | 475 + .../A-GNSS-ProvideCapabilities.h | 85 + .../A-GNSS-ProvideLocationInformation.c | 107 + .../A-GNSS-ProvideLocationInformation.h | 50 + .../A-GNSS-RequestAssistanceData.c | 168 + .../A-GNSS-RequestAssistanceData.h | 55 + .../A-GNSS-RequestCapabilities.c | 102 + .../A-GNSS-RequestCapabilities.h | 4 +- .../A-GNSS-RequestLocationInformation.c | 66 + .../A-GNSS-RequestLocationInformation.h | 4 +- asn.1/lpp_generated/ARFCN-ValueEUTRA-r14.c | 71 + asn.1/lpp_generated/ARFCN-ValueEUTRA-r14.h | 40 + asn.1/lpp_generated/ARFCN-ValueEUTRA-v9a0.c | 71 + asn.1/lpp_generated/ARFCN-ValueEUTRA-v9a0.h | 40 + asn.1/lpp_generated/ARFCN-ValueEUTRA.c | 71 + asn.1/lpp_generated/ARFCN-ValueEUTRA.h | 40 + asn.1/lpp_generated/ARFCN-ValueNR-r15.c | 71 + asn.1/lpp_generated/ARFCN-ValueNR-r15.h | 40 + asn.1/lpp_generated/ARFCN-ValueUTRA.c | 71 + asn.1/lpp_generated/ARFCN-ValueUTRA.h | 40 + .../AUX-ReferenceStationID-Element-r15.c | 66 + .../AUX-ReferenceStationID-Element-r15.h | 4 +- .../AUX-ReferenceStationList-r15.c | 68 + .../AUX-ReferenceStationList-r15.h | 7 +- asn.1/lpp_generated/Abort-r9-IEs.c | 88 + asn.1/lpp_generated/Abort-r9-IEs.h | 48 + asn.1/lpp_generated/Abort.c | 298 + asn.1/{generated => lpp_generated}/Abort.h | 4 +- asn.1/lpp_generated/AccessTypes.c | 104 + .../AccessTypes.h | 4 +- asn.1/lpp_generated/Acknowledgement.c | 86 + asn.1/lpp_generated/Acknowledgement.h | 42 + .../Add-PRSconfigNeighbourElement-r14.c | 69 + .../Add-PRSconfigNeighbourElement-r14.h | 9 +- asn.1/lpp_generated/AdditionalInformation.c | 65 + .../AdditionalInformation.h | 10 +- asn.1/lpp_generated/AdditionalPath-r14.c | 119 + .../AdditionalPath-r14.h | 9 +- asn.1/lpp_generated/AdditionalPathList-r14.c | 68 + .../AdditionalPathList-r14.h | 7 +- .../lpp_generated/AlmanacBDS-AlmanacSet-r12.c | 624 ++ .../AlmanacBDS-AlmanacSet-r12.h | 8 +- .../AlmanacECEF-SBAS-AlmanacSet.c | 522 + .../AlmanacECEF-SBAS-AlmanacSet.h | 4 +- .../lpp_generated/AlmanacGLONASS-AlmanacSet.c | 706 ++ .../AlmanacGLONASS-AlmanacSet.h | 6 +- asn.1/lpp_generated/AlmanacKeplerianSet.c | 630 ++ .../AlmanacKeplerianSet.h | 6 +- asn.1/lpp_generated/AlmanacMidiAlmanacSet.c | 570 + .../AlmanacMidiAlmanacSet.h | 4 +- asn.1/lpp_generated/AlmanacNAV-KeplerianSet.c | 566 + .../AlmanacNAV-KeplerianSet.h | 4 +- .../AlmanacNavIC-AlmanacSet-r16.c | 518 + .../AlmanacNavIC-AlmanacSet-r16.h | 6 +- .../AlmanacReducedKeplerianSet.c | 270 + .../AlmanacReducedKeplerianSet.h | 4 +- asn.1/lpp_generated/AntennaDescription-r15.c | 187 + .../AntennaDescription-r15.h | 6 +- .../AntennaReferencePointUnc-r15.c | 348 + .../AntennaReferencePointUnc-r15.h | 4 +- asn.1/lpp_generated/AreaID-CellList-r17.c | 68 + asn.1/lpp_generated/AreaID-CellList-r17.h | 44 + asn.1/lpp_generated/ArrayOfGridPoints-r18.c | 516 + asn.1/lpp_generated/ArrayOfGridPoints-r18.h | 77 + .../lpp_generated/AssistanceDataSupportList.c | 84 + .../AssistanceDataSupportList.h | 4 +- asn.1/lpp_generated/Aux-ARP-Unc-r15.c | 250 + asn.1/lpp_generated/Aux-ARP-Unc-r15.h | 47 + .../AuxiliaryStationElement-r15.c | 237 + .../AuxiliaryStationElement-r15.h | 9 +- .../lpp_generated/AuxiliaryStationList-r15.c | 68 + .../AuxiliaryStationList-r15.h | 7 +- asn.1/lpp_generated/BDS-ClockModel-r12.c | 461 + asn.1/lpp_generated/BDS-ClockModel-r12.h | 55 + asn.1/lpp_generated/BDS-ClockModel2-r16.c | 511 + asn.1/lpp_generated/BDS-ClockModel2-r16.h | 56 + .../BDS-DifferentialCorrections-r12.c | 116 + .../BDS-DifferentialCorrections-r12.h | 4 +- .../BDS-DifferentialCorrectionsReq-r12.c | 66 + .../BDS-DifferentialCorrectionsReq-r12.h | 4 +- .../BDS-DifferentialCorrectionsSupport-r12.c | 66 + .../BDS-DifferentialCorrectionsSupport-r12.h | 4 +- .../BDS-GridModelParameter-r12.c | 116 + .../BDS-GridModelParameter-r12.h | 4 +- asn.1/lpp_generated/BDS-GridModelReq-r12.c | 43 + .../BDS-GridModelReq-r12.h | 4 +- .../lpp_generated/BDS-GridModelSupport-r12.c | 43 + .../BDS-GridModelSupport-r12.h | 4 +- asn.1/lpp_generated/BDS-SgnTypeElement-r12.c | 87 + .../BDS-SgnTypeElement-r12.h | 9 +- asn.1/lpp_generated/BDS-SgnTypeList-r12.c | 68 + .../BDS-SgnTypeList-r12.h | 7 +- asn.1/lpp_generated/BT-AntArrayConfig-r18.c | 124 + asn.1/lpp_generated/BT-AntArrayConfig-r18.h | 59 + asn.1/lpp_generated/BT-AntElement-r18.c | 128 + asn.1/lpp_generated/BT-AntElement-r18.h | 54 + asn.1/lpp_generated/BT-AntSwitchElement-r18.c | 178 + asn.1/lpp_generated/BT-AntSwitchElement-r18.h | 55 + asn.1/lpp_generated/BT-AoA-Config-r18.c | 500 + asn.1/lpp_generated/BT-AoA-Config-r18.h | 63 + asn.1/lpp_generated/BT-AoD-TransmConfig-r18.c | 286 + asn.1/lpp_generated/BT-AoD-TransmConfig-r18.h | 50 + asn.1/lpp_generated/BT-BeaconInfo-r18.c | 178 + asn.1/lpp_generated/BT-BeaconInfo-r18.h | 55 + .../lpp_generated/BT-BeaconInfoElement-r18.c | 406 + .../lpp_generated/BT-BeaconInfoElement-r18.h | 70 + asn.1/lpp_generated/BT-Error-r13.c | 88 + .../BT-Error-r13.h | 4 +- asn.1/lpp_generated/BT-GenericArray-r18.c | 68 + asn.1/lpp_generated/BT-GenericArray-r18.h | 44 + .../BT-LocationServerErrorCauses-r13.c | 128 + .../BT-LocationServerErrorCauses-r13.h | 56 + .../lpp_generated/BT-MeasurementElement-r13.c | 156 + .../BT-MeasurementElement-r13.h | 6 +- .../lpp_generated/BT-MeasurementElement-r18.c | 256 + .../lpp_generated/BT-MeasurementElement-r18.h | 48 + .../BT-MeasurementInformation-r13.c | 167 + .../BT-MeasurementInformation-r13.h | 55 + asn.1/lpp_generated/BT-MeasurementList-r13.c | 68 + .../BT-MeasurementList-r13.h | 7 +- asn.1/lpp_generated/BT-MeasurementList-r18.c | 68 + asn.1/lpp_generated/BT-MeasurementList-r18.h | 44 + .../BT-ProvideAssistanceData-r18.c | 87 + .../BT-ProvideAssistanceData-r18.h | 48 + .../BT-ProvideCapabilities-r13.c | 529 + .../BT-ProvideCapabilities-r13.h | 89 + .../BT-ProvideLocationInformation-r13.c | 168 + .../BT-ProvideLocationInformation-r13.h | 55 + .../BT-RequestAssistanceData-r18.c | 104 + .../BT-RequestAssistanceData-r18.h | 51 + .../BT-RequestCapabilities-r13.c | 43 + .../BT-RequestCapabilities-r13.h | 4 +- .../BT-RequestLocationInformation-r13.c | 242 + .../BT-RequestLocationInformation-r13.h | 64 + .../BT-SuggestedAoA-Config-r18.c | 446 + .../BT-SuggestedAoA-Config-r18.h | 62 + .../BT-TargetDeviceErrorCauses-r13.c | 148 + .../BT-TargetDeviceErrorCauses-r13.h | 9 +- .../BT-ULA-GenericAntElement-r18.c | 200 + .../BT-ULA-GenericAntElement-r18.h | 42 + .../BT-UniformCircularArray-r18.c | 148 + .../BT-UniformCircularArray-r18.h | 41 + .../lpp_generated/BT-UniformLinearArray-r18.c | 148 + .../lpp_generated/BT-UniformLinearArray-r18.h | 41 + .../BT-UniformRectangularArray-r18.c | 248 + .../BT-UniformRectangularArray-r18.h | 43 + asn.1/lpp_generated/BadSignalElement.c | 87 + .../BadSignalElement.h | 9 +- asn.1/lpp_generated/BeamPowerElement-r17.c | 266 + asn.1/lpp_generated/BeamPowerElement-r17.h | 58 + .../CLOCK-IntegrityParameters-r17.c | 148 + .../CLOCK-IntegrityParameters-r17.h | 45 + asn.1/lpp_generated/CNAV-ClockModel.c | 800 ++ asn.1/lpp_generated/CNAV-ClockModel.h | 58 + asn.1/lpp_generated/CarrierFreq-NB-r14.c | 86 + .../CarrierFreq-NB-r14.h | 6 +- .../CarrierFreqOffsetNB-r14.c | 16 +- .../CarrierFreqOffsetNB-r14.h | 8 +- .../lpp_generated/CellGlobalIdEUTRA-AndUTRA.c | 567 + .../CellGlobalIdEUTRA-AndUTRA.h | 4 +- asn.1/lpp_generated/CellGlobalIdGERAN.c | 505 + .../CellGlobalIdGERAN.h | 4 +- asn.1/lpp_generated/CommonIEsAbort.c | 130 + .../CommonIEsAbort.h | 4 +- asn.1/lpp_generated/CommonIEsError.c | 132 + .../CommonIEsError.h | 4 +- .../CommonIEsProvideAssistanceData.c | 209 + .../CommonIEsProvideAssistanceData.h | 11 +- .../CommonIEsProvideCapabilities.c | 298 + .../CommonIEsProvideCapabilities.h | 70 + .../CommonIEsProvideLocationInformation.c | 442 + .../CommonIEsProvideLocationInformation.h | 80 + .../CommonIEsRequestAssistanceData.c | 247 + .../CommonIEsRequestAssistanceData.h | 62 + .../CommonIEsRequestCapabilities.c | 262 + .../CommonIEsRequestCapabilities.h | 66 + .../CommonIEsRequestLocationInformation.c | 456 + .../CommonIEsRequestLocationInformation.h | 83 + .../DBDS-CorrectionElement-r12.c | 216 + .../DBDS-CorrectionElement-r12.h | 4 +- asn.1/lpp_generated/DBDS-CorrectionList-r12.c | 68 + .../DBDS-CorrectionList-r12.h | 7 +- .../lpp_generated/DGNSS-CorrectionsElement.c | 374 + .../DGNSS-CorrectionsElement.h | 8 +- asn.1/lpp_generated/DGNSS-SatList.c | 68 + .../DGNSS-SatList.h | 7 +- asn.1/lpp_generated/DGNSS-SgnTypeElement.c | 134 + .../DGNSS-SgnTypeElement.h | 4 +- asn.1/lpp_generated/DGNSS-SgnTypeList.c | 68 + .../DGNSS-SgnTypeList.h | 7 +- .../DL-AoD-MeasCapabilityPerBand-r16.c | 560 + .../DL-AoD-MeasCapabilityPerBand-r16.h | 87 + .../DL-PRS-BeamInfoElement-r16.c | 330 + .../DL-PRS-BeamInfoElement-r16.h | 56 + .../DL-PRS-BeamInfoResourceSet-r16.c | 68 + .../DL-PRS-BeamInfoResourceSet-r16.h | 7 +- asn.1/lpp_generated/DL-PRS-BeamInfoSet-r16.c | 68 + .../DL-PRS-BeamInfoSet-r16.h | 7 +- .../DL-PRS-Configuration-ID-r17.c | 98 + .../DL-PRS-Configuration-ID-r17.h | 44 + asn.1/lpp_generated/DL-PRS-ID-Info-r16.c | 229 + asn.1/lpp_generated/DL-PRS-ID-Info-r16.h | 51 + ...RS-MeasurementWithRxFH-RRC-Connected-r18.c | 769 ++ ...RS-MeasurementWithRxFH-RRC-Connected-r18.h | 132 + .../lpp_generated/DL-PRS-MutingOption1-r16.c | 148 + .../lpp_generated/DL-PRS-MutingOption1-r16.h | 58 + .../lpp_generated/DL-PRS-MutingOption2-r16.c | 66 + .../lpp_generated/DL-PRS-MutingOption2-r16.h | 44 + asn.1/lpp_generated/DL-PRS-QCL-Info-r16.c | 350 + .../DL-PRS-QCL-Info-r16.h | 12 +- asn.1/lpp_generated/DL-PRS-QCL-InfoReq-r17.c | 339 + asn.1/lpp_generated/DL-PRS-QCL-InfoReq-r17.h | 80 + .../DL-PRS-QCL-InformationReqPerTRP-r17.c | 267 + .../DL-PRS-QCL-InformationReqPerTRP-r17.h | 61 + .../DL-PRS-QCL-InformationReqTRPlist-r17.c | 68 + .../DL-PRS-QCL-InformationReqTRPlist-r17.h | 44 + ...-PRS-QCL-ProcessingCapabilityPerBand-r16.c | 212 + ...-PRS-QCL-ProcessingCapabilityPerBand-r16.h | 57 + .../DL-PRS-Resource-ARP-Element-r16.c | 168 + .../DL-PRS-Resource-ARP-Element-r16.h | 55 + .../DL-PRS-ResourcePrioritySubset-r17.c | 68 + .../DL-PRS-ResourcePrioritySubset-r17.h | 44 + .../DL-PRS-ResourceSets-TRP-Element-r16.c | 280 + .../DL-PRS-ResourceSets-TRP-Element-r16.h | 64 + .../DL-PRS-ResourcesBandCombination-r16.c | 634 ++ .../DL-PRS-ResourcesBandCombination-r16.h | 137 + .../DL-PRS-ResourcesBandCombinationList-r16.c | 68 + .../DL-PRS-ResourcesBandCombinationList-r16.h | 44 + .../DL-PRS-ResourcesCapabilityPerBand-r16.c | 242 + .../DL-PRS-ResourcesCapabilityPerBand-r16.h | 77 + .../DL-PRS-StartTime-and-Duration-r17.c | 311 + .../DL-PRS-StartTime-and-Duration-r17.h | 56 + .../DL-PRS-TEG-InfoElement-r17.c | 98 + .../DL-PRS-TEG-InfoElement-r17.h | 44 + .../DL-PRS-TEG-InfoPerResourceSet-r17.c | 68 + .../DL-PRS-TEG-InfoPerResourceSet-r17.h | 44 + .../DL-SelectedPRS-ResourceIndex-r16.c | 98 + .../DL-SelectedPRS-ResourceIndex-r16.h | 6 +- .../DL-SelectedPRS-ResourceSetIndex-r16.c | 212 + .../DL-SelectedPRS-ResourceSetIndex-r16.h | 51 + .../DL-TDOA-MeasCapabilityPerBand-r17.c | 1075 ++ .../DL-TDOA-MeasCapabilityPerBand-r17.h | 122 + asn.1/lpp_generated/Delta-Height-r16.c | 150 + asn.1/lpp_generated/Delta-Height-r16.h | 45 + asn.1/lpp_generated/Delta-Latitude-r16.c | 150 + .../Delta-Latitude-r16.h | 6 +- asn.1/lpp_generated/Delta-Longitude-r16.c | 150 + .../Delta-Longitude-r16.h | 6 +- asn.1/lpp_generated/DeltaTime-r15.c | 152 + .../DeltaTime-r15.h | 4 +- asn.1/lpp_generated/Displacement-r15.c | 600 + asn.1/lpp_generated/Displacement-r15.h | 67 + .../lpp_generated/DisplacementInfoList-r15.c | 68 + .../DisplacementInfoList-r15.h | 7 +- .../DisplacementInfoListElement-r15.c | 87 + .../DisplacementInfoListElement-r15.h | 9 +- .../lpp_generated/DisplacementTimeStamp-r15.c | 156 + .../DisplacementTimeStamp-r15.h | 4 +- asn.1/lpp_generated/ECGI.c | 390 + asn.1/{generated => lpp_generated}/ECGI.h | 4 +- asn.1/lpp_generated/ECID-Error.c | 88 + .../{generated => lpp_generated}/ECID-Error.h | 4 +- .../ECID-LocationServerErrorCauses.c | 122 + .../ECID-LocationServerErrorCauses.h | 4 +- .../lpp_generated/ECID-ProvideCapabilities.c | 596 + .../ECID-ProvideCapabilities.h | 23 +- .../ECID-ProvideLocationInformation.c | 88 + .../ECID-ProvideLocationInformation.h | 12 +- .../lpp_generated/ECID-RequestCapabilities.c | 43 + .../ECID-RequestCapabilities.h | 4 +- .../ECID-RequestLocationInformation.c | 104 + .../ECID-RequestLocationInformation.h | 4 +- .../ECID-SignalMeasurementInformation.c | 87 + .../ECID-SignalMeasurementInformation.h | 9 +- .../ECID-TargetDeviceErrorCauses.c | 279 + .../ECID-TargetDeviceErrorCauses.h | 14 +- asn.1/lpp_generated/EPDU-Body.c | 39 + asn.1/lpp_generated/EPDU-Body.h | 39 + asn.1/lpp_generated/EPDU-ID.c | 71 + asn.1/lpp_generated/EPDU-ID.h | 40 + asn.1/lpp_generated/EPDU-Identifier.c | 86 + .../EPDU-Identifier.h | 6 +- asn.1/lpp_generated/EPDU-Name.c | 86 + asn.1/lpp_generated/EPDU-Name.h | 40 + asn.1/lpp_generated/EPDU-Sequence.c | 68 + .../EPDU-Sequence.h | 7 +- asn.1/lpp_generated/EPDU.c | 84 + asn.1/{generated => lpp_generated}/EPDU.h | 4 +- asn.1/lpp_generated/EarlyFixReport-r12.c | 63 + .../EarlyFixReport-r12.h | 8 +- asn.1/lpp_generated/ElevationElement-R17.c | 262 + asn.1/lpp_generated/ElevationElement-R17.h | 56 + asn.1/lpp_generated/Ellipsoid-Point.c | 222 + .../Ellipsoid-Point.h | 4 +- .../Ellipsoid-PointWithUncertaintyCircle.c | 272 + .../Ellipsoid-PointWithUncertaintyCircle.h | 4 +- asn.1/lpp_generated/EllipsoidArc.c | 472 + .../EllipsoidArc.h | 4 +- .../EllipsoidPointWithAltitude.c | 346 + .../EllipsoidPointWithAltitude.h | 4 +- ...PointWithAltitudeAndUncertaintyEllipsoid.c | 596 + ...PointWithAltitudeAndUncertaintyEllipsoid.h | 4 +- .../EllipsoidPointWithUncertaintyEllipse.c | 422 + .../EllipsoidPointWithUncertaintyEllipse.h | 4 +- asn.1/lpp_generated/Environment.c | 67 + .../Environment.h | 8 +- .../EqualIntegerAmbiguityLevel-r16.c | 88 + .../EqualIntegerAmbiguityLevel-r16.h | 4 +- asn.1/lpp_generated/Error-r9-IEs.c | 88 + asn.1/lpp_generated/Error-r9-IEs.h | 48 + asn.1/lpp_generated/Error.c | 124 + asn.1/{generated => lpp_generated}/Error.h | 4 +- .../lpp_generated/FKP-Gradients-Element-r15.c | 322 + .../FKP-Gradients-Element-r15.h | 4 +- asn.1/lpp_generated/FKP-Gradients-List-r15.c | 68 + .../FKP-Gradients-List-r15.h | 7 +- asn.1/lpp_generated/FreqBandIndicatorNR-r16.c | 71 + asn.1/lpp_generated/FreqBandIndicatorNR-r16.h | 40 + .../GLO-RTK-BiasInformation-r15.c | 324 + .../GLO-RTK-BiasInformation-r15.h | 51 + .../GLO-RTK-BiasInformationReq-r15.c | 69 + .../GLO-RTK-BiasInformationReq-r15.h | 9 +- .../GLO-RTK-BiasInformationSupport-r15.c | 43 + .../GLO-RTK-BiasInformationSupport-r15.h | 4 +- asn.1/lpp_generated/GLONASS-ClockModel.c | 200 + .../GLONASS-ClockModel.h | 6 +- .../GNSS-AcquisitionAssistElement.c | 568 + .../GNSS-AcquisitionAssistElement.h | 8 +- .../GNSS-AcquisitionAssistList.c | 68 + .../GNSS-AcquisitionAssistList.h | 7 +- .../GNSS-AcquisitionAssistance.c | 136 + .../GNSS-AcquisitionAssistance.h | 6 +- .../GNSS-AcquisitionAssistanceReq.c | 66 + .../GNSS-AcquisitionAssistanceReq.h | 4 +- .../GNSS-AcquisitionAssistanceSupport.c | 194 + .../GNSS-AcquisitionAssistanceSupport.h | 8 +- asn.1/lpp_generated/GNSS-Almanac.c | 558 + asn.1/lpp_generated/GNSS-Almanac.h | 64 + asn.1/lpp_generated/GNSS-AlmanacElement.c | 196 + .../GNSS-AlmanacElement.h | 4 +- asn.1/lpp_generated/GNSS-AlmanacList.c | 68 + .../GNSS-AlmanacList.h | 7 +- asn.1/lpp_generated/GNSS-AlmanacReq.c | 100 + .../GNSS-AlmanacReq.h | 6 +- asn.1/lpp_generated/GNSS-AlmanacSupport.c | 106 + .../GNSS-AlmanacSupport.h | 6 +- .../lpp_generated/GNSS-AuxiliaryInformation.c | 165 + .../GNSS-AuxiliaryInformation.h | 4 +- .../GNSS-AuxiliaryInformationReq.c | 43 + .../GNSS-AuxiliaryInformationReq.h | 4 +- .../GNSS-AuxiliaryInformationSupport.c | 43 + .../GNSS-AuxiliaryInformationSupport.h | 4 +- asn.1/lpp_generated/GNSS-BadSignalList.c | 68 + .../GNSS-BadSignalList.h | 7 +- asn.1/lpp_generated/GNSS-ClockModel.c | 196 + .../GNSS-ClockModel.h | 4 +- asn.1/lpp_generated/GNSS-CommonAssistData.c | 522 + asn.1/lpp_generated/GNSS-CommonAssistData.h | 88 + .../lpp_generated/GNSS-CommonAssistDataReq.c | 484 + .../lpp_generated/GNSS-CommonAssistDataReq.h | 84 + .../GNSS-CommonAssistanceDataSupport.c | 404 + .../GNSS-CommonAssistanceDataSupport.h | 77 + asn.1/lpp_generated/GNSS-DataBitAssistance.c | 168 + .../GNSS-DataBitAssistance.h | 6 +- .../lpp_generated/GNSS-DataBitAssistanceReq.c | 237 + .../GNSS-DataBitAssistanceReq.h | 11 +- .../GNSS-DataBitAssistanceSupport.c | 43 + .../GNSS-DataBitAssistanceSupport.h | 4 +- .../GNSS-DataBitsReqSatElement.c | 66 + .../GNSS-DataBitsReqSatElement.h | 4 +- asn.1/lpp_generated/GNSS-DataBitsReqSatList.c | 68 + .../GNSS-DataBitsReqSatList.h | 7 +- asn.1/lpp_generated/GNSS-DataBitsSatElement.c | 84 + .../GNSS-DataBitsSatElement.h | 4 +- asn.1/lpp_generated/GNSS-DataBitsSatList.c | 68 + .../GNSS-DataBitsSatList.h | 7 +- asn.1/lpp_generated/GNSS-DataBitsSgnElement.c | 122 + .../GNSS-DataBitsSgnElement.h | 4 +- asn.1/lpp_generated/GNSS-DataBitsSgnList.c | 68 + .../GNSS-DataBitsSgnList.h | 7 +- .../GNSS-DifferentialCorrections.c | 116 + .../GNSS-DifferentialCorrections.h | 4 +- .../GNSS-DifferentialCorrectionsReq.c | 84 + .../GNSS-DifferentialCorrectionsReq.h | 4 +- .../GNSS-DifferentialCorrectionsSupport.c | 84 + .../GNSS-DifferentialCorrectionsSupport.h | 4 +- .../GNSS-EarthOrientationParameters.c | 398 + .../GNSS-EarthOrientationParameters.h | 4 +- .../GNSS-EarthOrientationParametersReq.c | 43 + .../GNSS-EarthOrientationParametersReq.h | 4 +- .../GNSS-EarthOrientationParametersSupport.c | 43 + .../GNSS-EarthOrientationParametersSupport.h | 4 +- asn.1/lpp_generated/GNSS-FrequencyID-r15.c | 98 + .../GNSS-FrequencyID-r15.h | 4 +- asn.1/lpp_generated/GNSS-GenericAssistData.c | 68 + .../GNSS-GenericAssistData.h | 7 +- .../GNSS-GenericAssistDataElement.c | 962 ++ .../GNSS-GenericAssistDataElement.h | 133 + .../lpp_generated/GNSS-GenericAssistDataReq.c | 68 + .../GNSS-GenericAssistDataReq.h | 7 +- .../GNSS-GenericAssistDataReqElement.c | 962 ++ .../GNSS-GenericAssistDataReqElement.h | 133 + .../GNSS-GenericAssistDataSupportElement.c | 962 ++ .../GNSS-GenericAssistDataSupportElement.h | 133 + .../GNSS-GenericAssistanceDataSupport.c | 68 + .../GNSS-GenericAssistanceDataSupport.h | 7 +- .../GNSS-ID-BDS-SatElement-r16.c | 116 + .../GNSS-ID-BDS-SatElement-r16.h | 4 +- asn.1/lpp_generated/GNSS-ID-BDS-r16.c | 68 + .../GNSS-ID-BDS-r16.h | 7 +- asn.1/lpp_generated/GNSS-ID-Bitmap.c | 104 + .../GNSS-ID-Bitmap.h | 6 +- .../GNSS-ID-GLONASS-SatElement.c | 136 + .../GNSS-ID-GLONASS-SatElement.h | 6 +- asn.1/lpp_generated/GNSS-ID-GLONASS.c | 68 + .../GNSS-ID-GLONASS.h | 7 +- asn.1/lpp_generated/GNSS-ID-GPS-SatElement.c | 84 + .../GNSS-ID-GPS-SatElement.h | 4 +- asn.1/lpp_generated/GNSS-ID-GPS.c | 68 + .../GNSS-ID-GPS.h | 7 +- asn.1/lpp_generated/GNSS-ID.c | 134 + asn.1/{generated => lpp_generated}/GNSS-ID.h | 6 +- .../GNSS-Integrity-ServiceAlert-r17.c | 84 + .../GNSS-Integrity-ServiceAlert-r17.h | 45 + .../GNSS-Integrity-ServiceAlertReq-r17.c | 43 + .../GNSS-Integrity-ServiceAlertReq-r17.h | 41 + .../GNSS-Integrity-ServiceAlertSupport-r17.c | 43 + .../GNSS-Integrity-ServiceAlertSupport-r17.h | 41 + .../GNSS-Integrity-ServiceParameters-r17.c | 148 + .../GNSS-Integrity-ServiceParameters-r17.h | 45 + .../GNSS-Integrity-ServiceParametersReq-r17.c | 43 + .../GNSS-Integrity-ServiceParametersReq-r17.h | 41 + ...S-Integrity-ServiceParametersSupport-r17.c | 43 + ...S-Integrity-ServiceParametersSupport-r17.h | 41 + asn.1/lpp_generated/GNSS-IonosphericModel.c | 168 + asn.1/lpp_generated/GNSS-IonosphericModel.h | 55 + .../lpp_generated/GNSS-IonosphericModelReq.c | 203 + .../lpp_generated/GNSS-IonosphericModelReq.h | 52 + .../GNSS-IonosphericModelSupport.c | 104 + .../GNSS-IonosphericModelSupport.h | 4 +- .../lpp_generated/GNSS-LOS-InfoElement-r18.c | 142 + .../lpp_generated/GNSS-LOS-InfoElement-r18.h | 54 + asn.1/lpp_generated/GNSS-LOS-InfoList-r18.c | 68 + asn.1/lpp_generated/GNSS-LOS-InfoList-r18.h | 44 + .../GNSS-LOS-NLOS-GridPoints-r18.c | 187 + .../GNSS-LOS-NLOS-GridPoints-r18.h | 51 + .../GNSS-LOS-NLOS-GriddedIndications-r18.c | 136 + .../GNSS-LOS-NLOS-GriddedIndications-r18.h | 48 + .../GNSS-LOS-NLOS-GriddedIndicationsReq-r18.c | 500 + .../GNSS-LOS-NLOS-GriddedIndicationsReq-r18.h | 93 + ...S-LOS-NLOS-GriddedIndicationsSupport-r18.c | 43 + ...S-LOS-NLOS-GriddedIndicationsSupport-r18.h | 41 + .../GNSS-Link-Combinations-r15.c | 84 + .../GNSS-Link-Combinations-r15.h | 4 +- .../GNSS-Link-CombinationsList-r15.c | 68 + .../GNSS-Link-CombinationsList-r15.h | 7 +- .../lpp_generated/GNSS-LocationInformation.c | 166 + .../lpp_generated/GNSS-LocationInformation.h | 55 + .../GNSS-LocationServerErrorCauses.c | 36 +- .../GNSS-LocationServerErrorCauses.h | 4 +- .../GNSS-MeasurementForOneGNSS.c | 84 + .../GNSS-MeasurementForOneGNSS.h | 4 +- asn.1/lpp_generated/GNSS-MeasurementList.c | 68 + .../GNSS-MeasurementList.h | 7 +- asn.1/lpp_generated/GNSS-NavListInfo-r15.c | 68 + .../GNSS-NavListInfo-r15.h | 7 +- .../GNSS-NavModelSatelliteElement.c | 333 + .../GNSS-NavModelSatelliteElement.h | 6 +- .../GNSS-NavModelSatelliteList.c | 68 + .../GNSS-NavModelSatelliteList.h | 7 +- asn.1/lpp_generated/GNSS-NavigationModel.c | 116 + .../GNSS-NavigationModel.h | 4 +- asn.1/lpp_generated/GNSS-NavigationModelReq.c | 88 + .../GNSS-NavigationModelReq.h | 4 +- .../GNSS-NavigationModelSupport.c | 162 + .../GNSS-NavigationModelSupport.h | 8 +- asn.1/lpp_generated/GNSS-NetworkID-r15.c | 98 + .../GNSS-NetworkID-r15.h | 4 +- .../lpp_generated/GNSS-ObservationList-r15.c | 68 + .../GNSS-ObservationList-r15.h | 7 +- asn.1/lpp_generated/GNSS-OrbitModel.c | 196 + .../GNSS-OrbitModel.h | 7 +- .../GNSS-PeriodicAssistData-r15.c | 601 ++ .../GNSS-PeriodicAssistData-r15.h | 82 + .../GNSS-PeriodicAssistDataReq-r15.c | 601 ++ .../GNSS-PeriodicAssistDataReq-r15.h | 82 + .../GNSS-PeriodicControlParam-r15.c | 148 + .../GNSS-PeriodicControlParam-r15.h | 4 +- .../GNSS-PositioningInstructions.c | 406 + .../GNSS-PositioningInstructions.h | 72 + .../GNSS-RTK-AuxiliaryStationData-r15.c | 123 + .../GNSS-RTK-AuxiliaryStationData-r15.h | 9 +- .../GNSS-RTK-AuxiliaryStationDataReq-r15.c | 69 + .../GNSS-RTK-AuxiliaryStationDataReq-r15.h | 9 +- ...GNSS-RTK-AuxiliaryStationDataSupport-r15.c | 43 + ...GNSS-RTK-AuxiliaryStationDataSupport-r15.h | 4 +- .../GNSS-RTK-CommonObservationInfo-r15.c | 278 + .../GNSS-RTK-CommonObservationInfo-r15.h | 4 +- .../GNSS-RTK-FKP-Gradients-r15.c | 141 + .../GNSS-RTK-FKP-Gradients-r15.h | 11 +- .../GNSS-RTK-FKP-GradientsReq-r15.c | 88 + .../GNSS-RTK-FKP-GradientsReq-r15.h | 48 + .../GNSS-RTK-FKP-GradientsSupport-r15.c | 66 + .../GNSS-RTK-FKP-GradientsSupport-r15.h | 4 +- .../GNSS-RTK-MAC-CorrectionDifferences-r15.c | 160 + .../GNSS-RTK-MAC-CorrectionDifferences-r15.h | 14 +- ...NSS-RTK-MAC-CorrectionDifferencesReq-r15.c | 107 + ...NSS-RTK-MAC-CorrectionDifferencesReq-r15.h | 15 +- ...RTK-MAC-CorrectionDifferencesSupport-r15.c | 66 + ...RTK-MAC-CorrectionDifferencesSupport-r15.h | 4 +- .../lpp_generated/GNSS-RTK-Observations-r15.c | 84 + .../GNSS-RTK-Observations-r15.h | 4 +- .../GNSS-RTK-ObservationsReq-r15.c | 141 + .../GNSS-RTK-ObservationsReq-r15.h | 9 +- .../GNSS-RTK-ObservationsSupport-r15.c | 66 + .../GNSS-RTK-ObservationsSupport-r15.h | 4 +- .../GNSS-RTK-ReferenceStationInfo-r15.c | 497 + .../GNSS-RTK-ReferenceStationInfo-r15.h | 20 +- .../GNSS-RTK-ReferenceStationInfoReq-r15.c | 123 + .../GNSS-RTK-ReferenceStationInfoReq-r15.h | 9 +- ...GNSS-RTK-ReferenceStationInfoSupport-r15.c | 43 + ...GNSS-RTK-ReferenceStationInfoSupport-r15.h | 4 +- asn.1/lpp_generated/GNSS-RTK-Residuals-r15.c | 191 + .../GNSS-RTK-Residuals-r15.h | 11 +- .../lpp_generated/GNSS-RTK-ResidualsReq-r15.c | 88 + .../lpp_generated/GNSS-RTK-ResidualsReq-r15.h | 48 + .../GNSS-RTK-ResidualsSupport-r15.c | 66 + .../GNSS-RTK-ResidualsSupport-r15.h | 4 +- .../GNSS-RTK-SatelliteDataElement-r15.c | 236 + .../GNSS-RTK-SatelliteDataElement-r15.h | 8 +- .../GNSS-RTK-SatelliteSignalDataElement-r15.c | 374 + .../GNSS-RTK-SatelliteSignalDataElement-r15.h | 8 +- .../GNSS-RTK-SatelliteSignalDataList-r15.c | 68 + .../GNSS-RTK-SatelliteSignalDataList-r15.h | 7 +- asn.1/lpp_generated/GNSS-RealTimeIntegrity.c | 66 + .../GNSS-RealTimeIntegrity.h | 4 +- .../lpp_generated/GNSS-RealTimeIntegrityReq.c | 43 + .../GNSS-RealTimeIntegrityReq.h | 4 +- .../GNSS-RealTimeIntegritySupport.c | 43 + .../GNSS-RealTimeIntegritySupport.h | 4 +- asn.1/lpp_generated/GNSS-ReferenceLocation.c | 66 + .../GNSS-ReferenceLocation.h | 4 +- .../lpp_generated/GNSS-ReferenceLocationReq.c | 43 + .../GNSS-ReferenceLocationReq.h | 4 +- .../GNSS-ReferenceLocationSupport.c | 43 + .../GNSS-ReferenceLocationSupport.h | 4 +- .../GNSS-ReferenceStationID-r15.c | 165 + .../GNSS-ReferenceStationID-r15.h | 6 +- asn.1/lpp_generated/GNSS-ReferenceTime.c | 230 + .../GNSS-ReferenceTime.h | 9 +- .../GNSS-ReferenceTimeForOneCell.c | 190 + .../GNSS-ReferenceTimeForOneCell.h | 6 +- asn.1/lpp_generated/GNSS-ReferenceTimeReq.c | 198 + .../GNSS-ReferenceTimeReq.h | 11 +- .../lpp_generated/GNSS-ReferenceTimeSupport.c | 87 + .../GNSS-ReferenceTimeSupport.h | 9 +- .../GNSS-SSR-ArrayOfCorrectionPoints-r16.c | 406 + .../GNSS-SSR-ArrayOfCorrectionPoints-r16.h | 6 +- .../GNSS-SSR-ClockCorrections-r15.c | 266 + .../GNSS-SSR-ClockCorrections-r15.h | 58 + .../GNSS-SSR-ClockCorrectionsReq-r15.c | 274 + .../GNSS-SSR-ClockCorrectionsReq-r15.h | 64 + .../GNSS-SSR-ClockCorrectionsSet2-r17.c | 140 + .../GNSS-SSR-ClockCorrectionsSet2-r17.h | 55 + .../GNSS-SSR-ClockCorrectionsSet2Req-r17.c | 143 + .../GNSS-SSR-ClockCorrectionsSet2Req-r17.h | 57 + ...GNSS-SSR-ClockCorrectionsSet2Support-r17.c | 43 + ...GNSS-SSR-ClockCorrectionsSet2Support-r17.h | 41 + .../GNSS-SSR-ClockCorrectionsSupport-r15.c | 255 + .../GNSS-SSR-ClockCorrectionsSupport-r15.h | 60 + asn.1/lpp_generated/GNSS-SSR-CodeBias-r15.c | 184 + .../GNSS-SSR-CodeBias-r15.h | 4 +- .../lpp_generated/GNSS-SSR-CodeBiasReq-r15.c | 220 + .../lpp_generated/GNSS-SSR-CodeBiasReq-r15.h | 61 + .../GNSS-SSR-CodeBiasSupport-r15.c | 201 + .../GNSS-SSR-CodeBiasSupport-r15.h | 57 + .../GNSS-SSR-CorrectionPoints-r16.c | 196 + .../GNSS-SSR-CorrectionPoints-r16.h | 4 +- .../GNSS-SSR-CorrectionPointsReq-r16.c | 100 + .../GNSS-SSR-CorrectionPointsReq-r16.h | 6 +- .../GNSS-SSR-GriddedCorrection-r16.c | 372 + .../GNSS-SSR-GriddedCorrection-r16.h | 61 + .../GNSS-SSR-GriddedCorrectionReq-r16.c | 183 + .../GNSS-SSR-GriddedCorrectionReq-r16.h | 55 + .../GNSS-SSR-GriddedCorrectionSupport-r16.c | 183 + .../GNSS-SSR-GriddedCorrectionSupport-r16.h | 55 + asn.1/lpp_generated/GNSS-SSR-IOD-Update-r18.c | 216 + asn.1/lpp_generated/GNSS-SSR-IOD-Update-r18.h | 48 + .../GNSS-SSR-IOD-UpdateReq-r18.c | 43 + .../GNSS-SSR-IOD-UpdateReq-r18.h | 41 + .../GNSS-SSR-IOD-UpdateSupport-r18.c | 43 + .../GNSS-SSR-IOD-UpdateSupport-r18.h | 41 + .../GNSS-SSR-ListOfCorrectionPoints-r16.c | 260 + .../GNSS-SSR-ListOfCorrectionPoints-r16.h | 11 +- .../GNSS-SSR-OrbitCorrections-r15.c | 342 + .../GNSS-SSR-OrbitCorrections-r15.h | 15 +- .../GNSS-SSR-OrbitCorrectionsReq-r15.c | 186 + .../GNSS-SSR-OrbitCorrectionsReq-r15.h | 58 + .../GNSS-SSR-OrbitCorrectionsSet2-r17.c | 140 + .../GNSS-SSR-OrbitCorrectionsSet2-r17.h | 55 + .../GNSS-SSR-OrbitCorrectionsSet2Req-r17.c | 143 + .../GNSS-SSR-OrbitCorrectionsSet2Req-r17.h | 57 + ...GNSS-SSR-OrbitCorrectionsSet2Support-r17.c | 43 + ...GNSS-SSR-OrbitCorrectionsSet2Support-r17.h | 41 + .../GNSS-SSR-OrbitCorrectionsSupport-r15.c | 167 + .../GNSS-SSR-OrbitCorrectionsSupport-r15.h | 54 + asn.1/lpp_generated/GNSS-SSR-PhaseBias-r16.c | 184 + .../GNSS-SSR-PhaseBias-r16.h | 4 +- .../lpp_generated/GNSS-SSR-PhaseBiasReq-r16.c | 220 + .../lpp_generated/GNSS-SSR-PhaseBiasReq-r16.h | 61 + .../GNSS-SSR-PhaseBiasSupport-r16.c | 201 + .../GNSS-SSR-PhaseBiasSupport-r16.h | 57 + .../GNSS-SSR-STEC-Correction-r16.c | 316 + .../GNSS-SSR-STEC-Correction-r16.h | 59 + .../GNSS-SSR-STEC-CorrectionReq-r16.c | 167 + .../GNSS-SSR-STEC-CorrectionReq-r16.h | 54 + .../GNSS-SSR-STEC-CorrectionSupport-r16.c | 167 + .../GNSS-SSR-STEC-CorrectionSupport-r16.h | 54 + .../GNSS-SSR-SatellitePCVResiduals-r18.c | 116 + .../GNSS-SSR-SatellitePCVResiduals-r18.h | 46 + .../GNSS-SSR-SatellitePCVResidualsReq-r18.c | 43 + .../GNSS-SSR-SatellitePCVResidualsReq-r18.h | 41 + ...NSS-SSR-SatellitePCVResidualsSupport-r18.c | 43 + ...NSS-SSR-SatellitePCVResidualsSupport-r18.h | 41 + asn.1/lpp_generated/GNSS-SSR-URA-Req-r16.c | 43 + .../GNSS-SSR-URA-Req-r16.h | 4 +- asn.1/lpp_generated/GNSS-SSR-URA-Set2-r17.c | 140 + asn.1/lpp_generated/GNSS-SSR-URA-Set2-r17.h | 55 + .../lpp_generated/GNSS-SSR-URA-Set2Req-r17.c | 122 + .../lpp_generated/GNSS-SSR-URA-Set2Req-r17.h | 53 + .../GNSS-SSR-URA-Set2Support-r17.c | 43 + .../GNSS-SSR-URA-Set2Support-r17.h | 41 + .../lpp_generated/GNSS-SSR-URA-Support-r16.c | 43 + .../GNSS-SSR-URA-Support-r16.h | 4 +- asn.1/lpp_generated/GNSS-SSR-URA-r16.c | 184 + .../GNSS-SSR-URA-r16.h | 4 +- asn.1/lpp_generated/GNSS-SatMeasElement.c | 783 ++ .../GNSS-SatMeasElement.h | 20 +- asn.1/lpp_generated/GNSS-SatMeasList.c | 68 + .../GNSS-SatMeasList.h | 7 +- asn.1/lpp_generated/GNSS-SgnMeasElement.c | 136 + .../GNSS-SgnMeasElement.h | 6 +- asn.1/lpp_generated/GNSS-SgnMeasList.c | 68 + .../GNSS-SgnMeasList.h | 7 +- asn.1/lpp_generated/GNSS-SignalID.c | 211 + .../GNSS-SignalID.h | 6 +- asn.1/lpp_generated/GNSS-SignalIDs.c | 223 + .../GNSS-SignalIDs.h | 6 +- .../GNSS-SignalMeasurementInformation.c | 84 + .../GNSS-SignalMeasurementInformation.h | 4 +- asn.1/lpp_generated/GNSS-SubNetworkID-r15.c | 98 + .../GNSS-SubNetworkID-r15.h | 4 +- asn.1/lpp_generated/GNSS-SupportElement.c | 539 + asn.1/lpp_generated/GNSS-SupportElement.h | 92 + asn.1/lpp_generated/GNSS-SupportList.c | 68 + .../GNSS-SupportList.h | 7 +- asn.1/lpp_generated/GNSS-SystemTime.c | 293 + asn.1/lpp_generated/GNSS-SystemTime.h | 54 + .../GNSS-TargetDeviceErrorCauses.c | 317 + .../GNSS-TargetDeviceErrorCauses.h | 70 + asn.1/lpp_generated/GNSS-TimeModelElement.c | 400 + asn.1/lpp_generated/GNSS-TimeModelElement.h | 50 + .../lpp_generated/GNSS-TimeModelElementReq.c | 116 + .../GNSS-TimeModelElementReq.h | 4 +- asn.1/lpp_generated/GNSS-TimeModelList.c | 68 + .../GNSS-TimeModelList.h | 7 +- asn.1/lpp_generated/GNSS-TimeModelListReq.c | 68 + .../GNSS-TimeModelListReq.h | 7 +- .../lpp_generated/GNSS-TimeModelListSupport.c | 43 + .../GNSS-TimeModelListSupport.h | 4 +- asn.1/lpp_generated/GNSS-UTC-Model.c | 142 + .../GNSS-UTC-Model.h | 4 +- asn.1/lpp_generated/GNSS-UTC-ModelReq.c | 100 + .../GNSS-UTC-ModelReq.h | 6 +- asn.1/lpp_generated/GNSS-UTC-ModelSupport.c | 106 + .../GNSS-UTC-ModelSupport.h | 6 +- asn.1/lpp_generated/GPS-TOW-Assist.c | 68 + .../GPS-TOW-Assist.h | 7 +- asn.1/lpp_generated/GPS-TOW-AssistElement.c | 298 + .../GPS-TOW-AssistElement.h | 4 +- ...eric-Corrections-Differences-Element-r15.c | 322 + ...eric-Corrections-Differences-Element-r15.h | 4 +- ...-Ionospheric-Corrections-Differences-r15.c | 68 + ...-Ionospheric-Corrections-Differences-r15.h | 7 +- asn.1/lpp_generated/GridElement-r16.c | 88 + asn.1/lpp_generated/GridElement-r16.h | 48 + asn.1/lpp_generated/GridElement-r18.c | 69 + asn.1/lpp_generated/GridElement-r18.h | 46 + asn.1/lpp_generated/GridIonElement-r12.c | 198 + .../GridIonElement-r12.h | 4 +- asn.1/lpp_generated/GridIonList-r12.c | 68 + .../GridIonList-r12.h | 7 +- asn.1/lpp_generated/GridList-r16.c | 68 + .../GridList-r16.h | 7 +- asn.1/lpp_generated/GridList-r18.c | 68 + asn.1/lpp_generated/GridList-r18.h | 44 + ...itudeAndScalableUncertaintyEllipsoid-r16.c | 534 + ...itudeAndScalableUncertaintyEllipsoid-r16.h | 51 + ...dPointWithScalableUncertaintyEllipse-r16.c | 366 + ...dPointWithScalableUncertaintyEllipse-r16.h | 47 + asn.1/lpp_generated/HA-GNSS-Metrics-r17.c | 326 + asn.1/lpp_generated/HA-GNSS-Metrics-r17.h | 59 + ...tWithAltitudeAndUncertaintyEllipsoid-r15.c | 498 + ...tWithAltitudeAndUncertaintyEllipsoid-r15.h | 4 +- ...EllipsoidPointWithUncertaintyEllipse-r15.c | 348 + ...EllipsoidPointWithUncertaintyEllipse-r15.h | 4 +- asn.1/lpp_generated/HorizontalAccuracy.c | 148 + .../HorizontalAccuracy.h | 4 +- .../lpp_generated/HorizontalAccuracyExt-r15.c | 148 + .../HorizontalAccuracyExt-r15.h | 4 +- asn.1/lpp_generated/HorizontalVelocity.c | 148 + .../HorizontalVelocity.h | 4 +- .../HorizontalVelocityWithUncertainty.c | 198 + .../HorizontalVelocityWithUncertainty.h | 4 +- .../HorizontalWithVerticalVelocity.c | 272 + .../HorizontalWithVerticalVelocity.h | 4 +- ...zontalWithVerticalVelocityAndUncertainty.c | 372 + ...zontalWithVerticalVelocityAndUncertainty.h | 4 +- asn.1/lpp_generated/Initiator.c | 65 + .../{generated => lpp_generated}/Initiator.h | 8 +- asn.1/lpp_generated/IntegrityInfo-r17.c | 200 + asn.1/lpp_generated/IntegrityInfo-r17.h | 46 + .../KlobucharModel2Parameter-r16.c | 498 + .../KlobucharModel2Parameter-r16.h | 4 +- asn.1/lpp_generated/KlobucharModelParameter.c | 504 + .../KlobucharModelParameter.h | 4 +- .../LCS-GCS-TranslationParameter-r16.c | 350 + .../LCS-GCS-TranslationParameter-r16.h | 49 + asn.1/lpp_generated/LOS-NLOS-Indicator-r17.c | 178 + asn.1/lpp_generated/LOS-NLOS-Indicator-r17.h | 62 + .../LOS-NLOS-IndicatorGranularity1-r17.c | 63 + .../LOS-NLOS-IndicatorGranularity1-r17.h | 47 + .../LOS-NLOS-IndicatorGranularity2-r17.c | 65 + .../LOS-NLOS-IndicatorGranularity2-r17.h | 48 + .../LOS-NLOS-IndicatorType1-r17.c | 63 + .../LOS-NLOS-IndicatorType1-r17.h | 47 + .../LOS-NLOS-IndicatorType2-r17.c | 63 + .../LOS-NLOS-IndicatorType2-r17.h | 47 + asn.1/lpp_generated/LPP-Message.c | 143 + asn.1/lpp_generated/LPP-Message.h | 48 + asn.1/lpp_generated/LPP-MessageBody.c | 456 + .../LPP-MessageBody.h | 4 +- asn.1/lpp_generated/LPP-TransactionID.c | 84 + .../LPP-TransactionID.h | 4 +- .../Local2dPointWithUncertaintyEllipse-r18.c | 382 + .../Local2dPointWithUncertaintyEllipse-r18.h | 63 + ...Local3dPointWithUncertaintyEllipsoid-r18.c | 450 + ...Local3dPointWithUncertaintyEllipsoid-r18.h | 66 + asn.1/lpp_generated/LocalOrigin-r18.c | 134 + asn.1/lpp_generated/LocalOrigin-r18.h | 48 + asn.1/lpp_generated/LocationCoordinateTypes.c | 467 + asn.1/lpp_generated/LocationCoordinateTypes.h | 71 + asn.1/lpp_generated/LocationCoordinates.c | 286 + asn.1/lpp_generated/LocationCoordinates.h | 91 + asn.1/lpp_generated/LocationDataLCI-r14.c | 442 + asn.1/lpp_generated/LocationDataLCI-r14.h | 50 + asn.1/lpp_generated/LocationError.c | 66 + .../LocationError.h | 4 +- asn.1/lpp_generated/LocationFailureCause.c | 69 + .../LocationFailureCause.h | 8 +- asn.1/lpp_generated/LocationInformationType.c | 71 + .../LocationInformationType.h | 11 +- asn.1/lpp_generated/LocationSource-r13.c | 77 + asn.1/lpp_generated/LocationSource-r13.h | 53 + asn.1/lpp_generated/LocationUncertainty-r16.c | 248 + asn.1/lpp_generated/LocationUncertainty-r16.h | 43 + .../MBS-AcquisitionAssistance-r14.c | 280 + .../MBS-AcquisitionAssistance-r14.h | 12 +- .../lpp_generated/MBS-AlmanacAssistance-r14.c | 318 + .../MBS-AlmanacAssistance-r14.h | 6 +- .../MBS-AssistanceDataElement-r14.c | 88 + .../MBS-AssistanceDataElement-r14.h | 48 + .../MBS-AssistanceDataList-r14.c | 68 + .../MBS-AssistanceDataList-r14.h | 7 +- .../MBS-AssistanceDataSupportList-r14.c | 84 + .../MBS-AssistanceDataSupportList-r14.h | 4 +- .../lpp_generated/MBS-BeaconMeasElement-r13.c | 311 + .../MBS-BeaconMeasElement-r13.h | 6 +- asn.1/lpp_generated/MBS-BeaconMeasList-r13.c | 68 + .../MBS-BeaconMeasList-r13.h | 7 +- asn.1/lpp_generated/MeasQuantityResults-r16.c | 150 + asn.1/lpp_generated/MeasQuantityResults-r16.h | 41 + asn.1/lpp_generated/MeasuredResultsElement.c | 818 ++ asn.1/lpp_generated/MeasuredResultsElement.h | 79 + asn.1/lpp_generated/MeasuredResultsList.c | 68 + .../MeasuredResultsList.h | 7 +- .../lpp_generated/MeasurementReferenceTime.c | 1694 +++ .../MeasurementReferenceTime.h | 30 +- asn.1/lpp_generated/MessageSizeLimitNB-r14.c | 100 + .../MessageSizeLimitNB-r14.h | 6 +- asn.1/lpp_generated/MotionTimeSource-r15.c | 132 + .../MotionTimeSource-r15.h | 4 +- .../Multi-RTT-MeasCapabilityPerBand-r17.c | 1003 ++ .../Multi-RTT-MeasCapabilityPerBand-r17.h | 117 + asn.1/lpp_generated/NAV-ClockModel.c | 298 + .../NAV-ClockModel.h | 4 +- asn.1/lpp_generated/NCGI-r15.c | 390 + asn.1/{generated => lpp_generated}/NCGI-r15.h | 4 +- asn.1/lpp_generated/NPRS-Info-r14.c | 2090 ++++ .../NPRS-Info-r14.h | 15 +- asn.1/lpp_generated/NR-AdditionalPath-r16.c | 842 ++ asn.1/lpp_generated/NR-AdditionalPath-r16.h | 96 + .../lpp_generated/NR-AdditionalPathList-r16.c | 68 + .../NR-AdditionalPathList-r16.h | 7 +- .../NR-AdditionalPathListExt-r17.c | 68 + .../NR-AdditionalPathListExt-r17.h | 44 + ...gregatedDL-PRS-ResourceSetID-Element-r18.c | 116 + ...gregatedDL-PRS-ResourceSetID-Element-r18.h | 46 + asn.1/lpp_generated/NR-Cell-IDs-r17.c | 105 + asn.1/lpp_generated/NR-Cell-IDs-r17.h | 50 + ...-DL-AoD-AdditionalMeasurementElement-r16.c | 204 + ...-DL-AoD-AdditionalMeasurementElement-r16.h | 51 + ...-DL-AoD-AdditionalMeasurementElement-r17.c | 273 + ...-DL-AoD-AdditionalMeasurementElement-r17.h | 56 + .../NR-DL-AoD-AdditionalMeasurements-r16.c | 68 + .../NR-DL-AoD-AdditionalMeasurements-r16.h | 7 +- .../NR-DL-AoD-AdditionalMeasurementsExt-r17.c | 68 + .../NR-DL-AoD-AdditionalMeasurementsExt-r17.h | 44 + asn.1/lpp_generated/NR-DL-AoD-Error-r16.c | 88 + .../NR-DL-AoD-Error-r16.h | 4 +- .../NR-DL-AoD-LocationInformation-r16.c | 246 + .../NR-DL-AoD-LocationInformation-r16.h | 17 +- .../NR-DL-AoD-LocationServerErrorCauses-r16.c | 132 + .../NR-DL-AoD-LocationServerErrorCauses-r16.h | 8 +- .../lpp_generated/NR-DL-AoD-MeasElement-r16.c | 556 + .../lpp_generated/NR-DL-AoD-MeasElement-r16.h | 89 + asn.1/lpp_generated/NR-DL-AoD-MeasList-r16.c | 68 + .../NR-DL-AoD-MeasList-r16.h | 7 +- .../NR-DL-AoD-MeasurementCapability-r16.c | 471 + .../NR-DL-AoD-MeasurementCapability-r16.h | 76 + .../NR-DL-AoD-ProvideAssistanceData-r16.c | 263 + .../NR-DL-AoD-ProvideAssistanceData-r16.h | 65 + .../NR-DL-AoD-ProvideCapabilities-r16.c | 1455 +++ .../NR-DL-AoD-ProvideCapabilities-r16.h | 182 + ...NR-DL-AoD-ProvideLocationInformation-r16.c | 390 + ...NR-DL-AoD-ProvideLocationInformation-r16.h | 69 + .../NR-DL-AoD-ReportConfig-r16.c | 582 + .../NR-DL-AoD-ReportConfig-r16.h | 89 + .../NR-DL-AoD-RequestAssistanceData-r16.c | 534 + .../NR-DL-AoD-RequestAssistanceData-r16.h | 97 + .../NR-DL-AoD-RequestCapabilities-r16.c | 43 + .../NR-DL-AoD-RequestCapabilities-r16.h | 4 +- ...NR-DL-AoD-RequestLocationInformation-r16.c | 568 + ...NR-DL-AoD-RequestLocationInformation-r16.h | 98 + ...-DL-AoD-SignalMeasurementInformation-r16.c | 66 + ...-DL-AoD-SignalMeasurementInformation-r16.h | 4 +- .../NR-DL-AoD-TargetDeviceErrorCauses-r16.c | 267 + .../NR-DL-AoD-TargetDeviceErrorCauses-r16.h | 68 + .../NR-DL-PRS-AggregationElement-r18.c | 198 + .../NR-DL-PRS-AggregationElement-r18.h | 42 + .../NR-DL-PRS-AggregationInfo-r18.c | 68 + .../NR-DL-PRS-AggregationInfo-r18.h | 44 + .../NR-DL-PRS-AssistanceData-r16.c | 372 + .../NR-DL-PRS-AssistanceData-r16.h | 69 + .../NR-DL-PRS-AssistanceDataPerFreq-r16.c | 178 + .../NR-DL-PRS-AssistanceDataPerFreq-r16.h | 16 +- .../NR-DL-PRS-AssistanceDataPerTRP-r16.c | 504 + .../NR-DL-PRS-AssistanceDataPerTRP-r16.h | 78 + asn.1/lpp_generated/NR-DL-PRS-BeamInfo-r16.c | 68 + asn.1/lpp_generated/NR-DL-PRS-BeamInfo-r16.h | 44 + .../NR-DL-PRS-BeamInfoPerFreqLayer-r16.c | 68 + .../NR-DL-PRS-BeamInfoPerFreqLayer-r16.h | 44 + .../NR-DL-PRS-BeamInfoPerTRP-r16.c | 243 + .../NR-DL-PRS-BeamInfoPerTRP-r16.h | 57 + .../NR-DL-PRS-ExpectedAoD-or-AoA-r17.c | 574 + .../NR-DL-PRS-ExpectedAoD-or-AoA-r17.h | 69 + ...R-DL-PRS-ExpectedLOS-NLOS-Assistance-r17.c | 68 + ...R-DL-PRS-ExpectedLOS-NLOS-Assistance-r17.h | 44 + ...ectedLOS-NLOS-AssistancePerFreqLayer-r17.c | 68 + ...ectedLOS-NLOS-AssistancePerFreqLayer-r17.h | 44 + ...pectedLOS-NLOS-AssistancePerResource-r17.c | 68 + ...pectedLOS-NLOS-AssistancePerResource-r17.h | 44 + ...RS-ExpectedLOS-NLOS-AssistancePerTRP-r17.c | 347 + ...RS-ExpectedLOS-NLOS-AssistancePerTRP-r17.h | 79 + asn.1/lpp_generated/NR-DL-PRS-Info-r16.c | 160 + asn.1/lpp_generated/NR-DL-PRS-Info-r16.h | 53 + ...-DL-PRS-MeasurementTimeWindowsConfig-r18.c | 68 + ...-DL-PRS-MeasurementTimeWindowsConfig-r18.h | 44 + ...-MeasurementTimeWindowsConfigElement-r18.c | 417 + ...-MeasurementTimeWindowsConfigElement-r18.h | 76 + ...eriodicity-and-ResourceSetSlotOffset-r16.c | 3700 +++++++ ...eriodicity-and-ResourceSetSlotOffset-r16.h | 4 +- .../NR-DL-PRS-PositioningFrequencyLayer-r16.c | 402 + .../NR-DL-PRS-PositioningFrequencyLayer-r16.h | 4 +- .../NR-DL-PRS-ProcessingCapability-r16.c | 421 + .../NR-DL-PRS-ProcessingCapability-r16.h | 77 + .../NR-DL-PRS-QCL-ProcessingCapability-r16.c | 160 + .../NR-DL-PRS-QCL-ProcessingCapability-r16.h | 53 + asn.1/lpp_generated/NR-DL-PRS-Resource-r16.c | 690 ++ asn.1/lpp_generated/NR-DL-PRS-Resource-r16.h | 93 + .../lpp_generated/NR-DL-PRS-ResourceID-r16.c | 71 + .../lpp_generated/NR-DL-PRS-ResourceID-r16.h | 40 + .../lpp_generated/NR-DL-PRS-ResourceSet-r16.c | 536 + .../lpp_generated/NR-DL-PRS-ResourceSet-r16.h | 104 + .../NR-DL-PRS-ResourceSetID-r16.c | 71 + .../NR-DL-PRS-ResourceSetID-r16.h | 40 + .../NR-DL-PRS-ResourcesCapability-r16.c | 368 + .../NR-DL-PRS-ResourcesCapability-r16.h | 77 + .../lpp_generated/NR-DL-PRS-SFN0-Offset-r16.c | 148 + .../lpp_generated/NR-DL-PRS-SFN0-Offset-r16.h | 45 + .../NR-DL-PRS-TRP-TEG-Info-r17.c | 68 + .../NR-DL-PRS-TRP-TEG-Info-r17.h | 44 + .../NR-DL-PRS-TRP-TEG-InfoPerFreqLayer-r17.c | 68 + .../NR-DL-PRS-TRP-TEG-InfoPerFreqLayer-r17.h | 44 + .../NR-DL-PRS-TRP-TEG-InfoPerTRP-r17.c | 346 + .../NR-DL-PRS-TRP-TEG-InfoPerTRP-r17.h | 68 + .../NR-DL-PRSResourcePriorityItem-r17.c | 86 + .../NR-DL-PRSResourcePriorityItem-r17.h | 46 + ...DL-TDOA-AdditionalMeasurementElement-r16.c | 1552 +++ ...DL-TDOA-AdditionalMeasurementElement-r16.h | 146 + .../NR-DL-TDOA-AdditionalMeasurements-r16.c | 68 + .../NR-DL-TDOA-AdditionalMeasurements-r16.h | 7 +- ...NR-DL-TDOA-AdditionalMeasurementsExt-r17.c | 68 + ...NR-DL-TDOA-AdditionalMeasurementsExt-r17.h | 44 + asn.1/lpp_generated/NR-DL-TDOA-Error-r16.c | 88 + .../NR-DL-TDOA-Error-r16.h | 4 +- .../NR-DL-TDOA-LocationInformation-r16.c | 246 + .../NR-DL-TDOA-LocationInformation-r16.h | 17 +- ...NR-DL-TDOA-LocationServerErrorCauses-r16.c | 132 + ...NR-DL-TDOA-LocationServerErrorCauses-r16.h | 8 +- .../NR-DL-TDOA-MeasElement-r16.c | 1774 +++ .../NR-DL-TDOA-MeasElement-r16.h | 171 + asn.1/lpp_generated/NR-DL-TDOA-MeasList-r16.c | 68 + .../NR-DL-TDOA-MeasList-r16.h | 7 +- .../NR-DL-TDOA-MeasurementCapability-r16.c | 486 + .../NR-DL-TDOA-MeasurementCapability-r16.h | 76 + .../NR-DL-TDOA-ProvideAssistanceData-r16.c | 324 + .../NR-DL-TDOA-ProvideAssistanceData-r16.h | 70 + .../NR-DL-TDOA-ProvideCapabilities-r16.c | 1583 +++ .../NR-DL-TDOA-ProvideCapabilities-r16.h | 192 + ...R-DL-TDOA-ProvideLocationInformation-r16.c | 390 + ...R-DL-TDOA-ProvideLocationInformation-r16.h | 69 + .../NR-DL-TDOA-ReportConfig-r16.c | 571 + .../NR-DL-TDOA-ReportConfig-r16.h | 89 + .../NR-DL-TDOA-RequestAssistanceData-r16.c | 542 + .../NR-DL-TDOA-RequestAssistanceData-r16.h | 99 + .../NR-DL-TDOA-RequestCapabilities-r16.c | 43 + .../NR-DL-TDOA-RequestCapabilities-r16.h | 4 +- ...R-DL-TDOA-RequestLocationInformation-r16.c | 1284 +++ ...R-DL-TDOA-RequestLocationInformation-r16.h | 159 + ...DL-TDOA-SignalMeasurementInformation-r16.c | 165 + ...DL-TDOA-SignalMeasurementInformation-r16.h | 53 + .../NR-DL-TDOA-TargetDeviceErrorCauses-r16.c | 267 + .../NR-DL-TDOA-TargetDeviceErrorCauses-r16.h | 68 + asn.1/lpp_generated/NR-ECID-Error-r16.c | 88 + .../NR-ECID-Error-r16.h | 4 +- .../NR-ECID-LocationServerErrorCauses-r16.c | 122 + .../NR-ECID-LocationServerErrorCauses-r16.h | 4 +- .../NR-ECID-ProvideCapabilities-r16.c | 402 + .../NR-ECID-ProvideCapabilities-r16.h | 77 + .../NR-ECID-ProvideLocationInformation-r16.c | 88 + .../NR-ECID-ProvideLocationInformation-r16.h | 12 +- .../NR-ECID-RequestCapabilities-r16.c | 43 + .../NR-ECID-RequestCapabilities-r16.h | 4 +- .../NR-ECID-RequestLocationInformation-r16.c | 104 + .../NR-ECID-RequestLocationInformation-r16.h | 4 +- ...NR-ECID-SignalMeasurementInformation-r16.c | 87 + ...NR-ECID-SignalMeasurementInformation-r16.h | 9 +- .../NR-ECID-TargetDeviceErrorCauses-r16.c | 333 + .../NR-ECID-TargetDeviceErrorCauses-r16.h | 70 + .../NR-IntegrityBeamInfoBounds-r18.c | 248 + .../NR-IntegrityBeamInfoBounds-r18.h | 47 + .../NR-IntegrityBeamPowerBounds-r18.c | 148 + .../NR-IntegrityBeamPowerBounds-r18.h | 45 + .../NR-IntegrityLocationBounds-r18.c | 444 + .../NR-IntegrityLocationBounds-r18.h | 70 + ...R-IntegrityParametersDL-PRS-BeamInfo-r18.c | 98 + ...R-IntegrityParametersDL-PRS-BeamInfo-r18.h | 44 + .../NR-IntegrityParametersRTD-Info-r18.c | 98 + .../NR-IntegrityParametersRTD-Info-r18.h | 44 + ...tegrityParametersTRP-BeamAntennaInfo-r18.c | 98 + ...tegrityParametersTRP-BeamAntennaInfo-r18.h | 44 + ...-IntegrityParametersTRP-LocationInfo-r18.c | 98 + ...-IntegrityParametersTRP-LocationInfo-r18.h | 44 + .../NR-IntegrityRTD-InfoBounds-r18.c | 228 + .../NR-IntegrityRTD-InfoBounds-r18.h | 59 + .../NR-IntegrityRiskParameters-r18.c | 148 + .../NR-IntegrityRiskParameters-r18.h | 45 + .../NR-IntegrityServiceAlert-r18.c | 68 + .../NR-IntegrityServiceAlert-r18.h | 44 + .../NR-IntegrityServiceParameters-r18.c | 148 + .../NR-IntegrityServiceParameters-r18.h | 45 + .../NR-MeasuredResultsElement-r16.c | 316 + .../NR-MeasuredResultsElement-r16.h | 76 + .../NR-MeasuredResultsList-r16.c | 68 + .../NR-MeasuredResultsList-r16.h | 7 +- ...lti-RTT-AdditionalMeasurementElement-r16.c | 1540 +++ ...lti-RTT-AdditionalMeasurementElement-r16.h | 149 + .../NR-Multi-RTT-AdditionalMeasurements-r16.c | 68 + .../NR-Multi-RTT-AdditionalMeasurements-r16.h | 7 +- ...-Multi-RTT-AdditionalMeasurementsExt-r17.c | 68 + ...-Multi-RTT-AdditionalMeasurementsExt-r17.h | 44 + asn.1/lpp_generated/NR-Multi-RTT-Error-r16.c | 88 + .../NR-Multi-RTT-Error-r16.h | 4 +- ...-Multi-RTT-LocationServerErrorCauses-r16.c | 130 + ...-Multi-RTT-LocationServerErrorCauses-r16.h | 8 +- .../NR-Multi-RTT-MeasElement-r16.c | 1762 +++ .../NR-Multi-RTT-MeasElement-r16.h | 174 + .../lpp_generated/NR-Multi-RTT-MeasList-r16.c | 68 + .../NR-Multi-RTT-MeasList-r16.h | 7 +- .../NR-Multi-RTT-MeasurementCapability-r16.c | 630 ++ .../NR-Multi-RTT-MeasurementCapability-r16.h | 86 + .../NR-Multi-RTT-ProvideAssistanceData-r16.c | 225 + .../NR-Multi-RTT-ProvideAssistanceData-r16.h | 61 + .../NR-Multi-RTT-ProvideCapabilities-r16.c | 1331 +++ .../NR-Multi-RTT-ProvideCapabilities-r16.h | 159 + ...Multi-RTT-ProvideLocationInformation-r16.c | 260 + ...Multi-RTT-ProvideLocationInformation-r16.h | 61 + .../NR-Multi-RTT-ReportConfig-r16.c | 150 + .../NR-Multi-RTT-ReportConfig-r16.h | 41 + .../NR-Multi-RTT-RequestAssistanceData-r16.c | 350 + .../NR-Multi-RTT-RequestAssistanceData-r16.h | 73 + .../NR-Multi-RTT-RequestCapabilities-r16.c | 43 + .../NR-Multi-RTT-RequestCapabilities-r16.h | 4 +- ...Multi-RTT-RequestLocationInformation-r16.c | 1672 +++ ...Multi-RTT-RequestLocationInformation-r16.h | 206 + ...lti-RTT-SignalMeasurementInformation-r16.c | 436 + ...lti-RTT-SignalMeasurementInformation-r16.h | 84 + ...NR-Multi-RTT-TargetDeviceErrorCauses-r16.c | 267 + ...NR-Multi-RTT-TargetDeviceErrorCauses-r16.h | 68 + asn.1/lpp_generated/NR-MutingPattern-r16.c | 388 + asn.1/lpp_generated/NR-MutingPattern-r16.h | 66 + .../NR-NTN-UE-RxTxMeasurements-r18.c | 148 + .../NR-NTN-UE-RxTxMeasurements-r18.h | 41 + ...RS-Configurations-Selected-IndexList-r17.c | 68 + ...RS-Configurations-Selected-IndexList-r17.h | 44 + .../NR-On-Demand-DL-PRS-Configurations-r17.c | 335 + .../NR-On-Demand-DL-PRS-Configurations-r17.h | 65 + .../NR-On-Demand-DL-PRS-Information-r17.c | 68 + .../NR-On-Demand-DL-PRS-Information-r17.h | 44 + .../NR-On-Demand-DL-PRS-PerFreqLayer-r17.c | 559 + .../NR-On-Demand-DL-PRS-PerFreqLayer-r17.h | 126 + .../NR-On-Demand-DL-PRS-Request-r17.c | 516 + .../NR-On-Demand-DL-PRS-Request-r17.h | 76 + .../NR-On-Demand-DL-PRS-Support-r17.c | 194 + .../NR-On-Demand-DL-PRS-Support-r17.h | 55 + ...OnDemandDL-PRS-AggregationReqElement-r18.c | 99 + ...OnDemandDL-PRS-AggregationReqElement-r18.h | 42 + asn.1/lpp_generated/NR-PRU-DL-Info-r18.c | 126 + asn.1/lpp_generated/NR-PRU-DL-Info-r18.h | 52 + ...RU-RSCP-AdditionalMeasurementElement-r18.c | 198 + ...RU-RSCP-AdditionalMeasurementElement-r18.h | 57 + .../NR-PRU-RSCP-AdditionalMeasurements-r18.c | 68 + .../NR-PRU-RSCP-AdditionalMeasurements-r18.h | 44 + .../NR-PRU-RSCP-MeasElement-r18.c | 507 + .../NR-PRU-RSCP-MeasElement-r18.h | 91 + .../NR-PRU-RSCP-MeasurementInformation-r18.c | 68 + .../NR-PRU-RSCP-MeasurementInformation-r18.h | 44 + .../lpp_generated/NR-PeriodicAssistData-r18.c | 69 + .../lpp_generated/NR-PeriodicAssistData-r18.h | 46 + .../NR-PeriodicAssistDataReq-r18.c | 69 + .../NR-PeriodicAssistDataReq-r18.h | 46 + .../NR-PeriodicControlParam-r18.c | 148 + .../NR-PeriodicControlParam-r18.h | 45 + asn.1/lpp_generated/NR-PhaseQuality-r18.c | 174 + asn.1/lpp_generated/NR-PhaseQuality-r18.h | 56 + asn.1/lpp_generated/NR-PhysCellID-r16.c | 71 + asn.1/lpp_generated/NR-PhysCellID-r16.h | 40 + .../NR-PositionCalculationAssistance-r16.c | 438 + .../NR-PositionCalculationAssistance-r16.h | 82 + .../NR-RSCP-AdditionalMeasurements-r18.c | 138 + .../NR-RSCP-AdditionalMeasurements-r18.h | 50 + ...-AdditionalMeasurementSamplesElement-r18.c | 138 + ...-AdditionalMeasurementSamplesElement-r18.h | 50 + asn.1/lpp_generated/NR-RTD-Info-r16.c | 84 + .../NR-RTD-Info-r16.h | 4 +- .../lpp_generated/NR-SRS-TxTEG-Element-r17.c | 389 + .../lpp_generated/NR-SRS-TxTEG-Element-r17.h | 64 + asn.1/lpp_generated/NR-SSB-Config-r16.c | 632 ++ asn.1/lpp_generated/NR-SSB-Config-r16.h | 97 + .../NR-SelectedDL-PRS-IndexList-r16.c | 68 + .../NR-SelectedDL-PRS-IndexList-r16.h | 44 + .../NR-SelectedDL-PRS-IndexPerTRP-r16.c | 212 + .../NR-SelectedDL-PRS-IndexPerTRP-r16.h | 55 + .../NR-SelectedDL-PRS-IndexPerTRP-r18.c | 243 + .../NR-SelectedDL-PRS-IndexPerTRP-r18.h | 52 + .../NR-SelectedDL-PRS-PerFreq-r16.c | 212 + .../NR-SelectedDL-PRS-PerFreq-r16.h | 11 +- .../NR-TRP-BeamAntennaAngles-r17.c | 68 + .../NR-TRP-BeamAntennaAngles-r17.h | 44 + .../NR-TRP-BeamAntennaInfo-r17.c | 68 + .../NR-TRP-BeamAntennaInfo-r17.h | 44 + ...-TRP-BeamAntennaInfoAzimuthElevation-r17.c | 262 + ...-TRP-BeamAntennaInfoAzimuthElevation-r17.h | 56 + .../NR-TRP-BeamAntennaInfoPerFreqLayer-r17.c | 68 + .../NR-TRP-BeamAntennaInfoPerFreqLayer-r17.h | 44 + .../NR-TRP-BeamAntennaInfoPerTRP-r17.c | 243 + .../NR-TRP-BeamAntennaInfoPerTRP-r17.h | 57 + .../NR-TRP-IntegrityServiceAlertElement-r18.c | 227 + .../NR-TRP-IntegrityServiceAlertElement-r18.h | 57 + ...RP-IntegrityServiceAlertPerFreqLayer-r18.c | 68 + ...RP-IntegrityServiceAlertPerFreqLayer-r18.h | 44 + asn.1/lpp_generated/NR-TRP-LocationInfo-r16.c | 68 + .../NR-TRP-LocationInfo-r16.h | 7 +- .../NR-TRP-LocationInfoPerFreqLayer-r16.c | 181 + .../NR-TRP-LocationInfoPerFreqLayer-r16.h | 10 +- asn.1/lpp_generated/NR-TimeStamp-r16.c | 578 + asn.1/lpp_generated/NR-TimeStamp-r16.h | 81 + asn.1/lpp_generated/NR-TimingQuality-r16.c | 178 + asn.1/lpp_generated/NR-TimingQuality-r16.h | 58 + asn.1/lpp_generated/NR-UE-RxTx-TEG-Info-r17.c | 479 + asn.1/lpp_generated/NR-UE-RxTx-TEG-Info-r17.h | 78 + .../lpp_generated/NR-UE-TEG-Capability-r17.c | 162 + .../lpp_generated/NR-UE-TEG-Capability-r17.h | 53 + .../NR-UE-TEG-ID-CapabilityPerBand-r17.c | 488 + .../NR-UE-TEG-ID-CapabilityPerBand-r17.h | 102 + .../NR-UL-ProvideCapabilities-r16.c | 148 + .../NR-UL-ProvideCapabilities-r16.h | 53 + .../NR-UL-RequestCapabilities-r16.c | 43 + .../NR-UL-RequestCapabilities-r16.h | 4 +- .../lpp_generated/NR-UL-SRS-Capability-r16.c | 434 + .../lpp_generated/NR-UL-SRS-Capability-r16.h | 81 + ...RS-ResourceSetID-PRS-AggregationList-r18.c | 68 + ...RS-ResourceSetID-PRS-AggregationList-r18.h | 44 + asn.1/lpp_generated/NavIC-CDC-r16.c | 148 + .../NavIC-CDC-r16.h | 4 +- asn.1/lpp_generated/NavIC-ClockModel-r16.c | 298 + .../NavIC-ClockModel-r16.h | 4 +- .../NavIC-CorrectionElementAutoNav-r16.c | 302 + .../NavIC-CorrectionElementAutoNav-r16.h | 4 +- .../NavIC-CorrectionListAutoNav-r16.c | 68 + .../NavIC-CorrectionListAutoNav-r16.h | 7 +- .../NavIC-DifferentialCorrections-r16.c | 116 + .../NavIC-DifferentialCorrections-r16.h | 4 +- .../NavIC-DifferentialCorrectionsReq-r16.c | 66 + .../NavIC-DifferentialCorrectionsReq-r16.h | 4 +- ...NavIC-DifferentialCorrectionsSupport-r16.c | 66 + ...NavIC-DifferentialCorrectionsSupport-r16.h | 4 +- asn.1/lpp_generated/NavIC-EDC-r16.c | 348 + .../NavIC-EDC-r16.h | 4 +- .../NavIC-GridModelParameter-r16.c | 166 + .../NavIC-GridModelParameter-r16.h | 4 +- asn.1/lpp_generated/NavIC-GridModelReq-r16.c | 43 + .../NavIC-GridModelReq-r16.h | 4 +- .../NavIC-GridModelSupport-r16.c | 43 + .../NavIC-GridModelSupport-r16.h | 4 +- .../NavModel-BDS-KeplerianSet-r12.c | 1050 ++ .../NavModel-BDS-KeplerianSet-r12.h | 4 +- .../NavModel-BDS-KeplerianSet2-r16.c | 1028 ++ .../NavModel-BDS-KeplerianSet2-r16.h | 4 +- asn.1/lpp_generated/NavModel-GLONASS-ECEF.c | 672 ++ .../NavModel-GLONASS-ECEF.h | 4 +- .../NavModel-NavIC-KeplerianSet-r16.c | 1000 ++ .../NavModel-NavIC-KeplerianSet-r16.h | 62 + asn.1/lpp_generated/NavModel-SBAS-ECEF.c | 606 ++ .../NavModel-SBAS-ECEF.h | 6 +- .../lpp_generated/NavModelCNAV-KeplerianSet.c | 1028 ++ .../NavModelCNAV-KeplerianSet.h | 4 +- asn.1/lpp_generated/NavModelKeplerianSet.c | 950 ++ .../NavModelKeplerianSet.h | 4 +- .../lpp_generated/NavModelNAV-KeplerianSet.c | 1520 +++ .../NavModelNAV-KeplerianSet.h | 4 +- asn.1/lpp_generated/NeQuickModelParameter.c | 450 + asn.1/lpp_generated/NeQuickModelParameter.h | 51 + .../NeighbourMeasurementElement-NB-r14.c | 442 + .../NeighbourMeasurementElement-NB-r14.h | 61 + .../NeighbourMeasurementElement.c | 693 ++ .../NeighbourMeasurementElement.h | 79 + .../NeighbourMeasurementList-NB-r14.c | 68 + .../NeighbourMeasurementList-NB-r14.h | 7 +- .../lpp_generated/NeighbourMeasurementList.c | 68 + .../NeighbourMeasurementList.h | 7 +- asn.1/lpp_generated/NetworkTime.c | 1342 +++ .../NetworkTime.h | 24 +- asn.1/lpp_generated/OLPC-SRS-Pos-r16.c | 344 + asn.1/lpp_generated/OLPC-SRS-Pos-r16.h | 68 + .../ORBIT-IntegrityParameters-r17.c | 350 + .../ORBIT-IntegrityParameters-r17.h | 49 + asn.1/lpp_generated/OTDOA-Error.c | 88 + .../OTDOA-Error.h | 4 +- .../OTDOA-LocationServerErrorCauses.c | 126 + .../OTDOA-LocationServerErrorCauses.h | 4 +- asn.1/lpp_generated/OTDOA-MeasQuality.c | 218 + .../OTDOA-MeasQuality.h | 6 +- .../OTDOA-NeighbourCellInfoElement.c | 1138 ++ .../OTDOA-NeighbourCellInfoElement.h | 38 +- .../OTDOA-NeighbourCellInfoList.c | 68 + .../OTDOA-NeighbourCellInfoList.h | 7 +- .../OTDOA-NeighbourCellInfoListNB-r14.c | 68 + .../OTDOA-NeighbourCellInfoListNB-r14.h | 7 +- .../OTDOA-NeighbourCellInfoNB-r14.c | 786 ++ .../OTDOA-NeighbourCellInfoNB-r14.h | 92 + asn.1/lpp_generated/OTDOA-NeighbourFreqInfo.c | 68 + .../OTDOA-NeighbourFreqInfo.h | 7 +- .../OTDOA-ProvideAssistanceData.c | 206 + .../OTDOA-ProvideAssistanceData.h | 59 + .../lpp_generated/OTDOA-ProvideCapabilities.c | 1661 +++ .../OTDOA-ProvideCapabilities.h | 48 +- .../OTDOA-ProvideLocationInformation.c | 168 + .../OTDOA-ProvideLocationInformation.h | 15 +- asn.1/lpp_generated/OTDOA-ReferenceCellInfo.c | 1026 ++ .../OTDOA-ReferenceCellInfo.h | 33 +- .../OTDOA-ReferenceCellInfoNB-r14.c | 484 + .../OTDOA-ReferenceCellInfoNB-r14.h | 83 + .../OTDOA-RequestAssistanceData.c | 328 + .../OTDOA-RequestAssistanceData.h | 8 +- .../lpp_generated/OTDOA-RequestCapabilities.c | 43 + .../OTDOA-RequestCapabilities.h | 4 +- .../OTDOA-RequestLocationInformation.c | 384 + .../OTDOA-RequestLocationInformation.h | 10 +- ...TDOA-SignalMeasurementInformation-NB-r14.c | 473 + ...TDOA-SignalMeasurementInformation-NB-r14.h | 64 + .../OTDOA-SignalMeasurementInformation.c | 693 ++ .../OTDOA-SignalMeasurementInformation.h | 83 + .../OTDOA-TargetDeviceErrorCauses.c | 130 + .../OTDOA-TargetDeviceErrorCauses.h | 4 +- .../On-Demand-DL-PRS-Configuration-r17.c | 102 + .../On-Demand-DL-PRS-Configuration-r17.h | 48 + .../OnDemandDL-PRS-AggregationInfo-r18.c | 68 + .../OnDemandDL-PRS-AggregationInfo-r18.h | 44 + ...PRS-BWA-ThreeContiguousIntrabandInMG-r18.c | 1309 +++ ...PRS-BWA-ThreeContiguousIntrabandInMG-r18.h | 223 + .../PRS-BWA-TwoContiguousIntrabandInMG-r18.c | 1287 +++ .../PRS-BWA-TwoContiguousIntrabandInMG-r18.h | 212 + asn.1/lpp_generated/PRS-Info-NB-r14.c | 68 + .../PRS-Info-NB-r14.h | 7 +- asn.1/lpp_generated/PRS-Info.c | 1390 +++ asn.1/{generated => lpp_generated}/PRS-Info.h | 10 +- ...ssingCapabilityOutsideMGinPPWperType-r17.c | 1406 +++ ...ssingCapabilityOutsideMGinPPWperType-r17.h | 240 + .../PRS-ProcessingCapabilityPerBand-r16.c | 4993 +++++++++ .../PRS-ProcessingCapabilityPerBand-r16.h | 686 ++ ...iodicAssistanceDataControlParameters-r15.c | 147 + ...iodicAssistanceDataControlParameters-r15.h | 6 +- asn.1/lpp_generated/PeriodicSessionID-r15.c | 174 + .../PeriodicSessionID-r15.h | 4 +- .../PeriodicalReportingCriteria.c | 58 +- .../PeriodicalReportingCriteria.h | 6 +- .../PhysicalReferenceStationInfo-r15.c | 255 + .../PhysicalReferenceStationInfo-r15.h | 9 +- asn.1/lpp_generated/Polygon.c | 68 + asn.1/{generated => lpp_generated}/Polygon.h | 7 +- asn.1/lpp_generated/PolygonPoints.c | 222 + .../PolygonPoints.h | 4 +- ...sSRS-BWA-IndependentCA-RRC-Connected-r18.c | 1216 +++ ...sSRS-BWA-IndependentCA-RRC-Connected-r18.h | 194 + .../PosSRS-BWA-RRC-Connected-r18.c | 1136 ++ .../PosSRS-BWA-RRC-Connected-r18.h | 185 + .../PosSRS-BWA-RRC-Inactive-r18.c | 1038 ++ .../PosSRS-BWA-RRC-Inactive-r18.h | 167 + .../PosSRS-RRC-Inactive-InInitialUL-BWP-r17.c | 654 ++ .../PosSRS-RRC-Inactive-InInitialUL-BWP-r17.h | 130 + ...RS-RRC-Inactive-OutsideInitialUL-BWP-r17.c | 1128 ++ ...RS-RRC-Inactive-OutsideInitialUL-BWP-r17.h | 181 + ...sSRS-SP-RRC-Inactive-InInitialUL-BWP-r17.c | 224 + ...sSRS-SP-RRC-Inactive-InInitialUL-BWP-r17.h | 70 + ...sSRS-TxFrequencyHoppingRRC-Connected-r18.c | 850 ++ ...sSRS-TxFrequencyHoppingRRC-Connected-r18.h | 135 + ...osSRS-TxFrequencyHoppingRRC-Inactive-r18.c | 764 ++ ...osSRS-TxFrequencyHoppingRRC-Inactive-r18.h | 123 + asn.1/lpp_generated/PositioningModes.c | 104 + .../PositioningModes.h | 4 +- .../PressureValidityArea-v1520.c | 166 + .../PressureValidityArea-v1520.h | 4 +- .../PressureValidityPeriod-v1520.c | 168 + .../PressureValidityPeriod-v1520.h | 6 +- .../ProvideAssistanceData-r9-IEs.c | 442 + .../ProvideAssistanceData-r9-IEs.h | 81 + asn.1/lpp_generated/ProvideAssistanceData.c | 298 + .../ProvideAssistanceData.h | 4 +- .../ProvideCapabilities-r9-IEs.c | 438 + .../ProvideCapabilities-r9-IEs.h | 82 + asn.1/lpp_generated/ProvideCapabilities.c | 298 + .../ProvideCapabilities.h | 4 +- .../ProvideLocationInformation-r9-IEs.c | 419 + .../ProvideLocationInformation-r9-IEs.h | 80 + .../ProvideLocationInformation.c | 298 + .../ProvideLocationInformation.h | 4 +- asn.1/lpp_generated/QoS.c | 322 + asn.1/lpp_generated/QoS.h | 69 + .../RAC-OrbitalErrorComponents-r17.c | 198 + .../RAC-OrbitalErrorComponents-r17.h | 42 + asn.1/lpp_generated/RTD-InfoElement-r16.c | 303 + asn.1/lpp_generated/RTD-InfoElement-r16.h | 62 + asn.1/lpp_generated/RTD-InfoList-r16.c | 68 + .../RTD-InfoList-r16.h | 7 +- .../RTD-InfoListPerFreqLayer-r16.c | 68 + .../RTD-InfoListPerFreqLayer-r16.h | 7 +- .../RTK-CorrectionDifferencesElement-r15.c | 102 + .../RTK-CorrectionDifferencesElement-r15.h | 4 +- .../RTK-CorrectionDifferencesList-r15.c | 68 + .../RTK-CorrectionDifferencesList-r15.h | 7 +- .../lpp_generated/RTK-Residuals-Element-r15.c | 316 + .../RTK-Residuals-Element-r15.h | 4 +- asn.1/lpp_generated/RTK-Residuals-List-r15.c | 68 + .../RTK-Residuals-List-r15.h | 7 +- asn.1/lpp_generated/ReferencePoint-r16.c | 164 + .../ReferencePoint-r16.h | 10 +- .../lpp_generated/ReferenceStationList-r16.c | 68 + .../ReferenceStationList-r16.h | 7 +- .../lpp_generated/ReferenceTRP-RTD-Info-r16.c | 310 + .../lpp_generated/ReferenceTRP-RTD-Info-r16.h | 80 + asn.1/lpp_generated/RegionIgpElement-r16.c | 1598 +++ .../RegionIgpElement-r16.h | 4 +- asn.1/lpp_generated/RegionIgpList-r16.c | 68 + .../RegionIgpList-r16.h | 7 +- .../RelativeCartesianLocation-r18.c | 203 + .../RelativeCartesianLocation-r18.h | 66 + asn.1/lpp_generated/RelativeLocation-r16.c | 281 + .../RelativeLocation-r16.h | 9 +- .../RelativeLocationElement-r16.c | 148 + .../RelativeLocationElement-r16.h | 45 + asn.1/lpp_generated/ReportingDuration.c | 71 + asn.1/lpp_generated/ReportingDuration.h | 40 + asn.1/lpp_generated/ReqNavListInfo.c | 410 + .../ReqNavListInfo.h | 6 +- .../RequestAssistanceData-r9-IEs.c | 442 + .../RequestAssistanceData-r9-IEs.h | 81 + asn.1/lpp_generated/RequestAssistanceData.c | 298 + .../RequestAssistanceData.h | 4 +- .../RequestCapabilities-r9-IEs.c | 438 + .../RequestCapabilities-r9-IEs.h | 82 + asn.1/lpp_generated/RequestCapabilities.c | 298 + .../RequestCapabilities.h | 4 +- .../RequestLocationInformation-r9-IEs.c | 419 + .../RequestLocationInformation-r9-IEs.h | 80 + .../RequestLocationInformation.c | 298 + .../RequestLocationInformation.h | 4 +- asn.1/lpp_generated/ResponseTime.c | 348 + .../ResponseTime.h | 11 +- asn.1/lpp_generated/ResponseTimeNB-r14.c | 285 + .../ResponseTimeNB-r14.h | 8 +- .../ResultsPerCSI-RS-Index-r16.c | 116 + .../ResultsPerCSI-RS-Index-r16.h | 42 + .../ResultsPerCSI-RS-IndexList-r16.c | 68 + .../ResultsPerCSI-RS-IndexList-r16.h | 7 +- asn.1/lpp_generated/ResultsPerSSB-Index-r16.c | 116 + asn.1/lpp_generated/ResultsPerSSB-Index-r16.h | 42 + .../ResultsPerSSB-IndexList-r16.c | 68 + .../ResultsPerSSB-IndexList-r16.h | 7 +- .../RxTxTEG-TimingErrorMargin-r17.c | 91 + .../RxTxTEG-TimingErrorMargin-r17.h | 61 + asn.1/lpp_generated/SBAS-ClockModel.c | 198 + .../SBAS-ClockModel.h | 4 +- asn.1/lpp_generated/SBAS-ID.c | 128 + asn.1/{generated => lpp_generated}/SBAS-ID.h | 4 +- asn.1/lpp_generated/SBAS-IDs.c | 104 + asn.1/{generated => lpp_generated}/SBAS-IDs.h | 4 +- asn.1/lpp_generated/SFN-r15.c | 162 + asn.1/lpp_generated/SFN-r15.h | 45 + .../lpp_generated/SRS-CapabilityPerBand-r16.c | 837 ++ .../lpp_generated/SRS-CapabilityPerBand-r16.h | 111 + .../SRS-PosResourcesPerBand-r16.c | 486 + .../SRS-PosResourcesPerBand-r16.h | 101 + .../SSR-ClockCorrectionList-r15.c | 68 + .../SSR-ClockCorrectionList-r15.h | 7 +- .../SSR-ClockCorrectionSatelliteElement-r15.c | 298 + .../SSR-ClockCorrectionSatelliteElement-r15.h | 57 + .../SSR-CodeBiasSatElement-r15.c | 84 + .../SSR-CodeBiasSatElement-r15.h | 4 +- asn.1/lpp_generated/SSR-CodeBiasSatList-r15.c | 68 + .../SSR-CodeBiasSatList-r15.h | 7 +- .../SSR-CodeBiasSignalElement-r15.c | 198 + .../SSR-CodeBiasSignalElement-r15.h | 55 + .../SSR-CodeBiasSignalList-r15.c | 68 + .../SSR-CodeBiasSignalList-r15.h | 7 +- ...GriddedCorrectionIntegrityParameters-r17.c | 250 + ...GriddedCorrectionIntegrityParameters-r17.h | 47 + .../SSR-IntegrityClockBounds-r17.c | 248 + .../SSR-IntegrityClockBounds-r17.h | 47 + .../SSR-IntegrityCodeBiasBounds-r17.c | 248 + .../SSR-IntegrityCodeBiasBounds-r17.h | 47 + .../SSR-IntegrityOrbitBounds-r17.c | 120 + .../SSR-IntegrityOrbitBounds-r17.h | 47 + .../SSR-IntegrityPhaseBiasBounds-r17.c | 248 + .../SSR-IntegrityPhaseBiasBounds-r17.h | 47 + .../SSR-OrbitCorrectionList-r15.c | 68 + .../SSR-OrbitCorrectionList-r15.h | 7 +- .../SSR-OrbitCorrectionSatelliteElement-r15.c | 504 + .../SSR-OrbitCorrectionSatelliteElement-r15.h | 62 + .../SSR-PhaseBiasSatElement-r16.c | 84 + .../SSR-PhaseBiasSatElement-r16.h | 4 +- .../lpp_generated/SSR-PhaseBiasSatList-r16.c | 68 + .../SSR-PhaseBiasSatList-r16.h | 7 +- .../SSR-PhaseBiasSignalElement-r16.c | 298 + .../SSR-PhaseBiasSignalElement-r16.h | 57 + .../SSR-PhaseBiasSignalList-r16.c | 68 + .../SSR-PhaseBiasSignalList-r16.h | 7 +- .../SSR-PhaseCenterVariationList-r18.c | 99 + .../SSR-PhaseCenterVariationList-r18.h | 42 + .../SSR-SatellitePCV-Element-r18.c | 84 + .../SSR-SatellitePCV-Element-r18.h | 46 + .../SSR-SatellitePCV-FrequencyElement-r18.c | 84 + .../SSR-SatellitePCV-FrequencyElement-r18.h | 46 + .../SSR-SatellitePCV-FrequencyList-r18.c | 68 + .../SSR-SatellitePCV-FrequencyList-r18.h | 44 + .../lpp_generated/SSR-SatellitePCV-List-r18.c | 68 + .../lpp_generated/SSR-SatellitePCV-List-r18.h | 44 + asn.1/lpp_generated/SSR-URA-SatElement-r16.c | 122 + .../SSR-URA-SatElement-r16.h | 4 +- asn.1/lpp_generated/SSR-URA-SatList-r16.c | 68 + .../SSR-URA-SatList-r16.h | 7 +- .../STEC-IntegrityErrorBounds-r17.c | 248 + .../STEC-IntegrityErrorBounds-r17.h | 47 + .../STEC-IntegrityParameters-r17.c | 250 + .../STEC-IntegrityParameters-r17.h | 47 + .../STEC-ResidualSatElement-r16.c | 228 + .../STEC-ResidualSatElement-r16.h | 4 +- .../lpp_generated/STEC-ResidualSatList-r16.c | 68 + .../STEC-ResidualSatList-r16.h | 7 +- asn.1/lpp_generated/STEC-SatElement-r16.c | 404 + asn.1/lpp_generated/STEC-SatElement-r16.h | 60 + asn.1/lpp_generated/STEC-SatList-r16.c | 68 + .../STEC-SatList-r16.h | 7 +- asn.1/lpp_generated/SV-ID.c | 98 + asn.1/{generated => lpp_generated}/SV-ID.h | 4 +- asn.1/lpp_generated/SatListElement-r15.c | 122 + .../SatListElement-r15.h | 4 +- .../lpp_generated/SatListRelatedDataElement.c | 224 + .../SatListRelatedDataElement.h | 8 +- asn.1/lpp_generated/SatListRelatedDataList.c | 68 + .../SatListRelatedDataList.h | 7 +- .../lpp_generated/ScheduledLocationTime-r17.c | 933 ++ .../lpp_generated/ScheduledLocationTime-r17.h | 116 + .../ScheduledLocationTimeSupport-r17.c | 357 + .../ScheduledLocationTimeSupport-r17.h | 69 + .../ScheduledLocationTimeSupportPerMode-r17.c | 218 + .../ScheduledLocationTimeSupportPerMode-r17.h | 58 + asn.1/lpp_generated/SegmentationInfo-r14.c | 63 + .../SegmentationInfo-r14.h | 8 +- .../Sensor-AssistanceDataList-r14.c | 538 + .../Sensor-AssistanceDataList-r14.h | 17 +- .../Sensor-AssistanceDataSupportList-r14.c | 255 + .../Sensor-AssistanceDataSupportList-r14.h | 8 +- asn.1/lpp_generated/Sensor-Error-r13.c | 88 + .../Sensor-Error-r13.h | 4 +- .../Sensor-LocationServerErrorCauses-r13.c | 126 + .../Sensor-LocationServerErrorCauses-r13.h | 4 +- .../Sensor-MeasurementInformation-r13.c | 449 + .../Sensor-MeasurementInformation-r13.h | 10 +- .../Sensor-MotionInformation-r15.c | 84 + .../Sensor-MotionInformation-r15.h | 4 +- .../Sensor-ProvideAssistanceData-r14.c | 88 + .../Sensor-ProvideAssistanceData-r14.h | 12 +- .../Sensor-ProvideCapabilities-r13.c | 623 ++ .../Sensor-ProvideCapabilities-r13.h | 27 +- .../Sensor-ProvideLocationInformation-r13.c | 168 + .../Sensor-ProvideLocationInformation-r13.h | 15 +- .../Sensor-RequestAssistanceData-r14.c | 43 + .../Sensor-RequestAssistanceData-r14.h | 4 +- .../Sensor-RequestCapabilities-r13.c | 43 + .../Sensor-RequestCapabilities-r13.h | 4 +- .../Sensor-RequestLocationInformation-r13.c | 305 + .../Sensor-RequestLocationInformation-r13.h | 10 +- .../Sensor-TargetDeviceErrorCauses-r13.c | 124 + .../Sensor-TargetDeviceErrorCauses-r13.h | 4 +- asn.1/lpp_generated/SequenceNumber.c | 71 + asn.1/lpp_generated/SequenceNumber.h | 40 + asn.1/lpp_generated/SpatialDelta-r18.c | 77 + asn.1/lpp_generated/SpatialDelta-r18.h | 54 + .../SpatialRelationsSRS-Pos-r16.c | 482 + .../SpatialRelationsSRS-Pos-r16.h | 75 + .../lpp_generated/StandardClockModelElement.c | 400 + .../StandardClockModelElement.h | 8 +- asn.1/lpp_generated/StandardClockModelList.c | 68 + .../StandardClockModelList.h | 7 +- asn.1/lpp_generated/StoredNavListInfo.c | 219 + .../StoredNavListInfo.h | 9 +- asn.1/lpp_generated/SupportedBandEUTRA-v9a0.c | 100 + asn.1/lpp_generated/SupportedBandEUTRA-v9a0.h | 40 + asn.1/lpp_generated/SupportedBandEUTRA.c | 98 + .../SupportedBandEUTRA.h | 4 +- .../lpp_generated/SupportedChannels-11a-r14.c | 336 + .../SupportedChannels-11a-r14.h | 4 +- .../SupportedChannels-11bg-r14.c | 300 + .../SupportedChannels-11bg-r14.h | 4 +- .../TBS-AssistanceDataList-r14.c | 69 + .../TBS-AssistanceDataList-r14.h | 46 + asn.1/lpp_generated/TBS-Error-r13.c | 88 + .../TBS-Error-r13.h | 4 +- .../TBS-LocationServerErrorCauses-r13.c | 126 + .../TBS-LocationServerErrorCauses-r13.h | 4 +- .../TBS-MeasurementInformation-r13.c | 87 + .../TBS-MeasurementInformation-r13.h | 48 + .../TBS-ProvideAssistanceData-r14.c | 88 + .../TBS-ProvideAssistanceData-r14.h | 48 + .../TBS-ProvideCapabilities-r13.c | 413 + .../TBS-ProvideCapabilities-r13.h | 82 + .../TBS-ProvideLocationInformation-r13.c | 88 + .../TBS-ProvideLocationInformation-r13.h | 12 +- .../TBS-RequestAssistanceData-r14.c | 84 + .../TBS-RequestAssistanceData-r14.h | 4 +- .../TBS-RequestCapabilities-r13.c | 43 + .../TBS-RequestCapabilities-r13.h | 4 +- .../TBS-RequestLocationInformation-r13.c | 203 + .../TBS-RequestLocationInformation-r13.h | 8 +- .../TBS-TargetDeviceErrorCauses-r13.c | 126 + .../TBS-TargetDeviceErrorCauses-r13.h | 4 +- asn.1/lpp_generated/TDD-Config-v1520.c | 132 + .../TDD-Config-v1520.h | 4 +- .../lpp_generated/TEG-TimingErrorMargin-r17.c | 91 + .../lpp_generated/TEG-TimingErrorMargin-r17.h | 61 + .../TRP-LocationInfoElement-r16.c | 435 + .../TRP-LocationInfoElement-r16.h | 73 + asn.1/lpp_generated/TargetIntegrityRisk-r17.c | 71 + asn.1/lpp_generated/TargetIntegrityRisk-r17.h | 40 + asn.1/lpp_generated/TransactionNumber.c | 71 + asn.1/lpp_generated/TransactionNumber.h | 40 + .../TriggeredReportingCriteria.c | 84 + .../TriggeredReportingCriteria.h | 4 +- .../TropoDelayIntegrityErrorBounds-r17.c | 448 + .../TropoDelayIntegrityErrorBounds-r17.h | 51 + .../TropospericDelayCorrection-r16.c | 230 + .../TropospericDelayCorrection-r16.h | 54 + asn.1/lpp_generated/UTC-ModelSet1.c | 448 + .../UTC-ModelSet1.h | 4 +- asn.1/lpp_generated/UTC-ModelSet2.c | 617 ++ .../UTC-ModelSet2.h | 6 +- asn.1/lpp_generated/UTC-ModelSet3.c | 306 + asn.1/lpp_generated/UTC-ModelSet3.h | 49 + asn.1/lpp_generated/UTC-ModelSet4.c | 498 + .../UTC-ModelSet4.h | 4 +- asn.1/lpp_generated/UTC-ModelSet5-r12.c | 348 + .../UTC-ModelSet5-r12.h | 4 +- asn.1/lpp_generated/UTC-Time-r15.c | 116 + .../UTC-Time-r15.h | 4 +- asn.1/lpp_generated/UpdateCapabilities-r15.c | 77 + .../UpdateCapabilities-r15.h | 8 +- asn.1/lpp_generated/Velocity.c | 124 + asn.1/{generated => lpp_generated}/Velocity.h | 4 +- asn.1/lpp_generated/VelocityTypes.c | 120 + .../VelocityTypes.h | 4 +- asn.1/lpp_generated/VerticalAccuracy.c | 148 + .../VerticalAccuracy.h | 4 +- asn.1/lpp_generated/VerticalAccuracyExt-r15.c | 148 + .../VerticalAccuracyExt-r15.h | 4 +- asn.1/lpp_generated/VerticalGridPoints-r18.c | 204 + asn.1/lpp_generated/VerticalGridPoints-r18.h | 49 + asn.1/lpp_generated/WLAN-AP-Data-r14.c | 87 + .../WLAN-AP-Data-r14.h | 9 +- asn.1/lpp_generated/WLAN-AP-Identifier-r13.c | 152 + .../WLAN-AP-Identifier-r13.h | 6 +- asn.1/lpp_generated/WLAN-AP-Location-r14.c | 66 + .../WLAN-AP-Location-r14.h | 4 +- asn.1/lpp_generated/WLAN-DataSet-r14.c | 200 + asn.1/lpp_generated/WLAN-DataSet-r14.h | 57 + asn.1/lpp_generated/WLAN-Error-r13.c | 88 + .../WLAN-Error-r13.h | 4 +- .../WLAN-LocationServerErrorCauses-r13.c | 207 + .../WLAN-LocationServerErrorCauses-r13.h | 6 +- .../WLAN-MeasurementElement-r13.c | 205 + .../WLAN-MeasurementElement-r13.h | 53 + .../WLAN-MeasurementInformation-r13.c | 87 + .../WLAN-MeasurementInformation-r13.h | 48 + .../lpp_generated/WLAN-MeasurementList-r13.c | 68 + .../WLAN-MeasurementList-r13.h | 7 +- .../WLAN-ProvideAssistanceData-r14.c | 181 + .../WLAN-ProvideAssistanceData-r14.h | 10 +- .../WLAN-ProvideCapabilities-r13.c | 450 + .../WLAN-ProvideCapabilities-r13.h | 22 +- .../WLAN-ProvideLocationInformation-r13.c | 88 + .../WLAN-ProvideLocationInformation-r13.h | 12 +- asn.1/lpp_generated/WLAN-RTT-r13.c | 232 + .../WLAN-RTT-r13.h | 6 +- .../WLAN-RequestAssistanceData-r14.c | 329 + .../WLAN-RequestAssistanceData-r14.h | 7 +- .../WLAN-RequestCapabilities-r13.c | 43 + .../WLAN-RequestCapabilities-r13.h | 4 +- .../WLAN-RequestLocationInformation-r13.c | 185 + .../WLAN-RequestLocationInformation-r13.h | 6 +- .../WLAN-TargetDeviceErrorCauses-r13.c | 164 + .../WLAN-TargetDeviceErrorCauses-r13.h | 8 +- asn.1/lpp_generated/X-Value-r18.c | 150 + asn.1/lpp_generated/X-Value-r18.h | 45 + asn.1/lpp_generated/Y-Value-r18.c | 150 + asn.1/lpp_generated/Y-Value-r18.h | 45 + asn.1/lpp_generated/Z-Value-r18.c | 150 + asn.1/lpp_generated/Z-Value-r18.h | 45 + asn.1/lpp_generated/asn_config.h | 7 + asn.1/lpp_generated/asn_constant.h | 105 + asn.1/skeleton/ANY.c | 83 + asn.1/skeleton/ANY.h | 86 + asn.1/skeleton/ANY_aper.c | 190 + asn.1/skeleton/ANY_ber.c | 116 + asn.1/skeleton/ANY_jer.c | 17 + asn.1/skeleton/ANY_uper.c | 108 + asn.1/skeleton/ANY_xer.c | 22 + asn.1/skeleton/BIT_STRING.c | 250 + asn.1/skeleton/BIT_STRING.h | 77 + asn.1/skeleton/BIT_STRING_jer.c | 62 + asn.1/skeleton/BIT_STRING_oer.c | 168 + asn.1/skeleton/BIT_STRING_print.c | 69 + asn.1/skeleton/BIT_STRING_rfill.c | 124 + asn.1/skeleton/BIT_STRING_uper.c | 244 + asn.1/skeleton/BIT_STRING_xer.c | 70 + asn.1/skeleton/BMPString.c | 170 + asn.1/skeleton/BMPString.h | 67 + asn.1/skeleton/BMPString_jer.c | 99 + asn.1/skeleton/BMPString_print.c | 24 + asn.1/skeleton/BMPString_xer.c | 93 + asn.1/skeleton/BOOLEAN.c | 157 + asn.1/skeleton/BOOLEAN.h | 72 + asn.1/skeleton/BOOLEAN_aper.c | 61 + asn.1/skeleton/BOOLEAN_ber.c | 104 + asn.1/skeleton/BOOLEAN_jer.c | 66 + asn.1/skeleton/BOOLEAN_oer.c | 54 + asn.1/skeleton/BOOLEAN_print.c | 33 + asn.1/skeleton/BOOLEAN_rfill.c | 56 + asn.1/skeleton/BOOLEAN_uper.c | 58 + asn.1/skeleton/BOOLEAN_xer.c | 74 + asn.1/skeleton/ENUMERATED.c | 92 + asn.1/skeleton/ENUMERATED.h | 67 + asn.1/skeleton/ENUMERATED_aper.c | 43 + asn.1/skeleton/ENUMERATED_jer.c | 125 + asn.1/skeleton/ENUMERATED_oer.c | 48 + asn.1/skeleton/ENUMERATED_uper.c | 47 + asn.1/skeleton/GeneralString.c | 94 + asn.1/skeleton/GeneralString.h | 58 + asn.1/skeleton/GeneralizedTime.c | 748 ++ asn.1/skeleton/GeneralizedTime.h | 104 + asn.1/skeleton/GeneralizedTime_ber.c | 45 + asn.1/skeleton/GeneralizedTime_jer.c | 41 + asn.1/skeleton/GeneralizedTime_print.c | 42 + asn.1/skeleton/GeneralizedTime_rfill.c | 39 + asn.1/skeleton/GeneralizedTime_xer.c | 46 + asn.1/skeleton/GraphicString.c | 94 + asn.1/skeleton/GraphicString.h | 58 + asn.1/skeleton/IA5String.c | 136 + asn.1/skeleton/IA5String.h | 61 + asn.1/skeleton/INTEGER.c | 805 ++ asn.1/skeleton/INTEGER.h | 143 + asn.1/skeleton/INTEGER_aper.c | 308 + asn.1/skeleton/INTEGER_ber.c | 72 + asn.1/skeleton/INTEGER_jer.c | 209 + asn.1/skeleton/INTEGER_oer.c | 174 + asn.1/skeleton/INTEGER_print.c | 26 + asn.1/skeleton/INTEGER_rfill.c | 92 + asn.1/skeleton/INTEGER_uper.c | 236 + asn.1/skeleton/INTEGER_xer.c | 351 + asn.1/skeleton/ISO646String.c | 101 + asn.1/skeleton/ISO646String.h | 68 + asn.1/skeleton/NULL.c | 128 + asn.1/skeleton/NULL.h | 71 + asn.1/skeleton/NULL_aper.c | 52 + asn.1/skeleton/NULL_ber.c | 63 + asn.1/skeleton/NULL_jer.c | 52 + asn.1/skeleton/NULL_oer.c | 48 + asn.1/skeleton/NULL_print.c | 20 + asn.1/skeleton/NULL_rfill.c | 31 + asn.1/skeleton/NULL_uper.c | 52 + asn.1/skeleton/NULL_xer.c | 52 + asn.1/skeleton/NativeEnumerated.c | 111 + asn.1/skeleton/NativeEnumerated.h | 79 + asn.1/skeleton/NativeEnumerated_aper.c | 155 + asn.1/skeleton/NativeEnumerated_jer.c | 79 + asn.1/skeleton/NativeEnumerated_oer.c | 144 + asn.1/skeleton/NativeEnumerated_uper.c | 135 + asn.1/skeleton/NativeEnumerated_xer.c | 36 + asn.1/skeleton/NativeInteger.c | 182 + asn.1/skeleton/NativeInteger.h | 73 + asn.1/skeleton/NativeInteger_aper.c | 69 + asn.1/skeleton/NativeInteger_ber.c | 130 + asn.1/skeleton/NativeInteger_jer.c | 76 + asn.1/skeleton/NativeInteger_oer.c | 94 + asn.1/skeleton/NativeInteger_print.c | 43 + asn.1/skeleton/NativeInteger_rfill.c | 87 + asn.1/skeleton/NativeInteger_uper.c | 70 + asn.1/skeleton/NativeInteger_xer.c | 78 + asn.1/skeleton/NativeReal.c | 250 + asn.1/skeleton/NativeReal.h | 81 + asn.1/skeleton/NativeReal_aper.c | 74 + asn.1/skeleton/NativeReal_ber.c | 120 + asn.1/skeleton/NativeReal_jer.c | 54 + asn.1/skeleton/NativeReal_oer.c | 228 + asn.1/skeleton/NativeReal_print.c | 24 + asn.1/skeleton/NativeReal_rfill.c | 69 + asn.1/skeleton/NativeReal_uper.c | 73 + asn.1/skeleton/NativeReal_xer.c | 50 + asn.1/skeleton/NumericString.c | 160 + asn.1/skeleton/NumericString.h | 67 + asn.1/skeleton/OBJECT_IDENTIFIER.c | 535 + asn.1/skeleton/OBJECT_IDENTIFIER.h | 186 + asn.1/skeleton/OBJECT_IDENTIFIER_jer.c | 107 + asn.1/skeleton/OBJECT_IDENTIFIER_print.c | 30 + asn.1/skeleton/OBJECT_IDENTIFIER_rfill.c | 73 + asn.1/skeleton/OBJECT_IDENTIFIER_xer.c | 80 + asn.1/skeleton/OCTET_STRING.c | 423 + asn.1/skeleton/OCTET_STRING.h | 168 + asn.1/skeleton/OCTET_STRING_aper.c | 413 + asn.1/skeleton/OCTET_STRING_ber.c | 525 + asn.1/skeleton/OCTET_STRING_jer.c | 575 + asn.1/skeleton/OCTET_STRING_oer.c | 166 + asn.1/skeleton/OCTET_STRING_print.c | 65 + asn.1/skeleton/OCTET_STRING_rfill.c | 209 + asn.1/skeleton/OCTET_STRING_uper.c | 319 + asn.1/skeleton/OCTET_STRING_xer.c | 627 ++ asn.1/skeleton/OPEN_TYPE.c | 66 + asn.1/skeleton/OPEN_TYPE.h | 128 + asn.1/skeleton/OPEN_TYPE_aper.c | 174 + asn.1/skeleton/OPEN_TYPE_ber.c | 90 + asn.1/skeleton/OPEN_TYPE_jer.c | 178 + asn.1/skeleton/OPEN_TYPE_oer.c | 138 + asn.1/skeleton/OPEN_TYPE_uper.c | 122 + asn.1/skeleton/OPEN_TYPE_xer.c | 166 + asn.1/skeleton/ObjectDescriptor.c | 94 + asn.1/skeleton/ObjectDescriptor.h | 55 + asn.1/skeleton/PrintableString.c | 168 + asn.1/skeleton/PrintableString.h | 58 + asn.1/skeleton/REAL.c | 772 ++ asn.1/skeleton/REAL.h | 124 + asn.1/skeleton/REAL_aper.c | 25 + asn.1/skeleton/REAL_jer.c | 330 + asn.1/skeleton/REAL_oer.c | 89 + asn.1/skeleton/REAL_print.c | 27 + asn.1/skeleton/REAL_rfill.c | 66 + asn.1/skeleton/REAL_uper.c | 25 + asn.1/skeleton/REAL_xer.c | 103 + asn.1/skeleton/RELATIVE-OID.c | 217 + asn.1/skeleton/RELATIVE-OID.h | 87 + asn.1/skeleton/RELATIVE-OID_jer.c | 105 + asn.1/skeleton/RELATIVE-OID_print.c | 28 + asn.1/skeleton/RELATIVE-OID_rfill.c | 67 + asn.1/skeleton/RELATIVE-OID_xer.c | 79 + asn.1/skeleton/T61String.c | 95 + asn.1/skeleton/T61String.h | 58 + asn.1/skeleton/TeletexString.c | 231 + asn.1/skeleton/TeletexString.h | 58 + asn.1/skeleton/UTCTime.c | 223 + asn.1/skeleton/UTCTime.h | 74 + asn.1/skeleton/UTCTime_jer.c | 41 + asn.1/skeleton/UTCTime_print.c | 42 + asn.1/skeleton/UTCTime_rfill.c | 39 + asn.1/skeleton/UTCTime_xer.c | 46 + asn.1/skeleton/UTF8String.c | 227 + asn.1/skeleton/UTF8String.h | 86 + asn.1/skeleton/UTF8String_print.c | 22 + asn.1/skeleton/UTF8String_rfill.c | 96 + asn.1/skeleton/UniversalString.c | 187 + asn.1/skeleton/UniversalString.h | 63 + asn.1/skeleton/UniversalString_jer.c | 88 + asn.1/skeleton/UniversalString_print.c | 23 + asn.1/skeleton/UniversalString_xer.c | 85 + asn.1/skeleton/VideotexString.c | 94 + asn.1/skeleton/VideotexString.h | 58 + asn.1/skeleton/VisibleString.c | 138 + asn.1/skeleton/VisibleString.h | 58 + asn.1/skeleton/aper_decoder.c | 91 + asn.1/skeleton/aper_decoder.h | 47 + asn.1/skeleton/aper_encoder.c | 129 + asn.1/skeleton/aper_encoder.h | 63 + asn.1/skeleton/aper_opentype.c | 149 + asn.1/skeleton/aper_opentype.h | 30 + asn.1/skeleton/aper_support.c | 360 + asn.1/skeleton/aper_support.h | 73 + .../{generated => skeleton}/asn_SEQUENCE_OF.c | 0 .../{generated => skeleton}/asn_SEQUENCE_OF.h | 0 asn.1/{generated => skeleton}/asn_SET_OF.c | 0 asn.1/{generated => skeleton}/asn_SET_OF.h | 0 asn.1/skeleton/asn_application.c | 556 + .../{generated => skeleton}/asn_application.h | 14 +- asn.1/{generated => skeleton}/asn_bit_data.c | 0 asn.1/{generated => skeleton}/asn_bit_data.h | 2 +- asn.1/{generated => skeleton}/asn_codecs.h | 0 asn.1/skeleton/asn_codecs_prim.c | 31 + asn.1/skeleton/asn_codecs_prim.h | 82 + asn.1/skeleton/asn_codecs_prim_ber.c | 115 + asn.1/skeleton/asn_codecs_prim_jer.c | 183 + asn.1/skeleton/asn_codecs_prim_xer.c | 184 + asn.1/skeleton/asn_config.h | 1 + asn.1/{generated => skeleton}/asn_internal.c | 5 +- asn.1/{generated => skeleton}/asn_internal.h | 38 +- asn.1/{generated => skeleton}/asn_ioc.h | 1 + .../{generated => skeleton}/asn_random_fill.c | 17 +- .../{generated => skeleton}/asn_random_fill.h | 0 asn.1/{generated => skeleton}/asn_system.h | 37 +- asn.1/{generated => skeleton}/ber_decoder.c | 0 asn.1/{generated => skeleton}/ber_decoder.h | 0 .../{generated => skeleton}/ber_tlv_length.c | 2 +- .../{generated => skeleton}/ber_tlv_length.h | 0 asn.1/{generated => skeleton}/ber_tlv_tag.c | 2 +- asn.1/{generated => skeleton}/ber_tlv_tag.h | 0 asn.1/skeleton/constr_CHOICE.c | 415 + asn.1/skeleton/constr_CHOICE.h | 121 + asn.1/skeleton/constr_CHOICE_aper.c | 179 + asn.1/skeleton/constr_CHOICE_ber.c | 447 + asn.1/skeleton/constr_CHOICE_jer.c | 322 + asn.1/skeleton/constr_CHOICE_oer.c | 375 + asn.1/skeleton/constr_CHOICE_print.c | 48 + asn.1/skeleton/constr_CHOICE_rfill.c | 60 + asn.1/skeleton/constr_CHOICE_uper.c | 191 + asn.1/skeleton/constr_CHOICE_xer.c | 316 + asn.1/skeleton/constr_SEQUENCE.c | 251 + asn.1/skeleton/constr_SEQUENCE.h | 97 + asn.1/skeleton/constr_SEQUENCE_OF.c | 95 + asn.1/skeleton/constr_SEQUENCE_OF.h | 69 + asn.1/skeleton/constr_SEQUENCE_OF_aper.c | 88 + asn.1/skeleton/constr_SEQUENCE_OF_ber.c | 88 + asn.1/skeleton/constr_SEQUENCE_OF_jer.c | 54 + asn.1/skeleton/constr_SEQUENCE_OF_uper.c | 92 + asn.1/skeleton/constr_SEQUENCE_OF_xer.c | 60 + asn.1/skeleton/constr_SEQUENCE_aper.c | 457 + asn.1/skeleton/constr_SEQUENCE_ber.c | 612 ++ asn.1/skeleton/constr_SEQUENCE_jer.c | 375 + asn.1/skeleton/constr_SEQUENCE_oer.c | 557 + asn.1/skeleton/constr_SEQUENCE_print.c | 55 + asn.1/skeleton/constr_SEQUENCE_rfill.c | 74 + asn.1/skeleton/constr_SEQUENCE_uper.c | 429 + asn.1/skeleton/constr_SEQUENCE_xer.c | 348 + asn.1/skeleton/constr_SET.c | 269 + asn.1/skeleton/constr_SET.h | 115 + asn.1/skeleton/constr_SET_OF.c | 429 + asn.1/skeleton/constr_SET_OF.h | 104 + asn.1/skeleton/constr_SET_OF_aper.c | 185 + asn.1/skeleton/constr_SET_OF_ber.c | 355 + asn.1/skeleton/constr_SET_OF_jer.c | 220 + asn.1/skeleton/constr_SET_OF_oer.c | 281 + asn.1/skeleton/constr_SET_OF_print.c | 39 + asn.1/skeleton/constr_SET_OF_rfill.c | 152 + asn.1/skeleton/constr_SET_OF_uper.c | 201 + asn.1/skeleton/constr_SET_OF_xer.c | 314 + asn.1/skeleton/constr_SET_ber.c | 576 + asn.1/skeleton/constr_SET_jer.c | 284 + asn.1/skeleton/constr_SET_print.c | 54 + asn.1/skeleton/constr_SET_rfill.c | 74 + asn.1/skeleton/constr_SET_xer.c | 309 + asn.1/{generated => skeleton}/constr_TYPE.c | 24 +- asn.1/skeleton/constr_TYPE.h | 320 + asn.1/{generated => skeleton}/constraints.c | 1 + asn.1/{generated => skeleton}/constraints.h | 1 + asn.1/{generated => skeleton}/der_encoder.c | 0 asn.1/{generated => skeleton}/der_encoder.h | 0 asn.1/skeleton/jer_decoder.c | 314 + asn.1/skeleton/jer_decoder.h | 106 + asn.1/skeleton/jer_encoder.c | 58 + asn.1/skeleton/jer_encoder.h | 85 + asn.1/skeleton/jer_support.c | 278 + asn.1/skeleton/jer_support.h | 56 + asn.1/skeleton/oer_decoder.c | 152 + asn.1/skeleton/oer_decoder.h | 72 + asn.1/skeleton/oer_encoder.c | 141 + asn.1/skeleton/oer_encoder.h | 70 + asn.1/skeleton/oer_support.c | 122 + asn.1/skeleton/oer_support.h | 47 + asn.1/skeleton/per_decoder.c | 5 + asn.1/skeleton/per_decoder.h | 30 + asn.1/skeleton/per_encoder.c | 35 + asn.1/skeleton/per_encoder.h | 38 + asn.1/skeleton/per_opentype.c | 28 + asn.1/skeleton/per_opentype.h | 24 + asn.1/skeleton/per_support.c | 9 + asn.1/skeleton/per_support.h | 54 + asn.1/skeleton/uper_decoder.c | 96 + asn.1/skeleton/uper_decoder.h | 47 + asn.1/skeleton/uper_encoder.c | 127 + asn.1/skeleton/uper_encoder.h | 62 + asn.1/skeleton/uper_opentype.c | 372 + asn.1/skeleton/uper_opentype.h | 34 + asn.1/skeleton/uper_support.c | 311 + asn.1/skeleton/uper_support.h | 77 + asn.1/{generated => skeleton}/xer_decoder.c | 2 +- asn.1/{generated => skeleton}/xer_decoder.h | 0 asn.1/{generated => skeleton}/xer_encoder.c | 2 +- asn.1/{generated => skeleton}/xer_encoder.h | 2 +- asn.1/{generated => skeleton}/xer_support.c | 0 asn.1/{generated => skeleton}/xer_support.h | 4 +- asn.1/src/LPP-PDU-Definitions.asn | 9607 +++++++++++++++++ asn.1/src/LPP.asn | 5427 ---------- asn.1/src/RRLP-Components.asn | 2366 ---- asn.1/src/RRLP-Messages.asn | 40 - asn.1/src/SUPL-AUTH-REQ.asn | 23 + asn.1/src/SUPL-AUTH-RESP.asn | 22 + asn.1/src/SUPL-END.asn | 26 + asn.1/src/SUPL-INIT.asn | 84 + asn.1/src/SUPL-NOTIFY-RESPONSE.asn | 22 + asn.1/src/SUPL-NOTIFY.asn | 20 + asn.1/src/SUPL-POS-INIT.asn | 69 + asn.1/src/SUPL-POS.asn | 35 + asn.1/src/SUPL-REPORT.asn | 81 + asn.1/src/SUPL-RESPONSE.asn | 35 + asn.1/src/SUPL-SET-INIT.asn | 24 + asn.1/src/SUPL-START.asn | 64 + asn.1/src/SUPL-TRIGGERED-RESPONSE.asn | 61 + asn.1/src/SUPL-TRIGGERED-START.asn | 206 + asn.1/src/SUPL-TRIGGERED-STOP.asn | 20 + asn.1/src/SUPL.asn | 1005 -- asn.1/src/ULP-Components.asn | 908 +- .../src/ULP-Version-2-message-extensions.asn | 121 + .../ULP-Version-2-parameter-extensions.asn | 237 + asn.1/src/ULP.asn | 117 +- asn.1/src/Ver2-ULP-Components.asn | 555 + asn.1/supl_generated/AllowedReportingType.c | 67 + .../AllowedReportingType.h | 8 +- asn.1/supl_generated/AltitudeInfo.c | 222 + .../AltitudeInfo.h | 4 +- asn.1/supl_generated/ApplicationID.c | 245 + asn.1/supl_generated/ApplicationID.h | 46 + asn.1/supl_generated/AreaEventParams.c | 336 + asn.1/supl_generated/AreaEventParams.h | 64 + asn.1/supl_generated/AreaEventType.c | 69 + .../AreaEventType.h | 8 +- asn.1/supl_generated/AreaId.c | 196 + asn.1/{generated => supl_generated}/AreaId.h | 4 +- asn.1/supl_generated/AreaIdList.c | 105 + asn.1/supl_generated/AreaIdList.h | 46 + asn.1/supl_generated/AreaIdSet.c | 68 + .../{generated => supl_generated}/AreaIdSet.h | 7 +- asn.1/supl_generated/AreaIdSetType.c | 65 + .../AreaIdSetType.h | 8 +- asn.1/supl_generated/BasicProtectionParams.c | 205 + .../BasicProtectionParams.h | 4 +- asn.1/supl_generated/BatchRepCap.c | 186 + asn.1/supl_generated/BatchRepCap.h | 48 + asn.1/supl_generated/BatchRepConditions.c | 170 + .../BatchRepConditions.h | 4 +- asn.1/supl_generated/BatchRepType.c | 122 + .../BatchRepType.h | 6 +- asn.1/supl_generated/CDMAAreaId.c | 200 + asn.1/supl_generated/CDMAAreaId.h | 46 + asn.1/supl_generated/CPICH-Ec-N0.c | 71 + asn.1/supl_generated/CPICH-Ec-N0.h | 40 + asn.1/supl_generated/CPICH-RSCP.c | 71 + asn.1/supl_generated/CPICH-RSCP.h | 40 + asn.1/supl_generated/CauseCode.c | 67 + .../{generated => supl_generated}/CauseCode.h | 8 +- asn.1/supl_generated/CdmaCellInformation.c | 448 + .../CdmaCellInformation.h | 4 +- asn.1/supl_generated/CellGlobalIdEUTRA.c | 84 + .../CellGlobalIdEUTRA.h | 4 +- asn.1/supl_generated/CellIdentity.c | 77 + asn.1/supl_generated/CellIdentity.h | 40 + asn.1/supl_generated/CellInfo.c | 124 + .../{generated => supl_generated}/CellInfo.h | 4 +- asn.1/supl_generated/CellMeasuredResults.c | 447 + .../CellMeasuredResults.h | 23 +- .../supl_generated/CellMeasuredResultsList.c | 68 + .../CellMeasuredResultsList.h | 7 +- asn.1/supl_generated/CellParametersID.c | 71 + asn.1/supl_generated/CellParametersID.h | 40 + asn.1/supl_generated/ChipRate.c | 67 + .../{generated => supl_generated}/ChipRate.h | 8 +- asn.1/supl_generated/CircularArea.c | 218 + asn.1/supl_generated/CircularArea.h | 44 + asn.1/supl_generated/Coordinate.c | 222 + .../Coordinate.h | 4 +- asn.1/supl_generated/DGANSS-Sig-Id-Req.c | 77 + asn.1/supl_generated/DGANSS-Sig-Id-Req.h | 40 + asn.1/supl_generated/EllipticalArea.c | 418 + asn.1/supl_generated/EllipticalArea.h | 48 + asn.1/supl_generated/EncodingType.c | 67 + .../EncodingType.h | 8 +- .../supl_generated/EventTriggerCapabilities.c | 218 + .../supl_generated/EventTriggerCapabilities.h | 48 + asn.1/supl_generated/ExtendedEphCheck.c | 84 + .../ExtendedEphCheck.h | 4 +- asn.1/supl_generated/ExtendedEphemeris.c | 98 + .../ExtendedEphemeris.h | 4 +- asn.1/{generated => supl_generated}/FQDN.c | 18 +- asn.1/supl_generated/FQDN.h | 40 + asn.1/supl_generated/FormatIndicator.c | 77 + .../FormatIndicator.h | 8 +- asn.1/supl_generated/FrequencyInfo.c | 146 + .../FrequencyInfo.h | 4 +- asn.1/supl_generated/FrequencyInfoFDD.c | 86 + .../FrequencyInfoFDD.h | 6 +- asn.1/supl_generated/FrequencyInfoTDD.c | 66 + .../FrequencyInfoTDD.h | 4 +- asn.1/supl_generated/GANSSPositionMethod.c | 192 + .../GANSSPositionMethod.h | 6 +- asn.1/supl_generated/GANSSPositionMethods.c | 68 + .../GANSSPositionMethods.h | 7 +- .../GANSSPositioningMethodTypes.c | 102 + .../GANSSPositioningMethodTypes.h | 4 +- asn.1/supl_generated/GANSSSignals.c | 77 + .../GANSSSignals.h | 8 +- .../supl_generated/GANSSSignalsDescription.c | 116 + .../GANSSSignalsDescription.h | 4 +- asn.1/supl_generated/GANSSextEphTime.c | 148 + .../GANSSextEphTime.h | 4 +- asn.1/supl_generated/GANSSsignalsInfo.c | 68 + .../GANSSsignalsInfo.h | 7 +- asn.1/supl_generated/GNSSPosTechnology.c | 156 + .../GNSSPosTechnology.h | 4 +- asn.1/supl_generated/GSMAreaId.c | 250 + asn.1/supl_generated/GSMAreaId.h | 47 + .../GanssAdditionalDataChoices.c | 250 + .../GanssAdditionalDataChoices.h | 47 + asn.1/supl_generated/GanssDataBits.c | 116 + .../GanssDataBits.h | 4 +- asn.1/supl_generated/GanssExtendedEphCheck.c | 84 + .../GanssExtendedEphCheck.h | 4 +- .../supl_generated/GanssNavigationModelData.c | 219 + .../GanssNavigationModelData.h | 9 +- asn.1/supl_generated/GanssReqGenericData.c | 415 + asn.1/supl_generated/GanssReqGenericData.h | 67 + .../GanssRequestedCommonAssistanceDataList.c | 138 + .../GanssRequestedCommonAssistanceDataList.h | 4 +- .../GanssRequestedGenericAssistanceDataList.c | 68 + .../GanssRequestedGenericAssistanceDataList.h | 7 +- asn.1/supl_generated/GeoAreaIndex.c | 71 + asn.1/supl_generated/GeoAreaIndex.h | 40 + asn.1/supl_generated/GeoAreaMappingList.c | 67 + .../GeoAreaMappingList.h | 4 +- asn.1/supl_generated/GeoAreaShapesSupported.c | 84 + .../GeoAreaShapesSupported.h | 4 +- asn.1/supl_generated/GeographicTargetArea.c | 106 + .../GeographicTargetArea.h | 4 +- .../supl_generated/GeographicTargetAreaList.c | 68 + .../GeographicTargetAreaList.h | 7 +- asn.1/supl_generated/GsmCellInformation.c | 319 + .../GsmCellInformation.h | 11 +- asn.1/supl_generated/HRPDAreaId.c | 104 + .../HRPDAreaId.h | 4 +- asn.1/supl_generated/HistoricReporting.c | 87 + .../HistoricReporting.h | 9 +- asn.1/supl_generated/Horandveruncert.c | 384 + .../Horandveruncert.h | 4 +- asn.1/supl_generated/Horandvervel.c | 272 + .../Horandvervel.h | 4 +- asn.1/supl_generated/Horvel.c | 160 + asn.1/{generated => supl_generated}/Horvel.h | 4 +- asn.1/supl_generated/Horveluncert.c | 216 + .../Horveluncert.h | 4 +- asn.1/supl_generated/HrpdCellInformation.c | 306 + .../HrpdCellInformation.h | 6 +- asn.1/supl_generated/IPAddress.c | 154 + .../{generated => supl_generated}/IPAddress.h | 4 +- asn.1/supl_generated/KeyIdentity.c | 77 + asn.1/supl_generated/KeyIdentity.h | 40 + asn.1/supl_generated/KeyIdentity4.c | 77 + asn.1/supl_generated/KeyIdentity4.h | 40 + asn.1/supl_generated/LTEAreaId.c | 206 + asn.1/supl_generated/LTEAreaId.h | 47 + asn.1/supl_generated/LocationData.c | 202 + .../LocationData.h | 6 +- .../LocationEncodingDescriptor.c | 65 + .../LocationEncodingDescriptor.h | 8 +- asn.1/supl_generated/LocationId.c | 84 + .../LocationId.h | 4 +- asn.1/supl_generated/LocationIdData.c | 104 + .../LocationIdData.h | 6 +- asn.1/supl_generated/LteCellInformation.c | 209 + asn.1/supl_generated/LteCellInformation.h | 58 + asn.1/supl_generated/MAC.c | 77 + asn.1/supl_generated/MAC.h | 40 + asn.1/supl_generated/MCC-MNC-Digit.c | 71 + asn.1/supl_generated/MCC-MNC-Digit.h | 40 + asn.1/supl_generated/MCC.c | 67 + asn.1/{generated => supl_generated}/MCC.h | 4 +- asn.1/supl_generated/MNC.c | 67 + asn.1/{generated => supl_generated}/MNC.h | 4 +- asn.1/supl_generated/MeasResultEUTRA.c | 260 + .../MeasResultEUTRA.h | 8 +- asn.1/supl_generated/MeasResultListEUTRA.c | 68 + .../MeasResultListEUTRA.h | 7 +- asn.1/supl_generated/MeasuredResults.c | 106 + asn.1/supl_generated/MeasuredResults.h | 46 + asn.1/supl_generated/MultipleLocationIds.c | 68 + .../MultipleLocationIds.h | 7 +- asn.1/supl_generated/NMR.c | 68 + asn.1/{generated => supl_generated}/NMR.h | 7 +- asn.1/supl_generated/NMRelement.c | 198 + .../NMRelement.h | 4 +- asn.1/supl_generated/Notification.c | 243 + asn.1/supl_generated/Notification.h | 56 + asn.1/supl_generated/NotificationMode.c | 65 + .../NotificationMode.h | 8 +- asn.1/supl_generated/NotificationResponse.c | 65 + .../NotificationResponse.h | 8 +- asn.1/supl_generated/NotificationType.c | 71 + .../NotificationType.h | 8 +- asn.1/supl_generated/PLMN-Identity.c | 87 + asn.1/supl_generated/PLMN-Identity.h | 44 + asn.1/supl_generated/Pathloss.c | 71 + asn.1/supl_generated/Pathloss.h | 40 + asn.1/supl_generated/PeriodicParams.c | 200 + .../PeriodicParams.h | 6 +- asn.1/supl_generated/PhysCellId.c | 71 + asn.1/supl_generated/PhysCellId.h | 40 + asn.1/supl_generated/PolygonArea.c | 118 + asn.1/supl_generated/PolygonArea.h | 42 + asn.1/supl_generated/PolygonDescription.c | 68 + .../PolygonDescription.h | 7 +- .../{generated => supl_generated}/PosMethod.c | 16 +- .../{generated => supl_generated}/PosMethod.h | 8 +- asn.1/supl_generated/PosPayLoad.c | 223 + .../PosPayLoad.h | 4 +- asn.1/supl_generated/PosProtocol.c | 123 + asn.1/supl_generated/PosProtocol.h | 50 + asn.1/supl_generated/PosProtocolVersion3GPP.c | 198 + .../PosProtocolVersion3GPP.h | 4 +- .../supl_generated/PosProtocolVersion3GPP2.c | 68 + .../PosProtocolVersion3GPP2.h | 7 +- asn.1/supl_generated/PosTechnology.c | 195 + .../PosTechnology.h | 9 +- asn.1/supl_generated/Position.c | 105 + .../{generated => supl_generated}/Position.h | 9 +- asn.1/supl_generated/PositionEstimate.c | 502 + .../PositionEstimate.h | 11 +- asn.1/supl_generated/PrefMethod.c | 65 + .../PrefMethod.h | 8 +- asn.1/supl_generated/PrimaryCCPCH-RSCP.c | 71 + asn.1/supl_generated/PrimaryCCPCH-RSCP.h | 40 + asn.1/supl_generated/PrimaryCPICH-Info.c | 98 + .../PrimaryCPICH-Info.h | 4 +- asn.1/supl_generated/ProtLevel.c | 65 + .../{generated => supl_generated}/ProtLevel.h | 8 +- asn.1/supl_generated/ProtectionLevel.c | 87 + asn.1/supl_generated/ProtectionLevel.h | 48 + asn.1/supl_generated/QoP.c | 250 + asn.1/supl_generated/QoP.h | 47 + asn.1/supl_generated/RSRP-Range.c | 71 + asn.1/supl_generated/RSRP-Range.h | 40 + asn.1/supl_generated/RSRQ-Range.c | 71 + asn.1/supl_generated/RSRQ-Range.h | 40 + asn.1/supl_generated/RTD.c | 168 + asn.1/supl_generated/RTD.h | 47 + asn.1/supl_generated/RTDUnits.c | 71 + .../{generated => supl_generated}/RTDUnits.h | 8 +- asn.1/supl_generated/RelativeTime.c | 71 + asn.1/supl_generated/RelativeTime.h | 40 + asn.1/supl_generated/RepMode-cap.c | 102 + .../RepMode-cap.h | 4 +- asn.1/supl_generated/RepMode.c | 67 + asn.1/{generated => supl_generated}/RepMode.h | 8 +- .../supl_generated/RepeatedReportingParams.c | 148 + .../RepeatedReportingParams.h | 4 +- asn.1/supl_generated/ReportData.c | 125 + asn.1/supl_generated/ReportData.h | 52 + asn.1/supl_generated/ReportDataList.c | 68 + .../ReportDataList.h | 7 +- asn.1/supl_generated/ReportedLocation.c | 84 + .../ReportedLocation.h | 4 +- asn.1/supl_generated/ReportingCap.c | 187 + asn.1/supl_generated/ReportingCap.h | 51 + asn.1/supl_generated/ReportingCriteria.c | 169 + asn.1/supl_generated/ReportingCriteria.h | 49 + asn.1/supl_generated/ReportingMode.c | 106 + asn.1/supl_generated/ReportingMode.h | 50 + .../supl_generated/ReqDataBitAssistanceList.c | 261 + .../ReqDataBitAssistanceList.h | 4 +- asn.1/supl_generated/RequestedAssistData.c | 250 + .../RequestedAssistData.h | 12 +- asn.1/supl_generated/ResultCode.c | 75 + .../ResultCode.h | 8 +- asn.1/supl_generated/SET-GANSSReferenceTime.c | 576 + .../SET-GANSSReferenceTime.h | 6 +- asn.1/supl_generated/SETAuthKey.c | 164 + .../SETAuthKey.h | 4 +- asn.1/supl_generated/SETCapabilities.c | 123 + .../SETCapabilities.h | 9 +- asn.1/supl_generated/SETId.c | 344 + asn.1/{generated => supl_generated}/SETId.h | 4 +- asn.1/supl_generated/SLPAddress.c | 88 + .../SLPAddress.h | 4 +- asn.1/supl_generated/SLPMode.c | 63 + asn.1/{generated => supl_generated}/SLPMode.h | 8 +- asn.1/supl_generated/SPCSETKey.c | 77 + asn.1/supl_generated/SPCSETKey.h | 40 + asn.1/supl_generated/SPCSETKeylifetime.c | 71 + asn.1/supl_generated/SPCSETKeylifetime.h | 40 + asn.1/supl_generated/SPCTID.c | 122 + asn.1/{generated => supl_generated}/SPCTID.h | 4 +- asn.1/supl_generated/SUPL-GPSTime.c | 148 + .../SUPL-GPSTime.h | 4 +- asn.1/supl_generated/SUPL-NavigationModel.c | 269 + .../SUPL-NavigationModel.h | 9 +- asn.1/supl_generated/SUPL-PositionData.c | 124 + asn.1/supl_generated/SUPL-PositionData.h | 52 + asn.1/supl_generated/SUPLAUTHREQ.c | 87 + asn.1/supl_generated/SUPLAUTHREQ.h | 48 + asn.1/supl_generated/SUPLAUTHRESP.c | 104 + asn.1/supl_generated/SUPLAUTHRESP.h | 48 + asn.1/supl_generated/SUPLEND.c | 124 + asn.1/supl_generated/SUPLEND.h | 52 + asn.1/supl_generated/SUPLINIT.c | 198 + asn.1/supl_generated/SUPLINIT.h | 60 + asn.1/supl_generated/SUPLPOS.c | 106 + asn.1/supl_generated/SUPLPOS.h | 50 + asn.1/supl_generated/SUPLPOSINIT.c | 180 + asn.1/supl_generated/SUPLPOSINIT.h | 58 + asn.1/supl_generated/SUPLRESPONSE.c | 143 + asn.1/supl_generated/SUPLRESPONSE.h | 54 + asn.1/supl_generated/SUPLSTART.c | 124 + asn.1/supl_generated/SUPLSTART.h | 52 + asn.1/supl_generated/SatelliteInfo.c | 68 + .../SatelliteInfo.h | 7 +- asn.1/supl_generated/SatelliteInfoElement.c | 148 + .../SatelliteInfoElement.h | 4 +- .../SatellitesListRelatedData.c | 148 + .../SatellitesListRelatedData.h | 4 +- .../SatellitesListRelatedDataList.c | 68 + .../SatellitesListRelatedDataList.h | 7 +- asn.1/supl_generated/ServiceCapabilities.c | 124 + asn.1/supl_generated/ServiceCapabilities.h | 52 + asn.1/supl_generated/ServicesSupported.c | 84 + .../ServicesSupported.h | 4 +- asn.1/supl_generated/SessionCapabilities.c | 198 + .../SessionCapabilities.h | 4 +- asn.1/supl_generated/SessionID.c | 88 + asn.1/supl_generated/SessionID.h | 44 + asn.1/supl_generated/SessionInformation.c | 66 + .../SessionInformation.h | 4 +- asn.1/supl_generated/SessionList.c | 68 + .../SessionList.h | 7 +- asn.1/supl_generated/SetSessionID.c | 116 + .../SetSessionID.h | 4 +- asn.1/supl_generated/SlpSessionID.c | 117 + .../SlpSessionID.h | 4 +- asn.1/supl_generated/Status.c | 67 + asn.1/{generated => supl_generated}/Status.h | 8 +- .../StatusCode.c | 16 +- .../StatusCode.h | 8 +- .../Supported3GPP2PosProtocolVersion.c | 204 + .../Supported3GPP2PosProtocolVersion.h | 4 +- asn.1/supl_generated/SupportedBearers.c | 192 + .../SupportedBearers.h | 4 +- .../SupportedNetworkInformation.c | 323 + .../SupportedNetworkInformation.h | 63 + asn.1/supl_generated/SupportedWCDMAInfo.c | 66 + .../SupportedWCDMAInfo.h | 4 +- asn.1/supl_generated/SupportedWLANApData.c | 182 + .../SupportedWLANApData.h | 4 +- .../SupportedWLANApsChannel11a.c | 336 + .../SupportedWLANApsChannel11a.h | 4 +- .../SupportedWLANApsChannel11bg.c | 300 + .../SupportedWLANApsChannel11bg.h | 4 +- asn.1/supl_generated/SupportedWLANApsList.c | 200 + .../SupportedWLANApsList.h | 13 +- asn.1/supl_generated/SupportedWLANInfo.c | 264 + .../SupportedWLANInfo.h | 4 +- asn.1/supl_generated/TAResolution.c | 67 + .../TAResolution.h | 8 +- asn.1/supl_generated/TGSN.c | 71 + asn.1/supl_generated/TGSN.h | 40 + asn.1/supl_generated/ThirdParty.c | 68 + .../ThirdParty.h | 7 +- .../ThirdPartyID.c | 132 +- .../ThirdPartyID.h | 4 +- asn.1/supl_generated/TimeStamp.c | 120 + .../{generated => supl_generated}/TimeStamp.h | 4 +- asn.1/supl_generated/TimeWindow.c | 148 + asn.1/supl_generated/TimeWindow.h | 41 + asn.1/supl_generated/TimeslotISCP-List.c | 67 + .../TimeslotISCP-List.h | 4 +- asn.1/supl_generated/TimeslotISCP.c | 71 + asn.1/supl_generated/TimeslotISCP.h | 40 + asn.1/supl_generated/TimingAdvance.c | 136 + asn.1/supl_generated/TimingAdvance.h | 48 + asn.1/supl_generated/TrackingAreaCode.c | 77 + asn.1/supl_generated/TrackingAreaCode.h | 40 + asn.1/supl_generated/TriggerParams.c | 88 + .../TriggerParams.h | 4 +- asn.1/supl_generated/TriggerType.c | 65 + .../TriggerType.h | 8 +- asn.1/supl_generated/UARFCN.c | 71 + asn.1/supl_generated/UARFCN.h | 40 + .../supl_generated/ULP-MeasuredResultsList.c | 68 + .../ULP-MeasuredResultsList.h | 7 +- asn.1/supl_generated/ULP-PDU.c | 152 + asn.1/{generated => supl_generated}/ULP-PDU.h | 4 +- asn.1/supl_generated/ULP-Velocity.c | 124 + .../ULP-Velocity.h | 4 +- asn.1/supl_generated/UMBAreaId.c | 206 + asn.1/supl_generated/UMBAreaId.h | 47 + asn.1/supl_generated/UTRA-CarrierRSSI.c | 71 + asn.1/supl_generated/UTRA-CarrierRSSI.h | 40 + .../supl_generated/UTRAN-GANSSReferenceTime.c | 466 + .../UTRAN-GANSSReferenceTime.h | 8 +- .../UTRAN-GANSSReferenceTimeAssistance.c | 186 + .../UTRAN-GANSSReferenceTimeAssistance.h | 8 +- .../UTRAN-GANSSReferenceTimeResult.c | 116 + .../UTRAN-GANSSReferenceTimeResult.h | 4 +- asn.1/supl_generated/UTRAN-GPSReferenceTime.c | 526 + .../UTRAN-GPSReferenceTime.h | 4 +- .../UTRAN-GPSReferenceTimeAssistance.c | 136 + .../UTRAN-GPSReferenceTimeAssistance.h | 44 + .../UTRAN-GPSReferenceTimeResult.c | 576 + .../UTRAN-GPSReferenceTimeResult.h | 6 +- .../UTRANGANSSDriftRate.c | 16 +- .../UTRANGANSSDriftRate.h | 8 +- .../UTRANGPSDriftRate.c | 16 +- .../UTRANGPSDriftRate.h | 8 +- asn.1/supl_generated/UlpMessage.c | 322 + .../UlpMessage.h | 4 +- asn.1/supl_generated/UmbCellInformation.c | 404 + .../UmbCellInformation.h | 4 +- asn.1/supl_generated/Ver.c | 77 + asn.1/supl_generated/Ver.h | 40 + .../supl_generated/Ver2-CellInfo-extension.c | 142 + .../Ver2-CellInfo-extension.h | 4 +- .../Ver2-Notification-extension.c | 68 + .../Ver2-Notification-extension.h | 6 +- .../Ver2-PosPayLoad-extension.c | 338 + .../Ver2-PosPayLoad-extension.h | 4 +- .../Ver2-PosProtocol-extension.c | 142 + .../Ver2-PosProtocol-extension.h | 52 + .../Ver2-PosTechnology-extension.c | 69 + .../Ver2-PosTechnology-extension.h | 9 +- .../Ver2-RequestedAssistData-extension.c | 126 + .../Ver2-RequestedAssistData-extension.h | 52 + .../Ver2-SETCapabilities-extension.c | 88 + .../Ver2-SETCapabilities-extension.h | 48 + .../supl_generated/Ver2-SUPL-END-extension.c | 69 + .../supl_generated/Ver2-SUPL-END-extension.h | 46 + .../supl_generated/Ver2-SUPL-INIT-extension.c | 231 + .../supl_generated/Ver2-SUPL-INIT-extension.h | 60 + .../Ver2-SUPL-POS-INIT-extension.c | 107 + .../Ver2-SUPL-POS-INIT-extension.h | 50 + .../supl_generated/Ver2-SUPL-POS-extension.c | 126 + .../supl_generated/Ver2-SUPL-POS-extension.h | 52 + .../Ver2-SUPL-RESPONSE-extension.c | 162 + .../Ver2-SUPL-RESPONSE-extension.h | 56 + .../Ver2-SUPL-START-extension.c | 126 + .../Ver2-SUPL-START-extension.h | 52 + asn.1/supl_generated/Ver2-SUPLNOTIFY.c | 66 + .../Ver2-SUPLNOTIFY.h | 4 +- .../supl_generated/Ver2-SUPLNOTIFYRESPONSE.c | 68 + .../supl_generated/Ver2-SUPLNOTIFYRESPONSE.h | 44 + asn.1/supl_generated/Ver2-SUPLREPORT.c | 143 + asn.1/supl_generated/Ver2-SUPLREPORT.h | 54 + asn.1/supl_generated/Ver2-SUPLSETINIT.c | 106 + asn.1/supl_generated/Ver2-SUPLSETINIT.h | 50 + .../Ver2-SUPLTRIGGEREDRESPONSE.c | 218 + .../Ver2-SUPLTRIGGEREDRESPONSE.h | 62 + .../supl_generated/Ver2-SUPLTRIGGEREDSTART.c | 273 + .../supl_generated/Ver2-SUPLTRIGGEREDSTART.h | 68 + asn.1/supl_generated/Ver2-SUPLTRIGGEREDSTOP.c | 68 + .../Ver2-SUPLTRIGGEREDSTOP.h | 6 +- asn.1/supl_generated/Version.c | 198 + asn.1/supl_generated/Version.h | 42 + asn.1/supl_generated/WCDMAAreaId.c | 250 + asn.1/supl_generated/WCDMAAreaId.h | 47 + asn.1/supl_generated/WLANAreaId.c | 104 + .../WLANAreaId.h | 4 +- asn.1/supl_generated/WcdmaCellInformation.c | 357 + asn.1/supl_generated/WcdmaCellInformation.h | 56 + asn.1/supl_generated/WimaxAreaId.c | 162 + asn.1/supl_generated/WimaxAreaId.h | 41 + asn.1/supl_generated/WimaxBSInformation.c | 106 + asn.1/supl_generated/WimaxBSInformation.h | 50 + asn.1/supl_generated/WimaxBsID.c | 162 + asn.1/supl_generated/WimaxBsID.h | 45 + asn.1/supl_generated/WimaxNMR.c | 437 + asn.1/supl_generated/WimaxNMR.h | 56 + asn.1/supl_generated/WimaxNMRList.c | 68 + .../WimaxNMRList.h | 7 +- asn.1/supl_generated/WimaxRTD.c | 150 + asn.1/supl_generated/WimaxRTD.h | 45 + asn.1/supl_generated/WlanAPInformation.c | 672 ++ asn.1/supl_generated/WlanAPInformation.h | 73 + asn.1/supl_generated/asn_config.h | 7 + asn.1/supl_generated/asn_constant.h | 65 + examples/client/CMakeLists.txt | 2 +- examples/lpp/CMakeLists.txt | 2 +- examples/lpp/location_information.cpp | 64 +- examples/lpp/location_information.h | 22 +- examples/lpp2spartn/CMakeLists.txt | 2 +- generator/rtcm/CMakeLists.txt | 2 +- .../rtcm/extract/auxiliary_information.cpp | 1 + generator/rtcm/extract/extract.cpp | 1 + .../rtcm/extract/extract_bias_information.cpp | 1 + .../extract_common_observation_info.cpp | 1 + .../rtcm/extract/extract_observations.cpp | 1 + .../extract_reference_station_info.cpp | 1 + generator/rtcm/extract/residuals.cpp | 1 + generator/rtcm/generator.cpp | 3 +- generator/spartn/CMakeLists.txt | 2 +- generator/spartn2/CMakeLists.txt | 2 +- generator/spartn2/generator.cpp | 1 + generator/spartn2/hpac.cpp | 6 + generator/spartn2/ocb.cpp | 12 + libs/lpp/CMakeLists.txt | 2 +- libs/lpplib/CMakeLists.txt | 5 +- libs/lpplib/include/lpp/asn_helper.h | 2 +- libs/lpplib/include/lpp/asnlib.h | 1 + libs/lpplib/include/lpp/internal_lpp.h | 6 +- .../lpplib/include/lpp/location_information.h | 6 + libs/lpplib/include/lpp/lpp.h | 13 +- libs/lpplib/src/asn_helper.cpp | 2 + libs/lpplib/src/assistance_data.cpp | 31 + libs/lpplib/src/capabilities.cpp | 16 + libs/lpplib/src/internal_lpp.cpp | 121 +- libs/lpplib/src/lpp.cpp | 41 +- libs/lpplib/src/supl.cpp | 4 + libs/supl/CMakeLists.txt | 2 +- receiver/nmea/CMakeLists.txt | 4 - 3510 files changed, 323132 insertions(+), 165714 deletions(-) create mode 100644 asn.1/AUTHORS create mode 100644 asn.1/LICENSE create mode 100644 asn.1/README delete mode 100644 asn.1/generated/A-GNSS-Error.c delete mode 100644 asn.1/generated/A-GNSS-ProvideAssistanceData.c delete mode 100644 asn.1/generated/A-GNSS-ProvideAssistanceData.h delete mode 100644 asn.1/generated/A-GNSS-ProvideCapabilities.c delete mode 100644 asn.1/generated/A-GNSS-ProvideCapabilities.h delete mode 100644 asn.1/generated/A-GNSS-ProvideLocationInformation.c delete mode 100644 asn.1/generated/A-GNSS-ProvideLocationInformation.h delete mode 100644 asn.1/generated/A-GNSS-RequestAssistanceData.c delete mode 100644 asn.1/generated/A-GNSS-RequestAssistanceData.h delete mode 100644 asn.1/generated/A-GNSS-RequestCapabilities.c delete mode 100644 asn.1/generated/A-GNSS-RequestLocationInformation.c delete mode 100644 asn.1/generated/ARFCN-ValueEUTRA-r14.c delete mode 100644 asn.1/generated/ARFCN-ValueEUTRA-r14.h delete mode 100644 asn.1/generated/ARFCN-ValueEUTRA-v9a0.c delete mode 100644 asn.1/generated/ARFCN-ValueEUTRA-v9a0.h delete mode 100644 asn.1/generated/ARFCN-ValueEUTRA.c delete mode 100644 asn.1/generated/ARFCN-ValueEUTRA.h delete mode 100644 asn.1/generated/ARFCN-ValueNR-r15.c delete mode 100644 asn.1/generated/ARFCN-ValueNR-r15.h delete mode 100644 asn.1/generated/ARFCN-ValueUTRA.c delete mode 100644 asn.1/generated/ARFCN-ValueUTRA.h delete mode 100644 asn.1/generated/AUX-ReferenceStationID-Element-r15.c delete mode 100644 asn.1/generated/AUX-ReferenceStationList-r15.c delete mode 100644 asn.1/generated/Abort-r9-IEs.c delete mode 100644 asn.1/generated/Abort-r9-IEs.h delete mode 100644 asn.1/generated/Abort.c delete mode 100644 asn.1/generated/AccessTypes.c delete mode 100644 asn.1/generated/Acknowledgement.c delete mode 100644 asn.1/generated/Acknowledgement.h delete mode 100644 asn.1/generated/Add-PRSconfigNeighbourElement-r14.c delete mode 100644 asn.1/generated/AdditionalInformation.c delete mode 100644 asn.1/generated/AdditionalPath-r14.c delete mode 100644 asn.1/generated/AdditionalPathList-r14.c delete mode 100644 asn.1/generated/AllowedReportingType.c delete mode 100644 asn.1/generated/AlmanacBDS-AlmanacSet-r12.c delete mode 100644 asn.1/generated/AlmanacECEF-SBAS-AlmanacSet.c delete mode 100644 asn.1/generated/AlmanacGLONASS-AlmanacSet.c delete mode 100644 asn.1/generated/AlmanacKeplerianSet.c delete mode 100644 asn.1/generated/AlmanacMidiAlmanacSet.c delete mode 100644 asn.1/generated/AlmanacNAV-KeplerianSet.c delete mode 100644 asn.1/generated/AlmanacNavIC-AlmanacSet-r16.c delete mode 100644 asn.1/generated/AlmanacReducedKeplerianSet.c delete mode 100644 asn.1/generated/AltitudeInfo.c delete mode 100644 asn.1/generated/AntennaDescription-r15.c delete mode 100644 asn.1/generated/AntennaReferencePointUnc-r15.c delete mode 100644 asn.1/generated/ApplicationID.c delete mode 100644 asn.1/generated/ApplicationID.h delete mode 100644 asn.1/generated/AreaEventParams.c delete mode 100644 asn.1/generated/AreaEventParams.h delete mode 100644 asn.1/generated/AreaEventType.c delete mode 100644 asn.1/generated/AreaId.c delete mode 100644 asn.1/generated/AreaIdList.c delete mode 100644 asn.1/generated/AreaIdList.h delete mode 100644 asn.1/generated/AreaIdSet.c delete mode 100644 asn.1/generated/AreaIdSetType.c delete mode 100644 asn.1/generated/AssistanceDataSupportList.c delete mode 100644 asn.1/generated/Aux-ARP-Unc-r15.c delete mode 100644 asn.1/generated/Aux-ARP-Unc-r15.h delete mode 100644 asn.1/generated/AuxiliaryStationElement-r15.c delete mode 100644 asn.1/generated/AuxiliaryStationList-r15.c delete mode 100644 asn.1/generated/BDS-ClockModel-r12.c delete mode 100644 asn.1/generated/BDS-ClockModel-r12.h delete mode 100644 asn.1/generated/BDS-ClockModel2-r16.c delete mode 100644 asn.1/generated/BDS-ClockModel2-r16.h delete mode 100644 asn.1/generated/BDS-DifferentialCorrections-r12.c delete mode 100644 asn.1/generated/BDS-DifferentialCorrectionsReq-r12.c delete mode 100644 asn.1/generated/BDS-DifferentialCorrectionsSupport-r12.c delete mode 100644 asn.1/generated/BDS-GridModelParameter-r12.c delete mode 100644 asn.1/generated/BDS-GridModelReq-r12.c delete mode 100644 asn.1/generated/BDS-GridModelSupport-r12.c delete mode 100644 asn.1/generated/BDS-SgnTypeElement-r12.c delete mode 100644 asn.1/generated/BDS-SgnTypeList-r12.c delete mode 100644 asn.1/generated/BIT_STRING.c delete mode 100644 asn.1/generated/BIT_STRING.h delete mode 100644 asn.1/generated/BOOLEAN.c delete mode 100644 asn.1/generated/BOOLEAN.h delete mode 100644 asn.1/generated/BT-Error-r13.c delete mode 100644 asn.1/generated/BT-LocationServerErrorCauses-r13.c delete mode 100644 asn.1/generated/BT-LocationServerErrorCauses-r13.h delete mode 100644 asn.1/generated/BT-MeasurementElement-r13.c delete mode 100644 asn.1/generated/BT-MeasurementInformation-r13.c delete mode 100644 asn.1/generated/BT-MeasurementInformation-r13.h delete mode 100644 asn.1/generated/BT-MeasurementList-r13.c delete mode 100644 asn.1/generated/BT-ProvideCapabilities-r13.c delete mode 100644 asn.1/generated/BT-ProvideCapabilities-r13.h delete mode 100644 asn.1/generated/BT-ProvideLocationInformation-r13.c delete mode 100644 asn.1/generated/BT-ProvideLocationInformation-r13.h delete mode 100644 asn.1/generated/BT-RequestCapabilities-r13.c delete mode 100644 asn.1/generated/BT-RequestLocationInformation-r13.c delete mode 100644 asn.1/generated/BT-RequestLocationInformation-r13.h delete mode 100644 asn.1/generated/BT-TargetDeviceErrorCauses-r13.c delete mode 100644 asn.1/generated/BadSignalElement.c delete mode 100644 asn.1/generated/BasicProtectionParams.c delete mode 100644 asn.1/generated/BatchRepCap.c delete mode 100644 asn.1/generated/BatchRepCap.h delete mode 100644 asn.1/generated/BatchRepConditions.c delete mode 100644 asn.1/generated/BatchRepType.c delete mode 100644 asn.1/generated/CDMAAreaId.c delete mode 100644 asn.1/generated/CDMAAreaId.h delete mode 100644 asn.1/generated/CNAV-ClockModel.c delete mode 100644 asn.1/generated/CNAV-ClockModel.h delete mode 100644 asn.1/generated/CPICH-Ec-N0.c delete mode 100644 asn.1/generated/CPICH-Ec-N0.h delete mode 100644 asn.1/generated/CPICH-RSCP.c delete mode 100644 asn.1/generated/CPICH-RSCP.h delete mode 100644 asn.1/generated/CarrierFreq-NB-r14.c delete mode 100644 asn.1/generated/CauseCode.c delete mode 100644 asn.1/generated/CdmaCellInformation.c delete mode 100644 asn.1/generated/CellGlobalIdEUTRA-AndUTRA.c delete mode 100644 asn.1/generated/CellGlobalIdEUTRA.c delete mode 100644 asn.1/generated/CellGlobalIdGERAN.c delete mode 100644 asn.1/generated/CellIdentity.c delete mode 100644 asn.1/generated/CellIdentity.h delete mode 100644 asn.1/generated/CellInfo.c delete mode 100644 asn.1/generated/CellMeasuredResults.c delete mode 100644 asn.1/generated/CellMeasuredResultsList.c delete mode 100644 asn.1/generated/CellParametersID.c delete mode 100644 asn.1/generated/CellParametersID.h delete mode 100644 asn.1/generated/ChipRate.c delete mode 100644 asn.1/generated/CircularArea.c delete mode 100644 asn.1/generated/CircularArea.h delete mode 100644 asn.1/generated/CommonIEsAbort.c delete mode 100644 asn.1/generated/CommonIEsError.c delete mode 100644 asn.1/generated/CommonIEsProvideAssistanceData.c delete mode 100644 asn.1/generated/CommonIEsProvideCapabilities.c delete mode 100644 asn.1/generated/CommonIEsProvideCapabilities.h delete mode 100644 asn.1/generated/CommonIEsProvideLocationInformation.c delete mode 100644 asn.1/generated/CommonIEsProvideLocationInformation.h delete mode 100644 asn.1/generated/CommonIEsRequestAssistanceData.c delete mode 100644 asn.1/generated/CommonIEsRequestAssistanceData.h delete mode 100644 asn.1/generated/CommonIEsRequestCapabilities.c delete mode 100644 asn.1/generated/CommonIEsRequestCapabilities.h delete mode 100644 asn.1/generated/CommonIEsRequestLocationInformation.c delete mode 100644 asn.1/generated/CommonIEsRequestLocationInformation.h delete mode 100644 asn.1/generated/Coordinate.c delete mode 100644 asn.1/generated/DBDS-CorrectionElement-r12.c delete mode 100644 asn.1/generated/DBDS-CorrectionList-r12.c delete mode 100644 asn.1/generated/DGANSS-Sig-Id-Req.c delete mode 100644 asn.1/generated/DGANSS-Sig-Id-Req.h delete mode 100644 asn.1/generated/DGNSS-CorrectionsElement.c delete mode 100644 asn.1/generated/DGNSS-SatList.c delete mode 100644 asn.1/generated/DGNSS-SgnTypeElement.c delete mode 100644 asn.1/generated/DGNSS-SgnTypeList.c delete mode 100644 asn.1/generated/DL-PRS-BeamInfoElement-r16.c delete mode 100644 asn.1/generated/DL-PRS-BeamInfoElement-r16.h delete mode 100644 asn.1/generated/DL-PRS-BeamInfoResourceSet-r16.c delete mode 100644 asn.1/generated/DL-PRS-BeamInfoSet-r16.c delete mode 100644 asn.1/generated/DL-PRS-IdInfo-r16.c delete mode 100644 asn.1/generated/DL-PRS-IdInfo-r16.h delete mode 100644 asn.1/generated/DL-PRS-QCL-Info-r16.c delete mode 100644 asn.1/generated/DL-PRS-Resource-ARP-Element-r16.c delete mode 100644 asn.1/generated/DL-PRS-Resource-ARP-Element-r16.h delete mode 100644 asn.1/generated/DL-PRS-ResourceSets-TRP-Element-r16.c delete mode 100644 asn.1/generated/DL-PRS-ResourceSets-TRP-Element-r16.h delete mode 100644 asn.1/generated/DL-Selected-PRS-ResourceSetIndex-r16.c delete mode 100644 asn.1/generated/DL-Selected-PRS-ResourceSetIndex-r16.h delete mode 100644 asn.1/generated/DL-SelectedPRS-ResourceIndex-r16.c delete mode 100644 asn.1/generated/Delta-Height-r16.c delete mode 100644 asn.1/generated/Delta-Height-r16.h delete mode 100644 asn.1/generated/Delta-Latitude-r16.c delete mode 100644 asn.1/generated/Delta-Longitude-r16.c delete mode 100644 asn.1/generated/DeltaTime-r15.c delete mode 100644 asn.1/generated/Displacement-r15.c delete mode 100644 asn.1/generated/Displacement-r15.h delete mode 100644 asn.1/generated/DisplacementInfoList-r15.c delete mode 100644 asn.1/generated/DisplacementInfoListElement-r15.c delete mode 100644 asn.1/generated/DisplacementTimeStamp-r15.c delete mode 100644 asn.1/generated/ECGI.c delete mode 100644 asn.1/generated/ECID-Error.c delete mode 100644 asn.1/generated/ECID-LocationServerErrorCauses.c delete mode 100644 asn.1/generated/ECID-ProvideCapabilities.c delete mode 100644 asn.1/generated/ECID-ProvideLocationInformation.c delete mode 100644 asn.1/generated/ECID-RequestCapabilities.c delete mode 100644 asn.1/generated/ECID-RequestLocationInformation.c delete mode 100644 asn.1/generated/ECID-SignalMeasurementInformation.c delete mode 100644 asn.1/generated/ECID-TargetDeviceErrorCauses.c delete mode 100644 asn.1/generated/EPDU-Body.c delete mode 100644 asn.1/generated/EPDU-Body.h delete mode 100644 asn.1/generated/EPDU-ID.c delete mode 100644 asn.1/generated/EPDU-ID.h delete mode 100644 asn.1/generated/EPDU-Identifier.c delete mode 100644 asn.1/generated/EPDU-Name.c delete mode 100644 asn.1/generated/EPDU-Name.h delete mode 100644 asn.1/generated/EPDU-Sequence.c delete mode 100644 asn.1/generated/EPDU.c delete mode 100644 asn.1/generated/EarlyFixReport-r12.c delete mode 100644 asn.1/generated/Ellipsoid-Point.c delete mode 100644 asn.1/generated/Ellipsoid-PointWithUncertaintyCircle.c delete mode 100644 asn.1/generated/EllipsoidArc.c delete mode 100644 asn.1/generated/EllipsoidPointWithAltitude.c delete mode 100644 asn.1/generated/EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.c delete mode 100644 asn.1/generated/EllipsoidPointWithUncertaintyEllipse.c delete mode 100644 asn.1/generated/EllipticalArea.c delete mode 100644 asn.1/generated/EllipticalArea.h delete mode 100644 asn.1/generated/EncodingType.c delete mode 100644 asn.1/generated/Environment.c delete mode 100644 asn.1/generated/EqualIntegerAmbiguityLevel-r16.c delete mode 100644 asn.1/generated/Error-r9-IEs.c delete mode 100644 asn.1/generated/Error-r9-IEs.h delete mode 100644 asn.1/generated/Error.c delete mode 100644 asn.1/generated/EventTriggerCapabilities.c delete mode 100644 asn.1/generated/EventTriggerCapabilities.h delete mode 100644 asn.1/generated/ExtendedEphCheck.c delete mode 100644 asn.1/generated/ExtendedEphemeris.c delete mode 100644 asn.1/generated/FKP-Gradients-Element-r15.c delete mode 100644 asn.1/generated/FKP-Gradients-List-r15.c delete mode 100644 asn.1/generated/FQDN.h delete mode 100644 asn.1/generated/FormatIndicator.c delete mode 100644 asn.1/generated/FrequencyInfo.c delete mode 100644 asn.1/generated/FrequencyInfoFDD.c delete mode 100644 asn.1/generated/FrequencyInfoTDD.c delete mode 100644 asn.1/generated/GANSSPositionMethod.c delete mode 100644 asn.1/generated/GANSSPositionMethods.c delete mode 100644 asn.1/generated/GANSSPositioningMethodTypes.c delete mode 100644 asn.1/generated/GANSSSignals.c delete mode 100644 asn.1/generated/GANSSSignalsDescription.c delete mode 100644 asn.1/generated/GANSSextEphTime.c delete mode 100644 asn.1/generated/GANSSsignalsInfo.c delete mode 100644 asn.1/generated/GLO-RTK-BiasInformation-r15.c delete mode 100644 asn.1/generated/GLO-RTK-BiasInformation-r15.h delete mode 100644 asn.1/generated/GLO-RTK-BiasInformationReq-r15.c delete mode 100644 asn.1/generated/GLO-RTK-BiasInformationSupport-r15.c delete mode 100644 asn.1/generated/GLONASS-ClockModel.c delete mode 100644 asn.1/generated/GNSS-AcquisitionAssistElement.c delete mode 100644 asn.1/generated/GNSS-AcquisitionAssistList.c delete mode 100644 asn.1/generated/GNSS-AcquisitionAssistance.c delete mode 100644 asn.1/generated/GNSS-AcquisitionAssistanceReq.c delete mode 100644 asn.1/generated/GNSS-AcquisitionAssistanceSupport.c delete mode 100644 asn.1/generated/GNSS-Almanac.c delete mode 100644 asn.1/generated/GNSS-Almanac.h delete mode 100644 asn.1/generated/GNSS-AlmanacElement.c delete mode 100644 asn.1/generated/GNSS-AlmanacList.c delete mode 100644 asn.1/generated/GNSS-AlmanacReq.c delete mode 100644 asn.1/generated/GNSS-AlmanacSupport.c delete mode 100644 asn.1/generated/GNSS-AuxiliaryInformation.c delete mode 100644 asn.1/generated/GNSS-AuxiliaryInformationReq.c delete mode 100644 asn.1/generated/GNSS-AuxiliaryInformationSupport.c delete mode 100644 asn.1/generated/GNSS-BadSignalList.c delete mode 100644 asn.1/generated/GNSS-ClockModel.c delete mode 100644 asn.1/generated/GNSS-CommonAssistData.c delete mode 100644 asn.1/generated/GNSS-CommonAssistData.h delete mode 100644 asn.1/generated/GNSS-CommonAssistDataReq.c delete mode 100644 asn.1/generated/GNSS-CommonAssistDataReq.h delete mode 100644 asn.1/generated/GNSS-CommonAssistanceDataSupport.c delete mode 100644 asn.1/generated/GNSS-CommonAssistanceDataSupport.h delete mode 100644 asn.1/generated/GNSS-DataBitAssistance.c delete mode 100644 asn.1/generated/GNSS-DataBitAssistanceReq.c delete mode 100644 asn.1/generated/GNSS-DataBitAssistanceSupport.c delete mode 100644 asn.1/generated/GNSS-DataBitsReqSatElement.c delete mode 100644 asn.1/generated/GNSS-DataBitsReqSatList.c delete mode 100644 asn.1/generated/GNSS-DataBitsSatElement.c delete mode 100644 asn.1/generated/GNSS-DataBitsSatList.c delete mode 100644 asn.1/generated/GNSS-DataBitsSgnElement.c delete mode 100644 asn.1/generated/GNSS-DataBitsSgnList.c delete mode 100644 asn.1/generated/GNSS-DifferentialCorrections.c delete mode 100644 asn.1/generated/GNSS-DifferentialCorrectionsReq.c delete mode 100644 asn.1/generated/GNSS-DifferentialCorrectionsSupport.c delete mode 100644 asn.1/generated/GNSS-EarthOrientationParameters.c delete mode 100644 asn.1/generated/GNSS-EarthOrientationParametersReq.c delete mode 100644 asn.1/generated/GNSS-EarthOrientationParametersSupport.c delete mode 100644 asn.1/generated/GNSS-FrequencyID-r15.c delete mode 100644 asn.1/generated/GNSS-GenericAssistData.c delete mode 100644 asn.1/generated/GNSS-GenericAssistDataElement.c delete mode 100644 asn.1/generated/GNSS-GenericAssistDataElement.h delete mode 100644 asn.1/generated/GNSS-GenericAssistDataReq.c delete mode 100644 asn.1/generated/GNSS-GenericAssistDataReqElement.c delete mode 100644 asn.1/generated/GNSS-GenericAssistDataReqElement.h delete mode 100644 asn.1/generated/GNSS-GenericAssistDataSupportElement.c delete mode 100644 asn.1/generated/GNSS-GenericAssistDataSupportElement.h delete mode 100644 asn.1/generated/GNSS-GenericAssistanceDataSupport.c delete mode 100644 asn.1/generated/GNSS-ID-BDS-SatElement-r16.c delete mode 100644 asn.1/generated/GNSS-ID-BDS-r16.c delete mode 100644 asn.1/generated/GNSS-ID-Bitmap.c delete mode 100644 asn.1/generated/GNSS-ID-GLONASS-SatElement.c delete mode 100644 asn.1/generated/GNSS-ID-GLONASS.c delete mode 100644 asn.1/generated/GNSS-ID-GPS-SatElement.c delete mode 100644 asn.1/generated/GNSS-ID-GPS.c delete mode 100644 asn.1/generated/GNSS-ID.c delete mode 100644 asn.1/generated/GNSS-IonosphericModel.c delete mode 100644 asn.1/generated/GNSS-IonosphericModel.h delete mode 100644 asn.1/generated/GNSS-IonosphericModelReq.c delete mode 100644 asn.1/generated/GNSS-IonosphericModelReq.h delete mode 100644 asn.1/generated/GNSS-IonosphericModelSupport.c delete mode 100644 asn.1/generated/GNSS-Link-Combinations-r15.c delete mode 100644 asn.1/generated/GNSS-Link-CombinationsList-r15.c delete mode 100644 asn.1/generated/GNSS-LocationInformation.c delete mode 100644 asn.1/generated/GNSS-LocationInformation.h delete mode 100644 asn.1/generated/GNSS-MeasurementForOneGNSS.c delete mode 100644 asn.1/generated/GNSS-MeasurementList.c delete mode 100644 asn.1/generated/GNSS-NavListInfo-r15.c delete mode 100644 asn.1/generated/GNSS-NavModelSatelliteElement.c delete mode 100644 asn.1/generated/GNSS-NavModelSatelliteList.c delete mode 100644 asn.1/generated/GNSS-NavigationModel.c delete mode 100644 asn.1/generated/GNSS-NavigationModelReq.c delete mode 100644 asn.1/generated/GNSS-NavigationModelSupport.c delete mode 100644 asn.1/generated/GNSS-NetworkID-r15.c delete mode 100644 asn.1/generated/GNSS-ObservationList-r15.c delete mode 100644 asn.1/generated/GNSS-OrbitModel.c delete mode 100644 asn.1/generated/GNSS-PeriodicAssistData-r15.c delete mode 100644 asn.1/generated/GNSS-PeriodicAssistData-r15.h delete mode 100644 asn.1/generated/GNSS-PeriodicAssistDataReq-r15.c delete mode 100644 asn.1/generated/GNSS-PeriodicAssistDataReq-r15.h delete mode 100644 asn.1/generated/GNSS-PeriodicControlParam-r15.c delete mode 100644 asn.1/generated/GNSS-PositioningInstructions.c delete mode 100644 asn.1/generated/GNSS-PositioningInstructions.h delete mode 100644 asn.1/generated/GNSS-RTK-AuxiliaryStationData-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-AuxiliaryStationDataReq-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-AuxiliaryStationDataSupport-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-CommonObservationInfo-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-FKP-Gradients-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-FKP-GradientsReq-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-FKP-GradientsReq-r15.h delete mode 100644 asn.1/generated/GNSS-RTK-FKP-GradientsSupport-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-MAC-CorrectionDifferences-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-MAC-CorrectionDifferencesReq-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-Observations-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-ObservationsReq-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-ObservationsSupport-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-ReferenceStationInfo-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-ReferenceStationInfoReq-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-ReferenceStationInfoSupport-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-Residuals-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-ResidualsReq-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-ResidualsReq-r15.h delete mode 100644 asn.1/generated/GNSS-RTK-ResidualsSupport-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-SatelliteDataElement-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-SatelliteSignalDataElement-r15.c delete mode 100644 asn.1/generated/GNSS-RTK-SatelliteSignalDataList-r15.c delete mode 100644 asn.1/generated/GNSS-RealTimeIntegrity.c delete mode 100644 asn.1/generated/GNSS-RealTimeIntegrityReq.c delete mode 100644 asn.1/generated/GNSS-RealTimeIntegritySupport.c delete mode 100644 asn.1/generated/GNSS-ReferenceLocation.c delete mode 100644 asn.1/generated/GNSS-ReferenceLocationReq.c delete mode 100644 asn.1/generated/GNSS-ReferenceLocationSupport.c delete mode 100644 asn.1/generated/GNSS-ReferenceStationID-r15.c delete mode 100644 asn.1/generated/GNSS-ReferenceTime.c delete mode 100644 asn.1/generated/GNSS-ReferenceTimeForOneCell.c delete mode 100644 asn.1/generated/GNSS-ReferenceTimeReq.c delete mode 100644 asn.1/generated/GNSS-ReferenceTimeSupport.c delete mode 100644 asn.1/generated/GNSS-SSR-ArrayOfCorrectionPoints-r16.c delete mode 100644 asn.1/generated/GNSS-SSR-ClockCorrections-r15.c delete mode 100644 asn.1/generated/GNSS-SSR-ClockCorrections-r15.h delete mode 100644 asn.1/generated/GNSS-SSR-ClockCorrectionsReq-r15.c delete mode 100644 asn.1/generated/GNSS-SSR-ClockCorrectionsReq-r15.h delete mode 100644 asn.1/generated/GNSS-SSR-ClockCorrectionsSupport-r15.c delete mode 100644 asn.1/generated/GNSS-SSR-ClockCorrectionsSupport-r15.h delete mode 100644 asn.1/generated/GNSS-SSR-CodeBias-r15.c delete mode 100644 asn.1/generated/GNSS-SSR-CodeBiasReq-r15.c delete mode 100644 asn.1/generated/GNSS-SSR-CodeBiasReq-r15.h delete mode 100644 asn.1/generated/GNSS-SSR-CodeBiasSupport-r15.c delete mode 100644 asn.1/generated/GNSS-SSR-CodeBiasSupport-r15.h delete mode 100644 asn.1/generated/GNSS-SSR-CorrectionPoints-r16.c delete mode 100644 asn.1/generated/GNSS-SSR-CorrectionPointsReq-r16.c delete mode 100644 asn.1/generated/GNSS-SSR-GriddedCorrection-r16.c delete mode 100644 asn.1/generated/GNSS-SSR-GriddedCorrection-r16.h delete mode 100644 asn.1/generated/GNSS-SSR-GriddedCorrectionReq-r16.c delete mode 100644 asn.1/generated/GNSS-SSR-GriddedCorrectionReq-r16.h delete mode 100644 asn.1/generated/GNSS-SSR-GriddedCorrectionSupport-r16.c delete mode 100644 asn.1/generated/GNSS-SSR-GriddedCorrectionSupport-r16.h delete mode 100644 asn.1/generated/GNSS-SSR-ListOfCorrectionPoints-r16.c delete mode 100644 asn.1/generated/GNSS-SSR-OrbitCorrections-r15.c delete mode 100644 asn.1/generated/GNSS-SSR-OrbitCorrectionsReq-r15.c delete mode 100644 asn.1/generated/GNSS-SSR-OrbitCorrectionsReq-r15.h delete mode 100644 asn.1/generated/GNSS-SSR-OrbitCorrectionsSupport-r15.c delete mode 100644 asn.1/generated/GNSS-SSR-OrbitCorrectionsSupport-r15.h delete mode 100644 asn.1/generated/GNSS-SSR-PhaseBias-r16.c delete mode 100644 asn.1/generated/GNSS-SSR-PhaseBiasReq-r16.c delete mode 100644 asn.1/generated/GNSS-SSR-PhaseBiasReq-r16.h delete mode 100644 asn.1/generated/GNSS-SSR-PhaseBiasSupport-r16.c delete mode 100644 asn.1/generated/GNSS-SSR-PhaseBiasSupport-r16.h delete mode 100644 asn.1/generated/GNSS-SSR-STEC-Correction-r16.c delete mode 100644 asn.1/generated/GNSS-SSR-STEC-Correction-r16.h delete mode 100644 asn.1/generated/GNSS-SSR-STEC-CorrectionReq-r16.c delete mode 100644 asn.1/generated/GNSS-SSR-STEC-CorrectionReq-r16.h delete mode 100644 asn.1/generated/GNSS-SSR-STEC-CorrectionSupport-r16.c delete mode 100644 asn.1/generated/GNSS-SSR-STEC-CorrectionSupport-r16.h delete mode 100644 asn.1/generated/GNSS-SSR-URA-Req-r16.c delete mode 100644 asn.1/generated/GNSS-SSR-URA-Support-r16.c delete mode 100644 asn.1/generated/GNSS-SSR-URA-r16.c delete mode 100644 asn.1/generated/GNSS-SatMeasElement.c delete mode 100644 asn.1/generated/GNSS-SatMeasList.c delete mode 100644 asn.1/generated/GNSS-SgnMeasElement.c delete mode 100644 asn.1/generated/GNSS-SgnMeasList.c delete mode 100644 asn.1/generated/GNSS-SignalID.c delete mode 100644 asn.1/generated/GNSS-SignalIDs.c delete mode 100644 asn.1/generated/GNSS-SignalMeasurementInformation.c delete mode 100644 asn.1/generated/GNSS-SubNetworkID-r15.c delete mode 100644 asn.1/generated/GNSS-SupportElement.c delete mode 100644 asn.1/generated/GNSS-SupportElement.h delete mode 100644 asn.1/generated/GNSS-SupportList.c delete mode 100644 asn.1/generated/GNSS-SystemTime.c delete mode 100644 asn.1/generated/GNSS-SystemTime.h delete mode 100644 asn.1/generated/GNSS-TargetDeviceErrorCauses.c delete mode 100644 asn.1/generated/GNSS-TargetDeviceErrorCauses.h delete mode 100644 asn.1/generated/GNSS-TimeModelElement.c delete mode 100644 asn.1/generated/GNSS-TimeModelElement.h delete mode 100644 asn.1/generated/GNSS-TimeModelElementReq.c delete mode 100644 asn.1/generated/GNSS-TimeModelList.c delete mode 100644 asn.1/generated/GNSS-TimeModelListReq.c delete mode 100644 asn.1/generated/GNSS-TimeModelListSupport.c delete mode 100644 asn.1/generated/GNSS-UTC-Model.c delete mode 100644 asn.1/generated/GNSS-UTC-ModelReq.c delete mode 100644 asn.1/generated/GNSS-UTC-ModelSupport.c delete mode 100644 asn.1/generated/GNSSPosTechnology.c delete mode 100644 asn.1/generated/GPS-TOW-Assist.c delete mode 100644 asn.1/generated/GPS-TOW-AssistElement.c delete mode 100644 asn.1/generated/GSMAreaId.c delete mode 100644 asn.1/generated/GSMAreaId.h delete mode 100644 asn.1/generated/GanssAdditionalDataChoices.c delete mode 100644 asn.1/generated/GanssAdditionalDataChoices.h delete mode 100644 asn.1/generated/GanssDataBits.c delete mode 100644 asn.1/generated/GanssExtendedEphCheck.c delete mode 100644 asn.1/generated/GanssNavigationModelData.c delete mode 100644 asn.1/generated/GanssReqGenericData.c delete mode 100644 asn.1/generated/GanssReqGenericData.h delete mode 100644 asn.1/generated/GanssRequestedCommonAssistanceDataList.c delete mode 100644 asn.1/generated/GanssRequestedGenericAssistanceDataList.c delete mode 100644 asn.1/generated/GeneralizedTime.c delete mode 100644 asn.1/generated/GeneralizedTime.h delete mode 100644 asn.1/generated/GeoAreaIndex.c delete mode 100644 asn.1/generated/GeoAreaIndex.h delete mode 100644 asn.1/generated/GeoAreaMappingList.c delete mode 100644 asn.1/generated/GeoAreaShapesSupported.c delete mode 100644 asn.1/generated/GeographicTargetArea.c delete mode 100644 asn.1/generated/GeographicTargetAreaList.c delete mode 100644 asn.1/generated/Geometric-Ionospheric-Corrections-Differences-Element-r15.c delete mode 100644 asn.1/generated/Geometric-Ionospheric-Corrections-Differences-r15.c delete mode 100644 asn.1/generated/GridElement-r16.c delete mode 100644 asn.1/generated/GridElement-r16.h delete mode 100644 asn.1/generated/GridIonElement-r12.c delete mode 100644 asn.1/generated/GridIonList-r12.c delete mode 100644 asn.1/generated/GridList-r16.c delete mode 100644 asn.1/generated/GsmCellInformation.c delete mode 100644 asn.1/generated/HRPDAreaId.c delete mode 100644 asn.1/generated/HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.c delete mode 100644 asn.1/generated/HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.c delete mode 100644 asn.1/generated/HistoricReporting.c delete mode 100644 asn.1/generated/Horandveruncert.c delete mode 100644 asn.1/generated/Horandvervel.c delete mode 100644 asn.1/generated/HorizontalAccuracy.c delete mode 100644 asn.1/generated/HorizontalAccuracyExt-r15.c delete mode 100644 asn.1/generated/HorizontalVelocity.c delete mode 100644 asn.1/generated/HorizontalVelocityWithUncertainty.c delete mode 100644 asn.1/generated/HorizontalWithVerticalVelocity.c delete mode 100644 asn.1/generated/HorizontalWithVerticalVelocityAndUncertainty.c delete mode 100644 asn.1/generated/Horvel.c delete mode 100644 asn.1/generated/Horveluncert.c delete mode 100644 asn.1/generated/HrpdCellInformation.c delete mode 100644 asn.1/generated/IA5String.c delete mode 100644 asn.1/generated/IA5String.h delete mode 100644 asn.1/generated/INTEGER.c delete mode 100644 asn.1/generated/INTEGER.h delete mode 100644 asn.1/generated/IPAddress.c delete mode 100644 asn.1/generated/Initiator.c delete mode 100644 asn.1/generated/KeyIdentity.c delete mode 100644 asn.1/generated/KeyIdentity.h delete mode 100644 asn.1/generated/KeyIdentity4.c delete mode 100644 asn.1/generated/KeyIdentity4.h delete mode 100644 asn.1/generated/KlobucharModel2Parameter-r16.c delete mode 100644 asn.1/generated/KlobucharModelParameter.c delete mode 100644 asn.1/generated/LCS-GCS-Translation-Parameter-r16.c delete mode 100644 asn.1/generated/LCS-GCS-Translation-Parameter-r16.h delete mode 100644 asn.1/generated/LPP-Message.c delete mode 100644 asn.1/generated/LPP-Message.h delete mode 100644 asn.1/generated/LPP-MessageBody.c delete mode 100644 asn.1/generated/LPP-TransactionID.c delete mode 100644 asn.1/generated/LTEAreaId.c delete mode 100644 asn.1/generated/LTEAreaId.h delete mode 100644 asn.1/generated/LocationCoordinateTypes.c delete mode 100644 asn.1/generated/LocationCoordinateTypes.h delete mode 100644 asn.1/generated/LocationCoordinates.c delete mode 100644 asn.1/generated/LocationCoordinates.h delete mode 100644 asn.1/generated/LocationData.c delete mode 100644 asn.1/generated/LocationDataLCI-r14.c delete mode 100644 asn.1/generated/LocationDataLCI-r14.h delete mode 100644 asn.1/generated/LocationEncodingDescriptor.c delete mode 100644 asn.1/generated/LocationError.c delete mode 100644 asn.1/generated/LocationFailureCause.c delete mode 100644 asn.1/generated/LocationId.c delete mode 100644 asn.1/generated/LocationIdData.c delete mode 100644 asn.1/generated/LocationInformationType.c delete mode 100644 asn.1/generated/LocationSource-r13.c delete mode 100644 asn.1/generated/LocationSource-r13.h delete mode 100644 asn.1/generated/LocationUncertainty-r16.c delete mode 100644 asn.1/generated/LocationUncertainty-r16.h delete mode 100644 asn.1/generated/LteCellInformation.c delete mode 100644 asn.1/generated/LteCellInformation.h delete mode 100644 asn.1/generated/MAC.c delete mode 100644 asn.1/generated/MAC.h delete mode 100644 asn.1/generated/MBS-AcquisitionAssistance-r14.c delete mode 100644 asn.1/generated/MBS-AlmanacAssistance-r14.c delete mode 100644 asn.1/generated/MBS-AssistanceDataElement-r14.c delete mode 100644 asn.1/generated/MBS-AssistanceDataElement-r14.h delete mode 100644 asn.1/generated/MBS-AssistanceDataList-r14.c delete mode 100644 asn.1/generated/MBS-AssistanceDataSupportList-r14.c delete mode 100644 asn.1/generated/MBS-BeaconMeasElement-r13.c delete mode 100644 asn.1/generated/MBS-BeaconMeasList-r13.c delete mode 100644 asn.1/generated/MCC-MNC-Digit.c delete mode 100644 asn.1/generated/MCC-MNC-Digit.h delete mode 100644 asn.1/generated/MCC.c delete mode 100644 asn.1/generated/MNC.c delete mode 100644 asn.1/generated/Makefile.am.libasncodec delete mode 100644 asn.1/generated/MeasQuantityResults-r16.c delete mode 100644 asn.1/generated/MeasQuantityResults-r16.h delete mode 100644 asn.1/generated/MeasResultEUTRA.c delete mode 100644 asn.1/generated/MeasResultListEUTRA.c delete mode 100644 asn.1/generated/MeasuredResults.c delete mode 100644 asn.1/generated/MeasuredResults.h delete mode 100644 asn.1/generated/MeasuredResultsElement.c delete mode 100644 asn.1/generated/MeasuredResultsElement.h delete mode 100644 asn.1/generated/MeasuredResultsList.c delete mode 100644 asn.1/generated/MeasurementReferenceTime.c delete mode 100644 asn.1/generated/MessageSizeLimitNB-r14.c delete mode 100644 asn.1/generated/MotionTimeSource-r15.c delete mode 100644 asn.1/generated/MultipleLocationIds.c delete mode 100644 asn.1/generated/MutingPattern-r16.c delete mode 100644 asn.1/generated/MutingPattern-r16.h delete mode 100644 asn.1/generated/NAV-ClockModel.c delete mode 100644 asn.1/generated/NCGI-r15.c delete mode 100644 asn.1/generated/NMR.c delete mode 100644 asn.1/generated/NMRelement.c delete mode 100644 asn.1/generated/NPRS-Info-r14.c delete mode 100644 asn.1/generated/NR-AdditionalPath-r16.c delete mode 100644 asn.1/generated/NR-AdditionalPath-r16.h delete mode 100644 asn.1/generated/NR-AdditionalPathList-r16.c delete mode 100644 asn.1/generated/NR-DL-AoD-AdditionalMeasurementElement-r16.c delete mode 100644 asn.1/generated/NR-DL-AoD-AdditionalMeasurementElement-r16.h delete mode 100644 asn.1/generated/NR-DL-AoD-AdditionalMeasurements-r16.c delete mode 100644 asn.1/generated/NR-DL-AoD-Error-r16.c delete mode 100644 asn.1/generated/NR-DL-AoD-LocationInformation-r16.c delete mode 100644 asn.1/generated/NR-DL-AoD-LocationServerErrorCauses-r16.c delete mode 100644 asn.1/generated/NR-DL-AoD-MeasElement-r16.c delete mode 100644 asn.1/generated/NR-DL-AoD-MeasElement-r16.h delete mode 100644 asn.1/generated/NR-DL-AoD-MeasList-r16.c delete mode 100644 asn.1/generated/NR-DL-AoD-ProvideAssistanceData-r16.c delete mode 100644 asn.1/generated/NR-DL-AoD-ProvideAssistanceData-r16.h delete mode 100644 asn.1/generated/NR-DL-AoD-ProvideCapabilities-r16.c delete mode 100644 asn.1/generated/NR-DL-AoD-ProvideCapabilities-r16.h delete mode 100644 asn.1/generated/NR-DL-AoD-ProvideLocationInformation-r16.c delete mode 100644 asn.1/generated/NR-DL-AoD-ProvideLocationInformation-r16.h delete mode 100644 asn.1/generated/NR-DL-AoD-ReportConfig-r16.c delete mode 100644 asn.1/generated/NR-DL-AoD-ReportConfig-r16.h delete mode 100644 asn.1/generated/NR-DL-AoD-RequestAssistanceData-r16.c delete mode 100644 asn.1/generated/NR-DL-AoD-RequestAssistanceData-r16.h delete mode 100644 asn.1/generated/NR-DL-AoD-RequestCapabilities-r16.c delete mode 100644 asn.1/generated/NR-DL-AoD-RequestLocationInformation-r16.c delete mode 100644 asn.1/generated/NR-DL-AoD-RequestLocationInformation-r16.h delete mode 100644 asn.1/generated/NR-DL-AoD-SignalMeasurementInformation-r16.c delete mode 100644 asn.1/generated/NR-DL-AoD-TargetDeviceErrorCauses-r16.c delete mode 100644 asn.1/generated/NR-DL-AoD-TargetDeviceErrorCauses-r16.h delete mode 100644 asn.1/generated/NR-DL-PRS-AssistanceData-r16.c delete mode 100644 asn.1/generated/NR-DL-PRS-AssistanceData-r16.h delete mode 100644 asn.1/generated/NR-DL-PRS-AssistanceDataPerFreq-r16.c delete mode 100644 asn.1/generated/NR-DL-PRS-AssistanceDataPerTRP-r16.c delete mode 100644 asn.1/generated/NR-DL-PRS-AssistanceDataPerTRP-r16.h delete mode 100644 asn.1/generated/NR-DL-PRS-BeamInfo-r16.c delete mode 100644 asn.1/generated/NR-DL-PRS-BeamInfo-r16.h delete mode 100644 asn.1/generated/NR-DL-PRS-BeamInfoPerFreqLayer-r16.c delete mode 100644 asn.1/generated/NR-DL-PRS-BeamInfoPerFreqLayer-r16.h delete mode 100644 asn.1/generated/NR-DL-PRS-Config-r16.c delete mode 100644 asn.1/generated/NR-DL-PRS-Config-r16.h delete mode 100644 asn.1/generated/NR-DL-PRS-MeasCapability-r16.c delete mode 100644 asn.1/generated/NR-DL-PRS-MeasCapability-r16.h delete mode 100644 asn.1/generated/NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.c delete mode 100644 asn.1/generated/NR-DL-PRS-PositioningFrequencyLayer-r16.c delete mode 100644 asn.1/generated/NR-DL-PRS-Resource-r16.c delete mode 100644 asn.1/generated/NR-DL-PRS-Resource-r16.h delete mode 100644 asn.1/generated/NR-DL-PRS-ResourceID-r16.c delete mode 100644 asn.1/generated/NR-DL-PRS-ResourceID-r16.h delete mode 100644 asn.1/generated/NR-DL-PRS-ResourceSet-r16.c delete mode 100644 asn.1/generated/NR-DL-PRS-ResourceSet-r16.h delete mode 100644 asn.1/generated/NR-DL-PRS-ResourceSetID-r16.c delete mode 100644 asn.1/generated/NR-DL-PRS-ResourceSetID-r16.h delete mode 100644 asn.1/generated/NR-DL-TDOA-AdditionalMeasurementElement-r16.c delete mode 100644 asn.1/generated/NR-DL-TDOA-AdditionalMeasurementElement-r16.h delete mode 100644 asn.1/generated/NR-DL-TDOA-AdditionalMeasurements-r16.c delete mode 100644 asn.1/generated/NR-DL-TDOA-Error-r16.c delete mode 100644 asn.1/generated/NR-DL-TDOA-LocationInformation-r16.c delete mode 100644 asn.1/generated/NR-DL-TDOA-LocationServerErrorCauses-r16.c delete mode 100644 asn.1/generated/NR-DL-TDOA-MeasElement-r16.c delete mode 100644 asn.1/generated/NR-DL-TDOA-MeasElement-r16.h delete mode 100644 asn.1/generated/NR-DL-TDOA-MeasList-r16.c delete mode 100644 asn.1/generated/NR-DL-TDOA-ProvideAssistanceData-r16.c delete mode 100644 asn.1/generated/NR-DL-TDOA-ProvideAssistanceData-r16.h delete mode 100644 asn.1/generated/NR-DL-TDOA-ProvideCapabilities-r16.c delete mode 100644 asn.1/generated/NR-DL-TDOA-ProvideCapabilities-r16.h delete mode 100644 asn.1/generated/NR-DL-TDOA-ProvideLocationInformation-r16.c delete mode 100644 asn.1/generated/NR-DL-TDOA-ProvideLocationInformation-r16.h delete mode 100644 asn.1/generated/NR-DL-TDOA-ReportConfig-r16.c delete mode 100644 asn.1/generated/NR-DL-TDOA-ReportConfig-r16.h delete mode 100644 asn.1/generated/NR-DL-TDOA-RequestAssistanceData-r16.c delete mode 100644 asn.1/generated/NR-DL-TDOA-RequestAssistanceData-r16.h delete mode 100644 asn.1/generated/NR-DL-TDOA-RequestCapabilities-r16.c delete mode 100644 asn.1/generated/NR-DL-TDOA-RequestLocationInformation-r16.c delete mode 100644 asn.1/generated/NR-DL-TDOA-RequestLocationInformation-r16.h delete mode 100644 asn.1/generated/NR-DL-TDOA-SignalMeasurementInformation-r16.c delete mode 100644 asn.1/generated/NR-DL-TDOA-SignalMeasurementInformation-r16.h delete mode 100644 asn.1/generated/NR-DL-TDOA-TargetDeviceErrorCauses-r16.c delete mode 100644 asn.1/generated/NR-DL-TDOA-TargetDeviceErrorCauses-r16.h delete mode 100644 asn.1/generated/NR-ECID-Error-r16.c delete mode 100644 asn.1/generated/NR-ECID-LocationServerErrorCauses-r16.c delete mode 100644 asn.1/generated/NR-ECID-ProvideCapabilities-r16.c delete mode 100644 asn.1/generated/NR-ECID-ProvideCapabilities-r16.h delete mode 100644 asn.1/generated/NR-ECID-ProvideLocationInformation-r16.c delete mode 100644 asn.1/generated/NR-ECID-RequestCapabilities-r16.c delete mode 100644 asn.1/generated/NR-ECID-RequestLocationInformation-r16.c delete mode 100644 asn.1/generated/NR-ECID-SignalMeasurementInformation-r16.c delete mode 100644 asn.1/generated/NR-ECID-TargetDeviceErrorCauses-r16.c delete mode 100644 asn.1/generated/NR-ECID-TargetDeviceErrorCauses-r16.h delete mode 100644 asn.1/generated/NR-MeasuredResultsElement-r16.c delete mode 100644 asn.1/generated/NR-MeasuredResultsElement-r16.h delete mode 100644 asn.1/generated/NR-MeasuredResultsList-r16.c delete mode 100644 asn.1/generated/NR-Multi-RTT-AdditionalMeasurementElement-r16.c delete mode 100644 asn.1/generated/NR-Multi-RTT-AdditionalMeasurementElement-r16.h delete mode 100644 asn.1/generated/NR-Multi-RTT-AdditionalMeasurements-r16.c delete mode 100644 asn.1/generated/NR-Multi-RTT-Error-r16.c delete mode 100644 asn.1/generated/NR-Multi-RTT-LocationServerErrorCauses-r16.c delete mode 100644 asn.1/generated/NR-Multi-RTT-MeasElement-r16.c delete mode 100644 asn.1/generated/NR-Multi-RTT-MeasElement-r16.h delete mode 100644 asn.1/generated/NR-Multi-RTT-MeasList-r16.c delete mode 100644 asn.1/generated/NR-Multi-RTT-ProvideAssistanceData-r16.c delete mode 100644 asn.1/generated/NR-Multi-RTT-ProvideAssistanceData-r16.h delete mode 100644 asn.1/generated/NR-Multi-RTT-ProvideCapabilities-r16.c delete mode 100644 asn.1/generated/NR-Multi-RTT-ProvideCapabilities-r16.h delete mode 100644 asn.1/generated/NR-Multi-RTT-ProvideLocationInformation-r16.c delete mode 100644 asn.1/generated/NR-Multi-RTT-ProvideLocationInformation-r16.h delete mode 100644 asn.1/generated/NR-Multi-RTT-ReportConfig-r16.c delete mode 100644 asn.1/generated/NR-Multi-RTT-ReportConfig-r16.h delete mode 100644 asn.1/generated/NR-Multi-RTT-RequestAssistanceData-r16.c delete mode 100644 asn.1/generated/NR-Multi-RTT-RequestAssistanceData-r16.h delete mode 100644 asn.1/generated/NR-Multi-RTT-RequestCapabilities-r16.c delete mode 100644 asn.1/generated/NR-Multi-RTT-RequestLocationInformation-r16.c delete mode 100644 asn.1/generated/NR-Multi-RTT-RequestLocationInformation-r16.h delete mode 100644 asn.1/generated/NR-Multi-RTT-SignalMeasurementInformation-r16.c delete mode 100644 asn.1/generated/NR-Multi-RTT-SignalMeasurementInformation-r16.h delete mode 100644 asn.1/generated/NR-Multi-RTT-TargetDeviceErrorCauses-r16.c delete mode 100644 asn.1/generated/NR-Multi-RTT-TargetDeviceErrorCauses-r16.h delete mode 100644 asn.1/generated/NR-PhysCellId-r16.c delete mode 100644 asn.1/generated/NR-PhysCellId-r16.h delete mode 100644 asn.1/generated/NR-PositionCalculationAssistanceData-r16.c delete mode 100644 asn.1/generated/NR-PositionCalculationAssistanceData-r16.h delete mode 100644 asn.1/generated/NR-RTD-Info-r16.c delete mode 100644 asn.1/generated/NR-SSB-Config-r16.c delete mode 100644 asn.1/generated/NR-SSB-Config-r16.h delete mode 100644 asn.1/generated/NR-Selected-DL-PRS-IndexPerTRP-r16.c delete mode 100644 asn.1/generated/NR-Selected-DL-PRS-IndexPerTRP-r16.h delete mode 100644 asn.1/generated/NR-SelectedDL-PRS-PerFreq-r16.c delete mode 100644 asn.1/generated/NR-TRP-LocationInfo-r16.c delete mode 100644 asn.1/generated/NR-TRP-LocationInfoPerFreqLayer-r16.c delete mode 100644 asn.1/generated/NR-TimeStamp-r16.c delete mode 100644 asn.1/generated/NR-TimeStamp-r16.h delete mode 100644 asn.1/generated/NR-TimingMeasQuality-r16.c delete mode 100644 asn.1/generated/NR-TimingMeasQuality-r16.h delete mode 100644 asn.1/generated/NR-UL-ProvideCapabilities-r16.c delete mode 100644 asn.1/generated/NR-UL-ProvideCapabilities-r16.h delete mode 100644 asn.1/generated/NR-UL-RequestCapabilities-r16.c delete mode 100644 asn.1/generated/NR-UL-SRS-MeasCapability-r16.c delete mode 100644 asn.1/generated/NR-UL-SRS-MeasCapability-r16.h delete mode 100644 asn.1/generated/NULL.c delete mode 100644 asn.1/generated/NULL.h delete mode 100644 asn.1/generated/NativeEnumerated.c delete mode 100644 asn.1/generated/NativeEnumerated.h delete mode 100644 asn.1/generated/NativeInteger.c delete mode 100644 asn.1/generated/NativeInteger.h delete mode 100644 asn.1/generated/NavIC-CDC-r16.c delete mode 100644 asn.1/generated/NavIC-ClockModel-r16.c delete mode 100644 asn.1/generated/NavIC-CorrectionElementAutoNav-r16.c delete mode 100644 asn.1/generated/NavIC-CorrectionListAutoNav-r16.c delete mode 100644 asn.1/generated/NavIC-DifferentialCorrections-r16.c delete mode 100644 asn.1/generated/NavIC-DifferentialCorrectionsReq-r16.c delete mode 100644 asn.1/generated/NavIC-DifferentialCorrectionsSupport-r16.c delete mode 100644 asn.1/generated/NavIC-EDC-r16.c delete mode 100644 asn.1/generated/NavIC-GridModelParameter-r16.c delete mode 100644 asn.1/generated/NavIC-GridModelReq-r16.c delete mode 100644 asn.1/generated/NavIC-GridModelSupport-r16.c delete mode 100644 asn.1/generated/NavModel-BDS-KeplerianSet-r12.c delete mode 100644 asn.1/generated/NavModel-BDS-KeplerianSet2-r16.c delete mode 100644 asn.1/generated/NavModel-GLONASS-ECEF.c delete mode 100644 asn.1/generated/NavModel-SBAS-ECEF.c delete mode 100644 asn.1/generated/NavModelCNAV-KeplerianSet.c delete mode 100644 asn.1/generated/NavModelKeplerianSet.c delete mode 100644 asn.1/generated/NavModelNAV-KeplerianSet.c delete mode 100644 asn.1/generated/NeQuickModelParameter.c delete mode 100644 asn.1/generated/NeQuickModelParameter.h delete mode 100644 asn.1/generated/NeighbourMeasurementElement-NB-r14.c delete mode 100644 asn.1/generated/NeighbourMeasurementElement-NB-r14.h delete mode 100644 asn.1/generated/NeighbourMeasurementElement.c delete mode 100644 asn.1/generated/NeighbourMeasurementElement.h delete mode 100644 asn.1/generated/NeighbourMeasurementList-NB-r14.c delete mode 100644 asn.1/generated/NeighbourMeasurementList.c delete mode 100644 asn.1/generated/NetworkTime.c delete mode 100644 asn.1/generated/Notification.c delete mode 100644 asn.1/generated/Notification.h delete mode 100644 asn.1/generated/NotificationMode.c delete mode 100644 asn.1/generated/NotificationResponse.c delete mode 100644 asn.1/generated/NotificationType.c delete mode 100644 asn.1/generated/OCTET_STRING.c delete mode 100644 asn.1/generated/OCTET_STRING.h delete mode 100644 asn.1/generated/OPEN_TYPE.c delete mode 100644 asn.1/generated/OPEN_TYPE.h delete mode 100644 asn.1/generated/OTDOA-Error.c delete mode 100644 asn.1/generated/OTDOA-LocationServerErrorCauses.c delete mode 100644 asn.1/generated/OTDOA-MeasQuality.c delete mode 100644 asn.1/generated/OTDOA-NeighbourCellInfoElement.c delete mode 100644 asn.1/generated/OTDOA-NeighbourCellInfoList.c delete mode 100644 asn.1/generated/OTDOA-NeighbourCellInfoListNB-r14.c delete mode 100644 asn.1/generated/OTDOA-NeighbourCellInfoNB-r14.c delete mode 100644 asn.1/generated/OTDOA-NeighbourCellInfoNB-r14.h delete mode 100644 asn.1/generated/OTDOA-NeighbourFreqInfo.c delete mode 100644 asn.1/generated/OTDOA-ProvideAssistanceData.c delete mode 100644 asn.1/generated/OTDOA-ProvideAssistanceData.h delete mode 100644 asn.1/generated/OTDOA-ProvideCapabilities.c delete mode 100644 asn.1/generated/OTDOA-ProvideLocationInformation.c delete mode 100644 asn.1/generated/OTDOA-ReferenceCellInfo.c delete mode 100644 asn.1/generated/OTDOA-ReferenceCellInfoNB-r14.c delete mode 100644 asn.1/generated/OTDOA-ReferenceCellInfoNB-r14.h delete mode 100644 asn.1/generated/OTDOA-RequestAssistanceData.c delete mode 100644 asn.1/generated/OTDOA-RequestCapabilities.c delete mode 100644 asn.1/generated/OTDOA-RequestLocationInformation.c delete mode 100644 asn.1/generated/OTDOA-SignalMeasurementInformation-NB-r14.c delete mode 100644 asn.1/generated/OTDOA-SignalMeasurementInformation-NB-r14.h delete mode 100644 asn.1/generated/OTDOA-SignalMeasurementInformation.c delete mode 100644 asn.1/generated/OTDOA-SignalMeasurementInformation.h delete mode 100644 asn.1/generated/OTDOA-TargetDeviceErrorCauses.c delete mode 100644 asn.1/generated/PLMN-Identity.c delete mode 100644 asn.1/generated/PLMN-Identity.h delete mode 100644 asn.1/generated/PRS-Info-NB-r14.c delete mode 100644 asn.1/generated/PRS-Info.c delete mode 100644 asn.1/generated/Pathloss.c delete mode 100644 asn.1/generated/Pathloss.h delete mode 100644 asn.1/generated/PeriodicAssistanceDataControlParameters-r15.c delete mode 100644 asn.1/generated/PeriodicParams.c delete mode 100644 asn.1/generated/PeriodicSessionID-r15.c delete mode 100644 asn.1/generated/PhysCellId.c delete mode 100644 asn.1/generated/PhysCellId.h delete mode 100644 asn.1/generated/PhysicalReferenceStationInfo-r15.c delete mode 100644 asn.1/generated/Polygon.c delete mode 100644 asn.1/generated/PolygonArea.c delete mode 100644 asn.1/generated/PolygonArea.h delete mode 100644 asn.1/generated/PolygonDescription.c delete mode 100644 asn.1/generated/PolygonPoints.c delete mode 100644 asn.1/generated/PosPayLoad.c delete mode 100644 asn.1/generated/PosProtocol.c delete mode 100644 asn.1/generated/PosProtocol.h delete mode 100644 asn.1/generated/PosProtocolVersion3GPP.c delete mode 100644 asn.1/generated/PosProtocolVersion3GPP2.c delete mode 100644 asn.1/generated/PosTechnology.c delete mode 100644 asn.1/generated/Position.c delete mode 100644 asn.1/generated/PositionEstimate.c delete mode 100644 asn.1/generated/PositioningModes.c delete mode 100644 asn.1/generated/PrefMethod.c delete mode 100644 asn.1/generated/PressureValidityArea-v1520.c delete mode 100644 asn.1/generated/PressureValidityPeriod-v1520.c delete mode 100644 asn.1/generated/PrimaryCCPCH-RSCP.c delete mode 100644 asn.1/generated/PrimaryCCPCH-RSCP.h delete mode 100644 asn.1/generated/PrimaryCPICH-Info.c delete mode 100644 asn.1/generated/ProtLevel.c delete mode 100644 asn.1/generated/ProtectionLevel.c delete mode 100644 asn.1/generated/ProtectionLevel.h delete mode 100644 asn.1/generated/ProvideAssistanceData-r9-IEs.c delete mode 100644 asn.1/generated/ProvideAssistanceData-r9-IEs.h delete mode 100644 asn.1/generated/ProvideAssistanceData.c delete mode 100644 asn.1/generated/ProvideCapabilities-r9-IEs.c delete mode 100644 asn.1/generated/ProvideCapabilities-r9-IEs.h delete mode 100644 asn.1/generated/ProvideCapabilities.c delete mode 100644 asn.1/generated/ProvideLocationInformation-r9-IEs.c delete mode 100644 asn.1/generated/ProvideLocationInformation-r9-IEs.h delete mode 100644 asn.1/generated/ProvideLocationInformation.c delete mode 100644 asn.1/generated/QoP.c delete mode 100644 asn.1/generated/QoP.h delete mode 100644 asn.1/generated/QoS.c delete mode 100644 asn.1/generated/QoS.h delete mode 100644 asn.1/generated/RSRP-Range.c delete mode 100644 asn.1/generated/RSRP-Range.h delete mode 100644 asn.1/generated/RSRQ-Range.c delete mode 100644 asn.1/generated/RSRQ-Range.h delete mode 100644 asn.1/generated/RTD-InfoElement-r16.c delete mode 100644 asn.1/generated/RTD-InfoElement-r16.h delete mode 100644 asn.1/generated/RTD-InfoList-r16.c delete mode 100644 asn.1/generated/RTD-InfoListPerFreqLayer-r16.c delete mode 100644 asn.1/generated/RTD.c delete mode 100644 asn.1/generated/RTD.h delete mode 100644 asn.1/generated/RTDUnits.c delete mode 100644 asn.1/generated/RTK-CorrectionDifferencesElement-r15.c delete mode 100644 asn.1/generated/RTK-CorrectionDifferencesList-r15.c delete mode 100644 asn.1/generated/RTK-Residuals-Element-r15.c delete mode 100644 asn.1/generated/RTK-Residuals-List-r15.c delete mode 100644 asn.1/generated/ReferencePoint-r16.c delete mode 100644 asn.1/generated/ReferenceStationList-r16.c delete mode 100644 asn.1/generated/ReferenceTRP-RTD-Info-r16.c delete mode 100644 asn.1/generated/ReferenceTRP-RTD-Info-r16.h delete mode 100644 asn.1/generated/RegionIgpElement-r16.c delete mode 100644 asn.1/generated/RegionIgpList-r16.c delete mode 100644 asn.1/generated/RelativeLocation-r16.c delete mode 100644 asn.1/generated/RelativeLocation.c delete mode 100644 asn.1/generated/RelativeLocation.h delete mode 100644 asn.1/generated/RelativeTime.c delete mode 100644 asn.1/generated/RelativeTime.h delete mode 100644 asn.1/generated/RepMode-cap.c delete mode 100644 asn.1/generated/RepMode.c delete mode 100644 asn.1/generated/RepeatedReportingParams.c delete mode 100644 asn.1/generated/ReportData.c delete mode 100644 asn.1/generated/ReportData.h delete mode 100644 asn.1/generated/ReportDataList.c delete mode 100644 asn.1/generated/ReportedLocation.c delete mode 100644 asn.1/generated/ReportingCap.c delete mode 100644 asn.1/generated/ReportingCap.h delete mode 100644 asn.1/generated/ReportingCriteria.c delete mode 100644 asn.1/generated/ReportingCriteria.h delete mode 100644 asn.1/generated/ReportingDuration.c delete mode 100644 asn.1/generated/ReportingDuration.h delete mode 100644 asn.1/generated/ReportingMode.c delete mode 100644 asn.1/generated/ReportingMode.h delete mode 100644 asn.1/generated/ReqDataBitAssistanceList.c delete mode 100644 asn.1/generated/ReqNavListInfo.c delete mode 100644 asn.1/generated/RequestAssistanceData-r9-IEs.c delete mode 100644 asn.1/generated/RequestAssistanceData-r9-IEs.h delete mode 100644 asn.1/generated/RequestAssistanceData.c delete mode 100644 asn.1/generated/RequestCapabilities-r9-IEs.c delete mode 100644 asn.1/generated/RequestCapabilities-r9-IEs.h delete mode 100644 asn.1/generated/RequestCapabilities.c delete mode 100644 asn.1/generated/RequestLocationInformation-r9-IEs.c delete mode 100644 asn.1/generated/RequestLocationInformation-r9-IEs.h delete mode 100644 asn.1/generated/RequestLocationInformation.c delete mode 100644 asn.1/generated/RequestedAssistData.c delete mode 100644 asn.1/generated/ResponseTime.c delete mode 100644 asn.1/generated/ResponseTimeNB-r14.c delete mode 100644 asn.1/generated/ResultCode.c delete mode 100644 asn.1/generated/ResultsPerCSI-RS-Index-r16.c delete mode 100644 asn.1/generated/ResultsPerCSI-RS-Index-r16.h delete mode 100644 asn.1/generated/ResultsPerCSI-RS-IndexList-r16.c delete mode 100644 asn.1/generated/ResultsPerSSB-Index-r16.c delete mode 100644 asn.1/generated/ResultsPerSSB-Index-r16.h delete mode 100644 asn.1/generated/ResultsPerSSB-IndexList-r16.c delete mode 100644 asn.1/generated/SBAS-ClockModel.c delete mode 100644 asn.1/generated/SBAS-ID.c delete mode 100644 asn.1/generated/SBAS-IDs.c delete mode 100644 asn.1/generated/SET-GANSSReferenceTime.c delete mode 100644 asn.1/generated/SETAuthKey.c delete mode 100644 asn.1/generated/SETCapabilities.c delete mode 100644 asn.1/generated/SETId.c delete mode 100644 asn.1/generated/SFN-r15.c delete mode 100644 asn.1/generated/SFN-r15.h delete mode 100644 asn.1/generated/SLPAddress.c delete mode 100644 asn.1/generated/SLPMode.c delete mode 100644 asn.1/generated/SPCSETKey.c delete mode 100644 asn.1/generated/SPCSETKey.h delete mode 100644 asn.1/generated/SPCSETKeylifetime.c delete mode 100644 asn.1/generated/SPCSETKeylifetime.h delete mode 100644 asn.1/generated/SPCTID.c delete mode 100644 asn.1/generated/SSR-ClockCorrectionList-r15.c delete mode 100644 asn.1/generated/SSR-ClockCorrectionSatelliteElement-r15.c delete mode 100644 asn.1/generated/SSR-ClockCorrectionSatelliteElement-r15.h delete mode 100644 asn.1/generated/SSR-CodeBiasSatElement-r15.c delete mode 100644 asn.1/generated/SSR-CodeBiasSatList-r15.c delete mode 100644 asn.1/generated/SSR-CodeBiasSignalElement-r15.c delete mode 100644 asn.1/generated/SSR-CodeBiasSignalElement-r15.h delete mode 100644 asn.1/generated/SSR-CodeBiasSignalList-r15.c delete mode 100644 asn.1/generated/SSR-OrbitCorrectionList-r15.c delete mode 100644 asn.1/generated/SSR-OrbitCorrectionSatelliteElement-r15.c delete mode 100644 asn.1/generated/SSR-OrbitCorrectionSatelliteElement-r15.h delete mode 100644 asn.1/generated/SSR-PhaseBiasSatElement-r16.c delete mode 100644 asn.1/generated/SSR-PhaseBiasSatList-r16.c delete mode 100644 asn.1/generated/SSR-PhaseBiasSignalElement-r16.c delete mode 100644 asn.1/generated/SSR-PhaseBiasSignalElement-r16.h delete mode 100644 asn.1/generated/SSR-PhaseBiasSignalList-r16.c delete mode 100644 asn.1/generated/SSR-URA-SatElement-r16.c delete mode 100644 asn.1/generated/SSR-URA-SatList-r16.c delete mode 100644 asn.1/generated/STEC-ResidualSatElement-r16.c delete mode 100644 asn.1/generated/STEC-ResidualSatList-r16.c delete mode 100644 asn.1/generated/STEC-SatElement-r16.c delete mode 100644 asn.1/generated/STEC-SatElement-r16.h delete mode 100644 asn.1/generated/STEC-SatList-r16.c delete mode 100644 asn.1/generated/SUPL-GPSTime.c delete mode 100644 asn.1/generated/SUPL-NavigationModel.c delete mode 100644 asn.1/generated/SUPL-PositionData.c delete mode 100644 asn.1/generated/SUPL-PositionData.h delete mode 100644 asn.1/generated/SUPLAUTHREQ.c delete mode 100644 asn.1/generated/SUPLAUTHREQ.h delete mode 100644 asn.1/generated/SUPLAUTHRESP.c delete mode 100644 asn.1/generated/SUPLAUTHRESP.h delete mode 100644 asn.1/generated/SUPLEND.c delete mode 100644 asn.1/generated/SUPLEND.h delete mode 100644 asn.1/generated/SUPLINIT.c delete mode 100644 asn.1/generated/SUPLINIT.h delete mode 100644 asn.1/generated/SUPLPOS.c delete mode 100644 asn.1/generated/SUPLPOS.h delete mode 100644 asn.1/generated/SUPLPOSINIT.c delete mode 100644 asn.1/generated/SUPLPOSINIT.h delete mode 100644 asn.1/generated/SUPLRESPONSE.c delete mode 100644 asn.1/generated/SUPLRESPONSE.h delete mode 100644 asn.1/generated/SUPLSTART.c delete mode 100644 asn.1/generated/SUPLSTART.h delete mode 100644 asn.1/generated/SV-ID.c delete mode 100644 asn.1/generated/SatListElement-r15.c delete mode 100644 asn.1/generated/SatListRelatedDataElement.c delete mode 100644 asn.1/generated/SatListRelatedDataList.c delete mode 100644 asn.1/generated/SatelliteInfo.c delete mode 100644 asn.1/generated/SatelliteInfoElement.c delete mode 100644 asn.1/generated/SatellitesListRelatedData.c delete mode 100644 asn.1/generated/SatellitesListRelatedDataList.c delete mode 100644 asn.1/generated/SegmentationInfo-r14.c delete mode 100644 asn.1/generated/Sensor-AssistanceDataList-r14.c delete mode 100644 asn.1/generated/Sensor-AssistanceDataSupportList-r14.c delete mode 100644 asn.1/generated/Sensor-Error-r13.c delete mode 100644 asn.1/generated/Sensor-LocationServerErrorCauses-r13.c delete mode 100644 asn.1/generated/Sensor-MeasurementInformation-r13.c delete mode 100644 asn.1/generated/Sensor-MotionInformation-r15.c delete mode 100644 asn.1/generated/Sensor-ProvideAssistanceData-r14.c delete mode 100644 asn.1/generated/Sensor-ProvideCapabilities-r13.c delete mode 100644 asn.1/generated/Sensor-ProvideLocationInformation-r13.c delete mode 100644 asn.1/generated/Sensor-RequestAssistanceData-r14.c delete mode 100644 asn.1/generated/Sensor-RequestCapabilities-r13.c delete mode 100644 asn.1/generated/Sensor-RequestLocationInformation-r13.c delete mode 100644 asn.1/generated/Sensor-TargetDeviceErrorCauses-r13.c delete mode 100644 asn.1/generated/SequenceNumber.c delete mode 100644 asn.1/generated/SequenceNumber.h delete mode 100644 asn.1/generated/ServiceCapabilities.c delete mode 100644 asn.1/generated/ServiceCapabilities.h delete mode 100644 asn.1/generated/ServicesSupported.c delete mode 100644 asn.1/generated/SessionCapabilities.c delete mode 100644 asn.1/generated/SessionID.c delete mode 100644 asn.1/generated/SessionID.h delete mode 100644 asn.1/generated/SessionInformation.c delete mode 100644 asn.1/generated/SessionList.c delete mode 100644 asn.1/generated/SetSessionID.c delete mode 100644 asn.1/generated/SlpSessionID.c delete mode 100644 asn.1/generated/StandardClockModelElement.c delete mode 100644 asn.1/generated/StandardClockModelList.c delete mode 100644 asn.1/generated/Status.c delete mode 100644 asn.1/generated/StoredNavListInfo.c delete mode 100644 asn.1/generated/Supported3GPP2PosProtocolVersion.c delete mode 100644 asn.1/generated/SupportedBandEUTRA-v9a0.c delete mode 100644 asn.1/generated/SupportedBandEUTRA-v9a0.h delete mode 100644 asn.1/generated/SupportedBandEUTRA.c delete mode 100644 asn.1/generated/SupportedBandNR-r16.c delete mode 100644 asn.1/generated/SupportedBandNR-r16.h delete mode 100644 asn.1/generated/SupportedBearers.c delete mode 100644 asn.1/generated/SupportedChannels-11a-r14.c delete mode 100644 asn.1/generated/SupportedChannels-11bg-r14.c delete mode 100644 asn.1/generated/SupportedNetworkInformation.c delete mode 100644 asn.1/generated/SupportedNetworkInformation.h delete mode 100644 asn.1/generated/SupportedWCDMAInfo.c delete mode 100644 asn.1/generated/SupportedWLANApData.c delete mode 100644 asn.1/generated/SupportedWLANApsChannel11a.c delete mode 100644 asn.1/generated/SupportedWLANApsChannel11bg.c delete mode 100644 asn.1/generated/SupportedWLANApsList.c delete mode 100644 asn.1/generated/SupportedWLANInfo.c delete mode 100644 asn.1/generated/TAResolution.c delete mode 100644 asn.1/generated/TBS-AssistanceDataList-r14.c delete mode 100644 asn.1/generated/TBS-AssistanceDataList-r14.h delete mode 100644 asn.1/generated/TBS-Error-r13.c delete mode 100644 asn.1/generated/TBS-LocationServerErrorCauses-r13.c delete mode 100644 asn.1/generated/TBS-MeasurementInformation-r13.c delete mode 100644 asn.1/generated/TBS-MeasurementInformation-r13.h delete mode 100644 asn.1/generated/TBS-ProvideAssistanceData-r14.c delete mode 100644 asn.1/generated/TBS-ProvideAssistanceData-r14.h delete mode 100644 asn.1/generated/TBS-ProvideCapabilities-r13.c delete mode 100644 asn.1/generated/TBS-ProvideCapabilities-r13.h delete mode 100644 asn.1/generated/TBS-ProvideLocationInformation-r13.c delete mode 100644 asn.1/generated/TBS-RequestAssistanceData-r14.c delete mode 100644 asn.1/generated/TBS-RequestCapabilities-r13.c delete mode 100644 asn.1/generated/TBS-RequestLocationInformation-r13.c delete mode 100644 asn.1/generated/TBS-TargetDeviceErrorCauses-r13.c delete mode 100644 asn.1/generated/TDD-Config-v1520.c delete mode 100644 asn.1/generated/TGSN.c delete mode 100644 asn.1/generated/TGSN.h delete mode 100644 asn.1/generated/TRP-ID-r16.c delete mode 100644 asn.1/generated/TRP-ID-r16.h delete mode 100644 asn.1/generated/TRP-LocationInfoElement-r16.c delete mode 100644 asn.1/generated/TRP-LocationInfoElement-r16.h delete mode 100644 asn.1/generated/ThirdParty.c delete mode 100644 asn.1/generated/TimeStamp.c delete mode 100644 asn.1/generated/TimeWindow.c delete mode 100644 asn.1/generated/TimeWindow.h delete mode 100644 asn.1/generated/TimeslotISCP-List.c delete mode 100644 asn.1/generated/TimeslotISCP.c delete mode 100644 asn.1/generated/TimeslotISCP.h delete mode 100644 asn.1/generated/TimingAdvance.c delete mode 100644 asn.1/generated/TimingAdvance.h delete mode 100644 asn.1/generated/TrackingAreaCode.c delete mode 100644 asn.1/generated/TrackingAreaCode.h delete mode 100644 asn.1/generated/TransactionNumber.c delete mode 100644 asn.1/generated/TransactionNumber.h delete mode 100644 asn.1/generated/TriggerParams.c delete mode 100644 asn.1/generated/TriggerType.c delete mode 100644 asn.1/generated/TriggeredReportingCriteria.c delete mode 100644 asn.1/generated/TropospericDelayCorrection-r16.c delete mode 100644 asn.1/generated/TropospericDelayCorrection-r16.h delete mode 100644 asn.1/generated/UARFCN.c delete mode 100644 asn.1/generated/UARFCN.h delete mode 100644 asn.1/generated/ULP-MeasuredResultsList.c delete mode 100644 asn.1/generated/ULP-PDU.c delete mode 100644 asn.1/generated/ULP-Velocity.c delete mode 100644 asn.1/generated/UMBAreaId.c delete mode 100644 asn.1/generated/UMBAreaId.h delete mode 100644 asn.1/generated/UTC-ModelSet1.c delete mode 100644 asn.1/generated/UTC-ModelSet2.c delete mode 100644 asn.1/generated/UTC-ModelSet3.c delete mode 100644 asn.1/generated/UTC-ModelSet3.h delete mode 100644 asn.1/generated/UTC-ModelSet4.c delete mode 100644 asn.1/generated/UTC-ModelSet5-r12.c delete mode 100644 asn.1/generated/UTC-Time-r15.c delete mode 100644 asn.1/generated/UTCTime.c delete mode 100644 asn.1/generated/UTCTime.h delete mode 100644 asn.1/generated/UTRA-CarrierRSSI.c delete mode 100644 asn.1/generated/UTRA-CarrierRSSI.h delete mode 100644 asn.1/generated/UTRAN-GANSSReferenceTime.c delete mode 100644 asn.1/generated/UTRAN-GANSSReferenceTimeAssistance.c delete mode 100644 asn.1/generated/UTRAN-GANSSReferenceTimeResult.c delete mode 100644 asn.1/generated/UTRAN-GPSReferenceTime.c delete mode 100644 asn.1/generated/UTRAN-GPSReferenceTimeAssistance.c delete mode 100644 asn.1/generated/UTRAN-GPSReferenceTimeAssistance.h delete mode 100644 asn.1/generated/UTRAN-GPSReferenceTimeResult.c delete mode 100644 asn.1/generated/UlpMessage.c delete mode 100644 asn.1/generated/UmbCellInformation.c delete mode 100644 asn.1/generated/UpdateCapabilities-r15.c delete mode 100644 asn.1/generated/Velocity.c delete mode 100644 asn.1/generated/VelocityTypes.c delete mode 100644 asn.1/generated/Ver.c delete mode 100644 asn.1/generated/Ver.h delete mode 100644 asn.1/generated/Ver2-CellInfo-extension.c delete mode 100644 asn.1/generated/Ver2-Notification-extension.c delete mode 100644 asn.1/generated/Ver2-PosPayLoad-extension.c delete mode 100644 asn.1/generated/Ver2-PosProtocol-extension.c delete mode 100644 asn.1/generated/Ver2-PosProtocol-extension.h delete mode 100644 asn.1/generated/Ver2-PosTechnology-extension.c delete mode 100644 asn.1/generated/Ver2-RequestedAssistData-extension.c delete mode 100644 asn.1/generated/Ver2-RequestedAssistData-extension.h delete mode 100644 asn.1/generated/Ver2-SETCapabilities-extension.c delete mode 100644 asn.1/generated/Ver2-SETCapabilities-extension.h delete mode 100644 asn.1/generated/Ver2-SUPL-END-extension.c delete mode 100644 asn.1/generated/Ver2-SUPL-END-extension.h delete mode 100644 asn.1/generated/Ver2-SUPL-INIT-extension.c delete mode 100644 asn.1/generated/Ver2-SUPL-INIT-extension.h delete mode 100644 asn.1/generated/Ver2-SUPL-POS-INIT-extension.c delete mode 100644 asn.1/generated/Ver2-SUPL-POS-INIT-extension.h delete mode 100644 asn.1/generated/Ver2-SUPL-POS-extension.c delete mode 100644 asn.1/generated/Ver2-SUPL-POS-extension.h delete mode 100644 asn.1/generated/Ver2-SUPL-RESPONSE-extension.c delete mode 100644 asn.1/generated/Ver2-SUPL-RESPONSE-extension.h delete mode 100644 asn.1/generated/Ver2-SUPL-START-extension.c delete mode 100644 asn.1/generated/Ver2-SUPL-START-extension.h delete mode 100644 asn.1/generated/Ver2-SUPLNOTIFY.c delete mode 100644 asn.1/generated/Ver2-SUPLNOTIFYRESPONSE.c delete mode 100644 asn.1/generated/Ver2-SUPLNOTIFYRESPONSE.h delete mode 100644 asn.1/generated/Ver2-SUPLREPORT.c delete mode 100644 asn.1/generated/Ver2-SUPLREPORT.h delete mode 100644 asn.1/generated/Ver2-SUPLSETINIT.c delete mode 100644 asn.1/generated/Ver2-SUPLSETINIT.h delete mode 100644 asn.1/generated/Ver2-SUPLTRIGGEREDRESPONSE.c delete mode 100644 asn.1/generated/Ver2-SUPLTRIGGEREDRESPONSE.h delete mode 100644 asn.1/generated/Ver2-SUPLTRIGGEREDSTART.c delete mode 100644 asn.1/generated/Ver2-SUPLTRIGGEREDSTART.h delete mode 100644 asn.1/generated/Ver2-SUPLTRIGGEREDSTOP.c delete mode 100644 asn.1/generated/Version.c delete mode 100644 asn.1/generated/Version.h delete mode 100644 asn.1/generated/VerticalAccuracy.c delete mode 100644 asn.1/generated/VerticalAccuracyExt-r15.c delete mode 100644 asn.1/generated/VisibleString.c delete mode 100644 asn.1/generated/VisibleString.h delete mode 100644 asn.1/generated/WCDMAAreaId.c delete mode 100644 asn.1/generated/WCDMAAreaId.h delete mode 100644 asn.1/generated/WLAN-AP-Data-r14.c delete mode 100644 asn.1/generated/WLAN-AP-Identifier-r13.c delete mode 100644 asn.1/generated/WLAN-AP-Location-r14.c delete mode 100644 asn.1/generated/WLAN-DataSet-r14.c delete mode 100644 asn.1/generated/WLAN-DataSet-r14.h delete mode 100644 asn.1/generated/WLAN-Error-r13.c delete mode 100644 asn.1/generated/WLAN-LocationServerErrorCauses-r13.c delete mode 100644 asn.1/generated/WLAN-MeasurementElement-r13.c delete mode 100644 asn.1/generated/WLAN-MeasurementElement-r13.h delete mode 100644 asn.1/generated/WLAN-MeasurementInformation-r13.c delete mode 100644 asn.1/generated/WLAN-MeasurementInformation-r13.h delete mode 100644 asn.1/generated/WLAN-MeasurementList-r13.c delete mode 100644 asn.1/generated/WLAN-ProvideAssistanceData-r14.c delete mode 100644 asn.1/generated/WLAN-ProvideCapabilities-r13.c delete mode 100644 asn.1/generated/WLAN-ProvideLocationInformation-r13.c delete mode 100644 asn.1/generated/WLAN-RTT-r13.c delete mode 100644 asn.1/generated/WLAN-RequestAssistanceData-r14.c delete mode 100644 asn.1/generated/WLAN-RequestCapabilities-r13.c delete mode 100644 asn.1/generated/WLAN-RequestLocationInformation-r13.c delete mode 100644 asn.1/generated/WLAN-TargetDeviceErrorCauses-r13.c delete mode 100644 asn.1/generated/WLANAreaId.c delete mode 100644 asn.1/generated/WcdmaCellInformation.c delete mode 100644 asn.1/generated/WcdmaCellInformation.h delete mode 100644 asn.1/generated/WimaxAreaId.c delete mode 100644 asn.1/generated/WimaxAreaId.h delete mode 100644 asn.1/generated/WimaxBSInformation.c delete mode 100644 asn.1/generated/WimaxBSInformation.h delete mode 100644 asn.1/generated/WimaxBsID.c delete mode 100644 asn.1/generated/WimaxBsID.h delete mode 100644 asn.1/generated/WimaxNMR.c delete mode 100644 asn.1/generated/WimaxNMR.h delete mode 100644 asn.1/generated/WimaxNMRList.c delete mode 100644 asn.1/generated/WimaxRTD.c delete mode 100644 asn.1/generated/WimaxRTD.h delete mode 100644 asn.1/generated/WlanAPInformation.c delete mode 100644 asn.1/generated/WlanAPInformation.h delete mode 100644 asn.1/generated/asn_application.c delete mode 100644 asn.1/generated/asn_codecs_prim.c delete mode 100644 asn.1/generated/asn_codecs_prim.h delete mode 100644 asn.1/generated/constr_CHOICE.c delete mode 100644 asn.1/generated/constr_CHOICE.h delete mode 100644 asn.1/generated/constr_SEQUENCE.c delete mode 100644 asn.1/generated/constr_SEQUENCE.h delete mode 100644 asn.1/generated/constr_SEQUENCE_OF.c delete mode 100644 asn.1/generated/constr_SEQUENCE_OF.h delete mode 100644 asn.1/generated/constr_SET_OF.c delete mode 100644 asn.1/generated/constr_SET_OF.h delete mode 100644 asn.1/generated/constr_TYPE.h delete mode 100644 asn.1/generated/per_decoder.c delete mode 100644 asn.1/generated/per_decoder.h delete mode 100644 asn.1/generated/per_encoder.c delete mode 100644 asn.1/generated/per_encoder.h delete mode 100644 asn.1/generated/per_opentype.c delete mode 100644 asn.1/generated/per_opentype.h delete mode 100644 asn.1/generated/per_support.c delete mode 100644 asn.1/generated/per_support.h create mode 100644 asn.1/lpp_generated/A-GNSS-Error.c rename asn.1/{generated => lpp_generated}/A-GNSS-Error.h (84%) create mode 100644 asn.1/lpp_generated/A-GNSS-ProvideAssistanceData.c create mode 100644 asn.1/lpp_generated/A-GNSS-ProvideAssistanceData.h create mode 100644 asn.1/lpp_generated/A-GNSS-ProvideCapabilities.c create mode 100644 asn.1/lpp_generated/A-GNSS-ProvideCapabilities.h create mode 100644 asn.1/lpp_generated/A-GNSS-ProvideLocationInformation.c create mode 100644 asn.1/lpp_generated/A-GNSS-ProvideLocationInformation.h create mode 100644 asn.1/lpp_generated/A-GNSS-RequestAssistanceData.c create mode 100644 asn.1/lpp_generated/A-GNSS-RequestAssistanceData.h create mode 100644 asn.1/lpp_generated/A-GNSS-RequestCapabilities.c rename asn.1/{generated => lpp_generated}/A-GNSS-RequestCapabilities.h (80%) create mode 100644 asn.1/lpp_generated/A-GNSS-RequestLocationInformation.c rename asn.1/{generated => lpp_generated}/A-GNSS-RequestLocationInformation.h (81%) create mode 100644 asn.1/lpp_generated/ARFCN-ValueEUTRA-r14.c create mode 100644 asn.1/lpp_generated/ARFCN-ValueEUTRA-r14.h create mode 100644 asn.1/lpp_generated/ARFCN-ValueEUTRA-v9a0.c create mode 100644 asn.1/lpp_generated/ARFCN-ValueEUTRA-v9a0.h create mode 100644 asn.1/lpp_generated/ARFCN-ValueEUTRA.c create mode 100644 asn.1/lpp_generated/ARFCN-ValueEUTRA.h create mode 100644 asn.1/lpp_generated/ARFCN-ValueNR-r15.c create mode 100644 asn.1/lpp_generated/ARFCN-ValueNR-r15.h create mode 100644 asn.1/lpp_generated/ARFCN-ValueUTRA.c create mode 100644 asn.1/lpp_generated/ARFCN-ValueUTRA.h create mode 100644 asn.1/lpp_generated/AUX-ReferenceStationID-Element-r15.c rename asn.1/{generated => lpp_generated}/AUX-ReferenceStationID-Element-r15.h (81%) create mode 100644 asn.1/lpp_generated/AUX-ReferenceStationList-r15.c rename asn.1/{generated => lpp_generated}/AUX-ReferenceStationList-r15.h (81%) create mode 100644 asn.1/lpp_generated/Abort-r9-IEs.c create mode 100644 asn.1/lpp_generated/Abort-r9-IEs.h create mode 100644 asn.1/lpp_generated/Abort.c rename asn.1/{generated => lpp_generated}/Abort.h (89%) create mode 100644 asn.1/lpp_generated/AccessTypes.c rename asn.1/{generated => lpp_generated}/AccessTypes.h (81%) create mode 100644 asn.1/lpp_generated/Acknowledgement.c create mode 100644 asn.1/lpp_generated/Acknowledgement.h create mode 100644 asn.1/lpp_generated/Add-PRSconfigNeighbourElement-r14.c rename asn.1/{generated => lpp_generated}/Add-PRSconfigNeighbourElement-r14.h (77%) create mode 100644 asn.1/lpp_generated/AdditionalInformation.c rename asn.1/{generated => lpp_generated}/AdditionalInformation.h (75%) create mode 100644 asn.1/lpp_generated/AdditionalPath-r14.c rename asn.1/{generated => lpp_generated}/AdditionalPath-r14.h (75%) create mode 100644 asn.1/lpp_generated/AdditionalPathList-r14.c rename asn.1/{generated => lpp_generated}/AdditionalPathList-r14.h (80%) create mode 100644 asn.1/lpp_generated/AlmanacBDS-AlmanacSet-r12.c rename asn.1/{generated => lpp_generated}/AlmanacBDS-AlmanacSet-r12.h (78%) create mode 100644 asn.1/lpp_generated/AlmanacECEF-SBAS-AlmanacSet.c rename asn.1/{generated => lpp_generated}/AlmanacECEF-SBAS-AlmanacSet.h (82%) create mode 100644 asn.1/lpp_generated/AlmanacGLONASS-AlmanacSet.c rename asn.1/{generated => lpp_generated}/AlmanacGLONASS-AlmanacSet.h (80%) create mode 100644 asn.1/lpp_generated/AlmanacKeplerianSet.c rename asn.1/{generated => lpp_generated}/AlmanacKeplerianSet.h (79%) create mode 100644 asn.1/lpp_generated/AlmanacMidiAlmanacSet.c rename asn.1/{generated => lpp_generated}/AlmanacMidiAlmanacSet.h (83%) create mode 100644 asn.1/lpp_generated/AlmanacNAV-KeplerianSet.c rename asn.1/{generated => lpp_generated}/AlmanacNAV-KeplerianSet.h (82%) create mode 100644 asn.1/lpp_generated/AlmanacNavIC-AlmanacSet-r16.c rename asn.1/{generated => lpp_generated}/AlmanacNavIC-AlmanacSet-r16.h (80%) create mode 100644 asn.1/lpp_generated/AlmanacReducedKeplerianSet.c rename asn.1/{generated => lpp_generated}/AlmanacReducedKeplerianSet.h (82%) create mode 100644 asn.1/lpp_generated/AntennaDescription-r15.c rename asn.1/{generated => lpp_generated}/AntennaDescription-r15.h (81%) create mode 100644 asn.1/lpp_generated/AntennaReferencePointUnc-r15.c rename asn.1/{generated => lpp_generated}/AntennaReferencePointUnc-r15.h (81%) create mode 100644 asn.1/lpp_generated/AreaID-CellList-r17.c create mode 100644 asn.1/lpp_generated/AreaID-CellList-r17.h create mode 100644 asn.1/lpp_generated/ArrayOfGridPoints-r18.c create mode 100644 asn.1/lpp_generated/ArrayOfGridPoints-r18.h create mode 100644 asn.1/lpp_generated/AssistanceDataSupportList.c rename asn.1/{generated => lpp_generated}/AssistanceDataSupportList.h (82%) create mode 100644 asn.1/lpp_generated/Aux-ARP-Unc-r15.c create mode 100644 asn.1/lpp_generated/Aux-ARP-Unc-r15.h create mode 100644 asn.1/lpp_generated/AuxiliaryStationElement-r15.c rename asn.1/{generated => lpp_generated}/AuxiliaryStationElement-r15.h (79%) create mode 100644 asn.1/lpp_generated/AuxiliaryStationList-r15.c rename asn.1/{generated => lpp_generated}/AuxiliaryStationList-r15.h (80%) create mode 100644 asn.1/lpp_generated/BDS-ClockModel-r12.c create mode 100644 asn.1/lpp_generated/BDS-ClockModel-r12.h create mode 100644 asn.1/lpp_generated/BDS-ClockModel2-r16.c create mode 100644 asn.1/lpp_generated/BDS-ClockModel2-r16.h create mode 100644 asn.1/lpp_generated/BDS-DifferentialCorrections-r12.c rename asn.1/{generated => lpp_generated}/BDS-DifferentialCorrections-r12.h (81%) create mode 100644 asn.1/lpp_generated/BDS-DifferentialCorrectionsReq-r12.c rename asn.1/{generated => lpp_generated}/BDS-DifferentialCorrectionsReq-r12.h (80%) create mode 100644 asn.1/lpp_generated/BDS-DifferentialCorrectionsSupport-r12.c rename asn.1/{generated => lpp_generated}/BDS-DifferentialCorrectionsSupport-r12.h (81%) create mode 100644 asn.1/lpp_generated/BDS-GridModelParameter-r12.c rename asn.1/{generated => lpp_generated}/BDS-GridModelParameter-r12.h (80%) create mode 100644 asn.1/lpp_generated/BDS-GridModelReq-r12.c rename asn.1/{generated => lpp_generated}/BDS-GridModelReq-r12.h (76%) create mode 100644 asn.1/lpp_generated/BDS-GridModelSupport-r12.c rename asn.1/{generated => lpp_generated}/BDS-GridModelSupport-r12.h (76%) create mode 100644 asn.1/lpp_generated/BDS-SgnTypeElement-r12.c rename asn.1/{generated => lpp_generated}/BDS-SgnTypeElement-r12.h (77%) create mode 100644 asn.1/lpp_generated/BDS-SgnTypeList-r12.c rename asn.1/{generated => lpp_generated}/BDS-SgnTypeList-r12.h (79%) create mode 100644 asn.1/lpp_generated/BT-AntArrayConfig-r18.c create mode 100644 asn.1/lpp_generated/BT-AntArrayConfig-r18.h create mode 100644 asn.1/lpp_generated/BT-AntElement-r18.c create mode 100644 asn.1/lpp_generated/BT-AntElement-r18.h create mode 100644 asn.1/lpp_generated/BT-AntSwitchElement-r18.c create mode 100644 asn.1/lpp_generated/BT-AntSwitchElement-r18.h create mode 100644 asn.1/lpp_generated/BT-AoA-Config-r18.c create mode 100644 asn.1/lpp_generated/BT-AoA-Config-r18.h create mode 100644 asn.1/lpp_generated/BT-AoD-TransmConfig-r18.c create mode 100644 asn.1/lpp_generated/BT-AoD-TransmConfig-r18.h create mode 100644 asn.1/lpp_generated/BT-BeaconInfo-r18.c create mode 100644 asn.1/lpp_generated/BT-BeaconInfo-r18.h create mode 100644 asn.1/lpp_generated/BT-BeaconInfoElement-r18.c create mode 100644 asn.1/lpp_generated/BT-BeaconInfoElement-r18.h create mode 100644 asn.1/lpp_generated/BT-Error-r13.c rename asn.1/{generated => lpp_generated}/BT-Error-r13.h (84%) create mode 100644 asn.1/lpp_generated/BT-GenericArray-r18.c create mode 100644 asn.1/lpp_generated/BT-GenericArray-r18.h create mode 100644 asn.1/lpp_generated/BT-LocationServerErrorCauses-r13.c create mode 100644 asn.1/lpp_generated/BT-LocationServerErrorCauses-r13.h create mode 100644 asn.1/lpp_generated/BT-MeasurementElement-r13.c rename asn.1/{generated => lpp_generated}/BT-MeasurementElement-r13.h (77%) create mode 100644 asn.1/lpp_generated/BT-MeasurementElement-r18.c create mode 100644 asn.1/lpp_generated/BT-MeasurementElement-r18.h create mode 100644 asn.1/lpp_generated/BT-MeasurementInformation-r13.c create mode 100644 asn.1/lpp_generated/BT-MeasurementInformation-r13.h create mode 100644 asn.1/lpp_generated/BT-MeasurementList-r13.c rename asn.1/{generated => lpp_generated}/BT-MeasurementList-r13.h (80%) create mode 100644 asn.1/lpp_generated/BT-MeasurementList-r18.c create mode 100644 asn.1/lpp_generated/BT-MeasurementList-r18.h create mode 100644 asn.1/lpp_generated/BT-ProvideAssistanceData-r18.c create mode 100644 asn.1/lpp_generated/BT-ProvideAssistanceData-r18.h create mode 100644 asn.1/lpp_generated/BT-ProvideCapabilities-r13.c create mode 100644 asn.1/lpp_generated/BT-ProvideCapabilities-r13.h create mode 100644 asn.1/lpp_generated/BT-ProvideLocationInformation-r13.c create mode 100644 asn.1/lpp_generated/BT-ProvideLocationInformation-r13.h create mode 100644 asn.1/lpp_generated/BT-RequestAssistanceData-r18.c create mode 100644 asn.1/lpp_generated/BT-RequestAssistanceData-r18.h create mode 100644 asn.1/lpp_generated/BT-RequestCapabilities-r13.c rename asn.1/{generated => lpp_generated}/BT-RequestCapabilities-r13.h (77%) create mode 100644 asn.1/lpp_generated/BT-RequestLocationInformation-r13.c create mode 100644 asn.1/lpp_generated/BT-RequestLocationInformation-r13.h create mode 100644 asn.1/lpp_generated/BT-SuggestedAoA-Config-r18.c create mode 100644 asn.1/lpp_generated/BT-SuggestedAoA-Config-r18.h create mode 100644 asn.1/lpp_generated/BT-TargetDeviceErrorCauses-r13.c rename asn.1/{generated => lpp_generated}/BT-TargetDeviceErrorCauses-r13.h (78%) create mode 100644 asn.1/lpp_generated/BT-ULA-GenericAntElement-r18.c create mode 100644 asn.1/lpp_generated/BT-ULA-GenericAntElement-r18.h create mode 100644 asn.1/lpp_generated/BT-UniformCircularArray-r18.c create mode 100644 asn.1/lpp_generated/BT-UniformCircularArray-r18.h create mode 100644 asn.1/lpp_generated/BT-UniformLinearArray-r18.c create mode 100644 asn.1/lpp_generated/BT-UniformLinearArray-r18.h create mode 100644 asn.1/lpp_generated/BT-UniformRectangularArray-r18.c create mode 100644 asn.1/lpp_generated/BT-UniformRectangularArray-r18.h create mode 100644 asn.1/lpp_generated/BadSignalElement.c rename asn.1/{generated => lpp_generated}/BadSignalElement.h (75%) create mode 100644 asn.1/lpp_generated/BeamPowerElement-r17.c create mode 100644 asn.1/lpp_generated/BeamPowerElement-r17.h create mode 100644 asn.1/lpp_generated/CLOCK-IntegrityParameters-r17.c create mode 100644 asn.1/lpp_generated/CLOCK-IntegrityParameters-r17.h create mode 100644 asn.1/lpp_generated/CNAV-ClockModel.c create mode 100644 asn.1/lpp_generated/CNAV-ClockModel.h create mode 100644 asn.1/lpp_generated/CarrierFreq-NB-r14.c rename asn.1/{generated => lpp_generated}/CarrierFreq-NB-r14.h (75%) rename asn.1/{generated => lpp_generated}/CarrierFreqOffsetNB-r14.c (76%) rename asn.1/{generated => lpp_generated}/CarrierFreqOffsetNB-r14.h (84%) create mode 100644 asn.1/lpp_generated/CellGlobalIdEUTRA-AndUTRA.c rename asn.1/{generated => lpp_generated}/CellGlobalIdEUTRA-AndUTRA.h (89%) create mode 100644 asn.1/lpp_generated/CellGlobalIdGERAN.c rename asn.1/{generated => lpp_generated}/CellGlobalIdGERAN.h (85%) create mode 100644 asn.1/lpp_generated/CommonIEsAbort.c rename asn.1/{generated => lpp_generated}/CommonIEsAbort.h (83%) create mode 100644 asn.1/lpp_generated/CommonIEsError.c rename asn.1/{generated => lpp_generated}/CommonIEsError.h (84%) create mode 100644 asn.1/lpp_generated/CommonIEsProvideAssistanceData.c rename asn.1/{generated => lpp_generated}/CommonIEsProvideAssistanceData.h (79%) create mode 100644 asn.1/lpp_generated/CommonIEsProvideCapabilities.c create mode 100644 asn.1/lpp_generated/CommonIEsProvideCapabilities.h create mode 100644 asn.1/lpp_generated/CommonIEsProvideLocationInformation.c create mode 100644 asn.1/lpp_generated/CommonIEsProvideLocationInformation.h create mode 100644 asn.1/lpp_generated/CommonIEsRequestAssistanceData.c create mode 100644 asn.1/lpp_generated/CommonIEsRequestAssistanceData.h create mode 100644 asn.1/lpp_generated/CommonIEsRequestCapabilities.c create mode 100644 asn.1/lpp_generated/CommonIEsRequestCapabilities.h create mode 100644 asn.1/lpp_generated/CommonIEsRequestLocationInformation.c create mode 100644 asn.1/lpp_generated/CommonIEsRequestLocationInformation.h create mode 100644 asn.1/lpp_generated/DBDS-CorrectionElement-r12.c rename asn.1/{generated => lpp_generated}/DBDS-CorrectionElement-r12.h (80%) create mode 100644 asn.1/lpp_generated/DBDS-CorrectionList-r12.c rename asn.1/{generated => lpp_generated}/DBDS-CorrectionList-r12.h (80%) create mode 100644 asn.1/lpp_generated/DGNSS-CorrectionsElement.c rename asn.1/{generated => lpp_generated}/DGNSS-CorrectionsElement.h (76%) create mode 100644 asn.1/lpp_generated/DGNSS-SatList.c rename asn.1/{generated => lpp_generated}/DGNSS-SatList.h (78%) create mode 100644 asn.1/lpp_generated/DGNSS-SgnTypeElement.c rename asn.1/{generated => lpp_generated}/DGNSS-SgnTypeElement.h (80%) create mode 100644 asn.1/lpp_generated/DGNSS-SgnTypeList.c rename asn.1/{generated => lpp_generated}/DGNSS-SgnTypeList.h (79%) create mode 100644 asn.1/lpp_generated/DL-AoD-MeasCapabilityPerBand-r16.c create mode 100644 asn.1/lpp_generated/DL-AoD-MeasCapabilityPerBand-r16.h create mode 100644 asn.1/lpp_generated/DL-PRS-BeamInfoElement-r16.c create mode 100644 asn.1/lpp_generated/DL-PRS-BeamInfoElement-r16.h create mode 100644 asn.1/lpp_generated/DL-PRS-BeamInfoResourceSet-r16.c rename asn.1/{generated => lpp_generated}/DL-PRS-BeamInfoResourceSet-r16.h (81%) create mode 100644 asn.1/lpp_generated/DL-PRS-BeamInfoSet-r16.c rename asn.1/{generated => lpp_generated}/DL-PRS-BeamInfoSet-r16.h (80%) create mode 100644 asn.1/lpp_generated/DL-PRS-Configuration-ID-r17.c create mode 100644 asn.1/lpp_generated/DL-PRS-Configuration-ID-r17.h create mode 100644 asn.1/lpp_generated/DL-PRS-ID-Info-r16.c create mode 100644 asn.1/lpp_generated/DL-PRS-ID-Info-r16.h create mode 100644 asn.1/lpp_generated/DL-PRS-MeasurementWithRxFH-RRC-Connected-r18.c create mode 100644 asn.1/lpp_generated/DL-PRS-MeasurementWithRxFH-RRC-Connected-r18.h create mode 100644 asn.1/lpp_generated/DL-PRS-MutingOption1-r16.c create mode 100644 asn.1/lpp_generated/DL-PRS-MutingOption1-r16.h create mode 100644 asn.1/lpp_generated/DL-PRS-MutingOption2-r16.c create mode 100644 asn.1/lpp_generated/DL-PRS-MutingOption2-r16.h create mode 100644 asn.1/lpp_generated/DL-PRS-QCL-Info-r16.c rename asn.1/{generated => lpp_generated}/DL-PRS-QCL-Info-r16.h (82%) create mode 100644 asn.1/lpp_generated/DL-PRS-QCL-InfoReq-r17.c create mode 100644 asn.1/lpp_generated/DL-PRS-QCL-InfoReq-r17.h create mode 100644 asn.1/lpp_generated/DL-PRS-QCL-InformationReqPerTRP-r17.c create mode 100644 asn.1/lpp_generated/DL-PRS-QCL-InformationReqPerTRP-r17.h create mode 100644 asn.1/lpp_generated/DL-PRS-QCL-InformationReqTRPlist-r17.c create mode 100644 asn.1/lpp_generated/DL-PRS-QCL-InformationReqTRPlist-r17.h create mode 100644 asn.1/lpp_generated/DL-PRS-QCL-ProcessingCapabilityPerBand-r16.c create mode 100644 asn.1/lpp_generated/DL-PRS-QCL-ProcessingCapabilityPerBand-r16.h create mode 100644 asn.1/lpp_generated/DL-PRS-Resource-ARP-Element-r16.c create mode 100644 asn.1/lpp_generated/DL-PRS-Resource-ARP-Element-r16.h create mode 100644 asn.1/lpp_generated/DL-PRS-ResourcePrioritySubset-r17.c create mode 100644 asn.1/lpp_generated/DL-PRS-ResourcePrioritySubset-r17.h create mode 100644 asn.1/lpp_generated/DL-PRS-ResourceSets-TRP-Element-r16.c create mode 100644 asn.1/lpp_generated/DL-PRS-ResourceSets-TRP-Element-r16.h create mode 100644 asn.1/lpp_generated/DL-PRS-ResourcesBandCombination-r16.c create mode 100644 asn.1/lpp_generated/DL-PRS-ResourcesBandCombination-r16.h create mode 100644 asn.1/lpp_generated/DL-PRS-ResourcesBandCombinationList-r16.c create mode 100644 asn.1/lpp_generated/DL-PRS-ResourcesBandCombinationList-r16.h create mode 100644 asn.1/lpp_generated/DL-PRS-ResourcesCapabilityPerBand-r16.c create mode 100644 asn.1/lpp_generated/DL-PRS-ResourcesCapabilityPerBand-r16.h create mode 100644 asn.1/lpp_generated/DL-PRS-StartTime-and-Duration-r17.c create mode 100644 asn.1/lpp_generated/DL-PRS-StartTime-and-Duration-r17.h create mode 100644 asn.1/lpp_generated/DL-PRS-TEG-InfoElement-r17.c create mode 100644 asn.1/lpp_generated/DL-PRS-TEG-InfoElement-r17.h create mode 100644 asn.1/lpp_generated/DL-PRS-TEG-InfoPerResourceSet-r17.c create mode 100644 asn.1/lpp_generated/DL-PRS-TEG-InfoPerResourceSet-r17.h create mode 100644 asn.1/lpp_generated/DL-SelectedPRS-ResourceIndex-r16.c rename asn.1/{generated => lpp_generated}/DL-SelectedPRS-ResourceIndex-r16.h (77%) create mode 100644 asn.1/lpp_generated/DL-SelectedPRS-ResourceSetIndex-r16.c create mode 100644 asn.1/lpp_generated/DL-SelectedPRS-ResourceSetIndex-r16.h create mode 100644 asn.1/lpp_generated/DL-TDOA-MeasCapabilityPerBand-r17.c create mode 100644 asn.1/lpp_generated/DL-TDOA-MeasCapabilityPerBand-r17.h create mode 100644 asn.1/lpp_generated/Delta-Height-r16.c create mode 100644 asn.1/lpp_generated/Delta-Height-r16.h create mode 100644 asn.1/lpp_generated/Delta-Latitude-r16.c rename asn.1/{generated => lpp_generated}/Delta-Latitude-r16.h (75%) create mode 100644 asn.1/lpp_generated/Delta-Longitude-r16.c rename asn.1/{generated => lpp_generated}/Delta-Longitude-r16.h (75%) create mode 100644 asn.1/lpp_generated/DeltaTime-r15.c rename asn.1/{generated => lpp_generated}/DeltaTime-r15.h (83%) create mode 100644 asn.1/lpp_generated/Displacement-r15.c create mode 100644 asn.1/lpp_generated/Displacement-r15.h create mode 100644 asn.1/lpp_generated/DisplacementInfoList-r15.c rename asn.1/{generated => lpp_generated}/DisplacementInfoList-r15.h (80%) create mode 100644 asn.1/lpp_generated/DisplacementInfoListElement-r15.c rename asn.1/{generated => lpp_generated}/DisplacementInfoListElement-r15.h (77%) create mode 100644 asn.1/lpp_generated/DisplacementTimeStamp-r15.c rename asn.1/{generated => lpp_generated}/DisplacementTimeStamp-r15.h (87%) create mode 100644 asn.1/lpp_generated/ECGI.c rename asn.1/{generated => lpp_generated}/ECGI.h (80%) create mode 100644 asn.1/lpp_generated/ECID-Error.c rename asn.1/{generated => lpp_generated}/ECID-Error.h (84%) create mode 100644 asn.1/lpp_generated/ECID-LocationServerErrorCauses.c rename asn.1/{generated => lpp_generated}/ECID-LocationServerErrorCauses.h (83%) create mode 100644 asn.1/lpp_generated/ECID-ProvideCapabilities.c rename asn.1/{generated => lpp_generated}/ECID-ProvideCapabilities.h (78%) create mode 100644 asn.1/lpp_generated/ECID-ProvideLocationInformation.c rename asn.1/{generated => lpp_generated}/ECID-ProvideLocationInformation.h (76%) create mode 100644 asn.1/lpp_generated/ECID-RequestCapabilities.c rename asn.1/{generated => lpp_generated}/ECID-RequestCapabilities.h (76%) create mode 100644 asn.1/lpp_generated/ECID-RequestLocationInformation.c rename asn.1/{generated => lpp_generated}/ECID-RequestLocationInformation.h (85%) create mode 100644 asn.1/lpp_generated/ECID-SignalMeasurementInformation.c rename asn.1/{generated => lpp_generated}/ECID-SignalMeasurementInformation.h (77%) create mode 100644 asn.1/lpp_generated/ECID-TargetDeviceErrorCauses.c rename asn.1/{generated => lpp_generated}/ECID-TargetDeviceErrorCauses.h (75%) create mode 100644 asn.1/lpp_generated/EPDU-Body.c create mode 100644 asn.1/lpp_generated/EPDU-Body.h create mode 100644 asn.1/lpp_generated/EPDU-ID.c create mode 100644 asn.1/lpp_generated/EPDU-ID.h create mode 100644 asn.1/lpp_generated/EPDU-Identifier.c rename asn.1/{generated => lpp_generated}/EPDU-Identifier.h (75%) create mode 100644 asn.1/lpp_generated/EPDU-Name.c create mode 100644 asn.1/lpp_generated/EPDU-Name.h create mode 100644 asn.1/lpp_generated/EPDU-Sequence.c rename asn.1/{generated => lpp_generated}/EPDU-Sequence.h (78%) create mode 100644 asn.1/lpp_generated/EPDU.c rename asn.1/{generated => lpp_generated}/EPDU.h (75%) create mode 100644 asn.1/lpp_generated/EarlyFixReport-r12.c rename asn.1/{generated => lpp_generated}/EarlyFixReport-r12.h (78%) create mode 100644 asn.1/lpp_generated/ElevationElement-R17.c create mode 100644 asn.1/lpp_generated/ElevationElement-R17.h create mode 100644 asn.1/lpp_generated/Ellipsoid-Point.c rename asn.1/{generated => lpp_generated}/Ellipsoid-Point.h (82%) create mode 100644 asn.1/lpp_generated/Ellipsoid-PointWithUncertaintyCircle.c rename asn.1/{generated => lpp_generated}/Ellipsoid-PointWithUncertaintyCircle.h (85%) create mode 100644 asn.1/lpp_generated/EllipsoidArc.c rename asn.1/{generated => lpp_generated}/EllipsoidArc.h (82%) create mode 100644 asn.1/lpp_generated/EllipsoidPointWithAltitude.c rename asn.1/{generated => lpp_generated}/EllipsoidPointWithAltitude.h (86%) create mode 100644 asn.1/lpp_generated/EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.c rename asn.1/{generated => lpp_generated}/EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.h (89%) create mode 100644 asn.1/lpp_generated/EllipsoidPointWithUncertaintyEllipse.c rename asn.1/{generated => lpp_generated}/EllipsoidPointWithUncertaintyEllipse.h (85%) create mode 100644 asn.1/lpp_generated/Environment.c rename asn.1/{generated => lpp_generated}/Environment.h (78%) create mode 100644 asn.1/lpp_generated/EqualIntegerAmbiguityLevel-r16.c rename asn.1/{generated => lpp_generated}/EqualIntegerAmbiguityLevel-r16.h (85%) create mode 100644 asn.1/lpp_generated/Error-r9-IEs.c create mode 100644 asn.1/lpp_generated/Error-r9-IEs.h create mode 100644 asn.1/lpp_generated/Error.c rename asn.1/{generated => lpp_generated}/Error.h (82%) create mode 100644 asn.1/lpp_generated/FKP-Gradients-Element-r15.c rename asn.1/{generated => lpp_generated}/FKP-Gradients-Element-r15.h (82%) create mode 100644 asn.1/lpp_generated/FKP-Gradients-List-r15.c rename asn.1/{generated => lpp_generated}/FKP-Gradients-List-r15.h (80%) create mode 100644 asn.1/lpp_generated/FreqBandIndicatorNR-r16.c create mode 100644 asn.1/lpp_generated/FreqBandIndicatorNR-r16.h create mode 100644 asn.1/lpp_generated/GLO-RTK-BiasInformation-r15.c create mode 100644 asn.1/lpp_generated/GLO-RTK-BiasInformation-r15.h create mode 100644 asn.1/lpp_generated/GLO-RTK-BiasInformationReq-r15.c rename asn.1/{generated => lpp_generated}/GLO-RTK-BiasInformationReq-r15.h (76%) create mode 100644 asn.1/lpp_generated/GLO-RTK-BiasInformationSupport-r15.c rename asn.1/{generated => lpp_generated}/GLO-RTK-BiasInformationSupport-r15.h (78%) create mode 100644 asn.1/lpp_generated/GLONASS-ClockModel.c rename asn.1/{generated => lpp_generated}/GLONASS-ClockModel.h (75%) create mode 100644 asn.1/lpp_generated/GNSS-AcquisitionAssistElement.c rename asn.1/{generated => lpp_generated}/GNSS-AcquisitionAssistElement.h (84%) create mode 100644 asn.1/lpp_generated/GNSS-AcquisitionAssistList.c rename asn.1/{generated => lpp_generated}/GNSS-AcquisitionAssistList.h (81%) create mode 100644 asn.1/lpp_generated/GNSS-AcquisitionAssistance.c rename asn.1/{generated => lpp_generated}/GNSS-AcquisitionAssistance.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-AcquisitionAssistanceReq.c rename asn.1/{generated => lpp_generated}/GNSS-AcquisitionAssistanceReq.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-AcquisitionAssistanceSupport.c rename asn.1/{generated => lpp_generated}/GNSS-AcquisitionAssistanceSupport.h (82%) create mode 100644 asn.1/lpp_generated/GNSS-Almanac.c create mode 100644 asn.1/lpp_generated/GNSS-Almanac.h create mode 100644 asn.1/lpp_generated/GNSS-AlmanacElement.c rename asn.1/{generated => lpp_generated}/GNSS-AlmanacElement.h (90%) create mode 100644 asn.1/lpp_generated/GNSS-AlmanacList.c rename asn.1/{generated => lpp_generated}/GNSS-AlmanacList.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-AlmanacReq.c rename asn.1/{generated => lpp_generated}/GNSS-AlmanacReq.h (75%) create mode 100644 asn.1/lpp_generated/GNSS-AlmanacSupport.c rename asn.1/{generated => lpp_generated}/GNSS-AlmanacSupport.h (81%) create mode 100644 asn.1/lpp_generated/GNSS-AuxiliaryInformation.c rename asn.1/{generated => lpp_generated}/GNSS-AuxiliaryInformation.h (87%) create mode 100644 asn.1/lpp_generated/GNSS-AuxiliaryInformationReq.c rename asn.1/{generated => lpp_generated}/GNSS-AuxiliaryInformationReq.h (77%) create mode 100644 asn.1/lpp_generated/GNSS-AuxiliaryInformationSupport.c rename asn.1/{generated => lpp_generated}/GNSS-AuxiliaryInformationSupport.h (78%) create mode 100644 asn.1/lpp_generated/GNSS-BadSignalList.c rename asn.1/{generated => lpp_generated}/GNSS-BadSignalList.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-ClockModel.c rename asn.1/{generated => lpp_generated}/GNSS-ClockModel.h (89%) create mode 100644 asn.1/lpp_generated/GNSS-CommonAssistData.c create mode 100644 asn.1/lpp_generated/GNSS-CommonAssistData.h create mode 100644 asn.1/lpp_generated/GNSS-CommonAssistDataReq.c create mode 100644 asn.1/lpp_generated/GNSS-CommonAssistDataReq.h create mode 100644 asn.1/lpp_generated/GNSS-CommonAssistanceDataSupport.c create mode 100644 asn.1/lpp_generated/GNSS-CommonAssistanceDataSupport.h create mode 100644 asn.1/lpp_generated/GNSS-DataBitAssistance.c rename asn.1/{generated => lpp_generated}/GNSS-DataBitAssistance.h (77%) create mode 100644 asn.1/lpp_generated/GNSS-DataBitAssistanceReq.c rename asn.1/{generated => lpp_generated}/GNSS-DataBitAssistanceReq.h (75%) create mode 100644 asn.1/lpp_generated/GNSS-DataBitAssistanceSupport.c rename asn.1/{generated => lpp_generated}/GNSS-DataBitAssistanceSupport.h (77%) create mode 100644 asn.1/lpp_generated/GNSS-DataBitsReqSatElement.c rename asn.1/{generated => lpp_generated}/GNSS-DataBitsReqSatElement.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-DataBitsReqSatList.c rename asn.1/{generated => lpp_generated}/GNSS-DataBitsReqSatList.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-DataBitsSatElement.c rename asn.1/{generated => lpp_generated}/GNSS-DataBitsSatElement.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-DataBitsSatList.c rename asn.1/{generated => lpp_generated}/GNSS-DataBitsSatList.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-DataBitsSgnElement.c rename asn.1/{generated => lpp_generated}/GNSS-DataBitsSgnElement.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-DataBitsSgnList.c rename asn.1/{generated => lpp_generated}/GNSS-DataBitsSgnList.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-DifferentialCorrections.c rename asn.1/{generated => lpp_generated}/GNSS-DifferentialCorrections.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-DifferentialCorrectionsReq.c rename asn.1/{generated => lpp_generated}/GNSS-DifferentialCorrectionsReq.h (81%) create mode 100644 asn.1/lpp_generated/GNSS-DifferentialCorrectionsSupport.c rename asn.1/{generated => lpp_generated}/GNSS-DifferentialCorrectionsSupport.h (81%) create mode 100644 asn.1/lpp_generated/GNSS-EarthOrientationParameters.c rename asn.1/{generated => lpp_generated}/GNSS-EarthOrientationParameters.h (81%) create mode 100644 asn.1/lpp_generated/GNSS-EarthOrientationParametersReq.c rename asn.1/{generated => lpp_generated}/GNSS-EarthOrientationParametersReq.h (78%) create mode 100644 asn.1/lpp_generated/GNSS-EarthOrientationParametersSupport.c rename asn.1/{generated => lpp_generated}/GNSS-EarthOrientationParametersSupport.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-FrequencyID-r15.c rename asn.1/{generated => lpp_generated}/GNSS-FrequencyID-r15.h (78%) create mode 100644 asn.1/lpp_generated/GNSS-GenericAssistData.c rename asn.1/{generated => lpp_generated}/GNSS-GenericAssistData.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-GenericAssistDataElement.c create mode 100644 asn.1/lpp_generated/GNSS-GenericAssistDataElement.h create mode 100644 asn.1/lpp_generated/GNSS-GenericAssistDataReq.c rename asn.1/{generated => lpp_generated}/GNSS-GenericAssistDataReq.h (81%) create mode 100644 asn.1/lpp_generated/GNSS-GenericAssistDataReqElement.c create mode 100644 asn.1/lpp_generated/GNSS-GenericAssistDataReqElement.h create mode 100644 asn.1/lpp_generated/GNSS-GenericAssistDataSupportElement.c create mode 100644 asn.1/lpp_generated/GNSS-GenericAssistDataSupportElement.h create mode 100644 asn.1/lpp_generated/GNSS-GenericAssistanceDataSupport.c rename asn.1/{generated => lpp_generated}/GNSS-GenericAssistanceDataSupport.h (82%) create mode 100644 asn.1/lpp_generated/GNSS-ID-BDS-SatElement-r16.c rename asn.1/{generated => lpp_generated}/GNSS-ID-BDS-SatElement-r16.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-ID-BDS-r16.c rename asn.1/{generated => lpp_generated}/GNSS-ID-BDS-r16.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-ID-Bitmap.c rename asn.1/{generated => lpp_generated}/GNSS-ID-Bitmap.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-ID-GLONASS-SatElement.c rename asn.1/{generated => lpp_generated}/GNSS-ID-GLONASS-SatElement.h (78%) create mode 100644 asn.1/lpp_generated/GNSS-ID-GLONASS.c rename asn.1/{generated => lpp_generated}/GNSS-ID-GLONASS.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-ID-GPS-SatElement.c rename asn.1/{generated => lpp_generated}/GNSS-ID-GPS-SatElement.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-ID-GPS.c rename asn.1/{generated => lpp_generated}/GNSS-ID-GPS.h (78%) create mode 100644 asn.1/lpp_generated/GNSS-ID.c rename asn.1/{generated => lpp_generated}/GNSS-ID.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-Integrity-ServiceAlert-r17.c create mode 100644 asn.1/lpp_generated/GNSS-Integrity-ServiceAlert-r17.h create mode 100644 asn.1/lpp_generated/GNSS-Integrity-ServiceAlertReq-r17.c create mode 100644 asn.1/lpp_generated/GNSS-Integrity-ServiceAlertReq-r17.h create mode 100644 asn.1/lpp_generated/GNSS-Integrity-ServiceAlertSupport-r17.c create mode 100644 asn.1/lpp_generated/GNSS-Integrity-ServiceAlertSupport-r17.h create mode 100644 asn.1/lpp_generated/GNSS-Integrity-ServiceParameters-r17.c create mode 100644 asn.1/lpp_generated/GNSS-Integrity-ServiceParameters-r17.h create mode 100644 asn.1/lpp_generated/GNSS-Integrity-ServiceParametersReq-r17.c create mode 100644 asn.1/lpp_generated/GNSS-Integrity-ServiceParametersReq-r17.h create mode 100644 asn.1/lpp_generated/GNSS-Integrity-ServiceParametersSupport-r17.c create mode 100644 asn.1/lpp_generated/GNSS-Integrity-ServiceParametersSupport-r17.h create mode 100644 asn.1/lpp_generated/GNSS-IonosphericModel.c create mode 100644 asn.1/lpp_generated/GNSS-IonosphericModel.h create mode 100644 asn.1/lpp_generated/GNSS-IonosphericModelReq.c create mode 100644 asn.1/lpp_generated/GNSS-IonosphericModelReq.h create mode 100644 asn.1/lpp_generated/GNSS-IonosphericModelSupport.c rename asn.1/{generated => lpp_generated}/GNSS-IonosphericModelSupport.h (83%) create mode 100644 asn.1/lpp_generated/GNSS-LOS-InfoElement-r18.c create mode 100644 asn.1/lpp_generated/GNSS-LOS-InfoElement-r18.h create mode 100644 asn.1/lpp_generated/GNSS-LOS-InfoList-r18.c create mode 100644 asn.1/lpp_generated/GNSS-LOS-InfoList-r18.h create mode 100644 asn.1/lpp_generated/GNSS-LOS-NLOS-GridPoints-r18.c create mode 100644 asn.1/lpp_generated/GNSS-LOS-NLOS-GridPoints-r18.h create mode 100644 asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndications-r18.c create mode 100644 asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndications-r18.h create mode 100644 asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndicationsReq-r18.c create mode 100644 asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndicationsReq-r18.h create mode 100644 asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndicationsSupport-r18.c create mode 100644 asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndicationsSupport-r18.h create mode 100644 asn.1/lpp_generated/GNSS-Link-Combinations-r15.c rename asn.1/{generated => lpp_generated}/GNSS-Link-Combinations-r15.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-Link-CombinationsList-r15.c rename asn.1/{generated => lpp_generated}/GNSS-Link-CombinationsList-r15.h (81%) create mode 100644 asn.1/lpp_generated/GNSS-LocationInformation.c create mode 100644 asn.1/lpp_generated/GNSS-LocationInformation.h rename asn.1/{generated => lpp_generated}/GNSS-LocationServerErrorCauses.c (76%) rename asn.1/{generated => lpp_generated}/GNSS-LocationServerErrorCauses.h (89%) create mode 100644 asn.1/lpp_generated/GNSS-MeasurementForOneGNSS.c rename asn.1/{generated => lpp_generated}/GNSS-MeasurementForOneGNSS.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-MeasurementList.c rename asn.1/{generated => lpp_generated}/GNSS-MeasurementList.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-NavListInfo-r15.c rename asn.1/{generated => lpp_generated}/GNSS-NavListInfo-r15.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-NavModelSatelliteElement.c rename asn.1/{generated => lpp_generated}/GNSS-NavModelSatelliteElement.h (81%) create mode 100644 asn.1/lpp_generated/GNSS-NavModelSatelliteList.c rename asn.1/{generated => lpp_generated}/GNSS-NavModelSatelliteList.h (81%) create mode 100644 asn.1/lpp_generated/GNSS-NavigationModel.c rename asn.1/{generated => lpp_generated}/GNSS-NavigationModel.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-NavigationModelReq.c rename asn.1/{generated => lpp_generated}/GNSS-NavigationModelReq.h (85%) create mode 100644 asn.1/lpp_generated/GNSS-NavigationModelSupport.c rename asn.1/{generated => lpp_generated}/GNSS-NavigationModelSupport.h (85%) create mode 100644 asn.1/lpp_generated/GNSS-NetworkID-r15.c rename asn.1/{generated => lpp_generated}/GNSS-NetworkID-r15.h (78%) create mode 100644 asn.1/lpp_generated/GNSS-ObservationList-r15.c rename asn.1/{generated => lpp_generated}/GNSS-ObservationList-r15.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-OrbitModel.c rename asn.1/{generated => lpp_generated}/GNSS-OrbitModel.h (84%) create mode 100644 asn.1/lpp_generated/GNSS-PeriodicAssistData-r15.c create mode 100644 asn.1/lpp_generated/GNSS-PeriodicAssistData-r15.h create mode 100644 asn.1/lpp_generated/GNSS-PeriodicAssistDataReq-r15.c create mode 100644 asn.1/lpp_generated/GNSS-PeriodicAssistDataReq-r15.h create mode 100644 asn.1/lpp_generated/GNSS-PeriodicControlParam-r15.c rename asn.1/{generated => lpp_generated}/GNSS-PeriodicControlParam-r15.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-PositioningInstructions.c create mode 100644 asn.1/lpp_generated/GNSS-PositioningInstructions.h create mode 100644 asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationData-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-AuxiliaryStationData-r15.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationDataReq-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-AuxiliaryStationDataReq-r15.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationDataSupport-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-AuxiliaryStationDataSupport-r15.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-RTK-CommonObservationInfo-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-CommonObservationInfo-r15.h (83%) create mode 100644 asn.1/lpp_generated/GNSS-RTK-FKP-Gradients-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-FKP-Gradients-r15.h (77%) create mode 100644 asn.1/lpp_generated/GNSS-RTK-FKP-GradientsReq-r15.c create mode 100644 asn.1/lpp_generated/GNSS-RTK-FKP-GradientsReq-r15.h create mode 100644 asn.1/lpp_generated/GNSS-RTK-FKP-GradientsSupport-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-FKP-GradientsSupport-r15.h (81%) create mode 100644 asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferences-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-MAC-CorrectionDifferences-r15.h (76%) create mode 100644 asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferencesReq-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-MAC-CorrectionDifferencesReq-r15.h (78%) create mode 100644 asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.h (82%) create mode 100644 asn.1/lpp_generated/GNSS-RTK-Observations-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-Observations-r15.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-RTK-ObservationsReq-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-ObservationsReq-r15.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-RTK-ObservationsSupport-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-ObservationsSupport-r15.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfo-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-ReferenceStationInfo-r15.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfoReq-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-ReferenceStationInfoReq-r15.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfoSupport-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-ReferenceStationInfoSupport-r15.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-RTK-Residuals-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-Residuals-r15.h (77%) create mode 100644 asn.1/lpp_generated/GNSS-RTK-ResidualsReq-r15.c create mode 100644 asn.1/lpp_generated/GNSS-RTK-ResidualsReq-r15.h create mode 100644 asn.1/lpp_generated/GNSS-RTK-ResidualsSupport-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-ResidualsSupport-r15.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-RTK-SatelliteDataElement-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-SatelliteDataElement-r15.h (77%) create mode 100644 asn.1/lpp_generated/GNSS-RTK-SatelliteSignalDataElement-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-SatelliteSignalDataElement-r15.h (78%) create mode 100644 asn.1/lpp_generated/GNSS-RTK-SatelliteSignalDataList-r15.c rename asn.1/{generated => lpp_generated}/GNSS-RTK-SatelliteSignalDataList-r15.h (82%) create mode 100644 asn.1/lpp_generated/GNSS-RealTimeIntegrity.c rename asn.1/{generated => lpp_generated}/GNSS-RealTimeIntegrity.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-RealTimeIntegrityReq.c rename asn.1/{generated => lpp_generated}/GNSS-RealTimeIntegrityReq.h (77%) create mode 100644 asn.1/lpp_generated/GNSS-RealTimeIntegritySupport.c rename asn.1/{generated => lpp_generated}/GNSS-RealTimeIntegritySupport.h (77%) create mode 100644 asn.1/lpp_generated/GNSS-ReferenceLocation.c rename asn.1/{generated => lpp_generated}/GNSS-ReferenceLocation.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-ReferenceLocationReq.c rename asn.1/{generated => lpp_generated}/GNSS-ReferenceLocationReq.h (77%) create mode 100644 asn.1/lpp_generated/GNSS-ReferenceLocationSupport.c rename asn.1/{generated => lpp_generated}/GNSS-ReferenceLocationSupport.h (77%) create mode 100644 asn.1/lpp_generated/GNSS-ReferenceStationID-r15.c rename asn.1/{generated => lpp_generated}/GNSS-ReferenceStationID-r15.h (77%) create mode 100644 asn.1/lpp_generated/GNSS-ReferenceTime.c rename asn.1/{generated => lpp_generated}/GNSS-ReferenceTime.h (81%) create mode 100644 asn.1/lpp_generated/GNSS-ReferenceTimeForOneCell.c rename asn.1/{generated => lpp_generated}/GNSS-ReferenceTimeForOneCell.h (82%) create mode 100644 asn.1/lpp_generated/GNSS-ReferenceTimeReq.c rename asn.1/{generated => lpp_generated}/GNSS-ReferenceTimeReq.h (77%) create mode 100644 asn.1/lpp_generated/GNSS-ReferenceTimeSupport.c rename asn.1/{generated => lpp_generated}/GNSS-ReferenceTimeSupport.h (77%) create mode 100644 asn.1/lpp_generated/GNSS-SSR-ArrayOfCorrectionPoints-r16.c rename asn.1/{generated => lpp_generated}/GNSS-SSR-ArrayOfCorrectionPoints-r16.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-SSR-ClockCorrections-r15.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-ClockCorrections-r15.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsReq-r15.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsReq-r15.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2-r17.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2-r17.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2Req-r17.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2Req-r17.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2Support-r17.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2Support-r17.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSupport-r15.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSupport-r15.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-CodeBias-r15.c rename asn.1/{generated => lpp_generated}/GNSS-SSR-CodeBias-r15.h (81%) create mode 100644 asn.1/lpp_generated/GNSS-SSR-CodeBiasReq-r15.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-CodeBiasReq-r15.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-CodeBiasSupport-r15.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-CodeBiasSupport-r15.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-CorrectionPoints-r16.c rename asn.1/{generated => lpp_generated}/GNSS-SSR-CorrectionPoints-r16.h (88%) create mode 100644 asn.1/lpp_generated/GNSS-SSR-CorrectionPointsReq-r16.c rename asn.1/{generated => lpp_generated}/GNSS-SSR-CorrectionPointsReq-r16.h (76%) create mode 100644 asn.1/lpp_generated/GNSS-SSR-GriddedCorrection-r16.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-GriddedCorrection-r16.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-GriddedCorrectionReq-r16.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-GriddedCorrectionReq-r16.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-GriddedCorrectionSupport-r16.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-GriddedCorrectionSupport-r16.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-IOD-Update-r18.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-IOD-Update-r18.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-IOD-UpdateReq-r18.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-IOD-UpdateReq-r18.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-IOD-UpdateSupport-r18.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-IOD-UpdateSupport-r18.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-ListOfCorrectionPoints-r16.c rename asn.1/{generated => lpp_generated}/GNSS-SSR-ListOfCorrectionPoints-r16.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-SSR-OrbitCorrections-r15.c rename asn.1/{generated => lpp_generated}/GNSS-SSR-OrbitCorrections-r15.h (75%) create mode 100644 asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsReq-r15.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsReq-r15.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2-r17.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2-r17.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2Req-r17.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2Req-r17.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2Support-r17.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2Support-r17.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSupport-r15.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSupport-r15.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-PhaseBias-r16.c rename asn.1/{generated => lpp_generated}/GNSS-SSR-PhaseBias-r16.h (81%) create mode 100644 asn.1/lpp_generated/GNSS-SSR-PhaseBiasReq-r16.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-PhaseBiasReq-r16.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-PhaseBiasSupport-r16.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-PhaseBiasSupport-r16.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-STEC-Correction-r16.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-STEC-Correction-r16.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-STEC-CorrectionReq-r16.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-STEC-CorrectionReq-r16.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-STEC-CorrectionSupport-r16.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-STEC-CorrectionSupport-r16.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-SatellitePCVResiduals-r18.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-SatellitePCVResiduals-r18.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-SatellitePCVResidualsReq-r18.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-SatellitePCVResidualsReq-r18.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-SatellitePCVResidualsSupport-r18.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-SatellitePCVResidualsSupport-r18.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-URA-Req-r16.c rename asn.1/{generated => lpp_generated}/GNSS-SSR-URA-Req-r16.h (76%) create mode 100644 asn.1/lpp_generated/GNSS-SSR-URA-Set2-r17.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-URA-Set2-r17.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-URA-Set2Req-r17.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-URA-Set2Req-r17.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-URA-Set2Support-r17.c create mode 100644 asn.1/lpp_generated/GNSS-SSR-URA-Set2Support-r17.h create mode 100644 asn.1/lpp_generated/GNSS-SSR-URA-Support-r16.c rename asn.1/{generated => lpp_generated}/GNSS-SSR-URA-Support-r16.h (76%) create mode 100644 asn.1/lpp_generated/GNSS-SSR-URA-r16.c rename asn.1/{generated => lpp_generated}/GNSS-SSR-URA-r16.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-SatMeasElement.c rename asn.1/{generated => lpp_generated}/GNSS-SatMeasElement.h (77%) create mode 100644 asn.1/lpp_generated/GNSS-SatMeasList.c rename asn.1/{generated => lpp_generated}/GNSS-SatMeasList.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-SgnMeasElement.c rename asn.1/{generated => lpp_generated}/GNSS-SgnMeasElement.h (77%) create mode 100644 asn.1/lpp_generated/GNSS-SgnMeasList.c rename asn.1/{generated => lpp_generated}/GNSS-SgnMeasList.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-SignalID.c rename asn.1/{generated => lpp_generated}/GNSS-SignalID.h (76%) create mode 100644 asn.1/lpp_generated/GNSS-SignalIDs.c rename asn.1/{generated => lpp_generated}/GNSS-SignalIDs.h (76%) create mode 100644 asn.1/lpp_generated/GNSS-SignalMeasurementInformation.c rename asn.1/{generated => lpp_generated}/GNSS-SignalMeasurementInformation.h (82%) create mode 100644 asn.1/lpp_generated/GNSS-SubNetworkID-r15.c rename asn.1/{generated => lpp_generated}/GNSS-SubNetworkID-r15.h (78%) create mode 100644 asn.1/lpp_generated/GNSS-SupportElement.c create mode 100644 asn.1/lpp_generated/GNSS-SupportElement.h create mode 100644 asn.1/lpp_generated/GNSS-SupportList.c rename asn.1/{generated => lpp_generated}/GNSS-SupportList.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-SystemTime.c create mode 100644 asn.1/lpp_generated/GNSS-SystemTime.h create mode 100644 asn.1/lpp_generated/GNSS-TargetDeviceErrorCauses.c create mode 100644 asn.1/lpp_generated/GNSS-TargetDeviceErrorCauses.h create mode 100644 asn.1/lpp_generated/GNSS-TimeModelElement.c create mode 100644 asn.1/lpp_generated/GNSS-TimeModelElement.h create mode 100644 asn.1/lpp_generated/GNSS-TimeModelElementReq.c rename asn.1/{generated => lpp_generated}/GNSS-TimeModelElementReq.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-TimeModelList.c rename asn.1/{generated => lpp_generated}/GNSS-TimeModelList.h (79%) create mode 100644 asn.1/lpp_generated/GNSS-TimeModelListReq.c rename asn.1/{generated => lpp_generated}/GNSS-TimeModelListReq.h (80%) create mode 100644 asn.1/lpp_generated/GNSS-TimeModelListSupport.c rename asn.1/{generated => lpp_generated}/GNSS-TimeModelListSupport.h (77%) create mode 100644 asn.1/lpp_generated/GNSS-UTC-Model.c rename asn.1/{generated => lpp_generated}/GNSS-UTC-Model.h (86%) create mode 100644 asn.1/lpp_generated/GNSS-UTC-ModelReq.c rename asn.1/{generated => lpp_generated}/GNSS-UTC-ModelReq.h (75%) create mode 100644 asn.1/lpp_generated/GNSS-UTC-ModelSupport.c rename asn.1/{generated => lpp_generated}/GNSS-UTC-ModelSupport.h (80%) create mode 100644 asn.1/lpp_generated/GPS-TOW-Assist.c rename asn.1/{generated => lpp_generated}/GPS-TOW-Assist.h (78%) create mode 100644 asn.1/lpp_generated/GPS-TOW-AssistElement.c rename asn.1/{generated => lpp_generated}/GPS-TOW-AssistElement.h (79%) create mode 100644 asn.1/lpp_generated/Geometric-Ionospheric-Corrections-Differences-Element-r15.c rename asn.1/{generated => lpp_generated}/Geometric-Ionospheric-Corrections-Differences-Element-r15.h (85%) create mode 100644 asn.1/lpp_generated/Geometric-Ionospheric-Corrections-Differences-r15.c rename asn.1/{generated => lpp_generated}/Geometric-Ionospheric-Corrections-Differences-r15.h (83%) create mode 100644 asn.1/lpp_generated/GridElement-r16.c create mode 100644 asn.1/lpp_generated/GridElement-r16.h create mode 100644 asn.1/lpp_generated/GridElement-r18.c create mode 100644 asn.1/lpp_generated/GridElement-r18.h create mode 100644 asn.1/lpp_generated/GridIonElement-r12.c rename asn.1/{generated => lpp_generated}/GridIonElement-r12.h (78%) create mode 100644 asn.1/lpp_generated/GridIonList-r12.c rename asn.1/{generated => lpp_generated}/GridIonList-r12.h (79%) create mode 100644 asn.1/lpp_generated/GridList-r16.c rename asn.1/{generated => lpp_generated}/GridList-r16.h (78%) create mode 100644 asn.1/lpp_generated/GridList-r18.c create mode 100644 asn.1/lpp_generated/GridList-r18.h create mode 100644 asn.1/lpp_generated/HA-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-r16.c create mode 100644 asn.1/lpp_generated/HA-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-r16.h create mode 100644 asn.1/lpp_generated/HA-EllipsoidPointWithScalableUncertaintyEllipse-r16.c create mode 100644 asn.1/lpp_generated/HA-EllipsoidPointWithScalableUncertaintyEllipse-r16.h create mode 100644 asn.1/lpp_generated/HA-GNSS-Metrics-r17.c create mode 100644 asn.1/lpp_generated/HA-GNSS-Metrics-r17.h create mode 100644 asn.1/lpp_generated/HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.c rename asn.1/{generated => lpp_generated}/HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.h (85%) create mode 100644 asn.1/lpp_generated/HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.c rename asn.1/{generated => lpp_generated}/HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.h (83%) create mode 100644 asn.1/lpp_generated/HorizontalAccuracy.c rename asn.1/{generated => lpp_generated}/HorizontalAccuracy.h (78%) create mode 100644 asn.1/lpp_generated/HorizontalAccuracyExt-r15.c rename asn.1/{generated => lpp_generated}/HorizontalAccuracyExt-r15.h (79%) create mode 100644 asn.1/lpp_generated/HorizontalVelocity.c rename asn.1/{generated => lpp_generated}/HorizontalVelocity.h (76%) create mode 100644 asn.1/lpp_generated/HorizontalVelocityWithUncertainty.c rename asn.1/{generated => lpp_generated}/HorizontalVelocityWithUncertainty.h (79%) create mode 100644 asn.1/lpp_generated/HorizontalWithVerticalVelocity.c rename asn.1/{generated => lpp_generated}/HorizontalWithVerticalVelocity.h (84%) create mode 100644 asn.1/lpp_generated/HorizontalWithVerticalVelocityAndUncertainty.c rename asn.1/{generated => lpp_generated}/HorizontalWithVerticalVelocityAndUncertainty.h (86%) create mode 100644 asn.1/lpp_generated/Initiator.c rename asn.1/{generated => lpp_generated}/Initiator.h (77%) create mode 100644 asn.1/lpp_generated/IntegrityInfo-r17.c create mode 100644 asn.1/lpp_generated/IntegrityInfo-r17.h create mode 100644 asn.1/lpp_generated/KlobucharModel2Parameter-r16.c rename asn.1/{generated => lpp_generated}/KlobucharModel2Parameter-r16.h (81%) create mode 100644 asn.1/lpp_generated/KlobucharModelParameter.c rename asn.1/{generated => lpp_generated}/KlobucharModelParameter.h (81%) create mode 100644 asn.1/lpp_generated/LCS-GCS-TranslationParameter-r16.c create mode 100644 asn.1/lpp_generated/LCS-GCS-TranslationParameter-r16.h create mode 100644 asn.1/lpp_generated/LOS-NLOS-Indicator-r17.c create mode 100644 asn.1/lpp_generated/LOS-NLOS-Indicator-r17.h create mode 100644 asn.1/lpp_generated/LOS-NLOS-IndicatorGranularity1-r17.c create mode 100644 asn.1/lpp_generated/LOS-NLOS-IndicatorGranularity1-r17.h create mode 100644 asn.1/lpp_generated/LOS-NLOS-IndicatorGranularity2-r17.c create mode 100644 asn.1/lpp_generated/LOS-NLOS-IndicatorGranularity2-r17.h create mode 100644 asn.1/lpp_generated/LOS-NLOS-IndicatorType1-r17.c create mode 100644 asn.1/lpp_generated/LOS-NLOS-IndicatorType1-r17.h create mode 100644 asn.1/lpp_generated/LOS-NLOS-IndicatorType2-r17.c create mode 100644 asn.1/lpp_generated/LOS-NLOS-IndicatorType2-r17.h create mode 100644 asn.1/lpp_generated/LPP-Message.c create mode 100644 asn.1/lpp_generated/LPP-Message.h create mode 100644 asn.1/lpp_generated/LPP-MessageBody.c rename asn.1/{generated => lpp_generated}/LPP-MessageBody.h (92%) create mode 100644 asn.1/lpp_generated/LPP-TransactionID.c rename asn.1/{generated => lpp_generated}/LPP-TransactionID.h (79%) create mode 100644 asn.1/lpp_generated/Local2dPointWithUncertaintyEllipse-r18.c create mode 100644 asn.1/lpp_generated/Local2dPointWithUncertaintyEllipse-r18.h create mode 100644 asn.1/lpp_generated/Local3dPointWithUncertaintyEllipsoid-r18.c create mode 100644 asn.1/lpp_generated/Local3dPointWithUncertaintyEllipsoid-r18.h create mode 100644 asn.1/lpp_generated/LocalOrigin-r18.c create mode 100644 asn.1/lpp_generated/LocalOrigin-r18.h create mode 100644 asn.1/lpp_generated/LocationCoordinateTypes.c create mode 100644 asn.1/lpp_generated/LocationCoordinateTypes.h create mode 100644 asn.1/lpp_generated/LocationCoordinates.c create mode 100644 asn.1/lpp_generated/LocationCoordinates.h create mode 100644 asn.1/lpp_generated/LocationDataLCI-r14.c create mode 100644 asn.1/lpp_generated/LocationDataLCI-r14.h create mode 100644 asn.1/lpp_generated/LocationError.c rename asn.1/{generated => lpp_generated}/LocationError.h (77%) create mode 100644 asn.1/lpp_generated/LocationFailureCause.c rename asn.1/{generated => lpp_generated}/LocationFailureCause.h (80%) create mode 100644 asn.1/lpp_generated/LocationInformationType.c rename asn.1/{generated => lpp_generated}/LocationInformationType.h (75%) create mode 100644 asn.1/lpp_generated/LocationSource-r13.c create mode 100644 asn.1/lpp_generated/LocationSource-r13.h create mode 100644 asn.1/lpp_generated/LocationUncertainty-r16.c create mode 100644 asn.1/lpp_generated/LocationUncertainty-r16.h create mode 100644 asn.1/lpp_generated/MBS-AcquisitionAssistance-r14.c rename asn.1/{generated => lpp_generated}/MBS-AcquisitionAssistance-r14.h (79%) create mode 100644 asn.1/lpp_generated/MBS-AlmanacAssistance-r14.c rename asn.1/{generated => lpp_generated}/MBS-AlmanacAssistance-r14.h (79%) create mode 100644 asn.1/lpp_generated/MBS-AssistanceDataElement-r14.c create mode 100644 asn.1/lpp_generated/MBS-AssistanceDataElement-r14.h create mode 100644 asn.1/lpp_generated/MBS-AssistanceDataList-r14.c rename asn.1/{generated => lpp_generated}/MBS-AssistanceDataList-r14.h (81%) create mode 100644 asn.1/lpp_generated/MBS-AssistanceDataSupportList-r14.c rename asn.1/{generated => lpp_generated}/MBS-AssistanceDataSupportList-r14.h (81%) create mode 100644 asn.1/lpp_generated/MBS-BeaconMeasElement-r13.c rename asn.1/{generated => lpp_generated}/MBS-BeaconMeasElement-r13.h (80%) create mode 100644 asn.1/lpp_generated/MBS-BeaconMeasList-r13.c rename asn.1/{generated => lpp_generated}/MBS-BeaconMeasList-r13.h (80%) create mode 100644 asn.1/lpp_generated/MeasQuantityResults-r16.c create mode 100644 asn.1/lpp_generated/MeasQuantityResults-r16.h create mode 100644 asn.1/lpp_generated/MeasuredResultsElement.c create mode 100644 asn.1/lpp_generated/MeasuredResultsElement.h create mode 100644 asn.1/lpp_generated/MeasuredResultsList.c rename asn.1/{generated => lpp_generated}/MeasuredResultsList.h (79%) create mode 100644 asn.1/lpp_generated/MeasurementReferenceTime.c rename asn.1/{generated => lpp_generated}/MeasurementReferenceTime.h (86%) create mode 100644 asn.1/lpp_generated/MessageSizeLimitNB-r14.c rename asn.1/{generated => lpp_generated}/MessageSizeLimitNB-r14.h (75%) create mode 100644 asn.1/lpp_generated/MotionTimeSource-r15.c rename asn.1/{generated => lpp_generated}/MotionTimeSource-r15.h (84%) create mode 100644 asn.1/lpp_generated/Multi-RTT-MeasCapabilityPerBand-r17.c create mode 100644 asn.1/lpp_generated/Multi-RTT-MeasCapabilityPerBand-r17.h create mode 100644 asn.1/lpp_generated/NAV-ClockModel.c rename asn.1/{generated => lpp_generated}/NAV-ClockModel.h (78%) create mode 100644 asn.1/lpp_generated/NCGI-r15.c rename asn.1/{generated => lpp_generated}/NCGI-r15.h (81%) create mode 100644 asn.1/lpp_generated/NPRS-Info-r14.c rename asn.1/{generated => lpp_generated}/NPRS-Info-r14.h (95%) create mode 100644 asn.1/lpp_generated/NR-AdditionalPath-r16.c create mode 100644 asn.1/lpp_generated/NR-AdditionalPath-r16.h create mode 100644 asn.1/lpp_generated/NR-AdditionalPathList-r16.c rename asn.1/{generated => lpp_generated}/NR-AdditionalPathList-r16.h (80%) create mode 100644 asn.1/lpp_generated/NR-AdditionalPathListExt-r17.c create mode 100644 asn.1/lpp_generated/NR-AdditionalPathListExt-r17.h create mode 100644 asn.1/lpp_generated/NR-AggregatedDL-PRS-ResourceSetID-Element-r18.c create mode 100644 asn.1/lpp_generated/NR-AggregatedDL-PRS-ResourceSetID-Element-r18.h create mode 100644 asn.1/lpp_generated/NR-Cell-IDs-r17.c create mode 100644 asn.1/lpp_generated/NR-Cell-IDs-r17.h create mode 100644 asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementElement-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementElement-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementElement-r17.c create mode 100644 asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementElement-r17.h create mode 100644 asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurements-r16.c rename asn.1/{generated => lpp_generated}/NR-DL-AoD-AdditionalMeasurements-r16.h (82%) create mode 100644 asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementsExt-r17.c create mode 100644 asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementsExt-r17.h create mode 100644 asn.1/lpp_generated/NR-DL-AoD-Error-r16.c rename asn.1/{generated => lpp_generated}/NR-DL-AoD-Error-r16.h (86%) create mode 100644 asn.1/lpp_generated/NR-DL-AoD-LocationInformation-r16.c rename asn.1/{generated => lpp_generated}/NR-DL-AoD-LocationInformation-r16.h (76%) create mode 100644 asn.1/lpp_generated/NR-DL-AoD-LocationServerErrorCauses-r16.c rename asn.1/{generated => lpp_generated}/NR-DL-AoD-LocationServerErrorCauses-r16.h (76%) create mode 100644 asn.1/lpp_generated/NR-DL-AoD-MeasElement-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-AoD-MeasElement-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-AoD-MeasList-r16.c rename asn.1/{generated => lpp_generated}/NR-DL-AoD-MeasList-r16.h (80%) create mode 100644 asn.1/lpp_generated/NR-DL-AoD-MeasurementCapability-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-AoD-MeasurementCapability-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-AoD-ProvideAssistanceData-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-AoD-ProvideAssistanceData-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-AoD-ProvideCapabilities-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-AoD-ProvideCapabilities-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-AoD-ProvideLocationInformation-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-AoD-ProvideLocationInformation-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-AoD-ReportConfig-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-AoD-ReportConfig-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-AoD-RequestAssistanceData-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-AoD-RequestAssistanceData-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-AoD-RequestCapabilities-r16.c rename asn.1/{generated => lpp_generated}/NR-DL-AoD-RequestCapabilities-r16.h (78%) create mode 100644 asn.1/lpp_generated/NR-DL-AoD-RequestLocationInformation-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-AoD-RequestLocationInformation-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-AoD-SignalMeasurementInformation-r16.c rename asn.1/{generated => lpp_generated}/NR-DL-AoD-SignalMeasurementInformation-r16.h (82%) create mode 100644 asn.1/lpp_generated/NR-DL-AoD-TargetDeviceErrorCauses-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-AoD-TargetDeviceErrorCauses-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-AggregationElement-r18.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-AggregationElement-r18.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-AggregationInfo-r18.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-AggregationInfo-r18.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-AssistanceData-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-AssistanceData-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-AssistanceDataPerFreq-r16.c rename asn.1/{generated => lpp_generated}/NR-DL-PRS-AssistanceDataPerFreq-r16.h (75%) create mode 100644 asn.1/lpp_generated/NR-DL-PRS-AssistanceDataPerTRP-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-AssistanceDataPerTRP-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-BeamInfo-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-BeamInfo-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-BeamInfoPerFreqLayer-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-BeamInfoPerFreqLayer-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-BeamInfoPerTRP-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-BeamInfoPerTRP-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ExpectedAoD-or-AoA-r17.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ExpectedAoD-or-AoA-r17.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-Assistance-r17.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-Assistance-r17.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerFreqLayer-r17.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerFreqLayer-r17.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerResource-r17.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerResource-r17.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerTRP-r17.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerTRP-r17.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-Info-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-Info-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-MeasurementTimeWindowsConfig-r18.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-MeasurementTimeWindowsConfig-r18.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-MeasurementTimeWindowsConfigElement-r18.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-MeasurementTimeWindowsConfigElement-r18.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.c rename asn.1/{generated => lpp_generated}/NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.h (97%) create mode 100644 asn.1/lpp_generated/NR-DL-PRS-PositioningFrequencyLayer-r16.c rename asn.1/{generated => lpp_generated}/NR-DL-PRS-PositioningFrequencyLayer-r16.h (92%) create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ProcessingCapability-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ProcessingCapability-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-QCL-ProcessingCapability-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-QCL-ProcessingCapability-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-Resource-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-Resource-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ResourceID-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ResourceID-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ResourceSet-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ResourceSet-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ResourceSetID-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ResourceSetID-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ResourcesCapability-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-ResourcesCapability-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-SFN0-Offset-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-SFN0-Offset-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-Info-r17.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-Info-r17.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-InfoPerFreqLayer-r17.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-InfoPerFreqLayer-r17.h create mode 100644 asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-InfoPerTRP-r17.c create mode 100644 asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-InfoPerTRP-r17.h create mode 100644 asn.1/lpp_generated/NR-DL-PRSResourcePriorityItem-r17.c create mode 100644 asn.1/lpp_generated/NR-DL-PRSResourcePriorityItem-r17.h create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurementElement-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurementElement-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurements-r16.c rename asn.1/{generated => lpp_generated}/NR-DL-TDOA-AdditionalMeasurements-r16.h (82%) create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurementsExt-r17.c create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurementsExt-r17.h create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-Error-r16.c rename asn.1/{generated => lpp_generated}/NR-DL-TDOA-Error-r16.h (86%) create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-LocationInformation-r16.c rename asn.1/{generated => lpp_generated}/NR-DL-TDOA-LocationInformation-r16.h (76%) create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-LocationServerErrorCauses-r16.c rename asn.1/{generated => lpp_generated}/NR-DL-TDOA-LocationServerErrorCauses-r16.h (76%) create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-MeasElement-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-MeasElement-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-MeasList-r16.c rename asn.1/{generated => lpp_generated}/NR-DL-TDOA-MeasList-r16.h (80%) create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-MeasurementCapability-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-MeasurementCapability-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-ProvideAssistanceData-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-ProvideAssistanceData-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-ProvideCapabilities-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-ProvideCapabilities-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-ProvideLocationInformation-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-ProvideLocationInformation-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-ReportConfig-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-ReportConfig-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-RequestAssistanceData-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-RequestAssistanceData-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-RequestCapabilities-r16.c rename asn.1/{generated => lpp_generated}/NR-DL-TDOA-RequestCapabilities-r16.h (78%) create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-RequestLocationInformation-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-RequestLocationInformation-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-SignalMeasurementInformation-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-SignalMeasurementInformation-r16.h create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-TargetDeviceErrorCauses-r16.c create mode 100644 asn.1/lpp_generated/NR-DL-TDOA-TargetDeviceErrorCauses-r16.h create mode 100644 asn.1/lpp_generated/NR-ECID-Error-r16.c rename asn.1/{generated => lpp_generated}/NR-ECID-Error-r16.h (85%) create mode 100644 asn.1/lpp_generated/NR-ECID-LocationServerErrorCauses-r16.c rename asn.1/{generated => lpp_generated}/NR-ECID-LocationServerErrorCauses-r16.h (84%) create mode 100644 asn.1/lpp_generated/NR-ECID-ProvideCapabilities-r16.c create mode 100644 asn.1/lpp_generated/NR-ECID-ProvideCapabilities-r16.h create mode 100644 asn.1/lpp_generated/NR-ECID-ProvideLocationInformation-r16.c rename asn.1/{generated => lpp_generated}/NR-ECID-ProvideLocationInformation-r16.h (75%) create mode 100644 asn.1/lpp_generated/NR-ECID-RequestCapabilities-r16.c rename asn.1/{generated => lpp_generated}/NR-ECID-RequestCapabilities-r16.h (78%) create mode 100644 asn.1/lpp_generated/NR-ECID-RequestLocationInformation-r16.c rename asn.1/{generated => lpp_generated}/NR-ECID-RequestLocationInformation-r16.h (86%) create mode 100644 asn.1/lpp_generated/NR-ECID-SignalMeasurementInformation-r16.c rename asn.1/{generated => lpp_generated}/NR-ECID-SignalMeasurementInformation-r16.h (78%) create mode 100644 asn.1/lpp_generated/NR-ECID-TargetDeviceErrorCauses-r16.c create mode 100644 asn.1/lpp_generated/NR-ECID-TargetDeviceErrorCauses-r16.h create mode 100644 asn.1/lpp_generated/NR-IntegrityBeamInfoBounds-r18.c create mode 100644 asn.1/lpp_generated/NR-IntegrityBeamInfoBounds-r18.h create mode 100644 asn.1/lpp_generated/NR-IntegrityBeamPowerBounds-r18.c create mode 100644 asn.1/lpp_generated/NR-IntegrityBeamPowerBounds-r18.h create mode 100644 asn.1/lpp_generated/NR-IntegrityLocationBounds-r18.c create mode 100644 asn.1/lpp_generated/NR-IntegrityLocationBounds-r18.h create mode 100644 asn.1/lpp_generated/NR-IntegrityParametersDL-PRS-BeamInfo-r18.c create mode 100644 asn.1/lpp_generated/NR-IntegrityParametersDL-PRS-BeamInfo-r18.h create mode 100644 asn.1/lpp_generated/NR-IntegrityParametersRTD-Info-r18.c create mode 100644 asn.1/lpp_generated/NR-IntegrityParametersRTD-Info-r18.h create mode 100644 asn.1/lpp_generated/NR-IntegrityParametersTRP-BeamAntennaInfo-r18.c create mode 100644 asn.1/lpp_generated/NR-IntegrityParametersTRP-BeamAntennaInfo-r18.h create mode 100644 asn.1/lpp_generated/NR-IntegrityParametersTRP-LocationInfo-r18.c create mode 100644 asn.1/lpp_generated/NR-IntegrityParametersTRP-LocationInfo-r18.h create mode 100644 asn.1/lpp_generated/NR-IntegrityRTD-InfoBounds-r18.c create mode 100644 asn.1/lpp_generated/NR-IntegrityRTD-InfoBounds-r18.h create mode 100644 asn.1/lpp_generated/NR-IntegrityRiskParameters-r18.c create mode 100644 asn.1/lpp_generated/NR-IntegrityRiskParameters-r18.h create mode 100644 asn.1/lpp_generated/NR-IntegrityServiceAlert-r18.c create mode 100644 asn.1/lpp_generated/NR-IntegrityServiceAlert-r18.h create mode 100644 asn.1/lpp_generated/NR-IntegrityServiceParameters-r18.c create mode 100644 asn.1/lpp_generated/NR-IntegrityServiceParameters-r18.h create mode 100644 asn.1/lpp_generated/NR-MeasuredResultsElement-r16.c create mode 100644 asn.1/lpp_generated/NR-MeasuredResultsElement-r16.h create mode 100644 asn.1/lpp_generated/NR-MeasuredResultsList-r16.c rename asn.1/{generated => lpp_generated}/NR-MeasuredResultsList-r16.h (81%) create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurementElement-r16.c create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurementElement-r16.h create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurements-r16.c rename asn.1/{generated => lpp_generated}/NR-Multi-RTT-AdditionalMeasurements-r16.h (82%) create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurementsExt-r17.c create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurementsExt-r17.h create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-Error-r16.c rename asn.1/{generated => lpp_generated}/NR-Multi-RTT-Error-r16.h (86%) create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-LocationServerErrorCauses-r16.c rename asn.1/{generated => lpp_generated}/NR-Multi-RTT-LocationServerErrorCauses-r16.h (75%) create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-MeasElement-r16.c create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-MeasElement-r16.h create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-MeasList-r16.c rename asn.1/{generated => lpp_generated}/NR-Multi-RTT-MeasList-r16.h (80%) create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-MeasurementCapability-r16.c create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-MeasurementCapability-r16.h create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-ProvideAssistanceData-r16.c create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-ProvideAssistanceData-r16.h create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-ProvideCapabilities-r16.c create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-ProvideCapabilities-r16.h create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-ProvideLocationInformation-r16.c create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-ProvideLocationInformation-r16.h create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-ReportConfig-r16.c create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-ReportConfig-r16.h create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-RequestAssistanceData-r16.c create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-RequestAssistanceData-r16.h create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-RequestCapabilities-r16.c rename asn.1/{generated => lpp_generated}/NR-Multi-RTT-RequestCapabilities-r16.h (78%) create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-RequestLocationInformation-r16.c create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-RequestLocationInformation-r16.h create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-SignalMeasurementInformation-r16.c create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-SignalMeasurementInformation-r16.h create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-TargetDeviceErrorCauses-r16.c create mode 100644 asn.1/lpp_generated/NR-Multi-RTT-TargetDeviceErrorCauses-r16.h create mode 100644 asn.1/lpp_generated/NR-MutingPattern-r16.c create mode 100644 asn.1/lpp_generated/NR-MutingPattern-r16.h create mode 100644 asn.1/lpp_generated/NR-NTN-UE-RxTxMeasurements-r18.c create mode 100644 asn.1/lpp_generated/NR-NTN-UE-RxTxMeasurements-r18.h create mode 100644 asn.1/lpp_generated/NR-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17.c create mode 100644 asn.1/lpp_generated/NR-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17.h create mode 100644 asn.1/lpp_generated/NR-On-Demand-DL-PRS-Configurations-r17.c create mode 100644 asn.1/lpp_generated/NR-On-Demand-DL-PRS-Configurations-r17.h create mode 100644 asn.1/lpp_generated/NR-On-Demand-DL-PRS-Information-r17.c create mode 100644 asn.1/lpp_generated/NR-On-Demand-DL-PRS-Information-r17.h create mode 100644 asn.1/lpp_generated/NR-On-Demand-DL-PRS-PerFreqLayer-r17.c create mode 100644 asn.1/lpp_generated/NR-On-Demand-DL-PRS-PerFreqLayer-r17.h create mode 100644 asn.1/lpp_generated/NR-On-Demand-DL-PRS-Request-r17.c create mode 100644 asn.1/lpp_generated/NR-On-Demand-DL-PRS-Request-r17.h create mode 100644 asn.1/lpp_generated/NR-On-Demand-DL-PRS-Support-r17.c create mode 100644 asn.1/lpp_generated/NR-On-Demand-DL-PRS-Support-r17.h create mode 100644 asn.1/lpp_generated/NR-OnDemandDL-PRS-AggregationReqElement-r18.c create mode 100644 asn.1/lpp_generated/NR-OnDemandDL-PRS-AggregationReqElement-r18.h create mode 100644 asn.1/lpp_generated/NR-PRU-DL-Info-r18.c create mode 100644 asn.1/lpp_generated/NR-PRU-DL-Info-r18.h create mode 100644 asn.1/lpp_generated/NR-PRU-RSCP-AdditionalMeasurementElement-r18.c create mode 100644 asn.1/lpp_generated/NR-PRU-RSCP-AdditionalMeasurementElement-r18.h create mode 100644 asn.1/lpp_generated/NR-PRU-RSCP-AdditionalMeasurements-r18.c create mode 100644 asn.1/lpp_generated/NR-PRU-RSCP-AdditionalMeasurements-r18.h create mode 100644 asn.1/lpp_generated/NR-PRU-RSCP-MeasElement-r18.c create mode 100644 asn.1/lpp_generated/NR-PRU-RSCP-MeasElement-r18.h create mode 100644 asn.1/lpp_generated/NR-PRU-RSCP-MeasurementInformation-r18.c create mode 100644 asn.1/lpp_generated/NR-PRU-RSCP-MeasurementInformation-r18.h create mode 100644 asn.1/lpp_generated/NR-PeriodicAssistData-r18.c create mode 100644 asn.1/lpp_generated/NR-PeriodicAssistData-r18.h create mode 100644 asn.1/lpp_generated/NR-PeriodicAssistDataReq-r18.c create mode 100644 asn.1/lpp_generated/NR-PeriodicAssistDataReq-r18.h create mode 100644 asn.1/lpp_generated/NR-PeriodicControlParam-r18.c create mode 100644 asn.1/lpp_generated/NR-PeriodicControlParam-r18.h create mode 100644 asn.1/lpp_generated/NR-PhaseQuality-r18.c create mode 100644 asn.1/lpp_generated/NR-PhaseQuality-r18.h create mode 100644 asn.1/lpp_generated/NR-PhysCellID-r16.c create mode 100644 asn.1/lpp_generated/NR-PhysCellID-r16.h create mode 100644 asn.1/lpp_generated/NR-PositionCalculationAssistance-r16.c create mode 100644 asn.1/lpp_generated/NR-PositionCalculationAssistance-r16.h create mode 100644 asn.1/lpp_generated/NR-RSCP-AdditionalMeasurements-r18.c create mode 100644 asn.1/lpp_generated/NR-RSCP-AdditionalMeasurements-r18.h create mode 100644 asn.1/lpp_generated/NR-RSCPD-AdditionalMeasurementSamplesElement-r18.c create mode 100644 asn.1/lpp_generated/NR-RSCPD-AdditionalMeasurementSamplesElement-r18.h create mode 100644 asn.1/lpp_generated/NR-RTD-Info-r16.c rename asn.1/{generated => lpp_generated}/NR-RTD-Info-r16.h (79%) create mode 100644 asn.1/lpp_generated/NR-SRS-TxTEG-Element-r17.c create mode 100644 asn.1/lpp_generated/NR-SRS-TxTEG-Element-r17.h create mode 100644 asn.1/lpp_generated/NR-SSB-Config-r16.c create mode 100644 asn.1/lpp_generated/NR-SSB-Config-r16.h create mode 100644 asn.1/lpp_generated/NR-SelectedDL-PRS-IndexList-r16.c create mode 100644 asn.1/lpp_generated/NR-SelectedDL-PRS-IndexList-r16.h create mode 100644 asn.1/lpp_generated/NR-SelectedDL-PRS-IndexPerTRP-r16.c create mode 100644 asn.1/lpp_generated/NR-SelectedDL-PRS-IndexPerTRP-r16.h create mode 100644 asn.1/lpp_generated/NR-SelectedDL-PRS-IndexPerTRP-r18.c create mode 100644 asn.1/lpp_generated/NR-SelectedDL-PRS-IndexPerTRP-r18.h create mode 100644 asn.1/lpp_generated/NR-SelectedDL-PRS-PerFreq-r16.c rename asn.1/{generated => lpp_generated}/NR-SelectedDL-PRS-PerFreq-r16.h (78%) create mode 100644 asn.1/lpp_generated/NR-TRP-BeamAntennaAngles-r17.c create mode 100644 asn.1/lpp_generated/NR-TRP-BeamAntennaAngles-r17.h create mode 100644 asn.1/lpp_generated/NR-TRP-BeamAntennaInfo-r17.c create mode 100644 asn.1/lpp_generated/NR-TRP-BeamAntennaInfo-r17.h create mode 100644 asn.1/lpp_generated/NR-TRP-BeamAntennaInfoAzimuthElevation-r17.c create mode 100644 asn.1/lpp_generated/NR-TRP-BeamAntennaInfoAzimuthElevation-r17.h create mode 100644 asn.1/lpp_generated/NR-TRP-BeamAntennaInfoPerFreqLayer-r17.c create mode 100644 asn.1/lpp_generated/NR-TRP-BeamAntennaInfoPerFreqLayer-r17.h create mode 100644 asn.1/lpp_generated/NR-TRP-BeamAntennaInfoPerTRP-r17.c create mode 100644 asn.1/lpp_generated/NR-TRP-BeamAntennaInfoPerTRP-r17.h create mode 100644 asn.1/lpp_generated/NR-TRP-IntegrityServiceAlertElement-r18.c create mode 100644 asn.1/lpp_generated/NR-TRP-IntegrityServiceAlertElement-r18.h create mode 100644 asn.1/lpp_generated/NR-TRP-IntegrityServiceAlertPerFreqLayer-r18.c create mode 100644 asn.1/lpp_generated/NR-TRP-IntegrityServiceAlertPerFreqLayer-r18.h create mode 100644 asn.1/lpp_generated/NR-TRP-LocationInfo-r16.c rename asn.1/{generated => lpp_generated}/NR-TRP-LocationInfo-r16.h (80%) create mode 100644 asn.1/lpp_generated/NR-TRP-LocationInfoPerFreqLayer-r16.c rename asn.1/{generated => lpp_generated}/NR-TRP-LocationInfoPerFreqLayer-r16.h (80%) create mode 100644 asn.1/lpp_generated/NR-TimeStamp-r16.c create mode 100644 asn.1/lpp_generated/NR-TimeStamp-r16.h create mode 100644 asn.1/lpp_generated/NR-TimingQuality-r16.c create mode 100644 asn.1/lpp_generated/NR-TimingQuality-r16.h create mode 100644 asn.1/lpp_generated/NR-UE-RxTx-TEG-Info-r17.c create mode 100644 asn.1/lpp_generated/NR-UE-RxTx-TEG-Info-r17.h create mode 100644 asn.1/lpp_generated/NR-UE-TEG-Capability-r17.c create mode 100644 asn.1/lpp_generated/NR-UE-TEG-Capability-r17.h create mode 100644 asn.1/lpp_generated/NR-UE-TEG-ID-CapabilityPerBand-r17.c create mode 100644 asn.1/lpp_generated/NR-UE-TEG-ID-CapabilityPerBand-r17.h create mode 100644 asn.1/lpp_generated/NR-UL-ProvideCapabilities-r16.c create mode 100644 asn.1/lpp_generated/NR-UL-ProvideCapabilities-r16.h create mode 100644 asn.1/lpp_generated/NR-UL-RequestCapabilities-r16.c rename asn.1/{generated => lpp_generated}/NR-UL-RequestCapabilities-r16.h (77%) create mode 100644 asn.1/lpp_generated/NR-UL-SRS-Capability-r16.c create mode 100644 asn.1/lpp_generated/NR-UL-SRS-Capability-r16.h create mode 100644 asn.1/lpp_generated/NR-linkedDL-PRS-ResourceSetID-PRS-AggregationList-r18.c create mode 100644 asn.1/lpp_generated/NR-linkedDL-PRS-ResourceSetID-PRS-AggregationList-r18.h create mode 100644 asn.1/lpp_generated/NavIC-CDC-r16.c rename asn.1/{generated => lpp_generated}/NavIC-CDC-r16.h (78%) create mode 100644 asn.1/lpp_generated/NavIC-ClockModel-r16.c rename asn.1/{generated => lpp_generated}/NavIC-ClockModel-r16.h (79%) create mode 100644 asn.1/lpp_generated/NavIC-CorrectionElementAutoNav-r16.c rename asn.1/{generated => lpp_generated}/NavIC-CorrectionElementAutoNav-r16.h (83%) create mode 100644 asn.1/lpp_generated/NavIC-CorrectionListAutoNav-r16.c rename asn.1/{generated => lpp_generated}/NavIC-CorrectionListAutoNav-r16.h (81%) create mode 100644 asn.1/lpp_generated/NavIC-DifferentialCorrections-r16.c rename asn.1/{generated => lpp_generated}/NavIC-DifferentialCorrections-r16.h (82%) create mode 100644 asn.1/lpp_generated/NavIC-DifferentialCorrectionsReq-r16.c rename asn.1/{generated => lpp_generated}/NavIC-DifferentialCorrectionsReq-r16.h (81%) create mode 100644 asn.1/lpp_generated/NavIC-DifferentialCorrectionsSupport-r16.c rename asn.1/{generated => lpp_generated}/NavIC-DifferentialCorrectionsSupport-r16.h (81%) create mode 100644 asn.1/lpp_generated/NavIC-EDC-r16.c rename asn.1/{generated => lpp_generated}/NavIC-EDC-r16.h (80%) create mode 100644 asn.1/lpp_generated/NavIC-GridModelParameter-r16.c rename asn.1/{generated => lpp_generated}/NavIC-GridModelParameter-r16.h (81%) create mode 100644 asn.1/lpp_generated/NavIC-GridModelReq-r16.c rename asn.1/{generated => lpp_generated}/NavIC-GridModelReq-r16.h (76%) create mode 100644 asn.1/lpp_generated/NavIC-GridModelSupport-r16.c rename asn.1/{generated => lpp_generated}/NavIC-GridModelSupport-r16.h (77%) create mode 100644 asn.1/lpp_generated/NavModel-BDS-KeplerianSet-r12.c rename asn.1/{generated => lpp_generated}/NavModel-BDS-KeplerianSet-r12.h (85%) create mode 100644 asn.1/lpp_generated/NavModel-BDS-KeplerianSet2-r16.c rename asn.1/{generated => lpp_generated}/NavModel-BDS-KeplerianSet2-r16.h (84%) create mode 100644 asn.1/lpp_generated/NavModel-GLONASS-ECEF.c rename asn.1/{generated => lpp_generated}/NavModel-GLONASS-ECEF.h (82%) create mode 100644 asn.1/lpp_generated/NavModel-NavIC-KeplerianSet-r16.c create mode 100644 asn.1/lpp_generated/NavModel-NavIC-KeplerianSet-r16.h create mode 100644 asn.1/lpp_generated/NavModel-SBAS-ECEF.c rename asn.1/{generated => lpp_generated}/NavModel-SBAS-ECEF.h (79%) create mode 100644 asn.1/lpp_generated/NavModelCNAV-KeplerianSet.c rename asn.1/{generated => lpp_generated}/NavModelCNAV-KeplerianSet.h (84%) create mode 100644 asn.1/lpp_generated/NavModelKeplerianSet.c rename asn.1/{generated => lpp_generated}/NavModelKeplerianSet.h (84%) create mode 100644 asn.1/lpp_generated/NavModelNAV-KeplerianSet.c rename asn.1/{generated => lpp_generated}/NavModelNAV-KeplerianSet.h (88%) create mode 100644 asn.1/lpp_generated/NeQuickModelParameter.c create mode 100644 asn.1/lpp_generated/NeQuickModelParameter.h create mode 100644 asn.1/lpp_generated/NeighbourMeasurementElement-NB-r14.c create mode 100644 asn.1/lpp_generated/NeighbourMeasurementElement-NB-r14.h create mode 100644 asn.1/lpp_generated/NeighbourMeasurementElement.c create mode 100644 asn.1/lpp_generated/NeighbourMeasurementElement.h create mode 100644 asn.1/lpp_generated/NeighbourMeasurementList-NB-r14.c rename asn.1/{generated => lpp_generated}/NeighbourMeasurementList-NB-r14.h (81%) create mode 100644 asn.1/lpp_generated/NeighbourMeasurementList.c rename asn.1/{generated => lpp_generated}/NeighbourMeasurementList.h (80%) create mode 100644 asn.1/lpp_generated/NetworkTime.c rename asn.1/{generated => lpp_generated}/NetworkTime.h (86%) create mode 100644 asn.1/lpp_generated/OLPC-SRS-Pos-r16.c create mode 100644 asn.1/lpp_generated/OLPC-SRS-Pos-r16.h create mode 100644 asn.1/lpp_generated/ORBIT-IntegrityParameters-r17.c create mode 100644 asn.1/lpp_generated/ORBIT-IntegrityParameters-r17.h create mode 100644 asn.1/lpp_generated/OTDOA-Error.c rename asn.1/{generated => lpp_generated}/OTDOA-Error.h (84%) create mode 100644 asn.1/lpp_generated/OTDOA-LocationServerErrorCauses.c rename asn.1/{generated => lpp_generated}/OTDOA-LocationServerErrorCauses.h (85%) create mode 100644 asn.1/lpp_generated/OTDOA-MeasQuality.c rename asn.1/{generated => lpp_generated}/OTDOA-MeasQuality.h (75%) create mode 100644 asn.1/lpp_generated/OTDOA-NeighbourCellInfoElement.c rename asn.1/{generated => lpp_generated}/OTDOA-NeighbourCellInfoElement.h (81%) create mode 100644 asn.1/lpp_generated/OTDOA-NeighbourCellInfoList.c rename asn.1/{generated => lpp_generated}/OTDOA-NeighbourCellInfoList.h (81%) create mode 100644 asn.1/lpp_generated/OTDOA-NeighbourCellInfoListNB-r14.c rename asn.1/{generated => lpp_generated}/OTDOA-NeighbourCellInfoListNB-r14.h (82%) create mode 100644 asn.1/lpp_generated/OTDOA-NeighbourCellInfoNB-r14.c create mode 100644 asn.1/lpp_generated/OTDOA-NeighbourCellInfoNB-r14.h create mode 100644 asn.1/lpp_generated/OTDOA-NeighbourFreqInfo.c rename asn.1/{generated => lpp_generated}/OTDOA-NeighbourFreqInfo.h (80%) create mode 100644 asn.1/lpp_generated/OTDOA-ProvideAssistanceData.c create mode 100644 asn.1/lpp_generated/OTDOA-ProvideAssistanceData.h create mode 100644 asn.1/lpp_generated/OTDOA-ProvideCapabilities.c rename asn.1/{generated => lpp_generated}/OTDOA-ProvideCapabilities.h (85%) create mode 100644 asn.1/lpp_generated/OTDOA-ProvideLocationInformation.c rename asn.1/{generated => lpp_generated}/OTDOA-ProvideLocationInformation.h (75%) create mode 100644 asn.1/lpp_generated/OTDOA-ReferenceCellInfo.c rename asn.1/{generated => lpp_generated}/OTDOA-ReferenceCellInfo.h (81%) create mode 100644 asn.1/lpp_generated/OTDOA-ReferenceCellInfoNB-r14.c create mode 100644 asn.1/lpp_generated/OTDOA-ReferenceCellInfoNB-r14.h create mode 100644 asn.1/lpp_generated/OTDOA-RequestAssistanceData.c rename asn.1/{generated => lpp_generated}/OTDOA-RequestAssistanceData.h (81%) create mode 100644 asn.1/lpp_generated/OTDOA-RequestCapabilities.c rename asn.1/{generated => lpp_generated}/OTDOA-RequestCapabilities.h (77%) create mode 100644 asn.1/lpp_generated/OTDOA-RequestLocationInformation.c rename asn.1/{generated => lpp_generated}/OTDOA-RequestLocationInformation.h (84%) create mode 100644 asn.1/lpp_generated/OTDOA-SignalMeasurementInformation-NB-r14.c create mode 100644 asn.1/lpp_generated/OTDOA-SignalMeasurementInformation-NB-r14.h create mode 100644 asn.1/lpp_generated/OTDOA-SignalMeasurementInformation.c create mode 100644 asn.1/lpp_generated/OTDOA-SignalMeasurementInformation.h create mode 100644 asn.1/lpp_generated/OTDOA-TargetDeviceErrorCauses.c rename asn.1/{generated => lpp_generated}/OTDOA-TargetDeviceErrorCauses.h (86%) create mode 100644 asn.1/lpp_generated/On-Demand-DL-PRS-Configuration-r17.c create mode 100644 asn.1/lpp_generated/On-Demand-DL-PRS-Configuration-r17.h create mode 100644 asn.1/lpp_generated/OnDemandDL-PRS-AggregationInfo-r18.c create mode 100644 asn.1/lpp_generated/OnDemandDL-PRS-AggregationInfo-r18.h create mode 100644 asn.1/lpp_generated/PRS-BWA-ThreeContiguousIntrabandInMG-r18.c create mode 100644 asn.1/lpp_generated/PRS-BWA-ThreeContiguousIntrabandInMG-r18.h create mode 100644 asn.1/lpp_generated/PRS-BWA-TwoContiguousIntrabandInMG-r18.c create mode 100644 asn.1/lpp_generated/PRS-BWA-TwoContiguousIntrabandInMG-r18.h create mode 100644 asn.1/lpp_generated/PRS-Info-NB-r14.c rename asn.1/{generated => lpp_generated}/PRS-Info-NB-r14.h (78%) create mode 100644 asn.1/lpp_generated/PRS-Info.c rename asn.1/{generated => lpp_generated}/PRS-Info.h (92%) create mode 100644 asn.1/lpp_generated/PRS-ProcessingCapabilityOutsideMGinPPWperType-r17.c create mode 100644 asn.1/lpp_generated/PRS-ProcessingCapabilityOutsideMGinPPWperType-r17.h create mode 100644 asn.1/lpp_generated/PRS-ProcessingCapabilityPerBand-r16.c create mode 100644 asn.1/lpp_generated/PRS-ProcessingCapabilityPerBand-r16.h create mode 100644 asn.1/lpp_generated/PeriodicAssistanceDataControlParameters-r15.c rename asn.1/{generated => lpp_generated}/PeriodicAssistanceDataControlParameters-r15.h (80%) create mode 100644 asn.1/lpp_generated/PeriodicSessionID-r15.c rename asn.1/{generated => lpp_generated}/PeriodicSessionID-r15.h (85%) rename asn.1/{generated => lpp_generated}/PeriodicalReportingCriteria.c (75%) rename asn.1/{generated => lpp_generated}/PeriodicalReportingCriteria.h (89%) create mode 100644 asn.1/lpp_generated/PhysicalReferenceStationInfo-r15.c rename asn.1/{generated => lpp_generated}/PhysicalReferenceStationInfo-r15.h (79%) create mode 100644 asn.1/lpp_generated/Polygon.c rename asn.1/{generated => lpp_generated}/Polygon.h (77%) create mode 100644 asn.1/lpp_generated/PolygonPoints.c rename asn.1/{generated => lpp_generated}/PolygonPoints.h (81%) create mode 100644 asn.1/lpp_generated/PosSRS-BWA-IndependentCA-RRC-Connected-r18.c create mode 100644 asn.1/lpp_generated/PosSRS-BWA-IndependentCA-RRC-Connected-r18.h create mode 100644 asn.1/lpp_generated/PosSRS-BWA-RRC-Connected-r18.c create mode 100644 asn.1/lpp_generated/PosSRS-BWA-RRC-Connected-r18.h create mode 100644 asn.1/lpp_generated/PosSRS-BWA-RRC-Inactive-r18.c create mode 100644 asn.1/lpp_generated/PosSRS-BWA-RRC-Inactive-r18.h create mode 100644 asn.1/lpp_generated/PosSRS-RRC-Inactive-InInitialUL-BWP-r17.c create mode 100644 asn.1/lpp_generated/PosSRS-RRC-Inactive-InInitialUL-BWP-r17.h create mode 100644 asn.1/lpp_generated/PosSRS-RRC-Inactive-OutsideInitialUL-BWP-r17.c create mode 100644 asn.1/lpp_generated/PosSRS-RRC-Inactive-OutsideInitialUL-BWP-r17.h create mode 100644 asn.1/lpp_generated/PosSRS-SP-RRC-Inactive-InInitialUL-BWP-r17.c create mode 100644 asn.1/lpp_generated/PosSRS-SP-RRC-Inactive-InInitialUL-BWP-r17.h create mode 100644 asn.1/lpp_generated/PosSRS-TxFrequencyHoppingRRC-Connected-r18.c create mode 100644 asn.1/lpp_generated/PosSRS-TxFrequencyHoppingRRC-Connected-r18.h create mode 100644 asn.1/lpp_generated/PosSRS-TxFrequencyHoppingRRC-Inactive-r18.c create mode 100644 asn.1/lpp_generated/PosSRS-TxFrequencyHoppingRRC-Inactive-r18.h create mode 100644 asn.1/lpp_generated/PositioningModes.c rename asn.1/{generated => lpp_generated}/PositioningModes.h (81%) create mode 100644 asn.1/lpp_generated/PressureValidityArea-v1520.c rename asn.1/{generated => lpp_generated}/PressureValidityArea-v1520.h (81%) create mode 100644 asn.1/lpp_generated/PressureValidityPeriod-v1520.c rename asn.1/{generated => lpp_generated}/PressureValidityPeriod-v1520.h (78%) create mode 100644 asn.1/lpp_generated/ProvideAssistanceData-r9-IEs.c create mode 100644 asn.1/lpp_generated/ProvideAssistanceData-r9-IEs.h create mode 100644 asn.1/lpp_generated/ProvideAssistanceData.c rename asn.1/{generated => lpp_generated}/ProvideAssistanceData.h (91%) create mode 100644 asn.1/lpp_generated/ProvideCapabilities-r9-IEs.c create mode 100644 asn.1/lpp_generated/ProvideCapabilities-r9-IEs.h create mode 100644 asn.1/lpp_generated/ProvideCapabilities.c rename asn.1/{generated => lpp_generated}/ProvideCapabilities.h (90%) create mode 100644 asn.1/lpp_generated/ProvideLocationInformation-r9-IEs.c create mode 100644 asn.1/lpp_generated/ProvideLocationInformation-r9-IEs.h create mode 100644 asn.1/lpp_generated/ProvideLocationInformation.c rename asn.1/{generated => lpp_generated}/ProvideLocationInformation.h (91%) create mode 100644 asn.1/lpp_generated/QoS.c create mode 100644 asn.1/lpp_generated/QoS.h create mode 100644 asn.1/lpp_generated/RAC-OrbitalErrorComponents-r17.c create mode 100644 asn.1/lpp_generated/RAC-OrbitalErrorComponents-r17.h create mode 100644 asn.1/lpp_generated/RTD-InfoElement-r16.c create mode 100644 asn.1/lpp_generated/RTD-InfoElement-r16.h create mode 100644 asn.1/lpp_generated/RTD-InfoList-r16.c rename asn.1/{generated => lpp_generated}/RTD-InfoList-r16.h (79%) create mode 100644 asn.1/lpp_generated/RTD-InfoListPerFreqLayer-r16.c rename asn.1/{generated => lpp_generated}/RTD-InfoListPerFreqLayer-r16.h (81%) create mode 100644 asn.1/lpp_generated/RTK-CorrectionDifferencesElement-r15.c rename asn.1/{generated => lpp_generated}/RTK-CorrectionDifferencesElement-r15.h (84%) create mode 100644 asn.1/lpp_generated/RTK-CorrectionDifferencesList-r15.c rename asn.1/{generated => lpp_generated}/RTK-CorrectionDifferencesList-r15.h (82%) create mode 100644 asn.1/lpp_generated/RTK-Residuals-Element-r15.c rename asn.1/{generated => lpp_generated}/RTK-Residuals-Element-r15.h (80%) create mode 100644 asn.1/lpp_generated/RTK-Residuals-List-r15.c rename asn.1/{generated => lpp_generated}/RTK-Residuals-List-r15.h (80%) create mode 100644 asn.1/lpp_generated/ReferencePoint-r16.c rename asn.1/{generated => lpp_generated}/ReferencePoint-r16.h (83%) create mode 100644 asn.1/lpp_generated/ReferenceStationList-r16.c rename asn.1/{generated => lpp_generated}/ReferenceStationList-r16.h (80%) create mode 100644 asn.1/lpp_generated/ReferenceTRP-RTD-Info-r16.c create mode 100644 asn.1/lpp_generated/ReferenceTRP-RTD-Info-r16.h create mode 100644 asn.1/lpp_generated/RegionIgpElement-r16.c rename asn.1/{generated => lpp_generated}/RegionIgpElement-r16.h (85%) create mode 100644 asn.1/lpp_generated/RegionIgpList-r16.c rename asn.1/{generated => lpp_generated}/RegionIgpList-r16.h (79%) create mode 100644 asn.1/lpp_generated/RelativeCartesianLocation-r18.c create mode 100644 asn.1/lpp_generated/RelativeCartesianLocation-r18.h create mode 100644 asn.1/lpp_generated/RelativeLocation-r16.c rename asn.1/{generated => lpp_generated}/RelativeLocation-r16.h (87%) create mode 100644 asn.1/lpp_generated/RelativeLocationElement-r16.c create mode 100644 asn.1/lpp_generated/RelativeLocationElement-r16.h create mode 100644 asn.1/lpp_generated/ReportingDuration.c create mode 100644 asn.1/lpp_generated/ReportingDuration.h create mode 100644 asn.1/lpp_generated/ReqNavListInfo.c rename asn.1/{generated => lpp_generated}/ReqNavListInfo.h (82%) create mode 100644 asn.1/lpp_generated/RequestAssistanceData-r9-IEs.c create mode 100644 asn.1/lpp_generated/RequestAssistanceData-r9-IEs.h create mode 100644 asn.1/lpp_generated/RequestAssistanceData.c rename asn.1/{generated => lpp_generated}/RequestAssistanceData.h (91%) create mode 100644 asn.1/lpp_generated/RequestCapabilities-r9-IEs.c create mode 100644 asn.1/lpp_generated/RequestCapabilities-r9-IEs.h create mode 100644 asn.1/lpp_generated/RequestCapabilities.c rename asn.1/{generated => lpp_generated}/RequestCapabilities.h (90%) create mode 100644 asn.1/lpp_generated/RequestLocationInformation-r9-IEs.c create mode 100644 asn.1/lpp_generated/RequestLocationInformation-r9-IEs.h create mode 100644 asn.1/lpp_generated/RequestLocationInformation.c rename asn.1/{generated => lpp_generated}/RequestLocationInformation.h (91%) create mode 100644 asn.1/lpp_generated/ResponseTime.c rename asn.1/{generated => lpp_generated}/ResponseTime.h (75%) create mode 100644 asn.1/lpp_generated/ResponseTimeNB-r14.c rename asn.1/{generated => lpp_generated}/ResponseTimeNB-r14.h (80%) create mode 100644 asn.1/lpp_generated/ResultsPerCSI-RS-Index-r16.c create mode 100644 asn.1/lpp_generated/ResultsPerCSI-RS-Index-r16.h create mode 100644 asn.1/lpp_generated/ResultsPerCSI-RS-IndexList-r16.c rename asn.1/{generated => lpp_generated}/ResultsPerCSI-RS-IndexList-r16.h (81%) create mode 100644 asn.1/lpp_generated/ResultsPerSSB-Index-r16.c create mode 100644 asn.1/lpp_generated/ResultsPerSSB-Index-r16.h create mode 100644 asn.1/lpp_generated/ResultsPerSSB-IndexList-r16.c rename asn.1/{generated => lpp_generated}/ResultsPerSSB-IndexList-r16.h (81%) create mode 100644 asn.1/lpp_generated/RxTxTEG-TimingErrorMargin-r17.c create mode 100644 asn.1/lpp_generated/RxTxTEG-TimingErrorMargin-r17.h create mode 100644 asn.1/lpp_generated/SBAS-ClockModel.c rename asn.1/{generated => lpp_generated}/SBAS-ClockModel.h (78%) create mode 100644 asn.1/lpp_generated/SBAS-ID.c rename asn.1/{generated => lpp_generated}/SBAS-ID.h (81%) create mode 100644 asn.1/lpp_generated/SBAS-IDs.c rename asn.1/{generated => lpp_generated}/SBAS-IDs.h (80%) create mode 100644 asn.1/lpp_generated/SFN-r15.c create mode 100644 asn.1/lpp_generated/SFN-r15.h create mode 100644 asn.1/lpp_generated/SRS-CapabilityPerBand-r16.c create mode 100644 asn.1/lpp_generated/SRS-CapabilityPerBand-r16.h create mode 100644 asn.1/lpp_generated/SRS-PosResourcesPerBand-r16.c create mode 100644 asn.1/lpp_generated/SRS-PosResourcesPerBand-r16.h create mode 100644 asn.1/lpp_generated/SSR-ClockCorrectionList-r15.c rename asn.1/{generated => lpp_generated}/SSR-ClockCorrectionList-r15.h (81%) create mode 100644 asn.1/lpp_generated/SSR-ClockCorrectionSatelliteElement-r15.c create mode 100644 asn.1/lpp_generated/SSR-ClockCorrectionSatelliteElement-r15.h create mode 100644 asn.1/lpp_generated/SSR-CodeBiasSatElement-r15.c rename asn.1/{generated => lpp_generated}/SSR-CodeBiasSatElement-r15.h (80%) create mode 100644 asn.1/lpp_generated/SSR-CodeBiasSatList-r15.c rename asn.1/{generated => lpp_generated}/SSR-CodeBiasSatList-r15.h (80%) create mode 100644 asn.1/lpp_generated/SSR-CodeBiasSignalElement-r15.c create mode 100644 asn.1/lpp_generated/SSR-CodeBiasSignalElement-r15.h create mode 100644 asn.1/lpp_generated/SSR-CodeBiasSignalList-r15.c rename asn.1/{generated => lpp_generated}/SSR-CodeBiasSignalList-r15.h (81%) create mode 100644 asn.1/lpp_generated/SSR-GriddedCorrectionIntegrityParameters-r17.c create mode 100644 asn.1/lpp_generated/SSR-GriddedCorrectionIntegrityParameters-r17.h create mode 100644 asn.1/lpp_generated/SSR-IntegrityClockBounds-r17.c create mode 100644 asn.1/lpp_generated/SSR-IntegrityClockBounds-r17.h create mode 100644 asn.1/lpp_generated/SSR-IntegrityCodeBiasBounds-r17.c create mode 100644 asn.1/lpp_generated/SSR-IntegrityCodeBiasBounds-r17.h create mode 100644 asn.1/lpp_generated/SSR-IntegrityOrbitBounds-r17.c create mode 100644 asn.1/lpp_generated/SSR-IntegrityOrbitBounds-r17.h create mode 100644 asn.1/lpp_generated/SSR-IntegrityPhaseBiasBounds-r17.c create mode 100644 asn.1/lpp_generated/SSR-IntegrityPhaseBiasBounds-r17.h create mode 100644 asn.1/lpp_generated/SSR-OrbitCorrectionList-r15.c rename asn.1/{generated => lpp_generated}/SSR-OrbitCorrectionList-r15.h (81%) create mode 100644 asn.1/lpp_generated/SSR-OrbitCorrectionSatelliteElement-r15.c create mode 100644 asn.1/lpp_generated/SSR-OrbitCorrectionSatelliteElement-r15.h create mode 100644 asn.1/lpp_generated/SSR-PhaseBiasSatElement-r16.c rename asn.1/{generated => lpp_generated}/SSR-PhaseBiasSatElement-r16.h (80%) create mode 100644 asn.1/lpp_generated/SSR-PhaseBiasSatList-r16.c rename asn.1/{generated => lpp_generated}/SSR-PhaseBiasSatList-r16.h (80%) create mode 100644 asn.1/lpp_generated/SSR-PhaseBiasSignalElement-r16.c create mode 100644 asn.1/lpp_generated/SSR-PhaseBiasSignalElement-r16.h create mode 100644 asn.1/lpp_generated/SSR-PhaseBiasSignalList-r16.c rename asn.1/{generated => lpp_generated}/SSR-PhaseBiasSignalList-r16.h (81%) create mode 100644 asn.1/lpp_generated/SSR-PhaseCenterVariationList-r18.c create mode 100644 asn.1/lpp_generated/SSR-PhaseCenterVariationList-r18.h create mode 100644 asn.1/lpp_generated/SSR-SatellitePCV-Element-r18.c create mode 100644 asn.1/lpp_generated/SSR-SatellitePCV-Element-r18.h create mode 100644 asn.1/lpp_generated/SSR-SatellitePCV-FrequencyElement-r18.c create mode 100644 asn.1/lpp_generated/SSR-SatellitePCV-FrequencyElement-r18.h create mode 100644 asn.1/lpp_generated/SSR-SatellitePCV-FrequencyList-r18.c create mode 100644 asn.1/lpp_generated/SSR-SatellitePCV-FrequencyList-r18.h create mode 100644 asn.1/lpp_generated/SSR-SatellitePCV-List-r18.c create mode 100644 asn.1/lpp_generated/SSR-SatellitePCV-List-r18.h create mode 100644 asn.1/lpp_generated/SSR-URA-SatElement-r16.c rename asn.1/{generated => lpp_generated}/SSR-URA-SatElement-r16.h (79%) create mode 100644 asn.1/lpp_generated/SSR-URA-SatList-r16.c rename asn.1/{generated => lpp_generated}/SSR-URA-SatList-r16.h (79%) create mode 100644 asn.1/lpp_generated/STEC-IntegrityErrorBounds-r17.c create mode 100644 asn.1/lpp_generated/STEC-IntegrityErrorBounds-r17.h create mode 100644 asn.1/lpp_generated/STEC-IntegrityParameters-r17.c create mode 100644 asn.1/lpp_generated/STEC-IntegrityParameters-r17.h create mode 100644 asn.1/lpp_generated/STEC-ResidualSatElement-r16.c rename asn.1/{generated => lpp_generated}/STEC-ResidualSatElement-r16.h (87%) create mode 100644 asn.1/lpp_generated/STEC-ResidualSatList-r16.c rename asn.1/{generated => lpp_generated}/STEC-ResidualSatList-r16.h (80%) create mode 100644 asn.1/lpp_generated/STEC-SatElement-r16.c create mode 100644 asn.1/lpp_generated/STEC-SatElement-r16.h create mode 100644 asn.1/lpp_generated/STEC-SatList-r16.c rename asn.1/{generated => lpp_generated}/STEC-SatList-r16.h (79%) create mode 100644 asn.1/lpp_generated/SV-ID.c rename asn.1/{generated => lpp_generated}/SV-ID.h (75%) create mode 100644 asn.1/lpp_generated/SatListElement-r15.c rename asn.1/{generated => lpp_generated}/SatListElement-r15.h (78%) create mode 100644 asn.1/lpp_generated/SatListRelatedDataElement.c rename asn.1/{generated => lpp_generated}/SatListRelatedDataElement.h (75%) create mode 100644 asn.1/lpp_generated/SatListRelatedDataList.c rename asn.1/{generated => lpp_generated}/SatListRelatedDataList.h (80%) create mode 100644 asn.1/lpp_generated/ScheduledLocationTime-r17.c create mode 100644 asn.1/lpp_generated/ScheduledLocationTime-r17.h create mode 100644 asn.1/lpp_generated/ScheduledLocationTimeSupport-r17.c create mode 100644 asn.1/lpp_generated/ScheduledLocationTimeSupport-r17.h create mode 100644 asn.1/lpp_generated/ScheduledLocationTimeSupportPerMode-r17.c create mode 100644 asn.1/lpp_generated/ScheduledLocationTimeSupportPerMode-r17.h create mode 100644 asn.1/lpp_generated/SegmentationInfo-r14.c rename asn.1/{generated => lpp_generated}/SegmentationInfo-r14.h (78%) create mode 100644 asn.1/lpp_generated/Sensor-AssistanceDataList-r14.c rename asn.1/{generated => lpp_generated}/Sensor-AssistanceDataList-r14.h (80%) create mode 100644 asn.1/lpp_generated/Sensor-AssistanceDataSupportList-r14.c rename asn.1/{generated => lpp_generated}/Sensor-AssistanceDataSupportList-r14.h (84%) create mode 100644 asn.1/lpp_generated/Sensor-Error-r13.c rename asn.1/{generated => lpp_generated}/Sensor-Error-r13.h (85%) create mode 100644 asn.1/lpp_generated/Sensor-LocationServerErrorCauses-r13.c rename asn.1/{generated => lpp_generated}/Sensor-LocationServerErrorCauses-r13.h (86%) create mode 100644 asn.1/lpp_generated/Sensor-MeasurementInformation-r13.c rename asn.1/{generated => lpp_generated}/Sensor-MeasurementInformation-r13.h (79%) create mode 100644 asn.1/lpp_generated/Sensor-MotionInformation-r15.c rename asn.1/{generated => lpp_generated}/Sensor-MotionInformation-r15.h (81%) create mode 100644 asn.1/lpp_generated/Sensor-ProvideAssistanceData-r14.c rename asn.1/{generated => lpp_generated}/Sensor-ProvideAssistanceData-r14.h (75%) create mode 100644 asn.1/lpp_generated/Sensor-ProvideCapabilities-r13.c rename asn.1/{generated => lpp_generated}/Sensor-ProvideCapabilities-r13.h (78%) create mode 100644 asn.1/lpp_generated/Sensor-ProvideLocationInformation-r13.c rename asn.1/{generated => lpp_generated}/Sensor-ProvideLocationInformation-r13.h (76%) create mode 100644 asn.1/lpp_generated/Sensor-RequestAssistanceData-r14.c rename asn.1/{generated => lpp_generated}/Sensor-RequestAssistanceData-r14.h (78%) create mode 100644 asn.1/lpp_generated/Sensor-RequestCapabilities-r13.c rename asn.1/{generated => lpp_generated}/Sensor-RequestCapabilities-r13.h (77%) create mode 100644 asn.1/lpp_generated/Sensor-RequestLocationInformation-r13.c rename asn.1/{generated => lpp_generated}/Sensor-RequestLocationInformation-r13.h (78%) create mode 100644 asn.1/lpp_generated/Sensor-TargetDeviceErrorCauses-r13.c rename asn.1/{generated => lpp_generated}/Sensor-TargetDeviceErrorCauses-r13.h (85%) create mode 100644 asn.1/lpp_generated/SequenceNumber.c create mode 100644 asn.1/lpp_generated/SequenceNumber.h create mode 100644 asn.1/lpp_generated/SpatialDelta-r18.c create mode 100644 asn.1/lpp_generated/SpatialDelta-r18.h create mode 100644 asn.1/lpp_generated/SpatialRelationsSRS-Pos-r16.c create mode 100644 asn.1/lpp_generated/SpatialRelationsSRS-Pos-r16.h create mode 100644 asn.1/lpp_generated/StandardClockModelElement.c rename asn.1/{generated => lpp_generated}/StandardClockModelElement.h (76%) create mode 100644 asn.1/lpp_generated/StandardClockModelList.c rename asn.1/{generated => lpp_generated}/StandardClockModelList.h (80%) create mode 100644 asn.1/lpp_generated/StoredNavListInfo.c rename asn.1/{generated => lpp_generated}/StoredNavListInfo.h (75%) create mode 100644 asn.1/lpp_generated/SupportedBandEUTRA-v9a0.c create mode 100644 asn.1/lpp_generated/SupportedBandEUTRA-v9a0.h create mode 100644 asn.1/lpp_generated/SupportedBandEUTRA.c rename asn.1/{generated => lpp_generated}/SupportedBandEUTRA.h (76%) create mode 100644 asn.1/lpp_generated/SupportedChannels-11a-r14.c rename asn.1/{generated => lpp_generated}/SupportedChannels-11a-r14.h (82%) create mode 100644 asn.1/lpp_generated/SupportedChannels-11bg-r14.c rename asn.1/{generated => lpp_generated}/SupportedChannels-11bg-r14.h (82%) create mode 100644 asn.1/lpp_generated/TBS-AssistanceDataList-r14.c create mode 100644 asn.1/lpp_generated/TBS-AssistanceDataList-r14.h create mode 100644 asn.1/lpp_generated/TBS-Error-r13.c rename asn.1/{generated => lpp_generated}/TBS-Error-r13.h (84%) create mode 100644 asn.1/lpp_generated/TBS-LocationServerErrorCauses-r13.c rename asn.1/{generated => lpp_generated}/TBS-LocationServerErrorCauses-r13.h (86%) create mode 100644 asn.1/lpp_generated/TBS-MeasurementInformation-r13.c create mode 100644 asn.1/lpp_generated/TBS-MeasurementInformation-r13.h create mode 100644 asn.1/lpp_generated/TBS-ProvideAssistanceData-r14.c create mode 100644 asn.1/lpp_generated/TBS-ProvideAssistanceData-r14.h create mode 100644 asn.1/lpp_generated/TBS-ProvideCapabilities-r13.c create mode 100644 asn.1/lpp_generated/TBS-ProvideCapabilities-r13.h create mode 100644 asn.1/lpp_generated/TBS-ProvideLocationInformation-r13.c rename asn.1/{generated => lpp_generated}/TBS-ProvideLocationInformation-r13.h (76%) create mode 100644 asn.1/lpp_generated/TBS-RequestAssistanceData-r14.c rename asn.1/{generated => lpp_generated}/TBS-RequestAssistanceData-r14.h (80%) create mode 100644 asn.1/lpp_generated/TBS-RequestCapabilities-r13.c rename asn.1/{generated => lpp_generated}/TBS-RequestCapabilities-r13.h (77%) create mode 100644 asn.1/lpp_generated/TBS-RequestLocationInformation-r13.c rename asn.1/{generated => lpp_generated}/TBS-RequestLocationInformation-r13.h (79%) create mode 100644 asn.1/lpp_generated/TBS-TargetDeviceErrorCauses-r13.c rename asn.1/{generated => lpp_generated}/TBS-TargetDeviceErrorCauses-r13.h (85%) create mode 100644 asn.1/lpp_generated/TDD-Config-v1520.c rename asn.1/{generated => lpp_generated}/TDD-Config-v1520.h (85%) create mode 100644 asn.1/lpp_generated/TEG-TimingErrorMargin-r17.c create mode 100644 asn.1/lpp_generated/TEG-TimingErrorMargin-r17.h create mode 100644 asn.1/lpp_generated/TRP-LocationInfoElement-r16.c create mode 100644 asn.1/lpp_generated/TRP-LocationInfoElement-r16.h create mode 100644 asn.1/lpp_generated/TargetIntegrityRisk-r17.c create mode 100644 asn.1/lpp_generated/TargetIntegrityRisk-r17.h create mode 100644 asn.1/lpp_generated/TransactionNumber.c create mode 100644 asn.1/lpp_generated/TransactionNumber.h create mode 100644 asn.1/lpp_generated/TriggeredReportingCriteria.c rename asn.1/{generated => lpp_generated}/TriggeredReportingCriteria.h (80%) create mode 100644 asn.1/lpp_generated/TropoDelayIntegrityErrorBounds-r17.c create mode 100644 asn.1/lpp_generated/TropoDelayIntegrityErrorBounds-r17.h create mode 100644 asn.1/lpp_generated/TropospericDelayCorrection-r16.c create mode 100644 asn.1/lpp_generated/TropospericDelayCorrection-r16.h create mode 100644 asn.1/lpp_generated/UTC-ModelSet1.c rename asn.1/{generated => lpp_generated}/UTC-ModelSet1.h (80%) create mode 100644 asn.1/lpp_generated/UTC-ModelSet2.c rename asn.1/{generated => lpp_generated}/UTC-ModelSet2.h (79%) create mode 100644 asn.1/lpp_generated/UTC-ModelSet3.c create mode 100644 asn.1/lpp_generated/UTC-ModelSet3.h create mode 100644 asn.1/lpp_generated/UTC-ModelSet4.c rename asn.1/{generated => lpp_generated}/UTC-ModelSet4.h (79%) create mode 100644 asn.1/lpp_generated/UTC-ModelSet5-r12.c rename asn.1/{generated => lpp_generated}/UTC-ModelSet5-r12.h (79%) create mode 100644 asn.1/lpp_generated/UTC-Time-r15.c rename asn.1/{generated => lpp_generated}/UTC-Time-r15.h (77%) create mode 100644 asn.1/lpp_generated/UpdateCapabilities-r15.c rename asn.1/{generated => lpp_generated}/UpdateCapabilities-r15.h (76%) create mode 100644 asn.1/lpp_generated/Velocity.c rename asn.1/{generated => lpp_generated}/Velocity.h (86%) create mode 100644 asn.1/lpp_generated/VelocityTypes.c rename asn.1/{generated => lpp_generated}/VelocityTypes.h (79%) create mode 100644 asn.1/lpp_generated/VerticalAccuracy.c rename asn.1/{generated => lpp_generated}/VerticalAccuracy.h (78%) create mode 100644 asn.1/lpp_generated/VerticalAccuracyExt-r15.c rename asn.1/{generated => lpp_generated}/VerticalAccuracyExt-r15.h (79%) create mode 100644 asn.1/lpp_generated/VerticalGridPoints-r18.c create mode 100644 asn.1/lpp_generated/VerticalGridPoints-r18.h create mode 100644 asn.1/lpp_generated/WLAN-AP-Data-r14.c rename asn.1/{generated => lpp_generated}/WLAN-AP-Data-r14.h (75%) create mode 100644 asn.1/lpp_generated/WLAN-AP-Identifier-r13.c rename asn.1/{generated => lpp_generated}/WLAN-AP-Identifier-r13.h (76%) create mode 100644 asn.1/lpp_generated/WLAN-AP-Location-r14.c rename asn.1/{generated => lpp_generated}/WLAN-AP-Location-r14.h (78%) create mode 100644 asn.1/lpp_generated/WLAN-DataSet-r14.c create mode 100644 asn.1/lpp_generated/WLAN-DataSet-r14.h create mode 100644 asn.1/lpp_generated/WLAN-Error-r13.c rename asn.1/{generated => lpp_generated}/WLAN-Error-r13.h (85%) create mode 100644 asn.1/lpp_generated/WLAN-LocationServerErrorCauses-r13.c rename asn.1/{generated => lpp_generated}/WLAN-LocationServerErrorCauses-r13.h (84%) create mode 100644 asn.1/lpp_generated/WLAN-MeasurementElement-r13.c create mode 100644 asn.1/lpp_generated/WLAN-MeasurementElement-r13.h create mode 100644 asn.1/lpp_generated/WLAN-MeasurementInformation-r13.c create mode 100644 asn.1/lpp_generated/WLAN-MeasurementInformation-r13.h create mode 100644 asn.1/lpp_generated/WLAN-MeasurementList-r13.c rename asn.1/{generated => lpp_generated}/WLAN-MeasurementList-r13.h (80%) create mode 100644 asn.1/lpp_generated/WLAN-ProvideAssistanceData-r14.c rename asn.1/{generated => lpp_generated}/WLAN-ProvideAssistanceData-r14.h (80%) create mode 100644 asn.1/lpp_generated/WLAN-ProvideCapabilities-r13.c rename asn.1/{generated => lpp_generated}/WLAN-ProvideCapabilities-r13.h (77%) create mode 100644 asn.1/lpp_generated/WLAN-ProvideLocationInformation-r13.c rename asn.1/{generated => lpp_generated}/WLAN-ProvideLocationInformation-r13.h (76%) create mode 100644 asn.1/lpp_generated/WLAN-RTT-r13.c rename asn.1/{generated => lpp_generated}/WLAN-RTT-r13.h (82%) create mode 100644 asn.1/lpp_generated/WLAN-RequestAssistanceData-r14.c rename asn.1/{generated => lpp_generated}/WLAN-RequestAssistanceData-r14.h (88%) create mode 100644 asn.1/lpp_generated/WLAN-RequestCapabilities-r13.c rename asn.1/{generated => lpp_generated}/WLAN-RequestCapabilities-r13.h (77%) create mode 100644 asn.1/lpp_generated/WLAN-RequestLocationInformation-r13.c rename asn.1/{generated => lpp_generated}/WLAN-RequestLocationInformation-r13.h (83%) create mode 100644 asn.1/lpp_generated/WLAN-TargetDeviceErrorCauses-r13.c rename asn.1/{generated => lpp_generated}/WLAN-TargetDeviceErrorCauses-r13.h (80%) create mode 100644 asn.1/lpp_generated/X-Value-r18.c create mode 100644 asn.1/lpp_generated/X-Value-r18.h create mode 100644 asn.1/lpp_generated/Y-Value-r18.c create mode 100644 asn.1/lpp_generated/Y-Value-r18.h create mode 100644 asn.1/lpp_generated/Z-Value-r18.c create mode 100644 asn.1/lpp_generated/Z-Value-r18.h create mode 100644 asn.1/lpp_generated/asn_config.h create mode 100644 asn.1/lpp_generated/asn_constant.h create mode 100644 asn.1/skeleton/ANY.c create mode 100644 asn.1/skeleton/ANY.h create mode 100644 asn.1/skeleton/ANY_aper.c create mode 100644 asn.1/skeleton/ANY_ber.c create mode 100644 asn.1/skeleton/ANY_jer.c create mode 100644 asn.1/skeleton/ANY_uper.c create mode 100644 asn.1/skeleton/ANY_xer.c create mode 100644 asn.1/skeleton/BIT_STRING.c create mode 100644 asn.1/skeleton/BIT_STRING.h create mode 100644 asn.1/skeleton/BIT_STRING_jer.c create mode 100644 asn.1/skeleton/BIT_STRING_oer.c create mode 100644 asn.1/skeleton/BIT_STRING_print.c create mode 100644 asn.1/skeleton/BIT_STRING_rfill.c create mode 100644 asn.1/skeleton/BIT_STRING_uper.c create mode 100644 asn.1/skeleton/BIT_STRING_xer.c create mode 100644 asn.1/skeleton/BMPString.c create mode 100644 asn.1/skeleton/BMPString.h create mode 100644 asn.1/skeleton/BMPString_jer.c create mode 100644 asn.1/skeleton/BMPString_print.c create mode 100644 asn.1/skeleton/BMPString_xer.c create mode 100644 asn.1/skeleton/BOOLEAN.c create mode 100644 asn.1/skeleton/BOOLEAN.h create mode 100644 asn.1/skeleton/BOOLEAN_aper.c create mode 100644 asn.1/skeleton/BOOLEAN_ber.c create mode 100644 asn.1/skeleton/BOOLEAN_jer.c create mode 100644 asn.1/skeleton/BOOLEAN_oer.c create mode 100644 asn.1/skeleton/BOOLEAN_print.c create mode 100644 asn.1/skeleton/BOOLEAN_rfill.c create mode 100644 asn.1/skeleton/BOOLEAN_uper.c create mode 100644 asn.1/skeleton/BOOLEAN_xer.c create mode 100644 asn.1/skeleton/ENUMERATED.c create mode 100644 asn.1/skeleton/ENUMERATED.h create mode 100644 asn.1/skeleton/ENUMERATED_aper.c create mode 100644 asn.1/skeleton/ENUMERATED_jer.c create mode 100644 asn.1/skeleton/ENUMERATED_oer.c create mode 100644 asn.1/skeleton/ENUMERATED_uper.c create mode 100644 asn.1/skeleton/GeneralString.c create mode 100644 asn.1/skeleton/GeneralString.h create mode 100644 asn.1/skeleton/GeneralizedTime.c create mode 100644 asn.1/skeleton/GeneralizedTime.h create mode 100644 asn.1/skeleton/GeneralizedTime_ber.c create mode 100644 asn.1/skeleton/GeneralizedTime_jer.c create mode 100644 asn.1/skeleton/GeneralizedTime_print.c create mode 100644 asn.1/skeleton/GeneralizedTime_rfill.c create mode 100644 asn.1/skeleton/GeneralizedTime_xer.c create mode 100644 asn.1/skeleton/GraphicString.c create mode 100644 asn.1/skeleton/GraphicString.h create mode 100644 asn.1/skeleton/IA5String.c create mode 100644 asn.1/skeleton/IA5String.h create mode 100644 asn.1/skeleton/INTEGER.c create mode 100644 asn.1/skeleton/INTEGER.h create mode 100644 asn.1/skeleton/INTEGER_aper.c create mode 100644 asn.1/skeleton/INTEGER_ber.c create mode 100644 asn.1/skeleton/INTEGER_jer.c create mode 100644 asn.1/skeleton/INTEGER_oer.c create mode 100644 asn.1/skeleton/INTEGER_print.c create mode 100644 asn.1/skeleton/INTEGER_rfill.c create mode 100644 asn.1/skeleton/INTEGER_uper.c create mode 100644 asn.1/skeleton/INTEGER_xer.c create mode 100644 asn.1/skeleton/ISO646String.c create mode 100644 asn.1/skeleton/ISO646String.h create mode 100644 asn.1/skeleton/NULL.c create mode 100644 asn.1/skeleton/NULL.h create mode 100644 asn.1/skeleton/NULL_aper.c create mode 100644 asn.1/skeleton/NULL_ber.c create mode 100644 asn.1/skeleton/NULL_jer.c create mode 100644 asn.1/skeleton/NULL_oer.c create mode 100644 asn.1/skeleton/NULL_print.c create mode 100644 asn.1/skeleton/NULL_rfill.c create mode 100644 asn.1/skeleton/NULL_uper.c create mode 100644 asn.1/skeleton/NULL_xer.c create mode 100644 asn.1/skeleton/NativeEnumerated.c create mode 100644 asn.1/skeleton/NativeEnumerated.h create mode 100644 asn.1/skeleton/NativeEnumerated_aper.c create mode 100644 asn.1/skeleton/NativeEnumerated_jer.c create mode 100644 asn.1/skeleton/NativeEnumerated_oer.c create mode 100644 asn.1/skeleton/NativeEnumerated_uper.c create mode 100644 asn.1/skeleton/NativeEnumerated_xer.c create mode 100644 asn.1/skeleton/NativeInteger.c create mode 100644 asn.1/skeleton/NativeInteger.h create mode 100644 asn.1/skeleton/NativeInteger_aper.c create mode 100644 asn.1/skeleton/NativeInteger_ber.c create mode 100644 asn.1/skeleton/NativeInteger_jer.c create mode 100644 asn.1/skeleton/NativeInteger_oer.c create mode 100644 asn.1/skeleton/NativeInteger_print.c create mode 100644 asn.1/skeleton/NativeInteger_rfill.c create mode 100644 asn.1/skeleton/NativeInteger_uper.c create mode 100644 asn.1/skeleton/NativeInteger_xer.c create mode 100644 asn.1/skeleton/NativeReal.c create mode 100644 asn.1/skeleton/NativeReal.h create mode 100644 asn.1/skeleton/NativeReal_aper.c create mode 100644 asn.1/skeleton/NativeReal_ber.c create mode 100644 asn.1/skeleton/NativeReal_jer.c create mode 100644 asn.1/skeleton/NativeReal_oer.c create mode 100644 asn.1/skeleton/NativeReal_print.c create mode 100644 asn.1/skeleton/NativeReal_rfill.c create mode 100644 asn.1/skeleton/NativeReal_uper.c create mode 100644 asn.1/skeleton/NativeReal_xer.c create mode 100644 asn.1/skeleton/NumericString.c create mode 100644 asn.1/skeleton/NumericString.h create mode 100644 asn.1/skeleton/OBJECT_IDENTIFIER.c create mode 100644 asn.1/skeleton/OBJECT_IDENTIFIER.h create mode 100644 asn.1/skeleton/OBJECT_IDENTIFIER_jer.c create mode 100644 asn.1/skeleton/OBJECT_IDENTIFIER_print.c create mode 100644 asn.1/skeleton/OBJECT_IDENTIFIER_rfill.c create mode 100644 asn.1/skeleton/OBJECT_IDENTIFIER_xer.c create mode 100644 asn.1/skeleton/OCTET_STRING.c create mode 100644 asn.1/skeleton/OCTET_STRING.h create mode 100644 asn.1/skeleton/OCTET_STRING_aper.c create mode 100644 asn.1/skeleton/OCTET_STRING_ber.c create mode 100644 asn.1/skeleton/OCTET_STRING_jer.c create mode 100644 asn.1/skeleton/OCTET_STRING_oer.c create mode 100644 asn.1/skeleton/OCTET_STRING_print.c create mode 100644 asn.1/skeleton/OCTET_STRING_rfill.c create mode 100644 asn.1/skeleton/OCTET_STRING_uper.c create mode 100644 asn.1/skeleton/OCTET_STRING_xer.c create mode 100644 asn.1/skeleton/OPEN_TYPE.c create mode 100644 asn.1/skeleton/OPEN_TYPE.h create mode 100644 asn.1/skeleton/OPEN_TYPE_aper.c create mode 100644 asn.1/skeleton/OPEN_TYPE_ber.c create mode 100644 asn.1/skeleton/OPEN_TYPE_jer.c create mode 100644 asn.1/skeleton/OPEN_TYPE_oer.c create mode 100644 asn.1/skeleton/OPEN_TYPE_uper.c create mode 100644 asn.1/skeleton/OPEN_TYPE_xer.c create mode 100644 asn.1/skeleton/ObjectDescriptor.c create mode 100644 asn.1/skeleton/ObjectDescriptor.h create mode 100644 asn.1/skeleton/PrintableString.c create mode 100644 asn.1/skeleton/PrintableString.h create mode 100644 asn.1/skeleton/REAL.c create mode 100644 asn.1/skeleton/REAL.h create mode 100644 asn.1/skeleton/REAL_aper.c create mode 100644 asn.1/skeleton/REAL_jer.c create mode 100644 asn.1/skeleton/REAL_oer.c create mode 100644 asn.1/skeleton/REAL_print.c create mode 100644 asn.1/skeleton/REAL_rfill.c create mode 100644 asn.1/skeleton/REAL_uper.c create mode 100644 asn.1/skeleton/REAL_xer.c create mode 100644 asn.1/skeleton/RELATIVE-OID.c create mode 100644 asn.1/skeleton/RELATIVE-OID.h create mode 100644 asn.1/skeleton/RELATIVE-OID_jer.c create mode 100644 asn.1/skeleton/RELATIVE-OID_print.c create mode 100644 asn.1/skeleton/RELATIVE-OID_rfill.c create mode 100644 asn.1/skeleton/RELATIVE-OID_xer.c create mode 100644 asn.1/skeleton/T61String.c create mode 100644 asn.1/skeleton/T61String.h create mode 100644 asn.1/skeleton/TeletexString.c create mode 100644 asn.1/skeleton/TeletexString.h create mode 100644 asn.1/skeleton/UTCTime.c create mode 100644 asn.1/skeleton/UTCTime.h create mode 100644 asn.1/skeleton/UTCTime_jer.c create mode 100644 asn.1/skeleton/UTCTime_print.c create mode 100644 asn.1/skeleton/UTCTime_rfill.c create mode 100644 asn.1/skeleton/UTCTime_xer.c create mode 100644 asn.1/skeleton/UTF8String.c create mode 100644 asn.1/skeleton/UTF8String.h create mode 100644 asn.1/skeleton/UTF8String_print.c create mode 100644 asn.1/skeleton/UTF8String_rfill.c create mode 100644 asn.1/skeleton/UniversalString.c create mode 100644 asn.1/skeleton/UniversalString.h create mode 100644 asn.1/skeleton/UniversalString_jer.c create mode 100644 asn.1/skeleton/UniversalString_print.c create mode 100644 asn.1/skeleton/UniversalString_xer.c create mode 100644 asn.1/skeleton/VideotexString.c create mode 100644 asn.1/skeleton/VideotexString.h create mode 100644 asn.1/skeleton/VisibleString.c create mode 100644 asn.1/skeleton/VisibleString.h create mode 100644 asn.1/skeleton/aper_decoder.c create mode 100644 asn.1/skeleton/aper_decoder.h create mode 100644 asn.1/skeleton/aper_encoder.c create mode 100644 asn.1/skeleton/aper_encoder.h create mode 100644 asn.1/skeleton/aper_opentype.c create mode 100644 asn.1/skeleton/aper_opentype.h create mode 100644 asn.1/skeleton/aper_support.c create mode 100644 asn.1/skeleton/aper_support.h rename asn.1/{generated => skeleton}/asn_SEQUENCE_OF.c (100%) rename asn.1/{generated => skeleton}/asn_SEQUENCE_OF.h (100%) rename asn.1/{generated => skeleton}/asn_SET_OF.c (100%) rename asn.1/{generated => skeleton}/asn_SET_OF.h (100%) create mode 100644 asn.1/skeleton/asn_application.c rename asn.1/{generated => skeleton}/asn_application.h (95%) rename asn.1/{generated => skeleton}/asn_bit_data.c (100%) rename asn.1/{generated => skeleton}/asn_bit_data.h (97%) rename asn.1/{generated => skeleton}/asn_codecs.h (100%) create mode 100644 asn.1/skeleton/asn_codecs_prim.c create mode 100644 asn.1/skeleton/asn_codecs_prim.h create mode 100644 asn.1/skeleton/asn_codecs_prim_ber.c create mode 100644 asn.1/skeleton/asn_codecs_prim_jer.c create mode 100644 asn.1/skeleton/asn_codecs_prim_xer.c create mode 100644 asn.1/skeleton/asn_config.h rename asn.1/{generated => skeleton}/asn_internal.c (92%) rename asn.1/{generated => skeleton}/asn_internal.h (82%) rename asn.1/{generated => skeleton}/asn_ioc.h (97%) rename asn.1/{generated => skeleton}/asn_random_fill.c (77%) rename asn.1/{generated => skeleton}/asn_random_fill.h (100%) rename asn.1/{generated => skeleton}/asn_system.h (77%) rename asn.1/{generated => skeleton}/ber_decoder.c (100%) rename asn.1/{generated => skeleton}/ber_decoder.h (100%) rename asn.1/{generated => skeleton}/ber_tlv_length.c (99%) rename asn.1/{generated => skeleton}/ber_tlv_length.h (100%) rename asn.1/{generated => skeleton}/ber_tlv_tag.c (98%) rename asn.1/{generated => skeleton}/ber_tlv_tag.h (100%) create mode 100644 asn.1/skeleton/constr_CHOICE.c create mode 100644 asn.1/skeleton/constr_CHOICE.h create mode 100644 asn.1/skeleton/constr_CHOICE_aper.c create mode 100644 asn.1/skeleton/constr_CHOICE_ber.c create mode 100644 asn.1/skeleton/constr_CHOICE_jer.c create mode 100644 asn.1/skeleton/constr_CHOICE_oer.c create mode 100644 asn.1/skeleton/constr_CHOICE_print.c create mode 100644 asn.1/skeleton/constr_CHOICE_rfill.c create mode 100644 asn.1/skeleton/constr_CHOICE_uper.c create mode 100644 asn.1/skeleton/constr_CHOICE_xer.c create mode 100644 asn.1/skeleton/constr_SEQUENCE.c create mode 100644 asn.1/skeleton/constr_SEQUENCE.h create mode 100644 asn.1/skeleton/constr_SEQUENCE_OF.c create mode 100644 asn.1/skeleton/constr_SEQUENCE_OF.h create mode 100644 asn.1/skeleton/constr_SEQUENCE_OF_aper.c create mode 100644 asn.1/skeleton/constr_SEQUENCE_OF_ber.c create mode 100644 asn.1/skeleton/constr_SEQUENCE_OF_jer.c create mode 100644 asn.1/skeleton/constr_SEQUENCE_OF_uper.c create mode 100644 asn.1/skeleton/constr_SEQUENCE_OF_xer.c create mode 100644 asn.1/skeleton/constr_SEQUENCE_aper.c create mode 100644 asn.1/skeleton/constr_SEQUENCE_ber.c create mode 100644 asn.1/skeleton/constr_SEQUENCE_jer.c create mode 100644 asn.1/skeleton/constr_SEQUENCE_oer.c create mode 100644 asn.1/skeleton/constr_SEQUENCE_print.c create mode 100644 asn.1/skeleton/constr_SEQUENCE_rfill.c create mode 100644 asn.1/skeleton/constr_SEQUENCE_uper.c create mode 100644 asn.1/skeleton/constr_SEQUENCE_xer.c create mode 100644 asn.1/skeleton/constr_SET.c create mode 100644 asn.1/skeleton/constr_SET.h create mode 100644 asn.1/skeleton/constr_SET_OF.c create mode 100644 asn.1/skeleton/constr_SET_OF.h create mode 100644 asn.1/skeleton/constr_SET_OF_aper.c create mode 100644 asn.1/skeleton/constr_SET_OF_ber.c create mode 100644 asn.1/skeleton/constr_SET_OF_jer.c create mode 100644 asn.1/skeleton/constr_SET_OF_oer.c create mode 100644 asn.1/skeleton/constr_SET_OF_print.c create mode 100644 asn.1/skeleton/constr_SET_OF_rfill.c create mode 100644 asn.1/skeleton/constr_SET_OF_uper.c create mode 100644 asn.1/skeleton/constr_SET_OF_xer.c create mode 100644 asn.1/skeleton/constr_SET_ber.c create mode 100644 asn.1/skeleton/constr_SET_jer.c create mode 100644 asn.1/skeleton/constr_SET_print.c create mode 100644 asn.1/skeleton/constr_SET_rfill.c create mode 100644 asn.1/skeleton/constr_SET_xer.c rename asn.1/{generated => skeleton}/constr_TYPE.c (77%) create mode 100644 asn.1/skeleton/constr_TYPE.h rename asn.1/{generated => skeleton}/constraints.c (99%) rename asn.1/{generated => skeleton}/constraints.h (98%) rename asn.1/{generated => skeleton}/der_encoder.c (100%) rename asn.1/{generated => skeleton}/der_encoder.h (100%) create mode 100644 asn.1/skeleton/jer_decoder.c create mode 100644 asn.1/skeleton/jer_decoder.h create mode 100644 asn.1/skeleton/jer_encoder.c create mode 100644 asn.1/skeleton/jer_encoder.h create mode 100644 asn.1/skeleton/jer_support.c create mode 100644 asn.1/skeleton/jer_support.h create mode 100644 asn.1/skeleton/oer_decoder.c create mode 100644 asn.1/skeleton/oer_decoder.h create mode 100644 asn.1/skeleton/oer_encoder.c create mode 100644 asn.1/skeleton/oer_encoder.h create mode 100644 asn.1/skeleton/oer_support.c create mode 100644 asn.1/skeleton/oer_support.h create mode 100644 asn.1/skeleton/per_decoder.c create mode 100644 asn.1/skeleton/per_decoder.h create mode 100644 asn.1/skeleton/per_encoder.c create mode 100644 asn.1/skeleton/per_encoder.h create mode 100644 asn.1/skeleton/per_opentype.c create mode 100644 asn.1/skeleton/per_opentype.h create mode 100644 asn.1/skeleton/per_support.c create mode 100644 asn.1/skeleton/per_support.h create mode 100644 asn.1/skeleton/uper_decoder.c create mode 100644 asn.1/skeleton/uper_decoder.h create mode 100644 asn.1/skeleton/uper_encoder.c create mode 100644 asn.1/skeleton/uper_encoder.h create mode 100644 asn.1/skeleton/uper_opentype.c create mode 100644 asn.1/skeleton/uper_opentype.h create mode 100644 asn.1/skeleton/uper_support.c create mode 100644 asn.1/skeleton/uper_support.h rename asn.1/{generated => skeleton}/xer_decoder.c (99%) rename asn.1/{generated => skeleton}/xer_decoder.h (100%) rename asn.1/{generated => skeleton}/xer_encoder.c (99%) rename asn.1/{generated => skeleton}/xer_encoder.h (97%) rename asn.1/{generated => skeleton}/xer_support.c (100%) rename asn.1/{generated => skeleton}/xer_support.h (92%) create mode 100644 asn.1/src/LPP-PDU-Definitions.asn delete mode 100644 asn.1/src/LPP.asn delete mode 100644 asn.1/src/RRLP-Components.asn delete mode 100644 asn.1/src/RRLP-Messages.asn create mode 100644 asn.1/src/SUPL-AUTH-REQ.asn create mode 100644 asn.1/src/SUPL-AUTH-RESP.asn create mode 100644 asn.1/src/SUPL-END.asn create mode 100644 asn.1/src/SUPL-INIT.asn create mode 100644 asn.1/src/SUPL-NOTIFY-RESPONSE.asn create mode 100644 asn.1/src/SUPL-NOTIFY.asn create mode 100644 asn.1/src/SUPL-POS-INIT.asn create mode 100644 asn.1/src/SUPL-POS.asn create mode 100644 asn.1/src/SUPL-REPORT.asn create mode 100644 asn.1/src/SUPL-RESPONSE.asn create mode 100644 asn.1/src/SUPL-SET-INIT.asn create mode 100644 asn.1/src/SUPL-START.asn create mode 100644 asn.1/src/SUPL-TRIGGERED-RESPONSE.asn create mode 100644 asn.1/src/SUPL-TRIGGERED-START.asn create mode 100644 asn.1/src/SUPL-TRIGGERED-STOP.asn delete mode 100644 asn.1/src/SUPL.asn mode change 100644 => 100755 asn.1/src/ULP-Components.asn create mode 100644 asn.1/src/ULP-Version-2-message-extensions.asn create mode 100644 asn.1/src/ULP-Version-2-parameter-extensions.asn mode change 100644 => 100755 asn.1/src/ULP.asn create mode 100644 asn.1/src/Ver2-ULP-Components.asn create mode 100644 asn.1/supl_generated/AllowedReportingType.c rename asn.1/{generated => supl_generated}/AllowedReportingType.h (79%) create mode 100644 asn.1/supl_generated/AltitudeInfo.c rename asn.1/{generated => supl_generated}/AltitudeInfo.h (82%) create mode 100644 asn.1/supl_generated/ApplicationID.c create mode 100644 asn.1/supl_generated/ApplicationID.h create mode 100644 asn.1/supl_generated/AreaEventParams.c create mode 100644 asn.1/supl_generated/AreaEventParams.h create mode 100644 asn.1/supl_generated/AreaEventType.c rename asn.1/{generated => supl_generated}/AreaEventType.h (79%) create mode 100644 asn.1/supl_generated/AreaId.c rename asn.1/{generated => supl_generated}/AreaId.h (86%) create mode 100644 asn.1/supl_generated/AreaIdList.c create mode 100644 asn.1/supl_generated/AreaIdList.h create mode 100644 asn.1/supl_generated/AreaIdSet.c rename asn.1/{generated => supl_generated}/AreaIdSet.h (77%) create mode 100644 asn.1/supl_generated/AreaIdSetType.c rename asn.1/{generated => supl_generated}/AreaIdSetType.h (77%) create mode 100644 asn.1/supl_generated/BasicProtectionParams.c rename asn.1/{generated => supl_generated}/BasicProtectionParams.h (79%) create mode 100644 asn.1/supl_generated/BatchRepCap.c create mode 100644 asn.1/supl_generated/BatchRepCap.h create mode 100644 asn.1/supl_generated/BatchRepConditions.c rename asn.1/{generated => supl_generated}/BatchRepConditions.h (84%) create mode 100644 asn.1/supl_generated/BatchRepType.c rename asn.1/{generated => supl_generated}/BatchRepType.h (75%) create mode 100644 asn.1/supl_generated/CDMAAreaId.c create mode 100644 asn.1/supl_generated/CDMAAreaId.h create mode 100644 asn.1/supl_generated/CPICH-Ec-N0.c create mode 100644 asn.1/supl_generated/CPICH-Ec-N0.h create mode 100644 asn.1/supl_generated/CPICH-RSCP.c create mode 100644 asn.1/supl_generated/CPICH-RSCP.h create mode 100644 asn.1/supl_generated/CauseCode.c rename asn.1/{generated => supl_generated}/CauseCode.h (78%) create mode 100644 asn.1/supl_generated/CdmaCellInformation.c rename asn.1/{generated => supl_generated}/CdmaCellInformation.h (80%) create mode 100644 asn.1/supl_generated/CellGlobalIdEUTRA.c rename asn.1/{generated => supl_generated}/CellGlobalIdEUTRA.h (79%) create mode 100644 asn.1/supl_generated/CellIdentity.c create mode 100644 asn.1/supl_generated/CellIdentity.h create mode 100644 asn.1/supl_generated/CellInfo.c rename asn.1/{generated => supl_generated}/CellInfo.h (85%) create mode 100644 asn.1/supl_generated/CellMeasuredResults.c rename asn.1/{generated => supl_generated}/CellMeasuredResults.h (76%) create mode 100644 asn.1/supl_generated/CellMeasuredResultsList.c rename asn.1/{generated => supl_generated}/CellMeasuredResultsList.h (80%) create mode 100644 asn.1/supl_generated/CellParametersID.c create mode 100644 asn.1/supl_generated/CellParametersID.h create mode 100644 asn.1/supl_generated/ChipRate.c rename asn.1/{generated => supl_generated}/ChipRate.h (77%) create mode 100644 asn.1/supl_generated/CircularArea.c create mode 100644 asn.1/supl_generated/CircularArea.h create mode 100644 asn.1/supl_generated/Coordinate.c rename asn.1/{generated => supl_generated}/Coordinate.h (80%) create mode 100644 asn.1/supl_generated/DGANSS-Sig-Id-Req.c create mode 100644 asn.1/supl_generated/DGANSS-Sig-Id-Req.h create mode 100644 asn.1/supl_generated/EllipticalArea.c create mode 100644 asn.1/supl_generated/EllipticalArea.h create mode 100644 asn.1/supl_generated/EncodingType.c rename asn.1/{generated => supl_generated}/EncodingType.h (78%) create mode 100644 asn.1/supl_generated/EventTriggerCapabilities.c create mode 100644 asn.1/supl_generated/EventTriggerCapabilities.h create mode 100644 asn.1/supl_generated/ExtendedEphCheck.c rename asn.1/{generated => supl_generated}/ExtendedEphCheck.h (77%) create mode 100644 asn.1/supl_generated/ExtendedEphemeris.c rename asn.1/{generated => supl_generated}/ExtendedEphemeris.h (77%) rename asn.1/{generated => supl_generated}/FQDN.c (80%) create mode 100644 asn.1/supl_generated/FQDN.h create mode 100644 asn.1/supl_generated/FormatIndicator.c rename asn.1/{generated => supl_generated}/FormatIndicator.h (80%) create mode 100644 asn.1/supl_generated/FrequencyInfo.c rename asn.1/{generated => supl_generated}/FrequencyInfo.h (86%) create mode 100644 asn.1/supl_generated/FrequencyInfoFDD.c rename asn.1/{generated => supl_generated}/FrequencyInfoFDD.h (75%) create mode 100644 asn.1/supl_generated/FrequencyInfoTDD.c rename asn.1/{generated => supl_generated}/FrequencyInfoTDD.h (77%) create mode 100644 asn.1/supl_generated/GANSSPositionMethod.c rename asn.1/{generated => supl_generated}/GANSSPositionMethod.h (77%) create mode 100644 asn.1/supl_generated/GANSSPositionMethods.c rename asn.1/{generated => supl_generated}/GANSSPositionMethods.h (79%) create mode 100644 asn.1/supl_generated/GANSSPositioningMethodTypes.c rename asn.1/{generated => supl_generated}/GANSSPositioningMethodTypes.h (79%) create mode 100644 asn.1/supl_generated/GANSSSignals.c rename asn.1/{generated => supl_generated}/GANSSSignals.h (78%) create mode 100644 asn.1/supl_generated/GANSSSignalsDescription.c rename asn.1/{generated => supl_generated}/GANSSSignalsDescription.h (80%) create mode 100644 asn.1/supl_generated/GANSSextEphTime.c rename asn.1/{generated => supl_generated}/GANSSextEphTime.h (77%) create mode 100644 asn.1/supl_generated/GANSSsignalsInfo.c rename asn.1/{generated => supl_generated}/GANSSsignalsInfo.h (79%) create mode 100644 asn.1/supl_generated/GNSSPosTechnology.c rename asn.1/{generated => supl_generated}/GNSSPosTechnology.h (79%) create mode 100644 asn.1/supl_generated/GSMAreaId.c create mode 100644 asn.1/supl_generated/GSMAreaId.h create mode 100644 asn.1/supl_generated/GanssAdditionalDataChoices.c create mode 100644 asn.1/supl_generated/GanssAdditionalDataChoices.h create mode 100644 asn.1/supl_generated/GanssDataBits.c rename asn.1/{generated => supl_generated}/GanssDataBits.h (78%) create mode 100644 asn.1/supl_generated/GanssExtendedEphCheck.c rename asn.1/{generated => supl_generated}/GanssExtendedEphCheck.h (78%) create mode 100644 asn.1/supl_generated/GanssNavigationModelData.c rename asn.1/{generated => supl_generated}/GanssNavigationModelData.h (79%) create mode 100644 asn.1/supl_generated/GanssReqGenericData.c create mode 100644 asn.1/supl_generated/GanssReqGenericData.h create mode 100644 asn.1/supl_generated/GanssRequestedCommonAssistanceDataList.c rename asn.1/{generated => supl_generated}/GanssRequestedCommonAssistanceDataList.h (82%) create mode 100644 asn.1/supl_generated/GanssRequestedGenericAssistanceDataList.c rename asn.1/{generated => supl_generated}/GanssRequestedGenericAssistanceDataList.h (81%) create mode 100644 asn.1/supl_generated/GeoAreaIndex.c create mode 100644 asn.1/supl_generated/GeoAreaIndex.h create mode 100644 asn.1/supl_generated/GeoAreaMappingList.c rename asn.1/{generated => supl_generated}/GeoAreaMappingList.h (78%) create mode 100644 asn.1/supl_generated/GeoAreaShapesSupported.c rename asn.1/{generated => supl_generated}/GeoAreaShapesSupported.h (78%) create mode 100644 asn.1/supl_generated/GeographicTargetArea.c rename asn.1/{generated => supl_generated}/GeographicTargetArea.h (85%) create mode 100644 asn.1/supl_generated/GeographicTargetAreaList.c rename asn.1/{generated => supl_generated}/GeographicTargetAreaList.h (80%) create mode 100644 asn.1/supl_generated/GsmCellInformation.c rename asn.1/{generated => supl_generated}/GsmCellInformation.h (75%) create mode 100644 asn.1/supl_generated/HRPDAreaId.c rename asn.1/{generated => supl_generated}/HRPDAreaId.h (76%) create mode 100644 asn.1/supl_generated/HistoricReporting.c rename asn.1/{generated => supl_generated}/HistoricReporting.h (75%) create mode 100644 asn.1/supl_generated/Horandveruncert.c rename asn.1/{generated => supl_generated}/Horandveruncert.h (80%) create mode 100644 asn.1/supl_generated/Horandvervel.c rename asn.1/{generated => supl_generated}/Horandvervel.h (78%) create mode 100644 asn.1/supl_generated/Horvel.c rename asn.1/{generated => supl_generated}/Horvel.h (76%) create mode 100644 asn.1/supl_generated/Horveluncert.c rename asn.1/{generated => supl_generated}/Horveluncert.h (78%) create mode 100644 asn.1/supl_generated/HrpdCellInformation.c rename asn.1/{generated => supl_generated}/HrpdCellInformation.h (76%) create mode 100644 asn.1/supl_generated/IPAddress.c rename asn.1/{generated => supl_generated}/IPAddress.h (81%) create mode 100644 asn.1/supl_generated/KeyIdentity.c create mode 100644 asn.1/supl_generated/KeyIdentity.h create mode 100644 asn.1/supl_generated/KeyIdentity4.c create mode 100644 asn.1/supl_generated/KeyIdentity4.h create mode 100644 asn.1/supl_generated/LTEAreaId.c create mode 100644 asn.1/supl_generated/LTEAreaId.h create mode 100644 asn.1/supl_generated/LocationData.c rename asn.1/{generated => supl_generated}/LocationData.h (76%) create mode 100644 asn.1/supl_generated/LocationEncodingDescriptor.c rename asn.1/{generated => supl_generated}/LocationEncodingDescriptor.h (78%) create mode 100644 asn.1/supl_generated/LocationId.c rename asn.1/{generated => supl_generated}/LocationId.h (77%) create mode 100644 asn.1/supl_generated/LocationIdData.c rename asn.1/{generated => supl_generated}/LocationIdData.h (75%) create mode 100644 asn.1/supl_generated/LteCellInformation.c create mode 100644 asn.1/supl_generated/LteCellInformation.h create mode 100644 asn.1/supl_generated/MAC.c create mode 100644 asn.1/supl_generated/MAC.h create mode 100644 asn.1/supl_generated/MCC-MNC-Digit.c create mode 100644 asn.1/supl_generated/MCC-MNC-Digit.h create mode 100644 asn.1/supl_generated/MCC.c rename asn.1/{generated => supl_generated}/MCC.h (75%) create mode 100644 asn.1/supl_generated/MNC.c rename asn.1/{generated => supl_generated}/MNC.h (75%) create mode 100644 asn.1/supl_generated/MeasResultEUTRA.c rename asn.1/{generated => supl_generated}/MeasResultEUTRA.h (79%) create mode 100644 asn.1/supl_generated/MeasResultListEUTRA.c rename asn.1/{generated => supl_generated}/MeasResultListEUTRA.h (79%) create mode 100644 asn.1/supl_generated/MeasuredResults.c create mode 100644 asn.1/supl_generated/MeasuredResults.h create mode 100644 asn.1/supl_generated/MultipleLocationIds.c rename asn.1/{generated => supl_generated}/MultipleLocationIds.h (79%) create mode 100644 asn.1/supl_generated/NMR.c rename asn.1/{generated => supl_generated}/NMR.h (76%) create mode 100644 asn.1/supl_generated/NMRelement.c rename asn.1/{generated => supl_generated}/NMRelement.h (77%) create mode 100644 asn.1/supl_generated/Notification.c create mode 100644 asn.1/supl_generated/Notification.h create mode 100644 asn.1/supl_generated/NotificationMode.c rename asn.1/{generated => supl_generated}/NotificationMode.h (78%) create mode 100644 asn.1/supl_generated/NotificationResponse.c rename asn.1/{generated => supl_generated}/NotificationResponse.h (78%) create mode 100644 asn.1/supl_generated/NotificationType.c rename asn.1/{generated => supl_generated}/NotificationType.h (80%) create mode 100644 asn.1/supl_generated/PLMN-Identity.c create mode 100644 asn.1/supl_generated/PLMN-Identity.h create mode 100644 asn.1/supl_generated/Pathloss.c create mode 100644 asn.1/supl_generated/Pathloss.h create mode 100644 asn.1/supl_generated/PeriodicParams.c rename asn.1/{generated => supl_generated}/PeriodicParams.h (75%) create mode 100644 asn.1/supl_generated/PhysCellId.c create mode 100644 asn.1/supl_generated/PhysCellId.h create mode 100644 asn.1/supl_generated/PolygonArea.c create mode 100644 asn.1/supl_generated/PolygonArea.h create mode 100644 asn.1/supl_generated/PolygonDescription.c rename asn.1/{generated => supl_generated}/PolygonDescription.h (79%) rename asn.1/{generated => supl_generated}/PosMethod.c (77%) rename asn.1/{generated => supl_generated}/PosMethod.h (83%) create mode 100644 asn.1/supl_generated/PosPayLoad.c rename asn.1/{generated => supl_generated}/PosPayLoad.h (85%) create mode 100644 asn.1/supl_generated/PosProtocol.c create mode 100644 asn.1/supl_generated/PosProtocol.h create mode 100644 asn.1/supl_generated/PosProtocolVersion3GPP.c rename asn.1/{generated => supl_generated}/PosProtocolVersion3GPP.h (79%) create mode 100644 asn.1/supl_generated/PosProtocolVersion3GPP2.c rename asn.1/{generated => supl_generated}/PosProtocolVersion3GPP2.h (80%) create mode 100644 asn.1/supl_generated/PosTechnology.c rename asn.1/{generated => supl_generated}/PosTechnology.h (80%) create mode 100644 asn.1/supl_generated/Position.c rename asn.1/{generated => supl_generated}/Position.h (75%) create mode 100644 asn.1/supl_generated/PositionEstimate.c rename asn.1/{generated => supl_generated}/PositionEstimate.h (81%) create mode 100644 asn.1/supl_generated/PrefMethod.c rename asn.1/{generated => supl_generated}/PrefMethod.h (77%) create mode 100644 asn.1/supl_generated/PrimaryCCPCH-RSCP.c create mode 100644 asn.1/supl_generated/PrimaryCCPCH-RSCP.h create mode 100644 asn.1/supl_generated/PrimaryCPICH-Info.c rename asn.1/{generated => supl_generated}/PrimaryCPICH-Info.h (76%) create mode 100644 asn.1/supl_generated/ProtLevel.c rename asn.1/{generated => supl_generated}/ProtLevel.h (77%) create mode 100644 asn.1/supl_generated/ProtectionLevel.c create mode 100644 asn.1/supl_generated/ProtectionLevel.h create mode 100644 asn.1/supl_generated/QoP.c create mode 100644 asn.1/supl_generated/QoP.h create mode 100644 asn.1/supl_generated/RSRP-Range.c create mode 100644 asn.1/supl_generated/RSRP-Range.h create mode 100644 asn.1/supl_generated/RSRQ-Range.c create mode 100644 asn.1/supl_generated/RSRQ-Range.h create mode 100644 asn.1/supl_generated/RTD.c create mode 100644 asn.1/supl_generated/RTD.h create mode 100644 asn.1/supl_generated/RTDUnits.c rename asn.1/{generated => supl_generated}/RTDUnits.h (78%) create mode 100644 asn.1/supl_generated/RelativeTime.c create mode 100644 asn.1/supl_generated/RelativeTime.h create mode 100644 asn.1/supl_generated/RepMode-cap.c rename asn.1/{generated => supl_generated}/RepMode-cap.h (77%) create mode 100644 asn.1/supl_generated/RepMode.c rename asn.1/{generated => supl_generated}/RepMode.h (77%) create mode 100644 asn.1/supl_generated/RepeatedReportingParams.c rename asn.1/{generated => supl_generated}/RepeatedReportingParams.h (79%) create mode 100644 asn.1/supl_generated/ReportData.c create mode 100644 asn.1/supl_generated/ReportData.h create mode 100644 asn.1/supl_generated/ReportDataList.c rename asn.1/{generated => supl_generated}/ReportDataList.h (78%) create mode 100644 asn.1/supl_generated/ReportedLocation.c rename asn.1/{generated => supl_generated}/ReportedLocation.h (79%) create mode 100644 asn.1/supl_generated/ReportingCap.c create mode 100644 asn.1/supl_generated/ReportingCap.h create mode 100644 asn.1/supl_generated/ReportingCriteria.c create mode 100644 asn.1/supl_generated/ReportingCriteria.h create mode 100644 asn.1/supl_generated/ReportingMode.c create mode 100644 asn.1/supl_generated/ReportingMode.h create mode 100644 asn.1/supl_generated/ReqDataBitAssistanceList.c rename asn.1/{generated => supl_generated}/ReqDataBitAssistanceList.h (82%) create mode 100644 asn.1/supl_generated/RequestedAssistData.c rename asn.1/{generated => supl_generated}/RequestedAssistData.h (78%) create mode 100644 asn.1/supl_generated/ResultCode.c rename asn.1/{generated => supl_generated}/ResultCode.h (80%) create mode 100644 asn.1/supl_generated/SET-GANSSReferenceTime.c rename asn.1/{generated => supl_generated}/SET-GANSSReferenceTime.h (88%) create mode 100644 asn.1/supl_generated/SETAuthKey.c rename asn.1/{generated => supl_generated}/SETAuthKey.h (82%) create mode 100644 asn.1/supl_generated/SETCapabilities.c rename asn.1/{generated => supl_generated}/SETCapabilities.h (80%) create mode 100644 asn.1/supl_generated/SETId.c rename asn.1/{generated => supl_generated}/SETId.h (84%) create mode 100644 asn.1/supl_generated/SLPAddress.c rename asn.1/{generated => supl_generated}/SLPAddress.h (82%) create mode 100644 asn.1/supl_generated/SLPMode.c rename asn.1/{generated => supl_generated}/SLPMode.h (76%) create mode 100644 asn.1/supl_generated/SPCSETKey.c create mode 100644 asn.1/supl_generated/SPCSETKey.h create mode 100644 asn.1/supl_generated/SPCSETKeylifetime.c create mode 100644 asn.1/supl_generated/SPCSETKeylifetime.h create mode 100644 asn.1/supl_generated/SPCTID.c rename asn.1/{generated => supl_generated}/SPCTID.h (76%) create mode 100644 asn.1/supl_generated/SUPL-GPSTime.c rename asn.1/{generated => supl_generated}/SUPL-GPSTime.h (76%) create mode 100644 asn.1/supl_generated/SUPL-NavigationModel.c rename asn.1/{generated => supl_generated}/SUPL-NavigationModel.h (77%) create mode 100644 asn.1/supl_generated/SUPL-PositionData.c create mode 100644 asn.1/supl_generated/SUPL-PositionData.h create mode 100644 asn.1/supl_generated/SUPLAUTHREQ.c create mode 100644 asn.1/supl_generated/SUPLAUTHREQ.h create mode 100644 asn.1/supl_generated/SUPLAUTHRESP.c create mode 100644 asn.1/supl_generated/SUPLAUTHRESP.h create mode 100644 asn.1/supl_generated/SUPLEND.c create mode 100644 asn.1/supl_generated/SUPLEND.h create mode 100644 asn.1/supl_generated/SUPLINIT.c create mode 100644 asn.1/supl_generated/SUPLINIT.h create mode 100644 asn.1/supl_generated/SUPLPOS.c create mode 100644 asn.1/supl_generated/SUPLPOS.h create mode 100644 asn.1/supl_generated/SUPLPOSINIT.c create mode 100644 asn.1/supl_generated/SUPLPOSINIT.h create mode 100644 asn.1/supl_generated/SUPLRESPONSE.c create mode 100644 asn.1/supl_generated/SUPLRESPONSE.h create mode 100644 asn.1/supl_generated/SUPLSTART.c create mode 100644 asn.1/supl_generated/SUPLSTART.h create mode 100644 asn.1/supl_generated/SatelliteInfo.c rename asn.1/{generated => supl_generated}/SatelliteInfo.h (78%) create mode 100644 asn.1/supl_generated/SatelliteInfoElement.c rename asn.1/{generated => supl_generated}/SatelliteInfoElement.h (78%) create mode 100644 asn.1/supl_generated/SatellitesListRelatedData.c rename asn.1/{generated => supl_generated}/SatellitesListRelatedData.h (78%) create mode 100644 asn.1/supl_generated/SatellitesListRelatedDataList.c rename asn.1/{generated => supl_generated}/SatellitesListRelatedDataList.h (80%) create mode 100644 asn.1/supl_generated/ServiceCapabilities.c create mode 100644 asn.1/supl_generated/ServiceCapabilities.h create mode 100644 asn.1/supl_generated/ServicesSupported.c rename asn.1/{generated => supl_generated}/ServicesSupported.h (77%) create mode 100644 asn.1/supl_generated/SessionCapabilities.c rename asn.1/{generated => supl_generated}/SessionCapabilities.h (78%) create mode 100644 asn.1/supl_generated/SessionID.c create mode 100644 asn.1/supl_generated/SessionID.h create mode 100644 asn.1/supl_generated/SessionInformation.c rename asn.1/{generated => supl_generated}/SessionInformation.h (78%) create mode 100644 asn.1/supl_generated/SessionList.c rename asn.1/{generated => supl_generated}/SessionList.h (78%) create mode 100644 asn.1/supl_generated/SetSessionID.c rename asn.1/{generated => supl_generated}/SetSessionID.h (76%) create mode 100644 asn.1/supl_generated/SlpSessionID.c rename asn.1/{generated => supl_generated}/SlpSessionID.h (76%) create mode 100644 asn.1/supl_generated/Status.c rename asn.1/{generated => supl_generated}/Status.h (76%) rename asn.1/{generated => supl_generated}/StatusCode.c (81%) rename asn.1/{generated => supl_generated}/StatusCode.h (86%) create mode 100644 asn.1/supl_generated/Supported3GPP2PosProtocolVersion.c rename asn.1/{generated => supl_generated}/Supported3GPP2PosProtocolVersion.h (80%) create mode 100644 asn.1/supl_generated/SupportedBearers.c rename asn.1/{generated => supl_generated}/SupportedBearers.h (79%) create mode 100644 asn.1/supl_generated/SupportedNetworkInformation.c create mode 100644 asn.1/supl_generated/SupportedNetworkInformation.h create mode 100644 asn.1/supl_generated/SupportedWCDMAInfo.c rename asn.1/{generated => supl_generated}/SupportedWCDMAInfo.h (77%) create mode 100644 asn.1/supl_generated/SupportedWLANApData.c rename asn.1/{generated => supl_generated}/SupportedWLANApData.h (84%) create mode 100644 asn.1/supl_generated/SupportedWLANApsChannel11a.c rename asn.1/{generated => supl_generated}/SupportedWLANApsChannel11a.h (82%) create mode 100644 asn.1/supl_generated/SupportedWLANApsChannel11bg.c rename asn.1/{generated => supl_generated}/SupportedWLANApsChannel11bg.h (81%) create mode 100644 asn.1/supl_generated/SupportedWLANApsList.c rename asn.1/{generated => supl_generated}/SupportedWLANApsList.h (75%) create mode 100644 asn.1/supl_generated/SupportedWLANInfo.c rename asn.1/{generated => supl_generated}/SupportedWLANInfo.h (81%) create mode 100644 asn.1/supl_generated/TAResolution.c rename asn.1/{generated => supl_generated}/TAResolution.h (77%) create mode 100644 asn.1/supl_generated/TGSN.c create mode 100644 asn.1/supl_generated/TGSN.h create mode 100644 asn.1/supl_generated/ThirdParty.c rename asn.1/{generated => supl_generated}/ThirdParty.h (77%) rename asn.1/{generated => supl_generated}/ThirdPartyID.c (76%) rename asn.1/{generated => supl_generated}/ThirdPartyID.h (86%) create mode 100644 asn.1/supl_generated/TimeStamp.c rename asn.1/{generated => supl_generated}/TimeStamp.h (81%) create mode 100644 asn.1/supl_generated/TimeWindow.c create mode 100644 asn.1/supl_generated/TimeWindow.h create mode 100644 asn.1/supl_generated/TimeslotISCP-List.c rename asn.1/{generated => supl_generated}/TimeslotISCP-List.h (78%) create mode 100644 asn.1/supl_generated/TimeslotISCP.c create mode 100644 asn.1/supl_generated/TimeslotISCP.h create mode 100644 asn.1/supl_generated/TimingAdvance.c create mode 100644 asn.1/supl_generated/TimingAdvance.h create mode 100644 asn.1/supl_generated/TrackingAreaCode.c create mode 100644 asn.1/supl_generated/TrackingAreaCode.h create mode 100644 asn.1/supl_generated/TriggerParams.c rename asn.1/{generated => supl_generated}/TriggerParams.h (83%) create mode 100644 asn.1/supl_generated/TriggerType.c rename asn.1/{generated => supl_generated}/TriggerType.h (77%) create mode 100644 asn.1/supl_generated/UARFCN.c create mode 100644 asn.1/supl_generated/UARFCN.h create mode 100644 asn.1/supl_generated/ULP-MeasuredResultsList.c rename asn.1/{generated => supl_generated}/ULP-MeasuredResultsList.h (80%) create mode 100644 asn.1/supl_generated/ULP-PDU.c rename asn.1/{generated => supl_generated}/ULP-PDU.h (75%) create mode 100644 asn.1/supl_generated/ULP-Velocity.c rename asn.1/{generated => supl_generated}/ULP-Velocity.h (85%) create mode 100644 asn.1/supl_generated/UMBAreaId.c create mode 100644 asn.1/supl_generated/UMBAreaId.h create mode 100644 asn.1/supl_generated/UTRA-CarrierRSSI.c create mode 100644 asn.1/supl_generated/UTRA-CarrierRSSI.h create mode 100644 asn.1/supl_generated/UTRAN-GANSSReferenceTime.c rename asn.1/{generated => supl_generated}/UTRAN-GANSSReferenceTime.h (85%) create mode 100644 asn.1/supl_generated/UTRAN-GANSSReferenceTimeAssistance.c rename asn.1/{generated => supl_generated}/UTRAN-GANSSReferenceTimeAssistance.h (76%) create mode 100644 asn.1/supl_generated/UTRAN-GANSSReferenceTimeResult.c rename asn.1/{generated => supl_generated}/UTRAN-GANSSReferenceTimeResult.h (81%) create mode 100644 asn.1/supl_generated/UTRAN-GPSReferenceTime.c rename asn.1/{generated => supl_generated}/UTRAN-GPSReferenceTime.h (89%) create mode 100644 asn.1/supl_generated/UTRAN-GPSReferenceTimeAssistance.c create mode 100644 asn.1/supl_generated/UTRAN-GPSReferenceTimeAssistance.h create mode 100644 asn.1/supl_generated/UTRAN-GPSReferenceTimeResult.c rename asn.1/{generated => supl_generated}/UTRAN-GPSReferenceTimeResult.h (88%) rename asn.1/{generated => supl_generated}/UTRANGANSSDriftRate.c (77%) rename asn.1/{generated => supl_generated}/UTRANGANSSDriftRate.h (84%) rename asn.1/{generated => supl_generated}/UTRANGPSDriftRate.c (76%) rename asn.1/{generated => supl_generated}/UTRANGPSDriftRate.h (83%) create mode 100644 asn.1/supl_generated/UlpMessage.c rename asn.1/{generated => supl_generated}/UlpMessage.h (91%) create mode 100644 asn.1/supl_generated/UmbCellInformation.c rename asn.1/{generated => supl_generated}/UmbCellInformation.h (80%) create mode 100644 asn.1/supl_generated/Ver.c create mode 100644 asn.1/supl_generated/Ver.h create mode 100644 asn.1/supl_generated/Ver2-CellInfo-extension.c rename asn.1/{generated => supl_generated}/Ver2-CellInfo-extension.h (87%) create mode 100644 asn.1/supl_generated/Ver2-Notification-extension.c rename asn.1/{generated => supl_generated}/Ver2-Notification-extension.h (75%) create mode 100644 asn.1/supl_generated/Ver2-PosPayLoad-extension.c rename asn.1/{generated => supl_generated}/Ver2-PosPayLoad-extension.h (83%) create mode 100644 asn.1/supl_generated/Ver2-PosProtocol-extension.c create mode 100644 asn.1/supl_generated/Ver2-PosProtocol-extension.h create mode 100644 asn.1/supl_generated/Ver2-PosTechnology-extension.c rename asn.1/{generated => supl_generated}/Ver2-PosTechnology-extension.h (75%) create mode 100644 asn.1/supl_generated/Ver2-RequestedAssistData-extension.c create mode 100644 asn.1/supl_generated/Ver2-RequestedAssistData-extension.h create mode 100644 asn.1/supl_generated/Ver2-SETCapabilities-extension.c create mode 100644 asn.1/supl_generated/Ver2-SETCapabilities-extension.h create mode 100644 asn.1/supl_generated/Ver2-SUPL-END-extension.c create mode 100644 asn.1/supl_generated/Ver2-SUPL-END-extension.h create mode 100644 asn.1/supl_generated/Ver2-SUPL-INIT-extension.c create mode 100644 asn.1/supl_generated/Ver2-SUPL-INIT-extension.h create mode 100644 asn.1/supl_generated/Ver2-SUPL-POS-INIT-extension.c create mode 100644 asn.1/supl_generated/Ver2-SUPL-POS-INIT-extension.h create mode 100644 asn.1/supl_generated/Ver2-SUPL-POS-extension.c create mode 100644 asn.1/supl_generated/Ver2-SUPL-POS-extension.h create mode 100644 asn.1/supl_generated/Ver2-SUPL-RESPONSE-extension.c create mode 100644 asn.1/supl_generated/Ver2-SUPL-RESPONSE-extension.h create mode 100644 asn.1/supl_generated/Ver2-SUPL-START-extension.c create mode 100644 asn.1/supl_generated/Ver2-SUPL-START-extension.h create mode 100644 asn.1/supl_generated/Ver2-SUPLNOTIFY.c rename asn.1/{generated => supl_generated}/Ver2-SUPLNOTIFY.h (78%) create mode 100644 asn.1/supl_generated/Ver2-SUPLNOTIFYRESPONSE.c create mode 100644 asn.1/supl_generated/Ver2-SUPLNOTIFYRESPONSE.h create mode 100644 asn.1/supl_generated/Ver2-SUPLREPORT.c create mode 100644 asn.1/supl_generated/Ver2-SUPLREPORT.h create mode 100644 asn.1/supl_generated/Ver2-SUPLSETINIT.c create mode 100644 asn.1/supl_generated/Ver2-SUPLSETINIT.h create mode 100644 asn.1/supl_generated/Ver2-SUPLTRIGGEREDRESPONSE.c create mode 100644 asn.1/supl_generated/Ver2-SUPLTRIGGEREDRESPONSE.h create mode 100644 asn.1/supl_generated/Ver2-SUPLTRIGGEREDSTART.c create mode 100644 asn.1/supl_generated/Ver2-SUPLTRIGGEREDSTART.h create mode 100644 asn.1/supl_generated/Ver2-SUPLTRIGGEREDSTOP.c rename asn.1/{generated => supl_generated}/Ver2-SUPLTRIGGEREDSTOP.h (75%) create mode 100644 asn.1/supl_generated/Version.c create mode 100644 asn.1/supl_generated/Version.h create mode 100644 asn.1/supl_generated/WCDMAAreaId.c create mode 100644 asn.1/supl_generated/WCDMAAreaId.h create mode 100644 asn.1/supl_generated/WLANAreaId.c rename asn.1/{generated => supl_generated}/WLANAreaId.h (76%) create mode 100644 asn.1/supl_generated/WcdmaCellInformation.c create mode 100644 asn.1/supl_generated/WcdmaCellInformation.h create mode 100644 asn.1/supl_generated/WimaxAreaId.c create mode 100644 asn.1/supl_generated/WimaxAreaId.h create mode 100644 asn.1/supl_generated/WimaxBSInformation.c create mode 100644 asn.1/supl_generated/WimaxBSInformation.h create mode 100644 asn.1/supl_generated/WimaxBsID.c create mode 100644 asn.1/supl_generated/WimaxBsID.h create mode 100644 asn.1/supl_generated/WimaxNMR.c create mode 100644 asn.1/supl_generated/WimaxNMR.h create mode 100644 asn.1/supl_generated/WimaxNMRList.c rename asn.1/{generated => supl_generated}/WimaxNMRList.h (78%) create mode 100644 asn.1/supl_generated/WimaxRTD.c create mode 100644 asn.1/supl_generated/WimaxRTD.h create mode 100644 asn.1/supl_generated/WlanAPInformation.c create mode 100644 asn.1/supl_generated/WlanAPInformation.h create mode 100644 asn.1/supl_generated/asn_config.h create mode 100644 asn.1/supl_generated/asn_constant.h diff --git a/CHANGELOG.md b/CHANGELOG.md index 37c87538..18e5329d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,12 @@ # Changelog -## [3.4.*] +## [3.4.7] 2024-04-25 - Added support for UBX-RXM-RTCM messages. - Added support for UBX-RXM-SPARTN messages. - Added new format option `lrf-uper` to output RTCM framed UPER encoded 3GPP LPP messages. +- Updated 3GPP LPP version from Release 16.4.0 to Release 18.1.0. +- HA-GNSS-Metrics data is now included in the `ProvideLocationInformation` message. +- Fix memory leak from ProvideLocationInformation. ## [3.4.6] 2024-04-04 - You can optionally include/exclude which generators to build by using the CMake options `-DINCLUDE_GENERATOR_*`. By default, RTCM and SPARTN generators are included and the old SPARTN generator is excluded. @@ -17,7 +20,7 @@ - Building with OpenSSL support is now off by default. To enable it, use `-DUSE_OPENSSL=ON` when building with CMake. - Experimental changes can now be toggled with `-DEXPERIMENTAL=ON` when building with CMake. -## [3.4.4] 2024-03-06 +## [3.4.4] 2024-03-06 - Fixed message nullptr exception. - IMSI and MSISDN used `unsigned long` which doesn't have enough bits to store all possible values. Changed to `unsigned long long`. - Added support to use 5G NR cells in addition to LTE cells. diff --git a/CMakeLists.txt b/CMakeLists.txt index 554a74d2..4f58685b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,8 +36,8 @@ find_package(OpenSSL REQUIRED) endif (USE_OPENSSL) add_definitions(-D_POSIX_C_SOURCE=200809L) -add_definitions(-DCLIENT_VERSION="3.4.6") -add_definitions(-DCLIENT_VERSION_INT=0x030406) +add_definitions(-DCLIENT_VERSION="3.4.7") +add_definitions(-DCLIENT_VERSION_INT=0x030407) if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") add_definitions(-DCOMPILER_CANNOT_DEDUCE_UNREACHABLE=1) diff --git a/README.md b/README.md index d42b662e..ff2b2881 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # SUPL 3GPP LPP client -![version](https://img.shields.io/badge/version-3.4.4-green) +![version](https://img.shields.io/badge/version-3.4.7-green) ![license](https://img.shields.io/badge/license-MXM-blue) This project is a set of libraries, examples and tools to facilitate the development of 3GPP LPP clients. diff --git a/asn.1/AUTHORS b/asn.1/AUTHORS new file mode 100644 index 00000000..5aab1035 --- /dev/null +++ b/asn.1/AUTHORS @@ -0,0 +1,32 @@ +Full list of copyright holders: + +Rob Stradling +Bartosz Marcinkiewicz +Bent Nicolaisen +Bi-Ruei, Chiu +Damir Franusic +Daniele Varrazzo +Dave Cridland +Denis Filatov (DanyaFilatov @ github) +daa @ github +Eric Sesterhenn +Erika Thorsen (akire @ github) +gareins @ github +johvik @ github +Jon Ringle (ringlej @ github) +kuepe-sl @ github +Lev Walkin +Max Khon (mkhon @ github) +Maxim Kuzmin (AuthenticEshkinKot @ github) +mouse07410 @ github +Oskar Holmlund (ikarso @ github) +Ray Zhang (zhanglei002 @ github) +Rob Stradling +Russ Kubik +Simo Sorce +theirix @ github +Uri Blumenthal +Vasil Velichkov (velichkov @ github) +Wim L +ymbirtt @ github +Google Inc. \ No newline at end of file diff --git a/asn.1/CMakeLists.txt b/asn.1/CMakeLists.txt index c0d04220..eafabb56 100644 --- a/asn.1/CMakeLists.txt +++ b/asn.1/CMakeLists.txt @@ -1,23 +1,310 @@ -file(GLOB_RECURSE ASN1_SOURCE "generated/*.c") -add_library(asn1_generated STATIC ${ASN1_SOURCE}) -add_library(asn1::generated ALIAS asn1_generated) +set(ASN1_XER_SUPPORT ON CACHE BOOL "Enable XER support") +set(ASN1_JER_SUPPORT ON CACHE BOOL "Enable JER support") +set(ASN1_OER_SUPPORT OFF CACHE BOOL "Enable OER support") +set(ASN1_UPER_SUPPORT ON CACHE BOOL "Enable APER support") +set(ASN1_APER_SUPPORT OFF CACHE BOOL "Enable APER support") +set(ASN1_BER_SUPPORT OFF CACHE BOOL "Enable BER support") +set(ASN1_RFILL_SUPPORT OFF CACHE BOOL "Enable RFILL support") +set(ASN1_PRINT_SUPPORT OFF CACHE BOOL "Enable PRINT support") -target_compile_definitions(asn1_generated PUBLIC "ASN_DISABLE_OER_SUPPORT=1") -target_include_directories(asn1_generated PUBLIC "generated") +function(asn1_target_setup target) + if(NOT ${ASN1_XER_SUPPORT}) + target_compile_definitions(${target} PUBLIC "ASN_DISABLE_XER_SUPPORT=1") + endif() -if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - target_compile_options(asn1_generated PRIVATE - "-Wno-parentheses-equality" - "-Wno-unused-but-set-variable" + if(NOT ${ASN1_JER_SUPPORT}) + target_compile_definitions(${target} PUBLIC "ASN_DISABLE_JER_SUPPORT=1") + endif() + + if(NOT ${ASN1_OER_SUPPORT}) + target_compile_definitions(${target} PUBLIC "ASN_DISABLE_OER_SUPPORT=1") + endif() + + if(NOT ${ASN1_UPER_SUPPORT}) + target_compile_definitions(${target} PUBLIC "ASN_DISABLE_UPER_SUPPORT=1") + endif() + + if(NOT ${ASN1_APER_SUPPORT}) + target_compile_definitions(${target} PUBLIC "ASN_DISABLE_APER_SUPPORT=1") + endif() + + if(NOT ${ASN1_BER_SUPPORT}) + target_compile_definitions(${target} PUBLIC "ASN_DISABLE_BER_SUPPORT=1") + endif() + + if(NOT ${ASN1_RFILL_SUPPORT}) + target_compile_definitions(${target} PUBLIC "ASN_DISABLE_RFILL_SUPPORT=1") + endif() + + if(NOT ${ASN1_PRINT_SUPPORT}) + target_compile_definitions(${target} PUBLIC "ASN_DISABLE_PRINT_SUPPORT=1") + endif() + + if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + target_compile_options(${target} PRIVATE + "-Wno-parentheses-equality" + "-Wno-unused-but-set-variable" + ) + elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + + endif() + + # TODO(ewasjon): I don't think the ASN.1 generated code should be compiled with ASAN. + if (${USE_ASAN}) + target_compile_options(${target} PRIVATE -fsanitize=address,undefined,leak) + target_link_libraries(${target} PRIVATE -fsanitize=address,undefined,leak) + endif () +endfunction() + +# +# Skeleton ASN.1 +# + +set(ASN1_SKELETON_SOURCE "") + +if (ASN1_XER_SUPPORT) + file(GLOB_RECURSE ASN1_XER_SOURCE "skeleton/*_xer.c") + list(APPEND ASN1_SKELETON_SOURCE ${ASN1_XER_SOURCE}) + list(APPEND ASN1_SKELETON_SOURCE + "skeleton/xer_decoder.c" + "skeleton/xer_decoder.h" + "skeleton/xer_encoder.c" + "skeleton/xer_encoder.h" + "skeleton/xer_support.c" + "skeleton/xer_support.h" ) -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") +endif() + +if (ASN1_JER_SUPPORT) + file(GLOB_RECURSE ASN1_JER_SOURCE "skeleton/*_jer.c") + list(APPEND ASN1_SKELETON_SOURCE ${ASN1_JER_SOURCE}) + list(APPEND ASN1_SKELETON_SOURCE + "skeleton/jer_decoder.c" + "skeleton/jer_decoder.h" + "skeleton/jer_encoder.c" + "skeleton/jer_encoder.h" + "skeleton/jer_support.c" + "skeleton/jer_support.h" + ) +endif() +if (ASN1_OER_SUPPORT) + file(GLOB_RECURSE ASN1_OER_SOURCE "skeleton/*_oer.c") + list(APPEND ASN1_SKELETON_SOURCE ${ASN1_OER_SOURCE}) + list(APPEND ASN1_SKELETON_SOURCE + "skeleton/oer_decoder.c" + "skeleton/oer_decoder.h" + "skeleton/oer_encoder.c" + "skeleton/oer_encoder.h" + "skeleton/oer_support.c" + "skeleton/oer_support.h" + ) +endif() + +if (ASN1_UPER_SUPPORT) + file(GLOB_RECURSE ASN1_UPER_SOURCE "skeleton/*_uper.c") + list(APPEND ASN1_SKELETON_SOURCE ${ASN1_UPER_SOURCE}) + list(APPEND ASN1_SKELETON_SOURCE + "skeleton/uper_decoder.c" + "skeleton/uper_decoder.h" + "skeleton/uper_encoder.c" + "skeleton/uper_encoder.h" + "skeleton/uper_opentype.c" + "skeleton/uper_opentype.h" + "skeleton/uper_support.c" + "skeleton/uper_support.h" + ) +endif() + +if (ASN1_APER_SUPPORT) + file(GLOB_RECURSE ASN1_APER_SOURCE "skeleton/*_aper.c") + list(APPEND ASN1_SKELETON_SOURCE ${ASN1_APER_SOURCE}) + list(APPEND ASN1_SKELETON_SOURCE + "skeleton/aper_decoder.c" + "skeleton/aper_decoder.h" + "skeleton/aper_encoder.c" + "skeleton/aper_encoder.h" + "skeleton/aper_opentype.c" + "skeleton/aper_opentype.h" + "skeleton/aper_support.c" + "skeleton/aper_support.h" + ) endif() -if (USE_ASAN) -target_compile_options(asn1_generated PRIVATE -fsanitize=address,undefined,leak) -target_link_libraries(asn1_generated PRIVATE -fsanitize=address,undefined,leak) -endif (USE_ASAN) +# UPER OR APER +if (ASN1_UPER_SUPPORT OR ASN1_APER_SUPPORT) + list(APPEND ASN1_SKELETON_SOURCE + "skeleton/per_decoder.c" + "skeleton/per_decoder.h" + "skeleton/per_encoder.c" + "skeleton/per_encoder.h" + "skeleton/per_opentype.c" + "skeleton/per_opentype.h" + "skeleton/per_support.c" + "skeleton/per_support.h" + ) +endif() + +if (ASN1_BER_SUPPORT) + file(GLOB_RECURSE ASN1_BER_SOURCE "skeleton/*_ber.c") + list(APPEND ASN1_SKELETON_SOURCE ${ASN1_BER_SOURCE}) + list(APPEND ASN1_SKELETON_SOURCE + "skeleton/ber_decoder.c" + "skeleton/ber_decoder.h" + "skeleton/ber_tlv_length.c" + "skeleton/ber_tlv_length.h" + "skeleton/ber_tlv_tag.c" + "skeleton/ber_tlv_tag.h" + "skeleton/der_encoder.c" + "skeleton/der_encoder.h" + ) +endif() + +if (ASN1_RFILL_SUPPORT) + file(GLOB_RECURSE ASN1_RFILL_SOURCE "skeleton/*_rfill.c") + list(APPEND ASN1_SKELETON_SOURCE ${ASN1_RFILL_SOURCE}) + list(APPEND ASN1_SKELETON_SOURCE + "skeleton/asn_random_fill.c" + "skeleton/asn_random_fill.h" + ) +endif() + +if (ASN1_PRINT_SUPPORT) + file(GLOB_RECURSE ASN1_PRINT_SOURCE "skeleton/*_print.c") + list(APPEND ASN1_SKELETON_SOURCE ${ASN1_PRINT_SOURCE}) +endif() + +# Common skeleton files +list(APPEND ASN1_SKELETON_SOURCE + "skeleton/ANY.c" + "skeleton/ANY.h" + "skeleton/BIT_STRING.c" + "skeleton/BIT_STRING.h" + "skeleton/BMPString.c" + "skeleton/BMPString.h" + "skeleton/BOOLEAN.c" + "skeleton/BOOLEAN.h" + "skeleton/ENUMERATED.c" + "skeleton/ENUMERATED.h" + "skeleton/GeneralString.c" + "skeleton/GeneralString.h" + "skeleton/GeneralizedTime.c" + "skeleton/GeneralizedTime.h" + "skeleton/GraphicString.c" + "skeleton/GraphicString.h" + "skeleton/IA5String.c" + "skeleton/IA5String.h" + "skeleton/INTEGER.c" + "skeleton/INTEGER.h" + "skeleton/ISO646String.c" + "skeleton/ISO646String.h" + "skeleton/NULL.c" + "skeleton/NULL.h" + "skeleton/NativeEnumerated.c" + "skeleton/NativeEnumerated.h" + "skeleton/NativeInteger.c" + "skeleton/NativeInteger.h" + "skeleton/NativeReal.c" + "skeleton/NativeReal.h" + "skeleton/NumericString.c" + "skeleton/NumericString.h" + "skeleton/OBJECT_IDENTIFIER.c" + "skeleton/OBJECT_IDENTIFIER.h" + "skeleton/OCTET_STRING.c" + "skeleton/OCTET_STRING.h" + "skeleton/OPEN_TYPE.c" + "skeleton/OPEN_TYPE.h" + "skeleton/ObjectDescriptor.c" + "skeleton/ObjectDescriptor.h" + "skeleton/PrintableString.c" + "skeleton/PrintableString.h" + "skeleton/REAL.c" + "skeleton/REAL.h" + "skeleton/RELATIVE-OID.c" + "skeleton/RELATIVE-OID.h" + "skeleton/T61String.c" + "skeleton/T61String.h" + "skeleton/TeletexString.c" + "skeleton/TeletexString.h" + "skeleton/UTCTime.c" + "skeleton/UTCTime.h" + "skeleton/UTF8String.c" + "skeleton/UTF8String.h" + "skeleton/UniversalString.c" + "skeleton/UniversalString.h" + "skeleton/VideotexString.c" + "skeleton/VideotexString.h" + "skeleton/VisibleString.c" + "skeleton/VisibleString.h" + "skeleton/asn_SEQUENCE_OF.c" + "skeleton/asn_SEQUENCE_OF.h" + "skeleton/asn_SET_OF.c" + "skeleton/asn_SET_OF.h" + "skeleton/asn_application.c" + "skeleton/asn_application.h" + "skeleton/asn_bit_data.c" + "skeleton/asn_bit_data.h" + "skeleton/asn_codecs.h" + "skeleton/asn_codecs_prim.c" + "skeleton/asn_codecs_prim.h" + "skeleton/asn_config.h" + "skeleton/asn_internal.c" + "skeleton/asn_internal.h" + "skeleton/asn_ioc.h" + "skeleton/asn_system.h" + "skeleton/constr_CHOICE.c" + "skeleton/constr_CHOICE.h" + "skeleton/constr_SEQUENCE.c" + "skeleton/constr_SEQUENCE.h" + "skeleton/constr_SEQUENCE_OF.c" + "skeleton/constr_SEQUENCE_OF.h" + "skeleton/constr_SET.c" + "skeleton/constr_SET.h" + "skeleton/constr_SET_OF.c" + "skeleton/constr_SET_OF.h" + "skeleton/constr_TYPE.c" + "skeleton/constr_TYPE.h" + "skeleton/constraints.c" + "skeleton/constraints.h" +) + +add_library(asn1_skeleton STATIC ${ASN1_SKELETON_SOURCE}) +add_library(asn1::skeleton ALIAS asn1_skeleton) + +asn1_target_setup(asn1_skeleton) +target_include_directories(asn1_skeleton PUBLIC "skeleton") + +# +# SUPL ASN.1 +# + +file(GLOB_RECURSE ASN1_SUPL_SOURCE "supl_generated/*.c") +file(GLOB_RECURSE ASN1_SUPL_HEADER "supl_generated/*.h") + +add_library(asn1_supl_generated STATIC ${ASN1_SUPL_SOURCE} ${ASN1_SUPL_HEADER}) +add_library(asn1::generated::supl ALIAS asn1_supl_generated) + +asn1_target_setup(asn1_supl_generated) +target_link_libraries(asn1_supl_generated PUBLIC asn1::skeleton) +target_include_directories(asn1_supl_generated PUBLIC "supl_generated") + +# +# 3GPP LPP ASN.1 +# + +file(GLOB_RECURSE ASN1_LPP_SOURCE "lpp_generated/*.c") +file(GLOB_RECURSE ASN1_LPP_HEADER "lpp_generated/*.h") + +add_library(asn1_lpp_generated STATIC ${ASN1_LPP_SOURCE} ${ASN1_LPP_HEADER}) +add_library(asn1::generated::lpp ALIAS asn1_lpp_generated) + +asn1_target_setup(asn1_lpp_generated) +target_link_libraries(asn1_lpp_generated PUBLIC asn1::skeleton) +target_include_directories(asn1_lpp_generated PUBLIC "lpp_generated") + +# +# Helper +# add_subdirectory(helper) diff --git a/asn.1/LICENSE b/asn.1/LICENSE new file mode 100644 index 00000000..019096e5 --- /dev/null +++ b/asn.1/LICENSE @@ -0,0 +1,23 @@ +Copyright (c) 2003-2017 Lev Walkin and contributors. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. \ No newline at end of file diff --git a/asn.1/README b/asn.1/README new file mode 100644 index 00000000..4cd6b28c --- /dev/null +++ b/asn.1/README @@ -0,0 +1,8 @@ +This directory contains the generated C code for SUPL and LPP. + +Generated by asn1c at Tue Apr 9 16:14:47 CEST 2024 + commit: 940dd5fa9f3917913fd487b13dfddfacd0ded06e + version: 0.9.29 + branch: vlm_master + repository: https://github.com/mouse07410/asn1c + diff --git a/asn.1/generated/A-GNSS-Error.c b/asn.1/generated/A-GNSS-Error.c deleted file mode 100644 index 54365164..00000000 --- a/asn.1/generated/A-GNSS-Error.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "A-GNSS-Error.h" - -asn_per_constraints_t asn_PER_type_A_GNSS_Error_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_A_GNSS_Error_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct A_GNSS_Error, choice.locationServerErrorCauses), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_LocationServerErrorCauses, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationServerErrorCauses" - }, - { ATF_NOFLAGS, 0, offsetof(struct A_GNSS_Error, choice.targetDeviceErrorCauses), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_TargetDeviceErrorCauses, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "targetDeviceErrorCauses" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_A_GNSS_Error_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses */ -}; -asn_CHOICE_specifics_t asn_SPC_A_GNSS_Error_specs_1 = { - sizeof(struct A_GNSS_Error), - offsetof(struct A_GNSS_Error, _asn_ctx), - offsetof(struct A_GNSS_Error, present), - sizeof(((struct A_GNSS_Error *)0)->present), - asn_MAP_A_GNSS_Error_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_A_GNSS_Error = { - "A-GNSS-Error", - "A-GNSS-Error", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_A_GNSS_Error_constr_1, CHOICE_constraint }, - asn_MBR_A_GNSS_Error_1, - 2, /* Elements count */ - &asn_SPC_A_GNSS_Error_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/A-GNSS-ProvideAssistanceData.c b/asn.1/generated/A-GNSS-ProvideAssistanceData.c deleted file mode 100644 index ddd7fe2b..00000000 --- a/asn.1/generated/A-GNSS-ProvideAssistanceData.c +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "A-GNSS-ProvideAssistanceData.h" - -static asn_TYPE_member_t asn_MBR_ext1_6[] = { - { ATF_POINTER, 1, offsetof(struct A_GNSS_ProvideAssistanceData__ext1, gnss_PeriodicAssistData_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicAssistData_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-PeriodicAssistData-r15" - }, -}; -static const int asn_MAP_ext1_oms_6[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-PeriodicAssistData-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = { - sizeof(struct A_GNSS_ProvideAssistanceData__ext1), - offsetof(struct A_GNSS_ProvideAssistanceData__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_6, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_6, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_6 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_6, - sizeof(asn_DEF_ext1_tags_6) - /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_6, /* Same as above */ - sizeof(asn_DEF_ext1_tags_6) - /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_6, - 1, /* Elements count */ - &asn_SPC_ext1_specs_6 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_A_GNSS_ProvideAssistanceData_1[] = { - { ATF_POINTER, 4, offsetof(struct A_GNSS_ProvideAssistanceData, gnss_CommonAssistData), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_CommonAssistData, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-CommonAssistData" - }, - { ATF_POINTER, 3, offsetof(struct A_GNSS_ProvideAssistanceData, gnss_GenericAssistData), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_GenericAssistData, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-GenericAssistData" - }, - { ATF_POINTER, 2, offsetof(struct A_GNSS_ProvideAssistanceData, gnss_Error), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_A_GNSS_Error, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-Error" - }, - { ATF_POINTER, 1, offsetof(struct A_GNSS_ProvideAssistanceData, ext1), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - 0, - &asn_DEF_ext1_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_A_GNSS_ProvideAssistanceData_oms_1[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_A_GNSS_ProvideAssistanceData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_A_GNSS_ProvideAssistanceData_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-CommonAssistData */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-GenericAssistData */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-Error */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_ProvideAssistanceData_specs_1 = { - sizeof(struct A_GNSS_ProvideAssistanceData), - offsetof(struct A_GNSS_ProvideAssistanceData, _asn_ctx), - asn_MAP_A_GNSS_ProvideAssistanceData_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_A_GNSS_ProvideAssistanceData_oms_1, /* Optional members */ - 3, 1, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_A_GNSS_ProvideAssistanceData = { - "A-GNSS-ProvideAssistanceData", - "A-GNSS-ProvideAssistanceData", - &asn_OP_SEQUENCE, - asn_DEF_A_GNSS_ProvideAssistanceData_tags_1, - sizeof(asn_DEF_A_GNSS_ProvideAssistanceData_tags_1) - /sizeof(asn_DEF_A_GNSS_ProvideAssistanceData_tags_1[0]), /* 1 */ - asn_DEF_A_GNSS_ProvideAssistanceData_tags_1, /* Same as above */ - sizeof(asn_DEF_A_GNSS_ProvideAssistanceData_tags_1) - /sizeof(asn_DEF_A_GNSS_ProvideAssistanceData_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_A_GNSS_ProvideAssistanceData_1, - 4, /* Elements count */ - &asn_SPC_A_GNSS_ProvideAssistanceData_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/A-GNSS-ProvideAssistanceData.h b/asn.1/generated/A-GNSS-ProvideAssistanceData.h deleted file mode 100644 index 6319b9bb..00000000 --- a/asn.1/generated/A-GNSS-ProvideAssistanceData.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _A_GNSS_ProvideAssistanceData_H_ -#define _A_GNSS_ProvideAssistanceData_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct GNSS_CommonAssistData; -struct GNSS_GenericAssistData; -struct A_GNSS_Error; -struct GNSS_PeriodicAssistData_r15; - -/* A-GNSS-ProvideAssistanceData */ -typedef struct A_GNSS_ProvideAssistanceData { - struct GNSS_CommonAssistData *gnss_CommonAssistData /* OPTIONAL */; - struct GNSS_GenericAssistData *gnss_GenericAssistData /* OPTIONAL */; - struct A_GNSS_Error *gnss_Error /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct A_GNSS_ProvideAssistanceData__ext1 { - struct GNSS_PeriodicAssistData_r15 *gnss_PeriodicAssistData_r15 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} A_GNSS_ProvideAssistanceData_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_A_GNSS_ProvideAssistanceData; -extern asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_ProvideAssistanceData_specs_1; -extern asn_TYPE_member_t asn_MBR_A_GNSS_ProvideAssistanceData_1[4]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GNSS-CommonAssistData.h" -#include "GNSS-GenericAssistData.h" -#include "A-GNSS-Error.h" -#include "GNSS-PeriodicAssistData-r15.h" - -#endif /* _A_GNSS_ProvideAssistanceData_H_ */ -#include diff --git a/asn.1/generated/A-GNSS-ProvideCapabilities.c b/asn.1/generated/A-GNSS-ProvideCapabilities.c deleted file mode 100644 index d49b162b..00000000 --- a/asn.1/generated/A-GNSS-ProvideCapabilities.c +++ /dev/null @@ -1,282 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "A-GNSS-ProvideCapabilities.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_periodicAssistanceData_r15_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_idleStateForMeasurements_r14_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_periodicAssistanceData_r15_constr_12 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_idleStateForMeasurements_r14_value2enum_9[] = { - { 0, 8, "required" } -}; -static const unsigned int asn_MAP_idleStateForMeasurements_r14_enum2value_9[] = { - 0 /* required(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_idleStateForMeasurements_r14_specs_9 = { - asn_MAP_idleStateForMeasurements_r14_value2enum_9, /* "tag" => N; sorted by tag */ - asn_MAP_idleStateForMeasurements_r14_enum2value_9, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_idleStateForMeasurements_r14_tags_9[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_idleStateForMeasurements_r14_9 = { - "idleStateForMeasurements-r14", - "idleStateForMeasurements-r14", - &asn_OP_NativeEnumerated, - asn_DEF_idleStateForMeasurements_r14_tags_9, - sizeof(asn_DEF_idleStateForMeasurements_r14_tags_9) - /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_9[0]) - 1, /* 1 */ - asn_DEF_idleStateForMeasurements_r14_tags_9, /* Same as above */ - sizeof(asn_DEF_idleStateForMeasurements_r14_tags_9) - /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_9[0]), /* 2 */ - { 0, &asn_PER_type_idleStateForMeasurements_r14_constr_9, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_idleStateForMeasurements_r14_specs_9 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_7[] = { - { ATF_POINTER, 2, offsetof(struct A_GNSS_ProvideCapabilities__ext1, periodicalReportingNotSupported_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PositioningModes, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "periodicalReportingNotSupported-r14" - }, - { ATF_POINTER, 1, offsetof(struct A_GNSS_ProvideCapabilities__ext1, idleStateForMeasurements_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_idleStateForMeasurements_r14_9, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "idleStateForMeasurements-r14" - }, -}; -static const int asn_MAP_ext1_oms_7[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* periodicalReportingNotSupported-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* idleStateForMeasurements-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { - sizeof(struct A_GNSS_ProvideCapabilities__ext1), - offsetof(struct A_GNSS_ProvideCapabilities__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_7, - 2, /* Count of tags in the map */ - asn_MAP_ext1_oms_7, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_7 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_7, - sizeof(asn_DEF_ext1_tags_7) - /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_7, /* Same as above */ - sizeof(asn_DEF_ext1_tags_7) - /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_7, - 2, /* Elements count */ - &asn_SPC_ext1_specs_7 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_11[] = { - { ATF_POINTER, 1, offsetof(struct A_GNSS_ProvideCapabilities__ext2, periodicAssistanceData_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_periodicAssistanceData_r15_constr_12, memb_periodicAssistanceData_r15_constraint_11 }, - 0, 0, /* No default value */ - "periodicAssistanceData-r15" - }, -}; -static const int asn_MAP_ext2_oms_11[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_11[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_11[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* periodicAssistanceData-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_11 = { - sizeof(struct A_GNSS_ProvideCapabilities__ext2), - offsetof(struct A_GNSS_ProvideCapabilities__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_11, - 1, /* Count of tags in the map */ - asn_MAP_ext2_oms_11, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_11 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_11, - sizeof(asn_DEF_ext2_tags_11) - /sizeof(asn_DEF_ext2_tags_11[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_11, /* Same as above */ - sizeof(asn_DEF_ext2_tags_11) - /sizeof(asn_DEF_ext2_tags_11[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_11, - 1, /* Elements count */ - &asn_SPC_ext2_specs_11 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_A_GNSS_ProvideCapabilities_1[] = { - { ATF_POINTER, 6, offsetof(struct A_GNSS_ProvideCapabilities, gnss_SupportList), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SupportList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SupportList" - }, - { ATF_POINTER, 5, offsetof(struct A_GNSS_ProvideCapabilities, assistanceDataSupportList), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AssistanceDataSupportList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "assistanceDataSupportList" - }, - { ATF_POINTER, 4, offsetof(struct A_GNSS_ProvideCapabilities, locationCoordinateTypes), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LocationCoordinateTypes, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationCoordinateTypes" - }, - { ATF_POINTER, 3, offsetof(struct A_GNSS_ProvideCapabilities, velocityTypes), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VelocityTypes, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "velocityTypes" - }, - { ATF_POINTER, 2, offsetof(struct A_GNSS_ProvideCapabilities, ext1), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - 0, - &asn_DEF_ext1_7, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct A_GNSS_ProvideCapabilities, ext2), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - 0, - &asn_DEF_ext2_11, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_A_GNSS_ProvideCapabilities_oms_1[] = { 0, 1, 2, 3, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_A_GNSS_ProvideCapabilities_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_A_GNSS_ProvideCapabilities_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SupportList */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* assistanceDataSupportList */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* locationCoordinateTypes */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* velocityTypes */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_ProvideCapabilities_specs_1 = { - sizeof(struct A_GNSS_ProvideCapabilities), - offsetof(struct A_GNSS_ProvideCapabilities, _asn_ctx), - asn_MAP_A_GNSS_ProvideCapabilities_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_A_GNSS_ProvideCapabilities_oms_1, /* Optional members */ - 4, 2, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_A_GNSS_ProvideCapabilities = { - "A-GNSS-ProvideCapabilities", - "A-GNSS-ProvideCapabilities", - &asn_OP_SEQUENCE, - asn_DEF_A_GNSS_ProvideCapabilities_tags_1, - sizeof(asn_DEF_A_GNSS_ProvideCapabilities_tags_1) - /sizeof(asn_DEF_A_GNSS_ProvideCapabilities_tags_1[0]), /* 1 */ - asn_DEF_A_GNSS_ProvideCapabilities_tags_1, /* Same as above */ - sizeof(asn_DEF_A_GNSS_ProvideCapabilities_tags_1) - /sizeof(asn_DEF_A_GNSS_ProvideCapabilities_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_A_GNSS_ProvideCapabilities_1, - 6, /* Elements count */ - &asn_SPC_A_GNSS_ProvideCapabilities_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/A-GNSS-ProvideCapabilities.h b/asn.1/generated/A-GNSS-ProvideCapabilities.h deleted file mode 100644 index d0b0655d..00000000 --- a/asn.1/generated/A-GNSS-ProvideCapabilities.h +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _A_GNSS_ProvideCapabilities_H_ -#define _A_GNSS_ProvideCapabilities_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum A_GNSS_ProvideCapabilities__ext1__idleStateForMeasurements_r14 { - A_GNSS_ProvideCapabilities__ext1__idleStateForMeasurements_r14_required = 0 -} e_A_GNSS_ProvideCapabilities__ext1__idleStateForMeasurements_r14; -typedef enum A_GNSS_ProvideCapabilities__ext2__periodicAssistanceData_r15 { - A_GNSS_ProvideCapabilities__ext2__periodicAssistanceData_r15_solicited = 0, - A_GNSS_ProvideCapabilities__ext2__periodicAssistanceData_r15_unsolicited = 1 -} e_A_GNSS_ProvideCapabilities__ext2__periodicAssistanceData_r15; - -/* Forward declarations */ -struct GNSS_SupportList; -struct AssistanceDataSupportList; -struct LocationCoordinateTypes; -struct VelocityTypes; -struct PositioningModes; - -/* A-GNSS-ProvideCapabilities */ -typedef struct A_GNSS_ProvideCapabilities { - struct GNSS_SupportList *gnss_SupportList /* OPTIONAL */; - struct AssistanceDataSupportList *assistanceDataSupportList /* OPTIONAL */; - struct LocationCoordinateTypes *locationCoordinateTypes /* OPTIONAL */; - struct VelocityTypes *velocityTypes /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct A_GNSS_ProvideCapabilities__ext1 { - struct PositioningModes *periodicalReportingNotSupported_r14 /* OPTIONAL */; - long *idleStateForMeasurements_r14 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct A_GNSS_ProvideCapabilities__ext2 { - BIT_STRING_t *periodicAssistanceData_r15 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} A_GNSS_ProvideCapabilities_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_idleStateForMeasurements_r14_9; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_A_GNSS_ProvideCapabilities; -extern asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_ProvideCapabilities_specs_1; -extern asn_TYPE_member_t asn_MBR_A_GNSS_ProvideCapabilities_1[6]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GNSS-SupportList.h" -#include "AssistanceDataSupportList.h" -#include "LocationCoordinateTypes.h" -#include "VelocityTypes.h" -#include "PositioningModes.h" - -#endif /* _A_GNSS_ProvideCapabilities_H_ */ -#include diff --git a/asn.1/generated/A-GNSS-ProvideLocationInformation.c b/asn.1/generated/A-GNSS-ProvideLocationInformation.c deleted file mode 100644 index 32cd05ef..00000000 --- a/asn.1/generated/A-GNSS-ProvideLocationInformation.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "A-GNSS-ProvideLocationInformation.h" - -asn_TYPE_member_t asn_MBR_A_GNSS_ProvideLocationInformation_1[] = { - { ATF_POINTER, 3, offsetof(struct A_GNSS_ProvideLocationInformation, gnss_SignalMeasurementInformation), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalMeasurementInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SignalMeasurementInformation" - }, - { ATF_POINTER, 2, offsetof(struct A_GNSS_ProvideLocationInformation, gnss_LocationInformation), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_LocationInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-LocationInformation" - }, - { ATF_POINTER, 1, offsetof(struct A_GNSS_ProvideLocationInformation, gnss_Error), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_A_GNSS_Error, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-Error" - }, -}; -static const int asn_MAP_A_GNSS_ProvideLocationInformation_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_A_GNSS_ProvideLocationInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_A_GNSS_ProvideLocationInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SignalMeasurementInformation */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-LocationInformation */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gnss-Error */ -}; -asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_ProvideLocationInformation_specs_1 = { - sizeof(struct A_GNSS_ProvideLocationInformation), - offsetof(struct A_GNSS_ProvideLocationInformation, _asn_ctx), - asn_MAP_A_GNSS_ProvideLocationInformation_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_A_GNSS_ProvideLocationInformation_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_A_GNSS_ProvideLocationInformation = { - "A-GNSS-ProvideLocationInformation", - "A-GNSS-ProvideLocationInformation", - &asn_OP_SEQUENCE, - asn_DEF_A_GNSS_ProvideLocationInformation_tags_1, - sizeof(asn_DEF_A_GNSS_ProvideLocationInformation_tags_1) - /sizeof(asn_DEF_A_GNSS_ProvideLocationInformation_tags_1[0]), /* 1 */ - asn_DEF_A_GNSS_ProvideLocationInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_A_GNSS_ProvideLocationInformation_tags_1) - /sizeof(asn_DEF_A_GNSS_ProvideLocationInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_A_GNSS_ProvideLocationInformation_1, - 3, /* Elements count */ - &asn_SPC_A_GNSS_ProvideLocationInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/A-GNSS-ProvideLocationInformation.h b/asn.1/generated/A-GNSS-ProvideLocationInformation.h deleted file mode 100644 index 7cc0e82f..00000000 --- a/asn.1/generated/A-GNSS-ProvideLocationInformation.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _A_GNSS_ProvideLocationInformation_H_ -#define _A_GNSS_ProvideLocationInformation_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct GNSS_SignalMeasurementInformation; -struct GNSS_LocationInformation; -struct A_GNSS_Error; - -/* A-GNSS-ProvideLocationInformation */ -typedef struct A_GNSS_ProvideLocationInformation { - struct GNSS_SignalMeasurementInformation *gnss_SignalMeasurementInformation /* OPTIONAL */; - struct GNSS_LocationInformation *gnss_LocationInformation /* OPTIONAL */; - struct A_GNSS_Error *gnss_Error /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} A_GNSS_ProvideLocationInformation_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_A_GNSS_ProvideLocationInformation; -extern asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_ProvideLocationInformation_specs_1; -extern asn_TYPE_member_t asn_MBR_A_GNSS_ProvideLocationInformation_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GNSS-SignalMeasurementInformation.h" -#include "GNSS-LocationInformation.h" -#include "A-GNSS-Error.h" - -#endif /* _A_GNSS_ProvideLocationInformation_H_ */ -#include diff --git a/asn.1/generated/A-GNSS-RequestAssistanceData.c b/asn.1/generated/A-GNSS-RequestAssistanceData.c deleted file mode 100644 index 3d735660..00000000 --- a/asn.1/generated/A-GNSS-RequestAssistanceData.c +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "A-GNSS-RequestAssistanceData.h" - -static asn_TYPE_member_t asn_MBR_ext1_5[] = { - { ATF_POINTER, 1, offsetof(struct A_GNSS_RequestAssistanceData__ext1, gnss_PeriodicAssistDataReq_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicAssistDataReq_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-PeriodicAssistDataReq-r15" - }, -}; -static const int asn_MAP_ext1_oms_5[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-PeriodicAssistDataReq-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { - sizeof(struct A_GNSS_RequestAssistanceData__ext1), - offsetof(struct A_GNSS_RequestAssistanceData__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_5, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_5, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_5 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_5, - sizeof(asn_DEF_ext1_tags_5) - /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_5, /* Same as above */ - sizeof(asn_DEF_ext1_tags_5) - /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_5, - 1, /* Elements count */ - &asn_SPC_ext1_specs_5 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_A_GNSS_RequestAssistanceData_1[] = { - { ATF_POINTER, 3, offsetof(struct A_GNSS_RequestAssistanceData, gnss_CommonAssistDataReq), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_CommonAssistDataReq, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-CommonAssistDataReq" - }, - { ATF_POINTER, 2, offsetof(struct A_GNSS_RequestAssistanceData, gnss_GenericAssistDataReq), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_GenericAssistDataReq, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-GenericAssistDataReq" - }, - { ATF_POINTER, 1, offsetof(struct A_GNSS_RequestAssistanceData, ext1), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_ext1_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_A_GNSS_RequestAssistanceData_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_A_GNSS_RequestAssistanceData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_A_GNSS_RequestAssistanceData_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-CommonAssistDataReq */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-GenericAssistDataReq */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_RequestAssistanceData_specs_1 = { - sizeof(struct A_GNSS_RequestAssistanceData), - offsetof(struct A_GNSS_RequestAssistanceData, _asn_ctx), - asn_MAP_A_GNSS_RequestAssistanceData_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_A_GNSS_RequestAssistanceData_oms_1, /* Optional members */ - 2, 1, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_A_GNSS_RequestAssistanceData = { - "A-GNSS-RequestAssistanceData", - "A-GNSS-RequestAssistanceData", - &asn_OP_SEQUENCE, - asn_DEF_A_GNSS_RequestAssistanceData_tags_1, - sizeof(asn_DEF_A_GNSS_RequestAssistanceData_tags_1) - /sizeof(asn_DEF_A_GNSS_RequestAssistanceData_tags_1[0]), /* 1 */ - asn_DEF_A_GNSS_RequestAssistanceData_tags_1, /* Same as above */ - sizeof(asn_DEF_A_GNSS_RequestAssistanceData_tags_1) - /sizeof(asn_DEF_A_GNSS_RequestAssistanceData_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_A_GNSS_RequestAssistanceData_1, - 3, /* Elements count */ - &asn_SPC_A_GNSS_RequestAssistanceData_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/A-GNSS-RequestAssistanceData.h b/asn.1/generated/A-GNSS-RequestAssistanceData.h deleted file mode 100644 index 4f0078fc..00000000 --- a/asn.1/generated/A-GNSS-RequestAssistanceData.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _A_GNSS_RequestAssistanceData_H_ -#define _A_GNSS_RequestAssistanceData_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct GNSS_CommonAssistDataReq; -struct GNSS_GenericAssistDataReq; -struct GNSS_PeriodicAssistDataReq_r15; - -/* A-GNSS-RequestAssistanceData */ -typedef struct A_GNSS_RequestAssistanceData { - struct GNSS_CommonAssistDataReq *gnss_CommonAssistDataReq /* OPTIONAL */; - struct GNSS_GenericAssistDataReq *gnss_GenericAssistDataReq /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct A_GNSS_RequestAssistanceData__ext1 { - struct GNSS_PeriodicAssistDataReq_r15 *gnss_PeriodicAssistDataReq_r15 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} A_GNSS_RequestAssistanceData_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_A_GNSS_RequestAssistanceData; -extern asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_RequestAssistanceData_specs_1; -extern asn_TYPE_member_t asn_MBR_A_GNSS_RequestAssistanceData_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GNSS-CommonAssistDataReq.h" -#include "GNSS-GenericAssistDataReq.h" -#include "GNSS-PeriodicAssistDataReq-r15.h" - -#endif /* _A_GNSS_RequestAssistanceData_H_ */ -#include diff --git a/asn.1/generated/A-GNSS-RequestCapabilities.c b/asn.1/generated/A-GNSS-RequestCapabilities.c deleted file mode 100644 index 5ab7c3f8..00000000 --- a/asn.1/generated/A-GNSS-RequestCapabilities.c +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "A-GNSS-RequestCapabilities.h" - -asn_TYPE_member_t asn_MBR_A_GNSS_RequestCapabilities_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct A_GNSS_RequestCapabilities, gnss_SupportListReq), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SupportListReq" - }, - { ATF_NOFLAGS, 0, offsetof(struct A_GNSS_RequestCapabilities, assistanceDataSupportListReq), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "assistanceDataSupportListReq" - }, - { ATF_NOFLAGS, 0, offsetof(struct A_GNSS_RequestCapabilities, locationVelocityTypesReq), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationVelocityTypesReq" - }, -}; -static const ber_tlv_tag_t asn_DEF_A_GNSS_RequestCapabilities_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_A_GNSS_RequestCapabilities_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SupportListReq */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* assistanceDataSupportListReq */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* locationVelocityTypesReq */ -}; -asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_RequestCapabilities_specs_1 = { - sizeof(struct A_GNSS_RequestCapabilities), - offsetof(struct A_GNSS_RequestCapabilities, _asn_ctx), - asn_MAP_A_GNSS_RequestCapabilities_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_A_GNSS_RequestCapabilities = { - "A-GNSS-RequestCapabilities", - "A-GNSS-RequestCapabilities", - &asn_OP_SEQUENCE, - asn_DEF_A_GNSS_RequestCapabilities_tags_1, - sizeof(asn_DEF_A_GNSS_RequestCapabilities_tags_1) - /sizeof(asn_DEF_A_GNSS_RequestCapabilities_tags_1[0]), /* 1 */ - asn_DEF_A_GNSS_RequestCapabilities_tags_1, /* Same as above */ - sizeof(asn_DEF_A_GNSS_RequestCapabilities_tags_1) - /sizeof(asn_DEF_A_GNSS_RequestCapabilities_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_A_GNSS_RequestCapabilities_1, - 3, /* Elements count */ - &asn_SPC_A_GNSS_RequestCapabilities_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/A-GNSS-RequestLocationInformation.c b/asn.1/generated/A-GNSS-RequestLocationInformation.c deleted file mode 100644 index ef90d3cf..00000000 --- a/asn.1/generated/A-GNSS-RequestLocationInformation.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "A-GNSS-RequestLocationInformation.h" - -asn_TYPE_member_t asn_MBR_A_GNSS_RequestLocationInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct A_GNSS_RequestLocationInformation, gnss_PositioningInstructions), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PositioningInstructions, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-PositioningInstructions" - }, -}; -static const ber_tlv_tag_t asn_DEF_A_GNSS_RequestLocationInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_A_GNSS_RequestLocationInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-PositioningInstructions */ -}; -asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_RequestLocationInformation_specs_1 = { - sizeof(struct A_GNSS_RequestLocationInformation), - offsetof(struct A_GNSS_RequestLocationInformation, _asn_ctx), - asn_MAP_A_GNSS_RequestLocationInformation_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_A_GNSS_RequestLocationInformation = { - "A-GNSS-RequestLocationInformation", - "A-GNSS-RequestLocationInformation", - &asn_OP_SEQUENCE, - asn_DEF_A_GNSS_RequestLocationInformation_tags_1, - sizeof(asn_DEF_A_GNSS_RequestLocationInformation_tags_1) - /sizeof(asn_DEF_A_GNSS_RequestLocationInformation_tags_1[0]), /* 1 */ - asn_DEF_A_GNSS_RequestLocationInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_A_GNSS_RequestLocationInformation_tags_1) - /sizeof(asn_DEF_A_GNSS_RequestLocationInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_A_GNSS_RequestLocationInformation_1, - 1, /* Elements count */ - &asn_SPC_A_GNSS_RequestLocationInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ARFCN-ValueEUTRA-r14.c b/asn.1/generated/ARFCN-ValueEUTRA-r14.c deleted file mode 100644 index ecbf6760..00000000 --- a/asn.1/generated/ARFCN-ValueEUTRA-r14.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ARFCN-ValueEUTRA-r14.h" - -int -ARFCN_ValueEUTRA_r14_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 262143)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_ARFCN_ValueEUTRA_r14_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 18, -1, 0, 262143 } /* (0..262143) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_ARFCN_ValueEUTRA_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueEUTRA_r14 = { - "ARFCN-ValueEUTRA-r14", - "ARFCN-ValueEUTRA-r14", - &asn_OP_NativeInteger, - asn_DEF_ARFCN_ValueEUTRA_r14_tags_1, - sizeof(asn_DEF_ARFCN_ValueEUTRA_r14_tags_1) - /sizeof(asn_DEF_ARFCN_ValueEUTRA_r14_tags_1[0]), /* 1 */ - asn_DEF_ARFCN_ValueEUTRA_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_ARFCN_ValueEUTRA_r14_tags_1) - /sizeof(asn_DEF_ARFCN_ValueEUTRA_r14_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_ARFCN_ValueEUTRA_r14_constr_1, ARFCN_ValueEUTRA_r14_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/ARFCN-ValueEUTRA-r14.h b/asn.1/generated/ARFCN-ValueEUTRA-r14.h deleted file mode 100644 index 40ac27f2..00000000 --- a/asn.1/generated/ARFCN-ValueEUTRA-r14.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _ARFCN_ValueEUTRA_r14_H_ -#define _ARFCN_ValueEUTRA_r14_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* ARFCN-ValueEUTRA-r14 */ -typedef long ARFCN_ValueEUTRA_r14_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_ARFCN_ValueEUTRA_r14_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueEUTRA_r14; -asn_struct_free_f ARFCN_ValueEUTRA_r14_free; -asn_struct_print_f ARFCN_ValueEUTRA_r14_print; -asn_constr_check_f ARFCN_ValueEUTRA_r14_constraint; -ber_type_decoder_f ARFCN_ValueEUTRA_r14_decode_ber; -der_type_encoder_f ARFCN_ValueEUTRA_r14_encode_der; -xer_type_decoder_f ARFCN_ValueEUTRA_r14_decode_xer; -xer_type_encoder_f ARFCN_ValueEUTRA_r14_encode_xer; -per_type_decoder_f ARFCN_ValueEUTRA_r14_decode_uper; -per_type_encoder_f ARFCN_ValueEUTRA_r14_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _ARFCN_ValueEUTRA_r14_H_ */ -#include diff --git a/asn.1/generated/ARFCN-ValueEUTRA-v9a0.c b/asn.1/generated/ARFCN-ValueEUTRA-v9a0.c deleted file mode 100644 index 7eae1c4b..00000000 --- a/asn.1/generated/ARFCN-ValueEUTRA-v9a0.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ARFCN-ValueEUTRA-v9a0.h" - -int -ARFCN_ValueEUTRA_v9a0_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 65536 && value <= 262143)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_ARFCN_ValueEUTRA_v9a0_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 18, -1, 65536, 262143 } /* (65536..262143) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_ARFCN_ValueEUTRA_v9a0_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueEUTRA_v9a0 = { - "ARFCN-ValueEUTRA-v9a0", - "ARFCN-ValueEUTRA-v9a0", - &asn_OP_NativeInteger, - asn_DEF_ARFCN_ValueEUTRA_v9a0_tags_1, - sizeof(asn_DEF_ARFCN_ValueEUTRA_v9a0_tags_1) - /sizeof(asn_DEF_ARFCN_ValueEUTRA_v9a0_tags_1[0]), /* 1 */ - asn_DEF_ARFCN_ValueEUTRA_v9a0_tags_1, /* Same as above */ - sizeof(asn_DEF_ARFCN_ValueEUTRA_v9a0_tags_1) - /sizeof(asn_DEF_ARFCN_ValueEUTRA_v9a0_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_ARFCN_ValueEUTRA_v9a0_constr_1, ARFCN_ValueEUTRA_v9a0_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/ARFCN-ValueEUTRA-v9a0.h b/asn.1/generated/ARFCN-ValueEUTRA-v9a0.h deleted file mode 100644 index 75b63609..00000000 --- a/asn.1/generated/ARFCN-ValueEUTRA-v9a0.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _ARFCN_ValueEUTRA_v9a0_H_ -#define _ARFCN_ValueEUTRA_v9a0_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* ARFCN-ValueEUTRA-v9a0 */ -typedef long ARFCN_ValueEUTRA_v9a0_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_ARFCN_ValueEUTRA_v9a0_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueEUTRA_v9a0; -asn_struct_free_f ARFCN_ValueEUTRA_v9a0_free; -asn_struct_print_f ARFCN_ValueEUTRA_v9a0_print; -asn_constr_check_f ARFCN_ValueEUTRA_v9a0_constraint; -ber_type_decoder_f ARFCN_ValueEUTRA_v9a0_decode_ber; -der_type_encoder_f ARFCN_ValueEUTRA_v9a0_encode_der; -xer_type_decoder_f ARFCN_ValueEUTRA_v9a0_decode_xer; -xer_type_encoder_f ARFCN_ValueEUTRA_v9a0_encode_xer; -per_type_decoder_f ARFCN_ValueEUTRA_v9a0_decode_uper; -per_type_encoder_f ARFCN_ValueEUTRA_v9a0_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _ARFCN_ValueEUTRA_v9a0_H_ */ -#include diff --git a/asn.1/generated/ARFCN-ValueEUTRA.c b/asn.1/generated/ARFCN-ValueEUTRA.c deleted file mode 100644 index 90c2c761..00000000 --- a/asn.1/generated/ARFCN-ValueEUTRA.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ARFCN-ValueEUTRA.h" - -int -ARFCN_ValueEUTRA_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_ARFCN_ValueEUTRA_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_ARFCN_ValueEUTRA_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueEUTRA = { - "ARFCN-ValueEUTRA", - "ARFCN-ValueEUTRA", - &asn_OP_NativeInteger, - asn_DEF_ARFCN_ValueEUTRA_tags_1, - sizeof(asn_DEF_ARFCN_ValueEUTRA_tags_1) - /sizeof(asn_DEF_ARFCN_ValueEUTRA_tags_1[0]), /* 1 */ - asn_DEF_ARFCN_ValueEUTRA_tags_1, /* Same as above */ - sizeof(asn_DEF_ARFCN_ValueEUTRA_tags_1) - /sizeof(asn_DEF_ARFCN_ValueEUTRA_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_ARFCN_ValueEUTRA_constr_1, ARFCN_ValueEUTRA_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/ARFCN-ValueEUTRA.h b/asn.1/generated/ARFCN-ValueEUTRA.h deleted file mode 100644 index eeb10294..00000000 --- a/asn.1/generated/ARFCN-ValueEUTRA.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _ARFCN_ValueEUTRA_H_ -#define _ARFCN_ValueEUTRA_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* ARFCN-ValueEUTRA */ -typedef long ARFCN_ValueEUTRA_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_ARFCN_ValueEUTRA_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueEUTRA; -asn_struct_free_f ARFCN_ValueEUTRA_free; -asn_struct_print_f ARFCN_ValueEUTRA_print; -asn_constr_check_f ARFCN_ValueEUTRA_constraint; -ber_type_decoder_f ARFCN_ValueEUTRA_decode_ber; -der_type_encoder_f ARFCN_ValueEUTRA_encode_der; -xer_type_decoder_f ARFCN_ValueEUTRA_decode_xer; -xer_type_encoder_f ARFCN_ValueEUTRA_encode_xer; -per_type_decoder_f ARFCN_ValueEUTRA_decode_uper; -per_type_encoder_f ARFCN_ValueEUTRA_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _ARFCN_ValueEUTRA_H_ */ -#include diff --git a/asn.1/generated/ARFCN-ValueNR-r15.c b/asn.1/generated/ARFCN-ValueNR-r15.c deleted file mode 100644 index 93d00868..00000000 --- a/asn.1/generated/ARFCN-ValueNR-r15.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ARFCN-ValueNR-r15.h" - -int -ARFCN_ValueNR_r15_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3279165)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_ARFCN_ValueNR_r15_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, 0, 3279165 } /* (0..3279165) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_ARFCN_ValueNR_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueNR_r15 = { - "ARFCN-ValueNR-r15", - "ARFCN-ValueNR-r15", - &asn_OP_NativeInteger, - asn_DEF_ARFCN_ValueNR_r15_tags_1, - sizeof(asn_DEF_ARFCN_ValueNR_r15_tags_1) - /sizeof(asn_DEF_ARFCN_ValueNR_r15_tags_1[0]), /* 1 */ - asn_DEF_ARFCN_ValueNR_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_ARFCN_ValueNR_r15_tags_1) - /sizeof(asn_DEF_ARFCN_ValueNR_r15_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_ARFCN_ValueNR_r15_constr_1, ARFCN_ValueNR_r15_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/ARFCN-ValueNR-r15.h b/asn.1/generated/ARFCN-ValueNR-r15.h deleted file mode 100644 index ebb7ac64..00000000 --- a/asn.1/generated/ARFCN-ValueNR-r15.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _ARFCN_ValueNR_r15_H_ -#define _ARFCN_ValueNR_r15_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* ARFCN-ValueNR-r15 */ -typedef long ARFCN_ValueNR_r15_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_ARFCN_ValueNR_r15_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueNR_r15; -asn_struct_free_f ARFCN_ValueNR_r15_free; -asn_struct_print_f ARFCN_ValueNR_r15_print; -asn_constr_check_f ARFCN_ValueNR_r15_constraint; -ber_type_decoder_f ARFCN_ValueNR_r15_decode_ber; -der_type_encoder_f ARFCN_ValueNR_r15_encode_der; -xer_type_decoder_f ARFCN_ValueNR_r15_decode_xer; -xer_type_encoder_f ARFCN_ValueNR_r15_encode_xer; -per_type_decoder_f ARFCN_ValueNR_r15_decode_uper; -per_type_encoder_f ARFCN_ValueNR_r15_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _ARFCN_ValueNR_r15_H_ */ -#include diff --git a/asn.1/generated/ARFCN-ValueUTRA.c b/asn.1/generated/ARFCN-ValueUTRA.c deleted file mode 100644 index e773b342..00000000 --- a/asn.1/generated/ARFCN-ValueUTRA.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ARFCN-ValueUTRA.h" - -int -ARFCN_ValueUTRA_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_ARFCN_ValueUTRA_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_ARFCN_ValueUTRA_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueUTRA = { - "ARFCN-ValueUTRA", - "ARFCN-ValueUTRA", - &asn_OP_NativeInteger, - asn_DEF_ARFCN_ValueUTRA_tags_1, - sizeof(asn_DEF_ARFCN_ValueUTRA_tags_1) - /sizeof(asn_DEF_ARFCN_ValueUTRA_tags_1[0]), /* 1 */ - asn_DEF_ARFCN_ValueUTRA_tags_1, /* Same as above */ - sizeof(asn_DEF_ARFCN_ValueUTRA_tags_1) - /sizeof(asn_DEF_ARFCN_ValueUTRA_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_ARFCN_ValueUTRA_constr_1, ARFCN_ValueUTRA_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/ARFCN-ValueUTRA.h b/asn.1/generated/ARFCN-ValueUTRA.h deleted file mode 100644 index e985b31e..00000000 --- a/asn.1/generated/ARFCN-ValueUTRA.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _ARFCN_ValueUTRA_H_ -#define _ARFCN_ValueUTRA_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* ARFCN-ValueUTRA */ -typedef long ARFCN_ValueUTRA_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_ARFCN_ValueUTRA_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueUTRA; -asn_struct_free_f ARFCN_ValueUTRA_free; -asn_struct_print_f ARFCN_ValueUTRA_print; -asn_constr_check_f ARFCN_ValueUTRA_constraint; -ber_type_decoder_f ARFCN_ValueUTRA_decode_ber; -der_type_encoder_f ARFCN_ValueUTRA_encode_der; -xer_type_decoder_f ARFCN_ValueUTRA_decode_xer; -xer_type_encoder_f ARFCN_ValueUTRA_encode_xer; -per_type_decoder_f ARFCN_ValueUTRA_decode_uper; -per_type_encoder_f ARFCN_ValueUTRA_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _ARFCN_ValueUTRA_H_ */ -#include diff --git a/asn.1/generated/AUX-ReferenceStationID-Element-r15.c b/asn.1/generated/AUX-ReferenceStationID-Element-r15.c deleted file mode 100644 index 88d761e7..00000000 --- a/asn.1/generated/AUX-ReferenceStationID-Element-r15.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AUX-ReferenceStationID-Element-r15.h" - -asn_TYPE_member_t asn_MBR_AUX_ReferenceStationID_Element_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AUX_ReferenceStationID_Element_r15, aux_stationID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceStationID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "aux-stationID-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_AUX_ReferenceStationID_Element_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_AUX_ReferenceStationID_Element_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* aux-stationID-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_AUX_ReferenceStationID_Element_r15_specs_1 = { - sizeof(struct AUX_ReferenceStationID_Element_r15), - offsetof(struct AUX_ReferenceStationID_Element_r15, _asn_ctx), - asn_MAP_AUX_ReferenceStationID_Element_r15_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_AUX_ReferenceStationID_Element_r15 = { - "AUX-ReferenceStationID-Element-r15", - "AUX-ReferenceStationID-Element-r15", - &asn_OP_SEQUENCE, - asn_DEF_AUX_ReferenceStationID_Element_r15_tags_1, - sizeof(asn_DEF_AUX_ReferenceStationID_Element_r15_tags_1) - /sizeof(asn_DEF_AUX_ReferenceStationID_Element_r15_tags_1[0]), /* 1 */ - asn_DEF_AUX_ReferenceStationID_Element_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_AUX_ReferenceStationID_Element_r15_tags_1) - /sizeof(asn_DEF_AUX_ReferenceStationID_Element_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_AUX_ReferenceStationID_Element_r15_1, - 1, /* Elements count */ - &asn_SPC_AUX_ReferenceStationID_Element_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AUX-ReferenceStationList-r15.c b/asn.1/generated/AUX-ReferenceStationList-r15.c deleted file mode 100644 index 92525240..00000000 --- a/asn.1/generated/AUX-ReferenceStationList-r15.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AUX-ReferenceStationList-r15.h" - -asn_per_constraints_t asn_PER_type_AUX_ReferenceStationList_r15_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_AUX_ReferenceStationList_r15_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_AUX_ReferenceStationID_Element_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_AUX_ReferenceStationList_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_AUX_ReferenceStationList_r15_specs_1 = { - sizeof(struct AUX_ReferenceStationList_r15), - offsetof(struct AUX_ReferenceStationList_r15, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_AUX_ReferenceStationList_r15 = { - "AUX-ReferenceStationList-r15", - "AUX-ReferenceStationList-r15", - &asn_OP_SEQUENCE_OF, - asn_DEF_AUX_ReferenceStationList_r15_tags_1, - sizeof(asn_DEF_AUX_ReferenceStationList_r15_tags_1) - /sizeof(asn_DEF_AUX_ReferenceStationList_r15_tags_1[0]), /* 1 */ - asn_DEF_AUX_ReferenceStationList_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_AUX_ReferenceStationList_r15_tags_1) - /sizeof(asn_DEF_AUX_ReferenceStationList_r15_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_AUX_ReferenceStationList_r15_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_AUX_ReferenceStationList_r15_1, - 1, /* Single element */ - &asn_SPC_AUX_ReferenceStationList_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Abort-r9-IEs.c b/asn.1/generated/Abort-r9-IEs.c deleted file mode 100644 index 51ed0c57..00000000 --- a/asn.1/generated/Abort-r9-IEs.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Abort-r9-IEs.h" - -asn_TYPE_member_t asn_MBR_Abort_r9_IEs_1[] = { - { ATF_POINTER, 2, offsetof(struct Abort_r9_IEs, commonIEsAbort), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CommonIEsAbort, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "commonIEsAbort" - }, - { ATF_POINTER, 1, offsetof(struct Abort_r9_IEs, epdu_Abort), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EPDU_Sequence, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "epdu-Abort" - }, -}; -static const int asn_MAP_Abort_r9_IEs_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_Abort_r9_IEs_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Abort_r9_IEs_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* commonIEsAbort */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* epdu-Abort */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Abort_r9_IEs_specs_1 = { - sizeof(struct Abort_r9_IEs), - offsetof(struct Abort_r9_IEs, _asn_ctx), - asn_MAP_Abort_r9_IEs_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_Abort_r9_IEs_oms_1, /* Optional members */ - 1, 1, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Abort_r9_IEs = { - "Abort-r9-IEs", - "Abort-r9-IEs", - &asn_OP_SEQUENCE, - asn_DEF_Abort_r9_IEs_tags_1, - sizeof(asn_DEF_Abort_r9_IEs_tags_1) - /sizeof(asn_DEF_Abort_r9_IEs_tags_1[0]), /* 1 */ - asn_DEF_Abort_r9_IEs_tags_1, /* Same as above */ - sizeof(asn_DEF_Abort_r9_IEs_tags_1) - /sizeof(asn_DEF_Abort_r9_IEs_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Abort_r9_IEs_1, - 2, /* Elements count */ - &asn_SPC_Abort_r9_IEs_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Abort-r9-IEs.h b/asn.1/generated/Abort-r9-IEs.h deleted file mode 100644 index 1b2f1604..00000000 --- a/asn.1/generated/Abort-r9-IEs.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Abort_r9_IEs_H_ -#define _Abort_r9_IEs_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct CommonIEsAbort; -struct EPDU_Sequence; - -/* Abort-r9-IEs */ -typedef struct Abort_r9_IEs { - struct CommonIEsAbort *commonIEsAbort /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct EPDU_Sequence *epdu_Abort /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Abort_r9_IEs_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Abort_r9_IEs; -extern asn_SEQUENCE_specifics_t asn_SPC_Abort_r9_IEs_specs_1; -extern asn_TYPE_member_t asn_MBR_Abort_r9_IEs_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "CommonIEsAbort.h" -#include "EPDU-Sequence.h" - -#endif /* _Abort_r9_IEs_H_ */ -#include diff --git a/asn.1/generated/Abort.c b/asn.1/generated/Abort.c deleted file mode 100644 index 159fe1bc..00000000 --- a/asn.1/generated/Abort.c +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Abort.h" - -static asn_per_constraints_t asn_PER_type_c1_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_criticalExtensions_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_c1_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct Abort__criticalExtensions__c1, choice.abort_r9), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Abort_r9_IEs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "abort-r9" - }, - { ATF_NOFLAGS, 0, offsetof(struct Abort__criticalExtensions__c1, choice.spare3), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare3" - }, - { ATF_NOFLAGS, 0, offsetof(struct Abort__criticalExtensions__c1, choice.spare2), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare2" - }, - { ATF_NOFLAGS, 0, offsetof(struct Abort__criticalExtensions__c1, choice.spare1), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare1" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_c1_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* abort-r9 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* spare3 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* spare2 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* spare1 */ -}; -static asn_CHOICE_specifics_t asn_SPC_c1_specs_3 = { - sizeof(struct Abort__criticalExtensions__c1), - offsetof(struct Abort__criticalExtensions__c1, _asn_ctx), - offsetof(struct Abort__criticalExtensions__c1, present), - sizeof(((struct Abort__criticalExtensions__c1 *)0)->present), - asn_MAP_c1_tag2el_3, - 4, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_c1_3 = { - "c1", - "c1", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_c1_constr_3, CHOICE_constraint }, - asn_MBR_c1_3, - 4, /* Elements count */ - &asn_SPC_c1_specs_3 /* Additional specs */ -}; - -static const ber_tlv_tag_t asn_DEF_criticalExtensionsFuture_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SEQUENCE_specifics_t asn_SPC_criticalExtensionsFuture_specs_8 = { - sizeof(struct Abort__criticalExtensions__criticalExtensionsFuture), - offsetof(struct Abort__criticalExtensions__criticalExtensionsFuture, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_criticalExtensionsFuture_8 = { - "criticalExtensionsFuture", - "criticalExtensionsFuture", - &asn_OP_SEQUENCE, - asn_DEF_criticalExtensionsFuture_tags_8, - sizeof(asn_DEF_criticalExtensionsFuture_tags_8) - /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]) - 1, /* 1 */ - asn_DEF_criticalExtensionsFuture_tags_8, /* Same as above */ - sizeof(asn_DEF_criticalExtensionsFuture_tags_8) - /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_criticalExtensionsFuture_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_criticalExtensions_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct Abort__criticalExtensions, choice.c1), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_c1_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "c1" - }, - { ATF_NOFLAGS, 0, offsetof(struct Abort__criticalExtensions, choice.criticalExtensionsFuture), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_criticalExtensionsFuture_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "criticalExtensionsFuture" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_criticalExtensions_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* c1 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* criticalExtensionsFuture */ -}; -static asn_CHOICE_specifics_t asn_SPC_criticalExtensions_specs_2 = { - sizeof(struct Abort__criticalExtensions), - offsetof(struct Abort__criticalExtensions, _asn_ctx), - offsetof(struct Abort__criticalExtensions, present), - sizeof(((struct Abort__criticalExtensions *)0)->present), - asn_MAP_criticalExtensions_tag2el_2, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_criticalExtensions_2 = { - "criticalExtensions", - "criticalExtensions", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_criticalExtensions_constr_2, CHOICE_constraint }, - asn_MBR_criticalExtensions_2, - 2, /* Elements count */ - &asn_SPC_criticalExtensions_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_Abort_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Abort, criticalExtensions), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_criticalExtensions_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "criticalExtensions" - }, -}; -static const ber_tlv_tag_t asn_DEF_Abort_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Abort_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* criticalExtensions */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Abort_specs_1 = { - sizeof(struct Abort), - offsetof(struct Abort, _asn_ctx), - asn_MAP_Abort_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Abort = { - "Abort", - "Abort", - &asn_OP_SEQUENCE, - asn_DEF_Abort_tags_1, - sizeof(asn_DEF_Abort_tags_1) - /sizeof(asn_DEF_Abort_tags_1[0]), /* 1 */ - asn_DEF_Abort_tags_1, /* Same as above */ - sizeof(asn_DEF_Abort_tags_1) - /sizeof(asn_DEF_Abort_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Abort_1, - 1, /* Elements count */ - &asn_SPC_Abort_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AccessTypes.c b/asn.1/generated/AccessTypes.c deleted file mode 100644 index f8b3ec9d..00000000 --- a/asn.1/generated/AccessTypes.c +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AccessTypes.h" - -static int -memb_accessTypes_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_accessTypes_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_AccessTypes_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AccessTypes, accessTypes), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_accessTypes_constr_2, memb_accessTypes_constraint_1 }, - 0, 0, /* No default value */ - "accessTypes" - }, -}; -static const ber_tlv_tag_t asn_DEF_AccessTypes_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_AccessTypes_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* accessTypes */ -}; -asn_SEQUENCE_specifics_t asn_SPC_AccessTypes_specs_1 = { - sizeof(struct AccessTypes), - offsetof(struct AccessTypes, _asn_ctx), - asn_MAP_AccessTypes_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_AccessTypes = { - "AccessTypes", - "AccessTypes", - &asn_OP_SEQUENCE, - asn_DEF_AccessTypes_tags_1, - sizeof(asn_DEF_AccessTypes_tags_1) - /sizeof(asn_DEF_AccessTypes_tags_1[0]), /* 1 */ - asn_DEF_AccessTypes_tags_1, /* Same as above */ - sizeof(asn_DEF_AccessTypes_tags_1) - /sizeof(asn_DEF_AccessTypes_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_AccessTypes_1, - 1, /* Elements count */ - &asn_SPC_AccessTypes_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Acknowledgement.c b/asn.1/generated/Acknowledgement.c deleted file mode 100644 index e5666f29..00000000 --- a/asn.1/generated/Acknowledgement.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Acknowledgement.h" - -asn_TYPE_member_t asn_MBR_Acknowledgement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Acknowledgement, ackRequested), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ackRequested" - }, - { ATF_POINTER, 1, offsetof(struct Acknowledgement, ackIndicator), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SequenceNumber, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ackIndicator" - }, -}; -static const int asn_MAP_Acknowledgement_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_Acknowledgement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Acknowledgement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ackRequested */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ackIndicator */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Acknowledgement_specs_1 = { - sizeof(struct Acknowledgement), - offsetof(struct Acknowledgement, _asn_ctx), - asn_MAP_Acknowledgement_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_Acknowledgement_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Acknowledgement = { - "Acknowledgement", - "Acknowledgement", - &asn_OP_SEQUENCE, - asn_DEF_Acknowledgement_tags_1, - sizeof(asn_DEF_Acknowledgement_tags_1) - /sizeof(asn_DEF_Acknowledgement_tags_1[0]), /* 1 */ - asn_DEF_Acknowledgement_tags_1, /* Same as above */ - sizeof(asn_DEF_Acknowledgement_tags_1) - /sizeof(asn_DEF_Acknowledgement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Acknowledgement_1, - 2, /* Elements count */ - &asn_SPC_Acknowledgement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Acknowledgement.h b/asn.1/generated/Acknowledgement.h deleted file mode 100644 index 30320bff..00000000 --- a/asn.1/generated/Acknowledgement.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Acknowledgement_H_ -#define _Acknowledgement_H_ - - -#include - -/* Including external dependencies */ -#include -#include "SequenceNumber.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Acknowledgement */ -typedef struct Acknowledgement { - BOOLEAN_t ackRequested; - SequenceNumber_t *ackIndicator /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Acknowledgement_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Acknowledgement; -extern asn_SEQUENCE_specifics_t asn_SPC_Acknowledgement_specs_1; -extern asn_TYPE_member_t asn_MBR_Acknowledgement_1[2]; - -#ifdef __cplusplus -} -#endif - -#endif /* _Acknowledgement_H_ */ -#include diff --git a/asn.1/generated/Add-PRSconfigNeighbourElement-r14.c b/asn.1/generated/Add-PRSconfigNeighbourElement-r14.c deleted file mode 100644 index d89938a2..00000000 --- a/asn.1/generated/Add-PRSconfigNeighbourElement-r14.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Add-PRSconfigNeighbourElement-r14.h" - -asn_TYPE_member_t asn_MBR_Add_PRSconfigNeighbourElement_r14_1[] = { - { ATF_POINTER, 1, offsetof(struct Add_PRSconfigNeighbourElement_r14, add_prsInfo_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PRS_Info, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "add-prsInfo-r14" - }, -}; -static const int asn_MAP_Add_PRSconfigNeighbourElement_r14_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_Add_PRSconfigNeighbourElement_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Add_PRSconfigNeighbourElement_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* add-prsInfo-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Add_PRSconfigNeighbourElement_r14_specs_1 = { - sizeof(struct Add_PRSconfigNeighbourElement_r14), - offsetof(struct Add_PRSconfigNeighbourElement_r14, _asn_ctx), - asn_MAP_Add_PRSconfigNeighbourElement_r14_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_Add_PRSconfigNeighbourElement_r14_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Add_PRSconfigNeighbourElement_r14 = { - "Add-PRSconfigNeighbourElement-r14", - "Add-PRSconfigNeighbourElement-r14", - &asn_OP_SEQUENCE, - asn_DEF_Add_PRSconfigNeighbourElement_r14_tags_1, - sizeof(asn_DEF_Add_PRSconfigNeighbourElement_r14_tags_1) - /sizeof(asn_DEF_Add_PRSconfigNeighbourElement_r14_tags_1[0]), /* 1 */ - asn_DEF_Add_PRSconfigNeighbourElement_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_Add_PRSconfigNeighbourElement_r14_tags_1) - /sizeof(asn_DEF_Add_PRSconfigNeighbourElement_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Add_PRSconfigNeighbourElement_r14_1, - 1, /* Elements count */ - &asn_SPC_Add_PRSconfigNeighbourElement_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AdditionalInformation.c b/asn.1/generated/AdditionalInformation.c deleted file mode 100644 index 01a2ecae..00000000 --- a/asn.1/generated/AdditionalInformation.c +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AdditionalInformation.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_AdditionalInformation_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_AdditionalInformation_value2enum_1[] = { - { 0, 30, "onlyReturnInformationRequested" }, - { 1, 29, "mayReturnAditionalInformation" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_AdditionalInformation_enum2value_1[] = { - 1, /* mayReturnAditionalInformation(1) */ - 0 /* onlyReturnInformationRequested(0) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_AdditionalInformation_specs_1 = { - asn_MAP_AdditionalInformation_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_AdditionalInformation_enum2value_1, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_AdditionalInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_AdditionalInformation = { - "AdditionalInformation", - "AdditionalInformation", - &asn_OP_NativeEnumerated, - asn_DEF_AdditionalInformation_tags_1, - sizeof(asn_DEF_AdditionalInformation_tags_1) - /sizeof(asn_DEF_AdditionalInformation_tags_1[0]), /* 1 */ - asn_DEF_AdditionalInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_AdditionalInformation_tags_1) - /sizeof(asn_DEF_AdditionalInformation_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_AdditionalInformation_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_AdditionalInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AdditionalPath-r14.c b/asn.1/generated/AdditionalPath-r14.c deleted file mode 100644 index b879e895..00000000 --- a/asn.1/generated/AdditionalPath-r14.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AdditionalPath-r14.h" - -static int -memb_relativeTimeDifference_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -256 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_relativeTimeDifference_r14_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, -256, 255 } /* (-256..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_AdditionalPath_r14_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AdditionalPath_r14, relativeTimeDifference_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_relativeTimeDifference_r14_constr_2, memb_relativeTimeDifference_r14_constraint_1 }, - 0, 0, /* No default value */ - "relativeTimeDifference-r14" - }, - { ATF_POINTER, 1, offsetof(struct AdditionalPath_r14, path_Quality_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_MeasQuality, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "path-Quality-r14" - }, -}; -static const int asn_MAP_AdditionalPath_r14_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_AdditionalPath_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_AdditionalPath_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* relativeTimeDifference-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* path-Quality-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_AdditionalPath_r14_specs_1 = { - sizeof(struct AdditionalPath_r14), - offsetof(struct AdditionalPath_r14, _asn_ctx), - asn_MAP_AdditionalPath_r14_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_AdditionalPath_r14_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_AdditionalPath_r14 = { - "AdditionalPath-r14", - "AdditionalPath-r14", - &asn_OP_SEQUENCE, - asn_DEF_AdditionalPath_r14_tags_1, - sizeof(asn_DEF_AdditionalPath_r14_tags_1) - /sizeof(asn_DEF_AdditionalPath_r14_tags_1[0]), /* 1 */ - asn_DEF_AdditionalPath_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_AdditionalPath_r14_tags_1) - /sizeof(asn_DEF_AdditionalPath_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_AdditionalPath_r14_1, - 2, /* Elements count */ - &asn_SPC_AdditionalPath_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AdditionalPathList-r14.c b/asn.1/generated/AdditionalPathList-r14.c deleted file mode 100644 index b4cbbdfb..00000000 --- a/asn.1/generated/AdditionalPathList-r14.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AdditionalPathList-r14.h" - -asn_per_constraints_t asn_PER_type_AdditionalPathList_r14_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_AdditionalPathList_r14_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_AdditionalPath_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_AdditionalPathList_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_AdditionalPathList_r14_specs_1 = { - sizeof(struct AdditionalPathList_r14), - offsetof(struct AdditionalPathList_r14, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_AdditionalPathList_r14 = { - "AdditionalPathList-r14", - "AdditionalPathList-r14", - &asn_OP_SEQUENCE_OF, - asn_DEF_AdditionalPathList_r14_tags_1, - sizeof(asn_DEF_AdditionalPathList_r14_tags_1) - /sizeof(asn_DEF_AdditionalPathList_r14_tags_1[0]), /* 1 */ - asn_DEF_AdditionalPathList_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_AdditionalPathList_r14_tags_1) - /sizeof(asn_DEF_AdditionalPathList_r14_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_AdditionalPathList_r14_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_AdditionalPathList_r14_1, - 1, /* Single element */ - &asn_SPC_AdditionalPathList_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AllowedReportingType.c b/asn.1/generated/AllowedReportingType.c deleted file mode 100644 index a26f975f..00000000 --- a/asn.1/generated/AllowedReportingType.c +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AllowedReportingType.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_AllowedReportingType_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_AllowedReportingType_value2enum_1[] = { - { 0, 13, "positionsOnly" }, - { 1, 16, "measurementsOnly" }, - { 2, 24, "positionsAndMeasurements" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_AllowedReportingType_enum2value_1[] = { - 1, /* measurementsOnly(1) */ - 2, /* positionsAndMeasurements(2) */ - 0 /* positionsOnly(0) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_AllowedReportingType_specs_1 = { - asn_MAP_AllowedReportingType_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_AllowedReportingType_enum2value_1, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 4, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_AllowedReportingType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_AllowedReportingType = { - "AllowedReportingType", - "AllowedReportingType", - &asn_OP_NativeEnumerated, - asn_DEF_AllowedReportingType_tags_1, - sizeof(asn_DEF_AllowedReportingType_tags_1) - /sizeof(asn_DEF_AllowedReportingType_tags_1[0]), /* 1 */ - asn_DEF_AllowedReportingType_tags_1, /* Same as above */ - sizeof(asn_DEF_AllowedReportingType_tags_1) - /sizeof(asn_DEF_AllowedReportingType_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_AllowedReportingType_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_AllowedReportingType_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AlmanacBDS-AlmanacSet-r12.c b/asn.1/generated/AlmanacBDS-AlmanacSet-r12.c deleted file mode 100644 index 014910c8..00000000 --- a/asn.1/generated/AlmanacBDS-AlmanacSet-r12.c +++ /dev/null @@ -1,498 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AlmanacBDS-AlmanacSet-r12.h" - -static int -memb_bdsAlmToa_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsAlmSqrtA_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 16777215)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsAlmE_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 131071)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsAlmW_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsAlmM0_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsAlmOmega0_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsAlmOmegaDot_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -65536 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsAlmDeltaI_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsAlmA0_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsAlmA1_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsSvHealth_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 9)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_bdsAlmToa_r12_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsAlmSqrtA_r12_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsAlmE_r12_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 17, -1, 0, 131071 } /* (0..131071) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsAlmW_r12_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsAlmM0_r12_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsAlmOmega0_r12_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsAlmOmegaDot_r12_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 17, -1, -65536, 65535 } /* (-65536..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsAlmDeltaI_r12_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsAlmA0_r12_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsAlmA1_r12_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsSvHealth_r12_constr_13 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 9, 9 } /* (SIZE(9..9)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_AlmanacBDS_AlmanacSet_r12_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, svID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID" - }, - { ATF_POINTER, 1, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmToa_r12), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsAlmToa_r12_constr_3, memb_bdsAlmToa_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsAlmToa-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmSqrtA_r12), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsAlmSqrtA_r12_constr_4, memb_bdsAlmSqrtA_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsAlmSqrtA-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmE_r12), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsAlmE_r12_constr_5, memb_bdsAlmE_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsAlmE-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmW_r12), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsAlmW_r12_constr_6, memb_bdsAlmW_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsAlmW-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmM0_r12), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsAlmM0_r12_constr_7, memb_bdsAlmM0_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsAlmM0-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmOmega0_r12), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsAlmOmega0_r12_constr_8, memb_bdsAlmOmega0_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsAlmOmega0-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmOmegaDot_r12), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsAlmOmegaDot_r12_constr_9, memb_bdsAlmOmegaDot_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsAlmOmegaDot-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmDeltaI_r12), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsAlmDeltaI_r12_constr_10, memb_bdsAlmDeltaI_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsAlmDeltaI-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmA0_r12), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsAlmA0_r12_constr_11, memb_bdsAlmA0_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsAlmA0-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmA1_r12), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsAlmA1_r12_constr_12, memb_bdsAlmA1_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsAlmA1-r12" - }, - { ATF_POINTER, 1, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsSvHealth_r12), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_bdsSvHealth_r12_constr_13, memb_bdsSvHealth_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsSvHealth-r12" - }, -}; -static const int asn_MAP_AlmanacBDS_AlmanacSet_r12_oms_1[] = { 1, 11 }; -static const ber_tlv_tag_t asn_DEF_AlmanacBDS_AlmanacSet_r12_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_AlmanacBDS_AlmanacSet_r12_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bdsAlmToa-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bdsAlmSqrtA-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* bdsAlmE-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* bdsAlmW-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* bdsAlmM0-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* bdsAlmOmega0-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* bdsAlmOmegaDot-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* bdsAlmDeltaI-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* bdsAlmA0-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* bdsAlmA1-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* bdsSvHealth-r12 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_AlmanacBDS_AlmanacSet_r12_specs_1 = { - sizeof(struct AlmanacBDS_AlmanacSet_r12), - offsetof(struct AlmanacBDS_AlmanacSet_r12, _asn_ctx), - asn_MAP_AlmanacBDS_AlmanacSet_r12_tag2el_1, - 12, /* Count of tags in the map */ - asn_MAP_AlmanacBDS_AlmanacSet_r12_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 12, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_AlmanacBDS_AlmanacSet_r12 = { - "AlmanacBDS-AlmanacSet-r12", - "AlmanacBDS-AlmanacSet-r12", - &asn_OP_SEQUENCE, - asn_DEF_AlmanacBDS_AlmanacSet_r12_tags_1, - sizeof(asn_DEF_AlmanacBDS_AlmanacSet_r12_tags_1) - /sizeof(asn_DEF_AlmanacBDS_AlmanacSet_r12_tags_1[0]), /* 1 */ - asn_DEF_AlmanacBDS_AlmanacSet_r12_tags_1, /* Same as above */ - sizeof(asn_DEF_AlmanacBDS_AlmanacSet_r12_tags_1) - /sizeof(asn_DEF_AlmanacBDS_AlmanacSet_r12_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_AlmanacBDS_AlmanacSet_r12_1, - 12, /* Elements count */ - &asn_SPC_AlmanacBDS_AlmanacSet_r12_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AlmanacECEF-SBAS-AlmanacSet.c b/asn.1/generated/AlmanacECEF-SBAS-AlmanacSet.c deleted file mode 100644 index d73c7047..00000000 --- a/asn.1/generated/AlmanacECEF-SBAS-AlmanacSet.c +++ /dev/null @@ -1,416 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AlmanacECEF-SBAS-AlmanacSet.h" - -static int -memb_sbasAlmDataID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbasAlmHealth_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbasAlmXg_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16384 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbasAlmYg_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16384 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbasAlmZg_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -256 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbasAlmXgdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -4 && value <= 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbasAlmYgDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -4 && value <= 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbasAlmZgDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8 && value <= 7)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbasAlmTo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_sbasAlmDataID_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbasAlmHealth_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbasAlmXg_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbasAlmYg_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbasAlmZg_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, -256, 255 } /* (-256..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbasAlmXgdot_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, -4, 3 } /* (-4..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbasAlmYgDot_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, -4, 3 } /* (-4..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbasAlmZgDot_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, -8, 7 } /* (-8..7) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbasAlmTo_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_AlmanacECEF_SBAS_AlmanacSet_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, sbasAlmDataID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasAlmDataID_constr_2, memb_sbasAlmDataID_constraint_1 }, - 0, 0, /* No default value */ - "sbasAlmDataID" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, svID), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, sbasAlmHealth), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_sbasAlmHealth_constr_4, memb_sbasAlmHealth_constraint_1 }, - 0, 0, /* No default value */ - "sbasAlmHealth" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, sbasAlmXg), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasAlmXg_constr_5, memb_sbasAlmXg_constraint_1 }, - 0, 0, /* No default value */ - "sbasAlmXg" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, sbasAlmYg), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasAlmYg_constr_6, memb_sbasAlmYg_constraint_1 }, - 0, 0, /* No default value */ - "sbasAlmYg" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, sbasAlmZg), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasAlmZg_constr_7, memb_sbasAlmZg_constraint_1 }, - 0, 0, /* No default value */ - "sbasAlmZg" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, sbasAlmXgdot), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasAlmXgdot_constr_8, memb_sbasAlmXgdot_constraint_1 }, - 0, 0, /* No default value */ - "sbasAlmXgdot" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, sbasAlmYgDot), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasAlmYgDot_constr_9, memb_sbasAlmYgDot_constraint_1 }, - 0, 0, /* No default value */ - "sbasAlmYgDot" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, sbasAlmZgDot), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasAlmZgDot_constr_10, memb_sbasAlmZgDot_constraint_1 }, - 0, 0, /* No default value */ - "sbasAlmZgDot" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, sbasAlmTo), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasAlmTo_constr_11, memb_sbasAlmTo_constraint_1 }, - 0, 0, /* No default value */ - "sbasAlmTo" - }, -}; -static const ber_tlv_tag_t asn_DEF_AlmanacECEF_SBAS_AlmanacSet_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_AlmanacECEF_SBAS_AlmanacSet_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sbasAlmDataID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* svID */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sbasAlmHealth */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* sbasAlmXg */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* sbasAlmYg */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* sbasAlmZg */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* sbasAlmXgdot */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* sbasAlmYgDot */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* sbasAlmZgDot */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* sbasAlmTo */ -}; -asn_SEQUENCE_specifics_t asn_SPC_AlmanacECEF_SBAS_AlmanacSet_specs_1 = { - sizeof(struct AlmanacECEF_SBAS_AlmanacSet), - offsetof(struct AlmanacECEF_SBAS_AlmanacSet, _asn_ctx), - asn_MAP_AlmanacECEF_SBAS_AlmanacSet_tag2el_1, - 10, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 10, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_AlmanacECEF_SBAS_AlmanacSet = { - "AlmanacECEF-SBAS-AlmanacSet", - "AlmanacECEF-SBAS-AlmanacSet", - &asn_OP_SEQUENCE, - asn_DEF_AlmanacECEF_SBAS_AlmanacSet_tags_1, - sizeof(asn_DEF_AlmanacECEF_SBAS_AlmanacSet_tags_1) - /sizeof(asn_DEF_AlmanacECEF_SBAS_AlmanacSet_tags_1[0]), /* 1 */ - asn_DEF_AlmanacECEF_SBAS_AlmanacSet_tags_1, /* Same as above */ - sizeof(asn_DEF_AlmanacECEF_SBAS_AlmanacSet_tags_1) - /sizeof(asn_DEF_AlmanacECEF_SBAS_AlmanacSet_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_AlmanacECEF_SBAS_AlmanacSet_1, - 10, /* Elements count */ - &asn_SPC_AlmanacECEF_SBAS_AlmanacSet_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AlmanacGLONASS-AlmanacSet.c b/asn.1/generated/AlmanacGLONASS-AlmanacSet.c deleted file mode 100644 index 965d44c3..00000000 --- a/asn.1/generated/AlmanacGLONASS-AlmanacSet.c +++ /dev/null @@ -1,568 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AlmanacGLONASS-AlmanacSet.h" - -static int -memb_gloAlm_NA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 1461)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloAlmnA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 24)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloAlmHA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 31)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloAlmLambdaA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1048576 && value <= 1048575)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloAlmtlambdaA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2097151)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloAlmDeltaIa_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -131072 && value <= 131071)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloAlmDeltaTA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2097152 && value <= 2097151)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloAlmDeltaTdotA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -64 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloAlmEpsilonA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloAlmOmegaA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloAlmTauA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -512 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloAlmCA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloAlmMA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 2)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gloAlm_NA_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 1, 1461 } /* (1..1461) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloAlmnA_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 1, 24 } /* (1..24) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloAlmHA_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloAlmLambdaA_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloAlmtlambdaA_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, 0, 2097151 } /* (0..2097151) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloAlmDeltaIa_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 18, -1, -131072, 131071 } /* (-131072..131071) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloAlmDeltaTA_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, -2097152, 2097151 } /* (-2097152..2097151) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloAlmDeltaTdotA_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloAlmEpsilonA_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloAlmOmegaA_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloAlmTauA_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloAlmCA_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloAlmMA_constr_14 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_AlmanacGLONASS_AlmanacSet_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlm_NA), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloAlm_NA_constr_2, memb_gloAlm_NA_constraint_1 }, - 0, 0, /* No default value */ - "gloAlm-NA" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmnA), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloAlmnA_constr_3, memb_gloAlmnA_constraint_1 }, - 0, 0, /* No default value */ - "gloAlmnA" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmHA), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloAlmHA_constr_4, memb_gloAlmHA_constraint_1 }, - 0, 0, /* No default value */ - "gloAlmHA" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmLambdaA), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloAlmLambdaA_constr_5, memb_gloAlmLambdaA_constraint_1 }, - 0, 0, /* No default value */ - "gloAlmLambdaA" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmtlambdaA), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloAlmtlambdaA_constr_6, memb_gloAlmtlambdaA_constraint_1 }, - 0, 0, /* No default value */ - "gloAlmtlambdaA" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmDeltaIa), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloAlmDeltaIa_constr_7, memb_gloAlmDeltaIa_constraint_1 }, - 0, 0, /* No default value */ - "gloAlmDeltaIa" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmDeltaTA), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloAlmDeltaTA_constr_8, memb_gloAlmDeltaTA_constraint_1 }, - 0, 0, /* No default value */ - "gloAlmDeltaTA" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmDeltaTdotA), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloAlmDeltaTdotA_constr_9, memb_gloAlmDeltaTdotA_constraint_1 }, - 0, 0, /* No default value */ - "gloAlmDeltaTdotA" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmEpsilonA), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloAlmEpsilonA_constr_10, memb_gloAlmEpsilonA_constraint_1 }, - 0, 0, /* No default value */ - "gloAlmEpsilonA" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmOmegaA), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloAlmOmegaA_constr_11, memb_gloAlmOmegaA_constraint_1 }, - 0, 0, /* No default value */ - "gloAlmOmegaA" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmTauA), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloAlmTauA_constr_12, memb_gloAlmTauA_constraint_1 }, - 0, 0, /* No default value */ - "gloAlmTauA" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmCA), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloAlmCA_constr_13, memb_gloAlmCA_constraint_1 }, - 0, 0, /* No default value */ - "gloAlmCA" - }, - { ATF_POINTER, 1, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmMA), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_gloAlmMA_constr_14, memb_gloAlmMA_constraint_1 }, - 0, 0, /* No default value */ - "gloAlmMA" - }, -}; -static const int asn_MAP_AlmanacGLONASS_AlmanacSet_oms_1[] = { 12 }; -static const ber_tlv_tag_t asn_DEF_AlmanacGLONASS_AlmanacSet_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_AlmanacGLONASS_AlmanacSet_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gloAlm-NA */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gloAlmnA */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gloAlmHA */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gloAlmLambdaA */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gloAlmtlambdaA */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gloAlmDeltaIa */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gloAlmDeltaTA */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* gloAlmDeltaTdotA */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* gloAlmEpsilonA */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* gloAlmOmegaA */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* gloAlmTauA */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* gloAlmCA */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 } /* gloAlmMA */ -}; -asn_SEQUENCE_specifics_t asn_SPC_AlmanacGLONASS_AlmanacSet_specs_1 = { - sizeof(struct AlmanacGLONASS_AlmanacSet), - offsetof(struct AlmanacGLONASS_AlmanacSet, _asn_ctx), - asn_MAP_AlmanacGLONASS_AlmanacSet_tag2el_1, - 13, /* Count of tags in the map */ - asn_MAP_AlmanacGLONASS_AlmanacSet_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 13, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_AlmanacGLONASS_AlmanacSet = { - "AlmanacGLONASS-AlmanacSet", - "AlmanacGLONASS-AlmanacSet", - &asn_OP_SEQUENCE, - asn_DEF_AlmanacGLONASS_AlmanacSet_tags_1, - sizeof(asn_DEF_AlmanacGLONASS_AlmanacSet_tags_1) - /sizeof(asn_DEF_AlmanacGLONASS_AlmanacSet_tags_1[0]), /* 1 */ - asn_DEF_AlmanacGLONASS_AlmanacSet_tags_1, /* Same as above */ - sizeof(asn_DEF_AlmanacGLONASS_AlmanacSet_tags_1) - /sizeof(asn_DEF_AlmanacGLONASS_AlmanacSet_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_AlmanacGLONASS_AlmanacSet_1, - 13, /* Elements count */ - &asn_SPC_AlmanacGLONASS_AlmanacSet_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AlmanacKeplerianSet.c b/asn.1/generated/AlmanacKeplerianSet.c deleted file mode 100644 index 8a51bb3a..00000000 --- a/asn.1/generated/AlmanacKeplerianSet.c +++ /dev/null @@ -1,504 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AlmanacKeplerianSet.h" - -static int -memb_kepAlmanacE_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_kepAlmanacDeltaI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_kepAlmanacOmegaDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_kepSV_StatusINAV_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 4)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_kepSV_StatusFNAV_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 2)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_kepAlmanacAPowerHalf_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -4096 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_kepAlmanacOmega0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_kepAlmanacW_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_kepAlmanacM0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_kepAlmanacAF0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_kepAlmanacAF1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -4096 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_kepAlmanacE_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_kepAlmanacDeltaI_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_kepAlmanacOmegaDot_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_kepSV_StatusINAV_constr_6 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_kepSV_StatusFNAV_constr_7 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_kepAlmanacAPowerHalf_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_kepAlmanacOmega0_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_kepAlmanacW_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_kepAlmanacM0_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_kepAlmanacAF0_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_kepAlmanacAF1_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_AlmanacKeplerianSet_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, svID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepAlmanacE), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_kepAlmanacE_constr_3, memb_kepAlmanacE_constraint_1 }, - 0, 0, /* No default value */ - "kepAlmanacE" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepAlmanacDeltaI), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_kepAlmanacDeltaI_constr_4, memb_kepAlmanacDeltaI_constraint_1 }, - 0, 0, /* No default value */ - "kepAlmanacDeltaI" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepAlmanacOmegaDot), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_kepAlmanacOmegaDot_constr_5, memb_kepAlmanacOmegaDot_constraint_1 }, - 0, 0, /* No default value */ - "kepAlmanacOmegaDot" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepSV_StatusINAV), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_kepSV_StatusINAV_constr_6, memb_kepSV_StatusINAV_constraint_1 }, - 0, 0, /* No default value */ - "kepSV-StatusINAV" - }, - { ATF_POINTER, 1, offsetof(struct AlmanacKeplerianSet, kepSV_StatusFNAV), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_kepSV_StatusFNAV_constr_7, memb_kepSV_StatusFNAV_constraint_1 }, - 0, 0, /* No default value */ - "kepSV-StatusFNAV" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepAlmanacAPowerHalf), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_kepAlmanacAPowerHalf_constr_8, memb_kepAlmanacAPowerHalf_constraint_1 }, - 0, 0, /* No default value */ - "kepAlmanacAPowerHalf" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepAlmanacOmega0), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_kepAlmanacOmega0_constr_9, memb_kepAlmanacOmega0_constraint_1 }, - 0, 0, /* No default value */ - "kepAlmanacOmega0" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepAlmanacW), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_kepAlmanacW_constr_10, memb_kepAlmanacW_constraint_1 }, - 0, 0, /* No default value */ - "kepAlmanacW" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepAlmanacM0), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_kepAlmanacM0_constr_11, memb_kepAlmanacM0_constraint_1 }, - 0, 0, /* No default value */ - "kepAlmanacM0" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepAlmanacAF0), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_kepAlmanacAF0_constr_12, memb_kepAlmanacAF0_constraint_1 }, - 0, 0, /* No default value */ - "kepAlmanacAF0" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepAlmanacAF1), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_kepAlmanacAF1_constr_13, memb_kepAlmanacAF1_constraint_1 }, - 0, 0, /* No default value */ - "kepAlmanacAF1" - }, -}; -static const int asn_MAP_AlmanacKeplerianSet_oms_1[] = { 5 }; -static const ber_tlv_tag_t asn_DEF_AlmanacKeplerianSet_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_AlmanacKeplerianSet_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* kepAlmanacE */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* kepAlmanacDeltaI */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* kepAlmanacOmegaDot */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* kepSV-StatusINAV */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* kepSV-StatusFNAV */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* kepAlmanacAPowerHalf */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* kepAlmanacOmega0 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* kepAlmanacW */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* kepAlmanacM0 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* kepAlmanacAF0 */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* kepAlmanacAF1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_AlmanacKeplerianSet_specs_1 = { - sizeof(struct AlmanacKeplerianSet), - offsetof(struct AlmanacKeplerianSet, _asn_ctx), - asn_MAP_AlmanacKeplerianSet_tag2el_1, - 12, /* Count of tags in the map */ - asn_MAP_AlmanacKeplerianSet_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 12, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_AlmanacKeplerianSet = { - "AlmanacKeplerianSet", - "AlmanacKeplerianSet", - &asn_OP_SEQUENCE, - asn_DEF_AlmanacKeplerianSet_tags_1, - sizeof(asn_DEF_AlmanacKeplerianSet_tags_1) - /sizeof(asn_DEF_AlmanacKeplerianSet_tags_1[0]), /* 1 */ - asn_DEF_AlmanacKeplerianSet_tags_1, /* Same as above */ - sizeof(asn_DEF_AlmanacKeplerianSet_tags_1) - /sizeof(asn_DEF_AlmanacKeplerianSet_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_AlmanacKeplerianSet_1, - 12, /* Elements count */ - &asn_SPC_AlmanacKeplerianSet_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AlmanacMidiAlmanacSet.c b/asn.1/generated/AlmanacMidiAlmanacSet.c deleted file mode 100644 index 4d9364a2..00000000 --- a/asn.1/generated/AlmanacMidiAlmanacSet.c +++ /dev/null @@ -1,440 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AlmanacMidiAlmanacSet.h" - -static int -memb_midiAlmE_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_midiAlmDeltaI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_midiAlmOmegaDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_midiAlmSqrtA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 131071)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_midiAlmOmega0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_midiAlmOmega_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_midiAlmMo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_midiAlmaf0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_midiAlmaf1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -512 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_midiAlmE_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_midiAlmDeltaI_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_midiAlmOmegaDot_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_midiAlmSqrtA_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 17, -1, 0, 131071 } /* (0..131071) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_midiAlmOmega0_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_midiAlmOmega_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_midiAlmMo_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_midiAlmaf0_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_midiAlmaf1_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_AlmanacMidiAlmanacSet_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, svID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmE), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_midiAlmE_constr_3, memb_midiAlmE_constraint_1 }, - 0, 0, /* No default value */ - "midiAlmE" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmDeltaI), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_midiAlmDeltaI_constr_4, memb_midiAlmDeltaI_constraint_1 }, - 0, 0, /* No default value */ - "midiAlmDeltaI" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmOmegaDot), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_midiAlmOmegaDot_constr_5, memb_midiAlmOmegaDot_constraint_1 }, - 0, 0, /* No default value */ - "midiAlmOmegaDot" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmSqrtA), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_midiAlmSqrtA_constr_6, memb_midiAlmSqrtA_constraint_1 }, - 0, 0, /* No default value */ - "midiAlmSqrtA" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmOmega0), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_midiAlmOmega0_constr_7, memb_midiAlmOmega0_constraint_1 }, - 0, 0, /* No default value */ - "midiAlmOmega0" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmOmega), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_midiAlmOmega_constr_8, memb_midiAlmOmega_constraint_1 }, - 0, 0, /* No default value */ - "midiAlmOmega" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmMo), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_midiAlmMo_constr_9, memb_midiAlmMo_constraint_1 }, - 0, 0, /* No default value */ - "midiAlmMo" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmaf0), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_midiAlmaf0_constr_10, memb_midiAlmaf0_constraint_1 }, - 0, 0, /* No default value */ - "midiAlmaf0" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmaf1), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_midiAlmaf1_constr_11, memb_midiAlmaf1_constraint_1 }, - 0, 0, /* No default value */ - "midiAlmaf1" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmL1Health), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "midiAlmL1Health" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmL2Health), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "midiAlmL2Health" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmL5Health), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "midiAlmL5Health" - }, -}; -static const ber_tlv_tag_t asn_DEF_AlmanacMidiAlmanacSet_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_AlmanacMidiAlmanacSet_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* midiAlmE */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* midiAlmDeltaI */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* midiAlmOmegaDot */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* midiAlmSqrtA */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* midiAlmOmega0 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* midiAlmOmega */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* midiAlmMo */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* midiAlmaf0 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* midiAlmaf1 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* midiAlmL1Health */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* midiAlmL2Health */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 } /* midiAlmL5Health */ -}; -asn_SEQUENCE_specifics_t asn_SPC_AlmanacMidiAlmanacSet_specs_1 = { - sizeof(struct AlmanacMidiAlmanacSet), - offsetof(struct AlmanacMidiAlmanacSet, _asn_ctx), - asn_MAP_AlmanacMidiAlmanacSet_tag2el_1, - 13, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 13, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_AlmanacMidiAlmanacSet = { - "AlmanacMidiAlmanacSet", - "AlmanacMidiAlmanacSet", - &asn_OP_SEQUENCE, - asn_DEF_AlmanacMidiAlmanacSet_tags_1, - sizeof(asn_DEF_AlmanacMidiAlmanacSet_tags_1) - /sizeof(asn_DEF_AlmanacMidiAlmanacSet_tags_1[0]), /* 1 */ - asn_DEF_AlmanacMidiAlmanacSet_tags_1, /* Same as above */ - sizeof(asn_DEF_AlmanacMidiAlmanacSet_tags_1) - /sizeof(asn_DEF_AlmanacMidiAlmanacSet_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_AlmanacMidiAlmanacSet_1, - 13, /* Elements count */ - &asn_SPC_AlmanacMidiAlmanacSet_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AlmanacNAV-KeplerianSet.c b/asn.1/generated/AlmanacNAV-KeplerianSet.c deleted file mode 100644 index 3dfdf1c1..00000000 --- a/asn.1/generated/AlmanacNAV-KeplerianSet.c +++ /dev/null @@ -1,450 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AlmanacNAV-KeplerianSet.h" - -static int -memb_navAlmE_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navAlmDeltaI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navAlmOMEGADOT_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navAlmSVHealth_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navAlmSqrtA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 16777215)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navAlmOMEGAo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navAlmOmega_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navAlmMo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navAlmaf0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navAlmaf1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_navAlmE_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navAlmDeltaI_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navAlmOMEGADOT_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navAlmSVHealth_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navAlmSqrtA_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navAlmOMEGAo_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navAlmOmega_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navAlmMo_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navAlmaf0_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navAlmaf1_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_AlmanacNAV_KeplerianSet_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, svID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmE), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navAlmE_constr_3, memb_navAlmE_constraint_1 }, - 0, 0, /* No default value */ - "navAlmE" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmDeltaI), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navAlmDeltaI_constr_4, memb_navAlmDeltaI_constraint_1 }, - 0, 0, /* No default value */ - "navAlmDeltaI" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmOMEGADOT), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navAlmOMEGADOT_constr_5, memb_navAlmOMEGADOT_constraint_1 }, - 0, 0, /* No default value */ - "navAlmOMEGADOT" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmSVHealth), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navAlmSVHealth_constr_6, memb_navAlmSVHealth_constraint_1 }, - 0, 0, /* No default value */ - "navAlmSVHealth" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmSqrtA), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navAlmSqrtA_constr_7, memb_navAlmSqrtA_constraint_1 }, - 0, 0, /* No default value */ - "navAlmSqrtA" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmOMEGAo), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navAlmOMEGAo_constr_8, memb_navAlmOMEGAo_constraint_1 }, - 0, 0, /* No default value */ - "navAlmOMEGAo" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmOmega), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navAlmOmega_constr_9, memb_navAlmOmega_constraint_1 }, - 0, 0, /* No default value */ - "navAlmOmega" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmMo), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navAlmMo_constr_10, memb_navAlmMo_constraint_1 }, - 0, 0, /* No default value */ - "navAlmMo" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmaf0), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navAlmaf0_constr_11, memb_navAlmaf0_constraint_1 }, - 0, 0, /* No default value */ - "navAlmaf0" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmaf1), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navAlmaf1_constr_12, memb_navAlmaf1_constraint_1 }, - 0, 0, /* No default value */ - "navAlmaf1" - }, -}; -static const ber_tlv_tag_t asn_DEF_AlmanacNAV_KeplerianSet_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_AlmanacNAV_KeplerianSet_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* navAlmE */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* navAlmDeltaI */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* navAlmOMEGADOT */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* navAlmSVHealth */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* navAlmSqrtA */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* navAlmOMEGAo */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* navAlmOmega */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* navAlmMo */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* navAlmaf0 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 } /* navAlmaf1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_AlmanacNAV_KeplerianSet_specs_1 = { - sizeof(struct AlmanacNAV_KeplerianSet), - offsetof(struct AlmanacNAV_KeplerianSet, _asn_ctx), - asn_MAP_AlmanacNAV_KeplerianSet_tag2el_1, - 11, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 11, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_AlmanacNAV_KeplerianSet = { - "AlmanacNAV-KeplerianSet", - "AlmanacNAV-KeplerianSet", - &asn_OP_SEQUENCE, - asn_DEF_AlmanacNAV_KeplerianSet_tags_1, - sizeof(asn_DEF_AlmanacNAV_KeplerianSet_tags_1) - /sizeof(asn_DEF_AlmanacNAV_KeplerianSet_tags_1[0]), /* 1 */ - asn_DEF_AlmanacNAV_KeplerianSet_tags_1, /* Same as above */ - sizeof(asn_DEF_AlmanacNAV_KeplerianSet_tags_1) - /sizeof(asn_DEF_AlmanacNAV_KeplerianSet_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_AlmanacNAV_KeplerianSet_1, - 11, /* Elements count */ - &asn_SPC_AlmanacNAV_KeplerianSet_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AlmanacNavIC-AlmanacSet-r16.c b/asn.1/generated/AlmanacNavIC-AlmanacSet-r16.c deleted file mode 100644 index bd63ce3a..00000000 --- a/asn.1/generated/AlmanacNavIC-AlmanacSet-r16.c +++ /dev/null @@ -1,412 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AlmanacNavIC-AlmanacSet-r16.h" - -static int -memb_navic_AlmToa_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_AlmE_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_AlmOMEGADOT_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_AlmSqrtA_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 16777215)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_AlmOMEGAo_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_AlmOmega_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_AlmMo_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_Almaf0_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_Almaf1_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_navic_AlmToa_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_AlmE_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_AlmOMEGADOT_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_AlmSqrtA_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_AlmOMEGAo_r16_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_AlmOmega_r16_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_AlmMo_r16_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_Almaf0_r16_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_Almaf1_r16_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_AlmanacNavIC_AlmanacSet_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNavIC_AlmanacSet_r16, svID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID-r16" - }, - { ATF_POINTER, 1, offsetof(struct AlmanacNavIC_AlmanacSet_r16, navic_AlmToa_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_AlmToa_r16_constr_3, memb_navic_AlmToa_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-AlmToa-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNavIC_AlmanacSet_r16, navic_AlmE_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_AlmE_r16_constr_4, memb_navic_AlmE_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-AlmE-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNavIC_AlmanacSet_r16, navic_AlmOMEGADOT_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_AlmOMEGADOT_r16_constr_5, memb_navic_AlmOMEGADOT_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-AlmOMEGADOT-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNavIC_AlmanacSet_r16, navic_AlmSqrtA_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_AlmSqrtA_r16_constr_6, memb_navic_AlmSqrtA_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-AlmSqrtA-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNavIC_AlmanacSet_r16, navic_AlmOMEGAo_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_AlmOMEGAo_r16_constr_7, memb_navic_AlmOMEGAo_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-AlmOMEGAo-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNavIC_AlmanacSet_r16, navic_AlmOmega_r16), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_AlmOmega_r16_constr_8, memb_navic_AlmOmega_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-AlmOmega-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNavIC_AlmanacSet_r16, navic_AlmMo_r16), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_AlmMo_r16_constr_9, memb_navic_AlmMo_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-AlmMo-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNavIC_AlmanacSet_r16, navic_Almaf0_r16), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_Almaf0_r16_constr_10, memb_navic_Almaf0_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-Almaf0-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacNavIC_AlmanacSet_r16, navic_Almaf1_r16), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_Almaf1_r16_constr_11, memb_navic_Almaf1_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-Almaf1-r16" - }, -}; -static const int asn_MAP_AlmanacNavIC_AlmanacSet_r16_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_AlmanacNavIC_AlmanacSet_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_AlmanacNavIC_AlmanacSet_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* navic-AlmToa-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* navic-AlmE-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* navic-AlmOMEGADOT-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* navic-AlmSqrtA-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* navic-AlmOMEGAo-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* navic-AlmOmega-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* navic-AlmMo-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* navic-Almaf0-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* navic-Almaf1-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_AlmanacNavIC_AlmanacSet_r16_specs_1 = { - sizeof(struct AlmanacNavIC_AlmanacSet_r16), - offsetof(struct AlmanacNavIC_AlmanacSet_r16, _asn_ctx), - asn_MAP_AlmanacNavIC_AlmanacSet_r16_tag2el_1, - 10, /* Count of tags in the map */ - asn_MAP_AlmanacNavIC_AlmanacSet_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 10, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_AlmanacNavIC_AlmanacSet_r16 = { - "AlmanacNavIC-AlmanacSet-r16", - "AlmanacNavIC-AlmanacSet-r16", - &asn_OP_SEQUENCE, - asn_DEF_AlmanacNavIC_AlmanacSet_r16_tags_1, - sizeof(asn_DEF_AlmanacNavIC_AlmanacSet_r16_tags_1) - /sizeof(asn_DEF_AlmanacNavIC_AlmanacSet_r16_tags_1[0]), /* 1 */ - asn_DEF_AlmanacNavIC_AlmanacSet_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_AlmanacNavIC_AlmanacSet_r16_tags_1) - /sizeof(asn_DEF_AlmanacNavIC_AlmanacSet_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_AlmanacNavIC_AlmanacSet_r16_1, - 10, /* Elements count */ - &asn_SPC_AlmanacNavIC_AlmanacSet_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AlmanacReducedKeplerianSet.c b/asn.1/generated/AlmanacReducedKeplerianSet.c deleted file mode 100644 index f35fb0f2..00000000 --- a/asn.1/generated/AlmanacReducedKeplerianSet.c +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AlmanacReducedKeplerianSet.h" - -static int -memb_redAlmDeltaA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_redAlmOmega0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -64 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_redAlmPhi0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -64 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_redAlmDeltaA_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_redAlmOmega0_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_redAlmPhi0_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_AlmanacReducedKeplerianSet_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AlmanacReducedKeplerianSet, svID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacReducedKeplerianSet, redAlmDeltaA), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_redAlmDeltaA_constr_3, memb_redAlmDeltaA_constraint_1 }, - 0, 0, /* No default value */ - "redAlmDeltaA" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacReducedKeplerianSet, redAlmOmega0), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_redAlmOmega0_constr_4, memb_redAlmOmega0_constraint_1 }, - 0, 0, /* No default value */ - "redAlmOmega0" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacReducedKeplerianSet, redAlmPhi0), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_redAlmPhi0_constr_5, memb_redAlmPhi0_constraint_1 }, - 0, 0, /* No default value */ - "redAlmPhi0" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacReducedKeplerianSet, redAlmL1Health), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "redAlmL1Health" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacReducedKeplerianSet, redAlmL2Health), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "redAlmL2Health" - }, - { ATF_NOFLAGS, 0, offsetof(struct AlmanacReducedKeplerianSet, redAlmL5Health), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "redAlmL5Health" - }, -}; -static const ber_tlv_tag_t asn_DEF_AlmanacReducedKeplerianSet_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_AlmanacReducedKeplerianSet_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* redAlmDeltaA */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* redAlmOmega0 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* redAlmPhi0 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* redAlmL1Health */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* redAlmL2Health */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* redAlmL5Health */ -}; -asn_SEQUENCE_specifics_t asn_SPC_AlmanacReducedKeplerianSet_specs_1 = { - sizeof(struct AlmanacReducedKeplerianSet), - offsetof(struct AlmanacReducedKeplerianSet, _asn_ctx), - asn_MAP_AlmanacReducedKeplerianSet_tag2el_1, - 7, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 7, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_AlmanacReducedKeplerianSet = { - "AlmanacReducedKeplerianSet", - "AlmanacReducedKeplerianSet", - &asn_OP_SEQUENCE, - asn_DEF_AlmanacReducedKeplerianSet_tags_1, - sizeof(asn_DEF_AlmanacReducedKeplerianSet_tags_1) - /sizeof(asn_DEF_AlmanacReducedKeplerianSet_tags_1[0]), /* 1 */ - asn_DEF_AlmanacReducedKeplerianSet_tags_1, /* Same as above */ - sizeof(asn_DEF_AlmanacReducedKeplerianSet_tags_1) - /sizeof(asn_DEF_AlmanacReducedKeplerianSet_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_AlmanacReducedKeplerianSet_1, - 7, /* Elements count */ - &asn_SPC_AlmanacReducedKeplerianSet_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AltitudeInfo.c b/asn.1/generated/AltitudeInfo.c deleted file mode 100644 index 1c1b7ddd..00000000 --- a/asn.1/generated/AltitudeInfo.c +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AltitudeInfo.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_altitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_altUncertainty_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_altitudeDirection_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_altitude_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_altUncertainty_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_altitudeDirection_value2enum_2[] = { - { 0, 6, "height" }, - { 1, 5, "depth" } -}; -static const unsigned int asn_MAP_altitudeDirection_enum2value_2[] = { - 1, /* depth(1) */ - 0 /* height(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_altitudeDirection_specs_2 = { - asn_MAP_altitudeDirection_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_altitudeDirection_enum2value_2, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_altitudeDirection_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_altitudeDirection_2 = { - "altitudeDirection", - "altitudeDirection", - &asn_OP_NativeEnumerated, - asn_DEF_altitudeDirection_tags_2, - sizeof(asn_DEF_altitudeDirection_tags_2) - /sizeof(asn_DEF_altitudeDirection_tags_2[0]) - 1, /* 1 */ - asn_DEF_altitudeDirection_tags_2, /* Same as above */ - sizeof(asn_DEF_altitudeDirection_tags_2) - /sizeof(asn_DEF_altitudeDirection_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_altitudeDirection_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_altitudeDirection_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_AltitudeInfo_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AltitudeInfo, altitudeDirection), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_altitudeDirection_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "altitudeDirection" - }, - { ATF_NOFLAGS, 0, offsetof(struct AltitudeInfo, altitude), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_altitude_constr_5, memb_altitude_constraint_1 }, - 0, 0, /* No default value */ - "altitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct AltitudeInfo, altUncertainty), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_altUncertainty_constr_6, memb_altUncertainty_constraint_1 }, - 0, 0, /* No default value */ - "altUncertainty" - }, -}; -static const ber_tlv_tag_t asn_DEF_AltitudeInfo_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_AltitudeInfo_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* altitudeDirection */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* altitude */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* altUncertainty */ -}; -asn_SEQUENCE_specifics_t asn_SPC_AltitudeInfo_specs_1 = { - sizeof(struct AltitudeInfo), - offsetof(struct AltitudeInfo, _asn_ctx), - asn_MAP_AltitudeInfo_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_AltitudeInfo = { - "AltitudeInfo", - "AltitudeInfo", - &asn_OP_SEQUENCE, - asn_DEF_AltitudeInfo_tags_1, - sizeof(asn_DEF_AltitudeInfo_tags_1) - /sizeof(asn_DEF_AltitudeInfo_tags_1[0]), /* 1 */ - asn_DEF_AltitudeInfo_tags_1, /* Same as above */ - sizeof(asn_DEF_AltitudeInfo_tags_1) - /sizeof(asn_DEF_AltitudeInfo_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_AltitudeInfo_1, - 3, /* Elements count */ - &asn_SPC_AltitudeInfo_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AntennaDescription-r15.c b/asn.1/generated/AntennaDescription-r15.c deleted file mode 100644 index aa7d1e81..00000000 --- a/asn.1/generated/AntennaDescription-r15.c +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AntennaDescription-r15.h" - -static int check_permitted_alphabet_2(const void *sptr) { - /* The underlying type is VisibleString */ - const VisibleString_t *st = (const VisibleString_t *)sptr; - const uint8_t *ch = st->buf; - const uint8_t *end = ch + st->size; - - for(; ch < end; ch++) { - uint8_t cv = *ch; - if(!(cv >= 32 && cv <= 126)) return -1; - } - return 0; -} - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_antennaDescriptor_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const VisibleString_t *st = (const VisibleString_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size >= 1 && size <= 256) - && !check_permitted_alphabet_2(st)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_antennaSetUpID_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_antennaDescriptor_r15_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 32, 126 } /* (32..126) */, - { APC_CONSTRAINED, 8, 8, 1, 256 } /* (SIZE(1..256)) */, - 0, 0 /* No PER character map necessary */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_antennaSetUpID_r15_value2enum_3[] = { - { 0, 8, "non-zero" } -}; -static const unsigned int asn_MAP_antennaSetUpID_r15_enum2value_3[] = { - 0 /* non-zero(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_antennaSetUpID_r15_specs_3 = { - asn_MAP_antennaSetUpID_r15_value2enum_3, /* "tag" => N; sorted by tag */ - asn_MAP_antennaSetUpID_r15_enum2value_3, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_antennaSetUpID_r15_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_antennaSetUpID_r15_3 = { - "antennaSetUpID-r15", - "antennaSetUpID-r15", - &asn_OP_NativeEnumerated, - asn_DEF_antennaSetUpID_r15_tags_3, - sizeof(asn_DEF_antennaSetUpID_r15_tags_3) - /sizeof(asn_DEF_antennaSetUpID_r15_tags_3[0]) - 1, /* 1 */ - asn_DEF_antennaSetUpID_r15_tags_3, /* Same as above */ - sizeof(asn_DEF_antennaSetUpID_r15_tags_3) - /sizeof(asn_DEF_antennaSetUpID_r15_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_antennaSetUpID_r15_constr_3, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_antennaSetUpID_r15_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_AntennaDescription_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AntennaDescription_r15, antennaDescriptor_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VisibleString, - 0, - { 0, &asn_PER_memb_antennaDescriptor_r15_constr_2, memb_antennaDescriptor_r15_constraint_1 }, - 0, 0, /* No default value */ - "antennaDescriptor-r15" - }, - { ATF_POINTER, 1, offsetof(struct AntennaDescription_r15, antennaSetUpID_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_antennaSetUpID_r15_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "antennaSetUpID-r15" - }, -}; -static const int asn_MAP_AntennaDescription_r15_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_AntennaDescription_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_AntennaDescription_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* antennaDescriptor-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* antennaSetUpID-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_AntennaDescription_r15_specs_1 = { - sizeof(struct AntennaDescription_r15), - offsetof(struct AntennaDescription_r15, _asn_ctx), - asn_MAP_AntennaDescription_r15_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_AntennaDescription_r15_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_AntennaDescription_r15 = { - "AntennaDescription-r15", - "AntennaDescription-r15", - &asn_OP_SEQUENCE, - asn_DEF_AntennaDescription_r15_tags_1, - sizeof(asn_DEF_AntennaDescription_r15_tags_1) - /sizeof(asn_DEF_AntennaDescription_r15_tags_1[0]), /* 1 */ - asn_DEF_AntennaDescription_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_AntennaDescription_r15_tags_1) - /sizeof(asn_DEF_AntennaDescription_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_AntennaDescription_r15_1, - 2, /* Elements count */ - &asn_SPC_AntennaDescription_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AntennaReferencePointUnc-r15.c b/asn.1/generated/AntennaReferencePointUnc-r15.c deleted file mode 100644 index 68c6c73d..00000000 --- a/asn.1/generated/AntennaReferencePointUnc-r15.c +++ /dev/null @@ -1,280 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AntennaReferencePointUnc-r15.h" - -static int -memb_uncertainty_X_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_confidence_X_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_uncertainty_Y_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_confidence_Y_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_uncertainty_Z_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_confidence_Z_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_uncertainty_X_r15_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_confidence_X_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_uncertainty_Y_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_confidence_Y_r15_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_uncertainty_Z_r15_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_confidence_Z_r15_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_AntennaReferencePointUnc_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AntennaReferencePointUnc_r15, uncertainty_X_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_uncertainty_X_r15_constr_2, memb_uncertainty_X_r15_constraint_1 }, - 0, 0, /* No default value */ - "uncertainty-X-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct AntennaReferencePointUnc_r15, confidence_X_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_confidence_X_r15_constr_3, memb_confidence_X_r15_constraint_1 }, - 0, 0, /* No default value */ - "confidence-X-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct AntennaReferencePointUnc_r15, uncertainty_Y_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_uncertainty_Y_r15_constr_4, memb_uncertainty_Y_r15_constraint_1 }, - 0, 0, /* No default value */ - "uncertainty-Y-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct AntennaReferencePointUnc_r15, confidence_Y_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_confidence_Y_r15_constr_5, memb_confidence_Y_r15_constraint_1 }, - 0, 0, /* No default value */ - "confidence-Y-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct AntennaReferencePointUnc_r15, uncertainty_Z_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_uncertainty_Z_r15_constr_6, memb_uncertainty_Z_r15_constraint_1 }, - 0, 0, /* No default value */ - "uncertainty-Z-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct AntennaReferencePointUnc_r15, confidence_Z_r15), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_confidence_Z_r15_constr_7, memb_confidence_Z_r15_constraint_1 }, - 0, 0, /* No default value */ - "confidence-Z-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_AntennaReferencePointUnc_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_AntennaReferencePointUnc_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* uncertainty-X-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* confidence-X-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* uncertainty-Y-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* confidence-Y-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* uncertainty-Z-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* confidence-Z-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_AntennaReferencePointUnc_r15_specs_1 = { - sizeof(struct AntennaReferencePointUnc_r15), - offsetof(struct AntennaReferencePointUnc_r15, _asn_ctx), - asn_MAP_AntennaReferencePointUnc_r15_tag2el_1, - 6, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_AntennaReferencePointUnc_r15 = { - "AntennaReferencePointUnc-r15", - "AntennaReferencePointUnc-r15", - &asn_OP_SEQUENCE, - asn_DEF_AntennaReferencePointUnc_r15_tags_1, - sizeof(asn_DEF_AntennaReferencePointUnc_r15_tags_1) - /sizeof(asn_DEF_AntennaReferencePointUnc_r15_tags_1[0]), /* 1 */ - asn_DEF_AntennaReferencePointUnc_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_AntennaReferencePointUnc_r15_tags_1) - /sizeof(asn_DEF_AntennaReferencePointUnc_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_AntennaReferencePointUnc_r15_1, - 6, /* Elements count */ - &asn_SPC_AntennaReferencePointUnc_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ApplicationID.c b/asn.1/generated/ApplicationID.c deleted file mode 100644 index 1ff084b5..00000000 --- a/asn.1/generated/ApplicationID.c +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ApplicationID.h" - -static int check_permitted_alphabet_2(const void *sptr) { - /* The underlying type is IA5String */ - const IA5String_t *st = (const IA5String_t *)sptr; - const uint8_t *ch = st->buf; - const uint8_t *end = ch + st->size; - - for(; ch < end; ch++) { - uint8_t cv = *ch; - if(!(cv <= 127)) return -1; - } - return 0; -} - -static int check_permitted_alphabet_3(const void *sptr) { - /* The underlying type is IA5String */ - const IA5String_t *st = (const IA5String_t *)sptr; - const uint8_t *ch = st->buf; - const uint8_t *end = ch + st->size; - - for(; ch < end; ch++) { - uint8_t cv = *ch; - if(!(cv <= 127)) return -1; - } - return 0; -} - -static int check_permitted_alphabet_4(const void *sptr) { - /* The underlying type is IA5String */ - const IA5String_t *st = (const IA5String_t *)sptr; - const uint8_t *ch = st->buf; - const uint8_t *end = ch + st->size; - - for(; ch < end; ch++) { - uint8_t cv = *ch; - if(!(cv <= 127)) return -1; - } - return 0; -} - -static int -memb_appProvider_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const IA5String_t *st = (const IA5String_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size >= 1 && size <= 24) - && !check_permitted_alphabet_2(st)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_appName_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const IA5String_t *st = (const IA5String_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size >= 1 && size <= 32) - && !check_permitted_alphabet_3(st)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_appVersion_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const IA5String_t *st = (const IA5String_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size >= 1 && size <= 8) - && !check_permitted_alphabet_4(st)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_appProvider_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_CONSTRAINED, 5, 5, 1, 24 } /* (SIZE(1..24)) */, - 0, 0 /* No PER character map necessary */ -}; -static asn_per_constraints_t asn_PER_memb_appName_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER character map necessary */ -}; -static asn_per_constraints_t asn_PER_memb_appVersion_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER character map necessary */ -}; -asn_TYPE_member_t asn_MBR_ApplicationID_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ApplicationID, appProvider), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_IA5String, - 0, - { 0, &asn_PER_memb_appProvider_constr_2, memb_appProvider_constraint_1 }, - 0, 0, /* No default value */ - "appProvider" - }, - { ATF_NOFLAGS, 0, offsetof(struct ApplicationID, appName), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_IA5String, - 0, - { 0, &asn_PER_memb_appName_constr_3, memb_appName_constraint_1 }, - 0, 0, /* No default value */ - "appName" - }, - { ATF_POINTER, 1, offsetof(struct ApplicationID, appVersion), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_IA5String, - 0, - { 0, &asn_PER_memb_appVersion_constr_4, memb_appVersion_constraint_1 }, - 0, 0, /* No default value */ - "appVersion" - }, -}; -static const int asn_MAP_ApplicationID_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_ApplicationID_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ApplicationID_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* appProvider */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* appName */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* appVersion */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ApplicationID_specs_1 = { - sizeof(struct ApplicationID), - offsetof(struct ApplicationID, _asn_ctx), - asn_MAP_ApplicationID_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_ApplicationID_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ApplicationID = { - "ApplicationID", - "ApplicationID", - &asn_OP_SEQUENCE, - asn_DEF_ApplicationID_tags_1, - sizeof(asn_DEF_ApplicationID_tags_1) - /sizeof(asn_DEF_ApplicationID_tags_1[0]), /* 1 */ - asn_DEF_ApplicationID_tags_1, /* Same as above */ - sizeof(asn_DEF_ApplicationID_tags_1) - /sizeof(asn_DEF_ApplicationID_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ApplicationID_1, - 3, /* Elements count */ - &asn_SPC_ApplicationID_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ApplicationID.h b/asn.1/generated/ApplicationID.h deleted file mode 100644 index 80448d25..00000000 --- a/asn.1/generated/ApplicationID.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _ApplicationID_H_ -#define _ApplicationID_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* ApplicationID */ -typedef struct ApplicationID { - IA5String_t appProvider; - IA5String_t appName; - IA5String_t *appVersion /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} ApplicationID_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_ApplicationID; -extern asn_SEQUENCE_specifics_t asn_SPC_ApplicationID_specs_1; -extern asn_TYPE_member_t asn_MBR_ApplicationID_1[3]; - -#ifdef __cplusplus -} -#endif - -#endif /* _ApplicationID_H_ */ -#include diff --git a/asn.1/generated/AreaEventParams.c b/asn.1/generated/AreaEventParams.c deleted file mode 100644 index 3063305d..00000000 --- a/asn.1/generated/AreaEventParams.c +++ /dev/null @@ -1,245 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AreaEventParams.h" - -static int -memb_startTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2678400)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_stopTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 11318399)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_areaIdLists_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 32)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_areaIdLists_constr_8 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_startTime_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, 0, 2678400 } /* (0..2678400) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_stopTime_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, 0, 11318399 } /* (0..11318399) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_areaIdLists_constr_8 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_areaIdLists_8[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_AreaIdList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_areaIdLists_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_areaIdLists_specs_8 = { - sizeof(struct AreaEventParams__areaIdLists), - offsetof(struct AreaEventParams__areaIdLists, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_areaIdLists_8 = { - "areaIdLists", - "areaIdLists", - &asn_OP_SEQUENCE_OF, - asn_DEF_areaIdLists_tags_8, - sizeof(asn_DEF_areaIdLists_tags_8) - /sizeof(asn_DEF_areaIdLists_tags_8[0]) - 1, /* 1 */ - asn_DEF_areaIdLists_tags_8, /* Same as above */ - sizeof(asn_DEF_areaIdLists_tags_8) - /sizeof(asn_DEF_areaIdLists_tags_8[0]), /* 2 */ - { 0, &asn_PER_type_areaIdLists_constr_8, SEQUENCE_OF_constraint }, - asn_MBR_areaIdLists_8, - 1, /* Single element */ - &asn_SPC_areaIdLists_specs_8 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_AreaEventParams_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AreaEventParams, areaEventType), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AreaEventType, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "areaEventType" - }, - { ATF_NOFLAGS, 0, offsetof(struct AreaEventParams, locationEstimate), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationEstimate" - }, - { ATF_POINTER, 5, offsetof(struct AreaEventParams, repeatedReportingParams), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RepeatedReportingParams, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "repeatedReportingParams" - }, - { ATF_POINTER, 4, offsetof(struct AreaEventParams, startTime), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_startTime_constr_5, memb_startTime_constraint_1 }, - 0, 0, /* No default value */ - "startTime" - }, - { ATF_POINTER, 3, offsetof(struct AreaEventParams, stopTime), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_stopTime_constr_6, memb_stopTime_constraint_1 }, - 0, 0, /* No default value */ - "stopTime" - }, - { ATF_POINTER, 2, offsetof(struct AreaEventParams, geographicTargetAreaList), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GeographicTargetAreaList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "geographicTargetAreaList" - }, - { ATF_POINTER, 1, offsetof(struct AreaEventParams, areaIdLists), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - 0, - &asn_DEF_areaIdLists_8, - 0, - { 0, &asn_PER_memb_areaIdLists_constr_8, memb_areaIdLists_constraint_1 }, - 0, 0, /* No default value */ - "areaIdLists" - }, -}; -static const int asn_MAP_AreaEventParams_oms_1[] = { 2, 3, 4, 5, 6 }; -static const ber_tlv_tag_t asn_DEF_AreaEventParams_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_AreaEventParams_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* areaEventType */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* locationEstimate */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* repeatedReportingParams */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* startTime */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* stopTime */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* geographicTargetAreaList */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* areaIdLists */ -}; -asn_SEQUENCE_specifics_t asn_SPC_AreaEventParams_specs_1 = { - sizeof(struct AreaEventParams), - offsetof(struct AreaEventParams, _asn_ctx), - asn_MAP_AreaEventParams_tag2el_1, - 7, /* Count of tags in the map */ - asn_MAP_AreaEventParams_oms_1, /* Optional members */ - 5, 0, /* Root/Additions */ - 7, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_AreaEventParams = { - "AreaEventParams", - "AreaEventParams", - &asn_OP_SEQUENCE, - asn_DEF_AreaEventParams_tags_1, - sizeof(asn_DEF_AreaEventParams_tags_1) - /sizeof(asn_DEF_AreaEventParams_tags_1[0]), /* 1 */ - asn_DEF_AreaEventParams_tags_1, /* Same as above */ - sizeof(asn_DEF_AreaEventParams_tags_1) - /sizeof(asn_DEF_AreaEventParams_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_AreaEventParams_1, - 7, /* Elements count */ - &asn_SPC_AreaEventParams_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AreaEventParams.h b/asn.1/generated/AreaEventParams.h deleted file mode 100644 index 9a2ca990..00000000 --- a/asn.1/generated/AreaEventParams.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _AreaEventParams_H_ -#define _AreaEventParams_H_ - - -#include - -/* Including external dependencies */ -#include "AreaEventType.h" -#include -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct RepeatedReportingParams; -struct GeographicTargetAreaList; -struct AreaIdList; - -/* AreaEventParams */ -typedef struct AreaEventParams { - AreaEventType_t areaEventType; - BOOLEAN_t locationEstimate; - struct RepeatedReportingParams *repeatedReportingParams /* OPTIONAL */; - long *startTime /* OPTIONAL */; - long *stopTime /* OPTIONAL */; - struct GeographicTargetAreaList *geographicTargetAreaList /* OPTIONAL */; - struct AreaEventParams__areaIdLists { - A_SEQUENCE_OF(struct AreaIdList) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *areaIdLists; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} AreaEventParams_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_AreaEventParams; -extern asn_SEQUENCE_specifics_t asn_SPC_AreaEventParams_specs_1; -extern asn_TYPE_member_t asn_MBR_AreaEventParams_1[7]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "RepeatedReportingParams.h" -#include "GeographicTargetAreaList.h" -#include "AreaIdList.h" - -#endif /* _AreaEventParams_H_ */ -#include diff --git a/asn.1/generated/AreaEventType.c b/asn.1/generated/AreaEventType.c deleted file mode 100644 index 0bb69672..00000000 --- a/asn.1/generated/AreaEventType.c +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AreaEventType.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_AreaEventType_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_AreaEventType_value2enum_1[] = { - { 0, 12, "enteringArea" }, - { 1, 10, "insideArea" }, - { 2, 11, "outsideArea" }, - { 3, 11, "leavingArea" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_AreaEventType_enum2value_1[] = { - 0, /* enteringArea(0) */ - 1, /* insideArea(1) */ - 3, /* leavingArea(3) */ - 2 /* outsideArea(2) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_AreaEventType_specs_1 = { - asn_MAP_AreaEventType_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_AreaEventType_enum2value_1, /* N => "tag"; sorted by N */ - 4, /* Number of elements in the maps */ - 5, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_AreaEventType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_AreaEventType = { - "AreaEventType", - "AreaEventType", - &asn_OP_NativeEnumerated, - asn_DEF_AreaEventType_tags_1, - sizeof(asn_DEF_AreaEventType_tags_1) - /sizeof(asn_DEF_AreaEventType_tags_1[0]), /* 1 */ - asn_DEF_AreaEventType_tags_1, /* Same as above */ - sizeof(asn_DEF_AreaEventType_tags_1) - /sizeof(asn_DEF_AreaEventType_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_AreaEventType_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_AreaEventType_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AreaId.c b/asn.1/generated/AreaId.c deleted file mode 100644 index c6b4d3bd..00000000 --- a/asn.1/generated/AreaId.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AreaId.h" - -asn_per_constraints_t asn_PER_type_AreaId_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 7 } /* (0..7,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_AreaId_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AreaId, choice.gSMAreaId), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GSMAreaId, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gSMAreaId" - }, - { ATF_NOFLAGS, 0, offsetof(struct AreaId, choice.wCDMAAreaId), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WCDMAAreaId, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wCDMAAreaId" - }, - { ATF_NOFLAGS, 0, offsetof(struct AreaId, choice.cDMAAreaId), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CDMAAreaId, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cDMAAreaId" - }, - { ATF_NOFLAGS, 0, offsetof(struct AreaId, choice.hRPDAreaId), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HRPDAreaId, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "hRPDAreaId" - }, - { ATF_NOFLAGS, 0, offsetof(struct AreaId, choice.uMBAreaId), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UMBAreaId, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "uMBAreaId" - }, - { ATF_NOFLAGS, 0, offsetof(struct AreaId, choice.lTEAreaId), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LTEAreaId, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "lTEAreaId" - }, - { ATF_NOFLAGS, 0, offsetof(struct AreaId, choice.wLANAreaId), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WLANAreaId, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wLANAreaId" - }, - { ATF_NOFLAGS, 0, offsetof(struct AreaId, choice.wiMAXAreaId), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WimaxAreaId, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wiMAXAreaId" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_AreaId_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gSMAreaId */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* wCDMAAreaId */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cDMAAreaId */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* hRPDAreaId */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* uMBAreaId */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* lTEAreaId */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* wLANAreaId */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* wiMAXAreaId */ -}; -asn_CHOICE_specifics_t asn_SPC_AreaId_specs_1 = { - sizeof(struct AreaId), - offsetof(struct AreaId, _asn_ctx), - offsetof(struct AreaId, present), - sizeof(((struct AreaId *)0)->present), - asn_MAP_AreaId_tag2el_1, - 8, /* Count of tags in the map */ - 0, 0, - 8 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_AreaId = { - "AreaId", - "AreaId", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_AreaId_constr_1, CHOICE_constraint }, - asn_MBR_AreaId_1, - 8, /* Elements count */ - &asn_SPC_AreaId_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AreaIdList.c b/asn.1/generated/AreaIdList.c deleted file mode 100644 index 514536a9..00000000 --- a/asn.1/generated/AreaIdList.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AreaIdList.h" - -asn_TYPE_member_t asn_MBR_AreaIdList_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AreaIdList, areaIdSet), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AreaIdSet, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "areaIdSet" - }, - { ATF_POINTER, 2, offsetof(struct AreaIdList, areaIdSetType), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AreaIdSetType, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "areaIdSetType" - }, - { ATF_POINTER, 1, offsetof(struct AreaIdList, geoAreaMappingList), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GeoAreaMappingList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "geoAreaMappingList" - }, -}; -static const int asn_MAP_AreaIdList_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_AreaIdList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_AreaIdList_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* areaIdSet */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* areaIdSetType */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* geoAreaMappingList */ -}; -asn_SEQUENCE_specifics_t asn_SPC_AreaIdList_specs_1 = { - sizeof(struct AreaIdList), - offsetof(struct AreaIdList, _asn_ctx), - asn_MAP_AreaIdList_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_AreaIdList_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_AreaIdList = { - "AreaIdList", - "AreaIdList", - &asn_OP_SEQUENCE, - asn_DEF_AreaIdList_tags_1, - sizeof(asn_DEF_AreaIdList_tags_1) - /sizeof(asn_DEF_AreaIdList_tags_1[0]), /* 1 */ - asn_DEF_AreaIdList_tags_1, /* Same as above */ - sizeof(asn_DEF_AreaIdList_tags_1) - /sizeof(asn_DEF_AreaIdList_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_AreaIdList_1, - 3, /* Elements count */ - &asn_SPC_AreaIdList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AreaIdList.h b/asn.1/generated/AreaIdList.h deleted file mode 100644 index ec1debe5..00000000 --- a/asn.1/generated/AreaIdList.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _AreaIdList_H_ -#define _AreaIdList_H_ - - -#include - -/* Including external dependencies */ -#include "AreaIdSet.h" -#include "AreaIdSetType.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct GeoAreaMappingList; - -/* AreaIdList */ -typedef struct AreaIdList { - AreaIdSet_t areaIdSet; - AreaIdSetType_t *areaIdSetType /* OPTIONAL */; - struct GeoAreaMappingList *geoAreaMappingList /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} AreaIdList_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_AreaIdList; -extern asn_SEQUENCE_specifics_t asn_SPC_AreaIdList_specs_1; -extern asn_TYPE_member_t asn_MBR_AreaIdList_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GeoAreaMappingList.h" - -#endif /* _AreaIdList_H_ */ -#include diff --git a/asn.1/generated/AreaIdSet.c b/asn.1/generated/AreaIdSet.c deleted file mode 100644 index 50ec6ca6..00000000 --- a/asn.1/generated/AreaIdSet.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AreaIdSet.h" - -asn_per_constraints_t asn_PER_type_AreaIdSet_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 8, 8, 1, 256 } /* (SIZE(1..256)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_AreaIdSet_1[] = { - { ATF_POINTER, 0, 0, - -1 /* Ambiguous tag (CHOICE?) */, - 0, - &asn_DEF_AreaId, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_AreaIdSet_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_AreaIdSet_specs_1 = { - sizeof(struct AreaIdSet), - offsetof(struct AreaIdSet, _asn_ctx), - 2, /* XER encoding is XMLValueList */ -}; -asn_TYPE_descriptor_t asn_DEF_AreaIdSet = { - "AreaIdSet", - "AreaIdSet", - &asn_OP_SEQUENCE_OF, - asn_DEF_AreaIdSet_tags_1, - sizeof(asn_DEF_AreaIdSet_tags_1) - /sizeof(asn_DEF_AreaIdSet_tags_1[0]), /* 1 */ - asn_DEF_AreaIdSet_tags_1, /* Same as above */ - sizeof(asn_DEF_AreaIdSet_tags_1) - /sizeof(asn_DEF_AreaIdSet_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_AreaIdSet_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_AreaIdSet_1, - 1, /* Single element */ - &asn_SPC_AreaIdSet_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AreaIdSetType.c b/asn.1/generated/AreaIdSetType.c deleted file mode 100644 index 2ba34223..00000000 --- a/asn.1/generated/AreaIdSetType.c +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AreaIdSetType.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_AreaIdSetType_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_AreaIdSetType_value2enum_1[] = { - { 0, 6, "border" }, - { 1, 6, "within" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_AreaIdSetType_enum2value_1[] = { - 0, /* border(0) */ - 1 /* within(1) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_AreaIdSetType_specs_1 = { - asn_MAP_AreaIdSetType_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_AreaIdSetType_enum2value_1, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_AreaIdSetType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_AreaIdSetType = { - "AreaIdSetType", - "AreaIdSetType", - &asn_OP_NativeEnumerated, - asn_DEF_AreaIdSetType_tags_1, - sizeof(asn_DEF_AreaIdSetType_tags_1) - /sizeof(asn_DEF_AreaIdSetType_tags_1[0]), /* 1 */ - asn_DEF_AreaIdSetType_tags_1, /* Same as above */ - sizeof(asn_DEF_AreaIdSetType_tags_1) - /sizeof(asn_DEF_AreaIdSetType_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_AreaIdSetType_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_AreaIdSetType_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AssistanceDataSupportList.c b/asn.1/generated/AssistanceDataSupportList.c deleted file mode 100644 index a3bcf9ba..00000000 --- a/asn.1/generated/AssistanceDataSupportList.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AssistanceDataSupportList.h" - -asn_TYPE_member_t asn_MBR_AssistanceDataSupportList_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AssistanceDataSupportList, gnss_CommonAssistanceDataSupport), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_CommonAssistanceDataSupport, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-CommonAssistanceDataSupport" - }, - { ATF_NOFLAGS, 0, offsetof(struct AssistanceDataSupportList, gnss_GenericAssistanceDataSupport), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_GenericAssistanceDataSupport, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-GenericAssistanceDataSupport" - }, -}; -static const ber_tlv_tag_t asn_DEF_AssistanceDataSupportList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_AssistanceDataSupportList_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-CommonAssistanceDataSupport */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-GenericAssistanceDataSupport */ -}; -asn_SEQUENCE_specifics_t asn_SPC_AssistanceDataSupportList_specs_1 = { - sizeof(struct AssistanceDataSupportList), - offsetof(struct AssistanceDataSupportList, _asn_ctx), - asn_MAP_AssistanceDataSupportList_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_AssistanceDataSupportList = { - "AssistanceDataSupportList", - "AssistanceDataSupportList", - &asn_OP_SEQUENCE, - asn_DEF_AssistanceDataSupportList_tags_1, - sizeof(asn_DEF_AssistanceDataSupportList_tags_1) - /sizeof(asn_DEF_AssistanceDataSupportList_tags_1[0]), /* 1 */ - asn_DEF_AssistanceDataSupportList_tags_1, /* Same as above */ - sizeof(asn_DEF_AssistanceDataSupportList_tags_1) - /sizeof(asn_DEF_AssistanceDataSupportList_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_AssistanceDataSupportList_1, - 2, /* Elements count */ - &asn_SPC_AssistanceDataSupportList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Aux-ARP-Unc-r15.c b/asn.1/generated/Aux-ARP-Unc-r15.c deleted file mode 100644 index 7eea2a8d..00000000 --- a/asn.1/generated/Aux-ARP-Unc-r15.c +++ /dev/null @@ -1,202 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Aux-ARP-Unc-r15.h" - -static int -memb_horizontalUncertainty_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_horizontalConfidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_verticalUncertainty_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_verticalConfidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_horizontalUncertainty_r15_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_horizontalConfidence_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_verticalUncertainty_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_verticalConfidence_r15_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_Aux_ARP_Unc_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Aux_ARP_Unc_r15, horizontalUncertainty_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_horizontalUncertainty_r15_constr_2, memb_horizontalUncertainty_r15_constraint_1 }, - 0, 0, /* No default value */ - "horizontalUncertainty-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct Aux_ARP_Unc_r15, horizontalConfidence_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_horizontalConfidence_r15_constr_3, memb_horizontalConfidence_r15_constraint_1 }, - 0, 0, /* No default value */ - "horizontalConfidence-r15" - }, - { ATF_POINTER, 2, offsetof(struct Aux_ARP_Unc_r15, verticalUncertainty_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_verticalUncertainty_r15_constr_4, memb_verticalUncertainty_r15_constraint_1 }, - 0, 0, /* No default value */ - "verticalUncertainty-r15" - }, - { ATF_POINTER, 1, offsetof(struct Aux_ARP_Unc_r15, verticalConfidence_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_verticalConfidence_r15_constr_5, memb_verticalConfidence_r15_constraint_1 }, - 0, 0, /* No default value */ - "verticalConfidence-r15" - }, -}; -static const int asn_MAP_Aux_ARP_Unc_r15_oms_1[] = { 2, 3 }; -static const ber_tlv_tag_t asn_DEF_Aux_ARP_Unc_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Aux_ARP_Unc_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horizontalUncertainty-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horizontalConfidence-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* verticalUncertainty-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* verticalConfidence-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Aux_ARP_Unc_r15_specs_1 = { - sizeof(struct Aux_ARP_Unc_r15), - offsetof(struct Aux_ARP_Unc_r15, _asn_ctx), - asn_MAP_Aux_ARP_Unc_r15_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_Aux_ARP_Unc_r15_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Aux_ARP_Unc_r15 = { - "Aux-ARP-Unc-r15", - "Aux-ARP-Unc-r15", - &asn_OP_SEQUENCE, - asn_DEF_Aux_ARP_Unc_r15_tags_1, - sizeof(asn_DEF_Aux_ARP_Unc_r15_tags_1) - /sizeof(asn_DEF_Aux_ARP_Unc_r15_tags_1[0]), /* 1 */ - asn_DEF_Aux_ARP_Unc_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_Aux_ARP_Unc_r15_tags_1) - /sizeof(asn_DEF_Aux_ARP_Unc_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Aux_ARP_Unc_r15_1, - 4, /* Elements count */ - &asn_SPC_Aux_ARP_Unc_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Aux-ARP-Unc-r15.h b/asn.1/generated/Aux-ARP-Unc-r15.h deleted file mode 100644 index e1d69957..00000000 --- a/asn.1/generated/Aux-ARP-Unc-r15.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Aux_ARP_Unc_r15_H_ -#define _Aux_ARP_Unc_r15_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Aux-ARP-Unc-r15 */ -typedef struct Aux_ARP_Unc_r15 { - long horizontalUncertainty_r15; - long horizontalConfidence_r15; - long *verticalUncertainty_r15 /* OPTIONAL */; - long *verticalConfidence_r15 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Aux_ARP_Unc_r15_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Aux_ARP_Unc_r15; -extern asn_SEQUENCE_specifics_t asn_SPC_Aux_ARP_Unc_r15_specs_1; -extern asn_TYPE_member_t asn_MBR_Aux_ARP_Unc_r15_1[4]; - -#ifdef __cplusplus -} -#endif - -#endif /* _Aux_ARP_Unc_r15_H_ */ -#include diff --git a/asn.1/generated/AuxiliaryStationElement-r15.c b/asn.1/generated/AuxiliaryStationElement-r15.c deleted file mode 100644 index fc231d6b..00000000 --- a/asn.1/generated/AuxiliaryStationElement-r15.c +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AuxiliaryStationElement-r15.h" - -static int -memb_aux_master_delta_latitude_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -524288 && value <= 524287)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_aux_master_delta_longitude_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1048576 && value <= 1048575)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_aux_master_delta_height_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -4194304 && value <= 4194303)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_aux_master_delta_latitude_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 20, -1, -524288, 524287 } /* (-524288..524287) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_aux_master_delta_longitude_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_aux_master_delta_height_r15_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 23, -1, -4194304, 4194303 } /* (-4194304..4194303) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_AuxiliaryStationElement_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AuxiliaryStationElement_r15, aux_referenceStationID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceStationID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "aux-referenceStationID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct AuxiliaryStationElement_r15, aux_master_delta_latitude_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_aux_master_delta_latitude_r15_constr_3, memb_aux_master_delta_latitude_r15_constraint_1 }, - 0, 0, /* No default value */ - "aux-master-delta-latitude-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct AuxiliaryStationElement_r15, aux_master_delta_longitude_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_aux_master_delta_longitude_r15_constr_4, memb_aux_master_delta_longitude_r15_constraint_1 }, - 0, 0, /* No default value */ - "aux-master-delta-longitude-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct AuxiliaryStationElement_r15, aux_master_delta_height_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_aux_master_delta_height_r15_constr_5, memb_aux_master_delta_height_r15_constraint_1 }, - 0, 0, /* No default value */ - "aux-master-delta-height-r15" - }, - { ATF_POINTER, 1, offsetof(struct AuxiliaryStationElement_r15, aux_ARP_unc_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Aux_ARP_Unc_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "aux-ARP-unc-r15" - }, -}; -static const int asn_MAP_AuxiliaryStationElement_r15_oms_1[] = { 4 }; -static const ber_tlv_tag_t asn_DEF_AuxiliaryStationElement_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_AuxiliaryStationElement_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* aux-referenceStationID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* aux-master-delta-latitude-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* aux-master-delta-longitude-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* aux-master-delta-height-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* aux-ARP-unc-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_AuxiliaryStationElement_r15_specs_1 = { - sizeof(struct AuxiliaryStationElement_r15), - offsetof(struct AuxiliaryStationElement_r15, _asn_ctx), - asn_MAP_AuxiliaryStationElement_r15_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_AuxiliaryStationElement_r15_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_AuxiliaryStationElement_r15 = { - "AuxiliaryStationElement-r15", - "AuxiliaryStationElement-r15", - &asn_OP_SEQUENCE, - asn_DEF_AuxiliaryStationElement_r15_tags_1, - sizeof(asn_DEF_AuxiliaryStationElement_r15_tags_1) - /sizeof(asn_DEF_AuxiliaryStationElement_r15_tags_1[0]), /* 1 */ - asn_DEF_AuxiliaryStationElement_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_AuxiliaryStationElement_r15_tags_1) - /sizeof(asn_DEF_AuxiliaryStationElement_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_AuxiliaryStationElement_r15_1, - 5, /* Elements count */ - &asn_SPC_AuxiliaryStationElement_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/AuxiliaryStationList-r15.c b/asn.1/generated/AuxiliaryStationList-r15.c deleted file mode 100644 index 74ec96e1..00000000 --- a/asn.1/generated/AuxiliaryStationList-r15.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "AuxiliaryStationList-r15.h" - -asn_per_constraints_t asn_PER_type_AuxiliaryStationList_r15_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_AuxiliaryStationList_r15_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_AuxiliaryStationElement_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_AuxiliaryStationList_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_AuxiliaryStationList_r15_specs_1 = { - sizeof(struct AuxiliaryStationList_r15), - offsetof(struct AuxiliaryStationList_r15, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_AuxiliaryStationList_r15 = { - "AuxiliaryStationList-r15", - "AuxiliaryStationList-r15", - &asn_OP_SEQUENCE_OF, - asn_DEF_AuxiliaryStationList_r15_tags_1, - sizeof(asn_DEF_AuxiliaryStationList_r15_tags_1) - /sizeof(asn_DEF_AuxiliaryStationList_r15_tags_1[0]), /* 1 */ - asn_DEF_AuxiliaryStationList_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_AuxiliaryStationList_r15_tags_1) - /sizeof(asn_DEF_AuxiliaryStationList_r15_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_AuxiliaryStationList_r15_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_AuxiliaryStationList_r15_1, - 1, /* Single element */ - &asn_SPC_AuxiliaryStationList_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BDS-ClockModel-r12.c b/asn.1/generated/BDS-ClockModel-r12.c deleted file mode 100644 index 8d8a9c4d..00000000 --- a/asn.1/generated/BDS-ClockModel-r12.c +++ /dev/null @@ -1,280 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BDS-ClockModel-r12.h" - -static int -memb_bdsAODC_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 31)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsToc_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 131071)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsA0_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsA1_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2097152 && value <= 2097151)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsA2_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsTgd1_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -512 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_bdsAODC_r12_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsToc_r12_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 17, -1, 0, 131071 } /* (0..131071) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsA0_r12_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsA1_r12_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, -2097152, 2097151 } /* (-2097152..2097151) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsA2_r12_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsTgd1_r12_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_BDS_ClockModel_r12_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel_r12, bdsAODC_r12), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsAODC_r12_constr_2, memb_bdsAODC_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsAODC-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel_r12, bdsToc_r12), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsToc_r12_constr_3, memb_bdsToc_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsToc-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel_r12, bdsA0_r12), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsA0_r12_constr_4, memb_bdsA0_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsA0-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel_r12, bdsA1_r12), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsA1_r12_constr_5, memb_bdsA1_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsA1-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel_r12, bdsA2_r12), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsA2_r12_constr_6, memb_bdsA2_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsA2-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel_r12, bdsTgd1_r12), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsTgd1_r12_constr_7, memb_bdsTgd1_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsTgd1-r12" - }, -}; -static const ber_tlv_tag_t asn_DEF_BDS_ClockModel_r12_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BDS_ClockModel_r12_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bdsAODC-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bdsToc-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bdsA0-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* bdsA1-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* bdsA2-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* bdsTgd1-r12 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BDS_ClockModel_r12_specs_1 = { - sizeof(struct BDS_ClockModel_r12), - offsetof(struct BDS_ClockModel_r12, _asn_ctx), - asn_MAP_BDS_ClockModel_r12_tag2el_1, - 6, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BDS_ClockModel_r12 = { - "BDS-ClockModel-r12", - "BDS-ClockModel-r12", - &asn_OP_SEQUENCE, - asn_DEF_BDS_ClockModel_r12_tags_1, - sizeof(asn_DEF_BDS_ClockModel_r12_tags_1) - /sizeof(asn_DEF_BDS_ClockModel_r12_tags_1[0]), /* 1 */ - asn_DEF_BDS_ClockModel_r12_tags_1, /* Same as above */ - sizeof(asn_DEF_BDS_ClockModel_r12_tags_1) - /sizeof(asn_DEF_BDS_ClockModel_r12_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_BDS_ClockModel_r12_1, - 6, /* Elements count */ - &asn_SPC_BDS_ClockModel_r12_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BDS-ClockModel-r12.h b/asn.1/generated/BDS-ClockModel-r12.h deleted file mode 100644 index 1a250786..00000000 --- a/asn.1/generated/BDS-ClockModel-r12.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _BDS_ClockModel_r12_H_ -#define _BDS_ClockModel_r12_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* BDS-ClockModel-r12 */ -typedef struct BDS_ClockModel_r12 { - long bdsAODC_r12; - long bdsToc_r12; - long bdsA0_r12; - long bdsA1_r12; - long bdsA2_r12; - long bdsTgd1_r12; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} BDS_ClockModel_r12_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_BDS_ClockModel_r12; -extern asn_SEQUENCE_specifics_t asn_SPC_BDS_ClockModel_r12_specs_1; -extern asn_TYPE_member_t asn_MBR_BDS_ClockModel_r12_1[6]; - -#ifdef __cplusplus -} -#endif - -#endif /* _BDS_ClockModel_r12_H_ */ -#include diff --git a/asn.1/generated/BDS-ClockModel2-r16.c b/asn.1/generated/BDS-ClockModel2-r16.c deleted file mode 100644 index ee1405d2..00000000 --- a/asn.1/generated/BDS-ClockModel2-r16.c +++ /dev/null @@ -1,280 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BDS-ClockModel2-r16.h" - -static int -memb_bdsToc_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsA0_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16777216 && value <= 16777215)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsA1_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2097152 && value <= 2097151)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsA2_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsTgdB1Cp_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2048 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsIscB1Cd_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2048 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_bdsToc_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsA0_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 25, -1, -16777216, 16777215 } /* (-16777216..16777215) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsA1_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, -2097152, 2097151 } /* (-2097152..2097151) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsA2_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsTgdB1Cp_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsIscB1Cd_r16_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_BDS_ClockModel2_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel2_r16, bdsToc_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsToc_r16_constr_2, memb_bdsToc_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsToc-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel2_r16, bdsA0_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsA0_r16_constr_3, memb_bdsA0_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsA0-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel2_r16, bdsA1_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsA1_r16_constr_4, memb_bdsA1_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsA1-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel2_r16, bdsA2_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsA2_r16_constr_5, memb_bdsA2_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsA2-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel2_r16, bdsTgdB1Cp_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsTgdB1Cp_r16_constr_6, memb_bdsTgdB1Cp_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsTgdB1Cp-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel2_r16, bdsIscB1Cd_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsIscB1Cd_r16_constr_7, memb_bdsIscB1Cd_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsIscB1Cd-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_BDS_ClockModel2_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BDS_ClockModel2_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bdsToc-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bdsA0-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bdsA1-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* bdsA2-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* bdsTgdB1Cp-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* bdsIscB1Cd-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BDS_ClockModel2_r16_specs_1 = { - sizeof(struct BDS_ClockModel2_r16), - offsetof(struct BDS_ClockModel2_r16, _asn_ctx), - asn_MAP_BDS_ClockModel2_r16_tag2el_1, - 6, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BDS_ClockModel2_r16 = { - "BDS-ClockModel2-r16", - "BDS-ClockModel2-r16", - &asn_OP_SEQUENCE, - asn_DEF_BDS_ClockModel2_r16_tags_1, - sizeof(asn_DEF_BDS_ClockModel2_r16_tags_1) - /sizeof(asn_DEF_BDS_ClockModel2_r16_tags_1[0]), /* 1 */ - asn_DEF_BDS_ClockModel2_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_BDS_ClockModel2_r16_tags_1) - /sizeof(asn_DEF_BDS_ClockModel2_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_BDS_ClockModel2_r16_1, - 6, /* Elements count */ - &asn_SPC_BDS_ClockModel2_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BDS-ClockModel2-r16.h b/asn.1/generated/BDS-ClockModel2-r16.h deleted file mode 100644 index 9f1737ba..00000000 --- a/asn.1/generated/BDS-ClockModel2-r16.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _BDS_ClockModel2_r16_H_ -#define _BDS_ClockModel2_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* BDS-ClockModel2-r16 */ -typedef struct BDS_ClockModel2_r16 { - long bdsToc_r16; - long bdsA0_r16; - long bdsA1_r16; - long bdsA2_r16; - long bdsTgdB1Cp_r16; - long bdsIscB1Cd_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} BDS_ClockModel2_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_BDS_ClockModel2_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_BDS_ClockModel2_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_BDS_ClockModel2_r16_1[6]; - -#ifdef __cplusplus -} -#endif - -#endif /* _BDS_ClockModel2_r16_H_ */ -#include diff --git a/asn.1/generated/BDS-DifferentialCorrections-r12.c b/asn.1/generated/BDS-DifferentialCorrections-r12.c deleted file mode 100644 index 7890988f..00000000 --- a/asn.1/generated/BDS-DifferentialCorrections-r12.c +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BDS-DifferentialCorrections-r12.h" - -static int -memb_dbds_RefTime_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3599)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_dbds_RefTime_r12_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_BDS_DifferentialCorrections_r12_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BDS_DifferentialCorrections_r12, dbds_RefTime_r12), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_dbds_RefTime_r12_constr_2, memb_dbds_RefTime_r12_constraint_1 }, - 0, 0, /* No default value */ - "dbds-RefTime-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct BDS_DifferentialCorrections_r12, bds_SgnTypeList_r12), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BDS_SgnTypeList_r12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bds-SgnTypeList-r12" - }, -}; -static const ber_tlv_tag_t asn_DEF_BDS_DifferentialCorrections_r12_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BDS_DifferentialCorrections_r12_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dbds-RefTime-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bds-SgnTypeList-r12 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BDS_DifferentialCorrections_r12_specs_1 = { - sizeof(struct BDS_DifferentialCorrections_r12), - offsetof(struct BDS_DifferentialCorrections_r12, _asn_ctx), - asn_MAP_BDS_DifferentialCorrections_r12_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BDS_DifferentialCorrections_r12 = { - "BDS-DifferentialCorrections-r12", - "BDS-DifferentialCorrections-r12", - &asn_OP_SEQUENCE, - asn_DEF_BDS_DifferentialCorrections_r12_tags_1, - sizeof(asn_DEF_BDS_DifferentialCorrections_r12_tags_1) - /sizeof(asn_DEF_BDS_DifferentialCorrections_r12_tags_1[0]), /* 1 */ - asn_DEF_BDS_DifferentialCorrections_r12_tags_1, /* Same as above */ - sizeof(asn_DEF_BDS_DifferentialCorrections_r12_tags_1) - /sizeof(asn_DEF_BDS_DifferentialCorrections_r12_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_BDS_DifferentialCorrections_r12_1, - 2, /* Elements count */ - &asn_SPC_BDS_DifferentialCorrections_r12_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BDS-DifferentialCorrectionsReq-r12.c b/asn.1/generated/BDS-DifferentialCorrectionsReq-r12.c deleted file mode 100644 index 95e7d533..00000000 --- a/asn.1/generated/BDS-DifferentialCorrectionsReq-r12.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BDS-DifferentialCorrectionsReq-r12.h" - -asn_TYPE_member_t asn_MBR_BDS_DifferentialCorrectionsReq_r12_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BDS_DifferentialCorrectionsReq_r12, dgnss_SignalsReq), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalIDs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dgnss-SignalsReq" - }, -}; -static const ber_tlv_tag_t asn_DEF_BDS_DifferentialCorrectionsReq_r12_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BDS_DifferentialCorrectionsReq_r12_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* dgnss-SignalsReq */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BDS_DifferentialCorrectionsReq_r12_specs_1 = { - sizeof(struct BDS_DifferentialCorrectionsReq_r12), - offsetof(struct BDS_DifferentialCorrectionsReq_r12, _asn_ctx), - asn_MAP_BDS_DifferentialCorrectionsReq_r12_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BDS_DifferentialCorrectionsReq_r12 = { - "BDS-DifferentialCorrectionsReq-r12", - "BDS-DifferentialCorrectionsReq-r12", - &asn_OP_SEQUENCE, - asn_DEF_BDS_DifferentialCorrectionsReq_r12_tags_1, - sizeof(asn_DEF_BDS_DifferentialCorrectionsReq_r12_tags_1) - /sizeof(asn_DEF_BDS_DifferentialCorrectionsReq_r12_tags_1[0]), /* 1 */ - asn_DEF_BDS_DifferentialCorrectionsReq_r12_tags_1, /* Same as above */ - sizeof(asn_DEF_BDS_DifferentialCorrectionsReq_r12_tags_1) - /sizeof(asn_DEF_BDS_DifferentialCorrectionsReq_r12_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_BDS_DifferentialCorrectionsReq_r12_1, - 1, /* Elements count */ - &asn_SPC_BDS_DifferentialCorrectionsReq_r12_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BDS-DifferentialCorrectionsSupport-r12.c b/asn.1/generated/BDS-DifferentialCorrectionsSupport-r12.c deleted file mode 100644 index 5d80b368..00000000 --- a/asn.1/generated/BDS-DifferentialCorrectionsSupport-r12.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BDS-DifferentialCorrectionsSupport-r12.h" - -asn_TYPE_member_t asn_MBR_BDS_DifferentialCorrectionsSupport_r12_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BDS_DifferentialCorrectionsSupport_r12, gnssSignalIDs), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalIDs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnssSignalIDs" - }, -}; -static const ber_tlv_tag_t asn_DEF_BDS_DifferentialCorrectionsSupport_r12_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BDS_DifferentialCorrectionsSupport_r12_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnssSignalIDs */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BDS_DifferentialCorrectionsSupport_r12_specs_1 = { - sizeof(struct BDS_DifferentialCorrectionsSupport_r12), - offsetof(struct BDS_DifferentialCorrectionsSupport_r12, _asn_ctx), - asn_MAP_BDS_DifferentialCorrectionsSupport_r12_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BDS_DifferentialCorrectionsSupport_r12 = { - "BDS-DifferentialCorrectionsSupport-r12", - "BDS-DifferentialCorrectionsSupport-r12", - &asn_OP_SEQUENCE, - asn_DEF_BDS_DifferentialCorrectionsSupport_r12_tags_1, - sizeof(asn_DEF_BDS_DifferentialCorrectionsSupport_r12_tags_1) - /sizeof(asn_DEF_BDS_DifferentialCorrectionsSupport_r12_tags_1[0]), /* 1 */ - asn_DEF_BDS_DifferentialCorrectionsSupport_r12_tags_1, /* Same as above */ - sizeof(asn_DEF_BDS_DifferentialCorrectionsSupport_r12_tags_1) - /sizeof(asn_DEF_BDS_DifferentialCorrectionsSupport_r12_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_BDS_DifferentialCorrectionsSupport_r12_1, - 1, /* Elements count */ - &asn_SPC_BDS_DifferentialCorrectionsSupport_r12_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BDS-GridModelParameter-r12.c b/asn.1/generated/BDS-GridModelParameter-r12.c deleted file mode 100644 index fc8eed4f..00000000 --- a/asn.1/generated/BDS-GridModelParameter-r12.c +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BDS-GridModelParameter-r12.h" - -static int -memb_bds_RefTime_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3599)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_bds_RefTime_r12_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_BDS_GridModelParameter_r12_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BDS_GridModelParameter_r12, bds_RefTime_r12), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bds_RefTime_r12_constr_2, memb_bds_RefTime_r12_constraint_1 }, - 0, 0, /* No default value */ - "bds-RefTime-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct BDS_GridModelParameter_r12, gridIonList_r12), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GridIonList_r12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gridIonList-r12" - }, -}; -static const ber_tlv_tag_t asn_DEF_BDS_GridModelParameter_r12_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BDS_GridModelParameter_r12_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bds-RefTime-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gridIonList-r12 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BDS_GridModelParameter_r12_specs_1 = { - sizeof(struct BDS_GridModelParameter_r12), - offsetof(struct BDS_GridModelParameter_r12, _asn_ctx), - asn_MAP_BDS_GridModelParameter_r12_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BDS_GridModelParameter_r12 = { - "BDS-GridModelParameter-r12", - "BDS-GridModelParameter-r12", - &asn_OP_SEQUENCE, - asn_DEF_BDS_GridModelParameter_r12_tags_1, - sizeof(asn_DEF_BDS_GridModelParameter_r12_tags_1) - /sizeof(asn_DEF_BDS_GridModelParameter_r12_tags_1[0]), /* 1 */ - asn_DEF_BDS_GridModelParameter_r12_tags_1, /* Same as above */ - sizeof(asn_DEF_BDS_GridModelParameter_r12_tags_1) - /sizeof(asn_DEF_BDS_GridModelParameter_r12_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_BDS_GridModelParameter_r12_1, - 2, /* Elements count */ - &asn_SPC_BDS_GridModelParameter_r12_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BDS-GridModelReq-r12.c b/asn.1/generated/BDS-GridModelReq-r12.c deleted file mode 100644 index 5ddf9281..00000000 --- a/asn.1/generated/BDS-GridModelReq-r12.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BDS-GridModelReq-r12.h" - -static const ber_tlv_tag_t asn_DEF_BDS_GridModelReq_r12_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_BDS_GridModelReq_r12_specs_1 = { - sizeof(struct BDS_GridModelReq_r12), - offsetof(struct BDS_GridModelReq_r12, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BDS_GridModelReq_r12 = { - "BDS-GridModelReq-r12", - "BDS-GridModelReq-r12", - &asn_OP_SEQUENCE, - asn_DEF_BDS_GridModelReq_r12_tags_1, - sizeof(asn_DEF_BDS_GridModelReq_r12_tags_1) - /sizeof(asn_DEF_BDS_GridModelReq_r12_tags_1[0]), /* 1 */ - asn_DEF_BDS_GridModelReq_r12_tags_1, /* Same as above */ - sizeof(asn_DEF_BDS_GridModelReq_r12_tags_1) - /sizeof(asn_DEF_BDS_GridModelReq_r12_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_BDS_GridModelReq_r12_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BDS-GridModelSupport-r12.c b/asn.1/generated/BDS-GridModelSupport-r12.c deleted file mode 100644 index fa413eb1..00000000 --- a/asn.1/generated/BDS-GridModelSupport-r12.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BDS-GridModelSupport-r12.h" - -static const ber_tlv_tag_t asn_DEF_BDS_GridModelSupport_r12_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_BDS_GridModelSupport_r12_specs_1 = { - sizeof(struct BDS_GridModelSupport_r12), - offsetof(struct BDS_GridModelSupport_r12, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BDS_GridModelSupport_r12 = { - "BDS-GridModelSupport-r12", - "BDS-GridModelSupport-r12", - &asn_OP_SEQUENCE, - asn_DEF_BDS_GridModelSupport_r12_tags_1, - sizeof(asn_DEF_BDS_GridModelSupport_r12_tags_1) - /sizeof(asn_DEF_BDS_GridModelSupport_r12_tags_1[0]), /* 1 */ - asn_DEF_BDS_GridModelSupport_r12_tags_1, /* Same as above */ - sizeof(asn_DEF_BDS_GridModelSupport_r12_tags_1) - /sizeof(asn_DEF_BDS_GridModelSupport_r12_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_BDS_GridModelSupport_r12_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BDS-SgnTypeElement-r12.c b/asn.1/generated/BDS-SgnTypeElement-r12.c deleted file mode 100644 index 9ea6bfa3..00000000 --- a/asn.1/generated/BDS-SgnTypeElement-r12.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BDS-SgnTypeElement-r12.h" - -asn_TYPE_member_t asn_MBR_BDS_SgnTypeElement_r12_1[] = { - { ATF_POINTER, 1, offsetof(struct BDS_SgnTypeElement_r12, gnss_SignalID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SignalID" - }, - { ATF_NOFLAGS, 0, offsetof(struct BDS_SgnTypeElement_r12, dbds_CorrectionList_r12), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DBDS_CorrectionList_r12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dbds-CorrectionList-r12" - }, -}; -static const int asn_MAP_BDS_SgnTypeElement_r12_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_BDS_SgnTypeElement_r12_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BDS_SgnTypeElement_r12_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SignalID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dbds-CorrectionList-r12 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BDS_SgnTypeElement_r12_specs_1 = { - sizeof(struct BDS_SgnTypeElement_r12), - offsetof(struct BDS_SgnTypeElement_r12, _asn_ctx), - asn_MAP_BDS_SgnTypeElement_r12_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_BDS_SgnTypeElement_r12_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BDS_SgnTypeElement_r12 = { - "BDS-SgnTypeElement-r12", - "BDS-SgnTypeElement-r12", - &asn_OP_SEQUENCE, - asn_DEF_BDS_SgnTypeElement_r12_tags_1, - sizeof(asn_DEF_BDS_SgnTypeElement_r12_tags_1) - /sizeof(asn_DEF_BDS_SgnTypeElement_r12_tags_1[0]), /* 1 */ - asn_DEF_BDS_SgnTypeElement_r12_tags_1, /* Same as above */ - sizeof(asn_DEF_BDS_SgnTypeElement_r12_tags_1) - /sizeof(asn_DEF_BDS_SgnTypeElement_r12_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_BDS_SgnTypeElement_r12_1, - 2, /* Elements count */ - &asn_SPC_BDS_SgnTypeElement_r12_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BDS-SgnTypeList-r12.c b/asn.1/generated/BDS-SgnTypeList-r12.c deleted file mode 100644 index 66f54e72..00000000 --- a/asn.1/generated/BDS-SgnTypeList-r12.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BDS-SgnTypeList-r12.h" - -asn_per_constraints_t asn_PER_type_BDS_SgnTypeList_r12_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_BDS_SgnTypeList_r12_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_BDS_SgnTypeElement_r12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_BDS_SgnTypeList_r12_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_BDS_SgnTypeList_r12_specs_1 = { - sizeof(struct BDS_SgnTypeList_r12), - offsetof(struct BDS_SgnTypeList_r12, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_BDS_SgnTypeList_r12 = { - "BDS-SgnTypeList-r12", - "BDS-SgnTypeList-r12", - &asn_OP_SEQUENCE_OF, - asn_DEF_BDS_SgnTypeList_r12_tags_1, - sizeof(asn_DEF_BDS_SgnTypeList_r12_tags_1) - /sizeof(asn_DEF_BDS_SgnTypeList_r12_tags_1[0]), /* 1 */ - asn_DEF_BDS_SgnTypeList_r12_tags_1, /* Same as above */ - sizeof(asn_DEF_BDS_SgnTypeList_r12_tags_1) - /sizeof(asn_DEF_BDS_SgnTypeList_r12_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_BDS_SgnTypeList_r12_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_BDS_SgnTypeList_r12_1, - 1, /* Single element */ - &asn_SPC_BDS_SgnTypeList_r12_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BIT_STRING.c b/asn.1/generated/BIT_STRING.c deleted file mode 100644 index ef2d3204..00000000 --- a/asn.1/generated/BIT_STRING.c +++ /dev/null @@ -1,652 +0,0 @@ -/*- - * Copyright (c) 2003, 2004 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include -#include - -/* - * BIT STRING basic type description. - */ -static const ber_tlv_tag_t asn_DEF_BIT_STRING_tags[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_OCTET_STRING_specifics_t asn_SPC_BIT_STRING_specs = { - sizeof(BIT_STRING_t), - offsetof(BIT_STRING_t, _asn_ctx), - ASN_OSUBV_BIT -}; -asn_TYPE_operation_t asn_OP_BIT_STRING = { - OCTET_STRING_free, /* Implemented in terms of OCTET STRING */ - BIT_STRING_print, - BIT_STRING_compare, - OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ - OCTET_STRING_encode_der, /* Implemented in terms of OCTET STRING */ - OCTET_STRING_decode_xer_binary, - BIT_STRING_encode_xer, -#ifdef ASN_DISABLE_OER_SUPPORT - 0, - 0, -#else - BIT_STRING_decode_oer, - BIT_STRING_encode_oer, -#endif /* ASN_DISABLE_OER_SUPPORT */ -#ifdef ASN_DISABLE_PER_SUPPORT - 0, - 0, -#else - BIT_STRING_decode_uper, /* Unaligned PER decoder */ - BIT_STRING_encode_uper, /* Unaligned PER encoder */ -#endif /* ASN_DISABLE_PER_SUPPORT */ - BIT_STRING_random_fill, - 0 /* Use generic outmost tag fetcher */ -}; -asn_TYPE_descriptor_t asn_DEF_BIT_STRING = { - "BIT STRING", - "BIT_STRING", - &asn_OP_BIT_STRING, - asn_DEF_BIT_STRING_tags, - sizeof(asn_DEF_BIT_STRING_tags) - / sizeof(asn_DEF_BIT_STRING_tags[0]), - asn_DEF_BIT_STRING_tags, /* Same as above */ - sizeof(asn_DEF_BIT_STRING_tags) - / sizeof(asn_DEF_BIT_STRING_tags[0]), - { 0, 0, BIT_STRING_constraint }, - 0, 0, /* No members */ - &asn_SPC_BIT_STRING_specs -}; - -/* - * BIT STRING generic constraint. - */ -int -BIT_STRING_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - - if(st && st->buf) { - if((st->size == 0 && st->bits_unused) - || st->bits_unused < 0 || st->bits_unused > 7) { - ASN__CTFAIL(app_key, td, sptr, - "%s: invalid padding byte (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - return 0; -} - -static const char *_bit_pattern[16] = { - "0000", "0001", "0010", "0011", "0100", "0101", "0110", "0111", - "1000", "1001", "1010", "1011", "1100", "1101", "1110", "1111" -}; - -asn_enc_rval_t -BIT_STRING_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - asn_enc_rval_t er; - char scratch[128]; - char *p = scratch; - char *scend = scratch + (sizeof(scratch) - 10); - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - int xcan = (flags & XER_F_CANONICAL); - uint8_t *buf; - uint8_t *end; - - if(!st || !st->buf) - ASN__ENCODE_FAILED; - - er.encoded = 0; - - buf = st->buf; - end = buf + st->size - 1; /* Last byte is special */ - - /* - * Binary dump - */ - for(; buf < end; buf++) { - int v = *buf; - int nline = xcan?0:(((buf - st->buf) % 8) == 0); - if(p >= scend || nline) { - ASN__CALLBACK(scratch, p - scratch); - p = scratch; - if(nline) ASN__TEXT_INDENT(1, ilevel); - } - memcpy(p + 0, _bit_pattern[v >> 4], 4); - memcpy(p + 4, _bit_pattern[v & 0x0f], 4); - p += 8; - } - - if(!xcan && ((buf - st->buf) % 8) == 0) - ASN__TEXT_INDENT(1, ilevel); - ASN__CALLBACK(scratch, p - scratch); - p = scratch; - - if(buf == end) { - int v = *buf; - int ubits = st->bits_unused; - int i; - for(i = 7; i >= ubits; i--) - *p++ = (v & (1 << i)) ? 0x31 : 0x30; - ASN__CALLBACK(scratch, p - scratch); - } - - if(!xcan) ASN__TEXT_INDENT(1, ilevel - 1); - - ASN__ENCODED_OK(er); -cb_failed: - ASN__ENCODE_FAILED; -} - - -/* - * BIT STRING specific contents printer. - */ -int -BIT_STRING_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, - asn_app_consume_bytes_f *cb, void *app_key) { - const char * const h2c = "0123456789ABCDEF"; - char scratch[64]; - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - uint8_t *buf; - uint8_t *end; - char *p = scratch; - - (void)td; /* Unused argument */ - - if(!st || !st->buf) - return (cb("", 8, app_key) < 0) ? -1 : 0; - - ilevel++; - buf = st->buf; - end = buf + st->size; - - /* - * Hexadecimal dump. - */ - for(; buf < end; buf++) { - if((buf - st->buf) % 16 == 0 && (st->size > 16) - && buf != st->buf) { - _i_INDENT(1); - /* Dump the string */ - if(cb(scratch, p - scratch, app_key) < 0) return -1; - p = scratch; - } - *p++ = h2c[*buf >> 4]; - *p++ = h2c[*buf & 0x0F]; - *p++ = 0x20; - } - - if(p > scratch) { - p--; /* Eat the tailing space */ - - if((st->size > 16)) { - _i_INDENT(1); - } - - /* Dump the incomplete 16-bytes row */ - if(cb(scratch, p - scratch, app_key) < 0) - return -1; - } - - if(st->bits_unused) { - int ret = snprintf(scratch, sizeof(scratch), " (%d bit%s unused)", - st->bits_unused, st->bits_unused == 1 ? "" : "s"); - assert(ret > 0 && ret < (ssize_t)sizeof(scratch)); - if(ret > 0 && ret < (ssize_t)sizeof(scratch) - && cb(scratch, ret, app_key) < 0) - return -1; - } - - return 0; -} - -/* - * Non-destructively remove the trailing 0-bits from the given bit string. - */ -static const BIT_STRING_t * -BIT_STRING__compactify(const BIT_STRING_t *st, BIT_STRING_t *tmp) { - const uint8_t *b; - union { - const uint8_t *c_buf; - uint8_t *nc_buf; - } unconst; - - if(st->size == 0) { - assert(st->bits_unused == 0); - return st; - } else { - for(b = &st->buf[st->size - 1]; b > st->buf && *b == 0; b--) { - ; - } - /* b points to the last byte which may contain data */ - if(*b) { - int unused = 7; - uint8_t v = *b; - v &= -(int8_t)v; - if(v & 0x0F) unused -= 4; - if(v & 0x33) unused -= 2; - if(v & 0x55) unused -= 1; - tmp->size = b-st->buf + 1; - tmp->bits_unused = unused; - } else { - tmp->size = b-st->buf; - tmp->bits_unused = 0; - } - - assert(b >= st->buf); - } - - unconst.c_buf = st->buf; - tmp->buf = unconst.nc_buf; - return tmp; -} - -/* - * Lexicographically compare the common prefix of both strings, - * and if it is the same return -1 for the smallest string. - */ -int -BIT_STRING_compare(const asn_TYPE_descriptor_t *td, const void *aptr, - const void *bptr) { - /* - * Remove information about trailing bits, since - * X.680 (08/2015) #22.7 "ensure that different semantics are not" - * "associated with [values that differ only in] the trailing 0 bits." - */ - BIT_STRING_t compact_a, compact_b; - const BIT_STRING_t *a = BIT_STRING__compactify(aptr, &compact_a); - const BIT_STRING_t *b = BIT_STRING__compactify(bptr, &compact_b); - const asn_OCTET_STRING_specifics_t *specs = td->specifics; - - assert(specs && specs->subvariant == ASN_OSUBV_BIT); - - if(a && b) { - size_t common_prefix_size = a->size <= b->size ? a->size : b->size; - int ret = memcmp(a->buf, b->buf, common_prefix_size); - if(ret == 0) { - /* Figure out which string with equal prefixes is longer. */ - if(a->size < b->size) { - return -1; - } else if(a->size > b->size) { - return 1; - } else { - /* Figure out how many unused bits */ - if(a->bits_unused > b->bits_unused) { - return -1; - } else if(a->bits_unused < b->bits_unused) { - return 1; - } else { - return 0; - } - } - } else { - return ret; - } - } else if(!a && !b) { - return 0; - } else if(!a) { - return -1; - } else { - return 1; - } -} - -#ifndef ASN_DISABLE_PER_SUPPORT - -#undef RETURN -#define RETURN(_code) \ - do { \ - asn_dec_rval_t tmprval; \ - tmprval.code = _code; \ - tmprval.consumed = consumed_myself; \ - return tmprval; \ - } while(0) - -static asn_per_constraint_t asn_DEF_BIT_STRING_constraint_size = { - APC_SEMI_CONSTRAINED, -1, -1, 0, 0}; - -asn_dec_rval_t -BIT_STRING_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, void **sptr, - asn_per_data_t *pd) { - const asn_OCTET_STRING_specifics_t *specs = td->specifics - ? (const asn_OCTET_STRING_specifics_t *)td->specifics - : &asn_SPC_BIT_STRING_specs; - const asn_per_constraints_t *pc = - constraints ? constraints : td->encoding_constraints.per_constraints; - const asn_per_constraint_t *csiz; - asn_dec_rval_t rval = { RC_OK, 0 }; - BIT_STRING_t *st = (BIT_STRING_t *)*sptr; - ssize_t consumed_myself = 0; - int repeat; - - (void)opt_codec_ctx; - - if(pc) { - csiz = &pc->size; - } else { - csiz = &asn_DEF_BIT_STRING_constraint_size; - } - - if(specs->subvariant != ASN_OSUBV_BIT) { - ASN_DEBUG("Subvariant %d is not BIT OSUBV_BIT", specs->subvariant); - RETURN(RC_FAIL); - } - - /* - * Allocate the string. - */ - if(!st) { - st = (BIT_STRING_t *)(*sptr = CALLOC(1, specs->struct_size)); - if(!st) RETURN(RC_FAIL); - } - - ASN_DEBUG("PER Decoding %s size %"ASN_PRIdMAX" .. %"ASN_PRIdMAX" bits %d", - csiz->flags & APC_EXTENSIBLE ? "extensible" : "non-extensible", - csiz->lower_bound, csiz->upper_bound, csiz->effective_bits); - - if(csiz->flags & APC_EXTENSIBLE) { - int inext = per_get_few_bits(pd, 1); - if(inext < 0) RETURN(RC_WMORE); - if(inext) { - csiz = &asn_DEF_BIT_STRING_constraint_size; - } - } - - if(csiz->effective_bits >= 0) { - FREEMEM(st->buf); - st->size = (csiz->upper_bound + 7) >> 3; - st->buf = (uint8_t *)MALLOC(st->size + 1); - if(!st->buf) { st->size = 0; RETURN(RC_FAIL); } - } - - /* X.691, #16.5: zero-length encoding */ - /* X.691, #16.6: short fixed length encoding (up to 2 octets) */ - /* X.691, #16.7: long fixed length encoding (up to 64K octets) */ - if(csiz->effective_bits == 0) { - int ret; - ASN_DEBUG("Encoding BIT STRING size %"ASN_PRIdMAX"", csiz->upper_bound); - ret = per_get_many_bits(pd, st->buf, 0, csiz->upper_bound); - if(ret < 0) RETURN(RC_WMORE); - consumed_myself += csiz->upper_bound; - st->buf[st->size] = 0; - st->bits_unused = (8 - (csiz->upper_bound & 0x7)) & 0x7; - RETURN(RC_OK); - } - - st->size = 0; - do { - ssize_t raw_len; - ssize_t len_bytes; - ssize_t len_bits; - void *p; - int ret; - - /* Get the PER length */ - raw_len = uper_get_length(pd, csiz->effective_bits, csiz->lower_bound, - &repeat); - if(raw_len < 0) RETURN(RC_WMORE); - if(raw_len == 0 && st->buf) break; - - ASN_DEBUG("Got PER length eb %ld, len %ld, %s (%s)", - (long)csiz->effective_bits, (long)raw_len, - repeat ? "repeat" : "once", td->name); - len_bits = raw_len; - len_bytes = (len_bits + 7) >> 3; - if(len_bits & 0x7) st->bits_unused = 8 - (len_bits & 0x7); - /* len_bits be multiple of 16K if repeat is set */ - p = REALLOC(st->buf, st->size + len_bytes + 1); - if(!p) RETURN(RC_FAIL); - st->buf = (uint8_t *)p; - - ret = per_get_many_bits(pd, &st->buf[st->size], 0, len_bits); - if(ret < 0) RETURN(RC_WMORE); - st->size += len_bytes; - } while(repeat); - st->buf[st->size] = 0; /* nul-terminate */ - - return rval; -} - -asn_enc_rval_t -BIT_STRING_encode_uper(const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, - const void *sptr, asn_per_outp_t *po) { - const asn_OCTET_STRING_specifics_t *specs = - td->specifics ? (const asn_OCTET_STRING_specifics_t *)td->specifics - : &asn_SPC_BIT_STRING_specs; - const asn_per_constraints_t *pc = - constraints ? constraints : td->encoding_constraints.per_constraints; - const asn_per_constraint_t *csiz; - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - BIT_STRING_t compact_bstr; /* Do not modify this directly! */ - asn_enc_rval_t er = { 0, 0, 0 }; - int inext = 0; /* Lies not within extension root */ - size_t size_in_bits; - const uint8_t *buf; - int ret; - int ct_extensible; - - if(!st || (!st->buf && st->size)) - ASN__ENCODE_FAILED; - - if(specs->subvariant == ASN_OSUBV_BIT) { - if((st->size == 0 && st->bits_unused) || (st->bits_unused & ~7)) - ASN__ENCODE_FAILED; - } else { - ASN__ENCODE_FAILED; - } - - if(pc) { - csiz = &pc->size; - } else { - csiz = &asn_DEF_BIT_STRING_constraint_size; - } - ct_extensible = csiz->flags & APC_EXTENSIBLE; - - /* Figure out the size without the trailing bits */ - st = BIT_STRING__compactify(st, &compact_bstr); - size_in_bits = 8 * st->size - st->bits_unused; - - ASN_DEBUG( - "Encoding %s into %" ASN_PRI_SIZE " bits" - " (%"ASN_PRIdMAX"..%"ASN_PRIdMAX", effective %d)%s", - td->name, size_in_bits, csiz->lower_bound, csiz->upper_bound, - csiz->effective_bits, ct_extensible ? " EXT" : ""); - - /* Figure out whether size lies within PER visible constraint */ - - if(csiz->effective_bits >= 0) { - if((ssize_t)size_in_bits > csiz->upper_bound) { - if(ct_extensible) { - csiz = &asn_DEF_BIT_STRING_constraint_size; - inext = 1; - } else { - ASN__ENCODE_FAILED; - } - } - } else { - inext = 0; - } - - if(ct_extensible) { - /* Declare whether length is [not] within extension root */ - if(per_put_few_bits(po, inext, 1)) - ASN__ENCODE_FAILED; - } - - if(csiz->effective_bits >= 0 && !inext) { - int add_trailer = (ssize_t)size_in_bits < csiz->lower_bound; - ASN_DEBUG( - "Encoding %" ASN_PRI_SIZE " bytes (%"ASN_PRIdMAX"), length (in %d bits) trailer %d; actual " - "value %" ASN_PRIdMAX "", - st->size, size_in_bits - csiz->lower_bound, csiz->effective_bits, - add_trailer, - add_trailer ? 0 : (ssize_t)size_in_bits - csiz->lower_bound); - ret = per_put_few_bits( - po, add_trailer ? 0 : (ssize_t)size_in_bits - csiz->lower_bound, - csiz->effective_bits); - if(ret) ASN__ENCODE_FAILED; - ret = per_put_many_bits(po, st->buf, size_in_bits); - if(ret) ASN__ENCODE_FAILED; - if(add_trailer) { - static const uint8_t zeros[16]; - size_t trailing_zero_bits = csiz->lower_bound - size_in_bits; - while(trailing_zero_bits > 0) { - if(trailing_zero_bits > 8 * sizeof(zeros)) { - ret = per_put_many_bits(po, zeros, 8 * sizeof(zeros)); - trailing_zero_bits -= 8 * sizeof(zeros); - } else { - ret = per_put_many_bits(po, zeros, trailing_zero_bits); - trailing_zero_bits = 0; - } - if(ret) ASN__ENCODE_FAILED; - } - } - ASN__ENCODED_OK(er); - } - - ASN_DEBUG("Encoding %" ASN_PRI_SIZE " bytes", st->size); - - buf = st->buf; - do { - int need_eom = 0; - ssize_t maySave = uper_put_length(po, size_in_bits, &need_eom); - if(maySave < 0) ASN__ENCODE_FAILED; - - ASN_DEBUG("Encoding %" ASN_PRI_SSIZE " of %" ASN_PRI_SIZE "", maySave, size_in_bits); - - ret = per_put_many_bits(po, buf, maySave); - if(ret) ASN__ENCODE_FAILED; - - buf += maySave >> 3; - size_in_bits -= maySave; - assert(!(maySave & 0x07) || !size_in_bits); - if(need_eom && uper_put_length(po, 0, 0)) - ASN__ENCODE_FAILED; /* End of Message length */ - } while(size_in_bits); - - ASN__ENCODED_OK(er); -} - -#endif /* ASN_DISABLE_PER_SUPPORT */ - -asn_random_fill_result_t -BIT_STRING_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constraints, - size_t max_length) { - const asn_OCTET_STRING_specifics_t *specs = - td->specifics ? (const asn_OCTET_STRING_specifics_t *)td->specifics - : &asn_SPC_BIT_STRING_specs; - asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - static unsigned lengths[] = {0, 1, 2, 3, 4, 8, - 126, 127, 128, 16383, 16384, 16385, - 65534, 65535, 65536, 65537}; - uint8_t *buf; - uint8_t *bend; - uint8_t *b; - size_t rnd_bits, rnd_len; - BIT_STRING_t *st; - - if(max_length == 0) return result_skipped; - - switch(specs->subvariant) { - case ASN_OSUBV_ANY: - return result_failed; - case ASN_OSUBV_BIT: - break; - default: - break; - } - - /* Figure out how far we should go */ - rnd_bits = lengths[asn_random_between( - 0, sizeof(lengths) / sizeof(lengths[0]) - 1)]; - if(!constraints || !constraints->per_constraints) - constraints = &td->encoding_constraints; - if(constraints->per_constraints) { - const asn_per_constraint_t *pc = &constraints->per_constraints->size; - if(pc->flags & APC_CONSTRAINED) { - long suggested_upper_bound = pc->upper_bound < (ssize_t)max_length - ? pc->upper_bound - : (ssize_t)max_length; - if(max_length < (size_t)pc->lower_bound) { - return result_skipped; - } - if(pc->flags & APC_EXTENSIBLE) { - switch(asn_random_between(0, 5)) { - case 0: - if(pc->lower_bound > 0) { - rnd_bits = pc->lower_bound - 1; - break; - } - /* Fall through */ - case 1: - rnd_bits = pc->upper_bound + 1; - break; - case 2: - /* Keep rnd_bits from the table */ - if(rnd_bits < max_length) { - break; - } - /* Fall through */ - default: - rnd_bits = asn_random_between(pc->lower_bound, - suggested_upper_bound); - } - } else { - rnd_bits = - asn_random_between(pc->lower_bound, suggested_upper_bound); - } - } else { - rnd_bits = asn_random_between(0, max_length - 1); - } - } else if(rnd_bits >= max_length) { - rnd_bits = asn_random_between(0, max_length - 1); - } - - rnd_len = (rnd_bits + 7) / 8; - buf = CALLOC(1, rnd_len + 1); - if(!buf) return result_failed; - - bend = &buf[rnd_len]; - - for(b = buf; b < bend; b++) { - *(uint8_t *)b = asn_random_between(0, 255); - } - *b = 0; /* Zero-terminate just in case. */ - - if(*sptr) { - st = *sptr; - FREEMEM(st->buf); - } else { - st = (BIT_STRING_t *)(*sptr = CALLOC(1, specs->struct_size)); - if(!st) { - FREEMEM(buf); - return result_failed; - } - } - - st->buf = buf; - st->size = rnd_len; - st->bits_unused = (8 - (rnd_bits & 0x7)) & 0x7; - if(st->bits_unused) { - assert(st->size > 0); - st->buf[st->size-1] &= 0xff << st->bits_unused; - } - - result_ok.length = st->size; - return result_ok; -} diff --git a/asn.1/generated/BIT_STRING.h b/asn.1/generated/BIT_STRING.h deleted file mode 100644 index bd2d23db..00000000 --- a/asn.1/generated/BIT_STRING.h +++ /dev/null @@ -1,46 +0,0 @@ -/*- - * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef _BIT_STRING_H_ -#define _BIT_STRING_H_ - -#include /* Some help from OCTET STRING */ - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct BIT_STRING_s { - uint8_t *buf; /* BIT STRING body */ - size_t size; /* Size of the above buffer */ - - int bits_unused;/* Unused trailing bits in the last octet (0..7) */ - - asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */ -} BIT_STRING_t; - -extern asn_TYPE_descriptor_t asn_DEF_BIT_STRING; -extern asn_TYPE_operation_t asn_OP_BIT_STRING; -extern asn_OCTET_STRING_specifics_t asn_SPC_BIT_STRING_specs; - -asn_struct_print_f BIT_STRING_print; /* Human-readable output */ -asn_struct_compare_f BIT_STRING_compare; -asn_constr_check_f BIT_STRING_constraint; -xer_type_encoder_f BIT_STRING_encode_xer; -oer_type_decoder_f BIT_STRING_decode_oer; -oer_type_encoder_f BIT_STRING_encode_oer; -per_type_decoder_f BIT_STRING_decode_uper; -per_type_encoder_f BIT_STRING_encode_uper; -asn_random_fill_f BIT_STRING_random_fill; - -#define BIT_STRING_free OCTET_STRING_free -#define BIT_STRING_decode_ber OCTET_STRING_decode_ber -#define BIT_STRING_encode_der OCTET_STRING_encode_der -#define BIT_STRING_decode_xer OCTET_STRING_decode_xer_binary - -#ifdef __cplusplus -} -#endif - -#endif /* _BIT_STRING_H_ */ diff --git a/asn.1/generated/BOOLEAN.c b/asn.1/generated/BOOLEAN.c deleted file mode 100644 index fd8b80c1..00000000 --- a/asn.1/generated/BOOLEAN.c +++ /dev/null @@ -1,434 +0,0 @@ -/*- - * Copyright (c) 2003, 2005 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include -#include - -/* - * BOOLEAN basic type description. - */ -static const ber_tlv_tag_t asn_DEF_BOOLEAN_tags[] = { - (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)) -}; -asn_TYPE_operation_t asn_OP_BOOLEAN = { - BOOLEAN_free, - BOOLEAN_print, - BOOLEAN_compare, - BOOLEAN_decode_ber, - BOOLEAN_encode_der, - BOOLEAN_decode_xer, - BOOLEAN_encode_xer, -#ifdef ASN_DISABLE_OER_SUPPORT - 0, - 0, -#else - BOOLEAN_decode_oer, - BOOLEAN_encode_oer, -#endif /* ASN_DISABLE_OER_SUPPORT */ -#ifdef ASN_DISABLE_PER_SUPPORT - 0, - 0, -#else - BOOLEAN_decode_uper, /* Unaligned PER decoder */ - BOOLEAN_encode_uper, /* Unaligned PER encoder */ -#endif /* ASN_DISABLE_PER_SUPPORT */ - BOOLEAN_random_fill, - 0 /* Use generic outmost tag fetcher */ -}; -asn_TYPE_descriptor_t asn_DEF_BOOLEAN = { - "BOOLEAN", - "BOOLEAN", - &asn_OP_BOOLEAN, - asn_DEF_BOOLEAN_tags, - sizeof(asn_DEF_BOOLEAN_tags) / sizeof(asn_DEF_BOOLEAN_tags[0]), - asn_DEF_BOOLEAN_tags, /* Same as above */ - sizeof(asn_DEF_BOOLEAN_tags) / sizeof(asn_DEF_BOOLEAN_tags[0]), - { 0, 0, asn_generic_no_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - -/* - * Decode BOOLEAN type. - */ -asn_dec_rval_t -BOOLEAN_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **bool_value, - const void *buf_ptr, size_t size, int tag_mode) { - BOOLEAN_t *st = (BOOLEAN_t *)*bool_value; - asn_dec_rval_t rval; - ber_tlv_len_t length; - ber_tlv_len_t lidx; - - if(st == NULL) { - st = (BOOLEAN_t *)(*bool_value = CALLOC(1, sizeof(*st))); - if(st == NULL) { - rval.code = RC_FAIL; - rval.consumed = 0; - return rval; - } - } - - ASN_DEBUG("Decoding %s as BOOLEAN (tm=%d)", - td->name, tag_mode); - - /* - * Check tags. - */ - rval = ber_check_tags(opt_codec_ctx, td, 0, buf_ptr, size, - tag_mode, 0, &length, 0); - if(rval.code != RC_OK) - return rval; - - ASN_DEBUG("Boolean length is %d bytes", (int)length); - - buf_ptr = ((const char *)buf_ptr) + rval.consumed; - size -= rval.consumed; - if(length > (ber_tlv_len_t)size) { - rval.code = RC_WMORE; - rval.consumed = 0; - return rval; - } - - /* - * Compute boolean value. - */ - for(*st = 0, lidx = 0; - (lidx < length) && *st == 0; lidx++) { - /* - * Very simple approach: read bytes until the end or - * value is already TRUE. - * BOOLEAN is not supposed to contain meaningful data anyway. - */ - *st |= ((const uint8_t *)buf_ptr)[lidx]; - } - - rval.code = RC_OK; - rval.consumed += length; - - ASN_DEBUG("Took %ld/%ld bytes to encode %s, value=%d", - (long)rval.consumed, (long)length, - td->name, *st); - - return rval; -} - -asn_enc_rval_t -BOOLEAN_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, - int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, - void *app_key) { - asn_enc_rval_t erval; - const BOOLEAN_t *st = (const BOOLEAN_t *)sptr; - - erval.encoded = der_write_tags(td, 1, tag_mode, 0, tag, cb, app_key); - if(erval.encoded == -1) { - erval.failed_type = td; - erval.structure_ptr = sptr; - return erval; - } - - if(cb) { - uint8_t bool_value; - - bool_value = *st ? 0xff : 0; /* 0xff mandated by DER */ - - if(cb(&bool_value, 1, app_key) < 0) { - erval.encoded = -1; - erval.failed_type = td; - erval.structure_ptr = sptr; - return erval; - } - } - - erval.encoded += 1; - - ASN__ENCODED_OK(erval); -} - - -/* - * Decode the chunk of XML text encoding INTEGER. - */ -static enum xer_pbd_rval -BOOLEAN__xer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, - const void *chunk_buf, size_t chunk_size) { - BOOLEAN_t *st = (BOOLEAN_t *)sptr; - const char *p = (const char *)chunk_buf; - - (void)td; - - if(chunk_size && p[0] == 0x3c /* '<' */) { - switch(xer_check_tag(chunk_buf, chunk_size, "false")) { - case XCT_BOTH: - /* "" */ - *st = 0; - break; - case XCT_UNKNOWN_BO: - if(xer_check_tag(chunk_buf, chunk_size, "true") - != XCT_BOTH) - return XPBD_BROKEN_ENCODING; - /* "" */ - *st = 1; /* Or 0xff as in DER?.. */ - break; - default: - return XPBD_BROKEN_ENCODING; - } - return XPBD_BODY_CONSUMED; - } else { - return XPBD_BROKEN_ENCODING; - } -} - - -asn_dec_rval_t -BOOLEAN_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **sptr, - const char *opt_mname, const void *buf_ptr, size_t size) { - return xer_decode_primitive(opt_codec_ctx, td, - sptr, sizeof(BOOLEAN_t), opt_mname, buf_ptr, size, - BOOLEAN__xer_body_decode); -} - -asn_enc_rval_t -BOOLEAN_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - const BOOLEAN_t *st = (const BOOLEAN_t *)sptr; - asn_enc_rval_t er = {0, 0, 0}; - - (void)ilevel; - (void)flags; - - if(!st) ASN__ENCODE_FAILED; - - if(*st) { - ASN__CALLBACK("", 7); - } else { - ASN__CALLBACK("", 8); - } - - ASN__ENCODED_OK(er); -cb_failed: - ASN__ENCODE_FAILED; -} - -int -BOOLEAN_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, - asn_app_consume_bytes_f *cb, void *app_key) { - const BOOLEAN_t *st = (const BOOLEAN_t *)sptr; - const char *buf; - size_t buflen; - - (void)td; /* Unused argument */ - (void)ilevel; /* Unused argument */ - - if(st) { - if(*st) { - buf = "TRUE"; - buflen = 4; - } else { - buf = "FALSE"; - buflen = 5; - } - } else { - buf = ""; - buflen = 8; - } - - return (cb(buf, buflen, app_key) < 0) ? -1 : 0; -} - -void -BOOLEAN_free(const asn_TYPE_descriptor_t *td, void *ptr, - enum asn_struct_free_method method) { - if(td && ptr) { - switch(method) { - case ASFM_FREE_EVERYTHING: - FREEMEM(ptr); - break; - case ASFM_FREE_UNDERLYING: - break; - case ASFM_FREE_UNDERLYING_AND_RESET: - memset(ptr, 0, sizeof(BOOLEAN_t)); - break; - } - } -} - -#ifndef ASN_DISABLE_PER_SUPPORT - -asn_dec_rval_t -BOOLEAN_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, void **sptr, - asn_per_data_t *pd) { - asn_dec_rval_t rv; - BOOLEAN_t *st = (BOOLEAN_t *)*sptr; - - (void)opt_codec_ctx; - (void)td; - (void)constraints; - - if(!st) { - st = (BOOLEAN_t *)(*sptr = MALLOC(sizeof(*st))); - if(!st) ASN__DECODE_FAILED; - } - - /* - * Extract a single bit - */ - switch(per_get_few_bits(pd, 1)) { - case 1: *st = 1; break; - case 0: *st = 0; break; - case -1: default: ASN__DECODE_STARVED; - } - - ASN_DEBUG("%s decoded as %s", td->name, *st ? "TRUE" : "FALSE"); - - rv.code = RC_OK; - rv.consumed = 1; - return rv; -} - - -asn_enc_rval_t -BOOLEAN_encode_uper(const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, const void *sptr, - asn_per_outp_t *po) { - const BOOLEAN_t *st = (const BOOLEAN_t *)sptr; - asn_enc_rval_t er = { 0, 0, 0 }; - - (void)constraints; - - if(!st) ASN__ENCODE_FAILED; - - if(per_put_few_bits(po, *st ? 1 : 0, 1)) - ASN__ENCODE_FAILED; - - ASN__ENCODED_OK(er); -} - -#endif /* ASN_DISABLE_PER_SUPPORT */ - -#ifndef ASN_DISABLE_OER_SUPPORT - -/* - * Encode as Canonical OER. - */ -asn_enc_rval_t -BOOLEAN_encode_oer(const asn_TYPE_descriptor_t *td, - const asn_oer_constraints_t *constraints, const void *sptr, - asn_app_consume_bytes_f *cb, void *app_key) { - asn_enc_rval_t er = { 1, 0, 0 }; - const BOOLEAN_t *st = sptr; - uint8_t bool_value = *st ? 0xff : 0; /* 0xff mandated by OER */ - - (void)td; - (void)constraints; /* Constraints are unused in OER */ - - if(cb(&bool_value, 1, app_key) < 0) { - ASN__ENCODE_FAILED; - } else { - ASN__ENCODED_OK(er); - } -} - -asn_dec_rval_t -BOOLEAN_decode_oer(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - const asn_oer_constraints_t *constraints, void **sptr, - const void *ptr, size_t size) { - asn_dec_rval_t ok = {RC_OK, 1}; - BOOLEAN_t *st; - - (void)opt_codec_ctx; - (void)td; - (void)constraints; /* Constraints are unused in OER */ - - if(size < 1) { - ASN__DECODE_STARVED; - } - - if(!(st = *sptr)) { - st = (BOOLEAN_t *)(*sptr = CALLOC(1, sizeof(*st))); - if(!st) ASN__DECODE_FAILED; - } - - *st = *(const uint8_t *)ptr; - - return ok; -} - - - -#endif - -int -BOOLEAN_compare(const asn_TYPE_descriptor_t *td, const void *aptr, - const void *bptr) { - const BOOLEAN_t *a = aptr; - const BOOLEAN_t *b = bptr; - - (void)td; - - if(a && b) { - if(!*a == !*b) { /* TRUE can be encoded by any non-zero byte. */ - return 0; - } else if(!*a) { - return -1; - } else { - return 1; - } - } else if(!a) { - return -1; - } else { - return 1; - } -} - -asn_random_fill_result_t -BOOLEAN_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constraints, - size_t max_length) { - asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - BOOLEAN_t *st = *sptr; - - if(max_length == 0) return result_skipped; - - if(st == NULL) { - st = (BOOLEAN_t *)(*sptr = CALLOC(1, sizeof(*st))); - if(st == NULL) { - return result_failed; - } - } - - if(!constraints || !constraints->per_constraints) - constraints = &td->encoding_constraints; - if(constraints->per_constraints) { - const asn_per_constraint_t *pc = &constraints->per_constraints->value; - if(pc->flags & APC_CONSTRAINED) { - *st = asn_random_between(pc->lower_bound, pc->upper_bound); - return result_ok; - } - } - - /* Simulate booleans that are sloppily set and biased. */ - switch(asn_random_between(0, 7)) { - case 0: - case 1: - case 2: - *st = 0; break; - case 3: *st = -1; break; - case 4: *st = 1; break; - case 5: *st = INT_MIN; break; - case 6: *st = INT_MAX; break; - default: - *st = asn_random_between(INT_MIN, INT_MAX); - break; - } - return result_ok; -} diff --git a/asn.1/generated/BOOLEAN.h b/asn.1/generated/BOOLEAN.h deleted file mode 100644 index 7e6b8fb5..00000000 --- a/asn.1/generated/BOOLEAN.h +++ /dev/null @@ -1,43 +0,0 @@ -/*- - * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef _BOOLEAN_H_ -#define _BOOLEAN_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * The underlying integer may contain various values, but everything - * non-zero is capped to 0xff by the DER encoder. The BER decoder may - * yield non-zero values different from 1, beware. - */ -typedef int BOOLEAN_t; - -extern asn_TYPE_descriptor_t asn_DEF_BOOLEAN; -extern asn_TYPE_operation_t asn_OP_BOOLEAN; - -asn_struct_free_f BOOLEAN_free; -asn_struct_print_f BOOLEAN_print; -asn_struct_compare_f BOOLEAN_compare; -ber_type_decoder_f BOOLEAN_decode_ber; -der_type_encoder_f BOOLEAN_encode_der; -oer_type_decoder_f BOOLEAN_decode_oer; -oer_type_encoder_f BOOLEAN_encode_oer; -per_type_decoder_f BOOLEAN_decode_uper; -per_type_encoder_f BOOLEAN_encode_uper; -xer_type_decoder_f BOOLEAN_decode_xer; -xer_type_encoder_f BOOLEAN_encode_xer; -asn_random_fill_f BOOLEAN_random_fill; - -#define BOOLEAN_constraint asn_generic_no_constraint - -#ifdef __cplusplus -} -#endif - -#endif /* _BOOLEAN_H_ */ diff --git a/asn.1/generated/BT-Error-r13.c b/asn.1/generated/BT-Error-r13.c deleted file mode 100644 index 72839ba5..00000000 --- a/asn.1/generated/BT-Error-r13.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BT-Error-r13.h" - -asn_per_constraints_t asn_PER_type_BT_Error_r13_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_BT_Error_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BT_Error_r13, choice.locationServerErrorCauses_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BT_LocationServerErrorCauses_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationServerErrorCauses-r13" - }, - { ATF_NOFLAGS, 0, offsetof(struct BT_Error_r13, choice.targetDeviceErrorCauses_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BT_TargetDeviceErrorCauses_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "targetDeviceErrorCauses-r13" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_BT_Error_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses-r13 */ -}; -asn_CHOICE_specifics_t asn_SPC_BT_Error_r13_specs_1 = { - sizeof(struct BT_Error_r13), - offsetof(struct BT_Error_r13, _asn_ctx), - offsetof(struct BT_Error_r13, present), - sizeof(((struct BT_Error_r13 *)0)->present), - asn_MAP_BT_Error_r13_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_BT_Error_r13 = { - "BT-Error-r13", - "BT-Error-r13", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_BT_Error_r13_constr_1, CHOICE_constraint }, - asn_MBR_BT_Error_r13_1, - 2, /* Elements count */ - &asn_SPC_BT_Error_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BT-LocationServerErrorCauses-r13.c b/asn.1/generated/BT-LocationServerErrorCauses-r13.c deleted file mode 100644 index 62d7abf5..00000000 --- a/asn.1/generated/BT-LocationServerErrorCauses-r13.c +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BT-LocationServerErrorCauses-r13.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_r13_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_r13_value2enum_2[] = { - { 0, 9, "undefined" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_r13_enum2value_2[] = { - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_r13_specs_2 = { - asn_MAP_cause_r13_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_r13_enum2value_2, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 2, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_r13_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_r13_2 = { - "cause-r13", - "cause-r13", - &asn_OP_NativeEnumerated, - asn_DEF_cause_r13_tags_2, - sizeof(asn_DEF_cause_r13_tags_2) - /sizeof(asn_DEF_cause_r13_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_r13_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_r13_tags_2) - /sizeof(asn_DEF_cause_r13_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_r13_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_r13_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_BT_LocationServerErrorCauses_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BT_LocationServerErrorCauses_r13, cause_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_r13_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause-r13" - }, -}; -static const ber_tlv_tag_t asn_DEF_BT_LocationServerErrorCauses_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BT_LocationServerErrorCauses_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause-r13 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BT_LocationServerErrorCauses_r13_specs_1 = { - sizeof(struct BT_LocationServerErrorCauses_r13), - offsetof(struct BT_LocationServerErrorCauses_r13, _asn_ctx), - asn_MAP_BT_LocationServerErrorCauses_r13_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BT_LocationServerErrorCauses_r13 = { - "BT-LocationServerErrorCauses-r13", - "BT-LocationServerErrorCauses-r13", - &asn_OP_SEQUENCE, - asn_DEF_BT_LocationServerErrorCauses_r13_tags_1, - sizeof(asn_DEF_BT_LocationServerErrorCauses_r13_tags_1) - /sizeof(asn_DEF_BT_LocationServerErrorCauses_r13_tags_1[0]), /* 1 */ - asn_DEF_BT_LocationServerErrorCauses_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_BT_LocationServerErrorCauses_r13_tags_1) - /sizeof(asn_DEF_BT_LocationServerErrorCauses_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_BT_LocationServerErrorCauses_r13_1, - 1, /* Elements count */ - &asn_SPC_BT_LocationServerErrorCauses_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BT-LocationServerErrorCauses-r13.h b/asn.1/generated/BT-LocationServerErrorCauses-r13.h deleted file mode 100644 index 0033b30c..00000000 --- a/asn.1/generated/BT-LocationServerErrorCauses-r13.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _BT_LocationServerErrorCauses_r13_H_ -#define _BT_LocationServerErrorCauses_r13_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum BT_LocationServerErrorCauses_r13__cause_r13 { - BT_LocationServerErrorCauses_r13__cause_r13_undefined = 0 - /* - * Enumeration is extensible - */ -} e_BT_LocationServerErrorCauses_r13__cause_r13; - -/* BT-LocationServerErrorCauses-r13 */ -typedef struct BT_LocationServerErrorCauses_r13 { - long cause_r13; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} BT_LocationServerErrorCauses_r13_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_cause_r13_2; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_BT_LocationServerErrorCauses_r13; -extern asn_SEQUENCE_specifics_t asn_SPC_BT_LocationServerErrorCauses_r13_specs_1; -extern asn_TYPE_member_t asn_MBR_BT_LocationServerErrorCauses_r13_1[1]; - -#ifdef __cplusplus -} -#endif - -#endif /* _BT_LocationServerErrorCauses_r13_H_ */ -#include diff --git a/asn.1/generated/BT-MeasurementElement-r13.c b/asn.1/generated/BT-MeasurementElement-r13.c deleted file mode 100644 index 0f85dc4a..00000000 --- a/asn.1/generated/BT-MeasurementElement-r13.c +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BT-MeasurementElement-r13.h" - -static int -memb_btAddr_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 48)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_rssi_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_btAddr_r13_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 48, 48 } /* (SIZE(48..48)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_rssi_r13_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_BT_MeasurementElement_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BT_MeasurementElement_r13, btAddr_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_btAddr_r13_constr_2, memb_btAddr_r13_constraint_1 }, - 0, 0, /* No default value */ - "btAddr-r13" - }, - { ATF_POINTER, 1, offsetof(struct BT_MeasurementElement_r13, rssi_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rssi_r13_constr_3, memb_rssi_r13_constraint_1 }, - 0, 0, /* No default value */ - "rssi-r13" - }, -}; -static const int asn_MAP_BT_MeasurementElement_r13_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_BT_MeasurementElement_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BT_MeasurementElement_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* btAddr-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* rssi-r13 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BT_MeasurementElement_r13_specs_1 = { - sizeof(struct BT_MeasurementElement_r13), - offsetof(struct BT_MeasurementElement_r13, _asn_ctx), - asn_MAP_BT_MeasurementElement_r13_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_BT_MeasurementElement_r13_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BT_MeasurementElement_r13 = { - "BT-MeasurementElement-r13", - "BT-MeasurementElement-r13", - &asn_OP_SEQUENCE, - asn_DEF_BT_MeasurementElement_r13_tags_1, - sizeof(asn_DEF_BT_MeasurementElement_r13_tags_1) - /sizeof(asn_DEF_BT_MeasurementElement_r13_tags_1[0]), /* 1 */ - asn_DEF_BT_MeasurementElement_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_BT_MeasurementElement_r13_tags_1) - /sizeof(asn_DEF_BT_MeasurementElement_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_BT_MeasurementElement_r13_1, - 2, /* Elements count */ - &asn_SPC_BT_MeasurementElement_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BT-MeasurementInformation-r13.c b/asn.1/generated/BT-MeasurementInformation-r13.c deleted file mode 100644 index a9ffa073..00000000 --- a/asn.1/generated/BT-MeasurementInformation-r13.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BT-MeasurementInformation-r13.h" - -asn_TYPE_member_t asn_MBR_BT_MeasurementInformation_r13_1[] = { - { ATF_POINTER, 2, offsetof(struct BT_MeasurementInformation_r13, measurementReferenceTime_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTCTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "measurementReferenceTime-r13" - }, - { ATF_POINTER, 1, offsetof(struct BT_MeasurementInformation_r13, bt_MeasurementList_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BT_MeasurementList_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bt-MeasurementList-r13" - }, -}; -static const int asn_MAP_BT_MeasurementInformation_r13_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_BT_MeasurementInformation_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BT_MeasurementInformation_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* measurementReferenceTime-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bt-MeasurementList-r13 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BT_MeasurementInformation_r13_specs_1 = { - sizeof(struct BT_MeasurementInformation_r13), - offsetof(struct BT_MeasurementInformation_r13, _asn_ctx), - asn_MAP_BT_MeasurementInformation_r13_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_BT_MeasurementInformation_r13_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BT_MeasurementInformation_r13 = { - "BT-MeasurementInformation-r13", - "BT-MeasurementInformation-r13", - &asn_OP_SEQUENCE, - asn_DEF_BT_MeasurementInformation_r13_tags_1, - sizeof(asn_DEF_BT_MeasurementInformation_r13_tags_1) - /sizeof(asn_DEF_BT_MeasurementInformation_r13_tags_1[0]), /* 1 */ - asn_DEF_BT_MeasurementInformation_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_BT_MeasurementInformation_r13_tags_1) - /sizeof(asn_DEF_BT_MeasurementInformation_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_BT_MeasurementInformation_r13_1, - 2, /* Elements count */ - &asn_SPC_BT_MeasurementInformation_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BT-MeasurementInformation-r13.h b/asn.1/generated/BT-MeasurementInformation-r13.h deleted file mode 100644 index c54fdfce..00000000 --- a/asn.1/generated/BT-MeasurementInformation-r13.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _BT_MeasurementInformation_r13_H_ -#define _BT_MeasurementInformation_r13_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct BT_MeasurementList_r13; - -/* BT-MeasurementInformation-r13 */ -typedef struct BT_MeasurementInformation_r13 { - UTCTime_t *measurementReferenceTime_r13 /* OPTIONAL */; - struct BT_MeasurementList_r13 *bt_MeasurementList_r13 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} BT_MeasurementInformation_r13_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_BT_MeasurementInformation_r13; -extern asn_SEQUENCE_specifics_t asn_SPC_BT_MeasurementInformation_r13_specs_1; -extern asn_TYPE_member_t asn_MBR_BT_MeasurementInformation_r13_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "BT-MeasurementList-r13.h" - -#endif /* _BT_MeasurementInformation_r13_H_ */ -#include diff --git a/asn.1/generated/BT-MeasurementList-r13.c b/asn.1/generated/BT-MeasurementList-r13.c deleted file mode 100644 index c2903a31..00000000 --- a/asn.1/generated/BT-MeasurementList-r13.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BT-MeasurementList-r13.h" - -asn_per_constraints_t asn_PER_type_BT_MeasurementList_r13_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_BT_MeasurementList_r13_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_BT_MeasurementElement_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_BT_MeasurementList_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_BT_MeasurementList_r13_specs_1 = { - sizeof(struct BT_MeasurementList_r13), - offsetof(struct BT_MeasurementList_r13, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_BT_MeasurementList_r13 = { - "BT-MeasurementList-r13", - "BT-MeasurementList-r13", - &asn_OP_SEQUENCE_OF, - asn_DEF_BT_MeasurementList_r13_tags_1, - sizeof(asn_DEF_BT_MeasurementList_r13_tags_1) - /sizeof(asn_DEF_BT_MeasurementList_r13_tags_1[0]), /* 1 */ - asn_DEF_BT_MeasurementList_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_BT_MeasurementList_r13_tags_1) - /sizeof(asn_DEF_BT_MeasurementList_r13_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_BT_MeasurementList_r13_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_BT_MeasurementList_r13_1, - 1, /* Single element */ - &asn_SPC_BT_MeasurementList_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BT-ProvideCapabilities-r13.c b/asn.1/generated/BT-ProvideCapabilities-r13.c deleted file mode 100644 index b1b73ce2..00000000 --- a/asn.1/generated/BT-ProvideCapabilities-r13.c +++ /dev/null @@ -1,243 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BT-ProvideCapabilities-r13.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_bt_Modes_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bt_MeasSupported_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_idleStateForMeasurements_r14_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bt_Modes_r13_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bt_MeasSupported_r13_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_idleStateForMeasurements_r14_value2enum_9[] = { - { 0, 8, "required" } -}; -static const unsigned int asn_MAP_idleStateForMeasurements_r14_enum2value_9[] = { - 0 /* required(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_idleStateForMeasurements_r14_specs_9 = { - asn_MAP_idleStateForMeasurements_r14_value2enum_9, /* "tag" => N; sorted by tag */ - asn_MAP_idleStateForMeasurements_r14_enum2value_9, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_idleStateForMeasurements_r14_tags_9[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_idleStateForMeasurements_r14_9 = { - "idleStateForMeasurements-r14", - "idleStateForMeasurements-r14", - &asn_OP_NativeEnumerated, - asn_DEF_idleStateForMeasurements_r14_tags_9, - sizeof(asn_DEF_idleStateForMeasurements_r14_tags_9) - /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_9[0]) - 1, /* 1 */ - asn_DEF_idleStateForMeasurements_r14_tags_9, /* Same as above */ - sizeof(asn_DEF_idleStateForMeasurements_r14_tags_9) - /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_9[0]), /* 2 */ - { 0, &asn_PER_type_idleStateForMeasurements_r14_constr_9, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_idleStateForMeasurements_r14_specs_9 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_8[] = { - { ATF_POINTER, 2, offsetof(struct BT_ProvideCapabilities_r13__ext1, idleStateForMeasurements_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_idleStateForMeasurements_r14_9, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "idleStateForMeasurements-r14" - }, - { ATF_POINTER, 1, offsetof(struct BT_ProvideCapabilities_r13__ext1, periodicalReportingSupported_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PositioningModes, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "periodicalReportingSupported-r14" - }, -}; -static const int asn_MAP_ext1_oms_8[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* idleStateForMeasurements-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* periodicalReportingSupported-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { - sizeof(struct BT_ProvideCapabilities_r13__ext1), - offsetof(struct BT_ProvideCapabilities_r13__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_8, - 2, /* Count of tags in the map */ - asn_MAP_ext1_oms_8, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_8 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_8, - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_8, /* Same as above */ - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_8, - 2, /* Elements count */ - &asn_SPC_ext1_specs_8 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_BT_ProvideCapabilities_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BT_ProvideCapabilities_r13, bt_Modes_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_bt_Modes_r13_constr_2, memb_bt_Modes_r13_constraint_1 }, - 0, 0, /* No default value */ - "bt-Modes-r13" - }, - { ATF_NOFLAGS, 0, offsetof(struct BT_ProvideCapabilities_r13, bt_MeasSupported_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_bt_MeasSupported_r13_constr_5, memb_bt_MeasSupported_r13_constraint_1 }, - 0, 0, /* No default value */ - "bt-MeasSupported-r13" - }, - { ATF_POINTER, 1, offsetof(struct BT_ProvideCapabilities_r13, ext1), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_ext1_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_BT_ProvideCapabilities_r13_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_BT_ProvideCapabilities_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BT_ProvideCapabilities_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bt-Modes-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bt-MeasSupported-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BT_ProvideCapabilities_r13_specs_1 = { - sizeof(struct BT_ProvideCapabilities_r13), - offsetof(struct BT_ProvideCapabilities_r13, _asn_ctx), - asn_MAP_BT_ProvideCapabilities_r13_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_BT_ProvideCapabilities_r13_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BT_ProvideCapabilities_r13 = { - "BT-ProvideCapabilities-r13", - "BT-ProvideCapabilities-r13", - &asn_OP_SEQUENCE, - asn_DEF_BT_ProvideCapabilities_r13_tags_1, - sizeof(asn_DEF_BT_ProvideCapabilities_r13_tags_1) - /sizeof(asn_DEF_BT_ProvideCapabilities_r13_tags_1[0]), /* 1 */ - asn_DEF_BT_ProvideCapabilities_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_BT_ProvideCapabilities_r13_tags_1) - /sizeof(asn_DEF_BT_ProvideCapabilities_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_BT_ProvideCapabilities_r13_1, - 3, /* Elements count */ - &asn_SPC_BT_ProvideCapabilities_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BT-ProvideCapabilities-r13.h b/asn.1/generated/BT-ProvideCapabilities-r13.h deleted file mode 100644 index 02986736..00000000 --- a/asn.1/generated/BT-ProvideCapabilities-r13.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _BT_ProvideCapabilities_r13_H_ -#define _BT_ProvideCapabilities_r13_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum BT_ProvideCapabilities_r13__bt_Modes_r13 { - BT_ProvideCapabilities_r13__bt_Modes_r13_standalone = 0, - BT_ProvideCapabilities_r13__bt_Modes_r13_ue_assisted = 1 -} e_BT_ProvideCapabilities_r13__bt_Modes_r13; -typedef enum BT_ProvideCapabilities_r13__bt_MeasSupported_r13 { - BT_ProvideCapabilities_r13__bt_MeasSupported_r13_rssi_r13 = 0 -} e_BT_ProvideCapabilities_r13__bt_MeasSupported_r13; -typedef enum BT_ProvideCapabilities_r13__ext1__idleStateForMeasurements_r14 { - BT_ProvideCapabilities_r13__ext1__idleStateForMeasurements_r14_required = 0 -} e_BT_ProvideCapabilities_r13__ext1__idleStateForMeasurements_r14; - -/* Forward declarations */ -struct PositioningModes; - -/* BT-ProvideCapabilities-r13 */ -typedef struct BT_ProvideCapabilities_r13 { - BIT_STRING_t bt_Modes_r13; - BIT_STRING_t bt_MeasSupported_r13; - /* - * This type is extensible, - * possible extensions are below. - */ - struct BT_ProvideCapabilities_r13__ext1 { - long *idleStateForMeasurements_r14 /* OPTIONAL */; - struct PositioningModes *periodicalReportingSupported_r14 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} BT_ProvideCapabilities_r13_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_idleStateForMeasurements_r14_9; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_BT_ProvideCapabilities_r13; -extern asn_SEQUENCE_specifics_t asn_SPC_BT_ProvideCapabilities_r13_specs_1; -extern asn_TYPE_member_t asn_MBR_BT_ProvideCapabilities_r13_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "PositioningModes.h" - -#endif /* _BT_ProvideCapabilities_r13_H_ */ -#include diff --git a/asn.1/generated/BT-ProvideLocationInformation-r13.c b/asn.1/generated/BT-ProvideLocationInformation-r13.c deleted file mode 100644 index 23169210..00000000 --- a/asn.1/generated/BT-ProvideLocationInformation-r13.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BT-ProvideLocationInformation-r13.h" - -asn_TYPE_member_t asn_MBR_BT_ProvideLocationInformation_r13_1[] = { - { ATF_POINTER, 2, offsetof(struct BT_ProvideLocationInformation_r13, bt_MeasurementInformation_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BT_MeasurementInformation_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bt-MeasurementInformation-r13" - }, - { ATF_POINTER, 1, offsetof(struct BT_ProvideLocationInformation_r13, bt_Error_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_BT_Error_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bt-Error-r13" - }, -}; -static const int asn_MAP_BT_ProvideLocationInformation_r13_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_BT_ProvideLocationInformation_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BT_ProvideLocationInformation_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bt-MeasurementInformation-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bt-Error-r13 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BT_ProvideLocationInformation_r13_specs_1 = { - sizeof(struct BT_ProvideLocationInformation_r13), - offsetof(struct BT_ProvideLocationInformation_r13, _asn_ctx), - asn_MAP_BT_ProvideLocationInformation_r13_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_BT_ProvideLocationInformation_r13_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BT_ProvideLocationInformation_r13 = { - "BT-ProvideLocationInformation-r13", - "BT-ProvideLocationInformation-r13", - &asn_OP_SEQUENCE, - asn_DEF_BT_ProvideLocationInformation_r13_tags_1, - sizeof(asn_DEF_BT_ProvideLocationInformation_r13_tags_1) - /sizeof(asn_DEF_BT_ProvideLocationInformation_r13_tags_1[0]), /* 1 */ - asn_DEF_BT_ProvideLocationInformation_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_BT_ProvideLocationInformation_r13_tags_1) - /sizeof(asn_DEF_BT_ProvideLocationInformation_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_BT_ProvideLocationInformation_r13_1, - 2, /* Elements count */ - &asn_SPC_BT_ProvideLocationInformation_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BT-ProvideLocationInformation-r13.h b/asn.1/generated/BT-ProvideLocationInformation-r13.h deleted file mode 100644 index 16398798..00000000 --- a/asn.1/generated/BT-ProvideLocationInformation-r13.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _BT_ProvideLocationInformation_r13_H_ -#define _BT_ProvideLocationInformation_r13_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct BT_MeasurementInformation_r13; -struct BT_Error_r13; - -/* BT-ProvideLocationInformation-r13 */ -typedef struct BT_ProvideLocationInformation_r13 { - struct BT_MeasurementInformation_r13 *bt_MeasurementInformation_r13 /* OPTIONAL */; - struct BT_Error_r13 *bt_Error_r13 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} BT_ProvideLocationInformation_r13_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_BT_ProvideLocationInformation_r13; -extern asn_SEQUENCE_specifics_t asn_SPC_BT_ProvideLocationInformation_r13_specs_1; -extern asn_TYPE_member_t asn_MBR_BT_ProvideLocationInformation_r13_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "BT-MeasurementInformation-r13.h" -#include "BT-Error-r13.h" - -#endif /* _BT_ProvideLocationInformation_r13_H_ */ -#include diff --git a/asn.1/generated/BT-RequestCapabilities-r13.c b/asn.1/generated/BT-RequestCapabilities-r13.c deleted file mode 100644 index 4f51a463..00000000 --- a/asn.1/generated/BT-RequestCapabilities-r13.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BT-RequestCapabilities-r13.h" - -static const ber_tlv_tag_t asn_DEF_BT_RequestCapabilities_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_BT_RequestCapabilities_r13_specs_1 = { - sizeof(struct BT_RequestCapabilities_r13), - offsetof(struct BT_RequestCapabilities_r13, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BT_RequestCapabilities_r13 = { - "BT-RequestCapabilities-r13", - "BT-RequestCapabilities-r13", - &asn_OP_SEQUENCE, - asn_DEF_BT_RequestCapabilities_r13_tags_1, - sizeof(asn_DEF_BT_RequestCapabilities_r13_tags_1) - /sizeof(asn_DEF_BT_RequestCapabilities_r13_tags_1[0]), /* 1 */ - asn_DEF_BT_RequestCapabilities_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_BT_RequestCapabilities_r13_tags_1) - /sizeof(asn_DEF_BT_RequestCapabilities_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_BT_RequestCapabilities_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BT-RequestLocationInformation-r13.c b/asn.1/generated/BT-RequestLocationInformation-r13.c deleted file mode 100644 index 825ccc3e..00000000 --- a/asn.1/generated/BT-RequestLocationInformation-r13.c +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BT-RequestLocationInformation-r13.h" - -static int -memb_requestedMeasurements_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_requestedMeasurements_r13_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_BT_RequestLocationInformation_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BT_RequestLocationInformation_r13, requestedMeasurements_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_requestedMeasurements_r13_constr_2, memb_requestedMeasurements_r13_constraint_1 }, - 0, 0, /* No default value */ - "requestedMeasurements-r13" - }, -}; -static const ber_tlv_tag_t asn_DEF_BT_RequestLocationInformation_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BT_RequestLocationInformation_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* requestedMeasurements-r13 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BT_RequestLocationInformation_r13_specs_1 = { - sizeof(struct BT_RequestLocationInformation_r13), - offsetof(struct BT_RequestLocationInformation_r13, _asn_ctx), - asn_MAP_BT_RequestLocationInformation_r13_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BT_RequestLocationInformation_r13 = { - "BT-RequestLocationInformation-r13", - "BT-RequestLocationInformation-r13", - &asn_OP_SEQUENCE, - asn_DEF_BT_RequestLocationInformation_r13_tags_1, - sizeof(asn_DEF_BT_RequestLocationInformation_r13_tags_1) - /sizeof(asn_DEF_BT_RequestLocationInformation_r13_tags_1[0]), /* 1 */ - asn_DEF_BT_RequestLocationInformation_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_BT_RequestLocationInformation_r13_tags_1) - /sizeof(asn_DEF_BT_RequestLocationInformation_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_BT_RequestLocationInformation_r13_1, - 1, /* Elements count */ - &asn_SPC_BT_RequestLocationInformation_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BT-RequestLocationInformation-r13.h b/asn.1/generated/BT-RequestLocationInformation-r13.h deleted file mode 100644 index a02a4dc6..00000000 --- a/asn.1/generated/BT-RequestLocationInformation-r13.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _BT_RequestLocationInformation_r13_H_ -#define _BT_RequestLocationInformation_r13_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum BT_RequestLocationInformation_r13__requestedMeasurements_r13 { - BT_RequestLocationInformation_r13__requestedMeasurements_r13_rssi = 0 -} e_BT_RequestLocationInformation_r13__requestedMeasurements_r13; - -/* BT-RequestLocationInformation-r13 */ -typedef struct BT_RequestLocationInformation_r13 { - BIT_STRING_t requestedMeasurements_r13; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} BT_RequestLocationInformation_r13_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_BT_RequestLocationInformation_r13; -extern asn_SEQUENCE_specifics_t asn_SPC_BT_RequestLocationInformation_r13_specs_1; -extern asn_TYPE_member_t asn_MBR_BT_RequestLocationInformation_r13_1[1]; - -#ifdef __cplusplus -} -#endif - -#endif /* _BT_RequestLocationInformation_r13_H_ */ -#include diff --git a/asn.1/generated/BT-TargetDeviceErrorCauses-r13.c b/asn.1/generated/BT-TargetDeviceErrorCauses-r13.c deleted file mode 100644 index 65a2f944..00000000 --- a/asn.1/generated/BT-TargetDeviceErrorCauses-r13.c +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BT-TargetDeviceErrorCauses-r13.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_r13_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_r13_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 33, "requestedMeasurementsNotAvailable" }, - { 2, 35, "notAllrequestedMeasurementsPossible" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_r13_enum2value_2[] = { - 2, /* notAllrequestedMeasurementsPossible(2) */ - 1, /* requestedMeasurementsNotAvailable(1) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_r13_specs_2 = { - asn_MAP_cause_r13_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_r13_enum2value_2, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 4, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_r13_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_r13_2 = { - "cause-r13", - "cause-r13", - &asn_OP_NativeEnumerated, - asn_DEF_cause_r13_tags_2, - sizeof(asn_DEF_cause_r13_tags_2) - /sizeof(asn_DEF_cause_r13_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_r13_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_r13_tags_2) - /sizeof(asn_DEF_cause_r13_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_r13_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_r13_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_BT_TargetDeviceErrorCauses_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BT_TargetDeviceErrorCauses_r13, cause_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_r13_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause-r13" - }, - { ATF_POINTER, 1, offsetof(struct BT_TargetDeviceErrorCauses_r13, bt_Beacon_rssiMeasurementNotPossible_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bt-Beacon-rssiMeasurementNotPossible-r13" - }, -}; -static const int asn_MAP_BT_TargetDeviceErrorCauses_r13_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_BT_TargetDeviceErrorCauses_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BT_TargetDeviceErrorCauses_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bt-Beacon-rssiMeasurementNotPossible-r13 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BT_TargetDeviceErrorCauses_r13_specs_1 = { - sizeof(struct BT_TargetDeviceErrorCauses_r13), - offsetof(struct BT_TargetDeviceErrorCauses_r13, _asn_ctx), - asn_MAP_BT_TargetDeviceErrorCauses_r13_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_BT_TargetDeviceErrorCauses_r13_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BT_TargetDeviceErrorCauses_r13 = { - "BT-TargetDeviceErrorCauses-r13", - "BT-TargetDeviceErrorCauses-r13", - &asn_OP_SEQUENCE, - asn_DEF_BT_TargetDeviceErrorCauses_r13_tags_1, - sizeof(asn_DEF_BT_TargetDeviceErrorCauses_r13_tags_1) - /sizeof(asn_DEF_BT_TargetDeviceErrorCauses_r13_tags_1[0]), /* 1 */ - asn_DEF_BT_TargetDeviceErrorCauses_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_BT_TargetDeviceErrorCauses_r13_tags_1) - /sizeof(asn_DEF_BT_TargetDeviceErrorCauses_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_BT_TargetDeviceErrorCauses_r13_1, - 2, /* Elements count */ - &asn_SPC_BT_TargetDeviceErrorCauses_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BadSignalElement.c b/asn.1/generated/BadSignalElement.c deleted file mode 100644 index b817ff0d..00000000 --- a/asn.1/generated/BadSignalElement.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BadSignalElement.h" - -asn_TYPE_member_t asn_MBR_BadSignalElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BadSignalElement, badSVID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "badSVID" - }, - { ATF_POINTER, 1, offsetof(struct BadSignalElement, badSignalID), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalIDs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "badSignalID" - }, -}; -static const int asn_MAP_BadSignalElement_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_BadSignalElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BadSignalElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* badSVID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* badSignalID */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BadSignalElement_specs_1 = { - sizeof(struct BadSignalElement), - offsetof(struct BadSignalElement, _asn_ctx), - asn_MAP_BadSignalElement_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_BadSignalElement_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BadSignalElement = { - "BadSignalElement", - "BadSignalElement", - &asn_OP_SEQUENCE, - asn_DEF_BadSignalElement_tags_1, - sizeof(asn_DEF_BadSignalElement_tags_1) - /sizeof(asn_DEF_BadSignalElement_tags_1[0]), /* 1 */ - asn_DEF_BadSignalElement_tags_1, /* Same as above */ - sizeof(asn_DEF_BadSignalElement_tags_1) - /sizeof(asn_DEF_BadSignalElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_BadSignalElement_1, - 2, /* Elements count */ - &asn_SPC_BadSignalElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BasicProtectionParams.c b/asn.1/generated/BasicProtectionParams.c deleted file mode 100644 index 6d0bead6..00000000 --- a/asn.1/generated/BasicProtectionParams.c +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BasicProtectionParams.h" - -static int -memb_keyIdentifier_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_basicReplayCounter_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_basicMAC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 32)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_keyIdentifier_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_basicReplayCounter_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_basicMAC_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 32, 32 } /* (SIZE(32..32)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_BasicProtectionParams_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BasicProtectionParams, keyIdentifier), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OCTET_STRING, - 0, - { 0, &asn_PER_memb_keyIdentifier_constr_2, memb_keyIdentifier_constraint_1 }, - 0, 0, /* No default value */ - "keyIdentifier" - }, - { ATF_NOFLAGS, 0, offsetof(struct BasicProtectionParams, basicReplayCounter), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_basicReplayCounter_constr_3, memb_basicReplayCounter_constraint_1 }, - 0, 0, /* No default value */ - "basicReplayCounter" - }, - { ATF_NOFLAGS, 0, offsetof(struct BasicProtectionParams, basicMAC), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_basicMAC_constr_4, memb_basicMAC_constraint_1 }, - 0, 0, /* No default value */ - "basicMAC" - }, -}; -static const ber_tlv_tag_t asn_DEF_BasicProtectionParams_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BasicProtectionParams_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* keyIdentifier */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* basicReplayCounter */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* basicMAC */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BasicProtectionParams_specs_1 = { - sizeof(struct BasicProtectionParams), - offsetof(struct BasicProtectionParams, _asn_ctx), - asn_MAP_BasicProtectionParams_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BasicProtectionParams = { - "BasicProtectionParams", - "BasicProtectionParams", - &asn_OP_SEQUENCE, - asn_DEF_BasicProtectionParams_tags_1, - sizeof(asn_DEF_BasicProtectionParams_tags_1) - /sizeof(asn_DEF_BasicProtectionParams_tags_1[0]), /* 1 */ - asn_DEF_BasicProtectionParams_tags_1, /* Same as above */ - sizeof(asn_DEF_BasicProtectionParams_tags_1) - /sizeof(asn_DEF_BasicProtectionParams_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_BasicProtectionParams_1, - 3, /* Elements count */ - &asn_SPC_BasicProtectionParams_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BatchRepCap.c b/asn.1/generated/BatchRepCap.c deleted file mode 100644 index aa6f6ac1..00000000 --- a/asn.1/generated/BatchRepCap.c +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BatchRepCap.h" - -static int -memb_max_num_positions_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 1024)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_max_num_measurements_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 1024)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_max_num_positions_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (1..1024) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_max_num_measurements_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (1..1024) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_BatchRepCap_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BatchRepCap, report_position), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "report-position" - }, - { ATF_NOFLAGS, 0, offsetof(struct BatchRepCap, report_measurements), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "report-measurements" - }, - { ATF_POINTER, 2, offsetof(struct BatchRepCap, max_num_positions), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_max_num_positions_constr_4, memb_max_num_positions_constraint_1 }, - 0, 0, /* No default value */ - "max-num-positions" - }, - { ATF_POINTER, 1, offsetof(struct BatchRepCap, max_num_measurements), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_max_num_measurements_constr_5, memb_max_num_measurements_constraint_1 }, - 0, 0, /* No default value */ - "max-num-measurements" - }, -}; -static const int asn_MAP_BatchRepCap_oms_1[] = { 2, 3 }; -static const ber_tlv_tag_t asn_DEF_BatchRepCap_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BatchRepCap_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* report-position */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* report-measurements */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* max-num-positions */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* max-num-measurements */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BatchRepCap_specs_1 = { - sizeof(struct BatchRepCap), - offsetof(struct BatchRepCap, _asn_ctx), - asn_MAP_BatchRepCap_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_BatchRepCap_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BatchRepCap = { - "BatchRepCap", - "BatchRepCap", - &asn_OP_SEQUENCE, - asn_DEF_BatchRepCap_tags_1, - sizeof(asn_DEF_BatchRepCap_tags_1) - /sizeof(asn_DEF_BatchRepCap_tags_1[0]), /* 1 */ - asn_DEF_BatchRepCap_tags_1, /* Same as above */ - sizeof(asn_DEF_BatchRepCap_tags_1) - /sizeof(asn_DEF_BatchRepCap_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_BatchRepCap_1, - 4, /* Elements count */ - &asn_SPC_BatchRepCap_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BatchRepCap.h b/asn.1/generated/BatchRepCap.h deleted file mode 100644 index 36577546..00000000 --- a/asn.1/generated/BatchRepCap.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _BatchRepCap_H_ -#define _BatchRepCap_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* BatchRepCap */ -typedef struct BatchRepCap { - BOOLEAN_t report_position; - BOOLEAN_t report_measurements; - long *max_num_positions /* OPTIONAL */; - long *max_num_measurements /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} BatchRepCap_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_BatchRepCap; -extern asn_SEQUENCE_specifics_t asn_SPC_BatchRepCap_specs_1; -extern asn_TYPE_member_t asn_MBR_BatchRepCap_1[4]; - -#ifdef __cplusplus -} -#endif - -#endif /* _BatchRepCap_H_ */ -#include diff --git a/asn.1/generated/BatchRepConditions.c b/asn.1/generated/BatchRepConditions.c deleted file mode 100644 index c817e3b9..00000000 --- a/asn.1/generated/BatchRepConditions.c +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BatchRepConditions.h" - -static int -memb_num_interval_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 1024)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_num_minutes_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 2048)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_num_interval_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (1..1024) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_num_minutes_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 1, 2048 } /* (1..2048) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_per_constraints_t asn_PER_type_BatchRepConditions_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_BatchRepConditions_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BatchRepConditions, choice.num_interval), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_num_interval_constr_2, memb_num_interval_constraint_1 }, - 0, 0, /* No default value */ - "num-interval" - }, - { ATF_NOFLAGS, 0, offsetof(struct BatchRepConditions, choice.num_minutes), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_num_minutes_constr_3, memb_num_minutes_constraint_1 }, - 0, 0, /* No default value */ - "num-minutes" - }, - { ATF_NOFLAGS, 0, offsetof(struct BatchRepConditions, choice.endofsession), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "endofsession" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_BatchRepConditions_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* num-interval */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* num-minutes */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* endofsession */ -}; -asn_CHOICE_specifics_t asn_SPC_BatchRepConditions_specs_1 = { - sizeof(struct BatchRepConditions), - offsetof(struct BatchRepConditions, _asn_ctx), - offsetof(struct BatchRepConditions, present), - sizeof(((struct BatchRepConditions *)0)->present), - asn_MAP_BatchRepConditions_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, - 3 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_BatchRepConditions = { - "BatchRepConditions", - "BatchRepConditions", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_BatchRepConditions_constr_1, CHOICE_constraint }, - asn_MBR_BatchRepConditions_1, - 3, /* Elements count */ - &asn_SPC_BatchRepConditions_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/BatchRepType.c b/asn.1/generated/BatchRepType.c deleted file mode 100644 index 933e4d1a..00000000 --- a/asn.1/generated/BatchRepType.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "BatchRepType.h" - -asn_TYPE_member_t asn_MBR_BatchRepType_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BatchRepType, reportPosition), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "reportPosition" - }, - { ATF_NOFLAGS, 0, offsetof(struct BatchRepType, reportMeasurements), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "reportMeasurements" - }, - { ATF_NOFLAGS, 0, offsetof(struct BatchRepType, intermediateReports), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "intermediateReports" - }, - { ATF_POINTER, 1, offsetof(struct BatchRepType, discardOldest), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "discardOldest" - }, -}; -static const int asn_MAP_BatchRepType_oms_1[] = { 3 }; -static const ber_tlv_tag_t asn_DEF_BatchRepType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BatchRepType_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* reportPosition */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* reportMeasurements */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* intermediateReports */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* discardOldest */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BatchRepType_specs_1 = { - sizeof(struct BatchRepType), - offsetof(struct BatchRepType, _asn_ctx), - asn_MAP_BatchRepType_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_BatchRepType_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BatchRepType = { - "BatchRepType", - "BatchRepType", - &asn_OP_SEQUENCE, - asn_DEF_BatchRepType_tags_1, - sizeof(asn_DEF_BatchRepType_tags_1) - /sizeof(asn_DEF_BatchRepType_tags_1[0]), /* 1 */ - asn_DEF_BatchRepType_tags_1, /* Same as above */ - sizeof(asn_DEF_BatchRepType_tags_1) - /sizeof(asn_DEF_BatchRepType_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_BatchRepType_1, - 4, /* Elements count */ - &asn_SPC_BatchRepType_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CDMAAreaId.c b/asn.1/generated/CDMAAreaId.c deleted file mode 100644 index d653f098..00000000 --- a/asn.1/generated/CDMAAreaId.c +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CDMAAreaId.h" - -static int -memb_refSID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refNID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refBASEID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_refSID_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refNID_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refBASEID_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_CDMAAreaId_1[] = { - { ATF_POINTER, 3, offsetof(struct CDMAAreaId, refSID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refSID_constr_2, memb_refSID_constraint_1 }, - 0, 0, /* No default value */ - "refSID" - }, - { ATF_POINTER, 2, offsetof(struct CDMAAreaId, refNID), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refNID_constr_3, memb_refNID_constraint_1 }, - 0, 0, /* No default value */ - "refNID" - }, - { ATF_POINTER, 1, offsetof(struct CDMAAreaId, refBASEID), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refBASEID_constr_4, memb_refBASEID_constraint_1 }, - 0, 0, /* No default value */ - "refBASEID" - }, -}; -static const int asn_MAP_CDMAAreaId_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_CDMAAreaId_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CDMAAreaId_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refSID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refNID */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* refBASEID */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CDMAAreaId_specs_1 = { - sizeof(struct CDMAAreaId), - offsetof(struct CDMAAreaId, _asn_ctx), - asn_MAP_CDMAAreaId_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_CDMAAreaId_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_CDMAAreaId = { - "CDMAAreaId", - "CDMAAreaId", - &asn_OP_SEQUENCE, - asn_DEF_CDMAAreaId_tags_1, - sizeof(asn_DEF_CDMAAreaId_tags_1) - /sizeof(asn_DEF_CDMAAreaId_tags_1[0]), /* 1 */ - asn_DEF_CDMAAreaId_tags_1, /* Same as above */ - sizeof(asn_DEF_CDMAAreaId_tags_1) - /sizeof(asn_DEF_CDMAAreaId_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_CDMAAreaId_1, - 3, /* Elements count */ - &asn_SPC_CDMAAreaId_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CDMAAreaId.h b/asn.1/generated/CDMAAreaId.h deleted file mode 100644 index 7c1a074e..00000000 --- a/asn.1/generated/CDMAAreaId.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _CDMAAreaId_H_ -#define _CDMAAreaId_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* CDMAAreaId */ -typedef struct CDMAAreaId { - long *refSID /* OPTIONAL */; - long *refNID /* OPTIONAL */; - long *refBASEID /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} CDMAAreaId_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CDMAAreaId; -extern asn_SEQUENCE_specifics_t asn_SPC_CDMAAreaId_specs_1; -extern asn_TYPE_member_t asn_MBR_CDMAAreaId_1[3]; - -#ifdef __cplusplus -} -#endif - -#endif /* _CDMAAreaId_H_ */ -#include diff --git a/asn.1/generated/CNAV-ClockModel.c b/asn.1/generated/CNAV-ClockModel.c deleted file mode 100644 index 9c3e7f35..00000000 --- a/asn.1/generated/CNAV-ClockModel.c +++ /dev/null @@ -1,642 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CNAV-ClockModel.h" - -static int -memb_cnavToc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2015)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavTop_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2015)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavURA0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavURA1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 7)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavURA2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 7)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavAf2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -512 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavAf1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -524288 && value <= 524287)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavAf0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -33554432 && value <= 33554431)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavTgd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -4096 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavISCl1cp_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -4096 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavISCl1cd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -4096 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavISCl1ca_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -4096 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavISCl2c_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -4096 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavISCl5i5_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -4096 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavISCl5q5_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -4096 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_cnavToc_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 2015 } /* (0..2015) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavTop_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 2015 } /* (0..2015) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavURA0_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, -16, 15 } /* (-16..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavURA1_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavURA2_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavAf2_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavAf1_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 20, -1, -524288, 524287 } /* (-524288..524287) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavAf0_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 26, -1, -33554432, 33554431 } /* (-33554432..33554431) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavTgd_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavISCl1cp_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavISCl1cd_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavISCl1ca_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavISCl2c_constr_14 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavISCl5i5_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavISCl5q5_constr_16 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_CNAV_ClockModel_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CNAV_ClockModel, cnavToc), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavToc_constr_2, memb_cnavToc_constraint_1 }, - 0, 0, /* No default value */ - "cnavToc" - }, - { ATF_NOFLAGS, 0, offsetof(struct CNAV_ClockModel, cnavTop), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavTop_constr_3, memb_cnavTop_constraint_1 }, - 0, 0, /* No default value */ - "cnavTop" - }, - { ATF_NOFLAGS, 0, offsetof(struct CNAV_ClockModel, cnavURA0), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavURA0_constr_4, memb_cnavURA0_constraint_1 }, - 0, 0, /* No default value */ - "cnavURA0" - }, - { ATF_NOFLAGS, 0, offsetof(struct CNAV_ClockModel, cnavURA1), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavURA1_constr_5, memb_cnavURA1_constraint_1 }, - 0, 0, /* No default value */ - "cnavURA1" - }, - { ATF_NOFLAGS, 0, offsetof(struct CNAV_ClockModel, cnavURA2), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavURA2_constr_6, memb_cnavURA2_constraint_1 }, - 0, 0, /* No default value */ - "cnavURA2" - }, - { ATF_NOFLAGS, 0, offsetof(struct CNAV_ClockModel, cnavAf2), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavAf2_constr_7, memb_cnavAf2_constraint_1 }, - 0, 0, /* No default value */ - "cnavAf2" - }, - { ATF_NOFLAGS, 0, offsetof(struct CNAV_ClockModel, cnavAf1), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavAf1_constr_8, memb_cnavAf1_constraint_1 }, - 0, 0, /* No default value */ - "cnavAf1" - }, - { ATF_NOFLAGS, 0, offsetof(struct CNAV_ClockModel, cnavAf0), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavAf0_constr_9, memb_cnavAf0_constraint_1 }, - 0, 0, /* No default value */ - "cnavAf0" - }, - { ATF_NOFLAGS, 0, offsetof(struct CNAV_ClockModel, cnavTgd), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavTgd_constr_10, memb_cnavTgd_constraint_1 }, - 0, 0, /* No default value */ - "cnavTgd" - }, - { ATF_POINTER, 6, offsetof(struct CNAV_ClockModel, cnavISCl1cp), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavISCl1cp_constr_11, memb_cnavISCl1cp_constraint_1 }, - 0, 0, /* No default value */ - "cnavISCl1cp" - }, - { ATF_POINTER, 5, offsetof(struct CNAV_ClockModel, cnavISCl1cd), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavISCl1cd_constr_12, memb_cnavISCl1cd_constraint_1 }, - 0, 0, /* No default value */ - "cnavISCl1cd" - }, - { ATF_POINTER, 4, offsetof(struct CNAV_ClockModel, cnavISCl1ca), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavISCl1ca_constr_13, memb_cnavISCl1ca_constraint_1 }, - 0, 0, /* No default value */ - "cnavISCl1ca" - }, - { ATF_POINTER, 3, offsetof(struct CNAV_ClockModel, cnavISCl2c), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavISCl2c_constr_14, memb_cnavISCl2c_constraint_1 }, - 0, 0, /* No default value */ - "cnavISCl2c" - }, - { ATF_POINTER, 2, offsetof(struct CNAV_ClockModel, cnavISCl5i5), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavISCl5i5_constr_15, memb_cnavISCl5i5_constraint_1 }, - 0, 0, /* No default value */ - "cnavISCl5i5" - }, - { ATF_POINTER, 1, offsetof(struct CNAV_ClockModel, cnavISCl5q5), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavISCl5q5_constr_16, memb_cnavISCl5q5_constraint_1 }, - 0, 0, /* No default value */ - "cnavISCl5q5" - }, -}; -static const int asn_MAP_CNAV_ClockModel_oms_1[] = { 9, 10, 11, 12, 13, 14 }; -static const ber_tlv_tag_t asn_DEF_CNAV_ClockModel_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CNAV_ClockModel_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cnavToc */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cnavTop */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cnavURA0 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* cnavURA1 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* cnavURA2 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* cnavAf2 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* cnavAf1 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* cnavAf0 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* cnavTgd */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* cnavISCl1cp */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* cnavISCl1cd */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* cnavISCl1ca */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* cnavISCl2c */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* cnavISCl5i5 */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 } /* cnavISCl5q5 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CNAV_ClockModel_specs_1 = { - sizeof(struct CNAV_ClockModel), - offsetof(struct CNAV_ClockModel, _asn_ctx), - asn_MAP_CNAV_ClockModel_tag2el_1, - 15, /* Count of tags in the map */ - asn_MAP_CNAV_ClockModel_oms_1, /* Optional members */ - 6, 0, /* Root/Additions */ - 15, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_CNAV_ClockModel = { - "CNAV-ClockModel", - "CNAV-ClockModel", - &asn_OP_SEQUENCE, - asn_DEF_CNAV_ClockModel_tags_1, - sizeof(asn_DEF_CNAV_ClockModel_tags_1) - /sizeof(asn_DEF_CNAV_ClockModel_tags_1[0]), /* 1 */ - asn_DEF_CNAV_ClockModel_tags_1, /* Same as above */ - sizeof(asn_DEF_CNAV_ClockModel_tags_1) - /sizeof(asn_DEF_CNAV_ClockModel_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_CNAV_ClockModel_1, - 15, /* Elements count */ - &asn_SPC_CNAV_ClockModel_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CNAV-ClockModel.h b/asn.1/generated/CNAV-ClockModel.h deleted file mode 100644 index d2bef1d3..00000000 --- a/asn.1/generated/CNAV-ClockModel.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _CNAV_ClockModel_H_ -#define _CNAV_ClockModel_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* CNAV-ClockModel */ -typedef struct CNAV_ClockModel { - long cnavToc; - long cnavTop; - long cnavURA0; - long cnavURA1; - long cnavURA2; - long cnavAf2; - long cnavAf1; - long cnavAf0; - long cnavTgd; - long *cnavISCl1cp /* OPTIONAL */; - long *cnavISCl1cd /* OPTIONAL */; - long *cnavISCl1ca /* OPTIONAL */; - long *cnavISCl2c /* OPTIONAL */; - long *cnavISCl5i5 /* OPTIONAL */; - long *cnavISCl5q5 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} CNAV_ClockModel_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CNAV_ClockModel; -extern asn_SEQUENCE_specifics_t asn_SPC_CNAV_ClockModel_specs_1; -extern asn_TYPE_member_t asn_MBR_CNAV_ClockModel_1[15]; - -#ifdef __cplusplus -} -#endif - -#endif /* _CNAV_ClockModel_H_ */ -#include diff --git a/asn.1/generated/CPICH-Ec-N0.c b/asn.1/generated/CPICH-Ec-N0.c deleted file mode 100644 index 9fc4246e..00000000 --- a/asn.1/generated/CPICH-Ec-N0.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CPICH-Ec-N0.h" - -int -CPICH_Ec_N0_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_CPICH_Ec_N0_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_CPICH_Ec_N0_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_CPICH_Ec_N0 = { - "CPICH-Ec-N0", - "CPICH-Ec-N0", - &asn_OP_NativeInteger, - asn_DEF_CPICH_Ec_N0_tags_1, - sizeof(asn_DEF_CPICH_Ec_N0_tags_1) - /sizeof(asn_DEF_CPICH_Ec_N0_tags_1[0]), /* 1 */ - asn_DEF_CPICH_Ec_N0_tags_1, /* Same as above */ - sizeof(asn_DEF_CPICH_Ec_N0_tags_1) - /sizeof(asn_DEF_CPICH_Ec_N0_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_CPICH_Ec_N0_constr_1, CPICH_Ec_N0_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/CPICH-Ec-N0.h b/asn.1/generated/CPICH-Ec-N0.h deleted file mode 100644 index 990f4e9e..00000000 --- a/asn.1/generated/CPICH-Ec-N0.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _CPICH_Ec_N0_H_ -#define _CPICH_Ec_N0_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* CPICH-Ec-N0 */ -typedef long CPICH_Ec_N0_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_CPICH_Ec_N0_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_CPICH_Ec_N0; -asn_struct_free_f CPICH_Ec_N0_free; -asn_struct_print_f CPICH_Ec_N0_print; -asn_constr_check_f CPICH_Ec_N0_constraint; -ber_type_decoder_f CPICH_Ec_N0_decode_ber; -der_type_encoder_f CPICH_Ec_N0_encode_der; -xer_type_decoder_f CPICH_Ec_N0_decode_xer; -xer_type_encoder_f CPICH_Ec_N0_encode_xer; -per_type_decoder_f CPICH_Ec_N0_decode_uper; -per_type_encoder_f CPICH_Ec_N0_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _CPICH_Ec_N0_H_ */ -#include diff --git a/asn.1/generated/CPICH-RSCP.c b/asn.1/generated/CPICH-RSCP.c deleted file mode 100644 index 1577dd85..00000000 --- a/asn.1/generated/CPICH-RSCP.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CPICH-RSCP.h" - -int -CPICH_RSCP_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_CPICH_RSCP_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_CPICH_RSCP_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_CPICH_RSCP = { - "CPICH-RSCP", - "CPICH-RSCP", - &asn_OP_NativeInteger, - asn_DEF_CPICH_RSCP_tags_1, - sizeof(asn_DEF_CPICH_RSCP_tags_1) - /sizeof(asn_DEF_CPICH_RSCP_tags_1[0]), /* 1 */ - asn_DEF_CPICH_RSCP_tags_1, /* Same as above */ - sizeof(asn_DEF_CPICH_RSCP_tags_1) - /sizeof(asn_DEF_CPICH_RSCP_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_CPICH_RSCP_constr_1, CPICH_RSCP_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/CPICH-RSCP.h b/asn.1/generated/CPICH-RSCP.h deleted file mode 100644 index 8b92413b..00000000 --- a/asn.1/generated/CPICH-RSCP.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _CPICH_RSCP_H_ -#define _CPICH_RSCP_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* CPICH-RSCP */ -typedef long CPICH_RSCP_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_CPICH_RSCP_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_CPICH_RSCP; -asn_struct_free_f CPICH_RSCP_free; -asn_struct_print_f CPICH_RSCP_print; -asn_constr_check_f CPICH_RSCP_constraint; -ber_type_decoder_f CPICH_RSCP_decode_ber; -der_type_encoder_f CPICH_RSCP_encode_der; -xer_type_decoder_f CPICH_RSCP_decode_xer; -xer_type_encoder_f CPICH_RSCP_encode_xer; -per_type_decoder_f CPICH_RSCP_decode_uper; -per_type_encoder_f CPICH_RSCP_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _CPICH_RSCP_H_ */ -#include diff --git a/asn.1/generated/CarrierFreq-NB-r14.c b/asn.1/generated/CarrierFreq-NB-r14.c deleted file mode 100644 index 00e88b9d..00000000 --- a/asn.1/generated/CarrierFreq-NB-r14.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CarrierFreq-NB-r14.h" - -asn_TYPE_member_t asn_MBR_CarrierFreq_NB_r14_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CarrierFreq_NB_r14, carrierFreq_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueEUTRA_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "carrierFreq-r14" - }, - { ATF_POINTER, 1, offsetof(struct CarrierFreq_NB_r14, carrierFreqOffset_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CarrierFreqOffsetNB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "carrierFreqOffset-r14" - }, -}; -static const int asn_MAP_CarrierFreq_NB_r14_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_CarrierFreq_NB_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CarrierFreq_NB_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* carrierFreq-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* carrierFreqOffset-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CarrierFreq_NB_r14_specs_1 = { - sizeof(struct CarrierFreq_NB_r14), - offsetof(struct CarrierFreq_NB_r14, _asn_ctx), - asn_MAP_CarrierFreq_NB_r14_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_CarrierFreq_NB_r14_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_CarrierFreq_NB_r14 = { - "CarrierFreq-NB-r14", - "CarrierFreq-NB-r14", - &asn_OP_SEQUENCE, - asn_DEF_CarrierFreq_NB_r14_tags_1, - sizeof(asn_DEF_CarrierFreq_NB_r14_tags_1) - /sizeof(asn_DEF_CarrierFreq_NB_r14_tags_1[0]), /* 1 */ - asn_DEF_CarrierFreq_NB_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_CarrierFreq_NB_r14_tags_1) - /sizeof(asn_DEF_CarrierFreq_NB_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_CarrierFreq_NB_r14_1, - 2, /* Elements count */ - &asn_SPC_CarrierFreq_NB_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CauseCode.c b/asn.1/generated/CauseCode.c deleted file mode 100644 index 403efe94..00000000 --- a/asn.1/generated/CauseCode.c +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CauseCode.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_CauseCode_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_CauseCode_value2enum_1[] = { - { 0, 29, "servingNetWorkNotInAreaIdList" }, - { 1, 22, "sETCapabilitiesChanged" }, - { 2, 14, "noSUPLCoverage" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_CauseCode_enum2value_1[] = { - 2, /* noSUPLCoverage(2) */ - 1, /* sETCapabilitiesChanged(1) */ - 0 /* servingNetWorkNotInAreaIdList(0) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_CauseCode_specs_1 = { - asn_MAP_CauseCode_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_CauseCode_enum2value_1, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 4, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_CauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_CauseCode = { - "CauseCode", - "CauseCode", - &asn_OP_NativeEnumerated, - asn_DEF_CauseCode_tags_1, - sizeof(asn_DEF_CauseCode_tags_1) - /sizeof(asn_DEF_CauseCode_tags_1[0]), /* 1 */ - asn_DEF_CauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_CauseCode_tags_1) - /sizeof(asn_DEF_CauseCode_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_CauseCode_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_CauseCode_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CdmaCellInformation.c b/asn.1/generated/CdmaCellInformation.c deleted file mode 100644 index 54ea7d2f..00000000 --- a/asn.1/generated/CdmaCellInformation.c +++ /dev/null @@ -1,360 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CdmaCellInformation.h" - -static int -memb_refNID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refSID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refBASEID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refBASELAT_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4194303)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_reBASELONG_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refREFPN_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refWeekNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refSeconds_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4194303)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_refNID_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refSID_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refBASEID_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refBASELAT_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, 0, 4194303 } /* (0..4194303) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_reBASELONG_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refREFPN_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refWeekNumber_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refSeconds_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, 0, 4194303 } /* (0..4194303) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_CdmaCellInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CdmaCellInformation, refNID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refNID_constr_2, memb_refNID_constraint_1 }, - 0, 0, /* No default value */ - "refNID" - }, - { ATF_NOFLAGS, 0, offsetof(struct CdmaCellInformation, refSID), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refSID_constr_3, memb_refSID_constraint_1 }, - 0, 0, /* No default value */ - "refSID" - }, - { ATF_NOFLAGS, 0, offsetof(struct CdmaCellInformation, refBASEID), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refBASEID_constr_4, memb_refBASEID_constraint_1 }, - 0, 0, /* No default value */ - "refBASEID" - }, - { ATF_NOFLAGS, 0, offsetof(struct CdmaCellInformation, refBASELAT), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refBASELAT_constr_5, memb_refBASELAT_constraint_1 }, - 0, 0, /* No default value */ - "refBASELAT" - }, - { ATF_NOFLAGS, 0, offsetof(struct CdmaCellInformation, reBASELONG), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_reBASELONG_constr_6, memb_reBASELONG_constraint_1 }, - 0, 0, /* No default value */ - "reBASELONG" - }, - { ATF_NOFLAGS, 0, offsetof(struct CdmaCellInformation, refREFPN), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refREFPN_constr_7, memb_refREFPN_constraint_1 }, - 0, 0, /* No default value */ - "refREFPN" - }, - { ATF_NOFLAGS, 0, offsetof(struct CdmaCellInformation, refWeekNumber), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refWeekNumber_constr_8, memb_refWeekNumber_constraint_1 }, - 0, 0, /* No default value */ - "refWeekNumber" - }, - { ATF_NOFLAGS, 0, offsetof(struct CdmaCellInformation, refSeconds), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refSeconds_constr_9, memb_refSeconds_constraint_1 }, - 0, 0, /* No default value */ - "refSeconds" - }, -}; -static const ber_tlv_tag_t asn_DEF_CdmaCellInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CdmaCellInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refNID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refSID */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* refBASEID */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* refBASELAT */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* reBASELONG */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* refREFPN */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* refWeekNumber */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* refSeconds */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CdmaCellInformation_specs_1 = { - sizeof(struct CdmaCellInformation), - offsetof(struct CdmaCellInformation, _asn_ctx), - asn_MAP_CdmaCellInformation_tag2el_1, - 8, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 8, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_CdmaCellInformation = { - "CdmaCellInformation", - "CdmaCellInformation", - &asn_OP_SEQUENCE, - asn_DEF_CdmaCellInformation_tags_1, - sizeof(asn_DEF_CdmaCellInformation_tags_1) - /sizeof(asn_DEF_CdmaCellInformation_tags_1[0]), /* 1 */ - asn_DEF_CdmaCellInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_CdmaCellInformation_tags_1) - /sizeof(asn_DEF_CdmaCellInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_CdmaCellInformation_1, - 8, /* Elements count */ - &asn_SPC_CdmaCellInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CellGlobalIdEUTRA-AndUTRA.c b/asn.1/generated/CellGlobalIdEUTRA-AndUTRA.c deleted file mode 100644 index 38f137f0..00000000 --- a/asn.1/generated/CellGlobalIdEUTRA-AndUTRA.c +++ /dev/null @@ -1,445 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CellGlobalIdEUTRA-AndUTRA.h" - -static int -memb_NativeInteger_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 9)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_NativeInteger_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 9)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_mcc_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size == 3)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_mnc_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 2 && size <= 3)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_eutra_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 28)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utra_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 32)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_Member_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_mcc_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_Member_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_mnc_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_mcc_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_mnc_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_eutra_constr_8 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 28, 28 } /* (SIZE(28..28)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utra_constr_9 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 32, 32 } /* (SIZE(32..32)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_cellIdentity_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_mcc_3[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_Member_constr_4, memb_NativeInteger_constraint_3 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_mcc_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_mcc_specs_3 = { - sizeof(struct CellGlobalIdEUTRA_AndUTRA__plmn_Identity__mcc), - offsetof(struct CellGlobalIdEUTRA_AndUTRA__plmn_Identity__mcc, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_mcc_3 = { - "mcc", - "mcc", - &asn_OP_SEQUENCE_OF, - asn_DEF_mcc_tags_3, - sizeof(asn_DEF_mcc_tags_3) - /sizeof(asn_DEF_mcc_tags_3[0]) - 1, /* 1 */ - asn_DEF_mcc_tags_3, /* Same as above */ - sizeof(asn_DEF_mcc_tags_3) - /sizeof(asn_DEF_mcc_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_mcc_constr_3, SEQUENCE_OF_constraint }, - asn_MBR_mcc_3, - 1, /* Single element */ - &asn_SPC_mcc_specs_3 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_mnc_5[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_Member_constr_6, memb_NativeInteger_constraint_5 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_mnc_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_mnc_specs_5 = { - sizeof(struct CellGlobalIdEUTRA_AndUTRA__plmn_Identity__mnc), - offsetof(struct CellGlobalIdEUTRA_AndUTRA__plmn_Identity__mnc, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_mnc_5 = { - "mnc", - "mnc", - &asn_OP_SEQUENCE_OF, - asn_DEF_mnc_tags_5, - sizeof(asn_DEF_mnc_tags_5) - /sizeof(asn_DEF_mnc_tags_5[0]) - 1, /* 1 */ - asn_DEF_mnc_tags_5, /* Same as above */ - sizeof(asn_DEF_mnc_tags_5) - /sizeof(asn_DEF_mnc_tags_5[0]), /* 2 */ - { 0, &asn_PER_type_mnc_constr_5, SEQUENCE_OF_constraint }, - asn_MBR_mnc_5, - 1, /* Single element */ - &asn_SPC_mnc_specs_5 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_plmn_Identity_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdEUTRA_AndUTRA__plmn_Identity, mcc), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_mcc_3, - 0, - { 0, &asn_PER_memb_mcc_constr_3, memb_mcc_constraint_2 }, - 0, 0, /* No default value */ - "mcc" - }, - { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdEUTRA_AndUTRA__plmn_Identity, mnc), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_mnc_5, - 0, - { 0, &asn_PER_memb_mnc_constr_5, memb_mnc_constraint_2 }, - 0, 0, /* No default value */ - "mnc" - }, -}; -static const ber_tlv_tag_t asn_DEF_plmn_Identity_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_plmn_Identity_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mcc */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* mnc */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_plmn_Identity_specs_2 = { - sizeof(struct CellGlobalIdEUTRA_AndUTRA__plmn_Identity), - offsetof(struct CellGlobalIdEUTRA_AndUTRA__plmn_Identity, _asn_ctx), - asn_MAP_plmn_Identity_tag2el_2, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_plmn_Identity_2 = { - "plmn-Identity", - "plmn-Identity", - &asn_OP_SEQUENCE, - asn_DEF_plmn_Identity_tags_2, - sizeof(asn_DEF_plmn_Identity_tags_2) - /sizeof(asn_DEF_plmn_Identity_tags_2[0]) - 1, /* 1 */ - asn_DEF_plmn_Identity_tags_2, /* Same as above */ - sizeof(asn_DEF_plmn_Identity_tags_2) - /sizeof(asn_DEF_plmn_Identity_tags_2[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_plmn_Identity_2, - 2, /* Elements count */ - &asn_SPC_plmn_Identity_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_cellIdentity_7[] = { - { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdEUTRA_AndUTRA__cellIdentity, choice.eutra), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_eutra_constr_8, memb_eutra_constraint_7 }, - 0, 0, /* No default value */ - "eutra" - }, - { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdEUTRA_AndUTRA__cellIdentity, choice.utra), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_utra_constr_9, memb_utra_constraint_7 }, - 0, 0, /* No default value */ - "utra" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_cellIdentity_tag2el_7[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eutra */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* utra */ -}; -static asn_CHOICE_specifics_t asn_SPC_cellIdentity_specs_7 = { - sizeof(struct CellGlobalIdEUTRA_AndUTRA__cellIdentity), - offsetof(struct CellGlobalIdEUTRA_AndUTRA__cellIdentity, _asn_ctx), - offsetof(struct CellGlobalIdEUTRA_AndUTRA__cellIdentity, present), - sizeof(((struct CellGlobalIdEUTRA_AndUTRA__cellIdentity *)0)->present), - asn_MAP_cellIdentity_tag2el_7, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cellIdentity_7 = { - "cellIdentity", - "cellIdentity", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_cellIdentity_constr_7, CHOICE_constraint }, - asn_MBR_cellIdentity_7, - 2, /* Elements count */ - &asn_SPC_cellIdentity_specs_7 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_CellGlobalIdEUTRA_AndUTRA_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdEUTRA_AndUTRA, plmn_Identity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_plmn_Identity_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "plmn-Identity" - }, - { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdEUTRA_AndUTRA, cellIdentity), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_cellIdentity_7, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellIdentity" - }, -}; -static const ber_tlv_tag_t asn_DEF_CellGlobalIdEUTRA_AndUTRA_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CellGlobalIdEUTRA_AndUTRA_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* plmn-Identity */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cellIdentity */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CellGlobalIdEUTRA_AndUTRA_specs_1 = { - sizeof(struct CellGlobalIdEUTRA_AndUTRA), - offsetof(struct CellGlobalIdEUTRA_AndUTRA, _asn_ctx), - asn_MAP_CellGlobalIdEUTRA_AndUTRA_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_CellGlobalIdEUTRA_AndUTRA = { - "CellGlobalIdEUTRA-AndUTRA", - "CellGlobalIdEUTRA-AndUTRA", - &asn_OP_SEQUENCE, - asn_DEF_CellGlobalIdEUTRA_AndUTRA_tags_1, - sizeof(asn_DEF_CellGlobalIdEUTRA_AndUTRA_tags_1) - /sizeof(asn_DEF_CellGlobalIdEUTRA_AndUTRA_tags_1[0]), /* 1 */ - asn_DEF_CellGlobalIdEUTRA_AndUTRA_tags_1, /* Same as above */ - sizeof(asn_DEF_CellGlobalIdEUTRA_AndUTRA_tags_1) - /sizeof(asn_DEF_CellGlobalIdEUTRA_AndUTRA_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_CellGlobalIdEUTRA_AndUTRA_1, - 2, /* Elements count */ - &asn_SPC_CellGlobalIdEUTRA_AndUTRA_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CellGlobalIdEUTRA.c b/asn.1/generated/CellGlobalIdEUTRA.c deleted file mode 100644 index 62b6b37f..00000000 --- a/asn.1/generated/CellGlobalIdEUTRA.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CellGlobalIdEUTRA.h" - -asn_TYPE_member_t asn_MBR_CellGlobalIdEUTRA_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdEUTRA, plmn_Identity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PLMN_Identity, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "plmn-Identity" - }, - { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdEUTRA, cellIdentity), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CellIdentity, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellIdentity" - }, -}; -static const ber_tlv_tag_t asn_DEF_CellGlobalIdEUTRA_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CellGlobalIdEUTRA_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* plmn-Identity */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cellIdentity */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CellGlobalIdEUTRA_specs_1 = { - sizeof(struct CellGlobalIdEUTRA), - offsetof(struct CellGlobalIdEUTRA, _asn_ctx), - asn_MAP_CellGlobalIdEUTRA_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_CellGlobalIdEUTRA = { - "CellGlobalIdEUTRA", - "CellGlobalIdEUTRA", - &asn_OP_SEQUENCE, - asn_DEF_CellGlobalIdEUTRA_tags_1, - sizeof(asn_DEF_CellGlobalIdEUTRA_tags_1) - /sizeof(asn_DEF_CellGlobalIdEUTRA_tags_1[0]), /* 1 */ - asn_DEF_CellGlobalIdEUTRA_tags_1, /* Same as above */ - sizeof(asn_DEF_CellGlobalIdEUTRA_tags_1) - /sizeof(asn_DEF_CellGlobalIdEUTRA_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_CellGlobalIdEUTRA_1, - 2, /* Elements count */ - &asn_SPC_CellGlobalIdEUTRA_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CellGlobalIdGERAN.c b/asn.1/generated/CellGlobalIdGERAN.c deleted file mode 100644 index 556cfd21..00000000 --- a/asn.1/generated/CellGlobalIdGERAN.c +++ /dev/null @@ -1,401 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CellGlobalIdGERAN.h" - -static int -memb_NativeInteger_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 9)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_NativeInteger_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 9)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_mcc_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size == 3)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_mnc_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 2 && size <= 3)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_locationAreaCode_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 16)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cellIdentity_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 16)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_Member_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_mcc_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_Member_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_mnc_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_mcc_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_mnc_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_locationAreaCode_constr_7 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cellIdentity_constr_8 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_mcc_3[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_Member_constr_4, memb_NativeInteger_constraint_3 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_mcc_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_mcc_specs_3 = { - sizeof(struct CellGlobalIdGERAN__plmn_Identity__mcc), - offsetof(struct CellGlobalIdGERAN__plmn_Identity__mcc, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_mcc_3 = { - "mcc", - "mcc", - &asn_OP_SEQUENCE_OF, - asn_DEF_mcc_tags_3, - sizeof(asn_DEF_mcc_tags_3) - /sizeof(asn_DEF_mcc_tags_3[0]) - 1, /* 1 */ - asn_DEF_mcc_tags_3, /* Same as above */ - sizeof(asn_DEF_mcc_tags_3) - /sizeof(asn_DEF_mcc_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_mcc_constr_3, SEQUENCE_OF_constraint }, - asn_MBR_mcc_3, - 1, /* Single element */ - &asn_SPC_mcc_specs_3 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_mnc_5[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_Member_constr_6, memb_NativeInteger_constraint_5 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_mnc_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_mnc_specs_5 = { - sizeof(struct CellGlobalIdGERAN__plmn_Identity__mnc), - offsetof(struct CellGlobalIdGERAN__plmn_Identity__mnc, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_mnc_5 = { - "mnc", - "mnc", - &asn_OP_SEQUENCE_OF, - asn_DEF_mnc_tags_5, - sizeof(asn_DEF_mnc_tags_5) - /sizeof(asn_DEF_mnc_tags_5[0]) - 1, /* 1 */ - asn_DEF_mnc_tags_5, /* Same as above */ - sizeof(asn_DEF_mnc_tags_5) - /sizeof(asn_DEF_mnc_tags_5[0]), /* 2 */ - { 0, &asn_PER_type_mnc_constr_5, SEQUENCE_OF_constraint }, - asn_MBR_mnc_5, - 1, /* Single element */ - &asn_SPC_mnc_specs_5 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_plmn_Identity_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdGERAN__plmn_Identity, mcc), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_mcc_3, - 0, - { 0, &asn_PER_memb_mcc_constr_3, memb_mcc_constraint_2 }, - 0, 0, /* No default value */ - "mcc" - }, - { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdGERAN__plmn_Identity, mnc), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_mnc_5, - 0, - { 0, &asn_PER_memb_mnc_constr_5, memb_mnc_constraint_2 }, - 0, 0, /* No default value */ - "mnc" - }, -}; -static const ber_tlv_tag_t asn_DEF_plmn_Identity_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_plmn_Identity_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mcc */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* mnc */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_plmn_Identity_specs_2 = { - sizeof(struct CellGlobalIdGERAN__plmn_Identity), - offsetof(struct CellGlobalIdGERAN__plmn_Identity, _asn_ctx), - asn_MAP_plmn_Identity_tag2el_2, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_plmn_Identity_2 = { - "plmn-Identity", - "plmn-Identity", - &asn_OP_SEQUENCE, - asn_DEF_plmn_Identity_tags_2, - sizeof(asn_DEF_plmn_Identity_tags_2) - /sizeof(asn_DEF_plmn_Identity_tags_2[0]) - 1, /* 1 */ - asn_DEF_plmn_Identity_tags_2, /* Same as above */ - sizeof(asn_DEF_plmn_Identity_tags_2) - /sizeof(asn_DEF_plmn_Identity_tags_2[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_plmn_Identity_2, - 2, /* Elements count */ - &asn_SPC_plmn_Identity_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_CellGlobalIdGERAN_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdGERAN, plmn_Identity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_plmn_Identity_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "plmn-Identity" - }, - { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdGERAN, locationAreaCode), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_locationAreaCode_constr_7, memb_locationAreaCode_constraint_1 }, - 0, 0, /* No default value */ - "locationAreaCode" - }, - { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdGERAN, cellIdentity), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_cellIdentity_constr_8, memb_cellIdentity_constraint_1 }, - 0, 0, /* No default value */ - "cellIdentity" - }, -}; -static const ber_tlv_tag_t asn_DEF_CellGlobalIdGERAN_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CellGlobalIdGERAN_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* plmn-Identity */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* locationAreaCode */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* cellIdentity */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CellGlobalIdGERAN_specs_1 = { - sizeof(struct CellGlobalIdGERAN), - offsetof(struct CellGlobalIdGERAN, _asn_ctx), - asn_MAP_CellGlobalIdGERAN_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_CellGlobalIdGERAN = { - "CellGlobalIdGERAN", - "CellGlobalIdGERAN", - &asn_OP_SEQUENCE, - asn_DEF_CellGlobalIdGERAN_tags_1, - sizeof(asn_DEF_CellGlobalIdGERAN_tags_1) - /sizeof(asn_DEF_CellGlobalIdGERAN_tags_1[0]), /* 1 */ - asn_DEF_CellGlobalIdGERAN_tags_1, /* Same as above */ - sizeof(asn_DEF_CellGlobalIdGERAN_tags_1) - /sizeof(asn_DEF_CellGlobalIdGERAN_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_CellGlobalIdGERAN_1, - 3, /* Elements count */ - &asn_SPC_CellGlobalIdGERAN_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CellIdentity.c b/asn.1/generated/CellIdentity.c deleted file mode 100644 index 7ef5cbdc..00000000 --- a/asn.1/generated/CellIdentity.c +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CellIdentity.h" - -int -CellIdentity_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 28)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using BIT_STRING, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_CellIdentity_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 28, 28 } /* (SIZE(28..28)) */, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_CellIdentity_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_CellIdentity = { - "CellIdentity", - "CellIdentity", - &asn_OP_BIT_STRING, - asn_DEF_CellIdentity_tags_1, - sizeof(asn_DEF_CellIdentity_tags_1) - /sizeof(asn_DEF_CellIdentity_tags_1[0]), /* 1 */ - asn_DEF_CellIdentity_tags_1, /* Same as above */ - sizeof(asn_DEF_CellIdentity_tags_1) - /sizeof(asn_DEF_CellIdentity_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_CellIdentity_constr_1, CellIdentity_constraint }, - 0, 0, /* No members */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/asn.1/generated/CellIdentity.h b/asn.1/generated/CellIdentity.h deleted file mode 100644 index 67c73e2a..00000000 --- a/asn.1/generated/CellIdentity.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _CellIdentity_H_ -#define _CellIdentity_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* CellIdentity */ -typedef BIT_STRING_t CellIdentity_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_CellIdentity_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_CellIdentity; -asn_struct_free_f CellIdentity_free; -asn_struct_print_f CellIdentity_print; -asn_constr_check_f CellIdentity_constraint; -ber_type_decoder_f CellIdentity_decode_ber; -der_type_encoder_f CellIdentity_encode_der; -xer_type_decoder_f CellIdentity_decode_xer; -xer_type_encoder_f CellIdentity_encode_xer; -per_type_decoder_f CellIdentity_decode_uper; -per_type_encoder_f CellIdentity_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _CellIdentity_H_ */ -#include diff --git a/asn.1/generated/CellInfo.c b/asn.1/generated/CellInfo.c deleted file mode 100644 index 5126f6da..00000000 --- a/asn.1/generated/CellInfo.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CellInfo.h" - -asn_per_constraints_t asn_PER_type_CellInfo_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_CellInfo_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CellInfo, choice.gsmCell), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GsmCellInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gsmCell" - }, - { ATF_NOFLAGS, 0, offsetof(struct CellInfo, choice.wcdmaCell), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WcdmaCellInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wcdmaCell" - }, - { ATF_NOFLAGS, 0, offsetof(struct CellInfo, choice.cdmaCell), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CdmaCellInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cdmaCell" - }, - { ATF_NOFLAGS, 0, offsetof(struct CellInfo, choice.ver2_CellInfo_extension), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_Ver2_CellInfo_extension, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ver2-CellInfo-extension" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_CellInfo_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gsmCell */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* wcdmaCell */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cdmaCell */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ver2-CellInfo-extension */ -}; -asn_CHOICE_specifics_t asn_SPC_CellInfo_specs_1 = { - sizeof(struct CellInfo), - offsetof(struct CellInfo, _asn_ctx), - offsetof(struct CellInfo, present), - sizeof(((struct CellInfo *)0)->present), - asn_MAP_CellInfo_tag2el_1, - 4, /* Count of tags in the map */ - 0, 0, - 3 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_CellInfo = { - "CellInfo", - "CellInfo", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_CellInfo_constr_1, CHOICE_constraint }, - asn_MBR_CellInfo_1, - 4, /* Elements count */ - &asn_SPC_CellInfo_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CellMeasuredResults.c b/asn.1/generated/CellMeasuredResults.c deleted file mode 100644 index c1076ea9..00000000 --- a/asn.1/generated/CellMeasuredResults.c +++ /dev/null @@ -1,306 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CellMeasuredResults.h" - -static int -memb_cellIdentity_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 268435455)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_modeSpecificInfo_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cellIdentity_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 28, -1, 0, 268435455 } /* (0..268435455) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_fdd_4[] = { - { ATF_NOFLAGS, 0, offsetof(struct CellMeasuredResults__modeSpecificInfo__fdd, primaryCPICH_Info), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PrimaryCPICH_Info, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "primaryCPICH-Info" - }, - { ATF_POINTER, 3, offsetof(struct CellMeasuredResults__modeSpecificInfo__fdd, cpich_Ec_N0), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CPICH_Ec_N0, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cpich-Ec-N0" - }, - { ATF_POINTER, 2, offsetof(struct CellMeasuredResults__modeSpecificInfo__fdd, cpich_RSCP), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CPICH_RSCP, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cpich-RSCP" - }, - { ATF_POINTER, 1, offsetof(struct CellMeasuredResults__modeSpecificInfo__fdd, pathloss), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Pathloss, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "pathloss" - }, -}; -static const int asn_MAP_fdd_oms_4[] = { 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_fdd_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_fdd_tag2el_4[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* primaryCPICH-Info */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cpich-Ec-N0 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cpich-RSCP */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* pathloss */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_fdd_specs_4 = { - sizeof(struct CellMeasuredResults__modeSpecificInfo__fdd), - offsetof(struct CellMeasuredResults__modeSpecificInfo__fdd, _asn_ctx), - asn_MAP_fdd_tag2el_4, - 4, /* Count of tags in the map */ - asn_MAP_fdd_oms_4, /* Optional members */ - 3, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_fdd_4 = { - "fdd", - "fdd", - &asn_OP_SEQUENCE, - asn_DEF_fdd_tags_4, - sizeof(asn_DEF_fdd_tags_4) - /sizeof(asn_DEF_fdd_tags_4[0]) - 1, /* 1 */ - asn_DEF_fdd_tags_4, /* Same as above */ - sizeof(asn_DEF_fdd_tags_4) - /sizeof(asn_DEF_fdd_tags_4[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_fdd_4, - 4, /* Elements count */ - &asn_SPC_fdd_specs_4 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_tdd_9[] = { - { ATF_NOFLAGS, 0, offsetof(struct CellMeasuredResults__modeSpecificInfo__tdd, cellParametersID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CellParametersID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellParametersID" - }, - { ATF_POINTER, 4, offsetof(struct CellMeasuredResults__modeSpecificInfo__tdd, proposedTGSN), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TGSN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "proposedTGSN" - }, - { ATF_POINTER, 3, offsetof(struct CellMeasuredResults__modeSpecificInfo__tdd, primaryCCPCH_RSCP), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PrimaryCCPCH_RSCP, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "primaryCCPCH-RSCP" - }, - { ATF_POINTER, 2, offsetof(struct CellMeasuredResults__modeSpecificInfo__tdd, pathloss), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Pathloss, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "pathloss" - }, - { ATF_POINTER, 1, offsetof(struct CellMeasuredResults__modeSpecificInfo__tdd, timeslotISCP_List), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TimeslotISCP_List, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "timeslotISCP-List" - }, -}; -static const int asn_MAP_tdd_oms_9[] = { 1, 2, 3, 4 }; -static const ber_tlv_tag_t asn_DEF_tdd_tags_9[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_tdd_tag2el_9[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellParametersID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* proposedTGSN */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* primaryCCPCH-RSCP */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* pathloss */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* timeslotISCP-List */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_tdd_specs_9 = { - sizeof(struct CellMeasuredResults__modeSpecificInfo__tdd), - offsetof(struct CellMeasuredResults__modeSpecificInfo__tdd, _asn_ctx), - asn_MAP_tdd_tag2el_9, - 5, /* Count of tags in the map */ - asn_MAP_tdd_oms_9, /* Optional members */ - 4, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_tdd_9 = { - "tdd", - "tdd", - &asn_OP_SEQUENCE, - asn_DEF_tdd_tags_9, - sizeof(asn_DEF_tdd_tags_9) - /sizeof(asn_DEF_tdd_tags_9[0]) - 1, /* 1 */ - asn_DEF_tdd_tags_9, /* Same as above */ - sizeof(asn_DEF_tdd_tags_9) - /sizeof(asn_DEF_tdd_tags_9[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_tdd_9, - 5, /* Elements count */ - &asn_SPC_tdd_specs_9 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_modeSpecificInfo_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct CellMeasuredResults__modeSpecificInfo, choice.fdd), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_fdd_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "fdd" - }, - { ATF_NOFLAGS, 0, offsetof(struct CellMeasuredResults__modeSpecificInfo, choice.tdd), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_tdd_9, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tdd" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_modeSpecificInfo_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */ -}; -static asn_CHOICE_specifics_t asn_SPC_modeSpecificInfo_specs_3 = { - sizeof(struct CellMeasuredResults__modeSpecificInfo), - offsetof(struct CellMeasuredResults__modeSpecificInfo, _asn_ctx), - offsetof(struct CellMeasuredResults__modeSpecificInfo, present), - sizeof(((struct CellMeasuredResults__modeSpecificInfo *)0)->present), - asn_MAP_modeSpecificInfo_tag2el_3, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_modeSpecificInfo_3 = { - "modeSpecificInfo", - "modeSpecificInfo", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_modeSpecificInfo_constr_3, CHOICE_constraint }, - asn_MBR_modeSpecificInfo_3, - 2, /* Elements count */ - &asn_SPC_modeSpecificInfo_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_CellMeasuredResults_1[] = { - { ATF_POINTER, 1, offsetof(struct CellMeasuredResults, cellIdentity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cellIdentity_constr_2, memb_cellIdentity_constraint_1 }, - 0, 0, /* No default value */ - "cellIdentity" - }, - { ATF_NOFLAGS, 0, offsetof(struct CellMeasuredResults, modeSpecificInfo), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_modeSpecificInfo_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "modeSpecificInfo" - }, -}; -static const int asn_MAP_CellMeasuredResults_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_CellMeasuredResults_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CellMeasuredResults_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellIdentity */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* modeSpecificInfo */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CellMeasuredResults_specs_1 = { - sizeof(struct CellMeasuredResults), - offsetof(struct CellMeasuredResults, _asn_ctx), - asn_MAP_CellMeasuredResults_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_CellMeasuredResults_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_CellMeasuredResults = { - "CellMeasuredResults", - "CellMeasuredResults", - &asn_OP_SEQUENCE, - asn_DEF_CellMeasuredResults_tags_1, - sizeof(asn_DEF_CellMeasuredResults_tags_1) - /sizeof(asn_DEF_CellMeasuredResults_tags_1[0]), /* 1 */ - asn_DEF_CellMeasuredResults_tags_1, /* Same as above */ - sizeof(asn_DEF_CellMeasuredResults_tags_1) - /sizeof(asn_DEF_CellMeasuredResults_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_CellMeasuredResults_1, - 2, /* Elements count */ - &asn_SPC_CellMeasuredResults_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CellMeasuredResultsList.c b/asn.1/generated/CellMeasuredResultsList.c deleted file mode 100644 index 82a5b88f..00000000 --- a/asn.1/generated/CellMeasuredResultsList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CellMeasuredResultsList.h" - -asn_per_constraints_t asn_PER_type_CellMeasuredResultsList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_CellMeasuredResultsList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_CellMeasuredResults, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_CellMeasuredResultsList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_CellMeasuredResultsList_specs_1 = { - sizeof(struct CellMeasuredResultsList), - offsetof(struct CellMeasuredResultsList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_CellMeasuredResultsList = { - "CellMeasuredResultsList", - "CellMeasuredResultsList", - &asn_OP_SEQUENCE_OF, - asn_DEF_CellMeasuredResultsList_tags_1, - sizeof(asn_DEF_CellMeasuredResultsList_tags_1) - /sizeof(asn_DEF_CellMeasuredResultsList_tags_1[0]), /* 1 */ - asn_DEF_CellMeasuredResultsList_tags_1, /* Same as above */ - sizeof(asn_DEF_CellMeasuredResultsList_tags_1) - /sizeof(asn_DEF_CellMeasuredResultsList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_CellMeasuredResultsList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_CellMeasuredResultsList_1, - 1, /* Single element */ - &asn_SPC_CellMeasuredResultsList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CellParametersID.c b/asn.1/generated/CellParametersID.c deleted file mode 100644 index 54e81c49..00000000 --- a/asn.1/generated/CellParametersID.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CellParametersID.h" - -int -CellParametersID_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_CellParametersID_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_CellParametersID_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_CellParametersID = { - "CellParametersID", - "CellParametersID", - &asn_OP_NativeInteger, - asn_DEF_CellParametersID_tags_1, - sizeof(asn_DEF_CellParametersID_tags_1) - /sizeof(asn_DEF_CellParametersID_tags_1[0]), /* 1 */ - asn_DEF_CellParametersID_tags_1, /* Same as above */ - sizeof(asn_DEF_CellParametersID_tags_1) - /sizeof(asn_DEF_CellParametersID_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_CellParametersID_constr_1, CellParametersID_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/CellParametersID.h b/asn.1/generated/CellParametersID.h deleted file mode 100644 index e1cda1b1..00000000 --- a/asn.1/generated/CellParametersID.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _CellParametersID_H_ -#define _CellParametersID_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* CellParametersID */ -typedef long CellParametersID_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_CellParametersID_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_CellParametersID; -asn_struct_free_f CellParametersID_free; -asn_struct_print_f CellParametersID_print; -asn_constr_check_f CellParametersID_constraint; -ber_type_decoder_f CellParametersID_decode_ber; -der_type_encoder_f CellParametersID_encode_der; -xer_type_decoder_f CellParametersID_decode_xer; -xer_type_encoder_f CellParametersID_encode_xer; -per_type_decoder_f CellParametersID_decode_uper; -per_type_encoder_f CellParametersID_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _CellParametersID_H_ */ -#include diff --git a/asn.1/generated/ChipRate.c b/asn.1/generated/ChipRate.c deleted file mode 100644 index f89d13c8..00000000 --- a/asn.1/generated/ChipRate.c +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ChipRate.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_ChipRate_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_ChipRate_value2enum_1[] = { - { 0, 6, "tdd128" }, - { 1, 6, "tdd384" }, - { 2, 6, "tdd768" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_ChipRate_enum2value_1[] = { - 0, /* tdd128(0) */ - 1, /* tdd384(1) */ - 2 /* tdd768(2) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_ChipRate_specs_1 = { - asn_MAP_ChipRate_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_ChipRate_enum2value_1, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 4, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_ChipRate_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_ChipRate = { - "ChipRate", - "ChipRate", - &asn_OP_NativeEnumerated, - asn_DEF_ChipRate_tags_1, - sizeof(asn_DEF_ChipRate_tags_1) - /sizeof(asn_DEF_ChipRate_tags_1[0]), /* 1 */ - asn_DEF_ChipRate_tags_1, /* Same as above */ - sizeof(asn_DEF_ChipRate_tags_1) - /sizeof(asn_DEF_ChipRate_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_ChipRate_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_ChipRate_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CircularArea.c b/asn.1/generated/CircularArea.c deleted file mode 100644 index 47338ef3..00000000 --- a/asn.1/generated/CircularArea.c +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CircularArea.h" - -static int -memb_radius_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 1000000)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_radius_min_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 1000000)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_radius_max_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 1500000)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_radius_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 20, -1, 1, 1000000 } /* (1..1000000) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_radius_min_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 20, -1, 1, 1000000 } /* (1..1000000) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_radius_max_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, 1, 1500000 } /* (1..1500000) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_CircularArea_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CircularArea, coordinate), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Coordinate, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "coordinate" - }, - { ATF_NOFLAGS, 0, offsetof(struct CircularArea, radius), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_radius_constr_3, memb_radius_constraint_1 }, - 0, 0, /* No default value */ - "radius" - }, - { ATF_POINTER, 2, offsetof(struct CircularArea, radius_min), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_radius_min_constr_4, memb_radius_min_constraint_1 }, - 0, 0, /* No default value */ - "radius-min" - }, - { ATF_POINTER, 1, offsetof(struct CircularArea, radius_max), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_radius_max_constr_5, memb_radius_max_constraint_1 }, - 0, 0, /* No default value */ - "radius-max" - }, -}; -static const int asn_MAP_CircularArea_oms_1[] = { 2, 3 }; -static const ber_tlv_tag_t asn_DEF_CircularArea_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CircularArea_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* coordinate */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* radius */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* radius-min */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* radius-max */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CircularArea_specs_1 = { - sizeof(struct CircularArea), - offsetof(struct CircularArea, _asn_ctx), - asn_MAP_CircularArea_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_CircularArea_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_CircularArea = { - "CircularArea", - "CircularArea", - &asn_OP_SEQUENCE, - asn_DEF_CircularArea_tags_1, - sizeof(asn_DEF_CircularArea_tags_1) - /sizeof(asn_DEF_CircularArea_tags_1[0]), /* 1 */ - asn_DEF_CircularArea_tags_1, /* Same as above */ - sizeof(asn_DEF_CircularArea_tags_1) - /sizeof(asn_DEF_CircularArea_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_CircularArea_1, - 4, /* Elements count */ - &asn_SPC_CircularArea_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CircularArea.h b/asn.1/generated/CircularArea.h deleted file mode 100644 index 82706ddc..00000000 --- a/asn.1/generated/CircularArea.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _CircularArea_H_ -#define _CircularArea_H_ - - -#include - -/* Including external dependencies */ -#include "Coordinate.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* CircularArea */ -typedef struct CircularArea { - Coordinate_t coordinate; - long radius; - long *radius_min /* OPTIONAL */; - long *radius_max /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} CircularArea_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CircularArea; -extern asn_SEQUENCE_specifics_t asn_SPC_CircularArea_specs_1; -extern asn_TYPE_member_t asn_MBR_CircularArea_1[4]; - -#ifdef __cplusplus -} -#endif - -#endif /* _CircularArea_H_ */ -#include diff --git a/asn.1/generated/CommonIEsAbort.c b/asn.1/generated/CommonIEsAbort.c deleted file mode 100644 index d24a6d2b..00000000 --- a/asn.1/generated/CommonIEsAbort.c +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CommonIEsAbort.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_abortCause_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_abortCause_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 21, "stopPeriodicReporting" }, - { 2, 17, "targetDeviceAbort" }, - { 3, 12, "networkAbort" }, - { 4, 40, "stopPeriodicAssistanceDataDelivery-v1510" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_abortCause_enum2value_2[] = { - 3, /* networkAbort(3) */ - 4, /* stopPeriodicAssistanceDataDelivery-v1510(4) */ - 1, /* stopPeriodicReporting(1) */ - 2, /* targetDeviceAbort(2) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_abortCause_specs_2 = { - asn_MAP_abortCause_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_abortCause_enum2value_2, /* N => "tag"; sorted by N */ - 5, /* Number of elements in the maps */ - 5, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_abortCause_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_abortCause_2 = { - "abortCause", - "abortCause", - &asn_OP_NativeEnumerated, - asn_DEF_abortCause_tags_2, - sizeof(asn_DEF_abortCause_tags_2) - /sizeof(asn_DEF_abortCause_tags_2[0]) - 1, /* 1 */ - asn_DEF_abortCause_tags_2, /* Same as above */ - sizeof(asn_DEF_abortCause_tags_2) - /sizeof(asn_DEF_abortCause_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_abortCause_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_abortCause_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_CommonIEsAbort_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CommonIEsAbort, abortCause), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_abortCause_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "abortCause" - }, -}; -static const ber_tlv_tag_t asn_DEF_CommonIEsAbort_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CommonIEsAbort_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* abortCause */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CommonIEsAbort_specs_1 = { - sizeof(struct CommonIEsAbort), - offsetof(struct CommonIEsAbort, _asn_ctx), - asn_MAP_CommonIEsAbort_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_CommonIEsAbort = { - "CommonIEsAbort", - "CommonIEsAbort", - &asn_OP_SEQUENCE, - asn_DEF_CommonIEsAbort_tags_1, - sizeof(asn_DEF_CommonIEsAbort_tags_1) - /sizeof(asn_DEF_CommonIEsAbort_tags_1[0]), /* 1 */ - asn_DEF_CommonIEsAbort_tags_1, /* Same as above */ - sizeof(asn_DEF_CommonIEsAbort_tags_1) - /sizeof(asn_DEF_CommonIEsAbort_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_CommonIEsAbort_1, - 1, /* Elements count */ - &asn_SPC_CommonIEsAbort_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CommonIEsError.c b/asn.1/generated/CommonIEsError.c deleted file mode 100644 index 8d178807..00000000 --- a/asn.1/generated/CommonIEsError.c +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CommonIEsError.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_errorCause_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_errorCause_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 21, "lppMessageHeaderError" }, - { 2, 19, "lppMessageBodyError" }, - { 3, 9, "epduError" }, - { 4, 18, "incorrectDataValue" }, - { 5, 26, "lppSegmentationError-v1450" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_errorCause_enum2value_2[] = { - 3, /* epduError(3) */ - 4, /* incorrectDataValue(4) */ - 2, /* lppMessageBodyError(2) */ - 1, /* lppMessageHeaderError(1) */ - 5, /* lppSegmentationError-v1450(5) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_errorCause_specs_2 = { - asn_MAP_errorCause_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_errorCause_enum2value_2, /* N => "tag"; sorted by N */ - 6, /* Number of elements in the maps */ - 6, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_errorCause_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_errorCause_2 = { - "errorCause", - "errorCause", - &asn_OP_NativeEnumerated, - asn_DEF_errorCause_tags_2, - sizeof(asn_DEF_errorCause_tags_2) - /sizeof(asn_DEF_errorCause_tags_2[0]) - 1, /* 1 */ - asn_DEF_errorCause_tags_2, /* Same as above */ - sizeof(asn_DEF_errorCause_tags_2) - /sizeof(asn_DEF_errorCause_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_errorCause_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_errorCause_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_CommonIEsError_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CommonIEsError, errorCause), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_errorCause_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "errorCause" - }, -}; -static const ber_tlv_tag_t asn_DEF_CommonIEsError_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CommonIEsError_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* errorCause */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CommonIEsError_specs_1 = { - sizeof(struct CommonIEsError), - offsetof(struct CommonIEsError, _asn_ctx), - asn_MAP_CommonIEsError_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_CommonIEsError = { - "CommonIEsError", - "CommonIEsError", - &asn_OP_SEQUENCE, - asn_DEF_CommonIEsError_tags_1, - sizeof(asn_DEF_CommonIEsError_tags_1) - /sizeof(asn_DEF_CommonIEsError_tags_1[0]), /* 1 */ - asn_DEF_CommonIEsError_tags_1, /* Same as above */ - sizeof(asn_DEF_CommonIEsError_tags_1) - /sizeof(asn_DEF_CommonIEsError_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_CommonIEsError_1, - 1, /* Elements count */ - &asn_SPC_CommonIEsError_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CommonIEsProvideAssistanceData.c b/asn.1/generated/CommonIEsProvideAssistanceData.c deleted file mode 100644 index 6713e790..00000000 --- a/asn.1/generated/CommonIEsProvideAssistanceData.c +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CommonIEsProvideAssistanceData.h" - -static asn_TYPE_member_t asn_MBR_ext1_3[] = { - { ATF_POINTER, 1, offsetof(struct CommonIEsProvideAssistanceData__ext1, segmentationInfo_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SegmentationInfo_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "segmentationInfo-r14" - }, -}; -static const int asn_MAP_ext1_oms_3[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* segmentationInfo-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_3 = { - sizeof(struct CommonIEsProvideAssistanceData__ext1), - offsetof(struct CommonIEsProvideAssistanceData__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_3, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_3, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_3 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_3, - sizeof(asn_DEF_ext1_tags_3) - /sizeof(asn_DEF_ext1_tags_3[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_3, /* Same as above */ - sizeof(asn_DEF_ext1_tags_3) - /sizeof(asn_DEF_ext1_tags_3[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_3, - 1, /* Elements count */ - &asn_SPC_ext1_specs_3 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_5[] = { - { ATF_POINTER, 1, offsetof(struct CommonIEsProvideAssistanceData__ext2, periodicAssistanceData_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PeriodicAssistanceDataControlParameters_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "periodicAssistanceData-r15" - }, -}; -static const int asn_MAP_ext2_oms_5[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_5[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* periodicAssistanceData-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_5 = { - sizeof(struct CommonIEsProvideAssistanceData__ext2), - offsetof(struct CommonIEsProvideAssistanceData__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_5, - 1, /* Count of tags in the map */ - asn_MAP_ext2_oms_5, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_5 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_5, - sizeof(asn_DEF_ext2_tags_5) - /sizeof(asn_DEF_ext2_tags_5[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_5, /* Same as above */ - sizeof(asn_DEF_ext2_tags_5) - /sizeof(asn_DEF_ext2_tags_5[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_5, - 1, /* Elements count */ - &asn_SPC_ext2_specs_5 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_CommonIEsProvideAssistanceData_1[] = { - { ATF_POINTER, 2, offsetof(struct CommonIEsProvideAssistanceData, ext1), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_ext1_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct CommonIEsProvideAssistanceData, ext2), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_ext2_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_CommonIEsProvideAssistanceData_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_CommonIEsProvideAssistanceData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CommonIEsProvideAssistanceData_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CommonIEsProvideAssistanceData_specs_1 = { - sizeof(struct CommonIEsProvideAssistanceData), - offsetof(struct CommonIEsProvideAssistanceData, _asn_ctx), - asn_MAP_CommonIEsProvideAssistanceData_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_CommonIEsProvideAssistanceData_oms_1, /* Optional members */ - 0, 2, /* Root/Additions */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_CommonIEsProvideAssistanceData = { - "CommonIEsProvideAssistanceData", - "CommonIEsProvideAssistanceData", - &asn_OP_SEQUENCE, - asn_DEF_CommonIEsProvideAssistanceData_tags_1, - sizeof(asn_DEF_CommonIEsProvideAssistanceData_tags_1) - /sizeof(asn_DEF_CommonIEsProvideAssistanceData_tags_1[0]), /* 1 */ - asn_DEF_CommonIEsProvideAssistanceData_tags_1, /* Same as above */ - sizeof(asn_DEF_CommonIEsProvideAssistanceData_tags_1) - /sizeof(asn_DEF_CommonIEsProvideAssistanceData_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_CommonIEsProvideAssistanceData_1, - 2, /* Elements count */ - &asn_SPC_CommonIEsProvideAssistanceData_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CommonIEsProvideCapabilities.c b/asn.1/generated/CommonIEsProvideCapabilities.c deleted file mode 100644 index e8184e78..00000000 --- a/asn.1/generated/CommonIEsProvideCapabilities.c +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CommonIEsProvideCapabilities.h" - -static asn_TYPE_member_t asn_MBR_ext1_3[] = { - { ATF_POINTER, 2, offsetof(struct CommonIEsProvideCapabilities__ext1, segmentationInfo_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SegmentationInfo_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "segmentationInfo-r14" - }, - { ATF_POINTER, 1, offsetof(struct CommonIEsProvideCapabilities__ext1, lpp_message_segmentation_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "lpp-message-segmentation-r14" - }, -}; -static const int asn_MAP_ext1_oms_3[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* segmentationInfo-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* lpp-message-segmentation-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_3 = { - sizeof(struct CommonIEsProvideCapabilities__ext1), - offsetof(struct CommonIEsProvideCapabilities__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_3, - 2, /* Count of tags in the map */ - asn_MAP_ext1_oms_3, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_3 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_3, - sizeof(asn_DEF_ext1_tags_3) - /sizeof(asn_DEF_ext1_tags_3[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_3, /* Same as above */ - sizeof(asn_DEF_ext1_tags_3) - /sizeof(asn_DEF_ext1_tags_3[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_3, - 2, /* Elements count */ - &asn_SPC_ext1_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_CommonIEsProvideCapabilities_1[] = { - { ATF_POINTER, 1, offsetof(struct CommonIEsProvideCapabilities, ext1), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_ext1_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_CommonIEsProvideCapabilities_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_CommonIEsProvideCapabilities_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CommonIEsProvideCapabilities_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CommonIEsProvideCapabilities_specs_1 = { - sizeof(struct CommonIEsProvideCapabilities), - offsetof(struct CommonIEsProvideCapabilities, _asn_ctx), - asn_MAP_CommonIEsProvideCapabilities_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_CommonIEsProvideCapabilities_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_CommonIEsProvideCapabilities = { - "CommonIEsProvideCapabilities", - "CommonIEsProvideCapabilities", - &asn_OP_SEQUENCE, - asn_DEF_CommonIEsProvideCapabilities_tags_1, - sizeof(asn_DEF_CommonIEsProvideCapabilities_tags_1) - /sizeof(asn_DEF_CommonIEsProvideCapabilities_tags_1[0]), /* 1 */ - asn_DEF_CommonIEsProvideCapabilities_tags_1, /* Same as above */ - sizeof(asn_DEF_CommonIEsProvideCapabilities_tags_1) - /sizeof(asn_DEF_CommonIEsProvideCapabilities_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_CommonIEsProvideCapabilities_1, - 1, /* Elements count */ - &asn_SPC_CommonIEsProvideCapabilities_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CommonIEsProvideCapabilities.h b/asn.1/generated/CommonIEsProvideCapabilities.h deleted file mode 100644 index d70c6a2f..00000000 --- a/asn.1/generated/CommonIEsProvideCapabilities.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _CommonIEsProvideCapabilities_H_ -#define _CommonIEsProvideCapabilities_H_ - - -#include - -/* Including external dependencies */ -#include "SegmentationInfo-r14.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum CommonIEsProvideCapabilities__ext1__lpp_message_segmentation_r14 { - CommonIEsProvideCapabilities__ext1__lpp_message_segmentation_r14_serverToTarget = 0, - CommonIEsProvideCapabilities__ext1__lpp_message_segmentation_r14_targetToServer = 1 -} e_CommonIEsProvideCapabilities__ext1__lpp_message_segmentation_r14; - -/* CommonIEsProvideCapabilities */ -typedef struct CommonIEsProvideCapabilities { - /* - * This type is extensible, - * possible extensions are below. - */ - struct CommonIEsProvideCapabilities__ext1 { - SegmentationInfo_r14_t *segmentationInfo_r14 /* OPTIONAL */; - BIT_STRING_t *lpp_message_segmentation_r14 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} CommonIEsProvideCapabilities_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CommonIEsProvideCapabilities; -extern asn_SEQUENCE_specifics_t asn_SPC_CommonIEsProvideCapabilities_specs_1; -extern asn_TYPE_member_t asn_MBR_CommonIEsProvideCapabilities_1[1]; - -#ifdef __cplusplus -} -#endif - -#endif /* _CommonIEsProvideCapabilities_H_ */ -#include diff --git a/asn.1/generated/CommonIEsProvideLocationInformation.c b/asn.1/generated/CommonIEsProvideLocationInformation.c deleted file mode 100644 index 28dbe167..00000000 --- a/asn.1/generated/CommonIEsProvideLocationInformation.c +++ /dev/null @@ -1,247 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CommonIEsProvideLocationInformation.h" - -static asn_TYPE_member_t asn_MBR_ext1_6[] = { - { ATF_POINTER, 1, offsetof(struct CommonIEsProvideLocationInformation__ext1, earlyFixReport_r12), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EarlyFixReport_r12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "earlyFixReport-r12" - }, -}; -static const int asn_MAP_ext1_oms_6[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* earlyFixReport-r12 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = { - sizeof(struct CommonIEsProvideLocationInformation__ext1), - offsetof(struct CommonIEsProvideLocationInformation__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_6, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_6, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_6 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_6, - sizeof(asn_DEF_ext1_tags_6) - /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_6, /* Same as above */ - sizeof(asn_DEF_ext1_tags_6) - /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_6, - 1, /* Elements count */ - &asn_SPC_ext1_specs_6 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_8[] = { - { ATF_POINTER, 2, offsetof(struct CommonIEsProvideLocationInformation__ext2, locationSource_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LocationSource_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationSource-r13" - }, - { ATF_POINTER, 1, offsetof(struct CommonIEsProvideLocationInformation__ext2, locationTimestamp_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTCTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationTimestamp-r13" - }, -}; -static const int asn_MAP_ext2_oms_8[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationSource-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* locationTimestamp-r13 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_8 = { - sizeof(struct CommonIEsProvideLocationInformation__ext2), - offsetof(struct CommonIEsProvideLocationInformation__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_8, - 2, /* Count of tags in the map */ - asn_MAP_ext2_oms_8, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_8 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_8, - sizeof(asn_DEF_ext2_tags_8) - /sizeof(asn_DEF_ext2_tags_8[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_8, /* Same as above */ - sizeof(asn_DEF_ext2_tags_8) - /sizeof(asn_DEF_ext2_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_8, - 2, /* Elements count */ - &asn_SPC_ext2_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext3_11[] = { - { ATF_POINTER, 1, offsetof(struct CommonIEsProvideLocationInformation__ext3, segmentationInfo_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SegmentationInfo_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "segmentationInfo-r14" - }, -}; -static const int asn_MAP_ext3_oms_11[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext3_tags_11[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_11[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* segmentationInfo-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_11 = { - sizeof(struct CommonIEsProvideLocationInformation__ext3), - offsetof(struct CommonIEsProvideLocationInformation__ext3, _asn_ctx), - asn_MAP_ext3_tag2el_11, - 1, /* Count of tags in the map */ - asn_MAP_ext3_oms_11, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext3_11 = { - "ext3", - "ext3", - &asn_OP_SEQUENCE, - asn_DEF_ext3_tags_11, - sizeof(asn_DEF_ext3_tags_11) - /sizeof(asn_DEF_ext3_tags_11[0]) - 1, /* 1 */ - asn_DEF_ext3_tags_11, /* Same as above */ - sizeof(asn_DEF_ext3_tags_11) - /sizeof(asn_DEF_ext3_tags_11[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext3_11, - 1, /* Elements count */ - &asn_SPC_ext3_specs_11 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_CommonIEsProvideLocationInformation_1[] = { - { ATF_POINTER, 6, offsetof(struct CommonIEsProvideLocationInformation, locationEstimate), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_LocationCoordinates, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationEstimate" - }, - { ATF_POINTER, 5, offsetof(struct CommonIEsProvideLocationInformation, velocityEstimate), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_Velocity, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "velocityEstimate" - }, - { ATF_POINTER, 4, offsetof(struct CommonIEsProvideLocationInformation, locationError), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LocationError, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationError" - }, - { ATF_POINTER, 3, offsetof(struct CommonIEsProvideLocationInformation, ext1), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - 0, - &asn_DEF_ext1_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 2, offsetof(struct CommonIEsProvideLocationInformation, ext2), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - 0, - &asn_DEF_ext2_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, - { ATF_POINTER, 1, offsetof(struct CommonIEsProvideLocationInformation, ext3), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - 0, - &asn_DEF_ext3_11, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext3" - }, -}; -static const int asn_MAP_CommonIEsProvideLocationInformation_oms_1[] = { 0, 1, 2, 3, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_CommonIEsProvideLocationInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CommonIEsProvideLocationInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationEstimate */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* velocityEstimate */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* locationError */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ext2 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ext3 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CommonIEsProvideLocationInformation_specs_1 = { - sizeof(struct CommonIEsProvideLocationInformation), - offsetof(struct CommonIEsProvideLocationInformation, _asn_ctx), - asn_MAP_CommonIEsProvideLocationInformation_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_CommonIEsProvideLocationInformation_oms_1, /* Optional members */ - 3, 3, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_CommonIEsProvideLocationInformation = { - "CommonIEsProvideLocationInformation", - "CommonIEsProvideLocationInformation", - &asn_OP_SEQUENCE, - asn_DEF_CommonIEsProvideLocationInformation_tags_1, - sizeof(asn_DEF_CommonIEsProvideLocationInformation_tags_1) - /sizeof(asn_DEF_CommonIEsProvideLocationInformation_tags_1[0]), /* 1 */ - asn_DEF_CommonIEsProvideLocationInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_CommonIEsProvideLocationInformation_tags_1) - /sizeof(asn_DEF_CommonIEsProvideLocationInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_CommonIEsProvideLocationInformation_1, - 6, /* Elements count */ - &asn_SPC_CommonIEsProvideLocationInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CommonIEsProvideLocationInformation.h b/asn.1/generated/CommonIEsProvideLocationInformation.h deleted file mode 100644 index 10e8fa1e..00000000 --- a/asn.1/generated/CommonIEsProvideLocationInformation.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _CommonIEsProvideLocationInformation_H_ -#define _CommonIEsProvideLocationInformation_H_ - - -#include - -/* Including external dependencies */ -#include "EarlyFixReport-r12.h" -#include -#include "LocationSource-r13.h" -#include -#include "SegmentationInfo-r14.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct LocationCoordinates; -struct Velocity; -struct LocationError; - -/* CommonIEsProvideLocationInformation */ -typedef struct CommonIEsProvideLocationInformation { - struct LocationCoordinates *locationEstimate /* OPTIONAL */; - struct Velocity *velocityEstimate /* OPTIONAL */; - struct LocationError *locationError /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct CommonIEsProvideLocationInformation__ext1 { - EarlyFixReport_r12_t *earlyFixReport_r12 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct CommonIEsProvideLocationInformation__ext2 { - LocationSource_r13_t *locationSource_r13 /* OPTIONAL */; - UTCTime_t *locationTimestamp_r13 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - struct CommonIEsProvideLocationInformation__ext3 { - SegmentationInfo_r14_t *segmentationInfo_r14 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext3; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} CommonIEsProvideLocationInformation_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CommonIEsProvideLocationInformation; -extern asn_SEQUENCE_specifics_t asn_SPC_CommonIEsProvideLocationInformation_specs_1; -extern asn_TYPE_member_t asn_MBR_CommonIEsProvideLocationInformation_1[6]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "LocationCoordinates.h" -#include "Velocity.h" -#include "LocationError.h" - -#endif /* _CommonIEsProvideLocationInformation_H_ */ -#include diff --git a/asn.1/generated/CommonIEsRequestAssistanceData.c b/asn.1/generated/CommonIEsRequestAssistanceData.c deleted file mode 100644 index ebbf5a39..00000000 --- a/asn.1/generated/CommonIEsRequestAssistanceData.c +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CommonIEsRequestAssistanceData.h" - -static asn_TYPE_member_t asn_MBR_ext1_4[] = { - { ATF_POINTER, 1, offsetof(struct CommonIEsRequestAssistanceData__ext1, segmentationInfo_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SegmentationInfo_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "segmentationInfo-r14" - }, -}; -static const int asn_MAP_ext1_oms_4[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* segmentationInfo-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { - sizeof(struct CommonIEsRequestAssistanceData__ext1), - offsetof(struct CommonIEsRequestAssistanceData__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_4, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_4, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_4 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_4, - sizeof(asn_DEF_ext1_tags_4) - /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_4, /* Same as above */ - sizeof(asn_DEF_ext1_tags_4) - /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_4, - 1, /* Elements count */ - &asn_SPC_ext1_specs_4 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_6[] = { - { ATF_POINTER, 2, offsetof(struct CommonIEsRequestAssistanceData__ext2, periodicAssistanceDataReq_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PeriodicAssistanceDataControlParameters_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "periodicAssistanceDataReq-r15" - }, - { ATF_POINTER, 1, offsetof(struct CommonIEsRequestAssistanceData__ext2, primaryCellID_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NCGI_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "primaryCellID-r15" - }, -}; -static const int asn_MAP_ext2_oms_6[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_6[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* periodicAssistanceDataReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* primaryCellID-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_6 = { - sizeof(struct CommonIEsRequestAssistanceData__ext2), - offsetof(struct CommonIEsRequestAssistanceData__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_6, - 2, /* Count of tags in the map */ - asn_MAP_ext2_oms_6, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_6 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_6, - sizeof(asn_DEF_ext2_tags_6) - /sizeof(asn_DEF_ext2_tags_6[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_6, /* Same as above */ - sizeof(asn_DEF_ext2_tags_6) - /sizeof(asn_DEF_ext2_tags_6[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_6, - 2, /* Elements count */ - &asn_SPC_ext2_specs_6 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_CommonIEsRequestAssistanceData_1[] = { - { ATF_POINTER, 3, offsetof(struct CommonIEsRequestAssistanceData, primaryCellID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ECGI, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "primaryCellID" - }, - { ATF_POINTER, 2, offsetof(struct CommonIEsRequestAssistanceData, ext1), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_ext1_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct CommonIEsRequestAssistanceData, ext2), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_ext2_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_CommonIEsRequestAssistanceData_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_CommonIEsRequestAssistanceData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CommonIEsRequestAssistanceData_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* primaryCellID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CommonIEsRequestAssistanceData_specs_1 = { - sizeof(struct CommonIEsRequestAssistanceData), - offsetof(struct CommonIEsRequestAssistanceData, _asn_ctx), - asn_MAP_CommonIEsRequestAssistanceData_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_CommonIEsRequestAssistanceData_oms_1, /* Optional members */ - 1, 2, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_CommonIEsRequestAssistanceData = { - "CommonIEsRequestAssistanceData", - "CommonIEsRequestAssistanceData", - &asn_OP_SEQUENCE, - asn_DEF_CommonIEsRequestAssistanceData_tags_1, - sizeof(asn_DEF_CommonIEsRequestAssistanceData_tags_1) - /sizeof(asn_DEF_CommonIEsRequestAssistanceData_tags_1[0]), /* 1 */ - asn_DEF_CommonIEsRequestAssistanceData_tags_1, /* Same as above */ - sizeof(asn_DEF_CommonIEsRequestAssistanceData_tags_1) - /sizeof(asn_DEF_CommonIEsRequestAssistanceData_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_CommonIEsRequestAssistanceData_1, - 3, /* Elements count */ - &asn_SPC_CommonIEsRequestAssistanceData_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CommonIEsRequestAssistanceData.h b/asn.1/generated/CommonIEsRequestAssistanceData.h deleted file mode 100644 index a77dd750..00000000 --- a/asn.1/generated/CommonIEsRequestAssistanceData.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _CommonIEsRequestAssistanceData_H_ -#define _CommonIEsRequestAssistanceData_H_ - - -#include - -/* Including external dependencies */ -#include "SegmentationInfo-r14.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct ECGI; -struct PeriodicAssistanceDataControlParameters_r15; -struct NCGI_r15; - -/* CommonIEsRequestAssistanceData */ -typedef struct CommonIEsRequestAssistanceData { - struct ECGI *primaryCellID /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct CommonIEsRequestAssistanceData__ext1 { - SegmentationInfo_r14_t *segmentationInfo_r14 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct CommonIEsRequestAssistanceData__ext2 { - struct PeriodicAssistanceDataControlParameters_r15 *periodicAssistanceDataReq_r15 /* OPTIONAL */; - struct NCGI_r15 *primaryCellID_r15 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} CommonIEsRequestAssistanceData_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CommonIEsRequestAssistanceData; -extern asn_SEQUENCE_specifics_t asn_SPC_CommonIEsRequestAssistanceData_specs_1; -extern asn_TYPE_member_t asn_MBR_CommonIEsRequestAssistanceData_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "ECGI.h" -#include "PeriodicAssistanceDataControlParameters-r15.h" -#include "NCGI-r15.h" - -#endif /* _CommonIEsRequestAssistanceData_H_ */ -#include diff --git a/asn.1/generated/CommonIEsRequestCapabilities.c b/asn.1/generated/CommonIEsRequestCapabilities.c deleted file mode 100644 index 27debe66..00000000 --- a/asn.1/generated/CommonIEsRequestCapabilities.c +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CommonIEsRequestCapabilities.h" - -static asn_TYPE_member_t asn_MBR_ext1_3[] = { - { ATF_POINTER, 1, offsetof(struct CommonIEsRequestCapabilities__ext1, lpp_message_segmentation_req_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "lpp-message-segmentation-req-r14" - }, -}; -static const int asn_MAP_ext1_oms_3[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* lpp-message-segmentation-req-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_3 = { - sizeof(struct CommonIEsRequestCapabilities__ext1), - offsetof(struct CommonIEsRequestCapabilities__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_3, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_3, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_3 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_3, - sizeof(asn_DEF_ext1_tags_3) - /sizeof(asn_DEF_ext1_tags_3[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_3, /* Same as above */ - sizeof(asn_DEF_ext1_tags_3) - /sizeof(asn_DEF_ext1_tags_3[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_3, - 1, /* Elements count */ - &asn_SPC_ext1_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_CommonIEsRequestCapabilities_1[] = { - { ATF_POINTER, 1, offsetof(struct CommonIEsRequestCapabilities, ext1), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_ext1_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_CommonIEsRequestCapabilities_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_CommonIEsRequestCapabilities_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CommonIEsRequestCapabilities_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CommonIEsRequestCapabilities_specs_1 = { - sizeof(struct CommonIEsRequestCapabilities), - offsetof(struct CommonIEsRequestCapabilities, _asn_ctx), - asn_MAP_CommonIEsRequestCapabilities_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_CommonIEsRequestCapabilities_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_CommonIEsRequestCapabilities = { - "CommonIEsRequestCapabilities", - "CommonIEsRequestCapabilities", - &asn_OP_SEQUENCE, - asn_DEF_CommonIEsRequestCapabilities_tags_1, - sizeof(asn_DEF_CommonIEsRequestCapabilities_tags_1) - /sizeof(asn_DEF_CommonIEsRequestCapabilities_tags_1[0]), /* 1 */ - asn_DEF_CommonIEsRequestCapabilities_tags_1, /* Same as above */ - sizeof(asn_DEF_CommonIEsRequestCapabilities_tags_1) - /sizeof(asn_DEF_CommonIEsRequestCapabilities_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_CommonIEsRequestCapabilities_1, - 1, /* Elements count */ - &asn_SPC_CommonIEsRequestCapabilities_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CommonIEsRequestCapabilities.h b/asn.1/generated/CommonIEsRequestCapabilities.h deleted file mode 100644 index 793d891c..00000000 --- a/asn.1/generated/CommonIEsRequestCapabilities.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _CommonIEsRequestCapabilities_H_ -#define _CommonIEsRequestCapabilities_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum CommonIEsRequestCapabilities__ext1__lpp_message_segmentation_req_r14 { - CommonIEsRequestCapabilities__ext1__lpp_message_segmentation_req_r14_serverToTarget = 0, - CommonIEsRequestCapabilities__ext1__lpp_message_segmentation_req_r14_targetToServer = 1 -} e_CommonIEsRequestCapabilities__ext1__lpp_message_segmentation_req_r14; - -/* CommonIEsRequestCapabilities */ -typedef struct CommonIEsRequestCapabilities { - /* - * This type is extensible, - * possible extensions are below. - */ - struct CommonIEsRequestCapabilities__ext1 { - BIT_STRING_t *lpp_message_segmentation_req_r14 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} CommonIEsRequestCapabilities_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CommonIEsRequestCapabilities; -extern asn_SEQUENCE_specifics_t asn_SPC_CommonIEsRequestCapabilities_specs_1; -extern asn_TYPE_member_t asn_MBR_CommonIEsRequestCapabilities_1[1]; - -#ifdef __cplusplus -} -#endif - -#endif /* _CommonIEsRequestCapabilities_H_ */ -#include diff --git a/asn.1/generated/CommonIEsRequestLocationInformation.c b/asn.1/generated/CommonIEsRequestLocationInformation.c deleted file mode 100644 index 22decb55..00000000 --- a/asn.1/generated/CommonIEsRequestLocationInformation.c +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "CommonIEsRequestLocationInformation.h" - -static asn_TYPE_member_t asn_MBR_ext1_11[] = { - { ATF_POINTER, 1, offsetof(struct CommonIEsRequestLocationInformation__ext1, messageSizeLimitNB_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MessageSizeLimitNB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "messageSizeLimitNB-r14" - }, -}; -static const int asn_MAP_ext1_oms_11[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_11[] = { - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_11[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* messageSizeLimitNB-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_11 = { - sizeof(struct CommonIEsRequestLocationInformation__ext1), - offsetof(struct CommonIEsRequestLocationInformation__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_11, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_11, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_11 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_11, - sizeof(asn_DEF_ext1_tags_11) - /sizeof(asn_DEF_ext1_tags_11[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_11, /* Same as above */ - sizeof(asn_DEF_ext1_tags_11) - /sizeof(asn_DEF_ext1_tags_11[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_11, - 1, /* Elements count */ - &asn_SPC_ext1_specs_11 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_13[] = { - { ATF_POINTER, 1, offsetof(struct CommonIEsRequestLocationInformation__ext2, segmentationInfo_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SegmentationInfo_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "segmentationInfo-r14" - }, -}; -static const int asn_MAP_ext2_oms_13[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_13[] = { - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_13[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* segmentationInfo-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_13 = { - sizeof(struct CommonIEsRequestLocationInformation__ext2), - offsetof(struct CommonIEsRequestLocationInformation__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_13, - 1, /* Count of tags in the map */ - asn_MAP_ext2_oms_13, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_13 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_13, - sizeof(asn_DEF_ext2_tags_13) - /sizeof(asn_DEF_ext2_tags_13[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_13, /* Same as above */ - sizeof(asn_DEF_ext2_tags_13) - /sizeof(asn_DEF_ext2_tags_13[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_13, - 1, /* Elements count */ - &asn_SPC_ext2_specs_13 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_CommonIEsRequestLocationInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CommonIEsRequestLocationInformation, locationInformationType), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LocationInformationType, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationInformationType" - }, - { ATF_POINTER, 9, offsetof(struct CommonIEsRequestLocationInformation, triggeredReporting), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TriggeredReportingCriteria, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "triggeredReporting" - }, - { ATF_POINTER, 8, offsetof(struct CommonIEsRequestLocationInformation, periodicalReporting), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PeriodicalReportingCriteria, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "periodicalReporting" - }, - { ATF_POINTER, 7, offsetof(struct CommonIEsRequestLocationInformation, additionalInformation), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AdditionalInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "additionalInformation" - }, - { ATF_POINTER, 6, offsetof(struct CommonIEsRequestLocationInformation, qos), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_QoS, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "qos" - }, - { ATF_POINTER, 5, offsetof(struct CommonIEsRequestLocationInformation, environment), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Environment, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "environment" - }, - { ATF_POINTER, 4, offsetof(struct CommonIEsRequestLocationInformation, locationCoordinateTypes), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LocationCoordinateTypes, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationCoordinateTypes" - }, - { ATF_POINTER, 3, offsetof(struct CommonIEsRequestLocationInformation, velocityTypes), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VelocityTypes, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "velocityTypes" - }, - { ATF_POINTER, 2, offsetof(struct CommonIEsRequestLocationInformation, ext1), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - 0, - &asn_DEF_ext1_11, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct CommonIEsRequestLocationInformation, ext2), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - 0, - &asn_DEF_ext2_13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_CommonIEsRequestLocationInformation_oms_1[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; -static const ber_tlv_tag_t asn_DEF_CommonIEsRequestLocationInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CommonIEsRequestLocationInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationInformationType */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* triggeredReporting */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* periodicalReporting */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* additionalInformation */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* qos */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* environment */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* locationCoordinateTypes */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* velocityTypes */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CommonIEsRequestLocationInformation_specs_1 = { - sizeof(struct CommonIEsRequestLocationInformation), - offsetof(struct CommonIEsRequestLocationInformation, _asn_ctx), - asn_MAP_CommonIEsRequestLocationInformation_tag2el_1, - 10, /* Count of tags in the map */ - asn_MAP_CommonIEsRequestLocationInformation_oms_1, /* Optional members */ - 7, 2, /* Root/Additions */ - 8, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_CommonIEsRequestLocationInformation = { - "CommonIEsRequestLocationInformation", - "CommonIEsRequestLocationInformation", - &asn_OP_SEQUENCE, - asn_DEF_CommonIEsRequestLocationInformation_tags_1, - sizeof(asn_DEF_CommonIEsRequestLocationInformation_tags_1) - /sizeof(asn_DEF_CommonIEsRequestLocationInformation_tags_1[0]), /* 1 */ - asn_DEF_CommonIEsRequestLocationInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_CommonIEsRequestLocationInformation_tags_1) - /sizeof(asn_DEF_CommonIEsRequestLocationInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_CommonIEsRequestLocationInformation_1, - 10, /* Elements count */ - &asn_SPC_CommonIEsRequestLocationInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/CommonIEsRequestLocationInformation.h b/asn.1/generated/CommonIEsRequestLocationInformation.h deleted file mode 100644 index dee53e8f..00000000 --- a/asn.1/generated/CommonIEsRequestLocationInformation.h +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _CommonIEsRequestLocationInformation_H_ -#define _CommonIEsRequestLocationInformation_H_ - - -#include - -/* Including external dependencies */ -#include "LocationInformationType.h" -#include "AdditionalInformation.h" -#include "Environment.h" -#include -#include "SegmentationInfo-r14.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct TriggeredReportingCriteria; -struct PeriodicalReportingCriteria; -struct QoS; -struct LocationCoordinateTypes; -struct VelocityTypes; -struct MessageSizeLimitNB_r14; - -/* CommonIEsRequestLocationInformation */ -typedef struct CommonIEsRequestLocationInformation { - LocationInformationType_t locationInformationType; - struct TriggeredReportingCriteria *triggeredReporting /* OPTIONAL */; - struct PeriodicalReportingCriteria *periodicalReporting /* OPTIONAL */; - AdditionalInformation_t *additionalInformation /* OPTIONAL */; - struct QoS *qos /* OPTIONAL */; - Environment_t *environment /* OPTIONAL */; - struct LocationCoordinateTypes *locationCoordinateTypes /* OPTIONAL */; - struct VelocityTypes *velocityTypes /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct CommonIEsRequestLocationInformation__ext1 { - struct MessageSizeLimitNB_r14 *messageSizeLimitNB_r14 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct CommonIEsRequestLocationInformation__ext2 { - SegmentationInfo_r14_t *segmentationInfo_r14 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} CommonIEsRequestLocationInformation_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CommonIEsRequestLocationInformation; -extern asn_SEQUENCE_specifics_t asn_SPC_CommonIEsRequestLocationInformation_specs_1; -extern asn_TYPE_member_t asn_MBR_CommonIEsRequestLocationInformation_1[10]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "TriggeredReportingCriteria.h" -#include "PeriodicalReportingCriteria.h" -#include "QoS.h" -#include "LocationCoordinateTypes.h" -#include "VelocityTypes.h" -#include "MessageSizeLimitNB-r14.h" - -#endif /* _CommonIEsRequestLocationInformation_H_ */ -#include diff --git a/asn.1/generated/Coordinate.c b/asn.1/generated/Coordinate.c deleted file mode 100644 index 68398ea0..00000000 --- a/asn.1/generated/Coordinate.c +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Coordinate.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_latitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_longitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_latitudeSign_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_latitude_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_longitude_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_latitudeSign_value2enum_2[] = { - { 0, 5, "north" }, - { 1, 5, "south" } -}; -static const unsigned int asn_MAP_latitudeSign_enum2value_2[] = { - 0, /* north(0) */ - 1 /* south(1) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_latitudeSign_specs_2 = { - asn_MAP_latitudeSign_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_latitudeSign_enum2value_2, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_latitudeSign_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_latitudeSign_2 = { - "latitudeSign", - "latitudeSign", - &asn_OP_NativeEnumerated, - asn_DEF_latitudeSign_tags_2, - sizeof(asn_DEF_latitudeSign_tags_2) - /sizeof(asn_DEF_latitudeSign_tags_2[0]) - 1, /* 1 */ - asn_DEF_latitudeSign_tags_2, /* Same as above */ - sizeof(asn_DEF_latitudeSign_tags_2) - /sizeof(asn_DEF_latitudeSign_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_latitudeSign_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_latitudeSign_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_Coordinate_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Coordinate, latitudeSign), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_latitudeSign_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "latitudeSign" - }, - { ATF_NOFLAGS, 0, offsetof(struct Coordinate, latitude), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_latitude_constr_5, memb_latitude_constraint_1 }, - 0, 0, /* No default value */ - "latitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct Coordinate, longitude), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_longitude_constr_6, memb_longitude_constraint_1 }, - 0, 0, /* No default value */ - "longitude" - }, -}; -static const ber_tlv_tag_t asn_DEF_Coordinate_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Coordinate_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeSign */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* latitude */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* longitude */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Coordinate_specs_1 = { - sizeof(struct Coordinate), - offsetof(struct Coordinate, _asn_ctx), - asn_MAP_Coordinate_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Coordinate = { - "Coordinate", - "Coordinate", - &asn_OP_SEQUENCE, - asn_DEF_Coordinate_tags_1, - sizeof(asn_DEF_Coordinate_tags_1) - /sizeof(asn_DEF_Coordinate_tags_1[0]), /* 1 */ - asn_DEF_Coordinate_tags_1, /* Same as above */ - sizeof(asn_DEF_Coordinate_tags_1) - /sizeof(asn_DEF_Coordinate_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Coordinate_1, - 3, /* Elements count */ - &asn_SPC_Coordinate_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/DBDS-CorrectionElement-r12.c b/asn.1/generated/DBDS-CorrectionElement-r12.c deleted file mode 100644 index 43fd219e..00000000 --- a/asn.1/generated/DBDS-CorrectionElement-r12.c +++ /dev/null @@ -1,170 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DBDS-CorrectionElement-r12.h" - -static int -memb_bds_UDREI_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bds_RURAI_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bds_ECC_DeltaT_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -4096 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_bds_UDREI_r12_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bds_RURAI_r12_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bds_ECC_DeltaT_r12_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_DBDS_CorrectionElement_r12_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DBDS_CorrectionElement_r12, svID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID" - }, - { ATF_NOFLAGS, 0, offsetof(struct DBDS_CorrectionElement_r12, bds_UDREI_r12), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bds_UDREI_r12_constr_3, memb_bds_UDREI_r12_constraint_1 }, - 0, 0, /* No default value */ - "bds-UDREI-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct DBDS_CorrectionElement_r12, bds_RURAI_r12), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bds_RURAI_r12_constr_4, memb_bds_RURAI_r12_constraint_1 }, - 0, 0, /* No default value */ - "bds-RURAI-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct DBDS_CorrectionElement_r12, bds_ECC_DeltaT_r12), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bds_ECC_DeltaT_r12_constr_5, memb_bds_ECC_DeltaT_r12_constraint_1 }, - 0, 0, /* No default value */ - "bds-ECC-DeltaT-r12" - }, -}; -static const ber_tlv_tag_t asn_DEF_DBDS_CorrectionElement_r12_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_DBDS_CorrectionElement_r12_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bds-UDREI-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bds-RURAI-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* bds-ECC-DeltaT-r12 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_DBDS_CorrectionElement_r12_specs_1 = { - sizeof(struct DBDS_CorrectionElement_r12), - offsetof(struct DBDS_CorrectionElement_r12, _asn_ctx), - asn_MAP_DBDS_CorrectionElement_r12_tag2el_1, - 4, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_DBDS_CorrectionElement_r12 = { - "DBDS-CorrectionElement-r12", - "DBDS-CorrectionElement-r12", - &asn_OP_SEQUENCE, - asn_DEF_DBDS_CorrectionElement_r12_tags_1, - sizeof(asn_DEF_DBDS_CorrectionElement_r12_tags_1) - /sizeof(asn_DEF_DBDS_CorrectionElement_r12_tags_1[0]), /* 1 */ - asn_DEF_DBDS_CorrectionElement_r12_tags_1, /* Same as above */ - sizeof(asn_DEF_DBDS_CorrectionElement_r12_tags_1) - /sizeof(asn_DEF_DBDS_CorrectionElement_r12_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_DBDS_CorrectionElement_r12_1, - 4, /* Elements count */ - &asn_SPC_DBDS_CorrectionElement_r12_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/DBDS-CorrectionList-r12.c b/asn.1/generated/DBDS-CorrectionList-r12.c deleted file mode 100644 index 2e67c1d9..00000000 --- a/asn.1/generated/DBDS-CorrectionList-r12.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DBDS-CorrectionList-r12.h" - -asn_per_constraints_t asn_PER_type_DBDS_CorrectionList_r12_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_DBDS_CorrectionList_r12_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_DBDS_CorrectionElement_r12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_DBDS_CorrectionList_r12_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_DBDS_CorrectionList_r12_specs_1 = { - sizeof(struct DBDS_CorrectionList_r12), - offsetof(struct DBDS_CorrectionList_r12, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_DBDS_CorrectionList_r12 = { - "DBDS-CorrectionList-r12", - "DBDS-CorrectionList-r12", - &asn_OP_SEQUENCE_OF, - asn_DEF_DBDS_CorrectionList_r12_tags_1, - sizeof(asn_DEF_DBDS_CorrectionList_r12_tags_1) - /sizeof(asn_DEF_DBDS_CorrectionList_r12_tags_1[0]), /* 1 */ - asn_DEF_DBDS_CorrectionList_r12_tags_1, /* Same as above */ - sizeof(asn_DEF_DBDS_CorrectionList_r12_tags_1) - /sizeof(asn_DEF_DBDS_CorrectionList_r12_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_DBDS_CorrectionList_r12_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_DBDS_CorrectionList_r12_1, - 1, /* Single element */ - &asn_SPC_DBDS_CorrectionList_r12_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/DGANSS-Sig-Id-Req.c b/asn.1/generated/DGANSS-Sig-Id-Req.c deleted file mode 100644 index 9bc6072f..00000000 --- a/asn.1/generated/DGANSS-Sig-Id-Req.c +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DGANSS-Sig-Id-Req.h" - -int -DGANSS_Sig_Id_Req_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using BIT_STRING, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_DGANSS_Sig_Id_Req_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_DGANSS_Sig_Id_Req_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_DGANSS_Sig_Id_Req = { - "DGANSS-Sig-Id-Req", - "DGANSS-Sig-Id-Req", - &asn_OP_BIT_STRING, - asn_DEF_DGANSS_Sig_Id_Req_tags_1, - sizeof(asn_DEF_DGANSS_Sig_Id_Req_tags_1) - /sizeof(asn_DEF_DGANSS_Sig_Id_Req_tags_1[0]), /* 1 */ - asn_DEF_DGANSS_Sig_Id_Req_tags_1, /* Same as above */ - sizeof(asn_DEF_DGANSS_Sig_Id_Req_tags_1) - /sizeof(asn_DEF_DGANSS_Sig_Id_Req_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_DGANSS_Sig_Id_Req_constr_1, DGANSS_Sig_Id_Req_constraint }, - 0, 0, /* No members */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/asn.1/generated/DGANSS-Sig-Id-Req.h b/asn.1/generated/DGANSS-Sig-Id-Req.h deleted file mode 100644 index 3e64bd74..00000000 --- a/asn.1/generated/DGANSS-Sig-Id-Req.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _DGANSS_Sig_Id_Req_H_ -#define _DGANSS_Sig_Id_Req_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* DGANSS-Sig-Id-Req */ -typedef BIT_STRING_t DGANSS_Sig_Id_Req_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_DGANSS_Sig_Id_Req_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_DGANSS_Sig_Id_Req; -asn_struct_free_f DGANSS_Sig_Id_Req_free; -asn_struct_print_f DGANSS_Sig_Id_Req_print; -asn_constr_check_f DGANSS_Sig_Id_Req_constraint; -ber_type_decoder_f DGANSS_Sig_Id_Req_decode_ber; -der_type_encoder_f DGANSS_Sig_Id_Req_encode_der; -xer_type_decoder_f DGANSS_Sig_Id_Req_decode_xer; -xer_type_encoder_f DGANSS_Sig_Id_Req_encode_xer; -per_type_decoder_f DGANSS_Sig_Id_Req_decode_uper; -per_type_encoder_f DGANSS_Sig_Id_Req_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _DGANSS_Sig_Id_Req_H_ */ -#include diff --git a/asn.1/generated/DGNSS-CorrectionsElement.c b/asn.1/generated/DGNSS-CorrectionsElement.c deleted file mode 100644 index 0b573a21..00000000 --- a/asn.1/generated/DGNSS-CorrectionsElement.c +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DGNSS-CorrectionsElement.h" - -static int -memb_iod_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 11)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_udre_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_pseudoRangeCor_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2047 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_rangeRateCor_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -127 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_udreGrowthRate_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 7)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_udreValidityTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 7)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_iod_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 11, 11 } /* (SIZE(11..11)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_udre_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_pseudoRangeCor_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, -2047, 2047 } /* (-2047..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_rangeRateCor_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -127, 127 } /* (-127..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_udreGrowthRate_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_udreValidityTime_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_DGNSS_CorrectionsElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DGNSS_CorrectionsElement, svID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID" - }, - { ATF_NOFLAGS, 0, offsetof(struct DGNSS_CorrectionsElement, iod), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_iod_constr_3, memb_iod_constraint_1 }, - 0, 0, /* No default value */ - "iod" - }, - { ATF_NOFLAGS, 0, offsetof(struct DGNSS_CorrectionsElement, udre), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_udre_constr_4, memb_udre_constraint_1 }, - 0, 0, /* No default value */ - "udre" - }, - { ATF_NOFLAGS, 0, offsetof(struct DGNSS_CorrectionsElement, pseudoRangeCor), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_pseudoRangeCor_constr_5, memb_pseudoRangeCor_constraint_1 }, - 0, 0, /* No default value */ - "pseudoRangeCor" - }, - { ATF_NOFLAGS, 0, offsetof(struct DGNSS_CorrectionsElement, rangeRateCor), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rangeRateCor_constr_6, memb_rangeRateCor_constraint_1 }, - 0, 0, /* No default value */ - "rangeRateCor" - }, - { ATF_POINTER, 2, offsetof(struct DGNSS_CorrectionsElement, udreGrowthRate), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_udreGrowthRate_constr_7, memb_udreGrowthRate_constraint_1 }, - 0, 0, /* No default value */ - "udreGrowthRate" - }, - { ATF_POINTER, 1, offsetof(struct DGNSS_CorrectionsElement, udreValidityTime), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_udreValidityTime_constr_8, memb_udreValidityTime_constraint_1 }, - 0, 0, /* No default value */ - "udreValidityTime" - }, -}; -static const int asn_MAP_DGNSS_CorrectionsElement_oms_1[] = { 5, 6 }; -static const ber_tlv_tag_t asn_DEF_DGNSS_CorrectionsElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_DGNSS_CorrectionsElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* iod */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* udre */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* pseudoRangeCor */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rangeRateCor */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* udreGrowthRate */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* udreValidityTime */ -}; -asn_SEQUENCE_specifics_t asn_SPC_DGNSS_CorrectionsElement_specs_1 = { - sizeof(struct DGNSS_CorrectionsElement), - offsetof(struct DGNSS_CorrectionsElement, _asn_ctx), - asn_MAP_DGNSS_CorrectionsElement_tag2el_1, - 7, /* Count of tags in the map */ - asn_MAP_DGNSS_CorrectionsElement_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 7, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_DGNSS_CorrectionsElement = { - "DGNSS-CorrectionsElement", - "DGNSS-CorrectionsElement", - &asn_OP_SEQUENCE, - asn_DEF_DGNSS_CorrectionsElement_tags_1, - sizeof(asn_DEF_DGNSS_CorrectionsElement_tags_1) - /sizeof(asn_DEF_DGNSS_CorrectionsElement_tags_1[0]), /* 1 */ - asn_DEF_DGNSS_CorrectionsElement_tags_1, /* Same as above */ - sizeof(asn_DEF_DGNSS_CorrectionsElement_tags_1) - /sizeof(asn_DEF_DGNSS_CorrectionsElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_DGNSS_CorrectionsElement_1, - 7, /* Elements count */ - &asn_SPC_DGNSS_CorrectionsElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/DGNSS-SatList.c b/asn.1/generated/DGNSS-SatList.c deleted file mode 100644 index 5ace85f3..00000000 --- a/asn.1/generated/DGNSS-SatList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DGNSS-SatList.h" - -asn_per_constraints_t asn_PER_type_DGNSS_SatList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_DGNSS_SatList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_DGNSS_CorrectionsElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_DGNSS_SatList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_DGNSS_SatList_specs_1 = { - sizeof(struct DGNSS_SatList), - offsetof(struct DGNSS_SatList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_DGNSS_SatList = { - "DGNSS-SatList", - "DGNSS-SatList", - &asn_OP_SEQUENCE_OF, - asn_DEF_DGNSS_SatList_tags_1, - sizeof(asn_DEF_DGNSS_SatList_tags_1) - /sizeof(asn_DEF_DGNSS_SatList_tags_1[0]), /* 1 */ - asn_DEF_DGNSS_SatList_tags_1, /* Same as above */ - sizeof(asn_DEF_DGNSS_SatList_tags_1) - /sizeof(asn_DEF_DGNSS_SatList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_DGNSS_SatList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_DGNSS_SatList_1, - 1, /* Single element */ - &asn_SPC_DGNSS_SatList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/DGNSS-SgnTypeElement.c b/asn.1/generated/DGNSS-SgnTypeElement.c deleted file mode 100644 index 032b4c79..00000000 --- a/asn.1/generated/DGNSS-SgnTypeElement.c +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DGNSS-SgnTypeElement.h" - -static int -memb_gnss_StatusHealth_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 7)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gnss_StatusHealth_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_DGNSS_SgnTypeElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DGNSS_SgnTypeElement, gnss_SignalID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SignalID" - }, - { ATF_NOFLAGS, 0, offsetof(struct DGNSS_SgnTypeElement, gnss_StatusHealth), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_StatusHealth_constr_3, memb_gnss_StatusHealth_constraint_1 }, - 0, 0, /* No default value */ - "gnss-StatusHealth" - }, - { ATF_NOFLAGS, 0, offsetof(struct DGNSS_SgnTypeElement, dgnss_SatList), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DGNSS_SatList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dgnss-SatList" - }, -}; -static const ber_tlv_tag_t asn_DEF_DGNSS_SgnTypeElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_DGNSS_SgnTypeElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SignalID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-StatusHealth */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* dgnss-SatList */ -}; -asn_SEQUENCE_specifics_t asn_SPC_DGNSS_SgnTypeElement_specs_1 = { - sizeof(struct DGNSS_SgnTypeElement), - offsetof(struct DGNSS_SgnTypeElement, _asn_ctx), - asn_MAP_DGNSS_SgnTypeElement_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_DGNSS_SgnTypeElement = { - "DGNSS-SgnTypeElement", - "DGNSS-SgnTypeElement", - &asn_OP_SEQUENCE, - asn_DEF_DGNSS_SgnTypeElement_tags_1, - sizeof(asn_DEF_DGNSS_SgnTypeElement_tags_1) - /sizeof(asn_DEF_DGNSS_SgnTypeElement_tags_1[0]), /* 1 */ - asn_DEF_DGNSS_SgnTypeElement_tags_1, /* Same as above */ - sizeof(asn_DEF_DGNSS_SgnTypeElement_tags_1) - /sizeof(asn_DEF_DGNSS_SgnTypeElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_DGNSS_SgnTypeElement_1, - 3, /* Elements count */ - &asn_SPC_DGNSS_SgnTypeElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/DGNSS-SgnTypeList.c b/asn.1/generated/DGNSS-SgnTypeList.c deleted file mode 100644 index 549da730..00000000 --- a/asn.1/generated/DGNSS-SgnTypeList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DGNSS-SgnTypeList.h" - -asn_per_constraints_t asn_PER_type_DGNSS_SgnTypeList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_DGNSS_SgnTypeList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_DGNSS_SgnTypeElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_DGNSS_SgnTypeList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_DGNSS_SgnTypeList_specs_1 = { - sizeof(struct DGNSS_SgnTypeList), - offsetof(struct DGNSS_SgnTypeList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_DGNSS_SgnTypeList = { - "DGNSS-SgnTypeList", - "DGNSS-SgnTypeList", - &asn_OP_SEQUENCE_OF, - asn_DEF_DGNSS_SgnTypeList_tags_1, - sizeof(asn_DEF_DGNSS_SgnTypeList_tags_1) - /sizeof(asn_DEF_DGNSS_SgnTypeList_tags_1[0]), /* 1 */ - asn_DEF_DGNSS_SgnTypeList_tags_1, /* Same as above */ - sizeof(asn_DEF_DGNSS_SgnTypeList_tags_1) - /sizeof(asn_DEF_DGNSS_SgnTypeList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_DGNSS_SgnTypeList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_DGNSS_SgnTypeList_1, - 1, /* Single element */ - &asn_SPC_DGNSS_SgnTypeList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/DL-PRS-BeamInfoElement-r16.c b/asn.1/generated/DL-PRS-BeamInfoElement-r16.c deleted file mode 100644 index 4a42e282..00000000 --- a/asn.1/generated/DL-PRS-BeamInfoElement-r16.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DL-PRS-BeamInfoElement-r16.h" - -static int -memb_dl_PRS_Azimuth_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3599)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_dl_PRS_Elevation_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1800)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_dl_PRS_Azimuth_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_dl_PRS_Elevation_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 1800 } /* (0..1800) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_DL_PRS_BeamInfoElement_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_BeamInfoElement_r16, dl_PRS_Azimuth_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_dl_PRS_Azimuth_r16_constr_2, memb_dl_PRS_Azimuth_r16_constraint_1 }, - 0, 0, /* No default value */ - "dl-PRS-Azimuth-r16" - }, - { ATF_POINTER, 1, offsetof(struct DL_PRS_BeamInfoElement_r16, dl_PRS_Elevation_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_dl_PRS_Elevation_r16_constr_3, memb_dl_PRS_Elevation_r16_constraint_1 }, - 0, 0, /* No default value */ - "dl-PRS-Elevation-r16" - }, -}; -static const int asn_MAP_DL_PRS_BeamInfoElement_r16_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_DL_PRS_BeamInfoElement_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_BeamInfoElement_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-Azimuth-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dl-PRS-Elevation-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_BeamInfoElement_r16_specs_1 = { - sizeof(struct DL_PRS_BeamInfoElement_r16), - offsetof(struct DL_PRS_BeamInfoElement_r16, _asn_ctx), - asn_MAP_DL_PRS_BeamInfoElement_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_DL_PRS_BeamInfoElement_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_DL_PRS_BeamInfoElement_r16 = { - "DL-PRS-BeamInfoElement-r16", - "DL-PRS-BeamInfoElement-r16", - &asn_OP_SEQUENCE, - asn_DEF_DL_PRS_BeamInfoElement_r16_tags_1, - sizeof(asn_DEF_DL_PRS_BeamInfoElement_r16_tags_1) - /sizeof(asn_DEF_DL_PRS_BeamInfoElement_r16_tags_1[0]), /* 1 */ - asn_DEF_DL_PRS_BeamInfoElement_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_DL_PRS_BeamInfoElement_r16_tags_1) - /sizeof(asn_DEF_DL_PRS_BeamInfoElement_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_DL_PRS_BeamInfoElement_r16_1, - 2, /* Elements count */ - &asn_SPC_DL_PRS_BeamInfoElement_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/DL-PRS-BeamInfoElement-r16.h b/asn.1/generated/DL-PRS-BeamInfoElement-r16.h deleted file mode 100644 index 991d9092..00000000 --- a/asn.1/generated/DL-PRS-BeamInfoElement-r16.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _DL_PRS_BeamInfoElement_r16_H_ -#define _DL_PRS_BeamInfoElement_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* DL-PRS-BeamInfoElement-r16 */ -typedef struct DL_PRS_BeamInfoElement_r16 { - long dl_PRS_Azimuth_r16; - long *dl_PRS_Elevation_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} DL_PRS_BeamInfoElement_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_BeamInfoElement_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_BeamInfoElement_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_DL_PRS_BeamInfoElement_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -#endif /* _DL_PRS_BeamInfoElement_r16_H_ */ -#include diff --git a/asn.1/generated/DL-PRS-BeamInfoResourceSet-r16.c b/asn.1/generated/DL-PRS-BeamInfoResourceSet-r16.c deleted file mode 100644 index cb0ad4d0..00000000 --- a/asn.1/generated/DL-PRS-BeamInfoResourceSet-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DL-PRS-BeamInfoResourceSet-r16.h" - -asn_per_constraints_t asn_PER_type_DL_PRS_BeamInfoResourceSet_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_DL_PRS_BeamInfoResourceSet_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_DL_PRS_BeamInfoElement_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_DL_PRS_BeamInfoResourceSet_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_DL_PRS_BeamInfoResourceSet_r16_specs_1 = { - sizeof(struct DL_PRS_BeamInfoResourceSet_r16), - offsetof(struct DL_PRS_BeamInfoResourceSet_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_DL_PRS_BeamInfoResourceSet_r16 = { - "DL-PRS-BeamInfoResourceSet-r16", - "DL-PRS-BeamInfoResourceSet-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_DL_PRS_BeamInfoResourceSet_r16_tags_1, - sizeof(asn_DEF_DL_PRS_BeamInfoResourceSet_r16_tags_1) - /sizeof(asn_DEF_DL_PRS_BeamInfoResourceSet_r16_tags_1[0]), /* 1 */ - asn_DEF_DL_PRS_BeamInfoResourceSet_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_DL_PRS_BeamInfoResourceSet_r16_tags_1) - /sizeof(asn_DEF_DL_PRS_BeamInfoResourceSet_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_DL_PRS_BeamInfoResourceSet_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_DL_PRS_BeamInfoResourceSet_r16_1, - 1, /* Single element */ - &asn_SPC_DL_PRS_BeamInfoResourceSet_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/DL-PRS-BeamInfoSet-r16.c b/asn.1/generated/DL-PRS-BeamInfoSet-r16.c deleted file mode 100644 index b4754bef..00000000 --- a/asn.1/generated/DL-PRS-BeamInfoSet-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DL-PRS-BeamInfoSet-r16.h" - -asn_per_constraints_t asn_PER_type_DL_PRS_BeamInfoSet_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_DL_PRS_BeamInfoSet_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_DL_PRS_BeamInfoResourceSet_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_DL_PRS_BeamInfoSet_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_DL_PRS_BeamInfoSet_r16_specs_1 = { - sizeof(struct DL_PRS_BeamInfoSet_r16), - offsetof(struct DL_PRS_BeamInfoSet_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_DL_PRS_BeamInfoSet_r16 = { - "DL-PRS-BeamInfoSet-r16", - "DL-PRS-BeamInfoSet-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_DL_PRS_BeamInfoSet_r16_tags_1, - sizeof(asn_DEF_DL_PRS_BeamInfoSet_r16_tags_1) - /sizeof(asn_DEF_DL_PRS_BeamInfoSet_r16_tags_1[0]), /* 1 */ - asn_DEF_DL_PRS_BeamInfoSet_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_DL_PRS_BeamInfoSet_r16_tags_1) - /sizeof(asn_DEF_DL_PRS_BeamInfoSet_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_DL_PRS_BeamInfoSet_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_DL_PRS_BeamInfoSet_r16_1, - 1, /* Single element */ - &asn_SPC_DL_PRS_BeamInfoSet_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/DL-PRS-IdInfo-r16.c b/asn.1/generated/DL-PRS-IdInfo-r16.c deleted file mode 100644 index a5170c89..00000000 --- a/asn.1/generated/DL-PRS-IdInfo-r16.c +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DL-PRS-IdInfo-r16.h" - -static int -memb_nr_DL_PRS_ResourceID_List_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 64)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_nr_DL_PRS_ResourceID_List_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_ResourceID_List_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_nr_DL_PRS_ResourceID_List_r16_3[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NR_DL_PRS_ResourceID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_ResourceID_List_r16_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_nr_DL_PRS_ResourceID_List_r16_specs_3 = { - sizeof(struct DL_PRS_IdInfo_r16__nr_DL_PRS_ResourceID_List_r16), - offsetof(struct DL_PRS_IdInfo_r16__nr_DL_PRS_ResourceID_List_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_ResourceID_List_r16_3 = { - "nr-DL-PRS-ResourceID-List-r16", - "nr-DL-PRS-ResourceID-List-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_nr_DL_PRS_ResourceID_List_r16_tags_3, - sizeof(asn_DEF_nr_DL_PRS_ResourceID_List_r16_tags_3) - /sizeof(asn_DEF_nr_DL_PRS_ResourceID_List_r16_tags_3[0]) - 1, /* 1 */ - asn_DEF_nr_DL_PRS_ResourceID_List_r16_tags_3, /* Same as above */ - sizeof(asn_DEF_nr_DL_PRS_ResourceID_List_r16_tags_3) - /sizeof(asn_DEF_nr_DL_PRS_ResourceID_List_r16_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_nr_DL_PRS_ResourceID_List_r16_constr_3, SEQUENCE_OF_constraint }, - asn_MBR_nr_DL_PRS_ResourceID_List_r16_3, - 1, /* Single element */ - &asn_SPC_nr_DL_PRS_ResourceID_List_r16_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_DL_PRS_IdInfo_r16_1[] = { - { ATF_POINTER, 3, offsetof(struct DL_PRS_IdInfo_r16, trp_ID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TRP_ID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "trp-ID-r16" - }, - { ATF_POINTER, 2, offsetof(struct DL_PRS_IdInfo_r16, nr_DL_PRS_ResourceID_List_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_nr_DL_PRS_ResourceID_List_r16_3, - 0, - { 0, &asn_PER_memb_nr_DL_PRS_ResourceID_List_r16_constr_3, memb_nr_DL_PRS_ResourceID_List_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-DL-PRS-ResourceID-List-r16" - }, - { ATF_POINTER, 1, offsetof(struct DL_PRS_IdInfo_r16, nr_DL_PRS_ResourceSetID_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_ResourceSetID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-ResourceSetID-r16" - }, -}; -static const int asn_MAP_DL_PRS_IdInfo_r16_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_DL_PRS_IdInfo_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_IdInfo_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* trp-ID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-ResourceID-List-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-DL-PRS-ResourceSetID-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_IdInfo_r16_specs_1 = { - sizeof(struct DL_PRS_IdInfo_r16), - offsetof(struct DL_PRS_IdInfo_r16, _asn_ctx), - asn_MAP_DL_PRS_IdInfo_r16_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_DL_PRS_IdInfo_r16_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_DL_PRS_IdInfo_r16 = { - "DL-PRS-IdInfo-r16", - "DL-PRS-IdInfo-r16", - &asn_OP_SEQUENCE, - asn_DEF_DL_PRS_IdInfo_r16_tags_1, - sizeof(asn_DEF_DL_PRS_IdInfo_r16_tags_1) - /sizeof(asn_DEF_DL_PRS_IdInfo_r16_tags_1[0]), /* 1 */ - asn_DEF_DL_PRS_IdInfo_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_DL_PRS_IdInfo_r16_tags_1) - /sizeof(asn_DEF_DL_PRS_IdInfo_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_DL_PRS_IdInfo_r16_1, - 3, /* Elements count */ - &asn_SPC_DL_PRS_IdInfo_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/DL-PRS-IdInfo-r16.h b/asn.1/generated/DL-PRS-IdInfo-r16.h deleted file mode 100644 index d552ccdc..00000000 --- a/asn.1/generated/DL-PRS-IdInfo-r16.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _DL_PRS_IdInfo_r16_H_ -#define _DL_PRS_IdInfo_r16_H_ - - -#include - -/* Including external dependencies */ -#include "NR-DL-PRS-ResourceSetID-r16.h" -#include "NR-DL-PRS-ResourceID-r16.h" -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct TRP_ID_r16; - -/* DL-PRS-IdInfo-r16 */ -typedef struct DL_PRS_IdInfo_r16 { - struct TRP_ID_r16 *trp_ID_r16 /* OPTIONAL */; - struct DL_PRS_IdInfo_r16__nr_DL_PRS_ResourceID_List_r16 { - A_SEQUENCE_OF(NR_DL_PRS_ResourceID_r16_t) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *nr_DL_PRS_ResourceID_List_r16; - NR_DL_PRS_ResourceSetID_r16_t *nr_DL_PRS_ResourceSetID_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} DL_PRS_IdInfo_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_IdInfo_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_IdInfo_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_DL_PRS_IdInfo_r16_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "TRP-ID-r16.h" - -#endif /* _DL_PRS_IdInfo_r16_H_ */ -#include diff --git a/asn.1/generated/DL-PRS-QCL-Info-r16.c b/asn.1/generated/DL-PRS-QCL-Info-r16.c deleted file mode 100644 index d4d76103..00000000 --- a/asn.1/generated/DL-PRS-QCL-Info-r16.c +++ /dev/null @@ -1,256 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DL-PRS-QCL-Info-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_ssb_Index_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_rs_Type_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ssb_Index_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_per_constraints_t asn_PER_type_DL_PRS_QCL_Info_r16_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_rs_Type_r16_value2enum_5[] = { - { 0, 5, "typeC" }, - { 1, 5, "typeD" }, - { 2, 16, "typeC-plus-typeD" } -}; -static const unsigned int asn_MAP_rs_Type_r16_enum2value_5[] = { - 0, /* typeC(0) */ - 2, /* typeC-plus-typeD(2) */ - 1 /* typeD(1) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_rs_Type_r16_specs_5 = { - asn_MAP_rs_Type_r16_value2enum_5, /* "tag" => N; sorted by tag */ - asn_MAP_rs_Type_r16_enum2value_5, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_rs_Type_r16_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_rs_Type_r16_5 = { - "rs-Type-r16", - "rs-Type-r16", - &asn_OP_NativeEnumerated, - asn_DEF_rs_Type_r16_tags_5, - sizeof(asn_DEF_rs_Type_r16_tags_5) - /sizeof(asn_DEF_rs_Type_r16_tags_5[0]) - 1, /* 1 */ - asn_DEF_rs_Type_r16_tags_5, /* Same as above */ - sizeof(asn_DEF_rs_Type_r16_tags_5) - /sizeof(asn_DEF_rs_Type_r16_tags_5[0]), /* 2 */ - { 0, &asn_PER_type_rs_Type_r16_constr_5, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_rs_Type_r16_specs_5 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ssb_r16_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_Info_r16__ssb_r16, pci_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_PhysCellId_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "pci-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_Info_r16__ssb_r16, ssb_Index_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ssb_Index_r16_constr_4, memb_ssb_Index_r16_constraint_2 }, - 0, 0, /* No default value */ - "ssb-Index-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_Info_r16__ssb_r16, rs_Type_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_rs_Type_r16_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rs-Type-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_ssb_r16_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ssb_r16_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pci-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ssb-Index-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* rs-Type-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ssb_r16_specs_2 = { - sizeof(struct DL_PRS_QCL_Info_r16__ssb_r16), - offsetof(struct DL_PRS_QCL_Info_r16__ssb_r16, _asn_ctx), - asn_MAP_ssb_r16_tag2el_2, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ssb_r16_2 = { - "ssb-r16", - "ssb-r16", - &asn_OP_SEQUENCE, - asn_DEF_ssb_r16_tags_2, - sizeof(asn_DEF_ssb_r16_tags_2) - /sizeof(asn_DEF_ssb_r16_tags_2[0]) - 1, /* 1 */ - asn_DEF_ssb_r16_tags_2, /* Same as above */ - sizeof(asn_DEF_ssb_r16_tags_2) - /sizeof(asn_DEF_ssb_r16_tags_2[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ssb_r16_2, - 3, /* Elements count */ - &asn_SPC_ssb_r16_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_dl_PRS_r16_9[] = { - { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_Info_r16__dl_PRS_r16, qcl_dl_PRS_ResourceId_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_ResourceID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "qcl-dl-PRS-ResourceId-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_Info_r16__dl_PRS_r16, qcl_dl_PRS_ResourceSetId_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_ResourceSetID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "qcl-dl-PRS-ResourceSetId-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_dl_PRS_r16_tags_9[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_dl_PRS_r16_tag2el_9[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* qcl-dl-PRS-ResourceId-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* qcl-dl-PRS-ResourceSetId-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_dl_PRS_r16_specs_9 = { - sizeof(struct DL_PRS_QCL_Info_r16__dl_PRS_r16), - offsetof(struct DL_PRS_QCL_Info_r16__dl_PRS_r16, _asn_ctx), - asn_MAP_dl_PRS_r16_tag2el_9, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_dl_PRS_r16_9 = { - "dl-PRS-r16", - "dl-PRS-r16", - &asn_OP_SEQUENCE, - asn_DEF_dl_PRS_r16_tags_9, - sizeof(asn_DEF_dl_PRS_r16_tags_9) - /sizeof(asn_DEF_dl_PRS_r16_tags_9[0]) - 1, /* 1 */ - asn_DEF_dl_PRS_r16_tags_9, /* Same as above */ - sizeof(asn_DEF_dl_PRS_r16_tags_9) - /sizeof(asn_DEF_dl_PRS_r16_tags_9[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_dl_PRS_r16_9, - 2, /* Elements count */ - &asn_SPC_dl_PRS_r16_specs_9 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_DL_PRS_QCL_Info_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_Info_r16, choice.ssb_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_ssb_r16_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ssb-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_Info_r16, choice.dl_PRS_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_dl_PRS_r16_9, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dl-PRS-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_QCL_Info_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ssb-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dl-PRS-r16 */ -}; -asn_CHOICE_specifics_t asn_SPC_DL_PRS_QCL_Info_r16_specs_1 = { - sizeof(struct DL_PRS_QCL_Info_r16), - offsetof(struct DL_PRS_QCL_Info_r16, _asn_ctx), - offsetof(struct DL_PRS_QCL_Info_r16, present), - sizeof(((struct DL_PRS_QCL_Info_r16 *)0)->present), - asn_MAP_DL_PRS_QCL_Info_r16_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_DL_PRS_QCL_Info_r16 = { - "DL-PRS-QCL-Info-r16", - "DL-PRS-QCL-Info-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_DL_PRS_QCL_Info_r16_constr_1, CHOICE_constraint }, - asn_MBR_DL_PRS_QCL_Info_r16_1, - 2, /* Elements count */ - &asn_SPC_DL_PRS_QCL_Info_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/DL-PRS-Resource-ARP-Element-r16.c b/asn.1/generated/DL-PRS-Resource-ARP-Element-r16.c deleted file mode 100644 index b4d38939..00000000 --- a/asn.1/generated/DL-PRS-Resource-ARP-Element-r16.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DL-PRS-Resource-ARP-Element-r16.h" - -asn_TYPE_member_t asn_MBR_DL_PRS_Resource_ARP_Element_r16_1[] = { - { ATF_POINTER, 1, offsetof(struct DL_PRS_Resource_ARP_Element_r16, dl_PRS_Resource_ARP_location_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RelativeLocation_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dl-PRS-Resource-ARP-location-r16" - }, -}; -static const int asn_MAP_DL_PRS_Resource_ARP_Element_r16_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_DL_PRS_Resource_ARP_Element_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_Resource_ARP_Element_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* dl-PRS-Resource-ARP-location-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_Resource_ARP_Element_r16_specs_1 = { - sizeof(struct DL_PRS_Resource_ARP_Element_r16), - offsetof(struct DL_PRS_Resource_ARP_Element_r16, _asn_ctx), - asn_MAP_DL_PRS_Resource_ARP_Element_r16_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_DL_PRS_Resource_ARP_Element_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_DL_PRS_Resource_ARP_Element_r16 = { - "DL-PRS-Resource-ARP-Element-r16", - "DL-PRS-Resource-ARP-Element-r16", - &asn_OP_SEQUENCE, - asn_DEF_DL_PRS_Resource_ARP_Element_r16_tags_1, - sizeof(asn_DEF_DL_PRS_Resource_ARP_Element_r16_tags_1) - /sizeof(asn_DEF_DL_PRS_Resource_ARP_Element_r16_tags_1[0]), /* 1 */ - asn_DEF_DL_PRS_Resource_ARP_Element_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_DL_PRS_Resource_ARP_Element_r16_tags_1) - /sizeof(asn_DEF_DL_PRS_Resource_ARP_Element_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_DL_PRS_Resource_ARP_Element_r16_1, - 1, /* Elements count */ - &asn_SPC_DL_PRS_Resource_ARP_Element_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/DL-PRS-Resource-ARP-Element-r16.h b/asn.1/generated/DL-PRS-Resource-ARP-Element-r16.h deleted file mode 100644 index 1e2a8eb4..00000000 --- a/asn.1/generated/DL-PRS-Resource-ARP-Element-r16.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _DL_PRS_Resource_ARP_Element_r16_H_ -#define _DL_PRS_Resource_ARP_Element_r16_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct RelativeLocation_r16; - -/* DL-PRS-Resource-ARP-Element-r16 */ -typedef struct DL_PRS_Resource_ARP_Element_r16 { - struct RelativeLocation_r16 *dl_PRS_Resource_ARP_location_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} DL_PRS_Resource_ARP_Element_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_Resource_ARP_Element_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_Resource_ARP_Element_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_DL_PRS_Resource_ARP_Element_r16_1[1]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "RelativeLocation-r16.h" - -#endif /* _DL_PRS_Resource_ARP_Element_r16_H_ */ -#include diff --git a/asn.1/generated/DL-PRS-ResourceSets-TRP-Element-r16.c b/asn.1/generated/DL-PRS-ResourceSets-TRP-Element-r16.c deleted file mode 100644 index 28f5645e..00000000 --- a/asn.1/generated/DL-PRS-ResourceSets-TRP-Element-r16.c +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DL-PRS-ResourceSets-TRP-Element-r16.h" - -static int -memb_dl_PRS_Resource_ARP_List_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 64)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_dl_PRS_Resource_ARP_List_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_dl_PRS_Resource_ARP_List_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_dl_PRS_Resource_ARP_List_r16_3[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_DL_PRS_Resource_ARP_Element_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_dl_PRS_Resource_ARP_List_r16_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_dl_PRS_Resource_ARP_List_r16_specs_3 = { - sizeof(struct DL_PRS_ResourceSets_TRP_Element_r16__dl_PRS_Resource_ARP_List_r16), - offsetof(struct DL_PRS_ResourceSets_TRP_Element_r16__dl_PRS_Resource_ARP_List_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_dl_PRS_Resource_ARP_List_r16_3 = { - "dl-PRS-Resource-ARP-List-r16", - "dl-PRS-Resource-ARP-List-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_dl_PRS_Resource_ARP_List_r16_tags_3, - sizeof(asn_DEF_dl_PRS_Resource_ARP_List_r16_tags_3) - /sizeof(asn_DEF_dl_PRS_Resource_ARP_List_r16_tags_3[0]) - 1, /* 1 */ - asn_DEF_dl_PRS_Resource_ARP_List_r16_tags_3, /* Same as above */ - sizeof(asn_DEF_dl_PRS_Resource_ARP_List_r16_tags_3) - /sizeof(asn_DEF_dl_PRS_Resource_ARP_List_r16_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_dl_PRS_Resource_ARP_List_r16_constr_3, SEQUENCE_OF_constraint }, - asn_MBR_dl_PRS_Resource_ARP_List_r16_3, - 1, /* Single element */ - &asn_SPC_dl_PRS_Resource_ARP_List_r16_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_DL_PRS_ResourceSets_TRP_Element_r16_1[] = { - { ATF_POINTER, 2, offsetof(struct DL_PRS_ResourceSets_TRP_Element_r16, dl_PRS_ResourceSetARP_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RelativeLocation_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dl-PRS-ResourceSetARP-r16" - }, - { ATF_POINTER, 1, offsetof(struct DL_PRS_ResourceSets_TRP_Element_r16, dl_PRS_Resource_ARP_List_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_dl_PRS_Resource_ARP_List_r16_3, - 0, - { 0, &asn_PER_memb_dl_PRS_Resource_ARP_List_r16_constr_3, memb_dl_PRS_Resource_ARP_List_r16_constraint_1 }, - 0, 0, /* No default value */ - "dl-PRS-Resource-ARP-List-r16" - }, -}; -static const int asn_MAP_DL_PRS_ResourceSets_TRP_Element_r16_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_ResourceSets_TRP_Element_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ResourceSetARP-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dl-PRS-Resource-ARP-List-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_ResourceSets_TRP_Element_r16_specs_1 = { - sizeof(struct DL_PRS_ResourceSets_TRP_Element_r16), - offsetof(struct DL_PRS_ResourceSets_TRP_Element_r16, _asn_ctx), - asn_MAP_DL_PRS_ResourceSets_TRP_Element_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_DL_PRS_ResourceSets_TRP_Element_r16_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16 = { - "DL-PRS-ResourceSets-TRP-Element-r16", - "DL-PRS-ResourceSets-TRP-Element-r16", - &asn_OP_SEQUENCE, - asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16_tags_1, - sizeof(asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16_tags_1) - /sizeof(asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16_tags_1[0]), /* 1 */ - asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16_tags_1) - /sizeof(asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_DL_PRS_ResourceSets_TRP_Element_r16_1, - 2, /* Elements count */ - &asn_SPC_DL_PRS_ResourceSets_TRP_Element_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/DL-PRS-ResourceSets-TRP-Element-r16.h b/asn.1/generated/DL-PRS-ResourceSets-TRP-Element-r16.h deleted file mode 100644 index 66837e76..00000000 --- a/asn.1/generated/DL-PRS-ResourceSets-TRP-Element-r16.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _DL_PRS_ResourceSets_TRP_Element_r16_H_ -#define _DL_PRS_ResourceSets_TRP_Element_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct RelativeLocation_r16; -struct DL_PRS_Resource_ARP_Element_r16; - -/* DL-PRS-ResourceSets-TRP-Element-r16 */ -typedef struct DL_PRS_ResourceSets_TRP_Element_r16 { - struct RelativeLocation_r16 *dl_PRS_ResourceSetARP_r16 /* OPTIONAL */; - struct DL_PRS_ResourceSets_TRP_Element_r16__dl_PRS_Resource_ARP_List_r16 { - A_SEQUENCE_OF(struct DL_PRS_Resource_ARP_Element_r16) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *dl_PRS_Resource_ARP_List_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} DL_PRS_ResourceSets_TRP_Element_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_ResourceSets_TRP_Element_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_DL_PRS_ResourceSets_TRP_Element_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "RelativeLocation-r16.h" -#include "DL-PRS-Resource-ARP-Element-r16.h" - -#endif /* _DL_PRS_ResourceSets_TRP_Element_r16_H_ */ -#include diff --git a/asn.1/generated/DL-Selected-PRS-ResourceSetIndex-r16.c b/asn.1/generated/DL-Selected-PRS-ResourceSetIndex-r16.c deleted file mode 100644 index 1013002d..00000000 --- a/asn.1/generated/DL-Selected-PRS-ResourceSetIndex-r16.c +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DL-Selected-PRS-ResourceSetIndex-r16.h" - -static int -memb_nr_DL_SelectedPRS_ResourceSetIndex_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_dl_SelectedPRS_ResourceIndexList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 64)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_dl_SelectedPRS_ResourceIndexList_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_DL_SelectedPRS_ResourceSetIndex_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_dl_SelectedPRS_ResourceIndexList_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_dl_SelectedPRS_ResourceIndexList_r16_3[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_DL_SelectedPRS_ResourceIndex_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_dl_SelectedPRS_ResourceIndexList_r16_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_dl_SelectedPRS_ResourceIndexList_r16_specs_3 = { - sizeof(struct DL_Selected_PRS_ResourceSetIndex_r16__dl_SelectedPRS_ResourceIndexList_r16), - offsetof(struct DL_Selected_PRS_ResourceSetIndex_r16__dl_SelectedPRS_ResourceIndexList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_dl_SelectedPRS_ResourceIndexList_r16_3 = { - "dl-SelectedPRS-ResourceIndexList-r16", - "dl-SelectedPRS-ResourceIndexList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_dl_SelectedPRS_ResourceIndexList_r16_tags_3, - sizeof(asn_DEF_dl_SelectedPRS_ResourceIndexList_r16_tags_3) - /sizeof(asn_DEF_dl_SelectedPRS_ResourceIndexList_r16_tags_3[0]) - 1, /* 1 */ - asn_DEF_dl_SelectedPRS_ResourceIndexList_r16_tags_3, /* Same as above */ - sizeof(asn_DEF_dl_SelectedPRS_ResourceIndexList_r16_tags_3) - /sizeof(asn_DEF_dl_SelectedPRS_ResourceIndexList_r16_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_dl_SelectedPRS_ResourceIndexList_r16_constr_3, SEQUENCE_OF_constraint }, - asn_MBR_dl_SelectedPRS_ResourceIndexList_r16_3, - 1, /* Single element */ - &asn_SPC_dl_SelectedPRS_ResourceIndexList_r16_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_DL_Selected_PRS_ResourceSetIndex_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DL_Selected_PRS_ResourceSetIndex_r16, nr_DL_SelectedPRS_ResourceSetIndex_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_DL_SelectedPRS_ResourceSetIndex_r16_constr_2, memb_nr_DL_SelectedPRS_ResourceSetIndex_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-DL-SelectedPRS-ResourceSetIndex-r16" - }, - { ATF_POINTER, 1, offsetof(struct DL_Selected_PRS_ResourceSetIndex_r16, dl_SelectedPRS_ResourceIndexList_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_dl_SelectedPRS_ResourceIndexList_r16_3, - 0, - { 0, &asn_PER_memb_dl_SelectedPRS_ResourceIndexList_r16_constr_3, memb_dl_SelectedPRS_ResourceIndexList_r16_constraint_1 }, - 0, 0, /* No default value */ - "dl-SelectedPRS-ResourceIndexList-r16" - }, -}; -static const int asn_MAP_DL_Selected_PRS_ResourceSetIndex_r16_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_DL_Selected_PRS_ResourceSetIndex_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_DL_Selected_PRS_ResourceSetIndex_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-SelectedPRS-ResourceSetIndex-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dl-SelectedPRS-ResourceIndexList-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_DL_Selected_PRS_ResourceSetIndex_r16_specs_1 = { - sizeof(struct DL_Selected_PRS_ResourceSetIndex_r16), - offsetof(struct DL_Selected_PRS_ResourceSetIndex_r16, _asn_ctx), - asn_MAP_DL_Selected_PRS_ResourceSetIndex_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_DL_Selected_PRS_ResourceSetIndex_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_DL_Selected_PRS_ResourceSetIndex_r16 = { - "DL-Selected-PRS-ResourceSetIndex-r16", - "DL-Selected-PRS-ResourceSetIndex-r16", - &asn_OP_SEQUENCE, - asn_DEF_DL_Selected_PRS_ResourceSetIndex_r16_tags_1, - sizeof(asn_DEF_DL_Selected_PRS_ResourceSetIndex_r16_tags_1) - /sizeof(asn_DEF_DL_Selected_PRS_ResourceSetIndex_r16_tags_1[0]), /* 1 */ - asn_DEF_DL_Selected_PRS_ResourceSetIndex_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_DL_Selected_PRS_ResourceSetIndex_r16_tags_1) - /sizeof(asn_DEF_DL_Selected_PRS_ResourceSetIndex_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_DL_Selected_PRS_ResourceSetIndex_r16_1, - 2, /* Elements count */ - &asn_SPC_DL_Selected_PRS_ResourceSetIndex_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/DL-Selected-PRS-ResourceSetIndex-r16.h b/asn.1/generated/DL-Selected-PRS-ResourceSetIndex-r16.h deleted file mode 100644 index 71cd22fb..00000000 --- a/asn.1/generated/DL-Selected-PRS-ResourceSetIndex-r16.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _DL_Selected_PRS_ResourceSetIndex_r16_H_ -#define _DL_Selected_PRS_ResourceSetIndex_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct DL_SelectedPRS_ResourceIndex_r16; - -/* DL-Selected-PRS-ResourceSetIndex-r16 */ -typedef struct DL_Selected_PRS_ResourceSetIndex_r16 { - long nr_DL_SelectedPRS_ResourceSetIndex_r16; - struct DL_Selected_PRS_ResourceSetIndex_r16__dl_SelectedPRS_ResourceIndexList_r16 { - A_SEQUENCE_OF(struct DL_SelectedPRS_ResourceIndex_r16) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *dl_SelectedPRS_ResourceIndexList_r16; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} DL_Selected_PRS_ResourceSetIndex_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_DL_Selected_PRS_ResourceSetIndex_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_DL_Selected_PRS_ResourceSetIndex_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_DL_Selected_PRS_ResourceSetIndex_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "DL-SelectedPRS-ResourceIndex-r16.h" - -#endif /* _DL_Selected_PRS_ResourceSetIndex_r16_H_ */ -#include diff --git a/asn.1/generated/DL-SelectedPRS-ResourceIndex-r16.c b/asn.1/generated/DL-SelectedPRS-ResourceIndex-r16.c deleted file mode 100644 index f94d05a0..00000000 --- a/asn.1/generated/DL-SelectedPRS-ResourceIndex-r16.c +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DL-SelectedPRS-ResourceIndex-r16.h" - -static int -memb_nr_dl_SelectedPRS_ResourceIdIndex_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_nr_dl_SelectedPRS_ResourceIdIndex_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_DL_SelectedPRS_ResourceIndex_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DL_SelectedPRS_ResourceIndex_r16, nr_dl_SelectedPRS_ResourceIdIndex_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_dl_SelectedPRS_ResourceIdIndex_r16_constr_2, memb_nr_dl_SelectedPRS_ResourceIdIndex_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-dl-SelectedPRS-ResourceIdIndex-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_DL_SelectedPRS_ResourceIndex_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_DL_SelectedPRS_ResourceIndex_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-dl-SelectedPRS-ResourceIdIndex-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_DL_SelectedPRS_ResourceIndex_r16_specs_1 = { - sizeof(struct DL_SelectedPRS_ResourceIndex_r16), - offsetof(struct DL_SelectedPRS_ResourceIndex_r16, _asn_ctx), - asn_MAP_DL_SelectedPRS_ResourceIndex_r16_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_DL_SelectedPRS_ResourceIndex_r16 = { - "DL-SelectedPRS-ResourceIndex-r16", - "DL-SelectedPRS-ResourceIndex-r16", - &asn_OP_SEQUENCE, - asn_DEF_DL_SelectedPRS_ResourceIndex_r16_tags_1, - sizeof(asn_DEF_DL_SelectedPRS_ResourceIndex_r16_tags_1) - /sizeof(asn_DEF_DL_SelectedPRS_ResourceIndex_r16_tags_1[0]), /* 1 */ - asn_DEF_DL_SelectedPRS_ResourceIndex_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_DL_SelectedPRS_ResourceIndex_r16_tags_1) - /sizeof(asn_DEF_DL_SelectedPRS_ResourceIndex_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_DL_SelectedPRS_ResourceIndex_r16_1, - 1, /* Elements count */ - &asn_SPC_DL_SelectedPRS_ResourceIndex_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Delta-Height-r16.c b/asn.1/generated/Delta-Height-r16.c deleted file mode 100644 index c4bed9d1..00000000 --- a/asn.1/generated/Delta-Height-r16.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Delta-Height-r16.h" - -static int -memb_delta_Height_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_coarse_delta_Height_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_delta_Height_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_coarse_delta_Height_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_Delta_Height_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Delta_Height_r16, delta_Height_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_delta_Height_r16_constr_2, memb_delta_Height_r16_constraint_1 }, - 0, 0, /* No default value */ - "delta-Height-r16" - }, - { ATF_POINTER, 1, offsetof(struct Delta_Height_r16, coarse_delta_Height_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_coarse_delta_Height_r16_constr_3, memb_coarse_delta_Height_r16_constraint_1 }, - 0, 0, /* No default value */ - "coarse-delta-Height-r16" - }, -}; -static const int asn_MAP_Delta_Height_r16_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_Delta_Height_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Delta_Height_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* delta-Height-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* coarse-delta-Height-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Delta_Height_r16_specs_1 = { - sizeof(struct Delta_Height_r16), - offsetof(struct Delta_Height_r16, _asn_ctx), - asn_MAP_Delta_Height_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_Delta_Height_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Delta_Height_r16 = { - "Delta-Height-r16", - "Delta-Height-r16", - &asn_OP_SEQUENCE, - asn_DEF_Delta_Height_r16_tags_1, - sizeof(asn_DEF_Delta_Height_r16_tags_1) - /sizeof(asn_DEF_Delta_Height_r16_tags_1[0]), /* 1 */ - asn_DEF_Delta_Height_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_Delta_Height_r16_tags_1) - /sizeof(asn_DEF_Delta_Height_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Delta_Height_r16_1, - 2, /* Elements count */ - &asn_SPC_Delta_Height_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Delta-Height-r16.h b/asn.1/generated/Delta-Height-r16.h deleted file mode 100644 index fd891efc..00000000 --- a/asn.1/generated/Delta-Height-r16.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Delta_Height_r16_H_ -#define _Delta_Height_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Delta-Height-r16 */ -typedef struct Delta_Height_r16 { - long delta_Height_r16; - long *coarse_delta_Height_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Delta_Height_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Delta_Height_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_Delta_Height_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_Delta_Height_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -#endif /* _Delta_Height_r16_H_ */ -#include diff --git a/asn.1/generated/Delta-Latitude-r16.c b/asn.1/generated/Delta-Latitude-r16.c deleted file mode 100644 index e8309466..00000000 --- a/asn.1/generated/Delta-Latitude-r16.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Delta-Latitude-r16.h" - -static int -memb_delta_Latitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_coarse_delta_Latitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_delta_Latitude_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_coarse_delta_Latitude_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_Delta_Latitude_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Delta_Latitude_r16, delta_Latitude_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_delta_Latitude_r16_constr_2, memb_delta_Latitude_r16_constraint_1 }, - 0, 0, /* No default value */ - "delta-Latitude-r16" - }, - { ATF_POINTER, 1, offsetof(struct Delta_Latitude_r16, coarse_delta_Latitude_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_coarse_delta_Latitude_r16_constr_3, memb_coarse_delta_Latitude_r16_constraint_1 }, - 0, 0, /* No default value */ - "coarse-delta-Latitude-r16" - }, -}; -static const int asn_MAP_Delta_Latitude_r16_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_Delta_Latitude_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Delta_Latitude_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* delta-Latitude-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* coarse-delta-Latitude-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Delta_Latitude_r16_specs_1 = { - sizeof(struct Delta_Latitude_r16), - offsetof(struct Delta_Latitude_r16, _asn_ctx), - asn_MAP_Delta_Latitude_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_Delta_Latitude_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Delta_Latitude_r16 = { - "Delta-Latitude-r16", - "Delta-Latitude-r16", - &asn_OP_SEQUENCE, - asn_DEF_Delta_Latitude_r16_tags_1, - sizeof(asn_DEF_Delta_Latitude_r16_tags_1) - /sizeof(asn_DEF_Delta_Latitude_r16_tags_1[0]), /* 1 */ - asn_DEF_Delta_Latitude_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_Delta_Latitude_r16_tags_1) - /sizeof(asn_DEF_Delta_Latitude_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Delta_Latitude_r16_1, - 2, /* Elements count */ - &asn_SPC_Delta_Latitude_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Delta-Longitude-r16.c b/asn.1/generated/Delta-Longitude-r16.c deleted file mode 100644 index d1b55283..00000000 --- a/asn.1/generated/Delta-Longitude-r16.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Delta-Longitude-r16.h" - -static int -memb_delta_Longitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_coarse_delta_Longitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_delta_Longitude_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_coarse_delta_Longitude_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_Delta_Longitude_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Delta_Longitude_r16, delta_Longitude_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_delta_Longitude_r16_constr_2, memb_delta_Longitude_r16_constraint_1 }, - 0, 0, /* No default value */ - "delta-Longitude-r16" - }, - { ATF_POINTER, 1, offsetof(struct Delta_Longitude_r16, coarse_delta_Longitude_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_coarse_delta_Longitude_r16_constr_3, memb_coarse_delta_Longitude_r16_constraint_1 }, - 0, 0, /* No default value */ - "coarse-delta-Longitude-r16" - }, -}; -static const int asn_MAP_Delta_Longitude_r16_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_Delta_Longitude_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Delta_Longitude_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* delta-Longitude-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* coarse-delta-Longitude-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Delta_Longitude_r16_specs_1 = { - sizeof(struct Delta_Longitude_r16), - offsetof(struct Delta_Longitude_r16, _asn_ctx), - asn_MAP_Delta_Longitude_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_Delta_Longitude_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Delta_Longitude_r16 = { - "Delta-Longitude-r16", - "Delta-Longitude-r16", - &asn_OP_SEQUENCE, - asn_DEF_Delta_Longitude_r16_tags_1, - sizeof(asn_DEF_Delta_Longitude_r16_tags_1) - /sizeof(asn_DEF_Delta_Longitude_r16_tags_1[0]), /* 1 */ - asn_DEF_Delta_Longitude_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_Delta_Longitude_r16_tags_1) - /sizeof(asn_DEF_Delta_Longitude_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Delta_Longitude_r16_1, - 2, /* Elements count */ - &asn_SPC_Delta_Longitude_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/DeltaTime-r15.c b/asn.1/generated/DeltaTime-r15.c deleted file mode 100644 index 916a562d..00000000 --- a/asn.1/generated/DeltaTime-r15.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DeltaTime-r15.h" - -static int -memb_deltaTimeSec_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 16384)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_deltaTimeSFN_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 4096)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_deltaTimeSec_r15_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 1, 16384 } /* (1..16384) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_deltaTimeSFN_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 1, 4096 } /* (1..4096) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_per_constraints_t asn_PER_type_DeltaTime_r15_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_DeltaTime_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DeltaTime_r15, choice.deltaTimeSec_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_deltaTimeSec_r15_constr_2, memb_deltaTimeSec_r15_constraint_1 }, - 0, 0, /* No default value */ - "deltaTimeSec-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct DeltaTime_r15, choice.deltaTimeSFN_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_deltaTimeSFN_r15_constr_3, memb_deltaTimeSFN_r15_constraint_1 }, - 0, 0, /* No default value */ - "deltaTimeSFN-r15" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_DeltaTime_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* deltaTimeSec-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* deltaTimeSFN-r15 */ -}; -asn_CHOICE_specifics_t asn_SPC_DeltaTime_r15_specs_1 = { - sizeof(struct DeltaTime_r15), - offsetof(struct DeltaTime_r15, _asn_ctx), - offsetof(struct DeltaTime_r15, present), - sizeof(((struct DeltaTime_r15 *)0)->present), - asn_MAP_DeltaTime_r15_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_DeltaTime_r15 = { - "DeltaTime-r15", - "DeltaTime-r15", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_DeltaTime_r15_constr_1, CHOICE_constraint }, - asn_MBR_DeltaTime_r15_1, - 2, /* Elements count */ - &asn_SPC_DeltaTime_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Displacement-r15.c b/asn.1/generated/Displacement-r15.c deleted file mode 100644 index 84ca64fb..00000000 --- a/asn.1/generated/Displacement-r15.c +++ /dev/null @@ -1,476 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Displacement-r15.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_bearing_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3599)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bearingUncConfidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_horizontalDistance_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_horizontalDistanceUnc_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_horizontalUncConfidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_verticalDistance_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_verticalDistanceUnc_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_verticalUncConfidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_bearingRef_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_verticalDirection_r15_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bearing_r15_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bearingUncConfidence_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_horizontalDistance_r15_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, 0, 8191 } /* (0..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_horizontalDistanceUnc_r15_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_horizontalUncConfidence_r15_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_verticalDistance_r15_constr_14 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, 0, 8191 } /* (0..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_verticalDistanceUnc_r15_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_verticalUncConfidence_r15_constr_16 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_bearingRef_r15_value2enum_4[] = { - { 0, 15, "geographicNorth" }, - { 1, 13, "magneticNorth" }, - { 2, 5, "local" } -}; -static const unsigned int asn_MAP_bearingRef_r15_enum2value_4[] = { - 0, /* geographicNorth(0) */ - 2, /* local(2) */ - 1 /* magneticNorth(1) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_bearingRef_r15_specs_4 = { - asn_MAP_bearingRef_r15_value2enum_4, /* "tag" => N; sorted by tag */ - asn_MAP_bearingRef_r15_enum2value_4, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_bearingRef_r15_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_bearingRef_r15_4 = { - "bearingRef-r15", - "bearingRef-r15", - &asn_OP_NativeEnumerated, - asn_DEF_bearingRef_r15_tags_4, - sizeof(asn_DEF_bearingRef_r15_tags_4) - /sizeof(asn_DEF_bearingRef_r15_tags_4[0]) - 1, /* 1 */ - asn_DEF_bearingRef_r15_tags_4, /* Same as above */ - sizeof(asn_DEF_bearingRef_r15_tags_4) - /sizeof(asn_DEF_bearingRef_r15_tags_4[0]), /* 2 */ - { 0, &asn_PER_type_bearingRef_r15_constr_4, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_bearingRef_r15_specs_4 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_verticalDirection_r15_value2enum_11[] = { - { 0, 6, "upward" }, - { 1, 8, "downward" } -}; -static const unsigned int asn_MAP_verticalDirection_r15_enum2value_11[] = { - 1, /* downward(1) */ - 0 /* upward(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_verticalDirection_r15_specs_11 = { - asn_MAP_verticalDirection_r15_value2enum_11, /* "tag" => N; sorted by tag */ - asn_MAP_verticalDirection_r15_enum2value_11, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_verticalDirection_r15_tags_11[] = { - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_verticalDirection_r15_11 = { - "verticalDirection-r15", - "verticalDirection-r15", - &asn_OP_NativeEnumerated, - asn_DEF_verticalDirection_r15_tags_11, - sizeof(asn_DEF_verticalDirection_r15_tags_11) - /sizeof(asn_DEF_verticalDirection_r15_tags_11[0]) - 1, /* 1 */ - asn_DEF_verticalDirection_r15_tags_11, /* Same as above */ - sizeof(asn_DEF_verticalDirection_r15_tags_11) - /sizeof(asn_DEF_verticalDirection_r15_tags_11[0]), /* 2 */ - { 0, &asn_PER_type_verticalDirection_r15_constr_11, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_verticalDirection_r15_specs_11 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_Displacement_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Displacement_r15, bearing_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bearing_r15_constr_2, memb_bearing_r15_constraint_1 }, - 0, 0, /* No default value */ - "bearing-r15" - }, - { ATF_POINTER, 1, offsetof(struct Displacement_r15, bearingUncConfidence_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bearingUncConfidence_r15_constr_3, memb_bearingUncConfidence_r15_constraint_1 }, - 0, 0, /* No default value */ - "bearingUncConfidence-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct Displacement_r15, bearingRef_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_bearingRef_r15_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bearingRef-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct Displacement_r15, horizontalDistance_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_horizontalDistance_r15_constr_8, memb_horizontalDistance_r15_constraint_1 }, - 0, 0, /* No default value */ - "horizontalDistance-r15" - }, - { ATF_POINTER, 6, offsetof(struct Displacement_r15, horizontalDistanceUnc_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_horizontalDistanceUnc_r15_constr_9, memb_horizontalDistanceUnc_r15_constraint_1 }, - 0, 0, /* No default value */ - "horizontalDistanceUnc-r15" - }, - { ATF_POINTER, 5, offsetof(struct Displacement_r15, horizontalUncConfidence_r15), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_horizontalUncConfidence_r15_constr_10, memb_horizontalUncConfidence_r15_constraint_1 }, - 0, 0, /* No default value */ - "horizontalUncConfidence-r15" - }, - { ATF_POINTER, 4, offsetof(struct Displacement_r15, verticalDirection_r15), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_verticalDirection_r15_11, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "verticalDirection-r15" - }, - { ATF_POINTER, 3, offsetof(struct Displacement_r15, verticalDistance_r15), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_verticalDistance_r15_constr_14, memb_verticalDistance_r15_constraint_1 }, - 0, 0, /* No default value */ - "verticalDistance-r15" - }, - { ATF_POINTER, 2, offsetof(struct Displacement_r15, verticalDistanceUnc_r15), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_verticalDistanceUnc_r15_constr_15, memb_verticalDistanceUnc_r15_constraint_1 }, - 0, 0, /* No default value */ - "verticalDistanceUnc-r15" - }, - { ATF_POINTER, 1, offsetof(struct Displacement_r15, verticalUncConfidence_r15), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_verticalUncConfidence_r15_constr_16, memb_verticalUncConfidence_r15_constraint_1 }, - 0, 0, /* No default value */ - "verticalUncConfidence-r15" - }, -}; -static const int asn_MAP_Displacement_r15_oms_1[] = { 1, 4, 5, 6, 7, 8, 9 }; -static const ber_tlv_tag_t asn_DEF_Displacement_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Displacement_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bearing-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bearingUncConfidence-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bearingRef-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* horizontalDistance-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* horizontalDistanceUnc-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* horizontalUncConfidence-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* verticalDirection-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* verticalDistance-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* verticalDistanceUnc-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* verticalUncConfidence-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Displacement_r15_specs_1 = { - sizeof(struct Displacement_r15), - offsetof(struct Displacement_r15, _asn_ctx), - asn_MAP_Displacement_r15_tag2el_1, - 10, /* Count of tags in the map */ - asn_MAP_Displacement_r15_oms_1, /* Optional members */ - 7, 0, /* Root/Additions */ - 10, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Displacement_r15 = { - "Displacement-r15", - "Displacement-r15", - &asn_OP_SEQUENCE, - asn_DEF_Displacement_r15_tags_1, - sizeof(asn_DEF_Displacement_r15_tags_1) - /sizeof(asn_DEF_Displacement_r15_tags_1[0]), /* 1 */ - asn_DEF_Displacement_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_Displacement_r15_tags_1) - /sizeof(asn_DEF_Displacement_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Displacement_r15_1, - 10, /* Elements count */ - &asn_SPC_Displacement_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Displacement-r15.h b/asn.1/generated/Displacement-r15.h deleted file mode 100644 index 43da2aef..00000000 --- a/asn.1/generated/Displacement-r15.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Displacement_r15_H_ -#define _Displacement_r15_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum Displacement_r15__bearingRef_r15 { - Displacement_r15__bearingRef_r15_geographicNorth = 0, - Displacement_r15__bearingRef_r15_magneticNorth = 1, - Displacement_r15__bearingRef_r15_local = 2 -} e_Displacement_r15__bearingRef_r15; -typedef enum Displacement_r15__verticalDirection_r15 { - Displacement_r15__verticalDirection_r15_upward = 0, - Displacement_r15__verticalDirection_r15_downward = 1 -} e_Displacement_r15__verticalDirection_r15; - -/* Displacement-r15 */ -typedef struct Displacement_r15 { - long bearing_r15; - long *bearingUncConfidence_r15 /* OPTIONAL */; - long bearingRef_r15; - long horizontalDistance_r15; - long *horizontalDistanceUnc_r15 /* OPTIONAL */; - long *horizontalUncConfidence_r15 /* OPTIONAL */; - long *verticalDirection_r15 /* OPTIONAL */; - long *verticalDistance_r15 /* OPTIONAL */; - long *verticalDistanceUnc_r15 /* OPTIONAL */; - long *verticalUncConfidence_r15 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Displacement_r15_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_bearingRef_r15_4; // (Use -fall-defs-global to expose) */ -/* extern asn_TYPE_descriptor_t asn_DEF_verticalDirection_r15_11; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_Displacement_r15; -extern asn_SEQUENCE_specifics_t asn_SPC_Displacement_r15_specs_1; -extern asn_TYPE_member_t asn_MBR_Displacement_r15_1[10]; - -#ifdef __cplusplus -} -#endif - -#endif /* _Displacement_r15_H_ */ -#include diff --git a/asn.1/generated/DisplacementInfoList-r15.c b/asn.1/generated/DisplacementInfoList-r15.c deleted file mode 100644 index 09b13594..00000000 --- a/asn.1/generated/DisplacementInfoList-r15.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DisplacementInfoList-r15.h" - -asn_per_constraints_t asn_PER_type_DisplacementInfoList_r15_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 7, 7, 1, 128 } /* (SIZE(1..128)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_DisplacementInfoList_r15_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_DisplacementInfoListElement_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_DisplacementInfoList_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_DisplacementInfoList_r15_specs_1 = { - sizeof(struct DisplacementInfoList_r15), - offsetof(struct DisplacementInfoList_r15, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_DisplacementInfoList_r15 = { - "DisplacementInfoList-r15", - "DisplacementInfoList-r15", - &asn_OP_SEQUENCE_OF, - asn_DEF_DisplacementInfoList_r15_tags_1, - sizeof(asn_DEF_DisplacementInfoList_r15_tags_1) - /sizeof(asn_DEF_DisplacementInfoList_r15_tags_1[0]), /* 1 */ - asn_DEF_DisplacementInfoList_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_DisplacementInfoList_r15_tags_1) - /sizeof(asn_DEF_DisplacementInfoList_r15_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_DisplacementInfoList_r15_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_DisplacementInfoList_r15_1, - 1, /* Single element */ - &asn_SPC_DisplacementInfoList_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/DisplacementInfoListElement-r15.c b/asn.1/generated/DisplacementInfoListElement-r15.c deleted file mode 100644 index 1d9c12a4..00000000 --- a/asn.1/generated/DisplacementInfoListElement-r15.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DisplacementInfoListElement-r15.h" - -asn_TYPE_member_t asn_MBR_DisplacementInfoListElement_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DisplacementInfoListElement_r15, deltaTimeStamp_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_DeltaTime_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "deltaTimeStamp-r15" - }, - { ATF_POINTER, 1, offsetof(struct DisplacementInfoListElement_r15, displacement_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Displacement_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "displacement-r15" - }, -}; -static const int asn_MAP_DisplacementInfoListElement_r15_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_DisplacementInfoListElement_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_DisplacementInfoListElement_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* deltaTimeStamp-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* displacement-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_DisplacementInfoListElement_r15_specs_1 = { - sizeof(struct DisplacementInfoListElement_r15), - offsetof(struct DisplacementInfoListElement_r15, _asn_ctx), - asn_MAP_DisplacementInfoListElement_r15_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_DisplacementInfoListElement_r15_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_DisplacementInfoListElement_r15 = { - "DisplacementInfoListElement-r15", - "DisplacementInfoListElement-r15", - &asn_OP_SEQUENCE, - asn_DEF_DisplacementInfoListElement_r15_tags_1, - sizeof(asn_DEF_DisplacementInfoListElement_r15_tags_1) - /sizeof(asn_DEF_DisplacementInfoListElement_r15_tags_1[0]), /* 1 */ - asn_DEF_DisplacementInfoListElement_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_DisplacementInfoListElement_r15_tags_1) - /sizeof(asn_DEF_DisplacementInfoListElement_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_DisplacementInfoListElement_r15_1, - 2, /* Elements count */ - &asn_SPC_DisplacementInfoListElement_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/DisplacementTimeStamp-r15.c b/asn.1/generated/DisplacementTimeStamp-r15.c deleted file mode 100644 index c35416ff..00000000 --- a/asn.1/generated/DisplacementTimeStamp-r15.c +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "DisplacementTimeStamp-r15.h" - -static int -memb_measurementSFN_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8192 && value <= 9214)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_measurementSFN_r15_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, -8192, 9214 } /* (-8192..9214) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_per_constraints_t asn_PER_type_DisplacementTimeStamp_r15_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_DisplacementTimeStamp_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DisplacementTimeStamp_r15, choice.utcTime_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTC_Time_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utcTime-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct DisplacementTimeStamp_r15, choice.gnssTime_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MeasurementReferenceTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnssTime-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct DisplacementTimeStamp_r15, choice.systemFrameNumber_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SFN_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "systemFrameNumber-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct DisplacementTimeStamp_r15, choice.measurementSFN_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_measurementSFN_r15_constr_5, memb_measurementSFN_r15_constraint_1 }, - 0, 0, /* No default value */ - "measurementSFN-r15" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_DisplacementTimeStamp_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utcTime-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnssTime-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* systemFrameNumber-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* measurementSFN-r15 */ -}; -asn_CHOICE_specifics_t asn_SPC_DisplacementTimeStamp_r15_specs_1 = { - sizeof(struct DisplacementTimeStamp_r15), - offsetof(struct DisplacementTimeStamp_r15, _asn_ctx), - offsetof(struct DisplacementTimeStamp_r15, present), - sizeof(((struct DisplacementTimeStamp_r15 *)0)->present), - asn_MAP_DisplacementTimeStamp_r15_tag2el_1, - 4, /* Count of tags in the map */ - 0, 0, - 4 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_DisplacementTimeStamp_r15 = { - "DisplacementTimeStamp-r15", - "DisplacementTimeStamp-r15", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_DisplacementTimeStamp_r15_constr_1, CHOICE_constraint }, - asn_MBR_DisplacementTimeStamp_r15_1, - 4, /* Elements count */ - &asn_SPC_DisplacementTimeStamp_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ECGI.c b/asn.1/generated/ECGI.c deleted file mode 100644 index 890d9875..00000000 --- a/asn.1/generated/ECGI.c +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ECGI.h" - -static int -memb_NativeInteger_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 9)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_NativeInteger_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 9)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_mcc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size == 3)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_mnc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 2 && size <= 3)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cellidentity_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 28)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_Member_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_mcc_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_Member_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_mnc_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_mcc_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_mnc_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cellidentity_constr_6 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 28, 28 } /* (SIZE(28..28)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_mcc_2[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_Member_constr_3, memb_NativeInteger_constraint_2 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_mcc_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_mcc_specs_2 = { - sizeof(struct ECGI__mcc), - offsetof(struct ECGI__mcc, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_mcc_2 = { - "mcc", - "mcc", - &asn_OP_SEQUENCE_OF, - asn_DEF_mcc_tags_2, - sizeof(asn_DEF_mcc_tags_2) - /sizeof(asn_DEF_mcc_tags_2[0]) - 1, /* 1 */ - asn_DEF_mcc_tags_2, /* Same as above */ - sizeof(asn_DEF_mcc_tags_2) - /sizeof(asn_DEF_mcc_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_mcc_constr_2, SEQUENCE_OF_constraint }, - asn_MBR_mcc_2, - 1, /* Single element */ - &asn_SPC_mcc_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_mnc_4[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_Member_constr_5, memb_NativeInteger_constraint_4 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_mnc_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_mnc_specs_4 = { - sizeof(struct ECGI__mnc), - offsetof(struct ECGI__mnc, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_mnc_4 = { - "mnc", - "mnc", - &asn_OP_SEQUENCE_OF, - asn_DEF_mnc_tags_4, - sizeof(asn_DEF_mnc_tags_4) - /sizeof(asn_DEF_mnc_tags_4[0]) - 1, /* 1 */ - asn_DEF_mnc_tags_4, /* Same as above */ - sizeof(asn_DEF_mnc_tags_4) - /sizeof(asn_DEF_mnc_tags_4[0]), /* 2 */ - { 0, &asn_PER_type_mnc_constr_4, SEQUENCE_OF_constraint }, - asn_MBR_mnc_4, - 1, /* Single element */ - &asn_SPC_mnc_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_ECGI_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ECGI, mcc), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_mcc_2, - 0, - { 0, &asn_PER_memb_mcc_constr_2, memb_mcc_constraint_1 }, - 0, 0, /* No default value */ - "mcc" - }, - { ATF_NOFLAGS, 0, offsetof(struct ECGI, mnc), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_mnc_4, - 0, - { 0, &asn_PER_memb_mnc_constr_4, memb_mnc_constraint_1 }, - 0, 0, /* No default value */ - "mnc" - }, - { ATF_NOFLAGS, 0, offsetof(struct ECGI, cellidentity), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_cellidentity_constr_6, memb_cellidentity_constraint_1 }, - 0, 0, /* No default value */ - "cellidentity" - }, -}; -static const ber_tlv_tag_t asn_DEF_ECGI_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ECGI_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mcc */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* mnc */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* cellidentity */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ECGI_specs_1 = { - sizeof(struct ECGI), - offsetof(struct ECGI, _asn_ctx), - asn_MAP_ECGI_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ECGI = { - "ECGI", - "ECGI", - &asn_OP_SEQUENCE, - asn_DEF_ECGI_tags_1, - sizeof(asn_DEF_ECGI_tags_1) - /sizeof(asn_DEF_ECGI_tags_1[0]), /* 1 */ - asn_DEF_ECGI_tags_1, /* Same as above */ - sizeof(asn_DEF_ECGI_tags_1) - /sizeof(asn_DEF_ECGI_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ECGI_1, - 3, /* Elements count */ - &asn_SPC_ECGI_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ECID-Error.c b/asn.1/generated/ECID-Error.c deleted file mode 100644 index f994417c..00000000 --- a/asn.1/generated/ECID-Error.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ECID-Error.h" - -asn_per_constraints_t asn_PER_type_ECID_Error_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_ECID_Error_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ECID_Error, choice.locationServerErrorCauses), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ECID_LocationServerErrorCauses, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationServerErrorCauses" - }, - { ATF_NOFLAGS, 0, offsetof(struct ECID_Error, choice.targetDeviceErrorCauses), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ECID_TargetDeviceErrorCauses, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "targetDeviceErrorCauses" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_ECID_Error_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses */ -}; -asn_CHOICE_specifics_t asn_SPC_ECID_Error_specs_1 = { - sizeof(struct ECID_Error), - offsetof(struct ECID_Error, _asn_ctx), - offsetof(struct ECID_Error, present), - sizeof(((struct ECID_Error *)0)->present), - asn_MAP_ECID_Error_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_ECID_Error = { - "ECID-Error", - "ECID-Error", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_ECID_Error_constr_1, CHOICE_constraint }, - asn_MBR_ECID_Error_1, - 2, /* Elements count */ - &asn_SPC_ECID_Error_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ECID-LocationServerErrorCauses.c b/asn.1/generated/ECID-LocationServerErrorCauses.c deleted file mode 100644 index 72783057..00000000 --- a/asn.1/generated/ECID-LocationServerErrorCauses.c +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ECID-LocationServerErrorCauses.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_value2enum_2[] = { - { 0, 9, "undefined" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_enum2value_2[] = { - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_specs_2 = { - asn_MAP_cause_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_enum2value_2, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 2, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_2 = { - "cause", - "cause", - &asn_OP_NativeEnumerated, - asn_DEF_cause_tags_2, - sizeof(asn_DEF_cause_tags_2) - /sizeof(asn_DEF_cause_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_tags_2) - /sizeof(asn_DEF_cause_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_ECID_LocationServerErrorCauses_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ECID_LocationServerErrorCauses, cause), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause" - }, -}; -static const ber_tlv_tag_t asn_DEF_ECID_LocationServerErrorCauses_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ECID_LocationServerErrorCauses_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ECID_LocationServerErrorCauses_specs_1 = { - sizeof(struct ECID_LocationServerErrorCauses), - offsetof(struct ECID_LocationServerErrorCauses, _asn_ctx), - asn_MAP_ECID_LocationServerErrorCauses_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ECID_LocationServerErrorCauses = { - "ECID-LocationServerErrorCauses", - "ECID-LocationServerErrorCauses", - &asn_OP_SEQUENCE, - asn_DEF_ECID_LocationServerErrorCauses_tags_1, - sizeof(asn_DEF_ECID_LocationServerErrorCauses_tags_1) - /sizeof(asn_DEF_ECID_LocationServerErrorCauses_tags_1[0]), /* 1 */ - asn_DEF_ECID_LocationServerErrorCauses_tags_1, /* Same as above */ - sizeof(asn_DEF_ECID_LocationServerErrorCauses_tags_1) - /sizeof(asn_DEF_ECID_LocationServerErrorCauses_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ECID_LocationServerErrorCauses_1, - 1, /* Elements count */ - &asn_SPC_ECID_LocationServerErrorCauses_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ECID-ProvideCapabilities.c b/asn.1/generated/ECID-ProvideCapabilities.c deleted file mode 100644 index de2ec616..00000000 --- a/asn.1/generated/ECID-ProvideCapabilities.c +++ /dev/null @@ -1,394 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ECID-ProvideCapabilities.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_ecid_MeasSupported_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_ueRxTxSupTDD_r13_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_periodicalReporting_r14_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_triggeredReporting_r14_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_idleStateForMeasurements_r14_constr_17 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ecid_MeasSupported_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_ueRxTxSupTDD_r13_value2enum_10[] = { - { 0, 4, "true" } -}; -static const unsigned int asn_MAP_ueRxTxSupTDD_r13_enum2value_10[] = { - 0 /* true(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_ueRxTxSupTDD_r13_specs_10 = { - asn_MAP_ueRxTxSupTDD_r13_value2enum_10, /* "tag" => N; sorted by tag */ - asn_MAP_ueRxTxSupTDD_r13_enum2value_10, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_ueRxTxSupTDD_r13_tags_10[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ueRxTxSupTDD_r13_10 = { - "ueRxTxSupTDD-r13", - "ueRxTxSupTDD-r13", - &asn_OP_NativeEnumerated, - asn_DEF_ueRxTxSupTDD_r13_tags_10, - sizeof(asn_DEF_ueRxTxSupTDD_r13_tags_10) - /sizeof(asn_DEF_ueRxTxSupTDD_r13_tags_10[0]) - 1, /* 1 */ - asn_DEF_ueRxTxSupTDD_r13_tags_10, /* Same as above */ - sizeof(asn_DEF_ueRxTxSupTDD_r13_tags_10) - /sizeof(asn_DEF_ueRxTxSupTDD_r13_tags_10[0]), /* 2 */ - { 0, &asn_PER_type_ueRxTxSupTDD_r13_constr_10, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_ueRxTxSupTDD_r13_specs_10 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_9[] = { - { ATF_POINTER, 1, offsetof(struct ECID_ProvideCapabilities__ext1, ueRxTxSupTDD_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ueRxTxSupTDD_r13_10, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ueRxTxSupTDD-r13" - }, -}; -static const int asn_MAP_ext1_oms_9[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_9[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_9[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ueRxTxSupTDD-r13 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_9 = { - sizeof(struct ECID_ProvideCapabilities__ext1), - offsetof(struct ECID_ProvideCapabilities__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_9, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_9, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_9 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_9, - sizeof(asn_DEF_ext1_tags_9) - /sizeof(asn_DEF_ext1_tags_9[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_9, /* Same as above */ - sizeof(asn_DEF_ext1_tags_9) - /sizeof(asn_DEF_ext1_tags_9[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_9, - 1, /* Elements count */ - &asn_SPC_ext1_specs_9 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_periodicalReporting_r14_value2enum_13[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_periodicalReporting_r14_enum2value_13[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_periodicalReporting_r14_specs_13 = { - asn_MAP_periodicalReporting_r14_value2enum_13, /* "tag" => N; sorted by tag */ - asn_MAP_periodicalReporting_r14_enum2value_13, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_periodicalReporting_r14_tags_13[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_periodicalReporting_r14_13 = { - "periodicalReporting-r14", - "periodicalReporting-r14", - &asn_OP_NativeEnumerated, - asn_DEF_periodicalReporting_r14_tags_13, - sizeof(asn_DEF_periodicalReporting_r14_tags_13) - /sizeof(asn_DEF_periodicalReporting_r14_tags_13[0]) - 1, /* 1 */ - asn_DEF_periodicalReporting_r14_tags_13, /* Same as above */ - sizeof(asn_DEF_periodicalReporting_r14_tags_13) - /sizeof(asn_DEF_periodicalReporting_r14_tags_13[0]), /* 2 */ - { 0, &asn_PER_type_periodicalReporting_r14_constr_13, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_periodicalReporting_r14_specs_13 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_triggeredReporting_r14_value2enum_15[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_triggeredReporting_r14_enum2value_15[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_triggeredReporting_r14_specs_15 = { - asn_MAP_triggeredReporting_r14_value2enum_15, /* "tag" => N; sorted by tag */ - asn_MAP_triggeredReporting_r14_enum2value_15, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_triggeredReporting_r14_tags_15[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_triggeredReporting_r14_15 = { - "triggeredReporting-r14", - "triggeredReporting-r14", - &asn_OP_NativeEnumerated, - asn_DEF_triggeredReporting_r14_tags_15, - sizeof(asn_DEF_triggeredReporting_r14_tags_15) - /sizeof(asn_DEF_triggeredReporting_r14_tags_15[0]) - 1, /* 1 */ - asn_DEF_triggeredReporting_r14_tags_15, /* Same as above */ - sizeof(asn_DEF_triggeredReporting_r14_tags_15) - /sizeof(asn_DEF_triggeredReporting_r14_tags_15[0]), /* 2 */ - { 0, &asn_PER_type_triggeredReporting_r14_constr_15, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_triggeredReporting_r14_specs_15 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_idleStateForMeasurements_r14_value2enum_17[] = { - { 0, 8, "required" } -}; -static const unsigned int asn_MAP_idleStateForMeasurements_r14_enum2value_17[] = { - 0 /* required(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_idleStateForMeasurements_r14_specs_17 = { - asn_MAP_idleStateForMeasurements_r14_value2enum_17, /* "tag" => N; sorted by tag */ - asn_MAP_idleStateForMeasurements_r14_enum2value_17, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_idleStateForMeasurements_r14_tags_17[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_idleStateForMeasurements_r14_17 = { - "idleStateForMeasurements-r14", - "idleStateForMeasurements-r14", - &asn_OP_NativeEnumerated, - asn_DEF_idleStateForMeasurements_r14_tags_17, - sizeof(asn_DEF_idleStateForMeasurements_r14_tags_17) - /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_17[0]) - 1, /* 1 */ - asn_DEF_idleStateForMeasurements_r14_tags_17, /* Same as above */ - sizeof(asn_DEF_idleStateForMeasurements_r14_tags_17) - /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_17[0]), /* 2 */ - { 0, &asn_PER_type_idleStateForMeasurements_r14_constr_17, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_idleStateForMeasurements_r14_specs_17 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_12[] = { - { ATF_POINTER, 3, offsetof(struct ECID_ProvideCapabilities__ext2, periodicalReporting_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_periodicalReporting_r14_13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "periodicalReporting-r14" - }, - { ATF_POINTER, 2, offsetof(struct ECID_ProvideCapabilities__ext2, triggeredReporting_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_triggeredReporting_r14_15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "triggeredReporting-r14" - }, - { ATF_POINTER, 1, offsetof(struct ECID_ProvideCapabilities__ext2, idleStateForMeasurements_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_idleStateForMeasurements_r14_17, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "idleStateForMeasurements-r14" - }, -}; -static const int asn_MAP_ext2_oms_12[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_12[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_12[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* periodicalReporting-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* triggeredReporting-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* idleStateForMeasurements-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_12 = { - sizeof(struct ECID_ProvideCapabilities__ext2), - offsetof(struct ECID_ProvideCapabilities__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_12, - 3, /* Count of tags in the map */ - asn_MAP_ext2_oms_12, /* Optional members */ - 3, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_12 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_12, - sizeof(asn_DEF_ext2_tags_12) - /sizeof(asn_DEF_ext2_tags_12[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_12, /* Same as above */ - sizeof(asn_DEF_ext2_tags_12) - /sizeof(asn_DEF_ext2_tags_12[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_12, - 3, /* Elements count */ - &asn_SPC_ext2_specs_12 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_ECID_ProvideCapabilities_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ECID_ProvideCapabilities, ecid_MeasSupported), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_ecid_MeasSupported_constr_2, memb_ecid_MeasSupported_constraint_1 }, - 0, 0, /* No default value */ - "ecid-MeasSupported" - }, - { ATF_POINTER, 2, offsetof(struct ECID_ProvideCapabilities, ext1), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_ext1_9, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct ECID_ProvideCapabilities, ext2), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_ext2_12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_ECID_ProvideCapabilities_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_ECID_ProvideCapabilities_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ECID_ProvideCapabilities_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ecid-MeasSupported */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ECID_ProvideCapabilities_specs_1 = { - sizeof(struct ECID_ProvideCapabilities), - offsetof(struct ECID_ProvideCapabilities, _asn_ctx), - asn_MAP_ECID_ProvideCapabilities_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_ECID_ProvideCapabilities_oms_1, /* Optional members */ - 0, 2, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ECID_ProvideCapabilities = { - "ECID-ProvideCapabilities", - "ECID-ProvideCapabilities", - &asn_OP_SEQUENCE, - asn_DEF_ECID_ProvideCapabilities_tags_1, - sizeof(asn_DEF_ECID_ProvideCapabilities_tags_1) - /sizeof(asn_DEF_ECID_ProvideCapabilities_tags_1[0]), /* 1 */ - asn_DEF_ECID_ProvideCapabilities_tags_1, /* Same as above */ - sizeof(asn_DEF_ECID_ProvideCapabilities_tags_1) - /sizeof(asn_DEF_ECID_ProvideCapabilities_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ECID_ProvideCapabilities_1, - 3, /* Elements count */ - &asn_SPC_ECID_ProvideCapabilities_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ECID-ProvideLocationInformation.c b/asn.1/generated/ECID-ProvideLocationInformation.c deleted file mode 100644 index 61c76637..00000000 --- a/asn.1/generated/ECID-ProvideLocationInformation.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ECID-ProvideLocationInformation.h" - -asn_TYPE_member_t asn_MBR_ECID_ProvideLocationInformation_1[] = { - { ATF_POINTER, 2, offsetof(struct ECID_ProvideLocationInformation, ecid_SignalMeasurementInformation), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ECID_SignalMeasurementInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ecid-SignalMeasurementInformation" - }, - { ATF_POINTER, 1, offsetof(struct ECID_ProvideLocationInformation, ecid_Error), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_ECID_Error, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ecid-Error" - }, -}; -static const int asn_MAP_ECID_ProvideLocationInformation_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ECID_ProvideLocationInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ECID_ProvideLocationInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ecid-SignalMeasurementInformation */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ecid-Error */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ECID_ProvideLocationInformation_specs_1 = { - sizeof(struct ECID_ProvideLocationInformation), - offsetof(struct ECID_ProvideLocationInformation, _asn_ctx), - asn_MAP_ECID_ProvideLocationInformation_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_ECID_ProvideLocationInformation_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ECID_ProvideLocationInformation = { - "ECID-ProvideLocationInformation", - "ECID-ProvideLocationInformation", - &asn_OP_SEQUENCE, - asn_DEF_ECID_ProvideLocationInformation_tags_1, - sizeof(asn_DEF_ECID_ProvideLocationInformation_tags_1) - /sizeof(asn_DEF_ECID_ProvideLocationInformation_tags_1[0]), /* 1 */ - asn_DEF_ECID_ProvideLocationInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_ECID_ProvideLocationInformation_tags_1) - /sizeof(asn_DEF_ECID_ProvideLocationInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ECID_ProvideLocationInformation_1, - 2, /* Elements count */ - &asn_SPC_ECID_ProvideLocationInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ECID-RequestCapabilities.c b/asn.1/generated/ECID-RequestCapabilities.c deleted file mode 100644 index 5d8e7718..00000000 --- a/asn.1/generated/ECID-RequestCapabilities.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ECID-RequestCapabilities.h" - -static const ber_tlv_tag_t asn_DEF_ECID_RequestCapabilities_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_ECID_RequestCapabilities_specs_1 = { - sizeof(struct ECID_RequestCapabilities), - offsetof(struct ECID_RequestCapabilities, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ECID_RequestCapabilities = { - "ECID-RequestCapabilities", - "ECID-RequestCapabilities", - &asn_OP_SEQUENCE, - asn_DEF_ECID_RequestCapabilities_tags_1, - sizeof(asn_DEF_ECID_RequestCapabilities_tags_1) - /sizeof(asn_DEF_ECID_RequestCapabilities_tags_1[0]), /* 1 */ - asn_DEF_ECID_RequestCapabilities_tags_1, /* Same as above */ - sizeof(asn_DEF_ECID_RequestCapabilities_tags_1) - /sizeof(asn_DEF_ECID_RequestCapabilities_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_ECID_RequestCapabilities_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ECID-RequestLocationInformation.c b/asn.1/generated/ECID-RequestLocationInformation.c deleted file mode 100644 index ddd7d228..00000000 --- a/asn.1/generated/ECID-RequestLocationInformation.c +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ECID-RequestLocationInformation.h" - -static int -memb_requestedMeasurements_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_requestedMeasurements_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_ECID_RequestLocationInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ECID_RequestLocationInformation, requestedMeasurements), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_requestedMeasurements_constr_2, memb_requestedMeasurements_constraint_1 }, - 0, 0, /* No default value */ - "requestedMeasurements" - }, -}; -static const ber_tlv_tag_t asn_DEF_ECID_RequestLocationInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ECID_RequestLocationInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* requestedMeasurements */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ECID_RequestLocationInformation_specs_1 = { - sizeof(struct ECID_RequestLocationInformation), - offsetof(struct ECID_RequestLocationInformation, _asn_ctx), - asn_MAP_ECID_RequestLocationInformation_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ECID_RequestLocationInformation = { - "ECID-RequestLocationInformation", - "ECID-RequestLocationInformation", - &asn_OP_SEQUENCE, - asn_DEF_ECID_RequestLocationInformation_tags_1, - sizeof(asn_DEF_ECID_RequestLocationInformation_tags_1) - /sizeof(asn_DEF_ECID_RequestLocationInformation_tags_1[0]), /* 1 */ - asn_DEF_ECID_RequestLocationInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_ECID_RequestLocationInformation_tags_1) - /sizeof(asn_DEF_ECID_RequestLocationInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ECID_RequestLocationInformation_1, - 1, /* Elements count */ - &asn_SPC_ECID_RequestLocationInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ECID-SignalMeasurementInformation.c b/asn.1/generated/ECID-SignalMeasurementInformation.c deleted file mode 100644 index 87b78ebb..00000000 --- a/asn.1/generated/ECID-SignalMeasurementInformation.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ECID-SignalMeasurementInformation.h" - -asn_TYPE_member_t asn_MBR_ECID_SignalMeasurementInformation_1[] = { - { ATF_POINTER, 1, offsetof(struct ECID_SignalMeasurementInformation, primaryCellMeasuredResults), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MeasuredResultsElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "primaryCellMeasuredResults" - }, - { ATF_NOFLAGS, 0, offsetof(struct ECID_SignalMeasurementInformation, measuredResultsList), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MeasuredResultsList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "measuredResultsList" - }, -}; -static const int asn_MAP_ECID_SignalMeasurementInformation_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ECID_SignalMeasurementInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ECID_SignalMeasurementInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* primaryCellMeasuredResults */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* measuredResultsList */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ECID_SignalMeasurementInformation_specs_1 = { - sizeof(struct ECID_SignalMeasurementInformation), - offsetof(struct ECID_SignalMeasurementInformation, _asn_ctx), - asn_MAP_ECID_SignalMeasurementInformation_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_ECID_SignalMeasurementInformation_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ECID_SignalMeasurementInformation = { - "ECID-SignalMeasurementInformation", - "ECID-SignalMeasurementInformation", - &asn_OP_SEQUENCE, - asn_DEF_ECID_SignalMeasurementInformation_tags_1, - sizeof(asn_DEF_ECID_SignalMeasurementInformation_tags_1) - /sizeof(asn_DEF_ECID_SignalMeasurementInformation_tags_1[0]), /* 1 */ - asn_DEF_ECID_SignalMeasurementInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_ECID_SignalMeasurementInformation_tags_1) - /sizeof(asn_DEF_ECID_SignalMeasurementInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ECID_SignalMeasurementInformation_1, - 2, /* Elements count */ - &asn_SPC_ECID_SignalMeasurementInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ECID-TargetDeviceErrorCauses.c b/asn.1/generated/ECID-TargetDeviceErrorCauses.c deleted file mode 100644 index 1d1ec890..00000000 --- a/asn.1/generated/ECID-TargetDeviceErrorCauses.c +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ECID-TargetDeviceErrorCauses.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 32, "requestedMeasurementNotAvailable" }, - { 2, 35, "notAllrequestedMeasurementsPossible" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_enum2value_2[] = { - 2, /* notAllrequestedMeasurementsPossible(2) */ - 1, /* requestedMeasurementNotAvailable(1) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_specs_2 = { - asn_MAP_cause_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_enum2value_2, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 4, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_2 = { - "cause", - "cause", - &asn_OP_NativeEnumerated, - asn_DEF_cause_tags_2, - sizeof(asn_DEF_cause_tags_2) - /sizeof(asn_DEF_cause_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_tags_2) - /sizeof(asn_DEF_cause_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_11[] = { - { ATF_POINTER, 2, offsetof(struct ECID_TargetDeviceErrorCauses__ext1, nrsrpMeasurementNotPossible_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nrsrpMeasurementNotPossible-r14" - }, - { ATF_POINTER, 1, offsetof(struct ECID_TargetDeviceErrorCauses__ext1, nrsrqMeasurementNotPossible_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nrsrqMeasurementNotPossible-r14" - }, -}; -static const int asn_MAP_ext1_oms_11[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_11[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_11[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nrsrpMeasurementNotPossible-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nrsrqMeasurementNotPossible-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_11 = { - sizeof(struct ECID_TargetDeviceErrorCauses__ext1), - offsetof(struct ECID_TargetDeviceErrorCauses__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_11, - 2, /* Count of tags in the map */ - asn_MAP_ext1_oms_11, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_11 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_11, - sizeof(asn_DEF_ext1_tags_11) - /sizeof(asn_DEF_ext1_tags_11[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_11, /* Same as above */ - sizeof(asn_DEF_ext1_tags_11) - /sizeof(asn_DEF_ext1_tags_11[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_11, - 2, /* Elements count */ - &asn_SPC_ext1_specs_11 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_ECID_TargetDeviceErrorCauses_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ECID_TargetDeviceErrorCauses, cause), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause" - }, - { ATF_POINTER, 4, offsetof(struct ECID_TargetDeviceErrorCauses, rsrpMeasurementNotPossible), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rsrpMeasurementNotPossible" - }, - { ATF_POINTER, 3, offsetof(struct ECID_TargetDeviceErrorCauses, rsrqMeasurementNotPossible), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rsrqMeasurementNotPossible" - }, - { ATF_POINTER, 2, offsetof(struct ECID_TargetDeviceErrorCauses, ueRxTxMeasurementNotPossible), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ueRxTxMeasurementNotPossible" - }, - { ATF_POINTER, 1, offsetof(struct ECID_TargetDeviceErrorCauses, ext1), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - 0, - &asn_DEF_ext1_11, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_ECID_TargetDeviceErrorCauses_oms_1[] = { 1, 2, 3, 4 }; -static const ber_tlv_tag_t asn_DEF_ECID_TargetDeviceErrorCauses_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ECID_TargetDeviceErrorCauses_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* rsrpMeasurementNotPossible */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* rsrqMeasurementNotPossible */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ueRxTxMeasurementNotPossible */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ECID_TargetDeviceErrorCauses_specs_1 = { - sizeof(struct ECID_TargetDeviceErrorCauses), - offsetof(struct ECID_TargetDeviceErrorCauses, _asn_ctx), - asn_MAP_ECID_TargetDeviceErrorCauses_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_ECID_TargetDeviceErrorCauses_oms_1, /* Optional members */ - 3, 1, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ECID_TargetDeviceErrorCauses = { - "ECID-TargetDeviceErrorCauses", - "ECID-TargetDeviceErrorCauses", - &asn_OP_SEQUENCE, - asn_DEF_ECID_TargetDeviceErrorCauses_tags_1, - sizeof(asn_DEF_ECID_TargetDeviceErrorCauses_tags_1) - /sizeof(asn_DEF_ECID_TargetDeviceErrorCauses_tags_1[0]), /* 1 */ - asn_DEF_ECID_TargetDeviceErrorCauses_tags_1, /* Same as above */ - sizeof(asn_DEF_ECID_TargetDeviceErrorCauses_tags_1) - /sizeof(asn_DEF_ECID_TargetDeviceErrorCauses_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ECID_TargetDeviceErrorCauses_1, - 5, /* Elements count */ - &asn_SPC_ECID_TargetDeviceErrorCauses_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/EPDU-Body.c b/asn.1/generated/EPDU-Body.c deleted file mode 100644 index 8153698b..00000000 --- a/asn.1/generated/EPDU-Body.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "EPDU-Body.h" - -/* - * This type is implemented using OCTET_STRING, - * so here we adjust the DEF accordingly. - */ -static const ber_tlv_tag_t asn_DEF_EPDU_Body_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_EPDU_Body = { - "EPDU-Body", - "EPDU-Body", - &asn_OP_OCTET_STRING, - asn_DEF_EPDU_Body_tags_1, - sizeof(asn_DEF_EPDU_Body_tags_1) - /sizeof(asn_DEF_EPDU_Body_tags_1[0]), /* 1 */ - asn_DEF_EPDU_Body_tags_1, /* Same as above */ - sizeof(asn_DEF_EPDU_Body_tags_1) - /sizeof(asn_DEF_EPDU_Body_tags_1[0]), /* 1 */ - { 0, 0, OCTET_STRING_constraint }, - 0, 0, /* No members */ - &asn_SPC_OCTET_STRING_specs /* Additional specs */ -}; - diff --git a/asn.1/generated/EPDU-Body.h b/asn.1/generated/EPDU-Body.h deleted file mode 100644 index 04bb6943..00000000 --- a/asn.1/generated/EPDU-Body.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _EPDU_Body_H_ -#define _EPDU_Body_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* EPDU-Body */ -typedef OCTET_STRING_t EPDU_Body_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_EPDU_Body; -asn_struct_free_f EPDU_Body_free; -asn_struct_print_f EPDU_Body_print; -asn_constr_check_f EPDU_Body_constraint; -ber_type_decoder_f EPDU_Body_decode_ber; -der_type_encoder_f EPDU_Body_encode_der; -xer_type_decoder_f EPDU_Body_decode_xer; -xer_type_encoder_f EPDU_Body_encode_xer; -per_type_decoder_f EPDU_Body_decode_uper; -per_type_encoder_f EPDU_Body_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _EPDU_Body_H_ */ -#include diff --git a/asn.1/generated/EPDU-ID.c b/asn.1/generated/EPDU-ID.c deleted file mode 100644 index 55ee35ca..00000000 --- a/asn.1/generated/EPDU-ID.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "EPDU-ID.h" - -int -EPDU_ID_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 256)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_EPDU_ID_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 1, 256 } /* (1..256) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_EPDU_ID_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_EPDU_ID = { - "EPDU-ID", - "EPDU-ID", - &asn_OP_NativeInteger, - asn_DEF_EPDU_ID_tags_1, - sizeof(asn_DEF_EPDU_ID_tags_1) - /sizeof(asn_DEF_EPDU_ID_tags_1[0]), /* 1 */ - asn_DEF_EPDU_ID_tags_1, /* Same as above */ - sizeof(asn_DEF_EPDU_ID_tags_1) - /sizeof(asn_DEF_EPDU_ID_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_EPDU_ID_constr_1, EPDU_ID_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/EPDU-ID.h b/asn.1/generated/EPDU-ID.h deleted file mode 100644 index fb8269f0..00000000 --- a/asn.1/generated/EPDU-ID.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _EPDU_ID_H_ -#define _EPDU_ID_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* EPDU-ID */ -typedef long EPDU_ID_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_EPDU_ID_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_EPDU_ID; -asn_struct_free_f EPDU_ID_free; -asn_struct_print_f EPDU_ID_print; -asn_constr_check_f EPDU_ID_constraint; -ber_type_decoder_f EPDU_ID_decode_ber; -der_type_encoder_f EPDU_ID_encode_der; -xer_type_decoder_f EPDU_ID_decode_xer; -xer_type_encoder_f EPDU_ID_encode_xer; -per_type_decoder_f EPDU_ID_decode_uper; -per_type_encoder_f EPDU_ID_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _EPDU_ID_H_ */ -#include diff --git a/asn.1/generated/EPDU-Identifier.c b/asn.1/generated/EPDU-Identifier.c deleted file mode 100644 index 81a577aa..00000000 --- a/asn.1/generated/EPDU-Identifier.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "EPDU-Identifier.h" - -asn_TYPE_member_t asn_MBR_EPDU_Identifier_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct EPDU_Identifier, ePDU_ID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EPDU_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ePDU-ID" - }, - { ATF_POINTER, 1, offsetof(struct EPDU_Identifier, ePDU_Name), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EPDU_Name, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ePDU-Name" - }, -}; -static const int asn_MAP_EPDU_Identifier_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_EPDU_Identifier_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_EPDU_Identifier_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ePDU-ID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ePDU-Name */ -}; -asn_SEQUENCE_specifics_t asn_SPC_EPDU_Identifier_specs_1 = { - sizeof(struct EPDU_Identifier), - offsetof(struct EPDU_Identifier, _asn_ctx), - asn_MAP_EPDU_Identifier_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_EPDU_Identifier_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_EPDU_Identifier = { - "EPDU-Identifier", - "EPDU-Identifier", - &asn_OP_SEQUENCE, - asn_DEF_EPDU_Identifier_tags_1, - sizeof(asn_DEF_EPDU_Identifier_tags_1) - /sizeof(asn_DEF_EPDU_Identifier_tags_1[0]), /* 1 */ - asn_DEF_EPDU_Identifier_tags_1, /* Same as above */ - sizeof(asn_DEF_EPDU_Identifier_tags_1) - /sizeof(asn_DEF_EPDU_Identifier_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_EPDU_Identifier_1, - 2, /* Elements count */ - &asn_SPC_EPDU_Identifier_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/EPDU-Name.c b/asn.1/generated/EPDU-Name.c deleted file mode 100644 index 42021a30..00000000 --- a/asn.1/generated/EPDU-Name.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "EPDU-Name.h" - -static int check_permitted_alphabet_1(const void *sptr) { - /* The underlying type is VisibleString */ - const VisibleString_t *st = (const VisibleString_t *)sptr; - const uint8_t *ch = st->buf; - const uint8_t *end = ch + st->size; - - for(; ch < end; ch++) { - uint8_t cv = *ch; - if(!(cv >= 32 && cv <= 126)) return -1; - } - return 0; -} - -int -EPDU_Name_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const VisibleString_t *st = (const VisibleString_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size >= 1 && size <= 32) - && !check_permitted_alphabet_1(st)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using VisibleString, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_EPDU_Name_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 32, 126 } /* (32..126) */, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER character map necessary */ -}; -static const ber_tlv_tag_t asn_DEF_EPDU_Name_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_EPDU_Name = { - "EPDU-Name", - "EPDU-Name", - &asn_OP_VisibleString, - asn_DEF_EPDU_Name_tags_1, - sizeof(asn_DEF_EPDU_Name_tags_1) - /sizeof(asn_DEF_EPDU_Name_tags_1[0]), /* 1 */ - asn_DEF_EPDU_Name_tags_1, /* Same as above */ - sizeof(asn_DEF_EPDU_Name_tags_1) - /sizeof(asn_DEF_EPDU_Name_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_EPDU_Name_constr_1, EPDU_Name_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/EPDU-Name.h b/asn.1/generated/EPDU-Name.h deleted file mode 100644 index 5e63701d..00000000 --- a/asn.1/generated/EPDU-Name.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _EPDU_Name_H_ -#define _EPDU_Name_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* EPDU-Name */ -typedef VisibleString_t EPDU_Name_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_EPDU_Name_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_EPDU_Name; -asn_struct_free_f EPDU_Name_free; -asn_struct_print_f EPDU_Name_print; -asn_constr_check_f EPDU_Name_constraint; -ber_type_decoder_f EPDU_Name_decode_ber; -der_type_encoder_f EPDU_Name_encode_der; -xer_type_decoder_f EPDU_Name_decode_xer; -xer_type_encoder_f EPDU_Name_encode_xer; -per_type_decoder_f EPDU_Name_decode_uper; -per_type_encoder_f EPDU_Name_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _EPDU_Name_H_ */ -#include diff --git a/asn.1/generated/EPDU-Sequence.c b/asn.1/generated/EPDU-Sequence.c deleted file mode 100644 index 80bee014..00000000 --- a/asn.1/generated/EPDU-Sequence.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "EPDU-Sequence.h" - -asn_per_constraints_t asn_PER_type_EPDU_Sequence_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_EPDU_Sequence_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_EPDU, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_EPDU_Sequence_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_EPDU_Sequence_specs_1 = { - sizeof(struct EPDU_Sequence), - offsetof(struct EPDU_Sequence, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_EPDU_Sequence = { - "EPDU-Sequence", - "EPDU-Sequence", - &asn_OP_SEQUENCE_OF, - asn_DEF_EPDU_Sequence_tags_1, - sizeof(asn_DEF_EPDU_Sequence_tags_1) - /sizeof(asn_DEF_EPDU_Sequence_tags_1[0]), /* 1 */ - asn_DEF_EPDU_Sequence_tags_1, /* Same as above */ - sizeof(asn_DEF_EPDU_Sequence_tags_1) - /sizeof(asn_DEF_EPDU_Sequence_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_EPDU_Sequence_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_EPDU_Sequence_1, - 1, /* Single element */ - &asn_SPC_EPDU_Sequence_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/EPDU.c b/asn.1/generated/EPDU.c deleted file mode 100644 index 328fbc19..00000000 --- a/asn.1/generated/EPDU.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "EPDU.h" - -asn_TYPE_member_t asn_MBR_EPDU_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct EPDU, ePDU_Identifier), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EPDU_Identifier, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ePDU-Identifier" - }, - { ATF_NOFLAGS, 0, offsetof(struct EPDU, ePDU_Body), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EPDU_Body, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ePDU-Body" - }, -}; -static const ber_tlv_tag_t asn_DEF_EPDU_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_EPDU_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ePDU-Identifier */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ePDU-Body */ -}; -asn_SEQUENCE_specifics_t asn_SPC_EPDU_specs_1 = { - sizeof(struct EPDU), - offsetof(struct EPDU, _asn_ctx), - asn_MAP_EPDU_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_EPDU = { - "EPDU", - "EPDU", - &asn_OP_SEQUENCE, - asn_DEF_EPDU_tags_1, - sizeof(asn_DEF_EPDU_tags_1) - /sizeof(asn_DEF_EPDU_tags_1[0]), /* 1 */ - asn_DEF_EPDU_tags_1, /* Same as above */ - sizeof(asn_DEF_EPDU_tags_1) - /sizeof(asn_DEF_EPDU_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_EPDU_1, - 2, /* Elements count */ - &asn_SPC_EPDU_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/EarlyFixReport-r12.c b/asn.1/generated/EarlyFixReport-r12.c deleted file mode 100644 index 0ca3ba2e..00000000 --- a/asn.1/generated/EarlyFixReport-r12.c +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "EarlyFixReport-r12.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_EarlyFixReport_r12_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_EarlyFixReport_r12_value2enum_1[] = { - { 0, 14, "noMoreMessages" }, - { 1, 20, "moreMessagesOnTheWay" } -}; -static const unsigned int asn_MAP_EarlyFixReport_r12_enum2value_1[] = { - 1, /* moreMessagesOnTheWay(1) */ - 0 /* noMoreMessages(0) */ -}; -const asn_INTEGER_specifics_t asn_SPC_EarlyFixReport_r12_specs_1 = { - asn_MAP_EarlyFixReport_r12_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_EarlyFixReport_r12_enum2value_1, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_EarlyFixReport_r12_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_EarlyFixReport_r12 = { - "EarlyFixReport-r12", - "EarlyFixReport-r12", - &asn_OP_NativeEnumerated, - asn_DEF_EarlyFixReport_r12_tags_1, - sizeof(asn_DEF_EarlyFixReport_r12_tags_1) - /sizeof(asn_DEF_EarlyFixReport_r12_tags_1[0]), /* 1 */ - asn_DEF_EarlyFixReport_r12_tags_1, /* Same as above */ - sizeof(asn_DEF_EarlyFixReport_r12_tags_1) - /sizeof(asn_DEF_EarlyFixReport_r12_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_EarlyFixReport_r12_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_EarlyFixReport_r12_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ellipsoid-Point.c b/asn.1/generated/Ellipsoid-Point.c deleted file mode 100644 index 7d33d5f3..00000000 --- a/asn.1/generated/Ellipsoid-Point.c +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ellipsoid-Point.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_degreesLatitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_degreesLongitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_latitudeSign_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_degreesLatitude_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_degreesLongitude_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_latitudeSign_value2enum_2[] = { - { 0, 5, "north" }, - { 1, 5, "south" } -}; -static const unsigned int asn_MAP_latitudeSign_enum2value_2[] = { - 0, /* north(0) */ - 1 /* south(1) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_latitudeSign_specs_2 = { - asn_MAP_latitudeSign_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_latitudeSign_enum2value_2, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_latitudeSign_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_latitudeSign_2 = { - "latitudeSign", - "latitudeSign", - &asn_OP_NativeEnumerated, - asn_DEF_latitudeSign_tags_2, - sizeof(asn_DEF_latitudeSign_tags_2) - /sizeof(asn_DEF_latitudeSign_tags_2[0]) - 1, /* 1 */ - asn_DEF_latitudeSign_tags_2, /* Same as above */ - sizeof(asn_DEF_latitudeSign_tags_2) - /sizeof(asn_DEF_latitudeSign_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_latitudeSign_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_latitudeSign_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_Ellipsoid_Point_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Ellipsoid_Point, latitudeSign), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_latitudeSign_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "latitudeSign" - }, - { ATF_NOFLAGS, 0, offsetof(struct Ellipsoid_Point, degreesLatitude), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_degreesLatitude_constr_5, memb_degreesLatitude_constraint_1 }, - 0, 0, /* No default value */ - "degreesLatitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct Ellipsoid_Point, degreesLongitude), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_degreesLongitude_constr_6, memb_degreesLongitude_constraint_1 }, - 0, 0, /* No default value */ - "degreesLongitude" - }, -}; -static const ber_tlv_tag_t asn_DEF_Ellipsoid_Point_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ellipsoid_Point_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeSign */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLatitude */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* degreesLongitude */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ellipsoid_Point_specs_1 = { - sizeof(struct Ellipsoid_Point), - offsetof(struct Ellipsoid_Point, _asn_ctx), - asn_MAP_Ellipsoid_Point_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ellipsoid_Point = { - "Ellipsoid-Point", - "Ellipsoid-Point", - &asn_OP_SEQUENCE, - asn_DEF_Ellipsoid_Point_tags_1, - sizeof(asn_DEF_Ellipsoid_Point_tags_1) - /sizeof(asn_DEF_Ellipsoid_Point_tags_1[0]), /* 1 */ - asn_DEF_Ellipsoid_Point_tags_1, /* Same as above */ - sizeof(asn_DEF_Ellipsoid_Point_tags_1) - /sizeof(asn_DEF_Ellipsoid_Point_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ellipsoid_Point_1, - 3, /* Elements count */ - &asn_SPC_Ellipsoid_Point_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ellipsoid-PointWithUncertaintyCircle.c b/asn.1/generated/Ellipsoid-PointWithUncertaintyCircle.c deleted file mode 100644 index bed64a68..00000000 --- a/asn.1/generated/Ellipsoid-PointWithUncertaintyCircle.c +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ellipsoid-PointWithUncertaintyCircle.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_degreesLatitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_degreesLongitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_uncertainty_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_latitudeSign_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_degreesLatitude_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_degreesLongitude_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_uncertainty_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_latitudeSign_value2enum_2[] = { - { 0, 5, "north" }, - { 1, 5, "south" } -}; -static const unsigned int asn_MAP_latitudeSign_enum2value_2[] = { - 0, /* north(0) */ - 1 /* south(1) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_latitudeSign_specs_2 = { - asn_MAP_latitudeSign_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_latitudeSign_enum2value_2, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_latitudeSign_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_latitudeSign_2 = { - "latitudeSign", - "latitudeSign", - &asn_OP_NativeEnumerated, - asn_DEF_latitudeSign_tags_2, - sizeof(asn_DEF_latitudeSign_tags_2) - /sizeof(asn_DEF_latitudeSign_tags_2[0]) - 1, /* 1 */ - asn_DEF_latitudeSign_tags_2, /* Same as above */ - sizeof(asn_DEF_latitudeSign_tags_2) - /sizeof(asn_DEF_latitudeSign_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_latitudeSign_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_latitudeSign_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_Ellipsoid_PointWithUncertaintyCircle_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Ellipsoid_PointWithUncertaintyCircle, latitudeSign), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_latitudeSign_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "latitudeSign" - }, - { ATF_NOFLAGS, 0, offsetof(struct Ellipsoid_PointWithUncertaintyCircle, degreesLatitude), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_degreesLatitude_constr_5, memb_degreesLatitude_constraint_1 }, - 0, 0, /* No default value */ - "degreesLatitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct Ellipsoid_PointWithUncertaintyCircle, degreesLongitude), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_degreesLongitude_constr_6, memb_degreesLongitude_constraint_1 }, - 0, 0, /* No default value */ - "degreesLongitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct Ellipsoid_PointWithUncertaintyCircle, uncertainty), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_uncertainty_constr_7, memb_uncertainty_constraint_1 }, - 0, 0, /* No default value */ - "uncertainty" - }, -}; -static const ber_tlv_tag_t asn_DEF_Ellipsoid_PointWithUncertaintyCircle_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ellipsoid_PointWithUncertaintyCircle_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeSign */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLatitude */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* degreesLongitude */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* uncertainty */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ellipsoid_PointWithUncertaintyCircle_specs_1 = { - sizeof(struct Ellipsoid_PointWithUncertaintyCircle), - offsetof(struct Ellipsoid_PointWithUncertaintyCircle, _asn_ctx), - asn_MAP_Ellipsoid_PointWithUncertaintyCircle_tag2el_1, - 4, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ellipsoid_PointWithUncertaintyCircle = { - "Ellipsoid-PointWithUncertaintyCircle", - "Ellipsoid-PointWithUncertaintyCircle", - &asn_OP_SEQUENCE, - asn_DEF_Ellipsoid_PointWithUncertaintyCircle_tags_1, - sizeof(asn_DEF_Ellipsoid_PointWithUncertaintyCircle_tags_1) - /sizeof(asn_DEF_Ellipsoid_PointWithUncertaintyCircle_tags_1[0]), /* 1 */ - asn_DEF_Ellipsoid_PointWithUncertaintyCircle_tags_1, /* Same as above */ - sizeof(asn_DEF_Ellipsoid_PointWithUncertaintyCircle_tags_1) - /sizeof(asn_DEF_Ellipsoid_PointWithUncertaintyCircle_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ellipsoid_PointWithUncertaintyCircle_1, - 4, /* Elements count */ - &asn_SPC_Ellipsoid_PointWithUncertaintyCircle_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/EllipsoidArc.c b/asn.1/generated/EllipsoidArc.c deleted file mode 100644 index 5e8dea26..00000000 --- a/asn.1/generated/EllipsoidArc.c +++ /dev/null @@ -1,376 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "EllipsoidArc.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_degreesLatitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_degreesLongitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_innerRadius_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_uncertaintyRadius_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_offsetAngle_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 179)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_includedAngle_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 179)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_confidence_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_latitudeSign_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_degreesLatitude_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_degreesLongitude_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_innerRadius_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_uncertaintyRadius_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_offsetAngle_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 179 } /* (0..179) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_includedAngle_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 179 } /* (0..179) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_confidence_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_latitudeSign_value2enum_2[] = { - { 0, 5, "north" }, - { 1, 5, "south" } -}; -static const unsigned int asn_MAP_latitudeSign_enum2value_2[] = { - 0, /* north(0) */ - 1 /* south(1) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_latitudeSign_specs_2 = { - asn_MAP_latitudeSign_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_latitudeSign_enum2value_2, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_latitudeSign_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_latitudeSign_2 = { - "latitudeSign", - "latitudeSign", - &asn_OP_NativeEnumerated, - asn_DEF_latitudeSign_tags_2, - sizeof(asn_DEF_latitudeSign_tags_2) - /sizeof(asn_DEF_latitudeSign_tags_2[0]) - 1, /* 1 */ - asn_DEF_latitudeSign_tags_2, /* Same as above */ - sizeof(asn_DEF_latitudeSign_tags_2) - /sizeof(asn_DEF_latitudeSign_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_latitudeSign_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_latitudeSign_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_EllipsoidArc_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidArc, latitudeSign), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_latitudeSign_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "latitudeSign" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidArc, degreesLatitude), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_degreesLatitude_constr_5, memb_degreesLatitude_constraint_1 }, - 0, 0, /* No default value */ - "degreesLatitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidArc, degreesLongitude), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_degreesLongitude_constr_6, memb_degreesLongitude_constraint_1 }, - 0, 0, /* No default value */ - "degreesLongitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidArc, innerRadius), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_innerRadius_constr_7, memb_innerRadius_constraint_1 }, - 0, 0, /* No default value */ - "innerRadius" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidArc, uncertaintyRadius), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_uncertaintyRadius_constr_8, memb_uncertaintyRadius_constraint_1 }, - 0, 0, /* No default value */ - "uncertaintyRadius" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidArc, offsetAngle), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_offsetAngle_constr_9, memb_offsetAngle_constraint_1 }, - 0, 0, /* No default value */ - "offsetAngle" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidArc, includedAngle), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_includedAngle_constr_10, memb_includedAngle_constraint_1 }, - 0, 0, /* No default value */ - "includedAngle" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidArc, confidence), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_confidence_constr_11, memb_confidence_constraint_1 }, - 0, 0, /* No default value */ - "confidence" - }, -}; -static const ber_tlv_tag_t asn_DEF_EllipsoidArc_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_EllipsoidArc_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeSign */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLatitude */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* degreesLongitude */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* innerRadius */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* uncertaintyRadius */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* offsetAngle */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* includedAngle */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* confidence */ -}; -asn_SEQUENCE_specifics_t asn_SPC_EllipsoidArc_specs_1 = { - sizeof(struct EllipsoidArc), - offsetof(struct EllipsoidArc, _asn_ctx), - asn_MAP_EllipsoidArc_tag2el_1, - 8, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_EllipsoidArc = { - "EllipsoidArc", - "EllipsoidArc", - &asn_OP_SEQUENCE, - asn_DEF_EllipsoidArc_tags_1, - sizeof(asn_DEF_EllipsoidArc_tags_1) - /sizeof(asn_DEF_EllipsoidArc_tags_1[0]), /* 1 */ - asn_DEF_EllipsoidArc_tags_1, /* Same as above */ - sizeof(asn_DEF_EllipsoidArc_tags_1) - /sizeof(asn_DEF_EllipsoidArc_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_EllipsoidArc_1, - 8, /* Elements count */ - &asn_SPC_EllipsoidArc_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/EllipsoidPointWithAltitude.c b/asn.1/generated/EllipsoidPointWithAltitude.c deleted file mode 100644 index 1fa3a6d1..00000000 --- a/asn.1/generated/EllipsoidPointWithAltitude.c +++ /dev/null @@ -1,272 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "EllipsoidPointWithAltitude.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_degreesLatitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_degreesLongitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_altitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_latitudeSign_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_altitudeDirection_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_degreesLatitude_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_degreesLongitude_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_altitude_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_latitudeSign_value2enum_2[] = { - { 0, 5, "north" }, - { 1, 5, "south" } -}; -static const unsigned int asn_MAP_latitudeSign_enum2value_2[] = { - 0, /* north(0) */ - 1 /* south(1) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_latitudeSign_specs_2 = { - asn_MAP_latitudeSign_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_latitudeSign_enum2value_2, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_latitudeSign_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_latitudeSign_2 = { - "latitudeSign", - "latitudeSign", - &asn_OP_NativeEnumerated, - asn_DEF_latitudeSign_tags_2, - sizeof(asn_DEF_latitudeSign_tags_2) - /sizeof(asn_DEF_latitudeSign_tags_2[0]) - 1, /* 1 */ - asn_DEF_latitudeSign_tags_2, /* Same as above */ - sizeof(asn_DEF_latitudeSign_tags_2) - /sizeof(asn_DEF_latitudeSign_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_latitudeSign_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_latitudeSign_specs_2 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_altitudeDirection_value2enum_7[] = { - { 0, 6, "height" }, - { 1, 5, "depth" } -}; -static const unsigned int asn_MAP_altitudeDirection_enum2value_7[] = { - 1, /* depth(1) */ - 0 /* height(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_altitudeDirection_specs_7 = { - asn_MAP_altitudeDirection_value2enum_7, /* "tag" => N; sorted by tag */ - asn_MAP_altitudeDirection_enum2value_7, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_altitudeDirection_tags_7[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_altitudeDirection_7 = { - "altitudeDirection", - "altitudeDirection", - &asn_OP_NativeEnumerated, - asn_DEF_altitudeDirection_tags_7, - sizeof(asn_DEF_altitudeDirection_tags_7) - /sizeof(asn_DEF_altitudeDirection_tags_7[0]) - 1, /* 1 */ - asn_DEF_altitudeDirection_tags_7, /* Same as above */ - sizeof(asn_DEF_altitudeDirection_tags_7) - /sizeof(asn_DEF_altitudeDirection_tags_7[0]), /* 2 */ - { 0, &asn_PER_type_altitudeDirection_constr_7, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_altitudeDirection_specs_7 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_EllipsoidPointWithAltitude_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitude, latitudeSign), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_latitudeSign_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "latitudeSign" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitude, degreesLatitude), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_degreesLatitude_constr_5, memb_degreesLatitude_constraint_1 }, - 0, 0, /* No default value */ - "degreesLatitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitude, degreesLongitude), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_degreesLongitude_constr_6, memb_degreesLongitude_constraint_1 }, - 0, 0, /* No default value */ - "degreesLongitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitude, altitudeDirection), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_altitudeDirection_7, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "altitudeDirection" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitude, altitude), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_altitude_constr_10, memb_altitude_constraint_1 }, - 0, 0, /* No default value */ - "altitude" - }, -}; -static const ber_tlv_tag_t asn_DEF_EllipsoidPointWithAltitude_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_EllipsoidPointWithAltitude_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeSign */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLatitude */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* degreesLongitude */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* altitudeDirection */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* altitude */ -}; -asn_SEQUENCE_specifics_t asn_SPC_EllipsoidPointWithAltitude_specs_1 = { - sizeof(struct EllipsoidPointWithAltitude), - offsetof(struct EllipsoidPointWithAltitude, _asn_ctx), - asn_MAP_EllipsoidPointWithAltitude_tag2el_1, - 5, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_EllipsoidPointWithAltitude = { - "EllipsoidPointWithAltitude", - "EllipsoidPointWithAltitude", - &asn_OP_SEQUENCE, - asn_DEF_EllipsoidPointWithAltitude_tags_1, - sizeof(asn_DEF_EllipsoidPointWithAltitude_tags_1) - /sizeof(asn_DEF_EllipsoidPointWithAltitude_tags_1[0]), /* 1 */ - asn_DEF_EllipsoidPointWithAltitude_tags_1, /* Same as above */ - sizeof(asn_DEF_EllipsoidPointWithAltitude_tags_1) - /sizeof(asn_DEF_EllipsoidPointWithAltitude_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_EllipsoidPointWithAltitude_1, - 5, /* Elements count */ - &asn_SPC_EllipsoidPointWithAltitude_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.c b/asn.1/generated/EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.c deleted file mode 100644 index d1b3205a..00000000 --- a/asn.1/generated/EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.c +++ /dev/null @@ -1,472 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_degreesLatitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_degreesLongitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_altitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_uncertaintySemiMajor_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_uncertaintySemiMinor_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_orientationMajorAxis_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 179)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_uncertaintyAltitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_confidence_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_latitudeSign_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_altitudeDirection_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_degreesLatitude_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_degreesLongitude_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_altitude_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_uncertaintySemiMajor_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_uncertaintySemiMinor_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_orientationMajorAxis_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 179 } /* (0..179) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_uncertaintyAltitude_constr_14 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_confidence_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_latitudeSign_value2enum_2[] = { - { 0, 5, "north" }, - { 1, 5, "south" } -}; -static const unsigned int asn_MAP_latitudeSign_enum2value_2[] = { - 0, /* north(0) */ - 1 /* south(1) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_latitudeSign_specs_2 = { - asn_MAP_latitudeSign_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_latitudeSign_enum2value_2, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_latitudeSign_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_latitudeSign_2 = { - "latitudeSign", - "latitudeSign", - &asn_OP_NativeEnumerated, - asn_DEF_latitudeSign_tags_2, - sizeof(asn_DEF_latitudeSign_tags_2) - /sizeof(asn_DEF_latitudeSign_tags_2[0]) - 1, /* 1 */ - asn_DEF_latitudeSign_tags_2, /* Same as above */ - sizeof(asn_DEF_latitudeSign_tags_2) - /sizeof(asn_DEF_latitudeSign_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_latitudeSign_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_latitudeSign_specs_2 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_altitudeDirection_value2enum_7[] = { - { 0, 6, "height" }, - { 1, 5, "depth" } -}; -static const unsigned int asn_MAP_altitudeDirection_enum2value_7[] = { - 1, /* depth(1) */ - 0 /* height(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_altitudeDirection_specs_7 = { - asn_MAP_altitudeDirection_value2enum_7, /* "tag" => N; sorted by tag */ - asn_MAP_altitudeDirection_enum2value_7, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_altitudeDirection_tags_7[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_altitudeDirection_7 = { - "altitudeDirection", - "altitudeDirection", - &asn_OP_NativeEnumerated, - asn_DEF_altitudeDirection_tags_7, - sizeof(asn_DEF_altitudeDirection_tags_7) - /sizeof(asn_DEF_altitudeDirection_tags_7[0]) - 1, /* 1 */ - asn_DEF_altitudeDirection_tags_7, /* Same as above */ - sizeof(asn_DEF_altitudeDirection_tags_7) - /sizeof(asn_DEF_altitudeDirection_tags_7[0]), /* 2 */ - { 0, &asn_PER_type_altitudeDirection_constr_7, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_altitudeDirection_specs_7 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, latitudeSign), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_latitudeSign_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "latitudeSign" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, degreesLatitude), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_degreesLatitude_constr_5, memb_degreesLatitude_constraint_1 }, - 0, 0, /* No default value */ - "degreesLatitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, degreesLongitude), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_degreesLongitude_constr_6, memb_degreesLongitude_constraint_1 }, - 0, 0, /* No default value */ - "degreesLongitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, altitudeDirection), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_altitudeDirection_7, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "altitudeDirection" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, altitude), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_altitude_constr_10, memb_altitude_constraint_1 }, - 0, 0, /* No default value */ - "altitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, uncertaintySemiMajor), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_uncertaintySemiMajor_constr_11, memb_uncertaintySemiMajor_constraint_1 }, - 0, 0, /* No default value */ - "uncertaintySemiMajor" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, uncertaintySemiMinor), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_uncertaintySemiMinor_constr_12, memb_uncertaintySemiMinor_constraint_1 }, - 0, 0, /* No default value */ - "uncertaintySemiMinor" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, orientationMajorAxis), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_orientationMajorAxis_constr_13, memb_orientationMajorAxis_constraint_1 }, - 0, 0, /* No default value */ - "orientationMajorAxis" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, uncertaintyAltitude), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_uncertaintyAltitude_constr_14, memb_uncertaintyAltitude_constraint_1 }, - 0, 0, /* No default value */ - "uncertaintyAltitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, confidence), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_confidence_constr_15, memb_confidence_constraint_1 }, - 0, 0, /* No default value */ - "confidence" - }, -}; -static const ber_tlv_tag_t asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeSign */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLatitude */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* degreesLongitude */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* altitudeDirection */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* altitude */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* uncertaintySemiMajor */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* uncertaintySemiMinor */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* orientationMajorAxis */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* uncertaintyAltitude */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* confidence */ -}; -asn_SEQUENCE_specifics_t asn_SPC_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_specs_1 = { - sizeof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid), - offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, _asn_ctx), - asn_MAP_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_tag2el_1, - 10, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid = { - "EllipsoidPointWithAltitudeAndUncertaintyEllipsoid", - "EllipsoidPointWithAltitudeAndUncertaintyEllipsoid", - &asn_OP_SEQUENCE, - asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_tags_1, - sizeof(asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_tags_1) - /sizeof(asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_tags_1[0]), /* 1 */ - asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_tags_1, /* Same as above */ - sizeof(asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_tags_1) - /sizeof(asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_1, - 10, /* Elements count */ - &asn_SPC_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/EllipsoidPointWithUncertaintyEllipse.c b/asn.1/generated/EllipsoidPointWithUncertaintyEllipse.c deleted file mode 100644 index 55b8b7b0..00000000 --- a/asn.1/generated/EllipsoidPointWithUncertaintyEllipse.c +++ /dev/null @@ -1,336 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "EllipsoidPointWithUncertaintyEllipse.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_degreesLatitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_degreesLongitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_uncertaintySemiMajor_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_uncertaintySemiMinor_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_orientationMajorAxis_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 179)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_confidence_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_latitudeSign_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_degreesLatitude_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_degreesLongitude_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_uncertaintySemiMajor_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_uncertaintySemiMinor_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_orientationMajorAxis_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 179 } /* (0..179) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_confidence_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_latitudeSign_value2enum_2[] = { - { 0, 5, "north" }, - { 1, 5, "south" } -}; -static const unsigned int asn_MAP_latitudeSign_enum2value_2[] = { - 0, /* north(0) */ - 1 /* south(1) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_latitudeSign_specs_2 = { - asn_MAP_latitudeSign_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_latitudeSign_enum2value_2, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_latitudeSign_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_latitudeSign_2 = { - "latitudeSign", - "latitudeSign", - &asn_OP_NativeEnumerated, - asn_DEF_latitudeSign_tags_2, - sizeof(asn_DEF_latitudeSign_tags_2) - /sizeof(asn_DEF_latitudeSign_tags_2[0]) - 1, /* 1 */ - asn_DEF_latitudeSign_tags_2, /* Same as above */ - sizeof(asn_DEF_latitudeSign_tags_2) - /sizeof(asn_DEF_latitudeSign_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_latitudeSign_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_latitudeSign_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_EllipsoidPointWithUncertaintyEllipse_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithUncertaintyEllipse, latitudeSign), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_latitudeSign_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "latitudeSign" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithUncertaintyEllipse, degreesLatitude), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_degreesLatitude_constr_5, memb_degreesLatitude_constraint_1 }, - 0, 0, /* No default value */ - "degreesLatitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithUncertaintyEllipse, degreesLongitude), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_degreesLongitude_constr_6, memb_degreesLongitude_constraint_1 }, - 0, 0, /* No default value */ - "degreesLongitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithUncertaintyEllipse, uncertaintySemiMajor), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_uncertaintySemiMajor_constr_7, memb_uncertaintySemiMajor_constraint_1 }, - 0, 0, /* No default value */ - "uncertaintySemiMajor" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithUncertaintyEllipse, uncertaintySemiMinor), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_uncertaintySemiMinor_constr_8, memb_uncertaintySemiMinor_constraint_1 }, - 0, 0, /* No default value */ - "uncertaintySemiMinor" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithUncertaintyEllipse, orientationMajorAxis), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_orientationMajorAxis_constr_9, memb_orientationMajorAxis_constraint_1 }, - 0, 0, /* No default value */ - "orientationMajorAxis" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithUncertaintyEllipse, confidence), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_confidence_constr_10, memb_confidence_constraint_1 }, - 0, 0, /* No default value */ - "confidence" - }, -}; -static const ber_tlv_tag_t asn_DEF_EllipsoidPointWithUncertaintyEllipse_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_EllipsoidPointWithUncertaintyEllipse_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeSign */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLatitude */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* degreesLongitude */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* uncertaintySemiMajor */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* uncertaintySemiMinor */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* orientationMajorAxis */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* confidence */ -}; -asn_SEQUENCE_specifics_t asn_SPC_EllipsoidPointWithUncertaintyEllipse_specs_1 = { - sizeof(struct EllipsoidPointWithUncertaintyEllipse), - offsetof(struct EllipsoidPointWithUncertaintyEllipse, _asn_ctx), - asn_MAP_EllipsoidPointWithUncertaintyEllipse_tag2el_1, - 7, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_EllipsoidPointWithUncertaintyEllipse = { - "EllipsoidPointWithUncertaintyEllipse", - "EllipsoidPointWithUncertaintyEllipse", - &asn_OP_SEQUENCE, - asn_DEF_EllipsoidPointWithUncertaintyEllipse_tags_1, - sizeof(asn_DEF_EllipsoidPointWithUncertaintyEllipse_tags_1) - /sizeof(asn_DEF_EllipsoidPointWithUncertaintyEllipse_tags_1[0]), /* 1 */ - asn_DEF_EllipsoidPointWithUncertaintyEllipse_tags_1, /* Same as above */ - sizeof(asn_DEF_EllipsoidPointWithUncertaintyEllipse_tags_1) - /sizeof(asn_DEF_EllipsoidPointWithUncertaintyEllipse_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_EllipsoidPointWithUncertaintyEllipse_1, - 7, /* Elements count */ - &asn_SPC_EllipsoidPointWithUncertaintyEllipse_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/EllipticalArea.c b/asn.1/generated/EllipticalArea.c deleted file mode 100644 index c1fa2284..00000000 --- a/asn.1/generated/EllipticalArea.c +++ /dev/null @@ -1,332 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "EllipticalArea.h" - -static int -memb_semiMajor_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 1000000)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_semiMajor_min_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 1000000)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_semiMajor_max_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 1500000)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_semiMinor_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 1000000)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_semiMinor_min_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 1000000)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_semiMinor_max_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 1500000)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_angle_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 179)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_semiMajor_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 20, -1, 1, 1000000 } /* (1..1000000) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_semiMajor_min_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 20, -1, 1, 1000000 } /* (1..1000000) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_semiMajor_max_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, 1, 1500000 } /* (1..1500000) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_semiMinor_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 20, -1, 1, 1000000 } /* (1..1000000) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_semiMinor_min_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 20, -1, 1, 1000000 } /* (1..1000000) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_semiMinor_max_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, 1, 1500000 } /* (1..1500000) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_angle_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 179 } /* (0..179) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_EllipticalArea_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct EllipticalArea, coordinate), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Coordinate, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "coordinate" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipticalArea, semiMajor), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_semiMajor_constr_3, memb_semiMajor_constraint_1 }, - 0, 0, /* No default value */ - "semiMajor" - }, - { ATF_POINTER, 2, offsetof(struct EllipticalArea, semiMajor_min), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_semiMajor_min_constr_4, memb_semiMajor_min_constraint_1 }, - 0, 0, /* No default value */ - "semiMajor-min" - }, - { ATF_POINTER, 1, offsetof(struct EllipticalArea, semiMajor_max), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_semiMajor_max_constr_5, memb_semiMajor_max_constraint_1 }, - 0, 0, /* No default value */ - "semiMajor-max" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipticalArea, semiMinor), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_semiMinor_constr_6, memb_semiMinor_constraint_1 }, - 0, 0, /* No default value */ - "semiMinor" - }, - { ATF_POINTER, 2, offsetof(struct EllipticalArea, semiMinor_min), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_semiMinor_min_constr_7, memb_semiMinor_min_constraint_1 }, - 0, 0, /* No default value */ - "semiMinor-min" - }, - { ATF_POINTER, 1, offsetof(struct EllipticalArea, semiMinor_max), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_semiMinor_max_constr_8, memb_semiMinor_max_constraint_1 }, - 0, 0, /* No default value */ - "semiMinor-max" - }, - { ATF_NOFLAGS, 0, offsetof(struct EllipticalArea, angle), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_angle_constr_9, memb_angle_constraint_1 }, - 0, 0, /* No default value */ - "angle" - }, -}; -static const int asn_MAP_EllipticalArea_oms_1[] = { 2, 3, 5, 6 }; -static const ber_tlv_tag_t asn_DEF_EllipticalArea_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_EllipticalArea_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* coordinate */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* semiMajor */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* semiMajor-min */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* semiMajor-max */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* semiMinor */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* semiMinor-min */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* semiMinor-max */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* angle */ -}; -asn_SEQUENCE_specifics_t asn_SPC_EllipticalArea_specs_1 = { - sizeof(struct EllipticalArea), - offsetof(struct EllipticalArea, _asn_ctx), - asn_MAP_EllipticalArea_tag2el_1, - 8, /* Count of tags in the map */ - asn_MAP_EllipticalArea_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_EllipticalArea = { - "EllipticalArea", - "EllipticalArea", - &asn_OP_SEQUENCE, - asn_DEF_EllipticalArea_tags_1, - sizeof(asn_DEF_EllipticalArea_tags_1) - /sizeof(asn_DEF_EllipticalArea_tags_1[0]), /* 1 */ - asn_DEF_EllipticalArea_tags_1, /* Same as above */ - sizeof(asn_DEF_EllipticalArea_tags_1) - /sizeof(asn_DEF_EllipticalArea_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_EllipticalArea_1, - 8, /* Elements count */ - &asn_SPC_EllipticalArea_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/EllipticalArea.h b/asn.1/generated/EllipticalArea.h deleted file mode 100644 index 9f4ed86e..00000000 --- a/asn.1/generated/EllipticalArea.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _EllipticalArea_H_ -#define _EllipticalArea_H_ - - -#include - -/* Including external dependencies */ -#include "Coordinate.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* EllipticalArea */ -typedef struct EllipticalArea { - Coordinate_t coordinate; - long semiMajor; - long *semiMajor_min /* OPTIONAL */; - long *semiMajor_max /* OPTIONAL */; - long semiMinor; - long *semiMinor_min /* OPTIONAL */; - long *semiMinor_max /* OPTIONAL */; - long angle; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} EllipticalArea_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_EllipticalArea; -extern asn_SEQUENCE_specifics_t asn_SPC_EllipticalArea_specs_1; -extern asn_TYPE_member_t asn_MBR_EllipticalArea_1[8]; - -#ifdef __cplusplus -} -#endif - -#endif /* _EllipticalArea_H_ */ -#include diff --git a/asn.1/generated/EncodingType.c b/asn.1/generated/EncodingType.c deleted file mode 100644 index cd8139ef..00000000 --- a/asn.1/generated/EncodingType.c +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "EncodingType.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_EncodingType_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_EncodingType_value2enum_1[] = { - { 0, 4, "ucs2" }, - { 1, 10, "gsmDefault" }, - { 2, 4, "utf8" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_EncodingType_enum2value_1[] = { - 1, /* gsmDefault(1) */ - 0, /* ucs2(0) */ - 2 /* utf8(2) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_EncodingType_specs_1 = { - asn_MAP_EncodingType_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_EncodingType_enum2value_1, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 4, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_EncodingType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_EncodingType = { - "EncodingType", - "EncodingType", - &asn_OP_NativeEnumerated, - asn_DEF_EncodingType_tags_1, - sizeof(asn_DEF_EncodingType_tags_1) - /sizeof(asn_DEF_EncodingType_tags_1[0]), /* 1 */ - asn_DEF_EncodingType_tags_1, /* Same as above */ - sizeof(asn_DEF_EncodingType_tags_1) - /sizeof(asn_DEF_EncodingType_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_EncodingType_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_EncodingType_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Environment.c b/asn.1/generated/Environment.c deleted file mode 100644 index fa844e88..00000000 --- a/asn.1/generated/Environment.c +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Environment.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_Environment_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_Environment_value2enum_1[] = { - { 0, 7, "badArea" }, - { 1, 10, "notBadArea" }, - { 2, 9, "mixedArea" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_Environment_enum2value_1[] = { - 0, /* badArea(0) */ - 2, /* mixedArea(2) */ - 1 /* notBadArea(1) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_Environment_specs_1 = { - asn_MAP_Environment_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_Environment_enum2value_1, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 4, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_Environment_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_Environment = { - "Environment", - "Environment", - &asn_OP_NativeEnumerated, - asn_DEF_Environment_tags_1, - sizeof(asn_DEF_Environment_tags_1) - /sizeof(asn_DEF_Environment_tags_1[0]), /* 1 */ - asn_DEF_Environment_tags_1, /* Same as above */ - sizeof(asn_DEF_Environment_tags_1) - /sizeof(asn_DEF_Environment_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_Environment_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_Environment_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/EqualIntegerAmbiguityLevel-r16.c b/asn.1/generated/EqualIntegerAmbiguityLevel-r16.c deleted file mode 100644 index a50938ef..00000000 --- a/asn.1/generated/EqualIntegerAmbiguityLevel-r16.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "EqualIntegerAmbiguityLevel-r16.h" - -asn_per_constraints_t asn_PER_type_EqualIntegerAmbiguityLevel_r16_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_EqualIntegerAmbiguityLevel_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct EqualIntegerAmbiguityLevel_r16, choice.allReferenceStations_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "allReferenceStations-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct EqualIntegerAmbiguityLevel_r16, choice.referenceStationList_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ReferenceStationList_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceStationList-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_EqualIntegerAmbiguityLevel_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* allReferenceStations-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* referenceStationList-r16 */ -}; -asn_CHOICE_specifics_t asn_SPC_EqualIntegerAmbiguityLevel_r16_specs_1 = { - sizeof(struct EqualIntegerAmbiguityLevel_r16), - offsetof(struct EqualIntegerAmbiguityLevel_r16, _asn_ctx), - offsetof(struct EqualIntegerAmbiguityLevel_r16, present), - sizeof(((struct EqualIntegerAmbiguityLevel_r16 *)0)->present), - asn_MAP_EqualIntegerAmbiguityLevel_r16_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_EqualIntegerAmbiguityLevel_r16 = { - "EqualIntegerAmbiguityLevel-r16", - "EqualIntegerAmbiguityLevel-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_EqualIntegerAmbiguityLevel_r16_constr_1, CHOICE_constraint }, - asn_MBR_EqualIntegerAmbiguityLevel_r16_1, - 2, /* Elements count */ - &asn_SPC_EqualIntegerAmbiguityLevel_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Error-r9-IEs.c b/asn.1/generated/Error-r9-IEs.c deleted file mode 100644 index a0df5dc5..00000000 --- a/asn.1/generated/Error-r9-IEs.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Error-r9-IEs.h" - -asn_TYPE_member_t asn_MBR_Error_r9_IEs_1[] = { - { ATF_POINTER, 2, offsetof(struct Error_r9_IEs, commonIEsError), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CommonIEsError, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "commonIEsError" - }, - { ATF_POINTER, 1, offsetof(struct Error_r9_IEs, epdu_Error), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EPDU_Sequence, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "epdu-Error" - }, -}; -static const int asn_MAP_Error_r9_IEs_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_Error_r9_IEs_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Error_r9_IEs_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* commonIEsError */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* epdu-Error */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Error_r9_IEs_specs_1 = { - sizeof(struct Error_r9_IEs), - offsetof(struct Error_r9_IEs, _asn_ctx), - asn_MAP_Error_r9_IEs_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_Error_r9_IEs_oms_1, /* Optional members */ - 1, 1, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Error_r9_IEs = { - "Error-r9-IEs", - "Error-r9-IEs", - &asn_OP_SEQUENCE, - asn_DEF_Error_r9_IEs_tags_1, - sizeof(asn_DEF_Error_r9_IEs_tags_1) - /sizeof(asn_DEF_Error_r9_IEs_tags_1[0]), /* 1 */ - asn_DEF_Error_r9_IEs_tags_1, /* Same as above */ - sizeof(asn_DEF_Error_r9_IEs_tags_1) - /sizeof(asn_DEF_Error_r9_IEs_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Error_r9_IEs_1, - 2, /* Elements count */ - &asn_SPC_Error_r9_IEs_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Error-r9-IEs.h b/asn.1/generated/Error-r9-IEs.h deleted file mode 100644 index 2f3bdf81..00000000 --- a/asn.1/generated/Error-r9-IEs.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Error_r9_IEs_H_ -#define _Error_r9_IEs_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct CommonIEsError; -struct EPDU_Sequence; - -/* Error-r9-IEs */ -typedef struct Error_r9_IEs { - struct CommonIEsError *commonIEsError /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct EPDU_Sequence *epdu_Error /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Error_r9_IEs_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Error_r9_IEs; -extern asn_SEQUENCE_specifics_t asn_SPC_Error_r9_IEs_specs_1; -extern asn_TYPE_member_t asn_MBR_Error_r9_IEs_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "CommonIEsError.h" -#include "EPDU-Sequence.h" - -#endif /* _Error_r9_IEs_H_ */ -#include diff --git a/asn.1/generated/Error.c b/asn.1/generated/Error.c deleted file mode 100644 index 6b723ff9..00000000 --- a/asn.1/generated/Error.c +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Error.h" - -asn_per_constraints_t asn_PER_type_Error_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_criticalExtensionsFuture_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SEQUENCE_specifics_t asn_SPC_criticalExtensionsFuture_specs_3 = { - sizeof(struct Error__criticalExtensionsFuture), - offsetof(struct Error__criticalExtensionsFuture, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_criticalExtensionsFuture_3 = { - "criticalExtensionsFuture", - "criticalExtensionsFuture", - &asn_OP_SEQUENCE, - asn_DEF_criticalExtensionsFuture_tags_3, - sizeof(asn_DEF_criticalExtensionsFuture_tags_3) - /sizeof(asn_DEF_criticalExtensionsFuture_tags_3[0]) - 1, /* 1 */ - asn_DEF_criticalExtensionsFuture_tags_3, /* Same as above */ - sizeof(asn_DEF_criticalExtensionsFuture_tags_3) - /sizeof(asn_DEF_criticalExtensionsFuture_tags_3[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_criticalExtensionsFuture_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_Error_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Error, choice.error_r9), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Error_r9_IEs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "error-r9" - }, - { ATF_NOFLAGS, 0, offsetof(struct Error, choice.criticalExtensionsFuture), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_criticalExtensionsFuture_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "criticalExtensionsFuture" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_Error_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* error-r9 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* criticalExtensionsFuture */ -}; -asn_CHOICE_specifics_t asn_SPC_Error_specs_1 = { - sizeof(struct Error), - offsetof(struct Error, _asn_ctx), - offsetof(struct Error, present), - sizeof(((struct Error *)0)->present), - asn_MAP_Error_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_Error = { - "Error", - "Error", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_Error_constr_1, CHOICE_constraint }, - asn_MBR_Error_1, - 2, /* Elements count */ - &asn_SPC_Error_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/EventTriggerCapabilities.c b/asn.1/generated/EventTriggerCapabilities.c deleted file mode 100644 index 1f0fd6ed..00000000 --- a/asn.1/generated/EventTriggerCapabilities.c +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "EventTriggerCapabilities.h" - -static int -memb_maxNumGeoAreaSupported_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 32)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_maxAreaIdListSupported_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 32)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_maxAreaIdSupportedPerList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 256)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_maxNumGeoAreaSupported_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 32 } /* (0..32) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_maxAreaIdListSupported_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 32 } /* (0..32) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_maxAreaIdSupportedPerList_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 256 } /* (0..256) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_EventTriggerCapabilities_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct EventTriggerCapabilities, geoAreaShapesSupported), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GeoAreaShapesSupported, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "geoAreaShapesSupported" - }, - { ATF_POINTER, 3, offsetof(struct EventTriggerCapabilities, maxNumGeoAreaSupported), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_maxNumGeoAreaSupported_constr_3, memb_maxNumGeoAreaSupported_constraint_1 }, - 0, 0, /* No default value */ - "maxNumGeoAreaSupported" - }, - { ATF_POINTER, 2, offsetof(struct EventTriggerCapabilities, maxAreaIdListSupported), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_maxAreaIdListSupported_constr_4, memb_maxAreaIdListSupported_constraint_1 }, - 0, 0, /* No default value */ - "maxAreaIdListSupported" - }, - { ATF_POINTER, 1, offsetof(struct EventTriggerCapabilities, maxAreaIdSupportedPerList), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_maxAreaIdSupportedPerList_constr_5, memb_maxAreaIdSupportedPerList_constraint_1 }, - 0, 0, /* No default value */ - "maxAreaIdSupportedPerList" - }, -}; -static const int asn_MAP_EventTriggerCapabilities_oms_1[] = { 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_EventTriggerCapabilities_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_EventTriggerCapabilities_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* geoAreaShapesSupported */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxNumGeoAreaSupported */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* maxAreaIdListSupported */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* maxAreaIdSupportedPerList */ -}; -asn_SEQUENCE_specifics_t asn_SPC_EventTriggerCapabilities_specs_1 = { - sizeof(struct EventTriggerCapabilities), - offsetof(struct EventTriggerCapabilities, _asn_ctx), - asn_MAP_EventTriggerCapabilities_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_EventTriggerCapabilities_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_EventTriggerCapabilities = { - "EventTriggerCapabilities", - "EventTriggerCapabilities", - &asn_OP_SEQUENCE, - asn_DEF_EventTriggerCapabilities_tags_1, - sizeof(asn_DEF_EventTriggerCapabilities_tags_1) - /sizeof(asn_DEF_EventTriggerCapabilities_tags_1[0]), /* 1 */ - asn_DEF_EventTriggerCapabilities_tags_1, /* Same as above */ - sizeof(asn_DEF_EventTriggerCapabilities_tags_1) - /sizeof(asn_DEF_EventTriggerCapabilities_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_EventTriggerCapabilities_1, - 4, /* Elements count */ - &asn_SPC_EventTriggerCapabilities_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/EventTriggerCapabilities.h b/asn.1/generated/EventTriggerCapabilities.h deleted file mode 100644 index c5f49397..00000000 --- a/asn.1/generated/EventTriggerCapabilities.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _EventTriggerCapabilities_H_ -#define _EventTriggerCapabilities_H_ - - -#include - -/* Including external dependencies */ -#include "GeoAreaShapesSupported.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* EventTriggerCapabilities */ -typedef struct EventTriggerCapabilities { - GeoAreaShapesSupported_t geoAreaShapesSupported; - long *maxNumGeoAreaSupported /* OPTIONAL */; - long *maxAreaIdListSupported /* OPTIONAL */; - long *maxAreaIdSupportedPerList /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} EventTriggerCapabilities_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_EventTriggerCapabilities; -extern asn_SEQUENCE_specifics_t asn_SPC_EventTriggerCapabilities_specs_1; -extern asn_TYPE_member_t asn_MBR_EventTriggerCapabilities_1[4]; - -#ifdef __cplusplus -} -#endif - -#endif /* _EventTriggerCapabilities_H_ */ -#include diff --git a/asn.1/generated/ExtendedEphCheck.c b/asn.1/generated/ExtendedEphCheck.c deleted file mode 100644 index b87b7b3b..00000000 --- a/asn.1/generated/ExtendedEphCheck.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ExtendedEphCheck.h" - -asn_TYPE_member_t asn_MBR_ExtendedEphCheck_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ExtendedEphCheck, beginTime), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SUPL_GPSTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "beginTime" - }, - { ATF_NOFLAGS, 0, offsetof(struct ExtendedEphCheck, endTime), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SUPL_GPSTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "endTime" - }, -}; -static const ber_tlv_tag_t asn_DEF_ExtendedEphCheck_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ExtendedEphCheck_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* beginTime */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* endTime */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ExtendedEphCheck_specs_1 = { - sizeof(struct ExtendedEphCheck), - offsetof(struct ExtendedEphCheck, _asn_ctx), - asn_MAP_ExtendedEphCheck_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ExtendedEphCheck = { - "ExtendedEphCheck", - "ExtendedEphCheck", - &asn_OP_SEQUENCE, - asn_DEF_ExtendedEphCheck_tags_1, - sizeof(asn_DEF_ExtendedEphCheck_tags_1) - /sizeof(asn_DEF_ExtendedEphCheck_tags_1[0]), /* 1 */ - asn_DEF_ExtendedEphCheck_tags_1, /* Same as above */ - sizeof(asn_DEF_ExtendedEphCheck_tags_1) - /sizeof(asn_DEF_ExtendedEphCheck_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ExtendedEphCheck_1, - 2, /* Elements count */ - &asn_SPC_ExtendedEphCheck_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ExtendedEphemeris.c b/asn.1/generated/ExtendedEphemeris.c deleted file mode 100644 index 02472f2a..00000000 --- a/asn.1/generated/ExtendedEphemeris.c +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ExtendedEphemeris.h" - -static int -memb_validity_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 256)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_validity_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 1, 256 } /* (1..256) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_ExtendedEphemeris_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ExtendedEphemeris, validity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_validity_constr_2, memb_validity_constraint_1 }, - 0, 0, /* No default value */ - "validity" - }, -}; -static const ber_tlv_tag_t asn_DEF_ExtendedEphemeris_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ExtendedEphemeris_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* validity */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ExtendedEphemeris_specs_1 = { - sizeof(struct ExtendedEphemeris), - offsetof(struct ExtendedEphemeris, _asn_ctx), - asn_MAP_ExtendedEphemeris_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ExtendedEphemeris = { - "ExtendedEphemeris", - "ExtendedEphemeris", - &asn_OP_SEQUENCE, - asn_DEF_ExtendedEphemeris_tags_1, - sizeof(asn_DEF_ExtendedEphemeris_tags_1) - /sizeof(asn_DEF_ExtendedEphemeris_tags_1[0]), /* 1 */ - asn_DEF_ExtendedEphemeris_tags_1, /* Same as above */ - sizeof(asn_DEF_ExtendedEphemeris_tags_1) - /sizeof(asn_DEF_ExtendedEphemeris_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ExtendedEphemeris_1, - 1, /* Elements count */ - &asn_SPC_ExtendedEphemeris_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/FKP-Gradients-Element-r15.c b/asn.1/generated/FKP-Gradients-Element-r15.c deleted file mode 100644 index 74f3d9c8..00000000 --- a/asn.1/generated/FKP-Gradients-Element-r15.c +++ /dev/null @@ -1,256 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "FKP-Gradients-Element-r15.h" - -static int -memb_iod_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 11)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_north_geometric_gradient_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2048 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_east_geometric_gradient_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2048 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_north_ionospheric_gradient_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8192 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_east_ionospheric_gradient_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8192 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_iod_r15_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 11, 11 } /* (SIZE(11..11)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_north_geometric_gradient_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_east_geometric_gradient_r15_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_north_ionospheric_gradient_r15_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_east_ionospheric_gradient_r15_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_FKP_Gradients_Element_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct FKP_Gradients_Element_r15, svID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct FKP_Gradients_Element_r15, iod_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_iod_r15_constr_3, memb_iod_r15_constraint_1 }, - 0, 0, /* No default value */ - "iod-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct FKP_Gradients_Element_r15, north_geometric_gradient_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_north_geometric_gradient_r15_constr_4, memb_north_geometric_gradient_r15_constraint_1 }, - 0, 0, /* No default value */ - "north-geometric-gradient-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct FKP_Gradients_Element_r15, east_geometric_gradient_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_east_geometric_gradient_r15_constr_5, memb_east_geometric_gradient_r15_constraint_1 }, - 0, 0, /* No default value */ - "east-geometric-gradient-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct FKP_Gradients_Element_r15, north_ionospheric_gradient_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_north_ionospheric_gradient_r15_constr_6, memb_north_ionospheric_gradient_r15_constraint_1 }, - 0, 0, /* No default value */ - "north-ionospheric-gradient-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct FKP_Gradients_Element_r15, east_ionospheric_gradient_r15), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_east_ionospheric_gradient_r15_constr_7, memb_east_ionospheric_gradient_r15_constraint_1 }, - 0, 0, /* No default value */ - "east-ionospheric-gradient-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_FKP_Gradients_Element_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_FKP_Gradients_Element_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* iod-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* north-geometric-gradient-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* east-geometric-gradient-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* north-ionospheric-gradient-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* east-ionospheric-gradient-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_FKP_Gradients_Element_r15_specs_1 = { - sizeof(struct FKP_Gradients_Element_r15), - offsetof(struct FKP_Gradients_Element_r15, _asn_ctx), - asn_MAP_FKP_Gradients_Element_r15_tag2el_1, - 6, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_FKP_Gradients_Element_r15 = { - "FKP-Gradients-Element-r15", - "FKP-Gradients-Element-r15", - &asn_OP_SEQUENCE, - asn_DEF_FKP_Gradients_Element_r15_tags_1, - sizeof(asn_DEF_FKP_Gradients_Element_r15_tags_1) - /sizeof(asn_DEF_FKP_Gradients_Element_r15_tags_1[0]), /* 1 */ - asn_DEF_FKP_Gradients_Element_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_FKP_Gradients_Element_r15_tags_1) - /sizeof(asn_DEF_FKP_Gradients_Element_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_FKP_Gradients_Element_r15_1, - 6, /* Elements count */ - &asn_SPC_FKP_Gradients_Element_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/FKP-Gradients-List-r15.c b/asn.1/generated/FKP-Gradients-List-r15.c deleted file mode 100644 index faa9e12d..00000000 --- a/asn.1/generated/FKP-Gradients-List-r15.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "FKP-Gradients-List-r15.h" - -asn_per_constraints_t asn_PER_type_FKP_Gradients_List_r15_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_FKP_Gradients_List_r15_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_FKP_Gradients_Element_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_FKP_Gradients_List_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_FKP_Gradients_List_r15_specs_1 = { - sizeof(struct FKP_Gradients_List_r15), - offsetof(struct FKP_Gradients_List_r15, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_FKP_Gradients_List_r15 = { - "FKP-Gradients-List-r15", - "FKP-Gradients-List-r15", - &asn_OP_SEQUENCE_OF, - asn_DEF_FKP_Gradients_List_r15_tags_1, - sizeof(asn_DEF_FKP_Gradients_List_r15_tags_1) - /sizeof(asn_DEF_FKP_Gradients_List_r15_tags_1[0]), /* 1 */ - asn_DEF_FKP_Gradients_List_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_FKP_Gradients_List_r15_tags_1) - /sizeof(asn_DEF_FKP_Gradients_List_r15_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_FKP_Gradients_List_r15_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_FKP_Gradients_List_r15_1, - 1, /* Single element */ - &asn_SPC_FKP_Gradients_List_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/FQDN.h b/asn.1/generated/FQDN.h deleted file mode 100644 index c841b397..00000000 --- a/asn.1/generated/FQDN.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _FQDN_H_ -#define _FQDN_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* FQDN */ -typedef VisibleString_t FQDN_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_FQDN_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_FQDN; -asn_struct_free_f FQDN_free; -asn_struct_print_f FQDN_print; -asn_constr_check_f FQDN_constraint; -ber_type_decoder_f FQDN_decode_ber; -der_type_encoder_f FQDN_encode_der; -xer_type_decoder_f FQDN_decode_xer; -xer_type_encoder_f FQDN_encode_xer; -per_type_decoder_f FQDN_decode_uper; -per_type_encoder_f FQDN_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _FQDN_H_ */ -#include diff --git a/asn.1/generated/FormatIndicator.c b/asn.1/generated/FormatIndicator.c deleted file mode 100644 index 82af4c11..00000000 --- a/asn.1/generated/FormatIndicator.c +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "FormatIndicator.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_FormatIndicator_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 7 } /* (0..7,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_FormatIndicator_value2enum_1[] = { - { 0, 11, "logicalName" }, - { 1, 13, "e-mailAddress" }, - { 2, 6, "msisdn" }, - { 3, 3, "url" }, - { 4, 6, "sipUrl" }, - { 5, 3, "min" }, - { 6, 3, "mdn" }, - { 7, 17, "iMSPublicidentity" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_FormatIndicator_enum2value_1[] = { - 1, /* e-mailAddress(1) */ - 7, /* iMSPublicidentity(7) */ - 0, /* logicalName(0) */ - 6, /* mdn(6) */ - 5, /* min(5) */ - 2, /* msisdn(2) */ - 4, /* sipUrl(4) */ - 3 /* url(3) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_FormatIndicator_specs_1 = { - asn_MAP_FormatIndicator_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_FormatIndicator_enum2value_1, /* N => "tag"; sorted by N */ - 8, /* Number of elements in the maps */ - 9, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_FormatIndicator_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_FormatIndicator = { - "FormatIndicator", - "FormatIndicator", - &asn_OP_NativeEnumerated, - asn_DEF_FormatIndicator_tags_1, - sizeof(asn_DEF_FormatIndicator_tags_1) - /sizeof(asn_DEF_FormatIndicator_tags_1[0]), /* 1 */ - asn_DEF_FormatIndicator_tags_1, /* Same as above */ - sizeof(asn_DEF_FormatIndicator_tags_1) - /sizeof(asn_DEF_FormatIndicator_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_FormatIndicator_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_FormatIndicator_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/FrequencyInfo.c b/asn.1/generated/FrequencyInfo.c deleted file mode 100644 index eb0dff28..00000000 --- a/asn.1/generated/FrequencyInfo.c +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "FrequencyInfo.h" - -static asn_per_constraints_t asn_PER_type_modeSpecificInfo_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_modeSpecificInfo_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct FrequencyInfo__modeSpecificInfo, choice.fdd), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_FrequencyInfoFDD, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "fdd" - }, - { ATF_NOFLAGS, 0, offsetof(struct FrequencyInfo__modeSpecificInfo, choice.tdd), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_FrequencyInfoTDD, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tdd" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_modeSpecificInfo_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */ -}; -static asn_CHOICE_specifics_t asn_SPC_modeSpecificInfo_specs_2 = { - sizeof(struct FrequencyInfo__modeSpecificInfo), - offsetof(struct FrequencyInfo__modeSpecificInfo, _asn_ctx), - offsetof(struct FrequencyInfo__modeSpecificInfo, present), - sizeof(((struct FrequencyInfo__modeSpecificInfo *)0)->present), - asn_MAP_modeSpecificInfo_tag2el_2, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_modeSpecificInfo_2 = { - "modeSpecificInfo", - "modeSpecificInfo", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_modeSpecificInfo_constr_2, CHOICE_constraint }, - asn_MBR_modeSpecificInfo_2, - 2, /* Elements count */ - &asn_SPC_modeSpecificInfo_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_FrequencyInfo_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct FrequencyInfo, modeSpecificInfo), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_modeSpecificInfo_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "modeSpecificInfo" - }, -}; -static const ber_tlv_tag_t asn_DEF_FrequencyInfo_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_FrequencyInfo_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* modeSpecificInfo */ -}; -asn_SEQUENCE_specifics_t asn_SPC_FrequencyInfo_specs_1 = { - sizeof(struct FrequencyInfo), - offsetof(struct FrequencyInfo, _asn_ctx), - asn_MAP_FrequencyInfo_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_FrequencyInfo = { - "FrequencyInfo", - "FrequencyInfo", - &asn_OP_SEQUENCE, - asn_DEF_FrequencyInfo_tags_1, - sizeof(asn_DEF_FrequencyInfo_tags_1) - /sizeof(asn_DEF_FrequencyInfo_tags_1[0]), /* 1 */ - asn_DEF_FrequencyInfo_tags_1, /* Same as above */ - sizeof(asn_DEF_FrequencyInfo_tags_1) - /sizeof(asn_DEF_FrequencyInfo_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_FrequencyInfo_1, - 1, /* Elements count */ - &asn_SPC_FrequencyInfo_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/FrequencyInfoFDD.c b/asn.1/generated/FrequencyInfoFDD.c deleted file mode 100644 index 6a53cc33..00000000 --- a/asn.1/generated/FrequencyInfoFDD.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "FrequencyInfoFDD.h" - -asn_TYPE_member_t asn_MBR_FrequencyInfoFDD_1[] = { - { ATF_POINTER, 1, offsetof(struct FrequencyInfoFDD, uarfcn_UL), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UARFCN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "uarfcn-UL" - }, - { ATF_NOFLAGS, 0, offsetof(struct FrequencyInfoFDD, uarfcn_DL), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UARFCN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "uarfcn-DL" - }, -}; -static const int asn_MAP_FrequencyInfoFDD_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_FrequencyInfoFDD_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_FrequencyInfoFDD_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* uarfcn-UL */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* uarfcn-DL */ -}; -asn_SEQUENCE_specifics_t asn_SPC_FrequencyInfoFDD_specs_1 = { - sizeof(struct FrequencyInfoFDD), - offsetof(struct FrequencyInfoFDD, _asn_ctx), - asn_MAP_FrequencyInfoFDD_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_FrequencyInfoFDD_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_FrequencyInfoFDD = { - "FrequencyInfoFDD", - "FrequencyInfoFDD", - &asn_OP_SEQUENCE, - asn_DEF_FrequencyInfoFDD_tags_1, - sizeof(asn_DEF_FrequencyInfoFDD_tags_1) - /sizeof(asn_DEF_FrequencyInfoFDD_tags_1[0]), /* 1 */ - asn_DEF_FrequencyInfoFDD_tags_1, /* Same as above */ - sizeof(asn_DEF_FrequencyInfoFDD_tags_1) - /sizeof(asn_DEF_FrequencyInfoFDD_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_FrequencyInfoFDD_1, - 2, /* Elements count */ - &asn_SPC_FrequencyInfoFDD_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/FrequencyInfoTDD.c b/asn.1/generated/FrequencyInfoTDD.c deleted file mode 100644 index 7d793ad0..00000000 --- a/asn.1/generated/FrequencyInfoTDD.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "FrequencyInfoTDD.h" - -asn_TYPE_member_t asn_MBR_FrequencyInfoTDD_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct FrequencyInfoTDD, uarfcn_Nt), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UARFCN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "uarfcn-Nt" - }, -}; -static const ber_tlv_tag_t asn_DEF_FrequencyInfoTDD_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_FrequencyInfoTDD_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* uarfcn-Nt */ -}; -asn_SEQUENCE_specifics_t asn_SPC_FrequencyInfoTDD_specs_1 = { - sizeof(struct FrequencyInfoTDD), - offsetof(struct FrequencyInfoTDD, _asn_ctx), - asn_MAP_FrequencyInfoTDD_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_FrequencyInfoTDD = { - "FrequencyInfoTDD", - "FrequencyInfoTDD", - &asn_OP_SEQUENCE, - asn_DEF_FrequencyInfoTDD_tags_1, - sizeof(asn_DEF_FrequencyInfoTDD_tags_1) - /sizeof(asn_DEF_FrequencyInfoTDD_tags_1[0]), /* 1 */ - asn_DEF_FrequencyInfoTDD_tags_1, /* Same as above */ - sizeof(asn_DEF_FrequencyInfoTDD_tags_1) - /sizeof(asn_DEF_FrequencyInfoTDD_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_FrequencyInfoTDD_1, - 1, /* Elements count */ - &asn_SPC_FrequencyInfoTDD_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GANSSPositionMethod.c b/asn.1/generated/GANSSPositionMethod.c deleted file mode 100644 index 920fbdca..00000000 --- a/asn.1/generated/GANSSPositionMethod.c +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GANSSPositionMethod.h" - -static int -memb_ganssId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ganssSBASid_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_ganssId_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ganssSBASid_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GANSSPositionMethod_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GANSSPositionMethod, ganssId), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ganssId_constr_2, memb_ganssId_constraint_1 }, - 0, 0, /* No default value */ - "ganssId" - }, - { ATF_POINTER, 1, offsetof(struct GANSSPositionMethod, ganssSBASid), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_ganssSBASid_constr_3, memb_ganssSBASid_constraint_1 }, - 0, 0, /* No default value */ - "ganssSBASid" - }, - { ATF_NOFLAGS, 0, offsetof(struct GANSSPositionMethod, gANSSPositioningMethodTypes), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GANSSPositioningMethodTypes, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gANSSPositioningMethodTypes" - }, - { ATF_NOFLAGS, 0, offsetof(struct GANSSPositionMethod, gANSSSignals), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GANSSSignals, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gANSSSignals" - }, -}; -static const int asn_MAP_GANSSPositionMethod_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_GANSSPositionMethod_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GANSSPositionMethod_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssId */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssSBASid */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gANSSPositioningMethodTypes */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* gANSSSignals */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GANSSPositionMethod_specs_1 = { - sizeof(struct GANSSPositionMethod), - offsetof(struct GANSSPositionMethod, _asn_ctx), - asn_MAP_GANSSPositionMethod_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_GANSSPositionMethod_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GANSSPositionMethod = { - "GANSSPositionMethod", - "GANSSPositionMethod", - &asn_OP_SEQUENCE, - asn_DEF_GANSSPositionMethod_tags_1, - sizeof(asn_DEF_GANSSPositionMethod_tags_1) - /sizeof(asn_DEF_GANSSPositionMethod_tags_1[0]), /* 1 */ - asn_DEF_GANSSPositionMethod_tags_1, /* Same as above */ - sizeof(asn_DEF_GANSSPositionMethod_tags_1) - /sizeof(asn_DEF_GANSSPositionMethod_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GANSSPositionMethod_1, - 4, /* Elements count */ - &asn_SPC_GANSSPositionMethod_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GANSSPositionMethods.c b/asn.1/generated/GANSSPositionMethods.c deleted file mode 100644 index 8fe796f7..00000000 --- a/asn.1/generated/GANSSPositionMethods.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GANSSPositionMethods.h" - -asn_per_constraints_t asn_PER_type_GANSSPositionMethods_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GANSSPositionMethods_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GANSSPositionMethod, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GANSSPositionMethods_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GANSSPositionMethods_specs_1 = { - sizeof(struct GANSSPositionMethods), - offsetof(struct GANSSPositionMethods, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GANSSPositionMethods = { - "GANSSPositionMethods", - "GANSSPositionMethods", - &asn_OP_SEQUENCE_OF, - asn_DEF_GANSSPositionMethods_tags_1, - sizeof(asn_DEF_GANSSPositionMethods_tags_1) - /sizeof(asn_DEF_GANSSPositionMethods_tags_1[0]), /* 1 */ - asn_DEF_GANSSPositionMethods_tags_1, /* Same as above */ - sizeof(asn_DEF_GANSSPositionMethods_tags_1) - /sizeof(asn_DEF_GANSSPositionMethods_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GANSSPositionMethods_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GANSSPositionMethods_1, - 1, /* Single element */ - &asn_SPC_GANSSPositionMethods_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GANSSPositioningMethodTypes.c b/asn.1/generated/GANSSPositioningMethodTypes.c deleted file mode 100644 index 44051f97..00000000 --- a/asn.1/generated/GANSSPositioningMethodTypes.c +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GANSSPositioningMethodTypes.h" - -asn_TYPE_member_t asn_MBR_GANSSPositioningMethodTypes_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GANSSPositioningMethodTypes, setAssisted), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "setAssisted" - }, - { ATF_NOFLAGS, 0, offsetof(struct GANSSPositioningMethodTypes, setBased), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "setBased" - }, - { ATF_NOFLAGS, 0, offsetof(struct GANSSPositioningMethodTypes, autonomous), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "autonomous" - }, -}; -static const ber_tlv_tag_t asn_DEF_GANSSPositioningMethodTypes_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GANSSPositioningMethodTypes_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* setAssisted */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* setBased */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* autonomous */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GANSSPositioningMethodTypes_specs_1 = { - sizeof(struct GANSSPositioningMethodTypes), - offsetof(struct GANSSPositioningMethodTypes, _asn_ctx), - asn_MAP_GANSSPositioningMethodTypes_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GANSSPositioningMethodTypes = { - "GANSSPositioningMethodTypes", - "GANSSPositioningMethodTypes", - &asn_OP_SEQUENCE, - asn_DEF_GANSSPositioningMethodTypes_tags_1, - sizeof(asn_DEF_GANSSPositioningMethodTypes_tags_1) - /sizeof(asn_DEF_GANSSPositioningMethodTypes_tags_1[0]), /* 1 */ - asn_DEF_GANSSPositioningMethodTypes_tags_1, /* Same as above */ - sizeof(asn_DEF_GANSSPositioningMethodTypes_tags_1) - /sizeof(asn_DEF_GANSSPositioningMethodTypes_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GANSSPositioningMethodTypes_1, - 3, /* Elements count */ - &asn_SPC_GANSSPositioningMethodTypes_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GANSSSignals.c b/asn.1/generated/GANSSSignals.c deleted file mode 100644 index aa684caa..00000000 --- a/asn.1/generated/GANSSSignals.c +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GANSSSignals.h" - -int -GANSSSignals_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using BIT_STRING, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_GANSSSignals_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_GANSSSignals_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_GANSSSignals = { - "GANSSSignals", - "GANSSSignals", - &asn_OP_BIT_STRING, - asn_DEF_GANSSSignals_tags_1, - sizeof(asn_DEF_GANSSSignals_tags_1) - /sizeof(asn_DEF_GANSSSignals_tags_1[0]), /* 1 */ - asn_DEF_GANSSSignals_tags_1, /* Same as above */ - sizeof(asn_DEF_GANSSSignals_tags_1) - /sizeof(asn_DEF_GANSSSignals_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GANSSSignals_constr_1, GANSSSignals_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/asn.1/generated/GANSSSignalsDescription.c b/asn.1/generated/GANSSSignalsDescription.c deleted file mode 100644 index 91a5a867..00000000 --- a/asn.1/generated/GANSSSignalsDescription.c +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GANSSSignalsDescription.h" - -static int -memb_ganssId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_ganssId_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GANSSSignalsDescription_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GANSSSignalsDescription, ganssId), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ganssId_constr_2, memb_ganssId_constraint_1 }, - 0, 0, /* No default value */ - "ganssId" - }, - { ATF_NOFLAGS, 0, offsetof(struct GANSSSignalsDescription, gANSSSignals), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GANSSSignals, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gANSSSignals" - }, -}; -static const ber_tlv_tag_t asn_DEF_GANSSSignalsDescription_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GANSSSignalsDescription_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssId */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gANSSSignals */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GANSSSignalsDescription_specs_1 = { - sizeof(struct GANSSSignalsDescription), - offsetof(struct GANSSSignalsDescription, _asn_ctx), - asn_MAP_GANSSSignalsDescription_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GANSSSignalsDescription = { - "GANSSSignalsDescription", - "GANSSSignalsDescription", - &asn_OP_SEQUENCE, - asn_DEF_GANSSSignalsDescription_tags_1, - sizeof(asn_DEF_GANSSSignalsDescription_tags_1) - /sizeof(asn_DEF_GANSSSignalsDescription_tags_1[0]), /* 1 */ - asn_DEF_GANSSSignalsDescription_tags_1, /* Same as above */ - sizeof(asn_DEF_GANSSSignalsDescription_tags_1) - /sizeof(asn_DEF_GANSSSignalsDescription_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GANSSSignalsDescription_1, - 2, /* Elements count */ - &asn_SPC_GANSSSignalsDescription_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GANSSextEphTime.c b/asn.1/generated/GANSSextEphTime.c deleted file mode 100644 index 8b4c997d..00000000 --- a/asn.1/generated/GANSSextEphTime.c +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GANSSextEphTime.h" - -static int -memb_gANSSday_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gANSSTODhour_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 23)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gANSSday_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, 0, 8191 } /* (0..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gANSSTODhour_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 23 } /* (0..23) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GANSSextEphTime_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GANSSextEphTime, gANSSday), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gANSSday_constr_2, memb_gANSSday_constraint_1 }, - 0, 0, /* No default value */ - "gANSSday" - }, - { ATF_NOFLAGS, 0, offsetof(struct GANSSextEphTime, gANSSTODhour), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gANSSTODhour_constr_3, memb_gANSSTODhour_constraint_1 }, - 0, 0, /* No default value */ - "gANSSTODhour" - }, -}; -static const ber_tlv_tag_t asn_DEF_GANSSextEphTime_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GANSSextEphTime_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gANSSday */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gANSSTODhour */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GANSSextEphTime_specs_1 = { - sizeof(struct GANSSextEphTime), - offsetof(struct GANSSextEphTime, _asn_ctx), - asn_MAP_GANSSextEphTime_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GANSSextEphTime = { - "GANSSextEphTime", - "GANSSextEphTime", - &asn_OP_SEQUENCE, - asn_DEF_GANSSextEphTime_tags_1, - sizeof(asn_DEF_GANSSextEphTime_tags_1) - /sizeof(asn_DEF_GANSSextEphTime_tags_1[0]), /* 1 */ - asn_DEF_GANSSextEphTime_tags_1, /* Same as above */ - sizeof(asn_DEF_GANSSextEphTime_tags_1) - /sizeof(asn_DEF_GANSSextEphTime_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GANSSextEphTime_1, - 2, /* Elements count */ - &asn_SPC_GANSSextEphTime_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GANSSsignalsInfo.c b/asn.1/generated/GANSSsignalsInfo.c deleted file mode 100644 index b9da30c3..00000000 --- a/asn.1/generated/GANSSsignalsInfo.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GANSSsignalsInfo.h" - -asn_per_constraints_t asn_PER_type_GANSSsignalsInfo_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GANSSsignalsInfo_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GANSSSignalsDescription, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GANSSsignalsInfo_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GANSSsignalsInfo_specs_1 = { - sizeof(struct GANSSsignalsInfo), - offsetof(struct GANSSsignalsInfo, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GANSSsignalsInfo = { - "GANSSsignalsInfo", - "GANSSsignalsInfo", - &asn_OP_SEQUENCE_OF, - asn_DEF_GANSSsignalsInfo_tags_1, - sizeof(asn_DEF_GANSSsignalsInfo_tags_1) - /sizeof(asn_DEF_GANSSsignalsInfo_tags_1[0]), /* 1 */ - asn_DEF_GANSSsignalsInfo_tags_1, /* Same as above */ - sizeof(asn_DEF_GANSSsignalsInfo_tags_1) - /sizeof(asn_DEF_GANSSsignalsInfo_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GANSSsignalsInfo_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GANSSsignalsInfo_1, - 1, /* Single element */ - &asn_SPC_GANSSsignalsInfo_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GLO-RTK-BiasInformation-r15.c b/asn.1/generated/GLO-RTK-BiasInformation-r15.c deleted file mode 100644 index 12f9f24c..00000000 --- a/asn.1/generated/GLO-RTK-BiasInformation-r15.c +++ /dev/null @@ -1,258 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GLO-RTK-BiasInformation-r15.h" - -static int -memb_cpbIndicator_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_l1_ca_cpBias_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_l1_p_cpBias_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_l2_ca_cpBias_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_l2_p_cpBias_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_cpbIndicator_r15_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (SIZE(1..1)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_l1_ca_cpBias_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_l1_p_cpBias_r15_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_l2_ca_cpBias_r15_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_l2_p_cpBias_r15_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GLO_RTK_BiasInformation_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GLO_RTK_BiasInformation_r15, referenceStationID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceStationID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceStationID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GLO_RTK_BiasInformation_r15, cpbIndicator_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_cpbIndicator_r15_constr_3, memb_cpbIndicator_r15_constraint_1 }, - 0, 0, /* No default value */ - "cpbIndicator-r15" - }, - { ATF_POINTER, 4, offsetof(struct GLO_RTK_BiasInformation_r15, l1_ca_cpBias_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_l1_ca_cpBias_r15_constr_4, memb_l1_ca_cpBias_r15_constraint_1 }, - 0, 0, /* No default value */ - "l1-ca-cpBias-r15" - }, - { ATF_POINTER, 3, offsetof(struct GLO_RTK_BiasInformation_r15, l1_p_cpBias_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_l1_p_cpBias_r15_constr_5, memb_l1_p_cpBias_r15_constraint_1 }, - 0, 0, /* No default value */ - "l1-p-cpBias-r15" - }, - { ATF_POINTER, 2, offsetof(struct GLO_RTK_BiasInformation_r15, l2_ca_cpBias_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_l2_ca_cpBias_r15_constr_6, memb_l2_ca_cpBias_r15_constraint_1 }, - 0, 0, /* No default value */ - "l2-ca-cpBias-r15" - }, - { ATF_POINTER, 1, offsetof(struct GLO_RTK_BiasInformation_r15, l2_p_cpBias_r15), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_l2_p_cpBias_r15_constr_7, memb_l2_p_cpBias_r15_constraint_1 }, - 0, 0, /* No default value */ - "l2-p-cpBias-r15" - }, -}; -static const int asn_MAP_GLO_RTK_BiasInformation_r15_oms_1[] = { 2, 3, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_GLO_RTK_BiasInformation_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GLO_RTK_BiasInformation_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceStationID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cpbIndicator-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* l1-ca-cpBias-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* l1-p-cpBias-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* l2-ca-cpBias-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* l2-p-cpBias-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GLO_RTK_BiasInformation_r15_specs_1 = { - sizeof(struct GLO_RTK_BiasInformation_r15), - offsetof(struct GLO_RTK_BiasInformation_r15, _asn_ctx), - asn_MAP_GLO_RTK_BiasInformation_r15_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_GLO_RTK_BiasInformation_r15_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GLO_RTK_BiasInformation_r15 = { - "GLO-RTK-BiasInformation-r15", - "GLO-RTK-BiasInformation-r15", - &asn_OP_SEQUENCE, - asn_DEF_GLO_RTK_BiasInformation_r15_tags_1, - sizeof(asn_DEF_GLO_RTK_BiasInformation_r15_tags_1) - /sizeof(asn_DEF_GLO_RTK_BiasInformation_r15_tags_1[0]), /* 1 */ - asn_DEF_GLO_RTK_BiasInformation_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GLO_RTK_BiasInformation_r15_tags_1) - /sizeof(asn_DEF_GLO_RTK_BiasInformation_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GLO_RTK_BiasInformation_r15_1, - 6, /* Elements count */ - &asn_SPC_GLO_RTK_BiasInformation_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GLO-RTK-BiasInformation-r15.h b/asn.1/generated/GLO-RTK-BiasInformation-r15.h deleted file mode 100644 index 0b81bdd7..00000000 --- a/asn.1/generated/GLO-RTK-BiasInformation-r15.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GLO_RTK_BiasInformation_r15_H_ -#define _GLO_RTK_BiasInformation_r15_H_ - - -#include - -/* Including external dependencies */ -#include "GNSS-ReferenceStationID-r15.h" -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* GLO-RTK-BiasInformation-r15 */ -typedef struct GLO_RTK_BiasInformation_r15 { - GNSS_ReferenceStationID_r15_t referenceStationID_r15; - BIT_STRING_t cpbIndicator_r15; - long *l1_ca_cpBias_r15 /* OPTIONAL */; - long *l1_p_cpBias_r15 /* OPTIONAL */; - long *l2_ca_cpBias_r15 /* OPTIONAL */; - long *l2_p_cpBias_r15 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GLO_RTK_BiasInformation_r15_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GLO_RTK_BiasInformation_r15; -extern asn_SEQUENCE_specifics_t asn_SPC_GLO_RTK_BiasInformation_r15_specs_1; -extern asn_TYPE_member_t asn_MBR_GLO_RTK_BiasInformation_r15_1[6]; - -#ifdef __cplusplus -} -#endif - -#endif /* _GLO_RTK_BiasInformation_r15_H_ */ -#include diff --git a/asn.1/generated/GLO-RTK-BiasInformationReq-r15.c b/asn.1/generated/GLO-RTK-BiasInformationReq-r15.c deleted file mode 100644 index 06a48d86..00000000 --- a/asn.1/generated/GLO-RTK-BiasInformationReq-r15.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GLO-RTK-BiasInformationReq-r15.h" - -asn_TYPE_member_t asn_MBR_GLO_RTK_BiasInformationReq_r15_1[] = { - { ATF_POINTER, 1, offsetof(struct GLO_RTK_BiasInformationReq_r15, stationID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceStationID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "stationID-r15" - }, -}; -static const int asn_MAP_GLO_RTK_BiasInformationReq_r15_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_GLO_RTK_BiasInformationReq_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GLO_RTK_BiasInformationReq_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* stationID-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GLO_RTK_BiasInformationReq_r15_specs_1 = { - sizeof(struct GLO_RTK_BiasInformationReq_r15), - offsetof(struct GLO_RTK_BiasInformationReq_r15, _asn_ctx), - asn_MAP_GLO_RTK_BiasInformationReq_r15_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_GLO_RTK_BiasInformationReq_r15_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GLO_RTK_BiasInformationReq_r15 = { - "GLO-RTK-BiasInformationReq-r15", - "GLO-RTK-BiasInformationReq-r15", - &asn_OP_SEQUENCE, - asn_DEF_GLO_RTK_BiasInformationReq_r15_tags_1, - sizeof(asn_DEF_GLO_RTK_BiasInformationReq_r15_tags_1) - /sizeof(asn_DEF_GLO_RTK_BiasInformationReq_r15_tags_1[0]), /* 1 */ - asn_DEF_GLO_RTK_BiasInformationReq_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GLO_RTK_BiasInformationReq_r15_tags_1) - /sizeof(asn_DEF_GLO_RTK_BiasInformationReq_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GLO_RTK_BiasInformationReq_r15_1, - 1, /* Elements count */ - &asn_SPC_GLO_RTK_BiasInformationReq_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GLO-RTK-BiasInformationSupport-r15.c b/asn.1/generated/GLO-RTK-BiasInformationSupport-r15.c deleted file mode 100644 index fadd83f6..00000000 --- a/asn.1/generated/GLO-RTK-BiasInformationSupport-r15.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GLO-RTK-BiasInformationSupport-r15.h" - -static const ber_tlv_tag_t asn_DEF_GLO_RTK_BiasInformationSupport_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GLO_RTK_BiasInformationSupport_r15_specs_1 = { - sizeof(struct GLO_RTK_BiasInformationSupport_r15), - offsetof(struct GLO_RTK_BiasInformationSupport_r15, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GLO_RTK_BiasInformationSupport_r15 = { - "GLO-RTK-BiasInformationSupport-r15", - "GLO-RTK-BiasInformationSupport-r15", - &asn_OP_SEQUENCE, - asn_DEF_GLO_RTK_BiasInformationSupport_r15_tags_1, - sizeof(asn_DEF_GLO_RTK_BiasInformationSupport_r15_tags_1) - /sizeof(asn_DEF_GLO_RTK_BiasInformationSupport_r15_tags_1[0]), /* 1 */ - asn_DEF_GLO_RTK_BiasInformationSupport_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GLO_RTK_BiasInformationSupport_r15_tags_1) - /sizeof(asn_DEF_GLO_RTK_BiasInformationSupport_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GLO_RTK_BiasInformationSupport_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GLONASS-ClockModel.c b/asn.1/generated/GLONASS-ClockModel.c deleted file mode 100644 index 02dc253f..00000000 --- a/asn.1/generated/GLONASS-ClockModel.c +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GLONASS-ClockModel.h" - -static int -memb_gloTau_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2097152 && value <= 2097151)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloGamma_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloDeltaTau_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gloTau_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, -2097152, 2097151 } /* (-2097152..2097151) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloGamma_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloDeltaTau_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, -16, 15 } /* (-16..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GLONASS_ClockModel_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GLONASS_ClockModel, gloTau), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloTau_constr_2, memb_gloTau_constraint_1 }, - 0, 0, /* No default value */ - "gloTau" - }, - { ATF_NOFLAGS, 0, offsetof(struct GLONASS_ClockModel, gloGamma), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloGamma_constr_3, memb_gloGamma_constraint_1 }, - 0, 0, /* No default value */ - "gloGamma" - }, - { ATF_POINTER, 1, offsetof(struct GLONASS_ClockModel, gloDeltaTau), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloDeltaTau_constr_4, memb_gloDeltaTau_constraint_1 }, - 0, 0, /* No default value */ - "gloDeltaTau" - }, -}; -static const int asn_MAP_GLONASS_ClockModel_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_GLONASS_ClockModel_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GLONASS_ClockModel_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gloTau */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gloGamma */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gloDeltaTau */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GLONASS_ClockModel_specs_1 = { - sizeof(struct GLONASS_ClockModel), - offsetof(struct GLONASS_ClockModel, _asn_ctx), - asn_MAP_GLONASS_ClockModel_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_GLONASS_ClockModel_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GLONASS_ClockModel = { - "GLONASS-ClockModel", - "GLONASS-ClockModel", - &asn_OP_SEQUENCE, - asn_DEF_GLONASS_ClockModel_tags_1, - sizeof(asn_DEF_GLONASS_ClockModel_tags_1) - /sizeof(asn_DEF_GLONASS_ClockModel_tags_1[0]), /* 1 */ - asn_DEF_GLONASS_ClockModel_tags_1, /* Same as above */ - sizeof(asn_DEF_GLONASS_ClockModel_tags_1) - /sizeof(asn_DEF_GLONASS_ClockModel_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GLONASS_ClockModel_1, - 3, /* Elements count */ - &asn_SPC_GLONASS_ClockModel_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-AcquisitionAssistElement.c b/asn.1/generated/GNSS-AcquisitionAssistElement.c deleted file mode 100644 index a091f9d8..00000000 --- a/asn.1/generated/GNSS-AcquisitionAssistElement.c +++ /dev/null @@ -1,446 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-AcquisitionAssistElement.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_doppler0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2048 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_doppler1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_dopplerUncertainty_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_codePhase_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1022)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_intCodePhase_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_codePhaseSearchWindow_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 31)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_azimuth_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_elevation_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_dopplerUncertaintyExt_r10_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_doppler0_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_doppler1_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_dopplerUncertainty_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_codePhase_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1022 } /* (0..1022) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_intCodePhase_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_codePhaseSearchWindow_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_azimuth_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_elevation_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_dopplerUncertaintyExt_r10_value2enum_13[] = { - { 0, 3, "d60" }, - { 1, 3, "d80" }, - { 2, 4, "d100" }, - { 3, 4, "d120" }, - { 4, 13, "noInformation" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_dopplerUncertaintyExt_r10_enum2value_13[] = { - 2, /* d100(2) */ - 3, /* d120(3) */ - 0, /* d60(0) */ - 1, /* d80(1) */ - 4 /* noInformation(4) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_dopplerUncertaintyExt_r10_specs_13 = { - asn_MAP_dopplerUncertaintyExt_r10_value2enum_13, /* "tag" => N; sorted by tag */ - asn_MAP_dopplerUncertaintyExt_r10_enum2value_13, /* N => "tag"; sorted by N */ - 5, /* Number of elements in the maps */ - 6, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_dopplerUncertaintyExt_r10_tags_13[] = { - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_dopplerUncertaintyExt_r10_13 = { - "dopplerUncertaintyExt-r10", - "dopplerUncertaintyExt-r10", - &asn_OP_NativeEnumerated, - asn_DEF_dopplerUncertaintyExt_r10_tags_13, - sizeof(asn_DEF_dopplerUncertaintyExt_r10_tags_13) - /sizeof(asn_DEF_dopplerUncertaintyExt_r10_tags_13[0]) - 1, /* 1 */ - asn_DEF_dopplerUncertaintyExt_r10_tags_13, /* Same as above */ - sizeof(asn_DEF_dopplerUncertaintyExt_r10_tags_13) - /sizeof(asn_DEF_dopplerUncertaintyExt_r10_tags_13[0]), /* 2 */ - { 0, &asn_PER_type_dopplerUncertaintyExt_r10_constr_13, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_dopplerUncertaintyExt_r10_specs_13 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_AcquisitionAssistElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistElement, svID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistElement, doppler0), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_doppler0_constr_3, memb_doppler0_constraint_1 }, - 0, 0, /* No default value */ - "doppler0" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistElement, doppler1), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_doppler1_constr_4, memb_doppler1_constraint_1 }, - 0, 0, /* No default value */ - "doppler1" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistElement, dopplerUncertainty), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_dopplerUncertainty_constr_5, memb_dopplerUncertainty_constraint_1 }, - 0, 0, /* No default value */ - "dopplerUncertainty" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistElement, codePhase), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_codePhase_constr_6, memb_codePhase_constraint_1 }, - 0, 0, /* No default value */ - "codePhase" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistElement, intCodePhase), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_intCodePhase_constr_7, memb_intCodePhase_constraint_1 }, - 0, 0, /* No default value */ - "intCodePhase" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistElement, codePhaseSearchWindow), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_codePhaseSearchWindow_constr_8, memb_codePhaseSearchWindow_constraint_1 }, - 0, 0, /* No default value */ - "codePhaseSearchWindow" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistElement, azimuth), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_azimuth_constr_9, memb_azimuth_constraint_1 }, - 0, 0, /* No default value */ - "azimuth" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistElement, elevation), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_elevation_constr_10, memb_elevation_constraint_1 }, - 0, 0, /* No default value */ - "elevation" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_AcquisitionAssistElement, codePhase1023), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "codePhase1023" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_AcquisitionAssistElement, dopplerUncertaintyExt_r10), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_dopplerUncertaintyExt_r10_13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dopplerUncertaintyExt-r10" - }, -}; -static const int asn_MAP_GNSS_AcquisitionAssistElement_oms_1[] = { 9, 10 }; -static const ber_tlv_tag_t asn_DEF_GNSS_AcquisitionAssistElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_AcquisitionAssistElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* doppler0 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* doppler1 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* dopplerUncertainty */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* codePhase */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* intCodePhase */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* codePhaseSearchWindow */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* azimuth */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* elevation */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* codePhase1023 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 } /* dopplerUncertaintyExt-r10 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_AcquisitionAssistElement_specs_1 = { - sizeof(struct GNSS_AcquisitionAssistElement), - offsetof(struct GNSS_AcquisitionAssistElement, _asn_ctx), - asn_MAP_GNSS_AcquisitionAssistElement_tag2el_1, - 11, /* Count of tags in the map */ - asn_MAP_GNSS_AcquisitionAssistElement_oms_1, /* Optional members */ - 0, 2, /* Root/Additions */ - 9, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_AcquisitionAssistElement = { - "GNSS-AcquisitionAssistElement", - "GNSS-AcquisitionAssistElement", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_AcquisitionAssistElement_tags_1, - sizeof(asn_DEF_GNSS_AcquisitionAssistElement_tags_1) - /sizeof(asn_DEF_GNSS_AcquisitionAssistElement_tags_1[0]), /* 1 */ - asn_DEF_GNSS_AcquisitionAssistElement_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_AcquisitionAssistElement_tags_1) - /sizeof(asn_DEF_GNSS_AcquisitionAssistElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_AcquisitionAssistElement_1, - 11, /* Elements count */ - &asn_SPC_GNSS_AcquisitionAssistElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-AcquisitionAssistList.c b/asn.1/generated/GNSS-AcquisitionAssistList.c deleted file mode 100644 index 18002f85..00000000 --- a/asn.1/generated/GNSS-AcquisitionAssistList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-AcquisitionAssistList.h" - -asn_per_constraints_t asn_PER_type_GNSS_AcquisitionAssistList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_AcquisitionAssistList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_AcquisitionAssistElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_AcquisitionAssistList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_AcquisitionAssistList_specs_1 = { - sizeof(struct GNSS_AcquisitionAssistList), - offsetof(struct GNSS_AcquisitionAssistList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_AcquisitionAssistList = { - "GNSS-AcquisitionAssistList", - "GNSS-AcquisitionAssistList", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_AcquisitionAssistList_tags_1, - sizeof(asn_DEF_GNSS_AcquisitionAssistList_tags_1) - /sizeof(asn_DEF_GNSS_AcquisitionAssistList_tags_1[0]), /* 1 */ - asn_DEF_GNSS_AcquisitionAssistList_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_AcquisitionAssistList_tags_1) - /sizeof(asn_DEF_GNSS_AcquisitionAssistList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_AcquisitionAssistList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_AcquisitionAssistList_1, - 1, /* Single element */ - &asn_SPC_GNSS_AcquisitionAssistList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-AcquisitionAssistance.c b/asn.1/generated/GNSS-AcquisitionAssistance.c deleted file mode 100644 index c32a10a6..00000000 --- a/asn.1/generated/GNSS-AcquisitionAssistance.c +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-AcquisitionAssistance.h" - -static int -memb_confidence_r10_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_confidence_r10_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_AcquisitionAssistance_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistance, gnss_SignalID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SignalID" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistance, gnss_AcquisitionAssistList), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_AcquisitionAssistList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-AcquisitionAssistList" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_AcquisitionAssistance, confidence_r10), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_confidence_r10_constr_5, memb_confidence_r10_constraint_1 }, - 0, 0, /* No default value */ - "confidence-r10" - }, -}; -static const int asn_MAP_GNSS_AcquisitionAssistance_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_GNSS_AcquisitionAssistance_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_AcquisitionAssistance_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SignalID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-AcquisitionAssistList */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* confidence-r10 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_AcquisitionAssistance_specs_1 = { - sizeof(struct GNSS_AcquisitionAssistance), - offsetof(struct GNSS_AcquisitionAssistance, _asn_ctx), - asn_MAP_GNSS_AcquisitionAssistance_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_GNSS_AcquisitionAssistance_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_AcquisitionAssistance = { - "GNSS-AcquisitionAssistance", - "GNSS-AcquisitionAssistance", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_AcquisitionAssistance_tags_1, - sizeof(asn_DEF_GNSS_AcquisitionAssistance_tags_1) - /sizeof(asn_DEF_GNSS_AcquisitionAssistance_tags_1[0]), /* 1 */ - asn_DEF_GNSS_AcquisitionAssistance_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_AcquisitionAssistance_tags_1) - /sizeof(asn_DEF_GNSS_AcquisitionAssistance_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_AcquisitionAssistance_1, - 3, /* Elements count */ - &asn_SPC_GNSS_AcquisitionAssistance_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-AcquisitionAssistanceReq.c b/asn.1/generated/GNSS-AcquisitionAssistanceReq.c deleted file mode 100644 index 730ddf2a..00000000 --- a/asn.1/generated/GNSS-AcquisitionAssistanceReq.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-AcquisitionAssistanceReq.h" - -asn_TYPE_member_t asn_MBR_GNSS_AcquisitionAssistanceReq_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistanceReq, gnss_SignalID_Req), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SignalID-Req" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_AcquisitionAssistanceReq_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_AcquisitionAssistanceReq_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-SignalID-Req */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_AcquisitionAssistanceReq_specs_1 = { - sizeof(struct GNSS_AcquisitionAssistanceReq), - offsetof(struct GNSS_AcquisitionAssistanceReq, _asn_ctx), - asn_MAP_GNSS_AcquisitionAssistanceReq_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_AcquisitionAssistanceReq = { - "GNSS-AcquisitionAssistanceReq", - "GNSS-AcquisitionAssistanceReq", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_AcquisitionAssistanceReq_tags_1, - sizeof(asn_DEF_GNSS_AcquisitionAssistanceReq_tags_1) - /sizeof(asn_DEF_GNSS_AcquisitionAssistanceReq_tags_1[0]), /* 1 */ - asn_DEF_GNSS_AcquisitionAssistanceReq_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_AcquisitionAssistanceReq_tags_1) - /sizeof(asn_DEF_GNSS_AcquisitionAssistanceReq_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_AcquisitionAssistanceReq_1, - 1, /* Elements count */ - &asn_SPC_GNSS_AcquisitionAssistanceReq_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-AcquisitionAssistanceSupport.c b/asn.1/generated/GNSS-AcquisitionAssistanceSupport.c deleted file mode 100644 index bf1f5f0b..00000000 --- a/asn.1/generated/GNSS-AcquisitionAssistanceSupport.c +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-AcquisitionAssistanceSupport.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_confidenceSupport_r10_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_dopplerUncertaintyExtSupport_r10_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_confidenceSupport_r10_value2enum_3[] = { - { 0, 4, "true" } -}; -static const unsigned int asn_MAP_confidenceSupport_r10_enum2value_3[] = { - 0 /* true(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_confidenceSupport_r10_specs_3 = { - asn_MAP_confidenceSupport_r10_value2enum_3, /* "tag" => N; sorted by tag */ - asn_MAP_confidenceSupport_r10_enum2value_3, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_confidenceSupport_r10_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_confidenceSupport_r10_3 = { - "confidenceSupport-r10", - "confidenceSupport-r10", - &asn_OP_NativeEnumerated, - asn_DEF_confidenceSupport_r10_tags_3, - sizeof(asn_DEF_confidenceSupport_r10_tags_3) - /sizeof(asn_DEF_confidenceSupport_r10_tags_3[0]) - 1, /* 1 */ - asn_DEF_confidenceSupport_r10_tags_3, /* Same as above */ - sizeof(asn_DEF_confidenceSupport_r10_tags_3) - /sizeof(asn_DEF_confidenceSupport_r10_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_confidenceSupport_r10_constr_3, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_confidenceSupport_r10_specs_3 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_dopplerUncertaintyExtSupport_r10_value2enum_5[] = { - { 0, 4, "true" } -}; -static const unsigned int asn_MAP_dopplerUncertaintyExtSupport_r10_enum2value_5[] = { - 0 /* true(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_dopplerUncertaintyExtSupport_r10_specs_5 = { - asn_MAP_dopplerUncertaintyExtSupport_r10_value2enum_5, /* "tag" => N; sorted by tag */ - asn_MAP_dopplerUncertaintyExtSupport_r10_enum2value_5, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_dopplerUncertaintyExtSupport_r10_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_dopplerUncertaintyExtSupport_r10_5 = { - "dopplerUncertaintyExtSupport-r10", - "dopplerUncertaintyExtSupport-r10", - &asn_OP_NativeEnumerated, - asn_DEF_dopplerUncertaintyExtSupport_r10_tags_5, - sizeof(asn_DEF_dopplerUncertaintyExtSupport_r10_tags_5) - /sizeof(asn_DEF_dopplerUncertaintyExtSupport_r10_tags_5[0]) - 1, /* 1 */ - asn_DEF_dopplerUncertaintyExtSupport_r10_tags_5, /* Same as above */ - sizeof(asn_DEF_dopplerUncertaintyExtSupport_r10_tags_5) - /sizeof(asn_DEF_dopplerUncertaintyExtSupport_r10_tags_5[0]), /* 2 */ - { 0, &asn_PER_type_dopplerUncertaintyExtSupport_r10_constr_5, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_dopplerUncertaintyExtSupport_r10_specs_5 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_AcquisitionAssistanceSupport_1[] = { - { ATF_POINTER, 2, offsetof(struct GNSS_AcquisitionAssistanceSupport, confidenceSupport_r10), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_confidenceSupport_r10_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "confidenceSupport-r10" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_AcquisitionAssistanceSupport, dopplerUncertaintyExtSupport_r10), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_dopplerUncertaintyExtSupport_r10_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dopplerUncertaintyExtSupport-r10" - }, -}; -static const int asn_MAP_GNSS_AcquisitionAssistanceSupport_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_GNSS_AcquisitionAssistanceSupport_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_AcquisitionAssistanceSupport_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* confidenceSupport-r10 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dopplerUncertaintyExtSupport-r10 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_AcquisitionAssistanceSupport_specs_1 = { - sizeof(struct GNSS_AcquisitionAssistanceSupport), - offsetof(struct GNSS_AcquisitionAssistanceSupport, _asn_ctx), - asn_MAP_GNSS_AcquisitionAssistanceSupport_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_GNSS_AcquisitionAssistanceSupport_oms_1, /* Optional members */ - 0, 2, /* Root/Additions */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_AcquisitionAssistanceSupport = { - "GNSS-AcquisitionAssistanceSupport", - "GNSS-AcquisitionAssistanceSupport", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_AcquisitionAssistanceSupport_tags_1, - sizeof(asn_DEF_GNSS_AcquisitionAssistanceSupport_tags_1) - /sizeof(asn_DEF_GNSS_AcquisitionAssistanceSupport_tags_1[0]), /* 1 */ - asn_DEF_GNSS_AcquisitionAssistanceSupport_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_AcquisitionAssistanceSupport_tags_1) - /sizeof(asn_DEF_GNSS_AcquisitionAssistanceSupport_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_AcquisitionAssistanceSupport_1, - 2, /* Elements count */ - &asn_SPC_GNSS_AcquisitionAssistanceSupport_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-Almanac.c b/asn.1/generated/GNSS-Almanac.c deleted file mode 100644 index 8c098250..00000000 --- a/asn.1/generated/GNSS-Almanac.c +++ /dev/null @@ -1,432 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-Almanac.h" - -static int -memb_toa_ext_v1240_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 256 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ioda_ext_v1240_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 4 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_weekNumber_ext_r16_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 256 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_toa_ext2_r16_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 256 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_weekNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_toa_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ioda_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_toa_ext_v1240_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 256, 1023 } /* (256..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ioda_ext_v1240_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 4, 15 } /* (4..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_weekNumber_ext_r16_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, 256, 8191 } /* (256..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_toa_ext2_r16_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 256, 65535 } /* (256..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_weekNumber_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_toa_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ioda_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_ext1_8[] = { - { ATF_POINTER, 2, offsetof(struct GNSS_Almanac__ext1, toa_ext_v1240), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_toa_ext_v1240_constr_9, memb_toa_ext_v1240_constraint_8 }, - 0, 0, /* No default value */ - "toa-ext-v1240" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_Almanac__ext1, ioda_ext_v1240), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ioda_ext_v1240_constr_10, memb_ioda_ext_v1240_constraint_8 }, - 0, 0, /* No default value */ - "ioda-ext-v1240" - }, -}; -static const int asn_MAP_ext1_oms_8[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* toa-ext-v1240 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ioda-ext-v1240 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { - sizeof(struct GNSS_Almanac__ext1), - offsetof(struct GNSS_Almanac__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_8, - 2, /* Count of tags in the map */ - asn_MAP_ext1_oms_8, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_8 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_8, - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_8, /* Same as above */ - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_8, - 2, /* Elements count */ - &asn_SPC_ext1_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_11[] = { - { ATF_POINTER, 2, offsetof(struct GNSS_Almanac__ext2, weekNumber_ext_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_weekNumber_ext_r16_constr_12, memb_weekNumber_ext_r16_constraint_11 }, - 0, 0, /* No default value */ - "weekNumber-ext-r16" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_Almanac__ext2, toa_ext2_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_toa_ext2_r16_constr_13, memb_toa_ext2_r16_constraint_11 }, - 0, 0, /* No default value */ - "toa-ext2-r16" - }, -}; -static const int asn_MAP_ext2_oms_11[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_11[] = { - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_11[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* weekNumber-ext-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* toa-ext2-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_11 = { - sizeof(struct GNSS_Almanac__ext2), - offsetof(struct GNSS_Almanac__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_11, - 2, /* Count of tags in the map */ - asn_MAP_ext2_oms_11, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_11 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_11, - sizeof(asn_DEF_ext2_tags_11) - /sizeof(asn_DEF_ext2_tags_11[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_11, /* Same as above */ - sizeof(asn_DEF_ext2_tags_11) - /sizeof(asn_DEF_ext2_tags_11[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_11, - 2, /* Elements count */ - &asn_SPC_ext2_specs_11 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_Almanac_1[] = { - { ATF_POINTER, 3, offsetof(struct GNSS_Almanac, weekNumber), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_weekNumber_constr_2, memb_weekNumber_constraint_1 }, - 0, 0, /* No default value */ - "weekNumber" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_Almanac, toa), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_toa_constr_3, memb_toa_constraint_1 }, - 0, 0, /* No default value */ - "toa" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_Almanac, ioda), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ioda_constr_4, memb_ioda_constraint_1 }, - 0, 0, /* No default value */ - "ioda" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_Almanac, completeAlmanacProvided), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "completeAlmanacProvided" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_Almanac, gnss_AlmanacList), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_AlmanacList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-AlmanacList" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_Almanac, ext1), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - 0, - &asn_DEF_ext1_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_Almanac, ext2), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - 0, - &asn_DEF_ext2_11, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_GNSS_Almanac_oms_1[] = { 0, 1, 2, 5, 6 }; -static const ber_tlv_tag_t asn_DEF_GNSS_Almanac_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_Almanac_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* weekNumber */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* toa */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ioda */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* completeAlmanacProvided */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-AlmanacList */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_Almanac_specs_1 = { - sizeof(struct GNSS_Almanac), - offsetof(struct GNSS_Almanac, _asn_ctx), - asn_MAP_GNSS_Almanac_tag2el_1, - 7, /* Count of tags in the map */ - asn_MAP_GNSS_Almanac_oms_1, /* Optional members */ - 3, 2, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_Almanac = { - "GNSS-Almanac", - "GNSS-Almanac", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_Almanac_tags_1, - sizeof(asn_DEF_GNSS_Almanac_tags_1) - /sizeof(asn_DEF_GNSS_Almanac_tags_1[0]), /* 1 */ - asn_DEF_GNSS_Almanac_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_Almanac_tags_1) - /sizeof(asn_DEF_GNSS_Almanac_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_Almanac_1, - 7, /* Elements count */ - &asn_SPC_GNSS_Almanac_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-Almanac.h b/asn.1/generated/GNSS-Almanac.h deleted file mode 100644 index 8201d0ef..00000000 --- a/asn.1/generated/GNSS-Almanac.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_Almanac_H_ -#define _GNSS_Almanac_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include "GNSS-AlmanacList.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* GNSS-Almanac */ -typedef struct GNSS_Almanac { - long *weekNumber /* OPTIONAL */; - long *toa /* OPTIONAL */; - long *ioda /* OPTIONAL */; - BOOLEAN_t completeAlmanacProvided; - GNSS_AlmanacList_t gnss_AlmanacList; - /* - * This type is extensible, - * possible extensions are below. - */ - struct GNSS_Almanac__ext1 { - long *toa_ext_v1240 /* OPTIONAL */; - long *ioda_ext_v1240 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct GNSS_Almanac__ext2 { - long *weekNumber_ext_r16 /* OPTIONAL */; - long *toa_ext2_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_Almanac_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_Almanac; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_Almanac_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_Almanac_1[7]; - -#ifdef __cplusplus -} -#endif - -#endif /* _GNSS_Almanac_H_ */ -#include diff --git a/asn.1/generated/GNSS-AlmanacElement.c b/asn.1/generated/GNSS-AlmanacElement.c deleted file mode 100644 index 3bc8885b..00000000 --- a/asn.1/generated/GNSS-AlmanacElement.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-AlmanacElement.h" - -asn_per_constraints_t asn_PER_type_GNSS_AlmanacElement_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_AlmanacElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AlmanacElement, choice.keplerianAlmanacSet), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AlmanacKeplerianSet, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "keplerianAlmanacSet" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AlmanacElement, choice.keplerianNAV_Almanac), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AlmanacNAV_KeplerianSet, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "keplerianNAV-Almanac" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AlmanacElement, choice.keplerianReducedAlmanac), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AlmanacReducedKeplerianSet, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "keplerianReducedAlmanac" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AlmanacElement, choice.keplerianMidiAlmanac), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AlmanacMidiAlmanacSet, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "keplerianMidiAlmanac" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AlmanacElement, choice.keplerianGLONASS), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AlmanacGLONASS_AlmanacSet, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "keplerianGLONASS" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AlmanacElement, choice.ecef_SBAS_Almanac), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AlmanacECEF_SBAS_AlmanacSet, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ecef-SBAS-Almanac" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AlmanacElement, choice.keplerianBDS_Almanac_r12), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AlmanacBDS_AlmanacSet_r12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "keplerianBDS-Almanac-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AlmanacElement, choice.keplerianNavIC_Almanac_r16), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AlmanacNavIC_AlmanacSet_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "keplerianNavIC-Almanac-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_AlmanacElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* keplerianAlmanacSet */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* keplerianNAV-Almanac */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* keplerianReducedAlmanac */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* keplerianMidiAlmanac */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* keplerianGLONASS */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ecef-SBAS-Almanac */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* keplerianBDS-Almanac-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* keplerianNavIC-Almanac-r16 */ -}; -asn_CHOICE_specifics_t asn_SPC_GNSS_AlmanacElement_specs_1 = { - sizeof(struct GNSS_AlmanacElement), - offsetof(struct GNSS_AlmanacElement, _asn_ctx), - offsetof(struct GNSS_AlmanacElement, present), - sizeof(((struct GNSS_AlmanacElement *)0)->present), - asn_MAP_GNSS_AlmanacElement_tag2el_1, - 8, /* Count of tags in the map */ - 0, 0, - 6 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_AlmanacElement = { - "GNSS-AlmanacElement", - "GNSS-AlmanacElement", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_GNSS_AlmanacElement_constr_1, CHOICE_constraint }, - asn_MBR_GNSS_AlmanacElement_1, - 8, /* Elements count */ - &asn_SPC_GNSS_AlmanacElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-AlmanacList.c b/asn.1/generated/GNSS-AlmanacList.c deleted file mode 100644 index 2d7131b0..00000000 --- a/asn.1/generated/GNSS-AlmanacList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-AlmanacList.h" - -asn_per_constraints_t asn_PER_type_GNSS_AlmanacList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_AlmanacList_1[] = { - { ATF_POINTER, 0, 0, - -1 /* Ambiguous tag (CHOICE?) */, - 0, - &asn_DEF_GNSS_AlmanacElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_AlmanacList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_AlmanacList_specs_1 = { - sizeof(struct GNSS_AlmanacList), - offsetof(struct GNSS_AlmanacList, _asn_ctx), - 2, /* XER encoding is XMLValueList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_AlmanacList = { - "GNSS-AlmanacList", - "GNSS-AlmanacList", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_AlmanacList_tags_1, - sizeof(asn_DEF_GNSS_AlmanacList_tags_1) - /sizeof(asn_DEF_GNSS_AlmanacList_tags_1[0]), /* 1 */ - asn_DEF_GNSS_AlmanacList_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_AlmanacList_tags_1) - /sizeof(asn_DEF_GNSS_AlmanacList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_AlmanacList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_AlmanacList_1, - 1, /* Single element */ - &asn_SPC_GNSS_AlmanacList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-AlmanacReq.c b/asn.1/generated/GNSS-AlmanacReq.c deleted file mode 100644 index af3aeabf..00000000 --- a/asn.1/generated/GNSS-AlmanacReq.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-AlmanacReq.h" - -static int -memb_modelID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_modelID_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_AlmanacReq_1[] = { - { ATF_POINTER, 1, offsetof(struct GNSS_AlmanacReq, modelID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_modelID_constr_2, memb_modelID_constraint_1 }, - 0, 0, /* No default value */ - "modelID" - }, -}; -static const int asn_MAP_GNSS_AlmanacReq_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_GNSS_AlmanacReq_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_AlmanacReq_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* modelID */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_AlmanacReq_specs_1 = { - sizeof(struct GNSS_AlmanacReq), - offsetof(struct GNSS_AlmanacReq, _asn_ctx), - asn_MAP_GNSS_AlmanacReq_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_GNSS_AlmanacReq_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_AlmanacReq = { - "GNSS-AlmanacReq", - "GNSS-AlmanacReq", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_AlmanacReq_tags_1, - sizeof(asn_DEF_GNSS_AlmanacReq_tags_1) - /sizeof(asn_DEF_GNSS_AlmanacReq_tags_1[0]), /* 1 */ - asn_DEF_GNSS_AlmanacReq_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_AlmanacReq_tags_1) - /sizeof(asn_DEF_GNSS_AlmanacReq_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_AlmanacReq_1, - 1, /* Elements count */ - &asn_SPC_GNSS_AlmanacReq_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-AlmanacSupport.c b/asn.1/generated/GNSS-AlmanacSupport.c deleted file mode 100644 index 05793cf4..00000000 --- a/asn.1/generated/GNSS-AlmanacSupport.c +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-AlmanacSupport.h" - -static int -memb_almanacModel_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_almanacModel_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_AlmanacSupport_1[] = { - { ATF_POINTER, 1, offsetof(struct GNSS_AlmanacSupport, almanacModel), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_almanacModel_constr_2, memb_almanacModel_constraint_1 }, - 0, 0, /* No default value */ - "almanacModel" - }, -}; -static const int asn_MAP_GNSS_AlmanacSupport_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_GNSS_AlmanacSupport_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_AlmanacSupport_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* almanacModel */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_AlmanacSupport_specs_1 = { - sizeof(struct GNSS_AlmanacSupport), - offsetof(struct GNSS_AlmanacSupport, _asn_ctx), - asn_MAP_GNSS_AlmanacSupport_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_GNSS_AlmanacSupport_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_AlmanacSupport = { - "GNSS-AlmanacSupport", - "GNSS-AlmanacSupport", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_AlmanacSupport_tags_1, - sizeof(asn_DEF_GNSS_AlmanacSupport_tags_1) - /sizeof(asn_DEF_GNSS_AlmanacSupport_tags_1[0]), /* 1 */ - asn_DEF_GNSS_AlmanacSupport_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_AlmanacSupport_tags_1) - /sizeof(asn_DEF_GNSS_AlmanacSupport_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_AlmanacSupport_1, - 1, /* Elements count */ - &asn_SPC_GNSS_AlmanacSupport_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-AuxiliaryInformation.c b/asn.1/generated/GNSS-AuxiliaryInformation.c deleted file mode 100644 index 1535fb19..00000000 --- a/asn.1/generated/GNSS-AuxiliaryInformation.c +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-AuxiliaryInformation.h" - -asn_per_constraints_t asn_PER_type_GNSS_AuxiliaryInformation_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_ext1_5[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AuxiliaryInformation__ext1, gnss_ID_BDS_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ID_BDS_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-ID-BDS-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-ID-BDS-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { - sizeof(struct GNSS_AuxiliaryInformation__ext1), - offsetof(struct GNSS_AuxiliaryInformation__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_5, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_5 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_5, - sizeof(asn_DEF_ext1_tags_5) - /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_5, /* Same as above */ - sizeof(asn_DEF_ext1_tags_5) - /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_5, - 1, /* Elements count */ - &asn_SPC_ext1_specs_5 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_AuxiliaryInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AuxiliaryInformation, choice.gnss_ID_GPS), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ID_GPS, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-ID-GPS" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_AuxiliaryInformation, choice.gnss_ID_GLONASS), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ID_GLONASS, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-ID-GLONASS" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_AuxiliaryInformation, choice.ext1), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_ext1_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_AuxiliaryInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-ID-GPS */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-ID-GLONASS */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ -}; -asn_CHOICE_specifics_t asn_SPC_GNSS_AuxiliaryInformation_specs_1 = { - sizeof(struct GNSS_AuxiliaryInformation), - offsetof(struct GNSS_AuxiliaryInformation, _asn_ctx), - offsetof(struct GNSS_AuxiliaryInformation, present), - sizeof(((struct GNSS_AuxiliaryInformation *)0)->present), - asn_MAP_GNSS_AuxiliaryInformation_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_AuxiliaryInformation = { - "GNSS-AuxiliaryInformation", - "GNSS-AuxiliaryInformation", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_GNSS_AuxiliaryInformation_constr_1, CHOICE_constraint }, - asn_MBR_GNSS_AuxiliaryInformation_1, - 3, /* Elements count */ - &asn_SPC_GNSS_AuxiliaryInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-AuxiliaryInformationReq.c b/asn.1/generated/GNSS-AuxiliaryInformationReq.c deleted file mode 100644 index b6748393..00000000 --- a/asn.1/generated/GNSS-AuxiliaryInformationReq.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-AuxiliaryInformationReq.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_AuxiliaryInformationReq_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_AuxiliaryInformationReq_specs_1 = { - sizeof(struct GNSS_AuxiliaryInformationReq), - offsetof(struct GNSS_AuxiliaryInformationReq, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_AuxiliaryInformationReq = { - "GNSS-AuxiliaryInformationReq", - "GNSS-AuxiliaryInformationReq", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_AuxiliaryInformationReq_tags_1, - sizeof(asn_DEF_GNSS_AuxiliaryInformationReq_tags_1) - /sizeof(asn_DEF_GNSS_AuxiliaryInformationReq_tags_1[0]), /* 1 */ - asn_DEF_GNSS_AuxiliaryInformationReq_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_AuxiliaryInformationReq_tags_1) - /sizeof(asn_DEF_GNSS_AuxiliaryInformationReq_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_AuxiliaryInformationReq_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-AuxiliaryInformationSupport.c b/asn.1/generated/GNSS-AuxiliaryInformationSupport.c deleted file mode 100644 index 80b6ccc3..00000000 --- a/asn.1/generated/GNSS-AuxiliaryInformationSupport.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-AuxiliaryInformationSupport.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_AuxiliaryInformationSupport_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_AuxiliaryInformationSupport_specs_1 = { - sizeof(struct GNSS_AuxiliaryInformationSupport), - offsetof(struct GNSS_AuxiliaryInformationSupport, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_AuxiliaryInformationSupport = { - "GNSS-AuxiliaryInformationSupport", - "GNSS-AuxiliaryInformationSupport", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_AuxiliaryInformationSupport_tags_1, - sizeof(asn_DEF_GNSS_AuxiliaryInformationSupport_tags_1) - /sizeof(asn_DEF_GNSS_AuxiliaryInformationSupport_tags_1[0]), /* 1 */ - asn_DEF_GNSS_AuxiliaryInformationSupport_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_AuxiliaryInformationSupport_tags_1) - /sizeof(asn_DEF_GNSS_AuxiliaryInformationSupport_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_AuxiliaryInformationSupport_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-BadSignalList.c b/asn.1/generated/GNSS-BadSignalList.c deleted file mode 100644 index f8d08ef0..00000000 --- a/asn.1/generated/GNSS-BadSignalList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-BadSignalList.h" - -asn_per_constraints_t asn_PER_type_GNSS_BadSignalList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_BadSignalList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_BadSignalElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_BadSignalList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_BadSignalList_specs_1 = { - sizeof(struct GNSS_BadSignalList), - offsetof(struct GNSS_BadSignalList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_BadSignalList = { - "GNSS-BadSignalList", - "GNSS-BadSignalList", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_BadSignalList_tags_1, - sizeof(asn_DEF_GNSS_BadSignalList_tags_1) - /sizeof(asn_DEF_GNSS_BadSignalList_tags_1[0]), /* 1 */ - asn_DEF_GNSS_BadSignalList_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_BadSignalList_tags_1) - /sizeof(asn_DEF_GNSS_BadSignalList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_BadSignalList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_BadSignalList_1, - 1, /* Single element */ - &asn_SPC_GNSS_BadSignalList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-ClockModel.c b/asn.1/generated/GNSS-ClockModel.c deleted file mode 100644 index 330e2dc9..00000000 --- a/asn.1/generated/GNSS-ClockModel.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-ClockModel.h" - -asn_per_constraints_t asn_PER_type_GNSS_ClockModel_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_ClockModel_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ClockModel, choice.standardClockModelList), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_StandardClockModelList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "standardClockModelList" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ClockModel, choice.nav_ClockModel), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NAV_ClockModel, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nav-ClockModel" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ClockModel, choice.cnav_ClockModel), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CNAV_ClockModel, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cnav-ClockModel" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ClockModel, choice.glonass_ClockModel), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GLONASS_ClockModel, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "glonass-ClockModel" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ClockModel, choice.sbas_ClockModel), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SBAS_ClockModel, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sbas-ClockModel" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ClockModel, choice.bds_ClockModel_r12), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BDS_ClockModel_r12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bds-ClockModel-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ClockModel, choice.bds_ClockModel2_r16), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BDS_ClockModel2_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bds-ClockModel2-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ClockModel, choice.navic_ClockModel_r16), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NavIC_ClockModel_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "navic-ClockModel-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_ClockModel_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* standardClockModelList */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nav-ClockModel */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cnav-ClockModel */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* glonass-ClockModel */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* sbas-ClockModel */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* bds-ClockModel-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* bds-ClockModel2-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* navic-ClockModel-r16 */ -}; -asn_CHOICE_specifics_t asn_SPC_GNSS_ClockModel_specs_1 = { - sizeof(struct GNSS_ClockModel), - offsetof(struct GNSS_ClockModel, _asn_ctx), - offsetof(struct GNSS_ClockModel, present), - sizeof(((struct GNSS_ClockModel *)0)->present), - asn_MAP_GNSS_ClockModel_tag2el_1, - 8, /* Count of tags in the map */ - 0, 0, - 5 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_ClockModel = { - "GNSS-ClockModel", - "GNSS-ClockModel", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_GNSS_ClockModel_constr_1, CHOICE_constraint }, - asn_MBR_GNSS_ClockModel_1, - 8, /* Elements count */ - &asn_SPC_GNSS_ClockModel_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-CommonAssistData.c b/asn.1/generated/GNSS-CommonAssistData.c deleted file mode 100644 index 2debb1b5..00000000 --- a/asn.1/generated/GNSS-CommonAssistData.c +++ /dev/null @@ -1,212 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-CommonAssistData.h" - -static asn_TYPE_member_t asn_MBR_ext1_7[] = { - { ATF_POINTER, 3, offsetof(struct GNSS_CommonAssistData__ext1, gnss_RTK_ReferenceStationInfo_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_ReferenceStationInfo_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-ReferenceStationInfo-r15" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_CommonAssistData__ext1, gnss_RTK_CommonObservationInfo_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_CommonObservationInfo_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-CommonObservationInfo-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistData__ext1, gnss_RTK_AuxiliaryStationData_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_AuxiliaryStationData_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-AuxiliaryStationData-r15" - }, -}; -static const int asn_MAP_ext1_oms_7[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-RTK-ReferenceStationInfo-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-RTK-CommonObservationInfo-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gnss-RTK-AuxiliaryStationData-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { - sizeof(struct GNSS_CommonAssistData__ext1), - offsetof(struct GNSS_CommonAssistData__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_7, - 3, /* Count of tags in the map */ - asn_MAP_ext1_oms_7, /* Optional members */ - 3, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_7 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_7, - sizeof(asn_DEF_ext1_tags_7) - /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_7, /* Same as above */ - sizeof(asn_DEF_ext1_tags_7) - /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_7, - 3, /* Elements count */ - &asn_SPC_ext1_specs_7 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_11[] = { - { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistData__ext2, gnss_SSR_CorrectionPoints_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_CorrectionPoints_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-CorrectionPoints-r16" - }, -}; -static const int asn_MAP_ext2_oms_11[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_11[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_11[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-SSR-CorrectionPoints-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_11 = { - sizeof(struct GNSS_CommonAssistData__ext2), - offsetof(struct GNSS_CommonAssistData__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_11, - 1, /* Count of tags in the map */ - asn_MAP_ext2_oms_11, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_11 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_11, - sizeof(asn_DEF_ext2_tags_11) - /sizeof(asn_DEF_ext2_tags_11[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_11, /* Same as above */ - sizeof(asn_DEF_ext2_tags_11) - /sizeof(asn_DEF_ext2_tags_11[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_11, - 1, /* Elements count */ - &asn_SPC_ext2_specs_11 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_CommonAssistData_1[] = { - { ATF_POINTER, 6, offsetof(struct GNSS_CommonAssistData, gnss_ReferenceTime), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-ReferenceTime" - }, - { ATF_POINTER, 5, offsetof(struct GNSS_CommonAssistData, gnss_ReferenceLocation), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceLocation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-ReferenceLocation" - }, - { ATF_POINTER, 4, offsetof(struct GNSS_CommonAssistData, gnss_IonosphericModel), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_IonosphericModel, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-IonosphericModel" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_CommonAssistData, gnss_EarthOrientationParameters), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_EarthOrientationParameters, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-EarthOrientationParameters" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_CommonAssistData, ext1), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - 0, - &asn_DEF_ext1_7, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistData, ext2), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - 0, - &asn_DEF_ext2_11, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_GNSS_CommonAssistData_oms_1[] = { 0, 1, 2, 3, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_GNSS_CommonAssistData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_CommonAssistData_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-ReferenceTime */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-ReferenceLocation */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-IonosphericModel */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-EarthOrientationParameters */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_CommonAssistData_specs_1 = { - sizeof(struct GNSS_CommonAssistData), - offsetof(struct GNSS_CommonAssistData, _asn_ctx), - asn_MAP_GNSS_CommonAssistData_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_GNSS_CommonAssistData_oms_1, /* Optional members */ - 4, 2, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_CommonAssistData = { - "GNSS-CommonAssistData", - "GNSS-CommonAssistData", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_CommonAssistData_tags_1, - sizeof(asn_DEF_GNSS_CommonAssistData_tags_1) - /sizeof(asn_DEF_GNSS_CommonAssistData_tags_1[0]), /* 1 */ - asn_DEF_GNSS_CommonAssistData_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_CommonAssistData_tags_1) - /sizeof(asn_DEF_GNSS_CommonAssistData_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_CommonAssistData_1, - 6, /* Elements count */ - &asn_SPC_GNSS_CommonAssistData_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-CommonAssistData.h b/asn.1/generated/GNSS-CommonAssistData.h deleted file mode 100644 index ba7193cc..00000000 --- a/asn.1/generated/GNSS-CommonAssistData.h +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_CommonAssistData_H_ -#define _GNSS_CommonAssistData_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct GNSS_ReferenceTime; -struct GNSS_ReferenceLocation; -struct GNSS_IonosphericModel; -struct GNSS_EarthOrientationParameters; -struct GNSS_RTK_ReferenceStationInfo_r15; -struct GNSS_RTK_CommonObservationInfo_r15; -struct GNSS_RTK_AuxiliaryStationData_r15; -struct GNSS_SSR_CorrectionPoints_r16; - -/* GNSS-CommonAssistData */ -typedef struct GNSS_CommonAssistData { - struct GNSS_ReferenceTime *gnss_ReferenceTime /* OPTIONAL */; - struct GNSS_ReferenceLocation *gnss_ReferenceLocation /* OPTIONAL */; - struct GNSS_IonosphericModel *gnss_IonosphericModel /* OPTIONAL */; - struct GNSS_EarthOrientationParameters *gnss_EarthOrientationParameters /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct GNSS_CommonAssistData__ext1 { - struct GNSS_RTK_ReferenceStationInfo_r15 *gnss_RTK_ReferenceStationInfo_r15 /* OPTIONAL */; - struct GNSS_RTK_CommonObservationInfo_r15 *gnss_RTK_CommonObservationInfo_r15 /* OPTIONAL */; - struct GNSS_RTK_AuxiliaryStationData_r15 *gnss_RTK_AuxiliaryStationData_r15 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct GNSS_CommonAssistData__ext2 { - struct GNSS_SSR_CorrectionPoints_r16 *gnss_SSR_CorrectionPoints_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_CommonAssistData_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_CommonAssistData; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_CommonAssistData_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_CommonAssistData_1[6]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GNSS-ReferenceTime.h" -#include "GNSS-ReferenceLocation.h" -#include "GNSS-IonosphericModel.h" -#include "GNSS-EarthOrientationParameters.h" -#include "GNSS-RTK-ReferenceStationInfo-r15.h" -#include "GNSS-RTK-CommonObservationInfo-r15.h" -#include "GNSS-RTK-AuxiliaryStationData-r15.h" -#include "GNSS-SSR-CorrectionPoints-r16.h" - -#endif /* _GNSS_CommonAssistData_H_ */ -#include diff --git a/asn.1/generated/GNSS-CommonAssistDataReq.c b/asn.1/generated/GNSS-CommonAssistDataReq.c deleted file mode 100644 index def3576e..00000000 --- a/asn.1/generated/GNSS-CommonAssistDataReq.c +++ /dev/null @@ -1,202 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-CommonAssistDataReq.h" - -static asn_TYPE_member_t asn_MBR_ext1_7[] = { - { ATF_POINTER, 2, offsetof(struct GNSS_CommonAssistDataReq__ext1, gnss_RTK_ReferenceStationInfoReq_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_ReferenceStationInfoReq_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-ReferenceStationInfoReq-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistDataReq__ext1, gnss_RTK_AuxiliaryStationDataReq_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_AuxiliaryStationDataReq_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-AuxiliaryStationDataReq-r15" - }, -}; -static const int asn_MAP_ext1_oms_7[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-RTK-ReferenceStationInfoReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-RTK-AuxiliaryStationDataReq-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { - sizeof(struct GNSS_CommonAssistDataReq__ext1), - offsetof(struct GNSS_CommonAssistDataReq__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_7, - 2, /* Count of tags in the map */ - asn_MAP_ext1_oms_7, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_7 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_7, - sizeof(asn_DEF_ext1_tags_7) - /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_7, /* Same as above */ - sizeof(asn_DEF_ext1_tags_7) - /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_7, - 2, /* Elements count */ - &asn_SPC_ext1_specs_7 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_10[] = { - { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistDataReq__ext2, gnss_SSR_CorrectionPointsReq_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_CorrectionPointsReq_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-CorrectionPointsReq-r16" - }, -}; -static const int asn_MAP_ext2_oms_10[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_10[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_10[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-SSR-CorrectionPointsReq-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_10 = { - sizeof(struct GNSS_CommonAssistDataReq__ext2), - offsetof(struct GNSS_CommonAssistDataReq__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_10, - 1, /* Count of tags in the map */ - asn_MAP_ext2_oms_10, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_10 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_10, - sizeof(asn_DEF_ext2_tags_10) - /sizeof(asn_DEF_ext2_tags_10[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_10, /* Same as above */ - sizeof(asn_DEF_ext2_tags_10) - /sizeof(asn_DEF_ext2_tags_10[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_10, - 1, /* Elements count */ - &asn_SPC_ext2_specs_10 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_CommonAssistDataReq_1[] = { - { ATF_POINTER, 6, offsetof(struct GNSS_CommonAssistDataReq, gnss_ReferenceTimeReq), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceTimeReq, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-ReferenceTimeReq" - }, - { ATF_POINTER, 5, offsetof(struct GNSS_CommonAssistDataReq, gnss_ReferenceLocationReq), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceLocationReq, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-ReferenceLocationReq" - }, - { ATF_POINTER, 4, offsetof(struct GNSS_CommonAssistDataReq, gnss_IonosphericModelReq), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_IonosphericModelReq, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-IonosphericModelReq" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_CommonAssistDataReq, gnss_EarthOrientationParametersReq), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_EarthOrientationParametersReq, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-EarthOrientationParametersReq" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_CommonAssistDataReq, ext1), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - 0, - &asn_DEF_ext1_7, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistDataReq, ext2), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - 0, - &asn_DEF_ext2_10, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_GNSS_CommonAssistDataReq_oms_1[] = { 0, 1, 2, 3, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_GNSS_CommonAssistDataReq_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_CommonAssistDataReq_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-ReferenceTimeReq */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-ReferenceLocationReq */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-IonosphericModelReq */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-EarthOrientationParametersReq */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_CommonAssistDataReq_specs_1 = { - sizeof(struct GNSS_CommonAssistDataReq), - offsetof(struct GNSS_CommonAssistDataReq, _asn_ctx), - asn_MAP_GNSS_CommonAssistDataReq_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_GNSS_CommonAssistDataReq_oms_1, /* Optional members */ - 4, 2, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_CommonAssistDataReq = { - "GNSS-CommonAssistDataReq", - "GNSS-CommonAssistDataReq", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_CommonAssistDataReq_tags_1, - sizeof(asn_DEF_GNSS_CommonAssistDataReq_tags_1) - /sizeof(asn_DEF_GNSS_CommonAssistDataReq_tags_1[0]), /* 1 */ - asn_DEF_GNSS_CommonAssistDataReq_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_CommonAssistDataReq_tags_1) - /sizeof(asn_DEF_GNSS_CommonAssistDataReq_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_CommonAssistDataReq_1, - 6, /* Elements count */ - &asn_SPC_GNSS_CommonAssistDataReq_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-CommonAssistDataReq.h b/asn.1/generated/GNSS-CommonAssistDataReq.h deleted file mode 100644 index 328040cd..00000000 --- a/asn.1/generated/GNSS-CommonAssistDataReq.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_CommonAssistDataReq_H_ -#define _GNSS_CommonAssistDataReq_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct GNSS_ReferenceTimeReq; -struct GNSS_ReferenceLocationReq; -struct GNSS_IonosphericModelReq; -struct GNSS_EarthOrientationParametersReq; -struct GNSS_RTK_ReferenceStationInfoReq_r15; -struct GNSS_RTK_AuxiliaryStationDataReq_r15; -struct GNSS_SSR_CorrectionPointsReq_r16; - -/* GNSS-CommonAssistDataReq */ -typedef struct GNSS_CommonAssistDataReq { - struct GNSS_ReferenceTimeReq *gnss_ReferenceTimeReq /* OPTIONAL */; - struct GNSS_ReferenceLocationReq *gnss_ReferenceLocationReq /* OPTIONAL */; - struct GNSS_IonosphericModelReq *gnss_IonosphericModelReq /* OPTIONAL */; - struct GNSS_EarthOrientationParametersReq *gnss_EarthOrientationParametersReq /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct GNSS_CommonAssistDataReq__ext1 { - struct GNSS_RTK_ReferenceStationInfoReq_r15 *gnss_RTK_ReferenceStationInfoReq_r15 /* OPTIONAL */; - struct GNSS_RTK_AuxiliaryStationDataReq_r15 *gnss_RTK_AuxiliaryStationDataReq_r15 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct GNSS_CommonAssistDataReq__ext2 { - struct GNSS_SSR_CorrectionPointsReq_r16 *gnss_SSR_CorrectionPointsReq_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_CommonAssistDataReq_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_CommonAssistDataReq; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_CommonAssistDataReq_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_CommonAssistDataReq_1[6]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GNSS-ReferenceTimeReq.h" -#include "GNSS-ReferenceLocationReq.h" -#include "GNSS-IonosphericModelReq.h" -#include "GNSS-EarthOrientationParametersReq.h" -#include "GNSS-RTK-ReferenceStationInfoReq-r15.h" -#include "GNSS-RTK-AuxiliaryStationDataReq-r15.h" -#include "GNSS-SSR-CorrectionPointsReq-r16.h" - -#endif /* _GNSS_CommonAssistDataReq_H_ */ -#include diff --git a/asn.1/generated/GNSS-CommonAssistanceDataSupport.c b/asn.1/generated/GNSS-CommonAssistanceDataSupport.c deleted file mode 100644 index a7c3217f..00000000 --- a/asn.1/generated/GNSS-CommonAssistanceDataSupport.c +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-CommonAssistanceDataSupport.h" - -static asn_TYPE_member_t asn_MBR_ext1_7[] = { - { ATF_POINTER, 2, offsetof(struct GNSS_CommonAssistanceDataSupport__ext1, gnss_RTK_ReferenceStationInfoSupport_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_ReferenceStationInfoSupport_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-ReferenceStationInfoSupport-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistanceDataSupport__ext1, gnss_RTK_AuxiliaryStationDataSupport_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_AuxiliaryStationDataSupport_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-AuxiliaryStationDataSupport-r15" - }, -}; -static const int asn_MAP_ext1_oms_7[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-RTK-ReferenceStationInfoSupport-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-RTK-AuxiliaryStationDataSupport-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { - sizeof(struct GNSS_CommonAssistanceDataSupport__ext1), - offsetof(struct GNSS_CommonAssistanceDataSupport__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_7, - 2, /* Count of tags in the map */ - asn_MAP_ext1_oms_7, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_7 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_7, - sizeof(asn_DEF_ext1_tags_7) - /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_7, /* Same as above */ - sizeof(asn_DEF_ext1_tags_7) - /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_7, - 2, /* Elements count */ - &asn_SPC_ext1_specs_7 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_CommonAssistanceDataSupport_1[] = { - { ATF_POINTER, 5, offsetof(struct GNSS_CommonAssistanceDataSupport, gnss_ReferenceTimeSupport), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceTimeSupport, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-ReferenceTimeSupport" - }, - { ATF_POINTER, 4, offsetof(struct GNSS_CommonAssistanceDataSupport, gnss_ReferenceLocationSupport), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceLocationSupport, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-ReferenceLocationSupport" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_CommonAssistanceDataSupport, gnss_IonosphericModelSupport), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_IonosphericModelSupport, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-IonosphericModelSupport" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_CommonAssistanceDataSupport, gnss_EarthOrientationParametersSupport), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_EarthOrientationParametersSupport, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-EarthOrientationParametersSupport" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistanceDataSupport, ext1), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - 0, - &asn_DEF_ext1_7, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_GNSS_CommonAssistanceDataSupport_oms_1[] = { 0, 1, 2, 3, 4 }; -static const ber_tlv_tag_t asn_DEF_GNSS_CommonAssistanceDataSupport_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_CommonAssistanceDataSupport_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-ReferenceTimeSupport */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-ReferenceLocationSupport */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-IonosphericModelSupport */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-EarthOrientationParametersSupport */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_CommonAssistanceDataSupport_specs_1 = { - sizeof(struct GNSS_CommonAssistanceDataSupport), - offsetof(struct GNSS_CommonAssistanceDataSupport, _asn_ctx), - asn_MAP_GNSS_CommonAssistanceDataSupport_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_GNSS_CommonAssistanceDataSupport_oms_1, /* Optional members */ - 4, 1, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_CommonAssistanceDataSupport = { - "GNSS-CommonAssistanceDataSupport", - "GNSS-CommonAssistanceDataSupport", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_CommonAssistanceDataSupport_tags_1, - sizeof(asn_DEF_GNSS_CommonAssistanceDataSupport_tags_1) - /sizeof(asn_DEF_GNSS_CommonAssistanceDataSupport_tags_1[0]), /* 1 */ - asn_DEF_GNSS_CommonAssistanceDataSupport_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_CommonAssistanceDataSupport_tags_1) - /sizeof(asn_DEF_GNSS_CommonAssistanceDataSupport_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_CommonAssistanceDataSupport_1, - 5, /* Elements count */ - &asn_SPC_GNSS_CommonAssistanceDataSupport_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-CommonAssistanceDataSupport.h b/asn.1/generated/GNSS-CommonAssistanceDataSupport.h deleted file mode 100644 index 7cefd7e1..00000000 --- a/asn.1/generated/GNSS-CommonAssistanceDataSupport.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_CommonAssistanceDataSupport_H_ -#define _GNSS_CommonAssistanceDataSupport_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct GNSS_ReferenceTimeSupport; -struct GNSS_ReferenceLocationSupport; -struct GNSS_IonosphericModelSupport; -struct GNSS_EarthOrientationParametersSupport; -struct GNSS_RTK_ReferenceStationInfoSupport_r15; -struct GNSS_RTK_AuxiliaryStationDataSupport_r15; - -/* GNSS-CommonAssistanceDataSupport */ -typedef struct GNSS_CommonAssistanceDataSupport { - struct GNSS_ReferenceTimeSupport *gnss_ReferenceTimeSupport /* OPTIONAL */; - struct GNSS_ReferenceLocationSupport *gnss_ReferenceLocationSupport /* OPTIONAL */; - struct GNSS_IonosphericModelSupport *gnss_IonosphericModelSupport /* OPTIONAL */; - struct GNSS_EarthOrientationParametersSupport *gnss_EarthOrientationParametersSupport /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct GNSS_CommonAssistanceDataSupport__ext1 { - struct GNSS_RTK_ReferenceStationInfoSupport_r15 *gnss_RTK_ReferenceStationInfoSupport_r15 /* OPTIONAL */; - struct GNSS_RTK_AuxiliaryStationDataSupport_r15 *gnss_RTK_AuxiliaryStationDataSupport_r15 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_CommonAssistanceDataSupport_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_CommonAssistanceDataSupport; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_CommonAssistanceDataSupport_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_CommonAssistanceDataSupport_1[5]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GNSS-ReferenceTimeSupport.h" -#include "GNSS-ReferenceLocationSupport.h" -#include "GNSS-IonosphericModelSupport.h" -#include "GNSS-EarthOrientationParametersSupport.h" -#include "GNSS-RTK-ReferenceStationInfoSupport-r15.h" -#include "GNSS-RTK-AuxiliaryStationDataSupport-r15.h" - -#endif /* _GNSS_CommonAssistanceDataSupport_H_ */ -#include diff --git a/asn.1/generated/GNSS-DataBitAssistance.c b/asn.1/generated/GNSS-DataBitAssistance.c deleted file mode 100644 index a8b61360..00000000 --- a/asn.1/generated/GNSS-DataBitAssistance.c +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-DataBitAssistance.h" - -static int -memb_gnss_TOD_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3599)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gnss_TODfrac_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gnss_TOD_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_TODfrac_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_DataBitAssistance_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitAssistance, gnss_TOD), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_TOD_constr_2, memb_gnss_TOD_constraint_1 }, - 0, 0, /* No default value */ - "gnss-TOD" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_DataBitAssistance, gnss_TODfrac), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_TODfrac_constr_3, memb_gnss_TODfrac_constraint_1 }, - 0, 0, /* No default value */ - "gnss-TODfrac" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitAssistance, gnss_DataBitsSatList), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_DataBitsSatList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-DataBitsSatList" - }, -}; -static const int asn_MAP_GNSS_DataBitAssistance_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_GNSS_DataBitAssistance_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_DataBitAssistance_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-TOD */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-TODfrac */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gnss-DataBitsSatList */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_DataBitAssistance_specs_1 = { - sizeof(struct GNSS_DataBitAssistance), - offsetof(struct GNSS_DataBitAssistance, _asn_ctx), - asn_MAP_GNSS_DataBitAssistance_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_GNSS_DataBitAssistance_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_DataBitAssistance = { - "GNSS-DataBitAssistance", - "GNSS-DataBitAssistance", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_DataBitAssistance_tags_1, - sizeof(asn_DEF_GNSS_DataBitAssistance_tags_1) - /sizeof(asn_DEF_GNSS_DataBitAssistance_tags_1[0]), /* 1 */ - asn_DEF_GNSS_DataBitAssistance_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_DataBitAssistance_tags_1) - /sizeof(asn_DEF_GNSS_DataBitAssistance_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_DataBitAssistance_1, - 3, /* Elements count */ - &asn_SPC_GNSS_DataBitAssistance_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-DataBitAssistanceReq.c b/asn.1/generated/GNSS-DataBitAssistanceReq.c deleted file mode 100644 index 2ed864df..00000000 --- a/asn.1/generated/GNSS-DataBitAssistanceReq.c +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-DataBitAssistanceReq.h" - -static int -memb_gnss_TOD_Req_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3599)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gnss_TOD_FracReq_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_dataBitInterval_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gnss_TOD_Req_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_TOD_FracReq_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_dataBitInterval_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_DataBitAssistanceReq_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitAssistanceReq, gnss_TOD_Req), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_TOD_Req_constr_2, memb_gnss_TOD_Req_constraint_1 }, - 0, 0, /* No default value */ - "gnss-TOD-Req" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_DataBitAssistanceReq, gnss_TOD_FracReq), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_TOD_FracReq_constr_3, memb_gnss_TOD_FracReq_constraint_1 }, - 0, 0, /* No default value */ - "gnss-TOD-FracReq" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitAssistanceReq, dataBitInterval), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_dataBitInterval_constr_4, memb_dataBitInterval_constraint_1 }, - 0, 0, /* No default value */ - "dataBitInterval" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitAssistanceReq, gnss_SignalType), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalIDs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SignalType" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_DataBitAssistanceReq, gnss_DataBitsReq), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_DataBitsReqSatList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-DataBitsReq" - }, -}; -static const int asn_MAP_GNSS_DataBitAssistanceReq_oms_1[] = { 1, 4 }; -static const ber_tlv_tag_t asn_DEF_GNSS_DataBitAssistanceReq_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_DataBitAssistanceReq_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-TOD-Req */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-TOD-FracReq */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dataBitInterval */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-SignalType */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* gnss-DataBitsReq */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_DataBitAssistanceReq_specs_1 = { - sizeof(struct GNSS_DataBitAssistanceReq), - offsetof(struct GNSS_DataBitAssistanceReq, _asn_ctx), - asn_MAP_GNSS_DataBitAssistanceReq_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_GNSS_DataBitAssistanceReq_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_DataBitAssistanceReq = { - "GNSS-DataBitAssistanceReq", - "GNSS-DataBitAssistanceReq", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_DataBitAssistanceReq_tags_1, - sizeof(asn_DEF_GNSS_DataBitAssistanceReq_tags_1) - /sizeof(asn_DEF_GNSS_DataBitAssistanceReq_tags_1[0]), /* 1 */ - asn_DEF_GNSS_DataBitAssistanceReq_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_DataBitAssistanceReq_tags_1) - /sizeof(asn_DEF_GNSS_DataBitAssistanceReq_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_DataBitAssistanceReq_1, - 5, /* Elements count */ - &asn_SPC_GNSS_DataBitAssistanceReq_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-DataBitAssistanceSupport.c b/asn.1/generated/GNSS-DataBitAssistanceSupport.c deleted file mode 100644 index 1b77face..00000000 --- a/asn.1/generated/GNSS-DataBitAssistanceSupport.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-DataBitAssistanceSupport.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_DataBitAssistanceSupport_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_DataBitAssistanceSupport_specs_1 = { - sizeof(struct GNSS_DataBitAssistanceSupport), - offsetof(struct GNSS_DataBitAssistanceSupport, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_DataBitAssistanceSupport = { - "GNSS-DataBitAssistanceSupport", - "GNSS-DataBitAssistanceSupport", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_DataBitAssistanceSupport_tags_1, - sizeof(asn_DEF_GNSS_DataBitAssistanceSupport_tags_1) - /sizeof(asn_DEF_GNSS_DataBitAssistanceSupport_tags_1[0]), /* 1 */ - asn_DEF_GNSS_DataBitAssistanceSupport_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_DataBitAssistanceSupport_tags_1) - /sizeof(asn_DEF_GNSS_DataBitAssistanceSupport_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_DataBitAssistanceSupport_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-DataBitsReqSatElement.c b/asn.1/generated/GNSS-DataBitsReqSatElement.c deleted file mode 100644 index 689b5c25..00000000 --- a/asn.1/generated/GNSS-DataBitsReqSatElement.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-DataBitsReqSatElement.h" - -asn_TYPE_member_t asn_MBR_GNSS_DataBitsReqSatElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitsReqSatElement, svID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_DataBitsReqSatElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_DataBitsReqSatElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* svID */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_DataBitsReqSatElement_specs_1 = { - sizeof(struct GNSS_DataBitsReqSatElement), - offsetof(struct GNSS_DataBitsReqSatElement, _asn_ctx), - asn_MAP_GNSS_DataBitsReqSatElement_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_DataBitsReqSatElement = { - "GNSS-DataBitsReqSatElement", - "GNSS-DataBitsReqSatElement", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_DataBitsReqSatElement_tags_1, - sizeof(asn_DEF_GNSS_DataBitsReqSatElement_tags_1) - /sizeof(asn_DEF_GNSS_DataBitsReqSatElement_tags_1[0]), /* 1 */ - asn_DEF_GNSS_DataBitsReqSatElement_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_DataBitsReqSatElement_tags_1) - /sizeof(asn_DEF_GNSS_DataBitsReqSatElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_DataBitsReqSatElement_1, - 1, /* Elements count */ - &asn_SPC_GNSS_DataBitsReqSatElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-DataBitsReqSatList.c b/asn.1/generated/GNSS-DataBitsReqSatList.c deleted file mode 100644 index f373d69f..00000000 --- a/asn.1/generated/GNSS-DataBitsReqSatList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-DataBitsReqSatList.h" - -asn_per_constraints_t asn_PER_type_GNSS_DataBitsReqSatList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_DataBitsReqSatList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_DataBitsReqSatElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_DataBitsReqSatList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_DataBitsReqSatList_specs_1 = { - sizeof(struct GNSS_DataBitsReqSatList), - offsetof(struct GNSS_DataBitsReqSatList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_DataBitsReqSatList = { - "GNSS-DataBitsReqSatList", - "GNSS-DataBitsReqSatList", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_DataBitsReqSatList_tags_1, - sizeof(asn_DEF_GNSS_DataBitsReqSatList_tags_1) - /sizeof(asn_DEF_GNSS_DataBitsReqSatList_tags_1[0]), /* 1 */ - asn_DEF_GNSS_DataBitsReqSatList_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_DataBitsReqSatList_tags_1) - /sizeof(asn_DEF_GNSS_DataBitsReqSatList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_DataBitsReqSatList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_DataBitsReqSatList_1, - 1, /* Single element */ - &asn_SPC_GNSS_DataBitsReqSatList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-DataBitsSatElement.c b/asn.1/generated/GNSS-DataBitsSatElement.c deleted file mode 100644 index 0d009309..00000000 --- a/asn.1/generated/GNSS-DataBitsSatElement.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-DataBitsSatElement.h" - -asn_TYPE_member_t asn_MBR_GNSS_DataBitsSatElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitsSatElement, svID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitsSatElement, gnss_DataBitsSgnList), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_DataBitsSgnList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-DataBitsSgnList" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_DataBitsSatElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_DataBitsSatElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-DataBitsSgnList */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_DataBitsSatElement_specs_1 = { - sizeof(struct GNSS_DataBitsSatElement), - offsetof(struct GNSS_DataBitsSatElement, _asn_ctx), - asn_MAP_GNSS_DataBitsSatElement_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_DataBitsSatElement = { - "GNSS-DataBitsSatElement", - "GNSS-DataBitsSatElement", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_DataBitsSatElement_tags_1, - sizeof(asn_DEF_GNSS_DataBitsSatElement_tags_1) - /sizeof(asn_DEF_GNSS_DataBitsSatElement_tags_1[0]), /* 1 */ - asn_DEF_GNSS_DataBitsSatElement_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_DataBitsSatElement_tags_1) - /sizeof(asn_DEF_GNSS_DataBitsSatElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_DataBitsSatElement_1, - 2, /* Elements count */ - &asn_SPC_GNSS_DataBitsSatElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-DataBitsSatList.c b/asn.1/generated/GNSS-DataBitsSatList.c deleted file mode 100644 index c4b8c405..00000000 --- a/asn.1/generated/GNSS-DataBitsSatList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-DataBitsSatList.h" - -asn_per_constraints_t asn_PER_type_GNSS_DataBitsSatList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_DataBitsSatList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_DataBitsSatElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_DataBitsSatList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_DataBitsSatList_specs_1 = { - sizeof(struct GNSS_DataBitsSatList), - offsetof(struct GNSS_DataBitsSatList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_DataBitsSatList = { - "GNSS-DataBitsSatList", - "GNSS-DataBitsSatList", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_DataBitsSatList_tags_1, - sizeof(asn_DEF_GNSS_DataBitsSatList_tags_1) - /sizeof(asn_DEF_GNSS_DataBitsSatList_tags_1[0]), /* 1 */ - asn_DEF_GNSS_DataBitsSatList_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_DataBitsSatList_tags_1) - /sizeof(asn_DEF_GNSS_DataBitsSatList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_DataBitsSatList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_DataBitsSatList_1, - 1, /* Single element */ - &asn_SPC_GNSS_DataBitsSatList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-DataBitsSgnElement.c b/asn.1/generated/GNSS-DataBitsSgnElement.c deleted file mode 100644 index f37d21c0..00000000 --- a/asn.1/generated/GNSS-DataBitsSgnElement.c +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-DataBitsSgnElement.h" - -static int -memb_gnss_DataBits_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 1024)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gnss_DataBits_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_DataBitsSgnElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitsSgnElement, gnss_SignalType), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SignalType" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitsSgnElement, gnss_DataBits), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_gnss_DataBits_constr_3, memb_gnss_DataBits_constraint_1 }, - 0, 0, /* No default value */ - "gnss-DataBits" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_DataBitsSgnElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_DataBitsSgnElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SignalType */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-DataBits */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_DataBitsSgnElement_specs_1 = { - sizeof(struct GNSS_DataBitsSgnElement), - offsetof(struct GNSS_DataBitsSgnElement, _asn_ctx), - asn_MAP_GNSS_DataBitsSgnElement_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_DataBitsSgnElement = { - "GNSS-DataBitsSgnElement", - "GNSS-DataBitsSgnElement", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_DataBitsSgnElement_tags_1, - sizeof(asn_DEF_GNSS_DataBitsSgnElement_tags_1) - /sizeof(asn_DEF_GNSS_DataBitsSgnElement_tags_1[0]), /* 1 */ - asn_DEF_GNSS_DataBitsSgnElement_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_DataBitsSgnElement_tags_1) - /sizeof(asn_DEF_GNSS_DataBitsSgnElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_DataBitsSgnElement_1, - 2, /* Elements count */ - &asn_SPC_GNSS_DataBitsSgnElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-DataBitsSgnList.c b/asn.1/generated/GNSS-DataBitsSgnList.c deleted file mode 100644 index 462a5377..00000000 --- a/asn.1/generated/GNSS-DataBitsSgnList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-DataBitsSgnList.h" - -asn_per_constraints_t asn_PER_type_GNSS_DataBitsSgnList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_DataBitsSgnList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_DataBitsSgnElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_DataBitsSgnList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_DataBitsSgnList_specs_1 = { - sizeof(struct GNSS_DataBitsSgnList), - offsetof(struct GNSS_DataBitsSgnList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_DataBitsSgnList = { - "GNSS-DataBitsSgnList", - "GNSS-DataBitsSgnList", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_DataBitsSgnList_tags_1, - sizeof(asn_DEF_GNSS_DataBitsSgnList_tags_1) - /sizeof(asn_DEF_GNSS_DataBitsSgnList_tags_1[0]), /* 1 */ - asn_DEF_GNSS_DataBitsSgnList_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_DataBitsSgnList_tags_1) - /sizeof(asn_DEF_GNSS_DataBitsSgnList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_DataBitsSgnList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_DataBitsSgnList_1, - 1, /* Single element */ - &asn_SPC_GNSS_DataBitsSgnList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-DifferentialCorrections.c b/asn.1/generated/GNSS-DifferentialCorrections.c deleted file mode 100644 index 1ec3b82d..00000000 --- a/asn.1/generated/GNSS-DifferentialCorrections.c +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-DifferentialCorrections.h" - -static int -memb_dgnss_RefTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3599)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_dgnss_RefTime_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_DifferentialCorrections_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_DifferentialCorrections, dgnss_RefTime), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_dgnss_RefTime_constr_2, memb_dgnss_RefTime_constraint_1 }, - 0, 0, /* No default value */ - "dgnss-RefTime" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_DifferentialCorrections, dgnss_SgnTypeList), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DGNSS_SgnTypeList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dgnss-SgnTypeList" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_DifferentialCorrections_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_DifferentialCorrections_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dgnss-RefTime */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dgnss-SgnTypeList */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_DifferentialCorrections_specs_1 = { - sizeof(struct GNSS_DifferentialCorrections), - offsetof(struct GNSS_DifferentialCorrections, _asn_ctx), - asn_MAP_GNSS_DifferentialCorrections_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_DifferentialCorrections = { - "GNSS-DifferentialCorrections", - "GNSS-DifferentialCorrections", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_DifferentialCorrections_tags_1, - sizeof(asn_DEF_GNSS_DifferentialCorrections_tags_1) - /sizeof(asn_DEF_GNSS_DifferentialCorrections_tags_1[0]), /* 1 */ - asn_DEF_GNSS_DifferentialCorrections_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_DifferentialCorrections_tags_1) - /sizeof(asn_DEF_GNSS_DifferentialCorrections_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_DifferentialCorrections_1, - 2, /* Elements count */ - &asn_SPC_GNSS_DifferentialCorrections_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-DifferentialCorrectionsReq.c b/asn.1/generated/GNSS-DifferentialCorrectionsReq.c deleted file mode 100644 index 685c078c..00000000 --- a/asn.1/generated/GNSS-DifferentialCorrectionsReq.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-DifferentialCorrectionsReq.h" - -asn_TYPE_member_t asn_MBR_GNSS_DifferentialCorrectionsReq_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_DifferentialCorrectionsReq, dgnss_SignalsReq), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalIDs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dgnss-SignalsReq" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_DifferentialCorrectionsReq, dgnss_ValidityTimeReq), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dgnss-ValidityTimeReq" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_DifferentialCorrectionsReq_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_DifferentialCorrectionsReq_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dgnss-SignalsReq */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dgnss-ValidityTimeReq */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_DifferentialCorrectionsReq_specs_1 = { - sizeof(struct GNSS_DifferentialCorrectionsReq), - offsetof(struct GNSS_DifferentialCorrectionsReq, _asn_ctx), - asn_MAP_GNSS_DifferentialCorrectionsReq_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_DifferentialCorrectionsReq = { - "GNSS-DifferentialCorrectionsReq", - "GNSS-DifferentialCorrectionsReq", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_DifferentialCorrectionsReq_tags_1, - sizeof(asn_DEF_GNSS_DifferentialCorrectionsReq_tags_1) - /sizeof(asn_DEF_GNSS_DifferentialCorrectionsReq_tags_1[0]), /* 1 */ - asn_DEF_GNSS_DifferentialCorrectionsReq_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_DifferentialCorrectionsReq_tags_1) - /sizeof(asn_DEF_GNSS_DifferentialCorrectionsReq_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_DifferentialCorrectionsReq_1, - 2, /* Elements count */ - &asn_SPC_GNSS_DifferentialCorrectionsReq_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-DifferentialCorrectionsSupport.c b/asn.1/generated/GNSS-DifferentialCorrectionsSupport.c deleted file mode 100644 index 18960553..00000000 --- a/asn.1/generated/GNSS-DifferentialCorrectionsSupport.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-DifferentialCorrectionsSupport.h" - -asn_TYPE_member_t asn_MBR_GNSS_DifferentialCorrectionsSupport_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_DifferentialCorrectionsSupport, gnssSignalIDs), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalIDs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnssSignalIDs" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_DifferentialCorrectionsSupport, dgnss_ValidityTimeSup), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dgnss-ValidityTimeSup" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_DifferentialCorrectionsSupport_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_DifferentialCorrectionsSupport_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnssSignalIDs */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dgnss-ValidityTimeSup */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_DifferentialCorrectionsSupport_specs_1 = { - sizeof(struct GNSS_DifferentialCorrectionsSupport), - offsetof(struct GNSS_DifferentialCorrectionsSupport, _asn_ctx), - asn_MAP_GNSS_DifferentialCorrectionsSupport_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_DifferentialCorrectionsSupport = { - "GNSS-DifferentialCorrectionsSupport", - "GNSS-DifferentialCorrectionsSupport", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_DifferentialCorrectionsSupport_tags_1, - sizeof(asn_DEF_GNSS_DifferentialCorrectionsSupport_tags_1) - /sizeof(asn_DEF_GNSS_DifferentialCorrectionsSupport_tags_1[0]), /* 1 */ - asn_DEF_GNSS_DifferentialCorrectionsSupport_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_DifferentialCorrectionsSupport_tags_1) - /sizeof(asn_DEF_GNSS_DifferentialCorrectionsSupport_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_DifferentialCorrectionsSupport_1, - 2, /* Elements count */ - &asn_SPC_GNSS_DifferentialCorrectionsSupport_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-EarthOrientationParameters.c b/asn.1/generated/GNSS-EarthOrientationParameters.c deleted file mode 100644 index 475bf583..00000000 --- a/asn.1/generated/GNSS-EarthOrientationParameters.c +++ /dev/null @@ -1,320 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-EarthOrientationParameters.h" - -static int -memb_teop_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_pmX_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1048576 && value <= 1048575)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_pmXdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16384 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_pmY_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1048576 && value <= 1048575)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_pmYdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16384 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_deltaUT1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1073741824 && value <= 1073741823)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_deltaUT1dot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -262144 && value <= 262143)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_teop_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_pmX_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_pmXdot_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_pmY_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_pmYdot_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_deltaUT1_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 31, -1, -1073741824, 1073741823 } /* (-1073741824..1073741823) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_deltaUT1dot_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 19, -1, -262144, 262143 } /* (-262144..262143) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_EarthOrientationParameters_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_EarthOrientationParameters, teop), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_teop_constr_2, memb_teop_constraint_1 }, - 0, 0, /* No default value */ - "teop" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_EarthOrientationParameters, pmX), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_pmX_constr_3, memb_pmX_constraint_1 }, - 0, 0, /* No default value */ - "pmX" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_EarthOrientationParameters, pmXdot), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_pmXdot_constr_4, memb_pmXdot_constraint_1 }, - 0, 0, /* No default value */ - "pmXdot" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_EarthOrientationParameters, pmY), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_pmY_constr_5, memb_pmY_constraint_1 }, - 0, 0, /* No default value */ - "pmY" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_EarthOrientationParameters, pmYdot), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_pmYdot_constr_6, memb_pmYdot_constraint_1 }, - 0, 0, /* No default value */ - "pmYdot" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_EarthOrientationParameters, deltaUT1), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_deltaUT1_constr_7, memb_deltaUT1_constraint_1 }, - 0, 0, /* No default value */ - "deltaUT1" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_EarthOrientationParameters, deltaUT1dot), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_deltaUT1dot_constr_8, memb_deltaUT1dot_constraint_1 }, - 0, 0, /* No default value */ - "deltaUT1dot" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_EarthOrientationParameters_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_EarthOrientationParameters_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* teop */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* pmX */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* pmXdot */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* pmY */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* pmYdot */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* deltaUT1 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* deltaUT1dot */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_EarthOrientationParameters_specs_1 = { - sizeof(struct GNSS_EarthOrientationParameters), - offsetof(struct GNSS_EarthOrientationParameters, _asn_ctx), - asn_MAP_GNSS_EarthOrientationParameters_tag2el_1, - 7, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 7, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_EarthOrientationParameters = { - "GNSS-EarthOrientationParameters", - "GNSS-EarthOrientationParameters", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_EarthOrientationParameters_tags_1, - sizeof(asn_DEF_GNSS_EarthOrientationParameters_tags_1) - /sizeof(asn_DEF_GNSS_EarthOrientationParameters_tags_1[0]), /* 1 */ - asn_DEF_GNSS_EarthOrientationParameters_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_EarthOrientationParameters_tags_1) - /sizeof(asn_DEF_GNSS_EarthOrientationParameters_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_EarthOrientationParameters_1, - 7, /* Elements count */ - &asn_SPC_GNSS_EarthOrientationParameters_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-EarthOrientationParametersReq.c b/asn.1/generated/GNSS-EarthOrientationParametersReq.c deleted file mode 100644 index b962f300..00000000 --- a/asn.1/generated/GNSS-EarthOrientationParametersReq.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-EarthOrientationParametersReq.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_EarthOrientationParametersReq_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_EarthOrientationParametersReq_specs_1 = { - sizeof(struct GNSS_EarthOrientationParametersReq), - offsetof(struct GNSS_EarthOrientationParametersReq, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_EarthOrientationParametersReq = { - "GNSS-EarthOrientationParametersReq", - "GNSS-EarthOrientationParametersReq", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_EarthOrientationParametersReq_tags_1, - sizeof(asn_DEF_GNSS_EarthOrientationParametersReq_tags_1) - /sizeof(asn_DEF_GNSS_EarthOrientationParametersReq_tags_1[0]), /* 1 */ - asn_DEF_GNSS_EarthOrientationParametersReq_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_EarthOrientationParametersReq_tags_1) - /sizeof(asn_DEF_GNSS_EarthOrientationParametersReq_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_EarthOrientationParametersReq_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-EarthOrientationParametersSupport.c b/asn.1/generated/GNSS-EarthOrientationParametersSupport.c deleted file mode 100644 index 1a064f58..00000000 --- a/asn.1/generated/GNSS-EarthOrientationParametersSupport.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-EarthOrientationParametersSupport.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_EarthOrientationParametersSupport_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_EarthOrientationParametersSupport_specs_1 = { - sizeof(struct GNSS_EarthOrientationParametersSupport), - offsetof(struct GNSS_EarthOrientationParametersSupport, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_EarthOrientationParametersSupport = { - "GNSS-EarthOrientationParametersSupport", - "GNSS-EarthOrientationParametersSupport", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_EarthOrientationParametersSupport_tags_1, - sizeof(asn_DEF_GNSS_EarthOrientationParametersSupport_tags_1) - /sizeof(asn_DEF_GNSS_EarthOrientationParametersSupport_tags_1[0]), /* 1 */ - asn_DEF_GNSS_EarthOrientationParametersSupport_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_EarthOrientationParametersSupport_tags_1) - /sizeof(asn_DEF_GNSS_EarthOrientationParametersSupport_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_EarthOrientationParametersSupport_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-FrequencyID-r15.c b/asn.1/generated/GNSS-FrequencyID-r15.c deleted file mode 100644 index 62b86449..00000000 --- a/asn.1/generated/GNSS-FrequencyID-r15.c +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-FrequencyID-r15.h" - -static int -memb_gnss_FrequencyID_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 7)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gnss_FrequencyID_r15_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_FrequencyID_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_FrequencyID_r15, gnss_FrequencyID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_FrequencyID_r15_constr_2, memb_gnss_FrequencyID_r15_constraint_1 }, - 0, 0, /* No default value */ - "gnss-FrequencyID-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_FrequencyID_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_FrequencyID_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-FrequencyID-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_FrequencyID_r15_specs_1 = { - sizeof(struct GNSS_FrequencyID_r15), - offsetof(struct GNSS_FrequencyID_r15, _asn_ctx), - asn_MAP_GNSS_FrequencyID_r15_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_FrequencyID_r15 = { - "GNSS-FrequencyID-r15", - "GNSS-FrequencyID-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_FrequencyID_r15_tags_1, - sizeof(asn_DEF_GNSS_FrequencyID_r15_tags_1) - /sizeof(asn_DEF_GNSS_FrequencyID_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_FrequencyID_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_FrequencyID_r15_tags_1) - /sizeof(asn_DEF_GNSS_FrequencyID_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_FrequencyID_r15_1, - 1, /* Elements count */ - &asn_SPC_GNSS_FrequencyID_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-GenericAssistData.c b/asn.1/generated/GNSS-GenericAssistData.c deleted file mode 100644 index 125dfd17..00000000 --- a/asn.1/generated/GNSS-GenericAssistData.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-GenericAssistData.h" - -asn_per_constraints_t asn_PER_type_GNSS_GenericAssistData_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_GenericAssistData_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_GenericAssistDataElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_GenericAssistData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_GenericAssistData_specs_1 = { - sizeof(struct GNSS_GenericAssistData), - offsetof(struct GNSS_GenericAssistData, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_GenericAssistData = { - "GNSS-GenericAssistData", - "GNSS-GenericAssistData", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_GenericAssistData_tags_1, - sizeof(asn_DEF_GNSS_GenericAssistData_tags_1) - /sizeof(asn_DEF_GNSS_GenericAssistData_tags_1[0]), /* 1 */ - asn_DEF_GNSS_GenericAssistData_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_GenericAssistData_tags_1) - /sizeof(asn_DEF_GNSS_GenericAssistData_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_GenericAssistData_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_GenericAssistData_1, - 1, /* Single element */ - &asn_SPC_GNSS_GenericAssistData_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-GenericAssistDataElement.c b/asn.1/generated/GNSS-GenericAssistDataElement.c deleted file mode 100644 index 36298876..00000000 --- a/asn.1/generated/GNSS-GenericAssistDataElement.c +++ /dev/null @@ -1,447 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-GenericAssistDataElement.h" - -static asn_TYPE_member_t asn_MBR_ext1_14[] = { - { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataElement__ext1, bds_DifferentialCorrections_r12), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BDS_DifferentialCorrections_r12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bds-DifferentialCorrections-r12" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataElement__ext1, bds_GridModel_r12), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BDS_GridModelParameter_r12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bds-GridModel-r12" - }, -}; -static const int asn_MAP_ext1_oms_14[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_14[] = { - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_14[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bds-DifferentialCorrections-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bds-GridModel-r12 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_14 = { - sizeof(struct GNSS_GenericAssistDataElement__ext1), - offsetof(struct GNSS_GenericAssistDataElement__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_14, - 2, /* Count of tags in the map */ - asn_MAP_ext1_oms_14, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_14 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_14, - sizeof(asn_DEF_ext1_tags_14) - /sizeof(asn_DEF_ext1_tags_14[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_14, /* Same as above */ - sizeof(asn_DEF_ext1_tags_14) - /sizeof(asn_DEF_ext1_tags_14[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_14, - 2, /* Elements count */ - &asn_SPC_ext1_specs_14 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_17[] = { - { ATF_POINTER, 8, offsetof(struct GNSS_GenericAssistDataElement__ext2, gnss_RTK_Observations_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_Observations_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-Observations-r15" - }, - { ATF_POINTER, 7, offsetof(struct GNSS_GenericAssistDataElement__ext2, glo_RTK_BiasInformation_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GLO_RTK_BiasInformation_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "glo-RTK-BiasInformation-r15" - }, - { ATF_POINTER, 6, offsetof(struct GNSS_GenericAssistDataElement__ext2, gnss_RTK_MAC_CorrectionDifferences_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_MAC_CorrectionDifferences_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-MAC-CorrectionDifferences-r15" - }, - { ATF_POINTER, 5, offsetof(struct GNSS_GenericAssistDataElement__ext2, gnss_RTK_Residuals_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_Residuals_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-Residuals-r15" - }, - { ATF_POINTER, 4, offsetof(struct GNSS_GenericAssistDataElement__ext2, gnss_RTK_FKP_Gradients_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_FKP_Gradients_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-FKP-Gradients-r15" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataElement__ext2, gnss_SSR_OrbitCorrections_r15), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_OrbitCorrections_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-OrbitCorrections-r15" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataElement__ext2, gnss_SSR_ClockCorrections_r15), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_ClockCorrections_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-ClockCorrections-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataElement__ext2, gnss_SSR_CodeBias_r15), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_CodeBias_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-CodeBias-r15" - }, -}; -static const int asn_MAP_ext2_oms_17[] = { 0, 1, 2, 3, 4, 5, 6, 7 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_17[] = { - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_17[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-RTK-Observations-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* glo-RTK-BiasInformation-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-RTK-MAC-CorrectionDifferences-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-RTK-Residuals-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-RTK-FKP-Gradients-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gnss-SSR-OrbitCorrections-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnss-SSR-ClockCorrections-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* gnss-SSR-CodeBias-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_17 = { - sizeof(struct GNSS_GenericAssistDataElement__ext2), - offsetof(struct GNSS_GenericAssistDataElement__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_17, - 8, /* Count of tags in the map */ - asn_MAP_ext2_oms_17, /* Optional members */ - 8, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_17 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_17, - sizeof(asn_DEF_ext2_tags_17) - /sizeof(asn_DEF_ext2_tags_17[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_17, /* Same as above */ - sizeof(asn_DEF_ext2_tags_17) - /sizeof(asn_DEF_ext2_tags_17[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_17, - 8, /* Elements count */ - &asn_SPC_ext2_specs_17 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext3_26[] = { - { ATF_POINTER, 6, offsetof(struct GNSS_GenericAssistDataElement__ext3, gnss_SSR_URA_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_URA_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-URA-r16" - }, - { ATF_POINTER, 5, offsetof(struct GNSS_GenericAssistDataElement__ext3, gnss_SSR_PhaseBias_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_PhaseBias_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-PhaseBias-r16" - }, - { ATF_POINTER, 4, offsetof(struct GNSS_GenericAssistDataElement__ext3, gnss_SSR_STEC_Correction_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_STEC_Correction_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-STEC-Correction-r16" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataElement__ext3, gnss_SSR_GriddedCorrection_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_GriddedCorrection_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-GriddedCorrection-r16" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataElement__ext3, navic_DifferentialCorrections_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NavIC_DifferentialCorrections_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "navic-DifferentialCorrections-r16" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataElement__ext3, navic_GridModel_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NavIC_GridModelParameter_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "navic-GridModel-r16" - }, -}; -static const int asn_MAP_ext3_oms_26[] = { 0, 1, 2, 3, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_ext3_tags_26[] = { - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_26[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SSR-URA-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-SSR-PhaseBias-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-SSR-STEC-Correction-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-SSR-GriddedCorrection-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* navic-DifferentialCorrections-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* navic-GridModel-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_26 = { - sizeof(struct GNSS_GenericAssistDataElement__ext3), - offsetof(struct GNSS_GenericAssistDataElement__ext3, _asn_ctx), - asn_MAP_ext3_tag2el_26, - 6, /* Count of tags in the map */ - asn_MAP_ext3_oms_26, /* Optional members */ - 6, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext3_26 = { - "ext3", - "ext3", - &asn_OP_SEQUENCE, - asn_DEF_ext3_tags_26, - sizeof(asn_DEF_ext3_tags_26) - /sizeof(asn_DEF_ext3_tags_26[0]) - 1, /* 1 */ - asn_DEF_ext3_tags_26, /* Same as above */ - sizeof(asn_DEF_ext3_tags_26) - /sizeof(asn_DEF_ext3_tags_26[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext3_26, - 6, /* Elements count */ - &asn_SPC_ext3_specs_26 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_GenericAssistDataElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_GenericAssistDataElement, gnss_ID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-ID" - }, - { ATF_POINTER, 13, offsetof(struct GNSS_GenericAssistDataElement, sbas_ID), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SBAS_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sbas-ID" - }, - { ATF_POINTER, 12, offsetof(struct GNSS_GenericAssistDataElement, gnss_TimeModels), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_TimeModelList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-TimeModels" - }, - { ATF_POINTER, 11, offsetof(struct GNSS_GenericAssistDataElement, gnss_DifferentialCorrections), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_DifferentialCorrections, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-DifferentialCorrections" - }, - { ATF_POINTER, 10, offsetof(struct GNSS_GenericAssistDataElement, gnss_NavigationModel), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_NavigationModel, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-NavigationModel" - }, - { ATF_POINTER, 9, offsetof(struct GNSS_GenericAssistDataElement, gnss_RealTimeIntegrity), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RealTimeIntegrity, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RealTimeIntegrity" - }, - { ATF_POINTER, 8, offsetof(struct GNSS_GenericAssistDataElement, gnss_DataBitAssistance), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_DataBitAssistance, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-DataBitAssistance" - }, - { ATF_POINTER, 7, offsetof(struct GNSS_GenericAssistDataElement, gnss_AcquisitionAssistance), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_AcquisitionAssistance, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-AcquisitionAssistance" - }, - { ATF_POINTER, 6, offsetof(struct GNSS_GenericAssistDataElement, gnss_Almanac), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_Almanac, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-Almanac" - }, - { ATF_POINTER, 5, offsetof(struct GNSS_GenericAssistDataElement, gnss_UTC_Model), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_GNSS_UTC_Model, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-UTC-Model" - }, - { ATF_POINTER, 4, offsetof(struct GNSS_GenericAssistDataElement, gnss_AuxiliaryInformation), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_GNSS_AuxiliaryInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-AuxiliaryInformation" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataElement, ext1), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - 0, - &asn_DEF_ext1_14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataElement, ext2), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - 0, - &asn_DEF_ext2_17, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataElement, ext3), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - 0, - &asn_DEF_ext3_26, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext3" - }, -}; -static const int asn_MAP_GNSS_GenericAssistDataElement_oms_1[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static const ber_tlv_tag_t asn_DEF_GNSS_GenericAssistDataElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_GenericAssistDataElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-ID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sbas-ID */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-TimeModels */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-DifferentialCorrections */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-NavigationModel */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gnss-RealTimeIntegrity */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnss-DataBitAssistance */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* gnss-AcquisitionAssistance */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* gnss-Almanac */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* gnss-UTC-Model */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* gnss-AuxiliaryInformation */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ext2 */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 } /* ext3 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_GenericAssistDataElement_specs_1 = { - sizeof(struct GNSS_GenericAssistDataElement), - offsetof(struct GNSS_GenericAssistDataElement, _asn_ctx), - asn_MAP_GNSS_GenericAssistDataElement_tag2el_1, - 14, /* Count of tags in the map */ - asn_MAP_GNSS_GenericAssistDataElement_oms_1, /* Optional members */ - 10, 3, /* Root/Additions */ - 11, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_GenericAssistDataElement = { - "GNSS-GenericAssistDataElement", - "GNSS-GenericAssistDataElement", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_GenericAssistDataElement_tags_1, - sizeof(asn_DEF_GNSS_GenericAssistDataElement_tags_1) - /sizeof(asn_DEF_GNSS_GenericAssistDataElement_tags_1[0]), /* 1 */ - asn_DEF_GNSS_GenericAssistDataElement_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_GenericAssistDataElement_tags_1) - /sizeof(asn_DEF_GNSS_GenericAssistDataElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_GenericAssistDataElement_1, - 14, /* Elements count */ - &asn_SPC_GNSS_GenericAssistDataElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-GenericAssistDataElement.h b/asn.1/generated/GNSS-GenericAssistDataElement.h deleted file mode 100644 index 87072a53..00000000 --- a/asn.1/generated/GNSS-GenericAssistDataElement.h +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_GenericAssistDataElement_H_ -#define _GNSS_GenericAssistDataElement_H_ - - -#include - -/* Including external dependencies */ -#include "GNSS-ID.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct SBAS_ID; -struct GNSS_TimeModelList; -struct GNSS_DifferentialCorrections; -struct GNSS_NavigationModel; -struct GNSS_RealTimeIntegrity; -struct GNSS_DataBitAssistance; -struct GNSS_AcquisitionAssistance; -struct GNSS_Almanac; -struct GNSS_UTC_Model; -struct GNSS_AuxiliaryInformation; -struct BDS_DifferentialCorrections_r12; -struct BDS_GridModelParameter_r12; -struct GNSS_RTK_Observations_r15; -struct GLO_RTK_BiasInformation_r15; -struct GNSS_RTK_MAC_CorrectionDifferences_r15; -struct GNSS_RTK_Residuals_r15; -struct GNSS_RTK_FKP_Gradients_r15; -struct GNSS_SSR_OrbitCorrections_r15; -struct GNSS_SSR_ClockCorrections_r15; -struct GNSS_SSR_CodeBias_r15; -struct GNSS_SSR_URA_r16; -struct GNSS_SSR_PhaseBias_r16; -struct GNSS_SSR_STEC_Correction_r16; -struct GNSS_SSR_GriddedCorrection_r16; -struct NavIC_DifferentialCorrections_r16; -struct NavIC_GridModelParameter_r16; - -/* GNSS-GenericAssistDataElement */ -typedef struct GNSS_GenericAssistDataElement { - GNSS_ID_t gnss_ID; - struct SBAS_ID *sbas_ID /* OPTIONAL */; - struct GNSS_TimeModelList *gnss_TimeModels /* OPTIONAL */; - struct GNSS_DifferentialCorrections *gnss_DifferentialCorrections /* OPTIONAL */; - struct GNSS_NavigationModel *gnss_NavigationModel /* OPTIONAL */; - struct GNSS_RealTimeIntegrity *gnss_RealTimeIntegrity /* OPTIONAL */; - struct GNSS_DataBitAssistance *gnss_DataBitAssistance /* OPTIONAL */; - struct GNSS_AcquisitionAssistance *gnss_AcquisitionAssistance /* OPTIONAL */; - struct GNSS_Almanac *gnss_Almanac /* OPTIONAL */; - struct GNSS_UTC_Model *gnss_UTC_Model /* OPTIONAL */; - struct GNSS_AuxiliaryInformation *gnss_AuxiliaryInformation /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct GNSS_GenericAssistDataElement__ext1 { - struct BDS_DifferentialCorrections_r12 *bds_DifferentialCorrections_r12 /* OPTIONAL */; - struct BDS_GridModelParameter_r12 *bds_GridModel_r12 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct GNSS_GenericAssistDataElement__ext2 { - struct GNSS_RTK_Observations_r15 *gnss_RTK_Observations_r15 /* OPTIONAL */; - struct GLO_RTK_BiasInformation_r15 *glo_RTK_BiasInformation_r15 /* OPTIONAL */; - struct GNSS_RTK_MAC_CorrectionDifferences_r15 *gnss_RTK_MAC_CorrectionDifferences_r15 /* OPTIONAL */; - struct GNSS_RTK_Residuals_r15 *gnss_RTK_Residuals_r15 /* OPTIONAL */; - struct GNSS_RTK_FKP_Gradients_r15 *gnss_RTK_FKP_Gradients_r15 /* OPTIONAL */; - struct GNSS_SSR_OrbitCorrections_r15 *gnss_SSR_OrbitCorrections_r15 /* OPTIONAL */; - struct GNSS_SSR_ClockCorrections_r15 *gnss_SSR_ClockCorrections_r15 /* OPTIONAL */; - struct GNSS_SSR_CodeBias_r15 *gnss_SSR_CodeBias_r15 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - struct GNSS_GenericAssistDataElement__ext3 { - struct GNSS_SSR_URA_r16 *gnss_SSR_URA_r16 /* OPTIONAL */; - struct GNSS_SSR_PhaseBias_r16 *gnss_SSR_PhaseBias_r16 /* OPTIONAL */; - struct GNSS_SSR_STEC_Correction_r16 *gnss_SSR_STEC_Correction_r16 /* OPTIONAL */; - struct GNSS_SSR_GriddedCorrection_r16 *gnss_SSR_GriddedCorrection_r16 /* OPTIONAL */; - struct NavIC_DifferentialCorrections_r16 *navic_DifferentialCorrections_r16 /* OPTIONAL */; - struct NavIC_GridModelParameter_r16 *navic_GridModel_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext3; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_GenericAssistDataElement_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_GenericAssistDataElement; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_GenericAssistDataElement_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_GenericAssistDataElement_1[14]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "SBAS-ID.h" -#include "GNSS-TimeModelList.h" -#include "GNSS-DifferentialCorrections.h" -#include "GNSS-NavigationModel.h" -#include "GNSS-RealTimeIntegrity.h" -#include "GNSS-DataBitAssistance.h" -#include "GNSS-AcquisitionAssistance.h" -#include "GNSS-Almanac.h" -#include "GNSS-UTC-Model.h" -#include "GNSS-AuxiliaryInformation.h" -#include "BDS-DifferentialCorrections-r12.h" -#include "BDS-GridModelParameter-r12.h" -#include "GNSS-RTK-Observations-r15.h" -#include "GLO-RTK-BiasInformation-r15.h" -#include "GNSS-RTK-MAC-CorrectionDifferences-r15.h" -#include "GNSS-RTK-Residuals-r15.h" -#include "GNSS-RTK-FKP-Gradients-r15.h" -#include "GNSS-SSR-OrbitCorrections-r15.h" -#include "GNSS-SSR-ClockCorrections-r15.h" -#include "GNSS-SSR-CodeBias-r15.h" -#include "GNSS-SSR-URA-r16.h" -#include "GNSS-SSR-PhaseBias-r16.h" -#include "GNSS-SSR-STEC-Correction-r16.h" -#include "GNSS-SSR-GriddedCorrection-r16.h" -#include "NavIC-DifferentialCorrections-r16.h" -#include "NavIC-GridModelParameter-r16.h" - -#endif /* _GNSS_GenericAssistDataElement_H_ */ -#include diff --git a/asn.1/generated/GNSS-GenericAssistDataReq.c b/asn.1/generated/GNSS-GenericAssistDataReq.c deleted file mode 100644 index 1bfd433a..00000000 --- a/asn.1/generated/GNSS-GenericAssistDataReq.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-GenericAssistDataReq.h" - -asn_per_constraints_t asn_PER_type_GNSS_GenericAssistDataReq_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_GenericAssistDataReq_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_GenericAssistDataReqElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_GenericAssistDataReq_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_GenericAssistDataReq_specs_1 = { - sizeof(struct GNSS_GenericAssistDataReq), - offsetof(struct GNSS_GenericAssistDataReq, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_GenericAssistDataReq = { - "GNSS-GenericAssistDataReq", - "GNSS-GenericAssistDataReq", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_GenericAssistDataReq_tags_1, - sizeof(asn_DEF_GNSS_GenericAssistDataReq_tags_1) - /sizeof(asn_DEF_GNSS_GenericAssistDataReq_tags_1[0]), /* 1 */ - asn_DEF_GNSS_GenericAssistDataReq_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_GenericAssistDataReq_tags_1) - /sizeof(asn_DEF_GNSS_GenericAssistDataReq_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_GenericAssistDataReq_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_GenericAssistDataReq_1, - 1, /* Single element */ - &asn_SPC_GNSS_GenericAssistDataReq_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-GenericAssistDataReqElement.c b/asn.1/generated/GNSS-GenericAssistDataReqElement.c deleted file mode 100644 index 2cd7efe7..00000000 --- a/asn.1/generated/GNSS-GenericAssistDataReqElement.c +++ /dev/null @@ -1,447 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-GenericAssistDataReqElement.h" - -static asn_TYPE_member_t asn_MBR_ext1_14[] = { - { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataReqElement__ext1, bds_DifferentialCorrectionsReq_r12), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BDS_DifferentialCorrectionsReq_r12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bds-DifferentialCorrectionsReq-r12" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataReqElement__ext1, bds_GridModelReq_r12), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BDS_GridModelReq_r12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bds-GridModelReq-r12" - }, -}; -static const int asn_MAP_ext1_oms_14[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_14[] = { - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_14[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bds-DifferentialCorrectionsReq-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bds-GridModelReq-r12 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_14 = { - sizeof(struct GNSS_GenericAssistDataReqElement__ext1), - offsetof(struct GNSS_GenericAssistDataReqElement__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_14, - 2, /* Count of tags in the map */ - asn_MAP_ext1_oms_14, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_14 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_14, - sizeof(asn_DEF_ext1_tags_14) - /sizeof(asn_DEF_ext1_tags_14[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_14, /* Same as above */ - sizeof(asn_DEF_ext1_tags_14) - /sizeof(asn_DEF_ext1_tags_14[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_14, - 2, /* Elements count */ - &asn_SPC_ext1_specs_14 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_17[] = { - { ATF_POINTER, 8, offsetof(struct GNSS_GenericAssistDataReqElement__ext2, gnss_RTK_ObservationsReq_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_ObservationsReq_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-ObservationsReq-r15" - }, - { ATF_POINTER, 7, offsetof(struct GNSS_GenericAssistDataReqElement__ext2, glo_RTK_BiasInformationReq_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GLO_RTK_BiasInformationReq_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "glo-RTK-BiasInformationReq-r15" - }, - { ATF_POINTER, 6, offsetof(struct GNSS_GenericAssistDataReqElement__ext2, gnss_RTK_MAC_CorrectionDifferencesReq_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesReq_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-MAC-CorrectionDifferencesReq-r15" - }, - { ATF_POINTER, 5, offsetof(struct GNSS_GenericAssistDataReqElement__ext2, gnss_RTK_ResidualsReq_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_ResidualsReq_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-ResidualsReq-r15" - }, - { ATF_POINTER, 4, offsetof(struct GNSS_GenericAssistDataReqElement__ext2, gnss_RTK_FKP_GradientsReq_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_FKP_GradientsReq_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-FKP-GradientsReq-r15" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataReqElement__ext2, gnss_SSR_OrbitCorrectionsReq_r15), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-OrbitCorrectionsReq-r15" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataReqElement__ext2, gnss_SSR_ClockCorrectionsReq_r15), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-ClockCorrectionsReq-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataReqElement__ext2, gnss_SSR_CodeBiasReq_r15), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_CodeBiasReq_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-CodeBiasReq-r15" - }, -}; -static const int asn_MAP_ext2_oms_17[] = { 0, 1, 2, 3, 4, 5, 6, 7 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_17[] = { - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_17[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-RTK-ObservationsReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* glo-RTK-BiasInformationReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-RTK-MAC-CorrectionDifferencesReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-RTK-ResidualsReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-RTK-FKP-GradientsReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gnss-SSR-OrbitCorrectionsReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnss-SSR-ClockCorrectionsReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* gnss-SSR-CodeBiasReq-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_17 = { - sizeof(struct GNSS_GenericAssistDataReqElement__ext2), - offsetof(struct GNSS_GenericAssistDataReqElement__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_17, - 8, /* Count of tags in the map */ - asn_MAP_ext2_oms_17, /* Optional members */ - 8, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_17 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_17, - sizeof(asn_DEF_ext2_tags_17) - /sizeof(asn_DEF_ext2_tags_17[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_17, /* Same as above */ - sizeof(asn_DEF_ext2_tags_17) - /sizeof(asn_DEF_ext2_tags_17[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_17, - 8, /* Elements count */ - &asn_SPC_ext2_specs_17 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext3_26[] = { - { ATF_POINTER, 6, offsetof(struct GNSS_GenericAssistDataReqElement__ext3, gnss_SSR_URA_Req_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_URA_Req_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-URA-Req-r16" - }, - { ATF_POINTER, 5, offsetof(struct GNSS_GenericAssistDataReqElement__ext3, gnss_SSR_PhaseBiasReq_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_PhaseBiasReq_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-PhaseBiasReq-r16" - }, - { ATF_POINTER, 4, offsetof(struct GNSS_GenericAssistDataReqElement__ext3, gnss_SSR_STEC_CorrectionReq_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-STEC-CorrectionReq-r16" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataReqElement__ext3, gnss_SSR_GriddedCorrectionReq_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-GriddedCorrectionReq-r16" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataReqElement__ext3, navic_DifferentialCorrectionsReq_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NavIC_DifferentialCorrectionsReq_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "navic-DifferentialCorrectionsReq-r16" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataReqElement__ext3, navic_GridModelReq_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NavIC_GridModelReq_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "navic-GridModelReq-r16" - }, -}; -static const int asn_MAP_ext3_oms_26[] = { 0, 1, 2, 3, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_ext3_tags_26[] = { - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_26[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SSR-URA-Req-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-SSR-PhaseBiasReq-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-SSR-STEC-CorrectionReq-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-SSR-GriddedCorrectionReq-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* navic-DifferentialCorrectionsReq-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* navic-GridModelReq-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_26 = { - sizeof(struct GNSS_GenericAssistDataReqElement__ext3), - offsetof(struct GNSS_GenericAssistDataReqElement__ext3, _asn_ctx), - asn_MAP_ext3_tag2el_26, - 6, /* Count of tags in the map */ - asn_MAP_ext3_oms_26, /* Optional members */ - 6, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext3_26 = { - "ext3", - "ext3", - &asn_OP_SEQUENCE, - asn_DEF_ext3_tags_26, - sizeof(asn_DEF_ext3_tags_26) - /sizeof(asn_DEF_ext3_tags_26[0]) - 1, /* 1 */ - asn_DEF_ext3_tags_26, /* Same as above */ - sizeof(asn_DEF_ext3_tags_26) - /sizeof(asn_DEF_ext3_tags_26[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext3_26, - 6, /* Elements count */ - &asn_SPC_ext3_specs_26 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_GenericAssistDataReqElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_ID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-ID" - }, - { ATF_POINTER, 13, offsetof(struct GNSS_GenericAssistDataReqElement, sbas_ID), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SBAS_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sbas-ID" - }, - { ATF_POINTER, 12, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_TimeModelsReq), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_TimeModelListReq, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-TimeModelsReq" - }, - { ATF_POINTER, 11, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_DifferentialCorrectionsReq), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_DifferentialCorrectionsReq, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-DifferentialCorrectionsReq" - }, - { ATF_POINTER, 10, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_NavigationModelReq), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_GNSS_NavigationModelReq, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-NavigationModelReq" - }, - { ATF_POINTER, 9, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_RealTimeIntegrityReq), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RealTimeIntegrityReq, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RealTimeIntegrityReq" - }, - { ATF_POINTER, 8, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_DataBitAssistanceReq), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_DataBitAssistanceReq, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-DataBitAssistanceReq" - }, - { ATF_POINTER, 7, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_AcquisitionAssistanceReq), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_AcquisitionAssistanceReq, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-AcquisitionAssistanceReq" - }, - { ATF_POINTER, 6, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_AlmanacReq), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_AlmanacReq, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-AlmanacReq" - }, - { ATF_POINTER, 5, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_UTCModelReq), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_UTC_ModelReq, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-UTCModelReq" - }, - { ATF_POINTER, 4, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_AuxiliaryInformationReq), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_AuxiliaryInformationReq, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-AuxiliaryInformationReq" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataReqElement, ext1), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - 0, - &asn_DEF_ext1_14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataReqElement, ext2), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - 0, - &asn_DEF_ext2_17, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataReqElement, ext3), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - 0, - &asn_DEF_ext3_26, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext3" - }, -}; -static const int asn_MAP_GNSS_GenericAssistDataReqElement_oms_1[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static const ber_tlv_tag_t asn_DEF_GNSS_GenericAssistDataReqElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_GenericAssistDataReqElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-ID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sbas-ID */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-TimeModelsReq */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-DifferentialCorrectionsReq */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-NavigationModelReq */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gnss-RealTimeIntegrityReq */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnss-DataBitAssistanceReq */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* gnss-AcquisitionAssistanceReq */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* gnss-AlmanacReq */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* gnss-UTCModelReq */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* gnss-AuxiliaryInformationReq */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ext2 */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 } /* ext3 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_GenericAssistDataReqElement_specs_1 = { - sizeof(struct GNSS_GenericAssistDataReqElement), - offsetof(struct GNSS_GenericAssistDataReqElement, _asn_ctx), - asn_MAP_GNSS_GenericAssistDataReqElement_tag2el_1, - 14, /* Count of tags in the map */ - asn_MAP_GNSS_GenericAssistDataReqElement_oms_1, /* Optional members */ - 10, 3, /* Root/Additions */ - 11, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_GenericAssistDataReqElement = { - "GNSS-GenericAssistDataReqElement", - "GNSS-GenericAssistDataReqElement", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_GenericAssistDataReqElement_tags_1, - sizeof(asn_DEF_GNSS_GenericAssistDataReqElement_tags_1) - /sizeof(asn_DEF_GNSS_GenericAssistDataReqElement_tags_1[0]), /* 1 */ - asn_DEF_GNSS_GenericAssistDataReqElement_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_GenericAssistDataReqElement_tags_1) - /sizeof(asn_DEF_GNSS_GenericAssistDataReqElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_GenericAssistDataReqElement_1, - 14, /* Elements count */ - &asn_SPC_GNSS_GenericAssistDataReqElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-GenericAssistDataReqElement.h b/asn.1/generated/GNSS-GenericAssistDataReqElement.h deleted file mode 100644 index d4faa03f..00000000 --- a/asn.1/generated/GNSS-GenericAssistDataReqElement.h +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_GenericAssistDataReqElement_H_ -#define _GNSS_GenericAssistDataReqElement_H_ - - -#include - -/* Including external dependencies */ -#include "GNSS-ID.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct SBAS_ID; -struct GNSS_TimeModelListReq; -struct GNSS_DifferentialCorrectionsReq; -struct GNSS_NavigationModelReq; -struct GNSS_RealTimeIntegrityReq; -struct GNSS_DataBitAssistanceReq; -struct GNSS_AcquisitionAssistanceReq; -struct GNSS_AlmanacReq; -struct GNSS_UTC_ModelReq; -struct GNSS_AuxiliaryInformationReq; -struct BDS_DifferentialCorrectionsReq_r12; -struct BDS_GridModelReq_r12; -struct GNSS_RTK_ObservationsReq_r15; -struct GLO_RTK_BiasInformationReq_r15; -struct GNSS_RTK_MAC_CorrectionDifferencesReq_r15; -struct GNSS_RTK_ResidualsReq_r15; -struct GNSS_RTK_FKP_GradientsReq_r15; -struct GNSS_SSR_OrbitCorrectionsReq_r15; -struct GNSS_SSR_ClockCorrectionsReq_r15; -struct GNSS_SSR_CodeBiasReq_r15; -struct GNSS_SSR_URA_Req_r16; -struct GNSS_SSR_PhaseBiasReq_r16; -struct GNSS_SSR_STEC_CorrectionReq_r16; -struct GNSS_SSR_GriddedCorrectionReq_r16; -struct NavIC_DifferentialCorrectionsReq_r16; -struct NavIC_GridModelReq_r16; - -/* GNSS-GenericAssistDataReqElement */ -typedef struct GNSS_GenericAssistDataReqElement { - GNSS_ID_t gnss_ID; - struct SBAS_ID *sbas_ID /* OPTIONAL */; - struct GNSS_TimeModelListReq *gnss_TimeModelsReq /* OPTIONAL */; - struct GNSS_DifferentialCorrectionsReq *gnss_DifferentialCorrectionsReq /* OPTIONAL */; - struct GNSS_NavigationModelReq *gnss_NavigationModelReq /* OPTIONAL */; - struct GNSS_RealTimeIntegrityReq *gnss_RealTimeIntegrityReq /* OPTIONAL */; - struct GNSS_DataBitAssistanceReq *gnss_DataBitAssistanceReq /* OPTIONAL */; - struct GNSS_AcquisitionAssistanceReq *gnss_AcquisitionAssistanceReq /* OPTIONAL */; - struct GNSS_AlmanacReq *gnss_AlmanacReq /* OPTIONAL */; - struct GNSS_UTC_ModelReq *gnss_UTCModelReq /* OPTIONAL */; - struct GNSS_AuxiliaryInformationReq *gnss_AuxiliaryInformationReq /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct GNSS_GenericAssistDataReqElement__ext1 { - struct BDS_DifferentialCorrectionsReq_r12 *bds_DifferentialCorrectionsReq_r12 /* OPTIONAL */; - struct BDS_GridModelReq_r12 *bds_GridModelReq_r12 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct GNSS_GenericAssistDataReqElement__ext2 { - struct GNSS_RTK_ObservationsReq_r15 *gnss_RTK_ObservationsReq_r15 /* OPTIONAL */; - struct GLO_RTK_BiasInformationReq_r15 *glo_RTK_BiasInformationReq_r15 /* OPTIONAL */; - struct GNSS_RTK_MAC_CorrectionDifferencesReq_r15 *gnss_RTK_MAC_CorrectionDifferencesReq_r15 /* OPTIONAL */; - struct GNSS_RTK_ResidualsReq_r15 *gnss_RTK_ResidualsReq_r15 /* OPTIONAL */; - struct GNSS_RTK_FKP_GradientsReq_r15 *gnss_RTK_FKP_GradientsReq_r15 /* OPTIONAL */; - struct GNSS_SSR_OrbitCorrectionsReq_r15 *gnss_SSR_OrbitCorrectionsReq_r15 /* OPTIONAL */; - struct GNSS_SSR_ClockCorrectionsReq_r15 *gnss_SSR_ClockCorrectionsReq_r15 /* OPTIONAL */; - struct GNSS_SSR_CodeBiasReq_r15 *gnss_SSR_CodeBiasReq_r15 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - struct GNSS_GenericAssistDataReqElement__ext3 { - struct GNSS_SSR_URA_Req_r16 *gnss_SSR_URA_Req_r16 /* OPTIONAL */; - struct GNSS_SSR_PhaseBiasReq_r16 *gnss_SSR_PhaseBiasReq_r16 /* OPTIONAL */; - struct GNSS_SSR_STEC_CorrectionReq_r16 *gnss_SSR_STEC_CorrectionReq_r16 /* OPTIONAL */; - struct GNSS_SSR_GriddedCorrectionReq_r16 *gnss_SSR_GriddedCorrectionReq_r16 /* OPTIONAL */; - struct NavIC_DifferentialCorrectionsReq_r16 *navic_DifferentialCorrectionsReq_r16 /* OPTIONAL */; - struct NavIC_GridModelReq_r16 *navic_GridModelReq_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext3; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_GenericAssistDataReqElement_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_GenericAssistDataReqElement; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_GenericAssistDataReqElement_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_GenericAssistDataReqElement_1[14]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "SBAS-ID.h" -#include "GNSS-TimeModelListReq.h" -#include "GNSS-DifferentialCorrectionsReq.h" -#include "GNSS-NavigationModelReq.h" -#include "GNSS-RealTimeIntegrityReq.h" -#include "GNSS-DataBitAssistanceReq.h" -#include "GNSS-AcquisitionAssistanceReq.h" -#include "GNSS-AlmanacReq.h" -#include "GNSS-UTC-ModelReq.h" -#include "GNSS-AuxiliaryInformationReq.h" -#include "BDS-DifferentialCorrectionsReq-r12.h" -#include "BDS-GridModelReq-r12.h" -#include "GNSS-RTK-ObservationsReq-r15.h" -#include "GLO-RTK-BiasInformationReq-r15.h" -#include "GNSS-RTK-MAC-CorrectionDifferencesReq-r15.h" -#include "GNSS-RTK-ResidualsReq-r15.h" -#include "GNSS-RTK-FKP-GradientsReq-r15.h" -#include "GNSS-SSR-OrbitCorrectionsReq-r15.h" -#include "GNSS-SSR-ClockCorrectionsReq-r15.h" -#include "GNSS-SSR-CodeBiasReq-r15.h" -#include "GNSS-SSR-URA-Req-r16.h" -#include "GNSS-SSR-PhaseBiasReq-r16.h" -#include "GNSS-SSR-STEC-CorrectionReq-r16.h" -#include "GNSS-SSR-GriddedCorrectionReq-r16.h" -#include "NavIC-DifferentialCorrectionsReq-r16.h" -#include "NavIC-GridModelReq-r16.h" - -#endif /* _GNSS_GenericAssistDataReqElement_H_ */ -#include diff --git a/asn.1/generated/GNSS-GenericAssistDataSupportElement.c b/asn.1/generated/GNSS-GenericAssistDataSupportElement.c deleted file mode 100644 index 838aa7db..00000000 --- a/asn.1/generated/GNSS-GenericAssistDataSupportElement.c +++ /dev/null @@ -1,447 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-GenericAssistDataSupportElement.h" - -static asn_TYPE_member_t asn_MBR_ext1_14[] = { - { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataSupportElement__ext1, bds_DifferentialCorrectionsSupport_r12), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BDS_DifferentialCorrectionsSupport_r12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bds-DifferentialCorrectionsSupport-r12" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataSupportElement__ext1, bds_GridModelSupport_r12), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BDS_GridModelSupport_r12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bds-GridModelSupport-r12" - }, -}; -static const int asn_MAP_ext1_oms_14[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_14[] = { - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_14[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bds-DifferentialCorrectionsSupport-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bds-GridModelSupport-r12 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_14 = { - sizeof(struct GNSS_GenericAssistDataSupportElement__ext1), - offsetof(struct GNSS_GenericAssistDataSupportElement__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_14, - 2, /* Count of tags in the map */ - asn_MAP_ext1_oms_14, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_14 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_14, - sizeof(asn_DEF_ext1_tags_14) - /sizeof(asn_DEF_ext1_tags_14[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_14, /* Same as above */ - sizeof(asn_DEF_ext1_tags_14) - /sizeof(asn_DEF_ext1_tags_14[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_14, - 2, /* Elements count */ - &asn_SPC_ext1_specs_14 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_17[] = { - { ATF_POINTER, 8, offsetof(struct GNSS_GenericAssistDataSupportElement__ext2, gnss_RTK_ObservationsSupport_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_ObservationsSupport_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-ObservationsSupport-r15" - }, - { ATF_POINTER, 7, offsetof(struct GNSS_GenericAssistDataSupportElement__ext2, glo_RTK_BiasInformationSupport_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GLO_RTK_BiasInformationSupport_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "glo-RTK-BiasInformationSupport-r15" - }, - { ATF_POINTER, 6, offsetof(struct GNSS_GenericAssistDataSupportElement__ext2, gnss_RTK_MAC_CorrectionDifferencesSupport_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-MAC-CorrectionDifferencesSupport-r15" - }, - { ATF_POINTER, 5, offsetof(struct GNSS_GenericAssistDataSupportElement__ext2, gnss_RTK_ResidualsSupport_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_ResidualsSupport_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-ResidualsSupport-r15" - }, - { ATF_POINTER, 4, offsetof(struct GNSS_GenericAssistDataSupportElement__ext2, gnss_RTK_FKP_GradientsSupport_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_FKP_GradientsSupport_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-FKP-GradientsSupport-r15" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataSupportElement__ext2, gnss_SSR_OrbitCorrectionsSupport_r15), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-OrbitCorrectionsSupport-r15" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataSupportElement__ext2, gnss_SSR_ClockCorrectionsSupport_r15), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-ClockCorrectionsSupport-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataSupportElement__ext2, gnss_SSR_CodeBiasSupport_r15), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_CodeBiasSupport_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-CodeBiasSupport-r15" - }, -}; -static const int asn_MAP_ext2_oms_17[] = { 0, 1, 2, 3, 4, 5, 6, 7 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_17[] = { - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_17[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-RTK-ObservationsSupport-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* glo-RTK-BiasInformationSupport-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-RTK-MAC-CorrectionDifferencesSupport-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-RTK-ResidualsSupport-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-RTK-FKP-GradientsSupport-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gnss-SSR-OrbitCorrectionsSupport-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnss-SSR-ClockCorrectionsSupport-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* gnss-SSR-CodeBiasSupport-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_17 = { - sizeof(struct GNSS_GenericAssistDataSupportElement__ext2), - offsetof(struct GNSS_GenericAssistDataSupportElement__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_17, - 8, /* Count of tags in the map */ - asn_MAP_ext2_oms_17, /* Optional members */ - 8, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_17 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_17, - sizeof(asn_DEF_ext2_tags_17) - /sizeof(asn_DEF_ext2_tags_17[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_17, /* Same as above */ - sizeof(asn_DEF_ext2_tags_17) - /sizeof(asn_DEF_ext2_tags_17[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_17, - 8, /* Elements count */ - &asn_SPC_ext2_specs_17 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext3_26[] = { - { ATF_POINTER, 6, offsetof(struct GNSS_GenericAssistDataSupportElement__ext3, gnss_SSR_URA_Support_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_URA_Support_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-URA-Support-r16" - }, - { ATF_POINTER, 5, offsetof(struct GNSS_GenericAssistDataSupportElement__ext3, gnss_SSR_PhaseBiasSupport_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_PhaseBiasSupport_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-PhaseBiasSupport-r16" - }, - { ATF_POINTER, 4, offsetof(struct GNSS_GenericAssistDataSupportElement__ext3, gnss_SSR_STEC_CorrectionSupport_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-STEC-CorrectionSupport-r16" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataSupportElement__ext3, gnss_SSR_GriddedCorrectionSupport_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-GriddedCorrectionSupport-r16" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataSupportElement__ext3, navic_DifferentialCorrectionsSupport_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NavIC_DifferentialCorrectionsSupport_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "navic-DifferentialCorrectionsSupport-r16" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataSupportElement__ext3, navic_GridModelSupport_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NavIC_GridModelSupport_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "navic-GridModelSupport-r16" - }, -}; -static const int asn_MAP_ext3_oms_26[] = { 0, 1, 2, 3, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_ext3_tags_26[] = { - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_26[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SSR-URA-Support-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-SSR-PhaseBiasSupport-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-SSR-STEC-CorrectionSupport-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-SSR-GriddedCorrectionSupport-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* navic-DifferentialCorrectionsSupport-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* navic-GridModelSupport-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_26 = { - sizeof(struct GNSS_GenericAssistDataSupportElement__ext3), - offsetof(struct GNSS_GenericAssistDataSupportElement__ext3, _asn_ctx), - asn_MAP_ext3_tag2el_26, - 6, /* Count of tags in the map */ - asn_MAP_ext3_oms_26, /* Optional members */ - 6, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext3_26 = { - "ext3", - "ext3", - &asn_OP_SEQUENCE, - asn_DEF_ext3_tags_26, - sizeof(asn_DEF_ext3_tags_26) - /sizeof(asn_DEF_ext3_tags_26[0]) - 1, /* 1 */ - asn_DEF_ext3_tags_26, /* Same as above */ - sizeof(asn_DEF_ext3_tags_26) - /sizeof(asn_DEF_ext3_tags_26[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext3_26, - 6, /* Elements count */ - &asn_SPC_ext3_specs_26 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_GenericAssistDataSupportElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_ID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-ID" - }, - { ATF_POINTER, 13, offsetof(struct GNSS_GenericAssistDataSupportElement, sbas_ID), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SBAS_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sbas-ID" - }, - { ATF_POINTER, 12, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_TimeModelsSupport), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_TimeModelListSupport, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-TimeModelsSupport" - }, - { ATF_POINTER, 11, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_DifferentialCorrectionsSupport), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_DifferentialCorrectionsSupport, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-DifferentialCorrectionsSupport" - }, - { ATF_POINTER, 10, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_NavigationModelSupport), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_NavigationModelSupport, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-NavigationModelSupport" - }, - { ATF_POINTER, 9, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_RealTimeIntegritySupport), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RealTimeIntegritySupport, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RealTimeIntegritySupport" - }, - { ATF_POINTER, 8, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_DataBitAssistanceSupport), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_DataBitAssistanceSupport, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-DataBitAssistanceSupport" - }, - { ATF_POINTER, 7, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_AcquisitionAssistanceSupport), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_AcquisitionAssistanceSupport, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-AcquisitionAssistanceSupport" - }, - { ATF_POINTER, 6, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_AlmanacSupport), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_AlmanacSupport, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-AlmanacSupport" - }, - { ATF_POINTER, 5, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_UTC_ModelSupport), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_UTC_ModelSupport, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-UTC-ModelSupport" - }, - { ATF_POINTER, 4, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_AuxiliaryInformationSupport), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_AuxiliaryInformationSupport, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-AuxiliaryInformationSupport" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataSupportElement, ext1), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - 0, - &asn_DEF_ext1_14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataSupportElement, ext2), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - 0, - &asn_DEF_ext2_17, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataSupportElement, ext3), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - 0, - &asn_DEF_ext3_26, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext3" - }, -}; -static const int asn_MAP_GNSS_GenericAssistDataSupportElement_oms_1[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static const ber_tlv_tag_t asn_DEF_GNSS_GenericAssistDataSupportElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_GenericAssistDataSupportElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-ID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sbas-ID */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-TimeModelsSupport */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-DifferentialCorrectionsSupport */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-NavigationModelSupport */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gnss-RealTimeIntegritySupport */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnss-DataBitAssistanceSupport */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* gnss-AcquisitionAssistanceSupport */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* gnss-AlmanacSupport */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* gnss-UTC-ModelSupport */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* gnss-AuxiliaryInformationSupport */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ext2 */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 } /* ext3 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_GenericAssistDataSupportElement_specs_1 = { - sizeof(struct GNSS_GenericAssistDataSupportElement), - offsetof(struct GNSS_GenericAssistDataSupportElement, _asn_ctx), - asn_MAP_GNSS_GenericAssistDataSupportElement_tag2el_1, - 14, /* Count of tags in the map */ - asn_MAP_GNSS_GenericAssistDataSupportElement_oms_1, /* Optional members */ - 10, 3, /* Root/Additions */ - 11, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_GenericAssistDataSupportElement = { - "GNSS-GenericAssistDataSupportElement", - "GNSS-GenericAssistDataSupportElement", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_GenericAssistDataSupportElement_tags_1, - sizeof(asn_DEF_GNSS_GenericAssistDataSupportElement_tags_1) - /sizeof(asn_DEF_GNSS_GenericAssistDataSupportElement_tags_1[0]), /* 1 */ - asn_DEF_GNSS_GenericAssistDataSupportElement_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_GenericAssistDataSupportElement_tags_1) - /sizeof(asn_DEF_GNSS_GenericAssistDataSupportElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_GenericAssistDataSupportElement_1, - 14, /* Elements count */ - &asn_SPC_GNSS_GenericAssistDataSupportElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-GenericAssistDataSupportElement.h b/asn.1/generated/GNSS-GenericAssistDataSupportElement.h deleted file mode 100644 index 31b2b6db..00000000 --- a/asn.1/generated/GNSS-GenericAssistDataSupportElement.h +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_GenericAssistDataSupportElement_H_ -#define _GNSS_GenericAssistDataSupportElement_H_ - - -#include - -/* Including external dependencies */ -#include "GNSS-ID.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct SBAS_ID; -struct GNSS_TimeModelListSupport; -struct GNSS_DifferentialCorrectionsSupport; -struct GNSS_NavigationModelSupport; -struct GNSS_RealTimeIntegritySupport; -struct GNSS_DataBitAssistanceSupport; -struct GNSS_AcquisitionAssistanceSupport; -struct GNSS_AlmanacSupport; -struct GNSS_UTC_ModelSupport; -struct GNSS_AuxiliaryInformationSupport; -struct BDS_DifferentialCorrectionsSupport_r12; -struct BDS_GridModelSupport_r12; -struct GNSS_RTK_ObservationsSupport_r15; -struct GLO_RTK_BiasInformationSupport_r15; -struct GNSS_RTK_MAC_CorrectionDifferencesSupport_r15; -struct GNSS_RTK_ResidualsSupport_r15; -struct GNSS_RTK_FKP_GradientsSupport_r15; -struct GNSS_SSR_OrbitCorrectionsSupport_r15; -struct GNSS_SSR_ClockCorrectionsSupport_r15; -struct GNSS_SSR_CodeBiasSupport_r15; -struct GNSS_SSR_URA_Support_r16; -struct GNSS_SSR_PhaseBiasSupport_r16; -struct GNSS_SSR_STEC_CorrectionSupport_r16; -struct GNSS_SSR_GriddedCorrectionSupport_r16; -struct NavIC_DifferentialCorrectionsSupport_r16; -struct NavIC_GridModelSupport_r16; - -/* GNSS-GenericAssistDataSupportElement */ -typedef struct GNSS_GenericAssistDataSupportElement { - GNSS_ID_t gnss_ID; - struct SBAS_ID *sbas_ID /* OPTIONAL */; - struct GNSS_TimeModelListSupport *gnss_TimeModelsSupport /* OPTIONAL */; - struct GNSS_DifferentialCorrectionsSupport *gnss_DifferentialCorrectionsSupport /* OPTIONAL */; - struct GNSS_NavigationModelSupport *gnss_NavigationModelSupport /* OPTIONAL */; - struct GNSS_RealTimeIntegritySupport *gnss_RealTimeIntegritySupport /* OPTIONAL */; - struct GNSS_DataBitAssistanceSupport *gnss_DataBitAssistanceSupport /* OPTIONAL */; - struct GNSS_AcquisitionAssistanceSupport *gnss_AcquisitionAssistanceSupport /* OPTIONAL */; - struct GNSS_AlmanacSupport *gnss_AlmanacSupport /* OPTIONAL */; - struct GNSS_UTC_ModelSupport *gnss_UTC_ModelSupport /* OPTIONAL */; - struct GNSS_AuxiliaryInformationSupport *gnss_AuxiliaryInformationSupport /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct GNSS_GenericAssistDataSupportElement__ext1 { - struct BDS_DifferentialCorrectionsSupport_r12 *bds_DifferentialCorrectionsSupport_r12 /* OPTIONAL */; - struct BDS_GridModelSupport_r12 *bds_GridModelSupport_r12 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct GNSS_GenericAssistDataSupportElement__ext2 { - struct GNSS_RTK_ObservationsSupport_r15 *gnss_RTK_ObservationsSupport_r15 /* OPTIONAL */; - struct GLO_RTK_BiasInformationSupport_r15 *glo_RTK_BiasInformationSupport_r15 /* OPTIONAL */; - struct GNSS_RTK_MAC_CorrectionDifferencesSupport_r15 *gnss_RTK_MAC_CorrectionDifferencesSupport_r15 /* OPTIONAL */; - struct GNSS_RTK_ResidualsSupport_r15 *gnss_RTK_ResidualsSupport_r15 /* OPTIONAL */; - struct GNSS_RTK_FKP_GradientsSupport_r15 *gnss_RTK_FKP_GradientsSupport_r15 /* OPTIONAL */; - struct GNSS_SSR_OrbitCorrectionsSupport_r15 *gnss_SSR_OrbitCorrectionsSupport_r15 /* OPTIONAL */; - struct GNSS_SSR_ClockCorrectionsSupport_r15 *gnss_SSR_ClockCorrectionsSupport_r15 /* OPTIONAL */; - struct GNSS_SSR_CodeBiasSupport_r15 *gnss_SSR_CodeBiasSupport_r15 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - struct GNSS_GenericAssistDataSupportElement__ext3 { - struct GNSS_SSR_URA_Support_r16 *gnss_SSR_URA_Support_r16 /* OPTIONAL */; - struct GNSS_SSR_PhaseBiasSupport_r16 *gnss_SSR_PhaseBiasSupport_r16 /* OPTIONAL */; - struct GNSS_SSR_STEC_CorrectionSupport_r16 *gnss_SSR_STEC_CorrectionSupport_r16 /* OPTIONAL */; - struct GNSS_SSR_GriddedCorrectionSupport_r16 *gnss_SSR_GriddedCorrectionSupport_r16 /* OPTIONAL */; - struct NavIC_DifferentialCorrectionsSupport_r16 *navic_DifferentialCorrectionsSupport_r16 /* OPTIONAL */; - struct NavIC_GridModelSupport_r16 *navic_GridModelSupport_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext3; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_GenericAssistDataSupportElement_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_GenericAssistDataSupportElement; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_GenericAssistDataSupportElement_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_GenericAssistDataSupportElement_1[14]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "SBAS-ID.h" -#include "GNSS-TimeModelListSupport.h" -#include "GNSS-DifferentialCorrectionsSupport.h" -#include "GNSS-NavigationModelSupport.h" -#include "GNSS-RealTimeIntegritySupport.h" -#include "GNSS-DataBitAssistanceSupport.h" -#include "GNSS-AcquisitionAssistanceSupport.h" -#include "GNSS-AlmanacSupport.h" -#include "GNSS-UTC-ModelSupport.h" -#include "GNSS-AuxiliaryInformationSupport.h" -#include "BDS-DifferentialCorrectionsSupport-r12.h" -#include "BDS-GridModelSupport-r12.h" -#include "GNSS-RTK-ObservationsSupport-r15.h" -#include "GLO-RTK-BiasInformationSupport-r15.h" -#include "GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.h" -#include "GNSS-RTK-ResidualsSupport-r15.h" -#include "GNSS-RTK-FKP-GradientsSupport-r15.h" -#include "GNSS-SSR-OrbitCorrectionsSupport-r15.h" -#include "GNSS-SSR-ClockCorrectionsSupport-r15.h" -#include "GNSS-SSR-CodeBiasSupport-r15.h" -#include "GNSS-SSR-URA-Support-r16.h" -#include "GNSS-SSR-PhaseBiasSupport-r16.h" -#include "GNSS-SSR-STEC-CorrectionSupport-r16.h" -#include "GNSS-SSR-GriddedCorrectionSupport-r16.h" -#include "NavIC-DifferentialCorrectionsSupport-r16.h" -#include "NavIC-GridModelSupport-r16.h" - -#endif /* _GNSS_GenericAssistDataSupportElement_H_ */ -#include diff --git a/asn.1/generated/GNSS-GenericAssistanceDataSupport.c b/asn.1/generated/GNSS-GenericAssistanceDataSupport.c deleted file mode 100644 index 809d5a31..00000000 --- a/asn.1/generated/GNSS-GenericAssistanceDataSupport.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-GenericAssistanceDataSupport.h" - -asn_per_constraints_t asn_PER_type_GNSS_GenericAssistanceDataSupport_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_GenericAssistanceDataSupport_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_GenericAssistDataSupportElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_GenericAssistanceDataSupport_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_GenericAssistanceDataSupport_specs_1 = { - sizeof(struct GNSS_GenericAssistanceDataSupport), - offsetof(struct GNSS_GenericAssistanceDataSupport, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_GenericAssistanceDataSupport = { - "GNSS-GenericAssistanceDataSupport", - "GNSS-GenericAssistanceDataSupport", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_GenericAssistanceDataSupport_tags_1, - sizeof(asn_DEF_GNSS_GenericAssistanceDataSupport_tags_1) - /sizeof(asn_DEF_GNSS_GenericAssistanceDataSupport_tags_1[0]), /* 1 */ - asn_DEF_GNSS_GenericAssistanceDataSupport_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_GenericAssistanceDataSupport_tags_1) - /sizeof(asn_DEF_GNSS_GenericAssistanceDataSupport_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_GenericAssistanceDataSupport_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_GenericAssistanceDataSupport_1, - 1, /* Single element */ - &asn_SPC_GNSS_GenericAssistanceDataSupport_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-ID-BDS-SatElement-r16.c b/asn.1/generated/GNSS-ID-BDS-SatElement-r16.c deleted file mode 100644 index 0b7bc103..00000000 --- a/asn.1/generated/GNSS-ID-BDS-SatElement-r16.c +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-ID-BDS-SatElement-r16.h" - -static int -memb_satType_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_satType_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_ID_BDS_SatElement_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ID_BDS_SatElement_r16, svID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ID_BDS_SatElement_r16, satType_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_satType_r16_constr_3, memb_satType_r16_constraint_1 }, - 0, 0, /* No default value */ - "satType-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_ID_BDS_SatElement_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_ID_BDS_SatElement_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* satType-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_ID_BDS_SatElement_r16_specs_1 = { - sizeof(struct GNSS_ID_BDS_SatElement_r16), - offsetof(struct GNSS_ID_BDS_SatElement_r16, _asn_ctx), - asn_MAP_GNSS_ID_BDS_SatElement_r16_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_ID_BDS_SatElement_r16 = { - "GNSS-ID-BDS-SatElement-r16", - "GNSS-ID-BDS-SatElement-r16", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_ID_BDS_SatElement_r16_tags_1, - sizeof(asn_DEF_GNSS_ID_BDS_SatElement_r16_tags_1) - /sizeof(asn_DEF_GNSS_ID_BDS_SatElement_r16_tags_1[0]), /* 1 */ - asn_DEF_GNSS_ID_BDS_SatElement_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_ID_BDS_SatElement_r16_tags_1) - /sizeof(asn_DEF_GNSS_ID_BDS_SatElement_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_ID_BDS_SatElement_r16_1, - 2, /* Elements count */ - &asn_SPC_GNSS_ID_BDS_SatElement_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-ID-BDS-r16.c b/asn.1/generated/GNSS-ID-BDS-r16.c deleted file mode 100644 index 212bde9b..00000000 --- a/asn.1/generated/GNSS-ID-BDS-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-ID-BDS-r16.h" - -asn_per_constraints_t asn_PER_type_GNSS_ID_BDS_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_ID_BDS_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_ID_BDS_SatElement_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_ID_BDS_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_ID_BDS_r16_specs_1 = { - sizeof(struct GNSS_ID_BDS_r16), - offsetof(struct GNSS_ID_BDS_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_ID_BDS_r16 = { - "GNSS-ID-BDS-r16", - "GNSS-ID-BDS-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_ID_BDS_r16_tags_1, - sizeof(asn_DEF_GNSS_ID_BDS_r16_tags_1) - /sizeof(asn_DEF_GNSS_ID_BDS_r16_tags_1[0]), /* 1 */ - asn_DEF_GNSS_ID_BDS_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_ID_BDS_r16_tags_1) - /sizeof(asn_DEF_GNSS_ID_BDS_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_ID_BDS_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_ID_BDS_r16_1, - 1, /* Single element */ - &asn_SPC_GNSS_ID_BDS_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-ID-Bitmap.c b/asn.1/generated/GNSS-ID-Bitmap.c deleted file mode 100644 index 4647f206..00000000 --- a/asn.1/generated/GNSS-ID-Bitmap.c +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-ID-Bitmap.h" - -static int -memb_gnss_ids_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 16)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gnss_ids_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_ID_Bitmap_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ID_Bitmap, gnss_ids), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_gnss_ids_constr_2, memb_gnss_ids_constraint_1 }, - 0, 0, /* No default value */ - "gnss-ids" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_ID_Bitmap_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_ID_Bitmap_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-ids */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_ID_Bitmap_specs_1 = { - sizeof(struct GNSS_ID_Bitmap), - offsetof(struct GNSS_ID_Bitmap, _asn_ctx), - asn_MAP_GNSS_ID_Bitmap_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_ID_Bitmap = { - "GNSS-ID-Bitmap", - "GNSS-ID-Bitmap", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_ID_Bitmap_tags_1, - sizeof(asn_DEF_GNSS_ID_Bitmap_tags_1) - /sizeof(asn_DEF_GNSS_ID_Bitmap_tags_1[0]), /* 1 */ - asn_DEF_GNSS_ID_Bitmap_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_ID_Bitmap_tags_1) - /sizeof(asn_DEF_GNSS_ID_Bitmap_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_ID_Bitmap_1, - 1, /* Elements count */ - &asn_SPC_GNSS_ID_Bitmap_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-ID-GLONASS-SatElement.c b/asn.1/generated/GNSS-ID-GLONASS-SatElement.c deleted file mode 100644 index 929aafe4..00000000 --- a/asn.1/generated/GNSS-ID-GLONASS-SatElement.c +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-ID-GLONASS-SatElement.h" - -static int -memb_channelNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -7 && value <= 13)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_channelNumber_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, -7, 13 } /* (-7..13) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_ID_GLONASS_SatElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ID_GLONASS_SatElement, svID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ID_GLONASS_SatElement, signalsAvailable), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalIDs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "signalsAvailable" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_ID_GLONASS_SatElement, channelNumber), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_channelNumber_constr_4, memb_channelNumber_constraint_1 }, - 0, 0, /* No default value */ - "channelNumber" - }, -}; -static const int asn_MAP_GNSS_ID_GLONASS_SatElement_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_GNSS_ID_GLONASS_SatElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_ID_GLONASS_SatElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* signalsAvailable */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* channelNumber */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_ID_GLONASS_SatElement_specs_1 = { - sizeof(struct GNSS_ID_GLONASS_SatElement), - offsetof(struct GNSS_ID_GLONASS_SatElement, _asn_ctx), - asn_MAP_GNSS_ID_GLONASS_SatElement_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_GNSS_ID_GLONASS_SatElement_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_ID_GLONASS_SatElement = { - "GNSS-ID-GLONASS-SatElement", - "GNSS-ID-GLONASS-SatElement", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_ID_GLONASS_SatElement_tags_1, - sizeof(asn_DEF_GNSS_ID_GLONASS_SatElement_tags_1) - /sizeof(asn_DEF_GNSS_ID_GLONASS_SatElement_tags_1[0]), /* 1 */ - asn_DEF_GNSS_ID_GLONASS_SatElement_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_ID_GLONASS_SatElement_tags_1) - /sizeof(asn_DEF_GNSS_ID_GLONASS_SatElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_ID_GLONASS_SatElement_1, - 3, /* Elements count */ - &asn_SPC_GNSS_ID_GLONASS_SatElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-ID-GLONASS.c b/asn.1/generated/GNSS-ID-GLONASS.c deleted file mode 100644 index 7970ac02..00000000 --- a/asn.1/generated/GNSS-ID-GLONASS.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-ID-GLONASS.h" - -asn_per_constraints_t asn_PER_type_GNSS_ID_GLONASS_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_ID_GLONASS_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_ID_GLONASS_SatElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_ID_GLONASS_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_ID_GLONASS_specs_1 = { - sizeof(struct GNSS_ID_GLONASS), - offsetof(struct GNSS_ID_GLONASS, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_ID_GLONASS = { - "GNSS-ID-GLONASS", - "GNSS-ID-GLONASS", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_ID_GLONASS_tags_1, - sizeof(asn_DEF_GNSS_ID_GLONASS_tags_1) - /sizeof(asn_DEF_GNSS_ID_GLONASS_tags_1[0]), /* 1 */ - asn_DEF_GNSS_ID_GLONASS_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_ID_GLONASS_tags_1) - /sizeof(asn_DEF_GNSS_ID_GLONASS_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_ID_GLONASS_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_ID_GLONASS_1, - 1, /* Single element */ - &asn_SPC_GNSS_ID_GLONASS_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-ID-GPS-SatElement.c b/asn.1/generated/GNSS-ID-GPS-SatElement.c deleted file mode 100644 index 47530f21..00000000 --- a/asn.1/generated/GNSS-ID-GPS-SatElement.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-ID-GPS-SatElement.h" - -asn_TYPE_member_t asn_MBR_GNSS_ID_GPS_SatElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ID_GPS_SatElement, svID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ID_GPS_SatElement, signalsAvailable), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalIDs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "signalsAvailable" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_ID_GPS_SatElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_ID_GPS_SatElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* signalsAvailable */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_ID_GPS_SatElement_specs_1 = { - sizeof(struct GNSS_ID_GPS_SatElement), - offsetof(struct GNSS_ID_GPS_SatElement, _asn_ctx), - asn_MAP_GNSS_ID_GPS_SatElement_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_ID_GPS_SatElement = { - "GNSS-ID-GPS-SatElement", - "GNSS-ID-GPS-SatElement", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_ID_GPS_SatElement_tags_1, - sizeof(asn_DEF_GNSS_ID_GPS_SatElement_tags_1) - /sizeof(asn_DEF_GNSS_ID_GPS_SatElement_tags_1[0]), /* 1 */ - asn_DEF_GNSS_ID_GPS_SatElement_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_ID_GPS_SatElement_tags_1) - /sizeof(asn_DEF_GNSS_ID_GPS_SatElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_ID_GPS_SatElement_1, - 2, /* Elements count */ - &asn_SPC_GNSS_ID_GPS_SatElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-ID-GPS.c b/asn.1/generated/GNSS-ID-GPS.c deleted file mode 100644 index b19815c8..00000000 --- a/asn.1/generated/GNSS-ID-GPS.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-ID-GPS.h" - -asn_per_constraints_t asn_PER_type_GNSS_ID_GPS_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_ID_GPS_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_ID_GPS_SatElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_ID_GPS_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_ID_GPS_specs_1 = { - sizeof(struct GNSS_ID_GPS), - offsetof(struct GNSS_ID_GPS, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_ID_GPS = { - "GNSS-ID-GPS", - "GNSS-ID-GPS", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_ID_GPS_tags_1, - sizeof(asn_DEF_GNSS_ID_GPS_tags_1) - /sizeof(asn_DEF_GNSS_ID_GPS_tags_1[0]), /* 1 */ - asn_DEF_GNSS_ID_GPS_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_ID_GPS_tags_1) - /sizeof(asn_DEF_GNSS_ID_GPS_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_ID_GPS_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_ID_GPS_1, - 1, /* Single element */ - &asn_SPC_GNSS_ID_GPS_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-ID.c b/asn.1/generated/GNSS-ID.c deleted file mode 100644 index 68c8adae..00000000 --- a/asn.1/generated/GNSS-ID.c +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-ID.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_gnss_id_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_gnss_id_value2enum_2[] = { - { 0, 3, "gps" }, - { 1, 4, "sbas" }, - { 2, 4, "qzss" }, - { 3, 7, "galileo" }, - { 4, 7, "glonass" }, - { 5, 3, "bds" }, - { 6, 11, "navic-v16xy" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_gnss_id_enum2value_2[] = { - 5, /* bds(5) */ - 3, /* galileo(3) */ - 4, /* glonass(4) */ - 0, /* gps(0) */ - 6, /* navic-v16xy(6) */ - 2, /* qzss(2) */ - 1 /* sbas(1) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_gnss_id_specs_2 = { - asn_MAP_gnss_id_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_gnss_id_enum2value_2, /* N => "tag"; sorted by N */ - 7, /* Number of elements in the maps */ - 6, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_gnss_id_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_gnss_id_2 = { - "gnss-id", - "gnss-id", - &asn_OP_NativeEnumerated, - asn_DEF_gnss_id_tags_2, - sizeof(asn_DEF_gnss_id_tags_2) - /sizeof(asn_DEF_gnss_id_tags_2[0]) - 1, /* 1 */ - asn_DEF_gnss_id_tags_2, /* Same as above */ - sizeof(asn_DEF_gnss_id_tags_2) - /sizeof(asn_DEF_gnss_id_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_gnss_id_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_gnss_id_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_ID_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ID, gnss_id), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_gnss_id_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-id" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_ID_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_ID_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-id */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_ID_specs_1 = { - sizeof(struct GNSS_ID), - offsetof(struct GNSS_ID, _asn_ctx), - asn_MAP_GNSS_ID_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_ID = { - "GNSS-ID", - "GNSS-ID", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_ID_tags_1, - sizeof(asn_DEF_GNSS_ID_tags_1) - /sizeof(asn_DEF_GNSS_ID_tags_1[0]), /* 1 */ - asn_DEF_GNSS_ID_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_ID_tags_1) - /sizeof(asn_DEF_GNSS_ID_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_ID_1, - 1, /* Elements count */ - &asn_SPC_GNSS_ID_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-IonosphericModel.c b/asn.1/generated/GNSS-IonosphericModel.c deleted file mode 100644 index e76a6a0e..00000000 --- a/asn.1/generated/GNSS-IonosphericModel.c +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-IonosphericModel.h" - -static asn_TYPE_member_t asn_MBR_ext1_5[] = { - { ATF_POINTER, 1, offsetof(struct GNSS_IonosphericModel__ext1, klobucharModel2_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_KlobucharModel2Parameter_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "klobucharModel2-r16" - }, -}; -static const int asn_MAP_ext1_oms_5[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* klobucharModel2-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { - sizeof(struct GNSS_IonosphericModel__ext1), - offsetof(struct GNSS_IonosphericModel__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_5, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_5, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_5 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_5, - sizeof(asn_DEF_ext1_tags_5) - /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_5, /* Same as above */ - sizeof(asn_DEF_ext1_tags_5) - /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_5, - 1, /* Elements count */ - &asn_SPC_ext1_specs_5 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_IonosphericModel_1[] = { - { ATF_POINTER, 3, offsetof(struct GNSS_IonosphericModel, klobucharModel), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_KlobucharModelParameter, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "klobucharModel" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_IonosphericModel, neQuickModel), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NeQuickModelParameter, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "neQuickModel" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_IonosphericModel, ext1), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_ext1_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_GNSS_IonosphericModel_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_GNSS_IonosphericModel_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_IonosphericModel_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* klobucharModel */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* neQuickModel */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_IonosphericModel_specs_1 = { - sizeof(struct GNSS_IonosphericModel), - offsetof(struct GNSS_IonosphericModel, _asn_ctx), - asn_MAP_GNSS_IonosphericModel_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_GNSS_IonosphericModel_oms_1, /* Optional members */ - 2, 1, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_IonosphericModel = { - "GNSS-IonosphericModel", - "GNSS-IonosphericModel", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_IonosphericModel_tags_1, - sizeof(asn_DEF_GNSS_IonosphericModel_tags_1) - /sizeof(asn_DEF_GNSS_IonosphericModel_tags_1[0]), /* 1 */ - asn_DEF_GNSS_IonosphericModel_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_IonosphericModel_tags_1) - /sizeof(asn_DEF_GNSS_IonosphericModel_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_IonosphericModel_1, - 3, /* Elements count */ - &asn_SPC_GNSS_IonosphericModel_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-IonosphericModel.h b/asn.1/generated/GNSS-IonosphericModel.h deleted file mode 100644 index ea1441e5..00000000 --- a/asn.1/generated/GNSS-IonosphericModel.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_IonosphericModel_H_ -#define _GNSS_IonosphericModel_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct KlobucharModelParameter; -struct NeQuickModelParameter; -struct KlobucharModel2Parameter_r16; - -/* GNSS-IonosphericModel */ -typedef struct GNSS_IonosphericModel { - struct KlobucharModelParameter *klobucharModel /* OPTIONAL */; - struct NeQuickModelParameter *neQuickModel /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct GNSS_IonosphericModel__ext1 { - struct KlobucharModel2Parameter_r16 *klobucharModel2_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_IonosphericModel_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_IonosphericModel; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_IonosphericModel_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_IonosphericModel_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "KlobucharModelParameter.h" -#include "NeQuickModelParameter.h" -#include "KlobucharModel2Parameter-r16.h" - -#endif /* _GNSS_IonosphericModel_H_ */ -#include diff --git a/asn.1/generated/GNSS-IonosphericModelReq.c b/asn.1/generated/GNSS-IonosphericModelReq.c deleted file mode 100644 index cd655555..00000000 --- a/asn.1/generated/GNSS-IonosphericModelReq.c +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-IonosphericModelReq.h" - -static int -memb_klobucharModelReq_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 2)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_klobucharModelReq_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_ext1_5[] = { - { ATF_POINTER, 1, offsetof(struct GNSS_IonosphericModelReq__ext1, klobucharModel2Req_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "klobucharModel2Req-r16" - }, -}; -static const int asn_MAP_ext1_oms_5[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* klobucharModel2Req-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { - sizeof(struct GNSS_IonosphericModelReq__ext1), - offsetof(struct GNSS_IonosphericModelReq__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_5, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_5, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_5 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_5, - sizeof(asn_DEF_ext1_tags_5) - /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_5, /* Same as above */ - sizeof(asn_DEF_ext1_tags_5) - /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_5, - 1, /* Elements count */ - &asn_SPC_ext1_specs_5 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_IonosphericModelReq_1[] = { - { ATF_POINTER, 3, offsetof(struct GNSS_IonosphericModelReq, klobucharModelReq), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_klobucharModelReq_constr_2, memb_klobucharModelReq_constraint_1 }, - 0, 0, /* No default value */ - "klobucharModelReq" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_IonosphericModelReq, neQuickModelReq), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "neQuickModelReq" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_IonosphericModelReq, ext1), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_ext1_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_GNSS_IonosphericModelReq_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_GNSS_IonosphericModelReq_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_IonosphericModelReq_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* klobucharModelReq */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* neQuickModelReq */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_IonosphericModelReq_specs_1 = { - sizeof(struct GNSS_IonosphericModelReq), - offsetof(struct GNSS_IonosphericModelReq, _asn_ctx), - asn_MAP_GNSS_IonosphericModelReq_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_GNSS_IonosphericModelReq_oms_1, /* Optional members */ - 2, 1, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_IonosphericModelReq = { - "GNSS-IonosphericModelReq", - "GNSS-IonosphericModelReq", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_IonosphericModelReq_tags_1, - sizeof(asn_DEF_GNSS_IonosphericModelReq_tags_1) - /sizeof(asn_DEF_GNSS_IonosphericModelReq_tags_1[0]), /* 1 */ - asn_DEF_GNSS_IonosphericModelReq_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_IonosphericModelReq_tags_1) - /sizeof(asn_DEF_GNSS_IonosphericModelReq_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_IonosphericModelReq_1, - 3, /* Elements count */ - &asn_SPC_GNSS_IonosphericModelReq_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-IonosphericModelReq.h b/asn.1/generated/GNSS-IonosphericModelReq.h deleted file mode 100644 index 7cb2e052..00000000 --- a/asn.1/generated/GNSS-IonosphericModelReq.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_IonosphericModelReq_H_ -#define _GNSS_IonosphericModelReq_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* GNSS-IonosphericModelReq */ -typedef struct GNSS_IonosphericModelReq { - BIT_STRING_t *klobucharModelReq /* OPTIONAL */; - NULL_t *neQuickModelReq /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct GNSS_IonosphericModelReq__ext1 { - NULL_t *klobucharModel2Req_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_IonosphericModelReq_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_IonosphericModelReq; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_IonosphericModelReq_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_IonosphericModelReq_1[3]; - -#ifdef __cplusplus -} -#endif - -#endif /* _GNSS_IonosphericModelReq_H_ */ -#include diff --git a/asn.1/generated/GNSS-IonosphericModelSupport.c b/asn.1/generated/GNSS-IonosphericModelSupport.c deleted file mode 100644 index 0225d2a5..00000000 --- a/asn.1/generated/GNSS-IonosphericModelSupport.c +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-IonosphericModelSupport.h" - -static int -memb_ionoModel_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_ionoModel_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_IonosphericModelSupport_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_IonosphericModelSupport, ionoModel), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_ionoModel_constr_2, memb_ionoModel_constraint_1 }, - 0, 0, /* No default value */ - "ionoModel" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_IonosphericModelSupport_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_IonosphericModelSupport_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ionoModel */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_IonosphericModelSupport_specs_1 = { - sizeof(struct GNSS_IonosphericModelSupport), - offsetof(struct GNSS_IonosphericModelSupport, _asn_ctx), - asn_MAP_GNSS_IonosphericModelSupport_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_IonosphericModelSupport = { - "GNSS-IonosphericModelSupport", - "GNSS-IonosphericModelSupport", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_IonosphericModelSupport_tags_1, - sizeof(asn_DEF_GNSS_IonosphericModelSupport_tags_1) - /sizeof(asn_DEF_GNSS_IonosphericModelSupport_tags_1[0]), /* 1 */ - asn_DEF_GNSS_IonosphericModelSupport_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_IonosphericModelSupport_tags_1) - /sizeof(asn_DEF_GNSS_IonosphericModelSupport_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_IonosphericModelSupport_1, - 1, /* Elements count */ - &asn_SPC_GNSS_IonosphericModelSupport_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-Link-Combinations-r15.c b/asn.1/generated/GNSS-Link-Combinations-r15.c deleted file mode 100644 index 74b7bddd..00000000 --- a/asn.1/generated/GNSS-Link-Combinations-r15.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-Link-Combinations-r15.h" - -asn_TYPE_member_t asn_MBR_GNSS_Link_Combinations_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_Link_Combinations_r15, l1_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_FrequencyID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "l1-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_Link_Combinations_r15, l2_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_FrequencyID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "l2-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_Link_Combinations_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_Link_Combinations_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* l1-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* l2-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_Link_Combinations_r15_specs_1 = { - sizeof(struct GNSS_Link_Combinations_r15), - offsetof(struct GNSS_Link_Combinations_r15, _asn_ctx), - asn_MAP_GNSS_Link_Combinations_r15_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_Link_Combinations_r15 = { - "GNSS-Link-Combinations-r15", - "GNSS-Link-Combinations-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_Link_Combinations_r15_tags_1, - sizeof(asn_DEF_GNSS_Link_Combinations_r15_tags_1) - /sizeof(asn_DEF_GNSS_Link_Combinations_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_Link_Combinations_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_Link_Combinations_r15_tags_1) - /sizeof(asn_DEF_GNSS_Link_Combinations_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_Link_Combinations_r15_1, - 2, /* Elements count */ - &asn_SPC_GNSS_Link_Combinations_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-Link-CombinationsList-r15.c b/asn.1/generated/GNSS-Link-CombinationsList-r15.c deleted file mode 100644 index d9f02741..00000000 --- a/asn.1/generated/GNSS-Link-CombinationsList-r15.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-Link-CombinationsList-r15.h" - -asn_per_constraints_t asn_PER_type_GNSS_Link_CombinationsList_r15_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_Link_CombinationsList_r15_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_Link_Combinations_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_Link_CombinationsList_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_Link_CombinationsList_r15_specs_1 = { - sizeof(struct GNSS_Link_CombinationsList_r15), - offsetof(struct GNSS_Link_CombinationsList_r15, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_Link_CombinationsList_r15 = { - "GNSS-Link-CombinationsList-r15", - "GNSS-Link-CombinationsList-r15", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_Link_CombinationsList_r15_tags_1, - sizeof(asn_DEF_GNSS_Link_CombinationsList_r15_tags_1) - /sizeof(asn_DEF_GNSS_Link_CombinationsList_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_Link_CombinationsList_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_Link_CombinationsList_r15_tags_1) - /sizeof(asn_DEF_GNSS_Link_CombinationsList_r15_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_Link_CombinationsList_r15_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_Link_CombinationsList_r15_1, - 1, /* Single element */ - &asn_SPC_GNSS_Link_CombinationsList_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-LocationInformation.c b/asn.1/generated/GNSS-LocationInformation.c deleted file mode 100644 index f8639dba..00000000 --- a/asn.1/generated/GNSS-LocationInformation.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-LocationInformation.h" - -asn_TYPE_member_t asn_MBR_GNSS_LocationInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_LocationInformation, measurementReferenceTime), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MeasurementReferenceTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "measurementReferenceTime" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_LocationInformation, agnss_List), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ID_Bitmap, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "agnss-List" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_LocationInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_LocationInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* measurementReferenceTime */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* agnss-List */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_LocationInformation_specs_1 = { - sizeof(struct GNSS_LocationInformation), - offsetof(struct GNSS_LocationInformation, _asn_ctx), - asn_MAP_GNSS_LocationInformation_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_LocationInformation = { - "GNSS-LocationInformation", - "GNSS-LocationInformation", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_LocationInformation_tags_1, - sizeof(asn_DEF_GNSS_LocationInformation_tags_1) - /sizeof(asn_DEF_GNSS_LocationInformation_tags_1[0]), /* 1 */ - asn_DEF_GNSS_LocationInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_LocationInformation_tags_1) - /sizeof(asn_DEF_GNSS_LocationInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_LocationInformation_1, - 2, /* Elements count */ - &asn_SPC_GNSS_LocationInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-LocationInformation.h b/asn.1/generated/GNSS-LocationInformation.h deleted file mode 100644 index c638036b..00000000 --- a/asn.1/generated/GNSS-LocationInformation.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_LocationInformation_H_ -#define _GNSS_LocationInformation_H_ - - -#include - -/* Including external dependencies */ -#include "MeasurementReferenceTime.h" -#include "GNSS-ID-Bitmap.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* GNSS-LocationInformation */ -typedef struct GNSS_LocationInformation { - MeasurementReferenceTime_t measurementReferenceTime; - GNSS_ID_Bitmap_t agnss_List; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_LocationInformation_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_LocationInformation; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_LocationInformation_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_LocationInformation_1[2]; - -#ifdef __cplusplus -} -#endif - -#endif /* _GNSS_LocationInformation_H_ */ -#include diff --git a/asn.1/generated/GNSS-MeasurementForOneGNSS.c b/asn.1/generated/GNSS-MeasurementForOneGNSS.c deleted file mode 100644 index 566956ad..00000000 --- a/asn.1/generated/GNSS-MeasurementForOneGNSS.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-MeasurementForOneGNSS.h" - -asn_TYPE_member_t asn_MBR_GNSS_MeasurementForOneGNSS_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_MeasurementForOneGNSS, gnss_ID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-ID" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_MeasurementForOneGNSS, gnss_SgnMeasList), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SgnMeasList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SgnMeasList" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_MeasurementForOneGNSS_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_MeasurementForOneGNSS_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-ID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-SgnMeasList */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_MeasurementForOneGNSS_specs_1 = { - sizeof(struct GNSS_MeasurementForOneGNSS), - offsetof(struct GNSS_MeasurementForOneGNSS, _asn_ctx), - asn_MAP_GNSS_MeasurementForOneGNSS_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_MeasurementForOneGNSS = { - "GNSS-MeasurementForOneGNSS", - "GNSS-MeasurementForOneGNSS", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_MeasurementForOneGNSS_tags_1, - sizeof(asn_DEF_GNSS_MeasurementForOneGNSS_tags_1) - /sizeof(asn_DEF_GNSS_MeasurementForOneGNSS_tags_1[0]), /* 1 */ - asn_DEF_GNSS_MeasurementForOneGNSS_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_MeasurementForOneGNSS_tags_1) - /sizeof(asn_DEF_GNSS_MeasurementForOneGNSS_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_MeasurementForOneGNSS_1, - 2, /* Elements count */ - &asn_SPC_GNSS_MeasurementForOneGNSS_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-MeasurementList.c b/asn.1/generated/GNSS-MeasurementList.c deleted file mode 100644 index ac685818..00000000 --- a/asn.1/generated/GNSS-MeasurementList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-MeasurementList.h" - -asn_per_constraints_t asn_PER_type_GNSS_MeasurementList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_MeasurementList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_MeasurementForOneGNSS, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_MeasurementList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_MeasurementList_specs_1 = { - sizeof(struct GNSS_MeasurementList), - offsetof(struct GNSS_MeasurementList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_MeasurementList = { - "GNSS-MeasurementList", - "GNSS-MeasurementList", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_MeasurementList_tags_1, - sizeof(asn_DEF_GNSS_MeasurementList_tags_1) - /sizeof(asn_DEF_GNSS_MeasurementList_tags_1[0]), /* 1 */ - asn_DEF_GNSS_MeasurementList_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_MeasurementList_tags_1) - /sizeof(asn_DEF_GNSS_MeasurementList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_MeasurementList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_MeasurementList_1, - 1, /* Single element */ - &asn_SPC_GNSS_MeasurementList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-NavListInfo-r15.c b/asn.1/generated/GNSS-NavListInfo-r15.c deleted file mode 100644 index edbfc7ac..00000000 --- a/asn.1/generated/GNSS-NavListInfo-r15.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-NavListInfo-r15.h" - -asn_per_constraints_t asn_PER_type_GNSS_NavListInfo_r15_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_NavListInfo_r15_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_SatListElement_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_NavListInfo_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_NavListInfo_r15_specs_1 = { - sizeof(struct GNSS_NavListInfo_r15), - offsetof(struct GNSS_NavListInfo_r15, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_NavListInfo_r15 = { - "GNSS-NavListInfo-r15", - "GNSS-NavListInfo-r15", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_NavListInfo_r15_tags_1, - sizeof(asn_DEF_GNSS_NavListInfo_r15_tags_1) - /sizeof(asn_DEF_GNSS_NavListInfo_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_NavListInfo_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_NavListInfo_r15_tags_1) - /sizeof(asn_DEF_GNSS_NavListInfo_r15_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_NavListInfo_r15_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_NavListInfo_r15_1, - 1, /* Single element */ - &asn_SPC_GNSS_NavListInfo_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-NavModelSatelliteElement.c b/asn.1/generated/GNSS-NavModelSatelliteElement.c deleted file mode 100644 index e82a7aeb..00000000 --- a/asn.1/generated/GNSS-NavModelSatelliteElement.c +++ /dev/null @@ -1,255 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-NavModelSatelliteElement.h" - -static int -memb_svHealthExt_v1240_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 4)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_svHealth_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_iod_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 11)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_svHealthExt_v1240_constr_9 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_svHealth_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_iod_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 11, 11 } /* (SIZE(11..11)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_ext1_8[] = { - { ATF_POINTER, 1, offsetof(struct GNSS_NavModelSatelliteElement__ext1, svHealthExt_v1240), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_svHealthExt_v1240_constr_9, memb_svHealthExt_v1240_constraint_8 }, - 0, 0, /* No default value */ - "svHealthExt-v1240" - }, -}; -static const int asn_MAP_ext1_oms_8[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* svHealthExt-v1240 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { - sizeof(struct GNSS_NavModelSatelliteElement__ext1), - offsetof(struct GNSS_NavModelSatelliteElement__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_8, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_8, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_8 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_8, - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_8, /* Same as above */ - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_8, - 1, /* Elements count */ - &asn_SPC_ext1_specs_8 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_NavModelSatelliteElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_NavModelSatelliteElement, svID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_NavModelSatelliteElement, svHealth), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_svHealth_constr_3, memb_svHealth_constraint_1 }, - 0, 0, /* No default value */ - "svHealth" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_NavModelSatelliteElement, iod), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_iod_constr_4, memb_iod_constraint_1 }, - 0, 0, /* No default value */ - "iod" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_NavModelSatelliteElement, gnss_ClockModel), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_GNSS_ClockModel, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-ClockModel" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_NavModelSatelliteElement, gnss_OrbitModel), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_GNSS_OrbitModel, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-OrbitModel" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_NavModelSatelliteElement, ext1), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - 0, - &asn_DEF_ext1_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_GNSS_NavModelSatelliteElement_oms_1[] = { 5 }; -static const ber_tlv_tag_t asn_DEF_GNSS_NavModelSatelliteElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_NavModelSatelliteElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* svHealth */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* iod */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-ClockModel */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-OrbitModel */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_NavModelSatelliteElement_specs_1 = { - sizeof(struct GNSS_NavModelSatelliteElement), - offsetof(struct GNSS_NavModelSatelliteElement, _asn_ctx), - asn_MAP_GNSS_NavModelSatelliteElement_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_GNSS_NavModelSatelliteElement_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_NavModelSatelliteElement = { - "GNSS-NavModelSatelliteElement", - "GNSS-NavModelSatelliteElement", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_NavModelSatelliteElement_tags_1, - sizeof(asn_DEF_GNSS_NavModelSatelliteElement_tags_1) - /sizeof(asn_DEF_GNSS_NavModelSatelliteElement_tags_1[0]), /* 1 */ - asn_DEF_GNSS_NavModelSatelliteElement_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_NavModelSatelliteElement_tags_1) - /sizeof(asn_DEF_GNSS_NavModelSatelliteElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_NavModelSatelliteElement_1, - 6, /* Elements count */ - &asn_SPC_GNSS_NavModelSatelliteElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-NavModelSatelliteList.c b/asn.1/generated/GNSS-NavModelSatelliteList.c deleted file mode 100644 index 118978da..00000000 --- a/asn.1/generated/GNSS-NavModelSatelliteList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-NavModelSatelliteList.h" - -asn_per_constraints_t asn_PER_type_GNSS_NavModelSatelliteList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_NavModelSatelliteList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_NavModelSatelliteElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_NavModelSatelliteList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_NavModelSatelliteList_specs_1 = { - sizeof(struct GNSS_NavModelSatelliteList), - offsetof(struct GNSS_NavModelSatelliteList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_NavModelSatelliteList = { - "GNSS-NavModelSatelliteList", - "GNSS-NavModelSatelliteList", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_NavModelSatelliteList_tags_1, - sizeof(asn_DEF_GNSS_NavModelSatelliteList_tags_1) - /sizeof(asn_DEF_GNSS_NavModelSatelliteList_tags_1[0]), /* 1 */ - asn_DEF_GNSS_NavModelSatelliteList_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_NavModelSatelliteList_tags_1) - /sizeof(asn_DEF_GNSS_NavModelSatelliteList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_NavModelSatelliteList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_NavModelSatelliteList_1, - 1, /* Single element */ - &asn_SPC_GNSS_NavModelSatelliteList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-NavigationModel.c b/asn.1/generated/GNSS-NavigationModel.c deleted file mode 100644 index 7f9d590e..00000000 --- a/asn.1/generated/GNSS-NavigationModel.c +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-NavigationModel.h" - -static int -memb_nonBroadcastIndFlag_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_nonBroadcastIndFlag_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_NavigationModel_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_NavigationModel, nonBroadcastIndFlag), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nonBroadcastIndFlag_constr_2, memb_nonBroadcastIndFlag_constraint_1 }, - 0, 0, /* No default value */ - "nonBroadcastIndFlag" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_NavigationModel, gnss_SatelliteList), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_NavModelSatelliteList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SatelliteList" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_NavigationModel_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_NavigationModel_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nonBroadcastIndFlag */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-SatelliteList */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_NavigationModel_specs_1 = { - sizeof(struct GNSS_NavigationModel), - offsetof(struct GNSS_NavigationModel, _asn_ctx), - asn_MAP_GNSS_NavigationModel_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_NavigationModel = { - "GNSS-NavigationModel", - "GNSS-NavigationModel", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_NavigationModel_tags_1, - sizeof(asn_DEF_GNSS_NavigationModel_tags_1) - /sizeof(asn_DEF_GNSS_NavigationModel_tags_1[0]), /* 1 */ - asn_DEF_GNSS_NavigationModel_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_NavigationModel_tags_1) - /sizeof(asn_DEF_GNSS_NavigationModel_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_NavigationModel_1, - 2, /* Elements count */ - &asn_SPC_GNSS_NavigationModel_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-NavigationModelReq.c b/asn.1/generated/GNSS-NavigationModelReq.c deleted file mode 100644 index 190bd775..00000000 --- a/asn.1/generated/GNSS-NavigationModelReq.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-NavigationModelReq.h" - -asn_per_constraints_t asn_PER_type_GNSS_NavigationModelReq_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_NavigationModelReq_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_NavigationModelReq, choice.storedNavList), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_StoredNavListInfo, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "storedNavList" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_NavigationModelReq, choice.reqNavList), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ReqNavListInfo, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "reqNavList" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_NavigationModelReq_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* storedNavList */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* reqNavList */ -}; -asn_CHOICE_specifics_t asn_SPC_GNSS_NavigationModelReq_specs_1 = { - sizeof(struct GNSS_NavigationModelReq), - offsetof(struct GNSS_NavigationModelReq, _asn_ctx), - offsetof(struct GNSS_NavigationModelReq, present), - sizeof(((struct GNSS_NavigationModelReq *)0)->present), - asn_MAP_GNSS_NavigationModelReq_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_NavigationModelReq = { - "GNSS-NavigationModelReq", - "GNSS-NavigationModelReq", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_GNSS_NavigationModelReq_constr_1, CHOICE_constraint }, - asn_MBR_GNSS_NavigationModelReq_1, - 2, /* Elements count */ - &asn_SPC_GNSS_NavigationModelReq_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-NavigationModelSupport.c b/asn.1/generated/GNSS-NavigationModelSupport.c deleted file mode 100644 index 6b0e6365..00000000 --- a/asn.1/generated/GNSS-NavigationModelSupport.c +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-NavigationModelSupport.h" - -static int -memb_clockModel_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_orbitModel_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_clockModel_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_orbitModel_constr_11 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_NavigationModelSupport_1[] = { - { ATF_POINTER, 2, offsetof(struct GNSS_NavigationModelSupport, clockModel), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_clockModel_constr_2, memb_clockModel_constraint_1 }, - 0, 0, /* No default value */ - "clockModel" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_NavigationModelSupport, orbitModel), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_orbitModel_constr_11, memb_orbitModel_constraint_1 }, - 0, 0, /* No default value */ - "orbitModel" - }, -}; -static const int asn_MAP_GNSS_NavigationModelSupport_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_GNSS_NavigationModelSupport_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_NavigationModelSupport_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* clockModel */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* orbitModel */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_NavigationModelSupport_specs_1 = { - sizeof(struct GNSS_NavigationModelSupport), - offsetof(struct GNSS_NavigationModelSupport, _asn_ctx), - asn_MAP_GNSS_NavigationModelSupport_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_GNSS_NavigationModelSupport_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_NavigationModelSupport = { - "GNSS-NavigationModelSupport", - "GNSS-NavigationModelSupport", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_NavigationModelSupport_tags_1, - sizeof(asn_DEF_GNSS_NavigationModelSupport_tags_1) - /sizeof(asn_DEF_GNSS_NavigationModelSupport_tags_1[0]), /* 1 */ - asn_DEF_GNSS_NavigationModelSupport_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_NavigationModelSupport_tags_1) - /sizeof(asn_DEF_GNSS_NavigationModelSupport_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_NavigationModelSupport_1, - 2, /* Elements count */ - &asn_SPC_GNSS_NavigationModelSupport_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-NetworkID-r15.c b/asn.1/generated/GNSS-NetworkID-r15.c deleted file mode 100644 index d6e625b5..00000000 --- a/asn.1/generated/GNSS-NetworkID-r15.c +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-NetworkID-r15.h" - -static int -memb_networkID_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_networkID_r15_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_NetworkID_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_NetworkID_r15, networkID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_networkID_r15_constr_2, memb_networkID_r15_constraint_1 }, - 0, 0, /* No default value */ - "networkID-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_NetworkID_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_NetworkID_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* networkID-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_NetworkID_r15_specs_1 = { - sizeof(struct GNSS_NetworkID_r15), - offsetof(struct GNSS_NetworkID_r15, _asn_ctx), - asn_MAP_GNSS_NetworkID_r15_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_NetworkID_r15 = { - "GNSS-NetworkID-r15", - "GNSS-NetworkID-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_NetworkID_r15_tags_1, - sizeof(asn_DEF_GNSS_NetworkID_r15_tags_1) - /sizeof(asn_DEF_GNSS_NetworkID_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_NetworkID_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_NetworkID_r15_tags_1) - /sizeof(asn_DEF_GNSS_NetworkID_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_NetworkID_r15_1, - 1, /* Elements count */ - &asn_SPC_GNSS_NetworkID_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-ObservationList-r15.c b/asn.1/generated/GNSS-ObservationList-r15.c deleted file mode 100644 index 5e10fec0..00000000 --- a/asn.1/generated/GNSS-ObservationList-r15.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-ObservationList-r15.h" - -asn_per_constraints_t asn_PER_type_GNSS_ObservationList_r15_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_ObservationList_r15_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_RTK_SatelliteDataElement_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_ObservationList_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_ObservationList_r15_specs_1 = { - sizeof(struct GNSS_ObservationList_r15), - offsetof(struct GNSS_ObservationList_r15, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_ObservationList_r15 = { - "GNSS-ObservationList-r15", - "GNSS-ObservationList-r15", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_ObservationList_r15_tags_1, - sizeof(asn_DEF_GNSS_ObservationList_r15_tags_1) - /sizeof(asn_DEF_GNSS_ObservationList_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_ObservationList_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_ObservationList_r15_tags_1) - /sizeof(asn_DEF_GNSS_ObservationList_r15_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_ObservationList_r15_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_ObservationList_r15_1, - 1, /* Single element */ - &asn_SPC_GNSS_ObservationList_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-OrbitModel.c b/asn.1/generated/GNSS-OrbitModel.c deleted file mode 100644 index cc48b7bf..00000000 --- a/asn.1/generated/GNSS-OrbitModel.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-OrbitModel.h" - -asn_per_constraints_t asn_PER_type_GNSS_OrbitModel_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_OrbitModel_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_OrbitModel, choice.keplerianSet), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NavModelKeplerianSet, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "keplerianSet" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_OrbitModel, choice.nav_KeplerianSet), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NavModelNAV_KeplerianSet, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nav-KeplerianSet" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_OrbitModel, choice.cnav_KeplerianSet), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NavModelCNAV_KeplerianSet, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cnav-KeplerianSet" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_OrbitModel, choice.glonass_ECEF), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NavModel_GLONASS_ECEF, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "glonass-ECEF" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_OrbitModel, choice.sbas_ECEF), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NavModel_SBAS_ECEF, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sbas-ECEF" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_OrbitModel, choice.bds_KeplerianSet_r12), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NavModel_BDS_KeplerianSet_r12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bds-KeplerianSet-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_OrbitModel, choice.bds_KeplerianSet2_r16), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NavModel_BDS_KeplerianSet2_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bds-KeplerianSet2-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_OrbitModel, choice.navic_KeplerianSet_r16), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NavModelKeplerianSet, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "navic-KeplerianSet-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_OrbitModel_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* keplerianSet */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nav-KeplerianSet */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cnav-KeplerianSet */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* glonass-ECEF */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* sbas-ECEF */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* bds-KeplerianSet-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* bds-KeplerianSet2-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* navic-KeplerianSet-r16 */ -}; -asn_CHOICE_specifics_t asn_SPC_GNSS_OrbitModel_specs_1 = { - sizeof(struct GNSS_OrbitModel), - offsetof(struct GNSS_OrbitModel, _asn_ctx), - offsetof(struct GNSS_OrbitModel, present), - sizeof(((struct GNSS_OrbitModel *)0)->present), - asn_MAP_GNSS_OrbitModel_tag2el_1, - 8, /* Count of tags in the map */ - 0, 0, - 5 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_OrbitModel = { - "GNSS-OrbitModel", - "GNSS-OrbitModel", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_GNSS_OrbitModel_constr_1, CHOICE_constraint }, - asn_MBR_GNSS_OrbitModel_1, - 8, /* Elements count */ - &asn_SPC_GNSS_OrbitModel_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-PeriodicAssistData-r15.c b/asn.1/generated/GNSS-PeriodicAssistData-r15.c deleted file mode 100644 index 51c226ca..00000000 --- a/asn.1/generated/GNSS-PeriodicAssistData-r15.c +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-PeriodicAssistData-r15.h" - -static asn_TYPE_member_t asn_MBR_ext1_11[] = { - { ATF_POINTER, 4, offsetof(struct GNSS_PeriodicAssistData_r15__ext1, gnss_SSR_PeriodicURA_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-PeriodicURA-r16" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_PeriodicAssistData_r15__ext1, gnss_SSR_PeriodicPhaseBias_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-PeriodicPhaseBias-r16" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_PeriodicAssistData_r15__ext1, gnss_SSR_PeriodicSTEC_Correction_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-PeriodicSTEC-Correction-r16" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_PeriodicAssistData_r15__ext1, gnss_SSR_PeriodicGriddedCorrection_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-PeriodicGriddedCorrection-r16" - }, -}; -static const int asn_MAP_ext1_oms_11[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_11[] = { - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_11[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SSR-PeriodicURA-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-SSR-PeriodicPhaseBias-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-SSR-PeriodicSTEC-Correction-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* gnss-SSR-PeriodicGriddedCorrection-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_11 = { - sizeof(struct GNSS_PeriodicAssistData_r15__ext1), - offsetof(struct GNSS_PeriodicAssistData_r15__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_11, - 4, /* Count of tags in the map */ - asn_MAP_ext1_oms_11, /* Optional members */ - 4, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_11 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_11, - sizeof(asn_DEF_ext1_tags_11) - /sizeof(asn_DEF_ext1_tags_11[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_11, /* Same as above */ - sizeof(asn_DEF_ext1_tags_11) - /sizeof(asn_DEF_ext1_tags_11[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_11, - 4, /* Elements count */ - &asn_SPC_ext1_specs_11 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_PeriodicAssistData_r15_1[] = { - { ATF_POINTER, 9, offsetof(struct GNSS_PeriodicAssistData_r15, gnss_RTK_PeriodicObservations_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-PeriodicObservations-r15" - }, - { ATF_POINTER, 8, offsetof(struct GNSS_PeriodicAssistData_r15, glo_RTK_PeriodicBiasInformation_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "glo-RTK-PeriodicBiasInformation-r15" - }, - { ATF_POINTER, 7, offsetof(struct GNSS_PeriodicAssistData_r15, gnss_RTK_MAC_PeriodicCorrectionDifferences_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-MAC-PeriodicCorrectionDifferences-r15" - }, - { ATF_POINTER, 6, offsetof(struct GNSS_PeriodicAssistData_r15, gnss_RTK_PeriodicResiduals_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-PeriodicResiduals-r15" - }, - { ATF_POINTER, 5, offsetof(struct GNSS_PeriodicAssistData_r15, gnss_RTK_FKP_PeriodicGradients_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-FKP-PeriodicGradients-r15" - }, - { ATF_POINTER, 4, offsetof(struct GNSS_PeriodicAssistData_r15, gnss_SSR_PeriodicOrbitCorrections_r15), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-PeriodicOrbitCorrections-r15" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_PeriodicAssistData_r15, gnss_SSR_PeriodicClockCorrections_r15), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-PeriodicClockCorrections-r15" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_PeriodicAssistData_r15, gnss_SSR_PeriodicCodeBias_r15), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-PeriodicCodeBias-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_PeriodicAssistData_r15, ext1), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - 0, - &asn_DEF_ext1_11, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_GNSS_PeriodicAssistData_r15_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 }; -static const ber_tlv_tag_t asn_DEF_GNSS_PeriodicAssistData_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_PeriodicAssistData_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-RTK-PeriodicObservations-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* glo-RTK-PeriodicBiasInformation-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-RTK-MAC-PeriodicCorrectionDifferences-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-RTK-PeriodicResiduals-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-RTK-FKP-PeriodicGradients-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gnss-SSR-PeriodicOrbitCorrections-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnss-SSR-PeriodicClockCorrections-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* gnss-SSR-PeriodicCodeBias-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_PeriodicAssistData_r15_specs_1 = { - sizeof(struct GNSS_PeriodicAssistData_r15), - offsetof(struct GNSS_PeriodicAssistData_r15, _asn_ctx), - asn_MAP_GNSS_PeriodicAssistData_r15_tag2el_1, - 9, /* Count of tags in the map */ - asn_MAP_GNSS_PeriodicAssistData_r15_oms_1, /* Optional members */ - 8, 1, /* Root/Additions */ - 8, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_PeriodicAssistData_r15 = { - "GNSS-PeriodicAssistData-r15", - "GNSS-PeriodicAssistData-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_PeriodicAssistData_r15_tags_1, - sizeof(asn_DEF_GNSS_PeriodicAssistData_r15_tags_1) - /sizeof(asn_DEF_GNSS_PeriodicAssistData_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_PeriodicAssistData_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_PeriodicAssistData_r15_tags_1) - /sizeof(asn_DEF_GNSS_PeriodicAssistData_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_PeriodicAssistData_r15_1, - 9, /* Elements count */ - &asn_SPC_GNSS_PeriodicAssistData_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-PeriodicAssistData-r15.h b/asn.1/generated/GNSS-PeriodicAssistData-r15.h deleted file mode 100644 index f30655f8..00000000 --- a/asn.1/generated/GNSS-PeriodicAssistData-r15.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_PeriodicAssistData_r15_H_ -#define _GNSS_PeriodicAssistData_r15_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct GNSS_PeriodicControlParam_r15; - -/* GNSS-PeriodicAssistData-r15 */ -typedef struct GNSS_PeriodicAssistData_r15 { - struct GNSS_PeriodicControlParam_r15 *gnss_RTK_PeriodicObservations_r15 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *glo_RTK_PeriodicBiasInformation_r15 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *gnss_RTK_MAC_PeriodicCorrectionDifferences_r15 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *gnss_RTK_PeriodicResiduals_r15 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *gnss_RTK_FKP_PeriodicGradients_r15 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicOrbitCorrections_r15 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicClockCorrections_r15 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicCodeBias_r15 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct GNSS_PeriodicAssistData_r15__ext1 { - struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicURA_r16 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicPhaseBias_r16 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicSTEC_Correction_r16 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicGriddedCorrection_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_PeriodicAssistData_r15_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_PeriodicAssistData_r15; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_PeriodicAssistData_r15_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_PeriodicAssistData_r15_1[9]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GNSS-PeriodicControlParam-r15.h" - -#endif /* _GNSS_PeriodicAssistData_r15_H_ */ -#include diff --git a/asn.1/generated/GNSS-PeriodicAssistDataReq-r15.c b/asn.1/generated/GNSS-PeriodicAssistDataReq-r15.c deleted file mode 100644 index 38441dfa..00000000 --- a/asn.1/generated/GNSS-PeriodicAssistDataReq-r15.c +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-PeriodicAssistDataReq-r15.h" - -static asn_TYPE_member_t asn_MBR_ext1_11[] = { - { ATF_POINTER, 4, offsetof(struct GNSS_PeriodicAssistDataReq_r15__ext1, gnss_SSR_PeriodicURA_Req_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-PeriodicURA-Req-r16" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_PeriodicAssistDataReq_r15__ext1, gnss_SSR_PeriodicPhaseBiasReq_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-PeriodicPhaseBiasReq-r16" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_PeriodicAssistDataReq_r15__ext1, gnss_SSR_PeriodicSTEC_CorrectionReq_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-PeriodicSTEC-CorrectionReq-r16" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_PeriodicAssistDataReq_r15__ext1, gnss_SSR_PeriodicGriddedCorrectionReq_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-PeriodicGriddedCorrectionReq-r16" - }, -}; -static const int asn_MAP_ext1_oms_11[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_11[] = { - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_11[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SSR-PeriodicURA-Req-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-SSR-PeriodicPhaseBiasReq-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-SSR-PeriodicSTEC-CorrectionReq-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* gnss-SSR-PeriodicGriddedCorrectionReq-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_11 = { - sizeof(struct GNSS_PeriodicAssistDataReq_r15__ext1), - offsetof(struct GNSS_PeriodicAssistDataReq_r15__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_11, - 4, /* Count of tags in the map */ - asn_MAP_ext1_oms_11, /* Optional members */ - 4, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_11 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_11, - sizeof(asn_DEF_ext1_tags_11) - /sizeof(asn_DEF_ext1_tags_11[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_11, /* Same as above */ - sizeof(asn_DEF_ext1_tags_11) - /sizeof(asn_DEF_ext1_tags_11[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_11, - 4, /* Elements count */ - &asn_SPC_ext1_specs_11 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_PeriodicAssistDataReq_r15_1[] = { - { ATF_POINTER, 9, offsetof(struct GNSS_PeriodicAssistDataReq_r15, gnss_RTK_PeriodicObservationsReq_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-PeriodicObservationsReq-r15" - }, - { ATF_POINTER, 8, offsetof(struct GNSS_PeriodicAssistDataReq_r15, glo_RTK_PeriodicBiasInformationReq_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "glo-RTK-PeriodicBiasInformationReq-r15" - }, - { ATF_POINTER, 7, offsetof(struct GNSS_PeriodicAssistDataReq_r15, gnss_RTK_MAC_PeriodicCorrectionDifferencesReq_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-MAC-PeriodicCorrectionDifferencesReq-r15" - }, - { ATF_POINTER, 6, offsetof(struct GNSS_PeriodicAssistDataReq_r15, gnss_RTK_PeriodicResidualsReq_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-PeriodicResidualsReq-r15" - }, - { ATF_POINTER, 5, offsetof(struct GNSS_PeriodicAssistDataReq_r15, gnss_RTK_FKP_PeriodicGradientsReq_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-FKP-PeriodicGradientsReq-r15" - }, - { ATF_POINTER, 4, offsetof(struct GNSS_PeriodicAssistDataReq_r15, gnss_SSR_PeriodicOrbitCorrectionsReq_r15), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-PeriodicOrbitCorrectionsReq-r15" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_PeriodicAssistDataReq_r15, gnss_SSR_PeriodicClockCorrectionsReq_r15), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-PeriodicClockCorrectionsReq-r15" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_PeriodicAssistDataReq_r15, gnss_SSR_PeriodicCodeBiasReq_r15), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_PeriodicControlParam_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SSR-PeriodicCodeBiasReq-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_PeriodicAssistDataReq_r15, ext1), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - 0, - &asn_DEF_ext1_11, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_GNSS_PeriodicAssistDataReq_r15_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 }; -static const ber_tlv_tag_t asn_DEF_GNSS_PeriodicAssistDataReq_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_PeriodicAssistDataReq_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-RTK-PeriodicObservationsReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* glo-RTK-PeriodicBiasInformationReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-RTK-MAC-PeriodicCorrectionDifferencesReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-RTK-PeriodicResidualsReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-RTK-FKP-PeriodicGradientsReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gnss-SSR-PeriodicOrbitCorrectionsReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnss-SSR-PeriodicClockCorrectionsReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* gnss-SSR-PeriodicCodeBiasReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_PeriodicAssistDataReq_r15_specs_1 = { - sizeof(struct GNSS_PeriodicAssistDataReq_r15), - offsetof(struct GNSS_PeriodicAssistDataReq_r15, _asn_ctx), - asn_MAP_GNSS_PeriodicAssistDataReq_r15_tag2el_1, - 9, /* Count of tags in the map */ - asn_MAP_GNSS_PeriodicAssistDataReq_r15_oms_1, /* Optional members */ - 8, 1, /* Root/Additions */ - 8, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_PeriodicAssistDataReq_r15 = { - "GNSS-PeriodicAssistDataReq-r15", - "GNSS-PeriodicAssistDataReq-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_PeriodicAssistDataReq_r15_tags_1, - sizeof(asn_DEF_GNSS_PeriodicAssistDataReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_PeriodicAssistDataReq_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_PeriodicAssistDataReq_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_PeriodicAssistDataReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_PeriodicAssistDataReq_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_PeriodicAssistDataReq_r15_1, - 9, /* Elements count */ - &asn_SPC_GNSS_PeriodicAssistDataReq_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-PeriodicAssistDataReq-r15.h b/asn.1/generated/GNSS-PeriodicAssistDataReq-r15.h deleted file mode 100644 index ccd4a76e..00000000 --- a/asn.1/generated/GNSS-PeriodicAssistDataReq-r15.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_PeriodicAssistDataReq_r15_H_ -#define _GNSS_PeriodicAssistDataReq_r15_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct GNSS_PeriodicControlParam_r15; - -/* GNSS-PeriodicAssistDataReq-r15 */ -typedef struct GNSS_PeriodicAssistDataReq_r15 { - struct GNSS_PeriodicControlParam_r15 *gnss_RTK_PeriodicObservationsReq_r15 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *glo_RTK_PeriodicBiasInformationReq_r15 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *gnss_RTK_MAC_PeriodicCorrectionDifferencesReq_r15 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *gnss_RTK_PeriodicResidualsReq_r15 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *gnss_RTK_FKP_PeriodicGradientsReq_r15 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicOrbitCorrectionsReq_r15 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicClockCorrectionsReq_r15 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicCodeBiasReq_r15 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct GNSS_PeriodicAssistDataReq_r15__ext1 { - struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicURA_Req_r16 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicPhaseBiasReq_r16 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicSTEC_CorrectionReq_r16 /* OPTIONAL */; - struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicGriddedCorrectionReq_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_PeriodicAssistDataReq_r15_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_PeriodicAssistDataReq_r15; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_PeriodicAssistDataReq_r15_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_PeriodicAssistDataReq_r15_1[9]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GNSS-PeriodicControlParam-r15.h" - -#endif /* _GNSS_PeriodicAssistDataReq_r15_H_ */ -#include diff --git a/asn.1/generated/GNSS-PeriodicControlParam-r15.c b/asn.1/generated/GNSS-PeriodicControlParam-r15.c deleted file mode 100644 index 4307a268..00000000 --- a/asn.1/generated/GNSS-PeriodicControlParam-r15.c +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-PeriodicControlParam-r15.h" - -static int -memb_deliveryAmount_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 32)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_deliveryInterval_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 64)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_deliveryAmount_r15_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (1..32) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_deliveryInterval_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (1..64) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_PeriodicControlParam_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_PeriodicControlParam_r15, deliveryAmount_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_deliveryAmount_r15_constr_2, memb_deliveryAmount_r15_constraint_1 }, - 0, 0, /* No default value */ - "deliveryAmount-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_PeriodicControlParam_r15, deliveryInterval_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_deliveryInterval_r15_constr_3, memb_deliveryInterval_r15_constraint_1 }, - 0, 0, /* No default value */ - "deliveryInterval-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_PeriodicControlParam_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_PeriodicControlParam_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* deliveryAmount-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* deliveryInterval-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_PeriodicControlParam_r15_specs_1 = { - sizeof(struct GNSS_PeriodicControlParam_r15), - offsetof(struct GNSS_PeriodicControlParam_r15, _asn_ctx), - asn_MAP_GNSS_PeriodicControlParam_r15_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_PeriodicControlParam_r15 = { - "GNSS-PeriodicControlParam-r15", - "GNSS-PeriodicControlParam-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_PeriodicControlParam_r15_tags_1, - sizeof(asn_DEF_GNSS_PeriodicControlParam_r15_tags_1) - /sizeof(asn_DEF_GNSS_PeriodicControlParam_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_PeriodicControlParam_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_PeriodicControlParam_r15_tags_1) - /sizeof(asn_DEF_GNSS_PeriodicControlParam_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_PeriodicControlParam_r15_1, - 2, /* Elements count */ - &asn_SPC_GNSS_PeriodicControlParam_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-PositioningInstructions.c b/asn.1/generated/GNSS-PositioningInstructions.c deleted file mode 100644 index 5af4d0c8..00000000 --- a/asn.1/generated/GNSS-PositioningInstructions.c +++ /dev/null @@ -1,191 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-PositioningInstructions.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_ha_GNSS_Req_r15_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_ha_GNSS_Req_r15_value2enum_9[] = { - { 0, 4, "true" } -}; -static const unsigned int asn_MAP_ha_GNSS_Req_r15_enum2value_9[] = { - 0 /* true(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_ha_GNSS_Req_r15_specs_9 = { - asn_MAP_ha_GNSS_Req_r15_value2enum_9, /* "tag" => N; sorted by tag */ - asn_MAP_ha_GNSS_Req_r15_enum2value_9, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_ha_GNSS_Req_r15_tags_9[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ha_GNSS_Req_r15_9 = { - "ha-GNSS-Req-r15", - "ha-GNSS-Req-r15", - &asn_OP_NativeEnumerated, - asn_DEF_ha_GNSS_Req_r15_tags_9, - sizeof(asn_DEF_ha_GNSS_Req_r15_tags_9) - /sizeof(asn_DEF_ha_GNSS_Req_r15_tags_9[0]) - 1, /* 1 */ - asn_DEF_ha_GNSS_Req_r15_tags_9, /* Same as above */ - sizeof(asn_DEF_ha_GNSS_Req_r15_tags_9) - /sizeof(asn_DEF_ha_GNSS_Req_r15_tags_9[0]), /* 2 */ - { 0, &asn_PER_type_ha_GNSS_Req_r15_constr_9, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_ha_GNSS_Req_r15_specs_9 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_8[] = { - { ATF_POINTER, 1, offsetof(struct GNSS_PositioningInstructions__ext1, ha_GNSS_Req_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ha_GNSS_Req_r15_9, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ha-GNSS-Req-r15" - }, -}; -static const int asn_MAP_ext1_oms_8[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ha-GNSS-Req-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { - sizeof(struct GNSS_PositioningInstructions__ext1), - offsetof(struct GNSS_PositioningInstructions__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_8, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_8, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_8 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_8, - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_8, /* Same as above */ - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_8, - 1, /* Elements count */ - &asn_SPC_ext1_specs_8 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_PositioningInstructions_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_PositioningInstructions, gnss_Methods), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ID_Bitmap, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-Methods" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_PositioningInstructions, fineTimeAssistanceMeasReq), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "fineTimeAssistanceMeasReq" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_PositioningInstructions, adrMeasReq), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "adrMeasReq" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_PositioningInstructions, multiFreqMeasReq), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "multiFreqMeasReq" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_PositioningInstructions, assistanceAvailability), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "assistanceAvailability" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_PositioningInstructions, ext1), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - 0, - &asn_DEF_ext1_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_GNSS_PositioningInstructions_oms_1[] = { 5 }; -static const ber_tlv_tag_t asn_DEF_GNSS_PositioningInstructions_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_PositioningInstructions_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-Methods */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* fineTimeAssistanceMeasReq */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* adrMeasReq */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* multiFreqMeasReq */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* assistanceAvailability */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_PositioningInstructions_specs_1 = { - sizeof(struct GNSS_PositioningInstructions), - offsetof(struct GNSS_PositioningInstructions, _asn_ctx), - asn_MAP_GNSS_PositioningInstructions_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_GNSS_PositioningInstructions_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_PositioningInstructions = { - "GNSS-PositioningInstructions", - "GNSS-PositioningInstructions", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_PositioningInstructions_tags_1, - sizeof(asn_DEF_GNSS_PositioningInstructions_tags_1) - /sizeof(asn_DEF_GNSS_PositioningInstructions_tags_1[0]), /* 1 */ - asn_DEF_GNSS_PositioningInstructions_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_PositioningInstructions_tags_1) - /sizeof(asn_DEF_GNSS_PositioningInstructions_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_PositioningInstructions_1, - 6, /* Elements count */ - &asn_SPC_GNSS_PositioningInstructions_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-PositioningInstructions.h b/asn.1/generated/GNSS-PositioningInstructions.h deleted file mode 100644 index f15e1d2a..00000000 --- a/asn.1/generated/GNSS-PositioningInstructions.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_PositioningInstructions_H_ -#define _GNSS_PositioningInstructions_H_ - - -#include - -/* Including external dependencies */ -#include "GNSS-ID-Bitmap.h" -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum GNSS_PositioningInstructions__ext1__ha_GNSS_Req_r15 { - GNSS_PositioningInstructions__ext1__ha_GNSS_Req_r15_true = 0 -} e_GNSS_PositioningInstructions__ext1__ha_GNSS_Req_r15; - -/* GNSS-PositioningInstructions */ -typedef struct GNSS_PositioningInstructions { - GNSS_ID_Bitmap_t gnss_Methods; - BOOLEAN_t fineTimeAssistanceMeasReq; - BOOLEAN_t adrMeasReq; - BOOLEAN_t multiFreqMeasReq; - BOOLEAN_t assistanceAvailability; - /* - * This type is extensible, - * possible extensions are below. - */ - struct GNSS_PositioningInstructions__ext1 { - long *ha_GNSS_Req_r15 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_PositioningInstructions_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_ha_GNSS_Req_r15_9; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_PositioningInstructions; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_PositioningInstructions_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_PositioningInstructions_1[6]; - -#ifdef __cplusplus -} -#endif - -#endif /* _GNSS_PositioningInstructions_H_ */ -#include diff --git a/asn.1/generated/GNSS-RTK-AuxiliaryStationData-r15.c b/asn.1/generated/GNSS-RTK-AuxiliaryStationData-r15.c deleted file mode 100644 index 40191c78..00000000 --- a/asn.1/generated/GNSS-RTK-AuxiliaryStationData-r15.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-AuxiliaryStationData-r15.h" - -asn_TYPE_member_t asn_MBR_GNSS_RTK_AuxiliaryStationData_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_AuxiliaryStationData_r15, networkID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_NetworkID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "networkID-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_RTK_AuxiliaryStationData_r15, subNetworkID_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SubNetworkID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "subNetworkID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_AuxiliaryStationData_r15, master_referenceStationID_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceStationID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "master-referenceStationID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_AuxiliaryStationData_r15, auxiliaryStationList_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AuxiliaryStationList_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "auxiliaryStationList-r15" - }, -}; -static const int asn_MAP_GNSS_RTK_AuxiliaryStationData_r15_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_AuxiliaryStationData_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_AuxiliaryStationData_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* networkID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* subNetworkID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* master-referenceStationID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* auxiliaryStationList-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_AuxiliaryStationData_r15_specs_1 = { - sizeof(struct GNSS_RTK_AuxiliaryStationData_r15), - offsetof(struct GNSS_RTK_AuxiliaryStationData_r15, _asn_ctx), - asn_MAP_GNSS_RTK_AuxiliaryStationData_r15_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_GNSS_RTK_AuxiliaryStationData_r15_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_AuxiliaryStationData_r15 = { - "GNSS-RTK-AuxiliaryStationData-r15", - "GNSS-RTK-AuxiliaryStationData-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_AuxiliaryStationData_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationData_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationData_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_AuxiliaryStationData_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationData_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationData_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RTK_AuxiliaryStationData_r15_1, - 4, /* Elements count */ - &asn_SPC_GNSS_RTK_AuxiliaryStationData_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-AuxiliaryStationDataReq-r15.c b/asn.1/generated/GNSS-RTK-AuxiliaryStationDataReq-r15.c deleted file mode 100644 index 8165caec..00000000 --- a/asn.1/generated/GNSS-RTK-AuxiliaryStationDataReq-r15.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-AuxiliaryStationDataReq-r15.h" - -asn_TYPE_member_t asn_MBR_GNSS_RTK_AuxiliaryStationDataReq_r15_1[] = { - { ATF_POINTER, 1, offsetof(struct GNSS_RTK_AuxiliaryStationDataReq_r15, master_referenceStationID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceStationID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "master-referenceStationID-r15" - }, -}; -static const int asn_MAP_GNSS_RTK_AuxiliaryStationDataReq_r15_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_AuxiliaryStationDataReq_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_AuxiliaryStationDataReq_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* master-referenceStationID-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_AuxiliaryStationDataReq_r15_specs_1 = { - sizeof(struct GNSS_RTK_AuxiliaryStationDataReq_r15), - offsetof(struct GNSS_RTK_AuxiliaryStationDataReq_r15, _asn_ctx), - asn_MAP_GNSS_RTK_AuxiliaryStationDataReq_r15_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_GNSS_RTK_AuxiliaryStationDataReq_r15_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_AuxiliaryStationDataReq_r15 = { - "GNSS-RTK-AuxiliaryStationDataReq-r15", - "GNSS-RTK-AuxiliaryStationDataReq-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_AuxiliaryStationDataReq_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationDataReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationDataReq_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_AuxiliaryStationDataReq_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationDataReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationDataReq_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RTK_AuxiliaryStationDataReq_r15_1, - 1, /* Elements count */ - &asn_SPC_GNSS_RTK_AuxiliaryStationDataReq_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-AuxiliaryStationDataSupport-r15.c b/asn.1/generated/GNSS-RTK-AuxiliaryStationDataSupport-r15.c deleted file mode 100644 index 3e903325..00000000 --- a/asn.1/generated/GNSS-RTK-AuxiliaryStationDataSupport-r15.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-AuxiliaryStationDataSupport-r15.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_AuxiliaryStationDataSupport_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_AuxiliaryStationDataSupport_r15_specs_1 = { - sizeof(struct GNSS_RTK_AuxiliaryStationDataSupport_r15), - offsetof(struct GNSS_RTK_AuxiliaryStationDataSupport_r15, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_AuxiliaryStationDataSupport_r15 = { - "GNSS-RTK-AuxiliaryStationDataSupport-r15", - "GNSS-RTK-AuxiliaryStationDataSupport-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_AuxiliaryStationDataSupport_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationDataSupport_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationDataSupport_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_AuxiliaryStationDataSupport_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationDataSupport_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationDataSupport_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_RTK_AuxiliaryStationDataSupport_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-CommonObservationInfo-r15.c b/asn.1/generated/GNSS-RTK-CommonObservationInfo-r15.c deleted file mode 100644 index 91a4aa8e..00000000 --- a/asn.1/generated/GNSS-RTK-CommonObservationInfo-r15.c +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-CommonObservationInfo-r15.h" - -static int -memb_clockSteeringIndicator_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_externalClockIndicator_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_smoothingIndicator_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_smoothingInterval_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_clockSteeringIndicator_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_externalClockIndicator_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_smoothingIndicator_r15_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (SIZE(1..1)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_smoothingInterval_r15_constr_6 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_RTK_CommonObservationInfo_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_CommonObservationInfo_r15, referenceStationID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceStationID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceStationID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_CommonObservationInfo_r15, clockSteeringIndicator_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_clockSteeringIndicator_r15_constr_3, memb_clockSteeringIndicator_r15_constraint_1 }, - 0, 0, /* No default value */ - "clockSteeringIndicator-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_CommonObservationInfo_r15, externalClockIndicator_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_externalClockIndicator_r15_constr_4, memb_externalClockIndicator_r15_constraint_1 }, - 0, 0, /* No default value */ - "externalClockIndicator-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_CommonObservationInfo_r15, smoothingIndicator_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_smoothingIndicator_r15_constr_5, memb_smoothingIndicator_r15_constraint_1 }, - 0, 0, /* No default value */ - "smoothingIndicator-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_CommonObservationInfo_r15, smoothingInterval_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_smoothingInterval_r15_constr_6, memb_smoothingInterval_r15_constraint_1 }, - 0, 0, /* No default value */ - "smoothingInterval-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_CommonObservationInfo_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_CommonObservationInfo_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceStationID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* clockSteeringIndicator-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* externalClockIndicator-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* smoothingIndicator-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* smoothingInterval-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_CommonObservationInfo_r15_specs_1 = { - sizeof(struct GNSS_RTK_CommonObservationInfo_r15), - offsetof(struct GNSS_RTK_CommonObservationInfo_r15, _asn_ctx), - asn_MAP_GNSS_RTK_CommonObservationInfo_r15_tag2el_1, - 5, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_CommonObservationInfo_r15 = { - "GNSS-RTK-CommonObservationInfo-r15", - "GNSS-RTK-CommonObservationInfo-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_CommonObservationInfo_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_CommonObservationInfo_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_CommonObservationInfo_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_CommonObservationInfo_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_CommonObservationInfo_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_CommonObservationInfo_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RTK_CommonObservationInfo_r15_1, - 5, /* Elements count */ - &asn_SPC_GNSS_RTK_CommonObservationInfo_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-FKP-Gradients-r15.c b/asn.1/generated/GNSS-RTK-FKP-Gradients-r15.c deleted file mode 100644 index d6a2b72e..00000000 --- a/asn.1/generated/GNSS-RTK-FKP-Gradients-r15.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-FKP-Gradients-r15.h" - -asn_TYPE_member_t asn_MBR_GNSS_RTK_FKP_Gradients_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_FKP_Gradients_r15, referenceStationID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceStationID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceStationID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_FKP_Gradients_r15, epochTime_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SystemTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "epochTime-r15" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_RTK_FKP_Gradients_r15, l1_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_FrequencyID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "l1-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_RTK_FKP_Gradients_r15, l2_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_FrequencyID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "l2-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_FKP_Gradients_r15, fkp_gradients_list_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_FKP_Gradients_List_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "fkp-gradients-list-r15" - }, -}; -static const int asn_MAP_GNSS_RTK_FKP_Gradients_r15_oms_1[] = { 2, 3 }; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_FKP_Gradients_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_FKP_Gradients_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceStationID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* epochTime-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* l1-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* l2-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* fkp-gradients-list-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_FKP_Gradients_r15_specs_1 = { - sizeof(struct GNSS_RTK_FKP_Gradients_r15), - offsetof(struct GNSS_RTK_FKP_Gradients_r15, _asn_ctx), - asn_MAP_GNSS_RTK_FKP_Gradients_r15_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_GNSS_RTK_FKP_Gradients_r15_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_FKP_Gradients_r15 = { - "GNSS-RTK-FKP-Gradients-r15", - "GNSS-RTK-FKP-Gradients-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_FKP_Gradients_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_FKP_Gradients_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_FKP_Gradients_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_FKP_Gradients_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_FKP_Gradients_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_FKP_Gradients_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RTK_FKP_Gradients_r15_1, - 5, /* Elements count */ - &asn_SPC_GNSS_RTK_FKP_Gradients_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-FKP-GradientsReq-r15.c b/asn.1/generated/GNSS-RTK-FKP-GradientsReq-r15.c deleted file mode 100644 index df2b769d..00000000 --- a/asn.1/generated/GNSS-RTK-FKP-GradientsReq-r15.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-FKP-GradientsReq-r15.h" - -asn_TYPE_member_t asn_MBR_GNSS_RTK_FKP_GradientsReq_r15_1[] = { - { ATF_POINTER, 2, offsetof(struct GNSS_RTK_FKP_GradientsReq_r15, stationID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceStationID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "stationID-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_RTK_FKP_GradientsReq_r15, linkCombinations_PrefList_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_Link_CombinationsList_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "linkCombinations-PrefList-r15" - }, -}; -static const int asn_MAP_GNSS_RTK_FKP_GradientsReq_r15_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_FKP_GradientsReq_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_FKP_GradientsReq_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* stationID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* linkCombinations-PrefList-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_FKP_GradientsReq_r15_specs_1 = { - sizeof(struct GNSS_RTK_FKP_GradientsReq_r15), - offsetof(struct GNSS_RTK_FKP_GradientsReq_r15, _asn_ctx), - asn_MAP_GNSS_RTK_FKP_GradientsReq_r15_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_GNSS_RTK_FKP_GradientsReq_r15_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_FKP_GradientsReq_r15 = { - "GNSS-RTK-FKP-GradientsReq-r15", - "GNSS-RTK-FKP-GradientsReq-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_FKP_GradientsReq_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_FKP_GradientsReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_FKP_GradientsReq_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_FKP_GradientsReq_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_FKP_GradientsReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_FKP_GradientsReq_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RTK_FKP_GradientsReq_r15_1, - 2, /* Elements count */ - &asn_SPC_GNSS_RTK_FKP_GradientsReq_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-FKP-GradientsReq-r15.h b/asn.1/generated/GNSS-RTK-FKP-GradientsReq-r15.h deleted file mode 100644 index 676b3a77..00000000 --- a/asn.1/generated/GNSS-RTK-FKP-GradientsReq-r15.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_RTK_FKP_GradientsReq_r15_H_ -#define _GNSS_RTK_FKP_GradientsReq_r15_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct GNSS_ReferenceStationID_r15; -struct GNSS_Link_CombinationsList_r15; - -/* GNSS-RTK-FKP-GradientsReq-r15 */ -typedef struct GNSS_RTK_FKP_GradientsReq_r15 { - struct GNSS_ReferenceStationID_r15 *stationID_r15 /* OPTIONAL */; - struct GNSS_Link_CombinationsList_r15 *linkCombinations_PrefList_r15 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_RTK_FKP_GradientsReq_r15_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_FKP_GradientsReq_r15; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_FKP_GradientsReq_r15_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_RTK_FKP_GradientsReq_r15_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GNSS-ReferenceStationID-r15.h" -#include "GNSS-Link-CombinationsList-r15.h" - -#endif /* _GNSS_RTK_FKP_GradientsReq_r15_H_ */ -#include diff --git a/asn.1/generated/GNSS-RTK-FKP-GradientsSupport-r15.c b/asn.1/generated/GNSS-RTK-FKP-GradientsSupport-r15.c deleted file mode 100644 index e5e1c14d..00000000 --- a/asn.1/generated/GNSS-RTK-FKP-GradientsSupport-r15.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-FKP-GradientsSupport-r15.h" - -asn_TYPE_member_t asn_MBR_GNSS_RTK_FKP_GradientsSupport_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_FKP_GradientsSupport_r15, link_combinations_support_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_Link_CombinationsList_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "link-combinations-support-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_FKP_GradientsSupport_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_FKP_GradientsSupport_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* link-combinations-support-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_FKP_GradientsSupport_r15_specs_1 = { - sizeof(struct GNSS_RTK_FKP_GradientsSupport_r15), - offsetof(struct GNSS_RTK_FKP_GradientsSupport_r15, _asn_ctx), - asn_MAP_GNSS_RTK_FKP_GradientsSupport_r15_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_FKP_GradientsSupport_r15 = { - "GNSS-RTK-FKP-GradientsSupport-r15", - "GNSS-RTK-FKP-GradientsSupport-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_FKP_GradientsSupport_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_FKP_GradientsSupport_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_FKP_GradientsSupport_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_FKP_GradientsSupport_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_FKP_GradientsSupport_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_FKP_GradientsSupport_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RTK_FKP_GradientsSupport_r15_1, - 1, /* Elements count */ - &asn_SPC_GNSS_RTK_FKP_GradientsSupport_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-MAC-CorrectionDifferences-r15.c b/asn.1/generated/GNSS-RTK-MAC-CorrectionDifferences-r15.c deleted file mode 100644 index 1c5bdf2e..00000000 --- a/asn.1/generated/GNSS-RTK-MAC-CorrectionDifferences-r15.c +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-MAC-CorrectionDifferences-r15.h" - -asn_TYPE_member_t asn_MBR_GNSS_RTK_MAC_CorrectionDifferences_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_MAC_CorrectionDifferences_r15, networkID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_NetworkID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "networkID-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_RTK_MAC_CorrectionDifferences_r15, subNetworkID_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SubNetworkID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "subNetworkID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_MAC_CorrectionDifferences_r15, master_ReferenceStationID_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceStationID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "master-ReferenceStationID-r15" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_RTK_MAC_CorrectionDifferences_r15, l1_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_FrequencyID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "l1-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_RTK_MAC_CorrectionDifferences_r15, l2_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_FrequencyID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "l2-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_MAC_CorrectionDifferences_r15, rtkCorrectionDifferencesList_r15), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RTK_CorrectionDifferencesList_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rtkCorrectionDifferencesList-r15" - }, -}; -static const int asn_MAP_GNSS_RTK_MAC_CorrectionDifferences_r15_oms_1[] = { 1, 3, 4 }; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_MAC_CorrectionDifferences_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_MAC_CorrectionDifferences_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* networkID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* subNetworkID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* master-ReferenceStationID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* l1-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* l2-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* rtkCorrectionDifferencesList-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_MAC_CorrectionDifferences_r15_specs_1 = { - sizeof(struct GNSS_RTK_MAC_CorrectionDifferences_r15), - offsetof(struct GNSS_RTK_MAC_CorrectionDifferences_r15, _asn_ctx), - asn_MAP_GNSS_RTK_MAC_CorrectionDifferences_r15_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_GNSS_RTK_MAC_CorrectionDifferences_r15_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_MAC_CorrectionDifferences_r15 = { - "GNSS-RTK-MAC-CorrectionDifferences-r15", - "GNSS-RTK-MAC-CorrectionDifferences-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_MAC_CorrectionDifferences_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferences_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferences_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_MAC_CorrectionDifferences_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferences_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferences_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RTK_MAC_CorrectionDifferences_r15_1, - 6, /* Elements count */ - &asn_SPC_GNSS_RTK_MAC_CorrectionDifferences_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-MAC-CorrectionDifferencesReq-r15.c b/asn.1/generated/GNSS-RTK-MAC-CorrectionDifferencesReq-r15.c deleted file mode 100644 index df9e7f7d..00000000 --- a/asn.1/generated/GNSS-RTK-MAC-CorrectionDifferencesReq-r15.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-MAC-CorrectionDifferencesReq-r15.h" - -asn_TYPE_member_t asn_MBR_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_1[] = { - { ATF_POINTER, 3, offsetof(struct GNSS_RTK_MAC_CorrectionDifferencesReq_r15, master_ReferenceStationID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceStationID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "master-ReferenceStationID-r15" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_RTK_MAC_CorrectionDifferencesReq_r15, aux_ReferenceStationList_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AUX_ReferenceStationList_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "aux-ReferenceStationList-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_RTK_MAC_CorrectionDifferencesReq_r15, linkCombinations_PrefList_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_Link_CombinationsList_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "linkCombinations-PrefList-r15" - }, -}; -static const int asn_MAP_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* master-ReferenceStationID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* aux-ReferenceStationList-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* linkCombinations-PrefList-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_specs_1 = { - sizeof(struct GNSS_RTK_MAC_CorrectionDifferencesReq_r15), - offsetof(struct GNSS_RTK_MAC_CorrectionDifferencesReq_r15, _asn_ctx), - asn_MAP_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesReq_r15 = { - "GNSS-RTK-MAC-CorrectionDifferencesReq-r15", - "GNSS-RTK-MAC-CorrectionDifferencesReq-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_1, - 3, /* Elements count */ - &asn_SPC_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.c b/asn.1/generated/GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.c deleted file mode 100644 index 9ade43bb..00000000 --- a/asn.1/generated/GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.h" - -asn_TYPE_member_t asn_MBR_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_MAC_CorrectionDifferencesSupport_r15, link_combinations_support_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_Link_CombinationsList_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "link-combinations-support-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* link-combinations-support-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_specs_1 = { - sizeof(struct GNSS_RTK_MAC_CorrectionDifferencesSupport_r15), - offsetof(struct GNSS_RTK_MAC_CorrectionDifferencesSupport_r15, _asn_ctx), - asn_MAP_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15 = { - "GNSS-RTK-MAC-CorrectionDifferencesSupport-r15", - "GNSS-RTK-MAC-CorrectionDifferencesSupport-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_1, - 1, /* Elements count */ - &asn_SPC_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-Observations-r15.c b/asn.1/generated/GNSS-RTK-Observations-r15.c deleted file mode 100644 index 4b09cd68..00000000 --- a/asn.1/generated/GNSS-RTK-Observations-r15.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-Observations-r15.h" - -asn_TYPE_member_t asn_MBR_GNSS_RTK_Observations_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_Observations_r15, epochTime_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SystemTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "epochTime-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_Observations_r15, gnss_ObservationList_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ObservationList_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-ObservationList-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_Observations_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_Observations_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-ObservationList-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_Observations_r15_specs_1 = { - sizeof(struct GNSS_RTK_Observations_r15), - offsetof(struct GNSS_RTK_Observations_r15, _asn_ctx), - asn_MAP_GNSS_RTK_Observations_r15_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_Observations_r15 = { - "GNSS-RTK-Observations-r15", - "GNSS-RTK-Observations-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_Observations_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_Observations_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_Observations_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_Observations_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_Observations_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_Observations_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RTK_Observations_r15_1, - 2, /* Elements count */ - &asn_SPC_GNSS_RTK_Observations_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-ObservationsReq-r15.c b/asn.1/generated/GNSS-RTK-ObservationsReq-r15.c deleted file mode 100644 index 0215b979..00000000 --- a/asn.1/generated/GNSS-RTK-ObservationsReq-r15.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-ObservationsReq-r15.h" - -asn_TYPE_member_t asn_MBR_GNSS_RTK_ObservationsReq_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ObservationsReq_r15, gnss_RTK_SignalsReq_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalIDs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-SignalsReq-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ObservationsReq_r15, gnss_RTK_Integer_ms_Req_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-Integer-ms-Req-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ObservationsReq_r15, gnss_RTK_PhaseRangeRateReq_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-PhaseRangeRateReq-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ObservationsReq_r15, gnss_RTK_CNR_Req_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-RTK-CNR-Req-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_RTK_ObservationsReq_r15, stationID_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceStationID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "stationID-r15" - }, -}; -static const int asn_MAP_GNSS_RTK_ObservationsReq_r15_oms_1[] = { 4 }; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_ObservationsReq_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_ObservationsReq_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-RTK-SignalsReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-RTK-Integer-ms-Req-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-RTK-PhaseRangeRateReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-RTK-CNR-Req-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* stationID-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_ObservationsReq_r15_specs_1 = { - sizeof(struct GNSS_RTK_ObservationsReq_r15), - offsetof(struct GNSS_RTK_ObservationsReq_r15, _asn_ctx), - asn_MAP_GNSS_RTK_ObservationsReq_r15_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_GNSS_RTK_ObservationsReq_r15_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_ObservationsReq_r15 = { - "GNSS-RTK-ObservationsReq-r15", - "GNSS-RTK-ObservationsReq-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_ObservationsReq_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_ObservationsReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_ObservationsReq_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_ObservationsReq_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_ObservationsReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_ObservationsReq_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RTK_ObservationsReq_r15_1, - 5, /* Elements count */ - &asn_SPC_GNSS_RTK_ObservationsReq_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-ObservationsSupport-r15.c b/asn.1/generated/GNSS-RTK-ObservationsSupport-r15.c deleted file mode 100644 index 9e771cac..00000000 --- a/asn.1/generated/GNSS-RTK-ObservationsSupport-r15.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-ObservationsSupport-r15.h" - -asn_TYPE_member_t asn_MBR_GNSS_RTK_ObservationsSupport_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ObservationsSupport_r15, gnssSignalIDs_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalIDs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnssSignalIDs-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_ObservationsSupport_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_ObservationsSupport_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnssSignalIDs-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_ObservationsSupport_r15_specs_1 = { - sizeof(struct GNSS_RTK_ObservationsSupport_r15), - offsetof(struct GNSS_RTK_ObservationsSupport_r15, _asn_ctx), - asn_MAP_GNSS_RTK_ObservationsSupport_r15_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_ObservationsSupport_r15 = { - "GNSS-RTK-ObservationsSupport-r15", - "GNSS-RTK-ObservationsSupport-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_ObservationsSupport_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_ObservationsSupport_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_ObservationsSupport_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_ObservationsSupport_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_ObservationsSupport_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_ObservationsSupport_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RTK_ObservationsSupport_r15_1, - 1, /* Elements count */ - &asn_SPC_GNSS_RTK_ObservationsSupport_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-ReferenceStationInfo-r15.c b/asn.1/generated/GNSS-RTK-ReferenceStationInfo-r15.c deleted file mode 100644 index 5cc6a614..00000000 --- a/asn.1/generated/GNSS-RTK-ReferenceStationInfo-r15.c +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-ReferenceStationInfo-r15.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_antenna_reference_point_ECEF_X_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const INTEGER_t *st = (const INTEGER_t *)sptr; - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(asn_INTEGER2long(st, &value)) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value too large (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if((value >= -137438953472 && value <= 137438953471)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_antenna_reference_point_ECEF_Y_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const INTEGER_t *st = (const INTEGER_t *)sptr; - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(asn_INTEGER2long(st, &value)) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value too large (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if((value >= -137438953472 && value <= 137438953471)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_antenna_reference_point_ECEF_Z_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const INTEGER_t *st = (const INTEGER_t *)sptr; - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(asn_INTEGER2long(st, &value)) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value too large (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if((value >= -137438953472 && value <= 137438953471)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_antennaHeight_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_referenceStationIndicator_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_antenna_reference_point_ECEF_X_r15_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 38, -1, -137438953472, 137438953471 } /* (-137438953472..137438953471) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_antenna_reference_point_ECEF_Y_r15_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 38, -1, -137438953472, 137438953471 } /* (-137438953472..137438953471) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_antenna_reference_point_ECEF_Z_r15_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 38, -1, -137438953472, 137438953471 } /* (-137438953472..137438953471) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_antennaHeight_r15_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_referenceStationIndicator_r15_value2enum_3[] = { - { 0, 8, "physical" }, - { 1, 12, "non-physical" } -}; -static const unsigned int asn_MAP_referenceStationIndicator_r15_enum2value_3[] = { - 1, /* non-physical(1) */ - 0 /* physical(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_referenceStationIndicator_r15_specs_3 = { - asn_MAP_referenceStationIndicator_r15_value2enum_3, /* "tag" => N; sorted by tag */ - asn_MAP_referenceStationIndicator_r15_enum2value_3, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_referenceStationIndicator_r15_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_referenceStationIndicator_r15_3 = { - "referenceStationIndicator-r15", - "referenceStationIndicator-r15", - &asn_OP_NativeEnumerated, - asn_DEF_referenceStationIndicator_r15_tags_3, - sizeof(asn_DEF_referenceStationIndicator_r15_tags_3) - /sizeof(asn_DEF_referenceStationIndicator_r15_tags_3[0]) - 1, /* 1 */ - asn_DEF_referenceStationIndicator_r15_tags_3, /* Same as above */ - sizeof(asn_DEF_referenceStationIndicator_r15_tags_3) - /sizeof(asn_DEF_referenceStationIndicator_r15_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_referenceStationIndicator_r15_constr_3, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_referenceStationIndicator_r15_specs_3 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_14[] = { - { ATF_POINTER, 1, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15__ext1, equalIntegerAmbiguityLevel_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_EqualIntegerAmbiguityLevel_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "equalIntegerAmbiguityLevel-r16" - }, -}; -static const int asn_MAP_ext1_oms_14[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_14[] = { - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_14[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* equalIntegerAmbiguityLevel-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_14 = { - sizeof(struct GNSS_RTK_ReferenceStationInfo_r15__ext1), - offsetof(struct GNSS_RTK_ReferenceStationInfo_r15__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_14, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_14, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_14 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_14, - sizeof(asn_DEF_ext1_tags_14) - /sizeof(asn_DEF_ext1_tags_14[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_14, /* Same as above */ - sizeof(asn_DEF_ext1_tags_14) - /sizeof(asn_DEF_ext1_tags_14[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_14, - 1, /* Elements count */ - &asn_SPC_ext1_specs_14 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_RTK_ReferenceStationInfo_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, referenceStationID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceStationID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceStationID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, referenceStationIndicator_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_referenceStationIndicator_r15_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceStationIndicator-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, antenna_reference_point_ECEF_X_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_INTEGER, - 0, - { 0, &asn_PER_memb_antenna_reference_point_ECEF_X_r15_constr_6, memb_antenna_reference_point_ECEF_X_r15_constraint_1 }, - 0, 0, /* No default value */ - "antenna-reference-point-ECEF-X-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, antenna_reference_point_ECEF_Y_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_INTEGER, - 0, - { 0, &asn_PER_memb_antenna_reference_point_ECEF_Y_r15_constr_7, memb_antenna_reference_point_ECEF_Y_r15_constraint_1 }, - 0, 0, /* No default value */ - "antenna-reference-point-ECEF-Y-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, antenna_reference_point_ECEF_Z_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_INTEGER, - 0, - { 0, &asn_PER_memb_antenna_reference_point_ECEF_Z_r15_constr_8, memb_antenna_reference_point_ECEF_Z_r15_constraint_1 }, - 0, 0, /* No default value */ - "antenna-reference-point-ECEF-Z-r15" - }, - { ATF_POINTER, 5, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, antennaHeight_r15), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_antennaHeight_r15_constr_9, memb_antennaHeight_r15_constraint_1 }, - 0, 0, /* No default value */ - "antennaHeight-r15" - }, - { ATF_POINTER, 4, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, antennaDescription_r15), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AntennaDescription_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "antennaDescription-r15" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, antenna_reference_point_unc_r15), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AntennaReferencePointUnc_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "antenna-reference-point-unc-r15" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, physical_reference_station_info_r15), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PhysicalReferenceStationInfo_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "physical-reference-station-info-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, ext1), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - 0, - &asn_DEF_ext1_14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_GNSS_RTK_ReferenceStationInfo_r15_oms_1[] = { 5, 6, 7, 8, 9 }; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_ReferenceStationInfo_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_ReferenceStationInfo_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceStationID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* referenceStationIndicator-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* antenna-reference-point-ECEF-X-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* antenna-reference-point-ECEF-Y-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* antenna-reference-point-ECEF-Z-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* antennaHeight-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* antennaDescription-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* antenna-reference-point-unc-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* physical-reference-station-info-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_ReferenceStationInfo_r15_specs_1 = { - sizeof(struct GNSS_RTK_ReferenceStationInfo_r15), - offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, _asn_ctx), - asn_MAP_GNSS_RTK_ReferenceStationInfo_r15_tag2el_1, - 10, /* Count of tags in the map */ - asn_MAP_GNSS_RTK_ReferenceStationInfo_r15_oms_1, /* Optional members */ - 4, 1, /* Root/Additions */ - 9, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_ReferenceStationInfo_r15 = { - "GNSS-RTK-ReferenceStationInfo-r15", - "GNSS-RTK-ReferenceStationInfo-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_ReferenceStationInfo_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfo_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfo_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_ReferenceStationInfo_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfo_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfo_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RTK_ReferenceStationInfo_r15_1, - 10, /* Elements count */ - &asn_SPC_GNSS_RTK_ReferenceStationInfo_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-ReferenceStationInfoReq-r15.c b/asn.1/generated/GNSS-RTK-ReferenceStationInfoReq-r15.c deleted file mode 100644 index 3ffab406..00000000 --- a/asn.1/generated/GNSS-RTK-ReferenceStationInfoReq-r15.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-ReferenceStationInfoReq-r15.h" - -asn_TYPE_member_t asn_MBR_GNSS_RTK_ReferenceStationInfoReq_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ReferenceStationInfoReq_r15, antennaDescriptionReq_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "antennaDescriptionReq-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ReferenceStationInfoReq_r15, antennaHeightReq_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "antennaHeightReq-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ReferenceStationInfoReq_r15, physicalReferenceStationReq_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "physicalReferenceStationReq-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_RTK_ReferenceStationInfoReq_r15, stationID_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceStationID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "stationID-r15" - }, -}; -static const int asn_MAP_GNSS_RTK_ReferenceStationInfoReq_r15_oms_1[] = { 3 }; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_ReferenceStationInfoReq_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_ReferenceStationInfoReq_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* antennaDescriptionReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* antennaHeightReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* physicalReferenceStationReq-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* stationID-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_ReferenceStationInfoReq_r15_specs_1 = { - sizeof(struct GNSS_RTK_ReferenceStationInfoReq_r15), - offsetof(struct GNSS_RTK_ReferenceStationInfoReq_r15, _asn_ctx), - asn_MAP_GNSS_RTK_ReferenceStationInfoReq_r15_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_GNSS_RTK_ReferenceStationInfoReq_r15_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_ReferenceStationInfoReq_r15 = { - "GNSS-RTK-ReferenceStationInfoReq-r15", - "GNSS-RTK-ReferenceStationInfoReq-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_ReferenceStationInfoReq_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfoReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfoReq_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_ReferenceStationInfoReq_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfoReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfoReq_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RTK_ReferenceStationInfoReq_r15_1, - 4, /* Elements count */ - &asn_SPC_GNSS_RTK_ReferenceStationInfoReq_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-ReferenceStationInfoSupport-r15.c b/asn.1/generated/GNSS-RTK-ReferenceStationInfoSupport-r15.c deleted file mode 100644 index b9b6dac8..00000000 --- a/asn.1/generated/GNSS-RTK-ReferenceStationInfoSupport-r15.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-ReferenceStationInfoSupport-r15.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_ReferenceStationInfoSupport_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_ReferenceStationInfoSupport_r15_specs_1 = { - sizeof(struct GNSS_RTK_ReferenceStationInfoSupport_r15), - offsetof(struct GNSS_RTK_ReferenceStationInfoSupport_r15, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_ReferenceStationInfoSupport_r15 = { - "GNSS-RTK-ReferenceStationInfoSupport-r15", - "GNSS-RTK-ReferenceStationInfoSupport-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_ReferenceStationInfoSupport_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfoSupport_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfoSupport_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_ReferenceStationInfoSupport_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfoSupport_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfoSupport_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_RTK_ReferenceStationInfoSupport_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-Residuals-r15.c b/asn.1/generated/GNSS-RTK-Residuals-r15.c deleted file mode 100644 index 7a811c4e..00000000 --- a/asn.1/generated/GNSS-RTK-Residuals-r15.c +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-Residuals-r15.h" - -static int -memb_n_Refs_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_n_Refs_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_RTK_Residuals_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_Residuals_r15, epochTime_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SystemTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "epochTime-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_Residuals_r15, referenceStationID_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceStationID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceStationID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_Residuals_r15, n_Refs_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n_Refs_r15_constr_4, memb_n_Refs_r15_constraint_1 }, - 0, 0, /* No default value */ - "n-Refs-r15" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_RTK_Residuals_r15, l1_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_FrequencyID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "l1-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_RTK_Residuals_r15, l2_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_FrequencyID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "l2-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_Residuals_r15, rtk_residuals_list_r15), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RTK_Residuals_List_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rtk-residuals-list-r15" - }, -}; -static const int asn_MAP_GNSS_RTK_Residuals_r15_oms_1[] = { 3, 4 }; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_Residuals_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_Residuals_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* referenceStationID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* n-Refs-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* l1-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* l2-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* rtk-residuals-list-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_Residuals_r15_specs_1 = { - sizeof(struct GNSS_RTK_Residuals_r15), - offsetof(struct GNSS_RTK_Residuals_r15, _asn_ctx), - asn_MAP_GNSS_RTK_Residuals_r15_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_GNSS_RTK_Residuals_r15_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_Residuals_r15 = { - "GNSS-RTK-Residuals-r15", - "GNSS-RTK-Residuals-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_Residuals_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_Residuals_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_Residuals_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_Residuals_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_Residuals_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_Residuals_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RTK_Residuals_r15_1, - 6, /* Elements count */ - &asn_SPC_GNSS_RTK_Residuals_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-ResidualsReq-r15.c b/asn.1/generated/GNSS-RTK-ResidualsReq-r15.c deleted file mode 100644 index 8c262e69..00000000 --- a/asn.1/generated/GNSS-RTK-ResidualsReq-r15.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-ResidualsReq-r15.h" - -asn_TYPE_member_t asn_MBR_GNSS_RTK_ResidualsReq_r15_1[] = { - { ATF_POINTER, 2, offsetof(struct GNSS_RTK_ResidualsReq_r15, stationID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceStationID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "stationID-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_RTK_ResidualsReq_r15, linkCombinations_PrefList_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_Link_CombinationsList_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "linkCombinations-PrefList-r15" - }, -}; -static const int asn_MAP_GNSS_RTK_ResidualsReq_r15_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_ResidualsReq_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_ResidualsReq_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* stationID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* linkCombinations-PrefList-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_ResidualsReq_r15_specs_1 = { - sizeof(struct GNSS_RTK_ResidualsReq_r15), - offsetof(struct GNSS_RTK_ResidualsReq_r15, _asn_ctx), - asn_MAP_GNSS_RTK_ResidualsReq_r15_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_GNSS_RTK_ResidualsReq_r15_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_ResidualsReq_r15 = { - "GNSS-RTK-ResidualsReq-r15", - "GNSS-RTK-ResidualsReq-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_ResidualsReq_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_ResidualsReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_ResidualsReq_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_ResidualsReq_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_ResidualsReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_ResidualsReq_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RTK_ResidualsReq_r15_1, - 2, /* Elements count */ - &asn_SPC_GNSS_RTK_ResidualsReq_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-ResidualsReq-r15.h b/asn.1/generated/GNSS-RTK-ResidualsReq-r15.h deleted file mode 100644 index b0a3f34b..00000000 --- a/asn.1/generated/GNSS-RTK-ResidualsReq-r15.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_RTK_ResidualsReq_r15_H_ -#define _GNSS_RTK_ResidualsReq_r15_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct GNSS_ReferenceStationID_r15; -struct GNSS_Link_CombinationsList_r15; - -/* GNSS-RTK-ResidualsReq-r15 */ -typedef struct GNSS_RTK_ResidualsReq_r15 { - struct GNSS_ReferenceStationID_r15 *stationID_r15 /* OPTIONAL */; - struct GNSS_Link_CombinationsList_r15 *linkCombinations_PrefList_r15 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_RTK_ResidualsReq_r15_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_ResidualsReq_r15; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_ResidualsReq_r15_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_RTK_ResidualsReq_r15_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GNSS-ReferenceStationID-r15.h" -#include "GNSS-Link-CombinationsList-r15.h" - -#endif /* _GNSS_RTK_ResidualsReq_r15_H_ */ -#include diff --git a/asn.1/generated/GNSS-RTK-ResidualsSupport-r15.c b/asn.1/generated/GNSS-RTK-ResidualsSupport-r15.c deleted file mode 100644 index 47cd4abb..00000000 --- a/asn.1/generated/GNSS-RTK-ResidualsSupport-r15.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-ResidualsSupport-r15.h" - -asn_TYPE_member_t asn_MBR_GNSS_RTK_ResidualsSupport_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ResidualsSupport_r15, link_combinations_support_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_Link_CombinationsList_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "link-combinations-support-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_ResidualsSupport_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_ResidualsSupport_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* link-combinations-support-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_ResidualsSupport_r15_specs_1 = { - sizeof(struct GNSS_RTK_ResidualsSupport_r15), - offsetof(struct GNSS_RTK_ResidualsSupport_r15, _asn_ctx), - asn_MAP_GNSS_RTK_ResidualsSupport_r15_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_ResidualsSupport_r15 = { - "GNSS-RTK-ResidualsSupport-r15", - "GNSS-RTK-ResidualsSupport-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_ResidualsSupport_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_ResidualsSupport_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_ResidualsSupport_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_ResidualsSupport_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_ResidualsSupport_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_ResidualsSupport_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RTK_ResidualsSupport_r15_1, - 1, /* Elements count */ - &asn_SPC_GNSS_RTK_ResidualsSupport_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-SatelliteDataElement-r15.c b/asn.1/generated/GNSS-RTK-SatelliteDataElement-r15.c deleted file mode 100644 index dec49361..00000000 --- a/asn.1/generated/GNSS-RTK-SatelliteDataElement-r15.c +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-SatelliteDataElement-r15.h" - -static int -memb_integer_ms_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 254)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_rough_range_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_rough_phase_range_rate_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8192 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_integer_ms_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 254 } /* (0..254) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_rough_range_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_rough_phase_range_rate_r15_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_RTK_SatelliteDataElement_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_SatelliteDataElement_r15, svID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_RTK_SatelliteDataElement_r15, integer_ms_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_integer_ms_r15_constr_3, memb_integer_ms_r15_constraint_1 }, - 0, 0, /* No default value */ - "integer-ms-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_SatelliteDataElement_r15, rough_range_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rough_range_r15_constr_4, memb_rough_range_r15_constraint_1 }, - 0, 0, /* No default value */ - "rough-range-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_RTK_SatelliteDataElement_r15, rough_phase_range_rate_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rough_phase_range_rate_r15_constr_5, memb_rough_phase_range_rate_r15_constraint_1 }, - 0, 0, /* No default value */ - "rough-phase-range-rate-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_SatelliteDataElement_r15, gnss_rtk_SatelliteSignalDataList_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_RTK_SatelliteSignalDataList_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-rtk-SatelliteSignalDataList-r15" - }, -}; -static const int asn_MAP_GNSS_RTK_SatelliteDataElement_r15_oms_1[] = { 1, 3 }; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_SatelliteDataElement_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_SatelliteDataElement_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* integer-ms-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* rough-range-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* rough-phase-range-rate-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* gnss-rtk-SatelliteSignalDataList-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_SatelliteDataElement_r15_specs_1 = { - sizeof(struct GNSS_RTK_SatelliteDataElement_r15), - offsetof(struct GNSS_RTK_SatelliteDataElement_r15, _asn_ctx), - asn_MAP_GNSS_RTK_SatelliteDataElement_r15_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_GNSS_RTK_SatelliteDataElement_r15_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_SatelliteDataElement_r15 = { - "GNSS-RTK-SatelliteDataElement-r15", - "GNSS-RTK-SatelliteDataElement-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_SatelliteDataElement_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_SatelliteDataElement_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_SatelliteDataElement_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_SatelliteDataElement_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_SatelliteDataElement_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_SatelliteDataElement_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RTK_SatelliteDataElement_r15_1, - 5, /* Elements count */ - &asn_SPC_GNSS_RTK_SatelliteDataElement_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-SatelliteSignalDataElement-r15.c b/asn.1/generated/GNSS-RTK-SatelliteSignalDataElement-r15.c deleted file mode 100644 index fe5a9d3f..00000000 --- a/asn.1/generated/GNSS-RTK-SatelliteSignalDataElement-r15.c +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-SatelliteSignalDataElement-r15.h" - -static int -memb_fine_PseudoRange_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -524288 && value <= 524287)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_fine_PhaseRange_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_lockTimeIndicator_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_halfCycleAmbiguityIndicator_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_carrier_to_noise_ratio_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_fine_PhaseRangeRate_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16384 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_fine_PseudoRange_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 20, -1, -524288, 524287 } /* (-524288..524287) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_fine_PhaseRange_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_lockTimeIndicator_r15_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_halfCycleAmbiguityIndicator_r15_constr_6 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (SIZE(1..1)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_carrier_to_noise_ratio_r15_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_fine_PhaseRangeRate_r15_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_RTK_SatelliteSignalDataElement_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_SatelliteSignalDataElement_r15, gnss_SignalID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SignalID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_SatelliteSignalDataElement_r15, fine_PseudoRange_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_fine_PseudoRange_r15_constr_3, memb_fine_PseudoRange_r15_constraint_1 }, - 0, 0, /* No default value */ - "fine-PseudoRange-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_SatelliteSignalDataElement_r15, fine_PhaseRange_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_fine_PhaseRange_r15_constr_4, memb_fine_PhaseRange_r15_constraint_1 }, - 0, 0, /* No default value */ - "fine-PhaseRange-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_SatelliteSignalDataElement_r15, lockTimeIndicator_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_lockTimeIndicator_r15_constr_5, memb_lockTimeIndicator_r15_constraint_1 }, - 0, 0, /* No default value */ - "lockTimeIndicator-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_SatelliteSignalDataElement_r15, halfCycleAmbiguityIndicator_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_halfCycleAmbiguityIndicator_r15_constr_6, memb_halfCycleAmbiguityIndicator_r15_constraint_1 }, - 0, 0, /* No default value */ - "halfCycleAmbiguityIndicator-r15" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_RTK_SatelliteSignalDataElement_r15, carrier_to_noise_ratio_r15), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_carrier_to_noise_ratio_r15_constr_7, memb_carrier_to_noise_ratio_r15_constraint_1 }, - 0, 0, /* No default value */ - "carrier-to-noise-ratio-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_RTK_SatelliteSignalDataElement_r15, fine_PhaseRangeRate_r15), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_fine_PhaseRangeRate_r15_constr_8, memb_fine_PhaseRangeRate_r15_constraint_1 }, - 0, 0, /* No default value */ - "fine-PhaseRangeRate-r15" - }, -}; -static const int asn_MAP_GNSS_RTK_SatelliteSignalDataElement_r15_oms_1[] = { 5, 6 }; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_SatelliteSignalDataElement_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_SatelliteSignalDataElement_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SignalID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* fine-PseudoRange-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* fine-PhaseRange-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* lockTimeIndicator-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* halfCycleAmbiguityIndicator-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* carrier-to-noise-ratio-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* fine-PhaseRangeRate-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_SatelliteSignalDataElement_r15_specs_1 = { - sizeof(struct GNSS_RTK_SatelliteSignalDataElement_r15), - offsetof(struct GNSS_RTK_SatelliteSignalDataElement_r15, _asn_ctx), - asn_MAP_GNSS_RTK_SatelliteSignalDataElement_r15_tag2el_1, - 7, /* Count of tags in the map */ - asn_MAP_GNSS_RTK_SatelliteSignalDataElement_r15_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 7, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_SatelliteSignalDataElement_r15 = { - "GNSS-RTK-SatelliteSignalDataElement-r15", - "GNSS-RTK-SatelliteSignalDataElement-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RTK_SatelliteSignalDataElement_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_SatelliteSignalDataElement_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_SatelliteSignalDataElement_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_SatelliteSignalDataElement_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_SatelliteSignalDataElement_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_SatelliteSignalDataElement_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RTK_SatelliteSignalDataElement_r15_1, - 7, /* Elements count */ - &asn_SPC_GNSS_RTK_SatelliteSignalDataElement_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RTK-SatelliteSignalDataList-r15.c b/asn.1/generated/GNSS-RTK-SatelliteSignalDataList-r15.c deleted file mode 100644 index 32523db0..00000000 --- a/asn.1/generated/GNSS-RTK-SatelliteSignalDataList-r15.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RTK-SatelliteSignalDataList-r15.h" - -asn_per_constraints_t asn_PER_type_GNSS_RTK_SatelliteSignalDataList_r15_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 24 } /* (SIZE(1..24)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_RTK_SatelliteSignalDataList_r15_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_RTK_SatelliteSignalDataElement_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_RTK_SatelliteSignalDataList_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_RTK_SatelliteSignalDataList_r15_specs_1 = { - sizeof(struct GNSS_RTK_SatelliteSignalDataList_r15), - offsetof(struct GNSS_RTK_SatelliteSignalDataList_r15, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_SatelliteSignalDataList_r15 = { - "GNSS-RTK-SatelliteSignalDataList-r15", - "GNSS-RTK-SatelliteSignalDataList-r15", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_RTK_SatelliteSignalDataList_r15_tags_1, - sizeof(asn_DEF_GNSS_RTK_SatelliteSignalDataList_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_SatelliteSignalDataList_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RTK_SatelliteSignalDataList_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RTK_SatelliteSignalDataList_r15_tags_1) - /sizeof(asn_DEF_GNSS_RTK_SatelliteSignalDataList_r15_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_RTK_SatelliteSignalDataList_r15_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_RTK_SatelliteSignalDataList_r15_1, - 1, /* Single element */ - &asn_SPC_GNSS_RTK_SatelliteSignalDataList_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RealTimeIntegrity.c b/asn.1/generated/GNSS-RealTimeIntegrity.c deleted file mode 100644 index 1a86c633..00000000 --- a/asn.1/generated/GNSS-RealTimeIntegrity.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RealTimeIntegrity.h" - -asn_TYPE_member_t asn_MBR_GNSS_RealTimeIntegrity_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_RealTimeIntegrity, gnss_BadSignalList), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_BadSignalList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-BadSignalList" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_RealTimeIntegrity_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_RealTimeIntegrity_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-BadSignalList */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RealTimeIntegrity_specs_1 = { - sizeof(struct GNSS_RealTimeIntegrity), - offsetof(struct GNSS_RealTimeIntegrity, _asn_ctx), - asn_MAP_GNSS_RealTimeIntegrity_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RealTimeIntegrity = { - "GNSS-RealTimeIntegrity", - "GNSS-RealTimeIntegrity", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RealTimeIntegrity_tags_1, - sizeof(asn_DEF_GNSS_RealTimeIntegrity_tags_1) - /sizeof(asn_DEF_GNSS_RealTimeIntegrity_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RealTimeIntegrity_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RealTimeIntegrity_tags_1) - /sizeof(asn_DEF_GNSS_RealTimeIntegrity_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_RealTimeIntegrity_1, - 1, /* Elements count */ - &asn_SPC_GNSS_RealTimeIntegrity_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RealTimeIntegrityReq.c b/asn.1/generated/GNSS-RealTimeIntegrityReq.c deleted file mode 100644 index 47424e06..00000000 --- a/asn.1/generated/GNSS-RealTimeIntegrityReq.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RealTimeIntegrityReq.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_RealTimeIntegrityReq_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RealTimeIntegrityReq_specs_1 = { - sizeof(struct GNSS_RealTimeIntegrityReq), - offsetof(struct GNSS_RealTimeIntegrityReq, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RealTimeIntegrityReq = { - "GNSS-RealTimeIntegrityReq", - "GNSS-RealTimeIntegrityReq", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RealTimeIntegrityReq_tags_1, - sizeof(asn_DEF_GNSS_RealTimeIntegrityReq_tags_1) - /sizeof(asn_DEF_GNSS_RealTimeIntegrityReq_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RealTimeIntegrityReq_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RealTimeIntegrityReq_tags_1) - /sizeof(asn_DEF_GNSS_RealTimeIntegrityReq_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_RealTimeIntegrityReq_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-RealTimeIntegritySupport.c b/asn.1/generated/GNSS-RealTimeIntegritySupport.c deleted file mode 100644 index cccb9885..00000000 --- a/asn.1/generated/GNSS-RealTimeIntegritySupport.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-RealTimeIntegritySupport.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_RealTimeIntegritySupport_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_RealTimeIntegritySupport_specs_1 = { - sizeof(struct GNSS_RealTimeIntegritySupport), - offsetof(struct GNSS_RealTimeIntegritySupport, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_RealTimeIntegritySupport = { - "GNSS-RealTimeIntegritySupport", - "GNSS-RealTimeIntegritySupport", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_RealTimeIntegritySupport_tags_1, - sizeof(asn_DEF_GNSS_RealTimeIntegritySupport_tags_1) - /sizeof(asn_DEF_GNSS_RealTimeIntegritySupport_tags_1[0]), /* 1 */ - asn_DEF_GNSS_RealTimeIntegritySupport_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_RealTimeIntegritySupport_tags_1) - /sizeof(asn_DEF_GNSS_RealTimeIntegritySupport_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_RealTimeIntegritySupport_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-ReferenceLocation.c b/asn.1/generated/GNSS-ReferenceLocation.c deleted file mode 100644 index 7d319ec6..00000000 --- a/asn.1/generated/GNSS-ReferenceLocation.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-ReferenceLocation.h" - -asn_TYPE_member_t asn_MBR_GNSS_ReferenceLocation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ReferenceLocation, threeDlocation), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "threeDlocation" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_ReferenceLocation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_ReferenceLocation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* threeDlocation */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_ReferenceLocation_specs_1 = { - sizeof(struct GNSS_ReferenceLocation), - offsetof(struct GNSS_ReferenceLocation, _asn_ctx), - asn_MAP_GNSS_ReferenceLocation_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_ReferenceLocation = { - "GNSS-ReferenceLocation", - "GNSS-ReferenceLocation", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_ReferenceLocation_tags_1, - sizeof(asn_DEF_GNSS_ReferenceLocation_tags_1) - /sizeof(asn_DEF_GNSS_ReferenceLocation_tags_1[0]), /* 1 */ - asn_DEF_GNSS_ReferenceLocation_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_ReferenceLocation_tags_1) - /sizeof(asn_DEF_GNSS_ReferenceLocation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_ReferenceLocation_1, - 1, /* Elements count */ - &asn_SPC_GNSS_ReferenceLocation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-ReferenceLocationReq.c b/asn.1/generated/GNSS-ReferenceLocationReq.c deleted file mode 100644 index 7ed695ac..00000000 --- a/asn.1/generated/GNSS-ReferenceLocationReq.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-ReferenceLocationReq.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_ReferenceLocationReq_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_ReferenceLocationReq_specs_1 = { - sizeof(struct GNSS_ReferenceLocationReq), - offsetof(struct GNSS_ReferenceLocationReq, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_ReferenceLocationReq = { - "GNSS-ReferenceLocationReq", - "GNSS-ReferenceLocationReq", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_ReferenceLocationReq_tags_1, - sizeof(asn_DEF_GNSS_ReferenceLocationReq_tags_1) - /sizeof(asn_DEF_GNSS_ReferenceLocationReq_tags_1[0]), /* 1 */ - asn_DEF_GNSS_ReferenceLocationReq_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_ReferenceLocationReq_tags_1) - /sizeof(asn_DEF_GNSS_ReferenceLocationReq_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_ReferenceLocationReq_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-ReferenceLocationSupport.c b/asn.1/generated/GNSS-ReferenceLocationSupport.c deleted file mode 100644 index 58be4dde..00000000 --- a/asn.1/generated/GNSS-ReferenceLocationSupport.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-ReferenceLocationSupport.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_ReferenceLocationSupport_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_ReferenceLocationSupport_specs_1 = { - sizeof(struct GNSS_ReferenceLocationSupport), - offsetof(struct GNSS_ReferenceLocationSupport, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_ReferenceLocationSupport = { - "GNSS-ReferenceLocationSupport", - "GNSS-ReferenceLocationSupport", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_ReferenceLocationSupport_tags_1, - sizeof(asn_DEF_GNSS_ReferenceLocationSupport_tags_1) - /sizeof(asn_DEF_GNSS_ReferenceLocationSupport_tags_1[0]), /* 1 */ - asn_DEF_GNSS_ReferenceLocationSupport_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_ReferenceLocationSupport_tags_1) - /sizeof(asn_DEF_GNSS_ReferenceLocationSupport_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_ReferenceLocationSupport_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-ReferenceStationID-r15.c b/asn.1/generated/GNSS-ReferenceStationID-r15.c deleted file mode 100644 index cc90cf42..00000000 --- a/asn.1/generated/GNSS-ReferenceStationID-r15.c +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-ReferenceStationID-r15.h" - -static int check_permitted_alphabet_3(const void *sptr) { - /* The underlying type is VisibleString */ - const VisibleString_t *st = (const VisibleString_t *)sptr; - const uint8_t *ch = st->buf; - const uint8_t *end = ch + st->size; - - for(; ch < end; ch++) { - uint8_t cv = *ch; - if(!(cv >= 32 && cv <= 126)) return -1; - } - return 0; -} - -static int -memb_referenceStationID_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_providerName_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const VisibleString_t *st = (const VisibleString_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size >= 1 && size <= 32) - && !check_permitted_alphabet_3(st)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_referenceStationID_r15_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_providerName_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 32, 126 } /* (32..126) */, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER character map necessary */ -}; -asn_TYPE_member_t asn_MBR_GNSS_ReferenceStationID_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ReferenceStationID_r15, referenceStationID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_referenceStationID_r15_constr_2, memb_referenceStationID_r15_constraint_1 }, - 0, 0, /* No default value */ - "referenceStationID-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_ReferenceStationID_r15, providerName_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VisibleString, - 0, - { 0, &asn_PER_memb_providerName_r15_constr_3, memb_providerName_r15_constraint_1 }, - 0, 0, /* No default value */ - "providerName-r15" - }, -}; -static const int asn_MAP_GNSS_ReferenceStationID_r15_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_GNSS_ReferenceStationID_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_ReferenceStationID_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceStationID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* providerName-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_ReferenceStationID_r15_specs_1 = { - sizeof(struct GNSS_ReferenceStationID_r15), - offsetof(struct GNSS_ReferenceStationID_r15, _asn_ctx), - asn_MAP_GNSS_ReferenceStationID_r15_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_GNSS_ReferenceStationID_r15_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_ReferenceStationID_r15 = { - "GNSS-ReferenceStationID-r15", - "GNSS-ReferenceStationID-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_ReferenceStationID_r15_tags_1, - sizeof(asn_DEF_GNSS_ReferenceStationID_r15_tags_1) - /sizeof(asn_DEF_GNSS_ReferenceStationID_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_ReferenceStationID_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_ReferenceStationID_r15_tags_1) - /sizeof(asn_DEF_GNSS_ReferenceStationID_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_ReferenceStationID_r15_1, - 2, /* Elements count */ - &asn_SPC_GNSS_ReferenceStationID_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-ReferenceTime.c b/asn.1/generated/GNSS-ReferenceTime.c deleted file mode 100644 index e8c2b58f..00000000 --- a/asn.1/generated/GNSS-ReferenceTime.c +++ /dev/null @@ -1,175 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-ReferenceTime.h" - -static int -memb_referenceTimeUnc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gnss_ReferenceTimeForCells_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 16)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_gnss_ReferenceTimeForCells_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_referenceTimeUnc_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_ReferenceTimeForCells_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_gnss_ReferenceTimeForCells_4[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_ReferenceTimeForOneCell, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_gnss_ReferenceTimeForCells_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_gnss_ReferenceTimeForCells_specs_4 = { - sizeof(struct GNSS_ReferenceTime__gnss_ReferenceTimeForCells), - offsetof(struct GNSS_ReferenceTime__gnss_ReferenceTimeForCells, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_gnss_ReferenceTimeForCells_4 = { - "gnss-ReferenceTimeForCells", - "gnss-ReferenceTimeForCells", - &asn_OP_SEQUENCE_OF, - asn_DEF_gnss_ReferenceTimeForCells_tags_4, - sizeof(asn_DEF_gnss_ReferenceTimeForCells_tags_4) - /sizeof(asn_DEF_gnss_ReferenceTimeForCells_tags_4[0]) - 1, /* 1 */ - asn_DEF_gnss_ReferenceTimeForCells_tags_4, /* Same as above */ - sizeof(asn_DEF_gnss_ReferenceTimeForCells_tags_4) - /sizeof(asn_DEF_gnss_ReferenceTimeForCells_tags_4[0]), /* 2 */ - { 0, &asn_PER_type_gnss_ReferenceTimeForCells_constr_4, SEQUENCE_OF_constraint }, - asn_MBR_gnss_ReferenceTimeForCells_4, - 1, /* Single element */ - &asn_SPC_gnss_ReferenceTimeForCells_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_ReferenceTime_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ReferenceTime, gnss_SystemTime), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SystemTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SystemTime" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_ReferenceTime, referenceTimeUnc), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_referenceTimeUnc_constr_3, memb_referenceTimeUnc_constraint_1 }, - 0, 0, /* No default value */ - "referenceTimeUnc" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_ReferenceTime, gnss_ReferenceTimeForCells), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_gnss_ReferenceTimeForCells_4, - 0, - { 0, &asn_PER_memb_gnss_ReferenceTimeForCells_constr_4, memb_gnss_ReferenceTimeForCells_constraint_1 }, - 0, 0, /* No default value */ - "gnss-ReferenceTimeForCells" - }, -}; -static const int asn_MAP_GNSS_ReferenceTime_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_GNSS_ReferenceTime_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_ReferenceTime_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SystemTime */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* referenceTimeUnc */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gnss-ReferenceTimeForCells */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_ReferenceTime_specs_1 = { - sizeof(struct GNSS_ReferenceTime), - offsetof(struct GNSS_ReferenceTime, _asn_ctx), - asn_MAP_GNSS_ReferenceTime_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_GNSS_ReferenceTime_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_ReferenceTime = { - "GNSS-ReferenceTime", - "GNSS-ReferenceTime", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_ReferenceTime_tags_1, - sizeof(asn_DEF_GNSS_ReferenceTime_tags_1) - /sizeof(asn_DEF_GNSS_ReferenceTime_tags_1[0]), /* 1 */ - asn_DEF_GNSS_ReferenceTime_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_ReferenceTime_tags_1) - /sizeof(asn_DEF_GNSS_ReferenceTime_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_ReferenceTime_1, - 3, /* Elements count */ - &asn_SPC_GNSS_ReferenceTime_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-ReferenceTimeForOneCell.c b/asn.1/generated/GNSS-ReferenceTimeForOneCell.c deleted file mode 100644 index e1e83aff..00000000 --- a/asn.1/generated/GNSS-ReferenceTimeForOneCell.c +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-ReferenceTimeForOneCell.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_referenceTimeUnc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_bsAlign_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_referenceTimeUnc_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_bsAlign_value2enum_4[] = { - { 0, 4, "true" } -}; -static const unsigned int asn_MAP_bsAlign_enum2value_4[] = { - 0 /* true(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_bsAlign_specs_4 = { - asn_MAP_bsAlign_value2enum_4, /* "tag" => N; sorted by tag */ - asn_MAP_bsAlign_enum2value_4, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_bsAlign_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_bsAlign_4 = { - "bsAlign", - "bsAlign", - &asn_OP_NativeEnumerated, - asn_DEF_bsAlign_tags_4, - sizeof(asn_DEF_bsAlign_tags_4) - /sizeof(asn_DEF_bsAlign_tags_4[0]) - 1, /* 1 */ - asn_DEF_bsAlign_tags_4, /* Same as above */ - sizeof(asn_DEF_bsAlign_tags_4) - /sizeof(asn_DEF_bsAlign_tags_4[0]), /* 2 */ - { 0, &asn_PER_type_bsAlign_constr_4, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_bsAlign_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_ReferenceTimeForOneCell_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ReferenceTimeForOneCell, networkTime), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NetworkTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "networkTime" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ReferenceTimeForOneCell, referenceTimeUnc), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_referenceTimeUnc_constr_3, memb_referenceTimeUnc_constraint_1 }, - 0, 0, /* No default value */ - "referenceTimeUnc" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_ReferenceTimeForOneCell, bsAlign), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_bsAlign_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bsAlign" - }, -}; -static const int asn_MAP_GNSS_ReferenceTimeForOneCell_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_GNSS_ReferenceTimeForOneCell_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_ReferenceTimeForOneCell_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* networkTime */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* referenceTimeUnc */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* bsAlign */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_ReferenceTimeForOneCell_specs_1 = { - sizeof(struct GNSS_ReferenceTimeForOneCell), - offsetof(struct GNSS_ReferenceTimeForOneCell, _asn_ctx), - asn_MAP_GNSS_ReferenceTimeForOneCell_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_GNSS_ReferenceTimeForOneCell_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_ReferenceTimeForOneCell = { - "GNSS-ReferenceTimeForOneCell", - "GNSS-ReferenceTimeForOneCell", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_ReferenceTimeForOneCell_tags_1, - sizeof(asn_DEF_GNSS_ReferenceTimeForOneCell_tags_1) - /sizeof(asn_DEF_GNSS_ReferenceTimeForOneCell_tags_1[0]), /* 1 */ - asn_DEF_GNSS_ReferenceTimeForOneCell_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_ReferenceTimeForOneCell_tags_1) - /sizeof(asn_DEF_GNSS_ReferenceTimeForOneCell_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_ReferenceTimeForOneCell_1, - 3, /* Elements count */ - &asn_SPC_GNSS_ReferenceTimeForOneCell_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-ReferenceTimeReq.c b/asn.1/generated/GNSS-ReferenceTimeReq.c deleted file mode 100644 index f8de5550..00000000 --- a/asn.1/generated/GNSS-ReferenceTimeReq.c +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-ReferenceTimeReq.h" - -static int -memb_gnss_TimeReqPrefList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 8)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_gnss_TimeReqPrefList_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_TimeReqPrefList_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_gnss_TimeReqPrefList_2[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_gnss_TimeReqPrefList_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_gnss_TimeReqPrefList_specs_2 = { - sizeof(struct GNSS_ReferenceTimeReq__gnss_TimeReqPrefList), - offsetof(struct GNSS_ReferenceTimeReq__gnss_TimeReqPrefList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_gnss_TimeReqPrefList_2 = { - "gnss-TimeReqPrefList", - "gnss-TimeReqPrefList", - &asn_OP_SEQUENCE_OF, - asn_DEF_gnss_TimeReqPrefList_tags_2, - sizeof(asn_DEF_gnss_TimeReqPrefList_tags_2) - /sizeof(asn_DEF_gnss_TimeReqPrefList_tags_2[0]) - 1, /* 1 */ - asn_DEF_gnss_TimeReqPrefList_tags_2, /* Same as above */ - sizeof(asn_DEF_gnss_TimeReqPrefList_tags_2) - /sizeof(asn_DEF_gnss_TimeReqPrefList_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_gnss_TimeReqPrefList_constr_2, SEQUENCE_OF_constraint }, - asn_MBR_gnss_TimeReqPrefList_2, - 1, /* Single element */ - &asn_SPC_gnss_TimeReqPrefList_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_ReferenceTimeReq_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ReferenceTimeReq, gnss_TimeReqPrefList), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_gnss_TimeReqPrefList_2, - 0, - { 0, &asn_PER_memb_gnss_TimeReqPrefList_constr_2, memb_gnss_TimeReqPrefList_constraint_1 }, - 0, 0, /* No default value */ - "gnss-TimeReqPrefList" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_ReferenceTimeReq, gps_TOW_assistReq), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gps-TOW-assistReq" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_ReferenceTimeReq, notOfLeapSecReq), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "notOfLeapSecReq" - }, -}; -static const int asn_MAP_GNSS_ReferenceTimeReq_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_GNSS_ReferenceTimeReq_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_ReferenceTimeReq_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-TimeReqPrefList */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gps-TOW-assistReq */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* notOfLeapSecReq */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_ReferenceTimeReq_specs_1 = { - sizeof(struct GNSS_ReferenceTimeReq), - offsetof(struct GNSS_ReferenceTimeReq, _asn_ctx), - asn_MAP_GNSS_ReferenceTimeReq_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_GNSS_ReferenceTimeReq_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_ReferenceTimeReq = { - "GNSS-ReferenceTimeReq", - "GNSS-ReferenceTimeReq", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_ReferenceTimeReq_tags_1, - sizeof(asn_DEF_GNSS_ReferenceTimeReq_tags_1) - /sizeof(asn_DEF_GNSS_ReferenceTimeReq_tags_1[0]), /* 1 */ - asn_DEF_GNSS_ReferenceTimeReq_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_ReferenceTimeReq_tags_1) - /sizeof(asn_DEF_GNSS_ReferenceTimeReq_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_ReferenceTimeReq_1, - 3, /* Elements count */ - &asn_SPC_GNSS_ReferenceTimeReq_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-ReferenceTimeSupport.c b/asn.1/generated/GNSS-ReferenceTimeSupport.c deleted file mode 100644 index b01891e8..00000000 --- a/asn.1/generated/GNSS-ReferenceTimeSupport.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-ReferenceTimeSupport.h" - -asn_TYPE_member_t asn_MBR_GNSS_ReferenceTimeSupport_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_ReferenceTimeSupport, gnss_SystemTime), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ID_Bitmap, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SystemTime" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_ReferenceTimeSupport, fta_Support), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AccessTypes, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "fta-Support" - }, -}; -static const int asn_MAP_GNSS_ReferenceTimeSupport_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_GNSS_ReferenceTimeSupport_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_ReferenceTimeSupport_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SystemTime */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* fta-Support */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_ReferenceTimeSupport_specs_1 = { - sizeof(struct GNSS_ReferenceTimeSupport), - offsetof(struct GNSS_ReferenceTimeSupport, _asn_ctx), - asn_MAP_GNSS_ReferenceTimeSupport_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_GNSS_ReferenceTimeSupport_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_ReferenceTimeSupport = { - "GNSS-ReferenceTimeSupport", - "GNSS-ReferenceTimeSupport", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_ReferenceTimeSupport_tags_1, - sizeof(asn_DEF_GNSS_ReferenceTimeSupport_tags_1) - /sizeof(asn_DEF_GNSS_ReferenceTimeSupport_tags_1[0]), /* 1 */ - asn_DEF_GNSS_ReferenceTimeSupport_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_ReferenceTimeSupport_tags_1) - /sizeof(asn_DEF_GNSS_ReferenceTimeSupport_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_ReferenceTimeSupport_1, - 2, /* Elements count */ - &asn_SPC_GNSS_ReferenceTimeSupport_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-ArrayOfCorrectionPoints-r16.c b/asn.1/generated/GNSS-SSR-ArrayOfCorrectionPoints-r16.c deleted file mode 100644 index 57addf63..00000000 --- a/asn.1/generated/GNSS-SSR-ArrayOfCorrectionPoints-r16.c +++ /dev/null @@ -1,328 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-ArrayOfCorrectionPoints-r16.h" - -static int -memb_referencePointLatitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16384 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_referencePointLongitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_numberOfStepsLatitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_numberOfStepsLongitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_stepOfLatitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_stepOfLongitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bitmaskOfGrids_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 64)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_referencePointLatitude_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_referencePointLongitude_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_numberOfStepsLatitude_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_numberOfStepsLongitude_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_stepOfLatitude_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 1, 511 } /* (1..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_stepOfLongitude_r16_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 1, 1023 } /* (1..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bitmaskOfGrids_r16_constr_8 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 64, 64 } /* (SIZE(64..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_SSR_ArrayOfCorrectionPoints_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ArrayOfCorrectionPoints_r16, referencePointLatitude_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_referencePointLatitude_r16_constr_2, memb_referencePointLatitude_r16_constraint_1 }, - 0, 0, /* No default value */ - "referencePointLatitude-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ArrayOfCorrectionPoints_r16, referencePointLongitude_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_referencePointLongitude_r16_constr_3, memb_referencePointLongitude_r16_constraint_1 }, - 0, 0, /* No default value */ - "referencePointLongitude-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ArrayOfCorrectionPoints_r16, numberOfStepsLatitude_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_numberOfStepsLatitude_r16_constr_4, memb_numberOfStepsLatitude_r16_constraint_1 }, - 0, 0, /* No default value */ - "numberOfStepsLatitude-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ArrayOfCorrectionPoints_r16, numberOfStepsLongitude_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_numberOfStepsLongitude_r16_constr_5, memb_numberOfStepsLongitude_r16_constraint_1 }, - 0, 0, /* No default value */ - "numberOfStepsLongitude-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ArrayOfCorrectionPoints_r16, stepOfLatitude_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_stepOfLatitude_r16_constr_6, memb_stepOfLatitude_r16_constraint_1 }, - 0, 0, /* No default value */ - "stepOfLatitude-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ArrayOfCorrectionPoints_r16, stepOfLongitude_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_stepOfLongitude_r16_constr_7, memb_stepOfLongitude_r16_constraint_1 }, - 0, 0, /* No default value */ - "stepOfLongitude-r16" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_SSR_ArrayOfCorrectionPoints_r16, bitmaskOfGrids_r16), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_bitmaskOfGrids_r16_constr_8, memb_bitmaskOfGrids_r16_constraint_1 }, - 0, 0, /* No default value */ - "bitmaskOfGrids-r16" - }, -}; -static const int asn_MAP_GNSS_SSR_ArrayOfCorrectionPoints_r16_oms_1[] = { 6 }; -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_ArrayOfCorrectionPoints_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_ArrayOfCorrectionPoints_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referencePointLatitude-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* referencePointLongitude-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* numberOfStepsLatitude-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* numberOfStepsLongitude-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* stepOfLatitude-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* stepOfLongitude-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* bitmaskOfGrids-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ArrayOfCorrectionPoints_r16_specs_1 = { - sizeof(struct GNSS_SSR_ArrayOfCorrectionPoints_r16), - offsetof(struct GNSS_SSR_ArrayOfCorrectionPoints_r16, _asn_ctx), - asn_MAP_GNSS_SSR_ArrayOfCorrectionPoints_r16_tag2el_1, - 7, /* Count of tags in the map */ - asn_MAP_GNSS_SSR_ArrayOfCorrectionPoints_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 7, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ArrayOfCorrectionPoints_r16 = { - "GNSS-SSR-ArrayOfCorrectionPoints-r16", - "GNSS-SSR-ArrayOfCorrectionPoints-r16", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_ArrayOfCorrectionPoints_r16_tags_1, - sizeof(asn_DEF_GNSS_SSR_ArrayOfCorrectionPoints_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_ArrayOfCorrectionPoints_r16_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_ArrayOfCorrectionPoints_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_ArrayOfCorrectionPoints_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_ArrayOfCorrectionPoints_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SSR_ArrayOfCorrectionPoints_r16_1, - 7, /* Elements count */ - &asn_SPC_GNSS_SSR_ArrayOfCorrectionPoints_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-ClockCorrections-r15.c b/asn.1/generated/GNSS-SSR-ClockCorrections-r15.c deleted file mode 100644 index e0f8de43..00000000 --- a/asn.1/generated/GNSS-SSR-ClockCorrections-r15.c +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-ClockCorrections-r15.h" - -static int -memb_ssrUpdateInterval_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_iod_ssr_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_ssrUpdateInterval_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_iod_ssr_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_SSR_ClockCorrections_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ClockCorrections_r15, epochTime_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SystemTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "epochTime-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ClockCorrections_r15, ssrUpdateInterval_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ssrUpdateInterval_r15_constr_3, memb_ssrUpdateInterval_r15_constraint_1 }, - 0, 0, /* No default value */ - "ssrUpdateInterval-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ClockCorrections_r15, iod_ssr_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_iod_ssr_r15_constr_4, memb_iod_ssr_r15_constraint_1 }, - 0, 0, /* No default value */ - "iod-ssr-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ClockCorrections_r15, ssr_ClockCorrectionList_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SSR_ClockCorrectionList_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ssr-ClockCorrectionList-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_ClockCorrections_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_ClockCorrections_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ssrUpdateInterval-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* iod-ssr-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ssr-ClockCorrectionList-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ClockCorrections_r15_specs_1 = { - sizeof(struct GNSS_SSR_ClockCorrections_r15), - offsetof(struct GNSS_SSR_ClockCorrections_r15, _asn_ctx), - asn_MAP_GNSS_SSR_ClockCorrections_r15_tag2el_1, - 4, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ClockCorrections_r15 = { - "GNSS-SSR-ClockCorrections-r15", - "GNSS-SSR-ClockCorrections-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_ClockCorrections_r15_tags_1, - sizeof(asn_DEF_GNSS_SSR_ClockCorrections_r15_tags_1) - /sizeof(asn_DEF_GNSS_SSR_ClockCorrections_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_ClockCorrections_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_ClockCorrections_r15_tags_1) - /sizeof(asn_DEF_GNSS_SSR_ClockCorrections_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SSR_ClockCorrections_r15_1, - 4, /* Elements count */ - &asn_SPC_GNSS_SSR_ClockCorrections_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-ClockCorrections-r15.h b/asn.1/generated/GNSS-SSR-ClockCorrections-r15.h deleted file mode 100644 index 4251bfa1..00000000 --- a/asn.1/generated/GNSS-SSR-ClockCorrections-r15.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_SSR_ClockCorrections_r15_H_ -#define _GNSS_SSR_ClockCorrections_r15_H_ - - -#include - -/* Including external dependencies */ -#include "GNSS-SystemTime.h" -#include -#include "SSR-ClockCorrectionList-r15.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* GNSS-SSR-ClockCorrections-r15 */ -typedef struct GNSS_SSR_ClockCorrections_r15 { - GNSS_SystemTime_t epochTime_r15; - long ssrUpdateInterval_r15; - long iod_ssr_r15; - SSR_ClockCorrectionList_r15_t ssr_ClockCorrectionList_r15; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_SSR_ClockCorrections_r15_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ClockCorrections_r15; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ClockCorrections_r15_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_SSR_ClockCorrections_r15_1[4]; - -#ifdef __cplusplus -} -#endif - -#endif /* _GNSS_SSR_ClockCorrections_r15_H_ */ -#include diff --git a/asn.1/generated/GNSS-SSR-ClockCorrectionsReq-r15.c b/asn.1/generated/GNSS-SSR-ClockCorrectionsReq-r15.c deleted file mode 100644 index 5df65fef..00000000 --- a/asn.1/generated/GNSS-SSR-ClockCorrectionsReq-r15.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-ClockCorrectionsReq-r15.h" - -asn_TYPE_member_t asn_MBR_GNSS_SSR_ClockCorrectionsReq_r15_1[] = { - { ATF_POINTER, 1, offsetof(struct GNSS_SSR_ClockCorrectionsReq_r15, storedNavList_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_NavListInfo_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "storedNavList-r15" - }, -}; -static const int asn_MAP_GNSS_SSR_ClockCorrectionsReq_r15_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_ClockCorrectionsReq_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* storedNavList-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ClockCorrectionsReq_r15_specs_1 = { - sizeof(struct GNSS_SSR_ClockCorrectionsReq_r15), - offsetof(struct GNSS_SSR_ClockCorrectionsReq_r15, _asn_ctx), - asn_MAP_GNSS_SSR_ClockCorrectionsReq_r15_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_GNSS_SSR_ClockCorrectionsReq_r15_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15 = { - "GNSS-SSR-ClockCorrectionsReq-r15", - "GNSS-SSR-ClockCorrectionsReq-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15_tags_1, - sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SSR_ClockCorrectionsReq_r15_1, - 1, /* Elements count */ - &asn_SPC_GNSS_SSR_ClockCorrectionsReq_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-ClockCorrectionsReq-r15.h b/asn.1/generated/GNSS-SSR-ClockCorrectionsReq-r15.h deleted file mode 100644 index 17db704d..00000000 --- a/asn.1/generated/GNSS-SSR-ClockCorrectionsReq-r15.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_SSR_ClockCorrectionsReq_r15_H_ -#define _GNSS_SSR_ClockCorrectionsReq_r15_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct GNSS_NavListInfo_r15; - -/* GNSS-SSR-ClockCorrectionsReq-r15 */ -typedef struct GNSS_SSR_ClockCorrectionsReq_r15 { - struct GNSS_NavListInfo_r15 *storedNavList_r15 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_SSR_ClockCorrectionsReq_r15_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ClockCorrectionsReq_r15_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_SSR_ClockCorrectionsReq_r15_1[1]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GNSS-NavListInfo-r15.h" - -#endif /* _GNSS_SSR_ClockCorrectionsReq_r15_H_ */ -#include diff --git a/asn.1/generated/GNSS-SSR-ClockCorrectionsSupport-r15.c b/asn.1/generated/GNSS-SSR-ClockCorrectionsSupport-r15.c deleted file mode 100644 index 729468ba..00000000 --- a/asn.1/generated/GNSS-SSR-ClockCorrectionsSupport-r15.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-ClockCorrectionsSupport-r15.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ClockCorrectionsSupport_r15_specs_1 = { - sizeof(struct GNSS_SSR_ClockCorrectionsSupport_r15), - offsetof(struct GNSS_SSR_ClockCorrectionsSupport_r15, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15 = { - "GNSS-SSR-ClockCorrectionsSupport-r15", - "GNSS-SSR-ClockCorrectionsSupport-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15_tags_1, - sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15_tags_1) - /sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15_tags_1) - /sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_SSR_ClockCorrectionsSupport_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-ClockCorrectionsSupport-r15.h b/asn.1/generated/GNSS-SSR-ClockCorrectionsSupport-r15.h deleted file mode 100644 index da6bcd3f..00000000 --- a/asn.1/generated/GNSS-SSR-ClockCorrectionsSupport-r15.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_SSR_ClockCorrectionsSupport_r15_H_ -#define _GNSS_SSR_ClockCorrectionsSupport_r15_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* GNSS-SSR-ClockCorrectionsSupport-r15 */ -typedef struct GNSS_SSR_ClockCorrectionsSupport_r15 { - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_SSR_ClockCorrectionsSupport_r15_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ClockCorrectionsSupport_r15_specs_1; - -#ifdef __cplusplus -} -#endif - -#endif /* _GNSS_SSR_ClockCorrectionsSupport_r15_H_ */ -#include diff --git a/asn.1/generated/GNSS-SSR-CodeBias-r15.c b/asn.1/generated/GNSS-SSR-CodeBias-r15.c deleted file mode 100644 index d36e1cfe..00000000 --- a/asn.1/generated/GNSS-SSR-CodeBias-r15.c +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-CodeBias-r15.h" - -static int -memb_ssrUpdateInterval_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_iod_ssr_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_ssrUpdateInterval_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_iod_ssr_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_SSR_CodeBias_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CodeBias_r15, epochTime_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SystemTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "epochTime-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CodeBias_r15, ssrUpdateInterval_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ssrUpdateInterval_r15_constr_3, memb_ssrUpdateInterval_r15_constraint_1 }, - 0, 0, /* No default value */ - "ssrUpdateInterval-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CodeBias_r15, iod_ssr_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_iod_ssr_r15_constr_4, memb_iod_ssr_r15_constraint_1 }, - 0, 0, /* No default value */ - "iod-ssr-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CodeBias_r15, ssr_CodeBiasSatList_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SSR_CodeBiasSatList_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ssr-CodeBiasSatList-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_CodeBias_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_CodeBias_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ssrUpdateInterval-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* iod-ssr-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ssr-CodeBiasSatList-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_CodeBias_r15_specs_1 = { - sizeof(struct GNSS_SSR_CodeBias_r15), - offsetof(struct GNSS_SSR_CodeBias_r15, _asn_ctx), - asn_MAP_GNSS_SSR_CodeBias_r15_tag2el_1, - 4, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_CodeBias_r15 = { - "GNSS-SSR-CodeBias-r15", - "GNSS-SSR-CodeBias-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_CodeBias_r15_tags_1, - sizeof(asn_DEF_GNSS_SSR_CodeBias_r15_tags_1) - /sizeof(asn_DEF_GNSS_SSR_CodeBias_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_CodeBias_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_CodeBias_r15_tags_1) - /sizeof(asn_DEF_GNSS_SSR_CodeBias_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SSR_CodeBias_r15_1, - 4, /* Elements count */ - &asn_SPC_GNSS_SSR_CodeBias_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-CodeBiasReq-r15.c b/asn.1/generated/GNSS-SSR-CodeBiasReq-r15.c deleted file mode 100644 index 71aad477..00000000 --- a/asn.1/generated/GNSS-SSR-CodeBiasReq-r15.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-CodeBiasReq-r15.h" - -asn_TYPE_member_t asn_MBR_GNSS_SSR_CodeBiasReq_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CodeBiasReq_r15, signal_and_tracking_mode_ID_Map_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalIDs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "signal-and-tracking-mode-ID-Map-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_SSR_CodeBiasReq_r15, storedNavList_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_NavListInfo_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "storedNavList-r15" - }, -}; -static const int asn_MAP_GNSS_SSR_CodeBiasReq_r15_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_CodeBiasReq_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_CodeBiasReq_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* signal-and-tracking-mode-ID-Map-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* storedNavList-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_CodeBiasReq_r15_specs_1 = { - sizeof(struct GNSS_SSR_CodeBiasReq_r15), - offsetof(struct GNSS_SSR_CodeBiasReq_r15, _asn_ctx), - asn_MAP_GNSS_SSR_CodeBiasReq_r15_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_GNSS_SSR_CodeBiasReq_r15_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_CodeBiasReq_r15 = { - "GNSS-SSR-CodeBiasReq-r15", - "GNSS-SSR-CodeBiasReq-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_CodeBiasReq_r15_tags_1, - sizeof(asn_DEF_GNSS_SSR_CodeBiasReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_SSR_CodeBiasReq_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_CodeBiasReq_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_CodeBiasReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_SSR_CodeBiasReq_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SSR_CodeBiasReq_r15_1, - 2, /* Elements count */ - &asn_SPC_GNSS_SSR_CodeBiasReq_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-CodeBiasReq-r15.h b/asn.1/generated/GNSS-SSR-CodeBiasReq-r15.h deleted file mode 100644 index 2553bc3e..00000000 --- a/asn.1/generated/GNSS-SSR-CodeBiasReq-r15.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_SSR_CodeBiasReq_r15_H_ -#define _GNSS_SSR_CodeBiasReq_r15_H_ - - -#include - -/* Including external dependencies */ -#include "GNSS-SignalIDs.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct GNSS_NavListInfo_r15; - -/* GNSS-SSR-CodeBiasReq-r15 */ -typedef struct GNSS_SSR_CodeBiasReq_r15 { - GNSS_SignalIDs_t signal_and_tracking_mode_ID_Map_r15; - struct GNSS_NavListInfo_r15 *storedNavList_r15 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_SSR_CodeBiasReq_r15_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_CodeBiasReq_r15; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_CodeBiasReq_r15_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_SSR_CodeBiasReq_r15_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GNSS-NavListInfo-r15.h" - -#endif /* _GNSS_SSR_CodeBiasReq_r15_H_ */ -#include diff --git a/asn.1/generated/GNSS-SSR-CodeBiasSupport-r15.c b/asn.1/generated/GNSS-SSR-CodeBiasSupport-r15.c deleted file mode 100644 index f42216fc..00000000 --- a/asn.1/generated/GNSS-SSR-CodeBiasSupport-r15.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-CodeBiasSupport-r15.h" - -asn_TYPE_member_t asn_MBR_GNSS_SSR_CodeBiasSupport_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CodeBiasSupport_r15, signal_and_tracking_mode_ID_Sup_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalIDs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "signal-and-tracking-mode-ID-Sup-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_CodeBiasSupport_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_CodeBiasSupport_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* signal-and-tracking-mode-ID-Sup-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_CodeBiasSupport_r15_specs_1 = { - sizeof(struct GNSS_SSR_CodeBiasSupport_r15), - offsetof(struct GNSS_SSR_CodeBiasSupport_r15, _asn_ctx), - asn_MAP_GNSS_SSR_CodeBiasSupport_r15_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_CodeBiasSupport_r15 = { - "GNSS-SSR-CodeBiasSupport-r15", - "GNSS-SSR-CodeBiasSupport-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_CodeBiasSupport_r15_tags_1, - sizeof(asn_DEF_GNSS_SSR_CodeBiasSupport_r15_tags_1) - /sizeof(asn_DEF_GNSS_SSR_CodeBiasSupport_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_CodeBiasSupport_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_CodeBiasSupport_r15_tags_1) - /sizeof(asn_DEF_GNSS_SSR_CodeBiasSupport_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SSR_CodeBiasSupport_r15_1, - 1, /* Elements count */ - &asn_SPC_GNSS_SSR_CodeBiasSupport_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-CodeBiasSupport-r15.h b/asn.1/generated/GNSS-SSR-CodeBiasSupport-r15.h deleted file mode 100644 index f4d7953a..00000000 --- a/asn.1/generated/GNSS-SSR-CodeBiasSupport-r15.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_SSR_CodeBiasSupport_r15_H_ -#define _GNSS_SSR_CodeBiasSupport_r15_H_ - - -#include - -/* Including external dependencies */ -#include "GNSS-SignalIDs.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* GNSS-SSR-CodeBiasSupport-r15 */ -typedef struct GNSS_SSR_CodeBiasSupport_r15 { - GNSS_SignalIDs_t signal_and_tracking_mode_ID_Sup_r15; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_SSR_CodeBiasSupport_r15_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_CodeBiasSupport_r15; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_CodeBiasSupport_r15_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_SSR_CodeBiasSupport_r15_1[1]; - -#ifdef __cplusplus -} -#endif - -#endif /* _GNSS_SSR_CodeBiasSupport_r15_H_ */ -#include diff --git a/asn.1/generated/GNSS-SSR-CorrectionPoints-r16.c b/asn.1/generated/GNSS-SSR-CorrectionPoints-r16.c deleted file mode 100644 index 4d1e4622..00000000 --- a/asn.1/generated/GNSS-SSR-CorrectionPoints-r16.c +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-CorrectionPoints-r16.h" - -static int -memb_correctionPointSetID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_correctionPoints_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_correctionPointSetID_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_correctionPoints_r16_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CorrectionPoints_r16__correctionPoints_r16, choice.listOfCorrectionPoints_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_ListOfCorrectionPoints_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "listOfCorrectionPoints-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CorrectionPoints_r16__correctionPoints_r16, choice.arrayOfCorrectionPoints_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SSR_ArrayOfCorrectionPoints_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "arrayOfCorrectionPoints-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_correctionPoints_r16_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* listOfCorrectionPoints-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* arrayOfCorrectionPoints-r16 */ -}; -static asn_CHOICE_specifics_t asn_SPC_correctionPoints_r16_specs_3 = { - sizeof(struct GNSS_SSR_CorrectionPoints_r16__correctionPoints_r16), - offsetof(struct GNSS_SSR_CorrectionPoints_r16__correctionPoints_r16, _asn_ctx), - offsetof(struct GNSS_SSR_CorrectionPoints_r16__correctionPoints_r16, present), - sizeof(((struct GNSS_SSR_CorrectionPoints_r16__correctionPoints_r16 *)0)->present), - asn_MAP_correctionPoints_r16_tag2el_3, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_correctionPoints_r16_3 = { - "correctionPoints-r16", - "correctionPoints-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_correctionPoints_r16_constr_3, CHOICE_constraint }, - asn_MBR_correctionPoints_r16_3, - 2, /* Elements count */ - &asn_SPC_correctionPoints_r16_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_SSR_CorrectionPoints_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CorrectionPoints_r16, correctionPointSetID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_correctionPointSetID_r16_constr_2, memb_correctionPointSetID_r16_constraint_1 }, - 0, 0, /* No default value */ - "correctionPointSetID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CorrectionPoints_r16, correctionPoints_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_correctionPoints_r16_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "correctionPoints-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_CorrectionPoints_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_CorrectionPoints_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* correctionPointSetID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* correctionPoints-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_CorrectionPoints_r16_specs_1 = { - sizeof(struct GNSS_SSR_CorrectionPoints_r16), - offsetof(struct GNSS_SSR_CorrectionPoints_r16, _asn_ctx), - asn_MAP_GNSS_SSR_CorrectionPoints_r16_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_CorrectionPoints_r16 = { - "GNSS-SSR-CorrectionPoints-r16", - "GNSS-SSR-CorrectionPoints-r16", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_CorrectionPoints_r16_tags_1, - sizeof(asn_DEF_GNSS_SSR_CorrectionPoints_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_CorrectionPoints_r16_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_CorrectionPoints_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_CorrectionPoints_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_CorrectionPoints_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SSR_CorrectionPoints_r16_1, - 2, /* Elements count */ - &asn_SPC_GNSS_SSR_CorrectionPoints_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-CorrectionPointsReq-r16.c b/asn.1/generated/GNSS-SSR-CorrectionPointsReq-r16.c deleted file mode 100644 index 3f724ad0..00000000 --- a/asn.1/generated/GNSS-SSR-CorrectionPointsReq-r16.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-CorrectionPointsReq-r16.h" - -static int -memb_correctionPointSetID_Req_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_correctionPointSetID_Req_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_SSR_CorrectionPointsReq_r16_1[] = { - { ATF_POINTER, 1, offsetof(struct GNSS_SSR_CorrectionPointsReq_r16, correctionPointSetID_Req_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_correctionPointSetID_Req_r16_constr_2, memb_correctionPointSetID_Req_r16_constraint_1 }, - 0, 0, /* No default value */ - "correctionPointSetID-Req-r16" - }, -}; -static const int asn_MAP_GNSS_SSR_CorrectionPointsReq_r16_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_CorrectionPointsReq_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_CorrectionPointsReq_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* correctionPointSetID-Req-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_CorrectionPointsReq_r16_specs_1 = { - sizeof(struct GNSS_SSR_CorrectionPointsReq_r16), - offsetof(struct GNSS_SSR_CorrectionPointsReq_r16, _asn_ctx), - asn_MAP_GNSS_SSR_CorrectionPointsReq_r16_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_GNSS_SSR_CorrectionPointsReq_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_CorrectionPointsReq_r16 = { - "GNSS-SSR-CorrectionPointsReq-r16", - "GNSS-SSR-CorrectionPointsReq-r16", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_CorrectionPointsReq_r16_tags_1, - sizeof(asn_DEF_GNSS_SSR_CorrectionPointsReq_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_CorrectionPointsReq_r16_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_CorrectionPointsReq_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_CorrectionPointsReq_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_CorrectionPointsReq_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SSR_CorrectionPointsReq_r16_1, - 1, /* Elements count */ - &asn_SPC_GNSS_SSR_CorrectionPointsReq_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-GriddedCorrection-r16.c b/asn.1/generated/GNSS-SSR-GriddedCorrection-r16.c deleted file mode 100644 index 00dba349..00000000 --- a/asn.1/generated/GNSS-SSR-GriddedCorrection-r16.c +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-GriddedCorrection-r16.h" - -static int -memb_ssrUpdateInterval_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_iod_ssr_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_troposphericDelayQualityIndicator_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 6)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_correctionPointSetID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_ssrUpdateInterval_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_iod_ssr_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_troposphericDelayQualityIndicator_r16_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_correctionPointSetID_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_SSR_GriddedCorrection_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_GriddedCorrection_r16, epochTime_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SystemTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "epochTime-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_GriddedCorrection_r16, ssrUpdateInterval_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ssrUpdateInterval_r16_constr_3, memb_ssrUpdateInterval_r16_constraint_1 }, - 0, 0, /* No default value */ - "ssrUpdateInterval-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_GriddedCorrection_r16, iod_ssr_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_iod_ssr_r16_constr_4, memb_iod_ssr_r16_constraint_1 }, - 0, 0, /* No default value */ - "iod-ssr-r16" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_SSR_GriddedCorrection_r16, troposphericDelayQualityIndicator_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_troposphericDelayQualityIndicator_r16_constr_5, memb_troposphericDelayQualityIndicator_r16_constraint_1 }, - 0, 0, /* No default value */ - "troposphericDelayQualityIndicator-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_GriddedCorrection_r16, correctionPointSetID_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_correctionPointSetID_r16_constr_6, memb_correctionPointSetID_r16_constraint_1 }, - 0, 0, /* No default value */ - "correctionPointSetID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_GriddedCorrection_r16, gridList_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GridList_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gridList-r16" - }, -}; -static const int asn_MAP_GNSS_SSR_GriddedCorrection_r16_oms_1[] = { 3 }; -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_GriddedCorrection_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_GriddedCorrection_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ssrUpdateInterval-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* iod-ssr-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* troposphericDelayQualityIndicator-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* correctionPointSetID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* gridList-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_GriddedCorrection_r16_specs_1 = { - sizeof(struct GNSS_SSR_GriddedCorrection_r16), - offsetof(struct GNSS_SSR_GriddedCorrection_r16, _asn_ctx), - asn_MAP_GNSS_SSR_GriddedCorrection_r16_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_GNSS_SSR_GriddedCorrection_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_GriddedCorrection_r16 = { - "GNSS-SSR-GriddedCorrection-r16", - "GNSS-SSR-GriddedCorrection-r16", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_GriddedCorrection_r16_tags_1, - sizeof(asn_DEF_GNSS_SSR_GriddedCorrection_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_GriddedCorrection_r16_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_GriddedCorrection_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_GriddedCorrection_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_GriddedCorrection_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SSR_GriddedCorrection_r16_1, - 6, /* Elements count */ - &asn_SPC_GNSS_SSR_GriddedCorrection_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-GriddedCorrection-r16.h b/asn.1/generated/GNSS-SSR-GriddedCorrection-r16.h deleted file mode 100644 index 6ff86796..00000000 --- a/asn.1/generated/GNSS-SSR-GriddedCorrection-r16.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_SSR_GriddedCorrection_r16_H_ -#define _GNSS_SSR_GriddedCorrection_r16_H_ - - -#include - -/* Including external dependencies */ -#include "GNSS-SystemTime.h" -#include -#include -#include "GridList-r16.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* GNSS-SSR-GriddedCorrection-r16 */ -typedef struct GNSS_SSR_GriddedCorrection_r16 { - GNSS_SystemTime_t epochTime_r16; - long ssrUpdateInterval_r16; - long iod_ssr_r16; - BIT_STRING_t *troposphericDelayQualityIndicator_r16 /* OPTIONAL */; - long correctionPointSetID_r16; - GridList_r16_t gridList_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_SSR_GriddedCorrection_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_GriddedCorrection_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_GriddedCorrection_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_SSR_GriddedCorrection_r16_1[6]; - -#ifdef __cplusplus -} -#endif - -#endif /* _GNSS_SSR_GriddedCorrection_r16_H_ */ -#include diff --git a/asn.1/generated/GNSS-SSR-GriddedCorrectionReq-r16.c b/asn.1/generated/GNSS-SSR-GriddedCorrectionReq-r16.c deleted file mode 100644 index d2e54173..00000000 --- a/asn.1/generated/GNSS-SSR-GriddedCorrectionReq-r16.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-GriddedCorrectionReq-r16.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_GriddedCorrectionReq_r16_specs_1 = { - sizeof(struct GNSS_SSR_GriddedCorrectionReq_r16), - offsetof(struct GNSS_SSR_GriddedCorrectionReq_r16, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16 = { - "GNSS-SSR-GriddedCorrectionReq-r16", - "GNSS-SSR-GriddedCorrectionReq-r16", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16_tags_1, - sizeof(asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_SSR_GriddedCorrectionReq_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-GriddedCorrectionReq-r16.h b/asn.1/generated/GNSS-SSR-GriddedCorrectionReq-r16.h deleted file mode 100644 index dae26c5c..00000000 --- a/asn.1/generated/GNSS-SSR-GriddedCorrectionReq-r16.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_SSR_GriddedCorrectionReq_r16_H_ -#define _GNSS_SSR_GriddedCorrectionReq_r16_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* GNSS-SSR-GriddedCorrectionReq-r16 */ -typedef struct GNSS_SSR_GriddedCorrectionReq_r16 { - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_SSR_GriddedCorrectionReq_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_GriddedCorrectionReq_r16_specs_1; - -#ifdef __cplusplus -} -#endif - -#endif /* _GNSS_SSR_GriddedCorrectionReq_r16_H_ */ -#include diff --git a/asn.1/generated/GNSS-SSR-GriddedCorrectionSupport-r16.c b/asn.1/generated/GNSS-SSR-GriddedCorrectionSupport-r16.c deleted file mode 100644 index 8988faef..00000000 --- a/asn.1/generated/GNSS-SSR-GriddedCorrectionSupport-r16.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-GriddedCorrectionSupport-r16.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_GriddedCorrectionSupport_r16_specs_1 = { - sizeof(struct GNSS_SSR_GriddedCorrectionSupport_r16), - offsetof(struct GNSS_SSR_GriddedCorrectionSupport_r16, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16 = { - "GNSS-SSR-GriddedCorrectionSupport-r16", - "GNSS-SSR-GriddedCorrectionSupport-r16", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16_tags_1, - sizeof(asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_SSR_GriddedCorrectionSupport_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-GriddedCorrectionSupport-r16.h b/asn.1/generated/GNSS-SSR-GriddedCorrectionSupport-r16.h deleted file mode 100644 index f47e31db..00000000 --- a/asn.1/generated/GNSS-SSR-GriddedCorrectionSupport-r16.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_SSR_GriddedCorrectionSupport_r16_H_ -#define _GNSS_SSR_GriddedCorrectionSupport_r16_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* GNSS-SSR-GriddedCorrectionSupport-r16 */ -typedef struct GNSS_SSR_GriddedCorrectionSupport_r16 { - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_SSR_GriddedCorrectionSupport_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_GriddedCorrectionSupport_r16_specs_1; - -#ifdef __cplusplus -} -#endif - -#endif /* _GNSS_SSR_GriddedCorrectionSupport_r16_H_ */ -#include diff --git a/asn.1/generated/GNSS-SSR-ListOfCorrectionPoints-r16.c b/asn.1/generated/GNSS-SSR-ListOfCorrectionPoints-r16.c deleted file mode 100644 index dd9c933c..00000000 --- a/asn.1/generated/GNSS-SSR-ListOfCorrectionPoints-r16.c +++ /dev/null @@ -1,203 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-ListOfCorrectionPoints-r16.h" - -static int -memb_referencePointLatitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16384 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_referencePointLongitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_relativeLocationsList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size <= 63)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_relativeLocationsList_r16_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (SIZE(0..63)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_referencePointLatitude_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_referencePointLongitude_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_relativeLocationsList_r16_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (SIZE(0..63)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_relativeLocationsList_r16_4[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_RelativeLocation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_relativeLocationsList_r16_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_relativeLocationsList_r16_specs_4 = { - sizeof(struct GNSS_SSR_ListOfCorrectionPoints_r16__relativeLocationsList_r16), - offsetof(struct GNSS_SSR_ListOfCorrectionPoints_r16__relativeLocationsList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_relativeLocationsList_r16_4 = { - "relativeLocationsList-r16", - "relativeLocationsList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_relativeLocationsList_r16_tags_4, - sizeof(asn_DEF_relativeLocationsList_r16_tags_4) - /sizeof(asn_DEF_relativeLocationsList_r16_tags_4[0]) - 1, /* 1 */ - asn_DEF_relativeLocationsList_r16_tags_4, /* Same as above */ - sizeof(asn_DEF_relativeLocationsList_r16_tags_4) - /sizeof(asn_DEF_relativeLocationsList_r16_tags_4[0]), /* 2 */ - { 0, &asn_PER_type_relativeLocationsList_r16_constr_4, SEQUENCE_OF_constraint }, - asn_MBR_relativeLocationsList_r16_4, - 1, /* Single element */ - &asn_SPC_relativeLocationsList_r16_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_SSR_ListOfCorrectionPoints_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ListOfCorrectionPoints_r16, referencePointLatitude_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_referencePointLatitude_r16_constr_2, memb_referencePointLatitude_r16_constraint_1 }, - 0, 0, /* No default value */ - "referencePointLatitude-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ListOfCorrectionPoints_r16, referencePointLongitude_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_referencePointLongitude_r16_constr_3, memb_referencePointLongitude_r16_constraint_1 }, - 0, 0, /* No default value */ - "referencePointLongitude-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ListOfCorrectionPoints_r16, relativeLocationsList_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_relativeLocationsList_r16_4, - 0, - { 0, &asn_PER_memb_relativeLocationsList_r16_constr_4, memb_relativeLocationsList_r16_constraint_1 }, - 0, 0, /* No default value */ - "relativeLocationsList-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_ListOfCorrectionPoints_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_ListOfCorrectionPoints_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referencePointLatitude-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* referencePointLongitude-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* relativeLocationsList-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ListOfCorrectionPoints_r16_specs_1 = { - sizeof(struct GNSS_SSR_ListOfCorrectionPoints_r16), - offsetof(struct GNSS_SSR_ListOfCorrectionPoints_r16, _asn_ctx), - asn_MAP_GNSS_SSR_ListOfCorrectionPoints_r16_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ListOfCorrectionPoints_r16 = { - "GNSS-SSR-ListOfCorrectionPoints-r16", - "GNSS-SSR-ListOfCorrectionPoints-r16", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_ListOfCorrectionPoints_r16_tags_1, - sizeof(asn_DEF_GNSS_SSR_ListOfCorrectionPoints_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_ListOfCorrectionPoints_r16_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_ListOfCorrectionPoints_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_ListOfCorrectionPoints_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_ListOfCorrectionPoints_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SSR_ListOfCorrectionPoints_r16_1, - 3, /* Elements count */ - &asn_SPC_GNSS_SSR_ListOfCorrectionPoints_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-OrbitCorrections-r15.c b/asn.1/generated/GNSS-SSR-OrbitCorrections-r15.c deleted file mode 100644 index b1ff0d5a..00000000 --- a/asn.1/generated/GNSS-SSR-OrbitCorrections-r15.c +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-OrbitCorrections-r15.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_ssrUpdateInterval_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_iod_ssr_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_satelliteReferenceDatum_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ssrUpdateInterval_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_iod_ssr_r15_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_satelliteReferenceDatum_r15_value2enum_4[] = { - { 0, 4, "itrf" }, - { 1, 8, "regional" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_satelliteReferenceDatum_r15_enum2value_4[] = { - 0, /* itrf(0) */ - 1 /* regional(1) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_satelliteReferenceDatum_r15_specs_4 = { - asn_MAP_satelliteReferenceDatum_r15_value2enum_4, /* "tag" => N; sorted by tag */ - asn_MAP_satelliteReferenceDatum_r15_enum2value_4, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_satelliteReferenceDatum_r15_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_satelliteReferenceDatum_r15_4 = { - "satelliteReferenceDatum-r15", - "satelliteReferenceDatum-r15", - &asn_OP_NativeEnumerated, - asn_DEF_satelliteReferenceDatum_r15_tags_4, - sizeof(asn_DEF_satelliteReferenceDatum_r15_tags_4) - /sizeof(asn_DEF_satelliteReferenceDatum_r15_tags_4[0]) - 1, /* 1 */ - asn_DEF_satelliteReferenceDatum_r15_tags_4, /* Same as above */ - sizeof(asn_DEF_satelliteReferenceDatum_r15_tags_4) - /sizeof(asn_DEF_satelliteReferenceDatum_r15_tags_4[0]), /* 2 */ - { 0, &asn_PER_type_satelliteReferenceDatum_r15_constr_4, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_satelliteReferenceDatum_r15_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_SSR_OrbitCorrections_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_OrbitCorrections_r15, epochTime_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SystemTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "epochTime-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_OrbitCorrections_r15, ssrUpdateInterval_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ssrUpdateInterval_r15_constr_3, memb_ssrUpdateInterval_r15_constraint_1 }, - 0, 0, /* No default value */ - "ssrUpdateInterval-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_OrbitCorrections_r15, satelliteReferenceDatum_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_satelliteReferenceDatum_r15_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "satelliteReferenceDatum-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_OrbitCorrections_r15, iod_ssr_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_iod_ssr_r15_constr_8, memb_iod_ssr_r15_constraint_1 }, - 0, 0, /* No default value */ - "iod-ssr-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_OrbitCorrections_r15, ssr_OrbitCorrectionList_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SSR_OrbitCorrectionList_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ssr-OrbitCorrectionList-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_OrbitCorrections_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_OrbitCorrections_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ssrUpdateInterval-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* satelliteReferenceDatum-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* iod-ssr-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ssr-OrbitCorrectionList-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_OrbitCorrections_r15_specs_1 = { - sizeof(struct GNSS_SSR_OrbitCorrections_r15), - offsetof(struct GNSS_SSR_OrbitCorrections_r15, _asn_ctx), - asn_MAP_GNSS_SSR_OrbitCorrections_r15_tag2el_1, - 5, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_OrbitCorrections_r15 = { - "GNSS-SSR-OrbitCorrections-r15", - "GNSS-SSR-OrbitCorrections-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_OrbitCorrections_r15_tags_1, - sizeof(asn_DEF_GNSS_SSR_OrbitCorrections_r15_tags_1) - /sizeof(asn_DEF_GNSS_SSR_OrbitCorrections_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_OrbitCorrections_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_OrbitCorrections_r15_tags_1) - /sizeof(asn_DEF_GNSS_SSR_OrbitCorrections_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SSR_OrbitCorrections_r15_1, - 5, /* Elements count */ - &asn_SPC_GNSS_SSR_OrbitCorrections_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-OrbitCorrectionsReq-r15.c b/asn.1/generated/GNSS-SSR-OrbitCorrectionsReq-r15.c deleted file mode 100644 index 5f5ca4e8..00000000 --- a/asn.1/generated/GNSS-SSR-OrbitCorrectionsReq-r15.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-OrbitCorrectionsReq-r15.h" - -asn_TYPE_member_t asn_MBR_GNSS_SSR_OrbitCorrectionsReq_r15_1[] = { - { ATF_POINTER, 1, offsetof(struct GNSS_SSR_OrbitCorrectionsReq_r15, storedNavList_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_NavListInfo_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "storedNavList-r15" - }, -}; -static const int asn_MAP_GNSS_SSR_OrbitCorrectionsReq_r15_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_OrbitCorrectionsReq_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* storedNavList-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_OrbitCorrectionsReq_r15_specs_1 = { - sizeof(struct GNSS_SSR_OrbitCorrectionsReq_r15), - offsetof(struct GNSS_SSR_OrbitCorrectionsReq_r15, _asn_ctx), - asn_MAP_GNSS_SSR_OrbitCorrectionsReq_r15_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_GNSS_SSR_OrbitCorrectionsReq_r15_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15 = { - "GNSS-SSR-OrbitCorrectionsReq-r15", - "GNSS-SSR-OrbitCorrectionsReq-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15_tags_1, - sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15_tags_1) - /sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SSR_OrbitCorrectionsReq_r15_1, - 1, /* Elements count */ - &asn_SPC_GNSS_SSR_OrbitCorrectionsReq_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-OrbitCorrectionsReq-r15.h b/asn.1/generated/GNSS-SSR-OrbitCorrectionsReq-r15.h deleted file mode 100644 index c240bb60..00000000 --- a/asn.1/generated/GNSS-SSR-OrbitCorrectionsReq-r15.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_SSR_OrbitCorrectionsReq_r15_H_ -#define _GNSS_SSR_OrbitCorrectionsReq_r15_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct GNSS_NavListInfo_r15; - -/* GNSS-SSR-OrbitCorrectionsReq-r15 */ -typedef struct GNSS_SSR_OrbitCorrectionsReq_r15 { - struct GNSS_NavListInfo_r15 *storedNavList_r15 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_SSR_OrbitCorrectionsReq_r15_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_OrbitCorrectionsReq_r15_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_SSR_OrbitCorrectionsReq_r15_1[1]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GNSS-NavListInfo-r15.h" - -#endif /* _GNSS_SSR_OrbitCorrectionsReq_r15_H_ */ -#include diff --git a/asn.1/generated/GNSS-SSR-OrbitCorrectionsSupport-r15.c b/asn.1/generated/GNSS-SSR-OrbitCorrectionsSupport-r15.c deleted file mode 100644 index d2d86844..00000000 --- a/asn.1/generated/GNSS-SSR-OrbitCorrectionsSupport-r15.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-OrbitCorrectionsSupport-r15.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_OrbitCorrectionsSupport_r15_specs_1 = { - sizeof(struct GNSS_SSR_OrbitCorrectionsSupport_r15), - offsetof(struct GNSS_SSR_OrbitCorrectionsSupport_r15, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15 = { - "GNSS-SSR-OrbitCorrectionsSupport-r15", - "GNSS-SSR-OrbitCorrectionsSupport-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15_tags_1, - sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15_tags_1) - /sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15_tags_1) - /sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_SSR_OrbitCorrectionsSupport_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-OrbitCorrectionsSupport-r15.h b/asn.1/generated/GNSS-SSR-OrbitCorrectionsSupport-r15.h deleted file mode 100644 index e030018d..00000000 --- a/asn.1/generated/GNSS-SSR-OrbitCorrectionsSupport-r15.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_SSR_OrbitCorrectionsSupport_r15_H_ -#define _GNSS_SSR_OrbitCorrectionsSupport_r15_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* GNSS-SSR-OrbitCorrectionsSupport-r15 */ -typedef struct GNSS_SSR_OrbitCorrectionsSupport_r15 { - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_SSR_OrbitCorrectionsSupport_r15_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_OrbitCorrectionsSupport_r15_specs_1; - -#ifdef __cplusplus -} -#endif - -#endif /* _GNSS_SSR_OrbitCorrectionsSupport_r15_H_ */ -#include diff --git a/asn.1/generated/GNSS-SSR-PhaseBias-r16.c b/asn.1/generated/GNSS-SSR-PhaseBias-r16.c deleted file mode 100644 index 50549174..00000000 --- a/asn.1/generated/GNSS-SSR-PhaseBias-r16.c +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-PhaseBias-r16.h" - -static int -memb_ssrUpdateInterval_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_iod_ssr_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_ssrUpdateInterval_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_iod_ssr_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_SSR_PhaseBias_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_PhaseBias_r16, epochTime_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SystemTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "epochTime-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_PhaseBias_r16, ssrUpdateInterval_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ssrUpdateInterval_r16_constr_3, memb_ssrUpdateInterval_r16_constraint_1 }, - 0, 0, /* No default value */ - "ssrUpdateInterval-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_PhaseBias_r16, iod_ssr_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_iod_ssr_r16_constr_4, memb_iod_ssr_r16_constraint_1 }, - 0, 0, /* No default value */ - "iod-ssr-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_PhaseBias_r16, ssr_PhaseBiasSatList_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SSR_PhaseBiasSatList_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ssr-PhaseBiasSatList-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_PhaseBias_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_PhaseBias_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ssrUpdateInterval-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* iod-ssr-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ssr-PhaseBiasSatList-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_PhaseBias_r16_specs_1 = { - sizeof(struct GNSS_SSR_PhaseBias_r16), - offsetof(struct GNSS_SSR_PhaseBias_r16, _asn_ctx), - asn_MAP_GNSS_SSR_PhaseBias_r16_tag2el_1, - 4, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_PhaseBias_r16 = { - "GNSS-SSR-PhaseBias-r16", - "GNSS-SSR-PhaseBias-r16", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_PhaseBias_r16_tags_1, - sizeof(asn_DEF_GNSS_SSR_PhaseBias_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_PhaseBias_r16_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_PhaseBias_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_PhaseBias_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_PhaseBias_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SSR_PhaseBias_r16_1, - 4, /* Elements count */ - &asn_SPC_GNSS_SSR_PhaseBias_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-PhaseBiasReq-r16.c b/asn.1/generated/GNSS-SSR-PhaseBiasReq-r16.c deleted file mode 100644 index 04b403a5..00000000 --- a/asn.1/generated/GNSS-SSR-PhaseBiasReq-r16.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-PhaseBiasReq-r16.h" - -asn_TYPE_member_t asn_MBR_GNSS_SSR_PhaseBiasReq_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_PhaseBiasReq_r16, signal_and_tracking_mode_ID_Map_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalIDs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "signal-and-tracking-mode-ID-Map-r16" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_SSR_PhaseBiasReq_r16, storedNavList_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_NavListInfo_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "storedNavList-r16" - }, -}; -static const int asn_MAP_GNSS_SSR_PhaseBiasReq_r16_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_PhaseBiasReq_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_PhaseBiasReq_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* signal-and-tracking-mode-ID-Map-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* storedNavList-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_PhaseBiasReq_r16_specs_1 = { - sizeof(struct GNSS_SSR_PhaseBiasReq_r16), - offsetof(struct GNSS_SSR_PhaseBiasReq_r16, _asn_ctx), - asn_MAP_GNSS_SSR_PhaseBiasReq_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_GNSS_SSR_PhaseBiasReq_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_PhaseBiasReq_r16 = { - "GNSS-SSR-PhaseBiasReq-r16", - "GNSS-SSR-PhaseBiasReq-r16", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_PhaseBiasReq_r16_tags_1, - sizeof(asn_DEF_GNSS_SSR_PhaseBiasReq_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_PhaseBiasReq_r16_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_PhaseBiasReq_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_PhaseBiasReq_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_PhaseBiasReq_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SSR_PhaseBiasReq_r16_1, - 2, /* Elements count */ - &asn_SPC_GNSS_SSR_PhaseBiasReq_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-PhaseBiasReq-r16.h b/asn.1/generated/GNSS-SSR-PhaseBiasReq-r16.h deleted file mode 100644 index 349080f8..00000000 --- a/asn.1/generated/GNSS-SSR-PhaseBiasReq-r16.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_SSR_PhaseBiasReq_r16_H_ -#define _GNSS_SSR_PhaseBiasReq_r16_H_ - - -#include - -/* Including external dependencies */ -#include "GNSS-SignalIDs.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct GNSS_NavListInfo_r15; - -/* GNSS-SSR-PhaseBiasReq-r16 */ -typedef struct GNSS_SSR_PhaseBiasReq_r16 { - GNSS_SignalIDs_t signal_and_tracking_mode_ID_Map_r16; - struct GNSS_NavListInfo_r15 *storedNavList_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_SSR_PhaseBiasReq_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_PhaseBiasReq_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_PhaseBiasReq_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_SSR_PhaseBiasReq_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GNSS-NavListInfo-r15.h" - -#endif /* _GNSS_SSR_PhaseBiasReq_r16_H_ */ -#include diff --git a/asn.1/generated/GNSS-SSR-PhaseBiasSupport-r16.c b/asn.1/generated/GNSS-SSR-PhaseBiasSupport-r16.c deleted file mode 100644 index 6add2957..00000000 --- a/asn.1/generated/GNSS-SSR-PhaseBiasSupport-r16.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-PhaseBiasSupport-r16.h" - -asn_TYPE_member_t asn_MBR_GNSS_SSR_PhaseBiasSupport_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_PhaseBiasSupport_r16, signal_and_tracking_mode_ID_Sup_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalIDs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "signal-and-tracking-mode-ID-Sup-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_PhaseBiasSupport_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_PhaseBiasSupport_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* signal-and-tracking-mode-ID-Sup-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_PhaseBiasSupport_r16_specs_1 = { - sizeof(struct GNSS_SSR_PhaseBiasSupport_r16), - offsetof(struct GNSS_SSR_PhaseBiasSupport_r16, _asn_ctx), - asn_MAP_GNSS_SSR_PhaseBiasSupport_r16_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_PhaseBiasSupport_r16 = { - "GNSS-SSR-PhaseBiasSupport-r16", - "GNSS-SSR-PhaseBiasSupport-r16", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_PhaseBiasSupport_r16_tags_1, - sizeof(asn_DEF_GNSS_SSR_PhaseBiasSupport_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_PhaseBiasSupport_r16_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_PhaseBiasSupport_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_PhaseBiasSupport_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_PhaseBiasSupport_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SSR_PhaseBiasSupport_r16_1, - 1, /* Elements count */ - &asn_SPC_GNSS_SSR_PhaseBiasSupport_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-PhaseBiasSupport-r16.h b/asn.1/generated/GNSS-SSR-PhaseBiasSupport-r16.h deleted file mode 100644 index 18270802..00000000 --- a/asn.1/generated/GNSS-SSR-PhaseBiasSupport-r16.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_SSR_PhaseBiasSupport_r16_H_ -#define _GNSS_SSR_PhaseBiasSupport_r16_H_ - - -#include - -/* Including external dependencies */ -#include "GNSS-SignalIDs.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* GNSS-SSR-PhaseBiasSupport-r16 */ -typedef struct GNSS_SSR_PhaseBiasSupport_r16 { - GNSS_SignalIDs_t signal_and_tracking_mode_ID_Sup_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_SSR_PhaseBiasSupport_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_PhaseBiasSupport_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_PhaseBiasSupport_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_SSR_PhaseBiasSupport_r16_1[1]; - -#ifdef __cplusplus -} -#endif - -#endif /* _GNSS_SSR_PhaseBiasSupport_r16_H_ */ -#include diff --git a/asn.1/generated/GNSS-SSR-STEC-Correction-r16.c b/asn.1/generated/GNSS-SSR-STEC-Correction-r16.c deleted file mode 100644 index f6d43e6c..00000000 --- a/asn.1/generated/GNSS-SSR-STEC-Correction-r16.c +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-STEC-Correction-r16.h" - -static int -memb_ssrUpdateInterval_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_iod_ssr_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_correctionPointSetID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_ssrUpdateInterval_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_iod_ssr_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_correctionPointSetID_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_SSR_STEC_Correction_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_STEC_Correction_r16, epochTime_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SystemTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "epochTime-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_STEC_Correction_r16, ssrUpdateInterval_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ssrUpdateInterval_r16_constr_3, memb_ssrUpdateInterval_r16_constraint_1 }, - 0, 0, /* No default value */ - "ssrUpdateInterval-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_STEC_Correction_r16, iod_ssr_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_iod_ssr_r16_constr_4, memb_iod_ssr_r16_constraint_1 }, - 0, 0, /* No default value */ - "iod-ssr-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_STEC_Correction_r16, correctionPointSetID_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_correctionPointSetID_r16_constr_5, memb_correctionPointSetID_r16_constraint_1 }, - 0, 0, /* No default value */ - "correctionPointSetID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_STEC_Correction_r16, stec_SatList_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_STEC_SatList_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "stec-SatList-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_STEC_Correction_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_STEC_Correction_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ssrUpdateInterval-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* iod-ssr-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* correctionPointSetID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* stec-SatList-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_STEC_Correction_r16_specs_1 = { - sizeof(struct GNSS_SSR_STEC_Correction_r16), - offsetof(struct GNSS_SSR_STEC_Correction_r16, _asn_ctx), - asn_MAP_GNSS_SSR_STEC_Correction_r16_tag2el_1, - 5, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_STEC_Correction_r16 = { - "GNSS-SSR-STEC-Correction-r16", - "GNSS-SSR-STEC-Correction-r16", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_STEC_Correction_r16_tags_1, - sizeof(asn_DEF_GNSS_SSR_STEC_Correction_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_STEC_Correction_r16_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_STEC_Correction_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_STEC_Correction_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_STEC_Correction_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SSR_STEC_Correction_r16_1, - 5, /* Elements count */ - &asn_SPC_GNSS_SSR_STEC_Correction_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-STEC-Correction-r16.h b/asn.1/generated/GNSS-SSR-STEC-Correction-r16.h deleted file mode 100644 index 2b0663a9..00000000 --- a/asn.1/generated/GNSS-SSR-STEC-Correction-r16.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_SSR_STEC_Correction_r16_H_ -#define _GNSS_SSR_STEC_Correction_r16_H_ - - -#include - -/* Including external dependencies */ -#include "GNSS-SystemTime.h" -#include -#include "STEC-SatList-r16.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* GNSS-SSR-STEC-Correction-r16 */ -typedef struct GNSS_SSR_STEC_Correction_r16 { - GNSS_SystemTime_t epochTime_r16; - long ssrUpdateInterval_r16; - long iod_ssr_r16; - long correctionPointSetID_r16; - STEC_SatList_r16_t stec_SatList_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_SSR_STEC_Correction_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_STEC_Correction_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_STEC_Correction_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_SSR_STEC_Correction_r16_1[5]; - -#ifdef __cplusplus -} -#endif - -#endif /* _GNSS_SSR_STEC_Correction_r16_H_ */ -#include diff --git a/asn.1/generated/GNSS-SSR-STEC-CorrectionReq-r16.c b/asn.1/generated/GNSS-SSR-STEC-CorrectionReq-r16.c deleted file mode 100644 index 321438fa..00000000 --- a/asn.1/generated/GNSS-SSR-STEC-CorrectionReq-r16.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-STEC-CorrectionReq-r16.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_STEC_CorrectionReq_r16_specs_1 = { - sizeof(struct GNSS_SSR_STEC_CorrectionReq_r16), - offsetof(struct GNSS_SSR_STEC_CorrectionReq_r16, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16 = { - "GNSS-SSR-STEC-CorrectionReq-r16", - "GNSS-SSR-STEC-CorrectionReq-r16", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16_tags_1, - sizeof(asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_SSR_STEC_CorrectionReq_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-STEC-CorrectionReq-r16.h b/asn.1/generated/GNSS-SSR-STEC-CorrectionReq-r16.h deleted file mode 100644 index d0faada9..00000000 --- a/asn.1/generated/GNSS-SSR-STEC-CorrectionReq-r16.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_SSR_STEC_CorrectionReq_r16_H_ -#define _GNSS_SSR_STEC_CorrectionReq_r16_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* GNSS-SSR-STEC-CorrectionReq-r16 */ -typedef struct GNSS_SSR_STEC_CorrectionReq_r16 { - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_SSR_STEC_CorrectionReq_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_STEC_CorrectionReq_r16_specs_1; - -#ifdef __cplusplus -} -#endif - -#endif /* _GNSS_SSR_STEC_CorrectionReq_r16_H_ */ -#include diff --git a/asn.1/generated/GNSS-SSR-STEC-CorrectionSupport-r16.c b/asn.1/generated/GNSS-SSR-STEC-CorrectionSupport-r16.c deleted file mode 100644 index 01abe7e3..00000000 --- a/asn.1/generated/GNSS-SSR-STEC-CorrectionSupport-r16.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-STEC-CorrectionSupport-r16.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_STEC_CorrectionSupport_r16_specs_1 = { - sizeof(struct GNSS_SSR_STEC_CorrectionSupport_r16), - offsetof(struct GNSS_SSR_STEC_CorrectionSupport_r16, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16 = { - "GNSS-SSR-STEC-CorrectionSupport-r16", - "GNSS-SSR-STEC-CorrectionSupport-r16", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16_tags_1, - sizeof(asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_SSR_STEC_CorrectionSupport_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-STEC-CorrectionSupport-r16.h b/asn.1/generated/GNSS-SSR-STEC-CorrectionSupport-r16.h deleted file mode 100644 index 5e79f3da..00000000 --- a/asn.1/generated/GNSS-SSR-STEC-CorrectionSupport-r16.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_SSR_STEC_CorrectionSupport_r16_H_ -#define _GNSS_SSR_STEC_CorrectionSupport_r16_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* GNSS-SSR-STEC-CorrectionSupport-r16 */ -typedef struct GNSS_SSR_STEC_CorrectionSupport_r16 { - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_SSR_STEC_CorrectionSupport_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_STEC_CorrectionSupport_r16_specs_1; - -#ifdef __cplusplus -} -#endif - -#endif /* _GNSS_SSR_STEC_CorrectionSupport_r16_H_ */ -#include diff --git a/asn.1/generated/GNSS-SSR-URA-Req-r16.c b/asn.1/generated/GNSS-SSR-URA-Req-r16.c deleted file mode 100644 index b13ed918..00000000 --- a/asn.1/generated/GNSS-SSR-URA-Req-r16.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-URA-Req-r16.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_URA_Req_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_URA_Req_r16_specs_1 = { - sizeof(struct GNSS_SSR_URA_Req_r16), - offsetof(struct GNSS_SSR_URA_Req_r16, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_URA_Req_r16 = { - "GNSS-SSR-URA-Req-r16", - "GNSS-SSR-URA-Req-r16", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_URA_Req_r16_tags_1, - sizeof(asn_DEF_GNSS_SSR_URA_Req_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_URA_Req_r16_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_URA_Req_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_URA_Req_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_URA_Req_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_SSR_URA_Req_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-URA-Support-r16.c b/asn.1/generated/GNSS-SSR-URA-Support-r16.c deleted file mode 100644 index cf3bf3a8..00000000 --- a/asn.1/generated/GNSS-SSR-URA-Support-r16.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-URA-Support-r16.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_URA_Support_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_URA_Support_r16_specs_1 = { - sizeof(struct GNSS_SSR_URA_Support_r16), - offsetof(struct GNSS_SSR_URA_Support_r16, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_URA_Support_r16 = { - "GNSS-SSR-URA-Support-r16", - "GNSS-SSR-URA-Support-r16", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_URA_Support_r16_tags_1, - sizeof(asn_DEF_GNSS_SSR_URA_Support_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_URA_Support_r16_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_URA_Support_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_URA_Support_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_URA_Support_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_SSR_URA_Support_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SSR-URA-r16.c b/asn.1/generated/GNSS-SSR-URA-r16.c deleted file mode 100644 index f5e8e883..00000000 --- a/asn.1/generated/GNSS-SSR-URA-r16.c +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SSR-URA-r16.h" - -static int -memb_ssrUpdateInterval_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_iod_ssr_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_ssrUpdateInterval_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_iod_ssr_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_SSR_URA_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_URA_r16, epochTime_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SystemTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "epochTime-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_URA_r16, ssrUpdateInterval_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ssrUpdateInterval_r16_constr_3, memb_ssrUpdateInterval_r16_constraint_1 }, - 0, 0, /* No default value */ - "ssrUpdateInterval-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_URA_r16, iod_ssr_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_iod_ssr_r16_constr_4, memb_iod_ssr_r16_constraint_1 }, - 0, 0, /* No default value */ - "iod-ssr-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_URA_r16, ssr_URA_SatList_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SSR_URA_SatList_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ssr-URA-SatList-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_SSR_URA_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_URA_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ssrUpdateInterval-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* iod-ssr-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ssr-URA-SatList-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_URA_r16_specs_1 = { - sizeof(struct GNSS_SSR_URA_r16), - offsetof(struct GNSS_SSR_URA_r16, _asn_ctx), - asn_MAP_GNSS_SSR_URA_r16_tag2el_1, - 4, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_URA_r16 = { - "GNSS-SSR-URA-r16", - "GNSS-SSR-URA-r16", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SSR_URA_r16_tags_1, - sizeof(asn_DEF_GNSS_SSR_URA_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_URA_r16_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SSR_URA_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SSR_URA_r16_tags_1) - /sizeof(asn_DEF_GNSS_SSR_URA_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SSR_URA_r16_1, - 4, /* Elements count */ - &asn_SPC_GNSS_SSR_URA_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SatMeasElement.c b/asn.1/generated/GNSS-SatMeasElement.c deleted file mode 100644 index a810aeea..00000000 --- a/asn.1/generated/GNSS-SatMeasElement.c +++ /dev/null @@ -1,615 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SatMeasElement.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_adrMSB_r15_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_adrRMSerror_r15_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_delta_codePhase_r15_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 7)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cNo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_carrierQualityInd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_codePhase_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2097151)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_integerCodePhase_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_codePhaseRMSError_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_doppler_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_adr_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 33554431)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_mpathDet_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_adrSign_r15_constr_19 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_adrMSB_r15_constr_18 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_adrRMSerror_r15_constr_22 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_delta_codePhase_r15_constr_23 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cNo_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_carrierQualityInd_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_codePhase_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, 0, 2097151 } /* (0..2097151) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_integerCodePhase_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_codePhaseRMSError_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_doppler_constr_14 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_adr_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 25, -1, 0, 33554431 } /* (0..33554431) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_mpathDet_value2enum_4[] = { - { 0, 11, "notMeasured" }, - { 1, 3, "low" }, - { 2, 6, "medium" }, - { 3, 4, "high" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_mpathDet_enum2value_4[] = { - 3, /* high(3) */ - 1, /* low(1) */ - 2, /* medium(2) */ - 0 /* notMeasured(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_mpathDet_specs_4 = { - asn_MAP_mpathDet_value2enum_4, /* "tag" => N; sorted by tag */ - asn_MAP_mpathDet_enum2value_4, /* N => "tag"; sorted by N */ - 4, /* Number of elements in the maps */ - 5, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_mpathDet_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_mpathDet_4 = { - "mpathDet", - "mpathDet", - &asn_OP_NativeEnumerated, - asn_DEF_mpathDet_tags_4, - sizeof(asn_DEF_mpathDet_tags_4) - /sizeof(asn_DEF_mpathDet_tags_4[0]) - 1, /* 1 */ - asn_DEF_mpathDet_tags_4, /* Same as above */ - sizeof(asn_DEF_mpathDet_tags_4) - /sizeof(asn_DEF_mpathDet_tags_4[0]), /* 2 */ - { 0, &asn_PER_type_mpathDet_constr_4, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_mpathDet_specs_4 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_adrSign_r15_value2enum_19[] = { - { 0, 8, "positive" }, - { 1, 8, "negative" } -}; -static const unsigned int asn_MAP_adrSign_r15_enum2value_19[] = { - 1, /* negative(1) */ - 0 /* positive(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_adrSign_r15_specs_19 = { - asn_MAP_adrSign_r15_value2enum_19, /* "tag" => N; sorted by tag */ - asn_MAP_adrSign_r15_enum2value_19, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_adrSign_r15_tags_19[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_adrSign_r15_19 = { - "adrSign-r15", - "adrSign-r15", - &asn_OP_NativeEnumerated, - asn_DEF_adrSign_r15_tags_19, - sizeof(asn_DEF_adrSign_r15_tags_19) - /sizeof(asn_DEF_adrSign_r15_tags_19[0]) - 1, /* 1 */ - asn_DEF_adrSign_r15_tags_19, /* Same as above */ - sizeof(asn_DEF_adrSign_r15_tags_19) - /sizeof(asn_DEF_adrSign_r15_tags_19[0]), /* 2 */ - { 0, &asn_PER_type_adrSign_r15_constr_19, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_adrSign_r15_specs_19 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_17[] = { - { ATF_POINTER, 4, offsetof(struct GNSS_SatMeasElement__ext1, adrMSB_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_adrMSB_r15_constr_18, memb_adrMSB_r15_constraint_17 }, - 0, 0, /* No default value */ - "adrMSB-r15" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_SatMeasElement__ext1, adrSign_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_adrSign_r15_19, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "adrSign-r15" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_SatMeasElement__ext1, adrRMSerror_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_adrRMSerror_r15_constr_22, memb_adrRMSerror_r15_constraint_17 }, - 0, 0, /* No default value */ - "adrRMSerror-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_SatMeasElement__ext1, delta_codePhase_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_delta_codePhase_r15_constr_23, memb_delta_codePhase_r15_constraint_17 }, - 0, 0, /* No default value */ - "delta-codePhase-r15" - }, -}; -static const int asn_MAP_ext1_oms_17[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_17[] = { - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_17[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* adrMSB-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* adrSign-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* adrRMSerror-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* delta-codePhase-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_17 = { - sizeof(struct GNSS_SatMeasElement__ext1), - offsetof(struct GNSS_SatMeasElement__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_17, - 4, /* Count of tags in the map */ - asn_MAP_ext1_oms_17, /* Optional members */ - 4, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_17 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_17, - sizeof(asn_DEF_ext1_tags_17) - /sizeof(asn_DEF_ext1_tags_17[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_17, /* Same as above */ - sizeof(asn_DEF_ext1_tags_17) - /sizeof(asn_DEF_ext1_tags_17[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_17, - 4, /* Elements count */ - &asn_SPC_ext1_specs_17 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_SatMeasElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SatMeasElement, svID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SatMeasElement, cNo), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cNo_constr_3, memb_cNo_constraint_1 }, - 0, 0, /* No default value */ - "cNo" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SatMeasElement, mpathDet), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_mpathDet_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mpathDet" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_SatMeasElement, carrierQualityInd), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_carrierQualityInd_constr_10, memb_carrierQualityInd_constraint_1 }, - 0, 0, /* No default value */ - "carrierQualityInd" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SatMeasElement, codePhase), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_codePhase_constr_11, memb_codePhase_constraint_1 }, - 0, 0, /* No default value */ - "codePhase" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_SatMeasElement, integerCodePhase), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_integerCodePhase_constr_12, memb_integerCodePhase_constraint_1 }, - 0, 0, /* No default value */ - "integerCodePhase" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SatMeasElement, codePhaseRMSError), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_codePhaseRMSError_constr_13, memb_codePhaseRMSError_constraint_1 }, - 0, 0, /* No default value */ - "codePhaseRMSError" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_SatMeasElement, doppler), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_doppler_constr_14, memb_doppler_constraint_1 }, - 0, 0, /* No default value */ - "doppler" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_SatMeasElement, adr), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_adr_constr_15, memb_adr_constraint_1 }, - 0, 0, /* No default value */ - "adr" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_SatMeasElement, ext1), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - 0, - &asn_DEF_ext1_17, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_GNSS_SatMeasElement_oms_1[] = { 3, 5, 7, 8, 9 }; -static const ber_tlv_tag_t asn_DEF_GNSS_SatMeasElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SatMeasElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cNo */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* mpathDet */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* carrierQualityInd */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* codePhase */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* integerCodePhase */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* codePhaseRMSError */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* doppler */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* adr */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SatMeasElement_specs_1 = { - sizeof(struct GNSS_SatMeasElement), - offsetof(struct GNSS_SatMeasElement, _asn_ctx), - asn_MAP_GNSS_SatMeasElement_tag2el_1, - 10, /* Count of tags in the map */ - asn_MAP_GNSS_SatMeasElement_oms_1, /* Optional members */ - 4, 1, /* Root/Additions */ - 9, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SatMeasElement = { - "GNSS-SatMeasElement", - "GNSS-SatMeasElement", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SatMeasElement_tags_1, - sizeof(asn_DEF_GNSS_SatMeasElement_tags_1) - /sizeof(asn_DEF_GNSS_SatMeasElement_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SatMeasElement_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SatMeasElement_tags_1) - /sizeof(asn_DEF_GNSS_SatMeasElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SatMeasElement_1, - 10, /* Elements count */ - &asn_SPC_GNSS_SatMeasElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SatMeasList.c b/asn.1/generated/GNSS-SatMeasList.c deleted file mode 100644 index 6c628312..00000000 --- a/asn.1/generated/GNSS-SatMeasList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SatMeasList.h" - -asn_per_constraints_t asn_PER_type_GNSS_SatMeasList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_SatMeasList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_SatMeasElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_SatMeasList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_SatMeasList_specs_1 = { - sizeof(struct GNSS_SatMeasList), - offsetof(struct GNSS_SatMeasList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SatMeasList = { - "GNSS-SatMeasList", - "GNSS-SatMeasList", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_SatMeasList_tags_1, - sizeof(asn_DEF_GNSS_SatMeasList_tags_1) - /sizeof(asn_DEF_GNSS_SatMeasList_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SatMeasList_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SatMeasList_tags_1) - /sizeof(asn_DEF_GNSS_SatMeasList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_SatMeasList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_SatMeasList_1, - 1, /* Single element */ - &asn_SPC_GNSS_SatMeasList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SgnMeasElement.c b/asn.1/generated/GNSS-SgnMeasElement.c deleted file mode 100644 index e3175a3c..00000000 --- a/asn.1/generated/GNSS-SgnMeasElement.c +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SgnMeasElement.h" - -static int -memb_gnss_CodePhaseAmbiguity_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gnss_CodePhaseAmbiguity_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_SgnMeasElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SgnMeasElement, gnss_SignalID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SignalID" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_SgnMeasElement, gnss_CodePhaseAmbiguity), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_CodePhaseAmbiguity_constr_3, memb_gnss_CodePhaseAmbiguity_constraint_1 }, - 0, 0, /* No default value */ - "gnss-CodePhaseAmbiguity" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SgnMeasElement, gnss_SatMeasList), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SatMeasList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-SatMeasList" - }, -}; -static const int asn_MAP_GNSS_SgnMeasElement_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_GNSS_SgnMeasElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SgnMeasElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SignalID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-CodePhaseAmbiguity */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gnss-SatMeasList */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SgnMeasElement_specs_1 = { - sizeof(struct GNSS_SgnMeasElement), - offsetof(struct GNSS_SgnMeasElement, _asn_ctx), - asn_MAP_GNSS_SgnMeasElement_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_GNSS_SgnMeasElement_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SgnMeasElement = { - "GNSS-SgnMeasElement", - "GNSS-SgnMeasElement", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SgnMeasElement_tags_1, - sizeof(asn_DEF_GNSS_SgnMeasElement_tags_1) - /sizeof(asn_DEF_GNSS_SgnMeasElement_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SgnMeasElement_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SgnMeasElement_tags_1) - /sizeof(asn_DEF_GNSS_SgnMeasElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SgnMeasElement_1, - 3, /* Elements count */ - &asn_SPC_GNSS_SgnMeasElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SgnMeasList.c b/asn.1/generated/GNSS-SgnMeasList.c deleted file mode 100644 index cd201665..00000000 --- a/asn.1/generated/GNSS-SgnMeasList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SgnMeasList.h" - -asn_per_constraints_t asn_PER_type_GNSS_SgnMeasList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_SgnMeasList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_SgnMeasElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_SgnMeasList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_SgnMeasList_specs_1 = { - sizeof(struct GNSS_SgnMeasList), - offsetof(struct GNSS_SgnMeasList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SgnMeasList = { - "GNSS-SgnMeasList", - "GNSS-SgnMeasList", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_SgnMeasList_tags_1, - sizeof(asn_DEF_GNSS_SgnMeasList_tags_1) - /sizeof(asn_DEF_GNSS_SgnMeasList_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SgnMeasList_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SgnMeasList_tags_1) - /sizeof(asn_DEF_GNSS_SgnMeasList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_SgnMeasList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_SgnMeasList_1, - 1, /* Single element */ - &asn_SPC_GNSS_SgnMeasList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SignalID.c b/asn.1/generated/GNSS-SignalID.c deleted file mode 100644 index 7d364e0e..00000000 --- a/asn.1/generated/GNSS-SignalID.c +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SignalID.h" - -static int -memb_gnss_SignalID_Ext_r15_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 8 && value <= 23)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gnss_SignalID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 7)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gnss_SignalID_Ext_r15_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 8, 23 } /* (8..23) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_SignalID_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_ext1_4[] = { - { ATF_POINTER, 1, offsetof(struct GNSS_SignalID__ext1, gnss_SignalID_Ext_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_SignalID_Ext_r15_constr_5, memb_gnss_SignalID_Ext_r15_constraint_4 }, - 0, 0, /* No default value */ - "gnss-SignalID-Ext-r15" - }, -}; -static const int asn_MAP_ext1_oms_4[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-SignalID-Ext-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { - sizeof(struct GNSS_SignalID__ext1), - offsetof(struct GNSS_SignalID__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_4, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_4, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_4 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_4, - sizeof(asn_DEF_ext1_tags_4) - /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_4, /* Same as above */ - sizeof(asn_DEF_ext1_tags_4) - /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_4, - 1, /* Elements count */ - &asn_SPC_ext1_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_SignalID_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SignalID, gnss_SignalID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_SignalID_constr_2, memb_gnss_SignalID_constraint_1 }, - 0, 0, /* No default value */ - "gnss-SignalID" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_SignalID, ext1), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_ext1_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_GNSS_SignalID_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_GNSS_SignalID_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SignalID_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SignalID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SignalID_specs_1 = { - sizeof(struct GNSS_SignalID), - offsetof(struct GNSS_SignalID, _asn_ctx), - asn_MAP_GNSS_SignalID_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_GNSS_SignalID_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SignalID = { - "GNSS-SignalID", - "GNSS-SignalID", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SignalID_tags_1, - sizeof(asn_DEF_GNSS_SignalID_tags_1) - /sizeof(asn_DEF_GNSS_SignalID_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SignalID_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SignalID_tags_1) - /sizeof(asn_DEF_GNSS_SignalID_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SignalID_1, - 2, /* Elements count */ - &asn_SPC_GNSS_SignalID_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SignalIDs.c b/asn.1/generated/GNSS-SignalIDs.c deleted file mode 100644 index a6103451..00000000 --- a/asn.1/generated/GNSS-SignalIDs.c +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SignalIDs.h" - -static int -memb_gnss_SignalIDs_Ext_r15_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 16)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gnss_SignalIDs_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gnss_SignalIDs_Ext_r15_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_SignalIDs_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_ext1_4[] = { - { ATF_POINTER, 1, offsetof(struct GNSS_SignalIDs__ext1, gnss_SignalIDs_Ext_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_gnss_SignalIDs_Ext_r15_constr_5, memb_gnss_SignalIDs_Ext_r15_constraint_4 }, - 0, 0, /* No default value */ - "gnss-SignalIDs-Ext-r15" - }, -}; -static const int asn_MAP_ext1_oms_4[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-SignalIDs-Ext-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { - sizeof(struct GNSS_SignalIDs__ext1), - offsetof(struct GNSS_SignalIDs__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_4, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_4, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_4 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_4, - sizeof(asn_DEF_ext1_tags_4) - /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_4, /* Same as above */ - sizeof(asn_DEF_ext1_tags_4) - /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_4, - 1, /* Elements count */ - &asn_SPC_ext1_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_SignalIDs_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SignalIDs, gnss_SignalIDs), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_gnss_SignalIDs_constr_2, memb_gnss_SignalIDs_constraint_1 }, - 0, 0, /* No default value */ - "gnss-SignalIDs" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_SignalIDs, ext1), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_ext1_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_GNSS_SignalIDs_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_GNSS_SignalIDs_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SignalIDs_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SignalIDs */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SignalIDs_specs_1 = { - sizeof(struct GNSS_SignalIDs), - offsetof(struct GNSS_SignalIDs, _asn_ctx), - asn_MAP_GNSS_SignalIDs_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_GNSS_SignalIDs_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SignalIDs = { - "GNSS-SignalIDs", - "GNSS-SignalIDs", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SignalIDs_tags_1, - sizeof(asn_DEF_GNSS_SignalIDs_tags_1) - /sizeof(asn_DEF_GNSS_SignalIDs_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SignalIDs_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SignalIDs_tags_1) - /sizeof(asn_DEF_GNSS_SignalIDs_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SignalIDs_1, - 2, /* Elements count */ - &asn_SPC_GNSS_SignalIDs_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SignalMeasurementInformation.c b/asn.1/generated/GNSS-SignalMeasurementInformation.c deleted file mode 100644 index a3cf808e..00000000 --- a/asn.1/generated/GNSS-SignalMeasurementInformation.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SignalMeasurementInformation.h" - -asn_TYPE_member_t asn_MBR_GNSS_SignalMeasurementInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SignalMeasurementInformation, measurementReferenceTime), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MeasurementReferenceTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "measurementReferenceTime" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SignalMeasurementInformation, gnss_MeasurementList), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_MeasurementList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-MeasurementList" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_SignalMeasurementInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SignalMeasurementInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* measurementReferenceTime */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-MeasurementList */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SignalMeasurementInformation_specs_1 = { - sizeof(struct GNSS_SignalMeasurementInformation), - offsetof(struct GNSS_SignalMeasurementInformation, _asn_ctx), - asn_MAP_GNSS_SignalMeasurementInformation_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SignalMeasurementInformation = { - "GNSS-SignalMeasurementInformation", - "GNSS-SignalMeasurementInformation", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SignalMeasurementInformation_tags_1, - sizeof(asn_DEF_GNSS_SignalMeasurementInformation_tags_1) - /sizeof(asn_DEF_GNSS_SignalMeasurementInformation_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SignalMeasurementInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SignalMeasurementInformation_tags_1) - /sizeof(asn_DEF_GNSS_SignalMeasurementInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SignalMeasurementInformation_1, - 2, /* Elements count */ - &asn_SPC_GNSS_SignalMeasurementInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SubNetworkID-r15.c b/asn.1/generated/GNSS-SubNetworkID-r15.c deleted file mode 100644 index c30f6c7f..00000000 --- a/asn.1/generated/GNSS-SubNetworkID-r15.c +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SubNetworkID-r15.h" - -static int -memb_subNetworkID_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_subNetworkID_r15_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_SubNetworkID_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SubNetworkID_r15, subNetworkID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_subNetworkID_r15_constr_2, memb_subNetworkID_r15_constraint_1 }, - 0, 0, /* No default value */ - "subNetworkID-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_SubNetworkID_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SubNetworkID_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* subNetworkID-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SubNetworkID_r15_specs_1 = { - sizeof(struct GNSS_SubNetworkID_r15), - offsetof(struct GNSS_SubNetworkID_r15, _asn_ctx), - asn_MAP_GNSS_SubNetworkID_r15_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SubNetworkID_r15 = { - "GNSS-SubNetworkID-r15", - "GNSS-SubNetworkID-r15", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SubNetworkID_r15_tags_1, - sizeof(asn_DEF_GNSS_SubNetworkID_r15_tags_1) - /sizeof(asn_DEF_GNSS_SubNetworkID_r15_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SubNetworkID_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SubNetworkID_r15_tags_1) - /sizeof(asn_DEF_GNSS_SubNetworkID_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SubNetworkID_r15_1, - 1, /* Elements count */ - &asn_SPC_GNSS_SubNetworkID_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SupportElement.c b/asn.1/generated/GNSS-SupportElement.c deleted file mode 100644 index 10934bc4..00000000 --- a/asn.1/generated/GNSS-SupportElement.c +++ /dev/null @@ -1,274 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SupportElement.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_adrEnhancementsSupport_r15_constr_14 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_fta_MeasSupport_6[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SupportElement__fta_MeasSupport, cellTime), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AccessTypes, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellTime" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SupportElement__fta_MeasSupport, mode), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PositioningModes, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mode" - }, -}; -static const ber_tlv_tag_t asn_DEF_fta_MeasSupport_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_fta_MeasSupport_tag2el_6[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellTime */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* mode */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_fta_MeasSupport_specs_6 = { - sizeof(struct GNSS_SupportElement__fta_MeasSupport), - offsetof(struct GNSS_SupportElement__fta_MeasSupport, _asn_ctx), - asn_MAP_fta_MeasSupport_tag2el_6, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_fta_MeasSupport_6 = { - "fta-MeasSupport", - "fta-MeasSupport", - &asn_OP_SEQUENCE, - asn_DEF_fta_MeasSupport_tags_6, - sizeof(asn_DEF_fta_MeasSupport_tags_6) - /sizeof(asn_DEF_fta_MeasSupport_tags_6[0]) - 1, /* 1 */ - asn_DEF_fta_MeasSupport_tags_6, /* Same as above */ - sizeof(asn_DEF_fta_MeasSupport_tags_6) - /sizeof(asn_DEF_fta_MeasSupport_tags_6[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_fta_MeasSupport_6, - 2, /* Elements count */ - &asn_SPC_fta_MeasSupport_specs_6 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_adrEnhancementsSupport_r15_value2enum_14[] = { - { 0, 4, "true" } -}; -static const unsigned int asn_MAP_adrEnhancementsSupport_r15_enum2value_14[] = { - 0 /* true(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_adrEnhancementsSupport_r15_specs_14 = { - asn_MAP_adrEnhancementsSupport_r15_value2enum_14, /* "tag" => N; sorted by tag */ - asn_MAP_adrEnhancementsSupport_r15_enum2value_14, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_adrEnhancementsSupport_r15_tags_14[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_adrEnhancementsSupport_r15_14 = { - "adrEnhancementsSupport-r15", - "adrEnhancementsSupport-r15", - &asn_OP_NativeEnumerated, - asn_DEF_adrEnhancementsSupport_r15_tags_14, - sizeof(asn_DEF_adrEnhancementsSupport_r15_tags_14) - /sizeof(asn_DEF_adrEnhancementsSupport_r15_tags_14[0]) - 1, /* 1 */ - asn_DEF_adrEnhancementsSupport_r15_tags_14, /* Same as above */ - sizeof(asn_DEF_adrEnhancementsSupport_r15_tags_14) - /sizeof(asn_DEF_adrEnhancementsSupport_r15_tags_14[0]), /* 2 */ - { 0, &asn_PER_type_adrEnhancementsSupport_r15_constr_14, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_adrEnhancementsSupport_r15_specs_14 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_13[] = { - { ATF_POINTER, 2, offsetof(struct GNSS_SupportElement__ext1, adrEnhancementsSupport_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_adrEnhancementsSupport_r15_14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "adrEnhancementsSupport-r15" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_SupportElement__ext1, ha_gnss_Modes_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PositioningModes, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ha-gnss-Modes-r15" - }, -}; -static const int asn_MAP_ext1_oms_13[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_13[] = { - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_13[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* adrEnhancementsSupport-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ha-gnss-Modes-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_13 = { - sizeof(struct GNSS_SupportElement__ext1), - offsetof(struct GNSS_SupportElement__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_13, - 2, /* Count of tags in the map */ - asn_MAP_ext1_oms_13, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_13 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_13, - sizeof(asn_DEF_ext1_tags_13) - /sizeof(asn_DEF_ext1_tags_13[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_13, /* Same as above */ - sizeof(asn_DEF_ext1_tags_13) - /sizeof(asn_DEF_ext1_tags_13[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_13, - 2, /* Elements count */ - &asn_SPC_ext1_specs_13 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_SupportElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SupportElement, gnss_ID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-ID" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_SupportElement, sbas_IDs), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SBAS_IDs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sbas-IDs" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SupportElement, agnss_Modes), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PositioningModes, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "agnss-Modes" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SupportElement, gnss_Signals), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalIDs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-Signals" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_SupportElement, fta_MeasSupport), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - 0, - &asn_DEF_fta_MeasSupport_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "fta-MeasSupport" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SupportElement, adr_Support), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "adr-Support" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SupportElement, velocityMeasurementSupport), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "velocityMeasurementSupport" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_SupportElement, ext1), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - 0, - &asn_DEF_ext1_13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_GNSS_SupportElement_oms_1[] = { 1, 4, 7 }; -static const ber_tlv_tag_t asn_DEF_GNSS_SupportElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SupportElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-ID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sbas-IDs */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* agnss-Modes */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-Signals */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* fta-MeasSupport */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* adr-Support */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* velocityMeasurementSupport */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SupportElement_specs_1 = { - sizeof(struct GNSS_SupportElement), - offsetof(struct GNSS_SupportElement, _asn_ctx), - asn_MAP_GNSS_SupportElement_tag2el_1, - 8, /* Count of tags in the map */ - asn_MAP_GNSS_SupportElement_oms_1, /* Optional members */ - 2, 1, /* Root/Additions */ - 7, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SupportElement = { - "GNSS-SupportElement", - "GNSS-SupportElement", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SupportElement_tags_1, - sizeof(asn_DEF_GNSS_SupportElement_tags_1) - /sizeof(asn_DEF_GNSS_SupportElement_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SupportElement_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SupportElement_tags_1) - /sizeof(asn_DEF_GNSS_SupportElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SupportElement_1, - 8, /* Elements count */ - &asn_SPC_GNSS_SupportElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SupportElement.h b/asn.1/generated/GNSS-SupportElement.h deleted file mode 100644 index 8139e312..00000000 --- a/asn.1/generated/GNSS-SupportElement.h +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_SupportElement_H_ -#define _GNSS_SupportElement_H_ - - -#include - -/* Including external dependencies */ -#include "GNSS-ID.h" -#include "PositioningModes.h" -#include "GNSS-SignalIDs.h" -#include -#include "AccessTypes.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum GNSS_SupportElement__ext1__adrEnhancementsSupport_r15 { - GNSS_SupportElement__ext1__adrEnhancementsSupport_r15_true = 0 -} e_GNSS_SupportElement__ext1__adrEnhancementsSupport_r15; - -/* Forward declarations */ -struct SBAS_IDs; -struct PositioningModes; - -/* GNSS-SupportElement */ -typedef struct GNSS_SupportElement { - GNSS_ID_t gnss_ID; - struct SBAS_IDs *sbas_IDs /* OPTIONAL */; - PositioningModes_t agnss_Modes; - GNSS_SignalIDs_t gnss_Signals; - struct GNSS_SupportElement__fta_MeasSupport { - AccessTypes_t cellTime; - PositioningModes_t mode; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *fta_MeasSupport; - BOOLEAN_t adr_Support; - BOOLEAN_t velocityMeasurementSupport; - /* - * This type is extensible, - * possible extensions are below. - */ - struct GNSS_SupportElement__ext1 { - long *adrEnhancementsSupport_r15 /* OPTIONAL */; - struct PositioningModes *ha_gnss_Modes_r15 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_SupportElement_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_adrEnhancementsSupport_r15_14; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_SupportElement; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SupportElement_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_SupportElement_1[8]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "SBAS-IDs.h" -#include "PositioningModes.h" - -#endif /* _GNSS_SupportElement_H_ */ -#include diff --git a/asn.1/generated/GNSS-SupportList.c b/asn.1/generated/GNSS-SupportList.c deleted file mode 100644 index 971b05ed..00000000 --- a/asn.1/generated/GNSS-SupportList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SupportList.h" - -asn_per_constraints_t asn_PER_type_GNSS_SupportList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_SupportList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_SupportElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_SupportList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_SupportList_specs_1 = { - sizeof(struct GNSS_SupportList), - offsetof(struct GNSS_SupportList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SupportList = { - "GNSS-SupportList", - "GNSS-SupportList", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_SupportList_tags_1, - sizeof(asn_DEF_GNSS_SupportList_tags_1) - /sizeof(asn_DEF_GNSS_SupportList_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SupportList_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SupportList_tags_1) - /sizeof(asn_DEF_GNSS_SupportList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_SupportList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_SupportList_1, - 1, /* Single element */ - &asn_SPC_GNSS_SupportList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SystemTime.c b/asn.1/generated/GNSS-SystemTime.c deleted file mode 100644 index 16e31b4a..00000000 --- a/asn.1/generated/GNSS-SystemTime.c +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-SystemTime.h" - -static int -memb_gnss_DayNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gnss_TimeOfDay_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 86399)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gnss_TimeOfDayFrac_msec_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_notificationOfLeapSecond_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 2)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gnss_DayNumber_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_TimeOfDay_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 17, -1, 0, 86399 } /* (0..86399) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_TimeOfDayFrac_msec_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_notificationOfLeapSecond_constr_6 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_SystemTime_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SystemTime, gnss_TimeID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-TimeID" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SystemTime, gnss_DayNumber), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_DayNumber_constr_3, memb_gnss_DayNumber_constraint_1 }, - 0, 0, /* No default value */ - "gnss-DayNumber" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_SystemTime, gnss_TimeOfDay), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_TimeOfDay_constr_4, memb_gnss_TimeOfDay_constraint_1 }, - 0, 0, /* No default value */ - "gnss-TimeOfDay" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_SystemTime, gnss_TimeOfDayFrac_msec), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_TimeOfDayFrac_msec_constr_5, memb_gnss_TimeOfDayFrac_msec_constraint_1 }, - 0, 0, /* No default value */ - "gnss-TimeOfDayFrac-msec" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_SystemTime, notificationOfLeapSecond), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_notificationOfLeapSecond_constr_6, memb_notificationOfLeapSecond_constraint_1 }, - 0, 0, /* No default value */ - "notificationOfLeapSecond" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_SystemTime, gps_TOW_Assist), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GPS_TOW_Assist, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gps-TOW-Assist" - }, -}; -static const int asn_MAP_GNSS_SystemTime_oms_1[] = { 3, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_GNSS_SystemTime_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_SystemTime_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-TimeID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-DayNumber */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-TimeOfDay */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-TimeOfDayFrac-msec */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* notificationOfLeapSecond */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* gps-TOW-Assist */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_SystemTime_specs_1 = { - sizeof(struct GNSS_SystemTime), - offsetof(struct GNSS_SystemTime, _asn_ctx), - asn_MAP_GNSS_SystemTime_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_GNSS_SystemTime_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_SystemTime = { - "GNSS-SystemTime", - "GNSS-SystemTime", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_SystemTime_tags_1, - sizeof(asn_DEF_GNSS_SystemTime_tags_1) - /sizeof(asn_DEF_GNSS_SystemTime_tags_1[0]), /* 1 */ - asn_DEF_GNSS_SystemTime_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_SystemTime_tags_1) - /sizeof(asn_DEF_GNSS_SystemTime_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_SystemTime_1, - 6, /* Elements count */ - &asn_SPC_GNSS_SystemTime_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-SystemTime.h b/asn.1/generated/GNSS-SystemTime.h deleted file mode 100644 index 58fb901c..00000000 --- a/asn.1/generated/GNSS-SystemTime.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_SystemTime_H_ -#define _GNSS_SystemTime_H_ - - -#include - -/* Including external dependencies */ -#include "GNSS-ID.h" -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct GPS_TOW_Assist; - -/* GNSS-SystemTime */ -typedef struct GNSS_SystemTime { - GNSS_ID_t gnss_TimeID; - long gnss_DayNumber; - long gnss_TimeOfDay; - long *gnss_TimeOfDayFrac_msec /* OPTIONAL */; - BIT_STRING_t *notificationOfLeapSecond /* OPTIONAL */; - struct GPS_TOW_Assist *gps_TOW_Assist /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_SystemTime_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_SystemTime; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SystemTime_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_SystemTime_1[6]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GPS-TOW-Assist.h" - -#endif /* _GNSS_SystemTime_H_ */ -#include diff --git a/asn.1/generated/GNSS-TargetDeviceErrorCauses.c b/asn.1/generated/GNSS-TargetDeviceErrorCauses.c deleted file mode 100644 index adc06eb4..00000000 --- a/asn.1/generated/GNSS-TargetDeviceErrorCauses.c +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-TargetDeviceErrorCauses.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 36, "thereWereNotEnoughSatellitesReceived" }, - { 2, 21, "assistanceDataMissing" }, - { 3, 35, "notAllRequestedMeasurementsPossible" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_enum2value_2[] = { - 2, /* assistanceDataMissing(2) */ - 3, /* notAllRequestedMeasurementsPossible(3) */ - 1, /* thereWereNotEnoughSatellitesReceived(1) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_specs_2 = { - asn_MAP_cause_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_enum2value_2, /* N => "tag"; sorted by N */ - 4, /* Number of elements in the maps */ - 5, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_2 = { - "cause", - "cause", - &asn_OP_NativeEnumerated, - asn_DEF_cause_tags_2, - sizeof(asn_DEF_cause_tags_2) - /sizeof(asn_DEF_cause_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_tags_2) - /sizeof(asn_DEF_cause_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_GNSS_TargetDeviceErrorCauses_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_TargetDeviceErrorCauses, cause), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause" - }, - { ATF_POINTER, 3, offsetof(struct GNSS_TargetDeviceErrorCauses, fineTimeAssistanceMeasurementsNotPossible), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "fineTimeAssistanceMeasurementsNotPossible" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_TargetDeviceErrorCauses, adrMeasurementsNotPossible), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "adrMeasurementsNotPossible" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_TargetDeviceErrorCauses, multiFrequencyMeasurementsNotPossible), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "multiFrequencyMeasurementsNotPossible" - }, -}; -static const int asn_MAP_GNSS_TargetDeviceErrorCauses_oms_1[] = { 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_GNSS_TargetDeviceErrorCauses_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_TargetDeviceErrorCauses_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* fineTimeAssistanceMeasurementsNotPossible */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* adrMeasurementsNotPossible */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* multiFrequencyMeasurementsNotPossible */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_TargetDeviceErrorCauses_specs_1 = { - sizeof(struct GNSS_TargetDeviceErrorCauses), - offsetof(struct GNSS_TargetDeviceErrorCauses, _asn_ctx), - asn_MAP_GNSS_TargetDeviceErrorCauses_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_GNSS_TargetDeviceErrorCauses_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_TargetDeviceErrorCauses = { - "GNSS-TargetDeviceErrorCauses", - "GNSS-TargetDeviceErrorCauses", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_TargetDeviceErrorCauses_tags_1, - sizeof(asn_DEF_GNSS_TargetDeviceErrorCauses_tags_1) - /sizeof(asn_DEF_GNSS_TargetDeviceErrorCauses_tags_1[0]), /* 1 */ - asn_DEF_GNSS_TargetDeviceErrorCauses_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_TargetDeviceErrorCauses_tags_1) - /sizeof(asn_DEF_GNSS_TargetDeviceErrorCauses_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_TargetDeviceErrorCauses_1, - 4, /* Elements count */ - &asn_SPC_GNSS_TargetDeviceErrorCauses_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-TargetDeviceErrorCauses.h b/asn.1/generated/GNSS-TargetDeviceErrorCauses.h deleted file mode 100644 index c8de928c..00000000 --- a/asn.1/generated/GNSS-TargetDeviceErrorCauses.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_TargetDeviceErrorCauses_H_ -#define _GNSS_TargetDeviceErrorCauses_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum GNSS_TargetDeviceErrorCauses__cause { - GNSS_TargetDeviceErrorCauses__cause_undefined = 0, - GNSS_TargetDeviceErrorCauses__cause_thereWereNotEnoughSatellitesReceived = 1, - GNSS_TargetDeviceErrorCauses__cause_assistanceDataMissing = 2, - GNSS_TargetDeviceErrorCauses__cause_notAllRequestedMeasurementsPossible = 3 - /* - * Enumeration is extensible - */ -} e_GNSS_TargetDeviceErrorCauses__cause; - -/* GNSS-TargetDeviceErrorCauses */ -typedef struct GNSS_TargetDeviceErrorCauses { - long cause; - NULL_t *fineTimeAssistanceMeasurementsNotPossible /* OPTIONAL */; - NULL_t *adrMeasurementsNotPossible /* OPTIONAL */; - NULL_t *multiFrequencyMeasurementsNotPossible /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_TargetDeviceErrorCauses_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_cause_2; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_TargetDeviceErrorCauses; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_TargetDeviceErrorCauses_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_TargetDeviceErrorCauses_1[4]; - -#ifdef __cplusplus -} -#endif - -#endif /* _GNSS_TargetDeviceErrorCauses_H_ */ -#include diff --git a/asn.1/generated/GNSS-TimeModelElement.c b/asn.1/generated/GNSS-TimeModelElement.c deleted file mode 100644 index 13f576b3..00000000 --- a/asn.1/generated/GNSS-TimeModelElement.c +++ /dev/null @@ -1,322 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-TimeModelElement.h" - -static int -memb_gnss_TimeModelRefTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_tA0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -67108864 && value <= 67108863)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_tA1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -4096 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_tA2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -64 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gnss_TO_ID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_weekNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_deltaT_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gnss_TimeModelRefTime_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_tA0_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 27, -1, -67108864, 67108863 } /* (-67108864..67108863) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_tA1_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_tA2_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_TO_ID_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 1, 15 } /* (1..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_weekNumber_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, 0, 8191 } /* (0..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_deltaT_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_TimeModelElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_TimeModelElement, gnss_TimeModelRefTime), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_TimeModelRefTime_constr_2, memb_gnss_TimeModelRefTime_constraint_1 }, - 0, 0, /* No default value */ - "gnss-TimeModelRefTime" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_TimeModelElement, tA0), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_tA0_constr_3, memb_tA0_constraint_1 }, - 0, 0, /* No default value */ - "tA0" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_TimeModelElement, tA1), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_tA1_constr_4, memb_tA1_constraint_1 }, - 0, 0, /* No default value */ - "tA1" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_TimeModelElement, tA2), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_tA2_constr_5, memb_tA2_constraint_1 }, - 0, 0, /* No default value */ - "tA2" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_TimeModelElement, gnss_TO_ID), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_TO_ID_constr_6, memb_gnss_TO_ID_constraint_1 }, - 0, 0, /* No default value */ - "gnss-TO-ID" - }, - { ATF_POINTER, 2, offsetof(struct GNSS_TimeModelElement, weekNumber), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_weekNumber_constr_7, memb_weekNumber_constraint_1 }, - 0, 0, /* No default value */ - "weekNumber" - }, - { ATF_POINTER, 1, offsetof(struct GNSS_TimeModelElement, deltaT), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_deltaT_constr_8, memb_deltaT_constraint_1 }, - 0, 0, /* No default value */ - "deltaT" - }, -}; -static const int asn_MAP_GNSS_TimeModelElement_oms_1[] = { 2, 3, 5, 6 }; -static const ber_tlv_tag_t asn_DEF_GNSS_TimeModelElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_TimeModelElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-TimeModelRefTime */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tA0 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* tA1 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* tA2 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-TO-ID */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* weekNumber */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* deltaT */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_TimeModelElement_specs_1 = { - sizeof(struct GNSS_TimeModelElement), - offsetof(struct GNSS_TimeModelElement, _asn_ctx), - asn_MAP_GNSS_TimeModelElement_tag2el_1, - 7, /* Count of tags in the map */ - asn_MAP_GNSS_TimeModelElement_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - 7, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_TimeModelElement = { - "GNSS-TimeModelElement", - "GNSS-TimeModelElement", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_TimeModelElement_tags_1, - sizeof(asn_DEF_GNSS_TimeModelElement_tags_1) - /sizeof(asn_DEF_GNSS_TimeModelElement_tags_1[0]), /* 1 */ - asn_DEF_GNSS_TimeModelElement_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_TimeModelElement_tags_1) - /sizeof(asn_DEF_GNSS_TimeModelElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_TimeModelElement_1, - 7, /* Elements count */ - &asn_SPC_GNSS_TimeModelElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-TimeModelElement.h b/asn.1/generated/GNSS-TimeModelElement.h deleted file mode 100644 index 12a4c7db..00000000 --- a/asn.1/generated/GNSS-TimeModelElement.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GNSS_TimeModelElement_H_ -#define _GNSS_TimeModelElement_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* GNSS-TimeModelElement */ -typedef struct GNSS_TimeModelElement { - long gnss_TimeModelRefTime; - long tA0; - long *tA1 /* OPTIONAL */; - long *tA2 /* OPTIONAL */; - long gnss_TO_ID; - long *weekNumber /* OPTIONAL */; - long *deltaT /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GNSS_TimeModelElement_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GNSS_TimeModelElement; -extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_TimeModelElement_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_TimeModelElement_1[7]; - -#ifdef __cplusplus -} -#endif - -#endif /* _GNSS_TimeModelElement_H_ */ -#include diff --git a/asn.1/generated/GNSS-TimeModelElementReq.c b/asn.1/generated/GNSS-TimeModelElementReq.c deleted file mode 100644 index e6cea509..00000000 --- a/asn.1/generated/GNSS-TimeModelElementReq.c +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-TimeModelElementReq.h" - -static int -memb_gnss_TO_IDsReq_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gnss_TO_IDsReq_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 1, 15 } /* (1..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_TimeModelElementReq_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_TimeModelElementReq, gnss_TO_IDsReq), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_TO_IDsReq_constr_2, memb_gnss_TO_IDsReq_constraint_1 }, - 0, 0, /* No default value */ - "gnss-TO-IDsReq" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_TimeModelElementReq, deltaTreq), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "deltaTreq" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_TimeModelElementReq_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_TimeModelElementReq_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-TO-IDsReq */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* deltaTreq */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_TimeModelElementReq_specs_1 = { - sizeof(struct GNSS_TimeModelElementReq), - offsetof(struct GNSS_TimeModelElementReq, _asn_ctx), - asn_MAP_GNSS_TimeModelElementReq_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_TimeModelElementReq = { - "GNSS-TimeModelElementReq", - "GNSS-TimeModelElementReq", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_TimeModelElementReq_tags_1, - sizeof(asn_DEF_GNSS_TimeModelElementReq_tags_1) - /sizeof(asn_DEF_GNSS_TimeModelElementReq_tags_1[0]), /* 1 */ - asn_DEF_GNSS_TimeModelElementReq_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_TimeModelElementReq_tags_1) - /sizeof(asn_DEF_GNSS_TimeModelElementReq_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_TimeModelElementReq_1, - 2, /* Elements count */ - &asn_SPC_GNSS_TimeModelElementReq_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-TimeModelList.c b/asn.1/generated/GNSS-TimeModelList.c deleted file mode 100644 index f1f8fec1..00000000 --- a/asn.1/generated/GNSS-TimeModelList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-TimeModelList.h" - -asn_per_constraints_t asn_PER_type_GNSS_TimeModelList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 15 } /* (SIZE(1..15)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_TimeModelList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_TimeModelElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_TimeModelList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_TimeModelList_specs_1 = { - sizeof(struct GNSS_TimeModelList), - offsetof(struct GNSS_TimeModelList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_TimeModelList = { - "GNSS-TimeModelList", - "GNSS-TimeModelList", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_TimeModelList_tags_1, - sizeof(asn_DEF_GNSS_TimeModelList_tags_1) - /sizeof(asn_DEF_GNSS_TimeModelList_tags_1[0]), /* 1 */ - asn_DEF_GNSS_TimeModelList_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_TimeModelList_tags_1) - /sizeof(asn_DEF_GNSS_TimeModelList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_TimeModelList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_TimeModelList_1, - 1, /* Single element */ - &asn_SPC_GNSS_TimeModelList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-TimeModelListReq.c b/asn.1/generated/GNSS-TimeModelListReq.c deleted file mode 100644 index 5ebeadc1..00000000 --- a/asn.1/generated/GNSS-TimeModelListReq.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-TimeModelListReq.h" - -asn_per_constraints_t asn_PER_type_GNSS_TimeModelListReq_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 15 } /* (SIZE(1..15)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_TimeModelListReq_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_TimeModelElementReq, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSS_TimeModelListReq_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GNSS_TimeModelListReq_specs_1 = { - sizeof(struct GNSS_TimeModelListReq), - offsetof(struct GNSS_TimeModelListReq, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_TimeModelListReq = { - "GNSS-TimeModelListReq", - "GNSS-TimeModelListReq", - &asn_OP_SEQUENCE_OF, - asn_DEF_GNSS_TimeModelListReq_tags_1, - sizeof(asn_DEF_GNSS_TimeModelListReq_tags_1) - /sizeof(asn_DEF_GNSS_TimeModelListReq_tags_1[0]), /* 1 */ - asn_DEF_GNSS_TimeModelListReq_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_TimeModelListReq_tags_1) - /sizeof(asn_DEF_GNSS_TimeModelListReq_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GNSS_TimeModelListReq_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GNSS_TimeModelListReq_1, - 1, /* Single element */ - &asn_SPC_GNSS_TimeModelListReq_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-TimeModelListSupport.c b/asn.1/generated/GNSS-TimeModelListSupport.c deleted file mode 100644 index d82389df..00000000 --- a/asn.1/generated/GNSS-TimeModelListSupport.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-TimeModelListSupport.h" - -static const ber_tlv_tag_t asn_DEF_GNSS_TimeModelListSupport_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_TimeModelListSupport_specs_1 = { - sizeof(struct GNSS_TimeModelListSupport), - offsetof(struct GNSS_TimeModelListSupport, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_TimeModelListSupport = { - "GNSS-TimeModelListSupport", - "GNSS-TimeModelListSupport", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_TimeModelListSupport_tags_1, - sizeof(asn_DEF_GNSS_TimeModelListSupport_tags_1) - /sizeof(asn_DEF_GNSS_TimeModelListSupport_tags_1[0]), /* 1 */ - asn_DEF_GNSS_TimeModelListSupport_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_TimeModelListSupport_tags_1) - /sizeof(asn_DEF_GNSS_TimeModelListSupport_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_GNSS_TimeModelListSupport_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-UTC-Model.c b/asn.1/generated/GNSS-UTC-Model.c deleted file mode 100644 index 02949d7b..00000000 --- a/asn.1/generated/GNSS-UTC-Model.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-UTC-Model.h" - -asn_per_constraints_t asn_PER_type_GNSS_UTC_Model_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_UTC_Model_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSS_UTC_Model, choice.utcModel1), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTC_ModelSet1, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utcModel1" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_UTC_Model, choice.utcModel2), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTC_ModelSet2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utcModel2" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_UTC_Model, choice.utcModel3), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTC_ModelSet3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utcModel3" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_UTC_Model, choice.utcModel4), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTC_ModelSet4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utcModel4" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSS_UTC_Model, choice.utcModel5_r12), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTC_ModelSet5_r12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utcModel5-r12" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_UTC_Model_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utcModel1 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* utcModel2 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* utcModel3 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* utcModel4 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* utcModel5-r12 */ -}; -asn_CHOICE_specifics_t asn_SPC_GNSS_UTC_Model_specs_1 = { - sizeof(struct GNSS_UTC_Model), - offsetof(struct GNSS_UTC_Model, _asn_ctx), - offsetof(struct GNSS_UTC_Model, present), - sizeof(((struct GNSS_UTC_Model *)0)->present), - asn_MAP_GNSS_UTC_Model_tag2el_1, - 5, /* Count of tags in the map */ - 0, 0, - 4 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_UTC_Model = { - "GNSS-UTC-Model", - "GNSS-UTC-Model", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_GNSS_UTC_Model_constr_1, CHOICE_constraint }, - asn_MBR_GNSS_UTC_Model_1, - 5, /* Elements count */ - &asn_SPC_GNSS_UTC_Model_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-UTC-ModelReq.c b/asn.1/generated/GNSS-UTC-ModelReq.c deleted file mode 100644 index 027714e5..00000000 --- a/asn.1/generated/GNSS-UTC-ModelReq.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-UTC-ModelReq.h" - -static int -memb_modelID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_modelID_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_UTC_ModelReq_1[] = { - { ATF_POINTER, 1, offsetof(struct GNSS_UTC_ModelReq, modelID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_modelID_constr_2, memb_modelID_constraint_1 }, - 0, 0, /* No default value */ - "modelID" - }, -}; -static const int asn_MAP_GNSS_UTC_ModelReq_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_GNSS_UTC_ModelReq_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_UTC_ModelReq_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* modelID */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_UTC_ModelReq_specs_1 = { - sizeof(struct GNSS_UTC_ModelReq), - offsetof(struct GNSS_UTC_ModelReq, _asn_ctx), - asn_MAP_GNSS_UTC_ModelReq_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_GNSS_UTC_ModelReq_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_UTC_ModelReq = { - "GNSS-UTC-ModelReq", - "GNSS-UTC-ModelReq", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_UTC_ModelReq_tags_1, - sizeof(asn_DEF_GNSS_UTC_ModelReq_tags_1) - /sizeof(asn_DEF_GNSS_UTC_ModelReq_tags_1[0]), /* 1 */ - asn_DEF_GNSS_UTC_ModelReq_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_UTC_ModelReq_tags_1) - /sizeof(asn_DEF_GNSS_UTC_ModelReq_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_UTC_ModelReq_1, - 1, /* Elements count */ - &asn_SPC_GNSS_UTC_ModelReq_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSS-UTC-ModelSupport.c b/asn.1/generated/GNSS-UTC-ModelSupport.c deleted file mode 100644 index 5f753088..00000000 --- a/asn.1/generated/GNSS-UTC-ModelSupport.c +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSS-UTC-ModelSupport.h" - -static int -memb_utc_Model_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_utc_Model_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GNSS_UTC_ModelSupport_1[] = { - { ATF_POINTER, 1, offsetof(struct GNSS_UTC_ModelSupport, utc_Model), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_utc_Model_constr_2, memb_utc_Model_constraint_1 }, - 0, 0, /* No default value */ - "utc-Model" - }, -}; -static const int asn_MAP_GNSS_UTC_ModelSupport_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_GNSS_UTC_ModelSupport_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSS_UTC_ModelSupport_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* utc-Model */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSS_UTC_ModelSupport_specs_1 = { - sizeof(struct GNSS_UTC_ModelSupport), - offsetof(struct GNSS_UTC_ModelSupport, _asn_ctx), - asn_MAP_GNSS_UTC_ModelSupport_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_GNSS_UTC_ModelSupport_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSS_UTC_ModelSupport = { - "GNSS-UTC-ModelSupport", - "GNSS-UTC-ModelSupport", - &asn_OP_SEQUENCE, - asn_DEF_GNSS_UTC_ModelSupport_tags_1, - sizeof(asn_DEF_GNSS_UTC_ModelSupport_tags_1) - /sizeof(asn_DEF_GNSS_UTC_ModelSupport_tags_1[0]), /* 1 */ - asn_DEF_GNSS_UTC_ModelSupport_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSS_UTC_ModelSupport_tags_1) - /sizeof(asn_DEF_GNSS_UTC_ModelSupport_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSS_UTC_ModelSupport_1, - 1, /* Elements count */ - &asn_SPC_GNSS_UTC_ModelSupport_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GNSSPosTechnology.c b/asn.1/generated/GNSSPosTechnology.c deleted file mode 100644 index bbc1cc6d..00000000 --- a/asn.1/generated/GNSSPosTechnology.c +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GNSSPosTechnology.h" - -asn_TYPE_member_t asn_MBR_GNSSPosTechnology_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GNSSPosTechnology, gps), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gps" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSSPosTechnology, galileo), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "galileo" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSSPosTechnology, sbas), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sbas" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSSPosTechnology, modernized_gps), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "modernized-gps" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSSPosTechnology, qzss), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "qzss" - }, - { ATF_NOFLAGS, 0, offsetof(struct GNSSPosTechnology, glonass), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "glonass" - }, -}; -static const ber_tlv_tag_t asn_DEF_GNSSPosTechnology_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GNSSPosTechnology_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gps */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* galileo */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sbas */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* modernized-gps */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* qzss */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* glonass */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GNSSPosTechnology_specs_1 = { - sizeof(struct GNSSPosTechnology), - offsetof(struct GNSSPosTechnology, _asn_ctx), - asn_MAP_GNSSPosTechnology_tag2el_1, - 6, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GNSSPosTechnology = { - "GNSSPosTechnology", - "GNSSPosTechnology", - &asn_OP_SEQUENCE, - asn_DEF_GNSSPosTechnology_tags_1, - sizeof(asn_DEF_GNSSPosTechnology_tags_1) - /sizeof(asn_DEF_GNSSPosTechnology_tags_1[0]), /* 1 */ - asn_DEF_GNSSPosTechnology_tags_1, /* Same as above */ - sizeof(asn_DEF_GNSSPosTechnology_tags_1) - /sizeof(asn_DEF_GNSSPosTechnology_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GNSSPosTechnology_1, - 6, /* Elements count */ - &asn_SPC_GNSSPosTechnology_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GPS-TOW-Assist.c b/asn.1/generated/GPS-TOW-Assist.c deleted file mode 100644 index 7c727b9c..00000000 --- a/asn.1/generated/GPS-TOW-Assist.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GPS-TOW-Assist.h" - -asn_per_constraints_t asn_PER_type_GPS_TOW_Assist_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GPS_TOW_Assist_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GPS_TOW_AssistElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GPS_TOW_Assist_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GPS_TOW_Assist_specs_1 = { - sizeof(struct GPS_TOW_Assist), - offsetof(struct GPS_TOW_Assist, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GPS_TOW_Assist = { - "GPS-TOW-Assist", - "GPS-TOW-Assist", - &asn_OP_SEQUENCE_OF, - asn_DEF_GPS_TOW_Assist_tags_1, - sizeof(asn_DEF_GPS_TOW_Assist_tags_1) - /sizeof(asn_DEF_GPS_TOW_Assist_tags_1[0]), /* 1 */ - asn_DEF_GPS_TOW_Assist_tags_1, /* Same as above */ - sizeof(asn_DEF_GPS_TOW_Assist_tags_1) - /sizeof(asn_DEF_GPS_TOW_Assist_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GPS_TOW_Assist_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GPS_TOW_Assist_1, - 1, /* Single element */ - &asn_SPC_GPS_TOW_Assist_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GPS-TOW-AssistElement.c b/asn.1/generated/GPS-TOW-AssistElement.c deleted file mode 100644 index 5c867b6d..00000000 --- a/asn.1/generated/GPS-TOW-AssistElement.c +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GPS-TOW-AssistElement.h" - -static int -memb_satelliteID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 64)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_tlmWord_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_antiSpoof_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_alert_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_tlmRsvdBits_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_satelliteID_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (1..64) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_tlmWord_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_antiSpoof_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_alert_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_tlmRsvdBits_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GPS_TOW_AssistElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GPS_TOW_AssistElement, satelliteID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_satelliteID_constr_2, memb_satelliteID_constraint_1 }, - 0, 0, /* No default value */ - "satelliteID" - }, - { ATF_NOFLAGS, 0, offsetof(struct GPS_TOW_AssistElement, tlmWord), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_tlmWord_constr_3, memb_tlmWord_constraint_1 }, - 0, 0, /* No default value */ - "tlmWord" - }, - { ATF_NOFLAGS, 0, offsetof(struct GPS_TOW_AssistElement, antiSpoof), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_antiSpoof_constr_4, memb_antiSpoof_constraint_1 }, - 0, 0, /* No default value */ - "antiSpoof" - }, - { ATF_NOFLAGS, 0, offsetof(struct GPS_TOW_AssistElement, alert), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_alert_constr_5, memb_alert_constraint_1 }, - 0, 0, /* No default value */ - "alert" - }, - { ATF_NOFLAGS, 0, offsetof(struct GPS_TOW_AssistElement, tlmRsvdBits), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_tlmRsvdBits_constr_6, memb_tlmRsvdBits_constraint_1 }, - 0, 0, /* No default value */ - "tlmRsvdBits" - }, -}; -static const ber_tlv_tag_t asn_DEF_GPS_TOW_AssistElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GPS_TOW_AssistElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* satelliteID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tlmWord */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* antiSpoof */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* alert */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* tlmRsvdBits */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GPS_TOW_AssistElement_specs_1 = { - sizeof(struct GPS_TOW_AssistElement), - offsetof(struct GPS_TOW_AssistElement, _asn_ctx), - asn_MAP_GPS_TOW_AssistElement_tag2el_1, - 5, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GPS_TOW_AssistElement = { - "GPS-TOW-AssistElement", - "GPS-TOW-AssistElement", - &asn_OP_SEQUENCE, - asn_DEF_GPS_TOW_AssistElement_tags_1, - sizeof(asn_DEF_GPS_TOW_AssistElement_tags_1) - /sizeof(asn_DEF_GPS_TOW_AssistElement_tags_1[0]), /* 1 */ - asn_DEF_GPS_TOW_AssistElement_tags_1, /* Same as above */ - sizeof(asn_DEF_GPS_TOW_AssistElement_tags_1) - /sizeof(asn_DEF_GPS_TOW_AssistElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GPS_TOW_AssistElement_1, - 5, /* Elements count */ - &asn_SPC_GPS_TOW_AssistElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GSMAreaId.c b/asn.1/generated/GSMAreaId.c deleted file mode 100644 index d42bbec2..00000000 --- a/asn.1/generated/GSMAreaId.c +++ /dev/null @@ -1,202 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GSMAreaId.h" - -static int -memb_refMCC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refMNC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refLAC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refCI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_refMCC_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refMNC_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refLAC_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refCI_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GSMAreaId_1[] = { - { ATF_POINTER, 4, offsetof(struct GSMAreaId, refMCC), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refMCC_constr_2, memb_refMCC_constraint_1 }, - 0, 0, /* No default value */ - "refMCC" - }, - { ATF_POINTER, 3, offsetof(struct GSMAreaId, refMNC), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refMNC_constr_3, memb_refMNC_constraint_1 }, - 0, 0, /* No default value */ - "refMNC" - }, - { ATF_POINTER, 2, offsetof(struct GSMAreaId, refLAC), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refLAC_constr_4, memb_refLAC_constraint_1 }, - 0, 0, /* No default value */ - "refLAC" - }, - { ATF_POINTER, 1, offsetof(struct GSMAreaId, refCI), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refCI_constr_5, memb_refCI_constraint_1 }, - 0, 0, /* No default value */ - "refCI" - }, -}; -static const int asn_MAP_GSMAreaId_oms_1[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_GSMAreaId_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GSMAreaId_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refMCC */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refMNC */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* refLAC */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* refCI */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GSMAreaId_specs_1 = { - sizeof(struct GSMAreaId), - offsetof(struct GSMAreaId, _asn_ctx), - asn_MAP_GSMAreaId_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_GSMAreaId_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GSMAreaId = { - "GSMAreaId", - "GSMAreaId", - &asn_OP_SEQUENCE, - asn_DEF_GSMAreaId_tags_1, - sizeof(asn_DEF_GSMAreaId_tags_1) - /sizeof(asn_DEF_GSMAreaId_tags_1[0]), /* 1 */ - asn_DEF_GSMAreaId_tags_1, /* Same as above */ - sizeof(asn_DEF_GSMAreaId_tags_1) - /sizeof(asn_DEF_GSMAreaId_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GSMAreaId_1, - 4, /* Elements count */ - &asn_SPC_GSMAreaId_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GSMAreaId.h b/asn.1/generated/GSMAreaId.h deleted file mode 100644 index d7d10392..00000000 --- a/asn.1/generated/GSMAreaId.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GSMAreaId_H_ -#define _GSMAreaId_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* GSMAreaId */ -typedef struct GSMAreaId { - long *refMCC /* OPTIONAL */; - long *refMNC /* OPTIONAL */; - long *refLAC /* OPTIONAL */; - long *refCI /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GSMAreaId_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GSMAreaId; -extern asn_SEQUENCE_specifics_t asn_SPC_GSMAreaId_specs_1; -extern asn_TYPE_member_t asn_MBR_GSMAreaId_1[4]; - -#ifdef __cplusplus -} -#endif - -#endif /* _GSMAreaId_H_ */ -#include diff --git a/asn.1/generated/GanssAdditionalDataChoices.c b/asn.1/generated/GanssAdditionalDataChoices.c deleted file mode 100644 index d041faec..00000000 --- a/asn.1/generated/GanssAdditionalDataChoices.c +++ /dev/null @@ -1,202 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GanssAdditionalDataChoices.h" - -static int -memb_orbitModelID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 7)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_clockModelID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 7)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcModelID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 7)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_almanacModelID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 7)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_orbitModelID_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_clockModelID_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcModelID_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_almanacModelID_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GanssAdditionalDataChoices_1[] = { - { ATF_POINTER, 4, offsetof(struct GanssAdditionalDataChoices, orbitModelID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_orbitModelID_constr_2, memb_orbitModelID_constraint_1 }, - 0, 0, /* No default value */ - "orbitModelID" - }, - { ATF_POINTER, 3, offsetof(struct GanssAdditionalDataChoices, clockModelID), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_clockModelID_constr_3, memb_clockModelID_constraint_1 }, - 0, 0, /* No default value */ - "clockModelID" - }, - { ATF_POINTER, 2, offsetof(struct GanssAdditionalDataChoices, utcModelID), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcModelID_constr_4, memb_utcModelID_constraint_1 }, - 0, 0, /* No default value */ - "utcModelID" - }, - { ATF_POINTER, 1, offsetof(struct GanssAdditionalDataChoices, almanacModelID), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_almanacModelID_constr_5, memb_almanacModelID_constraint_1 }, - 0, 0, /* No default value */ - "almanacModelID" - }, -}; -static const int asn_MAP_GanssAdditionalDataChoices_oms_1[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_GanssAdditionalDataChoices_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GanssAdditionalDataChoices_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* orbitModelID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* clockModelID */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* utcModelID */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* almanacModelID */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GanssAdditionalDataChoices_specs_1 = { - sizeof(struct GanssAdditionalDataChoices), - offsetof(struct GanssAdditionalDataChoices, _asn_ctx), - asn_MAP_GanssAdditionalDataChoices_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_GanssAdditionalDataChoices_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GanssAdditionalDataChoices = { - "GanssAdditionalDataChoices", - "GanssAdditionalDataChoices", - &asn_OP_SEQUENCE, - asn_DEF_GanssAdditionalDataChoices_tags_1, - sizeof(asn_DEF_GanssAdditionalDataChoices_tags_1) - /sizeof(asn_DEF_GanssAdditionalDataChoices_tags_1[0]), /* 1 */ - asn_DEF_GanssAdditionalDataChoices_tags_1, /* Same as above */ - sizeof(asn_DEF_GanssAdditionalDataChoices_tags_1) - /sizeof(asn_DEF_GanssAdditionalDataChoices_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GanssAdditionalDataChoices_1, - 4, /* Elements count */ - &asn_SPC_GanssAdditionalDataChoices_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GanssAdditionalDataChoices.h b/asn.1/generated/GanssAdditionalDataChoices.h deleted file mode 100644 index 7fd9c396..00000000 --- a/asn.1/generated/GanssAdditionalDataChoices.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GanssAdditionalDataChoices_H_ -#define _GanssAdditionalDataChoices_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* GanssAdditionalDataChoices */ -typedef struct GanssAdditionalDataChoices { - long *orbitModelID /* OPTIONAL */; - long *clockModelID /* OPTIONAL */; - long *utcModelID /* OPTIONAL */; - long *almanacModelID /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GanssAdditionalDataChoices_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GanssAdditionalDataChoices; -extern asn_SEQUENCE_specifics_t asn_SPC_GanssAdditionalDataChoices_specs_1; -extern asn_TYPE_member_t asn_MBR_GanssAdditionalDataChoices_1[4]; - -#ifdef __cplusplus -} -#endif - -#endif /* _GanssAdditionalDataChoices_H_ */ -#include diff --git a/asn.1/generated/GanssDataBits.c b/asn.1/generated/GanssDataBits.c deleted file mode 100644 index ea240ccd..00000000 --- a/asn.1/generated/GanssDataBits.c +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GanssDataBits.h" - -static int -memb_ganssTODmin_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 59)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_ganssTODmin_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 59 } /* (0..59) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GanssDataBits_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GanssDataBits, ganssTODmin), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ganssTODmin_constr_2, memb_ganssTODmin_constraint_1 }, - 0, 0, /* No default value */ - "ganssTODmin" - }, - { ATF_NOFLAGS, 0, offsetof(struct GanssDataBits, reqDataBitAssistanceList), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ReqDataBitAssistanceList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "reqDataBitAssistanceList" - }, -}; -static const ber_tlv_tag_t asn_DEF_GanssDataBits_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GanssDataBits_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssTODmin */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* reqDataBitAssistanceList */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GanssDataBits_specs_1 = { - sizeof(struct GanssDataBits), - offsetof(struct GanssDataBits, _asn_ctx), - asn_MAP_GanssDataBits_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GanssDataBits = { - "GanssDataBits", - "GanssDataBits", - &asn_OP_SEQUENCE, - asn_DEF_GanssDataBits_tags_1, - sizeof(asn_DEF_GanssDataBits_tags_1) - /sizeof(asn_DEF_GanssDataBits_tags_1[0]), /* 1 */ - asn_DEF_GanssDataBits_tags_1, /* Same as above */ - sizeof(asn_DEF_GanssDataBits_tags_1) - /sizeof(asn_DEF_GanssDataBits_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GanssDataBits_1, - 2, /* Elements count */ - &asn_SPC_GanssDataBits_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GanssExtendedEphCheck.c b/asn.1/generated/GanssExtendedEphCheck.c deleted file mode 100644 index 7b85edec..00000000 --- a/asn.1/generated/GanssExtendedEphCheck.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GanssExtendedEphCheck.h" - -asn_TYPE_member_t asn_MBR_GanssExtendedEphCheck_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GanssExtendedEphCheck, beginTime), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GANSSextEphTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "beginTime" - }, - { ATF_NOFLAGS, 0, offsetof(struct GanssExtendedEphCheck, endTime), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GANSSextEphTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "endTime" - }, -}; -static const ber_tlv_tag_t asn_DEF_GanssExtendedEphCheck_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GanssExtendedEphCheck_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* beginTime */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* endTime */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GanssExtendedEphCheck_specs_1 = { - sizeof(struct GanssExtendedEphCheck), - offsetof(struct GanssExtendedEphCheck, _asn_ctx), - asn_MAP_GanssExtendedEphCheck_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GanssExtendedEphCheck = { - "GanssExtendedEphCheck", - "GanssExtendedEphCheck", - &asn_OP_SEQUENCE, - asn_DEF_GanssExtendedEphCheck_tags_1, - sizeof(asn_DEF_GanssExtendedEphCheck_tags_1) - /sizeof(asn_DEF_GanssExtendedEphCheck_tags_1[0]), /* 1 */ - asn_DEF_GanssExtendedEphCheck_tags_1, /* Same as above */ - sizeof(asn_DEF_GanssExtendedEphCheck_tags_1) - /sizeof(asn_DEF_GanssExtendedEphCheck_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GanssExtendedEphCheck_1, - 2, /* Elements count */ - &asn_SPC_GanssExtendedEphCheck_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GanssNavigationModelData.c b/asn.1/generated/GanssNavigationModelData.c deleted file mode 100644 index 52bf3b9b..00000000 --- a/asn.1/generated/GanssNavigationModelData.c +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GanssNavigationModelData.h" - -static int -memb_ganssWeek_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ganssToe_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 167)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_t_toeLimit_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_ganssWeek_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ganssToe_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 167 } /* (0..167) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_t_toeLimit_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GanssNavigationModelData_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GanssNavigationModelData, ganssWeek), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ganssWeek_constr_2, memb_ganssWeek_constraint_1 }, - 0, 0, /* No default value */ - "ganssWeek" - }, - { ATF_NOFLAGS, 0, offsetof(struct GanssNavigationModelData, ganssToe), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ganssToe_constr_3, memb_ganssToe_constraint_1 }, - 0, 0, /* No default value */ - "ganssToe" - }, - { ATF_NOFLAGS, 0, offsetof(struct GanssNavigationModelData, t_toeLimit), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_t_toeLimit_constr_4, memb_t_toeLimit_constraint_1 }, - 0, 0, /* No default value */ - "t-toeLimit" - }, - { ATF_POINTER, 1, offsetof(struct GanssNavigationModelData, satellitesListRelatedDataList), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SatellitesListRelatedDataList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "satellitesListRelatedDataList" - }, -}; -static const int asn_MAP_GanssNavigationModelData_oms_1[] = { 3 }; -static const ber_tlv_tag_t asn_DEF_GanssNavigationModelData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GanssNavigationModelData_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssWeek */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssToe */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* t-toeLimit */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* satellitesListRelatedDataList */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GanssNavigationModelData_specs_1 = { - sizeof(struct GanssNavigationModelData), - offsetof(struct GanssNavigationModelData, _asn_ctx), - asn_MAP_GanssNavigationModelData_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_GanssNavigationModelData_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GanssNavigationModelData = { - "GanssNavigationModelData", - "GanssNavigationModelData", - &asn_OP_SEQUENCE, - asn_DEF_GanssNavigationModelData_tags_1, - sizeof(asn_DEF_GanssNavigationModelData_tags_1) - /sizeof(asn_DEF_GanssNavigationModelData_tags_1[0]), /* 1 */ - asn_DEF_GanssNavigationModelData_tags_1, /* Same as above */ - sizeof(asn_DEF_GanssNavigationModelData_tags_1) - /sizeof(asn_DEF_GanssNavigationModelData_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GanssNavigationModelData_1, - 4, /* Elements count */ - &asn_SPC_GanssNavigationModelData_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GanssReqGenericData.c b/asn.1/generated/GanssReqGenericData.c deleted file mode 100644 index d9d98877..00000000 --- a/asn.1/generated/GanssReqGenericData.c +++ /dev/null @@ -1,284 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GanssReqGenericData.h" - -static int -memb_ganssId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ganssSBASid_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ganssTimeModels_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 16)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_ganssId_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ganssSBASid_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ganssTimeModels_constr_8 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GanssReqGenericData_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GanssReqGenericData, ganssId), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ganssId_constr_2, memb_ganssId_constraint_1 }, - 0, 0, /* No default value */ - "ganssId" - }, - { ATF_POINTER, 1, offsetof(struct GanssReqGenericData, ganssSBASid), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_ganssSBASid_constr_3, memb_ganssSBASid_constraint_1 }, - 0, 0, /* No default value */ - "ganssSBASid" - }, - { ATF_NOFLAGS, 0, offsetof(struct GanssReqGenericData, ganssRealTimeIntegrity), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ganssRealTimeIntegrity" - }, - { ATF_POINTER, 1, offsetof(struct GanssReqGenericData, ganssDifferentialCorrection), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DGANSS_Sig_Id_Req, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ganssDifferentialCorrection" - }, - { ATF_NOFLAGS, 0, offsetof(struct GanssReqGenericData, ganssAlmanac), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ganssAlmanac" - }, - { ATF_POINTER, 2, offsetof(struct GanssReqGenericData, ganssNavigationModelData), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GanssNavigationModelData, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ganssNavigationModelData" - }, - { ATF_POINTER, 1, offsetof(struct GanssReqGenericData, ganssTimeModels), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_ganssTimeModels_constr_8, memb_ganssTimeModels_constraint_1 }, - 0, 0, /* No default value */ - "ganssTimeModels" - }, - { ATF_NOFLAGS, 0, offsetof(struct GanssReqGenericData, ganssReferenceMeasurementInfo), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ganssReferenceMeasurementInfo" - }, - { ATF_POINTER, 1, offsetof(struct GanssReqGenericData, ganssDataBits), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GanssDataBits, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ganssDataBits" - }, - { ATF_NOFLAGS, 0, offsetof(struct GanssReqGenericData, ganssUTCModel), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ganssUTCModel" - }, - { ATF_POINTER, 1, offsetof(struct GanssReqGenericData, ganssAdditionalDataChoices), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GanssAdditionalDataChoices, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ganssAdditionalDataChoices" - }, - { ATF_NOFLAGS, 0, offsetof(struct GanssReqGenericData, ganssAuxiliaryInformation), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ganssAuxiliaryInformation" - }, - { ATF_POINTER, 2, offsetof(struct GanssReqGenericData, ganssExtendedEphemeris), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ExtendedEphemeris, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ganssExtendedEphemeris" - }, - { ATF_POINTER, 1, offsetof(struct GanssReqGenericData, ganssExtendedEphemerisCheck), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GanssExtendedEphCheck, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ganssExtendedEphemerisCheck" - }, -}; -static const int asn_MAP_GanssReqGenericData_oms_1[] = { 1, 3, 5, 6, 8, 10, 12, 13 }; -static const ber_tlv_tag_t asn_DEF_GanssReqGenericData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GanssReqGenericData_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssId */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssSBASid */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ganssRealTimeIntegrity */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ganssDifferentialCorrection */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ganssAlmanac */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ganssNavigationModelData */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ganssTimeModels */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ganssReferenceMeasurementInfo */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ganssDataBits */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* ganssUTCModel */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* ganssAdditionalDataChoices */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* ganssAuxiliaryInformation */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ganssExtendedEphemeris */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 } /* ganssExtendedEphemerisCheck */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GanssReqGenericData_specs_1 = { - sizeof(struct GanssReqGenericData), - offsetof(struct GanssReqGenericData, _asn_ctx), - asn_MAP_GanssReqGenericData_tag2el_1, - 14, /* Count of tags in the map */ - asn_MAP_GanssReqGenericData_oms_1, /* Optional members */ - 8, 0, /* Root/Additions */ - 14, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GanssReqGenericData = { - "GanssReqGenericData", - "GanssReqGenericData", - &asn_OP_SEQUENCE, - asn_DEF_GanssReqGenericData_tags_1, - sizeof(asn_DEF_GanssReqGenericData_tags_1) - /sizeof(asn_DEF_GanssReqGenericData_tags_1[0]), /* 1 */ - asn_DEF_GanssReqGenericData_tags_1, /* Same as above */ - sizeof(asn_DEF_GanssReqGenericData_tags_1) - /sizeof(asn_DEF_GanssReqGenericData_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GanssReqGenericData_1, - 14, /* Elements count */ - &asn_SPC_GanssReqGenericData_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GanssReqGenericData.h b/asn.1/generated/GanssReqGenericData.h deleted file mode 100644 index 2b99ea38..00000000 --- a/asn.1/generated/GanssReqGenericData.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GanssReqGenericData_H_ -#define _GanssReqGenericData_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include -#include "DGANSS-Sig-Id-Req.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct GanssNavigationModelData; -struct GanssDataBits; -struct GanssAdditionalDataChoices; -struct ExtendedEphemeris; -struct GanssExtendedEphCheck; - -/* GanssReqGenericData */ -typedef struct GanssReqGenericData { - long ganssId; - BIT_STRING_t *ganssSBASid /* OPTIONAL */; - BOOLEAN_t ganssRealTimeIntegrity; - DGANSS_Sig_Id_Req_t *ganssDifferentialCorrection /* OPTIONAL */; - BOOLEAN_t ganssAlmanac; - struct GanssNavigationModelData *ganssNavigationModelData /* OPTIONAL */; - BIT_STRING_t *ganssTimeModels /* OPTIONAL */; - BOOLEAN_t ganssReferenceMeasurementInfo; - struct GanssDataBits *ganssDataBits /* OPTIONAL */; - BOOLEAN_t ganssUTCModel; - struct GanssAdditionalDataChoices *ganssAdditionalDataChoices /* OPTIONAL */; - BOOLEAN_t ganssAuxiliaryInformation; - struct ExtendedEphemeris *ganssExtendedEphemeris /* OPTIONAL */; - struct GanssExtendedEphCheck *ganssExtendedEphemerisCheck /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GanssReqGenericData_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GanssReqGenericData; -extern asn_SEQUENCE_specifics_t asn_SPC_GanssReqGenericData_specs_1; -extern asn_TYPE_member_t asn_MBR_GanssReqGenericData_1[14]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GanssNavigationModelData.h" -#include "GanssDataBits.h" -#include "GanssAdditionalDataChoices.h" -#include "ExtendedEphemeris.h" -#include "GanssExtendedEphCheck.h" - -#endif /* _GanssReqGenericData_H_ */ -#include diff --git a/asn.1/generated/GanssRequestedCommonAssistanceDataList.c b/asn.1/generated/GanssRequestedCommonAssistanceDataList.c deleted file mode 100644 index 97d51030..00000000 --- a/asn.1/generated/GanssRequestedCommonAssistanceDataList.c +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GanssRequestedCommonAssistanceDataList.h" - -asn_TYPE_member_t asn_MBR_GanssRequestedCommonAssistanceDataList_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GanssRequestedCommonAssistanceDataList, ganssReferenceTime), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ganssReferenceTime" - }, - { ATF_NOFLAGS, 0, offsetof(struct GanssRequestedCommonAssistanceDataList, ganssIonosphericModel), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ganssIonosphericModel" - }, - { ATF_NOFLAGS, 0, offsetof(struct GanssRequestedCommonAssistanceDataList, ganssAdditionalIonosphericModelForDataID00), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ganssAdditionalIonosphericModelForDataID00" - }, - { ATF_NOFLAGS, 0, offsetof(struct GanssRequestedCommonAssistanceDataList, ganssAdditionalIonosphericModelForDataID11), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ganssAdditionalIonosphericModelForDataID11" - }, - { ATF_NOFLAGS, 0, offsetof(struct GanssRequestedCommonAssistanceDataList, ganssEarthOrientationParameters), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ganssEarthOrientationParameters" - }, -}; -static const ber_tlv_tag_t asn_DEF_GanssRequestedCommonAssistanceDataList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GanssRequestedCommonAssistanceDataList_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssReferenceTime */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssIonosphericModel */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ganssAdditionalIonosphericModelForDataID00 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ganssAdditionalIonosphericModelForDataID11 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ganssEarthOrientationParameters */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GanssRequestedCommonAssistanceDataList_specs_1 = { - sizeof(struct GanssRequestedCommonAssistanceDataList), - offsetof(struct GanssRequestedCommonAssistanceDataList, _asn_ctx), - asn_MAP_GanssRequestedCommonAssistanceDataList_tag2el_1, - 5, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GanssRequestedCommonAssistanceDataList = { - "GanssRequestedCommonAssistanceDataList", - "GanssRequestedCommonAssistanceDataList", - &asn_OP_SEQUENCE, - asn_DEF_GanssRequestedCommonAssistanceDataList_tags_1, - sizeof(asn_DEF_GanssRequestedCommonAssistanceDataList_tags_1) - /sizeof(asn_DEF_GanssRequestedCommonAssistanceDataList_tags_1[0]), /* 1 */ - asn_DEF_GanssRequestedCommonAssistanceDataList_tags_1, /* Same as above */ - sizeof(asn_DEF_GanssRequestedCommonAssistanceDataList_tags_1) - /sizeof(asn_DEF_GanssRequestedCommonAssistanceDataList_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GanssRequestedCommonAssistanceDataList_1, - 5, /* Elements count */ - &asn_SPC_GanssRequestedCommonAssistanceDataList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GanssRequestedGenericAssistanceDataList.c b/asn.1/generated/GanssRequestedGenericAssistanceDataList.c deleted file mode 100644 index b589b76f..00000000 --- a/asn.1/generated/GanssRequestedGenericAssistanceDataList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GanssRequestedGenericAssistanceDataList.h" - -asn_per_constraints_t asn_PER_type_GanssRequestedGenericAssistanceDataList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GanssRequestedGenericAssistanceDataList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GanssReqGenericData, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GanssRequestedGenericAssistanceDataList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GanssRequestedGenericAssistanceDataList_specs_1 = { - sizeof(struct GanssRequestedGenericAssistanceDataList), - offsetof(struct GanssRequestedGenericAssistanceDataList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GanssRequestedGenericAssistanceDataList = { - "GanssRequestedGenericAssistanceDataList", - "GanssRequestedGenericAssistanceDataList", - &asn_OP_SEQUENCE_OF, - asn_DEF_GanssRequestedGenericAssistanceDataList_tags_1, - sizeof(asn_DEF_GanssRequestedGenericAssistanceDataList_tags_1) - /sizeof(asn_DEF_GanssRequestedGenericAssistanceDataList_tags_1[0]), /* 1 */ - asn_DEF_GanssRequestedGenericAssistanceDataList_tags_1, /* Same as above */ - sizeof(asn_DEF_GanssRequestedGenericAssistanceDataList_tags_1) - /sizeof(asn_DEF_GanssRequestedGenericAssistanceDataList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GanssRequestedGenericAssistanceDataList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GanssRequestedGenericAssistanceDataList_1, - 1, /* Single element */ - &asn_SPC_GanssRequestedGenericAssistanceDataList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GeneralizedTime.c b/asn.1/generated/GeneralizedTime.c deleted file mode 100644 index b2d06034..00000000 --- a/asn.1/generated/GeneralizedTime.c +++ /dev/null @@ -1,829 +0,0 @@ -/*- - * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#define _POSIX_PTHREAD_SEMANTICS /* for Sun */ -#define _REENTRANT /* for Sun */ -#define __EXTENSIONS__ /* for Sun */ -#ifndef _BSD_SOURCE -#define _BSD_SOURCE /* for timegm(3) */ -#endif -#include -#include - -#ifdef __CYGWIN__ -#include "/usr/include/time.h" -#else -#include -#endif /* __CYGWIN__ */ - -#include -#include - -#if defined(_WIN32) -#pragma message( "PLEASE STOP AND READ!") -#pragma message( " localtime_r is implemented via localtime(), which may be not thread-safe.") -#pragma message( " gmtime_r is implemented via gmtime(), which may be not thread-safe.") -#pragma message( " ") -#pragma message( " You must fix the code by inserting appropriate locking") -#pragma message( " if you want to use asn_GT2time() or asn_UT2time().") -#pragma message( "PLEASE STOP AND READ!") - -static struct tm *localtime_r(const time_t *tloc, struct tm *result) { - struct tm *tm; - if((tm = localtime(tloc))) - return memcpy(result, tm, sizeof(struct tm)); - return 0; -} - -static struct tm *gmtime_r(const time_t *tloc, struct tm *result) { - struct tm *tm; - if((tm = gmtime(tloc))) - return memcpy(result, tm, sizeof(struct tm)); - return 0; -} - -#define tzset() _tzset() -#define putenv(c) _putenv(c) -#define _EMULATE_TIMEGM - -#endif /* _WIN32 */ - -#if defined(sun) || defined(__sun) || defined(__solaris__) -#define _EMULATE_TIMEGM -#endif - -/* - * Where to look for offset from GMT, Phase I. - * Several platforms are known. - */ -#if defined(__FreeBSD__) \ - || (defined(__GNUC__) && defined(__APPLE_CC__)) \ - || (defined __GLIBC__ && __GLIBC__ >= 2) -#undef HAVE_TM_GMTOFF -#define HAVE_TM_GMTOFF -#endif /* BSDs and newer glibc */ - -/* - * Where to look for offset from GMT, Phase II. - */ -#ifdef HAVE_TM_GMTOFF -#define GMTOFF(tm) ((tm).tm_gmtoff) -#else /* HAVE_TM_GMTOFF */ -#define GMTOFF(tm) (-timezone) -#endif /* HAVE_TM_GMTOFF */ - -#if defined(_WIN32) -#pragma message( "PLEASE STOP AND READ!") -#pragma message( " timegm() is implemented via getenv(\"TZ\")/setenv(\"TZ\"), which may be not thread-safe.") -#pragma message( " ") -#pragma message( " You must fix the code by inserting appropriate locking") -#pragma message( " if you want to use asn_GT2time() or asn_UT2time().") -#pragma message( "PLEASE STOP AND READ!") -#else -#if (defined(_EMULATE_TIMEGM) || !defined(HAVE_TM_GMTOFF)) -#warning "PLEASE STOP AND READ!" -#warning " timegm() is implemented via getenv(\"TZ\")/setenv(\"TZ\"), which may be not thread-safe." -#warning " " -#warning " You must fix the code by inserting appropriate locking" -#warning " if you want to use asn_GT2time() or asn_UT2time()." -#warning "PLEASE STOP AND READ!" -#endif /* _EMULATE_TIMEGM */ -#endif - -/* - * Override our GMTOFF decision for other known platforms. - */ -#ifdef __CYGWIN__ -#undef GMTOFF -static long GMTOFF(struct tm a){ - struct tm *lt; - time_t local_time, gmt_time; - long zone; - - tzset(); - gmt_time = time (NULL); - - lt = gmtime(&gmt_time); - - local_time = mktime(lt); - return (gmt_time - local_time); -} -#define _EMULATE_TIMEGM - -#endif /* __CYGWIN__ */ - -#define ATZVARS do { \ - char tzoldbuf[64]; \ - char *tzold -#define ATZSAVETZ do { \ - tzold = getenv("TZ"); \ - if(tzold) { \ - size_t tzlen = strlen(tzold); \ - if(tzlen < sizeof(tzoldbuf)) { \ - tzold = memcpy(tzoldbuf, tzold, tzlen + 1); \ - } else { \ - char *dupptr = tzold; \ - tzold = MALLOC(tzlen + 1); \ - if(tzold) memcpy(tzold, dupptr, tzlen + 1); \ - } \ - setenv("TZ", "UTC", 1); \ - } \ - tzset(); \ -} while(0) -#define ATZOLDTZ do { \ - if (tzold) { \ - setenv("TZ", tzold, 1); \ - *tzoldbuf = 0; \ - if(tzold != tzoldbuf) \ - FREEMEM(tzold); \ - } else { \ - unsetenv("TZ"); \ - } \ - tzset(); \ -} while(0); } while(0); - -#ifndef HAVE_TIMEGM -#ifdef _EMULATE_TIMEGM -#include -static time_t timegm(struct tm *tm) { - time_t tloc; - ATZVARS; - ATZSAVETZ; - tloc = mktime(tm); - ATZOLDTZ; - return tloc; -} -#endif /* _EMULATE_TIMEGM */ -#endif - - -#ifndef ASN___INTERNAL_TEST_MODE - -/* - * GeneralizedTime basic type description. - */ -static const ber_tlv_tag_t asn_DEF_GeneralizedTime_tags[] = { - (ASN_TAG_CLASS_UNIVERSAL | (24 << 2)), /* [UNIVERSAL 24] IMPLICIT ...*/ - (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), /* [UNIVERSAL 26] IMPLICIT ...*/ - (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ -}; -static asn_per_constraints_t asn_DEF_GeneralizedTime_per_constraints = { - { APC_CONSTRAINED, 7, 7, 0x20, 0x7e }, /* Value */ - { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 }, /* Size */ - 0, 0 -}; -asn_TYPE_operation_t asn_OP_GeneralizedTime = { - OCTET_STRING_free, - GeneralizedTime_print, - GeneralizedTime_compare, - OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ - GeneralizedTime_encode_der, - OCTET_STRING_decode_xer_utf8, - GeneralizedTime_encode_xer, -#ifdef ASN_DISABLE_OER_SUPPORT - 0, - 0, -#else - OCTET_STRING_decode_oer, - OCTET_STRING_encode_oer, -#endif /* ASN_DISABLE_OER_SUPPORT */ -#ifdef ASN_DISABLE_PER_SUPPORT - 0, - 0, -#else - OCTET_STRING_decode_uper, - OCTET_STRING_encode_uper, -#endif /* ASN_DISABLE_PER_SUPPORT */ - GeneralizedTime_random_fill, - 0 /* Use generic outmost tag fetcher */ -}; -asn_TYPE_descriptor_t asn_DEF_GeneralizedTime = { - "GeneralizedTime", - "GeneralizedTime", - &asn_OP_GeneralizedTime, - asn_DEF_GeneralizedTime_tags, - sizeof(asn_DEF_GeneralizedTime_tags) - / sizeof(asn_DEF_GeneralizedTime_tags[0]) - 2, - asn_DEF_GeneralizedTime_tags, - sizeof(asn_DEF_GeneralizedTime_tags) - / sizeof(asn_DEF_GeneralizedTime_tags[0]), - { 0, &asn_DEF_GeneralizedTime_per_constraints, GeneralizedTime_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - -#endif /* ASN___INTERNAL_TEST_MODE */ - -/* - * Check that the time looks like the time. - */ -int -GeneralizedTime_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, - void *app_key) { - const GeneralizedTime_t *st = (const GeneralizedTime_t *)sptr; - time_t tloc; - - errno = EPERM; /* Just an unlikely error code */ - tloc = asn_GT2time(st, 0, 0); - if(tloc == -1 && errno != EPERM) { - ASN__CTFAIL(app_key, td, sptr, - "%s: Invalid time format: %s (%s:%d)", - td->name, strerror(errno), __FILE__, __LINE__); - return -1; - } - - return 0; -} - -asn_enc_rval_t -GeneralizedTime_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, - int tag_mode, ber_tlv_tag_t tag, - asn_app_consume_bytes_f *cb, void *app_key) { - GeneralizedTime_t *st; - asn_enc_rval_t erval; - int fv, fd; /* seconds fraction value and number of digits */ - struct tm tm; - time_t tloc; - - /* - * Encode as a canonical DER. - */ - errno = EPERM; - tloc = asn_GT2time_frac((const GeneralizedTime_t *)sptr, &fv, &fd, &tm, - 1); /* Recognize time */ - if(tloc == -1 && errno != EPERM) { - /* Failed to recognize time. Fail completely. */ - ASN__ENCODE_FAILED; - } - - st = asn_time2GT_frac(0, &tm, fv, fd, 1); /* Save time canonically */ - if(!st) ASN__ENCODE_FAILED; /* Memory allocation failure. */ - - erval = OCTET_STRING_encode_der(td, st, tag_mode, tag, cb, app_key); - - ASN_STRUCT_FREE(*td, st); - - return erval; -} - -#ifndef ASN___INTERNAL_TEST_MODE - -asn_enc_rval_t -GeneralizedTime_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - if(flags & XER_F_CANONICAL) { - GeneralizedTime_t *gt; - asn_enc_rval_t rv; - int fv, fd; /* fractional parts */ - struct tm tm; - - errno = EPERM; - if(asn_GT2time_frac((const GeneralizedTime_t *)sptr, - &fv, &fd, &tm, 1) == -1 - && errno != EPERM) - ASN__ENCODE_FAILED; - - gt = asn_time2GT_frac(0, &tm, fv, fd, 1); - if(!gt) ASN__ENCODE_FAILED; - - rv = OCTET_STRING_encode_xer_utf8(td, sptr, ilevel, flags, - cb, app_key); - ASN_STRUCT_FREE(asn_DEF_GeneralizedTime, gt); - return rv; - } else { - return OCTET_STRING_encode_xer_utf8(td, sptr, ilevel, flags, - cb, app_key); - } -} - -#endif /* ASN___INTERNAL_TEST_MODE */ - -int -GeneralizedTime_print(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - const GeneralizedTime_t *st = (const GeneralizedTime_t *)sptr; - - (void)td; /* Unused argument */ - (void)ilevel; /* Unused argument */ - - if(st && st->buf) { - char buf[32]; - struct tm tm; - int ret; - - errno = EPERM; - if(asn_GT2time(st, &tm, 1) == -1 && errno != EPERM) - return (cb("", 11, app_key) < 0) ? -1 : 0; - - ret = snprintf(buf, sizeof(buf), - "%04d-%02d-%02d %02d:%02d:%02d (GMT)", - tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, - tm.tm_hour, tm.tm_min, tm.tm_sec); - assert(ret > 0 && ret < (int)sizeof(buf)); - return (cb(buf, ret, app_key) < 0) ? -1 : 0; - } else { - return (cb("", 8, app_key) < 0) ? -1 : 0; - } -} - -time_t -asn_GT2time(const GeneralizedTime_t *st, struct tm *ret_tm, int as_gmt) { - return asn_GT2time_frac(st, 0, 0, ret_tm, as_gmt); -} - -time_t -asn_GT2time_prec(const GeneralizedTime_t *st, int *frac_value, int frac_digits, struct tm *ret_tm, int as_gmt) { - time_t tloc; - int fv, fd = 0; - - if(frac_value) - tloc = asn_GT2time_frac(st, &fv, &fd, ret_tm, as_gmt); - else - return asn_GT2time_frac(st, 0, 0, ret_tm, as_gmt); - if(fd == 0 || frac_digits <= 0) { - *frac_value = 0; - } else { - while(fd > frac_digits) - fv /= 10, fd--; - while(fd < frac_digits) { - if(fv < INT_MAX / 10) { - fv *= 10; - fd++; - } else { - /* Too long precision request */ - fv = 0; - break; - } - } - - *frac_value = fv; - } - - return tloc; -} - -time_t -asn_GT2time_frac(const GeneralizedTime_t *st, int *frac_value, int *frac_digits, struct tm *ret_tm, int as_gmt) { - struct tm tm_s; - uint8_t *buf; - uint8_t *end; - int gmtoff_h = 0; - int gmtoff_m = 0; - int gmtoff = 0; /* h + m */ - int offset_specified = 0; - int fvalue = 0; - int fdigits = 0; - time_t tloc; - - if(!st || !st->buf) { - errno = EINVAL; - return -1; - } else { - buf = st->buf; - end = buf + st->size; - } - - if(st->size < 10) { - errno = EINVAL; - return -1; - } - - /* - * Decode first 10 bytes: "AAAAMMJJhh" - */ - memset(&tm_s, 0, sizeof(tm_s)); -#undef B2F -#undef B2T -#define B2F(var) do { \ - unsigned ch = *buf; \ - if(ch < 0x30 || ch > 0x39) { \ - errno = EINVAL; \ - return -1; \ - } else { \ - var = var * 10 + (ch - 0x30); \ - buf++; \ - } \ - } while(0) -#define B2T(var) B2F(tm_s.var) - - B2T(tm_year); /* 1: A */ - B2T(tm_year); /* 2: A */ - B2T(tm_year); /* 3: A */ - B2T(tm_year); /* 4: A */ - B2T(tm_mon); /* 5: M */ - B2T(tm_mon); /* 6: M */ - B2T(tm_mday); /* 7: J */ - B2T(tm_mday); /* 8: J */ - B2T(tm_hour); /* 9: h */ - B2T(tm_hour); /* 0: h */ - - if(buf == end) goto local_finish; - - /* - * Parse [mm[ss[(.|,)ffff]]] - * ^^ - */ - switch(*buf) { - case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: - case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: - tm_s.tm_min = (*buf++) - 0x30; - if(buf == end) { errno = EINVAL; return -1; } - B2T(tm_min); - break; - case 0x2B: case 0x2D: /* +, - */ - goto offset; - case 0x5A: /* Z */ - goto utc_finish; - default: - errno = EINVAL; - return -1; - } - - if(buf == end) goto local_finish; - - /* - * Parse [mm[ss[(.|,)ffff]]] - * ^^ - */ - switch(*buf) { - case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: - case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: - tm_s.tm_sec = (*buf++) - 0x30; - if(buf == end) { errno = EINVAL; return -1; } - B2T(tm_sec); - break; - case 0x2B: case 0x2D: /* +, - */ - goto offset; - case 0x5A: /* Z */ - goto utc_finish; - default: - errno = EINVAL; - return -1; - } - - if(buf == end) goto local_finish; - - /* - * Parse [mm[ss[(.|,)ffff]]] - * ^ ^ - */ - switch(*buf) { - case 0x2C: case 0x2E: /* (.|,) */ - /* - * Process fractions of seconds. - */ - for(buf++; buf < end; buf++) { - int v = *buf; - /* GCC 4.x is being too smart without volatile */ - switch(v) { - case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: - case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: - if(fvalue < INT_MAX/10) { - fvalue = fvalue * 10 + (v - 0x30); - fdigits++; - } else { - /* Not enough precision, ignore */ - } - continue; - default: - break; - } - break; - } - } - - if(buf == end) goto local_finish; - - switch(*buf) { - case 0x2B: case 0x2D: /* +, - */ - goto offset; - case 0x5A: /* Z */ - goto utc_finish; - default: - errno = EINVAL; - return -1; - } - - -offset: - - if(end - buf < 3) { - errno = EINVAL; - return -1; - } - buf++; - B2F(gmtoff_h); - B2F(gmtoff_h); - if(buf[-3] == 0x2D) /* Negative */ - gmtoff = -1; - else - gmtoff = 1; - - if((end - buf) == 2) { - B2F(gmtoff_m); - B2F(gmtoff_m); - } else if(end != buf) { - errno = EINVAL; - return -1; - } - - gmtoff = gmtoff * (3600 * gmtoff_h + 60 * gmtoff_m); - - /* Fall through */ -utc_finish: - - offset_specified = 1; - - /* Fall through */ -local_finish: - - /* - * Validation. - */ - if((tm_s.tm_mon > 12 || tm_s.tm_mon < 1) - || (tm_s.tm_mday > 31 || tm_s.tm_mday < 1) - || (tm_s.tm_hour > 23) - || (tm_s.tm_sec > 60) - ) { - errno = EINVAL; - return -1; - } - - /* Canonicalize */ - tm_s.tm_mon -= 1; /* 0 - 11 */ - tm_s.tm_year -= 1900; - tm_s.tm_isdst = -1; - - tm_s.tm_sec -= gmtoff; - - /*** AT THIS POINT tm_s is either GMT or local (unknown) ****/ - - if(offset_specified) { - tloc = timegm(&tm_s); - } else { - /* - * Without an offset (or "Z"), - * we can only guess that it is a local zone. - * Interpret it in this fashion. - */ - tloc = mktime(&tm_s); - } - if(tloc == -1) { - errno = EINVAL; - return -1; - } - - if(ret_tm) { - if(as_gmt) { - if(offset_specified) { - *ret_tm = tm_s; - } else { - if(gmtime_r(&tloc, ret_tm) == 0) { - errno = EINVAL; - return -1; - } - } - } else { - if(localtime_r(&tloc, ret_tm) == 0) { - errno = EINVAL; - return -1; - } - } - } - - /* Fractions of seconds */ - if(frac_value) *frac_value = fvalue; - if(frac_digits) *frac_digits = fdigits; - - return tloc; -} - -GeneralizedTime_t * -asn_time2GT(GeneralizedTime_t *opt_gt, const struct tm *tm, int force_gmt) { - return asn_time2GT_frac(opt_gt, tm, 0, 0, force_gmt); -} - -GeneralizedTime_t * -asn_time2GT_frac(GeneralizedTime_t *opt_gt, const struct tm *tm, int frac_value, int frac_digits, int force_gmt) { - struct tm tm_s; - long gmtoff; - const unsigned int buf_size = - 4 + 2 + 2 /* yyyymmdd */ - + 2 + 2 + 2 /* hhmmss */ - + 1 + 6 /* .ffffff */ - + 1 + 4 /* +hhmm */ - + 1 /* '\0' */ - ; - char *buf; - char *p; - int size; - - /* Check arguments */ - if(!tm) { - errno = EINVAL; - return 0; - } - - /* Pre-allocate a buffer of sufficient yet small length */ - buf = (char *)MALLOC(buf_size); - if(!buf) return 0; - - gmtoff = GMTOFF(*tm); - - if(force_gmt && gmtoff) { - tm_s = *tm; - tm_s.tm_sec -= gmtoff; - timegm(&tm_s); /* Fix the time */ - tm = &tm_s; -#ifdef HAVE_TM_GMTOFF - assert(!GMTOFF(tm_s)); /* Will fix itself */ -#else /* !HAVE_TM_GMTOFF */ - gmtoff = 0; -#endif - } - - size = snprintf(buf, buf_size, "%04d%02d%02d%02d%02d%02d", - tm->tm_year + 1900, - tm->tm_mon + 1, - tm->tm_mday, - tm->tm_hour, - tm->tm_min, - tm->tm_sec - ); - if(size != 14) { - /* Could be assert(size == 14); */ - FREEMEM(buf); - errno = EINVAL; - return 0; - } - - p = buf + size; - - /* - * Deal with fractions. - */ - if(frac_value > 0 && frac_digits > 0) { - char *end = p + 1 + 6; /* '.' + maximum 6 digits */ - char *z = p; - long fbase; - *z++ = '.'; - - /* Place bounds on precision */ - while(frac_digits-- > 6) - frac_value /= 10; - - /* emulate fbase = pow(10, frac_digits) */ - for(fbase = 1; frac_digits--;) - fbase *= 10; - - do { - int digit = frac_value / fbase; - if(digit > 9) { z = 0; break; } - *z++ = digit + 0x30; - frac_value %= fbase; - fbase /= 10; - } while(fbase > 0 && frac_value > 0 && z < end); - if(z) { - for(--z; *z == 0x30; --z); /* Strip zeroes */ - p = z + (*z != '.'); - size = p - buf; - } - } - - if(force_gmt) { - *p++ = 0x5a; /* "Z" */ - *p++ = 0; - size++; - } else { - int ret; - gmtoff %= 86400; - ret = snprintf(p, buf_size - size, "%+03ld%02ld", - gmtoff / 3600, labs(gmtoff % 3600) / 60); - if(ret != 5) { - FREEMEM(buf); - errno = EINVAL; - return 0; - } - size += ret; - } - - if(opt_gt) { - if(opt_gt->buf) - FREEMEM(opt_gt->buf); - } else { - opt_gt = (GeneralizedTime_t *)CALLOC(1, sizeof *opt_gt); - if(!opt_gt) { FREEMEM(buf); return 0; } - } - - opt_gt->buf = (unsigned char *)buf; - opt_gt->size = size; - - return opt_gt; -} - -asn_random_fill_result_t -GeneralizedTime_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constraints, - size_t max_length) { - asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - static const char *values[] = { - "19700101000000", "19700101000000-0000", "19700101000000+0000", - "19700101000000Z", "19700101000000.3Z", "19821106210623.3", - "19821106210629.3Z", "19691106210827.3-0500", "19821106210629.456", - }; - size_t rnd = asn_random_between(0, sizeof(values)/sizeof(values[0])-1); - - (void)constraints; - - if(max_length < sizeof("yyyymmddhhmmss") && !*sptr) { - return result_skipped; - } - - if(*sptr) { - if(OCTET_STRING_fromBuf(*sptr, values[rnd], -1) != 0) { - if(!sptr) return result_failed; - } - } else { - *sptr = OCTET_STRING_new_fromBuf(td, values[rnd], -1); - if(!sptr) return result_failed; - } - - return result_ok; -} - -int -GeneralizedTime_compare(const asn_TYPE_descriptor_t *td, const void *aptr, - const void *bptr) { - const GeneralizedTime_t *a = aptr; - const GeneralizedTime_t *b = bptr; - - (void)td; - - if(a && b) { - int afrac_value, afrac_digits; - int bfrac_value, bfrac_digits; - int aerr, berr; - time_t at, bt; - - errno = EPERM; - at = asn_GT2time_frac(a, &afrac_value, &afrac_digits, 0, 0); - aerr = errno; - errno = EPERM; - bt = asn_GT2time_frac(b, &bfrac_value, &bfrac_digits, 0, 0); - berr = errno; - - if(at == -1 && aerr != EPERM) { - if(bt == -1 && berr != EPERM) { - return OCTET_STRING_compare(td, aptr, bptr); - } else { - return -1; - } - } else if(bt == -1 && berr != EPERM) { - return 1; - } else { - /* Both values are valid. */ - } - - if(at < bt) { - return -1; - } else if(at > bt) { - return 1; - } else if(afrac_digits == bfrac_digits) { - if(afrac_value == bfrac_value) { - return 0; - } - if(afrac_value < bfrac_value) { - return -1; - } else { - return 1; - } - } else if(afrac_digits == 0) { - return -1; - } else if(bfrac_digits == 0) { - return 1; - } else { - double afrac = (double)afrac_value / afrac_digits; - double bfrac = (double)bfrac_value / bfrac_digits; - if(afrac < bfrac) { - return -1; - } else if(afrac > bfrac) { - return 1; - } else { - return 0; - } - } - } else if(!a && !b) { - return 0; - } else if(!a) { - return -1; - } else { - return 1; - } - -} - diff --git a/asn.1/generated/GeneralizedTime.h b/asn.1/generated/GeneralizedTime.h deleted file mode 100644 index c4e5c56f..00000000 --- a/asn.1/generated/GeneralizedTime.h +++ /dev/null @@ -1,78 +0,0 @@ -/*- - * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef _GeneralizedTime_H_ -#define _GeneralizedTime_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef OCTET_STRING_t GeneralizedTime_t; /* Implemented via OCTET STRING */ - -extern asn_TYPE_descriptor_t asn_DEF_GeneralizedTime; -extern asn_TYPE_operation_t asn_OP_GeneralizedTime; - -asn_struct_print_f GeneralizedTime_print; -asn_struct_compare_f GeneralizedTime_compare; -asn_constr_check_f GeneralizedTime_constraint; -der_type_encoder_f GeneralizedTime_encode_der; -xer_type_encoder_f GeneralizedTime_encode_xer; -asn_random_fill_f GeneralizedTime_random_fill; - -#define GeneralizedTime_free OCTET_STRING_free -#define GeneralizedTime_decode_ber OCTET_STRING_decode_ber -#define GeneralizedTime_decode_xer OCTET_STRING_decode_xer_utf8 -#define GeneralizedTime_decode_uper OCTET_STRING_decode_uper -#define GeneralizedTime_encode_uper OCTET_STRING_encode_uper - -/*********************** - * Some handy helpers. * - ***********************/ - -struct tm; /* */ - -/* - * Convert a GeneralizedTime structure into time_t - * and optionally into struct tm. - * If as_gmt is given, the resulting _optional_tm4fill will have a GMT zone, - * instead of default local one. - * On error returns -1 and errno set to EINVAL - */ -time_t asn_GT2time(const GeneralizedTime_t *, struct tm *_optional_tm4fill, - int as_gmt); - -/* A version of the above function also returning the fractions of seconds */ -time_t asn_GT2time_frac(const GeneralizedTime_t *, - int *frac_value, int *frac_digits, /* (value / (10 ^ digits)) */ - struct tm *_optional_tm4fill, int as_gmt); - -/* - * Another version returning fractions with defined precision - * For example, parsing of the time ending with ".1" seconds - * with frac_digits=3 (msec) would yield frac_value = 100. - */ -time_t asn_GT2time_prec(const GeneralizedTime_t *, - int *frac_value, int frac_digits, - struct tm *_optional_tm4fill, int as_gmt); - -/* - * Convert a struct tm into GeneralizedTime. - * If _optional_gt is not given, this function will try to allocate one. - * If force_gmt is given, the resulting GeneralizedTime will be forced - * into a GMT time zone (encoding ends with a "Z"). - * On error, this function returns 0 and sets errno. - */ -GeneralizedTime_t *asn_time2GT(GeneralizedTime_t *_optional_gt, - const struct tm *, int force_gmt); -GeneralizedTime_t *asn_time2GT_frac(GeneralizedTime_t *_optional_gt, - const struct tm *, int frac_value, int frac_digits, int force_gmt); - -#ifdef __cplusplus -} -#endif - -#endif /* _GeneralizedTime_H_ */ diff --git a/asn.1/generated/GeoAreaIndex.c b/asn.1/generated/GeoAreaIndex.c deleted file mode 100644 index 729ac60a..00000000 --- a/asn.1/generated/GeoAreaIndex.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GeoAreaIndex.h" - -int -GeoAreaIndex_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 32)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_GeoAreaIndex_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (1..32) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_GeoAreaIndex_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_GeoAreaIndex = { - "GeoAreaIndex", - "GeoAreaIndex", - &asn_OP_NativeInteger, - asn_DEF_GeoAreaIndex_tags_1, - sizeof(asn_DEF_GeoAreaIndex_tags_1) - /sizeof(asn_DEF_GeoAreaIndex_tags_1[0]), /* 1 */ - asn_DEF_GeoAreaIndex_tags_1, /* Same as above */ - sizeof(asn_DEF_GeoAreaIndex_tags_1) - /sizeof(asn_DEF_GeoAreaIndex_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GeoAreaIndex_constr_1, GeoAreaIndex_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/GeoAreaIndex.h b/asn.1/generated/GeoAreaIndex.h deleted file mode 100644 index 54f99996..00000000 --- a/asn.1/generated/GeoAreaIndex.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GeoAreaIndex_H_ -#define _GeoAreaIndex_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* GeoAreaIndex */ -typedef long GeoAreaIndex_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_GeoAreaIndex_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_GeoAreaIndex; -asn_struct_free_f GeoAreaIndex_free; -asn_struct_print_f GeoAreaIndex_print; -asn_constr_check_f GeoAreaIndex_constraint; -ber_type_decoder_f GeoAreaIndex_decode_ber; -der_type_encoder_f GeoAreaIndex_encode_der; -xer_type_decoder_f GeoAreaIndex_decode_xer; -xer_type_encoder_f GeoAreaIndex_encode_xer; -per_type_decoder_f GeoAreaIndex_decode_uper; -per_type_encoder_f GeoAreaIndex_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _GeoAreaIndex_H_ */ -#include diff --git a/asn.1/generated/GeoAreaMappingList.c b/asn.1/generated/GeoAreaMappingList.c deleted file mode 100644 index 1759b521..00000000 --- a/asn.1/generated/GeoAreaMappingList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GeoAreaMappingList.h" - -asn_per_constraints_t asn_PER_type_GeoAreaMappingList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GeoAreaMappingList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_GeoAreaIndex, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GeoAreaMappingList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GeoAreaMappingList_specs_1 = { - sizeof(struct GeoAreaMappingList), - offsetof(struct GeoAreaMappingList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GeoAreaMappingList = { - "GeoAreaMappingList", - "GeoAreaMappingList", - &asn_OP_SEQUENCE_OF, - asn_DEF_GeoAreaMappingList_tags_1, - sizeof(asn_DEF_GeoAreaMappingList_tags_1) - /sizeof(asn_DEF_GeoAreaMappingList_tags_1[0]), /* 1 */ - asn_DEF_GeoAreaMappingList_tags_1, /* Same as above */ - sizeof(asn_DEF_GeoAreaMappingList_tags_1) - /sizeof(asn_DEF_GeoAreaMappingList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GeoAreaMappingList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GeoAreaMappingList_1, - 1, /* Single element */ - &asn_SPC_GeoAreaMappingList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GeoAreaShapesSupported.c b/asn.1/generated/GeoAreaShapesSupported.c deleted file mode 100644 index 74610fbd..00000000 --- a/asn.1/generated/GeoAreaShapesSupported.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GeoAreaShapesSupported.h" - -asn_TYPE_member_t asn_MBR_GeoAreaShapesSupported_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GeoAreaShapesSupported, ellipticalArea), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ellipticalArea" - }, - { ATF_NOFLAGS, 0, offsetof(struct GeoAreaShapesSupported, polygonArea), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "polygonArea" - }, -}; -static const ber_tlv_tag_t asn_DEF_GeoAreaShapesSupported_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GeoAreaShapesSupported_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ellipticalArea */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* polygonArea */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GeoAreaShapesSupported_specs_1 = { - sizeof(struct GeoAreaShapesSupported), - offsetof(struct GeoAreaShapesSupported, _asn_ctx), - asn_MAP_GeoAreaShapesSupported_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GeoAreaShapesSupported = { - "GeoAreaShapesSupported", - "GeoAreaShapesSupported", - &asn_OP_SEQUENCE, - asn_DEF_GeoAreaShapesSupported_tags_1, - sizeof(asn_DEF_GeoAreaShapesSupported_tags_1) - /sizeof(asn_DEF_GeoAreaShapesSupported_tags_1[0]), /* 1 */ - asn_DEF_GeoAreaShapesSupported_tags_1, /* Same as above */ - sizeof(asn_DEF_GeoAreaShapesSupported_tags_1) - /sizeof(asn_DEF_GeoAreaShapesSupported_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GeoAreaShapesSupported_1, - 2, /* Elements count */ - &asn_SPC_GeoAreaShapesSupported_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GeographicTargetArea.c b/asn.1/generated/GeographicTargetArea.c deleted file mode 100644 index 6a012c88..00000000 --- a/asn.1/generated/GeographicTargetArea.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GeographicTargetArea.h" - -asn_per_constraints_t asn_PER_type_GeographicTargetArea_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GeographicTargetArea_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GeographicTargetArea, choice.circularArea), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CircularArea, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "circularArea" - }, - { ATF_NOFLAGS, 0, offsetof(struct GeographicTargetArea, choice.ellipticalArea), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EllipticalArea, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ellipticalArea" - }, - { ATF_NOFLAGS, 0, offsetof(struct GeographicTargetArea, choice.polygonArea), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PolygonArea, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "polygonArea" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_GeographicTargetArea_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* circularArea */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ellipticalArea */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* polygonArea */ -}; -asn_CHOICE_specifics_t asn_SPC_GeographicTargetArea_specs_1 = { - sizeof(struct GeographicTargetArea), - offsetof(struct GeographicTargetArea, _asn_ctx), - offsetof(struct GeographicTargetArea, present), - sizeof(((struct GeographicTargetArea *)0)->present), - asn_MAP_GeographicTargetArea_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, - 3 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_GeographicTargetArea = { - "GeographicTargetArea", - "GeographicTargetArea", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_GeographicTargetArea_constr_1, CHOICE_constraint }, - asn_MBR_GeographicTargetArea_1, - 3, /* Elements count */ - &asn_SPC_GeographicTargetArea_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GeographicTargetAreaList.c b/asn.1/generated/GeographicTargetAreaList.c deleted file mode 100644 index bdcc16b2..00000000 --- a/asn.1/generated/GeographicTargetAreaList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GeographicTargetAreaList.h" - -asn_per_constraints_t asn_PER_type_GeographicTargetAreaList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GeographicTargetAreaList_1[] = { - { ATF_POINTER, 0, 0, - -1 /* Ambiguous tag (CHOICE?) */, - 0, - &asn_DEF_GeographicTargetArea, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GeographicTargetAreaList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GeographicTargetAreaList_specs_1 = { - sizeof(struct GeographicTargetAreaList), - offsetof(struct GeographicTargetAreaList, _asn_ctx), - 2, /* XER encoding is XMLValueList */ -}; -asn_TYPE_descriptor_t asn_DEF_GeographicTargetAreaList = { - "GeographicTargetAreaList", - "GeographicTargetAreaList", - &asn_OP_SEQUENCE_OF, - asn_DEF_GeographicTargetAreaList_tags_1, - sizeof(asn_DEF_GeographicTargetAreaList_tags_1) - /sizeof(asn_DEF_GeographicTargetAreaList_tags_1[0]), /* 1 */ - asn_DEF_GeographicTargetAreaList_tags_1, /* Same as above */ - sizeof(asn_DEF_GeographicTargetAreaList_tags_1) - /sizeof(asn_DEF_GeographicTargetAreaList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GeographicTargetAreaList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GeographicTargetAreaList_1, - 1, /* Single element */ - &asn_SPC_GeographicTargetAreaList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Geometric-Ionospheric-Corrections-Differences-Element-r15.c b/asn.1/generated/Geometric-Ionospheric-Corrections-Differences-Element-r15.c deleted file mode 100644 index c8ee8cce..00000000 --- a/asn.1/generated/Geometric-Ionospheric-Corrections-Differences-Element-r15.c +++ /dev/null @@ -1,256 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Geometric-Ionospheric-Corrections-Differences-Element-r15.h" - -static int -memb_ambiguityStatusFlag_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_non_synch_count_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 7)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_geometricCarrierPhaseCorrectionDifference_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -65536 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_iod_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 11)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ionosphericCarrierPhaseCorrectionDifference_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -65536 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_ambiguityStatusFlag_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_non_synch_count_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_geometricCarrierPhaseCorrectionDifference_r15_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 17, -1, -65536, 65535 } /* (-65536..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_iod_r15_constr_6 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 11, 11 } /* (SIZE(11..11)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ionosphericCarrierPhaseCorrectionDifference_r15_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 17, -1, -65536, 65535 } /* (-65536..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_Geometric_Ionospheric_Corrections_Differences_Element_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Geometric_Ionospheric_Corrections_Differences_Element_r15, svID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct Geometric_Ionospheric_Corrections_Differences_Element_r15, ambiguityStatusFlag_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ambiguityStatusFlag_r15_constr_3, memb_ambiguityStatusFlag_r15_constraint_1 }, - 0, 0, /* No default value */ - "ambiguityStatusFlag-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct Geometric_Ionospheric_Corrections_Differences_Element_r15, non_synch_count_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_non_synch_count_r15_constr_4, memb_non_synch_count_r15_constraint_1 }, - 0, 0, /* No default value */ - "non-synch-count-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct Geometric_Ionospheric_Corrections_Differences_Element_r15, geometricCarrierPhaseCorrectionDifference_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_geometricCarrierPhaseCorrectionDifference_r15_constr_5, memb_geometricCarrierPhaseCorrectionDifference_r15_constraint_1 }, - 0, 0, /* No default value */ - "geometricCarrierPhaseCorrectionDifference-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct Geometric_Ionospheric_Corrections_Differences_Element_r15, iod_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_iod_r15_constr_6, memb_iod_r15_constraint_1 }, - 0, 0, /* No default value */ - "iod-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct Geometric_Ionospheric_Corrections_Differences_Element_r15, ionosphericCarrierPhaseCorrectionDifference_r15), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ionosphericCarrierPhaseCorrectionDifference_r15_constr_7, memb_ionosphericCarrierPhaseCorrectionDifference_r15_constraint_1 }, - 0, 0, /* No default value */ - "ionosphericCarrierPhaseCorrectionDifference-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_Geometric_Ionospheric_Corrections_Differences_Element_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Geometric_Ionospheric_Corrections_Differences_Element_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ambiguityStatusFlag-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* non-synch-count-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* geometricCarrierPhaseCorrectionDifference-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* iod-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ionosphericCarrierPhaseCorrectionDifference-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Geometric_Ionospheric_Corrections_Differences_Element_r15_specs_1 = { - sizeof(struct Geometric_Ionospheric_Corrections_Differences_Element_r15), - offsetof(struct Geometric_Ionospheric_Corrections_Differences_Element_r15, _asn_ctx), - asn_MAP_Geometric_Ionospheric_Corrections_Differences_Element_r15_tag2el_1, - 6, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Geometric_Ionospheric_Corrections_Differences_Element_r15 = { - "Geometric-Ionospheric-Corrections-Differences-Element-r15", - "Geometric-Ionospheric-Corrections-Differences-Element-r15", - &asn_OP_SEQUENCE, - asn_DEF_Geometric_Ionospheric_Corrections_Differences_Element_r15_tags_1, - sizeof(asn_DEF_Geometric_Ionospheric_Corrections_Differences_Element_r15_tags_1) - /sizeof(asn_DEF_Geometric_Ionospheric_Corrections_Differences_Element_r15_tags_1[0]), /* 1 */ - asn_DEF_Geometric_Ionospheric_Corrections_Differences_Element_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_Geometric_Ionospheric_Corrections_Differences_Element_r15_tags_1) - /sizeof(asn_DEF_Geometric_Ionospheric_Corrections_Differences_Element_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Geometric_Ionospheric_Corrections_Differences_Element_r15_1, - 6, /* Elements count */ - &asn_SPC_Geometric_Ionospheric_Corrections_Differences_Element_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Geometric-Ionospheric-Corrections-Differences-r15.c b/asn.1/generated/Geometric-Ionospheric-Corrections-Differences-r15.c deleted file mode 100644 index 40b6190b..00000000 --- a/asn.1/generated/Geometric-Ionospheric-Corrections-Differences-r15.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Geometric-Ionospheric-Corrections-Differences-r15.h" - -asn_per_constraints_t asn_PER_type_Geometric_Ionospheric_Corrections_Differences_r15_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_Geometric_Ionospheric_Corrections_Differences_r15_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_Geometric_Ionospheric_Corrections_Differences_Element_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_Geometric_Ionospheric_Corrections_Differences_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_Geometric_Ionospheric_Corrections_Differences_r15_specs_1 = { - sizeof(struct Geometric_Ionospheric_Corrections_Differences_r15), - offsetof(struct Geometric_Ionospheric_Corrections_Differences_r15, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_Geometric_Ionospheric_Corrections_Differences_r15 = { - "Geometric-Ionospheric-Corrections-Differences-r15", - "Geometric-Ionospheric-Corrections-Differences-r15", - &asn_OP_SEQUENCE_OF, - asn_DEF_Geometric_Ionospheric_Corrections_Differences_r15_tags_1, - sizeof(asn_DEF_Geometric_Ionospheric_Corrections_Differences_r15_tags_1) - /sizeof(asn_DEF_Geometric_Ionospheric_Corrections_Differences_r15_tags_1[0]), /* 1 */ - asn_DEF_Geometric_Ionospheric_Corrections_Differences_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_Geometric_Ionospheric_Corrections_Differences_r15_tags_1) - /sizeof(asn_DEF_Geometric_Ionospheric_Corrections_Differences_r15_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_Geometric_Ionospheric_Corrections_Differences_r15_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_Geometric_Ionospheric_Corrections_Differences_r15_1, - 1, /* Single element */ - &asn_SPC_Geometric_Ionospheric_Corrections_Differences_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GridElement-r16.c b/asn.1/generated/GridElement-r16.c deleted file mode 100644 index ea9cb2e2..00000000 --- a/asn.1/generated/GridElement-r16.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GridElement-r16.h" - -asn_TYPE_member_t asn_MBR_GridElement_r16_1[] = { - { ATF_POINTER, 2, offsetof(struct GridElement_r16, tropospericDelayCorrection_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TropospericDelayCorrection_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tropospericDelayCorrection-r16" - }, - { ATF_POINTER, 1, offsetof(struct GridElement_r16, stec_ResidualSatList_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_STEC_ResidualSatList_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "stec-ResidualSatList-r16" - }, -}; -static const int asn_MAP_GridElement_r16_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_GridElement_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GridElement_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tropospericDelayCorrection-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* stec-ResidualSatList-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GridElement_r16_specs_1 = { - sizeof(struct GridElement_r16), - offsetof(struct GridElement_r16, _asn_ctx), - asn_MAP_GridElement_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_GridElement_r16_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GridElement_r16 = { - "GridElement-r16", - "GridElement-r16", - &asn_OP_SEQUENCE, - asn_DEF_GridElement_r16_tags_1, - sizeof(asn_DEF_GridElement_r16_tags_1) - /sizeof(asn_DEF_GridElement_r16_tags_1[0]), /* 1 */ - asn_DEF_GridElement_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GridElement_r16_tags_1) - /sizeof(asn_DEF_GridElement_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GridElement_r16_1, - 2, /* Elements count */ - &asn_SPC_GridElement_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GridElement-r16.h b/asn.1/generated/GridElement-r16.h deleted file mode 100644 index ddd078ea..00000000 --- a/asn.1/generated/GridElement-r16.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _GridElement_r16_H_ -#define _GridElement_r16_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct TropospericDelayCorrection_r16; -struct STEC_ResidualSatList_r16; - -/* GridElement-r16 */ -typedef struct GridElement_r16 { - struct TropospericDelayCorrection_r16 *tropospericDelayCorrection_r16 /* OPTIONAL */; - struct STEC_ResidualSatList_r16 *stec_ResidualSatList_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GridElement_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GridElement_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_GridElement_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_GridElement_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "TropospericDelayCorrection-r16.h" -#include "STEC-ResidualSatList-r16.h" - -#endif /* _GridElement_r16_H_ */ -#include diff --git a/asn.1/generated/GridIonElement-r12.c b/asn.1/generated/GridIonElement-r12.c deleted file mode 100644 index 02a22023..00000000 --- a/asn.1/generated/GridIonElement-r12.c +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GridIonElement-r12.h" - -static int -memb_igp_ID_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 320)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_dt_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givei_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_igp_ID_r12_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 1, 320 } /* (1..320) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_dt_r12_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givei_r12_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GridIonElement_r12_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GridIonElement_r12, igp_ID_r12), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_igp_ID_r12_constr_2, memb_igp_ID_r12_constraint_1 }, - 0, 0, /* No default value */ - "igp-ID-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct GridIonElement_r12, dt_r12), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_dt_r12_constr_3, memb_dt_r12_constraint_1 }, - 0, 0, /* No default value */ - "dt-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct GridIonElement_r12, givei_r12), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givei_r12_constr_4, memb_givei_r12_constraint_1 }, - 0, 0, /* No default value */ - "givei-r12" - }, -}; -static const ber_tlv_tag_t asn_DEF_GridIonElement_r12_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GridIonElement_r12_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* igp-ID-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* dt-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* givei-r12 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GridIonElement_r12_specs_1 = { - sizeof(struct GridIonElement_r12), - offsetof(struct GridIonElement_r12, _asn_ctx), - asn_MAP_GridIonElement_r12_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GridIonElement_r12 = { - "GridIonElement-r12", - "GridIonElement-r12", - &asn_OP_SEQUENCE, - asn_DEF_GridIonElement_r12_tags_1, - sizeof(asn_DEF_GridIonElement_r12_tags_1) - /sizeof(asn_DEF_GridIonElement_r12_tags_1[0]), /* 1 */ - asn_DEF_GridIonElement_r12_tags_1, /* Same as above */ - sizeof(asn_DEF_GridIonElement_r12_tags_1) - /sizeof(asn_DEF_GridIonElement_r12_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GridIonElement_r12_1, - 3, /* Elements count */ - &asn_SPC_GridIonElement_r12_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GridIonList-r12.c b/asn.1/generated/GridIonList-r12.c deleted file mode 100644 index 8ec5c4f2..00000000 --- a/asn.1/generated/GridIonList-r12.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GridIonList-r12.h" - -asn_per_constraints_t asn_PER_type_GridIonList_r12_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 9, 9, 1, 320 } /* (SIZE(1..320)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GridIonList_r12_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GridIonElement_r12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GridIonList_r12_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GridIonList_r12_specs_1 = { - sizeof(struct GridIonList_r12), - offsetof(struct GridIonList_r12, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GridIonList_r12 = { - "GridIonList-r12", - "GridIonList-r12", - &asn_OP_SEQUENCE_OF, - asn_DEF_GridIonList_r12_tags_1, - sizeof(asn_DEF_GridIonList_r12_tags_1) - /sizeof(asn_DEF_GridIonList_r12_tags_1[0]), /* 1 */ - asn_DEF_GridIonList_r12_tags_1, /* Same as above */ - sizeof(asn_DEF_GridIonList_r12_tags_1) - /sizeof(asn_DEF_GridIonList_r12_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GridIonList_r12_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GridIonList_r12_1, - 1, /* Single element */ - &asn_SPC_GridIonList_r12_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GridList-r16.c b/asn.1/generated/GridList-r16.c deleted file mode 100644 index cd389bde..00000000 --- a/asn.1/generated/GridList-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GridList-r16.h" - -asn_per_constraints_t asn_PER_type_GridList_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GridList_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GridElement_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_GridList_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_GridList_r16_specs_1 = { - sizeof(struct GridList_r16), - offsetof(struct GridList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_GridList_r16 = { - "GridList-r16", - "GridList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_GridList_r16_tags_1, - sizeof(asn_DEF_GridList_r16_tags_1) - /sizeof(asn_DEF_GridList_r16_tags_1[0]), /* 1 */ - asn_DEF_GridList_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_GridList_r16_tags_1) - /sizeof(asn_DEF_GridList_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_GridList_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_GridList_r16_1, - 1, /* Single element */ - &asn_SPC_GridList_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/GsmCellInformation.c b/asn.1/generated/GsmCellInformation.c deleted file mode 100644 index c8921018..00000000 --- a/asn.1/generated/GsmCellInformation.c +++ /dev/null @@ -1,252 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "GsmCellInformation.h" - -static int -memb_refMCC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refMNC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refLAC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refCI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_tA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_refMCC_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refMNC_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refLAC_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refCI_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_tA_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_GsmCellInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GsmCellInformation, refMCC), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refMCC_constr_2, memb_refMCC_constraint_1 }, - 0, 0, /* No default value */ - "refMCC" - }, - { ATF_NOFLAGS, 0, offsetof(struct GsmCellInformation, refMNC), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refMNC_constr_3, memb_refMNC_constraint_1 }, - 0, 0, /* No default value */ - "refMNC" - }, - { ATF_NOFLAGS, 0, offsetof(struct GsmCellInformation, refLAC), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refLAC_constr_4, memb_refLAC_constraint_1 }, - 0, 0, /* No default value */ - "refLAC" - }, - { ATF_NOFLAGS, 0, offsetof(struct GsmCellInformation, refCI), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refCI_constr_5, memb_refCI_constraint_1 }, - 0, 0, /* No default value */ - "refCI" - }, - { ATF_POINTER, 2, offsetof(struct GsmCellInformation, nMR), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NMR, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nMR" - }, - { ATF_POINTER, 1, offsetof(struct GsmCellInformation, tA), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_tA_constr_7, memb_tA_constraint_1 }, - 0, 0, /* No default value */ - "tA" - }, -}; -static const int asn_MAP_GsmCellInformation_oms_1[] = { 4, 5 }; -static const ber_tlv_tag_t asn_DEF_GsmCellInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GsmCellInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refMCC */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refMNC */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* refLAC */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* refCI */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nMR */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* tA */ -}; -asn_SEQUENCE_specifics_t asn_SPC_GsmCellInformation_specs_1 = { - sizeof(struct GsmCellInformation), - offsetof(struct GsmCellInformation, _asn_ctx), - asn_MAP_GsmCellInformation_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_GsmCellInformation_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_GsmCellInformation = { - "GsmCellInformation", - "GsmCellInformation", - &asn_OP_SEQUENCE, - asn_DEF_GsmCellInformation_tags_1, - sizeof(asn_DEF_GsmCellInformation_tags_1) - /sizeof(asn_DEF_GsmCellInformation_tags_1[0]), /* 1 */ - asn_DEF_GsmCellInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_GsmCellInformation_tags_1) - /sizeof(asn_DEF_GsmCellInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_GsmCellInformation_1, - 6, /* Elements count */ - &asn_SPC_GsmCellInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/HRPDAreaId.c b/asn.1/generated/HRPDAreaId.c deleted file mode 100644 index bf316b2d..00000000 --- a/asn.1/generated/HRPDAreaId.c +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "HRPDAreaId.h" - -static int -memb_refSECTORID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_refSECTORID_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_HRPDAreaId_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HRPDAreaId, refSECTORID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_refSECTORID_constr_2, memb_refSECTORID_constraint_1 }, - 0, 0, /* No default value */ - "refSECTORID" - }, -}; -static const ber_tlv_tag_t asn_DEF_HRPDAreaId_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_HRPDAreaId_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* refSECTORID */ -}; -asn_SEQUENCE_specifics_t asn_SPC_HRPDAreaId_specs_1 = { - sizeof(struct HRPDAreaId), - offsetof(struct HRPDAreaId, _asn_ctx), - asn_MAP_HRPDAreaId_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_HRPDAreaId = { - "HRPDAreaId", - "HRPDAreaId", - &asn_OP_SEQUENCE, - asn_DEF_HRPDAreaId_tags_1, - sizeof(asn_DEF_HRPDAreaId_tags_1) - /sizeof(asn_DEF_HRPDAreaId_tags_1[0]), /* 1 */ - asn_DEF_HRPDAreaId_tags_1, /* Same as above */ - sizeof(asn_DEF_HRPDAreaId_tags_1) - /sizeof(asn_DEF_HRPDAreaId_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_HRPDAreaId_1, - 1, /* Elements count */ - &asn_SPC_HRPDAreaId_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.c b/asn.1/generated/HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.c deleted file mode 100644 index 8de7266d..00000000 --- a/asn.1/generated/HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.c +++ /dev/null @@ -1,400 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.h" - -static int -memb_degreesLatitude_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_degreesLongitude_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_altitude_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -64000 && value <= 1280000)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_uncertaintySemiMajor_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_uncertaintySemiMinor_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_orientationMajorAxis_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 179)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_horizontalConfidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_uncertaintyAltitude_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_verticalConfidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_degreesLatitude_r15_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_degreesLongitude_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_altitude_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, -64000, 1280000 } /* (-64000..1280000) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_uncertaintySemiMajor_r15_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_uncertaintySemiMinor_r15_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_orientationMajorAxis_r15_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 179 } /* (0..179) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_horizontalConfidence_r15_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_uncertaintyAltitude_r15_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_verticalConfidence_r15_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, degreesLatitude_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_degreesLatitude_r15_constr_2, memb_degreesLatitude_r15_constraint_1 }, - 0, 0, /* No default value */ - "degreesLatitude-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, degreesLongitude_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_degreesLongitude_r15_constr_3, memb_degreesLongitude_r15_constraint_1 }, - 0, 0, /* No default value */ - "degreesLongitude-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, altitude_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_altitude_r15_constr_4, memb_altitude_r15_constraint_1 }, - 0, 0, /* No default value */ - "altitude-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, uncertaintySemiMajor_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_uncertaintySemiMajor_r15_constr_5, memb_uncertaintySemiMajor_r15_constraint_1 }, - 0, 0, /* No default value */ - "uncertaintySemiMajor-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, uncertaintySemiMinor_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_uncertaintySemiMinor_r15_constr_6, memb_uncertaintySemiMinor_r15_constraint_1 }, - 0, 0, /* No default value */ - "uncertaintySemiMinor-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, orientationMajorAxis_r15), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_orientationMajorAxis_r15_constr_7, memb_orientationMajorAxis_r15_constraint_1 }, - 0, 0, /* No default value */ - "orientationMajorAxis-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, horizontalConfidence_r15), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_horizontalConfidence_r15_constr_8, memb_horizontalConfidence_r15_constraint_1 }, - 0, 0, /* No default value */ - "horizontalConfidence-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, uncertaintyAltitude_r15), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_uncertaintyAltitude_r15_constr_9, memb_uncertaintyAltitude_r15_constraint_1 }, - 0, 0, /* No default value */ - "uncertaintyAltitude-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, verticalConfidence_r15), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_verticalConfidence_r15_constr_10, memb_verticalConfidence_r15_constraint_1 }, - 0, 0, /* No default value */ - "verticalConfidence-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* degreesLatitude-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLongitude-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* altitude-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* uncertaintySemiMajor-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* uncertaintySemiMinor-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* orientationMajorAxis-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* horizontalConfidence-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* uncertaintyAltitude-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* verticalConfidence-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_specs_1 = { - sizeof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15), - offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, _asn_ctx), - asn_MAP_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_tag2el_1, - 9, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15 = { - "HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15", - "HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15", - &asn_OP_SEQUENCE, - asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_tags_1, - sizeof(asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_tags_1) - /sizeof(asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_tags_1[0]), /* 1 */ - asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_tags_1) - /sizeof(asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_1, - 9, /* Elements count */ - &asn_SPC_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.c b/asn.1/generated/HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.c deleted file mode 100644 index 5eb39842..00000000 --- a/asn.1/generated/HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.c +++ /dev/null @@ -1,280 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.h" - -static int -memb_degreesLatitude_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_degreesLongitude_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_uncertaintySemiMajor_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_uncertaintySemiMinor_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_orientationMajorAxis_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 179)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_confidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_degreesLatitude_r15_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_degreesLongitude_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_uncertaintySemiMajor_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_uncertaintySemiMinor_r15_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_orientationMajorAxis_r15_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 179 } /* (0..179) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_confidence_r15_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15, degreesLatitude_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_degreesLatitude_r15_constr_2, memb_degreesLatitude_r15_constraint_1 }, - 0, 0, /* No default value */ - "degreesLatitude-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15, degreesLongitude_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_degreesLongitude_r15_constr_3, memb_degreesLongitude_r15_constraint_1 }, - 0, 0, /* No default value */ - "degreesLongitude-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15, uncertaintySemiMajor_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_uncertaintySemiMajor_r15_constr_4, memb_uncertaintySemiMajor_r15_constraint_1 }, - 0, 0, /* No default value */ - "uncertaintySemiMajor-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15, uncertaintySemiMinor_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_uncertaintySemiMinor_r15_constr_5, memb_uncertaintySemiMinor_r15_constraint_1 }, - 0, 0, /* No default value */ - "uncertaintySemiMinor-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15, orientationMajorAxis_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_orientationMajorAxis_r15_constr_6, memb_orientationMajorAxis_r15_constraint_1 }, - 0, 0, /* No default value */ - "orientationMajorAxis-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15, confidence_r15), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_confidence_r15_constr_7, memb_confidence_r15_constraint_1 }, - 0, 0, /* No default value */ - "confidence-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* degreesLatitude-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLongitude-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* uncertaintySemiMajor-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* uncertaintySemiMinor-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* orientationMajorAxis-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* confidence-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_specs_1 = { - sizeof(struct HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15), - offsetof(struct HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15, _asn_ctx), - asn_MAP_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_tag2el_1, - 6, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15 = { - "HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15", - "HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15", - &asn_OP_SEQUENCE, - asn_DEF_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_tags_1, - sizeof(asn_DEF_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_tags_1) - /sizeof(asn_DEF_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_tags_1[0]), /* 1 */ - asn_DEF_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_tags_1) - /sizeof(asn_DEF_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_1, - 6, /* Elements count */ - &asn_SPC_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/HistoricReporting.c b/asn.1/generated/HistoricReporting.c deleted file mode 100644 index 6bb00dbb..00000000 --- a/asn.1/generated/HistoricReporting.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "HistoricReporting.h" - -asn_TYPE_member_t asn_MBR_HistoricReporting_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HistoricReporting, allowedReportingType), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AllowedReportingType, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "allowedReportingType" - }, - { ATF_POINTER, 1, offsetof(struct HistoricReporting, reportingCriteria), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ReportingCriteria, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "reportingCriteria" - }, -}; -static const int asn_MAP_HistoricReporting_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_HistoricReporting_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_HistoricReporting_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* allowedReportingType */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* reportingCriteria */ -}; -asn_SEQUENCE_specifics_t asn_SPC_HistoricReporting_specs_1 = { - sizeof(struct HistoricReporting), - offsetof(struct HistoricReporting, _asn_ctx), - asn_MAP_HistoricReporting_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_HistoricReporting_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_HistoricReporting = { - "HistoricReporting", - "HistoricReporting", - &asn_OP_SEQUENCE, - asn_DEF_HistoricReporting_tags_1, - sizeof(asn_DEF_HistoricReporting_tags_1) - /sizeof(asn_DEF_HistoricReporting_tags_1[0]), /* 1 */ - asn_DEF_HistoricReporting_tags_1, /* Same as above */ - sizeof(asn_DEF_HistoricReporting_tags_1) - /sizeof(asn_DEF_HistoricReporting_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_HistoricReporting_1, - 2, /* Elements count */ - &asn_SPC_HistoricReporting_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Horandveruncert.c b/asn.1/generated/Horandveruncert.c deleted file mode 100644 index 6e3f5c0a..00000000 --- a/asn.1/generated/Horandveruncert.c +++ /dev/null @@ -1,316 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Horandveruncert.h" - -static int -memb_verdirect_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bearing_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 9)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_horspeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 16)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_verspeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_horuncertspeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_veruncertspeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_verdirect_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (SIZE(1..1)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bearing_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 9, 9 } /* (SIZE(9..9)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_horspeed_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_verspeed_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_horuncertspeed_constr_6 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_veruncertspeed_constr_7 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_Horandveruncert_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Horandveruncert, verdirect), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_verdirect_constr_2, memb_verdirect_constraint_1 }, - 0, 0, /* No default value */ - "verdirect" - }, - { ATF_NOFLAGS, 0, offsetof(struct Horandveruncert, bearing), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_bearing_constr_3, memb_bearing_constraint_1 }, - 0, 0, /* No default value */ - "bearing" - }, - { ATF_NOFLAGS, 0, offsetof(struct Horandveruncert, horspeed), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_horspeed_constr_4, memb_horspeed_constraint_1 }, - 0, 0, /* No default value */ - "horspeed" - }, - { ATF_NOFLAGS, 0, offsetof(struct Horandveruncert, verspeed), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_verspeed_constr_5, memb_verspeed_constraint_1 }, - 0, 0, /* No default value */ - "verspeed" - }, - { ATF_NOFLAGS, 0, offsetof(struct Horandveruncert, horuncertspeed), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_horuncertspeed_constr_6, memb_horuncertspeed_constraint_1 }, - 0, 0, /* No default value */ - "horuncertspeed" - }, - { ATF_NOFLAGS, 0, offsetof(struct Horandveruncert, veruncertspeed), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_veruncertspeed_constr_7, memb_veruncertspeed_constraint_1 }, - 0, 0, /* No default value */ - "veruncertspeed" - }, -}; -static const ber_tlv_tag_t asn_DEF_Horandveruncert_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Horandveruncert_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* verdirect */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bearing */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* horspeed */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* verspeed */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* horuncertspeed */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* veruncertspeed */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Horandveruncert_specs_1 = { - sizeof(struct Horandveruncert), - offsetof(struct Horandveruncert, _asn_ctx), - asn_MAP_Horandveruncert_tag2el_1, - 6, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Horandveruncert = { - "Horandveruncert", - "Horandveruncert", - &asn_OP_SEQUENCE, - asn_DEF_Horandveruncert_tags_1, - sizeof(asn_DEF_Horandveruncert_tags_1) - /sizeof(asn_DEF_Horandveruncert_tags_1[0]), /* 1 */ - asn_DEF_Horandveruncert_tags_1, /* Same as above */ - sizeof(asn_DEF_Horandveruncert_tags_1) - /sizeof(asn_DEF_Horandveruncert_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Horandveruncert_1, - 6, /* Elements count */ - &asn_SPC_Horandveruncert_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Horandvervel.c b/asn.1/generated/Horandvervel.c deleted file mode 100644 index 36529530..00000000 --- a/asn.1/generated/Horandvervel.c +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Horandvervel.h" - -static int -memb_verdirect_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bearing_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 9)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_horspeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 16)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_verspeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_verdirect_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (SIZE(1..1)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bearing_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 9, 9 } /* (SIZE(9..9)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_horspeed_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_verspeed_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_Horandvervel_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Horandvervel, verdirect), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_verdirect_constr_2, memb_verdirect_constraint_1 }, - 0, 0, /* No default value */ - "verdirect" - }, - { ATF_NOFLAGS, 0, offsetof(struct Horandvervel, bearing), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_bearing_constr_3, memb_bearing_constraint_1 }, - 0, 0, /* No default value */ - "bearing" - }, - { ATF_NOFLAGS, 0, offsetof(struct Horandvervel, horspeed), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_horspeed_constr_4, memb_horspeed_constraint_1 }, - 0, 0, /* No default value */ - "horspeed" - }, - { ATF_NOFLAGS, 0, offsetof(struct Horandvervel, verspeed), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_verspeed_constr_5, memb_verspeed_constraint_1 }, - 0, 0, /* No default value */ - "verspeed" - }, -}; -static const ber_tlv_tag_t asn_DEF_Horandvervel_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Horandvervel_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* verdirect */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bearing */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* horspeed */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* verspeed */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Horandvervel_specs_1 = { - sizeof(struct Horandvervel), - offsetof(struct Horandvervel, _asn_ctx), - asn_MAP_Horandvervel_tag2el_1, - 4, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Horandvervel = { - "Horandvervel", - "Horandvervel", - &asn_OP_SEQUENCE, - asn_DEF_Horandvervel_tags_1, - sizeof(asn_DEF_Horandvervel_tags_1) - /sizeof(asn_DEF_Horandvervel_tags_1[0]), /* 1 */ - asn_DEF_Horandvervel_tags_1, /* Same as above */ - sizeof(asn_DEF_Horandvervel_tags_1) - /sizeof(asn_DEF_Horandvervel_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Horandvervel_1, - 4, /* Elements count */ - &asn_SPC_Horandvervel_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/HorizontalAccuracy.c b/asn.1/generated/HorizontalAccuracy.c deleted file mode 100644 index 50fcefea..00000000 --- a/asn.1/generated/HorizontalAccuracy.c +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "HorizontalAccuracy.h" - -static int -memb_accuracy_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_confidence_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_accuracy_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_confidence_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_HorizontalAccuracy_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HorizontalAccuracy, accuracy), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_accuracy_constr_2, memb_accuracy_constraint_1 }, - 0, 0, /* No default value */ - "accuracy" - }, - { ATF_NOFLAGS, 0, offsetof(struct HorizontalAccuracy, confidence), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_confidence_constr_3, memb_confidence_constraint_1 }, - 0, 0, /* No default value */ - "confidence" - }, -}; -static const ber_tlv_tag_t asn_DEF_HorizontalAccuracy_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_HorizontalAccuracy_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* accuracy */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence */ -}; -asn_SEQUENCE_specifics_t asn_SPC_HorizontalAccuracy_specs_1 = { - sizeof(struct HorizontalAccuracy), - offsetof(struct HorizontalAccuracy, _asn_ctx), - asn_MAP_HorizontalAccuracy_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_HorizontalAccuracy = { - "HorizontalAccuracy", - "HorizontalAccuracy", - &asn_OP_SEQUENCE, - asn_DEF_HorizontalAccuracy_tags_1, - sizeof(asn_DEF_HorizontalAccuracy_tags_1) - /sizeof(asn_DEF_HorizontalAccuracy_tags_1[0]), /* 1 */ - asn_DEF_HorizontalAccuracy_tags_1, /* Same as above */ - sizeof(asn_DEF_HorizontalAccuracy_tags_1) - /sizeof(asn_DEF_HorizontalAccuracy_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_HorizontalAccuracy_1, - 2, /* Elements count */ - &asn_SPC_HorizontalAccuracy_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/HorizontalAccuracyExt-r15.c b/asn.1/generated/HorizontalAccuracyExt-r15.c deleted file mode 100644 index d03fce1a..00000000 --- a/asn.1/generated/HorizontalAccuracyExt-r15.c +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "HorizontalAccuracyExt-r15.h" - -static int -memb_accuracyExt_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_confidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_accuracyExt_r15_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_confidence_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_HorizontalAccuracyExt_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HorizontalAccuracyExt_r15, accuracyExt_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_accuracyExt_r15_constr_2, memb_accuracyExt_r15_constraint_1 }, - 0, 0, /* No default value */ - "accuracyExt-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct HorizontalAccuracyExt_r15, confidence_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_confidence_r15_constr_3, memb_confidence_r15_constraint_1 }, - 0, 0, /* No default value */ - "confidence-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_HorizontalAccuracyExt_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_HorizontalAccuracyExt_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* accuracyExt-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_HorizontalAccuracyExt_r15_specs_1 = { - sizeof(struct HorizontalAccuracyExt_r15), - offsetof(struct HorizontalAccuracyExt_r15, _asn_ctx), - asn_MAP_HorizontalAccuracyExt_r15_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_HorizontalAccuracyExt_r15 = { - "HorizontalAccuracyExt-r15", - "HorizontalAccuracyExt-r15", - &asn_OP_SEQUENCE, - asn_DEF_HorizontalAccuracyExt_r15_tags_1, - sizeof(asn_DEF_HorizontalAccuracyExt_r15_tags_1) - /sizeof(asn_DEF_HorizontalAccuracyExt_r15_tags_1[0]), /* 1 */ - asn_DEF_HorizontalAccuracyExt_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_HorizontalAccuracyExt_r15_tags_1) - /sizeof(asn_DEF_HorizontalAccuracyExt_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_HorizontalAccuracyExt_r15_1, - 2, /* Elements count */ - &asn_SPC_HorizontalAccuracyExt_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/HorizontalVelocity.c b/asn.1/generated/HorizontalVelocity.c deleted file mode 100644 index 2edae93e..00000000 --- a/asn.1/generated/HorizontalVelocity.c +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "HorizontalVelocity.h" - -static int -memb_bearing_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 359)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_horizontalSpeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_bearing_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 359 } /* (0..359) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_horizontalSpeed_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_HorizontalVelocity_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HorizontalVelocity, bearing), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bearing_constr_2, memb_bearing_constraint_1 }, - 0, 0, /* No default value */ - "bearing" - }, - { ATF_NOFLAGS, 0, offsetof(struct HorizontalVelocity, horizontalSpeed), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_horizontalSpeed_constr_3, memb_horizontalSpeed_constraint_1 }, - 0, 0, /* No default value */ - "horizontalSpeed" - }, -}; -static const ber_tlv_tag_t asn_DEF_HorizontalVelocity_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_HorizontalVelocity_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bearing */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* horizontalSpeed */ -}; -asn_SEQUENCE_specifics_t asn_SPC_HorizontalVelocity_specs_1 = { - sizeof(struct HorizontalVelocity), - offsetof(struct HorizontalVelocity, _asn_ctx), - asn_MAP_HorizontalVelocity_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_HorizontalVelocity = { - "HorizontalVelocity", - "HorizontalVelocity", - &asn_OP_SEQUENCE, - asn_DEF_HorizontalVelocity_tags_1, - sizeof(asn_DEF_HorizontalVelocity_tags_1) - /sizeof(asn_DEF_HorizontalVelocity_tags_1[0]), /* 1 */ - asn_DEF_HorizontalVelocity_tags_1, /* Same as above */ - sizeof(asn_DEF_HorizontalVelocity_tags_1) - /sizeof(asn_DEF_HorizontalVelocity_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_HorizontalVelocity_1, - 2, /* Elements count */ - &asn_SPC_HorizontalVelocity_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/HorizontalVelocityWithUncertainty.c b/asn.1/generated/HorizontalVelocityWithUncertainty.c deleted file mode 100644 index 07220e2f..00000000 --- a/asn.1/generated/HorizontalVelocityWithUncertainty.c +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "HorizontalVelocityWithUncertainty.h" - -static int -memb_bearing_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 359)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_horizontalSpeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_uncertaintySpeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_bearing_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 359 } /* (0..359) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_horizontalSpeed_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_uncertaintySpeed_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_HorizontalVelocityWithUncertainty_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HorizontalVelocityWithUncertainty, bearing), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bearing_constr_2, memb_bearing_constraint_1 }, - 0, 0, /* No default value */ - "bearing" - }, - { ATF_NOFLAGS, 0, offsetof(struct HorizontalVelocityWithUncertainty, horizontalSpeed), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_horizontalSpeed_constr_3, memb_horizontalSpeed_constraint_1 }, - 0, 0, /* No default value */ - "horizontalSpeed" - }, - { ATF_NOFLAGS, 0, offsetof(struct HorizontalVelocityWithUncertainty, uncertaintySpeed), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_uncertaintySpeed_constr_4, memb_uncertaintySpeed_constraint_1 }, - 0, 0, /* No default value */ - "uncertaintySpeed" - }, -}; -static const ber_tlv_tag_t asn_DEF_HorizontalVelocityWithUncertainty_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_HorizontalVelocityWithUncertainty_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bearing */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horizontalSpeed */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* uncertaintySpeed */ -}; -asn_SEQUENCE_specifics_t asn_SPC_HorizontalVelocityWithUncertainty_specs_1 = { - sizeof(struct HorizontalVelocityWithUncertainty), - offsetof(struct HorizontalVelocityWithUncertainty, _asn_ctx), - asn_MAP_HorizontalVelocityWithUncertainty_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_HorizontalVelocityWithUncertainty = { - "HorizontalVelocityWithUncertainty", - "HorizontalVelocityWithUncertainty", - &asn_OP_SEQUENCE, - asn_DEF_HorizontalVelocityWithUncertainty_tags_1, - sizeof(asn_DEF_HorizontalVelocityWithUncertainty_tags_1) - /sizeof(asn_DEF_HorizontalVelocityWithUncertainty_tags_1[0]), /* 1 */ - asn_DEF_HorizontalVelocityWithUncertainty_tags_1, /* Same as above */ - sizeof(asn_DEF_HorizontalVelocityWithUncertainty_tags_1) - /sizeof(asn_DEF_HorizontalVelocityWithUncertainty_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_HorizontalVelocityWithUncertainty_1, - 3, /* Elements count */ - &asn_SPC_HorizontalVelocityWithUncertainty_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/HorizontalWithVerticalVelocity.c b/asn.1/generated/HorizontalWithVerticalVelocity.c deleted file mode 100644 index ab7dc36a..00000000 --- a/asn.1/generated/HorizontalWithVerticalVelocity.c +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "HorizontalWithVerticalVelocity.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_bearing_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 359)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_horizontalSpeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_verticalSpeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_verticalDirection_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bearing_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 359 } /* (0..359) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_horizontalSpeed_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_verticalSpeed_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_verticalDirection_value2enum_4[] = { - { 0, 6, "upward" }, - { 1, 8, "downward" } -}; -static const unsigned int asn_MAP_verticalDirection_enum2value_4[] = { - 1, /* downward(1) */ - 0 /* upward(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_verticalDirection_specs_4 = { - asn_MAP_verticalDirection_value2enum_4, /* "tag" => N; sorted by tag */ - asn_MAP_verticalDirection_enum2value_4, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_verticalDirection_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_verticalDirection_4 = { - "verticalDirection", - "verticalDirection", - &asn_OP_NativeEnumerated, - asn_DEF_verticalDirection_tags_4, - sizeof(asn_DEF_verticalDirection_tags_4) - /sizeof(asn_DEF_verticalDirection_tags_4[0]) - 1, /* 1 */ - asn_DEF_verticalDirection_tags_4, /* Same as above */ - sizeof(asn_DEF_verticalDirection_tags_4) - /sizeof(asn_DEF_verticalDirection_tags_4[0]), /* 2 */ - { 0, &asn_PER_type_verticalDirection_constr_4, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_verticalDirection_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_HorizontalWithVerticalVelocity_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocity, bearing), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bearing_constr_2, memb_bearing_constraint_1 }, - 0, 0, /* No default value */ - "bearing" - }, - { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocity, horizontalSpeed), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_horizontalSpeed_constr_3, memb_horizontalSpeed_constraint_1 }, - 0, 0, /* No default value */ - "horizontalSpeed" - }, - { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocity, verticalDirection), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_verticalDirection_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "verticalDirection" - }, - { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocity, verticalSpeed), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_verticalSpeed_constr_7, memb_verticalSpeed_constraint_1 }, - 0, 0, /* No default value */ - "verticalSpeed" - }, -}; -static const ber_tlv_tag_t asn_DEF_HorizontalWithVerticalVelocity_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_HorizontalWithVerticalVelocity_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bearing */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horizontalSpeed */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* verticalDirection */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* verticalSpeed */ -}; -asn_SEQUENCE_specifics_t asn_SPC_HorizontalWithVerticalVelocity_specs_1 = { - sizeof(struct HorizontalWithVerticalVelocity), - offsetof(struct HorizontalWithVerticalVelocity, _asn_ctx), - asn_MAP_HorizontalWithVerticalVelocity_tag2el_1, - 4, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_HorizontalWithVerticalVelocity = { - "HorizontalWithVerticalVelocity", - "HorizontalWithVerticalVelocity", - &asn_OP_SEQUENCE, - asn_DEF_HorizontalWithVerticalVelocity_tags_1, - sizeof(asn_DEF_HorizontalWithVerticalVelocity_tags_1) - /sizeof(asn_DEF_HorizontalWithVerticalVelocity_tags_1[0]), /* 1 */ - asn_DEF_HorizontalWithVerticalVelocity_tags_1, /* Same as above */ - sizeof(asn_DEF_HorizontalWithVerticalVelocity_tags_1) - /sizeof(asn_DEF_HorizontalWithVerticalVelocity_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_HorizontalWithVerticalVelocity_1, - 4, /* Elements count */ - &asn_SPC_HorizontalWithVerticalVelocity_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/HorizontalWithVerticalVelocityAndUncertainty.c b/asn.1/generated/HorizontalWithVerticalVelocityAndUncertainty.c deleted file mode 100644 index 02cf18bb..00000000 --- a/asn.1/generated/HorizontalWithVerticalVelocityAndUncertainty.c +++ /dev/null @@ -1,296 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "HorizontalWithVerticalVelocityAndUncertainty.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_bearing_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 359)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_horizontalSpeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_verticalSpeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_horizontalUncertaintySpeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_verticalUncertaintySpeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_verticalDirection_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bearing_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 359 } /* (0..359) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_horizontalSpeed_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_verticalSpeed_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_horizontalUncertaintySpeed_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_verticalUncertaintySpeed_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_verticalDirection_value2enum_4[] = { - { 0, 6, "upward" }, - { 1, 8, "downward" } -}; -static const unsigned int asn_MAP_verticalDirection_enum2value_4[] = { - 1, /* downward(1) */ - 0 /* upward(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_verticalDirection_specs_4 = { - asn_MAP_verticalDirection_value2enum_4, /* "tag" => N; sorted by tag */ - asn_MAP_verticalDirection_enum2value_4, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_verticalDirection_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_verticalDirection_4 = { - "verticalDirection", - "verticalDirection", - &asn_OP_NativeEnumerated, - asn_DEF_verticalDirection_tags_4, - sizeof(asn_DEF_verticalDirection_tags_4) - /sizeof(asn_DEF_verticalDirection_tags_4[0]) - 1, /* 1 */ - asn_DEF_verticalDirection_tags_4, /* Same as above */ - sizeof(asn_DEF_verticalDirection_tags_4) - /sizeof(asn_DEF_verticalDirection_tags_4[0]), /* 2 */ - { 0, &asn_PER_type_verticalDirection_constr_4, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_verticalDirection_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_HorizontalWithVerticalVelocityAndUncertainty_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocityAndUncertainty, bearing), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bearing_constr_2, memb_bearing_constraint_1 }, - 0, 0, /* No default value */ - "bearing" - }, - { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocityAndUncertainty, horizontalSpeed), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_horizontalSpeed_constr_3, memb_horizontalSpeed_constraint_1 }, - 0, 0, /* No default value */ - "horizontalSpeed" - }, - { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocityAndUncertainty, verticalDirection), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_verticalDirection_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "verticalDirection" - }, - { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocityAndUncertainty, verticalSpeed), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_verticalSpeed_constr_7, memb_verticalSpeed_constraint_1 }, - 0, 0, /* No default value */ - "verticalSpeed" - }, - { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocityAndUncertainty, horizontalUncertaintySpeed), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_horizontalUncertaintySpeed_constr_8, memb_horizontalUncertaintySpeed_constraint_1 }, - 0, 0, /* No default value */ - "horizontalUncertaintySpeed" - }, - { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocityAndUncertainty, verticalUncertaintySpeed), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_verticalUncertaintySpeed_constr_9, memb_verticalUncertaintySpeed_constraint_1 }, - 0, 0, /* No default value */ - "verticalUncertaintySpeed" - }, -}; -static const ber_tlv_tag_t asn_DEF_HorizontalWithVerticalVelocityAndUncertainty_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_HorizontalWithVerticalVelocityAndUncertainty_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bearing */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horizontalSpeed */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* verticalDirection */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* verticalSpeed */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* horizontalUncertaintySpeed */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* verticalUncertaintySpeed */ -}; -asn_SEQUENCE_specifics_t asn_SPC_HorizontalWithVerticalVelocityAndUncertainty_specs_1 = { - sizeof(struct HorizontalWithVerticalVelocityAndUncertainty), - offsetof(struct HorizontalWithVerticalVelocityAndUncertainty, _asn_ctx), - asn_MAP_HorizontalWithVerticalVelocityAndUncertainty_tag2el_1, - 6, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_HorizontalWithVerticalVelocityAndUncertainty = { - "HorizontalWithVerticalVelocityAndUncertainty", - "HorizontalWithVerticalVelocityAndUncertainty", - &asn_OP_SEQUENCE, - asn_DEF_HorizontalWithVerticalVelocityAndUncertainty_tags_1, - sizeof(asn_DEF_HorizontalWithVerticalVelocityAndUncertainty_tags_1) - /sizeof(asn_DEF_HorizontalWithVerticalVelocityAndUncertainty_tags_1[0]), /* 1 */ - asn_DEF_HorizontalWithVerticalVelocityAndUncertainty_tags_1, /* Same as above */ - sizeof(asn_DEF_HorizontalWithVerticalVelocityAndUncertainty_tags_1) - /sizeof(asn_DEF_HorizontalWithVerticalVelocityAndUncertainty_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_HorizontalWithVerticalVelocityAndUncertainty_1, - 6, /* Elements count */ - &asn_SPC_HorizontalWithVerticalVelocityAndUncertainty_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Horvel.c b/asn.1/generated/Horvel.c deleted file mode 100644 index 06f5ee93..00000000 --- a/asn.1/generated/Horvel.c +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Horvel.h" - -static int -memb_bearing_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 9)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_horspeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 16)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_bearing_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 9, 9 } /* (SIZE(9..9)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_horspeed_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_Horvel_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Horvel, bearing), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_bearing_constr_2, memb_bearing_constraint_1 }, - 0, 0, /* No default value */ - "bearing" - }, - { ATF_NOFLAGS, 0, offsetof(struct Horvel, horspeed), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_horspeed_constr_3, memb_horspeed_constraint_1 }, - 0, 0, /* No default value */ - "horspeed" - }, -}; -static const ber_tlv_tag_t asn_DEF_Horvel_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Horvel_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bearing */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* horspeed */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Horvel_specs_1 = { - sizeof(struct Horvel), - offsetof(struct Horvel, _asn_ctx), - asn_MAP_Horvel_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Horvel = { - "Horvel", - "Horvel", - &asn_OP_SEQUENCE, - asn_DEF_Horvel_tags_1, - sizeof(asn_DEF_Horvel_tags_1) - /sizeof(asn_DEF_Horvel_tags_1[0]), /* 1 */ - asn_DEF_Horvel_tags_1, /* Same as above */ - sizeof(asn_DEF_Horvel_tags_1) - /sizeof(asn_DEF_Horvel_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Horvel_1, - 2, /* Elements count */ - &asn_SPC_Horvel_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Horveluncert.c b/asn.1/generated/Horveluncert.c deleted file mode 100644 index 74047fad..00000000 --- a/asn.1/generated/Horveluncert.c +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Horveluncert.h" - -static int -memb_bearing_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 9)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_horspeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 16)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_uncertspeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_bearing_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 9, 9 } /* (SIZE(9..9)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_horspeed_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_uncertspeed_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_Horveluncert_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Horveluncert, bearing), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_bearing_constr_2, memb_bearing_constraint_1 }, - 0, 0, /* No default value */ - "bearing" - }, - { ATF_NOFLAGS, 0, offsetof(struct Horveluncert, horspeed), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_horspeed_constr_3, memb_horspeed_constraint_1 }, - 0, 0, /* No default value */ - "horspeed" - }, - { ATF_NOFLAGS, 0, offsetof(struct Horveluncert, uncertspeed), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_uncertspeed_constr_4, memb_uncertspeed_constraint_1 }, - 0, 0, /* No default value */ - "uncertspeed" - }, -}; -static const ber_tlv_tag_t asn_DEF_Horveluncert_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Horveluncert_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bearing */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horspeed */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* uncertspeed */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Horveluncert_specs_1 = { - sizeof(struct Horveluncert), - offsetof(struct Horveluncert, _asn_ctx), - asn_MAP_Horveluncert_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Horveluncert = { - "Horveluncert", - "Horveluncert", - &asn_OP_SEQUENCE, - asn_DEF_Horveluncert_tags_1, - sizeof(asn_DEF_Horveluncert_tags_1) - /sizeof(asn_DEF_Horveluncert_tags_1[0]), /* 1 */ - asn_DEF_Horveluncert_tags_1, /* Same as above */ - sizeof(asn_DEF_Horveluncert_tags_1) - /sizeof(asn_DEF_Horveluncert_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Horveluncert_1, - 3, /* Elements count */ - &asn_SPC_Horveluncert_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/HrpdCellInformation.c b/asn.1/generated/HrpdCellInformation.c deleted file mode 100644 index b7614373..00000000 --- a/asn.1/generated/HrpdCellInformation.c +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "HrpdCellInformation.h" - -static int -memb_refSECTORID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refBASELAT_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4194303)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_reBASELONG_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refWeekNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refSeconds_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4194303)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_refSECTORID_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refBASELAT_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, 0, 4194303 } /* (0..4194303) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_reBASELONG_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refWeekNumber_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refSeconds_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, 0, 4194303 } /* (0..4194303) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_HrpdCellInformation_1[] = { - { ATF_POINTER, 1, offsetof(struct HrpdCellInformation, refSECTORID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_refSECTORID_constr_2, memb_refSECTORID_constraint_1 }, - 0, 0, /* No default value */ - "refSECTORID" - }, - { ATF_NOFLAGS, 0, offsetof(struct HrpdCellInformation, refBASELAT), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refBASELAT_constr_3, memb_refBASELAT_constraint_1 }, - 0, 0, /* No default value */ - "refBASELAT" - }, - { ATF_NOFLAGS, 0, offsetof(struct HrpdCellInformation, reBASELONG), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_reBASELONG_constr_4, memb_reBASELONG_constraint_1 }, - 0, 0, /* No default value */ - "reBASELONG" - }, - { ATF_NOFLAGS, 0, offsetof(struct HrpdCellInformation, refWeekNumber), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refWeekNumber_constr_5, memb_refWeekNumber_constraint_1 }, - 0, 0, /* No default value */ - "refWeekNumber" - }, - { ATF_NOFLAGS, 0, offsetof(struct HrpdCellInformation, refSeconds), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refSeconds_constr_6, memb_refSeconds_constraint_1 }, - 0, 0, /* No default value */ - "refSeconds" - }, -}; -static const int asn_MAP_HrpdCellInformation_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_HrpdCellInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_HrpdCellInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refSECTORID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refBASELAT */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* reBASELONG */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* refWeekNumber */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* refSeconds */ -}; -asn_SEQUENCE_specifics_t asn_SPC_HrpdCellInformation_specs_1 = { - sizeof(struct HrpdCellInformation), - offsetof(struct HrpdCellInformation, _asn_ctx), - asn_MAP_HrpdCellInformation_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_HrpdCellInformation_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_HrpdCellInformation = { - "HrpdCellInformation", - "HrpdCellInformation", - &asn_OP_SEQUENCE, - asn_DEF_HrpdCellInformation_tags_1, - sizeof(asn_DEF_HrpdCellInformation_tags_1) - /sizeof(asn_DEF_HrpdCellInformation_tags_1[0]), /* 1 */ - asn_DEF_HrpdCellInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_HrpdCellInformation_tags_1) - /sizeof(asn_DEF_HrpdCellInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_HrpdCellInformation_1, - 5, /* Elements count */ - &asn_SPC_HrpdCellInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/IA5String.c b/asn.1/generated/IA5String.c deleted file mode 100644 index 43970416..00000000 --- a/asn.1/generated/IA5String.c +++ /dev/null @@ -1,93 +0,0 @@ -/*- - * Copyright (c) 2003 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include - -/* - * IA5String basic type description. - */ -static const ber_tlv_tag_t asn_DEF_IA5String_tags[] = { - (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), /* [UNIVERSAL 22] IMPLICIT ...*/ - (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ -}; -static asn_per_constraints_t asn_DEF_IA5String_per_constraints = { - { APC_CONSTRAINED, 7, 7, 0, 0x7f }, /* Value */ - { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 }, /* Size */ - 0, 0 -}; -asn_TYPE_operation_t asn_OP_IA5String = { - OCTET_STRING_free, - OCTET_STRING_print_utf8, /* ASCII subset */ - OCTET_STRING_compare, - OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ - OCTET_STRING_encode_der, - OCTET_STRING_decode_xer_utf8, - OCTET_STRING_encode_xer_utf8, -#ifdef ASN_DISABLE_OER_SUPPORT - 0, - 0, -#else - OCTET_STRING_decode_oer, - OCTET_STRING_encode_oer, -#endif /* ASN_DISABLE_OER_SUPPORT */ -#ifdef ASN_DISABLE_PER_SUPPORT - 0, - 0, -#else - OCTET_STRING_decode_uper, - OCTET_STRING_encode_uper, -#endif /* ASN_DISABLE_PER_SUPPORT */ - OCTET_STRING_random_fill, - 0 /* Use generic outmost tag fetcher */ -}; -asn_TYPE_descriptor_t asn_DEF_IA5String = { - "IA5String", - "IA5String", - &asn_OP_IA5String, - asn_DEF_IA5String_tags, - sizeof(asn_DEF_IA5String_tags) - / sizeof(asn_DEF_IA5String_tags[0]) - 1, - asn_DEF_IA5String_tags, - sizeof(asn_DEF_IA5String_tags) - / sizeof(asn_DEF_IA5String_tags[0]), - { 0, &asn_DEF_IA5String_per_constraints, IA5String_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - -int -IA5String_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const IA5String_t *st = (const IA5String_t *)sptr; - - if(st && st->buf) { - uint8_t *buf = st->buf; - uint8_t *end = buf + st->size; - /* - * IA5String is generally equivalent to 7bit ASCII. - * ISO/ITU-T T.50, 1963. - */ - for(; buf < end; buf++) { - if(*buf > 0x7F) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value byte %ld out of range: " - "%d > 127 (%s:%d)", - td->name, - (long)((buf - st->buf) + 1), - *buf, - __FILE__, __LINE__); - return -1; - } - } - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - return 0; -} - diff --git a/asn.1/generated/IA5String.h b/asn.1/generated/IA5String.h deleted file mode 100644 index 5a4d5f2c..00000000 --- a/asn.1/generated/IA5String.h +++ /dev/null @@ -1,38 +0,0 @@ -/*- - * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef _IA5String_H_ -#define _IA5String_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef OCTET_STRING_t IA5String_t; /* Implemented via OCTET STRING */ - -/* - * IA5String ASN.1 type definition. - */ -extern asn_TYPE_descriptor_t asn_DEF_IA5String; -extern asn_TYPE_operation_t asn_OP_IA5String; - -asn_constr_check_f IA5String_constraint; - -#define IA5String_free OCTET_STRING_free -#define IA5String_print OCTET_STRING_print_utf8 -#define IA5String_compare OCTET_STRING_compare -#define IA5String_decode_ber OCTET_STRING_decode_ber -#define IA5String_encode_der OCTET_STRING_encode_der -#define IA5String_decode_xer OCTET_STRING_decode_xer_utf8 -#define IA5String_encode_xer OCTET_STRING_encode_xer_utf8 -#define IA5String_decode_uper OCTET_STRING_decode_uper -#define IA5String_encode_uper OCTET_STRING_encode_uper - -#ifdef __cplusplus -} -#endif - -#endif /* _IA5String_H_ */ diff --git a/asn.1/generated/INTEGER.c b/asn.1/generated/INTEGER.c deleted file mode 100644 index 4a6a96f1..00000000 --- a/asn.1/generated/INTEGER.c +++ /dev/null @@ -1,1339 +0,0 @@ -/*- - * Copyright (c) 2003-2014 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include -#include /* Encoder and decoder of a primitive type */ -#include - -/* - * INTEGER basic type description. - */ -static const ber_tlv_tag_t asn_DEF_INTEGER_tags[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_operation_t asn_OP_INTEGER = { - INTEGER_free, - INTEGER_print, - INTEGER_compare, - ber_decode_primitive, - INTEGER_encode_der, - INTEGER_decode_xer, - INTEGER_encode_xer, -#ifdef ASN_DISABLE_OER_SUPPORT - 0, - 0, -#else - INTEGER_decode_oer, /* OER decoder */ - INTEGER_encode_oer, /* Canonical OER encoder */ -#endif /* ASN_DISABLE_OER_SUPPORT */ -#ifdef ASN_DISABLE_PER_SUPPORT - 0, - 0, -#else - INTEGER_decode_uper, /* Unaligned PER decoder */ - INTEGER_encode_uper, /* Unaligned PER encoder */ -#endif /* ASN_DISABLE_PER_SUPPORT */ - INTEGER_random_fill, - 0 /* Use generic outmost tag fetcher */ -}; -asn_TYPE_descriptor_t asn_DEF_INTEGER = { - "INTEGER", - "INTEGER", - &asn_OP_INTEGER, - asn_DEF_INTEGER_tags, - sizeof(asn_DEF_INTEGER_tags) / sizeof(asn_DEF_INTEGER_tags[0]), - asn_DEF_INTEGER_tags, /* Same as above */ - sizeof(asn_DEF_INTEGER_tags) / sizeof(asn_DEF_INTEGER_tags[0]), - { 0, 0, asn_generic_no_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - -/* - * Encode INTEGER type using DER. - */ -asn_enc_rval_t -INTEGER_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, - int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, - void *app_key) { - const INTEGER_t *st = (const INTEGER_t *)sptr; - asn_enc_rval_t rval; - INTEGER_t effective_integer; - - ASN_DEBUG("%s %s as INTEGER (tm=%d)", - cb?"Encoding":"Estimating", td->name, tag_mode); - - /* - * Canonicalize integer in the buffer. - * (Remove too long sign extension, remove some first 0x00 bytes) - */ - if(st->buf) { - uint8_t *buf = st->buf; - uint8_t *end1 = buf + st->size - 1; - int shift; - - /* Compute the number of superfluous leading bytes */ - for(; buf < end1; buf++) { - /* - * If the contents octets of an integer value encoding - * consist of more than one octet, then the bits of the - * first octet and bit 8 of the second octet: - * a) shall not all be ones; and - * b) shall not all be zero. - */ - switch(*buf) { - case 0x00: if((buf[1] & 0x80) == 0) - continue; - break; - case 0xff: if((buf[1] & 0x80)) - continue; - break; - } - break; - } - - /* Remove leading superfluous bytes from the integer */ - shift = buf - st->buf; - if(shift) { - union { - const uint8_t *c_buf; - uint8_t *nc_buf; - } unconst; - unconst.c_buf = st->buf; - effective_integer.buf = unconst.nc_buf + shift; - effective_integer.size = st->size - shift; - - st = &effective_integer; - } - } - - rval = der_encode_primitive(td, st, tag_mode, tag, cb, app_key); - if(rval.structure_ptr == &effective_integer) { - rval.structure_ptr = sptr; - } - return rval; -} - -static const asn_INTEGER_enum_map_t *INTEGER_map_enum2value( - const asn_INTEGER_specifics_t *specs, const char *lstart, - const char *lstop); - -/* - * INTEGER specific human-readable output. - */ -static ssize_t -INTEGER__dump(const asn_TYPE_descriptor_t *td, const INTEGER_t *st, asn_app_consume_bytes_f *cb, void *app_key, int plainOrXER) { - const asn_INTEGER_specifics_t *specs = - (const asn_INTEGER_specifics_t *)td->specifics; - char scratch[32]; - uint8_t *buf = st->buf; - uint8_t *buf_end = st->buf + st->size; - intmax_t value; - ssize_t wrote = 0; - char *p; - int ret; - - if(specs && specs->field_unsigned) - ret = asn_INTEGER2umax(st, (uintmax_t *)&value); - else - ret = asn_INTEGER2imax(st, &value); - - /* Simple case: the integer size is small */ - if(ret == 0) { - const asn_INTEGER_enum_map_t *el; - el = (value >= 0 || !specs || !specs->field_unsigned) - ? INTEGER_map_value2enum(specs, value) : 0; - if(el) { - if(plainOrXER == 0) - return asn__format_to_callback(cb, app_key, - "%" ASN_PRIdMAX " (%s)", value, el->enum_name); - else - return asn__format_to_callback(cb, app_key, - "<%s/>", el->enum_name); - } else if(plainOrXER && specs && specs->strict_enumeration) { - ASN_DEBUG("ASN.1 forbids dealing with " - "unknown value of ENUMERATED type"); - errno = EPERM; - return -1; - } else { - return asn__format_to_callback(cb, app_key, - (specs && specs->field_unsigned) - ? "%" ASN_PRIuMAX - : "%" ASN_PRIdMAX, - value); - } - } else if(plainOrXER && specs && specs->strict_enumeration) { - /* - * Here and earlier, we cannot encode the ENUMERATED values - * if there is no corresponding identifier. - */ - ASN_DEBUG("ASN.1 forbids dealing with " - "unknown value of ENUMERATED type"); - errno = EPERM; - return -1; - } - - /* Output in the long xx:yy:zz... format */ - /* TODO: replace with generic algorithm (Knuth TAOCP Vol 2, 4.3.1) */ - for(p = scratch; buf < buf_end; buf++) { - const char * const h2c = "0123456789ABCDEF"; - if((p - scratch) >= (ssize_t)(sizeof(scratch) - 4)) { - /* Flush buffer */ - if(cb(scratch, p - scratch, app_key) < 0) - return -1; - wrote += p - scratch; - p = scratch; - } - *p++ = h2c[*buf >> 4]; - *p++ = h2c[*buf & 0x0F]; - *p++ = 0x3a; /* ":" */ - } - if(p != scratch) - p--; /* Remove the last ":" */ - - wrote += p - scratch; - return (cb(scratch, p - scratch, app_key) < 0) ? -1 : wrote; -} - -/* - * INTEGER specific human-readable output. - */ -int -INTEGER_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, - asn_app_consume_bytes_f *cb, void *app_key) { - const INTEGER_t *st = (const INTEGER_t *)sptr; - ssize_t ret; - - (void)ilevel; - - if(!st || !st->buf) - ret = cb("", 8, app_key); - else - ret = INTEGER__dump(td, st, cb, app_key, 0); - - return (ret < 0) ? -1 : 0; -} - -struct e2v_key { - const char *start; - const char *stop; - const asn_INTEGER_enum_map_t *vemap; - const unsigned int *evmap; -}; -static int -INTEGER__compar_enum2value(const void *kp, const void *am) { - const struct e2v_key *key = (const struct e2v_key *)kp; - const asn_INTEGER_enum_map_t *el = (const asn_INTEGER_enum_map_t *)am; - const char *ptr, *end, *name; - - /* Remap the element (sort by different criterion) */ - el = key->vemap + key->evmap[el - key->vemap]; - - /* Compare strings */ - for(ptr = key->start, end = key->stop, name = el->enum_name; - ptr < end; ptr++, name++) { - if(*ptr != *name || !*name) - return *(const unsigned char *)ptr - - *(const unsigned char *)name; - } - return name[0] ? -1 : 0; -} - -static const asn_INTEGER_enum_map_t * -INTEGER_map_enum2value(const asn_INTEGER_specifics_t *specs, const char *lstart, - const char *lstop) { - const asn_INTEGER_enum_map_t *el_found; - int count = specs ? specs->map_count : 0; - struct e2v_key key; - const char *lp; - - if(!count) return NULL; - - /* Guaranteed: assert(lstart < lstop); */ - /* Figure out the tag name */ - for(lstart++, lp = lstart; lp < lstop; lp++) { - switch(*lp) { - case 9: case 10: case 11: case 12: case 13: case 32: /* WSP */ - case 0x2f: /* '/' */ case 0x3e: /* '>' */ - break; - default: - continue; - } - break; - } - if(lp == lstop) return NULL; /* No tag found */ - lstop = lp; - - key.start = lstart; - key.stop = lstop; - key.vemap = specs->value2enum; - key.evmap = specs->enum2value; - el_found = (asn_INTEGER_enum_map_t *)bsearch(&key, - specs->value2enum, count, sizeof(specs->value2enum[0]), - INTEGER__compar_enum2value); - if(el_found) { - /* Remap enum2value into value2enum */ - el_found = key.vemap + key.evmap[el_found - key.vemap]; - } - return el_found; -} - -static int -INTEGER__compar_value2enum(const void *kp, const void *am) { - long a = *(const long *)kp; - const asn_INTEGER_enum_map_t *el = (const asn_INTEGER_enum_map_t *)am; - long b = el->nat_value; - if(a < b) return -1; - else if(a == b) return 0; - else return 1; -} - -const asn_INTEGER_enum_map_t * -INTEGER_map_value2enum(const asn_INTEGER_specifics_t *specs, long value) { - int count = specs ? specs->map_count : 0; - if(!count) return 0; - return (asn_INTEGER_enum_map_t *)bsearch(&value, specs->value2enum, - count, sizeof(specs->value2enum[0]), - INTEGER__compar_value2enum); -} - -static int -INTEGER_st_prealloc(INTEGER_t *st, int min_size) { - void *p = MALLOC(min_size + 1); - if(p) { - void *b = st->buf; - st->size = 0; - st->buf = p; - FREEMEM(b); - return 0; - } else { - return -1; - } -} - -/* - * Decode the chunk of XML text encoding INTEGER. - */ -static enum xer_pbd_rval -INTEGER__xer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, - const void *chunk_buf, size_t chunk_size) { - INTEGER_t *st = (INTEGER_t *)sptr; - intmax_t dec_value; - intmax_t hex_value = 0; - const char *lp; - const char *lstart = (const char *)chunk_buf; - const char *lstop = lstart + chunk_size; - enum { - ST_LEADSPACE, - ST_SKIPSPHEX, - ST_WAITDIGITS, - ST_DIGITS, - ST_DIGITS_TRAILSPACE, - ST_HEXDIGIT1, - ST_HEXDIGIT2, - ST_HEXDIGITS_TRAILSPACE, - ST_HEXCOLON, - ST_END_ENUM, - ST_UNEXPECTED - } state = ST_LEADSPACE; - const char *dec_value_start = 0; /* INVARIANT: always !0 in ST_DIGITS */ - const char *dec_value_end = 0; - - if(chunk_size) - ASN_DEBUG("INTEGER body %ld 0x%2x..0x%2x", - (long)chunk_size, *lstart, lstop[-1]); - - if(INTEGER_st_prealloc(st, (chunk_size/3) + 1)) - return XPBD_SYSTEM_FAILURE; - - /* - * We may have received a tag here. It will be processed inline. - * Use strtoul()-like code and serialize the result. - */ - for(lp = lstart; lp < lstop; lp++) { - int lv = *lp; - switch(lv) { - case 0x09: case 0x0a: case 0x0d: case 0x20: - switch(state) { - case ST_LEADSPACE: - case ST_DIGITS_TRAILSPACE: - case ST_HEXDIGITS_TRAILSPACE: - case ST_SKIPSPHEX: - continue; - case ST_DIGITS: - dec_value_end = lp; - state = ST_DIGITS_TRAILSPACE; - continue; - case ST_HEXCOLON: - state = ST_HEXDIGITS_TRAILSPACE; - continue; - default: - break; - } - break; - case 0x2d: /* '-' */ - if(state == ST_LEADSPACE) { - dec_value = 0; - dec_value_start = lp; - state = ST_WAITDIGITS; - continue; - } - break; - case 0x2b: /* '+' */ - if(state == ST_LEADSPACE) { - dec_value = 0; - dec_value_start = lp; - state = ST_WAITDIGITS; - continue; - } - break; - case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: - case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: - switch(state) { - case ST_DIGITS: continue; - case ST_SKIPSPHEX: /* Fall through */ - case ST_HEXDIGIT1: - hex_value = (lv - 0x30) << 4; - state = ST_HEXDIGIT2; - continue; - case ST_HEXDIGIT2: - hex_value += (lv - 0x30); - state = ST_HEXCOLON; - st->buf[st->size++] = (uint8_t)hex_value; - continue; - case ST_HEXCOLON: - return XPBD_BROKEN_ENCODING; - case ST_LEADSPACE: - dec_value = 0; - dec_value_start = lp; - /* FALL THROUGH */ - case ST_WAITDIGITS: - state = ST_DIGITS; - continue; - default: - break; - } - break; - case 0x3c: /* '<', start of XML encoded enumeration */ - if(state == ST_LEADSPACE) { - const asn_INTEGER_enum_map_t *el; - el = INTEGER_map_enum2value( - (const asn_INTEGER_specifics_t *) - td->specifics, lstart, lstop); - if(el) { - ASN_DEBUG("Found \"%s\" => %ld", - el->enum_name, el->nat_value); - dec_value = el->nat_value; - state = ST_END_ENUM; - lp = lstop - 1; - continue; - } - ASN_DEBUG("Unknown identifier for INTEGER"); - } - return XPBD_BROKEN_ENCODING; - case 0x3a: /* ':' */ - if(state == ST_HEXCOLON) { - /* This colon is expected */ - state = ST_HEXDIGIT1; - continue; - } else if(state == ST_DIGITS) { - /* The colon here means that we have - * decoded the first two hexadecimal - * places as a decimal value. - * Switch decoding mode. */ - ASN_DEBUG("INTEGER re-evaluate as hex form"); - state = ST_SKIPSPHEX; - dec_value_start = 0; - lp = lstart - 1; - continue; - } else { - ASN_DEBUG("state %d at %ld", state, (long)(lp - lstart)); - break; - } - /* [A-Fa-f] */ - case 0x41:case 0x42:case 0x43:case 0x44:case 0x45:case 0x46: - case 0x61:case 0x62:case 0x63:case 0x64:case 0x65:case 0x66: - switch(state) { - case ST_SKIPSPHEX: - case ST_LEADSPACE: /* Fall through */ - case ST_HEXDIGIT1: - hex_value = lv - ((lv < 0x61) ? 0x41 : 0x61); - hex_value += 10; - hex_value <<= 4; - state = ST_HEXDIGIT2; - continue; - case ST_HEXDIGIT2: - hex_value += lv - ((lv < 0x61) ? 0x41 : 0x61); - hex_value += 10; - st->buf[st->size++] = (uint8_t)hex_value; - state = ST_HEXCOLON; - continue; - case ST_DIGITS: - ASN_DEBUG("INTEGER re-evaluate as hex form"); - state = ST_SKIPSPHEX; - dec_value_start = 0; - lp = lstart - 1; - continue; - default: - break; - } - break; - } - - /* Found extra non-numeric stuff */ - ASN_DEBUG("INTEGER :: Found non-numeric 0x%2x at %ld", - lv, (long)(lp - lstart)); - state = ST_UNEXPECTED; - break; - } - - switch(state) { - case ST_END_ENUM: - /* Got a complete and valid enumeration encoded as a tag. */ - break; - case ST_DIGITS: - dec_value_end = lstop; - /* FALL THROUGH */ - case ST_DIGITS_TRAILSPACE: - /* The last symbol encountered was a digit. */ - switch(asn_strtoimax_lim(dec_value_start, &dec_value_end, &dec_value)) { - case ASN_STRTOX_OK: - if(dec_value >= LONG_MIN && dec_value <= LONG_MAX) { - break; - } else { - /* - * We model INTEGER on long for XER, - * to avoid rewriting all the tests at once. - */ - ASN_DEBUG("INTEGER exceeds long range"); - } - /* Fall through */ - case ASN_STRTOX_ERROR_RANGE: - ASN_DEBUG("INTEGER decode %s hit range limit", td->name); - return XPBD_DECODER_LIMIT; - case ASN_STRTOX_ERROR_INVAL: - case ASN_STRTOX_EXPECT_MORE: - case ASN_STRTOX_EXTRA_DATA: - return XPBD_BROKEN_ENCODING; - } - break; - case ST_HEXCOLON: - case ST_HEXDIGITS_TRAILSPACE: - st->buf[st->size] = 0; /* Just in case termination */ - return XPBD_BODY_CONSUMED; - case ST_HEXDIGIT1: - case ST_HEXDIGIT2: - case ST_SKIPSPHEX: - return XPBD_BROKEN_ENCODING; - case ST_LEADSPACE: - /* Content not found */ - return XPBD_NOT_BODY_IGNORE; - case ST_WAITDIGITS: - case ST_UNEXPECTED: - ASN_DEBUG("INTEGER: No useful digits (state %d)", state); - return XPBD_BROKEN_ENCODING; /* No digits */ - } - - /* - * Convert the result of parsing of enumeration or a straight - * decimal value into a BER representation. - */ - if(asn_imax2INTEGER(st, dec_value)) { - ASN_DEBUG("INTEGER decode %s conversion failed", td->name); - return XPBD_SYSTEM_FAILURE; - } - - return XPBD_BODY_CONSUMED; -} - -asn_dec_rval_t -INTEGER_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **sptr, - const char *opt_mname, const void *buf_ptr, size_t size) { - return xer_decode_primitive(opt_codec_ctx, td, - sptr, sizeof(INTEGER_t), opt_mname, - buf_ptr, size, INTEGER__xer_body_decode); -} - -asn_enc_rval_t -INTEGER_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - const INTEGER_t *st = (const INTEGER_t *)sptr; - asn_enc_rval_t er; - - (void)ilevel; - (void)flags; - - if(!st || !st->buf) - ASN__ENCODE_FAILED; - - er.encoded = INTEGER__dump(td, st, cb, app_key, 1); - if(er.encoded < 0) ASN__ENCODE_FAILED; - - ASN__ENCODED_OK(er); -} - -#ifndef ASN_DISABLE_PER_SUPPORT - -asn_dec_rval_t -INTEGER_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, void **sptr, - asn_per_data_t *pd) { - const asn_INTEGER_specifics_t *specs = - (const asn_INTEGER_specifics_t *)td->specifics; - asn_dec_rval_t rval = { RC_OK, 0 }; - INTEGER_t *st = (INTEGER_t *)*sptr; - const asn_per_constraint_t *ct; - int repeat; - - (void)opt_codec_ctx; - - if(!st) { - st = (INTEGER_t *)(*sptr = CALLOC(1, sizeof(*st))); - if(!st) ASN__DECODE_FAILED; - } - - if(!constraints) constraints = td->encoding_constraints.per_constraints; - ct = constraints ? &constraints->value : 0; - - if(ct && ct->flags & APC_EXTENSIBLE) { - int inext = per_get_few_bits(pd, 1); - if(inext < 0) ASN__DECODE_STARVED; - if(inext) ct = 0; - } - - FREEMEM(st->buf); - st->buf = 0; - st->size = 0; - if(ct) { - if(ct->flags & APC_SEMI_CONSTRAINED) { - st->buf = (uint8_t *)CALLOC(1, 2); - if(!st->buf) ASN__DECODE_FAILED; - st->size = 1; - } else if(ct->flags & APC_CONSTRAINED && ct->range_bits >= 0) { - size_t size = (ct->range_bits + 7) >> 3; - st->buf = (uint8_t *)MALLOC(1 + size + 1); - if(!st->buf) ASN__DECODE_FAILED; - st->size = size; - } - } - - /* X.691-2008/11, #13.2.2, constrained whole number */ - if(ct && ct->flags != APC_UNCONSTRAINED) { - /* #11.5.6 */ - ASN_DEBUG("Integer with range %d bits", ct->range_bits); - if(ct->range_bits >= 0) { - if((size_t)ct->range_bits > 8 * sizeof(uintmax_t)) - ASN__DECODE_FAILED; - - if(specs && specs->field_unsigned) { - uintmax_t uvalue = 0; - if(uper_get_constrained_whole_number(pd, - &uvalue, ct->range_bits)) - ASN__DECODE_STARVED; - ASN_DEBUG("Got value %"ASN_PRIuMAX" + low %"ASN_PRIdMAX"", - uvalue, ct->lower_bound); - uvalue += ct->lower_bound; - if(asn_umax2INTEGER(st, uvalue)) - ASN__DECODE_FAILED; - } else { - uintmax_t uvalue = 0; - intmax_t svalue; - if(uper_get_constrained_whole_number(pd, - &uvalue, ct->range_bits)) - ASN__DECODE_STARVED; - ASN_DEBUG("Got value %"ASN_PRIuMAX" + low %"ASN_PRIdMAX"", - uvalue, ct->lower_bound); - if(per_max_range_unrebase(uvalue, ct->lower_bound, - ct->upper_bound, &svalue) - || asn_imax2INTEGER(st, svalue)) { - ASN__DECODE_FAILED; - } - } - return rval; - } - } else { - ASN_DEBUG("Decoding unconstrained integer %s", td->name); - } - - /* X.691, #12.2.3, #12.2.4 */ - do { - ssize_t len = 0; - void *p = NULL; - int ret = 0; - - /* Get the PER length */ - len = uper_get_length(pd, -1, 0, &repeat); - if(len < 0) ASN__DECODE_STARVED; - - p = REALLOC(st->buf, st->size + len + 1); - if(!p) ASN__DECODE_FAILED; - st->buf = (uint8_t *)p; - - ret = per_get_many_bits(pd, &st->buf[st->size], 0, 8 * len); - if(ret < 0) ASN__DECODE_STARVED; - st->size += len; - } while(repeat); - st->buf[st->size] = 0; /* JIC */ - - /* #12.2.3 */ - if(ct && ct->lower_bound) { - /* - * TODO: replace by in-place arithmetics. - */ - intmax_t value = 0; - if(asn_INTEGER2imax(st, &value)) - ASN__DECODE_FAILED; - if(asn_imax2INTEGER(st, value + ct->lower_bound)) - ASN__DECODE_FAILED; - } - - return rval; -} - -asn_enc_rval_t -INTEGER_encode_uper(const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, const void *sptr, - asn_per_outp_t *po) { - const asn_INTEGER_specifics_t *specs = - (const asn_INTEGER_specifics_t *)td->specifics; - asn_enc_rval_t er; - const INTEGER_t *st = (const INTEGER_t *)sptr; - const uint8_t *buf; - const uint8_t *end; - const asn_per_constraint_t *ct; - intmax_t value = 0; - - if(!st || st->size == 0) ASN__ENCODE_FAILED; - - if(!constraints) constraints = td->encoding_constraints.per_constraints; - ct = constraints ? &constraints->value : 0; - - er.encoded = 0; - - if(ct) { - int inext = 0; - if(specs && specs->field_unsigned) { - uintmax_t uval; - if(asn_INTEGER2umax(st, &uval)) - ASN__ENCODE_FAILED; - /* Check proper range */ - if(ct->flags & APC_SEMI_CONSTRAINED) { - if(uval < (uintmax_t)ct->lower_bound) - inext = 1; - } else if(ct->range_bits >= 0) { - if(uval < (uintmax_t)ct->lower_bound - || uval > (uintmax_t)ct->upper_bound) - inext = 1; - } - ASN_DEBUG("Value %"ASN_PRIuMAX" (%02x/%" ASN_PRI_SIZE ") lb %"ASN_PRIuMAX" ub %"ASN_PRIuMAX" %s", - uval, st->buf[0], st->size, - ct->lower_bound, ct->upper_bound, - inext ? "ext" : "fix"); - value = uval; - } else { - if(asn_INTEGER2imax(st, &value)) - ASN__ENCODE_FAILED; - /* Check proper range */ - if(ct->flags & APC_SEMI_CONSTRAINED) { - if(value < ct->lower_bound) - inext = 1; - } else if(ct->range_bits >= 0) { - if(value < ct->lower_bound - || value > ct->upper_bound) - inext = 1; - } - ASN_DEBUG("Value %"ASN_PRIdMAX" (%02x/%" ASN_PRI_SIZE ") lb %"ASN_PRIdMAX" ub %"ASN_PRIdMAX" %s", - value, st->buf[0], st->size, - ct->lower_bound, ct->upper_bound, - inext ? "ext" : "fix"); - } - if(ct->flags & APC_EXTENSIBLE) { - if(per_put_few_bits(po, inext, 1)) - ASN__ENCODE_FAILED; - if(inext) ct = 0; - } else if(inext) { - ASN__ENCODE_FAILED; - } - } - - - /* X.691-11/2008, #13.2.2, test if constrained whole number */ - if(ct && ct->range_bits >= 0) { - uintmax_t v; - /* #11.5.6 -> #11.3 */ - ASN_DEBUG("Encoding integer %"ASN_PRIdMAX" (%"ASN_PRIdMAX") with range %d bits", - value, value - ct->lower_bound, ct->range_bits); - if(per_max_range_rebase(value, ct->lower_bound, ct->upper_bound, &v)) { - ASN__ENCODE_FAILED; - } - if(uper_put_constrained_whole_number_u(po, v, ct->range_bits)) - ASN__ENCODE_FAILED; - ASN__ENCODED_OK(er); - } - - if(ct && ct->lower_bound) { - ASN_DEBUG("Adjust lower bound to %"ASN_PRIdMAX"", ct->lower_bound); - /* TODO: adjust lower bound */ - ASN__ENCODE_FAILED; - } - - for(buf = st->buf, end = st->buf + st->size; buf < end;) { - int need_eom = 0; - ssize_t mayEncode = uper_put_length(po, end - buf, &need_eom); - if(mayEncode < 0) - ASN__ENCODE_FAILED; - if(per_put_many_bits(po, buf, 8 * mayEncode)) - ASN__ENCODE_FAILED; - buf += mayEncode; - if(need_eom && uper_put_length(po, 0, 0)) ASN__ENCODE_FAILED; - } - - ASN__ENCODED_OK(er); -} - -#endif /* ASN_DISABLE_PER_SUPPORT */ - -static intmax_t -asn__integer_convert(const uint8_t *b, const uint8_t *end) { - uintmax_t value; - - /* Perform the sign initialization */ - /* Actually value = -(*b >> 7); gains nothing, yet unreadable! */ - if((*b >> 7)) { - value = (uintmax_t)(-1); - } else { - value = 0; - } - - /* Conversion engine */ - for(; b < end; b++) { - value = (value << 8) | *b; - } - - return value; -} - -int -asn_INTEGER2imax(const INTEGER_t *iptr, intmax_t *lptr) { - uint8_t *b, *end; - size_t size; - - /* Sanity checking */ - if(!iptr || !iptr->buf || !lptr) { - errno = EINVAL; - return -1; - } - - /* Cache the begin/end of the buffer */ - b = iptr->buf; /* Start of the INTEGER buffer */ - size = iptr->size; - end = b + size; /* Where to stop */ - - if(size > sizeof(intmax_t)) { - uint8_t *end1 = end - 1; - /* - * Slightly more advanced processing, - * able to process INTEGERs with >sizeof(intmax_t) bytes - * when the actual value is small, e.g. for intmax_t == int32_t - * (0x0000000000abcdef INTEGER would yield a fine 0x00abcdef int32_t) - */ - /* Skip out the insignificant leading bytes */ - for(; b < end1; b++) { - switch(*b) { - case 0x00: if((b[1] & 0x80) == 0) continue; break; - case 0xff: if((b[1] & 0x80) != 0) continue; break; - } - break; - } - - size = end - b; - if(size > sizeof(intmax_t)) { - /* Still cannot fit the sizeof(intmax_t) */ - errno = ERANGE; - return -1; - } - } - - /* Shortcut processing of a corner case */ - if(end == b) { - *lptr = 0; - return 0; - } - - *lptr = asn__integer_convert(b, end); - return 0; -} - -/* FIXME: negative INTEGER values are silently interpreted as large unsigned ones. */ -int -asn_INTEGER2umax(const INTEGER_t *iptr, uintmax_t *lptr) { - uint8_t *b, *end; - uintmax_t value; - size_t size; - - if(!iptr || !iptr->buf || !lptr) { - errno = EINVAL; - return -1; - } - - b = iptr->buf; - size = iptr->size; - end = b + size; - - /* If all extra leading bytes are zeroes, ignore them */ - for(; size > sizeof(value); b++, size--) { - if(*b) { - /* Value won't fit into uintmax_t */ - errno = ERANGE; - return -1; - } - } - - /* Conversion engine */ - for(value = 0; b < end; b++) - value = (value << 8) | *b; - - *lptr = value; - return 0; -} - -int -asn_umax2INTEGER(INTEGER_t *st, uintmax_t value) { - uint8_t *buf; - uint8_t *end; - uint8_t *b; - int shr; - - if(value <= ((~(uintmax_t)0) >> 1)) { - return asn_imax2INTEGER(st, value); - } - - buf = (uint8_t *)MALLOC(1 + sizeof(value)); - if(!buf) return -1; - - end = buf + (sizeof(value) + 1); - buf[0] = 0; /* INTEGERs are signed. 0-byte indicates positive. */ - for(b = buf + 1, shr = (sizeof(value) - 1) * 8; b < end; shr -= 8, b++) - *b = (uint8_t)(value >> shr); - - if(st->buf) FREEMEM(st->buf); - st->buf = buf; - st->size = 1 + sizeof(value); - - return 0; -} - -int -asn_imax2INTEGER(INTEGER_t *st, intmax_t value) { - uint8_t *buf, *bp; - uint8_t *p; - uint8_t *pstart; - uint8_t *pend1; - int littleEndian = 1; /* Run-time detection */ - int add; - - if(!st) { - errno = EINVAL; - return -1; - } - - buf = (uint8_t *)(long *)MALLOC(sizeof(value)); - if(!buf) return -1; - - if(*(char *)&littleEndian) { - pstart = (uint8_t *)&value + sizeof(value) - 1; - pend1 = (uint8_t *)&value; - add = -1; - } else { - pstart = (uint8_t *)&value; - pend1 = pstart + sizeof(value) - 1; - add = 1; - } - - /* - * If the contents octet consists of more than one octet, - * then bits of the first octet and bit 8 of the second octet: - * a) shall not all be ones; and - * b) shall not all be zero. - */ - for(p = pstart; p != pend1; p += add) { - switch(*p) { - case 0x00: if((*(p+add) & 0x80) == 0) - continue; - break; - case 0xff: if((*(p+add) & 0x80)) - continue; - break; - } - break; - } - /* Copy the integer body */ - for(bp = buf, pend1 += add; p != pend1; p += add) - *bp++ = *p; - - if(st->buf) FREEMEM(st->buf); - st->buf = buf; - st->size = bp - buf; - - return 0; -} - -int -asn_INTEGER2long(const INTEGER_t *iptr, long *l) { - intmax_t v; - if(asn_INTEGER2imax(iptr, &v) == 0) { - if(v < LONG_MIN || v > LONG_MAX) { - errno = ERANGE; - return -1; - } - *l = v; - return 0; - } else { - return -1; - } -} - -int -asn_INTEGER2ulong(const INTEGER_t *iptr, unsigned long *l) { - uintmax_t v; - if(asn_INTEGER2umax(iptr, &v) == 0) { - if(v > ULONG_MAX) { - errno = ERANGE; - return -1; - } - *l = v; - return 0; - } else { - return -1; - } -} - -int -asn_long2INTEGER(INTEGER_t *st, long value) { - return asn_imax2INTEGER(st, value); -} - -int -asn_ulong2INTEGER(INTEGER_t *st, unsigned long value) { - return asn_imax2INTEGER(st, value); -} - -/* - * Parse the number in the given string until the given *end position, - * returning the position after the last parsed character back using the - * same (*end) pointer. - * WARNING: This behavior is different from the standard strtol/strtoimax(3). - */ -enum asn_strtox_result_e -asn_strtoimax_lim(const char *str, const char **end, intmax_t *intp) { - int sign = 1; - intmax_t value; - -#define ASN1_INTMAX_MAX ((~(uintmax_t)0) >> 1) - const intmax_t upper_boundary = ASN1_INTMAX_MAX / 10; - intmax_t last_digit_max = ASN1_INTMAX_MAX % 10; -#undef ASN1_INTMAX_MAX - - if(str >= *end) return ASN_STRTOX_ERROR_INVAL; - - switch(*str) { - case '-': - last_digit_max++; - sign = -1; - /* FALL THROUGH */ - case '+': - str++; - if(str >= *end) { - *end = str; - return ASN_STRTOX_EXPECT_MORE; - } - } - - for(value = 0; str < (*end); str++) { - switch(*str) { - case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: - case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: { - int d = *str - '0'; - if(value < upper_boundary) { - value = value * 10 + d; - } else if(value == upper_boundary) { - if(d <= last_digit_max) { - if(sign > 0) { - value = value * 10 + d; - } else { - sign = 1; - value = -value * 10 - d; - } - } else { - *end = str; - return ASN_STRTOX_ERROR_RANGE; - } - } else { - *end = str; - return ASN_STRTOX_ERROR_RANGE; - } - } - continue; - default: - *end = str; - *intp = sign * value; - return ASN_STRTOX_EXTRA_DATA; - } - } - - *end = str; - *intp = sign * value; - return ASN_STRTOX_OK; -} - -/* - * Parse the number in the given string until the given *end position, - * returning the position after the last parsed character back using the - * same (*end) pointer. - * WARNING: This behavior is different from the standard strtoul/strtoumax(3). - */ -enum asn_strtox_result_e -asn_strtoumax_lim(const char *str, const char **end, uintmax_t *uintp) { - uintmax_t value; - -#define ASN1_UINTMAX_MAX ((~(uintmax_t)0)) - const uintmax_t upper_boundary = ASN1_UINTMAX_MAX / 10; - uintmax_t last_digit_max = ASN1_UINTMAX_MAX % 10; -#undef ASN1_UINTMAX_MAX - - if(str >= *end) return ASN_STRTOX_ERROR_INVAL; - - switch(*str) { - case '-': - return ASN_STRTOX_ERROR_INVAL; - case '+': - str++; - if(str >= *end) { - *end = str; - return ASN_STRTOX_EXPECT_MORE; - } - } - - for(value = 0; str < (*end); str++) { - switch(*str) { - case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: - case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: { - unsigned int d = *str - '0'; - if(value < upper_boundary) { - value = value * 10 + d; - } else if(value == upper_boundary) { - if(d <= last_digit_max) { - value = value * 10 + d; - } else { - *end = str; - return ASN_STRTOX_ERROR_RANGE; - } - } else { - *end = str; - return ASN_STRTOX_ERROR_RANGE; - } - } - continue; - default: - *end = str; - *uintp = value; - return ASN_STRTOX_EXTRA_DATA; - } - } - - *end = str; - *uintp = value; - return ASN_STRTOX_OK; -} - -enum asn_strtox_result_e -asn_strtol_lim(const char *str, const char **end, long *lp) { - intmax_t value; - switch(asn_strtoimax_lim(str, end, &value)) { - case ASN_STRTOX_ERROR_RANGE: - return ASN_STRTOX_ERROR_RANGE; - case ASN_STRTOX_ERROR_INVAL: - return ASN_STRTOX_ERROR_INVAL; - case ASN_STRTOX_EXPECT_MORE: - return ASN_STRTOX_EXPECT_MORE; - case ASN_STRTOX_OK: - if(value >= LONG_MIN && value <= LONG_MAX) { - *lp = value; - return ASN_STRTOX_OK; - } else { - return ASN_STRTOX_ERROR_RANGE; - } - case ASN_STRTOX_EXTRA_DATA: - if(value >= LONG_MIN && value <= LONG_MAX) { - *lp = value; - return ASN_STRTOX_EXTRA_DATA; - } else { - return ASN_STRTOX_ERROR_RANGE; - } - } - - assert(!"Unreachable"); - return ASN_STRTOX_ERROR_INVAL; -} - -enum asn_strtox_result_e -asn_strtoul_lim(const char *str, const char **end, unsigned long *ulp) { - uintmax_t value; - switch(asn_strtoumax_lim(str, end, &value)) { - case ASN_STRTOX_ERROR_RANGE: - return ASN_STRTOX_ERROR_RANGE; - case ASN_STRTOX_ERROR_INVAL: - return ASN_STRTOX_ERROR_INVAL; - case ASN_STRTOX_EXPECT_MORE: - return ASN_STRTOX_EXPECT_MORE; - case ASN_STRTOX_OK: - if(value <= ULONG_MAX) { - *ulp = value; - return ASN_STRTOX_OK; - } else { - return ASN_STRTOX_ERROR_RANGE; - } - case ASN_STRTOX_EXTRA_DATA: - if(value <= ULONG_MAX) { - *ulp = value; - return ASN_STRTOX_EXTRA_DATA; - } else { - return ASN_STRTOX_ERROR_RANGE; - } - } - - assert(!"Unreachable"); - return ASN_STRTOX_ERROR_INVAL; -} - -int -INTEGER_compare(const asn_TYPE_descriptor_t *td, const void *aptr, - const void *bptr) { - const INTEGER_t *a = aptr; - const INTEGER_t *b = bptr; - - (void)td; - - if(a && b) { - if(a->size && b->size) { - int sign_a = (a->buf[0] & 0x80) ? -1 : 1; - int sign_b = (b->buf[0] & 0x80) ? -1 : 1; - - if(sign_a < sign_b) return -1; - if(sign_a > sign_b) return 1; - - /* The shortest integer wins, unless comparing negatives */ - if(a->size < b->size) { - return -1 * sign_a; - } else if(a->size > b->size) { - return 1 * sign_b; - } - - return sign_a * memcmp(a->buf, b->buf, a->size); - } else if(a->size) { - int sign = (a->buf[0] & 0x80) ? -1 : 1; - return (1) * sign; - } else if(b->size) { - int sign = (a->buf[0] & 0x80) ? -1 : 1; - return (-1) * sign; - } else { - return 0; - } - } else if(!a && !b) { - return 0; - } else if(!a) { - return -1; - } else { - return 1; - } - -} - -asn_random_fill_result_t -INTEGER_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constraints, - size_t max_length) { - const asn_INTEGER_specifics_t *specs = - (const asn_INTEGER_specifics_t *)td->specifics; - asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - INTEGER_t *st = *sptr; - const asn_INTEGER_enum_map_t *emap; - size_t emap_len; - intmax_t value; - int find_inside_map; - - if(max_length == 0) return result_skipped; - - if(st == NULL) { - st = (INTEGER_t *)CALLOC(1, sizeof(*st)); - if(st == NULL) { - return result_failed; - } - } - - if(specs) { - emap = specs->value2enum; - emap_len = specs->map_count; - if(specs->strict_enumeration) { - find_inside_map = emap_len > 0; - } else { - find_inside_map = emap_len ? asn_random_between(0, 1) : 0; - } - } else { - emap = 0; - emap_len = 0; - find_inside_map = 0; - } - - if(find_inside_map) { - assert(emap_len > 0); - value = emap[asn_random_between(0, emap_len - 1)].nat_value; - } else { - const asn_per_constraints_t *ct; - - static const long variants[] = { - -65536, -65535, -65534, -32769, -32768, -32767, -16385, -16384, - -16383, -257, -256, -255, -254, -129, -128, -127, - -126, -1, 0, 1, 126, 127, 128, 129, - 254, 255, 256, 257, 16383, 16384, 16385, 32767, - 32768, 32769, 65534, 65535, 65536, 65537}; - if(specs && specs->field_unsigned) { - assert(variants[18] == 0); - value = variants[asn_random_between( - 18, sizeof(variants) / sizeof(variants[0]) - 1)]; - } else { - value = variants[asn_random_between( - 0, sizeof(variants) / sizeof(variants[0]) - 1)]; - } - - if(!constraints) constraints = &td->encoding_constraints; - ct = constraints ? constraints->per_constraints : 0; - if(ct && (ct->value.flags & APC_CONSTRAINED)) { - if(value < ct->value.lower_bound || value > ct->value.upper_bound) { - value = asn_random_between(ct->value.lower_bound, - ct->value.upper_bound); - } - } - } - - if(asn_imax2INTEGER(st, value)) { - if(st == *sptr) { - ASN_STRUCT_RESET(*td, st); - } else { - ASN_STRUCT_FREE(*td, st); - } - return result_failed; - } else { - *sptr = st; - result_ok.length = st->size; - return result_ok; - } -} diff --git a/asn.1/generated/INTEGER.h b/asn.1/generated/INTEGER.h deleted file mode 100644 index cc760ffa..00000000 --- a/asn.1/generated/INTEGER.h +++ /dev/null @@ -1,104 +0,0 @@ -/*- - * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef _INTEGER_H_ -#define _INTEGER_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef ASN__PRIMITIVE_TYPE_t INTEGER_t; - -extern asn_TYPE_descriptor_t asn_DEF_INTEGER; -extern asn_TYPE_operation_t asn_OP_INTEGER; - -/* Map with to integer value association */ -typedef struct asn_INTEGER_enum_map_s { - long nat_value; /* associated native integer value */ - size_t enum_len; /* strlen("tag") */ - const char *enum_name; /* "tag" */ -} asn_INTEGER_enum_map_t; - -/* This type describes an enumeration for INTEGER and ENUMERATED types */ -typedef struct asn_INTEGER_specifics_s { - const asn_INTEGER_enum_map_t *value2enum; /* N -> "tag"; sorted by N */ - const unsigned int *enum2value; /* "tag" => N; sorted by tag */ - int map_count; /* Elements in either map */ - int extension; /* This map is extensible */ - int strict_enumeration; /* Enumeration set is fixed */ - int field_width; /* Size of native integer */ - int field_unsigned; /* Signed=0, unsigned=1 */ -} asn_INTEGER_specifics_t; - -#define INTEGER_free ASN__PRIMITIVE_TYPE_free -#define INTEGER_decode_ber ber_decode_primitive -#define INTEGER_constraint asn_generic_no_constraint -asn_struct_print_f INTEGER_print; -asn_struct_compare_f INTEGER_compare; -der_type_encoder_f INTEGER_encode_der; -xer_type_decoder_f INTEGER_decode_xer; -xer_type_encoder_f INTEGER_encode_xer; -oer_type_decoder_f INTEGER_decode_oer; -oer_type_encoder_f INTEGER_encode_oer; -per_type_decoder_f INTEGER_decode_uper; -per_type_encoder_f INTEGER_encode_uper; -asn_random_fill_f INTEGER_random_fill; - -/*********************************** - * Some handy conversion routines. * - ***********************************/ - -/* - * Natiwe size-independent conversion of native integers to/from INTEGER. - * (l_size) is in bytes. - * Returns 0 if it was possible to convert, -1 otherwise. - * -1/EINVAL: Mandatory argument missing - * -1/ERANGE: Value encoded is out of range for long representation - * -1/ENOMEM: Memory allocation failed (in asn_*2INTEGER()). - */ -int asn_INTEGER2imax(const INTEGER_t *i, intmax_t *l); -int asn_INTEGER2umax(const INTEGER_t *i, uintmax_t *l); -int asn_imax2INTEGER(INTEGER_t *i, intmax_t l); -int asn_umax2INTEGER(INTEGER_t *i, uintmax_t l); - -/* - * Size-specific conversion helpers. - */ -int asn_INTEGER2long(const INTEGER_t *i, long *l); -int asn_INTEGER2ulong(const INTEGER_t *i, unsigned long *l); -int asn_long2INTEGER(INTEGER_t *i, long l); -int asn_ulong2INTEGER(INTEGER_t *i, unsigned long l); - -/* A version of strtol/strtoimax(3) with nicer error reporting. */ -enum asn_strtox_result_e { - ASN_STRTOX_ERROR_RANGE = -3, /* Input outside of supported numeric range */ - ASN_STRTOX_ERROR_INVAL = -2, /* Invalid data encountered (e.g., "+-") */ - ASN_STRTOX_EXPECT_MORE = -1, /* More data expected (e.g. "+") */ - ASN_STRTOX_OK = 0, /* Conversion succeded, number ends at (*end) */ - ASN_STRTOX_EXTRA_DATA = 1 /* Conversion succeded, but the string has extra stuff */ -}; -enum asn_strtox_result_e asn_strtol_lim(const char *str, const char **end, - long *l); -enum asn_strtox_result_e asn_strtoul_lim(const char *str, const char **end, - unsigned long *l); -enum asn_strtox_result_e asn_strtoimax_lim(const char *str, const char **end, - intmax_t *l); -enum asn_strtox_result_e asn_strtoumax_lim(const char *str, const char **end, - uintmax_t *l); - -/* - * Convert the integer value into the corresponding enumeration map entry. - */ -const asn_INTEGER_enum_map_t *INTEGER_map_value2enum( - const asn_INTEGER_specifics_t *specs, long value); - -#ifdef __cplusplus -} -#endif - -#endif /* _INTEGER_H_ */ diff --git a/asn.1/generated/IPAddress.c b/asn.1/generated/IPAddress.c deleted file mode 100644 index 6d49e457..00000000 --- a/asn.1/generated/IPAddress.c +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "IPAddress.h" - -static int -memb_ipv4Address_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size == 4)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ipv6Address_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size == 16)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_ipv4Address_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ipv6Address_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, - 0, 0 /* No PER value map */ -}; -asn_per_constraints_t asn_PER_type_IPAddress_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_IPAddress_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct IPAddress, choice.ipv4Address), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OCTET_STRING, - 0, - { 0, &asn_PER_memb_ipv4Address_constr_2, memb_ipv4Address_constraint_1 }, - 0, 0, /* No default value */ - "ipv4Address" - }, - { ATF_NOFLAGS, 0, offsetof(struct IPAddress, choice.ipv6Address), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OCTET_STRING, - 0, - { 0, &asn_PER_memb_ipv6Address_constr_3, memb_ipv6Address_constraint_1 }, - 0, 0, /* No default value */ - "ipv6Address" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_IPAddress_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ipv4Address */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ipv6Address */ -}; -asn_CHOICE_specifics_t asn_SPC_IPAddress_specs_1 = { - sizeof(struct IPAddress), - offsetof(struct IPAddress, _asn_ctx), - offsetof(struct IPAddress, present), - sizeof(((struct IPAddress *)0)->present), - asn_MAP_IPAddress_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_IPAddress = { - "IPAddress", - "IPAddress", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_IPAddress_constr_1, CHOICE_constraint }, - asn_MBR_IPAddress_1, - 2, /* Elements count */ - &asn_SPC_IPAddress_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Initiator.c b/asn.1/generated/Initiator.c deleted file mode 100644 index 058d22f3..00000000 --- a/asn.1/generated/Initiator.c +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Initiator.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_Initiator_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_Initiator_value2enum_1[] = { - { 0, 14, "locationServer" }, - { 1, 12, "targetDevice" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_Initiator_enum2value_1[] = { - 0, /* locationServer(0) */ - 1 /* targetDevice(1) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_Initiator_specs_1 = { - asn_MAP_Initiator_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_Initiator_enum2value_1, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_Initiator_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_Initiator = { - "Initiator", - "Initiator", - &asn_OP_NativeEnumerated, - asn_DEF_Initiator_tags_1, - sizeof(asn_DEF_Initiator_tags_1) - /sizeof(asn_DEF_Initiator_tags_1[0]), /* 1 */ - asn_DEF_Initiator_tags_1, /* Same as above */ - sizeof(asn_DEF_Initiator_tags_1) - /sizeof(asn_DEF_Initiator_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_Initiator_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_Initiator_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/KeyIdentity.c b/asn.1/generated/KeyIdentity.c deleted file mode 100644 index 9353696c..00000000 --- a/asn.1/generated/KeyIdentity.c +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "KeyIdentity.h" - -int -KeyIdentity_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using BIT_STRING, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_KeyIdentity_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_KeyIdentity_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_KeyIdentity = { - "KeyIdentity", - "KeyIdentity", - &asn_OP_BIT_STRING, - asn_DEF_KeyIdentity_tags_1, - sizeof(asn_DEF_KeyIdentity_tags_1) - /sizeof(asn_DEF_KeyIdentity_tags_1[0]), /* 1 */ - asn_DEF_KeyIdentity_tags_1, /* Same as above */ - sizeof(asn_DEF_KeyIdentity_tags_1) - /sizeof(asn_DEF_KeyIdentity_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_KeyIdentity_constr_1, KeyIdentity_constraint }, - 0, 0, /* No members */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/asn.1/generated/KeyIdentity.h b/asn.1/generated/KeyIdentity.h deleted file mode 100644 index 3bbef1c9..00000000 --- a/asn.1/generated/KeyIdentity.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _KeyIdentity_H_ -#define _KeyIdentity_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* KeyIdentity */ -typedef BIT_STRING_t KeyIdentity_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_KeyIdentity_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_KeyIdentity; -asn_struct_free_f KeyIdentity_free; -asn_struct_print_f KeyIdentity_print; -asn_constr_check_f KeyIdentity_constraint; -ber_type_decoder_f KeyIdentity_decode_ber; -der_type_encoder_f KeyIdentity_encode_der; -xer_type_decoder_f KeyIdentity_decode_xer; -xer_type_encoder_f KeyIdentity_encode_xer; -per_type_decoder_f KeyIdentity_decode_uper; -per_type_encoder_f KeyIdentity_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _KeyIdentity_H_ */ -#include diff --git a/asn.1/generated/KeyIdentity4.c b/asn.1/generated/KeyIdentity4.c deleted file mode 100644 index 2544c9f4..00000000 --- a/asn.1/generated/KeyIdentity4.c +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "KeyIdentity4.h" - -int -KeyIdentity4_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using BIT_STRING, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_KeyIdentity4_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_KeyIdentity4_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_KeyIdentity4 = { - "KeyIdentity4", - "KeyIdentity4", - &asn_OP_BIT_STRING, - asn_DEF_KeyIdentity4_tags_1, - sizeof(asn_DEF_KeyIdentity4_tags_1) - /sizeof(asn_DEF_KeyIdentity4_tags_1[0]), /* 1 */ - asn_DEF_KeyIdentity4_tags_1, /* Same as above */ - sizeof(asn_DEF_KeyIdentity4_tags_1) - /sizeof(asn_DEF_KeyIdentity4_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_KeyIdentity4_constr_1, KeyIdentity4_constraint }, - 0, 0, /* No members */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/asn.1/generated/KeyIdentity4.h b/asn.1/generated/KeyIdentity4.h deleted file mode 100644 index 6c952098..00000000 --- a/asn.1/generated/KeyIdentity4.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _KeyIdentity4_H_ -#define _KeyIdentity4_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* KeyIdentity4 */ -typedef BIT_STRING_t KeyIdentity4_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_KeyIdentity4_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_KeyIdentity4; -asn_struct_free_f KeyIdentity4_free; -asn_struct_print_f KeyIdentity4_print; -asn_constr_check_f KeyIdentity4_constraint; -ber_type_decoder_f KeyIdentity4_decode_ber; -der_type_encoder_f KeyIdentity4_encode_der; -xer_type_decoder_f KeyIdentity4_decode_xer; -xer_type_encoder_f KeyIdentity4_encode_xer; -per_type_decoder_f KeyIdentity4_decode_uper; -per_type_encoder_f KeyIdentity4_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _KeyIdentity4_H_ */ -#include diff --git a/asn.1/generated/KlobucharModel2Parameter-r16.c b/asn.1/generated/KlobucharModel2Parameter-r16.c deleted file mode 100644 index 64b6a4a2..00000000 --- a/asn.1/generated/KlobucharModel2Parameter-r16.c +++ /dev/null @@ -1,400 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "KlobucharModel2Parameter-r16.h" - -static int -memb_alfa1_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_alfa2_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_alfa3_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_alfa4_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_alfa5_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_alfa6_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_alfa7_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_alfa8_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_alfa9_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_alfa1_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_alfa2_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_alfa3_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_alfa4_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_alfa5_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_alfa6_r16_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_alfa7_r16_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_alfa8_r16_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_alfa9_r16_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_KlobucharModel2Parameter_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct KlobucharModel2Parameter_r16, alfa1_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_alfa1_r16_constr_2, memb_alfa1_r16_constraint_1 }, - 0, 0, /* No default value */ - "alfa1-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct KlobucharModel2Parameter_r16, alfa2_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_alfa2_r16_constr_3, memb_alfa2_r16_constraint_1 }, - 0, 0, /* No default value */ - "alfa2-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct KlobucharModel2Parameter_r16, alfa3_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_alfa3_r16_constr_4, memb_alfa3_r16_constraint_1 }, - 0, 0, /* No default value */ - "alfa3-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct KlobucharModel2Parameter_r16, alfa4_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_alfa4_r16_constr_5, memb_alfa4_r16_constraint_1 }, - 0, 0, /* No default value */ - "alfa4-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct KlobucharModel2Parameter_r16, alfa5_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_alfa5_r16_constr_6, memb_alfa5_r16_constraint_1 }, - 0, 0, /* No default value */ - "alfa5-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct KlobucharModel2Parameter_r16, alfa6_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_alfa6_r16_constr_7, memb_alfa6_r16_constraint_1 }, - 0, 0, /* No default value */ - "alfa6-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct KlobucharModel2Parameter_r16, alfa7_r16), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_alfa7_r16_constr_8, memb_alfa7_r16_constraint_1 }, - 0, 0, /* No default value */ - "alfa7-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct KlobucharModel2Parameter_r16, alfa8_r16), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_alfa8_r16_constr_9, memb_alfa8_r16_constraint_1 }, - 0, 0, /* No default value */ - "alfa8-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct KlobucharModel2Parameter_r16, alfa9_r16), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_alfa9_r16_constr_10, memb_alfa9_r16_constraint_1 }, - 0, 0, /* No default value */ - "alfa9-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_KlobucharModel2Parameter_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_KlobucharModel2Parameter_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* alfa1-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* alfa2-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* alfa3-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* alfa4-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* alfa5-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* alfa6-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* alfa7-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* alfa8-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* alfa9-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_KlobucharModel2Parameter_r16_specs_1 = { - sizeof(struct KlobucharModel2Parameter_r16), - offsetof(struct KlobucharModel2Parameter_r16, _asn_ctx), - asn_MAP_KlobucharModel2Parameter_r16_tag2el_1, - 9, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 9, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_KlobucharModel2Parameter_r16 = { - "KlobucharModel2Parameter-r16", - "KlobucharModel2Parameter-r16", - &asn_OP_SEQUENCE, - asn_DEF_KlobucharModel2Parameter_r16_tags_1, - sizeof(asn_DEF_KlobucharModel2Parameter_r16_tags_1) - /sizeof(asn_DEF_KlobucharModel2Parameter_r16_tags_1[0]), /* 1 */ - asn_DEF_KlobucharModel2Parameter_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_KlobucharModel2Parameter_r16_tags_1) - /sizeof(asn_DEF_KlobucharModel2Parameter_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_KlobucharModel2Parameter_r16_1, - 9, /* Elements count */ - &asn_SPC_KlobucharModel2Parameter_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/KlobucharModelParameter.c b/asn.1/generated/KlobucharModelParameter.c deleted file mode 100644 index 9f6df506..00000000 --- a/asn.1/generated/KlobucharModelParameter.c +++ /dev/null @@ -1,406 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "KlobucharModelParameter.h" - -static int -memb_dataID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 2)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_alfa0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_alfa1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_alfa2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_alfa3_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_beta0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_beta1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_beta2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_beta3_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_dataID_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_alfa0_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_alfa1_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_alfa2_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_alfa3_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_beta0_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_beta1_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_beta2_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_beta3_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_KlobucharModelParameter_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct KlobucharModelParameter, dataID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_dataID_constr_2, memb_dataID_constraint_1 }, - 0, 0, /* No default value */ - "dataID" - }, - { ATF_NOFLAGS, 0, offsetof(struct KlobucharModelParameter, alfa0), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_alfa0_constr_3, memb_alfa0_constraint_1 }, - 0, 0, /* No default value */ - "alfa0" - }, - { ATF_NOFLAGS, 0, offsetof(struct KlobucharModelParameter, alfa1), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_alfa1_constr_4, memb_alfa1_constraint_1 }, - 0, 0, /* No default value */ - "alfa1" - }, - { ATF_NOFLAGS, 0, offsetof(struct KlobucharModelParameter, alfa2), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_alfa2_constr_5, memb_alfa2_constraint_1 }, - 0, 0, /* No default value */ - "alfa2" - }, - { ATF_NOFLAGS, 0, offsetof(struct KlobucharModelParameter, alfa3), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_alfa3_constr_6, memb_alfa3_constraint_1 }, - 0, 0, /* No default value */ - "alfa3" - }, - { ATF_NOFLAGS, 0, offsetof(struct KlobucharModelParameter, beta0), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_beta0_constr_7, memb_beta0_constraint_1 }, - 0, 0, /* No default value */ - "beta0" - }, - { ATF_NOFLAGS, 0, offsetof(struct KlobucharModelParameter, beta1), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_beta1_constr_8, memb_beta1_constraint_1 }, - 0, 0, /* No default value */ - "beta1" - }, - { ATF_NOFLAGS, 0, offsetof(struct KlobucharModelParameter, beta2), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_beta2_constr_9, memb_beta2_constraint_1 }, - 0, 0, /* No default value */ - "beta2" - }, - { ATF_NOFLAGS, 0, offsetof(struct KlobucharModelParameter, beta3), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_beta3_constr_10, memb_beta3_constraint_1 }, - 0, 0, /* No default value */ - "beta3" - }, -}; -static const ber_tlv_tag_t asn_DEF_KlobucharModelParameter_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_KlobucharModelParameter_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dataID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* alfa0 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* alfa1 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* alfa2 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* alfa3 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* beta0 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* beta1 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* beta2 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* beta3 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_KlobucharModelParameter_specs_1 = { - sizeof(struct KlobucharModelParameter), - offsetof(struct KlobucharModelParameter, _asn_ctx), - asn_MAP_KlobucharModelParameter_tag2el_1, - 9, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 9, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_KlobucharModelParameter = { - "KlobucharModelParameter", - "KlobucharModelParameter", - &asn_OP_SEQUENCE, - asn_DEF_KlobucharModelParameter_tags_1, - sizeof(asn_DEF_KlobucharModelParameter_tags_1) - /sizeof(asn_DEF_KlobucharModelParameter_tags_1[0]), /* 1 */ - asn_DEF_KlobucharModelParameter_tags_1, /* Same as above */ - sizeof(asn_DEF_KlobucharModelParameter_tags_1) - /sizeof(asn_DEF_KlobucharModelParameter_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_KlobucharModelParameter_1, - 9, /* Elements count */ - &asn_SPC_KlobucharModelParameter_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/LCS-GCS-Translation-Parameter-r16.c b/asn.1/generated/LCS-GCS-Translation-Parameter-r16.c deleted file mode 100644 index 00cfb1ef..00000000 --- a/asn.1/generated/LCS-GCS-Translation-Parameter-r16.c +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "LCS-GCS-Translation-Parameter-r16.h" - -static int -memb_alpha_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3599)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_beta_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3599)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gamma_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3599)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_alpha_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_beta_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gamma_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_LCS_GCS_Translation_Parameter_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct LCS_GCS_Translation_Parameter_r16, alpha_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_alpha_r16_constr_2, memb_alpha_r16_constraint_1 }, - 0, 0, /* No default value */ - "alpha-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct LCS_GCS_Translation_Parameter_r16, beta_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_beta_r16_constr_3, memb_beta_r16_constraint_1 }, - 0, 0, /* No default value */ - "beta-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct LCS_GCS_Translation_Parameter_r16, gamma_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gamma_r16_constr_4, memb_gamma_r16_constraint_1 }, - 0, 0, /* No default value */ - "gamma-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_LCS_GCS_Translation_Parameter_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_LCS_GCS_Translation_Parameter_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* alpha-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* beta-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gamma-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_LCS_GCS_Translation_Parameter_r16_specs_1 = { - sizeof(struct LCS_GCS_Translation_Parameter_r16), - offsetof(struct LCS_GCS_Translation_Parameter_r16, _asn_ctx), - asn_MAP_LCS_GCS_Translation_Parameter_r16_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_LCS_GCS_Translation_Parameter_r16 = { - "LCS-GCS-Translation-Parameter-r16", - "LCS-GCS-Translation-Parameter-r16", - &asn_OP_SEQUENCE, - asn_DEF_LCS_GCS_Translation_Parameter_r16_tags_1, - sizeof(asn_DEF_LCS_GCS_Translation_Parameter_r16_tags_1) - /sizeof(asn_DEF_LCS_GCS_Translation_Parameter_r16_tags_1[0]), /* 1 */ - asn_DEF_LCS_GCS_Translation_Parameter_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_LCS_GCS_Translation_Parameter_r16_tags_1) - /sizeof(asn_DEF_LCS_GCS_Translation_Parameter_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_LCS_GCS_Translation_Parameter_r16_1, - 3, /* Elements count */ - &asn_SPC_LCS_GCS_Translation_Parameter_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/LCS-GCS-Translation-Parameter-r16.h b/asn.1/generated/LCS-GCS-Translation-Parameter-r16.h deleted file mode 100644 index 740a1cde..00000000 --- a/asn.1/generated/LCS-GCS-Translation-Parameter-r16.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _LCS_GCS_Translation_Parameter_r16_H_ -#define _LCS_GCS_Translation_Parameter_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* LCS-GCS-Translation-Parameter-r16 */ -typedef struct LCS_GCS_Translation_Parameter_r16 { - long alpha_r16; - long beta_r16; - long gamma_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} LCS_GCS_Translation_Parameter_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_LCS_GCS_Translation_Parameter_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_LCS_GCS_Translation_Parameter_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_LCS_GCS_Translation_Parameter_r16_1[3]; - -#ifdef __cplusplus -} -#endif - -#endif /* _LCS_GCS_Translation_Parameter_r16_H_ */ -#include diff --git a/asn.1/generated/LPP-Message.c b/asn.1/generated/LPP-Message.c deleted file mode 100644 index aa70c183..00000000 --- a/asn.1/generated/LPP-Message.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "LPP-Message.h" - -static asn_TYPE_member_t asn_MBR_LPP_Message_1[] = { - { ATF_POINTER, 1, offsetof(struct LPP_Message, transactionID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LPP_TransactionID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "transactionID" - }, - { ATF_NOFLAGS, 0, offsetof(struct LPP_Message, endTransaction), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "endTransaction" - }, - { ATF_POINTER, 3, offsetof(struct LPP_Message, sequenceNumber), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SequenceNumber, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sequenceNumber" - }, - { ATF_POINTER, 2, offsetof(struct LPP_Message, acknowledgement), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Acknowledgement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "acknowledgement" - }, - { ATF_POINTER, 1, offsetof(struct LPP_Message, lpp_MessageBody), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_LPP_MessageBody, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "lpp-MessageBody" - }, -}; -static const int asn_MAP_LPP_Message_oms_1[] = { 0, 2, 3, 4 }; -static const ber_tlv_tag_t asn_DEF_LPP_Message_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_LPP_Message_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* transactionID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* endTransaction */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sequenceNumber */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* acknowledgement */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* lpp-MessageBody */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_LPP_Message_specs_1 = { - sizeof(struct LPP_Message), - offsetof(struct LPP_Message, _asn_ctx), - asn_MAP_LPP_Message_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_LPP_Message_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_LPP_Message = { - "LPP-Message", - "LPP-Message", - &asn_OP_SEQUENCE, - asn_DEF_LPP_Message_tags_1, - sizeof(asn_DEF_LPP_Message_tags_1) - /sizeof(asn_DEF_LPP_Message_tags_1[0]), /* 1 */ - asn_DEF_LPP_Message_tags_1, /* Same as above */ - sizeof(asn_DEF_LPP_Message_tags_1) - /sizeof(asn_DEF_LPP_Message_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_LPP_Message_1, - 5, /* Elements count */ - &asn_SPC_LPP_Message_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/LPP-Message.h b/asn.1/generated/LPP-Message.h deleted file mode 100644 index cfcd741a..00000000 --- a/asn.1/generated/LPP-Message.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _LPP_Message_H_ -#define _LPP_Message_H_ - - -#include - -/* Including external dependencies */ -#include -#include "SequenceNumber.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct LPP_TransactionID; -struct Acknowledgement; -struct LPP_MessageBody; - -/* LPP-Message */ -typedef struct LPP_Message { - struct LPP_TransactionID *transactionID /* OPTIONAL */; - BOOLEAN_t endTransaction; - SequenceNumber_t *sequenceNumber /* OPTIONAL */; - struct Acknowledgement *acknowledgement /* OPTIONAL */; - struct LPP_MessageBody *lpp_MessageBody /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} LPP_Message_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_LPP_Message; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "LPP-TransactionID.h" -#include "Acknowledgement.h" -#include "LPP-MessageBody.h" - -#endif /* _LPP_Message_H_ */ -#include diff --git a/asn.1/generated/LPP-MessageBody.c b/asn.1/generated/LPP-MessageBody.c deleted file mode 100644 index 021c610d..00000000 --- a/asn.1/generated/LPP-MessageBody.c +++ /dev/null @@ -1,284 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "LPP-MessageBody.h" - -static asn_per_constraints_t asn_PER_type_c1_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_per_constraints_t asn_PER_type_LPP_MessageBody_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_c1_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.requestCapabilities), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RequestCapabilities, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "requestCapabilities" - }, - { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.provideCapabilities), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ProvideCapabilities, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "provideCapabilities" - }, - { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.requestAssistanceData), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RequestAssistanceData, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "requestAssistanceData" - }, - { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.provideAssistanceData), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ProvideAssistanceData, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "provideAssistanceData" - }, - { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.requestLocationInformation), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RequestLocationInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "requestLocationInformation" - }, - { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.provideLocationInformation), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ProvideLocationInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "provideLocationInformation" - }, - { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.abort), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Abort, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "abort" - }, - { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.error), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_Error, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "error" - }, - { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.spare7), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare7" - }, - { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.spare6), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare6" - }, - { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.spare5), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare5" - }, - { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.spare4), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare4" - }, - { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.spare3), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare3" - }, - { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.spare2), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare2" - }, - { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.spare1), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare1" - }, - { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.spare0), - (ASN_TAG_CLASS_CONTEXT | (15 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare0" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_c1_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* requestCapabilities */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* provideCapabilities */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* requestAssistanceData */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* provideAssistanceData */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* requestLocationInformation */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* provideLocationInformation */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* abort */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* error */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* spare7 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* spare6 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* spare5 */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* spare4 */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* spare3 */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* spare2 */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* spare1 */ - { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 } /* spare0 */ -}; -static asn_CHOICE_specifics_t asn_SPC_c1_specs_2 = { - sizeof(struct LPP_MessageBody__c1), - offsetof(struct LPP_MessageBody__c1, _asn_ctx), - offsetof(struct LPP_MessageBody__c1, present), - sizeof(((struct LPP_MessageBody__c1 *)0)->present), - asn_MAP_c1_tag2el_2, - 16, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_c1_2 = { - "c1", - "c1", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_c1_constr_2, CHOICE_constraint }, - asn_MBR_c1_2, - 16, /* Elements count */ - &asn_SPC_c1_specs_2 /* Additional specs */ -}; - -static const ber_tlv_tag_t asn_DEF_messageClassExtension_tags_19[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SEQUENCE_specifics_t asn_SPC_messageClassExtension_specs_19 = { - sizeof(struct LPP_MessageBody__messageClassExtension), - offsetof(struct LPP_MessageBody__messageClassExtension, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_messageClassExtension_19 = { - "messageClassExtension", - "messageClassExtension", - &asn_OP_SEQUENCE, - asn_DEF_messageClassExtension_tags_19, - sizeof(asn_DEF_messageClassExtension_tags_19) - /sizeof(asn_DEF_messageClassExtension_tags_19[0]) - 1, /* 1 */ - asn_DEF_messageClassExtension_tags_19, /* Same as above */ - sizeof(asn_DEF_messageClassExtension_tags_19) - /sizeof(asn_DEF_messageClassExtension_tags_19[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_messageClassExtension_specs_19 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_LPP_MessageBody_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody, choice.c1), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_c1_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "c1" - }, - { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody, choice.messageClassExtension), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_messageClassExtension_19, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "messageClassExtension" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_LPP_MessageBody_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* c1 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* messageClassExtension */ -}; -asn_CHOICE_specifics_t asn_SPC_LPP_MessageBody_specs_1 = { - sizeof(struct LPP_MessageBody), - offsetof(struct LPP_MessageBody, _asn_ctx), - offsetof(struct LPP_MessageBody, present), - sizeof(((struct LPP_MessageBody *)0)->present), - asn_MAP_LPP_MessageBody_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_LPP_MessageBody = { - "LPP-MessageBody", - "LPP-MessageBody", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_LPP_MessageBody_constr_1, CHOICE_constraint }, - asn_MBR_LPP_MessageBody_1, - 2, /* Elements count */ - &asn_SPC_LPP_MessageBody_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/LPP-TransactionID.c b/asn.1/generated/LPP-TransactionID.c deleted file mode 100644 index 7a4e73c4..00000000 --- a/asn.1/generated/LPP-TransactionID.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "LPP-TransactionID.h" - -asn_TYPE_member_t asn_MBR_LPP_TransactionID_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct LPP_TransactionID, initiator), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Initiator, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "initiator" - }, - { ATF_NOFLAGS, 0, offsetof(struct LPP_TransactionID, transactionNumber), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TransactionNumber, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "transactionNumber" - }, -}; -static const ber_tlv_tag_t asn_DEF_LPP_TransactionID_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_LPP_TransactionID_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* initiator */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* transactionNumber */ -}; -asn_SEQUENCE_specifics_t asn_SPC_LPP_TransactionID_specs_1 = { - sizeof(struct LPP_TransactionID), - offsetof(struct LPP_TransactionID, _asn_ctx), - asn_MAP_LPP_TransactionID_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_LPP_TransactionID = { - "LPP-TransactionID", - "LPP-TransactionID", - &asn_OP_SEQUENCE, - asn_DEF_LPP_TransactionID_tags_1, - sizeof(asn_DEF_LPP_TransactionID_tags_1) - /sizeof(asn_DEF_LPP_TransactionID_tags_1[0]), /* 1 */ - asn_DEF_LPP_TransactionID_tags_1, /* Same as above */ - sizeof(asn_DEF_LPP_TransactionID_tags_1) - /sizeof(asn_DEF_LPP_TransactionID_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_LPP_TransactionID_1, - 2, /* Elements count */ - &asn_SPC_LPP_TransactionID_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/LTEAreaId.c b/asn.1/generated/LTEAreaId.c deleted file mode 100644 index 91e8f8d8..00000000 --- a/asn.1/generated/LTEAreaId.c +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "LTEAreaId.h" - -static int -memb_refMCC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refMNC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refCI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 29)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_refMCC_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refMNC_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refCI_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 29, 29 } /* (SIZE(29..29)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_LTEAreaId_1[] = { - { ATF_POINTER, 3, offsetof(struct LTEAreaId, refMCC), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refMCC_constr_2, memb_refMCC_constraint_1 }, - 0, 0, /* No default value */ - "refMCC" - }, - { ATF_POINTER, 2, offsetof(struct LTEAreaId, refMNC), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refMNC_constr_3, memb_refMNC_constraint_1 }, - 0, 0, /* No default value */ - "refMNC" - }, - { ATF_POINTER, 1, offsetof(struct LTEAreaId, refCI), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_refCI_constr_4, memb_refCI_constraint_1 }, - 0, 0, /* No default value */ - "refCI" - }, -}; -static const int asn_MAP_LTEAreaId_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_LTEAreaId_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_LTEAreaId_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refMCC */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refMNC */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* refCI */ -}; -asn_SEQUENCE_specifics_t asn_SPC_LTEAreaId_specs_1 = { - sizeof(struct LTEAreaId), - offsetof(struct LTEAreaId, _asn_ctx), - asn_MAP_LTEAreaId_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_LTEAreaId_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_LTEAreaId = { - "LTEAreaId", - "LTEAreaId", - &asn_OP_SEQUENCE, - asn_DEF_LTEAreaId_tags_1, - sizeof(asn_DEF_LTEAreaId_tags_1) - /sizeof(asn_DEF_LTEAreaId_tags_1[0]), /* 1 */ - asn_DEF_LTEAreaId_tags_1, /* Same as above */ - sizeof(asn_DEF_LTEAreaId_tags_1) - /sizeof(asn_DEF_LTEAreaId_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_LTEAreaId_1, - 3, /* Elements count */ - &asn_SPC_LTEAreaId_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/LTEAreaId.h b/asn.1/generated/LTEAreaId.h deleted file mode 100644 index 516c2f62..00000000 --- a/asn.1/generated/LTEAreaId.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _LTEAreaId_H_ -#define _LTEAreaId_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* LTEAreaId */ -typedef struct LTEAreaId { - long *refMCC /* OPTIONAL */; - long *refMNC /* OPTIONAL */; - BIT_STRING_t *refCI /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} LTEAreaId_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_LTEAreaId; -extern asn_SEQUENCE_specifics_t asn_SPC_LTEAreaId_specs_1; -extern asn_TYPE_member_t asn_MBR_LTEAreaId_1[3]; - -#ifdef __cplusplus -} -#endif - -#endif /* _LTEAreaId_H_ */ -#include diff --git a/asn.1/generated/LocationCoordinateTypes.c b/asn.1/generated/LocationCoordinateTypes.c deleted file mode 100644 index 6712cc56..00000000 --- a/asn.1/generated/LocationCoordinateTypes.c +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "LocationCoordinateTypes.h" - -static asn_TYPE_member_t asn_MBR_ext1_10[] = { - { ATF_POINTER, 2, offsetof(struct LocationCoordinateTypes__ext1, highAccuracyEllipsoidPointWithUncertaintyEllipse_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "highAccuracyEllipsoidPointWithUncertaintyEllipse-r15" - }, - { ATF_POINTER, 1, offsetof(struct LocationCoordinateTypes__ext1, highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15" - }, -}; -static const int asn_MAP_ext1_oms_10[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_10[] = { - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_10[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* highAccuracyEllipsoidPointWithUncertaintyEllipse-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_10 = { - sizeof(struct LocationCoordinateTypes__ext1), - offsetof(struct LocationCoordinateTypes__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_10, - 2, /* Count of tags in the map */ - asn_MAP_ext1_oms_10, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_10 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_10, - sizeof(asn_DEF_ext1_tags_10) - /sizeof(asn_DEF_ext1_tags_10[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_10, /* Same as above */ - sizeof(asn_DEF_ext1_tags_10) - /sizeof(asn_DEF_ext1_tags_10[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_10, - 2, /* Elements count */ - &asn_SPC_ext1_specs_10 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_LocationCoordinateTypes_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinateTypes, ellipsoidPoint), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ellipsoidPoint" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinateTypes, ellipsoidPointWithUncertaintyCircle), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ellipsoidPointWithUncertaintyCircle" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinateTypes, ellipsoidPointWithUncertaintyEllipse), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ellipsoidPointWithUncertaintyEllipse" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinateTypes, polygon), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "polygon" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinateTypes, ellipsoidPointWithAltitude), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ellipsoidPointWithAltitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinateTypes, ellipsoidPointWithAltitudeAndUncertaintyEllipsoid), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ellipsoidPointWithAltitudeAndUncertaintyEllipsoid" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinateTypes, ellipsoidArc), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ellipsoidArc" - }, - { ATF_POINTER, 1, offsetof(struct LocationCoordinateTypes, ext1), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - 0, - &asn_DEF_ext1_10, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_LocationCoordinateTypes_oms_1[] = { 7 }; -static const ber_tlv_tag_t asn_DEF_LocationCoordinateTypes_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_LocationCoordinateTypes_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ellipsoidPoint */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ellipsoidPointWithUncertaintyCircle */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ellipsoidPointWithUncertaintyEllipse */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* polygon */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ellipsoidPointWithAltitude */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ellipsoidPointWithAltitudeAndUncertaintyEllipsoid */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ellipsoidArc */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_LocationCoordinateTypes_specs_1 = { - sizeof(struct LocationCoordinateTypes), - offsetof(struct LocationCoordinateTypes, _asn_ctx), - asn_MAP_LocationCoordinateTypes_tag2el_1, - 8, /* Count of tags in the map */ - asn_MAP_LocationCoordinateTypes_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 7, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_LocationCoordinateTypes = { - "LocationCoordinateTypes", - "LocationCoordinateTypes", - &asn_OP_SEQUENCE, - asn_DEF_LocationCoordinateTypes_tags_1, - sizeof(asn_DEF_LocationCoordinateTypes_tags_1) - /sizeof(asn_DEF_LocationCoordinateTypes_tags_1[0]), /* 1 */ - asn_DEF_LocationCoordinateTypes_tags_1, /* Same as above */ - sizeof(asn_DEF_LocationCoordinateTypes_tags_1) - /sizeof(asn_DEF_LocationCoordinateTypes_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_LocationCoordinateTypes_1, - 8, /* Elements count */ - &asn_SPC_LocationCoordinateTypes_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/LocationCoordinateTypes.h b/asn.1/generated/LocationCoordinateTypes.h deleted file mode 100644 index 1a10f867..00000000 --- a/asn.1/generated/LocationCoordinateTypes.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _LocationCoordinateTypes_H_ -#define _LocationCoordinateTypes_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* LocationCoordinateTypes */ -typedef struct LocationCoordinateTypes { - BOOLEAN_t ellipsoidPoint; - BOOLEAN_t ellipsoidPointWithUncertaintyCircle; - BOOLEAN_t ellipsoidPointWithUncertaintyEllipse; - BOOLEAN_t polygon; - BOOLEAN_t ellipsoidPointWithAltitude; - BOOLEAN_t ellipsoidPointWithAltitudeAndUncertaintyEllipsoid; - BOOLEAN_t ellipsoidArc; - /* - * This type is extensible, - * possible extensions are below. - */ - struct LocationCoordinateTypes__ext1 { - BOOLEAN_t *highAccuracyEllipsoidPointWithUncertaintyEllipse_r15 /* OPTIONAL */; - BOOLEAN_t *highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} LocationCoordinateTypes_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_LocationCoordinateTypes; -extern asn_SEQUENCE_specifics_t asn_SPC_LocationCoordinateTypes_specs_1; -extern asn_TYPE_member_t asn_MBR_LocationCoordinateTypes_1[8]; - -#ifdef __cplusplus -} -#endif - -#endif /* _LocationCoordinateTypes_H_ */ -#include diff --git a/asn.1/generated/LocationCoordinates.c b/asn.1/generated/LocationCoordinates.c deleted file mode 100644 index 635fa9b5..00000000 --- a/asn.1/generated/LocationCoordinates.c +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "LocationCoordinates.h" - -asn_per_constraints_t asn_PER_type_LocationCoordinates_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 6 } /* (0..6,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_LocationCoordinates_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.ellipsoidPoint), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ellipsoid_Point, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ellipsoidPoint" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.ellipsoidPointWithUncertaintyCircle), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ellipsoid_PointWithUncertaintyCircle, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ellipsoidPointWithUncertaintyCircle" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.ellipsoidPointWithUncertaintyEllipse), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EllipsoidPointWithUncertaintyEllipse, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ellipsoidPointWithUncertaintyEllipse" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.polygon), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Polygon, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "polygon" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.ellipsoidPointWithAltitude), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EllipsoidPointWithAltitude, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ellipsoidPointWithAltitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.ellipsoidPointWithAltitudeAndUncertaintyEllipsoid), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ellipsoidPointWithAltitudeAndUncertaintyEllipsoid" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.ellipsoidArc), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EllipsoidArc, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ellipsoidArc" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.highAccuracyEllipsoidPointWithUncertaintyEllipse_v1510), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "highAccuracyEllipsoidPointWithUncertaintyEllipse-v1510" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_v1510), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-v1510" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_LocationCoordinates_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ellipsoidPoint */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ellipsoidPointWithUncertaintyCircle */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ellipsoidPointWithUncertaintyEllipse */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* polygon */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ellipsoidPointWithAltitude */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ellipsoidPointWithAltitudeAndUncertaintyEllipsoid */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ellipsoidArc */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* highAccuracyEllipsoidPointWithUncertaintyEllipse-v1510 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-v1510 */ -}; -asn_CHOICE_specifics_t asn_SPC_LocationCoordinates_specs_1 = { - sizeof(struct LocationCoordinates), - offsetof(struct LocationCoordinates, _asn_ctx), - offsetof(struct LocationCoordinates, present), - sizeof(((struct LocationCoordinates *)0)->present), - asn_MAP_LocationCoordinates_tag2el_1, - 9, /* Count of tags in the map */ - 0, 0, - 7 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_LocationCoordinates = { - "LocationCoordinates", - "LocationCoordinates", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_LocationCoordinates_constr_1, CHOICE_constraint }, - asn_MBR_LocationCoordinates_1, - 9, /* Elements count */ - &asn_SPC_LocationCoordinates_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/LocationCoordinates.h b/asn.1/generated/LocationCoordinates.h deleted file mode 100644 index 0d22b3cb..00000000 --- a/asn.1/generated/LocationCoordinates.h +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _LocationCoordinates_H_ -#define _LocationCoordinates_H_ - - -#include - -/* Including external dependencies */ -#include "Ellipsoid-Point.h" -#include "Ellipsoid-PointWithUncertaintyCircle.h" -#include "EllipsoidPointWithUncertaintyEllipse.h" -#include "Polygon.h" -#include "EllipsoidPointWithAltitude.h" -#include "EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.h" -#include "EllipsoidArc.h" -#include "HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.h" -#include "HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum LocationCoordinates_PR { - LocationCoordinates_PR_NOTHING, /* No components present */ - LocationCoordinates_PR_ellipsoidPoint, - LocationCoordinates_PR_ellipsoidPointWithUncertaintyCircle, - LocationCoordinates_PR_ellipsoidPointWithUncertaintyEllipse, - LocationCoordinates_PR_polygon, - LocationCoordinates_PR_ellipsoidPointWithAltitude, - LocationCoordinates_PR_ellipsoidPointWithAltitudeAndUncertaintyEllipsoid, - LocationCoordinates_PR_ellipsoidArc, - /* Extensions may appear below */ - LocationCoordinates_PR_highAccuracyEllipsoidPointWithUncertaintyEllipse_v1510, - LocationCoordinates_PR_highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_v1510 -} LocationCoordinates_PR; - -/* LocationCoordinates */ -typedef struct LocationCoordinates { - LocationCoordinates_PR present; - union LocationCoordinates_u { - Ellipsoid_Point_t ellipsoidPoint; - Ellipsoid_PointWithUncertaintyCircle_t ellipsoidPointWithUncertaintyCircle; - EllipsoidPointWithUncertaintyEllipse_t ellipsoidPointWithUncertaintyEllipse; - Polygon_t polygon; - EllipsoidPointWithAltitude_t ellipsoidPointWithAltitude; - EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_t ellipsoidPointWithAltitudeAndUncertaintyEllipsoid; - EllipsoidArc_t ellipsoidArc; - /* - * This type is extensible, - * possible extensions are below. - */ - HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_t highAccuracyEllipsoidPointWithUncertaintyEllipse_v1510; - HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_t highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_v1510; - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} LocationCoordinates_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_LocationCoordinates; -extern asn_CHOICE_specifics_t asn_SPC_LocationCoordinates_specs_1; -extern asn_TYPE_member_t asn_MBR_LocationCoordinates_1[9]; -extern asn_per_constraints_t asn_PER_type_LocationCoordinates_constr_1; - -#ifdef __cplusplus -} -#endif - -#endif /* _LocationCoordinates_H_ */ -#include diff --git a/asn.1/generated/LocationData.c b/asn.1/generated/LocationData.c deleted file mode 100644 index 2c69f8e7..00000000 --- a/asn.1/generated/LocationData.c +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "LocationData.h" - -static int -locationAccuracy_2_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -static int -memb_locationAccuracy_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -static int -memb_locationValue_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size >= 1 && size <= 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_locationAccuracy_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_locationAccuracy_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_locationValue_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 7, 7, 1, 128 } /* (SIZE(1..128)) */, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_specifics_t asn_SPC_locationAccuracy_specs_2 = { - 0, 0, 0, 0, 0, - 0, /* Native long size */ - 1 /* Unsigned representation */ -}; -static const ber_tlv_tag_t asn_DEF_locationAccuracy_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_locationAccuracy_2 = { - "locationAccuracy", - "locationAccuracy", - &asn_OP_NativeInteger, - asn_DEF_locationAccuracy_tags_2, - sizeof(asn_DEF_locationAccuracy_tags_2) - /sizeof(asn_DEF_locationAccuracy_tags_2[0]) - 1, /* 1 */ - asn_DEF_locationAccuracy_tags_2, /* Same as above */ - sizeof(asn_DEF_locationAccuracy_tags_2) - /sizeof(asn_DEF_locationAccuracy_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_locationAccuracy_constr_2, locationAccuracy_2_constraint }, - 0, 0, /* No members */ - &asn_SPC_locationAccuracy_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_LocationData_1[] = { - { ATF_POINTER, 1, offsetof(struct LocationData, locationAccuracy), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_locationAccuracy_2, - 0, - { 0, &asn_PER_memb_locationAccuracy_constr_2, memb_locationAccuracy_constraint_1 }, - 0, 0, /* No default value */ - "locationAccuracy" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationData, locationValue), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OCTET_STRING, - 0, - { 0, &asn_PER_memb_locationValue_constr_3, memb_locationValue_constraint_1 }, - 0, 0, /* No default value */ - "locationValue" - }, -}; -static const int asn_MAP_LocationData_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_LocationData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_LocationData_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationAccuracy */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* locationValue */ -}; -asn_SEQUENCE_specifics_t asn_SPC_LocationData_specs_1 = { - sizeof(struct LocationData), - offsetof(struct LocationData, _asn_ctx), - asn_MAP_LocationData_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_LocationData_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_LocationData = { - "LocationData", - "LocationData", - &asn_OP_SEQUENCE, - asn_DEF_LocationData_tags_1, - sizeof(asn_DEF_LocationData_tags_1) - /sizeof(asn_DEF_LocationData_tags_1[0]), /* 1 */ - asn_DEF_LocationData_tags_1, /* Same as above */ - sizeof(asn_DEF_LocationData_tags_1) - /sizeof(asn_DEF_LocationData_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_LocationData_1, - 2, /* Elements count */ - &asn_SPC_LocationData_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/LocationDataLCI-r14.c b/asn.1/generated/LocationDataLCI-r14.c deleted file mode 100644 index 539cc1fd..00000000 --- a/asn.1/generated/LocationDataLCI-r14.c +++ /dev/null @@ -1,364 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "LocationDataLCI-r14.h" - -static int -memb_latitudeUncertainty_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 6)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_latitude_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 34)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_longitudeUncertainty_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 6)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_longitude_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 34)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_altitudeUncertainty_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 6)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_altitude_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 30)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_datum_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_latitudeUncertainty_r14_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_latitude_r14_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 34, 34 } /* (SIZE(34..34)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_longitudeUncertainty_r14_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_longitude_r14_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 34, 34 } /* (SIZE(34..34)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_altitudeUncertainty_r14_constr_6 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_altitude_r14_constr_7 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 30, 30 } /* (SIZE(30..30)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_datum_r14_constr_8 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_LocationDataLCI_r14_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct LocationDataLCI_r14, latitudeUncertainty_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_latitudeUncertainty_r14_constr_2, memb_latitudeUncertainty_r14_constraint_1 }, - 0, 0, /* No default value */ - "latitudeUncertainty-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationDataLCI_r14, latitude_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_latitude_r14_constr_3, memb_latitude_r14_constraint_1 }, - 0, 0, /* No default value */ - "latitude-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationDataLCI_r14, longitudeUncertainty_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_longitudeUncertainty_r14_constr_4, memb_longitudeUncertainty_r14_constraint_1 }, - 0, 0, /* No default value */ - "longitudeUncertainty-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationDataLCI_r14, longitude_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_longitude_r14_constr_5, memb_longitude_r14_constraint_1 }, - 0, 0, /* No default value */ - "longitude-r14" - }, - { ATF_POINTER, 2, offsetof(struct LocationDataLCI_r14, altitudeUncertainty_r14), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_altitudeUncertainty_r14_constr_6, memb_altitudeUncertainty_r14_constraint_1 }, - 0, 0, /* No default value */ - "altitudeUncertainty-r14" - }, - { ATF_POINTER, 1, offsetof(struct LocationDataLCI_r14, altitude_r14), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_altitude_r14_constr_7, memb_altitude_r14_constraint_1 }, - 0, 0, /* No default value */ - "altitude-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationDataLCI_r14, datum_r14), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_datum_r14_constr_8, memb_datum_r14_constraint_1 }, - 0, 0, /* No default value */ - "datum-r14" - }, -}; -static const int asn_MAP_LocationDataLCI_r14_oms_1[] = { 4, 5 }; -static const ber_tlv_tag_t asn_DEF_LocationDataLCI_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_LocationDataLCI_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeUncertainty-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* latitude-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* longitudeUncertainty-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* longitude-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* altitudeUncertainty-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* altitude-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* datum-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_LocationDataLCI_r14_specs_1 = { - sizeof(struct LocationDataLCI_r14), - offsetof(struct LocationDataLCI_r14, _asn_ctx), - asn_MAP_LocationDataLCI_r14_tag2el_1, - 7, /* Count of tags in the map */ - asn_MAP_LocationDataLCI_r14_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 7, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_LocationDataLCI_r14 = { - "LocationDataLCI-r14", - "LocationDataLCI-r14", - &asn_OP_SEQUENCE, - asn_DEF_LocationDataLCI_r14_tags_1, - sizeof(asn_DEF_LocationDataLCI_r14_tags_1) - /sizeof(asn_DEF_LocationDataLCI_r14_tags_1[0]), /* 1 */ - asn_DEF_LocationDataLCI_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_LocationDataLCI_r14_tags_1) - /sizeof(asn_DEF_LocationDataLCI_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_LocationDataLCI_r14_1, - 7, /* Elements count */ - &asn_SPC_LocationDataLCI_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/LocationDataLCI-r14.h b/asn.1/generated/LocationDataLCI-r14.h deleted file mode 100644 index 54a0dcfa..00000000 --- a/asn.1/generated/LocationDataLCI-r14.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _LocationDataLCI_r14_H_ -#define _LocationDataLCI_r14_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* LocationDataLCI-r14 */ -typedef struct LocationDataLCI_r14 { - BIT_STRING_t latitudeUncertainty_r14; - BIT_STRING_t latitude_r14; - BIT_STRING_t longitudeUncertainty_r14; - BIT_STRING_t longitude_r14; - BIT_STRING_t *altitudeUncertainty_r14 /* OPTIONAL */; - BIT_STRING_t *altitude_r14 /* OPTIONAL */; - BIT_STRING_t datum_r14; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} LocationDataLCI_r14_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_LocationDataLCI_r14; -extern asn_SEQUENCE_specifics_t asn_SPC_LocationDataLCI_r14_specs_1; -extern asn_TYPE_member_t asn_MBR_LocationDataLCI_r14_1[7]; - -#ifdef __cplusplus -} -#endif - -#endif /* _LocationDataLCI_r14_H_ */ -#include diff --git a/asn.1/generated/LocationEncodingDescriptor.c b/asn.1/generated/LocationEncodingDescriptor.c deleted file mode 100644 index cfe7f6cc..00000000 --- a/asn.1/generated/LocationEncodingDescriptor.c +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "LocationEncodingDescriptor.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_LocationEncodingDescriptor_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_LocationEncodingDescriptor_value2enum_1[] = { - { 0, 3, "lCI" }, - { 1, 4, "aSN1" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_LocationEncodingDescriptor_enum2value_1[] = { - 1, /* aSN1(1) */ - 0 /* lCI(0) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_LocationEncodingDescriptor_specs_1 = { - asn_MAP_LocationEncodingDescriptor_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_LocationEncodingDescriptor_enum2value_1, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_LocationEncodingDescriptor_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_LocationEncodingDescriptor = { - "LocationEncodingDescriptor", - "LocationEncodingDescriptor", - &asn_OP_NativeEnumerated, - asn_DEF_LocationEncodingDescriptor_tags_1, - sizeof(asn_DEF_LocationEncodingDescriptor_tags_1) - /sizeof(asn_DEF_LocationEncodingDescriptor_tags_1[0]), /* 1 */ - asn_DEF_LocationEncodingDescriptor_tags_1, /* Same as above */ - sizeof(asn_DEF_LocationEncodingDescriptor_tags_1) - /sizeof(asn_DEF_LocationEncodingDescriptor_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_LocationEncodingDescriptor_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_LocationEncodingDescriptor_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/LocationError.c b/asn.1/generated/LocationError.c deleted file mode 100644 index d5905c2c..00000000 --- a/asn.1/generated/LocationError.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "LocationError.h" - -asn_TYPE_member_t asn_MBR_LocationError_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct LocationError, locationfailurecause), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LocationFailureCause, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationfailurecause" - }, -}; -static const ber_tlv_tag_t asn_DEF_LocationError_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_LocationError_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* locationfailurecause */ -}; -asn_SEQUENCE_specifics_t asn_SPC_LocationError_specs_1 = { - sizeof(struct LocationError), - offsetof(struct LocationError, _asn_ctx), - asn_MAP_LocationError_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_LocationError = { - "LocationError", - "LocationError", - &asn_OP_SEQUENCE, - asn_DEF_LocationError_tags_1, - sizeof(asn_DEF_LocationError_tags_1) - /sizeof(asn_DEF_LocationError_tags_1[0]), /* 1 */ - asn_DEF_LocationError_tags_1, /* Same as above */ - sizeof(asn_DEF_LocationError_tags_1) - /sizeof(asn_DEF_LocationError_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_LocationError_1, - 1, /* Elements count */ - &asn_SPC_LocationError_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/LocationFailureCause.c b/asn.1/generated/LocationFailureCause.c deleted file mode 100644 index 9736f224..00000000 --- a/asn.1/generated/LocationFailureCause.c +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "LocationFailureCause.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_LocationFailureCause_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_LocationFailureCause_value2enum_1[] = { - { 0, 9, "undefined" }, - { 1, 27, "requestedMethodNotSupported" }, - { 2, 21, "positionMethodFailure" }, - { 3, 40, "periodicLocationMeasurementsNotAvailable" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_LocationFailureCause_enum2value_1[] = { - 3, /* periodicLocationMeasurementsNotAvailable(3) */ - 2, /* positionMethodFailure(2) */ - 1, /* requestedMethodNotSupported(1) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_LocationFailureCause_specs_1 = { - asn_MAP_LocationFailureCause_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_LocationFailureCause_enum2value_1, /* N => "tag"; sorted by N */ - 4, /* Number of elements in the maps */ - 5, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_LocationFailureCause_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_LocationFailureCause = { - "LocationFailureCause", - "LocationFailureCause", - &asn_OP_NativeEnumerated, - asn_DEF_LocationFailureCause_tags_1, - sizeof(asn_DEF_LocationFailureCause_tags_1) - /sizeof(asn_DEF_LocationFailureCause_tags_1[0]), /* 1 */ - asn_DEF_LocationFailureCause_tags_1, /* Same as above */ - sizeof(asn_DEF_LocationFailureCause_tags_1) - /sizeof(asn_DEF_LocationFailureCause_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_LocationFailureCause_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_LocationFailureCause_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/LocationId.c b/asn.1/generated/LocationId.c deleted file mode 100644 index a04f812a..00000000 --- a/asn.1/generated/LocationId.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "LocationId.h" - -asn_TYPE_member_t asn_MBR_LocationId_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct LocationId, cellInfo), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_CellInfo, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellInfo" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationId, status), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Status, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "status" - }, -}; -static const ber_tlv_tag_t asn_DEF_LocationId_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_LocationId_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellInfo */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* status */ -}; -asn_SEQUENCE_specifics_t asn_SPC_LocationId_specs_1 = { - sizeof(struct LocationId), - offsetof(struct LocationId, _asn_ctx), - asn_MAP_LocationId_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_LocationId = { - "LocationId", - "LocationId", - &asn_OP_SEQUENCE, - asn_DEF_LocationId_tags_1, - sizeof(asn_DEF_LocationId_tags_1) - /sizeof(asn_DEF_LocationId_tags_1[0]), /* 1 */ - asn_DEF_LocationId_tags_1, /* Same as above */ - sizeof(asn_DEF_LocationId_tags_1) - /sizeof(asn_DEF_LocationId_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_LocationId_1, - 2, /* Elements count */ - &asn_SPC_LocationId_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/LocationIdData.c b/asn.1/generated/LocationIdData.c deleted file mode 100644 index 687d5031..00000000 --- a/asn.1/generated/LocationIdData.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "LocationIdData.h" - -asn_TYPE_member_t asn_MBR_LocationIdData_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct LocationIdData, locationId), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LocationId, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationId" - }, - { ATF_POINTER, 1, offsetof(struct LocationIdData, relativetimestamp), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RelativeTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "relativetimestamp" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationIdData, servingFlag), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "servingFlag" - }, -}; -static const int asn_MAP_LocationIdData_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_LocationIdData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_LocationIdData_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationId */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* relativetimestamp */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* servingFlag */ -}; -asn_SEQUENCE_specifics_t asn_SPC_LocationIdData_specs_1 = { - sizeof(struct LocationIdData), - offsetof(struct LocationIdData, _asn_ctx), - asn_MAP_LocationIdData_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_LocationIdData_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_LocationIdData = { - "LocationIdData", - "LocationIdData", - &asn_OP_SEQUENCE, - asn_DEF_LocationIdData_tags_1, - sizeof(asn_DEF_LocationIdData_tags_1) - /sizeof(asn_DEF_LocationIdData_tags_1[0]), /* 1 */ - asn_DEF_LocationIdData_tags_1, /* Same as above */ - sizeof(asn_DEF_LocationIdData_tags_1) - /sizeof(asn_DEF_LocationIdData_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_LocationIdData_1, - 3, /* Elements count */ - &asn_SPC_LocationIdData_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/LocationInformationType.c b/asn.1/generated/LocationInformationType.c deleted file mode 100644 index 88eb9438..00000000 --- a/asn.1/generated/LocationInformationType.c +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "LocationInformationType.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_LocationInformationType_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_LocationInformationType_value2enum_1[] = { - { 0, 24, "locationEstimateRequired" }, - { 1, 28, "locationMeasurementsRequired" }, - { 2, 25, "locationEstimatePreferred" }, - { 3, 29, "locationMeasurementsPreferred" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_LocationInformationType_enum2value_1[] = { - 2, /* locationEstimatePreferred(2) */ - 0, /* locationEstimateRequired(0) */ - 3, /* locationMeasurementsPreferred(3) */ - 1 /* locationMeasurementsRequired(1) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_LocationInformationType_specs_1 = { - asn_MAP_LocationInformationType_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_LocationInformationType_enum2value_1, /* N => "tag"; sorted by N */ - 4, /* Number of elements in the maps */ - 5, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_LocationInformationType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_LocationInformationType = { - "LocationInformationType", - "LocationInformationType", - &asn_OP_NativeEnumerated, - asn_DEF_LocationInformationType_tags_1, - sizeof(asn_DEF_LocationInformationType_tags_1) - /sizeof(asn_DEF_LocationInformationType_tags_1[0]), /* 1 */ - asn_DEF_LocationInformationType_tags_1, /* Same as above */ - sizeof(asn_DEF_LocationInformationType_tags_1) - /sizeof(asn_DEF_LocationInformationType_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_LocationInformationType_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_LocationInformationType_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/LocationSource-r13.c b/asn.1/generated/LocationSource-r13.c deleted file mode 100644 index bd228243..00000000 --- a/asn.1/generated/LocationSource-r13.c +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "LocationSource-r13.h" - -int -LocationSource_r13_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 16)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using BIT_STRING, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_LocationSource_r13_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_LocationSource_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_LocationSource_r13 = { - "LocationSource-r13", - "LocationSource-r13", - &asn_OP_BIT_STRING, - asn_DEF_LocationSource_r13_tags_1, - sizeof(asn_DEF_LocationSource_r13_tags_1) - /sizeof(asn_DEF_LocationSource_r13_tags_1[0]), /* 1 */ - asn_DEF_LocationSource_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_LocationSource_r13_tags_1) - /sizeof(asn_DEF_LocationSource_r13_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_LocationSource_r13_constr_1, LocationSource_r13_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/asn.1/generated/LocationSource-r13.h b/asn.1/generated/LocationSource-r13.h deleted file mode 100644 index e2dbf7f9..00000000 --- a/asn.1/generated/LocationSource-r13.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _LocationSource_r13_H_ -#define _LocationSource_r13_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum LocationSource_r13 { - LocationSource_r13_a_gnss = 0, - LocationSource_r13_wlan = 1, - LocationSource_r13_bt = 2, - LocationSource_r13_tbs = 3, - LocationSource_r13_sensor = 4, - LocationSource_r13_ha_gnss_v1510 = 5, - LocationSource_r13_motion_sensor_v1550 = 6 -} e_LocationSource_r13; - -/* LocationSource-r13 */ -typedef BIT_STRING_t LocationSource_r13_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_LocationSource_r13_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_LocationSource_r13; -asn_struct_free_f LocationSource_r13_free; -asn_struct_print_f LocationSource_r13_print; -asn_constr_check_f LocationSource_r13_constraint; -ber_type_decoder_f LocationSource_r13_decode_ber; -der_type_encoder_f LocationSource_r13_encode_der; -xer_type_decoder_f LocationSource_r13_decode_xer; -xer_type_encoder_f LocationSource_r13_encode_xer; -per_type_decoder_f LocationSource_r13_decode_uper; -per_type_encoder_f LocationSource_r13_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _LocationSource_r13_H_ */ -#include diff --git a/asn.1/generated/LocationUncertainty-r16.c b/asn.1/generated/LocationUncertainty-r16.c deleted file mode 100644 index 8bf562d8..00000000 --- a/asn.1/generated/LocationUncertainty-r16.c +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "LocationUncertainty-r16.h" - -static int -memb_horizontalUncertainty_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_horizontalConfidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_verticalUncertainty_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_verticalConfidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_horizontalUncertainty_r15_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_horizontalConfidence_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_verticalUncertainty_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_verticalConfidence_r15_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_LocationUncertainty_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct LocationUncertainty_r16, horizontalUncertainty_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_horizontalUncertainty_r15_constr_2, memb_horizontalUncertainty_r15_constraint_1 }, - 0, 0, /* No default value */ - "horizontalUncertainty-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationUncertainty_r16, horizontalConfidence_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_horizontalConfidence_r15_constr_3, memb_horizontalConfidence_r15_constraint_1 }, - 0, 0, /* No default value */ - "horizontalConfidence-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationUncertainty_r16, verticalUncertainty_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_verticalUncertainty_r15_constr_4, memb_verticalUncertainty_r15_constraint_1 }, - 0, 0, /* No default value */ - "verticalUncertainty-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationUncertainty_r16, verticalConfidence_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_verticalConfidence_r15_constr_5, memb_verticalConfidence_r15_constraint_1 }, - 0, 0, /* No default value */ - "verticalConfidence-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_LocationUncertainty_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_LocationUncertainty_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horizontalUncertainty-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horizontalConfidence-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* verticalUncertainty-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* verticalConfidence-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_LocationUncertainty_r16_specs_1 = { - sizeof(struct LocationUncertainty_r16), - offsetof(struct LocationUncertainty_r16, _asn_ctx), - asn_MAP_LocationUncertainty_r16_tag2el_1, - 4, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_LocationUncertainty_r16 = { - "LocationUncertainty-r16", - "LocationUncertainty-r16", - &asn_OP_SEQUENCE, - asn_DEF_LocationUncertainty_r16_tags_1, - sizeof(asn_DEF_LocationUncertainty_r16_tags_1) - /sizeof(asn_DEF_LocationUncertainty_r16_tags_1[0]), /* 1 */ - asn_DEF_LocationUncertainty_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_LocationUncertainty_r16_tags_1) - /sizeof(asn_DEF_LocationUncertainty_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_LocationUncertainty_r16_1, - 4, /* Elements count */ - &asn_SPC_LocationUncertainty_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/LocationUncertainty-r16.h b/asn.1/generated/LocationUncertainty-r16.h deleted file mode 100644 index af645202..00000000 --- a/asn.1/generated/LocationUncertainty-r16.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _LocationUncertainty_r16_H_ -#define _LocationUncertainty_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* LocationUncertainty-r16 */ -typedef struct LocationUncertainty_r16 { - long horizontalUncertainty_r15; - long horizontalConfidence_r15; - long verticalUncertainty_r15; - long verticalConfidence_r15; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} LocationUncertainty_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_LocationUncertainty_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_LocationUncertainty_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_LocationUncertainty_r16_1[4]; - -#ifdef __cplusplus -} -#endif - -#endif /* _LocationUncertainty_r16_H_ */ -#include diff --git a/asn.1/generated/LteCellInformation.c b/asn.1/generated/LteCellInformation.c deleted file mode 100644 index fe4628be..00000000 --- a/asn.1/generated/LteCellInformation.c +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "LteCellInformation.h" - -static int -memb_tA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1282)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_tA_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 1282 } /* (0..1282) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_LteCellInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct LteCellInformation, cellGlobalIdEUTRA), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CellGlobalIdEUTRA, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellGlobalIdEUTRA" - }, - { ATF_NOFLAGS, 0, offsetof(struct LteCellInformation, physCellId), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PhysCellId, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "physCellId" - }, - { ATF_NOFLAGS, 0, offsetof(struct LteCellInformation, trackingAreaCode), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TrackingAreaCode, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "trackingAreaCode" - }, - { ATF_POINTER, 4, offsetof(struct LteCellInformation, rsrpResult), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RSRP_Range, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rsrpResult" - }, - { ATF_POINTER, 3, offsetof(struct LteCellInformation, rsrqResult), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RSRQ_Range, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rsrqResult" - }, - { ATF_POINTER, 2, offsetof(struct LteCellInformation, tA), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_tA_constr_7, memb_tA_constraint_1 }, - 0, 0, /* No default value */ - "tA" - }, - { ATF_POINTER, 1, offsetof(struct LteCellInformation, measResultListEUTRA), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MeasResultListEUTRA, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "measResultListEUTRA" - }, -}; -static const int asn_MAP_LteCellInformation_oms_1[] = { 3, 4, 5, 6 }; -static const ber_tlv_tag_t asn_DEF_LteCellInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_LteCellInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellGlobalIdEUTRA */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* physCellId */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* trackingAreaCode */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* rsrpResult */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rsrqResult */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* tA */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* measResultListEUTRA */ -}; -asn_SEQUENCE_specifics_t asn_SPC_LteCellInformation_specs_1 = { - sizeof(struct LteCellInformation), - offsetof(struct LteCellInformation, _asn_ctx), - asn_MAP_LteCellInformation_tag2el_1, - 7, /* Count of tags in the map */ - asn_MAP_LteCellInformation_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - 7, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_LteCellInformation = { - "LteCellInformation", - "LteCellInformation", - &asn_OP_SEQUENCE, - asn_DEF_LteCellInformation_tags_1, - sizeof(asn_DEF_LteCellInformation_tags_1) - /sizeof(asn_DEF_LteCellInformation_tags_1[0]), /* 1 */ - asn_DEF_LteCellInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_LteCellInformation_tags_1) - /sizeof(asn_DEF_LteCellInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_LteCellInformation_1, - 7, /* Elements count */ - &asn_SPC_LteCellInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/LteCellInformation.h b/asn.1/generated/LteCellInformation.h deleted file mode 100644 index 66ecf575..00000000 --- a/asn.1/generated/LteCellInformation.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _LteCellInformation_H_ -#define _LteCellInformation_H_ - - -#include - -/* Including external dependencies */ -#include "CellGlobalIdEUTRA.h" -#include "PhysCellId.h" -#include "TrackingAreaCode.h" -#include "RSRP-Range.h" -#include "RSRQ-Range.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct MeasResultListEUTRA; - -/* LteCellInformation */ -typedef struct LteCellInformation { - CellGlobalIdEUTRA_t cellGlobalIdEUTRA; - PhysCellId_t physCellId; - TrackingAreaCode_t trackingAreaCode; - RSRP_Range_t *rsrpResult /* OPTIONAL */; - RSRQ_Range_t *rsrqResult /* OPTIONAL */; - long *tA /* OPTIONAL */; - struct MeasResultListEUTRA *measResultListEUTRA /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} LteCellInformation_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_LteCellInformation; -extern asn_SEQUENCE_specifics_t asn_SPC_LteCellInformation_specs_1; -extern asn_TYPE_member_t asn_MBR_LteCellInformation_1[7]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "MeasResultListEUTRA.h" - -#endif /* _LteCellInformation_H_ */ -#include diff --git a/asn.1/generated/MAC.c b/asn.1/generated/MAC.c deleted file mode 100644 index df1d8dbb..00000000 --- a/asn.1/generated/MAC.c +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MAC.h" - -int -MAC_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 64)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using BIT_STRING, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_MAC_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 64, 64 } /* (SIZE(64..64)) */, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_MAC_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_MAC = { - "MAC", - "MAC", - &asn_OP_BIT_STRING, - asn_DEF_MAC_tags_1, - sizeof(asn_DEF_MAC_tags_1) - /sizeof(asn_DEF_MAC_tags_1[0]), /* 1 */ - asn_DEF_MAC_tags_1, /* Same as above */ - sizeof(asn_DEF_MAC_tags_1) - /sizeof(asn_DEF_MAC_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_MAC_constr_1, MAC_constraint }, - 0, 0, /* No members */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/asn.1/generated/MAC.h b/asn.1/generated/MAC.h deleted file mode 100644 index 66956504..00000000 --- a/asn.1/generated/MAC.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _MAC_H_ -#define _MAC_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* MAC */ -typedef BIT_STRING_t MAC_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_MAC_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_MAC; -asn_struct_free_f MAC_free; -asn_struct_print_f MAC_print; -asn_constr_check_f MAC_constraint; -ber_type_decoder_f MAC_decode_ber; -der_type_encoder_f MAC_encode_der; -xer_type_decoder_f MAC_decode_xer; -xer_type_encoder_f MAC_encode_xer; -per_type_decoder_f MAC_decode_uper; -per_type_encoder_f MAC_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _MAC_H_ */ -#include diff --git a/asn.1/generated/MBS-AcquisitionAssistance-r14.c b/asn.1/generated/MBS-AcquisitionAssistance-r14.c deleted file mode 100644 index 11c2b453..00000000 --- a/asn.1/generated/MBS-AcquisitionAssistance-r14.c +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MBS-AcquisitionAssistance-r14.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_transmitterID_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_pnCodeIndex_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_freq_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 919750000 && value <= 927250000)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_mbsConfiguration_r14_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_transmitterID_r14_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_pnCodeIndex_r14_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 1, 128 } /* (1..128) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_freq_r14_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 23, -1, 919750000, 927250000 } /* (919750000..927250000) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_mbsConfiguration_r14_value2enum_3[] = { - { 0, 3, "tb1" }, - { 1, 3, "tb2" }, - { 2, 3, "tb3" }, - { 3, 3, "tb4" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_mbsConfiguration_r14_enum2value_3[] = { - 0, /* tb1(0) */ - 1, /* tb2(1) */ - 2, /* tb3(2) */ - 3 /* tb4(3) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_mbsConfiguration_r14_specs_3 = { - asn_MAP_mbsConfiguration_r14_value2enum_3, /* "tag" => N; sorted by tag */ - asn_MAP_mbsConfiguration_r14_enum2value_3, /* N => "tag"; sorted by N */ - 4, /* Number of elements in the maps */ - 5, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_mbsConfiguration_r14_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_mbsConfiguration_r14_3 = { - "mbsConfiguration-r14", - "mbsConfiguration-r14", - &asn_OP_NativeEnumerated, - asn_DEF_mbsConfiguration_r14_tags_3, - sizeof(asn_DEF_mbsConfiguration_r14_tags_3) - /sizeof(asn_DEF_mbsConfiguration_r14_tags_3[0]) - 1, /* 1 */ - asn_DEF_mbsConfiguration_r14_tags_3, /* Same as above */ - sizeof(asn_DEF_mbsConfiguration_r14_tags_3) - /sizeof(asn_DEF_mbsConfiguration_r14_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_mbsConfiguration_r14_constr_3, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_mbsConfiguration_r14_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_MBS_AcquisitionAssistance_r14_1[] = { - { ATF_POINTER, 4, offsetof(struct MBS_AcquisitionAssistance_r14, transmitterID_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_transmitterID_r14_constr_2, memb_transmitterID_r14_constraint_1 }, - 0, 0, /* No default value */ - "transmitterID-r14" - }, - { ATF_POINTER, 3, offsetof(struct MBS_AcquisitionAssistance_r14, mbsConfiguration_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_mbsConfiguration_r14_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mbsConfiguration-r14" - }, - { ATF_POINTER, 2, offsetof(struct MBS_AcquisitionAssistance_r14, pnCodeIndex_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_pnCodeIndex_r14_constr_9, memb_pnCodeIndex_r14_constraint_1 }, - 0, 0, /* No default value */ - "pnCodeIndex-r14" - }, - { ATF_POINTER, 1, offsetof(struct MBS_AcquisitionAssistance_r14, freq_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_freq_r14_constr_10, memb_freq_r14_constraint_1 }, - 0, 0, /* No default value */ - "freq-r14" - }, -}; -static const int asn_MAP_MBS_AcquisitionAssistance_r14_oms_1[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_MBS_AcquisitionAssistance_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MBS_AcquisitionAssistance_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* transmitterID-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* mbsConfiguration-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* pnCodeIndex-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* freq-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_MBS_AcquisitionAssistance_r14_specs_1 = { - sizeof(struct MBS_AcquisitionAssistance_r14), - offsetof(struct MBS_AcquisitionAssistance_r14, _asn_ctx), - asn_MAP_MBS_AcquisitionAssistance_r14_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_MBS_AcquisitionAssistance_r14_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_MBS_AcquisitionAssistance_r14 = { - "MBS-AcquisitionAssistance-r14", - "MBS-AcquisitionAssistance-r14", - &asn_OP_SEQUENCE, - asn_DEF_MBS_AcquisitionAssistance_r14_tags_1, - sizeof(asn_DEF_MBS_AcquisitionAssistance_r14_tags_1) - /sizeof(asn_DEF_MBS_AcquisitionAssistance_r14_tags_1[0]), /* 1 */ - asn_DEF_MBS_AcquisitionAssistance_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_MBS_AcquisitionAssistance_r14_tags_1) - /sizeof(asn_DEF_MBS_AcquisitionAssistance_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_MBS_AcquisitionAssistance_r14_1, - 4, /* Elements count */ - &asn_SPC_MBS_AcquisitionAssistance_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/MBS-AlmanacAssistance-r14.c b/asn.1/generated/MBS-AlmanacAssistance-r14.c deleted file mode 100644 index bdb05048..00000000 --- a/asn.1/generated/MBS-AlmanacAssistance-r14.c +++ /dev/null @@ -1,260 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MBS-AlmanacAssistance-r14.h" - -static int -memb_transmitterID_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_transmitterLatitude_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 26)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_transmitterLongitude_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 27)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_transmitterAltitude_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_timeCorrection_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 25)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_transmitterID_r14_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_transmitterLatitude_r14_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 26, 26 } /* (SIZE(26..26)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_transmitterLongitude_r14_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 27, 27 } /* (SIZE(27..27)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_transmitterAltitude_r14_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 15, 15 } /* (SIZE(15..15)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_timeCorrection_r14_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 25 } /* (0..25) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_MBS_AlmanacAssistance_r14_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct MBS_AlmanacAssistance_r14, transmitterID_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_transmitterID_r14_constr_2, memb_transmitterID_r14_constraint_1 }, - 0, 0, /* No default value */ - "transmitterID-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct MBS_AlmanacAssistance_r14, transmitterLatitude_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_transmitterLatitude_r14_constr_3, memb_transmitterLatitude_r14_constraint_1 }, - 0, 0, /* No default value */ - "transmitterLatitude-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct MBS_AlmanacAssistance_r14, transmitterLongitude_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_transmitterLongitude_r14_constr_4, memb_transmitterLongitude_r14_constraint_1 }, - 0, 0, /* No default value */ - "transmitterLongitude-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct MBS_AlmanacAssistance_r14, transmitterAltitude_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_transmitterAltitude_r14_constr_5, memb_transmitterAltitude_r14_constraint_1 }, - 0, 0, /* No default value */ - "transmitterAltitude-r14" - }, - { ATF_POINTER, 1, offsetof(struct MBS_AlmanacAssistance_r14, timeCorrection_r14), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_timeCorrection_r14_constr_6, memb_timeCorrection_r14_constraint_1 }, - 0, 0, /* No default value */ - "timeCorrection-r14" - }, -}; -static const int asn_MAP_MBS_AlmanacAssistance_r14_oms_1[] = { 4 }; -static const ber_tlv_tag_t asn_DEF_MBS_AlmanacAssistance_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MBS_AlmanacAssistance_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* transmitterID-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* transmitterLatitude-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* transmitterLongitude-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* transmitterAltitude-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* timeCorrection-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_MBS_AlmanacAssistance_r14_specs_1 = { - sizeof(struct MBS_AlmanacAssistance_r14), - offsetof(struct MBS_AlmanacAssistance_r14, _asn_ctx), - asn_MAP_MBS_AlmanacAssistance_r14_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_MBS_AlmanacAssistance_r14_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_MBS_AlmanacAssistance_r14 = { - "MBS-AlmanacAssistance-r14", - "MBS-AlmanacAssistance-r14", - &asn_OP_SEQUENCE, - asn_DEF_MBS_AlmanacAssistance_r14_tags_1, - sizeof(asn_DEF_MBS_AlmanacAssistance_r14_tags_1) - /sizeof(asn_DEF_MBS_AlmanacAssistance_r14_tags_1[0]), /* 1 */ - asn_DEF_MBS_AlmanacAssistance_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_MBS_AlmanacAssistance_r14_tags_1) - /sizeof(asn_DEF_MBS_AlmanacAssistance_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_MBS_AlmanacAssistance_r14_1, - 5, /* Elements count */ - &asn_SPC_MBS_AlmanacAssistance_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/MBS-AssistanceDataElement-r14.c b/asn.1/generated/MBS-AssistanceDataElement-r14.c deleted file mode 100644 index e456c08d..00000000 --- a/asn.1/generated/MBS-AssistanceDataElement-r14.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MBS-AssistanceDataElement-r14.h" - -asn_TYPE_member_t asn_MBR_MBS_AssistanceDataElement_r14_1[] = { - { ATF_POINTER, 2, offsetof(struct MBS_AssistanceDataElement_r14, mbs_AlmanacAssistance_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MBS_AlmanacAssistance_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mbs-AlmanacAssistance-r14" - }, - { ATF_POINTER, 1, offsetof(struct MBS_AssistanceDataElement_r14, mbs_AcquisitionAssistance_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MBS_AcquisitionAssistance_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mbs-AcquisitionAssistance-r14" - }, -}; -static const int asn_MAP_MBS_AssistanceDataElement_r14_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_MBS_AssistanceDataElement_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MBS_AssistanceDataElement_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mbs-AlmanacAssistance-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* mbs-AcquisitionAssistance-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_MBS_AssistanceDataElement_r14_specs_1 = { - sizeof(struct MBS_AssistanceDataElement_r14), - offsetof(struct MBS_AssistanceDataElement_r14, _asn_ctx), - asn_MAP_MBS_AssistanceDataElement_r14_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_MBS_AssistanceDataElement_r14_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_MBS_AssistanceDataElement_r14 = { - "MBS-AssistanceDataElement-r14", - "MBS-AssistanceDataElement-r14", - &asn_OP_SEQUENCE, - asn_DEF_MBS_AssistanceDataElement_r14_tags_1, - sizeof(asn_DEF_MBS_AssistanceDataElement_r14_tags_1) - /sizeof(asn_DEF_MBS_AssistanceDataElement_r14_tags_1[0]), /* 1 */ - asn_DEF_MBS_AssistanceDataElement_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_MBS_AssistanceDataElement_r14_tags_1) - /sizeof(asn_DEF_MBS_AssistanceDataElement_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_MBS_AssistanceDataElement_r14_1, - 2, /* Elements count */ - &asn_SPC_MBS_AssistanceDataElement_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/MBS-AssistanceDataElement-r14.h b/asn.1/generated/MBS-AssistanceDataElement-r14.h deleted file mode 100644 index b95b1f24..00000000 --- a/asn.1/generated/MBS-AssistanceDataElement-r14.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _MBS_AssistanceDataElement_r14_H_ -#define _MBS_AssistanceDataElement_r14_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct MBS_AlmanacAssistance_r14; -struct MBS_AcquisitionAssistance_r14; - -/* MBS-AssistanceDataElement-r14 */ -typedef struct MBS_AssistanceDataElement_r14 { - struct MBS_AlmanacAssistance_r14 *mbs_AlmanacAssistance_r14 /* OPTIONAL */; - struct MBS_AcquisitionAssistance_r14 *mbs_AcquisitionAssistance_r14 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} MBS_AssistanceDataElement_r14_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_MBS_AssistanceDataElement_r14; -extern asn_SEQUENCE_specifics_t asn_SPC_MBS_AssistanceDataElement_r14_specs_1; -extern asn_TYPE_member_t asn_MBR_MBS_AssistanceDataElement_r14_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "MBS-AlmanacAssistance-r14.h" -#include "MBS-AcquisitionAssistance-r14.h" - -#endif /* _MBS_AssistanceDataElement_r14_H_ */ -#include diff --git a/asn.1/generated/MBS-AssistanceDataList-r14.c b/asn.1/generated/MBS-AssistanceDataList-r14.c deleted file mode 100644 index 940b692e..00000000 --- a/asn.1/generated/MBS-AssistanceDataList-r14.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MBS-AssistanceDataList-r14.h" - -asn_per_constraints_t asn_PER_type_MBS_AssistanceDataList_r14_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_MBS_AssistanceDataList_r14_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_MBS_AssistanceDataElement_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_MBS_AssistanceDataList_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_MBS_AssistanceDataList_r14_specs_1 = { - sizeof(struct MBS_AssistanceDataList_r14), - offsetof(struct MBS_AssistanceDataList_r14, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_MBS_AssistanceDataList_r14 = { - "MBS-AssistanceDataList-r14", - "MBS-AssistanceDataList-r14", - &asn_OP_SEQUENCE_OF, - asn_DEF_MBS_AssistanceDataList_r14_tags_1, - sizeof(asn_DEF_MBS_AssistanceDataList_r14_tags_1) - /sizeof(asn_DEF_MBS_AssistanceDataList_r14_tags_1[0]), /* 1 */ - asn_DEF_MBS_AssistanceDataList_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_MBS_AssistanceDataList_r14_tags_1) - /sizeof(asn_DEF_MBS_AssistanceDataList_r14_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_MBS_AssistanceDataList_r14_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_MBS_AssistanceDataList_r14_1, - 1, /* Single element */ - &asn_SPC_MBS_AssistanceDataList_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/MBS-AssistanceDataSupportList-r14.c b/asn.1/generated/MBS-AssistanceDataSupportList-r14.c deleted file mode 100644 index 79ba084f..00000000 --- a/asn.1/generated/MBS-AssistanceDataSupportList-r14.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MBS-AssistanceDataSupportList-r14.h" - -asn_TYPE_member_t asn_MBR_MBS_AssistanceDataSupportList_r14_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct MBS_AssistanceDataSupportList_r14, mbs_AcquisitionAssistanceDataSupport_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mbs-AcquisitionAssistanceDataSupport-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct MBS_AssistanceDataSupportList_r14, mbs_AlmanacAssistanceDataSupport_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mbs-AlmanacAssistanceDataSupport-r14" - }, -}; -static const ber_tlv_tag_t asn_DEF_MBS_AssistanceDataSupportList_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MBS_AssistanceDataSupportList_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mbs-AcquisitionAssistanceDataSupport-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* mbs-AlmanacAssistanceDataSupport-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_MBS_AssistanceDataSupportList_r14_specs_1 = { - sizeof(struct MBS_AssistanceDataSupportList_r14), - offsetof(struct MBS_AssistanceDataSupportList_r14, _asn_ctx), - asn_MAP_MBS_AssistanceDataSupportList_r14_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_MBS_AssistanceDataSupportList_r14 = { - "MBS-AssistanceDataSupportList-r14", - "MBS-AssistanceDataSupportList-r14", - &asn_OP_SEQUENCE, - asn_DEF_MBS_AssistanceDataSupportList_r14_tags_1, - sizeof(asn_DEF_MBS_AssistanceDataSupportList_r14_tags_1) - /sizeof(asn_DEF_MBS_AssistanceDataSupportList_r14_tags_1[0]), /* 1 */ - asn_DEF_MBS_AssistanceDataSupportList_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_MBS_AssistanceDataSupportList_r14_tags_1) - /sizeof(asn_DEF_MBS_AssistanceDataSupportList_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_MBS_AssistanceDataSupportList_r14_1, - 2, /* Elements count */ - &asn_SPC_MBS_AssistanceDataSupportList_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/MBS-BeaconMeasElement-r13.c b/asn.1/generated/MBS-BeaconMeasElement-r13.c deleted file mode 100644 index 619109bb..00000000 --- a/asn.1/generated/MBS-BeaconMeasElement-r13.c +++ /dev/null @@ -1,247 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MBS-BeaconMeasElement-r13.h" - -static int -memb_rssi_r14_constraint_6(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -130 && value <= -30)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_transmitterID_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_codePhase_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2097151)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_codePhaseRMSError_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_rssi_r14_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, -130, -30 } /* (-130..-30) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_transmitterID_r13_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_codePhase_r13_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, 0, 2097151 } /* (0..2097151) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_codePhaseRMSError_r13_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_ext1_6[] = { - { ATF_POINTER, 1, offsetof(struct MBS_BeaconMeasElement_r13__ext1, rssi_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rssi_r14_constr_7, memb_rssi_r14_constraint_6 }, - 0, 0, /* No default value */ - "rssi-r14" - }, -}; -static const int asn_MAP_ext1_oms_6[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* rssi-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = { - sizeof(struct MBS_BeaconMeasElement_r13__ext1), - offsetof(struct MBS_BeaconMeasElement_r13__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_6, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_6, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_6 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_6, - sizeof(asn_DEF_ext1_tags_6) - /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_6, /* Same as above */ - sizeof(asn_DEF_ext1_tags_6) - /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_6, - 1, /* Elements count */ - &asn_SPC_ext1_specs_6 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_MBS_BeaconMeasElement_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct MBS_BeaconMeasElement_r13, transmitterID_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_transmitterID_r13_constr_2, memb_transmitterID_r13_constraint_1 }, - 0, 0, /* No default value */ - "transmitterID-r13" - }, - { ATF_NOFLAGS, 0, offsetof(struct MBS_BeaconMeasElement_r13, codePhase_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_codePhase_r13_constr_3, memb_codePhase_r13_constraint_1 }, - 0, 0, /* No default value */ - "codePhase-r13" - }, - { ATF_NOFLAGS, 0, offsetof(struct MBS_BeaconMeasElement_r13, codePhaseRMSError_r13), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_codePhaseRMSError_r13_constr_4, memb_codePhaseRMSError_r13_constraint_1 }, - 0, 0, /* No default value */ - "codePhaseRMSError-r13" - }, - { ATF_POINTER, 1, offsetof(struct MBS_BeaconMeasElement_r13, ext1), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - 0, - &asn_DEF_ext1_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_MBS_BeaconMeasElement_r13_oms_1[] = { 3 }; -static const ber_tlv_tag_t asn_DEF_MBS_BeaconMeasElement_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MBS_BeaconMeasElement_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* transmitterID-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* codePhase-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* codePhaseRMSError-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_MBS_BeaconMeasElement_r13_specs_1 = { - sizeof(struct MBS_BeaconMeasElement_r13), - offsetof(struct MBS_BeaconMeasElement_r13, _asn_ctx), - asn_MAP_MBS_BeaconMeasElement_r13_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_MBS_BeaconMeasElement_r13_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_MBS_BeaconMeasElement_r13 = { - "MBS-BeaconMeasElement-r13", - "MBS-BeaconMeasElement-r13", - &asn_OP_SEQUENCE, - asn_DEF_MBS_BeaconMeasElement_r13_tags_1, - sizeof(asn_DEF_MBS_BeaconMeasElement_r13_tags_1) - /sizeof(asn_DEF_MBS_BeaconMeasElement_r13_tags_1[0]), /* 1 */ - asn_DEF_MBS_BeaconMeasElement_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_MBS_BeaconMeasElement_r13_tags_1) - /sizeof(asn_DEF_MBS_BeaconMeasElement_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_MBS_BeaconMeasElement_r13_1, - 4, /* Elements count */ - &asn_SPC_MBS_BeaconMeasElement_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/MBS-BeaconMeasList-r13.c b/asn.1/generated/MBS-BeaconMeasList-r13.c deleted file mode 100644 index b6d95a31..00000000 --- a/asn.1/generated/MBS-BeaconMeasList-r13.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MBS-BeaconMeasList-r13.h" - -asn_per_constraints_t asn_PER_type_MBS_BeaconMeasList_r13_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_MBS_BeaconMeasList_r13_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_MBS_BeaconMeasElement_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_MBS_BeaconMeasList_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_MBS_BeaconMeasList_r13_specs_1 = { - sizeof(struct MBS_BeaconMeasList_r13), - offsetof(struct MBS_BeaconMeasList_r13, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_MBS_BeaconMeasList_r13 = { - "MBS-BeaconMeasList-r13", - "MBS-BeaconMeasList-r13", - &asn_OP_SEQUENCE_OF, - asn_DEF_MBS_BeaconMeasList_r13_tags_1, - sizeof(asn_DEF_MBS_BeaconMeasList_r13_tags_1) - /sizeof(asn_DEF_MBS_BeaconMeasList_r13_tags_1[0]), /* 1 */ - asn_DEF_MBS_BeaconMeasList_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_MBS_BeaconMeasList_r13_tags_1) - /sizeof(asn_DEF_MBS_BeaconMeasList_r13_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_MBS_BeaconMeasList_r13_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_MBS_BeaconMeasList_r13_1, - 1, /* Single element */ - &asn_SPC_MBS_BeaconMeasList_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/MCC-MNC-Digit.c b/asn.1/generated/MCC-MNC-Digit.c deleted file mode 100644 index 72389f88..00000000 --- a/asn.1/generated/MCC-MNC-Digit.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MCC-MNC-Digit.h" - -int -MCC_MNC_Digit_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 9)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_MCC_MNC_Digit_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_MCC_MNC_Digit_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_MCC_MNC_Digit = { - "MCC-MNC-Digit", - "MCC-MNC-Digit", - &asn_OP_NativeInteger, - asn_DEF_MCC_MNC_Digit_tags_1, - sizeof(asn_DEF_MCC_MNC_Digit_tags_1) - /sizeof(asn_DEF_MCC_MNC_Digit_tags_1[0]), /* 1 */ - asn_DEF_MCC_MNC_Digit_tags_1, /* Same as above */ - sizeof(asn_DEF_MCC_MNC_Digit_tags_1) - /sizeof(asn_DEF_MCC_MNC_Digit_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_MCC_MNC_Digit_constr_1, MCC_MNC_Digit_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/MCC-MNC-Digit.h b/asn.1/generated/MCC-MNC-Digit.h deleted file mode 100644 index cf026d85..00000000 --- a/asn.1/generated/MCC-MNC-Digit.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _MCC_MNC_Digit_H_ -#define _MCC_MNC_Digit_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* MCC-MNC-Digit */ -typedef long MCC_MNC_Digit_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_MCC_MNC_Digit_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_MCC_MNC_Digit; -asn_struct_free_f MCC_MNC_Digit_free; -asn_struct_print_f MCC_MNC_Digit_print; -asn_constr_check_f MCC_MNC_Digit_constraint; -ber_type_decoder_f MCC_MNC_Digit_decode_ber; -der_type_encoder_f MCC_MNC_Digit_encode_der; -xer_type_decoder_f MCC_MNC_Digit_decode_xer; -xer_type_encoder_f MCC_MNC_Digit_encode_xer; -per_type_decoder_f MCC_MNC_Digit_decode_uper; -per_type_encoder_f MCC_MNC_Digit_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _MCC_MNC_Digit_H_ */ -#include diff --git a/asn.1/generated/MCC.c b/asn.1/generated/MCC.c deleted file mode 100644 index 71b767b2..00000000 --- a/asn.1/generated/MCC.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MCC.h" - -asn_per_constraints_t asn_PER_type_MCC_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_MCC_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_MCC_MNC_Digit, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_MCC_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_MCC_specs_1 = { - sizeof(struct MCC), - offsetof(struct MCC, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_MCC = { - "MCC", - "MCC", - &asn_OP_SEQUENCE_OF, - asn_DEF_MCC_tags_1, - sizeof(asn_DEF_MCC_tags_1) - /sizeof(asn_DEF_MCC_tags_1[0]), /* 1 */ - asn_DEF_MCC_tags_1, /* Same as above */ - sizeof(asn_DEF_MCC_tags_1) - /sizeof(asn_DEF_MCC_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_MCC_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_MCC_1, - 1, /* Single element */ - &asn_SPC_MCC_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/MNC.c b/asn.1/generated/MNC.c deleted file mode 100644 index d5e3c8ab..00000000 --- a/asn.1/generated/MNC.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MNC.h" - -asn_per_constraints_t asn_PER_type_MNC_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_MNC_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_MCC_MNC_Digit, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_MNC_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_MNC_specs_1 = { - sizeof(struct MNC), - offsetof(struct MNC, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_MNC = { - "MNC", - "MNC", - &asn_OP_SEQUENCE_OF, - asn_DEF_MNC_tags_1, - sizeof(asn_DEF_MNC_tags_1) - /sizeof(asn_DEF_MNC_tags_1[0]), /* 1 */ - asn_DEF_MNC_tags_1, /* Same as above */ - sizeof(asn_DEF_MNC_tags_1) - /sizeof(asn_DEF_MNC_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_MNC_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_MNC_1, - 1, /* Single element */ - &asn_SPC_MNC_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Makefile.am.libasncodec b/asn.1/generated/Makefile.am.libasncodec deleted file mode 100644 index d5f7d0b4..00000000 --- a/asn.1/generated/Makefile.am.libasncodec +++ /dev/null @@ -1,1725 +0,0 @@ -ASN_MODULE_SRCS= \ - SUPLINIT.c \ - Notification.c \ - NotificationType.c \ - EncodingType.c \ - FormatIndicator.c \ - SLPMode.c \ - MAC.c \ - KeyIdentity.c \ - SUPLSTART.c \ - SETCapabilities.c \ - PosTechnology.c \ - PrefMethod.c \ - PosProtocol.c \ - SUPLRESPONSE.c \ - SETAuthKey.c \ - KeyIdentity4.c \ - SUPLPOSINIT.c \ - RequestedAssistData.c \ - SUPL-NavigationModel.c \ - SatelliteInfo.c \ - SatelliteInfoElement.c \ - SUPLPOS.c \ - PosPayLoad.c \ - SUPLEND.c \ - SUPLAUTHREQ.c \ - SUPLAUTHRESP.c \ - Ver2-SUPLNOTIFY.c \ - Ver2-SUPLNOTIFYRESPONSE.c \ - NotificationResponse.c \ - Ver2-SUPLSETINIT.c \ - Ver2-SUPLTRIGGEREDSTART.c \ - TriggerType.c \ - TriggerParams.c \ - PeriodicParams.c \ - AreaEventParams.c \ - AreaEventType.c \ - RepeatedReportingParams.c \ - GeographicTargetAreaList.c \ - GeographicTargetArea.c \ - AreaIdList.c \ - AreaIdSet.c \ - AreaId.c \ - GSMAreaId.c \ - WCDMAAreaId.c \ - CDMAAreaId.c \ - HRPDAreaId.c \ - UMBAreaId.c \ - LTEAreaId.c \ - WLANAreaId.c \ - WimaxAreaId.c \ - AreaIdSetType.c \ - GeoAreaMappingList.c \ - GeoAreaIndex.c \ - Ver2-SUPLTRIGGEREDRESPONSE.c \ - ReportingMode.c \ - RepMode.c \ - BatchRepConditions.c \ - BatchRepType.c \ - Ver2-SUPLREPORT.c \ - SessionList.c \ - SessionInformation.c \ - ReportDataList.c \ - ReportData.c \ - SUPL-PositionData.c \ - GANSSsignalsInfo.c \ - GANSSSignalsDescription.c \ - ResultCode.c \ - TimeStamp.c \ - Ver2-SUPLTRIGGEREDSTOP.c \ - Ver2-SUPL-INIT-extension.c \ - NotificationMode.c \ - HistoricReporting.c \ - AllowedReportingType.c \ - ReportingCriteria.c \ - TimeWindow.c \ - ProtectionLevel.c \ - ProtLevel.c \ - BasicProtectionParams.c \ - Ver2-SUPL-START-extension.c \ - Ver2-SUPL-RESPONSE-extension.c \ - Ver2-SUPL-POS-INIT-extension.c \ - Ver2-SUPL-POS-extension.c \ - Ver2-SUPL-END-extension.c \ - Ver2-Notification-extension.c \ - Ver2-SETCapabilities-extension.c \ - ServiceCapabilities.c \ - ServicesSupported.c \ - EventTriggerCapabilities.c \ - GeoAreaShapesSupported.c \ - SessionCapabilities.c \ - SupportedBearers.c \ - Ver2-PosProtocol-extension.c \ - PosProtocolVersion3GPP.c \ - PosProtocolVersion3GPP2.c \ - Supported3GPP2PosProtocolVersion.c \ - Ver2-PosTechnology-extension.c \ - GANSSPositionMethods.c \ - GANSSPositionMethod.c \ - GANSSPositioningMethodTypes.c \ - Ver2-RequestedAssistData-extension.c \ - GanssRequestedCommonAssistanceDataList.c \ - GanssRequestedGenericAssistanceDataList.c \ - GanssReqGenericData.c \ - DGANSS-Sig-Id-Req.c \ - GanssNavigationModelData.c \ - SatellitesListRelatedDataList.c \ - SatellitesListRelatedData.c \ - GanssDataBits.c \ - ReqDataBitAssistanceList.c \ - GanssAdditionalDataChoices.c \ - ExtendedEphemeris.c \ - ExtendedEphCheck.c \ - GanssExtendedEphCheck.c \ - SUPL-GPSTime.c \ - GANSSextEphTime.c \ - Ver2-PosPayLoad-extension.c \ - LPP-Message.c \ - SequenceNumber.c \ - Acknowledgement.c \ - LPP-MessageBody.c \ - LPP-TransactionID.c \ - Initiator.c \ - TransactionNumber.c \ - RequestCapabilities.c \ - RequestCapabilities-r9-IEs.c \ - ProvideCapabilities.c \ - ProvideCapabilities-r9-IEs.c \ - RequestAssistanceData.c \ - RequestAssistanceData-r9-IEs.c \ - ProvideAssistanceData.c \ - ProvideAssistanceData-r9-IEs.c \ - RequestLocationInformation.c \ - RequestLocationInformation-r9-IEs.c \ - ProvideLocationInformation.c \ - ProvideLocationInformation-r9-IEs.c \ - Abort.c \ - Abort-r9-IEs.c \ - Error.c \ - Error-r9-IEs.c \ - AccessTypes.c \ - ARFCN-ValueEUTRA.c \ - ARFCN-ValueEUTRA-v9a0.c \ - ARFCN-ValueEUTRA-r14.c \ - ARFCN-ValueNR-r15.c \ - ARFCN-ValueUTRA.c \ - CarrierFreq-NB-r14.c \ - CarrierFreqOffsetNB-r14.c \ - CellGlobalIdEUTRA-AndUTRA.c \ - CellGlobalIdGERAN.c \ - ECGI.c \ - Ellipsoid-Point.c \ - Ellipsoid-PointWithUncertaintyCircle.c \ - EllipsoidPointWithUncertaintyEllipse.c \ - EllipsoidPointWithAltitude.c \ - EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.c \ - EllipsoidArc.c \ - EPDU-Sequence.c \ - EPDU.c \ - EPDU-Identifier.c \ - EPDU-ID.c \ - EPDU-Name.c \ - EPDU-Body.c \ - HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.c \ - HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.c \ - HorizontalVelocity.c \ - HorizontalWithVerticalVelocity.c \ - HorizontalVelocityWithUncertainty.c \ - HorizontalWithVerticalVelocityAndUncertainty.c \ - LocationCoordinateTypes.c \ - NCGI-r15.c \ - NR-PhysCellId-r16.c \ - PeriodicAssistanceDataControlParameters-r15.c \ - PeriodicSessionID-r15.c \ - UpdateCapabilities-r15.c \ - Polygon.c \ - PolygonPoints.c \ - PositioningModes.c \ - SegmentationInfo-r14.c \ - VelocityTypes.c \ - CommonIEsRequestCapabilities.c \ - CommonIEsProvideCapabilities.c \ - CommonIEsRequestAssistanceData.c \ - CommonIEsProvideAssistanceData.c \ - CommonIEsRequestLocationInformation.c \ - LocationInformationType.c \ - PeriodicalReportingCriteria.c \ - TriggeredReportingCriteria.c \ - ReportingDuration.c \ - AdditionalInformation.c \ - QoS.c \ - HorizontalAccuracy.c \ - VerticalAccuracy.c \ - HorizontalAccuracyExt-r15.c \ - VerticalAccuracyExt-r15.c \ - ResponseTime.c \ - ResponseTimeNB-r14.c \ - Environment.c \ - MessageSizeLimitNB-r14.c \ - CommonIEsProvideLocationInformation.c \ - LocationCoordinates.c \ - Velocity.c \ - LocationError.c \ - LocationFailureCause.c \ - EarlyFixReport-r12.c \ - LocationSource-r13.c \ - CommonIEsAbort.c \ - CommonIEsError.c \ - NR-AdditionalPath-r16.c \ - NR-DL-PRS-Config-r16.c \ - NR-DL-PRS-ResourceSet-r16.c \ - NR-DL-PRS-Resource-r16.c \ - MutingPattern-r16.c \ - DL-PRS-QCL-Info-r16.c \ - NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.c \ - NR-DL-PRS-ResourceID-r16.c \ - NR-DL-PRS-ResourceSetID-r16.c \ - TRP-ID-r16.c \ - NR-SSB-Config-r16.c \ - NR-SelectedDL-PRS-PerFreq-r16.c \ - NR-Selected-DL-PRS-IndexPerTRP-r16.c \ - DL-Selected-PRS-ResourceSetIndex-r16.c \ - DL-SelectedPRS-ResourceIndex-r16.c \ - NR-PositionCalculationAssistanceData-r16.c \ - NR-TRP-LocationInfo-r16.c \ - NR-TRP-LocationInfoPerFreqLayer-r16.c \ - TRP-LocationInfoElement-r16.c \ - DL-PRS-ResourceSets-TRP-Element-r16.c \ - DL-PRS-Resource-ARP-Element-r16.c \ - ReferencePoint-r16.c \ - RelativeLocation-r16.c \ - Delta-Latitude-r16.c \ - Delta-Longitude-r16.c \ - Delta-Height-r16.c \ - LocationUncertainty-r16.c \ - NR-DL-PRS-BeamInfoPerFreqLayer-r16.c \ - NR-DL-PRS-BeamInfo-r16.c \ - DL-PRS-BeamInfoSet-r16.c \ - DL-PRS-BeamInfoResourceSet-r16.c \ - DL-PRS-BeamInfoElement-r16.c \ - LCS-GCS-Translation-Parameter-r16.c \ - NR-RTD-Info-r16.c \ - ReferenceTRP-RTD-Info-r16.c \ - RTD-InfoList-r16.c \ - RTD-InfoListPerFreqLayer-r16.c \ - RTD-InfoElement-r16.c \ - NR-DL-PRS-AssistanceData-r16.c \ - NR-DL-PRS-AssistanceDataPerFreq-r16.c \ - NR-DL-PRS-AssistanceDataPerTRP-r16.c \ - NR-DL-PRS-PositioningFrequencyLayer-r16.c \ - DL-PRS-IdInfo-r16.c \ - NR-TimingMeasQuality-r16.c \ - NR-TimeStamp-r16.c \ - NR-DL-PRS-MeasCapability-r16.c \ - SupportedBandNR-r16.c \ - NR-UL-SRS-MeasCapability-r16.c \ - OTDOA-ProvideAssistanceData.c \ - OTDOA-ReferenceCellInfo.c \ - PRS-Info.c \ - TDD-Config-v1520.c \ - OTDOA-NeighbourCellInfoList.c \ - OTDOA-NeighbourFreqInfo.c \ - OTDOA-NeighbourCellInfoElement.c \ - Add-PRSconfigNeighbourElement-r14.c \ - OTDOA-ReferenceCellInfoNB-r14.c \ - PRS-Info-NB-r14.c \ - NPRS-Info-r14.c \ - OTDOA-NeighbourCellInfoListNB-r14.c \ - OTDOA-NeighbourCellInfoNB-r14.c \ - OTDOA-RequestAssistanceData.c \ - OTDOA-ProvideLocationInformation.c \ - OTDOA-SignalMeasurementInformation.c \ - NeighbourMeasurementList.c \ - NeighbourMeasurementElement.c \ - AdditionalPathList-r14.c \ - MotionTimeSource-r15.c \ - OTDOA-SignalMeasurementInformation-NB-r14.c \ - NeighbourMeasurementList-NB-r14.c \ - NeighbourMeasurementElement-NB-r14.c \ - OTDOA-MeasQuality.c \ - AdditionalPath-r14.c \ - OTDOA-RequestLocationInformation.c \ - OTDOA-ProvideCapabilities.c \ - SupportedBandEUTRA.c \ - SupportedBandEUTRA-v9a0.c \ - OTDOA-RequestCapabilities.c \ - OTDOA-Error.c \ - OTDOA-LocationServerErrorCauses.c \ - OTDOA-TargetDeviceErrorCauses.c \ - A-GNSS-ProvideAssistanceData.c \ - GNSS-CommonAssistData.c \ - GNSS-GenericAssistData.c \ - GNSS-GenericAssistDataElement.c \ - GNSS-PeriodicAssistData-r15.c \ - GNSS-ReferenceTime.c \ - GNSS-ReferenceTimeForOneCell.c \ - GNSS-SystemTime.c \ - GPS-TOW-Assist.c \ - GPS-TOW-AssistElement.c \ - NetworkTime.c \ - GNSS-ReferenceLocation.c \ - GNSS-IonosphericModel.c \ - KlobucharModelParameter.c \ - KlobucharModel2Parameter-r16.c \ - NeQuickModelParameter.c \ - GNSS-EarthOrientationParameters.c \ - GNSS-RTK-ReferenceStationInfo-r15.c \ - AntennaDescription-r15.c \ - AntennaReferencePointUnc-r15.c \ - PhysicalReferenceStationInfo-r15.c \ - EqualIntegerAmbiguityLevel-r16.c \ - ReferenceStationList-r16.c \ - GNSS-RTK-CommonObservationInfo-r15.c \ - GNSS-RTK-AuxiliaryStationData-r15.c \ - AuxiliaryStationList-r15.c \ - AuxiliaryStationElement-r15.c \ - Aux-ARP-Unc-r15.c \ - GNSS-SSR-CorrectionPoints-r16.c \ - GNSS-SSR-ListOfCorrectionPoints-r16.c \ - RelativeLocation.c \ - GNSS-SSR-ArrayOfCorrectionPoints-r16.c \ - GNSS-TimeModelList.c \ - GNSS-TimeModelElement.c \ - GNSS-DifferentialCorrections.c \ - DGNSS-SgnTypeList.c \ - DGNSS-SgnTypeElement.c \ - DGNSS-SatList.c \ - DGNSS-CorrectionsElement.c \ - GNSS-NavigationModel.c \ - GNSS-NavModelSatelliteList.c \ - GNSS-NavModelSatelliteElement.c \ - GNSS-ClockModel.c \ - GNSS-OrbitModel.c \ - StandardClockModelList.c \ - StandardClockModelElement.c \ - NAV-ClockModel.c \ - CNAV-ClockModel.c \ - GLONASS-ClockModel.c \ - SBAS-ClockModel.c \ - BDS-ClockModel-r12.c \ - BDS-ClockModel2-r16.c \ - NavIC-ClockModel-r16.c \ - NavModelKeplerianSet.c \ - NavModelNAV-KeplerianSet.c \ - NavModelCNAV-KeplerianSet.c \ - NavModel-GLONASS-ECEF.c \ - NavModel-SBAS-ECEF.c \ - NavModel-BDS-KeplerianSet-r12.c \ - NavModel-BDS-KeplerianSet2-r16.c \ - GNSS-RealTimeIntegrity.c \ - GNSS-BadSignalList.c \ - BadSignalElement.c \ - GNSS-DataBitAssistance.c \ - GNSS-DataBitsSatList.c \ - GNSS-DataBitsSatElement.c \ - GNSS-DataBitsSgnList.c \ - GNSS-DataBitsSgnElement.c \ - GNSS-AcquisitionAssistance.c \ - GNSS-AcquisitionAssistList.c \ - GNSS-AcquisitionAssistElement.c \ - GNSS-Almanac.c \ - GNSS-AlmanacList.c \ - GNSS-AlmanacElement.c \ - AlmanacKeplerianSet.c \ - AlmanacNAV-KeplerianSet.c \ - AlmanacReducedKeplerianSet.c \ - AlmanacMidiAlmanacSet.c \ - AlmanacGLONASS-AlmanacSet.c \ - AlmanacECEF-SBAS-AlmanacSet.c \ - AlmanacBDS-AlmanacSet-r12.c \ - AlmanacNavIC-AlmanacSet-r16.c \ - GNSS-UTC-Model.c \ - UTC-ModelSet1.c \ - UTC-ModelSet2.c \ - UTC-ModelSet3.c \ - UTC-ModelSet4.c \ - UTC-ModelSet5-r12.c \ - GNSS-AuxiliaryInformation.c \ - GNSS-ID-GPS.c \ - GNSS-ID-GPS-SatElement.c \ - GNSS-ID-GLONASS.c \ - GNSS-ID-GLONASS-SatElement.c \ - GNSS-ID-BDS-r16.c \ - GNSS-ID-BDS-SatElement-r16.c \ - BDS-DifferentialCorrections-r12.c \ - BDS-SgnTypeList-r12.c \ - BDS-SgnTypeElement-r12.c \ - DBDS-CorrectionList-r12.c \ - DBDS-CorrectionElement-r12.c \ - BDS-GridModelParameter-r12.c \ - GridIonList-r12.c \ - GridIonElement-r12.c \ - GNSS-RTK-Observations-r15.c \ - GNSS-ObservationList-r15.c \ - GNSS-RTK-SatelliteDataElement-r15.c \ - GNSS-RTK-SatelliteSignalDataList-r15.c \ - GNSS-RTK-SatelliteSignalDataElement-r15.c \ - GLO-RTK-BiasInformation-r15.c \ - GNSS-RTK-MAC-CorrectionDifferences-r15.c \ - RTK-CorrectionDifferencesList-r15.c \ - RTK-CorrectionDifferencesElement-r15.c \ - Geometric-Ionospheric-Corrections-Differences-r15.c \ - Geometric-Ionospheric-Corrections-Differences-Element-r15.c \ - GNSS-RTK-Residuals-r15.c \ - RTK-Residuals-List-r15.c \ - RTK-Residuals-Element-r15.c \ - GNSS-RTK-FKP-Gradients-r15.c \ - FKP-Gradients-List-r15.c \ - FKP-Gradients-Element-r15.c \ - GNSS-SSR-OrbitCorrections-r15.c \ - SSR-OrbitCorrectionList-r15.c \ - SSR-OrbitCorrectionSatelliteElement-r15.c \ - GNSS-SSR-ClockCorrections-r15.c \ - SSR-ClockCorrectionList-r15.c \ - SSR-ClockCorrectionSatelliteElement-r15.c \ - GNSS-SSR-CodeBias-r15.c \ - SSR-CodeBiasSatList-r15.c \ - SSR-CodeBiasSatElement-r15.c \ - SSR-CodeBiasSignalList-r15.c \ - SSR-CodeBiasSignalElement-r15.c \ - GNSS-SSR-URA-r16.c \ - SSR-URA-SatList-r16.c \ - SSR-URA-SatElement-r16.c \ - GNSS-SSR-PhaseBias-r16.c \ - SSR-PhaseBiasSatList-r16.c \ - SSR-PhaseBiasSatElement-r16.c \ - SSR-PhaseBiasSignalList-r16.c \ - SSR-PhaseBiasSignalElement-r16.c \ - GNSS-SSR-STEC-Correction-r16.c \ - STEC-SatList-r16.c \ - STEC-SatElement-r16.c \ - GNSS-SSR-GriddedCorrection-r16.c \ - GridList-r16.c \ - GridElement-r16.c \ - TropospericDelayCorrection-r16.c \ - STEC-ResidualSatList-r16.c \ - STEC-ResidualSatElement-r16.c \ - NavIC-DifferentialCorrections-r16.c \ - NavIC-CorrectionListAutoNav-r16.c \ - NavIC-CorrectionElementAutoNav-r16.c \ - NavIC-EDC-r16.c \ - NavIC-CDC-r16.c \ - NavIC-GridModelParameter-r16.c \ - RegionIgpList-r16.c \ - RegionIgpElement-r16.c \ - A-GNSS-RequestAssistanceData.c \ - GNSS-CommonAssistDataReq.c \ - GNSS-GenericAssistDataReq.c \ - GNSS-GenericAssistDataReqElement.c \ - GNSS-PeriodicAssistDataReq-r15.c \ - GNSS-ReferenceTimeReq.c \ - GNSS-ReferenceLocationReq.c \ - GNSS-IonosphericModelReq.c \ - GNSS-EarthOrientationParametersReq.c \ - GNSS-RTK-ReferenceStationInfoReq-r15.c \ - GNSS-RTK-AuxiliaryStationDataReq-r15.c \ - GNSS-SSR-CorrectionPointsReq-r16.c \ - GNSS-TimeModelListReq.c \ - GNSS-TimeModelElementReq.c \ - GNSS-DifferentialCorrectionsReq.c \ - GNSS-NavigationModelReq.c \ - StoredNavListInfo.c \ - SatListRelatedDataList.c \ - SatListRelatedDataElement.c \ - ReqNavListInfo.c \ - GNSS-RealTimeIntegrityReq.c \ - GNSS-DataBitAssistanceReq.c \ - GNSS-DataBitsReqSatList.c \ - GNSS-DataBitsReqSatElement.c \ - GNSS-AcquisitionAssistanceReq.c \ - GNSS-AlmanacReq.c \ - GNSS-UTC-ModelReq.c \ - GNSS-AuxiliaryInformationReq.c \ - BDS-DifferentialCorrectionsReq-r12.c \ - BDS-GridModelReq-r12.c \ - GNSS-RTK-ObservationsReq-r15.c \ - GLO-RTK-BiasInformationReq-r15.c \ - GNSS-RTK-MAC-CorrectionDifferencesReq-r15.c \ - AUX-ReferenceStationList-r15.c \ - AUX-ReferenceStationID-Element-r15.c \ - GNSS-RTK-ResidualsReq-r15.c \ - GNSS-RTK-FKP-GradientsReq-r15.c \ - GNSS-SSR-OrbitCorrectionsReq-r15.c \ - GNSS-SSR-ClockCorrectionsReq-r15.c \ - GNSS-SSR-CodeBiasReq-r15.c \ - GNSS-SSR-URA-Req-r16.c \ - GNSS-SSR-PhaseBiasReq-r16.c \ - GNSS-SSR-STEC-CorrectionReq-r16.c \ - GNSS-SSR-GriddedCorrectionReq-r16.c \ - NavIC-DifferentialCorrectionsReq-r16.c \ - NavIC-GridModelReq-r16.c \ - A-GNSS-ProvideLocationInformation.c \ - GNSS-SignalMeasurementInformation.c \ - MeasurementReferenceTime.c \ - GNSS-MeasurementList.c \ - GNSS-MeasurementForOneGNSS.c \ - GNSS-SgnMeasList.c \ - GNSS-SgnMeasElement.c \ - GNSS-SatMeasList.c \ - GNSS-SatMeasElement.c \ - GNSS-LocationInformation.c \ - A-GNSS-RequestLocationInformation.c \ - GNSS-PositioningInstructions.c \ - A-GNSS-ProvideCapabilities.c \ - GNSS-SupportList.c \ - GNSS-SupportElement.c \ - AssistanceDataSupportList.c \ - GNSS-CommonAssistanceDataSupport.c \ - GNSS-ReferenceTimeSupport.c \ - GNSS-ReferenceLocationSupport.c \ - GNSS-IonosphericModelSupport.c \ - GNSS-EarthOrientationParametersSupport.c \ - GNSS-RTK-ReferenceStationInfoSupport-r15.c \ - GNSS-RTK-AuxiliaryStationDataSupport-r15.c \ - GNSS-GenericAssistanceDataSupport.c \ - GNSS-GenericAssistDataSupportElement.c \ - GNSS-TimeModelListSupport.c \ - GNSS-DifferentialCorrectionsSupport.c \ - GNSS-NavigationModelSupport.c \ - GNSS-RealTimeIntegritySupport.c \ - GNSS-DataBitAssistanceSupport.c \ - GNSS-AcquisitionAssistanceSupport.c \ - GNSS-AlmanacSupport.c \ - GNSS-UTC-ModelSupport.c \ - GNSS-AuxiliaryInformationSupport.c \ - BDS-DifferentialCorrectionsSupport-r12.c \ - BDS-GridModelSupport-r12.c \ - GNSS-RTK-ObservationsSupport-r15.c \ - GLO-RTK-BiasInformationSupport-r15.c \ - GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.c \ - GNSS-RTK-ResidualsSupport-r15.c \ - GNSS-RTK-FKP-GradientsSupport-r15.c \ - GNSS-SSR-OrbitCorrectionsSupport-r15.c \ - GNSS-SSR-ClockCorrectionsSupport-r15.c \ - GNSS-SSR-CodeBiasSupport-r15.c \ - GNSS-SSR-URA-Support-r16.c \ - GNSS-SSR-PhaseBiasSupport-r16.c \ - GNSS-SSR-STEC-CorrectionSupport-r16.c \ - GNSS-SSR-GriddedCorrectionSupport-r16.c \ - NavIC-DifferentialCorrectionsSupport-r16.c \ - NavIC-GridModelSupport-r16.c \ - A-GNSS-RequestCapabilities.c \ - A-GNSS-Error.c \ - GNSS-LocationServerErrorCauses.c \ - GNSS-TargetDeviceErrorCauses.c \ - GNSS-FrequencyID-r15.c \ - GNSS-ID.c \ - GNSS-ID-Bitmap.c \ - GNSS-Link-CombinationsList-r15.c \ - GNSS-Link-Combinations-r15.c \ - GNSS-NavListInfo-r15.c \ - SatListElement-r15.c \ - GNSS-NetworkID-r15.c \ - GNSS-PeriodicControlParam-r15.c \ - GNSS-ReferenceStationID-r15.c \ - GNSS-SignalID.c \ - GNSS-SignalIDs.c \ - GNSS-SubNetworkID-r15.c \ - SBAS-ID.c \ - SBAS-IDs.c \ - SV-ID.c \ - ECID-ProvideLocationInformation.c \ - ECID-SignalMeasurementInformation.c \ - MeasuredResultsList.c \ - MeasuredResultsElement.c \ - ECID-RequestLocationInformation.c \ - ECID-ProvideCapabilities.c \ - ECID-RequestCapabilities.c \ - ECID-Error.c \ - ECID-LocationServerErrorCauses.c \ - ECID-TargetDeviceErrorCauses.c \ - TBS-ProvideLocationInformation-r13.c \ - TBS-MeasurementInformation-r13.c \ - MBS-BeaconMeasList-r13.c \ - MBS-BeaconMeasElement-r13.c \ - TBS-RequestLocationInformation-r13.c \ - TBS-ProvideCapabilities-r13.c \ - MBS-AssistanceDataSupportList-r14.c \ - TBS-RequestCapabilities-r13.c \ - TBS-Error-r13.c \ - TBS-LocationServerErrorCauses-r13.c \ - TBS-TargetDeviceErrorCauses-r13.c \ - TBS-ProvideAssistanceData-r14.c \ - TBS-AssistanceDataList-r14.c \ - MBS-AssistanceDataList-r14.c \ - MBS-AssistanceDataElement-r14.c \ - MBS-AlmanacAssistance-r14.c \ - MBS-AcquisitionAssistance-r14.c \ - TBS-RequestAssistanceData-r14.c \ - Sensor-ProvideLocationInformation-r13.c \ - Sensor-MeasurementInformation-r13.c \ - Sensor-MotionInformation-r15.c \ - DisplacementInfoList-r15.c \ - DisplacementInfoListElement-r15.c \ - DisplacementTimeStamp-r15.c \ - DeltaTime-r15.c \ - SFN-r15.c \ - Displacement-r15.c \ - UTC-Time-r15.c \ - Sensor-RequestLocationInformation-r13.c \ - Sensor-ProvideCapabilities-r13.c \ - Sensor-AssistanceDataSupportList-r14.c \ - Sensor-RequestCapabilities-r13.c \ - Sensor-Error-r13.c \ - Sensor-LocationServerErrorCauses-r13.c \ - Sensor-TargetDeviceErrorCauses-r13.c \ - Sensor-ProvideAssistanceData-r14.c \ - Sensor-AssistanceDataList-r14.c \ - PressureValidityArea-v1520.c \ - PressureValidityPeriod-v1520.c \ - Sensor-RequestAssistanceData-r14.c \ - WLAN-ProvideLocationInformation-r13.c \ - WLAN-MeasurementInformation-r13.c \ - WLAN-MeasurementList-r13.c \ - WLAN-MeasurementElement-r13.c \ - WLAN-AP-Identifier-r13.c \ - WLAN-RTT-r13.c \ - WLAN-RequestLocationInformation-r13.c \ - WLAN-ProvideCapabilities-r13.c \ - WLAN-RequestCapabilities-r13.c \ - WLAN-Error-r13.c \ - WLAN-LocationServerErrorCauses-r13.c \ - WLAN-TargetDeviceErrorCauses-r13.c \ - WLAN-ProvideAssistanceData-r14.c \ - WLAN-DataSet-r14.c \ - SupportedChannels-11a-r14.c \ - SupportedChannels-11bg-r14.c \ - WLAN-AP-Data-r14.c \ - WLAN-AP-Location-r14.c \ - LocationDataLCI-r14.c \ - WLAN-RequestAssistanceData-r14.c \ - BT-ProvideLocationInformation-r13.c \ - BT-MeasurementInformation-r13.c \ - BT-MeasurementList-r13.c \ - BT-MeasurementElement-r13.c \ - BT-RequestLocationInformation-r13.c \ - BT-ProvideCapabilities-r13.c \ - BT-RequestCapabilities-r13.c \ - BT-Error-r13.c \ - BT-LocationServerErrorCauses-r13.c \ - BT-TargetDeviceErrorCauses-r13.c \ - NR-UL-ProvideCapabilities-r16.c \ - NR-UL-RequestCapabilities-r16.c \ - NR-ECID-ProvideLocationInformation-r16.c \ - NR-ECID-SignalMeasurementInformation-r16.c \ - NR-MeasuredResultsList-r16.c \ - NR-MeasuredResultsElement-r16.c \ - MeasQuantityResults-r16.c \ - ResultsPerSSB-IndexList-r16.c \ - ResultsPerSSB-Index-r16.c \ - ResultsPerCSI-RS-IndexList-r16.c \ - ResultsPerCSI-RS-Index-r16.c \ - NR-ECID-RequestLocationInformation-r16.c \ - NR-ECID-ProvideCapabilities-r16.c \ - NR-ECID-RequestCapabilities-r16.c \ - NR-ECID-Error-r16.c \ - NR-ECID-LocationServerErrorCauses-r16.c \ - NR-ECID-TargetDeviceErrorCauses-r16.c \ - NR-DL-TDOA-ProvideAssistanceData-r16.c \ - NR-DL-TDOA-RequestAssistanceData-r16.c \ - NR-DL-TDOA-ProvideLocationInformation-r16.c \ - NR-DL-TDOA-SignalMeasurementInformation-r16.c \ - NR-DL-TDOA-MeasList-r16.c \ - NR-DL-TDOA-MeasElement-r16.c \ - NR-DL-TDOA-AdditionalMeasurements-r16.c \ - NR-AdditionalPathList-r16.c \ - NR-DL-TDOA-AdditionalMeasurementElement-r16.c \ - NR-DL-TDOA-LocationInformation-r16.c \ - NR-DL-TDOA-RequestLocationInformation-r16.c \ - NR-DL-TDOA-ReportConfig-r16.c \ - NR-DL-TDOA-ProvideCapabilities-r16.c \ - NR-DL-TDOA-RequestCapabilities-r16.c \ - NR-DL-TDOA-Error-r16.c \ - NR-DL-TDOA-LocationServerErrorCauses-r16.c \ - NR-DL-TDOA-TargetDeviceErrorCauses-r16.c \ - NR-DL-AoD-ProvideAssistanceData-r16.c \ - NR-DL-AoD-RequestAssistanceData-r16.c \ - NR-DL-AoD-ProvideLocationInformation-r16.c \ - NR-DL-AoD-SignalMeasurementInformation-r16.c \ - NR-DL-AoD-MeasList-r16.c \ - NR-DL-AoD-MeasElement-r16.c \ - NR-DL-AoD-AdditionalMeasurements-r16.c \ - NR-DL-AoD-AdditionalMeasurementElement-r16.c \ - NR-DL-AoD-LocationInformation-r16.c \ - NR-DL-AoD-RequestLocationInformation-r16.c \ - NR-DL-AoD-ReportConfig-r16.c \ - NR-DL-AoD-ProvideCapabilities-r16.c \ - NR-DL-AoD-RequestCapabilities-r16.c \ - NR-DL-AoD-Error-r16.c \ - NR-DL-AoD-LocationServerErrorCauses-r16.c \ - NR-DL-AoD-TargetDeviceErrorCauses-r16.c \ - NR-Multi-RTT-ProvideAssistanceData-r16.c \ - NR-Multi-RTT-RequestAssistanceData-r16.c \ - NR-Multi-RTT-ProvideLocationInformation-r16.c \ - NR-Multi-RTT-SignalMeasurementInformation-r16.c \ - NR-Multi-RTT-MeasList-r16.c \ - NR-Multi-RTT-MeasElement-r16.c \ - NR-Multi-RTT-AdditionalMeasurements-r16.c \ - NR-Multi-RTT-AdditionalMeasurementElement-r16.c \ - NR-Multi-RTT-RequestLocationInformation-r16.c \ - NR-Multi-RTT-ReportConfig-r16.c \ - NR-Multi-RTT-ProvideCapabilities-r16.c \ - NR-Multi-RTT-RequestCapabilities-r16.c \ - NR-Multi-RTT-Error-r16.c \ - NR-Multi-RTT-LocationServerErrorCauses-r16.c \ - NR-Multi-RTT-TargetDeviceErrorCauses-r16.c \ - Version.c \ - SessionID.c \ - SetSessionID.c \ - SETId.c \ - SlpSessionID.c \ - IPAddress.c \ - SLPAddress.c \ - FQDN.c \ - Ver.c \ - LocationId.c \ - Status.c \ - CellInfo.c \ - Position.c \ - PositionEstimate.c \ - AltitudeInfo.c \ - CdmaCellInformation.c \ - GsmCellInformation.c \ - WcdmaCellInformation.c \ - TimingAdvance.c \ - TAResolution.c \ - ChipRate.c \ - FrequencyInfo.c \ - FrequencyInfoFDD.c \ - FrequencyInfoTDD.c \ - UARFCN.c \ - NMR.c \ - NMRelement.c \ - ULP-MeasuredResultsList.c \ - MeasuredResults.c \ - CellMeasuredResultsList.c \ - UTRA-CarrierRSSI.c \ - CellMeasuredResults.c \ - CellParametersID.c \ - TGSN.c \ - PrimaryCCPCH-RSCP.c \ - TimeslotISCP.c \ - TimeslotISCP-List.c \ - PrimaryCPICH-Info.c \ - CPICH-Ec-N0.c \ - CPICH-RSCP.c \ - Pathloss.c \ - StatusCode.c \ - QoP.c \ - ULP-Velocity.c \ - Horvel.c \ - Horandvervel.c \ - Horveluncert.c \ - Horandveruncert.c \ - PosMethod.c \ - MultipleLocationIds.c \ - LocationIdData.c \ - RelativeTime.c \ - SupportedNetworkInformation.c \ - SupportedWLANInfo.c \ - SupportedWLANApsList.c \ - SupportedWLANApsChannel11a.c \ - SupportedWLANApsChannel11bg.c \ - SupportedWLANApData.c \ - SupportedWCDMAInfo.c \ - Ver2-CellInfo-extension.c \ - HrpdCellInformation.c \ - UmbCellInformation.c \ - LteCellInformation.c \ - MeasResultListEUTRA.c \ - MeasResultEUTRA.c \ - PhysCellId.c \ - TrackingAreaCode.c \ - CellGlobalIdEUTRA.c \ - PLMN-Identity.c \ - CellIdentity.c \ - MCC.c \ - MNC.c \ - MCC-MNC-Digit.c \ - RSRP-Range.c \ - RSRQ-Range.c \ - WlanAPInformation.c \ - RTD.c \ - RTDUnits.c \ - ReportedLocation.c \ - LocationEncodingDescriptor.c \ - LocationData.c \ - WimaxBSInformation.c \ - WimaxBsID.c \ - WimaxRTD.c \ - WimaxNMRList.c \ - WimaxNMR.c \ - UTRAN-GPSReferenceTimeAssistance.c \ - UTRAN-GPSReferenceTime.c \ - UTRANGPSDriftRate.c \ - UTRAN-GPSReferenceTimeResult.c \ - UTRAN-GANSSReferenceTimeAssistance.c \ - UTRAN-GANSSReferenceTime.c \ - UTRANGANSSDriftRate.c \ - UTRAN-GANSSReferenceTimeResult.c \ - SET-GANSSReferenceTime.c \ - GNSSPosTechnology.c \ - GANSSSignals.c \ - SPCSETKey.c \ - SPCTID.c \ - SPCSETKeylifetime.c \ - CauseCode.c \ - ThirdParty.c \ - ThirdPartyID.c \ - ApplicationID.c \ - ReportingCap.c \ - RepMode-cap.c \ - BatchRepCap.c \ - Coordinate.c \ - CircularArea.c \ - EllipticalArea.c \ - PolygonArea.c \ - PolygonDescription.c \ - ULP-PDU.c \ - UlpMessage.c - -ASN_MODULE_HDRS= \ - SUPLINIT.h \ - Notification.h \ - NotificationType.h \ - EncodingType.h \ - FormatIndicator.h \ - SLPMode.h \ - MAC.h \ - KeyIdentity.h \ - SUPLSTART.h \ - SETCapabilities.h \ - PosTechnology.h \ - PrefMethod.h \ - PosProtocol.h \ - SUPLRESPONSE.h \ - SETAuthKey.h \ - KeyIdentity4.h \ - SUPLPOSINIT.h \ - RequestedAssistData.h \ - SUPL-NavigationModel.h \ - SatelliteInfo.h \ - SatelliteInfoElement.h \ - SUPLPOS.h \ - PosPayLoad.h \ - SUPLEND.h \ - SUPLAUTHREQ.h \ - SUPLAUTHRESP.h \ - Ver2-SUPLNOTIFY.h \ - Ver2-SUPLNOTIFYRESPONSE.h \ - NotificationResponse.h \ - Ver2-SUPLSETINIT.h \ - Ver2-SUPLTRIGGEREDSTART.h \ - TriggerType.h \ - TriggerParams.h \ - PeriodicParams.h \ - AreaEventParams.h \ - AreaEventType.h \ - RepeatedReportingParams.h \ - GeographicTargetAreaList.h \ - GeographicTargetArea.h \ - AreaIdList.h \ - AreaIdSet.h \ - AreaId.h \ - GSMAreaId.h \ - WCDMAAreaId.h \ - CDMAAreaId.h \ - HRPDAreaId.h \ - UMBAreaId.h \ - LTEAreaId.h \ - WLANAreaId.h \ - WimaxAreaId.h \ - AreaIdSetType.h \ - GeoAreaMappingList.h \ - GeoAreaIndex.h \ - Ver2-SUPLTRIGGEREDRESPONSE.h \ - ReportingMode.h \ - RepMode.h \ - BatchRepConditions.h \ - BatchRepType.h \ - Ver2-SUPLREPORT.h \ - SessionList.h \ - SessionInformation.h \ - ReportDataList.h \ - ReportData.h \ - SUPL-PositionData.h \ - GANSSsignalsInfo.h \ - GANSSSignalsDescription.h \ - ResultCode.h \ - TimeStamp.h \ - Ver2-SUPLTRIGGEREDSTOP.h \ - Ver2-SUPL-INIT-extension.h \ - NotificationMode.h \ - HistoricReporting.h \ - AllowedReportingType.h \ - ReportingCriteria.h \ - TimeWindow.h \ - ProtectionLevel.h \ - ProtLevel.h \ - BasicProtectionParams.h \ - Ver2-SUPL-START-extension.h \ - Ver2-SUPL-RESPONSE-extension.h \ - Ver2-SUPL-POS-INIT-extension.h \ - Ver2-SUPL-POS-extension.h \ - Ver2-SUPL-END-extension.h \ - Ver2-Notification-extension.h \ - Ver2-SETCapabilities-extension.h \ - ServiceCapabilities.h \ - ServicesSupported.h \ - EventTriggerCapabilities.h \ - GeoAreaShapesSupported.h \ - SessionCapabilities.h \ - SupportedBearers.h \ - Ver2-PosProtocol-extension.h \ - PosProtocolVersion3GPP.h \ - PosProtocolVersion3GPP2.h \ - Supported3GPP2PosProtocolVersion.h \ - Ver2-PosTechnology-extension.h \ - GANSSPositionMethods.h \ - GANSSPositionMethod.h \ - GANSSPositioningMethodTypes.h \ - Ver2-RequestedAssistData-extension.h \ - GanssRequestedCommonAssistanceDataList.h \ - GanssRequestedGenericAssistanceDataList.h \ - GanssReqGenericData.h \ - DGANSS-Sig-Id-Req.h \ - GanssNavigationModelData.h \ - SatellitesListRelatedDataList.h \ - SatellitesListRelatedData.h \ - GanssDataBits.h \ - ReqDataBitAssistanceList.h \ - GanssAdditionalDataChoices.h \ - ExtendedEphemeris.h \ - ExtendedEphCheck.h \ - GanssExtendedEphCheck.h \ - SUPL-GPSTime.h \ - GANSSextEphTime.h \ - Ver2-PosPayLoad-extension.h \ - LPP-Message.h \ - SequenceNumber.h \ - Acknowledgement.h \ - LPP-MessageBody.h \ - LPP-TransactionID.h \ - Initiator.h \ - TransactionNumber.h \ - RequestCapabilities.h \ - RequestCapabilities-r9-IEs.h \ - ProvideCapabilities.h \ - ProvideCapabilities-r9-IEs.h \ - RequestAssistanceData.h \ - RequestAssistanceData-r9-IEs.h \ - ProvideAssistanceData.h \ - ProvideAssistanceData-r9-IEs.h \ - RequestLocationInformation.h \ - RequestLocationInformation-r9-IEs.h \ - ProvideLocationInformation.h \ - ProvideLocationInformation-r9-IEs.h \ - Abort.h \ - Abort-r9-IEs.h \ - Error.h \ - Error-r9-IEs.h \ - AccessTypes.h \ - ARFCN-ValueEUTRA.h \ - ARFCN-ValueEUTRA-v9a0.h \ - ARFCN-ValueEUTRA-r14.h \ - ARFCN-ValueNR-r15.h \ - ARFCN-ValueUTRA.h \ - CarrierFreq-NB-r14.h \ - CarrierFreqOffsetNB-r14.h \ - CellGlobalIdEUTRA-AndUTRA.h \ - CellGlobalIdGERAN.h \ - ECGI.h \ - Ellipsoid-Point.h \ - Ellipsoid-PointWithUncertaintyCircle.h \ - EllipsoidPointWithUncertaintyEllipse.h \ - EllipsoidPointWithAltitude.h \ - EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.h \ - EllipsoidArc.h \ - EPDU-Sequence.h \ - EPDU.h \ - EPDU-Identifier.h \ - EPDU-ID.h \ - EPDU-Name.h \ - EPDU-Body.h \ - HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.h \ - HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.h \ - HorizontalVelocity.h \ - HorizontalWithVerticalVelocity.h \ - HorizontalVelocityWithUncertainty.h \ - HorizontalWithVerticalVelocityAndUncertainty.h \ - LocationCoordinateTypes.h \ - NCGI-r15.h \ - NR-PhysCellId-r16.h \ - PeriodicAssistanceDataControlParameters-r15.h \ - PeriodicSessionID-r15.h \ - UpdateCapabilities-r15.h \ - Polygon.h \ - PolygonPoints.h \ - PositioningModes.h \ - SegmentationInfo-r14.h \ - VelocityTypes.h \ - CommonIEsRequestCapabilities.h \ - CommonIEsProvideCapabilities.h \ - CommonIEsRequestAssistanceData.h \ - CommonIEsProvideAssistanceData.h \ - CommonIEsRequestLocationInformation.h \ - LocationInformationType.h \ - PeriodicalReportingCriteria.h \ - TriggeredReportingCriteria.h \ - ReportingDuration.h \ - AdditionalInformation.h \ - QoS.h \ - HorizontalAccuracy.h \ - VerticalAccuracy.h \ - HorizontalAccuracyExt-r15.h \ - VerticalAccuracyExt-r15.h \ - ResponseTime.h \ - ResponseTimeNB-r14.h \ - Environment.h \ - MessageSizeLimitNB-r14.h \ - CommonIEsProvideLocationInformation.h \ - LocationCoordinates.h \ - Velocity.h \ - LocationError.h \ - LocationFailureCause.h \ - EarlyFixReport-r12.h \ - LocationSource-r13.h \ - CommonIEsAbort.h \ - CommonIEsError.h \ - NR-AdditionalPath-r16.h \ - NR-DL-PRS-Config-r16.h \ - NR-DL-PRS-ResourceSet-r16.h \ - NR-DL-PRS-Resource-r16.h \ - MutingPattern-r16.h \ - DL-PRS-QCL-Info-r16.h \ - NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.h \ - NR-DL-PRS-ResourceID-r16.h \ - NR-DL-PRS-ResourceSetID-r16.h \ - TRP-ID-r16.h \ - NR-SSB-Config-r16.h \ - NR-SelectedDL-PRS-PerFreq-r16.h \ - NR-Selected-DL-PRS-IndexPerTRP-r16.h \ - DL-Selected-PRS-ResourceSetIndex-r16.h \ - DL-SelectedPRS-ResourceIndex-r16.h \ - NR-PositionCalculationAssistanceData-r16.h \ - NR-TRP-LocationInfo-r16.h \ - NR-TRP-LocationInfoPerFreqLayer-r16.h \ - TRP-LocationInfoElement-r16.h \ - DL-PRS-ResourceSets-TRP-Element-r16.h \ - DL-PRS-Resource-ARP-Element-r16.h \ - ReferencePoint-r16.h \ - RelativeLocation-r16.h \ - Delta-Latitude-r16.h \ - Delta-Longitude-r16.h \ - Delta-Height-r16.h \ - LocationUncertainty-r16.h \ - NR-DL-PRS-BeamInfoPerFreqLayer-r16.h \ - NR-DL-PRS-BeamInfo-r16.h \ - DL-PRS-BeamInfoSet-r16.h \ - DL-PRS-BeamInfoResourceSet-r16.h \ - DL-PRS-BeamInfoElement-r16.h \ - LCS-GCS-Translation-Parameter-r16.h \ - NR-RTD-Info-r16.h \ - ReferenceTRP-RTD-Info-r16.h \ - RTD-InfoList-r16.h \ - RTD-InfoListPerFreqLayer-r16.h \ - RTD-InfoElement-r16.h \ - NR-DL-PRS-AssistanceData-r16.h \ - NR-DL-PRS-AssistanceDataPerFreq-r16.h \ - NR-DL-PRS-AssistanceDataPerTRP-r16.h \ - NR-DL-PRS-PositioningFrequencyLayer-r16.h \ - DL-PRS-IdInfo-r16.h \ - NR-TimingMeasQuality-r16.h \ - NR-TimeStamp-r16.h \ - NR-DL-PRS-MeasCapability-r16.h \ - SupportedBandNR-r16.h \ - NR-UL-SRS-MeasCapability-r16.h \ - OTDOA-ProvideAssistanceData.h \ - OTDOA-ReferenceCellInfo.h \ - PRS-Info.h \ - TDD-Config-v1520.h \ - OTDOA-NeighbourCellInfoList.h \ - OTDOA-NeighbourFreqInfo.h \ - OTDOA-NeighbourCellInfoElement.h \ - Add-PRSconfigNeighbourElement-r14.h \ - OTDOA-ReferenceCellInfoNB-r14.h \ - PRS-Info-NB-r14.h \ - NPRS-Info-r14.h \ - OTDOA-NeighbourCellInfoListNB-r14.h \ - OTDOA-NeighbourCellInfoNB-r14.h \ - OTDOA-RequestAssistanceData.h \ - OTDOA-ProvideLocationInformation.h \ - OTDOA-SignalMeasurementInformation.h \ - NeighbourMeasurementList.h \ - NeighbourMeasurementElement.h \ - AdditionalPathList-r14.h \ - MotionTimeSource-r15.h \ - OTDOA-SignalMeasurementInformation-NB-r14.h \ - NeighbourMeasurementList-NB-r14.h \ - NeighbourMeasurementElement-NB-r14.h \ - OTDOA-MeasQuality.h \ - AdditionalPath-r14.h \ - OTDOA-RequestLocationInformation.h \ - OTDOA-ProvideCapabilities.h \ - SupportedBandEUTRA.h \ - SupportedBandEUTRA-v9a0.h \ - OTDOA-RequestCapabilities.h \ - OTDOA-Error.h \ - OTDOA-LocationServerErrorCauses.h \ - OTDOA-TargetDeviceErrorCauses.h \ - A-GNSS-ProvideAssistanceData.h \ - GNSS-CommonAssistData.h \ - GNSS-GenericAssistData.h \ - GNSS-GenericAssistDataElement.h \ - GNSS-PeriodicAssistData-r15.h \ - GNSS-ReferenceTime.h \ - GNSS-ReferenceTimeForOneCell.h \ - GNSS-SystemTime.h \ - GPS-TOW-Assist.h \ - GPS-TOW-AssistElement.h \ - NetworkTime.h \ - GNSS-ReferenceLocation.h \ - GNSS-IonosphericModel.h \ - KlobucharModelParameter.h \ - KlobucharModel2Parameter-r16.h \ - NeQuickModelParameter.h \ - GNSS-EarthOrientationParameters.h \ - GNSS-RTK-ReferenceStationInfo-r15.h \ - AntennaDescription-r15.h \ - AntennaReferencePointUnc-r15.h \ - PhysicalReferenceStationInfo-r15.h \ - EqualIntegerAmbiguityLevel-r16.h \ - ReferenceStationList-r16.h \ - GNSS-RTK-CommonObservationInfo-r15.h \ - GNSS-RTK-AuxiliaryStationData-r15.h \ - AuxiliaryStationList-r15.h \ - AuxiliaryStationElement-r15.h \ - Aux-ARP-Unc-r15.h \ - GNSS-SSR-CorrectionPoints-r16.h \ - GNSS-SSR-ListOfCorrectionPoints-r16.h \ - RelativeLocation.h \ - GNSS-SSR-ArrayOfCorrectionPoints-r16.h \ - GNSS-TimeModelList.h \ - GNSS-TimeModelElement.h \ - GNSS-DifferentialCorrections.h \ - DGNSS-SgnTypeList.h \ - DGNSS-SgnTypeElement.h \ - DGNSS-SatList.h \ - DGNSS-CorrectionsElement.h \ - GNSS-NavigationModel.h \ - GNSS-NavModelSatelliteList.h \ - GNSS-NavModelSatelliteElement.h \ - GNSS-ClockModel.h \ - GNSS-OrbitModel.h \ - StandardClockModelList.h \ - StandardClockModelElement.h \ - NAV-ClockModel.h \ - CNAV-ClockModel.h \ - GLONASS-ClockModel.h \ - SBAS-ClockModel.h \ - BDS-ClockModel-r12.h \ - BDS-ClockModel2-r16.h \ - NavIC-ClockModel-r16.h \ - NavModelKeplerianSet.h \ - NavModelNAV-KeplerianSet.h \ - NavModelCNAV-KeplerianSet.h \ - NavModel-GLONASS-ECEF.h \ - NavModel-SBAS-ECEF.h \ - NavModel-BDS-KeplerianSet-r12.h \ - NavModel-BDS-KeplerianSet2-r16.h \ - GNSS-RealTimeIntegrity.h \ - GNSS-BadSignalList.h \ - BadSignalElement.h \ - GNSS-DataBitAssistance.h \ - GNSS-DataBitsSatList.h \ - GNSS-DataBitsSatElement.h \ - GNSS-DataBitsSgnList.h \ - GNSS-DataBitsSgnElement.h \ - GNSS-AcquisitionAssistance.h \ - GNSS-AcquisitionAssistList.h \ - GNSS-AcquisitionAssistElement.h \ - GNSS-Almanac.h \ - GNSS-AlmanacList.h \ - GNSS-AlmanacElement.h \ - AlmanacKeplerianSet.h \ - AlmanacNAV-KeplerianSet.h \ - AlmanacReducedKeplerianSet.h \ - AlmanacMidiAlmanacSet.h \ - AlmanacGLONASS-AlmanacSet.h \ - AlmanacECEF-SBAS-AlmanacSet.h \ - AlmanacBDS-AlmanacSet-r12.h \ - AlmanacNavIC-AlmanacSet-r16.h \ - GNSS-UTC-Model.h \ - UTC-ModelSet1.h \ - UTC-ModelSet2.h \ - UTC-ModelSet3.h \ - UTC-ModelSet4.h \ - UTC-ModelSet5-r12.h \ - GNSS-AuxiliaryInformation.h \ - GNSS-ID-GPS.h \ - GNSS-ID-GPS-SatElement.h \ - GNSS-ID-GLONASS.h \ - GNSS-ID-GLONASS-SatElement.h \ - GNSS-ID-BDS-r16.h \ - GNSS-ID-BDS-SatElement-r16.h \ - BDS-DifferentialCorrections-r12.h \ - BDS-SgnTypeList-r12.h \ - BDS-SgnTypeElement-r12.h \ - DBDS-CorrectionList-r12.h \ - DBDS-CorrectionElement-r12.h \ - BDS-GridModelParameter-r12.h \ - GridIonList-r12.h \ - GridIonElement-r12.h \ - GNSS-RTK-Observations-r15.h \ - GNSS-ObservationList-r15.h \ - GNSS-RTK-SatelliteDataElement-r15.h \ - GNSS-RTK-SatelliteSignalDataList-r15.h \ - GNSS-RTK-SatelliteSignalDataElement-r15.h \ - GLO-RTK-BiasInformation-r15.h \ - GNSS-RTK-MAC-CorrectionDifferences-r15.h \ - RTK-CorrectionDifferencesList-r15.h \ - RTK-CorrectionDifferencesElement-r15.h \ - Geometric-Ionospheric-Corrections-Differences-r15.h \ - Geometric-Ionospheric-Corrections-Differences-Element-r15.h \ - GNSS-RTK-Residuals-r15.h \ - RTK-Residuals-List-r15.h \ - RTK-Residuals-Element-r15.h \ - GNSS-RTK-FKP-Gradients-r15.h \ - FKP-Gradients-List-r15.h \ - FKP-Gradients-Element-r15.h \ - GNSS-SSR-OrbitCorrections-r15.h \ - SSR-OrbitCorrectionList-r15.h \ - SSR-OrbitCorrectionSatelliteElement-r15.h \ - GNSS-SSR-ClockCorrections-r15.h \ - SSR-ClockCorrectionList-r15.h \ - SSR-ClockCorrectionSatelliteElement-r15.h \ - GNSS-SSR-CodeBias-r15.h \ - SSR-CodeBiasSatList-r15.h \ - SSR-CodeBiasSatElement-r15.h \ - SSR-CodeBiasSignalList-r15.h \ - SSR-CodeBiasSignalElement-r15.h \ - GNSS-SSR-URA-r16.h \ - SSR-URA-SatList-r16.h \ - SSR-URA-SatElement-r16.h \ - GNSS-SSR-PhaseBias-r16.h \ - SSR-PhaseBiasSatList-r16.h \ - SSR-PhaseBiasSatElement-r16.h \ - SSR-PhaseBiasSignalList-r16.h \ - SSR-PhaseBiasSignalElement-r16.h \ - GNSS-SSR-STEC-Correction-r16.h \ - STEC-SatList-r16.h \ - STEC-SatElement-r16.h \ - GNSS-SSR-GriddedCorrection-r16.h \ - GridList-r16.h \ - GridElement-r16.h \ - TropospericDelayCorrection-r16.h \ - STEC-ResidualSatList-r16.h \ - STEC-ResidualSatElement-r16.h \ - NavIC-DifferentialCorrections-r16.h \ - NavIC-CorrectionListAutoNav-r16.h \ - NavIC-CorrectionElementAutoNav-r16.h \ - NavIC-EDC-r16.h \ - NavIC-CDC-r16.h \ - NavIC-GridModelParameter-r16.h \ - RegionIgpList-r16.h \ - RegionIgpElement-r16.h \ - A-GNSS-RequestAssistanceData.h \ - GNSS-CommonAssistDataReq.h \ - GNSS-GenericAssistDataReq.h \ - GNSS-GenericAssistDataReqElement.h \ - GNSS-PeriodicAssistDataReq-r15.h \ - GNSS-ReferenceTimeReq.h \ - GNSS-ReferenceLocationReq.h \ - GNSS-IonosphericModelReq.h \ - GNSS-EarthOrientationParametersReq.h \ - GNSS-RTK-ReferenceStationInfoReq-r15.h \ - GNSS-RTK-AuxiliaryStationDataReq-r15.h \ - GNSS-SSR-CorrectionPointsReq-r16.h \ - GNSS-TimeModelListReq.h \ - GNSS-TimeModelElementReq.h \ - GNSS-DifferentialCorrectionsReq.h \ - GNSS-NavigationModelReq.h \ - StoredNavListInfo.h \ - SatListRelatedDataList.h \ - SatListRelatedDataElement.h \ - ReqNavListInfo.h \ - GNSS-RealTimeIntegrityReq.h \ - GNSS-DataBitAssistanceReq.h \ - GNSS-DataBitsReqSatList.h \ - GNSS-DataBitsReqSatElement.h \ - GNSS-AcquisitionAssistanceReq.h \ - GNSS-AlmanacReq.h \ - GNSS-UTC-ModelReq.h \ - GNSS-AuxiliaryInformationReq.h \ - BDS-DifferentialCorrectionsReq-r12.h \ - BDS-GridModelReq-r12.h \ - GNSS-RTK-ObservationsReq-r15.h \ - GLO-RTK-BiasInformationReq-r15.h \ - GNSS-RTK-MAC-CorrectionDifferencesReq-r15.h \ - AUX-ReferenceStationList-r15.h \ - AUX-ReferenceStationID-Element-r15.h \ - GNSS-RTK-ResidualsReq-r15.h \ - GNSS-RTK-FKP-GradientsReq-r15.h \ - GNSS-SSR-OrbitCorrectionsReq-r15.h \ - GNSS-SSR-ClockCorrectionsReq-r15.h \ - GNSS-SSR-CodeBiasReq-r15.h \ - GNSS-SSR-URA-Req-r16.h \ - GNSS-SSR-PhaseBiasReq-r16.h \ - GNSS-SSR-STEC-CorrectionReq-r16.h \ - GNSS-SSR-GriddedCorrectionReq-r16.h \ - NavIC-DifferentialCorrectionsReq-r16.h \ - NavIC-GridModelReq-r16.h \ - A-GNSS-ProvideLocationInformation.h \ - GNSS-SignalMeasurementInformation.h \ - MeasurementReferenceTime.h \ - GNSS-MeasurementList.h \ - GNSS-MeasurementForOneGNSS.h \ - GNSS-SgnMeasList.h \ - GNSS-SgnMeasElement.h \ - GNSS-SatMeasList.h \ - GNSS-SatMeasElement.h \ - GNSS-LocationInformation.h \ - A-GNSS-RequestLocationInformation.h \ - GNSS-PositioningInstructions.h \ - A-GNSS-ProvideCapabilities.h \ - GNSS-SupportList.h \ - GNSS-SupportElement.h \ - AssistanceDataSupportList.h \ - GNSS-CommonAssistanceDataSupport.h \ - GNSS-ReferenceTimeSupport.h \ - GNSS-ReferenceLocationSupport.h \ - GNSS-IonosphericModelSupport.h \ - GNSS-EarthOrientationParametersSupport.h \ - GNSS-RTK-ReferenceStationInfoSupport-r15.h \ - GNSS-RTK-AuxiliaryStationDataSupport-r15.h \ - GNSS-GenericAssistanceDataSupport.h \ - GNSS-GenericAssistDataSupportElement.h \ - GNSS-TimeModelListSupport.h \ - GNSS-DifferentialCorrectionsSupport.h \ - GNSS-NavigationModelSupport.h \ - GNSS-RealTimeIntegritySupport.h \ - GNSS-DataBitAssistanceSupport.h \ - GNSS-AcquisitionAssistanceSupport.h \ - GNSS-AlmanacSupport.h \ - GNSS-UTC-ModelSupport.h \ - GNSS-AuxiliaryInformationSupport.h \ - BDS-DifferentialCorrectionsSupport-r12.h \ - BDS-GridModelSupport-r12.h \ - GNSS-RTK-ObservationsSupport-r15.h \ - GLO-RTK-BiasInformationSupport-r15.h \ - GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.h \ - GNSS-RTK-ResidualsSupport-r15.h \ - GNSS-RTK-FKP-GradientsSupport-r15.h \ - GNSS-SSR-OrbitCorrectionsSupport-r15.h \ - GNSS-SSR-ClockCorrectionsSupport-r15.h \ - GNSS-SSR-CodeBiasSupport-r15.h \ - GNSS-SSR-URA-Support-r16.h \ - GNSS-SSR-PhaseBiasSupport-r16.h \ - GNSS-SSR-STEC-CorrectionSupport-r16.h \ - GNSS-SSR-GriddedCorrectionSupport-r16.h \ - NavIC-DifferentialCorrectionsSupport-r16.h \ - NavIC-GridModelSupport-r16.h \ - A-GNSS-RequestCapabilities.h \ - A-GNSS-Error.h \ - GNSS-LocationServerErrorCauses.h \ - GNSS-TargetDeviceErrorCauses.h \ - GNSS-FrequencyID-r15.h \ - GNSS-ID.h \ - GNSS-ID-Bitmap.h \ - GNSS-Link-CombinationsList-r15.h \ - GNSS-Link-Combinations-r15.h \ - GNSS-NavListInfo-r15.h \ - SatListElement-r15.h \ - GNSS-NetworkID-r15.h \ - GNSS-PeriodicControlParam-r15.h \ - GNSS-ReferenceStationID-r15.h \ - GNSS-SignalID.h \ - GNSS-SignalIDs.h \ - GNSS-SubNetworkID-r15.h \ - SBAS-ID.h \ - SBAS-IDs.h \ - SV-ID.h \ - ECID-ProvideLocationInformation.h \ - ECID-SignalMeasurementInformation.h \ - MeasuredResultsList.h \ - MeasuredResultsElement.h \ - ECID-RequestLocationInformation.h \ - ECID-ProvideCapabilities.h \ - ECID-RequestCapabilities.h \ - ECID-Error.h \ - ECID-LocationServerErrorCauses.h \ - ECID-TargetDeviceErrorCauses.h \ - TBS-ProvideLocationInformation-r13.h \ - TBS-MeasurementInformation-r13.h \ - MBS-BeaconMeasList-r13.h \ - MBS-BeaconMeasElement-r13.h \ - TBS-RequestLocationInformation-r13.h \ - TBS-ProvideCapabilities-r13.h \ - MBS-AssistanceDataSupportList-r14.h \ - TBS-RequestCapabilities-r13.h \ - TBS-Error-r13.h \ - TBS-LocationServerErrorCauses-r13.h \ - TBS-TargetDeviceErrorCauses-r13.h \ - TBS-ProvideAssistanceData-r14.h \ - TBS-AssistanceDataList-r14.h \ - MBS-AssistanceDataList-r14.h \ - MBS-AssistanceDataElement-r14.h \ - MBS-AlmanacAssistance-r14.h \ - MBS-AcquisitionAssistance-r14.h \ - TBS-RequestAssistanceData-r14.h \ - Sensor-ProvideLocationInformation-r13.h \ - Sensor-MeasurementInformation-r13.h \ - Sensor-MotionInformation-r15.h \ - DisplacementInfoList-r15.h \ - DisplacementInfoListElement-r15.h \ - DisplacementTimeStamp-r15.h \ - DeltaTime-r15.h \ - SFN-r15.h \ - Displacement-r15.h \ - UTC-Time-r15.h \ - Sensor-RequestLocationInformation-r13.h \ - Sensor-ProvideCapabilities-r13.h \ - Sensor-AssistanceDataSupportList-r14.h \ - Sensor-RequestCapabilities-r13.h \ - Sensor-Error-r13.h \ - Sensor-LocationServerErrorCauses-r13.h \ - Sensor-TargetDeviceErrorCauses-r13.h \ - Sensor-ProvideAssistanceData-r14.h \ - Sensor-AssistanceDataList-r14.h \ - PressureValidityArea-v1520.h \ - PressureValidityPeriod-v1520.h \ - Sensor-RequestAssistanceData-r14.h \ - WLAN-ProvideLocationInformation-r13.h \ - WLAN-MeasurementInformation-r13.h \ - WLAN-MeasurementList-r13.h \ - WLAN-MeasurementElement-r13.h \ - WLAN-AP-Identifier-r13.h \ - WLAN-RTT-r13.h \ - WLAN-RequestLocationInformation-r13.h \ - WLAN-ProvideCapabilities-r13.h \ - WLAN-RequestCapabilities-r13.h \ - WLAN-Error-r13.h \ - WLAN-LocationServerErrorCauses-r13.h \ - WLAN-TargetDeviceErrorCauses-r13.h \ - WLAN-ProvideAssistanceData-r14.h \ - WLAN-DataSet-r14.h \ - SupportedChannels-11a-r14.h \ - SupportedChannels-11bg-r14.h \ - WLAN-AP-Data-r14.h \ - WLAN-AP-Location-r14.h \ - LocationDataLCI-r14.h \ - WLAN-RequestAssistanceData-r14.h \ - BT-ProvideLocationInformation-r13.h \ - BT-MeasurementInformation-r13.h \ - BT-MeasurementList-r13.h \ - BT-MeasurementElement-r13.h \ - BT-RequestLocationInformation-r13.h \ - BT-ProvideCapabilities-r13.h \ - BT-RequestCapabilities-r13.h \ - BT-Error-r13.h \ - BT-LocationServerErrorCauses-r13.h \ - BT-TargetDeviceErrorCauses-r13.h \ - NR-UL-ProvideCapabilities-r16.h \ - NR-UL-RequestCapabilities-r16.h \ - NR-ECID-ProvideLocationInformation-r16.h \ - NR-ECID-SignalMeasurementInformation-r16.h \ - NR-MeasuredResultsList-r16.h \ - NR-MeasuredResultsElement-r16.h \ - MeasQuantityResults-r16.h \ - ResultsPerSSB-IndexList-r16.h \ - ResultsPerSSB-Index-r16.h \ - ResultsPerCSI-RS-IndexList-r16.h \ - ResultsPerCSI-RS-Index-r16.h \ - NR-ECID-RequestLocationInformation-r16.h \ - NR-ECID-ProvideCapabilities-r16.h \ - NR-ECID-RequestCapabilities-r16.h \ - NR-ECID-Error-r16.h \ - NR-ECID-LocationServerErrorCauses-r16.h \ - NR-ECID-TargetDeviceErrorCauses-r16.h \ - NR-DL-TDOA-ProvideAssistanceData-r16.h \ - NR-DL-TDOA-RequestAssistanceData-r16.h \ - NR-DL-TDOA-ProvideLocationInformation-r16.h \ - NR-DL-TDOA-SignalMeasurementInformation-r16.h \ - NR-DL-TDOA-MeasList-r16.h \ - NR-DL-TDOA-MeasElement-r16.h \ - NR-DL-TDOA-AdditionalMeasurements-r16.h \ - NR-AdditionalPathList-r16.h \ - NR-DL-TDOA-AdditionalMeasurementElement-r16.h \ - NR-DL-TDOA-LocationInformation-r16.h \ - NR-DL-TDOA-RequestLocationInformation-r16.h \ - NR-DL-TDOA-ReportConfig-r16.h \ - NR-DL-TDOA-ProvideCapabilities-r16.h \ - NR-DL-TDOA-RequestCapabilities-r16.h \ - NR-DL-TDOA-Error-r16.h \ - NR-DL-TDOA-LocationServerErrorCauses-r16.h \ - NR-DL-TDOA-TargetDeviceErrorCauses-r16.h \ - NR-DL-AoD-ProvideAssistanceData-r16.h \ - NR-DL-AoD-RequestAssistanceData-r16.h \ - NR-DL-AoD-ProvideLocationInformation-r16.h \ - NR-DL-AoD-SignalMeasurementInformation-r16.h \ - NR-DL-AoD-MeasList-r16.h \ - NR-DL-AoD-MeasElement-r16.h \ - NR-DL-AoD-AdditionalMeasurements-r16.h \ - NR-DL-AoD-AdditionalMeasurementElement-r16.h \ - NR-DL-AoD-LocationInformation-r16.h \ - NR-DL-AoD-RequestLocationInformation-r16.h \ - NR-DL-AoD-ReportConfig-r16.h \ - NR-DL-AoD-ProvideCapabilities-r16.h \ - NR-DL-AoD-RequestCapabilities-r16.h \ - NR-DL-AoD-Error-r16.h \ - NR-DL-AoD-LocationServerErrorCauses-r16.h \ - NR-DL-AoD-TargetDeviceErrorCauses-r16.h \ - NR-Multi-RTT-ProvideAssistanceData-r16.h \ - NR-Multi-RTT-RequestAssistanceData-r16.h \ - NR-Multi-RTT-ProvideLocationInformation-r16.h \ - NR-Multi-RTT-SignalMeasurementInformation-r16.h \ - NR-Multi-RTT-MeasList-r16.h \ - NR-Multi-RTT-MeasElement-r16.h \ - NR-Multi-RTT-AdditionalMeasurements-r16.h \ - NR-Multi-RTT-AdditionalMeasurementElement-r16.h \ - NR-Multi-RTT-RequestLocationInformation-r16.h \ - NR-Multi-RTT-ReportConfig-r16.h \ - NR-Multi-RTT-ProvideCapabilities-r16.h \ - NR-Multi-RTT-RequestCapabilities-r16.h \ - NR-Multi-RTT-Error-r16.h \ - NR-Multi-RTT-LocationServerErrorCauses-r16.h \ - NR-Multi-RTT-TargetDeviceErrorCauses-r16.h \ - Version.h \ - SessionID.h \ - SetSessionID.h \ - SETId.h \ - SlpSessionID.h \ - IPAddress.h \ - SLPAddress.h \ - FQDN.h \ - Ver.h \ - LocationId.h \ - Status.h \ - CellInfo.h \ - Position.h \ - PositionEstimate.h \ - AltitudeInfo.h \ - CdmaCellInformation.h \ - GsmCellInformation.h \ - WcdmaCellInformation.h \ - TimingAdvance.h \ - TAResolution.h \ - ChipRate.h \ - FrequencyInfo.h \ - FrequencyInfoFDD.h \ - FrequencyInfoTDD.h \ - UARFCN.h \ - NMR.h \ - NMRelement.h \ - ULP-MeasuredResultsList.h \ - MeasuredResults.h \ - CellMeasuredResultsList.h \ - UTRA-CarrierRSSI.h \ - CellMeasuredResults.h \ - CellParametersID.h \ - TGSN.h \ - PrimaryCCPCH-RSCP.h \ - TimeslotISCP.h \ - TimeslotISCP-List.h \ - PrimaryCPICH-Info.h \ - CPICH-Ec-N0.h \ - CPICH-RSCP.h \ - Pathloss.h \ - StatusCode.h \ - QoP.h \ - ULP-Velocity.h \ - Horvel.h \ - Horandvervel.h \ - Horveluncert.h \ - Horandveruncert.h \ - PosMethod.h \ - MultipleLocationIds.h \ - LocationIdData.h \ - RelativeTime.h \ - SupportedNetworkInformation.h \ - SupportedWLANInfo.h \ - SupportedWLANApsList.h \ - SupportedWLANApsChannel11a.h \ - SupportedWLANApsChannel11bg.h \ - SupportedWLANApData.h \ - SupportedWCDMAInfo.h \ - Ver2-CellInfo-extension.h \ - HrpdCellInformation.h \ - UmbCellInformation.h \ - LteCellInformation.h \ - MeasResultListEUTRA.h \ - MeasResultEUTRA.h \ - PhysCellId.h \ - TrackingAreaCode.h \ - CellGlobalIdEUTRA.h \ - PLMN-Identity.h \ - CellIdentity.h \ - MCC.h \ - MNC.h \ - MCC-MNC-Digit.h \ - RSRP-Range.h \ - RSRQ-Range.h \ - WlanAPInformation.h \ - RTD.h \ - RTDUnits.h \ - ReportedLocation.h \ - LocationEncodingDescriptor.h \ - LocationData.h \ - WimaxBSInformation.h \ - WimaxBsID.h \ - WimaxRTD.h \ - WimaxNMRList.h \ - WimaxNMR.h \ - UTRAN-GPSReferenceTimeAssistance.h \ - UTRAN-GPSReferenceTime.h \ - UTRANGPSDriftRate.h \ - UTRAN-GPSReferenceTimeResult.h \ - UTRAN-GANSSReferenceTimeAssistance.h \ - UTRAN-GANSSReferenceTime.h \ - UTRANGANSSDriftRate.h \ - UTRAN-GANSSReferenceTimeResult.h \ - SET-GANSSReferenceTime.h \ - GNSSPosTechnology.h \ - GANSSSignals.h \ - SPCSETKey.h \ - SPCTID.h \ - SPCSETKeylifetime.h \ - CauseCode.h \ - ThirdParty.h \ - ThirdPartyID.h \ - ApplicationID.h \ - ReportingCap.h \ - RepMode-cap.h \ - BatchRepCap.h \ - Coordinate.h \ - CircularArea.h \ - EllipticalArea.h \ - PolygonArea.h \ - PolygonDescription.h \ - ULP-PDU.h \ - UlpMessage.h - -ASN_MODULE_HDRS+=OPEN_TYPE.h -ASN_MODULE_SRCS+=OPEN_TYPE.c -ASN_MODULE_HDRS+=constr_CHOICE.h -ASN_MODULE_HDRS+=BOOLEAN.h -ASN_MODULE_SRCS+=BOOLEAN.c -ASN_MODULE_HDRS+=GeneralizedTime.h -ASN_MODULE_SRCS+=GeneralizedTime.c -ASN_MODULE_HDRS+=OCTET_STRING.h -ASN_MODULE_HDRS+=IA5String.h -ASN_MODULE_SRCS+=IA5String.c -ASN_MODULE_HDRS+=INTEGER.h -ASN_MODULE_SRCS+=INTEGER.c -ASN_MODULE_HDRS+=NULL.h -ASN_MODULE_SRCS+=NULL.c -ASN_MODULE_HDRS+=NativeEnumerated.h -ASN_MODULE_SRCS+=NativeEnumerated.c -ASN_MODULE_HDRS+=NativeInteger.h -ASN_MODULE_SRCS+=NativeInteger.c -ASN_MODULE_HDRS+=UTCTime.h -ASN_MODULE_SRCS+=UTCTime.c -ASN_MODULE_HDRS+=VisibleString.h -ASN_MODULE_SRCS+=VisibleString.c -ASN_MODULE_HDRS+=asn_SEQUENCE_OF.h -ASN_MODULE_SRCS+=asn_SEQUENCE_OF.c -ASN_MODULE_HDRS+=asn_SET_OF.h -ASN_MODULE_SRCS+=asn_SET_OF.c -ASN_MODULE_SRCS+=constr_CHOICE.c -ASN_MODULE_HDRS+=constr_SEQUENCE.h -ASN_MODULE_SRCS+=constr_SEQUENCE.c -ASN_MODULE_HDRS+=constr_SEQUENCE_OF.h -ASN_MODULE_SRCS+=constr_SEQUENCE_OF.c -ASN_MODULE_HDRS+=constr_SET_OF.h -ASN_MODULE_SRCS+=constr_SET_OF.c -ASN_MODULE_HDRS+=asn_application.h -ASN_MODULE_SRCS+=asn_application.c -ASN_MODULE_HDRS+=asn_ioc.h -ASN_MODULE_HDRS+=asn_system.h -ASN_MODULE_HDRS+=asn_codecs.h -ASN_MODULE_HDRS+=asn_internal.h -ASN_MODULE_SRCS+=asn_internal.c -ASN_MODULE_HDRS+=asn_random_fill.h -ASN_MODULE_SRCS+=asn_random_fill.c -ASN_MODULE_HDRS+=asn_bit_data.h -ASN_MODULE_SRCS+=asn_bit_data.c -ASN_MODULE_SRCS+=OCTET_STRING.c -ASN_MODULE_HDRS+=BIT_STRING.h -ASN_MODULE_SRCS+=BIT_STRING.c -ASN_MODULE_SRCS+=asn_codecs_prim.c -ASN_MODULE_HDRS+=asn_codecs_prim.h -ASN_MODULE_HDRS+=ber_tlv_length.h -ASN_MODULE_SRCS+=ber_tlv_length.c -ASN_MODULE_HDRS+=ber_tlv_tag.h -ASN_MODULE_SRCS+=ber_tlv_tag.c -ASN_MODULE_HDRS+=ber_decoder.h -ASN_MODULE_SRCS+=ber_decoder.c -ASN_MODULE_HDRS+=der_encoder.h -ASN_MODULE_SRCS+=der_encoder.c -ASN_MODULE_HDRS+=constr_TYPE.h -ASN_MODULE_SRCS+=constr_TYPE.c -ASN_MODULE_HDRS+=constraints.h -ASN_MODULE_SRCS+=constraints.c -ASN_MODULE_HDRS+=xer_support.h -ASN_MODULE_SRCS+=xer_support.c -ASN_MODULE_HDRS+=xer_decoder.h -ASN_MODULE_SRCS+=xer_decoder.c -ASN_MODULE_HDRS+=xer_encoder.h -ASN_MODULE_SRCS+=xer_encoder.c -ASN_MODULE_HDRS+=per_support.h -ASN_MODULE_SRCS+=per_support.c -ASN_MODULE_HDRS+=per_decoder.h -ASN_MODULE_SRCS+=per_decoder.c -ASN_MODULE_HDRS+=per_encoder.h -ASN_MODULE_SRCS+=per_encoder.c -ASN_MODULE_HDRS+=per_opentype.h -ASN_MODULE_SRCS+=per_opentype.c - -ASN_MODULE_CFLAGS=-DASN_DISABLE_OER_SUPPORT - -lib_LTLIBRARIES+=libasncodec.la -libasncodec_la_SOURCES=$(ASN_MODULE_SRCS) $(ASN_MODULE_HDRS) -libasncodec_la_CPPFLAGS=-I$(top_srcdir)/ -libasncodec_la_CFLAGS=$(ASN_MODULE_CFLAGS) -libasncodec_la_LDFLAGS=-lm diff --git a/asn.1/generated/MeasQuantityResults-r16.c b/asn.1/generated/MeasQuantityResults-r16.c deleted file mode 100644 index e4b6d512..00000000 --- a/asn.1/generated/MeasQuantityResults-r16.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MeasQuantityResults-r16.h" - -static int -memb_nr_RSRP_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nr_RSRQ_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_nr_RSRP_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_RSRQ_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_MeasQuantityResults_r16_1[] = { - { ATF_POINTER, 2, offsetof(struct MeasQuantityResults_r16, nr_RSRP_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_RSRP_r16_constr_2, memb_nr_RSRP_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-RSRP-r16" - }, - { ATF_POINTER, 1, offsetof(struct MeasQuantityResults_r16, nr_RSRQ_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_RSRQ_r16_constr_3, memb_nr_RSRQ_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-RSRQ-r16" - }, -}; -static const int asn_MAP_MeasQuantityResults_r16_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_MeasQuantityResults_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MeasQuantityResults_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-RSRP-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-RSRQ-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_MeasQuantityResults_r16_specs_1 = { - sizeof(struct MeasQuantityResults_r16), - offsetof(struct MeasQuantityResults_r16, _asn_ctx), - asn_MAP_MeasQuantityResults_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_MeasQuantityResults_r16_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_MeasQuantityResults_r16 = { - "MeasQuantityResults-r16", - "MeasQuantityResults-r16", - &asn_OP_SEQUENCE, - asn_DEF_MeasQuantityResults_r16_tags_1, - sizeof(asn_DEF_MeasQuantityResults_r16_tags_1) - /sizeof(asn_DEF_MeasQuantityResults_r16_tags_1[0]), /* 1 */ - asn_DEF_MeasQuantityResults_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_MeasQuantityResults_r16_tags_1) - /sizeof(asn_DEF_MeasQuantityResults_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_MeasQuantityResults_r16_1, - 2, /* Elements count */ - &asn_SPC_MeasQuantityResults_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/MeasQuantityResults-r16.h b/asn.1/generated/MeasQuantityResults-r16.h deleted file mode 100644 index 67ac8d4c..00000000 --- a/asn.1/generated/MeasQuantityResults-r16.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _MeasQuantityResults_r16_H_ -#define _MeasQuantityResults_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* MeasQuantityResults-r16 */ -typedef struct MeasQuantityResults_r16 { - long *nr_RSRP_r16 /* OPTIONAL */; - long *nr_RSRQ_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} MeasQuantityResults_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_MeasQuantityResults_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_MeasQuantityResults_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_MeasQuantityResults_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -#endif /* _MeasQuantityResults_r16_H_ */ -#include diff --git a/asn.1/generated/MeasResultEUTRA.c b/asn.1/generated/MeasResultEUTRA.c deleted file mode 100644 index 81946361..00000000 --- a/asn.1/generated/MeasResultEUTRA.c +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MeasResultEUTRA.h" - -static asn_TYPE_member_t asn_MBR_cgi_Info_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct MeasResultEUTRA__cgi_Info, cellGlobalId), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CellGlobalIdEUTRA, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellGlobalId" - }, - { ATF_NOFLAGS, 0, offsetof(struct MeasResultEUTRA__cgi_Info, trackingAreaCode), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TrackingAreaCode, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "trackingAreaCode" - }, -}; -static const ber_tlv_tag_t asn_DEF_cgi_Info_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_cgi_Info_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellGlobalId */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* trackingAreaCode */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_cgi_Info_specs_3 = { - sizeof(struct MeasResultEUTRA__cgi_Info), - offsetof(struct MeasResultEUTRA__cgi_Info, _asn_ctx), - asn_MAP_cgi_Info_tag2el_3, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cgi_Info_3 = { - "cgi-Info", - "cgi-Info", - &asn_OP_SEQUENCE, - asn_DEF_cgi_Info_tags_3, - sizeof(asn_DEF_cgi_Info_tags_3) - /sizeof(asn_DEF_cgi_Info_tags_3[0]) - 1, /* 1 */ - asn_DEF_cgi_Info_tags_3, /* Same as above */ - sizeof(asn_DEF_cgi_Info_tags_3) - /sizeof(asn_DEF_cgi_Info_tags_3[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_cgi_Info_3, - 2, /* Elements count */ - &asn_SPC_cgi_Info_specs_3 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_measResult_6[] = { - { ATF_POINTER, 2, offsetof(struct MeasResultEUTRA__measResult, rsrpResult), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RSRP_Range, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rsrpResult" - }, - { ATF_POINTER, 1, offsetof(struct MeasResultEUTRA__measResult, rsrqResult), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RSRQ_Range, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rsrqResult" - }, -}; -static const int asn_MAP_measResult_oms_6[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_measResult_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_measResult_tag2el_6[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rsrpResult */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* rsrqResult */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_measResult_specs_6 = { - sizeof(struct MeasResultEUTRA__measResult), - offsetof(struct MeasResultEUTRA__measResult, _asn_ctx), - asn_MAP_measResult_tag2el_6, - 2, /* Count of tags in the map */ - asn_MAP_measResult_oms_6, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_measResult_6 = { - "measResult", - "measResult", - &asn_OP_SEQUENCE, - asn_DEF_measResult_tags_6, - sizeof(asn_DEF_measResult_tags_6) - /sizeof(asn_DEF_measResult_tags_6[0]) - 1, /* 1 */ - asn_DEF_measResult_tags_6, /* Same as above */ - sizeof(asn_DEF_measResult_tags_6) - /sizeof(asn_DEF_measResult_tags_6[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_measResult_6, - 2, /* Elements count */ - &asn_SPC_measResult_specs_6 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_MeasResultEUTRA_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct MeasResultEUTRA, physCellId), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PhysCellId, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "physCellId" - }, - { ATF_POINTER, 1, offsetof(struct MeasResultEUTRA, cgi_Info), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_cgi_Info_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cgi-Info" - }, - { ATF_NOFLAGS, 0, offsetof(struct MeasResultEUTRA, measResult), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_measResult_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "measResult" - }, -}; -static const int asn_MAP_MeasResultEUTRA_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_MeasResultEUTRA_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MeasResultEUTRA_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellId */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cgi-Info */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* measResult */ -}; -asn_SEQUENCE_specifics_t asn_SPC_MeasResultEUTRA_specs_1 = { - sizeof(struct MeasResultEUTRA), - offsetof(struct MeasResultEUTRA, _asn_ctx), - asn_MAP_MeasResultEUTRA_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_MeasResultEUTRA_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_MeasResultEUTRA = { - "MeasResultEUTRA", - "MeasResultEUTRA", - &asn_OP_SEQUENCE, - asn_DEF_MeasResultEUTRA_tags_1, - sizeof(asn_DEF_MeasResultEUTRA_tags_1) - /sizeof(asn_DEF_MeasResultEUTRA_tags_1[0]), /* 1 */ - asn_DEF_MeasResultEUTRA_tags_1, /* Same as above */ - sizeof(asn_DEF_MeasResultEUTRA_tags_1) - /sizeof(asn_DEF_MeasResultEUTRA_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_MeasResultEUTRA_1, - 3, /* Elements count */ - &asn_SPC_MeasResultEUTRA_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/MeasResultListEUTRA.c b/asn.1/generated/MeasResultListEUTRA.c deleted file mode 100644 index 18cbaac9..00000000 --- a/asn.1/generated/MeasResultListEUTRA.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MeasResultListEUTRA.h" - -asn_per_constraints_t asn_PER_type_MeasResultListEUTRA_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_MeasResultListEUTRA_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_MeasResultEUTRA, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_MeasResultListEUTRA_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_MeasResultListEUTRA_specs_1 = { - sizeof(struct MeasResultListEUTRA), - offsetof(struct MeasResultListEUTRA, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_MeasResultListEUTRA = { - "MeasResultListEUTRA", - "MeasResultListEUTRA", - &asn_OP_SEQUENCE_OF, - asn_DEF_MeasResultListEUTRA_tags_1, - sizeof(asn_DEF_MeasResultListEUTRA_tags_1) - /sizeof(asn_DEF_MeasResultListEUTRA_tags_1[0]), /* 1 */ - asn_DEF_MeasResultListEUTRA_tags_1, /* Same as above */ - sizeof(asn_DEF_MeasResultListEUTRA_tags_1) - /sizeof(asn_DEF_MeasResultListEUTRA_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_MeasResultListEUTRA_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_MeasResultListEUTRA_1, - 1, /* Single element */ - &asn_SPC_MeasResultListEUTRA_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/MeasuredResults.c b/asn.1/generated/MeasuredResults.c deleted file mode 100644 index 26f6b860..00000000 --- a/asn.1/generated/MeasuredResults.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MeasuredResults.h" - -asn_TYPE_member_t asn_MBR_MeasuredResults_1[] = { - { ATF_POINTER, 3, offsetof(struct MeasuredResults, frequencyInfo), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_FrequencyInfo, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "frequencyInfo" - }, - { ATF_POINTER, 2, offsetof(struct MeasuredResults, utra_CarrierRSSI), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTRA_CarrierRSSI, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utra-CarrierRSSI" - }, - { ATF_POINTER, 1, offsetof(struct MeasuredResults, cellMeasuredResultsList), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CellMeasuredResultsList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellMeasuredResultsList" - }, -}; -static const int asn_MAP_MeasuredResults_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_MeasuredResults_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MeasuredResults_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* frequencyInfo */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* utra-CarrierRSSI */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* cellMeasuredResultsList */ -}; -asn_SEQUENCE_specifics_t asn_SPC_MeasuredResults_specs_1 = { - sizeof(struct MeasuredResults), - offsetof(struct MeasuredResults, _asn_ctx), - asn_MAP_MeasuredResults_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_MeasuredResults_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_MeasuredResults = { - "MeasuredResults", - "MeasuredResults", - &asn_OP_SEQUENCE, - asn_DEF_MeasuredResults_tags_1, - sizeof(asn_DEF_MeasuredResults_tags_1) - /sizeof(asn_DEF_MeasuredResults_tags_1[0]), /* 1 */ - asn_DEF_MeasuredResults_tags_1, /* Same as above */ - sizeof(asn_DEF_MeasuredResults_tags_1) - /sizeof(asn_DEF_MeasuredResults_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_MeasuredResults_1, - 3, /* Elements count */ - &asn_SPC_MeasuredResults_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/MeasuredResults.h b/asn.1/generated/MeasuredResults.h deleted file mode 100644 index 23ac929f..00000000 --- a/asn.1/generated/MeasuredResults.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _MeasuredResults_H_ -#define _MeasuredResults_H_ - - -#include - -/* Including external dependencies */ -#include "UTRA-CarrierRSSI.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct FrequencyInfo; -struct CellMeasuredResultsList; - -/* MeasuredResults */ -typedef struct MeasuredResults { - struct FrequencyInfo *frequencyInfo /* OPTIONAL */; - UTRA_CarrierRSSI_t *utra_CarrierRSSI /* OPTIONAL */; - struct CellMeasuredResultsList *cellMeasuredResultsList /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} MeasuredResults_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_MeasuredResults; -extern asn_SEQUENCE_specifics_t asn_SPC_MeasuredResults_specs_1; -extern asn_TYPE_member_t asn_MBR_MeasuredResults_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "FrequencyInfo.h" -#include "CellMeasuredResultsList.h" - -#endif /* _MeasuredResults_H_ */ -#include diff --git a/asn.1/generated/MeasuredResultsElement.c b/asn.1/generated/MeasuredResultsElement.c deleted file mode 100644 index 9e22e1a7..00000000 --- a/asn.1/generated/MeasuredResultsElement.c +++ /dev/null @@ -1,629 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MeasuredResultsElement.h" - -static int -memb_nrsrp_Result_r14_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 113)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nrsrq_Result_r14_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 74)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_hyperSFN_r14_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 10)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_rsrp_Result_v1470_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -17 && value <= -1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_rsrq_Result_v1470_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -30 && value <= 46)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_physCellId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 503)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_systemFrameNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 10)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_rsrp_Result_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 97)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_rsrq_Result_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 34)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ue_RxTxTimeDiff_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_nrsrp_Result_r14_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 113 } /* (0..113) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nrsrq_Result_r14_constr_14 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 74 } /* (0..74) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_hyperSFN_r14_constr_16 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_rsrp_Result_v1470_constr_18 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, -17, -1 } /* (-17..-1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_rsrq_Result_v1470_constr_19 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, -30, 46 } /* (-30..46) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_physCellId_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_systemFrameNumber_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_rsrp_Result_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 97 } /* (0..97) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_rsrq_Result_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 34 } /* (0..34) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ue_RxTxTimeDiff_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_ext1_10[] = { - { ATF_POINTER, 1, offsetof(struct MeasuredResultsElement__ext1, arfcnEUTRA_v9a0), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueEUTRA_v9a0, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "arfcnEUTRA-v9a0" - }, -}; -static const int asn_MAP_ext1_oms_10[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_10[] = { - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_10[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* arfcnEUTRA-v9a0 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_10 = { - sizeof(struct MeasuredResultsElement__ext1), - offsetof(struct MeasuredResultsElement__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_10, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_10, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_10 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_10, - sizeof(asn_DEF_ext1_tags_10) - /sizeof(asn_DEF_ext1_tags_10[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_10, /* Same as above */ - sizeof(asn_DEF_ext1_tags_10) - /sizeof(asn_DEF_ext1_tags_10[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_10, - 1, /* Elements count */ - &asn_SPC_ext1_specs_10 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_12[] = { - { ATF_POINTER, 4, offsetof(struct MeasuredResultsElement__ext2, nrsrp_Result_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nrsrp_Result_r14_constr_13, memb_nrsrp_Result_r14_constraint_12 }, - 0, 0, /* No default value */ - "nrsrp-Result-r14" - }, - { ATF_POINTER, 3, offsetof(struct MeasuredResultsElement__ext2, nrsrq_Result_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nrsrq_Result_r14_constr_14, memb_nrsrq_Result_r14_constraint_12 }, - 0, 0, /* No default value */ - "nrsrq-Result-r14" - }, - { ATF_POINTER, 2, offsetof(struct MeasuredResultsElement__ext2, carrierFreqOffsetNB_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CarrierFreqOffsetNB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "carrierFreqOffsetNB-r14" - }, - { ATF_POINTER, 1, offsetof(struct MeasuredResultsElement__ext2, hyperSFN_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_hyperSFN_r14_constr_16, memb_hyperSFN_r14_constraint_12 }, - 0, 0, /* No default value */ - "hyperSFN-r14" - }, -}; -static const int asn_MAP_ext2_oms_12[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_12[] = { - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_12[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nrsrp-Result-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nrsrq-Result-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* carrierFreqOffsetNB-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* hyperSFN-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_12 = { - sizeof(struct MeasuredResultsElement__ext2), - offsetof(struct MeasuredResultsElement__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_12, - 4, /* Count of tags in the map */ - asn_MAP_ext2_oms_12, /* Optional members */ - 4, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_12 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_12, - sizeof(asn_DEF_ext2_tags_12) - /sizeof(asn_DEF_ext2_tags_12[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_12, /* Same as above */ - sizeof(asn_DEF_ext2_tags_12) - /sizeof(asn_DEF_ext2_tags_12[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_12, - 4, /* Elements count */ - &asn_SPC_ext2_specs_12 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext3_17[] = { - { ATF_POINTER, 2, offsetof(struct MeasuredResultsElement__ext3, rsrp_Result_v1470), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rsrp_Result_v1470_constr_18, memb_rsrp_Result_v1470_constraint_17 }, - 0, 0, /* No default value */ - "rsrp-Result-v1470" - }, - { ATF_POINTER, 1, offsetof(struct MeasuredResultsElement__ext3, rsrq_Result_v1470), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rsrq_Result_v1470_constr_19, memb_rsrq_Result_v1470_constraint_17 }, - 0, 0, /* No default value */ - "rsrq-Result-v1470" - }, -}; -static const int asn_MAP_ext3_oms_17[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext3_tags_17[] = { - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_17[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rsrp-Result-v1470 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* rsrq-Result-v1470 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_17 = { - sizeof(struct MeasuredResultsElement__ext3), - offsetof(struct MeasuredResultsElement__ext3, _asn_ctx), - asn_MAP_ext3_tag2el_17, - 2, /* Count of tags in the map */ - asn_MAP_ext3_oms_17, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext3_17 = { - "ext3", - "ext3", - &asn_OP_SEQUENCE, - asn_DEF_ext3_tags_17, - sizeof(asn_DEF_ext3_tags_17) - /sizeof(asn_DEF_ext3_tags_17[0]) - 1, /* 1 */ - asn_DEF_ext3_tags_17, /* Same as above */ - sizeof(asn_DEF_ext3_tags_17) - /sizeof(asn_DEF_ext3_tags_17[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext3_17, - 2, /* Elements count */ - &asn_SPC_ext3_specs_17 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_MeasuredResultsElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct MeasuredResultsElement, physCellId), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_physCellId_constr_2, memb_physCellId_constraint_1 }, - 0, 0, /* No default value */ - "physCellId" - }, - { ATF_POINTER, 1, offsetof(struct MeasuredResultsElement, cellGlobalId), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CellGlobalIdEUTRA_AndUTRA, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellGlobalId" - }, - { ATF_NOFLAGS, 0, offsetof(struct MeasuredResultsElement, arfcnEUTRA), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueEUTRA, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "arfcnEUTRA" - }, - { ATF_POINTER, 7, offsetof(struct MeasuredResultsElement, systemFrameNumber), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_systemFrameNumber_constr_5, memb_systemFrameNumber_constraint_1 }, - 0, 0, /* No default value */ - "systemFrameNumber" - }, - { ATF_POINTER, 6, offsetof(struct MeasuredResultsElement, rsrp_Result), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rsrp_Result_constr_6, memb_rsrp_Result_constraint_1 }, - 0, 0, /* No default value */ - "rsrp-Result" - }, - { ATF_POINTER, 5, offsetof(struct MeasuredResultsElement, rsrq_Result), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rsrq_Result_constr_7, memb_rsrq_Result_constraint_1 }, - 0, 0, /* No default value */ - "rsrq-Result" - }, - { ATF_POINTER, 4, offsetof(struct MeasuredResultsElement, ue_RxTxTimeDiff), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ue_RxTxTimeDiff_constr_8, memb_ue_RxTxTimeDiff_constraint_1 }, - 0, 0, /* No default value */ - "ue-RxTxTimeDiff" - }, - { ATF_POINTER, 3, offsetof(struct MeasuredResultsElement, ext1), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - 0, - &asn_DEF_ext1_10, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 2, offsetof(struct MeasuredResultsElement, ext2), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - 0, - &asn_DEF_ext2_12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, - { ATF_POINTER, 1, offsetof(struct MeasuredResultsElement, ext3), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - 0, - &asn_DEF_ext3_17, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext3" - }, -}; -static const int asn_MAP_MeasuredResultsElement_oms_1[] = { 1, 3, 4, 5, 6, 7, 8, 9 }; -static const ber_tlv_tag_t asn_DEF_MeasuredResultsElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MeasuredResultsElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellId */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalId */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* arfcnEUTRA */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* systemFrameNumber */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rsrp-Result */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* rsrq-Result */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ue-RxTxTimeDiff */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ext2 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* ext3 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_MeasuredResultsElement_specs_1 = { - sizeof(struct MeasuredResultsElement), - offsetof(struct MeasuredResultsElement, _asn_ctx), - asn_MAP_MeasuredResultsElement_tag2el_1, - 10, /* Count of tags in the map */ - asn_MAP_MeasuredResultsElement_oms_1, /* Optional members */ - 5, 3, /* Root/Additions */ - 7, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_MeasuredResultsElement = { - "MeasuredResultsElement", - "MeasuredResultsElement", - &asn_OP_SEQUENCE, - asn_DEF_MeasuredResultsElement_tags_1, - sizeof(asn_DEF_MeasuredResultsElement_tags_1) - /sizeof(asn_DEF_MeasuredResultsElement_tags_1[0]), /* 1 */ - asn_DEF_MeasuredResultsElement_tags_1, /* Same as above */ - sizeof(asn_DEF_MeasuredResultsElement_tags_1) - /sizeof(asn_DEF_MeasuredResultsElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_MeasuredResultsElement_1, - 10, /* Elements count */ - &asn_SPC_MeasuredResultsElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/MeasuredResultsElement.h b/asn.1/generated/MeasuredResultsElement.h deleted file mode 100644 index aa8673be..00000000 --- a/asn.1/generated/MeasuredResultsElement.h +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _MeasuredResultsElement_H_ -#define _MeasuredResultsElement_H_ - - -#include - -/* Including external dependencies */ -#include -#include "ARFCN-ValueEUTRA.h" -#include -#include "ARFCN-ValueEUTRA-v9a0.h" -#include -#include "CarrierFreqOffsetNB-r14.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct CellGlobalIdEUTRA_AndUTRA; - -/* MeasuredResultsElement */ -typedef struct MeasuredResultsElement { - long physCellId; - struct CellGlobalIdEUTRA_AndUTRA *cellGlobalId /* OPTIONAL */; - ARFCN_ValueEUTRA_t arfcnEUTRA; - BIT_STRING_t *systemFrameNumber /* OPTIONAL */; - long *rsrp_Result /* OPTIONAL */; - long *rsrq_Result /* OPTIONAL */; - long *ue_RxTxTimeDiff /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct MeasuredResultsElement__ext1 { - ARFCN_ValueEUTRA_v9a0_t *arfcnEUTRA_v9a0 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct MeasuredResultsElement__ext2 { - long *nrsrp_Result_r14 /* OPTIONAL */; - long *nrsrq_Result_r14 /* OPTIONAL */; - CarrierFreqOffsetNB_r14_t *carrierFreqOffsetNB_r14 /* OPTIONAL */; - BIT_STRING_t *hyperSFN_r14 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - struct MeasuredResultsElement__ext3 { - long *rsrp_Result_v1470 /* OPTIONAL */; - long *rsrq_Result_v1470 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext3; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} MeasuredResultsElement_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_MeasuredResultsElement; -extern asn_SEQUENCE_specifics_t asn_SPC_MeasuredResultsElement_specs_1; -extern asn_TYPE_member_t asn_MBR_MeasuredResultsElement_1[10]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "CellGlobalIdEUTRA-AndUTRA.h" - -#endif /* _MeasuredResultsElement_H_ */ -#include diff --git a/asn.1/generated/MeasuredResultsList.c b/asn.1/generated/MeasuredResultsList.c deleted file mode 100644 index b7e0214b..00000000 --- a/asn.1/generated/MeasuredResultsList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MeasuredResultsList.h" - -asn_per_constraints_t asn_PER_type_MeasuredResultsList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_MeasuredResultsList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_MeasuredResultsElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_MeasuredResultsList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_MeasuredResultsList_specs_1 = { - sizeof(struct MeasuredResultsList), - offsetof(struct MeasuredResultsList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_MeasuredResultsList = { - "MeasuredResultsList", - "MeasuredResultsList", - &asn_OP_SEQUENCE_OF, - asn_DEF_MeasuredResultsList_tags_1, - sizeof(asn_DEF_MeasuredResultsList_tags_1) - /sizeof(asn_DEF_MeasuredResultsList_tags_1[0]), /* 1 */ - asn_DEF_MeasuredResultsList_tags_1, /* Same as above */ - sizeof(asn_DEF_MeasuredResultsList_tags_1) - /sizeof(asn_DEF_MeasuredResultsList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_MeasuredResultsList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_MeasuredResultsList_1, - 1, /* Single element */ - &asn_SPC_MeasuredResultsList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/MeasurementReferenceTime.c b/asn.1/generated/MeasurementReferenceTime.c deleted file mode 100644 index dd52d303..00000000 --- a/asn.1/generated/MeasurementReferenceTime.c +++ /dev/null @@ -1,1290 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MeasurementReferenceTime.h" - -static int -memb_physCellId_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 503)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_systemFrameNumber_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 10)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_primary_CPICH_Info_constraint_14(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cellParameters_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_referenceSystemFrameNumber_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_referenceFN_constraint_27(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_referenceFNMSB_constraint_27(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bcchCarrier_constraint_23(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bsic_constraint_23(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_deltaGNSS_TOD_constraint_23(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nbPhysCellId_r14_constraint_34(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 503)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sfn_r14_constraint_34(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 10)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_hyperSFN_r14_constraint_34(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 10)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nrPhysCellId_r15_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1007)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nr_sfn_r15_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 10)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gnss_TOD_msec_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3599999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gnss_TOD_frac_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gnss_TOD_unc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_physCellId_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_systemFrameNumber_constr_10 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_primary_CPICH_Info_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cellParameters_constr_18 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_mode_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_referenceSystemFrameNumber_constr_21 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_referenceFN_constr_28 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_referenceFNMSB_constr_29 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bcchCarrier_constr_24 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bsic_constr_25 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_deltaGNSS_TOD_constr_31 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nbPhysCellId_r14_constr_35 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sfn_r14_constr_37 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_hyperSFN_r14_constr_38 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nrPhysCellId_r15_constr_41 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1007 } /* (0..1007) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_sfn_r15_constr_43 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_networkTime_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_TOD_msec_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, 0, 3599999 } /* (0..3599999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_TOD_frac_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 3999 } /* (0..3999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_TOD_unc_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_eUTRA_7[] = { - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__eUTRA, physCellId), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_physCellId_constr_8, memb_physCellId_constraint_7 }, - 0, 0, /* No default value */ - "physCellId" - }, - { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime__networkTime__eUTRA, cellGlobalId), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CellGlobalIdEUTRA_AndUTRA, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellGlobalId" - }, - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__eUTRA, systemFrameNumber), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_systemFrameNumber_constr_10, memb_systemFrameNumber_constraint_7 }, - 0, 0, /* No default value */ - "systemFrameNumber" - }, -}; -static const int asn_MAP_eUTRA_oms_7[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_eUTRA_tags_7[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_eUTRA_tag2el_7[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellId */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalId */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* systemFrameNumber */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_eUTRA_specs_7 = { - sizeof(struct MeasurementReferenceTime__networkTime__eUTRA), - offsetof(struct MeasurementReferenceTime__networkTime__eUTRA, _asn_ctx), - asn_MAP_eUTRA_tag2el_7, - 3, /* Count of tags in the map */ - asn_MAP_eUTRA_oms_7, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_eUTRA_7 = { - "eUTRA", - "eUTRA", - &asn_OP_SEQUENCE, - asn_DEF_eUTRA_tags_7, - sizeof(asn_DEF_eUTRA_tags_7) - /sizeof(asn_DEF_eUTRA_tags_7[0]) - 1, /* 1 */ - asn_DEF_eUTRA_tags_7, /* Same as above */ - sizeof(asn_DEF_eUTRA_tags_7) - /sizeof(asn_DEF_eUTRA_tags_7[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_eUTRA_7, - 3, /* Elements count */ - &asn_SPC_eUTRA_specs_7 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_fdd_14[] = { - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__uTRA__mode__fdd, primary_CPICH_Info), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_primary_CPICH_Info_constr_15, memb_primary_CPICH_Info_constraint_14 }, - 0, 0, /* No default value */ - "primary-CPICH-Info" - }, -}; -static const ber_tlv_tag_t asn_DEF_fdd_tags_14[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_fdd_tag2el_14[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* primary-CPICH-Info */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_fdd_specs_14 = { - sizeof(struct MeasurementReferenceTime__networkTime__uTRA__mode__fdd), - offsetof(struct MeasurementReferenceTime__networkTime__uTRA__mode__fdd, _asn_ctx), - asn_MAP_fdd_tag2el_14, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_fdd_14 = { - "fdd", - "fdd", - &asn_OP_SEQUENCE, - asn_DEF_fdd_tags_14, - sizeof(asn_DEF_fdd_tags_14) - /sizeof(asn_DEF_fdd_tags_14[0]) - 1, /* 1 */ - asn_DEF_fdd_tags_14, /* Same as above */ - sizeof(asn_DEF_fdd_tags_14) - /sizeof(asn_DEF_fdd_tags_14[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_fdd_14, - 1, /* Elements count */ - &asn_SPC_fdd_specs_14 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_tdd_17[] = { - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__uTRA__mode__tdd, cellParameters), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cellParameters_constr_18, memb_cellParameters_constraint_17 }, - 0, 0, /* No default value */ - "cellParameters" - }, -}; -static const ber_tlv_tag_t asn_DEF_tdd_tags_17[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_tdd_tag2el_17[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cellParameters */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_tdd_specs_17 = { - sizeof(struct MeasurementReferenceTime__networkTime__uTRA__mode__tdd), - offsetof(struct MeasurementReferenceTime__networkTime__uTRA__mode__tdd, _asn_ctx), - asn_MAP_tdd_tag2el_17, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_tdd_17 = { - "tdd", - "tdd", - &asn_OP_SEQUENCE, - asn_DEF_tdd_tags_17, - sizeof(asn_DEF_tdd_tags_17) - /sizeof(asn_DEF_tdd_tags_17[0]) - 1, /* 1 */ - asn_DEF_tdd_tags_17, /* Same as above */ - sizeof(asn_DEF_tdd_tags_17) - /sizeof(asn_DEF_tdd_tags_17[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_tdd_17, - 1, /* Elements count */ - &asn_SPC_tdd_specs_17 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_mode_13[] = { - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__uTRA__mode, choice.fdd), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_fdd_14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "fdd" - }, - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__uTRA__mode, choice.tdd), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_tdd_17, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tdd" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_mode_tag2el_13[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */ -}; -static asn_CHOICE_specifics_t asn_SPC_mode_specs_13 = { - sizeof(struct MeasurementReferenceTime__networkTime__uTRA__mode), - offsetof(struct MeasurementReferenceTime__networkTime__uTRA__mode, _asn_ctx), - offsetof(struct MeasurementReferenceTime__networkTime__uTRA__mode, present), - sizeof(((struct MeasurementReferenceTime__networkTime__uTRA__mode *)0)->present), - asn_MAP_mode_tag2el_13, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_mode_13 = { - "mode", - "mode", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_mode_constr_13, CHOICE_constraint }, - asn_MBR_mode_13, - 2, /* Elements count */ - &asn_SPC_mode_specs_13 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_uTRA_12[] = { - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__uTRA, mode), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_mode_13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mode" - }, - { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime__networkTime__uTRA, cellGlobalId), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CellGlobalIdEUTRA_AndUTRA, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellGlobalId" - }, - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__uTRA, referenceSystemFrameNumber), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_referenceSystemFrameNumber_constr_21, memb_referenceSystemFrameNumber_constraint_12 }, - 0, 0, /* No default value */ - "referenceSystemFrameNumber" - }, -}; -static const int asn_MAP_uTRA_oms_12[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_uTRA_tags_12[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_uTRA_tag2el_12[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mode */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalId */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* referenceSystemFrameNumber */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_uTRA_specs_12 = { - sizeof(struct MeasurementReferenceTime__networkTime__uTRA), - offsetof(struct MeasurementReferenceTime__networkTime__uTRA, _asn_ctx), - asn_MAP_uTRA_tag2el_12, - 3, /* Count of tags in the map */ - asn_MAP_uTRA_oms_12, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_uTRA_12 = { - "uTRA", - "uTRA", - &asn_OP_SEQUENCE, - asn_DEF_uTRA_tags_12, - sizeof(asn_DEF_uTRA_tags_12) - /sizeof(asn_DEF_uTRA_tags_12[0]) - 1, /* 1 */ - asn_DEF_uTRA_tags_12, /* Same as above */ - sizeof(asn_DEF_uTRA_tags_12) - /sizeof(asn_DEF_uTRA_tags_12[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_uTRA_12, - 3, /* Elements count */ - &asn_SPC_uTRA_specs_12 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_referenceFrame_27[] = { - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__gSM__referenceFrame, referenceFN), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_referenceFN_constr_28, memb_referenceFN_constraint_27 }, - 0, 0, /* No default value */ - "referenceFN" - }, - { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime__networkTime__gSM__referenceFrame, referenceFNMSB), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_referenceFNMSB_constr_29, memb_referenceFNMSB_constraint_27 }, - 0, 0, /* No default value */ - "referenceFNMSB" - }, -}; -static const int asn_MAP_referenceFrame_oms_27[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_referenceFrame_tags_27[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_referenceFrame_tag2el_27[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceFN */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* referenceFNMSB */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_referenceFrame_specs_27 = { - sizeof(struct MeasurementReferenceTime__networkTime__gSM__referenceFrame), - offsetof(struct MeasurementReferenceTime__networkTime__gSM__referenceFrame, _asn_ctx), - asn_MAP_referenceFrame_tag2el_27, - 2, /* Count of tags in the map */ - asn_MAP_referenceFrame_oms_27, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_referenceFrame_27 = { - "referenceFrame", - "referenceFrame", - &asn_OP_SEQUENCE, - asn_DEF_referenceFrame_tags_27, - sizeof(asn_DEF_referenceFrame_tags_27) - /sizeof(asn_DEF_referenceFrame_tags_27[0]) - 1, /* 1 */ - asn_DEF_referenceFrame_tags_27, /* Same as above */ - sizeof(asn_DEF_referenceFrame_tags_27) - /sizeof(asn_DEF_referenceFrame_tags_27[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_referenceFrame_27, - 2, /* Elements count */ - &asn_SPC_referenceFrame_specs_27 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_gSM_23[] = { - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__gSM, bcchCarrier), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bcchCarrier_constr_24, memb_bcchCarrier_constraint_23 }, - 0, 0, /* No default value */ - "bcchCarrier" - }, - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__gSM, bsic), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bsic_constr_25, memb_bsic_constraint_23 }, - 0, 0, /* No default value */ - "bsic" - }, - { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime__networkTime__gSM, cellGlobalId), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CellGlobalIdGERAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellGlobalId" - }, - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__gSM, referenceFrame), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - 0, - &asn_DEF_referenceFrame_27, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceFrame" - }, - { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime__networkTime__gSM, deltaGNSS_TOD), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_deltaGNSS_TOD_constr_31, memb_deltaGNSS_TOD_constraint_23 }, - 0, 0, /* No default value */ - "deltaGNSS-TOD" - }, -}; -static const int asn_MAP_gSM_oms_23[] = { 2, 4 }; -static const ber_tlv_tag_t asn_DEF_gSM_tags_23[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_gSM_tag2el_23[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bcchCarrier */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bsic */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cellGlobalId */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* referenceFrame */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* deltaGNSS-TOD */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_gSM_specs_23 = { - sizeof(struct MeasurementReferenceTime__networkTime__gSM), - offsetof(struct MeasurementReferenceTime__networkTime__gSM, _asn_ctx), - asn_MAP_gSM_tag2el_23, - 5, /* Count of tags in the map */ - asn_MAP_gSM_oms_23, /* Optional members */ - 2, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_gSM_23 = { - "gSM", - "gSM", - &asn_OP_SEQUENCE, - asn_DEF_gSM_tags_23, - sizeof(asn_DEF_gSM_tags_23) - /sizeof(asn_DEF_gSM_tags_23[0]) - 1, /* 1 */ - asn_DEF_gSM_tags_23, /* Same as above */ - sizeof(asn_DEF_gSM_tags_23) - /sizeof(asn_DEF_gSM_tags_23[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_gSM_23, - 5, /* Elements count */ - &asn_SPC_gSM_specs_23 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_nbIoT_r14_34[] = { - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__nbIoT_r14, nbPhysCellId_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nbPhysCellId_r14_constr_35, memb_nbPhysCellId_r14_constraint_34 }, - 0, 0, /* No default value */ - "nbPhysCellId-r14" - }, - { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime__networkTime__nbIoT_r14, nbCellGlobalId_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ECGI, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nbCellGlobalId-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__nbIoT_r14, sfn_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_sfn_r14_constr_37, memb_sfn_r14_constraint_34 }, - 0, 0, /* No default value */ - "sfn-r14" - }, - { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime__networkTime__nbIoT_r14, hyperSFN_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_hyperSFN_r14_constr_38, memb_hyperSFN_r14_constraint_34 }, - 0, 0, /* No default value */ - "hyperSFN-r14" - }, -}; -static const int asn_MAP_nbIoT_r14_oms_34[] = { 1, 3 }; -static const ber_tlv_tag_t asn_DEF_nbIoT_r14_tags_34[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_nbIoT_r14_tag2el_34[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nbPhysCellId-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nbCellGlobalId-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sfn-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* hyperSFN-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_nbIoT_r14_specs_34 = { - sizeof(struct MeasurementReferenceTime__networkTime__nbIoT_r14), - offsetof(struct MeasurementReferenceTime__networkTime__nbIoT_r14, _asn_ctx), - asn_MAP_nbIoT_r14_tag2el_34, - 4, /* Count of tags in the map */ - asn_MAP_nbIoT_r14_oms_34, /* Optional members */ - 2, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nbIoT_r14_34 = { - "nbIoT-r14", - "nbIoT-r14", - &asn_OP_SEQUENCE, - asn_DEF_nbIoT_r14_tags_34, - sizeof(asn_DEF_nbIoT_r14_tags_34) - /sizeof(asn_DEF_nbIoT_r14_tags_34[0]) - 1, /* 1 */ - asn_DEF_nbIoT_r14_tags_34, /* Same as above */ - sizeof(asn_DEF_nbIoT_r14_tags_34) - /sizeof(asn_DEF_nbIoT_r14_tags_34[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_nbIoT_r14_34, - 4, /* Elements count */ - &asn_SPC_nbIoT_r14_specs_34 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_nr_r15_40[] = { - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__nr_r15, nrPhysCellId_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nrPhysCellId_r15_constr_41, memb_nrPhysCellId_r15_constraint_40 }, - 0, 0, /* No default value */ - "nrPhysCellId-r15" - }, - { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime__networkTime__nr_r15, nrCellGlobalID_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NCGI_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nrCellGlobalID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__nr_r15, nr_sfn_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_nr_sfn_r15_constr_43, memb_nr_sfn_r15_constraint_40 }, - 0, 0, /* No default value */ - "nr-sfn-r15" - }, -}; -static const int asn_MAP_nr_r15_oms_40[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_nr_r15_tags_40[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_nr_r15_tag2el_40[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nrPhysCellId-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nrCellGlobalID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-sfn-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_nr_r15_specs_40 = { - sizeof(struct MeasurementReferenceTime__networkTime__nr_r15), - offsetof(struct MeasurementReferenceTime__networkTime__nr_r15, _asn_ctx), - asn_MAP_nr_r15_tag2el_40, - 3, /* Count of tags in the map */ - asn_MAP_nr_r15_oms_40, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nr_r15_40 = { - "nr-r15", - "nr-r15", - &asn_OP_SEQUENCE, - asn_DEF_nr_r15_tags_40, - sizeof(asn_DEF_nr_r15_tags_40) - /sizeof(asn_DEF_nr_r15_tags_40[0]) - 1, /* 1 */ - asn_DEF_nr_r15_tags_40, /* Same as above */ - sizeof(asn_DEF_nr_r15_tags_40) - /sizeof(asn_DEF_nr_r15_tags_40[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_nr_r15_40, - 3, /* Elements count */ - &asn_SPC_nr_r15_specs_40 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_networkTime_6[] = { - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime, choice.eUTRA), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_eUTRA_7, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "eUTRA" - }, - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime, choice.uTRA), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_uTRA_12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "uTRA" - }, - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime, choice.gSM), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_gSM_23, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gSM" - }, - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime, choice.nbIoT_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - 0, - &asn_DEF_nbIoT_r14_34, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nbIoT-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime, choice.nr_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - 0, - &asn_DEF_nr_r15_40, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-r15" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_networkTime_tag2el_6[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eUTRA */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uTRA */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gSM */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nbIoT-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* nr-r15 */ -}; -static asn_CHOICE_specifics_t asn_SPC_networkTime_specs_6 = { - sizeof(struct MeasurementReferenceTime__networkTime), - offsetof(struct MeasurementReferenceTime__networkTime, _asn_ctx), - offsetof(struct MeasurementReferenceTime__networkTime, present), - sizeof(((struct MeasurementReferenceTime__networkTime *)0)->present), - asn_MAP_networkTime_tag2el_6, - 5, /* Count of tags in the map */ - 0, 0, - 3 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_networkTime_6 = { - "networkTime", - "networkTime", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_networkTime_constr_6, CHOICE_constraint }, - asn_MBR_networkTime_6, - 5, /* Elements count */ - &asn_SPC_networkTime_specs_6 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_MeasurementReferenceTime_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime, gnss_TOD_msec), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_TOD_msec_constr_2, memb_gnss_TOD_msec_constraint_1 }, - 0, 0, /* No default value */ - "gnss-TOD-msec" - }, - { ATF_POINTER, 2, offsetof(struct MeasurementReferenceTime, gnss_TOD_frac), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_TOD_frac_constr_3, memb_gnss_TOD_frac_constraint_1 }, - 0, 0, /* No default value */ - "gnss-TOD-frac" - }, - { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime, gnss_TOD_unc), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_TOD_unc_constr_4, memb_gnss_TOD_unc_constraint_1 }, - 0, 0, /* No default value */ - "gnss-TOD-unc" - }, - { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime, gnss_TimeID), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnss-TimeID" - }, - { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime, networkTime), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_networkTime_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "networkTime" - }, -}; -static const int asn_MAP_MeasurementReferenceTime_oms_1[] = { 1, 2, 4 }; -static const ber_tlv_tag_t asn_DEF_MeasurementReferenceTime_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MeasurementReferenceTime_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-TOD-msec */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-TOD-frac */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-TOD-unc */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-TimeID */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* networkTime */ -}; -asn_SEQUENCE_specifics_t asn_SPC_MeasurementReferenceTime_specs_1 = { - sizeof(struct MeasurementReferenceTime), - offsetof(struct MeasurementReferenceTime, _asn_ctx), - asn_MAP_MeasurementReferenceTime_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_MeasurementReferenceTime_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_MeasurementReferenceTime = { - "MeasurementReferenceTime", - "MeasurementReferenceTime", - &asn_OP_SEQUENCE, - asn_DEF_MeasurementReferenceTime_tags_1, - sizeof(asn_DEF_MeasurementReferenceTime_tags_1) - /sizeof(asn_DEF_MeasurementReferenceTime_tags_1[0]), /* 1 */ - asn_DEF_MeasurementReferenceTime_tags_1, /* Same as above */ - sizeof(asn_DEF_MeasurementReferenceTime_tags_1) - /sizeof(asn_DEF_MeasurementReferenceTime_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_MeasurementReferenceTime_1, - 5, /* Elements count */ - &asn_SPC_MeasurementReferenceTime_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/MessageSizeLimitNB-r14.c b/asn.1/generated/MessageSizeLimitNB-r14.c deleted file mode 100644 index dca718a8..00000000 --- a/asn.1/generated/MessageSizeLimitNB-r14.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MessageSizeLimitNB-r14.h" - -static int -memb_measurementLimit_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 512)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_measurementLimit_r14_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 1, 512 } /* (1..512) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_MessageSizeLimitNB_r14_1[] = { - { ATF_POINTER, 1, offsetof(struct MessageSizeLimitNB_r14, measurementLimit_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_measurementLimit_r14_constr_2, memb_measurementLimit_r14_constraint_1 }, - 0, 0, /* No default value */ - "measurementLimit-r14" - }, -}; -static const int asn_MAP_MessageSizeLimitNB_r14_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_MessageSizeLimitNB_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MessageSizeLimitNB_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* measurementLimit-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_MessageSizeLimitNB_r14_specs_1 = { - sizeof(struct MessageSizeLimitNB_r14), - offsetof(struct MessageSizeLimitNB_r14, _asn_ctx), - asn_MAP_MessageSizeLimitNB_r14_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_MessageSizeLimitNB_r14_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_MessageSizeLimitNB_r14 = { - "MessageSizeLimitNB-r14", - "MessageSizeLimitNB-r14", - &asn_OP_SEQUENCE, - asn_DEF_MessageSizeLimitNB_r14_tags_1, - sizeof(asn_DEF_MessageSizeLimitNB_r14_tags_1) - /sizeof(asn_DEF_MessageSizeLimitNB_r14_tags_1[0]), /* 1 */ - asn_DEF_MessageSizeLimitNB_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_MessageSizeLimitNB_r14_tags_1) - /sizeof(asn_DEF_MessageSizeLimitNB_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_MessageSizeLimitNB_r14_1, - 1, /* Elements count */ - &asn_SPC_MessageSizeLimitNB_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/MotionTimeSource-r15.c b/asn.1/generated/MotionTimeSource-r15.c deleted file mode 100644 index 36f971cc..00000000 --- a/asn.1/generated/MotionTimeSource-r15.c +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MotionTimeSource-r15.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_timeSource_r15_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_timeSource_r15_value2enum_2[] = { - { 0, 11, "servingCell" }, - { 1, 13, "referenceCell" }, - { 2, 4, "gnss" }, - { 3, 5, "mixed" }, - { 4, 5, "other" }, - { 5, 4, "none" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_timeSource_r15_enum2value_2[] = { - 2, /* gnss(2) */ - 3, /* mixed(3) */ - 5, /* none(5) */ - 4, /* other(4) */ - 1, /* referenceCell(1) */ - 0 /* servingCell(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_timeSource_r15_specs_2 = { - asn_MAP_timeSource_r15_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_timeSource_r15_enum2value_2, /* N => "tag"; sorted by N */ - 6, /* Number of elements in the maps */ - 7, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_timeSource_r15_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_timeSource_r15_2 = { - "timeSource-r15", - "timeSource-r15", - &asn_OP_NativeEnumerated, - asn_DEF_timeSource_r15_tags_2, - sizeof(asn_DEF_timeSource_r15_tags_2) - /sizeof(asn_DEF_timeSource_r15_tags_2[0]) - 1, /* 1 */ - asn_DEF_timeSource_r15_tags_2, /* Same as above */ - sizeof(asn_DEF_timeSource_r15_tags_2) - /sizeof(asn_DEF_timeSource_r15_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_timeSource_r15_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_timeSource_r15_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_MotionTimeSource_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct MotionTimeSource_r15, timeSource_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_timeSource_r15_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "timeSource-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_MotionTimeSource_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MotionTimeSource_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* timeSource-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_MotionTimeSource_r15_specs_1 = { - sizeof(struct MotionTimeSource_r15), - offsetof(struct MotionTimeSource_r15, _asn_ctx), - asn_MAP_MotionTimeSource_r15_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_MotionTimeSource_r15 = { - "MotionTimeSource-r15", - "MotionTimeSource-r15", - &asn_OP_SEQUENCE, - asn_DEF_MotionTimeSource_r15_tags_1, - sizeof(asn_DEF_MotionTimeSource_r15_tags_1) - /sizeof(asn_DEF_MotionTimeSource_r15_tags_1[0]), /* 1 */ - asn_DEF_MotionTimeSource_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_MotionTimeSource_r15_tags_1) - /sizeof(asn_DEF_MotionTimeSource_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_MotionTimeSource_r15_1, - 1, /* Elements count */ - &asn_SPC_MotionTimeSource_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/MultipleLocationIds.c b/asn.1/generated/MultipleLocationIds.c deleted file mode 100644 index daa6fe1e..00000000 --- a/asn.1/generated/MultipleLocationIds.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MultipleLocationIds.h" - -asn_per_constraints_t asn_PER_type_MultipleLocationIds_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_MultipleLocationIds_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_LocationIdData, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_MultipleLocationIds_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_MultipleLocationIds_specs_1 = { - sizeof(struct MultipleLocationIds), - offsetof(struct MultipleLocationIds, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_MultipleLocationIds = { - "MultipleLocationIds", - "MultipleLocationIds", - &asn_OP_SEQUENCE_OF, - asn_DEF_MultipleLocationIds_tags_1, - sizeof(asn_DEF_MultipleLocationIds_tags_1) - /sizeof(asn_DEF_MultipleLocationIds_tags_1[0]), /* 1 */ - asn_DEF_MultipleLocationIds_tags_1, /* Same as above */ - sizeof(asn_DEF_MultipleLocationIds_tags_1) - /sizeof(asn_DEF_MultipleLocationIds_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_MultipleLocationIds_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_MultipleLocationIds_1, - 1, /* Single element */ - &asn_SPC_MultipleLocationIds_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/MutingPattern-r16.c b/asn.1/generated/MutingPattern-r16.c deleted file mode 100644 index 693ecd62..00000000 --- a/asn.1/generated/MutingPattern-r16.c +++ /dev/null @@ -1,318 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "MutingPattern-r16.h" - -static int -memb_po2_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 2)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po4_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 4)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po6_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 6)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po8_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po16_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 16)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po32_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 32)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_po2_r16_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po4_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po6_r16_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po8_r16_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po16_r16_constr_6 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po32_r16_constr_7 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 32, 32 } /* (SIZE(32..32)) */, - 0, 0 /* No PER value map */ -}; -asn_per_constraints_t asn_PER_type_MutingPattern_r16_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_MutingPattern_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct MutingPattern_r16, choice.po2_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po2_r16_constr_2, memb_po2_r16_constraint_1 }, - 0, 0, /* No default value */ - "po2-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct MutingPattern_r16, choice.po4_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po4_r16_constr_3, memb_po4_r16_constraint_1 }, - 0, 0, /* No default value */ - "po4-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct MutingPattern_r16, choice.po6_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po6_r16_constr_4, memb_po6_r16_constraint_1 }, - 0, 0, /* No default value */ - "po6-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct MutingPattern_r16, choice.po8_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po8_r16_constr_5, memb_po8_r16_constraint_1 }, - 0, 0, /* No default value */ - "po8-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct MutingPattern_r16, choice.po16_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po16_r16_constr_6, memb_po16_r16_constraint_1 }, - 0, 0, /* No default value */ - "po16-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct MutingPattern_r16, choice.po32_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po32_r16_constr_7, memb_po32_r16_constraint_1 }, - 0, 0, /* No default value */ - "po32-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_MutingPattern_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* po2-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* po4-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* po6-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* po8-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* po16-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* po32-r16 */ -}; -asn_CHOICE_specifics_t asn_SPC_MutingPattern_r16_specs_1 = { - sizeof(struct MutingPattern_r16), - offsetof(struct MutingPattern_r16, _asn_ctx), - offsetof(struct MutingPattern_r16, present), - sizeof(((struct MutingPattern_r16 *)0)->present), - asn_MAP_MutingPattern_r16_tag2el_1, - 6, /* Count of tags in the map */ - 0, 0, - 6 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_MutingPattern_r16 = { - "MutingPattern-r16", - "MutingPattern-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_MutingPattern_r16_constr_1, CHOICE_constraint }, - asn_MBR_MutingPattern_r16_1, - 6, /* Elements count */ - &asn_SPC_MutingPattern_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/MutingPattern-r16.h b/asn.1/generated/MutingPattern-r16.h deleted file mode 100644 index 96688374..00000000 --- a/asn.1/generated/MutingPattern-r16.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _MutingPattern_r16_H_ -#define _MutingPattern_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum MutingPattern_r16_PR { - MutingPattern_r16_PR_NOTHING, /* No components present */ - MutingPattern_r16_PR_po2_r16, - MutingPattern_r16_PR_po4_r16, - MutingPattern_r16_PR_po6_r16, - MutingPattern_r16_PR_po8_r16, - MutingPattern_r16_PR_po16_r16, - MutingPattern_r16_PR_po32_r16 - /* Extensions may appear below */ - -} MutingPattern_r16_PR; - -/* MutingPattern-r16 */ -typedef struct MutingPattern_r16 { - MutingPattern_r16_PR present; - union MutingPattern_r16_u { - BIT_STRING_t po2_r16; - BIT_STRING_t po4_r16; - BIT_STRING_t po6_r16; - BIT_STRING_t po8_r16; - BIT_STRING_t po16_r16; - BIT_STRING_t po32_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} MutingPattern_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_MutingPattern_r16; -extern asn_CHOICE_specifics_t asn_SPC_MutingPattern_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_MutingPattern_r16_1[6]; -extern asn_per_constraints_t asn_PER_type_MutingPattern_r16_constr_1; - -#ifdef __cplusplus -} -#endif - -#endif /* _MutingPattern_r16_H_ */ -#include diff --git a/asn.1/generated/NAV-ClockModel.c b/asn.1/generated/NAV-ClockModel.c deleted file mode 100644 index c5abfb7f..00000000 --- a/asn.1/generated/NAV-ClockModel.c +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NAV-ClockModel.h" - -static int -memb_navToc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 37799)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navaf2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navaf1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navaf0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2097152 && value <= 2097151)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navTgd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_navToc_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 37799 } /* (0..37799) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navaf2_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navaf1_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navaf0_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, -2097152, 2097151 } /* (-2097152..2097151) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navTgd_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NAV_ClockModel_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NAV_ClockModel, navToc), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navToc_constr_2, memb_navToc_constraint_1 }, - 0, 0, /* No default value */ - "navToc" - }, - { ATF_NOFLAGS, 0, offsetof(struct NAV_ClockModel, navaf2), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navaf2_constr_3, memb_navaf2_constraint_1 }, - 0, 0, /* No default value */ - "navaf2" - }, - { ATF_NOFLAGS, 0, offsetof(struct NAV_ClockModel, navaf1), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navaf1_constr_4, memb_navaf1_constraint_1 }, - 0, 0, /* No default value */ - "navaf1" - }, - { ATF_NOFLAGS, 0, offsetof(struct NAV_ClockModel, navaf0), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navaf0_constr_5, memb_navaf0_constraint_1 }, - 0, 0, /* No default value */ - "navaf0" - }, - { ATF_NOFLAGS, 0, offsetof(struct NAV_ClockModel, navTgd), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navTgd_constr_6, memb_navTgd_constraint_1 }, - 0, 0, /* No default value */ - "navTgd" - }, -}; -static const ber_tlv_tag_t asn_DEF_NAV_ClockModel_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NAV_ClockModel_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* navToc */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* navaf2 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* navaf1 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* navaf0 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* navTgd */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NAV_ClockModel_specs_1 = { - sizeof(struct NAV_ClockModel), - offsetof(struct NAV_ClockModel, _asn_ctx), - asn_MAP_NAV_ClockModel_tag2el_1, - 5, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NAV_ClockModel = { - "NAV-ClockModel", - "NAV-ClockModel", - &asn_OP_SEQUENCE, - asn_DEF_NAV_ClockModel_tags_1, - sizeof(asn_DEF_NAV_ClockModel_tags_1) - /sizeof(asn_DEF_NAV_ClockModel_tags_1[0]), /* 1 */ - asn_DEF_NAV_ClockModel_tags_1, /* Same as above */ - sizeof(asn_DEF_NAV_ClockModel_tags_1) - /sizeof(asn_DEF_NAV_ClockModel_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NAV_ClockModel_1, - 5, /* Elements count */ - &asn_SPC_NAV_ClockModel_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NCGI-r15.c b/asn.1/generated/NCGI-r15.c deleted file mode 100644 index 9a4c63ac..00000000 --- a/asn.1/generated/NCGI-r15.c +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NCGI-r15.h" - -static int -memb_NativeInteger_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 9)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_NativeInteger_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 9)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_mcc_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size == 3)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_mnc_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 2 && size <= 3)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nr_cellidentity_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 36)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_Member_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_mcc_r15_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_Member_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_mnc_r15_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_mcc_r15_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_mnc_r15_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_cellidentity_r15_constr_6 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 36, 36 } /* (SIZE(36..36)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_mcc_r15_2[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_Member_constr_3, memb_NativeInteger_constraint_2 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_mcc_r15_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_mcc_r15_specs_2 = { - sizeof(struct NCGI_r15__mcc_r15), - offsetof(struct NCGI_r15__mcc_r15, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_mcc_r15_2 = { - "mcc-r15", - "mcc-r15", - &asn_OP_SEQUENCE_OF, - asn_DEF_mcc_r15_tags_2, - sizeof(asn_DEF_mcc_r15_tags_2) - /sizeof(asn_DEF_mcc_r15_tags_2[0]) - 1, /* 1 */ - asn_DEF_mcc_r15_tags_2, /* Same as above */ - sizeof(asn_DEF_mcc_r15_tags_2) - /sizeof(asn_DEF_mcc_r15_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_mcc_r15_constr_2, SEQUENCE_OF_constraint }, - asn_MBR_mcc_r15_2, - 1, /* Single element */ - &asn_SPC_mcc_r15_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_mnc_r15_4[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_Member_constr_5, memb_NativeInteger_constraint_4 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_mnc_r15_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_mnc_r15_specs_4 = { - sizeof(struct NCGI_r15__mnc_r15), - offsetof(struct NCGI_r15__mnc_r15, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_mnc_r15_4 = { - "mnc-r15", - "mnc-r15", - &asn_OP_SEQUENCE_OF, - asn_DEF_mnc_r15_tags_4, - sizeof(asn_DEF_mnc_r15_tags_4) - /sizeof(asn_DEF_mnc_r15_tags_4[0]) - 1, /* 1 */ - asn_DEF_mnc_r15_tags_4, /* Same as above */ - sizeof(asn_DEF_mnc_r15_tags_4) - /sizeof(asn_DEF_mnc_r15_tags_4[0]), /* 2 */ - { 0, &asn_PER_type_mnc_r15_constr_4, SEQUENCE_OF_constraint }, - asn_MBR_mnc_r15_4, - 1, /* Single element */ - &asn_SPC_mnc_r15_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NCGI_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NCGI_r15, mcc_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_mcc_r15_2, - 0, - { 0, &asn_PER_memb_mcc_r15_constr_2, memb_mcc_r15_constraint_1 }, - 0, 0, /* No default value */ - "mcc-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct NCGI_r15, mnc_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_mnc_r15_4, - 0, - { 0, &asn_PER_memb_mnc_r15_constr_4, memb_mnc_r15_constraint_1 }, - 0, 0, /* No default value */ - "mnc-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct NCGI_r15, nr_cellidentity_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_nr_cellidentity_r15_constr_6, memb_nr_cellidentity_r15_constraint_1 }, - 0, 0, /* No default value */ - "nr-cellidentity-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_NCGI_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NCGI_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mcc-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* mnc-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-cellidentity-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NCGI_r15_specs_1 = { - sizeof(struct NCGI_r15), - offsetof(struct NCGI_r15, _asn_ctx), - asn_MAP_NCGI_r15_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NCGI_r15 = { - "NCGI-r15", - "NCGI-r15", - &asn_OP_SEQUENCE, - asn_DEF_NCGI_r15_tags_1, - sizeof(asn_DEF_NCGI_r15_tags_1) - /sizeof(asn_DEF_NCGI_r15_tags_1[0]), /* 1 */ - asn_DEF_NCGI_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_NCGI_r15_tags_1) - /sizeof(asn_DEF_NCGI_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NCGI_r15_1, - 3, /* Elements count */ - &asn_SPC_NCGI_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NMR.c b/asn.1/generated/NMR.c deleted file mode 100644 index fdcc64bd..00000000 --- a/asn.1/generated/NMR.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NMR.h" - -asn_per_constraints_t asn_PER_type_NMR_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 15 } /* (SIZE(1..15)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NMR_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NMRelement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_NMR_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_NMR_specs_1 = { - sizeof(struct NMR), - offsetof(struct NMR, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_NMR = { - "NMR", - "NMR", - &asn_OP_SEQUENCE_OF, - asn_DEF_NMR_tags_1, - sizeof(asn_DEF_NMR_tags_1) - /sizeof(asn_DEF_NMR_tags_1[0]), /* 1 */ - asn_DEF_NMR_tags_1, /* Same as above */ - sizeof(asn_DEF_NMR_tags_1) - /sizeof(asn_DEF_NMR_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_NMR_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_NMR_1, - 1, /* Single element */ - &asn_SPC_NMR_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NMRelement.c b/asn.1/generated/NMRelement.c deleted file mode 100644 index 0523fa67..00000000 --- a/asn.1/generated/NMRelement.c +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NMRelement.h" - -static int -memb_aRFCN_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bSIC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_rxLev_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_aRFCN_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bSIC_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_rxLev_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NMRelement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NMRelement, aRFCN), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_aRFCN_constr_2, memb_aRFCN_constraint_1 }, - 0, 0, /* No default value */ - "aRFCN" - }, - { ATF_NOFLAGS, 0, offsetof(struct NMRelement, bSIC), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bSIC_constr_3, memb_bSIC_constraint_1 }, - 0, 0, /* No default value */ - "bSIC" - }, - { ATF_NOFLAGS, 0, offsetof(struct NMRelement, rxLev), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rxLev_constr_4, memb_rxLev_constraint_1 }, - 0, 0, /* No default value */ - "rxLev" - }, -}; -static const ber_tlv_tag_t asn_DEF_NMRelement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NMRelement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* aRFCN */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bSIC */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* rxLev */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NMRelement_specs_1 = { - sizeof(struct NMRelement), - offsetof(struct NMRelement, _asn_ctx), - asn_MAP_NMRelement_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NMRelement = { - "NMRelement", - "NMRelement", - &asn_OP_SEQUENCE, - asn_DEF_NMRelement_tags_1, - sizeof(asn_DEF_NMRelement_tags_1) - /sizeof(asn_DEF_NMRelement_tags_1[0]), /* 1 */ - asn_DEF_NMRelement_tags_1, /* Same as above */ - sizeof(asn_DEF_NMRelement_tags_1) - /sizeof(asn_DEF_NMRelement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NMRelement_1, - 3, /* Elements count */ - &asn_SPC_NMRelement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NPRS-Info-r14.c b/asn.1/generated/NPRS-Info-r14.c deleted file mode 100644 index 39c81180..00000000 --- a/asn.1/generated/NPRS-Info-r14.c +++ /dev/null @@ -1,1633 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NPRS-Info-r14.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_subframePattern10_r14_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 10)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_subframePattern40_r14_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 40)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po2_r14_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 2)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po4_r14_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 4)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po8_r14_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po16_r14_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 16)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_po2_r14_constraint_48(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 2)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po4_r14_constraint_48(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 4)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po8_r14_constraint_48(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po16_r14_constraint_48(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 16)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_subframePattern10_TDD_r15_constraint_63(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_subframePattern40_TDD_r15_constraint_63(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 32)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po2_r15_constraint_67(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 2)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po4_r15_constraint_67(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 4)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po8_r15_constraint_67(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po16_r15_constraint_67(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 16)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nprsSequenceInfo_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 174)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nprsID_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_operationModeInfoNPRS_r14_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_subframePattern10_r14_constr_10 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_subframePattern40_r14_constr_11 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 40, 40 } /* (SIZE(40..40)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_nprsBitmap_r14_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po2_r14_constr_13 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po4_r14_constr_14 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po8_r14_constr_15 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po16_r14_constr_16 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_nprs_MutingInfoA_r14_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_nprs_Period_r14_constr_20 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_nprs_startSF_r14_constr_27 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 7 } /* (0..7,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_nprs_NumSF_r14_constr_37 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 7 } /* (0..7,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po2_r14_constr_49 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po4_r14_constr_50 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po8_r14_constr_51 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po16_r14_constr_52 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_nprs_MutingInfoB_r14_constr_48 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_sib1_SF_TDD_r15_constr_56 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_subframePattern10_TDD_r15_constr_64 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_subframePattern40_TDD_r15_constr_65 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 32, 32 } /* (SIZE(32..32)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_nprsBitmap_r15_constr_63 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po2_r15_constr_68 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po4_r15_constr_69 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po8_r15_constr_70 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po16_r15_constr_71 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_nprs_MutingInfoA_r15_constr_67 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nprsSequenceInfo_r14_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 174 } /* (0..174) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nprsID_r14_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_operationModeInfoNPRS_r14_value2enum_2[] = { - { 0, 6, "inband" }, - { 1, 10, "standalone" } -}; -static const unsigned int asn_MAP_operationModeInfoNPRS_r14_enum2value_2[] = { - 0, /* inband(0) */ - 1 /* standalone(1) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_operationModeInfoNPRS_r14_specs_2 = { - asn_MAP_operationModeInfoNPRS_r14_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_operationModeInfoNPRS_r14_enum2value_2, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_operationModeInfoNPRS_r14_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_operationModeInfoNPRS_r14_2 = { - "operationModeInfoNPRS-r14", - "operationModeInfoNPRS-r14", - &asn_OP_NativeEnumerated, - asn_DEF_operationModeInfoNPRS_r14_tags_2, - sizeof(asn_DEF_operationModeInfoNPRS_r14_tags_2) - /sizeof(asn_DEF_operationModeInfoNPRS_r14_tags_2[0]) - 1, /* 1 */ - asn_DEF_operationModeInfoNPRS_r14_tags_2, /* Same as above */ - sizeof(asn_DEF_operationModeInfoNPRS_r14_tags_2) - /sizeof(asn_DEF_operationModeInfoNPRS_r14_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_operationModeInfoNPRS_r14_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_operationModeInfoNPRS_r14_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_nprsBitmap_r14_9[] = { - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partA_r14__nprsBitmap_r14, choice.subframePattern10_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_subframePattern10_r14_constr_10, memb_subframePattern10_r14_constraint_9 }, - 0, 0, /* No default value */ - "subframePattern10-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partA_r14__nprsBitmap_r14, choice.subframePattern40_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_subframePattern40_r14_constr_11, memb_subframePattern40_r14_constraint_9 }, - 0, 0, /* No default value */ - "subframePattern40-r14" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_nprsBitmap_r14_tag2el_9[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* subframePattern10-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* subframePattern40-r14 */ -}; -static asn_CHOICE_specifics_t asn_SPC_nprsBitmap_r14_specs_9 = { - sizeof(struct NPRS_Info_r14__partA_r14__nprsBitmap_r14), - offsetof(struct NPRS_Info_r14__partA_r14__nprsBitmap_r14, _asn_ctx), - offsetof(struct NPRS_Info_r14__partA_r14__nprsBitmap_r14, present), - sizeof(((struct NPRS_Info_r14__partA_r14__nprsBitmap_r14 *)0)->present), - asn_MAP_nprsBitmap_r14_tag2el_9, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nprsBitmap_r14_9 = { - "nprsBitmap-r14", - "nprsBitmap-r14", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_nprsBitmap_r14_constr_9, CHOICE_constraint }, - asn_MBR_nprsBitmap_r14_9, - 2, /* Elements count */ - &asn_SPC_nprsBitmap_r14_specs_9 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_nprs_MutingInfoA_r14_12[] = { - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partA_r14__nprs_MutingInfoA_r14, choice.po2_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po2_r14_constr_13, memb_po2_r14_constraint_12 }, - 0, 0, /* No default value */ - "po2-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partA_r14__nprs_MutingInfoA_r14, choice.po4_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po4_r14_constr_14, memb_po4_r14_constraint_12 }, - 0, 0, /* No default value */ - "po4-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partA_r14__nprs_MutingInfoA_r14, choice.po8_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po8_r14_constr_15, memb_po8_r14_constraint_12 }, - 0, 0, /* No default value */ - "po8-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partA_r14__nprs_MutingInfoA_r14, choice.po16_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po16_r14_constr_16, memb_po16_r14_constraint_12 }, - 0, 0, /* No default value */ - "po16-r14" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_nprs_MutingInfoA_r14_tag2el_12[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* po2-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* po4-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* po8-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* po16-r14 */ -}; -static asn_CHOICE_specifics_t asn_SPC_nprs_MutingInfoA_r14_specs_12 = { - sizeof(struct NPRS_Info_r14__partA_r14__nprs_MutingInfoA_r14), - offsetof(struct NPRS_Info_r14__partA_r14__nprs_MutingInfoA_r14, _asn_ctx), - offsetof(struct NPRS_Info_r14__partA_r14__nprs_MutingInfoA_r14, present), - sizeof(((struct NPRS_Info_r14__partA_r14__nprs_MutingInfoA_r14 *)0)->present), - asn_MAP_nprs_MutingInfoA_r14_tag2el_12, - 4, /* Count of tags in the map */ - 0, 0, - 4 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nprs_MutingInfoA_r14_12 = { - "nprs-MutingInfoA-r14", - "nprs-MutingInfoA-r14", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_nprs_MutingInfoA_r14_constr_12, CHOICE_constraint }, - asn_MBR_nprs_MutingInfoA_r14_12, - 4, /* Elements count */ - &asn_SPC_nprs_MutingInfoA_r14_specs_12 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_partA_r14_8[] = { - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partA_r14, nprsBitmap_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_nprsBitmap_r14_9, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nprsBitmap-r14" - }, - { ATF_POINTER, 1, offsetof(struct NPRS_Info_r14__partA_r14, nprs_MutingInfoA_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_nprs_MutingInfoA_r14_12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nprs-MutingInfoA-r14" - }, -}; -static const int asn_MAP_partA_r14_oms_8[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_partA_r14_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_partA_r14_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nprsBitmap-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nprs-MutingInfoA-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_partA_r14_specs_8 = { - sizeof(struct NPRS_Info_r14__partA_r14), - offsetof(struct NPRS_Info_r14__partA_r14, _asn_ctx), - asn_MAP_partA_r14_tag2el_8, - 2, /* Count of tags in the map */ - asn_MAP_partA_r14_oms_8, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_partA_r14_8 = { - "partA-r14", - "partA-r14", - &asn_OP_SEQUENCE, - asn_DEF_partA_r14_tags_8, - sizeof(asn_DEF_partA_r14_tags_8) - /sizeof(asn_DEF_partA_r14_tags_8[0]) - 1, /* 1 */ - asn_DEF_partA_r14_tags_8, /* Same as above */ - sizeof(asn_DEF_partA_r14_tags_8) - /sizeof(asn_DEF_partA_r14_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_partA_r14_8, - 2, /* Elements count */ - &asn_SPC_partA_r14_specs_8 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_nprs_Period_r14_value2enum_20[] = { - { 0, 5, "ms160" }, - { 1, 5, "ms320" }, - { 2, 5, "ms640" }, - { 3, 6, "ms1280" }, - { 4, 12, "ms2560-v1510" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_nprs_Period_r14_enum2value_20[] = { - 3, /* ms1280(3) */ - 0, /* ms160(0) */ - 4, /* ms2560-v1510(4) */ - 1, /* ms320(1) */ - 2 /* ms640(2) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_nprs_Period_r14_specs_20 = { - asn_MAP_nprs_Period_r14_value2enum_20, /* "tag" => N; sorted by tag */ - asn_MAP_nprs_Period_r14_enum2value_20, /* N => "tag"; sorted by N */ - 5, /* Number of elements in the maps */ - 5, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_nprs_Period_r14_tags_20[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nprs_Period_r14_20 = { - "nprs-Period-r14", - "nprs-Period-r14", - &asn_OP_NativeEnumerated, - asn_DEF_nprs_Period_r14_tags_20, - sizeof(asn_DEF_nprs_Period_r14_tags_20) - /sizeof(asn_DEF_nprs_Period_r14_tags_20[0]) - 1, /* 1 */ - asn_DEF_nprs_Period_r14_tags_20, /* Same as above */ - sizeof(asn_DEF_nprs_Period_r14_tags_20) - /sizeof(asn_DEF_nprs_Period_r14_tags_20[0]), /* 2 */ - { 0, &asn_PER_type_nprs_Period_r14_constr_20, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_nprs_Period_r14_specs_20 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_nprs_startSF_r14_value2enum_27[] = { - { 0, 4, "zero" }, - { 1, 10, "one-eighth" }, - { 2, 11, "two-eighths" }, - { 3, 13, "three-eighths" }, - { 4, 12, "four-eighths" }, - { 5, 12, "five-eighths" }, - { 6, 11, "six-eighths" }, - { 7, 13, "seven-eighths" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_nprs_startSF_r14_enum2value_27[] = { - 5, /* five-eighths(5) */ - 4, /* four-eighths(4) */ - 1, /* one-eighth(1) */ - 7, /* seven-eighths(7) */ - 6, /* six-eighths(6) */ - 3, /* three-eighths(3) */ - 2, /* two-eighths(2) */ - 0 /* zero(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_nprs_startSF_r14_specs_27 = { - asn_MAP_nprs_startSF_r14_value2enum_27, /* "tag" => N; sorted by tag */ - asn_MAP_nprs_startSF_r14_enum2value_27, /* N => "tag"; sorted by N */ - 8, /* Number of elements in the maps */ - 9, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_nprs_startSF_r14_tags_27[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nprs_startSF_r14_27 = { - "nprs-startSF-r14", - "nprs-startSF-r14", - &asn_OP_NativeEnumerated, - asn_DEF_nprs_startSF_r14_tags_27, - sizeof(asn_DEF_nprs_startSF_r14_tags_27) - /sizeof(asn_DEF_nprs_startSF_r14_tags_27[0]) - 1, /* 1 */ - asn_DEF_nprs_startSF_r14_tags_27, /* Same as above */ - sizeof(asn_DEF_nprs_startSF_r14_tags_27) - /sizeof(asn_DEF_nprs_startSF_r14_tags_27[0]), /* 2 */ - { 0, &asn_PER_type_nprs_startSF_r14_constr_27, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_nprs_startSF_r14_specs_27 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_nprs_NumSF_r14_value2enum_37[] = { - { 0, 4, "sf10" }, - { 1, 4, "sf20" }, - { 2, 4, "sf40" }, - { 3, 4, "sf80" }, - { 4, 5, "sf160" }, - { 5, 5, "sf320" }, - { 6, 5, "sf640" }, - { 7, 6, "sf1280" }, - { 8, 12, "sf2560-v1510" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_nprs_NumSF_r14_enum2value_37[] = { - 0, /* sf10(0) */ - 7, /* sf1280(7) */ - 4, /* sf160(4) */ - 1, /* sf20(1) */ - 8, /* sf2560-v1510(8) */ - 5, /* sf320(5) */ - 2, /* sf40(2) */ - 6, /* sf640(6) */ - 3 /* sf80(3) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_nprs_NumSF_r14_specs_37 = { - asn_MAP_nprs_NumSF_r14_value2enum_37, /* "tag" => N; sorted by tag */ - asn_MAP_nprs_NumSF_r14_enum2value_37, /* N => "tag"; sorted by N */ - 9, /* Number of elements in the maps */ - 9, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_nprs_NumSF_r14_tags_37[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nprs_NumSF_r14_37 = { - "nprs-NumSF-r14", - "nprs-NumSF-r14", - &asn_OP_NativeEnumerated, - asn_DEF_nprs_NumSF_r14_tags_37, - sizeof(asn_DEF_nprs_NumSF_r14_tags_37) - /sizeof(asn_DEF_nprs_NumSF_r14_tags_37[0]) - 1, /* 1 */ - asn_DEF_nprs_NumSF_r14_tags_37, /* Same as above */ - sizeof(asn_DEF_nprs_NumSF_r14_tags_37) - /sizeof(asn_DEF_nprs_NumSF_r14_tags_37[0]), /* 2 */ - { 0, &asn_PER_type_nprs_NumSF_r14_constr_37, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_nprs_NumSF_r14_specs_37 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_nprs_MutingInfoB_r14_48[] = { - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partB_r14__nprs_MutingInfoB_r14, choice.po2_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po2_r14_constr_49, memb_po2_r14_constraint_48 }, - 0, 0, /* No default value */ - "po2-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partB_r14__nprs_MutingInfoB_r14, choice.po4_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po4_r14_constr_50, memb_po4_r14_constraint_48 }, - 0, 0, /* No default value */ - "po4-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partB_r14__nprs_MutingInfoB_r14, choice.po8_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po8_r14_constr_51, memb_po8_r14_constraint_48 }, - 0, 0, /* No default value */ - "po8-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partB_r14__nprs_MutingInfoB_r14, choice.po16_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po16_r14_constr_52, memb_po16_r14_constraint_48 }, - 0, 0, /* No default value */ - "po16-r14" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_nprs_MutingInfoB_r14_tag2el_48[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* po2-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* po4-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* po8-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* po16-r14 */ -}; -static asn_CHOICE_specifics_t asn_SPC_nprs_MutingInfoB_r14_specs_48 = { - sizeof(struct NPRS_Info_r14__partB_r14__nprs_MutingInfoB_r14), - offsetof(struct NPRS_Info_r14__partB_r14__nprs_MutingInfoB_r14, _asn_ctx), - offsetof(struct NPRS_Info_r14__partB_r14__nprs_MutingInfoB_r14, present), - sizeof(((struct NPRS_Info_r14__partB_r14__nprs_MutingInfoB_r14 *)0)->present), - asn_MAP_nprs_MutingInfoB_r14_tag2el_48, - 4, /* Count of tags in the map */ - 0, 0, - 4 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nprs_MutingInfoB_r14_48 = { - "nprs-MutingInfoB-r14", - "nprs-MutingInfoB-r14", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_nprs_MutingInfoB_r14_constr_48, CHOICE_constraint }, - asn_MBR_nprs_MutingInfoB_r14_48, - 4, /* Elements count */ - &asn_SPC_nprs_MutingInfoB_r14_specs_48 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_sib1_SF_TDD_r15_value2enum_56[] = { - { 0, 3, "sf0" }, - { 1, 3, "sf4" }, - { 2, 7, "sf0and5" } -}; -static const unsigned int asn_MAP_sib1_SF_TDD_r15_enum2value_56[] = { - 0, /* sf0(0) */ - 2, /* sf0and5(2) */ - 1 /* sf4(1) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_sib1_SF_TDD_r15_specs_56 = { - asn_MAP_sib1_SF_TDD_r15_value2enum_56, /* "tag" => N; sorted by tag */ - asn_MAP_sib1_SF_TDD_r15_enum2value_56, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_sib1_SF_TDD_r15_tags_56[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_sib1_SF_TDD_r15_56 = { - "sib1-SF-TDD-r15", - "sib1-SF-TDD-r15", - &asn_OP_NativeEnumerated, - asn_DEF_sib1_SF_TDD_r15_tags_56, - sizeof(asn_DEF_sib1_SF_TDD_r15_tags_56) - /sizeof(asn_DEF_sib1_SF_TDD_r15_tags_56[0]) - 1, /* 1 */ - asn_DEF_sib1_SF_TDD_r15_tags_56, /* Same as above */ - sizeof(asn_DEF_sib1_SF_TDD_r15_tags_56) - /sizeof(asn_DEF_sib1_SF_TDD_r15_tags_56[0]), /* 2 */ - { 0, &asn_PER_type_sib1_SF_TDD_r15_constr_56, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_sib1_SF_TDD_r15_specs_56 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_55[] = { - { ATF_POINTER, 1, offsetof(struct NPRS_Info_r14__partB_r14__ext1, sib1_SF_TDD_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_sib1_SF_TDD_r15_56, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sib1-SF-TDD-r15" - }, -}; -static const int asn_MAP_ext1_oms_55[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_55[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_55[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* sib1-SF-TDD-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_55 = { - sizeof(struct NPRS_Info_r14__partB_r14__ext1), - offsetof(struct NPRS_Info_r14__partB_r14__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_55, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_55, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_55 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_55, - sizeof(asn_DEF_ext1_tags_55) - /sizeof(asn_DEF_ext1_tags_55[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_55, /* Same as above */ - sizeof(asn_DEF_ext1_tags_55) - /sizeof(asn_DEF_ext1_tags_55[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_55, - 1, /* Elements count */ - &asn_SPC_ext1_specs_55 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_partB_r14_19[] = { - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partB_r14, nprs_Period_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_nprs_Period_r14_20, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nprs-Period-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partB_r14, nprs_startSF_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_nprs_startSF_r14_27, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nprs-startSF-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partB_r14, nprs_NumSF_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_nprs_NumSF_r14_37, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nprs-NumSF-r14" - }, - { ATF_POINTER, 2, offsetof(struct NPRS_Info_r14__partB_r14, nprs_MutingInfoB_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_nprs_MutingInfoB_r14_48, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nprs-MutingInfoB-r14" - }, - { ATF_POINTER, 1, offsetof(struct NPRS_Info_r14__partB_r14, ext1), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - 0, - &asn_DEF_ext1_55, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_partB_r14_oms_19[] = { 3, 4 }; -static const ber_tlv_tag_t asn_DEF_partB_r14_tags_19[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_partB_r14_tag2el_19[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nprs-Period-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nprs-startSF-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nprs-NumSF-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nprs-MutingInfoB-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext1 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_partB_r14_specs_19 = { - sizeof(struct NPRS_Info_r14__partB_r14), - offsetof(struct NPRS_Info_r14__partB_r14, _asn_ctx), - asn_MAP_partB_r14_tag2el_19, - 5, /* Count of tags in the map */ - asn_MAP_partB_r14_oms_19, /* Optional members */ - 1, 1, /* Root/Additions */ - 4, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_partB_r14_19 = { - "partB-r14", - "partB-r14", - &asn_OP_SEQUENCE, - asn_DEF_partB_r14_tags_19, - sizeof(asn_DEF_partB_r14_tags_19) - /sizeof(asn_DEF_partB_r14_tags_19[0]) - 1, /* 1 */ - asn_DEF_partB_r14_tags_19, /* Same as above */ - sizeof(asn_DEF_partB_r14_tags_19) - /sizeof(asn_DEF_partB_r14_tags_19[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_partB_r14_19, - 5, /* Elements count */ - &asn_SPC_partB_r14_specs_19 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_nprsBitmap_r15_63[] = { - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprsBitmap_r15, choice.subframePattern10_TDD_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_subframePattern10_TDD_r15_constr_64, memb_subframePattern10_TDD_r15_constraint_63 }, - 0, 0, /* No default value */ - "subframePattern10-TDD-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprsBitmap_r15, choice.subframePattern40_TDD_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_subframePattern40_TDD_r15_constr_65, memb_subframePattern40_TDD_r15_constraint_63 }, - 0, 0, /* No default value */ - "subframePattern40-TDD-r15" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_nprsBitmap_r15_tag2el_63[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* subframePattern10-TDD-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* subframePattern40-TDD-r15 */ -}; -static asn_CHOICE_specifics_t asn_SPC_nprsBitmap_r15_specs_63 = { - sizeof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprsBitmap_r15), - offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprsBitmap_r15, _asn_ctx), - offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprsBitmap_r15, present), - sizeof(((struct NPRS_Info_r14__ext1__partA_TDD_r15__nprsBitmap_r15 *)0)->present), - asn_MAP_nprsBitmap_r15_tag2el_63, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nprsBitmap_r15_63 = { - "nprsBitmap-r15", - "nprsBitmap-r15", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_nprsBitmap_r15_constr_63, CHOICE_constraint }, - asn_MBR_nprsBitmap_r15_63, - 2, /* Elements count */ - &asn_SPC_nprsBitmap_r15_specs_63 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_nprs_MutingInfoA_r15_67[] = { - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprs_MutingInfoA_r15, choice.po2_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po2_r15_constr_68, memb_po2_r15_constraint_67 }, - 0, 0, /* No default value */ - "po2-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprs_MutingInfoA_r15, choice.po4_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po4_r15_constr_69, memb_po4_r15_constraint_67 }, - 0, 0, /* No default value */ - "po4-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprs_MutingInfoA_r15, choice.po8_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po8_r15_constr_70, memb_po8_r15_constraint_67 }, - 0, 0, /* No default value */ - "po8-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprs_MutingInfoA_r15, choice.po16_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po16_r15_constr_71, memb_po16_r15_constraint_67 }, - 0, 0, /* No default value */ - "po16-r15" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_nprs_MutingInfoA_r15_tag2el_67[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* po2-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* po4-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* po8-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* po16-r15 */ -}; -static asn_CHOICE_specifics_t asn_SPC_nprs_MutingInfoA_r15_specs_67 = { - sizeof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprs_MutingInfoA_r15), - offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprs_MutingInfoA_r15, _asn_ctx), - offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprs_MutingInfoA_r15, present), - sizeof(((struct NPRS_Info_r14__ext1__partA_TDD_r15__nprs_MutingInfoA_r15 *)0)->present), - asn_MAP_nprs_MutingInfoA_r15_tag2el_67, - 4, /* Count of tags in the map */ - 0, 0, - 4 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nprs_MutingInfoA_r15_67 = { - "nprs-MutingInfoA-r15", - "nprs-MutingInfoA-r15", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_nprs_MutingInfoA_r15_constr_67, CHOICE_constraint }, - asn_MBR_nprs_MutingInfoA_r15_67, - 4, /* Elements count */ - &asn_SPC_nprs_MutingInfoA_r15_specs_67 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_partA_TDD_r15_62[] = { - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15, nprsBitmap_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_nprsBitmap_r15_63, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nprsBitmap-r15" - }, - { ATF_POINTER, 1, offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15, nprs_MutingInfoA_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_nprs_MutingInfoA_r15_67, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nprs-MutingInfoA-r15" - }, -}; -static const int asn_MAP_partA_TDD_r15_oms_62[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_partA_TDD_r15_tags_62[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_partA_TDD_r15_tag2el_62[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nprsBitmap-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nprs-MutingInfoA-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_partA_TDD_r15_specs_62 = { - sizeof(struct NPRS_Info_r14__ext1__partA_TDD_r15), - offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15, _asn_ctx), - asn_MAP_partA_TDD_r15_tag2el_62, - 2, /* Count of tags in the map */ - asn_MAP_partA_TDD_r15_oms_62, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_partA_TDD_r15_62 = { - "partA-TDD-r15", - "partA-TDD-r15", - &asn_OP_SEQUENCE, - asn_DEF_partA_TDD_r15_tags_62, - sizeof(asn_DEF_partA_TDD_r15_tags_62) - /sizeof(asn_DEF_partA_TDD_r15_tags_62[0]) - 1, /* 1 */ - asn_DEF_partA_TDD_r15_tags_62, /* Same as above */ - sizeof(asn_DEF_partA_TDD_r15_tags_62) - /sizeof(asn_DEF_partA_TDD_r15_tags_62[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_partA_TDD_r15_62, - 2, /* Elements count */ - &asn_SPC_partA_TDD_r15_specs_62 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_61[] = { - { ATF_POINTER, 1, offsetof(struct NPRS_Info_r14__ext1, partA_TDD_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_partA_TDD_r15_62, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "partA-TDD-r15" - }, -}; -static const int asn_MAP_ext1_oms_61[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_61[] = { - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_61[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* partA-TDD-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_61 = { - sizeof(struct NPRS_Info_r14__ext1), - offsetof(struct NPRS_Info_r14__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_61, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_61, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_61 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_61, - sizeof(asn_DEF_ext1_tags_61) - /sizeof(asn_DEF_ext1_tags_61[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_61, /* Same as above */ - sizeof(asn_DEF_ext1_tags_61) - /sizeof(asn_DEF_ext1_tags_61[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_61, - 1, /* Elements count */ - &asn_SPC_ext1_specs_61 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NPRS_Info_r14_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14, operationModeInfoNPRS_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_operationModeInfoNPRS_r14_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "operationModeInfoNPRS-r14" - }, - { ATF_POINTER, 6, offsetof(struct NPRS_Info_r14, nprs_carrier_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CarrierFreq_NB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nprs-carrier-r14" - }, - { ATF_POINTER, 5, offsetof(struct NPRS_Info_r14, nprsSequenceInfo_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nprsSequenceInfo_r14_constr_6, memb_nprsSequenceInfo_r14_constraint_1 }, - 0, 0, /* No default value */ - "nprsSequenceInfo-r14" - }, - { ATF_POINTER, 4, offsetof(struct NPRS_Info_r14, nprsID_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nprsID_r14_constr_7, memb_nprsID_r14_constraint_1 }, - 0, 0, /* No default value */ - "nprsID-r14" - }, - { ATF_POINTER, 3, offsetof(struct NPRS_Info_r14, partA_r14), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - 0, - &asn_DEF_partA_r14_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "partA-r14" - }, - { ATF_POINTER, 2, offsetof(struct NPRS_Info_r14, partB_r14), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - 0, - &asn_DEF_partB_r14_19, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "partB-r14" - }, - { ATF_POINTER, 1, offsetof(struct NPRS_Info_r14, ext1), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - 0, - &asn_DEF_ext1_61, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_NPRS_Info_r14_oms_1[] = { 1, 2, 3, 4, 5, 6 }; -static const ber_tlv_tag_t asn_DEF_NPRS_Info_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NPRS_Info_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* operationModeInfoNPRS-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nprs-carrier-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nprsSequenceInfo-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nprsID-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* partA-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* partB-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NPRS_Info_r14_specs_1 = { - sizeof(struct NPRS_Info_r14), - offsetof(struct NPRS_Info_r14, _asn_ctx), - asn_MAP_NPRS_Info_r14_tag2el_1, - 7, /* Count of tags in the map */ - asn_MAP_NPRS_Info_r14_oms_1, /* Optional members */ - 5, 1, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NPRS_Info_r14 = { - "NPRS-Info-r14", - "NPRS-Info-r14", - &asn_OP_SEQUENCE, - asn_DEF_NPRS_Info_r14_tags_1, - sizeof(asn_DEF_NPRS_Info_r14_tags_1) - /sizeof(asn_DEF_NPRS_Info_r14_tags_1[0]), /* 1 */ - asn_DEF_NPRS_Info_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_NPRS_Info_r14_tags_1) - /sizeof(asn_DEF_NPRS_Info_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NPRS_Info_r14_1, - 7, /* Elements count */ - &asn_SPC_NPRS_Info_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-AdditionalPath-r16.c b/asn.1/generated/NR-AdditionalPath-r16.c deleted file mode 100644 index 21e3be27..00000000 --- a/asn.1/generated/NR-AdditionalPath-r16.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-AdditionalPath-r16.h" - -static int -memb_nr_relativeTimeDifference_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_nr_relativeTimeDifference_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (1..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_AdditionalPath_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_AdditionalPath_r16, nr_relativeTimeDifference_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_relativeTimeDifference_r16_constr_2, memb_nr_relativeTimeDifference_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-relativeTimeDifference-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_AdditionalPath_r16, nr_path_Quality_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_MeasQuality, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-path-Quality-r16" - }, -}; -static const int asn_MAP_NR_AdditionalPath_r16_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_NR_AdditionalPath_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_AdditionalPath_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-relativeTimeDifference-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-path-Quality-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_AdditionalPath_r16_specs_1 = { - sizeof(struct NR_AdditionalPath_r16), - offsetof(struct NR_AdditionalPath_r16, _asn_ctx), - asn_MAP_NR_AdditionalPath_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_NR_AdditionalPath_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_AdditionalPath_r16 = { - "NR-AdditionalPath-r16", - "NR-AdditionalPath-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_AdditionalPath_r16_tags_1, - sizeof(asn_DEF_NR_AdditionalPath_r16_tags_1) - /sizeof(asn_DEF_NR_AdditionalPath_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_AdditionalPath_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_AdditionalPath_r16_tags_1) - /sizeof(asn_DEF_NR_AdditionalPath_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_AdditionalPath_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_AdditionalPath_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-AdditionalPath-r16.h b/asn.1/generated/NR-AdditionalPath-r16.h deleted file mode 100644 index 3fcda487..00000000 --- a/asn.1/generated/NR-AdditionalPath-r16.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_AdditionalPath_r16_H_ -#define _NR_AdditionalPath_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct OTDOA_MeasQuality; - -/* NR-AdditionalPath-r16 */ -typedef struct NR_AdditionalPath_r16 { - long nr_relativeTimeDifference_r16; - struct OTDOA_MeasQuality *nr_path_Quality_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_AdditionalPath_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_AdditionalPath_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_AdditionalPath_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_AdditionalPath_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "OTDOA-MeasQuality.h" - -#endif /* _NR_AdditionalPath_r16_H_ */ -#include diff --git a/asn.1/generated/NR-AdditionalPathList-r16.c b/asn.1/generated/NR-AdditionalPathList-r16.c deleted file mode 100644 index 00496a5d..00000000 --- a/asn.1/generated/NR-AdditionalPathList-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-AdditionalPathList-r16.h" - -asn_per_constraints_t asn_PER_type_NR_AdditionalPathList_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_AdditionalPathList_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NR_AdditionalPath_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_AdditionalPathList_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_NR_AdditionalPathList_r16_specs_1 = { - sizeof(struct NR_AdditionalPathList_r16), - offsetof(struct NR_AdditionalPathList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_AdditionalPathList_r16 = { - "NR-AdditionalPathList-r16", - "NR-AdditionalPathList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_NR_AdditionalPathList_r16_tags_1, - sizeof(asn_DEF_NR_AdditionalPathList_r16_tags_1) - /sizeof(asn_DEF_NR_AdditionalPathList_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_AdditionalPathList_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_AdditionalPathList_r16_tags_1) - /sizeof(asn_DEF_NR_AdditionalPathList_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_NR_AdditionalPathList_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_NR_AdditionalPathList_r16_1, - 1, /* Single element */ - &asn_SPC_NR_AdditionalPathList_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-AoD-AdditionalMeasurementElement-r16.c b/asn.1/generated/NR-DL-AoD-AdditionalMeasurementElement-r16.c deleted file mode 100644 index d69abb38..00000000 --- a/asn.1/generated/NR-DL-AoD-AdditionalMeasurementElement-r16.c +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-AoD-AdditionalMeasurementElement-r16.h" - -static int -memb_nr_PRS_RSRP_ResultDiff_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nr_DL_PRS_RxBeamIndex_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_nr_PRS_RSRP_ResultDiff_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (1..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_RxBeamIndex_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_DL_AoD_AdditionalMeasurementElement_r16_1[] = { - { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r16, nr_DL_PRS_ResourceID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_ResourceID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-ResourceID-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r16, nr_DL_PRS_ResourceSetID_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_ResourceSetID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-ResourceSetID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r16, nr_TimeStamp_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_TimeStamp_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-TimeStamp-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r16, nr_PRS_RSRP_ResultDiff_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_PRS_RSRP_ResultDiff_r16_constr_5, memb_nr_PRS_RSRP_ResultDiff_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-PRS-RSRP-ResultDiff-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r16, nr_DL_PRS_RxBeamIndex_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_DL_PRS_RxBeamIndex_r16_constr_6, memb_nr_DL_PRS_RxBeamIndex_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-DL-PRS-RxBeamIndex-r16" - }, -}; -static const int asn_MAP_NR_DL_AoD_AdditionalMeasurementElement_r16_oms_1[] = { 0, 1, 3 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_AdditionalMeasurementElement_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-ResourceID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-ResourceSetID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-TimeStamp-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-PRS-RSRP-ResultDiff-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* nr-DL-PRS-RxBeamIndex-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_AdditionalMeasurementElement_r16_specs_1 = { - sizeof(struct NR_DL_AoD_AdditionalMeasurementElement_r16), - offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r16, _asn_ctx), - asn_MAP_NR_DL_AoD_AdditionalMeasurementElement_r16_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_NR_DL_AoD_AdditionalMeasurementElement_r16_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16 = { - "NR-DL-AoD-AdditionalMeasurementElement-r16", - "NR-DL-AoD-AdditionalMeasurementElement-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16_tags_1, - sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_AoD_AdditionalMeasurementElement_r16_1, - 5, /* Elements count */ - &asn_SPC_NR_DL_AoD_AdditionalMeasurementElement_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-AoD-AdditionalMeasurementElement-r16.h b/asn.1/generated/NR-DL-AoD-AdditionalMeasurementElement-r16.h deleted file mode 100644 index 620a80e6..00000000 --- a/asn.1/generated/NR-DL-AoD-AdditionalMeasurementElement-r16.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_AoD_AdditionalMeasurementElement_r16_H_ -#define _NR_DL_AoD_AdditionalMeasurementElement_r16_H_ - - -#include - -/* Including external dependencies */ -#include "NR-DL-PRS-ResourceID-r16.h" -#include "NR-DL-PRS-ResourceSetID-r16.h" -#include "NR-TimeStamp-r16.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* NR-DL-AoD-AdditionalMeasurementElement-r16 */ -typedef struct NR_DL_AoD_AdditionalMeasurementElement_r16 { - NR_DL_PRS_ResourceID_r16_t *nr_DL_PRS_ResourceID_r16 /* OPTIONAL */; - NR_DL_PRS_ResourceSetID_r16_t *nr_DL_PRS_ResourceSetID_r16 /* OPTIONAL */; - NR_TimeStamp_r16_t nr_TimeStamp_r16; - long *nr_PRS_RSRP_ResultDiff_r16 /* OPTIONAL */; - long nr_DL_PRS_RxBeamIndex_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_AoD_AdditionalMeasurementElement_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_AdditionalMeasurementElement_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_AdditionalMeasurementElement_r16_1[5]; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_DL_AoD_AdditionalMeasurementElement_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-AoD-AdditionalMeasurements-r16.c b/asn.1/generated/NR-DL-AoD-AdditionalMeasurements-r16.c deleted file mode 100644 index 802835f6..00000000 --- a/asn.1/generated/NR-DL-AoD-AdditionalMeasurements-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-AoD-AdditionalMeasurements-r16.h" - -asn_per_constraints_t asn_PER_type_NR_DL_AoD_AdditionalMeasurements_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 7 } /* (SIZE(1..7)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_DL_AoD_AdditionalMeasurements_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_AdditionalMeasurements_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_NR_DL_AoD_AdditionalMeasurements_r16_specs_1 = { - sizeof(struct NR_DL_AoD_AdditionalMeasurements_r16), - offsetof(struct NR_DL_AoD_AdditionalMeasurements_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_AdditionalMeasurements_r16 = { - "NR-DL-AoD-AdditionalMeasurements-r16", - "NR-DL-AoD-AdditionalMeasurements-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_NR_DL_AoD_AdditionalMeasurements_r16_tags_1, - sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurements_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurements_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_AoD_AdditionalMeasurements_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurements_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurements_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_NR_DL_AoD_AdditionalMeasurements_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_NR_DL_AoD_AdditionalMeasurements_r16_1, - 1, /* Single element */ - &asn_SPC_NR_DL_AoD_AdditionalMeasurements_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-AoD-Error-r16.c b/asn.1/generated/NR-DL-AoD-Error-r16.c deleted file mode 100644 index a518f1ba..00000000 --- a/asn.1/generated/NR-DL-AoD-Error-r16.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-AoD-Error-r16.h" - -asn_per_constraints_t asn_PER_type_NR_DL_AoD_Error_r16_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_DL_AoD_Error_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_Error_r16, choice.locationServerErrorCauses_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_AoD_LocationServerErrorCauses_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationServerErrorCauses-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_Error_r16, choice.targetDeviceErrorCauses_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "targetDeviceErrorCauses-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_Error_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses-r16 */ -}; -asn_CHOICE_specifics_t asn_SPC_NR_DL_AoD_Error_r16_specs_1 = { - sizeof(struct NR_DL_AoD_Error_r16), - offsetof(struct NR_DL_AoD_Error_r16, _asn_ctx), - offsetof(struct NR_DL_AoD_Error_r16, present), - sizeof(((struct NR_DL_AoD_Error_r16 *)0)->present), - asn_MAP_NR_DL_AoD_Error_r16_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_Error_r16 = { - "NR-DL-AoD-Error-r16", - "NR-DL-AoD-Error-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_NR_DL_AoD_Error_r16_constr_1, CHOICE_constraint }, - asn_MBR_NR_DL_AoD_Error_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_DL_AoD_Error_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-AoD-LocationInformation-r16.c b/asn.1/generated/NR-DL-AoD-LocationInformation-r16.c deleted file mode 100644 index 2223e02a..00000000 --- a/asn.1/generated/NR-DL-AoD-LocationInformation-r16.c +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-AoD-LocationInformation-r16.h" - -static asn_per_constraints_t asn_PER_type_measurementReferenceTime_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_measurementReferenceTime_r16_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_LocationInformation_r16__measurementReferenceTime_r16, choice.sfn_time_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_TimeStamp_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sfn-time-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_LocationInformation_r16__measurementReferenceTime_r16, choice.utc_time_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTCTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utc-time-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_measurementReferenceTime_r16_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sfn-time-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* utc-time-r16 */ -}; -static asn_CHOICE_specifics_t asn_SPC_measurementReferenceTime_r16_specs_2 = { - sizeof(struct NR_DL_AoD_LocationInformation_r16__measurementReferenceTime_r16), - offsetof(struct NR_DL_AoD_LocationInformation_r16__measurementReferenceTime_r16, _asn_ctx), - offsetof(struct NR_DL_AoD_LocationInformation_r16__measurementReferenceTime_r16, present), - sizeof(((struct NR_DL_AoD_LocationInformation_r16__measurementReferenceTime_r16 *)0)->present), - asn_MAP_measurementReferenceTime_r16_tag2el_2, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_measurementReferenceTime_r16_2 = { - "measurementReferenceTime-r16", - "measurementReferenceTime-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_measurementReferenceTime_r16_constr_2, CHOICE_constraint }, - asn_MBR_measurementReferenceTime_r16_2, - 2, /* Elements count */ - &asn_SPC_measurementReferenceTime_r16_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_DL_AoD_LocationInformation_r16_1[] = { - { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_LocationInformation_r16, measurementReferenceTime_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_measurementReferenceTime_r16_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "measurementReferenceTime-r16" - }, -}; -static const int asn_MAP_NR_DL_AoD_LocationInformation_r16_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_LocationInformation_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_LocationInformation_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* measurementReferenceTime-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_LocationInformation_r16_specs_1 = { - sizeof(struct NR_DL_AoD_LocationInformation_r16), - offsetof(struct NR_DL_AoD_LocationInformation_r16, _asn_ctx), - asn_MAP_NR_DL_AoD_LocationInformation_r16_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_NR_DL_AoD_LocationInformation_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_LocationInformation_r16 = { - "NR-DL-AoD-LocationInformation-r16", - "NR-DL-AoD-LocationInformation-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_AoD_LocationInformation_r16_tags_1, - sizeof(asn_DEF_NR_DL_AoD_LocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_LocationInformation_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_AoD_LocationInformation_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_AoD_LocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_LocationInformation_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_AoD_LocationInformation_r16_1, - 1, /* Elements count */ - &asn_SPC_NR_DL_AoD_LocationInformation_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-AoD-LocationServerErrorCauses-r16.c b/asn.1/generated/NR-DL-AoD-LocationServerErrorCauses-r16.c deleted file mode 100644 index 7d2ff7e2..00000000 --- a/asn.1/generated/NR-DL-AoD-LocationServerErrorCauses-r16.c +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-AoD-LocationServerErrorCauses-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_r16_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 34, "assistanceDataNotSupportedByServer" }, - { 2, 55, "assistanceDataSupportedButCurrentlyNotAvailableByServer" }, - { 3, 45, "notProvidedAssistanceDataNotSupportedByServer" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_r16_enum2value_2[] = { - 1, /* assistanceDataNotSupportedByServer(1) */ - 2, /* assistanceDataSupportedButCurrentlyNotAvailableByServer(2) */ - 3, /* notProvidedAssistanceDataNotSupportedByServer(3) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_r16_specs_2 = { - asn_MAP_cause_r16_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_r16_enum2value_2, /* N => "tag"; sorted by N */ - 4, /* Number of elements in the maps */ - 5, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_r16_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_r16_2 = { - "cause-r16", - "cause-r16", - &asn_OP_NativeEnumerated, - asn_DEF_cause_r16_tags_2, - sizeof(asn_DEF_cause_r16_tags_2) - /sizeof(asn_DEF_cause_r16_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_r16_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_r16_tags_2) - /sizeof(asn_DEF_cause_r16_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_r16_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_r16_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_DL_AoD_LocationServerErrorCauses_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_LocationServerErrorCauses_r16, cause_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_r16_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_LocationServerErrorCauses_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_LocationServerErrorCauses_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_LocationServerErrorCauses_r16_specs_1 = { - sizeof(struct NR_DL_AoD_LocationServerErrorCauses_r16), - offsetof(struct NR_DL_AoD_LocationServerErrorCauses_r16, _asn_ctx), - asn_MAP_NR_DL_AoD_LocationServerErrorCauses_r16_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_LocationServerErrorCauses_r16 = { - "NR-DL-AoD-LocationServerErrorCauses-r16", - "NR-DL-AoD-LocationServerErrorCauses-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_AoD_LocationServerErrorCauses_r16_tags_1, - sizeof(asn_DEF_NR_DL_AoD_LocationServerErrorCauses_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_LocationServerErrorCauses_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_AoD_LocationServerErrorCauses_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_AoD_LocationServerErrorCauses_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_LocationServerErrorCauses_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_AoD_LocationServerErrorCauses_r16_1, - 1, /* Elements count */ - &asn_SPC_NR_DL_AoD_LocationServerErrorCauses_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-AoD-MeasElement-r16.c b/asn.1/generated/NR-DL-AoD-MeasElement-r16.c deleted file mode 100644 index 2ff431d4..00000000 --- a/asn.1/generated/NR-DL-AoD-MeasElement-r16.c +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-AoD-MeasElement-r16.h" - -static int -memb_nr_PRS_RSRP_Result_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nr_DL_PRS_RxBeamIndex_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_nr_PRS_RSRP_Result_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (1..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_RxBeamIndex_r16_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_DL_AoD_MeasElement_r16_1[] = { - { ATF_POINTER, 3, offsetof(struct NR_DL_AoD_MeasElement_r16, trp_ID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TRP_ID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "trp-ID-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_MeasElement_r16, nr_DL_PRS_ResourceID_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_ResourceID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-ResourceID-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_MeasElement_r16, nr_DL_PRS_ResourceSetID_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_ResourceSetID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-ResourceSetID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_MeasElement_r16, nr_TimeStamp_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_TimeStamp_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-TimeStamp-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_MeasElement_r16, nr_PRS_RSRP_Result_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_PRS_RSRP_Result_r16_constr_6, memb_nr_PRS_RSRP_Result_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-PRS-RSRP-Result-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_MeasElement_r16, nr_DL_PRS_RxBeamIndex_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_DL_PRS_RxBeamIndex_r16_constr_7, memb_nr_DL_PRS_RxBeamIndex_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-DL-PRS-RxBeamIndex-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_MeasElement_r16, nr_TimingMeasQuality_r16), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_TimingMeasQuality_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-TimingMeasQuality-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_MeasElement_r16, nr_DL_Aod_AdditionalMeasurements_r16), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_AoD_AdditionalMeasurements_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-Aod-AdditionalMeasurements-r16" - }, -}; -static const int asn_MAP_NR_DL_AoD_MeasElement_r16_oms_1[] = { 0, 1, 2, 4 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_MeasElement_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_MeasElement_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* trp-ID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-ResourceID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-PRS-ResourceSetID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-TimeStamp-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-PRS-RSRP-Result-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nr-DL-PRS-RxBeamIndex-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* nr-TimingMeasQuality-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* nr-DL-Aod-AdditionalMeasurements-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_MeasElement_r16_specs_1 = { - sizeof(struct NR_DL_AoD_MeasElement_r16), - offsetof(struct NR_DL_AoD_MeasElement_r16, _asn_ctx), - asn_MAP_NR_DL_AoD_MeasElement_r16_tag2el_1, - 8, /* Count of tags in the map */ - asn_MAP_NR_DL_AoD_MeasElement_r16_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - 8, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_MeasElement_r16 = { - "NR-DL-AoD-MeasElement-r16", - "NR-DL-AoD-MeasElement-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_AoD_MeasElement_r16_tags_1, - sizeof(asn_DEF_NR_DL_AoD_MeasElement_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_MeasElement_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_AoD_MeasElement_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_AoD_MeasElement_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_MeasElement_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_AoD_MeasElement_r16_1, - 8, /* Elements count */ - &asn_SPC_NR_DL_AoD_MeasElement_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-AoD-MeasElement-r16.h b/asn.1/generated/NR-DL-AoD-MeasElement-r16.h deleted file mode 100644 index e13b3f92..00000000 --- a/asn.1/generated/NR-DL-AoD-MeasElement-r16.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_AoD_MeasElement_r16_H_ -#define _NR_DL_AoD_MeasElement_r16_H_ - - -#include - -/* Including external dependencies */ -#include "NR-DL-PRS-ResourceID-r16.h" -#include "NR-DL-PRS-ResourceSetID-r16.h" -#include "NR-TimeStamp-r16.h" -#include -#include "NR-TimingMeasQuality-r16.h" -#include "NR-DL-AoD-AdditionalMeasurements-r16.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct TRP_ID_r16; - -/* NR-DL-AoD-MeasElement-r16 */ -typedef struct NR_DL_AoD_MeasElement_r16 { - struct TRP_ID_r16 *trp_ID_r16 /* OPTIONAL */; - NR_DL_PRS_ResourceID_r16_t *nr_DL_PRS_ResourceID_r16 /* OPTIONAL */; - NR_DL_PRS_ResourceSetID_r16_t *nr_DL_PRS_ResourceSetID_r16 /* OPTIONAL */; - NR_TimeStamp_r16_t nr_TimeStamp_r16; - long *nr_PRS_RSRP_Result_r16 /* OPTIONAL */; - long nr_DL_PRS_RxBeamIndex_r16; - NR_TimingMeasQuality_r16_t nr_TimingMeasQuality_r16; - NR_DL_AoD_AdditionalMeasurements_r16_t nr_DL_Aod_AdditionalMeasurements_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_AoD_MeasElement_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_MeasElement_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_MeasElement_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_MeasElement_r16_1[8]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "TRP-ID-r16.h" - -#endif /* _NR_DL_AoD_MeasElement_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-AoD-MeasList-r16.c b/asn.1/generated/NR-DL-AoD-MeasList-r16.c deleted file mode 100644 index 29b66a50..00000000 --- a/asn.1/generated/NR-DL-AoD-MeasList-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-AoD-MeasList-r16.h" - -asn_per_constraints_t asn_PER_type_NR_DL_AoD_MeasList_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 8, 8, 1, 256 } /* (SIZE(1..256)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_DL_AoD_MeasList_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NR_DL_AoD_MeasElement_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_MeasList_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_NR_DL_AoD_MeasList_r16_specs_1 = { - sizeof(struct NR_DL_AoD_MeasList_r16), - offsetof(struct NR_DL_AoD_MeasList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_MeasList_r16 = { - "NR-DL-AoD-MeasList-r16", - "NR-DL-AoD-MeasList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_NR_DL_AoD_MeasList_r16_tags_1, - sizeof(asn_DEF_NR_DL_AoD_MeasList_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_MeasList_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_AoD_MeasList_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_AoD_MeasList_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_MeasList_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_NR_DL_AoD_MeasList_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_NR_DL_AoD_MeasList_r16_1, - 1, /* Single element */ - &asn_SPC_NR_DL_AoD_MeasList_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-AoD-ProvideAssistanceData-r16.c b/asn.1/generated/NR-DL-AoD-ProvideAssistanceData-r16.c deleted file mode 100644 index c97ae0ae..00000000 --- a/asn.1/generated/NR-DL-AoD-ProvideAssistanceData-r16.c +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-AoD-ProvideAssistanceData-r16.h" - -static int -memb_nr_SelectedDL_PRS_IndexList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 4)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_nr_SelectedDL_PRS_IndexList_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_SelectedDL_PRS_IndexList_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_nr_SelectedDL_PRS_IndexList_r16_3[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NR_SelectedDL_PRS_PerFreq_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_nr_SelectedDL_PRS_IndexList_r16_specs_3 = { - sizeof(struct NR_DL_AoD_ProvideAssistanceData_r16__nr_SelectedDL_PRS_IndexList_r16), - offsetof(struct NR_DL_AoD_ProvideAssistanceData_r16__nr_SelectedDL_PRS_IndexList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nr_SelectedDL_PRS_IndexList_r16_3 = { - "nr-SelectedDL-PRS-IndexList-r16", - "nr-SelectedDL-PRS-IndexList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3, - sizeof(asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3) - /sizeof(asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3[0]) - 1, /* 1 */ - asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3, /* Same as above */ - sizeof(asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3) - /sizeof(asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_nr_SelectedDL_PRS_IndexList_r16_constr_3, SEQUENCE_OF_constraint }, - asn_MBR_nr_SelectedDL_PRS_IndexList_r16_3, - 1, /* Single element */ - &asn_SPC_nr_SelectedDL_PRS_IndexList_r16_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_DL_AoD_ProvideAssistanceData_r16_1[] = { - { ATF_POINTER, 4, offsetof(struct NR_DL_AoD_ProvideAssistanceData_r16, nr_DL_PRS_AssistanceData_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_AssistanceData_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-AssistanceData-r16" - }, - { ATF_POINTER, 3, offsetof(struct NR_DL_AoD_ProvideAssistanceData_r16, nr_SelectedDL_PRS_IndexList_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_nr_SelectedDL_PRS_IndexList_r16_3, - 0, - { 0, &asn_PER_memb_nr_SelectedDL_PRS_IndexList_r16_constr_3, memb_nr_SelectedDL_PRS_IndexList_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-SelectedDL-PRS-IndexList-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_ProvideAssistanceData_r16, nr_PositionCalculationAssistanceData_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_PositionCalculationAssistanceData_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-PositionCalculationAssistanceData-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_ProvideAssistanceData_r16, nr_DL_AoD_Error_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_NR_DL_AoD_Error_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-AoD-Error-r16" - }, -}; -static const int asn_MAP_NR_DL_AoD_ProvideAssistanceData_r16_oms_1[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_ProvideAssistanceData_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-AssistanceData-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-SelectedDL-PRS-IndexList-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-PositionCalculationAssistanceData-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* nr-DL-AoD-Error-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_ProvideAssistanceData_r16_specs_1 = { - sizeof(struct NR_DL_AoD_ProvideAssistanceData_r16), - offsetof(struct NR_DL_AoD_ProvideAssistanceData_r16, _asn_ctx), - asn_MAP_NR_DL_AoD_ProvideAssistanceData_r16_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_NR_DL_AoD_ProvideAssistanceData_r16_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16 = { - "NR-DL-AoD-ProvideAssistanceData-r16", - "NR-DL-AoD-ProvideAssistanceData-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16_tags_1, - sizeof(asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_AoD_ProvideAssistanceData_r16_1, - 4, /* Elements count */ - &asn_SPC_NR_DL_AoD_ProvideAssistanceData_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-AoD-ProvideAssistanceData-r16.h b/asn.1/generated/NR-DL-AoD-ProvideAssistanceData-r16.h deleted file mode 100644 index 91cd3935..00000000 --- a/asn.1/generated/NR-DL-AoD-ProvideAssistanceData-r16.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_AoD_ProvideAssistanceData_r16_H_ -#define _NR_DL_AoD_ProvideAssistanceData_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct NR_DL_PRS_AssistanceData_r16; -struct NR_PositionCalculationAssistanceData_r16; -struct NR_DL_AoD_Error_r16; -struct NR_SelectedDL_PRS_PerFreq_r16; - -/* NR-DL-AoD-ProvideAssistanceData-r16 */ -typedef struct NR_DL_AoD_ProvideAssistanceData_r16 { - struct NR_DL_PRS_AssistanceData_r16 *nr_DL_PRS_AssistanceData_r16 /* OPTIONAL */; - struct NR_DL_AoD_ProvideAssistanceData_r16__nr_SelectedDL_PRS_IndexList_r16 { - A_SEQUENCE_OF(struct NR_SelectedDL_PRS_PerFreq_r16) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *nr_SelectedDL_PRS_IndexList_r16; - struct NR_PositionCalculationAssistanceData_r16 *nr_PositionCalculationAssistanceData_r16 /* OPTIONAL */; - struct NR_DL_AoD_Error_r16 *nr_DL_AoD_Error_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_AoD_ProvideAssistanceData_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_ProvideAssistanceData_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_ProvideAssistanceData_r16_1[4]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-DL-PRS-AssistanceData-r16.h" -#include "NR-PositionCalculationAssistanceData-r16.h" -#include "NR-DL-AoD-Error-r16.h" -#include "NR-SelectedDL-PRS-PerFreq-r16.h" - -#endif /* _NR_DL_AoD_ProvideAssistanceData_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-AoD-ProvideCapabilities-r16.c b/asn.1/generated/NR-DL-AoD-ProvideCapabilities-r16.c deleted file mode 100644 index 311c3c8c..00000000 --- a/asn.1/generated/NR-DL-AoD-ProvideCapabilities-r16.c +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-AoD-ProvideCapabilities-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_periodicalReporting_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_periodicalReporting_r16_value2enum_3[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_periodicalReporting_r16_enum2value_3[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_periodicalReporting_r16_specs_3 = { - asn_MAP_periodicalReporting_r16_value2enum_3, /* "tag" => N; sorted by tag */ - asn_MAP_periodicalReporting_r16_enum2value_3, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_periodicalReporting_r16_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_periodicalReporting_r16_3 = { - "periodicalReporting-r16", - "periodicalReporting-r16", - &asn_OP_NativeEnumerated, - asn_DEF_periodicalReporting_r16_tags_3, - sizeof(asn_DEF_periodicalReporting_r16_tags_3) - /sizeof(asn_DEF_periodicalReporting_r16_tags_3[0]) - 1, /* 1 */ - asn_DEF_periodicalReporting_r16_tags_3, /* Same as above */ - sizeof(asn_DEF_periodicalReporting_r16_tags_3) - /sizeof(asn_DEF_periodicalReporting_r16_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_periodicalReporting_r16_constr_3, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_periodicalReporting_r16_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_DL_AoD_ProvideCapabilities_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16, nr_DL_TDOA_Mode_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PositioningModes, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-TDOA-Mode-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16, periodicalReporting_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_periodicalReporting_r16_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "periodicalReporting-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16, nr_DL_PRS_MeasCapability_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_MeasCapability_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-MeasCapability-r16" - }, -}; -static const int asn_MAP_NR_DL_AoD_ProvideCapabilities_r16_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_ProvideCapabilities_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_ProvideCapabilities_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-TDOA-Mode-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* periodicalReporting-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-DL-PRS-MeasCapability-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_ProvideCapabilities_r16_specs_1 = { - sizeof(struct NR_DL_AoD_ProvideCapabilities_r16), - offsetof(struct NR_DL_AoD_ProvideCapabilities_r16, _asn_ctx), - asn_MAP_NR_DL_AoD_ProvideCapabilities_r16_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_NR_DL_AoD_ProvideCapabilities_r16_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_ProvideCapabilities_r16 = { - "NR-DL-AoD-ProvideCapabilities-r16", - "NR-DL-AoD-ProvideCapabilities-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_AoD_ProvideCapabilities_r16_tags_1, - sizeof(asn_DEF_NR_DL_AoD_ProvideCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_ProvideCapabilities_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_AoD_ProvideCapabilities_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_AoD_ProvideCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_ProvideCapabilities_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_AoD_ProvideCapabilities_r16_1, - 3, /* Elements count */ - &asn_SPC_NR_DL_AoD_ProvideCapabilities_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-AoD-ProvideCapabilities-r16.h b/asn.1/generated/NR-DL-AoD-ProvideCapabilities-r16.h deleted file mode 100644 index 8faa3888..00000000 --- a/asn.1/generated/NR-DL-AoD-ProvideCapabilities-r16.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_AoD_ProvideCapabilities_r16_H_ -#define _NR_DL_AoD_ProvideCapabilities_r16_H_ - - -#include - -/* Including external dependencies */ -#include "PositioningModes.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum NR_DL_AoD_ProvideCapabilities_r16__periodicalReporting_r16 { - NR_DL_AoD_ProvideCapabilities_r16__periodicalReporting_r16_supported = 0 -} e_NR_DL_AoD_ProvideCapabilities_r16__periodicalReporting_r16; - -/* Forward declarations */ -struct NR_DL_PRS_MeasCapability_r16; - -/* NR-DL-AoD-ProvideCapabilities-r16 */ -typedef struct NR_DL_AoD_ProvideCapabilities_r16 { - PositioningModes_t nr_DL_TDOA_Mode_r16; - long *periodicalReporting_r16 /* OPTIONAL */; - struct NR_DL_PRS_MeasCapability_r16 *nr_DL_PRS_MeasCapability_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_AoD_ProvideCapabilities_r16_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_periodicalReporting_r16_3; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_ProvideCapabilities_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_ProvideCapabilities_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_ProvideCapabilities_r16_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-DL-PRS-MeasCapability-r16.h" - -#endif /* _NR_DL_AoD_ProvideCapabilities_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-AoD-ProvideLocationInformation-r16.c b/asn.1/generated/NR-DL-AoD-ProvideLocationInformation-r16.c deleted file mode 100644 index 4fb5cf38..00000000 --- a/asn.1/generated/NR-DL-AoD-ProvideLocationInformation-r16.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-AoD-ProvideLocationInformation-r16.h" - -asn_TYPE_member_t asn_MBR_NR_DL_AoD_ProvideLocationInformation_r16_1[] = { - { ATF_POINTER, 3, offsetof(struct NR_DL_AoD_ProvideLocationInformation_r16, nr_DL_AoD_SignalMeasurementInformation_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-AoD-SignalMeasurementInformation-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_ProvideLocationInformation_r16, nr_dl_aod_LocationInformation_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_AoD_LocationInformation_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-dl-aod-LocationInformation-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_ProvideLocationInformation_r16, nr_DL_AoD_Error_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_NR_DL_AoD_Error_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-AoD-Error-r16" - }, -}; -static const int asn_MAP_NR_DL_AoD_ProvideLocationInformation_r16_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_ProvideLocationInformation_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-AoD-SignalMeasurementInformation-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-dl-aod-LocationInformation-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-DL-AoD-Error-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_ProvideLocationInformation_r16_specs_1 = { - sizeof(struct NR_DL_AoD_ProvideLocationInformation_r16), - offsetof(struct NR_DL_AoD_ProvideLocationInformation_r16, _asn_ctx), - asn_MAP_NR_DL_AoD_ProvideLocationInformation_r16_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_NR_DL_AoD_ProvideLocationInformation_r16_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16 = { - "NR-DL-AoD-ProvideLocationInformation-r16", - "NR-DL-AoD-ProvideLocationInformation-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16_tags_1, - sizeof(asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_AoD_ProvideLocationInformation_r16_1, - 3, /* Elements count */ - &asn_SPC_NR_DL_AoD_ProvideLocationInformation_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-AoD-ProvideLocationInformation-r16.h b/asn.1/generated/NR-DL-AoD-ProvideLocationInformation-r16.h deleted file mode 100644 index 82534dc1..00000000 --- a/asn.1/generated/NR-DL-AoD-ProvideLocationInformation-r16.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_AoD_ProvideLocationInformation_r16_H_ -#define _NR_DL_AoD_ProvideLocationInformation_r16_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct NR_DL_AoD_SignalMeasurementInformation_r16; -struct NR_DL_AoD_LocationInformation_r16; -struct NR_DL_AoD_Error_r16; - -/* NR-DL-AoD-ProvideLocationInformation-r16 */ -typedef struct NR_DL_AoD_ProvideLocationInformation_r16 { - struct NR_DL_AoD_SignalMeasurementInformation_r16 *nr_DL_AoD_SignalMeasurementInformation_r16 /* OPTIONAL */; - struct NR_DL_AoD_LocationInformation_r16 *nr_dl_aod_LocationInformation_r16 /* OPTIONAL */; - struct NR_DL_AoD_Error_r16 *nr_DL_AoD_Error_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_AoD_ProvideLocationInformation_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_ProvideLocationInformation_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_ProvideLocationInformation_r16_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-DL-AoD-SignalMeasurementInformation-r16.h" -#include "NR-DL-AoD-LocationInformation-r16.h" -#include "NR-DL-AoD-Error-r16.h" - -#endif /* _NR_DL_AoD_ProvideLocationInformation_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-AoD-ReportConfig-r16.c b/asn.1/generated/NR-DL-AoD-ReportConfig-r16.c deleted file mode 100644 index a36691eb..00000000 --- a/asn.1/generated/NR-DL-AoD-ReportConfig-r16.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-AoD-ReportConfig-r16.h" - -static int -memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_DL_AoD_ReportConfig_r16_1[] = { - { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_ReportConfig_r16, maxDL_PRS_RSRP_MeasurementsPerTRP_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r16_constr_2, memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r16_constraint_1 }, - 0, 0, /* No default value */ - "maxDL-PRS-RSRP-MeasurementsPerTRP-r16" - }, -}; -static const int asn_MAP_NR_DL_AoD_ReportConfig_r16_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_ReportConfig_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_ReportConfig_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* maxDL-PRS-RSRP-MeasurementsPerTRP-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_ReportConfig_r16_specs_1 = { - sizeof(struct NR_DL_AoD_ReportConfig_r16), - offsetof(struct NR_DL_AoD_ReportConfig_r16, _asn_ctx), - asn_MAP_NR_DL_AoD_ReportConfig_r16_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_NR_DL_AoD_ReportConfig_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_ReportConfig_r16 = { - "NR-DL-AoD-ReportConfig-r16", - "NR-DL-AoD-ReportConfig-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_AoD_ReportConfig_r16_tags_1, - sizeof(asn_DEF_NR_DL_AoD_ReportConfig_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_ReportConfig_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_AoD_ReportConfig_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_AoD_ReportConfig_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_ReportConfig_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_AoD_ReportConfig_r16_1, - 1, /* Elements count */ - &asn_SPC_NR_DL_AoD_ReportConfig_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-AoD-ReportConfig-r16.h b/asn.1/generated/NR-DL-AoD-ReportConfig-r16.h deleted file mode 100644 index 8f8b684f..00000000 --- a/asn.1/generated/NR-DL-AoD-ReportConfig-r16.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_AoD_ReportConfig_r16_H_ -#define _NR_DL_AoD_ReportConfig_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* NR-DL-AoD-ReportConfig-r16 */ -typedef struct NR_DL_AoD_ReportConfig_r16 { - long *maxDL_PRS_RSRP_MeasurementsPerTRP_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_AoD_ReportConfig_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_ReportConfig_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_ReportConfig_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_ReportConfig_r16_1[1]; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_DL_AoD_ReportConfig_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-AoD-RequestAssistanceData-r16.c b/asn.1/generated/NR-DL-AoD-RequestAssistanceData-r16.c deleted file mode 100644 index d8760fb2..00000000 --- a/asn.1/generated/NR-DL-AoD-RequestAssistanceData-r16.c +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-AoD-RequestAssistanceData-r16.h" - -static int -memb_nr_AdType_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_nr_AdType_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_DL_AoD_RequestAssistanceData_r16_1[] = { - { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_RequestAssistanceData_r16, nr_PhysCellId_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_PhysCellId_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-PhysCellId-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_RequestAssistanceData_r16, nr_AdType_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_nr_AdType_r16_constr_3, memb_nr_AdType_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-AdType-r16" - }, -}; -static const int asn_MAP_NR_DL_AoD_RequestAssistanceData_r16_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_RequestAssistanceData_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_RequestAssistanceData_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-PhysCellId-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-AdType-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_RequestAssistanceData_r16_specs_1 = { - sizeof(struct NR_DL_AoD_RequestAssistanceData_r16), - offsetof(struct NR_DL_AoD_RequestAssistanceData_r16, _asn_ctx), - asn_MAP_NR_DL_AoD_RequestAssistanceData_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_NR_DL_AoD_RequestAssistanceData_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_RequestAssistanceData_r16 = { - "NR-DL-AoD-RequestAssistanceData-r16", - "NR-DL-AoD-RequestAssistanceData-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_AoD_RequestAssistanceData_r16_tags_1, - sizeof(asn_DEF_NR_DL_AoD_RequestAssistanceData_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_RequestAssistanceData_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_AoD_RequestAssistanceData_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_AoD_RequestAssistanceData_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_RequestAssistanceData_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_AoD_RequestAssistanceData_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_DL_AoD_RequestAssistanceData_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-AoD-RequestAssistanceData-r16.h b/asn.1/generated/NR-DL-AoD-RequestAssistanceData-r16.h deleted file mode 100644 index 8f8f4680..00000000 --- a/asn.1/generated/NR-DL-AoD-RequestAssistanceData-r16.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_AoD_RequestAssistanceData_r16_H_ -#define _NR_DL_AoD_RequestAssistanceData_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum NR_DL_AoD_RequestAssistanceData_r16__nr_AdType_r16 { - NR_DL_AoD_RequestAssistanceData_r16__nr_AdType_r16_dl_prs = 0, - NR_DL_AoD_RequestAssistanceData_r16__nr_AdType_r16_posCalc = 1 -} e_NR_DL_AoD_RequestAssistanceData_r16__nr_AdType_r16; - -/* Forward declarations */ -struct NR_PhysCellId_r16; - -/* NR-DL-AoD-RequestAssistanceData-r16 */ -typedef struct NR_DL_AoD_RequestAssistanceData_r16 { - struct NR_PhysCellId_r16 *nr_PhysCellId_r16 /* OPTIONAL */; - BIT_STRING_t nr_AdType_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_AoD_RequestAssistanceData_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_RequestAssistanceData_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_RequestAssistanceData_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_RequestAssistanceData_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-PhysCellId-r16.h" - -#endif /* _NR_DL_AoD_RequestAssistanceData_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-AoD-RequestCapabilities-r16.c b/asn.1/generated/NR-DL-AoD-RequestCapabilities-r16.c deleted file mode 100644 index 671a2e3d..00000000 --- a/asn.1/generated/NR-DL-AoD-RequestCapabilities-r16.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-AoD-RequestCapabilities-r16.h" - -static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_RequestCapabilities_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_RequestCapabilities_r16_specs_1 = { - sizeof(struct NR_DL_AoD_RequestCapabilities_r16), - offsetof(struct NR_DL_AoD_RequestCapabilities_r16, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_RequestCapabilities_r16 = { - "NR-DL-AoD-RequestCapabilities-r16", - "NR-DL-AoD-RequestCapabilities-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_AoD_RequestCapabilities_r16_tags_1, - sizeof(asn_DEF_NR_DL_AoD_RequestCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_RequestCapabilities_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_AoD_RequestCapabilities_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_AoD_RequestCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_RequestCapabilities_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_NR_DL_AoD_RequestCapabilities_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-AoD-RequestLocationInformation-r16.c b/asn.1/generated/NR-DL-AoD-RequestLocationInformation-r16.c deleted file mode 100644 index 5a9b8be2..00000000 --- a/asn.1/generated/NR-DL-AoD-RequestLocationInformation-r16.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-AoD-RequestLocationInformation-r16.h" - -asn_TYPE_member_t asn_MBR_NR_DL_AoD_RequestLocationInformation_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_RequestLocationInformation_r16, nr_AssistanceAvailability_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-AssistanceAvailability-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_RequestLocationInformation_r16, nr_DL_AoD_ReportConfig_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_AoD_ReportConfig_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-AoD-ReportConfig-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_RequestLocationInformation_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_RequestLocationInformation_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-AssistanceAvailability-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-DL-AoD-ReportConfig-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_RequestLocationInformation_r16_specs_1 = { - sizeof(struct NR_DL_AoD_RequestLocationInformation_r16), - offsetof(struct NR_DL_AoD_RequestLocationInformation_r16, _asn_ctx), - asn_MAP_NR_DL_AoD_RequestLocationInformation_r16_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_RequestLocationInformation_r16 = { - "NR-DL-AoD-RequestLocationInformation-r16", - "NR-DL-AoD-RequestLocationInformation-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_AoD_RequestLocationInformation_r16_tags_1, - sizeof(asn_DEF_NR_DL_AoD_RequestLocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_RequestLocationInformation_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_AoD_RequestLocationInformation_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_AoD_RequestLocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_RequestLocationInformation_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_AoD_RequestLocationInformation_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_DL_AoD_RequestLocationInformation_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-AoD-RequestLocationInformation-r16.h b/asn.1/generated/NR-DL-AoD-RequestLocationInformation-r16.h deleted file mode 100644 index 5ab1b0b0..00000000 --- a/asn.1/generated/NR-DL-AoD-RequestLocationInformation-r16.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_AoD_RequestLocationInformation_r16_H_ -#define _NR_DL_AoD_RequestLocationInformation_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include "NR-DL-AoD-ReportConfig-r16.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* NR-DL-AoD-RequestLocationInformation-r16 */ -typedef struct NR_DL_AoD_RequestLocationInformation_r16 { - BOOLEAN_t nr_AssistanceAvailability_r16; - NR_DL_AoD_ReportConfig_r16_t nr_DL_AoD_ReportConfig_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_AoD_RequestLocationInformation_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_RequestLocationInformation_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_RequestLocationInformation_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_RequestLocationInformation_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_DL_AoD_RequestLocationInformation_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-AoD-SignalMeasurementInformation-r16.c b/asn.1/generated/NR-DL-AoD-SignalMeasurementInformation-r16.c deleted file mode 100644 index 52ff8d11..00000000 --- a/asn.1/generated/NR-DL-AoD-SignalMeasurementInformation-r16.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-AoD-SignalMeasurementInformation-r16.h" - -asn_TYPE_member_t asn_MBR_NR_DL_AoD_SignalMeasurementInformation_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_SignalMeasurementInformation_r16, nr_DL_AoD_MeasList_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_AoD_MeasList_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-AoD-MeasList-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_SignalMeasurementInformation_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-DL-AoD-MeasList-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_SignalMeasurementInformation_r16_specs_1 = { - sizeof(struct NR_DL_AoD_SignalMeasurementInformation_r16), - offsetof(struct NR_DL_AoD_SignalMeasurementInformation_r16, _asn_ctx), - asn_MAP_NR_DL_AoD_SignalMeasurementInformation_r16_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16 = { - "NR-DL-AoD-SignalMeasurementInformation-r16", - "NR-DL-AoD-SignalMeasurementInformation-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16_tags_1, - sizeof(asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_AoD_SignalMeasurementInformation_r16_1, - 1, /* Elements count */ - &asn_SPC_NR_DL_AoD_SignalMeasurementInformation_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-AoD-TargetDeviceErrorCauses-r16.c b/asn.1/generated/NR-DL-AoD-TargetDeviceErrorCauses-r16.c deleted file mode 100644 index d15325e8..00000000 --- a/asn.1/generated/NR-DL-AoD-TargetDeviceErrorCauses-r16.c +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-AoD-TargetDeviceErrorCauses-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_r16_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 23, "assistance-data-missing" }, - { 2, 21, "unableToMeasureAnyTRP" }, - { 3, 44, "attemptedButUnableToMeasureSomeNeighbourTRPs" }, - { 4, 49, "thereWereNotEnoughSignalsReceivedForUeBasedDL-AoD" }, - { 5, 40, "locationCalculationAssistanceDataMissing" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_r16_enum2value_2[] = { - 1, /* assistance-data-missing(1) */ - 3, /* attemptedButUnableToMeasureSomeNeighbourTRPs(3) */ - 5, /* locationCalculationAssistanceDataMissing(5) */ - 4, /* thereWereNotEnoughSignalsReceivedForUeBasedDL-AoD(4) */ - 2, /* unableToMeasureAnyTRP(2) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_r16_specs_2 = { - asn_MAP_cause_r16_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_r16_enum2value_2, /* N => "tag"; sorted by N */ - 6, /* Number of elements in the maps */ - 7, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_r16_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_r16_2 = { - "cause-r16", - "cause-r16", - &asn_OP_NativeEnumerated, - asn_DEF_cause_r16_tags_2, - sizeof(asn_DEF_cause_r16_tags_2) - /sizeof(asn_DEF_cause_r16_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_r16_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_r16_tags_2) - /sizeof(asn_DEF_cause_r16_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_r16_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_r16_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_DL_AoD_TargetDeviceErrorCauses_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_TargetDeviceErrorCauses_r16, cause_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_r16_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_TargetDeviceErrorCauses_r16, nr_PRS_RSRPMeasurementNotPossible_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-PRS-RSRPMeasurementNotPossible-r16" - }, -}; -static const int asn_MAP_NR_DL_AoD_TargetDeviceErrorCauses_r16_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_TargetDeviceErrorCauses_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-PRS-RSRPMeasurementNotPossible-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_TargetDeviceErrorCauses_r16_specs_1 = { - sizeof(struct NR_DL_AoD_TargetDeviceErrorCauses_r16), - offsetof(struct NR_DL_AoD_TargetDeviceErrorCauses_r16, _asn_ctx), - asn_MAP_NR_DL_AoD_TargetDeviceErrorCauses_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_NR_DL_AoD_TargetDeviceErrorCauses_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16 = { - "NR-DL-AoD-TargetDeviceErrorCauses-r16", - "NR-DL-AoD-TargetDeviceErrorCauses-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16_tags_1, - sizeof(asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16_tags_1) - /sizeof(asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_AoD_TargetDeviceErrorCauses_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_DL_AoD_TargetDeviceErrorCauses_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-AoD-TargetDeviceErrorCauses-r16.h b/asn.1/generated/NR-DL-AoD-TargetDeviceErrorCauses-r16.h deleted file mode 100644 index 3bcdffe2..00000000 --- a/asn.1/generated/NR-DL-AoD-TargetDeviceErrorCauses-r16.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_AoD_TargetDeviceErrorCauses_r16_H_ -#define _NR_DL_AoD_TargetDeviceErrorCauses_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum NR_DL_AoD_TargetDeviceErrorCauses_r16__cause_r16 { - NR_DL_AoD_TargetDeviceErrorCauses_r16__cause_r16_undefined = 0, - NR_DL_AoD_TargetDeviceErrorCauses_r16__cause_r16_assistance_data_missing = 1, - NR_DL_AoD_TargetDeviceErrorCauses_r16__cause_r16_unableToMeasureAnyTRP = 2, - NR_DL_AoD_TargetDeviceErrorCauses_r16__cause_r16_attemptedButUnableToMeasureSomeNeighbourTRPs = 3, - NR_DL_AoD_TargetDeviceErrorCauses_r16__cause_r16_thereWereNotEnoughSignalsReceivedForUeBasedDL_AoD = 4, - NR_DL_AoD_TargetDeviceErrorCauses_r16__cause_r16_locationCalculationAssistanceDataMissing = 5 - /* - * Enumeration is extensible - */ -} e_NR_DL_AoD_TargetDeviceErrorCauses_r16__cause_r16; - -/* NR-DL-AoD-TargetDeviceErrorCauses-r16 */ -typedef struct NR_DL_AoD_TargetDeviceErrorCauses_r16 { - long cause_r16; - NULL_t *nr_PRS_RSRPMeasurementNotPossible_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_AoD_TargetDeviceErrorCauses_r16_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_cause_r16_2; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_TargetDeviceErrorCauses_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_TargetDeviceErrorCauses_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_DL_AoD_TargetDeviceErrorCauses_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-PRS-AssistanceData-r16.c b/asn.1/generated/NR-DL-PRS-AssistanceData-r16.c deleted file mode 100644 index 322291df..00000000 --- a/asn.1/generated/NR-DL-PRS-AssistanceData-r16.c +++ /dev/null @@ -1,218 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-PRS-AssistanceData-r16.h" - -static int -memb_nr_DL_PRS_AssistanceDataList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 4)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nr_SSB_Config_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size <= 255)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_nr_DL_PRS_AssistanceDataList_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_nr_SSB_Config_r16_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (SIZE(0..255)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_AssistanceDataList_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_SSB_Config_r16_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (SIZE(0..255)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_nr_DL_PRS_AssistanceDataList_r16_3[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NR_DL_PRS_AssistanceDataPerFreq_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_AssistanceDataList_r16_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_nr_DL_PRS_AssistanceDataList_r16_specs_3 = { - sizeof(struct NR_DL_PRS_AssistanceData_r16__nr_DL_PRS_AssistanceDataList_r16), - offsetof(struct NR_DL_PRS_AssistanceData_r16__nr_DL_PRS_AssistanceDataList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_AssistanceDataList_r16_3 = { - "nr-DL-PRS-AssistanceDataList-r16", - "nr-DL-PRS-AssistanceDataList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_nr_DL_PRS_AssistanceDataList_r16_tags_3, - sizeof(asn_DEF_nr_DL_PRS_AssistanceDataList_r16_tags_3) - /sizeof(asn_DEF_nr_DL_PRS_AssistanceDataList_r16_tags_3[0]) - 1, /* 1 */ - asn_DEF_nr_DL_PRS_AssistanceDataList_r16_tags_3, /* Same as above */ - sizeof(asn_DEF_nr_DL_PRS_AssistanceDataList_r16_tags_3) - /sizeof(asn_DEF_nr_DL_PRS_AssistanceDataList_r16_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_nr_DL_PRS_AssistanceDataList_r16_constr_3, SEQUENCE_OF_constraint }, - asn_MBR_nr_DL_PRS_AssistanceDataList_r16_3, - 1, /* Single element */ - &asn_SPC_nr_DL_PRS_AssistanceDataList_r16_specs_3 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_nr_SSB_Config_r16_5[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NR_SSB_Config_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_nr_SSB_Config_r16_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_nr_SSB_Config_r16_specs_5 = { - sizeof(struct NR_DL_PRS_AssistanceData_r16__nr_SSB_Config_r16), - offsetof(struct NR_DL_PRS_AssistanceData_r16__nr_SSB_Config_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nr_SSB_Config_r16_5 = { - "nr-SSB-Config-r16", - "nr-SSB-Config-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_nr_SSB_Config_r16_tags_5, - sizeof(asn_DEF_nr_SSB_Config_r16_tags_5) - /sizeof(asn_DEF_nr_SSB_Config_r16_tags_5[0]) - 1, /* 1 */ - asn_DEF_nr_SSB_Config_r16_tags_5, /* Same as above */ - sizeof(asn_DEF_nr_SSB_Config_r16_tags_5) - /sizeof(asn_DEF_nr_SSB_Config_r16_tags_5[0]), /* 2 */ - { 0, &asn_PER_type_nr_SSB_Config_r16_constr_5, SEQUENCE_OF_constraint }, - asn_MBR_nr_SSB_Config_r16_5, - 1, /* Single element */ - &asn_SPC_nr_SSB_Config_r16_specs_5 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_DL_PRS_AssistanceData_r16_1[] = { - { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_AssistanceData_r16, nr_DL_PRS_ReferenceInfo_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DL_PRS_IdInfo_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-ReferenceInfo-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_AssistanceData_r16, nr_DL_PRS_AssistanceDataList_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_nr_DL_PRS_AssistanceDataList_r16_3, - 0, - { 0, &asn_PER_memb_nr_DL_PRS_AssistanceDataList_r16_constr_3, memb_nr_DL_PRS_AssistanceDataList_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-DL-PRS-AssistanceDataList-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_AssistanceData_r16, nr_SSB_Config_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_nr_SSB_Config_r16_5, - 0, - { 0, &asn_PER_memb_nr_SSB_Config_r16_constr_5, memb_nr_SSB_Config_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-SSB-Config-r16" - }, -}; -static const int asn_MAP_NR_DL_PRS_AssistanceData_r16_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_AssistanceData_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_AssistanceData_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-ReferenceInfo-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-AssistanceDataList-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-SSB-Config-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_AssistanceData_r16_specs_1 = { - sizeof(struct NR_DL_PRS_AssistanceData_r16), - offsetof(struct NR_DL_PRS_AssistanceData_r16, _asn_ctx), - asn_MAP_NR_DL_PRS_AssistanceData_r16_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_NR_DL_PRS_AssistanceData_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_AssistanceData_r16 = { - "NR-DL-PRS-AssistanceData-r16", - "NR-DL-PRS-AssistanceData-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_PRS_AssistanceData_r16_tags_1, - sizeof(asn_DEF_NR_DL_PRS_AssistanceData_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_AssistanceData_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_PRS_AssistanceData_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_PRS_AssistanceData_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_AssistanceData_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_PRS_AssistanceData_r16_1, - 3, /* Elements count */ - &asn_SPC_NR_DL_PRS_AssistanceData_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-PRS-AssistanceData-r16.h b/asn.1/generated/NR-DL-PRS-AssistanceData-r16.h deleted file mode 100644 index 38f8a320..00000000 --- a/asn.1/generated/NR-DL-PRS-AssistanceData-r16.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_PRS_AssistanceData_r16_H_ -#define _NR_DL_PRS_AssistanceData_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct DL_PRS_IdInfo_r16; -struct NR_DL_PRS_AssistanceDataPerFreq_r16; -struct NR_SSB_Config_r16; - -/* NR-DL-PRS-AssistanceData-r16 */ -typedef struct NR_DL_PRS_AssistanceData_r16 { - struct DL_PRS_IdInfo_r16 *nr_DL_PRS_ReferenceInfo_r16 /* OPTIONAL */; - struct NR_DL_PRS_AssistanceData_r16__nr_DL_PRS_AssistanceDataList_r16 { - A_SEQUENCE_OF(struct NR_DL_PRS_AssistanceDataPerFreq_r16) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } nr_DL_PRS_AssistanceDataList_r16; - struct NR_DL_PRS_AssistanceData_r16__nr_SSB_Config_r16 { - A_SEQUENCE_OF(struct NR_SSB_Config_r16) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } nr_SSB_Config_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_PRS_AssistanceData_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_AssistanceData_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_AssistanceData_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_AssistanceData_r16_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "DL-PRS-IdInfo-r16.h" -#include "NR-DL-PRS-AssistanceDataPerFreq-r16.h" -#include "NR-SSB-Config-r16.h" - -#endif /* _NR_DL_PRS_AssistanceData_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-PRS-AssistanceDataPerFreq-r16.c b/asn.1/generated/NR-DL-PRS-AssistanceDataPerFreq-r16.c deleted file mode 100644 index e48edede..00000000 --- a/asn.1/generated/NR-DL-PRS-AssistanceDataPerFreq-r16.c +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-PRS-AssistanceDataPerFreq-r16.h" - -static int -memb_nr_DL_PRS_AssistanceDataPerFreq_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 64)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_nr_DL_PRS_AssistanceDataPerFreq_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_AssistanceDataPerFreq_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_nr_DL_PRS_AssistanceDataPerFreq_2[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_AssistanceDataPerFreq_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_nr_DL_PRS_AssistanceDataPerFreq_specs_2 = { - sizeof(struct NR_DL_PRS_AssistanceDataPerFreq_r16__nr_DL_PRS_AssistanceDataPerFreq), - offsetof(struct NR_DL_PRS_AssistanceDataPerFreq_r16__nr_DL_PRS_AssistanceDataPerFreq, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_AssistanceDataPerFreq_2 = { - "nr-DL-PRS-AssistanceDataPerFreq", - "nr-DL-PRS-AssistanceDataPerFreq", - &asn_OP_SEQUENCE_OF, - asn_DEF_nr_DL_PRS_AssistanceDataPerFreq_tags_2, - sizeof(asn_DEF_nr_DL_PRS_AssistanceDataPerFreq_tags_2) - /sizeof(asn_DEF_nr_DL_PRS_AssistanceDataPerFreq_tags_2[0]) - 1, /* 1 */ - asn_DEF_nr_DL_PRS_AssistanceDataPerFreq_tags_2, /* Same as above */ - sizeof(asn_DEF_nr_DL_PRS_AssistanceDataPerFreq_tags_2) - /sizeof(asn_DEF_nr_DL_PRS_AssistanceDataPerFreq_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_nr_DL_PRS_AssistanceDataPerFreq_constr_2, SEQUENCE_OF_constraint }, - asn_MBR_nr_DL_PRS_AssistanceDataPerFreq_2, - 1, /* Single element */ - &asn_SPC_nr_DL_PRS_AssistanceDataPerFreq_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_DL_PRS_AssistanceDataPerFreq_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_AssistanceDataPerFreq_r16, nr_DL_PRS_AssistanceDataPerFreq), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_nr_DL_PRS_AssistanceDataPerFreq_2, - 0, - { 0, &asn_PER_memb_nr_DL_PRS_AssistanceDataPerFreq_constr_2, memb_nr_DL_PRS_AssistanceDataPerFreq_constraint_1 }, - 0, 0, /* No default value */ - "nr-DL-PRS-AssistanceDataPerFreq" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_AssistanceDataPerFreq_r16, nr_DL_PRS_PositioningFrequencyLayer_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_PositioningFrequencyLayer_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-PositioningFrequencyLayer-r16" - }, -}; -static const int asn_MAP_NR_DL_PRS_AssistanceDataPerFreq_r16_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_AssistanceDataPerFreq_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_AssistanceDataPerFreq_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-AssistanceDataPerFreq */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-DL-PRS-PositioningFrequencyLayer-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_AssistanceDataPerFreq_r16_specs_1 = { - sizeof(struct NR_DL_PRS_AssistanceDataPerFreq_r16), - offsetof(struct NR_DL_PRS_AssistanceDataPerFreq_r16, _asn_ctx), - asn_MAP_NR_DL_PRS_AssistanceDataPerFreq_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_NR_DL_PRS_AssistanceDataPerFreq_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_AssistanceDataPerFreq_r16 = { - "NR-DL-PRS-AssistanceDataPerFreq-r16", - "NR-DL-PRS-AssistanceDataPerFreq-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_PRS_AssistanceDataPerFreq_r16_tags_1, - sizeof(asn_DEF_NR_DL_PRS_AssistanceDataPerFreq_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_AssistanceDataPerFreq_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_PRS_AssistanceDataPerFreq_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_PRS_AssistanceDataPerFreq_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_AssistanceDataPerFreq_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_PRS_AssistanceDataPerFreq_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_DL_PRS_AssistanceDataPerFreq_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-PRS-AssistanceDataPerTRP-r16.c b/asn.1/generated/NR-DL-PRS-AssistanceDataPerTRP-r16.c deleted file mode 100644 index 0b0e084a..00000000 --- a/asn.1/generated/NR-DL-PRS-AssistanceDataPerTRP-r16.c +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-PRS-AssistanceDataPerTRP-r16.h" - -static int -memb_nr_DL_PRS_expectedRSTD_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -3841 && value <= 3841)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nr_DL_PRS_expectedRSTD_uncerainty_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -246 && value <= 246)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_expectedRSTD_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, -3841, 3841 } /* (-3841..3841) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_expectedRSTD_uncerainty_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, -246, 246 } /* (-246..246) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_DL_PRS_AssistanceDataPerTRP_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16, nr_DL_PRS_expectedRSTD_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_DL_PRS_expectedRSTD_r16_constr_2, memb_nr_DL_PRS_expectedRSTD_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-DL-PRS-expectedRSTD-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16, nr_DL_PRS_expectedRSTD_uncerainty_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_DL_PRS_expectedRSTD_uncerainty_r16_constr_3, memb_nr_DL_PRS_expectedRSTD_uncerainty_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-DL-PRS-expectedRSTD-uncerainty-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16, trp_ID_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TRP_ID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "trp-ID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16, nr_DL_PRS_Config_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_Config_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-Config-r16" - }, -}; -static const int asn_MAP_NR_DL_PRS_AssistanceDataPerTRP_r16_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_AssistanceDataPerTRP_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-expectedRSTD-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-expectedRSTD-uncerainty-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* trp-ID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* nr-DL-PRS-Config-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_AssistanceDataPerTRP_r16_specs_1 = { - sizeof(struct NR_DL_PRS_AssistanceDataPerTRP_r16), - offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16, _asn_ctx), - asn_MAP_NR_DL_PRS_AssistanceDataPerTRP_r16_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_NR_DL_PRS_AssistanceDataPerTRP_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16 = { - "NR-DL-PRS-AssistanceDataPerTRP-r16", - "NR-DL-PRS-AssistanceDataPerTRP-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16_tags_1, - sizeof(asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_PRS_AssistanceDataPerTRP_r16_1, - 4, /* Elements count */ - &asn_SPC_NR_DL_PRS_AssistanceDataPerTRP_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-PRS-AssistanceDataPerTRP-r16.h b/asn.1/generated/NR-DL-PRS-AssistanceDataPerTRP-r16.h deleted file mode 100644 index 6fa2f9d0..00000000 --- a/asn.1/generated/NR-DL-PRS-AssistanceDataPerTRP-r16.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_PRS_AssistanceDataPerTRP_r16_H_ -#define _NR_DL_PRS_AssistanceDataPerTRP_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include "NR-DL-PRS-Config-r16.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct TRP_ID_r16; - -/* NR-DL-PRS-AssistanceDataPerTRP-r16 */ -typedef struct NR_DL_PRS_AssistanceDataPerTRP_r16 { - long nr_DL_PRS_expectedRSTD_r16; - long nr_DL_PRS_expectedRSTD_uncerainty_r16; - struct TRP_ID_r16 *trp_ID_r16 /* OPTIONAL */; - NR_DL_PRS_Config_r16_t nr_DL_PRS_Config_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_PRS_AssistanceDataPerTRP_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_AssistanceDataPerTRP_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_AssistanceDataPerTRP_r16_1[4]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "TRP-ID-r16.h" - -#endif /* _NR_DL_PRS_AssistanceDataPerTRP_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-PRS-BeamInfo-r16.c b/asn.1/generated/NR-DL-PRS-BeamInfo-r16.c deleted file mode 100644 index 2d47e97c..00000000 --- a/asn.1/generated/NR-DL-PRS-BeamInfo-r16.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-PRS-BeamInfo-r16.h" - -asn_TYPE_member_t asn_MBR_NR_DL_PRS_BeamInfo_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_BeamInfo_r16, trp_id_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TRP_ID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "trp-id-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_BeamInfo_r16, lcs_gcs_translation_parameter_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LCS_GCS_Translation_Parameter_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "lcs-gcs-translation-parameter-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_BeamInfo_r16, dl_prs_BeamInfoSet_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DL_PRS_BeamInfoSet_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dl-prs-BeamInfoSet-r16" - }, -}; -static const int asn_MAP_NR_DL_PRS_BeamInfo_r16_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_BeamInfo_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_BeamInfo_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* trp-id-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* lcs-gcs-translation-parameter-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* dl-prs-BeamInfoSet-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_BeamInfo_r16_specs_1 = { - sizeof(struct NR_DL_PRS_BeamInfo_r16), - offsetof(struct NR_DL_PRS_BeamInfo_r16, _asn_ctx), - asn_MAP_NR_DL_PRS_BeamInfo_r16_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_NR_DL_PRS_BeamInfo_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_BeamInfo_r16 = { - "NR-DL-PRS-BeamInfo-r16", - "NR-DL-PRS-BeamInfo-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_PRS_BeamInfo_r16_tags_1, - sizeof(asn_DEF_NR_DL_PRS_BeamInfo_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_BeamInfo_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_PRS_BeamInfo_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_PRS_BeamInfo_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_BeamInfo_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_PRS_BeamInfo_r16_1, - 3, /* Elements count */ - &asn_SPC_NR_DL_PRS_BeamInfo_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-PRS-BeamInfo-r16.h b/asn.1/generated/NR-DL-PRS-BeamInfo-r16.h deleted file mode 100644 index 5268cbc3..00000000 --- a/asn.1/generated/NR-DL-PRS-BeamInfo-r16.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_PRS_BeamInfo_r16_H_ -#define _NR_DL_PRS_BeamInfo_r16_H_ - - -#include - -/* Including external dependencies */ -#include "TRP-ID-r16.h" -#include "DL-PRS-BeamInfoSet-r16.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct LCS_GCS_Translation_Parameter_r16; - -/* NR-DL-PRS-BeamInfo-r16 */ -typedef struct NR_DL_PRS_BeamInfo_r16 { - TRP_ID_r16_t trp_id_r16; - struct LCS_GCS_Translation_Parameter_r16 *lcs_gcs_translation_parameter_r16 /* OPTIONAL */; - DL_PRS_BeamInfoSet_r16_t dl_prs_BeamInfoSet_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_PRS_BeamInfo_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_BeamInfo_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_BeamInfo_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_BeamInfo_r16_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "LCS-GCS-Translation-Parameter-r16.h" - -#endif /* _NR_DL_PRS_BeamInfo_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-PRS-BeamInfoPerFreqLayer-r16.c b/asn.1/generated/NR-DL-PRS-BeamInfoPerFreqLayer-r16.c deleted file mode 100644 index fb0b4044..00000000 --- a/asn.1/generated/NR-DL-PRS-BeamInfoPerFreqLayer-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-PRS-BeamInfoPerFreqLayer-r16.h" - -static asn_per_constraints_t asn_PER_type_NR_DL_PRS_BeamInfoPerFreqLayer_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_NR_DL_PRS_BeamInfoPerFreqLayer_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NR_DL_PRS_BeamInfo_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_BeamInfoPerFreqLayer_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_NR_DL_PRS_BeamInfoPerFreqLayer_r16_specs_1 = { - sizeof(struct NR_DL_PRS_BeamInfoPerFreqLayer_r16), - offsetof(struct NR_DL_PRS_BeamInfoPerFreqLayer_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_BeamInfoPerFreqLayer_r16 = { - "NR-DL-PRS-BeamInfoPerFreqLayer-r16", - "NR-DL-PRS-BeamInfoPerFreqLayer-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_NR_DL_PRS_BeamInfoPerFreqLayer_r16_tags_1, - sizeof(asn_DEF_NR_DL_PRS_BeamInfoPerFreqLayer_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_BeamInfoPerFreqLayer_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_PRS_BeamInfoPerFreqLayer_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_PRS_BeamInfoPerFreqLayer_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_BeamInfoPerFreqLayer_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_NR_DL_PRS_BeamInfoPerFreqLayer_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_NR_DL_PRS_BeamInfoPerFreqLayer_r16_1, - 1, /* Single element */ - &asn_SPC_NR_DL_PRS_BeamInfoPerFreqLayer_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-PRS-BeamInfoPerFreqLayer-r16.h b/asn.1/generated/NR-DL-PRS-BeamInfoPerFreqLayer-r16.h deleted file mode 100644 index cdb33ed1..00000000 --- a/asn.1/generated/NR-DL-PRS-BeamInfoPerFreqLayer-r16.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_PRS_BeamInfoPerFreqLayer_r16_H_ -#define _NR_DL_PRS_BeamInfoPerFreqLayer_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct NR_DL_PRS_BeamInfo_r16; - -/* NR-DL-PRS-BeamInfoPerFreqLayer-r16 */ -typedef struct NR_DL_PRS_BeamInfoPerFreqLayer_r16 { - A_SEQUENCE_OF(struct NR_DL_PRS_BeamInfo_r16) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_PRS_BeamInfoPerFreqLayer_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_BeamInfoPerFreqLayer_r16; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-DL-PRS-BeamInfo-r16.h" - -#endif /* _NR_DL_PRS_BeamInfoPerFreqLayer_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-PRS-Config-r16.c b/asn.1/generated/NR-DL-PRS-Config-r16.c deleted file mode 100644 index 3f41da25..00000000 --- a/asn.1/generated/NR-DL-PRS-Config-r16.c +++ /dev/null @@ -1,250 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-PRS-Config-r16.h" - -static int -memb_sfn_Offset_r16_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_integerSubframeOffset_r16_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 9)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nr_DL_PRS_ResourceSetList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 2)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_nr_DL_PRS_ResourceSetList_r16_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sfn_Offset_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_integerSubframeOffset_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_ResourceSetList_r16_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_nr_DL_PRS_ResourceSetList_r16_2[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NR_DL_PRS_ResourceSet_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_ResourceSetList_r16_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_nr_DL_PRS_ResourceSetList_r16_specs_2 = { - sizeof(struct NR_DL_PRS_Config_r16__nr_DL_PRS_ResourceSetList_r16), - offsetof(struct NR_DL_PRS_Config_r16__nr_DL_PRS_ResourceSetList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_ResourceSetList_r16_2 = { - "nr-DL-PRS-ResourceSetList-r16", - "nr-DL-PRS-ResourceSetList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_nr_DL_PRS_ResourceSetList_r16_tags_2, - sizeof(asn_DEF_nr_DL_PRS_ResourceSetList_r16_tags_2) - /sizeof(asn_DEF_nr_DL_PRS_ResourceSetList_r16_tags_2[0]) - 1, /* 1 */ - asn_DEF_nr_DL_PRS_ResourceSetList_r16_tags_2, /* Same as above */ - sizeof(asn_DEF_nr_DL_PRS_ResourceSetList_r16_tags_2) - /sizeof(asn_DEF_nr_DL_PRS_ResourceSetList_r16_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_nr_DL_PRS_ResourceSetList_r16_constr_2, SEQUENCE_OF_constraint }, - asn_MBR_nr_DL_PRS_ResourceSetList_r16_2, - 1, /* Single element */ - &asn_SPC_nr_DL_PRS_ResourceSetList_r16_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_nr_DL_PRS_SFN0_Offset_r16_4[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Config_r16__nr_DL_PRS_SFN0_Offset_r16, sfn_Offset_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sfn_Offset_r16_constr_5, memb_sfn_Offset_r16_constraint_4 }, - 0, 0, /* No default value */ - "sfn-Offset-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_Config_r16__nr_DL_PRS_SFN0_Offset_r16, integerSubframeOffset_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_integerSubframeOffset_r16_constr_6, memb_integerSubframeOffset_r16_constraint_4 }, - 0, 0, /* No default value */ - "integerSubframeOffset-r16" - }, -}; -static const int asn_MAP_nr_DL_PRS_SFN0_Offset_r16_oms_4[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_SFN0_Offset_r16_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_nr_DL_PRS_SFN0_Offset_r16_tag2el_4[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sfn-Offset-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* integerSubframeOffset-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_nr_DL_PRS_SFN0_Offset_r16_specs_4 = { - sizeof(struct NR_DL_PRS_Config_r16__nr_DL_PRS_SFN0_Offset_r16), - offsetof(struct NR_DL_PRS_Config_r16__nr_DL_PRS_SFN0_Offset_r16, _asn_ctx), - asn_MAP_nr_DL_PRS_SFN0_Offset_r16_tag2el_4, - 2, /* Count of tags in the map */ - asn_MAP_nr_DL_PRS_SFN0_Offset_r16_oms_4, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_SFN0_Offset_r16_4 = { - "nr-DL-PRS-SFN0-Offset-r16", - "nr-DL-PRS-SFN0-Offset-r16", - &asn_OP_SEQUENCE, - asn_DEF_nr_DL_PRS_SFN0_Offset_r16_tags_4, - sizeof(asn_DEF_nr_DL_PRS_SFN0_Offset_r16_tags_4) - /sizeof(asn_DEF_nr_DL_PRS_SFN0_Offset_r16_tags_4[0]) - 1, /* 1 */ - asn_DEF_nr_DL_PRS_SFN0_Offset_r16_tags_4, /* Same as above */ - sizeof(asn_DEF_nr_DL_PRS_SFN0_Offset_r16_tags_4) - /sizeof(asn_DEF_nr_DL_PRS_SFN0_Offset_r16_tags_4[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_nr_DL_PRS_SFN0_Offset_r16_4, - 2, /* Elements count */ - &asn_SPC_nr_DL_PRS_SFN0_Offset_r16_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_DL_PRS_Config_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Config_r16, nr_DL_PRS_ResourceSetList_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_nr_DL_PRS_ResourceSetList_r16_2, - 0, - { 0, &asn_PER_memb_nr_DL_PRS_ResourceSetList_r16_constr_2, memb_nr_DL_PRS_ResourceSetList_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-DL-PRS-ResourceSetList-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_Config_r16, nr_DL_PRS_SFN0_Offset_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_nr_DL_PRS_SFN0_Offset_r16_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-SFN0-Offset-r16" - }, -}; -static const int asn_MAP_NR_DL_PRS_Config_r16_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_Config_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_Config_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-ResourceSetList-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-DL-PRS-SFN0-Offset-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_Config_r16_specs_1 = { - sizeof(struct NR_DL_PRS_Config_r16), - offsetof(struct NR_DL_PRS_Config_r16, _asn_ctx), - asn_MAP_NR_DL_PRS_Config_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_NR_DL_PRS_Config_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_Config_r16 = { - "NR-DL-PRS-Config-r16", - "NR-DL-PRS-Config-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_PRS_Config_r16_tags_1, - sizeof(asn_DEF_NR_DL_PRS_Config_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_Config_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_PRS_Config_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_PRS_Config_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_Config_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_PRS_Config_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_DL_PRS_Config_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-PRS-Config-r16.h b/asn.1/generated/NR-DL-PRS-Config-r16.h deleted file mode 100644 index 341ac9e0..00000000 --- a/asn.1/generated/NR-DL-PRS-Config-r16.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_PRS_Config_r16_H_ -#define _NR_DL_PRS_Config_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct NR_DL_PRS_ResourceSet_r16; - -/* NR-DL-PRS-Config-r16 */ -typedef struct NR_DL_PRS_Config_r16 { - struct NR_DL_PRS_Config_r16__nr_DL_PRS_ResourceSetList_r16 { - A_SEQUENCE_OF(struct NR_DL_PRS_ResourceSet_r16) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } nr_DL_PRS_ResourceSetList_r16; - struct NR_DL_PRS_Config_r16__nr_DL_PRS_SFN0_Offset_r16 { - long sfn_Offset_r16; - long *integerSubframeOffset_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *nr_DL_PRS_SFN0_Offset_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_PRS_Config_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_Config_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_Config_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_Config_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-DL-PRS-ResourceSet-r16.h" - -#endif /* _NR_DL_PRS_Config_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-PRS-MeasCapability-r16.c b/asn.1/generated/NR-DL-PRS-MeasCapability-r16.c deleted file mode 100644 index d0b37666..00000000 --- a/asn.1/generated/NR-DL-PRS-MeasCapability-r16.c +++ /dev/null @@ -1,375 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-PRS-MeasCapability-r16.h" - -static int -memb_supportedBandListNR_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 1024)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_numDL_PRS_RSRPMeasurementsPerTRP_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_numPositioningFrequencyLayers_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_numTrpPerPositioningFrequencyLayer_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_numDL_PRS_ResourceSetsPerTRP_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_numDL_PRS_ResourcesPerSet_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_totalNum_DL_PRS_Resources_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_supportedBandListNR_r16_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_supportedBandListNR_r16_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_numDL_PRS_RSRPMeasurementsPerTRP_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (1..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_numPositioningFrequencyLayers_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (1..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_numTrpPerPositioningFrequencyLayer_r16_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (1..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_numDL_PRS_ResourceSetsPerTRP_r16_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (1..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_numDL_PRS_ResourcesPerSet_r16_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (1..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_totalNum_DL_PRS_Resources_r16_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (1..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_supportedBandListNR_r16_2[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_SupportedBandNR_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_supportedBandListNR_r16_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_supportedBandListNR_r16_specs_2 = { - sizeof(struct NR_DL_PRS_MeasCapability_r16__supportedBandListNR_r16), - offsetof(struct NR_DL_PRS_MeasCapability_r16__supportedBandListNR_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_supportedBandListNR_r16_2 = { - "supportedBandListNR-r16", - "supportedBandListNR-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_supportedBandListNR_r16_tags_2, - sizeof(asn_DEF_supportedBandListNR_r16_tags_2) - /sizeof(asn_DEF_supportedBandListNR_r16_tags_2[0]) - 1, /* 1 */ - asn_DEF_supportedBandListNR_r16_tags_2, /* Same as above */ - sizeof(asn_DEF_supportedBandListNR_r16_tags_2) - /sizeof(asn_DEF_supportedBandListNR_r16_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_supportedBandListNR_r16_constr_2, SEQUENCE_OF_constraint }, - asn_MBR_supportedBandListNR_r16_2, - 1, /* Single element */ - &asn_SPC_supportedBandListNR_r16_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_DL_PRS_MeasCapability_r16_1[] = { - { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_MeasCapability_r16, supportedBandListNR_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_supportedBandListNR_r16_2, - 0, - { 0, &asn_PER_memb_supportedBandListNR_r16_constr_2, memb_supportedBandListNR_r16_constraint_1 }, - 0, 0, /* No default value */ - "supportedBandListNR-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_MeasCapability_r16, maxNumDL_PRS_Resources_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "maxNumDL-PRS-Resources-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_MeasCapability_r16, numDL_PRS_RSRPMeasurementsPerTRP_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_numDL_PRS_RSRPMeasurementsPerTRP_r16_constr_5, memb_numDL_PRS_RSRPMeasurementsPerTRP_r16_constraint_1 }, - 0, 0, /* No default value */ - "numDL-PRS-RSRPMeasurementsPerTRP-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_MeasCapability_r16, numPositioningFrequencyLayers_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_numPositioningFrequencyLayers_r16_constr_6, memb_numPositioningFrequencyLayers_r16_constraint_1 }, - 0, 0, /* No default value */ - "numPositioningFrequencyLayers-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_MeasCapability_r16, numTrpPerPositioningFrequencyLayer_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_numTrpPerPositioningFrequencyLayer_r16_constr_7, memb_numTrpPerPositioningFrequencyLayer_r16_constraint_1 }, - 0, 0, /* No default value */ - "numTrpPerPositioningFrequencyLayer-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_MeasCapability_r16, numDL_PRS_ResourceSetsPerTRP_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_numDL_PRS_ResourceSetsPerTRP_r16_constr_8, memb_numDL_PRS_ResourceSetsPerTRP_r16_constraint_1 }, - 0, 0, /* No default value */ - "numDL-PRS-ResourceSetsPerTRP-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_MeasCapability_r16, numDL_PRS_ResourcesPerSet_r16), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_numDL_PRS_ResourcesPerSet_r16_constr_9, memb_numDL_PRS_ResourcesPerSet_r16_constraint_1 }, - 0, 0, /* No default value */ - "numDL-PRS-ResourcesPerSet-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_MeasCapability_r16, totalNum_DL_PRS_Resources_r16), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_totalNum_DL_PRS_Resources_r16_constr_10, memb_totalNum_DL_PRS_Resources_r16_constraint_1 }, - 0, 0, /* No default value */ - "totalNum-DL-PRS-Resources-r16" - }, -}; -static const int asn_MAP_NR_DL_PRS_MeasCapability_r16_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_MeasCapability_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_MeasCapability_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* supportedBandListNR-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxNumDL-PRS-Resources-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* numDL-PRS-RSRPMeasurementsPerTRP-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* numPositioningFrequencyLayers-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* numTrpPerPositioningFrequencyLayer-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* numDL-PRS-ResourceSetsPerTRP-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* numDL-PRS-ResourcesPerSet-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* totalNum-DL-PRS-Resources-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_MeasCapability_r16_specs_1 = { - sizeof(struct NR_DL_PRS_MeasCapability_r16), - offsetof(struct NR_DL_PRS_MeasCapability_r16, _asn_ctx), - asn_MAP_NR_DL_PRS_MeasCapability_r16_tag2el_1, - 8, /* Count of tags in the map */ - asn_MAP_NR_DL_PRS_MeasCapability_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 8, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_MeasCapability_r16 = { - "NR-DL-PRS-MeasCapability-r16", - "NR-DL-PRS-MeasCapability-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_PRS_MeasCapability_r16_tags_1, - sizeof(asn_DEF_NR_DL_PRS_MeasCapability_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_MeasCapability_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_PRS_MeasCapability_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_PRS_MeasCapability_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_MeasCapability_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_PRS_MeasCapability_r16_1, - 8, /* Elements count */ - &asn_SPC_NR_DL_PRS_MeasCapability_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-PRS-MeasCapability-r16.h b/asn.1/generated/NR-DL-PRS-MeasCapability-r16.h deleted file mode 100644 index b1974e0a..00000000 --- a/asn.1/generated/NR-DL-PRS-MeasCapability-r16.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_PRS_MeasCapability_r16_H_ -#define _NR_DL_PRS_MeasCapability_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct SupportedBandNR_r16; - -/* NR-DL-PRS-MeasCapability-r16 */ -typedef struct NR_DL_PRS_MeasCapability_r16 { - struct NR_DL_PRS_MeasCapability_r16__supportedBandListNR_r16 { - A_SEQUENCE_OF(struct SupportedBandNR_r16) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *supportedBandListNR_r16; - long maxNumDL_PRS_Resources_r16; - long numDL_PRS_RSRPMeasurementsPerTRP_r16; - long numPositioningFrequencyLayers_r16; - long numTrpPerPositioningFrequencyLayer_r16; - long numDL_PRS_ResourceSetsPerTRP_r16; - long numDL_PRS_ResourcesPerSet_r16; - long totalNum_DL_PRS_Resources_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_PRS_MeasCapability_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_MeasCapability_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_MeasCapability_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_MeasCapability_r16_1[8]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "SupportedBandNR-r16.h" - -#endif /* _NR_DL_PRS_MeasCapability_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.c b/asn.1/generated/NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.c deleted file mode 100644 index 68a9a487..00000000 --- a/asn.1/generated/NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.c +++ /dev/null @@ -1,2938 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.h" - -static int -memb_n4_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n5_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n8_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 7)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n10_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 9)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n16_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n20_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 19)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n32_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 31)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n40_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 39)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n64_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n80_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 79)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n160_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 159)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n320_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 319)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n640_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 639)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n1280_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1279)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n2560_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2559)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n5120_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 5119)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n10240_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 10239)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n8_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 7)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n10_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 9)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n16_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n20_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 19)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n32_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 31)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n40_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 39)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n64_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n80_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 79)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n128_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n160_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 159)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n320_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 319)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n640_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 639)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n1280_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1279)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n2560_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2559)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n5120_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 5119)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n10240_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 10239)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n20480_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 20479)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n16_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n20_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 19)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n32_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 31)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n40_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 39)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n64_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n80_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 79)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n128_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n160_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 159)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n256_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n320_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 319)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n640_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 639)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n1280_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1279)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n2560_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2559)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n5120_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 5119)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n10240_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 10239)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n20480_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 20479)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n40960_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 40959)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n32_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 31)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n40_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 39)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n64_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n80_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 79)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n128_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n160_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 159)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n256_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n320_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 319)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n512_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n640_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 639)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n1280_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1279)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n2560_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2559)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n5120_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 5119)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n10240_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 10239)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n20480_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 20479)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n40960_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 40959)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n81920_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 81919)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_n4_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n5_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n8_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n10_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n16_r16_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n20_r16_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n32_r16_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n40_r16_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 39 } /* (0..39) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n64_r16_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n80_r16_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 79 } /* (0..79) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n160_r16_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 159 } /* (0..159) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n320_r16_constr_14 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 319 } /* (0..319) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n640_r16_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 639 } /* (0..639) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n1280_r16_constr_16 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 1279 } /* (0..1279) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n2560_r16_constr_17 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 2559 } /* (0..2559) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n5120_r16_constr_18 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, 0, 5119 } /* (0..5119) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n10240_r16_constr_19 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 10239 } /* (0..10239) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_scs15_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 5, 5, 0, 16 } /* (0..16,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n8_r16_constr_22 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n10_r16_constr_23 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n16_r16_constr_24 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n20_r16_constr_25 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n32_r16_constr_26 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n40_r16_constr_27 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 39 } /* (0..39) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n64_r16_constr_28 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n80_r16_constr_29 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 79 } /* (0..79) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n128_r16_constr_30 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n160_r16_constr_31 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 159 } /* (0..159) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n320_r16_constr_32 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 319 } /* (0..319) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n640_r16_constr_33 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 639 } /* (0..639) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n1280_r16_constr_34 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 1279 } /* (0..1279) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n2560_r16_constr_35 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 2559 } /* (0..2559) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n5120_r16_constr_36 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, 0, 5119 } /* (0..5119) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n10240_r16_constr_37 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 10239 } /* (0..10239) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n20480_r16_constr_38 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, 0, 20479 } /* (0..20479) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_scs30_r16_constr_21 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 5, 5, 0, 16 } /* (0..16,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n16_r16_constr_41 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n20_r16_constr_42 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n32_r16_constr_43 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n40_r16_constr_44 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 39 } /* (0..39) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n64_r16_constr_45 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n80_r16_constr_46 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 79 } /* (0..79) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n128_r16_constr_47 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n160_r16_constr_48 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 159 } /* (0..159) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n256_r16_constr_49 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n320_r16_constr_50 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 319 } /* (0..319) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n640_r16_constr_51 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 639 } /* (0..639) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n1280_r16_constr_52 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 1279 } /* (0..1279) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n2560_r16_constr_53 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 2559 } /* (0..2559) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n5120_r16_constr_54 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, 0, 5119 } /* (0..5119) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n10240_r16_constr_55 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 10239 } /* (0..10239) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n20480_r16_constr_56 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, 0, 20479 } /* (0..20479) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n40960_r16_constr_57 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 40959 } /* (0..40959) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_scs60_r16_constr_40 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 5, 5, 0, 16 } /* (0..16,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n32_r16_constr_60 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n40_r16_constr_61 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 39 } /* (0..39) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n64_r16_constr_62 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n80_r16_constr_63 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 79 } /* (0..79) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n128_r16_constr_64 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n160_r16_constr_65 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 159 } /* (0..159) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n256_r16_constr_66 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n320_r16_constr_67 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 319 } /* (0..319) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n512_r16_constr_68 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n640_r16_constr_69 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 639 } /* (0..639) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n1280_r16_constr_70 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 1279 } /* (0..1279) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n2560_r16_constr_71 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 2559 } /* (0..2559) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n5120_r16_constr_72 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, 0, 5119 } /* (0..5119) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n10240_r16_constr_73 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 10239 } /* (0..10239) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n20480_r16_constr_74 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, 0, 20479 } /* (0..20479) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n40960_r16_constr_75 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 40959 } /* (0..40959) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n81920_r16_constr_76 CC_NOTUSED = { - { APC_CONSTRAINED, 17, -1, 0, 81919 } /* (0..81919) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_scs120_r16_constr_59 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 5, 5, 0, 16 } /* (0..16,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_per_constraints_t asn_PER_type_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_scs15_r16_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n4_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n4_r16_constr_3, memb_n4_r16_constraint_2 }, - 0, 0, /* No default value */ - "n4-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n5_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n5_r16_constr_4, memb_n5_r16_constraint_2 }, - 0, 0, /* No default value */ - "n5-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n8_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n8_r16_constr_5, memb_n8_r16_constraint_2 }, - 0, 0, /* No default value */ - "n8-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n10_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n10_r16_constr_6, memb_n10_r16_constraint_2 }, - 0, 0, /* No default value */ - "n10-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n16_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n16_r16_constr_7, memb_n16_r16_constraint_2 }, - 0, 0, /* No default value */ - "n16-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n20_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n20_r16_constr_8, memb_n20_r16_constraint_2 }, - 0, 0, /* No default value */ - "n20-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n32_r16), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n32_r16_constr_9, memb_n32_r16_constraint_2 }, - 0, 0, /* No default value */ - "n32-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n40_r16), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n40_r16_constr_10, memb_n40_r16_constraint_2 }, - 0, 0, /* No default value */ - "n40-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n64_r16), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n64_r16_constr_11, memb_n64_r16_constraint_2 }, - 0, 0, /* No default value */ - "n64-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n80_r16), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n80_r16_constr_12, memb_n80_r16_constraint_2 }, - 0, 0, /* No default value */ - "n80-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n160_r16), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n160_r16_constr_13, memb_n160_r16_constraint_2 }, - 0, 0, /* No default value */ - "n160-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n320_r16), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n320_r16_constr_14, memb_n320_r16_constraint_2 }, - 0, 0, /* No default value */ - "n320-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n640_r16), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n640_r16_constr_15, memb_n640_r16_constraint_2 }, - 0, 0, /* No default value */ - "n640-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n1280_r16), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n1280_r16_constr_16, memb_n1280_r16_constraint_2 }, - 0, 0, /* No default value */ - "n1280-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n2560_r16), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n2560_r16_constr_17, memb_n2560_r16_constraint_2 }, - 0, 0, /* No default value */ - "n2560-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n5120_r16), - (ASN_TAG_CLASS_CONTEXT | (15 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n5120_r16_constr_18, memb_n5120_r16_constraint_2 }, - 0, 0, /* No default value */ - "n5120-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n10240_r16), - (ASN_TAG_CLASS_CONTEXT | (16 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n10240_r16_constr_19, memb_n10240_r16_constraint_2 }, - 0, 0, /* No default value */ - "n10240-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_scs15_r16_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* n4-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* n5-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* n8-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* n10-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* n16-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* n20-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* n32-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* n40-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* n64-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* n80-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* n160-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* n320-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* n640-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* n1280-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* n2560-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* n5120-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 } /* n10240-r16 */ -}; -static asn_CHOICE_specifics_t asn_SPC_scs15_r16_specs_2 = { - sizeof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16), - offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, _asn_ctx), - offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, present), - sizeof(((struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16 *)0)->present), - asn_MAP_scs15_r16_tag2el_2, - 17, /* Count of tags in the map */ - 0, 0, - 17 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_scs15_r16_2 = { - "scs15-r16", - "scs15-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_scs15_r16_constr_2, CHOICE_constraint }, - asn_MBR_scs15_r16_2, - 17, /* Elements count */ - &asn_SPC_scs15_r16_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_scs30_r16_21[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n8_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n8_r16_constr_22, memb_n8_r16_constraint_21 }, - 0, 0, /* No default value */ - "n8-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n10_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n10_r16_constr_23, memb_n10_r16_constraint_21 }, - 0, 0, /* No default value */ - "n10-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n16_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n16_r16_constr_24, memb_n16_r16_constraint_21 }, - 0, 0, /* No default value */ - "n16-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n20_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n20_r16_constr_25, memb_n20_r16_constraint_21 }, - 0, 0, /* No default value */ - "n20-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n32_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n32_r16_constr_26, memb_n32_r16_constraint_21 }, - 0, 0, /* No default value */ - "n32-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n40_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n40_r16_constr_27, memb_n40_r16_constraint_21 }, - 0, 0, /* No default value */ - "n40-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n64_r16), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n64_r16_constr_28, memb_n64_r16_constraint_21 }, - 0, 0, /* No default value */ - "n64-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n80_r16), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n80_r16_constr_29, memb_n80_r16_constraint_21 }, - 0, 0, /* No default value */ - "n80-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n128_r16), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n128_r16_constr_30, memb_n128_r16_constraint_21 }, - 0, 0, /* No default value */ - "n128-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n160_r16), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n160_r16_constr_31, memb_n160_r16_constraint_21 }, - 0, 0, /* No default value */ - "n160-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n320_r16), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n320_r16_constr_32, memb_n320_r16_constraint_21 }, - 0, 0, /* No default value */ - "n320-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n640_r16), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n640_r16_constr_33, memb_n640_r16_constraint_21 }, - 0, 0, /* No default value */ - "n640-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n1280_r16), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n1280_r16_constr_34, memb_n1280_r16_constraint_21 }, - 0, 0, /* No default value */ - "n1280-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n2560_r16), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n2560_r16_constr_35, memb_n2560_r16_constraint_21 }, - 0, 0, /* No default value */ - "n2560-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n5120_r16), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n5120_r16_constr_36, memb_n5120_r16_constraint_21 }, - 0, 0, /* No default value */ - "n5120-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n10240_r16), - (ASN_TAG_CLASS_CONTEXT | (15 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n10240_r16_constr_37, memb_n10240_r16_constraint_21 }, - 0, 0, /* No default value */ - "n10240-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n20480_r16), - (ASN_TAG_CLASS_CONTEXT | (16 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n20480_r16_constr_38, memb_n20480_r16_constraint_21 }, - 0, 0, /* No default value */ - "n20480-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_scs30_r16_tag2el_21[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* n8-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* n10-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* n16-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* n20-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* n32-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* n40-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* n64-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* n80-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* n128-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* n160-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* n320-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* n640-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* n1280-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* n2560-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* n5120-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* n10240-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 } /* n20480-r16 */ -}; -static asn_CHOICE_specifics_t asn_SPC_scs30_r16_specs_21 = { - sizeof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16), - offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, _asn_ctx), - offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, present), - sizeof(((struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16 *)0)->present), - asn_MAP_scs30_r16_tag2el_21, - 17, /* Count of tags in the map */ - 0, 0, - 17 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_scs30_r16_21 = { - "scs30-r16", - "scs30-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_scs30_r16_constr_21, CHOICE_constraint }, - asn_MBR_scs30_r16_21, - 17, /* Elements count */ - &asn_SPC_scs30_r16_specs_21 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_scs60_r16_40[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n16_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n16_r16_constr_41, memb_n16_r16_constraint_40 }, - 0, 0, /* No default value */ - "n16-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n20_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n20_r16_constr_42, memb_n20_r16_constraint_40 }, - 0, 0, /* No default value */ - "n20-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n32_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n32_r16_constr_43, memb_n32_r16_constraint_40 }, - 0, 0, /* No default value */ - "n32-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n40_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n40_r16_constr_44, memb_n40_r16_constraint_40 }, - 0, 0, /* No default value */ - "n40-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n64_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n64_r16_constr_45, memb_n64_r16_constraint_40 }, - 0, 0, /* No default value */ - "n64-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n80_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n80_r16_constr_46, memb_n80_r16_constraint_40 }, - 0, 0, /* No default value */ - "n80-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n128_r16), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n128_r16_constr_47, memb_n128_r16_constraint_40 }, - 0, 0, /* No default value */ - "n128-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n160_r16), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n160_r16_constr_48, memb_n160_r16_constraint_40 }, - 0, 0, /* No default value */ - "n160-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n256_r16), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n256_r16_constr_49, memb_n256_r16_constraint_40 }, - 0, 0, /* No default value */ - "n256-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n320_r16), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n320_r16_constr_50, memb_n320_r16_constraint_40 }, - 0, 0, /* No default value */ - "n320-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n640_r16), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n640_r16_constr_51, memb_n640_r16_constraint_40 }, - 0, 0, /* No default value */ - "n640-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n1280_r16), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n1280_r16_constr_52, memb_n1280_r16_constraint_40 }, - 0, 0, /* No default value */ - "n1280-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n2560_r16), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n2560_r16_constr_53, memb_n2560_r16_constraint_40 }, - 0, 0, /* No default value */ - "n2560-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n5120_r16), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n5120_r16_constr_54, memb_n5120_r16_constraint_40 }, - 0, 0, /* No default value */ - "n5120-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n10240_r16), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n10240_r16_constr_55, memb_n10240_r16_constraint_40 }, - 0, 0, /* No default value */ - "n10240-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n20480_r16), - (ASN_TAG_CLASS_CONTEXT | (15 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n20480_r16_constr_56, memb_n20480_r16_constraint_40 }, - 0, 0, /* No default value */ - "n20480-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n40960_r16), - (ASN_TAG_CLASS_CONTEXT | (16 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n40960_r16_constr_57, memb_n40960_r16_constraint_40 }, - 0, 0, /* No default value */ - "n40960-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_scs60_r16_tag2el_40[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* n16-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* n20-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* n32-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* n40-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* n64-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* n80-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* n128-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* n160-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* n256-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* n320-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* n640-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* n1280-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* n2560-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* n5120-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* n10240-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* n20480-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 } /* n40960-r16 */ -}; -static asn_CHOICE_specifics_t asn_SPC_scs60_r16_specs_40 = { - sizeof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16), - offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, _asn_ctx), - offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, present), - sizeof(((struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16 *)0)->present), - asn_MAP_scs60_r16_tag2el_40, - 17, /* Count of tags in the map */ - 0, 0, - 17 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_scs60_r16_40 = { - "scs60-r16", - "scs60-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_scs60_r16_constr_40, CHOICE_constraint }, - asn_MBR_scs60_r16_40, - 17, /* Elements count */ - &asn_SPC_scs60_r16_specs_40 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_scs120_r16_59[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n32_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n32_r16_constr_60, memb_n32_r16_constraint_59 }, - 0, 0, /* No default value */ - "n32-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n40_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n40_r16_constr_61, memb_n40_r16_constraint_59 }, - 0, 0, /* No default value */ - "n40-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n64_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n64_r16_constr_62, memb_n64_r16_constraint_59 }, - 0, 0, /* No default value */ - "n64-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n80_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n80_r16_constr_63, memb_n80_r16_constraint_59 }, - 0, 0, /* No default value */ - "n80-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n128_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n128_r16_constr_64, memb_n128_r16_constraint_59 }, - 0, 0, /* No default value */ - "n128-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n160_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n160_r16_constr_65, memb_n160_r16_constraint_59 }, - 0, 0, /* No default value */ - "n160-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n256_r16), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n256_r16_constr_66, memb_n256_r16_constraint_59 }, - 0, 0, /* No default value */ - "n256-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n320_r16), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n320_r16_constr_67, memb_n320_r16_constraint_59 }, - 0, 0, /* No default value */ - "n320-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n512_r16), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n512_r16_constr_68, memb_n512_r16_constraint_59 }, - 0, 0, /* No default value */ - "n512-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n640_r16), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n640_r16_constr_69, memb_n640_r16_constraint_59 }, - 0, 0, /* No default value */ - "n640-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n1280_r16), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n1280_r16_constr_70, memb_n1280_r16_constraint_59 }, - 0, 0, /* No default value */ - "n1280-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n2560_r16), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n2560_r16_constr_71, memb_n2560_r16_constraint_59 }, - 0, 0, /* No default value */ - "n2560-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n5120_r16), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n5120_r16_constr_72, memb_n5120_r16_constraint_59 }, - 0, 0, /* No default value */ - "n5120-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n10240_r16), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n10240_r16_constr_73, memb_n10240_r16_constraint_59 }, - 0, 0, /* No default value */ - "n10240-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n20480_r16), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n20480_r16_constr_74, memb_n20480_r16_constraint_59 }, - 0, 0, /* No default value */ - "n20480-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n40960_r16), - (ASN_TAG_CLASS_CONTEXT | (15 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n40960_r16_constr_75, memb_n40960_r16_constraint_59 }, - 0, 0, /* No default value */ - "n40960-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n81920_r16), - (ASN_TAG_CLASS_CONTEXT | (16 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n81920_r16_constr_76, memb_n81920_r16_constraint_59 }, - 0, 0, /* No default value */ - "n81920-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_scs120_r16_tag2el_59[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* n32-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* n40-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* n64-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* n80-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* n128-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* n160-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* n256-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* n320-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* n512-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* n640-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* n1280-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* n2560-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* n5120-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* n10240-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* n20480-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* n40960-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 } /* n81920-r16 */ -}; -static asn_CHOICE_specifics_t asn_SPC_scs120_r16_specs_59 = { - sizeof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16), - offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, _asn_ctx), - offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, present), - sizeof(((struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16 *)0)->present), - asn_MAP_scs120_r16_tag2el_59, - 17, /* Count of tags in the map */ - 0, 0, - 17 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_scs120_r16_59 = { - "scs120-r16", - "scs120-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_scs120_r16_constr_59, CHOICE_constraint }, - asn_MBR_scs120_r16_59, - 17, /* Elements count */ - &asn_SPC_scs120_r16_specs_59 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16, choice.scs15_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_scs15_r16_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "scs15-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16, choice.scs30_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_scs30_r16_21, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "scs30-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16, choice.scs60_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_scs60_r16_40, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "scs60-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16, choice.scs120_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_scs120_r16_59, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "scs120-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* scs15-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* scs30-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* scs60-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* scs120-r16 */ -}; -asn_CHOICE_specifics_t asn_SPC_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16_specs_1 = { - sizeof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16), - offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16, _asn_ctx), - offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16, present), - sizeof(((struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16 *)0)->present), - asn_MAP_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16_tag2el_1, - 4, /* Count of tags in the map */ - 0, 0, - 4 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16 = { - "NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16", - "NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16_constr_1, CHOICE_constraint }, - asn_MBR_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16_1, - 4, /* Elements count */ - &asn_SPC_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-PRS-PositioningFrequencyLayer-r16.c b/asn.1/generated/NR-DL-PRS-PositioningFrequencyLayer-r16.c deleted file mode 100644 index 41723bf0..00000000 --- a/asn.1/generated/NR-DL-PRS-PositioningFrequencyLayer-r16.c +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-PRS-PositioningFrequencyLayer-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_dl_PRS_ResourceBandwidth_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_dl_PRS_StartPRB_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2176)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_dl_PRS_SubcarrierSpacing_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_dl_PRS_CombSizeN_r16_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_dl_PRS_CyclicPrefix_r16_constr_17 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_dl_PRS_ResourceBandwidth_r16_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 1, 63 } /* (1..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_dl_PRS_StartPRB_r16_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 2176 } /* (0..2176) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_SubcarrierSpacing_r16_value2enum_2[] = { - { 0, 5, "kHz15" }, - { 1, 5, "kHz30" }, - { 2, 5, "kHz60" }, - { 3, 6, "kHz120" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_dl_PRS_SubcarrierSpacing_r16_enum2value_2[] = { - 3, /* kHz120(3) */ - 0, /* kHz15(0) */ - 1, /* kHz30(1) */ - 2 /* kHz60(2) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_SubcarrierSpacing_r16_specs_2 = { - asn_MAP_dl_PRS_SubcarrierSpacing_r16_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_dl_PRS_SubcarrierSpacing_r16_enum2value_2, /* N => "tag"; sorted by N */ - 4, /* Number of elements in the maps */ - 5, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_dl_PRS_SubcarrierSpacing_r16_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_dl_PRS_SubcarrierSpacing_r16_2 = { - "dl-PRS-SubcarrierSpacing-r16", - "dl-PRS-SubcarrierSpacing-r16", - &asn_OP_NativeEnumerated, - asn_DEF_dl_PRS_SubcarrierSpacing_r16_tags_2, - sizeof(asn_DEF_dl_PRS_SubcarrierSpacing_r16_tags_2) - /sizeof(asn_DEF_dl_PRS_SubcarrierSpacing_r16_tags_2[0]) - 1, /* 1 */ - asn_DEF_dl_PRS_SubcarrierSpacing_r16_tags_2, /* Same as above */ - sizeof(asn_DEF_dl_PRS_SubcarrierSpacing_r16_tags_2) - /sizeof(asn_DEF_dl_PRS_SubcarrierSpacing_r16_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_dl_PRS_SubcarrierSpacing_r16_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_dl_PRS_SubcarrierSpacing_r16_specs_2 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_CombSizeN_r16_value2enum_11[] = { - { 0, 2, "n2" }, - { 1, 2, "n4" }, - { 2, 2, "n6" }, - { 3, 3, "n12" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_dl_PRS_CombSizeN_r16_enum2value_11[] = { - 3, /* n12(3) */ - 0, /* n2(0) */ - 1, /* n4(1) */ - 2 /* n6(2) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_CombSizeN_r16_specs_11 = { - asn_MAP_dl_PRS_CombSizeN_r16_value2enum_11, /* "tag" => N; sorted by tag */ - asn_MAP_dl_PRS_CombSizeN_r16_enum2value_11, /* N => "tag"; sorted by N */ - 4, /* Number of elements in the maps */ - 5, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_dl_PRS_CombSizeN_r16_tags_11[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_dl_PRS_CombSizeN_r16_11 = { - "dl-PRS-CombSizeN-r16", - "dl-PRS-CombSizeN-r16", - &asn_OP_NativeEnumerated, - asn_DEF_dl_PRS_CombSizeN_r16_tags_11, - sizeof(asn_DEF_dl_PRS_CombSizeN_r16_tags_11) - /sizeof(asn_DEF_dl_PRS_CombSizeN_r16_tags_11[0]) - 1, /* 1 */ - asn_DEF_dl_PRS_CombSizeN_r16_tags_11, /* Same as above */ - sizeof(asn_DEF_dl_PRS_CombSizeN_r16_tags_11) - /sizeof(asn_DEF_dl_PRS_CombSizeN_r16_tags_11[0]), /* 2 */ - { 0, &asn_PER_type_dl_PRS_CombSizeN_r16_constr_11, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_dl_PRS_CombSizeN_r16_specs_11 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_CyclicPrefix_r16_value2enum_17[] = { - { 0, 6, "normal" }, - { 1, 8, "extended" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_dl_PRS_CyclicPrefix_r16_enum2value_17[] = { - 1, /* extended(1) */ - 0 /* normal(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_CyclicPrefix_r16_specs_17 = { - asn_MAP_dl_PRS_CyclicPrefix_r16_value2enum_17, /* "tag" => N; sorted by tag */ - asn_MAP_dl_PRS_CyclicPrefix_r16_enum2value_17, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_dl_PRS_CyclicPrefix_r16_tags_17[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_dl_PRS_CyclicPrefix_r16_17 = { - "dl-PRS-CyclicPrefix-r16", - "dl-PRS-CyclicPrefix-r16", - &asn_OP_NativeEnumerated, - asn_DEF_dl_PRS_CyclicPrefix_r16_tags_17, - sizeof(asn_DEF_dl_PRS_CyclicPrefix_r16_tags_17) - /sizeof(asn_DEF_dl_PRS_CyclicPrefix_r16_tags_17[0]) - 1, /* 1 */ - asn_DEF_dl_PRS_CyclicPrefix_r16_tags_17, /* Same as above */ - sizeof(asn_DEF_dl_PRS_CyclicPrefix_r16_tags_17) - /sizeof(asn_DEF_dl_PRS_CyclicPrefix_r16_tags_17[0]), /* 2 */ - { 0, &asn_PER_type_dl_PRS_CyclicPrefix_r16_constr_17, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_dl_PRS_CyclicPrefix_r16_specs_17 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_DL_PRS_PositioningFrequencyLayer_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_PositioningFrequencyLayer_r16, dl_PRS_SubcarrierSpacing_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_dl_PRS_SubcarrierSpacing_r16_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dl-PRS-SubcarrierSpacing-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_PositioningFrequencyLayer_r16, dl_PRS_ResourceBandwidth_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_dl_PRS_ResourceBandwidth_r16_constr_8, memb_dl_PRS_ResourceBandwidth_r16_constraint_1 }, - 0, 0, /* No default value */ - "dl-PRS-ResourceBandwidth-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_PositioningFrequencyLayer_r16, dl_PRS_StartPRB_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_dl_PRS_StartPRB_r16_constr_9, memb_dl_PRS_StartPRB_r16_constraint_1 }, - 0, 0, /* No default value */ - "dl-PRS-StartPRB-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_PositioningFrequencyLayer_r16, dl_PRS_PointA_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueNR_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dl-PRS-PointA-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_PositioningFrequencyLayer_r16, dl_PRS_CombSizeN_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_dl_PRS_CombSizeN_r16_11, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dl-PRS-CombSizeN-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_PositioningFrequencyLayer_r16, dl_PRS_CyclicPrefix_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_dl_PRS_CyclicPrefix_r16_17, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dl-PRS-CyclicPrefix-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_PositioningFrequencyLayer_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_PositioningFrequencyLayer_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-SubcarrierSpacing-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* dl-PRS-ResourceBandwidth-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dl-PRS-StartPRB-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* dl-PRS-PointA-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* dl-PRS-CombSizeN-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* dl-PRS-CyclicPrefix-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_PositioningFrequencyLayer_r16_specs_1 = { - sizeof(struct NR_DL_PRS_PositioningFrequencyLayer_r16), - offsetof(struct NR_DL_PRS_PositioningFrequencyLayer_r16, _asn_ctx), - asn_MAP_NR_DL_PRS_PositioningFrequencyLayer_r16_tag2el_1, - 6, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_PositioningFrequencyLayer_r16 = { - "NR-DL-PRS-PositioningFrequencyLayer-r16", - "NR-DL-PRS-PositioningFrequencyLayer-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_PRS_PositioningFrequencyLayer_r16_tags_1, - sizeof(asn_DEF_NR_DL_PRS_PositioningFrequencyLayer_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_PositioningFrequencyLayer_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_PRS_PositioningFrequencyLayer_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_PRS_PositioningFrequencyLayer_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_PositioningFrequencyLayer_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_PRS_PositioningFrequencyLayer_r16_1, - 6, /* Elements count */ - &asn_SPC_NR_DL_PRS_PositioningFrequencyLayer_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-PRS-Resource-r16.c b/asn.1/generated/NR-DL-PRS-Resource-r16.c deleted file mode 100644 index f8cd8186..00000000 --- a/asn.1/generated/NR-DL-PRS-Resource-r16.c +++ /dev/null @@ -1,386 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-PRS-Resource-r16.h" - -static int -memb_n2_r16_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n4_r16_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n6_r16_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 5)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_n12_r16_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 11)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_dl_PRS_SequenceId_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_dl_PRS_ResourceSlotOffset_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_dl_PRS_ResourceSymbolOffset_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 12)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_n2_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n4_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n6_r16_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_n12_r16_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 11 } /* (0..11) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_dl_PRS_ReOffset_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_dl_PRS_SequenceId_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_dl_PRS_ResourceSlotOffset_r16_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_dl_PRS_ResourceSymbolOffset_r16_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 12 } /* (0..12) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_dl_PRS_ReOffset_r16_4[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Resource_r16__dl_PRS_ReOffset_r16, choice.n2_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n2_r16_constr_5, memb_n2_r16_constraint_4 }, - 0, 0, /* No default value */ - "n2-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Resource_r16__dl_PRS_ReOffset_r16, choice.n4_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n4_r16_constr_6, memb_n4_r16_constraint_4 }, - 0, 0, /* No default value */ - "n4-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Resource_r16__dl_PRS_ReOffset_r16, choice.n6_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n6_r16_constr_7, memb_n6_r16_constraint_4 }, - 0, 0, /* No default value */ - "n6-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Resource_r16__dl_PRS_ReOffset_r16, choice.n12_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_n12_r16_constr_8, memb_n12_r16_constraint_4 }, - 0, 0, /* No default value */ - "n12-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_dl_PRS_ReOffset_r16_tag2el_4[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* n2-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* n4-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* n6-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* n12-r16 */ -}; -static asn_CHOICE_specifics_t asn_SPC_dl_PRS_ReOffset_r16_specs_4 = { - sizeof(struct NR_DL_PRS_Resource_r16__dl_PRS_ReOffset_r16), - offsetof(struct NR_DL_PRS_Resource_r16__dl_PRS_ReOffset_r16, _asn_ctx), - offsetof(struct NR_DL_PRS_Resource_r16__dl_PRS_ReOffset_r16, present), - sizeof(((struct NR_DL_PRS_Resource_r16__dl_PRS_ReOffset_r16 *)0)->present), - asn_MAP_dl_PRS_ReOffset_r16_tag2el_4, - 4, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_dl_PRS_ReOffset_r16_4 = { - "dl-PRS-ReOffset-r16", - "dl-PRS-ReOffset-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_dl_PRS_ReOffset_r16_constr_4, CHOICE_constraint }, - asn_MBR_dl_PRS_ReOffset_r16_4, - 4, /* Elements count */ - &asn_SPC_dl_PRS_ReOffset_r16_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_DL_PRS_Resource_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Resource_r16, nr_DL_PRS_ResourceID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_ResourceID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-ResourceID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Resource_r16, dl_PRS_SequenceId_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_dl_PRS_SequenceId_r16_constr_3, memb_dl_PRS_SequenceId_r16_constraint_1 }, - 0, 0, /* No default value */ - "dl-PRS-SequenceId-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Resource_r16, dl_PRS_ReOffset_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_dl_PRS_ReOffset_r16_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dl-PRS-ReOffset-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Resource_r16, dl_PRS_ResourceSlotOffset_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_dl_PRS_ResourceSlotOffset_r16_constr_9, memb_dl_PRS_ResourceSlotOffset_r16_constraint_1 }, - 0, 0, /* No default value */ - "dl-PRS-ResourceSlotOffset-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Resource_r16, dl_PRS_ResourceSymbolOffset_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_dl_PRS_ResourceSymbolOffset_r16_constr_10, memb_dl_PRS_ResourceSymbolOffset_r16_constraint_1 }, - 0, 0, /* No default value */ - "dl-PRS-ResourceSymbolOffset-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_Resource_r16, dl_PRS_QCL_Info_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_DL_PRS_QCL_Info_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dl-PRS-QCL-Info-r16" - }, -}; -static const int asn_MAP_NR_DL_PRS_Resource_r16_oms_1[] = { 5 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_Resource_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_Resource_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-ResourceID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* dl-PRS-SequenceId-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dl-PRS-ReOffset-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* dl-PRS-ResourceSlotOffset-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* dl-PRS-ResourceSymbolOffset-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* dl-PRS-QCL-Info-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_Resource_r16_specs_1 = { - sizeof(struct NR_DL_PRS_Resource_r16), - offsetof(struct NR_DL_PRS_Resource_r16, _asn_ctx), - asn_MAP_NR_DL_PRS_Resource_r16_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_NR_DL_PRS_Resource_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_Resource_r16 = { - "NR-DL-PRS-Resource-r16", - "NR-DL-PRS-Resource-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_PRS_Resource_r16_tags_1, - sizeof(asn_DEF_NR_DL_PRS_Resource_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_Resource_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_PRS_Resource_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_PRS_Resource_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_Resource_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_PRS_Resource_r16_1, - 6, /* Elements count */ - &asn_SPC_NR_DL_PRS_Resource_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-PRS-Resource-r16.h b/asn.1/generated/NR-DL-PRS-Resource-r16.h deleted file mode 100644 index 9fddea27..00000000 --- a/asn.1/generated/NR-DL-PRS-Resource-r16.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_PRS_Resource_r16_H_ -#define _NR_DL_PRS_Resource_r16_H_ - - -#include - -/* Including external dependencies */ -#include "NR-DL-PRS-ResourceID-r16.h" -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum NR_DL_PRS_Resource_r16__dl_PRS_ReOffset_r16_PR { - NR_DL_PRS_Resource_r16__dl_PRS_ReOffset_r16_PR_NOTHING, /* No components present */ - NR_DL_PRS_Resource_r16__dl_PRS_ReOffset_r16_PR_n2_r16, - NR_DL_PRS_Resource_r16__dl_PRS_ReOffset_r16_PR_n4_r16, - NR_DL_PRS_Resource_r16__dl_PRS_ReOffset_r16_PR_n6_r16, - NR_DL_PRS_Resource_r16__dl_PRS_ReOffset_r16_PR_n12_r16 -} NR_DL_PRS_Resource_r16__dl_PRS_ReOffset_r16_PR; - -/* Forward declarations */ -struct DL_PRS_QCL_Info_r16; - -/* NR-DL-PRS-Resource-r16 */ -typedef struct NR_DL_PRS_Resource_r16 { - NR_DL_PRS_ResourceID_r16_t nr_DL_PRS_ResourceID_r16; - long dl_PRS_SequenceId_r16; - struct NR_DL_PRS_Resource_r16__dl_PRS_ReOffset_r16 { - NR_DL_PRS_Resource_r16__dl_PRS_ReOffset_r16_PR present; - union NR_DL_PRS_Resource_r16__dl_PRS_ReOffset_r16_u { - long n2_r16; - long n4_r16; - long n6_r16; - long n12_r16; - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } dl_PRS_ReOffset_r16; - long dl_PRS_ResourceSlotOffset_r16; - long dl_PRS_ResourceSymbolOffset_r16; - struct DL_PRS_QCL_Info_r16 *dl_PRS_QCL_Info_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_PRS_Resource_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_Resource_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_Resource_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_Resource_r16_1[6]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "DL-PRS-QCL-Info-r16.h" - -#endif /* _NR_DL_PRS_Resource_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-PRS-ResourceID-r16.c b/asn.1/generated/NR-DL-PRS-ResourceID-r16.c deleted file mode 100644 index 9ce613df..00000000 --- a/asn.1/generated/NR-DL-PRS-ResourceID-r16.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-PRS-ResourceID-r16.h" - -int -NR_DL_PRS_ResourceID_r16_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_NR_DL_PRS_ResourceID_r16_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_ResourceID_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ResourceID_r16 = { - "NR-DL-PRS-ResourceID-r16", - "NR-DL-PRS-ResourceID-r16", - &asn_OP_NativeInteger, - asn_DEF_NR_DL_PRS_ResourceID_r16_tags_1, - sizeof(asn_DEF_NR_DL_PRS_ResourceID_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_ResourceID_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_PRS_ResourceID_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_PRS_ResourceID_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_ResourceID_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_NR_DL_PRS_ResourceID_r16_constr_1, NR_DL_PRS_ResourceID_r16_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/NR-DL-PRS-ResourceID-r16.h b/asn.1/generated/NR-DL-PRS-ResourceID-r16.h deleted file mode 100644 index 8b31251b..00000000 --- a/asn.1/generated/NR-DL-PRS-ResourceID-r16.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_PRS_ResourceID_r16_H_ -#define _NR_DL_PRS_ResourceID_r16_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* NR-DL-PRS-ResourceID-r16 */ -typedef long NR_DL_PRS_ResourceID_r16_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_NR_DL_PRS_ResourceID_r16_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ResourceID_r16; -asn_struct_free_f NR_DL_PRS_ResourceID_r16_free; -asn_struct_print_f NR_DL_PRS_ResourceID_r16_print; -asn_constr_check_f NR_DL_PRS_ResourceID_r16_constraint; -ber_type_decoder_f NR_DL_PRS_ResourceID_r16_decode_ber; -der_type_encoder_f NR_DL_PRS_ResourceID_r16_encode_der; -xer_type_decoder_f NR_DL_PRS_ResourceID_r16_decode_xer; -xer_type_encoder_f NR_DL_PRS_ResourceID_r16_encode_xer; -per_type_decoder_f NR_DL_PRS_ResourceID_r16_decode_uper; -per_type_encoder_f NR_DL_PRS_ResourceID_r16_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_DL_PRS_ResourceID_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-PRS-ResourceSet-r16.c b/asn.1/generated/NR-DL-PRS-ResourceSet-r16.c deleted file mode 100644 index a3803218..00000000 --- a/asn.1/generated/NR-DL-PRS-ResourceSet-r16.c +++ /dev/null @@ -1,592 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-PRS-ResourceSet-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_dl_PRS_ResourceList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 64)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_dl_PRS_ResourcePower_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -60 && value <= 50)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_dl_PRS_ResourceRepetitionFactor_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 6 } /* (0..6,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_dl_PRS_ResourceTimeGap_r16_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_dl_PRS_ResourceList_r16_constr_21 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_dl_PRS_NumSymbols_r16_constr_23 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_dl_PRS_MutingBitRepetitionFactor_r16_constr_32 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_dl_PRS_ResourceList_r16_constr_21 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_dl_PRS_ResourcePower_r16_constr_40 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, -60, 50 } /* (-60..50) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_ResourceRepetitionFactor_r16_value2enum_4[] = { - { 0, 2, "n1" }, - { 1, 2, "n2" }, - { 2, 2, "n4" }, - { 3, 2, "n6" }, - { 4, 2, "n8" }, - { 5, 3, "n16" }, - { 6, 3, "n32" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_dl_PRS_ResourceRepetitionFactor_r16_enum2value_4[] = { - 0, /* n1(0) */ - 5, /* n16(5) */ - 1, /* n2(1) */ - 6, /* n32(6) */ - 2, /* n4(2) */ - 3, /* n6(3) */ - 4 /* n8(4) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_ResourceRepetitionFactor_r16_specs_4 = { - asn_MAP_dl_PRS_ResourceRepetitionFactor_r16_value2enum_4, /* "tag" => N; sorted by tag */ - asn_MAP_dl_PRS_ResourceRepetitionFactor_r16_enum2value_4, /* N => "tag"; sorted by N */ - 7, /* Number of elements in the maps */ - 8, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_4 = { - "dl-PRS-ResourceRepetitionFactor-r16", - "dl-PRS-ResourceRepetitionFactor-r16", - &asn_OP_NativeEnumerated, - asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_tags_4, - sizeof(asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_tags_4) - /sizeof(asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_tags_4[0]) - 1, /* 1 */ - asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_tags_4, /* Same as above */ - sizeof(asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_tags_4) - /sizeof(asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_tags_4[0]), /* 2 */ - { 0, &asn_PER_type_dl_PRS_ResourceRepetitionFactor_r16_constr_4, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_dl_PRS_ResourceRepetitionFactor_r16_specs_4 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_ResourceTimeGap_r16_value2enum_13[] = { - { 0, 2, "s1" }, - { 1, 2, "s2" }, - { 2, 2, "s4" }, - { 3, 2, "s8" }, - { 4, 3, "s16" }, - { 5, 3, "s32" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_dl_PRS_ResourceTimeGap_r16_enum2value_13[] = { - 0, /* s1(0) */ - 4, /* s16(4) */ - 1, /* s2(1) */ - 5, /* s32(5) */ - 2, /* s4(2) */ - 3 /* s8(3) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_ResourceTimeGap_r16_specs_13 = { - asn_MAP_dl_PRS_ResourceTimeGap_r16_value2enum_13, /* "tag" => N; sorted by tag */ - asn_MAP_dl_PRS_ResourceTimeGap_r16_enum2value_13, /* N => "tag"; sorted by N */ - 6, /* Number of elements in the maps */ - 7, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_dl_PRS_ResourceTimeGap_r16_tags_13[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_dl_PRS_ResourceTimeGap_r16_13 = { - "dl-PRS-ResourceTimeGap-r16", - "dl-PRS-ResourceTimeGap-r16", - &asn_OP_NativeEnumerated, - asn_DEF_dl_PRS_ResourceTimeGap_r16_tags_13, - sizeof(asn_DEF_dl_PRS_ResourceTimeGap_r16_tags_13) - /sizeof(asn_DEF_dl_PRS_ResourceTimeGap_r16_tags_13[0]) - 1, /* 1 */ - asn_DEF_dl_PRS_ResourceTimeGap_r16_tags_13, /* Same as above */ - sizeof(asn_DEF_dl_PRS_ResourceTimeGap_r16_tags_13) - /sizeof(asn_DEF_dl_PRS_ResourceTimeGap_r16_tags_13[0]), /* 2 */ - { 0, &asn_PER_type_dl_PRS_ResourceTimeGap_r16_constr_13, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_dl_PRS_ResourceTimeGap_r16_specs_13 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_dl_PRS_ResourceList_r16_21[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NR_DL_PRS_Resource_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_dl_PRS_ResourceList_r16_tags_21[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_dl_PRS_ResourceList_r16_specs_21 = { - sizeof(struct NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceList_r16), - offsetof(struct NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_dl_PRS_ResourceList_r16_21 = { - "dl-PRS-ResourceList-r16", - "dl-PRS-ResourceList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_dl_PRS_ResourceList_r16_tags_21, - sizeof(asn_DEF_dl_PRS_ResourceList_r16_tags_21) - /sizeof(asn_DEF_dl_PRS_ResourceList_r16_tags_21[0]) - 1, /* 1 */ - asn_DEF_dl_PRS_ResourceList_r16_tags_21, /* Same as above */ - sizeof(asn_DEF_dl_PRS_ResourceList_r16_tags_21) - /sizeof(asn_DEF_dl_PRS_ResourceList_r16_tags_21[0]), /* 2 */ - { 0, &asn_PER_type_dl_PRS_ResourceList_r16_constr_21, SEQUENCE_OF_constraint }, - asn_MBR_dl_PRS_ResourceList_r16_21, - 1, /* Single element */ - &asn_SPC_dl_PRS_ResourceList_r16_specs_21 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_NumSymbols_r16_value2enum_23[] = { - { 0, 2, "n2" }, - { 1, 2, "n4" }, - { 2, 2, "n6" }, - { 3, 3, "n12" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_dl_PRS_NumSymbols_r16_enum2value_23[] = { - 3, /* n12(3) */ - 0, /* n2(0) */ - 1, /* n4(1) */ - 2 /* n6(2) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_NumSymbols_r16_specs_23 = { - asn_MAP_dl_PRS_NumSymbols_r16_value2enum_23, /* "tag" => N; sorted by tag */ - asn_MAP_dl_PRS_NumSymbols_r16_enum2value_23, /* N => "tag"; sorted by N */ - 4, /* Number of elements in the maps */ - 5, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_dl_PRS_NumSymbols_r16_tags_23[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_dl_PRS_NumSymbols_r16_23 = { - "dl-PRS-NumSymbols-r16", - "dl-PRS-NumSymbols-r16", - &asn_OP_NativeEnumerated, - asn_DEF_dl_PRS_NumSymbols_r16_tags_23, - sizeof(asn_DEF_dl_PRS_NumSymbols_r16_tags_23) - /sizeof(asn_DEF_dl_PRS_NumSymbols_r16_tags_23[0]) - 1, /* 1 */ - asn_DEF_dl_PRS_NumSymbols_r16_tags_23, /* Same as above */ - sizeof(asn_DEF_dl_PRS_NumSymbols_r16_tags_23) - /sizeof(asn_DEF_dl_PRS_NumSymbols_r16_tags_23[0]), /* 2 */ - { 0, &asn_PER_type_dl_PRS_NumSymbols_r16_constr_23, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_dl_PRS_NumSymbols_r16_specs_23 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_MutingBitRepetitionFactor_r16_value2enum_32[] = { - { 0, 2, "n1" }, - { 1, 2, "n2" }, - { 2, 2, "n4" }, - { 3, 2, "n8" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_dl_PRS_MutingBitRepetitionFactor_r16_enum2value_32[] = { - 0, /* n1(0) */ - 1, /* n2(1) */ - 2, /* n4(2) */ - 3 /* n8(3) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_MutingBitRepetitionFactor_r16_specs_32 = { - asn_MAP_dl_PRS_MutingBitRepetitionFactor_r16_value2enum_32, /* "tag" => N; sorted by tag */ - asn_MAP_dl_PRS_MutingBitRepetitionFactor_r16_enum2value_32, /* N => "tag"; sorted by N */ - 4, /* Number of elements in the maps */ - 5, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_dl_PRS_MutingBitRepetitionFactor_r16_tags_32[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_dl_PRS_MutingBitRepetitionFactor_r16_32 = { - "dl-PRS-MutingBitRepetitionFactor-r16", - "dl-PRS-MutingBitRepetitionFactor-r16", - &asn_OP_NativeEnumerated, - asn_DEF_dl_PRS_MutingBitRepetitionFactor_r16_tags_32, - sizeof(asn_DEF_dl_PRS_MutingBitRepetitionFactor_r16_tags_32) - /sizeof(asn_DEF_dl_PRS_MutingBitRepetitionFactor_r16_tags_32[0]) - 1, /* 1 */ - asn_DEF_dl_PRS_MutingBitRepetitionFactor_r16_tags_32, /* Same as above */ - sizeof(asn_DEF_dl_PRS_MutingBitRepetitionFactor_r16_tags_32) - /sizeof(asn_DEF_dl_PRS_MutingBitRepetitionFactor_r16_tags_32[0]), /* 2 */ - { 0, &asn_PER_type_dl_PRS_MutingBitRepetitionFactor_r16_constr_32, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_dl_PRS_MutingBitRepetitionFactor_r16_specs_32 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_mutingOption1_r16_30[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16__mutingOption1_r16, mutingPattern_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_MutingPattern_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mutingPattern-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16__mutingOption1_r16, dl_PRS_MutingBitRepetitionFactor_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_dl_PRS_MutingBitRepetitionFactor_r16_32, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dl-PRS-MutingBitRepetitionFactor-r16" - }, -}; -static const int asn_MAP_mutingOption1_r16_oms_30[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_mutingOption1_r16_tags_30[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_mutingOption1_r16_tag2el_30[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mutingPattern-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dl-PRS-MutingBitRepetitionFactor-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_mutingOption1_r16_specs_30 = { - sizeof(struct NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16__mutingOption1_r16), - offsetof(struct NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16__mutingOption1_r16, _asn_ctx), - asn_MAP_mutingOption1_r16_tag2el_30, - 2, /* Count of tags in the map */ - asn_MAP_mutingOption1_r16_oms_30, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_mutingOption1_r16_30 = { - "mutingOption1-r16", - "mutingOption1-r16", - &asn_OP_SEQUENCE, - asn_DEF_mutingOption1_r16_tags_30, - sizeof(asn_DEF_mutingOption1_r16_tags_30) - /sizeof(asn_DEF_mutingOption1_r16_tags_30[0]) - 1, /* 1 */ - asn_DEF_mutingOption1_r16_tags_30, /* Same as above */ - sizeof(asn_DEF_mutingOption1_r16_tags_30) - /sizeof(asn_DEF_mutingOption1_r16_tags_30[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_mutingOption1_r16_30, - 2, /* Elements count */ - &asn_SPC_mutingOption1_r16_specs_30 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_mutingOption2_r16_38[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16__mutingOption2_r16, mutingPattern_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_MutingPattern_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mutingPattern-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_mutingOption2_r16_tags_38[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_mutingOption2_r16_tag2el_38[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* mutingPattern-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_mutingOption2_r16_specs_38 = { - sizeof(struct NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16__mutingOption2_r16), - offsetof(struct NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16__mutingOption2_r16, _asn_ctx), - asn_MAP_mutingOption2_r16_tag2el_38, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_mutingOption2_r16_38 = { - "mutingOption2-r16", - "mutingOption2-r16", - &asn_OP_SEQUENCE, - asn_DEF_mutingOption2_r16_tags_38, - sizeof(asn_DEF_mutingOption2_r16_tags_38) - /sizeof(asn_DEF_mutingOption2_r16_tags_38[0]) - 1, /* 1 */ - asn_DEF_mutingOption2_r16_tags_38, /* Same as above */ - sizeof(asn_DEF_mutingOption2_r16_tags_38) - /sizeof(asn_DEF_mutingOption2_r16_tags_38[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_mutingOption2_r16_38, - 1, /* Elements count */ - &asn_SPC_mutingOption2_r16_specs_38 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_dl_PRS_MutingPatternList_r16_29[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16, mutingOption1_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_mutingOption1_r16_30, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mutingOption1-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16, mutingOption2_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_mutingOption2_r16_38, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mutingOption2-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_dl_PRS_MutingPatternList_r16_tags_29[] = { - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_dl_PRS_MutingPatternList_r16_tag2el_29[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mutingOption1-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* mutingOption2-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_dl_PRS_MutingPatternList_r16_specs_29 = { - sizeof(struct NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16), - offsetof(struct NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16, _asn_ctx), - asn_MAP_dl_PRS_MutingPatternList_r16_tag2el_29, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_dl_PRS_MutingPatternList_r16_29 = { - "dl-PRS-MutingPatternList-r16", - "dl-PRS-MutingPatternList-r16", - &asn_OP_SEQUENCE, - asn_DEF_dl_PRS_MutingPatternList_r16_tags_29, - sizeof(asn_DEF_dl_PRS_MutingPatternList_r16_tags_29) - /sizeof(asn_DEF_dl_PRS_MutingPatternList_r16_tags_29[0]) - 1, /* 1 */ - asn_DEF_dl_PRS_MutingPatternList_r16_tags_29, /* Same as above */ - sizeof(asn_DEF_dl_PRS_MutingPatternList_r16_tags_29) - /sizeof(asn_DEF_dl_PRS_MutingPatternList_r16_tags_29[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_dl_PRS_MutingPatternList_r16_29, - 2, /* Elements count */ - &asn_SPC_dl_PRS_MutingPatternList_r16_specs_29 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_DL_PRS_ResourceSet_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourceSet_r16, nr_DL_PRS_ResourceSetID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_ResourceSetID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-ResourceSetID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourceSet_r16, dl_PRS_Periodicity_and_ResourceSetSlotOffset_r16_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dl-PRS-Periodicity-and-ResourceSetSlotOffset-r16-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourceSet_r16, dl_PRS_ResourceRepetitionFactor_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dl-PRS-ResourceRepetitionFactor-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourceSet_r16, dl_PRS_ResourceTimeGap_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_dl_PRS_ResourceTimeGap_r16_13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dl-PRS-ResourceTimeGap-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourceSet_r16, dl_PRS_ResourceList_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - 0, - &asn_DEF_dl_PRS_ResourceList_r16_21, - 0, - { 0, &asn_PER_memb_dl_PRS_ResourceList_r16_constr_21, memb_dl_PRS_ResourceList_r16_constraint_1 }, - 0, 0, /* No default value */ - "dl-PRS-ResourceList-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourceSet_r16, dl_PRS_NumSymbols_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_dl_PRS_NumSymbols_r16_23, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dl-PRS-NumSymbols-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourceSet_r16, dl_PRS_MutingPatternList_r16), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - 0, - &asn_DEF_dl_PRS_MutingPatternList_r16_29, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dl-PRS-MutingPatternList-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourceSet_r16, dl_PRS_ResourcePower_r16), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_dl_PRS_ResourcePower_r16_constr_40, memb_dl_PRS_ResourcePower_r16_constraint_1 }, - 0, 0, /* No default value */ - "dl-PRS-ResourcePower-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_ResourceSet_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_ResourceSet_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-ResourceSetID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* dl-PRS-Periodicity-and-ResourceSetSlotOffset-r16-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dl-PRS-ResourceRepetitionFactor-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* dl-PRS-ResourceTimeGap-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* dl-PRS-ResourceList-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* dl-PRS-NumSymbols-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* dl-PRS-MutingPatternList-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* dl-PRS-ResourcePower-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_ResourceSet_r16_specs_1 = { - sizeof(struct NR_DL_PRS_ResourceSet_r16), - offsetof(struct NR_DL_PRS_ResourceSet_r16, _asn_ctx), - asn_MAP_NR_DL_PRS_ResourceSet_r16_tag2el_1, - 8, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 8, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ResourceSet_r16 = { - "NR-DL-PRS-ResourceSet-r16", - "NR-DL-PRS-ResourceSet-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_PRS_ResourceSet_r16_tags_1, - sizeof(asn_DEF_NR_DL_PRS_ResourceSet_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_ResourceSet_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_PRS_ResourceSet_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_PRS_ResourceSet_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_ResourceSet_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_PRS_ResourceSet_r16_1, - 8, /* Elements count */ - &asn_SPC_NR_DL_PRS_ResourceSet_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-PRS-ResourceSet-r16.h b/asn.1/generated/NR-DL-PRS-ResourceSet-r16.h deleted file mode 100644 index 604f4737..00000000 --- a/asn.1/generated/NR-DL-PRS-ResourceSet-r16.h +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_PRS_ResourceSet_r16_H_ -#define _NR_DL_PRS_ResourceSet_r16_H_ - - -#include - -/* Including external dependencies */ -#include "NR-DL-PRS-ResourceSetID-r16.h" -#include "NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.h" -#include -#include -#include -#include -#include "MutingPattern-r16.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceRepetitionFactor_r16 { - NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceRepetitionFactor_r16_n1 = 0, - NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceRepetitionFactor_r16_n2 = 1, - NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceRepetitionFactor_r16_n4 = 2, - NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceRepetitionFactor_r16_n6 = 3, - NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceRepetitionFactor_r16_n8 = 4, - NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceRepetitionFactor_r16_n16 = 5, - NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceRepetitionFactor_r16_n32 = 6 - /* - * Enumeration is extensible - */ -} e_NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceRepetitionFactor_r16; -typedef enum NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceTimeGap_r16 { - NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceTimeGap_r16_s1 = 0, - NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceTimeGap_r16_s2 = 1, - NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceTimeGap_r16_s4 = 2, - NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceTimeGap_r16_s8 = 3, - NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceTimeGap_r16_s16 = 4, - NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceTimeGap_r16_s32 = 5 - /* - * Enumeration is extensible - */ -} e_NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceTimeGap_r16; -typedef enum NR_DL_PRS_ResourceSet_r16__dl_PRS_NumSymbols_r16 { - NR_DL_PRS_ResourceSet_r16__dl_PRS_NumSymbols_r16_n2 = 0, - NR_DL_PRS_ResourceSet_r16__dl_PRS_NumSymbols_r16_n4 = 1, - NR_DL_PRS_ResourceSet_r16__dl_PRS_NumSymbols_r16_n6 = 2, - NR_DL_PRS_ResourceSet_r16__dl_PRS_NumSymbols_r16_n12 = 3 - /* - * Enumeration is extensible - */ -} e_NR_DL_PRS_ResourceSet_r16__dl_PRS_NumSymbols_r16; -typedef enum NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16__mutingOption1_r16__dl_PRS_MutingBitRepetitionFactor_r16 { - NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16__mutingOption1_r16__dl_PRS_MutingBitRepetitionFactor_r16_n1 = 0, - NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16__mutingOption1_r16__dl_PRS_MutingBitRepetitionFactor_r16_n2 = 1, - NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16__mutingOption1_r16__dl_PRS_MutingBitRepetitionFactor_r16_n4 = 2, - NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16__mutingOption1_r16__dl_PRS_MutingBitRepetitionFactor_r16_n8 = 3 - /* - * Enumeration is extensible - */ -} e_NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16__mutingOption1_r16__dl_PRS_MutingBitRepetitionFactor_r16; - -/* Forward declarations */ -struct NR_DL_PRS_Resource_r16; - -/* NR-DL-PRS-ResourceSet-r16 */ -typedef struct NR_DL_PRS_ResourceSet_r16 { - NR_DL_PRS_ResourceSetID_r16_t nr_DL_PRS_ResourceSetID_r16; - NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16_t dl_PRS_Periodicity_and_ResourceSetSlotOffset_r16_r16; - long dl_PRS_ResourceRepetitionFactor_r16; - long dl_PRS_ResourceTimeGap_r16; - struct NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceList_r16 { - A_SEQUENCE_OF(struct NR_DL_PRS_Resource_r16) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } dl_PRS_ResourceList_r16; - long dl_PRS_NumSymbols_r16; - struct NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16 { - struct NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16__mutingOption1_r16 { - MutingPattern_r16_t mutingPattern_r16; - long *dl_PRS_MutingBitRepetitionFactor_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } mutingOption1_r16; - struct NR_DL_PRS_ResourceSet_r16__dl_PRS_MutingPatternList_r16__mutingOption2_r16 { - MutingPattern_r16_t mutingPattern_r16; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } mutingOption2_r16; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } dl_PRS_MutingPatternList_r16; - long dl_PRS_ResourcePower_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_PRS_ResourceSet_r16_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_4; // (Use -fall-defs-global to expose) */ -/* extern asn_TYPE_descriptor_t asn_DEF_dl_PRS_ResourceTimeGap_r16_13; // (Use -fall-defs-global to expose) */ -/* extern asn_TYPE_descriptor_t asn_DEF_dl_PRS_NumSymbols_r16_23; // (Use -fall-defs-global to expose) */ -/* extern asn_TYPE_descriptor_t asn_DEF_dl_PRS_MutingBitRepetitionFactor_r16_32; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ResourceSet_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_ResourceSet_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_ResourceSet_r16_1[8]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-DL-PRS-Resource-r16.h" - -#endif /* _NR_DL_PRS_ResourceSet_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-PRS-ResourceSetID-r16.c b/asn.1/generated/NR-DL-PRS-ResourceSetID-r16.c deleted file mode 100644 index b53f4317..00000000 --- a/asn.1/generated/NR-DL-PRS-ResourceSetID-r16.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-PRS-ResourceSetID-r16.h" - -int -NR_DL_PRS_ResourceSetID_r16_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 7)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_NR_DL_PRS_ResourceSetID_r16_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_ResourceSetID_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ResourceSetID_r16 = { - "NR-DL-PRS-ResourceSetID-r16", - "NR-DL-PRS-ResourceSetID-r16", - &asn_OP_NativeInteger, - asn_DEF_NR_DL_PRS_ResourceSetID_r16_tags_1, - sizeof(asn_DEF_NR_DL_PRS_ResourceSetID_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_ResourceSetID_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_PRS_ResourceSetID_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_PRS_ResourceSetID_r16_tags_1) - /sizeof(asn_DEF_NR_DL_PRS_ResourceSetID_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_NR_DL_PRS_ResourceSetID_r16_constr_1, NR_DL_PRS_ResourceSetID_r16_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/NR-DL-PRS-ResourceSetID-r16.h b/asn.1/generated/NR-DL-PRS-ResourceSetID-r16.h deleted file mode 100644 index d45ffb88..00000000 --- a/asn.1/generated/NR-DL-PRS-ResourceSetID-r16.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_PRS_ResourceSetID_r16_H_ -#define _NR_DL_PRS_ResourceSetID_r16_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* NR-DL-PRS-ResourceSetID-r16 */ -typedef long NR_DL_PRS_ResourceSetID_r16_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_NR_DL_PRS_ResourceSetID_r16_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ResourceSetID_r16; -asn_struct_free_f NR_DL_PRS_ResourceSetID_r16_free; -asn_struct_print_f NR_DL_PRS_ResourceSetID_r16_print; -asn_constr_check_f NR_DL_PRS_ResourceSetID_r16_constraint; -ber_type_decoder_f NR_DL_PRS_ResourceSetID_r16_decode_ber; -der_type_encoder_f NR_DL_PRS_ResourceSetID_r16_encode_der; -xer_type_decoder_f NR_DL_PRS_ResourceSetID_r16_decode_xer; -xer_type_encoder_f NR_DL_PRS_ResourceSetID_r16_encode_xer; -per_type_decoder_f NR_DL_PRS_ResourceSetID_r16_decode_uper; -per_type_encoder_f NR_DL_PRS_ResourceSetID_r16_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_DL_PRS_ResourceSetID_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-TDOA-AdditionalMeasurementElement-r16.c b/asn.1/generated/NR-DL-TDOA-AdditionalMeasurementElement-r16.c deleted file mode 100644 index cd085d41..00000000 --- a/asn.1/generated/NR-DL-TDOA-AdditionalMeasurementElement-r16.c +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-TDOA-AdditionalMeasurementElement-r16.h" - -static int -memb_nr_RSTD_ResultDiff_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_dl_PRS_RSRP_ResultDiff_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_nr_RSTD_ResultDiff_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_dl_PRS_RSRP_ResultDiff_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (1..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_DL_TDOA_AdditionalMeasurementElement_r16_1[] = { - { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16, nr_DL_PRS_ResourceID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_ResourceID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-ResourceID-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16, nr_DL_PRS_ResourceSetID_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_ResourceSetID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-ResourceSetID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16, nr_TimeStamp_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_TimeStamp_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-TimeStamp-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16, nr_RSTD_ResultDiff_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_RSTD_ResultDiff_r16_constr_5, memb_nr_RSTD_ResultDiff_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-RSTD-ResultDiff-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16, dl_PRS_RSRP_ResultDiff_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_dl_PRS_RSRP_ResultDiff_r16_constr_6, memb_dl_PRS_RSRP_ResultDiff_r16_constraint_1 }, - 0, 0, /* No default value */ - "dl-PRS-RSRP-ResultDiff-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16, nr_AdditionalPathList_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_AdditionalPathList_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-AdditionalPathList-r16" - }, -}; -static const int asn_MAP_NR_DL_TDOA_AdditionalMeasurementElement_r16_oms_1[] = { 0, 1, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_AdditionalMeasurementElement_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-ResourceID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-ResourceSetID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-TimeStamp-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-RSTD-ResultDiff-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* dl-PRS-RSRP-ResultDiff-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* nr-AdditionalPathList-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_AdditionalMeasurementElement_r16_specs_1 = { - sizeof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16), - offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16, _asn_ctx), - asn_MAP_NR_DL_TDOA_AdditionalMeasurementElement_r16_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_NR_DL_TDOA_AdditionalMeasurementElement_r16_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16 = { - "NR-DL-TDOA-AdditionalMeasurementElement-r16", - "NR-DL-TDOA-AdditionalMeasurementElement-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16_tags_1, - sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_TDOA_AdditionalMeasurementElement_r16_1, - 6, /* Elements count */ - &asn_SPC_NR_DL_TDOA_AdditionalMeasurementElement_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-TDOA-AdditionalMeasurementElement-r16.h b/asn.1/generated/NR-DL-TDOA-AdditionalMeasurementElement-r16.h deleted file mode 100644 index a8d98768..00000000 --- a/asn.1/generated/NR-DL-TDOA-AdditionalMeasurementElement-r16.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_TDOA_AdditionalMeasurementElement_r16_H_ -#define _NR_DL_TDOA_AdditionalMeasurementElement_r16_H_ - - -#include - -/* Including external dependencies */ -#include "NR-DL-PRS-ResourceID-r16.h" -#include "NR-DL-PRS-ResourceSetID-r16.h" -#include "NR-TimeStamp-r16.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct NR_AdditionalPathList_r16; - -/* NR-DL-TDOA-AdditionalMeasurementElement-r16 */ -typedef struct NR_DL_TDOA_AdditionalMeasurementElement_r16 { - NR_DL_PRS_ResourceID_r16_t *nr_DL_PRS_ResourceID_r16 /* OPTIONAL */; - NR_DL_PRS_ResourceSetID_r16_t *nr_DL_PRS_ResourceSetID_r16 /* OPTIONAL */; - NR_TimeStamp_r16_t nr_TimeStamp_r16; - long nr_RSTD_ResultDiff_r16; - long *dl_PRS_RSRP_ResultDiff_r16 /* OPTIONAL */; - struct NR_AdditionalPathList_r16 *nr_AdditionalPathList_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_TDOA_AdditionalMeasurementElement_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_AdditionalMeasurementElement_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_AdditionalMeasurementElement_r16_1[6]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-AdditionalPathList-r16.h" - -#endif /* _NR_DL_TDOA_AdditionalMeasurementElement_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-TDOA-AdditionalMeasurements-r16.c b/asn.1/generated/NR-DL-TDOA-AdditionalMeasurements-r16.c deleted file mode 100644 index a5120213..00000000 --- a/asn.1/generated/NR-DL-TDOA-AdditionalMeasurements-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-TDOA-AdditionalMeasurements-r16.h" - -asn_per_constraints_t asn_PER_type_NR_DL_TDOA_AdditionalMeasurements_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_DL_TDOA_AdditionalMeasurements_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_AdditionalMeasurements_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_NR_DL_TDOA_AdditionalMeasurements_r16_specs_1 = { - sizeof(struct NR_DL_TDOA_AdditionalMeasurements_r16), - offsetof(struct NR_DL_TDOA_AdditionalMeasurements_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_AdditionalMeasurements_r16 = { - "NR-DL-TDOA-AdditionalMeasurements-r16", - "NR-DL-TDOA-AdditionalMeasurements-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_NR_DL_TDOA_AdditionalMeasurements_r16_tags_1, - sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurements_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurements_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_TDOA_AdditionalMeasurements_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurements_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurements_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_NR_DL_TDOA_AdditionalMeasurements_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_NR_DL_TDOA_AdditionalMeasurements_r16_1, - 1, /* Single element */ - &asn_SPC_NR_DL_TDOA_AdditionalMeasurements_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-TDOA-Error-r16.c b/asn.1/generated/NR-DL-TDOA-Error-r16.c deleted file mode 100644 index 6348c0ca..00000000 --- a/asn.1/generated/NR-DL-TDOA-Error-r16.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-TDOA-Error-r16.h" - -asn_per_constraints_t asn_PER_type_NR_DL_TDOA_Error_r16_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_DL_TDOA_Error_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_Error_r16, choice.locationServerErrorCauses_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_TDOA_LocationServerErrorCauses_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationServerErrorCauses-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_Error_r16, choice.targetDeviceErrorCauses_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "targetDeviceErrorCauses-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_Error_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses-r16 */ -}; -asn_CHOICE_specifics_t asn_SPC_NR_DL_TDOA_Error_r16_specs_1 = { - sizeof(struct NR_DL_TDOA_Error_r16), - offsetof(struct NR_DL_TDOA_Error_r16, _asn_ctx), - offsetof(struct NR_DL_TDOA_Error_r16, present), - sizeof(((struct NR_DL_TDOA_Error_r16 *)0)->present), - asn_MAP_NR_DL_TDOA_Error_r16_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_Error_r16 = { - "NR-DL-TDOA-Error-r16", - "NR-DL-TDOA-Error-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_NR_DL_TDOA_Error_r16_constr_1, CHOICE_constraint }, - asn_MBR_NR_DL_TDOA_Error_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_DL_TDOA_Error_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-TDOA-LocationInformation-r16.c b/asn.1/generated/NR-DL-TDOA-LocationInformation-r16.c deleted file mode 100644 index ae0a437b..00000000 --- a/asn.1/generated/NR-DL-TDOA-LocationInformation-r16.c +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-TDOA-LocationInformation-r16.h" - -static asn_per_constraints_t asn_PER_type_measurementReferenceTime_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_measurementReferenceTime_r16_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_LocationInformation_r16__measurementReferenceTime_r16, choice.systemFrameNumber_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_TimeStamp_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "systemFrameNumber-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_LocationInformation_r16__measurementReferenceTime_r16, choice.utc_time_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTCTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utc-time-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_measurementReferenceTime_r16_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* systemFrameNumber-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* utc-time-r16 */ -}; -static asn_CHOICE_specifics_t asn_SPC_measurementReferenceTime_r16_specs_2 = { - sizeof(struct NR_DL_TDOA_LocationInformation_r16__measurementReferenceTime_r16), - offsetof(struct NR_DL_TDOA_LocationInformation_r16__measurementReferenceTime_r16, _asn_ctx), - offsetof(struct NR_DL_TDOA_LocationInformation_r16__measurementReferenceTime_r16, present), - sizeof(((struct NR_DL_TDOA_LocationInformation_r16__measurementReferenceTime_r16 *)0)->present), - asn_MAP_measurementReferenceTime_r16_tag2el_2, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_measurementReferenceTime_r16_2 = { - "measurementReferenceTime-r16", - "measurementReferenceTime-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_measurementReferenceTime_r16_constr_2, CHOICE_constraint }, - asn_MBR_measurementReferenceTime_r16_2, - 2, /* Elements count */ - &asn_SPC_measurementReferenceTime_r16_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_DL_TDOA_LocationInformation_r16_1[] = { - { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_LocationInformation_r16, measurementReferenceTime_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_measurementReferenceTime_r16_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "measurementReferenceTime-r16" - }, -}; -static const int asn_MAP_NR_DL_TDOA_LocationInformation_r16_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_LocationInformation_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_LocationInformation_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* measurementReferenceTime-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_LocationInformation_r16_specs_1 = { - sizeof(struct NR_DL_TDOA_LocationInformation_r16), - offsetof(struct NR_DL_TDOA_LocationInformation_r16, _asn_ctx), - asn_MAP_NR_DL_TDOA_LocationInformation_r16_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_NR_DL_TDOA_LocationInformation_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_LocationInformation_r16 = { - "NR-DL-TDOA-LocationInformation-r16", - "NR-DL-TDOA-LocationInformation-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_TDOA_LocationInformation_r16_tags_1, - sizeof(asn_DEF_NR_DL_TDOA_LocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_LocationInformation_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_TDOA_LocationInformation_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_TDOA_LocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_LocationInformation_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_TDOA_LocationInformation_r16_1, - 1, /* Elements count */ - &asn_SPC_NR_DL_TDOA_LocationInformation_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-TDOA-LocationServerErrorCauses-r16.c b/asn.1/generated/NR-DL-TDOA-LocationServerErrorCauses-r16.c deleted file mode 100644 index 18745af9..00000000 --- a/asn.1/generated/NR-DL-TDOA-LocationServerErrorCauses-r16.c +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-TDOA-LocationServerErrorCauses-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_r16_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 34, "assistanceDataNotSupportedByServer" }, - { 2, 55, "assistanceDataSupportedButCurrentlyNotAvailableByServer" }, - { 3, 45, "notProvidedAssistanceDataNotSupportedByServer" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_r16_enum2value_2[] = { - 1, /* assistanceDataNotSupportedByServer(1) */ - 2, /* assistanceDataSupportedButCurrentlyNotAvailableByServer(2) */ - 3, /* notProvidedAssistanceDataNotSupportedByServer(3) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_r16_specs_2 = { - asn_MAP_cause_r16_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_r16_enum2value_2, /* N => "tag"; sorted by N */ - 4, /* Number of elements in the maps */ - 5, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_r16_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_r16_2 = { - "cause-r16", - "cause-r16", - &asn_OP_NativeEnumerated, - asn_DEF_cause_r16_tags_2, - sizeof(asn_DEF_cause_r16_tags_2) - /sizeof(asn_DEF_cause_r16_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_r16_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_r16_tags_2) - /sizeof(asn_DEF_cause_r16_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_r16_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_r16_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_DL_TDOA_LocationServerErrorCauses_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_LocationServerErrorCauses_r16, cause_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_r16_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_LocationServerErrorCauses_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_LocationServerErrorCauses_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_LocationServerErrorCauses_r16_specs_1 = { - sizeof(struct NR_DL_TDOA_LocationServerErrorCauses_r16), - offsetof(struct NR_DL_TDOA_LocationServerErrorCauses_r16, _asn_ctx), - asn_MAP_NR_DL_TDOA_LocationServerErrorCauses_r16_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_LocationServerErrorCauses_r16 = { - "NR-DL-TDOA-LocationServerErrorCauses-r16", - "NR-DL-TDOA-LocationServerErrorCauses-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_TDOA_LocationServerErrorCauses_r16_tags_1, - sizeof(asn_DEF_NR_DL_TDOA_LocationServerErrorCauses_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_LocationServerErrorCauses_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_TDOA_LocationServerErrorCauses_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_TDOA_LocationServerErrorCauses_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_LocationServerErrorCauses_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_TDOA_LocationServerErrorCauses_r16_1, - 1, /* Elements count */ - &asn_SPC_NR_DL_TDOA_LocationServerErrorCauses_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-TDOA-MeasElement-r16.c b/asn.1/generated/NR-DL-TDOA-MeasElement-r16.c deleted file mode 100644 index 73bf3bc0..00000000 --- a/asn.1/generated/NR-DL-TDOA-MeasElement-r16.c +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-TDOA-MeasElement-r16.h" - -static int -memb_nr_RSTD_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nr_PRS_RSRP_Result_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_nr_RSTD_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_PRS_RSRP_Result_r16_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (1..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_DL_TDOA_MeasElement_r16_1[] = { - { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_MeasElement_r16, trp_ID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TRP_ID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "trp-ID-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_MeasElement_r16, nr_DL_PRS_ResourceID_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_ResourceID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-ResourceID-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_MeasElement_r16, nr_DL_PRS_ResourceSetID_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_ResourceSetID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-ResourceSetID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16, nr_TimeStamp_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_TimeStamp_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-TimeStamp-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16, nr_RSTD_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_RSTD_r16_constr_6, memb_nr_RSTD_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-RSTD-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_MeasElement_r16, nr_AdditionalPathList_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_AdditionalPathList_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-AdditionalPathList-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16, nr_TimingMeasQuality_r16), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_TimingMeasQuality_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-TimingMeasQuality-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_MeasElement_r16, nr_PRS_RSRP_Result_r16), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_PRS_RSRP_Result_r16_constr_9, memb_nr_PRS_RSRP_Result_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-PRS-RSRP-Result-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16, nr_DL_TDOA_AdditionalMeasurements_r16), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_TDOA_AdditionalMeasurements_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-TDOA-AdditionalMeasurements-r16" - }, -}; -static const int asn_MAP_NR_DL_TDOA_MeasElement_r16_oms_1[] = { 0, 1, 2, 5, 7 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_MeasElement_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_MeasElement_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* trp-ID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-ResourceID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-PRS-ResourceSetID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-TimeStamp-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-RSTD-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nr-AdditionalPathList-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* nr-TimingMeasQuality-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* nr-PRS-RSRP-Result-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* nr-DL-TDOA-AdditionalMeasurements-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_MeasElement_r16_specs_1 = { - sizeof(struct NR_DL_TDOA_MeasElement_r16), - offsetof(struct NR_DL_TDOA_MeasElement_r16, _asn_ctx), - asn_MAP_NR_DL_TDOA_MeasElement_r16_tag2el_1, - 9, /* Count of tags in the map */ - asn_MAP_NR_DL_TDOA_MeasElement_r16_oms_1, /* Optional members */ - 5, 0, /* Root/Additions */ - 9, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_MeasElement_r16 = { - "NR-DL-TDOA-MeasElement-r16", - "NR-DL-TDOA-MeasElement-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_TDOA_MeasElement_r16_tags_1, - sizeof(asn_DEF_NR_DL_TDOA_MeasElement_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_MeasElement_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_TDOA_MeasElement_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_TDOA_MeasElement_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_MeasElement_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_TDOA_MeasElement_r16_1, - 9, /* Elements count */ - &asn_SPC_NR_DL_TDOA_MeasElement_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-TDOA-MeasElement-r16.h b/asn.1/generated/NR-DL-TDOA-MeasElement-r16.h deleted file mode 100644 index f981eb9c..00000000 --- a/asn.1/generated/NR-DL-TDOA-MeasElement-r16.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_TDOA_MeasElement_r16_H_ -#define _NR_DL_TDOA_MeasElement_r16_H_ - - -#include - -/* Including external dependencies */ -#include "NR-DL-PRS-ResourceID-r16.h" -#include "NR-DL-PRS-ResourceSetID-r16.h" -#include "NR-TimeStamp-r16.h" -#include -#include "NR-TimingMeasQuality-r16.h" -#include "NR-DL-TDOA-AdditionalMeasurements-r16.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct TRP_ID_r16; -struct NR_AdditionalPathList_r16; - -/* NR-DL-TDOA-MeasElement-r16 */ -typedef struct NR_DL_TDOA_MeasElement_r16 { - struct TRP_ID_r16 *trp_ID_r16 /* OPTIONAL */; - NR_DL_PRS_ResourceID_r16_t *nr_DL_PRS_ResourceID_r16 /* OPTIONAL */; - NR_DL_PRS_ResourceSetID_r16_t *nr_DL_PRS_ResourceSetID_r16 /* OPTIONAL */; - NR_TimeStamp_r16_t nr_TimeStamp_r16; - long nr_RSTD_r16; - struct NR_AdditionalPathList_r16 *nr_AdditionalPathList_r16 /* OPTIONAL */; - NR_TimingMeasQuality_r16_t nr_TimingMeasQuality_r16; - long *nr_PRS_RSRP_Result_r16 /* OPTIONAL */; - NR_DL_TDOA_AdditionalMeasurements_r16_t nr_DL_TDOA_AdditionalMeasurements_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_TDOA_MeasElement_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_MeasElement_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_MeasElement_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_MeasElement_r16_1[9]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "TRP-ID-r16.h" -#include "NR-AdditionalPathList-r16.h" - -#endif /* _NR_DL_TDOA_MeasElement_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-TDOA-MeasList-r16.c b/asn.1/generated/NR-DL-TDOA-MeasList-r16.c deleted file mode 100644 index 48a7b445..00000000 --- a/asn.1/generated/NR-DL-TDOA-MeasList-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-TDOA-MeasList-r16.h" - -asn_per_constraints_t asn_PER_type_NR_DL_TDOA_MeasList_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 8, 8, 1, 256 } /* (SIZE(1..256)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_DL_TDOA_MeasList_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NR_DL_TDOA_MeasElement_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_MeasList_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_NR_DL_TDOA_MeasList_r16_specs_1 = { - sizeof(struct NR_DL_TDOA_MeasList_r16), - offsetof(struct NR_DL_TDOA_MeasList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_MeasList_r16 = { - "NR-DL-TDOA-MeasList-r16", - "NR-DL-TDOA-MeasList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_NR_DL_TDOA_MeasList_r16_tags_1, - sizeof(asn_DEF_NR_DL_TDOA_MeasList_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_MeasList_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_TDOA_MeasList_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_TDOA_MeasList_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_MeasList_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_NR_DL_TDOA_MeasList_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_NR_DL_TDOA_MeasList_r16_1, - 1, /* Single element */ - &asn_SPC_NR_DL_TDOA_MeasList_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-TDOA-ProvideAssistanceData-r16.c b/asn.1/generated/NR-DL-TDOA-ProvideAssistanceData-r16.c deleted file mode 100644 index e7f558d4..00000000 --- a/asn.1/generated/NR-DL-TDOA-ProvideAssistanceData-r16.c +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-TDOA-ProvideAssistanceData-r16.h" - -static int -memb_nr_SelectedDL_PRS_IndexList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 4)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_nr_SelectedDL_PRS_IndexList_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_SelectedDL_PRS_IndexList_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_nr_SelectedDL_PRS_IndexList_r16_3[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NR_SelectedDL_PRS_PerFreq_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_nr_SelectedDL_PRS_IndexList_r16_specs_3 = { - sizeof(struct NR_DL_TDOA_ProvideAssistanceData_r16__nr_SelectedDL_PRS_IndexList_r16), - offsetof(struct NR_DL_TDOA_ProvideAssistanceData_r16__nr_SelectedDL_PRS_IndexList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nr_SelectedDL_PRS_IndexList_r16_3 = { - "nr-SelectedDL-PRS-IndexList-r16", - "nr-SelectedDL-PRS-IndexList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3, - sizeof(asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3) - /sizeof(asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3[0]) - 1, /* 1 */ - asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3, /* Same as above */ - sizeof(asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3) - /sizeof(asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_nr_SelectedDL_PRS_IndexList_r16_constr_3, SEQUENCE_OF_constraint }, - asn_MBR_nr_SelectedDL_PRS_IndexList_r16_3, - 1, /* Single element */ - &asn_SPC_nr_SelectedDL_PRS_IndexList_r16_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_DL_TDOA_ProvideAssistanceData_r16_1[] = { - { ATF_POINTER, 4, offsetof(struct NR_DL_TDOA_ProvideAssistanceData_r16, nr_DL_PRS_AssistanceData_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_AssistanceData_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-AssistanceData-r16" - }, - { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_ProvideAssistanceData_r16, nr_SelectedDL_PRS_IndexList_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_nr_SelectedDL_PRS_IndexList_r16_3, - 0, - { 0, &asn_PER_memb_nr_SelectedDL_PRS_IndexList_r16_constr_3, memb_nr_SelectedDL_PRS_IndexList_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-SelectedDL-PRS-IndexList-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_ProvideAssistanceData_r16, nr_PositionCalculationAssistanceData_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_PositionCalculationAssistanceData_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-PositionCalculationAssistanceData-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_ProvideAssistanceData_r16, nr_DL_TDOA_Error_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_NR_DL_TDOA_Error_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-TDOA-Error-r16" - }, -}; -static const int asn_MAP_NR_DL_TDOA_ProvideAssistanceData_r16_oms_1[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_ProvideAssistanceData_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-AssistanceData-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-SelectedDL-PRS-IndexList-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-PositionCalculationAssistanceData-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* nr-DL-TDOA-Error-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_ProvideAssistanceData_r16_specs_1 = { - sizeof(struct NR_DL_TDOA_ProvideAssistanceData_r16), - offsetof(struct NR_DL_TDOA_ProvideAssistanceData_r16, _asn_ctx), - asn_MAP_NR_DL_TDOA_ProvideAssistanceData_r16_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_NR_DL_TDOA_ProvideAssistanceData_r16_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16 = { - "NR-DL-TDOA-ProvideAssistanceData-r16", - "NR-DL-TDOA-ProvideAssistanceData-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16_tags_1, - sizeof(asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_TDOA_ProvideAssistanceData_r16_1, - 4, /* Elements count */ - &asn_SPC_NR_DL_TDOA_ProvideAssistanceData_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-TDOA-ProvideAssistanceData-r16.h b/asn.1/generated/NR-DL-TDOA-ProvideAssistanceData-r16.h deleted file mode 100644 index 0b6ccfb0..00000000 --- a/asn.1/generated/NR-DL-TDOA-ProvideAssistanceData-r16.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_TDOA_ProvideAssistanceData_r16_H_ -#define _NR_DL_TDOA_ProvideAssistanceData_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct NR_DL_PRS_AssistanceData_r16; -struct NR_PositionCalculationAssistanceData_r16; -struct NR_DL_TDOA_Error_r16; -struct NR_SelectedDL_PRS_PerFreq_r16; - -/* NR-DL-TDOA-ProvideAssistanceData-r16 */ -typedef struct NR_DL_TDOA_ProvideAssistanceData_r16 { - struct NR_DL_PRS_AssistanceData_r16 *nr_DL_PRS_AssistanceData_r16 /* OPTIONAL */; - struct NR_DL_TDOA_ProvideAssistanceData_r16__nr_SelectedDL_PRS_IndexList_r16 { - A_SEQUENCE_OF(struct NR_SelectedDL_PRS_PerFreq_r16) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *nr_SelectedDL_PRS_IndexList_r16; - struct NR_PositionCalculationAssistanceData_r16 *nr_PositionCalculationAssistanceData_r16 /* OPTIONAL */; - struct NR_DL_TDOA_Error_r16 *nr_DL_TDOA_Error_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_TDOA_ProvideAssistanceData_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_ProvideAssistanceData_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_ProvideAssistanceData_r16_1[4]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-DL-PRS-AssistanceData-r16.h" -#include "NR-PositionCalculationAssistanceData-r16.h" -#include "NR-DL-TDOA-Error-r16.h" -#include "NR-SelectedDL-PRS-PerFreq-r16.h" - -#endif /* _NR_DL_TDOA_ProvideAssistanceData_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-TDOA-ProvideCapabilities-r16.c b/asn.1/generated/NR-DL-TDOA-ProvideCapabilities-r16.c deleted file mode 100644 index 876fb429..00000000 --- a/asn.1/generated/NR-DL-TDOA-ProvideCapabilities-r16.c +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-TDOA-ProvideCapabilities-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_nr_DL_TDOA_MeasSupported_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_additionalPathsReport_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_periodicalReporting_r16_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_DL_TDOA_MeasSupported_r16_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_additionalPathsReport_r16_value2enum_6[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_additionalPathsReport_r16_enum2value_6[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_additionalPathsReport_r16_specs_6 = { - asn_MAP_additionalPathsReport_r16_value2enum_6, /* "tag" => N; sorted by tag */ - asn_MAP_additionalPathsReport_r16_enum2value_6, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_additionalPathsReport_r16_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_additionalPathsReport_r16_6 = { - "additionalPathsReport-r16", - "additionalPathsReport-r16", - &asn_OP_NativeEnumerated, - asn_DEF_additionalPathsReport_r16_tags_6, - sizeof(asn_DEF_additionalPathsReport_r16_tags_6) - /sizeof(asn_DEF_additionalPathsReport_r16_tags_6[0]) - 1, /* 1 */ - asn_DEF_additionalPathsReport_r16_tags_6, /* Same as above */ - sizeof(asn_DEF_additionalPathsReport_r16_tags_6) - /sizeof(asn_DEF_additionalPathsReport_r16_tags_6[0]), /* 2 */ - { 0, &asn_PER_type_additionalPathsReport_r16_constr_6, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_additionalPathsReport_r16_specs_6 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_periodicalReporting_r16_value2enum_8[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_periodicalReporting_r16_enum2value_8[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_periodicalReporting_r16_specs_8 = { - asn_MAP_periodicalReporting_r16_value2enum_8, /* "tag" => N; sorted by tag */ - asn_MAP_periodicalReporting_r16_enum2value_8, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_periodicalReporting_r16_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_periodicalReporting_r16_8 = { - "periodicalReporting-r16", - "periodicalReporting-r16", - &asn_OP_NativeEnumerated, - asn_DEF_periodicalReporting_r16_tags_8, - sizeof(asn_DEF_periodicalReporting_r16_tags_8) - /sizeof(asn_DEF_periodicalReporting_r16_tags_8[0]) - 1, /* 1 */ - asn_DEF_periodicalReporting_r16_tags_8, /* Same as above */ - sizeof(asn_DEF_periodicalReporting_r16_tags_8) - /sizeof(asn_DEF_periodicalReporting_r16_tags_8[0]), /* 2 */ - { 0, &asn_PER_type_periodicalReporting_r16_constr_8, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_periodicalReporting_r16_specs_8 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_DL_TDOA_ProvideCapabilities_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16, nr_DL_TDOA_Mode_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PositioningModes, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-TDOA-Mode-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16, nr_DL_TDOA_MeasCapability_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_MeasCapability_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-TDOA-MeasCapability-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16, nr_DL_TDOA_MeasSupported_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_nr_DL_TDOA_MeasSupported_r16_constr_4, memb_nr_DL_TDOA_MeasSupported_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-DL-TDOA-MeasSupported-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16, additionalPathsReport_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_additionalPathsReport_r16_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "additionalPathsReport-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16, periodicalReporting_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_periodicalReporting_r16_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "periodicalReporting-r16" - }, -}; -static const int asn_MAP_NR_DL_TDOA_ProvideCapabilities_r16_oms_1[] = { 1, 3, 4 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_ProvideCapabilities_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-TDOA-Mode-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-TDOA-MeasCapability-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-TDOA-MeasSupported-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* additionalPathsReport-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* periodicalReporting-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_ProvideCapabilities_r16_specs_1 = { - sizeof(struct NR_DL_TDOA_ProvideCapabilities_r16), - offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16, _asn_ctx), - asn_MAP_NR_DL_TDOA_ProvideCapabilities_r16_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_NR_DL_TDOA_ProvideCapabilities_r16_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16 = { - "NR-DL-TDOA-ProvideCapabilities-r16", - "NR-DL-TDOA-ProvideCapabilities-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16_tags_1, - sizeof(asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_TDOA_ProvideCapabilities_r16_1, - 5, /* Elements count */ - &asn_SPC_NR_DL_TDOA_ProvideCapabilities_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-TDOA-ProvideCapabilities-r16.h b/asn.1/generated/NR-DL-TDOA-ProvideCapabilities-r16.h deleted file mode 100644 index 04c53a18..00000000 --- a/asn.1/generated/NR-DL-TDOA-ProvideCapabilities-r16.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_TDOA_ProvideCapabilities_r16_H_ -#define _NR_DL_TDOA_ProvideCapabilities_r16_H_ - - -#include - -/* Including external dependencies */ -#include "PositioningModes.h" -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum NR_DL_TDOA_ProvideCapabilities_r16__nr_DL_TDOA_MeasSupported_r16 { - NR_DL_TDOA_ProvideCapabilities_r16__nr_DL_TDOA_MeasSupported_r16_prsrsrpSup = 0 -} e_NR_DL_TDOA_ProvideCapabilities_r16__nr_DL_TDOA_MeasSupported_r16; -typedef enum NR_DL_TDOA_ProvideCapabilities_r16__additionalPathsReport_r16 { - NR_DL_TDOA_ProvideCapabilities_r16__additionalPathsReport_r16_supported = 0 -} e_NR_DL_TDOA_ProvideCapabilities_r16__additionalPathsReport_r16; -typedef enum NR_DL_TDOA_ProvideCapabilities_r16__periodicalReporting_r16 { - NR_DL_TDOA_ProvideCapabilities_r16__periodicalReporting_r16_supported = 0 -} e_NR_DL_TDOA_ProvideCapabilities_r16__periodicalReporting_r16; - -/* Forward declarations */ -struct NR_DL_PRS_MeasCapability_r16; - -/* NR-DL-TDOA-ProvideCapabilities-r16 */ -typedef struct NR_DL_TDOA_ProvideCapabilities_r16 { - PositioningModes_t nr_DL_TDOA_Mode_r16; - struct NR_DL_PRS_MeasCapability_r16 *nr_DL_TDOA_MeasCapability_r16 /* OPTIONAL */; - BIT_STRING_t nr_DL_TDOA_MeasSupported_r16; - long *additionalPathsReport_r16 /* OPTIONAL */; - long *periodicalReporting_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_TDOA_ProvideCapabilities_r16_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_additionalPathsReport_r16_6; // (Use -fall-defs-global to expose) */ -/* extern asn_TYPE_descriptor_t asn_DEF_periodicalReporting_r16_8; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_ProvideCapabilities_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_ProvideCapabilities_r16_1[5]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-DL-PRS-MeasCapability-r16.h" - -#endif /* _NR_DL_TDOA_ProvideCapabilities_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-TDOA-ProvideLocationInformation-r16.c b/asn.1/generated/NR-DL-TDOA-ProvideLocationInformation-r16.c deleted file mode 100644 index c2a809fe..00000000 --- a/asn.1/generated/NR-DL-TDOA-ProvideLocationInformation-r16.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-TDOA-ProvideLocationInformation-r16.h" - -asn_TYPE_member_t asn_MBR_NR_DL_TDOA_ProvideLocationInformation_r16_1[] = { - { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_ProvideLocationInformation_r16, nr_DL_TDOA_SignalMeasurementInformation_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-TDOA-SignalMeasurementInformation-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_ProvideLocationInformation_r16, nr_dl_tdoa_LocationInformation_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_TDOA_LocationInformation_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-dl-tdoa-LocationInformation-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_ProvideLocationInformation_r16, nr_DL_TDOA_Error_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_NR_DL_TDOA_Error_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-TDOA-Error-r16" - }, -}; -static const int asn_MAP_NR_DL_TDOA_ProvideLocationInformation_r16_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_ProvideLocationInformation_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-TDOA-SignalMeasurementInformation-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-dl-tdoa-LocationInformation-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-DL-TDOA-Error-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_ProvideLocationInformation_r16_specs_1 = { - sizeof(struct NR_DL_TDOA_ProvideLocationInformation_r16), - offsetof(struct NR_DL_TDOA_ProvideLocationInformation_r16, _asn_ctx), - asn_MAP_NR_DL_TDOA_ProvideLocationInformation_r16_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_NR_DL_TDOA_ProvideLocationInformation_r16_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16 = { - "NR-DL-TDOA-ProvideLocationInformation-r16", - "NR-DL-TDOA-ProvideLocationInformation-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16_tags_1, - sizeof(asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_TDOA_ProvideLocationInformation_r16_1, - 3, /* Elements count */ - &asn_SPC_NR_DL_TDOA_ProvideLocationInformation_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-TDOA-ProvideLocationInformation-r16.h b/asn.1/generated/NR-DL-TDOA-ProvideLocationInformation-r16.h deleted file mode 100644 index 68936de9..00000000 --- a/asn.1/generated/NR-DL-TDOA-ProvideLocationInformation-r16.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_TDOA_ProvideLocationInformation_r16_H_ -#define _NR_DL_TDOA_ProvideLocationInformation_r16_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct NR_DL_TDOA_SignalMeasurementInformation_r16; -struct NR_DL_TDOA_LocationInformation_r16; -struct NR_DL_TDOA_Error_r16; - -/* NR-DL-TDOA-ProvideLocationInformation-r16 */ -typedef struct NR_DL_TDOA_ProvideLocationInformation_r16 { - struct NR_DL_TDOA_SignalMeasurementInformation_r16 *nr_DL_TDOA_SignalMeasurementInformation_r16 /* OPTIONAL */; - struct NR_DL_TDOA_LocationInformation_r16 *nr_dl_tdoa_LocationInformation_r16 /* OPTIONAL */; - struct NR_DL_TDOA_Error_r16 *nr_DL_TDOA_Error_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_TDOA_ProvideLocationInformation_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_ProvideLocationInformation_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_ProvideLocationInformation_r16_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-DL-TDOA-SignalMeasurementInformation-r16.h" -#include "NR-DL-TDOA-LocationInformation-r16.h" -#include "NR-DL-TDOA-Error-r16.h" - -#endif /* _NR_DL_TDOA_ProvideLocationInformation_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-TDOA-ReportConfig-r16.c b/asn.1/generated/NR-DL-TDOA-ReportConfig-r16.c deleted file mode 100644 index aca4f864..00000000 --- a/asn.1/generated/NR-DL-TDOA-ReportConfig-r16.c +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-TDOA-ReportConfig-r16.h" - -static int -memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_maxDL_PRS_RSTD_MeasurementsPerTRPPair_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 4)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_timingReportingGranularityFactor_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_maxDL_PRS_RSTD_MeasurementsPerTRPPair_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 1, 4 } /* (1..4) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_timingReportingGranularityFactor_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (1..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_DL_TDOA_ReportConfig_r16_1[] = { - { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_ReportConfig_r16, maxDL_PRS_RSRP_MeasurementsPerTRP_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r16_constr_2, memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r16_constraint_1 }, - 0, 0, /* No default value */ - "maxDL-PRS-RSRP-MeasurementsPerTRP-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_ReportConfig_r16, maxDL_PRS_RSTD_MeasurementsPerTRPPair_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_maxDL_PRS_RSTD_MeasurementsPerTRPPair_r16_constr_3, memb_maxDL_PRS_RSTD_MeasurementsPerTRPPair_r16_constraint_1 }, - 0, 0, /* No default value */ - "maxDL-PRS-RSTD-MeasurementsPerTRPPair-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_ReportConfig_r16, timingReportingGranularityFactor_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_timingReportingGranularityFactor_r16_constr_4, memb_timingReportingGranularityFactor_r16_constraint_1 }, - 0, 0, /* No default value */ - "timingReportingGranularityFactor-r16" - }, -}; -static const int asn_MAP_NR_DL_TDOA_ReportConfig_r16_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_ReportConfig_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_ReportConfig_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxDL-PRS-RSRP-MeasurementsPerTRP-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxDL-PRS-RSTD-MeasurementsPerTRPPair-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* timingReportingGranularityFactor-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_ReportConfig_r16_specs_1 = { - sizeof(struct NR_DL_TDOA_ReportConfig_r16), - offsetof(struct NR_DL_TDOA_ReportConfig_r16, _asn_ctx), - asn_MAP_NR_DL_TDOA_ReportConfig_r16_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_NR_DL_TDOA_ReportConfig_r16_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_ReportConfig_r16 = { - "NR-DL-TDOA-ReportConfig-r16", - "NR-DL-TDOA-ReportConfig-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_TDOA_ReportConfig_r16_tags_1, - sizeof(asn_DEF_NR_DL_TDOA_ReportConfig_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_ReportConfig_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_TDOA_ReportConfig_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_TDOA_ReportConfig_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_ReportConfig_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_TDOA_ReportConfig_r16_1, - 3, /* Elements count */ - &asn_SPC_NR_DL_TDOA_ReportConfig_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-TDOA-ReportConfig-r16.h b/asn.1/generated/NR-DL-TDOA-ReportConfig-r16.h deleted file mode 100644 index 823655b3..00000000 --- a/asn.1/generated/NR-DL-TDOA-ReportConfig-r16.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_TDOA_ReportConfig_r16_H_ -#define _NR_DL_TDOA_ReportConfig_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* NR-DL-TDOA-ReportConfig-r16 */ -typedef struct NR_DL_TDOA_ReportConfig_r16 { - long *maxDL_PRS_RSRP_MeasurementsPerTRP_r16 /* OPTIONAL */; - long *maxDL_PRS_RSTD_MeasurementsPerTRPPair_r16 /* OPTIONAL */; - long *timingReportingGranularityFactor_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_TDOA_ReportConfig_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_ReportConfig_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_ReportConfig_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_ReportConfig_r16_1[3]; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_DL_TDOA_ReportConfig_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-TDOA-RequestAssistanceData-r16.c b/asn.1/generated/NR-DL-TDOA-RequestAssistanceData-r16.c deleted file mode 100644 index 206b1adc..00000000 --- a/asn.1/generated/NR-DL-TDOA-RequestAssistanceData-r16.c +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-TDOA-RequestAssistanceData-r16.h" - -static int -memb_nr_AdType_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_nr_AdType_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_DL_TDOA_RequestAssistanceData_r16_1[] = { - { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_RequestAssistanceData_r16, nr_PhysCellId_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_PhysCellId_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-PhysCellId-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_RequestAssistanceData_r16, nr_AdType_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_nr_AdType_r16_constr_3, memb_nr_AdType_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-AdType-r16" - }, -}; -static const int asn_MAP_NR_DL_TDOA_RequestAssistanceData_r16_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_RequestAssistanceData_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-PhysCellId-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-AdType-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_RequestAssistanceData_r16_specs_1 = { - sizeof(struct NR_DL_TDOA_RequestAssistanceData_r16), - offsetof(struct NR_DL_TDOA_RequestAssistanceData_r16, _asn_ctx), - asn_MAP_NR_DL_TDOA_RequestAssistanceData_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_NR_DL_TDOA_RequestAssistanceData_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16 = { - "NR-DL-TDOA-RequestAssistanceData-r16", - "NR-DL-TDOA-RequestAssistanceData-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16_tags_1, - sizeof(asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_TDOA_RequestAssistanceData_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_DL_TDOA_RequestAssistanceData_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-TDOA-RequestAssistanceData-r16.h b/asn.1/generated/NR-DL-TDOA-RequestAssistanceData-r16.h deleted file mode 100644 index 9ff61c81..00000000 --- a/asn.1/generated/NR-DL-TDOA-RequestAssistanceData-r16.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_TDOA_RequestAssistanceData_r16_H_ -#define _NR_DL_TDOA_RequestAssistanceData_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum NR_DL_TDOA_RequestAssistanceData_r16__nr_AdType_r16 { - NR_DL_TDOA_RequestAssistanceData_r16__nr_AdType_r16_dl_prs = 0, - NR_DL_TDOA_RequestAssistanceData_r16__nr_AdType_r16_posCalc = 1 -} e_NR_DL_TDOA_RequestAssistanceData_r16__nr_AdType_r16; - -/* Forward declarations */ -struct NR_PhysCellId_r16; - -/* NR-DL-TDOA-RequestAssistanceData-r16 */ -typedef struct NR_DL_TDOA_RequestAssistanceData_r16 { - struct NR_PhysCellId_r16 *nr_PhysCellId_r16 /* OPTIONAL */; - BIT_STRING_t nr_AdType_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_TDOA_RequestAssistanceData_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_RequestAssistanceData_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_RequestAssistanceData_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-PhysCellId-r16.h" - -#endif /* _NR_DL_TDOA_RequestAssistanceData_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-TDOA-RequestCapabilities-r16.c b/asn.1/generated/NR-DL-TDOA-RequestCapabilities-r16.c deleted file mode 100644 index 9808c33d..00000000 --- a/asn.1/generated/NR-DL-TDOA-RequestCapabilities-r16.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-TDOA-RequestCapabilities-r16.h" - -static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_RequestCapabilities_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_RequestCapabilities_r16_specs_1 = { - sizeof(struct NR_DL_TDOA_RequestCapabilities_r16), - offsetof(struct NR_DL_TDOA_RequestCapabilities_r16, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_RequestCapabilities_r16 = { - "NR-DL-TDOA-RequestCapabilities-r16", - "NR-DL-TDOA-RequestCapabilities-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_TDOA_RequestCapabilities_r16_tags_1, - sizeof(asn_DEF_NR_DL_TDOA_RequestCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_RequestCapabilities_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_TDOA_RequestCapabilities_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_TDOA_RequestCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_RequestCapabilities_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_NR_DL_TDOA_RequestCapabilities_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-TDOA-RequestLocationInformation-r16.c b/asn.1/generated/NR-DL-TDOA-RequestLocationInformation-r16.c deleted file mode 100644 index b5212b19..00000000 --- a/asn.1/generated/NR-DL-TDOA-RequestLocationInformation-r16.c +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-TDOA-RequestLocationInformation-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_nr_RequestedMeasurements_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_nr_DL_PRS_RstdMeasurementInfoRequest_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_additionalPaths_r16_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_RequestedMeasurements_r16_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_nr_DL_PRS_RstdMeasurementInfoRequest_r16_value2enum_2[] = { - { 0, 4, "true" } -}; -static const unsigned int asn_MAP_nr_DL_PRS_RstdMeasurementInfoRequest_r16_enum2value_2[] = { - 0 /* true(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_nr_DL_PRS_RstdMeasurementInfoRequest_r16_specs_2 = { - asn_MAP_nr_DL_PRS_RstdMeasurementInfoRequest_r16_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_nr_DL_PRS_RstdMeasurementInfoRequest_r16_enum2value_2, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_2 = { - "nr-DL-PRS-RstdMeasurementInfoRequest-r16", - "nr-DL-PRS-RstdMeasurementInfoRequest-r16", - &asn_OP_NativeEnumerated, - asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_tags_2, - sizeof(asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_tags_2) - /sizeof(asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_tags_2[0]) - 1, /* 1 */ - asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_tags_2, /* Same as above */ - sizeof(asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_tags_2) - /sizeof(asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_nr_DL_PRS_RstdMeasurementInfoRequest_r16_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_nr_DL_PRS_RstdMeasurementInfoRequest_r16_specs_2 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_additionalPaths_r16_value2enum_8[] = { - { 0, 9, "requested" } -}; -static const unsigned int asn_MAP_additionalPaths_r16_enum2value_8[] = { - 0 /* requested(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_additionalPaths_r16_specs_8 = { - asn_MAP_additionalPaths_r16_value2enum_8, /* "tag" => N; sorted by tag */ - asn_MAP_additionalPaths_r16_enum2value_8, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_additionalPaths_r16_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_additionalPaths_r16_8 = { - "additionalPaths-r16", - "additionalPaths-r16", - &asn_OP_NativeEnumerated, - asn_DEF_additionalPaths_r16_tags_8, - sizeof(asn_DEF_additionalPaths_r16_tags_8) - /sizeof(asn_DEF_additionalPaths_r16_tags_8[0]) - 1, /* 1 */ - asn_DEF_additionalPaths_r16_tags_8, /* Same as above */ - sizeof(asn_DEF_additionalPaths_r16_tags_8) - /sizeof(asn_DEF_additionalPaths_r16_tags_8[0]), /* 2 */ - { 0, &asn_PER_type_additionalPaths_r16_constr_8, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_additionalPaths_r16_specs_8 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_DL_TDOA_RequestLocationInformation_r16_1[] = { - { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16, nr_DL_PRS_RstdMeasurementInfoRequest_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-RstdMeasurementInfoRequest-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16, nr_RequestedMeasurements_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_nr_RequestedMeasurements_r16_constr_4, memb_nr_RequestedMeasurements_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-RequestedMeasurements-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16, nr_AssistanceAvailability_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-AssistanceAvailability-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16, nr_DL_TDOA_ReportConfig_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_TDOA_ReportConfig_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-TDOA-ReportConfig-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16, additionalPaths_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_additionalPaths_r16_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "additionalPaths-r16" - }, -}; -static const int asn_MAP_NR_DL_TDOA_RequestLocationInformation_r16_oms_1[] = { 0, 3, 4 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_RequestLocationInformation_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-RstdMeasurementInfoRequest-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-RequestedMeasurements-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-AssistanceAvailability-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-DL-TDOA-ReportConfig-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* additionalPaths-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_RequestLocationInformation_r16_specs_1 = { - sizeof(struct NR_DL_TDOA_RequestLocationInformation_r16), - offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16, _asn_ctx), - asn_MAP_NR_DL_TDOA_RequestLocationInformation_r16_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_NR_DL_TDOA_RequestLocationInformation_r16_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16 = { - "NR-DL-TDOA-RequestLocationInformation-r16", - "NR-DL-TDOA-RequestLocationInformation-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16_tags_1, - sizeof(asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_TDOA_RequestLocationInformation_r16_1, - 5, /* Elements count */ - &asn_SPC_NR_DL_TDOA_RequestLocationInformation_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-TDOA-RequestLocationInformation-r16.h b/asn.1/generated/NR-DL-TDOA-RequestLocationInformation-r16.h deleted file mode 100644 index 941dec5b..00000000 --- a/asn.1/generated/NR-DL-TDOA-RequestLocationInformation-r16.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_TDOA_RequestLocationInformation_r16_H_ -#define _NR_DL_TDOA_RequestLocationInformation_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum NR_DL_TDOA_RequestLocationInformation_r16__nr_DL_PRS_RstdMeasurementInfoRequest_r16 { - NR_DL_TDOA_RequestLocationInformation_r16__nr_DL_PRS_RstdMeasurementInfoRequest_r16_true = 0 -} e_NR_DL_TDOA_RequestLocationInformation_r16__nr_DL_PRS_RstdMeasurementInfoRequest_r16; -typedef enum NR_DL_TDOA_RequestLocationInformation_r16__nr_RequestedMeasurements_r16 { - NR_DL_TDOA_RequestLocationInformation_r16__nr_RequestedMeasurements_r16_prsrsrpReq = 0 -} e_NR_DL_TDOA_RequestLocationInformation_r16__nr_RequestedMeasurements_r16; -typedef enum NR_DL_TDOA_RequestLocationInformation_r16__additionalPaths_r16 { - NR_DL_TDOA_RequestLocationInformation_r16__additionalPaths_r16_requested = 0 -} e_NR_DL_TDOA_RequestLocationInformation_r16__additionalPaths_r16; - -/* Forward declarations */ -struct NR_DL_TDOA_ReportConfig_r16; - -/* NR-DL-TDOA-RequestLocationInformation-r16 */ -typedef struct NR_DL_TDOA_RequestLocationInformation_r16 { - long *nr_DL_PRS_RstdMeasurementInfoRequest_r16 /* OPTIONAL */; - BIT_STRING_t nr_RequestedMeasurements_r16; - BOOLEAN_t nr_AssistanceAvailability_r16; - struct NR_DL_TDOA_ReportConfig_r16 *nr_DL_TDOA_ReportConfig_r16 /* OPTIONAL */; - long *additionalPaths_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_TDOA_RequestLocationInformation_r16_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_2; // (Use -fall-defs-global to expose) */ -/* extern asn_TYPE_descriptor_t asn_DEF_additionalPaths_r16_8; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_RequestLocationInformation_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_RequestLocationInformation_r16_1[5]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-DL-TDOA-ReportConfig-r16.h" - -#endif /* _NR_DL_TDOA_RequestLocationInformation_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-TDOA-SignalMeasurementInformation-r16.c b/asn.1/generated/NR-DL-TDOA-SignalMeasurementInformation-r16.c deleted file mode 100644 index 7425cc0b..00000000 --- a/asn.1/generated/NR-DL-TDOA-SignalMeasurementInformation-r16.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-TDOA-SignalMeasurementInformation-r16.h" - -asn_TYPE_member_t asn_MBR_NR_DL_TDOA_SignalMeasurementInformation_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_SignalMeasurementInformation_r16, dl_PRS_ReferenceInfo_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DL_PRS_IdInfo_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dl-PRS-ReferenceInfo-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_SignalMeasurementInformation_r16, nr_DL_TDOA_MeasList_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_TDOA_MeasList_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-TDOA-MeasList-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_SignalMeasurementInformation_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ReferenceInfo-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-DL-TDOA-MeasList-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_SignalMeasurementInformation_r16_specs_1 = { - sizeof(struct NR_DL_TDOA_SignalMeasurementInformation_r16), - offsetof(struct NR_DL_TDOA_SignalMeasurementInformation_r16, _asn_ctx), - asn_MAP_NR_DL_TDOA_SignalMeasurementInformation_r16_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16 = { - "NR-DL-TDOA-SignalMeasurementInformation-r16", - "NR-DL-TDOA-SignalMeasurementInformation-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16_tags_1, - sizeof(asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_TDOA_SignalMeasurementInformation_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_DL_TDOA_SignalMeasurementInformation_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-TDOA-SignalMeasurementInformation-r16.h b/asn.1/generated/NR-DL-TDOA-SignalMeasurementInformation-r16.h deleted file mode 100644 index cb658866..00000000 --- a/asn.1/generated/NR-DL-TDOA-SignalMeasurementInformation-r16.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_TDOA_SignalMeasurementInformation_r16_H_ -#define _NR_DL_TDOA_SignalMeasurementInformation_r16_H_ - - -#include - -/* Including external dependencies */ -#include "DL-PRS-IdInfo-r16.h" -#include "NR-DL-TDOA-MeasList-r16.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* NR-DL-TDOA-SignalMeasurementInformation-r16 */ -typedef struct NR_DL_TDOA_SignalMeasurementInformation_r16 { - DL_PRS_IdInfo_r16_t dl_PRS_ReferenceInfo_r16; - NR_DL_TDOA_MeasList_r16_t nr_DL_TDOA_MeasList_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_TDOA_SignalMeasurementInformation_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_SignalMeasurementInformation_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_SignalMeasurementInformation_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_DL_TDOA_SignalMeasurementInformation_r16_H_ */ -#include diff --git a/asn.1/generated/NR-DL-TDOA-TargetDeviceErrorCauses-r16.c b/asn.1/generated/NR-DL-TDOA-TargetDeviceErrorCauses-r16.c deleted file mode 100644 index 55d9658b..00000000 --- a/asn.1/generated/NR-DL-TDOA-TargetDeviceErrorCauses-r16.c +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-DL-TDOA-TargetDeviceErrorCauses-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_r16_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 23, "assistance-data-missing" }, - { 2, 21, "unableToMeasureAnyTRP" }, - { 3, 44, "attemptedButUnableToMeasureSomeNeighbourTRPs" }, - { 4, 50, "thereWereNotEnoughSignalsReceivedForUeBasedDL-TDOA" }, - { 5, 40, "locationCalculationAssistanceDataMissing" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_r16_enum2value_2[] = { - 1, /* assistance-data-missing(1) */ - 3, /* attemptedButUnableToMeasureSomeNeighbourTRPs(3) */ - 5, /* locationCalculationAssistanceDataMissing(5) */ - 4, /* thereWereNotEnoughSignalsReceivedForUeBasedDL-TDOA(4) */ - 2, /* unableToMeasureAnyTRP(2) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_r16_specs_2 = { - asn_MAP_cause_r16_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_r16_enum2value_2, /* N => "tag"; sorted by N */ - 6, /* Number of elements in the maps */ - 7, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_r16_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_r16_2 = { - "cause-r16", - "cause-r16", - &asn_OP_NativeEnumerated, - asn_DEF_cause_r16_tags_2, - sizeof(asn_DEF_cause_r16_tags_2) - /sizeof(asn_DEF_cause_r16_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_r16_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_r16_tags_2) - /sizeof(asn_DEF_cause_r16_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_r16_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_r16_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_DL_TDOA_TargetDeviceErrorCauses_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_TargetDeviceErrorCauses_r16, cause_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_r16_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_TargetDeviceErrorCauses_r16, nr_PRS_RSRPMeasurementNotPossible_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-PRS-RSRPMeasurementNotPossible-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_TargetDeviceErrorCauses_r16, nr_RSTDMeasurementNotPossible_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-RSTDMeasurementNotPossible-r16" - }, -}; -static const int asn_MAP_NR_DL_TDOA_TargetDeviceErrorCauses_r16_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_TargetDeviceErrorCauses_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PRS-RSRPMeasurementNotPossible-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-RSTDMeasurementNotPossible-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_TargetDeviceErrorCauses_r16_specs_1 = { - sizeof(struct NR_DL_TDOA_TargetDeviceErrorCauses_r16), - offsetof(struct NR_DL_TDOA_TargetDeviceErrorCauses_r16, _asn_ctx), - asn_MAP_NR_DL_TDOA_TargetDeviceErrorCauses_r16_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_NR_DL_TDOA_TargetDeviceErrorCauses_r16_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16 = { - "NR-DL-TDOA-TargetDeviceErrorCauses-r16", - "NR-DL-TDOA-TargetDeviceErrorCauses-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16_tags_1, - sizeof(asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16_tags_1) - /sizeof(asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_DL_TDOA_TargetDeviceErrorCauses_r16_1, - 3, /* Elements count */ - &asn_SPC_NR_DL_TDOA_TargetDeviceErrorCauses_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-DL-TDOA-TargetDeviceErrorCauses-r16.h b/asn.1/generated/NR-DL-TDOA-TargetDeviceErrorCauses-r16.h deleted file mode 100644 index e76ab046..00000000 --- a/asn.1/generated/NR-DL-TDOA-TargetDeviceErrorCauses-r16.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_DL_TDOA_TargetDeviceErrorCauses_r16_H_ -#define _NR_DL_TDOA_TargetDeviceErrorCauses_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum NR_DL_TDOA_TargetDeviceErrorCauses_r16__cause_r16 { - NR_DL_TDOA_TargetDeviceErrorCauses_r16__cause_r16_undefined = 0, - NR_DL_TDOA_TargetDeviceErrorCauses_r16__cause_r16_assistance_data_missing = 1, - NR_DL_TDOA_TargetDeviceErrorCauses_r16__cause_r16_unableToMeasureAnyTRP = 2, - NR_DL_TDOA_TargetDeviceErrorCauses_r16__cause_r16_attemptedButUnableToMeasureSomeNeighbourTRPs = 3, - NR_DL_TDOA_TargetDeviceErrorCauses_r16__cause_r16_thereWereNotEnoughSignalsReceivedForUeBasedDL_TDOA = 4, - NR_DL_TDOA_TargetDeviceErrorCauses_r16__cause_r16_locationCalculationAssistanceDataMissing = 5 - /* - * Enumeration is extensible - */ -} e_NR_DL_TDOA_TargetDeviceErrorCauses_r16__cause_r16; - -/* NR-DL-TDOA-TargetDeviceErrorCauses-r16 */ -typedef struct NR_DL_TDOA_TargetDeviceErrorCauses_r16 { - long cause_r16; - NULL_t *nr_PRS_RSRPMeasurementNotPossible_r16 /* OPTIONAL */; - NULL_t *nr_RSTDMeasurementNotPossible_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_DL_TDOA_TargetDeviceErrorCauses_r16_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_cause_r16_2; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_TargetDeviceErrorCauses_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_TargetDeviceErrorCauses_r16_1[3]; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_DL_TDOA_TargetDeviceErrorCauses_r16_H_ */ -#include diff --git a/asn.1/generated/NR-ECID-Error-r16.c b/asn.1/generated/NR-ECID-Error-r16.c deleted file mode 100644 index 8ab4a73a..00000000 --- a/asn.1/generated/NR-ECID-Error-r16.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-ECID-Error-r16.h" - -asn_per_constraints_t asn_PER_type_NR_ECID_Error_r16_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_ECID_Error_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_ECID_Error_r16, choice.locationServerErrorCauses_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_ECID_LocationServerErrorCauses_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationServerErrorCauses-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_ECID_Error_r16, choice.targetDeviceErrorCauses_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "targetDeviceErrorCauses-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_ECID_Error_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses-r16 */ -}; -asn_CHOICE_specifics_t asn_SPC_NR_ECID_Error_r16_specs_1 = { - sizeof(struct NR_ECID_Error_r16), - offsetof(struct NR_ECID_Error_r16, _asn_ctx), - offsetof(struct NR_ECID_Error_r16, present), - sizeof(((struct NR_ECID_Error_r16 *)0)->present), - asn_MAP_NR_ECID_Error_r16_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_ECID_Error_r16 = { - "NR-ECID-Error-r16", - "NR-ECID-Error-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_NR_ECID_Error_r16_constr_1, CHOICE_constraint }, - asn_MBR_NR_ECID_Error_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_ECID_Error_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-ECID-LocationServerErrorCauses-r16.c b/asn.1/generated/NR-ECID-LocationServerErrorCauses-r16.c deleted file mode 100644 index 1879900a..00000000 --- a/asn.1/generated/NR-ECID-LocationServerErrorCauses-r16.c +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-ECID-LocationServerErrorCauses-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_r16_value2enum_2[] = { - { 0, 9, "undefined" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_r16_enum2value_2[] = { - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_r16_specs_2 = { - asn_MAP_cause_r16_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_r16_enum2value_2, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 2, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_r16_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_r16_2 = { - "cause-r16", - "cause-r16", - &asn_OP_NativeEnumerated, - asn_DEF_cause_r16_tags_2, - sizeof(asn_DEF_cause_r16_tags_2) - /sizeof(asn_DEF_cause_r16_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_r16_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_r16_tags_2) - /sizeof(asn_DEF_cause_r16_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_r16_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_r16_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_ECID_LocationServerErrorCauses_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_ECID_LocationServerErrorCauses_r16, cause_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_r16_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_ECID_LocationServerErrorCauses_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_ECID_LocationServerErrorCauses_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_ECID_LocationServerErrorCauses_r16_specs_1 = { - sizeof(struct NR_ECID_LocationServerErrorCauses_r16), - offsetof(struct NR_ECID_LocationServerErrorCauses_r16, _asn_ctx), - asn_MAP_NR_ECID_LocationServerErrorCauses_r16_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_ECID_LocationServerErrorCauses_r16 = { - "NR-ECID-LocationServerErrorCauses-r16", - "NR-ECID-LocationServerErrorCauses-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_ECID_LocationServerErrorCauses_r16_tags_1, - sizeof(asn_DEF_NR_ECID_LocationServerErrorCauses_r16_tags_1) - /sizeof(asn_DEF_NR_ECID_LocationServerErrorCauses_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_ECID_LocationServerErrorCauses_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_ECID_LocationServerErrorCauses_r16_tags_1) - /sizeof(asn_DEF_NR_ECID_LocationServerErrorCauses_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_ECID_LocationServerErrorCauses_r16_1, - 1, /* Elements count */ - &asn_SPC_NR_ECID_LocationServerErrorCauses_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-ECID-ProvideCapabilities-r16.c b/asn.1/generated/NR-ECID-ProvideCapabilities-r16.c deleted file mode 100644 index 5fdc4c6e..00000000 --- a/asn.1/generated/NR-ECID-ProvideCapabilities-r16.c +++ /dev/null @@ -1,196 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-ECID-ProvideCapabilities-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_nr_ECID_MeasSupported_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_periodicalReporting_r16_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_triggeredReporting_r16_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_ECID_MeasSupported_r16_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_periodicalReporting_r16_value2enum_7[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_periodicalReporting_r16_enum2value_7[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_periodicalReporting_r16_specs_7 = { - asn_MAP_periodicalReporting_r16_value2enum_7, /* "tag" => N; sorted by tag */ - asn_MAP_periodicalReporting_r16_enum2value_7, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_periodicalReporting_r16_tags_7[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_periodicalReporting_r16_7 = { - "periodicalReporting-r16", - "periodicalReporting-r16", - &asn_OP_NativeEnumerated, - asn_DEF_periodicalReporting_r16_tags_7, - sizeof(asn_DEF_periodicalReporting_r16_tags_7) - /sizeof(asn_DEF_periodicalReporting_r16_tags_7[0]) - 1, /* 1 */ - asn_DEF_periodicalReporting_r16_tags_7, /* Same as above */ - sizeof(asn_DEF_periodicalReporting_r16_tags_7) - /sizeof(asn_DEF_periodicalReporting_r16_tags_7[0]), /* 2 */ - { 0, &asn_PER_type_periodicalReporting_r16_constr_7, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_periodicalReporting_r16_specs_7 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_triggeredReporting_r16_value2enum_9[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_triggeredReporting_r16_enum2value_9[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_triggeredReporting_r16_specs_9 = { - asn_MAP_triggeredReporting_r16_value2enum_9, /* "tag" => N; sorted by tag */ - asn_MAP_triggeredReporting_r16_enum2value_9, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_triggeredReporting_r16_tags_9[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_triggeredReporting_r16_9 = { - "triggeredReporting-r16", - "triggeredReporting-r16", - &asn_OP_NativeEnumerated, - asn_DEF_triggeredReporting_r16_tags_9, - sizeof(asn_DEF_triggeredReporting_r16_tags_9) - /sizeof(asn_DEF_triggeredReporting_r16_tags_9[0]) - 1, /* 1 */ - asn_DEF_triggeredReporting_r16_tags_9, /* Same as above */ - sizeof(asn_DEF_triggeredReporting_r16_tags_9) - /sizeof(asn_DEF_triggeredReporting_r16_tags_9[0]), /* 2 */ - { 0, &asn_PER_type_triggeredReporting_r16_constr_9, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_triggeredReporting_r16_specs_9 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_ECID_ProvideCapabilities_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_ECID_ProvideCapabilities_r16, nr_ECID_MeasSupported_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_nr_ECID_MeasSupported_r16_constr_2, memb_nr_ECID_MeasSupported_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-ECID-MeasSupported-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_ECID_ProvideCapabilities_r16, periodicalReporting_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_periodicalReporting_r16_7, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "periodicalReporting-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_ECID_ProvideCapabilities_r16, triggeredReporting_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_triggeredReporting_r16_9, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "triggeredReporting-r16" - }, -}; -static const int asn_MAP_NR_ECID_ProvideCapabilities_r16_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_NR_ECID_ProvideCapabilities_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_ECID_ProvideCapabilities_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-ECID-MeasSupported-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* periodicalReporting-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* triggeredReporting-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_ECID_ProvideCapabilities_r16_specs_1 = { - sizeof(struct NR_ECID_ProvideCapabilities_r16), - offsetof(struct NR_ECID_ProvideCapabilities_r16, _asn_ctx), - asn_MAP_NR_ECID_ProvideCapabilities_r16_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_NR_ECID_ProvideCapabilities_r16_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_ECID_ProvideCapabilities_r16 = { - "NR-ECID-ProvideCapabilities-r16", - "NR-ECID-ProvideCapabilities-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_ECID_ProvideCapabilities_r16_tags_1, - sizeof(asn_DEF_NR_ECID_ProvideCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_ECID_ProvideCapabilities_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_ECID_ProvideCapabilities_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_ECID_ProvideCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_ECID_ProvideCapabilities_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_ECID_ProvideCapabilities_r16_1, - 3, /* Elements count */ - &asn_SPC_NR_ECID_ProvideCapabilities_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-ECID-ProvideCapabilities-r16.h b/asn.1/generated/NR-ECID-ProvideCapabilities-r16.h deleted file mode 100644 index 736ac839..00000000 --- a/asn.1/generated/NR-ECID-ProvideCapabilities-r16.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_ECID_ProvideCapabilities_r16_H_ -#define _NR_ECID_ProvideCapabilities_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum NR_ECID_ProvideCapabilities_r16__nr_ECID_MeasSupported_r16 { - NR_ECID_ProvideCapabilities_r16__nr_ECID_MeasSupported_r16_ssrsrpSup = 0, - NR_ECID_ProvideCapabilities_r16__nr_ECID_MeasSupported_r16_ssrsrqSup = 1, - NR_ECID_ProvideCapabilities_r16__nr_ECID_MeasSupported_r16_csirsrpSup = 2, - NR_ECID_ProvideCapabilities_r16__nr_ECID_MeasSupported_r16_csirsrqSup = 3 -} e_NR_ECID_ProvideCapabilities_r16__nr_ECID_MeasSupported_r16; -typedef enum NR_ECID_ProvideCapabilities_r16__periodicalReporting_r16 { - NR_ECID_ProvideCapabilities_r16__periodicalReporting_r16_supported = 0 -} e_NR_ECID_ProvideCapabilities_r16__periodicalReporting_r16; -typedef enum NR_ECID_ProvideCapabilities_r16__triggeredReporting_r16 { - NR_ECID_ProvideCapabilities_r16__triggeredReporting_r16_supported = 0 -} e_NR_ECID_ProvideCapabilities_r16__triggeredReporting_r16; - -/* NR-ECID-ProvideCapabilities-r16 */ -typedef struct NR_ECID_ProvideCapabilities_r16 { - BIT_STRING_t nr_ECID_MeasSupported_r16; - long *periodicalReporting_r16 /* OPTIONAL */; - long *triggeredReporting_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_ECID_ProvideCapabilities_r16_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_periodicalReporting_r16_7; // (Use -fall-defs-global to expose) */ -/* extern asn_TYPE_descriptor_t asn_DEF_triggeredReporting_r16_9; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_NR_ECID_ProvideCapabilities_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_ECID_ProvideCapabilities_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_ECID_ProvideCapabilities_r16_1[3]; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_ECID_ProvideCapabilities_r16_H_ */ -#include diff --git a/asn.1/generated/NR-ECID-ProvideLocationInformation-r16.c b/asn.1/generated/NR-ECID-ProvideLocationInformation-r16.c deleted file mode 100644 index 6c162abc..00000000 --- a/asn.1/generated/NR-ECID-ProvideLocationInformation-r16.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-ECID-ProvideLocationInformation-r16.h" - -asn_TYPE_member_t asn_MBR_NR_ECID_ProvideLocationInformation_r16_1[] = { - { ATF_POINTER, 2, offsetof(struct NR_ECID_ProvideLocationInformation_r16, nr_ECID_SignalMeasurementInformation_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_ECID_SignalMeasurementInformation_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-ECID-SignalMeasurementInformation-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_ECID_ProvideLocationInformation_r16, nr_ECID_Error_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_NR_ECID_Error_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-ECID-Error-r16" - }, -}; -static const int asn_MAP_NR_ECID_ProvideLocationInformation_r16_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_NR_ECID_ProvideLocationInformation_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_ECID_ProvideLocationInformation_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-ECID-SignalMeasurementInformation-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-ECID-Error-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_ECID_ProvideLocationInformation_r16_specs_1 = { - sizeof(struct NR_ECID_ProvideLocationInformation_r16), - offsetof(struct NR_ECID_ProvideLocationInformation_r16, _asn_ctx), - asn_MAP_NR_ECID_ProvideLocationInformation_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_NR_ECID_ProvideLocationInformation_r16_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_ECID_ProvideLocationInformation_r16 = { - "NR-ECID-ProvideLocationInformation-r16", - "NR-ECID-ProvideLocationInformation-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_ECID_ProvideLocationInformation_r16_tags_1, - sizeof(asn_DEF_NR_ECID_ProvideLocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_ECID_ProvideLocationInformation_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_ECID_ProvideLocationInformation_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_ECID_ProvideLocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_ECID_ProvideLocationInformation_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_ECID_ProvideLocationInformation_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_ECID_ProvideLocationInformation_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-ECID-RequestCapabilities-r16.c b/asn.1/generated/NR-ECID-RequestCapabilities-r16.c deleted file mode 100644 index 61109dd4..00000000 --- a/asn.1/generated/NR-ECID-RequestCapabilities-r16.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-ECID-RequestCapabilities-r16.h" - -static const ber_tlv_tag_t asn_DEF_NR_ECID_RequestCapabilities_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_ECID_RequestCapabilities_r16_specs_1 = { - sizeof(struct NR_ECID_RequestCapabilities_r16), - offsetof(struct NR_ECID_RequestCapabilities_r16, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_ECID_RequestCapabilities_r16 = { - "NR-ECID-RequestCapabilities-r16", - "NR-ECID-RequestCapabilities-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_ECID_RequestCapabilities_r16_tags_1, - sizeof(asn_DEF_NR_ECID_RequestCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_ECID_RequestCapabilities_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_ECID_RequestCapabilities_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_ECID_RequestCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_ECID_RequestCapabilities_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_NR_ECID_RequestCapabilities_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-ECID-RequestLocationInformation-r16.c b/asn.1/generated/NR-ECID-RequestLocationInformation-r16.c deleted file mode 100644 index 3ef86867..00000000 --- a/asn.1/generated/NR-ECID-RequestLocationInformation-r16.c +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-ECID-RequestLocationInformation-r16.h" - -static int -memb_requestedMeasurements_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_requestedMeasurements_r16_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_ECID_RequestLocationInformation_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_ECID_RequestLocationInformation_r16, requestedMeasurements_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_requestedMeasurements_r16_constr_2, memb_requestedMeasurements_r16_constraint_1 }, - 0, 0, /* No default value */ - "requestedMeasurements-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_ECID_RequestLocationInformation_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_ECID_RequestLocationInformation_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* requestedMeasurements-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_ECID_RequestLocationInformation_r16_specs_1 = { - sizeof(struct NR_ECID_RequestLocationInformation_r16), - offsetof(struct NR_ECID_RequestLocationInformation_r16, _asn_ctx), - asn_MAP_NR_ECID_RequestLocationInformation_r16_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_ECID_RequestLocationInformation_r16 = { - "NR-ECID-RequestLocationInformation-r16", - "NR-ECID-RequestLocationInformation-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_ECID_RequestLocationInformation_r16_tags_1, - sizeof(asn_DEF_NR_ECID_RequestLocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_ECID_RequestLocationInformation_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_ECID_RequestLocationInformation_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_ECID_RequestLocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_ECID_RequestLocationInformation_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_ECID_RequestLocationInformation_r16_1, - 1, /* Elements count */ - &asn_SPC_NR_ECID_RequestLocationInformation_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-ECID-SignalMeasurementInformation-r16.c b/asn.1/generated/NR-ECID-SignalMeasurementInformation-r16.c deleted file mode 100644 index bd0b913d..00000000 --- a/asn.1/generated/NR-ECID-SignalMeasurementInformation-r16.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-ECID-SignalMeasurementInformation-r16.h" - -asn_TYPE_member_t asn_MBR_NR_ECID_SignalMeasurementInformation_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_ECID_SignalMeasurementInformation_r16, nr_PrimaryCellMeasuredResults_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_MeasuredResultsElement_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-PrimaryCellMeasuredResults-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_ECID_SignalMeasurementInformation_r16, nr_MeasuredResultsList_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_MeasuredResultsList_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-MeasuredResultsList-r16" - }, -}; -static const int asn_MAP_NR_ECID_SignalMeasurementInformation_r16_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_NR_ECID_SignalMeasurementInformation_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_ECID_SignalMeasurementInformation_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-PrimaryCellMeasuredResults-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-MeasuredResultsList-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_ECID_SignalMeasurementInformation_r16_specs_1 = { - sizeof(struct NR_ECID_SignalMeasurementInformation_r16), - offsetof(struct NR_ECID_SignalMeasurementInformation_r16, _asn_ctx), - asn_MAP_NR_ECID_SignalMeasurementInformation_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_NR_ECID_SignalMeasurementInformation_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_ECID_SignalMeasurementInformation_r16 = { - "NR-ECID-SignalMeasurementInformation-r16", - "NR-ECID-SignalMeasurementInformation-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_ECID_SignalMeasurementInformation_r16_tags_1, - sizeof(asn_DEF_NR_ECID_SignalMeasurementInformation_r16_tags_1) - /sizeof(asn_DEF_NR_ECID_SignalMeasurementInformation_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_ECID_SignalMeasurementInformation_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_ECID_SignalMeasurementInformation_r16_tags_1) - /sizeof(asn_DEF_NR_ECID_SignalMeasurementInformation_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_ECID_SignalMeasurementInformation_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_ECID_SignalMeasurementInformation_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-ECID-TargetDeviceErrorCauses-r16.c b/asn.1/generated/NR-ECID-TargetDeviceErrorCauses-r16.c deleted file mode 100644 index 90cc0590..00000000 --- a/asn.1/generated/NR-ECID-TargetDeviceErrorCauses-r16.c +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-ECID-TargetDeviceErrorCauses-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_r16_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 32, "requestedMeasurementNotAvailable" }, - { 2, 35, "notAllrequestedMeasurementsPossible" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_r16_enum2value_2[] = { - 2, /* notAllrequestedMeasurementsPossible(2) */ - 1, /* requestedMeasurementNotAvailable(1) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_r16_specs_2 = { - asn_MAP_cause_r16_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_r16_enum2value_2, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 4, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_r16_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_r16_2 = { - "cause-r16", - "cause-r16", - &asn_OP_NativeEnumerated, - asn_DEF_cause_r16_tags_2, - sizeof(asn_DEF_cause_r16_tags_2) - /sizeof(asn_DEF_cause_r16_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_r16_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_r16_tags_2) - /sizeof(asn_DEF_cause_r16_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_r16_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_r16_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_ECID_TargetDeviceErrorCauses_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_ECID_TargetDeviceErrorCauses_r16, cause_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_r16_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause-r16" - }, - { ATF_POINTER, 4, offsetof(struct NR_ECID_TargetDeviceErrorCauses_r16, ss_RSRPMeasurementNotPossible), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ss-RSRPMeasurementNotPossible" - }, - { ATF_POINTER, 3, offsetof(struct NR_ECID_TargetDeviceErrorCauses_r16, ss_RSRQMeasurementNotPossible), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ss-RSRQMeasurementNotPossible" - }, - { ATF_POINTER, 2, offsetof(struct NR_ECID_TargetDeviceErrorCauses_r16, csi_RSRPMeasurementNotPossible), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "csi-RSRPMeasurementNotPossible" - }, - { ATF_POINTER, 1, offsetof(struct NR_ECID_TargetDeviceErrorCauses_r16, csi_RSRQMeasurementNotPossible), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "csi-RSRQMeasurementNotPossible" - }, -}; -static const int asn_MAP_NR_ECID_TargetDeviceErrorCauses_r16_oms_1[] = { 1, 2, 3, 4 }; -static const ber_tlv_tag_t asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_ECID_TargetDeviceErrorCauses_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ss-RSRPMeasurementNotPossible */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ss-RSRQMeasurementNotPossible */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* csi-RSRPMeasurementNotPossible */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* csi-RSRQMeasurementNotPossible */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_ECID_TargetDeviceErrorCauses_r16_specs_1 = { - sizeof(struct NR_ECID_TargetDeviceErrorCauses_r16), - offsetof(struct NR_ECID_TargetDeviceErrorCauses_r16, _asn_ctx), - asn_MAP_NR_ECID_TargetDeviceErrorCauses_r16_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_NR_ECID_TargetDeviceErrorCauses_r16_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16 = { - "NR-ECID-TargetDeviceErrorCauses-r16", - "NR-ECID-TargetDeviceErrorCauses-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16_tags_1, - sizeof(asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16_tags_1) - /sizeof(asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16_tags_1) - /sizeof(asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_ECID_TargetDeviceErrorCauses_r16_1, - 5, /* Elements count */ - &asn_SPC_NR_ECID_TargetDeviceErrorCauses_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-ECID-TargetDeviceErrorCauses-r16.h b/asn.1/generated/NR-ECID-TargetDeviceErrorCauses-r16.h deleted file mode 100644 index 14622da6..00000000 --- a/asn.1/generated/NR-ECID-TargetDeviceErrorCauses-r16.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_ECID_TargetDeviceErrorCauses_r16_H_ -#define _NR_ECID_TargetDeviceErrorCauses_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum NR_ECID_TargetDeviceErrorCauses_r16__cause_r16 { - NR_ECID_TargetDeviceErrorCauses_r16__cause_r16_undefined = 0, - NR_ECID_TargetDeviceErrorCauses_r16__cause_r16_requestedMeasurementNotAvailable = 1, - NR_ECID_TargetDeviceErrorCauses_r16__cause_r16_notAllrequestedMeasurementsPossible = 2 - /* - * Enumeration is extensible - */ -} e_NR_ECID_TargetDeviceErrorCauses_r16__cause_r16; - -/* NR-ECID-TargetDeviceErrorCauses-r16 */ -typedef struct NR_ECID_TargetDeviceErrorCauses_r16 { - long cause_r16; - NULL_t *ss_RSRPMeasurementNotPossible /* OPTIONAL */; - NULL_t *ss_RSRQMeasurementNotPossible /* OPTIONAL */; - NULL_t *csi_RSRPMeasurementNotPossible /* OPTIONAL */; - NULL_t *csi_RSRQMeasurementNotPossible /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_ECID_TargetDeviceErrorCauses_r16_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_cause_r16_2; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_ECID_TargetDeviceErrorCauses_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_ECID_TargetDeviceErrorCauses_r16_1[5]; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_ECID_TargetDeviceErrorCauses_r16_H_ */ -#include diff --git a/asn.1/generated/NR-MeasuredResultsElement-r16.c b/asn.1/generated/NR-MeasuredResultsElement-r16.c deleted file mode 100644 index b1650141..00000000 --- a/asn.1/generated/NR-MeasuredResultsElement-r16.c +++ /dev/null @@ -1,273 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-MeasuredResultsElement-r16.h" - -static int -memb_systemFrameNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 10)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_systemFrameNumber_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_cellResults_r16_5[] = { - { ATF_POINTER, 2, offsetof(struct NR_MeasuredResultsElement_r16__measResultNR_r16__cellResults_r16, resultsSSB_Cell_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MeasQuantityResults_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "resultsSSB-Cell-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_MeasuredResultsElement_r16__measResultNR_r16__cellResults_r16, resultsCSI_RS_Cell_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MeasQuantityResults_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "resultsCSI-RS-Cell-r16" - }, -}; -static const int asn_MAP_cellResults_r16_oms_5[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_cellResults_r16_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_cellResults_r16_tag2el_5[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* resultsSSB-Cell-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* resultsCSI-RS-Cell-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_cellResults_r16_specs_5 = { - sizeof(struct NR_MeasuredResultsElement_r16__measResultNR_r16__cellResults_r16), - offsetof(struct NR_MeasuredResultsElement_r16__measResultNR_r16__cellResults_r16, _asn_ctx), - asn_MAP_cellResults_r16_tag2el_5, - 2, /* Count of tags in the map */ - asn_MAP_cellResults_r16_oms_5, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cellResults_r16_5 = { - "cellResults-r16", - "cellResults-r16", - &asn_OP_SEQUENCE, - asn_DEF_cellResults_r16_tags_5, - sizeof(asn_DEF_cellResults_r16_tags_5) - /sizeof(asn_DEF_cellResults_r16_tags_5[0]) - 1, /* 1 */ - asn_DEF_cellResults_r16_tags_5, /* Same as above */ - sizeof(asn_DEF_cellResults_r16_tags_5) - /sizeof(asn_DEF_cellResults_r16_tags_5[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_cellResults_r16_5, - 2, /* Elements count */ - &asn_SPC_cellResults_r16_specs_5 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_rsIndexResults_r16_8[] = { - { ATF_POINTER, 2, offsetof(struct NR_MeasuredResultsElement_r16__measResultNR_r16__rsIndexResults_r16, resultsSSB_Indexes_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ResultsPerSSB_IndexList_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "resultsSSB-Indexes-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_MeasuredResultsElement_r16__measResultNR_r16__rsIndexResults_r16, resultsCSI_RS_Indexes_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ResultsPerCSI_RS_IndexList_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "resultsCSI-RS-Indexes-r16" - }, -}; -static const int asn_MAP_rsIndexResults_r16_oms_8[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_rsIndexResults_r16_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_rsIndexResults_r16_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* resultsSSB-Indexes-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* resultsCSI-RS-Indexes-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_rsIndexResults_r16_specs_8 = { - sizeof(struct NR_MeasuredResultsElement_r16__measResultNR_r16__rsIndexResults_r16), - offsetof(struct NR_MeasuredResultsElement_r16__measResultNR_r16__rsIndexResults_r16, _asn_ctx), - asn_MAP_rsIndexResults_r16_tag2el_8, - 2, /* Count of tags in the map */ - asn_MAP_rsIndexResults_r16_oms_8, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_rsIndexResults_r16_8 = { - "rsIndexResults-r16", - "rsIndexResults-r16", - &asn_OP_SEQUENCE, - asn_DEF_rsIndexResults_r16_tags_8, - sizeof(asn_DEF_rsIndexResults_r16_tags_8) - /sizeof(asn_DEF_rsIndexResults_r16_tags_8[0]) - 1, /* 1 */ - asn_DEF_rsIndexResults_r16_tags_8, /* Same as above */ - sizeof(asn_DEF_rsIndexResults_r16_tags_8) - /sizeof(asn_DEF_rsIndexResults_r16_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_rsIndexResults_r16_8, - 2, /* Elements count */ - &asn_SPC_rsIndexResults_r16_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_measResultNR_r16_4[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_MeasuredResultsElement_r16__measResultNR_r16, cellResults_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_cellResults_r16_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellResults-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_MeasuredResultsElement_r16__measResultNR_r16, rsIndexResults_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_rsIndexResults_r16_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rsIndexResults-r16" - }, -}; -static const int asn_MAP_measResultNR_r16_oms_4[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_measResultNR_r16_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_measResultNR_r16_tag2el_4[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellResults-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* rsIndexResults-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_measResultNR_r16_specs_4 = { - sizeof(struct NR_MeasuredResultsElement_r16__measResultNR_r16), - offsetof(struct NR_MeasuredResultsElement_r16__measResultNR_r16, _asn_ctx), - asn_MAP_measResultNR_r16_tag2el_4, - 2, /* Count of tags in the map */ - asn_MAP_measResultNR_r16_oms_4, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_measResultNR_r16_4 = { - "measResultNR-r16", - "measResultNR-r16", - &asn_OP_SEQUENCE, - asn_DEF_measResultNR_r16_tags_4, - sizeof(asn_DEF_measResultNR_r16_tags_4) - /sizeof(asn_DEF_measResultNR_r16_tags_4[0]) - 1, /* 1 */ - asn_DEF_measResultNR_r16_tags_4, /* Same as above */ - sizeof(asn_DEF_measResultNR_r16_tags_4) - /sizeof(asn_DEF_measResultNR_r16_tags_4[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_measResultNR_r16_4, - 2, /* Elements count */ - &asn_SPC_measResultNR_r16_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_MeasuredResultsElement_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_MeasuredResultsElement_r16, systemFrameNumber), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_systemFrameNumber_constr_2, memb_systemFrameNumber_constraint_1 }, - 0, 0, /* No default value */ - "systemFrameNumber" - }, - { ATF_POINTER, 1, offsetof(struct NR_MeasuredResultsElement_r16, trp_ID_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TRP_ID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "trp-ID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_MeasuredResultsElement_r16, measResultNR_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_measResultNR_r16_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "measResultNR-r16" - }, -}; -static const int asn_MAP_NR_MeasuredResultsElement_r16_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_NR_MeasuredResultsElement_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_MeasuredResultsElement_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* systemFrameNumber */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* trp-ID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* measResultNR-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_MeasuredResultsElement_r16_specs_1 = { - sizeof(struct NR_MeasuredResultsElement_r16), - offsetof(struct NR_MeasuredResultsElement_r16, _asn_ctx), - asn_MAP_NR_MeasuredResultsElement_r16_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_NR_MeasuredResultsElement_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_MeasuredResultsElement_r16 = { - "NR-MeasuredResultsElement-r16", - "NR-MeasuredResultsElement-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_MeasuredResultsElement_r16_tags_1, - sizeof(asn_DEF_NR_MeasuredResultsElement_r16_tags_1) - /sizeof(asn_DEF_NR_MeasuredResultsElement_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_MeasuredResultsElement_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_MeasuredResultsElement_r16_tags_1) - /sizeof(asn_DEF_NR_MeasuredResultsElement_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_MeasuredResultsElement_r16_1, - 3, /* Elements count */ - &asn_SPC_NR_MeasuredResultsElement_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-MeasuredResultsElement-r16.h b/asn.1/generated/NR-MeasuredResultsElement-r16.h deleted file mode 100644 index 18c58212..00000000 --- a/asn.1/generated/NR-MeasuredResultsElement-r16.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_MeasuredResultsElement_r16_H_ -#define _NR_MeasuredResultsElement_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct TRP_ID_r16; -struct MeasQuantityResults_r16; -struct ResultsPerSSB_IndexList_r16; -struct ResultsPerCSI_RS_IndexList_r16; - -/* NR-MeasuredResultsElement-r16 */ -typedef struct NR_MeasuredResultsElement_r16 { - BIT_STRING_t systemFrameNumber; - struct TRP_ID_r16 *trp_ID_r16 /* OPTIONAL */; - struct NR_MeasuredResultsElement_r16__measResultNR_r16 { - struct NR_MeasuredResultsElement_r16__measResultNR_r16__cellResults_r16 { - struct MeasQuantityResults_r16 *resultsSSB_Cell_r16 /* OPTIONAL */; - struct MeasQuantityResults_r16 *resultsCSI_RS_Cell_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } cellResults_r16; - struct NR_MeasuredResultsElement_r16__measResultNR_r16__rsIndexResults_r16 { - struct ResultsPerSSB_IndexList_r16 *resultsSSB_Indexes_r16 /* OPTIONAL */; - struct ResultsPerCSI_RS_IndexList_r16 *resultsCSI_RS_Indexes_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *rsIndexResults_r16; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } measResultNR_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_MeasuredResultsElement_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_MeasuredResultsElement_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_MeasuredResultsElement_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_MeasuredResultsElement_r16_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "TRP-ID-r16.h" -#include "MeasQuantityResults-r16.h" -#include "ResultsPerSSB-IndexList-r16.h" -#include "ResultsPerCSI-RS-IndexList-r16.h" - -#endif /* _NR_MeasuredResultsElement_r16_H_ */ -#include diff --git a/asn.1/generated/NR-MeasuredResultsList-r16.c b/asn.1/generated/NR-MeasuredResultsList-r16.c deleted file mode 100644 index 61de2ac9..00000000 --- a/asn.1/generated/NR-MeasuredResultsList-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-MeasuredResultsList-r16.h" - -asn_per_constraints_t asn_PER_type_NR_MeasuredResultsList_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_MeasuredResultsList_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NR_MeasuredResultsElement_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_MeasuredResultsList_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_NR_MeasuredResultsList_r16_specs_1 = { - sizeof(struct NR_MeasuredResultsList_r16), - offsetof(struct NR_MeasuredResultsList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_MeasuredResultsList_r16 = { - "NR-MeasuredResultsList-r16", - "NR-MeasuredResultsList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_NR_MeasuredResultsList_r16_tags_1, - sizeof(asn_DEF_NR_MeasuredResultsList_r16_tags_1) - /sizeof(asn_DEF_NR_MeasuredResultsList_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_MeasuredResultsList_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_MeasuredResultsList_r16_tags_1) - /sizeof(asn_DEF_NR_MeasuredResultsList_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_NR_MeasuredResultsList_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_NR_MeasuredResultsList_r16_1, - 1, /* Single element */ - &asn_SPC_NR_MeasuredResultsList_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-Multi-RTT-AdditionalMeasurementElement-r16.c b/asn.1/generated/NR-Multi-RTT-AdditionalMeasurementElement-r16.c deleted file mode 100644 index 64996795..00000000 --- a/asn.1/generated/NR-Multi-RTT-AdditionalMeasurementElement-r16.c +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-Multi-RTT-AdditionalMeasurementElement-r16.h" - -static int -memb_nr_PRS_RSRP_ResultDiff_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nr_UE_RxTxTimeDiffAdditional_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_nr_PRS_RSRP_ResultDiff_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (1..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_UE_RxTxTimeDiffAdditional_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_Multi_RTT_AdditionalMeasurementElement_r16_1[] = { - { ATF_POINTER, 5, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16, nr_DL_PRS_ResourceID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_ResourceID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-ResourceID-r16" - }, - { ATF_POINTER, 4, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16, nr_DL_PRS_ResourceSetID_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_ResourceSetID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-ResourceSetID-r16" - }, - { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16, nr_PRS_RSRP_ResultDiff_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_PRS_RSRP_ResultDiff_r16_constr_4, memb_nr_PRS_RSRP_ResultDiff_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-PRS-RSRP-ResultDiff-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16, nr_UE_RxTxTimeDiffAdditional_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_UE_RxTxTimeDiffAdditional_r16_constr_5, memb_nr_UE_RxTxTimeDiffAdditional_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-UE-RxTxTimeDiffAdditional-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16, nr_AdditionalPathList_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_AdditionalPathList_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-AdditionalPathList-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16, nr_TimeStamp_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_TimeStamp_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-TimeStamp-r16" - }, -}; -static const int asn_MAP_NR_Multi_RTT_AdditionalMeasurementElement_r16_oms_1[] = { 0, 1, 2, 3, 4 }; -static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_AdditionalMeasurementElement_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-ResourceID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-ResourceSetID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-PRS-RSRP-ResultDiff-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-UE-RxTxTimeDiffAdditional-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-AdditionalPathList-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* nr-TimeStamp-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_AdditionalMeasurementElement_r16_specs_1 = { - sizeof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16), - offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16, _asn_ctx), - asn_MAP_NR_Multi_RTT_AdditionalMeasurementElement_r16_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_NR_Multi_RTT_AdditionalMeasurementElement_r16_oms_1, /* Optional members */ - 5, 0, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16 = { - "NR-Multi-RTT-AdditionalMeasurementElement-r16", - "NR-Multi-RTT-AdditionalMeasurementElement-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16_tags_1, - sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_Multi_RTT_AdditionalMeasurementElement_r16_1, - 6, /* Elements count */ - &asn_SPC_NR_Multi_RTT_AdditionalMeasurementElement_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-Multi-RTT-AdditionalMeasurementElement-r16.h b/asn.1/generated/NR-Multi-RTT-AdditionalMeasurementElement-r16.h deleted file mode 100644 index 9d3e8c3f..00000000 --- a/asn.1/generated/NR-Multi-RTT-AdditionalMeasurementElement-r16.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_Multi_RTT_AdditionalMeasurementElement_r16_H_ -#define _NR_Multi_RTT_AdditionalMeasurementElement_r16_H_ - - -#include - -/* Including external dependencies */ -#include "NR-DL-PRS-ResourceID-r16.h" -#include "NR-DL-PRS-ResourceSetID-r16.h" -#include -#include "NR-TimeStamp-r16.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct NR_AdditionalPathList_r16; - -/* NR-Multi-RTT-AdditionalMeasurementElement-r16 */ -typedef struct NR_Multi_RTT_AdditionalMeasurementElement_r16 { - NR_DL_PRS_ResourceID_r16_t *nr_DL_PRS_ResourceID_r16 /* OPTIONAL */; - NR_DL_PRS_ResourceSetID_r16_t *nr_DL_PRS_ResourceSetID_r16 /* OPTIONAL */; - long *nr_PRS_RSRP_ResultDiff_r16 /* OPTIONAL */; - long *nr_UE_RxTxTimeDiffAdditional_r16 /* OPTIONAL */; - struct NR_AdditionalPathList_r16 *nr_AdditionalPathList_r16 /* OPTIONAL */; - NR_TimeStamp_r16_t nr_TimeStamp_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_Multi_RTT_AdditionalMeasurementElement_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_AdditionalMeasurementElement_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_AdditionalMeasurementElement_r16_1[6]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-AdditionalPathList-r16.h" - -#endif /* _NR_Multi_RTT_AdditionalMeasurementElement_r16_H_ */ -#include diff --git a/asn.1/generated/NR-Multi-RTT-AdditionalMeasurements-r16.c b/asn.1/generated/NR-Multi-RTT-AdditionalMeasurements-r16.c deleted file mode 100644 index 85b34738..00000000 --- a/asn.1/generated/NR-Multi-RTT-AdditionalMeasurements-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-Multi-RTT-AdditionalMeasurements-r16.h" - -asn_per_constraints_t asn_PER_type_NR_Multi_RTT_AdditionalMeasurements_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_Multi_RTT_AdditionalMeasurements_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_AdditionalMeasurements_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_NR_Multi_RTT_AdditionalMeasurements_r16_specs_1 = { - sizeof(struct NR_Multi_RTT_AdditionalMeasurements_r16), - offsetof(struct NR_Multi_RTT_AdditionalMeasurements_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_AdditionalMeasurements_r16 = { - "NR-Multi-RTT-AdditionalMeasurements-r16", - "NR-Multi-RTT-AdditionalMeasurements-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_NR_Multi_RTT_AdditionalMeasurements_r16_tags_1, - sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurements_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurements_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_Multi_RTT_AdditionalMeasurements_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurements_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurements_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_NR_Multi_RTT_AdditionalMeasurements_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_NR_Multi_RTT_AdditionalMeasurements_r16_1, - 1, /* Single element */ - &asn_SPC_NR_Multi_RTT_AdditionalMeasurements_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-Multi-RTT-Error-r16.c b/asn.1/generated/NR-Multi-RTT-Error-r16.c deleted file mode 100644 index de6a1511..00000000 --- a/asn.1/generated/NR-Multi-RTT-Error-r16.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-Multi-RTT-Error-r16.h" - -asn_per_constraints_t asn_PER_type_NR_Multi_RTT_Error_r16_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_Multi_RTT_Error_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_Error_r16, choice.locationServerErrorCauses_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_Multi_RTT_LocationServerErrorCauses_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationServerErrorCauses-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_Error_r16, choice.targetDeviceErrorCauses_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "targetDeviceErrorCauses-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_Error_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses-r16 */ -}; -asn_CHOICE_specifics_t asn_SPC_NR_Multi_RTT_Error_r16_specs_1 = { - sizeof(struct NR_Multi_RTT_Error_r16), - offsetof(struct NR_Multi_RTT_Error_r16, _asn_ctx), - offsetof(struct NR_Multi_RTT_Error_r16, present), - sizeof(((struct NR_Multi_RTT_Error_r16 *)0)->present), - asn_MAP_NR_Multi_RTT_Error_r16_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_Error_r16 = { - "NR-Multi-RTT-Error-r16", - "NR-Multi-RTT-Error-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_NR_Multi_RTT_Error_r16_constr_1, CHOICE_constraint }, - asn_MBR_NR_Multi_RTT_Error_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_Multi_RTT_Error_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-Multi-RTT-LocationServerErrorCauses-r16.c b/asn.1/generated/NR-Multi-RTT-LocationServerErrorCauses-r16.c deleted file mode 100644 index 338921d8..00000000 --- a/asn.1/generated/NR-Multi-RTT-LocationServerErrorCauses-r16.c +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-Multi-RTT-LocationServerErrorCauses-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_r16_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 34, "assistanceDataNotSupportedByServer" }, - { 2, 55, "assistanceDataSupportedButCurrentlyNotAvailableByServer" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_r16_enum2value_2[] = { - 1, /* assistanceDataNotSupportedByServer(1) */ - 2, /* assistanceDataSupportedButCurrentlyNotAvailableByServer(2) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_r16_specs_2 = { - asn_MAP_cause_r16_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_r16_enum2value_2, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 4, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_r16_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_r16_2 = { - "cause-r16", - "cause-r16", - &asn_OP_NativeEnumerated, - asn_DEF_cause_r16_tags_2, - sizeof(asn_DEF_cause_r16_tags_2) - /sizeof(asn_DEF_cause_r16_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_r16_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_r16_tags_2) - /sizeof(asn_DEF_cause_r16_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_r16_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_r16_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_Multi_RTT_LocationServerErrorCauses_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_LocationServerErrorCauses_r16, cause_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_r16_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_LocationServerErrorCauses_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_LocationServerErrorCauses_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_LocationServerErrorCauses_r16_specs_1 = { - sizeof(struct NR_Multi_RTT_LocationServerErrorCauses_r16), - offsetof(struct NR_Multi_RTT_LocationServerErrorCauses_r16, _asn_ctx), - asn_MAP_NR_Multi_RTT_LocationServerErrorCauses_r16_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_LocationServerErrorCauses_r16 = { - "NR-Multi-RTT-LocationServerErrorCauses-r16", - "NR-Multi-RTT-LocationServerErrorCauses-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_Multi_RTT_LocationServerErrorCauses_r16_tags_1, - sizeof(asn_DEF_NR_Multi_RTT_LocationServerErrorCauses_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_LocationServerErrorCauses_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_Multi_RTT_LocationServerErrorCauses_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_Multi_RTT_LocationServerErrorCauses_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_LocationServerErrorCauses_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_Multi_RTT_LocationServerErrorCauses_r16_1, - 1, /* Elements count */ - &asn_SPC_NR_Multi_RTT_LocationServerErrorCauses_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-Multi-RTT-MeasElement-r16.c b/asn.1/generated/NR-Multi-RTT-MeasElement-r16.c deleted file mode 100644 index 48f1c2bb..00000000 --- a/asn.1/generated/NR-Multi-RTT-MeasElement-r16.c +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-Multi-RTT-MeasElement-r16.h" - -static int -memb_nr_UE_RxTxTimeDiff_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nr_PRS_RSRP_Result_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_nr_UE_RxTxTimeDiff_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_PRS_RSRP_Result_r16_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (1..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_Multi_RTT_MeasElement_r16_1[] = { - { ATF_POINTER, 5, offsetof(struct NR_Multi_RTT_MeasElement_r16, trp_ID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TRP_ID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "trp-ID-r16" - }, - { ATF_POINTER, 4, offsetof(struct NR_Multi_RTT_MeasElement_r16, nr_DL_PRS_ResourceID_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_ResourceID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-ResourceID-r16" - }, - { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_MeasElement_r16, nr_DL_PRS_ResourceSetID_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_ResourceSetID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-ResourceSetID-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_MeasElement_r16, nr_UE_RxTxTimeDiff_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_UE_RxTxTimeDiff_r16_constr_5, memb_nr_UE_RxTxTimeDiff_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-UE-RxTxTimeDiff-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_MeasElement_r16, nr_AdditionalPathList_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_AdditionalPathList_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-AdditionalPathList-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16, nr_TimeStamp_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_TimeStamp_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-TimeStamp-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16, nr_TimingMeasQuality_r16), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_TimingMeasQuality_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-TimingMeasQuality-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_MeasElement_r16, nr_PRS_RSRP_Result_r16), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_PRS_RSRP_Result_r16_constr_9, memb_nr_PRS_RSRP_Result_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-PRS-RSRP-Result-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16, nr_Multi_RTT_AdditionalMeasurements_r16), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_Multi_RTT_AdditionalMeasurements_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-Multi-RTT-AdditionalMeasurements-r16" - }, -}; -static const int asn_MAP_NR_Multi_RTT_MeasElement_r16_oms_1[] = { 0, 1, 2, 3, 4, 7 }; -static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_MeasElement_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_MeasElement_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* trp-ID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-ResourceID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-PRS-ResourceSetID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-UE-RxTxTimeDiff-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-AdditionalPathList-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nr-TimeStamp-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* nr-TimingMeasQuality-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* nr-PRS-RSRP-Result-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* nr-Multi-RTT-AdditionalMeasurements-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_MeasElement_r16_specs_1 = { - sizeof(struct NR_Multi_RTT_MeasElement_r16), - offsetof(struct NR_Multi_RTT_MeasElement_r16, _asn_ctx), - asn_MAP_NR_Multi_RTT_MeasElement_r16_tag2el_1, - 9, /* Count of tags in the map */ - asn_MAP_NR_Multi_RTT_MeasElement_r16_oms_1, /* Optional members */ - 6, 0, /* Root/Additions */ - 9, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_MeasElement_r16 = { - "NR-Multi-RTT-MeasElement-r16", - "NR-Multi-RTT-MeasElement-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_Multi_RTT_MeasElement_r16_tags_1, - sizeof(asn_DEF_NR_Multi_RTT_MeasElement_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_MeasElement_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_Multi_RTT_MeasElement_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_Multi_RTT_MeasElement_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_MeasElement_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_Multi_RTT_MeasElement_r16_1, - 9, /* Elements count */ - &asn_SPC_NR_Multi_RTT_MeasElement_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-Multi-RTT-MeasElement-r16.h b/asn.1/generated/NR-Multi-RTT-MeasElement-r16.h deleted file mode 100644 index a6bd2aee..00000000 --- a/asn.1/generated/NR-Multi-RTT-MeasElement-r16.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_Multi_RTT_MeasElement_r16_H_ -#define _NR_Multi_RTT_MeasElement_r16_H_ - - -#include - -/* Including external dependencies */ -#include "NR-DL-PRS-ResourceID-r16.h" -#include "NR-DL-PRS-ResourceSetID-r16.h" -#include -#include "NR-TimeStamp-r16.h" -#include "NR-TimingMeasQuality-r16.h" -#include "NR-Multi-RTT-AdditionalMeasurements-r16.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct TRP_ID_r16; -struct NR_AdditionalPathList_r16; - -/* NR-Multi-RTT-MeasElement-r16 */ -typedef struct NR_Multi_RTT_MeasElement_r16 { - struct TRP_ID_r16 *trp_ID_r16 /* OPTIONAL */; - NR_DL_PRS_ResourceID_r16_t *nr_DL_PRS_ResourceID_r16 /* OPTIONAL */; - NR_DL_PRS_ResourceSetID_r16_t *nr_DL_PRS_ResourceSetID_r16 /* OPTIONAL */; - long *nr_UE_RxTxTimeDiff_r16 /* OPTIONAL */; - struct NR_AdditionalPathList_r16 *nr_AdditionalPathList_r16 /* OPTIONAL */; - NR_TimeStamp_r16_t nr_TimeStamp_r16; - NR_TimingMeasQuality_r16_t nr_TimingMeasQuality_r16; - long *nr_PRS_RSRP_Result_r16 /* OPTIONAL */; - NR_Multi_RTT_AdditionalMeasurements_r16_t nr_Multi_RTT_AdditionalMeasurements_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_Multi_RTT_MeasElement_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_MeasElement_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_MeasElement_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_MeasElement_r16_1[9]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "TRP-ID-r16.h" -#include "NR-AdditionalPathList-r16.h" - -#endif /* _NR_Multi_RTT_MeasElement_r16_H_ */ -#include diff --git a/asn.1/generated/NR-Multi-RTT-MeasList-r16.c b/asn.1/generated/NR-Multi-RTT-MeasList-r16.c deleted file mode 100644 index a0a2a1c6..00000000 --- a/asn.1/generated/NR-Multi-RTT-MeasList-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-Multi-RTT-MeasList-r16.h" - -asn_per_constraints_t asn_PER_type_NR_Multi_RTT_MeasList_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 8, 8, 1, 256 } /* (SIZE(1..256)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_Multi_RTT_MeasList_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NR_Multi_RTT_MeasElement_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_MeasList_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_NR_Multi_RTT_MeasList_r16_specs_1 = { - sizeof(struct NR_Multi_RTT_MeasList_r16), - offsetof(struct NR_Multi_RTT_MeasList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_MeasList_r16 = { - "NR-Multi-RTT-MeasList-r16", - "NR-Multi-RTT-MeasList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_NR_Multi_RTT_MeasList_r16_tags_1, - sizeof(asn_DEF_NR_Multi_RTT_MeasList_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_MeasList_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_Multi_RTT_MeasList_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_Multi_RTT_MeasList_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_MeasList_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_NR_Multi_RTT_MeasList_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_NR_Multi_RTT_MeasList_r16_1, - 1, /* Single element */ - &asn_SPC_NR_Multi_RTT_MeasList_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-Multi-RTT-ProvideAssistanceData-r16.c b/asn.1/generated/NR-Multi-RTT-ProvideAssistanceData-r16.c deleted file mode 100644 index d2f19da5..00000000 --- a/asn.1/generated/NR-Multi-RTT-ProvideAssistanceData-r16.c +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-Multi-RTT-ProvideAssistanceData-r16.h" - -static int -memb_nr_SelectedDL_PRS_IndexList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 4)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_nr_SelectedDL_PRS_IndexList_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_SelectedDL_PRS_IndexList_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_nr_SelectedDL_PRS_IndexList_r16_3[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NR_SelectedDL_PRS_PerFreq_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_nr_SelectedDL_PRS_IndexList_r16_specs_3 = { - sizeof(struct NR_Multi_RTT_ProvideAssistanceData_r16__nr_SelectedDL_PRS_IndexList_r16), - offsetof(struct NR_Multi_RTT_ProvideAssistanceData_r16__nr_SelectedDL_PRS_IndexList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nr_SelectedDL_PRS_IndexList_r16_3 = { - "nr-SelectedDL-PRS-IndexList-r16", - "nr-SelectedDL-PRS-IndexList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3, - sizeof(asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3) - /sizeof(asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3[0]) - 1, /* 1 */ - asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3, /* Same as above */ - sizeof(asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3) - /sizeof(asn_DEF_nr_SelectedDL_PRS_IndexList_r16_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_nr_SelectedDL_PRS_IndexList_r16_constr_3, SEQUENCE_OF_constraint }, - asn_MBR_nr_SelectedDL_PRS_IndexList_r16_3, - 1, /* Single element */ - &asn_SPC_nr_SelectedDL_PRS_IndexList_r16_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_Multi_RTT_ProvideAssistanceData_r16_1[] = { - { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_ProvideAssistanceData_r16, nr_DL_PRS_AssistanceData_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_AssistanceData_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-AssistanceData-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_ProvideAssistanceData_r16, nr_SelectedDL_PRS_IndexList_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_nr_SelectedDL_PRS_IndexList_r16_3, - 0, - { 0, &asn_PER_memb_nr_SelectedDL_PRS_IndexList_r16_constr_3, memb_nr_SelectedDL_PRS_IndexList_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-SelectedDL-PRS-IndexList-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_ProvideAssistanceData_r16, nr_Multi_RTT_Error_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_NR_Multi_RTT_Error_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-Multi-RTT-Error-r16" - }, -}; -static const int asn_MAP_NR_Multi_RTT_ProvideAssistanceData_r16_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_ProvideAssistanceData_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-AssistanceData-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-SelectedDL-PRS-IndexList-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-Multi-RTT-Error-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_ProvideAssistanceData_r16_specs_1 = { - sizeof(struct NR_Multi_RTT_ProvideAssistanceData_r16), - offsetof(struct NR_Multi_RTT_ProvideAssistanceData_r16, _asn_ctx), - asn_MAP_NR_Multi_RTT_ProvideAssistanceData_r16_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_NR_Multi_RTT_ProvideAssistanceData_r16_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16 = { - "NR-Multi-RTT-ProvideAssistanceData-r16", - "NR-Multi-RTT-ProvideAssistanceData-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16_tags_1, - sizeof(asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_Multi_RTT_ProvideAssistanceData_r16_1, - 3, /* Elements count */ - &asn_SPC_NR_Multi_RTT_ProvideAssistanceData_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-Multi-RTT-ProvideAssistanceData-r16.h b/asn.1/generated/NR-Multi-RTT-ProvideAssistanceData-r16.h deleted file mode 100644 index 8fb1b903..00000000 --- a/asn.1/generated/NR-Multi-RTT-ProvideAssistanceData-r16.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_Multi_RTT_ProvideAssistanceData_r16_H_ -#define _NR_Multi_RTT_ProvideAssistanceData_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct NR_DL_PRS_AssistanceData_r16; -struct NR_Multi_RTT_Error_r16; -struct NR_SelectedDL_PRS_PerFreq_r16; - -/* NR-Multi-RTT-ProvideAssistanceData-r16 */ -typedef struct NR_Multi_RTT_ProvideAssistanceData_r16 { - struct NR_DL_PRS_AssistanceData_r16 *nr_DL_PRS_AssistanceData_r16 /* OPTIONAL */; - struct NR_Multi_RTT_ProvideAssistanceData_r16__nr_SelectedDL_PRS_IndexList_r16 { - A_SEQUENCE_OF(struct NR_SelectedDL_PRS_PerFreq_r16) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *nr_SelectedDL_PRS_IndexList_r16; - struct NR_Multi_RTT_Error_r16 *nr_Multi_RTT_Error_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_Multi_RTT_ProvideAssistanceData_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_ProvideAssistanceData_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_ProvideAssistanceData_r16_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-DL-PRS-AssistanceData-r16.h" -#include "NR-Multi-RTT-Error-r16.h" -#include "NR-SelectedDL-PRS-PerFreq-r16.h" - -#endif /* _NR_Multi_RTT_ProvideAssistanceData_r16_H_ */ -#include diff --git a/asn.1/generated/NR-Multi-RTT-ProvideCapabilities-r16.c b/asn.1/generated/NR-Multi-RTT-ProvideCapabilities-r16.c deleted file mode 100644 index 3c444d5a..00000000 --- a/asn.1/generated/NR-Multi-RTT-ProvideCapabilities-r16.c +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-Multi-RTT-ProvideCapabilities-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_nr_Multi_RTT_MeasSupported_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_additionalPathsReport_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_periodicalReporting_r16_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_Multi_RTT_MeasSupported_r16_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_additionalPathsReport_r16_value2enum_6[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_additionalPathsReport_r16_enum2value_6[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_additionalPathsReport_r16_specs_6 = { - asn_MAP_additionalPathsReport_r16_value2enum_6, /* "tag" => N; sorted by tag */ - asn_MAP_additionalPathsReport_r16_enum2value_6, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_additionalPathsReport_r16_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_additionalPathsReport_r16_6 = { - "additionalPathsReport-r16", - "additionalPathsReport-r16", - &asn_OP_NativeEnumerated, - asn_DEF_additionalPathsReport_r16_tags_6, - sizeof(asn_DEF_additionalPathsReport_r16_tags_6) - /sizeof(asn_DEF_additionalPathsReport_r16_tags_6[0]) - 1, /* 1 */ - asn_DEF_additionalPathsReport_r16_tags_6, /* Same as above */ - sizeof(asn_DEF_additionalPathsReport_r16_tags_6) - /sizeof(asn_DEF_additionalPathsReport_r16_tags_6[0]), /* 2 */ - { 0, &asn_PER_type_additionalPathsReport_r16_constr_6, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_additionalPathsReport_r16_specs_6 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_periodicalReporting_r16_value2enum_8[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_periodicalReporting_r16_enum2value_8[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_periodicalReporting_r16_specs_8 = { - asn_MAP_periodicalReporting_r16_value2enum_8, /* "tag" => N; sorted by tag */ - asn_MAP_periodicalReporting_r16_enum2value_8, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_periodicalReporting_r16_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_periodicalReporting_r16_8 = { - "periodicalReporting-r16", - "periodicalReporting-r16", - &asn_OP_NativeEnumerated, - asn_DEF_periodicalReporting_r16_tags_8, - sizeof(asn_DEF_periodicalReporting_r16_tags_8) - /sizeof(asn_DEF_periodicalReporting_r16_tags_8[0]) - 1, /* 1 */ - asn_DEF_periodicalReporting_r16_tags_8, /* Same as above */ - sizeof(asn_DEF_periodicalReporting_r16_tags_8) - /sizeof(asn_DEF_periodicalReporting_r16_tags_8[0]), /* 2 */ - { 0, &asn_PER_type_periodicalReporting_r16_constr_8, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_periodicalReporting_r16_specs_8 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_Multi_RTT_ProvideCapabilities_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16, nr_DL_PRS_MeasCapability_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_MeasCapability_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-PRS-MeasCapability-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16, nr_UL_SRS_MeasCapability_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_UL_SRS_MeasCapability_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-UL-SRS-MeasCapability-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16, nr_Multi_RTT_MeasSupported_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_nr_Multi_RTT_MeasSupported_r16_constr_4, memb_nr_Multi_RTT_MeasSupported_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-Multi-RTT-MeasSupported-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16, additionalPathsReport_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_additionalPathsReport_r16_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "additionalPathsReport-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16, periodicalReporting_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_periodicalReporting_r16_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "periodicalReporting-r16" - }, -}; -static const int asn_MAP_NR_Multi_RTT_ProvideCapabilities_r16_oms_1[] = { 3, 4 }; -static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_ProvideCapabilities_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-MeasCapability-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-UL-SRS-MeasCapability-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-Multi-RTT-MeasSupported-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* additionalPathsReport-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* periodicalReporting-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_ProvideCapabilities_r16_specs_1 = { - sizeof(struct NR_Multi_RTT_ProvideCapabilities_r16), - offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16, _asn_ctx), - asn_MAP_NR_Multi_RTT_ProvideCapabilities_r16_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_NR_Multi_RTT_ProvideCapabilities_r16_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16 = { - "NR-Multi-RTT-ProvideCapabilities-r16", - "NR-Multi-RTT-ProvideCapabilities-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16_tags_1, - sizeof(asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_Multi_RTT_ProvideCapabilities_r16_1, - 5, /* Elements count */ - &asn_SPC_NR_Multi_RTT_ProvideCapabilities_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-Multi-RTT-ProvideCapabilities-r16.h b/asn.1/generated/NR-Multi-RTT-ProvideCapabilities-r16.h deleted file mode 100644 index 28218ffc..00000000 --- a/asn.1/generated/NR-Multi-RTT-ProvideCapabilities-r16.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_Multi_RTT_ProvideCapabilities_r16_H_ -#define _NR_Multi_RTT_ProvideCapabilities_r16_H_ - - -#include - -/* Including external dependencies */ -#include "NR-DL-PRS-MeasCapability-r16.h" -#include "NR-UL-SRS-MeasCapability-r16.h" -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum NR_Multi_RTT_ProvideCapabilities_r16__nr_Multi_RTT_MeasSupported_r16 { - NR_Multi_RTT_ProvideCapabilities_r16__nr_Multi_RTT_MeasSupported_r16_prsrsrpSup = 0 -} e_NR_Multi_RTT_ProvideCapabilities_r16__nr_Multi_RTT_MeasSupported_r16; -typedef enum NR_Multi_RTT_ProvideCapabilities_r16__additionalPathsReport_r16 { - NR_Multi_RTT_ProvideCapabilities_r16__additionalPathsReport_r16_supported = 0 -} e_NR_Multi_RTT_ProvideCapabilities_r16__additionalPathsReport_r16; -typedef enum NR_Multi_RTT_ProvideCapabilities_r16__periodicalReporting_r16 { - NR_Multi_RTT_ProvideCapabilities_r16__periodicalReporting_r16_supported = 0 -} e_NR_Multi_RTT_ProvideCapabilities_r16__periodicalReporting_r16; - -/* NR-Multi-RTT-ProvideCapabilities-r16 */ -typedef struct NR_Multi_RTT_ProvideCapabilities_r16 { - NR_DL_PRS_MeasCapability_r16_t nr_DL_PRS_MeasCapability_r16; - NR_UL_SRS_MeasCapability_r16_t nr_UL_SRS_MeasCapability_r16; - BIT_STRING_t nr_Multi_RTT_MeasSupported_r16; - long *additionalPathsReport_r16 /* OPTIONAL */; - long *periodicalReporting_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_Multi_RTT_ProvideCapabilities_r16_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_additionalPathsReport_r16_6; // (Use -fall-defs-global to expose) */ -/* extern asn_TYPE_descriptor_t asn_DEF_periodicalReporting_r16_8; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_ProvideCapabilities_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_ProvideCapabilities_r16_1[5]; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_Multi_RTT_ProvideCapabilities_r16_H_ */ -#include diff --git a/asn.1/generated/NR-Multi-RTT-ProvideLocationInformation-r16.c b/asn.1/generated/NR-Multi-RTT-ProvideLocationInformation-r16.c deleted file mode 100644 index 9262d815..00000000 --- a/asn.1/generated/NR-Multi-RTT-ProvideLocationInformation-r16.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-Multi-RTT-ProvideLocationInformation-r16.h" - -asn_TYPE_member_t asn_MBR_NR_Multi_RTT_ProvideLocationInformation_r16_1[] = { - { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_ProvideLocationInformation_r16, nr_Multi_RTT_SignalMeasurementInformation_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-Multi-RTT-SignalMeasurementInformation-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_ProvideLocationInformation_r16, nr_Multi_RTT_Error_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_NR_Multi_RTT_Error_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-Multi-RTT-Error-r16" - }, -}; -static const int asn_MAP_NR_Multi_RTT_ProvideLocationInformation_r16_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_ProvideLocationInformation_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-Multi-RTT-SignalMeasurementInformation-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-Multi-RTT-Error-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_ProvideLocationInformation_r16_specs_1 = { - sizeof(struct NR_Multi_RTT_ProvideLocationInformation_r16), - offsetof(struct NR_Multi_RTT_ProvideLocationInformation_r16, _asn_ctx), - asn_MAP_NR_Multi_RTT_ProvideLocationInformation_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_NR_Multi_RTT_ProvideLocationInformation_r16_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16 = { - "NR-Multi-RTT-ProvideLocationInformation-r16", - "NR-Multi-RTT-ProvideLocationInformation-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16_tags_1, - sizeof(asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_Multi_RTT_ProvideLocationInformation_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_Multi_RTT_ProvideLocationInformation_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-Multi-RTT-ProvideLocationInformation-r16.h b/asn.1/generated/NR-Multi-RTT-ProvideLocationInformation-r16.h deleted file mode 100644 index 2d512f22..00000000 --- a/asn.1/generated/NR-Multi-RTT-ProvideLocationInformation-r16.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_Multi_RTT_ProvideLocationInformation_r16_H_ -#define _NR_Multi_RTT_ProvideLocationInformation_r16_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct NR_Multi_RTT_SignalMeasurementInformation_r16; -struct NR_Multi_RTT_Error_r16; - -/* NR-Multi-RTT-ProvideLocationInformation-r16 */ -typedef struct NR_Multi_RTT_ProvideLocationInformation_r16 { - struct NR_Multi_RTT_SignalMeasurementInformation_r16 *nr_Multi_RTT_SignalMeasurementInformation_r16 /* OPTIONAL */; - struct NR_Multi_RTT_Error_r16 *nr_Multi_RTT_Error_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_Multi_RTT_ProvideLocationInformation_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_ProvideLocationInformation_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_ProvideLocationInformation_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-Multi-RTT-SignalMeasurementInformation-r16.h" -#include "NR-Multi-RTT-Error-r16.h" - -#endif /* _NR_Multi_RTT_ProvideLocationInformation_r16_H_ */ -#include diff --git a/asn.1/generated/NR-Multi-RTT-ReportConfig-r16.c b/asn.1/generated/NR-Multi-RTT-ReportConfig-r16.c deleted file mode 100644 index bd2aa0d2..00000000 --- a/asn.1/generated/NR-Multi-RTT-ReportConfig-r16.c +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-Multi-RTT-ReportConfig-r16.h" - -static int -memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_maxDL_PRS_RxTxTimeDiffMeasPerTRP_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 4)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_timingReportingGranularityFactor_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value == 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_maxDL_PRS_RxTxTimeDiffMeasPerTRP_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 1, 4 } /* (1..4) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_timingReportingGranularityFactor_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 1, 1 } /* (1..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_Multi_RTT_ReportConfig_r16_1[] = { - { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_ReportConfig_r16, maxDL_PRS_RSRP_MeasurementsPerTRP_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r16_constr_2, memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r16_constraint_1 }, - 0, 0, /* No default value */ - "maxDL-PRS-RSRP-MeasurementsPerTRP-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_ReportConfig_r16, maxDL_PRS_RxTxTimeDiffMeasPerTRP_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_maxDL_PRS_RxTxTimeDiffMeasPerTRP_r16_constr_3, memb_maxDL_PRS_RxTxTimeDiffMeasPerTRP_r16_constraint_1 }, - 0, 0, /* No default value */ - "maxDL-PRS-RxTxTimeDiffMeasPerTRP-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_ReportConfig_r16, timingReportingGranularityFactor_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_timingReportingGranularityFactor_r16_constr_4, memb_timingReportingGranularityFactor_r16_constraint_1 }, - 0, 0, /* No default value */ - "timingReportingGranularityFactor-r16" - }, -}; -static const int asn_MAP_NR_Multi_RTT_ReportConfig_r16_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_ReportConfig_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_ReportConfig_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxDL-PRS-RSRP-MeasurementsPerTRP-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxDL-PRS-RxTxTimeDiffMeasPerTRP-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* timingReportingGranularityFactor-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_ReportConfig_r16_specs_1 = { - sizeof(struct NR_Multi_RTT_ReportConfig_r16), - offsetof(struct NR_Multi_RTT_ReportConfig_r16, _asn_ctx), - asn_MAP_NR_Multi_RTT_ReportConfig_r16_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_NR_Multi_RTT_ReportConfig_r16_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_ReportConfig_r16 = { - "NR-Multi-RTT-ReportConfig-r16", - "NR-Multi-RTT-ReportConfig-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_Multi_RTT_ReportConfig_r16_tags_1, - sizeof(asn_DEF_NR_Multi_RTT_ReportConfig_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_ReportConfig_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_Multi_RTT_ReportConfig_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_Multi_RTT_ReportConfig_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_ReportConfig_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_Multi_RTT_ReportConfig_r16_1, - 3, /* Elements count */ - &asn_SPC_NR_Multi_RTT_ReportConfig_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-Multi-RTT-ReportConfig-r16.h b/asn.1/generated/NR-Multi-RTT-ReportConfig-r16.h deleted file mode 100644 index a777d5cb..00000000 --- a/asn.1/generated/NR-Multi-RTT-ReportConfig-r16.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_Multi_RTT_ReportConfig_r16_H_ -#define _NR_Multi_RTT_ReportConfig_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* NR-Multi-RTT-ReportConfig-r16 */ -typedef struct NR_Multi_RTT_ReportConfig_r16 { - long *maxDL_PRS_RSRP_MeasurementsPerTRP_r16 /* OPTIONAL */; - long *maxDL_PRS_RxTxTimeDiffMeasPerTRP_r16 /* OPTIONAL */; - long *timingReportingGranularityFactor_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_Multi_RTT_ReportConfig_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_ReportConfig_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_ReportConfig_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_ReportConfig_r16_1[3]; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_Multi_RTT_ReportConfig_r16_H_ */ -#include diff --git a/asn.1/generated/NR-Multi-RTT-RequestAssistanceData-r16.c b/asn.1/generated/NR-Multi-RTT-RequestAssistanceData-r16.c deleted file mode 100644 index fb173480..00000000 --- a/asn.1/generated/NR-Multi-RTT-RequestAssistanceData-r16.c +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-Multi-RTT-RequestAssistanceData-r16.h" - -static int -memb_nr_AdType_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_nr_AdType_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_Multi_RTT_RequestAssistanceData_r16_1[] = { - { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_RequestAssistanceData_r16, nr_PhysCellId_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_PhysCellId_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-PhysCellId-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_RequestAssistanceData_r16, nr_AdType_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_nr_AdType_r16_constr_3, memb_nr_AdType_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-AdType-r16" - }, -}; -static const int asn_MAP_NR_Multi_RTT_RequestAssistanceData_r16_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_RequestAssistanceData_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-PhysCellId-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-AdType-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_RequestAssistanceData_r16_specs_1 = { - sizeof(struct NR_Multi_RTT_RequestAssistanceData_r16), - offsetof(struct NR_Multi_RTT_RequestAssistanceData_r16, _asn_ctx), - asn_MAP_NR_Multi_RTT_RequestAssistanceData_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_NR_Multi_RTT_RequestAssistanceData_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16 = { - "NR-Multi-RTT-RequestAssistanceData-r16", - "NR-Multi-RTT-RequestAssistanceData-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16_tags_1, - sizeof(asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_Multi_RTT_RequestAssistanceData_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_Multi_RTT_RequestAssistanceData_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-Multi-RTT-RequestAssistanceData-r16.h b/asn.1/generated/NR-Multi-RTT-RequestAssistanceData-r16.h deleted file mode 100644 index a79b8160..00000000 --- a/asn.1/generated/NR-Multi-RTT-RequestAssistanceData-r16.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_Multi_RTT_RequestAssistanceData_r16_H_ -#define _NR_Multi_RTT_RequestAssistanceData_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum NR_Multi_RTT_RequestAssistanceData_r16__nr_AdType_r16 { - NR_Multi_RTT_RequestAssistanceData_r16__nr_AdType_r16_dl_prs = 0, - NR_Multi_RTT_RequestAssistanceData_r16__nr_AdType_r16_ul_srs = 1 -} e_NR_Multi_RTT_RequestAssistanceData_r16__nr_AdType_r16; - -/* Forward declarations */ -struct NR_PhysCellId_r16; - -/* NR-Multi-RTT-RequestAssistanceData-r16 */ -typedef struct NR_Multi_RTT_RequestAssistanceData_r16 { - struct NR_PhysCellId_r16 *nr_PhysCellId_r16 /* OPTIONAL */; - BIT_STRING_t nr_AdType_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_Multi_RTT_RequestAssistanceData_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_RequestAssistanceData_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_RequestAssistanceData_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-PhysCellId-r16.h" - -#endif /* _NR_Multi_RTT_RequestAssistanceData_r16_H_ */ -#include diff --git a/asn.1/generated/NR-Multi-RTT-RequestCapabilities-r16.c b/asn.1/generated/NR-Multi-RTT-RequestCapabilities-r16.c deleted file mode 100644 index 93d92a02..00000000 --- a/asn.1/generated/NR-Multi-RTT-RequestCapabilities-r16.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-Multi-RTT-RequestCapabilities-r16.h" - -static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_RequestCapabilities_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_RequestCapabilities_r16_specs_1 = { - sizeof(struct NR_Multi_RTT_RequestCapabilities_r16), - offsetof(struct NR_Multi_RTT_RequestCapabilities_r16, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_RequestCapabilities_r16 = { - "NR-Multi-RTT-RequestCapabilities-r16", - "NR-Multi-RTT-RequestCapabilities-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_Multi_RTT_RequestCapabilities_r16_tags_1, - sizeof(asn_DEF_NR_Multi_RTT_RequestCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_RequestCapabilities_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_Multi_RTT_RequestCapabilities_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_Multi_RTT_RequestCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_RequestCapabilities_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_NR_Multi_RTT_RequestCapabilities_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-Multi-RTT-RequestLocationInformation-r16.c b/asn.1/generated/NR-Multi-RTT-RequestLocationInformation-r16.c deleted file mode 100644 index 7ab8a8f8..00000000 --- a/asn.1/generated/NR-Multi-RTT-RequestLocationInformation-r16.c +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-Multi-RTT-RequestLocationInformation-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_nr_RequestedMeasurements_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_additionalPaths_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_RequestedMeasurements_r16_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_additionalPaths_r16_value2enum_6[] = { - { 0, 9, "requested" } -}; -static const unsigned int asn_MAP_additionalPaths_r16_enum2value_6[] = { - 0 /* requested(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_additionalPaths_r16_specs_6 = { - asn_MAP_additionalPaths_r16_value2enum_6, /* "tag" => N; sorted by tag */ - asn_MAP_additionalPaths_r16_enum2value_6, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_additionalPaths_r16_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_additionalPaths_r16_6 = { - "additionalPaths-r16", - "additionalPaths-r16", - &asn_OP_NativeEnumerated, - asn_DEF_additionalPaths_r16_tags_6, - sizeof(asn_DEF_additionalPaths_r16_tags_6) - /sizeof(asn_DEF_additionalPaths_r16_tags_6[0]) - 1, /* 1 */ - asn_DEF_additionalPaths_r16_tags_6, /* Same as above */ - sizeof(asn_DEF_additionalPaths_r16_tags_6) - /sizeof(asn_DEF_additionalPaths_r16_tags_6[0]), /* 2 */ - { 0, &asn_PER_type_additionalPaths_r16_constr_6, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_additionalPaths_r16_specs_6 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_Multi_RTT_RequestLocationInformation_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16, nr_RequestedMeasurements_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_nr_RequestedMeasurements_r16_constr_2, memb_nr_RequestedMeasurements_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-RequestedMeasurements-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16, nr_AssistanceAvailability_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-AssistanceAvailability-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16, nr_Multi_RTT_ReportConfig_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_Multi_RTT_ReportConfig_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-Multi-RTT-ReportConfig-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16, additionalPaths_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_additionalPaths_r16_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "additionalPaths-r16" - }, -}; -static const int asn_MAP_NR_Multi_RTT_RequestLocationInformation_r16_oms_1[] = { 3 }; -static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_RequestLocationInformation_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-RequestedMeasurements-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-AssistanceAvailability-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-Multi-RTT-ReportConfig-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* additionalPaths-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_RequestLocationInformation_r16_specs_1 = { - sizeof(struct NR_Multi_RTT_RequestLocationInformation_r16), - offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16, _asn_ctx), - asn_MAP_NR_Multi_RTT_RequestLocationInformation_r16_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_NR_Multi_RTT_RequestLocationInformation_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16 = { - "NR-Multi-RTT-RequestLocationInformation-r16", - "NR-Multi-RTT-RequestLocationInformation-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16_tags_1, - sizeof(asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_Multi_RTT_RequestLocationInformation_r16_1, - 4, /* Elements count */ - &asn_SPC_NR_Multi_RTT_RequestLocationInformation_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-Multi-RTT-RequestLocationInformation-r16.h b/asn.1/generated/NR-Multi-RTT-RequestLocationInformation-r16.h deleted file mode 100644 index 4a645956..00000000 --- a/asn.1/generated/NR-Multi-RTT-RequestLocationInformation-r16.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_Multi_RTT_RequestLocationInformation_r16_H_ -#define _NR_Multi_RTT_RequestLocationInformation_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include "NR-Multi-RTT-ReportConfig-r16.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum NR_Multi_RTT_RequestLocationInformation_r16__nr_RequestedMeasurements_r16 { - NR_Multi_RTT_RequestLocationInformation_r16__nr_RequestedMeasurements_r16_prsrsrpReq = 0 -} e_NR_Multi_RTT_RequestLocationInformation_r16__nr_RequestedMeasurements_r16; -typedef enum NR_Multi_RTT_RequestLocationInformation_r16__additionalPaths_r16 { - NR_Multi_RTT_RequestLocationInformation_r16__additionalPaths_r16_requested = 0 -} e_NR_Multi_RTT_RequestLocationInformation_r16__additionalPaths_r16; - -/* NR-Multi-RTT-RequestLocationInformation-r16 */ -typedef struct NR_Multi_RTT_RequestLocationInformation_r16 { - BIT_STRING_t nr_RequestedMeasurements_r16; - BOOLEAN_t nr_AssistanceAvailability_r16; - NR_Multi_RTT_ReportConfig_r16_t nr_Multi_RTT_ReportConfig_r16; - long *additionalPaths_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_Multi_RTT_RequestLocationInformation_r16_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_additionalPaths_r16_6; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_RequestLocationInformation_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_RequestLocationInformation_r16_1[4]; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_Multi_RTT_RequestLocationInformation_r16_H_ */ -#include diff --git a/asn.1/generated/NR-Multi-RTT-SignalMeasurementInformation-r16.c b/asn.1/generated/NR-Multi-RTT-SignalMeasurementInformation-r16.c deleted file mode 100644 index 9c1ac561..00000000 --- a/asn.1/generated/NR-Multi-RTT-SignalMeasurementInformation-r16.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-Multi-RTT-SignalMeasurementInformation-r16.h" - -asn_TYPE_member_t asn_MBR_NR_Multi_RTT_SignalMeasurementInformation_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_SignalMeasurementInformation_r16, nr_Multi_RTT_MeasList_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_Multi_RTT_MeasList_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-Multi-RTT-MeasList-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_SignalMeasurementInformation_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-Multi-RTT-MeasList-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_SignalMeasurementInformation_r16_specs_1 = { - sizeof(struct NR_Multi_RTT_SignalMeasurementInformation_r16), - offsetof(struct NR_Multi_RTT_SignalMeasurementInformation_r16, _asn_ctx), - asn_MAP_NR_Multi_RTT_SignalMeasurementInformation_r16_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16 = { - "NR-Multi-RTT-SignalMeasurementInformation-r16", - "NR-Multi-RTT-SignalMeasurementInformation-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16_tags_1, - sizeof(asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_Multi_RTT_SignalMeasurementInformation_r16_1, - 1, /* Elements count */ - &asn_SPC_NR_Multi_RTT_SignalMeasurementInformation_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-Multi-RTT-SignalMeasurementInformation-r16.h b/asn.1/generated/NR-Multi-RTT-SignalMeasurementInformation-r16.h deleted file mode 100644 index 843e4fd1..00000000 --- a/asn.1/generated/NR-Multi-RTT-SignalMeasurementInformation-r16.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_Multi_RTT_SignalMeasurementInformation_r16_H_ -#define _NR_Multi_RTT_SignalMeasurementInformation_r16_H_ - - -#include - -/* Including external dependencies */ -#include "NR-Multi-RTT-MeasList-r16.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* NR-Multi-RTT-SignalMeasurementInformation-r16 */ -typedef struct NR_Multi_RTT_SignalMeasurementInformation_r16 { - NR_Multi_RTT_MeasList_r16_t nr_Multi_RTT_MeasList_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_Multi_RTT_SignalMeasurementInformation_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_SignalMeasurementInformation_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_SignalMeasurementInformation_r16_1[1]; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_Multi_RTT_SignalMeasurementInformation_r16_H_ */ -#include diff --git a/asn.1/generated/NR-Multi-RTT-TargetDeviceErrorCauses-r16.c b/asn.1/generated/NR-Multi-RTT-TargetDeviceErrorCauses-r16.c deleted file mode 100644 index 1a6e0a1b..00000000 --- a/asn.1/generated/NR-Multi-RTT-TargetDeviceErrorCauses-r16.c +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-Multi-RTT-TargetDeviceErrorCauses-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_r16_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 26, "dl-assistance-data-missing" }, - { 2, 21, "unableToMeasureAnyTRP" }, - { 3, 44, "attemptedButUnableToMeasureSomeNeighbourTRPs" }, - { 4, 28, "ul-srs-configuration-missing" }, - { 5, 23, "unableToTransmit-ul-prs" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_r16_enum2value_2[] = { - 3, /* attemptedButUnableToMeasureSomeNeighbourTRPs(3) */ - 1, /* dl-assistance-data-missing(1) */ - 4, /* ul-srs-configuration-missing(4) */ - 2, /* unableToMeasureAnyTRP(2) */ - 5, /* unableToTransmit-ul-prs(5) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_r16_specs_2 = { - asn_MAP_cause_r16_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_r16_enum2value_2, /* N => "tag"; sorted by N */ - 6, /* Number of elements in the maps */ - 7, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_r16_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_r16_2 = { - "cause-r16", - "cause-r16", - &asn_OP_NativeEnumerated, - asn_DEF_cause_r16_tags_2, - sizeof(asn_DEF_cause_r16_tags_2) - /sizeof(asn_DEF_cause_r16_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_r16_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_r16_tags_2) - /sizeof(asn_DEF_cause_r16_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_r16_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_r16_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_Multi_RTT_TargetDeviceErrorCauses_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_TargetDeviceErrorCauses_r16, cause_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_r16_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_TargetDeviceErrorCauses_r16, nr_PRS_RSRPMeasurementNotPossible_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-PRS-RSRPMeasurementNotPossible-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_TargetDeviceErrorCauses_r16, nr_UERxTxMeasurementNotPossible_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-UERxTxMeasurementNotPossible-r16" - }, -}; -static const int asn_MAP_NR_Multi_RTT_TargetDeviceErrorCauses_r16_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_TargetDeviceErrorCauses_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PRS-RSRPMeasurementNotPossible-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-UERxTxMeasurementNotPossible-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_TargetDeviceErrorCauses_r16_specs_1 = { - sizeof(struct NR_Multi_RTT_TargetDeviceErrorCauses_r16), - offsetof(struct NR_Multi_RTT_TargetDeviceErrorCauses_r16, _asn_ctx), - asn_MAP_NR_Multi_RTT_TargetDeviceErrorCauses_r16_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_NR_Multi_RTT_TargetDeviceErrorCauses_r16_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16 = { - "NR-Multi-RTT-TargetDeviceErrorCauses-r16", - "NR-Multi-RTT-TargetDeviceErrorCauses-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16_tags_1, - sizeof(asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16_tags_1) - /sizeof(asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_Multi_RTT_TargetDeviceErrorCauses_r16_1, - 3, /* Elements count */ - &asn_SPC_NR_Multi_RTT_TargetDeviceErrorCauses_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-Multi-RTT-TargetDeviceErrorCauses-r16.h b/asn.1/generated/NR-Multi-RTT-TargetDeviceErrorCauses-r16.h deleted file mode 100644 index 444f1f96..00000000 --- a/asn.1/generated/NR-Multi-RTT-TargetDeviceErrorCauses-r16.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_Multi_RTT_TargetDeviceErrorCauses_r16_H_ -#define _NR_Multi_RTT_TargetDeviceErrorCauses_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum NR_Multi_RTT_TargetDeviceErrorCauses_r16__cause_r16 { - NR_Multi_RTT_TargetDeviceErrorCauses_r16__cause_r16_undefined = 0, - NR_Multi_RTT_TargetDeviceErrorCauses_r16__cause_r16_dl_assistance_data_missing = 1, - NR_Multi_RTT_TargetDeviceErrorCauses_r16__cause_r16_unableToMeasureAnyTRP = 2, - NR_Multi_RTT_TargetDeviceErrorCauses_r16__cause_r16_attemptedButUnableToMeasureSomeNeighbourTRPs = 3, - NR_Multi_RTT_TargetDeviceErrorCauses_r16__cause_r16_ul_srs_configuration_missing = 4, - NR_Multi_RTT_TargetDeviceErrorCauses_r16__cause_r16_unableToTransmit_ul_prs = 5 - /* - * Enumeration is extensible - */ -} e_NR_Multi_RTT_TargetDeviceErrorCauses_r16__cause_r16; - -/* NR-Multi-RTT-TargetDeviceErrorCauses-r16 */ -typedef struct NR_Multi_RTT_TargetDeviceErrorCauses_r16 { - long cause_r16; - NULL_t *nr_PRS_RSRPMeasurementNotPossible_r16 /* OPTIONAL */; - NULL_t *nr_UERxTxMeasurementNotPossible_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_Multi_RTT_TargetDeviceErrorCauses_r16_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_cause_r16_2; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_TargetDeviceErrorCauses_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_TargetDeviceErrorCauses_r16_1[3]; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_Multi_RTT_TargetDeviceErrorCauses_r16_H_ */ -#include diff --git a/asn.1/generated/NR-PhysCellId-r16.c b/asn.1/generated/NR-PhysCellId-r16.c deleted file mode 100644 index b68c739c..00000000 --- a/asn.1/generated/NR-PhysCellId-r16.c +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-PhysCellId-r16.h" - -static int -memb_physCellId_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1007)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_physCellId_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1007 } /* (0..1007) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_PhysCellId_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_PhysCellId_r16, physCellId_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_physCellId_r16_constr_2, memb_physCellId_r16_constraint_1 }, - 0, 0, /* No default value */ - "physCellId-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_PhysCellId_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_PhysCellId_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* physCellId-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_PhysCellId_r16_specs_1 = { - sizeof(struct NR_PhysCellId_r16), - offsetof(struct NR_PhysCellId_r16, _asn_ctx), - asn_MAP_NR_PhysCellId_r16_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_PhysCellId_r16 = { - "NR-PhysCellId-r16", - "NR-PhysCellId-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_PhysCellId_r16_tags_1, - sizeof(asn_DEF_NR_PhysCellId_r16_tags_1) - /sizeof(asn_DEF_NR_PhysCellId_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_PhysCellId_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_PhysCellId_r16_tags_1) - /sizeof(asn_DEF_NR_PhysCellId_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_PhysCellId_r16_1, - 1, /* Elements count */ - &asn_SPC_NR_PhysCellId_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-PhysCellId-r16.h b/asn.1/generated/NR-PhysCellId-r16.h deleted file mode 100644 index aff5fe43..00000000 --- a/asn.1/generated/NR-PhysCellId-r16.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_PhysCellId_r16_H_ -#define _NR_PhysCellId_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* NR-PhysCellId-r16 */ -typedef struct NR_PhysCellId_r16 { - long physCellId_r16; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_PhysCellId_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_PhysCellId_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_PhysCellId_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_PhysCellId_r16_1[1]; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_PhysCellId_r16_H_ */ -#include diff --git a/asn.1/generated/NR-PositionCalculationAssistanceData-r16.c b/asn.1/generated/NR-PositionCalculationAssistanceData-r16.c deleted file mode 100644 index c17da40d..00000000 --- a/asn.1/generated/NR-PositionCalculationAssistanceData-r16.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-PositionCalculationAssistanceData-r16.h" - -asn_TYPE_member_t asn_MBR_NR_PositionCalculationAssistanceData_r16_1[] = { - { ATF_POINTER, 3, offsetof(struct NR_PositionCalculationAssistanceData_r16, nr_trp_LocationInfo_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_TRP_LocationInfo_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-trp-LocationInfo-r16" - }, - { ATF_POINTER, 2, offsetof(struct NR_PositionCalculationAssistanceData_r16, nr_dl_prs_BeamInfo_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_PRS_BeamInfo_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-dl-prs-BeamInfo-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_PositionCalculationAssistanceData_r16, nr_rtd_Info_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_RTD_Info_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-rtd-Info-r16" - }, -}; -static const int asn_MAP_NR_PositionCalculationAssistanceData_r16_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_NR_PositionCalculationAssistanceData_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_PositionCalculationAssistanceData_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-trp-LocationInfo-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-dl-prs-BeamInfo-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-rtd-Info-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_PositionCalculationAssistanceData_r16_specs_1 = { - sizeof(struct NR_PositionCalculationAssistanceData_r16), - offsetof(struct NR_PositionCalculationAssistanceData_r16, _asn_ctx), - asn_MAP_NR_PositionCalculationAssistanceData_r16_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_NR_PositionCalculationAssistanceData_r16_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_PositionCalculationAssistanceData_r16 = { - "NR-PositionCalculationAssistanceData-r16", - "NR-PositionCalculationAssistanceData-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_PositionCalculationAssistanceData_r16_tags_1, - sizeof(asn_DEF_NR_PositionCalculationAssistanceData_r16_tags_1) - /sizeof(asn_DEF_NR_PositionCalculationAssistanceData_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_PositionCalculationAssistanceData_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_PositionCalculationAssistanceData_r16_tags_1) - /sizeof(asn_DEF_NR_PositionCalculationAssistanceData_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_PositionCalculationAssistanceData_r16_1, - 3, /* Elements count */ - &asn_SPC_NR_PositionCalculationAssistanceData_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-PositionCalculationAssistanceData-r16.h b/asn.1/generated/NR-PositionCalculationAssistanceData-r16.h deleted file mode 100644 index 9550ea89..00000000 --- a/asn.1/generated/NR-PositionCalculationAssistanceData-r16.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_PositionCalculationAssistanceData_r16_H_ -#define _NR_PositionCalculationAssistanceData_r16_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct NR_TRP_LocationInfo_r16; -struct NR_DL_PRS_BeamInfo_r16; -struct NR_RTD_Info_r16; - -/* NR-PositionCalculationAssistanceData-r16 */ -typedef struct NR_PositionCalculationAssistanceData_r16 { - struct NR_TRP_LocationInfo_r16 *nr_trp_LocationInfo_r16 /* OPTIONAL */; - struct NR_DL_PRS_BeamInfo_r16 *nr_dl_prs_BeamInfo_r16 /* OPTIONAL */; - struct NR_RTD_Info_r16 *nr_rtd_Info_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_PositionCalculationAssistanceData_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_PositionCalculationAssistanceData_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_PositionCalculationAssistanceData_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_PositionCalculationAssistanceData_r16_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-TRP-LocationInfo-r16.h" -#include "NR-DL-PRS-BeamInfo-r16.h" -#include "NR-RTD-Info-r16.h" - -#endif /* _NR_PositionCalculationAssistanceData_r16_H_ */ -#include diff --git a/asn.1/generated/NR-RTD-Info-r16.c b/asn.1/generated/NR-RTD-Info-r16.c deleted file mode 100644 index 544daede..00000000 --- a/asn.1/generated/NR-RTD-Info-r16.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-RTD-Info-r16.h" - -asn_TYPE_member_t asn_MBR_NR_RTD_Info_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_RTD_Info_r16, referenceTRP_RTD_Info_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ReferenceTRP_RTD_Info_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceTRP-RTD-Info-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_RTD_Info_r16, rtd_InfoList_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RTD_InfoList_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rtd-InfoList-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_RTD_Info_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_RTD_Info_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceTRP-RTD-Info-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* rtd-InfoList-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_RTD_Info_r16_specs_1 = { - sizeof(struct NR_RTD_Info_r16), - offsetof(struct NR_RTD_Info_r16, _asn_ctx), - asn_MAP_NR_RTD_Info_r16_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_RTD_Info_r16 = { - "NR-RTD-Info-r16", - "NR-RTD-Info-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_RTD_Info_r16_tags_1, - sizeof(asn_DEF_NR_RTD_Info_r16_tags_1) - /sizeof(asn_DEF_NR_RTD_Info_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_RTD_Info_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_RTD_Info_r16_tags_1) - /sizeof(asn_DEF_NR_RTD_Info_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_RTD_Info_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_RTD_Info_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-SSB-Config-r16.c b/asn.1/generated/NR-SSB-Config-r16.c deleted file mode 100644 index 44d7e0ee..00000000 --- a/asn.1/generated/NR-SSB-Config-r16.c +++ /dev/null @@ -1,875 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-SSB-Config-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_shortBitmap_r16_constraint_13(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 4)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_mediumBitmap_r16_constraint_13(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_longBitmap_r16_constraint_13(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 64)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_sf5_constraint_26(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sf10_constraint_26(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 9)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sf20_constraint_26(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 19)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sf40_constraint_26(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 39)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sf80_constraint_26(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 79)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sf160_constraint_26(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 159)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_ss_PBCH_BlockPower_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -60 && value <= 50)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_halfFrameIndex_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sfn_SSB_Offset_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_ssb_Periodicity_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_shortBitmap_r16_constr_14 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_mediumBitmap_r16_constr_15 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_longBitmap_r16_constr_16 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 64, 64 } /* (SIZE(64..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_ssb_PositionsInBurst_r16_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_ssbSubcarrierSpacing_r16_constr_17 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sf5_constr_27 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sf10_constr_28 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sf20_constr_29 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sf40_constr_30 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 39 } /* (0..39) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sf80_constr_31 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 79 } /* (0..79) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sf160_constr_32 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 159 } /* (0..159) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_periodicityAndOffset_r16_constr_26 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_duration_r16_constr_33 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ss_PBCH_BlockPower_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, -60, 50 } /* (-60..50) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_halfFrameIndex_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sfn_SSB_Offset_r16_constr_24 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_ssb_Periodicity_r16_value2enum_5[] = { - { 0, 3, "ms5" }, - { 1, 4, "ms10" }, - { 2, 4, "ms20" }, - { 3, 4, "ms40" }, - { 4, 4, "ms80" }, - { 5, 5, "ms160" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_ssb_Periodicity_r16_enum2value_5[] = { - 1, /* ms10(1) */ - 5, /* ms160(5) */ - 2, /* ms20(2) */ - 3, /* ms40(3) */ - 0, /* ms5(0) */ - 4 /* ms80(4) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_ssb_Periodicity_r16_specs_5 = { - asn_MAP_ssb_Periodicity_r16_value2enum_5, /* "tag" => N; sorted by tag */ - asn_MAP_ssb_Periodicity_r16_enum2value_5, /* N => "tag"; sorted by N */ - 6, /* Number of elements in the maps */ - 7, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_ssb_Periodicity_r16_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ssb_Periodicity_r16_5 = { - "ssb-Periodicity-r16", - "ssb-Periodicity-r16", - &asn_OP_NativeEnumerated, - asn_DEF_ssb_Periodicity_r16_tags_5, - sizeof(asn_DEF_ssb_Periodicity_r16_tags_5) - /sizeof(asn_DEF_ssb_Periodicity_r16_tags_5[0]) - 1, /* 1 */ - asn_DEF_ssb_Periodicity_r16_tags_5, /* Same as above */ - sizeof(asn_DEF_ssb_Periodicity_r16_tags_5) - /sizeof(asn_DEF_ssb_Periodicity_r16_tags_5[0]), /* 2 */ - { 0, &asn_PER_type_ssb_Periodicity_r16_constr_5, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_ssb_Periodicity_r16_specs_5 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ssb_PositionsInBurst_r16_13[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16__ssb_PositionsInBurst_r16, choice.shortBitmap_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_shortBitmap_r16_constr_14, memb_shortBitmap_r16_constraint_13 }, - 0, 0, /* No default value */ - "shortBitmap-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16__ssb_PositionsInBurst_r16, choice.mediumBitmap_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_mediumBitmap_r16_constr_15, memb_mediumBitmap_r16_constraint_13 }, - 0, 0, /* No default value */ - "mediumBitmap-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16__ssb_PositionsInBurst_r16, choice.longBitmap_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_longBitmap_r16_constr_16, memb_longBitmap_r16_constraint_13 }, - 0, 0, /* No default value */ - "longBitmap-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_ssb_PositionsInBurst_r16_tag2el_13[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* shortBitmap-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* mediumBitmap-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* longBitmap-r16 */ -}; -static asn_CHOICE_specifics_t asn_SPC_ssb_PositionsInBurst_r16_specs_13 = { - sizeof(struct NR_SSB_Config_r16__ssb_PositionsInBurst_r16), - offsetof(struct NR_SSB_Config_r16__ssb_PositionsInBurst_r16, _asn_ctx), - offsetof(struct NR_SSB_Config_r16__ssb_PositionsInBurst_r16, present), - sizeof(((struct NR_SSB_Config_r16__ssb_PositionsInBurst_r16 *)0)->present), - asn_MAP_ssb_PositionsInBurst_r16_tag2el_13, - 3, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ssb_PositionsInBurst_r16_13 = { - "ssb-PositionsInBurst-r16", - "ssb-PositionsInBurst-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_ssb_PositionsInBurst_r16_constr_13, CHOICE_constraint }, - asn_MBR_ssb_PositionsInBurst_r16_13, - 3, /* Elements count */ - &asn_SPC_ssb_PositionsInBurst_r16_specs_13 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_ssbSubcarrierSpacing_r16_value2enum_17[] = { - { 0, 5, "kHz15" }, - { 1, 5, "kHz30" }, - { 2, 5, "kHz60" }, - { 3, 6, "kHz120" }, - { 4, 6, "kHz240" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_ssbSubcarrierSpacing_r16_enum2value_17[] = { - 3, /* kHz120(3) */ - 0, /* kHz15(0) */ - 4, /* kHz240(4) */ - 1, /* kHz30(1) */ - 2 /* kHz60(2) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_ssbSubcarrierSpacing_r16_specs_17 = { - asn_MAP_ssbSubcarrierSpacing_r16_value2enum_17, /* "tag" => N; sorted by tag */ - asn_MAP_ssbSubcarrierSpacing_r16_enum2value_17, /* N => "tag"; sorted by N */ - 5, /* Number of elements in the maps */ - 6, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_ssbSubcarrierSpacing_r16_tags_17[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ssbSubcarrierSpacing_r16_17 = { - "ssbSubcarrierSpacing-r16", - "ssbSubcarrierSpacing-r16", - &asn_OP_NativeEnumerated, - asn_DEF_ssbSubcarrierSpacing_r16_tags_17, - sizeof(asn_DEF_ssbSubcarrierSpacing_r16_tags_17) - /sizeof(asn_DEF_ssbSubcarrierSpacing_r16_tags_17[0]) - 1, /* 1 */ - asn_DEF_ssbSubcarrierSpacing_r16_tags_17, /* Same as above */ - sizeof(asn_DEF_ssbSubcarrierSpacing_r16_tags_17) - /sizeof(asn_DEF_ssbSubcarrierSpacing_r16_tags_17[0]), /* 2 */ - { 0, &asn_PER_type_ssbSubcarrierSpacing_r16_constr_17, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_ssbSubcarrierSpacing_r16_specs_17 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_periodicityAndOffset_r16_26[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16, choice.sf5), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sf5_constr_27, memb_sf5_constraint_26 }, - 0, 0, /* No default value */ - "sf5" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16, choice.sf10), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sf10_constr_28, memb_sf10_constraint_26 }, - 0, 0, /* No default value */ - "sf10" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16, choice.sf20), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sf20_constr_29, memb_sf20_constraint_26 }, - 0, 0, /* No default value */ - "sf20" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16, choice.sf40), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sf40_constr_30, memb_sf40_constraint_26 }, - 0, 0, /* No default value */ - "sf40" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16, choice.sf80), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sf80_constr_31, memb_sf80_constraint_26 }, - 0, 0, /* No default value */ - "sf80" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16, choice.sf160), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sf160_constr_32, memb_sf160_constraint_26 }, - 0, 0, /* No default value */ - "sf160" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_periodicityAndOffset_r16_tag2el_26[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sf5 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sf10 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sf20 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* sf40 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* sf80 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* sf160 */ -}; -static asn_CHOICE_specifics_t asn_SPC_periodicityAndOffset_r16_specs_26 = { - sizeof(struct NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16), - offsetof(struct NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16, _asn_ctx), - offsetof(struct NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16, present), - sizeof(((struct NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16 *)0)->present), - asn_MAP_periodicityAndOffset_r16_tag2el_26, - 6, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_periodicityAndOffset_r16_26 = { - "periodicityAndOffset-r16", - "periodicityAndOffset-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_periodicityAndOffset_r16_constr_26, CHOICE_constraint }, - asn_MBR_periodicityAndOffset_r16_26, - 6, /* Elements count */ - &asn_SPC_periodicityAndOffset_r16_specs_26 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_duration_r16_value2enum_33[] = { - { 0, 3, "sf1" }, - { 1, 3, "sf2" }, - { 2, 3, "sf3" }, - { 3, 3, "sf4" }, - { 4, 3, "sf5" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_duration_r16_enum2value_33[] = { - 0, /* sf1(0) */ - 1, /* sf2(1) */ - 2, /* sf3(2) */ - 3, /* sf4(3) */ - 4 /* sf5(4) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_duration_r16_specs_33 = { - asn_MAP_duration_r16_value2enum_33, /* "tag" => N; sorted by tag */ - asn_MAP_duration_r16_enum2value_33, /* N => "tag"; sorted by N */ - 5, /* Number of elements in the maps */ - 6, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_duration_r16_tags_33[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_duration_r16_33 = { - "duration-r16", - "duration-r16", - &asn_OP_NativeEnumerated, - asn_DEF_duration_r16_tags_33, - sizeof(asn_DEF_duration_r16_tags_33) - /sizeof(asn_DEF_duration_r16_tags_33[0]) - 1, /* 1 */ - asn_DEF_duration_r16_tags_33, /* Same as above */ - sizeof(asn_DEF_duration_r16_tags_33) - /sizeof(asn_DEF_duration_r16_tags_33[0]), /* 2 */ - { 0, &asn_PER_type_duration_r16_constr_33, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_duration_r16_specs_33 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_smtc_r16_25[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16__smtc_r16, periodicityAndOffset_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_periodicityAndOffset_r16_26, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "periodicityAndOffset-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16__smtc_r16, duration_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_duration_r16_33, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "duration-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_smtc_r16_tags_25[] = { - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_smtc_r16_tag2el_25[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* periodicityAndOffset-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* duration-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_smtc_r16_specs_25 = { - sizeof(struct NR_SSB_Config_r16__smtc_r16), - offsetof(struct NR_SSB_Config_r16__smtc_r16, _asn_ctx), - asn_MAP_smtc_r16_tag2el_25, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_smtc_r16_25 = { - "smtc-r16", - "smtc-r16", - &asn_OP_SEQUENCE, - asn_DEF_smtc_r16_tags_25, - sizeof(asn_DEF_smtc_r16_tags_25) - /sizeof(asn_DEF_smtc_r16_tags_25[0]) - 1, /* 1 */ - asn_DEF_smtc_r16_tags_25, /* Same as above */ - sizeof(asn_DEF_smtc_r16_tags_25) - /sizeof(asn_DEF_smtc_r16_tags_25[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_smtc_r16_25, - 2, /* Elements count */ - &asn_SPC_smtc_r16_specs_25 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_SSB_Config_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16, trp_ID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TRP_ID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "trp-ID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16, ss_PBCH_BlockPower_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ss_PBCH_BlockPower_r16_constr_3, memb_ss_PBCH_BlockPower_r16_constraint_1 }, - 0, 0, /* No default value */ - "ss-PBCH-BlockPower-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16, halfFrameIndex_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_halfFrameIndex_r16_constr_4, memb_halfFrameIndex_r16_constraint_1 }, - 0, 0, /* No default value */ - "halfFrameIndex-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16, ssb_Periodicity_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ssb_Periodicity_r16_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ssb-Periodicity-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_SSB_Config_r16, ssb_PositionsInBurst_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_ssb_PositionsInBurst_r16_13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ssb-PositionsInBurst-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16, ssbSubcarrierSpacing_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ssbSubcarrierSpacing_r16_17, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ssbSubcarrierSpacing-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16, sfn_SSB_Offset_r16), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sfn_SSB_Offset_r16_constr_24, memb_sfn_SSB_Offset_r16_constraint_1 }, - 0, 0, /* No default value */ - "sfn-SSB-Offset-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16, smtc_r16), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - 0, - &asn_DEF_smtc_r16_25, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "smtc-r16" - }, -}; -static const int asn_MAP_NR_SSB_Config_r16_oms_1[] = { 4 }; -static const ber_tlv_tag_t asn_DEF_NR_SSB_Config_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_SSB_Config_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* trp-ID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ss-PBCH-BlockPower-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* halfFrameIndex-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ssb-Periodicity-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ssb-PositionsInBurst-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ssbSubcarrierSpacing-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* sfn-SSB-Offset-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* smtc-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_SSB_Config_r16_specs_1 = { - sizeof(struct NR_SSB_Config_r16), - offsetof(struct NR_SSB_Config_r16, _asn_ctx), - asn_MAP_NR_SSB_Config_r16_tag2el_1, - 8, /* Count of tags in the map */ - asn_MAP_NR_SSB_Config_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_SSB_Config_r16 = { - "NR-SSB-Config-r16", - "NR-SSB-Config-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_SSB_Config_r16_tags_1, - sizeof(asn_DEF_NR_SSB_Config_r16_tags_1) - /sizeof(asn_DEF_NR_SSB_Config_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_SSB_Config_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_SSB_Config_r16_tags_1) - /sizeof(asn_DEF_NR_SSB_Config_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_SSB_Config_r16_1, - 8, /* Elements count */ - &asn_SPC_NR_SSB_Config_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-SSB-Config-r16.h b/asn.1/generated/NR-SSB-Config-r16.h deleted file mode 100644 index cf531731..00000000 --- a/asn.1/generated/NR-SSB-Config-r16.h +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_SSB_Config_r16_H_ -#define _NR_SSB_Config_r16_H_ - - -#include - -/* Including external dependencies */ -#include "TRP-ID-r16.h" -#include -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum NR_SSB_Config_r16__ssb_Periodicity_r16 { - NR_SSB_Config_r16__ssb_Periodicity_r16_ms5 = 0, - NR_SSB_Config_r16__ssb_Periodicity_r16_ms10 = 1, - NR_SSB_Config_r16__ssb_Periodicity_r16_ms20 = 2, - NR_SSB_Config_r16__ssb_Periodicity_r16_ms40 = 3, - NR_SSB_Config_r16__ssb_Periodicity_r16_ms80 = 4, - NR_SSB_Config_r16__ssb_Periodicity_r16_ms160 = 5 - /* - * Enumeration is extensible - */ -} e_NR_SSB_Config_r16__ssb_Periodicity_r16; -typedef enum NR_SSB_Config_r16__ssb_PositionsInBurst_r16_PR { - NR_SSB_Config_r16__ssb_PositionsInBurst_r16_PR_NOTHING, /* No components present */ - NR_SSB_Config_r16__ssb_PositionsInBurst_r16_PR_shortBitmap_r16, - NR_SSB_Config_r16__ssb_PositionsInBurst_r16_PR_mediumBitmap_r16, - NR_SSB_Config_r16__ssb_PositionsInBurst_r16_PR_longBitmap_r16 -} NR_SSB_Config_r16__ssb_PositionsInBurst_r16_PR; -typedef enum NR_SSB_Config_r16__ssbSubcarrierSpacing_r16 { - NR_SSB_Config_r16__ssbSubcarrierSpacing_r16_kHz15 = 0, - NR_SSB_Config_r16__ssbSubcarrierSpacing_r16_kHz30 = 1, - NR_SSB_Config_r16__ssbSubcarrierSpacing_r16_kHz60 = 2, - NR_SSB_Config_r16__ssbSubcarrierSpacing_r16_kHz120 = 3, - NR_SSB_Config_r16__ssbSubcarrierSpacing_r16_kHz240 = 4 - /* - * Enumeration is extensible - */ -} e_NR_SSB_Config_r16__ssbSubcarrierSpacing_r16; -typedef enum NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16_PR { - NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16_PR_NOTHING, /* No components present */ - NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16_PR_sf5, - NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16_PR_sf10, - NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16_PR_sf20, - NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16_PR_sf40, - NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16_PR_sf80, - NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16_PR_sf160 -} NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16_PR; -typedef enum NR_SSB_Config_r16__smtc_r16__duration_r16 { - NR_SSB_Config_r16__smtc_r16__duration_r16_sf1 = 0, - NR_SSB_Config_r16__smtc_r16__duration_r16_sf2 = 1, - NR_SSB_Config_r16__smtc_r16__duration_r16_sf3 = 2, - NR_SSB_Config_r16__smtc_r16__duration_r16_sf4 = 3, - NR_SSB_Config_r16__smtc_r16__duration_r16_sf5 = 4 - /* - * Enumeration is extensible - */ -} e_NR_SSB_Config_r16__smtc_r16__duration_r16; - -/* NR-SSB-Config-r16 */ -typedef struct NR_SSB_Config_r16 { - TRP_ID_r16_t trp_ID_r16; - long ss_PBCH_BlockPower_r16; - long halfFrameIndex_r16; - long ssb_Periodicity_r16; - struct NR_SSB_Config_r16__ssb_PositionsInBurst_r16 { - NR_SSB_Config_r16__ssb_PositionsInBurst_r16_PR present; - union NR_SSB_Config_r16__ssb_PositionsInBurst_r16_u { - BIT_STRING_t shortBitmap_r16; - BIT_STRING_t mediumBitmap_r16; - BIT_STRING_t longBitmap_r16; - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ssb_PositionsInBurst_r16; - long ssbSubcarrierSpacing_r16; - long sfn_SSB_Offset_r16; - struct NR_SSB_Config_r16__smtc_r16 { - struct NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16 { - NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16_PR present; - union NR_SSB_Config_r16__smtc_r16__periodicityAndOffset_r16_u { - long sf5; - long sf10; - long sf20; - long sf40; - long sf80; - long sf160; - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } periodicityAndOffset_r16; - long duration_r16; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } smtc_r16; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_SSB_Config_r16_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_ssb_Periodicity_r16_5; // (Use -fall-defs-global to expose) */ -/* extern asn_TYPE_descriptor_t asn_DEF_ssbSubcarrierSpacing_r16_17; // (Use -fall-defs-global to expose) */ -/* extern asn_TYPE_descriptor_t asn_DEF_duration_r16_33; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_NR_SSB_Config_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_SSB_Config_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_SSB_Config_r16_1[8]; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_SSB_Config_r16_H_ */ -#include diff --git a/asn.1/generated/NR-Selected-DL-PRS-IndexPerTRP-r16.c b/asn.1/generated/NR-Selected-DL-PRS-IndexPerTRP-r16.c deleted file mode 100644 index 7ae19d43..00000000 --- a/asn.1/generated/NR-Selected-DL-PRS-IndexPerTRP-r16.c +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-Selected-DL-PRS-IndexPerTRP-r16.h" - -static int -memb_nr_SelectedTRP_Index_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_dl_SelectedPRS_ResourceSetIndexList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 2)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_dl_SelectedPRS_ResourceSetIndexList_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_SelectedTRP_Index_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_dl_SelectedPRS_ResourceSetIndexList_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_dl_SelectedPRS_ResourceSetIndexList_r16_3[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_DL_Selected_PRS_ResourceSetIndex_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r16_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_dl_SelectedPRS_ResourceSetIndexList_r16_specs_3 = { - sizeof(struct NR_Selected_DL_PRS_IndexPerTRP_r16__dl_SelectedPRS_ResourceSetIndexList_r16), - offsetof(struct NR_Selected_DL_PRS_IndexPerTRP_r16__dl_SelectedPRS_ResourceSetIndexList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r16_3 = { - "dl-SelectedPRS-ResourceSetIndexList-r16", - "dl-SelectedPRS-ResourceSetIndexList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r16_tags_3, - sizeof(asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r16_tags_3) - /sizeof(asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r16_tags_3[0]) - 1, /* 1 */ - asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r16_tags_3, /* Same as above */ - sizeof(asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r16_tags_3) - /sizeof(asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r16_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_dl_SelectedPRS_ResourceSetIndexList_r16_constr_3, SEQUENCE_OF_constraint }, - asn_MBR_dl_SelectedPRS_ResourceSetIndexList_r16_3, - 1, /* Single element */ - &asn_SPC_dl_SelectedPRS_ResourceSetIndexList_r16_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_Selected_DL_PRS_IndexPerTRP_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_Selected_DL_PRS_IndexPerTRP_r16, nr_SelectedTRP_Index_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_SelectedTRP_Index_r16_constr_2, memb_nr_SelectedTRP_Index_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-SelectedTRP-Index-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_Selected_DL_PRS_IndexPerTRP_r16, dl_SelectedPRS_ResourceSetIndexList_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r16_3, - 0, - { 0, &asn_PER_memb_dl_SelectedPRS_ResourceSetIndexList_r16_constr_3, memb_dl_SelectedPRS_ResourceSetIndexList_r16_constraint_1 }, - 0, 0, /* No default value */ - "dl-SelectedPRS-ResourceSetIndexList-r16" - }, -}; -static const int asn_MAP_NR_Selected_DL_PRS_IndexPerTRP_r16_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_NR_Selected_DL_PRS_IndexPerTRP_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_Selected_DL_PRS_IndexPerTRP_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-SelectedTRP-Index-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dl-SelectedPRS-ResourceSetIndexList-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_Selected_DL_PRS_IndexPerTRP_r16_specs_1 = { - sizeof(struct NR_Selected_DL_PRS_IndexPerTRP_r16), - offsetof(struct NR_Selected_DL_PRS_IndexPerTRP_r16, _asn_ctx), - asn_MAP_NR_Selected_DL_PRS_IndexPerTRP_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_NR_Selected_DL_PRS_IndexPerTRP_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_Selected_DL_PRS_IndexPerTRP_r16 = { - "NR-Selected-DL-PRS-IndexPerTRP-r16", - "NR-Selected-DL-PRS-IndexPerTRP-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_Selected_DL_PRS_IndexPerTRP_r16_tags_1, - sizeof(asn_DEF_NR_Selected_DL_PRS_IndexPerTRP_r16_tags_1) - /sizeof(asn_DEF_NR_Selected_DL_PRS_IndexPerTRP_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_Selected_DL_PRS_IndexPerTRP_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_Selected_DL_PRS_IndexPerTRP_r16_tags_1) - /sizeof(asn_DEF_NR_Selected_DL_PRS_IndexPerTRP_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_Selected_DL_PRS_IndexPerTRP_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_Selected_DL_PRS_IndexPerTRP_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-Selected-DL-PRS-IndexPerTRP-r16.h b/asn.1/generated/NR-Selected-DL-PRS-IndexPerTRP-r16.h deleted file mode 100644 index 984f02dc..00000000 --- a/asn.1/generated/NR-Selected-DL-PRS-IndexPerTRP-r16.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_Selected_DL_PRS_IndexPerTRP_r16_H_ -#define _NR_Selected_DL_PRS_IndexPerTRP_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct DL_Selected_PRS_ResourceSetIndex_r16; - -/* NR-Selected-DL-PRS-IndexPerTRP-r16 */ -typedef struct NR_Selected_DL_PRS_IndexPerTRP_r16 { - long nr_SelectedTRP_Index_r16; - struct NR_Selected_DL_PRS_IndexPerTRP_r16__dl_SelectedPRS_ResourceSetIndexList_r16 { - A_SEQUENCE_OF(struct DL_Selected_PRS_ResourceSetIndex_r16) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *dl_SelectedPRS_ResourceSetIndexList_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_Selected_DL_PRS_IndexPerTRP_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_Selected_DL_PRS_IndexPerTRP_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_Selected_DL_PRS_IndexPerTRP_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_Selected_DL_PRS_IndexPerTRP_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "DL-Selected-PRS-ResourceSetIndex-r16.h" - -#endif /* _NR_Selected_DL_PRS_IndexPerTRP_r16_H_ */ -#include diff --git a/asn.1/generated/NR-SelectedDL-PRS-PerFreq-r16.c b/asn.1/generated/NR-SelectedDL-PRS-PerFreq-r16.c deleted file mode 100644 index e896f0cd..00000000 --- a/asn.1/generated/NR-SelectedDL-PRS-PerFreq-r16.c +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-SelectedDL-PRS-PerFreq-r16.h" - -static int -memb_nr_SelectedDL_PRS_FrequencyLayerIndex_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nr_SelectedDL_PRS_IndexListPerFreq_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 64)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_nr_SelectedDL_PRS_IndexListPerFreq_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_SelectedDL_PRS_FrequencyLayerIndex_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_SelectedDL_PRS_IndexListPerFreq_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_nr_SelectedDL_PRS_IndexListPerFreq_r16_3[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NR_Selected_DL_PRS_IndexPerTRP_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r16_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_nr_SelectedDL_PRS_IndexListPerFreq_r16_specs_3 = { - sizeof(struct NR_SelectedDL_PRS_PerFreq_r16__nr_SelectedDL_PRS_IndexListPerFreq_r16), - offsetof(struct NR_SelectedDL_PRS_PerFreq_r16__nr_SelectedDL_PRS_IndexListPerFreq_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r16_3 = { - "nr-SelectedDL-PRS-IndexListPerFreq-r16", - "nr-SelectedDL-PRS-IndexListPerFreq-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r16_tags_3, - sizeof(asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r16_tags_3) - /sizeof(asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r16_tags_3[0]) - 1, /* 1 */ - asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r16_tags_3, /* Same as above */ - sizeof(asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r16_tags_3) - /sizeof(asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r16_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_nr_SelectedDL_PRS_IndexListPerFreq_r16_constr_3, SEQUENCE_OF_constraint }, - asn_MBR_nr_SelectedDL_PRS_IndexListPerFreq_r16_3, - 1, /* Single element */ - &asn_SPC_nr_SelectedDL_PRS_IndexListPerFreq_r16_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_SelectedDL_PRS_PerFreq_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_SelectedDL_PRS_PerFreq_r16, nr_SelectedDL_PRS_FrequencyLayerIndex_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_SelectedDL_PRS_FrequencyLayerIndex_r16_constr_2, memb_nr_SelectedDL_PRS_FrequencyLayerIndex_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-SelectedDL-PRS-FrequencyLayerIndex-r16" - }, - { ATF_POINTER, 1, offsetof(struct NR_SelectedDL_PRS_PerFreq_r16, nr_SelectedDL_PRS_IndexListPerFreq_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r16_3, - 0, - { 0, &asn_PER_memb_nr_SelectedDL_PRS_IndexListPerFreq_r16_constr_3, memb_nr_SelectedDL_PRS_IndexListPerFreq_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-SelectedDL-PRS-IndexListPerFreq-r16" - }, -}; -static const int asn_MAP_NR_SelectedDL_PRS_PerFreq_r16_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_NR_SelectedDL_PRS_PerFreq_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_SelectedDL_PRS_PerFreq_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-SelectedDL-PRS-FrequencyLayerIndex-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-SelectedDL-PRS-IndexListPerFreq-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_SelectedDL_PRS_PerFreq_r16_specs_1 = { - sizeof(struct NR_SelectedDL_PRS_PerFreq_r16), - offsetof(struct NR_SelectedDL_PRS_PerFreq_r16, _asn_ctx), - asn_MAP_NR_SelectedDL_PRS_PerFreq_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_NR_SelectedDL_PRS_PerFreq_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_SelectedDL_PRS_PerFreq_r16 = { - "NR-SelectedDL-PRS-PerFreq-r16", - "NR-SelectedDL-PRS-PerFreq-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_SelectedDL_PRS_PerFreq_r16_tags_1, - sizeof(asn_DEF_NR_SelectedDL_PRS_PerFreq_r16_tags_1) - /sizeof(asn_DEF_NR_SelectedDL_PRS_PerFreq_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_SelectedDL_PRS_PerFreq_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_SelectedDL_PRS_PerFreq_r16_tags_1) - /sizeof(asn_DEF_NR_SelectedDL_PRS_PerFreq_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_SelectedDL_PRS_PerFreq_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_SelectedDL_PRS_PerFreq_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-TRP-LocationInfo-r16.c b/asn.1/generated/NR-TRP-LocationInfo-r16.c deleted file mode 100644 index ae5bb888..00000000 --- a/asn.1/generated/NR-TRP-LocationInfo-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-TRP-LocationInfo-r16.h" - -asn_per_constraints_t asn_PER_type_NR_TRP_LocationInfo_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NR_TRP_LocationInfo_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NR_TRP_LocationInfoPerFreqLayer_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_TRP_LocationInfo_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_NR_TRP_LocationInfo_r16_specs_1 = { - sizeof(struct NR_TRP_LocationInfo_r16), - offsetof(struct NR_TRP_LocationInfo_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_TRP_LocationInfo_r16 = { - "NR-TRP-LocationInfo-r16", - "NR-TRP-LocationInfo-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_NR_TRP_LocationInfo_r16_tags_1, - sizeof(asn_DEF_NR_TRP_LocationInfo_r16_tags_1) - /sizeof(asn_DEF_NR_TRP_LocationInfo_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_TRP_LocationInfo_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_TRP_LocationInfo_r16_tags_1) - /sizeof(asn_DEF_NR_TRP_LocationInfo_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_NR_TRP_LocationInfo_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_NR_TRP_LocationInfo_r16_1, - 1, /* Single element */ - &asn_SPC_NR_TRP_LocationInfo_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-TRP-LocationInfoPerFreqLayer-r16.c b/asn.1/generated/NR-TRP-LocationInfoPerFreqLayer-r16.c deleted file mode 100644 index 11a3f1dd..00000000 --- a/asn.1/generated/NR-TRP-LocationInfoPerFreqLayer-r16.c +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-TRP-LocationInfoPerFreqLayer-r16.h" - -static int -memb_trp_LocationInfoList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 64)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_trp_LocationInfoList_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_trp_LocationInfoList_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_trp_LocationInfoList_r16_3[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_TRP_LocationInfoElement_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_trp_LocationInfoList_r16_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_trp_LocationInfoList_r16_specs_3 = { - sizeof(struct NR_TRP_LocationInfoPerFreqLayer_r16__trp_LocationInfoList_r16), - offsetof(struct NR_TRP_LocationInfoPerFreqLayer_r16__trp_LocationInfoList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_trp_LocationInfoList_r16_3 = { - "trp-LocationInfoList-r16", - "trp-LocationInfoList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_trp_LocationInfoList_r16_tags_3, - sizeof(asn_DEF_trp_LocationInfoList_r16_tags_3) - /sizeof(asn_DEF_trp_LocationInfoList_r16_tags_3[0]) - 1, /* 1 */ - asn_DEF_trp_LocationInfoList_r16_tags_3, /* Same as above */ - sizeof(asn_DEF_trp_LocationInfoList_r16_tags_3) - /sizeof(asn_DEF_trp_LocationInfoList_r16_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_trp_LocationInfoList_r16_constr_3, SEQUENCE_OF_constraint }, - asn_MBR_trp_LocationInfoList_r16_3, - 1, /* Single element */ - &asn_SPC_trp_LocationInfoList_r16_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_TRP_LocationInfoPerFreqLayer_r16_1[] = { - { ATF_POINTER, 1, offsetof(struct NR_TRP_LocationInfoPerFreqLayer_r16, referencePoint_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ReferencePoint_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referencePoint-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_TRP_LocationInfoPerFreqLayer_r16, trp_LocationInfoList_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_trp_LocationInfoList_r16_3, - 0, - { 0, &asn_PER_memb_trp_LocationInfoList_r16_constr_3, memb_trp_LocationInfoList_r16_constraint_1 }, - 0, 0, /* No default value */ - "trp-LocationInfoList-r16" - }, -}; -static const int asn_MAP_NR_TRP_LocationInfoPerFreqLayer_r16_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_NR_TRP_LocationInfoPerFreqLayer_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_TRP_LocationInfoPerFreqLayer_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referencePoint-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* trp-LocationInfoList-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_TRP_LocationInfoPerFreqLayer_r16_specs_1 = { - sizeof(struct NR_TRP_LocationInfoPerFreqLayer_r16), - offsetof(struct NR_TRP_LocationInfoPerFreqLayer_r16, _asn_ctx), - asn_MAP_NR_TRP_LocationInfoPerFreqLayer_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_NR_TRP_LocationInfoPerFreqLayer_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_TRP_LocationInfoPerFreqLayer_r16 = { - "NR-TRP-LocationInfoPerFreqLayer-r16", - "NR-TRP-LocationInfoPerFreqLayer-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_TRP_LocationInfoPerFreqLayer_r16_tags_1, - sizeof(asn_DEF_NR_TRP_LocationInfoPerFreqLayer_r16_tags_1) - /sizeof(asn_DEF_NR_TRP_LocationInfoPerFreqLayer_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_TRP_LocationInfoPerFreqLayer_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_TRP_LocationInfoPerFreqLayer_r16_tags_1) - /sizeof(asn_DEF_NR_TRP_LocationInfoPerFreqLayer_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_TRP_LocationInfoPerFreqLayer_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_TRP_LocationInfoPerFreqLayer_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-TimeStamp-r16.c b/asn.1/generated/NR-TimeStamp-r16.c deleted file mode 100644 index 25fa0879..00000000 --- a/asn.1/generated/NR-TimeStamp-r16.c +++ /dev/null @@ -1,296 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-TimeStamp-r16.h" - -static int -memb_scs15_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 9)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_scs30_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 19)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_scs60_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 39)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_scs120_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 79)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nr_SFN_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_scs15_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_scs30_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_scs60_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 39 } /* (0..39) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_scs120_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 79 } /* (0..79) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_nr_Slot_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_SFN_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_nr_Slot_r16_4[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_TimeStamp_r16__nr_Slot_r16, choice.scs15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_scs15_constr_5, memb_scs15_constraint_4 }, - 0, 0, /* No default value */ - "scs15" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_TimeStamp_r16__nr_Slot_r16, choice.scs30), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_scs30_constr_6, memb_scs30_constraint_4 }, - 0, 0, /* No default value */ - "scs30" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_TimeStamp_r16__nr_Slot_r16, choice.scs60), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_scs60_constr_7, memb_scs60_constraint_4 }, - 0, 0, /* No default value */ - "scs60" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_TimeStamp_r16__nr_Slot_r16, choice.scs120), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_scs120_constr_8, memb_scs120_constraint_4 }, - 0, 0, /* No default value */ - "scs120" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_nr_Slot_r16_tag2el_4[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* scs15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* scs30 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* scs60 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* scs120 */ -}; -static asn_CHOICE_specifics_t asn_SPC_nr_Slot_r16_specs_4 = { - sizeof(struct NR_TimeStamp_r16__nr_Slot_r16), - offsetof(struct NR_TimeStamp_r16__nr_Slot_r16, _asn_ctx), - offsetof(struct NR_TimeStamp_r16__nr_Slot_r16, present), - sizeof(((struct NR_TimeStamp_r16__nr_Slot_r16 *)0)->present), - asn_MAP_nr_Slot_r16_tag2el_4, - 4, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nr_Slot_r16_4 = { - "nr-Slot-r16", - "nr-Slot-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_nr_Slot_r16_constr_4, CHOICE_constraint }, - asn_MBR_nr_Slot_r16_4, - 4, /* Elements count */ - &asn_SPC_nr_Slot_r16_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_TimeStamp_r16_1[] = { - { ATF_POINTER, 1, offsetof(struct NR_TimeStamp_r16, trp_ID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TRP_ID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "trp-ID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_TimeStamp_r16, nr_SFN_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_SFN_r16_constr_3, memb_nr_SFN_r16_constraint_1 }, - 0, 0, /* No default value */ - "nr-SFN-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_TimeStamp_r16, nr_Slot_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_nr_Slot_r16_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-Slot-r16" - }, -}; -static const int asn_MAP_NR_TimeStamp_r16_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_NR_TimeStamp_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_TimeStamp_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* trp-ID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-SFN-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-Slot-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_TimeStamp_r16_specs_1 = { - sizeof(struct NR_TimeStamp_r16), - offsetof(struct NR_TimeStamp_r16, _asn_ctx), - asn_MAP_NR_TimeStamp_r16_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_NR_TimeStamp_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_TimeStamp_r16 = { - "NR-TimeStamp-r16", - "NR-TimeStamp-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_TimeStamp_r16_tags_1, - sizeof(asn_DEF_NR_TimeStamp_r16_tags_1) - /sizeof(asn_DEF_NR_TimeStamp_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_TimeStamp_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_TimeStamp_r16_tags_1) - /sizeof(asn_DEF_NR_TimeStamp_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_TimeStamp_r16_1, - 3, /* Elements count */ - &asn_SPC_NR_TimeStamp_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-TimeStamp-r16.h b/asn.1/generated/NR-TimeStamp-r16.h deleted file mode 100644 index 561397c7..00000000 --- a/asn.1/generated/NR-TimeStamp-r16.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_TimeStamp_r16_H_ -#define _NR_TimeStamp_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum NR_TimeStamp_r16__nr_Slot_r16_PR { - NR_TimeStamp_r16__nr_Slot_r16_PR_NOTHING, /* No components present */ - NR_TimeStamp_r16__nr_Slot_r16_PR_scs15, - NR_TimeStamp_r16__nr_Slot_r16_PR_scs30, - NR_TimeStamp_r16__nr_Slot_r16_PR_scs60, - NR_TimeStamp_r16__nr_Slot_r16_PR_scs120 -} NR_TimeStamp_r16__nr_Slot_r16_PR; - -/* Forward declarations */ -struct TRP_ID_r16; - -/* NR-TimeStamp-r16 */ -typedef struct NR_TimeStamp_r16 { - struct TRP_ID_r16 *trp_ID_r16 /* OPTIONAL */; - long nr_SFN_r16; - struct NR_TimeStamp_r16__nr_Slot_r16 { - NR_TimeStamp_r16__nr_Slot_r16_PR present; - union NR_TimeStamp_r16__nr_Slot_r16_u { - long scs15; - long scs30; - long scs60; - long scs120; - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } nr_Slot_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_TimeStamp_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_TimeStamp_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_TimeStamp_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_TimeStamp_r16_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "TRP-ID-r16.h" - -#endif /* _NR_TimeStamp_r16_H_ */ -#include diff --git a/asn.1/generated/NR-TimingMeasQuality-r16.c b/asn.1/generated/NR-TimingMeasQuality-r16.c deleted file mode 100644 index ec2c8e71..00000000 --- a/asn.1/generated/NR-TimingMeasQuality-r16.c +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-TimingMeasQuality-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_timingMeasQualityValue_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 31)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_timingMeasQualityResolution_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_timingMeasQualityValue_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_timingMeasQualityResolution_r16_value2enum_3[] = { - { 0, 5, "mdot1" }, - { 1, 2, "m1" }, - { 2, 3, "m10" }, - { 3, 3, "m30" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_timingMeasQualityResolution_r16_enum2value_3[] = { - 1, /* m1(1) */ - 2, /* m10(2) */ - 3, /* m30(3) */ - 0 /* mdot1(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_timingMeasQualityResolution_r16_specs_3 = { - asn_MAP_timingMeasQualityResolution_r16_value2enum_3, /* "tag" => N; sorted by tag */ - asn_MAP_timingMeasQualityResolution_r16_enum2value_3, /* N => "tag"; sorted by N */ - 4, /* Number of elements in the maps */ - 5, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_timingMeasQualityResolution_r16_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_timingMeasQualityResolution_r16_3 = { - "timingMeasQualityResolution-r16", - "timingMeasQualityResolution-r16", - &asn_OP_NativeEnumerated, - asn_DEF_timingMeasQualityResolution_r16_tags_3, - sizeof(asn_DEF_timingMeasQualityResolution_r16_tags_3) - /sizeof(asn_DEF_timingMeasQualityResolution_r16_tags_3[0]) - 1, /* 1 */ - asn_DEF_timingMeasQualityResolution_r16_tags_3, /* Same as above */ - sizeof(asn_DEF_timingMeasQualityResolution_r16_tags_3) - /sizeof(asn_DEF_timingMeasQualityResolution_r16_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_timingMeasQualityResolution_r16_constr_3, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_timingMeasQualityResolution_r16_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NR_TimingMeasQuality_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_TimingMeasQuality_r16, timingMeasQualityValue_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_timingMeasQualityValue_r16_constr_2, memb_timingMeasQualityValue_r16_constraint_1 }, - 0, 0, /* No default value */ - "timingMeasQualityValue-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NR_TimingMeasQuality_r16, timingMeasQualityResolution_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_timingMeasQualityResolution_r16_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "timingMeasQualityResolution-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_TimingMeasQuality_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_TimingMeasQuality_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* timingMeasQualityValue-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* timingMeasQualityResolution-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_TimingMeasQuality_r16_specs_1 = { - sizeof(struct NR_TimingMeasQuality_r16), - offsetof(struct NR_TimingMeasQuality_r16, _asn_ctx), - asn_MAP_NR_TimingMeasQuality_r16_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_TimingMeasQuality_r16 = { - "NR-TimingMeasQuality-r16", - "NR-TimingMeasQuality-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_TimingMeasQuality_r16_tags_1, - sizeof(asn_DEF_NR_TimingMeasQuality_r16_tags_1) - /sizeof(asn_DEF_NR_TimingMeasQuality_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_TimingMeasQuality_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_TimingMeasQuality_r16_tags_1) - /sizeof(asn_DEF_NR_TimingMeasQuality_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_TimingMeasQuality_r16_1, - 2, /* Elements count */ - &asn_SPC_NR_TimingMeasQuality_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-TimingMeasQuality-r16.h b/asn.1/generated/NR-TimingMeasQuality-r16.h deleted file mode 100644 index 9aec2a67..00000000 --- a/asn.1/generated/NR-TimingMeasQuality-r16.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_TimingMeasQuality_r16_H_ -#define _NR_TimingMeasQuality_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum NR_TimingMeasQuality_r16__timingMeasQualityResolution_r16 { - NR_TimingMeasQuality_r16__timingMeasQualityResolution_r16_mdot1 = 0, - NR_TimingMeasQuality_r16__timingMeasQualityResolution_r16_m1 = 1, - NR_TimingMeasQuality_r16__timingMeasQualityResolution_r16_m10 = 2, - NR_TimingMeasQuality_r16__timingMeasQualityResolution_r16_m30 = 3 - /* - * Enumeration is extensible - */ -} e_NR_TimingMeasQuality_r16__timingMeasQualityResolution_r16; - -/* NR-TimingMeasQuality-r16 */ -typedef struct NR_TimingMeasQuality_r16 { - long timingMeasQualityValue_r16; - long timingMeasQualityResolution_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_TimingMeasQuality_r16_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_timingMeasQualityResolution_r16_3; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_NR_TimingMeasQuality_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_TimingMeasQuality_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_TimingMeasQuality_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_TimingMeasQuality_r16_H_ */ -#include diff --git a/asn.1/generated/NR-UL-ProvideCapabilities-r16.c b/asn.1/generated/NR-UL-ProvideCapabilities-r16.c deleted file mode 100644 index 6c4a2be7..00000000 --- a/asn.1/generated/NR-UL-ProvideCapabilities-r16.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-UL-ProvideCapabilities-r16.h" - -asn_TYPE_member_t asn_MBR_NR_UL_ProvideCapabilities_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NR_UL_ProvideCapabilities_r16, nr_UL_SRS_MeasCapability_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_UL_SRS_MeasCapability_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-UL-SRS-MeasCapability-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NR_UL_ProvideCapabilities_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NR_UL_ProvideCapabilities_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-UL-SRS-MeasCapability-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_UL_ProvideCapabilities_r16_specs_1 = { - sizeof(struct NR_UL_ProvideCapabilities_r16), - offsetof(struct NR_UL_ProvideCapabilities_r16, _asn_ctx), - asn_MAP_NR_UL_ProvideCapabilities_r16_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_UL_ProvideCapabilities_r16 = { - "NR-UL-ProvideCapabilities-r16", - "NR-UL-ProvideCapabilities-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_UL_ProvideCapabilities_r16_tags_1, - sizeof(asn_DEF_NR_UL_ProvideCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_UL_ProvideCapabilities_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_UL_ProvideCapabilities_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_UL_ProvideCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_UL_ProvideCapabilities_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NR_UL_ProvideCapabilities_r16_1, - 1, /* Elements count */ - &asn_SPC_NR_UL_ProvideCapabilities_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-UL-ProvideCapabilities-r16.h b/asn.1/generated/NR-UL-ProvideCapabilities-r16.h deleted file mode 100644 index d83f146c..00000000 --- a/asn.1/generated/NR-UL-ProvideCapabilities-r16.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_UL_ProvideCapabilities_r16_H_ -#define _NR_UL_ProvideCapabilities_r16_H_ - - -#include - -/* Including external dependencies */ -#include "NR-UL-SRS-MeasCapability-r16.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* NR-UL-ProvideCapabilities-r16 */ -typedef struct NR_UL_ProvideCapabilities_r16 { - NR_UL_SRS_MeasCapability_r16_t nr_UL_SRS_MeasCapability_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_UL_ProvideCapabilities_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_UL_ProvideCapabilities_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_UL_ProvideCapabilities_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_UL_ProvideCapabilities_r16_1[1]; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_UL_ProvideCapabilities_r16_H_ */ -#include diff --git a/asn.1/generated/NR-UL-RequestCapabilities-r16.c b/asn.1/generated/NR-UL-RequestCapabilities-r16.c deleted file mode 100644 index 93470d8a..00000000 --- a/asn.1/generated/NR-UL-RequestCapabilities-r16.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-UL-RequestCapabilities-r16.h" - -static const ber_tlv_tag_t asn_DEF_NR_UL_RequestCapabilities_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_UL_RequestCapabilities_r16_specs_1 = { - sizeof(struct NR_UL_RequestCapabilities_r16), - offsetof(struct NR_UL_RequestCapabilities_r16, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_UL_RequestCapabilities_r16 = { - "NR-UL-RequestCapabilities-r16", - "NR-UL-RequestCapabilities-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_UL_RequestCapabilities_r16_tags_1, - sizeof(asn_DEF_NR_UL_RequestCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_UL_RequestCapabilities_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_UL_RequestCapabilities_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_UL_RequestCapabilities_r16_tags_1) - /sizeof(asn_DEF_NR_UL_RequestCapabilities_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_NR_UL_RequestCapabilities_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-UL-SRS-MeasCapability-r16.c b/asn.1/generated/NR-UL-SRS-MeasCapability-r16.c deleted file mode 100644 index 80e9281d..00000000 --- a/asn.1/generated/NR-UL-SRS-MeasCapability-r16.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NR-UL-SRS-MeasCapability-r16.h" - -static const ber_tlv_tag_t asn_DEF_NR_UL_SRS_MeasCapability_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_NR_UL_SRS_MeasCapability_r16_specs_1 = { - sizeof(struct NR_UL_SRS_MeasCapability_r16), - offsetof(struct NR_UL_SRS_MeasCapability_r16, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NR_UL_SRS_MeasCapability_r16 = { - "NR-UL-SRS-MeasCapability-r16", - "NR-UL-SRS-MeasCapability-r16", - &asn_OP_SEQUENCE, - asn_DEF_NR_UL_SRS_MeasCapability_r16_tags_1, - sizeof(asn_DEF_NR_UL_SRS_MeasCapability_r16_tags_1) - /sizeof(asn_DEF_NR_UL_SRS_MeasCapability_r16_tags_1[0]), /* 1 */ - asn_DEF_NR_UL_SRS_MeasCapability_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NR_UL_SRS_MeasCapability_r16_tags_1) - /sizeof(asn_DEF_NR_UL_SRS_MeasCapability_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_NR_UL_SRS_MeasCapability_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NR-UL-SRS-MeasCapability-r16.h b/asn.1/generated/NR-UL-SRS-MeasCapability-r16.h deleted file mode 100644 index 493961e5..00000000 --- a/asn.1/generated/NR-UL-SRS-MeasCapability-r16.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NR_UL_SRS_MeasCapability_r16_H_ -#define _NR_UL_SRS_MeasCapability_r16_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* NR-UL-SRS-MeasCapability-r16 */ -typedef struct NR_UL_SRS_MeasCapability_r16 { - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NR_UL_SRS_MeasCapability_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NR_UL_SRS_MeasCapability_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_NR_UL_SRS_MeasCapability_r16_specs_1; - -#ifdef __cplusplus -} -#endif - -#endif /* _NR_UL_SRS_MeasCapability_r16_H_ */ -#include diff --git a/asn.1/generated/NULL.c b/asn.1/generated/NULL.c deleted file mode 100644 index a43d412b..00000000 --- a/asn.1/generated/NULL.c +++ /dev/null @@ -1,250 +0,0 @@ -/*- - * Copyright (c) 2003, 2005 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include -#include -#include /* Implemented in terms of BOOLEAN type */ - -/* - * NULL basic type description. - */ -static const ber_tlv_tag_t asn_DEF_NULL_tags[] = { - (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)) -}; -asn_TYPE_operation_t asn_OP_NULL = { - BOOLEAN_free, - NULL_print, - NULL_compare, - BOOLEAN_decode_ber, /* Implemented in terms of BOOLEAN */ - NULL_encode_der, /* Special handling of DER encoding */ - NULL_decode_xer, - NULL_encode_xer, -#ifdef ASN_DISABLE_OER_SUPPORT - 0, - 0, -#else - NULL_decode_oer, - NULL_encode_oer, -#endif /* ASN_DISABLE_OER_SUPPORT */ -#ifdef ASN_DISABLE_PER_SUPPORT - 0, - 0, -#else - NULL_decode_uper, /* Unaligned PER decoder */ - NULL_encode_uper, /* Unaligned PER encoder */ -#endif /* ASN_DISABLE_PER_SUPPORT */ - NULL_random_fill, - 0 /* Use generic outmost tag fetcher */ -}; -asn_TYPE_descriptor_t asn_DEF_NULL = { - "NULL", - "NULL", - &asn_OP_NULL, - asn_DEF_NULL_tags, - sizeof(asn_DEF_NULL_tags) / sizeof(asn_DEF_NULL_tags[0]), - asn_DEF_NULL_tags, /* Same as above */ - sizeof(asn_DEF_NULL_tags) / sizeof(asn_DEF_NULL_tags[0]), - { 0, 0, asn_generic_no_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - -asn_enc_rval_t -NULL_encode_der(const asn_TYPE_descriptor_t *td, const void *ptr, int tag_mode, - ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - asn_enc_rval_t erval; - - erval.encoded = der_write_tags(td, 0, tag_mode, 0, tag, cb, app_key); - if(erval.encoded == -1) { - erval.failed_type = td; - erval.structure_ptr = ptr; - } - - ASN__ENCODED_OK(erval); -} - -asn_enc_rval_t -NULL_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, - enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, - void *app_key) { - asn_enc_rval_t er; - - (void)td; - (void)sptr; - (void)ilevel; - (void)flags; - (void)cb; - (void)app_key; - - /* XMLNullValue is empty */ - er.encoded = 0; - ASN__ENCODED_OK(er); -} - - -static enum xer_pbd_rval -NULL__xer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, - const void *chunk_buf, size_t chunk_size) { - (void)td; - (void)sptr; - (void)chunk_buf; /* Going to be empty according to the rules below. */ - - /* - * There must be no content in self-terminating tag. - */ - if(chunk_size) - return XPBD_BROKEN_ENCODING; - else - return XPBD_BODY_CONSUMED; -} - -asn_dec_rval_t -NULL_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **sptr, - const char *opt_mname, const void *buf_ptr, size_t size) { - return xer_decode_primitive(opt_codec_ctx, td, - sptr, sizeof(NULL_t), opt_mname, buf_ptr, size, - NULL__xer_body_decode); -} - -int -NULL_compare(const asn_TYPE_descriptor_t *td, const void *a, const void *b) { - (void)td; - (void)a; - (void)b; - return 0; -} - -int -NULL_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, - asn_app_consume_bytes_f *cb, void *app_key) { - (void)td; /* Unused argument */ - (void)ilevel; /* Unused argument */ - - if(sptr) { - return (cb("", 9, app_key) < 0) ? -1 : 0; - } else { - return (cb("", 8, app_key) < 0) ? -1 : 0; - } -} - -#ifndef ASN_DISABLE_OER_SUPPORT - -asn_dec_rval_t -NULL_decode_oer(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - const asn_oer_constraints_t *constraints, void **sptr, - const void *ptr, size_t size) { - asn_dec_rval_t rv = {RC_OK, 0}; - (void)opt_codec_ctx; - (void)td; - (void)constraints; - (void)ptr; - (void)size; - - if(!*sptr) { - *sptr = MALLOC(sizeof(NULL_t)); - if(*sptr) { - *(NULL_t *)*sptr = 0; - } else { - ASN__DECODE_FAILED; - } - } - - return rv; -} - -asn_enc_rval_t -NULL_encode_oer(const asn_TYPE_descriptor_t *td, - const asn_oer_constraints_t *constraints, const void *sptr, - asn_app_consume_bytes_f *cb, void *app_key) { - asn_enc_rval_t er; - - (void)td; - (void)sptr; - (void)constraints; - (void)cb; - (void)app_key; - - er.encoded = 0; /* Encoding in 0 bytes. */ - - ASN__ENCODED_OK(er); -} - -#endif /* ASN_DISABLE_OER_SUPPORT */ - -#ifndef ASN_DISABLE_PER_SUPPORT - -asn_dec_rval_t -NULL_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, void **sptr, - asn_per_data_t *pd) { - asn_dec_rval_t rv; - - (void)opt_codec_ctx; - (void)td; - (void)constraints; - (void)pd; - - if(!*sptr) { - *sptr = MALLOC(sizeof(NULL_t)); - if(*sptr) { - *(NULL_t *)*sptr = 0; - } else { - ASN__DECODE_FAILED; - } - } - - /* - * NULL type does not have content octets. - */ - - rv.code = RC_OK; - rv.consumed = 0; - return rv; -} - -asn_enc_rval_t -NULL_encode_uper(const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, const void *sptr, - asn_per_outp_t *po) { - asn_enc_rval_t er; - - (void)td; - (void)constraints; - (void)sptr; - (void)po; - - er.encoded = 0; - ASN__ENCODED_OK(er); -} - -#endif /* ASN_DISABLE_PER_SUPPORT */ - -asn_random_fill_result_t -NULL_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constr, - size_t max_length) { - asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - NULL_t *st = *sptr; - - (void)td; - (void)constr; - - if(max_length == 0) return result_skipped; - - if(st == NULL) { - st = (NULL_t *)(*sptr = CALLOC(1, sizeof(*st))); - if(st == NULL) { - return result_failed; - } - } - - return result_ok; -} - diff --git a/asn.1/generated/NULL.h b/asn.1/generated/NULL.h deleted file mode 100644 index 50f53ca0..00000000 --- a/asn.1/generated/NULL.h +++ /dev/null @@ -1,43 +0,0 @@ -/*- - * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef ASN_TYPE_NULL_H -#define ASN_TYPE_NULL_H - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * The value of the NULL type is meaningless: see BOOLEAN if you want to - * carry true/false semantics. - */ -typedef int NULL_t; - -extern asn_TYPE_descriptor_t asn_DEF_NULL; -extern asn_TYPE_operation_t asn_OP_NULL; - -asn_struct_print_f NULL_print; -asn_struct_compare_f NULL_compare; -der_type_encoder_f NULL_encode_der; -xer_type_decoder_f NULL_decode_xer; -xer_type_encoder_f NULL_encode_xer; -oer_type_decoder_f NULL_decode_oer; -oer_type_encoder_f NULL_encode_oer; -per_type_decoder_f NULL_decode_uper; -per_type_encoder_f NULL_encode_uper; -asn_random_fill_f NULL_random_fill; - -#define NULL_free BOOLEAN_free -#define NULL_decode_ber BOOLEAN_decode_ber -#define NULL_constraint asn_generic_no_constraint - -#ifdef __cplusplus -} -#endif - -#endif /* NULL_H */ diff --git a/asn.1/generated/NativeEnumerated.c b/asn.1/generated/NativeEnumerated.c deleted file mode 100644 index 4ed8749d..00000000 --- a/asn.1/generated/NativeEnumerated.c +++ /dev/null @@ -1,226 +0,0 @@ -/*- - * Copyright (c) 2004, 2007 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -/* - * Read the NativeInteger.h for the explanation wrt. differences between - * INTEGER and NativeInteger. - * Basically, both are decoders and encoders of ASN.1 INTEGER type, but this - * implementation deals with the standard (machine-specific) representation - * of them instead of using the platform-independent buffer. - */ -#include -#include - -/* - * NativeEnumerated basic type description. - */ -static const ber_tlv_tag_t asn_DEF_NativeEnumerated_tags[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_operation_t asn_OP_NativeEnumerated = { - NativeInteger_free, - NativeInteger_print, - NativeInteger_compare, - NativeInteger_decode_ber, - NativeInteger_encode_der, - NativeInteger_decode_xer, - NativeEnumerated_encode_xer, -#ifdef ASN_DISABLE_OER_SUPPORT - 0, - 0, -#else - NativeEnumerated_decode_oer, - NativeEnumerated_encode_oer, -#endif /* ASN_DISABLE_OER_SUPPORT */ -#ifdef ASN_DISABLE_PER_SUPPORT - 0, - 0, -#else - NativeEnumerated_decode_uper, - NativeEnumerated_encode_uper, -#endif /* ASN_DISABLE_PER_SUPPORT */ - NativeEnumerated_random_fill, - 0 /* Use generic outmost tag fetcher */ -}; -asn_TYPE_descriptor_t asn_DEF_NativeEnumerated = { - "ENUMERATED", /* The ASN.1 type is still ENUMERATED */ - "ENUMERATED", - &asn_OP_NativeEnumerated, - asn_DEF_NativeEnumerated_tags, - sizeof(asn_DEF_NativeEnumerated_tags) / sizeof(asn_DEF_NativeEnumerated_tags[0]), - asn_DEF_NativeEnumerated_tags, /* Same as above */ - sizeof(asn_DEF_NativeEnumerated_tags) / sizeof(asn_DEF_NativeEnumerated_tags[0]), - { 0, 0, asn_generic_no_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - -asn_enc_rval_t -NativeEnumerated_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - const asn_INTEGER_specifics_t *specs = - (const asn_INTEGER_specifics_t *)td->specifics; - asn_enc_rval_t er; - const long *native = (const long *)sptr; - const asn_INTEGER_enum_map_t *el; - - (void)ilevel; - (void)flags; - - if(!native) ASN__ENCODE_FAILED; - - el = INTEGER_map_value2enum(specs, *native); - if(el) { - er.encoded = - asn__format_to_callback(cb, app_key, "<%s/>", el->enum_name); - if(er.encoded < 0) ASN__ENCODE_FAILED; - ASN__ENCODED_OK(er); - } else { - ASN_DEBUG( - "ASN.1 forbids dealing with " - "unknown value of ENUMERATED type"); - ASN__ENCODE_FAILED; - } -} - -asn_dec_rval_t -NativeEnumerated_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, - void **sptr, asn_per_data_t *pd) { - const asn_INTEGER_specifics_t *specs = td->specifics; - asn_dec_rval_t rval = { RC_OK, 0 }; - long *native = (long *)*sptr; - const asn_per_constraint_t *ct; - long value; - - (void)opt_codec_ctx; - - if(constraints) ct = &constraints->value; - else if(td->encoding_constraints.per_constraints) - ct = &td->encoding_constraints.per_constraints->value; - else ASN__DECODE_FAILED; /* Mandatory! */ - if(!specs) ASN__DECODE_FAILED; - - if(!native) { - native = (long *)(*sptr = CALLOC(1, sizeof(*native))); - if(!native) ASN__DECODE_FAILED; - } - - ASN_DEBUG("Decoding %s as NativeEnumerated", td->name); - - if(ct->flags & APC_EXTENSIBLE) { - int inext = per_get_few_bits(pd, 1); - if(inext < 0) ASN__DECODE_STARVED; - if(inext) ct = 0; - } - - if(ct && ct->range_bits >= 0) { - value = per_get_few_bits(pd, ct->range_bits); - if(value < 0) ASN__DECODE_STARVED; - if(value >= (specs->extension - ? specs->extension - 1 : specs->map_count)) - ASN__DECODE_FAILED; - } else { - if(!specs->extension) - ASN__DECODE_FAILED; - /* - * X.691, #10.6: normally small non-negative whole number; - */ - value = uper_get_nsnnwn(pd); - if(value < 0) ASN__DECODE_STARVED; - value += specs->extension - 1; - if(value >= specs->map_count) - ASN__DECODE_FAILED; - } - - *native = specs->value2enum[value].nat_value; - ASN_DEBUG("Decoded %s = %ld", td->name, *native); - - return rval; -} - -static int -NativeEnumerated__compar_value2enum(const void *ap, const void *bp) { - const asn_INTEGER_enum_map_t *a = ap; - const asn_INTEGER_enum_map_t *b = bp; - if(a->nat_value == b->nat_value) - return 0; - if(a->nat_value < b->nat_value) - return -1; - return 1; -} - -asn_enc_rval_t -NativeEnumerated_encode_uper(const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, - const void *sptr, asn_per_outp_t *po) { - const asn_INTEGER_specifics_t *specs = - (const asn_INTEGER_specifics_t *)td->specifics; - asn_enc_rval_t er; - long native, value; - const asn_per_constraint_t *ct; - int inext = 0; - asn_INTEGER_enum_map_t key; - const asn_INTEGER_enum_map_t *kf; - - if(!sptr) ASN__ENCODE_FAILED; - if(!specs) ASN__ENCODE_FAILED; - - if(constraints) ct = &constraints->value; - else if(td->encoding_constraints.per_constraints) - ct = &td->encoding_constraints.per_constraints->value; - else ASN__ENCODE_FAILED; /* Mandatory! */ - - ASN_DEBUG("Encoding %s as NativeEnumerated", td->name); - - er.encoded = 0; - - native = *(const long *)sptr; - - key.nat_value = native; - kf = bsearch(&key, specs->value2enum, specs->map_count, - sizeof(key), NativeEnumerated__compar_value2enum); - if(!kf) { - ASN_DEBUG("No element corresponds to %ld", native); - ASN__ENCODE_FAILED; - } - value = kf - specs->value2enum; - - if(ct->range_bits >= 0) { - int cmpWith = specs->extension - ? specs->extension - 1 : specs->map_count; - if(value >= cmpWith) - inext = 1; - } - if(ct->flags & APC_EXTENSIBLE) { - if(per_put_few_bits(po, inext, 1)) - ASN__ENCODE_FAILED; - if(inext) ct = 0; - } else if(inext) { - ASN__ENCODE_FAILED; - } - - if(ct && ct->range_bits >= 0) { - if(per_put_few_bits(po, value, ct->range_bits)) - ASN__ENCODE_FAILED; - ASN__ENCODED_OK(er); - } - - if(!specs->extension) - ASN__ENCODE_FAILED; - - /* - * X.691, #10.6: normally small non-negative whole number; - */ - ASN_DEBUG("value = %ld, ext = %d, inext = %d, res = %ld", - value, specs->extension, inext, - value - (inext ? (specs->extension - 1) : 0)); - if(uper_put_nsnnwn(po, value - (inext ? (specs->extension - 1) : 0))) - ASN__ENCODE_FAILED; - - ASN__ENCODED_OK(er); -} - diff --git a/asn.1/generated/NativeEnumerated.h b/asn.1/generated/NativeEnumerated.h deleted file mode 100644 index 4d897a0b..00000000 --- a/asn.1/generated/NativeEnumerated.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2004-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -/* - * This type differs from the standard ENUMERATED in that it is modelled using - * the fixed machine type (long, int, short), so it can hold only values of - * limited length. There is no type (i.e., NativeEnumerated_t, any integer type - * will do). - * This type may be used when integer range is limited by subtype constraints. - */ -#ifndef _NativeEnumerated_H_ -#define _NativeEnumerated_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern asn_TYPE_descriptor_t asn_DEF_NativeEnumerated; -extern asn_TYPE_operation_t asn_OP_NativeEnumerated; - -xer_type_encoder_f NativeEnumerated_encode_xer; -oer_type_decoder_f NativeEnumerated_decode_oer; -oer_type_encoder_f NativeEnumerated_encode_oer; -per_type_decoder_f NativeEnumerated_decode_uper; -per_type_encoder_f NativeEnumerated_encode_uper; - -#define NativeEnumerated_free NativeInteger_free -#define NativeEnumerated_print NativeInteger_print -#define NativeEnumerated_compare NativeInteger_compare -#define NativeEnumerated_random_fill NativeInteger_random_fill -#define NativeEnumerated_constraint asn_generic_no_constraint -#define NativeEnumerated_decode_ber NativeInteger_decode_ber -#define NativeEnumerated_encode_der NativeInteger_encode_der -#define NativeEnumerated_decode_xer NativeInteger_decode_xer - -#ifdef __cplusplus -} -#endif - -#endif /* _NativeEnumerated_H_ */ diff --git a/asn.1/generated/NativeInteger.c b/asn.1/generated/NativeInteger.c deleted file mode 100644 index f1724375..00000000 --- a/asn.1/generated/NativeInteger.c +++ /dev/null @@ -1,484 +0,0 @@ -/*- - * Copyright (c) 2004, 2005, 2006 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -/* - * Read the NativeInteger.h for the explanation wrt. differences between - * INTEGER and NativeInteger. - * Basically, both are decoders and encoders of ASN.1 INTEGER type, but this - * implementation deals with the standard (machine-specific) representation - * of them instead of using the platform-independent buffer. - */ -#include -#include - -/* - * NativeInteger basic type description. - */ -static const ber_tlv_tag_t asn_DEF_NativeInteger_tags[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_operation_t asn_OP_NativeInteger = { - NativeInteger_free, - NativeInteger_print, - NativeInteger_compare, - NativeInteger_decode_ber, - NativeInteger_encode_der, - NativeInteger_decode_xer, - NativeInteger_encode_xer, -#ifdef ASN_DISABLE_OER_SUPPORT - 0, - 0, -#else - NativeInteger_decode_oer, /* OER decoder */ - NativeInteger_encode_oer, /* Canonical OER encoder */ -#endif /* ASN_DISABLE_OER_SUPPORT */ -#ifdef ASN_DISABLE_PER_SUPPORT - 0, - 0, -#else - NativeInteger_decode_uper, /* Unaligned PER decoder */ - NativeInteger_encode_uper, /* Unaligned PER encoder */ -#endif /* ASN_DISABLE_PER_SUPPORT */ - NativeInteger_random_fill, - 0 /* Use generic outmost tag fetcher */ -}; -asn_TYPE_descriptor_t asn_DEF_NativeInteger = { - "INTEGER", /* The ASN.1 type is still INTEGER */ - "INTEGER", - &asn_OP_NativeInteger, - asn_DEF_NativeInteger_tags, - sizeof(asn_DEF_NativeInteger_tags) / sizeof(asn_DEF_NativeInteger_tags[0]), - asn_DEF_NativeInteger_tags, /* Same as above */ - sizeof(asn_DEF_NativeInteger_tags) / sizeof(asn_DEF_NativeInteger_tags[0]), - { 0, 0, asn_generic_no_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - -/* - * Decode INTEGER type. - */ -asn_dec_rval_t -NativeInteger_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **nint_ptr, - const void *buf_ptr, size_t size, int tag_mode) { - const asn_INTEGER_specifics_t *specs = - (const asn_INTEGER_specifics_t *)td->specifics; - long *native = (long *)*nint_ptr; - asn_dec_rval_t rval; - ber_tlv_len_t length; - - /* - * If the structure is not there, allocate it. - */ - if(native == NULL) { - native = (long *)(*nint_ptr = CALLOC(1, sizeof(*native))); - if(native == NULL) { - rval.code = RC_FAIL; - rval.consumed = 0; - return rval; - } - } - - ASN_DEBUG("Decoding %s as INTEGER (tm=%d)", - td->name, tag_mode); - - /* - * Check tags. - */ - rval = ber_check_tags(opt_codec_ctx, td, 0, buf_ptr, size, - tag_mode, 0, &length, 0); - if(rval.code != RC_OK) - return rval; - - ASN_DEBUG("%s length is %d bytes", td->name, (int)length); - - /* - * Make sure we have this length. - */ - buf_ptr = ((const char *)buf_ptr) + rval.consumed; - size -= rval.consumed; - if(length > (ber_tlv_len_t)size) { - rval.code = RC_WMORE; - rval.consumed = 0; - return rval; - } - - /* - * ASN.1 encoded INTEGER: buf_ptr, length - * Fill the native, at the same time checking for overflow. - * If overflow occured, return with RC_FAIL. - */ - { - INTEGER_t tmp; - union { - const void *constbuf; - void *nonconstbuf; - } unconst_buf; - long l; - - unconst_buf.constbuf = buf_ptr; - tmp.buf = (uint8_t *)unconst_buf.nonconstbuf; - tmp.size = length; - - if((specs&&specs->field_unsigned) - ? asn_INTEGER2ulong(&tmp, (unsigned long *)&l) /* sic */ - : asn_INTEGER2long(&tmp, &l)) { - rval.code = RC_FAIL; - rval.consumed = 0; - return rval; - } - - *native = l; - } - - rval.code = RC_OK; - rval.consumed += length; - - ASN_DEBUG("Took %ld/%ld bytes to encode %s (%ld)", - (long)rval.consumed, (long)length, td->name, (long)*native); - - return rval; -} - -/* - * Encode the NativeInteger using the standard INTEGER type DER encoder. - */ -asn_enc_rval_t -NativeInteger_encode_der(const asn_TYPE_descriptor_t *sd, const void *ptr, - int tag_mode, ber_tlv_tag_t tag, - asn_app_consume_bytes_f *cb, void *app_key) { - unsigned long native = *(const unsigned long *)ptr; /* Disable sign ext. */ - asn_enc_rval_t erval; - INTEGER_t tmp; - -#ifdef WORDS_BIGENDIAN /* Opportunistic optimization */ - - tmp.buf = (uint8_t *)&native; - tmp.size = sizeof(native); - -#else /* Works even if WORDS_BIGENDIAN is not set where should've been */ - uint8_t buf[sizeof(native)]; - uint8_t *p; - - /* Prepare a fake INTEGER */ - for(p = buf + sizeof(buf) - 1; p >= buf; p--, native >>= 8) - *p = (uint8_t)native; - - tmp.buf = buf; - tmp.size = sizeof(buf); -#endif /* WORDS_BIGENDIAN */ - - /* Encode fake INTEGER */ - erval = INTEGER_encode_der(sd, &tmp, tag_mode, tag, cb, app_key); - if(erval.structure_ptr == &tmp) { - erval.structure_ptr = ptr; - } - return erval; -} - -/* - * Decode the chunk of XML text encoding INTEGER. - */ -asn_dec_rval_t -NativeInteger_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **sptr, - const char *opt_mname, const void *buf_ptr, - size_t size) { - const asn_INTEGER_specifics_t *specs = - (const asn_INTEGER_specifics_t *)td->specifics; - asn_dec_rval_t rval; - INTEGER_t st; - void *st_ptr = (void *)&st; - long *native = (long *)*sptr; - - if(!native) { - native = (long *)(*sptr = CALLOC(1, sizeof(*native))); - if(!native) ASN__DECODE_FAILED; - } - - memset(&st, 0, sizeof(st)); - rval = INTEGER_decode_xer(opt_codec_ctx, td, &st_ptr, - opt_mname, buf_ptr, size); - if(rval.code == RC_OK) { - long l; - if((specs&&specs->field_unsigned) - ? asn_INTEGER2ulong(&st, (unsigned long *)&l) /* sic */ - : asn_INTEGER2long(&st, &l)) { - rval.code = RC_FAIL; - rval.consumed = 0; - } else { - *native = l; - } - } else { - /* - * Cannot restart from the middle; - * there is no place to save state in the native type. - * Request a continuation from the very beginning. - */ - rval.consumed = 0; - } - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &st); - return rval; -} - - -asn_enc_rval_t -NativeInteger_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - const asn_INTEGER_specifics_t *specs = - (const asn_INTEGER_specifics_t *)td->specifics; - char scratch[32]; /* Enough for 64-bit int */ - asn_enc_rval_t er; - const long *native = (const long *)sptr; - - (void)ilevel; - (void)flags; - - if(!native) ASN__ENCODE_FAILED; - - er.encoded = snprintf(scratch, sizeof(scratch), - (specs && specs->field_unsigned) - ? "%lu" : "%ld", *native); - if(er.encoded <= 0 || (size_t)er.encoded >= sizeof(scratch) - || cb(scratch, er.encoded, app_key) < 0) - ASN__ENCODE_FAILED; - - ASN__ENCODED_OK(er); -} - -#ifndef ASN_DISABLE_PER_SUPPORT - -asn_dec_rval_t -NativeInteger_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, void **sptr, - asn_per_data_t *pd) { - const asn_INTEGER_specifics_t *specs = - (const asn_INTEGER_specifics_t *)td->specifics; - asn_dec_rval_t rval; - long *native = (long *)*sptr; - INTEGER_t tmpint; - void *tmpintptr = &tmpint; - - (void)opt_codec_ctx; - ASN_DEBUG("Decoding NativeInteger %s (UPER)", td->name); - - if(!native) { - native = (long *)(*sptr = CALLOC(1, sizeof(*native))); - if(!native) ASN__DECODE_FAILED; - } - - memset(&tmpint, 0, sizeof tmpint); - rval = INTEGER_decode_uper(opt_codec_ctx, td, constraints, - &tmpintptr, pd); - if(rval.code == RC_OK) { - if((specs&&specs->field_unsigned) - ? asn_INTEGER2ulong(&tmpint, (unsigned long *)native) - : asn_INTEGER2long(&tmpint, native)) - rval.code = RC_FAIL; - else - ASN_DEBUG("NativeInteger %s got value %ld", - td->name, *native); - } - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &tmpint); - - return rval; -} - -asn_enc_rval_t -NativeInteger_encode_uper(const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, - const void *sptr, asn_per_outp_t *po) { - const asn_INTEGER_specifics_t *specs = - (const asn_INTEGER_specifics_t *)td->specifics; - asn_enc_rval_t er; - long native; - INTEGER_t tmpint; - - if(!sptr) ASN__ENCODE_FAILED; - - native = *(const long *)sptr; - - ASN_DEBUG("Encoding NativeInteger %s %ld (UPER)", td->name, native); - - memset(&tmpint, 0, sizeof(tmpint)); - if((specs&&specs->field_unsigned) - ? asn_ulong2INTEGER(&tmpint, native) - : asn_long2INTEGER(&tmpint, native)) - ASN__ENCODE_FAILED; - er = INTEGER_encode_uper(td, constraints, &tmpint, po); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &tmpint); - return er; -} - -#endif /* ASN_DISABLE_PER_SUPPORT */ - -/* - * INTEGER specific human-readable output. - */ -int -NativeInteger_print(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - const asn_INTEGER_specifics_t *specs = - (const asn_INTEGER_specifics_t *)td->specifics; - const long *native = (const long *)sptr; - char scratch[32]; /* Enough for 64-bit int */ - int ret; - - (void)td; /* Unused argument */ - (void)ilevel; /* Unused argument */ - - if(native) { - long value = *native; - ret = snprintf(scratch, sizeof(scratch), - (specs && specs->field_unsigned) ? "%lu" : "%ld", value); - assert(ret > 0 && (size_t)ret < sizeof(scratch)); - if(cb(scratch, ret, app_key) < 0) return -1; - if(specs && (value >= 0 || !specs->field_unsigned)) { - const asn_INTEGER_enum_map_t *el = - INTEGER_map_value2enum(specs, value); - if(el) { - if(cb(" (", 2, app_key) < 0) return -1; - if(cb(el->enum_name, el->enum_len, app_key) < 0) return -1; - if(cb(")", 1, app_key) < 0) return -1; - } - } - return 0; - } else { - return (cb("", 8, app_key) < 0) ? -1 : 0; - } -} - -void -NativeInteger_free(const asn_TYPE_descriptor_t *td, void *ptr, - enum asn_struct_free_method method) { - if(!td || !ptr) - return; - - ASN_DEBUG("Freeing %s as INTEGER (%d, %p, Native)", - td->name, method, ptr); - - switch(method) { - case ASFM_FREE_EVERYTHING: - FREEMEM(ptr); - break; - case ASFM_FREE_UNDERLYING: - break; - case ASFM_FREE_UNDERLYING_AND_RESET: - memset(ptr, 0, sizeof(long)); - break; - } -} - -int -NativeInteger_compare(const asn_TYPE_descriptor_t *td, const void *aptr, const void *bptr) { - (void)td; - - if(aptr && bptr) { - const asn_INTEGER_specifics_t *specs = - (const asn_INTEGER_specifics_t *)td->specifics; - if(specs && specs->field_unsigned) { - const unsigned long *a = aptr; - const unsigned long *b = bptr; - if(*a < *b) { - return -1; - } else if(*a > *b) { - return 1; - } else { - return 0; - } - } else { - const long *a = aptr; - const long *b = bptr; - if(*a < *b) { - return -1; - } else if(*a > *b) { - return 1; - } else { - return 0; - } - } - } else if(!aptr) { - return -1; - } else { - return 1; - } -} - -asn_random_fill_result_t -NativeInteger_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constraints, - size_t max_length) { - const asn_INTEGER_specifics_t *specs = - (const asn_INTEGER_specifics_t *)td->specifics; - asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - long *st = *sptr; - const asn_INTEGER_enum_map_t *emap; - size_t emap_len; - intmax_t value; - int find_inside_map; - - if(max_length == 0) return result_skipped; - - if(st == NULL) { - st = (long *)CALLOC(1, sizeof(*st)); - if(st == NULL) { - return result_failed; - } - } - - if(specs) { - emap = specs->value2enum; - emap_len = specs->map_count; - if(specs->strict_enumeration) { - find_inside_map = emap_len > 0; - } else { - find_inside_map = emap_len ? asn_random_between(0, 1) : 0; - } - } else { - emap = 0; - emap_len = 0; - find_inside_map = 0; - } - - if(find_inside_map) { - assert(emap_len > 0); - value = emap[asn_random_between(0, emap_len - 1)].nat_value; - } else { - const asn_per_constraints_t *ct; - - static const long variants[] = { - -65536, -65535, -65534, -32769, -32768, -32767, -16385, -16384, - -16383, -257, -256, -255, -254, -129, -128, -127, - -126, -1, 0, 1, 126, 127, 128, 129, - 254, 255, 256, 257, 16383, 16384, 16385, 32767, - 32768, 32769, 65534, 65535, 65536, 65537}; - if(specs && specs->field_unsigned) { - assert(variants[18] == 0); - value = variants[asn_random_between( - 18, sizeof(variants) / sizeof(variants[0]) - 1)]; - } else { - value = variants[asn_random_between( - 0, sizeof(variants) / sizeof(variants[0]) - 1)]; - } - - if(!constraints) constraints = &td->encoding_constraints; - ct = constraints ? constraints->per_constraints : 0; - if(ct && (ct->value.flags & APC_CONSTRAINED)) { - if(value < ct->value.lower_bound || value > ct->value.upper_bound) { - value = asn_random_between(ct->value.lower_bound, - ct->value.upper_bound); - } - } - } - - *sptr = st; - *st = value; - return result_ok; -} diff --git a/asn.1/generated/NativeInteger.h b/asn.1/generated/NativeInteger.h deleted file mode 100644 index e2741c20..00000000 --- a/asn.1/generated/NativeInteger.h +++ /dev/null @@ -1,44 +0,0 @@ -/*- - * Copyright (c) 2004-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -/* - * This type differs from the standard INTEGER in that it is modelled using - * the fixed machine type (long, int, short), so it can hold only values of - * limited length. There is no type (i.e., NativeInteger_t, any integer type - * will do). - * This type may be used when integer range is limited by subtype constraints. - */ -#ifndef _NativeInteger_H_ -#define _NativeInteger_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern asn_TYPE_descriptor_t asn_DEF_NativeInteger; -extern asn_TYPE_operation_t asn_OP_NativeInteger; - -asn_struct_free_f NativeInteger_free; -asn_struct_print_f NativeInteger_print; -asn_struct_compare_f NativeInteger_compare; -ber_type_decoder_f NativeInteger_decode_ber; -der_type_encoder_f NativeInteger_encode_der; -xer_type_decoder_f NativeInteger_decode_xer; -xer_type_encoder_f NativeInteger_encode_xer; -oer_type_decoder_f NativeInteger_decode_oer; -oer_type_encoder_f NativeInteger_encode_oer; -per_type_decoder_f NativeInteger_decode_uper; -per_type_encoder_f NativeInteger_encode_uper; -asn_random_fill_f NativeInteger_random_fill; - -#define NativeInteger_constraint asn_generic_no_constraint - -#ifdef __cplusplus -} -#endif - -#endif /* _NativeInteger_H_ */ diff --git a/asn.1/generated/NavIC-CDC-r16.c b/asn.1/generated/NavIC-CDC-r16.c deleted file mode 100644 index 34020f9f..00000000 --- a/asn.1/generated/NavIC-CDC-r16.c +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NavIC-CDC-r16.h" - -static int -memb_navic_ClockBiasCorrection_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -4096 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_ClockDriftCorrection_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_navic_ClockBiasCorrection_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_ClockDriftCorrection_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NavIC_CDC_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NavIC_CDC_r16, navic_ClockBiasCorrection_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_ClockBiasCorrection_r16_constr_2, memb_navic_ClockBiasCorrection_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-ClockBiasCorrection-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavIC_CDC_r16, navic_ClockDriftCorrection_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_ClockDriftCorrection_r16_constr_3, memb_navic_ClockDriftCorrection_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-ClockDriftCorrection-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NavIC_CDC_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NavIC_CDC_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* navic-ClockBiasCorrection-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* navic-ClockDriftCorrection-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NavIC_CDC_r16_specs_1 = { - sizeof(struct NavIC_CDC_r16), - offsetof(struct NavIC_CDC_r16, _asn_ctx), - asn_MAP_NavIC_CDC_r16_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NavIC_CDC_r16 = { - "NavIC-CDC-r16", - "NavIC-CDC-r16", - &asn_OP_SEQUENCE, - asn_DEF_NavIC_CDC_r16_tags_1, - sizeof(asn_DEF_NavIC_CDC_r16_tags_1) - /sizeof(asn_DEF_NavIC_CDC_r16_tags_1[0]), /* 1 */ - asn_DEF_NavIC_CDC_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NavIC_CDC_r16_tags_1) - /sizeof(asn_DEF_NavIC_CDC_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NavIC_CDC_r16_1, - 2, /* Elements count */ - &asn_SPC_NavIC_CDC_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NavIC-ClockModel-r16.c b/asn.1/generated/NavIC-ClockModel-r16.c deleted file mode 100644 index 1074ad8c..00000000 --- a/asn.1/generated/NavIC-ClockModel-r16.c +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NavIC-ClockModel-r16.h" - -static int -memb_navic_Toc_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_af2_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_af1_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_af0_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2097152 && value <= 2097151)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_Tgd_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_navic_Toc_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_af2_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_af1_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_af0_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, -2097152, 2097151 } /* (-2097152..2097151) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_Tgd_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NavIC_ClockModel_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NavIC_ClockModel_r16, navic_Toc_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_Toc_r16_constr_2, memb_navic_Toc_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-Toc-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavIC_ClockModel_r16, navic_af2_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_af2_r16_constr_3, memb_navic_af2_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-af2-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavIC_ClockModel_r16, navic_af1_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_af1_r16_constr_4, memb_navic_af1_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-af1-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavIC_ClockModel_r16, navic_af0_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_af0_r16_constr_5, memb_navic_af0_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-af0-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavIC_ClockModel_r16, navic_Tgd_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_Tgd_r16_constr_6, memb_navic_Tgd_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-Tgd-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NavIC_ClockModel_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NavIC_ClockModel_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* navic-Toc-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* navic-af2-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* navic-af1-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* navic-af0-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* navic-Tgd-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NavIC_ClockModel_r16_specs_1 = { - sizeof(struct NavIC_ClockModel_r16), - offsetof(struct NavIC_ClockModel_r16, _asn_ctx), - asn_MAP_NavIC_ClockModel_r16_tag2el_1, - 5, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NavIC_ClockModel_r16 = { - "NavIC-ClockModel-r16", - "NavIC-ClockModel-r16", - &asn_OP_SEQUENCE, - asn_DEF_NavIC_ClockModel_r16_tags_1, - sizeof(asn_DEF_NavIC_ClockModel_r16_tags_1) - /sizeof(asn_DEF_NavIC_ClockModel_r16_tags_1[0]), /* 1 */ - asn_DEF_NavIC_ClockModel_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NavIC_ClockModel_r16_tags_1) - /sizeof(asn_DEF_NavIC_ClockModel_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NavIC_ClockModel_r16_1, - 5, /* Elements count */ - &asn_SPC_NavIC_ClockModel_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NavIC-CorrectionElementAutoNav-r16.c b/asn.1/generated/NavIC-CorrectionElementAutoNav-r16.c deleted file mode 100644 index 9568cac9..00000000 --- a/asn.1/generated/NavIC-CorrectionElementAutoNav-r16.c +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NavIC-CorrectionElementAutoNav-r16.h" - -static int -memb_navic_Tod_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_iodec_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_UDRAI_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_UDRArateI_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_navic_Tod_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_iodec_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_UDRAI_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, -16, 15 } /* (-16..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_UDRArateI_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, -16, 15 } /* (-16..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NavIC_CorrectionElementAutoNav_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NavIC_CorrectionElementAutoNav_r16, svID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavIC_CorrectionElementAutoNav_r16, navic_Tod_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_Tod_r16_constr_3, memb_navic_Tod_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-Tod-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavIC_CorrectionElementAutoNav_r16, navic_iodec_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_iodec_r16_constr_4, memb_navic_iodec_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-iodec-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavIC_CorrectionElementAutoNav_r16, navic_UDRAI_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_UDRAI_r16_constr_5, memb_navic_UDRAI_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-UDRAI-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavIC_CorrectionElementAutoNav_r16, navic_UDRArateI_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_UDRArateI_r16_constr_6, memb_navic_UDRArateI_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-UDRArateI-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavIC_CorrectionElementAutoNav_r16, navic_EDC_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NavIC_EDC_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "navic-EDC-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavIC_CorrectionElementAutoNav_r16, navic_CDC_r16), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NavIC_CDC_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "navic-CDC-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NavIC_CorrectionElementAutoNav_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NavIC_CorrectionElementAutoNav_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* navic-Tod-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* navic-iodec-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* navic-UDRAI-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* navic-UDRArateI-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* navic-EDC-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* navic-CDC-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NavIC_CorrectionElementAutoNav_r16_specs_1 = { - sizeof(struct NavIC_CorrectionElementAutoNav_r16), - offsetof(struct NavIC_CorrectionElementAutoNav_r16, _asn_ctx), - asn_MAP_NavIC_CorrectionElementAutoNav_r16_tag2el_1, - 7, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 7, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NavIC_CorrectionElementAutoNav_r16 = { - "NavIC-CorrectionElementAutoNav-r16", - "NavIC-CorrectionElementAutoNav-r16", - &asn_OP_SEQUENCE, - asn_DEF_NavIC_CorrectionElementAutoNav_r16_tags_1, - sizeof(asn_DEF_NavIC_CorrectionElementAutoNav_r16_tags_1) - /sizeof(asn_DEF_NavIC_CorrectionElementAutoNav_r16_tags_1[0]), /* 1 */ - asn_DEF_NavIC_CorrectionElementAutoNav_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NavIC_CorrectionElementAutoNav_r16_tags_1) - /sizeof(asn_DEF_NavIC_CorrectionElementAutoNav_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NavIC_CorrectionElementAutoNav_r16_1, - 7, /* Elements count */ - &asn_SPC_NavIC_CorrectionElementAutoNav_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NavIC-CorrectionListAutoNav-r16.c b/asn.1/generated/NavIC-CorrectionListAutoNav-r16.c deleted file mode 100644 index d27a867c..00000000 --- a/asn.1/generated/NavIC-CorrectionListAutoNav-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NavIC-CorrectionListAutoNav-r16.h" - -asn_per_constraints_t asn_PER_type_NavIC_CorrectionListAutoNav_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NavIC_CorrectionListAutoNav_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NavIC_CorrectionElementAutoNav_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_NavIC_CorrectionListAutoNav_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_NavIC_CorrectionListAutoNav_r16_specs_1 = { - sizeof(struct NavIC_CorrectionListAutoNav_r16), - offsetof(struct NavIC_CorrectionListAutoNav_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_NavIC_CorrectionListAutoNav_r16 = { - "NavIC-CorrectionListAutoNav-r16", - "NavIC-CorrectionListAutoNav-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_NavIC_CorrectionListAutoNav_r16_tags_1, - sizeof(asn_DEF_NavIC_CorrectionListAutoNav_r16_tags_1) - /sizeof(asn_DEF_NavIC_CorrectionListAutoNav_r16_tags_1[0]), /* 1 */ - asn_DEF_NavIC_CorrectionListAutoNav_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NavIC_CorrectionListAutoNav_r16_tags_1) - /sizeof(asn_DEF_NavIC_CorrectionListAutoNav_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_NavIC_CorrectionListAutoNav_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_NavIC_CorrectionListAutoNav_r16_1, - 1, /* Single element */ - &asn_SPC_NavIC_CorrectionListAutoNav_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NavIC-DifferentialCorrections-r16.c b/asn.1/generated/NavIC-DifferentialCorrections-r16.c deleted file mode 100644 index 74434c48..00000000 --- a/asn.1/generated/NavIC-DifferentialCorrections-r16.c +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NavIC-DifferentialCorrections-r16.h" - -static int -memb_navic_RefTOWC_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 50400)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_navic_RefTOWC_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 50400 } /* (0..50400) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NavIC_DifferentialCorrections_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NavIC_DifferentialCorrections_r16, navic_RefTOWC_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_RefTOWC_r16_constr_2, memb_navic_RefTOWC_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-RefTOWC-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavIC_DifferentialCorrections_r16, navic_CorrectionListAutoNav_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NavIC_CorrectionListAutoNav_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "navic-CorrectionListAutoNav-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NavIC_DifferentialCorrections_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NavIC_DifferentialCorrections_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* navic-RefTOWC-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* navic-CorrectionListAutoNav-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NavIC_DifferentialCorrections_r16_specs_1 = { - sizeof(struct NavIC_DifferentialCorrections_r16), - offsetof(struct NavIC_DifferentialCorrections_r16, _asn_ctx), - asn_MAP_NavIC_DifferentialCorrections_r16_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NavIC_DifferentialCorrections_r16 = { - "NavIC-DifferentialCorrections-r16", - "NavIC-DifferentialCorrections-r16", - &asn_OP_SEQUENCE, - asn_DEF_NavIC_DifferentialCorrections_r16_tags_1, - sizeof(asn_DEF_NavIC_DifferentialCorrections_r16_tags_1) - /sizeof(asn_DEF_NavIC_DifferentialCorrections_r16_tags_1[0]), /* 1 */ - asn_DEF_NavIC_DifferentialCorrections_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NavIC_DifferentialCorrections_r16_tags_1) - /sizeof(asn_DEF_NavIC_DifferentialCorrections_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NavIC_DifferentialCorrections_r16_1, - 2, /* Elements count */ - &asn_SPC_NavIC_DifferentialCorrections_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NavIC-DifferentialCorrectionsReq-r16.c b/asn.1/generated/NavIC-DifferentialCorrectionsReq-r16.c deleted file mode 100644 index 0e075e32..00000000 --- a/asn.1/generated/NavIC-DifferentialCorrectionsReq-r16.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NavIC-DifferentialCorrectionsReq-r16.h" - -asn_TYPE_member_t asn_MBR_NavIC_DifferentialCorrectionsReq_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NavIC_DifferentialCorrectionsReq_r16, dgnss_SignalsReq_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalIDs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dgnss-SignalsReq-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NavIC_DifferentialCorrectionsReq_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NavIC_DifferentialCorrectionsReq_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* dgnss-SignalsReq-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NavIC_DifferentialCorrectionsReq_r16_specs_1 = { - sizeof(struct NavIC_DifferentialCorrectionsReq_r16), - offsetof(struct NavIC_DifferentialCorrectionsReq_r16, _asn_ctx), - asn_MAP_NavIC_DifferentialCorrectionsReq_r16_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NavIC_DifferentialCorrectionsReq_r16 = { - "NavIC-DifferentialCorrectionsReq-r16", - "NavIC-DifferentialCorrectionsReq-r16", - &asn_OP_SEQUENCE, - asn_DEF_NavIC_DifferentialCorrectionsReq_r16_tags_1, - sizeof(asn_DEF_NavIC_DifferentialCorrectionsReq_r16_tags_1) - /sizeof(asn_DEF_NavIC_DifferentialCorrectionsReq_r16_tags_1[0]), /* 1 */ - asn_DEF_NavIC_DifferentialCorrectionsReq_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NavIC_DifferentialCorrectionsReq_r16_tags_1) - /sizeof(asn_DEF_NavIC_DifferentialCorrectionsReq_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NavIC_DifferentialCorrectionsReq_r16_1, - 1, /* Elements count */ - &asn_SPC_NavIC_DifferentialCorrectionsReq_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NavIC-DifferentialCorrectionsSupport-r16.c b/asn.1/generated/NavIC-DifferentialCorrectionsSupport-r16.c deleted file mode 100644 index bf188b4d..00000000 --- a/asn.1/generated/NavIC-DifferentialCorrectionsSupport-r16.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NavIC-DifferentialCorrectionsSupport-r16.h" - -asn_TYPE_member_t asn_MBR_NavIC_DifferentialCorrectionsSupport_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NavIC_DifferentialCorrectionsSupport_r16, gnssSignalIDs_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalIDs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnssSignalIDs-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NavIC_DifferentialCorrectionsSupport_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NavIC_DifferentialCorrectionsSupport_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnssSignalIDs-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NavIC_DifferentialCorrectionsSupport_r16_specs_1 = { - sizeof(struct NavIC_DifferentialCorrectionsSupport_r16), - offsetof(struct NavIC_DifferentialCorrectionsSupport_r16, _asn_ctx), - asn_MAP_NavIC_DifferentialCorrectionsSupport_r16_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NavIC_DifferentialCorrectionsSupport_r16 = { - "NavIC-DifferentialCorrectionsSupport-r16", - "NavIC-DifferentialCorrectionsSupport-r16", - &asn_OP_SEQUENCE, - asn_DEF_NavIC_DifferentialCorrectionsSupport_r16_tags_1, - sizeof(asn_DEF_NavIC_DifferentialCorrectionsSupport_r16_tags_1) - /sizeof(asn_DEF_NavIC_DifferentialCorrectionsSupport_r16_tags_1[0]), /* 1 */ - asn_DEF_NavIC_DifferentialCorrectionsSupport_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NavIC_DifferentialCorrectionsSupport_r16_tags_1) - /sizeof(asn_DEF_NavIC_DifferentialCorrectionsSupport_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NavIC_DifferentialCorrectionsSupport_r16_1, - 1, /* Elements count */ - &asn_SPC_NavIC_DifferentialCorrectionsSupport_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NavIC-EDC-r16.c b/asn.1/generated/NavIC-EDC-r16.c deleted file mode 100644 index ae84abe1..00000000 --- a/asn.1/generated/NavIC-EDC-r16.c +++ /dev/null @@ -1,280 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NavIC-EDC-r16.h" - -static int -memb_navic_AlphaEDC_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8192 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_BetaEDC_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8192 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_GammaEDC_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16384 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_AoIcorrection_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2048 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_AoRAcorrection_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2048 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navic_SemiMajorcorrection_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2048 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_navic_AlphaEDC_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_BetaEDC_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_GammaEDC_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_AoIcorrection_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_AoRAcorrection_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navic_SemiMajorcorrection_r16_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NavIC_EDC_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NavIC_EDC_r16, navic_AlphaEDC_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_AlphaEDC_r16_constr_2, memb_navic_AlphaEDC_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-AlphaEDC-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavIC_EDC_r16, navic_BetaEDC_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_BetaEDC_r16_constr_3, memb_navic_BetaEDC_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-BetaEDC-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavIC_EDC_r16, navic_GammaEDC_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_GammaEDC_r16_constr_4, memb_navic_GammaEDC_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-GammaEDC-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavIC_EDC_r16, navic_AoIcorrection_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_AoIcorrection_r16_constr_5, memb_navic_AoIcorrection_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-AoIcorrection-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavIC_EDC_r16, navic_AoRAcorrection_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_AoRAcorrection_r16_constr_6, memb_navic_AoRAcorrection_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-AoRAcorrection-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavIC_EDC_r16, navic_SemiMajorcorrection_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_SemiMajorcorrection_r16_constr_7, memb_navic_SemiMajorcorrection_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-SemiMajorcorrection-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NavIC_EDC_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NavIC_EDC_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* navic-AlphaEDC-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* navic-BetaEDC-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* navic-GammaEDC-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* navic-AoIcorrection-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* navic-AoRAcorrection-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* navic-SemiMajorcorrection-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NavIC_EDC_r16_specs_1 = { - sizeof(struct NavIC_EDC_r16), - offsetof(struct NavIC_EDC_r16, _asn_ctx), - asn_MAP_NavIC_EDC_r16_tag2el_1, - 6, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NavIC_EDC_r16 = { - "NavIC-EDC-r16", - "NavIC-EDC-r16", - &asn_OP_SEQUENCE, - asn_DEF_NavIC_EDC_r16_tags_1, - sizeof(asn_DEF_NavIC_EDC_r16_tags_1) - /sizeof(asn_DEF_NavIC_EDC_r16_tags_1[0]), /* 1 */ - asn_DEF_NavIC_EDC_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NavIC_EDC_r16_tags_1) - /sizeof(asn_DEF_NavIC_EDC_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NavIC_EDC_r16_1, - 6, /* Elements count */ - &asn_SPC_NavIC_EDC_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NavIC-GridModelParameter-r16.c b/asn.1/generated/NavIC-GridModelParameter-r16.c deleted file mode 100644 index 257a7ea2..00000000 --- a/asn.1/generated/NavIC-GridModelParameter-r16.c +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NavIC-GridModelParameter-r16.h" - -static int -memb_navic_RefTOWC_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 50400)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_regionMasked_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_navic_RefTOWC_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 50400 } /* (0..50400) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_regionMasked_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NavIC_GridModelParameter_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NavIC_GridModelParameter_r16, navic_RefTOWC_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navic_RefTOWC_r16_constr_2, memb_navic_RefTOWC_r16_constraint_1 }, - 0, 0, /* No default value */ - "navic-RefTOWC-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavIC_GridModelParameter_r16, regionMasked_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_regionMasked_r16_constr_3, memb_regionMasked_r16_constraint_1 }, - 0, 0, /* No default value */ - "regionMasked-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavIC_GridModelParameter_r16, regionIgpList_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RegionIgpList_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "regionIgpList-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NavIC_GridModelParameter_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NavIC_GridModelParameter_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* navic-RefTOWC-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* regionMasked-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* regionIgpList-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NavIC_GridModelParameter_r16_specs_1 = { - sizeof(struct NavIC_GridModelParameter_r16), - offsetof(struct NavIC_GridModelParameter_r16, _asn_ctx), - asn_MAP_NavIC_GridModelParameter_r16_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NavIC_GridModelParameter_r16 = { - "NavIC-GridModelParameter-r16", - "NavIC-GridModelParameter-r16", - &asn_OP_SEQUENCE, - asn_DEF_NavIC_GridModelParameter_r16_tags_1, - sizeof(asn_DEF_NavIC_GridModelParameter_r16_tags_1) - /sizeof(asn_DEF_NavIC_GridModelParameter_r16_tags_1[0]), /* 1 */ - asn_DEF_NavIC_GridModelParameter_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NavIC_GridModelParameter_r16_tags_1) - /sizeof(asn_DEF_NavIC_GridModelParameter_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NavIC_GridModelParameter_r16_1, - 3, /* Elements count */ - &asn_SPC_NavIC_GridModelParameter_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NavIC-GridModelReq-r16.c b/asn.1/generated/NavIC-GridModelReq-r16.c deleted file mode 100644 index a1622b3f..00000000 --- a/asn.1/generated/NavIC-GridModelReq-r16.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NavIC-GridModelReq-r16.h" - -static const ber_tlv_tag_t asn_DEF_NavIC_GridModelReq_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_NavIC_GridModelReq_r16_specs_1 = { - sizeof(struct NavIC_GridModelReq_r16), - offsetof(struct NavIC_GridModelReq_r16, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NavIC_GridModelReq_r16 = { - "NavIC-GridModelReq-r16", - "NavIC-GridModelReq-r16", - &asn_OP_SEQUENCE, - asn_DEF_NavIC_GridModelReq_r16_tags_1, - sizeof(asn_DEF_NavIC_GridModelReq_r16_tags_1) - /sizeof(asn_DEF_NavIC_GridModelReq_r16_tags_1[0]), /* 1 */ - asn_DEF_NavIC_GridModelReq_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NavIC_GridModelReq_r16_tags_1) - /sizeof(asn_DEF_NavIC_GridModelReq_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_NavIC_GridModelReq_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NavIC-GridModelSupport-r16.c b/asn.1/generated/NavIC-GridModelSupport-r16.c deleted file mode 100644 index 1934c21e..00000000 --- a/asn.1/generated/NavIC-GridModelSupport-r16.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NavIC-GridModelSupport-r16.h" - -static const ber_tlv_tag_t asn_DEF_NavIC_GridModelSupport_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_NavIC_GridModelSupport_r16_specs_1 = { - sizeof(struct NavIC_GridModelSupport_r16), - offsetof(struct NavIC_GridModelSupport_r16, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NavIC_GridModelSupport_r16 = { - "NavIC-GridModelSupport-r16", - "NavIC-GridModelSupport-r16", - &asn_OP_SEQUENCE, - asn_DEF_NavIC_GridModelSupport_r16_tags_1, - sizeof(asn_DEF_NavIC_GridModelSupport_r16_tags_1) - /sizeof(asn_DEF_NavIC_GridModelSupport_r16_tags_1[0]), /* 1 */ - asn_DEF_NavIC_GridModelSupport_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NavIC_GridModelSupport_r16_tags_1) - /sizeof(asn_DEF_NavIC_GridModelSupport_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_NavIC_GridModelSupport_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NavModel-BDS-KeplerianSet-r12.c b/asn.1/generated/NavModel-BDS-KeplerianSet-r12.c deleted file mode 100644 index 56cdcc6d..00000000 --- a/asn.1/generated/NavModel-BDS-KeplerianSet-r12.c +++ /dev/null @@ -1,842 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NavModel-BDS-KeplerianSet-r12.h" - -static int -bdsAPowerHalf_r12_5_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -static int -bdsE_r12_6_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -static int -memb_bdsAODE_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 31)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsURAI_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsToe_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 131071)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsAPowerHalf_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -static int -memb_bdsE_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -static int -memb_bdsW_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsDeltaN_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsM0_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsOmega0_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsOmegaDot_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsI0_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsIDot_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8192 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsCuc_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -131072 && value <= 131071)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsCus_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -131072 && value <= 131071)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsCrc_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -131072 && value <= 131071)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsCrs_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -131072 && value <= 131071)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsCic_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -131072 && value <= 131071)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsCis_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -131072 && value <= 131071)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_bdsAPowerHalf_r12_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_bdsE_r12_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsAODE_r12_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsURAI_r12_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsToe_r12_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 17, -1, 0, 131071 } /* (0..131071) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsAPowerHalf_r12_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsE_r12_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsW_r12_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsDeltaN_r12_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsM0_r12_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsOmega0_r12_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsOmegaDot_r12_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsI0_r12_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsIDot_r12_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsCuc_r12_constr_14 CC_NOTUSED = { - { APC_CONSTRAINED, 18, -1, -131072, 131071 } /* (-131072..131071) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsCus_r12_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 18, -1, -131072, 131071 } /* (-131072..131071) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsCrc_r12_constr_16 CC_NOTUSED = { - { APC_CONSTRAINED, 18, -1, -131072, 131071 } /* (-131072..131071) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsCrs_r12_constr_17 CC_NOTUSED = { - { APC_CONSTRAINED, 18, -1, -131072, 131071 } /* (-131072..131071) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsCic_r12_constr_18 CC_NOTUSED = { - { APC_CONSTRAINED, 18, -1, -131072, 131071 } /* (-131072..131071) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsCis_r12_constr_19 CC_NOTUSED = { - { APC_CONSTRAINED, 18, -1, -131072, 131071 } /* (-131072..131071) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_specifics_t asn_SPC_bdsAPowerHalf_r12_specs_5 = { - 0, 0, 0, 0, 0, - 0, /* Native long size */ - 1 /* Unsigned representation */ -}; -static const ber_tlv_tag_t asn_DEF_bdsAPowerHalf_r12_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_bdsAPowerHalf_r12_5 = { - "bdsAPowerHalf-r12", - "bdsAPowerHalf-r12", - &asn_OP_NativeInteger, - asn_DEF_bdsAPowerHalf_r12_tags_5, - sizeof(asn_DEF_bdsAPowerHalf_r12_tags_5) - /sizeof(asn_DEF_bdsAPowerHalf_r12_tags_5[0]) - 1, /* 1 */ - asn_DEF_bdsAPowerHalf_r12_tags_5, /* Same as above */ - sizeof(asn_DEF_bdsAPowerHalf_r12_tags_5) - /sizeof(asn_DEF_bdsAPowerHalf_r12_tags_5[0]), /* 2 */ - { 0, &asn_PER_type_bdsAPowerHalf_r12_constr_5, bdsAPowerHalf_r12_5_constraint }, - 0, 0, /* No members */ - &asn_SPC_bdsAPowerHalf_r12_specs_5 /* Additional specs */ -}; - -static const asn_INTEGER_specifics_t asn_SPC_bdsE_r12_specs_6 = { - 0, 0, 0, 0, 0, - 0, /* Native long size */ - 1 /* Unsigned representation */ -}; -static const ber_tlv_tag_t asn_DEF_bdsE_r12_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_bdsE_r12_6 = { - "bdsE-r12", - "bdsE-r12", - &asn_OP_NativeInteger, - asn_DEF_bdsE_r12_tags_6, - sizeof(asn_DEF_bdsE_r12_tags_6) - /sizeof(asn_DEF_bdsE_r12_tags_6[0]) - 1, /* 1 */ - asn_DEF_bdsE_r12_tags_6, /* Same as above */ - sizeof(asn_DEF_bdsE_r12_tags_6) - /sizeof(asn_DEF_bdsE_r12_tags_6[0]), /* 2 */ - { 0, &asn_PER_type_bdsE_r12_constr_6, bdsE_r12_6_constraint }, - 0, 0, /* No members */ - &asn_SPC_bdsE_r12_specs_6 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NavModel_BDS_KeplerianSet_r12_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsAODE_r12), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsAODE_r12_constr_2, memb_bdsAODE_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsAODE-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsURAI_r12), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsURAI_r12_constr_3, memb_bdsURAI_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsURAI-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsToe_r12), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsToe_r12_constr_4, memb_bdsToe_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsToe-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsAPowerHalf_r12), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_bdsAPowerHalf_r12_5, - 0, - { 0, &asn_PER_memb_bdsAPowerHalf_r12_constr_5, memb_bdsAPowerHalf_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsAPowerHalf-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsE_r12), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_bdsE_r12_6, - 0, - { 0, &asn_PER_memb_bdsE_r12_constr_6, memb_bdsE_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsE-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsW_r12), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsW_r12_constr_7, memb_bdsW_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsW-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsDeltaN_r12), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsDeltaN_r12_constr_8, memb_bdsDeltaN_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsDeltaN-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsM0_r12), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsM0_r12_constr_9, memb_bdsM0_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsM0-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsOmega0_r12), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsOmega0_r12_constr_10, memb_bdsOmega0_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsOmega0-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsOmegaDot_r12), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsOmegaDot_r12_constr_11, memb_bdsOmegaDot_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsOmegaDot-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsI0_r12), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsI0_r12_constr_12, memb_bdsI0_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsI0-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsIDot_r12), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsIDot_r12_constr_13, memb_bdsIDot_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsIDot-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsCuc_r12), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsCuc_r12_constr_14, memb_bdsCuc_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsCuc-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsCus_r12), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsCus_r12_constr_15, memb_bdsCus_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsCus-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsCrc_r12), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsCrc_r12_constr_16, memb_bdsCrc_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsCrc-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsCrs_r12), - (ASN_TAG_CLASS_CONTEXT | (15 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsCrs_r12_constr_17, memb_bdsCrs_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsCrs-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsCic_r12), - (ASN_TAG_CLASS_CONTEXT | (16 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsCic_r12_constr_18, memb_bdsCic_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsCic-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsCis_r12), - (ASN_TAG_CLASS_CONTEXT | (17 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsCis_r12_constr_19, memb_bdsCis_r12_constraint_1 }, - 0, 0, /* No default value */ - "bdsCis-r12" - }, -}; -static const ber_tlv_tag_t asn_DEF_NavModel_BDS_KeplerianSet_r12_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NavModel_BDS_KeplerianSet_r12_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bdsAODE-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bdsURAI-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bdsToe-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* bdsAPowerHalf-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* bdsE-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* bdsW-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* bdsDeltaN-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* bdsM0-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* bdsOmega0-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* bdsOmegaDot-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* bdsI0-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* bdsIDot-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* bdsCuc-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* bdsCus-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* bdsCrc-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* bdsCrs-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 }, /* bdsCic-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (17 << 2)), 17, 0, 0 } /* bdsCis-r12 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NavModel_BDS_KeplerianSet_r12_specs_1 = { - sizeof(struct NavModel_BDS_KeplerianSet_r12), - offsetof(struct NavModel_BDS_KeplerianSet_r12, _asn_ctx), - asn_MAP_NavModel_BDS_KeplerianSet_r12_tag2el_1, - 18, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 18, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NavModel_BDS_KeplerianSet_r12 = { - "NavModel-BDS-KeplerianSet-r12", - "NavModel-BDS-KeplerianSet-r12", - &asn_OP_SEQUENCE, - asn_DEF_NavModel_BDS_KeplerianSet_r12_tags_1, - sizeof(asn_DEF_NavModel_BDS_KeplerianSet_r12_tags_1) - /sizeof(asn_DEF_NavModel_BDS_KeplerianSet_r12_tags_1[0]), /* 1 */ - asn_DEF_NavModel_BDS_KeplerianSet_r12_tags_1, /* Same as above */ - sizeof(asn_DEF_NavModel_BDS_KeplerianSet_r12_tags_1) - /sizeof(asn_DEF_NavModel_BDS_KeplerianSet_r12_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NavModel_BDS_KeplerianSet_r12_1, - 18, /* Elements count */ - &asn_SPC_NavModel_BDS_KeplerianSet_r12_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NavModel-BDS-KeplerianSet2-r16.c b/asn.1/generated/NavModel-BDS-KeplerianSet2-r16.c deleted file mode 100644 index fc28a7a2..00000000 --- a/asn.1/generated/NavModel-BDS-KeplerianSet2-r16.c +++ /dev/null @@ -1,830 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NavModel-BDS-KeplerianSet2-r16.h" - -static int -memb_bdsIODE_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsToe_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsDeltaA_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -33554432 && value <= 33554431)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsAdot_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16777216 && value <= 16777216)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsDeltaN0_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -65536 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsDeltaN0dot_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -4194304 && value <= 4194303)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsM0_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const INTEGER_t *st = (const INTEGER_t *)sptr; - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(asn_INTEGER2long(st, &value)) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value too large (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if((value >= -4294967296 && value <= 4294967295)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsE_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const INTEGER_t *st = (const INTEGER_t *)sptr; - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(asn_INTEGER2long(st, &value)) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value too large (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if((value >= 0 && value <= 8589934591)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsOmega_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const INTEGER_t *st = (const INTEGER_t *)sptr; - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(asn_INTEGER2long(st, &value)) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value too large (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if((value >= -4294967296 && value <= 4294967295)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsOmega0_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const INTEGER_t *st = (const INTEGER_t *)sptr; - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(asn_INTEGER2long(st, &value)) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value too large (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if((value >= -4294967296 && value <= 4294967295)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsI0_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const INTEGER_t *st = (const INTEGER_t *)sptr; - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(asn_INTEGER2long(st, &value)) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value too large (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if((value >= -4294967296 && value <= 4294967295)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsOmegaDot_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -262144 && value <= 262143)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsI0Dot_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16384 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsCuc_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1048576 && value <= 1048575)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsCus_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1048576 && value <= 1048575)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsCrc_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsCrs_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsCic_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bdsCis_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_bdsIODE_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsToe_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsDeltaA_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 26, -1, -33554432, 33554431 } /* (-33554432..33554431) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsAdot_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 26, -1, -16777216, 16777216 } /* (-16777216..16777216) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsDeltaN0_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 17, -1, -65536, 65535 } /* (-65536..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsDeltaN0dot_r16_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 23, -1, -4194304, 4194303 } /* (-4194304..4194303) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsM0_r16_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 33, -1, -4294967296, 4294967295 } /* (-4294967296..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsE_r16_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 33, -1, 0, 8589934591 } /* (0..8589934591) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsOmega_r16_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 33, -1, -4294967296, 4294967295 } /* (-4294967296..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsOmega0_r16_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 33, -1, -4294967296, 4294967295 } /* (-4294967296..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsI0_r16_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 33, -1, -4294967296, 4294967295 } /* (-4294967296..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsOmegaDot_r16_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 19, -1, -262144, 262143 } /* (-262144..262143) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsI0Dot_r16_constr_14 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsCuc_r16_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsCus_r16_constr_16 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsCrc_r16_constr_17 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsCrs_r16_constr_18 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsCic_r16_constr_19 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bdsCis_r16_constr_20 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NavModel_BDS_KeplerianSet2_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsIODE_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsIODE_r16_constr_2, memb_bdsIODE_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsIODE-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsToe_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsToe_r16_constr_3, memb_bdsToe_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsToe-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsDeltaA_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsDeltaA_r16_constr_4, memb_bdsDeltaA_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsDeltaA-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsAdot_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsAdot_r16_constr_5, memb_bdsAdot_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsAdot-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsDeltaN0_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsDeltaN0_r16_constr_6, memb_bdsDeltaN0_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsDeltaN0-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsDeltaN0dot_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsDeltaN0dot_r16_constr_7, memb_bdsDeltaN0dot_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsDeltaN0dot-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsM0_r16), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_INTEGER, - 0, - { 0, &asn_PER_memb_bdsM0_r16_constr_8, memb_bdsM0_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsM0-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsE_r16), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_INTEGER, - 0, - { 0, &asn_PER_memb_bdsE_r16_constr_9, memb_bdsE_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsE-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsOmega_r16), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_INTEGER, - 0, - { 0, &asn_PER_memb_bdsOmega_r16_constr_10, memb_bdsOmega_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsOmega-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsOmega0_r16), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_INTEGER, - 0, - { 0, &asn_PER_memb_bdsOmega0_r16_constr_11, memb_bdsOmega0_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsOmega0-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsI0_r16), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_INTEGER, - 0, - { 0, &asn_PER_memb_bdsI0_r16_constr_12, memb_bdsI0_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsI0-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsOmegaDot_r16), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsOmegaDot_r16_constr_13, memb_bdsOmegaDot_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsOmegaDot-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsI0Dot_r16), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsI0Dot_r16_constr_14, memb_bdsI0Dot_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsI0Dot-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsCuc_r16), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsCuc_r16_constr_15, memb_bdsCuc_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsCuc-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsCus_r16), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsCus_r16_constr_16, memb_bdsCus_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsCus-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsCrc_r16), - (ASN_TAG_CLASS_CONTEXT | (15 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsCrc_r16_constr_17, memb_bdsCrc_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsCrc-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsCrs_r16), - (ASN_TAG_CLASS_CONTEXT | (16 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsCrs_r16_constr_18, memb_bdsCrs_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsCrs-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsCic_r16), - (ASN_TAG_CLASS_CONTEXT | (17 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsCic_r16_constr_19, memb_bdsCic_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsCic-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsCis_r16), - (ASN_TAG_CLASS_CONTEXT | (18 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bdsCis_r16_constr_20, memb_bdsCis_r16_constraint_1 }, - 0, 0, /* No default value */ - "bdsCis-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_NavModel_BDS_KeplerianSet2_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NavModel_BDS_KeplerianSet2_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bdsIODE-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bdsToe-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bdsDeltaA-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* bdsAdot-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* bdsDeltaN0-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* bdsDeltaN0dot-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* bdsM0-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* bdsE-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* bdsOmega-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* bdsOmega0-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* bdsI0-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* bdsOmegaDot-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* bdsI0Dot-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* bdsCuc-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* bdsCus-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* bdsCrc-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 }, /* bdsCrs-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (17 << 2)), 17, 0, 0 }, /* bdsCic-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (18 << 2)), 18, 0, 0 } /* bdsCis-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NavModel_BDS_KeplerianSet2_r16_specs_1 = { - sizeof(struct NavModel_BDS_KeplerianSet2_r16), - offsetof(struct NavModel_BDS_KeplerianSet2_r16, _asn_ctx), - asn_MAP_NavModel_BDS_KeplerianSet2_r16_tag2el_1, - 19, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 19, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NavModel_BDS_KeplerianSet2_r16 = { - "NavModel-BDS-KeplerianSet2-r16", - "NavModel-BDS-KeplerianSet2-r16", - &asn_OP_SEQUENCE, - asn_DEF_NavModel_BDS_KeplerianSet2_r16_tags_1, - sizeof(asn_DEF_NavModel_BDS_KeplerianSet2_r16_tags_1) - /sizeof(asn_DEF_NavModel_BDS_KeplerianSet2_r16_tags_1[0]), /* 1 */ - asn_DEF_NavModel_BDS_KeplerianSet2_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_NavModel_BDS_KeplerianSet2_r16_tags_1) - /sizeof(asn_DEF_NavModel_BDS_KeplerianSet2_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NavModel_BDS_KeplerianSet2_r16_1, - 19, /* Elements count */ - &asn_SPC_NavModel_BDS_KeplerianSet2_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NavModel-GLONASS-ECEF.c b/asn.1/generated/NavModel-GLONASS-ECEF.c deleted file mode 100644 index 72b1b42a..00000000 --- a/asn.1/generated/NavModel-GLONASS-ECEF.c +++ /dev/null @@ -1,536 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NavModel-GLONASS-ECEF.h" - -static int -memb_gloEn_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 31)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloP1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 2)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloM_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloX_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -67108864 && value <= 67108863)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloXdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloXdotdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloY_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -67108864 && value <= 67108863)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloYdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloYdotdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloZ_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -67108864 && value <= 67108863)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloZdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gloZdotdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gloEn_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloP1_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloM_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloX_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 27, -1, -67108864, 67108863 } /* (-67108864..67108863) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloXdot_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloXdotdot_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, -16, 15 } /* (-16..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloY_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 27, -1, -67108864, 67108863 } /* (-67108864..67108863) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloYdot_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloYdotdot_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, -16, 15 } /* (-16..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloZ_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 27, -1, -67108864, 67108863 } /* (-67108864..67108863) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloZdot_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gloZdotdot_constr_14 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, -16, 15 } /* (-16..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NavModel_GLONASS_ECEF_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloEn), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloEn_constr_2, memb_gloEn_constraint_1 }, - 0, 0, /* No default value */ - "gloEn" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloP1), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_gloP1_constr_3, memb_gloP1_constraint_1 }, - 0, 0, /* No default value */ - "gloP1" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloP2), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gloP2" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloM), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloM_constr_5, memb_gloM_constraint_1 }, - 0, 0, /* No default value */ - "gloM" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloX), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloX_constr_6, memb_gloX_constraint_1 }, - 0, 0, /* No default value */ - "gloX" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloXdot), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloXdot_constr_7, memb_gloXdot_constraint_1 }, - 0, 0, /* No default value */ - "gloXdot" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloXdotdot), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloXdotdot_constr_8, memb_gloXdotdot_constraint_1 }, - 0, 0, /* No default value */ - "gloXdotdot" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloY), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloY_constr_9, memb_gloY_constraint_1 }, - 0, 0, /* No default value */ - "gloY" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloYdot), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloYdot_constr_10, memb_gloYdot_constraint_1 }, - 0, 0, /* No default value */ - "gloYdot" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloYdotdot), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloYdotdot_constr_11, memb_gloYdotdot_constraint_1 }, - 0, 0, /* No default value */ - "gloYdotdot" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloZ), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloZ_constr_12, memb_gloZ_constraint_1 }, - 0, 0, /* No default value */ - "gloZ" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloZdot), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloZdot_constr_13, memb_gloZdot_constraint_1 }, - 0, 0, /* No default value */ - "gloZdot" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloZdotdot), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gloZdotdot_constr_14, memb_gloZdotdot_constraint_1 }, - 0, 0, /* No default value */ - "gloZdotdot" - }, -}; -static const ber_tlv_tag_t asn_DEF_NavModel_GLONASS_ECEF_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NavModel_GLONASS_ECEF_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gloEn */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gloP1 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gloP2 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gloM */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gloX */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gloXdot */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gloXdotdot */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* gloY */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* gloYdot */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* gloYdotdot */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* gloZ */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* gloZdot */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 } /* gloZdotdot */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NavModel_GLONASS_ECEF_specs_1 = { - sizeof(struct NavModel_GLONASS_ECEF), - offsetof(struct NavModel_GLONASS_ECEF, _asn_ctx), - asn_MAP_NavModel_GLONASS_ECEF_tag2el_1, - 13, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 13, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NavModel_GLONASS_ECEF = { - "NavModel-GLONASS-ECEF", - "NavModel-GLONASS-ECEF", - &asn_OP_SEQUENCE, - asn_DEF_NavModel_GLONASS_ECEF_tags_1, - sizeof(asn_DEF_NavModel_GLONASS_ECEF_tags_1) - /sizeof(asn_DEF_NavModel_GLONASS_ECEF_tags_1[0]), /* 1 */ - asn_DEF_NavModel_GLONASS_ECEF_tags_1, /* Same as above */ - sizeof(asn_DEF_NavModel_GLONASS_ECEF_tags_1) - /sizeof(asn_DEF_NavModel_GLONASS_ECEF_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NavModel_GLONASS_ECEF_1, - 13, /* Elements count */ - &asn_SPC_NavModel_GLONASS_ECEF_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NavModel-SBAS-ECEF.c b/asn.1/generated/NavModel-SBAS-ECEF.c deleted file mode 100644 index edfb4566..00000000 --- a/asn.1/generated/NavModel-SBAS-ECEF.c +++ /dev/null @@ -1,488 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NavModel-SBAS-ECEF.h" - -static int -memb_sbasTo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 5399)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbasAccuracy_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 4)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbasXg_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -536870912 && value <= 536870911)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbasYg_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -536870912 && value <= 536870911)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbasZg_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16777216 && value <= 16777215)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbasXgDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -65536 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbasYgDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -65536 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbasZgDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -131072 && value <= 131071)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbasXgDotDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -512 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbagYgDotDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -512 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbasZgDotDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -512 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_sbasTo_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, 0, 5399 } /* (0..5399) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbasAccuracy_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbasXg_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 30, -1, -536870912, 536870911 } /* (-536870912..536870911) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbasYg_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 30, -1, -536870912, 536870911 } /* (-536870912..536870911) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbasZg_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 25, -1, -16777216, 16777215 } /* (-16777216..16777215) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbasXgDot_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 17, -1, -65536, 65535 } /* (-65536..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbasYgDot_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 17, -1, -65536, 65535 } /* (-65536..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbasZgDot_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 18, -1, -131072, 131071 } /* (-131072..131071) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbasXgDotDot_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbagYgDotDot_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbasZgDotDot_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NavModel_SBAS_ECEF_1[] = { - { ATF_POINTER, 1, offsetof(struct NavModel_SBAS_ECEF, sbasTo), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasTo_constr_2, memb_sbasTo_constraint_1 }, - 0, 0, /* No default value */ - "sbasTo" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbasAccuracy), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_sbasAccuracy_constr_3, memb_sbasAccuracy_constraint_1 }, - 0, 0, /* No default value */ - "sbasAccuracy" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbasXg), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasXg_constr_4, memb_sbasXg_constraint_1 }, - 0, 0, /* No default value */ - "sbasXg" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbasYg), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasYg_constr_5, memb_sbasYg_constraint_1 }, - 0, 0, /* No default value */ - "sbasYg" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbasZg), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasZg_constr_6, memb_sbasZg_constraint_1 }, - 0, 0, /* No default value */ - "sbasZg" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbasXgDot), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasXgDot_constr_7, memb_sbasXgDot_constraint_1 }, - 0, 0, /* No default value */ - "sbasXgDot" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbasYgDot), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasYgDot_constr_8, memb_sbasYgDot_constraint_1 }, - 0, 0, /* No default value */ - "sbasYgDot" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbasZgDot), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasZgDot_constr_9, memb_sbasZgDot_constraint_1 }, - 0, 0, /* No default value */ - "sbasZgDot" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbasXgDotDot), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasXgDotDot_constr_10, memb_sbasXgDotDot_constraint_1 }, - 0, 0, /* No default value */ - "sbasXgDotDot" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbagYgDotDot), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbagYgDotDot_constr_11, memb_sbagYgDotDot_constraint_1 }, - 0, 0, /* No default value */ - "sbagYgDotDot" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbasZgDotDot), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasZgDotDot_constr_12, memb_sbasZgDotDot_constraint_1 }, - 0, 0, /* No default value */ - "sbasZgDotDot" - }, -}; -static const int asn_MAP_NavModel_SBAS_ECEF_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_NavModel_SBAS_ECEF_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NavModel_SBAS_ECEF_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sbasTo */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sbasAccuracy */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sbasXg */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* sbasYg */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* sbasZg */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* sbasXgDot */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* sbasYgDot */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* sbasZgDot */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* sbasXgDotDot */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* sbagYgDotDot */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 } /* sbasZgDotDot */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NavModel_SBAS_ECEF_specs_1 = { - sizeof(struct NavModel_SBAS_ECEF), - offsetof(struct NavModel_SBAS_ECEF, _asn_ctx), - asn_MAP_NavModel_SBAS_ECEF_tag2el_1, - 11, /* Count of tags in the map */ - asn_MAP_NavModel_SBAS_ECEF_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 11, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NavModel_SBAS_ECEF = { - "NavModel-SBAS-ECEF", - "NavModel-SBAS-ECEF", - &asn_OP_SEQUENCE, - asn_DEF_NavModel_SBAS_ECEF_tags_1, - sizeof(asn_DEF_NavModel_SBAS_ECEF_tags_1) - /sizeof(asn_DEF_NavModel_SBAS_ECEF_tags_1[0]), /* 1 */ - asn_DEF_NavModel_SBAS_ECEF_tags_1, /* Same as above */ - sizeof(asn_DEF_NavModel_SBAS_ECEF_tags_1) - /sizeof(asn_DEF_NavModel_SBAS_ECEF_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NavModel_SBAS_ECEF_1, - 11, /* Elements count */ - &asn_SPC_NavModel_SBAS_ECEF_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NavModelCNAV-KeplerianSet.c b/asn.1/generated/NavModelCNAV-KeplerianSet.c deleted file mode 100644 index a304c240..00000000 --- a/asn.1/generated/NavModelCNAV-KeplerianSet.c +++ /dev/null @@ -1,830 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NavModelCNAV-KeplerianSet.h" - -static int -memb_cnavTop_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2015)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavURAindex_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavDeltaA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -33554432 && value <= 33554431)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavAdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16777216 && value <= 16777215)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavDeltaNo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -65536 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavDeltaNoDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -4194304 && value <= 4194303)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavMo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const INTEGER_t *st = (const INTEGER_t *)sptr; - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(asn_INTEGER2long(st, &value)) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value too large (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if((value >= -4294967296 && value <= 4294967295)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavE_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const INTEGER_t *st = (const INTEGER_t *)sptr; - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(asn_INTEGER2long(st, &value)) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value too large (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if((value >= 0 && value <= 8589934591)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavOmega_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const INTEGER_t *st = (const INTEGER_t *)sptr; - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(asn_INTEGER2long(st, &value)) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value too large (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if((value >= -4294967296 && value <= 4294967295)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavOMEGA0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const INTEGER_t *st = (const INTEGER_t *)sptr; - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(asn_INTEGER2long(st, &value)) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value too large (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if((value >= -4294967296 && value <= 4294967295)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavDeltaOmegaDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -65536 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavIo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const INTEGER_t *st = (const INTEGER_t *)sptr; - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(asn_INTEGER2long(st, &value)) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value too large (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if((value >= -4294967296 && value <= 4294967295)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavIoDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16384 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavCis_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavCic_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavCrs_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavCrc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavCus_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1048576 && value <= 1048575)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cnavCuc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1048576 && value <= 1048575)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_cnavTop_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 2015 } /* (0..2015) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavURAindex_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, -16, 15 } /* (-16..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavDeltaA_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 26, -1, -33554432, 33554431 } /* (-33554432..33554431) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavAdot_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 25, -1, -16777216, 16777215 } /* (-16777216..16777215) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavDeltaNo_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 17, -1, -65536, 65535 } /* (-65536..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavDeltaNoDot_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 23, -1, -4194304, 4194303 } /* (-4194304..4194303) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavMo_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 33, -1, -4294967296, 4294967295 } /* (-4294967296..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavE_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 33, -1, 0, 8589934591 } /* (0..8589934591) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavOmega_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 33, -1, -4294967296, 4294967295 } /* (-4294967296..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavOMEGA0_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 33, -1, -4294967296, 4294967295 } /* (-4294967296..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavDeltaOmegaDot_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 17, -1, -65536, 65535 } /* (-65536..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavIo_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 33, -1, -4294967296, 4294967295 } /* (-4294967296..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavIoDot_constr_14 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavCis_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavCic_constr_16 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavCrs_constr_17 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavCrc_constr_18 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavCus_constr_19 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cnavCuc_constr_20 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NavModelCNAV_KeplerianSet_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavTop), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavTop_constr_2, memb_cnavTop_constraint_1 }, - 0, 0, /* No default value */ - "cnavTop" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavURAindex), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavURAindex_constr_3, memb_cnavURAindex_constraint_1 }, - 0, 0, /* No default value */ - "cnavURAindex" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavDeltaA), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavDeltaA_constr_4, memb_cnavDeltaA_constraint_1 }, - 0, 0, /* No default value */ - "cnavDeltaA" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavAdot), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavAdot_constr_5, memb_cnavAdot_constraint_1 }, - 0, 0, /* No default value */ - "cnavAdot" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavDeltaNo), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavDeltaNo_constr_6, memb_cnavDeltaNo_constraint_1 }, - 0, 0, /* No default value */ - "cnavDeltaNo" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavDeltaNoDot), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavDeltaNoDot_constr_7, memb_cnavDeltaNoDot_constraint_1 }, - 0, 0, /* No default value */ - "cnavDeltaNoDot" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavMo), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_INTEGER, - 0, - { 0, &asn_PER_memb_cnavMo_constr_8, memb_cnavMo_constraint_1 }, - 0, 0, /* No default value */ - "cnavMo" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavE), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_INTEGER, - 0, - { 0, &asn_PER_memb_cnavE_constr_9, memb_cnavE_constraint_1 }, - 0, 0, /* No default value */ - "cnavE" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavOmega), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_INTEGER, - 0, - { 0, &asn_PER_memb_cnavOmega_constr_10, memb_cnavOmega_constraint_1 }, - 0, 0, /* No default value */ - "cnavOmega" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavOMEGA0), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_INTEGER, - 0, - { 0, &asn_PER_memb_cnavOMEGA0_constr_11, memb_cnavOMEGA0_constraint_1 }, - 0, 0, /* No default value */ - "cnavOMEGA0" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavDeltaOmegaDot), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavDeltaOmegaDot_constr_12, memb_cnavDeltaOmegaDot_constraint_1 }, - 0, 0, /* No default value */ - "cnavDeltaOmegaDot" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavIo), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_INTEGER, - 0, - { 0, &asn_PER_memb_cnavIo_constr_13, memb_cnavIo_constraint_1 }, - 0, 0, /* No default value */ - "cnavIo" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavIoDot), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavIoDot_constr_14, memb_cnavIoDot_constraint_1 }, - 0, 0, /* No default value */ - "cnavIoDot" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavCis), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavCis_constr_15, memb_cnavCis_constraint_1 }, - 0, 0, /* No default value */ - "cnavCis" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavCic), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavCic_constr_16, memb_cnavCic_constraint_1 }, - 0, 0, /* No default value */ - "cnavCic" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavCrs), - (ASN_TAG_CLASS_CONTEXT | (15 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavCrs_constr_17, memb_cnavCrs_constraint_1 }, - 0, 0, /* No default value */ - "cnavCrs" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavCrc), - (ASN_TAG_CLASS_CONTEXT | (16 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavCrc_constr_18, memb_cnavCrc_constraint_1 }, - 0, 0, /* No default value */ - "cnavCrc" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavCus), - (ASN_TAG_CLASS_CONTEXT | (17 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavCus_constr_19, memb_cnavCus_constraint_1 }, - 0, 0, /* No default value */ - "cnavCus" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavCuc), - (ASN_TAG_CLASS_CONTEXT | (18 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cnavCuc_constr_20, memb_cnavCuc_constraint_1 }, - 0, 0, /* No default value */ - "cnavCuc" - }, -}; -static const ber_tlv_tag_t asn_DEF_NavModelCNAV_KeplerianSet_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NavModelCNAV_KeplerianSet_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cnavTop */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cnavURAindex */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cnavDeltaA */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* cnavAdot */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* cnavDeltaNo */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* cnavDeltaNoDot */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* cnavMo */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* cnavE */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* cnavOmega */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* cnavOMEGA0 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* cnavDeltaOmegaDot */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* cnavIo */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* cnavIoDot */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* cnavCis */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* cnavCic */ - { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* cnavCrs */ - { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 }, /* cnavCrc */ - { (ASN_TAG_CLASS_CONTEXT | (17 << 2)), 17, 0, 0 }, /* cnavCus */ - { (ASN_TAG_CLASS_CONTEXT | (18 << 2)), 18, 0, 0 } /* cnavCuc */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NavModelCNAV_KeplerianSet_specs_1 = { - sizeof(struct NavModelCNAV_KeplerianSet), - offsetof(struct NavModelCNAV_KeplerianSet, _asn_ctx), - asn_MAP_NavModelCNAV_KeplerianSet_tag2el_1, - 19, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 19, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NavModelCNAV_KeplerianSet = { - "NavModelCNAV-KeplerianSet", - "NavModelCNAV-KeplerianSet", - &asn_OP_SEQUENCE, - asn_DEF_NavModelCNAV_KeplerianSet_tags_1, - sizeof(asn_DEF_NavModelCNAV_KeplerianSet_tags_1) - /sizeof(asn_DEF_NavModelCNAV_KeplerianSet_tags_1[0]), /* 1 */ - asn_DEF_NavModelCNAV_KeplerianSet_tags_1, /* Same as above */ - sizeof(asn_DEF_NavModelCNAV_KeplerianSet_tags_1) - /sizeof(asn_DEF_NavModelCNAV_KeplerianSet_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NavModelCNAV_KeplerianSet_1, - 19, /* Elements count */ - &asn_SPC_NavModelCNAV_KeplerianSet_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NavModelKeplerianSet.c b/asn.1/generated/NavModelKeplerianSet.c deleted file mode 100644 index 6661f888..00000000 --- a/asn.1/generated/NavModelKeplerianSet.c +++ /dev/null @@ -1,762 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NavModelKeplerianSet.h" - -static int -keplerE_7_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -static int -keplerAPowerHalf_9_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -static int -memb_keplerToe_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_keplerW_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_keplerDeltaN_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_keplerM0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_keplerOmegaDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_keplerE_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -static int -memb_keplerIDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8192 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_keplerAPowerHalf_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -static int -memb_keplerI0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_keplerOmega0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_keplerCrs_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_keplerCis_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_keplerCus_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_keplerCrc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_keplerCic_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_keplerCuc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_keplerE_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_keplerAPowerHalf_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_keplerToe_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_keplerW_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_keplerDeltaN_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_keplerM0_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_keplerOmegaDot_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_keplerE_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_keplerIDot_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_keplerAPowerHalf_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_keplerI0_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_keplerOmega0_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_keplerCrs_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_keplerCis_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_keplerCus_constr_14 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_keplerCrc_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_keplerCic_constr_16 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_keplerCuc_constr_17 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_specifics_t asn_SPC_keplerE_specs_7 = { - 0, 0, 0, 0, 0, - 0, /* Native long size */ - 1 /* Unsigned representation */ -}; -static const ber_tlv_tag_t asn_DEF_keplerE_tags_7[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_keplerE_7 = { - "keplerE", - "keplerE", - &asn_OP_NativeInteger, - asn_DEF_keplerE_tags_7, - sizeof(asn_DEF_keplerE_tags_7) - /sizeof(asn_DEF_keplerE_tags_7[0]) - 1, /* 1 */ - asn_DEF_keplerE_tags_7, /* Same as above */ - sizeof(asn_DEF_keplerE_tags_7) - /sizeof(asn_DEF_keplerE_tags_7[0]), /* 2 */ - { 0, &asn_PER_type_keplerE_constr_7, keplerE_7_constraint }, - 0, 0, /* No members */ - &asn_SPC_keplerE_specs_7 /* Additional specs */ -}; - -static const asn_INTEGER_specifics_t asn_SPC_keplerAPowerHalf_specs_9 = { - 0, 0, 0, 0, 0, - 0, /* Native long size */ - 1 /* Unsigned representation */ -}; -static const ber_tlv_tag_t asn_DEF_keplerAPowerHalf_tags_9[] = { - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_keplerAPowerHalf_9 = { - "keplerAPowerHalf", - "keplerAPowerHalf", - &asn_OP_NativeInteger, - asn_DEF_keplerAPowerHalf_tags_9, - sizeof(asn_DEF_keplerAPowerHalf_tags_9) - /sizeof(asn_DEF_keplerAPowerHalf_tags_9[0]) - 1, /* 1 */ - asn_DEF_keplerAPowerHalf_tags_9, /* Same as above */ - sizeof(asn_DEF_keplerAPowerHalf_tags_9) - /sizeof(asn_DEF_keplerAPowerHalf_tags_9[0]), /* 2 */ - { 0, &asn_PER_type_keplerAPowerHalf_constr_9, keplerAPowerHalf_9_constraint }, - 0, 0, /* No members */ - &asn_SPC_keplerAPowerHalf_specs_9 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NavModelKeplerianSet_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerToe), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_keplerToe_constr_2, memb_keplerToe_constraint_1 }, - 0, 0, /* No default value */ - "keplerToe" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerW), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_keplerW_constr_3, memb_keplerW_constraint_1 }, - 0, 0, /* No default value */ - "keplerW" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerDeltaN), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_keplerDeltaN_constr_4, memb_keplerDeltaN_constraint_1 }, - 0, 0, /* No default value */ - "keplerDeltaN" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerM0), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_keplerM0_constr_5, memb_keplerM0_constraint_1 }, - 0, 0, /* No default value */ - "keplerM0" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerOmegaDot), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_keplerOmegaDot_constr_6, memb_keplerOmegaDot_constraint_1 }, - 0, 0, /* No default value */ - "keplerOmegaDot" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerE), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_keplerE_7, - 0, - { 0, &asn_PER_memb_keplerE_constr_7, memb_keplerE_constraint_1 }, - 0, 0, /* No default value */ - "keplerE" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerIDot), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_keplerIDot_constr_8, memb_keplerIDot_constraint_1 }, - 0, 0, /* No default value */ - "keplerIDot" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerAPowerHalf), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_keplerAPowerHalf_9, - 0, - { 0, &asn_PER_memb_keplerAPowerHalf_constr_9, memb_keplerAPowerHalf_constraint_1 }, - 0, 0, /* No default value */ - "keplerAPowerHalf" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerI0), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_keplerI0_constr_10, memb_keplerI0_constraint_1 }, - 0, 0, /* No default value */ - "keplerI0" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerOmega0), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_keplerOmega0_constr_11, memb_keplerOmega0_constraint_1 }, - 0, 0, /* No default value */ - "keplerOmega0" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerCrs), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_keplerCrs_constr_12, memb_keplerCrs_constraint_1 }, - 0, 0, /* No default value */ - "keplerCrs" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerCis), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_keplerCis_constr_13, memb_keplerCis_constraint_1 }, - 0, 0, /* No default value */ - "keplerCis" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerCus), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_keplerCus_constr_14, memb_keplerCus_constraint_1 }, - 0, 0, /* No default value */ - "keplerCus" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerCrc), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_keplerCrc_constr_15, memb_keplerCrc_constraint_1 }, - 0, 0, /* No default value */ - "keplerCrc" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerCic), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_keplerCic_constr_16, memb_keplerCic_constraint_1 }, - 0, 0, /* No default value */ - "keplerCic" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerCuc), - (ASN_TAG_CLASS_CONTEXT | (15 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_keplerCuc_constr_17, memb_keplerCuc_constraint_1 }, - 0, 0, /* No default value */ - "keplerCuc" - }, -}; -static const ber_tlv_tag_t asn_DEF_NavModelKeplerianSet_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NavModelKeplerianSet_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* keplerToe */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* keplerW */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* keplerDeltaN */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* keplerM0 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* keplerOmegaDot */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* keplerE */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* keplerIDot */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* keplerAPowerHalf */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* keplerI0 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* keplerOmega0 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* keplerCrs */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* keplerCis */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* keplerCus */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* keplerCrc */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* keplerCic */ - { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 } /* keplerCuc */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NavModelKeplerianSet_specs_1 = { - sizeof(struct NavModelKeplerianSet), - offsetof(struct NavModelKeplerianSet, _asn_ctx), - asn_MAP_NavModelKeplerianSet_tag2el_1, - 16, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 16, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NavModelKeplerianSet = { - "NavModelKeplerianSet", - "NavModelKeplerianSet", - &asn_OP_SEQUENCE, - asn_DEF_NavModelKeplerianSet_tags_1, - sizeof(asn_DEF_NavModelKeplerianSet_tags_1) - /sizeof(asn_DEF_NavModelKeplerianSet_tags_1[0]), /* 1 */ - asn_DEF_NavModelKeplerianSet_tags_1, /* Same as above */ - sizeof(asn_DEF_NavModelKeplerianSet_tags_1) - /sizeof(asn_DEF_NavModelKeplerianSet_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NavModelKeplerianSet_1, - 16, /* Elements count */ - &asn_SPC_NavModelKeplerianSet_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NavModelNAV-KeplerianSet.c b/asn.1/generated/NavModelNAV-KeplerianSet.c deleted file mode 100644 index e0427adf..00000000 --- a/asn.1/generated/NavModelNAV-KeplerianSet.c +++ /dev/null @@ -1,1210 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NavModelNAV-KeplerianSet.h" - -static int -navE_9_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -static int -navAPowerHalf_11_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -static int -memb_reserved1_constraint_23(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_reserved2_constraint_23(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 16777215)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_reserved3_constraint_23(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 16777215)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_reserved4_constraint_23(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ephemCodeOnL2_constraint_20(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ephemL2Pflag_constraint_20(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ephemAODA_constraint_20(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 31)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navURA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navFitFlag_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navToe_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 37799)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navOmega_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navDeltaN_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navM0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navOmegaADot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navE_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -static int -memb_navIDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8192 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navAPowerHalf_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -static int -memb_navI0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navOmegaA0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navCrs_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navCis_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navCus_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navCrc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navCic_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_navCuc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_navE_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_navAPowerHalf_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_reserved1_constr_24 CC_NOTUSED = { - { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_reserved2_constr_25 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_reserved3_constr_26 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_reserved4_constr_27 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ephemCodeOnL2_constr_21 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ephemL2Pflag_constr_22 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ephemAODA_constr_28 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navURA_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navFitFlag_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navToe_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 37799 } /* (0..37799) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navOmega_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navDeltaN_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navM0_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navOmegaADot_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navE_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navIDot_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navAPowerHalf_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navI0_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navOmegaA0_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navCrs_constr_14 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navCis_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navCus_constr_16 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navCrc_constr_17 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navCic_constr_18 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_navCuc_constr_19 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_specifics_t asn_SPC_navE_specs_9 = { - 0, 0, 0, 0, 0, - 0, /* Native long size */ - 1 /* Unsigned representation */ -}; -static const ber_tlv_tag_t asn_DEF_navE_tags_9[] = { - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_navE_9 = { - "navE", - "navE", - &asn_OP_NativeInteger, - asn_DEF_navE_tags_9, - sizeof(asn_DEF_navE_tags_9) - /sizeof(asn_DEF_navE_tags_9[0]) - 1, /* 1 */ - asn_DEF_navE_tags_9, /* Same as above */ - sizeof(asn_DEF_navE_tags_9) - /sizeof(asn_DEF_navE_tags_9[0]), /* 2 */ - { 0, &asn_PER_type_navE_constr_9, navE_9_constraint }, - 0, 0, /* No members */ - &asn_SPC_navE_specs_9 /* Additional specs */ -}; - -static const asn_INTEGER_specifics_t asn_SPC_navAPowerHalf_specs_11 = { - 0, 0, 0, 0, 0, - 0, /* Native long size */ - 1 /* Unsigned representation */ -}; -static const ber_tlv_tag_t asn_DEF_navAPowerHalf_tags_11[] = { - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_navAPowerHalf_11 = { - "navAPowerHalf", - "navAPowerHalf", - &asn_OP_NativeInteger, - asn_DEF_navAPowerHalf_tags_11, - sizeof(asn_DEF_navAPowerHalf_tags_11) - /sizeof(asn_DEF_navAPowerHalf_tags_11[0]) - 1, /* 1 */ - asn_DEF_navAPowerHalf_tags_11, /* Same as above */ - sizeof(asn_DEF_navAPowerHalf_tags_11) - /sizeof(asn_DEF_navAPowerHalf_tags_11[0]), /* 2 */ - { 0, &asn_PER_type_navAPowerHalf_constr_11, navAPowerHalf_11_constraint }, - 0, 0, /* No members */ - &asn_SPC_navAPowerHalf_specs_11 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ephemSF1Rsvd_23[] = { - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet__addNAVparam__ephemSF1Rsvd, reserved1), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_reserved1_constr_24, memb_reserved1_constraint_23 }, - 0, 0, /* No default value */ - "reserved1" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet__addNAVparam__ephemSF1Rsvd, reserved2), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_reserved2_constr_25, memb_reserved2_constraint_23 }, - 0, 0, /* No default value */ - "reserved2" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet__addNAVparam__ephemSF1Rsvd, reserved3), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_reserved3_constr_26, memb_reserved3_constraint_23 }, - 0, 0, /* No default value */ - "reserved3" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet__addNAVparam__ephemSF1Rsvd, reserved4), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_reserved4_constr_27, memb_reserved4_constraint_23 }, - 0, 0, /* No default value */ - "reserved4" - }, -}; -static const ber_tlv_tag_t asn_DEF_ephemSF1Rsvd_tags_23[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ephemSF1Rsvd_tag2el_23[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* reserved1 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* reserved2 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* reserved3 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* reserved4 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ephemSF1Rsvd_specs_23 = { - sizeof(struct NavModelNAV_KeplerianSet__addNAVparam__ephemSF1Rsvd), - offsetof(struct NavModelNAV_KeplerianSet__addNAVparam__ephemSF1Rsvd, _asn_ctx), - asn_MAP_ephemSF1Rsvd_tag2el_23, - 4, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ephemSF1Rsvd_23 = { - "ephemSF1Rsvd", - "ephemSF1Rsvd", - &asn_OP_SEQUENCE, - asn_DEF_ephemSF1Rsvd_tags_23, - sizeof(asn_DEF_ephemSF1Rsvd_tags_23) - /sizeof(asn_DEF_ephemSF1Rsvd_tags_23[0]) - 1, /* 1 */ - asn_DEF_ephemSF1Rsvd_tags_23, /* Same as above */ - sizeof(asn_DEF_ephemSF1Rsvd_tags_23) - /sizeof(asn_DEF_ephemSF1Rsvd_tags_23[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ephemSF1Rsvd_23, - 4, /* Elements count */ - &asn_SPC_ephemSF1Rsvd_specs_23 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_addNAVparam_20[] = { - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet__addNAVparam, ephemCodeOnL2), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ephemCodeOnL2_constr_21, memb_ephemCodeOnL2_constraint_20 }, - 0, 0, /* No default value */ - "ephemCodeOnL2" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet__addNAVparam, ephemL2Pflag), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ephemL2Pflag_constr_22, memb_ephemL2Pflag_constraint_20 }, - 0, 0, /* No default value */ - "ephemL2Pflag" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet__addNAVparam, ephemSF1Rsvd), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_ephemSF1Rsvd_23, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ephemSF1Rsvd" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet__addNAVparam, ephemAODA), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ephemAODA_constr_28, memb_ephemAODA_constraint_20 }, - 0, 0, /* No default value */ - "ephemAODA" - }, -}; -static const ber_tlv_tag_t asn_DEF_addNAVparam_tags_20[] = { - (ASN_TAG_CLASS_CONTEXT | (18 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_addNAVparam_tag2el_20[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ephemCodeOnL2 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ephemL2Pflag */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ephemSF1Rsvd */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ephemAODA */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_addNAVparam_specs_20 = { - sizeof(struct NavModelNAV_KeplerianSet__addNAVparam), - offsetof(struct NavModelNAV_KeplerianSet__addNAVparam, _asn_ctx), - asn_MAP_addNAVparam_tag2el_20, - 4, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_addNAVparam_20 = { - "addNAVparam", - "addNAVparam", - &asn_OP_SEQUENCE, - asn_DEF_addNAVparam_tags_20, - sizeof(asn_DEF_addNAVparam_tags_20) - /sizeof(asn_DEF_addNAVparam_tags_20[0]) - 1, /* 1 */ - asn_DEF_addNAVparam_tags_20, /* Same as above */ - sizeof(asn_DEF_addNAVparam_tags_20) - /sizeof(asn_DEF_addNAVparam_tags_20[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_addNAVparam_20, - 4, /* Elements count */ - &asn_SPC_addNAVparam_specs_20 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NavModelNAV_KeplerianSet_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navURA), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navURA_constr_2, memb_navURA_constraint_1 }, - 0, 0, /* No default value */ - "navURA" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navFitFlag), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navFitFlag_constr_3, memb_navFitFlag_constraint_1 }, - 0, 0, /* No default value */ - "navFitFlag" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navToe), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navToe_constr_4, memb_navToe_constraint_1 }, - 0, 0, /* No default value */ - "navToe" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navOmega), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navOmega_constr_5, memb_navOmega_constraint_1 }, - 0, 0, /* No default value */ - "navOmega" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navDeltaN), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navDeltaN_constr_6, memb_navDeltaN_constraint_1 }, - 0, 0, /* No default value */ - "navDeltaN" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navM0), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navM0_constr_7, memb_navM0_constraint_1 }, - 0, 0, /* No default value */ - "navM0" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navOmegaADot), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navOmegaADot_constr_8, memb_navOmegaADot_constraint_1 }, - 0, 0, /* No default value */ - "navOmegaADot" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navE), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_navE_9, - 0, - { 0, &asn_PER_memb_navE_constr_9, memb_navE_constraint_1 }, - 0, 0, /* No default value */ - "navE" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navIDot), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navIDot_constr_10, memb_navIDot_constraint_1 }, - 0, 0, /* No default value */ - "navIDot" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navAPowerHalf), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_navAPowerHalf_11, - 0, - { 0, &asn_PER_memb_navAPowerHalf_constr_11, memb_navAPowerHalf_constraint_1 }, - 0, 0, /* No default value */ - "navAPowerHalf" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navI0), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navI0_constr_12, memb_navI0_constraint_1 }, - 0, 0, /* No default value */ - "navI0" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navOmegaA0), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navOmegaA0_constr_13, memb_navOmegaA0_constraint_1 }, - 0, 0, /* No default value */ - "navOmegaA0" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navCrs), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navCrs_constr_14, memb_navCrs_constraint_1 }, - 0, 0, /* No default value */ - "navCrs" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navCis), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navCis_constr_15, memb_navCis_constraint_1 }, - 0, 0, /* No default value */ - "navCis" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navCus), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navCus_constr_16, memb_navCus_constraint_1 }, - 0, 0, /* No default value */ - "navCus" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navCrc), - (ASN_TAG_CLASS_CONTEXT | (15 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navCrc_constr_17, memb_navCrc_constraint_1 }, - 0, 0, /* No default value */ - "navCrc" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navCic), - (ASN_TAG_CLASS_CONTEXT | (16 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navCic_constr_18, memb_navCic_constraint_1 }, - 0, 0, /* No default value */ - "navCic" - }, - { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navCuc), - (ASN_TAG_CLASS_CONTEXT | (17 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_navCuc_constr_19, memb_navCuc_constraint_1 }, - 0, 0, /* No default value */ - "navCuc" - }, - { ATF_POINTER, 1, offsetof(struct NavModelNAV_KeplerianSet, addNAVparam), - (ASN_TAG_CLASS_CONTEXT | (18 << 2)), - 0, - &asn_DEF_addNAVparam_20, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "addNAVparam" - }, -}; -static const int asn_MAP_NavModelNAV_KeplerianSet_oms_1[] = { 18 }; -static const ber_tlv_tag_t asn_DEF_NavModelNAV_KeplerianSet_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NavModelNAV_KeplerianSet_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* navURA */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* navFitFlag */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* navToe */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* navOmega */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* navDeltaN */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* navM0 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* navOmegaADot */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* navE */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* navIDot */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* navAPowerHalf */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* navI0 */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* navOmegaA0 */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* navCrs */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* navCis */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* navCus */ - { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* navCrc */ - { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 }, /* navCic */ - { (ASN_TAG_CLASS_CONTEXT | (17 << 2)), 17, 0, 0 }, /* navCuc */ - { (ASN_TAG_CLASS_CONTEXT | (18 << 2)), 18, 0, 0 } /* addNAVparam */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NavModelNAV_KeplerianSet_specs_1 = { - sizeof(struct NavModelNAV_KeplerianSet), - offsetof(struct NavModelNAV_KeplerianSet, _asn_ctx), - asn_MAP_NavModelNAV_KeplerianSet_tag2el_1, - 19, /* Count of tags in the map */ - asn_MAP_NavModelNAV_KeplerianSet_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 19, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NavModelNAV_KeplerianSet = { - "NavModelNAV-KeplerianSet", - "NavModelNAV-KeplerianSet", - &asn_OP_SEQUENCE, - asn_DEF_NavModelNAV_KeplerianSet_tags_1, - sizeof(asn_DEF_NavModelNAV_KeplerianSet_tags_1) - /sizeof(asn_DEF_NavModelNAV_KeplerianSet_tags_1[0]), /* 1 */ - asn_DEF_NavModelNAV_KeplerianSet_tags_1, /* Same as above */ - sizeof(asn_DEF_NavModelNAV_KeplerianSet_tags_1) - /sizeof(asn_DEF_NavModelNAV_KeplerianSet_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NavModelNAV_KeplerianSet_1, - 19, /* Elements count */ - &asn_SPC_NavModelNAV_KeplerianSet_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NeQuickModelParameter.c b/asn.1/generated/NeQuickModelParameter.c deleted file mode 100644 index af2d39e7..00000000 --- a/asn.1/generated/NeQuickModelParameter.c +++ /dev/null @@ -1,362 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NeQuickModelParameter.h" - -static int -memb_ai0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ai1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ai2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8192 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ionoStormFlag1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ionoStormFlag2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ionoStormFlag3_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ionoStormFlag4_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ionoStormFlag5_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_ai0_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ai1_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ai2_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ionoStormFlag1_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ionoStormFlag2_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ionoStormFlag3_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ionoStormFlag4_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ionoStormFlag5_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NeQuickModelParameter_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NeQuickModelParameter, ai0), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ai0_constr_2, memb_ai0_constraint_1 }, - 0, 0, /* No default value */ - "ai0" - }, - { ATF_NOFLAGS, 0, offsetof(struct NeQuickModelParameter, ai1), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ai1_constr_3, memb_ai1_constraint_1 }, - 0, 0, /* No default value */ - "ai1" - }, - { ATF_NOFLAGS, 0, offsetof(struct NeQuickModelParameter, ai2), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ai2_constr_4, memb_ai2_constraint_1 }, - 0, 0, /* No default value */ - "ai2" - }, - { ATF_POINTER, 5, offsetof(struct NeQuickModelParameter, ionoStormFlag1), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ionoStormFlag1_constr_5, memb_ionoStormFlag1_constraint_1 }, - 0, 0, /* No default value */ - "ionoStormFlag1" - }, - { ATF_POINTER, 4, offsetof(struct NeQuickModelParameter, ionoStormFlag2), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ionoStormFlag2_constr_6, memb_ionoStormFlag2_constraint_1 }, - 0, 0, /* No default value */ - "ionoStormFlag2" - }, - { ATF_POINTER, 3, offsetof(struct NeQuickModelParameter, ionoStormFlag3), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ionoStormFlag3_constr_7, memb_ionoStormFlag3_constraint_1 }, - 0, 0, /* No default value */ - "ionoStormFlag3" - }, - { ATF_POINTER, 2, offsetof(struct NeQuickModelParameter, ionoStormFlag4), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ionoStormFlag4_constr_8, memb_ionoStormFlag4_constraint_1 }, - 0, 0, /* No default value */ - "ionoStormFlag4" - }, - { ATF_POINTER, 1, offsetof(struct NeQuickModelParameter, ionoStormFlag5), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ionoStormFlag5_constr_9, memb_ionoStormFlag5_constraint_1 }, - 0, 0, /* No default value */ - "ionoStormFlag5" - }, -}; -static const int asn_MAP_NeQuickModelParameter_oms_1[] = { 3, 4, 5, 6, 7 }; -static const ber_tlv_tag_t asn_DEF_NeQuickModelParameter_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NeQuickModelParameter_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ai0 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ai1 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ai2 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ionoStormFlag1 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ionoStormFlag2 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ionoStormFlag3 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ionoStormFlag4 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* ionoStormFlag5 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NeQuickModelParameter_specs_1 = { - sizeof(struct NeQuickModelParameter), - offsetof(struct NeQuickModelParameter, _asn_ctx), - asn_MAP_NeQuickModelParameter_tag2el_1, - 8, /* Count of tags in the map */ - asn_MAP_NeQuickModelParameter_oms_1, /* Optional members */ - 5, 0, /* Root/Additions */ - 8, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NeQuickModelParameter = { - "NeQuickModelParameter", - "NeQuickModelParameter", - &asn_OP_SEQUENCE, - asn_DEF_NeQuickModelParameter_tags_1, - sizeof(asn_DEF_NeQuickModelParameter_tags_1) - /sizeof(asn_DEF_NeQuickModelParameter_tags_1[0]), /* 1 */ - asn_DEF_NeQuickModelParameter_tags_1, /* Same as above */ - sizeof(asn_DEF_NeQuickModelParameter_tags_1) - /sizeof(asn_DEF_NeQuickModelParameter_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NeQuickModelParameter_1, - 8, /* Elements count */ - &asn_SPC_NeQuickModelParameter_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NeQuickModelParameter.h b/asn.1/generated/NeQuickModelParameter.h deleted file mode 100644 index 7bc01777..00000000 --- a/asn.1/generated/NeQuickModelParameter.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NeQuickModelParameter_H_ -#define _NeQuickModelParameter_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* NeQuickModelParameter */ -typedef struct NeQuickModelParameter { - long ai0; - long ai1; - long ai2; - long *ionoStormFlag1 /* OPTIONAL */; - long *ionoStormFlag2 /* OPTIONAL */; - long *ionoStormFlag3 /* OPTIONAL */; - long *ionoStormFlag4 /* OPTIONAL */; - long *ionoStormFlag5 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NeQuickModelParameter_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NeQuickModelParameter; -extern asn_SEQUENCE_specifics_t asn_SPC_NeQuickModelParameter_specs_1; -extern asn_TYPE_member_t asn_MBR_NeQuickModelParameter_1[8]; - -#ifdef __cplusplus -} -#endif - -#endif /* _NeQuickModelParameter_H_ */ -#include diff --git a/asn.1/generated/NeighbourMeasurementElement-NB-r14.c b/asn.1/generated/NeighbourMeasurementElement-NB-r14.c deleted file mode 100644 index a8953d0b..00000000 --- a/asn.1/generated/NeighbourMeasurementElement-NB-r14.c +++ /dev/null @@ -1,332 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NeighbourMeasurementElement-NB-r14.h" - -static int -memb_physCellIdNeighbour_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 503)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_rstd_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 12711)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_tpIdNeighbour_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_prsIdNeighbour_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_delta_rstd_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 5)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nprsIdNeighbour_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_physCellIdNeighbour_r14_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_rstd_r14_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 12711 } /* (0..12711) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_tpIdNeighbour_r14_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_prsIdNeighbour_r14_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_delta_rstd_r14_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nprsIdNeighbour_r14_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NeighbourMeasurementElement_NB_r14_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NeighbourMeasurementElement_NB_r14, physCellIdNeighbour_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_physCellIdNeighbour_r14_constr_2, memb_physCellIdNeighbour_r14_constraint_1 }, - 0, 0, /* No default value */ - "physCellIdNeighbour-r14" - }, - { ATF_POINTER, 2, offsetof(struct NeighbourMeasurementElement_NB_r14, cellGlobalIdNeighbour_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ECGI, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellGlobalIdNeighbour-r14" - }, - { ATF_POINTER, 1, offsetof(struct NeighbourMeasurementElement_NB_r14, earfcnNeighbour_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueEUTRA_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "earfcnNeighbour-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct NeighbourMeasurementElement_NB_r14, rstd_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rstd_r14_constr_5, memb_rstd_r14_constraint_1 }, - 0, 0, /* No default value */ - "rstd-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct NeighbourMeasurementElement_NB_r14, rstd_Quality_r14), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_MeasQuality, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rstd-Quality-r14" - }, - { ATF_POINTER, 6, offsetof(struct NeighbourMeasurementElement_NB_r14, tpIdNeighbour_r14), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_tpIdNeighbour_r14_constr_7, memb_tpIdNeighbour_r14_constraint_1 }, - 0, 0, /* No default value */ - "tpIdNeighbour-r14" - }, - { ATF_POINTER, 5, offsetof(struct NeighbourMeasurementElement_NB_r14, prsIdNeighbour_r14), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_prsIdNeighbour_r14_constr_8, memb_prsIdNeighbour_r14_constraint_1 }, - 0, 0, /* No default value */ - "prsIdNeighbour-r14" - }, - { ATF_POINTER, 4, offsetof(struct NeighbourMeasurementElement_NB_r14, delta_rstd_r14), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_delta_rstd_r14_constr_9, memb_delta_rstd_r14_constraint_1 }, - 0, 0, /* No default value */ - "delta-rstd-r14" - }, - { ATF_POINTER, 3, offsetof(struct NeighbourMeasurementElement_NB_r14, additionalPathsNeighbour_r14), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AdditionalPathList_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "additionalPathsNeighbour-r14" - }, - { ATF_POINTER, 2, offsetof(struct NeighbourMeasurementElement_NB_r14, nprsIdNeighbour_r14), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nprsIdNeighbour_r14_constr_11, memb_nprsIdNeighbour_r14_constraint_1 }, - 0, 0, /* No default value */ - "nprsIdNeighbour-r14" - }, - { ATF_POINTER, 1, offsetof(struct NeighbourMeasurementElement_NB_r14, carrierFreqOffsetNB_Neighbour_r14), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CarrierFreqOffsetNB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "carrierFreqOffsetNB-Neighbour-r14" - }, -}; -static const int asn_MAP_NeighbourMeasurementElement_NB_r14_oms_1[] = { 1, 2, 5, 6, 7, 8, 9, 10 }; -static const ber_tlv_tag_t asn_DEF_NeighbourMeasurementElement_NB_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NeighbourMeasurementElement_NB_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellIdNeighbour-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalIdNeighbour-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* earfcnNeighbour-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* rstd-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rstd-Quality-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* tpIdNeighbour-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* prsIdNeighbour-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* delta-rstd-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* additionalPathsNeighbour-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* nprsIdNeighbour-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 } /* carrierFreqOffsetNB-Neighbour-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NeighbourMeasurementElement_NB_r14_specs_1 = { - sizeof(struct NeighbourMeasurementElement_NB_r14), - offsetof(struct NeighbourMeasurementElement_NB_r14, _asn_ctx), - asn_MAP_NeighbourMeasurementElement_NB_r14_tag2el_1, - 11, /* Count of tags in the map */ - asn_MAP_NeighbourMeasurementElement_NB_r14_oms_1, /* Optional members */ - 8, 0, /* Root/Additions */ - 11, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NeighbourMeasurementElement_NB_r14 = { - "NeighbourMeasurementElement-NB-r14", - "NeighbourMeasurementElement-NB-r14", - &asn_OP_SEQUENCE, - asn_DEF_NeighbourMeasurementElement_NB_r14_tags_1, - sizeof(asn_DEF_NeighbourMeasurementElement_NB_r14_tags_1) - /sizeof(asn_DEF_NeighbourMeasurementElement_NB_r14_tags_1[0]), /* 1 */ - asn_DEF_NeighbourMeasurementElement_NB_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_NeighbourMeasurementElement_NB_r14_tags_1) - /sizeof(asn_DEF_NeighbourMeasurementElement_NB_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NeighbourMeasurementElement_NB_r14_1, - 11, /* Elements count */ - &asn_SPC_NeighbourMeasurementElement_NB_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NeighbourMeasurementElement-NB-r14.h b/asn.1/generated/NeighbourMeasurementElement-NB-r14.h deleted file mode 100644 index 0ebeb1f3..00000000 --- a/asn.1/generated/NeighbourMeasurementElement-NB-r14.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NeighbourMeasurementElement_NB_r14_H_ -#define _NeighbourMeasurementElement_NB_r14_H_ - - -#include - -/* Including external dependencies */ -#include -#include "ARFCN-ValueEUTRA-r14.h" -#include "OTDOA-MeasQuality.h" -#include "CarrierFreqOffsetNB-r14.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct ECGI; -struct AdditionalPathList_r14; - -/* NeighbourMeasurementElement-NB-r14 */ -typedef struct NeighbourMeasurementElement_NB_r14 { - long physCellIdNeighbour_r14; - struct ECGI *cellGlobalIdNeighbour_r14 /* OPTIONAL */; - ARFCN_ValueEUTRA_r14_t *earfcnNeighbour_r14 /* OPTIONAL */; - long rstd_r14; - OTDOA_MeasQuality_t rstd_Quality_r14; - long *tpIdNeighbour_r14 /* OPTIONAL */; - long *prsIdNeighbour_r14 /* OPTIONAL */; - long *delta_rstd_r14 /* OPTIONAL */; - struct AdditionalPathList_r14 *additionalPathsNeighbour_r14 /* OPTIONAL */; - long *nprsIdNeighbour_r14 /* OPTIONAL */; - CarrierFreqOffsetNB_r14_t *carrierFreqOffsetNB_Neighbour_r14 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NeighbourMeasurementElement_NB_r14_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NeighbourMeasurementElement_NB_r14; -extern asn_SEQUENCE_specifics_t asn_SPC_NeighbourMeasurementElement_NB_r14_specs_1; -extern asn_TYPE_member_t asn_MBR_NeighbourMeasurementElement_NB_r14_1[11]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "ECGI.h" -#include "AdditionalPathList-r14.h" - -#endif /* _NeighbourMeasurementElement_NB_r14_H_ */ -#include diff --git a/asn.1/generated/NeighbourMeasurementElement.c b/asn.1/generated/NeighbourMeasurementElement.c deleted file mode 100644 index 30ec08e5..00000000 --- a/asn.1/generated/NeighbourMeasurementElement.c +++ /dev/null @@ -1,517 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NeighbourMeasurementElement.h" - -static int -memb_tpIdNeighbour_r14_constraint_10(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_prsIdNeighbour_r14_constraint_10(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_delta_rstd_r14_constraint_10(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 5)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nprsIdNeighbour_r14_constraint_10(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_delta_SFN_r15_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8192 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_physCellIdNeighbour_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 503)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_rstd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 12711)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_tpIdNeighbour_r14_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_prsIdNeighbour_r14_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_delta_rstd_r14_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nprsIdNeighbour_r14_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_delta_SFN_r15_constr_18 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_physCellIdNeighbour_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_rstd_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 12711 } /* (0..12711) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_ext1_8[] = { - { ATF_POINTER, 1, offsetof(struct NeighbourMeasurementElement__ext1, earfcnNeighbour_v9a0), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueEUTRA_v9a0, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "earfcnNeighbour-v9a0" - }, -}; -static const int asn_MAP_ext1_oms_8[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* earfcnNeighbour-v9a0 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { - sizeof(struct NeighbourMeasurementElement__ext1), - offsetof(struct NeighbourMeasurementElement__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_8, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_8, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_8 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_8, - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_8, /* Same as above */ - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_8, - 1, /* Elements count */ - &asn_SPC_ext1_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_10[] = { - { ATF_POINTER, 6, offsetof(struct NeighbourMeasurementElement__ext2, tpIdNeighbour_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_tpIdNeighbour_r14_constr_11, memb_tpIdNeighbour_r14_constraint_10 }, - 0, 0, /* No default value */ - "tpIdNeighbour-r14" - }, - { ATF_POINTER, 5, offsetof(struct NeighbourMeasurementElement__ext2, prsIdNeighbour_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_prsIdNeighbour_r14_constr_12, memb_prsIdNeighbour_r14_constraint_10 }, - 0, 0, /* No default value */ - "prsIdNeighbour-r14" - }, - { ATF_POINTER, 4, offsetof(struct NeighbourMeasurementElement__ext2, delta_rstd_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_delta_rstd_r14_constr_13, memb_delta_rstd_r14_constraint_10 }, - 0, 0, /* No default value */ - "delta-rstd-r14" - }, - { ATF_POINTER, 3, offsetof(struct NeighbourMeasurementElement__ext2, additionalPathsNeighbour_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AdditionalPathList_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "additionalPathsNeighbour-r14" - }, - { ATF_POINTER, 2, offsetof(struct NeighbourMeasurementElement__ext2, nprsIdNeighbour_r14), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nprsIdNeighbour_r14_constr_15, memb_nprsIdNeighbour_r14_constraint_10 }, - 0, 0, /* No default value */ - "nprsIdNeighbour-r14" - }, - { ATF_POINTER, 1, offsetof(struct NeighbourMeasurementElement__ext2, carrierFreqOffsetNB_Neighbour_r14), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CarrierFreqOffsetNB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "carrierFreqOffsetNB-Neighbour-r14" - }, -}; -static const int asn_MAP_ext2_oms_10[] = { 0, 1, 2, 3, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_10[] = { - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_10[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tpIdNeighbour-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* prsIdNeighbour-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* delta-rstd-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* additionalPathsNeighbour-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nprsIdNeighbour-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* carrierFreqOffsetNB-Neighbour-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_10 = { - sizeof(struct NeighbourMeasurementElement__ext2), - offsetof(struct NeighbourMeasurementElement__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_10, - 6, /* Count of tags in the map */ - asn_MAP_ext2_oms_10, /* Optional members */ - 6, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_10 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_10, - sizeof(asn_DEF_ext2_tags_10) - /sizeof(asn_DEF_ext2_tags_10[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_10, /* Same as above */ - sizeof(asn_DEF_ext2_tags_10) - /sizeof(asn_DEF_ext2_tags_10[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_10, - 6, /* Elements count */ - &asn_SPC_ext2_specs_10 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext3_17[] = { - { ATF_POINTER, 1, offsetof(struct NeighbourMeasurementElement__ext3, delta_SFN_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_delta_SFN_r15_constr_18, memb_delta_SFN_r15_constraint_17 }, - 0, 0, /* No default value */ - "delta-SFN-r15" - }, -}; -static const int asn_MAP_ext3_oms_17[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext3_tags_17[] = { - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_17[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* delta-SFN-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_17 = { - sizeof(struct NeighbourMeasurementElement__ext3), - offsetof(struct NeighbourMeasurementElement__ext3, _asn_ctx), - asn_MAP_ext3_tag2el_17, - 1, /* Count of tags in the map */ - asn_MAP_ext3_oms_17, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext3_17 = { - "ext3", - "ext3", - &asn_OP_SEQUENCE, - asn_DEF_ext3_tags_17, - sizeof(asn_DEF_ext3_tags_17) - /sizeof(asn_DEF_ext3_tags_17[0]) - 1, /* 1 */ - asn_DEF_ext3_tags_17, /* Same as above */ - sizeof(asn_DEF_ext3_tags_17) - /sizeof(asn_DEF_ext3_tags_17[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext3_17, - 1, /* Elements count */ - &asn_SPC_ext3_specs_17 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NeighbourMeasurementElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NeighbourMeasurementElement, physCellIdNeighbour), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_physCellIdNeighbour_constr_2, memb_physCellIdNeighbour_constraint_1 }, - 0, 0, /* No default value */ - "physCellIdNeighbour" - }, - { ATF_POINTER, 2, offsetof(struct NeighbourMeasurementElement, cellGlobalIdNeighbour), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ECGI, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellGlobalIdNeighbour" - }, - { ATF_POINTER, 1, offsetof(struct NeighbourMeasurementElement, earfcnNeighbour), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueEUTRA, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "earfcnNeighbour" - }, - { ATF_NOFLAGS, 0, offsetof(struct NeighbourMeasurementElement, rstd), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rstd_constr_5, memb_rstd_constraint_1 }, - 0, 0, /* No default value */ - "rstd" - }, - { ATF_NOFLAGS, 0, offsetof(struct NeighbourMeasurementElement, rstd_Quality), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_MeasQuality, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rstd-Quality" - }, - { ATF_POINTER, 3, offsetof(struct NeighbourMeasurementElement, ext1), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - 0, - &asn_DEF_ext1_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 2, offsetof(struct NeighbourMeasurementElement, ext2), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - 0, - &asn_DEF_ext2_10, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, - { ATF_POINTER, 1, offsetof(struct NeighbourMeasurementElement, ext3), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - 0, - &asn_DEF_ext3_17, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext3" - }, -}; -static const int asn_MAP_NeighbourMeasurementElement_oms_1[] = { 1, 2, 5, 6, 7 }; -static const ber_tlv_tag_t asn_DEF_NeighbourMeasurementElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NeighbourMeasurementElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellIdNeighbour */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalIdNeighbour */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* earfcnNeighbour */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* rstd */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rstd-Quality */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ext2 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* ext3 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NeighbourMeasurementElement_specs_1 = { - sizeof(struct NeighbourMeasurementElement), - offsetof(struct NeighbourMeasurementElement, _asn_ctx), - asn_MAP_NeighbourMeasurementElement_tag2el_1, - 8, /* Count of tags in the map */ - asn_MAP_NeighbourMeasurementElement_oms_1, /* Optional members */ - 2, 3, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NeighbourMeasurementElement = { - "NeighbourMeasurementElement", - "NeighbourMeasurementElement", - &asn_OP_SEQUENCE, - asn_DEF_NeighbourMeasurementElement_tags_1, - sizeof(asn_DEF_NeighbourMeasurementElement_tags_1) - /sizeof(asn_DEF_NeighbourMeasurementElement_tags_1[0]), /* 1 */ - asn_DEF_NeighbourMeasurementElement_tags_1, /* Same as above */ - sizeof(asn_DEF_NeighbourMeasurementElement_tags_1) - /sizeof(asn_DEF_NeighbourMeasurementElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NeighbourMeasurementElement_1, - 8, /* Elements count */ - &asn_SPC_NeighbourMeasurementElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NeighbourMeasurementElement.h b/asn.1/generated/NeighbourMeasurementElement.h deleted file mode 100644 index cc84c02f..00000000 --- a/asn.1/generated/NeighbourMeasurementElement.h +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _NeighbourMeasurementElement_H_ -#define _NeighbourMeasurementElement_H_ - - -#include - -/* Including external dependencies */ -#include -#include "ARFCN-ValueEUTRA.h" -#include "OTDOA-MeasQuality.h" -#include "ARFCN-ValueEUTRA-v9a0.h" -#include -#include "CarrierFreqOffsetNB-r14.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct ECGI; -struct AdditionalPathList_r14; - -/* NeighbourMeasurementElement */ -typedef struct NeighbourMeasurementElement { - long physCellIdNeighbour; - struct ECGI *cellGlobalIdNeighbour /* OPTIONAL */; - ARFCN_ValueEUTRA_t *earfcnNeighbour /* OPTIONAL */; - long rstd; - OTDOA_MeasQuality_t rstd_Quality; - /* - * This type is extensible, - * possible extensions are below. - */ - struct NeighbourMeasurementElement__ext1 { - ARFCN_ValueEUTRA_v9a0_t *earfcnNeighbour_v9a0 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct NeighbourMeasurementElement__ext2 { - long *tpIdNeighbour_r14 /* OPTIONAL */; - long *prsIdNeighbour_r14 /* OPTIONAL */; - long *delta_rstd_r14 /* OPTIONAL */; - struct AdditionalPathList_r14 *additionalPathsNeighbour_r14 /* OPTIONAL */; - long *nprsIdNeighbour_r14 /* OPTIONAL */; - CarrierFreqOffsetNB_r14_t *carrierFreqOffsetNB_Neighbour_r14 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - struct NeighbourMeasurementElement__ext3 { - long *delta_SFN_r15 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext3; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NeighbourMeasurementElement_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NeighbourMeasurementElement; -extern asn_SEQUENCE_specifics_t asn_SPC_NeighbourMeasurementElement_specs_1; -extern asn_TYPE_member_t asn_MBR_NeighbourMeasurementElement_1[8]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "ECGI.h" -#include "AdditionalPathList-r14.h" - -#endif /* _NeighbourMeasurementElement_H_ */ -#include diff --git a/asn.1/generated/NeighbourMeasurementList-NB-r14.c b/asn.1/generated/NeighbourMeasurementList-NB-r14.c deleted file mode 100644 index 8dc76b3c..00000000 --- a/asn.1/generated/NeighbourMeasurementList-NB-r14.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NeighbourMeasurementList-NB-r14.h" - -asn_per_constraints_t asn_PER_type_NeighbourMeasurementList_NB_r14_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 24 } /* (SIZE(1..24)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NeighbourMeasurementList_NB_r14_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NeighbourMeasurementElement_NB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_NeighbourMeasurementList_NB_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_NeighbourMeasurementList_NB_r14_specs_1 = { - sizeof(struct NeighbourMeasurementList_NB_r14), - offsetof(struct NeighbourMeasurementList_NB_r14, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_NeighbourMeasurementList_NB_r14 = { - "NeighbourMeasurementList-NB-r14", - "NeighbourMeasurementList-NB-r14", - &asn_OP_SEQUENCE_OF, - asn_DEF_NeighbourMeasurementList_NB_r14_tags_1, - sizeof(asn_DEF_NeighbourMeasurementList_NB_r14_tags_1) - /sizeof(asn_DEF_NeighbourMeasurementList_NB_r14_tags_1[0]), /* 1 */ - asn_DEF_NeighbourMeasurementList_NB_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_NeighbourMeasurementList_NB_r14_tags_1) - /sizeof(asn_DEF_NeighbourMeasurementList_NB_r14_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_NeighbourMeasurementList_NB_r14_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_NeighbourMeasurementList_NB_r14_1, - 1, /* Single element */ - &asn_SPC_NeighbourMeasurementList_NB_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NeighbourMeasurementList.c b/asn.1/generated/NeighbourMeasurementList.c deleted file mode 100644 index 12c5598c..00000000 --- a/asn.1/generated/NeighbourMeasurementList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NeighbourMeasurementList.h" - -asn_per_constraints_t asn_PER_type_NeighbourMeasurementList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 24 } /* (SIZE(1..24)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_NeighbourMeasurementList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NeighbourMeasurementElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_NeighbourMeasurementList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_NeighbourMeasurementList_specs_1 = { - sizeof(struct NeighbourMeasurementList), - offsetof(struct NeighbourMeasurementList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_NeighbourMeasurementList = { - "NeighbourMeasurementList", - "NeighbourMeasurementList", - &asn_OP_SEQUENCE_OF, - asn_DEF_NeighbourMeasurementList_tags_1, - sizeof(asn_DEF_NeighbourMeasurementList_tags_1) - /sizeof(asn_DEF_NeighbourMeasurementList_tags_1[0]), /* 1 */ - asn_DEF_NeighbourMeasurementList_tags_1, /* Same as above */ - sizeof(asn_DEF_NeighbourMeasurementList_tags_1) - /sizeof(asn_DEF_NeighbourMeasurementList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_NeighbourMeasurementList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_NeighbourMeasurementList_1, - 1, /* Single element */ - &asn_SPC_NeighbourMeasurementList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NetworkTime.c b/asn.1/generated/NetworkTime.c deleted file mode 100644 index b6fb0935..00000000 --- a/asn.1/generated/NetworkTime.c +++ /dev/null @@ -1,986 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NetworkTime.h" - -static int -memb_physCellId_constraint_6(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 503)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_primary_CPICH_Info_constraint_15(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cellParameters_constraint_18(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bcchCarrier_constraint_24(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bsic_constraint_24(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nbPhysCellId_r14_constraint_30(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 503)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nrPhysCellId_r15_constraint_35(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1007)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_secondsFromFrameStructureStart_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 12533)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_fractionalSecondsFromFrameStructureStart_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3999999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_frameDrift_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -64 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_physCellId_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_primary_CPICH_Info_constr_16 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cellParameters_constr_19 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_mode_constr_14 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bcchCarrier_constr_25 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bsic_constr_26 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nbPhysCellId_r14_constr_31 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nrPhysCellId_r15_constr_36 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1007 } /* (0..1007) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_cellID_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_secondsFromFrameStructureStart_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 12533 } /* (0..12533) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_fractionalSecondsFromFrameStructureStart_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, 0, 3999999 } /* (0..3999999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_frameDrift_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_ext1_11[] = { - { ATF_POINTER, 1, offsetof(struct NetworkTime__cellID__eUTRA__ext1, earfcn_v9a0), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueEUTRA_v9a0, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "earfcn-v9a0" - }, -}; -static const int asn_MAP_ext1_oms_11[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_11[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_11[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* earfcn-v9a0 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_11 = { - sizeof(struct NetworkTime__cellID__eUTRA__ext1), - offsetof(struct NetworkTime__cellID__eUTRA__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_11, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_11, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_11 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_11, - sizeof(asn_DEF_ext1_tags_11) - /sizeof(asn_DEF_ext1_tags_11[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_11, /* Same as above */ - sizeof(asn_DEF_ext1_tags_11) - /sizeof(asn_DEF_ext1_tags_11[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_11, - 1, /* Elements count */ - &asn_SPC_ext1_specs_11 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_eUTRA_6[] = { - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__eUTRA, physCellId), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_physCellId_constr_7, memb_physCellId_constraint_6 }, - 0, 0, /* No default value */ - "physCellId" - }, - { ATF_POINTER, 1, offsetof(struct NetworkTime__cellID__eUTRA, cellGlobalIdEUTRA), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CellGlobalIdEUTRA_AndUTRA, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellGlobalIdEUTRA" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__eUTRA, earfcn), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueEUTRA, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "earfcn" - }, - { ATF_POINTER, 1, offsetof(struct NetworkTime__cellID__eUTRA, ext1), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - 0, - &asn_DEF_ext1_11, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_eUTRA_oms_6[] = { 1, 3 }; -static const ber_tlv_tag_t asn_DEF_eUTRA_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_eUTRA_tag2el_6[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellId */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalIdEUTRA */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* earfcn */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_eUTRA_specs_6 = { - sizeof(struct NetworkTime__cellID__eUTRA), - offsetof(struct NetworkTime__cellID__eUTRA, _asn_ctx), - asn_MAP_eUTRA_tag2el_6, - 4, /* Count of tags in the map */ - asn_MAP_eUTRA_oms_6, /* Optional members */ - 1, 1, /* Root/Additions */ - 3, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_eUTRA_6 = { - "eUTRA", - "eUTRA", - &asn_OP_SEQUENCE, - asn_DEF_eUTRA_tags_6, - sizeof(asn_DEF_eUTRA_tags_6) - /sizeof(asn_DEF_eUTRA_tags_6[0]) - 1, /* 1 */ - asn_DEF_eUTRA_tags_6, /* Same as above */ - sizeof(asn_DEF_eUTRA_tags_6) - /sizeof(asn_DEF_eUTRA_tags_6[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_eUTRA_6, - 4, /* Elements count */ - &asn_SPC_eUTRA_specs_6 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_fdd_15[] = { - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__uTRA__mode__fdd, primary_CPICH_Info), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_primary_CPICH_Info_constr_16, memb_primary_CPICH_Info_constraint_15 }, - 0, 0, /* No default value */ - "primary-CPICH-Info" - }, -}; -static const ber_tlv_tag_t asn_DEF_fdd_tags_15[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_fdd_tag2el_15[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* primary-CPICH-Info */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_fdd_specs_15 = { - sizeof(struct NetworkTime__cellID__uTRA__mode__fdd), - offsetof(struct NetworkTime__cellID__uTRA__mode__fdd, _asn_ctx), - asn_MAP_fdd_tag2el_15, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_fdd_15 = { - "fdd", - "fdd", - &asn_OP_SEQUENCE, - asn_DEF_fdd_tags_15, - sizeof(asn_DEF_fdd_tags_15) - /sizeof(asn_DEF_fdd_tags_15[0]) - 1, /* 1 */ - asn_DEF_fdd_tags_15, /* Same as above */ - sizeof(asn_DEF_fdd_tags_15) - /sizeof(asn_DEF_fdd_tags_15[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_fdd_15, - 1, /* Elements count */ - &asn_SPC_fdd_specs_15 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_tdd_18[] = { - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__uTRA__mode__tdd, cellParameters), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cellParameters_constr_19, memb_cellParameters_constraint_18 }, - 0, 0, /* No default value */ - "cellParameters" - }, -}; -static const ber_tlv_tag_t asn_DEF_tdd_tags_18[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_tdd_tag2el_18[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cellParameters */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_tdd_specs_18 = { - sizeof(struct NetworkTime__cellID__uTRA__mode__tdd), - offsetof(struct NetworkTime__cellID__uTRA__mode__tdd, _asn_ctx), - asn_MAP_tdd_tag2el_18, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_tdd_18 = { - "tdd", - "tdd", - &asn_OP_SEQUENCE, - asn_DEF_tdd_tags_18, - sizeof(asn_DEF_tdd_tags_18) - /sizeof(asn_DEF_tdd_tags_18[0]) - 1, /* 1 */ - asn_DEF_tdd_tags_18, /* Same as above */ - sizeof(asn_DEF_tdd_tags_18) - /sizeof(asn_DEF_tdd_tags_18[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_tdd_18, - 1, /* Elements count */ - &asn_SPC_tdd_specs_18 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_mode_14[] = { - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__uTRA__mode, choice.fdd), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_fdd_15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "fdd" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__uTRA__mode, choice.tdd), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_tdd_18, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tdd" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_mode_tag2el_14[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */ -}; -static asn_CHOICE_specifics_t asn_SPC_mode_specs_14 = { - sizeof(struct NetworkTime__cellID__uTRA__mode), - offsetof(struct NetworkTime__cellID__uTRA__mode, _asn_ctx), - offsetof(struct NetworkTime__cellID__uTRA__mode, present), - sizeof(((struct NetworkTime__cellID__uTRA__mode *)0)->present), - asn_MAP_mode_tag2el_14, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_mode_14 = { - "mode", - "mode", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_mode_constr_14, CHOICE_constraint }, - asn_MBR_mode_14, - 2, /* Elements count */ - &asn_SPC_mode_specs_14 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_uTRA_13[] = { - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__uTRA, mode), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_mode_14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mode" - }, - { ATF_POINTER, 1, offsetof(struct NetworkTime__cellID__uTRA, cellGlobalIdUTRA), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CellGlobalIdEUTRA_AndUTRA, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellGlobalIdUTRA" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__uTRA, uarfcn), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueUTRA, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "uarfcn" - }, -}; -static const int asn_MAP_uTRA_oms_13[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_uTRA_tags_13[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_uTRA_tag2el_13[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mode */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalIdUTRA */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* uarfcn */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_uTRA_specs_13 = { - sizeof(struct NetworkTime__cellID__uTRA), - offsetof(struct NetworkTime__cellID__uTRA, _asn_ctx), - asn_MAP_uTRA_tag2el_13, - 3, /* Count of tags in the map */ - asn_MAP_uTRA_oms_13, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_uTRA_13 = { - "uTRA", - "uTRA", - &asn_OP_SEQUENCE, - asn_DEF_uTRA_tags_13, - sizeof(asn_DEF_uTRA_tags_13) - /sizeof(asn_DEF_uTRA_tags_13[0]) - 1, /* 1 */ - asn_DEF_uTRA_tags_13, /* Same as above */ - sizeof(asn_DEF_uTRA_tags_13) - /sizeof(asn_DEF_uTRA_tags_13[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_uTRA_13, - 3, /* Elements count */ - &asn_SPC_uTRA_specs_13 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_gSM_24[] = { - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__gSM, bcchCarrier), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bcchCarrier_constr_25, memb_bcchCarrier_constraint_24 }, - 0, 0, /* No default value */ - "bcchCarrier" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__gSM, bsic), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bsic_constr_26, memb_bsic_constraint_24 }, - 0, 0, /* No default value */ - "bsic" - }, - { ATF_POINTER, 1, offsetof(struct NetworkTime__cellID__gSM, cellGlobalIdGERAN), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CellGlobalIdGERAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellGlobalIdGERAN" - }, -}; -static const int asn_MAP_gSM_oms_24[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_gSM_tags_24[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_gSM_tag2el_24[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bcchCarrier */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bsic */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* cellGlobalIdGERAN */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_gSM_specs_24 = { - sizeof(struct NetworkTime__cellID__gSM), - offsetof(struct NetworkTime__cellID__gSM, _asn_ctx), - asn_MAP_gSM_tag2el_24, - 3, /* Count of tags in the map */ - asn_MAP_gSM_oms_24, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_gSM_24 = { - "gSM", - "gSM", - &asn_OP_SEQUENCE, - asn_DEF_gSM_tags_24, - sizeof(asn_DEF_gSM_tags_24) - /sizeof(asn_DEF_gSM_tags_24[0]) - 1, /* 1 */ - asn_DEF_gSM_tags_24, /* Same as above */ - sizeof(asn_DEF_gSM_tags_24) - /sizeof(asn_DEF_gSM_tags_24[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_gSM_24, - 3, /* Elements count */ - &asn_SPC_gSM_specs_24 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_nBIoT_r14_30[] = { - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__nBIoT_r14, nbPhysCellId_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nbPhysCellId_r14_constr_31, memb_nbPhysCellId_r14_constraint_30 }, - 0, 0, /* No default value */ - "nbPhysCellId-r14" - }, - { ATF_POINTER, 1, offsetof(struct NetworkTime__cellID__nBIoT_r14, nbCellGlobalId_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ECGI, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nbCellGlobalId-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__nBIoT_r14, nbCarrierFreq_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CarrierFreq_NB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nbCarrierFreq-r14" - }, -}; -static const int asn_MAP_nBIoT_r14_oms_30[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_nBIoT_r14_tags_30[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_nBIoT_r14_tag2el_30[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nbPhysCellId-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nbCellGlobalId-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nbCarrierFreq-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_nBIoT_r14_specs_30 = { - sizeof(struct NetworkTime__cellID__nBIoT_r14), - offsetof(struct NetworkTime__cellID__nBIoT_r14, _asn_ctx), - asn_MAP_nBIoT_r14_tag2el_30, - 3, /* Count of tags in the map */ - asn_MAP_nBIoT_r14_oms_30, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nBIoT_r14_30 = { - "nBIoT-r14", - "nBIoT-r14", - &asn_OP_SEQUENCE, - asn_DEF_nBIoT_r14_tags_30, - sizeof(asn_DEF_nBIoT_r14_tags_30) - /sizeof(asn_DEF_nBIoT_r14_tags_30[0]) - 1, /* 1 */ - asn_DEF_nBIoT_r14_tags_30, /* Same as above */ - sizeof(asn_DEF_nBIoT_r14_tags_30) - /sizeof(asn_DEF_nBIoT_r14_tags_30[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_nBIoT_r14_30, - 3, /* Elements count */ - &asn_SPC_nBIoT_r14_specs_30 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_nr_r15_35[] = { - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__nr_r15, nrPhysCellId_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nrPhysCellId_r15_constr_36, memb_nrPhysCellId_r15_constraint_35 }, - 0, 0, /* No default value */ - "nrPhysCellId-r15" - }, - { ATF_POINTER, 1, offsetof(struct NetworkTime__cellID__nr_r15, nrCellGlobalID_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NCGI_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nrCellGlobalID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__nr_r15, nrARFCN_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueNR_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nrARFCN-r15" - }, -}; -static const int asn_MAP_nr_r15_oms_35[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_nr_r15_tags_35[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_nr_r15_tag2el_35[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nrPhysCellId-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nrCellGlobalID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nrARFCN-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_nr_r15_specs_35 = { - sizeof(struct NetworkTime__cellID__nr_r15), - offsetof(struct NetworkTime__cellID__nr_r15, _asn_ctx), - asn_MAP_nr_r15_tag2el_35, - 3, /* Count of tags in the map */ - asn_MAP_nr_r15_oms_35, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nr_r15_35 = { - "nr-r15", - "nr-r15", - &asn_OP_SEQUENCE, - asn_DEF_nr_r15_tags_35, - sizeof(asn_DEF_nr_r15_tags_35) - /sizeof(asn_DEF_nr_r15_tags_35[0]) - 1, /* 1 */ - asn_DEF_nr_r15_tags_35, /* Same as above */ - sizeof(asn_DEF_nr_r15_tags_35) - /sizeof(asn_DEF_nr_r15_tags_35[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_nr_r15_35, - 3, /* Elements count */ - &asn_SPC_nr_r15_specs_35 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_cellID_5[] = { - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID, choice.eUTRA), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_eUTRA_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "eUTRA" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID, choice.uTRA), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_uTRA_13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "uTRA" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID, choice.gSM), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_gSM_24, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gSM" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID, choice.nBIoT_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - 0, - &asn_DEF_nBIoT_r14_30, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nBIoT-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID, choice.nr_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - 0, - &asn_DEF_nr_r15_35, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-r15" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_cellID_tag2el_5[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eUTRA */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uTRA */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gSM */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nBIoT-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* nr-r15 */ -}; -static asn_CHOICE_specifics_t asn_SPC_cellID_specs_5 = { - sizeof(struct NetworkTime__cellID), - offsetof(struct NetworkTime__cellID, _asn_ctx), - offsetof(struct NetworkTime__cellID, present), - sizeof(((struct NetworkTime__cellID *)0)->present), - asn_MAP_cellID_tag2el_5, - 5, /* Count of tags in the map */ - 0, 0, - 3 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cellID_5 = { - "cellID", - "cellID", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_cellID_constr_5, CHOICE_constraint }, - asn_MBR_cellID_5, - 5, /* Elements count */ - &asn_SPC_cellID_specs_5 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_NetworkTime_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime, secondsFromFrameStructureStart), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_secondsFromFrameStructureStart_constr_2, memb_secondsFromFrameStructureStart_constraint_1 }, - 0, 0, /* No default value */ - "secondsFromFrameStructureStart" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime, fractionalSecondsFromFrameStructureStart), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_fractionalSecondsFromFrameStructureStart_constr_3, memb_fractionalSecondsFromFrameStructureStart_constraint_1 }, - 0, 0, /* No default value */ - "fractionalSecondsFromFrameStructureStart" - }, - { ATF_POINTER, 1, offsetof(struct NetworkTime, frameDrift), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_frameDrift_constr_4, memb_frameDrift_constraint_1 }, - 0, 0, /* No default value */ - "frameDrift" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetworkTime, cellID), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_cellID_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellID" - }, -}; -static const int asn_MAP_NetworkTime_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_NetworkTime_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NetworkTime_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* secondsFromFrameStructureStart */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* fractionalSecondsFromFrameStructureStart */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* frameDrift */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* cellID */ -}; -asn_SEQUENCE_specifics_t asn_SPC_NetworkTime_specs_1 = { - sizeof(struct NetworkTime), - offsetof(struct NetworkTime, _asn_ctx), - asn_MAP_NetworkTime_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_NetworkTime_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_NetworkTime = { - "NetworkTime", - "NetworkTime", - &asn_OP_SEQUENCE, - asn_DEF_NetworkTime_tags_1, - sizeof(asn_DEF_NetworkTime_tags_1) - /sizeof(asn_DEF_NetworkTime_tags_1[0]), /* 1 */ - asn_DEF_NetworkTime_tags_1, /* Same as above */ - sizeof(asn_DEF_NetworkTime_tags_1) - /sizeof(asn_DEF_NetworkTime_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_NetworkTime_1, - 4, /* Elements count */ - &asn_SPC_NetworkTime_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Notification.c b/asn.1/generated/Notification.c deleted file mode 100644 index 915bc1b7..00000000 --- a/asn.1/generated/Notification.c +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Notification.h" - -static int -memb_requestorId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size >= 1 && size <= 50)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_clientName_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size >= 1 && size <= 50)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_requestorId_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 50 } /* (SIZE(1..50)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_clientName_constr_6 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 50 } /* (SIZE(1..50)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_Notification_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Notification, notificationType), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NotificationType, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "notificationType" - }, - { ATF_POINTER, 6, offsetof(struct Notification, encodingType), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EncodingType, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "encodingType" - }, - { ATF_POINTER, 5, offsetof(struct Notification, requestorId), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OCTET_STRING, - 0, - { 0, &asn_PER_memb_requestorId_constr_4, memb_requestorId_constraint_1 }, - 0, 0, /* No default value */ - "requestorId" - }, - { ATF_POINTER, 4, offsetof(struct Notification, requestorIdType), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_FormatIndicator, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "requestorIdType" - }, - { ATF_POINTER, 3, offsetof(struct Notification, clientName), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OCTET_STRING, - 0, - { 0, &asn_PER_memb_clientName_constr_6, memb_clientName_constraint_1 }, - 0, 0, /* No default value */ - "clientName" - }, - { ATF_POINTER, 2, offsetof(struct Notification, clientNameType), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_FormatIndicator, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "clientNameType" - }, - { ATF_POINTER, 1, offsetof(struct Notification, ver2_Notification_extension), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver2_Notification_extension, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ver2-Notification-extension" - }, -}; -static const int asn_MAP_Notification_oms_1[] = { 1, 2, 3, 4, 5, 6 }; -static const ber_tlv_tag_t asn_DEF_Notification_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Notification_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* notificationType */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* encodingType */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* requestorId */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* requestorIdType */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* clientName */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* clientNameType */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ver2-Notification-extension */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Notification_specs_1 = { - sizeof(struct Notification), - offsetof(struct Notification, _asn_ctx), - asn_MAP_Notification_tag2el_1, - 7, /* Count of tags in the map */ - asn_MAP_Notification_oms_1, /* Optional members */ - 5, 1, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Notification = { - "Notification", - "Notification", - &asn_OP_SEQUENCE, - asn_DEF_Notification_tags_1, - sizeof(asn_DEF_Notification_tags_1) - /sizeof(asn_DEF_Notification_tags_1[0]), /* 1 */ - asn_DEF_Notification_tags_1, /* Same as above */ - sizeof(asn_DEF_Notification_tags_1) - /sizeof(asn_DEF_Notification_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Notification_1, - 7, /* Elements count */ - &asn_SPC_Notification_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Notification.h b/asn.1/generated/Notification.h deleted file mode 100644 index 01725a1d..00000000 --- a/asn.1/generated/Notification.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Notification_H_ -#define _Notification_H_ - - -#include - -/* Including external dependencies */ -#include "NotificationType.h" -#include "EncodingType.h" -#include -#include "FormatIndicator.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct Ver2_Notification_extension; - -/* Notification */ -typedef struct Notification { - NotificationType_t notificationType; - EncodingType_t *encodingType /* OPTIONAL */; - OCTET_STRING_t *requestorId /* OPTIONAL */; - FormatIndicator_t *requestorIdType /* OPTIONAL */; - OCTET_STRING_t *clientName /* OPTIONAL */; - FormatIndicator_t *clientNameType /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct Ver2_Notification_extension *ver2_Notification_extension /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Notification_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Notification; -extern asn_SEQUENCE_specifics_t asn_SPC_Notification_specs_1; -extern asn_TYPE_member_t asn_MBR_Notification_1[7]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "Ver2-Notification-extension.h" - -#endif /* _Notification_H_ */ -#include diff --git a/asn.1/generated/NotificationMode.c b/asn.1/generated/NotificationMode.c deleted file mode 100644 index efd70714..00000000 --- a/asn.1/generated/NotificationMode.c +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NotificationMode.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_NotificationMode_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_NotificationMode_value2enum_1[] = { - { 0, 6, "normal" }, - { 1, 15, "basedOnLocation" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_NotificationMode_enum2value_1[] = { - 1, /* basedOnLocation(1) */ - 0 /* normal(0) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_NotificationMode_specs_1 = { - asn_MAP_NotificationMode_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_NotificationMode_enum2value_1, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_NotificationMode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_NotificationMode = { - "NotificationMode", - "NotificationMode", - &asn_OP_NativeEnumerated, - asn_DEF_NotificationMode_tags_1, - sizeof(asn_DEF_NotificationMode_tags_1) - /sizeof(asn_DEF_NotificationMode_tags_1[0]), /* 1 */ - asn_DEF_NotificationMode_tags_1, /* Same as above */ - sizeof(asn_DEF_NotificationMode_tags_1) - /sizeof(asn_DEF_NotificationMode_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_NotificationMode_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_NotificationMode_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NotificationResponse.c b/asn.1/generated/NotificationResponse.c deleted file mode 100644 index a3303d18..00000000 --- a/asn.1/generated/NotificationResponse.c +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-NOTIFY-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NotificationResponse.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_NotificationResponse_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_NotificationResponse_value2enum_1[] = { - { 0, 7, "allowed" }, - { 1, 10, "notAllowed" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_NotificationResponse_enum2value_1[] = { - 0, /* allowed(0) */ - 1 /* notAllowed(1) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_NotificationResponse_specs_1 = { - asn_MAP_NotificationResponse_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_NotificationResponse_enum2value_1, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_NotificationResponse_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_NotificationResponse = { - "NotificationResponse", - "NotificationResponse", - &asn_OP_NativeEnumerated, - asn_DEF_NotificationResponse_tags_1, - sizeof(asn_DEF_NotificationResponse_tags_1) - /sizeof(asn_DEF_NotificationResponse_tags_1[0]), /* 1 */ - asn_DEF_NotificationResponse_tags_1, /* Same as above */ - sizeof(asn_DEF_NotificationResponse_tags_1) - /sizeof(asn_DEF_NotificationResponse_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_NotificationResponse_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_NotificationResponse_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/NotificationType.c b/asn.1/generated/NotificationType.c deleted file mode 100644 index 0664091b..00000000 --- a/asn.1/generated/NotificationType.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "NotificationType.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_NotificationType_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_NotificationType_value2enum_1[] = { - { 0, 28, "noNotificationNoVerification" }, - { 1, 16, "notificationOnly" }, - { 2, 35, "notificationAndVerficationAllowedNA" }, - { 3, 34, "notificationAndVerficationDeniedNA" }, - { 4, 15, "privacyOverride" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_NotificationType_enum2value_1[] = { - 0, /* noNotificationNoVerification(0) */ - 2, /* notificationAndVerficationAllowedNA(2) */ - 3, /* notificationAndVerficationDeniedNA(3) */ - 1, /* notificationOnly(1) */ - 4 /* privacyOverride(4) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_NotificationType_specs_1 = { - asn_MAP_NotificationType_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_NotificationType_enum2value_1, /* N => "tag"; sorted by N */ - 5, /* Number of elements in the maps */ - 6, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_NotificationType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_NotificationType = { - "NotificationType", - "NotificationType", - &asn_OP_NativeEnumerated, - asn_DEF_NotificationType_tags_1, - sizeof(asn_DEF_NotificationType_tags_1) - /sizeof(asn_DEF_NotificationType_tags_1[0]), /* 1 */ - asn_DEF_NotificationType_tags_1, /* Same as above */ - sizeof(asn_DEF_NotificationType_tags_1) - /sizeof(asn_DEF_NotificationType_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_NotificationType_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_NotificationType_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/OCTET_STRING.c b/asn.1/generated/OCTET_STRING.c deleted file mode 100644 index d041e9aa..00000000 --- a/asn.1/generated/OCTET_STRING.c +++ /dev/null @@ -1,2043 +0,0 @@ -/*- - * Copyright (c) 2003-2017 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include -#include /* for .bits_unused member */ -#include - -/* - * OCTET STRING basic type description. - */ -static const ber_tlv_tag_t asn_DEF_OCTET_STRING_tags[] = { - (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) -}; -asn_OCTET_STRING_specifics_t asn_SPC_OCTET_STRING_specs = { - sizeof(OCTET_STRING_t), - offsetof(OCTET_STRING_t, _asn_ctx), - ASN_OSUBV_STR -}; - -asn_TYPE_operation_t asn_OP_OCTET_STRING = { - OCTET_STRING_free, - OCTET_STRING_print, /* OCTET STRING generally means a non-ascii sequence */ - OCTET_STRING_compare, - OCTET_STRING_decode_ber, - OCTET_STRING_encode_der, - OCTET_STRING_decode_xer_hex, - OCTET_STRING_encode_xer, -#ifdef ASN_DISABLE_OER_SUPPORT - 0, - 0, -#else - OCTET_STRING_decode_oer, - OCTET_STRING_encode_oer, -#endif /* ASN_DISABLE_OER_SUPPORT */ -#ifdef ASN_DISABLE_PER_SUPPORT - 0, - 0, -#else - OCTET_STRING_decode_uper, /* Unaligned PER decoder */ - OCTET_STRING_encode_uper, /* Unaligned PER encoder */ -#endif /* ASN_DISABLE_PER_SUPPORT */ - OCTET_STRING_random_fill, - 0 /* Use generic outmost tag fetcher */ -}; -asn_TYPE_descriptor_t asn_DEF_OCTET_STRING = { - "OCTET STRING", /* Canonical name */ - "OCTET_STRING", /* XML tag name */ - &asn_OP_OCTET_STRING, - asn_DEF_OCTET_STRING_tags, - sizeof(asn_DEF_OCTET_STRING_tags) - / sizeof(asn_DEF_OCTET_STRING_tags[0]), - asn_DEF_OCTET_STRING_tags, /* Same as above */ - sizeof(asn_DEF_OCTET_STRING_tags) - / sizeof(asn_DEF_OCTET_STRING_tags[0]), - { 0, 0, asn_generic_no_constraint }, - 0, 0, /* No members */ - &asn_SPC_OCTET_STRING_specs -}; - -#undef _CH_PHASE -#undef NEXT_PHASE -#undef PREV_PHASE -#define _CH_PHASE(ctx, inc) do { \ - if(ctx->phase == 0) \ - ctx->context = 0; \ - ctx->phase += inc; \ - } while(0) -#define NEXT_PHASE(ctx) _CH_PHASE(ctx, +1) -#define PREV_PHASE(ctx) _CH_PHASE(ctx, -1) - -#undef ADVANCE -#define ADVANCE(num_bytes) do { \ - size_t num = (num_bytes); \ - buf_ptr = ((const char *)buf_ptr) + num; \ - size -= num; \ - consumed_myself += num; \ - } while(0) - -#undef RETURN -#define RETURN(_code) do { \ - asn_dec_rval_t tmprval; \ - tmprval.code = _code; \ - tmprval.consumed = consumed_myself; \ - return tmprval; \ - } while(0) - -#undef APPEND -#define APPEND(bufptr, bufsize) do { \ - size_t _bs = (bufsize); /* Append size */ \ - size_t _ns = ctx->context; /* Allocated now */ \ - size_t _es = st->size + _bs; /* Expected size */ \ - /* int is really a typeof(st->size): */ \ - if((int)_es < 0) RETURN(RC_FAIL); \ - if(_ns <= _es) { \ - void *ptr; \ - /* Be nice and round to the memory allocator */ \ - do { _ns = _ns ? _ns << 1 : 16; } \ - while(_ns <= _es); \ - /* int is really a typeof(st->size): */ \ - if((int)_ns < 0) RETURN(RC_FAIL); \ - ptr = REALLOC(st->buf, _ns); \ - if(ptr) { \ - st->buf = (uint8_t *)ptr; \ - ctx->context = _ns; \ - } else { \ - RETURN(RC_FAIL); \ - } \ - ASN_DEBUG("Reallocating into %ld", (long)_ns); \ - } \ - memcpy(st->buf + st->size, bufptr, _bs); \ - /* Convenient nul-termination */ \ - st->buf[_es] = '\0'; \ - st->size = _es; \ - } while(0) - -/* - * The main reason why ASN.1 is still alive is that too much time and effort - * is necessary for learning it more or less adequately, thus creating a gut - * necessity to demonstrate that aquired skill everywhere afterwards. - * No, I am not going to explain what the following stuff is. - */ -struct _stack_el { - ber_tlv_len_t left; /* What's left to read (or -1) */ - ber_tlv_len_t got; /* What was actually processed */ - unsigned cont_level; /* Depth of subcontainment */ - int want_nulls; /* Want null "end of content" octets? */ - int bits_chopped; /* Flag in BIT STRING mode */ - ber_tlv_tag_t tag; /* For debugging purposes */ - struct _stack_el *prev; - struct _stack_el *next; -}; -struct _stack { - struct _stack_el *tail; - struct _stack_el *cur_ptr; -}; - -static struct _stack_el * -OS__add_stack_el(struct _stack *st) { - struct _stack_el *nel; - - /* - * Reuse the old stack frame or allocate a new one. - */ - if(st->cur_ptr && st->cur_ptr->next) { - nel = st->cur_ptr->next; - nel->bits_chopped = 0; - nel->got = 0; - /* Retain the nel->cont_level, it's correct. */ - } else { - nel = (struct _stack_el *)CALLOC(1, sizeof(struct _stack_el)); - if(nel == NULL) - return NULL; - - if(st->tail) { - /* Increase a subcontainment depth */ - nel->cont_level = st->tail->cont_level + 1; - st->tail->next = nel; - } - nel->prev = st->tail; - st->tail = nel; - } - - st->cur_ptr = nel; - - return nel; -} - -static struct _stack * -_new_stack(void) { - return (struct _stack *)CALLOC(1, sizeof(struct _stack)); -} - -/* - * Decode OCTET STRING type. - */ -asn_dec_rval_t -OCTET_STRING_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **sptr, - const void *buf_ptr, size_t size, int tag_mode) { - const asn_OCTET_STRING_specifics_t *specs = td->specifics - ? (const asn_OCTET_STRING_specifics_t *)td->specifics - : &asn_SPC_OCTET_STRING_specs; - BIT_STRING_t *st = (BIT_STRING_t *)*sptr; - asn_dec_rval_t rval; - asn_struct_ctx_t *ctx; - ssize_t consumed_myself = 0; - struct _stack *stck; /* Expectations stack structure */ - struct _stack_el *sel = 0; /* Stack element */ - int tlv_constr; - enum asn_OS_Subvariant type_variant = specs->subvariant; - - ASN_DEBUG("Decoding %s as %s (frame %ld)", - td->name, - (type_variant == ASN_OSUBV_STR) ? - "OCTET STRING" : "OS-SpecialCase", - (long)size); - - /* - * Create the string if does not exist. - */ - if(st == NULL) { - st = (BIT_STRING_t *)(*sptr = CALLOC(1, specs->struct_size)); - if(st == NULL) RETURN(RC_FAIL); - } - - /* Restore parsing context */ - ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); - - switch(ctx->phase) { - case 0: - /* - * Check tags. - */ - rval = ber_check_tags(opt_codec_ctx, td, ctx, - buf_ptr, size, tag_mode, -1, - &ctx->left, &tlv_constr); - if(rval.code != RC_OK) - return rval; - - if(tlv_constr) { - /* - * Complex operation, requires stack of expectations. - */ - ctx->ptr = _new_stack(); - if(!ctx->ptr) { - RETURN(RC_FAIL); - } - } else { - /* - * Jump into stackless primitive decoding. - */ - _CH_PHASE(ctx, 3); - if(type_variant == ASN_OSUBV_ANY && tag_mode != 1) - APPEND(buf_ptr, rval.consumed); - ADVANCE(rval.consumed); - goto phase3; - } - - NEXT_PHASE(ctx); - /* Fall through */ - case 1: - phase1: - /* - * Fill the stack with expectations. - */ - stck = (struct _stack *)ctx->ptr; - sel = stck->cur_ptr; - do { - ber_tlv_tag_t tlv_tag; - ber_tlv_len_t tlv_len; - ber_tlv_tag_t expected_tag; - ssize_t tl, ll, tlvl; - /* This one works even if (sel->left == -1) */ - size_t Left = ((!sel||(size_t)sel->left >= size) - ?size:(size_t)sel->left); - - - ASN_DEBUG("%p, s->l=%ld, s->wn=%ld, s->g=%ld\n", (void *)sel, - (long)(sel?sel->left:0), - (long)(sel?sel->want_nulls:0), - (long)(sel?sel->got:0) - ); - if(sel && sel->left <= 0 && sel->want_nulls == 0) { - if(sel->prev) { - struct _stack_el *prev = sel->prev; - if(prev->left != -1) { - if(prev->left < sel->got) - RETURN(RC_FAIL); - prev->left -= sel->got; - } - prev->got += sel->got; - sel = stck->cur_ptr = prev; - if(!sel) break; - tlv_constr = 1; - continue; - } else { - sel = stck->cur_ptr = 0; - break; /* Nothing to wait */ - } - } - - tl = ber_fetch_tag(buf_ptr, Left, &tlv_tag); - ASN_DEBUG("fetch tag(size=%ld,L=%ld), %sstack, left=%ld, wn=%ld, tl=%ld", - (long)size, (long)Left, sel?"":"!", - (long)(sel?sel->left:0), - (long)(sel?sel->want_nulls:0), - (long)tl); - switch(tl) { - case -1: RETURN(RC_FAIL); - case 0: RETURN(RC_WMORE); - } - - tlv_constr = BER_TLV_CONSTRUCTED(buf_ptr); - - ll = ber_fetch_length(tlv_constr, - (const char *)buf_ptr + tl,Left - tl,&tlv_len); - ASN_DEBUG("Got tag=%s, tc=%d, left=%ld, tl=%ld, len=%ld, ll=%ld", - ber_tlv_tag_string(tlv_tag), tlv_constr, - (long)Left, (long)tl, (long)tlv_len, (long)ll); - switch(ll) { - case -1: RETURN(RC_FAIL); - case 0: RETURN(RC_WMORE); - } - - if(sel && sel->want_nulls - && ((const uint8_t *)buf_ptr)[0] == 0 - && ((const uint8_t *)buf_ptr)[1] == 0) - { - - ASN_DEBUG("Eat EOC; wn=%d--", sel->want_nulls); - - if(type_variant == ASN_OSUBV_ANY - && (tag_mode != 1 || sel->cont_level)) - APPEND("\0\0", 2); - - ADVANCE(2); - sel->got += 2; - if(sel->left != -1) { - sel->left -= 2; /* assert(sel->left >= 2) */ - } - - sel->want_nulls--; - if(sel->want_nulls == 0) { - /* Move to the next expectation */ - sel->left = 0; - tlv_constr = 1; - } - - continue; - } - - /* - * Set up expected tags, - * depending on ASN.1 type being decoded. - */ - switch(type_variant) { - case ASN_OSUBV_BIT: - /* X.690: 8.6.4.1, NOTE 2 */ - /* Fall through */ - case ASN_OSUBV_STR: - default: - if(sel) { - unsigned level = sel->cont_level; - if(level < td->all_tags_count) { - expected_tag = td->all_tags[level]; - break; - } else if(td->all_tags_count) { - expected_tag = td->all_tags - [td->all_tags_count - 1]; - break; - } - /* else, Fall through */ - } - /* Fall through */ - case ASN_OSUBV_ANY: - expected_tag = tlv_tag; - break; - } - - - if(tlv_tag != expected_tag) { - char buf[2][32]; - ber_tlv_tag_snprint(tlv_tag, - buf[0], sizeof(buf[0])); - ber_tlv_tag_snprint(td->tags[td->tags_count-1], - buf[1], sizeof(buf[1])); - ASN_DEBUG("Tag does not match expectation: %s != %s", - buf[0], buf[1]); - RETURN(RC_FAIL); - } - - tlvl = tl + ll; /* Combined length of T and L encoding */ - if((tlv_len + tlvl) < 0) { - /* tlv_len value is too big */ - ASN_DEBUG("TLV encoding + length (%ld) is too big", - (long)tlv_len); - RETURN(RC_FAIL); - } - - /* - * Append a new expectation. - */ - sel = OS__add_stack_el(stck); - if(!sel) RETURN(RC_FAIL); - - sel->tag = tlv_tag; - - sel->want_nulls = (tlv_len==-1); - if(sel->prev && sel->prev->left != -1) { - /* Check that the parent frame is big enough */ - if(sel->prev->left < tlvl + (tlv_len==-1?0:tlv_len)) - RETURN(RC_FAIL); - if(tlv_len == -1) - sel->left = sel->prev->left - tlvl; - else - sel->left = tlv_len; - } else { - sel->left = tlv_len; - } - if(type_variant == ASN_OSUBV_ANY - && (tag_mode != 1 || sel->cont_level)) - APPEND(buf_ptr, tlvl); - sel->got += tlvl; - ADVANCE(tlvl); - - ASN_DEBUG("+EXPECT2 got=%ld left=%ld, wn=%d, clvl=%u", - (long)sel->got, (long)sel->left, - sel->want_nulls, sel->cont_level); - - } while(tlv_constr); - if(sel == NULL) { - /* Finished operation, "phase out" */ - ASN_DEBUG("Phase out"); - _CH_PHASE(ctx, +3); - break; - } - - NEXT_PHASE(ctx); - /* Fall through */ - case 2: - stck = (struct _stack *)ctx->ptr; - sel = stck->cur_ptr; - ASN_DEBUG("Phase 2: Need %ld bytes, size=%ld, alrg=%ld, wn=%d", - (long)sel->left, (long)size, (long)sel->got, - sel->want_nulls); - { - ber_tlv_len_t len; - - assert(sel->left >= 0); - - len = ((ber_tlv_len_t)size < sel->left) - ? (ber_tlv_len_t)size : sel->left; - if(len > 0) { - if(type_variant == ASN_OSUBV_BIT - && sel->bits_chopped == 0) { - /* Put the unused-bits-octet away */ - st->bits_unused = *(const uint8_t *)buf_ptr; - APPEND(((const char *)buf_ptr+1), (len - 1)); - sel->bits_chopped = 1; - } else { - APPEND(buf_ptr, len); - } - ADVANCE(len); - sel->left -= len; - sel->got += len; - } - - if(sel->left) { - ASN_DEBUG("OS left %ld, size = %ld, wn=%d\n", - (long)sel->left, (long)size, sel->want_nulls); - RETURN(RC_WMORE); - } - - PREV_PHASE(ctx); - goto phase1; - } - break; - case 3: - phase3: - /* - * Primitive form, no stack required. - */ - assert(ctx->left >= 0); - - if(size < (size_t)ctx->left) { - if(!size) RETURN(RC_WMORE); - if(type_variant == ASN_OSUBV_BIT && !ctx->context) { - st->bits_unused = *(const uint8_t *)buf_ptr; - ctx->left--; - ADVANCE(1); - } - APPEND(buf_ptr, size); - assert(ctx->context > 0); - ctx->left -= size; - ADVANCE(size); - RETURN(RC_WMORE); - } else { - if(type_variant == ASN_OSUBV_BIT - && !ctx->context && ctx->left) { - st->bits_unused = *(const uint8_t *)buf_ptr; - ctx->left--; - ADVANCE(1); - } - APPEND(buf_ptr, ctx->left); - ADVANCE(ctx->left); - ctx->left = 0; - - NEXT_PHASE(ctx); - } - break; - } - - if(sel) { - ASN_DEBUG("3sel p=%p, wn=%d, l=%ld, g=%ld, size=%ld", - (void *)sel->prev, sel->want_nulls, - (long)sel->left, (long)sel->got, (long)size); - if(sel->prev || sel->want_nulls > 1 || sel->left > 0) { - RETURN(RC_WMORE); - } - } - - /* - * BIT STRING-specific processing. - */ - if(type_variant == ASN_OSUBV_BIT) { - if(st->size) { - if(st->bits_unused < 0 || st->bits_unused > 7) { - RETURN(RC_FAIL); - } - /* Finalize BIT STRING: zero out unused bits. */ - st->buf[st->size-1] &= 0xff << st->bits_unused; - } else { - if(st->bits_unused) { - RETURN(RC_FAIL); - } - } - } - - ASN_DEBUG("Took %ld bytes to encode %s: [%s]:%ld", - (long)consumed_myself, td->name, - (type_variant == ASN_OSUBV_STR) ? (char *)st->buf : "", - (long)st->size); - - - RETURN(RC_OK); -} - -/* - * Encode OCTET STRING type using DER. - */ -asn_enc_rval_t -OCTET_STRING_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, - int tag_mode, ber_tlv_tag_t tag, - asn_app_consume_bytes_f *cb, void *app_key) { - asn_enc_rval_t er; - const asn_OCTET_STRING_specifics_t *specs = td->specifics - ? (const asn_OCTET_STRING_specifics_t *)td->specifics - : &asn_SPC_OCTET_STRING_specs; - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - enum asn_OS_Subvariant type_variant = specs->subvariant; - int fix_last_byte = 0; - - ASN_DEBUG("%s %s as OCTET STRING", - cb?"Estimating":"Encoding", td->name); - - /* - * Write tags. - */ - if(type_variant != ASN_OSUBV_ANY || tag_mode == 1) { - er.encoded = der_write_tags(td, - (type_variant == ASN_OSUBV_BIT) + st->size, - tag_mode, type_variant == ASN_OSUBV_ANY, tag, - cb, app_key); - if(er.encoded == -1) { - er.failed_type = td; - er.structure_ptr = sptr; - return er; - } - } else { - /* Disallow: [] IMPLICIT ANY */ - assert(type_variant != ASN_OSUBV_ANY || tag_mode != -1); - er.encoded = 0; - } - - if(!cb) { - er.encoded += (type_variant == ASN_OSUBV_BIT) + st->size; - ASN__ENCODED_OK(er); - } - - /* - * Prepare to deal with the last octet of BIT STRING. - */ - if(type_variant == ASN_OSUBV_BIT) { - uint8_t b = st->bits_unused & 0x07; - if(b && st->size) fix_last_byte = 1; - ASN__CALLBACK(&b, 1); - } - - /* Invoke callback for the main part of the buffer */ - ASN__CALLBACK(st->buf, st->size - fix_last_byte); - - /* The last octet should be stripped off the unused bits */ - if(fix_last_byte) { - uint8_t b = st->buf[st->size-1] & (0xff << st->bits_unused); - ASN__CALLBACK(&b, 1); - } - - ASN__ENCODED_OK(er); -cb_failed: - ASN__ENCODE_FAILED; -} - -asn_enc_rval_t -OCTET_STRING_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - const char * const h2c = "0123456789ABCDEF"; - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - asn_enc_rval_t er; - char scratch[16 * 3 + 4]; - char *p = scratch; - uint8_t *buf; - uint8_t *end; - size_t i; - - if(!st || (!st->buf && st->size)) - ASN__ENCODE_FAILED; - - er.encoded = 0; - - /* - * Dump the contents of the buffer in hexadecimal. - */ - buf = st->buf; - end = buf + st->size; - if(flags & XER_F_CANONICAL) { - char *scend = scratch + (sizeof(scratch) - 2); - for(; buf < end; buf++) { - if(p >= scend) { - ASN__CALLBACK(scratch, p - scratch); - p = scratch; - } - *p++ = h2c[(*buf >> 4) & 0x0F]; - *p++ = h2c[*buf & 0x0F]; - } - - ASN__CALLBACK(scratch, p-scratch); /* Dump the rest */ - } else { - for(i = 0; buf < end; buf++, i++) { - if(!(i % 16) && (i || st->size > 16)) { - ASN__CALLBACK(scratch, p-scratch); - p = scratch; - ASN__TEXT_INDENT(1, ilevel); - } - *p++ = h2c[(*buf >> 4) & 0x0F]; - *p++ = h2c[*buf & 0x0F]; - *p++ = 0x20; - } - if(p - scratch) { - p--; /* Remove the tail space */ - ASN__CALLBACK(scratch, p-scratch); /* Dump the rest */ - if(st->size > 16) - ASN__TEXT_INDENT(1, ilevel-1); - } - } - - ASN__ENCODED_OK(er); -cb_failed: - ASN__ENCODE_FAILED; -} - -static const struct OCTET_STRING__xer_escape_table_s { - const char *string; - int size; -} OCTET_STRING__xer_escape_table[] = { -#define OSXET(s) { s, sizeof(s) - 1 } - OSXET("\074\156\165\154\057\076"), /* */ - OSXET("\074\163\157\150\057\076"), /* */ - OSXET("\074\163\164\170\057\076"), /* */ - OSXET("\074\145\164\170\057\076"), /* */ - OSXET("\074\145\157\164\057\076"), /* */ - OSXET("\074\145\156\161\057\076"), /* */ - OSXET("\074\141\143\153\057\076"), /* */ - OSXET("\074\142\145\154\057\076"), /* */ - OSXET("\074\142\163\057\076"), /* */ - OSXET("\011"), /* \t */ - OSXET("\012"), /* \n */ - OSXET("\074\166\164\057\076"), /* */ - OSXET("\074\146\146\057\076"), /* */ - OSXET("\015"), /* \r */ - OSXET("\074\163\157\057\076"), /* */ - OSXET("\074\163\151\057\076"), /* */ - OSXET("\074\144\154\145\057\076"), /* */ - OSXET("\074\144\143\061\057\076"), /* */ - OSXET("\074\144\143\062\057\076"), /* */ - OSXET("\074\144\143\063\057\076"), /* */ - OSXET("\074\144\143\064\057\076"), /* */ - OSXET("\074\156\141\153\057\076"), /* */ - OSXET("\074\163\171\156\057\076"), /* */ - OSXET("\074\145\164\142\057\076"), /* */ - OSXET("\074\143\141\156\057\076"), /* */ - OSXET("\074\145\155\057\076"), /* */ - OSXET("\074\163\165\142\057\076"), /* */ - OSXET("\074\145\163\143\057\076"), /* */ - OSXET("\074\151\163\064\057\076"), /* */ - OSXET("\074\151\163\063\057\076"), /* */ - OSXET("\074\151\163\062\057\076"), /* */ - OSXET("\074\151\163\061\057\076"), /* */ - { 0, 0 }, /* " " */ - { 0, 0 }, /* ! */ - { 0, 0 }, /* \" */ - { 0, 0 }, /* # */ - { 0, 0 }, /* $ */ - { 0, 0 }, /* % */ - OSXET("\046\141\155\160\073"), /* & */ - { 0, 0 }, /* ' */ - {0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, /* ()*+,-./ */ - {0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, /* 01234567 */ - {0,0},{0,0},{0,0},{0,0}, /* 89:; */ - OSXET("\046\154\164\073"), /* < */ - { 0, 0 }, /* = */ - OSXET("\046\147\164\073"), /* > */ -}; - -static int -OS__check_escaped_control_char(const void *buf, int size) { - size_t i; - /* - * Inefficient algorithm which translates the escape sequences - * defined above into characters. Returns -1 if not found. - * TODO: replace by a faster algorithm (bsearch(), hash or - * nested table lookups). - */ - for(i = 0; i < 32 /* Don't spend time on the bottom half */; i++) { - const struct OCTET_STRING__xer_escape_table_s *el; - el = &OCTET_STRING__xer_escape_table[i]; - if(el->size == size && memcmp(buf, el->string, size) == 0) - return i; - } - return -1; -} - -static int -OCTET_STRING__handle_control_chars(void *struct_ptr, const void *chunk_buf, size_t chunk_size) { - /* - * This might be one of the escape sequences - * for control characters. Check it out. - * #11.15.5 - */ - int control_char = OS__check_escaped_control_char(chunk_buf,chunk_size); - if(control_char >= 0) { - OCTET_STRING_t *st = (OCTET_STRING_t *)struct_ptr; - void *p = REALLOC(st->buf, st->size + 2); - if(p) { - st->buf = (uint8_t *)p; - st->buf[st->size++] = control_char; - st->buf[st->size] = '\0'; /* nul-termination */ - return 0; - } - } - - return -1; /* No, it's not */ -} - -asn_enc_rval_t -OCTET_STRING_encode_xer_utf8(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - asn_enc_rval_t er; - uint8_t *buf, *end; - uint8_t *ss; /* Sequence start */ - ssize_t encoded_len = 0; - - (void)ilevel; /* Unused argument */ - (void)flags; /* Unused argument */ - - if(!st || (!st->buf && st->size)) - ASN__ENCODE_FAILED; - - buf = st->buf; - end = buf + st->size; - for(ss = buf; buf < end; buf++) { - unsigned int ch = *buf; - int s_len; /* Special encoding sequence length */ - - /* - * Escape certain characters: X.680/11.15 - */ - if(ch < sizeof(OCTET_STRING__xer_escape_table) - /sizeof(OCTET_STRING__xer_escape_table[0]) - && (s_len = OCTET_STRING__xer_escape_table[ch].size)) { - if(((buf - ss) && cb(ss, buf - ss, app_key) < 0) - || cb(OCTET_STRING__xer_escape_table[ch].string, s_len, - app_key) < 0) - ASN__ENCODE_FAILED; - encoded_len += (buf - ss) + s_len; - ss = buf + 1; - } - } - - encoded_len += (buf - ss); - if((buf - ss) && cb(ss, buf - ss, app_key) < 0) - ASN__ENCODE_FAILED; - - er.encoded = encoded_len; - ASN__ENCODED_OK(er); -} - -/* - * Convert from hexadecimal format (cstring): "AB CD EF" - */ -static ssize_t OCTET_STRING__convert_hexadecimal(void *sptr, const void *chunk_buf, size_t chunk_size, int have_more) { - OCTET_STRING_t *st = (OCTET_STRING_t *)sptr; - const char *chunk_stop = (const char *)chunk_buf; - const char *p = chunk_stop; - const char *pend = p + chunk_size; - unsigned int clv = 0; - int half = 0; /* Half bit */ - uint8_t *buf; - - /* Reallocate buffer according to high cap estimation */ - size_t new_size = st->size + (chunk_size + 1) / 2; - void *nptr = REALLOC(st->buf, new_size + 1); - if(!nptr) return -1; - st->buf = (uint8_t *)nptr; - buf = st->buf + st->size; - - /* - * If something like " a b c " appears here, the " a b":3 will be - * converted, and the rest skipped. That is, unless buf_size is greater - * than chunk_size, then it'll be equivalent to "ABC0". - */ - for(; p < pend; p++) { - int ch = *(const unsigned char *)p; - switch(ch) { - case 0x09: case 0x0a: case 0x0c: case 0x0d: - case 0x20: - /* Ignore whitespace */ - continue; - case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: /*01234*/ - case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: /*56789*/ - clv = (clv << 4) + (ch - 0x30); - break; - case 0x41: case 0x42: case 0x43: /* ABC */ - case 0x44: case 0x45: case 0x46: /* DEF */ - clv = (clv << 4) + (ch - 0x41 + 10); - break; - case 0x61: case 0x62: case 0x63: /* abc */ - case 0x64: case 0x65: case 0x66: /* def */ - clv = (clv << 4) + (ch - 0x61 + 10); - break; - default: - *buf = 0; /* JIC */ - return -1; - } - if(half++) { - half = 0; - *buf++ = clv; - chunk_stop = p + 1; - } - } - - /* - * Check partial decoding. - */ - if(half) { - if(have_more) { - /* - * Partial specification is fine, - * because no more more PXER_TEXT data is available. - */ - *buf++ = clv << 4; - chunk_stop = p; - } - } else { - chunk_stop = p; - } - - st->size = buf - st->buf; /* Adjust the buffer size */ - assert(st->size <= new_size); - st->buf[st->size] = 0; /* Courtesy termination */ - - return (chunk_stop - (const char *)chunk_buf); /* Converted size */ -} - -/* - * Convert from binary format: "00101011101" - */ -static ssize_t OCTET_STRING__convert_binary(void *sptr, const void *chunk_buf, size_t chunk_size, int have_more) { - BIT_STRING_t *st = (BIT_STRING_t *)sptr; - const char *p = (const char *)chunk_buf; - const char *pend = p + chunk_size; - int bits_unused = st->bits_unused & 0x7; - uint8_t *buf; - - /* Reallocate buffer according to high cap estimation */ - size_t new_size = st->size + (chunk_size + 7) / 8; - void *nptr = REALLOC(st->buf, new_size + 1); - if(!nptr) return -1; - st->buf = (uint8_t *)nptr; - buf = st->buf + st->size; - - (void)have_more; - - if(bits_unused == 0) - bits_unused = 8; - else if(st->size) - buf--; - - /* - * Convert series of 0 and 1 into the octet string. - */ - for(; p < pend; p++) { - int ch = *(const unsigned char *)p; - switch(ch) { - case 0x09: case 0x0a: case 0x0c: case 0x0d: - case 0x20: - /* Ignore whitespace */ - break; - case 0x30: - case 0x31: - if(bits_unused-- <= 0) { - *++buf = 0; /* Clean the cell */ - bits_unused = 7; - } - *buf |= (ch&1) << bits_unused; - break; - default: - st->bits_unused = bits_unused; - return -1; - } - } - - if(bits_unused == 8) { - st->size = buf - st->buf; - st->bits_unused = 0; - } else { - st->size = buf - st->buf + 1; - st->bits_unused = bits_unused; - } - - assert(st->size <= new_size); - st->buf[st->size] = 0; /* Courtesy termination */ - - return chunk_size; /* Converted in full */ -} - -/* - * Something like strtod(), but with stricter rules. - */ -static int -OS__strtoent(int base, const char *buf, const char *end, int32_t *ret_value) { - const int32_t last_unicode_codepoint = 0x10ffff; - int32_t val = 0; - const char *p; - - for(p = buf; p < end; p++) { - int ch = *p; - - switch(ch) { - case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: /*01234*/ - case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: /*56789*/ - val = val * base + (ch - 0x30); - break; - case 0x41: case 0x42: case 0x43: /* ABC */ - case 0x44: case 0x45: case 0x46: /* DEF */ - val = val * base + (ch - 0x41 + 10); - break; - case 0x61: case 0x62: case 0x63: /* abc */ - case 0x64: case 0x65: case 0x66: /* def */ - val = val * base + (ch - 0x61 + 10); - break; - case 0x3b: /* ';' */ - *ret_value = val; - return (p - buf) + 1; - default: - return -1; /* Character set error */ - } - - /* Value exceeds the Unicode range. */ - if(val > last_unicode_codepoint) { - return -1; - } - } - - *ret_value = -1; - return (p - buf); -} - -/* - * Convert from the plain UTF-8 format, expanding entity references: "2 < 3" - */ -static ssize_t -OCTET_STRING__convert_entrefs(void *sptr, const void *chunk_buf, - size_t chunk_size, int have_more) { - OCTET_STRING_t *st = (OCTET_STRING_t *)sptr; - const char *p = (const char *)chunk_buf; - const char *pend = p + chunk_size; - uint8_t *buf; - - /* Reallocate buffer */ - size_t new_size = st->size + chunk_size; - void *nptr = REALLOC(st->buf, new_size + 1); - if(!nptr) return -1; - st->buf = (uint8_t *)nptr; - buf = st->buf + st->size; - - /* - * Convert series of 0 and 1 into the octet string. - */ - for(; p < pend; p++) { - int ch = *(const unsigned char *)p; - int len; /* Length of the rest of the chunk */ - - if(ch != 0x26 /* '&' */) { - *buf++ = ch; - continue; /* That was easy... */ - } - - /* - * Process entity reference. - */ - len = chunk_size - (p - (const char *)chunk_buf); - if(len == 1 /* "&" */) goto want_more; - if(p[1] == 0x23 /* '#' */) { - const char *pval; /* Pointer to start of digits */ - int32_t val = 0; /* Entity reference value */ - int base; - - if(len == 2 /* "&#" */) goto want_more; - if(p[2] == 0x78 /* 'x' */) - pval = p + 3, base = 16; - else - pval = p + 2, base = 10; - len = OS__strtoent(base, pval, p + len, &val); - if(len == -1) { - /* Invalid charset. Just copy verbatim. */ - *buf++ = ch; - continue; - } - if(!len || pval[len-1] != 0x3b) goto want_more; - assert(val > 0); - p += (pval - p) + len - 1; /* Advance past entref */ - - if(val < 0x80) { - *buf++ = (char)val; - } else if(val < 0x800) { - *buf++ = 0xc0 | ((val >> 6)); - *buf++ = 0x80 | ((val & 0x3f)); - } else if(val < 0x10000) { - *buf++ = 0xe0 | ((val >> 12)); - *buf++ = 0x80 | ((val >> 6) & 0x3f); - *buf++ = 0x80 | ((val & 0x3f)); - } else if(val < 0x200000) { - *buf++ = 0xf0 | ((val >> 18)); - *buf++ = 0x80 | ((val >> 12) & 0x3f); - *buf++ = 0x80 | ((val >> 6) & 0x3f); - *buf++ = 0x80 | ((val & 0x3f)); - } else if(val < 0x4000000) { - *buf++ = 0xf8 | ((val >> 24)); - *buf++ = 0x80 | ((val >> 18) & 0x3f); - *buf++ = 0x80 | ((val >> 12) & 0x3f); - *buf++ = 0x80 | ((val >> 6) & 0x3f); - *buf++ = 0x80 | ((val & 0x3f)); - } else { - *buf++ = 0xfc | ((val >> 30) & 0x1); - *buf++ = 0x80 | ((val >> 24) & 0x3f); - *buf++ = 0x80 | ((val >> 18) & 0x3f); - *buf++ = 0x80 | ((val >> 12) & 0x3f); - *buf++ = 0x80 | ((val >> 6) & 0x3f); - *buf++ = 0x80 | ((val & 0x3f)); - } - } else { - /* - * Ugly, limited parsing of & > < - */ - char *sc = (char *)memchr(p, 0x3b, len > 5 ? 5 : len); - if(!sc) goto want_more; - if((sc - p) == 4 - && p[1] == 0x61 /* 'a' */ - && p[2] == 0x6d /* 'm' */ - && p[3] == 0x70 /* 'p' */) { - *buf++ = 0x26; - p = sc; - continue; - } - if((sc - p) == 3) { - if(p[1] == 0x6c) { - *buf = 0x3c; /* '<' */ - } else if(p[1] == 0x67) { - *buf = 0x3e; /* '>' */ - } else { - /* Unsupported entity reference */ - *buf++ = ch; - continue; - } - if(p[2] != 0x74) { - /* Unsupported entity reference */ - *buf++ = ch; - continue; - } - buf++; - p = sc; - continue; - } - /* Unsupported entity reference */ - *buf++ = ch; - } - - continue; - want_more: - if(have_more) { - /* - * We know that no more data (of the same type) - * is coming. Copy the rest verbatim. - */ - *buf++ = ch; - continue; - } - chunk_size = (p - (const char *)chunk_buf); - /* Processing stalled: need more data */ - break; - } - - st->size = buf - st->buf; - assert(st->size <= new_size); - st->buf[st->size] = 0; /* Courtesy termination */ - - return chunk_size; /* Converted in full */ -} - -/* - * Decode OCTET STRING from the XML element's body. - */ -static asn_dec_rval_t -OCTET_STRING__decode_xer( - const asn_codec_ctx_t *opt_codec_ctx, const asn_TYPE_descriptor_t *td, - void **sptr, const char *opt_mname, const void *buf_ptr, size_t size, - int (*opt_unexpected_tag_decoder)(void *struct_ptr, const void *chunk_buf, - size_t chunk_size), - ssize_t (*body_receiver)(void *struct_ptr, const void *chunk_buf, - size_t chunk_size, int have_more)) { - OCTET_STRING_t *st = (OCTET_STRING_t *)*sptr; - const asn_OCTET_STRING_specifics_t *specs = td->specifics - ? (const asn_OCTET_STRING_specifics_t *)td->specifics - : &asn_SPC_OCTET_STRING_specs; - const char *xml_tag = opt_mname ? opt_mname : td->xml_tag; - asn_struct_ctx_t *ctx; /* Per-structure parser context */ - asn_dec_rval_t rval; /* Return value from the decoder */ - int st_allocated; - - /* - * Create the string if does not exist. - */ - if(!st) { - st = (OCTET_STRING_t *)CALLOC(1, specs->struct_size); - *sptr = (void *)st; - if(!st) goto sta_failed; - st_allocated = 1; - } else { - st_allocated = 0; - } - if(!st->buf) { - /* This is separate from above section */ - st->buf = (uint8_t *)CALLOC(1, 1); - if(!st->buf) { - if(st_allocated) { - *sptr = 0; - goto stb_failed; - } else { - goto sta_failed; - } - } - } - - /* Restore parsing context */ - ctx = (asn_struct_ctx_t *)(((char *)*sptr) + specs->ctx_offset); - - return xer_decode_general(opt_codec_ctx, ctx, *sptr, xml_tag, - buf_ptr, size, opt_unexpected_tag_decoder, body_receiver); - -stb_failed: - FREEMEM(st); -sta_failed: - rval.code = RC_FAIL; - rval.consumed = 0; - return rval; -} - -/* - * Decode OCTET STRING from the hexadecimal data. - */ -asn_dec_rval_t -OCTET_STRING_decode_xer_hex(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **sptr, - const char *opt_mname, const void *buf_ptr, - size_t size) { - return OCTET_STRING__decode_xer(opt_codec_ctx, td, sptr, opt_mname, - buf_ptr, size, 0, OCTET_STRING__convert_hexadecimal); -} - -/* - * Decode OCTET STRING from the binary (0/1) data. - */ -asn_dec_rval_t -OCTET_STRING_decode_xer_binary(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **sptr, - const char *opt_mname, const void *buf_ptr, - size_t size) { - return OCTET_STRING__decode_xer(opt_codec_ctx, td, sptr, opt_mname, - buf_ptr, size, 0, OCTET_STRING__convert_binary); -} - -/* - * Decode OCTET STRING from the string (ASCII/UTF-8) data. - */ -asn_dec_rval_t -OCTET_STRING_decode_xer_utf8(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **sptr, - const char *opt_mname, const void *buf_ptr, - size_t size) { - return OCTET_STRING__decode_xer(opt_codec_ctx, td, sptr, opt_mname, - buf_ptr, size, - OCTET_STRING__handle_control_chars, - OCTET_STRING__convert_entrefs); -} - -#ifndef ASN_DISABLE_PER_SUPPORT - -static int -OCTET_STRING_per_get_characters(asn_per_data_t *po, uint8_t *buf, - size_t units, unsigned int bpc, unsigned int unit_bits, - intmax_t lb, intmax_t ub, const asn_per_constraints_t *pc) { - uint8_t *end = buf + units * bpc; - - ASN_DEBUG("Expanding %d characters into (%"ASN_PRIdMAX"..%"ASN_PRIdMAX"):%d", - (int)units, lb, ub, unit_bits); - - /* X.691: 27.5.4 */ - if((uintmax_t)ub <= ((uintmax_t)2 << (unit_bits - 1))) { - /* Decode without translation */ - lb = 0; - } else if(pc && pc->code2value) { - if(unit_bits > 16) - return 1; /* FATAL: can't have constrained - * UniversalString with more than - * 16 million code points */ - for(; buf < end; buf += bpc) { - int value; - int code = per_get_few_bits(po, unit_bits); - if(code < 0) return -1; /* WMORE */ - value = pc->code2value(code); - if(value < 0) { - ASN_DEBUG("Code %d (0x%02x) is" - " not in map (%"ASN_PRIdMAX"..%"ASN_PRIdMAX")", - code, code, lb, ub); - return 1; /* FATAL */ - } - switch(bpc) { - case 1: *buf = value; break; - case 2: buf[0] = value >> 8; buf[1] = value; break; - case 4: buf[0] = value >> 24; buf[1] = value >> 16; - buf[2] = value >> 8; buf[3] = value; break; - } - } - return 0; - } - - /* Shortcut the no-op copying to the aligned structure */ - if(lb == 0 && (unit_bits == 8 * bpc)) { - return per_get_many_bits(po, buf, 0, unit_bits * units); - } - - for(; buf < end; buf += bpc) { - int32_t code = per_get_few_bits(po, unit_bits); - int32_t ch = code + lb; - if(code < 0) return -1; /* WMORE */ - if(ch > ub) { - ASN_DEBUG("Code %d is out of range (%"ASN_PRIdMAX"..%"ASN_PRIdMAX")", - ch, lb, ub); - return 1; /* FATAL */ - } - switch(bpc) { - case 1: *buf = ch; break; - case 2: buf[0] = ch >> 8; buf[1] = ch; break; - case 4: buf[0] = ch >> 24; buf[1] = ch >> 16; - buf[2] = ch >> 8; buf[3] = ch; break; - } - } - - return 0; -} - -static int -OCTET_STRING_per_put_characters(asn_per_outp_t *po, const uint8_t *buf, - size_t units, unsigned int bpc, unsigned int unit_bits, - intmax_t lb, intmax_t ub, const asn_per_constraints_t *pc) { - const uint8_t *end = buf + units * bpc; - - ASN_DEBUG("Squeezing %d characters into (%"ASN_PRIdMAX"..%"ASN_PRIdMAX"):%d (%d bpc)", - (int)units, lb, ub, unit_bits, bpc); - - /* X.691: 27.5.4 */ - if((uintmax_t)ub <= ((uintmax_t)2 << (unit_bits - 1))) { - /* Encode as is */ - lb = 0; - } else if(pc && pc->value2code) { - for(; buf < end; buf += bpc) { - int code; - uint32_t value; - switch(bpc) { - case 1: value = *(const uint8_t *)buf; break; - case 2: value = (buf[0] << 8) | buf[1]; break; - case 4: value = (buf[0] << 24) | (buf[1] << 16) - | (buf[2] << 8) | buf[3]; break; - default: return -1; - } - code = pc->value2code(value); - if(code < 0) { - ASN_DEBUG("Character %d (0x%02x) is" - " not in map (%"ASN_PRIdMAX"..%"ASN_PRIdMAX")", - *buf, *buf, lb, ub); - return -1; - } - if(per_put_few_bits(po, code, unit_bits)) - return -1; - } - } - - /* Shortcut the no-op copying to the aligned structure */ - if(lb == 0 && (unit_bits == 8 * bpc)) { - return per_put_many_bits(po, buf, unit_bits * units); - } - - for(ub -= lb; buf < end; buf += bpc) { - int ch; - uint32_t value; - switch(bpc) { - case 1: - value = *(const uint8_t *)buf; - break; - case 2: - value = (buf[0] << 8) | buf[1]; - break; - case 4: - value = (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]; - break; - default: - return -1; - } - ch = value - lb; - if(ch < 0 || ch > ub) { - ASN_DEBUG("Character %d (0x%02x) is out of range (%"ASN_PRIdMAX"..%"ASN_PRIdMAX")", *buf, - value, lb, ub + lb); - return -1; - } - if(per_put_few_bits(po, ch, unit_bits)) return -1; - } - - return 0; -} - -static asn_per_constraints_t asn_DEF_OCTET_STRING_constraints = { - { APC_CONSTRAINED, 8, 8, 0, 255 }, - { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 }, - 0, 0 -}; - -asn_dec_rval_t -OCTET_STRING_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, void **sptr, - asn_per_data_t *pd) { - const asn_OCTET_STRING_specifics_t *specs = td->specifics - ? (const asn_OCTET_STRING_specifics_t *)td->specifics - : &asn_SPC_OCTET_STRING_specs; - const asn_per_constraints_t *pc = - constraints ? constraints : td->encoding_constraints.per_constraints; - const asn_per_constraint_t *cval; - const asn_per_constraint_t *csiz; - asn_dec_rval_t rval = { RC_OK, 0 }; - OCTET_STRING_t *st = (OCTET_STRING_t *)*sptr; - ssize_t consumed_myself = 0; - int repeat; - enum { - OS__BPC_CHAR = 1, - OS__BPC_U16 = 2, - OS__BPC_U32 = 4 - } bpc; /* Bytes per character */ - unsigned int unit_bits; - unsigned int canonical_unit_bits; - - (void)opt_codec_ctx; - - if(pc) { - cval = &pc->value; - csiz = &pc->size; - } else { - cval = &asn_DEF_OCTET_STRING_constraints.value; - csiz = &asn_DEF_OCTET_STRING_constraints.size; - } - - switch(specs->subvariant) { - default: - case ASN_OSUBV_ANY: - case ASN_OSUBV_BIT: - ASN_DEBUG("Unrecognized subvariant %d", specs->subvariant); - RETURN(RC_FAIL); - break; - case ASN_OSUBV_STR: - canonical_unit_bits = unit_bits = 8; - if(cval->flags & APC_CONSTRAINED) - unit_bits = cval->range_bits; - bpc = OS__BPC_CHAR; - break; - case ASN_OSUBV_U16: - canonical_unit_bits = unit_bits = 16; - if(cval->flags & APC_CONSTRAINED) - unit_bits = cval->range_bits; - bpc = OS__BPC_U16; - break; - case ASN_OSUBV_U32: - canonical_unit_bits = unit_bits = 32; - if(cval->flags & APC_CONSTRAINED) - unit_bits = cval->range_bits; - bpc = OS__BPC_U32; - break; - } - - /* - * Allocate the string. - */ - if(!st) { - st = (OCTET_STRING_t *)(*sptr = CALLOC(1, specs->struct_size)); - if(!st) RETURN(RC_FAIL); - } - - ASN_DEBUG("PER Decoding %s size %"ASN_PRIdMAX" .. %"ASN_PRIdMAX" bits %d", - csiz->flags & APC_EXTENSIBLE ? "extensible" : "non-extensible", - csiz->lower_bound, csiz->upper_bound, csiz->effective_bits); - - if(csiz->flags & APC_EXTENSIBLE) { - int inext = per_get_few_bits(pd, 1); - if(inext < 0) RETURN(RC_WMORE); - if(inext) { - csiz = &asn_DEF_OCTET_STRING_constraints.size; - unit_bits = canonical_unit_bits; - } - } - - if(csiz->effective_bits >= 0) { - FREEMEM(st->buf); - if(bpc) { - st->size = csiz->upper_bound * bpc; - } else { - st->size = (csiz->upper_bound + 7) >> 3; - } - st->buf = (uint8_t *)MALLOC(st->size + 1); - if(!st->buf) { st->size = 0; RETURN(RC_FAIL); } - } - - /* X.691, #16.5: zero-length encoding */ - /* X.691, #16.6: short fixed length encoding (up to 2 octets) */ - /* X.691, #16.7: long fixed length encoding (up to 64K octets) */ - if(csiz->effective_bits == 0) { - int ret; - if(bpc) { - ASN_DEBUG("Encoding OCTET STRING size %"ASN_PRIdMAX"", - csiz->upper_bound); - ret = OCTET_STRING_per_get_characters(pd, st->buf, - csiz->upper_bound, bpc, unit_bits, - cval->lower_bound, cval->upper_bound, pc); - if(ret > 0) RETURN(RC_FAIL); - } else { - ASN_DEBUG("Encoding BIT STRING size %"ASN_PRIdMAX"", - csiz->upper_bound); - ret = per_get_many_bits(pd, st->buf, 0, - unit_bits * csiz->upper_bound); - } - if(ret < 0) RETURN(RC_WMORE); - consumed_myself += unit_bits * csiz->upper_bound; - st->buf[st->size] = 0; - RETURN(RC_OK); - } - - st->size = 0; - do { - ssize_t raw_len; - ssize_t len_bytes; - void *p; - int ret; - - /* Get the PER length */ - raw_len = uper_get_length(pd, csiz->effective_bits, csiz->lower_bound, - &repeat); - if(raw_len < 0) RETURN(RC_WMORE); - if(raw_len == 0 && st->buf) break; - - ASN_DEBUG("Got PER length eb %ld, len %ld, %s (%s)", - (long)csiz->effective_bits, (long)raw_len, - repeat ? "repeat" : "once", td->name); - len_bytes = raw_len * bpc; - p = REALLOC(st->buf, st->size + len_bytes + 1); - if(!p) RETURN(RC_FAIL); - st->buf = (uint8_t *)p; - - ret = OCTET_STRING_per_get_characters(pd, &st->buf[st->size], raw_len, - bpc, unit_bits, cval->lower_bound, - cval->upper_bound, pc); - if(ret > 0) RETURN(RC_FAIL); - if(ret < 0) RETURN(RC_WMORE); - st->size += len_bytes; - } while(repeat); - st->buf[st->size] = 0; /* nul-terminate */ - - return rval; -} - -asn_enc_rval_t -OCTET_STRING_encode_uper(const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, - const void *sptr, asn_per_outp_t *po) { - const asn_OCTET_STRING_specifics_t *specs = td->specifics - ? (const asn_OCTET_STRING_specifics_t *)td->specifics - : &asn_SPC_OCTET_STRING_specs; - const asn_per_constraints_t *pc = constraints ? constraints - : td->encoding_constraints.per_constraints; - const asn_per_constraint_t *cval; - const asn_per_constraint_t *csiz; - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - asn_enc_rval_t er = { 0, 0, 0 }; - int inext = 0; /* Lies not within extension root */ - unsigned int unit_bits; - unsigned int canonical_unit_bits; - size_t size_in_units; - const uint8_t *buf; - int ret; - enum { - OS__BPC_CHAR = 1, - OS__BPC_U16 = 2, - OS__BPC_U32 = 4 - } bpc; /* Bytes per character */ - int ct_extensible; - - if(!st || (!st->buf && st->size)) - ASN__ENCODE_FAILED; - - if(pc) { - cval = &pc->value; - csiz = &pc->size; - } else { - cval = &asn_DEF_OCTET_STRING_constraints.value; - csiz = &asn_DEF_OCTET_STRING_constraints.size; - } - ct_extensible = csiz->flags & APC_EXTENSIBLE; - - switch(specs->subvariant) { - default: - case ASN_OSUBV_ANY: - case ASN_OSUBV_BIT: - ASN__ENCODE_FAILED; - case ASN_OSUBV_STR: - canonical_unit_bits = unit_bits = 8; - if(cval->flags & APC_CONSTRAINED) - unit_bits = cval->range_bits; - bpc = OS__BPC_CHAR; - size_in_units = st->size; - break; - case ASN_OSUBV_U16: - canonical_unit_bits = unit_bits = 16; - if(cval->flags & APC_CONSTRAINED) - unit_bits = cval->range_bits; - bpc = OS__BPC_U16; - size_in_units = st->size >> 1; - if(st->size & 1) { - ASN_DEBUG("%s string size is not modulo 2", td->name); - ASN__ENCODE_FAILED; - } - break; - case ASN_OSUBV_U32: - canonical_unit_bits = unit_bits = 32; - if(cval->flags & APC_CONSTRAINED) - unit_bits = cval->range_bits; - bpc = OS__BPC_U32; - size_in_units = st->size >> 2; - if(st->size & 3) { - ASN_DEBUG("%s string size is not modulo 4", td->name); - ASN__ENCODE_FAILED; - } - break; - } - - ASN_DEBUG("Encoding %s into %" ASN_PRI_SIZE " units of %d bits" - " (%"ASN_PRIdMAX"..%"ASN_PRIdMAX", effective %d)%s", - td->name, size_in_units, unit_bits, - csiz->lower_bound, csiz->upper_bound, - csiz->effective_bits, ct_extensible ? " EXT" : ""); - - /* Figure out whether size lies within PER visible constraint */ - - if(csiz->effective_bits >= 0) { - if((ssize_t)size_in_units < csiz->lower_bound - || (ssize_t)size_in_units > csiz->upper_bound) { - if(ct_extensible) { - csiz = &asn_DEF_OCTET_STRING_constraints.size; - unit_bits = canonical_unit_bits; - inext = 1; - } else { - ASN__ENCODE_FAILED; - } - } - } else { - inext = 0; - } - - if(ct_extensible) { - /* Declare whether length is [not] within extension root */ - if(per_put_few_bits(po, inext, 1)) - ASN__ENCODE_FAILED; - } - - if(csiz->effective_bits >= 0 && !inext) { - ASN_DEBUG("Encoding %" ASN_PRI_SIZE " bytes (%"ASN_PRIdMAX"), length in %d bits", st->size, - size_in_units - csiz->lower_bound, csiz->effective_bits); - ret = per_put_few_bits(po, size_in_units - csiz->lower_bound, - csiz->effective_bits); - if(ret) ASN__ENCODE_FAILED; - ret = OCTET_STRING_per_put_characters(po, st->buf, size_in_units, bpc, - unit_bits, cval->lower_bound, - cval->upper_bound, pc); - if(ret) ASN__ENCODE_FAILED; - ASN__ENCODED_OK(er); - } - - ASN_DEBUG("Encoding %" ASN_PRI_SIZE " bytes", st->size); - - buf = st->buf; - ASN_DEBUG("Encoding %" ASN_PRI_SIZE " in units", size_in_units); - do { - int need_eom = 0; - ssize_t may_save = uper_put_length(po, size_in_units, &need_eom); - if(may_save < 0) ASN__ENCODE_FAILED; - - ASN_DEBUG("Encoding %" ASN_PRI_SSIZE " of %" ASN_PRI_SIZE "%s", may_save, size_in_units, - need_eom ? ",+EOM" : ""); - - ret = OCTET_STRING_per_put_characters(po, buf, may_save, bpc, unit_bits, - cval->lower_bound, - cval->upper_bound, pc); - if(ret) ASN__ENCODE_FAILED; - - buf += may_save * bpc; - size_in_units -= may_save; - assert(!(may_save & 0x07) || !size_in_units); - if(need_eom && uper_put_length(po, 0, 0)) - ASN__ENCODE_FAILED; /* End of Message length */ - } while(size_in_units); - - ASN__ENCODED_OK(er); -} - -#endif /* ASN_DISABLE_PER_SUPPORT */ - -int -OCTET_STRING_print(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - const char * const h2c = "0123456789ABCDEF"; - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - char scratch[16 * 3 + 4]; - char *p = scratch; - uint8_t *buf; - uint8_t *end; - size_t i; - - (void)td; /* Unused argument */ - - if(!st || (!st->buf && st->size)) - return (cb("", 8, app_key) < 0) ? -1 : 0; - - /* - * Dump the contents of the buffer in hexadecimal. - */ - buf = st->buf; - end = buf + st->size; - for(i = 0; buf < end; buf++, i++) { - if(!(i % 16) && (i || st->size > 16)) { - if(cb(scratch, p - scratch, app_key) < 0) - return -1; - _i_INDENT(1); - p = scratch; - } - *p++ = h2c[(*buf >> 4) & 0x0F]; - *p++ = h2c[*buf & 0x0F]; - *p++ = 0x20; - } - - if(p > scratch) { - p--; /* Remove the tail space */ - if(cb(scratch, p - scratch, app_key) < 0) - return -1; - } - - return 0; -} - -int -OCTET_STRING_print_utf8(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, asn_app_consume_bytes_f *cb, - void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - - (void)td; /* Unused argument */ - (void)ilevel; /* Unused argument */ - - if(st && (st->buf || !st->size)) { - return (cb(st->buf, st->size, app_key) < 0) ? -1 : 0; - } else { - return (cb("", 8, app_key) < 0) ? -1 : 0; - } -} - -void -OCTET_STRING_free(const asn_TYPE_descriptor_t *td, void *sptr, - enum asn_struct_free_method method) { - OCTET_STRING_t *st = (OCTET_STRING_t *)sptr; - const asn_OCTET_STRING_specifics_t *specs; - asn_struct_ctx_t *ctx; - struct _stack *stck; - - if(!td || !st) - return; - - specs = td->specifics - ? (const asn_OCTET_STRING_specifics_t *)td->specifics - : &asn_SPC_OCTET_STRING_specs; - ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); - - ASN_DEBUG("Freeing %s as OCTET STRING", td->name); - - if(st->buf) { - FREEMEM(st->buf); - st->buf = 0; - } - - /* - * Remove decode-time stack. - */ - stck = (struct _stack *)ctx->ptr; - if(stck) { - while(stck->tail) { - struct _stack_el *sel = stck->tail; - stck->tail = sel->prev; - FREEMEM(sel); - } - FREEMEM(stck); - } - - switch(method) { - case ASFM_FREE_EVERYTHING: - FREEMEM(sptr); - break; - case ASFM_FREE_UNDERLYING: - break; - case ASFM_FREE_UNDERLYING_AND_RESET: - memset(sptr, 0, - td->specifics - ? ((const asn_OCTET_STRING_specifics_t *)(td->specifics)) - ->struct_size - : sizeof(OCTET_STRING_t)); - break; - } -} - -/* - * Conversion routines. - */ -int -OCTET_STRING_fromBuf(OCTET_STRING_t *st, const char *str, int len) { - void *buf; - - if(st == 0 || (str == 0 && len)) { - errno = EINVAL; - return -1; - } - - /* - * Clear the OCTET STRING. - */ - if(str == NULL) { - FREEMEM(st->buf); - st->buf = 0; - st->size = 0; - return 0; - } - - /* Determine the original string size, if not explicitly given */ - if(len < 0) - len = strlen(str); - - /* Allocate and fill the memory */ - buf = MALLOC(len + 1); - if(buf == NULL) - return -1; - - memcpy(buf, str, len); - ((uint8_t *)buf)[len] = '\0'; /* Couldn't use memcpy(len+1)! */ - FREEMEM(st->buf); - st->buf = (uint8_t *)buf; - st->size = len; - - return 0; -} - -OCTET_STRING_t * -OCTET_STRING_new_fromBuf(const asn_TYPE_descriptor_t *td, const char *str, - int len) { - const asn_OCTET_STRING_specifics_t *specs = - td->specifics ? (const asn_OCTET_STRING_specifics_t *)td->specifics - : &asn_SPC_OCTET_STRING_specs; - OCTET_STRING_t *st; - - st = (OCTET_STRING_t *)CALLOC(1, specs->struct_size); - if(st && str && OCTET_STRING_fromBuf(st, str, len)) { - FREEMEM(st); - st = NULL; - } - - return st; -} - -/* - * Lexicographically compare the common prefix of both strings, - * and if it is the same return -1 for the smallest string. - */ -int -OCTET_STRING_compare(const asn_TYPE_descriptor_t *td, const void *aptr, - const void *bptr) { - const asn_OCTET_STRING_specifics_t *specs = td->specifics; - const OCTET_STRING_t *a = aptr; - const OCTET_STRING_t *b = bptr; - - assert(!specs || specs->subvariant != ASN_OSUBV_BIT); - - if(a && b) { - size_t common_prefix_size = a->size <= b->size ? a->size : b->size; - int ret = memcmp(a->buf, b->buf, common_prefix_size); - if(ret == 0) { - /* Figure out which string with equal prefixes is longer. */ - if(a->size < b->size) { - return -1; - } else if(a->size > b->size) { - return 1; - } else { - return 0; - } - } else { - return ret < 0 ? -1 : 1; - } - } else if(!a && !b) { - return 0; - } else if(!a) { - return -1; - } else { - return 1; - } - -} - -/* - * Biased function for randomizing character values around their limits. - */ -static uint32_t -OCTET_STRING__random_char(unsigned long lb, unsigned long ub) { - assert(lb <= ub); - switch(asn_random_between(0, 16)) { - case 0: - if(lb < ub) return lb + 1; - /* Fall through */ - case 1: - return lb; - case 2: - if(lb < ub) return ub - 1; - /* Fall through */ - case 3: - return ub; - default: - return asn_random_between(lb, ub); - } -} - - -size_t -OCTET_STRING_random_length_constrained( - const asn_TYPE_descriptor_t *td, - const asn_encoding_constraints_t *constraints, size_t max_length) { - const unsigned lengths[] = {0, 1, 2, 3, 4, 8, - 126, 127, 128, 16383, 16384, 16385, - 65534, 65535, 65536, 65537}; - size_t rnd_len; - - /* Figure out how far we should go */ - rnd_len = lengths[asn_random_between( - 0, sizeof(lengths) / sizeof(lengths[0]) - 1)]; - - if(!constraints || !constraints->per_constraints) - constraints = &td->encoding_constraints; - if(constraints->per_constraints) { - const asn_per_constraint_t *pc = &constraints->per_constraints->size; - if(pc->flags & APC_CONSTRAINED) { - long suggested_upper_bound = pc->upper_bound < (ssize_t)max_length - ? pc->upper_bound - : (ssize_t)max_length; - if(max_length <= (size_t)pc->lower_bound) { - return pc->lower_bound; - } - if(pc->flags & APC_EXTENSIBLE) { - switch(asn_random_between(0, 5)) { - case 0: - if(pc->lower_bound > 0) { - rnd_len = pc->lower_bound - 1; - break; - } - /* Fall through */ - case 1: - rnd_len = pc->upper_bound + 1; - break; - case 2: - /* Keep rnd_len from the table */ - if(rnd_len <= max_length) { - break; - } - /* Fall through */ - default: - rnd_len = asn_random_between(pc->lower_bound, - suggested_upper_bound); - } - } else { - rnd_len = - asn_random_between(pc->lower_bound, suggested_upper_bound); - } - } else { - rnd_len = asn_random_between(0, max_length); - } - } else if(rnd_len > max_length) { - rnd_len = asn_random_between(0, max_length); - } - - return rnd_len; -} - -asn_random_fill_result_t -OCTET_STRING_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constraints, - size_t max_length) { - const asn_OCTET_STRING_specifics_t *specs = td->specifics - ? (const asn_OCTET_STRING_specifics_t *)td->specifics - : &asn_SPC_OCTET_STRING_specs; - asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - unsigned int unit_bytes = 1; - unsigned long clb = 0; /* Lower bound on char */ - unsigned long cub = 255; /* Higher bound on char value */ - uint8_t *buf; - uint8_t *bend; - uint8_t *b; - size_t rnd_len; - OCTET_STRING_t *st; - - if(max_length == 0 && !*sptr) return result_skipped; - - switch(specs->subvariant) { - default: - case ASN_OSUBV_ANY: - return result_failed; - case ASN_OSUBV_BIT: - /* Handled by BIT_STRING itself. */ - return result_failed; - case ASN_OSUBV_STR: - unit_bytes = 1; - clb = 0; - cub = 255; - break; - case ASN_OSUBV_U16: - unit_bytes = 2; - clb = 0; - cub = 65535; - break; - case ASN_OSUBV_U32: - unit_bytes = 4; - clb = 0; - cub = 0x10FFFF; - break; - } - - if(!constraints || !constraints->per_constraints) - constraints = &td->encoding_constraints; - if(constraints->per_constraints) { - const asn_per_constraint_t *pc = &constraints->per_constraints->value; - if(pc->flags & APC_SEMI_CONSTRAINED) { - clb = pc->lower_bound; - } else if(pc->flags & APC_CONSTRAINED) { - clb = pc->lower_bound; - cub = pc->upper_bound; - } - } - - rnd_len = - OCTET_STRING_random_length_constrained(td, constraints, max_length); - - buf = CALLOC(unit_bytes, rnd_len + 1); - if(!buf) return result_failed; - - bend = &buf[unit_bytes * rnd_len]; - - switch(unit_bytes) { - case 1: - for(b = buf; b < bend; b += unit_bytes) { - *(uint8_t *)b = OCTET_STRING__random_char(clb, cub); - } - *(uint8_t *)b = 0; - break; - case 2: - for(b = buf; b < bend; b += unit_bytes) { - uint32_t code = OCTET_STRING__random_char(clb, cub); - b[0] = code >> 8; - b[1] = code; - } - *(uint16_t *)b = 0; - break; - case 4: - for(b = buf; b < bend; b += unit_bytes) { - uint32_t code = OCTET_STRING__random_char(clb, cub); - b[0] = code >> 24; - b[1] = code >> 16; - b[2] = code >> 8; - b[3] = code; - } - *(uint32_t *)b = 0; - break; - } - - if(*sptr) { - st = *sptr; - FREEMEM(st->buf); - } else { - st = (OCTET_STRING_t *)(*sptr = CALLOC(1, specs->struct_size)); - if(!st) { - FREEMEM(buf); - return result_failed; - } - } - - st->buf = buf; - st->size = unit_bytes * rnd_len; - - result_ok.length = st->size; - return result_ok; -} diff --git a/asn.1/generated/OCTET_STRING.h b/asn.1/generated/OCTET_STRING.h deleted file mode 100644 index bb06dc62..00000000 --- a/asn.1/generated/OCTET_STRING.h +++ /dev/null @@ -1,100 +0,0 @@ -/*- - * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef _OCTET_STRING_H_ -#define _OCTET_STRING_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct OCTET_STRING { - uint8_t *buf; /* Buffer with consecutive OCTET_STRING bits */ - size_t size; /* Size of the buffer */ - - asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */ -} OCTET_STRING_t; - -extern asn_TYPE_descriptor_t asn_DEF_OCTET_STRING; -extern asn_TYPE_operation_t asn_OP_OCTET_STRING; - -asn_struct_free_f OCTET_STRING_free; -asn_struct_print_f OCTET_STRING_print; -asn_struct_print_f OCTET_STRING_print_utf8; -asn_struct_compare_f OCTET_STRING_compare; -ber_type_decoder_f OCTET_STRING_decode_ber; -der_type_encoder_f OCTET_STRING_encode_der; -xer_type_decoder_f OCTET_STRING_decode_xer_hex; /* Hexadecimal */ -xer_type_decoder_f OCTET_STRING_decode_xer_binary; /* 01010111010 */ -xer_type_decoder_f OCTET_STRING_decode_xer_utf8; /* ASCII/UTF-8 */ -xer_type_encoder_f OCTET_STRING_encode_xer; -xer_type_encoder_f OCTET_STRING_encode_xer_utf8; -oer_type_decoder_f OCTET_STRING_decode_oer; -oer_type_encoder_f OCTET_STRING_encode_oer; -per_type_decoder_f OCTET_STRING_decode_uper; -per_type_encoder_f OCTET_STRING_encode_uper; -asn_random_fill_f OCTET_STRING_random_fill; - -#define OCTET_STRING_constraint asn_generic_no_constraint -#define OCTET_STRING_decode_xer OCTET_STRING_decode_xer_hex - -/****************************** - * Handy conversion routines. * - ******************************/ - -/* - * This function clears the previous value of the OCTET STRING (if any) - * and then allocates a new memory with the specified content (str/size). - * If size = -1, the size of the original string will be determined - * using strlen(str). - * If str equals to NULL, the function will silently clear the - * current contents of the OCTET STRING. - * Returns 0 if it was possible to perform operation, -1 otherwise. - */ -int OCTET_STRING_fromBuf(OCTET_STRING_t *s, const char *str, int size); - -/* Handy conversion from the C string into the OCTET STRING. */ -#define OCTET_STRING_fromString(s, str) OCTET_STRING_fromBuf(s, str, -1) - -/* - * Allocate and fill the new OCTET STRING and return a pointer to the newly - * allocated object. NULL is permitted in str: the function will just allocate - * empty OCTET STRING. - */ -OCTET_STRING_t *OCTET_STRING_new_fromBuf(const asn_TYPE_descriptor_t *td, - const char *str, int size); - -/**************************** - * Internally useful stuff. * - ****************************/ - -typedef struct asn_OCTET_STRING_specifics_s { - /* - * Target structure description. - */ - unsigned struct_size; /* Size of the structure */ - unsigned ctx_offset; /* Offset of the asn_struct_ctx_t member */ - - enum asn_OS_Subvariant { - ASN_OSUBV_ANY, /* The open type (ANY) */ - ASN_OSUBV_BIT, /* BIT STRING */ - ASN_OSUBV_STR, /* String types, not {BMP,Universal}String */ - ASN_OSUBV_U16, /* 16-bit character (BMPString) */ - ASN_OSUBV_U32 /* 32-bit character (UniversalString) */ - } subvariant; -} asn_OCTET_STRING_specifics_t; - -extern asn_OCTET_STRING_specifics_t asn_SPC_OCTET_STRING_specs; - -size_t OCTET_STRING_random_length_constrained( - const asn_TYPE_descriptor_t *, const asn_encoding_constraints_t *, - size_t max_length); - -#ifdef __cplusplus -} -#endif - -#endif /* _OCTET_STRING_H_ */ diff --git a/asn.1/generated/OPEN_TYPE.c b/asn.1/generated/OPEN_TYPE.c deleted file mode 100644 index c672992c..00000000 --- a/asn.1/generated/OPEN_TYPE.c +++ /dev/null @@ -1,402 +0,0 @@ -/* - * Copyright (c) 2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include -#include -#include -#include - -asn_TYPE_operation_t asn_OP_OPEN_TYPE = { - OPEN_TYPE_free, - OPEN_TYPE_print, - OPEN_TYPE_compare, - OPEN_TYPE_decode_ber, - OPEN_TYPE_encode_der, - OPEN_TYPE_decode_xer, - OPEN_TYPE_encode_xer, - 0, 0, /* No OER support, use "-gen-OER" to enable */ -#ifdef ASN_DISABLE_PER_SUPPORT - 0, 0, -#else - OPEN_TYPE_decode_uper, - OPEN_TYPE_encode_uper, -#endif - 0, /* Random fill is not supported for open type */ - 0, /* Use generic outmost tag fetcher */ -}; - -#undef ADVANCE -#define ADVANCE(num_bytes) \ - do { \ - size_t num = num_bytes; \ - ptr = ((const char *)ptr) + num; \ - size -= num; \ - consumed_myself += num; \ - } while(0) - -asn_dec_rval_t -OPEN_TYPE_ber_get(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void *sptr, - const asn_TYPE_member_t *elm, const void *ptr, size_t size) { - size_t consumed_myself = 0; - asn_type_selector_result_t selected; - void *memb_ptr; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ - void *inner_value; - asn_dec_rval_t rv; - - if(!(elm->flags & ATF_OPEN_TYPE)) { - ASN__DECODE_FAILED; - } - - if(!elm->type_selector) { - ASN_DEBUG("Type selector is not defined for Open Type %s->%s->%s", - td->name, elm->name, elm->type->name); - ASN__DECODE_FAILED; - } - - selected = elm->type_selector(td, sptr); - if(!selected.presence_index) { - ASN__DECODE_FAILED; - } - - /* Fetch the pointer to this member */ - if(elm->flags & ATF_POINTER) { - memb_ptr2 = (void **)((char *)sptr + elm->memb_offset); - } else { - memb_ptr = (char *)sptr + elm->memb_offset; - memb_ptr2 = &memb_ptr; - } - if(*memb_ptr2 != NULL) { - /* Make sure we reset the structure first before encoding */ - if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, 0) != 0) { - ASN__DECODE_FAILED; - } - } - - inner_value = - (char *)*memb_ptr2 - + elm->type->elements[selected.presence_index - 1].memb_offset; - - ASN_DEBUG("presence %d\n", selected.presence_index); - - rv = selected.type_descriptor->op->ber_decoder( - opt_codec_ctx, selected.type_descriptor, &inner_value, ptr, size, - elm->tag_mode); - ADVANCE(rv.consumed); - rv.consumed = 0; - switch(rv.code) { - case RC_OK: - if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, - selected.presence_index) - == 0) { - rv.code = RC_OK; - rv.consumed = consumed_myself; - return rv; - } else { - /* Oh, now a full-blown failure failure */ - } - /* Fall through */ - case RC_FAIL: - rv.consumed = consumed_myself; - /* Fall through */ - case RC_WMORE: - break; - } - - if(*memb_ptr2) { - const asn_CHOICE_specifics_t *specs = - selected.type_descriptor->specifics; - if(elm->flags & ATF_POINTER) { - ASN_STRUCT_FREE(*selected.type_descriptor, inner_value); - *memb_ptr2 = NULL; - } else { - ASN_STRUCT_FREE_CONTENTS_ONLY(*selected.type_descriptor, - inner_value); - memset(*memb_ptr2, 0, specs->struct_size); - } - } - return rv; -} - -asn_dec_rval_t -OPEN_TYPE_xer_get(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void *sptr, - const asn_TYPE_member_t *elm, const void *ptr, size_t size) { - size_t consumed_myself = 0; - asn_type_selector_result_t selected; - void *memb_ptr; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ - void *inner_value; - asn_dec_rval_t rv; - - int xer_context = 0; - ssize_t ch_size; - pxer_chunk_type_e ch_type; - - if(!(elm->flags & ATF_OPEN_TYPE)) { - ASN__DECODE_FAILED; - } - - if(!elm->type_selector) { - ASN_DEBUG("Type selector is not defined for Open Type %s->%s->%s", - td->name, elm->name, elm->type->name); - ASN__DECODE_FAILED; - } - - selected = elm->type_selector(td, sptr); - if(!selected.presence_index) { - ASN__DECODE_FAILED; - } - - /* Fetch the pointer to this member */ - assert(elm->flags == ATF_OPEN_TYPE); - if(elm->flags & ATF_POINTER) { - memb_ptr2 = (void **)((char *)sptr + elm->memb_offset); - } else { - memb_ptr = (char *)sptr + elm->memb_offset; - memb_ptr2 = &memb_ptr; - } - if(*memb_ptr2 != NULL) { - /* Make sure we reset the structure first before encoding */ - if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, 0) - != 0) { - ASN__DECODE_FAILED; - } - } - - /* - * Confirm wrapper. - */ - for(;;) { - ch_size = xer_next_token(&xer_context, ptr, size, &ch_type); - if(ch_size < 0) { - ASN__DECODE_FAILED; - } else { - switch(ch_type) { - case PXER_WMORE: - ASN__DECODE_STARVED; - case PXER_COMMENT: - case PXER_TEXT: - ADVANCE(ch_size); - continue; - case PXER_TAG: - break; - } - break; - } - } - - /* - * Wrapper value confirmed. - */ - switch(xer_check_tag(ptr, ch_size, elm->name)) { - case XCT_OPENING: - ADVANCE(ch_size); - break; - case XCT_BROKEN: - default: - ASN__DECODE_FAILED; - } - - inner_value = - (char *)*memb_ptr2 - + elm->type->elements[selected.presence_index - 1].memb_offset; - - rv = selected.type_descriptor->op->xer_decoder( - opt_codec_ctx, selected.type_descriptor, &inner_value, NULL, ptr, size); - ADVANCE(rv.consumed); - rv.consumed = 0; - switch(rv.code) { - case RC_OK: - if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, - selected.presence_index) - == 0) { - break; - } else { - rv.code = RC_FAIL; - } - /* Fall through */ - case RC_FAIL: - /* Point to a best position where failure occurred */ - rv.consumed = consumed_myself; - /* Fall through */ - case RC_WMORE: - /* Wrt. rv.consumed==0: - * In case a genuine RC_WMORE, the whole Open Type decoding - * will have to be restarted. - */ - if(*memb_ptr2) { - const asn_CHOICE_specifics_t *specs = - selected.type_descriptor->specifics; - if(elm->flags & ATF_POINTER) { - ASN_STRUCT_FREE(*selected.type_descriptor, inner_value); - *memb_ptr2 = NULL; - } else { - ASN_STRUCT_FREE_CONTENTS_ONLY(*selected.type_descriptor, - inner_value); - memset(*memb_ptr2, 0, specs->struct_size); - } - } - return rv; - } - - /* - * Finalize wrapper. - */ - for(;;) { - ch_size = xer_next_token(&xer_context, ptr, size, &ch_type); - if(ch_size < 0) { - ASN__DECODE_FAILED; - } else { - switch(ch_type) { - case PXER_WMORE: - ASN__DECODE_STARVED; - case PXER_COMMENT: - case PXER_TEXT: - ADVANCE(ch_size); - continue; - case PXER_TAG: - break; - } - break; - } - } - - /* - * Wrapper value confirmed. - */ - switch(xer_check_tag(ptr, ch_size, elm->name)) { - case XCT_CLOSING: - ADVANCE(ch_size); - break; - case XCT_BROKEN: - default: - ASN__DECODE_FAILED; - } - - rv.consumed += consumed_myself; - - return rv; -} - - -#ifndef ASN_DISABLE_PER_SUPPORT - -asn_dec_rval_t -OPEN_TYPE_uper_get(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void *sptr, - const asn_TYPE_member_t *elm, asn_per_data_t *pd) { - asn_type_selector_result_t selected; - void *memb_ptr; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ - void *inner_value; - asn_dec_rval_t rv; - - if(!(elm->flags & ATF_OPEN_TYPE)) { - ASN__DECODE_FAILED; - } - - if(!elm->type_selector) { - ASN_DEBUG("Type selector is not defined for Open Type %s->%s->%s", - td->name, elm->name, elm->type->name); - ASN__DECODE_FAILED; - } - - selected = elm->type_selector(td, sptr); - if(!selected.presence_index) { - ASN__DECODE_FAILED; - } - - /* Fetch the pointer to this member */ - assert(elm->flags == ATF_OPEN_TYPE); - if(elm->flags & ATF_POINTER) { - memb_ptr2 = (void **)((char *)sptr + elm->memb_offset); - } else { - memb_ptr = (char *)sptr + elm->memb_offset; - memb_ptr2 = &memb_ptr; - } - if(*memb_ptr2 != NULL) { - /* Make sure we reset the structure first before encoding */ - if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, 0) - != 0) { - ASN__DECODE_FAILED; - } - } - - inner_value = - (char *)*memb_ptr2 - + elm->type->elements[selected.presence_index - 1].memb_offset; - - rv = uper_open_type_get(opt_codec_ctx, selected.type_descriptor, NULL, - &inner_value, pd); - switch(rv.code) { - case RC_OK: - if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, - selected.presence_index) - == 0) { - break; - } else { - rv.code = RC_FAIL; - } - /* Fall through */ - case RC_WMORE: - case RC_FAIL: - if(*memb_ptr2) { - const asn_CHOICE_specifics_t *specs = - selected.type_descriptor->specifics; - if(elm->flags & ATF_POINTER) { - ASN_STRUCT_FREE(*selected.type_descriptor, inner_value); - *memb_ptr2 = NULL; - } else { - ASN_STRUCT_FREE_CONTENTS_ONLY(*selected.type_descriptor, - inner_value); - memset(*memb_ptr2, 0, specs->struct_size); - } - } - } - return rv; -} - -asn_enc_rval_t -OPEN_TYPE_encode_uper(const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, - const void *sptr, asn_per_outp_t *po) { - const void *memb_ptr; /* Pointer to the member */ - asn_TYPE_member_t *elm; /* CHOICE's element */ - asn_enc_rval_t er; - unsigned present; - - (void)constraints; - - present = CHOICE_variant_get_presence(td, sptr); - if(present == 0 || present > td->elements_count) { - ASN__ENCODE_FAILED; - } else { - present--; - } - - ASN_DEBUG("Encoding %s OPEN TYPE element %d", td->name, present); - - elm = &td->elements[present]; - if(elm->flags & ATF_POINTER) { - /* Member is a pointer to another structure */ - memb_ptr = - *(const void *const *)((const char *)sptr + elm->memb_offset); - if(!memb_ptr) ASN__ENCODE_FAILED; - } else { - memb_ptr = (const char *)sptr + elm->memb_offset; - } - - if(uper_open_type_put(elm->type, NULL, memb_ptr, po) < 0) { - ASN__ENCODE_FAILED; - } - - er.encoded = 0; - ASN__ENCODED_OK(er); -} - - -#endif /* ASN_DISABLE_PER_SUPPORT */ diff --git a/asn.1/generated/OPEN_TYPE.h b/asn.1/generated/OPEN_TYPE.h deleted file mode 100644 index d0f02fd7..00000000 --- a/asn.1/generated/OPEN_TYPE.h +++ /dev/null @@ -1,63 +0,0 @@ -/*- - * Copyright (c) 2017-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef ASN_OPEN_TYPE_H -#define ASN_OPEN_TYPE_H - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#define OPEN_TYPE_free CHOICE_free -#define OPEN_TYPE_print CHOICE_print -#define OPEN_TYPE_compare CHOICE_compare -#define OPEN_TYPE_constraint CHOICE_constraint -#define OPEN_TYPE_decode_ber NULL -#define OPEN_TYPE_encode_der CHOICE_encode_der -#define OPEN_TYPE_decode_xer NULL -#define OPEN_TYPE_encode_xer CHOICE_encode_xer -#define OPEN_TYPE_decode_uper NULL - -extern asn_TYPE_operation_t asn_OP_OPEN_TYPE; - -/* - * Decode an Open Type which is potentially constraiend - * by the other members of the parent structure. - */ -asn_dec_rval_t OPEN_TYPE_ber_get(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *parent_type, - void *parent_structure, - const asn_TYPE_member_t *element, - const void *ptr, size_t size); - -asn_dec_rval_t OPEN_TYPE_xer_get(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *parent_type, - void *parent_structure, - const asn_TYPE_member_t *element, - const void *ptr, size_t size); - -asn_dec_rval_t OPEN_TYPE_oer_get(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *parent_type, - void *parent_structure, - asn_TYPE_member_t *element, const void *ptr, - size_t size); - -asn_dec_rval_t OPEN_TYPE_uper_get(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *parent_type, - void *parent_structure, - const asn_TYPE_member_t *element, - asn_per_data_t *pd); - -asn_enc_rval_t OPEN_TYPE_encode_uper( - const asn_TYPE_descriptor_t *type_descriptor, - const asn_per_constraints_t *constraints, const void *struct_ptr, - asn_per_outp_t *per_output); - -#ifdef __cplusplus -} -#endif - -#endif /* ASN_OPEN_TYPE_H */ diff --git a/asn.1/generated/OTDOA-Error.c b/asn.1/generated/OTDOA-Error.c deleted file mode 100644 index b7605256..00000000 --- a/asn.1/generated/OTDOA-Error.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "OTDOA-Error.h" - -asn_per_constraints_t asn_PER_type_OTDOA_Error_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_OTDOA_Error_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_Error, choice.locationServerErrorCauses), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_LocationServerErrorCauses, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationServerErrorCauses" - }, - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_Error, choice.targetDeviceErrorCauses), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_TargetDeviceErrorCauses, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "targetDeviceErrorCauses" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_OTDOA_Error_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses */ -}; -asn_CHOICE_specifics_t asn_SPC_OTDOA_Error_specs_1 = { - sizeof(struct OTDOA_Error), - offsetof(struct OTDOA_Error, _asn_ctx), - offsetof(struct OTDOA_Error, present), - sizeof(((struct OTDOA_Error *)0)->present), - asn_MAP_OTDOA_Error_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_OTDOA_Error = { - "OTDOA-Error", - "OTDOA-Error", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_OTDOA_Error_constr_1, CHOICE_constraint }, - asn_MBR_OTDOA_Error_1, - 2, /* Elements count */ - &asn_SPC_OTDOA_Error_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/OTDOA-LocationServerErrorCauses.c b/asn.1/generated/OTDOA-LocationServerErrorCauses.c deleted file mode 100644 index 646b3fd2..00000000 --- a/asn.1/generated/OTDOA-LocationServerErrorCauses.c +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "OTDOA-LocationServerErrorCauses.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 34, "assistanceDataNotSupportedByServer" }, - { 2, 55, "assistanceDataSupportedButCurrentlyNotAvailableByServer" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_enum2value_2[] = { - 1, /* assistanceDataNotSupportedByServer(1) */ - 2, /* assistanceDataSupportedButCurrentlyNotAvailableByServer(2) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_specs_2 = { - asn_MAP_cause_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_enum2value_2, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 4, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_2 = { - "cause", - "cause", - &asn_OP_NativeEnumerated, - asn_DEF_cause_tags_2, - sizeof(asn_DEF_cause_tags_2) - /sizeof(asn_DEF_cause_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_tags_2) - /sizeof(asn_DEF_cause_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_OTDOA_LocationServerErrorCauses_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_LocationServerErrorCauses, cause), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause" - }, -}; -static const ber_tlv_tag_t asn_DEF_OTDOA_LocationServerErrorCauses_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_OTDOA_LocationServerErrorCauses_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause */ -}; -asn_SEQUENCE_specifics_t asn_SPC_OTDOA_LocationServerErrorCauses_specs_1 = { - sizeof(struct OTDOA_LocationServerErrorCauses), - offsetof(struct OTDOA_LocationServerErrorCauses, _asn_ctx), - asn_MAP_OTDOA_LocationServerErrorCauses_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_OTDOA_LocationServerErrorCauses = { - "OTDOA-LocationServerErrorCauses", - "OTDOA-LocationServerErrorCauses", - &asn_OP_SEQUENCE, - asn_DEF_OTDOA_LocationServerErrorCauses_tags_1, - sizeof(asn_DEF_OTDOA_LocationServerErrorCauses_tags_1) - /sizeof(asn_DEF_OTDOA_LocationServerErrorCauses_tags_1[0]), /* 1 */ - asn_DEF_OTDOA_LocationServerErrorCauses_tags_1, /* Same as above */ - sizeof(asn_DEF_OTDOA_LocationServerErrorCauses_tags_1) - /sizeof(asn_DEF_OTDOA_LocationServerErrorCauses_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_OTDOA_LocationServerErrorCauses_1, - 1, /* Elements count */ - &asn_SPC_OTDOA_LocationServerErrorCauses_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/OTDOA-MeasQuality.c b/asn.1/generated/OTDOA-MeasQuality.c deleted file mode 100644 index 6e8f7102..00000000 --- a/asn.1/generated/OTDOA-MeasQuality.c +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "OTDOA-MeasQuality.h" - -static int -memb_error_Resolution_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 2)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_error_Value_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 5)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_error_NumSamples_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_error_Resolution_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_error_Value_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 5, 5 } /* (SIZE(5..5)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_error_NumSamples_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_OTDOA_MeasQuality_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_MeasQuality, error_Resolution), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_error_Resolution_constr_2, memb_error_Resolution_constraint_1 }, - 0, 0, /* No default value */ - "error-Resolution" - }, - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_MeasQuality, error_Value), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_error_Value_constr_3, memb_error_Value_constraint_1 }, - 0, 0, /* No default value */ - "error-Value" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_MeasQuality, error_NumSamples), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_error_NumSamples_constr_4, memb_error_NumSamples_constraint_1 }, - 0, 0, /* No default value */ - "error-NumSamples" - }, -}; -static const int asn_MAP_OTDOA_MeasQuality_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_OTDOA_MeasQuality_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_OTDOA_MeasQuality_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* error-Resolution */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* error-Value */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* error-NumSamples */ -}; -asn_SEQUENCE_specifics_t asn_SPC_OTDOA_MeasQuality_specs_1 = { - sizeof(struct OTDOA_MeasQuality), - offsetof(struct OTDOA_MeasQuality, _asn_ctx), - asn_MAP_OTDOA_MeasQuality_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_OTDOA_MeasQuality_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_OTDOA_MeasQuality = { - "OTDOA-MeasQuality", - "OTDOA-MeasQuality", - &asn_OP_SEQUENCE, - asn_DEF_OTDOA_MeasQuality_tags_1, - sizeof(asn_DEF_OTDOA_MeasQuality_tags_1) - /sizeof(asn_DEF_OTDOA_MeasQuality_tags_1[0]), /* 1 */ - asn_DEF_OTDOA_MeasQuality_tags_1, /* Same as above */ - sizeof(asn_DEF_OTDOA_MeasQuality_tags_1) - /sizeof(asn_DEF_OTDOA_MeasQuality_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_OTDOA_MeasQuality_1, - 3, /* Elements count */ - &asn_SPC_OTDOA_MeasQuality_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/OTDOA-NeighbourCellInfoElement.c b/asn.1/generated/OTDOA-NeighbourCellInfoElement.c deleted file mode 100644 index 6e7b2887..00000000 --- a/asn.1/generated/OTDOA-NeighbourCellInfoElement.c +++ /dev/null @@ -1,852 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "OTDOA-NeighbourCellInfoElement.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_tpId_r14_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_addPRSconfigNeighbour_r14_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 2)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_physCellId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 503)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_slotNumberOffset_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 19)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_prs_SubframeOffset_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1279)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_expectedRSTD_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_expectedRSTD_Uncertainty_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_cpLength_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_antennaPortConfig_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_prs_only_tp_r14_constr_23 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_cpLengthCRS_r14_constr_25 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_dlBandwidth_r14_constr_30 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_addPRSconfigNeighbour_r14_constr_37 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_tpId_r14_constr_22 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_addPRSconfigNeighbour_r14_constr_37 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_physCellId_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_slotNumberOffset_constr_14 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_prs_SubframeOffset_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 1279 } /* (0..1279) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_expectedRSTD_constr_16 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_expectedRSTD_Uncertainty_constr_17 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cpLength_value2enum_5[] = { - { 0, 6, "normal" }, - { 1, 8, "extended" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cpLength_enum2value_5[] = { - 1, /* extended(1) */ - 0 /* normal(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cpLength_specs_5 = { - asn_MAP_cpLength_value2enum_5, /* "tag" => N; sorted by tag */ - asn_MAP_cpLength_enum2value_5, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cpLength_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cpLength_5 = { - "cpLength", - "cpLength", - &asn_OP_NativeEnumerated, - asn_DEF_cpLength_tags_5, - sizeof(asn_DEF_cpLength_tags_5) - /sizeof(asn_DEF_cpLength_tags_5[0]) - 1, /* 1 */ - asn_DEF_cpLength_tags_5, /* Same as above */ - sizeof(asn_DEF_cpLength_tags_5) - /sizeof(asn_DEF_cpLength_tags_5[0]), /* 2 */ - { 0, &asn_PER_type_cpLength_constr_5, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cpLength_specs_5 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_antennaPortConfig_value2enum_10[] = { - { 0, 12, "ports-1-or-2" }, - { 1, 7, "ports-4" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_antennaPortConfig_enum2value_10[] = { - 0, /* ports-1-or-2(0) */ - 1 /* ports-4(1) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_antennaPortConfig_specs_10 = { - asn_MAP_antennaPortConfig_value2enum_10, /* "tag" => N; sorted by tag */ - asn_MAP_antennaPortConfig_enum2value_10, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_antennaPortConfig_tags_10[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_antennaPortConfig_10 = { - "antennaPortConfig", - "antennaPortConfig", - &asn_OP_NativeEnumerated, - asn_DEF_antennaPortConfig_tags_10, - sizeof(asn_DEF_antennaPortConfig_tags_10) - /sizeof(asn_DEF_antennaPortConfig_tags_10[0]) - 1, /* 1 */ - asn_DEF_antennaPortConfig_tags_10, /* Same as above */ - sizeof(asn_DEF_antennaPortConfig_tags_10) - /sizeof(asn_DEF_antennaPortConfig_tags_10[0]), /* 2 */ - { 0, &asn_PER_type_antennaPortConfig_constr_10, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_antennaPortConfig_specs_10 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_19[] = { - { ATF_POINTER, 1, offsetof(struct OTDOA_NeighbourCellInfoElement__ext1, earfcn_v9a0), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueEUTRA_v9a0, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "earfcn-v9a0" - }, -}; -static const int asn_MAP_ext1_oms_19[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_19[] = { - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_19[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* earfcn-v9a0 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_19 = { - sizeof(struct OTDOA_NeighbourCellInfoElement__ext1), - offsetof(struct OTDOA_NeighbourCellInfoElement__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_19, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_19, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_19 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_19, - sizeof(asn_DEF_ext1_tags_19) - /sizeof(asn_DEF_ext1_tags_19[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_19, /* Same as above */ - sizeof(asn_DEF_ext1_tags_19) - /sizeof(asn_DEF_ext1_tags_19[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_19, - 1, /* Elements count */ - &asn_SPC_ext1_specs_19 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_prs_only_tp_r14_value2enum_23[] = { - { 0, 4, "true" } -}; -static const unsigned int asn_MAP_prs_only_tp_r14_enum2value_23[] = { - 0 /* true(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_prs_only_tp_r14_specs_23 = { - asn_MAP_prs_only_tp_r14_value2enum_23, /* "tag" => N; sorted by tag */ - asn_MAP_prs_only_tp_r14_enum2value_23, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_prs_only_tp_r14_tags_23[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_prs_only_tp_r14_23 = { - "prs-only-tp-r14", - "prs-only-tp-r14", - &asn_OP_NativeEnumerated, - asn_DEF_prs_only_tp_r14_tags_23, - sizeof(asn_DEF_prs_only_tp_r14_tags_23) - /sizeof(asn_DEF_prs_only_tp_r14_tags_23[0]) - 1, /* 1 */ - asn_DEF_prs_only_tp_r14_tags_23, /* Same as above */ - sizeof(asn_DEF_prs_only_tp_r14_tags_23) - /sizeof(asn_DEF_prs_only_tp_r14_tags_23[0]), /* 2 */ - { 0, &asn_PER_type_prs_only_tp_r14_constr_23, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_prs_only_tp_r14_specs_23 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_cpLengthCRS_r14_value2enum_25[] = { - { 0, 6, "normal" }, - { 1, 8, "extended" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cpLengthCRS_r14_enum2value_25[] = { - 1, /* extended(1) */ - 0 /* normal(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cpLengthCRS_r14_specs_25 = { - asn_MAP_cpLengthCRS_r14_value2enum_25, /* "tag" => N; sorted by tag */ - asn_MAP_cpLengthCRS_r14_enum2value_25, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cpLengthCRS_r14_tags_25[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cpLengthCRS_r14_25 = { - "cpLengthCRS-r14", - "cpLengthCRS-r14", - &asn_OP_NativeEnumerated, - asn_DEF_cpLengthCRS_r14_tags_25, - sizeof(asn_DEF_cpLengthCRS_r14_tags_25) - /sizeof(asn_DEF_cpLengthCRS_r14_tags_25[0]) - 1, /* 1 */ - asn_DEF_cpLengthCRS_r14_tags_25, /* Same as above */ - sizeof(asn_DEF_cpLengthCRS_r14_tags_25) - /sizeof(asn_DEF_cpLengthCRS_r14_tags_25[0]), /* 2 */ - { 0, &asn_PER_type_cpLengthCRS_r14_constr_25, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cpLengthCRS_r14_specs_25 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_dlBandwidth_r14_value2enum_30[] = { - { 0, 2, "n6" }, - { 1, 3, "n15" }, - { 2, 3, "n25" }, - { 3, 3, "n50" }, - { 4, 3, "n75" }, - { 5, 4, "n100" } -}; -static const unsigned int asn_MAP_dlBandwidth_r14_enum2value_30[] = { - 5, /* n100(5) */ - 1, /* n15(1) */ - 2, /* n25(2) */ - 3, /* n50(3) */ - 0, /* n6(0) */ - 4 /* n75(4) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_dlBandwidth_r14_specs_30 = { - asn_MAP_dlBandwidth_r14_value2enum_30, /* "tag" => N; sorted by tag */ - asn_MAP_dlBandwidth_r14_enum2value_30, /* N => "tag"; sorted by N */ - 6, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_dlBandwidth_r14_tags_30[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_dlBandwidth_r14_30 = { - "dlBandwidth-r14", - "dlBandwidth-r14", - &asn_OP_NativeEnumerated, - asn_DEF_dlBandwidth_r14_tags_30, - sizeof(asn_DEF_dlBandwidth_r14_tags_30) - /sizeof(asn_DEF_dlBandwidth_r14_tags_30[0]) - 1, /* 1 */ - asn_DEF_dlBandwidth_r14_tags_30, /* Same as above */ - sizeof(asn_DEF_dlBandwidth_r14_tags_30) - /sizeof(asn_DEF_dlBandwidth_r14_tags_30[0]), /* 2 */ - { 0, &asn_PER_type_dlBandwidth_r14_constr_30, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_dlBandwidth_r14_specs_30 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_addPRSconfigNeighbour_r14_37[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_Add_PRSconfigNeighbourElement_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_addPRSconfigNeighbour_r14_tags_37[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_addPRSconfigNeighbour_r14_specs_37 = { - sizeof(struct OTDOA_NeighbourCellInfoElement__ext2__addPRSconfigNeighbour_r14), - offsetof(struct OTDOA_NeighbourCellInfoElement__ext2__addPRSconfigNeighbour_r14, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_addPRSconfigNeighbour_r14_37 = { - "addPRSconfigNeighbour-r14", - "addPRSconfigNeighbour-r14", - &asn_OP_SEQUENCE_OF, - asn_DEF_addPRSconfigNeighbour_r14_tags_37, - sizeof(asn_DEF_addPRSconfigNeighbour_r14_tags_37) - /sizeof(asn_DEF_addPRSconfigNeighbour_r14_tags_37[0]) - 1, /* 1 */ - asn_DEF_addPRSconfigNeighbour_r14_tags_37, /* Same as above */ - sizeof(asn_DEF_addPRSconfigNeighbour_r14_tags_37) - /sizeof(asn_DEF_addPRSconfigNeighbour_r14_tags_37[0]), /* 2 */ - { 0, &asn_PER_type_addPRSconfigNeighbour_r14_constr_37, SEQUENCE_OF_constraint }, - asn_MBR_addPRSconfigNeighbour_r14_37, - 1, /* Single element */ - &asn_SPC_addPRSconfigNeighbour_r14_specs_37 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_21[] = { - { ATF_POINTER, 6, offsetof(struct OTDOA_NeighbourCellInfoElement__ext2, tpId_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_tpId_r14_constr_22, memb_tpId_r14_constraint_21 }, - 0, 0, /* No default value */ - "tpId-r14" - }, - { ATF_POINTER, 5, offsetof(struct OTDOA_NeighbourCellInfoElement__ext2, prs_only_tp_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_prs_only_tp_r14_23, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "prs-only-tp-r14" - }, - { ATF_POINTER, 4, offsetof(struct OTDOA_NeighbourCellInfoElement__ext2, cpLengthCRS_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cpLengthCRS_r14_25, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cpLengthCRS-r14" - }, - { ATF_POINTER, 3, offsetof(struct OTDOA_NeighbourCellInfoElement__ext2, sameMBSFNconfigNeighbour_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sameMBSFNconfigNeighbour-r14" - }, - { ATF_POINTER, 2, offsetof(struct OTDOA_NeighbourCellInfoElement__ext2, dlBandwidth_r14), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_dlBandwidth_r14_30, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dlBandwidth-r14" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_NeighbourCellInfoElement__ext2, addPRSconfigNeighbour_r14), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - 0, - &asn_DEF_addPRSconfigNeighbour_r14_37, - 0, - { 0, &asn_PER_memb_addPRSconfigNeighbour_r14_constr_37, memb_addPRSconfigNeighbour_r14_constraint_21 }, - 0, 0, /* No default value */ - "addPRSconfigNeighbour-r14" - }, -}; -static const int asn_MAP_ext2_oms_21[] = { 0, 1, 2, 3, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_21[] = { - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_21[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tpId-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* prs-only-tp-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cpLengthCRS-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* sameMBSFNconfigNeighbour-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* dlBandwidth-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* addPRSconfigNeighbour-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_21 = { - sizeof(struct OTDOA_NeighbourCellInfoElement__ext2), - offsetof(struct OTDOA_NeighbourCellInfoElement__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_21, - 6, /* Count of tags in the map */ - asn_MAP_ext2_oms_21, /* Optional members */ - 6, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_21 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_21, - sizeof(asn_DEF_ext2_tags_21) - /sizeof(asn_DEF_ext2_tags_21[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_21, /* Same as above */ - sizeof(asn_DEF_ext2_tags_21) - /sizeof(asn_DEF_ext2_tags_21[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_21, - 6, /* Elements count */ - &asn_SPC_ext2_specs_21 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext3_39[] = { - { ATF_POINTER, 1, offsetof(struct OTDOA_NeighbourCellInfoElement__ext3, tdd_config_v1520), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TDD_Config_v1520, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tdd-config-v1520" - }, -}; -static const int asn_MAP_ext3_oms_39[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext3_tags_39[] = { - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_39[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* tdd-config-v1520 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_39 = { - sizeof(struct OTDOA_NeighbourCellInfoElement__ext3), - offsetof(struct OTDOA_NeighbourCellInfoElement__ext3, _asn_ctx), - asn_MAP_ext3_tag2el_39, - 1, /* Count of tags in the map */ - asn_MAP_ext3_oms_39, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext3_39 = { - "ext3", - "ext3", - &asn_OP_SEQUENCE, - asn_DEF_ext3_tags_39, - sizeof(asn_DEF_ext3_tags_39) - /sizeof(asn_DEF_ext3_tags_39[0]) - 1, /* 1 */ - asn_DEF_ext3_tags_39, /* Same as above */ - sizeof(asn_DEF_ext3_tags_39) - /sizeof(asn_DEF_ext3_tags_39[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext3_39, - 1, /* Elements count */ - &asn_SPC_ext3_specs_39 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_OTDOA_NeighbourCellInfoElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_NeighbourCellInfoElement, physCellId), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_physCellId_constr_2, memb_physCellId_constraint_1 }, - 0, 0, /* No default value */ - "physCellId" - }, - { ATF_POINTER, 7, offsetof(struct OTDOA_NeighbourCellInfoElement, cellGlobalId), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ECGI, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellGlobalId" - }, - { ATF_POINTER, 6, offsetof(struct OTDOA_NeighbourCellInfoElement, earfcn), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueEUTRA, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "earfcn" - }, - { ATF_POINTER, 5, offsetof(struct OTDOA_NeighbourCellInfoElement, cpLength), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cpLength_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cpLength" - }, - { ATF_POINTER, 4, offsetof(struct OTDOA_NeighbourCellInfoElement, prsInfo), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PRS_Info, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "prsInfo" - }, - { ATF_POINTER, 3, offsetof(struct OTDOA_NeighbourCellInfoElement, antennaPortConfig), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_antennaPortConfig_10, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "antennaPortConfig" - }, - { ATF_POINTER, 2, offsetof(struct OTDOA_NeighbourCellInfoElement, slotNumberOffset), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_slotNumberOffset_constr_14, memb_slotNumberOffset_constraint_1 }, - 0, 0, /* No default value */ - "slotNumberOffset" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_NeighbourCellInfoElement, prs_SubframeOffset), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_prs_SubframeOffset_constr_15, memb_prs_SubframeOffset_constraint_1 }, - 0, 0, /* No default value */ - "prs-SubframeOffset" - }, - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_NeighbourCellInfoElement, expectedRSTD), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_expectedRSTD_constr_16, memb_expectedRSTD_constraint_1 }, - 0, 0, /* No default value */ - "expectedRSTD" - }, - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_NeighbourCellInfoElement, expectedRSTD_Uncertainty), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_expectedRSTD_Uncertainty_constr_17, memb_expectedRSTD_Uncertainty_constraint_1 }, - 0, 0, /* No default value */ - "expectedRSTD-Uncertainty" - }, - { ATF_POINTER, 3, offsetof(struct OTDOA_NeighbourCellInfoElement, ext1), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - 0, - &asn_DEF_ext1_19, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 2, offsetof(struct OTDOA_NeighbourCellInfoElement, ext2), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - 0, - &asn_DEF_ext2_21, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_NeighbourCellInfoElement, ext3), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - 0, - &asn_DEF_ext3_39, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext3" - }, -}; -static const int asn_MAP_OTDOA_NeighbourCellInfoElement_oms_1[] = { 1, 2, 3, 4, 5, 6, 7, 10, 11, 12 }; -static const ber_tlv_tag_t asn_DEF_OTDOA_NeighbourCellInfoElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_OTDOA_NeighbourCellInfoElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellId */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalId */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* earfcn */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* cpLength */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* prsInfo */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* antennaPortConfig */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* slotNumberOffset */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* prs-SubframeOffset */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* expectedRSTD */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* expectedRSTD-Uncertainty */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* ext2 */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 } /* ext3 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_OTDOA_NeighbourCellInfoElement_specs_1 = { - sizeof(struct OTDOA_NeighbourCellInfoElement), - offsetof(struct OTDOA_NeighbourCellInfoElement, _asn_ctx), - asn_MAP_OTDOA_NeighbourCellInfoElement_tag2el_1, - 13, /* Count of tags in the map */ - asn_MAP_OTDOA_NeighbourCellInfoElement_oms_1, /* Optional members */ - 7, 3, /* Root/Additions */ - 10, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_OTDOA_NeighbourCellInfoElement = { - "OTDOA-NeighbourCellInfoElement", - "OTDOA-NeighbourCellInfoElement", - &asn_OP_SEQUENCE, - asn_DEF_OTDOA_NeighbourCellInfoElement_tags_1, - sizeof(asn_DEF_OTDOA_NeighbourCellInfoElement_tags_1) - /sizeof(asn_DEF_OTDOA_NeighbourCellInfoElement_tags_1[0]), /* 1 */ - asn_DEF_OTDOA_NeighbourCellInfoElement_tags_1, /* Same as above */ - sizeof(asn_DEF_OTDOA_NeighbourCellInfoElement_tags_1) - /sizeof(asn_DEF_OTDOA_NeighbourCellInfoElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_OTDOA_NeighbourCellInfoElement_1, - 13, /* Elements count */ - &asn_SPC_OTDOA_NeighbourCellInfoElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/OTDOA-NeighbourCellInfoList.c b/asn.1/generated/OTDOA-NeighbourCellInfoList.c deleted file mode 100644 index d89d0345..00000000 --- a/asn.1/generated/OTDOA-NeighbourCellInfoList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "OTDOA-NeighbourCellInfoList.h" - -asn_per_constraints_t asn_PER_type_OTDOA_NeighbourCellInfoList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_OTDOA_NeighbourCellInfoList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_OTDOA_NeighbourFreqInfo, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_OTDOA_NeighbourCellInfoList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_OTDOA_NeighbourCellInfoList_specs_1 = { - sizeof(struct OTDOA_NeighbourCellInfoList), - offsetof(struct OTDOA_NeighbourCellInfoList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_OTDOA_NeighbourCellInfoList = { - "OTDOA-NeighbourCellInfoList", - "OTDOA-NeighbourCellInfoList", - &asn_OP_SEQUENCE_OF, - asn_DEF_OTDOA_NeighbourCellInfoList_tags_1, - sizeof(asn_DEF_OTDOA_NeighbourCellInfoList_tags_1) - /sizeof(asn_DEF_OTDOA_NeighbourCellInfoList_tags_1[0]), /* 1 */ - asn_DEF_OTDOA_NeighbourCellInfoList_tags_1, /* Same as above */ - sizeof(asn_DEF_OTDOA_NeighbourCellInfoList_tags_1) - /sizeof(asn_DEF_OTDOA_NeighbourCellInfoList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_OTDOA_NeighbourCellInfoList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_OTDOA_NeighbourCellInfoList_1, - 1, /* Single element */ - &asn_SPC_OTDOA_NeighbourCellInfoList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/OTDOA-NeighbourCellInfoListNB-r14.c b/asn.1/generated/OTDOA-NeighbourCellInfoListNB-r14.c deleted file mode 100644 index 9082dbc5..00000000 --- a/asn.1/generated/OTDOA-NeighbourCellInfoListNB-r14.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "OTDOA-NeighbourCellInfoListNB-r14.h" - -asn_per_constraints_t asn_PER_type_OTDOA_NeighbourCellInfoListNB_r14_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 7, 7, 1, 72 } /* (SIZE(1..72)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_OTDOA_NeighbourCellInfoListNB_r14_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_OTDOA_NeighbourCellInfoNB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_OTDOA_NeighbourCellInfoListNB_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_OTDOA_NeighbourCellInfoListNB_r14_specs_1 = { - sizeof(struct OTDOA_NeighbourCellInfoListNB_r14), - offsetof(struct OTDOA_NeighbourCellInfoListNB_r14, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_OTDOA_NeighbourCellInfoListNB_r14 = { - "OTDOA-NeighbourCellInfoListNB-r14", - "OTDOA-NeighbourCellInfoListNB-r14", - &asn_OP_SEQUENCE_OF, - asn_DEF_OTDOA_NeighbourCellInfoListNB_r14_tags_1, - sizeof(asn_DEF_OTDOA_NeighbourCellInfoListNB_r14_tags_1) - /sizeof(asn_DEF_OTDOA_NeighbourCellInfoListNB_r14_tags_1[0]), /* 1 */ - asn_DEF_OTDOA_NeighbourCellInfoListNB_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_OTDOA_NeighbourCellInfoListNB_r14_tags_1) - /sizeof(asn_DEF_OTDOA_NeighbourCellInfoListNB_r14_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_OTDOA_NeighbourCellInfoListNB_r14_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_OTDOA_NeighbourCellInfoListNB_r14_1, - 1, /* Single element */ - &asn_SPC_OTDOA_NeighbourCellInfoListNB_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/OTDOA-NeighbourCellInfoNB-r14.c b/asn.1/generated/OTDOA-NeighbourCellInfoNB-r14.c deleted file mode 100644 index 3c8b624b..00000000 --- a/asn.1/generated/OTDOA-NeighbourCellInfoNB-r14.c +++ /dev/null @@ -1,588 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "OTDOA-NeighbourCellInfoNB-r14.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_physCellIdNB_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 503)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nprs_slotNumberOffset_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 19)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nprs_SFN_Offset_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nprs_SubframeOffset_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1279)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_expectedRSTD_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_expectedRSTD_Uncertainty_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_prsNeighbourCellIndex_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 72)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_eutra_NumCRS_Ports_r14_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_otdoa_SIB1_NB_repetitions_r14_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_physCellIdNB_r14_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nprs_slotNumberOffset_r14_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nprs_SFN_Offset_r14_constr_16 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nprs_SubframeOffset_r14_constr_17 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 0, 1279 } /* (0..1279) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_expectedRSTD_r14_constr_18 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_expectedRSTD_Uncertainty_r14_constr_19 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_prsNeighbourCellIndex_r14_constr_20 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 1, 72 } /* (1..72) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_eutra_NumCRS_Ports_r14_value2enum_6[] = { - { 0, 12, "ports-1-or-2" }, - { 1, 7, "ports-4" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_eutra_NumCRS_Ports_r14_enum2value_6[] = { - 0, /* ports-1-or-2(0) */ - 1 /* ports-4(1) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_eutra_NumCRS_Ports_r14_specs_6 = { - asn_MAP_eutra_NumCRS_Ports_r14_value2enum_6, /* "tag" => N; sorted by tag */ - asn_MAP_eutra_NumCRS_Ports_r14_enum2value_6, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_eutra_NumCRS_Ports_r14_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_eutra_NumCRS_Ports_r14_6 = { - "eutra-NumCRS-Ports-r14", - "eutra-NumCRS-Ports-r14", - &asn_OP_NativeEnumerated, - asn_DEF_eutra_NumCRS_Ports_r14_tags_6, - sizeof(asn_DEF_eutra_NumCRS_Ports_r14_tags_6) - /sizeof(asn_DEF_eutra_NumCRS_Ports_r14_tags_6[0]) - 1, /* 1 */ - asn_DEF_eutra_NumCRS_Ports_r14_tags_6, /* Same as above */ - sizeof(asn_DEF_eutra_NumCRS_Ports_r14_tags_6) - /sizeof(asn_DEF_eutra_NumCRS_Ports_r14_tags_6[0]), /* 2 */ - { 0, &asn_PER_type_eutra_NumCRS_Ports_r14_constr_6, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_eutra_NumCRS_Ports_r14_specs_6 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_otdoa_SIB1_NB_repetitions_r14_value2enum_10[] = { - { 0, 2, "r4" }, - { 1, 2, "r8" }, - { 2, 3, "r16" } -}; -static const unsigned int asn_MAP_otdoa_SIB1_NB_repetitions_r14_enum2value_10[] = { - 2, /* r16(2) */ - 0, /* r4(0) */ - 1 /* r8(1) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_otdoa_SIB1_NB_repetitions_r14_specs_10 = { - asn_MAP_otdoa_SIB1_NB_repetitions_r14_value2enum_10, /* "tag" => N; sorted by tag */ - asn_MAP_otdoa_SIB1_NB_repetitions_r14_enum2value_10, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_10[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_otdoa_SIB1_NB_repetitions_r14_10 = { - "otdoa-SIB1-NB-repetitions-r14", - "otdoa-SIB1-NB-repetitions-r14", - &asn_OP_NativeEnumerated, - asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_10, - sizeof(asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_10) - /sizeof(asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_10[0]) - 1, /* 1 */ - asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_10, /* Same as above */ - sizeof(asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_10) - /sizeof(asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_10[0]), /* 2 */ - { 0, &asn_PER_type_otdoa_SIB1_NB_repetitions_r14_constr_10, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_otdoa_SIB1_NB_repetitions_r14_specs_10 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_22[] = { - { ATF_POINTER, 1, offsetof(struct OTDOA_NeighbourCellInfoNB_r14__ext1, nprsInfo_Type2_v1470), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PRS_Info_NB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nprsInfo-Type2-v1470" - }, -}; -static const int asn_MAP_ext1_oms_22[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_22[] = { - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_22[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nprsInfo-Type2-v1470 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_22 = { - sizeof(struct OTDOA_NeighbourCellInfoNB_r14__ext1), - offsetof(struct OTDOA_NeighbourCellInfoNB_r14__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_22, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_22, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_22 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_22, - sizeof(asn_DEF_ext1_tags_22) - /sizeof(asn_DEF_ext1_tags_22[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_22, /* Same as above */ - sizeof(asn_DEF_ext1_tags_22) - /sizeof(asn_DEF_ext1_tags_22[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_22, - 1, /* Elements count */ - &asn_SPC_ext1_specs_22 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_24[] = { - { ATF_POINTER, 1, offsetof(struct OTDOA_NeighbourCellInfoNB_r14__ext2, tdd_config_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TDD_Config_v1520, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tdd-config-r15" - }, -}; -static const int asn_MAP_ext2_oms_24[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_24[] = { - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_24[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* tdd-config-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_24 = { - sizeof(struct OTDOA_NeighbourCellInfoNB_r14__ext2), - offsetof(struct OTDOA_NeighbourCellInfoNB_r14__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_24, - 1, /* Count of tags in the map */ - asn_MAP_ext2_oms_24, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_24 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_24, - sizeof(asn_DEF_ext2_tags_24) - /sizeof(asn_DEF_ext2_tags_24[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_24, /* Same as above */ - sizeof(asn_DEF_ext2_tags_24) - /sizeof(asn_DEF_ext2_tags_24[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_24, - 1, /* Elements count */ - &asn_SPC_ext2_specs_24 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_OTDOA_NeighbourCellInfoNB_r14_1[] = { - { ATF_POINTER, 15, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, physCellIdNB_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_physCellIdNB_r14_constr_2, memb_physCellIdNB_r14_constraint_1 }, - 0, 0, /* No default value */ - "physCellIdNB-r14" - }, - { ATF_POINTER, 14, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, cellGlobalIdNB_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ECGI, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellGlobalIdNB-r14" - }, - { ATF_POINTER, 13, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, carrierFreq_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CarrierFreq_NB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "carrierFreq-r14" - }, - { ATF_POINTER, 12, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, earfcn_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueEUTRA_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "earfcn-r14" - }, - { ATF_POINTER, 11, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, eutra_NumCRS_Ports_r14), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_eutra_NumCRS_Ports_r14_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "eutra-NumCRS-Ports-r14" - }, - { ATF_POINTER, 10, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, otdoa_SIB1_NB_repetitions_r14), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_otdoa_SIB1_NB_repetitions_r14_10, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "otdoa-SIB1-NB-repetitions-r14" - }, - { ATF_POINTER, 9, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, nprsInfo_r14), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PRS_Info_NB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nprsInfo-r14" - }, - { ATF_POINTER, 8, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, nprs_slotNumberOffset_r14), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nprs_slotNumberOffset_r14_constr_15, memb_nprs_slotNumberOffset_r14_constraint_1 }, - 0, 0, /* No default value */ - "nprs-slotNumberOffset-r14" - }, - { ATF_POINTER, 7, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, nprs_SFN_Offset_r14), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nprs_SFN_Offset_r14_constr_16, memb_nprs_SFN_Offset_r14_constraint_1 }, - 0, 0, /* No default value */ - "nprs-SFN-Offset-r14" - }, - { ATF_POINTER, 6, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, nprs_SubframeOffset_r14), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nprs_SubframeOffset_r14_constr_17, memb_nprs_SubframeOffset_r14_constraint_1 }, - 0, 0, /* No default value */ - "nprs-SubframeOffset-r14" - }, - { ATF_POINTER, 5, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, expectedRSTD_r14), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_expectedRSTD_r14_constr_18, memb_expectedRSTD_r14_constraint_1 }, - 0, 0, /* No default value */ - "expectedRSTD-r14" - }, - { ATF_POINTER, 4, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, expectedRSTD_Uncertainty_r14), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_expectedRSTD_Uncertainty_r14_constr_19, memb_expectedRSTD_Uncertainty_r14_constraint_1 }, - 0, 0, /* No default value */ - "expectedRSTD-Uncertainty-r14" - }, - { ATF_POINTER, 3, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, prsNeighbourCellIndex_r14), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_prsNeighbourCellIndex_r14_constr_20, memb_prsNeighbourCellIndex_r14_constraint_1 }, - 0, 0, /* No default value */ - "prsNeighbourCellIndex-r14" - }, - { ATF_POINTER, 2, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, ext1), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - 0, - &asn_DEF_ext1_22, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, ext2), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - 0, - &asn_DEF_ext2_24, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_OTDOA_NeighbourCellInfoNB_r14_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static const ber_tlv_tag_t asn_DEF_OTDOA_NeighbourCellInfoNB_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_OTDOA_NeighbourCellInfoNB_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellIdNB-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalIdNB-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* carrierFreq-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* earfcn-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* eutra-NumCRS-Ports-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* otdoa-SIB1-NB-repetitions-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* nprsInfo-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* nprs-slotNumberOffset-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* nprs-SFN-Offset-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* nprs-SubframeOffset-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* expectedRSTD-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* expectedRSTD-Uncertainty-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* prsNeighbourCellIndex-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_OTDOA_NeighbourCellInfoNB_r14_specs_1 = { - sizeof(struct OTDOA_NeighbourCellInfoNB_r14), - offsetof(struct OTDOA_NeighbourCellInfoNB_r14, _asn_ctx), - asn_MAP_OTDOA_NeighbourCellInfoNB_r14_tag2el_1, - 15, /* Count of tags in the map */ - asn_MAP_OTDOA_NeighbourCellInfoNB_r14_oms_1, /* Optional members */ - 13, 2, /* Root/Additions */ - 13, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_OTDOA_NeighbourCellInfoNB_r14 = { - "OTDOA-NeighbourCellInfoNB-r14", - "OTDOA-NeighbourCellInfoNB-r14", - &asn_OP_SEQUENCE, - asn_DEF_OTDOA_NeighbourCellInfoNB_r14_tags_1, - sizeof(asn_DEF_OTDOA_NeighbourCellInfoNB_r14_tags_1) - /sizeof(asn_DEF_OTDOA_NeighbourCellInfoNB_r14_tags_1[0]), /* 1 */ - asn_DEF_OTDOA_NeighbourCellInfoNB_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_OTDOA_NeighbourCellInfoNB_r14_tags_1) - /sizeof(asn_DEF_OTDOA_NeighbourCellInfoNB_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_OTDOA_NeighbourCellInfoNB_r14_1, - 15, /* Elements count */ - &asn_SPC_OTDOA_NeighbourCellInfoNB_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/OTDOA-NeighbourCellInfoNB-r14.h b/asn.1/generated/OTDOA-NeighbourCellInfoNB-r14.h deleted file mode 100644 index 2d1515fc..00000000 --- a/asn.1/generated/OTDOA-NeighbourCellInfoNB-r14.h +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _OTDOA_NeighbourCellInfoNB_r14_H_ -#define _OTDOA_NeighbourCellInfoNB_r14_H_ - - -#include - -/* Including external dependencies */ -#include -#include "ARFCN-ValueEUTRA-r14.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum OTDOA_NeighbourCellInfoNB_r14__eutra_NumCRS_Ports_r14 { - OTDOA_NeighbourCellInfoNB_r14__eutra_NumCRS_Ports_r14_ports_1_or_2 = 0, - OTDOA_NeighbourCellInfoNB_r14__eutra_NumCRS_Ports_r14_ports_4 = 1 - /* - * Enumeration is extensible - */ -} e_OTDOA_NeighbourCellInfoNB_r14__eutra_NumCRS_Ports_r14; -typedef enum OTDOA_NeighbourCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14 { - OTDOA_NeighbourCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14_r4 = 0, - OTDOA_NeighbourCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14_r8 = 1, - OTDOA_NeighbourCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14_r16 = 2 -} e_OTDOA_NeighbourCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14; - -/* Forward declarations */ -struct ECGI; -struct CarrierFreq_NB_r14; -struct PRS_Info_NB_r14; -struct TDD_Config_v1520; - -/* OTDOA-NeighbourCellInfoNB-r14 */ -typedef struct OTDOA_NeighbourCellInfoNB_r14 { - long *physCellIdNB_r14 /* OPTIONAL */; - struct ECGI *cellGlobalIdNB_r14 /* OPTIONAL */; - struct CarrierFreq_NB_r14 *carrierFreq_r14 /* OPTIONAL */; - ARFCN_ValueEUTRA_r14_t *earfcn_r14 /* OPTIONAL */; - long *eutra_NumCRS_Ports_r14 /* OPTIONAL */; - long *otdoa_SIB1_NB_repetitions_r14 /* OPTIONAL */; - struct PRS_Info_NB_r14 *nprsInfo_r14 /* OPTIONAL */; - long *nprs_slotNumberOffset_r14 /* OPTIONAL */; - long *nprs_SFN_Offset_r14 /* OPTIONAL */; - long *nprs_SubframeOffset_r14 /* OPTIONAL */; - long *expectedRSTD_r14 /* OPTIONAL */; - long *expectedRSTD_Uncertainty_r14 /* OPTIONAL */; - long *prsNeighbourCellIndex_r14 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct OTDOA_NeighbourCellInfoNB_r14__ext1 { - struct PRS_Info_NB_r14 *nprsInfo_Type2_v1470 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct OTDOA_NeighbourCellInfoNB_r14__ext2 { - struct TDD_Config_v1520 *tdd_config_r15 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} OTDOA_NeighbourCellInfoNB_r14_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_eutra_NumCRS_Ports_r14_6; // (Use -fall-defs-global to expose) */ -/* extern asn_TYPE_descriptor_t asn_DEF_otdoa_SIB1_NB_repetitions_r14_10; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_OTDOA_NeighbourCellInfoNB_r14; -extern asn_SEQUENCE_specifics_t asn_SPC_OTDOA_NeighbourCellInfoNB_r14_specs_1; -extern asn_TYPE_member_t asn_MBR_OTDOA_NeighbourCellInfoNB_r14_1[15]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "ECGI.h" -#include "CarrierFreq-NB-r14.h" -#include "PRS-Info-NB-r14.h" -#include "TDD-Config-v1520.h" - -#endif /* _OTDOA_NeighbourCellInfoNB_r14_H_ */ -#include diff --git a/asn.1/generated/OTDOA-NeighbourFreqInfo.c b/asn.1/generated/OTDOA-NeighbourFreqInfo.c deleted file mode 100644 index 64665389..00000000 --- a/asn.1/generated/OTDOA-NeighbourFreqInfo.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "OTDOA-NeighbourFreqInfo.h" - -asn_per_constraints_t asn_PER_type_OTDOA_NeighbourFreqInfo_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 24 } /* (SIZE(1..24)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_OTDOA_NeighbourFreqInfo_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_OTDOA_NeighbourCellInfoElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_OTDOA_NeighbourFreqInfo_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_OTDOA_NeighbourFreqInfo_specs_1 = { - sizeof(struct OTDOA_NeighbourFreqInfo), - offsetof(struct OTDOA_NeighbourFreqInfo, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_OTDOA_NeighbourFreqInfo = { - "OTDOA-NeighbourFreqInfo", - "OTDOA-NeighbourFreqInfo", - &asn_OP_SEQUENCE_OF, - asn_DEF_OTDOA_NeighbourFreqInfo_tags_1, - sizeof(asn_DEF_OTDOA_NeighbourFreqInfo_tags_1) - /sizeof(asn_DEF_OTDOA_NeighbourFreqInfo_tags_1[0]), /* 1 */ - asn_DEF_OTDOA_NeighbourFreqInfo_tags_1, /* Same as above */ - sizeof(asn_DEF_OTDOA_NeighbourFreqInfo_tags_1) - /sizeof(asn_DEF_OTDOA_NeighbourFreqInfo_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_OTDOA_NeighbourFreqInfo_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_OTDOA_NeighbourFreqInfo_1, - 1, /* Single element */ - &asn_SPC_OTDOA_NeighbourFreqInfo_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/OTDOA-ProvideAssistanceData.c b/asn.1/generated/OTDOA-ProvideAssistanceData.c deleted file mode 100644 index fd8dde77..00000000 --- a/asn.1/generated/OTDOA-ProvideAssistanceData.c +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "OTDOA-ProvideAssistanceData.h" - -static asn_TYPE_member_t asn_MBR_ext1_6[] = { - { ATF_POINTER, 2, offsetof(struct OTDOA_ProvideAssistanceData__ext1, otdoa_ReferenceCellInfoNB_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_ReferenceCellInfoNB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "otdoa-ReferenceCellInfoNB-r14" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_ProvideAssistanceData__ext1, otdoa_NeighbourCellInfoNB_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_NeighbourCellInfoListNB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "otdoa-NeighbourCellInfoNB-r14" - }, -}; -static const int asn_MAP_ext1_oms_6[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* otdoa-ReferenceCellInfoNB-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* otdoa-NeighbourCellInfoNB-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = { - sizeof(struct OTDOA_ProvideAssistanceData__ext1), - offsetof(struct OTDOA_ProvideAssistanceData__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_6, - 2, /* Count of tags in the map */ - asn_MAP_ext1_oms_6, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_6 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_6, - sizeof(asn_DEF_ext1_tags_6) - /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_6, /* Same as above */ - sizeof(asn_DEF_ext1_tags_6) - /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_6, - 2, /* Elements count */ - &asn_SPC_ext1_specs_6 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_OTDOA_ProvideAssistanceData_1[] = { - { ATF_POINTER, 4, offsetof(struct OTDOA_ProvideAssistanceData, otdoa_ReferenceCellInfo), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_ReferenceCellInfo, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "otdoa-ReferenceCellInfo" - }, - { ATF_POINTER, 3, offsetof(struct OTDOA_ProvideAssistanceData, otdoa_NeighbourCellInfo), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_NeighbourCellInfoList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "otdoa-NeighbourCellInfo" - }, - { ATF_POINTER, 2, offsetof(struct OTDOA_ProvideAssistanceData, otdoa_Error), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_OTDOA_Error, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "otdoa-Error" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_ProvideAssistanceData, ext1), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - 0, - &asn_DEF_ext1_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_OTDOA_ProvideAssistanceData_oms_1[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_OTDOA_ProvideAssistanceData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_OTDOA_ProvideAssistanceData_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* otdoa-ReferenceCellInfo */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* otdoa-NeighbourCellInfo */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* otdoa-Error */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_OTDOA_ProvideAssistanceData_specs_1 = { - sizeof(struct OTDOA_ProvideAssistanceData), - offsetof(struct OTDOA_ProvideAssistanceData, _asn_ctx), - asn_MAP_OTDOA_ProvideAssistanceData_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_OTDOA_ProvideAssistanceData_oms_1, /* Optional members */ - 3, 1, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_OTDOA_ProvideAssistanceData = { - "OTDOA-ProvideAssistanceData", - "OTDOA-ProvideAssistanceData", - &asn_OP_SEQUENCE, - asn_DEF_OTDOA_ProvideAssistanceData_tags_1, - sizeof(asn_DEF_OTDOA_ProvideAssistanceData_tags_1) - /sizeof(asn_DEF_OTDOA_ProvideAssistanceData_tags_1[0]), /* 1 */ - asn_DEF_OTDOA_ProvideAssistanceData_tags_1, /* Same as above */ - sizeof(asn_DEF_OTDOA_ProvideAssistanceData_tags_1) - /sizeof(asn_DEF_OTDOA_ProvideAssistanceData_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_OTDOA_ProvideAssistanceData_1, - 4, /* Elements count */ - &asn_SPC_OTDOA_ProvideAssistanceData_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/OTDOA-ProvideAssistanceData.h b/asn.1/generated/OTDOA-ProvideAssistanceData.h deleted file mode 100644 index cb40e288..00000000 --- a/asn.1/generated/OTDOA-ProvideAssistanceData.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _OTDOA_ProvideAssistanceData_H_ -#define _OTDOA_ProvideAssistanceData_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct OTDOA_ReferenceCellInfo; -struct OTDOA_NeighbourCellInfoList; -struct OTDOA_Error; -struct OTDOA_ReferenceCellInfoNB_r14; -struct OTDOA_NeighbourCellInfoListNB_r14; - -/* OTDOA-ProvideAssistanceData */ -typedef struct OTDOA_ProvideAssistanceData { - struct OTDOA_ReferenceCellInfo *otdoa_ReferenceCellInfo /* OPTIONAL */; - struct OTDOA_NeighbourCellInfoList *otdoa_NeighbourCellInfo /* OPTIONAL */; - struct OTDOA_Error *otdoa_Error /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct OTDOA_ProvideAssistanceData__ext1 { - struct OTDOA_ReferenceCellInfoNB_r14 *otdoa_ReferenceCellInfoNB_r14 /* OPTIONAL */; - struct OTDOA_NeighbourCellInfoListNB_r14 *otdoa_NeighbourCellInfoNB_r14 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} OTDOA_ProvideAssistanceData_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_OTDOA_ProvideAssistanceData; -extern asn_SEQUENCE_specifics_t asn_SPC_OTDOA_ProvideAssistanceData_specs_1; -extern asn_TYPE_member_t asn_MBR_OTDOA_ProvideAssistanceData_1[4]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "OTDOA-ReferenceCellInfo.h" -#include "OTDOA-NeighbourCellInfoList.h" -#include "OTDOA-Error.h" -#include "OTDOA-ReferenceCellInfoNB-r14.h" -#include "OTDOA-NeighbourCellInfoListNB-r14.h" - -#endif /* _OTDOA_ProvideAssistanceData_H_ */ -#include diff --git a/asn.1/generated/OTDOA-ProvideCapabilities.c b/asn.1/generated/OTDOA-ProvideCapabilities.c deleted file mode 100644 index f5630a73..00000000 --- a/asn.1/generated/OTDOA-ProvideCapabilities.c +++ /dev/null @@ -1,1242 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "OTDOA-ProvideCapabilities.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_otdoa_Mode_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_supportedBandListEUTRA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 64)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_supportedBandListEUTRA_v9a0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 64)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_supportedBandListEUTRA_constr_7 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_supportedBandListEUTRA_v9a0_constr_9 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_interFreqRSTDmeasurement_r10_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_additionalNeighbourCellInfoList_r10_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_prs_id_r14_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_tp_separation_via_muting_r14_constr_17 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_additional_prs_config_r14_constr_19 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_prs_based_tbs_r14_constr_21 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_additionalPathsReport_r14_constr_23 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_densePrsConfig_r14_constr_25 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_maxSupportedPrsBandwidth_r14_constr_27 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_prsOccGroup_r14_constr_35 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_prsFrequencyHopping_r14_constr_37 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_maxSupportedPrsConfigs_r14_constr_39 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_periodicalReporting_r14_constr_42 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_multiPrbNprs_r14_constr_44 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_idleStateForMeasurements_r14_constr_46 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_numberOfRXantennas_r14_constr_48 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_motionMeasurements_r15_constr_51 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_interRAT_RSTDmeasurement_r15_constr_53 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_otdoa_Mode_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_supportedBandListEUTRA_constr_7 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_supportedBandListEUTRA_v9a0_constr_9 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_supportedBandListEUTRA_7[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_SupportedBandEUTRA, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_supportedBandListEUTRA_tags_7[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_supportedBandListEUTRA_specs_7 = { - sizeof(struct OTDOA_ProvideCapabilities__supportedBandListEUTRA), - offsetof(struct OTDOA_ProvideCapabilities__supportedBandListEUTRA, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_supportedBandListEUTRA_7 = { - "supportedBandListEUTRA", - "supportedBandListEUTRA", - &asn_OP_SEQUENCE_OF, - asn_DEF_supportedBandListEUTRA_tags_7, - sizeof(asn_DEF_supportedBandListEUTRA_tags_7) - /sizeof(asn_DEF_supportedBandListEUTRA_tags_7[0]) - 1, /* 1 */ - asn_DEF_supportedBandListEUTRA_tags_7, /* Same as above */ - sizeof(asn_DEF_supportedBandListEUTRA_tags_7) - /sizeof(asn_DEF_supportedBandListEUTRA_tags_7[0]), /* 2 */ - { 0, &asn_PER_type_supportedBandListEUTRA_constr_7, SEQUENCE_OF_constraint }, - asn_MBR_supportedBandListEUTRA_7, - 1, /* Single element */ - &asn_SPC_supportedBandListEUTRA_specs_7 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_supportedBandListEUTRA_v9a0_9[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_SupportedBandEUTRA_v9a0, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_supportedBandListEUTRA_v9a0_tags_9[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_supportedBandListEUTRA_v9a0_specs_9 = { - sizeof(struct OTDOA_ProvideCapabilities__supportedBandListEUTRA_v9a0), - offsetof(struct OTDOA_ProvideCapabilities__supportedBandListEUTRA_v9a0, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_supportedBandListEUTRA_v9a0_9 = { - "supportedBandListEUTRA-v9a0", - "supportedBandListEUTRA-v9a0", - &asn_OP_SEQUENCE_OF, - asn_DEF_supportedBandListEUTRA_v9a0_tags_9, - sizeof(asn_DEF_supportedBandListEUTRA_v9a0_tags_9) - /sizeof(asn_DEF_supportedBandListEUTRA_v9a0_tags_9[0]) - 1, /* 1 */ - asn_DEF_supportedBandListEUTRA_v9a0_tags_9, /* Same as above */ - sizeof(asn_DEF_supportedBandListEUTRA_v9a0_tags_9) - /sizeof(asn_DEF_supportedBandListEUTRA_v9a0_tags_9[0]), /* 2 */ - { 0, &asn_PER_type_supportedBandListEUTRA_v9a0_constr_9, SEQUENCE_OF_constraint }, - asn_MBR_supportedBandListEUTRA_v9a0_9, - 1, /* Single element */ - &asn_SPC_supportedBandListEUTRA_v9a0_specs_9 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_interFreqRSTDmeasurement_r10_value2enum_11[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_interFreqRSTDmeasurement_r10_enum2value_11[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_interFreqRSTDmeasurement_r10_specs_11 = { - asn_MAP_interFreqRSTDmeasurement_r10_value2enum_11, /* "tag" => N; sorted by tag */ - asn_MAP_interFreqRSTDmeasurement_r10_enum2value_11, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_interFreqRSTDmeasurement_r10_tags_11[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_interFreqRSTDmeasurement_r10_11 = { - "interFreqRSTDmeasurement-r10", - "interFreqRSTDmeasurement-r10", - &asn_OP_NativeEnumerated, - asn_DEF_interFreqRSTDmeasurement_r10_tags_11, - sizeof(asn_DEF_interFreqRSTDmeasurement_r10_tags_11) - /sizeof(asn_DEF_interFreqRSTDmeasurement_r10_tags_11[0]) - 1, /* 1 */ - asn_DEF_interFreqRSTDmeasurement_r10_tags_11, /* Same as above */ - sizeof(asn_DEF_interFreqRSTDmeasurement_r10_tags_11) - /sizeof(asn_DEF_interFreqRSTDmeasurement_r10_tags_11[0]), /* 2 */ - { 0, &asn_PER_type_interFreqRSTDmeasurement_r10_constr_11, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_interFreqRSTDmeasurement_r10_specs_11 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_additionalNeighbourCellInfoList_r10_value2enum_13[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_additionalNeighbourCellInfoList_r10_enum2value_13[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_additionalNeighbourCellInfoList_r10_specs_13 = { - asn_MAP_additionalNeighbourCellInfoList_r10_value2enum_13, /* "tag" => N; sorted by tag */ - asn_MAP_additionalNeighbourCellInfoList_r10_enum2value_13, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_additionalNeighbourCellInfoList_r10_tags_13[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_additionalNeighbourCellInfoList_r10_13 = { - "additionalNeighbourCellInfoList-r10", - "additionalNeighbourCellInfoList-r10", - &asn_OP_NativeEnumerated, - asn_DEF_additionalNeighbourCellInfoList_r10_tags_13, - sizeof(asn_DEF_additionalNeighbourCellInfoList_r10_tags_13) - /sizeof(asn_DEF_additionalNeighbourCellInfoList_r10_tags_13[0]) - 1, /* 1 */ - asn_DEF_additionalNeighbourCellInfoList_r10_tags_13, /* Same as above */ - sizeof(asn_DEF_additionalNeighbourCellInfoList_r10_tags_13) - /sizeof(asn_DEF_additionalNeighbourCellInfoList_r10_tags_13[0]), /* 2 */ - { 0, &asn_PER_type_additionalNeighbourCellInfoList_r10_constr_13, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_additionalNeighbourCellInfoList_r10_specs_13 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_prs_id_r14_value2enum_15[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_prs_id_r14_enum2value_15[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_prs_id_r14_specs_15 = { - asn_MAP_prs_id_r14_value2enum_15, /* "tag" => N; sorted by tag */ - asn_MAP_prs_id_r14_enum2value_15, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_prs_id_r14_tags_15[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_prs_id_r14_15 = { - "prs-id-r14", - "prs-id-r14", - &asn_OP_NativeEnumerated, - asn_DEF_prs_id_r14_tags_15, - sizeof(asn_DEF_prs_id_r14_tags_15) - /sizeof(asn_DEF_prs_id_r14_tags_15[0]) - 1, /* 1 */ - asn_DEF_prs_id_r14_tags_15, /* Same as above */ - sizeof(asn_DEF_prs_id_r14_tags_15) - /sizeof(asn_DEF_prs_id_r14_tags_15[0]), /* 2 */ - { 0, &asn_PER_type_prs_id_r14_constr_15, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_prs_id_r14_specs_15 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_tp_separation_via_muting_r14_value2enum_17[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_tp_separation_via_muting_r14_enum2value_17[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_tp_separation_via_muting_r14_specs_17 = { - asn_MAP_tp_separation_via_muting_r14_value2enum_17, /* "tag" => N; sorted by tag */ - asn_MAP_tp_separation_via_muting_r14_enum2value_17, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_tp_separation_via_muting_r14_tags_17[] = { - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_tp_separation_via_muting_r14_17 = { - "tp-separation-via-muting-r14", - "tp-separation-via-muting-r14", - &asn_OP_NativeEnumerated, - asn_DEF_tp_separation_via_muting_r14_tags_17, - sizeof(asn_DEF_tp_separation_via_muting_r14_tags_17) - /sizeof(asn_DEF_tp_separation_via_muting_r14_tags_17[0]) - 1, /* 1 */ - asn_DEF_tp_separation_via_muting_r14_tags_17, /* Same as above */ - sizeof(asn_DEF_tp_separation_via_muting_r14_tags_17) - /sizeof(asn_DEF_tp_separation_via_muting_r14_tags_17[0]), /* 2 */ - { 0, &asn_PER_type_tp_separation_via_muting_r14_constr_17, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_tp_separation_via_muting_r14_specs_17 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_additional_prs_config_r14_value2enum_19[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_additional_prs_config_r14_enum2value_19[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_additional_prs_config_r14_specs_19 = { - asn_MAP_additional_prs_config_r14_value2enum_19, /* "tag" => N; sorted by tag */ - asn_MAP_additional_prs_config_r14_enum2value_19, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_additional_prs_config_r14_tags_19[] = { - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_additional_prs_config_r14_19 = { - "additional-prs-config-r14", - "additional-prs-config-r14", - &asn_OP_NativeEnumerated, - asn_DEF_additional_prs_config_r14_tags_19, - sizeof(asn_DEF_additional_prs_config_r14_tags_19) - /sizeof(asn_DEF_additional_prs_config_r14_tags_19[0]) - 1, /* 1 */ - asn_DEF_additional_prs_config_r14_tags_19, /* Same as above */ - sizeof(asn_DEF_additional_prs_config_r14_tags_19) - /sizeof(asn_DEF_additional_prs_config_r14_tags_19[0]), /* 2 */ - { 0, &asn_PER_type_additional_prs_config_r14_constr_19, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_additional_prs_config_r14_specs_19 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_prs_based_tbs_r14_value2enum_21[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_prs_based_tbs_r14_enum2value_21[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_prs_based_tbs_r14_specs_21 = { - asn_MAP_prs_based_tbs_r14_value2enum_21, /* "tag" => N; sorted by tag */ - asn_MAP_prs_based_tbs_r14_enum2value_21, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_prs_based_tbs_r14_tags_21[] = { - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_prs_based_tbs_r14_21 = { - "prs-based-tbs-r14", - "prs-based-tbs-r14", - &asn_OP_NativeEnumerated, - asn_DEF_prs_based_tbs_r14_tags_21, - sizeof(asn_DEF_prs_based_tbs_r14_tags_21) - /sizeof(asn_DEF_prs_based_tbs_r14_tags_21[0]) - 1, /* 1 */ - asn_DEF_prs_based_tbs_r14_tags_21, /* Same as above */ - sizeof(asn_DEF_prs_based_tbs_r14_tags_21) - /sizeof(asn_DEF_prs_based_tbs_r14_tags_21[0]), /* 2 */ - { 0, &asn_PER_type_prs_based_tbs_r14_constr_21, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_prs_based_tbs_r14_specs_21 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_additionalPathsReport_r14_value2enum_23[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_additionalPathsReport_r14_enum2value_23[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_additionalPathsReport_r14_specs_23 = { - asn_MAP_additionalPathsReport_r14_value2enum_23, /* "tag" => N; sorted by tag */ - asn_MAP_additionalPathsReport_r14_enum2value_23, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_additionalPathsReport_r14_tags_23[] = { - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_additionalPathsReport_r14_23 = { - "additionalPathsReport-r14", - "additionalPathsReport-r14", - &asn_OP_NativeEnumerated, - asn_DEF_additionalPathsReport_r14_tags_23, - sizeof(asn_DEF_additionalPathsReport_r14_tags_23) - /sizeof(asn_DEF_additionalPathsReport_r14_tags_23[0]) - 1, /* 1 */ - asn_DEF_additionalPathsReport_r14_tags_23, /* Same as above */ - sizeof(asn_DEF_additionalPathsReport_r14_tags_23) - /sizeof(asn_DEF_additionalPathsReport_r14_tags_23[0]), /* 2 */ - { 0, &asn_PER_type_additionalPathsReport_r14_constr_23, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_additionalPathsReport_r14_specs_23 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_densePrsConfig_r14_value2enum_25[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_densePrsConfig_r14_enum2value_25[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_densePrsConfig_r14_specs_25 = { - asn_MAP_densePrsConfig_r14_value2enum_25, /* "tag" => N; sorted by tag */ - asn_MAP_densePrsConfig_r14_enum2value_25, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_densePrsConfig_r14_tags_25[] = { - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_densePrsConfig_r14_25 = { - "densePrsConfig-r14", - "densePrsConfig-r14", - &asn_OP_NativeEnumerated, - asn_DEF_densePrsConfig_r14_tags_25, - sizeof(asn_DEF_densePrsConfig_r14_tags_25) - /sizeof(asn_DEF_densePrsConfig_r14_tags_25[0]) - 1, /* 1 */ - asn_DEF_densePrsConfig_r14_tags_25, /* Same as above */ - sizeof(asn_DEF_densePrsConfig_r14_tags_25) - /sizeof(asn_DEF_densePrsConfig_r14_tags_25[0]), /* 2 */ - { 0, &asn_PER_type_densePrsConfig_r14_constr_25, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_densePrsConfig_r14_specs_25 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_maxSupportedPrsBandwidth_r14_value2enum_27[] = { - { 0, 2, "n6" }, - { 1, 3, "n15" }, - { 2, 3, "n25" }, - { 3, 3, "n50" }, - { 4, 3, "n75" }, - { 5, 4, "n100" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_maxSupportedPrsBandwidth_r14_enum2value_27[] = { - 5, /* n100(5) */ - 1, /* n15(1) */ - 2, /* n25(2) */ - 3, /* n50(3) */ - 0, /* n6(0) */ - 4 /* n75(4) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_maxSupportedPrsBandwidth_r14_specs_27 = { - asn_MAP_maxSupportedPrsBandwidth_r14_value2enum_27, /* "tag" => N; sorted by tag */ - asn_MAP_maxSupportedPrsBandwidth_r14_enum2value_27, /* N => "tag"; sorted by N */ - 6, /* Number of elements in the maps */ - 7, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_maxSupportedPrsBandwidth_r14_tags_27[] = { - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_maxSupportedPrsBandwidth_r14_27 = { - "maxSupportedPrsBandwidth-r14", - "maxSupportedPrsBandwidth-r14", - &asn_OP_NativeEnumerated, - asn_DEF_maxSupportedPrsBandwidth_r14_tags_27, - sizeof(asn_DEF_maxSupportedPrsBandwidth_r14_tags_27) - /sizeof(asn_DEF_maxSupportedPrsBandwidth_r14_tags_27[0]) - 1, /* 1 */ - asn_DEF_maxSupportedPrsBandwidth_r14_tags_27, /* Same as above */ - sizeof(asn_DEF_maxSupportedPrsBandwidth_r14_tags_27) - /sizeof(asn_DEF_maxSupportedPrsBandwidth_r14_tags_27[0]), /* 2 */ - { 0, &asn_PER_type_maxSupportedPrsBandwidth_r14_constr_27, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_maxSupportedPrsBandwidth_r14_specs_27 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_prsOccGroup_r14_value2enum_35[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_prsOccGroup_r14_enum2value_35[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_prsOccGroup_r14_specs_35 = { - asn_MAP_prsOccGroup_r14_value2enum_35, /* "tag" => N; sorted by tag */ - asn_MAP_prsOccGroup_r14_enum2value_35, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_prsOccGroup_r14_tags_35[] = { - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_prsOccGroup_r14_35 = { - "prsOccGroup-r14", - "prsOccGroup-r14", - &asn_OP_NativeEnumerated, - asn_DEF_prsOccGroup_r14_tags_35, - sizeof(asn_DEF_prsOccGroup_r14_tags_35) - /sizeof(asn_DEF_prsOccGroup_r14_tags_35[0]) - 1, /* 1 */ - asn_DEF_prsOccGroup_r14_tags_35, /* Same as above */ - sizeof(asn_DEF_prsOccGroup_r14_tags_35) - /sizeof(asn_DEF_prsOccGroup_r14_tags_35[0]), /* 2 */ - { 0, &asn_PER_type_prsOccGroup_r14_constr_35, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_prsOccGroup_r14_specs_35 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_prsFrequencyHopping_r14_value2enum_37[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_prsFrequencyHopping_r14_enum2value_37[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_prsFrequencyHopping_r14_specs_37 = { - asn_MAP_prsFrequencyHopping_r14_value2enum_37, /* "tag" => N; sorted by tag */ - asn_MAP_prsFrequencyHopping_r14_enum2value_37, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_prsFrequencyHopping_r14_tags_37[] = { - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_prsFrequencyHopping_r14_37 = { - "prsFrequencyHopping-r14", - "prsFrequencyHopping-r14", - &asn_OP_NativeEnumerated, - asn_DEF_prsFrequencyHopping_r14_tags_37, - sizeof(asn_DEF_prsFrequencyHopping_r14_tags_37) - /sizeof(asn_DEF_prsFrequencyHopping_r14_tags_37[0]) - 1, /* 1 */ - asn_DEF_prsFrequencyHopping_r14_tags_37, /* Same as above */ - sizeof(asn_DEF_prsFrequencyHopping_r14_tags_37) - /sizeof(asn_DEF_prsFrequencyHopping_r14_tags_37[0]), /* 2 */ - { 0, &asn_PER_type_prsFrequencyHopping_r14_constr_37, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_prsFrequencyHopping_r14_specs_37 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_maxSupportedPrsConfigs_r14_value2enum_39[] = { - { 0, 2, "c2" }, - { 1, 2, "c3" } -}; -static const unsigned int asn_MAP_maxSupportedPrsConfigs_r14_enum2value_39[] = { - 0, /* c2(0) */ - 1 /* c3(1) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_maxSupportedPrsConfigs_r14_specs_39 = { - asn_MAP_maxSupportedPrsConfigs_r14_value2enum_39, /* "tag" => N; sorted by tag */ - asn_MAP_maxSupportedPrsConfigs_r14_enum2value_39, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_maxSupportedPrsConfigs_r14_tags_39[] = { - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_maxSupportedPrsConfigs_r14_39 = { - "maxSupportedPrsConfigs-r14", - "maxSupportedPrsConfigs-r14", - &asn_OP_NativeEnumerated, - asn_DEF_maxSupportedPrsConfigs_r14_tags_39, - sizeof(asn_DEF_maxSupportedPrsConfigs_r14_tags_39) - /sizeof(asn_DEF_maxSupportedPrsConfigs_r14_tags_39[0]) - 1, /* 1 */ - asn_DEF_maxSupportedPrsConfigs_r14_tags_39, /* Same as above */ - sizeof(asn_DEF_maxSupportedPrsConfigs_r14_tags_39) - /sizeof(asn_DEF_maxSupportedPrsConfigs_r14_tags_39[0]), /* 2 */ - { 0, &asn_PER_type_maxSupportedPrsConfigs_r14_constr_39, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_maxSupportedPrsConfigs_r14_specs_39 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_periodicalReporting_r14_value2enum_42[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_periodicalReporting_r14_enum2value_42[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_periodicalReporting_r14_specs_42 = { - asn_MAP_periodicalReporting_r14_value2enum_42, /* "tag" => N; sorted by tag */ - asn_MAP_periodicalReporting_r14_enum2value_42, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_periodicalReporting_r14_tags_42[] = { - (ASN_TAG_CLASS_CONTEXT | (15 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_periodicalReporting_r14_42 = { - "periodicalReporting-r14", - "periodicalReporting-r14", - &asn_OP_NativeEnumerated, - asn_DEF_periodicalReporting_r14_tags_42, - sizeof(asn_DEF_periodicalReporting_r14_tags_42) - /sizeof(asn_DEF_periodicalReporting_r14_tags_42[0]) - 1, /* 1 */ - asn_DEF_periodicalReporting_r14_tags_42, /* Same as above */ - sizeof(asn_DEF_periodicalReporting_r14_tags_42) - /sizeof(asn_DEF_periodicalReporting_r14_tags_42[0]), /* 2 */ - { 0, &asn_PER_type_periodicalReporting_r14_constr_42, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_periodicalReporting_r14_specs_42 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_multiPrbNprs_r14_value2enum_44[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_multiPrbNprs_r14_enum2value_44[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_multiPrbNprs_r14_specs_44 = { - asn_MAP_multiPrbNprs_r14_value2enum_44, /* "tag" => N; sorted by tag */ - asn_MAP_multiPrbNprs_r14_enum2value_44, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_multiPrbNprs_r14_tags_44[] = { - (ASN_TAG_CLASS_CONTEXT | (16 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_multiPrbNprs_r14_44 = { - "multiPrbNprs-r14", - "multiPrbNprs-r14", - &asn_OP_NativeEnumerated, - asn_DEF_multiPrbNprs_r14_tags_44, - sizeof(asn_DEF_multiPrbNprs_r14_tags_44) - /sizeof(asn_DEF_multiPrbNprs_r14_tags_44[0]) - 1, /* 1 */ - asn_DEF_multiPrbNprs_r14_tags_44, /* Same as above */ - sizeof(asn_DEF_multiPrbNprs_r14_tags_44) - /sizeof(asn_DEF_multiPrbNprs_r14_tags_44[0]), /* 2 */ - { 0, &asn_PER_type_multiPrbNprs_r14_constr_44, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_multiPrbNprs_r14_specs_44 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_idleStateForMeasurements_r14_value2enum_46[] = { - { 0, 8, "required" } -}; -static const unsigned int asn_MAP_idleStateForMeasurements_r14_enum2value_46[] = { - 0 /* required(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_idleStateForMeasurements_r14_specs_46 = { - asn_MAP_idleStateForMeasurements_r14_value2enum_46, /* "tag" => N; sorted by tag */ - asn_MAP_idleStateForMeasurements_r14_enum2value_46, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_idleStateForMeasurements_r14_tags_46[] = { - (ASN_TAG_CLASS_CONTEXT | (17 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_idleStateForMeasurements_r14_46 = { - "idleStateForMeasurements-r14", - "idleStateForMeasurements-r14", - &asn_OP_NativeEnumerated, - asn_DEF_idleStateForMeasurements_r14_tags_46, - sizeof(asn_DEF_idleStateForMeasurements_r14_tags_46) - /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_46[0]) - 1, /* 1 */ - asn_DEF_idleStateForMeasurements_r14_tags_46, /* Same as above */ - sizeof(asn_DEF_idleStateForMeasurements_r14_tags_46) - /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_46[0]), /* 2 */ - { 0, &asn_PER_type_idleStateForMeasurements_r14_constr_46, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_idleStateForMeasurements_r14_specs_46 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_numberOfRXantennas_r14_value2enum_48[] = { - { 0, 3, "rx1" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_numberOfRXantennas_r14_enum2value_48[] = { - 0 /* rx1(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_numberOfRXantennas_r14_specs_48 = { - asn_MAP_numberOfRXantennas_r14_value2enum_48, /* "tag" => N; sorted by tag */ - asn_MAP_numberOfRXantennas_r14_enum2value_48, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 2, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_numberOfRXantennas_r14_tags_48[] = { - (ASN_TAG_CLASS_CONTEXT | (18 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_numberOfRXantennas_r14_48 = { - "numberOfRXantennas-r14", - "numberOfRXantennas-r14", - &asn_OP_NativeEnumerated, - asn_DEF_numberOfRXantennas_r14_tags_48, - sizeof(asn_DEF_numberOfRXantennas_r14_tags_48) - /sizeof(asn_DEF_numberOfRXantennas_r14_tags_48[0]) - 1, /* 1 */ - asn_DEF_numberOfRXantennas_r14_tags_48, /* Same as above */ - sizeof(asn_DEF_numberOfRXantennas_r14_tags_48) - /sizeof(asn_DEF_numberOfRXantennas_r14_tags_48[0]), /* 2 */ - { 0, &asn_PER_type_numberOfRXantennas_r14_constr_48, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_numberOfRXantennas_r14_specs_48 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_motionMeasurements_r15_value2enum_51[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_motionMeasurements_r15_enum2value_51[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_motionMeasurements_r15_specs_51 = { - asn_MAP_motionMeasurements_r15_value2enum_51, /* "tag" => N; sorted by tag */ - asn_MAP_motionMeasurements_r15_enum2value_51, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_motionMeasurements_r15_tags_51[] = { - (ASN_TAG_CLASS_CONTEXT | (19 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_motionMeasurements_r15_51 = { - "motionMeasurements-r15", - "motionMeasurements-r15", - &asn_OP_NativeEnumerated, - asn_DEF_motionMeasurements_r15_tags_51, - sizeof(asn_DEF_motionMeasurements_r15_tags_51) - /sizeof(asn_DEF_motionMeasurements_r15_tags_51[0]) - 1, /* 1 */ - asn_DEF_motionMeasurements_r15_tags_51, /* Same as above */ - sizeof(asn_DEF_motionMeasurements_r15_tags_51) - /sizeof(asn_DEF_motionMeasurements_r15_tags_51[0]), /* 2 */ - { 0, &asn_PER_type_motionMeasurements_r15_constr_51, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_motionMeasurements_r15_specs_51 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_interRAT_RSTDmeasurement_r15_value2enum_53[] = { - { 0, 9, "supported" } -}; -static const unsigned int asn_MAP_interRAT_RSTDmeasurement_r15_enum2value_53[] = { - 0 /* supported(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_interRAT_RSTDmeasurement_r15_specs_53 = { - asn_MAP_interRAT_RSTDmeasurement_r15_value2enum_53, /* "tag" => N; sorted by tag */ - asn_MAP_interRAT_RSTDmeasurement_r15_enum2value_53, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_interRAT_RSTDmeasurement_r15_tags_53[] = { - (ASN_TAG_CLASS_CONTEXT | (20 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_interRAT_RSTDmeasurement_r15_53 = { - "interRAT-RSTDmeasurement-r15", - "interRAT-RSTDmeasurement-r15", - &asn_OP_NativeEnumerated, - asn_DEF_interRAT_RSTDmeasurement_r15_tags_53, - sizeof(asn_DEF_interRAT_RSTDmeasurement_r15_tags_53) - /sizeof(asn_DEF_interRAT_RSTDmeasurement_r15_tags_53[0]) - 1, /* 1 */ - asn_DEF_interRAT_RSTDmeasurement_r15_tags_53, /* Same as above */ - sizeof(asn_DEF_interRAT_RSTDmeasurement_r15_tags_53) - /sizeof(asn_DEF_interRAT_RSTDmeasurement_r15_tags_53[0]), /* 2 */ - { 0, &asn_PER_type_interRAT_RSTDmeasurement_r15_constr_53, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_interRAT_RSTDmeasurement_r15_specs_53 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_OTDOA_ProvideCapabilities_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_ProvideCapabilities, otdoa_Mode), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_otdoa_Mode_constr_2, memb_otdoa_Mode_constraint_1 }, - 0, 0, /* No default value */ - "otdoa-Mode" - }, - { ATF_POINTER, 20, offsetof(struct OTDOA_ProvideCapabilities, supportedBandListEUTRA), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_supportedBandListEUTRA_7, - 0, - { 0, &asn_PER_memb_supportedBandListEUTRA_constr_7, memb_supportedBandListEUTRA_constraint_1 }, - 0, 0, /* No default value */ - "supportedBandListEUTRA" - }, - { ATF_POINTER, 19, offsetof(struct OTDOA_ProvideCapabilities, supportedBandListEUTRA_v9a0), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_supportedBandListEUTRA_v9a0_9, - 0, - { 0, &asn_PER_memb_supportedBandListEUTRA_v9a0_constr_9, memb_supportedBandListEUTRA_v9a0_constraint_1 }, - 0, 0, /* No default value */ - "supportedBandListEUTRA-v9a0" - }, - { ATF_POINTER, 18, offsetof(struct OTDOA_ProvideCapabilities, interFreqRSTDmeasurement_r10), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_interFreqRSTDmeasurement_r10_11, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "interFreqRSTDmeasurement-r10" - }, - { ATF_POINTER, 17, offsetof(struct OTDOA_ProvideCapabilities, additionalNeighbourCellInfoList_r10), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_additionalNeighbourCellInfoList_r10_13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "additionalNeighbourCellInfoList-r10" - }, - { ATF_POINTER, 16, offsetof(struct OTDOA_ProvideCapabilities, prs_id_r14), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_prs_id_r14_15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "prs-id-r14" - }, - { ATF_POINTER, 15, offsetof(struct OTDOA_ProvideCapabilities, tp_separation_via_muting_r14), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_tp_separation_via_muting_r14_17, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tp-separation-via-muting-r14" - }, - { ATF_POINTER, 14, offsetof(struct OTDOA_ProvideCapabilities, additional_prs_config_r14), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_additional_prs_config_r14_19, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "additional-prs-config-r14" - }, - { ATF_POINTER, 13, offsetof(struct OTDOA_ProvideCapabilities, prs_based_tbs_r14), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_prs_based_tbs_r14_21, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "prs-based-tbs-r14" - }, - { ATF_POINTER, 12, offsetof(struct OTDOA_ProvideCapabilities, additionalPathsReport_r14), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_additionalPathsReport_r14_23, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "additionalPathsReport-r14" - }, - { ATF_POINTER, 11, offsetof(struct OTDOA_ProvideCapabilities, densePrsConfig_r14), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_densePrsConfig_r14_25, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "densePrsConfig-r14" - }, - { ATF_POINTER, 10, offsetof(struct OTDOA_ProvideCapabilities, maxSupportedPrsBandwidth_r14), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_maxSupportedPrsBandwidth_r14_27, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "maxSupportedPrsBandwidth-r14" - }, - { ATF_POINTER, 9, offsetof(struct OTDOA_ProvideCapabilities, prsOccGroup_r14), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_prsOccGroup_r14_35, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "prsOccGroup-r14" - }, - { ATF_POINTER, 8, offsetof(struct OTDOA_ProvideCapabilities, prsFrequencyHopping_r14), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_prsFrequencyHopping_r14_37, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "prsFrequencyHopping-r14" - }, - { ATF_POINTER, 7, offsetof(struct OTDOA_ProvideCapabilities, maxSupportedPrsConfigs_r14), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_maxSupportedPrsConfigs_r14_39, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "maxSupportedPrsConfigs-r14" - }, - { ATF_POINTER, 6, offsetof(struct OTDOA_ProvideCapabilities, periodicalReporting_r14), - (ASN_TAG_CLASS_CONTEXT | (15 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_periodicalReporting_r14_42, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "periodicalReporting-r14" - }, - { ATF_POINTER, 5, offsetof(struct OTDOA_ProvideCapabilities, multiPrbNprs_r14), - (ASN_TAG_CLASS_CONTEXT | (16 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_multiPrbNprs_r14_44, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "multiPrbNprs-r14" - }, - { ATF_POINTER, 4, offsetof(struct OTDOA_ProvideCapabilities, idleStateForMeasurements_r14), - (ASN_TAG_CLASS_CONTEXT | (17 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_idleStateForMeasurements_r14_46, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "idleStateForMeasurements-r14" - }, - { ATF_POINTER, 3, offsetof(struct OTDOA_ProvideCapabilities, numberOfRXantennas_r14), - (ASN_TAG_CLASS_CONTEXT | (18 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_numberOfRXantennas_r14_48, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "numberOfRXantennas-r14" - }, - { ATF_POINTER, 2, offsetof(struct OTDOA_ProvideCapabilities, motionMeasurements_r15), - (ASN_TAG_CLASS_CONTEXT | (19 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_motionMeasurements_r15_51, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "motionMeasurements-r15" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_ProvideCapabilities, interRAT_RSTDmeasurement_r15), - (ASN_TAG_CLASS_CONTEXT | (20 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_interRAT_RSTDmeasurement_r15_53, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "interRAT-RSTDmeasurement-r15" - }, -}; -static const int asn_MAP_OTDOA_ProvideCapabilities_oms_1[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 }; -static const ber_tlv_tag_t asn_DEF_OTDOA_ProvideCapabilities_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_OTDOA_ProvideCapabilities_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* otdoa-Mode */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* supportedBandListEUTRA */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* supportedBandListEUTRA-v9a0 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* interFreqRSTDmeasurement-r10 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* additionalNeighbourCellInfoList-r10 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* prs-id-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* tp-separation-via-muting-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* additional-prs-config-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* prs-based-tbs-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* additionalPathsReport-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* densePrsConfig-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* maxSupportedPrsBandwidth-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* prsOccGroup-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* prsFrequencyHopping-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* maxSupportedPrsConfigs-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* periodicalReporting-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 }, /* multiPrbNprs-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (17 << 2)), 17, 0, 0 }, /* idleStateForMeasurements-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (18 << 2)), 18, 0, 0 }, /* numberOfRXantennas-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (19 << 2)), 19, 0, 0 }, /* motionMeasurements-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (20 << 2)), 20, 0, 0 } /* interRAT-RSTDmeasurement-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_OTDOA_ProvideCapabilities_specs_1 = { - sizeof(struct OTDOA_ProvideCapabilities), - offsetof(struct OTDOA_ProvideCapabilities, _asn_ctx), - asn_MAP_OTDOA_ProvideCapabilities_tag2el_1, - 21, /* Count of tags in the map */ - asn_MAP_OTDOA_ProvideCapabilities_oms_1, /* Optional members */ - 0, 20, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_OTDOA_ProvideCapabilities = { - "OTDOA-ProvideCapabilities", - "OTDOA-ProvideCapabilities", - &asn_OP_SEQUENCE, - asn_DEF_OTDOA_ProvideCapabilities_tags_1, - sizeof(asn_DEF_OTDOA_ProvideCapabilities_tags_1) - /sizeof(asn_DEF_OTDOA_ProvideCapabilities_tags_1[0]), /* 1 */ - asn_DEF_OTDOA_ProvideCapabilities_tags_1, /* Same as above */ - sizeof(asn_DEF_OTDOA_ProvideCapabilities_tags_1) - /sizeof(asn_DEF_OTDOA_ProvideCapabilities_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_OTDOA_ProvideCapabilities_1, - 21, /* Elements count */ - &asn_SPC_OTDOA_ProvideCapabilities_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/OTDOA-ProvideLocationInformation.c b/asn.1/generated/OTDOA-ProvideLocationInformation.c deleted file mode 100644 index ccb57ed2..00000000 --- a/asn.1/generated/OTDOA-ProvideLocationInformation.c +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "OTDOA-ProvideLocationInformation.h" - -static asn_TYPE_member_t asn_MBR_ext1_5[] = { - { ATF_POINTER, 1, offsetof(struct OTDOA_ProvideLocationInformation__ext1, otdoaSignalMeasurementInformation_NB_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "otdoaSignalMeasurementInformation-NB-r14" - }, -}; -static const int asn_MAP_ext1_oms_5[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* otdoaSignalMeasurementInformation-NB-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { - sizeof(struct OTDOA_ProvideLocationInformation__ext1), - offsetof(struct OTDOA_ProvideLocationInformation__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_5, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_5, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_5 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_5, - sizeof(asn_DEF_ext1_tags_5) - /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_5, /* Same as above */ - sizeof(asn_DEF_ext1_tags_5) - /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_5, - 1, /* Elements count */ - &asn_SPC_ext1_specs_5 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_OTDOA_ProvideLocationInformation_1[] = { - { ATF_POINTER, 3, offsetof(struct OTDOA_ProvideLocationInformation, otdoaSignalMeasurementInformation), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_SignalMeasurementInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "otdoaSignalMeasurementInformation" - }, - { ATF_POINTER, 2, offsetof(struct OTDOA_ProvideLocationInformation, otdoa_Error), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_OTDOA_Error, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "otdoa-Error" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_ProvideLocationInformation, ext1), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_ext1_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_OTDOA_ProvideLocationInformation_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_OTDOA_ProvideLocationInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_OTDOA_ProvideLocationInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* otdoaSignalMeasurementInformation */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* otdoa-Error */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_OTDOA_ProvideLocationInformation_specs_1 = { - sizeof(struct OTDOA_ProvideLocationInformation), - offsetof(struct OTDOA_ProvideLocationInformation, _asn_ctx), - asn_MAP_OTDOA_ProvideLocationInformation_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_OTDOA_ProvideLocationInformation_oms_1, /* Optional members */ - 2, 1, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_OTDOA_ProvideLocationInformation = { - "OTDOA-ProvideLocationInformation", - "OTDOA-ProvideLocationInformation", - &asn_OP_SEQUENCE, - asn_DEF_OTDOA_ProvideLocationInformation_tags_1, - sizeof(asn_DEF_OTDOA_ProvideLocationInformation_tags_1) - /sizeof(asn_DEF_OTDOA_ProvideLocationInformation_tags_1[0]), /* 1 */ - asn_DEF_OTDOA_ProvideLocationInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_OTDOA_ProvideLocationInformation_tags_1) - /sizeof(asn_DEF_OTDOA_ProvideLocationInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_OTDOA_ProvideLocationInformation_1, - 3, /* Elements count */ - &asn_SPC_OTDOA_ProvideLocationInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/OTDOA-ReferenceCellInfo.c b/asn.1/generated/OTDOA-ReferenceCellInfo.c deleted file mode 100644 index ac3287c8..00000000 --- a/asn.1/generated/OTDOA-ReferenceCellInfo.c +++ /dev/null @@ -1,763 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "OTDOA-ReferenceCellInfo.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_tpId_r14_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_addPRSconfigRef_r14_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 2)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nr_LTE_SFN_Offset_r15_constraint_33(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nr_LTE_fineTiming_Offset_r15_constraint_35(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 19)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_physCellId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 503)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_antennaPortConfig_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_cpLength_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_cpLengthCRS_r14_constr_19 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_dlBandwidth_r14_constr_24 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_addPRSconfigRef_r14_constr_31 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_tpId_r14_constr_18 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_addPRSconfigRef_r14_constr_31 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_LTE_SFN_Offset_r15_constr_34 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nr_LTE_fineTiming_Offset_r15_constr_37 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_physCellId_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_antennaPortConfig_value2enum_5[] = { - { 0, 11, "ports1-or-2" }, - { 1, 6, "ports4" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_antennaPortConfig_enum2value_5[] = { - 0, /* ports1-or-2(0) */ - 1 /* ports4(1) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_antennaPortConfig_specs_5 = { - asn_MAP_antennaPortConfig_value2enum_5, /* "tag" => N; sorted by tag */ - asn_MAP_antennaPortConfig_enum2value_5, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_antennaPortConfig_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_antennaPortConfig_5 = { - "antennaPortConfig", - "antennaPortConfig", - &asn_OP_NativeEnumerated, - asn_DEF_antennaPortConfig_tags_5, - sizeof(asn_DEF_antennaPortConfig_tags_5) - /sizeof(asn_DEF_antennaPortConfig_tags_5[0]) - 1, /* 1 */ - asn_DEF_antennaPortConfig_tags_5, /* Same as above */ - sizeof(asn_DEF_antennaPortConfig_tags_5) - /sizeof(asn_DEF_antennaPortConfig_tags_5[0]), /* 2 */ - { 0, &asn_PER_type_antennaPortConfig_constr_5, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_antennaPortConfig_specs_5 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_cpLength_value2enum_9[] = { - { 0, 6, "normal" }, - { 1, 8, "extended" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cpLength_enum2value_9[] = { - 1, /* extended(1) */ - 0 /* normal(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cpLength_specs_9 = { - asn_MAP_cpLength_value2enum_9, /* "tag" => N; sorted by tag */ - asn_MAP_cpLength_enum2value_9, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cpLength_tags_9[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cpLength_9 = { - "cpLength", - "cpLength", - &asn_OP_NativeEnumerated, - asn_DEF_cpLength_tags_9, - sizeof(asn_DEF_cpLength_tags_9) - /sizeof(asn_DEF_cpLength_tags_9[0]) - 1, /* 1 */ - asn_DEF_cpLength_tags_9, /* Same as above */ - sizeof(asn_DEF_cpLength_tags_9) - /sizeof(asn_DEF_cpLength_tags_9[0]), /* 2 */ - { 0, &asn_PER_type_cpLength_constr_9, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cpLength_specs_9 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_15[] = { - { ATF_POINTER, 1, offsetof(struct OTDOA_ReferenceCellInfo__ext1, earfcnRef_v9a0), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueEUTRA_v9a0, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "earfcnRef-v9a0" - }, -}; -static const int asn_MAP_ext1_oms_15[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_15[] = { - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_15[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* earfcnRef-v9a0 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_15 = { - sizeof(struct OTDOA_ReferenceCellInfo__ext1), - offsetof(struct OTDOA_ReferenceCellInfo__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_15, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_15, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_15 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_15, - sizeof(asn_DEF_ext1_tags_15) - /sizeof(asn_DEF_ext1_tags_15[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_15, /* Same as above */ - sizeof(asn_DEF_ext1_tags_15) - /sizeof(asn_DEF_ext1_tags_15[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_15, - 1, /* Elements count */ - &asn_SPC_ext1_specs_15 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_cpLengthCRS_r14_value2enum_19[] = { - { 0, 6, "normal" }, - { 1, 8, "extended" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cpLengthCRS_r14_enum2value_19[] = { - 1, /* extended(1) */ - 0 /* normal(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cpLengthCRS_r14_specs_19 = { - asn_MAP_cpLengthCRS_r14_value2enum_19, /* "tag" => N; sorted by tag */ - asn_MAP_cpLengthCRS_r14_enum2value_19, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cpLengthCRS_r14_tags_19[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cpLengthCRS_r14_19 = { - "cpLengthCRS-r14", - "cpLengthCRS-r14", - &asn_OP_NativeEnumerated, - asn_DEF_cpLengthCRS_r14_tags_19, - sizeof(asn_DEF_cpLengthCRS_r14_tags_19) - /sizeof(asn_DEF_cpLengthCRS_r14_tags_19[0]) - 1, /* 1 */ - asn_DEF_cpLengthCRS_r14_tags_19, /* Same as above */ - sizeof(asn_DEF_cpLengthCRS_r14_tags_19) - /sizeof(asn_DEF_cpLengthCRS_r14_tags_19[0]), /* 2 */ - { 0, &asn_PER_type_cpLengthCRS_r14_constr_19, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cpLengthCRS_r14_specs_19 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_dlBandwidth_r14_value2enum_24[] = { - { 0, 2, "n6" }, - { 1, 3, "n15" }, - { 2, 3, "n25" }, - { 3, 3, "n50" }, - { 4, 3, "n75" }, - { 5, 4, "n100" } -}; -static const unsigned int asn_MAP_dlBandwidth_r14_enum2value_24[] = { - 5, /* n100(5) */ - 1, /* n15(1) */ - 2, /* n25(2) */ - 3, /* n50(3) */ - 0, /* n6(0) */ - 4 /* n75(4) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_dlBandwidth_r14_specs_24 = { - asn_MAP_dlBandwidth_r14_value2enum_24, /* "tag" => N; sorted by tag */ - asn_MAP_dlBandwidth_r14_enum2value_24, /* N => "tag"; sorted by N */ - 6, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_dlBandwidth_r14_tags_24[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_dlBandwidth_r14_24 = { - "dlBandwidth-r14", - "dlBandwidth-r14", - &asn_OP_NativeEnumerated, - asn_DEF_dlBandwidth_r14_tags_24, - sizeof(asn_DEF_dlBandwidth_r14_tags_24) - /sizeof(asn_DEF_dlBandwidth_r14_tags_24[0]) - 1, /* 1 */ - asn_DEF_dlBandwidth_r14_tags_24, /* Same as above */ - sizeof(asn_DEF_dlBandwidth_r14_tags_24) - /sizeof(asn_DEF_dlBandwidth_r14_tags_24[0]), /* 2 */ - { 0, &asn_PER_type_dlBandwidth_r14_constr_24, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_dlBandwidth_r14_specs_24 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_addPRSconfigRef_r14_31[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_PRS_Info, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_addPRSconfigRef_r14_tags_31[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_addPRSconfigRef_r14_specs_31 = { - sizeof(struct OTDOA_ReferenceCellInfo__ext2__addPRSconfigRef_r14), - offsetof(struct OTDOA_ReferenceCellInfo__ext2__addPRSconfigRef_r14, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_addPRSconfigRef_r14_31 = { - "addPRSconfigRef-r14", - "addPRSconfigRef-r14", - &asn_OP_SEQUENCE_OF, - asn_DEF_addPRSconfigRef_r14_tags_31, - sizeof(asn_DEF_addPRSconfigRef_r14_tags_31) - /sizeof(asn_DEF_addPRSconfigRef_r14_tags_31[0]) - 1, /* 1 */ - asn_DEF_addPRSconfigRef_r14_tags_31, /* Same as above */ - sizeof(asn_DEF_addPRSconfigRef_r14_tags_31) - /sizeof(asn_DEF_addPRSconfigRef_r14_tags_31[0]), /* 2 */ - { 0, &asn_PER_type_addPRSconfigRef_r14_constr_31, SEQUENCE_OF_constraint }, - asn_MBR_addPRSconfigRef_r14_31, - 1, /* Single element */ - &asn_SPC_addPRSconfigRef_r14_specs_31 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_17[] = { - { ATF_POINTER, 5, offsetof(struct OTDOA_ReferenceCellInfo__ext2, tpId_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_tpId_r14_constr_18, memb_tpId_r14_constraint_17 }, - 0, 0, /* No default value */ - "tpId-r14" - }, - { ATF_POINTER, 4, offsetof(struct OTDOA_ReferenceCellInfo__ext2, cpLengthCRS_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cpLengthCRS_r14_19, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cpLengthCRS-r14" - }, - { ATF_POINTER, 3, offsetof(struct OTDOA_ReferenceCellInfo__ext2, sameMBSFNconfigRef_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sameMBSFNconfigRef-r14" - }, - { ATF_POINTER, 2, offsetof(struct OTDOA_ReferenceCellInfo__ext2, dlBandwidth_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_dlBandwidth_r14_24, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dlBandwidth-r14" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_ReferenceCellInfo__ext2, addPRSconfigRef_r14), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - 0, - &asn_DEF_addPRSconfigRef_r14_31, - 0, - { 0, &asn_PER_memb_addPRSconfigRef_r14_constr_31, memb_addPRSconfigRef_r14_constraint_17 }, - 0, 0, /* No default value */ - "addPRSconfigRef-r14" - }, -}; -static const int asn_MAP_ext2_oms_17[] = { 0, 1, 2, 3, 4 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_17[] = { - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_17[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tpId-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cpLengthCRS-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sameMBSFNconfigRef-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* dlBandwidth-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* addPRSconfigRef-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_17 = { - sizeof(struct OTDOA_ReferenceCellInfo__ext2), - offsetof(struct OTDOA_ReferenceCellInfo__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_17, - 5, /* Count of tags in the map */ - asn_MAP_ext2_oms_17, /* Optional members */ - 5, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_17 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_17, - sizeof(asn_DEF_ext2_tags_17) - /sizeof(asn_DEF_ext2_tags_17[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_17, /* Same as above */ - sizeof(asn_DEF_ext2_tags_17) - /sizeof(asn_DEF_ext2_tags_17[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_17, - 5, /* Elements count */ - &asn_SPC_ext2_specs_17 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext3_33[] = { - { ATF_POINTER, 1, offsetof(struct OTDOA_ReferenceCellInfo__ext3, nr_LTE_SFN_Offset_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_LTE_SFN_Offset_r15_constr_34, memb_nr_LTE_SFN_Offset_r15_constraint_33 }, - 0, 0, /* No default value */ - "nr-LTE-SFN-Offset-r15" - }, -}; -static const int asn_MAP_ext3_oms_33[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext3_tags_33[] = { - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_33[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-LTE-SFN-Offset-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_33 = { - sizeof(struct OTDOA_ReferenceCellInfo__ext3), - offsetof(struct OTDOA_ReferenceCellInfo__ext3, _asn_ctx), - asn_MAP_ext3_tag2el_33, - 1, /* Count of tags in the map */ - asn_MAP_ext3_oms_33, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext3_33 = { - "ext3", - "ext3", - &asn_OP_SEQUENCE, - asn_DEF_ext3_tags_33, - sizeof(asn_DEF_ext3_tags_33) - /sizeof(asn_DEF_ext3_tags_33[0]) - 1, /* 1 */ - asn_DEF_ext3_tags_33, /* Same as above */ - sizeof(asn_DEF_ext3_tags_33) - /sizeof(asn_DEF_ext3_tags_33[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext3_33, - 1, /* Elements count */ - &asn_SPC_ext3_specs_33 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext4_35[] = { - { ATF_POINTER, 2, offsetof(struct OTDOA_ReferenceCellInfo__ext4, tdd_config_v1520), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TDD_Config_v1520, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tdd-config-v1520" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_ReferenceCellInfo__ext4, nr_LTE_fineTiming_Offset_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nr_LTE_fineTiming_Offset_r15_constr_37, memb_nr_LTE_fineTiming_Offset_r15_constraint_35 }, - 0, 0, /* No default value */ - "nr-LTE-fineTiming-Offset-r15" - }, -}; -static const int asn_MAP_ext4_oms_35[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext4_tags_35[] = { - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext4_tag2el_35[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tdd-config-v1520 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-LTE-fineTiming-Offset-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext4_specs_35 = { - sizeof(struct OTDOA_ReferenceCellInfo__ext4), - offsetof(struct OTDOA_ReferenceCellInfo__ext4, _asn_ctx), - asn_MAP_ext4_tag2el_35, - 2, /* Count of tags in the map */ - asn_MAP_ext4_oms_35, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext4_35 = { - "ext4", - "ext4", - &asn_OP_SEQUENCE, - asn_DEF_ext4_tags_35, - sizeof(asn_DEF_ext4_tags_35) - /sizeof(asn_DEF_ext4_tags_35[0]) - 1, /* 1 */ - asn_DEF_ext4_tags_35, /* Same as above */ - sizeof(asn_DEF_ext4_tags_35) - /sizeof(asn_DEF_ext4_tags_35[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext4_35, - 2, /* Elements count */ - &asn_SPC_ext4_specs_35 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_OTDOA_ReferenceCellInfo_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_ReferenceCellInfo, physCellId), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_physCellId_constr_2, memb_physCellId_constraint_1 }, - 0, 0, /* No default value */ - "physCellId" - }, - { ATF_POINTER, 3, offsetof(struct OTDOA_ReferenceCellInfo, cellGlobalId), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ECGI, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellGlobalId" - }, - { ATF_POINTER, 2, offsetof(struct OTDOA_ReferenceCellInfo, earfcnRef), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueEUTRA, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "earfcnRef" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_ReferenceCellInfo, antennaPortConfig), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_antennaPortConfig_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "antennaPortConfig" - }, - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_ReferenceCellInfo, cpLength), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cpLength_9, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cpLength" - }, - { ATF_POINTER, 5, offsetof(struct OTDOA_ReferenceCellInfo, prsInfo), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PRS_Info, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "prsInfo" - }, - { ATF_POINTER, 4, offsetof(struct OTDOA_ReferenceCellInfo, ext1), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - 0, - &asn_DEF_ext1_15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 3, offsetof(struct OTDOA_ReferenceCellInfo, ext2), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - 0, - &asn_DEF_ext2_17, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, - { ATF_POINTER, 2, offsetof(struct OTDOA_ReferenceCellInfo, ext3), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - 0, - &asn_DEF_ext3_33, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext3" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_ReferenceCellInfo, ext4), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - 0, - &asn_DEF_ext4_35, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext4" - }, -}; -static const int asn_MAP_OTDOA_ReferenceCellInfo_oms_1[] = { 1, 2, 3, 5, 6, 7, 8, 9 }; -static const ber_tlv_tag_t asn_DEF_OTDOA_ReferenceCellInfo_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_OTDOA_ReferenceCellInfo_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellId */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalId */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* earfcnRef */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* antennaPortConfig */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* cpLength */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* prsInfo */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ext2 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ext3 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* ext4 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_OTDOA_ReferenceCellInfo_specs_1 = { - sizeof(struct OTDOA_ReferenceCellInfo), - offsetof(struct OTDOA_ReferenceCellInfo, _asn_ctx), - asn_MAP_OTDOA_ReferenceCellInfo_tag2el_1, - 10, /* Count of tags in the map */ - asn_MAP_OTDOA_ReferenceCellInfo_oms_1, /* Optional members */ - 4, 4, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_OTDOA_ReferenceCellInfo = { - "OTDOA-ReferenceCellInfo", - "OTDOA-ReferenceCellInfo", - &asn_OP_SEQUENCE, - asn_DEF_OTDOA_ReferenceCellInfo_tags_1, - sizeof(asn_DEF_OTDOA_ReferenceCellInfo_tags_1) - /sizeof(asn_DEF_OTDOA_ReferenceCellInfo_tags_1[0]), /* 1 */ - asn_DEF_OTDOA_ReferenceCellInfo_tags_1, /* Same as above */ - sizeof(asn_DEF_OTDOA_ReferenceCellInfo_tags_1) - /sizeof(asn_DEF_OTDOA_ReferenceCellInfo_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_OTDOA_ReferenceCellInfo_1, - 10, /* Elements count */ - &asn_SPC_OTDOA_ReferenceCellInfo_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/OTDOA-ReferenceCellInfoNB-r14.c b/asn.1/generated/OTDOA-ReferenceCellInfoNB-r14.c deleted file mode 100644 index 90399c00..00000000 --- a/asn.1/generated/OTDOA-ReferenceCellInfoNB-r14.c +++ /dev/null @@ -1,346 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "OTDOA-ReferenceCellInfoNB-r14.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_physCellIdNB_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 503)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_eutra_NumCRS_Ports_r14_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_otdoa_SIB1_NB_repetitions_r14_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_physCellIdNB_r14_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_eutra_NumCRS_Ports_r14_value2enum_6[] = { - { 0, 11, "ports1-or-2" }, - { 1, 6, "ports4" } -}; -static const unsigned int asn_MAP_eutra_NumCRS_Ports_r14_enum2value_6[] = { - 0, /* ports1-or-2(0) */ - 1 /* ports4(1) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_eutra_NumCRS_Ports_r14_specs_6 = { - asn_MAP_eutra_NumCRS_Ports_r14_value2enum_6, /* "tag" => N; sorted by tag */ - asn_MAP_eutra_NumCRS_Ports_r14_enum2value_6, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_eutra_NumCRS_Ports_r14_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_eutra_NumCRS_Ports_r14_6 = { - "eutra-NumCRS-Ports-r14", - "eutra-NumCRS-Ports-r14", - &asn_OP_NativeEnumerated, - asn_DEF_eutra_NumCRS_Ports_r14_tags_6, - sizeof(asn_DEF_eutra_NumCRS_Ports_r14_tags_6) - /sizeof(asn_DEF_eutra_NumCRS_Ports_r14_tags_6[0]) - 1, /* 1 */ - asn_DEF_eutra_NumCRS_Ports_r14_tags_6, /* Same as above */ - sizeof(asn_DEF_eutra_NumCRS_Ports_r14_tags_6) - /sizeof(asn_DEF_eutra_NumCRS_Ports_r14_tags_6[0]), /* 2 */ - { 0, &asn_PER_type_eutra_NumCRS_Ports_r14_constr_6, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_eutra_NumCRS_Ports_r14_specs_6 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_otdoa_SIB1_NB_repetitions_r14_value2enum_9[] = { - { 0, 2, "r4" }, - { 1, 2, "r8" }, - { 2, 3, "r16" } -}; -static const unsigned int asn_MAP_otdoa_SIB1_NB_repetitions_r14_enum2value_9[] = { - 2, /* r16(2) */ - 0, /* r4(0) */ - 1 /* r8(1) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_otdoa_SIB1_NB_repetitions_r14_specs_9 = { - asn_MAP_otdoa_SIB1_NB_repetitions_r14_value2enum_9, /* "tag" => N; sorted by tag */ - asn_MAP_otdoa_SIB1_NB_repetitions_r14_enum2value_9, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_9[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_otdoa_SIB1_NB_repetitions_r14_9 = { - "otdoa-SIB1-NB-repetitions-r14", - "otdoa-SIB1-NB-repetitions-r14", - &asn_OP_NativeEnumerated, - asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_9, - sizeof(asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_9) - /sizeof(asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_9[0]) - 1, /* 1 */ - asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_9, /* Same as above */ - sizeof(asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_9) - /sizeof(asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_9[0]), /* 2 */ - { 0, &asn_PER_type_otdoa_SIB1_NB_repetitions_r14_constr_9, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_otdoa_SIB1_NB_repetitions_r14_specs_9 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_15[] = { - { ATF_POINTER, 1, offsetof(struct OTDOA_ReferenceCellInfoNB_r14__ext1, nprsInfo_Type2_v1470), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PRS_Info_NB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nprsInfo-Type2-v1470" - }, -}; -static const int asn_MAP_ext1_oms_15[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_15[] = { - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_15[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nprsInfo-Type2-v1470 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_15 = { - sizeof(struct OTDOA_ReferenceCellInfoNB_r14__ext1), - offsetof(struct OTDOA_ReferenceCellInfoNB_r14__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_15, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_15, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_15 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_15, - sizeof(asn_DEF_ext1_tags_15) - /sizeof(asn_DEF_ext1_tags_15[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_15, /* Same as above */ - sizeof(asn_DEF_ext1_tags_15) - /sizeof(asn_DEF_ext1_tags_15[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_15, - 1, /* Elements count */ - &asn_SPC_ext1_specs_15 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_17[] = { - { ATF_POINTER, 1, offsetof(struct OTDOA_ReferenceCellInfoNB_r14__ext2, tdd_config_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TDD_Config_v1520, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tdd-config-r15" - }, -}; -static const int asn_MAP_ext2_oms_17[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_17[] = { - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_17[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* tdd-config-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_17 = { - sizeof(struct OTDOA_ReferenceCellInfoNB_r14__ext2), - offsetof(struct OTDOA_ReferenceCellInfoNB_r14__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_17, - 1, /* Count of tags in the map */ - asn_MAP_ext2_oms_17, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_17 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_17, - sizeof(asn_DEF_ext2_tags_17) - /sizeof(asn_DEF_ext2_tags_17[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_17, /* Same as above */ - sizeof(asn_DEF_ext2_tags_17) - /sizeof(asn_DEF_ext2_tags_17[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_17, - 1, /* Elements count */ - &asn_SPC_ext2_specs_17 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_OTDOA_ReferenceCellInfoNB_r14_1[] = { - { ATF_POINTER, 9, offsetof(struct OTDOA_ReferenceCellInfoNB_r14, physCellIdNB_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_physCellIdNB_r14_constr_2, memb_physCellIdNB_r14_constraint_1 }, - 0, 0, /* No default value */ - "physCellIdNB-r14" - }, - { ATF_POINTER, 8, offsetof(struct OTDOA_ReferenceCellInfoNB_r14, cellGlobalIdNB_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ECGI, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellGlobalIdNB-r14" - }, - { ATF_POINTER, 7, offsetof(struct OTDOA_ReferenceCellInfoNB_r14, carrierFreqRef_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CarrierFreq_NB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "carrierFreqRef-r14" - }, - { ATF_POINTER, 6, offsetof(struct OTDOA_ReferenceCellInfoNB_r14, earfcn_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueEUTRA_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "earfcn-r14" - }, - { ATF_POINTER, 5, offsetof(struct OTDOA_ReferenceCellInfoNB_r14, eutra_NumCRS_Ports_r14), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_eutra_NumCRS_Ports_r14_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "eutra-NumCRS-Ports-r14" - }, - { ATF_POINTER, 4, offsetof(struct OTDOA_ReferenceCellInfoNB_r14, otdoa_SIB1_NB_repetitions_r14), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_otdoa_SIB1_NB_repetitions_r14_9, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "otdoa-SIB1-NB-repetitions-r14" - }, - { ATF_POINTER, 3, offsetof(struct OTDOA_ReferenceCellInfoNB_r14, nprsInfo_r14), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PRS_Info_NB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nprsInfo-r14" - }, - { ATF_POINTER, 2, offsetof(struct OTDOA_ReferenceCellInfoNB_r14, ext1), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - 0, - &asn_DEF_ext1_15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_ReferenceCellInfoNB_r14, ext2), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - 0, - &asn_DEF_ext2_17, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_OTDOA_ReferenceCellInfoNB_r14_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 }; -static const ber_tlv_tag_t asn_DEF_OTDOA_ReferenceCellInfoNB_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_OTDOA_ReferenceCellInfoNB_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellIdNB-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalIdNB-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* carrierFreqRef-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* earfcn-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* eutra-NumCRS-Ports-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* otdoa-SIB1-NB-repetitions-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* nprsInfo-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_OTDOA_ReferenceCellInfoNB_r14_specs_1 = { - sizeof(struct OTDOA_ReferenceCellInfoNB_r14), - offsetof(struct OTDOA_ReferenceCellInfoNB_r14, _asn_ctx), - asn_MAP_OTDOA_ReferenceCellInfoNB_r14_tag2el_1, - 9, /* Count of tags in the map */ - asn_MAP_OTDOA_ReferenceCellInfoNB_r14_oms_1, /* Optional members */ - 7, 2, /* Root/Additions */ - 7, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_OTDOA_ReferenceCellInfoNB_r14 = { - "OTDOA-ReferenceCellInfoNB-r14", - "OTDOA-ReferenceCellInfoNB-r14", - &asn_OP_SEQUENCE, - asn_DEF_OTDOA_ReferenceCellInfoNB_r14_tags_1, - sizeof(asn_DEF_OTDOA_ReferenceCellInfoNB_r14_tags_1) - /sizeof(asn_DEF_OTDOA_ReferenceCellInfoNB_r14_tags_1[0]), /* 1 */ - asn_DEF_OTDOA_ReferenceCellInfoNB_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_OTDOA_ReferenceCellInfoNB_r14_tags_1) - /sizeof(asn_DEF_OTDOA_ReferenceCellInfoNB_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_OTDOA_ReferenceCellInfoNB_r14_1, - 9, /* Elements count */ - &asn_SPC_OTDOA_ReferenceCellInfoNB_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/OTDOA-ReferenceCellInfoNB-r14.h b/asn.1/generated/OTDOA-ReferenceCellInfoNB-r14.h deleted file mode 100644 index f03cd00a..00000000 --- a/asn.1/generated/OTDOA-ReferenceCellInfoNB-r14.h +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _OTDOA_ReferenceCellInfoNB_r14_H_ -#define _OTDOA_ReferenceCellInfoNB_r14_H_ - - -#include - -/* Including external dependencies */ -#include -#include "ARFCN-ValueEUTRA-r14.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum OTDOA_ReferenceCellInfoNB_r14__eutra_NumCRS_Ports_r14 { - OTDOA_ReferenceCellInfoNB_r14__eutra_NumCRS_Ports_r14_ports1_or_2 = 0, - OTDOA_ReferenceCellInfoNB_r14__eutra_NumCRS_Ports_r14_ports4 = 1 -} e_OTDOA_ReferenceCellInfoNB_r14__eutra_NumCRS_Ports_r14; -typedef enum OTDOA_ReferenceCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14 { - OTDOA_ReferenceCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14_r4 = 0, - OTDOA_ReferenceCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14_r8 = 1, - OTDOA_ReferenceCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14_r16 = 2 -} e_OTDOA_ReferenceCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14; - -/* Forward declarations */ -struct ECGI; -struct CarrierFreq_NB_r14; -struct PRS_Info_NB_r14; -struct TDD_Config_v1520; - -/* OTDOA-ReferenceCellInfoNB-r14 */ -typedef struct OTDOA_ReferenceCellInfoNB_r14 { - long *physCellIdNB_r14 /* OPTIONAL */; - struct ECGI *cellGlobalIdNB_r14 /* OPTIONAL */; - struct CarrierFreq_NB_r14 *carrierFreqRef_r14 /* OPTIONAL */; - ARFCN_ValueEUTRA_r14_t *earfcn_r14 /* OPTIONAL */; - long *eutra_NumCRS_Ports_r14 /* OPTIONAL */; - long *otdoa_SIB1_NB_repetitions_r14 /* OPTIONAL */; - struct PRS_Info_NB_r14 *nprsInfo_r14 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct OTDOA_ReferenceCellInfoNB_r14__ext1 { - struct PRS_Info_NB_r14 *nprsInfo_Type2_v1470 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct OTDOA_ReferenceCellInfoNB_r14__ext2 { - struct TDD_Config_v1520 *tdd_config_r15 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} OTDOA_ReferenceCellInfoNB_r14_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_eutra_NumCRS_Ports_r14_6; // (Use -fall-defs-global to expose) */ -/* extern asn_TYPE_descriptor_t asn_DEF_otdoa_SIB1_NB_repetitions_r14_9; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_OTDOA_ReferenceCellInfoNB_r14; -extern asn_SEQUENCE_specifics_t asn_SPC_OTDOA_ReferenceCellInfoNB_r14_specs_1; -extern asn_TYPE_member_t asn_MBR_OTDOA_ReferenceCellInfoNB_r14_1[9]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "ECGI.h" -#include "CarrierFreq-NB-r14.h" -#include "PRS-Info-NB-r14.h" -#include "TDD-Config-v1520.h" - -#endif /* _OTDOA_ReferenceCellInfoNB_r14_H_ */ -#include diff --git a/asn.1/generated/OTDOA-RequestAssistanceData.c b/asn.1/generated/OTDOA-RequestAssistanceData.c deleted file mode 100644 index 43769222..00000000 --- a/asn.1/generated/OTDOA-RequestAssistanceData.c +++ /dev/null @@ -1,258 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "OTDOA-RequestAssistanceData.h" - -static int -memb_adType_r14_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nrPhysCellId_r15_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1007)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_physCellId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 503)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_adType_r14_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nrPhysCellId_r15_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1007 } /* (0..1007) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_physCellId_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_ext1_4[] = { - { ATF_POINTER, 1, offsetof(struct OTDOA_RequestAssistanceData__ext1, adType_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_adType_r14_constr_5, memb_adType_r14_constraint_4 }, - 0, 0, /* No default value */ - "adType-r14" - }, -}; -static const int asn_MAP_ext1_oms_4[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* adType-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { - sizeof(struct OTDOA_RequestAssistanceData__ext1), - offsetof(struct OTDOA_RequestAssistanceData__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_4, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_4, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_4 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_4, - sizeof(asn_DEF_ext1_tags_4) - /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_4, /* Same as above */ - sizeof(asn_DEF_ext1_tags_4) - /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_4, - 1, /* Elements count */ - &asn_SPC_ext1_specs_4 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_8[] = { - { ATF_POINTER, 1, offsetof(struct OTDOA_RequestAssistanceData__ext2, nrPhysCellId_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nrPhysCellId_r15_constr_9, memb_nrPhysCellId_r15_constraint_8 }, - 0, 0, /* No default value */ - "nrPhysCellId-r15" - }, -}; -static const int asn_MAP_ext2_oms_8[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nrPhysCellId-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_8 = { - sizeof(struct OTDOA_RequestAssistanceData__ext2), - offsetof(struct OTDOA_RequestAssistanceData__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_8, - 1, /* Count of tags in the map */ - asn_MAP_ext2_oms_8, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_8 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_8, - sizeof(asn_DEF_ext2_tags_8) - /sizeof(asn_DEF_ext2_tags_8[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_8, /* Same as above */ - sizeof(asn_DEF_ext2_tags_8) - /sizeof(asn_DEF_ext2_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_8, - 1, /* Elements count */ - &asn_SPC_ext2_specs_8 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_OTDOA_RequestAssistanceData_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_RequestAssistanceData, physCellId), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_physCellId_constr_2, memb_physCellId_constraint_1 }, - 0, 0, /* No default value */ - "physCellId" - }, - { ATF_POINTER, 2, offsetof(struct OTDOA_RequestAssistanceData, ext1), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_ext1_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_RequestAssistanceData, ext2), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_ext2_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_OTDOA_RequestAssistanceData_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_OTDOA_RequestAssistanceData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_OTDOA_RequestAssistanceData_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellId */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_OTDOA_RequestAssistanceData_specs_1 = { - sizeof(struct OTDOA_RequestAssistanceData), - offsetof(struct OTDOA_RequestAssistanceData, _asn_ctx), - asn_MAP_OTDOA_RequestAssistanceData_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_OTDOA_RequestAssistanceData_oms_1, /* Optional members */ - 0, 2, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_OTDOA_RequestAssistanceData = { - "OTDOA-RequestAssistanceData", - "OTDOA-RequestAssistanceData", - &asn_OP_SEQUENCE, - asn_DEF_OTDOA_RequestAssistanceData_tags_1, - sizeof(asn_DEF_OTDOA_RequestAssistanceData_tags_1) - /sizeof(asn_DEF_OTDOA_RequestAssistanceData_tags_1[0]), /* 1 */ - asn_DEF_OTDOA_RequestAssistanceData_tags_1, /* Same as above */ - sizeof(asn_DEF_OTDOA_RequestAssistanceData_tags_1) - /sizeof(asn_DEF_OTDOA_RequestAssistanceData_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_OTDOA_RequestAssistanceData_1, - 3, /* Elements count */ - &asn_SPC_OTDOA_RequestAssistanceData_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/OTDOA-RequestCapabilities.c b/asn.1/generated/OTDOA-RequestCapabilities.c deleted file mode 100644 index 419bfba9..00000000 --- a/asn.1/generated/OTDOA-RequestCapabilities.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "OTDOA-RequestCapabilities.h" - -static const ber_tlv_tag_t asn_DEF_OTDOA_RequestCapabilities_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_OTDOA_RequestCapabilities_specs_1 = { - sizeof(struct OTDOA_RequestCapabilities), - offsetof(struct OTDOA_RequestCapabilities, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_OTDOA_RequestCapabilities = { - "OTDOA-RequestCapabilities", - "OTDOA-RequestCapabilities", - &asn_OP_SEQUENCE, - asn_DEF_OTDOA_RequestCapabilities_tags_1, - sizeof(asn_DEF_OTDOA_RequestCapabilities_tags_1) - /sizeof(asn_DEF_OTDOA_RequestCapabilities_tags_1[0]), /* 1 */ - asn_DEF_OTDOA_RequestCapabilities_tags_1, /* Same as above */ - sizeof(asn_DEF_OTDOA_RequestCapabilities_tags_1) - /sizeof(asn_DEF_OTDOA_RequestCapabilities_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_OTDOA_RequestCapabilities_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/OTDOA-RequestLocationInformation.c b/asn.1/generated/OTDOA-RequestLocationInformation.c deleted file mode 100644 index 57c6afd1..00000000 --- a/asn.1/generated/OTDOA-RequestLocationInformation.c +++ /dev/null @@ -1,290 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "OTDOA-RequestLocationInformation.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_maxNoOfRSTDmeas_r14_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 32)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_multipathRSTD_r14_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_maxNoOfRSTDmeas_r14_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (1..32) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_motionMeasurements_r15_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_multipathRSTD_r14_value2enum_5[] = { - { 0, 9, "requested" } -}; -static const unsigned int asn_MAP_multipathRSTD_r14_enum2value_5[] = { - 0 /* requested(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_multipathRSTD_r14_specs_5 = { - asn_MAP_multipathRSTD_r14_value2enum_5, /* "tag" => N; sorted by tag */ - asn_MAP_multipathRSTD_r14_enum2value_5, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_multipathRSTD_r14_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_multipathRSTD_r14_5 = { - "multipathRSTD-r14", - "multipathRSTD-r14", - &asn_OP_NativeEnumerated, - asn_DEF_multipathRSTD_r14_tags_5, - sizeof(asn_DEF_multipathRSTD_r14_tags_5) - /sizeof(asn_DEF_multipathRSTD_r14_tags_5[0]) - 1, /* 1 */ - asn_DEF_multipathRSTD_r14_tags_5, /* Same as above */ - sizeof(asn_DEF_multipathRSTD_r14_tags_5) - /sizeof(asn_DEF_multipathRSTD_r14_tags_5[0]), /* 2 */ - { 0, &asn_PER_type_multipathRSTD_r14_constr_5, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_multipathRSTD_r14_specs_5 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_4[] = { - { ATF_POINTER, 2, offsetof(struct OTDOA_RequestLocationInformation__ext1, multipathRSTD_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_multipathRSTD_r14_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "multipathRSTD-r14" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_RequestLocationInformation__ext1, maxNoOfRSTDmeas_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_maxNoOfRSTDmeas_r14_constr_7, memb_maxNoOfRSTDmeas_r14_constraint_4 }, - 0, 0, /* No default value */ - "maxNoOfRSTDmeas-r14" - }, -}; -static const int asn_MAP_ext1_oms_4[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* multipathRSTD-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* maxNoOfRSTDmeas-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { - sizeof(struct OTDOA_RequestLocationInformation__ext1), - offsetof(struct OTDOA_RequestLocationInformation__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_4, - 2, /* Count of tags in the map */ - asn_MAP_ext1_oms_4, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_4 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_4, - sizeof(asn_DEF_ext1_tags_4) - /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_4, /* Same as above */ - sizeof(asn_DEF_ext1_tags_4) - /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_4, - 2, /* Elements count */ - &asn_SPC_ext1_specs_4 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_motionMeasurements_r15_value2enum_9[] = { - { 0, 9, "requested" } -}; -static const unsigned int asn_MAP_motionMeasurements_r15_enum2value_9[] = { - 0 /* requested(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_motionMeasurements_r15_specs_9 = { - asn_MAP_motionMeasurements_r15_value2enum_9, /* "tag" => N; sorted by tag */ - asn_MAP_motionMeasurements_r15_enum2value_9, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_motionMeasurements_r15_tags_9[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_motionMeasurements_r15_9 = { - "motionMeasurements-r15", - "motionMeasurements-r15", - &asn_OP_NativeEnumerated, - asn_DEF_motionMeasurements_r15_tags_9, - sizeof(asn_DEF_motionMeasurements_r15_tags_9) - /sizeof(asn_DEF_motionMeasurements_r15_tags_9[0]) - 1, /* 1 */ - asn_DEF_motionMeasurements_r15_tags_9, /* Same as above */ - sizeof(asn_DEF_motionMeasurements_r15_tags_9) - /sizeof(asn_DEF_motionMeasurements_r15_tags_9[0]), /* 2 */ - { 0, &asn_PER_type_motionMeasurements_r15_constr_9, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_motionMeasurements_r15_specs_9 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_8[] = { - { ATF_POINTER, 1, offsetof(struct OTDOA_RequestLocationInformation__ext2, motionMeasurements_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_motionMeasurements_r15_9, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "motionMeasurements-r15" - }, -}; -static const int asn_MAP_ext2_oms_8[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* motionMeasurements-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_8 = { - sizeof(struct OTDOA_RequestLocationInformation__ext2), - offsetof(struct OTDOA_RequestLocationInformation__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_8, - 1, /* Count of tags in the map */ - asn_MAP_ext2_oms_8, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_8 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_8, - sizeof(asn_DEF_ext2_tags_8) - /sizeof(asn_DEF_ext2_tags_8[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_8, /* Same as above */ - sizeof(asn_DEF_ext2_tags_8) - /sizeof(asn_DEF_ext2_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_8, - 1, /* Elements count */ - &asn_SPC_ext2_specs_8 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_OTDOA_RequestLocationInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_RequestLocationInformation, assistanceAvailability), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "assistanceAvailability" - }, - { ATF_POINTER, 2, offsetof(struct OTDOA_RequestLocationInformation, ext1), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_ext1_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_RequestLocationInformation, ext2), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_ext2_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_OTDOA_RequestLocationInformation_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_OTDOA_RequestLocationInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_OTDOA_RequestLocationInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* assistanceAvailability */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_OTDOA_RequestLocationInformation_specs_1 = { - sizeof(struct OTDOA_RequestLocationInformation), - offsetof(struct OTDOA_RequestLocationInformation, _asn_ctx), - asn_MAP_OTDOA_RequestLocationInformation_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_OTDOA_RequestLocationInformation_oms_1, /* Optional members */ - 0, 2, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_OTDOA_RequestLocationInformation = { - "OTDOA-RequestLocationInformation", - "OTDOA-RequestLocationInformation", - &asn_OP_SEQUENCE, - asn_DEF_OTDOA_RequestLocationInformation_tags_1, - sizeof(asn_DEF_OTDOA_RequestLocationInformation_tags_1) - /sizeof(asn_DEF_OTDOA_RequestLocationInformation_tags_1[0]), /* 1 */ - asn_DEF_OTDOA_RequestLocationInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_OTDOA_RequestLocationInformation_tags_1) - /sizeof(asn_DEF_OTDOA_RequestLocationInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_OTDOA_RequestLocationInformation_1, - 3, /* Elements count */ - &asn_SPC_OTDOA_RequestLocationInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/OTDOA-SignalMeasurementInformation-NB-r14.c b/asn.1/generated/OTDOA-SignalMeasurementInformation-NB-r14.c deleted file mode 100644 index 8d7593f2..00000000 --- a/asn.1/generated/OTDOA-SignalMeasurementInformation-NB-r14.c +++ /dev/null @@ -1,354 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "OTDOA-SignalMeasurementInformation-NB-r14.h" - -static int -memb_systemFrameNumber_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 10)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_physCellIdRef_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 503)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_tpIdRef_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_prsIdRef_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nprsIdRef_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_hyperSFN_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 10)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_systemFrameNumber_r14_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_physCellIdRef_r14_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_tpIdRef_r14_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_prsIdRef_r14_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nprsIdRef_r14_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_hyperSFN_r14_constr_13 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_OTDOA_SignalMeasurementInformation_NB_r14_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, systemFrameNumber_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_systemFrameNumber_r14_constr_2, memb_systemFrameNumber_r14_constraint_1 }, - 0, 0, /* No default value */ - "systemFrameNumber-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, physCellIdRef_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_physCellIdRef_r14_constr_3, memb_physCellIdRef_r14_constraint_1 }, - 0, 0, /* No default value */ - "physCellIdRef-r14" - }, - { ATF_POINTER, 3, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, cellGlobalIdRef_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ECGI, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellGlobalIdRef-r14" - }, - { ATF_POINTER, 2, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, earfcnRef_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueEUTRA_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "earfcnRef-r14" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, referenceQuality_r14), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_MeasQuality, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceQuality-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, neighbourMeasurementList_r14), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NeighbourMeasurementList_NB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "neighbourMeasurementList-r14" - }, - { ATF_POINTER, 6, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, tpIdRef_r14), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_tpIdRef_r14_constr_8, memb_tpIdRef_r14_constraint_1 }, - 0, 0, /* No default value */ - "tpIdRef-r14" - }, - { ATF_POINTER, 5, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, prsIdRef_r14), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_prsIdRef_r14_constr_9, memb_prsIdRef_r14_constraint_1 }, - 0, 0, /* No default value */ - "prsIdRef-r14" - }, - { ATF_POINTER, 4, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, additionalPathsRef_r14), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AdditionalPathList_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "additionalPathsRef-r14" - }, - { ATF_POINTER, 3, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, nprsIdRef_r14), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nprsIdRef_r14_constr_11, memb_nprsIdRef_r14_constraint_1 }, - 0, 0, /* No default value */ - "nprsIdRef-r14" - }, - { ATF_POINTER, 2, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, carrierFreqOffsetNB_Ref_r14), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CarrierFreqOffsetNB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "carrierFreqOffsetNB-Ref-r14" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, hyperSFN_r14), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_hyperSFN_r14_constr_13, memb_hyperSFN_r14_constraint_1 }, - 0, 0, /* No default value */ - "hyperSFN-r14" - }, -}; -static const int asn_MAP_OTDOA_SignalMeasurementInformation_NB_r14_oms_1[] = { 2, 3, 4, 6, 7, 8, 9, 10, 11 }; -static const ber_tlv_tag_t asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_OTDOA_SignalMeasurementInformation_NB_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* systemFrameNumber-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* physCellIdRef-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cellGlobalIdRef-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* earfcnRef-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* referenceQuality-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* neighbourMeasurementList-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* tpIdRef-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* prsIdRef-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* additionalPathsRef-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* nprsIdRef-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* carrierFreqOffsetNB-Ref-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* hyperSFN-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_OTDOA_SignalMeasurementInformation_NB_r14_specs_1 = { - sizeof(struct OTDOA_SignalMeasurementInformation_NB_r14), - offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, _asn_ctx), - asn_MAP_OTDOA_SignalMeasurementInformation_NB_r14_tag2el_1, - 12, /* Count of tags in the map */ - asn_MAP_OTDOA_SignalMeasurementInformation_NB_r14_oms_1, /* Optional members */ - 9, 0, /* Root/Additions */ - 12, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14 = { - "OTDOA-SignalMeasurementInformation-NB-r14", - "OTDOA-SignalMeasurementInformation-NB-r14", - &asn_OP_SEQUENCE, - asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14_tags_1, - sizeof(asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14_tags_1) - /sizeof(asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14_tags_1[0]), /* 1 */ - asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14_tags_1) - /sizeof(asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_OTDOA_SignalMeasurementInformation_NB_r14_1, - 12, /* Elements count */ - &asn_SPC_OTDOA_SignalMeasurementInformation_NB_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/OTDOA-SignalMeasurementInformation-NB-r14.h b/asn.1/generated/OTDOA-SignalMeasurementInformation-NB-r14.h deleted file mode 100644 index 7e8f49bd..00000000 --- a/asn.1/generated/OTDOA-SignalMeasurementInformation-NB-r14.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _OTDOA_SignalMeasurementInformation_NB_r14_H_ -#define _OTDOA_SignalMeasurementInformation_NB_r14_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include "ARFCN-ValueEUTRA-r14.h" -#include "NeighbourMeasurementList-NB-r14.h" -#include "CarrierFreqOffsetNB-r14.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct ECGI; -struct OTDOA_MeasQuality; -struct AdditionalPathList_r14; - -/* OTDOA-SignalMeasurementInformation-NB-r14 */ -typedef struct OTDOA_SignalMeasurementInformation_NB_r14 { - BIT_STRING_t systemFrameNumber_r14; - long physCellIdRef_r14; - struct ECGI *cellGlobalIdRef_r14 /* OPTIONAL */; - ARFCN_ValueEUTRA_r14_t *earfcnRef_r14 /* OPTIONAL */; - struct OTDOA_MeasQuality *referenceQuality_r14 /* OPTIONAL */; - NeighbourMeasurementList_NB_r14_t neighbourMeasurementList_r14; - long *tpIdRef_r14 /* OPTIONAL */; - long *prsIdRef_r14 /* OPTIONAL */; - struct AdditionalPathList_r14 *additionalPathsRef_r14 /* OPTIONAL */; - long *nprsIdRef_r14 /* OPTIONAL */; - CarrierFreqOffsetNB_r14_t *carrierFreqOffsetNB_Ref_r14 /* OPTIONAL */; - BIT_STRING_t *hyperSFN_r14 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} OTDOA_SignalMeasurementInformation_NB_r14_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14; -extern asn_SEQUENCE_specifics_t asn_SPC_OTDOA_SignalMeasurementInformation_NB_r14_specs_1; -extern asn_TYPE_member_t asn_MBR_OTDOA_SignalMeasurementInformation_NB_r14_1[12]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "ECGI.h" -#include "OTDOA-MeasQuality.h" -#include "AdditionalPathList-r14.h" - -#endif /* _OTDOA_SignalMeasurementInformation_NB_r14_H_ */ -#include diff --git a/asn.1/generated/OTDOA-SignalMeasurementInformation.c b/asn.1/generated/OTDOA-SignalMeasurementInformation.c deleted file mode 100644 index 1820d13f..00000000 --- a/asn.1/generated/OTDOA-SignalMeasurementInformation.c +++ /dev/null @@ -1,509 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "OTDOA-SignalMeasurementInformation.h" - -static int -memb_tpIdRef_r14_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_prsIdRef_r14_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nprsIdRef_r14_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_hyperSFN_r14_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 10)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_systemFrameNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 10)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_physCellIdRef_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 503)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_tpIdRef_r14_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_prsIdRef_r14_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nprsIdRef_r14_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_hyperSFN_r14_constr_17 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_systemFrameNumber_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_physCellIdRef_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_ext1_9[] = { - { ATF_POINTER, 1, offsetof(struct OTDOA_SignalMeasurementInformation__ext1, earfcnRef_v9a0), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueEUTRA_v9a0, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "earfcnRef-v9a0" - }, -}; -static const int asn_MAP_ext1_oms_9[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_9[] = { - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_9[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* earfcnRef-v9a0 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_9 = { - sizeof(struct OTDOA_SignalMeasurementInformation__ext1), - offsetof(struct OTDOA_SignalMeasurementInformation__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_9, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_9, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_9 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_9, - sizeof(asn_DEF_ext1_tags_9) - /sizeof(asn_DEF_ext1_tags_9[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_9, /* Same as above */ - sizeof(asn_DEF_ext1_tags_9) - /sizeof(asn_DEF_ext1_tags_9[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_9, - 1, /* Elements count */ - &asn_SPC_ext1_specs_9 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_11[] = { - { ATF_POINTER, 6, offsetof(struct OTDOA_SignalMeasurementInformation__ext2, tpIdRef_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_tpIdRef_r14_constr_12, memb_tpIdRef_r14_constraint_11 }, - 0, 0, /* No default value */ - "tpIdRef-r14" - }, - { ATF_POINTER, 5, offsetof(struct OTDOA_SignalMeasurementInformation__ext2, prsIdRef_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_prsIdRef_r14_constr_13, memb_prsIdRef_r14_constraint_11 }, - 0, 0, /* No default value */ - "prsIdRef-r14" - }, - { ATF_POINTER, 4, offsetof(struct OTDOA_SignalMeasurementInformation__ext2, additionalPathsRef_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AdditionalPathList_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "additionalPathsRef-r14" - }, - { ATF_POINTER, 3, offsetof(struct OTDOA_SignalMeasurementInformation__ext2, nprsIdRef_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nprsIdRef_r14_constr_15, memb_nprsIdRef_r14_constraint_11 }, - 0, 0, /* No default value */ - "nprsIdRef-r14" - }, - { ATF_POINTER, 2, offsetof(struct OTDOA_SignalMeasurementInformation__ext2, carrierFreqOffsetNB_Ref_r14), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CarrierFreqOffsetNB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "carrierFreqOffsetNB-Ref-r14" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_SignalMeasurementInformation__ext2, hyperSFN_r14), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_hyperSFN_r14_constr_17, memb_hyperSFN_r14_constraint_11 }, - 0, 0, /* No default value */ - "hyperSFN-r14" - }, -}; -static const int asn_MAP_ext2_oms_11[] = { 0, 1, 2, 3, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_11[] = { - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_11[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tpIdRef-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* prsIdRef-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* additionalPathsRef-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nprsIdRef-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* carrierFreqOffsetNB-Ref-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* hyperSFN-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_11 = { - sizeof(struct OTDOA_SignalMeasurementInformation__ext2), - offsetof(struct OTDOA_SignalMeasurementInformation__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_11, - 6, /* Count of tags in the map */ - asn_MAP_ext2_oms_11, /* Optional members */ - 6, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_11 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_11, - sizeof(asn_DEF_ext2_tags_11) - /sizeof(asn_DEF_ext2_tags_11[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_11, /* Same as above */ - sizeof(asn_DEF_ext2_tags_11) - /sizeof(asn_DEF_ext2_tags_11[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_11, - 6, /* Elements count */ - &asn_SPC_ext2_specs_11 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext3_18[] = { - { ATF_POINTER, 1, offsetof(struct OTDOA_SignalMeasurementInformation__ext3, motionTimeSource_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MotionTimeSource_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "motionTimeSource-r15" - }, -}; -static const int asn_MAP_ext3_oms_18[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext3_tags_18[] = { - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_18[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* motionTimeSource-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_18 = { - sizeof(struct OTDOA_SignalMeasurementInformation__ext3), - offsetof(struct OTDOA_SignalMeasurementInformation__ext3, _asn_ctx), - asn_MAP_ext3_tag2el_18, - 1, /* Count of tags in the map */ - asn_MAP_ext3_oms_18, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext3_18 = { - "ext3", - "ext3", - &asn_OP_SEQUENCE, - asn_DEF_ext3_tags_18, - sizeof(asn_DEF_ext3_tags_18) - /sizeof(asn_DEF_ext3_tags_18[0]) - 1, /* 1 */ - asn_DEF_ext3_tags_18, /* Same as above */ - sizeof(asn_DEF_ext3_tags_18) - /sizeof(asn_DEF_ext3_tags_18[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext3_18, - 1, /* Elements count */ - &asn_SPC_ext3_specs_18 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_OTDOA_SignalMeasurementInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_SignalMeasurementInformation, systemFrameNumber), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_systemFrameNumber_constr_2, memb_systemFrameNumber_constraint_1 }, - 0, 0, /* No default value */ - "systemFrameNumber" - }, - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_SignalMeasurementInformation, physCellIdRef), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_physCellIdRef_constr_3, memb_physCellIdRef_constraint_1 }, - 0, 0, /* No default value */ - "physCellIdRef" - }, - { ATF_POINTER, 3, offsetof(struct OTDOA_SignalMeasurementInformation, cellGlobalIdRef), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ECGI, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellGlobalIdRef" - }, - { ATF_POINTER, 2, offsetof(struct OTDOA_SignalMeasurementInformation, earfcnRef), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueEUTRA, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "earfcnRef" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_SignalMeasurementInformation, referenceQuality), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_MeasQuality, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceQuality" - }, - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_SignalMeasurementInformation, neighbourMeasurementList), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NeighbourMeasurementList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "neighbourMeasurementList" - }, - { ATF_POINTER, 3, offsetof(struct OTDOA_SignalMeasurementInformation, ext1), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - 0, - &asn_DEF_ext1_9, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 2, offsetof(struct OTDOA_SignalMeasurementInformation, ext2), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - 0, - &asn_DEF_ext2_11, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, - { ATF_POINTER, 1, offsetof(struct OTDOA_SignalMeasurementInformation, ext3), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - 0, - &asn_DEF_ext3_18, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext3" - }, -}; -static const int asn_MAP_OTDOA_SignalMeasurementInformation_oms_1[] = { 2, 3, 4, 6, 7, 8 }; -static const ber_tlv_tag_t asn_DEF_OTDOA_SignalMeasurementInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_OTDOA_SignalMeasurementInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* systemFrameNumber */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* physCellIdRef */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cellGlobalIdRef */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* earfcnRef */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* referenceQuality */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* neighbourMeasurementList */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ext2 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* ext3 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_OTDOA_SignalMeasurementInformation_specs_1 = { - sizeof(struct OTDOA_SignalMeasurementInformation), - offsetof(struct OTDOA_SignalMeasurementInformation, _asn_ctx), - asn_MAP_OTDOA_SignalMeasurementInformation_tag2el_1, - 9, /* Count of tags in the map */ - asn_MAP_OTDOA_SignalMeasurementInformation_oms_1, /* Optional members */ - 3, 3, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_OTDOA_SignalMeasurementInformation = { - "OTDOA-SignalMeasurementInformation", - "OTDOA-SignalMeasurementInformation", - &asn_OP_SEQUENCE, - asn_DEF_OTDOA_SignalMeasurementInformation_tags_1, - sizeof(asn_DEF_OTDOA_SignalMeasurementInformation_tags_1) - /sizeof(asn_DEF_OTDOA_SignalMeasurementInformation_tags_1[0]), /* 1 */ - asn_DEF_OTDOA_SignalMeasurementInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_OTDOA_SignalMeasurementInformation_tags_1) - /sizeof(asn_DEF_OTDOA_SignalMeasurementInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_OTDOA_SignalMeasurementInformation_1, - 9, /* Elements count */ - &asn_SPC_OTDOA_SignalMeasurementInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/OTDOA-SignalMeasurementInformation.h b/asn.1/generated/OTDOA-SignalMeasurementInformation.h deleted file mode 100644 index fc7342b3..00000000 --- a/asn.1/generated/OTDOA-SignalMeasurementInformation.h +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _OTDOA_SignalMeasurementInformation_H_ -#define _OTDOA_SignalMeasurementInformation_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include "ARFCN-ValueEUTRA.h" -#include "NeighbourMeasurementList.h" -#include "ARFCN-ValueEUTRA-v9a0.h" -#include -#include "CarrierFreqOffsetNB-r14.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct ECGI; -struct OTDOA_MeasQuality; -struct AdditionalPathList_r14; -struct MotionTimeSource_r15; - -/* OTDOA-SignalMeasurementInformation */ -typedef struct OTDOA_SignalMeasurementInformation { - BIT_STRING_t systemFrameNumber; - long physCellIdRef; - struct ECGI *cellGlobalIdRef /* OPTIONAL */; - ARFCN_ValueEUTRA_t *earfcnRef /* OPTIONAL */; - struct OTDOA_MeasQuality *referenceQuality /* OPTIONAL */; - NeighbourMeasurementList_t neighbourMeasurementList; - /* - * This type is extensible, - * possible extensions are below. - */ - struct OTDOA_SignalMeasurementInformation__ext1 { - ARFCN_ValueEUTRA_v9a0_t *earfcnRef_v9a0 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct OTDOA_SignalMeasurementInformation__ext2 { - long *tpIdRef_r14 /* OPTIONAL */; - long *prsIdRef_r14 /* OPTIONAL */; - struct AdditionalPathList_r14 *additionalPathsRef_r14 /* OPTIONAL */; - long *nprsIdRef_r14 /* OPTIONAL */; - CarrierFreqOffsetNB_r14_t *carrierFreqOffsetNB_Ref_r14 /* OPTIONAL */; - BIT_STRING_t *hyperSFN_r14 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - struct OTDOA_SignalMeasurementInformation__ext3 { - struct MotionTimeSource_r15 *motionTimeSource_r15 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext3; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} OTDOA_SignalMeasurementInformation_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_OTDOA_SignalMeasurementInformation; -extern asn_SEQUENCE_specifics_t asn_SPC_OTDOA_SignalMeasurementInformation_specs_1; -extern asn_TYPE_member_t asn_MBR_OTDOA_SignalMeasurementInformation_1[9]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "ECGI.h" -#include "OTDOA-MeasQuality.h" -#include "AdditionalPathList-r14.h" -#include "MotionTimeSource-r15.h" - -#endif /* _OTDOA_SignalMeasurementInformation_H_ */ -#include diff --git a/asn.1/generated/OTDOA-TargetDeviceErrorCauses.c b/asn.1/generated/OTDOA-TargetDeviceErrorCauses.c deleted file mode 100644 index 700d46e9..00000000 --- a/asn.1/generated/OTDOA-TargetDeviceErrorCauses.c +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "OTDOA-TargetDeviceErrorCauses.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 23, "assistance-data-missing" }, - { 2, 28, "unableToMeasureReferenceCell" }, - { 3, 31, "unableToMeasureAnyNeighbourCell" }, - { 4, 45, "attemptedButUnableToMeasureSomeNeighbourCells" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_enum2value_2[] = { - 1, /* assistance-data-missing(1) */ - 4, /* attemptedButUnableToMeasureSomeNeighbourCells(4) */ - 3, /* unableToMeasureAnyNeighbourCell(3) */ - 2, /* unableToMeasureReferenceCell(2) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_specs_2 = { - asn_MAP_cause_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_enum2value_2, /* N => "tag"; sorted by N */ - 5, /* Number of elements in the maps */ - 6, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_2 = { - "cause", - "cause", - &asn_OP_NativeEnumerated, - asn_DEF_cause_tags_2, - sizeof(asn_DEF_cause_tags_2) - /sizeof(asn_DEF_cause_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_tags_2) - /sizeof(asn_DEF_cause_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_OTDOA_TargetDeviceErrorCauses_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct OTDOA_TargetDeviceErrorCauses, cause), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause" - }, -}; -static const ber_tlv_tag_t asn_DEF_OTDOA_TargetDeviceErrorCauses_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_OTDOA_TargetDeviceErrorCauses_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause */ -}; -asn_SEQUENCE_specifics_t asn_SPC_OTDOA_TargetDeviceErrorCauses_specs_1 = { - sizeof(struct OTDOA_TargetDeviceErrorCauses), - offsetof(struct OTDOA_TargetDeviceErrorCauses, _asn_ctx), - asn_MAP_OTDOA_TargetDeviceErrorCauses_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_OTDOA_TargetDeviceErrorCauses = { - "OTDOA-TargetDeviceErrorCauses", - "OTDOA-TargetDeviceErrorCauses", - &asn_OP_SEQUENCE, - asn_DEF_OTDOA_TargetDeviceErrorCauses_tags_1, - sizeof(asn_DEF_OTDOA_TargetDeviceErrorCauses_tags_1) - /sizeof(asn_DEF_OTDOA_TargetDeviceErrorCauses_tags_1[0]), /* 1 */ - asn_DEF_OTDOA_TargetDeviceErrorCauses_tags_1, /* Same as above */ - sizeof(asn_DEF_OTDOA_TargetDeviceErrorCauses_tags_1) - /sizeof(asn_DEF_OTDOA_TargetDeviceErrorCauses_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_OTDOA_TargetDeviceErrorCauses_1, - 1, /* Elements count */ - &asn_SPC_OTDOA_TargetDeviceErrorCauses_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PLMN-Identity.c b/asn.1/generated/PLMN-Identity.c deleted file mode 100644 index dc2b79d7..00000000 --- a/asn.1/generated/PLMN-Identity.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PLMN-Identity.h" - -asn_TYPE_member_t asn_MBR_PLMN_Identity_1[] = { - { ATF_POINTER, 1, offsetof(struct PLMN_Identity, mcc), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MCC, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mcc" - }, - { ATF_NOFLAGS, 0, offsetof(struct PLMN_Identity, mnc), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MNC, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mnc" - }, -}; -static const int asn_MAP_PLMN_Identity_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_PLMN_Identity_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PLMN_Identity_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mcc */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* mnc */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PLMN_Identity_specs_1 = { - sizeof(struct PLMN_Identity), - offsetof(struct PLMN_Identity, _asn_ctx), - asn_MAP_PLMN_Identity_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_PLMN_Identity_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_PLMN_Identity = { - "PLMN-Identity", - "PLMN-Identity", - &asn_OP_SEQUENCE, - asn_DEF_PLMN_Identity_tags_1, - sizeof(asn_DEF_PLMN_Identity_tags_1) - /sizeof(asn_DEF_PLMN_Identity_tags_1[0]), /* 1 */ - asn_DEF_PLMN_Identity_tags_1, /* Same as above */ - sizeof(asn_DEF_PLMN_Identity_tags_1) - /sizeof(asn_DEF_PLMN_Identity_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_PLMN_Identity_1, - 2, /* Elements count */ - &asn_SPC_PLMN_Identity_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PLMN-Identity.h b/asn.1/generated/PLMN-Identity.h deleted file mode 100644 index 4236f423..00000000 --- a/asn.1/generated/PLMN-Identity.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _PLMN_Identity_H_ -#define _PLMN_Identity_H_ - - -#include - -/* Including external dependencies */ -#include "MNC.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct MCC; - -/* PLMN-Identity */ -typedef struct PLMN_Identity { - struct MCC *mcc /* OPTIONAL */; - MNC_t mnc; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} PLMN_Identity_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_PLMN_Identity; -extern asn_SEQUENCE_specifics_t asn_SPC_PLMN_Identity_specs_1; -extern asn_TYPE_member_t asn_MBR_PLMN_Identity_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "MCC.h" - -#endif /* _PLMN_Identity_H_ */ -#include diff --git a/asn.1/generated/PRS-Info-NB-r14.c b/asn.1/generated/PRS-Info-NB-r14.c deleted file mode 100644 index 3e5970b4..00000000 --- a/asn.1/generated/PRS-Info-NB-r14.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PRS-Info-NB-r14.h" - -asn_per_constraints_t asn_PER_type_PRS_Info_NB_r14_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 5 } /* (SIZE(1..5)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_PRS_Info_NB_r14_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NPRS_Info_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_PRS_Info_NB_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_PRS_Info_NB_r14_specs_1 = { - sizeof(struct PRS_Info_NB_r14), - offsetof(struct PRS_Info_NB_r14, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_PRS_Info_NB_r14 = { - "PRS-Info-NB-r14", - "PRS-Info-NB-r14", - &asn_OP_SEQUENCE_OF, - asn_DEF_PRS_Info_NB_r14_tags_1, - sizeof(asn_DEF_PRS_Info_NB_r14_tags_1) - /sizeof(asn_DEF_PRS_Info_NB_r14_tags_1[0]), /* 1 */ - asn_DEF_PRS_Info_NB_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_PRS_Info_NB_r14_tags_1) - /sizeof(asn_DEF_PRS_Info_NB_r14_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_PRS_Info_NB_r14_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_PRS_Info_NB_r14_1, - 1, /* Single element */ - &asn_SPC_PRS_Info_NB_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PRS-Info.c b/asn.1/generated/PRS-Info.c deleted file mode 100644 index 0a103cba..00000000 --- a/asn.1/generated/PRS-Info.c +++ /dev/null @@ -1,1106 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PRS-Info.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_po2_r9_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 2)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po4_r9_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 4)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po8_r9_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po16_r9_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 16)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po32_v1420_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 32)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po64_v1420_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 64)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po128_v1420_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po256_v1420_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 256)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po512_v1420_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 512)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_po1024_v1420_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 1024)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_NativeInteger_constraint_45(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nb2_r14_constraint_43(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nb4_r14_constraint_43(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size == 3)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_prsID_r14_constraint_31(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_add_numDL_Frames_r14_constraint_31(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 160)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_prs_ConfigurationIndex_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_prs_Bandwidth_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_numDL_Frames_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po2_r9_constr_20 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po4_r9_constr_21 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po8_r9_constr_22 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po16_r9_constr_23 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po32_v1420_constr_25 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 32, 32 } /* (SIZE(32..32)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po64_v1420_constr_26 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 64, 64 } /* (SIZE(64..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po128_v1420_constr_27 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po256_v1420_constr_28 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 256, 256 } /* (SIZE(256..256)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po512_v1420_constr_29 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 512, 512 } /* (SIZE(512..512)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_po1024_v1420_constr_30 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 1024, 1024 } /* (SIZE(1024..1024)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_prs_MutingInfo_r9_constr_19 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_prsOccGroupLen_r14_constr_34 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 6 } /* (0..6,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_Member_constr_46 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_nb4_r14_constr_45 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nb2_r14_constr_44 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nb4_r14_constr_45 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_prsHoppingInfo_r14_constr_43 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_prsID_r14_constr_32 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_add_numDL_Frames_r14_constr_33 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 1, 160 } /* (1..160) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_prs_ConfigurationIndex_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_prs_Bandwidth_value2enum_2[] = { - { 0, 2, "n6" }, - { 1, 3, "n15" }, - { 2, 3, "n25" }, - { 3, 3, "n50" }, - { 4, 3, "n75" }, - { 5, 4, "n100" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_prs_Bandwidth_enum2value_2[] = { - 5, /* n100(5) */ - 1, /* n15(1) */ - 2, /* n25(2) */ - 3, /* n50(3) */ - 0, /* n6(0) */ - 4 /* n75(4) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_prs_Bandwidth_specs_2 = { - asn_MAP_prs_Bandwidth_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_prs_Bandwidth_enum2value_2, /* N => "tag"; sorted by N */ - 6, /* Number of elements in the maps */ - 7, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_prs_Bandwidth_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_prs_Bandwidth_2 = { - "prs-Bandwidth", - "prs-Bandwidth", - &asn_OP_NativeEnumerated, - asn_DEF_prs_Bandwidth_tags_2, - sizeof(asn_DEF_prs_Bandwidth_tags_2) - /sizeof(asn_DEF_prs_Bandwidth_tags_2[0]) - 1, /* 1 */ - asn_DEF_prs_Bandwidth_tags_2, /* Same as above */ - sizeof(asn_DEF_prs_Bandwidth_tags_2) - /sizeof(asn_DEF_prs_Bandwidth_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_prs_Bandwidth_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_prs_Bandwidth_specs_2 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_numDL_Frames_value2enum_11[] = { - { 0, 4, "sf-1" }, - { 1, 4, "sf-2" }, - { 2, 4, "sf-4" }, - { 3, 4, "sf-6" }, - { 4, 12, "sf-add-v1420" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_numDL_Frames_enum2value_11[] = { - 0, /* sf-1(0) */ - 1, /* sf-2(1) */ - 2, /* sf-4(2) */ - 3, /* sf-6(3) */ - 4 /* sf-add-v1420(4) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_numDL_Frames_specs_11 = { - asn_MAP_numDL_Frames_value2enum_11, /* "tag" => N; sorted by tag */ - asn_MAP_numDL_Frames_enum2value_11, /* N => "tag"; sorted by N */ - 5, /* Number of elements in the maps */ - 5, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_numDL_Frames_tags_11[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_numDL_Frames_11 = { - "numDL-Frames", - "numDL-Frames", - &asn_OP_NativeEnumerated, - asn_DEF_numDL_Frames_tags_11, - sizeof(asn_DEF_numDL_Frames_tags_11) - /sizeof(asn_DEF_numDL_Frames_tags_11[0]) - 1, /* 1 */ - asn_DEF_numDL_Frames_tags_11, /* Same as above */ - sizeof(asn_DEF_numDL_Frames_tags_11) - /sizeof(asn_DEF_numDL_Frames_tags_11[0]), /* 2 */ - { 0, &asn_PER_type_numDL_Frames_constr_11, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_numDL_Frames_specs_11 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_prs_MutingInfo_r9_19[] = { - { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po2_r9), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po2_r9_constr_20, memb_po2_r9_constraint_19 }, - 0, 0, /* No default value */ - "po2-r9" - }, - { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po4_r9), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po4_r9_constr_21, memb_po4_r9_constraint_19 }, - 0, 0, /* No default value */ - "po4-r9" - }, - { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po8_r9), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po8_r9_constr_22, memb_po8_r9_constraint_19 }, - 0, 0, /* No default value */ - "po8-r9" - }, - { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po16_r9), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po16_r9_constr_23, memb_po16_r9_constraint_19 }, - 0, 0, /* No default value */ - "po16-r9" - }, - { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po32_v1420), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po32_v1420_constr_25, memb_po32_v1420_constraint_19 }, - 0, 0, /* No default value */ - "po32-v1420" - }, - { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po64_v1420), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po64_v1420_constr_26, memb_po64_v1420_constraint_19 }, - 0, 0, /* No default value */ - "po64-v1420" - }, - { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po128_v1420), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po128_v1420_constr_27, memb_po128_v1420_constraint_19 }, - 0, 0, /* No default value */ - "po128-v1420" - }, - { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po256_v1420), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po256_v1420_constr_28, memb_po256_v1420_constraint_19 }, - 0, 0, /* No default value */ - "po256-v1420" - }, - { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po512_v1420), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po512_v1420_constr_29, memb_po512_v1420_constraint_19 }, - 0, 0, /* No default value */ - "po512-v1420" - }, - { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po1024_v1420), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_po1024_v1420_constr_30, memb_po1024_v1420_constraint_19 }, - 0, 0, /* No default value */ - "po1024-v1420" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_prs_MutingInfo_r9_tag2el_19[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* po2-r9 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* po4-r9 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* po8-r9 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* po16-r9 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* po32-v1420 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* po64-v1420 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* po128-v1420 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* po256-v1420 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* po512-v1420 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* po1024-v1420 */ -}; -static asn_CHOICE_specifics_t asn_SPC_prs_MutingInfo_r9_specs_19 = { - sizeof(struct PRS_Info__prs_MutingInfo_r9), - offsetof(struct PRS_Info__prs_MutingInfo_r9, _asn_ctx), - offsetof(struct PRS_Info__prs_MutingInfo_r9, present), - sizeof(((struct PRS_Info__prs_MutingInfo_r9 *)0)->present), - asn_MAP_prs_MutingInfo_r9_tag2el_19, - 10, /* Count of tags in the map */ - 0, 0, - 4 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_prs_MutingInfo_r9_19 = { - "prs-MutingInfo-r9", - "prs-MutingInfo-r9", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_prs_MutingInfo_r9_constr_19, CHOICE_constraint }, - asn_MBR_prs_MutingInfo_r9_19, - 10, /* Elements count */ - &asn_SPC_prs_MutingInfo_r9_specs_19 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_prsOccGroupLen_r14_value2enum_34[] = { - { 0, 2, "g2" }, - { 1, 2, "g4" }, - { 2, 2, "g8" }, - { 3, 3, "g16" }, - { 4, 3, "g32" }, - { 5, 3, "g64" }, - { 6, 4, "g128" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_prsOccGroupLen_r14_enum2value_34[] = { - 6, /* g128(6) */ - 3, /* g16(3) */ - 0, /* g2(0) */ - 4, /* g32(4) */ - 1, /* g4(1) */ - 5, /* g64(5) */ - 2 /* g8(2) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_prsOccGroupLen_r14_specs_34 = { - asn_MAP_prsOccGroupLen_r14_value2enum_34, /* "tag" => N; sorted by tag */ - asn_MAP_prsOccGroupLen_r14_enum2value_34, /* N => "tag"; sorted by N */ - 7, /* Number of elements in the maps */ - 8, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_prsOccGroupLen_r14_tags_34[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_prsOccGroupLen_r14_34 = { - "prsOccGroupLen-r14", - "prsOccGroupLen-r14", - &asn_OP_NativeEnumerated, - asn_DEF_prsOccGroupLen_r14_tags_34, - sizeof(asn_DEF_prsOccGroupLen_r14_tags_34) - /sizeof(asn_DEF_prsOccGroupLen_r14_tags_34[0]) - 1, /* 1 */ - asn_DEF_prsOccGroupLen_r14_tags_34, /* Same as above */ - sizeof(asn_DEF_prsOccGroupLen_r14_tags_34) - /sizeof(asn_DEF_prsOccGroupLen_r14_tags_34[0]), /* 2 */ - { 0, &asn_PER_type_prsOccGroupLen_r14_constr_34, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_prsOccGroupLen_r14_specs_34 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_nb4_r14_45[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_Member_constr_46, memb_NativeInteger_constraint_45 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_nb4_r14_tags_45[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_nb4_r14_specs_45 = { - sizeof(struct PRS_Info__ext1__prsHoppingInfo_r14__nb4_r14), - offsetof(struct PRS_Info__ext1__prsHoppingInfo_r14__nb4_r14, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_nb4_r14_45 = { - "nb4-r14", - "nb4-r14", - &asn_OP_SEQUENCE_OF, - asn_DEF_nb4_r14_tags_45, - sizeof(asn_DEF_nb4_r14_tags_45) - /sizeof(asn_DEF_nb4_r14_tags_45[0]) - 1, /* 1 */ - asn_DEF_nb4_r14_tags_45, /* Same as above */ - sizeof(asn_DEF_nb4_r14_tags_45) - /sizeof(asn_DEF_nb4_r14_tags_45[0]), /* 2 */ - { 0, &asn_PER_type_nb4_r14_constr_45, SEQUENCE_OF_constraint }, - asn_MBR_nb4_r14_45, - 1, /* Single element */ - &asn_SPC_nb4_r14_specs_45 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_prsHoppingInfo_r14_43[] = { - { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__ext1__prsHoppingInfo_r14, choice.nb2_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nb2_r14_constr_44, memb_nb2_r14_constraint_43 }, - 0, 0, /* No default value */ - "nb2-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__ext1__prsHoppingInfo_r14, choice.nb4_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_nb4_r14_45, - 0, - { 0, &asn_PER_memb_nb4_r14_constr_45, memb_nb4_r14_constraint_43 }, - 0, 0, /* No default value */ - "nb4-r14" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_prsHoppingInfo_r14_tag2el_43[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nb2-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nb4-r14 */ -}; -static asn_CHOICE_specifics_t asn_SPC_prsHoppingInfo_r14_specs_43 = { - sizeof(struct PRS_Info__ext1__prsHoppingInfo_r14), - offsetof(struct PRS_Info__ext1__prsHoppingInfo_r14, _asn_ctx), - offsetof(struct PRS_Info__ext1__prsHoppingInfo_r14, present), - sizeof(((struct PRS_Info__ext1__prsHoppingInfo_r14 *)0)->present), - asn_MAP_prsHoppingInfo_r14_tag2el_43, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_prsHoppingInfo_r14_43 = { - "prsHoppingInfo-r14", - "prsHoppingInfo-r14", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_prsHoppingInfo_r14_constr_43, CHOICE_constraint }, - asn_MBR_prsHoppingInfo_r14_43, - 2, /* Elements count */ - &asn_SPC_prsHoppingInfo_r14_specs_43 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_31[] = { - { ATF_POINTER, 4, offsetof(struct PRS_Info__ext1, prsID_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_prsID_r14_constr_32, memb_prsID_r14_constraint_31 }, - 0, 0, /* No default value */ - "prsID-r14" - }, - { ATF_POINTER, 3, offsetof(struct PRS_Info__ext1, add_numDL_Frames_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_add_numDL_Frames_r14_constr_33, memb_add_numDL_Frames_r14_constraint_31 }, - 0, 0, /* No default value */ - "add-numDL-Frames-r14" - }, - { ATF_POINTER, 2, offsetof(struct PRS_Info__ext1, prsOccGroupLen_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_prsOccGroupLen_r14_34, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "prsOccGroupLen-r14" - }, - { ATF_POINTER, 1, offsetof(struct PRS_Info__ext1, prsHoppingInfo_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_prsHoppingInfo_r14_43, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "prsHoppingInfo-r14" - }, -}; -static const int asn_MAP_ext1_oms_31[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_31[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_31[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* prsID-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* add-numDL-Frames-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* prsOccGroupLen-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* prsHoppingInfo-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_31 = { - sizeof(struct PRS_Info__ext1), - offsetof(struct PRS_Info__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_31, - 4, /* Count of tags in the map */ - asn_MAP_ext1_oms_31, /* Optional members */ - 4, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_31 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_31, - sizeof(asn_DEF_ext1_tags_31) - /sizeof(asn_DEF_ext1_tags_31[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_31, /* Same as above */ - sizeof(asn_DEF_ext1_tags_31) - /sizeof(asn_DEF_ext1_tags_31[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_31, - 4, /* Elements count */ - &asn_SPC_ext1_specs_31 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_PRS_Info_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PRS_Info, prs_Bandwidth), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_prs_Bandwidth_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "prs-Bandwidth" - }, - { ATF_NOFLAGS, 0, offsetof(struct PRS_Info, prs_ConfigurationIndex), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_prs_ConfigurationIndex_constr_10, memb_prs_ConfigurationIndex_constraint_1 }, - 0, 0, /* No default value */ - "prs-ConfigurationIndex" - }, - { ATF_NOFLAGS, 0, offsetof(struct PRS_Info, numDL_Frames), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_numDL_Frames_11, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "numDL-Frames" - }, - { ATF_POINTER, 2, offsetof(struct PRS_Info, prs_MutingInfo_r9), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_prs_MutingInfo_r9_19, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "prs-MutingInfo-r9" - }, - { ATF_POINTER, 1, offsetof(struct PRS_Info, ext1), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - 0, - &asn_DEF_ext1_31, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_PRS_Info_oms_1[] = { 3, 4 }; -static const ber_tlv_tag_t asn_DEF_PRS_Info_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PRS_Info_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* prs-Bandwidth */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* prs-ConfigurationIndex */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* numDL-Frames */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* prs-MutingInfo-r9 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PRS_Info_specs_1 = { - sizeof(struct PRS_Info), - offsetof(struct PRS_Info, _asn_ctx), - asn_MAP_PRS_Info_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_PRS_Info_oms_1, /* Optional members */ - 0, 2, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_PRS_Info = { - "PRS-Info", - "PRS-Info", - &asn_OP_SEQUENCE, - asn_DEF_PRS_Info_tags_1, - sizeof(asn_DEF_PRS_Info_tags_1) - /sizeof(asn_DEF_PRS_Info_tags_1[0]), /* 1 */ - asn_DEF_PRS_Info_tags_1, /* Same as above */ - sizeof(asn_DEF_PRS_Info_tags_1) - /sizeof(asn_DEF_PRS_Info_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_PRS_Info_1, - 5, /* Elements count */ - &asn_SPC_PRS_Info_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Pathloss.c b/asn.1/generated/Pathloss.c deleted file mode 100644 index e008d189..00000000 --- a/asn.1/generated/Pathloss.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Pathloss.h" - -int -Pathloss_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 46 && value <= 173)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_Pathloss_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 46, 173 } /* (46..173) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_Pathloss_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_Pathloss = { - "Pathloss", - "Pathloss", - &asn_OP_NativeInteger, - asn_DEF_Pathloss_tags_1, - sizeof(asn_DEF_Pathloss_tags_1) - /sizeof(asn_DEF_Pathloss_tags_1[0]), /* 1 */ - asn_DEF_Pathloss_tags_1, /* Same as above */ - sizeof(asn_DEF_Pathloss_tags_1) - /sizeof(asn_DEF_Pathloss_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_Pathloss_constr_1, Pathloss_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/Pathloss.h b/asn.1/generated/Pathloss.h deleted file mode 100644 index d9b3a073..00000000 --- a/asn.1/generated/Pathloss.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Pathloss_H_ -#define _Pathloss_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Pathloss */ -typedef long Pathloss_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_Pathloss_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_Pathloss; -asn_struct_free_f Pathloss_free; -asn_struct_print_f Pathloss_print; -asn_constr_check_f Pathloss_constraint; -ber_type_decoder_f Pathloss_decode_ber; -der_type_encoder_f Pathloss_encode_der; -xer_type_decoder_f Pathloss_decode_xer; -xer_type_encoder_f Pathloss_encode_xer; -per_type_decoder_f Pathloss_decode_uper; -per_type_encoder_f Pathloss_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _Pathloss_H_ */ -#include diff --git a/asn.1/generated/PeriodicAssistanceDataControlParameters-r15.c b/asn.1/generated/PeriodicAssistanceDataControlParameters-r15.c deleted file mode 100644 index b1c941ee..00000000 --- a/asn.1/generated/PeriodicAssistanceDataControlParameters-r15.c +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PeriodicAssistanceDataControlParameters-r15.h" - -static asn_TYPE_member_t asn_MBR_ext1_4[] = { - { ATF_POINTER, 1, offsetof(struct PeriodicAssistanceDataControlParameters_r15__ext1, updateCapabilities_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UpdateCapabilities_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "updateCapabilities-r15" - }, -}; -static const int asn_MAP_ext1_oms_4[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* updateCapabilities-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { - sizeof(struct PeriodicAssistanceDataControlParameters_r15__ext1), - offsetof(struct PeriodicAssistanceDataControlParameters_r15__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_4, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_4, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_4 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_4, - sizeof(asn_DEF_ext1_tags_4) - /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_4, /* Same as above */ - sizeof(asn_DEF_ext1_tags_4) - /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_4, - 1, /* Elements count */ - &asn_SPC_ext1_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_PeriodicAssistanceDataControlParameters_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PeriodicAssistanceDataControlParameters_r15, periodicSessionID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PeriodicSessionID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "periodicSessionID-r15" - }, - { ATF_POINTER, 1, offsetof(struct PeriodicAssistanceDataControlParameters_r15, ext1), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_ext1_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_PeriodicAssistanceDataControlParameters_r15_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_PeriodicAssistanceDataControlParameters_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PeriodicAssistanceDataControlParameters_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* periodicSessionID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PeriodicAssistanceDataControlParameters_r15_specs_1 = { - sizeof(struct PeriodicAssistanceDataControlParameters_r15), - offsetof(struct PeriodicAssistanceDataControlParameters_r15, _asn_ctx), - asn_MAP_PeriodicAssistanceDataControlParameters_r15_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_PeriodicAssistanceDataControlParameters_r15_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_PeriodicAssistanceDataControlParameters_r15 = { - "PeriodicAssistanceDataControlParameters-r15", - "PeriodicAssistanceDataControlParameters-r15", - &asn_OP_SEQUENCE, - asn_DEF_PeriodicAssistanceDataControlParameters_r15_tags_1, - sizeof(asn_DEF_PeriodicAssistanceDataControlParameters_r15_tags_1) - /sizeof(asn_DEF_PeriodicAssistanceDataControlParameters_r15_tags_1[0]), /* 1 */ - asn_DEF_PeriodicAssistanceDataControlParameters_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_PeriodicAssistanceDataControlParameters_r15_tags_1) - /sizeof(asn_DEF_PeriodicAssistanceDataControlParameters_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_PeriodicAssistanceDataControlParameters_r15_1, - 2, /* Elements count */ - &asn_SPC_PeriodicAssistanceDataControlParameters_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PeriodicParams.c b/asn.1/generated/PeriodicParams.c deleted file mode 100644 index 9f969246..00000000 --- a/asn.1/generated/PeriodicParams.c +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PeriodicParams.h" - -static int -memb_numberOfFixes_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 8639999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_intervalBetweenFixes_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 8639999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_startTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2678400)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_numberOfFixes_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, 1, 8639999 } /* (1..8639999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_intervalBetweenFixes_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, 1, 8639999 } /* (1..8639999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_startTime_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, 0, 2678400 } /* (0..2678400) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_PeriodicParams_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PeriodicParams, numberOfFixes), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_numberOfFixes_constr_2, memb_numberOfFixes_constraint_1 }, - 0, 0, /* No default value */ - "numberOfFixes" - }, - { ATF_NOFLAGS, 0, offsetof(struct PeriodicParams, intervalBetweenFixes), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_intervalBetweenFixes_constr_3, memb_intervalBetweenFixes_constraint_1 }, - 0, 0, /* No default value */ - "intervalBetweenFixes" - }, - { ATF_POINTER, 1, offsetof(struct PeriodicParams, startTime), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_startTime_constr_4, memb_startTime_constraint_1 }, - 0, 0, /* No default value */ - "startTime" - }, -}; -static const int asn_MAP_PeriodicParams_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_PeriodicParams_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PeriodicParams_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* numberOfFixes */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* intervalBetweenFixes */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* startTime */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PeriodicParams_specs_1 = { - sizeof(struct PeriodicParams), - offsetof(struct PeriodicParams, _asn_ctx), - asn_MAP_PeriodicParams_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_PeriodicParams_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_PeriodicParams = { - "PeriodicParams", - "PeriodicParams", - &asn_OP_SEQUENCE, - asn_DEF_PeriodicParams_tags_1, - sizeof(asn_DEF_PeriodicParams_tags_1) - /sizeof(asn_DEF_PeriodicParams_tags_1[0]), /* 1 */ - asn_DEF_PeriodicParams_tags_1, /* Same as above */ - sizeof(asn_DEF_PeriodicParams_tags_1) - /sizeof(asn_DEF_PeriodicParams_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_PeriodicParams_1, - 3, /* Elements count */ - &asn_SPC_PeriodicParams_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PeriodicSessionID-r15.c b/asn.1/generated/PeriodicSessionID-r15.c deleted file mode 100644 index ec1a3996..00000000 --- a/asn.1/generated/PeriodicSessionID-r15.c +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PeriodicSessionID-r15.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_periodicSessionNumber_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_periodicSessionInitiator_r15_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_periodicSessionNumber_r15_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_periodicSessionInitiator_r15_value2enum_2[] = { - { 0, 14, "locationServer" }, - { 1, 12, "targetDevice" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_periodicSessionInitiator_r15_enum2value_2[] = { - 0, /* locationServer(0) */ - 1 /* targetDevice(1) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_periodicSessionInitiator_r15_specs_2 = { - asn_MAP_periodicSessionInitiator_r15_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_periodicSessionInitiator_r15_enum2value_2, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_periodicSessionInitiator_r15_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_periodicSessionInitiator_r15_2 = { - "periodicSessionInitiator-r15", - "periodicSessionInitiator-r15", - &asn_OP_NativeEnumerated, - asn_DEF_periodicSessionInitiator_r15_tags_2, - sizeof(asn_DEF_periodicSessionInitiator_r15_tags_2) - /sizeof(asn_DEF_periodicSessionInitiator_r15_tags_2[0]) - 1, /* 1 */ - asn_DEF_periodicSessionInitiator_r15_tags_2, /* Same as above */ - sizeof(asn_DEF_periodicSessionInitiator_r15_tags_2) - /sizeof(asn_DEF_periodicSessionInitiator_r15_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_periodicSessionInitiator_r15_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_periodicSessionInitiator_r15_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_PeriodicSessionID_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PeriodicSessionID_r15, periodicSessionInitiator_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_periodicSessionInitiator_r15_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "periodicSessionInitiator-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct PeriodicSessionID_r15, periodicSessionNumber_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_periodicSessionNumber_r15_constr_6, memb_periodicSessionNumber_r15_constraint_1 }, - 0, 0, /* No default value */ - "periodicSessionNumber-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_PeriodicSessionID_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PeriodicSessionID_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* periodicSessionInitiator-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* periodicSessionNumber-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PeriodicSessionID_r15_specs_1 = { - sizeof(struct PeriodicSessionID_r15), - offsetof(struct PeriodicSessionID_r15, _asn_ctx), - asn_MAP_PeriodicSessionID_r15_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_PeriodicSessionID_r15 = { - "PeriodicSessionID-r15", - "PeriodicSessionID-r15", - &asn_OP_SEQUENCE, - asn_DEF_PeriodicSessionID_r15_tags_1, - sizeof(asn_DEF_PeriodicSessionID_r15_tags_1) - /sizeof(asn_DEF_PeriodicSessionID_r15_tags_1[0]), /* 1 */ - asn_DEF_PeriodicSessionID_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_PeriodicSessionID_r15_tags_1) - /sizeof(asn_DEF_PeriodicSessionID_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_PeriodicSessionID_r15_1, - 2, /* Elements count */ - &asn_SPC_PeriodicSessionID_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PhysCellId.c b/asn.1/generated/PhysCellId.c deleted file mode 100644 index 433783ca..00000000 --- a/asn.1/generated/PhysCellId.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PhysCellId.h" - -int -PhysCellId_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 503)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_PhysCellId_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_PhysCellId_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_PhysCellId = { - "PhysCellId", - "PhysCellId", - &asn_OP_NativeInteger, - asn_DEF_PhysCellId_tags_1, - sizeof(asn_DEF_PhysCellId_tags_1) - /sizeof(asn_DEF_PhysCellId_tags_1[0]), /* 1 */ - asn_DEF_PhysCellId_tags_1, /* Same as above */ - sizeof(asn_DEF_PhysCellId_tags_1) - /sizeof(asn_DEF_PhysCellId_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_PhysCellId_constr_1, PhysCellId_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/PhysCellId.h b/asn.1/generated/PhysCellId.h deleted file mode 100644 index 7dd11e6e..00000000 --- a/asn.1/generated/PhysCellId.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _PhysCellId_H_ -#define _PhysCellId_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* PhysCellId */ -typedef long PhysCellId_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_PhysCellId_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_PhysCellId; -asn_struct_free_f PhysCellId_free; -asn_struct_print_f PhysCellId_print; -asn_constr_check_f PhysCellId_constraint; -ber_type_decoder_f PhysCellId_decode_ber; -der_type_encoder_f PhysCellId_encode_der; -xer_type_decoder_f PhysCellId_decode_xer; -xer_type_encoder_f PhysCellId_encode_xer; -per_type_decoder_f PhysCellId_decode_uper; -per_type_encoder_f PhysCellId_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _PhysCellId_H_ */ -#include diff --git a/asn.1/generated/PhysicalReferenceStationInfo-r15.c b/asn.1/generated/PhysicalReferenceStationInfo-r15.c deleted file mode 100644 index e169b59f..00000000 --- a/asn.1/generated/PhysicalReferenceStationInfo-r15.c +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PhysicalReferenceStationInfo-r15.h" - -static int -memb_physical_ARP_ECEF_X_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const INTEGER_t *st = (const INTEGER_t *)sptr; - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(asn_INTEGER2long(st, &value)) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value too large (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if((value >= -137438953472 && value <= 137438953471)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_physical_ARP_ECEF_Y_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const INTEGER_t *st = (const INTEGER_t *)sptr; - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(asn_INTEGER2long(st, &value)) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value too large (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if((value >= -137438953472 && value <= 137438953471)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_physical_ARP_ECEF_Z_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const INTEGER_t *st = (const INTEGER_t *)sptr; - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(asn_INTEGER2long(st, &value)) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value too large (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if((value >= -137438953472 && value <= 137438953471)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_physical_ARP_ECEF_X_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 38, -1, -137438953472, 137438953471 } /* (-137438953472..137438953471) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_physical_ARP_ECEF_Y_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 38, -1, -137438953472, 137438953471 } /* (-137438953472..137438953471) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_physical_ARP_ECEF_Z_r15_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 38, -1, -137438953472, 137438953471 } /* (-137438953472..137438953471) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_PhysicalReferenceStationInfo_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PhysicalReferenceStationInfo_r15, physicalReferenceStationID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceStationID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "physicalReferenceStationID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct PhysicalReferenceStationInfo_r15, physical_ARP_ECEF_X_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_INTEGER, - 0, - { 0, &asn_PER_memb_physical_ARP_ECEF_X_r15_constr_3, memb_physical_ARP_ECEF_X_r15_constraint_1 }, - 0, 0, /* No default value */ - "physical-ARP-ECEF-X-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct PhysicalReferenceStationInfo_r15, physical_ARP_ECEF_Y_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_INTEGER, - 0, - { 0, &asn_PER_memb_physical_ARP_ECEF_Y_r15_constr_4, memb_physical_ARP_ECEF_Y_r15_constraint_1 }, - 0, 0, /* No default value */ - "physical-ARP-ECEF-Y-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct PhysicalReferenceStationInfo_r15, physical_ARP_ECEF_Z_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_INTEGER, - 0, - { 0, &asn_PER_memb_physical_ARP_ECEF_Z_r15_constr_5, memb_physical_ARP_ECEF_Z_r15_constraint_1 }, - 0, 0, /* No default value */ - "physical-ARP-ECEF-Z-r15" - }, - { ATF_POINTER, 1, offsetof(struct PhysicalReferenceStationInfo_r15, physical_ARP_unc_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AntennaReferencePointUnc_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "physical-ARP-unc-r15" - }, -}; -static const int asn_MAP_PhysicalReferenceStationInfo_r15_oms_1[] = { 4 }; -static const ber_tlv_tag_t asn_DEF_PhysicalReferenceStationInfo_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PhysicalReferenceStationInfo_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physicalReferenceStationID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* physical-ARP-ECEF-X-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* physical-ARP-ECEF-Y-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* physical-ARP-ECEF-Z-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* physical-ARP-unc-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PhysicalReferenceStationInfo_r15_specs_1 = { - sizeof(struct PhysicalReferenceStationInfo_r15), - offsetof(struct PhysicalReferenceStationInfo_r15, _asn_ctx), - asn_MAP_PhysicalReferenceStationInfo_r15_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_PhysicalReferenceStationInfo_r15_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_PhysicalReferenceStationInfo_r15 = { - "PhysicalReferenceStationInfo-r15", - "PhysicalReferenceStationInfo-r15", - &asn_OP_SEQUENCE, - asn_DEF_PhysicalReferenceStationInfo_r15_tags_1, - sizeof(asn_DEF_PhysicalReferenceStationInfo_r15_tags_1) - /sizeof(asn_DEF_PhysicalReferenceStationInfo_r15_tags_1[0]), /* 1 */ - asn_DEF_PhysicalReferenceStationInfo_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_PhysicalReferenceStationInfo_r15_tags_1) - /sizeof(asn_DEF_PhysicalReferenceStationInfo_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_PhysicalReferenceStationInfo_r15_1, - 5, /* Elements count */ - &asn_SPC_PhysicalReferenceStationInfo_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Polygon.c b/asn.1/generated/Polygon.c deleted file mode 100644 index e6b08138..00000000 --- a/asn.1/generated/Polygon.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Polygon.h" - -asn_per_constraints_t asn_PER_type_Polygon_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 3, 15 } /* (SIZE(3..15)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_Polygon_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_PolygonPoints, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_Polygon_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_Polygon_specs_1 = { - sizeof(struct Polygon), - offsetof(struct Polygon, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_Polygon = { - "Polygon", - "Polygon", - &asn_OP_SEQUENCE_OF, - asn_DEF_Polygon_tags_1, - sizeof(asn_DEF_Polygon_tags_1) - /sizeof(asn_DEF_Polygon_tags_1[0]), /* 1 */ - asn_DEF_Polygon_tags_1, /* Same as above */ - sizeof(asn_DEF_Polygon_tags_1) - /sizeof(asn_DEF_Polygon_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_Polygon_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_Polygon_1, - 1, /* Single element */ - &asn_SPC_Polygon_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PolygonArea.c b/asn.1/generated/PolygonArea.c deleted file mode 100644 index b25a7b4f..00000000 --- a/asn.1/generated/PolygonArea.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PolygonArea.h" - -static int -memb_polygonHysteresis_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 100000)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_polygonHysteresis_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 17, -1, 1, 100000 } /* (1..100000) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_PolygonArea_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PolygonArea, polygonDescription), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PolygonDescription, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "polygonDescription" - }, - { ATF_POINTER, 1, offsetof(struct PolygonArea, polygonHysteresis), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_polygonHysteresis_constr_3, memb_polygonHysteresis_constraint_1 }, - 0, 0, /* No default value */ - "polygonHysteresis" - }, -}; -static const int asn_MAP_PolygonArea_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_PolygonArea_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PolygonArea_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* polygonDescription */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* polygonHysteresis */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PolygonArea_specs_1 = { - sizeof(struct PolygonArea), - offsetof(struct PolygonArea, _asn_ctx), - asn_MAP_PolygonArea_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_PolygonArea_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_PolygonArea = { - "PolygonArea", - "PolygonArea", - &asn_OP_SEQUENCE, - asn_DEF_PolygonArea_tags_1, - sizeof(asn_DEF_PolygonArea_tags_1) - /sizeof(asn_DEF_PolygonArea_tags_1[0]), /* 1 */ - asn_DEF_PolygonArea_tags_1, /* Same as above */ - sizeof(asn_DEF_PolygonArea_tags_1) - /sizeof(asn_DEF_PolygonArea_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_PolygonArea_1, - 2, /* Elements count */ - &asn_SPC_PolygonArea_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PolygonArea.h b/asn.1/generated/PolygonArea.h deleted file mode 100644 index b04fd764..00000000 --- a/asn.1/generated/PolygonArea.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _PolygonArea_H_ -#define _PolygonArea_H_ - - -#include - -/* Including external dependencies */ -#include "PolygonDescription.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* PolygonArea */ -typedef struct PolygonArea { - PolygonDescription_t polygonDescription; - long *polygonHysteresis /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} PolygonArea_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_PolygonArea; -extern asn_SEQUENCE_specifics_t asn_SPC_PolygonArea_specs_1; -extern asn_TYPE_member_t asn_MBR_PolygonArea_1[2]; - -#ifdef __cplusplus -} -#endif - -#endif /* _PolygonArea_H_ */ -#include diff --git a/asn.1/generated/PolygonDescription.c b/asn.1/generated/PolygonDescription.c deleted file mode 100644 index b73553d4..00000000 --- a/asn.1/generated/PolygonDescription.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PolygonDescription.h" - -asn_per_constraints_t asn_PER_type_PolygonDescription_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 3, 15 } /* (SIZE(3..15)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_PolygonDescription_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_Coordinate, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_PolygonDescription_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_PolygonDescription_specs_1 = { - sizeof(struct PolygonDescription), - offsetof(struct PolygonDescription, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_PolygonDescription = { - "PolygonDescription", - "PolygonDescription", - &asn_OP_SEQUENCE_OF, - asn_DEF_PolygonDescription_tags_1, - sizeof(asn_DEF_PolygonDescription_tags_1) - /sizeof(asn_DEF_PolygonDescription_tags_1[0]), /* 1 */ - asn_DEF_PolygonDescription_tags_1, /* Same as above */ - sizeof(asn_DEF_PolygonDescription_tags_1) - /sizeof(asn_DEF_PolygonDescription_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_PolygonDescription_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_PolygonDescription_1, - 1, /* Single element */ - &asn_SPC_PolygonDescription_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PolygonPoints.c b/asn.1/generated/PolygonPoints.c deleted file mode 100644 index 57bc01d6..00000000 --- a/asn.1/generated/PolygonPoints.c +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PolygonPoints.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_degreesLatitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_degreesLongitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_latitudeSign_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_degreesLatitude_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_degreesLongitude_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_latitudeSign_value2enum_2[] = { - { 0, 5, "north" }, - { 1, 5, "south" } -}; -static const unsigned int asn_MAP_latitudeSign_enum2value_2[] = { - 0, /* north(0) */ - 1 /* south(1) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_latitudeSign_specs_2 = { - asn_MAP_latitudeSign_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_latitudeSign_enum2value_2, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_latitudeSign_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_latitudeSign_2 = { - "latitudeSign", - "latitudeSign", - &asn_OP_NativeEnumerated, - asn_DEF_latitudeSign_tags_2, - sizeof(asn_DEF_latitudeSign_tags_2) - /sizeof(asn_DEF_latitudeSign_tags_2[0]) - 1, /* 1 */ - asn_DEF_latitudeSign_tags_2, /* Same as above */ - sizeof(asn_DEF_latitudeSign_tags_2) - /sizeof(asn_DEF_latitudeSign_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_latitudeSign_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_latitudeSign_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_PolygonPoints_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PolygonPoints, latitudeSign), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_latitudeSign_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "latitudeSign" - }, - { ATF_NOFLAGS, 0, offsetof(struct PolygonPoints, degreesLatitude), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_degreesLatitude_constr_5, memb_degreesLatitude_constraint_1 }, - 0, 0, /* No default value */ - "degreesLatitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct PolygonPoints, degreesLongitude), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_degreesLongitude_constr_6, memb_degreesLongitude_constraint_1 }, - 0, 0, /* No default value */ - "degreesLongitude" - }, -}; -static const ber_tlv_tag_t asn_DEF_PolygonPoints_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PolygonPoints_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeSign */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLatitude */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* degreesLongitude */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PolygonPoints_specs_1 = { - sizeof(struct PolygonPoints), - offsetof(struct PolygonPoints, _asn_ctx), - asn_MAP_PolygonPoints_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_PolygonPoints = { - "PolygonPoints", - "PolygonPoints", - &asn_OP_SEQUENCE, - asn_DEF_PolygonPoints_tags_1, - sizeof(asn_DEF_PolygonPoints_tags_1) - /sizeof(asn_DEF_PolygonPoints_tags_1[0]), /* 1 */ - asn_DEF_PolygonPoints_tags_1, /* Same as above */ - sizeof(asn_DEF_PolygonPoints_tags_1) - /sizeof(asn_DEF_PolygonPoints_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_PolygonPoints_1, - 3, /* Elements count */ - &asn_SPC_PolygonPoints_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PosPayLoad.c b/asn.1/generated/PosPayLoad.c deleted file mode 100644 index 2d2d6dbe..00000000 --- a/asn.1/generated/PosPayLoad.c +++ /dev/null @@ -1,175 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-POS" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PosPayLoad.h" - -static int -memb_tia801payload_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size >= 1 && size <= 8192)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_rrcPayload_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size >= 1 && size <= 8192)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_rrlpPayload_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size >= 1 && size <= 8192)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_tia801payload_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 13, 13, 1, 8192 } /* (SIZE(1..8192)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_rrcPayload_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 13, 13, 1, 8192 } /* (SIZE(1..8192)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_rrlpPayload_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 13, 13, 1, 8192 } /* (SIZE(1..8192)) */, - 0, 0 /* No PER value map */ -}; -asn_per_constraints_t asn_PER_type_PosPayLoad_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_PosPayLoad_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PosPayLoad, choice.tia801payload), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OCTET_STRING, - 0, - { 0, &asn_PER_memb_tia801payload_constr_2, memb_tia801payload_constraint_1 }, - 0, 0, /* No default value */ - "tia801payload" - }, - { ATF_NOFLAGS, 0, offsetof(struct PosPayLoad, choice.rrcPayload), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OCTET_STRING, - 0, - { 0, &asn_PER_memb_rrcPayload_constr_3, memb_rrcPayload_constraint_1 }, - 0, 0, /* No default value */ - "rrcPayload" - }, - { ATF_NOFLAGS, 0, offsetof(struct PosPayLoad, choice.rrlpPayload), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OCTET_STRING, - 0, - { 0, &asn_PER_memb_rrlpPayload_constr_4, memb_rrlpPayload_constraint_1 }, - 0, 0, /* No default value */ - "rrlpPayload" - }, - { ATF_NOFLAGS, 0, offsetof(struct PosPayLoad, choice.ver2_PosPayLoad_extension), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver2_PosPayLoad_extension, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ver2-PosPayLoad-extension" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_PosPayLoad_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tia801payload */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* rrcPayload */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* rrlpPayload */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ver2-PosPayLoad-extension */ -}; -asn_CHOICE_specifics_t asn_SPC_PosPayLoad_specs_1 = { - sizeof(struct PosPayLoad), - offsetof(struct PosPayLoad, _asn_ctx), - offsetof(struct PosPayLoad, present), - sizeof(((struct PosPayLoad *)0)->present), - asn_MAP_PosPayLoad_tag2el_1, - 4, /* Count of tags in the map */ - 0, 0, - 3 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_PosPayLoad = { - "PosPayLoad", - "PosPayLoad", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_PosPayLoad_constr_1, CHOICE_constraint }, - asn_MBR_PosPayLoad_1, - 4, /* Elements count */ - &asn_SPC_PosPayLoad_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PosProtocol.c b/asn.1/generated/PosProtocol.c deleted file mode 100644 index ad3279f8..00000000 --- a/asn.1/generated/PosProtocol.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PosProtocol.h" - -asn_TYPE_member_t asn_MBR_PosProtocol_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PosProtocol, tia801), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tia801" - }, - { ATF_NOFLAGS, 0, offsetof(struct PosProtocol, rrlp), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rrlp" - }, - { ATF_NOFLAGS, 0, offsetof(struct PosProtocol, rrc), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rrc" - }, - { ATF_POINTER, 1, offsetof(struct PosProtocol, ver2_PosProtocol_extension), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver2_PosProtocol_extension, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ver2-PosProtocol-extension" - }, -}; -static const int asn_MAP_PosProtocol_oms_1[] = { 3 }; -static const ber_tlv_tag_t asn_DEF_PosProtocol_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PosProtocol_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tia801 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* rrlp */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* rrc */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ver2-PosProtocol-extension */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PosProtocol_specs_1 = { - sizeof(struct PosProtocol), - offsetof(struct PosProtocol, _asn_ctx), - asn_MAP_PosProtocol_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_PosProtocol_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_PosProtocol = { - "PosProtocol", - "PosProtocol", - &asn_OP_SEQUENCE, - asn_DEF_PosProtocol_tags_1, - sizeof(asn_DEF_PosProtocol_tags_1) - /sizeof(asn_DEF_PosProtocol_tags_1[0]), /* 1 */ - asn_DEF_PosProtocol_tags_1, /* Same as above */ - sizeof(asn_DEF_PosProtocol_tags_1) - /sizeof(asn_DEF_PosProtocol_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_PosProtocol_1, - 4, /* Elements count */ - &asn_SPC_PosProtocol_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PosProtocol.h b/asn.1/generated/PosProtocol.h deleted file mode 100644 index 76208fe2..00000000 --- a/asn.1/generated/PosProtocol.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _PosProtocol_H_ -#define _PosProtocol_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct Ver2_PosProtocol_extension; - -/* PosProtocol */ -typedef struct PosProtocol { - BOOLEAN_t tia801; - BOOLEAN_t rrlp; - BOOLEAN_t rrc; - /* - * This type is extensible, - * possible extensions are below. - */ - struct Ver2_PosProtocol_extension *ver2_PosProtocol_extension /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} PosProtocol_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_PosProtocol; -extern asn_SEQUENCE_specifics_t asn_SPC_PosProtocol_specs_1; -extern asn_TYPE_member_t asn_MBR_PosProtocol_1[4]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "Ver2-PosProtocol-extension.h" - -#endif /* _PosProtocol_H_ */ -#include diff --git a/asn.1/generated/PosProtocolVersion3GPP.c b/asn.1/generated/PosProtocolVersion3GPP.c deleted file mode 100644 index cc57f1c7..00000000 --- a/asn.1/generated/PosProtocolVersion3GPP.c +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PosProtocolVersion3GPP.h" - -static int -memb_majorVersionField_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_technicalVersionField_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_editorialVersionField_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_majorVersionField_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_technicalVersionField_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_editorialVersionField_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_PosProtocolVersion3GPP_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PosProtocolVersion3GPP, majorVersionField), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_majorVersionField_constr_2, memb_majorVersionField_constraint_1 }, - 0, 0, /* No default value */ - "majorVersionField" - }, - { ATF_NOFLAGS, 0, offsetof(struct PosProtocolVersion3GPP, technicalVersionField), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_technicalVersionField_constr_3, memb_technicalVersionField_constraint_1 }, - 0, 0, /* No default value */ - "technicalVersionField" - }, - { ATF_NOFLAGS, 0, offsetof(struct PosProtocolVersion3GPP, editorialVersionField), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_editorialVersionField_constr_4, memb_editorialVersionField_constraint_1 }, - 0, 0, /* No default value */ - "editorialVersionField" - }, -}; -static const ber_tlv_tag_t asn_DEF_PosProtocolVersion3GPP_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PosProtocolVersion3GPP_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* majorVersionField */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* technicalVersionField */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* editorialVersionField */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PosProtocolVersion3GPP_specs_1 = { - sizeof(struct PosProtocolVersion3GPP), - offsetof(struct PosProtocolVersion3GPP, _asn_ctx), - asn_MAP_PosProtocolVersion3GPP_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_PosProtocolVersion3GPP = { - "PosProtocolVersion3GPP", - "PosProtocolVersion3GPP", - &asn_OP_SEQUENCE, - asn_DEF_PosProtocolVersion3GPP_tags_1, - sizeof(asn_DEF_PosProtocolVersion3GPP_tags_1) - /sizeof(asn_DEF_PosProtocolVersion3GPP_tags_1[0]), /* 1 */ - asn_DEF_PosProtocolVersion3GPP_tags_1, /* Same as above */ - sizeof(asn_DEF_PosProtocolVersion3GPP_tags_1) - /sizeof(asn_DEF_PosProtocolVersion3GPP_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_PosProtocolVersion3GPP_1, - 3, /* Elements count */ - &asn_SPC_PosProtocolVersion3GPP_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PosProtocolVersion3GPP2.c b/asn.1/generated/PosProtocolVersion3GPP2.c deleted file mode 100644 index a17855bf..00000000 --- a/asn.1/generated/PosProtocolVersion3GPP2.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PosProtocolVersion3GPP2.h" - -asn_per_constraints_t asn_PER_type_PosProtocolVersion3GPP2_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_PosProtocolVersion3GPP2_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_Supported3GPP2PosProtocolVersion, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_PosProtocolVersion3GPP2_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_PosProtocolVersion3GPP2_specs_1 = { - sizeof(struct PosProtocolVersion3GPP2), - offsetof(struct PosProtocolVersion3GPP2, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_PosProtocolVersion3GPP2 = { - "PosProtocolVersion3GPP2", - "PosProtocolVersion3GPP2", - &asn_OP_SEQUENCE_OF, - asn_DEF_PosProtocolVersion3GPP2_tags_1, - sizeof(asn_DEF_PosProtocolVersion3GPP2_tags_1) - /sizeof(asn_DEF_PosProtocolVersion3GPP2_tags_1[0]), /* 1 */ - asn_DEF_PosProtocolVersion3GPP2_tags_1, /* Same as above */ - sizeof(asn_DEF_PosProtocolVersion3GPP2_tags_1) - /sizeof(asn_DEF_PosProtocolVersion3GPP2_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_PosProtocolVersion3GPP2_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_PosProtocolVersion3GPP2_1, - 1, /* Single element */ - &asn_SPC_PosProtocolVersion3GPP2_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PosTechnology.c b/asn.1/generated/PosTechnology.c deleted file mode 100644 index e22ee9a5..00000000 --- a/asn.1/generated/PosTechnology.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PosTechnology.h" - -asn_TYPE_member_t asn_MBR_PosTechnology_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PosTechnology, agpsSETassisted), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "agpsSETassisted" - }, - { ATF_NOFLAGS, 0, offsetof(struct PosTechnology, agpsSETBased), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "agpsSETBased" - }, - { ATF_NOFLAGS, 0, offsetof(struct PosTechnology, autonomousGPS), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "autonomousGPS" - }, - { ATF_NOFLAGS, 0, offsetof(struct PosTechnology, aFLT), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "aFLT" - }, - { ATF_NOFLAGS, 0, offsetof(struct PosTechnology, eCID), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "eCID" - }, - { ATF_NOFLAGS, 0, offsetof(struct PosTechnology, eOTD), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "eOTD" - }, - { ATF_NOFLAGS, 0, offsetof(struct PosTechnology, oTDOA), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "oTDOA" - }, - { ATF_POINTER, 1, offsetof(struct PosTechnology, ver2_PosTechnology_extension), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver2_PosTechnology_extension, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ver2-PosTechnology-extension" - }, -}; -static const int asn_MAP_PosTechnology_oms_1[] = { 7 }; -static const ber_tlv_tag_t asn_DEF_PosTechnology_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PosTechnology_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* agpsSETassisted */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* agpsSETBased */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* autonomousGPS */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* aFLT */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* eCID */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* eOTD */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* oTDOA */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* ver2-PosTechnology-extension */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PosTechnology_specs_1 = { - sizeof(struct PosTechnology), - offsetof(struct PosTechnology, _asn_ctx), - asn_MAP_PosTechnology_tag2el_1, - 8, /* Count of tags in the map */ - asn_MAP_PosTechnology_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 7, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_PosTechnology = { - "PosTechnology", - "PosTechnology", - &asn_OP_SEQUENCE, - asn_DEF_PosTechnology_tags_1, - sizeof(asn_DEF_PosTechnology_tags_1) - /sizeof(asn_DEF_PosTechnology_tags_1[0]), /* 1 */ - asn_DEF_PosTechnology_tags_1, /* Same as above */ - sizeof(asn_DEF_PosTechnology_tags_1) - /sizeof(asn_DEF_PosTechnology_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_PosTechnology_1, - 8, /* Elements count */ - &asn_SPC_PosTechnology_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Position.c b/asn.1/generated/Position.c deleted file mode 100644 index ee089a38..00000000 --- a/asn.1/generated/Position.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Position.h" - -asn_TYPE_member_t asn_MBR_Position_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Position, timestamp), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTCTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "timestamp" - }, - { ATF_NOFLAGS, 0, offsetof(struct Position, positionEstimate), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PositionEstimate, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "positionEstimate" - }, - { ATF_POINTER, 1, offsetof(struct Position, velocity), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_ULP_Velocity, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "velocity" - }, -}; -static const int asn_MAP_Position_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_Position_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Position_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* timestamp */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* positionEstimate */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* velocity */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Position_specs_1 = { - sizeof(struct Position), - offsetof(struct Position, _asn_ctx), - asn_MAP_Position_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_Position_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Position = { - "Position", - "Position", - &asn_OP_SEQUENCE, - asn_DEF_Position_tags_1, - sizeof(asn_DEF_Position_tags_1) - /sizeof(asn_DEF_Position_tags_1[0]), /* 1 */ - asn_DEF_Position_tags_1, /* Same as above */ - sizeof(asn_DEF_Position_tags_1) - /sizeof(asn_DEF_Position_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Position_1, - 3, /* Elements count */ - &asn_SPC_Position_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PositionEstimate.c b/asn.1/generated/PositionEstimate.c deleted file mode 100644 index f5d24ce7..00000000 --- a/asn.1/generated/PositionEstimate.c +++ /dev/null @@ -1,391 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PositionEstimate.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_uncertaintySemiMajor_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_uncertaintySemiMinor_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_orientationMajorAxis_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 180)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_latitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_longitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_confidence_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_latitudeSign_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_uncertaintySemiMajor_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_uncertaintySemiMinor_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_orientationMajorAxis_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 180 } /* (0..180) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_latitude_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_longitude_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_confidence_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_latitudeSign_value2enum_2[] = { - { 0, 5, "north" }, - { 1, 5, "south" } -}; -static const unsigned int asn_MAP_latitudeSign_enum2value_2[] = { - 0, /* north(0) */ - 1 /* south(1) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_latitudeSign_specs_2 = { - asn_MAP_latitudeSign_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_latitudeSign_enum2value_2, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_latitudeSign_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_latitudeSign_2 = { - "latitudeSign", - "latitudeSign", - &asn_OP_NativeEnumerated, - asn_DEF_latitudeSign_tags_2, - sizeof(asn_DEF_latitudeSign_tags_2) - /sizeof(asn_DEF_latitudeSign_tags_2[0]) - 1, /* 1 */ - asn_DEF_latitudeSign_tags_2, /* Same as above */ - sizeof(asn_DEF_latitudeSign_tags_2) - /sizeof(asn_DEF_latitudeSign_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_latitudeSign_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_latitudeSign_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_uncertainty_7[] = { - { ATF_NOFLAGS, 0, offsetof(struct PositionEstimate__uncertainty, uncertaintySemiMajor), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_uncertaintySemiMajor_constr_8, memb_uncertaintySemiMajor_constraint_7 }, - 0, 0, /* No default value */ - "uncertaintySemiMajor" - }, - { ATF_NOFLAGS, 0, offsetof(struct PositionEstimate__uncertainty, uncertaintySemiMinor), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_uncertaintySemiMinor_constr_9, memb_uncertaintySemiMinor_constraint_7 }, - 0, 0, /* No default value */ - "uncertaintySemiMinor" - }, - { ATF_NOFLAGS, 0, offsetof(struct PositionEstimate__uncertainty, orientationMajorAxis), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_orientationMajorAxis_constr_10, memb_orientationMajorAxis_constraint_7 }, - 0, 0, /* No default value */ - "orientationMajorAxis" - }, -}; -static const ber_tlv_tag_t asn_DEF_uncertainty_tags_7[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_uncertainty_tag2el_7[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* uncertaintySemiMajor */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uncertaintySemiMinor */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* orientationMajorAxis */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_uncertainty_specs_7 = { - sizeof(struct PositionEstimate__uncertainty), - offsetof(struct PositionEstimate__uncertainty, _asn_ctx), - asn_MAP_uncertainty_tag2el_7, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_uncertainty_7 = { - "uncertainty", - "uncertainty", - &asn_OP_SEQUENCE, - asn_DEF_uncertainty_tags_7, - sizeof(asn_DEF_uncertainty_tags_7) - /sizeof(asn_DEF_uncertainty_tags_7[0]) - 1, /* 1 */ - asn_DEF_uncertainty_tags_7, /* Same as above */ - sizeof(asn_DEF_uncertainty_tags_7) - /sizeof(asn_DEF_uncertainty_tags_7[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_uncertainty_7, - 3, /* Elements count */ - &asn_SPC_uncertainty_specs_7 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_PositionEstimate_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PositionEstimate, latitudeSign), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_latitudeSign_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "latitudeSign" - }, - { ATF_NOFLAGS, 0, offsetof(struct PositionEstimate, latitude), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_latitude_constr_5, memb_latitude_constraint_1 }, - 0, 0, /* No default value */ - "latitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct PositionEstimate, longitude), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_longitude_constr_6, memb_longitude_constraint_1 }, - 0, 0, /* No default value */ - "longitude" - }, - { ATF_POINTER, 3, offsetof(struct PositionEstimate, uncertainty), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - 0, - &asn_DEF_uncertainty_7, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "uncertainty" - }, - { ATF_POINTER, 2, offsetof(struct PositionEstimate, confidence), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_confidence_constr_11, memb_confidence_constraint_1 }, - 0, 0, /* No default value */ - "confidence" - }, - { ATF_POINTER, 1, offsetof(struct PositionEstimate, altitudeInfo), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AltitudeInfo, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "altitudeInfo" - }, -}; -static const int asn_MAP_PositionEstimate_oms_1[] = { 3, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_PositionEstimate_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PositionEstimate_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeSign */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* latitude */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* longitude */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* uncertainty */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* confidence */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* altitudeInfo */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PositionEstimate_specs_1 = { - sizeof(struct PositionEstimate), - offsetof(struct PositionEstimate, _asn_ctx), - asn_MAP_PositionEstimate_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_PositionEstimate_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_PositionEstimate = { - "PositionEstimate", - "PositionEstimate", - &asn_OP_SEQUENCE, - asn_DEF_PositionEstimate_tags_1, - sizeof(asn_DEF_PositionEstimate_tags_1) - /sizeof(asn_DEF_PositionEstimate_tags_1[0]), /* 1 */ - asn_DEF_PositionEstimate_tags_1, /* Same as above */ - sizeof(asn_DEF_PositionEstimate_tags_1) - /sizeof(asn_DEF_PositionEstimate_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_PositionEstimate_1, - 6, /* Elements count */ - &asn_SPC_PositionEstimate_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PositioningModes.c b/asn.1/generated/PositioningModes.c deleted file mode 100644 index f9f03340..00000000 --- a/asn.1/generated/PositioningModes.c +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PositioningModes.h" - -static int -memb_posModes_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_posModes_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_PositioningModes_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PositioningModes, posModes), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_posModes_constr_2, memb_posModes_constraint_1 }, - 0, 0, /* No default value */ - "posModes" - }, -}; -static const ber_tlv_tag_t asn_DEF_PositioningModes_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PositioningModes_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* posModes */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PositioningModes_specs_1 = { - sizeof(struct PositioningModes), - offsetof(struct PositioningModes, _asn_ctx), - asn_MAP_PositioningModes_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_PositioningModes = { - "PositioningModes", - "PositioningModes", - &asn_OP_SEQUENCE, - asn_DEF_PositioningModes_tags_1, - sizeof(asn_DEF_PositioningModes_tags_1) - /sizeof(asn_DEF_PositioningModes_tags_1[0]), /* 1 */ - asn_DEF_PositioningModes_tags_1, /* Same as above */ - sizeof(asn_DEF_PositioningModes_tags_1) - /sizeof(asn_DEF_PositioningModes_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_PositioningModes_1, - 1, /* Elements count */ - &asn_SPC_PositioningModes_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PrefMethod.c b/asn.1/generated/PrefMethod.c deleted file mode 100644 index 2d2ccd1a..00000000 --- a/asn.1/generated/PrefMethod.c +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PrefMethod.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_PrefMethod_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_PrefMethod_value2enum_1[] = { - { 0, 24, "agpsSETassistedPreferred" }, - { 1, 21, "agpsSETBasedPreferred" }, - { 2, 12, "noPreference" } -}; -static const unsigned int asn_MAP_PrefMethod_enum2value_1[] = { - 1, /* agpsSETBasedPreferred(1) */ - 0, /* agpsSETassistedPreferred(0) */ - 2 /* noPreference(2) */ -}; -const asn_INTEGER_specifics_t asn_SPC_PrefMethod_specs_1 = { - asn_MAP_PrefMethod_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_PrefMethod_enum2value_1, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_PrefMethod_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_PrefMethod = { - "PrefMethod", - "PrefMethod", - &asn_OP_NativeEnumerated, - asn_DEF_PrefMethod_tags_1, - sizeof(asn_DEF_PrefMethod_tags_1) - /sizeof(asn_DEF_PrefMethod_tags_1[0]), /* 1 */ - asn_DEF_PrefMethod_tags_1, /* Same as above */ - sizeof(asn_DEF_PrefMethod_tags_1) - /sizeof(asn_DEF_PrefMethod_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_PrefMethod_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_PrefMethod_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PressureValidityArea-v1520.c b/asn.1/generated/PressureValidityArea-v1520.c deleted file mode 100644 index 13eb478f..00000000 --- a/asn.1/generated/PressureValidityArea-v1520.c +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PressureValidityArea-v1520.h" - -static int -memb_validityAreaWidth_v1520_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_validityAreaHeight_v1520_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_validityAreaWidth_v1520_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 1, 128 } /* (1..128) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_validityAreaHeight_v1520_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 1, 128 } /* (1..128) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_PressureValidityArea_v1520_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PressureValidityArea_v1520, centerPoint_v1520), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ellipsoid_Point, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "centerPoint-v1520" - }, - { ATF_NOFLAGS, 0, offsetof(struct PressureValidityArea_v1520, validityAreaWidth_v1520), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_validityAreaWidth_v1520_constr_3, memb_validityAreaWidth_v1520_constraint_1 }, - 0, 0, /* No default value */ - "validityAreaWidth-v1520" - }, - { ATF_NOFLAGS, 0, offsetof(struct PressureValidityArea_v1520, validityAreaHeight_v1520), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_validityAreaHeight_v1520_constr_4, memb_validityAreaHeight_v1520_constraint_1 }, - 0, 0, /* No default value */ - "validityAreaHeight-v1520" - }, -}; -static const ber_tlv_tag_t asn_DEF_PressureValidityArea_v1520_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PressureValidityArea_v1520_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* centerPoint-v1520 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* validityAreaWidth-v1520 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* validityAreaHeight-v1520 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PressureValidityArea_v1520_specs_1 = { - sizeof(struct PressureValidityArea_v1520), - offsetof(struct PressureValidityArea_v1520, _asn_ctx), - asn_MAP_PressureValidityArea_v1520_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_PressureValidityArea_v1520 = { - "PressureValidityArea-v1520", - "PressureValidityArea-v1520", - &asn_OP_SEQUENCE, - asn_DEF_PressureValidityArea_v1520_tags_1, - sizeof(asn_DEF_PressureValidityArea_v1520_tags_1) - /sizeof(asn_DEF_PressureValidityArea_v1520_tags_1[0]), /* 1 */ - asn_DEF_PressureValidityArea_v1520_tags_1, /* Same as above */ - sizeof(asn_DEF_PressureValidityArea_v1520_tags_1) - /sizeof(asn_DEF_PressureValidityArea_v1520_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_PressureValidityArea_v1520_1, - 3, /* Elements count */ - &asn_SPC_PressureValidityArea_v1520_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PressureValidityPeriod-v1520.c b/asn.1/generated/PressureValidityPeriod-v1520.c deleted file mode 100644 index 13fcf97a..00000000 --- a/asn.1/generated/PressureValidityPeriod-v1520.c +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PressureValidityPeriod-v1520.h" - -static int -memb_beginTimeAlt_v1520_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 2881)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_duration_v1520_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 2881)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_beginTimeAlt_v1520_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 2881 } /* (0..2881) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_duration_v1520_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 1, 2881 } /* (1..2881) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_PressureValidityPeriod_v1520_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PressureValidityPeriod_v1520, beginTime_v1520), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SystemTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "beginTime-v1520" - }, - { ATF_POINTER, 1, offsetof(struct PressureValidityPeriod_v1520, beginTimeAlt_v1520), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_beginTimeAlt_v1520_constr_3, memb_beginTimeAlt_v1520_constraint_1 }, - 0, 0, /* No default value */ - "beginTimeAlt-v1520" - }, - { ATF_NOFLAGS, 0, offsetof(struct PressureValidityPeriod_v1520, duration_v1520), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_duration_v1520_constr_4, memb_duration_v1520_constraint_1 }, - 0, 0, /* No default value */ - "duration-v1520" - }, -}; -static const int asn_MAP_PressureValidityPeriod_v1520_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_PressureValidityPeriod_v1520_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PressureValidityPeriod_v1520_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* beginTime-v1520 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* beginTimeAlt-v1520 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* duration-v1520 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PressureValidityPeriod_v1520_specs_1 = { - sizeof(struct PressureValidityPeriod_v1520), - offsetof(struct PressureValidityPeriod_v1520, _asn_ctx), - asn_MAP_PressureValidityPeriod_v1520_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_PressureValidityPeriod_v1520_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_PressureValidityPeriod_v1520 = { - "PressureValidityPeriod-v1520", - "PressureValidityPeriod-v1520", - &asn_OP_SEQUENCE, - asn_DEF_PressureValidityPeriod_v1520_tags_1, - sizeof(asn_DEF_PressureValidityPeriod_v1520_tags_1) - /sizeof(asn_DEF_PressureValidityPeriod_v1520_tags_1[0]), /* 1 */ - asn_DEF_PressureValidityPeriod_v1520_tags_1, /* Same as above */ - sizeof(asn_DEF_PressureValidityPeriod_v1520_tags_1) - /sizeof(asn_DEF_PressureValidityPeriod_v1520_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_PressureValidityPeriod_v1520_1, - 3, /* Elements count */ - &asn_SPC_PressureValidityPeriod_v1520_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/PrimaryCCPCH-RSCP.c b/asn.1/generated/PrimaryCCPCH-RSCP.c deleted file mode 100644 index f5538ddf..00000000 --- a/asn.1/generated/PrimaryCCPCH-RSCP.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PrimaryCCPCH-RSCP.h" - -int -PrimaryCCPCH_RSCP_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_PrimaryCCPCH_RSCP_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_PrimaryCCPCH_RSCP_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_PrimaryCCPCH_RSCP = { - "PrimaryCCPCH-RSCP", - "PrimaryCCPCH-RSCP", - &asn_OP_NativeInteger, - asn_DEF_PrimaryCCPCH_RSCP_tags_1, - sizeof(asn_DEF_PrimaryCCPCH_RSCP_tags_1) - /sizeof(asn_DEF_PrimaryCCPCH_RSCP_tags_1[0]), /* 1 */ - asn_DEF_PrimaryCCPCH_RSCP_tags_1, /* Same as above */ - sizeof(asn_DEF_PrimaryCCPCH_RSCP_tags_1) - /sizeof(asn_DEF_PrimaryCCPCH_RSCP_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_PrimaryCCPCH_RSCP_constr_1, PrimaryCCPCH_RSCP_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/PrimaryCCPCH-RSCP.h b/asn.1/generated/PrimaryCCPCH-RSCP.h deleted file mode 100644 index eb2eae04..00000000 --- a/asn.1/generated/PrimaryCCPCH-RSCP.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _PrimaryCCPCH_RSCP_H_ -#define _PrimaryCCPCH_RSCP_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* PrimaryCCPCH-RSCP */ -typedef long PrimaryCCPCH_RSCP_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_PrimaryCCPCH_RSCP_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_PrimaryCCPCH_RSCP; -asn_struct_free_f PrimaryCCPCH_RSCP_free; -asn_struct_print_f PrimaryCCPCH_RSCP_print; -asn_constr_check_f PrimaryCCPCH_RSCP_constraint; -ber_type_decoder_f PrimaryCCPCH_RSCP_decode_ber; -der_type_encoder_f PrimaryCCPCH_RSCP_encode_der; -xer_type_decoder_f PrimaryCCPCH_RSCP_decode_xer; -xer_type_encoder_f PrimaryCCPCH_RSCP_encode_xer; -per_type_decoder_f PrimaryCCPCH_RSCP_decode_uper; -per_type_encoder_f PrimaryCCPCH_RSCP_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _PrimaryCCPCH_RSCP_H_ */ -#include diff --git a/asn.1/generated/PrimaryCPICH-Info.c b/asn.1/generated/PrimaryCPICH-Info.c deleted file mode 100644 index ab9c7ff8..00000000 --- a/asn.1/generated/PrimaryCPICH-Info.c +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "PrimaryCPICH-Info.h" - -static int -memb_primaryScramblingCode_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_primaryScramblingCode_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_PrimaryCPICH_Info_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PrimaryCPICH_Info, primaryScramblingCode), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_primaryScramblingCode_constr_2, memb_primaryScramblingCode_constraint_1 }, - 0, 0, /* No default value */ - "primaryScramblingCode" - }, -}; -static const ber_tlv_tag_t asn_DEF_PrimaryCPICH_Info_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PrimaryCPICH_Info_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* primaryScramblingCode */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PrimaryCPICH_Info_specs_1 = { - sizeof(struct PrimaryCPICH_Info), - offsetof(struct PrimaryCPICH_Info, _asn_ctx), - asn_MAP_PrimaryCPICH_Info_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_PrimaryCPICH_Info = { - "PrimaryCPICH-Info", - "PrimaryCPICH-Info", - &asn_OP_SEQUENCE, - asn_DEF_PrimaryCPICH_Info_tags_1, - sizeof(asn_DEF_PrimaryCPICH_Info_tags_1) - /sizeof(asn_DEF_PrimaryCPICH_Info_tags_1[0]), /* 1 */ - asn_DEF_PrimaryCPICH_Info_tags_1, /* Same as above */ - sizeof(asn_DEF_PrimaryCPICH_Info_tags_1) - /sizeof(asn_DEF_PrimaryCPICH_Info_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_PrimaryCPICH_Info_1, - 1, /* Elements count */ - &asn_SPC_PrimaryCPICH_Info_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ProtLevel.c b/asn.1/generated/ProtLevel.c deleted file mode 100644 index 45623435..00000000 --- a/asn.1/generated/ProtLevel.c +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ProtLevel.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_ProtLevel_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_ProtLevel_value2enum_1[] = { - { 0, 14, "nullProtection" }, - { 1, 15, "basicProtection" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_ProtLevel_enum2value_1[] = { - 1, /* basicProtection(1) */ - 0 /* nullProtection(0) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_ProtLevel_specs_1 = { - asn_MAP_ProtLevel_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_ProtLevel_enum2value_1, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_ProtLevel_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_ProtLevel = { - "ProtLevel", - "ProtLevel", - &asn_OP_NativeEnumerated, - asn_DEF_ProtLevel_tags_1, - sizeof(asn_DEF_ProtLevel_tags_1) - /sizeof(asn_DEF_ProtLevel_tags_1[0]), /* 1 */ - asn_DEF_ProtLevel_tags_1, /* Same as above */ - sizeof(asn_DEF_ProtLevel_tags_1) - /sizeof(asn_DEF_ProtLevel_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_ProtLevel_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_ProtLevel_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ProtectionLevel.c b/asn.1/generated/ProtectionLevel.c deleted file mode 100644 index 84c3261f..00000000 --- a/asn.1/generated/ProtectionLevel.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ProtectionLevel.h" - -asn_TYPE_member_t asn_MBR_ProtectionLevel_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ProtectionLevel, protlevel), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ProtLevel, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "protlevel" - }, - { ATF_POINTER, 1, offsetof(struct ProtectionLevel, basicProtectionParams), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BasicProtectionParams, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "basicProtectionParams" - }, -}; -static const int asn_MAP_ProtectionLevel_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_ProtectionLevel_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ProtectionLevel_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* protlevel */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* basicProtectionParams */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ProtectionLevel_specs_1 = { - sizeof(struct ProtectionLevel), - offsetof(struct ProtectionLevel, _asn_ctx), - asn_MAP_ProtectionLevel_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_ProtectionLevel_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ProtectionLevel = { - "ProtectionLevel", - "ProtectionLevel", - &asn_OP_SEQUENCE, - asn_DEF_ProtectionLevel_tags_1, - sizeof(asn_DEF_ProtectionLevel_tags_1) - /sizeof(asn_DEF_ProtectionLevel_tags_1[0]), /* 1 */ - asn_DEF_ProtectionLevel_tags_1, /* Same as above */ - sizeof(asn_DEF_ProtectionLevel_tags_1) - /sizeof(asn_DEF_ProtectionLevel_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ProtectionLevel_1, - 2, /* Elements count */ - &asn_SPC_ProtectionLevel_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ProtectionLevel.h b/asn.1/generated/ProtectionLevel.h deleted file mode 100644 index 7ae3540b..00000000 --- a/asn.1/generated/ProtectionLevel.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _ProtectionLevel_H_ -#define _ProtectionLevel_H_ - - -#include - -/* Including external dependencies */ -#include "ProtLevel.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct BasicProtectionParams; - -/* ProtectionLevel */ -typedef struct ProtectionLevel { - ProtLevel_t protlevel; - struct BasicProtectionParams *basicProtectionParams /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} ProtectionLevel_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_ProtectionLevel; -extern asn_SEQUENCE_specifics_t asn_SPC_ProtectionLevel_specs_1; -extern asn_TYPE_member_t asn_MBR_ProtectionLevel_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "BasicProtectionParams.h" - -#endif /* _ProtectionLevel_H_ */ -#include diff --git a/asn.1/generated/ProvideAssistanceData-r9-IEs.c b/asn.1/generated/ProvideAssistanceData-r9-IEs.c deleted file mode 100644 index 87541c89..00000000 --- a/asn.1/generated/ProvideAssistanceData-r9-IEs.c +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ProvideAssistanceData-r9-IEs.h" - -static asn_TYPE_member_t asn_MBR_ext1_7[] = { - { ATF_POINTER, 3, offsetof(struct ProvideAssistanceData_r9_IEs__ext1, sensor_ProvideAssistanceData_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Sensor_ProvideAssistanceData_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sensor-ProvideAssistanceData-r14" - }, - { ATF_POINTER, 2, offsetof(struct ProvideAssistanceData_r9_IEs__ext1, tbs_ProvideAssistanceData_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TBS_ProvideAssistanceData_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tbs-ProvideAssistanceData-r14" - }, - { ATF_POINTER, 1, offsetof(struct ProvideAssistanceData_r9_IEs__ext1, wlan_ProvideAssistanceData_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WLAN_ProvideAssistanceData_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wlan-ProvideAssistanceData-r14" - }, -}; -static const int asn_MAP_ext1_oms_7[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-ProvideAssistanceData-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tbs-ProvideAssistanceData-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* wlan-ProvideAssistanceData-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { - sizeof(struct ProvideAssistanceData_r9_IEs__ext1), - offsetof(struct ProvideAssistanceData_r9_IEs__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_7, - 3, /* Count of tags in the map */ - asn_MAP_ext1_oms_7, /* Optional members */ - 3, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_7 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_7, - sizeof(asn_DEF_ext1_tags_7) - /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_7, /* Same as above */ - sizeof(asn_DEF_ext1_tags_7) - /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_7, - 3, /* Elements count */ - &asn_SPC_ext1_specs_7 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_11[] = { - { ATF_POINTER, 3, offsetof(struct ProvideAssistanceData_r9_IEs__ext2, nr_Multi_RTT_ProvideAssistanceData_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-Multi-RTT-ProvideAssistanceData-r16" - }, - { ATF_POINTER, 2, offsetof(struct ProvideAssistanceData_r9_IEs__ext2, nr_DL_AoD_ProvideAssistanceData_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-AoD-ProvideAssistanceData-r16" - }, - { ATF_POINTER, 1, offsetof(struct ProvideAssistanceData_r9_IEs__ext2, nr_DL_TDOA_ProvideAssistanceData_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-TDOA-ProvideAssistanceData-r16" - }, -}; -static const int asn_MAP_ext2_oms_11[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_11[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_11[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-Multi-RTT-ProvideAssistanceData-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-AoD-ProvideAssistanceData-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-DL-TDOA-ProvideAssistanceData-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_11 = { - sizeof(struct ProvideAssistanceData_r9_IEs__ext2), - offsetof(struct ProvideAssistanceData_r9_IEs__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_11, - 3, /* Count of tags in the map */ - asn_MAP_ext2_oms_11, /* Optional members */ - 3, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_11 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_11, - sizeof(asn_DEF_ext2_tags_11) - /sizeof(asn_DEF_ext2_tags_11[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_11, /* Same as above */ - sizeof(asn_DEF_ext2_tags_11) - /sizeof(asn_DEF_ext2_tags_11[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_11, - 3, /* Elements count */ - &asn_SPC_ext2_specs_11 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_ProvideAssistanceData_r9_IEs_1[] = { - { ATF_POINTER, 6, offsetof(struct ProvideAssistanceData_r9_IEs, commonIEsProvideAssistanceData), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CommonIEsProvideAssistanceData, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "commonIEsProvideAssistanceData" - }, - { ATF_POINTER, 5, offsetof(struct ProvideAssistanceData_r9_IEs, a_gnss_ProvideAssistanceData), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_A_GNSS_ProvideAssistanceData, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "a-gnss-ProvideAssistanceData" - }, - { ATF_POINTER, 4, offsetof(struct ProvideAssistanceData_r9_IEs, otdoa_ProvideAssistanceData), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_ProvideAssistanceData, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "otdoa-ProvideAssistanceData" - }, - { ATF_POINTER, 3, offsetof(struct ProvideAssistanceData_r9_IEs, epdu_Provide_Assistance_Data), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EPDU_Sequence, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "epdu-Provide-Assistance-Data" - }, - { ATF_POINTER, 2, offsetof(struct ProvideAssistanceData_r9_IEs, ext1), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - 0, - &asn_DEF_ext1_7, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct ProvideAssistanceData_r9_IEs, ext2), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - 0, - &asn_DEF_ext2_11, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_ProvideAssistanceData_r9_IEs_oms_1[] = { 0, 1, 2, 3, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_ProvideAssistanceData_r9_IEs_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ProvideAssistanceData_r9_IEs_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* commonIEsProvideAssistanceData */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* a-gnss-ProvideAssistanceData */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* otdoa-ProvideAssistanceData */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* epdu-Provide-Assistance-Data */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ProvideAssistanceData_r9_IEs_specs_1 = { - sizeof(struct ProvideAssistanceData_r9_IEs), - offsetof(struct ProvideAssistanceData_r9_IEs, _asn_ctx), - asn_MAP_ProvideAssistanceData_r9_IEs_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_ProvideAssistanceData_r9_IEs_oms_1, /* Optional members */ - 4, 2, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ProvideAssistanceData_r9_IEs = { - "ProvideAssistanceData-r9-IEs", - "ProvideAssistanceData-r9-IEs", - &asn_OP_SEQUENCE, - asn_DEF_ProvideAssistanceData_r9_IEs_tags_1, - sizeof(asn_DEF_ProvideAssistanceData_r9_IEs_tags_1) - /sizeof(asn_DEF_ProvideAssistanceData_r9_IEs_tags_1[0]), /* 1 */ - asn_DEF_ProvideAssistanceData_r9_IEs_tags_1, /* Same as above */ - sizeof(asn_DEF_ProvideAssistanceData_r9_IEs_tags_1) - /sizeof(asn_DEF_ProvideAssistanceData_r9_IEs_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ProvideAssistanceData_r9_IEs_1, - 6, /* Elements count */ - &asn_SPC_ProvideAssistanceData_r9_IEs_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ProvideAssistanceData-r9-IEs.h b/asn.1/generated/ProvideAssistanceData-r9-IEs.h deleted file mode 100644 index f3191280..00000000 --- a/asn.1/generated/ProvideAssistanceData-r9-IEs.h +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _ProvideAssistanceData_r9_IEs_H_ -#define _ProvideAssistanceData_r9_IEs_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct CommonIEsProvideAssistanceData; -struct A_GNSS_ProvideAssistanceData; -struct OTDOA_ProvideAssistanceData; -struct EPDU_Sequence; -struct Sensor_ProvideAssistanceData_r14; -struct TBS_ProvideAssistanceData_r14; -struct WLAN_ProvideAssistanceData_r14; -struct NR_Multi_RTT_ProvideAssistanceData_r16; -struct NR_DL_AoD_ProvideAssistanceData_r16; -struct NR_DL_TDOA_ProvideAssistanceData_r16; - -/* ProvideAssistanceData-r9-IEs */ -typedef struct ProvideAssistanceData_r9_IEs { - struct CommonIEsProvideAssistanceData *commonIEsProvideAssistanceData /* OPTIONAL */; - struct A_GNSS_ProvideAssistanceData *a_gnss_ProvideAssistanceData /* OPTIONAL */; - struct OTDOA_ProvideAssistanceData *otdoa_ProvideAssistanceData /* OPTIONAL */; - struct EPDU_Sequence *epdu_Provide_Assistance_Data /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct ProvideAssistanceData_r9_IEs__ext1 { - struct Sensor_ProvideAssistanceData_r14 *sensor_ProvideAssistanceData_r14 /* OPTIONAL */; - struct TBS_ProvideAssistanceData_r14 *tbs_ProvideAssistanceData_r14 /* OPTIONAL */; - struct WLAN_ProvideAssistanceData_r14 *wlan_ProvideAssistanceData_r14 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct ProvideAssistanceData_r9_IEs__ext2 { - struct NR_Multi_RTT_ProvideAssistanceData_r16 *nr_Multi_RTT_ProvideAssistanceData_r16 /* OPTIONAL */; - struct NR_DL_AoD_ProvideAssistanceData_r16 *nr_DL_AoD_ProvideAssistanceData_r16 /* OPTIONAL */; - struct NR_DL_TDOA_ProvideAssistanceData_r16 *nr_DL_TDOA_ProvideAssistanceData_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} ProvideAssistanceData_r9_IEs_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_ProvideAssistanceData_r9_IEs; -extern asn_SEQUENCE_specifics_t asn_SPC_ProvideAssistanceData_r9_IEs_specs_1; -extern asn_TYPE_member_t asn_MBR_ProvideAssistanceData_r9_IEs_1[6]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "CommonIEsProvideAssistanceData.h" -#include "A-GNSS-ProvideAssistanceData.h" -#include "OTDOA-ProvideAssistanceData.h" -#include "EPDU-Sequence.h" -#include "Sensor-ProvideAssistanceData-r14.h" -#include "TBS-ProvideAssistanceData-r14.h" -#include "WLAN-ProvideAssistanceData-r14.h" -#include "NR-Multi-RTT-ProvideAssistanceData-r16.h" -#include "NR-DL-AoD-ProvideAssistanceData-r16.h" -#include "NR-DL-TDOA-ProvideAssistanceData-r16.h" - -#endif /* _ProvideAssistanceData_r9_IEs_H_ */ -#include diff --git a/asn.1/generated/ProvideAssistanceData.c b/asn.1/generated/ProvideAssistanceData.c deleted file mode 100644 index b0ecc44b..00000000 --- a/asn.1/generated/ProvideAssistanceData.c +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ProvideAssistanceData.h" - -static asn_per_constraints_t asn_PER_type_c1_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_criticalExtensions_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_c1_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct ProvideAssistanceData__criticalExtensions__c1, choice.provideAssistanceData_r9), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ProvideAssistanceData_r9_IEs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "provideAssistanceData-r9" - }, - { ATF_NOFLAGS, 0, offsetof(struct ProvideAssistanceData__criticalExtensions__c1, choice.spare3), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare3" - }, - { ATF_NOFLAGS, 0, offsetof(struct ProvideAssistanceData__criticalExtensions__c1, choice.spare2), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare2" - }, - { ATF_NOFLAGS, 0, offsetof(struct ProvideAssistanceData__criticalExtensions__c1, choice.spare1), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare1" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_c1_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* provideAssistanceData-r9 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* spare3 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* spare2 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* spare1 */ -}; -static asn_CHOICE_specifics_t asn_SPC_c1_specs_3 = { - sizeof(struct ProvideAssistanceData__criticalExtensions__c1), - offsetof(struct ProvideAssistanceData__criticalExtensions__c1, _asn_ctx), - offsetof(struct ProvideAssistanceData__criticalExtensions__c1, present), - sizeof(((struct ProvideAssistanceData__criticalExtensions__c1 *)0)->present), - asn_MAP_c1_tag2el_3, - 4, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_c1_3 = { - "c1", - "c1", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_c1_constr_3, CHOICE_constraint }, - asn_MBR_c1_3, - 4, /* Elements count */ - &asn_SPC_c1_specs_3 /* Additional specs */ -}; - -static const ber_tlv_tag_t asn_DEF_criticalExtensionsFuture_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SEQUENCE_specifics_t asn_SPC_criticalExtensionsFuture_specs_8 = { - sizeof(struct ProvideAssistanceData__criticalExtensions__criticalExtensionsFuture), - offsetof(struct ProvideAssistanceData__criticalExtensions__criticalExtensionsFuture, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_criticalExtensionsFuture_8 = { - "criticalExtensionsFuture", - "criticalExtensionsFuture", - &asn_OP_SEQUENCE, - asn_DEF_criticalExtensionsFuture_tags_8, - sizeof(asn_DEF_criticalExtensionsFuture_tags_8) - /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]) - 1, /* 1 */ - asn_DEF_criticalExtensionsFuture_tags_8, /* Same as above */ - sizeof(asn_DEF_criticalExtensionsFuture_tags_8) - /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_criticalExtensionsFuture_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_criticalExtensions_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct ProvideAssistanceData__criticalExtensions, choice.c1), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_c1_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "c1" - }, - { ATF_NOFLAGS, 0, offsetof(struct ProvideAssistanceData__criticalExtensions, choice.criticalExtensionsFuture), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_criticalExtensionsFuture_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "criticalExtensionsFuture" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_criticalExtensions_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* c1 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* criticalExtensionsFuture */ -}; -static asn_CHOICE_specifics_t asn_SPC_criticalExtensions_specs_2 = { - sizeof(struct ProvideAssistanceData__criticalExtensions), - offsetof(struct ProvideAssistanceData__criticalExtensions, _asn_ctx), - offsetof(struct ProvideAssistanceData__criticalExtensions, present), - sizeof(((struct ProvideAssistanceData__criticalExtensions *)0)->present), - asn_MAP_criticalExtensions_tag2el_2, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_criticalExtensions_2 = { - "criticalExtensions", - "criticalExtensions", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_criticalExtensions_constr_2, CHOICE_constraint }, - asn_MBR_criticalExtensions_2, - 2, /* Elements count */ - &asn_SPC_criticalExtensions_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_ProvideAssistanceData_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ProvideAssistanceData, criticalExtensions), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_criticalExtensions_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "criticalExtensions" - }, -}; -static const ber_tlv_tag_t asn_DEF_ProvideAssistanceData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ProvideAssistanceData_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* criticalExtensions */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ProvideAssistanceData_specs_1 = { - sizeof(struct ProvideAssistanceData), - offsetof(struct ProvideAssistanceData, _asn_ctx), - asn_MAP_ProvideAssistanceData_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ProvideAssistanceData = { - "ProvideAssistanceData", - "ProvideAssistanceData", - &asn_OP_SEQUENCE, - asn_DEF_ProvideAssistanceData_tags_1, - sizeof(asn_DEF_ProvideAssistanceData_tags_1) - /sizeof(asn_DEF_ProvideAssistanceData_tags_1[0]), /* 1 */ - asn_DEF_ProvideAssistanceData_tags_1, /* Same as above */ - sizeof(asn_DEF_ProvideAssistanceData_tags_1) - /sizeof(asn_DEF_ProvideAssistanceData_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ProvideAssistanceData_1, - 1, /* Elements count */ - &asn_SPC_ProvideAssistanceData_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ProvideCapabilities-r9-IEs.c b/asn.1/generated/ProvideCapabilities-r9-IEs.c deleted file mode 100644 index e6430bdd..00000000 --- a/asn.1/generated/ProvideCapabilities-r9-IEs.c +++ /dev/null @@ -1,272 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ProvideCapabilities-r9-IEs.h" - -static asn_TYPE_member_t asn_MBR_ext1_8[] = { - { ATF_POINTER, 4, offsetof(struct ProvideCapabilities_r9_IEs__ext1, sensor_ProvideCapabilities_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Sensor_ProvideCapabilities_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sensor-ProvideCapabilities-r13" - }, - { ATF_POINTER, 3, offsetof(struct ProvideCapabilities_r9_IEs__ext1, tbs_ProvideCapabilities_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TBS_ProvideCapabilities_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tbs-ProvideCapabilities-r13" - }, - { ATF_POINTER, 2, offsetof(struct ProvideCapabilities_r9_IEs__ext1, wlan_ProvideCapabilities_r13), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WLAN_ProvideCapabilities_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wlan-ProvideCapabilities-r13" - }, - { ATF_POINTER, 1, offsetof(struct ProvideCapabilities_r9_IEs__ext1, bt_ProvideCapabilities_r13), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BT_ProvideCapabilities_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bt-ProvideCapabilities-r13" - }, -}; -static const int asn_MAP_ext1_oms_8[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-ProvideCapabilities-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tbs-ProvideCapabilities-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* wlan-ProvideCapabilities-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* bt-ProvideCapabilities-r13 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { - sizeof(struct ProvideCapabilities_r9_IEs__ext1), - offsetof(struct ProvideCapabilities_r9_IEs__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_8, - 4, /* Count of tags in the map */ - asn_MAP_ext1_oms_8, /* Optional members */ - 4, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_8 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_8, - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_8, /* Same as above */ - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_8, - 4, /* Elements count */ - &asn_SPC_ext1_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_13[] = { - { ATF_POINTER, 5, offsetof(struct ProvideCapabilities_r9_IEs__ext2, nr_ECID_ProvideCapabilities_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_ECID_ProvideCapabilities_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-ECID-ProvideCapabilities-r16" - }, - { ATF_POINTER, 4, offsetof(struct ProvideCapabilities_r9_IEs__ext2, nr_Multi_RTT_ProvideCapabilities_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-Multi-RTT-ProvideCapabilities-r16" - }, - { ATF_POINTER, 3, offsetof(struct ProvideCapabilities_r9_IEs__ext2, nr_DL_AoD_ProvideCapabilities_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_AoD_ProvideCapabilities_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-AoD-ProvideCapabilities-r16" - }, - { ATF_POINTER, 2, offsetof(struct ProvideCapabilities_r9_IEs__ext2, nr_DL_TDOA_ProvideCapabilities_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-TDOA-ProvideCapabilities-r16" - }, - { ATF_POINTER, 1, offsetof(struct ProvideCapabilities_r9_IEs__ext2, nr_UL_ProvideCapabilities_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_UL_ProvideCapabilities_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-UL-ProvideCapabilities-r16" - }, -}; -static const int asn_MAP_ext2_oms_13[] = { 0, 1, 2, 3, 4 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_13[] = { - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_13[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-ECID-ProvideCapabilities-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-Multi-RTT-ProvideCapabilities-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-AoD-ProvideCapabilities-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-DL-TDOA-ProvideCapabilities-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* nr-UL-ProvideCapabilities-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_13 = { - sizeof(struct ProvideCapabilities_r9_IEs__ext2), - offsetof(struct ProvideCapabilities_r9_IEs__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_13, - 5, /* Count of tags in the map */ - asn_MAP_ext2_oms_13, /* Optional members */ - 5, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_13 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_13, - sizeof(asn_DEF_ext2_tags_13) - /sizeof(asn_DEF_ext2_tags_13[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_13, /* Same as above */ - sizeof(asn_DEF_ext2_tags_13) - /sizeof(asn_DEF_ext2_tags_13[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_13, - 5, /* Elements count */ - &asn_SPC_ext2_specs_13 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_ProvideCapabilities_r9_IEs_1[] = { - { ATF_POINTER, 7, offsetof(struct ProvideCapabilities_r9_IEs, commonIEsProvideCapabilities), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CommonIEsProvideCapabilities, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "commonIEsProvideCapabilities" - }, - { ATF_POINTER, 6, offsetof(struct ProvideCapabilities_r9_IEs, a_gnss_ProvideCapabilities), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_A_GNSS_ProvideCapabilities, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "a-gnss-ProvideCapabilities" - }, - { ATF_POINTER, 5, offsetof(struct ProvideCapabilities_r9_IEs, otdoa_ProvideCapabilities), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_ProvideCapabilities, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "otdoa-ProvideCapabilities" - }, - { ATF_POINTER, 4, offsetof(struct ProvideCapabilities_r9_IEs, ecid_ProvideCapabilities), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ECID_ProvideCapabilities, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ecid-ProvideCapabilities" - }, - { ATF_POINTER, 3, offsetof(struct ProvideCapabilities_r9_IEs, epdu_ProvideCapabilities), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EPDU_Sequence, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "epdu-ProvideCapabilities" - }, - { ATF_POINTER, 2, offsetof(struct ProvideCapabilities_r9_IEs, ext1), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - 0, - &asn_DEF_ext1_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct ProvideCapabilities_r9_IEs, ext2), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - 0, - &asn_DEF_ext2_13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_ProvideCapabilities_r9_IEs_oms_1[] = { 0, 1, 2, 3, 4, 5, 6 }; -static const ber_tlv_tag_t asn_DEF_ProvideCapabilities_r9_IEs_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ProvideCapabilities_r9_IEs_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* commonIEsProvideCapabilities */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* a-gnss-ProvideCapabilities */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* otdoa-ProvideCapabilities */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ecid-ProvideCapabilities */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* epdu-ProvideCapabilities */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ProvideCapabilities_r9_IEs_specs_1 = { - sizeof(struct ProvideCapabilities_r9_IEs), - offsetof(struct ProvideCapabilities_r9_IEs, _asn_ctx), - asn_MAP_ProvideCapabilities_r9_IEs_tag2el_1, - 7, /* Count of tags in the map */ - asn_MAP_ProvideCapabilities_r9_IEs_oms_1, /* Optional members */ - 5, 2, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ProvideCapabilities_r9_IEs = { - "ProvideCapabilities-r9-IEs", - "ProvideCapabilities-r9-IEs", - &asn_OP_SEQUENCE, - asn_DEF_ProvideCapabilities_r9_IEs_tags_1, - sizeof(asn_DEF_ProvideCapabilities_r9_IEs_tags_1) - /sizeof(asn_DEF_ProvideCapabilities_r9_IEs_tags_1[0]), /* 1 */ - asn_DEF_ProvideCapabilities_r9_IEs_tags_1, /* Same as above */ - sizeof(asn_DEF_ProvideCapabilities_r9_IEs_tags_1) - /sizeof(asn_DEF_ProvideCapabilities_r9_IEs_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ProvideCapabilities_r9_IEs_1, - 7, /* Elements count */ - &asn_SPC_ProvideCapabilities_r9_IEs_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ProvideCapabilities-r9-IEs.h b/asn.1/generated/ProvideCapabilities-r9-IEs.h deleted file mode 100644 index 70e068d7..00000000 --- a/asn.1/generated/ProvideCapabilities-r9-IEs.h +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _ProvideCapabilities_r9_IEs_H_ -#define _ProvideCapabilities_r9_IEs_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct CommonIEsProvideCapabilities; -struct A_GNSS_ProvideCapabilities; -struct OTDOA_ProvideCapabilities; -struct ECID_ProvideCapabilities; -struct EPDU_Sequence; -struct Sensor_ProvideCapabilities_r13; -struct TBS_ProvideCapabilities_r13; -struct WLAN_ProvideCapabilities_r13; -struct BT_ProvideCapabilities_r13; -struct NR_ECID_ProvideCapabilities_r16; -struct NR_Multi_RTT_ProvideCapabilities_r16; -struct NR_DL_AoD_ProvideCapabilities_r16; -struct NR_DL_TDOA_ProvideCapabilities_r16; -struct NR_UL_ProvideCapabilities_r16; - -/* ProvideCapabilities-r9-IEs */ -typedef struct ProvideCapabilities_r9_IEs { - struct CommonIEsProvideCapabilities *commonIEsProvideCapabilities /* OPTIONAL */; - struct A_GNSS_ProvideCapabilities *a_gnss_ProvideCapabilities /* OPTIONAL */; - struct OTDOA_ProvideCapabilities *otdoa_ProvideCapabilities /* OPTIONAL */; - struct ECID_ProvideCapabilities *ecid_ProvideCapabilities /* OPTIONAL */; - struct EPDU_Sequence *epdu_ProvideCapabilities /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct ProvideCapabilities_r9_IEs__ext1 { - struct Sensor_ProvideCapabilities_r13 *sensor_ProvideCapabilities_r13 /* OPTIONAL */; - struct TBS_ProvideCapabilities_r13 *tbs_ProvideCapabilities_r13 /* OPTIONAL */; - struct WLAN_ProvideCapabilities_r13 *wlan_ProvideCapabilities_r13 /* OPTIONAL */; - struct BT_ProvideCapabilities_r13 *bt_ProvideCapabilities_r13 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct ProvideCapabilities_r9_IEs__ext2 { - struct NR_ECID_ProvideCapabilities_r16 *nr_ECID_ProvideCapabilities_r16 /* OPTIONAL */; - struct NR_Multi_RTT_ProvideCapabilities_r16 *nr_Multi_RTT_ProvideCapabilities_r16 /* OPTIONAL */; - struct NR_DL_AoD_ProvideCapabilities_r16 *nr_DL_AoD_ProvideCapabilities_r16 /* OPTIONAL */; - struct NR_DL_TDOA_ProvideCapabilities_r16 *nr_DL_TDOA_ProvideCapabilities_r16 /* OPTIONAL */; - struct NR_UL_ProvideCapabilities_r16 *nr_UL_ProvideCapabilities_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} ProvideCapabilities_r9_IEs_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_ProvideCapabilities_r9_IEs; -extern asn_SEQUENCE_specifics_t asn_SPC_ProvideCapabilities_r9_IEs_specs_1; -extern asn_TYPE_member_t asn_MBR_ProvideCapabilities_r9_IEs_1[7]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "CommonIEsProvideCapabilities.h" -#include "A-GNSS-ProvideCapabilities.h" -#include "OTDOA-ProvideCapabilities.h" -#include "ECID-ProvideCapabilities.h" -#include "EPDU-Sequence.h" -#include "Sensor-ProvideCapabilities-r13.h" -#include "TBS-ProvideCapabilities-r13.h" -#include "WLAN-ProvideCapabilities-r13.h" -#include "BT-ProvideCapabilities-r13.h" -#include "NR-ECID-ProvideCapabilities-r16.h" -#include "NR-Multi-RTT-ProvideCapabilities-r16.h" -#include "NR-DL-AoD-ProvideCapabilities-r16.h" -#include "NR-DL-TDOA-ProvideCapabilities-r16.h" -#include "NR-UL-ProvideCapabilities-r16.h" - -#endif /* _ProvideCapabilities_r9_IEs_H_ */ -#include diff --git a/asn.1/generated/ProvideCapabilities.c b/asn.1/generated/ProvideCapabilities.c deleted file mode 100644 index d99b8d3d..00000000 --- a/asn.1/generated/ProvideCapabilities.c +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ProvideCapabilities.h" - -static asn_per_constraints_t asn_PER_type_c1_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_criticalExtensions_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_c1_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct ProvideCapabilities__criticalExtensions__c1, choice.provideCapabilities_r9), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ProvideCapabilities_r9_IEs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "provideCapabilities-r9" - }, - { ATF_NOFLAGS, 0, offsetof(struct ProvideCapabilities__criticalExtensions__c1, choice.spare3), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare3" - }, - { ATF_NOFLAGS, 0, offsetof(struct ProvideCapabilities__criticalExtensions__c1, choice.spare2), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare2" - }, - { ATF_NOFLAGS, 0, offsetof(struct ProvideCapabilities__criticalExtensions__c1, choice.spare1), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare1" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_c1_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* provideCapabilities-r9 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* spare3 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* spare2 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* spare1 */ -}; -static asn_CHOICE_specifics_t asn_SPC_c1_specs_3 = { - sizeof(struct ProvideCapabilities__criticalExtensions__c1), - offsetof(struct ProvideCapabilities__criticalExtensions__c1, _asn_ctx), - offsetof(struct ProvideCapabilities__criticalExtensions__c1, present), - sizeof(((struct ProvideCapabilities__criticalExtensions__c1 *)0)->present), - asn_MAP_c1_tag2el_3, - 4, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_c1_3 = { - "c1", - "c1", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_c1_constr_3, CHOICE_constraint }, - asn_MBR_c1_3, - 4, /* Elements count */ - &asn_SPC_c1_specs_3 /* Additional specs */ -}; - -static const ber_tlv_tag_t asn_DEF_criticalExtensionsFuture_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SEQUENCE_specifics_t asn_SPC_criticalExtensionsFuture_specs_8 = { - sizeof(struct ProvideCapabilities__criticalExtensions__criticalExtensionsFuture), - offsetof(struct ProvideCapabilities__criticalExtensions__criticalExtensionsFuture, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_criticalExtensionsFuture_8 = { - "criticalExtensionsFuture", - "criticalExtensionsFuture", - &asn_OP_SEQUENCE, - asn_DEF_criticalExtensionsFuture_tags_8, - sizeof(asn_DEF_criticalExtensionsFuture_tags_8) - /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]) - 1, /* 1 */ - asn_DEF_criticalExtensionsFuture_tags_8, /* Same as above */ - sizeof(asn_DEF_criticalExtensionsFuture_tags_8) - /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_criticalExtensionsFuture_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_criticalExtensions_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct ProvideCapabilities__criticalExtensions, choice.c1), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_c1_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "c1" - }, - { ATF_NOFLAGS, 0, offsetof(struct ProvideCapabilities__criticalExtensions, choice.criticalExtensionsFuture), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_criticalExtensionsFuture_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "criticalExtensionsFuture" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_criticalExtensions_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* c1 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* criticalExtensionsFuture */ -}; -static asn_CHOICE_specifics_t asn_SPC_criticalExtensions_specs_2 = { - sizeof(struct ProvideCapabilities__criticalExtensions), - offsetof(struct ProvideCapabilities__criticalExtensions, _asn_ctx), - offsetof(struct ProvideCapabilities__criticalExtensions, present), - sizeof(((struct ProvideCapabilities__criticalExtensions *)0)->present), - asn_MAP_criticalExtensions_tag2el_2, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_criticalExtensions_2 = { - "criticalExtensions", - "criticalExtensions", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_criticalExtensions_constr_2, CHOICE_constraint }, - asn_MBR_criticalExtensions_2, - 2, /* Elements count */ - &asn_SPC_criticalExtensions_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_ProvideCapabilities_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ProvideCapabilities, criticalExtensions), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_criticalExtensions_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "criticalExtensions" - }, -}; -static const ber_tlv_tag_t asn_DEF_ProvideCapabilities_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ProvideCapabilities_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* criticalExtensions */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ProvideCapabilities_specs_1 = { - sizeof(struct ProvideCapabilities), - offsetof(struct ProvideCapabilities, _asn_ctx), - asn_MAP_ProvideCapabilities_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ProvideCapabilities = { - "ProvideCapabilities", - "ProvideCapabilities", - &asn_OP_SEQUENCE, - asn_DEF_ProvideCapabilities_tags_1, - sizeof(asn_DEF_ProvideCapabilities_tags_1) - /sizeof(asn_DEF_ProvideCapabilities_tags_1[0]), /* 1 */ - asn_DEF_ProvideCapabilities_tags_1, /* Same as above */ - sizeof(asn_DEF_ProvideCapabilities_tags_1) - /sizeof(asn_DEF_ProvideCapabilities_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ProvideCapabilities_1, - 1, /* Elements count */ - &asn_SPC_ProvideCapabilities_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ProvideLocationInformation-r9-IEs.c b/asn.1/generated/ProvideLocationInformation-r9-IEs.c deleted file mode 100644 index 39ad0d3a..00000000 --- a/asn.1/generated/ProvideLocationInformation-r9-IEs.c +++ /dev/null @@ -1,262 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ProvideLocationInformation-r9-IEs.h" - -static asn_TYPE_member_t asn_MBR_ext1_8[] = { - { ATF_POINTER, 4, offsetof(struct ProvideLocationInformation_r9_IEs__ext1, sensor_ProvideLocationInformation_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Sensor_ProvideLocationInformation_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sensor-ProvideLocationInformation-r13" - }, - { ATF_POINTER, 3, offsetof(struct ProvideLocationInformation_r9_IEs__ext1, tbs_ProvideLocationInformation_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TBS_ProvideLocationInformation_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tbs-ProvideLocationInformation-r13" - }, - { ATF_POINTER, 2, offsetof(struct ProvideLocationInformation_r9_IEs__ext1, wlan_ProvideLocationInformation_r13), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WLAN_ProvideLocationInformation_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wlan-ProvideLocationInformation-r13" - }, - { ATF_POINTER, 1, offsetof(struct ProvideLocationInformation_r9_IEs__ext1, bt_ProvideLocationInformation_r13), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BT_ProvideLocationInformation_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bt-ProvideLocationInformation-r13" - }, -}; -static const int asn_MAP_ext1_oms_8[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-ProvideLocationInformation-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tbs-ProvideLocationInformation-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* wlan-ProvideLocationInformation-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* bt-ProvideLocationInformation-r13 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { - sizeof(struct ProvideLocationInformation_r9_IEs__ext1), - offsetof(struct ProvideLocationInformation_r9_IEs__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_8, - 4, /* Count of tags in the map */ - asn_MAP_ext1_oms_8, /* Optional members */ - 4, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_8 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_8, - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_8, /* Same as above */ - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_8, - 4, /* Elements count */ - &asn_SPC_ext1_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_13[] = { - { ATF_POINTER, 4, offsetof(struct ProvideLocationInformation_r9_IEs__ext2, nr_ECID_ProvideLocationInformation_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_ECID_ProvideLocationInformation_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-ECID-ProvideLocationInformation-r16" - }, - { ATF_POINTER, 3, offsetof(struct ProvideLocationInformation_r9_IEs__ext2, nr_Multi_RTT_ProvideLocationInformation_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-Multi-RTT-ProvideLocationInformation-r16" - }, - { ATF_POINTER, 2, offsetof(struct ProvideLocationInformation_r9_IEs__ext2, nr_DL_AoD_ProvideLocationInformation_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-AoD-ProvideLocationInformation-r16" - }, - { ATF_POINTER, 1, offsetof(struct ProvideLocationInformation_r9_IEs__ext2, nr_DL_TDOA_ProvideLocationInformation_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-TDOA-ProvideLocationInformation-r16" - }, -}; -static const int asn_MAP_ext2_oms_13[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_13[] = { - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_13[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-ECID-ProvideLocationInformation-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-Multi-RTT-ProvideLocationInformation-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-AoD-ProvideLocationInformation-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* nr-DL-TDOA-ProvideLocationInformation-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_13 = { - sizeof(struct ProvideLocationInformation_r9_IEs__ext2), - offsetof(struct ProvideLocationInformation_r9_IEs__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_13, - 4, /* Count of tags in the map */ - asn_MAP_ext2_oms_13, /* Optional members */ - 4, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_13 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_13, - sizeof(asn_DEF_ext2_tags_13) - /sizeof(asn_DEF_ext2_tags_13[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_13, /* Same as above */ - sizeof(asn_DEF_ext2_tags_13) - /sizeof(asn_DEF_ext2_tags_13[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_13, - 4, /* Elements count */ - &asn_SPC_ext2_specs_13 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_ProvideLocationInformation_r9_IEs_1[] = { - { ATF_POINTER, 7, offsetof(struct ProvideLocationInformation_r9_IEs, commonIEsProvideLocationInformation), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CommonIEsProvideLocationInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "commonIEsProvideLocationInformation" - }, - { ATF_POINTER, 6, offsetof(struct ProvideLocationInformation_r9_IEs, a_gnss_ProvideLocationInformation), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_A_GNSS_ProvideLocationInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "a-gnss-ProvideLocationInformation" - }, - { ATF_POINTER, 5, offsetof(struct ProvideLocationInformation_r9_IEs, otdoa_ProvideLocationInformation), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_ProvideLocationInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "otdoa-ProvideLocationInformation" - }, - { ATF_POINTER, 4, offsetof(struct ProvideLocationInformation_r9_IEs, ecid_ProvideLocationInformation), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ECID_ProvideLocationInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ecid-ProvideLocationInformation" - }, - { ATF_POINTER, 3, offsetof(struct ProvideLocationInformation_r9_IEs, epdu_ProvideLocationInformation), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EPDU_Sequence, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "epdu-ProvideLocationInformation" - }, - { ATF_POINTER, 2, offsetof(struct ProvideLocationInformation_r9_IEs, ext1), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - 0, - &asn_DEF_ext1_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct ProvideLocationInformation_r9_IEs, ext2), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - 0, - &asn_DEF_ext2_13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_ProvideLocationInformation_r9_IEs_oms_1[] = { 0, 1, 2, 3, 4, 5, 6 }; -static const ber_tlv_tag_t asn_DEF_ProvideLocationInformation_r9_IEs_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ProvideLocationInformation_r9_IEs_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* commonIEsProvideLocationInformation */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* a-gnss-ProvideLocationInformation */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* otdoa-ProvideLocationInformation */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ecid-ProvideLocationInformation */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* epdu-ProvideLocationInformation */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ProvideLocationInformation_r9_IEs_specs_1 = { - sizeof(struct ProvideLocationInformation_r9_IEs), - offsetof(struct ProvideLocationInformation_r9_IEs, _asn_ctx), - asn_MAP_ProvideLocationInformation_r9_IEs_tag2el_1, - 7, /* Count of tags in the map */ - asn_MAP_ProvideLocationInformation_r9_IEs_oms_1, /* Optional members */ - 5, 2, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ProvideLocationInformation_r9_IEs = { - "ProvideLocationInformation-r9-IEs", - "ProvideLocationInformation-r9-IEs", - &asn_OP_SEQUENCE, - asn_DEF_ProvideLocationInformation_r9_IEs_tags_1, - sizeof(asn_DEF_ProvideLocationInformation_r9_IEs_tags_1) - /sizeof(asn_DEF_ProvideLocationInformation_r9_IEs_tags_1[0]), /* 1 */ - asn_DEF_ProvideLocationInformation_r9_IEs_tags_1, /* Same as above */ - sizeof(asn_DEF_ProvideLocationInformation_r9_IEs_tags_1) - /sizeof(asn_DEF_ProvideLocationInformation_r9_IEs_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ProvideLocationInformation_r9_IEs_1, - 7, /* Elements count */ - &asn_SPC_ProvideLocationInformation_r9_IEs_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ProvideLocationInformation-r9-IEs.h b/asn.1/generated/ProvideLocationInformation-r9-IEs.h deleted file mode 100644 index a93e9648..00000000 --- a/asn.1/generated/ProvideLocationInformation-r9-IEs.h +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _ProvideLocationInformation_r9_IEs_H_ -#define _ProvideLocationInformation_r9_IEs_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct CommonIEsProvideLocationInformation; -struct A_GNSS_ProvideLocationInformation; -struct OTDOA_ProvideLocationInformation; -struct ECID_ProvideLocationInformation; -struct EPDU_Sequence; -struct Sensor_ProvideLocationInformation_r13; -struct TBS_ProvideLocationInformation_r13; -struct WLAN_ProvideLocationInformation_r13; -struct BT_ProvideLocationInformation_r13; -struct NR_ECID_ProvideLocationInformation_r16; -struct NR_Multi_RTT_ProvideLocationInformation_r16; -struct NR_DL_AoD_ProvideLocationInformation_r16; -struct NR_DL_TDOA_ProvideLocationInformation_r16; - -/* ProvideLocationInformation-r9-IEs */ -typedef struct ProvideLocationInformation_r9_IEs { - struct CommonIEsProvideLocationInformation *commonIEsProvideLocationInformation /* OPTIONAL */; - struct A_GNSS_ProvideLocationInformation *a_gnss_ProvideLocationInformation /* OPTIONAL */; - struct OTDOA_ProvideLocationInformation *otdoa_ProvideLocationInformation /* OPTIONAL */; - struct ECID_ProvideLocationInformation *ecid_ProvideLocationInformation /* OPTIONAL */; - struct EPDU_Sequence *epdu_ProvideLocationInformation /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct ProvideLocationInformation_r9_IEs__ext1 { - struct Sensor_ProvideLocationInformation_r13 *sensor_ProvideLocationInformation_r13 /* OPTIONAL */; - struct TBS_ProvideLocationInformation_r13 *tbs_ProvideLocationInformation_r13 /* OPTIONAL */; - struct WLAN_ProvideLocationInformation_r13 *wlan_ProvideLocationInformation_r13 /* OPTIONAL */; - struct BT_ProvideLocationInformation_r13 *bt_ProvideLocationInformation_r13 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct ProvideLocationInformation_r9_IEs__ext2 { - struct NR_ECID_ProvideLocationInformation_r16 *nr_ECID_ProvideLocationInformation_r16 /* OPTIONAL */; - struct NR_Multi_RTT_ProvideLocationInformation_r16 *nr_Multi_RTT_ProvideLocationInformation_r16 /* OPTIONAL */; - struct NR_DL_AoD_ProvideLocationInformation_r16 *nr_DL_AoD_ProvideLocationInformation_r16 /* OPTIONAL */; - struct NR_DL_TDOA_ProvideLocationInformation_r16 *nr_DL_TDOA_ProvideLocationInformation_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} ProvideLocationInformation_r9_IEs_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_ProvideLocationInformation_r9_IEs; -extern asn_SEQUENCE_specifics_t asn_SPC_ProvideLocationInformation_r9_IEs_specs_1; -extern asn_TYPE_member_t asn_MBR_ProvideLocationInformation_r9_IEs_1[7]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "CommonIEsProvideLocationInformation.h" -#include "A-GNSS-ProvideLocationInformation.h" -#include "OTDOA-ProvideLocationInformation.h" -#include "ECID-ProvideLocationInformation.h" -#include "EPDU-Sequence.h" -#include "Sensor-ProvideLocationInformation-r13.h" -#include "TBS-ProvideLocationInformation-r13.h" -#include "WLAN-ProvideLocationInformation-r13.h" -#include "BT-ProvideLocationInformation-r13.h" -#include "NR-ECID-ProvideLocationInformation-r16.h" -#include "NR-Multi-RTT-ProvideLocationInformation-r16.h" -#include "NR-DL-AoD-ProvideLocationInformation-r16.h" -#include "NR-DL-TDOA-ProvideLocationInformation-r16.h" - -#endif /* _ProvideLocationInformation_r9_IEs_H_ */ -#include diff --git a/asn.1/generated/ProvideLocationInformation.c b/asn.1/generated/ProvideLocationInformation.c deleted file mode 100644 index fe38c12a..00000000 --- a/asn.1/generated/ProvideLocationInformation.c +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ProvideLocationInformation.h" - -static asn_per_constraints_t asn_PER_type_c1_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_criticalExtensions_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_c1_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct ProvideLocationInformation__criticalExtensions__c1, choice.provideLocationInformation_r9), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ProvideLocationInformation_r9_IEs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "provideLocationInformation-r9" - }, - { ATF_NOFLAGS, 0, offsetof(struct ProvideLocationInformation__criticalExtensions__c1, choice.spare3), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare3" - }, - { ATF_NOFLAGS, 0, offsetof(struct ProvideLocationInformation__criticalExtensions__c1, choice.spare2), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare2" - }, - { ATF_NOFLAGS, 0, offsetof(struct ProvideLocationInformation__criticalExtensions__c1, choice.spare1), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare1" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_c1_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* provideLocationInformation-r9 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* spare3 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* spare2 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* spare1 */ -}; -static asn_CHOICE_specifics_t asn_SPC_c1_specs_3 = { - sizeof(struct ProvideLocationInformation__criticalExtensions__c1), - offsetof(struct ProvideLocationInformation__criticalExtensions__c1, _asn_ctx), - offsetof(struct ProvideLocationInformation__criticalExtensions__c1, present), - sizeof(((struct ProvideLocationInformation__criticalExtensions__c1 *)0)->present), - asn_MAP_c1_tag2el_3, - 4, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_c1_3 = { - "c1", - "c1", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_c1_constr_3, CHOICE_constraint }, - asn_MBR_c1_3, - 4, /* Elements count */ - &asn_SPC_c1_specs_3 /* Additional specs */ -}; - -static const ber_tlv_tag_t asn_DEF_criticalExtensionsFuture_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SEQUENCE_specifics_t asn_SPC_criticalExtensionsFuture_specs_8 = { - sizeof(struct ProvideLocationInformation__criticalExtensions__criticalExtensionsFuture), - offsetof(struct ProvideLocationInformation__criticalExtensions__criticalExtensionsFuture, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_criticalExtensionsFuture_8 = { - "criticalExtensionsFuture", - "criticalExtensionsFuture", - &asn_OP_SEQUENCE, - asn_DEF_criticalExtensionsFuture_tags_8, - sizeof(asn_DEF_criticalExtensionsFuture_tags_8) - /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]) - 1, /* 1 */ - asn_DEF_criticalExtensionsFuture_tags_8, /* Same as above */ - sizeof(asn_DEF_criticalExtensionsFuture_tags_8) - /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_criticalExtensionsFuture_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_criticalExtensions_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct ProvideLocationInformation__criticalExtensions, choice.c1), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_c1_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "c1" - }, - { ATF_NOFLAGS, 0, offsetof(struct ProvideLocationInformation__criticalExtensions, choice.criticalExtensionsFuture), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_criticalExtensionsFuture_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "criticalExtensionsFuture" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_criticalExtensions_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* c1 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* criticalExtensionsFuture */ -}; -static asn_CHOICE_specifics_t asn_SPC_criticalExtensions_specs_2 = { - sizeof(struct ProvideLocationInformation__criticalExtensions), - offsetof(struct ProvideLocationInformation__criticalExtensions, _asn_ctx), - offsetof(struct ProvideLocationInformation__criticalExtensions, present), - sizeof(((struct ProvideLocationInformation__criticalExtensions *)0)->present), - asn_MAP_criticalExtensions_tag2el_2, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_criticalExtensions_2 = { - "criticalExtensions", - "criticalExtensions", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_criticalExtensions_constr_2, CHOICE_constraint }, - asn_MBR_criticalExtensions_2, - 2, /* Elements count */ - &asn_SPC_criticalExtensions_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_ProvideLocationInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ProvideLocationInformation, criticalExtensions), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_criticalExtensions_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "criticalExtensions" - }, -}; -static const ber_tlv_tag_t asn_DEF_ProvideLocationInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ProvideLocationInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* criticalExtensions */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ProvideLocationInformation_specs_1 = { - sizeof(struct ProvideLocationInformation), - offsetof(struct ProvideLocationInformation, _asn_ctx), - asn_MAP_ProvideLocationInformation_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ProvideLocationInformation = { - "ProvideLocationInformation", - "ProvideLocationInformation", - &asn_OP_SEQUENCE, - asn_DEF_ProvideLocationInformation_tags_1, - sizeof(asn_DEF_ProvideLocationInformation_tags_1) - /sizeof(asn_DEF_ProvideLocationInformation_tags_1[0]), /* 1 */ - asn_DEF_ProvideLocationInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_ProvideLocationInformation_tags_1) - /sizeof(asn_DEF_ProvideLocationInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ProvideLocationInformation_1, - 1, /* Elements count */ - &asn_SPC_ProvideLocationInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/QoP.c b/asn.1/generated/QoP.c deleted file mode 100644 index 5935ada5..00000000 --- a/asn.1/generated/QoP.c +++ /dev/null @@ -1,202 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "QoP.h" - -static int -memb_horacc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_veracc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_maxLocAge_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_delay_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 7)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_horacc_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_veracc_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_maxLocAge_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_delay_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_QoP_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct QoP, horacc), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_horacc_constr_2, memb_horacc_constraint_1 }, - 0, 0, /* No default value */ - "horacc" - }, - { ATF_POINTER, 3, offsetof(struct QoP, veracc), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_veracc_constr_3, memb_veracc_constraint_1 }, - 0, 0, /* No default value */ - "veracc" - }, - { ATF_POINTER, 2, offsetof(struct QoP, maxLocAge), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_maxLocAge_constr_4, memb_maxLocAge_constraint_1 }, - 0, 0, /* No default value */ - "maxLocAge" - }, - { ATF_POINTER, 1, offsetof(struct QoP, delay), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_delay_constr_5, memb_delay_constraint_1 }, - 0, 0, /* No default value */ - "delay" - }, -}; -static const int asn_MAP_QoP_oms_1[] = { 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_QoP_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_QoP_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horacc */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* veracc */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* maxLocAge */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* delay */ -}; -asn_SEQUENCE_specifics_t asn_SPC_QoP_specs_1 = { - sizeof(struct QoP), - offsetof(struct QoP, _asn_ctx), - asn_MAP_QoP_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_QoP_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_QoP = { - "QoP", - "QoP", - &asn_OP_SEQUENCE, - asn_DEF_QoP_tags_1, - sizeof(asn_DEF_QoP_tags_1) - /sizeof(asn_DEF_QoP_tags_1[0]), /* 1 */ - asn_DEF_QoP_tags_1, /* Same as above */ - sizeof(asn_DEF_QoP_tags_1) - /sizeof(asn_DEF_QoP_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_QoP_1, - 4, /* Elements count */ - &asn_SPC_QoP_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/QoP.h b/asn.1/generated/QoP.h deleted file mode 100644 index 56ded831..00000000 --- a/asn.1/generated/QoP.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _QoP_H_ -#define _QoP_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* QoP */ -typedef struct QoP { - long horacc; - long *veracc /* OPTIONAL */; - long *maxLocAge /* OPTIONAL */; - long *delay /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} QoP_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_QoP; -extern asn_SEQUENCE_specifics_t asn_SPC_QoP_specs_1; -extern asn_TYPE_member_t asn_MBR_QoP_1[4]; - -#ifdef __cplusplus -} -#endif - -#endif /* _QoP_H_ */ -#include diff --git a/asn.1/generated/QoS.c b/asn.1/generated/QoS.c deleted file mode 100644 index 15938355..00000000 --- a/asn.1/generated/QoS.c +++ /dev/null @@ -1,212 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "QoS.h" - -static asn_TYPE_member_t asn_MBR_ext1_8[] = { - { ATF_POINTER, 1, offsetof(struct QoS__ext1, responseTimeNB_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ResponseTimeNB_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "responseTimeNB-r14" - }, -}; -static const int asn_MAP_ext1_oms_8[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* responseTimeNB-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { - sizeof(struct QoS__ext1), - offsetof(struct QoS__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_8, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_8, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_8 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_8, - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_8, /* Same as above */ - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_8, - 1, /* Elements count */ - &asn_SPC_ext1_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_10[] = { - { ATF_POINTER, 2, offsetof(struct QoS__ext2, horizontalAccuracyExt_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HorizontalAccuracyExt_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "horizontalAccuracyExt-r15" - }, - { ATF_POINTER, 1, offsetof(struct QoS__ext2, verticalAccuracyExt_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VerticalAccuracyExt_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "verticalAccuracyExt-r15" - }, -}; -static const int asn_MAP_ext2_oms_10[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_10[] = { - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_10[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horizontalAccuracyExt-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* verticalAccuracyExt-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_10 = { - sizeof(struct QoS__ext2), - offsetof(struct QoS__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_10, - 2, /* Count of tags in the map */ - asn_MAP_ext2_oms_10, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_10 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_10, - sizeof(asn_DEF_ext2_tags_10) - /sizeof(asn_DEF_ext2_tags_10[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_10, /* Same as above */ - sizeof(asn_DEF_ext2_tags_10) - /sizeof(asn_DEF_ext2_tags_10[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_10, - 2, /* Elements count */ - &asn_SPC_ext2_specs_10 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_QoS_1[] = { - { ATF_POINTER, 1, offsetof(struct QoS, horizontalAccuracy), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HorizontalAccuracy, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "horizontalAccuracy" - }, - { ATF_NOFLAGS, 0, offsetof(struct QoS, verticalCoordinateRequest), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "verticalCoordinateRequest" - }, - { ATF_POINTER, 2, offsetof(struct QoS, verticalAccuracy), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VerticalAccuracy, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "verticalAccuracy" - }, - { ATF_POINTER, 1, offsetof(struct QoS, responseTime), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ResponseTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "responseTime" - }, - { ATF_NOFLAGS, 0, offsetof(struct QoS, velocityRequest), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "velocityRequest" - }, - { ATF_POINTER, 2, offsetof(struct QoS, ext1), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - 0, - &asn_DEF_ext1_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct QoS, ext2), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - 0, - &asn_DEF_ext2_10, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_QoS_oms_1[] = { 0, 2, 3, 5, 6 }; -static const ber_tlv_tag_t asn_DEF_QoS_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_QoS_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horizontalAccuracy */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* verticalCoordinateRequest */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* verticalAccuracy */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* responseTime */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* velocityRequest */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_QoS_specs_1 = { - sizeof(struct QoS), - offsetof(struct QoS, _asn_ctx), - asn_MAP_QoS_tag2el_1, - 7, /* Count of tags in the map */ - asn_MAP_QoS_oms_1, /* Optional members */ - 3, 2, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_QoS = { - "QoS", - "QoS", - &asn_OP_SEQUENCE, - asn_DEF_QoS_tags_1, - sizeof(asn_DEF_QoS_tags_1) - /sizeof(asn_DEF_QoS_tags_1[0]), /* 1 */ - asn_DEF_QoS_tags_1, /* Same as above */ - sizeof(asn_DEF_QoS_tags_1) - /sizeof(asn_DEF_QoS_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_QoS_1, - 7, /* Elements count */ - &asn_SPC_QoS_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/QoS.h b/asn.1/generated/QoS.h deleted file mode 100644 index a68e45b0..00000000 --- a/asn.1/generated/QoS.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _QoS_H_ -#define _QoS_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct HorizontalAccuracy; -struct VerticalAccuracy; -struct ResponseTime; -struct ResponseTimeNB_r14; -struct HorizontalAccuracyExt_r15; -struct VerticalAccuracyExt_r15; - -/* QoS */ -typedef struct QoS { - struct HorizontalAccuracy *horizontalAccuracy /* OPTIONAL */; - BOOLEAN_t verticalCoordinateRequest; - struct VerticalAccuracy *verticalAccuracy /* OPTIONAL */; - struct ResponseTime *responseTime /* OPTIONAL */; - BOOLEAN_t velocityRequest; - /* - * This type is extensible, - * possible extensions are below. - */ - struct QoS__ext1 { - struct ResponseTimeNB_r14 *responseTimeNB_r14 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct QoS__ext2 { - struct HorizontalAccuracyExt_r15 *horizontalAccuracyExt_r15 /* OPTIONAL */; - struct VerticalAccuracyExt_r15 *verticalAccuracyExt_r15 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} QoS_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_QoS; -extern asn_SEQUENCE_specifics_t asn_SPC_QoS_specs_1; -extern asn_TYPE_member_t asn_MBR_QoS_1[7]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "HorizontalAccuracy.h" -#include "VerticalAccuracy.h" -#include "ResponseTime.h" -#include "ResponseTimeNB-r14.h" -#include "HorizontalAccuracyExt-r15.h" -#include "VerticalAccuracyExt-r15.h" - -#endif /* _QoS_H_ */ -#include diff --git a/asn.1/generated/RSRP-Range.c b/asn.1/generated/RSRP-Range.c deleted file mode 100644 index 516674b9..00000000 --- a/asn.1/generated/RSRP-Range.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RSRP-Range.h" - -int -RSRP_Range_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 97)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_RSRP_Range_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 97 } /* (0..97) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_RSRP_Range_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_RSRP_Range = { - "RSRP-Range", - "RSRP-Range", - &asn_OP_NativeInteger, - asn_DEF_RSRP_Range_tags_1, - sizeof(asn_DEF_RSRP_Range_tags_1) - /sizeof(asn_DEF_RSRP_Range_tags_1[0]), /* 1 */ - asn_DEF_RSRP_Range_tags_1, /* Same as above */ - sizeof(asn_DEF_RSRP_Range_tags_1) - /sizeof(asn_DEF_RSRP_Range_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_RSRP_Range_constr_1, RSRP_Range_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/RSRP-Range.h b/asn.1/generated/RSRP-Range.h deleted file mode 100644 index d1471f3b..00000000 --- a/asn.1/generated/RSRP-Range.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _RSRP_Range_H_ -#define _RSRP_Range_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* RSRP-Range */ -typedef long RSRP_Range_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_RSRP_Range_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_RSRP_Range; -asn_struct_free_f RSRP_Range_free; -asn_struct_print_f RSRP_Range_print; -asn_constr_check_f RSRP_Range_constraint; -ber_type_decoder_f RSRP_Range_decode_ber; -der_type_encoder_f RSRP_Range_encode_der; -xer_type_decoder_f RSRP_Range_decode_xer; -xer_type_encoder_f RSRP_Range_encode_xer; -per_type_decoder_f RSRP_Range_decode_uper; -per_type_encoder_f RSRP_Range_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _RSRP_Range_H_ */ -#include diff --git a/asn.1/generated/RSRQ-Range.c b/asn.1/generated/RSRQ-Range.c deleted file mode 100644 index 1fcee461..00000000 --- a/asn.1/generated/RSRQ-Range.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RSRQ-Range.h" - -int -RSRQ_Range_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 34)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_RSRQ_Range_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 34 } /* (0..34) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_RSRQ_Range_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_RSRQ_Range = { - "RSRQ-Range", - "RSRQ-Range", - &asn_OP_NativeInteger, - asn_DEF_RSRQ_Range_tags_1, - sizeof(asn_DEF_RSRQ_Range_tags_1) - /sizeof(asn_DEF_RSRQ_Range_tags_1[0]), /* 1 */ - asn_DEF_RSRQ_Range_tags_1, /* Same as above */ - sizeof(asn_DEF_RSRQ_Range_tags_1) - /sizeof(asn_DEF_RSRQ_Range_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_RSRQ_Range_constr_1, RSRQ_Range_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/RSRQ-Range.h b/asn.1/generated/RSRQ-Range.h deleted file mode 100644 index 4c694a84..00000000 --- a/asn.1/generated/RSRQ-Range.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _RSRQ_Range_H_ -#define _RSRQ_Range_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* RSRQ-Range */ -typedef long RSRQ_Range_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_RSRQ_Range_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_RSRQ_Range; -asn_struct_free_f RSRQ_Range_free; -asn_struct_print_f RSRQ_Range_print; -asn_constr_check_f RSRQ_Range_constraint; -ber_type_decoder_f RSRQ_Range_decode_ber; -der_type_encoder_f RSRQ_Range_encode_der; -xer_type_decoder_f RSRQ_Range_decode_xer; -xer_type_encoder_f RSRQ_Range_encode_xer; -per_type_decoder_f RSRQ_Range_decode_uper; -per_type_encoder_f RSRQ_Range_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _RSRQ_Range_H_ */ -#include diff --git a/asn.1/generated/RTD-InfoElement-r16.c b/asn.1/generated/RTD-InfoElement-r16.c deleted file mode 100644 index d0d906bd..00000000 --- a/asn.1/generated/RTD-InfoElement-r16.c +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RTD-InfoElement-r16.h" - -static int -memb_subframeOffset_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1966079)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_subframeOffset_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, 0, 1966079 } /* (0..1966079) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_RTD_InfoElement_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RTD_InfoElement_r16, trp_id_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TRP_ID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "trp-id-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RTD_InfoElement_r16, subframeOffset_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_subframeOffset_r16_constr_3, memb_subframeOffset_r16_constraint_1 }, - 0, 0, /* No default value */ - "subframeOffset-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RTD_InfoElement_r16, rtd_Quality_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_TimingMeasQuality_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rtd-Quality-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_RTD_InfoElement_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RTD_InfoElement_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* trp-id-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* subframeOffset-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* rtd-Quality-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RTD_InfoElement_r16_specs_1 = { - sizeof(struct RTD_InfoElement_r16), - offsetof(struct RTD_InfoElement_r16, _asn_ctx), - asn_MAP_RTD_InfoElement_r16_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_RTD_InfoElement_r16 = { - "RTD-InfoElement-r16", - "RTD-InfoElement-r16", - &asn_OP_SEQUENCE, - asn_DEF_RTD_InfoElement_r16_tags_1, - sizeof(asn_DEF_RTD_InfoElement_r16_tags_1) - /sizeof(asn_DEF_RTD_InfoElement_r16_tags_1[0]), /* 1 */ - asn_DEF_RTD_InfoElement_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_RTD_InfoElement_r16_tags_1) - /sizeof(asn_DEF_RTD_InfoElement_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_RTD_InfoElement_r16_1, - 3, /* Elements count */ - &asn_SPC_RTD_InfoElement_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RTD-InfoElement-r16.h b/asn.1/generated/RTD-InfoElement-r16.h deleted file mode 100644 index 83b95a50..00000000 --- a/asn.1/generated/RTD-InfoElement-r16.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _RTD_InfoElement_r16_H_ -#define _RTD_InfoElement_r16_H_ - - -#include - -/* Including external dependencies */ -#include "TRP-ID-r16.h" -#include -#include "NR-TimingMeasQuality-r16.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* RTD-InfoElement-r16 */ -typedef struct RTD_InfoElement_r16 { - TRP_ID_r16_t trp_id_r16; - long subframeOffset_r16; - NR_TimingMeasQuality_r16_t rtd_Quality_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} RTD_InfoElement_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_RTD_InfoElement_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_RTD_InfoElement_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_RTD_InfoElement_r16_1[3]; - -#ifdef __cplusplus -} -#endif - -#endif /* _RTD_InfoElement_r16_H_ */ -#include diff --git a/asn.1/generated/RTD-InfoList-r16.c b/asn.1/generated/RTD-InfoList-r16.c deleted file mode 100644 index f5fd2d8f..00000000 --- a/asn.1/generated/RTD-InfoList-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RTD-InfoList-r16.h" - -asn_per_constraints_t asn_PER_type_RTD_InfoList_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_RTD_InfoList_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_RTD_InfoListPerFreqLayer_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_RTD_InfoList_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_RTD_InfoList_r16_specs_1 = { - sizeof(struct RTD_InfoList_r16), - offsetof(struct RTD_InfoList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_RTD_InfoList_r16 = { - "RTD-InfoList-r16", - "RTD-InfoList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_RTD_InfoList_r16_tags_1, - sizeof(asn_DEF_RTD_InfoList_r16_tags_1) - /sizeof(asn_DEF_RTD_InfoList_r16_tags_1[0]), /* 1 */ - asn_DEF_RTD_InfoList_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_RTD_InfoList_r16_tags_1) - /sizeof(asn_DEF_RTD_InfoList_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_RTD_InfoList_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_RTD_InfoList_r16_1, - 1, /* Single element */ - &asn_SPC_RTD_InfoList_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RTD-InfoListPerFreqLayer-r16.c b/asn.1/generated/RTD-InfoListPerFreqLayer-r16.c deleted file mode 100644 index 8e4dbab9..00000000 --- a/asn.1/generated/RTD-InfoListPerFreqLayer-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RTD-InfoListPerFreqLayer-r16.h" - -asn_per_constraints_t asn_PER_type_RTD_InfoListPerFreqLayer_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 63 } /* (SIZE(1..63)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_RTD_InfoListPerFreqLayer_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_RTD_InfoElement_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_RTD_InfoListPerFreqLayer_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_RTD_InfoListPerFreqLayer_r16_specs_1 = { - sizeof(struct RTD_InfoListPerFreqLayer_r16), - offsetof(struct RTD_InfoListPerFreqLayer_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_RTD_InfoListPerFreqLayer_r16 = { - "RTD-InfoListPerFreqLayer-r16", - "RTD-InfoListPerFreqLayer-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_RTD_InfoListPerFreqLayer_r16_tags_1, - sizeof(asn_DEF_RTD_InfoListPerFreqLayer_r16_tags_1) - /sizeof(asn_DEF_RTD_InfoListPerFreqLayer_r16_tags_1[0]), /* 1 */ - asn_DEF_RTD_InfoListPerFreqLayer_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_RTD_InfoListPerFreqLayer_r16_tags_1) - /sizeof(asn_DEF_RTD_InfoListPerFreqLayer_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_RTD_InfoListPerFreqLayer_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_RTD_InfoListPerFreqLayer_r16_1, - 1, /* Single element */ - &asn_SPC_RTD_InfoListPerFreqLayer_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RTD.c b/asn.1/generated/RTD.c deleted file mode 100644 index 7f0749b2..00000000 --- a/asn.1/generated/RTD.c +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RTD.h" - -static int -memb_rTDValue_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 16777216)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_rTDAccuracy_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_rTDValue_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 25, -1, 0, 16777216 } /* (0..16777216) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_rTDAccuracy_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_RTD_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RTD, rTDValue), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rTDValue_constr_2, memb_rTDValue_constraint_1 }, - 0, 0, /* No default value */ - "rTDValue" - }, - { ATF_NOFLAGS, 0, offsetof(struct RTD, rTDUnits), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RTDUnits, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rTDUnits" - }, - { ATF_POINTER, 1, offsetof(struct RTD, rTDAccuracy), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rTDAccuracy_constr_4, memb_rTDAccuracy_constraint_1 }, - 0, 0, /* No default value */ - "rTDAccuracy" - }, -}; -static const int asn_MAP_RTD_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_RTD_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RTD_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rTDValue */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* rTDUnits */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* rTDAccuracy */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RTD_specs_1 = { - sizeof(struct RTD), - offsetof(struct RTD, _asn_ctx), - asn_MAP_RTD_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_RTD_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_RTD = { - "RTD", - "RTD", - &asn_OP_SEQUENCE, - asn_DEF_RTD_tags_1, - sizeof(asn_DEF_RTD_tags_1) - /sizeof(asn_DEF_RTD_tags_1[0]), /* 1 */ - asn_DEF_RTD_tags_1, /* Same as above */ - sizeof(asn_DEF_RTD_tags_1) - /sizeof(asn_DEF_RTD_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_RTD_1, - 3, /* Elements count */ - &asn_SPC_RTD_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RTD.h b/asn.1/generated/RTD.h deleted file mode 100644 index 38bcd336..00000000 --- a/asn.1/generated/RTD.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _RTD_H_ -#define _RTD_H_ - - -#include - -/* Including external dependencies */ -#include -#include "RTDUnits.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* RTD */ -typedef struct RTD { - long rTDValue; - RTDUnits_t rTDUnits; - long *rTDAccuracy /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} RTD_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_RTD; -extern asn_SEQUENCE_specifics_t asn_SPC_RTD_specs_1; -extern asn_TYPE_member_t asn_MBR_RTD_1[3]; - -#ifdef __cplusplus -} -#endif - -#endif /* _RTD_H_ */ -#include diff --git a/asn.1/generated/RTDUnits.c b/asn.1/generated/RTDUnits.c deleted file mode 100644 index f168a580..00000000 --- a/asn.1/generated/RTDUnits.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RTDUnits.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_RTDUnits_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_RTDUnits_value2enum_1[] = { - { 0, 12, "microseconds" }, - { 1, 21, "hundredsofnanoseconds" }, - { 2, 17, "tensofnanoseconds" }, - { 3, 11, "nanoseconds" }, - { 4, 19, "tenthsofnanoseconds" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_RTDUnits_enum2value_1[] = { - 1, /* hundredsofnanoseconds(1) */ - 0, /* microseconds(0) */ - 3, /* nanoseconds(3) */ - 2, /* tensofnanoseconds(2) */ - 4 /* tenthsofnanoseconds(4) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_RTDUnits_specs_1 = { - asn_MAP_RTDUnits_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_RTDUnits_enum2value_1, /* N => "tag"; sorted by N */ - 5, /* Number of elements in the maps */ - 6, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_RTDUnits_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_RTDUnits = { - "RTDUnits", - "RTDUnits", - &asn_OP_NativeEnumerated, - asn_DEF_RTDUnits_tags_1, - sizeof(asn_DEF_RTDUnits_tags_1) - /sizeof(asn_DEF_RTDUnits_tags_1[0]), /* 1 */ - asn_DEF_RTDUnits_tags_1, /* Same as above */ - sizeof(asn_DEF_RTDUnits_tags_1) - /sizeof(asn_DEF_RTDUnits_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_RTDUnits_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_RTDUnits_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RTK-CorrectionDifferencesElement-r15.c b/asn.1/generated/RTK-CorrectionDifferencesElement-r15.c deleted file mode 100644 index 80191187..00000000 --- a/asn.1/generated/RTK-CorrectionDifferencesElement-r15.c +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RTK-CorrectionDifferencesElement-r15.h" - -asn_TYPE_member_t asn_MBR_RTK_CorrectionDifferencesElement_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RTK_CorrectionDifferencesElement_r15, epochTime_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SystemTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "epochTime-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct RTK_CorrectionDifferencesElement_r15, auxiliary_referenceStationID_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_ReferenceStationID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "auxiliary-referenceStationID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct RTK_CorrectionDifferencesElement_r15, geometric_ionospheric_corrections_differences_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Geometric_Ionospheric_Corrections_Differences_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "geometric-ionospheric-corrections-differences-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_RTK_CorrectionDifferencesElement_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RTK_CorrectionDifferencesElement_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* auxiliary-referenceStationID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* geometric-ionospheric-corrections-differences-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RTK_CorrectionDifferencesElement_r15_specs_1 = { - sizeof(struct RTK_CorrectionDifferencesElement_r15), - offsetof(struct RTK_CorrectionDifferencesElement_r15, _asn_ctx), - asn_MAP_RTK_CorrectionDifferencesElement_r15_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_RTK_CorrectionDifferencesElement_r15 = { - "RTK-CorrectionDifferencesElement-r15", - "RTK-CorrectionDifferencesElement-r15", - &asn_OP_SEQUENCE, - asn_DEF_RTK_CorrectionDifferencesElement_r15_tags_1, - sizeof(asn_DEF_RTK_CorrectionDifferencesElement_r15_tags_1) - /sizeof(asn_DEF_RTK_CorrectionDifferencesElement_r15_tags_1[0]), /* 1 */ - asn_DEF_RTK_CorrectionDifferencesElement_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_RTK_CorrectionDifferencesElement_r15_tags_1) - /sizeof(asn_DEF_RTK_CorrectionDifferencesElement_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_RTK_CorrectionDifferencesElement_r15_1, - 3, /* Elements count */ - &asn_SPC_RTK_CorrectionDifferencesElement_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RTK-CorrectionDifferencesList-r15.c b/asn.1/generated/RTK-CorrectionDifferencesList-r15.c deleted file mode 100644 index f4b8256d..00000000 --- a/asn.1/generated/RTK-CorrectionDifferencesList-r15.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RTK-CorrectionDifferencesList-r15.h" - -asn_per_constraints_t asn_PER_type_RTK_CorrectionDifferencesList_r15_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_RTK_CorrectionDifferencesList_r15_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_RTK_CorrectionDifferencesElement_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_RTK_CorrectionDifferencesList_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_RTK_CorrectionDifferencesList_r15_specs_1 = { - sizeof(struct RTK_CorrectionDifferencesList_r15), - offsetof(struct RTK_CorrectionDifferencesList_r15, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_RTK_CorrectionDifferencesList_r15 = { - "RTK-CorrectionDifferencesList-r15", - "RTK-CorrectionDifferencesList-r15", - &asn_OP_SEQUENCE_OF, - asn_DEF_RTK_CorrectionDifferencesList_r15_tags_1, - sizeof(asn_DEF_RTK_CorrectionDifferencesList_r15_tags_1) - /sizeof(asn_DEF_RTK_CorrectionDifferencesList_r15_tags_1[0]), /* 1 */ - asn_DEF_RTK_CorrectionDifferencesList_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_RTK_CorrectionDifferencesList_r15_tags_1) - /sizeof(asn_DEF_RTK_CorrectionDifferencesList_r15_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_RTK_CorrectionDifferencesList_r15_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_RTK_CorrectionDifferencesList_r15_1, - 1, /* Single element */ - &asn_SPC_RTK_CorrectionDifferencesList_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RTK-Residuals-Element-r15.c b/asn.1/generated/RTK-Residuals-Element-r15.c deleted file mode 100644 index b097f711..00000000 --- a/asn.1/generated/RTK-Residuals-Element-r15.c +++ /dev/null @@ -1,250 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RTK-Residuals-Element-r15.h" - -static int -memb_s_oc_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_s_od_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_s_oh_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_s_lc_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_s_ld_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_s_oc_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_s_od_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_s_oh_r15_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_s_lc_r15_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_s_ld_r15_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_RTK_Residuals_Element_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RTK_Residuals_Element_r15, svID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct RTK_Residuals_Element_r15, s_oc_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_s_oc_r15_constr_3, memb_s_oc_r15_constraint_1 }, - 0, 0, /* No default value */ - "s-oc-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct RTK_Residuals_Element_r15, s_od_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_s_od_r15_constr_4, memb_s_od_r15_constraint_1 }, - 0, 0, /* No default value */ - "s-od-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct RTK_Residuals_Element_r15, s_oh_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_s_oh_r15_constr_5, memb_s_oh_r15_constraint_1 }, - 0, 0, /* No default value */ - "s-oh-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct RTK_Residuals_Element_r15, s_lc_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_s_lc_r15_constr_6, memb_s_lc_r15_constraint_1 }, - 0, 0, /* No default value */ - "s-lc-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct RTK_Residuals_Element_r15, s_ld_r15), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_s_ld_r15_constr_7, memb_s_ld_r15_constraint_1 }, - 0, 0, /* No default value */ - "s-ld-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_RTK_Residuals_Element_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RTK_Residuals_Element_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* s-oc-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* s-od-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* s-oh-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* s-lc-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* s-ld-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RTK_Residuals_Element_r15_specs_1 = { - sizeof(struct RTK_Residuals_Element_r15), - offsetof(struct RTK_Residuals_Element_r15, _asn_ctx), - asn_MAP_RTK_Residuals_Element_r15_tag2el_1, - 6, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_RTK_Residuals_Element_r15 = { - "RTK-Residuals-Element-r15", - "RTK-Residuals-Element-r15", - &asn_OP_SEQUENCE, - asn_DEF_RTK_Residuals_Element_r15_tags_1, - sizeof(asn_DEF_RTK_Residuals_Element_r15_tags_1) - /sizeof(asn_DEF_RTK_Residuals_Element_r15_tags_1[0]), /* 1 */ - asn_DEF_RTK_Residuals_Element_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_RTK_Residuals_Element_r15_tags_1) - /sizeof(asn_DEF_RTK_Residuals_Element_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_RTK_Residuals_Element_r15_1, - 6, /* Elements count */ - &asn_SPC_RTK_Residuals_Element_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RTK-Residuals-List-r15.c b/asn.1/generated/RTK-Residuals-List-r15.c deleted file mode 100644 index 737e89f1..00000000 --- a/asn.1/generated/RTK-Residuals-List-r15.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RTK-Residuals-List-r15.h" - -asn_per_constraints_t asn_PER_type_RTK_Residuals_List_r15_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_RTK_Residuals_List_r15_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_RTK_Residuals_Element_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_RTK_Residuals_List_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_RTK_Residuals_List_r15_specs_1 = { - sizeof(struct RTK_Residuals_List_r15), - offsetof(struct RTK_Residuals_List_r15, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_RTK_Residuals_List_r15 = { - "RTK-Residuals-List-r15", - "RTK-Residuals-List-r15", - &asn_OP_SEQUENCE_OF, - asn_DEF_RTK_Residuals_List_r15_tags_1, - sizeof(asn_DEF_RTK_Residuals_List_r15_tags_1) - /sizeof(asn_DEF_RTK_Residuals_List_r15_tags_1[0]), /* 1 */ - asn_DEF_RTK_Residuals_List_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_RTK_Residuals_List_r15_tags_1) - /sizeof(asn_DEF_RTK_Residuals_List_r15_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_RTK_Residuals_List_r15_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_RTK_Residuals_List_r15_1, - 1, /* Single element */ - &asn_SPC_RTK_Residuals_List_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ReferencePoint-r16.c b/asn.1/generated/ReferencePoint-r16.c deleted file mode 100644 index fedd04b5..00000000 --- a/asn.1/generated/ReferencePoint-r16.c +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ReferencePoint-r16.h" - -static asn_per_constraints_t asn_PER_type_referencePointGeographicLocation_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_referencePointGeographicLocation_r16_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct ReferencePoint_r16__referencePointGeographicLocation_r16, choice.location3D_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "location3D-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct ReferencePoint_r16__referencePointGeographicLocation_r16, choice.ha_location3D_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ha-location3D-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_referencePointGeographicLocation_r16_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* location3D-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ha-location3D-r16 */ -}; -static asn_CHOICE_specifics_t asn_SPC_referencePointGeographicLocation_r16_specs_2 = { - sizeof(struct ReferencePoint_r16__referencePointGeographicLocation_r16), - offsetof(struct ReferencePoint_r16__referencePointGeographicLocation_r16, _asn_ctx), - offsetof(struct ReferencePoint_r16__referencePointGeographicLocation_r16, present), - sizeof(((struct ReferencePoint_r16__referencePointGeographicLocation_r16 *)0)->present), - asn_MAP_referencePointGeographicLocation_r16_tag2el_2, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_referencePointGeographicLocation_r16_2 = { - "referencePointGeographicLocation-r16", - "referencePointGeographicLocation-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_referencePointGeographicLocation_r16_constr_2, CHOICE_constraint }, - asn_MBR_referencePointGeographicLocation_r16_2, - 2, /* Elements count */ - &asn_SPC_referencePointGeographicLocation_r16_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_ReferencePoint_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ReferencePoint_r16, referencePointGeographicLocation_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_referencePointGeographicLocation_r16_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referencePointGeographicLocation-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_ReferencePoint_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ReferencePoint_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* referencePointGeographicLocation-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ReferencePoint_r16_specs_1 = { - sizeof(struct ReferencePoint_r16), - offsetof(struct ReferencePoint_r16, _asn_ctx), - asn_MAP_ReferencePoint_r16_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ReferencePoint_r16 = { - "ReferencePoint-r16", - "ReferencePoint-r16", - &asn_OP_SEQUENCE, - asn_DEF_ReferencePoint_r16_tags_1, - sizeof(asn_DEF_ReferencePoint_r16_tags_1) - /sizeof(asn_DEF_ReferencePoint_r16_tags_1[0]), /* 1 */ - asn_DEF_ReferencePoint_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_ReferencePoint_r16_tags_1) - /sizeof(asn_DEF_ReferencePoint_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ReferencePoint_r16_1, - 1, /* Elements count */ - &asn_SPC_ReferencePoint_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ReferenceStationList-r16.c b/asn.1/generated/ReferenceStationList-r16.c deleted file mode 100644 index f95be568..00000000 --- a/asn.1/generated/ReferenceStationList-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ReferenceStationList-r16.h" - -asn_per_constraints_t asn_PER_type_ReferenceStationList_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_ReferenceStationList_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_GNSS_ReferenceStationID_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_ReferenceStationList_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_ReferenceStationList_r16_specs_1 = { - sizeof(struct ReferenceStationList_r16), - offsetof(struct ReferenceStationList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_ReferenceStationList_r16 = { - "ReferenceStationList-r16", - "ReferenceStationList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_ReferenceStationList_r16_tags_1, - sizeof(asn_DEF_ReferenceStationList_r16_tags_1) - /sizeof(asn_DEF_ReferenceStationList_r16_tags_1[0]), /* 1 */ - asn_DEF_ReferenceStationList_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_ReferenceStationList_r16_tags_1) - /sizeof(asn_DEF_ReferenceStationList_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_ReferenceStationList_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_ReferenceStationList_r16_1, - 1, /* Single element */ - &asn_SPC_ReferenceStationList_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ReferenceTRP-RTD-Info-r16.c b/asn.1/generated/ReferenceTRP-RTD-Info-r16.c deleted file mode 100644 index e491ac55..00000000 --- a/asn.1/generated/ReferenceTRP-RTD-Info-r16.c +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ReferenceTRP-RTD-Info-r16.h" - -static int -memb_systemFrameNumber_r16_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 10)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_systemFrameNumber_r16_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_refTime_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_refTime_r16_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct ReferenceTRP_RTD_Info_r16__refTime_r16, choice.systemFrameNumber_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_systemFrameNumber_r16_constr_4, memb_systemFrameNumber_r16_constraint_3 }, - 0, 0, /* No default value */ - "systemFrameNumber-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct ReferenceTRP_RTD_Info_r16__refTime_r16, choice.utc_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTCTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utc-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_refTime_r16_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* systemFrameNumber-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* utc-r16 */ -}; -static asn_CHOICE_specifics_t asn_SPC_refTime_r16_specs_3 = { - sizeof(struct ReferenceTRP_RTD_Info_r16__refTime_r16), - offsetof(struct ReferenceTRP_RTD_Info_r16__refTime_r16, _asn_ctx), - offsetof(struct ReferenceTRP_RTD_Info_r16__refTime_r16, present), - sizeof(((struct ReferenceTRP_RTD_Info_r16__refTime_r16 *)0)->present), - asn_MAP_refTime_r16_tag2el_3, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_refTime_r16_3 = { - "refTime-r16", - "refTime-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_refTime_r16_constr_3, CHOICE_constraint }, - asn_MBR_refTime_r16_3, - 2, /* Elements count */ - &asn_SPC_refTime_r16_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_ReferenceTRP_RTD_Info_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ReferenceTRP_RTD_Info_r16, ref_trp_id_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TRP_ID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ref-trp-id-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct ReferenceTRP_RTD_Info_r16, refTime_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_refTime_r16_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "refTime-r16" - }, - { ATF_POINTER, 1, offsetof(struct ReferenceTRP_RTD_Info_r16, rtd_RefQuality_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_TimingMeasQuality_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rtd-RefQuality-r16" - }, -}; -static const int asn_MAP_ReferenceTRP_RTD_Info_r16_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_ReferenceTRP_RTD_Info_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ReferenceTRP_RTD_Info_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ref-trp-id-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refTime-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* rtd-RefQuality-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ReferenceTRP_RTD_Info_r16_specs_1 = { - sizeof(struct ReferenceTRP_RTD_Info_r16), - offsetof(struct ReferenceTRP_RTD_Info_r16, _asn_ctx), - asn_MAP_ReferenceTRP_RTD_Info_r16_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_ReferenceTRP_RTD_Info_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ReferenceTRP_RTD_Info_r16 = { - "ReferenceTRP-RTD-Info-r16", - "ReferenceTRP-RTD-Info-r16", - &asn_OP_SEQUENCE, - asn_DEF_ReferenceTRP_RTD_Info_r16_tags_1, - sizeof(asn_DEF_ReferenceTRP_RTD_Info_r16_tags_1) - /sizeof(asn_DEF_ReferenceTRP_RTD_Info_r16_tags_1[0]), /* 1 */ - asn_DEF_ReferenceTRP_RTD_Info_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_ReferenceTRP_RTD_Info_r16_tags_1) - /sizeof(asn_DEF_ReferenceTRP_RTD_Info_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ReferenceTRP_RTD_Info_r16_1, - 3, /* Elements count */ - &asn_SPC_ReferenceTRP_RTD_Info_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ReferenceTRP-RTD-Info-r16.h b/asn.1/generated/ReferenceTRP-RTD-Info-r16.h deleted file mode 100644 index 2e4f4adc..00000000 --- a/asn.1/generated/ReferenceTRP-RTD-Info-r16.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _ReferenceTRP_RTD_Info_r16_H_ -#define _ReferenceTRP_RTD_Info_r16_H_ - - -#include - -/* Including external dependencies */ -#include "TRP-ID-r16.h" -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum ReferenceTRP_RTD_Info_r16__refTime_r16_PR { - ReferenceTRP_RTD_Info_r16__refTime_r16_PR_NOTHING, /* No components present */ - ReferenceTRP_RTD_Info_r16__refTime_r16_PR_systemFrameNumber_r16, - ReferenceTRP_RTD_Info_r16__refTime_r16_PR_utc_r16 - /* Extensions may appear below */ - -} ReferenceTRP_RTD_Info_r16__refTime_r16_PR; - -/* Forward declarations */ -struct NR_TimingMeasQuality_r16; - -/* ReferenceTRP-RTD-Info-r16 */ -typedef struct ReferenceTRP_RTD_Info_r16 { - TRP_ID_r16_t ref_trp_id_r16; - struct ReferenceTRP_RTD_Info_r16__refTime_r16 { - ReferenceTRP_RTD_Info_r16__refTime_r16_PR present; - union ReferenceTRP_RTD_Info_r16__refTime_r16_u { - BIT_STRING_t systemFrameNumber_r16; - UTCTime_t utc_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } refTime_r16; - struct NR_TimingMeasQuality_r16 *rtd_RefQuality_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} ReferenceTRP_RTD_Info_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_ReferenceTRP_RTD_Info_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_ReferenceTRP_RTD_Info_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_ReferenceTRP_RTD_Info_r16_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-TimingMeasQuality-r16.h" - -#endif /* _ReferenceTRP_RTD_Info_r16_H_ */ -#include diff --git a/asn.1/generated/RegionIgpElement-r16.c b/asn.1/generated/RegionIgpElement-r16.c deleted file mode 100644 index 81f4af8b..00000000 --- a/asn.1/generated/RegionIgpElement-r16.c +++ /dev/null @@ -1,1280 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RegionIgpElement-r16.h" - -static int -memb_regionID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givei1_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givd1_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givei2_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givd2_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givei3_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givd3_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givei4_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givd4_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givei5_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givd5_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givei6_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givd6_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givei7_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givd7_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givei8_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givd8_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givei9_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givd9_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givei10_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givd10_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givei11_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givd11_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givei12_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givd12_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givei13_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givd13_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givei14_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givd14_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givei15_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_givd15_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_regionID_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givei1_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givd1_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givei2_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givd2_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givei3_r16_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givd3_r16_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givei4_r16_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givd4_r16_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givei5_r16_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givd5_r16_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givei6_r16_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givd6_r16_constr_14 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givei7_r16_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givd7_r16_constr_16 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givei8_r16_constr_17 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givd8_r16_constr_18 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givei9_r16_constr_19 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givd9_r16_constr_20 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givei10_r16_constr_21 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givd10_r16_constr_22 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givei11_r16_constr_23 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givd11_r16_constr_24 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givei12_r16_constr_25 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givd12_r16_constr_26 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givei13_r16_constr_27 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givd13_r16_constr_28 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givei14_r16_constr_29 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givd14_r16_constr_30 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givei15_r16_constr_31 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_givd15_r16_constr_32 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_RegionIgpElement_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, regionID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_regionID_r16_constr_2, memb_regionID_r16_constraint_1 }, - 0, 0, /* No default value */ - "regionID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei1_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givei1_r16_constr_3, memb_givei1_r16_constraint_1 }, - 0, 0, /* No default value */ - "givei1-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd1_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givd1_r16_constr_4, memb_givd1_r16_constraint_1 }, - 0, 0, /* No default value */ - "givd1-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei2_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givei2_r16_constr_5, memb_givei2_r16_constraint_1 }, - 0, 0, /* No default value */ - "givei2-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd2_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givd2_r16_constr_6, memb_givd2_r16_constraint_1 }, - 0, 0, /* No default value */ - "givd2-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei3_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givei3_r16_constr_7, memb_givei3_r16_constraint_1 }, - 0, 0, /* No default value */ - "givei3-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd3_r16), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givd3_r16_constr_8, memb_givd3_r16_constraint_1 }, - 0, 0, /* No default value */ - "givd3-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei4_r16), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givei4_r16_constr_9, memb_givei4_r16_constraint_1 }, - 0, 0, /* No default value */ - "givei4-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd4_r16), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givd4_r16_constr_10, memb_givd4_r16_constraint_1 }, - 0, 0, /* No default value */ - "givd4-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei5_r16), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givei5_r16_constr_11, memb_givei5_r16_constraint_1 }, - 0, 0, /* No default value */ - "givei5-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd5_r16), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givd5_r16_constr_12, memb_givd5_r16_constraint_1 }, - 0, 0, /* No default value */ - "givd5-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei6_r16), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givei6_r16_constr_13, memb_givei6_r16_constraint_1 }, - 0, 0, /* No default value */ - "givei6-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd6_r16), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givd6_r16_constr_14, memb_givd6_r16_constraint_1 }, - 0, 0, /* No default value */ - "givd6-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei7_r16), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givei7_r16_constr_15, memb_givei7_r16_constraint_1 }, - 0, 0, /* No default value */ - "givei7-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd7_r16), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givd7_r16_constr_16, memb_givd7_r16_constraint_1 }, - 0, 0, /* No default value */ - "givd7-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei8_r16), - (ASN_TAG_CLASS_CONTEXT | (15 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givei8_r16_constr_17, memb_givei8_r16_constraint_1 }, - 0, 0, /* No default value */ - "givei8-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd8_r16), - (ASN_TAG_CLASS_CONTEXT | (16 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givd8_r16_constr_18, memb_givd8_r16_constraint_1 }, - 0, 0, /* No default value */ - "givd8-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei9_r16), - (ASN_TAG_CLASS_CONTEXT | (17 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givei9_r16_constr_19, memb_givei9_r16_constraint_1 }, - 0, 0, /* No default value */ - "givei9-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd9_r16), - (ASN_TAG_CLASS_CONTEXT | (18 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givd9_r16_constr_20, memb_givd9_r16_constraint_1 }, - 0, 0, /* No default value */ - "givd9-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei10_r16), - (ASN_TAG_CLASS_CONTEXT | (19 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givei10_r16_constr_21, memb_givei10_r16_constraint_1 }, - 0, 0, /* No default value */ - "givei10-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd10_r16), - (ASN_TAG_CLASS_CONTEXT | (20 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givd10_r16_constr_22, memb_givd10_r16_constraint_1 }, - 0, 0, /* No default value */ - "givd10-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei11_r16), - (ASN_TAG_CLASS_CONTEXT | (21 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givei11_r16_constr_23, memb_givei11_r16_constraint_1 }, - 0, 0, /* No default value */ - "givei11-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd11_r16), - (ASN_TAG_CLASS_CONTEXT | (22 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givd11_r16_constr_24, memb_givd11_r16_constraint_1 }, - 0, 0, /* No default value */ - "givd11-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei12_r16), - (ASN_TAG_CLASS_CONTEXT | (23 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givei12_r16_constr_25, memb_givei12_r16_constraint_1 }, - 0, 0, /* No default value */ - "givei12-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd12_r16), - (ASN_TAG_CLASS_CONTEXT | (24 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givd12_r16_constr_26, memb_givd12_r16_constraint_1 }, - 0, 0, /* No default value */ - "givd12-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei13_r16), - (ASN_TAG_CLASS_CONTEXT | (25 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givei13_r16_constr_27, memb_givei13_r16_constraint_1 }, - 0, 0, /* No default value */ - "givei13-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd13_r16), - (ASN_TAG_CLASS_CONTEXT | (26 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givd13_r16_constr_28, memb_givd13_r16_constraint_1 }, - 0, 0, /* No default value */ - "givd13-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei14_r16), - (ASN_TAG_CLASS_CONTEXT | (27 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givei14_r16_constr_29, memb_givei14_r16_constraint_1 }, - 0, 0, /* No default value */ - "givei14-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd14_r16), - (ASN_TAG_CLASS_CONTEXT | (28 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givd14_r16_constr_30, memb_givd14_r16_constraint_1 }, - 0, 0, /* No default value */ - "givd14-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei15_r16), - (ASN_TAG_CLASS_CONTEXT | (29 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givei15_r16_constr_31, memb_givei15_r16_constraint_1 }, - 0, 0, /* No default value */ - "givei15-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd15_r16), - (ASN_TAG_CLASS_CONTEXT | (30 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_givd15_r16_constr_32, memb_givd15_r16_constraint_1 }, - 0, 0, /* No default value */ - "givd15-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_RegionIgpElement_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RegionIgpElement_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* regionID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* givei1-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* givd1-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* givei2-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* givd2-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* givei3-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* givd3-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* givei4-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* givd4-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* givei5-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* givd5-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* givei6-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* givd6-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* givei7-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* givd7-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* givei8-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 }, /* givd8-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (17 << 2)), 17, 0, 0 }, /* givei9-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (18 << 2)), 18, 0, 0 }, /* givd9-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (19 << 2)), 19, 0, 0 }, /* givei10-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (20 << 2)), 20, 0, 0 }, /* givd10-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (21 << 2)), 21, 0, 0 }, /* givei11-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (22 << 2)), 22, 0, 0 }, /* givd11-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (23 << 2)), 23, 0, 0 }, /* givei12-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (24 << 2)), 24, 0, 0 }, /* givd12-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (25 << 2)), 25, 0, 0 }, /* givei13-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (26 << 2)), 26, 0, 0 }, /* givd13-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (27 << 2)), 27, 0, 0 }, /* givei14-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (28 << 2)), 28, 0, 0 }, /* givd14-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (29 << 2)), 29, 0, 0 }, /* givei15-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (30 << 2)), 30, 0, 0 } /* givd15-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RegionIgpElement_r16_specs_1 = { - sizeof(struct RegionIgpElement_r16), - offsetof(struct RegionIgpElement_r16, _asn_ctx), - asn_MAP_RegionIgpElement_r16_tag2el_1, - 31, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 31, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_RegionIgpElement_r16 = { - "RegionIgpElement-r16", - "RegionIgpElement-r16", - &asn_OP_SEQUENCE, - asn_DEF_RegionIgpElement_r16_tags_1, - sizeof(asn_DEF_RegionIgpElement_r16_tags_1) - /sizeof(asn_DEF_RegionIgpElement_r16_tags_1[0]), /* 1 */ - asn_DEF_RegionIgpElement_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_RegionIgpElement_r16_tags_1) - /sizeof(asn_DEF_RegionIgpElement_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_RegionIgpElement_r16_1, - 31, /* Elements count */ - &asn_SPC_RegionIgpElement_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RegionIgpList-r16.c b/asn.1/generated/RegionIgpList-r16.c deleted file mode 100644 index f7d43b5c..00000000 --- a/asn.1/generated/RegionIgpList-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RegionIgpList-r16.h" - -asn_per_constraints_t asn_PER_type_RegionIgpList_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_RegionIgpList_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_RegionIgpElement_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_RegionIgpList_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_RegionIgpList_r16_specs_1 = { - sizeof(struct RegionIgpList_r16), - offsetof(struct RegionIgpList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_RegionIgpList_r16 = { - "RegionIgpList-r16", - "RegionIgpList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_RegionIgpList_r16_tags_1, - sizeof(asn_DEF_RegionIgpList_r16_tags_1) - /sizeof(asn_DEF_RegionIgpList_r16_tags_1[0]), /* 1 */ - asn_DEF_RegionIgpList_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_RegionIgpList_r16_tags_1) - /sizeof(asn_DEF_RegionIgpList_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_RegionIgpList_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_RegionIgpList_r16_1, - 1, /* Single element */ - &asn_SPC_RegionIgpList_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RelativeLocation-r16.c b/asn.1/generated/RelativeLocation-r16.c deleted file mode 100644 index 05eb9de6..00000000 --- a/asn.1/generated/RelativeLocation-r16.c +++ /dev/null @@ -1,204 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RelativeLocation-r16.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_milli_arc_second_units_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_height_units_r16_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_milli_arc_second_units_r16_value2enum_2[] = { - { 0, 7, "mas0-03" }, - { 1, 6, "mas0-3" }, - { 2, 4, "mas3" }, - { 3, 5, "mas30" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_milli_arc_second_units_r16_enum2value_2[] = { - 0, /* mas0-03(0) */ - 1, /* mas0-3(1) */ - 2, /* mas3(2) */ - 3 /* mas30(3) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_milli_arc_second_units_r16_specs_2 = { - asn_MAP_milli_arc_second_units_r16_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_milli_arc_second_units_r16_enum2value_2, /* N => "tag"; sorted by N */ - 4, /* Number of elements in the maps */ - 5, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_milli_arc_second_units_r16_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_milli_arc_second_units_r16_2 = { - "milli-arc-second-units-r16", - "milli-arc-second-units-r16", - &asn_OP_NativeEnumerated, - asn_DEF_milli_arc_second_units_r16_tags_2, - sizeof(asn_DEF_milli_arc_second_units_r16_tags_2) - /sizeof(asn_DEF_milli_arc_second_units_r16_tags_2[0]) - 1, /* 1 */ - asn_DEF_milli_arc_second_units_r16_tags_2, /* Same as above */ - sizeof(asn_DEF_milli_arc_second_units_r16_tags_2) - /sizeof(asn_DEF_milli_arc_second_units_r16_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_milli_arc_second_units_r16_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_milli_arc_second_units_r16_specs_2 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_height_units_r16_value2enum_8[] = { - { 0, 2, "mm" }, - { 1, 2, "cm" }, - { 2, 1, "m" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_height_units_r16_enum2value_8[] = { - 1, /* cm(1) */ - 2, /* m(2) */ - 0 /* mm(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_height_units_r16_specs_8 = { - asn_MAP_height_units_r16_value2enum_8, /* "tag" => N; sorted by tag */ - asn_MAP_height_units_r16_enum2value_8, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 4, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_height_units_r16_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_height_units_r16_8 = { - "height-units-r16", - "height-units-r16", - &asn_OP_NativeEnumerated, - asn_DEF_height_units_r16_tags_8, - sizeof(asn_DEF_height_units_r16_tags_8) - /sizeof(asn_DEF_height_units_r16_tags_8[0]) - 1, /* 1 */ - asn_DEF_height_units_r16_tags_8, /* Same as above */ - sizeof(asn_DEF_height_units_r16_tags_8) - /sizeof(asn_DEF_height_units_r16_tags_8[0]), /* 2 */ - { 0, &asn_PER_type_height_units_r16_constr_8, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_height_units_r16_specs_8 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_RelativeLocation_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RelativeLocation_r16, milli_arc_second_units_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_milli_arc_second_units_r16_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "milli-arc-second-units-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RelativeLocation_r16, height_units_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_height_units_r16_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "height-units-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RelativeLocation_r16, delta_latitude_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Delta_Latitude_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "delta-latitude-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RelativeLocation_r16, delta_longitude_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Delta_Longitude_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "delta-longitude-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RelativeLocation_r16, delta_height_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Delta_Height_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "delta-height-r16" - }, - { ATF_POINTER, 1, offsetof(struct RelativeLocation_r16, locationUNC_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LocationUncertainty_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationUNC-r16" - }, -}; -static const int asn_MAP_RelativeLocation_r16_oms_1[] = { 5 }; -static const ber_tlv_tag_t asn_DEF_RelativeLocation_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RelativeLocation_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* milli-arc-second-units-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* height-units-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* delta-latitude-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* delta-longitude-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* delta-height-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* locationUNC-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RelativeLocation_r16_specs_1 = { - sizeof(struct RelativeLocation_r16), - offsetof(struct RelativeLocation_r16, _asn_ctx), - asn_MAP_RelativeLocation_r16_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_RelativeLocation_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_RelativeLocation_r16 = { - "RelativeLocation-r16", - "RelativeLocation-r16", - &asn_OP_SEQUENCE, - asn_DEF_RelativeLocation_r16_tags_1, - sizeof(asn_DEF_RelativeLocation_r16_tags_1) - /sizeof(asn_DEF_RelativeLocation_r16_tags_1[0]), /* 1 */ - asn_DEF_RelativeLocation_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_RelativeLocation_r16_tags_1) - /sizeof(asn_DEF_RelativeLocation_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_RelativeLocation_r16_1, - 6, /* Elements count */ - &asn_SPC_RelativeLocation_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RelativeLocation.c b/asn.1/generated/RelativeLocation.c deleted file mode 100644 index 003d1d49..00000000 --- a/asn.1/generated/RelativeLocation.c +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RelativeLocation.h" - -static int -memb_deltaLatitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -512 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_deltaLongitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_deltaLatitude_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_deltaLongitude_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_RelativeLocation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RelativeLocation, deltaLatitude_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_deltaLatitude_r16_constr_2, memb_deltaLatitude_r16_constraint_1 }, - 0, 0, /* No default value */ - "deltaLatitude-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct RelativeLocation, deltaLongitude_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_deltaLongitude_r16_constr_3, memb_deltaLongitude_r16_constraint_1 }, - 0, 0, /* No default value */ - "deltaLongitude-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_RelativeLocation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RelativeLocation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* deltaLatitude-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* deltaLongitude-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RelativeLocation_specs_1 = { - sizeof(struct RelativeLocation), - offsetof(struct RelativeLocation, _asn_ctx), - asn_MAP_RelativeLocation_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_RelativeLocation = { - "RelativeLocation", - "RelativeLocation", - &asn_OP_SEQUENCE, - asn_DEF_RelativeLocation_tags_1, - sizeof(asn_DEF_RelativeLocation_tags_1) - /sizeof(asn_DEF_RelativeLocation_tags_1[0]), /* 1 */ - asn_DEF_RelativeLocation_tags_1, /* Same as above */ - sizeof(asn_DEF_RelativeLocation_tags_1) - /sizeof(asn_DEF_RelativeLocation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_RelativeLocation_1, - 2, /* Elements count */ - &asn_SPC_RelativeLocation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RelativeLocation.h b/asn.1/generated/RelativeLocation.h deleted file mode 100644 index b9d7ba62..00000000 --- a/asn.1/generated/RelativeLocation.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _RelativeLocation_H_ -#define _RelativeLocation_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* RelativeLocation */ -typedef struct RelativeLocation { - long deltaLatitude_r16; - long deltaLongitude_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} RelativeLocation_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_RelativeLocation; -extern asn_SEQUENCE_specifics_t asn_SPC_RelativeLocation_specs_1; -extern asn_TYPE_member_t asn_MBR_RelativeLocation_1[2]; - -#ifdef __cplusplus -} -#endif - -#endif /* _RelativeLocation_H_ */ -#include diff --git a/asn.1/generated/RelativeTime.c b/asn.1/generated/RelativeTime.c deleted file mode 100644 index 645e5c89..00000000 --- a/asn.1/generated/RelativeTime.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RelativeTime.h" - -int -RelativeTime_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_RelativeTime_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_RelativeTime_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_RelativeTime = { - "RelativeTime", - "RelativeTime", - &asn_OP_NativeInteger, - asn_DEF_RelativeTime_tags_1, - sizeof(asn_DEF_RelativeTime_tags_1) - /sizeof(asn_DEF_RelativeTime_tags_1[0]), /* 1 */ - asn_DEF_RelativeTime_tags_1, /* Same as above */ - sizeof(asn_DEF_RelativeTime_tags_1) - /sizeof(asn_DEF_RelativeTime_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_RelativeTime_constr_1, RelativeTime_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/RelativeTime.h b/asn.1/generated/RelativeTime.h deleted file mode 100644 index 61b2e246..00000000 --- a/asn.1/generated/RelativeTime.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _RelativeTime_H_ -#define _RelativeTime_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* RelativeTime */ -typedef long RelativeTime_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_RelativeTime_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_RelativeTime; -asn_struct_free_f RelativeTime_free; -asn_struct_print_f RelativeTime_print; -asn_constr_check_f RelativeTime_constraint; -ber_type_decoder_f RelativeTime_decode_ber; -der_type_encoder_f RelativeTime_encode_der; -xer_type_decoder_f RelativeTime_decode_xer; -xer_type_encoder_f RelativeTime_encode_xer; -per_type_decoder_f RelativeTime_decode_uper; -per_type_encoder_f RelativeTime_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _RelativeTime_H_ */ -#include diff --git a/asn.1/generated/RepMode-cap.c b/asn.1/generated/RepMode-cap.c deleted file mode 100644 index 5d6822bd..00000000 --- a/asn.1/generated/RepMode-cap.c +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RepMode-cap.h" - -asn_TYPE_member_t asn_MBR_RepMode_cap_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RepMode_cap, realtime), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "realtime" - }, - { ATF_NOFLAGS, 0, offsetof(struct RepMode_cap, quasirealtime), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "quasirealtime" - }, - { ATF_NOFLAGS, 0, offsetof(struct RepMode_cap, batch), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "batch" - }, -}; -static const ber_tlv_tag_t asn_DEF_RepMode_cap_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RepMode_cap_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* realtime */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* quasirealtime */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* batch */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RepMode_cap_specs_1 = { - sizeof(struct RepMode_cap), - offsetof(struct RepMode_cap, _asn_ctx), - asn_MAP_RepMode_cap_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_RepMode_cap = { - "RepMode-cap", - "RepMode-cap", - &asn_OP_SEQUENCE, - asn_DEF_RepMode_cap_tags_1, - sizeof(asn_DEF_RepMode_cap_tags_1) - /sizeof(asn_DEF_RepMode_cap_tags_1[0]), /* 1 */ - asn_DEF_RepMode_cap_tags_1, /* Same as above */ - sizeof(asn_DEF_RepMode_cap_tags_1) - /sizeof(asn_DEF_RepMode_cap_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_RepMode_cap_1, - 3, /* Elements count */ - &asn_SPC_RepMode_cap_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RepMode.c b/asn.1/generated/RepMode.c deleted file mode 100644 index d699d822..00000000 --- a/asn.1/generated/RepMode.c +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RepMode.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_RepMode_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_RepMode_value2enum_1[] = { - { 1, 8, "realtime" }, - { 2, 13, "quasirealtime" }, - { 3, 5, "batch" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_RepMode_enum2value_1[] = { - 2, /* batch(3) */ - 1, /* quasirealtime(2) */ - 0 /* realtime(1) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_RepMode_specs_1 = { - asn_MAP_RepMode_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_RepMode_enum2value_1, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 4, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_RepMode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_RepMode = { - "RepMode", - "RepMode", - &asn_OP_NativeEnumerated, - asn_DEF_RepMode_tags_1, - sizeof(asn_DEF_RepMode_tags_1) - /sizeof(asn_DEF_RepMode_tags_1[0]), /* 1 */ - asn_DEF_RepMode_tags_1, /* Same as above */ - sizeof(asn_DEF_RepMode_tags_1) - /sizeof(asn_DEF_RepMode_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_RepMode_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_RepMode_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RepeatedReportingParams.c b/asn.1/generated/RepeatedReportingParams.c deleted file mode 100644 index 45bffd09..00000000 --- a/asn.1/generated/RepeatedReportingParams.c +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RepeatedReportingParams.h" - -static int -memb_minimumIntervalTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 604800)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_maximumNumberOfReports_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 1024)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_minimumIntervalTime_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 20, -1, 1, 604800 } /* (1..604800) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_maximumNumberOfReports_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (1..1024) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_RepeatedReportingParams_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RepeatedReportingParams, minimumIntervalTime), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_minimumIntervalTime_constr_2, memb_minimumIntervalTime_constraint_1 }, - 0, 0, /* No default value */ - "minimumIntervalTime" - }, - { ATF_NOFLAGS, 0, offsetof(struct RepeatedReportingParams, maximumNumberOfReports), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_maximumNumberOfReports_constr_3, memb_maximumNumberOfReports_constraint_1 }, - 0, 0, /* No default value */ - "maximumNumberOfReports" - }, -}; -static const ber_tlv_tag_t asn_DEF_RepeatedReportingParams_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RepeatedReportingParams_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* minimumIntervalTime */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* maximumNumberOfReports */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RepeatedReportingParams_specs_1 = { - sizeof(struct RepeatedReportingParams), - offsetof(struct RepeatedReportingParams, _asn_ctx), - asn_MAP_RepeatedReportingParams_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_RepeatedReportingParams = { - "RepeatedReportingParams", - "RepeatedReportingParams", - &asn_OP_SEQUENCE, - asn_DEF_RepeatedReportingParams_tags_1, - sizeof(asn_DEF_RepeatedReportingParams_tags_1) - /sizeof(asn_DEF_RepeatedReportingParams_tags_1[0]), /* 1 */ - asn_DEF_RepeatedReportingParams_tags_1, /* Same as above */ - sizeof(asn_DEF_RepeatedReportingParams_tags_1) - /sizeof(asn_DEF_RepeatedReportingParams_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_RepeatedReportingParams_1, - 2, /* Elements count */ - &asn_SPC_RepeatedReportingParams_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ReportData.c b/asn.1/generated/ReportData.c deleted file mode 100644 index 31186a04..00000000 --- a/asn.1/generated/ReportData.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ReportData.h" - -asn_TYPE_member_t asn_MBR_ReportData_1[] = { - { ATF_POINTER, 4, offsetof(struct ReportData, positionData), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SUPL_PositionData, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "positionData" - }, - { ATF_POINTER, 3, offsetof(struct ReportData, multipleLocationIds), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MultipleLocationIds, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "multipleLocationIds" - }, - { ATF_POINTER, 2, offsetof(struct ReportData, resultCode), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ResultCode, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "resultCode" - }, - { ATF_POINTER, 1, offsetof(struct ReportData, timestamp), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_TimeStamp, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "timestamp" - }, -}; -static const int asn_MAP_ReportData_oms_1[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_ReportData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ReportData_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* positionData */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* multipleLocationIds */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* resultCode */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* timestamp */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ReportData_specs_1 = { - sizeof(struct ReportData), - offsetof(struct ReportData, _asn_ctx), - asn_MAP_ReportData_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_ReportData_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ReportData = { - "ReportData", - "ReportData", - &asn_OP_SEQUENCE, - asn_DEF_ReportData_tags_1, - sizeof(asn_DEF_ReportData_tags_1) - /sizeof(asn_DEF_ReportData_tags_1[0]), /* 1 */ - asn_DEF_ReportData_tags_1, /* Same as above */ - sizeof(asn_DEF_ReportData_tags_1) - /sizeof(asn_DEF_ReportData_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ReportData_1, - 4, /* Elements count */ - &asn_SPC_ReportData_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ReportData.h b/asn.1/generated/ReportData.h deleted file mode 100644 index 8e99b609..00000000 --- a/asn.1/generated/ReportData.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _ReportData_H_ -#define _ReportData_H_ - - -#include - -/* Including external dependencies */ -#include "ResultCode.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct SUPL_PositionData; -struct MultipleLocationIds; -struct TimeStamp; - -/* ReportData */ -typedef struct ReportData { - struct SUPL_PositionData *positionData /* OPTIONAL */; - struct MultipleLocationIds *multipleLocationIds /* OPTIONAL */; - ResultCode_t *resultCode /* OPTIONAL */; - struct TimeStamp *timestamp /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} ReportData_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_ReportData; -extern asn_SEQUENCE_specifics_t asn_SPC_ReportData_specs_1; -extern asn_TYPE_member_t asn_MBR_ReportData_1[4]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "SUPL-PositionData.h" -#include "MultipleLocationIds.h" -#include "TimeStamp.h" - -#endif /* _ReportData_H_ */ -#include diff --git a/asn.1/generated/ReportDataList.c b/asn.1/generated/ReportDataList.c deleted file mode 100644 index c8ad7c9e..00000000 --- a/asn.1/generated/ReportDataList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ReportDataList.h" - -asn_per_constraints_t asn_PER_type_ReportDataList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_ReportDataList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_ReportData, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_ReportDataList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_ReportDataList_specs_1 = { - sizeof(struct ReportDataList), - offsetof(struct ReportDataList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_ReportDataList = { - "ReportDataList", - "ReportDataList", - &asn_OP_SEQUENCE_OF, - asn_DEF_ReportDataList_tags_1, - sizeof(asn_DEF_ReportDataList_tags_1) - /sizeof(asn_DEF_ReportDataList_tags_1[0]), /* 1 */ - asn_DEF_ReportDataList_tags_1, /* Same as above */ - sizeof(asn_DEF_ReportDataList_tags_1) - /sizeof(asn_DEF_ReportDataList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_ReportDataList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_ReportDataList_1, - 1, /* Single element */ - &asn_SPC_ReportDataList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ReportedLocation.c b/asn.1/generated/ReportedLocation.c deleted file mode 100644 index 8861c626..00000000 --- a/asn.1/generated/ReportedLocation.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ReportedLocation.h" - -asn_TYPE_member_t asn_MBR_ReportedLocation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ReportedLocation, locationEncodingDescriptor), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LocationEncodingDescriptor, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationEncodingDescriptor" - }, - { ATF_NOFLAGS, 0, offsetof(struct ReportedLocation, locationData), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LocationData, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationData" - }, -}; -static const ber_tlv_tag_t asn_DEF_ReportedLocation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ReportedLocation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationEncodingDescriptor */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* locationData */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ReportedLocation_specs_1 = { - sizeof(struct ReportedLocation), - offsetof(struct ReportedLocation, _asn_ctx), - asn_MAP_ReportedLocation_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ReportedLocation = { - "ReportedLocation", - "ReportedLocation", - &asn_OP_SEQUENCE, - asn_DEF_ReportedLocation_tags_1, - sizeof(asn_DEF_ReportedLocation_tags_1) - /sizeof(asn_DEF_ReportedLocation_tags_1[0]), /* 1 */ - asn_DEF_ReportedLocation_tags_1, /* Same as above */ - sizeof(asn_DEF_ReportedLocation_tags_1) - /sizeof(asn_DEF_ReportedLocation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ReportedLocation_1, - 2, /* Elements count */ - &asn_SPC_ReportedLocation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ReportingCap.c b/asn.1/generated/ReportingCap.c deleted file mode 100644 index 5084459d..00000000 --- a/asn.1/generated/ReportingCap.c +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ReportingCap.h" - -static int -memb_minInt_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 3600)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_maxInt_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 1440)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_minInt_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 1, 3600 } /* (1..3600) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_maxInt_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 1, 1440 } /* (1..1440) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_ReportingCap_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ReportingCap, minInt), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_minInt_constr_2, memb_minInt_constraint_1 }, - 0, 0, /* No default value */ - "minInt" - }, - { ATF_POINTER, 1, offsetof(struct ReportingCap, maxInt), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_maxInt_constr_3, memb_maxInt_constraint_1 }, - 0, 0, /* No default value */ - "maxInt" - }, - { ATF_NOFLAGS, 0, offsetof(struct ReportingCap, repMode), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RepMode_cap, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "repMode" - }, - { ATF_POINTER, 1, offsetof(struct ReportingCap, batchRepCap), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BatchRepCap, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "batchRepCap" - }, -}; -static const int asn_MAP_ReportingCap_oms_1[] = { 1, 3 }; -static const ber_tlv_tag_t asn_DEF_ReportingCap_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ReportingCap_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* minInt */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxInt */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* repMode */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* batchRepCap */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ReportingCap_specs_1 = { - sizeof(struct ReportingCap), - offsetof(struct ReportingCap, _asn_ctx), - asn_MAP_ReportingCap_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_ReportingCap_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ReportingCap = { - "ReportingCap", - "ReportingCap", - &asn_OP_SEQUENCE, - asn_DEF_ReportingCap_tags_1, - sizeof(asn_DEF_ReportingCap_tags_1) - /sizeof(asn_DEF_ReportingCap_tags_1[0]), /* 1 */ - asn_DEF_ReportingCap_tags_1, /* Same as above */ - sizeof(asn_DEF_ReportingCap_tags_1) - /sizeof(asn_DEF_ReportingCap_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ReportingCap_1, - 4, /* Elements count */ - &asn_SPC_ReportingCap_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ReportingCap.h b/asn.1/generated/ReportingCap.h deleted file mode 100644 index 7a4be5fe..00000000 --- a/asn.1/generated/ReportingCap.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _ReportingCap_H_ -#define _ReportingCap_H_ - - -#include - -/* Including external dependencies */ -#include -#include "RepMode-cap.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct BatchRepCap; - -/* ReportingCap */ -typedef struct ReportingCap { - long minInt; - long *maxInt /* OPTIONAL */; - RepMode_cap_t repMode; - struct BatchRepCap *batchRepCap /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} ReportingCap_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_ReportingCap; -extern asn_SEQUENCE_specifics_t asn_SPC_ReportingCap_specs_1; -extern asn_TYPE_member_t asn_MBR_ReportingCap_1[4]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "BatchRepCap.h" - -#endif /* _ReportingCap_H_ */ -#include diff --git a/asn.1/generated/ReportingCriteria.c b/asn.1/generated/ReportingCriteria.c deleted file mode 100644 index 2b50064b..00000000 --- a/asn.1/generated/ReportingCriteria.c +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ReportingCriteria.h" - -static int -memb_maxNumberofReports_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 65536)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_minTimeInterval_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 86400)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_maxNumberofReports_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 16, -1, 1, 65536 } /* (1..65536) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_minTimeInterval_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 17, -1, 1, 86400 } /* (1..86400) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_ReportingCriteria_1[] = { - { ATF_POINTER, 3, offsetof(struct ReportingCriteria, timeWindow), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TimeWindow, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "timeWindow" - }, - { ATF_POINTER, 2, offsetof(struct ReportingCriteria, maxNumberofReports), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_maxNumberofReports_constr_3, memb_maxNumberofReports_constraint_1 }, - 0, 0, /* No default value */ - "maxNumberofReports" - }, - { ATF_POINTER, 1, offsetof(struct ReportingCriteria, minTimeInterval), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_minTimeInterval_constr_4, memb_minTimeInterval_constraint_1 }, - 0, 0, /* No default value */ - "minTimeInterval" - }, -}; -static const int asn_MAP_ReportingCriteria_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_ReportingCriteria_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ReportingCriteria_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* timeWindow */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxNumberofReports */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* minTimeInterval */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ReportingCriteria_specs_1 = { - sizeof(struct ReportingCriteria), - offsetof(struct ReportingCriteria, _asn_ctx), - asn_MAP_ReportingCriteria_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_ReportingCriteria_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ReportingCriteria = { - "ReportingCriteria", - "ReportingCriteria", - &asn_OP_SEQUENCE, - asn_DEF_ReportingCriteria_tags_1, - sizeof(asn_DEF_ReportingCriteria_tags_1) - /sizeof(asn_DEF_ReportingCriteria_tags_1[0]), /* 1 */ - asn_DEF_ReportingCriteria_tags_1, /* Same as above */ - sizeof(asn_DEF_ReportingCriteria_tags_1) - /sizeof(asn_DEF_ReportingCriteria_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ReportingCriteria_1, - 3, /* Elements count */ - &asn_SPC_ReportingCriteria_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ReportingCriteria.h b/asn.1/generated/ReportingCriteria.h deleted file mode 100644 index 186a6ee7..00000000 --- a/asn.1/generated/ReportingCriteria.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _ReportingCriteria_H_ -#define _ReportingCriteria_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct TimeWindow; - -/* ReportingCriteria */ -typedef struct ReportingCriteria { - struct TimeWindow *timeWindow /* OPTIONAL */; - long *maxNumberofReports /* OPTIONAL */; - long *minTimeInterval /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} ReportingCriteria_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_ReportingCriteria; -extern asn_SEQUENCE_specifics_t asn_SPC_ReportingCriteria_specs_1; -extern asn_TYPE_member_t asn_MBR_ReportingCriteria_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "TimeWindow.h" - -#endif /* _ReportingCriteria_H_ */ -#include diff --git a/asn.1/generated/ReportingDuration.c b/asn.1/generated/ReportingDuration.c deleted file mode 100644 index ccd0ece2..00000000 --- a/asn.1/generated/ReportingDuration.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ReportingDuration.h" - -int -ReportingDuration_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_ReportingDuration_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_ReportingDuration_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_ReportingDuration = { - "ReportingDuration", - "ReportingDuration", - &asn_OP_NativeInteger, - asn_DEF_ReportingDuration_tags_1, - sizeof(asn_DEF_ReportingDuration_tags_1) - /sizeof(asn_DEF_ReportingDuration_tags_1[0]), /* 1 */ - asn_DEF_ReportingDuration_tags_1, /* Same as above */ - sizeof(asn_DEF_ReportingDuration_tags_1) - /sizeof(asn_DEF_ReportingDuration_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_ReportingDuration_constr_1, ReportingDuration_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/ReportingDuration.h b/asn.1/generated/ReportingDuration.h deleted file mode 100644 index 20bd8ec8..00000000 --- a/asn.1/generated/ReportingDuration.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _ReportingDuration_H_ -#define _ReportingDuration_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* ReportingDuration */ -typedef long ReportingDuration_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_ReportingDuration_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_ReportingDuration; -asn_struct_free_f ReportingDuration_free; -asn_struct_print_f ReportingDuration_print; -asn_constr_check_f ReportingDuration_constraint; -ber_type_decoder_f ReportingDuration_decode_ber; -der_type_encoder_f ReportingDuration_encode_der; -xer_type_decoder_f ReportingDuration_decode_xer; -xer_type_encoder_f ReportingDuration_encode_xer; -per_type_decoder_f ReportingDuration_decode_uper; -per_type_encoder_f ReportingDuration_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _ReportingDuration_H_ */ -#include diff --git a/asn.1/generated/ReportingMode.c b/asn.1/generated/ReportingMode.c deleted file mode 100644 index b75a1dc1..00000000 --- a/asn.1/generated/ReportingMode.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ReportingMode.h" - -asn_TYPE_member_t asn_MBR_ReportingMode_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ReportingMode, repMode), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RepMode, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "repMode" - }, - { ATF_POINTER, 2, offsetof(struct ReportingMode, batchRepConditions), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_BatchRepConditions, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "batchRepConditions" - }, - { ATF_POINTER, 1, offsetof(struct ReportingMode, batchRepType), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BatchRepType, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "batchRepType" - }, -}; -static const int asn_MAP_ReportingMode_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_ReportingMode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ReportingMode_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* repMode */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* batchRepConditions */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* batchRepType */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ReportingMode_specs_1 = { - sizeof(struct ReportingMode), - offsetof(struct ReportingMode, _asn_ctx), - asn_MAP_ReportingMode_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_ReportingMode_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ReportingMode = { - "ReportingMode", - "ReportingMode", - &asn_OP_SEQUENCE, - asn_DEF_ReportingMode_tags_1, - sizeof(asn_DEF_ReportingMode_tags_1) - /sizeof(asn_DEF_ReportingMode_tags_1[0]), /* 1 */ - asn_DEF_ReportingMode_tags_1, /* Same as above */ - sizeof(asn_DEF_ReportingMode_tags_1) - /sizeof(asn_DEF_ReportingMode_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ReportingMode_1, - 3, /* Elements count */ - &asn_SPC_ReportingMode_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ReportingMode.h b/asn.1/generated/ReportingMode.h deleted file mode 100644 index 4a720bfb..00000000 --- a/asn.1/generated/ReportingMode.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _ReportingMode_H_ -#define _ReportingMode_H_ - - -#include - -/* Including external dependencies */ -#include "RepMode.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct BatchRepConditions; -struct BatchRepType; - -/* ReportingMode */ -typedef struct ReportingMode { - RepMode_t repMode; - struct BatchRepConditions *batchRepConditions /* OPTIONAL */; - struct BatchRepType *batchRepType /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} ReportingMode_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_ReportingMode; -extern asn_SEQUENCE_specifics_t asn_SPC_ReportingMode_specs_1; -extern asn_TYPE_member_t asn_MBR_ReportingMode_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "BatchRepConditions.h" -#include "BatchRepType.h" - -#endif /* _ReportingMode_H_ */ -#include diff --git a/asn.1/generated/ReqDataBitAssistanceList.c b/asn.1/generated/ReqDataBitAssistanceList.c deleted file mode 100644 index 930b5018..00000000 --- a/asn.1/generated/ReqDataBitAssistanceList.c +++ /dev/null @@ -1,205 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ReqDataBitAssistanceList.h" - -static int -memb_NativeInteger_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ganssDataBitInterval_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ganssDataBitSatList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 32)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_Member_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_ganssDataBitSatList_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ganssDataBitInterval_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ganssDataBitSatList_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_ganssDataBitSatList_4[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_Member_constr_5, memb_NativeInteger_constraint_4 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_ganssDataBitSatList_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_ganssDataBitSatList_specs_4 = { - sizeof(struct ReqDataBitAssistanceList__ganssDataBitSatList), - offsetof(struct ReqDataBitAssistanceList__ganssDataBitSatList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ganssDataBitSatList_4 = { - "ganssDataBitSatList", - "ganssDataBitSatList", - &asn_OP_SEQUENCE_OF, - asn_DEF_ganssDataBitSatList_tags_4, - sizeof(asn_DEF_ganssDataBitSatList_tags_4) - /sizeof(asn_DEF_ganssDataBitSatList_tags_4[0]) - 1, /* 1 */ - asn_DEF_ganssDataBitSatList_tags_4, /* Same as above */ - sizeof(asn_DEF_ganssDataBitSatList_tags_4) - /sizeof(asn_DEF_ganssDataBitSatList_tags_4[0]), /* 2 */ - { 0, &asn_PER_type_ganssDataBitSatList_constr_4, SEQUENCE_OF_constraint }, - asn_MBR_ganssDataBitSatList_4, - 1, /* Single element */ - &asn_SPC_ganssDataBitSatList_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_ReqDataBitAssistanceList_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ReqDataBitAssistanceList, gnssSignals), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GANSSSignals, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnssSignals" - }, - { ATF_NOFLAGS, 0, offsetof(struct ReqDataBitAssistanceList, ganssDataBitInterval), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ganssDataBitInterval_constr_3, memb_ganssDataBitInterval_constraint_1 }, - 0, 0, /* No default value */ - "ganssDataBitInterval" - }, - { ATF_POINTER, 1, offsetof(struct ReqDataBitAssistanceList, ganssDataBitSatList), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_ganssDataBitSatList_4, - 0, - { 0, &asn_PER_memb_ganssDataBitSatList_constr_4, memb_ganssDataBitSatList_constraint_1 }, - 0, 0, /* No default value */ - "ganssDataBitSatList" - }, -}; -static const int asn_MAP_ReqDataBitAssistanceList_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_ReqDataBitAssistanceList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ReqDataBitAssistanceList_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnssSignals */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssDataBitInterval */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ganssDataBitSatList */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ReqDataBitAssistanceList_specs_1 = { - sizeof(struct ReqDataBitAssistanceList), - offsetof(struct ReqDataBitAssistanceList, _asn_ctx), - asn_MAP_ReqDataBitAssistanceList_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_ReqDataBitAssistanceList_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ReqDataBitAssistanceList = { - "ReqDataBitAssistanceList", - "ReqDataBitAssistanceList", - &asn_OP_SEQUENCE, - asn_DEF_ReqDataBitAssistanceList_tags_1, - sizeof(asn_DEF_ReqDataBitAssistanceList_tags_1) - /sizeof(asn_DEF_ReqDataBitAssistanceList_tags_1[0]), /* 1 */ - asn_DEF_ReqDataBitAssistanceList_tags_1, /* Same as above */ - sizeof(asn_DEF_ReqDataBitAssistanceList_tags_1) - /sizeof(asn_DEF_ReqDataBitAssistanceList_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ReqDataBitAssistanceList_1, - 3, /* Elements count */ - &asn_SPC_ReqDataBitAssistanceList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ReqNavListInfo.c b/asn.1/generated/ReqNavListInfo.c deleted file mode 100644 index 9c61bab8..00000000 --- a/asn.1/generated/ReqNavListInfo.c +++ /dev/null @@ -1,324 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ReqNavListInfo.h" - -static int -memb_NativeInteger_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_NativeInteger_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_svReqList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 64)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_clockModelID_PrefList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 8)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_orbitModelID_PrefList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 8)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_Member_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_clockModelID_PrefList_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_Member_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_orbitModelID_PrefList_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_svReqList_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 64, 64 } /* (SIZE(64..64)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_clockModelID_PrefList_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_orbitModelID_PrefList_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_clockModelID_PrefList_3[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_Member_constr_4, memb_NativeInteger_constraint_3 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_clockModelID_PrefList_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_clockModelID_PrefList_specs_3 = { - sizeof(struct ReqNavListInfo__clockModelID_PrefList), - offsetof(struct ReqNavListInfo__clockModelID_PrefList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_clockModelID_PrefList_3 = { - "clockModelID-PrefList", - "clockModelID-PrefList", - &asn_OP_SEQUENCE_OF, - asn_DEF_clockModelID_PrefList_tags_3, - sizeof(asn_DEF_clockModelID_PrefList_tags_3) - /sizeof(asn_DEF_clockModelID_PrefList_tags_3[0]) - 1, /* 1 */ - asn_DEF_clockModelID_PrefList_tags_3, /* Same as above */ - sizeof(asn_DEF_clockModelID_PrefList_tags_3) - /sizeof(asn_DEF_clockModelID_PrefList_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_clockModelID_PrefList_constr_3, SEQUENCE_OF_constraint }, - asn_MBR_clockModelID_PrefList_3, - 1, /* Single element */ - &asn_SPC_clockModelID_PrefList_specs_3 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_orbitModelID_PrefList_5[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_Member_constr_6, memb_NativeInteger_constraint_5 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_orbitModelID_PrefList_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_orbitModelID_PrefList_specs_5 = { - sizeof(struct ReqNavListInfo__orbitModelID_PrefList), - offsetof(struct ReqNavListInfo__orbitModelID_PrefList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_orbitModelID_PrefList_5 = { - "orbitModelID-PrefList", - "orbitModelID-PrefList", - &asn_OP_SEQUENCE_OF, - asn_DEF_orbitModelID_PrefList_tags_5, - sizeof(asn_DEF_orbitModelID_PrefList_tags_5) - /sizeof(asn_DEF_orbitModelID_PrefList_tags_5[0]) - 1, /* 1 */ - asn_DEF_orbitModelID_PrefList_tags_5, /* Same as above */ - sizeof(asn_DEF_orbitModelID_PrefList_tags_5) - /sizeof(asn_DEF_orbitModelID_PrefList_tags_5[0]), /* 2 */ - { 0, &asn_PER_type_orbitModelID_PrefList_constr_5, SEQUENCE_OF_constraint }, - asn_MBR_orbitModelID_PrefList_5, - 1, /* Single element */ - &asn_SPC_orbitModelID_PrefList_specs_5 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_ReqNavListInfo_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ReqNavListInfo, svReqList), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_svReqList_constr_2, memb_svReqList_constraint_1 }, - 0, 0, /* No default value */ - "svReqList" - }, - { ATF_POINTER, 3, offsetof(struct ReqNavListInfo, clockModelID_PrefList), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_clockModelID_PrefList_3, - 0, - { 0, &asn_PER_memb_clockModelID_PrefList_constr_3, memb_clockModelID_PrefList_constraint_1 }, - 0, 0, /* No default value */ - "clockModelID-PrefList" - }, - { ATF_POINTER, 2, offsetof(struct ReqNavListInfo, orbitModelID_PrefList), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_orbitModelID_PrefList_5, - 0, - { 0, &asn_PER_memb_orbitModelID_PrefList_constr_5, memb_orbitModelID_PrefList_constraint_1 }, - 0, 0, /* No default value */ - "orbitModelID-PrefList" - }, - { ATF_POINTER, 1, offsetof(struct ReqNavListInfo, addNavparamReq), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "addNavparamReq" - }, -}; -static const int asn_MAP_ReqNavListInfo_oms_1[] = { 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_ReqNavListInfo_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ReqNavListInfo_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svReqList */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* clockModelID-PrefList */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* orbitModelID-PrefList */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* addNavparamReq */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ReqNavListInfo_specs_1 = { - sizeof(struct ReqNavListInfo), - offsetof(struct ReqNavListInfo, _asn_ctx), - asn_MAP_ReqNavListInfo_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_ReqNavListInfo_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ReqNavListInfo = { - "ReqNavListInfo", - "ReqNavListInfo", - &asn_OP_SEQUENCE, - asn_DEF_ReqNavListInfo_tags_1, - sizeof(asn_DEF_ReqNavListInfo_tags_1) - /sizeof(asn_DEF_ReqNavListInfo_tags_1[0]), /* 1 */ - asn_DEF_ReqNavListInfo_tags_1, /* Same as above */ - sizeof(asn_DEF_ReqNavListInfo_tags_1) - /sizeof(asn_DEF_ReqNavListInfo_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ReqNavListInfo_1, - 4, /* Elements count */ - &asn_SPC_ReqNavListInfo_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RequestAssistanceData-r9-IEs.c b/asn.1/generated/RequestAssistanceData-r9-IEs.c deleted file mode 100644 index 960cce11..00000000 --- a/asn.1/generated/RequestAssistanceData-r9-IEs.c +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RequestAssistanceData-r9-IEs.h" - -static asn_TYPE_member_t asn_MBR_ext1_7[] = { - { ATF_POINTER, 3, offsetof(struct RequestAssistanceData_r9_IEs__ext1, sensor_RequestAssistanceData_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Sensor_RequestAssistanceData_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sensor-RequestAssistanceData-r14" - }, - { ATF_POINTER, 2, offsetof(struct RequestAssistanceData_r9_IEs__ext1, tbs_RequestAssistanceData_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TBS_RequestAssistanceData_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tbs-RequestAssistanceData-r14" - }, - { ATF_POINTER, 1, offsetof(struct RequestAssistanceData_r9_IEs__ext1, wlan_RequestAssistanceData_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WLAN_RequestAssistanceData_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wlan-RequestAssistanceData-r14" - }, -}; -static const int asn_MAP_ext1_oms_7[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-RequestAssistanceData-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tbs-RequestAssistanceData-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* wlan-RequestAssistanceData-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { - sizeof(struct RequestAssistanceData_r9_IEs__ext1), - offsetof(struct RequestAssistanceData_r9_IEs__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_7, - 3, /* Count of tags in the map */ - asn_MAP_ext1_oms_7, /* Optional members */ - 3, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_7 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_7, - sizeof(asn_DEF_ext1_tags_7) - /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_7, /* Same as above */ - sizeof(asn_DEF_ext1_tags_7) - /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_7, - 3, /* Elements count */ - &asn_SPC_ext1_specs_7 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_11[] = { - { ATF_POINTER, 3, offsetof(struct RequestAssistanceData_r9_IEs__ext2, nr_Multi_RTT_RequestAssistanceData_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-Multi-RTT-RequestAssistanceData-r16" - }, - { ATF_POINTER, 2, offsetof(struct RequestAssistanceData_r9_IEs__ext2, nr_DL_AoD_RequestAssistanceData_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_AoD_RequestAssistanceData_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-AoD-RequestAssistanceData-r16" - }, - { ATF_POINTER, 1, offsetof(struct RequestAssistanceData_r9_IEs__ext2, nr_DL_TDOA_RequestAssistanceData_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-TDOA-RequestAssistanceData-r16" - }, -}; -static const int asn_MAP_ext2_oms_11[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_11[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_11[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-Multi-RTT-RequestAssistanceData-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-AoD-RequestAssistanceData-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-DL-TDOA-RequestAssistanceData-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_11 = { - sizeof(struct RequestAssistanceData_r9_IEs__ext2), - offsetof(struct RequestAssistanceData_r9_IEs__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_11, - 3, /* Count of tags in the map */ - asn_MAP_ext2_oms_11, /* Optional members */ - 3, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_11 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_11, - sizeof(asn_DEF_ext2_tags_11) - /sizeof(asn_DEF_ext2_tags_11[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_11, /* Same as above */ - sizeof(asn_DEF_ext2_tags_11) - /sizeof(asn_DEF_ext2_tags_11[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_11, - 3, /* Elements count */ - &asn_SPC_ext2_specs_11 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_RequestAssistanceData_r9_IEs_1[] = { - { ATF_POINTER, 6, offsetof(struct RequestAssistanceData_r9_IEs, commonIEsRequestAssistanceData), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CommonIEsRequestAssistanceData, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "commonIEsRequestAssistanceData" - }, - { ATF_POINTER, 5, offsetof(struct RequestAssistanceData_r9_IEs, a_gnss_RequestAssistanceData), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_A_GNSS_RequestAssistanceData, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "a-gnss-RequestAssistanceData" - }, - { ATF_POINTER, 4, offsetof(struct RequestAssistanceData_r9_IEs, otdoa_RequestAssistanceData), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_RequestAssistanceData, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "otdoa-RequestAssistanceData" - }, - { ATF_POINTER, 3, offsetof(struct RequestAssistanceData_r9_IEs, epdu_RequestAssistanceData), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EPDU_Sequence, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "epdu-RequestAssistanceData" - }, - { ATF_POINTER, 2, offsetof(struct RequestAssistanceData_r9_IEs, ext1), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - 0, - &asn_DEF_ext1_7, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct RequestAssistanceData_r9_IEs, ext2), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - 0, - &asn_DEF_ext2_11, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_RequestAssistanceData_r9_IEs_oms_1[] = { 0, 1, 2, 3, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_RequestAssistanceData_r9_IEs_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RequestAssistanceData_r9_IEs_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* commonIEsRequestAssistanceData */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* a-gnss-RequestAssistanceData */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* otdoa-RequestAssistanceData */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* epdu-RequestAssistanceData */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RequestAssistanceData_r9_IEs_specs_1 = { - sizeof(struct RequestAssistanceData_r9_IEs), - offsetof(struct RequestAssistanceData_r9_IEs, _asn_ctx), - asn_MAP_RequestAssistanceData_r9_IEs_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_RequestAssistanceData_r9_IEs_oms_1, /* Optional members */ - 4, 2, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_RequestAssistanceData_r9_IEs = { - "RequestAssistanceData-r9-IEs", - "RequestAssistanceData-r9-IEs", - &asn_OP_SEQUENCE, - asn_DEF_RequestAssistanceData_r9_IEs_tags_1, - sizeof(asn_DEF_RequestAssistanceData_r9_IEs_tags_1) - /sizeof(asn_DEF_RequestAssistanceData_r9_IEs_tags_1[0]), /* 1 */ - asn_DEF_RequestAssistanceData_r9_IEs_tags_1, /* Same as above */ - sizeof(asn_DEF_RequestAssistanceData_r9_IEs_tags_1) - /sizeof(asn_DEF_RequestAssistanceData_r9_IEs_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_RequestAssistanceData_r9_IEs_1, - 6, /* Elements count */ - &asn_SPC_RequestAssistanceData_r9_IEs_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RequestAssistanceData-r9-IEs.h b/asn.1/generated/RequestAssistanceData-r9-IEs.h deleted file mode 100644 index 81a44b8f..00000000 --- a/asn.1/generated/RequestAssistanceData-r9-IEs.h +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _RequestAssistanceData_r9_IEs_H_ -#define _RequestAssistanceData_r9_IEs_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct CommonIEsRequestAssistanceData; -struct A_GNSS_RequestAssistanceData; -struct OTDOA_RequestAssistanceData; -struct EPDU_Sequence; -struct Sensor_RequestAssistanceData_r14; -struct TBS_RequestAssistanceData_r14; -struct WLAN_RequestAssistanceData_r14; -struct NR_Multi_RTT_RequestAssistanceData_r16; -struct NR_DL_AoD_RequestAssistanceData_r16; -struct NR_DL_TDOA_RequestAssistanceData_r16; - -/* RequestAssistanceData-r9-IEs */ -typedef struct RequestAssistanceData_r9_IEs { - struct CommonIEsRequestAssistanceData *commonIEsRequestAssistanceData /* OPTIONAL */; - struct A_GNSS_RequestAssistanceData *a_gnss_RequestAssistanceData /* OPTIONAL */; - struct OTDOA_RequestAssistanceData *otdoa_RequestAssistanceData /* OPTIONAL */; - struct EPDU_Sequence *epdu_RequestAssistanceData /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct RequestAssistanceData_r9_IEs__ext1 { - struct Sensor_RequestAssistanceData_r14 *sensor_RequestAssistanceData_r14 /* OPTIONAL */; - struct TBS_RequestAssistanceData_r14 *tbs_RequestAssistanceData_r14 /* OPTIONAL */; - struct WLAN_RequestAssistanceData_r14 *wlan_RequestAssistanceData_r14 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct RequestAssistanceData_r9_IEs__ext2 { - struct NR_Multi_RTT_RequestAssistanceData_r16 *nr_Multi_RTT_RequestAssistanceData_r16 /* OPTIONAL */; - struct NR_DL_AoD_RequestAssistanceData_r16 *nr_DL_AoD_RequestAssistanceData_r16 /* OPTIONAL */; - struct NR_DL_TDOA_RequestAssistanceData_r16 *nr_DL_TDOA_RequestAssistanceData_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} RequestAssistanceData_r9_IEs_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_RequestAssistanceData_r9_IEs; -extern asn_SEQUENCE_specifics_t asn_SPC_RequestAssistanceData_r9_IEs_specs_1; -extern asn_TYPE_member_t asn_MBR_RequestAssistanceData_r9_IEs_1[6]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "CommonIEsRequestAssistanceData.h" -#include "A-GNSS-RequestAssistanceData.h" -#include "OTDOA-RequestAssistanceData.h" -#include "EPDU-Sequence.h" -#include "Sensor-RequestAssistanceData-r14.h" -#include "TBS-RequestAssistanceData-r14.h" -#include "WLAN-RequestAssistanceData-r14.h" -#include "NR-Multi-RTT-RequestAssistanceData-r16.h" -#include "NR-DL-AoD-RequestAssistanceData-r16.h" -#include "NR-DL-TDOA-RequestAssistanceData-r16.h" - -#endif /* _RequestAssistanceData_r9_IEs_H_ */ -#include diff --git a/asn.1/generated/RequestAssistanceData.c b/asn.1/generated/RequestAssistanceData.c deleted file mode 100644 index 4f515952..00000000 --- a/asn.1/generated/RequestAssistanceData.c +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RequestAssistanceData.h" - -static asn_per_constraints_t asn_PER_type_c1_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_criticalExtensions_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_c1_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct RequestAssistanceData__criticalExtensions__c1, choice.requestAssistanceData_r9), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RequestAssistanceData_r9_IEs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "requestAssistanceData-r9" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestAssistanceData__criticalExtensions__c1, choice.spare3), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare3" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestAssistanceData__criticalExtensions__c1, choice.spare2), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare2" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestAssistanceData__criticalExtensions__c1, choice.spare1), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare1" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_c1_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* requestAssistanceData-r9 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* spare3 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* spare2 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* spare1 */ -}; -static asn_CHOICE_specifics_t asn_SPC_c1_specs_3 = { - sizeof(struct RequestAssistanceData__criticalExtensions__c1), - offsetof(struct RequestAssistanceData__criticalExtensions__c1, _asn_ctx), - offsetof(struct RequestAssistanceData__criticalExtensions__c1, present), - sizeof(((struct RequestAssistanceData__criticalExtensions__c1 *)0)->present), - asn_MAP_c1_tag2el_3, - 4, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_c1_3 = { - "c1", - "c1", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_c1_constr_3, CHOICE_constraint }, - asn_MBR_c1_3, - 4, /* Elements count */ - &asn_SPC_c1_specs_3 /* Additional specs */ -}; - -static const ber_tlv_tag_t asn_DEF_criticalExtensionsFuture_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SEQUENCE_specifics_t asn_SPC_criticalExtensionsFuture_specs_8 = { - sizeof(struct RequestAssistanceData__criticalExtensions__criticalExtensionsFuture), - offsetof(struct RequestAssistanceData__criticalExtensions__criticalExtensionsFuture, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_criticalExtensionsFuture_8 = { - "criticalExtensionsFuture", - "criticalExtensionsFuture", - &asn_OP_SEQUENCE, - asn_DEF_criticalExtensionsFuture_tags_8, - sizeof(asn_DEF_criticalExtensionsFuture_tags_8) - /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]) - 1, /* 1 */ - asn_DEF_criticalExtensionsFuture_tags_8, /* Same as above */ - sizeof(asn_DEF_criticalExtensionsFuture_tags_8) - /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_criticalExtensionsFuture_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_criticalExtensions_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct RequestAssistanceData__criticalExtensions, choice.c1), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_c1_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "c1" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestAssistanceData__criticalExtensions, choice.criticalExtensionsFuture), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_criticalExtensionsFuture_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "criticalExtensionsFuture" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_criticalExtensions_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* c1 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* criticalExtensionsFuture */ -}; -static asn_CHOICE_specifics_t asn_SPC_criticalExtensions_specs_2 = { - sizeof(struct RequestAssistanceData__criticalExtensions), - offsetof(struct RequestAssistanceData__criticalExtensions, _asn_ctx), - offsetof(struct RequestAssistanceData__criticalExtensions, present), - sizeof(((struct RequestAssistanceData__criticalExtensions *)0)->present), - asn_MAP_criticalExtensions_tag2el_2, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_criticalExtensions_2 = { - "criticalExtensions", - "criticalExtensions", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_criticalExtensions_constr_2, CHOICE_constraint }, - asn_MBR_criticalExtensions_2, - 2, /* Elements count */ - &asn_SPC_criticalExtensions_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_RequestAssistanceData_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RequestAssistanceData, criticalExtensions), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_criticalExtensions_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "criticalExtensions" - }, -}; -static const ber_tlv_tag_t asn_DEF_RequestAssistanceData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RequestAssistanceData_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* criticalExtensions */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RequestAssistanceData_specs_1 = { - sizeof(struct RequestAssistanceData), - offsetof(struct RequestAssistanceData, _asn_ctx), - asn_MAP_RequestAssistanceData_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_RequestAssistanceData = { - "RequestAssistanceData", - "RequestAssistanceData", - &asn_OP_SEQUENCE, - asn_DEF_RequestAssistanceData_tags_1, - sizeof(asn_DEF_RequestAssistanceData_tags_1) - /sizeof(asn_DEF_RequestAssistanceData_tags_1[0]), /* 1 */ - asn_DEF_RequestAssistanceData_tags_1, /* Same as above */ - sizeof(asn_DEF_RequestAssistanceData_tags_1) - /sizeof(asn_DEF_RequestAssistanceData_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_RequestAssistanceData_1, - 1, /* Elements count */ - &asn_SPC_RequestAssistanceData_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RequestCapabilities-r9-IEs.c b/asn.1/generated/RequestCapabilities-r9-IEs.c deleted file mode 100644 index d0769e5b..00000000 --- a/asn.1/generated/RequestCapabilities-r9-IEs.c +++ /dev/null @@ -1,272 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RequestCapabilities-r9-IEs.h" - -static asn_TYPE_member_t asn_MBR_ext1_8[] = { - { ATF_POINTER, 4, offsetof(struct RequestCapabilities_r9_IEs__ext1, sensor_RequestCapabilities_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Sensor_RequestCapabilities_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sensor-RequestCapabilities-r13" - }, - { ATF_POINTER, 3, offsetof(struct RequestCapabilities_r9_IEs__ext1, tbs_RequestCapabilities_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TBS_RequestCapabilities_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tbs-RequestCapabilities-r13" - }, - { ATF_POINTER, 2, offsetof(struct RequestCapabilities_r9_IEs__ext1, wlan_RequestCapabilities_r13), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WLAN_RequestCapabilities_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wlan-RequestCapabilities-r13" - }, - { ATF_POINTER, 1, offsetof(struct RequestCapabilities_r9_IEs__ext1, bt_RequestCapabilities_r13), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BT_RequestCapabilities_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bt-RequestCapabilities-r13" - }, -}; -static const int asn_MAP_ext1_oms_8[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-RequestCapabilities-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tbs-RequestCapabilities-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* wlan-RequestCapabilities-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* bt-RequestCapabilities-r13 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { - sizeof(struct RequestCapabilities_r9_IEs__ext1), - offsetof(struct RequestCapabilities_r9_IEs__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_8, - 4, /* Count of tags in the map */ - asn_MAP_ext1_oms_8, /* Optional members */ - 4, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_8 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_8, - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_8, /* Same as above */ - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_8, - 4, /* Elements count */ - &asn_SPC_ext1_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_13[] = { - { ATF_POINTER, 5, offsetof(struct RequestCapabilities_r9_IEs__ext2, nr_ECID_RequestCapabilities_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_ECID_RequestCapabilities_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-ECID-RequestCapabilities-r16" - }, - { ATF_POINTER, 4, offsetof(struct RequestCapabilities_r9_IEs__ext2, nr_Multi_RTT_RequestCapabilities_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_Multi_RTT_RequestCapabilities_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-Multi-RTT-RequestCapabilities-r16" - }, - { ATF_POINTER, 3, offsetof(struct RequestCapabilities_r9_IEs__ext2, nr_DL_AoD_RequestCapabilities_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_AoD_RequestCapabilities_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-AoD-RequestCapabilities-r16" - }, - { ATF_POINTER, 2, offsetof(struct RequestCapabilities_r9_IEs__ext2, nr_DL_TDOA_RequestCapabilities_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_TDOA_RequestCapabilities_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-TDOA-RequestCapabilities-r16" - }, - { ATF_POINTER, 1, offsetof(struct RequestCapabilities_r9_IEs__ext2, nr_UL_RequestCapabilities_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_UL_RequestCapabilities_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-UL-RequestCapabilities-r16" - }, -}; -static const int asn_MAP_ext2_oms_13[] = { 0, 1, 2, 3, 4 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_13[] = { - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_13[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-ECID-RequestCapabilities-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-Multi-RTT-RequestCapabilities-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-AoD-RequestCapabilities-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-DL-TDOA-RequestCapabilities-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* nr-UL-RequestCapabilities-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_13 = { - sizeof(struct RequestCapabilities_r9_IEs__ext2), - offsetof(struct RequestCapabilities_r9_IEs__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_13, - 5, /* Count of tags in the map */ - asn_MAP_ext2_oms_13, /* Optional members */ - 5, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_13 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_13, - sizeof(asn_DEF_ext2_tags_13) - /sizeof(asn_DEF_ext2_tags_13[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_13, /* Same as above */ - sizeof(asn_DEF_ext2_tags_13) - /sizeof(asn_DEF_ext2_tags_13[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_13, - 5, /* Elements count */ - &asn_SPC_ext2_specs_13 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_RequestCapabilities_r9_IEs_1[] = { - { ATF_POINTER, 7, offsetof(struct RequestCapabilities_r9_IEs, commonIEsRequestCapabilities), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CommonIEsRequestCapabilities, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "commonIEsRequestCapabilities" - }, - { ATF_POINTER, 6, offsetof(struct RequestCapabilities_r9_IEs, a_gnss_RequestCapabilities), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_A_GNSS_RequestCapabilities, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "a-gnss-RequestCapabilities" - }, - { ATF_POINTER, 5, offsetof(struct RequestCapabilities_r9_IEs, otdoa_RequestCapabilities), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_RequestCapabilities, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "otdoa-RequestCapabilities" - }, - { ATF_POINTER, 4, offsetof(struct RequestCapabilities_r9_IEs, ecid_RequestCapabilities), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ECID_RequestCapabilities, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ecid-RequestCapabilities" - }, - { ATF_POINTER, 3, offsetof(struct RequestCapabilities_r9_IEs, epdu_RequestCapabilities), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EPDU_Sequence, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "epdu-RequestCapabilities" - }, - { ATF_POINTER, 2, offsetof(struct RequestCapabilities_r9_IEs, ext1), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - 0, - &asn_DEF_ext1_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct RequestCapabilities_r9_IEs, ext2), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - 0, - &asn_DEF_ext2_13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_RequestCapabilities_r9_IEs_oms_1[] = { 0, 1, 2, 3, 4, 5, 6 }; -static const ber_tlv_tag_t asn_DEF_RequestCapabilities_r9_IEs_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RequestCapabilities_r9_IEs_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* commonIEsRequestCapabilities */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* a-gnss-RequestCapabilities */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* otdoa-RequestCapabilities */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ecid-RequestCapabilities */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* epdu-RequestCapabilities */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RequestCapabilities_r9_IEs_specs_1 = { - sizeof(struct RequestCapabilities_r9_IEs), - offsetof(struct RequestCapabilities_r9_IEs, _asn_ctx), - asn_MAP_RequestCapabilities_r9_IEs_tag2el_1, - 7, /* Count of tags in the map */ - asn_MAP_RequestCapabilities_r9_IEs_oms_1, /* Optional members */ - 5, 2, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_RequestCapabilities_r9_IEs = { - "RequestCapabilities-r9-IEs", - "RequestCapabilities-r9-IEs", - &asn_OP_SEQUENCE, - asn_DEF_RequestCapabilities_r9_IEs_tags_1, - sizeof(asn_DEF_RequestCapabilities_r9_IEs_tags_1) - /sizeof(asn_DEF_RequestCapabilities_r9_IEs_tags_1[0]), /* 1 */ - asn_DEF_RequestCapabilities_r9_IEs_tags_1, /* Same as above */ - sizeof(asn_DEF_RequestCapabilities_r9_IEs_tags_1) - /sizeof(asn_DEF_RequestCapabilities_r9_IEs_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_RequestCapabilities_r9_IEs_1, - 7, /* Elements count */ - &asn_SPC_RequestCapabilities_r9_IEs_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RequestCapabilities-r9-IEs.h b/asn.1/generated/RequestCapabilities-r9-IEs.h deleted file mode 100644 index b069ab67..00000000 --- a/asn.1/generated/RequestCapabilities-r9-IEs.h +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _RequestCapabilities_r9_IEs_H_ -#define _RequestCapabilities_r9_IEs_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct CommonIEsRequestCapabilities; -struct A_GNSS_RequestCapabilities; -struct OTDOA_RequestCapabilities; -struct ECID_RequestCapabilities; -struct EPDU_Sequence; -struct Sensor_RequestCapabilities_r13; -struct TBS_RequestCapabilities_r13; -struct WLAN_RequestCapabilities_r13; -struct BT_RequestCapabilities_r13; -struct NR_ECID_RequestCapabilities_r16; -struct NR_Multi_RTT_RequestCapabilities_r16; -struct NR_DL_AoD_RequestCapabilities_r16; -struct NR_DL_TDOA_RequestCapabilities_r16; -struct NR_UL_RequestCapabilities_r16; - -/* RequestCapabilities-r9-IEs */ -typedef struct RequestCapabilities_r9_IEs { - struct CommonIEsRequestCapabilities *commonIEsRequestCapabilities /* OPTIONAL */; - struct A_GNSS_RequestCapabilities *a_gnss_RequestCapabilities /* OPTIONAL */; - struct OTDOA_RequestCapabilities *otdoa_RequestCapabilities /* OPTIONAL */; - struct ECID_RequestCapabilities *ecid_RequestCapabilities /* OPTIONAL */; - struct EPDU_Sequence *epdu_RequestCapabilities /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct RequestCapabilities_r9_IEs__ext1 { - struct Sensor_RequestCapabilities_r13 *sensor_RequestCapabilities_r13 /* OPTIONAL */; - struct TBS_RequestCapabilities_r13 *tbs_RequestCapabilities_r13 /* OPTIONAL */; - struct WLAN_RequestCapabilities_r13 *wlan_RequestCapabilities_r13 /* OPTIONAL */; - struct BT_RequestCapabilities_r13 *bt_RequestCapabilities_r13 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct RequestCapabilities_r9_IEs__ext2 { - struct NR_ECID_RequestCapabilities_r16 *nr_ECID_RequestCapabilities_r16 /* OPTIONAL */; - struct NR_Multi_RTT_RequestCapabilities_r16 *nr_Multi_RTT_RequestCapabilities_r16 /* OPTIONAL */; - struct NR_DL_AoD_RequestCapabilities_r16 *nr_DL_AoD_RequestCapabilities_r16 /* OPTIONAL */; - struct NR_DL_TDOA_RequestCapabilities_r16 *nr_DL_TDOA_RequestCapabilities_r16 /* OPTIONAL */; - struct NR_UL_RequestCapabilities_r16 *nr_UL_RequestCapabilities_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} RequestCapabilities_r9_IEs_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_RequestCapabilities_r9_IEs; -extern asn_SEQUENCE_specifics_t asn_SPC_RequestCapabilities_r9_IEs_specs_1; -extern asn_TYPE_member_t asn_MBR_RequestCapabilities_r9_IEs_1[7]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "CommonIEsRequestCapabilities.h" -#include "A-GNSS-RequestCapabilities.h" -#include "OTDOA-RequestCapabilities.h" -#include "ECID-RequestCapabilities.h" -#include "EPDU-Sequence.h" -#include "Sensor-RequestCapabilities-r13.h" -#include "TBS-RequestCapabilities-r13.h" -#include "WLAN-RequestCapabilities-r13.h" -#include "BT-RequestCapabilities-r13.h" -#include "NR-ECID-RequestCapabilities-r16.h" -#include "NR-Multi-RTT-RequestCapabilities-r16.h" -#include "NR-DL-AoD-RequestCapabilities-r16.h" -#include "NR-DL-TDOA-RequestCapabilities-r16.h" -#include "NR-UL-RequestCapabilities-r16.h" - -#endif /* _RequestCapabilities_r9_IEs_H_ */ -#include diff --git a/asn.1/generated/RequestCapabilities.c b/asn.1/generated/RequestCapabilities.c deleted file mode 100644 index b771e00f..00000000 --- a/asn.1/generated/RequestCapabilities.c +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RequestCapabilities.h" - -static asn_per_constraints_t asn_PER_type_c1_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_criticalExtensions_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_c1_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct RequestCapabilities__criticalExtensions__c1, choice.requestCapabilities_r9), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RequestCapabilities_r9_IEs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "requestCapabilities-r9" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestCapabilities__criticalExtensions__c1, choice.spare3), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare3" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestCapabilities__criticalExtensions__c1, choice.spare2), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare2" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestCapabilities__criticalExtensions__c1, choice.spare1), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare1" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_c1_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* requestCapabilities-r9 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* spare3 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* spare2 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* spare1 */ -}; -static asn_CHOICE_specifics_t asn_SPC_c1_specs_3 = { - sizeof(struct RequestCapabilities__criticalExtensions__c1), - offsetof(struct RequestCapabilities__criticalExtensions__c1, _asn_ctx), - offsetof(struct RequestCapabilities__criticalExtensions__c1, present), - sizeof(((struct RequestCapabilities__criticalExtensions__c1 *)0)->present), - asn_MAP_c1_tag2el_3, - 4, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_c1_3 = { - "c1", - "c1", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_c1_constr_3, CHOICE_constraint }, - asn_MBR_c1_3, - 4, /* Elements count */ - &asn_SPC_c1_specs_3 /* Additional specs */ -}; - -static const ber_tlv_tag_t asn_DEF_criticalExtensionsFuture_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SEQUENCE_specifics_t asn_SPC_criticalExtensionsFuture_specs_8 = { - sizeof(struct RequestCapabilities__criticalExtensions__criticalExtensionsFuture), - offsetof(struct RequestCapabilities__criticalExtensions__criticalExtensionsFuture, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_criticalExtensionsFuture_8 = { - "criticalExtensionsFuture", - "criticalExtensionsFuture", - &asn_OP_SEQUENCE, - asn_DEF_criticalExtensionsFuture_tags_8, - sizeof(asn_DEF_criticalExtensionsFuture_tags_8) - /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]) - 1, /* 1 */ - asn_DEF_criticalExtensionsFuture_tags_8, /* Same as above */ - sizeof(asn_DEF_criticalExtensionsFuture_tags_8) - /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_criticalExtensionsFuture_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_criticalExtensions_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct RequestCapabilities__criticalExtensions, choice.c1), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_c1_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "c1" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestCapabilities__criticalExtensions, choice.criticalExtensionsFuture), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_criticalExtensionsFuture_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "criticalExtensionsFuture" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_criticalExtensions_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* c1 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* criticalExtensionsFuture */ -}; -static asn_CHOICE_specifics_t asn_SPC_criticalExtensions_specs_2 = { - sizeof(struct RequestCapabilities__criticalExtensions), - offsetof(struct RequestCapabilities__criticalExtensions, _asn_ctx), - offsetof(struct RequestCapabilities__criticalExtensions, present), - sizeof(((struct RequestCapabilities__criticalExtensions *)0)->present), - asn_MAP_criticalExtensions_tag2el_2, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_criticalExtensions_2 = { - "criticalExtensions", - "criticalExtensions", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_criticalExtensions_constr_2, CHOICE_constraint }, - asn_MBR_criticalExtensions_2, - 2, /* Elements count */ - &asn_SPC_criticalExtensions_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_RequestCapabilities_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RequestCapabilities, criticalExtensions), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_criticalExtensions_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "criticalExtensions" - }, -}; -static const ber_tlv_tag_t asn_DEF_RequestCapabilities_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RequestCapabilities_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* criticalExtensions */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RequestCapabilities_specs_1 = { - sizeof(struct RequestCapabilities), - offsetof(struct RequestCapabilities, _asn_ctx), - asn_MAP_RequestCapabilities_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_RequestCapabilities = { - "RequestCapabilities", - "RequestCapabilities", - &asn_OP_SEQUENCE, - asn_DEF_RequestCapabilities_tags_1, - sizeof(asn_DEF_RequestCapabilities_tags_1) - /sizeof(asn_DEF_RequestCapabilities_tags_1[0]), /* 1 */ - asn_DEF_RequestCapabilities_tags_1, /* Same as above */ - sizeof(asn_DEF_RequestCapabilities_tags_1) - /sizeof(asn_DEF_RequestCapabilities_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_RequestCapabilities_1, - 1, /* Elements count */ - &asn_SPC_RequestCapabilities_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RequestLocationInformation-r9-IEs.c b/asn.1/generated/RequestLocationInformation-r9-IEs.c deleted file mode 100644 index a2705d70..00000000 --- a/asn.1/generated/RequestLocationInformation-r9-IEs.c +++ /dev/null @@ -1,262 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RequestLocationInformation-r9-IEs.h" - -static asn_TYPE_member_t asn_MBR_ext1_8[] = { - { ATF_POINTER, 4, offsetof(struct RequestLocationInformation_r9_IEs__ext1, sensor_RequestLocationInformation_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Sensor_RequestLocationInformation_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sensor-RequestLocationInformation-r13" - }, - { ATF_POINTER, 3, offsetof(struct RequestLocationInformation_r9_IEs__ext1, tbs_RequestLocationInformation_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TBS_RequestLocationInformation_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tbs-RequestLocationInformation-r13" - }, - { ATF_POINTER, 2, offsetof(struct RequestLocationInformation_r9_IEs__ext1, wlan_RequestLocationInformation_r13), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WLAN_RequestLocationInformation_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wlan-RequestLocationInformation-r13" - }, - { ATF_POINTER, 1, offsetof(struct RequestLocationInformation_r9_IEs__ext1, bt_RequestLocationInformation_r13), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BT_RequestLocationInformation_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bt-RequestLocationInformation-r13" - }, -}; -static const int asn_MAP_ext1_oms_8[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-RequestLocationInformation-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tbs-RequestLocationInformation-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* wlan-RequestLocationInformation-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* bt-RequestLocationInformation-r13 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { - sizeof(struct RequestLocationInformation_r9_IEs__ext1), - offsetof(struct RequestLocationInformation_r9_IEs__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_8, - 4, /* Count of tags in the map */ - asn_MAP_ext1_oms_8, /* Optional members */ - 4, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_8 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_8, - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_8, /* Same as above */ - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_8, - 4, /* Elements count */ - &asn_SPC_ext1_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_13[] = { - { ATF_POINTER, 4, offsetof(struct RequestLocationInformation_r9_IEs__ext2, nr_ECID_RequestLocationInformation_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_ECID_RequestLocationInformation_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-ECID-RequestLocationInformation-r16" - }, - { ATF_POINTER, 3, offsetof(struct RequestLocationInformation_r9_IEs__ext2, nr_Multi_RTT_RequestLocationInformation_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-Multi-RTT-RequestLocationInformation-r16" - }, - { ATF_POINTER, 2, offsetof(struct RequestLocationInformation_r9_IEs__ext2, nr_DL_AoD_RequestLocationInformation_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_AoD_RequestLocationInformation_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-AoD-RequestLocationInformation-r16" - }, - { ATF_POINTER, 1, offsetof(struct RequestLocationInformation_r9_IEs__ext2, nr_DL_TDOA_RequestLocationInformation_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-DL-TDOA-RequestLocationInformation-r16" - }, -}; -static const int asn_MAP_ext2_oms_13[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_13[] = { - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_13[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-ECID-RequestLocationInformation-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-Multi-RTT-RequestLocationInformation-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-AoD-RequestLocationInformation-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* nr-DL-TDOA-RequestLocationInformation-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_13 = { - sizeof(struct RequestLocationInformation_r9_IEs__ext2), - offsetof(struct RequestLocationInformation_r9_IEs__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_13, - 4, /* Count of tags in the map */ - asn_MAP_ext2_oms_13, /* Optional members */ - 4, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_13 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_13, - sizeof(asn_DEF_ext2_tags_13) - /sizeof(asn_DEF_ext2_tags_13[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_13, /* Same as above */ - sizeof(asn_DEF_ext2_tags_13) - /sizeof(asn_DEF_ext2_tags_13[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_13, - 4, /* Elements count */ - &asn_SPC_ext2_specs_13 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_RequestLocationInformation_r9_IEs_1[] = { - { ATF_POINTER, 7, offsetof(struct RequestLocationInformation_r9_IEs, commonIEsRequestLocationInformation), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CommonIEsRequestLocationInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "commonIEsRequestLocationInformation" - }, - { ATF_POINTER, 6, offsetof(struct RequestLocationInformation_r9_IEs, a_gnss_RequestLocationInformation), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_A_GNSS_RequestLocationInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "a-gnss-RequestLocationInformation" - }, - { ATF_POINTER, 5, offsetof(struct RequestLocationInformation_r9_IEs, otdoa_RequestLocationInformation), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OTDOA_RequestLocationInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "otdoa-RequestLocationInformation" - }, - { ATF_POINTER, 4, offsetof(struct RequestLocationInformation_r9_IEs, ecid_RequestLocationInformation), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ECID_RequestLocationInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ecid-RequestLocationInformation" - }, - { ATF_POINTER, 3, offsetof(struct RequestLocationInformation_r9_IEs, epdu_RequestLocationInformation), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EPDU_Sequence, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "epdu-RequestLocationInformation" - }, - { ATF_POINTER, 2, offsetof(struct RequestLocationInformation_r9_IEs, ext1), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - 0, - &asn_DEF_ext1_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct RequestLocationInformation_r9_IEs, ext2), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - 0, - &asn_DEF_ext2_13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_RequestLocationInformation_r9_IEs_oms_1[] = { 0, 1, 2, 3, 4, 5, 6 }; -static const ber_tlv_tag_t asn_DEF_RequestLocationInformation_r9_IEs_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RequestLocationInformation_r9_IEs_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* commonIEsRequestLocationInformation */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* a-gnss-RequestLocationInformation */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* otdoa-RequestLocationInformation */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ecid-RequestLocationInformation */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* epdu-RequestLocationInformation */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RequestLocationInformation_r9_IEs_specs_1 = { - sizeof(struct RequestLocationInformation_r9_IEs), - offsetof(struct RequestLocationInformation_r9_IEs, _asn_ctx), - asn_MAP_RequestLocationInformation_r9_IEs_tag2el_1, - 7, /* Count of tags in the map */ - asn_MAP_RequestLocationInformation_r9_IEs_oms_1, /* Optional members */ - 5, 2, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_RequestLocationInformation_r9_IEs = { - "RequestLocationInformation-r9-IEs", - "RequestLocationInformation-r9-IEs", - &asn_OP_SEQUENCE, - asn_DEF_RequestLocationInformation_r9_IEs_tags_1, - sizeof(asn_DEF_RequestLocationInformation_r9_IEs_tags_1) - /sizeof(asn_DEF_RequestLocationInformation_r9_IEs_tags_1[0]), /* 1 */ - asn_DEF_RequestLocationInformation_r9_IEs_tags_1, /* Same as above */ - sizeof(asn_DEF_RequestLocationInformation_r9_IEs_tags_1) - /sizeof(asn_DEF_RequestLocationInformation_r9_IEs_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_RequestLocationInformation_r9_IEs_1, - 7, /* Elements count */ - &asn_SPC_RequestLocationInformation_r9_IEs_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RequestLocationInformation-r9-IEs.h b/asn.1/generated/RequestLocationInformation-r9-IEs.h deleted file mode 100644 index c8a2609e..00000000 --- a/asn.1/generated/RequestLocationInformation-r9-IEs.h +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _RequestLocationInformation_r9_IEs_H_ -#define _RequestLocationInformation_r9_IEs_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct CommonIEsRequestLocationInformation; -struct A_GNSS_RequestLocationInformation; -struct OTDOA_RequestLocationInformation; -struct ECID_RequestLocationInformation; -struct EPDU_Sequence; -struct Sensor_RequestLocationInformation_r13; -struct TBS_RequestLocationInformation_r13; -struct WLAN_RequestLocationInformation_r13; -struct BT_RequestLocationInformation_r13; -struct NR_ECID_RequestLocationInformation_r16; -struct NR_Multi_RTT_RequestLocationInformation_r16; -struct NR_DL_AoD_RequestLocationInformation_r16; -struct NR_DL_TDOA_RequestLocationInformation_r16; - -/* RequestLocationInformation-r9-IEs */ -typedef struct RequestLocationInformation_r9_IEs { - struct CommonIEsRequestLocationInformation *commonIEsRequestLocationInformation /* OPTIONAL */; - struct A_GNSS_RequestLocationInformation *a_gnss_RequestLocationInformation /* OPTIONAL */; - struct OTDOA_RequestLocationInformation *otdoa_RequestLocationInformation /* OPTIONAL */; - struct ECID_RequestLocationInformation *ecid_RequestLocationInformation /* OPTIONAL */; - struct EPDU_Sequence *epdu_RequestLocationInformation /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct RequestLocationInformation_r9_IEs__ext1 { - struct Sensor_RequestLocationInformation_r13 *sensor_RequestLocationInformation_r13 /* OPTIONAL */; - struct TBS_RequestLocationInformation_r13 *tbs_RequestLocationInformation_r13 /* OPTIONAL */; - struct WLAN_RequestLocationInformation_r13 *wlan_RequestLocationInformation_r13 /* OPTIONAL */; - struct BT_RequestLocationInformation_r13 *bt_RequestLocationInformation_r13 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - struct RequestLocationInformation_r9_IEs__ext2 { - struct NR_ECID_RequestLocationInformation_r16 *nr_ECID_RequestLocationInformation_r16 /* OPTIONAL */; - struct NR_Multi_RTT_RequestLocationInformation_r16 *nr_Multi_RTT_RequestLocationInformation_r16 /* OPTIONAL */; - struct NR_DL_AoD_RequestLocationInformation_r16 *nr_DL_AoD_RequestLocationInformation_r16 /* OPTIONAL */; - struct NR_DL_TDOA_RequestLocationInformation_r16 *nr_DL_TDOA_RequestLocationInformation_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext2; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} RequestLocationInformation_r9_IEs_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_RequestLocationInformation_r9_IEs; -extern asn_SEQUENCE_specifics_t asn_SPC_RequestLocationInformation_r9_IEs_specs_1; -extern asn_TYPE_member_t asn_MBR_RequestLocationInformation_r9_IEs_1[7]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "CommonIEsRequestLocationInformation.h" -#include "A-GNSS-RequestLocationInformation.h" -#include "OTDOA-RequestLocationInformation.h" -#include "ECID-RequestLocationInformation.h" -#include "EPDU-Sequence.h" -#include "Sensor-RequestLocationInformation-r13.h" -#include "TBS-RequestLocationInformation-r13.h" -#include "WLAN-RequestLocationInformation-r13.h" -#include "BT-RequestLocationInformation-r13.h" -#include "NR-ECID-RequestLocationInformation-r16.h" -#include "NR-Multi-RTT-RequestLocationInformation-r16.h" -#include "NR-DL-AoD-RequestLocationInformation-r16.h" -#include "NR-DL-TDOA-RequestLocationInformation-r16.h" - -#endif /* _RequestLocationInformation_r9_IEs_H_ */ -#include diff --git a/asn.1/generated/RequestLocationInformation.c b/asn.1/generated/RequestLocationInformation.c deleted file mode 100644 index 29081cc6..00000000 --- a/asn.1/generated/RequestLocationInformation.c +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RequestLocationInformation.h" - -static asn_per_constraints_t asn_PER_type_c1_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_criticalExtensions_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_c1_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct RequestLocationInformation__criticalExtensions__c1, choice.requestLocationInformation_r9), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RequestLocationInformation_r9_IEs, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "requestLocationInformation-r9" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestLocationInformation__criticalExtensions__c1, choice.spare3), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare3" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestLocationInformation__criticalExtensions__c1, choice.spare2), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare2" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestLocationInformation__criticalExtensions__c1, choice.spare1), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "spare1" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_c1_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* requestLocationInformation-r9 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* spare3 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* spare2 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* spare1 */ -}; -static asn_CHOICE_specifics_t asn_SPC_c1_specs_3 = { - sizeof(struct RequestLocationInformation__criticalExtensions__c1), - offsetof(struct RequestLocationInformation__criticalExtensions__c1, _asn_ctx), - offsetof(struct RequestLocationInformation__criticalExtensions__c1, present), - sizeof(((struct RequestLocationInformation__criticalExtensions__c1 *)0)->present), - asn_MAP_c1_tag2el_3, - 4, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_c1_3 = { - "c1", - "c1", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_c1_constr_3, CHOICE_constraint }, - asn_MBR_c1_3, - 4, /* Elements count */ - &asn_SPC_c1_specs_3 /* Additional specs */ -}; - -static const ber_tlv_tag_t asn_DEF_criticalExtensionsFuture_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SEQUENCE_specifics_t asn_SPC_criticalExtensionsFuture_specs_8 = { - sizeof(struct RequestLocationInformation__criticalExtensions__criticalExtensionsFuture), - offsetof(struct RequestLocationInformation__criticalExtensions__criticalExtensionsFuture, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_criticalExtensionsFuture_8 = { - "criticalExtensionsFuture", - "criticalExtensionsFuture", - &asn_OP_SEQUENCE, - asn_DEF_criticalExtensionsFuture_tags_8, - sizeof(asn_DEF_criticalExtensionsFuture_tags_8) - /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]) - 1, /* 1 */ - asn_DEF_criticalExtensionsFuture_tags_8, /* Same as above */ - sizeof(asn_DEF_criticalExtensionsFuture_tags_8) - /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_criticalExtensionsFuture_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_criticalExtensions_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct RequestLocationInformation__criticalExtensions, choice.c1), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_c1_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "c1" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestLocationInformation__criticalExtensions, choice.criticalExtensionsFuture), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_criticalExtensionsFuture_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "criticalExtensionsFuture" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_criticalExtensions_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* c1 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* criticalExtensionsFuture */ -}; -static asn_CHOICE_specifics_t asn_SPC_criticalExtensions_specs_2 = { - sizeof(struct RequestLocationInformation__criticalExtensions), - offsetof(struct RequestLocationInformation__criticalExtensions, _asn_ctx), - offsetof(struct RequestLocationInformation__criticalExtensions, present), - sizeof(((struct RequestLocationInformation__criticalExtensions *)0)->present), - asn_MAP_criticalExtensions_tag2el_2, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_criticalExtensions_2 = { - "criticalExtensions", - "criticalExtensions", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_criticalExtensions_constr_2, CHOICE_constraint }, - asn_MBR_criticalExtensions_2, - 2, /* Elements count */ - &asn_SPC_criticalExtensions_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_RequestLocationInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RequestLocationInformation, criticalExtensions), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_criticalExtensions_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "criticalExtensions" - }, -}; -static const ber_tlv_tag_t asn_DEF_RequestLocationInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RequestLocationInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* criticalExtensions */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RequestLocationInformation_specs_1 = { - sizeof(struct RequestLocationInformation), - offsetof(struct RequestLocationInformation, _asn_ctx), - asn_MAP_RequestLocationInformation_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_RequestLocationInformation = { - "RequestLocationInformation", - "RequestLocationInformation", - &asn_OP_SEQUENCE, - asn_DEF_RequestLocationInformation_tags_1, - sizeof(asn_DEF_RequestLocationInformation_tags_1) - /sizeof(asn_DEF_RequestLocationInformation_tags_1[0]), /* 1 */ - asn_DEF_RequestLocationInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_RequestLocationInformation_tags_1) - /sizeof(asn_DEF_RequestLocationInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_RequestLocationInformation_1, - 1, /* Elements count */ - &asn_SPC_RequestLocationInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/RequestedAssistData.c b/asn.1/generated/RequestedAssistData.c deleted file mode 100644 index 4f5216d9..00000000 --- a/asn.1/generated/RequestedAssistData.c +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-POS-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "RequestedAssistData.h" - -asn_TYPE_member_t asn_MBR_RequestedAssistData_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RequestedAssistData, almanacRequested), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "almanacRequested" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestedAssistData, utcModelRequested), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utcModelRequested" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestedAssistData, ionosphericModelRequested), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ionosphericModelRequested" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestedAssistData, dgpsCorrectionsRequested), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "dgpsCorrectionsRequested" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestedAssistData, referenceLocationRequested), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceLocationRequested" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestedAssistData, referenceTimeRequested), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceTimeRequested" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestedAssistData, acquisitionAssistanceRequested), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "acquisitionAssistanceRequested" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestedAssistData, realTimeIntegrityRequested), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "realTimeIntegrityRequested" - }, - { ATF_NOFLAGS, 0, offsetof(struct RequestedAssistData, navigationModelRequested), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "navigationModelRequested" - }, - { ATF_POINTER, 2, offsetof(struct RequestedAssistData, navigationModelData), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SUPL_NavigationModel, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "navigationModelData" - }, - { ATF_POINTER, 1, offsetof(struct RequestedAssistData, ver2_RequestedAssistData_extension), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver2_RequestedAssistData_extension, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ver2-RequestedAssistData-extension" - }, -}; -static const int asn_MAP_RequestedAssistData_oms_1[] = { 9, 10 }; -static const ber_tlv_tag_t asn_DEF_RequestedAssistData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RequestedAssistData_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* almanacRequested */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* utcModelRequested */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ionosphericModelRequested */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* dgpsCorrectionsRequested */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* referenceLocationRequested */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* referenceTimeRequested */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* acquisitionAssistanceRequested */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* realTimeIntegrityRequested */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* navigationModelRequested */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* navigationModelData */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 } /* ver2-RequestedAssistData-extension */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RequestedAssistData_specs_1 = { - sizeof(struct RequestedAssistData), - offsetof(struct RequestedAssistData, _asn_ctx), - asn_MAP_RequestedAssistData_tag2el_1, - 11, /* Count of tags in the map */ - asn_MAP_RequestedAssistData_oms_1, /* Optional members */ - 1, 1, /* Root/Additions */ - 10, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_RequestedAssistData = { - "RequestedAssistData", - "RequestedAssistData", - &asn_OP_SEQUENCE, - asn_DEF_RequestedAssistData_tags_1, - sizeof(asn_DEF_RequestedAssistData_tags_1) - /sizeof(asn_DEF_RequestedAssistData_tags_1[0]), /* 1 */ - asn_DEF_RequestedAssistData_tags_1, /* Same as above */ - sizeof(asn_DEF_RequestedAssistData_tags_1) - /sizeof(asn_DEF_RequestedAssistData_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_RequestedAssistData_1, - 11, /* Elements count */ - &asn_SPC_RequestedAssistData_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ResponseTime.c b/asn.1/generated/ResponseTime.c deleted file mode 100644 index b1c4fca0..00000000 --- a/asn.1/generated/ResponseTime.c +++ /dev/null @@ -1,268 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ResponseTime.h" - -static int -memb_responseTimeEarlyFix_r12_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_time_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_responseTimeEarlyFix_r12_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 1, 128 } /* (1..128) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_unit_r15_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_time_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 1, 128 } /* (1..128) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_ext1_4[] = { - { ATF_POINTER, 1, offsetof(struct ResponseTime__ext1, responseTimeEarlyFix_r12), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_responseTimeEarlyFix_r12_constr_5, memb_responseTimeEarlyFix_r12_constraint_4 }, - 0, 0, /* No default value */ - "responseTimeEarlyFix-r12" - }, -}; -static const int asn_MAP_ext1_oms_4[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* responseTimeEarlyFix-r12 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { - sizeof(struct ResponseTime__ext1), - offsetof(struct ResponseTime__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_4, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_4, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_4 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_4, - sizeof(asn_DEF_ext1_tags_4) - /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_4, /* Same as above */ - sizeof(asn_DEF_ext1_tags_4) - /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_4, - 1, /* Elements count */ - &asn_SPC_ext1_specs_4 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_unit_r15_value2enum_7[] = { - { 0, 11, "ten-seconds" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_unit_r15_enum2value_7[] = { - 0 /* ten-seconds(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_unit_r15_specs_7 = { - asn_MAP_unit_r15_value2enum_7, /* "tag" => N; sorted by tag */ - asn_MAP_unit_r15_enum2value_7, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 2, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_unit_r15_tags_7[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_unit_r15_7 = { - "unit-r15", - "unit-r15", - &asn_OP_NativeEnumerated, - asn_DEF_unit_r15_tags_7, - sizeof(asn_DEF_unit_r15_tags_7) - /sizeof(asn_DEF_unit_r15_tags_7[0]) - 1, /* 1 */ - asn_DEF_unit_r15_tags_7, /* Same as above */ - sizeof(asn_DEF_unit_r15_tags_7) - /sizeof(asn_DEF_unit_r15_tags_7[0]), /* 2 */ - { 0, &asn_PER_type_unit_r15_constr_7, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_unit_r15_specs_7 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_6[] = { - { ATF_POINTER, 1, offsetof(struct ResponseTime__ext2, unit_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_unit_r15_7, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "unit-r15" - }, -}; -static const int asn_MAP_ext2_oms_6[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_6[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* unit-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_6 = { - sizeof(struct ResponseTime__ext2), - offsetof(struct ResponseTime__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_6, - 1, /* Count of tags in the map */ - asn_MAP_ext2_oms_6, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_6 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_6, - sizeof(asn_DEF_ext2_tags_6) - /sizeof(asn_DEF_ext2_tags_6[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_6, /* Same as above */ - sizeof(asn_DEF_ext2_tags_6) - /sizeof(asn_DEF_ext2_tags_6[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_6, - 1, /* Elements count */ - &asn_SPC_ext2_specs_6 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_ResponseTime_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ResponseTime, time), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_time_constr_2, memb_time_constraint_1 }, - 0, 0, /* No default value */ - "time" - }, - { ATF_POINTER, 2, offsetof(struct ResponseTime, ext1), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_ext1_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct ResponseTime, ext2), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_ext2_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_ResponseTime_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_ResponseTime_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ResponseTime_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* time */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ResponseTime_specs_1 = { - sizeof(struct ResponseTime), - offsetof(struct ResponseTime, _asn_ctx), - asn_MAP_ResponseTime_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_ResponseTime_oms_1, /* Optional members */ - 0, 2, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ResponseTime = { - "ResponseTime", - "ResponseTime", - &asn_OP_SEQUENCE, - asn_DEF_ResponseTime_tags_1, - sizeof(asn_DEF_ResponseTime_tags_1) - /sizeof(asn_DEF_ResponseTime_tags_1[0]), /* 1 */ - asn_DEF_ResponseTime_tags_1, /* Same as above */ - sizeof(asn_DEF_ResponseTime_tags_1) - /sizeof(asn_DEF_ResponseTime_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ResponseTime_1, - 3, /* Elements count */ - &asn_SPC_ResponseTime_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ResponseTimeNB-r14.c b/asn.1/generated/ResponseTimeNB-r14.c deleted file mode 100644 index f60c03a5..00000000 --- a/asn.1/generated/ResponseTimeNB-r14.c +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ResponseTimeNB-r14.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_timeNB_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 512)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_responseTimeEarlyFixNB_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 512)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_unitNB_r15_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_timeNB_r14_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 1, 512 } /* (1..512) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_responseTimeEarlyFixNB_r14_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 1, 512 } /* (1..512) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_unitNB_r15_value2enum_6[] = { - { 0, 11, "ten-seconds" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_unitNB_r15_enum2value_6[] = { - 0 /* ten-seconds(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_unitNB_r15_specs_6 = { - asn_MAP_unitNB_r15_value2enum_6, /* "tag" => N; sorted by tag */ - asn_MAP_unitNB_r15_enum2value_6, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 2, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_unitNB_r15_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_unitNB_r15_6 = { - "unitNB-r15", - "unitNB-r15", - &asn_OP_NativeEnumerated, - asn_DEF_unitNB_r15_tags_6, - sizeof(asn_DEF_unitNB_r15_tags_6) - /sizeof(asn_DEF_unitNB_r15_tags_6[0]) - 1, /* 1 */ - asn_DEF_unitNB_r15_tags_6, /* Same as above */ - sizeof(asn_DEF_unitNB_r15_tags_6) - /sizeof(asn_DEF_unitNB_r15_tags_6[0]), /* 2 */ - { 0, &asn_PER_type_unitNB_r15_constr_6, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_unitNB_r15_specs_6 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_5[] = { - { ATF_POINTER, 1, offsetof(struct ResponseTimeNB_r14__ext1, unitNB_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_unitNB_r15_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "unitNB-r15" - }, -}; -static const int asn_MAP_ext1_oms_5[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* unitNB-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { - sizeof(struct ResponseTimeNB_r14__ext1), - offsetof(struct ResponseTimeNB_r14__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_5, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_5, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_5 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_5, - sizeof(asn_DEF_ext1_tags_5) - /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_5, /* Same as above */ - sizeof(asn_DEF_ext1_tags_5) - /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_5, - 1, /* Elements count */ - &asn_SPC_ext1_specs_5 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_ResponseTimeNB_r14_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ResponseTimeNB_r14, timeNB_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_timeNB_r14_constr_2, memb_timeNB_r14_constraint_1 }, - 0, 0, /* No default value */ - "timeNB-r14" - }, - { ATF_POINTER, 2, offsetof(struct ResponseTimeNB_r14, responseTimeEarlyFixNB_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_responseTimeEarlyFixNB_r14_constr_3, memb_responseTimeEarlyFixNB_r14_constraint_1 }, - 0, 0, /* No default value */ - "responseTimeEarlyFixNB-r14" - }, - { ATF_POINTER, 1, offsetof(struct ResponseTimeNB_r14, ext1), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_ext1_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_ResponseTimeNB_r14_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_ResponseTimeNB_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ResponseTimeNB_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* timeNB-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* responseTimeEarlyFixNB-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ResponseTimeNB_r14_specs_1 = { - sizeof(struct ResponseTimeNB_r14), - offsetof(struct ResponseTimeNB_r14, _asn_ctx), - asn_MAP_ResponseTimeNB_r14_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_ResponseTimeNB_r14_oms_1, /* Optional members */ - 1, 1, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ResponseTimeNB_r14 = { - "ResponseTimeNB-r14", - "ResponseTimeNB-r14", - &asn_OP_SEQUENCE, - asn_DEF_ResponseTimeNB_r14_tags_1, - sizeof(asn_DEF_ResponseTimeNB_r14_tags_1) - /sizeof(asn_DEF_ResponseTimeNB_r14_tags_1[0]), /* 1 */ - asn_DEF_ResponseTimeNB_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_ResponseTimeNB_r14_tags_1) - /sizeof(asn_DEF_ResponseTimeNB_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ResponseTimeNB_r14_1, - 3, /* Elements count */ - &asn_SPC_ResponseTimeNB_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ResultCode.c b/asn.1/generated/ResultCode.c deleted file mode 100644 index fcb3dfea..00000000 --- a/asn.1/generated/ResultCode.c +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ResultCode.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_ResultCode_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 6 } /* (0..6,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_ResultCode_value2enum_1[] = { - { 1, 18, "outofradiocoverage" }, - { 2, 10, "noposition" }, - { 3, 13, "nomeasurement" }, - { 4, 23, "nopositionnomeasurement" }, - { 5, 11, "outofmemory" }, - { 6, 32, "outofmemoryintermediatereporting" }, - { 7, 5, "other" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_ResultCode_enum2value_1[] = { - 2, /* nomeasurement(3) */ - 1, /* noposition(2) */ - 3, /* nopositionnomeasurement(4) */ - 6, /* other(7) */ - 4, /* outofmemory(5) */ - 5, /* outofmemoryintermediatereporting(6) */ - 0 /* outofradiocoverage(1) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_ResultCode_specs_1 = { - asn_MAP_ResultCode_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_ResultCode_enum2value_1, /* N => "tag"; sorted by N */ - 7, /* Number of elements in the maps */ - 8, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_ResultCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_ResultCode = { - "ResultCode", - "ResultCode", - &asn_OP_NativeEnumerated, - asn_DEF_ResultCode_tags_1, - sizeof(asn_DEF_ResultCode_tags_1) - /sizeof(asn_DEF_ResultCode_tags_1[0]), /* 1 */ - asn_DEF_ResultCode_tags_1, /* Same as above */ - sizeof(asn_DEF_ResultCode_tags_1) - /sizeof(asn_DEF_ResultCode_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_ResultCode_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_ResultCode_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ResultsPerCSI-RS-Index-r16.c b/asn.1/generated/ResultsPerCSI-RS-Index-r16.c deleted file mode 100644 index 22e2b0b4..00000000 --- a/asn.1/generated/ResultsPerCSI-RS-Index-r16.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ResultsPerCSI-RS-Index-r16.h" - -static int -memb_csi_RS_Index_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 95)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_csi_RS_Index_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 95 } /* (0..95) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_ResultsPerCSI_RS_Index_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ResultsPerCSI_RS_Index_r16, csi_RS_Index_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_csi_RS_Index_r16_constr_2, memb_csi_RS_Index_r16_constraint_1 }, - 0, 0, /* No default value */ - "csi-RS-Index-r16" - }, - { ATF_POINTER, 1, offsetof(struct ResultsPerCSI_RS_Index_r16, csi_RS_Results_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MeasQuantityResults_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "csi-RS-Results-r16" - }, -}; -static const int asn_MAP_ResultsPerCSI_RS_Index_r16_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_ResultsPerCSI_RS_Index_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ResultsPerCSI_RS_Index_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* csi-RS-Index-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* csi-RS-Results-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ResultsPerCSI_RS_Index_r16_specs_1 = { - sizeof(struct ResultsPerCSI_RS_Index_r16), - offsetof(struct ResultsPerCSI_RS_Index_r16, _asn_ctx), - asn_MAP_ResultsPerCSI_RS_Index_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_ResultsPerCSI_RS_Index_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ResultsPerCSI_RS_Index_r16 = { - "ResultsPerCSI-RS-Index-r16", - "ResultsPerCSI-RS-Index-r16", - &asn_OP_SEQUENCE, - asn_DEF_ResultsPerCSI_RS_Index_r16_tags_1, - sizeof(asn_DEF_ResultsPerCSI_RS_Index_r16_tags_1) - /sizeof(asn_DEF_ResultsPerCSI_RS_Index_r16_tags_1[0]), /* 1 */ - asn_DEF_ResultsPerCSI_RS_Index_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_ResultsPerCSI_RS_Index_r16_tags_1) - /sizeof(asn_DEF_ResultsPerCSI_RS_Index_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ResultsPerCSI_RS_Index_r16_1, - 2, /* Elements count */ - &asn_SPC_ResultsPerCSI_RS_Index_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ResultsPerCSI-RS-Index-r16.h b/asn.1/generated/ResultsPerCSI-RS-Index-r16.h deleted file mode 100644 index 7d712dd2..00000000 --- a/asn.1/generated/ResultsPerCSI-RS-Index-r16.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _ResultsPerCSI_RS_Index_r16_H_ -#define _ResultsPerCSI_RS_Index_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct MeasQuantityResults_r16; - -/* ResultsPerCSI-RS-Index-r16 */ -typedef struct ResultsPerCSI_RS_Index_r16 { - long csi_RS_Index_r16; - struct MeasQuantityResults_r16 *csi_RS_Results_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} ResultsPerCSI_RS_Index_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_ResultsPerCSI_RS_Index_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_ResultsPerCSI_RS_Index_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_ResultsPerCSI_RS_Index_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "MeasQuantityResults-r16.h" - -#endif /* _ResultsPerCSI_RS_Index_r16_H_ */ -#include diff --git a/asn.1/generated/ResultsPerCSI-RS-IndexList-r16.c b/asn.1/generated/ResultsPerCSI-RS-IndexList-r16.c deleted file mode 100644 index d0a0f151..00000000 --- a/asn.1/generated/ResultsPerCSI-RS-IndexList-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ResultsPerCSI-RS-IndexList-r16.h" - -asn_per_constraints_t asn_PER_type_ResultsPerCSI_RS_IndexList_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_ResultsPerCSI_RS_IndexList_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_ResultsPerCSI_RS_Index_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_ResultsPerCSI_RS_IndexList_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_ResultsPerCSI_RS_IndexList_r16_specs_1 = { - sizeof(struct ResultsPerCSI_RS_IndexList_r16), - offsetof(struct ResultsPerCSI_RS_IndexList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_ResultsPerCSI_RS_IndexList_r16 = { - "ResultsPerCSI-RS-IndexList-r16", - "ResultsPerCSI-RS-IndexList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_ResultsPerCSI_RS_IndexList_r16_tags_1, - sizeof(asn_DEF_ResultsPerCSI_RS_IndexList_r16_tags_1) - /sizeof(asn_DEF_ResultsPerCSI_RS_IndexList_r16_tags_1[0]), /* 1 */ - asn_DEF_ResultsPerCSI_RS_IndexList_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_ResultsPerCSI_RS_IndexList_r16_tags_1) - /sizeof(asn_DEF_ResultsPerCSI_RS_IndexList_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_ResultsPerCSI_RS_IndexList_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_ResultsPerCSI_RS_IndexList_r16_1, - 1, /* Single element */ - &asn_SPC_ResultsPerCSI_RS_IndexList_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ResultsPerSSB-Index-r16.c b/asn.1/generated/ResultsPerSSB-Index-r16.c deleted file mode 100644 index 8a12985d..00000000 --- a/asn.1/generated/ResultsPerSSB-Index-r16.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ResultsPerSSB-Index-r16.h" - -static int -memb_ssb_Index_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_ssb_Index_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_ResultsPerSSB_Index_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ResultsPerSSB_Index_r16, ssb_Index_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ssb_Index_r16_constr_2, memb_ssb_Index_r16_constraint_1 }, - 0, 0, /* No default value */ - "ssb-Index-r16" - }, - { ATF_POINTER, 1, offsetof(struct ResultsPerSSB_Index_r16, ssb_Results_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MeasQuantityResults_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ssb-Results-r16" - }, -}; -static const int asn_MAP_ResultsPerSSB_Index_r16_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_ResultsPerSSB_Index_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ResultsPerSSB_Index_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ssb-Index-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ssb-Results-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ResultsPerSSB_Index_r16_specs_1 = { - sizeof(struct ResultsPerSSB_Index_r16), - offsetof(struct ResultsPerSSB_Index_r16, _asn_ctx), - asn_MAP_ResultsPerSSB_Index_r16_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_ResultsPerSSB_Index_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ResultsPerSSB_Index_r16 = { - "ResultsPerSSB-Index-r16", - "ResultsPerSSB-Index-r16", - &asn_OP_SEQUENCE, - asn_DEF_ResultsPerSSB_Index_r16_tags_1, - sizeof(asn_DEF_ResultsPerSSB_Index_r16_tags_1) - /sizeof(asn_DEF_ResultsPerSSB_Index_r16_tags_1[0]), /* 1 */ - asn_DEF_ResultsPerSSB_Index_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_ResultsPerSSB_Index_r16_tags_1) - /sizeof(asn_DEF_ResultsPerSSB_Index_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ResultsPerSSB_Index_r16_1, - 2, /* Elements count */ - &asn_SPC_ResultsPerSSB_Index_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ResultsPerSSB-Index-r16.h b/asn.1/generated/ResultsPerSSB-Index-r16.h deleted file mode 100644 index 9942295c..00000000 --- a/asn.1/generated/ResultsPerSSB-Index-r16.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _ResultsPerSSB_Index_r16_H_ -#define _ResultsPerSSB_Index_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct MeasQuantityResults_r16; - -/* ResultsPerSSB-Index-r16 */ -typedef struct ResultsPerSSB_Index_r16 { - long ssb_Index_r16; - struct MeasQuantityResults_r16 *ssb_Results_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} ResultsPerSSB_Index_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_ResultsPerSSB_Index_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_ResultsPerSSB_Index_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_ResultsPerSSB_Index_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "MeasQuantityResults-r16.h" - -#endif /* _ResultsPerSSB_Index_r16_H_ */ -#include diff --git a/asn.1/generated/ResultsPerSSB-IndexList-r16.c b/asn.1/generated/ResultsPerSSB-IndexList-r16.c deleted file mode 100644 index 38c1c03f..00000000 --- a/asn.1/generated/ResultsPerSSB-IndexList-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ResultsPerSSB-IndexList-r16.h" - -asn_per_constraints_t asn_PER_type_ResultsPerSSB_IndexList_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_ResultsPerSSB_IndexList_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_ResultsPerSSB_Index_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_ResultsPerSSB_IndexList_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_ResultsPerSSB_IndexList_r16_specs_1 = { - sizeof(struct ResultsPerSSB_IndexList_r16), - offsetof(struct ResultsPerSSB_IndexList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_ResultsPerSSB_IndexList_r16 = { - "ResultsPerSSB-IndexList-r16", - "ResultsPerSSB-IndexList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_ResultsPerSSB_IndexList_r16_tags_1, - sizeof(asn_DEF_ResultsPerSSB_IndexList_r16_tags_1) - /sizeof(asn_DEF_ResultsPerSSB_IndexList_r16_tags_1[0]), /* 1 */ - asn_DEF_ResultsPerSSB_IndexList_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_ResultsPerSSB_IndexList_r16_tags_1) - /sizeof(asn_DEF_ResultsPerSSB_IndexList_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_ResultsPerSSB_IndexList_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_ResultsPerSSB_IndexList_r16_1, - 1, /* Single element */ - &asn_SPC_ResultsPerSSB_IndexList_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SBAS-ClockModel.c b/asn.1/generated/SBAS-ClockModel.c deleted file mode 100644 index 5d911df2..00000000 --- a/asn.1/generated/SBAS-ClockModel.c +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SBAS-ClockModel.h" - -static int -memb_sbasTo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 5399)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbasAgfo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2048 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sbasAgf1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_sbasTo_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, 0, 5399 } /* (0..5399) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbasAgfo_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sbasAgf1_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SBAS_ClockModel_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SBAS_ClockModel, sbasTo), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasTo_constr_2, memb_sbasTo_constraint_1 }, - 0, 0, /* No default value */ - "sbasTo" - }, - { ATF_NOFLAGS, 0, offsetof(struct SBAS_ClockModel, sbasAgfo), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasAgfo_constr_3, memb_sbasAgfo_constraint_1 }, - 0, 0, /* No default value */ - "sbasAgfo" - }, - { ATF_NOFLAGS, 0, offsetof(struct SBAS_ClockModel, sbasAgf1), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sbasAgf1_constr_4, memb_sbasAgf1_constraint_1 }, - 0, 0, /* No default value */ - "sbasAgf1" - }, -}; -static const ber_tlv_tag_t asn_DEF_SBAS_ClockModel_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SBAS_ClockModel_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sbasTo */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sbasAgfo */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* sbasAgf1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SBAS_ClockModel_specs_1 = { - sizeof(struct SBAS_ClockModel), - offsetof(struct SBAS_ClockModel, _asn_ctx), - asn_MAP_SBAS_ClockModel_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SBAS_ClockModel = { - "SBAS-ClockModel", - "SBAS-ClockModel", - &asn_OP_SEQUENCE, - asn_DEF_SBAS_ClockModel_tags_1, - sizeof(asn_DEF_SBAS_ClockModel_tags_1) - /sizeof(asn_DEF_SBAS_ClockModel_tags_1[0]), /* 1 */ - asn_DEF_SBAS_ClockModel_tags_1, /* Same as above */ - sizeof(asn_DEF_SBAS_ClockModel_tags_1) - /sizeof(asn_DEF_SBAS_ClockModel_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SBAS_ClockModel_1, - 3, /* Elements count */ - &asn_SPC_SBAS_ClockModel_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SBAS-ID.c b/asn.1/generated/SBAS-ID.c deleted file mode 100644 index fbba3616..00000000 --- a/asn.1/generated/SBAS-ID.c +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SBAS-ID.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_sbas_id_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_sbas_id_value2enum_2[] = { - { 0, 4, "waas" }, - { 1, 5, "egnos" }, - { 2, 4, "msas" }, - { 3, 5, "gagan" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_sbas_id_enum2value_2[] = { - 1, /* egnos(1) */ - 3, /* gagan(3) */ - 2, /* msas(2) */ - 0 /* waas(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_sbas_id_specs_2 = { - asn_MAP_sbas_id_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_sbas_id_enum2value_2, /* N => "tag"; sorted by N */ - 4, /* Number of elements in the maps */ - 5, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_sbas_id_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_sbas_id_2 = { - "sbas-id", - "sbas-id", - &asn_OP_NativeEnumerated, - asn_DEF_sbas_id_tags_2, - sizeof(asn_DEF_sbas_id_tags_2) - /sizeof(asn_DEF_sbas_id_tags_2[0]) - 1, /* 1 */ - asn_DEF_sbas_id_tags_2, /* Same as above */ - sizeof(asn_DEF_sbas_id_tags_2) - /sizeof(asn_DEF_sbas_id_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_sbas_id_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_sbas_id_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_SBAS_ID_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SBAS_ID, sbas_id), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_sbas_id_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sbas-id" - }, -}; -static const ber_tlv_tag_t asn_DEF_SBAS_ID_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SBAS_ID_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* sbas-id */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SBAS_ID_specs_1 = { - sizeof(struct SBAS_ID), - offsetof(struct SBAS_ID, _asn_ctx), - asn_MAP_SBAS_ID_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SBAS_ID = { - "SBAS-ID", - "SBAS-ID", - &asn_OP_SEQUENCE, - asn_DEF_SBAS_ID_tags_1, - sizeof(asn_DEF_SBAS_ID_tags_1) - /sizeof(asn_DEF_SBAS_ID_tags_1[0]), /* 1 */ - asn_DEF_SBAS_ID_tags_1, /* Same as above */ - sizeof(asn_DEF_SBAS_ID_tags_1) - /sizeof(asn_DEF_SBAS_ID_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SBAS_ID_1, - 1, /* Elements count */ - &asn_SPC_SBAS_ID_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SBAS-IDs.c b/asn.1/generated/SBAS-IDs.c deleted file mode 100644 index 1f971f1a..00000000 --- a/asn.1/generated/SBAS-IDs.c +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SBAS-IDs.h" - -static int -memb_sbas_IDs_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_sbas_IDs_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SBAS_IDs_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SBAS_IDs, sbas_IDs), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_sbas_IDs_constr_2, memb_sbas_IDs_constraint_1 }, - 0, 0, /* No default value */ - "sbas-IDs" - }, -}; -static const ber_tlv_tag_t asn_DEF_SBAS_IDs_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SBAS_IDs_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* sbas-IDs */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SBAS_IDs_specs_1 = { - sizeof(struct SBAS_IDs), - offsetof(struct SBAS_IDs, _asn_ctx), - asn_MAP_SBAS_IDs_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SBAS_IDs = { - "SBAS-IDs", - "SBAS-IDs", - &asn_OP_SEQUENCE, - asn_DEF_SBAS_IDs_tags_1, - sizeof(asn_DEF_SBAS_IDs_tags_1) - /sizeof(asn_DEF_SBAS_IDs_tags_1[0]), /* 1 */ - asn_DEF_SBAS_IDs_tags_1, /* Same as above */ - sizeof(asn_DEF_SBAS_IDs_tags_1) - /sizeof(asn_DEF_SBAS_IDs_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SBAS_IDs_1, - 1, /* Elements count */ - &asn_SPC_SBAS_IDs_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SET-GANSSReferenceTime.c b/asn.1/generated/SET-GANSSReferenceTime.c deleted file mode 100644 index 77321ca7..00000000 --- a/asn.1/generated/SET-GANSSReferenceTime.c +++ /dev/null @@ -1,436 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SET-GANSSReferenceTime.h" - -static int -ls_part_4_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -static int -memb_ms_part_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 80)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ls_part_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -static int -memb_sfn_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ganss_TODUncertainty_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_ls_part_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ms_part_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 80 } /* (0..80) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ls_part_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_modeSpecificInfo_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sfn_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ganss_TODUncertainty_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_specifics_t asn_SPC_ls_part_specs_4 = { - 0, 0, 0, 0, 0, - 0, /* Native long size */ - 1 /* Unsigned representation */ -}; -static const ber_tlv_tag_t asn_DEF_ls_part_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ls_part_4 = { - "ls-part", - "ls-part", - &asn_OP_NativeInteger, - asn_DEF_ls_part_tags_4, - sizeof(asn_DEF_ls_part_tags_4) - /sizeof(asn_DEF_ls_part_tags_4[0]) - 1, /* 1 */ - asn_DEF_ls_part_tags_4, /* Same as above */ - sizeof(asn_DEF_ls_part_tags_4) - /sizeof(asn_DEF_ls_part_tags_4[0]), /* 2 */ - { 0, &asn_PER_type_ls_part_constr_4, ls_part_4_constraint }, - 0, 0, /* No members */ - &asn_SPC_ls_part_specs_4 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_set_GANSSTimingOfCell_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct SET_GANSSReferenceTime__set_GANSSTimingOfCell, ms_part), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ms_part_constr_3, memb_ms_part_constraint_2 }, - 0, 0, /* No default value */ - "ms-part" - }, - { ATF_NOFLAGS, 0, offsetof(struct SET_GANSSReferenceTime__set_GANSSTimingOfCell, ls_part), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ls_part_4, - 0, - { 0, &asn_PER_memb_ls_part_constr_4, memb_ls_part_constraint_2 }, - 0, 0, /* No default value */ - "ls-part" - }, -}; -static const ber_tlv_tag_t asn_DEF_set_GANSSTimingOfCell_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_set_GANSSTimingOfCell_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ms-part */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ls-part */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_set_GANSSTimingOfCell_specs_2 = { - sizeof(struct SET_GANSSReferenceTime__set_GANSSTimingOfCell), - offsetof(struct SET_GANSSReferenceTime__set_GANSSTimingOfCell, _asn_ctx), - asn_MAP_set_GANSSTimingOfCell_tag2el_2, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_set_GANSSTimingOfCell_2 = { - "set-GANSSTimingOfCell", - "set-GANSSTimingOfCell", - &asn_OP_SEQUENCE, - asn_DEF_set_GANSSTimingOfCell_tags_2, - sizeof(asn_DEF_set_GANSSTimingOfCell_tags_2) - /sizeof(asn_DEF_set_GANSSTimingOfCell_tags_2[0]) - 1, /* 1 */ - asn_DEF_set_GANSSTimingOfCell_tags_2, /* Same as above */ - sizeof(asn_DEF_set_GANSSTimingOfCell_tags_2) - /sizeof(asn_DEF_set_GANSSTimingOfCell_tags_2[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_set_GANSSTimingOfCell_2, - 2, /* Elements count */ - &asn_SPC_set_GANSSTimingOfCell_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_fdd_6[] = { - { ATF_NOFLAGS, 0, offsetof(struct SET_GANSSReferenceTime__modeSpecificInfo__fdd, referenceIdentity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PrimaryCPICH_Info, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceIdentity" - }, -}; -static const ber_tlv_tag_t asn_DEF_fdd_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_fdd_tag2el_6[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* referenceIdentity */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_fdd_specs_6 = { - sizeof(struct SET_GANSSReferenceTime__modeSpecificInfo__fdd), - offsetof(struct SET_GANSSReferenceTime__modeSpecificInfo__fdd, _asn_ctx), - asn_MAP_fdd_tag2el_6, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_fdd_6 = { - "fdd", - "fdd", - &asn_OP_SEQUENCE, - asn_DEF_fdd_tags_6, - sizeof(asn_DEF_fdd_tags_6) - /sizeof(asn_DEF_fdd_tags_6[0]) - 1, /* 1 */ - asn_DEF_fdd_tags_6, /* Same as above */ - sizeof(asn_DEF_fdd_tags_6) - /sizeof(asn_DEF_fdd_tags_6[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_fdd_6, - 1, /* Elements count */ - &asn_SPC_fdd_specs_6 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_tdd_8[] = { - { ATF_NOFLAGS, 0, offsetof(struct SET_GANSSReferenceTime__modeSpecificInfo__tdd, referenceIdentity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CellParametersID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceIdentity" - }, -}; -static const ber_tlv_tag_t asn_DEF_tdd_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_tdd_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* referenceIdentity */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_tdd_specs_8 = { - sizeof(struct SET_GANSSReferenceTime__modeSpecificInfo__tdd), - offsetof(struct SET_GANSSReferenceTime__modeSpecificInfo__tdd, _asn_ctx), - asn_MAP_tdd_tag2el_8, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_tdd_8 = { - "tdd", - "tdd", - &asn_OP_SEQUENCE, - asn_DEF_tdd_tags_8, - sizeof(asn_DEF_tdd_tags_8) - /sizeof(asn_DEF_tdd_tags_8[0]) - 1, /* 1 */ - asn_DEF_tdd_tags_8, /* Same as above */ - sizeof(asn_DEF_tdd_tags_8) - /sizeof(asn_DEF_tdd_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_tdd_8, - 1, /* Elements count */ - &asn_SPC_tdd_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_modeSpecificInfo_5[] = { - { ATF_NOFLAGS, 0, offsetof(struct SET_GANSSReferenceTime__modeSpecificInfo, choice.fdd), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_fdd_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "fdd" - }, - { ATF_NOFLAGS, 0, offsetof(struct SET_GANSSReferenceTime__modeSpecificInfo, choice.tdd), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_tdd_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tdd" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_modeSpecificInfo_tag2el_5[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */ -}; -static asn_CHOICE_specifics_t asn_SPC_modeSpecificInfo_specs_5 = { - sizeof(struct SET_GANSSReferenceTime__modeSpecificInfo), - offsetof(struct SET_GANSSReferenceTime__modeSpecificInfo, _asn_ctx), - offsetof(struct SET_GANSSReferenceTime__modeSpecificInfo, present), - sizeof(((struct SET_GANSSReferenceTime__modeSpecificInfo *)0)->present), - asn_MAP_modeSpecificInfo_tag2el_5, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_modeSpecificInfo_5 = { - "modeSpecificInfo", - "modeSpecificInfo", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_modeSpecificInfo_constr_5, CHOICE_constraint }, - asn_MBR_modeSpecificInfo_5, - 2, /* Elements count */ - &asn_SPC_modeSpecificInfo_specs_5 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_SET_GANSSReferenceTime_1[] = { - { ATF_POINTER, 2, offsetof(struct SET_GANSSReferenceTime, set_GANSSTimingOfCell), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_set_GANSSTimingOfCell_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "set-GANSSTimingOfCell" - }, - { ATF_POINTER, 1, offsetof(struct SET_GANSSReferenceTime, modeSpecificInfo), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_modeSpecificInfo_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "modeSpecificInfo" - }, - { ATF_NOFLAGS, 0, offsetof(struct SET_GANSSReferenceTime, sfn), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sfn_constr_10, memb_sfn_constraint_1 }, - 0, 0, /* No default value */ - "sfn" - }, - { ATF_POINTER, 1, offsetof(struct SET_GANSSReferenceTime, ganss_TODUncertainty), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ganss_TODUncertainty_constr_11, memb_ganss_TODUncertainty_constraint_1 }, - 0, 0, /* No default value */ - "ganss-TODUncertainty" - }, -}; -static const int asn_MAP_SET_GANSSReferenceTime_oms_1[] = { 0, 1, 3 }; -static const ber_tlv_tag_t asn_DEF_SET_GANSSReferenceTime_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SET_GANSSReferenceTime_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* set-GANSSTimingOfCell */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* modeSpecificInfo */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sfn */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ganss-TODUncertainty */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SET_GANSSReferenceTime_specs_1 = { - sizeof(struct SET_GANSSReferenceTime), - offsetof(struct SET_GANSSReferenceTime, _asn_ctx), - asn_MAP_SET_GANSSReferenceTime_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_SET_GANSSReferenceTime_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SET_GANSSReferenceTime = { - "SET-GANSSReferenceTime", - "SET-GANSSReferenceTime", - &asn_OP_SEQUENCE, - asn_DEF_SET_GANSSReferenceTime_tags_1, - sizeof(asn_DEF_SET_GANSSReferenceTime_tags_1) - /sizeof(asn_DEF_SET_GANSSReferenceTime_tags_1[0]), /* 1 */ - asn_DEF_SET_GANSSReferenceTime_tags_1, /* Same as above */ - sizeof(asn_DEF_SET_GANSSReferenceTime_tags_1) - /sizeof(asn_DEF_SET_GANSSReferenceTime_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SET_GANSSReferenceTime_1, - 4, /* Elements count */ - &asn_SPC_SET_GANSSReferenceTime_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SETAuthKey.c b/asn.1/generated/SETAuthKey.c deleted file mode 100644 index 4630df2f..00000000 --- a/asn.1/generated/SETAuthKey.c +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SETAuthKey.h" - -static int -memb_shortKey_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_longKey_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 256)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_shortKey_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_longKey_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 256, 256 } /* (SIZE(256..256)) */, - 0, 0 /* No PER value map */ -}; -asn_per_constraints_t asn_PER_type_SETAuthKey_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SETAuthKey_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SETAuthKey, choice.shortKey), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_shortKey_constr_2, memb_shortKey_constraint_1 }, - 0, 0, /* No default value */ - "shortKey" - }, - { ATF_NOFLAGS, 0, offsetof(struct SETAuthKey, choice.longKey), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_longKey_constr_3, memb_longKey_constraint_1 }, - 0, 0, /* No default value */ - "longKey" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_SETAuthKey_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* shortKey */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* longKey */ -}; -asn_CHOICE_specifics_t asn_SPC_SETAuthKey_specs_1 = { - sizeof(struct SETAuthKey), - offsetof(struct SETAuthKey, _asn_ctx), - offsetof(struct SETAuthKey, present), - sizeof(((struct SETAuthKey *)0)->present), - asn_MAP_SETAuthKey_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_SETAuthKey = { - "SETAuthKey", - "SETAuthKey", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_SETAuthKey_constr_1, CHOICE_constraint }, - asn_MBR_SETAuthKey_1, - 2, /* Elements count */ - &asn_SPC_SETAuthKey_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SETCapabilities.c b/asn.1/generated/SETCapabilities.c deleted file mode 100644 index 695cd16d..00000000 --- a/asn.1/generated/SETCapabilities.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SETCapabilities.h" - -asn_TYPE_member_t asn_MBR_SETCapabilities_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SETCapabilities, posTechnology), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PosTechnology, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "posTechnology" - }, - { ATF_NOFLAGS, 0, offsetof(struct SETCapabilities, prefMethod), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PrefMethod, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "prefMethod" - }, - { ATF_NOFLAGS, 0, offsetof(struct SETCapabilities, posProtocol), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PosProtocol, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "posProtocol" - }, - { ATF_POINTER, 1, offsetof(struct SETCapabilities, ver2_SETCapabilities_extension), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver2_SETCapabilities_extension, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ver2-SETCapabilities-extension" - }, -}; -static const int asn_MAP_SETCapabilities_oms_1[] = { 3 }; -static const ber_tlv_tag_t asn_DEF_SETCapabilities_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SETCapabilities_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* posTechnology */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* prefMethod */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* posProtocol */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ver2-SETCapabilities-extension */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SETCapabilities_specs_1 = { - sizeof(struct SETCapabilities), - offsetof(struct SETCapabilities, _asn_ctx), - asn_MAP_SETCapabilities_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_SETCapabilities_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SETCapabilities = { - "SETCapabilities", - "SETCapabilities", - &asn_OP_SEQUENCE, - asn_DEF_SETCapabilities_tags_1, - sizeof(asn_DEF_SETCapabilities_tags_1) - /sizeof(asn_DEF_SETCapabilities_tags_1[0]), /* 1 */ - asn_DEF_SETCapabilities_tags_1, /* Same as above */ - sizeof(asn_DEF_SETCapabilities_tags_1) - /sizeof(asn_DEF_SETCapabilities_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SETCapabilities_1, - 4, /* Elements count */ - &asn_SPC_SETCapabilities_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SETId.c b/asn.1/generated/SETId.c deleted file mode 100644 index c2fd7376..00000000 --- a/asn.1/generated/SETId.c +++ /dev/null @@ -1,276 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SETId.h" - -static int check_permitted_alphabet_6(const void *sptr) { - /* The underlying type is IA5String */ - const IA5String_t *st = (const IA5String_t *)sptr; - const uint8_t *ch = st->buf; - const uint8_t *end = ch + st->size; - - for(; ch < end; ch++) { - uint8_t cv = *ch; - if(!(cv <= 127)) return -1; - } - return 0; -} - -static int -memb_msisdn_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_mdn_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_min_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 34)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_imsi_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size == 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nai_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const IA5String_t *st = (const IA5String_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size >= 1 && size <= 1000) - && !check_permitted_alphabet_6(st)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_msisdn_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_mdn_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_min_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 34, 34 } /* (SIZE(34..34)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_imsi_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nai_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_CONSTRAINED, 10, 10, 1, 1000 } /* (SIZE(1..1000)) */, - 0, 0 /* No PER character map necessary */ -}; -asn_per_constraints_t asn_PER_type_SETId_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SETId_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SETId, choice.msisdn), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OCTET_STRING, - 0, - { 0, &asn_PER_memb_msisdn_constr_2, memb_msisdn_constraint_1 }, - 0, 0, /* No default value */ - "msisdn" - }, - { ATF_NOFLAGS, 0, offsetof(struct SETId, choice.mdn), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OCTET_STRING, - 0, - { 0, &asn_PER_memb_mdn_constr_3, memb_mdn_constraint_1 }, - 0, 0, /* No default value */ - "mdn" - }, - { ATF_NOFLAGS, 0, offsetof(struct SETId, choice.min), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_min_constr_4, memb_min_constraint_1 }, - 0, 0, /* No default value */ - "min" - }, - { ATF_NOFLAGS, 0, offsetof(struct SETId, choice.imsi), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OCTET_STRING, - 0, - { 0, &asn_PER_memb_imsi_constr_5, memb_imsi_constraint_1 }, - 0, 0, /* No default value */ - "imsi" - }, - { ATF_NOFLAGS, 0, offsetof(struct SETId, choice.nai), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_IA5String, - 0, - { 0, &asn_PER_memb_nai_constr_6, memb_nai_constraint_1 }, - 0, 0, /* No default value */ - "nai" - }, - { ATF_NOFLAGS, 0, offsetof(struct SETId, choice.iPAddress), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_IPAddress, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "iPAddress" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_SETId_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* msisdn */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* mdn */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* min */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* imsi */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nai */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* iPAddress */ -}; -asn_CHOICE_specifics_t asn_SPC_SETId_specs_1 = { - sizeof(struct SETId), - offsetof(struct SETId, _asn_ctx), - offsetof(struct SETId, present), - sizeof(((struct SETId *)0)->present), - asn_MAP_SETId_tag2el_1, - 6, /* Count of tags in the map */ - 0, 0, - 6 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_SETId = { - "SETId", - "SETId", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_SETId_constr_1, CHOICE_constraint }, - asn_MBR_SETId_1, - 6, /* Elements count */ - &asn_SPC_SETId_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SFN-r15.c b/asn.1/generated/SFN-r15.c deleted file mode 100644 index 405c2add..00000000 --- a/asn.1/generated/SFN-r15.c +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SFN-r15.h" - -static int -memb_sfn_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 10)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_hyperSFN_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 10)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_sfn_r15_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_hyperSFN_r15_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SFN_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SFN_r15, sfn_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_sfn_r15_constr_2, memb_sfn_r15_constraint_1 }, - 0, 0, /* No default value */ - "sfn-r15" - }, - { ATF_POINTER, 1, offsetof(struct SFN_r15, hyperSFN_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_hyperSFN_r15_constr_3, memb_hyperSFN_r15_constraint_1 }, - 0, 0, /* No default value */ - "hyperSFN-r15" - }, -}; -static const int asn_MAP_SFN_r15_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_SFN_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SFN_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sfn-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* hyperSFN-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SFN_r15_specs_1 = { - sizeof(struct SFN_r15), - offsetof(struct SFN_r15, _asn_ctx), - asn_MAP_SFN_r15_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_SFN_r15_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SFN_r15 = { - "SFN-r15", - "SFN-r15", - &asn_OP_SEQUENCE, - asn_DEF_SFN_r15_tags_1, - sizeof(asn_DEF_SFN_r15_tags_1) - /sizeof(asn_DEF_SFN_r15_tags_1[0]), /* 1 */ - asn_DEF_SFN_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_SFN_r15_tags_1) - /sizeof(asn_DEF_SFN_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SFN_r15_1, - 2, /* Elements count */ - &asn_SPC_SFN_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SFN-r15.h b/asn.1/generated/SFN-r15.h deleted file mode 100644 index f7b7ea4a..00000000 --- a/asn.1/generated/SFN-r15.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SFN_r15_H_ -#define _SFN_r15_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* SFN-r15 */ -typedef struct SFN_r15 { - BIT_STRING_t sfn_r15; - BIT_STRING_t *hyperSFN_r15 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} SFN_r15_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SFN_r15; -extern asn_SEQUENCE_specifics_t asn_SPC_SFN_r15_specs_1; -extern asn_TYPE_member_t asn_MBR_SFN_r15_1[2]; - -#ifdef __cplusplus -} -#endif - -#endif /* _SFN_r15_H_ */ -#include diff --git a/asn.1/generated/SLPAddress.c b/asn.1/generated/SLPAddress.c deleted file mode 100644 index b9df6c9e..00000000 --- a/asn.1/generated/SLPAddress.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SLPAddress.h" - -asn_per_constraints_t asn_PER_type_SLPAddress_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SLPAddress_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SLPAddress, choice.iPAddress), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_IPAddress, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "iPAddress" - }, - { ATF_NOFLAGS, 0, offsetof(struct SLPAddress, choice.fQDN), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_FQDN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "fQDN" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_SLPAddress_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iPAddress */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* fQDN */ -}; -asn_CHOICE_specifics_t asn_SPC_SLPAddress_specs_1 = { - sizeof(struct SLPAddress), - offsetof(struct SLPAddress, _asn_ctx), - offsetof(struct SLPAddress, present), - sizeof(((struct SLPAddress *)0)->present), - asn_MAP_SLPAddress_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_SLPAddress = { - "SLPAddress", - "SLPAddress", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_SLPAddress_constr_1, CHOICE_constraint }, - asn_MBR_SLPAddress_1, - 2, /* Elements count */ - &asn_SPC_SLPAddress_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SLPMode.c b/asn.1/generated/SLPMode.c deleted file mode 100644 index 911febd1..00000000 --- a/asn.1/generated/SLPMode.c +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SLPMode.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_SLPMode_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_SLPMode_value2enum_1[] = { - { 0, 5, "proxy" }, - { 1, 8, "nonProxy" } -}; -static const unsigned int asn_MAP_SLPMode_enum2value_1[] = { - 1, /* nonProxy(1) */ - 0 /* proxy(0) */ -}; -const asn_INTEGER_specifics_t asn_SPC_SLPMode_specs_1 = { - asn_MAP_SLPMode_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_SLPMode_enum2value_1, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_SLPMode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_SLPMode = { - "SLPMode", - "SLPMode", - &asn_OP_NativeEnumerated, - asn_DEF_SLPMode_tags_1, - sizeof(asn_DEF_SLPMode_tags_1) - /sizeof(asn_DEF_SLPMode_tags_1[0]), /* 1 */ - asn_DEF_SLPMode_tags_1, /* Same as above */ - sizeof(asn_DEF_SLPMode_tags_1) - /sizeof(asn_DEF_SLPMode_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_SLPMode_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_SLPMode_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SPCSETKey.c b/asn.1/generated/SPCSETKey.c deleted file mode 100644 index ab8a2293..00000000 --- a/asn.1/generated/SPCSETKey.c +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SPCSETKey.h" - -int -SPCSETKey_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using BIT_STRING, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_SPCSETKey_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_SPCSETKey_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_SPCSETKey = { - "SPCSETKey", - "SPCSETKey", - &asn_OP_BIT_STRING, - asn_DEF_SPCSETKey_tags_1, - sizeof(asn_DEF_SPCSETKey_tags_1) - /sizeof(asn_DEF_SPCSETKey_tags_1[0]), /* 1 */ - asn_DEF_SPCSETKey_tags_1, /* Same as above */ - sizeof(asn_DEF_SPCSETKey_tags_1) - /sizeof(asn_DEF_SPCSETKey_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_SPCSETKey_constr_1, SPCSETKey_constraint }, - 0, 0, /* No members */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/asn.1/generated/SPCSETKey.h b/asn.1/generated/SPCSETKey.h deleted file mode 100644 index 65f5fca0..00000000 --- a/asn.1/generated/SPCSETKey.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SPCSETKey_H_ -#define _SPCSETKey_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* SPCSETKey */ -typedef BIT_STRING_t SPCSETKey_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_SPCSETKey_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_SPCSETKey; -asn_struct_free_f SPCSETKey_free; -asn_struct_print_f SPCSETKey_print; -asn_constr_check_f SPCSETKey_constraint; -ber_type_decoder_f SPCSETKey_decode_ber; -der_type_encoder_f SPCSETKey_encode_der; -xer_type_decoder_f SPCSETKey_decode_xer; -xer_type_encoder_f SPCSETKey_encode_xer; -per_type_decoder_f SPCSETKey_decode_uper; -per_type_encoder_f SPCSETKey_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _SPCSETKey_H_ */ -#include diff --git a/asn.1/generated/SPCSETKeylifetime.c b/asn.1/generated/SPCSETKeylifetime.c deleted file mode 100644 index 763aa81f..00000000 --- a/asn.1/generated/SPCSETKeylifetime.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SPCSETKeylifetime.h" - -int -SPCSETKeylifetime_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 24)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_SPCSETKeylifetime_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 1, 24 } /* (1..24) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_SPCSETKeylifetime_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_SPCSETKeylifetime = { - "SPCSETKeylifetime", - "SPCSETKeylifetime", - &asn_OP_NativeInteger, - asn_DEF_SPCSETKeylifetime_tags_1, - sizeof(asn_DEF_SPCSETKeylifetime_tags_1) - /sizeof(asn_DEF_SPCSETKeylifetime_tags_1[0]), /* 1 */ - asn_DEF_SPCSETKeylifetime_tags_1, /* Same as above */ - sizeof(asn_DEF_SPCSETKeylifetime_tags_1) - /sizeof(asn_DEF_SPCSETKeylifetime_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_SPCSETKeylifetime_constr_1, SPCSETKeylifetime_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/SPCSETKeylifetime.h b/asn.1/generated/SPCSETKeylifetime.h deleted file mode 100644 index e0cb0ff7..00000000 --- a/asn.1/generated/SPCSETKeylifetime.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SPCSETKeylifetime_H_ -#define _SPCSETKeylifetime_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* SPCSETKeylifetime */ -typedef long SPCSETKeylifetime_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_SPCSETKeylifetime_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_SPCSETKeylifetime; -asn_struct_free_f SPCSETKeylifetime_free; -asn_struct_print_f SPCSETKeylifetime_print; -asn_constr_check_f SPCSETKeylifetime_constraint; -ber_type_decoder_f SPCSETKeylifetime_decode_ber; -der_type_encoder_f SPCSETKeylifetime_encode_der; -xer_type_decoder_f SPCSETKeylifetime_decode_xer; -xer_type_encoder_f SPCSETKeylifetime_encode_xer; -per_type_decoder_f SPCSETKeylifetime_decode_uper; -per_type_encoder_f SPCSETKeylifetime_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _SPCSETKeylifetime_H_ */ -#include diff --git a/asn.1/generated/SPCTID.c b/asn.1/generated/SPCTID.c deleted file mode 100644 index bc54b80d..00000000 --- a/asn.1/generated/SPCTID.c +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SPCTID.h" - -static int -memb_rAND_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_rAND_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SPCTID_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SPCTID, rAND), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_rAND_constr_2, memb_rAND_constraint_1 }, - 0, 0, /* No default value */ - "rAND" - }, - { ATF_NOFLAGS, 0, offsetof(struct SPCTID, slpFQDN), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_FQDN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "slpFQDN" - }, -}; -static const ber_tlv_tag_t asn_DEF_SPCTID_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SPCTID_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rAND */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* slpFQDN */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SPCTID_specs_1 = { - sizeof(struct SPCTID), - offsetof(struct SPCTID, _asn_ctx), - asn_MAP_SPCTID_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SPCTID = { - "SPCTID", - "SPCTID", - &asn_OP_SEQUENCE, - asn_DEF_SPCTID_tags_1, - sizeof(asn_DEF_SPCTID_tags_1) - /sizeof(asn_DEF_SPCTID_tags_1[0]), /* 1 */ - asn_DEF_SPCTID_tags_1, /* Same as above */ - sizeof(asn_DEF_SPCTID_tags_1) - /sizeof(asn_DEF_SPCTID_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SPCTID_1, - 2, /* Elements count */ - &asn_SPC_SPCTID_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SSR-ClockCorrectionList-r15.c b/asn.1/generated/SSR-ClockCorrectionList-r15.c deleted file mode 100644 index 99820e85..00000000 --- a/asn.1/generated/SSR-ClockCorrectionList-r15.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SSR-ClockCorrectionList-r15.h" - -asn_per_constraints_t asn_PER_type_SSR_ClockCorrectionList_r15_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SSR_ClockCorrectionList_r15_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_SSR_ClockCorrectionSatelliteElement_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_SSR_ClockCorrectionList_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_SSR_ClockCorrectionList_r15_specs_1 = { - sizeof(struct SSR_ClockCorrectionList_r15), - offsetof(struct SSR_ClockCorrectionList_r15, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_SSR_ClockCorrectionList_r15 = { - "SSR-ClockCorrectionList-r15", - "SSR-ClockCorrectionList-r15", - &asn_OP_SEQUENCE_OF, - asn_DEF_SSR_ClockCorrectionList_r15_tags_1, - sizeof(asn_DEF_SSR_ClockCorrectionList_r15_tags_1) - /sizeof(asn_DEF_SSR_ClockCorrectionList_r15_tags_1[0]), /* 1 */ - asn_DEF_SSR_ClockCorrectionList_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_SSR_ClockCorrectionList_r15_tags_1) - /sizeof(asn_DEF_SSR_ClockCorrectionList_r15_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_SSR_ClockCorrectionList_r15_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_SSR_ClockCorrectionList_r15_1, - 1, /* Single element */ - &asn_SPC_SSR_ClockCorrectionList_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SSR-ClockCorrectionSatelliteElement-r15.c b/asn.1/generated/SSR-ClockCorrectionSatelliteElement-r15.c deleted file mode 100644 index 8565b18a..00000000 --- a/asn.1/generated/SSR-ClockCorrectionSatelliteElement-r15.c +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SSR-ClockCorrectionSatelliteElement-r15.h" - -static int -memb_delta_Clock_C0_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2097152 && value <= 2097151)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_delta_Clock_C1_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1048576 && value <= 1048575)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_delta_Clock_C2_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -67108864 && value <= 67108863)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_delta_Clock_C0_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, -2097152, 2097151 } /* (-2097152..2097151) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_delta_Clock_C1_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_delta_Clock_C2_r15_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 27, -1, -67108864, 67108863 } /* (-67108864..67108863) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SSR_ClockCorrectionSatelliteElement_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SSR_ClockCorrectionSatelliteElement_r15, svID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct SSR_ClockCorrectionSatelliteElement_r15, delta_Clock_C0_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_delta_Clock_C0_r15_constr_3, memb_delta_Clock_C0_r15_constraint_1 }, - 0, 0, /* No default value */ - "delta-Clock-C0-r15" - }, - { ATF_POINTER, 2, offsetof(struct SSR_ClockCorrectionSatelliteElement_r15, delta_Clock_C1_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_delta_Clock_C1_r15_constr_4, memb_delta_Clock_C1_r15_constraint_1 }, - 0, 0, /* No default value */ - "delta-Clock-C1-r15" - }, - { ATF_POINTER, 1, offsetof(struct SSR_ClockCorrectionSatelliteElement_r15, delta_Clock_C2_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_delta_Clock_C2_r15_constr_5, memb_delta_Clock_C2_r15_constraint_1 }, - 0, 0, /* No default value */ - "delta-Clock-C2-r15" - }, -}; -static const int asn_MAP_SSR_ClockCorrectionSatelliteElement_r15_oms_1[] = { 2, 3 }; -static const ber_tlv_tag_t asn_DEF_SSR_ClockCorrectionSatelliteElement_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SSR_ClockCorrectionSatelliteElement_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* delta-Clock-C0-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* delta-Clock-C1-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* delta-Clock-C2-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SSR_ClockCorrectionSatelliteElement_r15_specs_1 = { - sizeof(struct SSR_ClockCorrectionSatelliteElement_r15), - offsetof(struct SSR_ClockCorrectionSatelliteElement_r15, _asn_ctx), - asn_MAP_SSR_ClockCorrectionSatelliteElement_r15_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_SSR_ClockCorrectionSatelliteElement_r15_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SSR_ClockCorrectionSatelliteElement_r15 = { - "SSR-ClockCorrectionSatelliteElement-r15", - "SSR-ClockCorrectionSatelliteElement-r15", - &asn_OP_SEQUENCE, - asn_DEF_SSR_ClockCorrectionSatelliteElement_r15_tags_1, - sizeof(asn_DEF_SSR_ClockCorrectionSatelliteElement_r15_tags_1) - /sizeof(asn_DEF_SSR_ClockCorrectionSatelliteElement_r15_tags_1[0]), /* 1 */ - asn_DEF_SSR_ClockCorrectionSatelliteElement_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_SSR_ClockCorrectionSatelliteElement_r15_tags_1) - /sizeof(asn_DEF_SSR_ClockCorrectionSatelliteElement_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SSR_ClockCorrectionSatelliteElement_r15_1, - 4, /* Elements count */ - &asn_SPC_SSR_ClockCorrectionSatelliteElement_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SSR-ClockCorrectionSatelliteElement-r15.h b/asn.1/generated/SSR-ClockCorrectionSatelliteElement-r15.h deleted file mode 100644 index 9fad68d0..00000000 --- a/asn.1/generated/SSR-ClockCorrectionSatelliteElement-r15.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SSR_ClockCorrectionSatelliteElement_r15_H_ -#define _SSR_ClockCorrectionSatelliteElement_r15_H_ - - -#include - -/* Including external dependencies */ -#include "SV-ID.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* SSR-ClockCorrectionSatelliteElement-r15 */ -typedef struct SSR_ClockCorrectionSatelliteElement_r15 { - SV_ID_t svID_r15; - long delta_Clock_C0_r15; - long *delta_Clock_C1_r15 /* OPTIONAL */; - long *delta_Clock_C2_r15 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} SSR_ClockCorrectionSatelliteElement_r15_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SSR_ClockCorrectionSatelliteElement_r15; -extern asn_SEQUENCE_specifics_t asn_SPC_SSR_ClockCorrectionSatelliteElement_r15_specs_1; -extern asn_TYPE_member_t asn_MBR_SSR_ClockCorrectionSatelliteElement_r15_1[4]; - -#ifdef __cplusplus -} -#endif - -#endif /* _SSR_ClockCorrectionSatelliteElement_r15_H_ */ -#include diff --git a/asn.1/generated/SSR-CodeBiasSatElement-r15.c b/asn.1/generated/SSR-CodeBiasSatElement-r15.c deleted file mode 100644 index 08537cdd..00000000 --- a/asn.1/generated/SSR-CodeBiasSatElement-r15.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SSR-CodeBiasSatElement-r15.h" - -asn_TYPE_member_t asn_MBR_SSR_CodeBiasSatElement_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SSR_CodeBiasSatElement_r15, svID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct SSR_CodeBiasSatElement_r15, ssr_CodeBiasSignalList_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SSR_CodeBiasSignalList_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ssr-CodeBiasSignalList-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_SSR_CodeBiasSatElement_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SSR_CodeBiasSatElement_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ssr-CodeBiasSignalList-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SSR_CodeBiasSatElement_r15_specs_1 = { - sizeof(struct SSR_CodeBiasSatElement_r15), - offsetof(struct SSR_CodeBiasSatElement_r15, _asn_ctx), - asn_MAP_SSR_CodeBiasSatElement_r15_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SSR_CodeBiasSatElement_r15 = { - "SSR-CodeBiasSatElement-r15", - "SSR-CodeBiasSatElement-r15", - &asn_OP_SEQUENCE, - asn_DEF_SSR_CodeBiasSatElement_r15_tags_1, - sizeof(asn_DEF_SSR_CodeBiasSatElement_r15_tags_1) - /sizeof(asn_DEF_SSR_CodeBiasSatElement_r15_tags_1[0]), /* 1 */ - asn_DEF_SSR_CodeBiasSatElement_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_SSR_CodeBiasSatElement_r15_tags_1) - /sizeof(asn_DEF_SSR_CodeBiasSatElement_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SSR_CodeBiasSatElement_r15_1, - 2, /* Elements count */ - &asn_SPC_SSR_CodeBiasSatElement_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SSR-CodeBiasSatList-r15.c b/asn.1/generated/SSR-CodeBiasSatList-r15.c deleted file mode 100644 index 5d74b6f7..00000000 --- a/asn.1/generated/SSR-CodeBiasSatList-r15.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SSR-CodeBiasSatList-r15.h" - -asn_per_constraints_t asn_PER_type_SSR_CodeBiasSatList_r15_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SSR_CodeBiasSatList_r15_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_SSR_CodeBiasSatElement_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_SSR_CodeBiasSatList_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_SSR_CodeBiasSatList_r15_specs_1 = { - sizeof(struct SSR_CodeBiasSatList_r15), - offsetof(struct SSR_CodeBiasSatList_r15, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_SSR_CodeBiasSatList_r15 = { - "SSR-CodeBiasSatList-r15", - "SSR-CodeBiasSatList-r15", - &asn_OP_SEQUENCE_OF, - asn_DEF_SSR_CodeBiasSatList_r15_tags_1, - sizeof(asn_DEF_SSR_CodeBiasSatList_r15_tags_1) - /sizeof(asn_DEF_SSR_CodeBiasSatList_r15_tags_1[0]), /* 1 */ - asn_DEF_SSR_CodeBiasSatList_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_SSR_CodeBiasSatList_r15_tags_1) - /sizeof(asn_DEF_SSR_CodeBiasSatList_r15_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_SSR_CodeBiasSatList_r15_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_SSR_CodeBiasSatList_r15_1, - 1, /* Single element */ - &asn_SPC_SSR_CodeBiasSatList_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SSR-CodeBiasSignalElement-r15.c b/asn.1/generated/SSR-CodeBiasSignalElement-r15.c deleted file mode 100644 index bd3e4567..00000000 --- a/asn.1/generated/SSR-CodeBiasSignalElement-r15.c +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SSR-CodeBiasSignalElement-r15.h" - -static int -memb_codeBias_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8192 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_codeBias_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SSR_CodeBiasSignalElement_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SSR_CodeBiasSignalElement_r15, signal_and_tracking_mode_ID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "signal-and-tracking-mode-ID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct SSR_CodeBiasSignalElement_r15, codeBias_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_codeBias_r15_constr_3, memb_codeBias_r15_constraint_1 }, - 0, 0, /* No default value */ - "codeBias-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_SSR_CodeBiasSignalElement_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SSR_CodeBiasSignalElement_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* signal-and-tracking-mode-ID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* codeBias-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SSR_CodeBiasSignalElement_r15_specs_1 = { - sizeof(struct SSR_CodeBiasSignalElement_r15), - offsetof(struct SSR_CodeBiasSignalElement_r15, _asn_ctx), - asn_MAP_SSR_CodeBiasSignalElement_r15_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SSR_CodeBiasSignalElement_r15 = { - "SSR-CodeBiasSignalElement-r15", - "SSR-CodeBiasSignalElement-r15", - &asn_OP_SEQUENCE, - asn_DEF_SSR_CodeBiasSignalElement_r15_tags_1, - sizeof(asn_DEF_SSR_CodeBiasSignalElement_r15_tags_1) - /sizeof(asn_DEF_SSR_CodeBiasSignalElement_r15_tags_1[0]), /* 1 */ - asn_DEF_SSR_CodeBiasSignalElement_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_SSR_CodeBiasSignalElement_r15_tags_1) - /sizeof(asn_DEF_SSR_CodeBiasSignalElement_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SSR_CodeBiasSignalElement_r15_1, - 2, /* Elements count */ - &asn_SPC_SSR_CodeBiasSignalElement_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SSR-CodeBiasSignalElement-r15.h b/asn.1/generated/SSR-CodeBiasSignalElement-r15.h deleted file mode 100644 index 14c6a010..00000000 --- a/asn.1/generated/SSR-CodeBiasSignalElement-r15.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SSR_CodeBiasSignalElement_r15_H_ -#define _SSR_CodeBiasSignalElement_r15_H_ - - -#include - -/* Including external dependencies */ -#include "GNSS-SignalID.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* SSR-CodeBiasSignalElement-r15 */ -typedef struct SSR_CodeBiasSignalElement_r15 { - GNSS_SignalID_t signal_and_tracking_mode_ID_r15; - long codeBias_r15; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} SSR_CodeBiasSignalElement_r15_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SSR_CodeBiasSignalElement_r15; -extern asn_SEQUENCE_specifics_t asn_SPC_SSR_CodeBiasSignalElement_r15_specs_1; -extern asn_TYPE_member_t asn_MBR_SSR_CodeBiasSignalElement_r15_1[2]; - -#ifdef __cplusplus -} -#endif - -#endif /* _SSR_CodeBiasSignalElement_r15_H_ */ -#include diff --git a/asn.1/generated/SSR-CodeBiasSignalList-r15.c b/asn.1/generated/SSR-CodeBiasSignalList-r15.c deleted file mode 100644 index 8e151c1f..00000000 --- a/asn.1/generated/SSR-CodeBiasSignalList-r15.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SSR-CodeBiasSignalList-r15.h" - -asn_per_constraints_t asn_PER_type_SSR_CodeBiasSignalList_r15_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SSR_CodeBiasSignalList_r15_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_SSR_CodeBiasSignalElement_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_SSR_CodeBiasSignalList_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_SSR_CodeBiasSignalList_r15_specs_1 = { - sizeof(struct SSR_CodeBiasSignalList_r15), - offsetof(struct SSR_CodeBiasSignalList_r15, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_SSR_CodeBiasSignalList_r15 = { - "SSR-CodeBiasSignalList-r15", - "SSR-CodeBiasSignalList-r15", - &asn_OP_SEQUENCE_OF, - asn_DEF_SSR_CodeBiasSignalList_r15_tags_1, - sizeof(asn_DEF_SSR_CodeBiasSignalList_r15_tags_1) - /sizeof(asn_DEF_SSR_CodeBiasSignalList_r15_tags_1[0]), /* 1 */ - asn_DEF_SSR_CodeBiasSignalList_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_SSR_CodeBiasSignalList_r15_tags_1) - /sizeof(asn_DEF_SSR_CodeBiasSignalList_r15_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_SSR_CodeBiasSignalList_r15_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_SSR_CodeBiasSignalList_r15_1, - 1, /* Single element */ - &asn_SPC_SSR_CodeBiasSignalList_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SSR-OrbitCorrectionList-r15.c b/asn.1/generated/SSR-OrbitCorrectionList-r15.c deleted file mode 100644 index 4ce65768..00000000 --- a/asn.1/generated/SSR-OrbitCorrectionList-r15.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SSR-OrbitCorrectionList-r15.h" - -asn_per_constraints_t asn_PER_type_SSR_OrbitCorrectionList_r15_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SSR_OrbitCorrectionList_r15_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_SSR_OrbitCorrectionList_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_SSR_OrbitCorrectionList_r15_specs_1 = { - sizeof(struct SSR_OrbitCorrectionList_r15), - offsetof(struct SSR_OrbitCorrectionList_r15, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_SSR_OrbitCorrectionList_r15 = { - "SSR-OrbitCorrectionList-r15", - "SSR-OrbitCorrectionList-r15", - &asn_OP_SEQUENCE_OF, - asn_DEF_SSR_OrbitCorrectionList_r15_tags_1, - sizeof(asn_DEF_SSR_OrbitCorrectionList_r15_tags_1) - /sizeof(asn_DEF_SSR_OrbitCorrectionList_r15_tags_1[0]), /* 1 */ - asn_DEF_SSR_OrbitCorrectionList_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_SSR_OrbitCorrectionList_r15_tags_1) - /sizeof(asn_DEF_SSR_OrbitCorrectionList_r15_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_SSR_OrbitCorrectionList_r15_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_SSR_OrbitCorrectionList_r15_1, - 1, /* Single element */ - &asn_SPC_SSR_OrbitCorrectionList_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SSR-OrbitCorrectionSatelliteElement-r15.c b/asn.1/generated/SSR-OrbitCorrectionSatelliteElement-r15.c deleted file mode 100644 index 7661764b..00000000 --- a/asn.1/generated/SSR-OrbitCorrectionSatelliteElement-r15.c +++ /dev/null @@ -1,338 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SSR-OrbitCorrectionSatelliteElement-r15.h" - -static int -memb_iod_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 11)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_delta_radial_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2097152 && value <= 2097151)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_delta_AlongTrack_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -524288 && value <= 524287)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_delta_CrossTrack_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -524288 && value <= 524287)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_dot_delta_radial_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1048576 && value <= 1048575)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_dot_delta_AlongTrack_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -262144 && value <= 262143)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_dot_delta_CrossTrack_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -262144 && value <= 262143)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_iod_r15_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 11, 11 } /* (SIZE(11..11)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_delta_radial_r15_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, -2097152, 2097151 } /* (-2097152..2097151) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_delta_AlongTrack_r15_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 20, -1, -524288, 524287 } /* (-524288..524287) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_delta_CrossTrack_r15_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 20, -1, -524288, 524287 } /* (-524288..524287) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_dot_delta_radial_r15_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_dot_delta_AlongTrack_r15_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 19, -1, -262144, 262143 } /* (-262144..262143) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_dot_delta_CrossTrack_r15_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 19, -1, -262144, 262143 } /* (-262144..262143) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SSR_OrbitCorrectionSatelliteElement_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15, svID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15, iod_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_iod_r15_constr_3, memb_iod_r15_constraint_1 }, - 0, 0, /* No default value */ - "iod-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15, delta_radial_r15), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_delta_radial_r15_constr_4, memb_delta_radial_r15_constraint_1 }, - 0, 0, /* No default value */ - "delta-radial-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15, delta_AlongTrack_r15), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_delta_AlongTrack_r15_constr_5, memb_delta_AlongTrack_r15_constraint_1 }, - 0, 0, /* No default value */ - "delta-AlongTrack-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15, delta_CrossTrack_r15), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_delta_CrossTrack_r15_constr_6, memb_delta_CrossTrack_r15_constraint_1 }, - 0, 0, /* No default value */ - "delta-CrossTrack-r15" - }, - { ATF_POINTER, 3, offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15, dot_delta_radial_r15), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_dot_delta_radial_r15_constr_7, memb_dot_delta_radial_r15_constraint_1 }, - 0, 0, /* No default value */ - "dot-delta-radial-r15" - }, - { ATF_POINTER, 2, offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15, dot_delta_AlongTrack_r15), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_dot_delta_AlongTrack_r15_constr_8, memb_dot_delta_AlongTrack_r15_constraint_1 }, - 0, 0, /* No default value */ - "dot-delta-AlongTrack-r15" - }, - { ATF_POINTER, 1, offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15, dot_delta_CrossTrack_r15), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_dot_delta_CrossTrack_r15_constr_9, memb_dot_delta_CrossTrack_r15_constraint_1 }, - 0, 0, /* No default value */ - "dot-delta-CrossTrack-r15" - }, -}; -static const int asn_MAP_SSR_OrbitCorrectionSatelliteElement_r15_oms_1[] = { 5, 6, 7 }; -static const ber_tlv_tag_t asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SSR_OrbitCorrectionSatelliteElement_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* iod-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* delta-radial-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* delta-AlongTrack-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* delta-CrossTrack-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* dot-delta-radial-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* dot-delta-AlongTrack-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* dot-delta-CrossTrack-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SSR_OrbitCorrectionSatelliteElement_r15_specs_1 = { - sizeof(struct SSR_OrbitCorrectionSatelliteElement_r15), - offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15, _asn_ctx), - asn_MAP_SSR_OrbitCorrectionSatelliteElement_r15_tag2el_1, - 8, /* Count of tags in the map */ - asn_MAP_SSR_OrbitCorrectionSatelliteElement_r15_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 8, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15 = { - "SSR-OrbitCorrectionSatelliteElement-r15", - "SSR-OrbitCorrectionSatelliteElement-r15", - &asn_OP_SEQUENCE, - asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15_tags_1, - sizeof(asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15_tags_1) - /sizeof(asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15_tags_1[0]), /* 1 */ - asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15_tags_1) - /sizeof(asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SSR_OrbitCorrectionSatelliteElement_r15_1, - 8, /* Elements count */ - &asn_SPC_SSR_OrbitCorrectionSatelliteElement_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SSR-OrbitCorrectionSatelliteElement-r15.h b/asn.1/generated/SSR-OrbitCorrectionSatelliteElement-r15.h deleted file mode 100644 index 95213bab..00000000 --- a/asn.1/generated/SSR-OrbitCorrectionSatelliteElement-r15.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SSR_OrbitCorrectionSatelliteElement_r15_H_ -#define _SSR_OrbitCorrectionSatelliteElement_r15_H_ - - -#include - -/* Including external dependencies */ -#include "SV-ID.h" -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* SSR-OrbitCorrectionSatelliteElement-r15 */ -typedef struct SSR_OrbitCorrectionSatelliteElement_r15 { - SV_ID_t svID_r15; - BIT_STRING_t iod_r15; - long delta_radial_r15; - long delta_AlongTrack_r15; - long delta_CrossTrack_r15; - long *dot_delta_radial_r15 /* OPTIONAL */; - long *dot_delta_AlongTrack_r15 /* OPTIONAL */; - long *dot_delta_CrossTrack_r15 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} SSR_OrbitCorrectionSatelliteElement_r15_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15; -extern asn_SEQUENCE_specifics_t asn_SPC_SSR_OrbitCorrectionSatelliteElement_r15_specs_1; -extern asn_TYPE_member_t asn_MBR_SSR_OrbitCorrectionSatelliteElement_r15_1[8]; - -#ifdef __cplusplus -} -#endif - -#endif /* _SSR_OrbitCorrectionSatelliteElement_r15_H_ */ -#include diff --git a/asn.1/generated/SSR-PhaseBiasSatElement-r16.c b/asn.1/generated/SSR-PhaseBiasSatElement-r16.c deleted file mode 100644 index 8d0c2a0a..00000000 --- a/asn.1/generated/SSR-PhaseBiasSatElement-r16.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SSR-PhaseBiasSatElement-r16.h" - -asn_TYPE_member_t asn_MBR_SSR_PhaseBiasSatElement_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SSR_PhaseBiasSatElement_r16, svID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct SSR_PhaseBiasSatElement_r16, ssr_PhaseBiasSignalList_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SSR_PhaseBiasSignalList_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ssr-PhaseBiasSignalList-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_SSR_PhaseBiasSatElement_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SSR_PhaseBiasSatElement_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ssr-PhaseBiasSignalList-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SSR_PhaseBiasSatElement_r16_specs_1 = { - sizeof(struct SSR_PhaseBiasSatElement_r16), - offsetof(struct SSR_PhaseBiasSatElement_r16, _asn_ctx), - asn_MAP_SSR_PhaseBiasSatElement_r16_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SSR_PhaseBiasSatElement_r16 = { - "SSR-PhaseBiasSatElement-r16", - "SSR-PhaseBiasSatElement-r16", - &asn_OP_SEQUENCE, - asn_DEF_SSR_PhaseBiasSatElement_r16_tags_1, - sizeof(asn_DEF_SSR_PhaseBiasSatElement_r16_tags_1) - /sizeof(asn_DEF_SSR_PhaseBiasSatElement_r16_tags_1[0]), /* 1 */ - asn_DEF_SSR_PhaseBiasSatElement_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_SSR_PhaseBiasSatElement_r16_tags_1) - /sizeof(asn_DEF_SSR_PhaseBiasSatElement_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SSR_PhaseBiasSatElement_r16_1, - 2, /* Elements count */ - &asn_SPC_SSR_PhaseBiasSatElement_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SSR-PhaseBiasSatList-r16.c b/asn.1/generated/SSR-PhaseBiasSatList-r16.c deleted file mode 100644 index 0fa89392..00000000 --- a/asn.1/generated/SSR-PhaseBiasSatList-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SSR-PhaseBiasSatList-r16.h" - -asn_per_constraints_t asn_PER_type_SSR_PhaseBiasSatList_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SSR_PhaseBiasSatList_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_SSR_PhaseBiasSatElement_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_SSR_PhaseBiasSatList_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_SSR_PhaseBiasSatList_r16_specs_1 = { - sizeof(struct SSR_PhaseBiasSatList_r16), - offsetof(struct SSR_PhaseBiasSatList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_SSR_PhaseBiasSatList_r16 = { - "SSR-PhaseBiasSatList-r16", - "SSR-PhaseBiasSatList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_SSR_PhaseBiasSatList_r16_tags_1, - sizeof(asn_DEF_SSR_PhaseBiasSatList_r16_tags_1) - /sizeof(asn_DEF_SSR_PhaseBiasSatList_r16_tags_1[0]), /* 1 */ - asn_DEF_SSR_PhaseBiasSatList_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_SSR_PhaseBiasSatList_r16_tags_1) - /sizeof(asn_DEF_SSR_PhaseBiasSatList_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_SSR_PhaseBiasSatList_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_SSR_PhaseBiasSatList_r16_1, - 1, /* Single element */ - &asn_SPC_SSR_PhaseBiasSatList_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SSR-PhaseBiasSignalElement-r16.c b/asn.1/generated/SSR-PhaseBiasSignalElement-r16.c deleted file mode 100644 index 6e443332..00000000 --- a/asn.1/generated/SSR-PhaseBiasSignalElement-r16.c +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SSR-PhaseBiasSignalElement-r16.h" - -static int -memb_phaseBias_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -16384 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_phaseDiscontinuityIndicator_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_phaseBiasIntegerIndicator_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_phaseBias_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_phaseDiscontinuityIndicator_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_phaseBiasIntegerIndicator_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SSR_PhaseBiasSignalElement_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SSR_PhaseBiasSignalElement_r16, signal_and_tracking_mode_ID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSS_SignalID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "signal-and-tracking-mode-ID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct SSR_PhaseBiasSignalElement_r16, phaseBias_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_phaseBias_r16_constr_3, memb_phaseBias_r16_constraint_1 }, - 0, 0, /* No default value */ - "phaseBias-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct SSR_PhaseBiasSignalElement_r16, phaseDiscontinuityIndicator_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_phaseDiscontinuityIndicator_r16_constr_4, memb_phaseDiscontinuityIndicator_r16_constraint_1 }, - 0, 0, /* No default value */ - "phaseDiscontinuityIndicator-r16" - }, - { ATF_POINTER, 1, offsetof(struct SSR_PhaseBiasSignalElement_r16, phaseBiasIntegerIndicator_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_phaseBiasIntegerIndicator_r16_constr_5, memb_phaseBiasIntegerIndicator_r16_constraint_1 }, - 0, 0, /* No default value */ - "phaseBiasIntegerIndicator-r16" - }, -}; -static const int asn_MAP_SSR_PhaseBiasSignalElement_r16_oms_1[] = { 3 }; -static const ber_tlv_tag_t asn_DEF_SSR_PhaseBiasSignalElement_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SSR_PhaseBiasSignalElement_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* signal-and-tracking-mode-ID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* phaseBias-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* phaseDiscontinuityIndicator-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* phaseBiasIntegerIndicator-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SSR_PhaseBiasSignalElement_r16_specs_1 = { - sizeof(struct SSR_PhaseBiasSignalElement_r16), - offsetof(struct SSR_PhaseBiasSignalElement_r16, _asn_ctx), - asn_MAP_SSR_PhaseBiasSignalElement_r16_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_SSR_PhaseBiasSignalElement_r16_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SSR_PhaseBiasSignalElement_r16 = { - "SSR-PhaseBiasSignalElement-r16", - "SSR-PhaseBiasSignalElement-r16", - &asn_OP_SEQUENCE, - asn_DEF_SSR_PhaseBiasSignalElement_r16_tags_1, - sizeof(asn_DEF_SSR_PhaseBiasSignalElement_r16_tags_1) - /sizeof(asn_DEF_SSR_PhaseBiasSignalElement_r16_tags_1[0]), /* 1 */ - asn_DEF_SSR_PhaseBiasSignalElement_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_SSR_PhaseBiasSignalElement_r16_tags_1) - /sizeof(asn_DEF_SSR_PhaseBiasSignalElement_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SSR_PhaseBiasSignalElement_r16_1, - 4, /* Elements count */ - &asn_SPC_SSR_PhaseBiasSignalElement_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SSR-PhaseBiasSignalElement-r16.h b/asn.1/generated/SSR-PhaseBiasSignalElement-r16.h deleted file mode 100644 index 7f13af41..00000000 --- a/asn.1/generated/SSR-PhaseBiasSignalElement-r16.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SSR_PhaseBiasSignalElement_r16_H_ -#define _SSR_PhaseBiasSignalElement_r16_H_ - - -#include - -/* Including external dependencies */ -#include "GNSS-SignalID.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* SSR-PhaseBiasSignalElement-r16 */ -typedef struct SSR_PhaseBiasSignalElement_r16 { - GNSS_SignalID_t signal_and_tracking_mode_ID_r16; - long phaseBias_r16; - long phaseDiscontinuityIndicator_r16; - long *phaseBiasIntegerIndicator_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} SSR_PhaseBiasSignalElement_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SSR_PhaseBiasSignalElement_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_SSR_PhaseBiasSignalElement_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_SSR_PhaseBiasSignalElement_r16_1[4]; - -#ifdef __cplusplus -} -#endif - -#endif /* _SSR_PhaseBiasSignalElement_r16_H_ */ -#include diff --git a/asn.1/generated/SSR-PhaseBiasSignalList-r16.c b/asn.1/generated/SSR-PhaseBiasSignalList-r16.c deleted file mode 100644 index 4803ac7b..00000000 --- a/asn.1/generated/SSR-PhaseBiasSignalList-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SSR-PhaseBiasSignalList-r16.h" - -asn_per_constraints_t asn_PER_type_SSR_PhaseBiasSignalList_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SSR_PhaseBiasSignalList_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_SSR_PhaseBiasSignalElement_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_SSR_PhaseBiasSignalList_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_SSR_PhaseBiasSignalList_r16_specs_1 = { - sizeof(struct SSR_PhaseBiasSignalList_r16), - offsetof(struct SSR_PhaseBiasSignalList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_SSR_PhaseBiasSignalList_r16 = { - "SSR-PhaseBiasSignalList-r16", - "SSR-PhaseBiasSignalList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_SSR_PhaseBiasSignalList_r16_tags_1, - sizeof(asn_DEF_SSR_PhaseBiasSignalList_r16_tags_1) - /sizeof(asn_DEF_SSR_PhaseBiasSignalList_r16_tags_1[0]), /* 1 */ - asn_DEF_SSR_PhaseBiasSignalList_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_SSR_PhaseBiasSignalList_r16_tags_1) - /sizeof(asn_DEF_SSR_PhaseBiasSignalList_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_SSR_PhaseBiasSignalList_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_SSR_PhaseBiasSignalList_r16_1, - 1, /* Single element */ - &asn_SPC_SSR_PhaseBiasSignalList_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SSR-URA-SatElement-r16.c b/asn.1/generated/SSR-URA-SatElement-r16.c deleted file mode 100644 index 1ff0090a..00000000 --- a/asn.1/generated/SSR-URA-SatElement-r16.c +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SSR-URA-SatElement-r16.h" - -static int -memb_ssr_URA_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 6)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_ssr_URA_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SSR_URA_SatElement_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SSR_URA_SatElement_r16, svID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct SSR_URA_SatElement_r16, ssr_URA_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_ssr_URA_r16_constr_3, memb_ssr_URA_r16_constraint_1 }, - 0, 0, /* No default value */ - "ssr-URA-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_SSR_URA_SatElement_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SSR_URA_SatElement_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ssr-URA-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SSR_URA_SatElement_r16_specs_1 = { - sizeof(struct SSR_URA_SatElement_r16), - offsetof(struct SSR_URA_SatElement_r16, _asn_ctx), - asn_MAP_SSR_URA_SatElement_r16_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SSR_URA_SatElement_r16 = { - "SSR-URA-SatElement-r16", - "SSR-URA-SatElement-r16", - &asn_OP_SEQUENCE, - asn_DEF_SSR_URA_SatElement_r16_tags_1, - sizeof(asn_DEF_SSR_URA_SatElement_r16_tags_1) - /sizeof(asn_DEF_SSR_URA_SatElement_r16_tags_1[0]), /* 1 */ - asn_DEF_SSR_URA_SatElement_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_SSR_URA_SatElement_r16_tags_1) - /sizeof(asn_DEF_SSR_URA_SatElement_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SSR_URA_SatElement_r16_1, - 2, /* Elements count */ - &asn_SPC_SSR_URA_SatElement_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SSR-URA-SatList-r16.c b/asn.1/generated/SSR-URA-SatList-r16.c deleted file mode 100644 index 179a131d..00000000 --- a/asn.1/generated/SSR-URA-SatList-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SSR-URA-SatList-r16.h" - -asn_per_constraints_t asn_PER_type_SSR_URA_SatList_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SSR_URA_SatList_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_SSR_URA_SatElement_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_SSR_URA_SatList_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_SSR_URA_SatList_r16_specs_1 = { - sizeof(struct SSR_URA_SatList_r16), - offsetof(struct SSR_URA_SatList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_SSR_URA_SatList_r16 = { - "SSR-URA-SatList-r16", - "SSR-URA-SatList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_SSR_URA_SatList_r16_tags_1, - sizeof(asn_DEF_SSR_URA_SatList_r16_tags_1) - /sizeof(asn_DEF_SSR_URA_SatList_r16_tags_1[0]), /* 1 */ - asn_DEF_SSR_URA_SatList_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_SSR_URA_SatList_r16_tags_1) - /sizeof(asn_DEF_SSR_URA_SatList_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_SSR_URA_SatList_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_SSR_URA_SatList_r16_1, - 1, /* Single element */ - &asn_SPC_SSR_URA_SatList_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/STEC-ResidualSatElement-r16.c b/asn.1/generated/STEC-ResidualSatElement-r16.c deleted file mode 100644 index f47a19bf..00000000 --- a/asn.1/generated/STEC-ResidualSatElement-r16.c +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "STEC-ResidualSatElement-r16.h" - -static int -memb_b7_r16_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -64 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_b16_r16_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_b7_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_b16_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_stecResidualCorrection_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_stecResidualCorrection_r16_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct STEC_ResidualSatElement_r16__stecResidualCorrection_r16, choice.b7_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_b7_r16_constr_4, memb_b7_r16_constraint_3 }, - 0, 0, /* No default value */ - "b7-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct STEC_ResidualSatElement_r16__stecResidualCorrection_r16, choice.b16_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_b16_r16_constr_5, memb_b16_r16_constraint_3 }, - 0, 0, /* No default value */ - "b16-r16" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_stecResidualCorrection_r16_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* b7-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* b16-r16 */ -}; -static asn_CHOICE_specifics_t asn_SPC_stecResidualCorrection_r16_specs_3 = { - sizeof(struct STEC_ResidualSatElement_r16__stecResidualCorrection_r16), - offsetof(struct STEC_ResidualSatElement_r16__stecResidualCorrection_r16, _asn_ctx), - offsetof(struct STEC_ResidualSatElement_r16__stecResidualCorrection_r16, present), - sizeof(((struct STEC_ResidualSatElement_r16__stecResidualCorrection_r16 *)0)->present), - asn_MAP_stecResidualCorrection_r16_tag2el_3, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_stecResidualCorrection_r16_3 = { - "stecResidualCorrection-r16", - "stecResidualCorrection-r16", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_stecResidualCorrection_r16_constr_3, CHOICE_constraint }, - asn_MBR_stecResidualCorrection_r16_3, - 2, /* Elements count */ - &asn_SPC_stecResidualCorrection_r16_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_STEC_ResidualSatElement_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct STEC_ResidualSatElement_r16, svID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct STEC_ResidualSatElement_r16, stecResidualCorrection_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_stecResidualCorrection_r16_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "stecResidualCorrection-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_STEC_ResidualSatElement_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_STEC_ResidualSatElement_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* stecResidualCorrection-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_STEC_ResidualSatElement_r16_specs_1 = { - sizeof(struct STEC_ResidualSatElement_r16), - offsetof(struct STEC_ResidualSatElement_r16, _asn_ctx), - asn_MAP_STEC_ResidualSatElement_r16_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_STEC_ResidualSatElement_r16 = { - "STEC-ResidualSatElement-r16", - "STEC-ResidualSatElement-r16", - &asn_OP_SEQUENCE, - asn_DEF_STEC_ResidualSatElement_r16_tags_1, - sizeof(asn_DEF_STEC_ResidualSatElement_r16_tags_1) - /sizeof(asn_DEF_STEC_ResidualSatElement_r16_tags_1[0]), /* 1 */ - asn_DEF_STEC_ResidualSatElement_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_STEC_ResidualSatElement_r16_tags_1) - /sizeof(asn_DEF_STEC_ResidualSatElement_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_STEC_ResidualSatElement_r16_1, - 2, /* Elements count */ - &asn_SPC_STEC_ResidualSatElement_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/STEC-ResidualSatList-r16.c b/asn.1/generated/STEC-ResidualSatList-r16.c deleted file mode 100644 index 5d8c9f99..00000000 --- a/asn.1/generated/STEC-ResidualSatList-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "STEC-ResidualSatList-r16.h" - -asn_per_constraints_t asn_PER_type_STEC_ResidualSatList_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_STEC_ResidualSatList_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_STEC_ResidualSatElement_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_STEC_ResidualSatList_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_STEC_ResidualSatList_r16_specs_1 = { - sizeof(struct STEC_ResidualSatList_r16), - offsetof(struct STEC_ResidualSatList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_STEC_ResidualSatList_r16 = { - "STEC-ResidualSatList-r16", - "STEC-ResidualSatList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_STEC_ResidualSatList_r16_tags_1, - sizeof(asn_DEF_STEC_ResidualSatList_r16_tags_1) - /sizeof(asn_DEF_STEC_ResidualSatList_r16_tags_1[0]), /* 1 */ - asn_DEF_STEC_ResidualSatList_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_STEC_ResidualSatList_r16_tags_1) - /sizeof(asn_DEF_STEC_ResidualSatList_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_STEC_ResidualSatList_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_STEC_ResidualSatList_r16_1, - 1, /* Single element */ - &asn_SPC_STEC_ResidualSatList_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/STEC-SatElement-r16.c b/asn.1/generated/STEC-SatElement-r16.c deleted file mode 100644 index 05a72c65..00000000 --- a/asn.1/generated/STEC-SatElement-r16.c +++ /dev/null @@ -1,258 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "STEC-SatElement-r16.h" - -static int -memb_stecQualityIndicator_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 6)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_stec_C00_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8192 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_stec_C01_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2048 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_stec_C10_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -2048 && value <= 2047)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_stec_C11_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -512 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_stecQualityIndicator_r16_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_stec_C00_r16_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_stec_C01_r16_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_stec_C10_r16_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_stec_C11_r16_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_STEC_SatElement_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct STEC_SatElement_r16, svID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct STEC_SatElement_r16, stecQualityIndicator_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_stecQualityIndicator_r16_constr_3, memb_stecQualityIndicator_r16_constraint_1 }, - 0, 0, /* No default value */ - "stecQualityIndicator-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct STEC_SatElement_r16, stec_C00_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_stec_C00_r16_constr_4, memb_stec_C00_r16_constraint_1 }, - 0, 0, /* No default value */ - "stec-C00-r16" - }, - { ATF_POINTER, 3, offsetof(struct STEC_SatElement_r16, stec_C01_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_stec_C01_r16_constr_5, memb_stec_C01_r16_constraint_1 }, - 0, 0, /* No default value */ - "stec-C01-r16" - }, - { ATF_POINTER, 2, offsetof(struct STEC_SatElement_r16, stec_C10_r16), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_stec_C10_r16_constr_6, memb_stec_C10_r16_constraint_1 }, - 0, 0, /* No default value */ - "stec-C10-r16" - }, - { ATF_POINTER, 1, offsetof(struct STEC_SatElement_r16, stec_C11_r16), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_stec_C11_r16_constr_7, memb_stec_C11_r16_constraint_1 }, - 0, 0, /* No default value */ - "stec-C11-r16" - }, -}; -static const int asn_MAP_STEC_SatElement_r16_oms_1[] = { 3, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_STEC_SatElement_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_STEC_SatElement_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* stecQualityIndicator-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* stec-C00-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* stec-C01-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* stec-C10-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* stec-C11-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_STEC_SatElement_r16_specs_1 = { - sizeof(struct STEC_SatElement_r16), - offsetof(struct STEC_SatElement_r16, _asn_ctx), - asn_MAP_STEC_SatElement_r16_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_STEC_SatElement_r16_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_STEC_SatElement_r16 = { - "STEC-SatElement-r16", - "STEC-SatElement-r16", - &asn_OP_SEQUENCE, - asn_DEF_STEC_SatElement_r16_tags_1, - sizeof(asn_DEF_STEC_SatElement_r16_tags_1) - /sizeof(asn_DEF_STEC_SatElement_r16_tags_1[0]), /* 1 */ - asn_DEF_STEC_SatElement_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_STEC_SatElement_r16_tags_1) - /sizeof(asn_DEF_STEC_SatElement_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_STEC_SatElement_r16_1, - 6, /* Elements count */ - &asn_SPC_STEC_SatElement_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/STEC-SatElement-r16.h b/asn.1/generated/STEC-SatElement-r16.h deleted file mode 100644 index de7cf89e..00000000 --- a/asn.1/generated/STEC-SatElement-r16.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _STEC_SatElement_r16_H_ -#define _STEC_SatElement_r16_H_ - - -#include - -/* Including external dependencies */ -#include "SV-ID.h" -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* STEC-SatElement-r16 */ -typedef struct STEC_SatElement_r16 { - SV_ID_t svID_r16; - BIT_STRING_t stecQualityIndicator_r16; - long stec_C00_r16; - long *stec_C01_r16 /* OPTIONAL */; - long *stec_C10_r16 /* OPTIONAL */; - long *stec_C11_r16 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} STEC_SatElement_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_STEC_SatElement_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_STEC_SatElement_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_STEC_SatElement_r16_1[6]; - -#ifdef __cplusplus -} -#endif - -#endif /* _STEC_SatElement_r16_H_ */ -#include diff --git a/asn.1/generated/STEC-SatList-r16.c b/asn.1/generated/STEC-SatList-r16.c deleted file mode 100644 index 7f988140..00000000 --- a/asn.1/generated/STEC-SatList-r16.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "STEC-SatList-r16.h" - -asn_per_constraints_t asn_PER_type_STEC_SatList_r16_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_STEC_SatList_r16_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_STEC_SatElement_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_STEC_SatList_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_STEC_SatList_r16_specs_1 = { - sizeof(struct STEC_SatList_r16), - offsetof(struct STEC_SatList_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_STEC_SatList_r16 = { - "STEC-SatList-r16", - "STEC-SatList-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_STEC_SatList_r16_tags_1, - sizeof(asn_DEF_STEC_SatList_r16_tags_1) - /sizeof(asn_DEF_STEC_SatList_r16_tags_1[0]), /* 1 */ - asn_DEF_STEC_SatList_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_STEC_SatList_r16_tags_1) - /sizeof(asn_DEF_STEC_SatList_r16_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_STEC_SatList_r16_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_STEC_SatList_r16_1, - 1, /* Single element */ - &asn_SPC_STEC_SatList_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SUPL-GPSTime.c b/asn.1/generated/SUPL-GPSTime.c deleted file mode 100644 index c316fc8f..00000000 --- a/asn.1/generated/SUPL-GPSTime.c +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SUPL-GPSTime.h" - -static int -memb_gPSWeek_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gPSTOWhour_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 167)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gPSWeek_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gPSTOWhour_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 167 } /* (0..167) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SUPL_GPSTime_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SUPL_GPSTime, gPSWeek), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gPSWeek_constr_2, memb_gPSWeek_constraint_1 }, - 0, 0, /* No default value */ - "gPSWeek" - }, - { ATF_NOFLAGS, 0, offsetof(struct SUPL_GPSTime, gPSTOWhour), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gPSTOWhour_constr_3, memb_gPSTOWhour_constraint_1 }, - 0, 0, /* No default value */ - "gPSTOWhour" - }, -}; -static const ber_tlv_tag_t asn_DEF_SUPL_GPSTime_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SUPL_GPSTime_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gPSWeek */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gPSTOWhour */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SUPL_GPSTime_specs_1 = { - sizeof(struct SUPL_GPSTime), - offsetof(struct SUPL_GPSTime, _asn_ctx), - asn_MAP_SUPL_GPSTime_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SUPL_GPSTime = { - "SUPL-GPSTime", - "SUPL-GPSTime", - &asn_OP_SEQUENCE, - asn_DEF_SUPL_GPSTime_tags_1, - sizeof(asn_DEF_SUPL_GPSTime_tags_1) - /sizeof(asn_DEF_SUPL_GPSTime_tags_1[0]), /* 1 */ - asn_DEF_SUPL_GPSTime_tags_1, /* Same as above */ - sizeof(asn_DEF_SUPL_GPSTime_tags_1) - /sizeof(asn_DEF_SUPL_GPSTime_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SUPL_GPSTime_1, - 2, /* Elements count */ - &asn_SPC_SUPL_GPSTime_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SUPL-NavigationModel.c b/asn.1/generated/SUPL-NavigationModel.c deleted file mode 100644 index 26ed5900..00000000 --- a/asn.1/generated/SUPL-NavigationModel.c +++ /dev/null @@ -1,212 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-POS-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SUPL-NavigationModel.h" - -static int -memb_gpsWeek_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gpsToe_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 167)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_nSAT_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 31)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_toeLimit_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 10)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gpsWeek_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gpsToe_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 167 } /* (0..167) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_nSAT_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_toeLimit_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SUPL_NavigationModel_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SUPL_NavigationModel, gpsWeek), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gpsWeek_constr_2, memb_gpsWeek_constraint_1 }, - 0, 0, /* No default value */ - "gpsWeek" - }, - { ATF_NOFLAGS, 0, offsetof(struct SUPL_NavigationModel, gpsToe), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gpsToe_constr_3, memb_gpsToe_constraint_1 }, - 0, 0, /* No default value */ - "gpsToe" - }, - { ATF_NOFLAGS, 0, offsetof(struct SUPL_NavigationModel, nSAT), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nSAT_constr_4, memb_nSAT_constraint_1 }, - 0, 0, /* No default value */ - "nSAT" - }, - { ATF_NOFLAGS, 0, offsetof(struct SUPL_NavigationModel, toeLimit), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_toeLimit_constr_5, memb_toeLimit_constraint_1 }, - 0, 0, /* No default value */ - "toeLimit" - }, - { ATF_POINTER, 1, offsetof(struct SUPL_NavigationModel, satInfo), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SatelliteInfo, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "satInfo" - }, -}; -static const int asn_MAP_SUPL_NavigationModel_oms_1[] = { 4 }; -static const ber_tlv_tag_t asn_DEF_SUPL_NavigationModel_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SUPL_NavigationModel_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gpsWeek */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gpsToe */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nSAT */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* toeLimit */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* satInfo */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SUPL_NavigationModel_specs_1 = { - sizeof(struct SUPL_NavigationModel), - offsetof(struct SUPL_NavigationModel, _asn_ctx), - asn_MAP_SUPL_NavigationModel_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_SUPL_NavigationModel_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SUPL_NavigationModel = { - "SUPL-NavigationModel", - "SUPL-NavigationModel", - &asn_OP_SEQUENCE, - asn_DEF_SUPL_NavigationModel_tags_1, - sizeof(asn_DEF_SUPL_NavigationModel_tags_1) - /sizeof(asn_DEF_SUPL_NavigationModel_tags_1[0]), /* 1 */ - asn_DEF_SUPL_NavigationModel_tags_1, /* Same as above */ - sizeof(asn_DEF_SUPL_NavigationModel_tags_1) - /sizeof(asn_DEF_SUPL_NavigationModel_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SUPL_NavigationModel_1, - 5, /* Elements count */ - &asn_SPC_SUPL_NavigationModel_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SUPL-PositionData.c b/asn.1/generated/SUPL-PositionData.c deleted file mode 100644 index 56d39a00..00000000 --- a/asn.1/generated/SUPL-PositionData.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SUPL-PositionData.h" - -asn_TYPE_member_t asn_MBR_SUPL_PositionData_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SUPL_PositionData, position), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Position, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "position" - }, - { ATF_POINTER, 3, offsetof(struct SUPL_PositionData, posMethod), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PosMethod, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "posMethod" - }, - { ATF_POINTER, 2, offsetof(struct SUPL_PositionData, gnssPosTechnology), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSSPosTechnology, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnssPosTechnology" - }, - { ATF_POINTER, 1, offsetof(struct SUPL_PositionData, ganssSignalsInfo), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GANSSsignalsInfo, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ganssSignalsInfo" - }, -}; -static const int asn_MAP_SUPL_PositionData_oms_1[] = { 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_SUPL_PositionData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SUPL_PositionData_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* position */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* posMethod */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnssPosTechnology */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ganssSignalsInfo */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SUPL_PositionData_specs_1 = { - sizeof(struct SUPL_PositionData), - offsetof(struct SUPL_PositionData, _asn_ctx), - asn_MAP_SUPL_PositionData_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_SUPL_PositionData_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SUPL_PositionData = { - "SUPL-PositionData", - "SUPL-PositionData", - &asn_OP_SEQUENCE, - asn_DEF_SUPL_PositionData_tags_1, - sizeof(asn_DEF_SUPL_PositionData_tags_1) - /sizeof(asn_DEF_SUPL_PositionData_tags_1[0]), /* 1 */ - asn_DEF_SUPL_PositionData_tags_1, /* Same as above */ - sizeof(asn_DEF_SUPL_PositionData_tags_1) - /sizeof(asn_DEF_SUPL_PositionData_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SUPL_PositionData_1, - 4, /* Elements count */ - &asn_SPC_SUPL_PositionData_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SUPL-PositionData.h b/asn.1/generated/SUPL-PositionData.h deleted file mode 100644 index 08e0fbaa..00000000 --- a/asn.1/generated/SUPL-PositionData.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SUPL_PositionData_H_ -#define _SUPL_PositionData_H_ - - -#include - -/* Including external dependencies */ -#include "Position.h" -#include "PosMethod.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct GNSSPosTechnology; -struct GANSSsignalsInfo; - -/* SUPL-PositionData */ -typedef struct SUPL_PositionData { - Position_t position; - PosMethod_t *posMethod /* OPTIONAL */; - struct GNSSPosTechnology *gnssPosTechnology /* OPTIONAL */; - struct GANSSsignalsInfo *ganssSignalsInfo /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} SUPL_PositionData_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SUPL_PositionData; -extern asn_SEQUENCE_specifics_t asn_SPC_SUPL_PositionData_specs_1; -extern asn_TYPE_member_t asn_MBR_SUPL_PositionData_1[4]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GNSSPosTechnology.h" -#include "GANSSsignalsInfo.h" - -#endif /* _SUPL_PositionData_H_ */ -#include diff --git a/asn.1/generated/SUPLAUTHREQ.c b/asn.1/generated/SUPLAUTHREQ.c deleted file mode 100644 index fcc57f8e..00000000 --- a/asn.1/generated/SUPLAUTHREQ.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-AUTH-REQ" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SUPLAUTHREQ.h" - -asn_TYPE_member_t asn_MBR_SUPLAUTHREQ_1[] = { - { ATF_POINTER, 2, offsetof(struct SUPLAUTHREQ, ver), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ver" - }, - { ATF_POINTER, 1, offsetof(struct SUPLAUTHREQ, sETCapabilities), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SETCapabilities, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sETCapabilities" - }, -}; -static const int asn_MAP_SUPLAUTHREQ_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_SUPLAUTHREQ_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SUPLAUTHREQ_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ver */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* sETCapabilities */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SUPLAUTHREQ_specs_1 = { - sizeof(struct SUPLAUTHREQ), - offsetof(struct SUPLAUTHREQ, _asn_ctx), - asn_MAP_SUPLAUTHREQ_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_SUPLAUTHREQ_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SUPLAUTHREQ = { - "SUPLAUTHREQ", - "SUPLAUTHREQ", - &asn_OP_SEQUENCE, - asn_DEF_SUPLAUTHREQ_tags_1, - sizeof(asn_DEF_SUPLAUTHREQ_tags_1) - /sizeof(asn_DEF_SUPLAUTHREQ_tags_1[0]), /* 1 */ - asn_DEF_SUPLAUTHREQ_tags_1, /* Same as above */ - sizeof(asn_DEF_SUPLAUTHREQ_tags_1) - /sizeof(asn_DEF_SUPLAUTHREQ_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SUPLAUTHREQ_1, - 2, /* Elements count */ - &asn_SPC_SUPLAUTHREQ_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SUPLAUTHREQ.h b/asn.1/generated/SUPLAUTHREQ.h deleted file mode 100644 index 4e40374e..00000000 --- a/asn.1/generated/SUPLAUTHREQ.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-AUTH-REQ" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SUPLAUTHREQ_H_ -#define _SUPLAUTHREQ_H_ - - -#include - -/* Including external dependencies */ -#include "Ver.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct SETCapabilities; - -/* SUPLAUTHREQ */ -typedef struct SUPLAUTHREQ { - Ver_t *ver /* OPTIONAL */; - struct SETCapabilities *sETCapabilities /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} SUPLAUTHREQ_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SUPLAUTHREQ; -extern asn_SEQUENCE_specifics_t asn_SPC_SUPLAUTHREQ_specs_1; -extern asn_TYPE_member_t asn_MBR_SUPLAUTHREQ_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "SETCapabilities.h" - -#endif /* _SUPLAUTHREQ_H_ */ -#include diff --git a/asn.1/generated/SUPLAUTHRESP.c b/asn.1/generated/SUPLAUTHRESP.c deleted file mode 100644 index 93c92789..00000000 --- a/asn.1/generated/SUPLAUTHRESP.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-AUTH-RESP" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SUPLAUTHRESP.h" - -asn_TYPE_member_t asn_MBR_SUPLAUTHRESP_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SUPLAUTHRESP, sPCSETKey), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SPCSETKey, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sPCSETKey" - }, - { ATF_NOFLAGS, 0, offsetof(struct SUPLAUTHRESP, sPCTID), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SPCTID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sPCTID" - }, - { ATF_POINTER, 1, offsetof(struct SUPLAUTHRESP, sPCSETKeylifetime), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SPCSETKeylifetime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sPCSETKeylifetime" - }, -}; -static const int asn_MAP_SUPLAUTHRESP_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_SUPLAUTHRESP_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SUPLAUTHRESP_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sPCSETKey */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sPCTID */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* sPCSETKeylifetime */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SUPLAUTHRESP_specs_1 = { - sizeof(struct SUPLAUTHRESP), - offsetof(struct SUPLAUTHRESP, _asn_ctx), - asn_MAP_SUPLAUTHRESP_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_SUPLAUTHRESP_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SUPLAUTHRESP = { - "SUPLAUTHRESP", - "SUPLAUTHRESP", - &asn_OP_SEQUENCE, - asn_DEF_SUPLAUTHRESP_tags_1, - sizeof(asn_DEF_SUPLAUTHRESP_tags_1) - /sizeof(asn_DEF_SUPLAUTHRESP_tags_1[0]), /* 1 */ - asn_DEF_SUPLAUTHRESP_tags_1, /* Same as above */ - sizeof(asn_DEF_SUPLAUTHRESP_tags_1) - /sizeof(asn_DEF_SUPLAUTHRESP_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SUPLAUTHRESP_1, - 3, /* Elements count */ - &asn_SPC_SUPLAUTHRESP_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SUPLAUTHRESP.h b/asn.1/generated/SUPLAUTHRESP.h deleted file mode 100644 index a80a1f84..00000000 --- a/asn.1/generated/SUPLAUTHRESP.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-AUTH-RESP" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SUPLAUTHRESP_H_ -#define _SUPLAUTHRESP_H_ - - -#include - -/* Including external dependencies */ -#include "SPCSETKey.h" -#include "SPCTID.h" -#include "SPCSETKeylifetime.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* SUPLAUTHRESP */ -typedef struct SUPLAUTHRESP { - SPCSETKey_t sPCSETKey; - SPCTID_t sPCTID; - SPCSETKeylifetime_t *sPCSETKeylifetime /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} SUPLAUTHRESP_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SUPLAUTHRESP; -extern asn_SEQUENCE_specifics_t asn_SPC_SUPLAUTHRESP_specs_1; -extern asn_TYPE_member_t asn_MBR_SUPLAUTHRESP_1[3]; - -#ifdef __cplusplus -} -#endif - -#endif /* _SUPLAUTHRESP_H_ */ -#include diff --git a/asn.1/generated/SUPLEND.c b/asn.1/generated/SUPLEND.c deleted file mode 100644 index 5f7edb63..00000000 --- a/asn.1/generated/SUPLEND.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-END" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SUPLEND.h" - -asn_TYPE_member_t asn_MBR_SUPLEND_1[] = { - { ATF_POINTER, 4, offsetof(struct SUPLEND, position), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Position, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "position" - }, - { ATF_POINTER, 3, offsetof(struct SUPLEND, statusCode), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_StatusCode, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "statusCode" - }, - { ATF_POINTER, 2, offsetof(struct SUPLEND, ver), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ver" - }, - { ATF_POINTER, 1, offsetof(struct SUPLEND, ver2_SUPL_END_extension), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver2_SUPL_END_extension, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ver2-SUPL-END-extension" - }, -}; -static const int asn_MAP_SUPLEND_oms_1[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_SUPLEND_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SUPLEND_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* position */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* statusCode */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ver */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ver2-SUPL-END-extension */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SUPLEND_specs_1 = { - sizeof(struct SUPLEND), - offsetof(struct SUPLEND, _asn_ctx), - asn_MAP_SUPLEND_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_SUPLEND_oms_1, /* Optional members */ - 3, 1, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SUPLEND = { - "SUPLEND", - "SUPLEND", - &asn_OP_SEQUENCE, - asn_DEF_SUPLEND_tags_1, - sizeof(asn_DEF_SUPLEND_tags_1) - /sizeof(asn_DEF_SUPLEND_tags_1[0]), /* 1 */ - asn_DEF_SUPLEND_tags_1, /* Same as above */ - sizeof(asn_DEF_SUPLEND_tags_1) - /sizeof(asn_DEF_SUPLEND_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SUPLEND_1, - 4, /* Elements count */ - &asn_SPC_SUPLEND_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SUPLEND.h b/asn.1/generated/SUPLEND.h deleted file mode 100644 index a1590b19..00000000 --- a/asn.1/generated/SUPLEND.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-END" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SUPLEND_H_ -#define _SUPLEND_H_ - - -#include - -/* Including external dependencies */ -#include "StatusCode.h" -#include "Ver.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct Position; -struct Ver2_SUPL_END_extension; - -/* SUPLEND */ -typedef struct SUPLEND { - struct Position *position /* OPTIONAL */; - StatusCode_t *statusCode /* OPTIONAL */; - Ver_t *ver /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct Ver2_SUPL_END_extension *ver2_SUPL_END_extension /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} SUPLEND_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SUPLEND; -extern asn_SEQUENCE_specifics_t asn_SPC_SUPLEND_specs_1; -extern asn_TYPE_member_t asn_MBR_SUPLEND_1[4]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "Position.h" -#include "Ver2-SUPL-END-extension.h" - -#endif /* _SUPLEND_H_ */ -#include diff --git a/asn.1/generated/SUPLINIT.c b/asn.1/generated/SUPLINIT.c deleted file mode 100644 index 7e5623f1..00000000 --- a/asn.1/generated/SUPLINIT.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SUPLINIT.h" - -asn_TYPE_member_t asn_MBR_SUPLINIT_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SUPLINIT, posMethod), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PosMethod, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "posMethod" - }, - { ATF_POINTER, 3, offsetof(struct SUPLINIT, notification), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Notification, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "notification" - }, - { ATF_POINTER, 2, offsetof(struct SUPLINIT, sLPAddress), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_SLPAddress, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sLPAddress" - }, - { ATF_POINTER, 1, offsetof(struct SUPLINIT, qoP), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_QoP, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "qoP" - }, - { ATF_NOFLAGS, 0, offsetof(struct SUPLINIT, sLPMode), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SLPMode, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sLPMode" - }, - { ATF_POINTER, 3, offsetof(struct SUPLINIT, mAC), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MAC, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mAC" - }, - { ATF_POINTER, 2, offsetof(struct SUPLINIT, keyIdentity), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_KeyIdentity, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "keyIdentity" - }, - { ATF_POINTER, 1, offsetof(struct SUPLINIT, ver2_SUPL_INIT_extension), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver2_SUPL_INIT_extension, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ver2-SUPL-INIT-extension" - }, -}; -static const int asn_MAP_SUPLINIT_oms_1[] = { 1, 2, 3, 5, 6, 7 }; -static const ber_tlv_tag_t asn_DEF_SUPLINIT_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SUPLINIT_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* posMethod */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* notification */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sLPAddress */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* qoP */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* sLPMode */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* mAC */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* keyIdentity */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* ver2-SUPL-INIT-extension */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SUPLINIT_specs_1 = { - sizeof(struct SUPLINIT), - offsetof(struct SUPLINIT, _asn_ctx), - asn_MAP_SUPLINIT_tag2el_1, - 8, /* Count of tags in the map */ - asn_MAP_SUPLINIT_oms_1, /* Optional members */ - 5, 1, /* Root/Additions */ - 7, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SUPLINIT = { - "SUPLINIT", - "SUPLINIT", - &asn_OP_SEQUENCE, - asn_DEF_SUPLINIT_tags_1, - sizeof(asn_DEF_SUPLINIT_tags_1) - /sizeof(asn_DEF_SUPLINIT_tags_1[0]), /* 1 */ - asn_DEF_SUPLINIT_tags_1, /* Same as above */ - sizeof(asn_DEF_SUPLINIT_tags_1) - /sizeof(asn_DEF_SUPLINIT_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SUPLINIT_1, - 8, /* Elements count */ - &asn_SPC_SUPLINIT_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SUPLINIT.h b/asn.1/generated/SUPLINIT.h deleted file mode 100644 index df241b67..00000000 --- a/asn.1/generated/SUPLINIT.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SUPLINIT_H_ -#define _SUPLINIT_H_ - - -#include - -/* Including external dependencies */ -#include "PosMethod.h" -#include "SLPMode.h" -#include "MAC.h" -#include "KeyIdentity.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct Notification; -struct SLPAddress; -struct QoP; -struct Ver2_SUPL_INIT_extension; - -/* SUPLINIT */ -typedef struct SUPLINIT { - PosMethod_t posMethod; - struct Notification *notification /* OPTIONAL */; - struct SLPAddress *sLPAddress /* OPTIONAL */; - struct QoP *qoP /* OPTIONAL */; - SLPMode_t sLPMode; - MAC_t *mAC /* OPTIONAL */; - KeyIdentity_t *keyIdentity /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct Ver2_SUPL_INIT_extension *ver2_SUPL_INIT_extension /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} SUPLINIT_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SUPLINIT; -extern asn_SEQUENCE_specifics_t asn_SPC_SUPLINIT_specs_1; -extern asn_TYPE_member_t asn_MBR_SUPLINIT_1[8]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "Notification.h" -#include "SLPAddress.h" -#include "QoP.h" -#include "Ver2-SUPL-INIT-extension.h" - -#endif /* _SUPLINIT_H_ */ -#include diff --git a/asn.1/generated/SUPLPOS.c b/asn.1/generated/SUPLPOS.c deleted file mode 100644 index bc653c9d..00000000 --- a/asn.1/generated/SUPLPOS.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-POS" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SUPLPOS.h" - -asn_TYPE_member_t asn_MBR_SUPLPOS_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SUPLPOS, posPayLoad), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_PosPayLoad, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "posPayLoad" - }, - { ATF_POINTER, 2, offsetof(struct SUPLPOS, velocity), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_ULP_Velocity, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "velocity" - }, - { ATF_POINTER, 1, offsetof(struct SUPLPOS, ver2_SUPL_POS_extension), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver2_SUPL_POS_extension, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ver2-SUPL-POS-extension" - }, -}; -static const int asn_MAP_SUPLPOS_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_SUPLPOS_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SUPLPOS_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* posPayLoad */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* velocity */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ver2-SUPL-POS-extension */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SUPLPOS_specs_1 = { - sizeof(struct SUPLPOS), - offsetof(struct SUPLPOS, _asn_ctx), - asn_MAP_SUPLPOS_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_SUPLPOS_oms_1, /* Optional members */ - 1, 1, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SUPLPOS = { - "SUPLPOS", - "SUPLPOS", - &asn_OP_SEQUENCE, - asn_DEF_SUPLPOS_tags_1, - sizeof(asn_DEF_SUPLPOS_tags_1) - /sizeof(asn_DEF_SUPLPOS_tags_1[0]), /* 1 */ - asn_DEF_SUPLPOS_tags_1, /* Same as above */ - sizeof(asn_DEF_SUPLPOS_tags_1) - /sizeof(asn_DEF_SUPLPOS_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SUPLPOS_1, - 3, /* Elements count */ - &asn_SPC_SUPLPOS_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SUPLPOS.h b/asn.1/generated/SUPLPOS.h deleted file mode 100644 index 0564ea1f..00000000 --- a/asn.1/generated/SUPLPOS.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-POS" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SUPLPOS_H_ -#define _SUPLPOS_H_ - - -#include - -/* Including external dependencies */ -#include "PosPayLoad.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct ULP_Velocity; -struct Ver2_SUPL_POS_extension; - -/* SUPLPOS */ -typedef struct SUPLPOS { - PosPayLoad_t posPayLoad; - struct ULP_Velocity *velocity /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct Ver2_SUPL_POS_extension *ver2_SUPL_POS_extension /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} SUPLPOS_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SUPLPOS; -extern asn_SEQUENCE_specifics_t asn_SPC_SUPLPOS_specs_1; -extern asn_TYPE_member_t asn_MBR_SUPLPOS_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "ULP-Velocity.h" -#include "Ver2-SUPL-POS-extension.h" - -#endif /* _SUPLPOS_H_ */ -#include diff --git a/asn.1/generated/SUPLPOSINIT.c b/asn.1/generated/SUPLPOSINIT.c deleted file mode 100644 index da747b85..00000000 --- a/asn.1/generated/SUPLPOSINIT.c +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-POS-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SUPLPOSINIT.h" - -asn_TYPE_member_t asn_MBR_SUPLPOSINIT_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SUPLPOSINIT, sETCapabilities), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SETCapabilities, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sETCapabilities" - }, - { ATF_POINTER, 1, offsetof(struct SUPLPOSINIT, requestedAssistData), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RequestedAssistData, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "requestedAssistData" - }, - { ATF_NOFLAGS, 0, offsetof(struct SUPLPOSINIT, locationId), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LocationId, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationId" - }, - { ATF_POINTER, 4, offsetof(struct SUPLPOSINIT, position), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Position, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "position" - }, - { ATF_POINTER, 3, offsetof(struct SUPLPOSINIT, sUPLPOS), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SUPLPOS, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sUPLPOS" - }, - { ATF_POINTER, 2, offsetof(struct SUPLPOSINIT, ver), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ver" - }, - { ATF_POINTER, 1, offsetof(struct SUPLPOSINIT, ver2_SUPL_POS_INIT_extension), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver2_SUPL_POS_INIT_extension, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ver2-SUPL-POS-INIT-extension" - }, -}; -static const int asn_MAP_SUPLPOSINIT_oms_1[] = { 1, 3, 4, 5, 6 }; -static const ber_tlv_tag_t asn_DEF_SUPLPOSINIT_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SUPLPOSINIT_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sETCapabilities */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* requestedAssistData */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* locationId */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* position */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* sUPLPOS */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ver */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ver2-SUPL-POS-INIT-extension */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SUPLPOSINIT_specs_1 = { - sizeof(struct SUPLPOSINIT), - offsetof(struct SUPLPOSINIT, _asn_ctx), - asn_MAP_SUPLPOSINIT_tag2el_1, - 7, /* Count of tags in the map */ - asn_MAP_SUPLPOSINIT_oms_1, /* Optional members */ - 4, 1, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SUPLPOSINIT = { - "SUPLPOSINIT", - "SUPLPOSINIT", - &asn_OP_SEQUENCE, - asn_DEF_SUPLPOSINIT_tags_1, - sizeof(asn_DEF_SUPLPOSINIT_tags_1) - /sizeof(asn_DEF_SUPLPOSINIT_tags_1[0]), /* 1 */ - asn_DEF_SUPLPOSINIT_tags_1, /* Same as above */ - sizeof(asn_DEF_SUPLPOSINIT_tags_1) - /sizeof(asn_DEF_SUPLPOSINIT_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SUPLPOSINIT_1, - 7, /* Elements count */ - &asn_SPC_SUPLPOSINIT_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SUPLPOSINIT.h b/asn.1/generated/SUPLPOSINIT.h deleted file mode 100644 index 90bf8e6f..00000000 --- a/asn.1/generated/SUPLPOSINIT.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-POS-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SUPLPOSINIT_H_ -#define _SUPLPOSINIT_H_ - - -#include - -/* Including external dependencies */ -#include "SETCapabilities.h" -#include "LocationId.h" -#include "Ver.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct RequestedAssistData; -struct Position; -struct SUPLPOS; -struct Ver2_SUPL_POS_INIT_extension; - -/* SUPLPOSINIT */ -typedef struct SUPLPOSINIT { - SETCapabilities_t sETCapabilities; - struct RequestedAssistData *requestedAssistData /* OPTIONAL */; - LocationId_t locationId; - struct Position *position /* OPTIONAL */; - struct SUPLPOS *sUPLPOS /* OPTIONAL */; - Ver_t *ver /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct Ver2_SUPL_POS_INIT_extension *ver2_SUPL_POS_INIT_extension /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} SUPLPOSINIT_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SUPLPOSINIT; -extern asn_SEQUENCE_specifics_t asn_SPC_SUPLPOSINIT_specs_1; -extern asn_TYPE_member_t asn_MBR_SUPLPOSINIT_1[7]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "RequestedAssistData.h" -#include "Position.h" -#include "SUPLPOS.h" -#include "Ver2-SUPL-POS-INIT-extension.h" - -#endif /* _SUPLPOSINIT_H_ */ -#include diff --git a/asn.1/generated/SUPLRESPONSE.c b/asn.1/generated/SUPLRESPONSE.c deleted file mode 100644 index 34d0939b..00000000 --- a/asn.1/generated/SUPLRESPONSE.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SUPLRESPONSE.h" - -asn_TYPE_member_t asn_MBR_SUPLRESPONSE_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SUPLRESPONSE, posMethod), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PosMethod, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "posMethod" - }, - { ATF_POINTER, 4, offsetof(struct SUPLRESPONSE, sLPAddress), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_SLPAddress, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sLPAddress" - }, - { ATF_POINTER, 3, offsetof(struct SUPLRESPONSE, sETAuthKey), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_SETAuthKey, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sETAuthKey" - }, - { ATF_POINTER, 2, offsetof(struct SUPLRESPONSE, keyIdentity4), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_KeyIdentity4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "keyIdentity4" - }, - { ATF_POINTER, 1, offsetof(struct SUPLRESPONSE, ver2_SUPL_RESPONSE_extension), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver2_SUPL_RESPONSE_extension, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ver2-SUPL-RESPONSE-extension" - }, -}; -static const int asn_MAP_SUPLRESPONSE_oms_1[] = { 1, 2, 3, 4 }; -static const ber_tlv_tag_t asn_DEF_SUPLRESPONSE_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SUPLRESPONSE_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* posMethod */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sLPAddress */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sETAuthKey */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* keyIdentity4 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ver2-SUPL-RESPONSE-extension */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SUPLRESPONSE_specs_1 = { - sizeof(struct SUPLRESPONSE), - offsetof(struct SUPLRESPONSE, _asn_ctx), - asn_MAP_SUPLRESPONSE_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_SUPLRESPONSE_oms_1, /* Optional members */ - 3, 1, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SUPLRESPONSE = { - "SUPLRESPONSE", - "SUPLRESPONSE", - &asn_OP_SEQUENCE, - asn_DEF_SUPLRESPONSE_tags_1, - sizeof(asn_DEF_SUPLRESPONSE_tags_1) - /sizeof(asn_DEF_SUPLRESPONSE_tags_1[0]), /* 1 */ - asn_DEF_SUPLRESPONSE_tags_1, /* Same as above */ - sizeof(asn_DEF_SUPLRESPONSE_tags_1) - /sizeof(asn_DEF_SUPLRESPONSE_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SUPLRESPONSE_1, - 5, /* Elements count */ - &asn_SPC_SUPLRESPONSE_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SUPLRESPONSE.h b/asn.1/generated/SUPLRESPONSE.h deleted file mode 100644 index 69b1ee64..00000000 --- a/asn.1/generated/SUPLRESPONSE.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SUPLRESPONSE_H_ -#define _SUPLRESPONSE_H_ - - -#include - -/* Including external dependencies */ -#include "PosMethod.h" -#include "KeyIdentity4.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct SLPAddress; -struct SETAuthKey; -struct Ver2_SUPL_RESPONSE_extension; - -/* SUPLRESPONSE */ -typedef struct SUPLRESPONSE { - PosMethod_t posMethod; - struct SLPAddress *sLPAddress /* OPTIONAL */; - struct SETAuthKey *sETAuthKey /* OPTIONAL */; - KeyIdentity4_t *keyIdentity4 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct Ver2_SUPL_RESPONSE_extension *ver2_SUPL_RESPONSE_extension /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} SUPLRESPONSE_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SUPLRESPONSE; -extern asn_SEQUENCE_specifics_t asn_SPC_SUPLRESPONSE_specs_1; -extern asn_TYPE_member_t asn_MBR_SUPLRESPONSE_1[5]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "SLPAddress.h" -#include "SETAuthKey.h" -#include "Ver2-SUPL-RESPONSE-extension.h" - -#endif /* _SUPLRESPONSE_H_ */ -#include diff --git a/asn.1/generated/SUPLSTART.c b/asn.1/generated/SUPLSTART.c deleted file mode 100644 index 31137dd0..00000000 --- a/asn.1/generated/SUPLSTART.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SUPLSTART.h" - -asn_TYPE_member_t asn_MBR_SUPLSTART_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SUPLSTART, sETCapabilities), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SETCapabilities, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sETCapabilities" - }, - { ATF_NOFLAGS, 0, offsetof(struct SUPLSTART, locationId), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LocationId, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationId" - }, - { ATF_POINTER, 2, offsetof(struct SUPLSTART, qoP), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_QoP, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "qoP" - }, - { ATF_POINTER, 1, offsetof(struct SUPLSTART, ver2_SUPL_START_extension), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver2_SUPL_START_extension, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ver2-SUPL-START-extension" - }, -}; -static const int asn_MAP_SUPLSTART_oms_1[] = { 2, 3 }; -static const ber_tlv_tag_t asn_DEF_SUPLSTART_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SUPLSTART_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sETCapabilities */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* locationId */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* qoP */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ver2-SUPL-START-extension */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SUPLSTART_specs_1 = { - sizeof(struct SUPLSTART), - offsetof(struct SUPLSTART, _asn_ctx), - asn_MAP_SUPLSTART_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_SUPLSTART_oms_1, /* Optional members */ - 1, 1, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SUPLSTART = { - "SUPLSTART", - "SUPLSTART", - &asn_OP_SEQUENCE, - asn_DEF_SUPLSTART_tags_1, - sizeof(asn_DEF_SUPLSTART_tags_1) - /sizeof(asn_DEF_SUPLSTART_tags_1[0]), /* 1 */ - asn_DEF_SUPLSTART_tags_1, /* Same as above */ - sizeof(asn_DEF_SUPLSTART_tags_1) - /sizeof(asn_DEF_SUPLSTART_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SUPLSTART_1, - 4, /* Elements count */ - &asn_SPC_SUPLSTART_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SUPLSTART.h b/asn.1/generated/SUPLSTART.h deleted file mode 100644 index de646f30..00000000 --- a/asn.1/generated/SUPLSTART.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SUPLSTART_H_ -#define _SUPLSTART_H_ - - -#include - -/* Including external dependencies */ -#include "SETCapabilities.h" -#include "LocationId.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct QoP; -struct Ver2_SUPL_START_extension; - -/* SUPLSTART */ -typedef struct SUPLSTART { - SETCapabilities_t sETCapabilities; - LocationId_t locationId; - struct QoP *qoP /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct Ver2_SUPL_START_extension *ver2_SUPL_START_extension /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} SUPLSTART_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SUPLSTART; -extern asn_SEQUENCE_specifics_t asn_SPC_SUPLSTART_specs_1; -extern asn_TYPE_member_t asn_MBR_SUPLSTART_1[4]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "QoP.h" -#include "Ver2-SUPL-START-extension.h" - -#endif /* _SUPLSTART_H_ */ -#include diff --git a/asn.1/generated/SV-ID.c b/asn.1/generated/SV-ID.c deleted file mode 100644 index 4d28c034..00000000 --- a/asn.1/generated/SV-ID.c +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SV-ID.h" - -static int -memb_satellite_id_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_satellite_id_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SV_ID_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SV_ID, satellite_id), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_satellite_id_constr_2, memb_satellite_id_constraint_1 }, - 0, 0, /* No default value */ - "satellite-id" - }, -}; -static const ber_tlv_tag_t asn_DEF_SV_ID_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SV_ID_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* satellite-id */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SV_ID_specs_1 = { - sizeof(struct SV_ID), - offsetof(struct SV_ID, _asn_ctx), - asn_MAP_SV_ID_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SV_ID = { - "SV-ID", - "SV-ID", - &asn_OP_SEQUENCE, - asn_DEF_SV_ID_tags_1, - sizeof(asn_DEF_SV_ID_tags_1) - /sizeof(asn_DEF_SV_ID_tags_1[0]), /* 1 */ - asn_DEF_SV_ID_tags_1, /* Same as above */ - sizeof(asn_DEF_SV_ID_tags_1) - /sizeof(asn_DEF_SV_ID_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SV_ID_1, - 1, /* Elements count */ - &asn_SPC_SV_ID_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SatListElement-r15.c b/asn.1/generated/SatListElement-r15.c deleted file mode 100644 index dda9bc1b..00000000 --- a/asn.1/generated/SatListElement-r15.c +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SatListElement-r15.h" - -static int -memb_iod_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 11)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_iod_r15_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 11, 11 } /* (SIZE(11..11)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SatListElement_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SatListElement_r15, svID_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct SatListElement_r15, iod_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_iod_r15_constr_3, memb_iod_r15_constraint_1 }, - 0, 0, /* No default value */ - "iod-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_SatListElement_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SatListElement_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iod-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SatListElement_r15_specs_1 = { - sizeof(struct SatListElement_r15), - offsetof(struct SatListElement_r15, _asn_ctx), - asn_MAP_SatListElement_r15_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SatListElement_r15 = { - "SatListElement-r15", - "SatListElement-r15", - &asn_OP_SEQUENCE, - asn_DEF_SatListElement_r15_tags_1, - sizeof(asn_DEF_SatListElement_r15_tags_1) - /sizeof(asn_DEF_SatListElement_r15_tags_1[0]), /* 1 */ - asn_DEF_SatListElement_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_SatListElement_r15_tags_1) - /sizeof(asn_DEF_SatListElement_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SatListElement_r15_1, - 2, /* Elements count */ - &asn_SPC_SatListElement_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SatListRelatedDataElement.c b/asn.1/generated/SatListRelatedDataElement.c deleted file mode 100644 index 38331d83..00000000 --- a/asn.1/generated/SatListRelatedDataElement.c +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SatListRelatedDataElement.h" - -static int -memb_iod_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 11)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_clockModelID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_orbitModelID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_iod_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 11, 11 } /* (SIZE(11..11)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_clockModelID_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_orbitModelID_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SatListRelatedDataElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SatListRelatedDataElement, svID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SV_ID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "svID" - }, - { ATF_NOFLAGS, 0, offsetof(struct SatListRelatedDataElement, iod), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_iod_constr_3, memb_iod_constraint_1 }, - 0, 0, /* No default value */ - "iod" - }, - { ATF_POINTER, 2, offsetof(struct SatListRelatedDataElement, clockModelID), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_clockModelID_constr_4, memb_clockModelID_constraint_1 }, - 0, 0, /* No default value */ - "clockModelID" - }, - { ATF_POINTER, 1, offsetof(struct SatListRelatedDataElement, orbitModelID), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_orbitModelID_constr_5, memb_orbitModelID_constraint_1 }, - 0, 0, /* No default value */ - "orbitModelID" - }, -}; -static const int asn_MAP_SatListRelatedDataElement_oms_1[] = { 2, 3 }; -static const ber_tlv_tag_t asn_DEF_SatListRelatedDataElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SatListRelatedDataElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* iod */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* clockModelID */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* orbitModelID */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SatListRelatedDataElement_specs_1 = { - sizeof(struct SatListRelatedDataElement), - offsetof(struct SatListRelatedDataElement, _asn_ctx), - asn_MAP_SatListRelatedDataElement_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_SatListRelatedDataElement_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SatListRelatedDataElement = { - "SatListRelatedDataElement", - "SatListRelatedDataElement", - &asn_OP_SEQUENCE, - asn_DEF_SatListRelatedDataElement_tags_1, - sizeof(asn_DEF_SatListRelatedDataElement_tags_1) - /sizeof(asn_DEF_SatListRelatedDataElement_tags_1[0]), /* 1 */ - asn_DEF_SatListRelatedDataElement_tags_1, /* Same as above */ - sizeof(asn_DEF_SatListRelatedDataElement_tags_1) - /sizeof(asn_DEF_SatListRelatedDataElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SatListRelatedDataElement_1, - 4, /* Elements count */ - &asn_SPC_SatListRelatedDataElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SatListRelatedDataList.c b/asn.1/generated/SatListRelatedDataList.c deleted file mode 100644 index e39ac8a3..00000000 --- a/asn.1/generated/SatListRelatedDataList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SatListRelatedDataList.h" - -asn_per_constraints_t asn_PER_type_SatListRelatedDataList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SatListRelatedDataList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_SatListRelatedDataElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_SatListRelatedDataList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_SatListRelatedDataList_specs_1 = { - sizeof(struct SatListRelatedDataList), - offsetof(struct SatListRelatedDataList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_SatListRelatedDataList = { - "SatListRelatedDataList", - "SatListRelatedDataList", - &asn_OP_SEQUENCE_OF, - asn_DEF_SatListRelatedDataList_tags_1, - sizeof(asn_DEF_SatListRelatedDataList_tags_1) - /sizeof(asn_DEF_SatListRelatedDataList_tags_1[0]), /* 1 */ - asn_DEF_SatListRelatedDataList_tags_1, /* Same as above */ - sizeof(asn_DEF_SatListRelatedDataList_tags_1) - /sizeof(asn_DEF_SatListRelatedDataList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_SatListRelatedDataList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_SatListRelatedDataList_1, - 1, /* Single element */ - &asn_SPC_SatListRelatedDataList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SatelliteInfo.c b/asn.1/generated/SatelliteInfo.c deleted file mode 100644 index 8e86f0b3..00000000 --- a/asn.1/generated/SatelliteInfo.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-POS-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SatelliteInfo.h" - -asn_per_constraints_t asn_PER_type_SatelliteInfo_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 31 } /* (SIZE(1..31)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SatelliteInfo_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_SatelliteInfoElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_SatelliteInfo_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_SatelliteInfo_specs_1 = { - sizeof(struct SatelliteInfo), - offsetof(struct SatelliteInfo, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_SatelliteInfo = { - "SatelliteInfo", - "SatelliteInfo", - &asn_OP_SEQUENCE_OF, - asn_DEF_SatelliteInfo_tags_1, - sizeof(asn_DEF_SatelliteInfo_tags_1) - /sizeof(asn_DEF_SatelliteInfo_tags_1[0]), /* 1 */ - asn_DEF_SatelliteInfo_tags_1, /* Same as above */ - sizeof(asn_DEF_SatelliteInfo_tags_1) - /sizeof(asn_DEF_SatelliteInfo_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_SatelliteInfo_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_SatelliteInfo_1, - 1, /* Single element */ - &asn_SPC_SatelliteInfo_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SatelliteInfoElement.c b/asn.1/generated/SatelliteInfoElement.c deleted file mode 100644 index f209c65b..00000000 --- a/asn.1/generated/SatelliteInfoElement.c +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-POS-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SatelliteInfoElement.h" - -static int -memb_satId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_iODE_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_satId_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_iODE_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SatelliteInfoElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SatelliteInfoElement, satId), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_satId_constr_2, memb_satId_constraint_1 }, - 0, 0, /* No default value */ - "satId" - }, - { ATF_NOFLAGS, 0, offsetof(struct SatelliteInfoElement, iODE), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_iODE_constr_3, memb_iODE_constraint_1 }, - 0, 0, /* No default value */ - "iODE" - }, -}; -static const ber_tlv_tag_t asn_DEF_SatelliteInfoElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SatelliteInfoElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* satId */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iODE */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SatelliteInfoElement_specs_1 = { - sizeof(struct SatelliteInfoElement), - offsetof(struct SatelliteInfoElement, _asn_ctx), - asn_MAP_SatelliteInfoElement_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SatelliteInfoElement = { - "SatelliteInfoElement", - "SatelliteInfoElement", - &asn_OP_SEQUENCE, - asn_DEF_SatelliteInfoElement_tags_1, - sizeof(asn_DEF_SatelliteInfoElement_tags_1) - /sizeof(asn_DEF_SatelliteInfoElement_tags_1[0]), /* 1 */ - asn_DEF_SatelliteInfoElement_tags_1, /* Same as above */ - sizeof(asn_DEF_SatelliteInfoElement_tags_1) - /sizeof(asn_DEF_SatelliteInfoElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SatelliteInfoElement_1, - 2, /* Elements count */ - &asn_SPC_SatelliteInfoElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SatellitesListRelatedData.c b/asn.1/generated/SatellitesListRelatedData.c deleted file mode 100644 index 5a82bc52..00000000 --- a/asn.1/generated/SatellitesListRelatedData.c +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SatellitesListRelatedData.h" - -static int -memb_satId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_iod_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_satId_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_iod_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SatellitesListRelatedData_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SatellitesListRelatedData, satId), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_satId_constr_2, memb_satId_constraint_1 }, - 0, 0, /* No default value */ - "satId" - }, - { ATF_NOFLAGS, 0, offsetof(struct SatellitesListRelatedData, iod), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_iod_constr_3, memb_iod_constraint_1 }, - 0, 0, /* No default value */ - "iod" - }, -}; -static const ber_tlv_tag_t asn_DEF_SatellitesListRelatedData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SatellitesListRelatedData_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* satId */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iod */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SatellitesListRelatedData_specs_1 = { - sizeof(struct SatellitesListRelatedData), - offsetof(struct SatellitesListRelatedData, _asn_ctx), - asn_MAP_SatellitesListRelatedData_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SatellitesListRelatedData = { - "SatellitesListRelatedData", - "SatellitesListRelatedData", - &asn_OP_SEQUENCE, - asn_DEF_SatellitesListRelatedData_tags_1, - sizeof(asn_DEF_SatellitesListRelatedData_tags_1) - /sizeof(asn_DEF_SatellitesListRelatedData_tags_1[0]), /* 1 */ - asn_DEF_SatellitesListRelatedData_tags_1, /* Same as above */ - sizeof(asn_DEF_SatellitesListRelatedData_tags_1) - /sizeof(asn_DEF_SatellitesListRelatedData_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SatellitesListRelatedData_1, - 2, /* Elements count */ - &asn_SPC_SatellitesListRelatedData_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SatellitesListRelatedDataList.c b/asn.1/generated/SatellitesListRelatedDataList.c deleted file mode 100644 index ab448d31..00000000 --- a/asn.1/generated/SatellitesListRelatedDataList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SatellitesListRelatedDataList.h" - -asn_per_constraints_t asn_PER_type_SatellitesListRelatedDataList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 0, 32 } /* (SIZE(0..32)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SatellitesListRelatedDataList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_SatellitesListRelatedData, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_SatellitesListRelatedDataList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_SatellitesListRelatedDataList_specs_1 = { - sizeof(struct SatellitesListRelatedDataList), - offsetof(struct SatellitesListRelatedDataList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_SatellitesListRelatedDataList = { - "SatellitesListRelatedDataList", - "SatellitesListRelatedDataList", - &asn_OP_SEQUENCE_OF, - asn_DEF_SatellitesListRelatedDataList_tags_1, - sizeof(asn_DEF_SatellitesListRelatedDataList_tags_1) - /sizeof(asn_DEF_SatellitesListRelatedDataList_tags_1[0]), /* 1 */ - asn_DEF_SatellitesListRelatedDataList_tags_1, /* Same as above */ - sizeof(asn_DEF_SatellitesListRelatedDataList_tags_1) - /sizeof(asn_DEF_SatellitesListRelatedDataList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_SatellitesListRelatedDataList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_SatellitesListRelatedDataList_1, - 1, /* Single element */ - &asn_SPC_SatellitesListRelatedDataList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SegmentationInfo-r14.c b/asn.1/generated/SegmentationInfo-r14.c deleted file mode 100644 index ef4d4f82..00000000 --- a/asn.1/generated/SegmentationInfo-r14.c +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SegmentationInfo-r14.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_SegmentationInfo_r14_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_SegmentationInfo_r14_value2enum_1[] = { - { 0, 14, "noMoreMessages" }, - { 1, 20, "moreMessagesOnTheWay" } -}; -static const unsigned int asn_MAP_SegmentationInfo_r14_enum2value_1[] = { - 1, /* moreMessagesOnTheWay(1) */ - 0 /* noMoreMessages(0) */ -}; -const asn_INTEGER_specifics_t asn_SPC_SegmentationInfo_r14_specs_1 = { - asn_MAP_SegmentationInfo_r14_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_SegmentationInfo_r14_enum2value_1, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_SegmentationInfo_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_SegmentationInfo_r14 = { - "SegmentationInfo-r14", - "SegmentationInfo-r14", - &asn_OP_NativeEnumerated, - asn_DEF_SegmentationInfo_r14_tags_1, - sizeof(asn_DEF_SegmentationInfo_r14_tags_1) - /sizeof(asn_DEF_SegmentationInfo_r14_tags_1[0]), /* 1 */ - asn_DEF_SegmentationInfo_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_SegmentationInfo_r14_tags_1) - /sizeof(asn_DEF_SegmentationInfo_r14_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_SegmentationInfo_r14_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_SegmentationInfo_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Sensor-AssistanceDataList-r14.c b/asn.1/generated/Sensor-AssistanceDataList-r14.c deleted file mode 100644 index 38b133e4..00000000 --- a/asn.1/generated/Sensor-AssistanceDataList-r14.c +++ /dev/null @@ -1,407 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Sensor-AssistanceDataList-r14.h" - -static int -memb_referencePressureRate_v1520_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gN_pressure_v1520_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gE_pressure_v1520_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refPressure_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -20000 && value <= 10000)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refTemperature_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -64 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_referencePressureRate_v1520_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gN_pressure_v1520_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gE_pressure_v1520_constr_14 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refPressure_r14_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, -20000, 10000 } /* (-20000..10000) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refTemperature_r14_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_period_v1520_7[] = { - { ATF_NOFLAGS, 0, offsetof(struct Sensor_AssistanceDataList_r14__ext1__period_v1520, pressureValidityPeriod_v1520), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PressureValidityPeriod_v1520, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "pressureValidityPeriod-v1520" - }, - { ATF_POINTER, 1, offsetof(struct Sensor_AssistanceDataList_r14__ext1__period_v1520, referencePressureRate_v1520), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_referencePressureRate_v1520_constr_9, memb_referencePressureRate_v1520_constraint_7 }, - 0, 0, /* No default value */ - "referencePressureRate-v1520" - }, -}; -static const int asn_MAP_period_v1520_oms_7[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_period_v1520_tags_7[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_period_v1520_tag2el_7[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pressureValidityPeriod-v1520 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* referencePressureRate-v1520 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_period_v1520_specs_7 = { - sizeof(struct Sensor_AssistanceDataList_r14__ext1__period_v1520), - offsetof(struct Sensor_AssistanceDataList_r14__ext1__period_v1520, _asn_ctx), - asn_MAP_period_v1520_tag2el_7, - 2, /* Count of tags in the map */ - asn_MAP_period_v1520_oms_7, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_period_v1520_7 = { - "period-v1520", - "period-v1520", - &asn_OP_SEQUENCE, - asn_DEF_period_v1520_tags_7, - sizeof(asn_DEF_period_v1520_tags_7) - /sizeof(asn_DEF_period_v1520_tags_7[0]) - 1, /* 1 */ - asn_DEF_period_v1520_tags_7, /* Same as above */ - sizeof(asn_DEF_period_v1520_tags_7) - /sizeof(asn_DEF_period_v1520_tags_7[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_period_v1520_7, - 2, /* Elements count */ - &asn_SPC_period_v1520_specs_7 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_area_v1520_11[] = { - { ATF_NOFLAGS, 0, offsetof(struct Sensor_AssistanceDataList_r14__ext1__area_v1520, pressureValidityArea_v1520), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PressureValidityArea_v1520, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "pressureValidityArea-v1520" - }, - { ATF_POINTER, 2, offsetof(struct Sensor_AssistanceDataList_r14__ext1__area_v1520, gN_pressure_v1520), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gN_pressure_v1520_constr_13, memb_gN_pressure_v1520_constraint_11 }, - 0, 0, /* No default value */ - "gN-pressure-v1520" - }, - { ATF_POINTER, 1, offsetof(struct Sensor_AssistanceDataList_r14__ext1__area_v1520, gE_pressure_v1520), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gE_pressure_v1520_constr_14, memb_gE_pressure_v1520_constraint_11 }, - 0, 0, /* No default value */ - "gE-pressure-v1520" - }, -}; -static const int asn_MAP_area_v1520_oms_11[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_area_v1520_tags_11[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_area_v1520_tag2el_11[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pressureValidityArea-v1520 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gN-pressure-v1520 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gE-pressure-v1520 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_area_v1520_specs_11 = { - sizeof(struct Sensor_AssistanceDataList_r14__ext1__area_v1520), - offsetof(struct Sensor_AssistanceDataList_r14__ext1__area_v1520, _asn_ctx), - asn_MAP_area_v1520_tag2el_11, - 3, /* Count of tags in the map */ - asn_MAP_area_v1520_oms_11, /* Optional members */ - 2, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_area_v1520_11 = { - "area-v1520", - "area-v1520", - &asn_OP_SEQUENCE, - asn_DEF_area_v1520_tags_11, - sizeof(asn_DEF_area_v1520_tags_11) - /sizeof(asn_DEF_area_v1520_tags_11[0]) - 1, /* 1 */ - asn_DEF_area_v1520_tags_11, /* Same as above */ - sizeof(asn_DEF_area_v1520_tags_11) - /sizeof(asn_DEF_area_v1520_tags_11[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_area_v1520_11, - 3, /* Elements count */ - &asn_SPC_area_v1520_specs_11 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_6[] = { - { ATF_POINTER, 2, offsetof(struct Sensor_AssistanceDataList_r14__ext1, period_v1520), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_period_v1520_7, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "period-v1520" - }, - { ATF_POINTER, 1, offsetof(struct Sensor_AssistanceDataList_r14__ext1, area_v1520), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_area_v1520_11, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "area-v1520" - }, -}; -static const int asn_MAP_ext1_oms_6[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* period-v1520 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* area-v1520 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = { - sizeof(struct Sensor_AssistanceDataList_r14__ext1), - offsetof(struct Sensor_AssistanceDataList_r14__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_6, - 2, /* Count of tags in the map */ - asn_MAP_ext1_oms_6, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_6 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_6, - sizeof(asn_DEF_ext1_tags_6) - /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_6, /* Same as above */ - sizeof(asn_DEF_ext1_tags_6) - /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_6, - 2, /* Elements count */ - &asn_SPC_ext1_specs_6 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_Sensor_AssistanceDataList_r14_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Sensor_AssistanceDataList_r14, refPressure_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refPressure_r14_constr_2, memb_refPressure_r14_constraint_1 }, - 0, 0, /* No default value */ - "refPressure-r14" - }, - { ATF_POINTER, 3, offsetof(struct Sensor_AssistanceDataList_r14, refPosition_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "refPosition-r14" - }, - { ATF_POINTER, 2, offsetof(struct Sensor_AssistanceDataList_r14, refTemperature_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refTemperature_r14_constr_4, memb_refTemperature_r14_constraint_1 }, - 0, 0, /* No default value */ - "refTemperature-r14" - }, - { ATF_POINTER, 1, offsetof(struct Sensor_AssistanceDataList_r14, ext1), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - 0, - &asn_DEF_ext1_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_Sensor_AssistanceDataList_r14_oms_1[] = { 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_Sensor_AssistanceDataList_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Sensor_AssistanceDataList_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refPressure-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refPosition-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* refTemperature-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Sensor_AssistanceDataList_r14_specs_1 = { - sizeof(struct Sensor_AssistanceDataList_r14), - offsetof(struct Sensor_AssistanceDataList_r14, _asn_ctx), - asn_MAP_Sensor_AssistanceDataList_r14_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_Sensor_AssistanceDataList_r14_oms_1, /* Optional members */ - 2, 1, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Sensor_AssistanceDataList_r14 = { - "Sensor-AssistanceDataList-r14", - "Sensor-AssistanceDataList-r14", - &asn_OP_SEQUENCE, - asn_DEF_Sensor_AssistanceDataList_r14_tags_1, - sizeof(asn_DEF_Sensor_AssistanceDataList_r14_tags_1) - /sizeof(asn_DEF_Sensor_AssistanceDataList_r14_tags_1[0]), /* 1 */ - asn_DEF_Sensor_AssistanceDataList_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_Sensor_AssistanceDataList_r14_tags_1) - /sizeof(asn_DEF_Sensor_AssistanceDataList_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Sensor_AssistanceDataList_r14_1, - 4, /* Elements count */ - &asn_SPC_Sensor_AssistanceDataList_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Sensor-AssistanceDataSupportList-r14.c b/asn.1/generated/Sensor-AssistanceDataSupportList-r14.c deleted file mode 100644 index eca3929c..00000000 --- a/asn.1/generated/Sensor-AssistanceDataSupportList-r14.c +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Sensor-AssistanceDataSupportList-r14.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_validityPeriodSupported_v1520_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_validityAreaSupported_v1520_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_validityPeriodSupported_v1520_value2enum_4[] = { - { 0, 4, "true" } -}; -static const unsigned int asn_MAP_validityPeriodSupported_v1520_enum2value_4[] = { - 0 /* true(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_validityPeriodSupported_v1520_specs_4 = { - asn_MAP_validityPeriodSupported_v1520_value2enum_4, /* "tag" => N; sorted by tag */ - asn_MAP_validityPeriodSupported_v1520_enum2value_4, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_validityPeriodSupported_v1520_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_validityPeriodSupported_v1520_4 = { - "validityPeriodSupported-v1520", - "validityPeriodSupported-v1520", - &asn_OP_NativeEnumerated, - asn_DEF_validityPeriodSupported_v1520_tags_4, - sizeof(asn_DEF_validityPeriodSupported_v1520_tags_4) - /sizeof(asn_DEF_validityPeriodSupported_v1520_tags_4[0]) - 1, /* 1 */ - asn_DEF_validityPeriodSupported_v1520_tags_4, /* Same as above */ - sizeof(asn_DEF_validityPeriodSupported_v1520_tags_4) - /sizeof(asn_DEF_validityPeriodSupported_v1520_tags_4[0]), /* 2 */ - { 0, &asn_PER_type_validityPeriodSupported_v1520_constr_4, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_validityPeriodSupported_v1520_specs_4 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_validityAreaSupported_v1520_value2enum_6[] = { - { 0, 4, "true" } -}; -static const unsigned int asn_MAP_validityAreaSupported_v1520_enum2value_6[] = { - 0 /* true(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_validityAreaSupported_v1520_specs_6 = { - asn_MAP_validityAreaSupported_v1520_value2enum_6, /* "tag" => N; sorted by tag */ - asn_MAP_validityAreaSupported_v1520_enum2value_6, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_validityAreaSupported_v1520_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_validityAreaSupported_v1520_6 = { - "validityAreaSupported-v1520", - "validityAreaSupported-v1520", - &asn_OP_NativeEnumerated, - asn_DEF_validityAreaSupported_v1520_tags_6, - sizeof(asn_DEF_validityAreaSupported_v1520_tags_6) - /sizeof(asn_DEF_validityAreaSupported_v1520_tags_6[0]) - 1, /* 1 */ - asn_DEF_validityAreaSupported_v1520_tags_6, /* Same as above */ - sizeof(asn_DEF_validityAreaSupported_v1520_tags_6) - /sizeof(asn_DEF_validityAreaSupported_v1520_tags_6[0]), /* 2 */ - { 0, &asn_PER_type_validityAreaSupported_v1520_constr_6, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_validityAreaSupported_v1520_specs_6 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_3[] = { - { ATF_POINTER, 2, offsetof(struct Sensor_AssistanceDataSupportList_r14__ext1, validityPeriodSupported_v1520), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_validityPeriodSupported_v1520_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "validityPeriodSupported-v1520" - }, - { ATF_POINTER, 1, offsetof(struct Sensor_AssistanceDataSupportList_r14__ext1, validityAreaSupported_v1520), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_validityAreaSupported_v1520_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "validityAreaSupported-v1520" - }, -}; -static const int asn_MAP_ext1_oms_3[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* validityPeriodSupported-v1520 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* validityAreaSupported-v1520 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_3 = { - sizeof(struct Sensor_AssistanceDataSupportList_r14__ext1), - offsetof(struct Sensor_AssistanceDataSupportList_r14__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_3, - 2, /* Count of tags in the map */ - asn_MAP_ext1_oms_3, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_3 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_3, - sizeof(asn_DEF_ext1_tags_3) - /sizeof(asn_DEF_ext1_tags_3[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_3, /* Same as above */ - sizeof(asn_DEF_ext1_tags_3) - /sizeof(asn_DEF_ext1_tags_3[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_3, - 2, /* Elements count */ - &asn_SPC_ext1_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_Sensor_AssistanceDataSupportList_r14_1[] = { - { ATF_POINTER, 1, offsetof(struct Sensor_AssistanceDataSupportList_r14, ext1), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_ext1_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_Sensor_AssistanceDataSupportList_r14_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_Sensor_AssistanceDataSupportList_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Sensor_AssistanceDataSupportList_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Sensor_AssistanceDataSupportList_r14_specs_1 = { - sizeof(struct Sensor_AssistanceDataSupportList_r14), - offsetof(struct Sensor_AssistanceDataSupportList_r14, _asn_ctx), - asn_MAP_Sensor_AssistanceDataSupportList_r14_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_Sensor_AssistanceDataSupportList_r14_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Sensor_AssistanceDataSupportList_r14 = { - "Sensor-AssistanceDataSupportList-r14", - "Sensor-AssistanceDataSupportList-r14", - &asn_OP_SEQUENCE, - asn_DEF_Sensor_AssistanceDataSupportList_r14_tags_1, - sizeof(asn_DEF_Sensor_AssistanceDataSupportList_r14_tags_1) - /sizeof(asn_DEF_Sensor_AssistanceDataSupportList_r14_tags_1[0]), /* 1 */ - asn_DEF_Sensor_AssistanceDataSupportList_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_Sensor_AssistanceDataSupportList_r14_tags_1) - /sizeof(asn_DEF_Sensor_AssistanceDataSupportList_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Sensor_AssistanceDataSupportList_r14_1, - 1, /* Elements count */ - &asn_SPC_Sensor_AssistanceDataSupportList_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Sensor-Error-r13.c b/asn.1/generated/Sensor-Error-r13.c deleted file mode 100644 index 1c4134c9..00000000 --- a/asn.1/generated/Sensor-Error-r13.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Sensor-Error-r13.h" - -asn_per_constraints_t asn_PER_type_Sensor_Error_r13_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_Sensor_Error_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Sensor_Error_r13, choice.locationServerErrorCauses_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Sensor_LocationServerErrorCauses_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationServerErrorCauses-r13" - }, - { ATF_NOFLAGS, 0, offsetof(struct Sensor_Error_r13, choice.targetDeviceErrorCauses_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Sensor_TargetDeviceErrorCauses_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "targetDeviceErrorCauses-r13" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_Sensor_Error_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses-r13 */ -}; -asn_CHOICE_specifics_t asn_SPC_Sensor_Error_r13_specs_1 = { - sizeof(struct Sensor_Error_r13), - offsetof(struct Sensor_Error_r13, _asn_ctx), - offsetof(struct Sensor_Error_r13, present), - sizeof(((struct Sensor_Error_r13 *)0)->present), - asn_MAP_Sensor_Error_r13_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_Sensor_Error_r13 = { - "Sensor-Error-r13", - "Sensor-Error-r13", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_Sensor_Error_r13_constr_1, CHOICE_constraint }, - asn_MBR_Sensor_Error_r13_1, - 2, /* Elements count */ - &asn_SPC_Sensor_Error_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Sensor-LocationServerErrorCauses-r13.c b/asn.1/generated/Sensor-LocationServerErrorCauses-r13.c deleted file mode 100644 index 1779c922..00000000 --- a/asn.1/generated/Sensor-LocationServerErrorCauses-r13.c +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Sensor-LocationServerErrorCauses-r13.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_r13_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_r13_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 40, "assistanceDataNotSupportedByServer-v1420" }, - { 2, 61, "assistanceDataSupportedButCurrentlyNotAvailableByServer-v1420" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_r13_enum2value_2[] = { - 1, /* assistanceDataNotSupportedByServer-v1420(1) */ - 2, /* assistanceDataSupportedButCurrentlyNotAvailableByServer-v1420(2) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_r13_specs_2 = { - asn_MAP_cause_r13_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_r13_enum2value_2, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 2, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_r13_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_r13_2 = { - "cause-r13", - "cause-r13", - &asn_OP_NativeEnumerated, - asn_DEF_cause_r13_tags_2, - sizeof(asn_DEF_cause_r13_tags_2) - /sizeof(asn_DEF_cause_r13_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_r13_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_r13_tags_2) - /sizeof(asn_DEF_cause_r13_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_r13_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_r13_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_Sensor_LocationServerErrorCauses_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Sensor_LocationServerErrorCauses_r13, cause_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_r13_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause-r13" - }, -}; -static const ber_tlv_tag_t asn_DEF_Sensor_LocationServerErrorCauses_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Sensor_LocationServerErrorCauses_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause-r13 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Sensor_LocationServerErrorCauses_r13_specs_1 = { - sizeof(struct Sensor_LocationServerErrorCauses_r13), - offsetof(struct Sensor_LocationServerErrorCauses_r13, _asn_ctx), - asn_MAP_Sensor_LocationServerErrorCauses_r13_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Sensor_LocationServerErrorCauses_r13 = { - "Sensor-LocationServerErrorCauses-r13", - "Sensor-LocationServerErrorCauses-r13", - &asn_OP_SEQUENCE, - asn_DEF_Sensor_LocationServerErrorCauses_r13_tags_1, - sizeof(asn_DEF_Sensor_LocationServerErrorCauses_r13_tags_1) - /sizeof(asn_DEF_Sensor_LocationServerErrorCauses_r13_tags_1[0]), /* 1 */ - asn_DEF_Sensor_LocationServerErrorCauses_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_Sensor_LocationServerErrorCauses_r13_tags_1) - /sizeof(asn_DEF_Sensor_LocationServerErrorCauses_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Sensor_LocationServerErrorCauses_r13_1, - 1, /* Elements count */ - &asn_SPC_Sensor_LocationServerErrorCauses_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Sensor-MeasurementInformation-r13.c b/asn.1/generated/Sensor-MeasurementInformation-r13.c deleted file mode 100644 index 4b5a64a4..00000000 --- a/asn.1/generated/Sensor-MeasurementInformation-r13.c +++ /dev/null @@ -1,345 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Sensor-MeasurementInformation-r13.h" - -static int -memb_range_r14_constraint_6(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1000)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_confidence_r14_constraint_6(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_adjustment_r16_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -5000 && value <= 5000)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_uncompensatedBarometricPressure_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 30000 && value <= 115000)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_range_r14_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1000 } /* (0..1000) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_confidence_r14_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 1, 100 } /* (1..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_adjustment_r16_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, -5000, 5000 } /* (-5000..5000) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_uncompensatedBarometricPressure_r13_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 17, -1, 30000, 115000 } /* (30000..115000) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_uncertainty_r14_6[] = { - { ATF_NOFLAGS, 0, offsetof(struct Sensor_MeasurementInformation_r13__ext1__uncertainty_r14, range_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_range_r14_constr_7, memb_range_r14_constraint_6 }, - 0, 0, /* No default value */ - "range-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct Sensor_MeasurementInformation_r13__ext1__uncertainty_r14, confidence_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_confidence_r14_constr_8, memb_confidence_r14_constraint_6 }, - 0, 0, /* No default value */ - "confidence-r14" - }, -}; -static const ber_tlv_tag_t asn_DEF_uncertainty_r14_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_uncertainty_r14_tag2el_6[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* range-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_uncertainty_r14_specs_6 = { - sizeof(struct Sensor_MeasurementInformation_r13__ext1__uncertainty_r14), - offsetof(struct Sensor_MeasurementInformation_r13__ext1__uncertainty_r14, _asn_ctx), - asn_MAP_uncertainty_r14_tag2el_6, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_uncertainty_r14_6 = { - "uncertainty-r14", - "uncertainty-r14", - &asn_OP_SEQUENCE, - asn_DEF_uncertainty_r14_tags_6, - sizeof(asn_DEF_uncertainty_r14_tags_6) - /sizeof(asn_DEF_uncertainty_r14_tags_6[0]) - 1, /* 1 */ - asn_DEF_uncertainty_r14_tags_6, /* Same as above */ - sizeof(asn_DEF_uncertainty_r14_tags_6) - /sizeof(asn_DEF_uncertainty_r14_tags_6[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_uncertainty_r14_6, - 2, /* Elements count */ - &asn_SPC_uncertainty_r14_specs_6 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_5[] = { - { ATF_POINTER, 1, offsetof(struct Sensor_MeasurementInformation_r13__ext1, uncertainty_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_uncertainty_r14_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "uncertainty-r14" - }, -}; -static const int asn_MAP_ext1_oms_5[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* uncertainty-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { - sizeof(struct Sensor_MeasurementInformation_r13__ext1), - offsetof(struct Sensor_MeasurementInformation_r13__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_5, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_5, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_5 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_5, - sizeof(asn_DEF_ext1_tags_5) - /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_5, /* Same as above */ - sizeof(asn_DEF_ext1_tags_5) - /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_5, - 1, /* Elements count */ - &asn_SPC_ext1_specs_5 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_9[] = { - { ATF_POINTER, 1, offsetof(struct Sensor_MeasurementInformation_r13__ext2, adjustment_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_adjustment_r16_constr_10, memb_adjustment_r16_constraint_9 }, - 0, 0, /* No default value */ - "adjustment-r16" - }, -}; -static const int asn_MAP_ext2_oms_9[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_9[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_9[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* adjustment-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_9 = { - sizeof(struct Sensor_MeasurementInformation_r13__ext2), - offsetof(struct Sensor_MeasurementInformation_r13__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_9, - 1, /* Count of tags in the map */ - asn_MAP_ext2_oms_9, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_9 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_9, - sizeof(asn_DEF_ext2_tags_9) - /sizeof(asn_DEF_ext2_tags_9[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_9, /* Same as above */ - sizeof(asn_DEF_ext2_tags_9) - /sizeof(asn_DEF_ext2_tags_9[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_9, - 1, /* Elements count */ - &asn_SPC_ext2_specs_9 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_Sensor_MeasurementInformation_r13_1[] = { - { ATF_POINTER, 4, offsetof(struct Sensor_MeasurementInformation_r13, measurementReferenceTime_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTCTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "measurementReferenceTime-r13" - }, - { ATF_POINTER, 3, offsetof(struct Sensor_MeasurementInformation_r13, uncompensatedBarometricPressure_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_uncompensatedBarometricPressure_r13_constr_3, memb_uncompensatedBarometricPressure_r13_constraint_1 }, - 0, 0, /* No default value */ - "uncompensatedBarometricPressure-r13" - }, - { ATF_POINTER, 2, offsetof(struct Sensor_MeasurementInformation_r13, ext1), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_ext1_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 1, offsetof(struct Sensor_MeasurementInformation_r13, ext2), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - 0, - &asn_DEF_ext2_9, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, -}; -static const int asn_MAP_Sensor_MeasurementInformation_r13_oms_1[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_Sensor_MeasurementInformation_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Sensor_MeasurementInformation_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* measurementReferenceTime-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uncompensatedBarometricPressure-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext2 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Sensor_MeasurementInformation_r13_specs_1 = { - sizeof(struct Sensor_MeasurementInformation_r13), - offsetof(struct Sensor_MeasurementInformation_r13, _asn_ctx), - asn_MAP_Sensor_MeasurementInformation_r13_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_Sensor_MeasurementInformation_r13_oms_1, /* Optional members */ - 2, 2, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Sensor_MeasurementInformation_r13 = { - "Sensor-MeasurementInformation-r13", - "Sensor-MeasurementInformation-r13", - &asn_OP_SEQUENCE, - asn_DEF_Sensor_MeasurementInformation_r13_tags_1, - sizeof(asn_DEF_Sensor_MeasurementInformation_r13_tags_1) - /sizeof(asn_DEF_Sensor_MeasurementInformation_r13_tags_1[0]), /* 1 */ - asn_DEF_Sensor_MeasurementInformation_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_Sensor_MeasurementInformation_r13_tags_1) - /sizeof(asn_DEF_Sensor_MeasurementInformation_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Sensor_MeasurementInformation_r13_1, - 4, /* Elements count */ - &asn_SPC_Sensor_MeasurementInformation_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Sensor-MotionInformation-r15.c b/asn.1/generated/Sensor-MotionInformation-r15.c deleted file mode 100644 index 9bb732d2..00000000 --- a/asn.1/generated/Sensor-MotionInformation-r15.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Sensor-MotionInformation-r15.h" - -asn_TYPE_member_t asn_MBR_Sensor_MotionInformation_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Sensor_MotionInformation_r15, refTime_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_DisplacementTimeStamp_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "refTime-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct Sensor_MotionInformation_r15, displacementInfoList_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DisplacementInfoList_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "displacementInfoList-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_Sensor_MotionInformation_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Sensor_MotionInformation_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refTime-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* displacementInfoList-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Sensor_MotionInformation_r15_specs_1 = { - sizeof(struct Sensor_MotionInformation_r15), - offsetof(struct Sensor_MotionInformation_r15, _asn_ctx), - asn_MAP_Sensor_MotionInformation_r15_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Sensor_MotionInformation_r15 = { - "Sensor-MotionInformation-r15", - "Sensor-MotionInformation-r15", - &asn_OP_SEQUENCE, - asn_DEF_Sensor_MotionInformation_r15_tags_1, - sizeof(asn_DEF_Sensor_MotionInformation_r15_tags_1) - /sizeof(asn_DEF_Sensor_MotionInformation_r15_tags_1[0]), /* 1 */ - asn_DEF_Sensor_MotionInformation_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_Sensor_MotionInformation_r15_tags_1) - /sizeof(asn_DEF_Sensor_MotionInformation_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Sensor_MotionInformation_r15_1, - 2, /* Elements count */ - &asn_SPC_Sensor_MotionInformation_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Sensor-ProvideAssistanceData-r14.c b/asn.1/generated/Sensor-ProvideAssistanceData-r14.c deleted file mode 100644 index d12290f3..00000000 --- a/asn.1/generated/Sensor-ProvideAssistanceData-r14.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Sensor-ProvideAssistanceData-r14.h" - -asn_TYPE_member_t asn_MBR_Sensor_ProvideAssistanceData_r14_1[] = { - { ATF_POINTER, 2, offsetof(struct Sensor_ProvideAssistanceData_r14, sensor_AssistanceDataList_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Sensor_AssistanceDataList_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sensor-AssistanceDataList-r14" - }, - { ATF_POINTER, 1, offsetof(struct Sensor_ProvideAssistanceData_r14, sensor_Error_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_Sensor_Error_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sensor-Error-r14" - }, -}; -static const int asn_MAP_Sensor_ProvideAssistanceData_r14_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_Sensor_ProvideAssistanceData_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Sensor_ProvideAssistanceData_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-AssistanceDataList-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* sensor-Error-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Sensor_ProvideAssistanceData_r14_specs_1 = { - sizeof(struct Sensor_ProvideAssistanceData_r14), - offsetof(struct Sensor_ProvideAssistanceData_r14, _asn_ctx), - asn_MAP_Sensor_ProvideAssistanceData_r14_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_Sensor_ProvideAssistanceData_r14_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Sensor_ProvideAssistanceData_r14 = { - "Sensor-ProvideAssistanceData-r14", - "Sensor-ProvideAssistanceData-r14", - &asn_OP_SEQUENCE, - asn_DEF_Sensor_ProvideAssistanceData_r14_tags_1, - sizeof(asn_DEF_Sensor_ProvideAssistanceData_r14_tags_1) - /sizeof(asn_DEF_Sensor_ProvideAssistanceData_r14_tags_1[0]), /* 1 */ - asn_DEF_Sensor_ProvideAssistanceData_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_Sensor_ProvideAssistanceData_r14_tags_1) - /sizeof(asn_DEF_Sensor_ProvideAssistanceData_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Sensor_ProvideAssistanceData_r14_1, - 2, /* Elements count */ - &asn_SPC_Sensor_ProvideAssistanceData_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Sensor-ProvideCapabilities-r13.c b/asn.1/generated/Sensor-ProvideCapabilities-r13.c deleted file mode 100644 index cda30da7..00000000 --- a/asn.1/generated/Sensor-ProvideCapabilities-r13.c +++ /dev/null @@ -1,405 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Sensor-ProvideCapabilities-r13.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_sensor_Modes_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_idleStateForMeasurements_r14_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_sensor_MotionInformationSup_r15_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_adjustmentSupported_r16_constr_16 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sensor_Modes_r13_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_idleStateForMeasurements_r14_value2enum_10[] = { - { 0, 8, "required" } -}; -static const unsigned int asn_MAP_idleStateForMeasurements_r14_enum2value_10[] = { - 0 /* required(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_idleStateForMeasurements_r14_specs_10 = { - asn_MAP_idleStateForMeasurements_r14_value2enum_10, /* "tag" => N; sorted by tag */ - asn_MAP_idleStateForMeasurements_r14_enum2value_10, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_idleStateForMeasurements_r14_tags_10[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_idleStateForMeasurements_r14_10 = { - "idleStateForMeasurements-r14", - "idleStateForMeasurements-r14", - &asn_OP_NativeEnumerated, - asn_DEF_idleStateForMeasurements_r14_tags_10, - sizeof(asn_DEF_idleStateForMeasurements_r14_tags_10) - /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_10[0]) - 1, /* 1 */ - asn_DEF_idleStateForMeasurements_r14_tags_10, /* Same as above */ - sizeof(asn_DEF_idleStateForMeasurements_r14_tags_10) - /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_10[0]), /* 2 */ - { 0, &asn_PER_type_idleStateForMeasurements_r14_constr_10, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_idleStateForMeasurements_r14_specs_10 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_7[] = { - { ATF_POINTER, 3, offsetof(struct Sensor_ProvideCapabilities_r13__ext1, sensor_AssistanceDataSupportList_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Sensor_AssistanceDataSupportList_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sensor-AssistanceDataSupportList-r14" - }, - { ATF_POINTER, 2, offsetof(struct Sensor_ProvideCapabilities_r13__ext1, periodicalReportingSupported_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PositioningModes, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "periodicalReportingSupported-r14" - }, - { ATF_POINTER, 1, offsetof(struct Sensor_ProvideCapabilities_r13__ext1, idleStateForMeasurements_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_idleStateForMeasurements_r14_10, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "idleStateForMeasurements-r14" - }, -}; -static const int asn_MAP_ext1_oms_7[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-AssistanceDataSupportList-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* periodicalReportingSupported-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* idleStateForMeasurements-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { - sizeof(struct Sensor_ProvideCapabilities_r13__ext1), - offsetof(struct Sensor_ProvideCapabilities_r13__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_7, - 3, /* Count of tags in the map */ - asn_MAP_ext1_oms_7, /* Optional members */ - 3, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_7 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_7, - sizeof(asn_DEF_ext1_tags_7) - /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_7, /* Same as above */ - sizeof(asn_DEF_ext1_tags_7) - /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_7, - 3, /* Elements count */ - &asn_SPC_ext1_specs_7 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_sensor_MotionInformationSup_r15_value2enum_13[] = { - { 0, 4, "true" } -}; -static const unsigned int asn_MAP_sensor_MotionInformationSup_r15_enum2value_13[] = { - 0 /* true(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_sensor_MotionInformationSup_r15_specs_13 = { - asn_MAP_sensor_MotionInformationSup_r15_value2enum_13, /* "tag" => N; sorted by tag */ - asn_MAP_sensor_MotionInformationSup_r15_enum2value_13, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_sensor_MotionInformationSup_r15_tags_13[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_sensor_MotionInformationSup_r15_13 = { - "sensor-MotionInformationSup-r15", - "sensor-MotionInformationSup-r15", - &asn_OP_NativeEnumerated, - asn_DEF_sensor_MotionInformationSup_r15_tags_13, - sizeof(asn_DEF_sensor_MotionInformationSup_r15_tags_13) - /sizeof(asn_DEF_sensor_MotionInformationSup_r15_tags_13[0]) - 1, /* 1 */ - asn_DEF_sensor_MotionInformationSup_r15_tags_13, /* Same as above */ - sizeof(asn_DEF_sensor_MotionInformationSup_r15_tags_13) - /sizeof(asn_DEF_sensor_MotionInformationSup_r15_tags_13[0]), /* 2 */ - { 0, &asn_PER_type_sensor_MotionInformationSup_r15_constr_13, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_sensor_MotionInformationSup_r15_specs_13 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_12[] = { - { ATF_POINTER, 1, offsetof(struct Sensor_ProvideCapabilities_r13__ext2, sensor_MotionInformationSup_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_sensor_MotionInformationSup_r15_13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sensor-MotionInformationSup-r15" - }, -}; -static const int asn_MAP_ext2_oms_12[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_12[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_12[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* sensor-MotionInformationSup-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_12 = { - sizeof(struct Sensor_ProvideCapabilities_r13__ext2), - offsetof(struct Sensor_ProvideCapabilities_r13__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_12, - 1, /* Count of tags in the map */ - asn_MAP_ext2_oms_12, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_12 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_12, - sizeof(asn_DEF_ext2_tags_12) - /sizeof(asn_DEF_ext2_tags_12[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_12, /* Same as above */ - sizeof(asn_DEF_ext2_tags_12) - /sizeof(asn_DEF_ext2_tags_12[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_12, - 1, /* Elements count */ - &asn_SPC_ext2_specs_12 /* Additional specs */ -}; - -static const asn_INTEGER_enum_map_t asn_MAP_adjustmentSupported_r16_value2enum_16[] = { - { 0, 4, "true" } -}; -static const unsigned int asn_MAP_adjustmentSupported_r16_enum2value_16[] = { - 0 /* true(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_adjustmentSupported_r16_specs_16 = { - asn_MAP_adjustmentSupported_r16_value2enum_16, /* "tag" => N; sorted by tag */ - asn_MAP_adjustmentSupported_r16_enum2value_16, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_adjustmentSupported_r16_tags_16[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_adjustmentSupported_r16_16 = { - "adjustmentSupported-r16", - "adjustmentSupported-r16", - &asn_OP_NativeEnumerated, - asn_DEF_adjustmentSupported_r16_tags_16, - sizeof(asn_DEF_adjustmentSupported_r16_tags_16) - /sizeof(asn_DEF_adjustmentSupported_r16_tags_16[0]) - 1, /* 1 */ - asn_DEF_adjustmentSupported_r16_tags_16, /* Same as above */ - sizeof(asn_DEF_adjustmentSupported_r16_tags_16) - /sizeof(asn_DEF_adjustmentSupported_r16_tags_16[0]), /* 2 */ - { 0, &asn_PER_type_adjustmentSupported_r16_constr_16, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_adjustmentSupported_r16_specs_16 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext3_15[] = { - { ATF_POINTER, 1, offsetof(struct Sensor_ProvideCapabilities_r13__ext3, adjustmentSupported_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_adjustmentSupported_r16_16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "adjustmentSupported-r16" - }, -}; -static const int asn_MAP_ext3_oms_15[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext3_tags_15[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_15[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* adjustmentSupported-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_15 = { - sizeof(struct Sensor_ProvideCapabilities_r13__ext3), - offsetof(struct Sensor_ProvideCapabilities_r13__ext3, _asn_ctx), - asn_MAP_ext3_tag2el_15, - 1, /* Count of tags in the map */ - asn_MAP_ext3_oms_15, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext3_15 = { - "ext3", - "ext3", - &asn_OP_SEQUENCE, - asn_DEF_ext3_tags_15, - sizeof(asn_DEF_ext3_tags_15) - /sizeof(asn_DEF_ext3_tags_15[0]) - 1, /* 1 */ - asn_DEF_ext3_tags_15, /* Same as above */ - sizeof(asn_DEF_ext3_tags_15) - /sizeof(asn_DEF_ext3_tags_15[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext3_15, - 1, /* Elements count */ - &asn_SPC_ext3_specs_15 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_Sensor_ProvideCapabilities_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Sensor_ProvideCapabilities_r13, sensor_Modes_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_sensor_Modes_r13_constr_2, memb_sensor_Modes_r13_constraint_1 }, - 0, 0, /* No default value */ - "sensor-Modes-r13" - }, - { ATF_POINTER, 3, offsetof(struct Sensor_ProvideCapabilities_r13, ext1), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_ext1_7, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 2, offsetof(struct Sensor_ProvideCapabilities_r13, ext2), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_ext2_12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, - { ATF_POINTER, 1, offsetof(struct Sensor_ProvideCapabilities_r13, ext3), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - 0, - &asn_DEF_ext3_15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext3" - }, -}; -static const int asn_MAP_Sensor_ProvideCapabilities_r13_oms_1[] = { 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_Sensor_ProvideCapabilities_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Sensor_ProvideCapabilities_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-Modes-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ext2 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext3 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Sensor_ProvideCapabilities_r13_specs_1 = { - sizeof(struct Sensor_ProvideCapabilities_r13), - offsetof(struct Sensor_ProvideCapabilities_r13, _asn_ctx), - asn_MAP_Sensor_ProvideCapabilities_r13_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_Sensor_ProvideCapabilities_r13_oms_1, /* Optional members */ - 0, 3, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Sensor_ProvideCapabilities_r13 = { - "Sensor-ProvideCapabilities-r13", - "Sensor-ProvideCapabilities-r13", - &asn_OP_SEQUENCE, - asn_DEF_Sensor_ProvideCapabilities_r13_tags_1, - sizeof(asn_DEF_Sensor_ProvideCapabilities_r13_tags_1) - /sizeof(asn_DEF_Sensor_ProvideCapabilities_r13_tags_1[0]), /* 1 */ - asn_DEF_Sensor_ProvideCapabilities_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_Sensor_ProvideCapabilities_r13_tags_1) - /sizeof(asn_DEF_Sensor_ProvideCapabilities_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Sensor_ProvideCapabilities_r13_1, - 4, /* Elements count */ - &asn_SPC_Sensor_ProvideCapabilities_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Sensor-ProvideLocationInformation-r13.c b/asn.1/generated/Sensor-ProvideLocationInformation-r13.c deleted file mode 100644 index 24fdaa63..00000000 --- a/asn.1/generated/Sensor-ProvideLocationInformation-r13.c +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Sensor-ProvideLocationInformation-r13.h" - -static asn_TYPE_member_t asn_MBR_ext1_5[] = { - { ATF_POINTER, 1, offsetof(struct Sensor_ProvideLocationInformation_r13__ext1, sensor_MotionInformation_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Sensor_MotionInformation_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sensor-MotionInformation-r15" - }, -}; -static const int asn_MAP_ext1_oms_5[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* sensor-MotionInformation-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { - sizeof(struct Sensor_ProvideLocationInformation_r13__ext1), - offsetof(struct Sensor_ProvideLocationInformation_r13__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_5, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_5, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_5 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_5, - sizeof(asn_DEF_ext1_tags_5) - /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_5, /* Same as above */ - sizeof(asn_DEF_ext1_tags_5) - /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_5, - 1, /* Elements count */ - &asn_SPC_ext1_specs_5 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_Sensor_ProvideLocationInformation_r13_1[] = { - { ATF_POINTER, 3, offsetof(struct Sensor_ProvideLocationInformation_r13, sensor_MeasurementInformation_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Sensor_MeasurementInformation_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sensor-MeasurementInformation-r13" - }, - { ATF_POINTER, 2, offsetof(struct Sensor_ProvideLocationInformation_r13, sensor_Error_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_Sensor_Error_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sensor-Error-r13" - }, - { ATF_POINTER, 1, offsetof(struct Sensor_ProvideLocationInformation_r13, ext1), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_ext1_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_Sensor_ProvideLocationInformation_r13_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_Sensor_ProvideLocationInformation_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Sensor_ProvideLocationInformation_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-MeasurementInformation-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sensor-Error-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Sensor_ProvideLocationInformation_r13_specs_1 = { - sizeof(struct Sensor_ProvideLocationInformation_r13), - offsetof(struct Sensor_ProvideLocationInformation_r13, _asn_ctx), - asn_MAP_Sensor_ProvideLocationInformation_r13_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_Sensor_ProvideLocationInformation_r13_oms_1, /* Optional members */ - 2, 1, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Sensor_ProvideLocationInformation_r13 = { - "Sensor-ProvideLocationInformation-r13", - "Sensor-ProvideLocationInformation-r13", - &asn_OP_SEQUENCE, - asn_DEF_Sensor_ProvideLocationInformation_r13_tags_1, - sizeof(asn_DEF_Sensor_ProvideLocationInformation_r13_tags_1) - /sizeof(asn_DEF_Sensor_ProvideLocationInformation_r13_tags_1[0]), /* 1 */ - asn_DEF_Sensor_ProvideLocationInformation_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_Sensor_ProvideLocationInformation_r13_tags_1) - /sizeof(asn_DEF_Sensor_ProvideLocationInformation_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Sensor_ProvideLocationInformation_r13_1, - 3, /* Elements count */ - &asn_SPC_Sensor_ProvideLocationInformation_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Sensor-RequestAssistanceData-r14.c b/asn.1/generated/Sensor-RequestAssistanceData-r14.c deleted file mode 100644 index 6e273d8a..00000000 --- a/asn.1/generated/Sensor-RequestAssistanceData-r14.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Sensor-RequestAssistanceData-r14.h" - -static const ber_tlv_tag_t asn_DEF_Sensor_RequestAssistanceData_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_Sensor_RequestAssistanceData_r14_specs_1 = { - sizeof(struct Sensor_RequestAssistanceData_r14), - offsetof(struct Sensor_RequestAssistanceData_r14, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Sensor_RequestAssistanceData_r14 = { - "Sensor-RequestAssistanceData-r14", - "Sensor-RequestAssistanceData-r14", - &asn_OP_SEQUENCE, - asn_DEF_Sensor_RequestAssistanceData_r14_tags_1, - sizeof(asn_DEF_Sensor_RequestAssistanceData_r14_tags_1) - /sizeof(asn_DEF_Sensor_RequestAssistanceData_r14_tags_1[0]), /* 1 */ - asn_DEF_Sensor_RequestAssistanceData_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_Sensor_RequestAssistanceData_r14_tags_1) - /sizeof(asn_DEF_Sensor_RequestAssistanceData_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_Sensor_RequestAssistanceData_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Sensor-RequestCapabilities-r13.c b/asn.1/generated/Sensor-RequestCapabilities-r13.c deleted file mode 100644 index de839004..00000000 --- a/asn.1/generated/Sensor-RequestCapabilities-r13.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Sensor-RequestCapabilities-r13.h" - -static const ber_tlv_tag_t asn_DEF_Sensor_RequestCapabilities_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_Sensor_RequestCapabilities_r13_specs_1 = { - sizeof(struct Sensor_RequestCapabilities_r13), - offsetof(struct Sensor_RequestCapabilities_r13, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Sensor_RequestCapabilities_r13 = { - "Sensor-RequestCapabilities-r13", - "Sensor-RequestCapabilities-r13", - &asn_OP_SEQUENCE, - asn_DEF_Sensor_RequestCapabilities_r13_tags_1, - sizeof(asn_DEF_Sensor_RequestCapabilities_r13_tags_1) - /sizeof(asn_DEF_Sensor_RequestCapabilities_r13_tags_1[0]), /* 1 */ - asn_DEF_Sensor_RequestCapabilities_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_Sensor_RequestCapabilities_r13_tags_1) - /sizeof(asn_DEF_Sensor_RequestCapabilities_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_Sensor_RequestCapabilities_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Sensor-RequestLocationInformation-r13.c b/asn.1/generated/Sensor-RequestLocationInformation-r13.c deleted file mode 100644 index 92925695..00000000 --- a/asn.1/generated/Sensor-RequestLocationInformation-r13.c +++ /dev/null @@ -1,217 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Sensor-RequestLocationInformation-r13.h" - -static asn_TYPE_member_t asn_MBR_ext1_4[] = { - { ATF_POINTER, 1, offsetof(struct Sensor_RequestLocationInformation_r13__ext1, assistanceAvailability_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "assistanceAvailability-r14" - }, -}; -static const int asn_MAP_ext1_oms_4[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* assistanceAvailability-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { - sizeof(struct Sensor_RequestLocationInformation_r13__ext1), - offsetof(struct Sensor_RequestLocationInformation_r13__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_4, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_4, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_4 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_4, - sizeof(asn_DEF_ext1_tags_4) - /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_4, /* Same as above */ - sizeof(asn_DEF_ext1_tags_4) - /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_4, - 1, /* Elements count */ - &asn_SPC_ext1_specs_4 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext2_6[] = { - { ATF_POINTER, 1, offsetof(struct Sensor_RequestLocationInformation_r13__ext2, sensor_MotionInformationReq_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sensor-MotionInformationReq-r15" - }, -}; -static const int asn_MAP_ext2_oms_6[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext2_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_6[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* sensor-MotionInformationReq-r15 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_6 = { - sizeof(struct Sensor_RequestLocationInformation_r13__ext2), - offsetof(struct Sensor_RequestLocationInformation_r13__ext2, _asn_ctx), - asn_MAP_ext2_tag2el_6, - 1, /* Count of tags in the map */ - asn_MAP_ext2_oms_6, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext2_6 = { - "ext2", - "ext2", - &asn_OP_SEQUENCE, - asn_DEF_ext2_tags_6, - sizeof(asn_DEF_ext2_tags_6) - /sizeof(asn_DEF_ext2_tags_6[0]) - 1, /* 1 */ - asn_DEF_ext2_tags_6, /* Same as above */ - sizeof(asn_DEF_ext2_tags_6) - /sizeof(asn_DEF_ext2_tags_6[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext2_6, - 1, /* Elements count */ - &asn_SPC_ext2_specs_6 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext3_8[] = { - { ATF_POINTER, 1, offsetof(struct Sensor_RequestLocationInformation_r13__ext3, adjustmentReq_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "adjustmentReq-r16" - }, -}; -static const int asn_MAP_ext3_oms_8[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext3_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* adjustmentReq-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_8 = { - sizeof(struct Sensor_RequestLocationInformation_r13__ext3), - offsetof(struct Sensor_RequestLocationInformation_r13__ext3, _asn_ctx), - asn_MAP_ext3_tag2el_8, - 1, /* Count of tags in the map */ - asn_MAP_ext3_oms_8, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext3_8 = { - "ext3", - "ext3", - &asn_OP_SEQUENCE, - asn_DEF_ext3_tags_8, - sizeof(asn_DEF_ext3_tags_8) - /sizeof(asn_DEF_ext3_tags_8[0]) - 1, /* 1 */ - asn_DEF_ext3_tags_8, /* Same as above */ - sizeof(asn_DEF_ext3_tags_8) - /sizeof(asn_DEF_ext3_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext3_8, - 1, /* Elements count */ - &asn_SPC_ext3_specs_8 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_Sensor_RequestLocationInformation_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Sensor_RequestLocationInformation_r13, uncompensatedBarometricPressureReq_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "uncompensatedBarometricPressureReq-r13" - }, - { ATF_POINTER, 3, offsetof(struct Sensor_RequestLocationInformation_r13, ext1), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_ext1_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, - { ATF_POINTER, 2, offsetof(struct Sensor_RequestLocationInformation_r13, ext2), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_ext2_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext2" - }, - { ATF_POINTER, 1, offsetof(struct Sensor_RequestLocationInformation_r13, ext3), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - 0, - &asn_DEF_ext3_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext3" - }, -}; -static const int asn_MAP_Sensor_RequestLocationInformation_r13_oms_1[] = { 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_Sensor_RequestLocationInformation_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Sensor_RequestLocationInformation_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* uncompensatedBarometricPressureReq-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ext1 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ext2 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext3 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Sensor_RequestLocationInformation_r13_specs_1 = { - sizeof(struct Sensor_RequestLocationInformation_r13), - offsetof(struct Sensor_RequestLocationInformation_r13, _asn_ctx), - asn_MAP_Sensor_RequestLocationInformation_r13_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_Sensor_RequestLocationInformation_r13_oms_1, /* Optional members */ - 0, 3, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Sensor_RequestLocationInformation_r13 = { - "Sensor-RequestLocationInformation-r13", - "Sensor-RequestLocationInformation-r13", - &asn_OP_SEQUENCE, - asn_DEF_Sensor_RequestLocationInformation_r13_tags_1, - sizeof(asn_DEF_Sensor_RequestLocationInformation_r13_tags_1) - /sizeof(asn_DEF_Sensor_RequestLocationInformation_r13_tags_1[0]), /* 1 */ - asn_DEF_Sensor_RequestLocationInformation_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_Sensor_RequestLocationInformation_r13_tags_1) - /sizeof(asn_DEF_Sensor_RequestLocationInformation_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Sensor_RequestLocationInformation_r13_1, - 4, /* Elements count */ - &asn_SPC_Sensor_RequestLocationInformation_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Sensor-TargetDeviceErrorCauses-r13.c b/asn.1/generated/Sensor-TargetDeviceErrorCauses-r13.c deleted file mode 100644 index ad32c043..00000000 --- a/asn.1/generated/Sensor-TargetDeviceErrorCauses-r13.c +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Sensor-TargetDeviceErrorCauses-r13.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_r13_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_r13_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 27, "assistanceDataMissing-v1420" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_r13_enum2value_2[] = { - 1, /* assistanceDataMissing-v1420(1) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_r13_specs_2 = { - asn_MAP_cause_r13_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_r13_enum2value_2, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 2, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_r13_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_r13_2 = { - "cause-r13", - "cause-r13", - &asn_OP_NativeEnumerated, - asn_DEF_cause_r13_tags_2, - sizeof(asn_DEF_cause_r13_tags_2) - /sizeof(asn_DEF_cause_r13_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_r13_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_r13_tags_2) - /sizeof(asn_DEF_cause_r13_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_r13_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_r13_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_Sensor_TargetDeviceErrorCauses_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Sensor_TargetDeviceErrorCauses_r13, cause_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_r13_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause-r13" - }, -}; -static const ber_tlv_tag_t asn_DEF_Sensor_TargetDeviceErrorCauses_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Sensor_TargetDeviceErrorCauses_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause-r13 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Sensor_TargetDeviceErrorCauses_r13_specs_1 = { - sizeof(struct Sensor_TargetDeviceErrorCauses_r13), - offsetof(struct Sensor_TargetDeviceErrorCauses_r13, _asn_ctx), - asn_MAP_Sensor_TargetDeviceErrorCauses_r13_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Sensor_TargetDeviceErrorCauses_r13 = { - "Sensor-TargetDeviceErrorCauses-r13", - "Sensor-TargetDeviceErrorCauses-r13", - &asn_OP_SEQUENCE, - asn_DEF_Sensor_TargetDeviceErrorCauses_r13_tags_1, - sizeof(asn_DEF_Sensor_TargetDeviceErrorCauses_r13_tags_1) - /sizeof(asn_DEF_Sensor_TargetDeviceErrorCauses_r13_tags_1[0]), /* 1 */ - asn_DEF_Sensor_TargetDeviceErrorCauses_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_Sensor_TargetDeviceErrorCauses_r13_tags_1) - /sizeof(asn_DEF_Sensor_TargetDeviceErrorCauses_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Sensor_TargetDeviceErrorCauses_r13_1, - 1, /* Elements count */ - &asn_SPC_Sensor_TargetDeviceErrorCauses_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SequenceNumber.c b/asn.1/generated/SequenceNumber.c deleted file mode 100644 index 715c0ff1..00000000 --- a/asn.1/generated/SequenceNumber.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SequenceNumber.h" - -int -SequenceNumber_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_SequenceNumber_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_SequenceNumber_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_SequenceNumber = { - "SequenceNumber", - "SequenceNumber", - &asn_OP_NativeInteger, - asn_DEF_SequenceNumber_tags_1, - sizeof(asn_DEF_SequenceNumber_tags_1) - /sizeof(asn_DEF_SequenceNumber_tags_1[0]), /* 1 */ - asn_DEF_SequenceNumber_tags_1, /* Same as above */ - sizeof(asn_DEF_SequenceNumber_tags_1) - /sizeof(asn_DEF_SequenceNumber_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_SequenceNumber_constr_1, SequenceNumber_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/SequenceNumber.h b/asn.1/generated/SequenceNumber.h deleted file mode 100644 index 94eb94a6..00000000 --- a/asn.1/generated/SequenceNumber.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SequenceNumber_H_ -#define _SequenceNumber_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* SequenceNumber */ -typedef long SequenceNumber_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_SequenceNumber_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_SequenceNumber; -asn_struct_free_f SequenceNumber_free; -asn_struct_print_f SequenceNumber_print; -asn_constr_check_f SequenceNumber_constraint; -ber_type_decoder_f SequenceNumber_decode_ber; -der_type_encoder_f SequenceNumber_encode_der; -xer_type_decoder_f SequenceNumber_decode_xer; -xer_type_encoder_f SequenceNumber_encode_xer; -per_type_decoder_f SequenceNumber_decode_uper; -per_type_encoder_f SequenceNumber_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _SequenceNumber_H_ */ -#include diff --git a/asn.1/generated/ServiceCapabilities.c b/asn.1/generated/ServiceCapabilities.c deleted file mode 100644 index d057d449..00000000 --- a/asn.1/generated/ServiceCapabilities.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ServiceCapabilities.h" - -asn_TYPE_member_t asn_MBR_ServiceCapabilities_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ServiceCapabilities, servicesSupported), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ServicesSupported, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "servicesSupported" - }, - { ATF_POINTER, 2, offsetof(struct ServiceCapabilities, reportingCapabilities), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ReportingCap, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "reportingCapabilities" - }, - { ATF_POINTER, 1, offsetof(struct ServiceCapabilities, eventTriggerCapabilities), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EventTriggerCapabilities, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "eventTriggerCapabilities" - }, - { ATF_NOFLAGS, 0, offsetof(struct ServiceCapabilities, sessionCapabilities), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SessionCapabilities, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sessionCapabilities" - }, -}; -static const int asn_MAP_ServiceCapabilities_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_ServiceCapabilities_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ServiceCapabilities_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* servicesSupported */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* reportingCapabilities */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* eventTriggerCapabilities */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* sessionCapabilities */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ServiceCapabilities_specs_1 = { - sizeof(struct ServiceCapabilities), - offsetof(struct ServiceCapabilities, _asn_ctx), - asn_MAP_ServiceCapabilities_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_ServiceCapabilities_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ServiceCapabilities = { - "ServiceCapabilities", - "ServiceCapabilities", - &asn_OP_SEQUENCE, - asn_DEF_ServiceCapabilities_tags_1, - sizeof(asn_DEF_ServiceCapabilities_tags_1) - /sizeof(asn_DEF_ServiceCapabilities_tags_1[0]), /* 1 */ - asn_DEF_ServiceCapabilities_tags_1, /* Same as above */ - sizeof(asn_DEF_ServiceCapabilities_tags_1) - /sizeof(asn_DEF_ServiceCapabilities_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ServiceCapabilities_1, - 4, /* Elements count */ - &asn_SPC_ServiceCapabilities_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ServiceCapabilities.h b/asn.1/generated/ServiceCapabilities.h deleted file mode 100644 index 958ca851..00000000 --- a/asn.1/generated/ServiceCapabilities.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _ServiceCapabilities_H_ -#define _ServiceCapabilities_H_ - - -#include - -/* Including external dependencies */ -#include "ServicesSupported.h" -#include "SessionCapabilities.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct ReportingCap; -struct EventTriggerCapabilities; - -/* ServiceCapabilities */ -typedef struct ServiceCapabilities { - ServicesSupported_t servicesSupported; - struct ReportingCap *reportingCapabilities /* OPTIONAL */; - struct EventTriggerCapabilities *eventTriggerCapabilities /* OPTIONAL */; - SessionCapabilities_t sessionCapabilities; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} ServiceCapabilities_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_ServiceCapabilities; -extern asn_SEQUENCE_specifics_t asn_SPC_ServiceCapabilities_specs_1; -extern asn_TYPE_member_t asn_MBR_ServiceCapabilities_1[4]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "ReportingCap.h" -#include "EventTriggerCapabilities.h" - -#endif /* _ServiceCapabilities_H_ */ -#include diff --git a/asn.1/generated/ServicesSupported.c b/asn.1/generated/ServicesSupported.c deleted file mode 100644 index f46841eb..00000000 --- a/asn.1/generated/ServicesSupported.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ServicesSupported.h" - -asn_TYPE_member_t asn_MBR_ServicesSupported_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ServicesSupported, periodicTrigger), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "periodicTrigger" - }, - { ATF_NOFLAGS, 0, offsetof(struct ServicesSupported, areaEventTrigger), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "areaEventTrigger" - }, -}; -static const ber_tlv_tag_t asn_DEF_ServicesSupported_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ServicesSupported_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* periodicTrigger */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* areaEventTrigger */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ServicesSupported_specs_1 = { - sizeof(struct ServicesSupported), - offsetof(struct ServicesSupported, _asn_ctx), - asn_MAP_ServicesSupported_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ServicesSupported = { - "ServicesSupported", - "ServicesSupported", - &asn_OP_SEQUENCE, - asn_DEF_ServicesSupported_tags_1, - sizeof(asn_DEF_ServicesSupported_tags_1) - /sizeof(asn_DEF_ServicesSupported_tags_1[0]), /* 1 */ - asn_DEF_ServicesSupported_tags_1, /* Same as above */ - sizeof(asn_DEF_ServicesSupported_tags_1) - /sizeof(asn_DEF_ServicesSupported_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ServicesSupported_1, - 2, /* Elements count */ - &asn_SPC_ServicesSupported_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SessionCapabilities.c b/asn.1/generated/SessionCapabilities.c deleted file mode 100644 index 7205280d..00000000 --- a/asn.1/generated/SessionCapabilities.c +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SessionCapabilities.h" - -static int -memb_maxNumberTotalSessions_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_maxNumberPeriodicSessions_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 32)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_maxNumberTriggeredSessions_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 32)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_maxNumberTotalSessions_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 1, 128 } /* (1..128) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_maxNumberPeriodicSessions_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (1..32) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_maxNumberTriggeredSessions_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (1..32) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SessionCapabilities_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SessionCapabilities, maxNumberTotalSessions), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_maxNumberTotalSessions_constr_2, memb_maxNumberTotalSessions_constraint_1 }, - 0, 0, /* No default value */ - "maxNumberTotalSessions" - }, - { ATF_NOFLAGS, 0, offsetof(struct SessionCapabilities, maxNumberPeriodicSessions), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_maxNumberPeriodicSessions_constr_3, memb_maxNumberPeriodicSessions_constraint_1 }, - 0, 0, /* No default value */ - "maxNumberPeriodicSessions" - }, - { ATF_NOFLAGS, 0, offsetof(struct SessionCapabilities, maxNumberTriggeredSessions), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_maxNumberTriggeredSessions_constr_4, memb_maxNumberTriggeredSessions_constraint_1 }, - 0, 0, /* No default value */ - "maxNumberTriggeredSessions" - }, -}; -static const ber_tlv_tag_t asn_DEF_SessionCapabilities_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SessionCapabilities_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxNumberTotalSessions */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxNumberPeriodicSessions */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* maxNumberTriggeredSessions */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SessionCapabilities_specs_1 = { - sizeof(struct SessionCapabilities), - offsetof(struct SessionCapabilities, _asn_ctx), - asn_MAP_SessionCapabilities_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SessionCapabilities = { - "SessionCapabilities", - "SessionCapabilities", - &asn_OP_SEQUENCE, - asn_DEF_SessionCapabilities_tags_1, - sizeof(asn_DEF_SessionCapabilities_tags_1) - /sizeof(asn_DEF_SessionCapabilities_tags_1[0]), /* 1 */ - asn_DEF_SessionCapabilities_tags_1, /* Same as above */ - sizeof(asn_DEF_SessionCapabilities_tags_1) - /sizeof(asn_DEF_SessionCapabilities_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SessionCapabilities_1, - 3, /* Elements count */ - &asn_SPC_SessionCapabilities_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SessionID.c b/asn.1/generated/SessionID.c deleted file mode 100644 index 24daeb1b..00000000 --- a/asn.1/generated/SessionID.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SessionID.h" - -asn_TYPE_member_t asn_MBR_SessionID_1[] = { - { ATF_POINTER, 2, offsetof(struct SessionID, setSessionID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SetSessionID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "setSessionID" - }, - { ATF_POINTER, 1, offsetof(struct SessionID, slpSessionID), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SlpSessionID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "slpSessionID" - }, -}; -static const int asn_MAP_SessionID_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_SessionID_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SessionID_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* setSessionID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* slpSessionID */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SessionID_specs_1 = { - sizeof(struct SessionID), - offsetof(struct SessionID, _asn_ctx), - asn_MAP_SessionID_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_SessionID_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SessionID = { - "SessionID", - "SessionID", - &asn_OP_SEQUENCE, - asn_DEF_SessionID_tags_1, - sizeof(asn_DEF_SessionID_tags_1) - /sizeof(asn_DEF_SessionID_tags_1[0]), /* 1 */ - asn_DEF_SessionID_tags_1, /* Same as above */ - sizeof(asn_DEF_SessionID_tags_1) - /sizeof(asn_DEF_SessionID_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SessionID_1, - 2, /* Elements count */ - &asn_SPC_SessionID_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SessionID.h b/asn.1/generated/SessionID.h deleted file mode 100644 index bd475014..00000000 --- a/asn.1/generated/SessionID.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SessionID_H_ -#define _SessionID_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct SetSessionID; -struct SlpSessionID; - -/* SessionID */ -typedef struct SessionID { - struct SetSessionID *setSessionID /* OPTIONAL */; - struct SlpSessionID *slpSessionID /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} SessionID_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SessionID; -extern asn_SEQUENCE_specifics_t asn_SPC_SessionID_specs_1; -extern asn_TYPE_member_t asn_MBR_SessionID_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "SetSessionID.h" -#include "SlpSessionID.h" - -#endif /* _SessionID_H_ */ -#include diff --git a/asn.1/generated/SessionInformation.c b/asn.1/generated/SessionInformation.c deleted file mode 100644 index aa73f866..00000000 --- a/asn.1/generated/SessionInformation.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SessionInformation.h" - -asn_TYPE_member_t asn_MBR_SessionInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SessionInformation, sessionID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SessionID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sessionID" - }, -}; -static const ber_tlv_tag_t asn_DEF_SessionInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SessionInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* sessionID */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SessionInformation_specs_1 = { - sizeof(struct SessionInformation), - offsetof(struct SessionInformation, _asn_ctx), - asn_MAP_SessionInformation_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SessionInformation = { - "SessionInformation", - "SessionInformation", - &asn_OP_SEQUENCE, - asn_DEF_SessionInformation_tags_1, - sizeof(asn_DEF_SessionInformation_tags_1) - /sizeof(asn_DEF_SessionInformation_tags_1[0]), /* 1 */ - asn_DEF_SessionInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_SessionInformation_tags_1) - /sizeof(asn_DEF_SessionInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SessionInformation_1, - 1, /* Elements count */ - &asn_SPC_SessionInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SessionList.c b/asn.1/generated/SessionList.c deleted file mode 100644 index 939dfba4..00000000 --- a/asn.1/generated/SessionList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SessionList.h" - -asn_per_constraints_t asn_PER_type_SessionList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SessionList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_SessionInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_SessionList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_SessionList_specs_1 = { - sizeof(struct SessionList), - offsetof(struct SessionList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_SessionList = { - "SessionList", - "SessionList", - &asn_OP_SEQUENCE_OF, - asn_DEF_SessionList_tags_1, - sizeof(asn_DEF_SessionList_tags_1) - /sizeof(asn_DEF_SessionList_tags_1[0]), /* 1 */ - asn_DEF_SessionList_tags_1, /* Same as above */ - sizeof(asn_DEF_SessionList_tags_1) - /sizeof(asn_DEF_SessionList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_SessionList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_SessionList_1, - 1, /* Single element */ - &asn_SPC_SessionList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SetSessionID.c b/asn.1/generated/SetSessionID.c deleted file mode 100644 index 3c7813d5..00000000 --- a/asn.1/generated/SetSessionID.c +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SetSessionID.h" - -static int -memb_sessionId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_sessionId_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SetSessionID_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SetSessionID, sessionId), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sessionId_constr_2, memb_sessionId_constraint_1 }, - 0, 0, /* No default value */ - "sessionId" - }, - { ATF_NOFLAGS, 0, offsetof(struct SetSessionID, setId), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_SETId, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "setId" - }, -}; -static const ber_tlv_tag_t asn_DEF_SetSessionID_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SetSessionID_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sessionId */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* setId */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SetSessionID_specs_1 = { - sizeof(struct SetSessionID), - offsetof(struct SetSessionID, _asn_ctx), - asn_MAP_SetSessionID_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SetSessionID = { - "SetSessionID", - "SetSessionID", - &asn_OP_SEQUENCE, - asn_DEF_SetSessionID_tags_1, - sizeof(asn_DEF_SetSessionID_tags_1) - /sizeof(asn_DEF_SetSessionID_tags_1[0]), /* 1 */ - asn_DEF_SetSessionID_tags_1, /* Same as above */ - sizeof(asn_DEF_SetSessionID_tags_1) - /sizeof(asn_DEF_SetSessionID_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SetSessionID_1, - 2, /* Elements count */ - &asn_SPC_SetSessionID_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SlpSessionID.c b/asn.1/generated/SlpSessionID.c deleted file mode 100644 index ec1056d0..00000000 --- a/asn.1/generated/SlpSessionID.c +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SlpSessionID.h" - -static int -memb_sessionID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size == 4)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_sessionID_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SlpSessionID_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SlpSessionID, sessionID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OCTET_STRING, - 0, - { 0, &asn_PER_memb_sessionID_constr_2, memb_sessionID_constraint_1 }, - 0, 0, /* No default value */ - "sessionID" - }, - { ATF_NOFLAGS, 0, offsetof(struct SlpSessionID, slpId), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_SLPAddress, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "slpId" - }, -}; -static const ber_tlv_tag_t asn_DEF_SlpSessionID_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SlpSessionID_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sessionID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* slpId */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SlpSessionID_specs_1 = { - sizeof(struct SlpSessionID), - offsetof(struct SlpSessionID, _asn_ctx), - asn_MAP_SlpSessionID_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SlpSessionID = { - "SlpSessionID", - "SlpSessionID", - &asn_OP_SEQUENCE, - asn_DEF_SlpSessionID_tags_1, - sizeof(asn_DEF_SlpSessionID_tags_1) - /sizeof(asn_DEF_SlpSessionID_tags_1[0]), /* 1 */ - asn_DEF_SlpSessionID_tags_1, /* Same as above */ - sizeof(asn_DEF_SlpSessionID_tags_1) - /sizeof(asn_DEF_SlpSessionID_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SlpSessionID_1, - 2, /* Elements count */ - &asn_SPC_SlpSessionID_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/StandardClockModelElement.c b/asn.1/generated/StandardClockModelElement.c deleted file mode 100644 index 93112ad7..00000000 --- a/asn.1/generated/StandardClockModelElement.c +++ /dev/null @@ -1,322 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "StandardClockModelElement.h" - -static int -memb_stanClockToc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_stanClockAF2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32 && value <= 31)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_stanClockAF1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1048576 && value <= 1048575)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_stanClockAF0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1073741824 && value <= 1073741823)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_stanClockTgd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -512 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sisa_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_stanModelID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_stanClockToc_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_stanClockAF2_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, -32, 31 } /* (-32..31) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_stanClockAF1_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_stanClockAF0_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 31, -1, -1073741824, 1073741823 } /* (-1073741824..1073741823) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_stanClockTgd_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sisa_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_stanModelID_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_StandardClockModelElement_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct StandardClockModelElement, stanClockToc), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_stanClockToc_constr_2, memb_stanClockToc_constraint_1 }, - 0, 0, /* No default value */ - "stanClockToc" - }, - { ATF_NOFLAGS, 0, offsetof(struct StandardClockModelElement, stanClockAF2), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_stanClockAF2_constr_3, memb_stanClockAF2_constraint_1 }, - 0, 0, /* No default value */ - "stanClockAF2" - }, - { ATF_NOFLAGS, 0, offsetof(struct StandardClockModelElement, stanClockAF1), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_stanClockAF1_constr_4, memb_stanClockAF1_constraint_1 }, - 0, 0, /* No default value */ - "stanClockAF1" - }, - { ATF_NOFLAGS, 0, offsetof(struct StandardClockModelElement, stanClockAF0), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_stanClockAF0_constr_5, memb_stanClockAF0_constraint_1 }, - 0, 0, /* No default value */ - "stanClockAF0" - }, - { ATF_POINTER, 1, offsetof(struct StandardClockModelElement, stanClockTgd), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_stanClockTgd_constr_6, memb_stanClockTgd_constraint_1 }, - 0, 0, /* No default value */ - "stanClockTgd" - }, - { ATF_NOFLAGS, 0, offsetof(struct StandardClockModelElement, sisa), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sisa_constr_7, memb_sisa_constraint_1 }, - 0, 0, /* No default value */ - "sisa" - }, - { ATF_POINTER, 1, offsetof(struct StandardClockModelElement, stanModelID), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_stanModelID_constr_8, memb_stanModelID_constraint_1 }, - 0, 0, /* No default value */ - "stanModelID" - }, -}; -static const int asn_MAP_StandardClockModelElement_oms_1[] = { 4, 6 }; -static const ber_tlv_tag_t asn_DEF_StandardClockModelElement_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_StandardClockModelElement_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* stanClockToc */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* stanClockAF2 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* stanClockAF1 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* stanClockAF0 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* stanClockTgd */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* sisa */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* stanModelID */ -}; -asn_SEQUENCE_specifics_t asn_SPC_StandardClockModelElement_specs_1 = { - sizeof(struct StandardClockModelElement), - offsetof(struct StandardClockModelElement, _asn_ctx), - asn_MAP_StandardClockModelElement_tag2el_1, - 7, /* Count of tags in the map */ - asn_MAP_StandardClockModelElement_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 7, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_StandardClockModelElement = { - "StandardClockModelElement", - "StandardClockModelElement", - &asn_OP_SEQUENCE, - asn_DEF_StandardClockModelElement_tags_1, - sizeof(asn_DEF_StandardClockModelElement_tags_1) - /sizeof(asn_DEF_StandardClockModelElement_tags_1[0]), /* 1 */ - asn_DEF_StandardClockModelElement_tags_1, /* Same as above */ - sizeof(asn_DEF_StandardClockModelElement_tags_1) - /sizeof(asn_DEF_StandardClockModelElement_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_StandardClockModelElement_1, - 7, /* Elements count */ - &asn_SPC_StandardClockModelElement_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/StandardClockModelList.c b/asn.1/generated/StandardClockModelList.c deleted file mode 100644 index 46ed4c99..00000000 --- a/asn.1/generated/StandardClockModelList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "StandardClockModelList.h" - -asn_per_constraints_t asn_PER_type_StandardClockModelList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_StandardClockModelList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_StandardClockModelElement, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_StandardClockModelList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_StandardClockModelList_specs_1 = { - sizeof(struct StandardClockModelList), - offsetof(struct StandardClockModelList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_StandardClockModelList = { - "StandardClockModelList", - "StandardClockModelList", - &asn_OP_SEQUENCE_OF, - asn_DEF_StandardClockModelList_tags_1, - sizeof(asn_DEF_StandardClockModelList_tags_1) - /sizeof(asn_DEF_StandardClockModelList_tags_1[0]), /* 1 */ - asn_DEF_StandardClockModelList_tags_1, /* Same as above */ - sizeof(asn_DEF_StandardClockModelList_tags_1) - /sizeof(asn_DEF_StandardClockModelList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_StandardClockModelList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_StandardClockModelList_1, - 1, /* Single element */ - &asn_SPC_StandardClockModelList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Status.c b/asn.1/generated/Status.c deleted file mode 100644 index 40f3e3ec..00000000 --- a/asn.1/generated/Status.c +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Status.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_Status_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_Status_value2enum_1[] = { - { 0, 5, "stale" }, - { 1, 7, "current" }, - { 2, 7, "unknown" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_Status_enum2value_1[] = { - 1, /* current(1) */ - 0, /* stale(0) */ - 2 /* unknown(2) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_Status_specs_1 = { - asn_MAP_Status_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_Status_enum2value_1, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 4, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_Status_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_Status = { - "Status", - "Status", - &asn_OP_NativeEnumerated, - asn_DEF_Status_tags_1, - sizeof(asn_DEF_Status_tags_1) - /sizeof(asn_DEF_Status_tags_1[0]), /* 1 */ - asn_DEF_Status_tags_1, /* Same as above */ - sizeof(asn_DEF_Status_tags_1) - /sizeof(asn_DEF_Status_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_Status_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_Status_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/StoredNavListInfo.c b/asn.1/generated/StoredNavListInfo.c deleted file mode 100644 index ba077952..00000000 --- a/asn.1/generated/StoredNavListInfo.c +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "StoredNavListInfo.h" - -static int -memb_gnss_WeekOrDay_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gnss_Toe_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_t_toeLimit_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gnss_WeekOrDay_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_Toe_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_t_toeLimit_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_StoredNavListInfo_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct StoredNavListInfo, gnss_WeekOrDay), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_WeekOrDay_constr_2, memb_gnss_WeekOrDay_constraint_1 }, - 0, 0, /* No default value */ - "gnss-WeekOrDay" - }, - { ATF_NOFLAGS, 0, offsetof(struct StoredNavListInfo, gnss_Toe), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_Toe_constr_3, memb_gnss_Toe_constraint_1 }, - 0, 0, /* No default value */ - "gnss-Toe" - }, - { ATF_NOFLAGS, 0, offsetof(struct StoredNavListInfo, t_toeLimit), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_t_toeLimit_constr_4, memb_t_toeLimit_constraint_1 }, - 0, 0, /* No default value */ - "t-toeLimit" - }, - { ATF_POINTER, 1, offsetof(struct StoredNavListInfo, satListRelatedDataList), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SatListRelatedDataList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "satListRelatedDataList" - }, -}; -static const int asn_MAP_StoredNavListInfo_oms_1[] = { 3 }; -static const ber_tlv_tag_t asn_DEF_StoredNavListInfo_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_StoredNavListInfo_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-WeekOrDay */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-Toe */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* t-toeLimit */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* satListRelatedDataList */ -}; -asn_SEQUENCE_specifics_t asn_SPC_StoredNavListInfo_specs_1 = { - sizeof(struct StoredNavListInfo), - offsetof(struct StoredNavListInfo, _asn_ctx), - asn_MAP_StoredNavListInfo_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_StoredNavListInfo_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_StoredNavListInfo = { - "StoredNavListInfo", - "StoredNavListInfo", - &asn_OP_SEQUENCE, - asn_DEF_StoredNavListInfo_tags_1, - sizeof(asn_DEF_StoredNavListInfo_tags_1) - /sizeof(asn_DEF_StoredNavListInfo_tags_1[0]), /* 1 */ - asn_DEF_StoredNavListInfo_tags_1, /* Same as above */ - sizeof(asn_DEF_StoredNavListInfo_tags_1) - /sizeof(asn_DEF_StoredNavListInfo_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_StoredNavListInfo_1, - 4, /* Elements count */ - &asn_SPC_StoredNavListInfo_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Supported3GPP2PosProtocolVersion.c b/asn.1/generated/Supported3GPP2PosProtocolVersion.c deleted file mode 100644 index eb514e00..00000000 --- a/asn.1/generated/Supported3GPP2PosProtocolVersion.c +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Supported3GPP2PosProtocolVersion.h" - -static int -memb_revisionNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 6)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_pointReleaseNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_internalEditLevel_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_revisionNumber_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_pointReleaseNumber_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_internalEditLevel_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_Supported3GPP2PosProtocolVersion_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Supported3GPP2PosProtocolVersion, revisionNumber), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_revisionNumber_constr_2, memb_revisionNumber_constraint_1 }, - 0, 0, /* No default value */ - "revisionNumber" - }, - { ATF_NOFLAGS, 0, offsetof(struct Supported3GPP2PosProtocolVersion, pointReleaseNumber), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_pointReleaseNumber_constr_3, memb_pointReleaseNumber_constraint_1 }, - 0, 0, /* No default value */ - "pointReleaseNumber" - }, - { ATF_NOFLAGS, 0, offsetof(struct Supported3GPP2PosProtocolVersion, internalEditLevel), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_internalEditLevel_constr_4, memb_internalEditLevel_constraint_1 }, - 0, 0, /* No default value */ - "internalEditLevel" - }, -}; -static const ber_tlv_tag_t asn_DEF_Supported3GPP2PosProtocolVersion_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Supported3GPP2PosProtocolVersion_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* revisionNumber */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* pointReleaseNumber */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* internalEditLevel */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Supported3GPP2PosProtocolVersion_specs_1 = { - sizeof(struct Supported3GPP2PosProtocolVersion), - offsetof(struct Supported3GPP2PosProtocolVersion, _asn_ctx), - asn_MAP_Supported3GPP2PosProtocolVersion_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Supported3GPP2PosProtocolVersion = { - "Supported3GPP2PosProtocolVersion", - "Supported3GPP2PosProtocolVersion", - &asn_OP_SEQUENCE, - asn_DEF_Supported3GPP2PosProtocolVersion_tags_1, - sizeof(asn_DEF_Supported3GPP2PosProtocolVersion_tags_1) - /sizeof(asn_DEF_Supported3GPP2PosProtocolVersion_tags_1[0]), /* 1 */ - asn_DEF_Supported3GPP2PosProtocolVersion_tags_1, /* Same as above */ - sizeof(asn_DEF_Supported3GPP2PosProtocolVersion_tags_1) - /sizeof(asn_DEF_Supported3GPP2PosProtocolVersion_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Supported3GPP2PosProtocolVersion_1, - 3, /* Elements count */ - &asn_SPC_Supported3GPP2PosProtocolVersion_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SupportedBandEUTRA-v9a0.c b/asn.1/generated/SupportedBandEUTRA-v9a0.c deleted file mode 100644 index 46343d86..00000000 --- a/asn.1/generated/SupportedBandEUTRA-v9a0.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SupportedBandEUTRA-v9a0.h" - -static int -memb_bandEUTRA_v9a0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 65 && value <= 256)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_bandEUTRA_v9a0_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 65, 256 } /* (65..256) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SupportedBandEUTRA_v9a0_1[] = { - { ATF_POINTER, 1, offsetof(struct SupportedBandEUTRA_v9a0, bandEUTRA_v9a0), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bandEUTRA_v9a0_constr_2, memb_bandEUTRA_v9a0_constraint_1 }, - 0, 0, /* No default value */ - "bandEUTRA-v9a0" - }, -}; -static const int asn_MAP_SupportedBandEUTRA_v9a0_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_SupportedBandEUTRA_v9a0_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SupportedBandEUTRA_v9a0_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* bandEUTRA-v9a0 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SupportedBandEUTRA_v9a0_specs_1 = { - sizeof(struct SupportedBandEUTRA_v9a0), - offsetof(struct SupportedBandEUTRA_v9a0, _asn_ctx), - asn_MAP_SupportedBandEUTRA_v9a0_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_SupportedBandEUTRA_v9a0_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SupportedBandEUTRA_v9a0 = { - "SupportedBandEUTRA-v9a0", - "SupportedBandEUTRA-v9a0", - &asn_OP_SEQUENCE, - asn_DEF_SupportedBandEUTRA_v9a0_tags_1, - sizeof(asn_DEF_SupportedBandEUTRA_v9a0_tags_1) - /sizeof(asn_DEF_SupportedBandEUTRA_v9a0_tags_1[0]), /* 1 */ - asn_DEF_SupportedBandEUTRA_v9a0_tags_1, /* Same as above */ - sizeof(asn_DEF_SupportedBandEUTRA_v9a0_tags_1) - /sizeof(asn_DEF_SupportedBandEUTRA_v9a0_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SupportedBandEUTRA_v9a0_1, - 1, /* Elements count */ - &asn_SPC_SupportedBandEUTRA_v9a0_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SupportedBandEUTRA-v9a0.h b/asn.1/generated/SupportedBandEUTRA-v9a0.h deleted file mode 100644 index 51252ce5..00000000 --- a/asn.1/generated/SupportedBandEUTRA-v9a0.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SupportedBandEUTRA_v9a0_H_ -#define _SupportedBandEUTRA_v9a0_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* SupportedBandEUTRA-v9a0 */ -typedef struct SupportedBandEUTRA_v9a0 { - long *bandEUTRA_v9a0 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} SupportedBandEUTRA_v9a0_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SupportedBandEUTRA_v9a0; -extern asn_SEQUENCE_specifics_t asn_SPC_SupportedBandEUTRA_v9a0_specs_1; -extern asn_TYPE_member_t asn_MBR_SupportedBandEUTRA_v9a0_1[1]; - -#ifdef __cplusplus -} -#endif - -#endif /* _SupportedBandEUTRA_v9a0_H_ */ -#include diff --git a/asn.1/generated/SupportedBandEUTRA.c b/asn.1/generated/SupportedBandEUTRA.c deleted file mode 100644 index 36c3885d..00000000 --- a/asn.1/generated/SupportedBandEUTRA.c +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SupportedBandEUTRA.h" - -static int -memb_bandEUTRA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 64)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_bandEUTRA_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (1..64) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SupportedBandEUTRA_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SupportedBandEUTRA, bandEUTRA), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bandEUTRA_constr_2, memb_bandEUTRA_constraint_1 }, - 0, 0, /* No default value */ - "bandEUTRA" - }, -}; -static const ber_tlv_tag_t asn_DEF_SupportedBandEUTRA_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SupportedBandEUTRA_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* bandEUTRA */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SupportedBandEUTRA_specs_1 = { - sizeof(struct SupportedBandEUTRA), - offsetof(struct SupportedBandEUTRA, _asn_ctx), - asn_MAP_SupportedBandEUTRA_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SupportedBandEUTRA = { - "SupportedBandEUTRA", - "SupportedBandEUTRA", - &asn_OP_SEQUENCE, - asn_DEF_SupportedBandEUTRA_tags_1, - sizeof(asn_DEF_SupportedBandEUTRA_tags_1) - /sizeof(asn_DEF_SupportedBandEUTRA_tags_1[0]), /* 1 */ - asn_DEF_SupportedBandEUTRA_tags_1, /* Same as above */ - sizeof(asn_DEF_SupportedBandEUTRA_tags_1) - /sizeof(asn_DEF_SupportedBandEUTRA_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SupportedBandEUTRA_1, - 1, /* Elements count */ - &asn_SPC_SupportedBandEUTRA_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SupportedBandNR-r16.c b/asn.1/generated/SupportedBandNR-r16.c deleted file mode 100644 index cf7e83f7..00000000 --- a/asn.1/generated/SupportedBandNR-r16.c +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SupportedBandNR-r16.h" - -static int -memb_freqBandIndicatorNR_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 1024)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_freqBandIndicatorNR_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (1..1024) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_SupportedBandNR_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SupportedBandNR_r16, freqBandIndicatorNR_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_freqBandIndicatorNR_r16_constr_2, memb_freqBandIndicatorNR_r16_constraint_1 }, - 0, 0, /* No default value */ - "freqBandIndicatorNR-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_SupportedBandNR_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SupportedBandNR_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* freqBandIndicatorNR-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SupportedBandNR_r16_specs_1 = { - sizeof(struct SupportedBandNR_r16), - offsetof(struct SupportedBandNR_r16, _asn_ctx), - asn_MAP_SupportedBandNR_r16_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SupportedBandNR_r16 = { - "SupportedBandNR-r16", - "SupportedBandNR-r16", - &asn_OP_SEQUENCE, - asn_DEF_SupportedBandNR_r16_tags_1, - sizeof(asn_DEF_SupportedBandNR_r16_tags_1) - /sizeof(asn_DEF_SupportedBandNR_r16_tags_1[0]), /* 1 */ - asn_DEF_SupportedBandNR_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_SupportedBandNR_r16_tags_1) - /sizeof(asn_DEF_SupportedBandNR_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SupportedBandNR_r16_1, - 1, /* Elements count */ - &asn_SPC_SupportedBandNR_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SupportedBandNR-r16.h b/asn.1/generated/SupportedBandNR-r16.h deleted file mode 100644 index 53c54905..00000000 --- a/asn.1/generated/SupportedBandNR-r16.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SupportedBandNR_r16_H_ -#define _SupportedBandNR_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* SupportedBandNR-r16 */ -typedef struct SupportedBandNR_r16 { - long freqBandIndicatorNR_r16; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} SupportedBandNR_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SupportedBandNR_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_SupportedBandNR_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_SupportedBandNR_r16_1[1]; - -#ifdef __cplusplus -} -#endif - -#endif /* _SupportedBandNR_r16_H_ */ -#include diff --git a/asn.1/generated/SupportedBearers.c b/asn.1/generated/SupportedBearers.c deleted file mode 100644 index bb104481..00000000 --- a/asn.1/generated/SupportedBearers.c +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SupportedBearers.h" - -asn_TYPE_member_t asn_MBR_SupportedBearers_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SupportedBearers, gsm), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gsm" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedBearers, wcdma), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wcdma" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedBearers, lte), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "lte" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedBearers, cdma), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cdma" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedBearers, hprd), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "hprd" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedBearers, umb), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "umb" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedBearers, wlan), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wlan" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedBearers, wiMAX), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wiMAX" - }, -}; -static const ber_tlv_tag_t asn_DEF_SupportedBearers_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SupportedBearers_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gsm */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* wcdma */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* lte */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* cdma */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* hprd */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* umb */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* wlan */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* wiMAX */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SupportedBearers_specs_1 = { - sizeof(struct SupportedBearers), - offsetof(struct SupportedBearers, _asn_ctx), - asn_MAP_SupportedBearers_tag2el_1, - 8, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 8, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SupportedBearers = { - "SupportedBearers", - "SupportedBearers", - &asn_OP_SEQUENCE, - asn_DEF_SupportedBearers_tags_1, - sizeof(asn_DEF_SupportedBearers_tags_1) - /sizeof(asn_DEF_SupportedBearers_tags_1[0]), /* 1 */ - asn_DEF_SupportedBearers_tags_1, /* Same as above */ - sizeof(asn_DEF_SupportedBearers_tags_1) - /sizeof(asn_DEF_SupportedBearers_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SupportedBearers_1, - 8, /* Elements count */ - &asn_SPC_SupportedBearers_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SupportedChannels-11a-r14.c b/asn.1/generated/SupportedChannels-11a-r14.c deleted file mode 100644 index c887e1e0..00000000 --- a/asn.1/generated/SupportedChannels-11a-r14.c +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SupportedChannels-11a-r14.h" - -asn_TYPE_member_t asn_MBR_SupportedChannels_11a_r14_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch34_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch34-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch36_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch36-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch38_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch38-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch40_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch40-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch42_r14), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch42-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch44_r14), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch44-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch46_r14), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch46-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch48_r14), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch48-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch52_r14), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch52-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch56_r14), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch56-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch60_r14), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch60-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch64_r14), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch64-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch149_r14), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch149-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch153_r14), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch153-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch157_r14), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch157-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch161_r14), - (ASN_TAG_CLASS_CONTEXT | (15 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch161-r14" - }, -}; -static const ber_tlv_tag_t asn_DEF_SupportedChannels_11a_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SupportedChannels_11a_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ch34-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ch36-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ch38-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ch40-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ch42-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ch44-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ch46-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ch48-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ch52-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* ch56-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* ch60-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* ch64-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ch149-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* ch153-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* ch157-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 } /* ch161-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SupportedChannels_11a_r14_specs_1 = { - sizeof(struct SupportedChannels_11a_r14), - offsetof(struct SupportedChannels_11a_r14, _asn_ctx), - asn_MAP_SupportedChannels_11a_r14_tag2el_1, - 16, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SupportedChannels_11a_r14 = { - "SupportedChannels-11a-r14", - "SupportedChannels-11a-r14", - &asn_OP_SEQUENCE, - asn_DEF_SupportedChannels_11a_r14_tags_1, - sizeof(asn_DEF_SupportedChannels_11a_r14_tags_1) - /sizeof(asn_DEF_SupportedChannels_11a_r14_tags_1[0]), /* 1 */ - asn_DEF_SupportedChannels_11a_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_SupportedChannels_11a_r14_tags_1) - /sizeof(asn_DEF_SupportedChannels_11a_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SupportedChannels_11a_r14_1, - 16, /* Elements count */ - &asn_SPC_SupportedChannels_11a_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SupportedChannels-11bg-r14.c b/asn.1/generated/SupportedChannels-11bg-r14.c deleted file mode 100644 index 7d25af11..00000000 --- a/asn.1/generated/SupportedChannels-11bg-r14.c +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SupportedChannels-11bg-r14.h" - -asn_TYPE_member_t asn_MBR_SupportedChannels_11bg_r14_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch1_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch1-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch2_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch2-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch3_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch3-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch4_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch4-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch5_r14), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch5-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch6_r14), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch6-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch7_r14), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch7-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch8_r14), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch8-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch9_r14), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch9-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch10_r14), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch10-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch11_r14), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch11-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch12_r14), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch12-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch13_r14), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch13-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch14_r14), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch14-r14" - }, -}; -static const ber_tlv_tag_t asn_DEF_SupportedChannels_11bg_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SupportedChannels_11bg_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ch1-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ch2-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ch3-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ch4-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ch5-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ch6-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ch7-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ch8-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ch9-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* ch10-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* ch11-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* ch12-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ch13-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 } /* ch14-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SupportedChannels_11bg_r14_specs_1 = { - sizeof(struct SupportedChannels_11bg_r14), - offsetof(struct SupportedChannels_11bg_r14, _asn_ctx), - asn_MAP_SupportedChannels_11bg_r14_tag2el_1, - 14, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SupportedChannels_11bg_r14 = { - "SupportedChannels-11bg-r14", - "SupportedChannels-11bg-r14", - &asn_OP_SEQUENCE, - asn_DEF_SupportedChannels_11bg_r14_tags_1, - sizeof(asn_DEF_SupportedChannels_11bg_r14_tags_1) - /sizeof(asn_DEF_SupportedChannels_11bg_r14_tags_1[0]), /* 1 */ - asn_DEF_SupportedChannels_11bg_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_SupportedChannels_11bg_r14_tags_1) - /sizeof(asn_DEF_SupportedChannels_11bg_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SupportedChannels_11bg_r14_1, - 14, /* Elements count */ - &asn_SPC_SupportedChannels_11bg_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SupportedNetworkInformation.c b/asn.1/generated/SupportedNetworkInformation.c deleted file mode 100644 index 77f95370..00000000 --- a/asn.1/generated/SupportedNetworkInformation.c +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SupportedNetworkInformation.h" - -asn_TYPE_member_t asn_MBR_SupportedNetworkInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, wLAN), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wLAN" - }, - { ATF_POINTER, 2, offsetof(struct SupportedNetworkInformation, supportedWLANInfo), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SupportedWLANInfo, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "supportedWLANInfo" - }, - { ATF_POINTER, 1, offsetof(struct SupportedNetworkInformation, supportedWLANApsList), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SupportedWLANApsList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "supportedWLANApsList" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, gSM), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gSM" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, wCDMA), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wCDMA" - }, - { ATF_POINTER, 1, offsetof(struct SupportedNetworkInformation, supportedWCDMAInfo), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SupportedWCDMAInfo, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "supportedWCDMAInfo" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, cDMA), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cDMA" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, hRDP), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "hRDP" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, uMB), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "uMB" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, lTE), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "lTE" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, wIMAX), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wIMAX" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, historic), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "historic" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, nonServing), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nonServing" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, uTRANGPSReferenceTime), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "uTRANGPSReferenceTime" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, uTRANGANSSReferenceTime), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "uTRANGANSSReferenceTime" - }, -}; -static const int asn_MAP_SupportedNetworkInformation_oms_1[] = { 1, 2, 5 }; -static const ber_tlv_tag_t asn_DEF_SupportedNetworkInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SupportedNetworkInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wLAN */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* supportedWLANInfo */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* supportedWLANApsList */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gSM */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* wCDMA */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* supportedWCDMAInfo */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* cDMA */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* hRDP */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* uMB */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* lTE */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* wIMAX */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* historic */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* nonServing */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* uTRANGPSReferenceTime */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 } /* uTRANGANSSReferenceTime */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SupportedNetworkInformation_specs_1 = { - sizeof(struct SupportedNetworkInformation), - offsetof(struct SupportedNetworkInformation, _asn_ctx), - asn_MAP_SupportedNetworkInformation_tag2el_1, - 15, /* Count of tags in the map */ - asn_MAP_SupportedNetworkInformation_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 15, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SupportedNetworkInformation = { - "SupportedNetworkInformation", - "SupportedNetworkInformation", - &asn_OP_SEQUENCE, - asn_DEF_SupportedNetworkInformation_tags_1, - sizeof(asn_DEF_SupportedNetworkInformation_tags_1) - /sizeof(asn_DEF_SupportedNetworkInformation_tags_1[0]), /* 1 */ - asn_DEF_SupportedNetworkInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_SupportedNetworkInformation_tags_1) - /sizeof(asn_DEF_SupportedNetworkInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SupportedNetworkInformation_1, - 15, /* Elements count */ - &asn_SPC_SupportedNetworkInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SupportedNetworkInformation.h b/asn.1/generated/SupportedNetworkInformation.h deleted file mode 100644 index 017f5aea..00000000 --- a/asn.1/generated/SupportedNetworkInformation.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _SupportedNetworkInformation_H_ -#define _SupportedNetworkInformation_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct SupportedWLANInfo; -struct SupportedWLANApsList; -struct SupportedWCDMAInfo; - -/* SupportedNetworkInformation */ -typedef struct SupportedNetworkInformation { - BOOLEAN_t wLAN; - struct SupportedWLANInfo *supportedWLANInfo /* OPTIONAL */; - struct SupportedWLANApsList *supportedWLANApsList /* OPTIONAL */; - BOOLEAN_t gSM; - BOOLEAN_t wCDMA; - struct SupportedWCDMAInfo *supportedWCDMAInfo /* OPTIONAL */; - BOOLEAN_t cDMA; - BOOLEAN_t hRDP; - BOOLEAN_t uMB; - BOOLEAN_t lTE; - BOOLEAN_t wIMAX; - BOOLEAN_t historic; - BOOLEAN_t nonServing; - BOOLEAN_t uTRANGPSReferenceTime; - BOOLEAN_t uTRANGANSSReferenceTime; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} SupportedNetworkInformation_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SupportedNetworkInformation; -extern asn_SEQUENCE_specifics_t asn_SPC_SupportedNetworkInformation_specs_1; -extern asn_TYPE_member_t asn_MBR_SupportedNetworkInformation_1[15]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "SupportedWLANInfo.h" -#include "SupportedWLANApsList.h" -#include "SupportedWCDMAInfo.h" - -#endif /* _SupportedNetworkInformation_H_ */ -#include diff --git a/asn.1/generated/SupportedWCDMAInfo.c b/asn.1/generated/SupportedWCDMAInfo.c deleted file mode 100644 index bc2979e1..00000000 --- a/asn.1/generated/SupportedWCDMAInfo.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SupportedWCDMAInfo.h" - -asn_TYPE_member_t asn_MBR_SupportedWCDMAInfo_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SupportedWCDMAInfo, mRL), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mRL" - }, -}; -static const ber_tlv_tag_t asn_DEF_SupportedWCDMAInfo_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SupportedWCDMAInfo_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* mRL */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SupportedWCDMAInfo_specs_1 = { - sizeof(struct SupportedWCDMAInfo), - offsetof(struct SupportedWCDMAInfo, _asn_ctx), - asn_MAP_SupportedWCDMAInfo_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SupportedWCDMAInfo = { - "SupportedWCDMAInfo", - "SupportedWCDMAInfo", - &asn_OP_SEQUENCE, - asn_DEF_SupportedWCDMAInfo_tags_1, - sizeof(asn_DEF_SupportedWCDMAInfo_tags_1) - /sizeof(asn_DEF_SupportedWCDMAInfo_tags_1[0]), /* 1 */ - asn_DEF_SupportedWCDMAInfo_tags_1, /* Same as above */ - sizeof(asn_DEF_SupportedWCDMAInfo_tags_1) - /sizeof(asn_DEF_SupportedWCDMAInfo_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SupportedWCDMAInfo_1, - 1, /* Elements count */ - &asn_SPC_SupportedWCDMAInfo_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SupportedWLANApData.c b/asn.1/generated/SupportedWLANApData.c deleted file mode 100644 index 010e0f45..00000000 --- a/asn.1/generated/SupportedWLANApData.c +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SupportedWLANApData.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_apMACAddress_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 48)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_apDevType_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_apMACAddress_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 48, 48 } /* (SIZE(48..48)) */, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_apDevType_value2enum_3[] = { - { 0, 11, "wlan802-11a" }, - { 1, 11, "wlan802-11b" }, - { 2, 11, "wlan802-11g" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_apDevType_enum2value_3[] = { - 0, /* wlan802-11a(0) */ - 1, /* wlan802-11b(1) */ - 2 /* wlan802-11g(2) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_apDevType_specs_3 = { - asn_MAP_apDevType_value2enum_3, /* "tag" => N; sorted by tag */ - asn_MAP_apDevType_enum2value_3, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 4, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_apDevType_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_apDevType_3 = { - "apDevType", - "apDevType", - &asn_OP_NativeEnumerated, - asn_DEF_apDevType_tags_3, - sizeof(asn_DEF_apDevType_tags_3) - /sizeof(asn_DEF_apDevType_tags_3[0]) - 1, /* 1 */ - asn_DEF_apDevType_tags_3, /* Same as above */ - sizeof(asn_DEF_apDevType_tags_3) - /sizeof(asn_DEF_apDevType_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_apDevType_constr_3, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_apDevType_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_SupportedWLANApData_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApData, apMACAddress), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_apMACAddress_constr_2, memb_apMACAddress_constraint_1 }, - 0, 0, /* No default value */ - "apMACAddress" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApData, apDevType), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_apDevType_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "apDevType" - }, -}; -static const ber_tlv_tag_t asn_DEF_SupportedWLANApData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SupportedWLANApData_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* apMACAddress */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* apDevType */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SupportedWLANApData_specs_1 = { - sizeof(struct SupportedWLANApData), - offsetof(struct SupportedWLANApData, _asn_ctx), - asn_MAP_SupportedWLANApData_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SupportedWLANApData = { - "SupportedWLANApData", - "SupportedWLANApData", - &asn_OP_SEQUENCE, - asn_DEF_SupportedWLANApData_tags_1, - sizeof(asn_DEF_SupportedWLANApData_tags_1) - /sizeof(asn_DEF_SupportedWLANApData_tags_1[0]), /* 1 */ - asn_DEF_SupportedWLANApData_tags_1, /* Same as above */ - sizeof(asn_DEF_SupportedWLANApData_tags_1) - /sizeof(asn_DEF_SupportedWLANApData_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SupportedWLANApData_1, - 2, /* Elements count */ - &asn_SPC_SupportedWLANApData_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SupportedWLANApsChannel11a.c b/asn.1/generated/SupportedWLANApsChannel11a.c deleted file mode 100644 index 3ece3c54..00000000 --- a/asn.1/generated/SupportedWLANApsChannel11a.c +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SupportedWLANApsChannel11a.h" - -asn_TYPE_member_t asn_MBR_SupportedWLANApsChannel11a_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch34), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch34" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch36), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch36" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch38), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch38" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch40), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch40" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch42), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch42" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch44), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch44" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch46), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch46" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch48), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch48" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch52), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch52" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch56), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch56" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch60), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch60" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch64), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch64" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch149), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch149" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch153), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch153" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch157), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch157" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch161), - (ASN_TAG_CLASS_CONTEXT | (15 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch161" - }, -}; -static const ber_tlv_tag_t asn_DEF_SupportedWLANApsChannel11a_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SupportedWLANApsChannel11a_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ch34 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ch36 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ch38 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ch40 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ch42 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ch44 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ch46 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ch48 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ch52 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* ch56 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* ch60 */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* ch64 */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ch149 */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* ch153 */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* ch157 */ - { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 } /* ch161 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SupportedWLANApsChannel11a_specs_1 = { - sizeof(struct SupportedWLANApsChannel11a), - offsetof(struct SupportedWLANApsChannel11a, _asn_ctx), - asn_MAP_SupportedWLANApsChannel11a_tag2el_1, - 16, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SupportedWLANApsChannel11a = { - "SupportedWLANApsChannel11a", - "SupportedWLANApsChannel11a", - &asn_OP_SEQUENCE, - asn_DEF_SupportedWLANApsChannel11a_tags_1, - sizeof(asn_DEF_SupportedWLANApsChannel11a_tags_1) - /sizeof(asn_DEF_SupportedWLANApsChannel11a_tags_1[0]), /* 1 */ - asn_DEF_SupportedWLANApsChannel11a_tags_1, /* Same as above */ - sizeof(asn_DEF_SupportedWLANApsChannel11a_tags_1) - /sizeof(asn_DEF_SupportedWLANApsChannel11a_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SupportedWLANApsChannel11a_1, - 16, /* Elements count */ - &asn_SPC_SupportedWLANApsChannel11a_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SupportedWLANApsChannel11bg.c b/asn.1/generated/SupportedWLANApsChannel11bg.c deleted file mode 100644 index eed56e0a..00000000 --- a/asn.1/generated/SupportedWLANApsChannel11bg.c +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SupportedWLANApsChannel11bg.h" - -asn_TYPE_member_t asn_MBR_SupportedWLANApsChannel11bg_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch1), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch1" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch2), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch2" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch3), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch3" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch4), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch4" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch5), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch5" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch6), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch6" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch7), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch7" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch8), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch8" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch9), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch9" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch10), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch10" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch11), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch11" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch12), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch12" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch13), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch13" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch14), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ch14" - }, -}; -static const ber_tlv_tag_t asn_DEF_SupportedWLANApsChannel11bg_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SupportedWLANApsChannel11bg_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ch1 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ch2 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ch3 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ch4 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ch5 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ch6 */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ch7 */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ch8 */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ch9 */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* ch10 */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* ch11 */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* ch12 */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ch13 */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 } /* ch14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SupportedWLANApsChannel11bg_specs_1 = { - sizeof(struct SupportedWLANApsChannel11bg), - offsetof(struct SupportedWLANApsChannel11bg, _asn_ctx), - asn_MAP_SupportedWLANApsChannel11bg_tag2el_1, - 14, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SupportedWLANApsChannel11bg = { - "SupportedWLANApsChannel11bg", - "SupportedWLANApsChannel11bg", - &asn_OP_SEQUENCE, - asn_DEF_SupportedWLANApsChannel11bg_tags_1, - sizeof(asn_DEF_SupportedWLANApsChannel11bg_tags_1) - /sizeof(asn_DEF_SupportedWLANApsChannel11bg_tags_1[0]), /* 1 */ - asn_DEF_SupportedWLANApsChannel11bg_tags_1, /* Same as above */ - sizeof(asn_DEF_SupportedWLANApsChannel11bg_tags_1) - /sizeof(asn_DEF_SupportedWLANApsChannel11bg_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SupportedWLANApsChannel11bg_1, - 14, /* Elements count */ - &asn_SPC_SupportedWLANApsChannel11bg_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SupportedWLANApsList.c b/asn.1/generated/SupportedWLANApsList.c deleted file mode 100644 index 65398cc4..00000000 --- a/asn.1/generated/SupportedWLANApsList.c +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SupportedWLANApsList.h" - -static int -memb_supportedWLANApDataList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 128)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_supportedWLANApDataList_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 7, 7, 1, 128 } /* (SIZE(1..128)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_supportedWLANApDataList_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 7, 7, 1, 128 } /* (SIZE(1..128)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_supportedWLANApDataList_2[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_SupportedWLANApData, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_supportedWLANApDataList_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_supportedWLANApDataList_specs_2 = { - sizeof(struct SupportedWLANApsList__supportedWLANApDataList), - offsetof(struct SupportedWLANApsList__supportedWLANApDataList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_supportedWLANApDataList_2 = { - "supportedWLANApDataList", - "supportedWLANApDataList", - &asn_OP_SEQUENCE_OF, - asn_DEF_supportedWLANApDataList_tags_2, - sizeof(asn_DEF_supportedWLANApDataList_tags_2) - /sizeof(asn_DEF_supportedWLANApDataList_tags_2[0]) - 1, /* 1 */ - asn_DEF_supportedWLANApDataList_tags_2, /* Same as above */ - sizeof(asn_DEF_supportedWLANApDataList_tags_2) - /sizeof(asn_DEF_supportedWLANApDataList_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_supportedWLANApDataList_constr_2, SEQUENCE_OF_constraint }, - asn_MBR_supportedWLANApDataList_2, - 1, /* Single element */ - &asn_SPC_supportedWLANApDataList_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_SupportedWLANApsList_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsList, supportedWLANApDataList), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_supportedWLANApDataList_2, - 0, - { 0, &asn_PER_memb_supportedWLANApDataList_constr_2, memb_supportedWLANApDataList_constraint_1 }, - 0, 0, /* No default value */ - "supportedWLANApDataList" - }, - { ATF_POINTER, 2, offsetof(struct SupportedWLANApsList, supportedWLANapsChannel11a), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SupportedWLANApsChannel11a, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "supportedWLANapsChannel11a" - }, - { ATF_POINTER, 1, offsetof(struct SupportedWLANApsList, supportedWLANapsChannel11bg), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SupportedWLANApsChannel11bg, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "supportedWLANapsChannel11bg" - }, -}; -static const int asn_MAP_SupportedWLANApsList_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_SupportedWLANApsList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SupportedWLANApsList_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* supportedWLANApDataList */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* supportedWLANapsChannel11a */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* supportedWLANapsChannel11bg */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SupportedWLANApsList_specs_1 = { - sizeof(struct SupportedWLANApsList), - offsetof(struct SupportedWLANApsList, _asn_ctx), - asn_MAP_SupportedWLANApsList_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_SupportedWLANApsList_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SupportedWLANApsList = { - "SupportedWLANApsList", - "SupportedWLANApsList", - &asn_OP_SEQUENCE, - asn_DEF_SupportedWLANApsList_tags_1, - sizeof(asn_DEF_SupportedWLANApsList_tags_1) - /sizeof(asn_DEF_SupportedWLANApsList_tags_1[0]), /* 1 */ - asn_DEF_SupportedWLANApsList_tags_1, /* Same as above */ - sizeof(asn_DEF_SupportedWLANApsList_tags_1) - /sizeof(asn_DEF_SupportedWLANApsList_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SupportedWLANApsList_1, - 3, /* Elements count */ - &asn_SPC_SupportedWLANApsList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/SupportedWLANInfo.c b/asn.1/generated/SupportedWLANInfo.c deleted file mode 100644 index 976b3d1b..00000000 --- a/asn.1/generated/SupportedWLANInfo.c +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "SupportedWLANInfo.h" - -asn_TYPE_member_t asn_MBR_SupportedWLANInfo_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, apTP), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "apTP" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, apAG), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "apAG" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, apSN), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "apSN" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, apDevType), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "apDevType" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, apRSSI), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "apRSSI" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, apChanFreq), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "apChanFreq" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, apRTD), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "apRTD" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, setTP), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "setTP" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, setAG), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "setAG" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, setSN), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "setSN" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, setRSSI), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "setRSSI" - }, - { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, apRepLoc), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "apRepLoc" - }, -}; -static const ber_tlv_tag_t asn_DEF_SupportedWLANInfo_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SupportedWLANInfo_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* apTP */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* apAG */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* apSN */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* apDevType */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* apRSSI */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* apChanFreq */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* apRTD */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* setTP */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* setAG */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* setSN */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* setRSSI */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* apRepLoc */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SupportedWLANInfo_specs_1 = { - sizeof(struct SupportedWLANInfo), - offsetof(struct SupportedWLANInfo, _asn_ctx), - asn_MAP_SupportedWLANInfo_tag2el_1, - 12, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 12, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SupportedWLANInfo = { - "SupportedWLANInfo", - "SupportedWLANInfo", - &asn_OP_SEQUENCE, - asn_DEF_SupportedWLANInfo_tags_1, - sizeof(asn_DEF_SupportedWLANInfo_tags_1) - /sizeof(asn_DEF_SupportedWLANInfo_tags_1[0]), /* 1 */ - asn_DEF_SupportedWLANInfo_tags_1, /* Same as above */ - sizeof(asn_DEF_SupportedWLANInfo_tags_1) - /sizeof(asn_DEF_SupportedWLANInfo_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_SupportedWLANInfo_1, - 12, /* Elements count */ - &asn_SPC_SupportedWLANInfo_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TAResolution.c b/asn.1/generated/TAResolution.c deleted file mode 100644 index 0a5fd441..00000000 --- a/asn.1/generated/TAResolution.c +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TAResolution.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_TAResolution_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_TAResolution_value2enum_1[] = { - { 0, 9, "res10chip" }, - { 1, 9, "res05chip" }, - { 2, 11, "res0125chip" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_TAResolution_enum2value_1[] = { - 2, /* res0125chip(2) */ - 1, /* res05chip(1) */ - 0 /* res10chip(0) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_TAResolution_specs_1 = { - asn_MAP_TAResolution_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_TAResolution_enum2value_1, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 4, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_TAResolution_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_TAResolution = { - "TAResolution", - "TAResolution", - &asn_OP_NativeEnumerated, - asn_DEF_TAResolution_tags_1, - sizeof(asn_DEF_TAResolution_tags_1) - /sizeof(asn_DEF_TAResolution_tags_1[0]), /* 1 */ - asn_DEF_TAResolution_tags_1, /* Same as above */ - sizeof(asn_DEF_TAResolution_tags_1) - /sizeof(asn_DEF_TAResolution_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_TAResolution_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_TAResolution_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TBS-AssistanceDataList-r14.c b/asn.1/generated/TBS-AssistanceDataList-r14.c deleted file mode 100644 index a5c2b49d..00000000 --- a/asn.1/generated/TBS-AssistanceDataList-r14.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TBS-AssistanceDataList-r14.h" - -asn_TYPE_member_t asn_MBR_TBS_AssistanceDataList_r14_1[] = { - { ATF_POINTER, 1, offsetof(struct TBS_AssistanceDataList_r14, mbs_AssistanceDataList_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MBS_AssistanceDataList_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mbs-AssistanceDataList-r14" - }, -}; -static const int asn_MAP_TBS_AssistanceDataList_r14_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_TBS_AssistanceDataList_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_TBS_AssistanceDataList_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* mbs-AssistanceDataList-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_TBS_AssistanceDataList_r14_specs_1 = { - sizeof(struct TBS_AssistanceDataList_r14), - offsetof(struct TBS_AssistanceDataList_r14, _asn_ctx), - asn_MAP_TBS_AssistanceDataList_r14_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_TBS_AssistanceDataList_r14_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_TBS_AssistanceDataList_r14 = { - "TBS-AssistanceDataList-r14", - "TBS-AssistanceDataList-r14", - &asn_OP_SEQUENCE, - asn_DEF_TBS_AssistanceDataList_r14_tags_1, - sizeof(asn_DEF_TBS_AssistanceDataList_r14_tags_1) - /sizeof(asn_DEF_TBS_AssistanceDataList_r14_tags_1[0]), /* 1 */ - asn_DEF_TBS_AssistanceDataList_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_TBS_AssistanceDataList_r14_tags_1) - /sizeof(asn_DEF_TBS_AssistanceDataList_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_TBS_AssistanceDataList_r14_1, - 1, /* Elements count */ - &asn_SPC_TBS_AssistanceDataList_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TBS-AssistanceDataList-r14.h b/asn.1/generated/TBS-AssistanceDataList-r14.h deleted file mode 100644 index cbe70964..00000000 --- a/asn.1/generated/TBS-AssistanceDataList-r14.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _TBS_AssistanceDataList_r14_H_ -#define _TBS_AssistanceDataList_r14_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct MBS_AssistanceDataList_r14; - -/* TBS-AssistanceDataList-r14 */ -typedef struct TBS_AssistanceDataList_r14 { - struct MBS_AssistanceDataList_r14 *mbs_AssistanceDataList_r14 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} TBS_AssistanceDataList_r14_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_TBS_AssistanceDataList_r14; -extern asn_SEQUENCE_specifics_t asn_SPC_TBS_AssistanceDataList_r14_specs_1; -extern asn_TYPE_member_t asn_MBR_TBS_AssistanceDataList_r14_1[1]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "MBS-AssistanceDataList-r14.h" - -#endif /* _TBS_AssistanceDataList_r14_H_ */ -#include diff --git a/asn.1/generated/TBS-Error-r13.c b/asn.1/generated/TBS-Error-r13.c deleted file mode 100644 index f3745693..00000000 --- a/asn.1/generated/TBS-Error-r13.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TBS-Error-r13.h" - -asn_per_constraints_t asn_PER_type_TBS_Error_r13_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_TBS_Error_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TBS_Error_r13, choice.locationServerErrorCauses_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TBS_LocationServerErrorCauses_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationServerErrorCauses-r13" - }, - { ATF_NOFLAGS, 0, offsetof(struct TBS_Error_r13, choice.targetDeviceErrorCauses_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TBS_TargetDeviceErrorCauses_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "targetDeviceErrorCauses-r13" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_TBS_Error_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses-r13 */ -}; -asn_CHOICE_specifics_t asn_SPC_TBS_Error_r13_specs_1 = { - sizeof(struct TBS_Error_r13), - offsetof(struct TBS_Error_r13, _asn_ctx), - offsetof(struct TBS_Error_r13, present), - sizeof(((struct TBS_Error_r13 *)0)->present), - asn_MAP_TBS_Error_r13_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_TBS_Error_r13 = { - "TBS-Error-r13", - "TBS-Error-r13", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_TBS_Error_r13_constr_1, CHOICE_constraint }, - asn_MBR_TBS_Error_r13_1, - 2, /* Elements count */ - &asn_SPC_TBS_Error_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TBS-LocationServerErrorCauses-r13.c b/asn.1/generated/TBS-LocationServerErrorCauses-r13.c deleted file mode 100644 index 90f26bb2..00000000 --- a/asn.1/generated/TBS-LocationServerErrorCauses-r13.c +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TBS-LocationServerErrorCauses-r13.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_r13_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_r13_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 40, "assistanceDataNotSupportedByServer-v1420" }, - { 2, 61, "assistanceDataSupportedButCurrentlyNotAvailableByServer-v1420" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_r13_enum2value_2[] = { - 1, /* assistanceDataNotSupportedByServer-v1420(1) */ - 2, /* assistanceDataSupportedButCurrentlyNotAvailableByServer-v1420(2) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_r13_specs_2 = { - asn_MAP_cause_r13_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_r13_enum2value_2, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 2, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_r13_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_r13_2 = { - "cause-r13", - "cause-r13", - &asn_OP_NativeEnumerated, - asn_DEF_cause_r13_tags_2, - sizeof(asn_DEF_cause_r13_tags_2) - /sizeof(asn_DEF_cause_r13_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_r13_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_r13_tags_2) - /sizeof(asn_DEF_cause_r13_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_r13_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_r13_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_TBS_LocationServerErrorCauses_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TBS_LocationServerErrorCauses_r13, cause_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_r13_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause-r13" - }, -}; -static const ber_tlv_tag_t asn_DEF_TBS_LocationServerErrorCauses_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_TBS_LocationServerErrorCauses_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause-r13 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_TBS_LocationServerErrorCauses_r13_specs_1 = { - sizeof(struct TBS_LocationServerErrorCauses_r13), - offsetof(struct TBS_LocationServerErrorCauses_r13, _asn_ctx), - asn_MAP_TBS_LocationServerErrorCauses_r13_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_TBS_LocationServerErrorCauses_r13 = { - "TBS-LocationServerErrorCauses-r13", - "TBS-LocationServerErrorCauses-r13", - &asn_OP_SEQUENCE, - asn_DEF_TBS_LocationServerErrorCauses_r13_tags_1, - sizeof(asn_DEF_TBS_LocationServerErrorCauses_r13_tags_1) - /sizeof(asn_DEF_TBS_LocationServerErrorCauses_r13_tags_1[0]), /* 1 */ - asn_DEF_TBS_LocationServerErrorCauses_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_TBS_LocationServerErrorCauses_r13_tags_1) - /sizeof(asn_DEF_TBS_LocationServerErrorCauses_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_TBS_LocationServerErrorCauses_r13_1, - 1, /* Elements count */ - &asn_SPC_TBS_LocationServerErrorCauses_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TBS-MeasurementInformation-r13.c b/asn.1/generated/TBS-MeasurementInformation-r13.c deleted file mode 100644 index 442edf6a..00000000 --- a/asn.1/generated/TBS-MeasurementInformation-r13.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TBS-MeasurementInformation-r13.h" - -asn_TYPE_member_t asn_MBR_TBS_MeasurementInformation_r13_1[] = { - { ATF_POINTER, 2, offsetof(struct TBS_MeasurementInformation_r13, measurementReferenceTime_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTCTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "measurementReferenceTime-r13" - }, - { ATF_POINTER, 1, offsetof(struct TBS_MeasurementInformation_r13, mbs_SgnMeasList_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MBS_BeaconMeasList_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mbs-SgnMeasList-r13" - }, -}; -static const int asn_MAP_TBS_MeasurementInformation_r13_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_TBS_MeasurementInformation_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_TBS_MeasurementInformation_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* measurementReferenceTime-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* mbs-SgnMeasList-r13 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_TBS_MeasurementInformation_r13_specs_1 = { - sizeof(struct TBS_MeasurementInformation_r13), - offsetof(struct TBS_MeasurementInformation_r13, _asn_ctx), - asn_MAP_TBS_MeasurementInformation_r13_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_TBS_MeasurementInformation_r13_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_TBS_MeasurementInformation_r13 = { - "TBS-MeasurementInformation-r13", - "TBS-MeasurementInformation-r13", - &asn_OP_SEQUENCE, - asn_DEF_TBS_MeasurementInformation_r13_tags_1, - sizeof(asn_DEF_TBS_MeasurementInformation_r13_tags_1) - /sizeof(asn_DEF_TBS_MeasurementInformation_r13_tags_1[0]), /* 1 */ - asn_DEF_TBS_MeasurementInformation_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_TBS_MeasurementInformation_r13_tags_1) - /sizeof(asn_DEF_TBS_MeasurementInformation_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_TBS_MeasurementInformation_r13_1, - 2, /* Elements count */ - &asn_SPC_TBS_MeasurementInformation_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TBS-MeasurementInformation-r13.h b/asn.1/generated/TBS-MeasurementInformation-r13.h deleted file mode 100644 index 594ffa50..00000000 --- a/asn.1/generated/TBS-MeasurementInformation-r13.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _TBS_MeasurementInformation_r13_H_ -#define _TBS_MeasurementInformation_r13_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct MBS_BeaconMeasList_r13; - -/* TBS-MeasurementInformation-r13 */ -typedef struct TBS_MeasurementInformation_r13 { - UTCTime_t *measurementReferenceTime_r13 /* OPTIONAL */; - struct MBS_BeaconMeasList_r13 *mbs_SgnMeasList_r13 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} TBS_MeasurementInformation_r13_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_TBS_MeasurementInformation_r13; -extern asn_SEQUENCE_specifics_t asn_SPC_TBS_MeasurementInformation_r13_specs_1; -extern asn_TYPE_member_t asn_MBR_TBS_MeasurementInformation_r13_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "MBS-BeaconMeasList-r13.h" - -#endif /* _TBS_MeasurementInformation_r13_H_ */ -#include diff --git a/asn.1/generated/TBS-ProvideAssistanceData-r14.c b/asn.1/generated/TBS-ProvideAssistanceData-r14.c deleted file mode 100644 index 40b2d8e1..00000000 --- a/asn.1/generated/TBS-ProvideAssistanceData-r14.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TBS-ProvideAssistanceData-r14.h" - -asn_TYPE_member_t asn_MBR_TBS_ProvideAssistanceData_r14_1[] = { - { ATF_POINTER, 2, offsetof(struct TBS_ProvideAssistanceData_r14, tbs_AssistanceDataList_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TBS_AssistanceDataList_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tbs-AssistanceDataList-r14" - }, - { ATF_POINTER, 1, offsetof(struct TBS_ProvideAssistanceData_r14, tbs_Error_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_TBS_Error_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tbs-Error-r14" - }, -}; -static const int asn_MAP_TBS_ProvideAssistanceData_r14_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_TBS_ProvideAssistanceData_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_TBS_ProvideAssistanceData_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tbs-AssistanceDataList-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tbs-Error-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_TBS_ProvideAssistanceData_r14_specs_1 = { - sizeof(struct TBS_ProvideAssistanceData_r14), - offsetof(struct TBS_ProvideAssistanceData_r14, _asn_ctx), - asn_MAP_TBS_ProvideAssistanceData_r14_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_TBS_ProvideAssistanceData_r14_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_TBS_ProvideAssistanceData_r14 = { - "TBS-ProvideAssistanceData-r14", - "TBS-ProvideAssistanceData-r14", - &asn_OP_SEQUENCE, - asn_DEF_TBS_ProvideAssistanceData_r14_tags_1, - sizeof(asn_DEF_TBS_ProvideAssistanceData_r14_tags_1) - /sizeof(asn_DEF_TBS_ProvideAssistanceData_r14_tags_1[0]), /* 1 */ - asn_DEF_TBS_ProvideAssistanceData_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_TBS_ProvideAssistanceData_r14_tags_1) - /sizeof(asn_DEF_TBS_ProvideAssistanceData_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_TBS_ProvideAssistanceData_r14_1, - 2, /* Elements count */ - &asn_SPC_TBS_ProvideAssistanceData_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TBS-ProvideAssistanceData-r14.h b/asn.1/generated/TBS-ProvideAssistanceData-r14.h deleted file mode 100644 index 8be71a7f..00000000 --- a/asn.1/generated/TBS-ProvideAssistanceData-r14.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _TBS_ProvideAssistanceData_r14_H_ -#define _TBS_ProvideAssistanceData_r14_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct TBS_AssistanceDataList_r14; -struct TBS_Error_r13; - -/* TBS-ProvideAssistanceData-r14 */ -typedef struct TBS_ProvideAssistanceData_r14 { - struct TBS_AssistanceDataList_r14 *tbs_AssistanceDataList_r14 /* OPTIONAL */; - struct TBS_Error_r13 *tbs_Error_r14 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} TBS_ProvideAssistanceData_r14_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_TBS_ProvideAssistanceData_r14; -extern asn_SEQUENCE_specifics_t asn_SPC_TBS_ProvideAssistanceData_r14_specs_1; -extern asn_TYPE_member_t asn_MBR_TBS_ProvideAssistanceData_r14_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "TBS-AssistanceDataList-r14.h" -#include "TBS-Error-r13.h" - -#endif /* _TBS_ProvideAssistanceData_r14_H_ */ -#include diff --git a/asn.1/generated/TBS-ProvideCapabilities-r13.c b/asn.1/generated/TBS-ProvideCapabilities-r13.c deleted file mode 100644 index a3dc5539..00000000 --- a/asn.1/generated/TBS-ProvideCapabilities-r13.c +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TBS-ProvideCapabilities-r13.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_mbs_ConfigSupport_r14_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_tbs_Modes_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_mbs_IdleStateForMeasurements_r14_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_mbs_ConfigSupport_r14_constr_10 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_tbs_Modes_r13_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_mbs_IdleStateForMeasurements_r14_value2enum_15[] = { - { 0, 8, "required" } -}; -static const unsigned int asn_MAP_mbs_IdleStateForMeasurements_r14_enum2value_15[] = { - 0 /* required(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_mbs_IdleStateForMeasurements_r14_specs_15 = { - asn_MAP_mbs_IdleStateForMeasurements_r14_value2enum_15, /* "tag" => N; sorted by tag */ - asn_MAP_mbs_IdleStateForMeasurements_r14_enum2value_15, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_mbs_IdleStateForMeasurements_r14_tags_15[] = { - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_mbs_IdleStateForMeasurements_r14_15 = { - "mbs-IdleStateForMeasurements-r14", - "mbs-IdleStateForMeasurements-r14", - &asn_OP_NativeEnumerated, - asn_DEF_mbs_IdleStateForMeasurements_r14_tags_15, - sizeof(asn_DEF_mbs_IdleStateForMeasurements_r14_tags_15) - /sizeof(asn_DEF_mbs_IdleStateForMeasurements_r14_tags_15[0]) - 1, /* 1 */ - asn_DEF_mbs_IdleStateForMeasurements_r14_tags_15, /* Same as above */ - sizeof(asn_DEF_mbs_IdleStateForMeasurements_r14_tags_15) - /sizeof(asn_DEF_mbs_IdleStateForMeasurements_r14_tags_15[0]), /* 2 */ - { 0, &asn_PER_type_mbs_IdleStateForMeasurements_r14_constr_15, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_mbs_IdleStateForMeasurements_r14_specs_15 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_7[] = { - { ATF_POINTER, 4, offsetof(struct TBS_ProvideCapabilities_r13__ext1, mbs_AssistanceDataSupportList_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MBS_AssistanceDataSupportList_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mbs-AssistanceDataSupportList-r14" - }, - { ATF_POINTER, 3, offsetof(struct TBS_ProvideCapabilities_r13__ext1, periodicalReportingSupported_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PositioningModes, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "periodicalReportingSupported-r14" - }, - { ATF_POINTER, 2, offsetof(struct TBS_ProvideCapabilities_r13__ext1, mbs_ConfigSupport_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_mbs_ConfigSupport_r14_constr_10, memb_mbs_ConfigSupport_r14_constraint_7 }, - 0, 0, /* No default value */ - "mbs-ConfigSupport-r14" - }, - { ATF_POINTER, 1, offsetof(struct TBS_ProvideCapabilities_r13__ext1, mbs_IdleStateForMeasurements_r14), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_mbs_IdleStateForMeasurements_r14_15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mbs-IdleStateForMeasurements-r14" - }, -}; -static const int asn_MAP_ext1_oms_7[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mbs-AssistanceDataSupportList-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* periodicalReportingSupported-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* mbs-ConfigSupport-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* mbs-IdleStateForMeasurements-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { - sizeof(struct TBS_ProvideCapabilities_r13__ext1), - offsetof(struct TBS_ProvideCapabilities_r13__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_7, - 4, /* Count of tags in the map */ - asn_MAP_ext1_oms_7, /* Optional members */ - 4, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_7 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_7, - sizeof(asn_DEF_ext1_tags_7) - /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_7, /* Same as above */ - sizeof(asn_DEF_ext1_tags_7) - /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_7, - 4, /* Elements count */ - &asn_SPC_ext1_specs_7 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_TBS_ProvideCapabilities_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TBS_ProvideCapabilities_r13, tbs_Modes_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_tbs_Modes_r13_constr_2, memb_tbs_Modes_r13_constraint_1 }, - 0, 0, /* No default value */ - "tbs-Modes-r13" - }, - { ATF_POINTER, 1, offsetof(struct TBS_ProvideCapabilities_r13, ext1), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_ext1_7, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_TBS_ProvideCapabilities_r13_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_TBS_ProvideCapabilities_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_TBS_ProvideCapabilities_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tbs-Modes-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_TBS_ProvideCapabilities_r13_specs_1 = { - sizeof(struct TBS_ProvideCapabilities_r13), - offsetof(struct TBS_ProvideCapabilities_r13, _asn_ctx), - asn_MAP_TBS_ProvideCapabilities_r13_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_TBS_ProvideCapabilities_r13_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_TBS_ProvideCapabilities_r13 = { - "TBS-ProvideCapabilities-r13", - "TBS-ProvideCapabilities-r13", - &asn_OP_SEQUENCE, - asn_DEF_TBS_ProvideCapabilities_r13_tags_1, - sizeof(asn_DEF_TBS_ProvideCapabilities_r13_tags_1) - /sizeof(asn_DEF_TBS_ProvideCapabilities_r13_tags_1[0]), /* 1 */ - asn_DEF_TBS_ProvideCapabilities_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_TBS_ProvideCapabilities_r13_tags_1) - /sizeof(asn_DEF_TBS_ProvideCapabilities_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_TBS_ProvideCapabilities_r13_1, - 2, /* Elements count */ - &asn_SPC_TBS_ProvideCapabilities_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TBS-ProvideCapabilities-r13.h b/asn.1/generated/TBS-ProvideCapabilities-r13.h deleted file mode 100644 index ad327e25..00000000 --- a/asn.1/generated/TBS-ProvideCapabilities-r13.h +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _TBS_ProvideCapabilities_r13_H_ -#define _TBS_ProvideCapabilities_r13_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum TBS_ProvideCapabilities_r13__tbs_Modes_r13 { - TBS_ProvideCapabilities_r13__tbs_Modes_r13_standalone = 0, - TBS_ProvideCapabilities_r13__tbs_Modes_r13_ue_assisted = 1, - TBS_ProvideCapabilities_r13__tbs_Modes_r13_ue_based = 2 -} e_TBS_ProvideCapabilities_r13__tbs_Modes_r13; -typedef enum TBS_ProvideCapabilities_r13__ext1__mbs_ConfigSupport_r14 { - TBS_ProvideCapabilities_r13__ext1__mbs_ConfigSupport_r14_tb1 = 0, - TBS_ProvideCapabilities_r13__ext1__mbs_ConfigSupport_r14_tb2 = 1, - TBS_ProvideCapabilities_r13__ext1__mbs_ConfigSupport_r14_tb3 = 2, - TBS_ProvideCapabilities_r13__ext1__mbs_ConfigSupport_r14_tb4 = 3 -} e_TBS_ProvideCapabilities_r13__ext1__mbs_ConfigSupport_r14; -typedef enum TBS_ProvideCapabilities_r13__ext1__mbs_IdleStateForMeasurements_r14 { - TBS_ProvideCapabilities_r13__ext1__mbs_IdleStateForMeasurements_r14_required = 0 -} e_TBS_ProvideCapabilities_r13__ext1__mbs_IdleStateForMeasurements_r14; - -/* Forward declarations */ -struct MBS_AssistanceDataSupportList_r14; -struct PositioningModes; - -/* TBS-ProvideCapabilities-r13 */ -typedef struct TBS_ProvideCapabilities_r13 { - BIT_STRING_t tbs_Modes_r13; - /* - * This type is extensible, - * possible extensions are below. - */ - struct TBS_ProvideCapabilities_r13__ext1 { - struct MBS_AssistanceDataSupportList_r14 *mbs_AssistanceDataSupportList_r14 /* OPTIONAL */; - struct PositioningModes *periodicalReportingSupported_r14 /* OPTIONAL */; - BIT_STRING_t *mbs_ConfigSupport_r14 /* OPTIONAL */; - long *mbs_IdleStateForMeasurements_r14 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *ext1; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} TBS_ProvideCapabilities_r13_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_mbs_IdleStateForMeasurements_r14_15; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_TBS_ProvideCapabilities_r13; -extern asn_SEQUENCE_specifics_t asn_SPC_TBS_ProvideCapabilities_r13_specs_1; -extern asn_TYPE_member_t asn_MBR_TBS_ProvideCapabilities_r13_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "MBS-AssistanceDataSupportList-r14.h" -#include "PositioningModes.h" - -#endif /* _TBS_ProvideCapabilities_r13_H_ */ -#include diff --git a/asn.1/generated/TBS-ProvideLocationInformation-r13.c b/asn.1/generated/TBS-ProvideLocationInformation-r13.c deleted file mode 100644 index 0934c8fd..00000000 --- a/asn.1/generated/TBS-ProvideLocationInformation-r13.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TBS-ProvideLocationInformation-r13.h" - -asn_TYPE_member_t asn_MBR_TBS_ProvideLocationInformation_r13_1[] = { - { ATF_POINTER, 2, offsetof(struct TBS_ProvideLocationInformation_r13, tbs_MeasurementInformation_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TBS_MeasurementInformation_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tbs-MeasurementInformation-r13" - }, - { ATF_POINTER, 1, offsetof(struct TBS_ProvideLocationInformation_r13, tbs_Error_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_TBS_Error_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tbs-Error-r13" - }, -}; -static const int asn_MAP_TBS_ProvideLocationInformation_r13_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_TBS_ProvideLocationInformation_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_TBS_ProvideLocationInformation_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tbs-MeasurementInformation-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tbs-Error-r13 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_TBS_ProvideLocationInformation_r13_specs_1 = { - sizeof(struct TBS_ProvideLocationInformation_r13), - offsetof(struct TBS_ProvideLocationInformation_r13, _asn_ctx), - asn_MAP_TBS_ProvideLocationInformation_r13_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_TBS_ProvideLocationInformation_r13_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_TBS_ProvideLocationInformation_r13 = { - "TBS-ProvideLocationInformation-r13", - "TBS-ProvideLocationInformation-r13", - &asn_OP_SEQUENCE, - asn_DEF_TBS_ProvideLocationInformation_r13_tags_1, - sizeof(asn_DEF_TBS_ProvideLocationInformation_r13_tags_1) - /sizeof(asn_DEF_TBS_ProvideLocationInformation_r13_tags_1[0]), /* 1 */ - asn_DEF_TBS_ProvideLocationInformation_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_TBS_ProvideLocationInformation_r13_tags_1) - /sizeof(asn_DEF_TBS_ProvideLocationInformation_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_TBS_ProvideLocationInformation_r13_1, - 2, /* Elements count */ - &asn_SPC_TBS_ProvideLocationInformation_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TBS-RequestAssistanceData-r14.c b/asn.1/generated/TBS-RequestAssistanceData-r14.c deleted file mode 100644 index a5349222..00000000 --- a/asn.1/generated/TBS-RequestAssistanceData-r14.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TBS-RequestAssistanceData-r14.h" - -asn_TYPE_member_t asn_MBR_TBS_RequestAssistanceData_r14_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TBS_RequestAssistanceData_r14, mbs_AlmanacAssistanceDataReq_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mbs-AlmanacAssistanceDataReq-r14" - }, - { ATF_NOFLAGS, 0, offsetof(struct TBS_RequestAssistanceData_r14, mbs_AcquisitionAssistanceDataReq_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mbs-AcquisitionAssistanceDataReq-r14" - }, -}; -static const ber_tlv_tag_t asn_DEF_TBS_RequestAssistanceData_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_TBS_RequestAssistanceData_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mbs-AlmanacAssistanceDataReq-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* mbs-AcquisitionAssistanceDataReq-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_TBS_RequestAssistanceData_r14_specs_1 = { - sizeof(struct TBS_RequestAssistanceData_r14), - offsetof(struct TBS_RequestAssistanceData_r14, _asn_ctx), - asn_MAP_TBS_RequestAssistanceData_r14_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_TBS_RequestAssistanceData_r14 = { - "TBS-RequestAssistanceData-r14", - "TBS-RequestAssistanceData-r14", - &asn_OP_SEQUENCE, - asn_DEF_TBS_RequestAssistanceData_r14_tags_1, - sizeof(asn_DEF_TBS_RequestAssistanceData_r14_tags_1) - /sizeof(asn_DEF_TBS_RequestAssistanceData_r14_tags_1[0]), /* 1 */ - asn_DEF_TBS_RequestAssistanceData_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_TBS_RequestAssistanceData_r14_tags_1) - /sizeof(asn_DEF_TBS_RequestAssistanceData_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_TBS_RequestAssistanceData_r14_1, - 2, /* Elements count */ - &asn_SPC_TBS_RequestAssistanceData_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TBS-RequestCapabilities-r13.c b/asn.1/generated/TBS-RequestCapabilities-r13.c deleted file mode 100644 index 6ed6d822..00000000 --- a/asn.1/generated/TBS-RequestCapabilities-r13.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TBS-RequestCapabilities-r13.h" - -static const ber_tlv_tag_t asn_DEF_TBS_RequestCapabilities_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_TBS_RequestCapabilities_r13_specs_1 = { - sizeof(struct TBS_RequestCapabilities_r13), - offsetof(struct TBS_RequestCapabilities_r13, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_TBS_RequestCapabilities_r13 = { - "TBS-RequestCapabilities-r13", - "TBS-RequestCapabilities-r13", - &asn_OP_SEQUENCE, - asn_DEF_TBS_RequestCapabilities_r13_tags_1, - sizeof(asn_DEF_TBS_RequestCapabilities_r13_tags_1) - /sizeof(asn_DEF_TBS_RequestCapabilities_r13_tags_1[0]), /* 1 */ - asn_DEF_TBS_RequestCapabilities_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_TBS_RequestCapabilities_r13_tags_1) - /sizeof(asn_DEF_TBS_RequestCapabilities_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_TBS_RequestCapabilities_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TBS-RequestLocationInformation-r13.c b/asn.1/generated/TBS-RequestLocationInformation-r13.c deleted file mode 100644 index 0db1bf33..00000000 --- a/asn.1/generated/TBS-RequestLocationInformation-r13.c +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TBS-RequestLocationInformation-r13.h" - -static int -memb_mbsRequestedMeasurements_r14_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_mbsRequestedMeasurements_r14_constr_6 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_ext1_4[] = { - { ATF_POINTER, 2, offsetof(struct TBS_RequestLocationInformation_r13__ext1, mbsAssistanceAvailability_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mbsAssistanceAvailability-r14" - }, - { ATF_POINTER, 1, offsetof(struct TBS_RequestLocationInformation_r13__ext1, mbsRequestedMeasurements_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_mbsRequestedMeasurements_r14_constr_6, memb_mbsRequestedMeasurements_r14_constraint_4 }, - 0, 0, /* No default value */ - "mbsRequestedMeasurements-r14" - }, -}; -static const int asn_MAP_ext1_oms_4[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mbsAssistanceAvailability-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* mbsRequestedMeasurements-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { - sizeof(struct TBS_RequestLocationInformation_r13__ext1), - offsetof(struct TBS_RequestLocationInformation_r13__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_4, - 2, /* Count of tags in the map */ - asn_MAP_ext1_oms_4, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_4 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_4, - sizeof(asn_DEF_ext1_tags_4) - /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_4, /* Same as above */ - sizeof(asn_DEF_ext1_tags_4) - /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_4, - 2, /* Elements count */ - &asn_SPC_ext1_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_TBS_RequestLocationInformation_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TBS_RequestLocationInformation_r13, mbsSgnMeasListReq_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "mbsSgnMeasListReq-r13" - }, - { ATF_POINTER, 1, offsetof(struct TBS_RequestLocationInformation_r13, ext1), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_ext1_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_TBS_RequestLocationInformation_r13_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_TBS_RequestLocationInformation_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_TBS_RequestLocationInformation_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mbsSgnMeasListReq-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_TBS_RequestLocationInformation_r13_specs_1 = { - sizeof(struct TBS_RequestLocationInformation_r13), - offsetof(struct TBS_RequestLocationInformation_r13, _asn_ctx), - asn_MAP_TBS_RequestLocationInformation_r13_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_TBS_RequestLocationInformation_r13_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_TBS_RequestLocationInformation_r13 = { - "TBS-RequestLocationInformation-r13", - "TBS-RequestLocationInformation-r13", - &asn_OP_SEQUENCE, - asn_DEF_TBS_RequestLocationInformation_r13_tags_1, - sizeof(asn_DEF_TBS_RequestLocationInformation_r13_tags_1) - /sizeof(asn_DEF_TBS_RequestLocationInformation_r13_tags_1[0]), /* 1 */ - asn_DEF_TBS_RequestLocationInformation_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_TBS_RequestLocationInformation_r13_tags_1) - /sizeof(asn_DEF_TBS_RequestLocationInformation_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_TBS_RequestLocationInformation_r13_1, - 2, /* Elements count */ - &asn_SPC_TBS_RequestLocationInformation_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TBS-TargetDeviceErrorCauses-r13.c b/asn.1/generated/TBS-TargetDeviceErrorCauses-r13.c deleted file mode 100644 index fc184a36..00000000 --- a/asn.1/generated/TBS-TargetDeviceErrorCauses-r13.c +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TBS-TargetDeviceErrorCauses-r13.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_r13_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_r13_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 36, "thereWereNotEnoughMBSBeaconsReceived" }, - { 2, 27, "assistanceDataMissing-v1420" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_r13_enum2value_2[] = { - 2, /* assistanceDataMissing-v1420(2) */ - 1, /* thereWereNotEnoughMBSBeaconsReceived(1) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_r13_specs_2 = { - asn_MAP_cause_r13_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_r13_enum2value_2, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_r13_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_r13_2 = { - "cause-r13", - "cause-r13", - &asn_OP_NativeEnumerated, - asn_DEF_cause_r13_tags_2, - sizeof(asn_DEF_cause_r13_tags_2) - /sizeof(asn_DEF_cause_r13_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_r13_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_r13_tags_2) - /sizeof(asn_DEF_cause_r13_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_r13_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_r13_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_TBS_TargetDeviceErrorCauses_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TBS_TargetDeviceErrorCauses_r13, cause_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_r13_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause-r13" - }, -}; -static const ber_tlv_tag_t asn_DEF_TBS_TargetDeviceErrorCauses_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_TBS_TargetDeviceErrorCauses_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause-r13 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_TBS_TargetDeviceErrorCauses_r13_specs_1 = { - sizeof(struct TBS_TargetDeviceErrorCauses_r13), - offsetof(struct TBS_TargetDeviceErrorCauses_r13, _asn_ctx), - asn_MAP_TBS_TargetDeviceErrorCauses_r13_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_TBS_TargetDeviceErrorCauses_r13 = { - "TBS-TargetDeviceErrorCauses-r13", - "TBS-TargetDeviceErrorCauses-r13", - &asn_OP_SEQUENCE, - asn_DEF_TBS_TargetDeviceErrorCauses_r13_tags_1, - sizeof(asn_DEF_TBS_TargetDeviceErrorCauses_r13_tags_1) - /sizeof(asn_DEF_TBS_TargetDeviceErrorCauses_r13_tags_1[0]), /* 1 */ - asn_DEF_TBS_TargetDeviceErrorCauses_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_TBS_TargetDeviceErrorCauses_r13_tags_1) - /sizeof(asn_DEF_TBS_TargetDeviceErrorCauses_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_TBS_TargetDeviceErrorCauses_r13_1, - 1, /* Elements count */ - &asn_SPC_TBS_TargetDeviceErrorCauses_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TDD-Config-v1520.c b/asn.1/generated/TDD-Config-v1520.c deleted file mode 100644 index bf050a94..00000000 --- a/asn.1/generated/TDD-Config-v1520.c +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TDD-Config-v1520.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_subframeAssignment_v1520_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_subframeAssignment_v1520_value2enum_2[] = { - { 0, 3, "sa0" }, - { 1, 3, "sa1" }, - { 2, 3, "sa2" }, - { 3, 3, "sa3" }, - { 4, 3, "sa4" }, - { 5, 3, "sa5" }, - { 6, 3, "sa6" } -}; -static const unsigned int asn_MAP_subframeAssignment_v1520_enum2value_2[] = { - 0, /* sa0(0) */ - 1, /* sa1(1) */ - 2, /* sa2(2) */ - 3, /* sa3(3) */ - 4, /* sa4(4) */ - 5, /* sa5(5) */ - 6 /* sa6(6) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_subframeAssignment_v1520_specs_2 = { - asn_MAP_subframeAssignment_v1520_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_subframeAssignment_v1520_enum2value_2, /* N => "tag"; sorted by N */ - 7, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_subframeAssignment_v1520_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_subframeAssignment_v1520_2 = { - "subframeAssignment-v1520", - "subframeAssignment-v1520", - &asn_OP_NativeEnumerated, - asn_DEF_subframeAssignment_v1520_tags_2, - sizeof(asn_DEF_subframeAssignment_v1520_tags_2) - /sizeof(asn_DEF_subframeAssignment_v1520_tags_2[0]) - 1, /* 1 */ - asn_DEF_subframeAssignment_v1520_tags_2, /* Same as above */ - sizeof(asn_DEF_subframeAssignment_v1520_tags_2) - /sizeof(asn_DEF_subframeAssignment_v1520_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_subframeAssignment_v1520_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_subframeAssignment_v1520_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_TDD_Config_v1520_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TDD_Config_v1520, subframeAssignment_v1520), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_subframeAssignment_v1520_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "subframeAssignment-v1520" - }, -}; -static const ber_tlv_tag_t asn_DEF_TDD_Config_v1520_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_TDD_Config_v1520_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* subframeAssignment-v1520 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_TDD_Config_v1520_specs_1 = { - sizeof(struct TDD_Config_v1520), - offsetof(struct TDD_Config_v1520, _asn_ctx), - asn_MAP_TDD_Config_v1520_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_TDD_Config_v1520 = { - "TDD-Config-v1520", - "TDD-Config-v1520", - &asn_OP_SEQUENCE, - asn_DEF_TDD_Config_v1520_tags_1, - sizeof(asn_DEF_TDD_Config_v1520_tags_1) - /sizeof(asn_DEF_TDD_Config_v1520_tags_1[0]), /* 1 */ - asn_DEF_TDD_Config_v1520_tags_1, /* Same as above */ - sizeof(asn_DEF_TDD_Config_v1520_tags_1) - /sizeof(asn_DEF_TDD_Config_v1520_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_TDD_Config_v1520_1, - 1, /* Elements count */ - &asn_SPC_TDD_Config_v1520_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TGSN.c b/asn.1/generated/TGSN.c deleted file mode 100644 index adcb292b..00000000 --- a/asn.1/generated/TGSN.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TGSN.h" - -int -TGSN_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 14)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_TGSN_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 14 } /* (0..14) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_TGSN_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_TGSN = { - "TGSN", - "TGSN", - &asn_OP_NativeInteger, - asn_DEF_TGSN_tags_1, - sizeof(asn_DEF_TGSN_tags_1) - /sizeof(asn_DEF_TGSN_tags_1[0]), /* 1 */ - asn_DEF_TGSN_tags_1, /* Same as above */ - sizeof(asn_DEF_TGSN_tags_1) - /sizeof(asn_DEF_TGSN_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_TGSN_constr_1, TGSN_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/TGSN.h b/asn.1/generated/TGSN.h deleted file mode 100644 index 8594d71c..00000000 --- a/asn.1/generated/TGSN.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _TGSN_H_ -#define _TGSN_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* TGSN */ -typedef long TGSN_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_TGSN_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_TGSN; -asn_struct_free_f TGSN_free; -asn_struct_print_f TGSN_print; -asn_constr_check_f TGSN_constraint; -ber_type_decoder_f TGSN_decode_ber; -der_type_encoder_f TGSN_encode_der; -xer_type_decoder_f TGSN_decode_xer; -xer_type_encoder_f TGSN_encode_xer; -per_type_decoder_f TGSN_decode_uper; -per_type_encoder_f TGSN_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _TGSN_H_ */ -#include diff --git a/asn.1/generated/TRP-ID-r16.c b/asn.1/generated/TRP-ID-r16.c deleted file mode 100644 index e717af78..00000000 --- a/asn.1/generated/TRP-ID-r16.c +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TRP-ID-r16.h" - -static int -memb_dl_PRS_ID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_dl_PRS_ID_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_TRP_ID_r16_1[] = { - { ATF_POINTER, 4, offsetof(struct TRP_ID_r16, dl_PRS_ID_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_dl_PRS_ID_r16_constr_2, memb_dl_PRS_ID_r16_constraint_1 }, - 0, 0, /* No default value */ - "dl-PRS-ID-r16" - }, - { ATF_POINTER, 3, offsetof(struct TRP_ID_r16, nr_PhysCellId_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NR_PhysCellId_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-PhysCellId-r16" - }, - { ATF_POINTER, 2, offsetof(struct TRP_ID_r16, nr_CellGlobalId_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NCGI_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nr-CellGlobalId-r16" - }, - { ATF_POINTER, 1, offsetof(struct TRP_ID_r16, nrARFCNRef_r16), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ARFCN_ValueNR_r15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "nrARFCNRef-r16" - }, -}; -static const int asn_MAP_TRP_ID_r16_oms_1[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_TRP_ID_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_TRP_ID_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ID-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PhysCellId-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-CellGlobalId-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* nrARFCNRef-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_TRP_ID_r16_specs_1 = { - sizeof(struct TRP_ID_r16), - offsetof(struct TRP_ID_r16, _asn_ctx), - asn_MAP_TRP_ID_r16_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_TRP_ID_r16_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_TRP_ID_r16 = { - "TRP-ID-r16", - "TRP-ID-r16", - &asn_OP_SEQUENCE, - asn_DEF_TRP_ID_r16_tags_1, - sizeof(asn_DEF_TRP_ID_r16_tags_1) - /sizeof(asn_DEF_TRP_ID_r16_tags_1[0]), /* 1 */ - asn_DEF_TRP_ID_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_TRP_ID_r16_tags_1) - /sizeof(asn_DEF_TRP_ID_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_TRP_ID_r16_1, - 4, /* Elements count */ - &asn_SPC_TRP_ID_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TRP-ID-r16.h b/asn.1/generated/TRP-ID-r16.h deleted file mode 100644 index de7036d6..00000000 --- a/asn.1/generated/TRP-ID-r16.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _TRP_ID_r16_H_ -#define _TRP_ID_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include "ARFCN-ValueNR-r15.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct NR_PhysCellId_r16; -struct NCGI_r15; - -/* TRP-ID-r16 */ -typedef struct TRP_ID_r16 { - long *dl_PRS_ID_r16 /* OPTIONAL */; - struct NR_PhysCellId_r16 *nr_PhysCellId_r16 /* OPTIONAL */; - struct NCGI_r15 *nr_CellGlobalId_r16 /* OPTIONAL */; - ARFCN_ValueNR_r15_t *nrARFCNRef_r16 /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} TRP_ID_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_TRP_ID_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_TRP_ID_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_TRP_ID_r16_1[4]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "NR-PhysCellId-r16.h" -#include "NCGI-r15.h" - -#endif /* _TRP_ID_r16_H_ */ -#include diff --git a/asn.1/generated/TRP-LocationInfoElement-r16.c b/asn.1/generated/TRP-LocationInfoElement-r16.c deleted file mode 100644 index 1c084988..00000000 --- a/asn.1/generated/TRP-LocationInfoElement-r16.c +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TRP-LocationInfoElement-r16.h" - -static int -memb_trp_DL_PRS_ResourceSets_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 2)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_trp_DL_PRS_ResourceSets_r16_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_trp_DL_PRS_ResourceSets_r16_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_trp_DL_PRS_ResourceSets_r16_4[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_trp_DL_PRS_ResourceSets_r16_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_trp_DL_PRS_ResourceSets_r16_specs_4 = { - sizeof(struct TRP_LocationInfoElement_r16__trp_DL_PRS_ResourceSets_r16), - offsetof(struct TRP_LocationInfoElement_r16__trp_DL_PRS_ResourceSets_r16, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_trp_DL_PRS_ResourceSets_r16_4 = { - "trp-DL-PRS-ResourceSets-r16", - "trp-DL-PRS-ResourceSets-r16", - &asn_OP_SEQUENCE_OF, - asn_DEF_trp_DL_PRS_ResourceSets_r16_tags_4, - sizeof(asn_DEF_trp_DL_PRS_ResourceSets_r16_tags_4) - /sizeof(asn_DEF_trp_DL_PRS_ResourceSets_r16_tags_4[0]) - 1, /* 1 */ - asn_DEF_trp_DL_PRS_ResourceSets_r16_tags_4, /* Same as above */ - sizeof(asn_DEF_trp_DL_PRS_ResourceSets_r16_tags_4) - /sizeof(asn_DEF_trp_DL_PRS_ResourceSets_r16_tags_4[0]), /* 2 */ - { 0, &asn_PER_type_trp_DL_PRS_ResourceSets_r16_constr_4, SEQUENCE_OF_constraint }, - asn_MBR_trp_DL_PRS_ResourceSets_r16_4, - 1, /* Single element */ - &asn_SPC_trp_DL_PRS_ResourceSets_r16_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_TRP_LocationInfoElement_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TRP_LocationInfoElement_r16, trp_id_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TRP_ID_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "trp-id-r16" - }, - { ATF_POINTER, 2, offsetof(struct TRP_LocationInfoElement_r16, trp_Location_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RelativeLocation_r16, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "trp-Location-r16" - }, - { ATF_POINTER, 1, offsetof(struct TRP_LocationInfoElement_r16, trp_DL_PRS_ResourceSets_r16), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_trp_DL_PRS_ResourceSets_r16_4, - 0, - { 0, &asn_PER_memb_trp_DL_PRS_ResourceSets_r16_constr_4, memb_trp_DL_PRS_ResourceSets_r16_constraint_1 }, - 0, 0, /* No default value */ - "trp-DL-PRS-ResourceSets-r16" - }, -}; -static const int asn_MAP_TRP_LocationInfoElement_r16_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_TRP_LocationInfoElement_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_TRP_LocationInfoElement_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* trp-id-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* trp-Location-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* trp-DL-PRS-ResourceSets-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_TRP_LocationInfoElement_r16_specs_1 = { - sizeof(struct TRP_LocationInfoElement_r16), - offsetof(struct TRP_LocationInfoElement_r16, _asn_ctx), - asn_MAP_TRP_LocationInfoElement_r16_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_TRP_LocationInfoElement_r16_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_TRP_LocationInfoElement_r16 = { - "TRP-LocationInfoElement-r16", - "TRP-LocationInfoElement-r16", - &asn_OP_SEQUENCE, - asn_DEF_TRP_LocationInfoElement_r16_tags_1, - sizeof(asn_DEF_TRP_LocationInfoElement_r16_tags_1) - /sizeof(asn_DEF_TRP_LocationInfoElement_r16_tags_1[0]), /* 1 */ - asn_DEF_TRP_LocationInfoElement_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_TRP_LocationInfoElement_r16_tags_1) - /sizeof(asn_DEF_TRP_LocationInfoElement_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_TRP_LocationInfoElement_r16_1, - 3, /* Elements count */ - &asn_SPC_TRP_LocationInfoElement_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TRP-LocationInfoElement-r16.h b/asn.1/generated/TRP-LocationInfoElement-r16.h deleted file mode 100644 index 9b8f0704..00000000 --- a/asn.1/generated/TRP-LocationInfoElement-r16.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _TRP_LocationInfoElement_r16_H_ -#define _TRP_LocationInfoElement_r16_H_ - - -#include - -/* Including external dependencies */ -#include "TRP-ID-r16.h" -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct RelativeLocation_r16; -struct DL_PRS_ResourceSets_TRP_Element_r16; - -/* TRP-LocationInfoElement-r16 */ -typedef struct TRP_LocationInfoElement_r16 { - TRP_ID_r16_t trp_id_r16; - struct RelativeLocation_r16 *trp_Location_r16 /* OPTIONAL */; - struct TRP_LocationInfoElement_r16__trp_DL_PRS_ResourceSets_r16 { - A_SEQUENCE_OF(struct DL_PRS_ResourceSets_TRP_Element_r16) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *trp_DL_PRS_ResourceSets_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} TRP_LocationInfoElement_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_TRP_LocationInfoElement_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_TRP_LocationInfoElement_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_TRP_LocationInfoElement_r16_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "RelativeLocation-r16.h" -#include "DL-PRS-ResourceSets-TRP-Element-r16.h" - -#endif /* _TRP_LocationInfoElement_r16_H_ */ -#include diff --git a/asn.1/generated/ThirdParty.c b/asn.1/generated/ThirdParty.c deleted file mode 100644 index 5e5aead0..00000000 --- a/asn.1/generated/ThirdParty.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ThirdParty.h" - -asn_per_constraints_t asn_PER_type_ThirdParty_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_ThirdParty_1[] = { - { ATF_POINTER, 0, 0, - -1 /* Ambiguous tag (CHOICE?) */, - 0, - &asn_DEF_ThirdPartyID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_ThirdParty_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_ThirdParty_specs_1 = { - sizeof(struct ThirdParty), - offsetof(struct ThirdParty, _asn_ctx), - 2, /* XER encoding is XMLValueList */ -}; -asn_TYPE_descriptor_t asn_DEF_ThirdParty = { - "ThirdParty", - "ThirdParty", - &asn_OP_SEQUENCE_OF, - asn_DEF_ThirdParty_tags_1, - sizeof(asn_DEF_ThirdParty_tags_1) - /sizeof(asn_DEF_ThirdParty_tags_1[0]), /* 1 */ - asn_DEF_ThirdParty_tags_1, /* Same as above */ - sizeof(asn_DEF_ThirdParty_tags_1) - /sizeof(asn_DEF_ThirdParty_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_ThirdParty_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_ThirdParty_1, - 1, /* Single element */ - &asn_SPC_ThirdParty_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TimeStamp.c b/asn.1/generated/TimeStamp.c deleted file mode 100644 index d6d78c28..00000000 --- a/asn.1/generated/TimeStamp.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TimeStamp.h" - -static int -memb_relativeTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 31536000)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_relativeTime_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 25, -1, 0, 31536000 } /* (0..31536000) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_per_constraints_t asn_PER_type_TimeStamp_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_TimeStamp_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TimeStamp, choice.absoluteTime), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTCTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "absoluteTime" - }, - { ATF_NOFLAGS, 0, offsetof(struct TimeStamp, choice.relativeTime), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_relativeTime_constr_3, memb_relativeTime_constraint_1 }, - 0, 0, /* No default value */ - "relativeTime" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_TimeStamp_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* absoluteTime */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* relativeTime */ -}; -asn_CHOICE_specifics_t asn_SPC_TimeStamp_specs_1 = { - sizeof(struct TimeStamp), - offsetof(struct TimeStamp, _asn_ctx), - offsetof(struct TimeStamp, present), - sizeof(((struct TimeStamp *)0)->present), - asn_MAP_TimeStamp_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_TimeStamp = { - "TimeStamp", - "TimeStamp", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_TimeStamp_constr_1, CHOICE_constraint }, - asn_MBR_TimeStamp_1, - 2, /* Elements count */ - &asn_SPC_TimeStamp_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TimeWindow.c b/asn.1/generated/TimeWindow.c deleted file mode 100644 index 66c82482..00000000 --- a/asn.1/generated/TimeWindow.c +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TimeWindow.h" - -static int -memb_startTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -525600 && value <= -1)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_stopTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -525599 && value <= 0)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_startTime_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 20, -1, -525600, -1 } /* (-525600..-1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_stopTime_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 20, -1, -525599, 0 } /* (-525599..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_TimeWindow_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TimeWindow, startTime), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_startTime_constr_2, memb_startTime_constraint_1 }, - 0, 0, /* No default value */ - "startTime" - }, - { ATF_NOFLAGS, 0, offsetof(struct TimeWindow, stopTime), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_stopTime_constr_3, memb_stopTime_constraint_1 }, - 0, 0, /* No default value */ - "stopTime" - }, -}; -static const ber_tlv_tag_t asn_DEF_TimeWindow_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_TimeWindow_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* startTime */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* stopTime */ -}; -asn_SEQUENCE_specifics_t asn_SPC_TimeWindow_specs_1 = { - sizeof(struct TimeWindow), - offsetof(struct TimeWindow, _asn_ctx), - asn_MAP_TimeWindow_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_TimeWindow = { - "TimeWindow", - "TimeWindow", - &asn_OP_SEQUENCE, - asn_DEF_TimeWindow_tags_1, - sizeof(asn_DEF_TimeWindow_tags_1) - /sizeof(asn_DEF_TimeWindow_tags_1[0]), /* 1 */ - asn_DEF_TimeWindow_tags_1, /* Same as above */ - sizeof(asn_DEF_TimeWindow_tags_1) - /sizeof(asn_DEF_TimeWindow_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_TimeWindow_1, - 2, /* Elements count */ - &asn_SPC_TimeWindow_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TimeWindow.h b/asn.1/generated/TimeWindow.h deleted file mode 100644 index f125f52f..00000000 --- a/asn.1/generated/TimeWindow.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _TimeWindow_H_ -#define _TimeWindow_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* TimeWindow */ -typedef struct TimeWindow { - long startTime; - long stopTime; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} TimeWindow_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_TimeWindow; -extern asn_SEQUENCE_specifics_t asn_SPC_TimeWindow_specs_1; -extern asn_TYPE_member_t asn_MBR_TimeWindow_1[2]; - -#ifdef __cplusplus -} -#endif - -#endif /* _TimeWindow_H_ */ -#include diff --git a/asn.1/generated/TimeslotISCP-List.c b/asn.1/generated/TimeslotISCP-List.c deleted file mode 100644 index 36a90962..00000000 --- a/asn.1/generated/TimeslotISCP-List.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TimeslotISCP-List.h" - -asn_per_constraints_t asn_PER_type_TimeslotISCP_List_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 14 } /* (SIZE(1..14)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_TimeslotISCP_List_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_TimeslotISCP, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_TimeslotISCP_List_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_TimeslotISCP_List_specs_1 = { - sizeof(struct TimeslotISCP_List), - offsetof(struct TimeslotISCP_List, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_TimeslotISCP_List = { - "TimeslotISCP-List", - "TimeslotISCP-List", - &asn_OP_SEQUENCE_OF, - asn_DEF_TimeslotISCP_List_tags_1, - sizeof(asn_DEF_TimeslotISCP_List_tags_1) - /sizeof(asn_DEF_TimeslotISCP_List_tags_1[0]), /* 1 */ - asn_DEF_TimeslotISCP_List_tags_1, /* Same as above */ - sizeof(asn_DEF_TimeslotISCP_List_tags_1) - /sizeof(asn_DEF_TimeslotISCP_List_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_TimeslotISCP_List_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_TimeslotISCP_List_1, - 1, /* Single element */ - &asn_SPC_TimeslotISCP_List_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TimeslotISCP.c b/asn.1/generated/TimeslotISCP.c deleted file mode 100644 index f16c155b..00000000 --- a/asn.1/generated/TimeslotISCP.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TimeslotISCP.h" - -int -TimeslotISCP_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_TimeslotISCP_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_TimeslotISCP_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_TimeslotISCP = { - "TimeslotISCP", - "TimeslotISCP", - &asn_OP_NativeInteger, - asn_DEF_TimeslotISCP_tags_1, - sizeof(asn_DEF_TimeslotISCP_tags_1) - /sizeof(asn_DEF_TimeslotISCP_tags_1[0]), /* 1 */ - asn_DEF_TimeslotISCP_tags_1, /* Same as above */ - sizeof(asn_DEF_TimeslotISCP_tags_1) - /sizeof(asn_DEF_TimeslotISCP_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_TimeslotISCP_constr_1, TimeslotISCP_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/TimeslotISCP.h b/asn.1/generated/TimeslotISCP.h deleted file mode 100644 index 3762c43c..00000000 --- a/asn.1/generated/TimeslotISCP.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _TimeslotISCP_H_ -#define _TimeslotISCP_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* TimeslotISCP */ -typedef long TimeslotISCP_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_TimeslotISCP_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_TimeslotISCP; -asn_struct_free_f TimeslotISCP_free; -asn_struct_print_f TimeslotISCP_print; -asn_constr_check_f TimeslotISCP_constraint; -ber_type_decoder_f TimeslotISCP_decode_ber; -der_type_encoder_f TimeslotISCP_encode_der; -xer_type_decoder_f TimeslotISCP_decode_xer; -xer_type_encoder_f TimeslotISCP_encode_xer; -per_type_decoder_f TimeslotISCP_decode_uper; -per_type_encoder_f TimeslotISCP_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _TimeslotISCP_H_ */ -#include diff --git a/asn.1/generated/TimingAdvance.c b/asn.1/generated/TimingAdvance.c deleted file mode 100644 index 7d81036e..00000000 --- a/asn.1/generated/TimingAdvance.c +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TimingAdvance.h" - -static int -memb_tA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_tA_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, 0, 8191 } /* (0..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_TimingAdvance_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TimingAdvance, tA), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_tA_constr_2, memb_tA_constraint_1 }, - 0, 0, /* No default value */ - "tA" - }, - { ATF_POINTER, 2, offsetof(struct TimingAdvance, tAResolution), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TAResolution, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tAResolution" - }, - { ATF_POINTER, 1, offsetof(struct TimingAdvance, chipRate), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ChipRate, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "chipRate" - }, -}; -static const int asn_MAP_TimingAdvance_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_TimingAdvance_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_TimingAdvance_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tA */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tAResolution */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* chipRate */ -}; -asn_SEQUENCE_specifics_t asn_SPC_TimingAdvance_specs_1 = { - sizeof(struct TimingAdvance), - offsetof(struct TimingAdvance, _asn_ctx), - asn_MAP_TimingAdvance_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_TimingAdvance_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_TimingAdvance = { - "TimingAdvance", - "TimingAdvance", - &asn_OP_SEQUENCE, - asn_DEF_TimingAdvance_tags_1, - sizeof(asn_DEF_TimingAdvance_tags_1) - /sizeof(asn_DEF_TimingAdvance_tags_1[0]), /* 1 */ - asn_DEF_TimingAdvance_tags_1, /* Same as above */ - sizeof(asn_DEF_TimingAdvance_tags_1) - /sizeof(asn_DEF_TimingAdvance_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_TimingAdvance_1, - 3, /* Elements count */ - &asn_SPC_TimingAdvance_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TimingAdvance.h b/asn.1/generated/TimingAdvance.h deleted file mode 100644 index ea1d97cc..00000000 --- a/asn.1/generated/TimingAdvance.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _TimingAdvance_H_ -#define _TimingAdvance_H_ - - -#include - -/* Including external dependencies */ -#include -#include "TAResolution.h" -#include "ChipRate.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* TimingAdvance */ -typedef struct TimingAdvance { - long tA; - TAResolution_t *tAResolution /* OPTIONAL */; - ChipRate_t *chipRate /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} TimingAdvance_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_TimingAdvance; -extern asn_SEQUENCE_specifics_t asn_SPC_TimingAdvance_specs_1; -extern asn_TYPE_member_t asn_MBR_TimingAdvance_1[3]; - -#ifdef __cplusplus -} -#endif - -#endif /* _TimingAdvance_H_ */ -#include diff --git a/asn.1/generated/TrackingAreaCode.c b/asn.1/generated/TrackingAreaCode.c deleted file mode 100644 index 48d2bbd6..00000000 --- a/asn.1/generated/TrackingAreaCode.c +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TrackingAreaCode.h" - -int -TrackingAreaCode_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 16)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using BIT_STRING, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_TrackingAreaCode_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_TrackingAreaCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_TrackingAreaCode = { - "TrackingAreaCode", - "TrackingAreaCode", - &asn_OP_BIT_STRING, - asn_DEF_TrackingAreaCode_tags_1, - sizeof(asn_DEF_TrackingAreaCode_tags_1) - /sizeof(asn_DEF_TrackingAreaCode_tags_1[0]), /* 1 */ - asn_DEF_TrackingAreaCode_tags_1, /* Same as above */ - sizeof(asn_DEF_TrackingAreaCode_tags_1) - /sizeof(asn_DEF_TrackingAreaCode_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_TrackingAreaCode_constr_1, TrackingAreaCode_constraint }, - 0, 0, /* No members */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/asn.1/generated/TrackingAreaCode.h b/asn.1/generated/TrackingAreaCode.h deleted file mode 100644 index 45cd6295..00000000 --- a/asn.1/generated/TrackingAreaCode.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _TrackingAreaCode_H_ -#define _TrackingAreaCode_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* TrackingAreaCode */ -typedef BIT_STRING_t TrackingAreaCode_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_TrackingAreaCode_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_TrackingAreaCode; -asn_struct_free_f TrackingAreaCode_free; -asn_struct_print_f TrackingAreaCode_print; -asn_constr_check_f TrackingAreaCode_constraint; -ber_type_decoder_f TrackingAreaCode_decode_ber; -der_type_encoder_f TrackingAreaCode_encode_der; -xer_type_decoder_f TrackingAreaCode_decode_xer; -xer_type_encoder_f TrackingAreaCode_encode_xer; -per_type_decoder_f TrackingAreaCode_decode_uper; -per_type_encoder_f TrackingAreaCode_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _TrackingAreaCode_H_ */ -#include diff --git a/asn.1/generated/TransactionNumber.c b/asn.1/generated/TransactionNumber.c deleted file mode 100644 index 1e05c1e5..00000000 --- a/asn.1/generated/TransactionNumber.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TransactionNumber.h" - -int -TransactionNumber_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_TransactionNumber_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_TransactionNumber_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_TransactionNumber = { - "TransactionNumber", - "TransactionNumber", - &asn_OP_NativeInteger, - asn_DEF_TransactionNumber_tags_1, - sizeof(asn_DEF_TransactionNumber_tags_1) - /sizeof(asn_DEF_TransactionNumber_tags_1[0]), /* 1 */ - asn_DEF_TransactionNumber_tags_1, /* Same as above */ - sizeof(asn_DEF_TransactionNumber_tags_1) - /sizeof(asn_DEF_TransactionNumber_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_TransactionNumber_constr_1, TransactionNumber_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/TransactionNumber.h b/asn.1/generated/TransactionNumber.h deleted file mode 100644 index ed293af1..00000000 --- a/asn.1/generated/TransactionNumber.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _TransactionNumber_H_ -#define _TransactionNumber_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* TransactionNumber */ -typedef long TransactionNumber_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_TransactionNumber_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_TransactionNumber; -asn_struct_free_f TransactionNumber_free; -asn_struct_print_f TransactionNumber_print; -asn_constr_check_f TransactionNumber_constraint; -ber_type_decoder_f TransactionNumber_decode_ber; -der_type_encoder_f TransactionNumber_encode_der; -xer_type_decoder_f TransactionNumber_decode_xer; -xer_type_encoder_f TransactionNumber_encode_xer; -per_type_decoder_f TransactionNumber_decode_uper; -per_type_encoder_f TransactionNumber_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _TransactionNumber_H_ */ -#include diff --git a/asn.1/generated/TriggerParams.c b/asn.1/generated/TriggerParams.c deleted file mode 100644 index d8a7e5fd..00000000 --- a/asn.1/generated/TriggerParams.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TriggerParams.h" - -asn_per_constraints_t asn_PER_type_TriggerParams_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_TriggerParams_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TriggerParams, choice.periodicParams), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PeriodicParams, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "periodicParams" - }, - { ATF_NOFLAGS, 0, offsetof(struct TriggerParams, choice.areaEventParams), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AreaEventParams, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "areaEventParams" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_TriggerParams_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* periodicParams */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* areaEventParams */ -}; -asn_CHOICE_specifics_t asn_SPC_TriggerParams_specs_1 = { - sizeof(struct TriggerParams), - offsetof(struct TriggerParams, _asn_ctx), - offsetof(struct TriggerParams, present), - sizeof(((struct TriggerParams *)0)->present), - asn_MAP_TriggerParams_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_TriggerParams = { - "TriggerParams", - "TriggerParams", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_TriggerParams_constr_1, CHOICE_constraint }, - asn_MBR_TriggerParams_1, - 2, /* Elements count */ - &asn_SPC_TriggerParams_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TriggerType.c b/asn.1/generated/TriggerType.c deleted file mode 100644 index 3191d920..00000000 --- a/asn.1/generated/TriggerType.c +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TriggerType.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_TriggerType_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_TriggerType_value2enum_1[] = { - { 0, 8, "periodic" }, - { 1, 9, "areaEvent" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_TriggerType_enum2value_1[] = { - 1, /* areaEvent(1) */ - 0 /* periodic(0) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_TriggerType_specs_1 = { - asn_MAP_TriggerType_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_TriggerType_enum2value_1, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_TriggerType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_TriggerType = { - "TriggerType", - "TriggerType", - &asn_OP_NativeEnumerated, - asn_DEF_TriggerType_tags_1, - sizeof(asn_DEF_TriggerType_tags_1) - /sizeof(asn_DEF_TriggerType_tags_1[0]), /* 1 */ - asn_DEF_TriggerType_tags_1, /* Same as above */ - sizeof(asn_DEF_TriggerType_tags_1) - /sizeof(asn_DEF_TriggerType_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_TriggerType_constr_1, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_TriggerType_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TriggeredReportingCriteria.c b/asn.1/generated/TriggeredReportingCriteria.c deleted file mode 100644 index 4f5704c2..00000000 --- a/asn.1/generated/TriggeredReportingCriteria.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TriggeredReportingCriteria.h" - -asn_TYPE_member_t asn_MBR_TriggeredReportingCriteria_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TriggeredReportingCriteria, cellChange), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cellChange" - }, - { ATF_NOFLAGS, 0, offsetof(struct TriggeredReportingCriteria, reportingDuration), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ReportingDuration, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "reportingDuration" - }, -}; -static const ber_tlv_tag_t asn_DEF_TriggeredReportingCriteria_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_TriggeredReportingCriteria_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellChange */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* reportingDuration */ -}; -asn_SEQUENCE_specifics_t asn_SPC_TriggeredReportingCriteria_specs_1 = { - sizeof(struct TriggeredReportingCriteria), - offsetof(struct TriggeredReportingCriteria, _asn_ctx), - asn_MAP_TriggeredReportingCriteria_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_TriggeredReportingCriteria = { - "TriggeredReportingCriteria", - "TriggeredReportingCriteria", - &asn_OP_SEQUENCE, - asn_DEF_TriggeredReportingCriteria_tags_1, - sizeof(asn_DEF_TriggeredReportingCriteria_tags_1) - /sizeof(asn_DEF_TriggeredReportingCriteria_tags_1[0]), /* 1 */ - asn_DEF_TriggeredReportingCriteria_tags_1, /* Same as above */ - sizeof(asn_DEF_TriggeredReportingCriteria_tags_1) - /sizeof(asn_DEF_TriggeredReportingCriteria_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_TriggeredReportingCriteria_1, - 2, /* Elements count */ - &asn_SPC_TriggeredReportingCriteria_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TropospericDelayCorrection-r16.c b/asn.1/generated/TropospericDelayCorrection-r16.c deleted file mode 100644 index 8a8122f9..00000000 --- a/asn.1/generated/TropospericDelayCorrection-r16.c +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "TropospericDelayCorrection-r16.h" - -static int -memb_tropoHydroStaticVerticalDelay_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -256 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_tropoWetVerticalDelay_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_tropoHydroStaticVerticalDelay_r16_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, -256, 255 } /* (-256..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_tropoWetVerticalDelay_r16_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_TropospericDelayCorrection_r16_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TropospericDelayCorrection_r16, tropoHydroStaticVerticalDelay_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_tropoHydroStaticVerticalDelay_r16_constr_2, memb_tropoHydroStaticVerticalDelay_r16_constraint_1 }, - 0, 0, /* No default value */ - "tropoHydroStaticVerticalDelay-r16" - }, - { ATF_NOFLAGS, 0, offsetof(struct TropospericDelayCorrection_r16, tropoWetVerticalDelay_r16), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_tropoWetVerticalDelay_r16_constr_3, memb_tropoWetVerticalDelay_r16_constraint_1 }, - 0, 0, /* No default value */ - "tropoWetVerticalDelay-r16" - }, -}; -static const ber_tlv_tag_t asn_DEF_TropospericDelayCorrection_r16_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_TropospericDelayCorrection_r16_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tropoHydroStaticVerticalDelay-r16 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tropoWetVerticalDelay-r16 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_TropospericDelayCorrection_r16_specs_1 = { - sizeof(struct TropospericDelayCorrection_r16), - offsetof(struct TropospericDelayCorrection_r16, _asn_ctx), - asn_MAP_TropospericDelayCorrection_r16_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_TropospericDelayCorrection_r16 = { - "TropospericDelayCorrection-r16", - "TropospericDelayCorrection-r16", - &asn_OP_SEQUENCE, - asn_DEF_TropospericDelayCorrection_r16_tags_1, - sizeof(asn_DEF_TropospericDelayCorrection_r16_tags_1) - /sizeof(asn_DEF_TropospericDelayCorrection_r16_tags_1[0]), /* 1 */ - asn_DEF_TropospericDelayCorrection_r16_tags_1, /* Same as above */ - sizeof(asn_DEF_TropospericDelayCorrection_r16_tags_1) - /sizeof(asn_DEF_TropospericDelayCorrection_r16_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_TropospericDelayCorrection_r16_1, - 2, /* Elements count */ - &asn_SPC_TropospericDelayCorrection_r16_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/TropospericDelayCorrection-r16.h b/asn.1/generated/TropospericDelayCorrection-r16.h deleted file mode 100644 index 5d3457c7..00000000 --- a/asn.1/generated/TropospericDelayCorrection-r16.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _TropospericDelayCorrection_r16_H_ -#define _TropospericDelayCorrection_r16_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* TropospericDelayCorrection-r16 */ -typedef struct TropospericDelayCorrection_r16 { - long tropoHydroStaticVerticalDelay_r16; - long tropoWetVerticalDelay_r16; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} TropospericDelayCorrection_r16_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_TropospericDelayCorrection_r16; -extern asn_SEQUENCE_specifics_t asn_SPC_TropospericDelayCorrection_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_TropospericDelayCorrection_r16_1[2]; - -#ifdef __cplusplus -} -#endif - -#endif /* _TropospericDelayCorrection_r16_H_ */ -#include diff --git a/asn.1/generated/UARFCN.c b/asn.1/generated/UARFCN.c deleted file mode 100644 index c8d1373c..00000000 --- a/asn.1/generated/UARFCN.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "UARFCN.h" - -int -UARFCN_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_UARFCN_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_UARFCN_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_UARFCN = { - "UARFCN", - "UARFCN", - &asn_OP_NativeInteger, - asn_DEF_UARFCN_tags_1, - sizeof(asn_DEF_UARFCN_tags_1) - /sizeof(asn_DEF_UARFCN_tags_1[0]), /* 1 */ - asn_DEF_UARFCN_tags_1, /* Same as above */ - sizeof(asn_DEF_UARFCN_tags_1) - /sizeof(asn_DEF_UARFCN_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_UARFCN_constr_1, UARFCN_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/UARFCN.h b/asn.1/generated/UARFCN.h deleted file mode 100644 index 51587849..00000000 --- a/asn.1/generated/UARFCN.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _UARFCN_H_ -#define _UARFCN_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* UARFCN */ -typedef long UARFCN_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_UARFCN_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_UARFCN; -asn_struct_free_f UARFCN_free; -asn_struct_print_f UARFCN_print; -asn_constr_check_f UARFCN_constraint; -ber_type_decoder_f UARFCN_decode_ber; -der_type_encoder_f UARFCN_encode_der; -xer_type_decoder_f UARFCN_decode_xer; -xer_type_encoder_f UARFCN_encode_xer; -per_type_decoder_f UARFCN_decode_uper; -per_type_encoder_f UARFCN_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _UARFCN_H_ */ -#include diff --git a/asn.1/generated/ULP-MeasuredResultsList.c b/asn.1/generated/ULP-MeasuredResultsList.c deleted file mode 100644 index 10a14fc8..00000000 --- a/asn.1/generated/ULP-MeasuredResultsList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ULP-MeasuredResultsList.h" - -asn_per_constraints_t asn_PER_type_ULP_MeasuredResultsList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_ULP_MeasuredResultsList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_MeasuredResults, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_ULP_MeasuredResultsList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_ULP_MeasuredResultsList_specs_1 = { - sizeof(struct ULP_MeasuredResultsList), - offsetof(struct ULP_MeasuredResultsList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_ULP_MeasuredResultsList = { - "ULP-MeasuredResultsList", - "ULP-MeasuredResultsList", - &asn_OP_SEQUENCE_OF, - asn_DEF_ULP_MeasuredResultsList_tags_1, - sizeof(asn_DEF_ULP_MeasuredResultsList_tags_1) - /sizeof(asn_DEF_ULP_MeasuredResultsList_tags_1[0]), /* 1 */ - asn_DEF_ULP_MeasuredResultsList_tags_1, /* Same as above */ - sizeof(asn_DEF_ULP_MeasuredResultsList_tags_1) - /sizeof(asn_DEF_ULP_MeasuredResultsList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_ULP_MeasuredResultsList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_ULP_MeasuredResultsList_1, - 1, /* Single element */ - &asn_SPC_ULP_MeasuredResultsList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ULP-PDU.c b/asn.1/generated/ULP-PDU.c deleted file mode 100644 index 4adeecda..00000000 --- a/asn.1/generated/ULP-PDU.c +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP" - * found in "/home/martin/repos/LPP-Client/asn/ULP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ULP-PDU.h" - -static int -memb_length_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_length_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_ULP_PDU_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ULP_PDU, length), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_length_constr_2, memb_length_constraint_1 }, - 0, 0, /* No default value */ - "length" - }, - { ATF_NOFLAGS, 0, offsetof(struct ULP_PDU, version), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Version, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "version" - }, - { ATF_NOFLAGS, 0, offsetof(struct ULP_PDU, sessionID), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SessionID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sessionID" - }, - { ATF_NOFLAGS, 0, offsetof(struct ULP_PDU, message), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_UlpMessage, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "message" - }, -}; -static const ber_tlv_tag_t asn_DEF_ULP_PDU_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ULP_PDU_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* length */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* version */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sessionID */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* message */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ULP_PDU_specs_1 = { - sizeof(struct ULP_PDU), - offsetof(struct ULP_PDU, _asn_ctx), - asn_MAP_ULP_PDU_tag2el_1, - 4, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ULP_PDU = { - "ULP-PDU", - "ULP-PDU", - &asn_OP_SEQUENCE, - asn_DEF_ULP_PDU_tags_1, - sizeof(asn_DEF_ULP_PDU_tags_1) - /sizeof(asn_DEF_ULP_PDU_tags_1[0]), /* 1 */ - asn_DEF_ULP_PDU_tags_1, /* Same as above */ - sizeof(asn_DEF_ULP_PDU_tags_1) - /sizeof(asn_DEF_ULP_PDU_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ULP_PDU_1, - 4, /* Elements count */ - &asn_SPC_ULP_PDU_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/ULP-Velocity.c b/asn.1/generated/ULP-Velocity.c deleted file mode 100644 index eebb492f..00000000 --- a/asn.1/generated/ULP-Velocity.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "ULP-Velocity.h" - -asn_per_constraints_t asn_PER_type_ULP_Velocity_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_ULP_Velocity_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ULP_Velocity, choice.horvel), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Horvel, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "horvel" - }, - { ATF_NOFLAGS, 0, offsetof(struct ULP_Velocity, choice.horandvervel), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Horandvervel, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "horandvervel" - }, - { ATF_NOFLAGS, 0, offsetof(struct ULP_Velocity, choice.horveluncert), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Horveluncert, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "horveluncert" - }, - { ATF_NOFLAGS, 0, offsetof(struct ULP_Velocity, choice.horandveruncert), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Horandveruncert, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "horandveruncert" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_ULP_Velocity_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horvel */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horandvervel */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* horveluncert */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* horandveruncert */ -}; -asn_CHOICE_specifics_t asn_SPC_ULP_Velocity_specs_1 = { - sizeof(struct ULP_Velocity), - offsetof(struct ULP_Velocity, _asn_ctx), - offsetof(struct ULP_Velocity, present), - sizeof(((struct ULP_Velocity *)0)->present), - asn_MAP_ULP_Velocity_tag2el_1, - 4, /* Count of tags in the map */ - 0, 0, - 4 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_ULP_Velocity = { - "ULP-Velocity", - "ULP-Velocity", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_ULP_Velocity_constr_1, CHOICE_constraint }, - asn_MBR_ULP_Velocity_1, - 4, /* Elements count */ - &asn_SPC_ULP_Velocity_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/UMBAreaId.c b/asn.1/generated/UMBAreaId.c deleted file mode 100644 index 054ba149..00000000 --- a/asn.1/generated/UMBAreaId.c +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "UMBAreaId.h" - -static int -memb_refMCC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refMNC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refSECTORID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_refMCC_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refMNC_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refSECTORID_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_UMBAreaId_1[] = { - { ATF_POINTER, 3, offsetof(struct UMBAreaId, refMCC), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refMCC_constr_2, memb_refMCC_constraint_1 }, - 0, 0, /* No default value */ - "refMCC" - }, - { ATF_POINTER, 2, offsetof(struct UMBAreaId, refMNC), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refMNC_constr_3, memb_refMNC_constraint_1 }, - 0, 0, /* No default value */ - "refMNC" - }, - { ATF_POINTER, 1, offsetof(struct UMBAreaId, refSECTORID), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_refSECTORID_constr_4, memb_refSECTORID_constraint_1 }, - 0, 0, /* No default value */ - "refSECTORID" - }, -}; -static const int asn_MAP_UMBAreaId_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_UMBAreaId_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_UMBAreaId_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refMCC */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refMNC */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* refSECTORID */ -}; -asn_SEQUENCE_specifics_t asn_SPC_UMBAreaId_specs_1 = { - sizeof(struct UMBAreaId), - offsetof(struct UMBAreaId, _asn_ctx), - asn_MAP_UMBAreaId_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_UMBAreaId_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_UMBAreaId = { - "UMBAreaId", - "UMBAreaId", - &asn_OP_SEQUENCE, - asn_DEF_UMBAreaId_tags_1, - sizeof(asn_DEF_UMBAreaId_tags_1) - /sizeof(asn_DEF_UMBAreaId_tags_1[0]), /* 1 */ - asn_DEF_UMBAreaId_tags_1, /* Same as above */ - sizeof(asn_DEF_UMBAreaId_tags_1) - /sizeof(asn_DEF_UMBAreaId_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_UMBAreaId_1, - 3, /* Elements count */ - &asn_SPC_UMBAreaId_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/UMBAreaId.h b/asn.1/generated/UMBAreaId.h deleted file mode 100644 index fa565b2b..00000000 --- a/asn.1/generated/UMBAreaId.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _UMBAreaId_H_ -#define _UMBAreaId_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* UMBAreaId */ -typedef struct UMBAreaId { - long *refMCC /* OPTIONAL */; - long *refMNC /* OPTIONAL */; - BIT_STRING_t *refSECTORID /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} UMBAreaId_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_UMBAreaId; -extern asn_SEQUENCE_specifics_t asn_SPC_UMBAreaId_specs_1; -extern asn_TYPE_member_t asn_MBR_UMBAreaId_1[3]; - -#ifdef __cplusplus -} -#endif - -#endif /* _UMBAreaId_H_ */ -#include diff --git a/asn.1/generated/UTC-ModelSet1.c b/asn.1/generated/UTC-ModelSet1.c deleted file mode 100644 index 976da1d0..00000000 --- a/asn.1/generated/UTC-ModelSet1.c +++ /dev/null @@ -1,360 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "UTC-ModelSet1.h" - -static int -memb_gnss_Utc_A1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gnss_Utc_A0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gnss_Utc_Tot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gnss_Utc_WNt_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gnss_Utc_DeltaTls_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gnss_Utc_WNlsf_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gnss_Utc_DN_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gnss_Utc_DeltaTlsf_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gnss_Utc_A1_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_Utc_A0_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_Utc_Tot_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_Utc_WNt_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_Utc_DeltaTls_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_Utc_WNlsf_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_Utc_DN_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gnss_Utc_DeltaTlsf_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_UTC_ModelSet1_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet1, gnss_Utc_A1), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_Utc_A1_constr_2, memb_gnss_Utc_A1_constraint_1 }, - 0, 0, /* No default value */ - "gnss-Utc-A1" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet1, gnss_Utc_A0), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_Utc_A0_constr_3, memb_gnss_Utc_A0_constraint_1 }, - 0, 0, /* No default value */ - "gnss-Utc-A0" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet1, gnss_Utc_Tot), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_Utc_Tot_constr_4, memb_gnss_Utc_Tot_constraint_1 }, - 0, 0, /* No default value */ - "gnss-Utc-Tot" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet1, gnss_Utc_WNt), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_Utc_WNt_constr_5, memb_gnss_Utc_WNt_constraint_1 }, - 0, 0, /* No default value */ - "gnss-Utc-WNt" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet1, gnss_Utc_DeltaTls), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_Utc_DeltaTls_constr_6, memb_gnss_Utc_DeltaTls_constraint_1 }, - 0, 0, /* No default value */ - "gnss-Utc-DeltaTls" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet1, gnss_Utc_WNlsf), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_Utc_WNlsf_constr_7, memb_gnss_Utc_WNlsf_constraint_1 }, - 0, 0, /* No default value */ - "gnss-Utc-WNlsf" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet1, gnss_Utc_DN), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_Utc_DN_constr_8, memb_gnss_Utc_DN_constraint_1 }, - 0, 0, /* No default value */ - "gnss-Utc-DN" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet1, gnss_Utc_DeltaTlsf), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gnss_Utc_DeltaTlsf_constr_9, memb_gnss_Utc_DeltaTlsf_constraint_1 }, - 0, 0, /* No default value */ - "gnss-Utc-DeltaTlsf" - }, -}; -static const ber_tlv_tag_t asn_DEF_UTC_ModelSet1_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_UTC_ModelSet1_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-Utc-A1 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-Utc-A0 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-Utc-Tot */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-Utc-WNt */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-Utc-DeltaTls */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gnss-Utc-WNlsf */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnss-Utc-DN */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* gnss-Utc-DeltaTlsf */ -}; -asn_SEQUENCE_specifics_t asn_SPC_UTC_ModelSet1_specs_1 = { - sizeof(struct UTC_ModelSet1), - offsetof(struct UTC_ModelSet1, _asn_ctx), - asn_MAP_UTC_ModelSet1_tag2el_1, - 8, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 8, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_UTC_ModelSet1 = { - "UTC-ModelSet1", - "UTC-ModelSet1", - &asn_OP_SEQUENCE, - asn_DEF_UTC_ModelSet1_tags_1, - sizeof(asn_DEF_UTC_ModelSet1_tags_1) - /sizeof(asn_DEF_UTC_ModelSet1_tags_1[0]), /* 1 */ - asn_DEF_UTC_ModelSet1_tags_1, /* Same as above */ - sizeof(asn_DEF_UTC_ModelSet1_tags_1) - /sizeof(asn_DEF_UTC_ModelSet1_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_UTC_ModelSet1_1, - 8, /* Elements count */ - &asn_SPC_UTC_ModelSet1_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/UTC-ModelSet2.c b/asn.1/generated/UTC-ModelSet2.c deleted file mode 100644 index ca51b328..00000000 --- a/asn.1/generated/UTC-ModelSet2.c +++ /dev/null @@ -1,493 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "UTC-ModelSet2.h" - -static int -memb_utcWNlsf_ext_r16_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 256 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcA0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcA1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -4096 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcA2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -64 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcDeltaTls_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcTot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcWNot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcWNlsf_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcDN_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 4)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcDeltaTlsf_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_utcWNlsf_ext_r16_constr_13 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, 256, 8191 } /* (256..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcA0_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcA1_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcA2_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcDeltaTls_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcTot_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcWNot_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, 0, 8191 } /* (0..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcWNlsf_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcDN_constr_9 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcDeltaTlsf_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_ext1_12[] = { - { ATF_POINTER, 1, offsetof(struct UTC_ModelSet2__ext1, utcWNlsf_ext_r16), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcWNlsf_ext_r16_constr_13, memb_utcWNlsf_ext_r16_constraint_12 }, - 0, 0, /* No default value */ - "utcWNlsf-ext-r16" - }, -}; -static const int asn_MAP_ext1_oms_12[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_12[] = { - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_12[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* utcWNlsf-ext-r16 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_12 = { - sizeof(struct UTC_ModelSet2__ext1), - offsetof(struct UTC_ModelSet2__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_12, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_12, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_12 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_12, - sizeof(asn_DEF_ext1_tags_12) - /sizeof(asn_DEF_ext1_tags_12[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_12, /* Same as above */ - sizeof(asn_DEF_ext1_tags_12) - /sizeof(asn_DEF_ext1_tags_12[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_12, - 1, /* Elements count */ - &asn_SPC_ext1_specs_12 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_UTC_ModelSet2_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet2, utcA0), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcA0_constr_2, memb_utcA0_constraint_1 }, - 0, 0, /* No default value */ - "utcA0" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet2, utcA1), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcA1_constr_3, memb_utcA1_constraint_1 }, - 0, 0, /* No default value */ - "utcA1" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet2, utcA2), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcA2_constr_4, memb_utcA2_constraint_1 }, - 0, 0, /* No default value */ - "utcA2" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet2, utcDeltaTls), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcDeltaTls_constr_5, memb_utcDeltaTls_constraint_1 }, - 0, 0, /* No default value */ - "utcDeltaTls" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet2, utcTot), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcTot_constr_6, memb_utcTot_constraint_1 }, - 0, 0, /* No default value */ - "utcTot" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet2, utcWNot), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcWNot_constr_7, memb_utcWNot_constraint_1 }, - 0, 0, /* No default value */ - "utcWNot" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet2, utcWNlsf), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcWNlsf_constr_8, memb_utcWNlsf_constraint_1 }, - 0, 0, /* No default value */ - "utcWNlsf" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet2, utcDN), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_utcDN_constr_9, memb_utcDN_constraint_1 }, - 0, 0, /* No default value */ - "utcDN" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet2, utcDeltaTlsf), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcDeltaTlsf_constr_10, memb_utcDeltaTlsf_constraint_1 }, - 0, 0, /* No default value */ - "utcDeltaTlsf" - }, - { ATF_POINTER, 1, offsetof(struct UTC_ModelSet2, ext1), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - 0, - &asn_DEF_ext1_12, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_UTC_ModelSet2_oms_1[] = { 9 }; -static const ber_tlv_tag_t asn_DEF_UTC_ModelSet2_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_UTC_ModelSet2_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utcA0 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* utcA1 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* utcA2 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* utcDeltaTls */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* utcTot */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* utcWNot */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* utcWNlsf */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* utcDN */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* utcDeltaTlsf */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_UTC_ModelSet2_specs_1 = { - sizeof(struct UTC_ModelSet2), - offsetof(struct UTC_ModelSet2, _asn_ctx), - asn_MAP_UTC_ModelSet2_tag2el_1, - 10, /* Count of tags in the map */ - asn_MAP_UTC_ModelSet2_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 9, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_UTC_ModelSet2 = { - "UTC-ModelSet2", - "UTC-ModelSet2", - &asn_OP_SEQUENCE, - asn_DEF_UTC_ModelSet2_tags_1, - sizeof(asn_DEF_UTC_ModelSet2_tags_1) - /sizeof(asn_DEF_UTC_ModelSet2_tags_1[0]), /* 1 */ - asn_DEF_UTC_ModelSet2_tags_1, /* Same as above */ - sizeof(asn_DEF_UTC_ModelSet2_tags_1) - /sizeof(asn_DEF_UTC_ModelSet2_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_UTC_ModelSet2_1, - 10, /* Elements count */ - &asn_SPC_UTC_ModelSet2_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/UTC-ModelSet3.c b/asn.1/generated/UTC-ModelSet3.c deleted file mode 100644 index 0cbee182..00000000 --- a/asn.1/generated/UTC-ModelSet3.c +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "UTC-ModelSet3.h" - -static int -memb_nA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 1 && value <= 1461)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_tauC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_b1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -1024 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_b2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -512 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_kp_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 2)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_nA_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, 1, 1461 } /* (1..1461) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_tauC_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_b1_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_b2_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_kp_constr_6 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_UTC_ModelSet3_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet3, nA), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_nA_constr_2, memb_nA_constraint_1 }, - 0, 0, /* No default value */ - "nA" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet3, tauC), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_tauC_constr_3, memb_tauC_constraint_1 }, - 0, 0, /* No default value */ - "tauC" - }, - { ATF_POINTER, 3, offsetof(struct UTC_ModelSet3, b1), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_b1_constr_4, memb_b1_constraint_1 }, - 0, 0, /* No default value */ - "b1" - }, - { ATF_POINTER, 2, offsetof(struct UTC_ModelSet3, b2), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_b2_constr_5, memb_b2_constraint_1 }, - 0, 0, /* No default value */ - "b2" - }, - { ATF_POINTER, 1, offsetof(struct UTC_ModelSet3, kp), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_kp_constr_6, memb_kp_constraint_1 }, - 0, 0, /* No default value */ - "kp" - }, -}; -static const int asn_MAP_UTC_ModelSet3_oms_1[] = { 2, 3, 4 }; -static const ber_tlv_tag_t asn_DEF_UTC_ModelSet3_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_UTC_ModelSet3_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nA */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tauC */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* b1 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* b2 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* kp */ -}; -asn_SEQUENCE_specifics_t asn_SPC_UTC_ModelSet3_specs_1 = { - sizeof(struct UTC_ModelSet3), - offsetof(struct UTC_ModelSet3, _asn_ctx), - asn_MAP_UTC_ModelSet3_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_UTC_ModelSet3_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_UTC_ModelSet3 = { - "UTC-ModelSet3", - "UTC-ModelSet3", - &asn_OP_SEQUENCE, - asn_DEF_UTC_ModelSet3_tags_1, - sizeof(asn_DEF_UTC_ModelSet3_tags_1) - /sizeof(asn_DEF_UTC_ModelSet3_tags_1[0]), /* 1 */ - asn_DEF_UTC_ModelSet3_tags_1, /* Same as above */ - sizeof(asn_DEF_UTC_ModelSet3_tags_1) - /sizeof(asn_DEF_UTC_ModelSet3_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_UTC_ModelSet3_1, - 5, /* Elements count */ - &asn_SPC_UTC_ModelSet3_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/UTC-ModelSet3.h b/asn.1/generated/UTC-ModelSet3.h deleted file mode 100644 index b9e27458..00000000 --- a/asn.1/generated/UTC-ModelSet3.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _UTC_ModelSet3_H_ -#define _UTC_ModelSet3_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* UTC-ModelSet3 */ -typedef struct UTC_ModelSet3 { - long nA; - long tauC; - long *b1 /* OPTIONAL */; - long *b2 /* OPTIONAL */; - BIT_STRING_t *kp /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} UTC_ModelSet3_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_UTC_ModelSet3; -extern asn_SEQUENCE_specifics_t asn_SPC_UTC_ModelSet3_specs_1; -extern asn_TYPE_member_t asn_MBR_UTC_ModelSet3_1[5]; - -#ifdef __cplusplus -} -#endif - -#endif /* _UTC_ModelSet3_H_ */ -#include diff --git a/asn.1/generated/UTC-ModelSet4.c b/asn.1/generated/UTC-ModelSet4.c deleted file mode 100644 index c4063877..00000000 --- a/asn.1/generated/UTC-ModelSet4.c +++ /dev/null @@ -1,400 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "UTC-ModelSet4.h" - -static int -memb_utcA1wnt_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcA0wnt_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcTot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcWNt_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcDeltaTls_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcWNlsf_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcDN_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcDeltaTlsf_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcStandardID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 7)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_utcA1wnt_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcA0wnt_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcTot_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcWNt_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcDeltaTls_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcWNlsf_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcDN_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcDeltaTlsf_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcStandardID_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_UTC_ModelSet4_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet4, utcA1wnt), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcA1wnt_constr_2, memb_utcA1wnt_constraint_1 }, - 0, 0, /* No default value */ - "utcA1wnt" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet4, utcA0wnt), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcA0wnt_constr_3, memb_utcA0wnt_constraint_1 }, - 0, 0, /* No default value */ - "utcA0wnt" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet4, utcTot), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcTot_constr_4, memb_utcTot_constraint_1 }, - 0, 0, /* No default value */ - "utcTot" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet4, utcWNt), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcWNt_constr_5, memb_utcWNt_constraint_1 }, - 0, 0, /* No default value */ - "utcWNt" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet4, utcDeltaTls), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcDeltaTls_constr_6, memb_utcDeltaTls_constraint_1 }, - 0, 0, /* No default value */ - "utcDeltaTls" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet4, utcWNlsf), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcWNlsf_constr_7, memb_utcWNlsf_constraint_1 }, - 0, 0, /* No default value */ - "utcWNlsf" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet4, utcDN), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcDN_constr_8, memb_utcDN_constraint_1 }, - 0, 0, /* No default value */ - "utcDN" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet4, utcDeltaTlsf), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcDeltaTlsf_constr_9, memb_utcDeltaTlsf_constraint_1 }, - 0, 0, /* No default value */ - "utcDeltaTlsf" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet4, utcStandardID), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcStandardID_constr_10, memb_utcStandardID_constraint_1 }, - 0, 0, /* No default value */ - "utcStandardID" - }, -}; -static const ber_tlv_tag_t asn_DEF_UTC_ModelSet4_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_UTC_ModelSet4_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utcA1wnt */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* utcA0wnt */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* utcTot */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* utcWNt */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* utcDeltaTls */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* utcWNlsf */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* utcDN */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* utcDeltaTlsf */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* utcStandardID */ -}; -asn_SEQUENCE_specifics_t asn_SPC_UTC_ModelSet4_specs_1 = { - sizeof(struct UTC_ModelSet4), - offsetof(struct UTC_ModelSet4, _asn_ctx), - asn_MAP_UTC_ModelSet4_tag2el_1, - 9, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 9, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_UTC_ModelSet4 = { - "UTC-ModelSet4", - "UTC-ModelSet4", - &asn_OP_SEQUENCE, - asn_DEF_UTC_ModelSet4_tags_1, - sizeof(asn_DEF_UTC_ModelSet4_tags_1) - /sizeof(asn_DEF_UTC_ModelSet4_tags_1[0]), /* 1 */ - asn_DEF_UTC_ModelSet4_tags_1, /* Same as above */ - sizeof(asn_DEF_UTC_ModelSet4_tags_1) - /sizeof(asn_DEF_UTC_ModelSet4_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_UTC_ModelSet4_1, - 9, /* Elements count */ - &asn_SPC_UTC_ModelSet4_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/UTC-ModelSet5-r12.c b/asn.1/generated/UTC-ModelSet5-r12.c deleted file mode 100644 index fa975586..00000000 --- a/asn.1/generated/UTC-ModelSet5-r12.c +++ /dev/null @@ -1,280 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "UTC-ModelSet5-r12.h" - -static int -memb_utcA0_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= (-2147483647L - 1) && value <= 2147483647)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcA1_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -8388608 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcDeltaTls_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcWNlsf_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcDN_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utcDeltaTlsf_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -128 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_utcA0_r12_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcA1_r12_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcDeltaTls_r12_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcWNlsf_r12_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcDN_r12_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utcDeltaTlsf_r12_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_UTC_ModelSet5_r12_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet5_r12, utcA0_r12), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcA0_r12_constr_2, memb_utcA0_r12_constraint_1 }, - 0, 0, /* No default value */ - "utcA0-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet5_r12, utcA1_r12), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcA1_r12_constr_3, memb_utcA1_r12_constraint_1 }, - 0, 0, /* No default value */ - "utcA1-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet5_r12, utcDeltaTls_r12), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcDeltaTls_r12_constr_4, memb_utcDeltaTls_r12_constraint_1 }, - 0, 0, /* No default value */ - "utcDeltaTls-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet5_r12, utcWNlsf_r12), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcWNlsf_r12_constr_5, memb_utcWNlsf_r12_constraint_1 }, - 0, 0, /* No default value */ - "utcWNlsf-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet5_r12, utcDN_r12), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcDN_r12_constr_6, memb_utcDN_r12_constraint_1 }, - 0, 0, /* No default value */ - "utcDN-r12" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet5_r12, utcDeltaTlsf_r12), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcDeltaTlsf_r12_constr_7, memb_utcDeltaTlsf_r12_constraint_1 }, - 0, 0, /* No default value */ - "utcDeltaTlsf-r12" - }, -}; -static const ber_tlv_tag_t asn_DEF_UTC_ModelSet5_r12_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_UTC_ModelSet5_r12_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utcA0-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* utcA1-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* utcDeltaTls-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* utcWNlsf-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* utcDN-r12 */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* utcDeltaTlsf-r12 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_UTC_ModelSet5_r12_specs_1 = { - sizeof(struct UTC_ModelSet5_r12), - offsetof(struct UTC_ModelSet5_r12, _asn_ctx), - asn_MAP_UTC_ModelSet5_r12_tag2el_1, - 6, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_UTC_ModelSet5_r12 = { - "UTC-ModelSet5-r12", - "UTC-ModelSet5-r12", - &asn_OP_SEQUENCE, - asn_DEF_UTC_ModelSet5_r12_tags_1, - sizeof(asn_DEF_UTC_ModelSet5_r12_tags_1) - /sizeof(asn_DEF_UTC_ModelSet5_r12_tags_1[0]), /* 1 */ - asn_DEF_UTC_ModelSet5_r12_tags_1, /* Same as above */ - sizeof(asn_DEF_UTC_ModelSet5_r12_tags_1) - /sizeof(asn_DEF_UTC_ModelSet5_r12_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_UTC_ModelSet5_r12_1, - 6, /* Elements count */ - &asn_SPC_UTC_ModelSet5_r12_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/UTC-Time-r15.c b/asn.1/generated/UTC-Time-r15.c deleted file mode 100644 index bb2a11b0..00000000 --- a/asn.1/generated/UTC-Time-r15.c +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "UTC-Time-r15.h" - -static int -memb_utcTime_ms_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_utcTime_ms_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_UTC_Time_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTC_Time_r15, utcTime_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTCTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utcTime-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTC_Time_r15, utcTime_ms_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utcTime_ms_r15_constr_3, memb_utcTime_ms_r15_constraint_1 }, - 0, 0, /* No default value */ - "utcTime-ms-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_UTC_Time_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_UTC_Time_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utcTime-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* utcTime-ms-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_UTC_Time_r15_specs_1 = { - sizeof(struct UTC_Time_r15), - offsetof(struct UTC_Time_r15, _asn_ctx), - asn_MAP_UTC_Time_r15_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_UTC_Time_r15 = { - "UTC-Time-r15", - "UTC-Time-r15", - &asn_OP_SEQUENCE, - asn_DEF_UTC_Time_r15_tags_1, - sizeof(asn_DEF_UTC_Time_r15_tags_1) - /sizeof(asn_DEF_UTC_Time_r15_tags_1[0]), /* 1 */ - asn_DEF_UTC_Time_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_UTC_Time_r15_tags_1) - /sizeof(asn_DEF_UTC_Time_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_UTC_Time_r15_1, - 2, /* Elements count */ - &asn_SPC_UTC_Time_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/UTCTime.c b/asn.1/generated/UTCTime.c deleted file mode 100644 index ffbed58a..00000000 --- a/asn.1/generated/UTCTime.c +++ /dev/null @@ -1,273 +0,0 @@ -/*- - * Copyright (c) 2003, 2004 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include -#include -#include - -#ifdef __CYGWIN__ -#include "/usr/include/time.h" -#else -#include -#endif /* __CYGWIN__ */ - -#ifndef ASN___INTERNAL_TEST_MODE - -/* - * UTCTime basic type description. - */ -static const ber_tlv_tag_t asn_DEF_UTCTime_tags[] = { - (ASN_TAG_CLASS_UNIVERSAL | (23 << 2)), /* [UNIVERSAL 23] IMPLICIT ...*/ - (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), /* [UNIVERSAL 26] IMPLICIT ...*/ - (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ -}; -static asn_per_constraints_t asn_DEF_UTCTime_constraints = { - { APC_CONSTRAINED, 7, 7, 0x20, 0x7e }, /* Value */ - { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 }, /* Size */ - 0, 0 -}; -asn_TYPE_operation_t asn_OP_UTCTime = { - OCTET_STRING_free, - UTCTime_print, - UTCTime_compare, - OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ - OCTET_STRING_encode_der, /* Implemented in terms of OCTET STRING */ - OCTET_STRING_decode_xer_utf8, - UTCTime_encode_xer, -#ifdef ASN_DISABLE_OER_SUPPORT - 0, - 0, -#else - OCTET_STRING_decode_oer, - OCTET_STRING_encode_oer, -#endif /* ASN_DISABLE_OER_SUPPORT */ -#ifdef ASN_DISABLE_PER_SUPPORT - 0, - 0, -#else - OCTET_STRING_decode_uper, - OCTET_STRING_encode_uper, -#endif /* ASN_DISABLE_PER_SUPPORT */ - UTCTime_random_fill, - 0 /* Use generic outmost tag fetcher */ -}; -asn_TYPE_descriptor_t asn_DEF_UTCTime = { - "UTCTime", - "UTCTime", - &asn_OP_UTCTime, - asn_DEF_UTCTime_tags, - sizeof(asn_DEF_UTCTime_tags) - / sizeof(asn_DEF_UTCTime_tags[0]) - 2, - asn_DEF_UTCTime_tags, - sizeof(asn_DEF_UTCTime_tags) - / sizeof(asn_DEF_UTCTime_tags[0]), - { 0, &asn_DEF_UTCTime_constraints, UTCTime_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - -#endif /* ASN___INTERNAL_TEST_MODE */ - -/* - * Check that the time looks like the time. - */ -int -UTCTime_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const UTCTime_t *st = (const UTCTime_t *)sptr; - time_t tloc; - - errno = EPERM; /* Just an unlikely error code */ - tloc = asn_UT2time(st, 0, 0); - if(tloc == -1 && errno != EPERM) { - ASN__CTFAIL(app_key, td, sptr, "%s: Invalid time format: %s (%s:%d)", - td->name, strerror(errno), __FILE__, __LINE__); - return -1; - } - - return 0; -} - -#ifndef ASN___INTERNAL_TEST_MODE - -asn_enc_rval_t -UTCTime_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - if(flags & XER_F_CANONICAL) { - asn_enc_rval_t rv; - UTCTime_t *ut; - struct tm tm; - - errno = EPERM; - if(asn_UT2time((const UTCTime_t *)sptr, &tm, 1) == -1 - && errno != EPERM) - ASN__ENCODE_FAILED; - - /* Fractions are not allowed in UTCTime */ - ut = asn_time2UT(0, &tm, 1); - if(!ut) ASN__ENCODE_FAILED; - - rv = OCTET_STRING_encode_xer_utf8(td, sptr, ilevel, flags, - cb, app_key); - OCTET_STRING_free(&asn_DEF_UTCTime, ut, 0); - return rv; - } else { - return OCTET_STRING_encode_xer_utf8(td, sptr, ilevel, flags, - cb, app_key); - } -} - -#endif /* ASN___INTERNAL_TEST_MODE */ - -int -UTCTime_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, - asn_app_consume_bytes_f *cb, void *app_key) { - const UTCTime_t *st = (const UTCTime_t *)sptr; - - (void)td; /* Unused argument */ - (void)ilevel; /* Unused argument */ - - if(st && st->buf) { - char buf[32]; - struct tm tm; - int ret; - - errno = EPERM; - if(asn_UT2time(st, &tm, 1) == -1 && errno != EPERM) - return (cb("", 11, app_key) < 0) ? -1 : 0; - - ret = snprintf(buf, sizeof(buf), - "%04d-%02d-%02d %02d:%02d:%02d (GMT)", - tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, - tm.tm_hour, tm.tm_min, tm.tm_sec); - assert(ret > 0 && ret < (int)sizeof(buf)); - return (cb(buf, ret, app_key) < 0) ? -1 : 0; - } else { - return (cb("", 8, app_key) < 0) ? -1 : 0; - } -} - -time_t -asn_UT2time(const UTCTime_t *st, struct tm *_tm, int as_gmt) { - char buf[24]; /* "AAMMJJhhmmss+hhmm" + cushion */ - GeneralizedTime_t gt; - - if(!st || !st->buf - || st->size < 11 || st->size >= ((int)sizeof(buf) - 2)) { - errno = EINVAL; - return -1; - } - - gt.buf = (unsigned char *)buf; - gt.size = st->size + 2; - memcpy(gt.buf + 2, st->buf, st->size); - if(st->buf[0] > 0x35) { - /* 19xx */ - gt.buf[0] = 0x31; - gt.buf[1] = 0x39; - } else { - /* 20xx */ - gt.buf[0] = 0x32; - gt.buf[1] = 0x30; - } - - return asn_GT2time(>, _tm, as_gmt); -} - -UTCTime_t * -asn_time2UT(UTCTime_t *opt_ut, const struct tm *tm, int force_gmt) { - GeneralizedTime_t *gt = (GeneralizedTime_t *)opt_ut; - - gt = asn_time2GT(gt, tm, force_gmt); - if(gt == 0) return 0; - - assert(gt->size >= 2); - gt->size -= 2; - memmove(gt->buf, gt->buf + 2, gt->size + 1); - - return (UTCTime_t *)gt; -} - - -asn_random_fill_result_t -UTCTime_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constraints, - size_t max_length) { - asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - static const char *values[] = { - "700101000000", "700101000000-0000", "700101000000+0000", - "700101000000Z", "821106210623", "691106210827-0500", - "821106210629Z", - }; - size_t rnd = asn_random_between(0, sizeof(values)/sizeof(values[0])-1); - - (void)constraints; - - if(max_length < sizeof("yymmddhhmmss") && !*sptr) { - return result_skipped; - } - - if(*sptr) { - if(OCTET_STRING_fromBuf(*sptr, values[rnd], -1) != 0) { - if(!sptr) return result_failed; - } - } else { - *sptr = OCTET_STRING_new_fromBuf(td, values[rnd], -1); - if(!sptr) return result_failed; - } - - return result_ok; -} - -int -UTCTime_compare(const asn_TYPE_descriptor_t *td, const void *aptr, - const void *bptr) { - const GeneralizedTime_t *a = aptr; - const GeneralizedTime_t *b = bptr; - - (void)td; - - if(a && b) { - time_t at, bt; - int aerr, berr; - - errno = EPERM; - at = asn_UT2time(a, 0, 0); - aerr = errno; - errno = EPERM; - bt = asn_UT2time(b, 0, 0); - berr = errno; - - if(at == -1 && aerr != EPERM) { - if(bt == -1 && berr != EPERM) { - return OCTET_STRING_compare(td, aptr, bptr); - } else { - return -1; - } - } else if(bt == -1 && berr != EPERM) { - return 1; - } else { - /* Both values are valid. */ - } - - if(at < bt) { - return -1; - } else if(at > bt) { - return 1; - } else { - return 0; - } - } else if(!a && !b) { - return 0; - } else if(!a) { - return -1; - } else { - return 1; - } -} - diff --git a/asn.1/generated/UTCTime.h b/asn.1/generated/UTCTime.h deleted file mode 100644 index 3c5c0c47..00000000 --- a/asn.1/generated/UTCTime.h +++ /dev/null @@ -1,48 +0,0 @@ -/*- - * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef _UTCTime_H_ -#define _UTCTime_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef OCTET_STRING_t UTCTime_t; /* Implemented via OCTET STRING */ - -extern asn_TYPE_descriptor_t asn_DEF_UTCTime; -extern asn_TYPE_operation_t asn_OP_UTCTime; - -asn_struct_print_f UTCTime_print; -asn_struct_compare_f UTCTime_compare; -asn_constr_check_f UTCTime_constraint; -xer_type_encoder_f UTCTime_encode_xer; -asn_random_fill_f UTCTime_random_fill; - -#define UTCTime_free OCTET_STRING_free -#define UTCTime_decode_ber OCTET_STRING_decode_ber -#define UTCTime_encode_der OCTET_STRING_encode_der -#define UTCTime_decode_xer OCTET_STRING_decode_xer_utf8 -#define UTCTime_decode_uper OCTET_STRING_decode_uper -#define UTCTime_encode_uper OCTET_STRING_encode_uper - -/*********************** - * Some handy helpers. * - ***********************/ - -struct tm; /* */ - -/* See asn_GT2time() in GeneralizedTime.h */ -time_t asn_UT2time(const UTCTime_t *, struct tm *_optional_tm4fill, int as_gmt); - -/* See asn_time2GT() in GeneralizedTime.h */ -UTCTime_t *asn_time2UT(UTCTime_t *__opt_ut, const struct tm *, int force_gmt); - -#ifdef __cplusplus -} -#endif - -#endif /* _UTCTime_H_ */ diff --git a/asn.1/generated/UTRA-CarrierRSSI.c b/asn.1/generated/UTRA-CarrierRSSI.c deleted file mode 100644 index 5c67beb3..00000000 --- a/asn.1/generated/UTRA-CarrierRSSI.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "UTRA-CarrierRSSI.h" - -int -UTRA_CarrierRSSI_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_UTRA_CarrierRSSI_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_UTRA_CarrierRSSI_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_UTRA_CarrierRSSI = { - "UTRA-CarrierRSSI", - "UTRA-CarrierRSSI", - &asn_OP_NativeInteger, - asn_DEF_UTRA_CarrierRSSI_tags_1, - sizeof(asn_DEF_UTRA_CarrierRSSI_tags_1) - /sizeof(asn_DEF_UTRA_CarrierRSSI_tags_1[0]), /* 1 */ - asn_DEF_UTRA_CarrierRSSI_tags_1, /* Same as above */ - sizeof(asn_DEF_UTRA_CarrierRSSI_tags_1) - /sizeof(asn_DEF_UTRA_CarrierRSSI_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_UTRA_CarrierRSSI_constr_1, UTRA_CarrierRSSI_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/asn.1/generated/UTRA-CarrierRSSI.h b/asn.1/generated/UTRA-CarrierRSSI.h deleted file mode 100644 index 8a55f83b..00000000 --- a/asn.1/generated/UTRA-CarrierRSSI.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _UTRA_CarrierRSSI_H_ -#define _UTRA_CarrierRSSI_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* UTRA-CarrierRSSI */ -typedef long UTRA_CarrierRSSI_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_UTRA_CarrierRSSI_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_UTRA_CarrierRSSI; -asn_struct_free_f UTRA_CarrierRSSI_free; -asn_struct_print_f UTRA_CarrierRSSI_print; -asn_constr_check_f UTRA_CarrierRSSI_constraint; -ber_type_decoder_f UTRA_CarrierRSSI_decode_ber; -der_type_encoder_f UTRA_CarrierRSSI_encode_der; -xer_type_decoder_f UTRA_CarrierRSSI_decode_xer; -xer_type_encoder_f UTRA_CarrierRSSI_encode_xer; -per_type_decoder_f UTRA_CarrierRSSI_decode_uper; -per_type_encoder_f UTRA_CarrierRSSI_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _UTRA_CarrierRSSI_H_ */ -#include diff --git a/asn.1/generated/UTRAN-GANSSReferenceTime.c b/asn.1/generated/UTRAN-GANSSReferenceTime.c deleted file mode 100644 index 837c782f..00000000 --- a/asn.1/generated/UTRAN-GANSSReferenceTime.c +++ /dev/null @@ -1,352 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "UTRAN-GANSSReferenceTime.h" - -static int -memb_ganssTOD_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 86399)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_utran_GANSSTimingOfCell_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 3999999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_sfn_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ganss_TODUncertainty_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_modeSpecificInfo_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ganssTOD_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 17, -1, 0, 86399 } /* (0..86399) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_utran_GANSSTimingOfCell_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, 0, 3999999 } /* (0..3999999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sfn_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ganss_TODUncertainty_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_fdd_5[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo__fdd, referenceIdentity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PrimaryCPICH_Info, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceIdentity" - }, -}; -static const ber_tlv_tag_t asn_DEF_fdd_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_fdd_tag2el_5[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* referenceIdentity */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_fdd_specs_5 = { - sizeof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo__fdd), - offsetof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo__fdd, _asn_ctx), - asn_MAP_fdd_tag2el_5, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_fdd_5 = { - "fdd", - "fdd", - &asn_OP_SEQUENCE, - asn_DEF_fdd_tags_5, - sizeof(asn_DEF_fdd_tags_5) - /sizeof(asn_DEF_fdd_tags_5[0]) - 1, /* 1 */ - asn_DEF_fdd_tags_5, /* Same as above */ - sizeof(asn_DEF_fdd_tags_5) - /sizeof(asn_DEF_fdd_tags_5[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_fdd_5, - 1, /* Elements count */ - &asn_SPC_fdd_specs_5 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_tdd_7[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo__tdd, referenceIdentity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CellParametersID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceIdentity" - }, -}; -static const ber_tlv_tag_t asn_DEF_tdd_tags_7[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_tdd_tag2el_7[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* referenceIdentity */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_tdd_specs_7 = { - sizeof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo__tdd), - offsetof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo__tdd, _asn_ctx), - asn_MAP_tdd_tag2el_7, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_tdd_7 = { - "tdd", - "tdd", - &asn_OP_SEQUENCE, - asn_DEF_tdd_tags_7, - sizeof(asn_DEF_tdd_tags_7) - /sizeof(asn_DEF_tdd_tags_7[0]) - 1, /* 1 */ - asn_DEF_tdd_tags_7, /* Same as above */ - sizeof(asn_DEF_tdd_tags_7) - /sizeof(asn_DEF_tdd_tags_7[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_tdd_7, - 1, /* Elements count */ - &asn_SPC_tdd_specs_7 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_modeSpecificInfo_4[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo, choice.fdd), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_fdd_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "fdd" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo, choice.tdd), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_tdd_7, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tdd" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_modeSpecificInfo_tag2el_4[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */ -}; -static asn_CHOICE_specifics_t asn_SPC_modeSpecificInfo_specs_4 = { - sizeof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo), - offsetof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo, _asn_ctx), - offsetof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo, present), - sizeof(((struct UTRAN_GANSSReferenceTime__modeSpecificInfo *)0)->present), - asn_MAP_modeSpecificInfo_tag2el_4, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_modeSpecificInfo_4 = { - "modeSpecificInfo", - "modeSpecificInfo", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_modeSpecificInfo_constr_4, CHOICE_constraint }, - asn_MBR_modeSpecificInfo_4, - 2, /* Elements count */ - &asn_SPC_modeSpecificInfo_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_UTRAN_GANSSReferenceTime_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTime, ganssTOD), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ganssTOD_constr_2, memb_ganssTOD_constraint_1 }, - 0, 0, /* No default value */ - "ganssTOD" - }, - { ATF_POINTER, 2, offsetof(struct UTRAN_GANSSReferenceTime, utran_GANSSTimingOfCell), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_utran_GANSSTimingOfCell_constr_3, memb_utran_GANSSTimingOfCell_constraint_1 }, - 0, 0, /* No default value */ - "utran-GANSSTimingOfCell" - }, - { ATF_POINTER, 1, offsetof(struct UTRAN_GANSSReferenceTime, modeSpecificInfo), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_modeSpecificInfo_4, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "modeSpecificInfo" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTime, sfn), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sfn_constr_9, memb_sfn_constraint_1 }, - 0, 0, /* No default value */ - "sfn" - }, - { ATF_POINTER, 1, offsetof(struct UTRAN_GANSSReferenceTime, ganss_TODUncertainty), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ganss_TODUncertainty_constr_10, memb_ganss_TODUncertainty_constraint_1 }, - 0, 0, /* No default value */ - "ganss-TODUncertainty" - }, -}; -static const int asn_MAP_UTRAN_GANSSReferenceTime_oms_1[] = { 1, 2, 4 }; -static const ber_tlv_tag_t asn_DEF_UTRAN_GANSSReferenceTime_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_UTRAN_GANSSReferenceTime_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssTOD */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* utran-GANSSTimingOfCell */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* modeSpecificInfo */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* sfn */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ganss-TODUncertainty */ -}; -asn_SEQUENCE_specifics_t asn_SPC_UTRAN_GANSSReferenceTime_specs_1 = { - sizeof(struct UTRAN_GANSSReferenceTime), - offsetof(struct UTRAN_GANSSReferenceTime, _asn_ctx), - asn_MAP_UTRAN_GANSSReferenceTime_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_UTRAN_GANSSReferenceTime_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_UTRAN_GANSSReferenceTime = { - "UTRAN-GANSSReferenceTime", - "UTRAN-GANSSReferenceTime", - &asn_OP_SEQUENCE, - asn_DEF_UTRAN_GANSSReferenceTime_tags_1, - sizeof(asn_DEF_UTRAN_GANSSReferenceTime_tags_1) - /sizeof(asn_DEF_UTRAN_GANSSReferenceTime_tags_1[0]), /* 1 */ - asn_DEF_UTRAN_GANSSReferenceTime_tags_1, /* Same as above */ - sizeof(asn_DEF_UTRAN_GANSSReferenceTime_tags_1) - /sizeof(asn_DEF_UTRAN_GANSSReferenceTime_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_UTRAN_GANSSReferenceTime_1, - 5, /* Elements count */ - &asn_SPC_UTRAN_GANSSReferenceTime_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/UTRAN-GANSSReferenceTimeAssistance.c b/asn.1/generated/UTRAN-GANSSReferenceTimeAssistance.c deleted file mode 100644 index 96a20306..00000000 --- a/asn.1/generated/UTRAN-GANSSReferenceTimeAssistance.c +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "UTRAN-GANSSReferenceTimeAssistance.h" - -static int -memb_ganssDay_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8191)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ganssTimeID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_ganssDay_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 13, 13, 0, 8191 } /* (0..8191) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ganssTimeID_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_UTRAN_GANSSReferenceTimeAssistance_1[] = { - { ATF_POINTER, 1, offsetof(struct UTRAN_GANSSReferenceTimeAssistance, ganssDay), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ganssDay_constr_2, memb_ganssDay_constraint_1 }, - 0, 0, /* No default value */ - "ganssDay" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTimeAssistance, ganssTimeID), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ganssTimeID_constr_3, memb_ganssTimeID_constraint_1 }, - 0, 0, /* No default value */ - "ganssTimeID" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTimeAssistance, utran_GANSSReferenceTime), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTRAN_GANSSReferenceTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utran-GANSSReferenceTime" - }, - { ATF_POINTER, 1, offsetof(struct UTRAN_GANSSReferenceTimeAssistance, utranGANSSDriftRate), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTRANGANSSDriftRate, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utranGANSSDriftRate" - }, -}; -static const int asn_MAP_UTRAN_GANSSReferenceTimeAssistance_oms_1[] = { 0, 3 }; -static const ber_tlv_tag_t asn_DEF_UTRAN_GANSSReferenceTimeAssistance_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_UTRAN_GANSSReferenceTimeAssistance_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssDay */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssTimeID */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* utran-GANSSReferenceTime */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* utranGANSSDriftRate */ -}; -asn_SEQUENCE_specifics_t asn_SPC_UTRAN_GANSSReferenceTimeAssistance_specs_1 = { - sizeof(struct UTRAN_GANSSReferenceTimeAssistance), - offsetof(struct UTRAN_GANSSReferenceTimeAssistance, _asn_ctx), - asn_MAP_UTRAN_GANSSReferenceTimeAssistance_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_UTRAN_GANSSReferenceTimeAssistance_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_UTRAN_GANSSReferenceTimeAssistance = { - "UTRAN-GANSSReferenceTimeAssistance", - "UTRAN-GANSSReferenceTimeAssistance", - &asn_OP_SEQUENCE, - asn_DEF_UTRAN_GANSSReferenceTimeAssistance_tags_1, - sizeof(asn_DEF_UTRAN_GANSSReferenceTimeAssistance_tags_1) - /sizeof(asn_DEF_UTRAN_GANSSReferenceTimeAssistance_tags_1[0]), /* 1 */ - asn_DEF_UTRAN_GANSSReferenceTimeAssistance_tags_1, /* Same as above */ - sizeof(asn_DEF_UTRAN_GANSSReferenceTimeAssistance_tags_1) - /sizeof(asn_DEF_UTRAN_GANSSReferenceTimeAssistance_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_UTRAN_GANSSReferenceTimeAssistance_1, - 4, /* Elements count */ - &asn_SPC_UTRAN_GANSSReferenceTimeAssistance_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/UTRAN-GANSSReferenceTimeResult.c b/asn.1/generated/UTRAN-GANSSReferenceTimeResult.c deleted file mode 100644 index 5d838947..00000000 --- a/asn.1/generated/UTRAN-GANSSReferenceTimeResult.c +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "UTRAN-GANSSReferenceTimeResult.h" - -static int -memb_ganssTimeID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 15)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_ganssTimeID_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_UTRAN_GANSSReferenceTimeResult_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTimeResult, ganssTimeID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ganssTimeID_constr_2, memb_ganssTimeID_constraint_1 }, - 0, 0, /* No default value */ - "ganssTimeID" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTimeResult, set_GANSSReferenceTime), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SET_GANSSReferenceTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "set-GANSSReferenceTime" - }, -}; -static const ber_tlv_tag_t asn_DEF_UTRAN_GANSSReferenceTimeResult_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_UTRAN_GANSSReferenceTimeResult_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssTimeID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* set-GANSSReferenceTime */ -}; -asn_SEQUENCE_specifics_t asn_SPC_UTRAN_GANSSReferenceTimeResult_specs_1 = { - sizeof(struct UTRAN_GANSSReferenceTimeResult), - offsetof(struct UTRAN_GANSSReferenceTimeResult, _asn_ctx), - asn_MAP_UTRAN_GANSSReferenceTimeResult_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_UTRAN_GANSSReferenceTimeResult = { - "UTRAN-GANSSReferenceTimeResult", - "UTRAN-GANSSReferenceTimeResult", - &asn_OP_SEQUENCE, - asn_DEF_UTRAN_GANSSReferenceTimeResult_tags_1, - sizeof(asn_DEF_UTRAN_GANSSReferenceTimeResult_tags_1) - /sizeof(asn_DEF_UTRAN_GANSSReferenceTimeResult_tags_1[0]), /* 1 */ - asn_DEF_UTRAN_GANSSReferenceTimeResult_tags_1, /* Same as above */ - sizeof(asn_DEF_UTRAN_GANSSReferenceTimeResult_tags_1) - /sizeof(asn_DEF_UTRAN_GANSSReferenceTimeResult_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_UTRAN_GANSSReferenceTimeResult_1, - 2, /* Elements count */ - &asn_SPC_UTRAN_GANSSReferenceTimeResult_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/UTRAN-GPSReferenceTime.c b/asn.1/generated/UTRAN-GPSReferenceTime.c deleted file mode 100644 index c6d48b01..00000000 --- a/asn.1/generated/UTRAN-GPSReferenceTime.c +++ /dev/null @@ -1,396 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "UTRAN-GPSReferenceTime.h" - -static int -ls_part_4_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -static int -memb_ms_part_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ls_part_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -static int -memb_sfn_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_ls_part_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ms_part_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ls_part_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_modeSpecificInfo_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sfn_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_specifics_t asn_SPC_ls_part_specs_4 = { - 0, 0, 0, 0, 0, - 0, /* Native long size */ - 1 /* Unsigned representation */ -}; -static const ber_tlv_tag_t asn_DEF_ls_part_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ls_part_4 = { - "ls-part", - "ls-part", - &asn_OP_NativeInteger, - asn_DEF_ls_part_tags_4, - sizeof(asn_DEF_ls_part_tags_4) - /sizeof(asn_DEF_ls_part_tags_4[0]) - 1, /* 1 */ - asn_DEF_ls_part_tags_4, /* Same as above */ - sizeof(asn_DEF_ls_part_tags_4) - /sizeof(asn_DEF_ls_part_tags_4[0]), /* 2 */ - { 0, &asn_PER_type_ls_part_constr_4, ls_part_4_constraint }, - 0, 0, /* No members */ - &asn_SPC_ls_part_specs_4 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_utran_GPSTimingOfCell_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTime__utran_GPSTimingOfCell, ms_part), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ms_part_constr_3, memb_ms_part_constraint_2 }, - 0, 0, /* No default value */ - "ms-part" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTime__utran_GPSTimingOfCell, ls_part), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ls_part_4, - 0, - { 0, &asn_PER_memb_ls_part_constr_4, memb_ls_part_constraint_2 }, - 0, 0, /* No default value */ - "ls-part" - }, -}; -static const ber_tlv_tag_t asn_DEF_utran_GPSTimingOfCell_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_utran_GPSTimingOfCell_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ms-part */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ls-part */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_utran_GPSTimingOfCell_specs_2 = { - sizeof(struct UTRAN_GPSReferenceTime__utran_GPSTimingOfCell), - offsetof(struct UTRAN_GPSReferenceTime__utran_GPSTimingOfCell, _asn_ctx), - asn_MAP_utran_GPSTimingOfCell_tag2el_2, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_utran_GPSTimingOfCell_2 = { - "utran-GPSTimingOfCell", - "utran-GPSTimingOfCell", - &asn_OP_SEQUENCE, - asn_DEF_utran_GPSTimingOfCell_tags_2, - sizeof(asn_DEF_utran_GPSTimingOfCell_tags_2) - /sizeof(asn_DEF_utran_GPSTimingOfCell_tags_2[0]) - 1, /* 1 */ - asn_DEF_utran_GPSTimingOfCell_tags_2, /* Same as above */ - sizeof(asn_DEF_utran_GPSTimingOfCell_tags_2) - /sizeof(asn_DEF_utran_GPSTimingOfCell_tags_2[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_utran_GPSTimingOfCell_2, - 2, /* Elements count */ - &asn_SPC_utran_GPSTimingOfCell_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_fdd_6[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTime__modeSpecificInfo__fdd, referenceIdentity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PrimaryCPICH_Info, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceIdentity" - }, -}; -static const ber_tlv_tag_t asn_DEF_fdd_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_fdd_tag2el_6[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* referenceIdentity */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_fdd_specs_6 = { - sizeof(struct UTRAN_GPSReferenceTime__modeSpecificInfo__fdd), - offsetof(struct UTRAN_GPSReferenceTime__modeSpecificInfo__fdd, _asn_ctx), - asn_MAP_fdd_tag2el_6, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_fdd_6 = { - "fdd", - "fdd", - &asn_OP_SEQUENCE, - asn_DEF_fdd_tags_6, - sizeof(asn_DEF_fdd_tags_6) - /sizeof(asn_DEF_fdd_tags_6[0]) - 1, /* 1 */ - asn_DEF_fdd_tags_6, /* Same as above */ - sizeof(asn_DEF_fdd_tags_6) - /sizeof(asn_DEF_fdd_tags_6[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_fdd_6, - 1, /* Elements count */ - &asn_SPC_fdd_specs_6 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_tdd_8[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTime__modeSpecificInfo__tdd, referenceIdentity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CellParametersID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceIdentity" - }, -}; -static const ber_tlv_tag_t asn_DEF_tdd_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_tdd_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* referenceIdentity */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_tdd_specs_8 = { - sizeof(struct UTRAN_GPSReferenceTime__modeSpecificInfo__tdd), - offsetof(struct UTRAN_GPSReferenceTime__modeSpecificInfo__tdd, _asn_ctx), - asn_MAP_tdd_tag2el_8, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_tdd_8 = { - "tdd", - "tdd", - &asn_OP_SEQUENCE, - asn_DEF_tdd_tags_8, - sizeof(asn_DEF_tdd_tags_8) - /sizeof(asn_DEF_tdd_tags_8[0]) - 1, /* 1 */ - asn_DEF_tdd_tags_8, /* Same as above */ - sizeof(asn_DEF_tdd_tags_8) - /sizeof(asn_DEF_tdd_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_tdd_8, - 1, /* Elements count */ - &asn_SPC_tdd_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_modeSpecificInfo_5[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTime__modeSpecificInfo, choice.fdd), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_fdd_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "fdd" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTime__modeSpecificInfo, choice.tdd), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_tdd_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tdd" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_modeSpecificInfo_tag2el_5[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */ -}; -static asn_CHOICE_specifics_t asn_SPC_modeSpecificInfo_specs_5 = { - sizeof(struct UTRAN_GPSReferenceTime__modeSpecificInfo), - offsetof(struct UTRAN_GPSReferenceTime__modeSpecificInfo, _asn_ctx), - offsetof(struct UTRAN_GPSReferenceTime__modeSpecificInfo, present), - sizeof(((struct UTRAN_GPSReferenceTime__modeSpecificInfo *)0)->present), - asn_MAP_modeSpecificInfo_tag2el_5, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_modeSpecificInfo_5 = { - "modeSpecificInfo", - "modeSpecificInfo", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_modeSpecificInfo_constr_5, CHOICE_constraint }, - asn_MBR_modeSpecificInfo_5, - 2, /* Elements count */ - &asn_SPC_modeSpecificInfo_specs_5 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_UTRAN_GPSReferenceTime_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTime, utran_GPSTimingOfCell), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_utran_GPSTimingOfCell_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utran-GPSTimingOfCell" - }, - { ATF_POINTER, 1, offsetof(struct UTRAN_GPSReferenceTime, modeSpecificInfo), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_modeSpecificInfo_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "modeSpecificInfo" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTime, sfn), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sfn_constr_10, memb_sfn_constraint_1 }, - 0, 0, /* No default value */ - "sfn" - }, -}; -static const int asn_MAP_UTRAN_GPSReferenceTime_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_UTRAN_GPSReferenceTime_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_UTRAN_GPSReferenceTime_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utran-GPSTimingOfCell */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* modeSpecificInfo */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* sfn */ -}; -asn_SEQUENCE_specifics_t asn_SPC_UTRAN_GPSReferenceTime_specs_1 = { - sizeof(struct UTRAN_GPSReferenceTime), - offsetof(struct UTRAN_GPSReferenceTime, _asn_ctx), - asn_MAP_UTRAN_GPSReferenceTime_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_UTRAN_GPSReferenceTime_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_UTRAN_GPSReferenceTime = { - "UTRAN-GPSReferenceTime", - "UTRAN-GPSReferenceTime", - &asn_OP_SEQUENCE, - asn_DEF_UTRAN_GPSReferenceTime_tags_1, - sizeof(asn_DEF_UTRAN_GPSReferenceTime_tags_1) - /sizeof(asn_DEF_UTRAN_GPSReferenceTime_tags_1[0]), /* 1 */ - asn_DEF_UTRAN_GPSReferenceTime_tags_1, /* Same as above */ - sizeof(asn_DEF_UTRAN_GPSReferenceTime_tags_1) - /sizeof(asn_DEF_UTRAN_GPSReferenceTime_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_UTRAN_GPSReferenceTime_1, - 3, /* Elements count */ - &asn_SPC_UTRAN_GPSReferenceTime_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/UTRAN-GPSReferenceTimeAssistance.c b/asn.1/generated/UTRAN-GPSReferenceTimeAssistance.c deleted file mode 100644 index 6105bd0f..00000000 --- a/asn.1/generated/UTRAN-GPSReferenceTimeAssistance.c +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "UTRAN-GPSReferenceTimeAssistance.h" - -static int -memb_gpsReferenceTimeUncertainty_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_gpsReferenceTimeUncertainty_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_UTRAN_GPSReferenceTimeAssistance_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTimeAssistance, utran_GPSReferenceTime), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTRAN_GPSReferenceTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utran-GPSReferenceTime" - }, - { ATF_POINTER, 2, offsetof(struct UTRAN_GPSReferenceTimeAssistance, gpsReferenceTimeUncertainty), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gpsReferenceTimeUncertainty_constr_3, memb_gpsReferenceTimeUncertainty_constraint_1 }, - 0, 0, /* No default value */ - "gpsReferenceTimeUncertainty" - }, - { ATF_POINTER, 1, offsetof(struct UTRAN_GPSReferenceTimeAssistance, utranGPSDriftRate), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTRANGPSDriftRate, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utranGPSDriftRate" - }, -}; -static const int asn_MAP_UTRAN_GPSReferenceTimeAssistance_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_UTRAN_GPSReferenceTimeAssistance_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_UTRAN_GPSReferenceTimeAssistance_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utran-GPSReferenceTime */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gpsReferenceTimeUncertainty */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* utranGPSDriftRate */ -}; -asn_SEQUENCE_specifics_t asn_SPC_UTRAN_GPSReferenceTimeAssistance_specs_1 = { - sizeof(struct UTRAN_GPSReferenceTimeAssistance), - offsetof(struct UTRAN_GPSReferenceTimeAssistance, _asn_ctx), - asn_MAP_UTRAN_GPSReferenceTimeAssistance_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_UTRAN_GPSReferenceTimeAssistance_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_UTRAN_GPSReferenceTimeAssistance = { - "UTRAN-GPSReferenceTimeAssistance", - "UTRAN-GPSReferenceTimeAssistance", - &asn_OP_SEQUENCE, - asn_DEF_UTRAN_GPSReferenceTimeAssistance_tags_1, - sizeof(asn_DEF_UTRAN_GPSReferenceTimeAssistance_tags_1) - /sizeof(asn_DEF_UTRAN_GPSReferenceTimeAssistance_tags_1[0]), /* 1 */ - asn_DEF_UTRAN_GPSReferenceTimeAssistance_tags_1, /* Same as above */ - sizeof(asn_DEF_UTRAN_GPSReferenceTimeAssistance_tags_1) - /sizeof(asn_DEF_UTRAN_GPSReferenceTimeAssistance_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_UTRAN_GPSReferenceTimeAssistance_1, - 3, /* Elements count */ - &asn_SPC_UTRAN_GPSReferenceTimeAssistance_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/UTRAN-GPSReferenceTimeAssistance.h b/asn.1/generated/UTRAN-GPSReferenceTimeAssistance.h deleted file mode 100644 index b575b4a3..00000000 --- a/asn.1/generated/UTRAN-GPSReferenceTimeAssistance.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _UTRAN_GPSReferenceTimeAssistance_H_ -#define _UTRAN_GPSReferenceTimeAssistance_H_ - - -#include - -/* Including external dependencies */ -#include "UTRAN-GPSReferenceTime.h" -#include -#include "UTRANGPSDriftRate.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* UTRAN-GPSReferenceTimeAssistance */ -typedef struct UTRAN_GPSReferenceTimeAssistance { - UTRAN_GPSReferenceTime_t utran_GPSReferenceTime; - long *gpsReferenceTimeUncertainty /* OPTIONAL */; - UTRANGPSDriftRate_t *utranGPSDriftRate /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} UTRAN_GPSReferenceTimeAssistance_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_UTRAN_GPSReferenceTimeAssistance; -extern asn_SEQUENCE_specifics_t asn_SPC_UTRAN_GPSReferenceTimeAssistance_specs_1; -extern asn_TYPE_member_t asn_MBR_UTRAN_GPSReferenceTimeAssistance_1[3]; - -#ifdef __cplusplus -} -#endif - -#endif /* _UTRAN_GPSReferenceTimeAssistance_H_ */ -#include diff --git a/asn.1/generated/UTRAN-GPSReferenceTimeResult.c b/asn.1/generated/UTRAN-GPSReferenceTimeResult.c deleted file mode 100644 index 35fa3830..00000000 --- a/asn.1/generated/UTRAN-GPSReferenceTimeResult.c +++ /dev/null @@ -1,436 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "UTRAN-GPSReferenceTimeResult.h" - -static int -ls_part_4_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -static int -memb_ms_part_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 16383)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ls_part_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - - /* Constraint check succeeded */ - return 0; -} - -static int -memb_sfn_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4095)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_gpsReferenceTimeUncertainty_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_ls_part_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ms_part_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ls_part_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_modeSpecificInfo_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_sfn_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_gpsReferenceTimeUncertainty_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_specifics_t asn_SPC_ls_part_specs_4 = { - 0, 0, 0, 0, 0, - 0, /* Native long size */ - 1 /* Unsigned representation */ -}; -static const ber_tlv_tag_t asn_DEF_ls_part_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ls_part_4 = { - "ls-part", - "ls-part", - &asn_OP_NativeInteger, - asn_DEF_ls_part_tags_4, - sizeof(asn_DEF_ls_part_tags_4) - /sizeof(asn_DEF_ls_part_tags_4[0]) - 1, /* 1 */ - asn_DEF_ls_part_tags_4, /* Same as above */ - sizeof(asn_DEF_ls_part_tags_4) - /sizeof(asn_DEF_ls_part_tags_4[0]), /* 2 */ - { 0, &asn_PER_type_ls_part_constr_4, ls_part_4_constraint }, - 0, 0, /* No members */ - &asn_SPC_ls_part_specs_4 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_set_GPSTimingOfCell_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTimeResult__set_GPSTimingOfCell, ms_part), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_ms_part_constr_3, memb_ms_part_constraint_2 }, - 0, 0, /* No default value */ - "ms-part" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTimeResult__set_GPSTimingOfCell, ls_part), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ls_part_4, - 0, - { 0, &asn_PER_memb_ls_part_constr_4, memb_ls_part_constraint_2 }, - 0, 0, /* No default value */ - "ls-part" - }, -}; -static const ber_tlv_tag_t asn_DEF_set_GPSTimingOfCell_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_set_GPSTimingOfCell_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ms-part */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ls-part */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_set_GPSTimingOfCell_specs_2 = { - sizeof(struct UTRAN_GPSReferenceTimeResult__set_GPSTimingOfCell), - offsetof(struct UTRAN_GPSReferenceTimeResult__set_GPSTimingOfCell, _asn_ctx), - asn_MAP_set_GPSTimingOfCell_tag2el_2, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_set_GPSTimingOfCell_2 = { - "set-GPSTimingOfCell", - "set-GPSTimingOfCell", - &asn_OP_SEQUENCE, - asn_DEF_set_GPSTimingOfCell_tags_2, - sizeof(asn_DEF_set_GPSTimingOfCell_tags_2) - /sizeof(asn_DEF_set_GPSTimingOfCell_tags_2[0]) - 1, /* 1 */ - asn_DEF_set_GPSTimingOfCell_tags_2, /* Same as above */ - sizeof(asn_DEF_set_GPSTimingOfCell_tags_2) - /sizeof(asn_DEF_set_GPSTimingOfCell_tags_2[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_set_GPSTimingOfCell_2, - 2, /* Elements count */ - &asn_SPC_set_GPSTimingOfCell_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_fdd_6[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo__fdd, referenceIdentity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PrimaryCPICH_Info, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceIdentity" - }, -}; -static const ber_tlv_tag_t asn_DEF_fdd_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_fdd_tag2el_6[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* referenceIdentity */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_fdd_specs_6 = { - sizeof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo__fdd), - offsetof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo__fdd, _asn_ctx), - asn_MAP_fdd_tag2el_6, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_fdd_6 = { - "fdd", - "fdd", - &asn_OP_SEQUENCE, - asn_DEF_fdd_tags_6, - sizeof(asn_DEF_fdd_tags_6) - /sizeof(asn_DEF_fdd_tags_6[0]) - 1, /* 1 */ - asn_DEF_fdd_tags_6, /* Same as above */ - sizeof(asn_DEF_fdd_tags_6) - /sizeof(asn_DEF_fdd_tags_6[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_fdd_6, - 1, /* Elements count */ - &asn_SPC_fdd_specs_6 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_tdd_8[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo__tdd, referenceIdentity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CellParametersID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "referenceIdentity" - }, -}; -static const ber_tlv_tag_t asn_DEF_tdd_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_tdd_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* referenceIdentity */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_tdd_specs_8 = { - sizeof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo__tdd), - offsetof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo__tdd, _asn_ctx), - asn_MAP_tdd_tag2el_8, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_tdd_8 = { - "tdd", - "tdd", - &asn_OP_SEQUENCE, - asn_DEF_tdd_tags_8, - sizeof(asn_DEF_tdd_tags_8) - /sizeof(asn_DEF_tdd_tags_8[0]) - 1, /* 1 */ - asn_DEF_tdd_tags_8, /* Same as above */ - sizeof(asn_DEF_tdd_tags_8) - /sizeof(asn_DEF_tdd_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_tdd_8, - 1, /* Elements count */ - &asn_SPC_tdd_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_modeSpecificInfo_5[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo, choice.fdd), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_fdd_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "fdd" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo, choice.tdd), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_tdd_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "tdd" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_modeSpecificInfo_tag2el_5[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */ -}; -static asn_CHOICE_specifics_t asn_SPC_modeSpecificInfo_specs_5 = { - sizeof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo), - offsetof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo, _asn_ctx), - offsetof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo, present), - sizeof(((struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo *)0)->present), - asn_MAP_modeSpecificInfo_tag2el_5, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_modeSpecificInfo_5 = { - "modeSpecificInfo", - "modeSpecificInfo", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_modeSpecificInfo_constr_5, CHOICE_constraint }, - asn_MBR_modeSpecificInfo_5, - 2, /* Elements count */ - &asn_SPC_modeSpecificInfo_specs_5 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_UTRAN_GPSReferenceTimeResult_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTimeResult, set_GPSTimingOfCell), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_set_GPSTimingOfCell_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "set-GPSTimingOfCell" - }, - { ATF_POINTER, 1, offsetof(struct UTRAN_GPSReferenceTimeResult, modeSpecificInfo), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_modeSpecificInfo_5, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "modeSpecificInfo" - }, - { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTimeResult, sfn), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_sfn_constr_10, memb_sfn_constraint_1 }, - 0, 0, /* No default value */ - "sfn" - }, - { ATF_POINTER, 1, offsetof(struct UTRAN_GPSReferenceTimeResult, gpsReferenceTimeUncertainty), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_gpsReferenceTimeUncertainty_constr_11, memb_gpsReferenceTimeUncertainty_constraint_1 }, - 0, 0, /* No default value */ - "gpsReferenceTimeUncertainty" - }, -}; -static const int asn_MAP_UTRAN_GPSReferenceTimeResult_oms_1[] = { 1, 3 }; -static const ber_tlv_tag_t asn_DEF_UTRAN_GPSReferenceTimeResult_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_UTRAN_GPSReferenceTimeResult_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* set-GPSTimingOfCell */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* modeSpecificInfo */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sfn */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* gpsReferenceTimeUncertainty */ -}; -asn_SEQUENCE_specifics_t asn_SPC_UTRAN_GPSReferenceTimeResult_specs_1 = { - sizeof(struct UTRAN_GPSReferenceTimeResult), - offsetof(struct UTRAN_GPSReferenceTimeResult, _asn_ctx), - asn_MAP_UTRAN_GPSReferenceTimeResult_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_UTRAN_GPSReferenceTimeResult_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_UTRAN_GPSReferenceTimeResult = { - "UTRAN-GPSReferenceTimeResult", - "UTRAN-GPSReferenceTimeResult", - &asn_OP_SEQUENCE, - asn_DEF_UTRAN_GPSReferenceTimeResult_tags_1, - sizeof(asn_DEF_UTRAN_GPSReferenceTimeResult_tags_1) - /sizeof(asn_DEF_UTRAN_GPSReferenceTimeResult_tags_1[0]), /* 1 */ - asn_DEF_UTRAN_GPSReferenceTimeResult_tags_1, /* Same as above */ - sizeof(asn_DEF_UTRAN_GPSReferenceTimeResult_tags_1) - /sizeof(asn_DEF_UTRAN_GPSReferenceTimeResult_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_UTRAN_GPSReferenceTimeResult_1, - 4, /* Elements count */ - &asn_SPC_UTRAN_GPSReferenceTimeResult_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/UlpMessage.c b/asn.1/generated/UlpMessage.c deleted file mode 100644 index 46d7ba51..00000000 --- a/asn.1/generated/UlpMessage.c +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP" - * found in "/home/martin/repos/LPP-Client/asn/ULP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "UlpMessage.h" - -asn_per_constraints_t asn_PER_type_UlpMessage_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 7 } /* (0..7,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_UlpMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLINIT), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SUPLINIT, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "msSUPLINIT" - }, - { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLSTART), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SUPLSTART, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "msSUPLSTART" - }, - { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLRESPONSE), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SUPLRESPONSE, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "msSUPLRESPONSE" - }, - { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLPOSINIT), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SUPLPOSINIT, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "msSUPLPOSINIT" - }, - { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLPOS), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SUPLPOS, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "msSUPLPOS" - }, - { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLEND), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SUPLEND, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "msSUPLEND" - }, - { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLAUTHREQ), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SUPLAUTHREQ, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "msSUPLAUTHREQ" - }, - { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLAUTHRESP), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SUPLAUTHRESP, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "msSUPLAUTHRESP" - }, - { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLTRIGGEREDSTART), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver2_SUPLTRIGGEREDSTART, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "msSUPLTRIGGEREDSTART" - }, - { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLTRIGGEREDRESPONSE), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "msSUPLTRIGGEREDRESPONSE" - }, - { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLTRIGGEREDSTOP), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver2_SUPLTRIGGEREDSTOP, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "msSUPLTRIGGEREDSTOP" - }, - { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLNOTIFY), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver2_SUPLNOTIFY, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "msSUPLNOTIFY" - }, - { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLNOTIFYRESPONSE), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver2_SUPLNOTIFYRESPONSE, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "msSUPLNOTIFYRESPONSE" - }, - { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLSETINIT), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver2_SUPLSETINIT, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "msSUPLSETINIT" - }, - { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLREPORT), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver2_SUPLREPORT, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "msSUPLREPORT" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_UlpMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* msSUPLINIT */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* msSUPLSTART */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* msSUPLRESPONSE */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* msSUPLPOSINIT */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* msSUPLPOS */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* msSUPLEND */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* msSUPLAUTHREQ */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* msSUPLAUTHRESP */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* msSUPLTRIGGEREDSTART */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* msSUPLTRIGGEREDRESPONSE */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* msSUPLTRIGGEREDSTOP */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* msSUPLNOTIFY */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* msSUPLNOTIFYRESPONSE */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* msSUPLSETINIT */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 } /* msSUPLREPORT */ -}; -asn_CHOICE_specifics_t asn_SPC_UlpMessage_specs_1 = { - sizeof(struct UlpMessage), - offsetof(struct UlpMessage, _asn_ctx), - offsetof(struct UlpMessage, present), - sizeof(((struct UlpMessage *)0)->present), - asn_MAP_UlpMessage_tag2el_1, - 15, /* Count of tags in the map */ - 0, 0, - 8 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_UlpMessage = { - "UlpMessage", - "UlpMessage", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_UlpMessage_constr_1, CHOICE_constraint }, - asn_MBR_UlpMessage_1, - 15, /* Elements count */ - &asn_SPC_UlpMessage_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/UmbCellInformation.c b/asn.1/generated/UmbCellInformation.c deleted file mode 100644 index 34533a92..00000000 --- a/asn.1/generated/UmbCellInformation.c +++ /dev/null @@ -1,326 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "UmbCellInformation.h" - -static int -memb_refSECTORID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refMCC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refMNC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refBASELAT_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4194303)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_reBASELONG_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 8388607)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refWeekNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refSeconds_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 4194303)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_refSECTORID_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refMCC_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refMNC_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refBASELAT_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, 0, 4194303 } /* (0..4194303) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_reBASELONG_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refWeekNumber_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refSeconds_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 22, -1, 0, 4194303 } /* (0..4194303) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_UmbCellInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UmbCellInformation, refSECTORID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_refSECTORID_constr_2, memb_refSECTORID_constraint_1 }, - 0, 0, /* No default value */ - "refSECTORID" - }, - { ATF_NOFLAGS, 0, offsetof(struct UmbCellInformation, refMCC), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refMCC_constr_3, memb_refMCC_constraint_1 }, - 0, 0, /* No default value */ - "refMCC" - }, - { ATF_NOFLAGS, 0, offsetof(struct UmbCellInformation, refMNC), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refMNC_constr_4, memb_refMNC_constraint_1 }, - 0, 0, /* No default value */ - "refMNC" - }, - { ATF_NOFLAGS, 0, offsetof(struct UmbCellInformation, refBASELAT), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refBASELAT_constr_5, memb_refBASELAT_constraint_1 }, - 0, 0, /* No default value */ - "refBASELAT" - }, - { ATF_NOFLAGS, 0, offsetof(struct UmbCellInformation, reBASELONG), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_reBASELONG_constr_6, memb_reBASELONG_constraint_1 }, - 0, 0, /* No default value */ - "reBASELONG" - }, - { ATF_NOFLAGS, 0, offsetof(struct UmbCellInformation, refWeekNumber), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refWeekNumber_constr_7, memb_refWeekNumber_constraint_1 }, - 0, 0, /* No default value */ - "refWeekNumber" - }, - { ATF_NOFLAGS, 0, offsetof(struct UmbCellInformation, refSeconds), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refSeconds_constr_8, memb_refSeconds_constraint_1 }, - 0, 0, /* No default value */ - "refSeconds" - }, -}; -static const ber_tlv_tag_t asn_DEF_UmbCellInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_UmbCellInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refSECTORID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refMCC */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* refMNC */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* refBASELAT */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* reBASELONG */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* refWeekNumber */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* refSeconds */ -}; -asn_SEQUENCE_specifics_t asn_SPC_UmbCellInformation_specs_1 = { - sizeof(struct UmbCellInformation), - offsetof(struct UmbCellInformation, _asn_ctx), - asn_MAP_UmbCellInformation_tag2el_1, - 7, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 7, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_UmbCellInformation = { - "UmbCellInformation", - "UmbCellInformation", - &asn_OP_SEQUENCE, - asn_DEF_UmbCellInformation_tags_1, - sizeof(asn_DEF_UmbCellInformation_tags_1) - /sizeof(asn_DEF_UmbCellInformation_tags_1[0]), /* 1 */ - asn_DEF_UmbCellInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_UmbCellInformation_tags_1) - /sizeof(asn_DEF_UmbCellInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_UmbCellInformation_1, - 7, /* Elements count */ - &asn_SPC_UmbCellInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/UpdateCapabilities-r15.c b/asn.1/generated/UpdateCapabilities-r15.c deleted file mode 100644 index 37d71703..00000000 --- a/asn.1/generated/UpdateCapabilities-r15.c +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "UpdateCapabilities-r15.h" - -int -UpdateCapabilities_r15_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using BIT_STRING, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_UpdateCapabilities_r15_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_UpdateCapabilities_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_UpdateCapabilities_r15 = { - "UpdateCapabilities-r15", - "UpdateCapabilities-r15", - &asn_OP_BIT_STRING, - asn_DEF_UpdateCapabilities_r15_tags_1, - sizeof(asn_DEF_UpdateCapabilities_r15_tags_1) - /sizeof(asn_DEF_UpdateCapabilities_r15_tags_1[0]), /* 1 */ - asn_DEF_UpdateCapabilities_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_UpdateCapabilities_r15_tags_1) - /sizeof(asn_DEF_UpdateCapabilities_r15_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_UpdateCapabilities_r15_constr_1, UpdateCapabilities_r15_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/asn.1/generated/Velocity.c b/asn.1/generated/Velocity.c deleted file mode 100644 index 7c2d2644..00000000 --- a/asn.1/generated/Velocity.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Velocity.h" - -asn_per_constraints_t asn_PER_type_Velocity_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_Velocity_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Velocity, choice.horizontalVelocity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HorizontalVelocity, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "horizontalVelocity" - }, - { ATF_NOFLAGS, 0, offsetof(struct Velocity, choice.horizontalWithVerticalVelocity), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HorizontalWithVerticalVelocity, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "horizontalWithVerticalVelocity" - }, - { ATF_NOFLAGS, 0, offsetof(struct Velocity, choice.horizontalVelocityWithUncertainty), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HorizontalVelocityWithUncertainty, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "horizontalVelocityWithUncertainty" - }, - { ATF_NOFLAGS, 0, offsetof(struct Velocity, choice.horizontalWithVerticalVelocityAndUncertainty), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HorizontalWithVerticalVelocityAndUncertainty, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "horizontalWithVerticalVelocityAndUncertainty" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_Velocity_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horizontalVelocity */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horizontalWithVerticalVelocity */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* horizontalVelocityWithUncertainty */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* horizontalWithVerticalVelocityAndUncertainty */ -}; -asn_CHOICE_specifics_t asn_SPC_Velocity_specs_1 = { - sizeof(struct Velocity), - offsetof(struct Velocity, _asn_ctx), - offsetof(struct Velocity, present), - sizeof(((struct Velocity *)0)->present), - asn_MAP_Velocity_tag2el_1, - 4, /* Count of tags in the map */ - 0, 0, - 4 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_Velocity = { - "Velocity", - "Velocity", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_Velocity_constr_1, CHOICE_constraint }, - asn_MBR_Velocity_1, - 4, /* Elements count */ - &asn_SPC_Velocity_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/VelocityTypes.c b/asn.1/generated/VelocityTypes.c deleted file mode 100644 index df0d0d75..00000000 --- a/asn.1/generated/VelocityTypes.c +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "VelocityTypes.h" - -asn_TYPE_member_t asn_MBR_VelocityTypes_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct VelocityTypes, horizontalVelocity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "horizontalVelocity" - }, - { ATF_NOFLAGS, 0, offsetof(struct VelocityTypes, horizontalWithVerticalVelocity), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "horizontalWithVerticalVelocity" - }, - { ATF_NOFLAGS, 0, offsetof(struct VelocityTypes, horizontalVelocityWithUncertainty), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "horizontalVelocityWithUncertainty" - }, - { ATF_NOFLAGS, 0, offsetof(struct VelocityTypes, horizontalWithVerticalVelocityAndUncertainty), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "horizontalWithVerticalVelocityAndUncertainty" - }, -}; -static const ber_tlv_tag_t asn_DEF_VelocityTypes_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_VelocityTypes_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horizontalVelocity */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horizontalWithVerticalVelocity */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* horizontalVelocityWithUncertainty */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* horizontalWithVerticalVelocityAndUncertainty */ -}; -asn_SEQUENCE_specifics_t asn_SPC_VelocityTypes_specs_1 = { - sizeof(struct VelocityTypes), - offsetof(struct VelocityTypes, _asn_ctx), - asn_MAP_VelocityTypes_tag2el_1, - 4, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_VelocityTypes = { - "VelocityTypes", - "VelocityTypes", - &asn_OP_SEQUENCE, - asn_DEF_VelocityTypes_tags_1, - sizeof(asn_DEF_VelocityTypes_tags_1) - /sizeof(asn_DEF_VelocityTypes_tags_1[0]), /* 1 */ - asn_DEF_VelocityTypes_tags_1, /* Same as above */ - sizeof(asn_DEF_VelocityTypes_tags_1) - /sizeof(asn_DEF_VelocityTypes_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_VelocityTypes_1, - 4, /* Elements count */ - &asn_SPC_VelocityTypes_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver.c b/asn.1/generated/Ver.c deleted file mode 100644 index 73a34878..00000000 --- a/asn.1/generated/Ver.c +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver.h" - -int -Ver_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 64)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using BIT_STRING, - * so here we adjust the DEF accordingly. - */ -asn_per_constraints_t asn_PER_type_Ver_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 64, 64 } /* (SIZE(64..64)) */, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_Ver_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_Ver = { - "Ver", - "Ver", - &asn_OP_BIT_STRING, - asn_DEF_Ver_tags_1, - sizeof(asn_DEF_Ver_tags_1) - /sizeof(asn_DEF_Ver_tags_1[0]), /* 1 */ - asn_DEF_Ver_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver_tags_1) - /sizeof(asn_DEF_Ver_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_Ver_constr_1, Ver_constraint }, - 0, 0, /* No members */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver.h b/asn.1/generated/Ver.h deleted file mode 100644 index 4bd20b44..00000000 --- a/asn.1/generated/Ver.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Ver_H_ -#define _Ver_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Ver */ -typedef BIT_STRING_t Ver_t; - -/* Implementation */ -extern asn_per_constraints_t asn_PER_type_Ver_constr_1; -extern asn_TYPE_descriptor_t asn_DEF_Ver; -asn_struct_free_f Ver_free; -asn_struct_print_f Ver_print; -asn_constr_check_f Ver_constraint; -ber_type_decoder_f Ver_decode_ber; -der_type_encoder_f Ver_encode_der; -xer_type_decoder_f Ver_decode_xer; -xer_type_encoder_f Ver_encode_xer; -per_type_decoder_f Ver_decode_uper; -per_type_encoder_f Ver_encode_uper; - -#ifdef __cplusplus -} -#endif - -#endif /* _Ver_H_ */ -#include diff --git a/asn.1/generated/Ver2-CellInfo-extension.c b/asn.1/generated/Ver2-CellInfo-extension.c deleted file mode 100644 index 8316b7b4..00000000 --- a/asn.1/generated/Ver2-CellInfo-extension.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-CellInfo-extension.h" - -asn_per_constraints_t asn_PER_type_Ver2_CellInfo_extension_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_Ver2_CellInfo_extension_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Ver2_CellInfo_extension, choice.hrpdCell), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HrpdCellInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "hrpdCell" - }, - { ATF_NOFLAGS, 0, offsetof(struct Ver2_CellInfo_extension, choice.umbCell), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UmbCellInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "umbCell" - }, - { ATF_NOFLAGS, 0, offsetof(struct Ver2_CellInfo_extension, choice.lteCell), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LteCellInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "lteCell" - }, - { ATF_NOFLAGS, 0, offsetof(struct Ver2_CellInfo_extension, choice.wlanAP), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WlanAPInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wlanAP" - }, - { ATF_NOFLAGS, 0, offsetof(struct Ver2_CellInfo_extension, choice.wimaxBS), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WimaxBSInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wimaxBS" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_CellInfo_extension_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* hrpdCell */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* umbCell */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* lteCell */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* wlanAP */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* wimaxBS */ -}; -asn_CHOICE_specifics_t asn_SPC_Ver2_CellInfo_extension_specs_1 = { - sizeof(struct Ver2_CellInfo_extension), - offsetof(struct Ver2_CellInfo_extension, _asn_ctx), - offsetof(struct Ver2_CellInfo_extension, present), - sizeof(((struct Ver2_CellInfo_extension *)0)->present), - asn_MAP_Ver2_CellInfo_extension_tag2el_1, - 5, /* Count of tags in the map */ - 0, 0, - 5 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_CellInfo_extension = { - "Ver2-CellInfo-extension", - "Ver2-CellInfo-extension", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_Ver2_CellInfo_extension_constr_1, CHOICE_constraint }, - asn_MBR_Ver2_CellInfo_extension_1, - 5, /* Elements count */ - &asn_SPC_Ver2_CellInfo_extension_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver2-Notification-extension.c b/asn.1/generated/Ver2-Notification-extension.c deleted file mode 100644 index b825ed85..00000000 --- a/asn.1/generated/Ver2-Notification-extension.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-Notification-extension.h" - -asn_TYPE_member_t asn_MBR_Ver2_Notification_extension_1[] = { - { ATF_POINTER, 1, offsetof(struct Ver2_Notification_extension, emergencyCallLocation), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "emergencyCallLocation" - }, -}; -static const int asn_MAP_Ver2_Notification_extension_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_Ver2_Notification_extension_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_Notification_extension_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* emergencyCallLocation */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ver2_Notification_extension_specs_1 = { - sizeof(struct Ver2_Notification_extension), - offsetof(struct Ver2_Notification_extension, _asn_ctx), - asn_MAP_Ver2_Notification_extension_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_Ver2_Notification_extension_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_Notification_extension = { - "Ver2-Notification-extension", - "Ver2-Notification-extension", - &asn_OP_SEQUENCE, - asn_DEF_Ver2_Notification_extension_tags_1, - sizeof(asn_DEF_Ver2_Notification_extension_tags_1) - /sizeof(asn_DEF_Ver2_Notification_extension_tags_1[0]), /* 1 */ - asn_DEF_Ver2_Notification_extension_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver2_Notification_extension_tags_1) - /sizeof(asn_DEF_Ver2_Notification_extension_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ver2_Notification_extension_1, - 1, /* Elements count */ - &asn_SPC_Ver2_Notification_extension_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver2-PosPayLoad-extension.c b/asn.1/generated/Ver2-PosPayLoad-extension.c deleted file mode 100644 index f5da9c7a..00000000 --- a/asn.1/generated/Ver2-PosPayLoad-extension.c +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-PosPayLoad-extension.h" - -static int -memb_OCTET_STRING_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size >= 1 && size <= 60000)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_OCTET_STRING_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size >= 1 && size <= 60000)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_lPPPayload_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 3)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_tIA801Payload_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 3)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_Member_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 16, 16, 1, 60000 } /* (SIZE(1..60000)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_lPPPayload_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_Member_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 16, 16, 1, 60000 } /* (SIZE(1..60000)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_tIA801Payload_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_lPPPayload_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_tIA801Payload_constr_4 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_lPPPayload_2[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), - 0, - &asn_DEF_OCTET_STRING, - 0, - { 0, &asn_PER_memb_Member_constr_3, memb_OCTET_STRING_constraint_2 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_lPPPayload_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_lPPPayload_specs_2 = { - sizeof(struct Ver2_PosPayLoad_extension__lPPPayload), - offsetof(struct Ver2_PosPayLoad_extension__lPPPayload, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_lPPPayload_2 = { - "lPPPayload", - "lPPPayload", - &asn_OP_SEQUENCE_OF, - asn_DEF_lPPPayload_tags_2, - sizeof(asn_DEF_lPPPayload_tags_2) - /sizeof(asn_DEF_lPPPayload_tags_2[0]) - 1, /* 1 */ - asn_DEF_lPPPayload_tags_2, /* Same as above */ - sizeof(asn_DEF_lPPPayload_tags_2) - /sizeof(asn_DEF_lPPPayload_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_lPPPayload_constr_2, SEQUENCE_OF_constraint }, - asn_MBR_lPPPayload_2, - 1, /* Single element */ - &asn_SPC_lPPPayload_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_tIA801Payload_4[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), - 0, - &asn_DEF_OCTET_STRING, - 0, - { 0, &asn_PER_memb_Member_constr_5, memb_OCTET_STRING_constraint_4 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_tIA801Payload_tags_4[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_tIA801Payload_specs_4 = { - sizeof(struct Ver2_PosPayLoad_extension__tIA801Payload), - offsetof(struct Ver2_PosPayLoad_extension__tIA801Payload, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_tIA801Payload_4 = { - "tIA801Payload", - "tIA801Payload", - &asn_OP_SEQUENCE_OF, - asn_DEF_tIA801Payload_tags_4, - sizeof(asn_DEF_tIA801Payload_tags_4) - /sizeof(asn_DEF_tIA801Payload_tags_4[0]) - 1, /* 1 */ - asn_DEF_tIA801Payload_tags_4, /* Same as above */ - sizeof(asn_DEF_tIA801Payload_tags_4) - /sizeof(asn_DEF_tIA801Payload_tags_4[0]), /* 2 */ - { 0, &asn_PER_type_tIA801Payload_constr_4, SEQUENCE_OF_constraint }, - asn_MBR_tIA801Payload_4, - 1, /* Single element */ - &asn_SPC_tIA801Payload_specs_4 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_Ver2_PosPayLoad_extension_1[] = { - { ATF_POINTER, 2, offsetof(struct Ver2_PosPayLoad_extension, lPPPayload), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_lPPPayload_2, - 0, - { 0, &asn_PER_memb_lPPPayload_constr_2, memb_lPPPayload_constraint_1 }, - 0, 0, /* No default value */ - "lPPPayload" - }, - { ATF_POINTER, 1, offsetof(struct Ver2_PosPayLoad_extension, tIA801Payload), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_tIA801Payload_4, - 0, - { 0, &asn_PER_memb_tIA801Payload_constr_4, memb_tIA801Payload_constraint_1 }, - 0, 0, /* No default value */ - "tIA801Payload" - }, -}; -static const int asn_MAP_Ver2_PosPayLoad_extension_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_Ver2_PosPayLoad_extension_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_PosPayLoad_extension_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lPPPayload */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tIA801Payload */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ver2_PosPayLoad_extension_specs_1 = { - sizeof(struct Ver2_PosPayLoad_extension), - offsetof(struct Ver2_PosPayLoad_extension, _asn_ctx), - asn_MAP_Ver2_PosPayLoad_extension_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_Ver2_PosPayLoad_extension_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_PosPayLoad_extension = { - "Ver2-PosPayLoad-extension", - "Ver2-PosPayLoad-extension", - &asn_OP_SEQUENCE, - asn_DEF_Ver2_PosPayLoad_extension_tags_1, - sizeof(asn_DEF_Ver2_PosPayLoad_extension_tags_1) - /sizeof(asn_DEF_Ver2_PosPayLoad_extension_tags_1[0]), /* 1 */ - asn_DEF_Ver2_PosPayLoad_extension_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver2_PosPayLoad_extension_tags_1) - /sizeof(asn_DEF_Ver2_PosPayLoad_extension_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ver2_PosPayLoad_extension_1, - 2, /* Elements count */ - &asn_SPC_Ver2_PosPayLoad_extension_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver2-PosProtocol-extension.c b/asn.1/generated/Ver2-PosProtocol-extension.c deleted file mode 100644 index 8ee229cb..00000000 --- a/asn.1/generated/Ver2-PosProtocol-extension.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-PosProtocol-extension.h" - -asn_TYPE_member_t asn_MBR_Ver2_PosProtocol_extension_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Ver2_PosProtocol_extension, lpp), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "lpp" - }, - { ATF_POINTER, 4, offsetof(struct Ver2_PosProtocol_extension, posProtocolVersionRRLP), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PosProtocolVersion3GPP, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "posProtocolVersionRRLP" - }, - { ATF_POINTER, 3, offsetof(struct Ver2_PosProtocol_extension, posProtocolVersionRRC), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PosProtocolVersion3GPP, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "posProtocolVersionRRC" - }, - { ATF_POINTER, 2, offsetof(struct Ver2_PosProtocol_extension, posProtocolVersionTIA801), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PosProtocolVersion3GPP2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "posProtocolVersionTIA801" - }, - { ATF_POINTER, 1, offsetof(struct Ver2_PosProtocol_extension, posProtocolVersionLPP), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PosProtocolVersion3GPP, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "posProtocolVersionLPP" - }, -}; -static const int asn_MAP_Ver2_PosProtocol_extension_oms_1[] = { 1, 2, 3, 4 }; -static const ber_tlv_tag_t asn_DEF_Ver2_PosProtocol_extension_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_PosProtocol_extension_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lpp */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* posProtocolVersionRRLP */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* posProtocolVersionRRC */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* posProtocolVersionTIA801 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* posProtocolVersionLPP */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ver2_PosProtocol_extension_specs_1 = { - sizeof(struct Ver2_PosProtocol_extension), - offsetof(struct Ver2_PosProtocol_extension, _asn_ctx), - asn_MAP_Ver2_PosProtocol_extension_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_Ver2_PosProtocol_extension_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_PosProtocol_extension = { - "Ver2-PosProtocol-extension", - "Ver2-PosProtocol-extension", - &asn_OP_SEQUENCE, - asn_DEF_Ver2_PosProtocol_extension_tags_1, - sizeof(asn_DEF_Ver2_PosProtocol_extension_tags_1) - /sizeof(asn_DEF_Ver2_PosProtocol_extension_tags_1[0]), /* 1 */ - asn_DEF_Ver2_PosProtocol_extension_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver2_PosProtocol_extension_tags_1) - /sizeof(asn_DEF_Ver2_PosProtocol_extension_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ver2_PosProtocol_extension_1, - 5, /* Elements count */ - &asn_SPC_Ver2_PosProtocol_extension_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver2-PosProtocol-extension.h b/asn.1/generated/Ver2-PosProtocol-extension.h deleted file mode 100644 index 914e2be2..00000000 --- a/asn.1/generated/Ver2-PosProtocol-extension.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Ver2_PosProtocol_extension_H_ -#define _Ver2_PosProtocol_extension_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct PosProtocolVersion3GPP; -struct PosProtocolVersion3GPP2; - -/* Ver2-PosProtocol-extension */ -typedef struct Ver2_PosProtocol_extension { - BOOLEAN_t lpp; - struct PosProtocolVersion3GPP *posProtocolVersionRRLP /* OPTIONAL */; - struct PosProtocolVersion3GPP *posProtocolVersionRRC /* OPTIONAL */; - struct PosProtocolVersion3GPP2 *posProtocolVersionTIA801 /* OPTIONAL */; - struct PosProtocolVersion3GPP *posProtocolVersionLPP /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Ver2_PosProtocol_extension_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Ver2_PosProtocol_extension; -extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_PosProtocol_extension_specs_1; -extern asn_TYPE_member_t asn_MBR_Ver2_PosProtocol_extension_1[5]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "PosProtocolVersion3GPP.h" -#include "PosProtocolVersion3GPP2.h" - -#endif /* _Ver2_PosProtocol_extension_H_ */ -#include diff --git a/asn.1/generated/Ver2-PosTechnology-extension.c b/asn.1/generated/Ver2-PosTechnology-extension.c deleted file mode 100644 index 5bbccf87..00000000 --- a/asn.1/generated/Ver2-PosTechnology-extension.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-PosTechnology-extension.h" - -asn_TYPE_member_t asn_MBR_Ver2_PosTechnology_extension_1[] = { - { ATF_POINTER, 1, offsetof(struct Ver2_PosTechnology_extension, gANSSPositionMethods), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GANSSPositionMethods, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gANSSPositionMethods" - }, -}; -static const int asn_MAP_Ver2_PosTechnology_extension_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_Ver2_PosTechnology_extension_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_PosTechnology_extension_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gANSSPositionMethods */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ver2_PosTechnology_extension_specs_1 = { - sizeof(struct Ver2_PosTechnology_extension), - offsetof(struct Ver2_PosTechnology_extension, _asn_ctx), - asn_MAP_Ver2_PosTechnology_extension_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_Ver2_PosTechnology_extension_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_PosTechnology_extension = { - "Ver2-PosTechnology-extension", - "Ver2-PosTechnology-extension", - &asn_OP_SEQUENCE, - asn_DEF_Ver2_PosTechnology_extension_tags_1, - sizeof(asn_DEF_Ver2_PosTechnology_extension_tags_1) - /sizeof(asn_DEF_Ver2_PosTechnology_extension_tags_1[0]), /* 1 */ - asn_DEF_Ver2_PosTechnology_extension_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver2_PosTechnology_extension_tags_1) - /sizeof(asn_DEF_Ver2_PosTechnology_extension_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ver2_PosTechnology_extension_1, - 1, /* Elements count */ - &asn_SPC_Ver2_PosTechnology_extension_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver2-RequestedAssistData-extension.c b/asn.1/generated/Ver2-RequestedAssistData-extension.c deleted file mode 100644 index 8dca2d62..00000000 --- a/asn.1/generated/Ver2-RequestedAssistData-extension.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-RequestedAssistData-extension.h" - -asn_TYPE_member_t asn_MBR_Ver2_RequestedAssistData_extension_1[] = { - { ATF_POINTER, 4, offsetof(struct Ver2_RequestedAssistData_extension, ganssRequestedCommonAssistanceDataList), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GanssRequestedCommonAssistanceDataList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ganssRequestedCommonAssistanceDataList" - }, - { ATF_POINTER, 3, offsetof(struct Ver2_RequestedAssistData_extension, ganssRequestedGenericAssistanceDataList), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GanssRequestedGenericAssistanceDataList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ganssRequestedGenericAssistanceDataList" - }, - { ATF_POINTER, 2, offsetof(struct Ver2_RequestedAssistData_extension, extendedEphemeris), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ExtendedEphemeris, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "extendedEphemeris" - }, - { ATF_POINTER, 1, offsetof(struct Ver2_RequestedAssistData_extension, extendedEphemerisCheck), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ExtendedEphCheck, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "extendedEphemerisCheck" - }, -}; -static const int asn_MAP_Ver2_RequestedAssistData_extension_oms_1[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_Ver2_RequestedAssistData_extension_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_RequestedAssistData_extension_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssRequestedCommonAssistanceDataList */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssRequestedGenericAssistanceDataList */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* extendedEphemeris */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* extendedEphemerisCheck */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ver2_RequestedAssistData_extension_specs_1 = { - sizeof(struct Ver2_RequestedAssistData_extension), - offsetof(struct Ver2_RequestedAssistData_extension, _asn_ctx), - asn_MAP_Ver2_RequestedAssistData_extension_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_Ver2_RequestedAssistData_extension_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_RequestedAssistData_extension = { - "Ver2-RequestedAssistData-extension", - "Ver2-RequestedAssistData-extension", - &asn_OP_SEQUENCE, - asn_DEF_Ver2_RequestedAssistData_extension_tags_1, - sizeof(asn_DEF_Ver2_RequestedAssistData_extension_tags_1) - /sizeof(asn_DEF_Ver2_RequestedAssistData_extension_tags_1[0]), /* 1 */ - asn_DEF_Ver2_RequestedAssistData_extension_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver2_RequestedAssistData_extension_tags_1) - /sizeof(asn_DEF_Ver2_RequestedAssistData_extension_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ver2_RequestedAssistData_extension_1, - 4, /* Elements count */ - &asn_SPC_Ver2_RequestedAssistData_extension_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver2-RequestedAssistData-extension.h b/asn.1/generated/Ver2-RequestedAssistData-extension.h deleted file mode 100644 index 377acf57..00000000 --- a/asn.1/generated/Ver2-RequestedAssistData-extension.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Ver2_RequestedAssistData_extension_H_ -#define _Ver2_RequestedAssistData_extension_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct GanssRequestedCommonAssistanceDataList; -struct GanssRequestedGenericAssistanceDataList; -struct ExtendedEphemeris; -struct ExtendedEphCheck; - -/* Ver2-RequestedAssistData-extension */ -typedef struct Ver2_RequestedAssistData_extension { - struct GanssRequestedCommonAssistanceDataList *ganssRequestedCommonAssistanceDataList /* OPTIONAL */; - struct GanssRequestedGenericAssistanceDataList *ganssRequestedGenericAssistanceDataList /* OPTIONAL */; - struct ExtendedEphemeris *extendedEphemeris /* OPTIONAL */; - struct ExtendedEphCheck *extendedEphemerisCheck /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Ver2_RequestedAssistData_extension_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Ver2_RequestedAssistData_extension; -extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_RequestedAssistData_extension_specs_1; -extern asn_TYPE_member_t asn_MBR_Ver2_RequestedAssistData_extension_1[4]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "GanssRequestedCommonAssistanceDataList.h" -#include "GanssRequestedGenericAssistanceDataList.h" -#include "ExtendedEphemeris.h" -#include "ExtendedEphCheck.h" - -#endif /* _Ver2_RequestedAssistData_extension_H_ */ -#include diff --git a/asn.1/generated/Ver2-SETCapabilities-extension.c b/asn.1/generated/Ver2-SETCapabilities-extension.c deleted file mode 100644 index c1a42706..00000000 --- a/asn.1/generated/Ver2-SETCapabilities-extension.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-SETCapabilities-extension.h" - -asn_TYPE_member_t asn_MBR_Ver2_SETCapabilities_extension_1[] = { - { ATF_POINTER, 2, offsetof(struct Ver2_SETCapabilities_extension, serviceCapabilities), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ServiceCapabilities, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "serviceCapabilities" - }, - { ATF_POINTER, 1, offsetof(struct Ver2_SETCapabilities_extension, supportedBearers), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SupportedBearers, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "supportedBearers" - }, -}; -static const int asn_MAP_Ver2_SETCapabilities_extension_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_Ver2_SETCapabilities_extension_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_SETCapabilities_extension_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* serviceCapabilities */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* supportedBearers */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ver2_SETCapabilities_extension_specs_1 = { - sizeof(struct Ver2_SETCapabilities_extension), - offsetof(struct Ver2_SETCapabilities_extension, _asn_ctx), - asn_MAP_Ver2_SETCapabilities_extension_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_Ver2_SETCapabilities_extension_oms_1, /* Optional members */ - 1, 1, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_SETCapabilities_extension = { - "Ver2-SETCapabilities-extension", - "Ver2-SETCapabilities-extension", - &asn_OP_SEQUENCE, - asn_DEF_Ver2_SETCapabilities_extension_tags_1, - sizeof(asn_DEF_Ver2_SETCapabilities_extension_tags_1) - /sizeof(asn_DEF_Ver2_SETCapabilities_extension_tags_1[0]), /* 1 */ - asn_DEF_Ver2_SETCapabilities_extension_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver2_SETCapabilities_extension_tags_1) - /sizeof(asn_DEF_Ver2_SETCapabilities_extension_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ver2_SETCapabilities_extension_1, - 2, /* Elements count */ - &asn_SPC_Ver2_SETCapabilities_extension_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver2-SETCapabilities-extension.h b/asn.1/generated/Ver2-SETCapabilities-extension.h deleted file mode 100644 index 8e8fd79e..00000000 --- a/asn.1/generated/Ver2-SETCapabilities-extension.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Ver2_SETCapabilities_extension_H_ -#define _Ver2_SETCapabilities_extension_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct ServiceCapabilities; -struct SupportedBearers; - -/* Ver2-SETCapabilities-extension */ -typedef struct Ver2_SETCapabilities_extension { - struct ServiceCapabilities *serviceCapabilities /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - struct SupportedBearers *supportedBearers /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Ver2_SETCapabilities_extension_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Ver2_SETCapabilities_extension; -extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SETCapabilities_extension_specs_1; -extern asn_TYPE_member_t asn_MBR_Ver2_SETCapabilities_extension_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "ServiceCapabilities.h" -#include "SupportedBearers.h" - -#endif /* _Ver2_SETCapabilities_extension_H_ */ -#include diff --git a/asn.1/generated/Ver2-SUPL-END-extension.c b/asn.1/generated/Ver2-SUPL-END-extension.c deleted file mode 100644 index b03ccc84..00000000 --- a/asn.1/generated/Ver2-SUPL-END-extension.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-SUPL-END-extension.h" - -asn_TYPE_member_t asn_MBR_Ver2_SUPL_END_extension_1[] = { - { ATF_POINTER, 1, offsetof(struct Ver2_SUPL_END_extension, sETCapabilities), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SETCapabilities, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sETCapabilities" - }, -}; -static const int asn_MAP_Ver2_SUPL_END_extension_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_Ver2_SUPL_END_extension_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPL_END_extension_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* sETCapabilities */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_END_extension_specs_1 = { - sizeof(struct Ver2_SUPL_END_extension), - offsetof(struct Ver2_SUPL_END_extension, _asn_ctx), - asn_MAP_Ver2_SUPL_END_extension_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_Ver2_SUPL_END_extension_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_END_extension = { - "Ver2-SUPL-END-extension", - "Ver2-SUPL-END-extension", - &asn_OP_SEQUENCE, - asn_DEF_Ver2_SUPL_END_extension_tags_1, - sizeof(asn_DEF_Ver2_SUPL_END_extension_tags_1) - /sizeof(asn_DEF_Ver2_SUPL_END_extension_tags_1[0]), /* 1 */ - asn_DEF_Ver2_SUPL_END_extension_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver2_SUPL_END_extension_tags_1) - /sizeof(asn_DEF_Ver2_SUPL_END_extension_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ver2_SUPL_END_extension_1, - 1, /* Elements count */ - &asn_SPC_Ver2_SUPL_END_extension_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver2-SUPL-END-extension.h b/asn.1/generated/Ver2-SUPL-END-extension.h deleted file mode 100644 index bc7c0e65..00000000 --- a/asn.1/generated/Ver2-SUPL-END-extension.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Ver2_SUPL_END_extension_H_ -#define _Ver2_SUPL_END_extension_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct SETCapabilities; - -/* Ver2-SUPL-END-extension */ -typedef struct Ver2_SUPL_END_extension { - struct SETCapabilities *sETCapabilities /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Ver2_SUPL_END_extension_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_END_extension; -extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_END_extension_specs_1; -extern asn_TYPE_member_t asn_MBR_Ver2_SUPL_END_extension_1[1]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "SETCapabilities.h" - -#endif /* _Ver2_SUPL_END_extension_H_ */ -#include diff --git a/asn.1/generated/Ver2-SUPL-INIT-extension.c b/asn.1/generated/Ver2-SUPL-INIT-extension.c deleted file mode 100644 index c39ceb10..00000000 --- a/asn.1/generated/Ver2-SUPL-INIT-extension.c +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-SUPL-INIT-extension.h" - -static int -memb_minimumMajorVersion_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_minimumMajorVersion_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_Ver2_SUPL_INIT_extension_1[] = { - { ATF_POINTER, 8, offsetof(struct Ver2_SUPL_INIT_extension, notificationMode), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NotificationMode, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "notificationMode" - }, - { ATF_POINTER, 7, offsetof(struct Ver2_SUPL_INIT_extension, supportedNetworkInformation), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SupportedNetworkInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "supportedNetworkInformation" - }, - { ATF_POINTER, 6, offsetof(struct Ver2_SUPL_INIT_extension, triggerType), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TriggerType, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "triggerType" - }, - { ATF_POINTER, 5, offsetof(struct Ver2_SUPL_INIT_extension, e_SLPAddress), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_SLPAddress, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "e-SLPAddress" - }, - { ATF_POINTER, 4, offsetof(struct Ver2_SUPL_INIT_extension, historicReporting), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HistoricReporting, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "historicReporting" - }, - { ATF_POINTER, 3, offsetof(struct Ver2_SUPL_INIT_extension, protectionLevel), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ProtectionLevel, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "protectionLevel" - }, - { ATF_POINTER, 2, offsetof(struct Ver2_SUPL_INIT_extension, gnssPosTechnology), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSSPosTechnology, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnssPosTechnology" - }, - { ATF_POINTER, 1, offsetof(struct Ver2_SUPL_INIT_extension, minimumMajorVersion), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_minimumMajorVersion_constr_9, memb_minimumMajorVersion_constraint_1 }, - 0, 0, /* No default value */ - "minimumMajorVersion" - }, -}; -static const int asn_MAP_Ver2_SUPL_INIT_extension_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7 }; -static const ber_tlv_tag_t asn_DEF_Ver2_SUPL_INIT_extension_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPL_INIT_extension_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* notificationMode */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* supportedNetworkInformation */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* triggerType */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* e-SLPAddress */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* historicReporting */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* protectionLevel */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnssPosTechnology */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* minimumMajorVersion */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_INIT_extension_specs_1 = { - sizeof(struct Ver2_SUPL_INIT_extension), - offsetof(struct Ver2_SUPL_INIT_extension, _asn_ctx), - asn_MAP_Ver2_SUPL_INIT_extension_tag2el_1, - 8, /* Count of tags in the map */ - asn_MAP_Ver2_SUPL_INIT_extension_oms_1, /* Optional members */ - 8, 0, /* Root/Additions */ - 8, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_INIT_extension = { - "Ver2-SUPL-INIT-extension", - "Ver2-SUPL-INIT-extension", - &asn_OP_SEQUENCE, - asn_DEF_Ver2_SUPL_INIT_extension_tags_1, - sizeof(asn_DEF_Ver2_SUPL_INIT_extension_tags_1) - /sizeof(asn_DEF_Ver2_SUPL_INIT_extension_tags_1[0]), /* 1 */ - asn_DEF_Ver2_SUPL_INIT_extension_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver2_SUPL_INIT_extension_tags_1) - /sizeof(asn_DEF_Ver2_SUPL_INIT_extension_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ver2_SUPL_INIT_extension_1, - 8, /* Elements count */ - &asn_SPC_Ver2_SUPL_INIT_extension_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver2-SUPL-INIT-extension.h b/asn.1/generated/Ver2-SUPL-INIT-extension.h deleted file mode 100644 index cd9c4c7d..00000000 --- a/asn.1/generated/Ver2-SUPL-INIT-extension.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Ver2_SUPL_INIT_extension_H_ -#define _Ver2_SUPL_INIT_extension_H_ - - -#include - -/* Including external dependencies */ -#include "NotificationMode.h" -#include "TriggerType.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct SupportedNetworkInformation; -struct SLPAddress; -struct HistoricReporting; -struct ProtectionLevel; -struct GNSSPosTechnology; - -/* Ver2-SUPL-INIT-extension */ -typedef struct Ver2_SUPL_INIT_extension { - NotificationMode_t *notificationMode /* OPTIONAL */; - struct SupportedNetworkInformation *supportedNetworkInformation /* OPTIONAL */; - TriggerType_t *triggerType /* OPTIONAL */; - struct SLPAddress *e_SLPAddress /* OPTIONAL */; - struct HistoricReporting *historicReporting /* OPTIONAL */; - struct ProtectionLevel *protectionLevel /* OPTIONAL */; - struct GNSSPosTechnology *gnssPosTechnology /* OPTIONAL */; - long *minimumMajorVersion /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Ver2_SUPL_INIT_extension_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_INIT_extension; -extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_INIT_extension_specs_1; -extern asn_TYPE_member_t asn_MBR_Ver2_SUPL_INIT_extension_1[8]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "SupportedNetworkInformation.h" -#include "SLPAddress.h" -#include "HistoricReporting.h" -#include "ProtectionLevel.h" -#include "GNSSPosTechnology.h" - -#endif /* _Ver2_SUPL_INIT_extension_H_ */ -#include diff --git a/asn.1/generated/Ver2-SUPL-POS-INIT-extension.c b/asn.1/generated/Ver2-SUPL-POS-INIT-extension.c deleted file mode 100644 index e13fa769..00000000 --- a/asn.1/generated/Ver2-SUPL-POS-INIT-extension.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-SUPL-POS-INIT-extension.h" - -asn_TYPE_member_t asn_MBR_Ver2_SUPL_POS_INIT_extension_1[] = { - { ATF_POINTER, 3, offsetof(struct Ver2_SUPL_POS_INIT_extension, multipleLocationIds), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MultipleLocationIds, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "multipleLocationIds" - }, - { ATF_POINTER, 2, offsetof(struct Ver2_SUPL_POS_INIT_extension, utran_GPSReferenceTimeResult), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTRAN_GPSReferenceTimeResult, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utran-GPSReferenceTimeResult" - }, - { ATF_POINTER, 1, offsetof(struct Ver2_SUPL_POS_INIT_extension, utran_GANSSReferenceTimeResult), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTRAN_GANSSReferenceTimeResult, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utran-GANSSReferenceTimeResult" - }, -}; -static const int asn_MAP_Ver2_SUPL_POS_INIT_extension_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_Ver2_SUPL_POS_INIT_extension_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPL_POS_INIT_extension_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* multipleLocationIds */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* utran-GPSReferenceTimeResult */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* utran-GANSSReferenceTimeResult */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_POS_INIT_extension_specs_1 = { - sizeof(struct Ver2_SUPL_POS_INIT_extension), - offsetof(struct Ver2_SUPL_POS_INIT_extension, _asn_ctx), - asn_MAP_Ver2_SUPL_POS_INIT_extension_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_Ver2_SUPL_POS_INIT_extension_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_POS_INIT_extension = { - "Ver2-SUPL-POS-INIT-extension", - "Ver2-SUPL-POS-INIT-extension", - &asn_OP_SEQUENCE, - asn_DEF_Ver2_SUPL_POS_INIT_extension_tags_1, - sizeof(asn_DEF_Ver2_SUPL_POS_INIT_extension_tags_1) - /sizeof(asn_DEF_Ver2_SUPL_POS_INIT_extension_tags_1[0]), /* 1 */ - asn_DEF_Ver2_SUPL_POS_INIT_extension_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver2_SUPL_POS_INIT_extension_tags_1) - /sizeof(asn_DEF_Ver2_SUPL_POS_INIT_extension_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ver2_SUPL_POS_INIT_extension_1, - 3, /* Elements count */ - &asn_SPC_Ver2_SUPL_POS_INIT_extension_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver2-SUPL-POS-INIT-extension.h b/asn.1/generated/Ver2-SUPL-POS-INIT-extension.h deleted file mode 100644 index c3305b97..00000000 --- a/asn.1/generated/Ver2-SUPL-POS-INIT-extension.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Ver2_SUPL_POS_INIT_extension_H_ -#define _Ver2_SUPL_POS_INIT_extension_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct MultipleLocationIds; -struct UTRAN_GPSReferenceTimeResult; -struct UTRAN_GANSSReferenceTimeResult; - -/* Ver2-SUPL-POS-INIT-extension */ -typedef struct Ver2_SUPL_POS_INIT_extension { - struct MultipleLocationIds *multipleLocationIds /* OPTIONAL */; - struct UTRAN_GPSReferenceTimeResult *utran_GPSReferenceTimeResult /* OPTIONAL */; - struct UTRAN_GANSSReferenceTimeResult *utran_GANSSReferenceTimeResult /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Ver2_SUPL_POS_INIT_extension_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_POS_INIT_extension; -extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_POS_INIT_extension_specs_1; -extern asn_TYPE_member_t asn_MBR_Ver2_SUPL_POS_INIT_extension_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "MultipleLocationIds.h" -#include "UTRAN-GPSReferenceTimeResult.h" -#include "UTRAN-GANSSReferenceTimeResult.h" - -#endif /* _Ver2_SUPL_POS_INIT_extension_H_ */ -#include diff --git a/asn.1/generated/Ver2-SUPL-POS-extension.c b/asn.1/generated/Ver2-SUPL-POS-extension.c deleted file mode 100644 index da769870..00000000 --- a/asn.1/generated/Ver2-SUPL-POS-extension.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-SUPL-POS-extension.h" - -asn_TYPE_member_t asn_MBR_Ver2_SUPL_POS_extension_1[] = { - { ATF_POINTER, 4, offsetof(struct Ver2_SUPL_POS_extension, utran_GPSReferenceTimeAssistance), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTRAN_GPSReferenceTimeAssistance, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utran-GPSReferenceTimeAssistance" - }, - { ATF_POINTER, 3, offsetof(struct Ver2_SUPL_POS_extension, utran_GPSReferenceTimeResult), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTRAN_GPSReferenceTimeResult, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utran-GPSReferenceTimeResult" - }, - { ATF_POINTER, 2, offsetof(struct Ver2_SUPL_POS_extension, utran_GANSSReferenceTimeAssistance), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTRAN_GANSSReferenceTimeAssistance, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utran-GANSSReferenceTimeAssistance" - }, - { ATF_POINTER, 1, offsetof(struct Ver2_SUPL_POS_extension, utran_GANSSReferenceTimeResult), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTRAN_GANSSReferenceTimeResult, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "utran-GANSSReferenceTimeResult" - }, -}; -static const int asn_MAP_Ver2_SUPL_POS_extension_oms_1[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_Ver2_SUPL_POS_extension_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPL_POS_extension_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utran-GPSReferenceTimeAssistance */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* utran-GPSReferenceTimeResult */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* utran-GANSSReferenceTimeAssistance */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* utran-GANSSReferenceTimeResult */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_POS_extension_specs_1 = { - sizeof(struct Ver2_SUPL_POS_extension), - offsetof(struct Ver2_SUPL_POS_extension, _asn_ctx), - asn_MAP_Ver2_SUPL_POS_extension_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_Ver2_SUPL_POS_extension_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_POS_extension = { - "Ver2-SUPL-POS-extension", - "Ver2-SUPL-POS-extension", - &asn_OP_SEQUENCE, - asn_DEF_Ver2_SUPL_POS_extension_tags_1, - sizeof(asn_DEF_Ver2_SUPL_POS_extension_tags_1) - /sizeof(asn_DEF_Ver2_SUPL_POS_extension_tags_1[0]), /* 1 */ - asn_DEF_Ver2_SUPL_POS_extension_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver2_SUPL_POS_extension_tags_1) - /sizeof(asn_DEF_Ver2_SUPL_POS_extension_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ver2_SUPL_POS_extension_1, - 4, /* Elements count */ - &asn_SPC_Ver2_SUPL_POS_extension_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver2-SUPL-POS-extension.h b/asn.1/generated/Ver2-SUPL-POS-extension.h deleted file mode 100644 index bb2f597b..00000000 --- a/asn.1/generated/Ver2-SUPL-POS-extension.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Ver2_SUPL_POS_extension_H_ -#define _Ver2_SUPL_POS_extension_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct UTRAN_GPSReferenceTimeAssistance; -struct UTRAN_GPSReferenceTimeResult; -struct UTRAN_GANSSReferenceTimeAssistance; -struct UTRAN_GANSSReferenceTimeResult; - -/* Ver2-SUPL-POS-extension */ -typedef struct Ver2_SUPL_POS_extension { - struct UTRAN_GPSReferenceTimeAssistance *utran_GPSReferenceTimeAssistance /* OPTIONAL */; - struct UTRAN_GPSReferenceTimeResult *utran_GPSReferenceTimeResult /* OPTIONAL */; - struct UTRAN_GANSSReferenceTimeAssistance *utran_GANSSReferenceTimeAssistance /* OPTIONAL */; - struct UTRAN_GANSSReferenceTimeResult *utran_GANSSReferenceTimeResult /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Ver2_SUPL_POS_extension_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_POS_extension; -extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_POS_extension_specs_1; -extern asn_TYPE_member_t asn_MBR_Ver2_SUPL_POS_extension_1[4]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "UTRAN-GPSReferenceTimeAssistance.h" -#include "UTRAN-GPSReferenceTimeResult.h" -#include "UTRAN-GANSSReferenceTimeAssistance.h" -#include "UTRAN-GANSSReferenceTimeResult.h" - -#endif /* _Ver2_SUPL_POS_extension_H_ */ -#include diff --git a/asn.1/generated/Ver2-SUPL-RESPONSE-extension.c b/asn.1/generated/Ver2-SUPL-RESPONSE-extension.c deleted file mode 100644 index 81f48e12..00000000 --- a/asn.1/generated/Ver2-SUPL-RESPONSE-extension.c +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-SUPL-RESPONSE-extension.h" - -asn_TYPE_member_t asn_MBR_Ver2_SUPL_RESPONSE_extension_1[] = { - { ATF_POINTER, 6, offsetof(struct Ver2_SUPL_RESPONSE_extension, supportedNetworkInformation), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SupportedNetworkInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "supportedNetworkInformation" - }, - { ATF_POINTER, 5, offsetof(struct Ver2_SUPL_RESPONSE_extension, sPCSETKey), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SPCSETKey, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sPCSETKey" - }, - { ATF_POINTER, 4, offsetof(struct Ver2_SUPL_RESPONSE_extension, sPCTID), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SPCTID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sPCTID" - }, - { ATF_POINTER, 3, offsetof(struct Ver2_SUPL_RESPONSE_extension, sPCSETKeylifetime), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SPCSETKeylifetime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sPCSETKeylifetime" - }, - { ATF_POINTER, 2, offsetof(struct Ver2_SUPL_RESPONSE_extension, initialApproximateposition), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Position, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "initialApproximateposition" - }, - { ATF_POINTER, 1, offsetof(struct Ver2_SUPL_RESPONSE_extension, gnssPosTechnology), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSSPosTechnology, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnssPosTechnology" - }, -}; -static const int asn_MAP_Ver2_SUPL_RESPONSE_extension_oms_1[] = { 0, 1, 2, 3, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_Ver2_SUPL_RESPONSE_extension_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPL_RESPONSE_extension_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* supportedNetworkInformation */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sPCSETKey */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sPCTID */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* sPCSETKeylifetime */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* initialApproximateposition */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* gnssPosTechnology */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_RESPONSE_extension_specs_1 = { - sizeof(struct Ver2_SUPL_RESPONSE_extension), - offsetof(struct Ver2_SUPL_RESPONSE_extension, _asn_ctx), - asn_MAP_Ver2_SUPL_RESPONSE_extension_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_Ver2_SUPL_RESPONSE_extension_oms_1, /* Optional members */ - 6, 0, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_RESPONSE_extension = { - "Ver2-SUPL-RESPONSE-extension", - "Ver2-SUPL-RESPONSE-extension", - &asn_OP_SEQUENCE, - asn_DEF_Ver2_SUPL_RESPONSE_extension_tags_1, - sizeof(asn_DEF_Ver2_SUPL_RESPONSE_extension_tags_1) - /sizeof(asn_DEF_Ver2_SUPL_RESPONSE_extension_tags_1[0]), /* 1 */ - asn_DEF_Ver2_SUPL_RESPONSE_extension_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver2_SUPL_RESPONSE_extension_tags_1) - /sizeof(asn_DEF_Ver2_SUPL_RESPONSE_extension_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ver2_SUPL_RESPONSE_extension_1, - 6, /* Elements count */ - &asn_SPC_Ver2_SUPL_RESPONSE_extension_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver2-SUPL-RESPONSE-extension.h b/asn.1/generated/Ver2-SUPL-RESPONSE-extension.h deleted file mode 100644 index 563164af..00000000 --- a/asn.1/generated/Ver2-SUPL-RESPONSE-extension.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Ver2_SUPL_RESPONSE_extension_H_ -#define _Ver2_SUPL_RESPONSE_extension_H_ - - -#include - -/* Including external dependencies */ -#include "SPCSETKey.h" -#include "SPCSETKeylifetime.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct SupportedNetworkInformation; -struct SPCTID; -struct Position; -struct GNSSPosTechnology; - -/* Ver2-SUPL-RESPONSE-extension */ -typedef struct Ver2_SUPL_RESPONSE_extension { - struct SupportedNetworkInformation *supportedNetworkInformation /* OPTIONAL */; - SPCSETKey_t *sPCSETKey /* OPTIONAL */; - struct SPCTID *sPCTID /* OPTIONAL */; - SPCSETKeylifetime_t *sPCSETKeylifetime /* OPTIONAL */; - struct Position *initialApproximateposition /* OPTIONAL */; - struct GNSSPosTechnology *gnssPosTechnology /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Ver2_SUPL_RESPONSE_extension_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_RESPONSE_extension; -extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_RESPONSE_extension_specs_1; -extern asn_TYPE_member_t asn_MBR_Ver2_SUPL_RESPONSE_extension_1[6]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "SupportedNetworkInformation.h" -#include "SPCTID.h" -#include "Position.h" -#include "GNSSPosTechnology.h" - -#endif /* _Ver2_SUPL_RESPONSE_extension_H_ */ -#include diff --git a/asn.1/generated/Ver2-SUPL-START-extension.c b/asn.1/generated/Ver2-SUPL-START-extension.c deleted file mode 100644 index 74d30f1e..00000000 --- a/asn.1/generated/Ver2-SUPL-START-extension.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-SUPL-START-extension.h" - -asn_TYPE_member_t asn_MBR_Ver2_SUPL_START_extension_1[] = { - { ATF_POINTER, 4, offsetof(struct Ver2_SUPL_START_extension, multipleLocationIds), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MultipleLocationIds, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "multipleLocationIds" - }, - { ATF_POINTER, 3, offsetof(struct Ver2_SUPL_START_extension, thirdParty), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ThirdParty, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "thirdParty" - }, - { ATF_POINTER, 2, offsetof(struct Ver2_SUPL_START_extension, applicationID), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ApplicationID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "applicationID" - }, - { ATF_POINTER, 1, offsetof(struct Ver2_SUPL_START_extension, position), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Position, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "position" - }, -}; -static const int asn_MAP_Ver2_SUPL_START_extension_oms_1[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_Ver2_SUPL_START_extension_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPL_START_extension_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* multipleLocationIds */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* thirdParty */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* applicationID */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* position */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_START_extension_specs_1 = { - sizeof(struct Ver2_SUPL_START_extension), - offsetof(struct Ver2_SUPL_START_extension, _asn_ctx), - asn_MAP_Ver2_SUPL_START_extension_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_Ver2_SUPL_START_extension_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_START_extension = { - "Ver2-SUPL-START-extension", - "Ver2-SUPL-START-extension", - &asn_OP_SEQUENCE, - asn_DEF_Ver2_SUPL_START_extension_tags_1, - sizeof(asn_DEF_Ver2_SUPL_START_extension_tags_1) - /sizeof(asn_DEF_Ver2_SUPL_START_extension_tags_1[0]), /* 1 */ - asn_DEF_Ver2_SUPL_START_extension_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver2_SUPL_START_extension_tags_1) - /sizeof(asn_DEF_Ver2_SUPL_START_extension_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ver2_SUPL_START_extension_1, - 4, /* Elements count */ - &asn_SPC_Ver2_SUPL_START_extension_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver2-SUPL-START-extension.h b/asn.1/generated/Ver2-SUPL-START-extension.h deleted file mode 100644 index cd8ba946..00000000 --- a/asn.1/generated/Ver2-SUPL-START-extension.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Ver2_SUPL_START_extension_H_ -#define _Ver2_SUPL_START_extension_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct MultipleLocationIds; -struct ThirdParty; -struct ApplicationID; -struct Position; - -/* Ver2-SUPL-START-extension */ -typedef struct Ver2_SUPL_START_extension { - struct MultipleLocationIds *multipleLocationIds /* OPTIONAL */; - struct ThirdParty *thirdParty /* OPTIONAL */; - struct ApplicationID *applicationID /* OPTIONAL */; - struct Position *position /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Ver2_SUPL_START_extension_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_START_extension; -extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_START_extension_specs_1; -extern asn_TYPE_member_t asn_MBR_Ver2_SUPL_START_extension_1[4]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "MultipleLocationIds.h" -#include "ThirdParty.h" -#include "ApplicationID.h" -#include "Position.h" - -#endif /* _Ver2_SUPL_START_extension_H_ */ -#include diff --git a/asn.1/generated/Ver2-SUPLNOTIFY.c b/asn.1/generated/Ver2-SUPLNOTIFY.c deleted file mode 100644 index 6ee0ad63..00000000 --- a/asn.1/generated/Ver2-SUPLNOTIFY.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-NOTIFY" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-SUPLNOTIFY.h" - -asn_TYPE_member_t asn_MBR_Ver2_SUPLNOTIFY_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Ver2_SUPLNOTIFY, notification), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Notification, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "notification" - }, -}; -static const ber_tlv_tag_t asn_DEF_Ver2_SUPLNOTIFY_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPLNOTIFY_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* notification */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLNOTIFY_specs_1 = { - sizeof(struct Ver2_SUPLNOTIFY), - offsetof(struct Ver2_SUPLNOTIFY, _asn_ctx), - asn_MAP_Ver2_SUPLNOTIFY_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLNOTIFY = { - "Ver2-SUPLNOTIFY", - "Ver2-SUPLNOTIFY", - &asn_OP_SEQUENCE, - asn_DEF_Ver2_SUPLNOTIFY_tags_1, - sizeof(asn_DEF_Ver2_SUPLNOTIFY_tags_1) - /sizeof(asn_DEF_Ver2_SUPLNOTIFY_tags_1[0]), /* 1 */ - asn_DEF_Ver2_SUPLNOTIFY_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver2_SUPLNOTIFY_tags_1) - /sizeof(asn_DEF_Ver2_SUPLNOTIFY_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ver2_SUPLNOTIFY_1, - 1, /* Elements count */ - &asn_SPC_Ver2_SUPLNOTIFY_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver2-SUPLNOTIFYRESPONSE.c b/asn.1/generated/Ver2-SUPLNOTIFYRESPONSE.c deleted file mode 100644 index dc4c1e84..00000000 --- a/asn.1/generated/Ver2-SUPLNOTIFYRESPONSE.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-NOTIFY-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-SUPLNOTIFYRESPONSE.h" - -asn_TYPE_member_t asn_MBR_Ver2_SUPLNOTIFYRESPONSE_1[] = { - { ATF_POINTER, 1, offsetof(struct Ver2_SUPLNOTIFYRESPONSE, notificationResponse), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NotificationResponse, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "notificationResponse" - }, -}; -static const int asn_MAP_Ver2_SUPLNOTIFYRESPONSE_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_Ver2_SUPLNOTIFYRESPONSE_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPLNOTIFYRESPONSE_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* notificationResponse */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLNOTIFYRESPONSE_specs_1 = { - sizeof(struct Ver2_SUPLNOTIFYRESPONSE), - offsetof(struct Ver2_SUPLNOTIFYRESPONSE, _asn_ctx), - asn_MAP_Ver2_SUPLNOTIFYRESPONSE_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_Ver2_SUPLNOTIFYRESPONSE_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLNOTIFYRESPONSE = { - "Ver2-SUPLNOTIFYRESPONSE", - "Ver2-SUPLNOTIFYRESPONSE", - &asn_OP_SEQUENCE, - asn_DEF_Ver2_SUPLNOTIFYRESPONSE_tags_1, - sizeof(asn_DEF_Ver2_SUPLNOTIFYRESPONSE_tags_1) - /sizeof(asn_DEF_Ver2_SUPLNOTIFYRESPONSE_tags_1[0]), /* 1 */ - asn_DEF_Ver2_SUPLNOTIFYRESPONSE_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver2_SUPLNOTIFYRESPONSE_tags_1) - /sizeof(asn_DEF_Ver2_SUPLNOTIFYRESPONSE_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ver2_SUPLNOTIFYRESPONSE_1, - 1, /* Elements count */ - &asn_SPC_Ver2_SUPLNOTIFYRESPONSE_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver2-SUPLNOTIFYRESPONSE.h b/asn.1/generated/Ver2-SUPLNOTIFYRESPONSE.h deleted file mode 100644 index ccf71536..00000000 --- a/asn.1/generated/Ver2-SUPLNOTIFYRESPONSE.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-NOTIFY-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Ver2_SUPLNOTIFYRESPONSE_H_ -#define _Ver2_SUPLNOTIFYRESPONSE_H_ - - -#include - -/* Including external dependencies */ -#include "NotificationResponse.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Ver2-SUPLNOTIFYRESPONSE */ -typedef struct Ver2_SUPLNOTIFYRESPONSE { - NotificationResponse_t *notificationResponse /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Ver2_SUPLNOTIFYRESPONSE_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLNOTIFYRESPONSE; -extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLNOTIFYRESPONSE_specs_1; -extern asn_TYPE_member_t asn_MBR_Ver2_SUPLNOTIFYRESPONSE_1[1]; - -#ifdef __cplusplus -} -#endif - -#endif /* _Ver2_SUPLNOTIFYRESPONSE_H_ */ -#include diff --git a/asn.1/generated/Ver2-SUPLREPORT.c b/asn.1/generated/Ver2-SUPLREPORT.c deleted file mode 100644 index 60e61f57..00000000 --- a/asn.1/generated/Ver2-SUPLREPORT.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-SUPLREPORT.h" - -asn_TYPE_member_t asn_MBR_Ver2_SUPLREPORT_1[] = { - { ATF_POINTER, 5, offsetof(struct Ver2_SUPLREPORT, sessionList), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SessionList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sessionList" - }, - { ATF_POINTER, 4, offsetof(struct Ver2_SUPLREPORT, sETCapabilities), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SETCapabilities, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sETCapabilities" - }, - { ATF_POINTER, 3, offsetof(struct Ver2_SUPLREPORT, reportDataList), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ReportDataList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "reportDataList" - }, - { ATF_POINTER, 2, offsetof(struct Ver2_SUPLREPORT, ver), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ver" - }, - { ATF_POINTER, 1, offsetof(struct Ver2_SUPLREPORT, moreComponents), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "moreComponents" - }, -}; -static const int asn_MAP_Ver2_SUPLREPORT_oms_1[] = { 0, 1, 2, 3, 4 }; -static const ber_tlv_tag_t asn_DEF_Ver2_SUPLREPORT_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPLREPORT_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sessionList */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sETCapabilities */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* reportDataList */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ver */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* moreComponents */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLREPORT_specs_1 = { - sizeof(struct Ver2_SUPLREPORT), - offsetof(struct Ver2_SUPLREPORT, _asn_ctx), - asn_MAP_Ver2_SUPLREPORT_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_Ver2_SUPLREPORT_oms_1, /* Optional members */ - 5, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLREPORT = { - "Ver2-SUPLREPORT", - "Ver2-SUPLREPORT", - &asn_OP_SEQUENCE, - asn_DEF_Ver2_SUPLREPORT_tags_1, - sizeof(asn_DEF_Ver2_SUPLREPORT_tags_1) - /sizeof(asn_DEF_Ver2_SUPLREPORT_tags_1[0]), /* 1 */ - asn_DEF_Ver2_SUPLREPORT_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver2_SUPLREPORT_tags_1) - /sizeof(asn_DEF_Ver2_SUPLREPORT_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ver2_SUPLREPORT_1, - 5, /* Elements count */ - &asn_SPC_Ver2_SUPLREPORT_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver2-SUPLREPORT.h b/asn.1/generated/Ver2-SUPLREPORT.h deleted file mode 100644 index 0a7b8549..00000000 --- a/asn.1/generated/Ver2-SUPLREPORT.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Ver2_SUPLREPORT_H_ -#define _Ver2_SUPLREPORT_H_ - - -#include - -/* Including external dependencies */ -#include "Ver.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct SessionList; -struct SETCapabilities; -struct ReportDataList; - -/* Ver2-SUPLREPORT */ -typedef struct Ver2_SUPLREPORT { - struct SessionList *sessionList /* OPTIONAL */; - struct SETCapabilities *sETCapabilities /* OPTIONAL */; - struct ReportDataList *reportDataList /* OPTIONAL */; - Ver_t *ver /* OPTIONAL */; - NULL_t *moreComponents /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Ver2_SUPLREPORT_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLREPORT; -extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLREPORT_specs_1; -extern asn_TYPE_member_t asn_MBR_Ver2_SUPLREPORT_1[5]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "SessionList.h" -#include "SETCapabilities.h" -#include "ReportDataList.h" - -#endif /* _Ver2_SUPLREPORT_H_ */ -#include diff --git a/asn.1/generated/Ver2-SUPLSETINIT.c b/asn.1/generated/Ver2-SUPLSETINIT.c deleted file mode 100644 index 28df7ce1..00000000 --- a/asn.1/generated/Ver2-SUPLSETINIT.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-SET-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-SUPLSETINIT.h" - -asn_TYPE_member_t asn_MBR_Ver2_SUPLSETINIT_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Ver2_SUPLSETINIT, targetSETID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_SETId, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "targetSETID" - }, - { ATF_POINTER, 2, offsetof(struct Ver2_SUPLSETINIT, qoP), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_QoP, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "qoP" - }, - { ATF_POINTER, 1, offsetof(struct Ver2_SUPLSETINIT, applicationID), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ApplicationID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "applicationID" - }, -}; -static const int asn_MAP_Ver2_SUPLSETINIT_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_Ver2_SUPLSETINIT_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPLSETINIT_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* targetSETID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* qoP */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* applicationID */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLSETINIT_specs_1 = { - sizeof(struct Ver2_SUPLSETINIT), - offsetof(struct Ver2_SUPLSETINIT, _asn_ctx), - asn_MAP_Ver2_SUPLSETINIT_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_Ver2_SUPLSETINIT_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLSETINIT = { - "Ver2-SUPLSETINIT", - "Ver2-SUPLSETINIT", - &asn_OP_SEQUENCE, - asn_DEF_Ver2_SUPLSETINIT_tags_1, - sizeof(asn_DEF_Ver2_SUPLSETINIT_tags_1) - /sizeof(asn_DEF_Ver2_SUPLSETINIT_tags_1[0]), /* 1 */ - asn_DEF_Ver2_SUPLSETINIT_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver2_SUPLSETINIT_tags_1) - /sizeof(asn_DEF_Ver2_SUPLSETINIT_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ver2_SUPLSETINIT_1, - 3, /* Elements count */ - &asn_SPC_Ver2_SUPLSETINIT_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver2-SUPLSETINIT.h b/asn.1/generated/Ver2-SUPLSETINIT.h deleted file mode 100644 index e33fc7fd..00000000 --- a/asn.1/generated/Ver2-SUPLSETINIT.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-SET-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Ver2_SUPLSETINIT_H_ -#define _Ver2_SUPLSETINIT_H_ - - -#include - -/* Including external dependencies */ -#include "SETId.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct QoP; -struct ApplicationID; - -/* Ver2-SUPLSETINIT */ -typedef struct Ver2_SUPLSETINIT { - SETId_t targetSETID; - struct QoP *qoP /* OPTIONAL */; - struct ApplicationID *applicationID /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Ver2_SUPLSETINIT_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLSETINIT; -extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLSETINIT_specs_1; -extern asn_TYPE_member_t asn_MBR_Ver2_SUPLSETINIT_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "QoP.h" -#include "ApplicationID.h" - -#endif /* _Ver2_SUPLSETINIT_H_ */ -#include diff --git a/asn.1/generated/Ver2-SUPLTRIGGEREDRESPONSE.c b/asn.1/generated/Ver2-SUPLTRIGGEREDRESPONSE.c deleted file mode 100644 index 553fe357..00000000 --- a/asn.1/generated/Ver2-SUPLTRIGGEREDRESPONSE.c +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-SUPLTRIGGEREDRESPONSE.h" - -asn_TYPE_member_t asn_MBR_Ver2_SUPLTRIGGEREDRESPONSE_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, posMethod), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PosMethod, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "posMethod" - }, - { ATF_POINTER, 8, offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, triggerParams), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_TriggerParams, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "triggerParams" - }, - { ATF_POINTER, 7, offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, sLPAddress), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_SLPAddress, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sLPAddress" - }, - { ATF_POINTER, 6, offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, supportedNetworkInformation), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SupportedNetworkInformation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "supportedNetworkInformation" - }, - { ATF_POINTER, 5, offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, reportingMode), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ReportingMode, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "reportingMode" - }, - { ATF_POINTER, 4, offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, sPCSETKey), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SPCSETKey, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sPCSETKey" - }, - { ATF_POINTER, 3, offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, sPCTID), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SPCTID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sPCTID" - }, - { ATF_POINTER, 2, offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, sPCSETKeylifetime), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SPCSETKeylifetime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sPCSETKeylifetime" - }, - { ATF_POINTER, 1, offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, gnssPosTechnology), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GNSSPosTechnology, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "gnssPosTechnology" - }, -}; -static const int asn_MAP_Ver2_SUPLTRIGGEREDRESPONSE_oms_1[] = { 1, 2, 3, 4, 5, 6, 7, 8 }; -static const ber_tlv_tag_t asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPLTRIGGEREDRESPONSE_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* posMethod */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* triggerParams */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sLPAddress */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* supportedNetworkInformation */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* reportingMode */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* sPCSETKey */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* sPCTID */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* sPCSETKeylifetime */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* gnssPosTechnology */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLTRIGGEREDRESPONSE_specs_1 = { - sizeof(struct Ver2_SUPLTRIGGEREDRESPONSE), - offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, _asn_ctx), - asn_MAP_Ver2_SUPLTRIGGEREDRESPONSE_tag2el_1, - 9, /* Count of tags in the map */ - asn_MAP_Ver2_SUPLTRIGGEREDRESPONSE_oms_1, /* Optional members */ - 8, 0, /* Root/Additions */ - 9, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE = { - "Ver2-SUPLTRIGGEREDRESPONSE", - "Ver2-SUPLTRIGGEREDRESPONSE", - &asn_OP_SEQUENCE, - asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE_tags_1, - sizeof(asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE_tags_1) - /sizeof(asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE_tags_1[0]), /* 1 */ - asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE_tags_1) - /sizeof(asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ver2_SUPLTRIGGEREDRESPONSE_1, - 9, /* Elements count */ - &asn_SPC_Ver2_SUPLTRIGGEREDRESPONSE_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver2-SUPLTRIGGEREDRESPONSE.h b/asn.1/generated/Ver2-SUPLTRIGGEREDRESPONSE.h deleted file mode 100644 index 6d332716..00000000 --- a/asn.1/generated/Ver2-SUPLTRIGGEREDRESPONSE.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Ver2_SUPLTRIGGEREDRESPONSE_H_ -#define _Ver2_SUPLTRIGGEREDRESPONSE_H_ - - -#include - -/* Including external dependencies */ -#include "PosMethod.h" -#include "SPCSETKey.h" -#include "SPCSETKeylifetime.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct TriggerParams; -struct SLPAddress; -struct SupportedNetworkInformation; -struct ReportingMode; -struct SPCTID; -struct GNSSPosTechnology; - -/* Ver2-SUPLTRIGGEREDRESPONSE */ -typedef struct Ver2_SUPLTRIGGEREDRESPONSE { - PosMethod_t posMethod; - struct TriggerParams *triggerParams /* OPTIONAL */; - struct SLPAddress *sLPAddress /* OPTIONAL */; - struct SupportedNetworkInformation *supportedNetworkInformation /* OPTIONAL */; - struct ReportingMode *reportingMode /* OPTIONAL */; - SPCSETKey_t *sPCSETKey /* OPTIONAL */; - struct SPCTID *sPCTID /* OPTIONAL */; - SPCSETKeylifetime_t *sPCSETKeylifetime /* OPTIONAL */; - struct GNSSPosTechnology *gnssPosTechnology /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Ver2_SUPLTRIGGEREDRESPONSE_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE; -extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLTRIGGEREDRESPONSE_specs_1; -extern asn_TYPE_member_t asn_MBR_Ver2_SUPLTRIGGEREDRESPONSE_1[9]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "TriggerParams.h" -#include "SLPAddress.h" -#include "SupportedNetworkInformation.h" -#include "ReportingMode.h" -#include "SPCTID.h" -#include "GNSSPosTechnology.h" - -#endif /* _Ver2_SUPLTRIGGEREDRESPONSE_H_ */ -#include diff --git a/asn.1/generated/Ver2-SUPLTRIGGEREDSTART.c b/asn.1/generated/Ver2-SUPLTRIGGEREDSTART.c deleted file mode 100644 index 730c8ad2..00000000 --- a/asn.1/generated/Ver2-SUPLTRIGGEREDSTART.c +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-SUPLTRIGGEREDSTART.h" - -asn_TYPE_member_t asn_MBR_Ver2_SUPLTRIGGEREDSTART_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Ver2_SUPLTRIGGEREDSTART, sETCapabilities), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SETCapabilities, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "sETCapabilities" - }, - { ATF_NOFLAGS, 0, offsetof(struct Ver2_SUPLTRIGGEREDSTART, locationId), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LocationId, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationId" - }, - { ATF_POINTER, 10, offsetof(struct Ver2_SUPLTRIGGEREDSTART, ver), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ver, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ver" - }, - { ATF_POINTER, 9, offsetof(struct Ver2_SUPLTRIGGEREDSTART, qoP), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_QoP, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "qoP" - }, - { ATF_POINTER, 8, offsetof(struct Ver2_SUPLTRIGGEREDSTART, multipleLocationIds), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MultipleLocationIds, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "multipleLocationIds" - }, - { ATF_POINTER, 7, offsetof(struct Ver2_SUPLTRIGGEREDSTART, thirdParty), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ThirdParty, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "thirdParty" - }, - { ATF_POINTER, 6, offsetof(struct Ver2_SUPLTRIGGEREDSTART, applicationID), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ApplicationID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "applicationID" - }, - { ATF_POINTER, 5, offsetof(struct Ver2_SUPLTRIGGEREDSTART, triggerType), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TriggerType, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "triggerType" - }, - { ATF_POINTER, 4, offsetof(struct Ver2_SUPLTRIGGEREDSTART, triggerParams), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_TriggerParams, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "triggerParams" - }, - { ATF_POINTER, 3, offsetof(struct Ver2_SUPLTRIGGEREDSTART, position), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Position, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "position" - }, - { ATF_POINTER, 2, offsetof(struct Ver2_SUPLTRIGGEREDSTART, reportingCap), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ReportingCap, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "reportingCap" - }, - { ATF_POINTER, 1, offsetof(struct Ver2_SUPLTRIGGEREDSTART, causeCode), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CauseCode, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "causeCode" - }, -}; -static const int asn_MAP_Ver2_SUPLTRIGGEREDSTART_oms_1[] = { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static const ber_tlv_tag_t asn_DEF_Ver2_SUPLTRIGGEREDSTART_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPLTRIGGEREDSTART_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sETCapabilities */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* locationId */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ver */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* qoP */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* multipleLocationIds */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* thirdParty */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* applicationID */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* triggerType */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* triggerParams */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* position */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* reportingCap */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* causeCode */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLTRIGGEREDSTART_specs_1 = { - sizeof(struct Ver2_SUPLTRIGGEREDSTART), - offsetof(struct Ver2_SUPLTRIGGEREDSTART, _asn_ctx), - asn_MAP_Ver2_SUPLTRIGGEREDSTART_tag2el_1, - 12, /* Count of tags in the map */ - asn_MAP_Ver2_SUPLTRIGGEREDSTART_oms_1, /* Optional members */ - 10, 0, /* Root/Additions */ - 12, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLTRIGGEREDSTART = { - "Ver2-SUPLTRIGGEREDSTART", - "Ver2-SUPLTRIGGEREDSTART", - &asn_OP_SEQUENCE, - asn_DEF_Ver2_SUPLTRIGGEREDSTART_tags_1, - sizeof(asn_DEF_Ver2_SUPLTRIGGEREDSTART_tags_1) - /sizeof(asn_DEF_Ver2_SUPLTRIGGEREDSTART_tags_1[0]), /* 1 */ - asn_DEF_Ver2_SUPLTRIGGEREDSTART_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver2_SUPLTRIGGEREDSTART_tags_1) - /sizeof(asn_DEF_Ver2_SUPLTRIGGEREDSTART_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ver2_SUPLTRIGGEREDSTART_1, - 12, /* Elements count */ - &asn_SPC_Ver2_SUPLTRIGGEREDSTART_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Ver2-SUPLTRIGGEREDSTART.h b/asn.1/generated/Ver2-SUPLTRIGGEREDSTART.h deleted file mode 100644 index f64282ae..00000000 --- a/asn.1/generated/Ver2-SUPLTRIGGEREDSTART.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Ver2_SUPLTRIGGEREDSTART_H_ -#define _Ver2_SUPLTRIGGEREDSTART_H_ - - -#include - -/* Including external dependencies */ -#include "SETCapabilities.h" -#include "LocationId.h" -#include "Ver.h" -#include "TriggerType.h" -#include "CauseCode.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct QoP; -struct MultipleLocationIds; -struct ThirdParty; -struct ApplicationID; -struct TriggerParams; -struct Position; -struct ReportingCap; - -/* Ver2-SUPLTRIGGEREDSTART */ -typedef struct Ver2_SUPLTRIGGEREDSTART { - SETCapabilities_t sETCapabilities; - LocationId_t locationId; - Ver_t *ver /* OPTIONAL */; - struct QoP *qoP /* OPTIONAL */; - struct MultipleLocationIds *multipleLocationIds /* OPTIONAL */; - struct ThirdParty *thirdParty /* OPTIONAL */; - struct ApplicationID *applicationID /* OPTIONAL */; - TriggerType_t *triggerType /* OPTIONAL */; - struct TriggerParams *triggerParams /* OPTIONAL */; - struct Position *position /* OPTIONAL */; - struct ReportingCap *reportingCap /* OPTIONAL */; - CauseCode_t *causeCode /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Ver2_SUPLTRIGGEREDSTART_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLTRIGGEREDSTART; -extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLTRIGGEREDSTART_specs_1; -extern asn_TYPE_member_t asn_MBR_Ver2_SUPLTRIGGEREDSTART_1[12]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "QoP.h" -#include "MultipleLocationIds.h" -#include "ThirdParty.h" -#include "ApplicationID.h" -#include "TriggerParams.h" -#include "Position.h" -#include "ReportingCap.h" - -#endif /* _Ver2_SUPLTRIGGEREDSTART_H_ */ -#include diff --git a/asn.1/generated/Ver2-SUPLTRIGGEREDSTOP.c b/asn.1/generated/Ver2-SUPLTRIGGEREDSTOP.c deleted file mode 100644 index 14bb6cce..00000000 --- a/asn.1/generated/Ver2-SUPLTRIGGEREDSTOP.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-STOP" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Ver2-SUPLTRIGGEREDSTOP.h" - -asn_TYPE_member_t asn_MBR_Ver2_SUPLTRIGGEREDSTOP_1[] = { - { ATF_POINTER, 1, offsetof(struct Ver2_SUPLTRIGGEREDSTOP, statusCode), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_StatusCode, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "statusCode" - }, -}; -static const int asn_MAP_Ver2_SUPLTRIGGEREDSTOP_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_Ver2_SUPLTRIGGEREDSTOP_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPLTRIGGEREDSTOP_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* statusCode */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLTRIGGEREDSTOP_specs_1 = { - sizeof(struct Ver2_SUPLTRIGGEREDSTOP), - offsetof(struct Ver2_SUPLTRIGGEREDSTOP, _asn_ctx), - asn_MAP_Ver2_SUPLTRIGGEREDSTOP_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_Ver2_SUPLTRIGGEREDSTOP_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLTRIGGEREDSTOP = { - "Ver2-SUPLTRIGGEREDSTOP", - "Ver2-SUPLTRIGGEREDSTOP", - &asn_OP_SEQUENCE, - asn_DEF_Ver2_SUPLTRIGGEREDSTOP_tags_1, - sizeof(asn_DEF_Ver2_SUPLTRIGGEREDSTOP_tags_1) - /sizeof(asn_DEF_Ver2_SUPLTRIGGEREDSTOP_tags_1[0]), /* 1 */ - asn_DEF_Ver2_SUPLTRIGGEREDSTOP_tags_1, /* Same as above */ - sizeof(asn_DEF_Ver2_SUPLTRIGGEREDSTOP_tags_1) - /sizeof(asn_DEF_Ver2_SUPLTRIGGEREDSTOP_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Ver2_SUPLTRIGGEREDSTOP_1, - 1, /* Elements count */ - &asn_SPC_Ver2_SUPLTRIGGEREDSTOP_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Version.c b/asn.1/generated/Version.c deleted file mode 100644 index 6d5b27cf..00000000 --- a/asn.1/generated/Version.c +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "Version.h" - -static int -memb_maj_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_min_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_servind_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_maj_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_min_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_servind_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_Version_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Version, maj), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_maj_constr_2, memb_maj_constraint_1 }, - 0, 0, /* No default value */ - "maj" - }, - { ATF_NOFLAGS, 0, offsetof(struct Version, min), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_min_constr_3, memb_min_constraint_1 }, - 0, 0, /* No default value */ - "min" - }, - { ATF_NOFLAGS, 0, offsetof(struct Version, servind), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_servind_constr_4, memb_servind_constraint_1 }, - 0, 0, /* No default value */ - "servind" - }, -}; -static const ber_tlv_tag_t asn_DEF_Version_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Version_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maj */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* min */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* servind */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Version_specs_1 = { - sizeof(struct Version), - offsetof(struct Version, _asn_ctx), - asn_MAP_Version_tag2el_1, - 3, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_Version = { - "Version", - "Version", - &asn_OP_SEQUENCE, - asn_DEF_Version_tags_1, - sizeof(asn_DEF_Version_tags_1) - /sizeof(asn_DEF_Version_tags_1[0]), /* 1 */ - asn_DEF_Version_tags_1, /* Same as above */ - sizeof(asn_DEF_Version_tags_1) - /sizeof(asn_DEF_Version_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_Version_1, - 3, /* Elements count */ - &asn_SPC_Version_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/Version.h b/asn.1/generated/Version.h deleted file mode 100644 index c1089a6c..00000000 --- a/asn.1/generated/Version.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _Version_H_ -#define _Version_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Version */ -typedef struct Version { - long maj; - long min; - long servind; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Version_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Version; -extern asn_SEQUENCE_specifics_t asn_SPC_Version_specs_1; -extern asn_TYPE_member_t asn_MBR_Version_1[3]; - -#ifdef __cplusplus -} -#endif - -#endif /* _Version_H_ */ -#include diff --git a/asn.1/generated/VerticalAccuracy.c b/asn.1/generated/VerticalAccuracy.c deleted file mode 100644 index 38f37b96..00000000 --- a/asn.1/generated/VerticalAccuracy.c +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "VerticalAccuracy.h" - -static int -memb_accuracy_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_confidence_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_accuracy_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_confidence_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_VerticalAccuracy_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct VerticalAccuracy, accuracy), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_accuracy_constr_2, memb_accuracy_constraint_1 }, - 0, 0, /* No default value */ - "accuracy" - }, - { ATF_NOFLAGS, 0, offsetof(struct VerticalAccuracy, confidence), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_confidence_constr_3, memb_confidence_constraint_1 }, - 0, 0, /* No default value */ - "confidence" - }, -}; -static const ber_tlv_tag_t asn_DEF_VerticalAccuracy_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_VerticalAccuracy_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* accuracy */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence */ -}; -asn_SEQUENCE_specifics_t asn_SPC_VerticalAccuracy_specs_1 = { - sizeof(struct VerticalAccuracy), - offsetof(struct VerticalAccuracy, _asn_ctx), - asn_MAP_VerticalAccuracy_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_VerticalAccuracy = { - "VerticalAccuracy", - "VerticalAccuracy", - &asn_OP_SEQUENCE, - asn_DEF_VerticalAccuracy_tags_1, - sizeof(asn_DEF_VerticalAccuracy_tags_1) - /sizeof(asn_DEF_VerticalAccuracy_tags_1[0]), /* 1 */ - asn_DEF_VerticalAccuracy_tags_1, /* Same as above */ - sizeof(asn_DEF_VerticalAccuracy_tags_1) - /sizeof(asn_DEF_VerticalAccuracy_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_VerticalAccuracy_1, - 2, /* Elements count */ - &asn_SPC_VerticalAccuracy_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/VerticalAccuracyExt-r15.c b/asn.1/generated/VerticalAccuracyExt-r15.c deleted file mode 100644 index bcdf31fb..00000000 --- a/asn.1/generated/VerticalAccuracyExt-r15.c +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "VerticalAccuracyExt-r15.h" - -static int -memb_accuracyExt_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_confidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 100)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_accuracyExt_r15_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_confidence_r15_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_VerticalAccuracyExt_r15_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct VerticalAccuracyExt_r15, accuracyExt_r15), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_accuracyExt_r15_constr_2, memb_accuracyExt_r15_constraint_1 }, - 0, 0, /* No default value */ - "accuracyExt-r15" - }, - { ATF_NOFLAGS, 0, offsetof(struct VerticalAccuracyExt_r15, confidence_r15), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_confidence_r15_constr_3, memb_confidence_r15_constraint_1 }, - 0, 0, /* No default value */ - "confidence-r15" - }, -}; -static const ber_tlv_tag_t asn_DEF_VerticalAccuracyExt_r15_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_VerticalAccuracyExt_r15_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* accuracyExt-r15 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence-r15 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_VerticalAccuracyExt_r15_specs_1 = { - sizeof(struct VerticalAccuracyExt_r15), - offsetof(struct VerticalAccuracyExt_r15, _asn_ctx), - asn_MAP_VerticalAccuracyExt_r15_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_VerticalAccuracyExt_r15 = { - "VerticalAccuracyExt-r15", - "VerticalAccuracyExt-r15", - &asn_OP_SEQUENCE, - asn_DEF_VerticalAccuracyExt_r15_tags_1, - sizeof(asn_DEF_VerticalAccuracyExt_r15_tags_1) - /sizeof(asn_DEF_VerticalAccuracyExt_r15_tags_1[0]), /* 1 */ - asn_DEF_VerticalAccuracyExt_r15_tags_1, /* Same as above */ - sizeof(asn_DEF_VerticalAccuracyExt_r15_tags_1) - /sizeof(asn_DEF_VerticalAccuracyExt_r15_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_VerticalAccuracyExt_r15_1, - 2, /* Elements count */ - &asn_SPC_VerticalAccuracyExt_r15_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/VisibleString.c b/asn.1/generated/VisibleString.c deleted file mode 100644 index e163791e..00000000 --- a/asn.1/generated/VisibleString.c +++ /dev/null @@ -1,95 +0,0 @@ -/*- - * Copyright (c) 2003, 2006 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include - -/* - * VisibleString basic type description. - */ -static const ber_tlv_tag_t asn_DEF_VisibleString_tags[] = { - (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), /* [UNIVERSAL 26] IMPLICIT ...*/ - (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ -}; -static asn_per_constraints_t asn_DEF_VisibleString_constraints = { - { APC_CONSTRAINED, 7, 7, 0x20, 0x7e }, /* Value */ - { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 }, /* Size */ - 0, 0 -}; -asn_TYPE_operation_t asn_OP_VisibleString = { - OCTET_STRING_free, - OCTET_STRING_print_utf8, /* ASCII subset */ - OCTET_STRING_compare, - OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ - OCTET_STRING_encode_der, - OCTET_STRING_decode_xer_utf8, - OCTET_STRING_encode_xer_utf8, -#ifdef ASN_DISABLE_OER_SUPPORT - 0, - 0, -#else - OCTET_STRING_decode_oer, - OCTET_STRING_encode_oer, -#endif /* ASN_DISABLE_OER_SUPPORT */ -#ifdef ASN_DISABLE_PER_SUPPORT - 0, - 0, -#else - OCTET_STRING_decode_uper, - OCTET_STRING_encode_uper, -#endif /* ASN_DISABLE_PER_SUPPORT */ - OCTET_STRING_random_fill, - 0 /* Use generic outmost tag fetcher */ -}; -asn_TYPE_descriptor_t asn_DEF_VisibleString = { - "VisibleString", - "VisibleString", - &asn_OP_VisibleString, - asn_DEF_VisibleString_tags, - sizeof(asn_DEF_VisibleString_tags) - / sizeof(asn_DEF_VisibleString_tags[0]) - 1, - asn_DEF_VisibleString_tags, - sizeof(asn_DEF_VisibleString_tags) - / sizeof(asn_DEF_VisibleString_tags[0]), - { 0, &asn_DEF_VisibleString_constraints, VisibleString_constraint }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - -int -VisibleString_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const VisibleString_t *st = (const VisibleString_t *)sptr; - - if(st && st->buf) { - uint8_t *buf = st->buf; - uint8_t *end = buf + st->size; - - /* - * Check the alphabet of the VisibleString. - * ISO646, ISOReg#6 - * The alphabet is a subset of ASCII between the space - * and "~" (tilde). - */ - for(; buf < end; buf++) { - if(*buf < 0x20 || *buf > 0x7e) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value byte %ld (%d) " - "not in VisibleString alphabet (%s:%d)", - td->name, - (long)((buf - st->buf) + 1), - *buf, - __FILE__, __LINE__); - return -1; - } - } - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - return 0; -} diff --git a/asn.1/generated/VisibleString.h b/asn.1/generated/VisibleString.h deleted file mode 100644 index 842d56ea..00000000 --- a/asn.1/generated/VisibleString.h +++ /dev/null @@ -1,36 +0,0 @@ -/*- - * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef _VisibleString_H_ -#define _VisibleString_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef OCTET_STRING_t VisibleString_t; /* Implemented via OCTET STRING */ - -extern asn_TYPE_descriptor_t asn_DEF_VisibleString; -extern asn_TYPE_operation_t asn_OP_VisibleString; - -asn_constr_check_f VisibleString_constraint; - -#define VisibleString_free OCTET_STRING_free -#define VisibleString_print OCTET_STRING_print -#define VisibleString_compare OCTET_STRING_compare -#define VisibleString_constraint VisibleString_constraint -#define VisibleString_decode_ber OCTET_STRING_decode_ber -#define VisibleString_encode_der OCTET_STRING_encode_der -#define VisibleString_decode_xer OCTET_STRING_decode_xer_hex -#define VisibleString_encode_xer OCTET_STRING_encode_xer -#define VisibleString_decode_uper OCTET_STRING_decode_uper -#define VisibleString_encode_uper OCTET_STRING_encode_uper - -#ifdef __cplusplus -} -#endif - -#endif /* _VisibleString_H_ */ diff --git a/asn.1/generated/WCDMAAreaId.c b/asn.1/generated/WCDMAAreaId.c deleted file mode 100644 index 2c00c2d4..00000000 --- a/asn.1/generated/WCDMAAreaId.c +++ /dev/null @@ -1,202 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WCDMAAreaId.h" - -static int -memb_refMCC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refMNC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refLAC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refUC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 268435455)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_refMCC_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refMNC_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refLAC_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refUC_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 28, -1, 0, 268435455 } /* (0..268435455) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_WCDMAAreaId_1[] = { - { ATF_POINTER, 4, offsetof(struct WCDMAAreaId, refMCC), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refMCC_constr_2, memb_refMCC_constraint_1 }, - 0, 0, /* No default value */ - "refMCC" - }, - { ATF_POINTER, 3, offsetof(struct WCDMAAreaId, refMNC), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refMNC_constr_3, memb_refMNC_constraint_1 }, - 0, 0, /* No default value */ - "refMNC" - }, - { ATF_POINTER, 2, offsetof(struct WCDMAAreaId, refLAC), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refLAC_constr_4, memb_refLAC_constraint_1 }, - 0, 0, /* No default value */ - "refLAC" - }, - { ATF_POINTER, 1, offsetof(struct WCDMAAreaId, refUC), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refUC_constr_5, memb_refUC_constraint_1 }, - 0, 0, /* No default value */ - "refUC" - }, -}; -static const int asn_MAP_WCDMAAreaId_oms_1[] = { 0, 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_WCDMAAreaId_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WCDMAAreaId_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refMCC */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refMNC */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* refLAC */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* refUC */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WCDMAAreaId_specs_1 = { - sizeof(struct WCDMAAreaId), - offsetof(struct WCDMAAreaId, _asn_ctx), - asn_MAP_WCDMAAreaId_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_WCDMAAreaId_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WCDMAAreaId = { - "WCDMAAreaId", - "WCDMAAreaId", - &asn_OP_SEQUENCE, - asn_DEF_WCDMAAreaId_tags_1, - sizeof(asn_DEF_WCDMAAreaId_tags_1) - /sizeof(asn_DEF_WCDMAAreaId_tags_1[0]), /* 1 */ - asn_DEF_WCDMAAreaId_tags_1, /* Same as above */ - sizeof(asn_DEF_WCDMAAreaId_tags_1) - /sizeof(asn_DEF_WCDMAAreaId_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WCDMAAreaId_1, - 4, /* Elements count */ - &asn_SPC_WCDMAAreaId_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WCDMAAreaId.h b/asn.1/generated/WCDMAAreaId.h deleted file mode 100644 index 997733f5..00000000 --- a/asn.1/generated/WCDMAAreaId.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _WCDMAAreaId_H_ -#define _WCDMAAreaId_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* WCDMAAreaId */ -typedef struct WCDMAAreaId { - long *refMCC /* OPTIONAL */; - long *refMNC /* OPTIONAL */; - long *refLAC /* OPTIONAL */; - long *refUC /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} WCDMAAreaId_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_WCDMAAreaId; -extern asn_SEQUENCE_specifics_t asn_SPC_WCDMAAreaId_specs_1; -extern asn_TYPE_member_t asn_MBR_WCDMAAreaId_1[4]; - -#ifdef __cplusplus -} -#endif - -#endif /* _WCDMAAreaId_H_ */ -#include diff --git a/asn.1/generated/WLAN-AP-Data-r14.c b/asn.1/generated/WLAN-AP-Data-r14.c deleted file mode 100644 index 42d51067..00000000 --- a/asn.1/generated/WLAN-AP-Data-r14.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WLAN-AP-Data-r14.h" - -asn_TYPE_member_t asn_MBR_WLAN_AP_Data_r14_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct WLAN_AP_Data_r14, wlan_AP_Identifier_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WLAN_AP_Identifier_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wlan-AP-Identifier-r14" - }, - { ATF_POINTER, 1, offsetof(struct WLAN_AP_Data_r14, wlan_AP_Location_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WLAN_AP_Location_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wlan-AP-Location-r14" - }, -}; -static const int asn_MAP_WLAN_AP_Data_r14_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_WLAN_AP_Data_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WLAN_AP_Data_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wlan-AP-Identifier-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* wlan-AP-Location-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WLAN_AP_Data_r14_specs_1 = { - sizeof(struct WLAN_AP_Data_r14), - offsetof(struct WLAN_AP_Data_r14, _asn_ctx), - asn_MAP_WLAN_AP_Data_r14_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_WLAN_AP_Data_r14_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WLAN_AP_Data_r14 = { - "WLAN-AP-Data-r14", - "WLAN-AP-Data-r14", - &asn_OP_SEQUENCE, - asn_DEF_WLAN_AP_Data_r14_tags_1, - sizeof(asn_DEF_WLAN_AP_Data_r14_tags_1) - /sizeof(asn_DEF_WLAN_AP_Data_r14_tags_1[0]), /* 1 */ - asn_DEF_WLAN_AP_Data_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_WLAN_AP_Data_r14_tags_1) - /sizeof(asn_DEF_WLAN_AP_Data_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WLAN_AP_Data_r14_1, - 2, /* Elements count */ - &asn_SPC_WLAN_AP_Data_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WLAN-AP-Identifier-r13.c b/asn.1/generated/WLAN-AP-Identifier-r13.c deleted file mode 100644 index dff8bba0..00000000 --- a/asn.1/generated/WLAN-AP-Identifier-r13.c +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WLAN-AP-Identifier-r13.h" - -static int -memb_bssid_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size == 6)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_ssid_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size >= 1 && size <= 32)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_bssid_r13_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_ssid_r13_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_WLAN_AP_Identifier_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct WLAN_AP_Identifier_r13, bssid_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OCTET_STRING, - 0, - { 0, &asn_PER_memb_bssid_r13_constr_2, memb_bssid_r13_constraint_1 }, - 0, 0, /* No default value */ - "bssid-r13" - }, - { ATF_POINTER, 1, offsetof(struct WLAN_AP_Identifier_r13, ssid_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OCTET_STRING, - 0, - { 0, &asn_PER_memb_ssid_r13_constr_3, memb_ssid_r13_constraint_1 }, - 0, 0, /* No default value */ - "ssid-r13" - }, -}; -static const int asn_MAP_WLAN_AP_Identifier_r13_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_WLAN_AP_Identifier_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WLAN_AP_Identifier_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bssid-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ssid-r13 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WLAN_AP_Identifier_r13_specs_1 = { - sizeof(struct WLAN_AP_Identifier_r13), - offsetof(struct WLAN_AP_Identifier_r13, _asn_ctx), - asn_MAP_WLAN_AP_Identifier_r13_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_WLAN_AP_Identifier_r13_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WLAN_AP_Identifier_r13 = { - "WLAN-AP-Identifier-r13", - "WLAN-AP-Identifier-r13", - &asn_OP_SEQUENCE, - asn_DEF_WLAN_AP_Identifier_r13_tags_1, - sizeof(asn_DEF_WLAN_AP_Identifier_r13_tags_1) - /sizeof(asn_DEF_WLAN_AP_Identifier_r13_tags_1[0]), /* 1 */ - asn_DEF_WLAN_AP_Identifier_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_WLAN_AP_Identifier_r13_tags_1) - /sizeof(asn_DEF_WLAN_AP_Identifier_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WLAN_AP_Identifier_r13_1, - 2, /* Elements count */ - &asn_SPC_WLAN_AP_Identifier_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WLAN-AP-Location-r14.c b/asn.1/generated/WLAN-AP-Location-r14.c deleted file mode 100644 index 749a9b20..00000000 --- a/asn.1/generated/WLAN-AP-Location-r14.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WLAN-AP-Location-r14.h" - -asn_TYPE_member_t asn_MBR_WLAN_AP_Location_r14_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct WLAN_AP_Location_r14, locationDataLCI_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LocationDataLCI_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationDataLCI-r14" - }, -}; -static const ber_tlv_tag_t asn_DEF_WLAN_AP_Location_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WLAN_AP_Location_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* locationDataLCI-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WLAN_AP_Location_r14_specs_1 = { - sizeof(struct WLAN_AP_Location_r14), - offsetof(struct WLAN_AP_Location_r14, _asn_ctx), - asn_MAP_WLAN_AP_Location_r14_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WLAN_AP_Location_r14 = { - "WLAN-AP-Location-r14", - "WLAN-AP-Location-r14", - &asn_OP_SEQUENCE, - asn_DEF_WLAN_AP_Location_r14_tags_1, - sizeof(asn_DEF_WLAN_AP_Location_r14_tags_1) - /sizeof(asn_DEF_WLAN_AP_Location_r14_tags_1[0]), /* 1 */ - asn_DEF_WLAN_AP_Location_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_WLAN_AP_Location_r14_tags_1) - /sizeof(asn_DEF_WLAN_AP_Location_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WLAN_AP_Location_r14_1, - 1, /* Elements count */ - &asn_SPC_WLAN_AP_Location_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WLAN-DataSet-r14.c b/asn.1/generated/WLAN-DataSet-r14.c deleted file mode 100644 index 96355b50..00000000 --- a/asn.1/generated/WLAN-DataSet-r14.c +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WLAN-DataSet-r14.h" - -static int -memb_wlan_AP_List_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 128)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_wlan_AP_List_r14_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 7, 7, 1, 128 } /* (SIZE(1..128)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_wlan_AP_List_r14_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 7, 7, 1, 128 } /* (SIZE(1..128)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_wlan_AP_List_r14_2[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_WLAN_AP_Data_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_wlan_AP_List_r14_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_wlan_AP_List_r14_specs_2 = { - sizeof(struct WLAN_DataSet_r14__wlan_AP_List_r14), - offsetof(struct WLAN_DataSet_r14__wlan_AP_List_r14, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_wlan_AP_List_r14_2 = { - "wlan-AP-List-r14", - "wlan-AP-List-r14", - &asn_OP_SEQUENCE_OF, - asn_DEF_wlan_AP_List_r14_tags_2, - sizeof(asn_DEF_wlan_AP_List_r14_tags_2) - /sizeof(asn_DEF_wlan_AP_List_r14_tags_2[0]) - 1, /* 1 */ - asn_DEF_wlan_AP_List_r14_tags_2, /* Same as above */ - sizeof(asn_DEF_wlan_AP_List_r14_tags_2) - /sizeof(asn_DEF_wlan_AP_List_r14_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_wlan_AP_List_r14_constr_2, SEQUENCE_OF_constraint }, - asn_MBR_wlan_AP_List_r14_2, - 1, /* Single element */ - &asn_SPC_wlan_AP_List_r14_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_WLAN_DataSet_r14_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct WLAN_DataSet_r14, wlan_AP_List_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_wlan_AP_List_r14_2, - 0, - { 0, &asn_PER_memb_wlan_AP_List_r14_constr_2, memb_wlan_AP_List_r14_constraint_1 }, - 0, 0, /* No default value */ - "wlan-AP-List-r14" - }, - { ATF_POINTER, 2, offsetof(struct WLAN_DataSet_r14, supportedChannels_11a_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SupportedChannels_11a_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "supportedChannels-11a-r14" - }, - { ATF_POINTER, 1, offsetof(struct WLAN_DataSet_r14, supportedChannels_11bg_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SupportedChannels_11bg_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "supportedChannels-11bg-r14" - }, -}; -static const int asn_MAP_WLAN_DataSet_r14_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_WLAN_DataSet_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WLAN_DataSet_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wlan-AP-List-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* supportedChannels-11a-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* supportedChannels-11bg-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WLAN_DataSet_r14_specs_1 = { - sizeof(struct WLAN_DataSet_r14), - offsetof(struct WLAN_DataSet_r14, _asn_ctx), - asn_MAP_WLAN_DataSet_r14_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_WLAN_DataSet_r14_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WLAN_DataSet_r14 = { - "WLAN-DataSet-r14", - "WLAN-DataSet-r14", - &asn_OP_SEQUENCE, - asn_DEF_WLAN_DataSet_r14_tags_1, - sizeof(asn_DEF_WLAN_DataSet_r14_tags_1) - /sizeof(asn_DEF_WLAN_DataSet_r14_tags_1[0]), /* 1 */ - asn_DEF_WLAN_DataSet_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_WLAN_DataSet_r14_tags_1) - /sizeof(asn_DEF_WLAN_DataSet_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WLAN_DataSet_r14_1, - 3, /* Elements count */ - &asn_SPC_WLAN_DataSet_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WLAN-DataSet-r14.h b/asn.1/generated/WLAN-DataSet-r14.h deleted file mode 100644 index e9168737..00000000 --- a/asn.1/generated/WLAN-DataSet-r14.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _WLAN_DataSet_r14_H_ -#define _WLAN_DataSet_r14_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct SupportedChannels_11a_r14; -struct SupportedChannels_11bg_r14; -struct WLAN_AP_Data_r14; - -/* WLAN-DataSet-r14 */ -typedef struct WLAN_DataSet_r14 { - struct WLAN_DataSet_r14__wlan_AP_List_r14 { - A_SEQUENCE_OF(struct WLAN_AP_Data_r14) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } wlan_AP_List_r14; - struct SupportedChannels_11a_r14 *supportedChannels_11a_r14 /* OPTIONAL */; - struct SupportedChannels_11bg_r14 *supportedChannels_11bg_r14 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} WLAN_DataSet_r14_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_WLAN_DataSet_r14; -extern asn_SEQUENCE_specifics_t asn_SPC_WLAN_DataSet_r14_specs_1; -extern asn_TYPE_member_t asn_MBR_WLAN_DataSet_r14_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "SupportedChannels-11a-r14.h" -#include "SupportedChannels-11bg-r14.h" -#include "WLAN-AP-Data-r14.h" - -#endif /* _WLAN_DataSet_r14_H_ */ -#include diff --git a/asn.1/generated/WLAN-Error-r13.c b/asn.1/generated/WLAN-Error-r13.c deleted file mode 100644 index 8d585bec..00000000 --- a/asn.1/generated/WLAN-Error-r13.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WLAN-Error-r13.h" - -asn_per_constraints_t asn_PER_type_WLAN_Error_r13_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_WLAN_Error_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct WLAN_Error_r13, choice.locationServerErrorCauses_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WLAN_LocationServerErrorCauses_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "locationServerErrorCauses-r13" - }, - { ATF_NOFLAGS, 0, offsetof(struct WLAN_Error_r13, choice.targetDeviceErrorCauses_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WLAN_TargetDeviceErrorCauses_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "targetDeviceErrorCauses-r13" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_WLAN_Error_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses-r13 */ -}; -asn_CHOICE_specifics_t asn_SPC_WLAN_Error_r13_specs_1 = { - sizeof(struct WLAN_Error_r13), - offsetof(struct WLAN_Error_r13, _asn_ctx), - offsetof(struct WLAN_Error_r13, present), - sizeof(((struct WLAN_Error_r13 *)0)->present), - asn_MAP_WLAN_Error_r13_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_WLAN_Error_r13 = { - "WLAN-Error-r13", - "WLAN-Error-r13", - &asn_OP_CHOICE, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - { 0, &asn_PER_type_WLAN_Error_r13_constr_1, CHOICE_constraint }, - asn_MBR_WLAN_Error_r13_1, - 2, /* Elements count */ - &asn_SPC_WLAN_Error_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WLAN-LocationServerErrorCauses-r13.c b/asn.1/generated/WLAN-LocationServerErrorCauses-r13.c deleted file mode 100644 index 0dc0af5b..00000000 --- a/asn.1/generated/WLAN-LocationServerErrorCauses-r13.c +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WLAN-LocationServerErrorCauses-r13.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_r13_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_r13_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 29, "requestedADNotAvailable-v1420" }, - { 2, 32, "notAllrequestedADAvailable-v1420" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_r13_enum2value_2[] = { - 2, /* notAllrequestedADAvailable-v1420(2) */ - 1, /* requestedADNotAvailable-v1420(1) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_r13_specs_2 = { - asn_MAP_cause_r13_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_r13_enum2value_2, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 2, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_r13_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_r13_2 = { - "cause-r13", - "cause-r13", - &asn_OP_NativeEnumerated, - asn_DEF_cause_r13_tags_2, - sizeof(asn_DEF_cause_r13_tags_2) - /sizeof(asn_DEF_cause_r13_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_r13_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_r13_tags_2) - /sizeof(asn_DEF_cause_r13_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_r13_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_r13_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_8[] = { - { ATF_POINTER, 1, offsetof(struct WLAN_LocationServerErrorCauses_r13__ext1, apLocationDataUnavailable_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "apLocationDataUnavailable-r14" - }, -}; -static const int asn_MAP_ext1_oms_8[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* apLocationDataUnavailable-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { - sizeof(struct WLAN_LocationServerErrorCauses_r13__ext1), - offsetof(struct WLAN_LocationServerErrorCauses_r13__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_8, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_8, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_8 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_8, - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_8, /* Same as above */ - sizeof(asn_DEF_ext1_tags_8) - /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_8, - 1, /* Elements count */ - &asn_SPC_ext1_specs_8 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_WLAN_LocationServerErrorCauses_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct WLAN_LocationServerErrorCauses_r13, cause_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_r13_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause-r13" - }, - { ATF_POINTER, 1, offsetof(struct WLAN_LocationServerErrorCauses_r13, ext1), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_ext1_8, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_WLAN_LocationServerErrorCauses_r13_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_WLAN_LocationServerErrorCauses_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WLAN_LocationServerErrorCauses_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WLAN_LocationServerErrorCauses_r13_specs_1 = { - sizeof(struct WLAN_LocationServerErrorCauses_r13), - offsetof(struct WLAN_LocationServerErrorCauses_r13, _asn_ctx), - asn_MAP_WLAN_LocationServerErrorCauses_r13_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_WLAN_LocationServerErrorCauses_r13_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WLAN_LocationServerErrorCauses_r13 = { - "WLAN-LocationServerErrorCauses-r13", - "WLAN-LocationServerErrorCauses-r13", - &asn_OP_SEQUENCE, - asn_DEF_WLAN_LocationServerErrorCauses_r13_tags_1, - sizeof(asn_DEF_WLAN_LocationServerErrorCauses_r13_tags_1) - /sizeof(asn_DEF_WLAN_LocationServerErrorCauses_r13_tags_1[0]), /* 1 */ - asn_DEF_WLAN_LocationServerErrorCauses_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_WLAN_LocationServerErrorCauses_r13_tags_1) - /sizeof(asn_DEF_WLAN_LocationServerErrorCauses_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WLAN_LocationServerErrorCauses_r13_1, - 2, /* Elements count */ - &asn_SPC_WLAN_LocationServerErrorCauses_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WLAN-MeasurementElement-r13.c b/asn.1/generated/WLAN-MeasurementElement-r13.c deleted file mode 100644 index c640110c..00000000 --- a/asn.1/generated/WLAN-MeasurementElement-r13.c +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WLAN-MeasurementElement-r13.h" - -static int -memb_rssi_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -127 && value <= 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_apChannelFrequency_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 256)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_rssi_r13_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -127, 128 } /* (-127..128) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_apChannelFrequency_r13_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 256 } /* (0..256) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_WLAN_MeasurementElement_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct WLAN_MeasurementElement_r13, wlan_AP_Identifier_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WLAN_AP_Identifier_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wlan-AP-Identifier-r13" - }, - { ATF_POINTER, 4, offsetof(struct WLAN_MeasurementElement_r13, rssi_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rssi_r13_constr_3, memb_rssi_r13_constraint_1 }, - 0, 0, /* No default value */ - "rssi-r13" - }, - { ATF_POINTER, 3, offsetof(struct WLAN_MeasurementElement_r13, rtt_r13), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WLAN_RTT_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rtt-r13" - }, - { ATF_POINTER, 2, offsetof(struct WLAN_MeasurementElement_r13, apChannelFrequency_r13), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_apChannelFrequency_r13_constr_5, memb_apChannelFrequency_r13_constraint_1 }, - 0, 0, /* No default value */ - "apChannelFrequency-r13" - }, - { ATF_POINTER, 1, offsetof(struct WLAN_MeasurementElement_r13, servingFlag_r13), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "servingFlag-r13" - }, -}; -static const int asn_MAP_WLAN_MeasurementElement_r13_oms_1[] = { 1, 2, 3, 4 }; -static const ber_tlv_tag_t asn_DEF_WLAN_MeasurementElement_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WLAN_MeasurementElement_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wlan-AP-Identifier-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* rssi-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* rtt-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* apChannelFrequency-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* servingFlag-r13 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WLAN_MeasurementElement_r13_specs_1 = { - sizeof(struct WLAN_MeasurementElement_r13), - offsetof(struct WLAN_MeasurementElement_r13, _asn_ctx), - asn_MAP_WLAN_MeasurementElement_r13_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_WLAN_MeasurementElement_r13_oms_1, /* Optional members */ - 4, 0, /* Root/Additions */ - 5, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WLAN_MeasurementElement_r13 = { - "WLAN-MeasurementElement-r13", - "WLAN-MeasurementElement-r13", - &asn_OP_SEQUENCE, - asn_DEF_WLAN_MeasurementElement_r13_tags_1, - sizeof(asn_DEF_WLAN_MeasurementElement_r13_tags_1) - /sizeof(asn_DEF_WLAN_MeasurementElement_r13_tags_1[0]), /* 1 */ - asn_DEF_WLAN_MeasurementElement_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_WLAN_MeasurementElement_r13_tags_1) - /sizeof(asn_DEF_WLAN_MeasurementElement_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WLAN_MeasurementElement_r13_1, - 5, /* Elements count */ - &asn_SPC_WLAN_MeasurementElement_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WLAN-MeasurementElement-r13.h b/asn.1/generated/WLAN-MeasurementElement-r13.h deleted file mode 100644 index de3d1296..00000000 --- a/asn.1/generated/WLAN-MeasurementElement-r13.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _WLAN_MeasurementElement_r13_H_ -#define _WLAN_MeasurementElement_r13_H_ - - -#include - -/* Including external dependencies */ -#include "WLAN-AP-Identifier-r13.h" -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct WLAN_RTT_r13; - -/* WLAN-MeasurementElement-r13 */ -typedef struct WLAN_MeasurementElement_r13 { - WLAN_AP_Identifier_r13_t wlan_AP_Identifier_r13; - long *rssi_r13 /* OPTIONAL */; - struct WLAN_RTT_r13 *rtt_r13 /* OPTIONAL */; - long *apChannelFrequency_r13 /* OPTIONAL */; - BOOLEAN_t *servingFlag_r13 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} WLAN_MeasurementElement_r13_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_WLAN_MeasurementElement_r13; -extern asn_SEQUENCE_specifics_t asn_SPC_WLAN_MeasurementElement_r13_specs_1; -extern asn_TYPE_member_t asn_MBR_WLAN_MeasurementElement_r13_1[5]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "WLAN-RTT-r13.h" - -#endif /* _WLAN_MeasurementElement_r13_H_ */ -#include diff --git a/asn.1/generated/WLAN-MeasurementInformation-r13.c b/asn.1/generated/WLAN-MeasurementInformation-r13.c deleted file mode 100644 index abed7488..00000000 --- a/asn.1/generated/WLAN-MeasurementInformation-r13.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WLAN-MeasurementInformation-r13.h" - -asn_TYPE_member_t asn_MBR_WLAN_MeasurementInformation_r13_1[] = { - { ATF_POINTER, 2, offsetof(struct WLAN_MeasurementInformation_r13, measurementReferenceTime_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTCTime, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "measurementReferenceTime-r13" - }, - { ATF_POINTER, 1, offsetof(struct WLAN_MeasurementInformation_r13, wlan_MeasurementList_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WLAN_MeasurementList_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wlan-MeasurementList-r13" - }, -}; -static const int asn_MAP_WLAN_MeasurementInformation_r13_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_WLAN_MeasurementInformation_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WLAN_MeasurementInformation_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* measurementReferenceTime-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* wlan-MeasurementList-r13 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WLAN_MeasurementInformation_r13_specs_1 = { - sizeof(struct WLAN_MeasurementInformation_r13), - offsetof(struct WLAN_MeasurementInformation_r13, _asn_ctx), - asn_MAP_WLAN_MeasurementInformation_r13_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_WLAN_MeasurementInformation_r13_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WLAN_MeasurementInformation_r13 = { - "WLAN-MeasurementInformation-r13", - "WLAN-MeasurementInformation-r13", - &asn_OP_SEQUENCE, - asn_DEF_WLAN_MeasurementInformation_r13_tags_1, - sizeof(asn_DEF_WLAN_MeasurementInformation_r13_tags_1) - /sizeof(asn_DEF_WLAN_MeasurementInformation_r13_tags_1[0]), /* 1 */ - asn_DEF_WLAN_MeasurementInformation_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_WLAN_MeasurementInformation_r13_tags_1) - /sizeof(asn_DEF_WLAN_MeasurementInformation_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WLAN_MeasurementInformation_r13_1, - 2, /* Elements count */ - &asn_SPC_WLAN_MeasurementInformation_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WLAN-MeasurementInformation-r13.h b/asn.1/generated/WLAN-MeasurementInformation-r13.h deleted file mode 100644 index d4e68c6b..00000000 --- a/asn.1/generated/WLAN-MeasurementInformation-r13.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _WLAN_MeasurementInformation_r13_H_ -#define _WLAN_MeasurementInformation_r13_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct WLAN_MeasurementList_r13; - -/* WLAN-MeasurementInformation-r13 */ -typedef struct WLAN_MeasurementInformation_r13 { - UTCTime_t *measurementReferenceTime_r13 /* OPTIONAL */; - struct WLAN_MeasurementList_r13 *wlan_MeasurementList_r13 /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} WLAN_MeasurementInformation_r13_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_WLAN_MeasurementInformation_r13; -extern asn_SEQUENCE_specifics_t asn_SPC_WLAN_MeasurementInformation_r13_specs_1; -extern asn_TYPE_member_t asn_MBR_WLAN_MeasurementInformation_r13_1[2]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "WLAN-MeasurementList-r13.h" - -#endif /* _WLAN_MeasurementInformation_r13_H_ */ -#include diff --git a/asn.1/generated/WLAN-MeasurementList-r13.c b/asn.1/generated/WLAN-MeasurementList-r13.c deleted file mode 100644 index 6ebe14fc..00000000 --- a/asn.1/generated/WLAN-MeasurementList-r13.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WLAN-MeasurementList-r13.h" - -asn_per_constraints_t asn_PER_type_WLAN_MeasurementList_r13_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_WLAN_MeasurementList_r13_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_WLAN_MeasurementElement_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_WLAN_MeasurementList_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_WLAN_MeasurementList_r13_specs_1 = { - sizeof(struct WLAN_MeasurementList_r13), - offsetof(struct WLAN_MeasurementList_r13, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_WLAN_MeasurementList_r13 = { - "WLAN-MeasurementList-r13", - "WLAN-MeasurementList-r13", - &asn_OP_SEQUENCE_OF, - asn_DEF_WLAN_MeasurementList_r13_tags_1, - sizeof(asn_DEF_WLAN_MeasurementList_r13_tags_1) - /sizeof(asn_DEF_WLAN_MeasurementList_r13_tags_1[0]), /* 1 */ - asn_DEF_WLAN_MeasurementList_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_WLAN_MeasurementList_r13_tags_1) - /sizeof(asn_DEF_WLAN_MeasurementList_r13_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_WLAN_MeasurementList_r13_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_WLAN_MeasurementList_r13_1, - 1, /* Single element */ - &asn_SPC_WLAN_MeasurementList_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WLAN-ProvideAssistanceData-r14.c b/asn.1/generated/WLAN-ProvideAssistanceData-r14.c deleted file mode 100644 index f6d8e7c8..00000000 --- a/asn.1/generated/WLAN-ProvideAssistanceData-r14.c +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WLAN-ProvideAssistanceData-r14.h" - -static int -memb_wlan_DataSet_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 8)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_wlan_DataSet_r14_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_wlan_DataSet_r14_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_wlan_DataSet_r14_2[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_WLAN_DataSet_r14, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_wlan_DataSet_r14_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_wlan_DataSet_r14_specs_2 = { - sizeof(struct WLAN_ProvideAssistanceData_r14__wlan_DataSet_r14), - offsetof(struct WLAN_ProvideAssistanceData_r14__wlan_DataSet_r14, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_wlan_DataSet_r14_2 = { - "wlan-DataSet-r14", - "wlan-DataSet-r14", - &asn_OP_SEQUENCE_OF, - asn_DEF_wlan_DataSet_r14_tags_2, - sizeof(asn_DEF_wlan_DataSet_r14_tags_2) - /sizeof(asn_DEF_wlan_DataSet_r14_tags_2[0]) - 1, /* 1 */ - asn_DEF_wlan_DataSet_r14_tags_2, /* Same as above */ - sizeof(asn_DEF_wlan_DataSet_r14_tags_2) - /sizeof(asn_DEF_wlan_DataSet_r14_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_wlan_DataSet_r14_constr_2, SEQUENCE_OF_constraint }, - asn_MBR_wlan_DataSet_r14_2, - 1, /* Single element */ - &asn_SPC_wlan_DataSet_r14_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_WLAN_ProvideAssistanceData_r14_1[] = { - { ATF_POINTER, 2, offsetof(struct WLAN_ProvideAssistanceData_r14, wlan_DataSet_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - 0, - &asn_DEF_wlan_DataSet_r14_2, - 0, - { 0, &asn_PER_memb_wlan_DataSet_r14_constr_2, memb_wlan_DataSet_r14_constraint_1 }, - 0, 0, /* No default value */ - "wlan-DataSet-r14" - }, - { ATF_POINTER, 1, offsetof(struct WLAN_ProvideAssistanceData_r14, wlan_Error_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_WLAN_Error_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wlan-Error-r14" - }, -}; -static const int asn_MAP_WLAN_ProvideAssistanceData_r14_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_WLAN_ProvideAssistanceData_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WLAN_ProvideAssistanceData_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wlan-DataSet-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* wlan-Error-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WLAN_ProvideAssistanceData_r14_specs_1 = { - sizeof(struct WLAN_ProvideAssistanceData_r14), - offsetof(struct WLAN_ProvideAssistanceData_r14, _asn_ctx), - asn_MAP_WLAN_ProvideAssistanceData_r14_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_WLAN_ProvideAssistanceData_r14_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WLAN_ProvideAssistanceData_r14 = { - "WLAN-ProvideAssistanceData-r14", - "WLAN-ProvideAssistanceData-r14", - &asn_OP_SEQUENCE, - asn_DEF_WLAN_ProvideAssistanceData_r14_tags_1, - sizeof(asn_DEF_WLAN_ProvideAssistanceData_r14_tags_1) - /sizeof(asn_DEF_WLAN_ProvideAssistanceData_r14_tags_1[0]), /* 1 */ - asn_DEF_WLAN_ProvideAssistanceData_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_WLAN_ProvideAssistanceData_r14_tags_1) - /sizeof(asn_DEF_WLAN_ProvideAssistanceData_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WLAN_ProvideAssistanceData_r14_1, - 2, /* Elements count */ - &asn_SPC_WLAN_ProvideAssistanceData_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WLAN-ProvideCapabilities-r13.c b/asn.1/generated/WLAN-ProvideCapabilities-r13.c deleted file mode 100644 index 69b7508e..00000000 --- a/asn.1/generated/WLAN-ProvideCapabilities-r13.c +++ /dev/null @@ -1,289 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WLAN-ProvideCapabilities-r13.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_wlan_AP_AD_Supported_r14_constraint_10(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_wlan_Modes_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_wlan_MeasSupported_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_idleStateForMeasurements_r14_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_wlan_AP_AD_Supported_r14_constr_11 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_wlan_Modes_r13_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_wlan_MeasSupported_r13_constr_6 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_idleStateForMeasurements_r14_value2enum_15[] = { - { 0, 8, "required" } -}; -static const unsigned int asn_MAP_idleStateForMeasurements_r14_enum2value_15[] = { - 0 /* required(0) */ -}; -static const asn_INTEGER_specifics_t asn_SPC_idleStateForMeasurements_r14_specs_15 = { - asn_MAP_idleStateForMeasurements_r14_value2enum_15, /* "tag" => N; sorted by tag */ - asn_MAP_idleStateForMeasurements_r14_enum2value_15, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_idleStateForMeasurements_r14_tags_15[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_idleStateForMeasurements_r14_15 = { - "idleStateForMeasurements-r14", - "idleStateForMeasurements-r14", - &asn_OP_NativeEnumerated, - asn_DEF_idleStateForMeasurements_r14_tags_15, - sizeof(asn_DEF_idleStateForMeasurements_r14_tags_15) - /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_15[0]) - 1, /* 1 */ - asn_DEF_idleStateForMeasurements_r14_tags_15, /* Same as above */ - sizeof(asn_DEF_idleStateForMeasurements_r14_tags_15) - /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_15[0]), /* 2 */ - { 0, &asn_PER_type_idleStateForMeasurements_r14_constr_15, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_idleStateForMeasurements_r14_specs_15 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ext1_10[] = { - { ATF_POINTER, 3, offsetof(struct WLAN_ProvideCapabilities_r13__ext1, wlan_AP_AD_Supported_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_wlan_AP_AD_Supported_r14_constr_11, memb_wlan_AP_AD_Supported_r14_constraint_10 }, - 0, 0, /* No default value */ - "wlan-AP-AD-Supported-r14" - }, - { ATF_POINTER, 2, offsetof(struct WLAN_ProvideCapabilities_r13__ext1, periodicalReportingSupported_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PositioningModes, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "periodicalReportingSupported-r14" - }, - { ATF_POINTER, 1, offsetof(struct WLAN_ProvideCapabilities_r13__ext1, idleStateForMeasurements_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_idleStateForMeasurements_r14_15, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "idleStateForMeasurements-r14" - }, -}; -static const int asn_MAP_ext1_oms_10[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_10[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_10[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wlan-AP-AD-Supported-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* periodicalReportingSupported-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* idleStateForMeasurements-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_10 = { - sizeof(struct WLAN_ProvideCapabilities_r13__ext1), - offsetof(struct WLAN_ProvideCapabilities_r13__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_10, - 3, /* Count of tags in the map */ - asn_MAP_ext1_oms_10, /* Optional members */ - 3, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_10 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_10, - sizeof(asn_DEF_ext1_tags_10) - /sizeof(asn_DEF_ext1_tags_10[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_10, /* Same as above */ - sizeof(asn_DEF_ext1_tags_10) - /sizeof(asn_DEF_ext1_tags_10[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_10, - 3, /* Elements count */ - &asn_SPC_ext1_specs_10 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_WLAN_ProvideCapabilities_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct WLAN_ProvideCapabilities_r13, wlan_Modes_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_wlan_Modes_r13_constr_2, memb_wlan_Modes_r13_constraint_1 }, - 0, 0, /* No default value */ - "wlan-Modes-r13" - }, - { ATF_NOFLAGS, 0, offsetof(struct WLAN_ProvideCapabilities_r13, wlan_MeasSupported_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_wlan_MeasSupported_r13_constr_6, memb_wlan_MeasSupported_r13_constraint_1 }, - 0, 0, /* No default value */ - "wlan-MeasSupported-r13" - }, - { ATF_POINTER, 1, offsetof(struct WLAN_ProvideCapabilities_r13, ext1), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_ext1_10, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_WLAN_ProvideCapabilities_r13_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_WLAN_ProvideCapabilities_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WLAN_ProvideCapabilities_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wlan-Modes-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* wlan-MeasSupported-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WLAN_ProvideCapabilities_r13_specs_1 = { - sizeof(struct WLAN_ProvideCapabilities_r13), - offsetof(struct WLAN_ProvideCapabilities_r13, _asn_ctx), - asn_MAP_WLAN_ProvideCapabilities_r13_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_WLAN_ProvideCapabilities_r13_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WLAN_ProvideCapabilities_r13 = { - "WLAN-ProvideCapabilities-r13", - "WLAN-ProvideCapabilities-r13", - &asn_OP_SEQUENCE, - asn_DEF_WLAN_ProvideCapabilities_r13_tags_1, - sizeof(asn_DEF_WLAN_ProvideCapabilities_r13_tags_1) - /sizeof(asn_DEF_WLAN_ProvideCapabilities_r13_tags_1[0]), /* 1 */ - asn_DEF_WLAN_ProvideCapabilities_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_WLAN_ProvideCapabilities_r13_tags_1) - /sizeof(asn_DEF_WLAN_ProvideCapabilities_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WLAN_ProvideCapabilities_r13_1, - 3, /* Elements count */ - &asn_SPC_WLAN_ProvideCapabilities_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WLAN-ProvideLocationInformation-r13.c b/asn.1/generated/WLAN-ProvideLocationInformation-r13.c deleted file mode 100644 index 4ab21c37..00000000 --- a/asn.1/generated/WLAN-ProvideLocationInformation-r13.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WLAN-ProvideLocationInformation-r13.h" - -asn_TYPE_member_t asn_MBR_WLAN_ProvideLocationInformation_r13_1[] = { - { ATF_POINTER, 2, offsetof(struct WLAN_ProvideLocationInformation_r13, wlan_MeasurementInformation_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WLAN_MeasurementInformation_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wlan-MeasurementInformation-r13" - }, - { ATF_POINTER, 1, offsetof(struct WLAN_ProvideLocationInformation_r13, wlan_Error_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_WLAN_Error_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wlan-Error-r13" - }, -}; -static const int asn_MAP_WLAN_ProvideLocationInformation_r13_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_WLAN_ProvideLocationInformation_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WLAN_ProvideLocationInformation_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wlan-MeasurementInformation-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* wlan-Error-r13 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WLAN_ProvideLocationInformation_r13_specs_1 = { - sizeof(struct WLAN_ProvideLocationInformation_r13), - offsetof(struct WLAN_ProvideLocationInformation_r13, _asn_ctx), - asn_MAP_WLAN_ProvideLocationInformation_r13_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_WLAN_ProvideLocationInformation_r13_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WLAN_ProvideLocationInformation_r13 = { - "WLAN-ProvideLocationInformation-r13", - "WLAN-ProvideLocationInformation-r13", - &asn_OP_SEQUENCE, - asn_DEF_WLAN_ProvideLocationInformation_r13_tags_1, - sizeof(asn_DEF_WLAN_ProvideLocationInformation_r13_tags_1) - /sizeof(asn_DEF_WLAN_ProvideLocationInformation_r13_tags_1[0]), /* 1 */ - asn_DEF_WLAN_ProvideLocationInformation_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_WLAN_ProvideLocationInformation_r13_tags_1) - /sizeof(asn_DEF_WLAN_ProvideLocationInformation_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WLAN_ProvideLocationInformation_r13_1, - 2, /* Elements count */ - &asn_SPC_WLAN_ProvideLocationInformation_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WLAN-RTT-r13.c b/asn.1/generated/WLAN-RTT-r13.c deleted file mode 100644 index 17a7d0f4..00000000 --- a/asn.1/generated/WLAN-RTT-r13.c +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WLAN-RTT-r13.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_rttValue_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 16777215)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_rttAccuracy_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_rttUnits_r13_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_rttValue_r13_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_rttAccuracy_r13_constr_10 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_rttUnits_r13_value2enum_3[] = { - { 0, 12, "microseconds" }, - { 1, 21, "hundredsofnanoseconds" }, - { 2, 17, "tensofnanoseconds" }, - { 3, 11, "nanoseconds" }, - { 4, 19, "tenthsofnanoseconds" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_rttUnits_r13_enum2value_3[] = { - 1, /* hundredsofnanoseconds(1) */ - 0, /* microseconds(0) */ - 3, /* nanoseconds(3) */ - 2, /* tensofnanoseconds(2) */ - 4 /* tenthsofnanoseconds(4) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_rttUnits_r13_specs_3 = { - asn_MAP_rttUnits_r13_value2enum_3, /* "tag" => N; sorted by tag */ - asn_MAP_rttUnits_r13_enum2value_3, /* N => "tag"; sorted by N */ - 5, /* Number of elements in the maps */ - 6, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_rttUnits_r13_tags_3[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_rttUnits_r13_3 = { - "rttUnits-r13", - "rttUnits-r13", - &asn_OP_NativeEnumerated, - asn_DEF_rttUnits_r13_tags_3, - sizeof(asn_DEF_rttUnits_r13_tags_3) - /sizeof(asn_DEF_rttUnits_r13_tags_3[0]) - 1, /* 1 */ - asn_DEF_rttUnits_r13_tags_3, /* Same as above */ - sizeof(asn_DEF_rttUnits_r13_tags_3) - /sizeof(asn_DEF_rttUnits_r13_tags_3[0]), /* 2 */ - { 0, &asn_PER_type_rttUnits_r13_constr_3, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_rttUnits_r13_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_WLAN_RTT_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct WLAN_RTT_r13, rttValue_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rttValue_r13_constr_2, memb_rttValue_r13_constraint_1 }, - 0, 0, /* No default value */ - "rttValue-r13" - }, - { ATF_NOFLAGS, 0, offsetof(struct WLAN_RTT_r13, rttUnits_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_rttUnits_r13_3, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "rttUnits-r13" - }, - { ATF_POINTER, 1, offsetof(struct WLAN_RTT_r13, rttAccuracy_r13), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rttAccuracy_r13_constr_10, memb_rttAccuracy_r13_constraint_1 }, - 0, 0, /* No default value */ - "rttAccuracy-r13" - }, -}; -static const int asn_MAP_WLAN_RTT_r13_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_WLAN_RTT_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WLAN_RTT_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rttValue-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* rttUnits-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* rttAccuracy-r13 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WLAN_RTT_r13_specs_1 = { - sizeof(struct WLAN_RTT_r13), - offsetof(struct WLAN_RTT_r13, _asn_ctx), - asn_MAP_WLAN_RTT_r13_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_WLAN_RTT_r13_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WLAN_RTT_r13 = { - "WLAN-RTT-r13", - "WLAN-RTT-r13", - &asn_OP_SEQUENCE, - asn_DEF_WLAN_RTT_r13_tags_1, - sizeof(asn_DEF_WLAN_RTT_r13_tags_1) - /sizeof(asn_DEF_WLAN_RTT_r13_tags_1[0]), /* 1 */ - asn_DEF_WLAN_RTT_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_WLAN_RTT_r13_tags_1) - /sizeof(asn_DEF_WLAN_RTT_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WLAN_RTT_r13_1, - 3, /* Elements count */ - &asn_SPC_WLAN_RTT_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WLAN-RequestAssistanceData-r14.c b/asn.1/generated/WLAN-RequestAssistanceData-r14.c deleted file mode 100644 index 52b4942c..00000000 --- a/asn.1/generated/WLAN-RequestAssistanceData-r14.c +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WLAN-RequestAssistanceData-r14.h" - -static int -memb_requestedAD_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_visibleAPs_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 32)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_wlan_AP_StoredData_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* Determine the number of elements */ - size = _A_CSEQUENCE_FROM_VOID(sptr)->count; - - if((size >= 1 && size <= 2048)) { - /* Perform validation of the inner elements */ - return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_visibleAPs_r14_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_type_wlan_AP_StoredData_r14_constr_7 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 11, 11, 1, 2048 } /* (SIZE(1..2048)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_requestedAD_r14_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_visibleAPs_r14_constr_5 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_wlan_AP_StoredData_r14_constr_7 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 11, 11, 1, 2048 } /* (SIZE(1..2048)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_visibleAPs_r14_5[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_WLAN_AP_Identifier_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_visibleAPs_r14_tags_5[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_visibleAPs_r14_specs_5 = { - sizeof(struct WLAN_RequestAssistanceData_r14__visibleAPs_r14), - offsetof(struct WLAN_RequestAssistanceData_r14__visibleAPs_r14, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_visibleAPs_r14_5 = { - "visibleAPs-r14", - "visibleAPs-r14", - &asn_OP_SEQUENCE_OF, - asn_DEF_visibleAPs_r14_tags_5, - sizeof(asn_DEF_visibleAPs_r14_tags_5) - /sizeof(asn_DEF_visibleAPs_r14_tags_5[0]) - 1, /* 1 */ - asn_DEF_visibleAPs_r14_tags_5, /* Same as above */ - sizeof(asn_DEF_visibleAPs_r14_tags_5) - /sizeof(asn_DEF_visibleAPs_r14_tags_5[0]), /* 2 */ - { 0, &asn_PER_type_visibleAPs_r14_constr_5, SEQUENCE_OF_constraint }, - asn_MBR_visibleAPs_r14_5, - 1, /* Single element */ - &asn_SPC_visibleAPs_r14_specs_5 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_wlan_AP_StoredData_r14_7[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_WLAN_AP_Identifier_r13, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_wlan_AP_StoredData_r14_tags_7[] = { - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_wlan_AP_StoredData_r14_specs_7 = { - sizeof(struct WLAN_RequestAssistanceData_r14__wlan_AP_StoredData_r14), - offsetof(struct WLAN_RequestAssistanceData_r14__wlan_AP_StoredData_r14, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_wlan_AP_StoredData_r14_7 = { - "wlan-AP-StoredData-r14", - "wlan-AP-StoredData-r14", - &asn_OP_SEQUENCE_OF, - asn_DEF_wlan_AP_StoredData_r14_tags_7, - sizeof(asn_DEF_wlan_AP_StoredData_r14_tags_7) - /sizeof(asn_DEF_wlan_AP_StoredData_r14_tags_7[0]) - 1, /* 1 */ - asn_DEF_wlan_AP_StoredData_r14_tags_7, /* Same as above */ - sizeof(asn_DEF_wlan_AP_StoredData_r14_tags_7) - /sizeof(asn_DEF_wlan_AP_StoredData_r14_tags_7[0]), /* 2 */ - { 0, &asn_PER_type_wlan_AP_StoredData_r14_constr_7, SEQUENCE_OF_constraint }, - asn_MBR_wlan_AP_StoredData_r14_7, - 1, /* Single element */ - &asn_SPC_wlan_AP_StoredData_r14_specs_7 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_WLAN_RequestAssistanceData_r14_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct WLAN_RequestAssistanceData_r14, requestedAD_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_requestedAD_r14_constr_2, memb_requestedAD_r14_constraint_1 }, - 0, 0, /* No default value */ - "requestedAD-r14" - }, - { ATF_POINTER, 2, offsetof(struct WLAN_RequestAssistanceData_r14, visibleAPs_r14), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_visibleAPs_r14_5, - 0, - { 0, &asn_PER_memb_visibleAPs_r14_constr_5, memb_visibleAPs_r14_constraint_1 }, - 0, 0, /* No default value */ - "visibleAPs-r14" - }, - { ATF_POINTER, 1, offsetof(struct WLAN_RequestAssistanceData_r14, wlan_AP_StoredData_r14), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - 0, - &asn_DEF_wlan_AP_StoredData_r14_7, - 0, - { 0, &asn_PER_memb_wlan_AP_StoredData_r14_constr_7, memb_wlan_AP_StoredData_r14_constraint_1 }, - 0, 0, /* No default value */ - "wlan-AP-StoredData-r14" - }, -}; -static const int asn_MAP_WLAN_RequestAssistanceData_r14_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_WLAN_RequestAssistanceData_r14_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WLAN_RequestAssistanceData_r14_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* requestedAD-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* visibleAPs-r14 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* wlan-AP-StoredData-r14 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WLAN_RequestAssistanceData_r14_specs_1 = { - sizeof(struct WLAN_RequestAssistanceData_r14), - offsetof(struct WLAN_RequestAssistanceData_r14, _asn_ctx), - asn_MAP_WLAN_RequestAssistanceData_r14_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_WLAN_RequestAssistanceData_r14_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WLAN_RequestAssistanceData_r14 = { - "WLAN-RequestAssistanceData-r14", - "WLAN-RequestAssistanceData-r14", - &asn_OP_SEQUENCE, - asn_DEF_WLAN_RequestAssistanceData_r14_tags_1, - sizeof(asn_DEF_WLAN_RequestAssistanceData_r14_tags_1) - /sizeof(asn_DEF_WLAN_RequestAssistanceData_r14_tags_1[0]), /* 1 */ - asn_DEF_WLAN_RequestAssistanceData_r14_tags_1, /* Same as above */ - sizeof(asn_DEF_WLAN_RequestAssistanceData_r14_tags_1) - /sizeof(asn_DEF_WLAN_RequestAssistanceData_r14_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WLAN_RequestAssistanceData_r14_1, - 3, /* Elements count */ - &asn_SPC_WLAN_RequestAssistanceData_r14_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WLAN-RequestCapabilities-r13.c b/asn.1/generated/WLAN-RequestCapabilities-r13.c deleted file mode 100644 index 02757680..00000000 --- a/asn.1/generated/WLAN-RequestCapabilities-r13.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WLAN-RequestCapabilities-r13.h" - -static const ber_tlv_tag_t asn_DEF_WLAN_RequestCapabilities_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SEQUENCE_specifics_t asn_SPC_WLAN_RequestCapabilities_r13_specs_1 = { - sizeof(struct WLAN_RequestCapabilities_r13), - offsetof(struct WLAN_RequestCapabilities_r13, _asn_ctx), - 0, /* No top level tags */ - 0, /* No tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 0, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WLAN_RequestCapabilities_r13 = { - "WLAN-RequestCapabilities-r13", - "WLAN-RequestCapabilities-r13", - &asn_OP_SEQUENCE, - asn_DEF_WLAN_RequestCapabilities_r13_tags_1, - sizeof(asn_DEF_WLAN_RequestCapabilities_r13_tags_1) - /sizeof(asn_DEF_WLAN_RequestCapabilities_r13_tags_1[0]), /* 1 */ - asn_DEF_WLAN_RequestCapabilities_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_WLAN_RequestCapabilities_r13_tags_1) - /sizeof(asn_DEF_WLAN_RequestCapabilities_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - 0, 0, /* No members */ - &asn_SPC_WLAN_RequestCapabilities_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WLAN-RequestLocationInformation-r13.c b/asn.1/generated/WLAN-RequestLocationInformation-r13.c deleted file mode 100644 index eb7a3f7e..00000000 --- a/asn.1/generated/WLAN-RequestLocationInformation-r13.c +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WLAN-RequestLocationInformation-r13.h" - -static int -memb_requestedMeasurements_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size >= 1 && size <= 8)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_requestedMeasurements_r13_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_ext1_6[] = { - { ATF_POINTER, 1, offsetof(struct WLAN_RequestLocationInformation_r13__ext1, assistanceAvailability_r14), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BOOLEAN, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "assistanceAvailability-r14" - }, -}; -static const int asn_MAP_ext1_oms_6[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* assistanceAvailability-r14 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = { - sizeof(struct WLAN_RequestLocationInformation_r13__ext1), - offsetof(struct WLAN_RequestLocationInformation_r13__ext1, _asn_ctx), - asn_MAP_ext1_tag2el_6, - 1, /* Count of tags in the map */ - asn_MAP_ext1_oms_6, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_ext1_6 = { - "ext1", - "ext1", - &asn_OP_SEQUENCE, - asn_DEF_ext1_tags_6, - sizeof(asn_DEF_ext1_tags_6) - /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */ - asn_DEF_ext1_tags_6, /* Same as above */ - sizeof(asn_DEF_ext1_tags_6) - /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_ext1_6, - 1, /* Elements count */ - &asn_SPC_ext1_specs_6 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_WLAN_RequestLocationInformation_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct WLAN_RequestLocationInformation_r13, requestedMeasurements_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_requestedMeasurements_r13_constr_2, memb_requestedMeasurements_r13_constraint_1 }, - 0, 0, /* No default value */ - "requestedMeasurements-r13" - }, - { ATF_POINTER, 1, offsetof(struct WLAN_RequestLocationInformation_r13, ext1), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - 0, - &asn_DEF_ext1_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "ext1" - }, -}; -static const int asn_MAP_WLAN_RequestLocationInformation_r13_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_WLAN_RequestLocationInformation_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WLAN_RequestLocationInformation_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* requestedMeasurements-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WLAN_RequestLocationInformation_r13_specs_1 = { - sizeof(struct WLAN_RequestLocationInformation_r13), - offsetof(struct WLAN_RequestLocationInformation_r13, _asn_ctx), - asn_MAP_WLAN_RequestLocationInformation_r13_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_WLAN_RequestLocationInformation_r13_oms_1, /* Optional members */ - 0, 1, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WLAN_RequestLocationInformation_r13 = { - "WLAN-RequestLocationInformation-r13", - "WLAN-RequestLocationInformation-r13", - &asn_OP_SEQUENCE, - asn_DEF_WLAN_RequestLocationInformation_r13_tags_1, - sizeof(asn_DEF_WLAN_RequestLocationInformation_r13_tags_1) - /sizeof(asn_DEF_WLAN_RequestLocationInformation_r13_tags_1[0]), /* 1 */ - asn_DEF_WLAN_RequestLocationInformation_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_WLAN_RequestLocationInformation_r13_tags_1) - /sizeof(asn_DEF_WLAN_RequestLocationInformation_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WLAN_RequestLocationInformation_r13_1, - 2, /* Elements count */ - &asn_SPC_WLAN_RequestLocationInformation_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WLAN-TargetDeviceErrorCauses-r13.c b/asn.1/generated/WLAN-TargetDeviceErrorCauses-r13.c deleted file mode 100644 index 74998adc..00000000 --- a/asn.1/generated/WLAN-TargetDeviceErrorCauses-r13.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WLAN-TargetDeviceErrorCauses-r13.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static asn_per_constraints_t asn_PER_type_cause_r13_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_cause_r13_value2enum_2[] = { - { 0, 9, "undefined" }, - { 1, 33, "requestedMeasurementsNotAvailable" }, - { 2, 35, "notAllrequestedMeasurementsPossible" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_cause_r13_enum2value_2[] = { - 2, /* notAllrequestedMeasurementsPossible(2) */ - 1, /* requestedMeasurementsNotAvailable(1) */ - 0 /* undefined(0) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_cause_r13_specs_2 = { - asn_MAP_cause_r13_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_cause_r13_enum2value_2, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 4, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_cause_r13_tags_2[] = { - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_cause_r13_2 = { - "cause-r13", - "cause-r13", - &asn_OP_NativeEnumerated, - asn_DEF_cause_r13_tags_2, - sizeof(asn_DEF_cause_r13_tags_2) - /sizeof(asn_DEF_cause_r13_tags_2[0]) - 1, /* 1 */ - asn_DEF_cause_r13_tags_2, /* Same as above */ - sizeof(asn_DEF_cause_r13_tags_2) - /sizeof(asn_DEF_cause_r13_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_r13_constr_2, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_cause_r13_specs_2 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_WLAN_TargetDeviceErrorCauses_r13_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct WLAN_TargetDeviceErrorCauses_r13, cause_r13), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_cause_r13_2, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "cause-r13" - }, - { ATF_POINTER, 2, offsetof(struct WLAN_TargetDeviceErrorCauses_r13, wlan_AP_RSSI_MeasurementNotPossible_r13), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wlan-AP-RSSI-MeasurementNotPossible-r13" - }, - { ATF_POINTER, 1, offsetof(struct WLAN_TargetDeviceErrorCauses_r13, wlan_AP_RTT_MeasurementNotPossible_r13), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NULL, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wlan-AP-RTT-MeasurementNotPossible-r13" - }, -}; -static const int asn_MAP_WLAN_TargetDeviceErrorCauses_r13_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_WLAN_TargetDeviceErrorCauses_r13_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WLAN_TargetDeviceErrorCauses_r13_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* wlan-AP-RSSI-MeasurementNotPossible-r13 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* wlan-AP-RTT-MeasurementNotPossible-r13 */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WLAN_TargetDeviceErrorCauses_r13_specs_1 = { - sizeof(struct WLAN_TargetDeviceErrorCauses_r13), - offsetof(struct WLAN_TargetDeviceErrorCauses_r13, _asn_ctx), - asn_MAP_WLAN_TargetDeviceErrorCauses_r13_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_WLAN_TargetDeviceErrorCauses_r13_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WLAN_TargetDeviceErrorCauses_r13 = { - "WLAN-TargetDeviceErrorCauses-r13", - "WLAN-TargetDeviceErrorCauses-r13", - &asn_OP_SEQUENCE, - asn_DEF_WLAN_TargetDeviceErrorCauses_r13_tags_1, - sizeof(asn_DEF_WLAN_TargetDeviceErrorCauses_r13_tags_1) - /sizeof(asn_DEF_WLAN_TargetDeviceErrorCauses_r13_tags_1[0]), /* 1 */ - asn_DEF_WLAN_TargetDeviceErrorCauses_r13_tags_1, /* Same as above */ - sizeof(asn_DEF_WLAN_TargetDeviceErrorCauses_r13_tags_1) - /sizeof(asn_DEF_WLAN_TargetDeviceErrorCauses_r13_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WLAN_TargetDeviceErrorCauses_r13_1, - 3, /* Elements count */ - &asn_SPC_WLAN_TargetDeviceErrorCauses_r13_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WLANAreaId.c b/asn.1/generated/WLANAreaId.c deleted file mode 100644 index 9d0fb871..00000000 --- a/asn.1/generated/WLANAreaId.c +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WLANAreaId.h" - -static int -memb_apMACAddress_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 48)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_apMACAddress_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 48, 48 } /* (SIZE(48..48)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_WLANAreaId_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct WLANAreaId, apMACAddress), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_apMACAddress_constr_2, memb_apMACAddress_constraint_1 }, - 0, 0, /* No default value */ - "apMACAddress" - }, -}; -static const ber_tlv_tag_t asn_DEF_WLANAreaId_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WLANAreaId_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* apMACAddress */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WLANAreaId_specs_1 = { - sizeof(struct WLANAreaId), - offsetof(struct WLANAreaId, _asn_ctx), - asn_MAP_WLANAreaId_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WLANAreaId = { - "WLANAreaId", - "WLANAreaId", - &asn_OP_SEQUENCE, - asn_DEF_WLANAreaId_tags_1, - sizeof(asn_DEF_WLANAreaId_tags_1) - /sizeof(asn_DEF_WLANAreaId_tags_1[0]), /* 1 */ - asn_DEF_WLANAreaId_tags_1, /* Same as above */ - sizeof(asn_DEF_WLANAreaId_tags_1) - /sizeof(asn_DEF_WLANAreaId_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WLANAreaId_1, - 1, /* Elements count */ - &asn_SPC_WLANAreaId_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WcdmaCellInformation.c b/asn.1/generated/WcdmaCellInformation.c deleted file mode 100644 index 621574cb..00000000 --- a/asn.1/generated/WcdmaCellInformation.c +++ /dev/null @@ -1,272 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WcdmaCellInformation.h" - -static int -memb_refMCC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refMNC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 999)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_refUC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 268435455)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_primaryScramblingCode_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 511)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cellParametersId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 127)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_refMCC_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refMNC_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_refUC_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 28, -1, 0, 268435455 } /* (0..268435455) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_primaryScramblingCode_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cellParametersId_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_WcdmaCellInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct WcdmaCellInformation, refMCC), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refMCC_constr_2, memb_refMCC_constraint_1 }, - 0, 0, /* No default value */ - "refMCC" - }, - { ATF_NOFLAGS, 0, offsetof(struct WcdmaCellInformation, refMNC), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refMNC_constr_3, memb_refMNC_constraint_1 }, - 0, 0, /* No default value */ - "refMNC" - }, - { ATF_NOFLAGS, 0, offsetof(struct WcdmaCellInformation, refUC), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_refUC_constr_4, memb_refUC_constraint_1 }, - 0, 0, /* No default value */ - "refUC" - }, - { ATF_POINTER, 5, offsetof(struct WcdmaCellInformation, frequencyInfo), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_FrequencyInfo, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "frequencyInfo" - }, - { ATF_POINTER, 4, offsetof(struct WcdmaCellInformation, primaryScramblingCode), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_primaryScramblingCode_constr_6, memb_primaryScramblingCode_constraint_1 }, - 0, 0, /* No default value */ - "primaryScramblingCode" - }, - { ATF_POINTER, 3, offsetof(struct WcdmaCellInformation, measuredResultsList), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ULP_MeasuredResultsList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "measuredResultsList" - }, - { ATF_POINTER, 2, offsetof(struct WcdmaCellInformation, cellParametersId), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cellParametersId_constr_9, memb_cellParametersId_constraint_1 }, - 0, 0, /* No default value */ - "cellParametersId" - }, - { ATF_POINTER, 1, offsetof(struct WcdmaCellInformation, timingAdvance), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TimingAdvance, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "timingAdvance" - }, -}; -static const int asn_MAP_WcdmaCellInformation_oms_1[] = { 3, 4, 5, 6, 7 }; -static const ber_tlv_tag_t asn_DEF_WcdmaCellInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WcdmaCellInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refMCC */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refMNC */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* refUC */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* frequencyInfo */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* primaryScramblingCode */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* measuredResultsList */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* cellParametersId */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* timingAdvance */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WcdmaCellInformation_specs_1 = { - sizeof(struct WcdmaCellInformation), - offsetof(struct WcdmaCellInformation, _asn_ctx), - asn_MAP_WcdmaCellInformation_tag2el_1, - 8, /* Count of tags in the map */ - asn_MAP_WcdmaCellInformation_oms_1, /* Optional members */ - 3, 2, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WcdmaCellInformation = { - "WcdmaCellInformation", - "WcdmaCellInformation", - &asn_OP_SEQUENCE, - asn_DEF_WcdmaCellInformation_tags_1, - sizeof(asn_DEF_WcdmaCellInformation_tags_1) - /sizeof(asn_DEF_WcdmaCellInformation_tags_1[0]), /* 1 */ - asn_DEF_WcdmaCellInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_WcdmaCellInformation_tags_1) - /sizeof(asn_DEF_WcdmaCellInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WcdmaCellInformation_1, - 8, /* Elements count */ - &asn_SPC_WcdmaCellInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WcdmaCellInformation.h b/asn.1/generated/WcdmaCellInformation.h deleted file mode 100644 index 4985726c..00000000 --- a/asn.1/generated/WcdmaCellInformation.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _WcdmaCellInformation_H_ -#define _WcdmaCellInformation_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct FrequencyInfo; -struct ULP_MeasuredResultsList; -struct TimingAdvance; - -/* WcdmaCellInformation */ -typedef struct WcdmaCellInformation { - long refMCC; - long refMNC; - long refUC; - struct FrequencyInfo *frequencyInfo /* OPTIONAL */; - long *primaryScramblingCode /* OPTIONAL */; - struct ULP_MeasuredResultsList *measuredResultsList /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - long *cellParametersId /* OPTIONAL */; - struct TimingAdvance *timingAdvance /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} WcdmaCellInformation_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_WcdmaCellInformation; -extern asn_SEQUENCE_specifics_t asn_SPC_WcdmaCellInformation_specs_1; -extern asn_TYPE_member_t asn_MBR_WcdmaCellInformation_1[8]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "FrequencyInfo.h" -#include "ULP-MeasuredResultsList.h" -#include "TimingAdvance.h" - -#endif /* _WcdmaCellInformation_H_ */ -#include diff --git a/asn.1/generated/WimaxAreaId.c b/asn.1/generated/WimaxAreaId.c deleted file mode 100644 index 15b4b8e1..00000000 --- a/asn.1/generated/WimaxAreaId.c +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WimaxAreaId.h" - -static int -memb_bsID_MSB_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 24)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bsID_LSB_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 24)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_bsID_MSB_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 24, 24 } /* (SIZE(24..24)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bsID_LSB_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 24, 24 } /* (SIZE(24..24)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_WimaxAreaId_1[] = { - { ATF_POINTER, 1, offsetof(struct WimaxAreaId, bsID_MSB), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_bsID_MSB_constr_2, memb_bsID_MSB_constraint_1 }, - 0, 0, /* No default value */ - "bsID-MSB" - }, - { ATF_NOFLAGS, 0, offsetof(struct WimaxAreaId, bsID_LSB), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_bsID_LSB_constr_3, memb_bsID_LSB_constraint_1 }, - 0, 0, /* No default value */ - "bsID-LSB" - }, -}; -static const int asn_MAP_WimaxAreaId_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_WimaxAreaId_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WimaxAreaId_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bsID-MSB */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bsID-LSB */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WimaxAreaId_specs_1 = { - sizeof(struct WimaxAreaId), - offsetof(struct WimaxAreaId, _asn_ctx), - asn_MAP_WimaxAreaId_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_WimaxAreaId_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WimaxAreaId = { - "WimaxAreaId", - "WimaxAreaId", - &asn_OP_SEQUENCE, - asn_DEF_WimaxAreaId_tags_1, - sizeof(asn_DEF_WimaxAreaId_tags_1) - /sizeof(asn_DEF_WimaxAreaId_tags_1[0]), /* 1 */ - asn_DEF_WimaxAreaId_tags_1, /* Same as above */ - sizeof(asn_DEF_WimaxAreaId_tags_1) - /sizeof(asn_DEF_WimaxAreaId_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WimaxAreaId_1, - 2, /* Elements count */ - &asn_SPC_WimaxAreaId_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WimaxAreaId.h b/asn.1/generated/WimaxAreaId.h deleted file mode 100644 index 1041f4d1..00000000 --- a/asn.1/generated/WimaxAreaId.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _WimaxAreaId_H_ -#define _WimaxAreaId_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* WimaxAreaId */ -typedef struct WimaxAreaId { - BIT_STRING_t *bsID_MSB /* OPTIONAL */; - BIT_STRING_t bsID_LSB; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} WimaxAreaId_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_WimaxAreaId; -extern asn_SEQUENCE_specifics_t asn_SPC_WimaxAreaId_specs_1; -extern asn_TYPE_member_t asn_MBR_WimaxAreaId_1[2]; - -#ifdef __cplusplus -} -#endif - -#endif /* _WimaxAreaId_H_ */ -#include diff --git a/asn.1/generated/WimaxBSInformation.c b/asn.1/generated/WimaxBSInformation.c deleted file mode 100644 index 3d891834..00000000 --- a/asn.1/generated/WimaxBSInformation.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WimaxBSInformation.h" - -asn_TYPE_member_t asn_MBR_WimaxBSInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct WimaxBSInformation, wimaxBsID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WimaxBsID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wimaxBsID" - }, - { ATF_POINTER, 2, offsetof(struct WimaxBSInformation, wimaxRTD), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WimaxRTD, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wimaxRTD" - }, - { ATF_POINTER, 1, offsetof(struct WimaxBSInformation, wimaxNMRList), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WimaxNMRList, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wimaxNMRList" - }, -}; -static const int asn_MAP_WimaxBSInformation_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_WimaxBSInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WimaxBSInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wimaxBsID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* wimaxRTD */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* wimaxNMRList */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WimaxBSInformation_specs_1 = { - sizeof(struct WimaxBSInformation), - offsetof(struct WimaxBSInformation, _asn_ctx), - asn_MAP_WimaxBSInformation_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_WimaxBSInformation_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WimaxBSInformation = { - "WimaxBSInformation", - "WimaxBSInformation", - &asn_OP_SEQUENCE, - asn_DEF_WimaxBSInformation_tags_1, - sizeof(asn_DEF_WimaxBSInformation_tags_1) - /sizeof(asn_DEF_WimaxBSInformation_tags_1[0]), /* 1 */ - asn_DEF_WimaxBSInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_WimaxBSInformation_tags_1) - /sizeof(asn_DEF_WimaxBSInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WimaxBSInformation_1, - 3, /* Elements count */ - &asn_SPC_WimaxBSInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WimaxBSInformation.h b/asn.1/generated/WimaxBSInformation.h deleted file mode 100644 index 61f38edf..00000000 --- a/asn.1/generated/WimaxBSInformation.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _WimaxBSInformation_H_ -#define _WimaxBSInformation_H_ - - -#include - -/* Including external dependencies */ -#include "WimaxBsID.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct WimaxRTD; -struct WimaxNMRList; - -/* WimaxBSInformation */ -typedef struct WimaxBSInformation { - WimaxBsID_t wimaxBsID; - struct WimaxRTD *wimaxRTD /* OPTIONAL */; - struct WimaxNMRList *wimaxNMRList /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} WimaxBSInformation_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_WimaxBSInformation; -extern asn_SEQUENCE_specifics_t asn_SPC_WimaxBSInformation_specs_1; -extern asn_TYPE_member_t asn_MBR_WimaxBSInformation_1[3]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "WimaxRTD.h" -#include "WimaxNMRList.h" - -#endif /* _WimaxBSInformation_H_ */ -#include diff --git a/asn.1/generated/WimaxBsID.c b/asn.1/generated/WimaxBsID.c deleted file mode 100644 index cb106f43..00000000 --- a/asn.1/generated/WimaxBsID.c +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WimaxBsID.h" - -static int -memb_bsID_MSB_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 24)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bsID_LSB_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 24)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_bsID_MSB_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 24, 24 } /* (SIZE(24..24)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bsID_LSB_constr_3 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 24, 24 } /* (SIZE(24..24)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_WimaxBsID_1[] = { - { ATF_POINTER, 1, offsetof(struct WimaxBsID, bsID_MSB), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_bsID_MSB_constr_2, memb_bsID_MSB_constraint_1 }, - 0, 0, /* No default value */ - "bsID-MSB" - }, - { ATF_NOFLAGS, 0, offsetof(struct WimaxBsID, bsID_LSB), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_bsID_LSB_constr_3, memb_bsID_LSB_constraint_1 }, - 0, 0, /* No default value */ - "bsID-LSB" - }, -}; -static const int asn_MAP_WimaxBsID_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_WimaxBsID_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WimaxBsID_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bsID-MSB */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bsID-LSB */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WimaxBsID_specs_1 = { - sizeof(struct WimaxBsID), - offsetof(struct WimaxBsID, _asn_ctx), - asn_MAP_WimaxBsID_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_WimaxBsID_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WimaxBsID = { - "WimaxBsID", - "WimaxBsID", - &asn_OP_SEQUENCE, - asn_DEF_WimaxBsID_tags_1, - sizeof(asn_DEF_WimaxBsID_tags_1) - /sizeof(asn_DEF_WimaxBsID_tags_1[0]), /* 1 */ - asn_DEF_WimaxBsID_tags_1, /* Same as above */ - sizeof(asn_DEF_WimaxBsID_tags_1) - /sizeof(asn_DEF_WimaxBsID_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WimaxBsID_1, - 2, /* Elements count */ - &asn_SPC_WimaxBsID_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WimaxBsID.h b/asn.1/generated/WimaxBsID.h deleted file mode 100644 index e283c2b2..00000000 --- a/asn.1/generated/WimaxBsID.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _WimaxBsID_H_ -#define _WimaxBsID_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* WimaxBsID */ -typedef struct WimaxBsID { - BIT_STRING_t *bsID_MSB /* OPTIONAL */; - BIT_STRING_t bsID_LSB; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} WimaxBsID_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_WimaxBsID; -extern asn_SEQUENCE_specifics_t asn_SPC_WimaxBsID_specs_1; -extern asn_TYPE_member_t asn_MBR_WimaxBsID_1[2]; - -#ifdef __cplusplus -} -#endif - -#endif /* _WimaxBsID_H_ */ -#include diff --git a/asn.1/generated/WimaxNMR.c b/asn.1/generated/WimaxNMR.c deleted file mode 100644 index d1e4282c..00000000 --- a/asn.1/generated/WimaxNMR.c +++ /dev/null @@ -1,342 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WimaxNMR.h" - -static int -memb_relDelay_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -32768 && value <= 32767)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_relDelaystd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_rSSI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_rSSIstd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_bSTxPower_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cINR_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 255)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_cINRstd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 63)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_relDelay_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_relDelaystd_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_rSSI_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_rSSIstd_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_bSTxPower_constr_7 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cINR_constr_8 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_cINRstd_constr_9 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_WimaxNMR_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct WimaxNMR, wimaxBsID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WimaxBsID, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "wimaxBsID" - }, - { ATF_POINTER, 8, offsetof(struct WimaxNMR, relDelay), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_relDelay_constr_3, memb_relDelay_constraint_1 }, - 0, 0, /* No default value */ - "relDelay" - }, - { ATF_POINTER, 7, offsetof(struct WimaxNMR, relDelaystd), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_relDelaystd_constr_4, memb_relDelaystd_constraint_1 }, - 0, 0, /* No default value */ - "relDelaystd" - }, - { ATF_POINTER, 6, offsetof(struct WimaxNMR, rSSI), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rSSI_constr_5, memb_rSSI_constraint_1 }, - 0, 0, /* No default value */ - "rSSI" - }, - { ATF_POINTER, 5, offsetof(struct WimaxNMR, rSSIstd), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rSSIstd_constr_6, memb_rSSIstd_constraint_1 }, - 0, 0, /* No default value */ - "rSSIstd" - }, - { ATF_POINTER, 4, offsetof(struct WimaxNMR, bSTxPower), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_bSTxPower_constr_7, memb_bSTxPower_constraint_1 }, - 0, 0, /* No default value */ - "bSTxPower" - }, - { ATF_POINTER, 3, offsetof(struct WimaxNMR, cINR), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cINR_constr_8, memb_cINR_constraint_1 }, - 0, 0, /* No default value */ - "cINR" - }, - { ATF_POINTER, 2, offsetof(struct WimaxNMR, cINRstd), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_cINRstd_constr_9, memb_cINRstd_constraint_1 }, - 0, 0, /* No default value */ - "cINRstd" - }, - { ATF_POINTER, 1, offsetof(struct WimaxNMR, bSLocation), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ReportedLocation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "bSLocation" - }, -}; -static const int asn_MAP_WimaxNMR_oms_1[] = { 1, 2, 3, 4, 5, 6, 7, 8 }; -static const ber_tlv_tag_t asn_DEF_WimaxNMR_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WimaxNMR_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wimaxBsID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* relDelay */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* relDelaystd */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* rSSI */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rSSIstd */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* bSTxPower */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* cINR */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* cINRstd */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* bSLocation */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WimaxNMR_specs_1 = { - sizeof(struct WimaxNMR), - offsetof(struct WimaxNMR, _asn_ctx), - asn_MAP_WimaxNMR_tag2el_1, - 9, /* Count of tags in the map */ - asn_MAP_WimaxNMR_oms_1, /* Optional members */ - 8, 0, /* Root/Additions */ - 9, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WimaxNMR = { - "WimaxNMR", - "WimaxNMR", - &asn_OP_SEQUENCE, - asn_DEF_WimaxNMR_tags_1, - sizeof(asn_DEF_WimaxNMR_tags_1) - /sizeof(asn_DEF_WimaxNMR_tags_1[0]), /* 1 */ - asn_DEF_WimaxNMR_tags_1, /* Same as above */ - sizeof(asn_DEF_WimaxNMR_tags_1) - /sizeof(asn_DEF_WimaxNMR_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WimaxNMR_1, - 9, /* Elements count */ - &asn_SPC_WimaxNMR_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WimaxNMR.h b/asn.1/generated/WimaxNMR.h deleted file mode 100644 index 4106f5a8..00000000 --- a/asn.1/generated/WimaxNMR.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _WimaxNMR_H_ -#define _WimaxNMR_H_ - - -#include - -/* Including external dependencies */ -#include "WimaxBsID.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct ReportedLocation; - -/* WimaxNMR */ -typedef struct WimaxNMR { - WimaxBsID_t wimaxBsID; - long *relDelay /* OPTIONAL */; - long *relDelaystd /* OPTIONAL */; - long *rSSI /* OPTIONAL */; - long *rSSIstd /* OPTIONAL */; - long *bSTxPower /* OPTIONAL */; - long *cINR /* OPTIONAL */; - long *cINRstd /* OPTIONAL */; - struct ReportedLocation *bSLocation /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} WimaxNMR_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_WimaxNMR; -extern asn_SEQUENCE_specifics_t asn_SPC_WimaxNMR_specs_1; -extern asn_TYPE_member_t asn_MBR_WimaxNMR_1[9]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "ReportedLocation.h" - -#endif /* _WimaxNMR_H_ */ -#include diff --git a/asn.1/generated/WimaxNMRList.c b/asn.1/generated/WimaxNMRList.c deleted file mode 100644 index 7d3c4628..00000000 --- a/asn.1/generated/WimaxNMRList.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WimaxNMRList.h" - -asn_per_constraints_t asn_PER_type_WimaxNMRList_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_WimaxNMRList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_WimaxNMR, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_WimaxNMRList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_WimaxNMRList_specs_1 = { - sizeof(struct WimaxNMRList), - offsetof(struct WimaxNMRList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_WimaxNMRList = { - "WimaxNMRList", - "WimaxNMRList", - &asn_OP_SEQUENCE_OF, - asn_DEF_WimaxNMRList_tags_1, - sizeof(asn_DEF_WimaxNMRList_tags_1) - /sizeof(asn_DEF_WimaxNMRList_tags_1[0]), /* 1 */ - asn_DEF_WimaxNMRList_tags_1, /* Same as above */ - sizeof(asn_DEF_WimaxNMRList_tags_1) - /sizeof(asn_DEF_WimaxNMRList_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_WimaxNMRList_constr_1, SEQUENCE_OF_constraint }, - asn_MBR_WimaxNMRList_1, - 1, /* Single element */ - &asn_SPC_WimaxNMRList_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WimaxRTD.c b/asn.1/generated/WimaxRTD.c deleted file mode 100644 index 099ca204..00000000 --- a/asn.1/generated/WimaxRTD.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WimaxRTD.h" - -static int -memb_rTD_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 65535)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_rTDstd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 1023)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_rTD_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_rTDstd_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -asn_TYPE_member_t asn_MBR_WimaxRTD_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct WimaxRTD, rTD), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rTD_constr_2, memb_rTD_constraint_1 }, - 0, 0, /* No default value */ - "rTD" - }, - { ATF_POINTER, 1, offsetof(struct WimaxRTD, rTDstd), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_rTDstd_constr_3, memb_rTDstd_constraint_1 }, - 0, 0, /* No default value */ - "rTDstd" - }, -}; -static const int asn_MAP_WimaxRTD_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_WimaxRTD_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WimaxRTD_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rTD */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* rTDstd */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WimaxRTD_specs_1 = { - sizeof(struct WimaxRTD), - offsetof(struct WimaxRTD, _asn_ctx), - asn_MAP_WimaxRTD_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_WimaxRTD_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WimaxRTD = { - "WimaxRTD", - "WimaxRTD", - &asn_OP_SEQUENCE, - asn_DEF_WimaxRTD_tags_1, - sizeof(asn_DEF_WimaxRTD_tags_1) - /sizeof(asn_DEF_WimaxRTD_tags_1[0]), /* 1 */ - asn_DEF_WimaxRTD_tags_1, /* Same as above */ - sizeof(asn_DEF_WimaxRTD_tags_1) - /sizeof(asn_DEF_WimaxRTD_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WimaxRTD_1, - 2, /* Elements count */ - &asn_SPC_WimaxRTD_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WimaxRTD.h b/asn.1/generated/WimaxRTD.h deleted file mode 100644 index aca3db8e..00000000 --- a/asn.1/generated/WimaxRTD.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _WimaxRTD_H_ -#define _WimaxRTD_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* WimaxRTD */ -typedef struct WimaxRTD { - long rTD; - long *rTDstd /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} WimaxRTD_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_WimaxRTD; -extern asn_SEQUENCE_specifics_t asn_SPC_WimaxRTD_specs_1; -extern asn_TYPE_member_t asn_MBR_WimaxRTD_1[2]; - -#ifdef __cplusplus -} -#endif - -#endif /* _WimaxRTD_H_ */ -#include diff --git a/asn.1/generated/WlanAPInformation.c b/asn.1/generated/WlanAPInformation.c deleted file mode 100644 index ef209677..00000000 --- a/asn.1/generated/WlanAPInformation.c +++ /dev/null @@ -1,528 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#include "WlanAPInformation.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static int -memb_apMACAddress_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 48)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_apTransmitPower_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -127 && value <= 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_apAntennaGain_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -127 && value <= 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_apSignaltoNoise_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -127 && value <= 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_apSignalStrength_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -127 && value <= 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_apChannelFrequency_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0 && value <= 256)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_setTransmitPower_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -127 && value <= 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_setAntennaGain_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -127 && value <= 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_setSignaltoNoise_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -127 && value <= 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_setSignalStrength_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= -127 && value <= 128)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_type_apDeviceType_constr_6 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_apMACAddress_constr_2 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 48, 48 } /* (SIZE(48..48)) */, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_apTransmitPower_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -127, 128 } /* (-127..128) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_apAntennaGain_constr_4 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -127, 128 } /* (-127..128) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_apSignaltoNoise_constr_5 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -127, 128 } /* (-127..128) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_apSignalStrength_constr_11 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -127, 128 } /* (-127..128) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_apChannelFrequency_constr_12 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 256 } /* (0..256) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_setTransmitPower_constr_14 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -127, 128 } /* (-127..128) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_setAntennaGain_constr_15 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -127, 128 } /* (-127..128) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_setSignaltoNoise_constr_16 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -127, 128 } /* (-127..128) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_per_constraints_t asn_PER_memb_setSignalStrength_constr_17 CC_NOTUSED = { - { APC_CONSTRAINED, 8, 8, -127, 128 } /* (-127..128) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_apDeviceType_value2enum_6[] = { - { 0, 11, "wlan802-11a" }, - { 1, 11, "wlan802-11b" }, - { 2, 11, "wlan802-11g" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_apDeviceType_enum2value_6[] = { - 0, /* wlan802-11a(0) */ - 1, /* wlan802-11b(1) */ - 2 /* wlan802-11g(2) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_apDeviceType_specs_6 = { - asn_MAP_apDeviceType_value2enum_6, /* "tag" => N; sorted by tag */ - asn_MAP_apDeviceType_enum2value_6, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ - 4, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_apDeviceType_tags_6[] = { - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_apDeviceType_6 = { - "apDeviceType", - "apDeviceType", - &asn_OP_NativeEnumerated, - asn_DEF_apDeviceType_tags_6, - sizeof(asn_DEF_apDeviceType_tags_6) - /sizeof(asn_DEF_apDeviceType_tags_6[0]) - 1, /* 1 */ - asn_DEF_apDeviceType_tags_6, /* Same as above */ - sizeof(asn_DEF_apDeviceType_tags_6) - /sizeof(asn_DEF_apDeviceType_tags_6[0]), /* 2 */ - { 0, &asn_PER_type_apDeviceType_constr_6, NativeEnumerated_constraint }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_apDeviceType_specs_6 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_WlanAPInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct WlanAPInformation, apMACAddress), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BIT_STRING, - 0, - { 0, &asn_PER_memb_apMACAddress_constr_2, memb_apMACAddress_constraint_1 }, - 0, 0, /* No default value */ - "apMACAddress" - }, - { ATF_POINTER, 12, offsetof(struct WlanAPInformation, apTransmitPower), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_apTransmitPower_constr_3, memb_apTransmitPower_constraint_1 }, - 0, 0, /* No default value */ - "apTransmitPower" - }, - { ATF_POINTER, 11, offsetof(struct WlanAPInformation, apAntennaGain), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_apAntennaGain_constr_4, memb_apAntennaGain_constraint_1 }, - 0, 0, /* No default value */ - "apAntennaGain" - }, - { ATF_POINTER, 10, offsetof(struct WlanAPInformation, apSignaltoNoise), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_apSignaltoNoise_constr_5, memb_apSignaltoNoise_constraint_1 }, - 0, 0, /* No default value */ - "apSignaltoNoise" - }, - { ATF_POINTER, 9, offsetof(struct WlanAPInformation, apDeviceType), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_apDeviceType_6, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "apDeviceType" - }, - { ATF_POINTER, 8, offsetof(struct WlanAPInformation, apSignalStrength), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_apSignalStrength_constr_11, memb_apSignalStrength_constraint_1 }, - 0, 0, /* No default value */ - "apSignalStrength" - }, - { ATF_POINTER, 7, offsetof(struct WlanAPInformation, apChannelFrequency), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_apChannelFrequency_constr_12, memb_apChannelFrequency_constraint_1 }, - 0, 0, /* No default value */ - "apChannelFrequency" - }, - { ATF_POINTER, 6, offsetof(struct WlanAPInformation, apRoundTripDelay), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RTD, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "apRoundTripDelay" - }, - { ATF_POINTER, 5, offsetof(struct WlanAPInformation, setTransmitPower), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_setTransmitPower_constr_14, memb_setTransmitPower_constraint_1 }, - 0, 0, /* No default value */ - "setTransmitPower" - }, - { ATF_POINTER, 4, offsetof(struct WlanAPInformation, setAntennaGain), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_setAntennaGain_constr_15, memb_setAntennaGain_constraint_1 }, - 0, 0, /* No default value */ - "setAntennaGain" - }, - { ATF_POINTER, 3, offsetof(struct WlanAPInformation, setSignaltoNoise), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_setSignaltoNoise_constr_16, memb_setSignaltoNoise_constraint_1 }, - 0, 0, /* No default value */ - "setSignaltoNoise" - }, - { ATF_POINTER, 2, offsetof(struct WlanAPInformation, setSignalStrength), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { 0, &asn_PER_memb_setSignalStrength_constr_17, memb_setSignalStrength_constraint_1 }, - 0, 0, /* No default value */ - "setSignalStrength" - }, - { ATF_POINTER, 1, offsetof(struct WlanAPInformation, apReportedLocation), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ReportedLocation, - 0, - { 0, 0, 0 }, - 0, 0, /* No default value */ - "apReportedLocation" - }, -}; -static const int asn_MAP_WlanAPInformation_oms_1[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static const ber_tlv_tag_t asn_DEF_WlanAPInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_WlanAPInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* apMACAddress */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* apTransmitPower */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* apAntennaGain */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* apSignaltoNoise */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* apDeviceType */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* apSignalStrength */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* apChannelFrequency */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* apRoundTripDelay */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* setTransmitPower */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* setAntennaGain */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* setSignaltoNoise */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* setSignalStrength */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 } /* apReportedLocation */ -}; -asn_SEQUENCE_specifics_t asn_SPC_WlanAPInformation_specs_1 = { - sizeof(struct WlanAPInformation), - offsetof(struct WlanAPInformation, _asn_ctx), - asn_MAP_WlanAPInformation_tag2el_1, - 13, /* Count of tags in the map */ - asn_MAP_WlanAPInformation_oms_1, /* Optional members */ - 12, 0, /* Root/Additions */ - 13, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_WlanAPInformation = { - "WlanAPInformation", - "WlanAPInformation", - &asn_OP_SEQUENCE, - asn_DEF_WlanAPInformation_tags_1, - sizeof(asn_DEF_WlanAPInformation_tags_1) - /sizeof(asn_DEF_WlanAPInformation_tags_1[0]), /* 1 */ - asn_DEF_WlanAPInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_WlanAPInformation_tags_1) - /sizeof(asn_DEF_WlanAPInformation_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, - asn_MBR_WlanAPInformation_1, - 13, /* Elements count */ - &asn_SPC_WlanAPInformation_specs_1 /* Additional specs */ -}; - diff --git a/asn.1/generated/WlanAPInformation.h b/asn.1/generated/WlanAPInformation.h deleted file mode 100644 index 274f3f48..00000000 --- a/asn.1/generated/WlanAPInformation.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` - */ - -#ifndef _WlanAPInformation_H_ -#define _WlanAPInformation_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum WlanAPInformation__apDeviceType { - WlanAPInformation__apDeviceType_wlan802_11a = 0, - WlanAPInformation__apDeviceType_wlan802_11b = 1, - WlanAPInformation__apDeviceType_wlan802_11g = 2 - /* - * Enumeration is extensible - */ -} e_WlanAPInformation__apDeviceType; - -/* Forward declarations */ -struct RTD; -struct ReportedLocation; - -/* WlanAPInformation */ -typedef struct WlanAPInformation { - BIT_STRING_t apMACAddress; - long *apTransmitPower /* OPTIONAL */; - long *apAntennaGain /* OPTIONAL */; - long *apSignaltoNoise /* OPTIONAL */; - long *apDeviceType /* OPTIONAL */; - long *apSignalStrength /* OPTIONAL */; - long *apChannelFrequency /* OPTIONAL */; - struct RTD *apRoundTripDelay /* OPTIONAL */; - long *setTransmitPower /* OPTIONAL */; - long *setAntennaGain /* OPTIONAL */; - long *setSignaltoNoise /* OPTIONAL */; - long *setSignalStrength /* OPTIONAL */; - struct ReportedLocation *apReportedLocation /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} WlanAPInformation_t; - -/* Implementation */ -/* extern asn_TYPE_descriptor_t asn_DEF_apDeviceType_6; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_WlanAPInformation; -extern asn_SEQUENCE_specifics_t asn_SPC_WlanAPInformation_specs_1; -extern asn_TYPE_member_t asn_MBR_WlanAPInformation_1[13]; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "RTD.h" -#include "ReportedLocation.h" - -#endif /* _WlanAPInformation_H_ */ -#include diff --git a/asn.1/generated/asn_application.c b/asn.1/generated/asn_application.c deleted file mode 100644 index 8ce0261b..00000000 --- a/asn.1/generated/asn_application.c +++ /dev/null @@ -1,440 +0,0 @@ -/* - * Copyright (c) 2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include -#include - -static asn_enc_rval_t asn_encode_internal(const asn_codec_ctx_t *opt_codec_ctx, - enum asn_transfer_syntax syntax, - const asn_TYPE_descriptor_t *td, - const void *sptr, - asn_app_consume_bytes_f *callback, - void *callback_key); - - -struct callback_count_bytes_key { - asn_app_consume_bytes_f *callback; - void *callback_key; - size_t computed_size; -}; - -/* - * Encoder which just counts bytes that come through it. - */ -static int -callback_count_bytes_cb(const void *data, size_t size, void *keyp) { - struct callback_count_bytes_key *key = keyp; - int ret; - - ret = key->callback(data, size, key->callback_key); - if(ret >= 0) { - key->computed_size += size; - } - - return ret; -} - -struct overrun_encoder_key { - void *buffer; - size_t buffer_size; - size_t computed_size; -}; - -struct dynamic_encoder_key { - void *buffer; - size_t buffer_size; - size_t computed_size; -}; - -struct callback_failure_catch_key { - asn_app_consume_bytes_f *callback; - void *callback_key; - int callback_failed; -}; - -/* - * Encoder which doesn't stop counting bytes - * even if it reaches the end of the buffer. - */ -static int -overrun_encoder_cb(const void *data, size_t size, void *keyp) { - struct overrun_encoder_key *key = keyp; - - if(key->computed_size + size > key->buffer_size) { - /* - * Avoid accident on the next call: - * stop adding bytes to the buffer. - */ - key->buffer_size = 0; - } else { - memcpy((char *)key->buffer + key->computed_size, data, size); - } - key->computed_size += size; - - return 0; -} - -/* - * Encoder which dynamically allocates output, and continues - * to count even if allocation failed. - */ -static int -dynamic_encoder_cb(const void *data, size_t size, void *keyp) { - struct dynamic_encoder_key *key = keyp; - - if(key->buffer) { - if(key->computed_size + size >= key->buffer_size) { - void *p; - size_t new_size = key->buffer_size; - - do { - new_size *= 2; - } while(new_size <= key->computed_size + size); - - p = REALLOC(key->buffer, new_size); - if(p) { - key->buffer = p; - key->buffer_size = new_size; - } else { - FREEMEM(key->buffer); - key->buffer = 0; - key->buffer_size = 0; - key->computed_size += size; - return 0; - } - } - memcpy((char *)key->buffer + key->computed_size, data, size); - } - - key->computed_size += size; - - return 0; -} - -/* - * Encoder which help convert the application level encoder failure into EIO. - */ -static int -callback_failure_catch_cb(const void *data, size_t size, void *keyp) { - struct callback_failure_catch_key *key = keyp; - int ret; - - ret = key->callback(data, size, key->callback_key); - if(ret < 0) { - key->callback_failed = 1; - } - - return ret; -} - -asn_enc_rval_t -asn_encode(const asn_codec_ctx_t *opt_codec_ctx, - enum asn_transfer_syntax syntax, const asn_TYPE_descriptor_t *td, - const void *sptr, asn_app_consume_bytes_f *callback, void *callback_key) { - struct callback_failure_catch_key cb_key; - asn_enc_rval_t er; - - if(!callback) { - errno = EINVAL; - ASN__ENCODE_FAILED; - } - - cb_key.callback = callback; - cb_key.callback_key = callback_key; - cb_key.callback_failed = 0; - - er = asn_encode_internal(opt_codec_ctx, syntax, td, sptr, - callback_failure_catch_cb, &cb_key); - if(cb_key.callback_failed) { - assert(er.encoded == -1); - assert(errno == EBADF); - errno = EIO; - } - - return er; -} - -asn_enc_rval_t -asn_encode_to_buffer(const asn_codec_ctx_t *opt_codec_ctx, - enum asn_transfer_syntax syntax, - const asn_TYPE_descriptor_t *td, const void *sptr, - void *buffer, size_t buffer_size) { - struct overrun_encoder_key buf_key; - asn_enc_rval_t er; - - if(buffer_size > 0 && !buffer) { - errno = EINVAL; - ASN__ENCODE_FAILED; - } - - buf_key.buffer = buffer; - buf_key.buffer_size = buffer_size; - buf_key.computed_size = 0; - - er = asn_encode_internal(opt_codec_ctx, syntax, td, sptr, - overrun_encoder_cb, &buf_key); - - if(er.encoded >= 0 && (size_t)er.encoded != buf_key.computed_size) { - ASN_DEBUG("asn_encode() returned %" ASN_PRI_SSIZE - " yet produced %" ASN_PRI_SIZE " bytes", - er.encoded, buf_key.computed_size); - assert(er.encoded < 0 || (size_t)er.encoded == buf_key.computed_size); - } - - return er; -} - -asn_encode_to_new_buffer_result_t -asn_encode_to_new_buffer(const asn_codec_ctx_t *opt_codec_ctx, - enum asn_transfer_syntax syntax, - const asn_TYPE_descriptor_t *td, const void *sptr) { - struct dynamic_encoder_key buf_key; - asn_encode_to_new_buffer_result_t res; - - buf_key.buffer_size = 16; - buf_key.buffer = MALLOC(buf_key.buffer_size); - buf_key.computed_size = 0; - - res.result = asn_encode_internal(opt_codec_ctx, syntax, td, sptr, - dynamic_encoder_cb, &buf_key); - - if(res.result.encoded >= 0 - && (size_t)res.result.encoded != buf_key.computed_size) { - ASN_DEBUG("asn_encode() returned %" ASN_PRI_SSIZE - " yet produced %" ASN_PRI_SIZE " bytes", - res.result.encoded, buf_key.computed_size); - assert(res.result.encoded < 0 - || (size_t)res.result.encoded == buf_key.computed_size); - } - - res.buffer = buf_key.buffer; - - /* 0-terminate just in case. */ - if(res.buffer) { - assert(buf_key.computed_size < buf_key.buffer_size); - ((char *)res.buffer)[buf_key.computed_size] = '\0'; - } - - return res; -} - -static asn_enc_rval_t -asn_encode_internal(const asn_codec_ctx_t *opt_codec_ctx, - enum asn_transfer_syntax syntax, - const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_consume_bytes_f *callback, void *callback_key) { - asn_enc_rval_t er; - enum xer_encoder_flags_e xer_flags = XER_F_CANONICAL; - - (void)opt_codec_ctx; /* Parameters are not checked on encode yet. */ - - if(!td || !sptr) { - errno = EINVAL; - ASN__ENCODE_FAILED; - } - - switch(syntax) { - case ATS_NONSTANDARD_PLAINTEXT: - if(td->op->print_struct) { - struct callback_count_bytes_key cb_key; - cb_key.callback = callback; - cb_key.callback_key = callback_key; - cb_key.computed_size = 0; - if(td->op->print_struct(td, sptr, 1, callback_count_bytes_cb, - &cb_key) - < 0 - || callback_count_bytes_cb("\n", 1, &cb_key) < 0) { - errno = EBADF; /* Structure has incorrect form. */ - er.encoded = -1; - er.failed_type = td; - er.structure_ptr = sptr; - } else { - er.encoded = cb_key.computed_size; - er.failed_type = 0; - er.structure_ptr = 0; - } - } else { - errno = ENOENT; /* Transfer syntax is not defined for this type. */ - ASN__ENCODE_FAILED; - } - break; - - case ATS_RANDOM: - errno = ENOENT; /* Randomization doesn't make sense on output. */ - ASN__ENCODE_FAILED; - - case ATS_BER: - /* BER is a superset of DER. */ - /* Fall through. */ - case ATS_DER: - if(td->op->der_encoder) { - er = der_encode(td, sptr, callback, callback_key); - if(er.encoded == -1) { - if(er.failed_type && er.failed_type->op->der_encoder) { - errno = EBADF; /* Structure has incorrect form. */ - } else { - errno = ENOENT; /* DER is not defined for this type. */ - } - } - } else { - errno = ENOENT; /* Transfer syntax is not defined for this type. */ - ASN__ENCODE_FAILED; - } - break; - case ATS_CER: - errno = ENOENT; /* Transfer syntax is not defined for any type. */ - ASN__ENCODE_FAILED; - -#ifdef ASN_DISABLE_OER_SUPPORT - case ATS_BASIC_OER: - case ATS_CANONICAL_OER: - errno = ENOENT; /* PER is not defined. */ - ASN__ENCODE_FAILED; - break; -#else /* ASN_DISABLE_OER_SUPPORT */ - case ATS_BASIC_OER: - /* CANONICAL-OER is a superset of BASIC-OER. */ - /* Fall through. */ - case ATS_CANONICAL_OER: - if(td->op->oer_encoder) { - er = oer_encode(td, sptr, callback, callback_key); - if(er.encoded == -1) { - if(er.failed_type && er.failed_type->op->oer_encoder) { - errno = EBADF; /* Structure has incorrect form. */ - } else { - errno = ENOENT; /* OER is not defined for this type. */ - } - } - } else { - errno = ENOENT; /* Transfer syntax is not defined for this type. */ - ASN__ENCODE_FAILED; - } - break; -#endif /* ASN_DISABLE_OER_SUPPORT */ - -#ifdef ASN_DISABLE_PER_SUPPORT - case ATS_UNALIGNED_BASIC_PER: - case ATS_UNALIGNED_CANONICAL_PER: - errno = ENOENT; /* PER is not defined. */ - ASN__ENCODE_FAILED; - break; -#else /* ASN_DISABLE_PER_SUPPORT */ - case ATS_UNALIGNED_BASIC_PER: - /* CANONICAL-UPER is a superset of BASIC-UPER. */ - /* Fall through. */ - case ATS_UNALIGNED_CANONICAL_PER: - if(td->op->uper_encoder) { - er = uper_encode(td, 0, sptr, callback, callback_key); - if(er.encoded == -1) { - if(er.failed_type && er.failed_type->op->uper_encoder) { - errno = EBADF; /* Structure has incorrect form. */ - } else { - errno = ENOENT; /* UPER is not defined for this type. */ - } - } else { - ASN_DEBUG("Complete encoded in %ld bits", (long)er.encoded); - if(er.encoded == 0) { - /* Enforce "Complete Encoding" of X.691 #11.1 */ - if(callback("\0", 1, callback_key) < 0) { - errno = EBADF; - ASN__ENCODE_FAILED; - } - er.encoded = 8; /* Exactly 8 zero bits is added. */ - } - /* Convert bits into bytes */ - er.encoded = (er.encoded + 7) >> 3; - } - } else { - errno = ENOENT; /* Transfer syntax is not defined for this type. */ - ASN__ENCODE_FAILED; - } - break; -#endif /* ASN_DISABLE_PER_SUPPORT */ - - case ATS_BASIC_XER: - /* CANONICAL-XER is a superset of BASIC-XER. */ - xer_flags &= ~XER_F_CANONICAL; - xer_flags |= XER_F_BASIC; - /* Fall through. */ - case ATS_CANONICAL_XER: - if(td->op->xer_encoder) { - er = xer_encode(td, sptr, xer_flags, callback, callback_key); - if(er.encoded == -1) { - if(er.failed_type && er.failed_type->op->xer_encoder) { - errno = EBADF; /* Structure has incorrect form. */ - } else { - errno = ENOENT; /* XER is not defined for this type. */ - } - } - } else { - errno = ENOENT; /* Transfer syntax is not defined for this type. */ - ASN__ENCODE_FAILED; - } - break; - - default: - errno = ENOENT; - ASN__ENCODE_FAILED; - } - - return er; -} - -asn_dec_rval_t -asn_decode(const asn_codec_ctx_t *opt_codec_ctx, - enum asn_transfer_syntax syntax, const asn_TYPE_descriptor_t *td, - void **sptr, const void *buffer, size_t size) { - if(!td || !td->op || !sptr || (size && !buffer)) { - ASN__DECODE_FAILED; - } - - switch(syntax) { - case ATS_CER: - case ATS_NONSTANDARD_PLAINTEXT: - default: - errno = ENOENT; - ASN__DECODE_FAILED; - - case ATS_RANDOM: - if(!td->op->random_fill) { - ASN__DECODE_FAILED; - } else { - if(asn_random_fill(td, sptr, 16000) == 0) { - asn_dec_rval_t ret = {RC_OK, 0}; - return ret; - } else { - ASN__DECODE_FAILED; - } - } - break; - - case ATS_DER: - case ATS_BER: - return ber_decode(opt_codec_ctx, td, sptr, buffer, size); - - case ATS_BASIC_OER: - case ATS_CANONICAL_OER: -#ifdef ASN_DISABLE_OER_SUPPORT - errno = ENOENT; - ASN__DECODE_FAILED; -#else - return oer_decode(opt_codec_ctx, td, sptr, buffer, size); -#endif - - case ATS_UNALIGNED_BASIC_PER: - case ATS_UNALIGNED_CANONICAL_PER: -#ifdef ASN_DISABLE_PER_SUPPORT - errno = ENOENT; - ASN__DECODE_FAILED; -#else - return uper_decode_complete(opt_codec_ctx, td, sptr, buffer, size); -#endif - - case ATS_BASIC_XER: - case ATS_CANONICAL_XER: - return xer_decode(opt_codec_ctx, td, sptr, buffer, size); - } -} - diff --git a/asn.1/generated/asn_codecs_prim.c b/asn.1/generated/asn_codecs_prim.c deleted file mode 100644 index 78448a8e..00000000 --- a/asn.1/generated/asn_codecs_prim.c +++ /dev/null @@ -1,317 +0,0 @@ -/*- - * Copyright (c) 2003, 2004 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include -#include - -/* - * Decode an always-primitive type. - */ -asn_dec_rval_t -ber_decode_primitive(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **sptr, - const void *buf_ptr, size_t size, int tag_mode) { - ASN__PRIMITIVE_TYPE_t *st = (ASN__PRIMITIVE_TYPE_t *)*sptr; - asn_dec_rval_t rval; - ber_tlv_len_t length = 0; /* =0 to avoid [incorrect] warning. */ - - /* - * If the structure is not there, allocate it. - */ - if(st == NULL) { - st = (ASN__PRIMITIVE_TYPE_t *)CALLOC(1, sizeof(*st)); - if(st == NULL) ASN__DECODE_FAILED; - *sptr = (void *)st; - } - - ASN_DEBUG("Decoding %s as plain primitive (tm=%d)", - td->name, tag_mode); - - /* - * Check tags and extract value length. - */ - rval = ber_check_tags(opt_codec_ctx, td, 0, buf_ptr, size, - tag_mode, 0, &length, 0); - if(rval.code != RC_OK) - return rval; - - ASN_DEBUG("%s length is %d bytes", td->name, (int)length); - - /* - * Make sure we have this length. - */ - buf_ptr = ((const char *)buf_ptr) + rval.consumed; - size -= rval.consumed; - if(length > (ber_tlv_len_t)size) { - rval.code = RC_WMORE; - rval.consumed = 0; - return rval; - } - - st->size = (int)length; - /* The following better be optimized away. */ - if(sizeof(st->size) != sizeof(length) - && (ber_tlv_len_t)st->size != length) { - st->size = 0; - ASN__DECODE_FAILED; - } - - st->buf = (uint8_t *)MALLOC(length + 1); - if(!st->buf) { - st->size = 0; - ASN__DECODE_FAILED; - } - - memcpy(st->buf, buf_ptr, length); - st->buf[length] = '\0'; /* Just in case */ - - rval.code = RC_OK; - rval.consumed += length; - - ASN_DEBUG("Took %ld/%ld bytes to encode %s", - (long)rval.consumed, - (long)length, td->name); - - return rval; -} - -/* - * Encode an always-primitive type using DER. - */ -asn_enc_rval_t -der_encode_primitive(const asn_TYPE_descriptor_t *td, const void *sptr, - int tag_mode, ber_tlv_tag_t tag, - asn_app_consume_bytes_f *cb, void *app_key) { - asn_enc_rval_t erval; - const ASN__PRIMITIVE_TYPE_t *st = (const ASN__PRIMITIVE_TYPE_t *)sptr; - - ASN_DEBUG("%s %s as a primitive type (tm=%d)", - cb?"Encoding":"Estimating", td->name, tag_mode); - - erval.encoded = der_write_tags(td, st->size, tag_mode, 0, tag, - cb, app_key); - ASN_DEBUG("%s wrote tags %d", td->name, (int)erval.encoded); - if(erval.encoded == -1) { - erval.failed_type = td; - erval.structure_ptr = sptr; - return erval; - } - - if(cb && st->buf) { - if(cb(st->buf, st->size, app_key) < 0) { - erval.encoded = -1; - erval.failed_type = td; - erval.structure_ptr = sptr; - return erval; - } - } else { - assert(st->buf || st->size == 0); - } - - erval.encoded += st->size; - ASN__ENCODED_OK(erval); -} - -void -ASN__PRIMITIVE_TYPE_free(const asn_TYPE_descriptor_t *td, void *sptr, - enum asn_struct_free_method method) { - ASN__PRIMITIVE_TYPE_t *st = (ASN__PRIMITIVE_TYPE_t *)sptr; - - if(!td || !sptr) - return; - - ASN_DEBUG("Freeing %s as a primitive type", td->name); - - if(st->buf) - FREEMEM(st->buf); - - switch(method) { - case ASFM_FREE_EVERYTHING: - FREEMEM(sptr); - break; - case ASFM_FREE_UNDERLYING: - break; - case ASFM_FREE_UNDERLYING_AND_RESET: - memset(sptr, 0, sizeof(ASN__PRIMITIVE_TYPE_t)); - break; - } -} - - -/* - * Local internal type passed around as an argument. - */ -struct xdp_arg_s { - const asn_TYPE_descriptor_t *type_descriptor; - void *struct_key; - xer_primitive_body_decoder_f *prim_body_decoder; - int decoded_something; - int want_more; -}; - -/* - * Since some kinds of primitive values can be encoded using value-specific - * tags (, , etc), the primitive decoder must - * be supplied with such tags to parse them as needed. - */ -static int -xer_decode__unexpected_tag(void *key, const void *chunk_buf, size_t chunk_size) { - struct xdp_arg_s *arg = (struct xdp_arg_s *)key; - enum xer_pbd_rval bret; - - /* - * The chunk_buf is guaranteed to start at '<'. - */ - assert(chunk_size && ((const char *)chunk_buf)[0] == 0x3c); - - /* - * Decoding was performed once already. Prohibit doing it again. - */ - if(arg->decoded_something) - return -1; - - bret = arg->prim_body_decoder(arg->type_descriptor, - arg->struct_key, chunk_buf, chunk_size); - switch(bret) { - case XPBD_SYSTEM_FAILURE: - case XPBD_DECODER_LIMIT: - case XPBD_BROKEN_ENCODING: - break; - case XPBD_BODY_CONSUMED: - /* Tag decoded successfully */ - arg->decoded_something = 1; - /* Fall through */ - case XPBD_NOT_BODY_IGNORE: /* Safe to proceed further */ - return 0; - } - - return -1; -} - -static ssize_t -xer_decode__primitive_body(void *key, const void *chunk_buf, size_t chunk_size, int have_more) { - struct xdp_arg_s *arg = (struct xdp_arg_s *)key; - enum xer_pbd_rval bret; - size_t lead_wsp_size; - - if(arg->decoded_something) { - if(xer_whitespace_span(chunk_buf, chunk_size) == chunk_size) { - /* - * Example: - * "123 " - * ^- chunk_buf position. - */ - return chunk_size; - } - /* - * Decoding was done once already. Prohibit doing it again. - */ - return -1; - } - - if(!have_more) { - /* - * If we've received something like "1", we can't really - * tell whether it is really `1` or `123`, until we know - * that there is no more data coming. - * The have_more argument will be set to 1 once something - * like this is available to the caller of this callback: - * "1want_more = 1; - return -1; - } - - lead_wsp_size = xer_whitespace_span(chunk_buf, chunk_size); - chunk_buf = (const char *)chunk_buf + lead_wsp_size; - chunk_size -= lead_wsp_size; - - bret = arg->prim_body_decoder(arg->type_descriptor, - arg->struct_key, chunk_buf, chunk_size); - switch(bret) { - case XPBD_SYSTEM_FAILURE: - case XPBD_DECODER_LIMIT: - case XPBD_BROKEN_ENCODING: - break; - case XPBD_BODY_CONSUMED: - /* Tag decoded successfully */ - arg->decoded_something = 1; - /* Fall through */ - case XPBD_NOT_BODY_IGNORE: /* Safe to proceed further */ - return lead_wsp_size + chunk_size; - } - - return -1; -} - - -asn_dec_rval_t -xer_decode_primitive(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **sptr, - size_t struct_size, const char *opt_mname, - const void *buf_ptr, size_t size, - xer_primitive_body_decoder_f *prim_body_decoder) { - const char *xml_tag = opt_mname ? opt_mname : td->xml_tag; - asn_struct_ctx_t s_ctx; - struct xdp_arg_s s_arg; - asn_dec_rval_t rc; - - /* - * Create the structure if does not exist. - */ - if(!*sptr) { - *sptr = CALLOC(1, struct_size); - if(!*sptr) ASN__DECODE_FAILED; - } - - memset(&s_ctx, 0, sizeof(s_ctx)); - s_arg.type_descriptor = td; - s_arg.struct_key = *sptr; - s_arg.prim_body_decoder = prim_body_decoder; - s_arg.decoded_something = 0; - s_arg.want_more = 0; - - rc = xer_decode_general(opt_codec_ctx, &s_ctx, &s_arg, - xml_tag, buf_ptr, size, - xer_decode__unexpected_tag, xer_decode__primitive_body); - switch(rc.code) { - case RC_OK: - if(!s_arg.decoded_something) { - char ch; - ASN_DEBUG("Primitive body is not recognized, " - "supplying empty one"); - /* - * Decoding opportunity has come and gone. - * Where's the result? - * Try to feed with empty body, see if it eats it. - */ - if(prim_body_decoder(s_arg.type_descriptor, - s_arg.struct_key, &ch, 0) - != XPBD_BODY_CONSUMED) { - /* - * This decoder does not like empty stuff. - */ - ASN__DECODE_FAILED; - } - } - break; - case RC_WMORE: - /* - * Redo the whole thing later. - * We don't have a context to save intermediate parsing state. - */ - rc.consumed = 0; - break; - case RC_FAIL: - rc.consumed = 0; - if(s_arg.want_more) - rc.code = RC_WMORE; - else - ASN__DECODE_FAILED; - break; - } - return rc; -} - diff --git a/asn.1/generated/asn_codecs_prim.h b/asn.1/generated/asn_codecs_prim.h deleted file mode 100644 index fbc55764..00000000 --- a/asn.1/generated/asn_codecs_prim.h +++ /dev/null @@ -1,51 +0,0 @@ -/*- - * Copyright (c) 2004-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef ASN_CODECS_PRIM_H -#define ASN_CODECS_PRIM_H - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct ASN__PRIMITIVE_TYPE_s { - uint8_t *buf; /* Buffer with consecutive primitive encoding bytes */ - size_t size; /* Size of the buffer */ -} ASN__PRIMITIVE_TYPE_t; /* Do not use this type directly! */ - -asn_struct_free_f ASN__PRIMITIVE_TYPE_free; -ber_type_decoder_f ber_decode_primitive; -der_type_encoder_f der_encode_primitive; - -/* - * A callback specification for the xer_decode_primitive() function below. - */ -enum xer_pbd_rval { - XPBD_SYSTEM_FAILURE, /* System failure (memory shortage, etc) */ - XPBD_DECODER_LIMIT, /* Hit some decoder limitation or deficiency */ - XPBD_BROKEN_ENCODING, /* Encoding of a primitive body is broken */ - XPBD_NOT_BODY_IGNORE, /* Not a body format, but safe to ignore */ - XPBD_BODY_CONSUMED /* Body is recognized and consumed */ -}; -typedef enum xer_pbd_rval(xer_primitive_body_decoder_f)( - const asn_TYPE_descriptor_t *td, void *struct_ptr, const void *chunk_buf, - size_t chunk_size); - -/* - * Specific function to decode simple primitive types. - * Also see xer_decode_general() in xer_decoder.h - */ -asn_dec_rval_t xer_decode_primitive( - const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *type_descriptor, void **struct_ptr, - size_t struct_size, const char *opt_mname, const void *buf_ptr, size_t size, - xer_primitive_body_decoder_f *prim_body_decoder); - -#ifdef __cplusplus -} -#endif - -#endif /* ASN_CODECS_PRIM_H */ diff --git a/asn.1/generated/constr_CHOICE.c b/asn.1/generated/constr_CHOICE.c deleted file mode 100644 index bac2601e..00000000 --- a/asn.1/generated/constr_CHOICE.c +++ /dev/null @@ -1,1340 +0,0 @@ -/* - * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include -#include - -/* - * Number of bytes left for this structure. - * (ctx->left) indicates the number of bytes _transferred_ for the structure. - * (size) contains the number of bytes in the buffer passed. - */ -#define LEFT ((size<(size_t)ctx->left)?size:(size_t)ctx->left) - -/* - * If the subprocessor function returns with an indication that it wants - * more data, it may well be a fatal decoding problem, because the - * size is constrained by the 's L, even if the buffer size allows - * reading more data. - * For example, consider the buffer containing the following TLVs: - * ... - * The TLV length clearly indicates that one byte is expected in V, but - * if the V processor returns with "want more data" even if the buffer - * contains way more data than the V processor have seen. - */ -#define SIZE_VIOLATION (ctx->left >= 0 && (size_t)ctx->left <= size) - -/* - * This macro "eats" the part of the buffer which is definitely "consumed", - * i.e. was correctly converted into local representation or rightfully skipped. - */ -#undef ADVANCE -#define ADVANCE(num_bytes) do { \ - size_t num = num_bytes; \ - ptr = ((const char *)ptr) + num;\ - size -= num; \ - if(ctx->left >= 0) \ - ctx->left -= num; \ - consumed_myself += num; \ - } while(0) - -/* - * Switch to the next phase of parsing. - */ -#undef NEXT_PHASE -#define NEXT_PHASE(ctx) do { \ - ctx->phase++; \ - ctx->step = 0; \ - } while(0) - -/* - * Return a standardized complex structure. - */ -#undef RETURN -#define RETURN(_code) do { \ - rval.code = _code; \ - rval.consumed = consumed_myself;\ - return rval; \ - } while(0) - -/* - * See the definitions. - */ -static unsigned _fetch_present_idx(const void *struct_ptr, unsigned off, - unsigned size); -static void _set_present_idx(void *sptr, unsigned offset, unsigned size, - unsigned pres); -static const void *_get_member_ptr(const asn_TYPE_descriptor_t *, - const void *sptr, asn_TYPE_member_t **elm, - unsigned *present); - -/* - * Tags are canonically sorted in the tag to member table. - */ -static int -_search4tag(const void *ap, const void *bp) { - const asn_TYPE_tag2member_t *a = (const asn_TYPE_tag2member_t *)ap; - const asn_TYPE_tag2member_t *b = (const asn_TYPE_tag2member_t *)bp; - - int a_class = BER_TAG_CLASS(a->el_tag); - int b_class = BER_TAG_CLASS(b->el_tag); - - if(a_class == b_class) { - ber_tlv_tag_t a_value = BER_TAG_VALUE(a->el_tag); - ber_tlv_tag_t b_value = BER_TAG_VALUE(b->el_tag); - - if(a_value == b_value) - return 0; - else if(a_value < b_value) - return -1; - else - return 1; - } else if(a_class < b_class) { - return -1; - } else { - return 1; - } -} - -/* - * The decoder of the CHOICE type. - */ -asn_dec_rval_t -CHOICE_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **struct_ptr, - const void *ptr, size_t size, int tag_mode) { - /* - * Bring closer parts of structure description. - */ - const asn_CHOICE_specifics_t *specs = - (const asn_CHOICE_specifics_t *)td->specifics; - asn_TYPE_member_t *elements = td->elements; - - /* - * Parts of the structure being constructed. - */ - void *st = *struct_ptr; /* Target structure. */ - asn_struct_ctx_t *ctx; /* Decoder context */ - - ber_tlv_tag_t tlv_tag; /* T from TLV */ - ssize_t tag_len; /* Length of TLV's T */ - asn_dec_rval_t rval; /* Return code from subparsers */ - - ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ - - ASN_DEBUG("Decoding %s as CHOICE", td->name); - - /* - * Create the target structure if it is not present already. - */ - if(st == 0) { - st = *struct_ptr = CALLOC(1, specs->struct_size); - if(st == 0) { - RETURN(RC_FAIL); - } - } - - /* - * Restore parsing context. - */ - ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); - - /* - * Start to parse where left previously - */ - switch(ctx->phase) { - case 0: - /* - * PHASE 0. - * Check that the set of tags associated with given structure - * perfectly fits our expectations. - */ - - if(tag_mode || td->tags_count) { - rval = ber_check_tags(opt_codec_ctx, td, ctx, ptr, size, - tag_mode, -1, &ctx->left, 0); - if(rval.code != RC_OK) { - ASN_DEBUG("%s tagging check failed: %d", - td->name, rval.code); - return rval; - } - - if(ctx->left >= 0) { - /* ?Substracted below! */ - ctx->left += rval.consumed; - } - ADVANCE(rval.consumed); - } else { - ctx->left = -1; - } - - NEXT_PHASE(ctx); - - ASN_DEBUG("Structure consumes %ld bytes, buffer %ld", - (long)ctx->left, (long)size); - - /* Fall through */ - case 1: - /* - * Fetch the T from TLV. - */ - tag_len = ber_fetch_tag(ptr, LEFT, &tlv_tag); - ASN_DEBUG("In %s CHOICE tag length %d", td->name, (int)tag_len); - switch(tag_len) { - case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); - /* Fall through */ - case -1: RETURN(RC_FAIL); - } - - do { - const asn_TYPE_tag2member_t *t2m; - asn_TYPE_tag2member_t key; - - key.el_tag = tlv_tag; - t2m = (const asn_TYPE_tag2member_t *)bsearch(&key, - specs->tag2el, specs->tag2el_count, - sizeof(specs->tag2el[0]), _search4tag); - if(t2m) { - /* - * Found the element corresponding to the tag. - */ - NEXT_PHASE(ctx); - ctx->step = t2m->el_no; - break; - } else if(specs->ext_start == -1) { - ASN_DEBUG("Unexpected tag %s " - "in non-extensible CHOICE %s", - ber_tlv_tag_string(tlv_tag), td->name); - RETURN(RC_FAIL); - } else { - /* Skip this tag */ - ssize_t skip; - - ASN_DEBUG("Skipping unknown tag %s", - ber_tlv_tag_string(tlv_tag)); - - skip = ber_skip_length(opt_codec_ctx, - BER_TLV_CONSTRUCTED(ptr), - (const char *)ptr + tag_len, - LEFT - tag_len); - - switch(skip) { - case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); - /* Fall through */ - case -1: RETURN(RC_FAIL); - } - - ADVANCE(skip + tag_len); - RETURN(RC_OK); - } - } while(0); - - case 2: - /* - * PHASE 2. - * Read in the element. - */ - do { - asn_TYPE_member_t *elm;/* CHOICE's element */ - void *memb_ptr; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ - - elm = &elements[ctx->step]; - - /* - * Compute the position of the member inside a structure, - * and also a type of containment (it may be contained - * as pointer or using inline inclusion). - */ - if(elm->flags & ATF_POINTER) { - /* Member is a pointer to another structure */ - memb_ptr2 = (void **)((char *)st + elm->memb_offset); - } else { - /* - * A pointer to a pointer - * holding the start of the structure - */ - memb_ptr = (char *)st + elm->memb_offset; - memb_ptr2 = &memb_ptr; - } - /* Set presence to be able to free it properly at any time */ - _set_present_idx(st, specs->pres_offset, - specs->pres_size, ctx->step + 1); - /* - * Invoke the member fetch routine according to member's type - */ - rval = elm->type->op->ber_decoder(opt_codec_ctx, elm->type, - memb_ptr2, ptr, LEFT, elm->tag_mode); - switch(rval.code) { - case RC_OK: - break; - case RC_WMORE: /* More data expected */ - if(!SIZE_VIOLATION) { - ADVANCE(rval.consumed); - RETURN(RC_WMORE); - } - RETURN(RC_FAIL); - case RC_FAIL: /* Fatal error */ - RETURN(rval.code); - } /* switch(rval) */ - - ADVANCE(rval.consumed); - } while(0); - - NEXT_PHASE(ctx); - - /* Fall through */ - case 3: - ASN_DEBUG("CHOICE %s Leftover: %ld, size = %ld, tm=%d, tc=%d", - td->name, (long)ctx->left, (long)size, - tag_mode, td->tags_count); - - if(ctx->left > 0) { - /* - * The type must be fully decoded - * by the CHOICE member-specific decoder. - */ - RETURN(RC_FAIL); - } - - if(ctx->left == -1 - && !(tag_mode || td->tags_count)) { - /* - * This is an untagged CHOICE. - * It doesn't contain nothing - * except for the member itself, including all its tags. - * The decoding is completed. - */ - NEXT_PHASE(ctx); - break; - } - - /* - * Read in the "end of data chunks"'s. - */ - while(ctx->left < 0) { - ssize_t tl; - - tl = ber_fetch_tag(ptr, LEFT, &tlv_tag); - switch(tl) { - case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); - /* Fall through */ - case -1: RETURN(RC_FAIL); - } - - /* - * Expected <0><0>... - */ - if(((const uint8_t *)ptr)[0] == 0) { - if(LEFT < 2) { - if(SIZE_VIOLATION) - RETURN(RC_FAIL); - else - RETURN(RC_WMORE); - } else if(((const uint8_t *)ptr)[1] == 0) { - /* - * Correctly finished with <0><0>. - */ - ADVANCE(2); - ctx->left++; - continue; - } - } else { - ASN_DEBUG("Unexpected continuation in %s", - td->name); - RETURN(RC_FAIL); - } - - /* UNREACHABLE */ - } - - NEXT_PHASE(ctx); - case 4: - /* No meaningful work here */ - break; - } - - RETURN(RC_OK); -} - -asn_enc_rval_t -CHOICE_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, - int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, - void *app_key) { - const asn_CHOICE_specifics_t *specs = (const asn_CHOICE_specifics_t *)td->specifics; - asn_TYPE_member_t *elm; /* CHOICE element */ - asn_enc_rval_t erval; - const void *memb_ptr; - size_t computed_size = 0; - unsigned present; - - if(!sptr) ASN__ENCODE_FAILED; - - ASN_DEBUG("%s %s as CHOICE", - cb?"Encoding":"Estimating", td->name); - - present = _fetch_present_idx(sptr, - specs->pres_offset, specs->pres_size); - - /* - * If the structure was not initialized, it cannot be encoded: - * can't deduce what to encode in the choice type. - */ - if(present == 0 || present > td->elements_count) { - if(present == 0 && td->elements_count == 0) { - /* The CHOICE is empty?! */ - erval.encoded = 0; - ASN__ENCODED_OK(erval); - } - ASN__ENCODE_FAILED; - } - - /* - * Seek over the present member of the structure. - */ - elm = &td->elements[present-1]; - if(elm->flags & ATF_POINTER) { - memb_ptr = - *(const void *const *)((const char *)sptr + elm->memb_offset); - if(memb_ptr == 0) { - if(elm->optional) { - erval.encoded = 0; - ASN__ENCODED_OK(erval); - } - /* Mandatory element absent */ - ASN__ENCODE_FAILED; - } - } else { - memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); - } - - /* - * If the CHOICE itself is tagged EXPLICIT: - * T ::= [2] EXPLICIT CHOICE { ... } - * Then emit the appropriate tags. - */ - if(tag_mode == 1 || td->tags_count) { - /* - * For this, we need to pre-compute the member. - */ - ssize_t ret; - - /* Encode member with its tag */ - erval = elm->type->op->der_encoder(elm->type, memb_ptr, - elm->tag_mode, elm->tag, 0, 0); - if(erval.encoded == -1) - return erval; - - /* Encode CHOICE with parent or my own tag */ - ret = der_write_tags(td, erval.encoded, tag_mode, 1, tag, - cb, app_key); - if(ret == -1) - ASN__ENCODE_FAILED; - computed_size += ret; - } - - /* - * Encode the single underlying member. - */ - erval = elm->type->op->der_encoder(elm->type, memb_ptr, - elm->tag_mode, elm->tag, cb, app_key); - if(erval.encoded == -1) - return erval; - - ASN_DEBUG("Encoded CHOICE member in %ld bytes (+%ld)", - (long)erval.encoded, (long)computed_size); - - erval.encoded += computed_size; - - return erval; -} - -ber_tlv_tag_t -CHOICE_outmost_tag(const asn_TYPE_descriptor_t *td, const void *ptr, int tag_mode, ber_tlv_tag_t tag) { - const asn_CHOICE_specifics_t *specs = (const asn_CHOICE_specifics_t *)td->specifics; - unsigned present; - - assert(tag_mode == 0); (void)tag_mode; - assert(tag == 0); (void)tag; - - /* - * Figure out which CHOICE element is encoded. - */ - present = _fetch_present_idx(ptr, specs->pres_offset, specs->pres_size); - - if(present > 0 && present <= td->elements_count) { - const asn_TYPE_member_t *elm = &td->elements[present-1]; - const void *memb_ptr; - - if(elm->flags & ATF_POINTER) { - memb_ptr = *(const void * const *) - ((const char *)ptr + elm->memb_offset); - } else { - memb_ptr = (const void *) - ((const char *)ptr + elm->memb_offset); - } - - return asn_TYPE_outmost_tag(elm->type, memb_ptr, - elm->tag_mode, elm->tag); - } else { - return (ber_tlv_tag_t)-1; - } -} - -int -CHOICE_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const asn_CHOICE_specifics_t *specs = - (const asn_CHOICE_specifics_t *)td->specifics; - unsigned present; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* - * Figure out which CHOICE element is encoded. - */ - present = _fetch_present_idx(sptr, specs->pres_offset,specs->pres_size); - if(present > 0 && present <= td->elements_count) { - asn_TYPE_member_t *elm = &td->elements[present-1]; - const void *memb_ptr; - - if(elm->flags & ATF_POINTER) { - memb_ptr = *(const void * const *)((const char *)sptr + elm->memb_offset); - if(!memb_ptr) { - if(elm->optional) - return 0; - ASN__CTFAIL(app_key, td, sptr, - "%s: mandatory CHOICE element %s absent (%s:%d)", - td->name, elm->name, __FILE__, __LINE__); - return -1; - } - } else { - memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); - } - - if(elm->encoding_constraints.general_constraints) { - return elm->encoding_constraints.general_constraints(elm->type, memb_ptr, - ctfailcb, app_key); - } else { - return elm->type->encoding_constraints.general_constraints(elm->type, - memb_ptr, ctfailcb, app_key); - } - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: no CHOICE element given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -#undef XER_ADVANCE -#define XER_ADVANCE(num_bytes) do { \ - size_t num = num_bytes; \ - buf_ptr = (const void *)(((const char *)buf_ptr) + num); \ - size -= num; \ - consumed_myself += num; \ - } while(0) - -/* - * Decode the XER (XML) data. - */ -asn_dec_rval_t -CHOICE_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **struct_ptr, - const char *opt_mname, const void *buf_ptr, size_t size) { - /* - * Bring closer parts of structure description. - */ - const asn_CHOICE_specifics_t *specs = (const asn_CHOICE_specifics_t *)td->specifics; - const char *xml_tag = opt_mname ? opt_mname : td->xml_tag; - - /* - * Parts of the structure being constructed. - */ - void *st = *struct_ptr; /* Target structure. */ - asn_struct_ctx_t *ctx; /* Decoder context */ - - asn_dec_rval_t rval; /* Return value of a decoder */ - ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ - size_t edx; /* Element index */ - - /* - * Create the target structure if it is not present already. - */ - if(st == 0) { - st = *struct_ptr = CALLOC(1, specs->struct_size); - if(st == 0) RETURN(RC_FAIL); - } - - /* - * Restore parsing context. - */ - ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); - if(ctx->phase == 0 && !*xml_tag) - ctx->phase = 1; /* Skip the outer tag checking phase */ - - /* - * Phases of XER/XML processing: - * Phase 0: Check that the opening tag matches our expectations. - * Phase 1: Processing body and reacting on closing tag. - * Phase 2: Processing inner type. - * Phase 3: Only waiting for closing tag. - * Phase 4: Skipping unknown extensions. - * Phase 5: PHASED OUT - */ - for(edx = ctx->step; ctx->phase <= 4;) { - pxer_chunk_type_e ch_type; /* XER chunk type */ - ssize_t ch_size; /* Chunk size */ - xer_check_tag_e tcv; /* Tag check value */ - asn_TYPE_member_t *elm; - - /* - * Go inside the member. - */ - if(ctx->phase == 2) { - asn_dec_rval_t tmprval; - void *memb_ptr; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ - unsigned old_present; - - elm = &td->elements[edx]; - - if(elm->flags & ATF_POINTER) { - /* Member is a pointer to another structure */ - memb_ptr2 = (void **)((char *)st - + elm->memb_offset); - } else { - memb_ptr = (char *)st + elm->memb_offset; - memb_ptr2 = &memb_ptr; - } - - /* Start/Continue decoding the inner member */ - tmprval = elm->type->op->xer_decoder(opt_codec_ctx, - elm->type, memb_ptr2, elm->name, - buf_ptr, size); - XER_ADVANCE(tmprval.consumed); - ASN_DEBUG("XER/CHOICE: itdf: [%s] code=%d", - elm->type->name, tmprval.code); - old_present = _fetch_present_idx(st, - specs->pres_offset, specs->pres_size); - assert(old_present == 0 || old_present == edx + 1); - /* Record what we've got */ - _set_present_idx(st, - specs->pres_offset, specs->pres_size, edx + 1); - if(tmprval.code != RC_OK) - RETURN(tmprval.code); - ctx->phase = 3; - /* Fall through */ - } - - /* No need to wait for closing tag; special mode. */ - if(ctx->phase == 3 && !*xml_tag) { - ctx->phase = 5; /* Phase out */ - RETURN(RC_OK); - } - - /* - * Get the next part of the XML stream. - */ - ch_size = xer_next_token(&ctx->context, buf_ptr, size, &ch_type); - if(ch_size == -1) { - RETURN(RC_FAIL); - } else { - switch(ch_type) { - case PXER_WMORE: - RETURN(RC_WMORE); - case PXER_COMMENT: /* Got XML comment */ - case PXER_TEXT: /* Ignore free-standing text */ - XER_ADVANCE(ch_size); /* Skip silently */ - continue; - case PXER_TAG: - break; /* Check the rest down there */ - } - } - - tcv = xer_check_tag(buf_ptr, ch_size, xml_tag); - ASN_DEBUG("XER/CHOICE checked [%c%c%c%c] vs [%s], tcv=%d", - ch_size>0?((const uint8_t *)buf_ptr)[0]:'?', - ch_size>1?((const uint8_t *)buf_ptr)[1]:'?', - ch_size>2?((const uint8_t *)buf_ptr)[2]:'?', - ch_size>3?((const uint8_t *)buf_ptr)[3]:'?', - xml_tag, tcv); - - /* Skip the extensions section */ - if(ctx->phase == 4) { - ASN_DEBUG("skip_unknown(%d, %ld)", - tcv, (long)ctx->left); - switch(xer_skip_unknown(tcv, &ctx->left)) { - case -1: - ctx->phase = 5; - RETURN(RC_FAIL); - case 1: - ctx->phase = 3; - /* Fall through */ - case 0: - XER_ADVANCE(ch_size); - continue; - case 2: - ctx->phase = 3; - break; - } - } - - switch(tcv) { - case XCT_BOTH: - break; /* No CHOICE? */ - case XCT_CLOSING: - if(ctx->phase != 3) - break; - XER_ADVANCE(ch_size); - ctx->phase = 5; /* Phase out */ - RETURN(RC_OK); - case XCT_OPENING: - if(ctx->phase == 0) { - XER_ADVANCE(ch_size); - ctx->phase = 1; /* Processing body phase */ - continue; - } - /* Fall through */ - case XCT_UNKNOWN_OP: - case XCT_UNKNOWN_BO: - - if(ctx->phase != 1) - break; /* Really unexpected */ - - /* - * Search which inner member corresponds to this tag. - */ - for(edx = 0; edx < td->elements_count; edx++) { - elm = &td->elements[edx]; - tcv = xer_check_tag(buf_ptr,ch_size,elm->name); - switch(tcv) { - case XCT_BOTH: - case XCT_OPENING: - /* - * Process this member. - */ - ctx->step = edx; - ctx->phase = 2; - break; - case XCT_UNKNOWN_OP: - case XCT_UNKNOWN_BO: - continue; - default: - edx = td->elements_count; - break; /* Phase out */ - } - break; - } - if(edx != td->elements_count) - continue; - - /* It is expected extension */ - if(specs->ext_start != -1) { - ASN_DEBUG("Got anticipated extension"); - /* - * Check for (XCT_BOTH or XCT_UNKNOWN_BO) - * By using a mask. Only record a pure - * tags. - */ - if(tcv & XCT_CLOSING) { - /* Found without body */ - ctx->phase = 3; /* Terminating */ - } else { - ctx->left = 1; - ctx->phase = 4; /* Skip ...'s */ - } - XER_ADVANCE(ch_size); - continue; - } - - /* Fall through */ - default: - break; - } - - ASN_DEBUG("Unexpected XML tag [%c%c%c%c] in CHOICE [%s]" - " (ph=%d, tag=%s)", - ch_size>0?((const uint8_t *)buf_ptr)[0]:'?', - ch_size>1?((const uint8_t *)buf_ptr)[1]:'?', - ch_size>2?((const uint8_t *)buf_ptr)[2]:'?', - ch_size>3?((const uint8_t *)buf_ptr)[3]:'?', - td->name, ctx->phase, xml_tag); - break; - } - - ctx->phase = 5; /* Phase out, just in case */ - RETURN(RC_FAIL); -} - - -asn_enc_rval_t -CHOICE_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, - enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, - void *app_key) { - const asn_CHOICE_specifics_t *specs = - (const asn_CHOICE_specifics_t *)td->specifics; - asn_enc_rval_t er; - unsigned present; - - if(!sptr) - ASN__ENCODE_FAILED; - - /* - * Figure out which CHOICE element is encoded. - */ - present = _fetch_present_idx(sptr, specs->pres_offset,specs->pres_size); - - if(present == 0 || present > td->elements_count) { - ASN__ENCODE_FAILED; - } else { - asn_enc_rval_t tmper; - asn_TYPE_member_t *elm = &td->elements[present-1]; - const void *memb_ptr; - const char *mname = elm->name; - unsigned int mlen = strlen(mname); - - if(elm->flags & ATF_POINTER) { - memb_ptr = - *(const void *const *)((const char *)sptr + elm->memb_offset); - if(!memb_ptr) ASN__ENCODE_FAILED; - } else { - memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); - } - - er.encoded = 0; - - if(!(flags & XER_F_CANONICAL)) ASN__TEXT_INDENT(1, ilevel); - ASN__CALLBACK3("<", 1, mname, mlen, ">", 1); - - tmper = elm->type->op->xer_encoder(elm->type, memb_ptr, - ilevel + 1, flags, cb, app_key); - if(tmper.encoded == -1) return tmper; - er.encoded += tmper.encoded; - - ASN__CALLBACK3("", 1); - } - - if(!(flags & XER_F_CANONICAL)) ASN__TEXT_INDENT(1, ilevel - 1); - - ASN__ENCODED_OK(er); -cb_failed: - ASN__ENCODE_FAILED; -} - -asn_dec_rval_t -CHOICE_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, void **sptr, - asn_per_data_t *pd) { - const asn_CHOICE_specifics_t *specs = - (const asn_CHOICE_specifics_t *)td->specifics; - asn_dec_rval_t rv; - const asn_per_constraint_t *ct; - asn_TYPE_member_t *elm; /* CHOICE's element */ - void *memb_ptr; - void **memb_ptr2; - void *st = *sptr; - int value; - - if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) - ASN__DECODE_FAILED; - - /* - * Create the target structure if it is not present already. - */ - if(!st) { - st = *sptr = CALLOC(1, specs->struct_size); - if(!st) ASN__DECODE_FAILED; - } - - if(constraints) ct = &constraints->value; - else if(td->encoding_constraints.per_constraints) ct = &td->encoding_constraints.per_constraints->value; - else ct = 0; - - if(ct && ct->flags & APC_EXTENSIBLE) { - value = per_get_few_bits(pd, 1); - if(value < 0) ASN__DECODE_STARVED; - if(value) ct = 0; /* Not restricted */ - } - - if(ct && ct->range_bits >= 0) { - value = per_get_few_bits(pd, ct->range_bits); - if(value < 0) ASN__DECODE_STARVED; - ASN_DEBUG("CHOICE %s got index %d in range %d", - td->name, value, ct->range_bits); - if(value > ct->upper_bound) - ASN__DECODE_FAILED; - } else { - if(specs->ext_start == -1) - ASN__DECODE_FAILED; - value = uper_get_nsnnwn(pd); - if(value < 0) ASN__DECODE_STARVED; - value += specs->ext_start; - if((unsigned)value >= td->elements_count) - ASN__DECODE_FAILED; - } - - /* Adjust if canonical order is different from natural order */ - if(specs->from_canonical_order) { - ASN_DEBUG("CHOICE presence from wire %d", value); - value = specs->from_canonical_order[value]; - ASN_DEBUG("CHOICE presence index effective %d", value); - } - - /* Set presence to be able to free it later */ - _set_present_idx(st, specs->pres_offset, specs->pres_size, value + 1); - - elm = &td->elements[value]; - if(elm->flags & ATF_POINTER) { - /* Member is a pointer to another structure */ - memb_ptr2 = (void **)((char *)st + elm->memb_offset); - } else { - memb_ptr = (char *)st + elm->memb_offset; - memb_ptr2 = &memb_ptr; - } - ASN_DEBUG("Discovered CHOICE %s encodes %s", td->name, elm->name); - - if(ct && ct->range_bits >= 0) { - rv = elm->type->op->uper_decoder(opt_codec_ctx, elm->type, - elm->encoding_constraints.per_constraints, memb_ptr2, pd); - } else { - rv = uper_open_type_get(opt_codec_ctx, elm->type, - elm->encoding_constraints.per_constraints, memb_ptr2, pd); - } - - if(rv.code != RC_OK) - ASN_DEBUG("Failed to decode %s in %s (CHOICE) %d", - elm->name, td->name, rv.code); - return rv; -} - -asn_enc_rval_t -CHOICE_encode_uper(const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, const void *sptr, - asn_per_outp_t *po) { - const asn_CHOICE_specifics_t *specs = (const asn_CHOICE_specifics_t *)td->specifics; - asn_TYPE_member_t *elm; /* CHOICE's element */ - const asn_per_constraint_t *ct; - const void *memb_ptr; - unsigned present; - int present_enc; - - if(!sptr) ASN__ENCODE_FAILED; - - ASN_DEBUG("Encoding %s as CHOICE", td->name); - - if(constraints) ct = &constraints->value; - else if(td->encoding_constraints.per_constraints) - ct = &td->encoding_constraints.per_constraints->value; - else ct = 0; - - present = _fetch_present_idx(sptr, specs->pres_offset, specs->pres_size); - - /* - * If the structure was not initialized properly, it cannot be encoded: - * can't deduce what to encode in the choice type. - */ - if(present == 0 || present > td->elements_count) - ASN__ENCODE_FAILED; - else - present--; - - ASN_DEBUG("Encoding %s CHOICE element %d", td->name, present); - - /* Adjust if canonical order is different from natural order */ - if(specs->to_canonical_order) - present_enc = specs->to_canonical_order[present]; - else - present_enc = present; - - if(ct && ct->range_bits >= 0) { - if(present_enc < ct->lower_bound - || present_enc > ct->upper_bound) { - if(ct->flags & APC_EXTENSIBLE) { - ASN_DEBUG( - "CHOICE member %d (enc %d) is an extension (%"ASN_PRIdMAX"..%"ASN_PRIdMAX")", - present, present_enc, ct->lower_bound, ct->upper_bound); - if(per_put_few_bits(po, 1, 1)) - ASN__ENCODE_FAILED; - } else { - ASN__ENCODE_FAILED; - } - ct = 0; - } - } - if(ct && ct->flags & APC_EXTENSIBLE) { - ASN_DEBUG("CHOICE member %d (enc %d) is not an extension (%"ASN_PRIdMAX"..%"ASN_PRIdMAX")", - present, present_enc, ct->lower_bound, ct->upper_bound); - if(per_put_few_bits(po, 0, 1)) - ASN__ENCODE_FAILED; - } - - - elm = &td->elements[present]; - ASN_DEBUG("CHOICE member \"%s\" %d (as %d)", elm->name, present, - present_enc); - if(elm->flags & ATF_POINTER) { - /* Member is a pointer to another structure */ - memb_ptr = - *(const void *const *)((const char *)sptr + elm->memb_offset); - if(!memb_ptr) ASN__ENCODE_FAILED; - } else { - memb_ptr = (const char *)sptr + elm->memb_offset; - } - - if(ct && ct->range_bits >= 0) { - if(per_put_few_bits(po, present_enc, ct->range_bits)) - ASN__ENCODE_FAILED; - - return elm->type->op->uper_encoder( - elm->type, elm->encoding_constraints.per_constraints, memb_ptr, po); - } else { - asn_enc_rval_t rval; - if(specs->ext_start == -1) ASN__ENCODE_FAILED; - if(uper_put_nsnnwn(po, present_enc - specs->ext_start)) - ASN__ENCODE_FAILED; - if(uper_open_type_put(elm->type, - elm->encoding_constraints.per_constraints, - memb_ptr, po)) - ASN__ENCODE_FAILED; - rval.encoded = 0; - ASN__ENCODED_OK(rval); - } -} - - -int -CHOICE_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, - asn_app_consume_bytes_f *cb, void *app_key) { - const asn_CHOICE_specifics_t *specs = (const asn_CHOICE_specifics_t *)td->specifics; - unsigned present; - - if(!sptr) return (cb("", 8, app_key) < 0) ? -1 : 0; - - /* - * Figure out which CHOICE element is encoded. - */ - present = _fetch_present_idx(sptr, specs->pres_offset,specs->pres_size); - - /* - * Print that element. - */ - if(present > 0 && present <= td->elements_count) { - asn_TYPE_member_t *elm = &td->elements[present-1]; - const void *memb_ptr; - - if(elm->flags & ATF_POINTER) { - memb_ptr = *(const void * const *)((const char *)sptr + elm->memb_offset); - if(!memb_ptr) return (cb("", 8, app_key) < 0) ? -1 : 0; - } else { - memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); - } - - /* Print member's name and stuff */ - if(0) { - if(cb(elm->name, strlen(elm->name), app_key) < 0 - || cb(": ", 2, app_key) < 0) - return -1; - } - - return elm->type->op->print_struct(elm->type, memb_ptr, ilevel, - cb, app_key); - } else { - return (cb("", 8, app_key) < 0) ? -1 : 0; - } -} - -void -CHOICE_free(const asn_TYPE_descriptor_t *td, void *ptr, - enum asn_struct_free_method method) { - const asn_CHOICE_specifics_t *specs = - (const asn_CHOICE_specifics_t *)td->specifics; - unsigned present; - - if(!td || !ptr) - return; - - ASN_DEBUG("Freeing %s as CHOICE", td->name); - - /* - * Figure out which CHOICE element is encoded. - */ - present = _fetch_present_idx(ptr, specs->pres_offset, specs->pres_size); - - /* - * Free that element. - */ - if(present > 0 && present <= td->elements_count) { - asn_TYPE_member_t *elm = &td->elements[present-1]; - void *memb_ptr; - - if(elm->flags & ATF_POINTER) { - memb_ptr = *(void **)((char *)ptr + elm->memb_offset); - if(memb_ptr) - ASN_STRUCT_FREE(*elm->type, memb_ptr); - } else { - memb_ptr = (void *)((char *)ptr + elm->memb_offset); - ASN_STRUCT_FREE_CONTENTS_ONLY(*elm->type, memb_ptr); - } - } - - switch(method) { - case ASFM_FREE_EVERYTHING: - FREEMEM(ptr); - break; - case ASFM_FREE_UNDERLYING: - break; - case ASFM_FREE_UNDERLYING_AND_RESET: - memset(ptr, 0, specs->struct_size); - break; - } -} - - -/* - * The following functions functions offer protection against -fshort-enums, - * compatible with little- and big-endian machines. - * If assertion is triggered, either disable -fshort-enums, or add an entry - * here with the ->pres_size of your target stracture. - * Unless the target structure is packed, the ".present" member - * is guaranteed to be aligned properly. ASN.1 compiler itself does not - * produce packed code. - */ -static unsigned -_fetch_present_idx(const void *struct_ptr, unsigned pres_offset, - unsigned pres_size) { - const void *present_ptr; - unsigned present; - - present_ptr = ((const char *)struct_ptr) + pres_offset; - - switch(pres_size) { - case sizeof(int): present = *(const unsigned int *)present_ptr; break; - case sizeof(short): present = *(const unsigned short *)present_ptr; break; - case sizeof(char): present = *(const unsigned char *)present_ptr; break; - default: - /* ANSI C mandates enum to be equivalent to integer */ - assert(pres_size != sizeof(int)); - return 0; /* If not aborted, pass back safe value */ - } - - return present; -} - -static void -_set_present_idx(void *struct_ptr, unsigned pres_offset, unsigned pres_size, - unsigned present) { - void *present_ptr; - present_ptr = ((char *)struct_ptr) + pres_offset; - - switch(pres_size) { - case sizeof(int): *(unsigned int *)present_ptr = present; break; - case sizeof(short): *(unsigned short *)present_ptr = present; break; - case sizeof(char): *(unsigned char *)present_ptr = present; break; - default: - /* ANSI C mandates enum to be equivalent to integer */ - assert(pres_size != sizeof(int)); - } -} - -static const void * -_get_member_ptr(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_TYPE_member_t **elm_ptr, unsigned *present_out) { - const asn_CHOICE_specifics_t *specs = - (const asn_CHOICE_specifics_t *)td->specifics; - unsigned present; - - if(!sptr) { - *elm_ptr = NULL; - *present_out = 0; - return NULL; - } - - /* - * Figure out which CHOICE element is encoded. - */ - present = _fetch_present_idx(sptr, specs->pres_offset, specs->pres_size); - *present_out = present; - - /* - * The presence index is intentionally 1-based to avoid - * treating zeroed structure as a valid one. - */ - if(present > 0 && present <= td->elements_count) { - asn_TYPE_member_t *const elm = &td->elements[present - 1]; - const void *memb_ptr; - - if(elm->flags & ATF_POINTER) { - memb_ptr = - *(const void *const *)((const char *)sptr + elm->memb_offset); - } else { - memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); - } - *elm_ptr = elm; - return memb_ptr; - } else { - *elm_ptr = NULL; - return NULL; - } - -} - -int -CHOICE_compare(const asn_TYPE_descriptor_t *td, const void *aptr, const void *bptr) { - asn_TYPE_member_t *aelm; - asn_TYPE_member_t *belm; - unsigned apresent = 0; - unsigned bpresent = 0; - const void *amember = _get_member_ptr(td, aptr, &aelm, &apresent); - const void *bmember = _get_member_ptr(td, bptr, &belm, &bpresent); - - if(amember && bmember) { - if(apresent == bpresent) { - assert(aelm == belm); - return aelm->type->op->compare_struct(aelm->type, amember, bmember); - } else if(apresent < bpresent) { - return -1; - } else { - return 1; - } - } else if(!amember) { - return -1; - } else { - return 1; - } -} - -/* - * Return the 1-based choice variant presence index. - * Returns 0 in case of error. - */ -unsigned -CHOICE_variant_get_presence(const asn_TYPE_descriptor_t *td, const void *sptr) { - const asn_CHOICE_specifics_t *specs = - (const asn_CHOICE_specifics_t *)td->specifics; - return _fetch_present_idx(sptr, specs->pres_offset, specs->pres_size); -} - -/* - * Sets or resets the 1-based choice variant presence index. - * In case a previous index is not zero, the currently selected structure - * member is freed and zeroed-out first. - * Returns 0 on success and -1 on error. - */ -int -CHOICE_variant_set_presence(const asn_TYPE_descriptor_t *td, void *sptr, - unsigned present) { - const asn_CHOICE_specifics_t *specs = - (const asn_CHOICE_specifics_t *)td->specifics; - unsigned old_present; - - if(!sptr) { - return -1; - } - - if(present > td->elements_count) - return -1; - - old_present = - _fetch_present_idx(sptr, specs->pres_offset, specs->pres_size); - if(present == old_present) - return 0; - - if(old_present != 0) { - assert(old_present <= td->elements_count); - ASN_STRUCT_RESET(*td, sptr); - } - - _set_present_idx(sptr, specs->pres_offset, specs->pres_size, present); - - return 0; -} - - -asn_random_fill_result_t -CHOICE_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constr, - size_t max_length) { - const asn_CHOICE_specifics_t *specs = - (const asn_CHOICE_specifics_t *)td->specifics; - asn_random_fill_result_t res; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - const asn_TYPE_member_t *elm; - unsigned present; - void *memb_ptr; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ - void *st = *sptr; - - if(max_length == 0) return result_skipped; - - (void)constr; - - if(st == NULL) { - st = CALLOC(1, specs->struct_size); - if(st == NULL) { - return result_failed; - } - } - - present = asn_random_between(1, td->elements_count); - elm = &td->elements[present - 1]; - - if(elm->flags & ATF_POINTER) { - /* Member is a pointer to another structure */ - memb_ptr2 = (void **)((char *)st + elm->memb_offset); - } else { - memb_ptr = (char *)st + elm->memb_offset; - memb_ptr2 = &memb_ptr; - } - - res = elm->type->op->random_fill(elm->type, memb_ptr2, - &elm->encoding_constraints, max_length); - _set_present_idx(st, specs->pres_offset, specs->pres_size, present); - if(res.code == ARFILL_OK) { - *sptr = st; - } else { - if(st == *sptr) { - ASN_STRUCT_RESET(*td, st); - } else { - ASN_STRUCT_FREE(*td, st); - } - } - - return res; -} - - -asn_TYPE_operation_t asn_OP_CHOICE = { - CHOICE_free, - CHOICE_print, - CHOICE_compare, - CHOICE_decode_ber, - CHOICE_encode_der, - CHOICE_decode_xer, - CHOICE_encode_xer, -#ifdef ASN_DISABLE_OER_SUPPORT - 0, - 0, -#else - CHOICE_decode_oer, - CHOICE_encode_oer, -#endif /* ASN_DISABLE_OER_SUPPORT */ -#ifdef ASN_DISABLE_PER_SUPPORT - 0, - 0, -#else - CHOICE_decode_uper, - CHOICE_encode_uper, -#endif /* ASN_DISABLE_PER_SUPPORT */ - CHOICE_random_fill, - CHOICE_outmost_tag -}; diff --git a/asn.1/generated/constr_CHOICE.h b/asn.1/generated/constr_CHOICE.h deleted file mode 100644 index 76494809..00000000 --- a/asn.1/generated/constr_CHOICE.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef _CONSTR_CHOICE_H_ -#define _CONSTR_CHOICE_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct asn_CHOICE_specifics_s { - /* - * Target structure description. - */ - unsigned struct_size; /* Size of the target structure. */ - unsigned ctx_offset; /* Offset of the asn_codec_ctx_t member */ - unsigned pres_offset; /* Identifier of the present member */ - unsigned pres_size; /* Size of the identifier (enum) */ - - /* - * Tags to members mapping table. - */ - const asn_TYPE_tag2member_t *tag2el; - unsigned tag2el_count; - - /* Canonical ordering of CHOICE elements, for PER */ - const unsigned *to_canonical_order; - const unsigned *from_canonical_order; - - /* - * Extensions-related stuff. - */ - signed ext_start; /* First member of extensions, or -1 */ -} asn_CHOICE_specifics_t; - -/* - * A set specialized functions dealing with the CHOICE type. - */ -asn_struct_free_f CHOICE_free; -asn_struct_print_f CHOICE_print; -asn_struct_compare_f CHOICE_compare; -asn_constr_check_f CHOICE_constraint; -ber_type_decoder_f CHOICE_decode_ber; -der_type_encoder_f CHOICE_encode_der; -xer_type_decoder_f CHOICE_decode_xer; -xer_type_encoder_f CHOICE_encode_xer; -oer_type_decoder_f CHOICE_decode_oer; -oer_type_encoder_f CHOICE_encode_oer; -per_type_decoder_f CHOICE_decode_uper; -per_type_encoder_f CHOICE_encode_uper; -asn_outmost_tag_f CHOICE_outmost_tag; -asn_random_fill_f CHOICE_random_fill; -extern asn_TYPE_operation_t asn_OP_CHOICE; - -/* - * Return the 1-based choice variant presence index. - * Returns 0 in case of error. - */ -unsigned CHOICE_variant_get_presence(const asn_TYPE_descriptor_t *td, - const void *structure_ptr); - -/* - * Sets or resets the 1-based choice variant presence index. - * In case a previous index is not zero, the currently selected structure - * member is freed and zeroed-out first. - * Returns 0 on success and -1 on error. - */ -int CHOICE_variant_set_presence(const asn_TYPE_descriptor_t *td, - void *structure_ptr, unsigned present); - -#ifdef __cplusplus -} -#endif - -#endif /* _CONSTR_CHOICE_H_ */ diff --git a/asn.1/generated/constr_SEQUENCE.c b/asn.1/generated/constr_SEQUENCE.c deleted file mode 100644 index 2fbf97b6..00000000 --- a/asn.1/generated/constr_SEQUENCE.c +++ /dev/null @@ -1,1626 +0,0 @@ -/* - * Copyright (c) 2003-2017 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include -#include -#include - -/* - * Number of bytes left for this structure. - * (ctx->left) indicates the number of bytes _transferred_ for the structure. - * (size) contains the number of bytes in the buffer passed. - */ -#define LEFT ((size<(size_t)ctx->left)?size:(size_t)ctx->left) - -/* - * If the subprocessor function returns with an indication that it wants - * more data, it may well be a fatal decoding problem, because the - * size is constrained by the 's L, even if the buffer size allows - * reading more data. - * For example, consider the buffer containing the following TLVs: - * ... - * The TLV length clearly indicates that one byte is expected in V, but - * if the V processor returns with "want more data" even if the buffer - * contains way more data than the V processor have seen. - */ -#define SIZE_VIOLATION (ctx->left >= 0 && (size_t)ctx->left <= size) - -/* - * This macro "eats" the part of the buffer which is definitely "consumed", - * i.e. was correctly converted into local representation or rightfully skipped. - */ -#undef ADVANCE -#define ADVANCE(num_bytes) do { \ - size_t num = num_bytes; \ - ptr = ((const char *)ptr) + num; \ - size -= num; \ - if(ctx->left >= 0) \ - ctx->left -= num; \ - consumed_myself += num; \ - } while(0) - -/* - * Switch to the next phase of parsing. - */ -#undef NEXT_PHASE -#undef PHASE_OUT -#define NEXT_PHASE(ctx) do { \ - ctx->phase++; \ - ctx->step = 0; \ - } while(0) -#define PHASE_OUT(ctx) do { ctx->phase = 10; } while(0) - -/* - * Return a standardized complex structure. - */ -#undef RETURN -#define RETURN(_code) do { \ - rval.code = _code; \ - rval.consumed = consumed_myself;\ - return rval; \ - } while(0) - -/* - * Check whether we are inside the extensions group. - */ -#define IN_EXTENSION_GROUP(specs, memb_idx) \ - ((specs)->first_extension >= 0 \ - && (unsigned)(specs)->first_extension <= (memb_idx)) - -/* - * Tags are canonically sorted in the tag2element map. - */ -static int -_t2e_cmp(const void *ap, const void *bp) { - const asn_TYPE_tag2member_t *a = (const asn_TYPE_tag2member_t *)ap; - const asn_TYPE_tag2member_t *b = (const asn_TYPE_tag2member_t *)bp; - - int a_class = BER_TAG_CLASS(a->el_tag); - int b_class = BER_TAG_CLASS(b->el_tag); - - if(a_class == b_class) { - ber_tlv_tag_t a_value = BER_TAG_VALUE(a->el_tag); - ber_tlv_tag_t b_value = BER_TAG_VALUE(b->el_tag); - - if(a_value == b_value) { - if(a->el_no > b->el_no) - return 1; - /* - * Important: we do not check - * for a->el_no <= b->el_no! - */ - return 0; - } else if(a_value < b_value) - return -1; - else - return 1; - } else if(a_class < b_class) { - return -1; - } else { - return 1; - } -} - - -/* - * The decoder of the SEQUENCE type. - */ -asn_dec_rval_t -SEQUENCE_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **struct_ptr, - const void *ptr, size_t size, int tag_mode) { - /* - * Bring closer parts of structure description. - */ - const asn_SEQUENCE_specifics_t *specs = (const asn_SEQUENCE_specifics_t *)td->specifics; - const asn_TYPE_member_t *elements = td->elements; - - /* - * Parts of the structure being constructed. - */ - void *st = *struct_ptr; /* Target structure. */ - asn_struct_ctx_t *ctx; /* Decoder context */ - - ber_tlv_tag_t tlv_tag; /* T from TLV */ - asn_dec_rval_t rval; /* Return code from subparsers */ - - ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ - size_t edx; /* SEQUENCE element's index */ - - ASN_DEBUG("Decoding %s as SEQUENCE", td->name); - - /* - * Create the target structure if it is not present already. - */ - if(st == 0) { - st = *struct_ptr = CALLOC(1, specs->struct_size); - if(st == 0) { - RETURN(RC_FAIL); - } - } - - /* - * Restore parsing context. - */ - ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); - - /* - * Start to parse where left previously - */ - switch(ctx->phase) { - case 0: - /* - * PHASE 0. - * Check that the set of tags associated with given structure - * perfectly fits our expectations. - */ - - rval = ber_check_tags(opt_codec_ctx, td, ctx, ptr, size, - tag_mode, 1, &ctx->left, 0); - if(rval.code != RC_OK) { - ASN_DEBUG("%s tagging check failed: %d", - td->name, rval.code); - return rval; - } - - if(ctx->left >= 0) - ctx->left += rval.consumed; /* ?Substracted below! */ - ADVANCE(rval.consumed); - - NEXT_PHASE(ctx); - - ASN_DEBUG("Structure consumes %ld bytes, buffer %ld", - (long)ctx->left, (long)size); - - /* Fall through */ - case 1: - /* - * PHASE 1. - * From the place where we've left it previously, - * try to decode the next member from the list of - * this structure's elements. - * (ctx->step) stores the member being processed - * between invocations and the microphase {0,1} of parsing - * that member: - * step = ( * 2 + ). - */ - for(edx = ((size_t)ctx->step >> 1); edx < td->elements_count; - edx++, ctx->step = (ctx->step & ~1) + 2) { - void *memb_ptr; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ - ssize_t tag_len; /* Length of TLV's T */ - size_t opt_edx_end; /* Next non-optional element */ - size_t n; - int use_bsearch; - - if(ctx->step & 1) - goto microphase2; - - /* - * MICROPHASE 1: Synchronize decoding. - */ - ASN_DEBUG("In %s SEQUENCE left %d, edx=%" ASN_PRI_SIZE " flags=%d" - " opt=%d ec=%d", - td->name, (int)ctx->left, edx, - elements[edx].flags, elements[edx].optional, - td->elements_count); - - if(ctx->left == 0 /* No more stuff is expected */ - && ( - /* Explicit OPTIONAL specification reaches the end */ - (edx + elements[edx].optional == td->elements_count) || - /* All extensions are optional */ - IN_EXTENSION_GROUP(specs, edx))) { - ASN_DEBUG("End of SEQUENCE %s", td->name); - /* - * Found the legitimate end of the structure. - */ - PHASE_OUT(ctx); - RETURN(RC_OK); - } - - /* - * Fetch the T from TLV. - */ - tag_len = ber_fetch_tag(ptr, LEFT, &tlv_tag); - ASN_DEBUG("Current tag in %s SEQUENCE for element %" ASN_PRI_SIZE " " - "(%s) is %s encoded in %d bytes, of frame %ld", - td->name, edx, elements[edx].name, - ber_tlv_tag_string(tlv_tag), (int)tag_len, (long)LEFT); - switch(tag_len) { - case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); - /* Fall through */ - case -1: RETURN(RC_FAIL); - } - - if(ctx->left < 0 && ((const uint8_t *)ptr)[0] == 0) { - if(LEFT < 2) { - if(SIZE_VIOLATION) { - RETURN(RC_FAIL); - } else { - RETURN(RC_WMORE); - } - } else if(((const uint8_t *)ptr)[1] == 0) { - ASN_DEBUG("edx = %" ASN_PRI_SIZE ", opt = %d, ec=%d", edx, - elements[edx].optional, td->elements_count); - if((edx + elements[edx].optional == td->elements_count) - || IN_EXTENSION_GROUP(specs, edx)) { - /* - * Yeah, baby! Found the terminator - * of the indefinite length structure. - */ - /* - * Proceed to the canonical - * finalization function. - * No advancing is necessary. - */ - goto phase3; - } - } - } - - /* - * Find the next available type with this tag. - */ - use_bsearch = 0; - opt_edx_end = edx + elements[edx].optional + 1; - if(opt_edx_end > td->elements_count) - opt_edx_end = td->elements_count; /* Cap */ - else if(opt_edx_end - edx > 8) { - /* Limit the scope of linear search... */ - opt_edx_end = edx + 8; - use_bsearch = 1; - /* ... and resort to bsearch() */ - } - for(n = edx; n < opt_edx_end; n++) { - if(BER_TAGS_EQUAL(tlv_tag, elements[n].tag)) { - /* - * Found element corresponding to the tag - * being looked at. - * Reposition over the right element. - */ - edx = n; - ctx->step = 1 + 2 * edx; /* Remember! */ - goto microphase2; - } else if(elements[n].flags & ATF_ANY_TYPE) { - /* - * This is the ANY type, which may bear - * any flag whatsoever. - */ - edx = n; - ctx->step = 1 + 2 * edx; /* Remember! */ - goto microphase2; - } else if(elements[n].tag == (ber_tlv_tag_t)-1) { - use_bsearch = 1; - break; - } - } - if(use_bsearch) { - /* - * Resort to a binary search over - * sorted array of tags. - */ - const asn_TYPE_tag2member_t *t2m; - asn_TYPE_tag2member_t key = {0, 0, 0, 0}; - key.el_tag = tlv_tag; - key.el_no = edx; - t2m = (const asn_TYPE_tag2member_t *)bsearch(&key, - specs->tag2el, specs->tag2el_count, - sizeof(specs->tag2el[0]), _t2e_cmp); - if(t2m) { - const asn_TYPE_tag2member_t *best = 0; - const asn_TYPE_tag2member_t *t2m_f, *t2m_l; - size_t edx_max = edx + elements[edx].optional; - /* - * Rewind to the first element with that tag, - * `cause bsearch() does not guarantee order. - */ - t2m_f = t2m + t2m->toff_first; - t2m_l = t2m + t2m->toff_last; - for(t2m = t2m_f; t2m <= t2m_l; t2m++) { - if(t2m->el_no > edx_max) break; - if(t2m->el_no < edx) continue; - best = t2m; - } - if(best) { - edx = best->el_no; - ctx->step = 1 + 2 * edx; - goto microphase2; - } - } - n = opt_edx_end; - } - if(n == opt_edx_end) { - /* - * If tag is unknown, it may be either - * an unknown (thus, incorrect) tag, - * or an extension (...), - * or an end of the indefinite-length structure. - */ - if(!IN_EXTENSION_GROUP(specs, - edx + elements[edx].optional)) { - ASN_DEBUG("Unexpected tag %s (at %" ASN_PRI_SIZE ")", - ber_tlv_tag_string(tlv_tag), edx); - ASN_DEBUG("Expected tag %s (%s)%s", - ber_tlv_tag_string(elements[edx].tag), - elements[edx].name, - elements[edx].optional - ?" or alternatives":""); - RETURN(RC_FAIL); - } else { - /* Skip this tag */ - ssize_t skip; - edx += elements[edx].optional; - - ASN_DEBUG("Skipping unexpected %s (at %" ASN_PRI_SIZE ")", - ber_tlv_tag_string(tlv_tag), edx); - skip = ber_skip_length(opt_codec_ctx, - BER_TLV_CONSTRUCTED(ptr), - (const char *)ptr + tag_len, - LEFT - tag_len); - ASN_DEBUG("Skip length %d in %s", - (int)skip, td->name); - switch(skip) { - case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); - /* Fall through */ - case -1: RETURN(RC_FAIL); - } - - ADVANCE(skip + tag_len); - ctx->step -= 2; - edx--; - continue; /* Try again with the next tag */ - } - } - - /* - * MICROPHASE 2: Invoke the member-specific decoder. - */ - ctx->step |= 1; /* Confirm entering next microphase */ - microphase2: - ASN_DEBUG("Inside SEQUENCE %s MF2", td->name); - - /* - * Compute the position of the member inside a structure, - * and also a type of containment (it may be contained - * as pointer or using inline inclusion). - */ - if(elements[edx].flags & ATF_POINTER) { - /* Member is a pointer to another structure */ - memb_ptr2 = (void **)((char *)st + elements[edx].memb_offset); - } else { - /* - * A pointer to a pointer - * holding the start of the structure - */ - memb_ptr = (char *)st + elements[edx].memb_offset; - memb_ptr2 = &memb_ptr; - } - /* - * Invoke the member fetch routine according to member's type - */ - if(elements[edx].flags & ATF_OPEN_TYPE) { - rval = OPEN_TYPE_ber_get(opt_codec_ctx, td, st, &elements[edx], ptr, LEFT); - } else { - rval = elements[edx].type->op->ber_decoder(opt_codec_ctx, - elements[edx].type, - memb_ptr2, ptr, LEFT, - elements[edx].tag_mode); - } - ASN_DEBUG("In %s SEQUENCE decoded %" ASN_PRI_SIZE " %s of %d " - "in %d bytes rval.code %d, size=%d", - td->name, edx, elements[edx].type->name, - (int)LEFT, (int)rval.consumed, rval.code, (int)size); - switch(rval.code) { - case RC_OK: - break; - case RC_WMORE: /* More data expected */ - if(!SIZE_VIOLATION) { - ADVANCE(rval.consumed); - RETURN(RC_WMORE); - } - ASN_DEBUG("Size violation (c->l=%ld <= s=%ld)", - (long)ctx->left, (long)size); - /* Fall through */ - case RC_FAIL: /* Fatal error */ - RETURN(RC_FAIL); - } /* switch(rval) */ - - ADVANCE(rval.consumed); - } /* for(all structure members) */ - - phase3: - ctx->phase = 3; - /* Fall through */ - case 3: /* 00 and other tags expected */ - case 4: /* only 00's expected */ - - ASN_DEBUG("SEQUENCE %s Leftover: %ld, size = %ld", - td->name, (long)ctx->left, (long)size); - - /* - * Skip everything until the end of the SEQUENCE. - */ - while(ctx->left) { - ssize_t tl, ll; - - tl = ber_fetch_tag(ptr, LEFT, &tlv_tag); - switch(tl) { - case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); - /* Fall through */ - case -1: RETURN(RC_FAIL); - } - - /* - * If expected <0><0>... - */ - if(ctx->left < 0 - && ((const uint8_t *)ptr)[0] == 0) { - if(LEFT < 2) { - if(SIZE_VIOLATION) - RETURN(RC_FAIL); - else - RETURN(RC_WMORE); - } else if(((const uint8_t *)ptr)[1] == 0) { - /* - * Correctly finished with <0><0>. - */ - ADVANCE(2); - ctx->left++; - ctx->phase = 4; - continue; - } - } - - if(!IN_EXTENSION_GROUP(specs, td->elements_count) - || ctx->phase == 4) { - ASN_DEBUG("Unexpected continuation " - "of a non-extensible type " - "%s (SEQUENCE): %s", - td->name, - ber_tlv_tag_string(tlv_tag)); - RETURN(RC_FAIL); - } - - ll = ber_skip_length(opt_codec_ctx, - BER_TLV_CONSTRUCTED(ptr), - (const char *)ptr + tl, LEFT - tl); - switch(ll) { - case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); - /* Fall through */ - case -1: RETURN(RC_FAIL); - } - - ADVANCE(tl + ll); - } - - PHASE_OUT(ctx); - } - - RETURN(RC_OK); -} - - -/* - * The DER encoder of the SEQUENCE type. - */ -asn_enc_rval_t -SEQUENCE_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, - int tag_mode, ber_tlv_tag_t tag, - asn_app_consume_bytes_f *cb, void *app_key) { - size_t computed_size = 0; - asn_enc_rval_t erval; - ssize_t ret; - size_t edx; - - ASN_DEBUG("%s %s as SEQUENCE", - cb?"Encoding":"Estimating", td->name); - - /* - * Gather the length of the underlying members sequence. - */ - for(edx = 0; edx < td->elements_count; edx++) { - asn_TYPE_member_t *elm = &td->elements[edx]; - - const void *memb_ptr; /* Pointer to the member */ - const void *const *memb_ptr2; /* Pointer to that pointer */ - - if(elm->flags & ATF_POINTER) { - memb_ptr2 = - (const void *const *)((const char *)sptr + elm->memb_offset); - if(!*memb_ptr2) { - ASN_DEBUG("Element %s %" ASN_PRI_SIZE " not present", - elm->name, edx); - if(elm->optional) - continue; - /* Mandatory element is missing */ - ASN__ENCODE_FAILED; - } - } else { - memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); - memb_ptr2 = &memb_ptr; - } - - /* Eliminate default values */ - if(elm->default_value_cmp && elm->default_value_cmp(*memb_ptr2) == 0) - continue; - - erval = elm->type->op->der_encoder(elm->type, *memb_ptr2, - elm->tag_mode, elm->tag, - 0, 0); - if(erval.encoded == -1) - return erval; - computed_size += erval.encoded; - ASN_DEBUG("Member %" ASN_PRI_SIZE " %s estimated %ld bytes", - edx, elm->name, (long)erval.encoded); - } - - /* - * Encode the TLV for the sequence itself. - */ - ret = der_write_tags(td, computed_size, tag_mode, 1, tag, cb, app_key); - ASN_DEBUG("Wrote tags: %ld (+%ld)", (long)ret, (long)computed_size); - if(ret == -1) - ASN__ENCODE_FAILED; - erval.encoded = computed_size + ret; - - if(!cb) ASN__ENCODED_OK(erval); - - /* - * Encode all members. - */ - for(edx = 0; edx < td->elements_count; edx++) { - asn_TYPE_member_t *elm = &td->elements[edx]; - asn_enc_rval_t tmperval; - const void *memb_ptr; /* Pointer to the member */ - const void *const *memb_ptr2; /* Pointer to that pointer */ - - if(elm->flags & ATF_POINTER) { - memb_ptr2 = - (const void *const *)((const char *)sptr + elm->memb_offset); - if(!*memb_ptr2) continue; - } else { - memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); - memb_ptr2 = &memb_ptr; - } - - /* Eliminate default values */ - if(elm->default_value_cmp && elm->default_value_cmp(*memb_ptr2) == 0) - continue; - - tmperval = elm->type->op->der_encoder(elm->type, *memb_ptr2, - elm->tag_mode, elm->tag, cb, app_key); - if(tmperval.encoded == -1) - return tmperval; - computed_size -= tmperval.encoded; - ASN_DEBUG("Member %" ASN_PRI_SIZE " %s of SEQUENCE %s encoded in %ld bytes", - edx, elm->name, td->name, (long)tmperval.encoded); - } - - if(computed_size != 0) - /* - * Encoded size is not equal to the computed size. - */ - ASN__ENCODE_FAILED; - - ASN__ENCODED_OK(erval); -} - - -#undef XER_ADVANCE -#define XER_ADVANCE(num_bytes) \ - do { \ - size_t num = (num_bytes); \ - ptr = ((const char *)ptr) + num; \ - size -= num; \ - consumed_myself += num; \ - } while(0) - -/* - * Decode the XER (XML) data. - */ -asn_dec_rval_t -SEQUENCE_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **struct_ptr, - const char *opt_mname, const void *ptr, size_t size) { - /* - * Bring closer parts of structure description. - */ - const asn_SEQUENCE_specifics_t *specs - = (const asn_SEQUENCE_specifics_t *)td->specifics; - asn_TYPE_member_t *elements = td->elements; - const char *xml_tag = opt_mname ? opt_mname : td->xml_tag; - - /* - * ... and parts of the structure being constructed. - */ - void *st = *struct_ptr; /* Target structure. */ - asn_struct_ctx_t *ctx; /* Decoder context */ - - asn_dec_rval_t rval; /* Return value from a decoder */ - ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ - size_t edx; /* Element index */ - - /* - * Create the target structure if it is not present already. - */ - if(st == 0) { - st = *struct_ptr = CALLOC(1, specs->struct_size); - if(st == 0) RETURN(RC_FAIL); - } - - /* - * Restore parsing context. - */ - ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); - - - /* - * Phases of XER/XML processing: - * Phase 0: Check that the opening tag matches our expectations. - * Phase 1: Processing body and reacting on closing tag. - * Phase 2: Processing inner type. - * Phase 3: Skipping unknown extensions. - * Phase 4: PHASED OUT - */ - for(edx = ctx->step; ctx->phase <= 3;) { - pxer_chunk_type_e ch_type; /* XER chunk type */ - ssize_t ch_size; /* Chunk size */ - xer_check_tag_e tcv; /* Tag check value */ - asn_TYPE_member_t *elm; - - /* - * Go inside the inner member of a sequence. - */ - if(ctx->phase == 2) { - asn_dec_rval_t tmprval; - void *memb_ptr_dontuse; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ - - elm = &td->elements[edx]; - - if(elm->flags & ATF_POINTER) { - /* Member is a pointer to another structure */ - memb_ptr2 = (void **)((char *)st + elm->memb_offset); - } else { - memb_ptr_dontuse = (char *)st + elm->memb_offset; - memb_ptr2 = &memb_ptr_dontuse; /* Only use of memb_ptr_dontuse */ - } - - if(elm->flags & ATF_OPEN_TYPE) { - tmprval = OPEN_TYPE_xer_get(opt_codec_ctx, td, st, elm, ptr, size); - } else { - /* Invoke the inner type decoder, m.b. multiple times */ - tmprval = elm->type->op->xer_decoder(opt_codec_ctx, - elm->type, memb_ptr2, elm->name, - ptr, size); - } - XER_ADVANCE(tmprval.consumed); - if(tmprval.code != RC_OK) - RETURN(tmprval.code); - ctx->phase = 1; /* Back to body processing */ - ctx->step = ++edx; - ASN_DEBUG("XER/SEQUENCE phase => %d, step => %d", - ctx->phase, ctx->step); - /* Fall through */ - } - - /* - * Get the next part of the XML stream. - */ - ch_size = xer_next_token(&ctx->context, ptr, size, - &ch_type); - if(ch_size == -1) { - RETURN(RC_FAIL); - } else { - switch(ch_type) { - case PXER_WMORE: - RETURN(RC_WMORE); - case PXER_COMMENT: /* Got XML comment */ - case PXER_TEXT: /* Ignore free-standing text */ - XER_ADVANCE(ch_size); /* Skip silently */ - continue; - case PXER_TAG: - break; /* Check the rest down there */ - } - } - - tcv = xer_check_tag(ptr, ch_size, xml_tag); - ASN_DEBUG("XER/SEQUENCE: tcv = %d, ph=%d [%s]", - tcv, ctx->phase, xml_tag); - - /* Skip the extensions section */ - if(ctx->phase == 3) { - switch(xer_skip_unknown(tcv, &ctx->left)) { - case -1: - ctx->phase = 4; - RETURN(RC_FAIL); - case 0: - XER_ADVANCE(ch_size); - continue; - case 1: - XER_ADVANCE(ch_size); - ctx->phase = 1; - continue; - case 2: - ctx->phase = 1; - break; - } - } - - switch(tcv) { - case XCT_CLOSING: - if(ctx->phase == 0) break; - ctx->phase = 0; - /* Fall through */ - case XCT_BOTH: - if(ctx->phase == 0) { - if(edx >= td->elements_count || - /* Explicit OPTIONAL specs reaches the end */ - (edx + elements[edx].optional == td->elements_count) || - /* All extensions are optional */ - IN_EXTENSION_GROUP(specs, edx)) { - XER_ADVANCE(ch_size); - ctx->phase = 4; /* Phase out */ - RETURN(RC_OK); - } else { - ASN_DEBUG("Premature end of XER SEQUENCE"); - RETURN(RC_FAIL); - } - } - /* Fall through */ - case XCT_OPENING: - if(ctx->phase == 0) { - XER_ADVANCE(ch_size); - ctx->phase = 1; /* Processing body phase */ - continue; - } - /* Fall through */ - case XCT_UNKNOWN_OP: - case XCT_UNKNOWN_BO: - - ASN_DEBUG("XER/SEQUENCE: tcv=%d, ph=%d, edx=%" ASN_PRI_SIZE "", - tcv, ctx->phase, edx); - if(ctx->phase != 1) { - break; /* Really unexpected */ - } - - if(edx < td->elements_count) { - /* - * Search which member corresponds to this tag. - */ - size_t n; - size_t edx_end = edx + elements[edx].optional + 1; - if(edx_end > td->elements_count) - edx_end = td->elements_count; - for(n = edx; n < edx_end; n++) { - elm = &td->elements[n]; - tcv = xer_check_tag(ptr, ch_size, elm->name); - switch(tcv) { - case XCT_BOTH: - case XCT_OPENING: - /* - * Process this member. - */ - ctx->step = edx = n; - ctx->phase = 2; - break; - case XCT_UNKNOWN_OP: - case XCT_UNKNOWN_BO: - continue; - default: - n = edx_end; - break; /* Phase out */ - } - break; - } - if(n != edx_end) - continue; - } else { - ASN_DEBUG("Out of defined members: %" ASN_PRI_SIZE "/%u", - edx, td->elements_count); - } - - /* It is expected extension */ - if(IN_EXTENSION_GROUP(specs, - edx + (edx < td->elements_count - ? elements[edx].optional : 0))) { - ASN_DEBUG("Got anticipated extension at %" ASN_PRI_SIZE "", - edx); - /* - * Check for (XCT_BOTH or XCT_UNKNOWN_BO) - * By using a mask. Only record a pure - * tags. - */ - if(tcv & XCT_CLOSING) { - /* Found without body */ - } else { - ctx->left = 1; - ctx->phase = 3; /* Skip ...'s */ - } - XER_ADVANCE(ch_size); - continue; - } - - /* Fall through */ - default: - break; - } - - ASN_DEBUG("Unexpected XML tag in SEQUENCE [%c%c%c%c%c%c]", - size>0?((const char *)ptr)[0]:'.', - size>1?((const char *)ptr)[1]:'.', - size>2?((const char *)ptr)[2]:'.', - size>3?((const char *)ptr)[3]:'.', - size>4?((const char *)ptr)[4]:'.', - size>5?((const char *)ptr)[5]:'.'); - break; - } - - ctx->phase = 4; /* "Phase out" on hard failure */ - RETURN(RC_FAIL); -} - -asn_enc_rval_t -SEQUENCE_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - asn_enc_rval_t er; - int xcan = (flags & XER_F_CANONICAL); - asn_TYPE_descriptor_t *tmp_def_val_td = 0; - void *tmp_def_val = 0; - size_t edx; - - if(!sptr) ASN__ENCODE_FAILED; - - er.encoded = 0; - - for(edx = 0; edx < td->elements_count; edx++) { - asn_enc_rval_t tmper; - asn_TYPE_member_t *elm = &td->elements[edx]; - const void *memb_ptr; - const char *mname = elm->name; - unsigned int mlen = strlen(mname); - - if(elm->flags & ATF_POINTER) { - memb_ptr = - *(const void *const *)((const char *)sptr + elm->memb_offset); - if(!memb_ptr) { - assert(tmp_def_val == 0); - if(elm->default_value_set) { - if(elm->default_value_set(&tmp_def_val)) { - ASN__ENCODE_FAILED; - } else { - memb_ptr = tmp_def_val; - tmp_def_val_td = elm->type; - } - } else if(elm->optional) { - continue; - } else { - /* Mandatory element is missing */ - ASN__ENCODE_FAILED; - } - } - } else { - memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); - } - - if(!xcan) ASN__TEXT_INDENT(1, ilevel); - ASN__CALLBACK3("<", 1, mname, mlen, ">", 1); - - /* Print the member itself */ - tmper = elm->type->op->xer_encoder(elm->type, memb_ptr, ilevel + 1, - flags, cb, app_key); - if(tmp_def_val) { - ASN_STRUCT_FREE(*tmp_def_val_td, tmp_def_val); - tmp_def_val = 0; - } - if(tmper.encoded == -1) return tmper; - er.encoded += tmper.encoded; - - ASN__CALLBACK3("", 1); - } - - if(!xcan) ASN__TEXT_INDENT(1, ilevel - 1); - - ASN__ENCODED_OK(er); -cb_failed: - if(tmp_def_val) ASN_STRUCT_FREE(*tmp_def_val_td, tmp_def_val); - ASN__ENCODE_FAILED; -} - -int -SEQUENCE_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, - asn_app_consume_bytes_f *cb, void *app_key) { - size_t edx; - int ret; - - if(!sptr) return (cb("", 8, app_key) < 0) ? -1 : 0; - - /* Dump preamble */ - if(cb(td->name, strlen(td->name), app_key) < 0 - || cb(" ::= {", 6, app_key) < 0) - return -1; - - for(edx = 0; edx < td->elements_count; edx++) { - asn_TYPE_member_t *elm = &td->elements[edx]; - const void *memb_ptr; - - if(elm->flags & ATF_POINTER) { - memb_ptr = *(const void * const *)((const char *)sptr + elm->memb_offset); - if(!memb_ptr) { - if(elm->optional) continue; - /* Print line */ - /* Fall through */ - } - } else { - memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); - } - - /* Indentation */ - _i_INDENT(1); - - /* Print the member's name and stuff */ - if(cb(elm->name, strlen(elm->name), app_key) < 0 - || cb(": ", 2, app_key) < 0) - return -1; - - /* Print the member itself */ - ret = elm->type->op->print_struct(elm->type, memb_ptr, ilevel + 1, - cb, app_key); - if(ret) return ret; - } - - ilevel--; - _i_INDENT(1); - - return (cb("}", 1, app_key) < 0) ? -1 : 0; -} - -void -SEQUENCE_free(const asn_TYPE_descriptor_t *td, void *sptr, - enum asn_struct_free_method method) { - size_t edx; - const asn_SEQUENCE_specifics_t *specs = - (const asn_SEQUENCE_specifics_t *)td->specifics; - asn_struct_ctx_t *ctx; /* Decoder context */ - - if(!td || !sptr) - return; - - ASN_DEBUG("Freeing %s as SEQUENCE", td->name); - - for(edx = 0; edx < td->elements_count; edx++) { - asn_TYPE_member_t *elm = &td->elements[edx]; - void *memb_ptr; - if(elm->flags & ATF_POINTER) { - memb_ptr = *(void **)((char *)sptr + elm->memb_offset); - if(memb_ptr) - ASN_STRUCT_FREE(*elm->type, memb_ptr); - } else { - memb_ptr = (void *)((char *)sptr + elm->memb_offset); - ASN_STRUCT_FREE_CONTENTS_ONLY(*elm->type, memb_ptr); - } - } - - /* Clean parsing context */ - ctx = (asn_struct_ctx_t *)((char *)sptr + specs->ctx_offset); - FREEMEM(ctx->ptr); - - switch(method) { - case ASFM_FREE_EVERYTHING: - FREEMEM(sptr); - break; - case ASFM_FREE_UNDERLYING: - break; - case ASFM_FREE_UNDERLYING_AND_RESET: - memset( - sptr, 0, - ((const asn_SEQUENCE_specifics_t *)(td->specifics))->struct_size); - break; - } -} - -int -SEQUENCE_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - size_t edx; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - /* - * Iterate over structure members and check their validity. - */ - for(edx = 0; edx < td->elements_count; edx++) { - asn_TYPE_member_t *elm = &td->elements[edx]; - const void *memb_ptr; - - if(elm->flags & ATF_POINTER) { - memb_ptr = *(const void * const *)((const char *)sptr + elm->memb_offset); - if(!memb_ptr) { - if(elm->optional) - continue; - ASN__CTFAIL(app_key, td, sptr, - "%s: mandatory element %s absent (%s:%d)", - td->name, elm->name, __FILE__, __LINE__); - return -1; - } - } else { - memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); - } - - if(elm->encoding_constraints.general_constraints) { - int ret = elm->encoding_constraints.general_constraints(elm->type, memb_ptr, - ctfailcb, app_key); - if(ret) return ret; - } else { - return elm->type->encoding_constraints.general_constraints(elm->type, - memb_ptr, ctfailcb, app_key); - } - } - - return 0; -} - -#ifndef ASN_DISABLE_PER_SUPPORT - -asn_dec_rval_t -SEQUENCE_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, void **sptr, - asn_per_data_t *pd) { - const asn_SEQUENCE_specifics_t *specs = (const asn_SEQUENCE_specifics_t *)td->specifics; - void *st = *sptr; /* Target structure. */ - int extpresent; /* Extension additions are present */ - uint8_t *opres; /* Presence of optional root members */ - asn_per_data_t opmd; - asn_dec_rval_t rv; - size_t edx; - - (void)constraints; - - if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) - ASN__DECODE_FAILED; - - if(!st) { - st = *sptr = CALLOC(1, specs->struct_size); - if(!st) ASN__DECODE_FAILED; - } - - ASN_DEBUG("Decoding %s as SEQUENCE (UPER)", td->name); - - /* Handle extensions */ - if(specs->first_extension < 0) { - extpresent = 0; - } else { - extpresent = per_get_few_bits(pd, 1); - if(extpresent < 0) ASN__DECODE_STARVED; - } - - /* Prepare a place and read-in the presence bitmap */ - memset(&opmd, 0, sizeof(opmd)); - if(specs->roms_count) { - opres = (uint8_t *)MALLOC(((specs->roms_count + 7) >> 3) + 1); - if(!opres) ASN__DECODE_FAILED; - /* Get the presence map */ - if(per_get_many_bits(pd, opres, 0, specs->roms_count)) { - FREEMEM(opres); - ASN__DECODE_STARVED; - } - opmd.buffer = opres; - opmd.nbits = specs->roms_count; - ASN_DEBUG("Read in presence bitmap for %s of %d bits (%x..)", - td->name, specs->roms_count, *opres); - } else { - opres = 0; - } - - /* - * Get the sequence ROOT elements. - */ - for(edx = 0; - edx < (specs->first_extension < 0 ? td->elements_count - : (size_t)specs->first_extension); - edx++) { - asn_TYPE_member_t *elm = &td->elements[edx]; - void *memb_ptr; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ - - assert(!IN_EXTENSION_GROUP(specs, edx)); - - /* Fetch the pointer to this member */ - if(elm->flags & ATF_POINTER) { - memb_ptr2 = (void **)((char *)st + elm->memb_offset); - } else { - memb_ptr = (char *)st + elm->memb_offset; - memb_ptr2 = &memb_ptr; - } - - /* Deal with optionality */ - if(elm->optional) { - int present = per_get_few_bits(&opmd, 1); - ASN_DEBUG("Member %s->%s is optional, p=%d (%d->%d)", - td->name, elm->name, present, - (int)opmd.nboff, (int)opmd.nbits); - if(present == 0) { - /* This element is not present */ - if(elm->default_value_set) { - /* Fill-in DEFAULT */ - if(elm->default_value_set(memb_ptr2)) { - FREEMEM(opres); - ASN__DECODE_FAILED; - } - ASN_DEBUG("Filled-in default"); - } - /* The member is just not present */ - continue; - } - /* Fall through */ - } - - /* Fetch the member from the stream */ - ASN_DEBUG("Decoding member \"%s\" in %s", elm->name, td->name); - - if(elm->flags & ATF_OPEN_TYPE) { - rv = OPEN_TYPE_uper_get(opt_codec_ctx, td, st, elm, pd); - } else { - rv = elm->type->op->uper_decoder(opt_codec_ctx, elm->type, - elm->encoding_constraints.per_constraints, memb_ptr2, pd); - } - if(rv.code != RC_OK) { - ASN_DEBUG("Failed decode %s in %s", - elm->name, td->name); - FREEMEM(opres); - return rv; - } - } - - /* Optionality map is not needed anymore */ - FREEMEM(opres); - - /* - * Deal with extensions. - */ - if(extpresent) { - ssize_t bmlength; - uint8_t *epres; /* Presence of extension members */ - asn_per_data_t epmd; - - bmlength = uper_get_nslength(pd); - if(bmlength < 0) ASN__DECODE_STARVED; - - ASN_DEBUG("Extensions %" ASN_PRI_SSIZE " present in %s", bmlength, td->name); - - epres = (uint8_t *)MALLOC((bmlength + 15) >> 3); - if(!epres) ASN__DECODE_STARVED; - - /* Get the extensions map */ - if(per_get_many_bits(pd, epres, 0, bmlength)) { - FREEMEM(epres); - ASN__DECODE_STARVED; - } - - memset(&epmd, 0, sizeof(epmd)); - epmd.buffer = epres; - epmd.nbits = bmlength; - ASN_DEBUG("Read in extensions bitmap for %s of %ld bits (%x..)", - td->name, (long)bmlength, *epres); - - /* Go over extensions and read them in */ - for(edx = specs->first_extension; edx < td->elements_count; edx++) { - asn_TYPE_member_t *elm = &td->elements[edx]; - void *memb_ptr; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ - int present; - - /* Fetch the pointer to this member */ - if(elm->flags & ATF_POINTER) { - memb_ptr2 = (void **)((char *)st + elm->memb_offset); - } else { - memb_ptr = (void *)((char *)st + elm->memb_offset); - memb_ptr2 = &memb_ptr; - } - - present = per_get_few_bits(&epmd, 1); - if(present <= 0) { - if(present < 0) break; /* No more extensions */ - continue; - } - - ASN_DEBUG("Decoding member %s in %s %p", elm->name, td->name, - *memb_ptr2); - rv = uper_open_type_get(opt_codec_ctx, elm->type, - elm->encoding_constraints.per_constraints, - memb_ptr2, pd); - if(rv.code != RC_OK) { - FREEMEM(epres); - return rv; - } - } - - /* Skip over overflow extensions which aren't present - * in this system's version of the protocol */ - for(;;) { - ASN_DEBUG("Getting overflow extensions"); - switch(per_get_few_bits(&epmd, 1)) { - case -1: break; - case 0: continue; - default: - if(uper_open_type_skip(opt_codec_ctx, pd)) { - FREEMEM(epres); - ASN__DECODE_STARVED; - } - ASN_DEBUG("Skipped overflow extension"); - continue; - } - break; - } - - FREEMEM(epres); - } - - if(specs->first_extension >= 0) { - unsigned i; - /* Fill DEFAULT members in extensions */ - for(i = specs->roms_count; i < specs->roms_count + specs->aoms_count; - i++) { - asn_TYPE_member_t *elm; - void **memb_ptr2; /* Pointer to member pointer */ - - edx = specs->oms[i]; - elm = &td->elements[edx]; - - if(!elm->default_value_set) continue; - - /* Fetch the pointer to this member */ - if(elm->flags & ATF_POINTER) { - memb_ptr2 = (void **)((char *)st + elm->memb_offset); - if(*memb_ptr2) continue; - } else { - continue; /* Extensions are all optionals */ - } - - /* Set default value */ - if(elm->default_value_set(memb_ptr2)) { - ASN__DECODE_FAILED; - } - } - } - - rv.consumed = 0; - rv.code = RC_OK; - return rv; -} - -static int -SEQUENCE__handle_extensions(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_per_outp_t *po1, asn_per_outp_t *po2) { - const asn_SEQUENCE_specifics_t *specs = - (const asn_SEQUENCE_specifics_t *)td->specifics; - int exts_present = 0; - int exts_count = 0; - size_t edx; - - if(specs->first_extension < 0) { - return 0; - } - - /* Find out which extensions are present */ - for(edx = specs->first_extension; edx < td->elements_count; edx++) { - asn_TYPE_member_t *elm = &td->elements[edx]; - const void *memb_ptr; /* Pointer to the member */ - const void *const *memb_ptr2; /* Pointer to that pointer */ - int present; - - /* Fetch the pointer to this member */ - if(elm->flags & ATF_POINTER) { - memb_ptr2 = - (const void *const *)((const char *)sptr + elm->memb_offset); - present = (*memb_ptr2 != 0); - } else { - memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); - memb_ptr2 = &memb_ptr; - present = 1; - } - - ASN_DEBUG("checking %s:%s (@%" ASN_PRI_SIZE ") present => %d", elm->name, - elm->type->name, edx, present); - exts_count++; - exts_present += present; - - /* Encode as presence marker */ - if(po1 && per_put_few_bits(po1, present, 1)) { - return -1; - } - /* Encode as open type field */ - if(po2 && present - && uper_open_type_put(elm->type, - elm->encoding_constraints.per_constraints, - *memb_ptr2, po2)) - return -1; - } - - return exts_present ? exts_count : 0; -} - -asn_enc_rval_t -SEQUENCE_encode_uper(const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, const void *sptr, - asn_per_outp_t *po) { - const asn_SEQUENCE_specifics_t *specs - = (const asn_SEQUENCE_specifics_t *)td->specifics; - asn_enc_rval_t er; - int n_extensions; - size_t edx; - size_t i; - - (void)constraints; - - if(!sptr) - ASN__ENCODE_FAILED; - - er.encoded = 0; - - ASN_DEBUG("Encoding %s as SEQUENCE (UPER)", td->name); - - /* - * X.691#18.1 Whether structure is extensible - * and whether to encode extensions - */ - if(specs->first_extension < 0) { - n_extensions = 0; /* There are no extensions to encode */ - } else { - n_extensions = SEQUENCE__handle_extensions(td, sptr, 0, 0); - if(n_extensions < 0) ASN__ENCODE_FAILED; - if(per_put_few_bits(po, n_extensions ? 1 : 0, 1)) { - ASN__ENCODE_FAILED; - } - } - - /* Encode a presence bitmap */ - for(i = 0; i < specs->roms_count; i++) { - asn_TYPE_member_t *elm; - const void *memb_ptr; /* Pointer to the member */ - const void *const *memb_ptr2; /* Pointer to that pointer */ - int present; - - edx = specs->oms[i]; - elm = &td->elements[edx]; - - /* Fetch the pointer to this member */ - if(elm->flags & ATF_POINTER) { - memb_ptr2 = - (const void *const *)((const char *)sptr + elm->memb_offset); - present = (*memb_ptr2 != 0); - } else { - memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); - memb_ptr2 = &memb_ptr; - present = 1; - } - - /* Eliminate default values */ - if(present && elm->default_value_cmp - && elm->default_value_cmp(*memb_ptr2) == 0) - present = 0; - - ASN_DEBUG("Element %s %s %s->%s is %s", - elm->flags & ATF_POINTER ? "ptr" : "inline", - elm->default_value_cmp ? "def" : "wtv", - td->name, elm->name, present ? "present" : "absent"); - if(per_put_few_bits(po, present, 1)) - ASN__ENCODE_FAILED; - } - - /* - * Encode the sequence ROOT elements. - */ - ASN_DEBUG("first_extension = %d, elements = %d", specs->first_extension, - td->elements_count); - for(edx = 0; - edx < ((specs->first_extension < 0) ? td->elements_count - : (size_t)specs->first_extension); - edx++) { - asn_TYPE_member_t *elm = &td->elements[edx]; - const void *memb_ptr; /* Pointer to the member */ - const void *const *memb_ptr2; /* Pointer to that pointer */ - - ASN_DEBUG("About to encode %s", elm->type->name); - - /* Fetch the pointer to this member */ - if(elm->flags & ATF_POINTER) { - memb_ptr2 = - (const void *const *)((const char *)sptr + elm->memb_offset); - if(!*memb_ptr2) { - ASN_DEBUG("Element %s %" ASN_PRI_SIZE " not present", - elm->name, edx); - if(elm->optional) - continue; - /* Mandatory element is missing */ - ASN__ENCODE_FAILED; - } - } else { - memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); - memb_ptr2 = &memb_ptr; - } - - /* Eliminate default values */ - if(elm->default_value_cmp && elm->default_value_cmp(*memb_ptr2) == 0) - continue; - - ASN_DEBUG("Encoding %s->%s:%s", td->name, elm->name, elm->type->name); - er = elm->type->op->uper_encoder( - elm->type, elm->encoding_constraints.per_constraints, *memb_ptr2, - po); - if(er.encoded == -1) return er; - } - - /* No extensions to encode */ - if(!n_extensions) ASN__ENCODED_OK(er); - - ASN_DEBUG("Length of extensions %d bit-map", n_extensions); - /* #18.8. Write down the presence bit-map length. */ - if(uper_put_nslength(po, n_extensions)) - ASN__ENCODE_FAILED; - - ASN_DEBUG("Bit-map of %d elements", n_extensions); - /* #18.7. Encoding the extensions presence bit-map. */ - /* TODO: act upon NOTE in #18.7 for canonical PER */ - if(SEQUENCE__handle_extensions(td, sptr, po, 0) != n_extensions) - ASN__ENCODE_FAILED; - - ASN_DEBUG("Writing %d extensions", n_extensions); - /* #18.9. Encode extensions as open type fields. */ - if(SEQUENCE__handle_extensions(td, sptr, 0, po) != n_extensions) - ASN__ENCODE_FAILED; - - ASN__ENCODED_OK(er); -} - -#endif /* ASN_DISABLE_PER_SUPPORT */ - -int -SEQUENCE_compare(const asn_TYPE_descriptor_t *td, const void *aptr, - const void *bptr) { - size_t edx; - - for(edx = 0; edx < td->elements_count; edx++) { - asn_TYPE_member_t *elm = &td->elements[edx]; - const void *amemb; - const void *bmemb; - int ret; - - if(elm->flags & ATF_POINTER) { - amemb = - *(const void *const *)((const char *)aptr + elm->memb_offset); - bmemb = - *(const void *const *)((const char *)bptr + elm->memb_offset); - if(!amemb) { - if(!bmemb) continue; - if(elm->default_value_cmp - && elm->default_value_cmp(bmemb) == 0) { - /* A is absent, but B is present and equal to DEFAULT */ - continue; - } - return -1; - } else if(!bmemb) { - if(elm->default_value_cmp - && elm->default_value_cmp(amemb) == 0) { - /* B is absent, but A is present and equal to DEFAULT */ - continue; - } - return 1; - } - } else { - amemb = (const void *)((const char *)aptr + elm->memb_offset); - bmemb = (const void *)((const char *)bptr + elm->memb_offset); - } - - ret = elm->type->op->compare_struct(elm->type, amemb, bmemb); - if(ret != 0) return ret; - } - - return 0; -} - -asn_TYPE_operation_t asn_OP_SEQUENCE = { - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_compare, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, -#ifdef ASN_DISABLE_OER_SUPPORT - 0, - 0, -#else - SEQUENCE_decode_oer, - SEQUENCE_encode_oer, -#endif /* ASN_DISABLE_OER_SUPPORT */ -#ifdef ASN_DISABLE_PER_SUPPORT - 0, - 0, -#else - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, -#endif /* ASN_DISABLE_PER_SUPPORT */ - SEQUENCE_random_fill, - 0 /* Use generic outmost tag fetcher */ -}; - - -asn_random_fill_result_t -SEQUENCE_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constr, - size_t max_length) { - const asn_SEQUENCE_specifics_t *specs = - (const asn_SEQUENCE_specifics_t *)td->specifics; - asn_random_fill_result_t result_ok = {ARFILL_OK, 0}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - void *st = *sptr; - size_t edx; - - if(max_length == 0) return result_skipped; - - (void)constr; - - if(st == NULL) { - st = CALLOC(1, specs->struct_size); - if(st == NULL) { - return result_failed; - } - } - - for(edx = 0; edx < td->elements_count; edx++) { - const asn_TYPE_member_t *elm = &td->elements[edx]; - void *memb_ptr; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ - asn_random_fill_result_t tmpres; - - if(elm->optional && asn_random_between(0, 4) == 2) { - /* Sometimes decide not to fill the optional value */ - continue; - } - - if(elm->flags & ATF_POINTER) { - /* Member is a pointer to another structure */ - memb_ptr2 = (void **)((char *)st + elm->memb_offset); - } else { - memb_ptr = (char *)st + elm->memb_offset; - memb_ptr2 = &memb_ptr; - } - - tmpres = elm->type->op->random_fill( - elm->type, memb_ptr2, &elm->encoding_constraints, - max_length > result_ok.length ? max_length - result_ok.length : 0); - switch(tmpres.code) { - case ARFILL_OK: - result_ok.length += tmpres.length; - continue; - case ARFILL_SKIPPED: - assert(!(elm->flags & ATF_POINTER) || *memb_ptr2 == NULL); - continue; - case ARFILL_FAILED: - if(st == *sptr) { - ASN_STRUCT_RESET(*td, st); - } else { - ASN_STRUCT_FREE(*td, st); - } - return tmpres; - } - } - - *sptr = st; - - return result_ok; -} - diff --git a/asn.1/generated/constr_SEQUENCE.h b/asn.1/generated/constr_SEQUENCE.h deleted file mode 100644 index f9dd4e5e..00000000 --- a/asn.1/generated/constr_SEQUENCE.h +++ /dev/null @@ -1,66 +0,0 @@ -/*- - * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef _CONSTR_SEQUENCE_H_ -#define _CONSTR_SEQUENCE_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct asn_SEQUENCE_specifics_s { - /* - * Target structure description. - */ - unsigned struct_size; /* Size of the target structure. */ - unsigned ctx_offset; /* Offset of the asn_struct_ctx_t member */ - - /* - * Tags to members mapping table (sorted). - */ - const asn_TYPE_tag2member_t *tag2el; - unsigned tag2el_count; - - /* - * Optional members of the extensions root (roms) or additions (aoms). - * Meaningful for PER. - */ - const int *oms; /* Optional MemberS */ - unsigned roms_count; /* Root optional members count */ - unsigned aoms_count; /* Additions optional members count */ - - /* - * Description of an extensions group. - * Root components are clustered at the beginning of the structure, - * whereas extensions are clustered at the end. -1 means not extensible. - */ - signed first_extension; /* First extension addition */ -} asn_SEQUENCE_specifics_t; - - -/* - * A set specialized functions dealing with the SEQUENCE type. - */ -asn_struct_free_f SEQUENCE_free; -asn_struct_print_f SEQUENCE_print; -asn_struct_compare_f SEQUENCE_compare; -asn_constr_check_f SEQUENCE_constraint; -ber_type_decoder_f SEQUENCE_decode_ber; -der_type_encoder_f SEQUENCE_encode_der; -xer_type_decoder_f SEQUENCE_decode_xer; -xer_type_encoder_f SEQUENCE_encode_xer; -oer_type_decoder_f SEQUENCE_decode_oer; -oer_type_encoder_f SEQUENCE_encode_oer; -per_type_decoder_f SEQUENCE_decode_uper; -per_type_encoder_f SEQUENCE_encode_uper; -asn_random_fill_f SEQUENCE_random_fill; -extern asn_TYPE_operation_t asn_OP_SEQUENCE; - -#ifdef __cplusplus -} -#endif - -#endif /* _CONSTR_SEQUENCE_H_ */ diff --git a/asn.1/generated/constr_SEQUENCE_OF.c b/asn.1/generated/constr_SEQUENCE_OF.c deleted file mode 100644 index 2ed626fa..00000000 --- a/asn.1/generated/constr_SEQUENCE_OF.c +++ /dev/null @@ -1,284 +0,0 @@ -/*- - * Copyright (c) 2003, 2004, 2006 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include -#include - -/* - * The DER encoder of the SEQUENCE OF type. - */ -asn_enc_rval_t -SEQUENCE_OF_encode_der(const asn_TYPE_descriptor_t *td, const void *ptr, - int tag_mode, ber_tlv_tag_t tag, - asn_app_consume_bytes_f *cb, void *app_key) { - asn_TYPE_member_t *elm = td->elements; - const asn_anonymous_sequence_ *list = _A_CSEQUENCE_FROM_VOID(ptr); - size_t computed_size = 0; - ssize_t encoding_size = 0; - asn_enc_rval_t erval; - int edx; - - ASN_DEBUG("Estimating size of SEQUENCE OF %s", td->name); - - /* - * Gather the length of the underlying members sequence. - */ - for(edx = 0; edx < list->count; edx++) { - void *memb_ptr = list->array[edx]; - if(!memb_ptr) continue; - erval = elm->type->op->der_encoder(elm->type, memb_ptr, - 0, elm->tag, - 0, 0); - if(erval.encoded == -1) - return erval; - computed_size += erval.encoded; - } - - /* - * Encode the TLV for the sequence itself. - */ - encoding_size = der_write_tags(td, computed_size, tag_mode, 1, tag, - cb, app_key); - if(encoding_size == -1) { - erval.encoded = -1; - erval.failed_type = td; - erval.structure_ptr = ptr; - return erval; - } - - computed_size += encoding_size; - if(!cb) { - erval.encoded = computed_size; - ASN__ENCODED_OK(erval); - } - - ASN_DEBUG("Encoding members of SEQUENCE OF %s", td->name); - - /* - * Encode all members. - */ - for(edx = 0; edx < list->count; edx++) { - void *memb_ptr = list->array[edx]; - if(!memb_ptr) continue; - erval = elm->type->op->der_encoder(elm->type, memb_ptr, - 0, elm->tag, - cb, app_key); - if(erval.encoded == -1) - return erval; - encoding_size += erval.encoded; - } - - if(computed_size != (size_t)encoding_size) { - /* - * Encoded size is not equal to the computed size. - */ - erval.encoded = -1; - erval.failed_type = td; - erval.structure_ptr = ptr; - } else { - erval.encoded = computed_size; - erval.structure_ptr = 0; - erval.failed_type = 0; - } - - return erval; -} - -asn_enc_rval_t -SEQUENCE_OF_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - asn_enc_rval_t er; - const asn_SET_OF_specifics_t *specs = (const asn_SET_OF_specifics_t *)td->specifics; - const asn_TYPE_member_t *elm = td->elements; - const asn_anonymous_sequence_ *list = _A_CSEQUENCE_FROM_VOID(sptr); - const char *mname = specs->as_XMLValueList - ? 0 - : ((*elm->name) ? elm->name : elm->type->xml_tag); - size_t mlen = mname ? strlen(mname) : 0; - int xcan = (flags & XER_F_CANONICAL); - int i; - - if(!sptr) ASN__ENCODE_FAILED; - - er.encoded = 0; - - for(i = 0; i < list->count; i++) { - asn_enc_rval_t tmper; - void *memb_ptr = list->array[i]; - if(!memb_ptr) continue; - - if(mname) { - if(!xcan) ASN__TEXT_INDENT(1, ilevel); - ASN__CALLBACK3("<", 1, mname, mlen, ">", 1); - } - - tmper = elm->type->op->xer_encoder(elm->type, memb_ptr, ilevel + 1, - flags, cb, app_key); - if(tmper.encoded == -1) return tmper; - er.encoded += tmper.encoded; - if(tmper.encoded == 0 && specs->as_XMLValueList) { - const char *name = elm->type->xml_tag; - size_t len = strlen(name); - if(!xcan) ASN__TEXT_INDENT(1, ilevel + 1); - ASN__CALLBACK3("<", 1, name, len, "/>", 2); - } - - if(mname) { - ASN__CALLBACK3("", 1); - } - } - - if(!xcan) ASN__TEXT_INDENT(1, ilevel - 1); - - ASN__ENCODED_OK(er); -cb_failed: - ASN__ENCODE_FAILED; -} - -#ifndef ASN_DISABLE_PER_SUPPORT - -asn_enc_rval_t -SEQUENCE_OF_encode_uper(const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, - const void *sptr, asn_per_outp_t *po) { - const asn_anonymous_sequence_ *list; - const asn_per_constraint_t *ct; - asn_enc_rval_t er; - const asn_TYPE_member_t *elm = td->elements; - size_t encoded_edx; - - if(!sptr) ASN__ENCODE_FAILED; - list = _A_CSEQUENCE_FROM_VOID(sptr); - - er.encoded = 0; - - ASN_DEBUG("Encoding %s as SEQUENCE OF (%d)", td->name, list->count); - - if(constraints) ct = &constraints->size; - else if(td->encoding_constraints.per_constraints) - ct = &td->encoding_constraints.per_constraints->size; - else ct = 0; - - /* If extensible constraint, check if size is in root */ - if(ct) { - int not_in_root = - (list->count < ct->lower_bound || list->count > ct->upper_bound); - ASN_DEBUG("lb %"ASN_PRIdMAX" ub %"ASN_PRIdMAX" %s", ct->lower_bound, ct->upper_bound, - ct->flags & APC_EXTENSIBLE ? "ext" : "fix"); - if(ct->flags & APC_EXTENSIBLE) { - /* Declare whether size is in extension root */ - if(per_put_few_bits(po, not_in_root, 1)) ASN__ENCODE_FAILED; - if(not_in_root) ct = 0; - } else if(not_in_root && ct->effective_bits >= 0) { - ASN__ENCODE_FAILED; - } - - } - - if(ct && ct->effective_bits >= 0) { - /* X.691, #19.5: No length determinant */ - if(per_put_few_bits(po, list->count - ct->lower_bound, - ct->effective_bits)) - ASN__ENCODE_FAILED; - } else if(list->count == 0) { - /* When the list is empty add only the length determinant - * X.691, #20.6 and #11.9.4.1 - */ - if (uper_put_length(po, 0, 0)) { - ASN__ENCODE_FAILED; - } - ASN__ENCODED_OK(er); - } - - for(encoded_edx = 0; (ssize_t)encoded_edx < list->count;) { - ssize_t may_encode; - size_t edx; - int need_eom = 0; - - if(ct && ct->effective_bits >= 0) { - may_encode = list->count; - } else { - may_encode = - uper_put_length(po, list->count - encoded_edx, &need_eom); - if(may_encode < 0) ASN__ENCODE_FAILED; - } - - for(edx = encoded_edx; edx < encoded_edx + may_encode; edx++) { - void *memb_ptr = list->array[edx]; - if(!memb_ptr) ASN__ENCODE_FAILED; - er = elm->type->op->uper_encoder( - elm->type, elm->encoding_constraints.per_constraints, memb_ptr, - po); - if(er.encoded == -1) ASN__ENCODE_FAILED; - } - - if(need_eom && uper_put_length(po, 0, 0)) - ASN__ENCODE_FAILED; /* End of Message length */ - - encoded_edx += may_encode; - } - - ASN__ENCODED_OK(er); -} - -#endif /* ASN_DISABLE_PER_SUPPORT */ - -int -SEQUENCE_OF_compare(const asn_TYPE_descriptor_t *td, const void *aptr, - const void *bptr) { - const asn_anonymous_sequence_ *a = _A_CSEQUENCE_FROM_VOID(aptr); - const asn_anonymous_sequence_ *b = _A_CSEQUENCE_FROM_VOID(bptr); - ssize_t idx; - - if(a && b) { - ssize_t common_length = (a->count < b->count ? a->count : b->count); - for(idx = 0; idx < common_length; idx++) { - int ret = td->elements->type->op->compare_struct( - td->elements->type, a->array[idx], b->array[idx]); - if(ret) return ret; - } - - if(idx < b->count) /* more elements in b */ - return -1; /* a is shorter, so put it first */ - if(idx < a->count) return 1; - - } else if(!a) { - return -1; - } else if(!b) { - return 1; - } - - return 0; -} - - -asn_TYPE_operation_t asn_OP_SEQUENCE_OF = { - SEQUENCE_OF_free, - SEQUENCE_OF_print, - SEQUENCE_OF_compare, - SEQUENCE_OF_decode_ber, - SEQUENCE_OF_encode_der, - SEQUENCE_OF_decode_xer, - SEQUENCE_OF_encode_xer, -#ifdef ASN_DISABLE_OER_SUPPORT - 0, - 0, -#else - SEQUENCE_OF_decode_oer, /* Same as SET OF decoder. */ - SEQUENCE_OF_encode_oer, /* Same as SET OF encoder */ -#endif /* ASN_DISABLE_OER_SUPPORT */ -#ifdef ASN_DISABLE_PER_SUPPORT - 0, - 0, -#else - SEQUENCE_OF_decode_uper, /* Same as SET OF decoder */ - SEQUENCE_OF_encode_uper, -#endif /* ASN_DISABLE_PER_SUPPORT */ - SEQUENCE_OF_random_fill, - 0 /* Use generic outmost tag fetcher */ -}; - diff --git a/asn.1/generated/constr_SEQUENCE_OF.h b/asn.1/generated/constr_SEQUENCE_OF.h deleted file mode 100644 index f21b91e1..00000000 --- a/asn.1/generated/constr_SEQUENCE_OF.h +++ /dev/null @@ -1,39 +0,0 @@ -/*- - * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef _CONSTR_SEQUENCE_OF_H_ -#define _CONSTR_SEQUENCE_OF_H_ - -#include -#include /* Implemented using SET OF */ - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * A set specialized functions dealing with the SEQUENCE OF type. - * Generally implemented using SET OF. - */ -asn_struct_compare_f SEQUENCE_OF_compare; -der_type_encoder_f SEQUENCE_OF_encode_der; -xer_type_encoder_f SEQUENCE_OF_encode_xer; -per_type_encoder_f SEQUENCE_OF_encode_uper; -extern asn_TYPE_operation_t asn_OP_SEQUENCE_OF; - -#define SEQUENCE_OF_free SET_OF_free -#define SEQUENCE_OF_print SET_OF_print -#define SEQUENCE_OF_constraint SET_OF_constraint -#define SEQUENCE_OF_decode_ber SET_OF_decode_ber -#define SEQUENCE_OF_decode_xer SET_OF_decode_xer -#define SEQUENCE_OF_decode_uper SET_OF_decode_uper -#define SEQUENCE_OF_decode_oer SET_OF_decode_oer -#define SEQUENCE_OF_encode_oer SET_OF_encode_oer -#define SEQUENCE_OF_random_fill SET_OF_random_fill - -#ifdef __cplusplus -} -#endif - -#endif /* _CONSTR_SET_OF_H_ */ diff --git a/asn.1/generated/constr_SET_OF.c b/asn.1/generated/constr_SET_OF.c deleted file mode 100644 index a53b71f6..00000000 --- a/asn.1/generated/constr_SET_OF.c +++ /dev/null @@ -1,1348 +0,0 @@ -/* - * Copyright (c) 2003-2017 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include -#include - -/* - * Number of bytes left for this structure. - * (ctx->left) indicates the number of bytes _transferred_ for the structure. - * (size) contains the number of bytes in the buffer passed. - */ -#define LEFT ((size<(size_t)ctx->left)?size:(size_t)ctx->left) - -/* - * If the subprocessor function returns with an indication that it wants - * more data, it may well be a fatal decoding problem, because the - * size is constrained by the 's L, even if the buffer size allows - * reading more data. - * For example, consider the buffer containing the following TLVs: - * ... - * The TLV length clearly indicates that one byte is expected in V, but - * if the V processor returns with "want more data" even if the buffer - * contains way more data than the V processor have seen. - */ -#define SIZE_VIOLATION (ctx->left >= 0 && (size_t)ctx->left <= size) - -/* - * This macro "eats" the part of the buffer which is definitely "consumed", - * i.e. was correctly converted into local representation or rightfully skipped. - */ -#undef ADVANCE -#define ADVANCE(num_bytes) do { \ - size_t num = num_bytes; \ - ptr = ((const char *)ptr) + num;\ - size -= num; \ - if(ctx->left >= 0) \ - ctx->left -= num; \ - consumed_myself += num; \ - } while(0) - -/* - * Switch to the next phase of parsing. - */ -#undef NEXT_PHASE -#undef PHASE_OUT -#define NEXT_PHASE(ctx) do { \ - ctx->phase++; \ - ctx->step = 0; \ - } while(0) -#define PHASE_OUT(ctx) do { ctx->phase = 10; } while(0) - -/* - * Return a standardized complex structure. - */ -#undef RETURN -#define RETURN(_code) do { \ - rval.code = _code; \ - rval.consumed = consumed_myself;\ - return rval; \ - } while(0) - -/* - * The decoder of the SET OF type. - */ -asn_dec_rval_t -SET_OF_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **struct_ptr, - const void *ptr, size_t size, int tag_mode) { - /* - * Bring closer parts of structure description. - */ - const asn_SET_OF_specifics_t *specs = (const asn_SET_OF_specifics_t *)td->specifics; - const asn_TYPE_member_t *elm = td->elements; /* Single one */ - - /* - * Parts of the structure being constructed. - */ - void *st = *struct_ptr; /* Target structure. */ - asn_struct_ctx_t *ctx; /* Decoder context */ - - ber_tlv_tag_t tlv_tag; /* T from TLV */ - asn_dec_rval_t rval; /* Return code from subparsers */ - - ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ - - ASN_DEBUG("Decoding %s as SET OF", td->name); - - /* - * Create the target structure if it is not present already. - */ - if(st == 0) { - st = *struct_ptr = CALLOC(1, specs->struct_size); - if(st == 0) { - RETURN(RC_FAIL); - } - } - - /* - * Restore parsing context. - */ - ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); - - /* - * Start to parse where left previously - */ - switch(ctx->phase) { - case 0: - /* - * PHASE 0. - * Check that the set of tags associated with given structure - * perfectly fits our expectations. - */ - - rval = ber_check_tags(opt_codec_ctx, td, ctx, ptr, size, - tag_mode, 1, &ctx->left, 0); - if(rval.code != RC_OK) { - ASN_DEBUG("%s tagging check failed: %d", - td->name, rval.code); - return rval; - } - - if(ctx->left >= 0) - ctx->left += rval.consumed; /* ?Substracted below! */ - ADVANCE(rval.consumed); - - ASN_DEBUG("Structure consumes %ld bytes, " - "buffer %ld", (long)ctx->left, (long)size); - - NEXT_PHASE(ctx); - /* Fall through */ - case 1: - /* - * PHASE 1. - * From the place where we've left it previously, - * try to decode the next item. - */ - for(;; ctx->step = 0) { - ssize_t tag_len; /* Length of TLV's T */ - - if(ctx->step & 1) - goto microphase2; - - /* - * MICROPHASE 1: Synchronize decoding. - */ - - if(ctx->left == 0) { - ASN_DEBUG("End of SET OF %s", td->name); - /* - * No more things to decode. - * Exit out of here. - */ - PHASE_OUT(ctx); - RETURN(RC_OK); - } - - /* - * Fetch the T from TLV. - */ - tag_len = ber_fetch_tag(ptr, LEFT, &tlv_tag); - switch(tag_len) { - case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); - /* Fall through */ - case -1: RETURN(RC_FAIL); - } - - if(ctx->left < 0 && ((const uint8_t *)ptr)[0] == 0) { - if(LEFT < 2) { - if(SIZE_VIOLATION) - RETURN(RC_FAIL); - else - RETURN(RC_WMORE); - } else if(((const uint8_t *)ptr)[1] == 0) { - /* - * Found the terminator of the - * indefinite length structure. - */ - break; - } - } - - /* Outmost tag may be unknown and cannot be fetched/compared */ - if(elm->tag != (ber_tlv_tag_t)-1) { - if(BER_TAGS_EQUAL(tlv_tag, elm->tag)) { - /* - * The new list member of expected type has arrived. - */ - } else { - ASN_DEBUG("Unexpected tag %s fixed SET OF %s", - ber_tlv_tag_string(tlv_tag), td->name); - ASN_DEBUG("%s SET OF has tag %s", - td->name, ber_tlv_tag_string(elm->tag)); - RETURN(RC_FAIL); - } - } - - /* - * MICROPHASE 2: Invoke the member-specific decoder. - */ - ctx->step |= 1; /* Confirm entering next microphase */ - microphase2: - - /* - * Invoke the member fetch routine according to member's type - */ - rval = elm->type->op->ber_decoder(opt_codec_ctx, - elm->type, &ctx->ptr, ptr, LEFT, 0); - ASN_DEBUG("In %s SET OF %s code %d consumed %d", - td->name, elm->type->name, - rval.code, (int)rval.consumed); - switch(rval.code) { - case RC_OK: - { - asn_anonymous_set_ *list = _A_SET_FROM_VOID(st); - if(ASN_SET_ADD(list, ctx->ptr) != 0) - RETURN(RC_FAIL); - else - ctx->ptr = 0; - } - break; - case RC_WMORE: /* More data expected */ - if(!SIZE_VIOLATION) { - ADVANCE(rval.consumed); - RETURN(RC_WMORE); - } - /* Fall through */ - case RC_FAIL: /* Fatal error */ - ASN_STRUCT_FREE(*elm->type, ctx->ptr); - ctx->ptr = 0; - RETURN(RC_FAIL); - } /* switch(rval) */ - - ADVANCE(rval.consumed); - } /* for(all list members) */ - - NEXT_PHASE(ctx); - case 2: - /* - * Read in all "end of content" TLVs. - */ - while(ctx->left < 0) { - if(LEFT < 2) { - if(LEFT > 0 && ((const char *)ptr)[0] != 0) { - /* Unexpected tag */ - RETURN(RC_FAIL); - } else { - RETURN(RC_WMORE); - } - } - if(((const char *)ptr)[0] == 0 - && ((const char *)ptr)[1] == 0) { - ADVANCE(2); - ctx->left++; - } else { - RETURN(RC_FAIL); - } - } - - PHASE_OUT(ctx); - } - - RETURN(RC_OK); -} - -/* - * Internally visible buffer holding a single encoded element. - */ -struct _el_buffer { - uint8_t *buf; - size_t length; - size_t allocated_size; - unsigned bits_unused; -}; -/* Append bytes to the above structure */ -static int _el_addbytes(const void *buffer, size_t size, void *el_buf_ptr) { - struct _el_buffer *el_buf = (struct _el_buffer *)el_buf_ptr; - - if(el_buf->length + size > el_buf->allocated_size) { - size_t new_size = el_buf->allocated_size ? el_buf->allocated_size : 8; - void *p; - - do { - new_size <<= 2; - } while(el_buf->length + size > new_size); - - p = REALLOC(el_buf->buf, new_size); - if(p) { - el_buf->buf = p; - el_buf->allocated_size = new_size; - } else { - return -1; - } - } - - memcpy(el_buf->buf + el_buf->length, buffer, size); - - el_buf->length += size; - return 0; -} - -static void assert_unused_bits(const struct _el_buffer* p) { - if(p->length) { - assert((p->buf[p->length-1] & ~(0xff << p->bits_unused)) == 0); - } else { - assert(p->bits_unused == 0); - } -} - -static int _el_buf_cmp(const void *ap, const void *bp) { - const struct _el_buffer *a = (const struct _el_buffer *)ap; - const struct _el_buffer *b = (const struct _el_buffer *)bp; - size_t common_len; - int ret = 0; - - if(a->length < b->length) - common_len = a->length; - else - common_len = b->length; - - if (a->buf && b->buf) { - ret = memcmp(a->buf, b->buf, common_len); - } - if(ret == 0) { - if(a->length < b->length) - ret = -1; - else if(a->length > b->length) - ret = 1; - /* Ignore unused bits. */ - assert_unused_bits(a); - assert_unused_bits(b); - } - - return ret; -} - -static void -SET_OF__encode_sorted_free(struct _el_buffer *el_buf, size_t count) { - size_t i; - - for(i = 0; i < count; i++) { - FREEMEM(el_buf[i].buf); - } - - FREEMEM(el_buf); -} - -enum SET_OF__encode_method { - SOES_DER, /* Distinguished Encoding Rules */ - SOES_CUPER /* Canonical Unaligned Packed Encoding Rules */ -}; - -static struct _el_buffer * -SET_OF__encode_sorted(const asn_TYPE_member_t *elm, - const asn_anonymous_set_ *list, - enum SET_OF__encode_method method) { - static struct _el_buffer *encoded_els; - int edx; - - encoded_els = - (struct _el_buffer *)CALLOC(list->count, sizeof(encoded_els[0])); - if(encoded_els == NULL) { - return NULL; - } - - /* - * Encode all members. - */ - for(edx = 0; edx < list->count; edx++) { - const void *memb_ptr = list->array[edx]; - struct _el_buffer *encoding_el = &encoded_els[edx]; - asn_enc_rval_t erval; - - if(!memb_ptr) break; - - /* - * Encode the member into the prepared space. - */ - switch(method) { - case SOES_DER: - erval = elm->type->op->der_encoder(elm->type, memb_ptr, 0, elm->tag, - _el_addbytes, encoding_el); - break; - case SOES_CUPER: - erval = uper_encode(elm->type, - elm->encoding_constraints.per_constraints, - memb_ptr, _el_addbytes, encoding_el); - if(erval.encoded != -1) { - size_t extra_bits = erval.encoded % 8; - assert(encoding_el->length == (size_t)(erval.encoded + 7) / 8); - encoding_el->bits_unused = (8 - extra_bits) & 0x7; - } - break; - default: - assert(!"Unreachable"); - break; - } - if(erval.encoded < 0) break; - } - - if(edx == list->count) { - /* - * Sort the encoded elements according to their encoding. - */ - qsort(encoded_els, list->count, sizeof(encoded_els[0]), _el_buf_cmp); - - return encoded_els; - } else { - SET_OF__encode_sorted_free(encoded_els, edx); - return NULL; - } -} - - -/* - * The DER encoder of the SET OF type. - */ -asn_enc_rval_t -SET_OF_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, - int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, - void *app_key) { - const asn_TYPE_member_t *elm = td->elements; - const asn_anonymous_set_ *list = _A_CSET_FROM_VOID(sptr); - size_t computed_size = 0; - ssize_t encoding_size = 0; - struct _el_buffer *encoded_els; - int edx; - - ASN_DEBUG("Estimating size for SET OF %s", td->name); - - /* - * Gather the length of the underlying members sequence. - */ - for(edx = 0; edx < list->count; edx++) { - void *memb_ptr = list->array[edx]; - asn_enc_rval_t erval; - - if(!memb_ptr) ASN__ENCODE_FAILED; - - erval = - elm->type->op->der_encoder(elm->type, memb_ptr, 0, elm->tag, 0, 0); - if(erval.encoded == -1) return erval; - computed_size += erval.encoded; - } - - - /* - * Encode the TLV for the sequence itself. - */ - encoding_size = - der_write_tags(td, computed_size, tag_mode, 1, tag, cb, app_key); - if(encoding_size < 0) { - ASN__ENCODE_FAILED; - } - computed_size += encoding_size; - - if(!cb || list->count == 0) { - asn_enc_rval_t erval; - erval.encoded = computed_size; - ASN__ENCODED_OK(erval); - } - - ASN_DEBUG("Encoding members of %s SET OF", td->name); - - /* - * DER mandates dynamic sorting of the SET OF elements - * according to their encodings. Build an array of the - * encoded elements. - */ - encoded_els = SET_OF__encode_sorted(elm, list, SOES_DER); - - /* - * Report encoded elements to the application. - * Dispose of temporary sorted members table. - */ - for(edx = 0; edx < list->count; edx++) { - struct _el_buffer *encoded_el = &encoded_els[edx]; - /* Report encoded chunks to the application */ - if(cb(encoded_el->buf, encoded_el->length, app_key) < 0) { - break; - } else { - encoding_size += encoded_el->length; - } - } - - SET_OF__encode_sorted_free(encoded_els, list->count); - - if(edx == list->count) { - asn_enc_rval_t erval; - assert(computed_size == (size_t)encoding_size); - erval.encoded = computed_size; - ASN__ENCODED_OK(erval); - } else { - ASN__ENCODE_FAILED; - } -} - -#undef XER_ADVANCE -#define XER_ADVANCE(num_bytes) do { \ - size_t num = num_bytes; \ - buf_ptr = ((const char *)buf_ptr) + num;\ - size -= num; \ - consumed_myself += num; \ - } while(0) - -/* - * Decode the XER (XML) data. - */ -asn_dec_rval_t -SET_OF_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **struct_ptr, - const char *opt_mname, const void *buf_ptr, size_t size) { - /* - * Bring closer parts of structure description. - */ - const asn_SET_OF_specifics_t *specs = (const asn_SET_OF_specifics_t *)td->specifics; - const asn_TYPE_member_t *element = td->elements; - const char *elm_tag; - const char *xml_tag = opt_mname ? opt_mname : td->xml_tag; - - /* - * ... and parts of the structure being constructed. - */ - void *st = *struct_ptr; /* Target structure. */ - asn_struct_ctx_t *ctx; /* Decoder context */ - - asn_dec_rval_t rval; /* Return value from a decoder */ - ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ - - /* - * Create the target structure if it is not present already. - */ - if(st == 0) { - st = *struct_ptr = CALLOC(1, specs->struct_size); - if(st == 0) RETURN(RC_FAIL); - } - - /* Which tag is expected for the downstream */ - if(specs->as_XMLValueList) { - elm_tag = (specs->as_XMLValueList == 1) ? 0 : ""; - } else { - elm_tag = (*element->name) - ? element->name : element->type->xml_tag; - } - - /* - * Restore parsing context. - */ - ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); - - /* - * Phases of XER/XML processing: - * Phase 0: Check that the opening tag matches our expectations. - * Phase 1: Processing body and reacting on closing tag. - * Phase 2: Processing inner type. - */ - for(; ctx->phase <= 2;) { - pxer_chunk_type_e ch_type; /* XER chunk type */ - ssize_t ch_size; /* Chunk size */ - xer_check_tag_e tcv; /* Tag check value */ - - /* - * Go inside the inner member of a set. - */ - if(ctx->phase == 2) { - asn_dec_rval_t tmprval; - - /* Invoke the inner type decoder, m.b. multiple times */ - ASN_DEBUG("XER/SET OF element [%s]", elm_tag); - tmprval = element->type->op->xer_decoder(opt_codec_ctx, - element->type, &ctx->ptr, elm_tag, - buf_ptr, size); - if(tmprval.code == RC_OK) { - asn_anonymous_set_ *list = _A_SET_FROM_VOID(st); - if(ASN_SET_ADD(list, ctx->ptr) != 0) - RETURN(RC_FAIL); - ctx->ptr = 0; - XER_ADVANCE(tmprval.consumed); - } else { - XER_ADVANCE(tmprval.consumed); - RETURN(tmprval.code); - } - ctx->phase = 1; /* Back to body processing */ - ASN_DEBUG("XER/SET OF phase => %d", ctx->phase); - /* Fall through */ - } - - /* - * Get the next part of the XML stream. - */ - ch_size = xer_next_token(&ctx->context, - buf_ptr, size, &ch_type); - if(ch_size == -1) { - RETURN(RC_FAIL); - } else { - switch(ch_type) { - case PXER_WMORE: - RETURN(RC_WMORE); - case PXER_COMMENT: /* Got XML comment */ - case PXER_TEXT: /* Ignore free-standing text */ - XER_ADVANCE(ch_size); /* Skip silently */ - continue; - case PXER_TAG: - break; /* Check the rest down there */ - } - } - - tcv = xer_check_tag(buf_ptr, ch_size, xml_tag); - ASN_DEBUG("XER/SET OF: tcv = %d, ph=%d t=%s", - tcv, ctx->phase, xml_tag); - switch(tcv) { - case XCT_CLOSING: - if(ctx->phase == 0) break; - ctx->phase = 0; - /* Fall through */ - case XCT_BOTH: - if(ctx->phase == 0) { - /* No more things to decode */ - XER_ADVANCE(ch_size); - ctx->phase = 3; /* Phase out */ - RETURN(RC_OK); - } - /* Fall through */ - case XCT_OPENING: - if(ctx->phase == 0) { - XER_ADVANCE(ch_size); - ctx->phase = 1; /* Processing body phase */ - continue; - } - /* Fall through */ - case XCT_UNKNOWN_OP: - case XCT_UNKNOWN_BO: - - ASN_DEBUG("XER/SET OF: tcv=%d, ph=%d", tcv, ctx->phase); - if(ctx->phase == 1) { - /* - * Process a single possible member. - */ - ctx->phase = 2; - continue; - } - /* Fall through */ - default: - break; - } - - ASN_DEBUG("Unexpected XML tag in SET OF"); - break; - } - - ctx->phase = 3; /* "Phase out" on hard failure */ - RETURN(RC_FAIL); -} - - - -typedef struct xer_tmp_enc_s { - void *buffer; - size_t offset; - size_t size; -} xer_tmp_enc_t; -static int -SET_OF_encode_xer_callback(const void *buffer, size_t size, void *key) { - xer_tmp_enc_t *t = (xer_tmp_enc_t *)key; - if(t->offset + size >= t->size) { - size_t newsize = (t->size << 2) + size; - void *p = REALLOC(t->buffer, newsize); - if(!p) return -1; - t->buffer = p; - t->size = newsize; - } - memcpy((char *)t->buffer + t->offset, buffer, size); - t->offset += size; - return 0; -} -static int -SET_OF_xer_order(const void *aptr, const void *bptr) { - const xer_tmp_enc_t *a = (const xer_tmp_enc_t *)aptr; - const xer_tmp_enc_t *b = (const xer_tmp_enc_t *)bptr; - size_t minlen = a->offset; - int ret; - if(b->offset < minlen) minlen = b->offset; - /* Well-formed UTF-8 has this nice lexicographical property... */ - ret = memcmp(a->buffer, b->buffer, minlen); - if(ret != 0) return ret; - if(a->offset == b->offset) - return 0; - if(a->offset == minlen) - return -1; - return 1; -} - - -asn_enc_rval_t -SET_OF_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, - enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, - void *app_key) { - asn_enc_rval_t er; - const asn_SET_OF_specifics_t *specs = (const asn_SET_OF_specifics_t *)td->specifics; - const asn_TYPE_member_t *elm = td->elements; - const asn_anonymous_set_ *list = _A_CSET_FROM_VOID(sptr); - const char *mname = specs->as_XMLValueList - ? 0 : ((*elm->name) ? elm->name : elm->type->xml_tag); - size_t mlen = mname ? strlen(mname) : 0; - int xcan = (flags & XER_F_CANONICAL); - xer_tmp_enc_t *encs = 0; - size_t encs_count = 0; - void *original_app_key = app_key; - asn_app_consume_bytes_f *original_cb = cb; - int i; - - if(!sptr) ASN__ENCODE_FAILED; - - if(xcan) { - encs = (xer_tmp_enc_t *)MALLOC(list->count * sizeof(encs[0])); - if(!encs) ASN__ENCODE_FAILED; - cb = SET_OF_encode_xer_callback; - } - - er.encoded = 0; - - for(i = 0; i < list->count; i++) { - asn_enc_rval_t tmper; - - void *memb_ptr = list->array[i]; - if(!memb_ptr) continue; - - if(encs) { - memset(&encs[encs_count], 0, sizeof(encs[0])); - app_key = &encs[encs_count]; - encs_count++; - } - - if(mname) { - if(!xcan) ASN__TEXT_INDENT(1, ilevel); - ASN__CALLBACK3("<", 1, mname, mlen, ">", 1); - } - - if(!xcan && specs->as_XMLValueList == 1) - ASN__TEXT_INDENT(1, ilevel + 1); - tmper = elm->type->op->xer_encoder(elm->type, memb_ptr, - ilevel + (specs->as_XMLValueList != 2), - flags, cb, app_key); - if(tmper.encoded == -1) return tmper; - er.encoded += tmper.encoded; - if(tmper.encoded == 0 && specs->as_XMLValueList) { - const char *name = elm->type->xml_tag; - size_t len = strlen(name); - ASN__CALLBACK3("<", 1, name, len, "/>", 2); - } - - if(mname) { - ASN__CALLBACK3("", 1); - } - - } - - if(!xcan) ASN__TEXT_INDENT(1, ilevel - 1); - - if(encs) { - xer_tmp_enc_t *enc = encs; - xer_tmp_enc_t *end = encs + encs_count; - ssize_t control_size = 0; - - er.encoded = 0; - cb = original_cb; - app_key = original_app_key; - qsort(encs, encs_count, sizeof(encs[0]), SET_OF_xer_order); - - for(; enc < end; enc++) { - ASN__CALLBACK(enc->buffer, enc->offset); - FREEMEM(enc->buffer); - enc->buffer = 0; - control_size += enc->offset; - } - assert(control_size == er.encoded); - } - - goto cleanup; -cb_failed: - ASN__ENCODE_FAILED; -cleanup: - if(encs) { - size_t n; - for(n = 0; n < encs_count; n++) { - FREEMEM(encs[n].buffer); - } - FREEMEM(encs); - } - ASN__ENCODED_OK(er); -} - -int -SET_OF_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, - asn_app_consume_bytes_f *cb, void *app_key) { - asn_TYPE_member_t *elm = td->elements; - const asn_anonymous_set_ *list = _A_CSET_FROM_VOID(sptr); - int ret; - int i; - - if(!sptr) return (cb("", 8, app_key) < 0) ? -1 : 0; - - /* Dump preamble */ - if(cb(td->name, strlen(td->name), app_key) < 0 - || cb(" ::= {", 6, app_key) < 0) - return -1; - - for(i = 0; i < list->count; i++) { - const void *memb_ptr = list->array[i]; - if(!memb_ptr) continue; - - _i_INDENT(1); - - ret = elm->type->op->print_struct(elm->type, memb_ptr, - ilevel + 1, cb, app_key); - if(ret) return ret; - } - - ilevel--; - _i_INDENT(1); - - return (cb("}", 1, app_key) < 0) ? -1 : 0; -} - -void -SET_OF_free(const asn_TYPE_descriptor_t *td, void *ptr, - enum asn_struct_free_method method) { - if(td && ptr) { - const asn_SET_OF_specifics_t *specs; - asn_TYPE_member_t *elm = td->elements; - asn_anonymous_set_ *list = _A_SET_FROM_VOID(ptr); - asn_struct_ctx_t *ctx; /* Decoder context */ - int i; - - /* - * Could not use set_of_empty() because of (*free) - * incompatibility. - */ - for(i = 0; i < list->count; i++) { - void *memb_ptr = list->array[i]; - if(memb_ptr) - ASN_STRUCT_FREE(*elm->type, memb_ptr); - } - list->count = 0; /* No meaningful elements left */ - - asn_set_empty(list); /* Remove (list->array) */ - - specs = (const asn_SET_OF_specifics_t *)td->specifics; - ctx = (asn_struct_ctx_t *)((char *)ptr + specs->ctx_offset); - if(ctx->ptr) { - ASN_STRUCT_FREE(*elm->type, ctx->ptr); - ctx->ptr = 0; - } - - switch(method) { - case ASFM_FREE_EVERYTHING: - FREEMEM(ptr); - break; - case ASFM_FREE_UNDERLYING: - break; - case ASFM_FREE_UNDERLYING_AND_RESET: - memset(ptr, 0, specs->struct_size); - break; - } - } -} - -int -SET_OF_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const asn_TYPE_member_t *elm = td->elements; - asn_constr_check_f *constr; - const asn_anonymous_set_ *list = _A_CSET_FROM_VOID(sptr); - int i; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - constr = elm->encoding_constraints.general_constraints; - if(!constr) constr = elm->type->encoding_constraints.general_constraints; - - /* - * Iterate over the members of an array. - * Validate each in turn, until one fails. - */ - for(i = 0; i < list->count; i++) { - const void *memb_ptr = list->array[i]; - int ret; - - if(!memb_ptr) continue; - - ret = constr(elm->type, memb_ptr, ctfailcb, app_key); - if(ret) return ret; - } - - return 0; -} - -#ifndef ASN_DISABLE_PER_SUPPORT - -asn_dec_rval_t -SET_OF_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, void **sptr, - asn_per_data_t *pd) { - asn_dec_rval_t rv; - const asn_SET_OF_specifics_t *specs = (const asn_SET_OF_specifics_t *)td->specifics; - const asn_TYPE_member_t *elm = td->elements; /* Single one */ - void *st = *sptr; - asn_anonymous_set_ *list; - const asn_per_constraint_t *ct; - int repeat = 0; - ssize_t nelems; - - if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) - ASN__DECODE_FAILED; - - /* - * Create the target structure if it is not present already. - */ - if(!st) { - st = *sptr = CALLOC(1, specs->struct_size); - if(!st) ASN__DECODE_FAILED; - } - list = _A_SET_FROM_VOID(st); - - /* Figure out which constraints to use */ - if(constraints) ct = &constraints->size; - else if(td->encoding_constraints.per_constraints) - ct = &td->encoding_constraints.per_constraints->size; - else ct = 0; - - if(ct && ct->flags & APC_EXTENSIBLE) { - int value = per_get_few_bits(pd, 1); - if(value < 0) ASN__DECODE_STARVED; - if(value) ct = 0; /* Not restricted! */ - } - - if(ct && ct->effective_bits >= 0) { - /* X.691, #19.5: No length determinant */ - nelems = per_get_few_bits(pd, ct->effective_bits); - ASN_DEBUG("Preparing to fetch %ld+%"ASN_PRIdMAX" elements from %s", - (long)nelems, ct->lower_bound, td->name); - if(nelems < 0) ASN__DECODE_STARVED; - nelems += ct->lower_bound; - } else { - nelems = -1; - } - - do { - int i; - if(nelems < 0) { - nelems = uper_get_length(pd, -1, 0, &repeat); - ASN_DEBUG("Got to decode %" ASN_PRI_SSIZE " elements (eff %d)", - nelems, (int)(ct ? ct->effective_bits : -1)); - if(nelems < 0) ASN__DECODE_STARVED; - } - - for(i = 0; i < nelems; i++) { - void *ptr = 0; - ASN_DEBUG("SET OF %s decoding", elm->type->name); - rv = elm->type->op->uper_decoder(opt_codec_ctx, elm->type, - elm->encoding_constraints.per_constraints, &ptr, pd); - ASN_DEBUG("%s SET OF %s decoded %d, %p", - td->name, elm->type->name, rv.code, ptr); - if(rv.code == RC_OK) { - if(ASN_SET_ADD(list, ptr) == 0) { - if(rv.consumed == 0 && nelems > 200) { - /* Protect from SET OF NULL compression bombs. */ - ASN__DECODE_FAILED; - } - continue; - } - ASN_DEBUG("Failed to add element into %s", - td->name); - /* Fall through */ - rv.code = RC_FAIL; - } else { - ASN_DEBUG("Failed decoding %s of %s (SET OF)", - elm->type->name, td->name); - } - if(ptr) ASN_STRUCT_FREE(*elm->type, ptr); - return rv; - } - - nelems = -1; /* Allow uper_get_length() */ - } while(repeat); - - ASN_DEBUG("Decoded %s as SET OF", td->name); - - rv.code = RC_OK; - rv.consumed = 0; - return rv; -} - -asn_enc_rval_t -SET_OF_encode_uper(const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, const void *sptr, - asn_per_outp_t *po) { - const asn_anonymous_set_ *list; - const asn_per_constraint_t *ct; - const asn_TYPE_member_t *elm = td->elements; - struct _el_buffer *encoded_els; - asn_enc_rval_t er; - size_t encoded_edx; - - if(!sptr) ASN__ENCODE_FAILED; - - list = _A_CSET_FROM_VOID(sptr); - - er.encoded = 0; - - ASN_DEBUG("Encoding %s as SEQUENCE OF (%d)", td->name, list->count); - - if(constraints) ct = &constraints->size; - else if(td->encoding_constraints.per_constraints) - ct = &td->encoding_constraints.per_constraints->size; - else ct = 0; - - /* If extensible constraint, check if size is in root */ - if(ct) { - int not_in_root = - (list->count < ct->lower_bound || list->count > ct->upper_bound); - ASN_DEBUG("lb %"ASN_PRIdMAX" ub %"ASN_PRIdMAX" %s", ct->lower_bound, ct->upper_bound, - ct->flags & APC_EXTENSIBLE ? "ext" : "fix"); - if(ct->flags & APC_EXTENSIBLE) { - /* Declare whether size is in extension root */ - if(per_put_few_bits(po, not_in_root, 1)) ASN__ENCODE_FAILED; - if(not_in_root) ct = 0; - } else if(not_in_root && ct->effective_bits >= 0) { - ASN__ENCODE_FAILED; - } - - } - - if(ct && ct->effective_bits >= 0) { - /* X.691, #19.5: No length determinant */ - if(per_put_few_bits(po, list->count - ct->lower_bound, - ct->effective_bits)) - ASN__ENCODE_FAILED; - } else if(list->count == 0) { - /* When the list is empty add only the length determinant - * X.691, #20.6 and #11.9.4.1 - */ - if (uper_put_length(po, 0, 0)) { - ASN__ENCODE_FAILED; - } - ASN__ENCODED_OK(er); - } - - - /* - * Canonical UPER #22.1 mandates dynamic sorting of the SET OF elements - * according to their encodings. Build an array of the encoded elements. - */ - encoded_els = SET_OF__encode_sorted(elm, list, SOES_CUPER); - - for(encoded_edx = 0; (ssize_t)encoded_edx < list->count;) { - ssize_t may_encode; - size_t edx; - int need_eom = 0; - - if(ct && ct->effective_bits >= 0) { - may_encode = list->count; - } else { - may_encode = - uper_put_length(po, list->count - encoded_edx, &need_eom); - if(may_encode < 0) ASN__ENCODE_FAILED; - } - - for(edx = encoded_edx; edx < encoded_edx + may_encode; edx++) { - const struct _el_buffer *el = &encoded_els[edx]; - if(asn_put_many_bits(po, el->buf, - (8 * el->length) - el->bits_unused) < 0) { - break; - } - } - - if(need_eom && uper_put_length(po, 0, 0)) - ASN__ENCODE_FAILED; /* End of Message length */ - - encoded_edx += may_encode; - } - - SET_OF__encode_sorted_free(encoded_els, list->count); - - if((ssize_t)encoded_edx == list->count) { - ASN__ENCODED_OK(er); - } else { - ASN__ENCODE_FAILED; - } -} - - -#endif /* ASN_DISABLE_PER_SUPPORT */ - -struct comparable_ptr { - const asn_TYPE_descriptor_t *td; - const void *sptr; -}; - -static int -SET_OF__compare_cb(const void *aptr, const void *bptr) { - const struct comparable_ptr *a = aptr; - const struct comparable_ptr *b = bptr; - assert(a->td == b->td); - return a->td->op->compare_struct(a->td, a->sptr, b->sptr); -} - -int -SET_OF_compare(const asn_TYPE_descriptor_t *td, const void *aptr, - const void *bptr) { - const asn_anonymous_set_ *a = _A_CSET_FROM_VOID(aptr); - const asn_anonymous_set_ *b = _A_CSET_FROM_VOID(bptr); - - if(a && b) { - struct comparable_ptr *asorted; - struct comparable_ptr *bsorted; - ssize_t common_length; - ssize_t idx; - - if(a->count == 0) { - if(b->count) return -1; - return 0; - } else if(b->count == 0) { - return 1; - } - - asorted = MALLOC(a->count * sizeof(asorted[0])); - bsorted = MALLOC(b->count * sizeof(bsorted[0])); - if(!asorted || !bsorted) { - FREEMEM(asorted); - FREEMEM(bsorted); - return -1; - } - - for(idx = 0; idx < a->count; idx++) { - asorted[idx].td = td->elements->type; - asorted[idx].sptr = a->array[idx]; - } - - for(idx = 0; idx < b->count; idx++) { - bsorted[idx].td = td->elements->type; - bsorted[idx].sptr = b->array[idx]; - } - - qsort(asorted, a->count, sizeof(asorted[0]), SET_OF__compare_cb); - qsort(bsorted, b->count, sizeof(bsorted[0]), SET_OF__compare_cb); - - common_length = (a->count < b->count ? a->count : b->count); - for(idx = 0; idx < common_length; idx++) { - int ret = td->elements->type->op->compare_struct( - td->elements->type, asorted[idx].sptr, bsorted[idx].sptr); - if(ret) { - FREEMEM(asorted); - FREEMEM(bsorted); - return ret; - } - } - - FREEMEM(asorted); - FREEMEM(bsorted); - - if(idx < b->count) /* more elements in b */ - return -1; /* a is shorter, so put it first */ - if(idx < a->count) return 1; - } else if(!a) { - return -1; - } else if(!b) { - return 1; - } - - return 0; -} - - -asn_TYPE_operation_t asn_OP_SET_OF = { - SET_OF_free, - SET_OF_print, - SET_OF_compare, - SET_OF_decode_ber, - SET_OF_encode_der, - SET_OF_decode_xer, - SET_OF_encode_xer, -#ifdef ASN_DISABLE_OER_SUPPORT - 0, - 0, -#else - SET_OF_decode_oer, - SET_OF_encode_oer, -#endif -#ifdef ASN_DISABLE_PER_SUPPORT - 0, - 0, -#else - SET_OF_decode_uper, - SET_OF_encode_uper, -#endif /* ASN_DISABLE_PER_SUPPORT */ - SET_OF_random_fill, - 0 /* Use generic outmost tag fetcher */ -}; - - -asn_random_fill_result_t -SET_OF_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constraints, - size_t max_length) { - const asn_SET_OF_specifics_t *specs = - (const asn_SET_OF_specifics_t *)td->specifics; - asn_random_fill_result_t res_ok = {ARFILL_OK, 0}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - const asn_TYPE_member_t *elm = td->elements; - void *st = *sptr; - long max_elements = 5; - long slb = 0; /* Lower size bound */ - long sub = 0; /* Upper size bound */ - size_t rnd_len; - - if(max_length == 0) return result_skipped; - - if(st == NULL) { - st = (*sptr = CALLOC(1, specs->struct_size)); - if(st == NULL) { - return result_failed; - } - } - - switch(asn_random_between(0, 6)) { - case 0: max_elements = 0; break; - case 1: max_elements = 1; break; - case 2: max_elements = 5; break; - case 3: max_elements = max_length; break; - case 4: max_elements = max_length / 2; break; - case 5: max_elements = max_length / 4; break; - default: break; - } - sub = slb + max_elements; - - if(!constraints || !constraints->per_constraints) - constraints = &td->encoding_constraints; - if(constraints->per_constraints) { - const asn_per_constraint_t *pc = &constraints->per_constraints->size; - if(pc->flags & APC_SEMI_CONSTRAINED) { - slb = pc->lower_bound; - sub = pc->lower_bound + max_elements; - } else if(pc->flags & APC_CONSTRAINED) { - slb = pc->lower_bound; - sub = pc->upper_bound; - if(sub - slb > max_elements) sub = slb + max_elements; - } - } - - /* Bias towards edges of allowed space */ - switch(asn_random_between(-1, 4)) { - default: - case -1: - /* Prepare lengths somewhat outside of constrained range. */ - if(constraints->per_constraints - && (constraints->per_constraints->size.flags & APC_EXTENSIBLE)) { - switch(asn_random_between(0, 5)) { - default: - case 0: - rnd_len = 0; - break; - case 1: - if(slb > 0) { - rnd_len = slb - 1; - } else { - rnd_len = 0; - } - break; - case 2: - rnd_len = asn_random_between(0, slb); - break; - case 3: - if(sub < (ssize_t)max_length) { - rnd_len = sub + 1; - } else { - rnd_len = max_length; - } - break; - case 4: - if(sub < (ssize_t)max_length) { - rnd_len = asn_random_between(sub + 1, max_length); - } else { - rnd_len = max_length; - } - break; - case 5: - rnd_len = max_length; - break; - } - break; - } - /* Fall through */ - case 0: - rnd_len = asn_random_between(slb, sub); - break; - case 1: - if(slb < sub) { - rnd_len = asn_random_between(slb + 1, sub); - break; - } - /* Fall through */ - case 2: - rnd_len = asn_random_between(slb, slb); - break; - case 3: - if(slb < sub) { - rnd_len = asn_random_between(slb, sub - 1); - break; - } - /* Fall through */ - case 4: - rnd_len = asn_random_between(sub, sub); - break; - } - - for(; rnd_len > 0; rnd_len--) { - asn_anonymous_set_ *list = _A_SET_FROM_VOID(st); - void *ptr = 0; - asn_random_fill_result_t tmpres = elm->type->op->random_fill( - elm->type, &ptr, &elm->encoding_constraints, - (max_length > res_ok.length ? max_length - res_ok.length : 0) - / rnd_len); - switch(tmpres.code) { - case ARFILL_OK: - ASN_SET_ADD(list, ptr); - res_ok.length += tmpres.length; - break; - case ARFILL_SKIPPED: - break; - case ARFILL_FAILED: - assert(ptr == 0); - return tmpres; - } - } - - return res_ok; -} - diff --git a/asn.1/generated/constr_SET_OF.h b/asn.1/generated/constr_SET_OF.h deleted file mode 100644 index f32e607b..00000000 --- a/asn.1/generated/constr_SET_OF.h +++ /dev/null @@ -1,47 +0,0 @@ -/*- - * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef CONSTR_SET_OF_H -#define CONSTR_SET_OF_H - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct asn_SET_OF_specifics_s { - /* - * Target structure description. - */ - unsigned struct_size; /* Size of the target structure. */ - unsigned ctx_offset; /* Offset of the asn_struct_ctx_t member */ - - /* XER-specific stuff */ - int as_XMLValueList; /* The member type must be encoded like this */ -} asn_SET_OF_specifics_t; - -/* - * A set specialized functions dealing with the SET OF type. - */ -asn_struct_free_f SET_OF_free; -asn_struct_print_f SET_OF_print; -asn_struct_compare_f SET_OF_compare; -asn_constr_check_f SET_OF_constraint; -ber_type_decoder_f SET_OF_decode_ber; -der_type_encoder_f SET_OF_encode_der; -xer_type_decoder_f SET_OF_decode_xer; -xer_type_encoder_f SET_OF_encode_xer; -oer_type_decoder_f SET_OF_decode_oer; -oer_type_encoder_f SET_OF_encode_oer; -per_type_decoder_f SET_OF_decode_uper; -per_type_encoder_f SET_OF_encode_uper; -asn_random_fill_f SET_OF_random_fill; -extern asn_TYPE_operation_t asn_OP_SET_OF; - -#ifdef __cplusplus -} -#endif - -#endif /* CONSTR_SET_OF_H */ diff --git a/asn.1/generated/constr_TYPE.h b/asn.1/generated/constr_TYPE.h deleted file mode 100644 index 31102f55..00000000 --- a/asn.1/generated/constr_TYPE.h +++ /dev/null @@ -1,260 +0,0 @@ -/* - * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -/* - * This file contains the declaration structure called "ASN.1 Type Definition", - * which holds all information necessary for encoding and decoding routines. - * This structure even contains pointer to these encoding and decoding routines - * for each defined ASN.1 type. - */ -#ifndef _CONSTR_TYPE_H_ -#define _CONSTR_TYPE_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct asn_TYPE_descriptor_s; /* Forward declaration */ -struct asn_TYPE_member_s; /* Forward declaration */ - -/* - * This type provides the context information for various ASN.1 routines, - * primarily ones doing decoding. A member _asn_ctx of this type must be - * included into certain target language's structures, such as compound types. - */ -typedef struct asn_struct_ctx_s { - short phase; /* Decoding phase */ - short step; /* Elementary step of a phase */ - int context; /* Other context information */ - void *ptr; /* Decoder-specific stuff (stack elements) */ - ber_tlv_len_t left; /* Number of bytes left, -1 for indefinite */ -} asn_struct_ctx_t; - -#include /* Basic Encoding Rules decoder */ -#include /* Distinguished Encoding Rules encoder */ -#include /* Decoder of XER (XML, text) */ -#include /* Encoder into XER (XML, text) */ -#include /* Packet Encoding Rules decoder */ -#include /* Packet Encoding Rules encoder */ -#include /* Subtype constraints support */ -#include /* Random structures support */ - -#ifdef ASN_DISABLE_OER_SUPPORT -typedef void (oer_type_decoder_f)(); -typedef void (oer_type_encoder_f)(); -typedef void asn_oer_constraints_t; -#else -#include /* Octet Encoding Rules encoder */ -#include /* Octet Encoding Rules encoder */ -#endif - -/* - * Free the structure according to its specification. - * Use one of ASN_STRUCT_{FREE,RESET,CONTENTS_ONLY} macros instead. - * Do not use directly. - */ -enum asn_struct_free_method { - ASFM_FREE_EVERYTHING, /* free(struct_ptr) and underlying members */ - ASFM_FREE_UNDERLYING, /* free underlying members */ - ASFM_FREE_UNDERLYING_AND_RESET /* FREE_UNDERLYING + memset(0) */ -}; -typedef void (asn_struct_free_f)( - const struct asn_TYPE_descriptor_s *type_descriptor, - void *struct_ptr, enum asn_struct_free_method); - -/* - * Free the structure including freeing the memory pointed to by ptr itself. - */ -#define ASN_STRUCT_FREE(asn_DEF, ptr) \ - (asn_DEF).op->free_struct(&(asn_DEF), (ptr), ASFM_FREE_EVERYTHING) - -/* - * Free the memory used by the members of the structure without freeing the - * the structure pointer itself. - * ZERO-OUT the structure to the safe clean state. - * (Retaining the pointer may be useful in case the structure is allocated - * statically or arranged on the stack, yet its elements are dynamic.) - */ -#define ASN_STRUCT_RESET(asn_DEF, ptr) \ - (asn_DEF).op->free_struct(&(asn_DEF), (ptr), ASFM_FREE_UNDERLYING_AND_RESET) - -/* - * Free memory used by the members of the structure without freeing - * the structure pointer itself. - * (Retaining the pointer may be useful in case the structure is allocated - * statically or arranged on the stack, yet its elements are dynamic.) - * AVOID using it in the application code; - * Use a safer ASN_STRUCT_RESET() instead. - */ -#define ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF, ptr) \ - (asn_DEF).op->free_struct(&(asn_DEF), (ptr), ASFM_FREE_UNDERLYING) - -/* - * Print the structure according to its specification. - */ -typedef int(asn_struct_print_f)( - const struct asn_TYPE_descriptor_s *type_descriptor, - const void *struct_ptr, - int level, /* Indentation level */ - asn_app_consume_bytes_f *callback, void *app_key); - -/* - * Compare two structs between each other. - * Returns <0 if struct_A is "smaller" than struct_B, >0 if "greater", - * and =0 if "equal to", for some type-specific, stable definition of - * "smaller", "greater" and "equal to". - */ -typedef int (asn_struct_compare_f)( - const struct asn_TYPE_descriptor_s *type_descriptor, - const void *struct_A, - const void *struct_B); - -/* - * Return the outmost tag of the type. - * If the type is untagged CHOICE, the dynamic operation is performed. - * NOTE: This function pointer type is only useful internally. - * Do not use it in your application. - */ -typedef ber_tlv_tag_t (asn_outmost_tag_f)( - const struct asn_TYPE_descriptor_s *type_descriptor, - const void *struct_ptr, int tag_mode, ber_tlv_tag_t tag); -/* The instance of the above function type; used internally. */ -asn_outmost_tag_f asn_TYPE_outmost_tag; - -/* - * Fetch the desired type of the Open Type based on the - * Information Object Set driven constraints. - */ -typedef struct asn_type_selector_result_s { - const struct asn_TYPE_descriptor_s *type_descriptor; /* Type encoded. */ - unsigned presence_index; /* Associated choice variant. */ -} asn_type_selector_result_t; -typedef asn_type_selector_result_t(asn_type_selector_f)( - const struct asn_TYPE_descriptor_s *parent_type_descriptor, - const void *parent_structure_ptr); - -/* - * Generalized functions for dealing with the speciic type. - * May be directly invoked by applications. - */ -typedef struct asn_TYPE_operation_s { - asn_struct_free_f *free_struct; /* Free the structure */ - asn_struct_print_f *print_struct; /* Human readable output */ - asn_struct_compare_f *compare_struct; /* Compare two structures */ - ber_type_decoder_f *ber_decoder; /* Generic BER decoder */ - der_type_encoder_f *der_encoder; /* Canonical DER encoder */ - xer_type_decoder_f *xer_decoder; /* Generic XER decoder */ - xer_type_encoder_f *xer_encoder; /* [Canonical] XER encoder */ - oer_type_decoder_f *oer_decoder; /* Generic OER decoder */ - oer_type_encoder_f *oer_encoder; /* Canonical OER encoder */ - per_type_decoder_f *uper_decoder; /* Unaligned PER decoder */ - per_type_encoder_f *uper_encoder; /* Unaligned PER encoder */ - asn_random_fill_f *random_fill; /* Initialize with a random value */ - asn_outmost_tag_f *outmost_tag; /* */ -} asn_TYPE_operation_t; - -/* - * A constraints tuple specifying both the OER and PER constraints. - */ -typedef struct asn_encoding_constraints_s { - const struct asn_oer_constraints_s *oer_constraints; - const struct asn_per_constraints_s *per_constraints; - asn_constr_check_f *general_constraints; -} asn_encoding_constraints_t; - -/* - * The definitive description of the destination language's structure. - */ -typedef struct asn_TYPE_descriptor_s { - const char *name; /* A name of the ASN.1 type. "" in some cases. */ - const char *xml_tag; /* Name used in XML tag */ - - /* - * Generalized functions for dealing with the specific type. - * May be directly invoked by applications. - */ - asn_TYPE_operation_t *op; - - /*********************************************************************** - * Internally useful members. Not to be used by applications directly. * - **********************************************************************/ - - /* - * Tags that are expected to occur. - */ - const ber_tlv_tag_t *tags; /* Effective tags sequence for this type */ - unsigned tags_count; /* Number of tags which are expected */ - const ber_tlv_tag_t *all_tags; /* Every tag for BER/containment */ - unsigned all_tags_count; /* Number of tags */ - - /* OER, PER, and general constraints */ - asn_encoding_constraints_t encoding_constraints; - - /* - * An ASN.1 production type members (members of SEQUENCE, SET, CHOICE). - */ - struct asn_TYPE_member_s *elements; - unsigned elements_count; - - /* - * Additional information describing the type, used by appropriate - * functions above. - */ - const void *specifics; -} asn_TYPE_descriptor_t; - -/* - * This type describes an element of the constructed type, - * i.e. SEQUENCE, SET, CHOICE, etc. - */ - enum asn_TYPE_flags_e { - ATF_NOFLAGS, - ATF_POINTER = 0x01, /* Represented by the pointer */ - ATF_OPEN_TYPE = 0x02, /* Open Type */ - ATF_ANY_TYPE = 0x04 /* ANY type (deprecated!) */ - }; -typedef struct asn_TYPE_member_s { - enum asn_TYPE_flags_e flags; /* Element's presentation flags */ - unsigned optional; /* Following optional members, including current */ - unsigned memb_offset; /* Offset of the element */ - ber_tlv_tag_t tag; /* Outmost (most immediate) tag */ - int tag_mode; /* IMPLICIT/no/EXPLICIT tag at current level */ - asn_TYPE_descriptor_t *type; /* Member type descriptor */ - asn_type_selector_f *type_selector; /* IoS runtime type selector */ - asn_encoding_constraints_t encoding_constraints; - int (*default_value_cmp)(const void *sptr); /* Compare DEFAULT */ - int (*default_value_set)(void **sptr); /* Set DEFAULT */ - const char *name; /* ASN.1 identifier of the element */ -} asn_TYPE_member_t; - -/* - * BER tag to element number mapping. - */ -typedef struct asn_TYPE_tag2member_s { - ber_tlv_tag_t el_tag; /* Outmost tag of the member */ - unsigned el_no; /* Index of the associated member, base 0 */ - int toff_first; /* First occurence of the el_tag, relative */ - int toff_last; /* Last occurence of the el_tag, relative */ -} asn_TYPE_tag2member_t; - -/* - * This function prints out the contents of the target language's structure - * (struct_ptr) into the file pointer (stream) in human readable form. - * RETURN VALUES: - * 0: The structure is printed. - * -1: Problem dumping the structure. - * (See also xer_fprint() in xer_encoder.h) - */ -int asn_fprint(FILE *stream, /* Destination stream descriptor */ - const asn_TYPE_descriptor_t *td, /* ASN.1 type descriptor */ - const void *struct_ptr); /* Structure to be printed */ - -#ifdef __cplusplus -} -#endif - -#endif /* _CONSTR_TYPE_H_ */ diff --git a/asn.1/generated/per_decoder.c b/asn.1/generated/per_decoder.c deleted file mode 100644 index a9051fb7..00000000 --- a/asn.1/generated/per_decoder.c +++ /dev/null @@ -1,97 +0,0 @@ -#include -#include -#include - -/* - * Decode a "Production of a complete encoding", X.691#10.1. - * The complete encoding contains at least one byte, and is an integral - * multiple of 8 bytes. - */ -asn_dec_rval_t -uper_decode_complete(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **sptr, - const void *buffer, size_t size) { - asn_dec_rval_t rval; - - rval = uper_decode(opt_codec_ctx, td, sptr, buffer, size, 0, 0); - if(rval.consumed) { - /* - * We've always given 8-aligned data, - * so convert bits to integral bytes. - */ - rval.consumed += 7; - rval.consumed >>= 3; - } else if(rval.code == RC_OK) { - if(size) { - if(((const uint8_t *)buffer)[0] == 0) { - rval.consumed = 1; /* 1 byte */ - } else { - ASN_DEBUG("Expecting single zeroed byte"); - rval.code = RC_FAIL; - } - } else { - /* Must contain at least 8 bits. */ - rval.code = RC_WMORE; - } - } - - return rval; -} - -asn_dec_rval_t -uper_decode(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **sptr, const void *buffer, - size_t size, int skip_bits, int unused_bits) { - asn_codec_ctx_t s_codec_ctx; - asn_dec_rval_t rval; - asn_per_data_t pd; - - if(skip_bits < 0 || skip_bits > 7 - || unused_bits < 0 || unused_bits > 7 - || (unused_bits > 0 && !size)) - ASN__DECODE_FAILED; - - /* - * Stack checker requires that the codec context - * must be allocated on the stack. - */ - if(opt_codec_ctx) { - if(opt_codec_ctx->max_stack_size) { - s_codec_ctx = *opt_codec_ctx; - opt_codec_ctx = &s_codec_ctx; - } - } else { - /* If context is not given, be security-conscious anyway */ - memset(&s_codec_ctx, 0, sizeof(s_codec_ctx)); - s_codec_ctx.max_stack_size = ASN__DEFAULT_STACK_MAX; - opt_codec_ctx = &s_codec_ctx; - } - - /* Fill in the position indicator */ - memset(&pd, 0, sizeof(pd)); - pd.buffer = (const uint8_t *)buffer; - pd.nboff = skip_bits; - pd.nbits = 8 * size - unused_bits; /* 8 is CHAR_BIT from */ - if(pd.nboff > pd.nbits) - ASN__DECODE_FAILED; - - /* - * Invoke type-specific decoder. - */ - if(!td->op->uper_decoder) - ASN__DECODE_FAILED; /* PER is not compiled in */ - rval = td->op->uper_decoder(opt_codec_ctx, td, 0, sptr, &pd); - if(rval.code == RC_OK) { - /* Return the number of consumed bits */ - rval.consumed = ((pd.buffer - (const uint8_t *)buffer) << 3) - + pd.nboff - skip_bits; - ASN_DEBUG("PER decoding consumed %ld, counted %ld", - (long)rval.consumed, (long)pd.moved); - assert(rval.consumed == pd.moved); - } else { - /* PER codec is not a restartable */ - rval.consumed = 0; - } - return rval; -} - diff --git a/asn.1/generated/per_decoder.h b/asn.1/generated/per_decoder.h deleted file mode 100644 index 710f4ee0..00000000 --- a/asn.1/generated/per_decoder.h +++ /dev/null @@ -1,57 +0,0 @@ -/*- - * Copyright (c) 2005-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef _PER_DECODER_H_ -#define _PER_DECODER_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct asn_TYPE_descriptor_s; /* Forward declaration */ - -/* - * Unaligned PER decoder of a "complete encoding" as per X.691 (08/2015) #11.1. - * On success, this call always returns (.consumed >= 1), as per #11.1.3. - */ -asn_dec_rval_t uper_decode_complete( - const struct asn_codec_ctx_s *opt_codec_ctx, - const struct asn_TYPE_descriptor_s *type_descriptor, /* Type to decode */ - void **struct_ptr, /* Pointer to a target structure's pointer */ - const void *buffer, /* Data to be decoded */ - size_t size /* Size of data buffer */ -); - -/* - * Unaligned PER decoder of any ASN.1 type. May be invoked by the application. - * WARNING: This call returns the number of BITS read from the stream. Beware. - */ -asn_dec_rval_t uper_decode( - const struct asn_codec_ctx_s *opt_codec_ctx, - const struct asn_TYPE_descriptor_s *type_descriptor, /* Type to decode */ - void **struct_ptr, /* Pointer to a target structure's pointer */ - const void *buffer, /* Data to be decoded */ - size_t size, /* Size of the input data buffer, in bytes */ - int skip_bits, /* Number of unused leading bits, 0..7 */ - int unused_bits /* Number of unused tailing bits, 0..7 */ -); - - -/* - * Type of the type-specific PER decoder function. - */ -typedef asn_dec_rval_t(per_type_decoder_f)( - const asn_codec_ctx_t *opt_codec_ctx, - const struct asn_TYPE_descriptor_s *type_descriptor, - const asn_per_constraints_t *constraints, void **struct_ptr, - asn_per_data_t *per_data); - -#ifdef __cplusplus -} -#endif - -#endif /* _PER_DECODER_H_ */ diff --git a/asn.1/generated/per_encoder.c b/asn.1/generated/per_encoder.c deleted file mode 100644 index 86aec4ea..00000000 --- a/asn.1/generated/per_encoder.c +++ /dev/null @@ -1,165 +0,0 @@ -#include -#include -#include - -static int _uper_encode_flush_outp(asn_per_outp_t *po); - -static int -ignore_output(const void *data, size_t size, void *app_key) { - (void)data; - (void)size; - (void)app_key; - return 0; -} - -asn_enc_rval_t -uper_encode(const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, const void *sptr, - asn_app_consume_bytes_f *cb, void *app_key) { - asn_per_outp_t po; - asn_enc_rval_t er; - - /* - * Invoke type-specific encoder. - */ - if(!td || !td->op->uper_encoder) - ASN__ENCODE_FAILED; /* PER is not compiled in */ - - po.buffer = po.tmpspace; - po.nboff = 0; - po.nbits = 8 * sizeof(po.tmpspace); - po.output = cb ? cb : ignore_output; - po.op_key = app_key; - po.flushed_bytes = 0; - - er = td->op->uper_encoder(td, constraints, sptr, &po); - if(er.encoded != -1) { - size_t bits_to_flush; - - bits_to_flush = ((po.buffer - po.tmpspace) << 3) + po.nboff; - - /* Set number of bits encoded to a firm value */ - er.encoded = (po.flushed_bytes << 3) + bits_to_flush; - - if(_uper_encode_flush_outp(&po)) ASN__ENCODE_FAILED; - } - - return er; -} - -/* - * Argument type and callback necessary for uper_encode_to_buffer(). - */ -typedef struct enc_to_buf_arg { - void *buffer; - size_t left; -} enc_to_buf_arg; -static int encode_to_buffer_cb(const void *buffer, size_t size, void *key) { - enc_to_buf_arg *arg = (enc_to_buf_arg *)key; - - if(arg->left < size) - return -1; /* Data exceeds the available buffer size */ - - memcpy(arg->buffer, buffer, size); - arg->buffer = ((char *)arg->buffer) + size; - arg->left -= size; - - return 0; -} - -asn_enc_rval_t -uper_encode_to_buffer(const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, - const void *sptr, void *buffer, size_t buffer_size) { - enc_to_buf_arg key; - - key.buffer = buffer; - key.left = buffer_size; - - if(td) ASN_DEBUG("Encoding \"%s\" using UNALIGNED PER", td->name); - - return uper_encode(td, constraints, sptr, encode_to_buffer_cb, &key); -} - -typedef struct enc_dyn_arg { - void *buffer; - size_t length; - size_t allocated; -} enc_dyn_arg; -static int -encode_dyn_cb(const void *buffer, size_t size, void *key) { - enc_dyn_arg *arg = key; - if(arg->length + size >= arg->allocated) { - size_t new_size = arg->allocated ? arg->allocated : 8; - void *p; - - do { - new_size <<= 2; - } while(arg->length + size >= new_size); - - p = REALLOC(arg->buffer, new_size); - if(!p) { - FREEMEM(arg->buffer); - memset(arg, 0, sizeof(*arg)); - return -1; - } - arg->buffer = p; - arg->allocated = new_size; - } - memcpy(((char *)arg->buffer) + arg->length, buffer, size); - arg->length += size; - return 0; -} -ssize_t -uper_encode_to_new_buffer(const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, - const void *sptr, void **buffer_r) { - asn_enc_rval_t er; - enc_dyn_arg key; - - memset(&key, 0, sizeof(key)); - - er = uper_encode(td, constraints, sptr, encode_dyn_cb, &key); - switch(er.encoded) { - case -1: - FREEMEM(key.buffer); - return -1; - case 0: - FREEMEM(key.buffer); - key.buffer = MALLOC(1); - if(key.buffer) { - *(char *)key.buffer = '\0'; - *buffer_r = key.buffer; - return 1; - } else { - return -1; - } - default: - *buffer_r = key.buffer; - ASN_DEBUG("Complete encoded in %ld bits", (long)er.encoded); - return ((er.encoded + 7) >> 3); - } -} - -/* - * Internally useful functions. - */ - -/* Flush partially filled buffer */ -static int -_uper_encode_flush_outp(asn_per_outp_t *po) { - uint8_t *buf; - - if(po->nboff == 0 && po->buffer == po->tmpspace) - return 0; - - buf = po->buffer + (po->nboff >> 3); - /* Make sure we account for the last, partially filled */ - if(po->nboff & 0x07) { - buf[0] &= 0xff << (8 - (po->nboff & 0x07)); - buf++; - } - - return po->output(po->tmpspace, buf - po->tmpspace, po->op_key); -} - diff --git a/asn.1/generated/per_encoder.h b/asn.1/generated/per_encoder.h deleted file mode 100644 index 44d8e8ac..00000000 --- a/asn.1/generated/per_encoder.h +++ /dev/null @@ -1,70 +0,0 @@ -/*- - * Copyright (c) 2006-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef _PER_ENCODER_H_ -#define _PER_ENCODER_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct asn_TYPE_descriptor_s; /* Forward declaration */ - -/* - * Unaligned PER encoder of any ASN.1 type. May be invoked by the application. - * WARNING: This function returns the number of encoded bits in the .encoded - * field of the return value. Use the following formula to convert to bytes: - * bytes = ((.encoded + 7) / 8) - */ -asn_enc_rval_t uper_encode( - const struct asn_TYPE_descriptor_s *type_descriptor, - const asn_per_constraints_t *constraints, - const void *struct_ptr, /* Structure to be encoded */ - asn_app_consume_bytes_f *consume_bytes_cb, /* Data collector */ - void *app_key /* Arbitrary callback argument */ -); - -/* - * A variant of uper_encode() which encodes data into the existing buffer - * WARNING: This function returns the number of encoded bits in the .encoded - * field of the return value. - */ -asn_enc_rval_t uper_encode_to_buffer( - const struct asn_TYPE_descriptor_s *type_descriptor, - const asn_per_constraints_t *constraints, - const void *struct_ptr, /* Structure to be encoded */ - void *buffer, /* Pre-allocated buffer */ - size_t buffer_size /* Initial buffer size (max) */ -); - -/* - * A variant of uper_encode_to_buffer() which allocates buffer itself. - * Returns the number of bytes in the buffer or -1 in case of failure. - * WARNING: This function produces a "Production of the complete encoding", - * with length of at least one octet. Contrast this to precise bit-packing - * encoding of uper_encode() and uper_encode_to_buffer(). - */ -ssize_t uper_encode_to_new_buffer( - const struct asn_TYPE_descriptor_s *type_descriptor, - const asn_per_constraints_t *constraints, - const void *struct_ptr, /* Structure to be encoded */ - void **buffer_r /* Buffer allocated and returned */ -); - -/* - * Type of the generic PER encoder function. - */ -typedef asn_enc_rval_t(per_type_encoder_f)( - const struct asn_TYPE_descriptor_s *type_descriptor, - const asn_per_constraints_t *constraints, const void *struct_ptr, - asn_per_outp_t *per_output); - -#ifdef __cplusplus -} -#endif - -#endif /* _PER_ENCODER_H_ */ diff --git a/asn.1/generated/per_opentype.c b/asn.1/generated/per_opentype.c deleted file mode 100644 index f86dad70..00000000 --- a/asn.1/generated/per_opentype.c +++ /dev/null @@ -1,396 +0,0 @@ -/* - * Copyright (c) 2007 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include -#include -#include - -typedef struct uper_ugot_key { - asn_per_data_t oldpd; /* Old per data source */ - size_t unclaimed; - size_t ot_moved; /* Number of bits moved by OT processing */ - int repeat; -} uper_ugot_key; - -static int uper_ugot_refill(asn_per_data_t *pd); -static int per_skip_bits(asn_per_data_t *pd, int skip_nbits); -static asn_dec_rval_t uper_sot_suck(const asn_codec_ctx_t *, - const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, - void **sptr, asn_per_data_t *pd); - -/* - * Encode an "open type field". - * #10.1, #10.2 - */ -int -uper_open_type_put(const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, const void *sptr, - asn_per_outp_t *po) { - void *buf; - void *bptr; - ssize_t size; - - ASN_DEBUG("Open type put %s ...", td->name); - - size = uper_encode_to_new_buffer(td, constraints, sptr, &buf); - if(size <= 0) return -1; - - ASN_DEBUG("Open type put %s of length %" ASN_PRI_SSIZE " + overhead (1byte?)", td->name, - size); - - bptr = buf; - do { - int need_eom = 0; - ssize_t may_save = uper_put_length(po, size, &need_eom); - ASN_DEBUG("Prepending length %" ASN_PRI_SSIZE - " to %s and allowing to save %" ASN_PRI_SSIZE, - size, td->name, may_save); - if(may_save < 0) break; - if(per_put_many_bits(po, bptr, may_save * 8)) break; - bptr = (char *)bptr + may_save; - size -= may_save; - if(need_eom && uper_put_length(po, 0, 0)) { - FREEMEM(buf); - return -1; - } - } while(size); - - FREEMEM(buf); - if(size) return -1; - - return 0; -} - -static asn_dec_rval_t -uper_open_type_get_simple(const asn_codec_ctx_t *ctx, - const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, void **sptr, - asn_per_data_t *pd) { - asn_dec_rval_t rv; - ssize_t chunk_bytes; - int repeat; - uint8_t *buf = 0; - size_t bufLen = 0; - size_t bufSize = 0; - asn_per_data_t spd; - size_t padding; - - ASN__STACK_OVERFLOW_CHECK(ctx); - - ASN_DEBUG("Getting open type %s...", td->name); - - do { - chunk_bytes = uper_get_length(pd, -1, 0, &repeat); - if(chunk_bytes < 0) { - FREEMEM(buf); - ASN__DECODE_STARVED; - } - if(bufLen + chunk_bytes > bufSize) { - void *ptr; - bufSize = chunk_bytes + (bufSize << 2); - ptr = REALLOC(buf, bufSize); - if(!ptr) { - FREEMEM(buf); - ASN__DECODE_FAILED; - } - buf = ptr; - } - if(per_get_many_bits(pd, buf + bufLen, 0, chunk_bytes << 3)) { - FREEMEM(buf); - ASN__DECODE_STARVED; - } - bufLen += chunk_bytes; - } while(repeat); - - ASN_DEBUG("Getting open type %s encoded in %ld bytes", td->name, - (long)bufLen); - - memset(&spd, 0, sizeof(spd)); - spd.buffer = buf; - spd.nbits = bufLen << 3; - - ASN_DEBUG_INDENT_ADD(+4); - rv = td->op->uper_decoder(ctx, td, constraints, sptr, &spd); - ASN_DEBUG_INDENT_ADD(-4); - - if(rv.code == RC_OK) { - /* Check padding validity */ - padding = spd.nbits - spd.nboff; - if ((padding < 8 || - /* X.691#10.1.3 */ - (spd.nboff == 0 && spd.nbits == 8 && spd.buffer == buf)) && - per_get_few_bits(&spd, padding) == 0) { - /* Everything is cool */ - FREEMEM(buf); - return rv; - } - FREEMEM(buf); - if(padding >= 8) { - ASN_DEBUG("Too large padding %d in open type", (int)padding); - ASN__DECODE_FAILED; - } else { - ASN_DEBUG("Non-zero padding"); - ASN__DECODE_FAILED; - } - } else { - FREEMEM(buf); - /* rv.code could be RC_WMORE, nonsense in this context */ - rv.code = RC_FAIL; /* Noone would give us more */ - } - - return rv; -} - -static asn_dec_rval_t CC_NOTUSED -uper_open_type_get_complex(const asn_codec_ctx_t *ctx, - const asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, void **sptr, - asn_per_data_t *pd) { - uper_ugot_key arg; - asn_dec_rval_t rv; - ssize_t padding; - - ASN__STACK_OVERFLOW_CHECK(ctx); - - ASN_DEBUG("Getting open type %s from %s", td->name, - asn_bit_data_string(pd)); - arg.oldpd = *pd; - arg.unclaimed = 0; - arg.ot_moved = 0; - arg.repeat = 1; - pd->refill = uper_ugot_refill; - pd->refill_key = &arg; - pd->nbits = pd->nboff; /* 0 good bits at this point, will refill */ - pd->moved = 0; /* This now counts the open type size in bits */ - - ASN_DEBUG_INDENT_ADD(+4); - rv = td->op->uper_decoder(ctx, td, constraints, sptr, pd); - ASN_DEBUG_INDENT_ADD(-4); - -#define UPDRESTOREPD do { \ - /* buffer and nboff are valid, preserve them. */ \ - pd->nbits = arg.oldpd.nbits - (pd->moved - arg.ot_moved); \ - pd->moved = arg.oldpd.moved + (pd->moved - arg.ot_moved); \ - pd->refill = arg.oldpd.refill; \ - pd->refill_key = arg.oldpd.refill_key; \ - } while(0) - - if(rv.code != RC_OK) { - UPDRESTOREPD; - return rv; - } - - ASN_DEBUG("OpenType %s pd%s old%s unclaimed=%d, repeat=%d", td->name, - asn_bit_data_string(pd), - asn_bit_data_string(&arg.oldpd), - (int)arg.unclaimed, (int)arg.repeat); - - padding = pd->moved % 8; - if(padding) { - int32_t pvalue; - if(padding > 7) { - ASN_DEBUG("Too large padding %d in open type", - (int)padding); - rv.code = RC_FAIL; - UPDRESTOREPD; - return rv; - } - padding = 8 - padding; - ASN_DEBUG("Getting padding of %d bits", (int)padding); - pvalue = per_get_few_bits(pd, padding); - switch(pvalue) { - case -1: - ASN_DEBUG("Padding skip failed"); - UPDRESTOREPD; - ASN__DECODE_STARVED; - case 0: break; - default: - ASN_DEBUG("Non-blank padding (%d bits 0x%02x)", - (int)padding, (int)pvalue); - UPDRESTOREPD; - ASN__DECODE_FAILED; - } - } - if(pd->nboff != pd->nbits) { - ASN_DEBUG("Open type %s overhead pd%s old%s", td->name, - asn_bit_data_string(pd), asn_bit_data_string(&arg.oldpd)); - if(1) { - UPDRESTOREPD; - ASN__DECODE_FAILED; - } else { - arg.unclaimed += pd->nbits - pd->nboff; - } - } - - /* Adjust pd back so it points to original data */ - UPDRESTOREPD; - - /* Skip data not consumed by the decoder */ - if(arg.unclaimed) { - ASN_DEBUG("Getting unclaimed %d", (int)arg.unclaimed); - switch(per_skip_bits(pd, arg.unclaimed)) { - case -1: - ASN_DEBUG("Claim of %d failed", (int)arg.unclaimed); - ASN__DECODE_STARVED; - case 0: - ASN_DEBUG("Got claim of %d", (int)arg.unclaimed); - break; - default: - /* Padding must be blank */ - ASN_DEBUG("Non-blank unconsumed padding"); - ASN__DECODE_FAILED; - } - arg.unclaimed = 0; - } - - if(arg.repeat) { - ASN_DEBUG("Not consumed the whole thing"); - rv.code = RC_FAIL; - return rv; - } - - return rv; -} - - -asn_dec_rval_t -uper_open_type_get(const asn_codec_ctx_t *ctx, const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, void **sptr, - asn_per_data_t *pd) { - return uper_open_type_get_simple(ctx, td, constraints, sptr, pd); -} - -int -uper_open_type_skip(const asn_codec_ctx_t *ctx, asn_per_data_t *pd) { - asn_TYPE_descriptor_t s_td; - asn_TYPE_operation_t s_op; - asn_dec_rval_t rv; - - s_td.name = ""; - s_td.op = &s_op; - s_op.uper_decoder = uper_sot_suck; - - rv = uper_open_type_get(ctx, &s_td, 0, 0, pd); - if(rv.code != RC_OK) - return -1; - else - return 0; -} - -/* - * Internal functions. - */ - -static asn_dec_rval_t -uper_sot_suck(const asn_codec_ctx_t *ctx, const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, void **sptr, - asn_per_data_t *pd) { - asn_dec_rval_t rv; - - (void)ctx; - (void)td; - (void)constraints; - (void)sptr; - - while(per_get_few_bits(pd, 24) >= 0); - - rv.code = RC_OK; - rv.consumed = pd->moved; - - return rv; -} - -static int -uper_ugot_refill(asn_per_data_t *pd) { - uper_ugot_key *arg = pd->refill_key; - ssize_t next_chunk_bytes, next_chunk_bits; - ssize_t avail; - - asn_per_data_t *oldpd = &arg->oldpd; - - ASN_DEBUG("REFILLING pd->moved=%ld, oldpd->moved=%ld", - (long)pd->moved, (long)oldpd->moved); - - /* Advance our position to where pd is */ - oldpd->buffer = pd->buffer; - oldpd->nboff = pd->nboff; - oldpd->nbits -= pd->moved - arg->ot_moved; - oldpd->moved += pd->moved - arg->ot_moved; - arg->ot_moved = pd->moved; - - if(arg->unclaimed) { - /* Refill the container */ - if(per_get_few_bits(oldpd, 1)) - return -1; - if(oldpd->nboff == 0) { - assert(0); - return -1; - } - pd->buffer = oldpd->buffer; - pd->nboff = oldpd->nboff - 1; - pd->nbits = oldpd->nbits; - ASN_DEBUG("UNCLAIMED <- return from (pd->moved=%ld)", - (long)pd->moved); - return 0; - } - - if(!arg->repeat) { - ASN_DEBUG("Want more but refill doesn't have it"); - return -1; - } - - next_chunk_bytes = uper_get_length(oldpd, -1, 0, &arg->repeat); - ASN_DEBUG("Open type LENGTH %ld bytes at off %ld, repeat %ld", - (long)next_chunk_bytes, (long)oldpd->moved, (long)arg->repeat); - if(next_chunk_bytes < 0) return -1; - if(next_chunk_bytes == 0) { - pd->refill = 0; /* No more refills, naturally */ - assert(!arg->repeat); /* Implementation guarantee */ - } - next_chunk_bits = next_chunk_bytes << 3; - avail = oldpd->nbits - oldpd->nboff; - if(avail >= next_chunk_bits) { - pd->nbits = oldpd->nboff + next_chunk_bits; - arg->unclaimed = 0; - ASN_DEBUG("!+Parent frame %ld bits, alloting %ld [%ld..%ld] (%ld)", - (long)next_chunk_bits, (long)oldpd->moved, - (long)oldpd->nboff, (long)oldpd->nbits, - (long)(oldpd->nbits - oldpd->nboff)); - } else { - pd->nbits = oldpd->nbits; - arg->unclaimed = next_chunk_bits - avail; - ASN_DEBUG("!-Parent frame %ld, require %ld, will claim %ld", - (long)avail, (long)next_chunk_bits, - (long)arg->unclaimed); - } - pd->buffer = oldpd->buffer; - pd->nboff = oldpd->nboff; - ASN_DEBUG("Refilled pd%s old%s", - asn_bit_data_string(pd), asn_bit_data_string(oldpd)); - return 0; -} - -static int -per_skip_bits(asn_per_data_t *pd, int skip_nbits) { - int hasNonZeroBits = 0; - while(skip_nbits > 0) { - int skip; - - /* per_get_few_bits() is more efficient when nbits <= 24 */ - if(skip_nbits < 24) - skip = skip_nbits; - else - skip = 24; - skip_nbits -= skip; - - switch(per_get_few_bits(pd, skip)) { - case -1: return -1; /* Starving */ - case 0: continue; /* Skipped empty space */ - default: hasNonZeroBits = 1; continue; - } - } - return hasNonZeroBits; -} diff --git a/asn.1/generated/per_opentype.h b/asn.1/generated/per_opentype.h deleted file mode 100644 index 7e7dc610..00000000 --- a/asn.1/generated/per_opentype.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2007-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef _PER_OPENTYPE_H_ -#define _PER_OPENTYPE_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -asn_dec_rval_t uper_open_type_get(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, - void **sptr, asn_per_data_t *pd); - -int uper_open_type_skip(const asn_codec_ctx_t *opt_codec_ctx, - asn_per_data_t *pd); - -/* - * X.691 (2015/08), #11.2 - * Returns -1 if error is encountered. 0 if all OK. - */ -int uper_open_type_put(const asn_TYPE_descriptor_t *td, - const asn_per_constraints_t *constraints, - const void *sptr, asn_per_outp_t *po); - -#ifdef __cplusplus -} -#endif - -#endif /* _PER_OPENTYPE_H_ */ diff --git a/asn.1/generated/per_support.c b/asn.1/generated/per_support.c deleted file mode 100644 index 481d85c1..00000000 --- a/asn.1/generated/per_support.c +++ /dev/null @@ -1,375 +0,0 @@ -/* - * Copyright (c) 2005-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include -#include - -/* - * X.691-201508 #10.9 General rules for encoding a length determinant. - * Get the optionally constrained length "n" from the stream. - */ -ssize_t -uper_get_length(asn_per_data_t *pd, int ebits, size_t lower_bound, - int *repeat) { - ssize_t value; - - *repeat = 0; - - /* #11.9.4.1 Encoding if constrained (according to effective bits) */ - if(ebits >= 0 && ebits <= 16) { - value = per_get_few_bits(pd, ebits); - if(value >= 0) value += lower_bound; - return value; - } - - value = per_get_few_bits(pd, 8); - if((value & 0x80) == 0) { /* #11.9.3.6 */ - return (value & 0x7F); - } else if((value & 0x40) == 0) { /* #11.9.3.7 */ - /* bit 8 ... set to 1 and bit 7 ... set to zero */ - value = ((value & 0x3f) << 8) | per_get_few_bits(pd, 8); - return value; /* potential -1 from per_get_few_bits passes through. */ - } else if(value < 0) { - ASN_DEBUG("END of stream reached for PER"); - return -1; - } - value &= 0x3f; /* this is "m" from X.691, #11.9.3.8 */ - if(value < 1 || value > 4) { - return -1; /* Prohibited by #11.9.3.8 */ - } - *repeat = 1; - return (16384 * value); -} - -/* - * Get the normally small length "n". - * This procedure used to decode length of extensions bit-maps - * for SET and SEQUENCE types. - */ -ssize_t -uper_get_nslength(asn_per_data_t *pd) { - ssize_t length; - - ASN_DEBUG("Getting normally small length"); - - if(per_get_few_bits(pd, 1) == 0) { - length = per_get_few_bits(pd, 6) + 1; - if(length <= 0) return -1; - ASN_DEBUG("l=%d", (int)length); - return length; - } else { - int repeat; - length = uper_get_length(pd, -1, 0, &repeat); - if(length >= 0 && !repeat) return length; - return -1; /* Error, or do not support >16K extensions */ - } -} - -/* - * Get the normally small non-negative whole number. - * X.691, #10.6 - */ -ssize_t -uper_get_nsnnwn(asn_per_data_t *pd) { - ssize_t value; - - value = per_get_few_bits(pd, 7); - if(value & 64) { /* implicit (value < 0) */ - value &= 63; - value <<= 2; - value |= per_get_few_bits(pd, 2); - if(value & 128) /* implicit (value < 0) */ - return -1; - if(value == 0) - return 0; - if(value >= 3) - return -1; - value = per_get_few_bits(pd, 8 * value); - return value; - } - - return value; -} - -/* - * X.691-11/2008, #11.6 - * Encoding of a normally small non-negative whole number - */ -int -uper_put_nsnnwn(asn_per_outp_t *po, int n) { - int bytes; - - if(n <= 63) { - if(n < 0) return -1; - return per_put_few_bits(po, n, 7); - } - if(n < 256) - bytes = 1; - else if(n < 65536) - bytes = 2; - else if(n < 256 * 65536) - bytes = 3; - else - return -1; /* This is not a "normally small" value */ - if(per_put_few_bits(po, bytes, 8)) - return -1; - - return per_put_few_bits(po, n, 8 * bytes); -} - - -/* X.691-2008/11, #11.5.6 -> #11.3 */ -int uper_get_constrained_whole_number(asn_per_data_t *pd, uintmax_t *out_value, int nbits) { - uintmax_t lhalf; /* Lower half of the number*/ - intmax_t half; - - if(nbits <= 31) { - half = per_get_few_bits(pd, nbits); - if(half < 0) return -1; - *out_value = half; - return 0; - } - - if((size_t)nbits > 8 * sizeof(*out_value)) - return -1; /* RANGE */ - - half = per_get_few_bits(pd, 31); - if(half < 0) return -1; - - if(uper_get_constrained_whole_number(pd, &lhalf, nbits - 31)) - return -1; - - *out_value = ((uintmax_t)half << (nbits - 31)) | lhalf; - return 0; -} - - -/* X.691-2008/11, #11.5.6 -> #11.3 */ -int -uper_put_constrained_whole_number_u(asn_per_outp_t *po, uintmax_t v, - int nbits) { - if(nbits <= 31) { - return per_put_few_bits(po, v, nbits); - } else { - /* Put higher portion first, followed by lower 31-bit */ - if(uper_put_constrained_whole_number_u(po, v >> 31, nbits - 31)) - return -1; - return per_put_few_bits(po, v, 31); - } -} - -/* - * X.691 (08/2015) #11.9 "General rules for encoding a length determinant" - * Put the length "n" (or part of it) into the stream. - */ -ssize_t -uper_put_length(asn_per_outp_t *po, size_t length, int *need_eom) { - int dummy = 0; - if(!need_eom) need_eom = &dummy; - - if(length <= 127) { /* #11.9.3.6 */ - *need_eom = 0; - return per_put_few_bits(po, length, 8) - ? -1 : (ssize_t)length; - } else if(length < 16384) { /* #10.9.3.7 */ - *need_eom = 0; - return per_put_few_bits(po, length|0x8000, 16) - ? -1 : (ssize_t)length; - } - - *need_eom = 0 == (length & 16383); - length >>= 14; - if(length > 4) { - *need_eom = 0; - length = 4; - } - - return per_put_few_bits(po, 0xC0 | length, 8) - ? -1 : (ssize_t)(length << 14); - -} - - -/* - * Put the normally small length "n" into the stream. - * This procedure used to encode length of extensions bit-maps - * for SET and SEQUENCE types. - */ -int -uper_put_nslength(asn_per_outp_t *po, size_t length) { - if(length <= 64) { - /* #11.9.3.4 */ - if(length == 0) return -1; - return per_put_few_bits(po, length - 1, 7) ? -1 : 0; - } else { - int need_eom = 0; - if(uper_put_length(po, length, &need_eom) != (ssize_t)length - || need_eom) { - /* This might happen in case of >16K extensions */ - return -1; - } - } - - return 0; -} - -static int -per__long_range(long lb, long ub, unsigned long *range_r) { - unsigned long bounds_range; - if((ub < 0) == (lb < 0)) { - bounds_range = ub - lb; - } else if(lb < 0) { - assert(ub >= 0); - bounds_range = 1 + ((unsigned long)ub + (unsigned long)-(lb + 1)); - } else { - assert(!"Unreachable"); - return -1; - } - *range_r = bounds_range; - return 0; -} - -int -per_long_range_rebase(long v, long lb, long ub, unsigned long *output) { - unsigned long range; - - assert(lb <= ub); - - if(v < lb || v > ub || per__long_range(lb, ub, &range) < 0) { - /* Range error. */ - return -1; - } - - /* - * Fundamentally what we're doing is returning (v-lb). - * However, this triggers undefined behavior when the word width - * of signed (v) is the same as the size of unsigned (*output). - * In practice, it triggers the UndefinedSanitizer. Therefore we shall - * compute the ranges accurately to avoid C's undefined behavior. - */ - if((v < 0) == (lb < 0)) { - *output = v-lb; - return 0; - } else if(v < 0) { - unsigned long rebased = 1 + (unsigned long)-(v+1) + (unsigned long)lb; - assert(rebased <= range); /* By construction */ - *output = rebased; - return 0; - } else if(lb < 0) { - unsigned long rebased = 1 + (unsigned long)-(lb+1) + (unsigned long)v; - assert(rebased <= range); /* By construction */ - *output = rebased; - return 0; - } else { - assert(!"Unreachable"); - return -1; - } -} - -int -per_long_range_unrebase(unsigned long inp, long lb, long ub, long *outp) { - unsigned long range; - - if(per__long_range(lb, ub, &range) != 0) { - return -1; - } - - if(inp > range) { - /* - * We can encode something in the given number of bits that technically - * exceeds the range. This is an avenue for security errors, - * so we don't allow that. - */ - return -1; - } - - if(inp <= LONG_MAX) { - *outp = (long)inp + lb; - } else { - *outp = (lb + LONG_MAX + 1) + (long)((inp - LONG_MAX) - 1); - } - - return 0; -} - -static int -per__max_range(intmax_t lb, intmax_t ub, uintmax_t *range_r) { - uintmax_t bounds_range; - if((ub < 0) == (lb < 0)) { - bounds_range = ub - lb; - } else if(lb < 0) { - assert(ub >= 0); - bounds_range = 1 + ((uintmax_t)ub + (uintmax_t)-(lb + 1)); - } else { - assert(!"Unreachable"); - return -1; - } - *range_r = bounds_range; - return 0; -} - - -int -per_max_range_rebase(intmax_t v, intmax_t lb, intmax_t ub, uintmax_t *output) { - uintmax_t range; - - assert(lb <= ub); - - if(v < lb || v > ub || per__max_range(lb, ub, &range) < 0) { - /* Range error. */ - return -1; - } - - /* - * Fundamentally what we're doing is returning (v-lb). - * However, this triggers undefined behavior when the word width - * of signed (v) is the same as the size of unsigned (*output). - * In practice, it triggers the UndefinedSanitizer. Therefore we shall - * compute the ranges accurately to avoid C's undefined behavior. - */ - if((v < 0) == (lb < 0)) { - *output = v-lb; - return 0; - } else if(v < 0) { - uintmax_t rebased = 1 + (uintmax_t)-(v+1) + (uintmax_t)lb; - assert(rebased <= range); /* By construction */ - *output = rebased; - return 0; - } else if(lb < 0) { - uintmax_t rebased = 1 + (uintmax_t)-(lb+1) + (uintmax_t)v; - assert(rebased <= range); /* By construction */ - *output = rebased; - return 0; - } else { - assert(!"Unreachable"); - return -1; - } -} - -int -per_max_range_unrebase(uintmax_t inp, intmax_t lb, intmax_t ub, intmax_t *outp) { - uintmax_t range; - - if(per__max_range(lb, ub, &range) != 0) { - return -1; - } - - if(inp > range) { - /* - * We can encode something in the given number of bits that technically - * exceeds the range. This is an avenue for security errors, - * so we don't allow that. - */ - return -1; - } - - if(inp <= INTMAX_MAX) { - *outp = (intmax_t)inp + lb; - } else { - *outp = (lb + INTMAX_MAX + 1) + (long)((inp - INTMAX_MAX) - 1); - } - - return 0; -} \ No newline at end of file diff --git a/asn.1/generated/per_support.h b/asn.1/generated/per_support.h deleted file mode 100644 index 87437db9..00000000 --- a/asn.1/generated/per_support.h +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright (c) 2005-2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef _PER_SUPPORT_H_ -#define _PER_SUPPORT_H_ - -#include /* Platform-specific types */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Pre-computed PER constraints. - */ -typedef struct asn_per_constraint_s { - enum asn_per_constraint_flags { - APC_UNCONSTRAINED = 0x0, /* No PER visible constraints */ - APC_SEMI_CONSTRAINED = 0x1, /* Constrained at "lb" */ - APC_CONSTRAINED = 0x2, /* Fully constrained */ - APC_EXTENSIBLE = 0x4 /* May have extension */ - } flags; - int range_bits; /* Full number of bits in the range */ - int effective_bits; /* Effective bits */ - intmax_t lower_bound; /* "lb" value */ - intmax_t upper_bound; /* "ub" value */ -} asn_per_constraint_t; -typedef struct asn_per_constraints_s { - asn_per_constraint_t value; - asn_per_constraint_t size; - int (*value2code)(unsigned int value); - int (*code2value)(unsigned int code); -} asn_per_constraints_t; - -/* Temporary compatibility layer. Will get removed. */ -typedef struct asn_bit_data_s asn_per_data_t; -#define per_get_few_bits(data, bits) asn_get_few_bits(data, bits) -#define per_get_undo(data, bits) asn_get_undo(data, bits) -#define per_get_many_bits(data, dst, align, bits) \ - asn_get_many_bits(data, dst, align, bits) - -/* - * X.691 (08/2015) #11.9 "General rules for encoding a length determinant" - * Get the length "n" from the Unaligned PER stream. - */ -ssize_t uper_get_length(asn_per_data_t *pd, int effective_bound_bits, - size_t lower_bound, int *repeat); - -/* - * Get the normally small length "n". - */ -ssize_t uper_get_nslength(asn_per_data_t *pd); - -/* - * Get the normally small non-negative whole number. - */ -ssize_t uper_get_nsnnwn(asn_per_data_t *pd); - -/* X.691-2008/11, #11.5.6 */ -int uper_get_constrained_whole_number(asn_per_data_t *pd, uintmax_t *v, int nbits); - - -/* Temporary compatibility layer. Will get removed. */ -typedef struct asn_bit_outp_s asn_per_outp_t; -#define per_put_few_bits(out, bits, obits) asn_put_few_bits(out, bits, obits) -#define per_put_many_bits(out, src, nbits) asn_put_many_bits(out, src, nbits) -#define per_put_aligned_flush(out) asn_put_aligned_flush(out) - - -/* - * Rebase the given value as an offset into the range specified by the - * lower bound (lb) and upper bound (ub). - * RETURN VALUES: - * -1: Conversion failed due to range problems. - * 0: Conversion was successful. - */ -int per_long_range_rebase(long v, long lb, long ub, unsigned long *output); -/* The inverse operation: restores the value by the offset and its bounds. */ -int per_long_range_unrebase(unsigned long inp, long lb, long ub, long *outp); - -int -per_max_range_rebase(intmax_t v, intmax_t lb, intmax_t ub, uintmax_t *output); -int -per_max_range_unrebase(uintmax_t inp, intmax_t lb, intmax_t ub, intmax_t *outp); - -/* X.691-2008/11, #11.5 */ -int uper_put_constrained_whole_number_u(asn_per_outp_t *po, uintmax_t v, int nbits); - -/* - * X.691 (08/2015) #11.9 "General rules for encoding a length determinant" - * Put the length "whole_length" to the Unaligned PER stream. - * If (opt_need_eom) is given, it will be set to 1 if final 0-length is needed. - * In that case, invoke uper_put_length(po, 0, 0) after encoding the last block. - * This function returns the number of units which may be flushed - * in the next units saving iteration. - */ -ssize_t uper_put_length(asn_per_outp_t *po, size_t whole_length, - int *opt_need_eom); - -/* - * Put the normally small length "n" to the Unaligned PER stream. - * Returns 0 or -1. - */ -int uper_put_nslength(asn_per_outp_t *po, size_t length); - -/* - * Put the normally small non-negative whole number. - */ -int uper_put_nsnnwn(asn_per_outp_t *po, int n); - -#ifdef __cplusplus -} -#endif - -#endif /* _PER_SUPPORT_H_ */ diff --git a/asn.1/helper/CMakeLists.txt b/asn.1/helper/CMakeLists.txt index 65864050..05764a57 100644 --- a/asn.1/helper/CMakeLists.txt +++ b/asn.1/helper/CMakeLists.txt @@ -6,7 +6,7 @@ add_library(asn1::helper ALIAS asn1_helper) target_include_directories(asn1_helper PRIVATE "./" "include/asn.1") target_include_directories(asn1_helper PUBLIC "include/") -target_link_libraries(asn1_helper PRIVATE asn1::generated) +target_link_libraries(asn1_helper PUBLIC asn1::generated::lpp asn1::generated::supl asn1::skeleton) if (USE_ASAN) target_compile_options(asn1_helper PRIVATE -fsanitize=address,undefined,leak) diff --git a/asn.1/helper/bit_string.cpp b/asn.1/helper/bit_string.cpp index c1aee9c4..2a744cfa 100644 --- a/asn.1/helper/bit_string.cpp +++ b/asn.1/helper/bit_string.cpp @@ -86,6 +86,7 @@ int64_t BitString::as_int64() const { return *reinterpret_cast(&value); } +#if 0 std::string BitString::as_string() const { std::stringstream stream; @@ -159,7 +160,7 @@ std::string BitString::as_string() const { delete[] data; return stream.str(); } - +#endif #endif static void BIT_STRING_initialize(BIT_STRING_s* bit_string, size_t bits) { diff --git a/asn.1/helper/include/asn.1/bit_string.hpp b/asn.1/helper/include/asn.1/bit_string.hpp index cad34246..02cb40fb 100644 --- a/asn.1/helper/include/asn.1/bit_string.hpp +++ b/asn.1/helper/include/asn.1/bit_string.hpp @@ -17,7 +17,9 @@ class BitString : public BIT_STRING_s { void set_integer(size_t, size_t, size_t); int64_t as_int64() const; +#if 0 std::string as_string() const; +#endif static BitString* allocate(size_t bits) { auto data = asn1_allocate(); diff --git a/asn.1/lpp_generated/A-GNSS-Error.c b/asn.1/lpp_generated/A-GNSS-Error.c new file mode 100644 index 00000000..09a7f7d6 --- /dev/null +++ b/asn.1/lpp_generated/A-GNSS-Error.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "A-GNSS-Error.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_A_GNSS_Error_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_A_GNSS_Error_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct A_GNSS_Error, choice.locationServerErrorCauses), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_LocationServerErrorCauses, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationServerErrorCauses" + }, + { ATF_NOFLAGS, 0, offsetof(struct A_GNSS_Error, choice.targetDeviceErrorCauses), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_TargetDeviceErrorCauses, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "targetDeviceErrorCauses" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_A_GNSS_Error_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses */ +}; +asn_CHOICE_specifics_t asn_SPC_A_GNSS_Error_specs_1 = { + sizeof(struct A_GNSS_Error), + offsetof(struct A_GNSS_Error, _asn_ctx), + offsetof(struct A_GNSS_Error, present), + sizeof(((struct A_GNSS_Error *)0)->present), + asn_MAP_A_GNSS_Error_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_A_GNSS_Error = { + "A-GNSS-Error", + "A-GNSS-Error", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_A_GNSS_Error_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_A_GNSS_Error_1, + 2, /* Elements count */ + &asn_SPC_A_GNSS_Error_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/A-GNSS-Error.h b/asn.1/lpp_generated/A-GNSS-Error.h similarity index 84% rename from asn.1/generated/A-GNSS-Error.h rename to asn.1/lpp_generated/A-GNSS-Error.h index f94c6b4f..e9c04133 100644 --- a/asn.1/generated/A-GNSS-Error.h +++ b/asn.1/lpp_generated/A-GNSS-Error.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _A_GNSS_Error_H_ diff --git a/asn.1/lpp_generated/A-GNSS-ProvideAssistanceData.c b/asn.1/lpp_generated/A-GNSS-ProvideAssistanceData.c new file mode 100644 index 00000000..f2a755bd --- /dev/null +++ b/asn.1/lpp_generated/A-GNSS-ProvideAssistanceData.c @@ -0,0 +1,187 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "A-GNSS-ProvideAssistanceData.h" + +#include "GNSS-CommonAssistData.h" +#include "GNSS-GenericAssistData.h" +#include "A-GNSS-Error.h" +#include "GNSS-PeriodicAssistData-r15.h" +static asn_TYPE_member_t asn_MBR_ext1_6[] = { + { ATF_POINTER, 1, offsetof(struct A_GNSS_ProvideAssistanceData__ext1, gnss_PeriodicAssistData_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicAssistData_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-PeriodicAssistData-r15" + }, +}; +static const int asn_MAP_ext1_oms_6[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-PeriodicAssistData-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = { + sizeof(struct A_GNSS_ProvideAssistanceData__ext1), + offsetof(struct A_GNSS_ProvideAssistanceData__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_6, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_6, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_6 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_6, + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_6, /* Same as above */ + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_6, + 1, /* Elements count */ + &asn_SPC_ext1_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_A_GNSS_ProvideAssistanceData_1[] = { + { ATF_POINTER, 4, offsetof(struct A_GNSS_ProvideAssistanceData, gnss_CommonAssistData), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_CommonAssistData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-CommonAssistData" + }, + { ATF_POINTER, 3, offsetof(struct A_GNSS_ProvideAssistanceData, gnss_GenericAssistData), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_GenericAssistData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-GenericAssistData" + }, + { ATF_POINTER, 2, offsetof(struct A_GNSS_ProvideAssistanceData, gnss_Error), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_A_GNSS_Error, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-Error" + }, + { ATF_POINTER, 1, offsetof(struct A_GNSS_ProvideAssistanceData, ext1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext1_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_A_GNSS_ProvideAssistanceData_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_A_GNSS_ProvideAssistanceData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_A_GNSS_ProvideAssistanceData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-CommonAssistData */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-GenericAssistData */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-Error */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_ProvideAssistanceData_specs_1 = { + sizeof(struct A_GNSS_ProvideAssistanceData), + offsetof(struct A_GNSS_ProvideAssistanceData, _asn_ctx), + asn_MAP_A_GNSS_ProvideAssistanceData_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_A_GNSS_ProvideAssistanceData_oms_1, /* Optional members */ + 3, 1, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_A_GNSS_ProvideAssistanceData = { + "A-GNSS-ProvideAssistanceData", + "A-GNSS-ProvideAssistanceData", + &asn_OP_SEQUENCE, + asn_DEF_A_GNSS_ProvideAssistanceData_tags_1, + sizeof(asn_DEF_A_GNSS_ProvideAssistanceData_tags_1) + /sizeof(asn_DEF_A_GNSS_ProvideAssistanceData_tags_1[0]), /* 1 */ + asn_DEF_A_GNSS_ProvideAssistanceData_tags_1, /* Same as above */ + sizeof(asn_DEF_A_GNSS_ProvideAssistanceData_tags_1) + /sizeof(asn_DEF_A_GNSS_ProvideAssistanceData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_A_GNSS_ProvideAssistanceData_1, + 4, /* Elements count */ + &asn_SPC_A_GNSS_ProvideAssistanceData_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/A-GNSS-ProvideAssistanceData.h b/asn.1/lpp_generated/A-GNSS-ProvideAssistanceData.h new file mode 100644 index 00000000..3f63b1de --- /dev/null +++ b/asn.1/lpp_generated/A-GNSS-ProvideAssistanceData.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _A_GNSS_ProvideAssistanceData_H_ +#define _A_GNSS_ProvideAssistanceData_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GNSS_CommonAssistData; +struct GNSS_GenericAssistData; +struct A_GNSS_Error; +struct GNSS_PeriodicAssistData_r15; + +/* A-GNSS-ProvideAssistanceData */ +typedef struct A_GNSS_ProvideAssistanceData { + struct GNSS_CommonAssistData *gnss_CommonAssistData; /* OPTIONAL */ + struct GNSS_GenericAssistData *gnss_GenericAssistData; /* OPTIONAL */ + struct A_GNSS_Error *gnss_Error; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct A_GNSS_ProvideAssistanceData__ext1 { + struct GNSS_PeriodicAssistData_r15 *gnss_PeriodicAssistData_r15; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} A_GNSS_ProvideAssistanceData_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_A_GNSS_ProvideAssistanceData; +extern asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_ProvideAssistanceData_specs_1; +extern asn_TYPE_member_t asn_MBR_A_GNSS_ProvideAssistanceData_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _A_GNSS_ProvideAssistanceData_H_ */ +#include diff --git a/asn.1/lpp_generated/A-GNSS-ProvideCapabilities.c b/asn.1/lpp_generated/A-GNSS-ProvideCapabilities.c new file mode 100644 index 00000000..da08b116 --- /dev/null +++ b/asn.1/lpp_generated/A-GNSS-ProvideCapabilities.c @@ -0,0 +1,475 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "A-GNSS-ProvideCapabilities.h" + +#include "GNSS-SupportList.h" +#include "AssistanceDataSupportList.h" +#include "LocationCoordinateTypes.h" +#include "VelocityTypes.h" +#include "PositioningModes.h" +#include "ScheduledLocationTimeSupportPerMode-r17.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_periodicAssistanceData_r15_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_idleStateForMeasurements_r14_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_periodicAssistanceData_r15_constr_12 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_idleStateForMeasurements_r14_value2enum_9[] = { + { 0, 8, "required" } +}; +static const unsigned int asn_MAP_idleStateForMeasurements_r14_enum2value_9[] = { + 0 /* required(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_idleStateForMeasurements_r14_specs_9 = { + asn_MAP_idleStateForMeasurements_r14_value2enum_9, /* "tag" => N; sorted by tag */ + asn_MAP_idleStateForMeasurements_r14_enum2value_9, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_idleStateForMeasurements_r14_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_idleStateForMeasurements_r14_9 = { + "idleStateForMeasurements-r14", + "idleStateForMeasurements-r14", + &asn_OP_NativeEnumerated, + asn_DEF_idleStateForMeasurements_r14_tags_9, + sizeof(asn_DEF_idleStateForMeasurements_r14_tags_9) + /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_9[0]) - 1, /* 1 */ + asn_DEF_idleStateForMeasurements_r14_tags_9, /* Same as above */ + sizeof(asn_DEF_idleStateForMeasurements_r14_tags_9) + /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_idleStateForMeasurements_r14_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_idleStateForMeasurements_r14_specs_9 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 2, offsetof(struct A_GNSS_ProvideCapabilities__ext1, periodicalReportingNotSupported_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningModes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "periodicalReportingNotSupported-r14" + }, + { ATF_POINTER, 1, offsetof(struct A_GNSS_ProvideCapabilities__ext1, idleStateForMeasurements_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_idleStateForMeasurements_r14_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "idleStateForMeasurements-r14" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* periodicalReportingNotSupported-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* idleStateForMeasurements-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct A_GNSS_ProvideCapabilities__ext1), + offsetof(struct A_GNSS_ProvideCapabilities__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 2, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_11[] = { + { ATF_POINTER, 1, offsetof(struct A_GNSS_ProvideCapabilities__ext2, periodicAssistanceData_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_periodicAssistanceData_r15_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_periodicAssistanceData_r15_constraint_11 + }, + 0, 0, /* No default value */ + "periodicAssistanceData-r15" + }, +}; +static const int asn_MAP_ext2_oms_11[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* periodicAssistanceData-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_11 = { + sizeof(struct A_GNSS_ProvideCapabilities__ext2), + offsetof(struct A_GNSS_ProvideCapabilities__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_11, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_11, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_11 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_11, + sizeof(asn_DEF_ext2_tags_11) + /sizeof(asn_DEF_ext2_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_11, /* Same as above */ + sizeof(asn_DEF_ext2_tags_11) + /sizeof(asn_DEF_ext2_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_11, + 1, /* Elements count */ + &asn_SPC_ext2_specs_11 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_15[] = { + { ATF_POINTER, 1, offsetof(struct A_GNSS_ProvideCapabilities__ext3, scheduledLocationRequestSupported_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ScheduledLocationTimeSupportPerMode_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scheduledLocationRequestSupported-r17" + }, +}; +static const int asn_MAP_ext3_oms_15[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_15[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* scheduledLocationRequestSupported-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_15 = { + sizeof(struct A_GNSS_ProvideCapabilities__ext3), + offsetof(struct A_GNSS_ProvideCapabilities__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_15, + 1, /* Count of tags in the map */ + asn_MAP_ext3_oms_15, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_15 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_15, + sizeof(asn_DEF_ext3_tags_15) + /sizeof(asn_DEF_ext3_tags_15[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_15, /* Same as above */ + sizeof(asn_DEF_ext3_tags_15) + /sizeof(asn_DEF_ext3_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_15, + 1, /* Elements count */ + &asn_SPC_ext3_specs_15 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_A_GNSS_ProvideCapabilities_1[] = { + { ATF_POINTER, 7, offsetof(struct A_GNSS_ProvideCapabilities, gnss_SupportList), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SupportList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SupportList" + }, + { ATF_POINTER, 6, offsetof(struct A_GNSS_ProvideCapabilities, assistanceDataSupportList), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AssistanceDataSupportList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "assistanceDataSupportList" + }, + { ATF_POINTER, 5, offsetof(struct A_GNSS_ProvideCapabilities, locationCoordinateTypes), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationCoordinateTypes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationCoordinateTypes" + }, + { ATF_POINTER, 4, offsetof(struct A_GNSS_ProvideCapabilities, velocityTypes), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VelocityTypes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "velocityTypes" + }, + { ATF_POINTER, 3, offsetof(struct A_GNSS_ProvideCapabilities, ext1), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 2, offsetof(struct A_GNSS_ProvideCapabilities, ext2), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext2_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 1, offsetof(struct A_GNSS_ProvideCapabilities, ext3), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext3_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, +}; +static const int asn_MAP_A_GNSS_ProvideCapabilities_oms_1[] = { 0, 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_A_GNSS_ProvideCapabilities_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_A_GNSS_ProvideCapabilities_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SupportList */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* assistanceDataSupportList */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* locationCoordinateTypes */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* velocityTypes */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext3 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_ProvideCapabilities_specs_1 = { + sizeof(struct A_GNSS_ProvideCapabilities), + offsetof(struct A_GNSS_ProvideCapabilities, _asn_ctx), + asn_MAP_A_GNSS_ProvideCapabilities_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_A_GNSS_ProvideCapabilities_oms_1, /* Optional members */ + 4, 3, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_A_GNSS_ProvideCapabilities = { + "A-GNSS-ProvideCapabilities", + "A-GNSS-ProvideCapabilities", + &asn_OP_SEQUENCE, + asn_DEF_A_GNSS_ProvideCapabilities_tags_1, + sizeof(asn_DEF_A_GNSS_ProvideCapabilities_tags_1) + /sizeof(asn_DEF_A_GNSS_ProvideCapabilities_tags_1[0]), /* 1 */ + asn_DEF_A_GNSS_ProvideCapabilities_tags_1, /* Same as above */ + sizeof(asn_DEF_A_GNSS_ProvideCapabilities_tags_1) + /sizeof(asn_DEF_A_GNSS_ProvideCapabilities_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_A_GNSS_ProvideCapabilities_1, + 7, /* Elements count */ + &asn_SPC_A_GNSS_ProvideCapabilities_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/A-GNSS-ProvideCapabilities.h b/asn.1/lpp_generated/A-GNSS-ProvideCapabilities.h new file mode 100644 index 00000000..596a5d29 --- /dev/null +++ b/asn.1/lpp_generated/A-GNSS-ProvideCapabilities.h @@ -0,0 +1,85 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _A_GNSS_ProvideCapabilities_H_ +#define _A_GNSS_ProvideCapabilities_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum A_GNSS_ProvideCapabilities__ext1__idleStateForMeasurements_r14 { + A_GNSS_ProvideCapabilities__ext1__idleStateForMeasurements_r14_required = 0 +} e_A_GNSS_ProvideCapabilities__ext1__idleStateForMeasurements_r14; +typedef enum A_GNSS_ProvideCapabilities__ext2__periodicAssistanceData_r15 { + A_GNSS_ProvideCapabilities__ext2__periodicAssistanceData_r15_solicited = 0, + A_GNSS_ProvideCapabilities__ext2__periodicAssistanceData_r15_unsolicited = 1 +} e_A_GNSS_ProvideCapabilities__ext2__periodicAssistanceData_r15; + +/* Forward declarations */ +struct GNSS_SupportList; +struct AssistanceDataSupportList; +struct LocationCoordinateTypes; +struct VelocityTypes; +struct PositioningModes; +struct ScheduledLocationTimeSupportPerMode_r17; + +/* A-GNSS-ProvideCapabilities */ +typedef struct A_GNSS_ProvideCapabilities { + struct GNSS_SupportList *gnss_SupportList; /* OPTIONAL */ + struct AssistanceDataSupportList *assistanceDataSupportList; /* OPTIONAL */ + struct LocationCoordinateTypes *locationCoordinateTypes; /* OPTIONAL */ + struct VelocityTypes *velocityTypes; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct A_GNSS_ProvideCapabilities__ext1 { + struct PositioningModes *periodicalReportingNotSupported_r14; /* OPTIONAL */ + long *idleStateForMeasurements_r14; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct A_GNSS_ProvideCapabilities__ext2 { + BIT_STRING_t *periodicAssistanceData_r15; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct A_GNSS_ProvideCapabilities__ext3 { + struct ScheduledLocationTimeSupportPerMode_r17 *scheduledLocationRequestSupported_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} A_GNSS_ProvideCapabilities_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_idleStateForMeasurements_r14_9; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_A_GNSS_ProvideCapabilities; +extern asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_ProvideCapabilities_specs_1; +extern asn_TYPE_member_t asn_MBR_A_GNSS_ProvideCapabilities_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _A_GNSS_ProvideCapabilities_H_ */ +#include diff --git a/asn.1/lpp_generated/A-GNSS-ProvideLocationInformation.c b/asn.1/lpp_generated/A-GNSS-ProvideLocationInformation.c new file mode 100644 index 00000000..51b5d87b --- /dev/null +++ b/asn.1/lpp_generated/A-GNSS-ProvideLocationInformation.c @@ -0,0 +1,107 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "A-GNSS-ProvideLocationInformation.h" + +#include "GNSS-SignalMeasurementInformation.h" +#include "GNSS-LocationInformation.h" +#include "A-GNSS-Error.h" +asn_TYPE_member_t asn_MBR_A_GNSS_ProvideLocationInformation_1[] = { + { ATF_POINTER, 3, offsetof(struct A_GNSS_ProvideLocationInformation, gnss_SignalMeasurementInformation), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalMeasurementInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SignalMeasurementInformation" + }, + { ATF_POINTER, 2, offsetof(struct A_GNSS_ProvideLocationInformation, gnss_LocationInformation), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_LocationInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-LocationInformation" + }, + { ATF_POINTER, 1, offsetof(struct A_GNSS_ProvideLocationInformation, gnss_Error), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_A_GNSS_Error, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-Error" + }, +}; +static const int asn_MAP_A_GNSS_ProvideLocationInformation_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_A_GNSS_ProvideLocationInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_A_GNSS_ProvideLocationInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SignalMeasurementInformation */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-LocationInformation */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gnss-Error */ +}; +asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_ProvideLocationInformation_specs_1 = { + sizeof(struct A_GNSS_ProvideLocationInformation), + offsetof(struct A_GNSS_ProvideLocationInformation, _asn_ctx), + asn_MAP_A_GNSS_ProvideLocationInformation_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_A_GNSS_ProvideLocationInformation_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_A_GNSS_ProvideLocationInformation = { + "A-GNSS-ProvideLocationInformation", + "A-GNSS-ProvideLocationInformation", + &asn_OP_SEQUENCE, + asn_DEF_A_GNSS_ProvideLocationInformation_tags_1, + sizeof(asn_DEF_A_GNSS_ProvideLocationInformation_tags_1) + /sizeof(asn_DEF_A_GNSS_ProvideLocationInformation_tags_1[0]), /* 1 */ + asn_DEF_A_GNSS_ProvideLocationInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_A_GNSS_ProvideLocationInformation_tags_1) + /sizeof(asn_DEF_A_GNSS_ProvideLocationInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_A_GNSS_ProvideLocationInformation_1, + 3, /* Elements count */ + &asn_SPC_A_GNSS_ProvideLocationInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/A-GNSS-ProvideLocationInformation.h b/asn.1/lpp_generated/A-GNSS-ProvideLocationInformation.h new file mode 100644 index 00000000..f8f97c0f --- /dev/null +++ b/asn.1/lpp_generated/A-GNSS-ProvideLocationInformation.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _A_GNSS_ProvideLocationInformation_H_ +#define _A_GNSS_ProvideLocationInformation_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GNSS_SignalMeasurementInformation; +struct GNSS_LocationInformation; +struct A_GNSS_Error; + +/* A-GNSS-ProvideLocationInformation */ +typedef struct A_GNSS_ProvideLocationInformation { + struct GNSS_SignalMeasurementInformation *gnss_SignalMeasurementInformation; /* OPTIONAL */ + struct GNSS_LocationInformation *gnss_LocationInformation; /* OPTIONAL */ + struct A_GNSS_Error *gnss_Error; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} A_GNSS_ProvideLocationInformation_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_A_GNSS_ProvideLocationInformation; +extern asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_ProvideLocationInformation_specs_1; +extern asn_TYPE_member_t asn_MBR_A_GNSS_ProvideLocationInformation_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _A_GNSS_ProvideLocationInformation_H_ */ +#include diff --git a/asn.1/lpp_generated/A-GNSS-RequestAssistanceData.c b/asn.1/lpp_generated/A-GNSS-RequestAssistanceData.c new file mode 100644 index 00000000..38e5dc79 --- /dev/null +++ b/asn.1/lpp_generated/A-GNSS-RequestAssistanceData.c @@ -0,0 +1,168 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "A-GNSS-RequestAssistanceData.h" + +#include "GNSS-CommonAssistDataReq.h" +#include "GNSS-GenericAssistDataReq.h" +#include "GNSS-PeriodicAssistDataReq-r15.h" +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_POINTER, 1, offsetof(struct A_GNSS_RequestAssistanceData__ext1, gnss_PeriodicAssistDataReq_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicAssistDataReq_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-PeriodicAssistDataReq-r15" + }, +}; +static const int asn_MAP_ext1_oms_5[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-PeriodicAssistDataReq-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct A_GNSS_RequestAssistanceData__ext1), + offsetof(struct A_GNSS_RequestAssistanceData__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_5, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 1, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_A_GNSS_RequestAssistanceData_1[] = { + { ATF_POINTER, 3, offsetof(struct A_GNSS_RequestAssistanceData, gnss_CommonAssistDataReq), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_CommonAssistDataReq, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-CommonAssistDataReq" + }, + { ATF_POINTER, 2, offsetof(struct A_GNSS_RequestAssistanceData, gnss_GenericAssistDataReq), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_GenericAssistDataReq, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-GenericAssistDataReq" + }, + { ATF_POINTER, 1, offsetof(struct A_GNSS_RequestAssistanceData, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_A_GNSS_RequestAssistanceData_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_A_GNSS_RequestAssistanceData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_A_GNSS_RequestAssistanceData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-CommonAssistDataReq */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-GenericAssistDataReq */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_RequestAssistanceData_specs_1 = { + sizeof(struct A_GNSS_RequestAssistanceData), + offsetof(struct A_GNSS_RequestAssistanceData, _asn_ctx), + asn_MAP_A_GNSS_RequestAssistanceData_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_A_GNSS_RequestAssistanceData_oms_1, /* Optional members */ + 2, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_A_GNSS_RequestAssistanceData = { + "A-GNSS-RequestAssistanceData", + "A-GNSS-RequestAssistanceData", + &asn_OP_SEQUENCE, + asn_DEF_A_GNSS_RequestAssistanceData_tags_1, + sizeof(asn_DEF_A_GNSS_RequestAssistanceData_tags_1) + /sizeof(asn_DEF_A_GNSS_RequestAssistanceData_tags_1[0]), /* 1 */ + asn_DEF_A_GNSS_RequestAssistanceData_tags_1, /* Same as above */ + sizeof(asn_DEF_A_GNSS_RequestAssistanceData_tags_1) + /sizeof(asn_DEF_A_GNSS_RequestAssistanceData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_A_GNSS_RequestAssistanceData_1, + 3, /* Elements count */ + &asn_SPC_A_GNSS_RequestAssistanceData_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/A-GNSS-RequestAssistanceData.h b/asn.1/lpp_generated/A-GNSS-RequestAssistanceData.h new file mode 100644 index 00000000..cda9ce1b --- /dev/null +++ b/asn.1/lpp_generated/A-GNSS-RequestAssistanceData.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _A_GNSS_RequestAssistanceData_H_ +#define _A_GNSS_RequestAssistanceData_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GNSS_CommonAssistDataReq; +struct GNSS_GenericAssistDataReq; +struct GNSS_PeriodicAssistDataReq_r15; + +/* A-GNSS-RequestAssistanceData */ +typedef struct A_GNSS_RequestAssistanceData { + struct GNSS_CommonAssistDataReq *gnss_CommonAssistDataReq; /* OPTIONAL */ + struct GNSS_GenericAssistDataReq *gnss_GenericAssistDataReq; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct A_GNSS_RequestAssistanceData__ext1 { + struct GNSS_PeriodicAssistDataReq_r15 *gnss_PeriodicAssistDataReq_r15; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} A_GNSS_RequestAssistanceData_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_A_GNSS_RequestAssistanceData; +extern asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_RequestAssistanceData_specs_1; +extern asn_TYPE_member_t asn_MBR_A_GNSS_RequestAssistanceData_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _A_GNSS_RequestAssistanceData_H_ */ +#include diff --git a/asn.1/lpp_generated/A-GNSS-RequestCapabilities.c b/asn.1/lpp_generated/A-GNSS-RequestCapabilities.c new file mode 100644 index 00000000..30ba08ae --- /dev/null +++ b/asn.1/lpp_generated/A-GNSS-RequestCapabilities.c @@ -0,0 +1,102 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "A-GNSS-RequestCapabilities.h" + +asn_TYPE_member_t asn_MBR_A_GNSS_RequestCapabilities_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct A_GNSS_RequestCapabilities, gnss_SupportListReq), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SupportListReq" + }, + { ATF_NOFLAGS, 0, offsetof(struct A_GNSS_RequestCapabilities, assistanceDataSupportListReq), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "assistanceDataSupportListReq" + }, + { ATF_NOFLAGS, 0, offsetof(struct A_GNSS_RequestCapabilities, locationVelocityTypesReq), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationVelocityTypesReq" + }, +}; +static const ber_tlv_tag_t asn_DEF_A_GNSS_RequestCapabilities_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_A_GNSS_RequestCapabilities_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SupportListReq */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* assistanceDataSupportListReq */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* locationVelocityTypesReq */ +}; +asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_RequestCapabilities_specs_1 = { + sizeof(struct A_GNSS_RequestCapabilities), + offsetof(struct A_GNSS_RequestCapabilities, _asn_ctx), + asn_MAP_A_GNSS_RequestCapabilities_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_A_GNSS_RequestCapabilities = { + "A-GNSS-RequestCapabilities", + "A-GNSS-RequestCapabilities", + &asn_OP_SEQUENCE, + asn_DEF_A_GNSS_RequestCapabilities_tags_1, + sizeof(asn_DEF_A_GNSS_RequestCapabilities_tags_1) + /sizeof(asn_DEF_A_GNSS_RequestCapabilities_tags_1[0]), /* 1 */ + asn_DEF_A_GNSS_RequestCapabilities_tags_1, /* Same as above */ + sizeof(asn_DEF_A_GNSS_RequestCapabilities_tags_1) + /sizeof(asn_DEF_A_GNSS_RequestCapabilities_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_A_GNSS_RequestCapabilities_1, + 3, /* Elements count */ + &asn_SPC_A_GNSS_RequestCapabilities_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/A-GNSS-RequestCapabilities.h b/asn.1/lpp_generated/A-GNSS-RequestCapabilities.h similarity index 80% rename from asn.1/generated/A-GNSS-RequestCapabilities.h rename to asn.1/lpp_generated/A-GNSS-RequestCapabilities.h index 6151aa94..bc1ff295 100644 --- a/asn.1/generated/A-GNSS-RequestCapabilities.h +++ b/asn.1/lpp_generated/A-GNSS-RequestCapabilities.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _A_GNSS_RequestCapabilities_H_ diff --git a/asn.1/lpp_generated/A-GNSS-RequestLocationInformation.c b/asn.1/lpp_generated/A-GNSS-RequestLocationInformation.c new file mode 100644 index 00000000..b5b8705e --- /dev/null +++ b/asn.1/lpp_generated/A-GNSS-RequestLocationInformation.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "A-GNSS-RequestLocationInformation.h" + +asn_TYPE_member_t asn_MBR_A_GNSS_RequestLocationInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct A_GNSS_RequestLocationInformation, gnss_PositioningInstructions), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PositioningInstructions, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-PositioningInstructions" + }, +}; +static const ber_tlv_tag_t asn_DEF_A_GNSS_RequestLocationInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_A_GNSS_RequestLocationInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-PositioningInstructions */ +}; +asn_SEQUENCE_specifics_t asn_SPC_A_GNSS_RequestLocationInformation_specs_1 = { + sizeof(struct A_GNSS_RequestLocationInformation), + offsetof(struct A_GNSS_RequestLocationInformation, _asn_ctx), + asn_MAP_A_GNSS_RequestLocationInformation_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_A_GNSS_RequestLocationInformation = { + "A-GNSS-RequestLocationInformation", + "A-GNSS-RequestLocationInformation", + &asn_OP_SEQUENCE, + asn_DEF_A_GNSS_RequestLocationInformation_tags_1, + sizeof(asn_DEF_A_GNSS_RequestLocationInformation_tags_1) + /sizeof(asn_DEF_A_GNSS_RequestLocationInformation_tags_1[0]), /* 1 */ + asn_DEF_A_GNSS_RequestLocationInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_A_GNSS_RequestLocationInformation_tags_1) + /sizeof(asn_DEF_A_GNSS_RequestLocationInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_A_GNSS_RequestLocationInformation_1, + 1, /* Elements count */ + &asn_SPC_A_GNSS_RequestLocationInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/A-GNSS-RequestLocationInformation.h b/asn.1/lpp_generated/A-GNSS-RequestLocationInformation.h similarity index 81% rename from asn.1/generated/A-GNSS-RequestLocationInformation.h rename to asn.1/lpp_generated/A-GNSS-RequestLocationInformation.h index 690ae458..a363c7ca 100644 --- a/asn.1/generated/A-GNSS-RequestLocationInformation.h +++ b/asn.1/lpp_generated/A-GNSS-RequestLocationInformation.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _A_GNSS_RequestLocationInformation_H_ diff --git a/asn.1/lpp_generated/ARFCN-ValueEUTRA-r14.c b/asn.1/lpp_generated/ARFCN-ValueEUTRA-r14.c new file mode 100644 index 00000000..5f14374e --- /dev/null +++ b/asn.1/lpp_generated/ARFCN-ValueEUTRA-r14.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ARFCN-ValueEUTRA-r14.h" + +int +ARFCN_ValueEUTRA_r14_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 262143L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ARFCN_ValueEUTRA_r14_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 18, -1, 0, 262143 } /* (0..262143) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_ARFCN_ValueEUTRA_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueEUTRA_r14 = { + "ARFCN-ValueEUTRA-r14", + "ARFCN-ValueEUTRA-r14", + &asn_OP_NativeInteger, + asn_DEF_ARFCN_ValueEUTRA_r14_tags_1, + sizeof(asn_DEF_ARFCN_ValueEUTRA_r14_tags_1) + /sizeof(asn_DEF_ARFCN_ValueEUTRA_r14_tags_1[0]), /* 1 */ + asn_DEF_ARFCN_ValueEUTRA_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_ARFCN_ValueEUTRA_r14_tags_1) + /sizeof(asn_DEF_ARFCN_ValueEUTRA_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ARFCN_ValueEUTRA_r14_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + ARFCN_ValueEUTRA_r14_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/lpp_generated/ARFCN-ValueEUTRA-r14.h b/asn.1/lpp_generated/ARFCN-ValueEUTRA-r14.h new file mode 100644 index 00000000..ade66ad8 --- /dev/null +++ b/asn.1/lpp_generated/ARFCN-ValueEUTRA-r14.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _ARFCN_ValueEUTRA_r14_H_ +#define _ARFCN_ValueEUTRA_r14_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* ARFCN-ValueEUTRA-r14 */ +typedef long ARFCN_ValueEUTRA_r14_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_ARFCN_ValueEUTRA_r14_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueEUTRA_r14; +asn_struct_free_f ARFCN_ValueEUTRA_r14_free; +asn_constr_check_f ARFCN_ValueEUTRA_r14_constraint; +xer_type_decoder_f ARFCN_ValueEUTRA_r14_decode_xer; +xer_type_encoder_f ARFCN_ValueEUTRA_r14_encode_xer; +jer_type_encoder_f ARFCN_ValueEUTRA_r14_encode_jer; +per_type_decoder_f ARFCN_ValueEUTRA_r14_decode_uper; +per_type_encoder_f ARFCN_ValueEUTRA_r14_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ARFCN_ValueEUTRA_r14_H_ */ +#include diff --git a/asn.1/lpp_generated/ARFCN-ValueEUTRA-v9a0.c b/asn.1/lpp_generated/ARFCN-ValueEUTRA-v9a0.c new file mode 100644 index 00000000..fc54e049 --- /dev/null +++ b/asn.1/lpp_generated/ARFCN-ValueEUTRA-v9a0.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ARFCN-ValueEUTRA-v9a0.h" + +int +ARFCN_ValueEUTRA_v9a0_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 65536L && value <= 262143L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ARFCN_ValueEUTRA_v9a0_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 18, -1, 65536, 262143 } /* (65536..262143) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_ARFCN_ValueEUTRA_v9a0_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueEUTRA_v9a0 = { + "ARFCN-ValueEUTRA-v9a0", + "ARFCN-ValueEUTRA-v9a0", + &asn_OP_NativeInteger, + asn_DEF_ARFCN_ValueEUTRA_v9a0_tags_1, + sizeof(asn_DEF_ARFCN_ValueEUTRA_v9a0_tags_1) + /sizeof(asn_DEF_ARFCN_ValueEUTRA_v9a0_tags_1[0]), /* 1 */ + asn_DEF_ARFCN_ValueEUTRA_v9a0_tags_1, /* Same as above */ + sizeof(asn_DEF_ARFCN_ValueEUTRA_v9a0_tags_1) + /sizeof(asn_DEF_ARFCN_ValueEUTRA_v9a0_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ARFCN_ValueEUTRA_v9a0_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + ARFCN_ValueEUTRA_v9a0_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/lpp_generated/ARFCN-ValueEUTRA-v9a0.h b/asn.1/lpp_generated/ARFCN-ValueEUTRA-v9a0.h new file mode 100644 index 00000000..1607668f --- /dev/null +++ b/asn.1/lpp_generated/ARFCN-ValueEUTRA-v9a0.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _ARFCN_ValueEUTRA_v9a0_H_ +#define _ARFCN_ValueEUTRA_v9a0_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* ARFCN-ValueEUTRA-v9a0 */ +typedef long ARFCN_ValueEUTRA_v9a0_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_ARFCN_ValueEUTRA_v9a0_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueEUTRA_v9a0; +asn_struct_free_f ARFCN_ValueEUTRA_v9a0_free; +asn_constr_check_f ARFCN_ValueEUTRA_v9a0_constraint; +xer_type_decoder_f ARFCN_ValueEUTRA_v9a0_decode_xer; +xer_type_encoder_f ARFCN_ValueEUTRA_v9a0_encode_xer; +jer_type_encoder_f ARFCN_ValueEUTRA_v9a0_encode_jer; +per_type_decoder_f ARFCN_ValueEUTRA_v9a0_decode_uper; +per_type_encoder_f ARFCN_ValueEUTRA_v9a0_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ARFCN_ValueEUTRA_v9a0_H_ */ +#include diff --git a/asn.1/lpp_generated/ARFCN-ValueEUTRA.c b/asn.1/lpp_generated/ARFCN-ValueEUTRA.c new file mode 100644 index 00000000..95b7cdac --- /dev/null +++ b/asn.1/lpp_generated/ARFCN-ValueEUTRA.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ARFCN-ValueEUTRA.h" + +int +ARFCN_ValueEUTRA_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ARFCN_ValueEUTRA_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_ARFCN_ValueEUTRA_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueEUTRA = { + "ARFCN-ValueEUTRA", + "ARFCN-ValueEUTRA", + &asn_OP_NativeInteger, + asn_DEF_ARFCN_ValueEUTRA_tags_1, + sizeof(asn_DEF_ARFCN_ValueEUTRA_tags_1) + /sizeof(asn_DEF_ARFCN_ValueEUTRA_tags_1[0]), /* 1 */ + asn_DEF_ARFCN_ValueEUTRA_tags_1, /* Same as above */ + sizeof(asn_DEF_ARFCN_ValueEUTRA_tags_1) + /sizeof(asn_DEF_ARFCN_ValueEUTRA_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ARFCN_ValueEUTRA_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + ARFCN_ValueEUTRA_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/lpp_generated/ARFCN-ValueEUTRA.h b/asn.1/lpp_generated/ARFCN-ValueEUTRA.h new file mode 100644 index 00000000..9eb17964 --- /dev/null +++ b/asn.1/lpp_generated/ARFCN-ValueEUTRA.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _ARFCN_ValueEUTRA_H_ +#define _ARFCN_ValueEUTRA_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* ARFCN-ValueEUTRA */ +typedef long ARFCN_ValueEUTRA_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_ARFCN_ValueEUTRA_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueEUTRA; +asn_struct_free_f ARFCN_ValueEUTRA_free; +asn_constr_check_f ARFCN_ValueEUTRA_constraint; +xer_type_decoder_f ARFCN_ValueEUTRA_decode_xer; +xer_type_encoder_f ARFCN_ValueEUTRA_encode_xer; +jer_type_encoder_f ARFCN_ValueEUTRA_encode_jer; +per_type_decoder_f ARFCN_ValueEUTRA_decode_uper; +per_type_encoder_f ARFCN_ValueEUTRA_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ARFCN_ValueEUTRA_H_ */ +#include diff --git a/asn.1/lpp_generated/ARFCN-ValueNR-r15.c b/asn.1/lpp_generated/ARFCN-ValueNR-r15.c new file mode 100644 index 00000000..b618b6dd --- /dev/null +++ b/asn.1/lpp_generated/ARFCN-ValueNR-r15.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ARFCN-ValueNR-r15.h" + +int +ARFCN_ValueNR_r15_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3279165L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ARFCN_ValueNR_r15_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, 0, 3279165 } /* (0..3279165) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_ARFCN_ValueNR_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueNR_r15 = { + "ARFCN-ValueNR-r15", + "ARFCN-ValueNR-r15", + &asn_OP_NativeInteger, + asn_DEF_ARFCN_ValueNR_r15_tags_1, + sizeof(asn_DEF_ARFCN_ValueNR_r15_tags_1) + /sizeof(asn_DEF_ARFCN_ValueNR_r15_tags_1[0]), /* 1 */ + asn_DEF_ARFCN_ValueNR_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_ARFCN_ValueNR_r15_tags_1) + /sizeof(asn_DEF_ARFCN_ValueNR_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ARFCN_ValueNR_r15_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + ARFCN_ValueNR_r15_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/lpp_generated/ARFCN-ValueNR-r15.h b/asn.1/lpp_generated/ARFCN-ValueNR-r15.h new file mode 100644 index 00000000..57041432 --- /dev/null +++ b/asn.1/lpp_generated/ARFCN-ValueNR-r15.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _ARFCN_ValueNR_r15_H_ +#define _ARFCN_ValueNR_r15_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* ARFCN-ValueNR-r15 */ +typedef long ARFCN_ValueNR_r15_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_ARFCN_ValueNR_r15_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueNR_r15; +asn_struct_free_f ARFCN_ValueNR_r15_free; +asn_constr_check_f ARFCN_ValueNR_r15_constraint; +xer_type_decoder_f ARFCN_ValueNR_r15_decode_xer; +xer_type_encoder_f ARFCN_ValueNR_r15_encode_xer; +jer_type_encoder_f ARFCN_ValueNR_r15_encode_jer; +per_type_decoder_f ARFCN_ValueNR_r15_decode_uper; +per_type_encoder_f ARFCN_ValueNR_r15_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ARFCN_ValueNR_r15_H_ */ +#include diff --git a/asn.1/lpp_generated/ARFCN-ValueUTRA.c b/asn.1/lpp_generated/ARFCN-ValueUTRA.c new file mode 100644 index 00000000..6c1636e2 --- /dev/null +++ b/asn.1/lpp_generated/ARFCN-ValueUTRA.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ARFCN-ValueUTRA.h" + +int +ARFCN_ValueUTRA_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ARFCN_ValueUTRA_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_ARFCN_ValueUTRA_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueUTRA = { + "ARFCN-ValueUTRA", + "ARFCN-ValueUTRA", + &asn_OP_NativeInteger, + asn_DEF_ARFCN_ValueUTRA_tags_1, + sizeof(asn_DEF_ARFCN_ValueUTRA_tags_1) + /sizeof(asn_DEF_ARFCN_ValueUTRA_tags_1[0]), /* 1 */ + asn_DEF_ARFCN_ValueUTRA_tags_1, /* Same as above */ + sizeof(asn_DEF_ARFCN_ValueUTRA_tags_1) + /sizeof(asn_DEF_ARFCN_ValueUTRA_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ARFCN_ValueUTRA_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + ARFCN_ValueUTRA_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/lpp_generated/ARFCN-ValueUTRA.h b/asn.1/lpp_generated/ARFCN-ValueUTRA.h new file mode 100644 index 00000000..286214a3 --- /dev/null +++ b/asn.1/lpp_generated/ARFCN-ValueUTRA.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _ARFCN_ValueUTRA_H_ +#define _ARFCN_ValueUTRA_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* ARFCN-ValueUTRA */ +typedef long ARFCN_ValueUTRA_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_ARFCN_ValueUTRA_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_ARFCN_ValueUTRA; +asn_struct_free_f ARFCN_ValueUTRA_free; +asn_constr_check_f ARFCN_ValueUTRA_constraint; +xer_type_decoder_f ARFCN_ValueUTRA_decode_xer; +xer_type_encoder_f ARFCN_ValueUTRA_encode_xer; +jer_type_encoder_f ARFCN_ValueUTRA_encode_jer; +per_type_decoder_f ARFCN_ValueUTRA_decode_uper; +per_type_encoder_f ARFCN_ValueUTRA_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ARFCN_ValueUTRA_H_ */ +#include diff --git a/asn.1/lpp_generated/AUX-ReferenceStationID-Element-r15.c b/asn.1/lpp_generated/AUX-ReferenceStationID-Element-r15.c new file mode 100644 index 00000000..da22f3e3 --- /dev/null +++ b/asn.1/lpp_generated/AUX-ReferenceStationID-Element-r15.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AUX-ReferenceStationID-Element-r15.h" + +asn_TYPE_member_t asn_MBR_AUX_ReferenceStationID_Element_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AUX_ReferenceStationID_Element_r15, aux_stationID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceStationID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "aux-stationID-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_AUX_ReferenceStationID_Element_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AUX_ReferenceStationID_Element_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* aux-stationID-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AUX_ReferenceStationID_Element_r15_specs_1 = { + sizeof(struct AUX_ReferenceStationID_Element_r15), + offsetof(struct AUX_ReferenceStationID_Element_r15, _asn_ctx), + asn_MAP_AUX_ReferenceStationID_Element_r15_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AUX_ReferenceStationID_Element_r15 = { + "AUX-ReferenceStationID-Element-r15", + "AUX-ReferenceStationID-Element-r15", + &asn_OP_SEQUENCE, + asn_DEF_AUX_ReferenceStationID_Element_r15_tags_1, + sizeof(asn_DEF_AUX_ReferenceStationID_Element_r15_tags_1) + /sizeof(asn_DEF_AUX_ReferenceStationID_Element_r15_tags_1[0]), /* 1 */ + asn_DEF_AUX_ReferenceStationID_Element_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_AUX_ReferenceStationID_Element_r15_tags_1) + /sizeof(asn_DEF_AUX_ReferenceStationID_Element_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AUX_ReferenceStationID_Element_r15_1, + 1, /* Elements count */ + &asn_SPC_AUX_ReferenceStationID_Element_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AUX-ReferenceStationID-Element-r15.h b/asn.1/lpp_generated/AUX-ReferenceStationID-Element-r15.h similarity index 81% rename from asn.1/generated/AUX-ReferenceStationID-Element-r15.h rename to asn.1/lpp_generated/AUX-ReferenceStationID-Element-r15.h index 9ad11854..298c8a1c 100644 --- a/asn.1/generated/AUX-ReferenceStationID-Element-r15.h +++ b/asn.1/lpp_generated/AUX-ReferenceStationID-Element-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _AUX_ReferenceStationID_Element_r15_H_ diff --git a/asn.1/lpp_generated/AUX-ReferenceStationList-r15.c b/asn.1/lpp_generated/AUX-ReferenceStationList-r15.c new file mode 100644 index 00000000..d231bc1a --- /dev/null +++ b/asn.1/lpp_generated/AUX-ReferenceStationList-r15.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AUX-ReferenceStationList-r15.h" + +#include "AUX-ReferenceStationID-Element-r15.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AUX_ReferenceStationList_r15_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_AUX_ReferenceStationList_r15_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_AUX_ReferenceStationID_Element_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_AUX_ReferenceStationList_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_AUX_ReferenceStationList_r15_specs_1 = { + sizeof(struct AUX_ReferenceStationList_r15), + offsetof(struct AUX_ReferenceStationList_r15, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_AUX_ReferenceStationList_r15 = { + "AUX-ReferenceStationList-r15", + "AUX-ReferenceStationList-r15", + &asn_OP_SEQUENCE_OF, + asn_DEF_AUX_ReferenceStationList_r15_tags_1, + sizeof(asn_DEF_AUX_ReferenceStationList_r15_tags_1) + /sizeof(asn_DEF_AUX_ReferenceStationList_r15_tags_1[0]), /* 1 */ + asn_DEF_AUX_ReferenceStationList_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_AUX_ReferenceStationList_r15_tags_1) + /sizeof(asn_DEF_AUX_ReferenceStationList_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AUX_ReferenceStationList_r15_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_AUX_ReferenceStationList_r15_1, + 1, /* Single element */ + &asn_SPC_AUX_ReferenceStationList_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AUX-ReferenceStationList-r15.h b/asn.1/lpp_generated/AUX-ReferenceStationList-r15.h similarity index 81% rename from asn.1/generated/AUX-ReferenceStationList-r15.h rename to asn.1/lpp_generated/AUX-ReferenceStationList-r15.h index 25bee3ed..82539c3f 100644 --- a/asn.1/generated/AUX-ReferenceStationList-r15.h +++ b/asn.1/lpp_generated/AUX-ReferenceStationList-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _AUX_ReferenceStationList_r15_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_AUX_ReferenceStationList_r15_constr_1; } #endif -/* Referred external types */ -#include "AUX-ReferenceStationID-Element-r15.h" - #endif /* _AUX_ReferenceStationList_r15_H_ */ #include diff --git a/asn.1/lpp_generated/Abort-r9-IEs.c b/asn.1/lpp_generated/Abort-r9-IEs.c new file mode 100644 index 00000000..20a5bd17 --- /dev/null +++ b/asn.1/lpp_generated/Abort-r9-IEs.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Abort-r9-IEs.h" + +#include "CommonIEsAbort.h" +#include "EPDU-Sequence.h" +asn_TYPE_member_t asn_MBR_Abort_r9_IEs_1[] = { + { ATF_POINTER, 2, offsetof(struct Abort_r9_IEs, commonIEsAbort), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CommonIEsAbort, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "commonIEsAbort" + }, + { ATF_POINTER, 1, offsetof(struct Abort_r9_IEs, epdu_Abort), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EPDU_Sequence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epdu-Abort" + }, +}; +static const int asn_MAP_Abort_r9_IEs_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_Abort_r9_IEs_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Abort_r9_IEs_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* commonIEsAbort */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* epdu-Abort */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Abort_r9_IEs_specs_1 = { + sizeof(struct Abort_r9_IEs), + offsetof(struct Abort_r9_IEs, _asn_ctx), + asn_MAP_Abort_r9_IEs_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_Abort_r9_IEs_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Abort_r9_IEs = { + "Abort-r9-IEs", + "Abort-r9-IEs", + &asn_OP_SEQUENCE, + asn_DEF_Abort_r9_IEs_tags_1, + sizeof(asn_DEF_Abort_r9_IEs_tags_1) + /sizeof(asn_DEF_Abort_r9_IEs_tags_1[0]), /* 1 */ + asn_DEF_Abort_r9_IEs_tags_1, /* Same as above */ + sizeof(asn_DEF_Abort_r9_IEs_tags_1) + /sizeof(asn_DEF_Abort_r9_IEs_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Abort_r9_IEs_1, + 2, /* Elements count */ + &asn_SPC_Abort_r9_IEs_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/Abort-r9-IEs.h b/asn.1/lpp_generated/Abort-r9-IEs.h new file mode 100644 index 00000000..6e41776f --- /dev/null +++ b/asn.1/lpp_generated/Abort-r9-IEs.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _Abort_r9_IEs_H_ +#define _Abort_r9_IEs_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CommonIEsAbort; +struct EPDU_Sequence; + +/* Abort-r9-IEs */ +typedef struct Abort_r9_IEs { + struct CommonIEsAbort *commonIEsAbort; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct EPDU_Sequence *epdu_Abort; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Abort_r9_IEs_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Abort_r9_IEs; +extern asn_SEQUENCE_specifics_t asn_SPC_Abort_r9_IEs_specs_1; +extern asn_TYPE_member_t asn_MBR_Abort_r9_IEs_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Abort_r9_IEs_H_ */ +#include diff --git a/asn.1/lpp_generated/Abort.c b/asn.1/lpp_generated/Abort.c new file mode 100644 index 00000000..85ecaaae --- /dev/null +++ b/asn.1/lpp_generated/Abort.c @@ -0,0 +1,298 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Abort.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_c1_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_criticalExtensions_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_c1_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct Abort__criticalExtensions__c1, choice.abort_r9), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Abort_r9_IEs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "abort-r9" + }, + { ATF_NOFLAGS, 0, offsetof(struct Abort__criticalExtensions__c1, choice.spare3), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare3" + }, + { ATF_NOFLAGS, 0, offsetof(struct Abort__criticalExtensions__c1, choice.spare2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare2" + }, + { ATF_NOFLAGS, 0, offsetof(struct Abort__criticalExtensions__c1, choice.spare1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare1" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_c1_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* abort-r9 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* spare3 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* spare2 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* spare1 */ +}; +static asn_CHOICE_specifics_t asn_SPC_c1_specs_3 = { + sizeof(struct Abort__criticalExtensions__c1), + offsetof(struct Abort__criticalExtensions__c1, _asn_ctx), + offsetof(struct Abort__criticalExtensions__c1, present), + sizeof(((struct Abort__criticalExtensions__c1 *)0)->present), + asn_MAP_c1_tag2el_3, + 4, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_c1_3 = { + "c1", + "c1", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_c1_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_c1_3, + 4, /* Elements count */ + &asn_SPC_c1_specs_3 /* Additional specs */ +}; + +static const ber_tlv_tag_t asn_DEF_criticalExtensionsFuture_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SEQUENCE_specifics_t asn_SPC_criticalExtensionsFuture_specs_8 = { + sizeof(struct Abort__criticalExtensions__criticalExtensionsFuture), + offsetof(struct Abort__criticalExtensions__criticalExtensionsFuture, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_criticalExtensionsFuture_8 = { + "criticalExtensionsFuture", + "criticalExtensionsFuture", + &asn_OP_SEQUENCE, + asn_DEF_criticalExtensionsFuture_tags_8, + sizeof(asn_DEF_criticalExtensionsFuture_tags_8) + /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]) - 1, /* 1 */ + asn_DEF_criticalExtensionsFuture_tags_8, /* Same as above */ + sizeof(asn_DEF_criticalExtensionsFuture_tags_8) + /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_criticalExtensionsFuture_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_criticalExtensions_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct Abort__criticalExtensions, choice.c1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_c1_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "c1" + }, + { ATF_NOFLAGS, 0, offsetof(struct Abort__criticalExtensions, choice.criticalExtensionsFuture), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_criticalExtensionsFuture_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "criticalExtensionsFuture" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_criticalExtensions_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* c1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* criticalExtensionsFuture */ +}; +static asn_CHOICE_specifics_t asn_SPC_criticalExtensions_specs_2 = { + sizeof(struct Abort__criticalExtensions), + offsetof(struct Abort__criticalExtensions, _asn_ctx), + offsetof(struct Abort__criticalExtensions, present), + sizeof(((struct Abort__criticalExtensions *)0)->present), + asn_MAP_criticalExtensions_tag2el_2, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_criticalExtensions_2 = { + "criticalExtensions", + "criticalExtensions", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_criticalExtensions_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_criticalExtensions_2, + 2, /* Elements count */ + &asn_SPC_criticalExtensions_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_Abort_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Abort, criticalExtensions), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_criticalExtensions_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "criticalExtensions" + }, +}; +static const ber_tlv_tag_t asn_DEF_Abort_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Abort_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* criticalExtensions */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Abort_specs_1 = { + sizeof(struct Abort), + offsetof(struct Abort, _asn_ctx), + asn_MAP_Abort_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Abort = { + "Abort", + "Abort", + &asn_OP_SEQUENCE, + asn_DEF_Abort_tags_1, + sizeof(asn_DEF_Abort_tags_1) + /sizeof(asn_DEF_Abort_tags_1[0]), /* 1 */ + asn_DEF_Abort_tags_1, /* Same as above */ + sizeof(asn_DEF_Abort_tags_1) + /sizeof(asn_DEF_Abort_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Abort_1, + 1, /* Elements count */ + &asn_SPC_Abort_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Abort.h b/asn.1/lpp_generated/Abort.h similarity index 89% rename from asn.1/generated/Abort.h rename to asn.1/lpp_generated/Abort.h index 9882d158..5bf73b35 100644 --- a/asn.1/generated/Abort.h +++ b/asn.1/lpp_generated/Abort.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Abort_H_ diff --git a/asn.1/lpp_generated/AccessTypes.c b/asn.1/lpp_generated/AccessTypes.c new file mode 100644 index 00000000..a6634c05 --- /dev/null +++ b/asn.1/lpp_generated/AccessTypes.c @@ -0,0 +1,104 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AccessTypes.h" + +static int +memb_accessTypes_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_accessTypes_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_AccessTypes_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AccessTypes, accessTypes), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_accessTypes_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_accessTypes_constraint_1 + }, + 0, 0, /* No default value */ + "accessTypes" + }, +}; +static const ber_tlv_tag_t asn_DEF_AccessTypes_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AccessTypes_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* accessTypes */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AccessTypes_specs_1 = { + sizeof(struct AccessTypes), + offsetof(struct AccessTypes, _asn_ctx), + asn_MAP_AccessTypes_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AccessTypes = { + "AccessTypes", + "AccessTypes", + &asn_OP_SEQUENCE, + asn_DEF_AccessTypes_tags_1, + sizeof(asn_DEF_AccessTypes_tags_1) + /sizeof(asn_DEF_AccessTypes_tags_1[0]), /* 1 */ + asn_DEF_AccessTypes_tags_1, /* Same as above */ + sizeof(asn_DEF_AccessTypes_tags_1) + /sizeof(asn_DEF_AccessTypes_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AccessTypes_1, + 1, /* Elements count */ + &asn_SPC_AccessTypes_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AccessTypes.h b/asn.1/lpp_generated/AccessTypes.h similarity index 81% rename from asn.1/generated/AccessTypes.h rename to asn.1/lpp_generated/AccessTypes.h index a69a740e..4c0b3cc6 100644 --- a/asn.1/generated/AccessTypes.h +++ b/asn.1/lpp_generated/AccessTypes.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _AccessTypes_H_ diff --git a/asn.1/lpp_generated/Acknowledgement.c b/asn.1/lpp_generated/Acknowledgement.c new file mode 100644 index 00000000..6fcd4bdb --- /dev/null +++ b/asn.1/lpp_generated/Acknowledgement.c @@ -0,0 +1,86 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Acknowledgement.h" + +asn_TYPE_member_t asn_MBR_Acknowledgement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Acknowledgement, ackRequested), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ackRequested" + }, + { ATF_POINTER, 1, offsetof(struct Acknowledgement, ackIndicator), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SequenceNumber, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ackIndicator" + }, +}; +static const int asn_MAP_Acknowledgement_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_Acknowledgement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Acknowledgement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ackRequested */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ackIndicator */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Acknowledgement_specs_1 = { + sizeof(struct Acknowledgement), + offsetof(struct Acknowledgement, _asn_ctx), + asn_MAP_Acknowledgement_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_Acknowledgement_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Acknowledgement = { + "Acknowledgement", + "Acknowledgement", + &asn_OP_SEQUENCE, + asn_DEF_Acknowledgement_tags_1, + sizeof(asn_DEF_Acknowledgement_tags_1) + /sizeof(asn_DEF_Acknowledgement_tags_1[0]), /* 1 */ + asn_DEF_Acknowledgement_tags_1, /* Same as above */ + sizeof(asn_DEF_Acknowledgement_tags_1) + /sizeof(asn_DEF_Acknowledgement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Acknowledgement_1, + 2, /* Elements count */ + &asn_SPC_Acknowledgement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/Acknowledgement.h b/asn.1/lpp_generated/Acknowledgement.h new file mode 100644 index 00000000..70a19d8a --- /dev/null +++ b/asn.1/lpp_generated/Acknowledgement.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _Acknowledgement_H_ +#define _Acknowledgement_H_ + + +#include + +/* Including external dependencies */ +#include +#include "SequenceNumber.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Acknowledgement */ +typedef struct Acknowledgement { + BOOLEAN_t ackRequested; + SequenceNumber_t *ackIndicator; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Acknowledgement_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Acknowledgement; +extern asn_SEQUENCE_specifics_t asn_SPC_Acknowledgement_specs_1; +extern asn_TYPE_member_t asn_MBR_Acknowledgement_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Acknowledgement_H_ */ +#include diff --git a/asn.1/lpp_generated/Add-PRSconfigNeighbourElement-r14.c b/asn.1/lpp_generated/Add-PRSconfigNeighbourElement-r14.c new file mode 100644 index 00000000..36d6093c --- /dev/null +++ b/asn.1/lpp_generated/Add-PRSconfigNeighbourElement-r14.c @@ -0,0 +1,69 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Add-PRSconfigNeighbourElement-r14.h" + +#include "PRS-Info.h" +asn_TYPE_member_t asn_MBR_Add_PRSconfigNeighbourElement_r14_1[] = { + { ATF_POINTER, 1, offsetof(struct Add_PRSconfigNeighbourElement_r14, add_prsInfo_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PRS_Info, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "add-prsInfo-r14" + }, +}; +static const int asn_MAP_Add_PRSconfigNeighbourElement_r14_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_Add_PRSconfigNeighbourElement_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Add_PRSconfigNeighbourElement_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* add-prsInfo-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Add_PRSconfigNeighbourElement_r14_specs_1 = { + sizeof(struct Add_PRSconfigNeighbourElement_r14), + offsetof(struct Add_PRSconfigNeighbourElement_r14, _asn_ctx), + asn_MAP_Add_PRSconfigNeighbourElement_r14_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_Add_PRSconfigNeighbourElement_r14_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Add_PRSconfigNeighbourElement_r14 = { + "Add-PRSconfigNeighbourElement-r14", + "Add-PRSconfigNeighbourElement-r14", + &asn_OP_SEQUENCE, + asn_DEF_Add_PRSconfigNeighbourElement_r14_tags_1, + sizeof(asn_DEF_Add_PRSconfigNeighbourElement_r14_tags_1) + /sizeof(asn_DEF_Add_PRSconfigNeighbourElement_r14_tags_1[0]), /* 1 */ + asn_DEF_Add_PRSconfigNeighbourElement_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_Add_PRSconfigNeighbourElement_r14_tags_1) + /sizeof(asn_DEF_Add_PRSconfigNeighbourElement_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Add_PRSconfigNeighbourElement_r14_1, + 1, /* Elements count */ + &asn_SPC_Add_PRSconfigNeighbourElement_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Add-PRSconfigNeighbourElement-r14.h b/asn.1/lpp_generated/Add-PRSconfigNeighbourElement-r14.h similarity index 77% rename from asn.1/generated/Add-PRSconfigNeighbourElement-r14.h rename to asn.1/lpp_generated/Add-PRSconfigNeighbourElement-r14.h index f928d520..97baf7e2 100644 --- a/asn.1/generated/Add-PRSconfigNeighbourElement-r14.h +++ b/asn.1/lpp_generated/Add-PRSconfigNeighbourElement-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Add_PRSconfigNeighbourElement_r14_H_ @@ -23,7 +23,7 @@ struct PRS_Info; /* Add-PRSconfigNeighbourElement-r14 */ typedef struct Add_PRSconfigNeighbourElement_r14 { - struct PRS_Info *add_prsInfo_r14 /* OPTIONAL */; + struct PRS_Info *add_prsInfo_r14; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -42,8 +42,5 @@ extern asn_TYPE_member_t asn_MBR_Add_PRSconfigNeighbourElement_r14_1[1]; } #endif -/* Referred external types */ -#include "PRS-Info.h" - #endif /* _Add_PRSconfigNeighbourElement_r14_H_ */ #include diff --git a/asn.1/lpp_generated/AdditionalInformation.c b/asn.1/lpp_generated/AdditionalInformation.c new file mode 100644 index 00000000..b4696497 --- /dev/null +++ b/asn.1/lpp_generated/AdditionalInformation.c @@ -0,0 +1,65 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AdditionalInformation.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AdditionalInformation_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_AdditionalInformation_value2enum_1[] = { + { 0, 30, "onlyReturnInformationRequested" }, + { 1, 30, "mayReturnAdditionalInformation" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_AdditionalInformation_enum2value_1[] = { + 1, /* mayReturnAdditionalInformation(1) */ + 0 /* onlyReturnInformationRequested(0) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_AdditionalInformation_specs_1 = { + asn_MAP_AdditionalInformation_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_AdditionalInformation_enum2value_1, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_AdditionalInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AdditionalInformation = { + "AdditionalInformation", + "AdditionalInformation", + &asn_OP_NativeEnumerated, + asn_DEF_AdditionalInformation_tags_1, + sizeof(asn_DEF_AdditionalInformation_tags_1) + /sizeof(asn_DEF_AdditionalInformation_tags_1[0]), /* 1 */ + asn_DEF_AdditionalInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_AdditionalInformation_tags_1) + /sizeof(asn_DEF_AdditionalInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AdditionalInformation_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_AdditionalInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AdditionalInformation.h b/asn.1/lpp_generated/AdditionalInformation.h similarity index 75% rename from asn.1/generated/AdditionalInformation.h rename to asn.1/lpp_generated/AdditionalInformation.h index efded8e0..596c7508 100644 --- a/asn.1/generated/AdditionalInformation.h +++ b/asn.1/lpp_generated/AdditionalInformation.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _AdditionalInformation_H_ @@ -21,7 +21,7 @@ extern "C" { /* Dependencies */ typedef enum AdditionalInformation { AdditionalInformation_onlyReturnInformationRequested = 0, - AdditionalInformation_mayReturnAditionalInformation = 1 + AdditionalInformation_mayReturnAdditionalInformation = 1 /* * Enumeration is extensible */ @@ -35,12 +35,10 @@ extern asn_per_constraints_t asn_PER_type_AdditionalInformation_constr_1; extern asn_TYPE_descriptor_t asn_DEF_AdditionalInformation; extern const asn_INTEGER_specifics_t asn_SPC_AdditionalInformation_specs_1; asn_struct_free_f AdditionalInformation_free; -asn_struct_print_f AdditionalInformation_print; asn_constr_check_f AdditionalInformation_constraint; -ber_type_decoder_f AdditionalInformation_decode_ber; -der_type_encoder_f AdditionalInformation_encode_der; xer_type_decoder_f AdditionalInformation_decode_xer; xer_type_encoder_f AdditionalInformation_encode_xer; +jer_type_encoder_f AdditionalInformation_encode_jer; per_type_decoder_f AdditionalInformation_decode_uper; per_type_encoder_f AdditionalInformation_encode_uper; diff --git a/asn.1/lpp_generated/AdditionalPath-r14.c b/asn.1/lpp_generated/AdditionalPath-r14.c new file mode 100644 index 00000000..b286a8c9 --- /dev/null +++ b/asn.1/lpp_generated/AdditionalPath-r14.c @@ -0,0 +1,119 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AdditionalPath-r14.h" + +#include "OTDOA-MeasQuality.h" +static int +memb_relativeTimeDifference_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -256L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_relativeTimeDifference_r14_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, -256, 255 } /* (-256..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_AdditionalPath_r14_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AdditionalPath_r14, relativeTimeDifference_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_relativeTimeDifference_r14_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_relativeTimeDifference_r14_constraint_1 + }, + 0, 0, /* No default value */ + "relativeTimeDifference-r14" + }, + { ATF_POINTER, 1, offsetof(struct AdditionalPath_r14, path_Quality_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OTDOA_MeasQuality, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "path-Quality-r14" + }, +}; +static const int asn_MAP_AdditionalPath_r14_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_AdditionalPath_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AdditionalPath_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* relativeTimeDifference-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* path-Quality-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AdditionalPath_r14_specs_1 = { + sizeof(struct AdditionalPath_r14), + offsetof(struct AdditionalPath_r14, _asn_ctx), + asn_MAP_AdditionalPath_r14_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_AdditionalPath_r14_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AdditionalPath_r14 = { + "AdditionalPath-r14", + "AdditionalPath-r14", + &asn_OP_SEQUENCE, + asn_DEF_AdditionalPath_r14_tags_1, + sizeof(asn_DEF_AdditionalPath_r14_tags_1) + /sizeof(asn_DEF_AdditionalPath_r14_tags_1[0]), /* 1 */ + asn_DEF_AdditionalPath_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_AdditionalPath_r14_tags_1) + /sizeof(asn_DEF_AdditionalPath_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AdditionalPath_r14_1, + 2, /* Elements count */ + &asn_SPC_AdditionalPath_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AdditionalPath-r14.h b/asn.1/lpp_generated/AdditionalPath-r14.h similarity index 75% rename from asn.1/generated/AdditionalPath-r14.h rename to asn.1/lpp_generated/AdditionalPath-r14.h index c0517275..86d072e6 100644 --- a/asn.1/generated/AdditionalPath-r14.h +++ b/asn.1/lpp_generated/AdditionalPath-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _AdditionalPath_r14_H_ @@ -25,7 +25,7 @@ struct OTDOA_MeasQuality; /* AdditionalPath-r14 */ typedef struct AdditionalPath_r14 { long relativeTimeDifference_r14; - struct OTDOA_MeasQuality *path_Quality_r14 /* OPTIONAL */; + struct OTDOA_MeasQuality *path_Quality_r14; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -44,8 +44,5 @@ extern asn_TYPE_member_t asn_MBR_AdditionalPath_r14_1[2]; } #endif -/* Referred external types */ -#include "OTDOA-MeasQuality.h" - #endif /* _AdditionalPath_r14_H_ */ #include diff --git a/asn.1/lpp_generated/AdditionalPathList-r14.c b/asn.1/lpp_generated/AdditionalPathList-r14.c new file mode 100644 index 00000000..c7addcd6 --- /dev/null +++ b/asn.1/lpp_generated/AdditionalPathList-r14.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AdditionalPathList-r14.h" + +#include "AdditionalPath-r14.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AdditionalPathList_r14_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_AdditionalPathList_r14_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_AdditionalPath_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_AdditionalPathList_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_AdditionalPathList_r14_specs_1 = { + sizeof(struct AdditionalPathList_r14), + offsetof(struct AdditionalPathList_r14, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_AdditionalPathList_r14 = { + "AdditionalPathList-r14", + "AdditionalPathList-r14", + &asn_OP_SEQUENCE_OF, + asn_DEF_AdditionalPathList_r14_tags_1, + sizeof(asn_DEF_AdditionalPathList_r14_tags_1) + /sizeof(asn_DEF_AdditionalPathList_r14_tags_1[0]), /* 1 */ + asn_DEF_AdditionalPathList_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_AdditionalPathList_r14_tags_1) + /sizeof(asn_DEF_AdditionalPathList_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AdditionalPathList_r14_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_AdditionalPathList_r14_1, + 1, /* Single element */ + &asn_SPC_AdditionalPathList_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AdditionalPathList-r14.h b/asn.1/lpp_generated/AdditionalPathList-r14.h similarity index 80% rename from asn.1/generated/AdditionalPathList-r14.h rename to asn.1/lpp_generated/AdditionalPathList-r14.h index d7e5094c..83e0d907 100644 --- a/asn.1/generated/AdditionalPathList-r14.h +++ b/asn.1/lpp_generated/AdditionalPathList-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _AdditionalPathList_r14_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_AdditionalPathList_r14_constr_1; } #endif -/* Referred external types */ -#include "AdditionalPath-r14.h" - #endif /* _AdditionalPathList_r14_H_ */ #include diff --git a/asn.1/lpp_generated/AlmanacBDS-AlmanacSet-r12.c b/asn.1/lpp_generated/AlmanacBDS-AlmanacSet-r12.c new file mode 100644 index 00000000..4a10bab5 --- /dev/null +++ b/asn.1/lpp_generated/AlmanacBDS-AlmanacSet-r12.c @@ -0,0 +1,624 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AlmanacBDS-AlmanacSet-r12.h" + +static int +memb_bdsAlmToa_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsAlmSqrtA_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16777215L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsAlmE_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 131071L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsAlmW_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsAlmM0_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsAlmOmega0_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsAlmOmegaDot_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -65536L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsAlmDeltaI_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsAlmA0_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsAlmA1_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsSvHealth_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 9UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsAlmToa_r12_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsAlmSqrtA_r12_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsAlmE_r12_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 0, 131071 } /* (0..131071) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsAlmW_r12_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsAlmM0_r12_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsAlmOmega0_r12_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsAlmOmegaDot_r12_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, -65536, 65535 } /* (-65536..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsAlmDeltaI_r12_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsAlmA0_r12_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsAlmA1_r12_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsSvHealth_r12_constr_13 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 9, 9 } /* (SIZE(9..9)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_AlmanacBDS_AlmanacSet_r12_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, svID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID" + }, + { ATF_POINTER, 1, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmToa_r12), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsAlmToa_r12_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsAlmToa_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsAlmToa-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmSqrtA_r12), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsAlmSqrtA_r12_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsAlmSqrtA_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsAlmSqrtA-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmE_r12), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsAlmE_r12_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsAlmE_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsAlmE-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmW_r12), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsAlmW_r12_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsAlmW_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsAlmW-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmM0_r12), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsAlmM0_r12_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsAlmM0_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsAlmM0-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmOmega0_r12), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsAlmOmega0_r12_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsAlmOmega0_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsAlmOmega0-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmOmegaDot_r12), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsAlmOmegaDot_r12_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsAlmOmegaDot_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsAlmOmegaDot-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmDeltaI_r12), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsAlmDeltaI_r12_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsAlmDeltaI_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsAlmDeltaI-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmA0_r12), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsAlmA0_r12_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsAlmA0_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsAlmA0-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsAlmA1_r12), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsAlmA1_r12_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsAlmA1_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsAlmA1-r12" + }, + { ATF_POINTER, 1, offsetof(struct AlmanacBDS_AlmanacSet_r12, bdsSvHealth_r12), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsSvHealth_r12_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsSvHealth_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsSvHealth-r12" + }, +}; +static const int asn_MAP_AlmanacBDS_AlmanacSet_r12_oms_1[] = { 1, 11 }; +static const ber_tlv_tag_t asn_DEF_AlmanacBDS_AlmanacSet_r12_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AlmanacBDS_AlmanacSet_r12_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bdsAlmToa-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bdsAlmSqrtA-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* bdsAlmE-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* bdsAlmW-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* bdsAlmM0-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* bdsAlmOmega0-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* bdsAlmOmegaDot-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* bdsAlmDeltaI-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* bdsAlmA0-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* bdsAlmA1-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* bdsSvHealth-r12 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AlmanacBDS_AlmanacSet_r12_specs_1 = { + sizeof(struct AlmanacBDS_AlmanacSet_r12), + offsetof(struct AlmanacBDS_AlmanacSet_r12, _asn_ctx), + asn_MAP_AlmanacBDS_AlmanacSet_r12_tag2el_1, + 12, /* Count of tags in the map */ + asn_MAP_AlmanacBDS_AlmanacSet_r12_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 12, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AlmanacBDS_AlmanacSet_r12 = { + "AlmanacBDS-AlmanacSet-r12", + "AlmanacBDS-AlmanacSet-r12", + &asn_OP_SEQUENCE, + asn_DEF_AlmanacBDS_AlmanacSet_r12_tags_1, + sizeof(asn_DEF_AlmanacBDS_AlmanacSet_r12_tags_1) + /sizeof(asn_DEF_AlmanacBDS_AlmanacSet_r12_tags_1[0]), /* 1 */ + asn_DEF_AlmanacBDS_AlmanacSet_r12_tags_1, /* Same as above */ + sizeof(asn_DEF_AlmanacBDS_AlmanacSet_r12_tags_1) + /sizeof(asn_DEF_AlmanacBDS_AlmanacSet_r12_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AlmanacBDS_AlmanacSet_r12_1, + 12, /* Elements count */ + &asn_SPC_AlmanacBDS_AlmanacSet_r12_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AlmanacBDS-AlmanacSet-r12.h b/asn.1/lpp_generated/AlmanacBDS-AlmanacSet-r12.h similarity index 78% rename from asn.1/generated/AlmanacBDS-AlmanacSet-r12.h rename to asn.1/lpp_generated/AlmanacBDS-AlmanacSet-r12.h index 2f9971fe..3aaafb23 100644 --- a/asn.1/generated/AlmanacBDS-AlmanacSet-r12.h +++ b/asn.1/lpp_generated/AlmanacBDS-AlmanacSet-r12.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _AlmanacBDS_AlmanacSet_r12_H_ @@ -24,7 +24,7 @@ extern "C" { /* AlmanacBDS-AlmanacSet-r12 */ typedef struct AlmanacBDS_AlmanacSet_r12 { SV_ID_t svID; - long *bdsAlmToa_r12 /* OPTIONAL */; + long *bdsAlmToa_r12; /* OPTIONAL */ long bdsAlmSqrtA_r12; long bdsAlmE_r12; long bdsAlmW_r12; @@ -34,7 +34,7 @@ typedef struct AlmanacBDS_AlmanacSet_r12 { long bdsAlmDeltaI_r12; long bdsAlmA0_r12; long bdsAlmA1_r12; - BIT_STRING_t *bdsSvHealth_r12 /* OPTIONAL */; + BIT_STRING_t *bdsSvHealth_r12; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/AlmanacECEF-SBAS-AlmanacSet.c b/asn.1/lpp_generated/AlmanacECEF-SBAS-AlmanacSet.c new file mode 100644 index 00000000..2d8459fd --- /dev/null +++ b/asn.1/lpp_generated/AlmanacECEF-SBAS-AlmanacSet.c @@ -0,0 +1,522 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AlmanacECEF-SBAS-AlmanacSet.h" + +static int +memb_sbasAlmDataID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbasAlmHealth_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbasAlmXg_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16384L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbasAlmYg_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16384L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbasAlmZg_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -256L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbasAlmXgdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -4L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbasAlmYgDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -4L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbasAlmZgDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbasAlmTo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasAlmDataID_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasAlmHealth_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasAlmXg_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasAlmYg_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasAlmZg_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, -256, 255 } /* (-256..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasAlmXgdot_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, -4, 3 } /* (-4..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasAlmYgDot_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, -4, 3 } /* (-4..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasAlmZgDot_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, -8, 7 } /* (-8..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasAlmTo_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_AlmanacECEF_SBAS_AlmanacSet_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, sbasAlmDataID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasAlmDataID_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasAlmDataID_constraint_1 + }, + 0, 0, /* No default value */ + "sbasAlmDataID" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, svID), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, sbasAlmHealth), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasAlmHealth_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasAlmHealth_constraint_1 + }, + 0, 0, /* No default value */ + "sbasAlmHealth" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, sbasAlmXg), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasAlmXg_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasAlmXg_constraint_1 + }, + 0, 0, /* No default value */ + "sbasAlmXg" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, sbasAlmYg), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasAlmYg_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasAlmYg_constraint_1 + }, + 0, 0, /* No default value */ + "sbasAlmYg" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, sbasAlmZg), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasAlmZg_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasAlmZg_constraint_1 + }, + 0, 0, /* No default value */ + "sbasAlmZg" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, sbasAlmXgdot), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasAlmXgdot_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasAlmXgdot_constraint_1 + }, + 0, 0, /* No default value */ + "sbasAlmXgdot" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, sbasAlmYgDot), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasAlmYgDot_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasAlmYgDot_constraint_1 + }, + 0, 0, /* No default value */ + "sbasAlmYgDot" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, sbasAlmZgDot), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasAlmZgDot_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasAlmZgDot_constraint_1 + }, + 0, 0, /* No default value */ + "sbasAlmZgDot" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacECEF_SBAS_AlmanacSet, sbasAlmTo), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasAlmTo_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasAlmTo_constraint_1 + }, + 0, 0, /* No default value */ + "sbasAlmTo" + }, +}; +static const ber_tlv_tag_t asn_DEF_AlmanacECEF_SBAS_AlmanacSet_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AlmanacECEF_SBAS_AlmanacSet_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sbasAlmDataID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* svID */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sbasAlmHealth */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* sbasAlmXg */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* sbasAlmYg */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* sbasAlmZg */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* sbasAlmXgdot */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* sbasAlmYgDot */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* sbasAlmZgDot */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* sbasAlmTo */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AlmanacECEF_SBAS_AlmanacSet_specs_1 = { + sizeof(struct AlmanacECEF_SBAS_AlmanacSet), + offsetof(struct AlmanacECEF_SBAS_AlmanacSet, _asn_ctx), + asn_MAP_AlmanacECEF_SBAS_AlmanacSet_tag2el_1, + 10, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 10, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AlmanacECEF_SBAS_AlmanacSet = { + "AlmanacECEF-SBAS-AlmanacSet", + "AlmanacECEF-SBAS-AlmanacSet", + &asn_OP_SEQUENCE, + asn_DEF_AlmanacECEF_SBAS_AlmanacSet_tags_1, + sizeof(asn_DEF_AlmanacECEF_SBAS_AlmanacSet_tags_1) + /sizeof(asn_DEF_AlmanacECEF_SBAS_AlmanacSet_tags_1[0]), /* 1 */ + asn_DEF_AlmanacECEF_SBAS_AlmanacSet_tags_1, /* Same as above */ + sizeof(asn_DEF_AlmanacECEF_SBAS_AlmanacSet_tags_1) + /sizeof(asn_DEF_AlmanacECEF_SBAS_AlmanacSet_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AlmanacECEF_SBAS_AlmanacSet_1, + 10, /* Elements count */ + &asn_SPC_AlmanacECEF_SBAS_AlmanacSet_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AlmanacECEF-SBAS-AlmanacSet.h b/asn.1/lpp_generated/AlmanacECEF-SBAS-AlmanacSet.h similarity index 82% rename from asn.1/generated/AlmanacECEF-SBAS-AlmanacSet.h rename to asn.1/lpp_generated/AlmanacECEF-SBAS-AlmanacSet.h index 5523739c..419cf691 100644 --- a/asn.1/generated/AlmanacECEF-SBAS-AlmanacSet.h +++ b/asn.1/lpp_generated/AlmanacECEF-SBAS-AlmanacSet.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _AlmanacECEF_SBAS_AlmanacSet_H_ diff --git a/asn.1/lpp_generated/AlmanacGLONASS-AlmanacSet.c b/asn.1/lpp_generated/AlmanacGLONASS-AlmanacSet.c new file mode 100644 index 00000000..b842e359 --- /dev/null +++ b/asn.1/lpp_generated/AlmanacGLONASS-AlmanacSet.c @@ -0,0 +1,706 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AlmanacGLONASS-AlmanacSet.h" + +static int +memb_gloAlm_NA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1461L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloAlmnA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 24L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloAlmHA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 31L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloAlmLambdaA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1048576L && value <= 1048575L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloAlmtlambdaA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2097151L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloAlmDeltaIa_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -131072L && value <= 131071L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloAlmDeltaTA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2097152L && value <= 2097151L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloAlmDeltaTdotA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -64L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloAlmEpsilonA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloAlmOmegaA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloAlmTauA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -512L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloAlmCA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloAlmMA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 2UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloAlm_NA_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 1, 1461 } /* (1..1461) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloAlmnA_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 1, 24 } /* (1..24) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloAlmHA_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloAlmLambdaA_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloAlmtlambdaA_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, 0, 2097151 } /* (0..2097151) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloAlmDeltaIa_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 18, -1, -131072, 131071 } /* (-131072..131071) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloAlmDeltaTA_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, -2097152, 2097151 } /* (-2097152..2097151) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloAlmDeltaTdotA_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloAlmEpsilonA_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloAlmOmegaA_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloAlmTauA_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloAlmCA_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloAlmMA_constr_14 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_AlmanacGLONASS_AlmanacSet_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlm_NA), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloAlm_NA_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloAlm_NA_constraint_1 + }, + 0, 0, /* No default value */ + "gloAlm-NA" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmnA), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloAlmnA_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloAlmnA_constraint_1 + }, + 0, 0, /* No default value */ + "gloAlmnA" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmHA), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloAlmHA_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloAlmHA_constraint_1 + }, + 0, 0, /* No default value */ + "gloAlmHA" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmLambdaA), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloAlmLambdaA_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloAlmLambdaA_constraint_1 + }, + 0, 0, /* No default value */ + "gloAlmLambdaA" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmtlambdaA), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloAlmtlambdaA_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloAlmtlambdaA_constraint_1 + }, + 0, 0, /* No default value */ + "gloAlmtlambdaA" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmDeltaIa), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloAlmDeltaIa_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloAlmDeltaIa_constraint_1 + }, + 0, 0, /* No default value */ + "gloAlmDeltaIa" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmDeltaTA), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloAlmDeltaTA_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloAlmDeltaTA_constraint_1 + }, + 0, 0, /* No default value */ + "gloAlmDeltaTA" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmDeltaTdotA), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloAlmDeltaTdotA_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloAlmDeltaTdotA_constraint_1 + }, + 0, 0, /* No default value */ + "gloAlmDeltaTdotA" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmEpsilonA), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloAlmEpsilonA_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloAlmEpsilonA_constraint_1 + }, + 0, 0, /* No default value */ + "gloAlmEpsilonA" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmOmegaA), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloAlmOmegaA_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloAlmOmegaA_constraint_1 + }, + 0, 0, /* No default value */ + "gloAlmOmegaA" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmTauA), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloAlmTauA_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloAlmTauA_constraint_1 + }, + 0, 0, /* No default value */ + "gloAlmTauA" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmCA), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloAlmCA_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloAlmCA_constraint_1 + }, + 0, 0, /* No default value */ + "gloAlmCA" + }, + { ATF_POINTER, 1, offsetof(struct AlmanacGLONASS_AlmanacSet, gloAlmMA), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloAlmMA_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloAlmMA_constraint_1 + }, + 0, 0, /* No default value */ + "gloAlmMA" + }, +}; +static const int asn_MAP_AlmanacGLONASS_AlmanacSet_oms_1[] = { 12 }; +static const ber_tlv_tag_t asn_DEF_AlmanacGLONASS_AlmanacSet_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AlmanacGLONASS_AlmanacSet_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gloAlm-NA */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gloAlmnA */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gloAlmHA */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gloAlmLambdaA */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gloAlmtlambdaA */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gloAlmDeltaIa */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gloAlmDeltaTA */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* gloAlmDeltaTdotA */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* gloAlmEpsilonA */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* gloAlmOmegaA */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* gloAlmTauA */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* gloAlmCA */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 } /* gloAlmMA */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AlmanacGLONASS_AlmanacSet_specs_1 = { + sizeof(struct AlmanacGLONASS_AlmanacSet), + offsetof(struct AlmanacGLONASS_AlmanacSet, _asn_ctx), + asn_MAP_AlmanacGLONASS_AlmanacSet_tag2el_1, + 13, /* Count of tags in the map */ + asn_MAP_AlmanacGLONASS_AlmanacSet_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 13, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AlmanacGLONASS_AlmanacSet = { + "AlmanacGLONASS-AlmanacSet", + "AlmanacGLONASS-AlmanacSet", + &asn_OP_SEQUENCE, + asn_DEF_AlmanacGLONASS_AlmanacSet_tags_1, + sizeof(asn_DEF_AlmanacGLONASS_AlmanacSet_tags_1) + /sizeof(asn_DEF_AlmanacGLONASS_AlmanacSet_tags_1[0]), /* 1 */ + asn_DEF_AlmanacGLONASS_AlmanacSet_tags_1, /* Same as above */ + sizeof(asn_DEF_AlmanacGLONASS_AlmanacSet_tags_1) + /sizeof(asn_DEF_AlmanacGLONASS_AlmanacSet_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AlmanacGLONASS_AlmanacSet_1, + 13, /* Elements count */ + &asn_SPC_AlmanacGLONASS_AlmanacSet_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AlmanacGLONASS-AlmanacSet.h b/asn.1/lpp_generated/AlmanacGLONASS-AlmanacSet.h similarity index 80% rename from asn.1/generated/AlmanacGLONASS-AlmanacSet.h rename to asn.1/lpp_generated/AlmanacGLONASS-AlmanacSet.h index cb2a68d0..098ecb98 100644 --- a/asn.1/generated/AlmanacGLONASS-AlmanacSet.h +++ b/asn.1/lpp_generated/AlmanacGLONASS-AlmanacSet.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _AlmanacGLONASS_AlmanacSet_H_ @@ -34,7 +34,7 @@ typedef struct AlmanacGLONASS_AlmanacSet { long gloAlmOmegaA; long gloAlmTauA; long gloAlmCA; - BIT_STRING_t *gloAlmMA /* OPTIONAL */; + BIT_STRING_t *gloAlmMA; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/AlmanacKeplerianSet.c b/asn.1/lpp_generated/AlmanacKeplerianSet.c new file mode 100644 index 00000000..405daec6 --- /dev/null +++ b/asn.1/lpp_generated/AlmanacKeplerianSet.c @@ -0,0 +1,630 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AlmanacKeplerianSet.h" + +static int +memb_kepAlmanacE_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kepAlmanacDeltaI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kepAlmanacOmegaDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kepSV_StatusINAV_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 4UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kepSV_StatusFNAV_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 2UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kepAlmanacAPowerHalf_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -4096L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kepAlmanacOmega0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kepAlmanacW_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kepAlmanacM0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kepAlmanacAF0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kepAlmanacAF1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -4096L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kepAlmanacE_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kepAlmanacDeltaI_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kepAlmanacOmegaDot_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kepSV_StatusINAV_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kepSV_StatusFNAV_constr_7 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kepAlmanacAPowerHalf_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kepAlmanacOmega0_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kepAlmanacW_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kepAlmanacM0_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kepAlmanacAF0_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kepAlmanacAF1_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_AlmanacKeplerianSet_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, svID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepAlmanacE), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kepAlmanacE_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kepAlmanacE_constraint_1 + }, + 0, 0, /* No default value */ + "kepAlmanacE" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepAlmanacDeltaI), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kepAlmanacDeltaI_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kepAlmanacDeltaI_constraint_1 + }, + 0, 0, /* No default value */ + "kepAlmanacDeltaI" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepAlmanacOmegaDot), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kepAlmanacOmegaDot_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kepAlmanacOmegaDot_constraint_1 + }, + 0, 0, /* No default value */ + "kepAlmanacOmegaDot" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepSV_StatusINAV), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kepSV_StatusINAV_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kepSV_StatusINAV_constraint_1 + }, + 0, 0, /* No default value */ + "kepSV-StatusINAV" + }, + { ATF_POINTER, 1, offsetof(struct AlmanacKeplerianSet, kepSV_StatusFNAV), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kepSV_StatusFNAV_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kepSV_StatusFNAV_constraint_1 + }, + 0, 0, /* No default value */ + "kepSV-StatusFNAV" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepAlmanacAPowerHalf), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kepAlmanacAPowerHalf_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kepAlmanacAPowerHalf_constraint_1 + }, + 0, 0, /* No default value */ + "kepAlmanacAPowerHalf" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepAlmanacOmega0), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kepAlmanacOmega0_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kepAlmanacOmega0_constraint_1 + }, + 0, 0, /* No default value */ + "kepAlmanacOmega0" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepAlmanacW), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kepAlmanacW_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kepAlmanacW_constraint_1 + }, + 0, 0, /* No default value */ + "kepAlmanacW" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepAlmanacM0), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kepAlmanacM0_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kepAlmanacM0_constraint_1 + }, + 0, 0, /* No default value */ + "kepAlmanacM0" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepAlmanacAF0), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kepAlmanacAF0_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kepAlmanacAF0_constraint_1 + }, + 0, 0, /* No default value */ + "kepAlmanacAF0" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacKeplerianSet, kepAlmanacAF1), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kepAlmanacAF1_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kepAlmanacAF1_constraint_1 + }, + 0, 0, /* No default value */ + "kepAlmanacAF1" + }, +}; +static const int asn_MAP_AlmanacKeplerianSet_oms_1[] = { 5 }; +static const ber_tlv_tag_t asn_DEF_AlmanacKeplerianSet_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AlmanacKeplerianSet_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* kepAlmanacE */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* kepAlmanacDeltaI */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* kepAlmanacOmegaDot */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* kepSV-StatusINAV */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* kepSV-StatusFNAV */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* kepAlmanacAPowerHalf */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* kepAlmanacOmega0 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* kepAlmanacW */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* kepAlmanacM0 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* kepAlmanacAF0 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* kepAlmanacAF1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AlmanacKeplerianSet_specs_1 = { + sizeof(struct AlmanacKeplerianSet), + offsetof(struct AlmanacKeplerianSet, _asn_ctx), + asn_MAP_AlmanacKeplerianSet_tag2el_1, + 12, /* Count of tags in the map */ + asn_MAP_AlmanacKeplerianSet_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 12, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AlmanacKeplerianSet = { + "AlmanacKeplerianSet", + "AlmanacKeplerianSet", + &asn_OP_SEQUENCE, + asn_DEF_AlmanacKeplerianSet_tags_1, + sizeof(asn_DEF_AlmanacKeplerianSet_tags_1) + /sizeof(asn_DEF_AlmanacKeplerianSet_tags_1[0]), /* 1 */ + asn_DEF_AlmanacKeplerianSet_tags_1, /* Same as above */ + sizeof(asn_DEF_AlmanacKeplerianSet_tags_1) + /sizeof(asn_DEF_AlmanacKeplerianSet_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AlmanacKeplerianSet_1, + 12, /* Elements count */ + &asn_SPC_AlmanacKeplerianSet_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AlmanacKeplerianSet.h b/asn.1/lpp_generated/AlmanacKeplerianSet.h similarity index 79% rename from asn.1/generated/AlmanacKeplerianSet.h rename to asn.1/lpp_generated/AlmanacKeplerianSet.h index d7c08802..7767a546 100644 --- a/asn.1/generated/AlmanacKeplerianSet.h +++ b/asn.1/lpp_generated/AlmanacKeplerianSet.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _AlmanacKeplerianSet_H_ @@ -28,7 +28,7 @@ typedef struct AlmanacKeplerianSet { long kepAlmanacDeltaI; long kepAlmanacOmegaDot; BIT_STRING_t kepSV_StatusINAV; - BIT_STRING_t *kepSV_StatusFNAV /* OPTIONAL */; + BIT_STRING_t *kepSV_StatusFNAV; /* OPTIONAL */ long kepAlmanacAPowerHalf; long kepAlmanacOmega0; long kepAlmanacW; diff --git a/asn.1/lpp_generated/AlmanacMidiAlmanacSet.c b/asn.1/lpp_generated/AlmanacMidiAlmanacSet.c new file mode 100644 index 00000000..f5006606 --- /dev/null +++ b/asn.1/lpp_generated/AlmanacMidiAlmanacSet.c @@ -0,0 +1,570 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AlmanacMidiAlmanacSet.h" + +static int +memb_midiAlmE_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_midiAlmDeltaI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_midiAlmOmegaDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_midiAlmSqrtA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 131071L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_midiAlmOmega0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_midiAlmOmega_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_midiAlmMo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_midiAlmaf0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_midiAlmaf1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -512L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_midiAlmE_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_midiAlmDeltaI_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_midiAlmOmegaDot_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_midiAlmSqrtA_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 0, 131071 } /* (0..131071) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_midiAlmOmega0_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_midiAlmOmega_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_midiAlmMo_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_midiAlmaf0_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_midiAlmaf1_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_AlmanacMidiAlmanacSet_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, svID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmE), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_midiAlmE_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_midiAlmE_constraint_1 + }, + 0, 0, /* No default value */ + "midiAlmE" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmDeltaI), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_midiAlmDeltaI_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_midiAlmDeltaI_constraint_1 + }, + 0, 0, /* No default value */ + "midiAlmDeltaI" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmOmegaDot), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_midiAlmOmegaDot_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_midiAlmOmegaDot_constraint_1 + }, + 0, 0, /* No default value */ + "midiAlmOmegaDot" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmSqrtA), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_midiAlmSqrtA_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_midiAlmSqrtA_constraint_1 + }, + 0, 0, /* No default value */ + "midiAlmSqrtA" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmOmega0), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_midiAlmOmega0_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_midiAlmOmega0_constraint_1 + }, + 0, 0, /* No default value */ + "midiAlmOmega0" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmOmega), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_midiAlmOmega_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_midiAlmOmega_constraint_1 + }, + 0, 0, /* No default value */ + "midiAlmOmega" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmMo), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_midiAlmMo_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_midiAlmMo_constraint_1 + }, + 0, 0, /* No default value */ + "midiAlmMo" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmaf0), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_midiAlmaf0_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_midiAlmaf0_constraint_1 + }, + 0, 0, /* No default value */ + "midiAlmaf0" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmaf1), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_midiAlmaf1_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_midiAlmaf1_constraint_1 + }, + 0, 0, /* No default value */ + "midiAlmaf1" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmL1Health), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "midiAlmL1Health" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmL2Health), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "midiAlmL2Health" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacMidiAlmanacSet, midiAlmL5Health), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "midiAlmL5Health" + }, +}; +static const ber_tlv_tag_t asn_DEF_AlmanacMidiAlmanacSet_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AlmanacMidiAlmanacSet_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* midiAlmE */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* midiAlmDeltaI */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* midiAlmOmegaDot */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* midiAlmSqrtA */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* midiAlmOmega0 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* midiAlmOmega */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* midiAlmMo */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* midiAlmaf0 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* midiAlmaf1 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* midiAlmL1Health */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* midiAlmL2Health */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 } /* midiAlmL5Health */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AlmanacMidiAlmanacSet_specs_1 = { + sizeof(struct AlmanacMidiAlmanacSet), + offsetof(struct AlmanacMidiAlmanacSet, _asn_ctx), + asn_MAP_AlmanacMidiAlmanacSet_tag2el_1, + 13, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 13, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AlmanacMidiAlmanacSet = { + "AlmanacMidiAlmanacSet", + "AlmanacMidiAlmanacSet", + &asn_OP_SEQUENCE, + asn_DEF_AlmanacMidiAlmanacSet_tags_1, + sizeof(asn_DEF_AlmanacMidiAlmanacSet_tags_1) + /sizeof(asn_DEF_AlmanacMidiAlmanacSet_tags_1[0]), /* 1 */ + asn_DEF_AlmanacMidiAlmanacSet_tags_1, /* Same as above */ + sizeof(asn_DEF_AlmanacMidiAlmanacSet_tags_1) + /sizeof(asn_DEF_AlmanacMidiAlmanacSet_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AlmanacMidiAlmanacSet_1, + 13, /* Elements count */ + &asn_SPC_AlmanacMidiAlmanacSet_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AlmanacMidiAlmanacSet.h b/asn.1/lpp_generated/AlmanacMidiAlmanacSet.h similarity index 83% rename from asn.1/generated/AlmanacMidiAlmanacSet.h rename to asn.1/lpp_generated/AlmanacMidiAlmanacSet.h index 6e8c4f4d..d1f87fb1 100644 --- a/asn.1/generated/AlmanacMidiAlmanacSet.h +++ b/asn.1/lpp_generated/AlmanacMidiAlmanacSet.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _AlmanacMidiAlmanacSet_H_ diff --git a/asn.1/lpp_generated/AlmanacNAV-KeplerianSet.c b/asn.1/lpp_generated/AlmanacNAV-KeplerianSet.c new file mode 100644 index 00000000..c9815d88 --- /dev/null +++ b/asn.1/lpp_generated/AlmanacNAV-KeplerianSet.c @@ -0,0 +1,566 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AlmanacNAV-KeplerianSet.h" + +static int +memb_navAlmE_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navAlmDeltaI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navAlmOMEGADOT_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navAlmSVHealth_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navAlmSqrtA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16777215L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navAlmOMEGAo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navAlmOmega_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navAlmMo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navAlmaf0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navAlmaf1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navAlmE_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navAlmDeltaI_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navAlmOMEGADOT_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navAlmSVHealth_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navAlmSqrtA_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navAlmOMEGAo_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navAlmOmega_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navAlmMo_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navAlmaf0_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navAlmaf1_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_AlmanacNAV_KeplerianSet_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, svID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmE), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navAlmE_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navAlmE_constraint_1 + }, + 0, 0, /* No default value */ + "navAlmE" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmDeltaI), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navAlmDeltaI_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navAlmDeltaI_constraint_1 + }, + 0, 0, /* No default value */ + "navAlmDeltaI" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmOMEGADOT), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navAlmOMEGADOT_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navAlmOMEGADOT_constraint_1 + }, + 0, 0, /* No default value */ + "navAlmOMEGADOT" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmSVHealth), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navAlmSVHealth_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navAlmSVHealth_constraint_1 + }, + 0, 0, /* No default value */ + "navAlmSVHealth" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmSqrtA), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navAlmSqrtA_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navAlmSqrtA_constraint_1 + }, + 0, 0, /* No default value */ + "navAlmSqrtA" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmOMEGAo), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navAlmOMEGAo_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navAlmOMEGAo_constraint_1 + }, + 0, 0, /* No default value */ + "navAlmOMEGAo" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmOmega), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navAlmOmega_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navAlmOmega_constraint_1 + }, + 0, 0, /* No default value */ + "navAlmOmega" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmMo), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navAlmMo_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navAlmMo_constraint_1 + }, + 0, 0, /* No default value */ + "navAlmMo" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmaf0), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navAlmaf0_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navAlmaf0_constraint_1 + }, + 0, 0, /* No default value */ + "navAlmaf0" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNAV_KeplerianSet, navAlmaf1), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navAlmaf1_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navAlmaf1_constraint_1 + }, + 0, 0, /* No default value */ + "navAlmaf1" + }, +}; +static const ber_tlv_tag_t asn_DEF_AlmanacNAV_KeplerianSet_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AlmanacNAV_KeplerianSet_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* navAlmE */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* navAlmDeltaI */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* navAlmOMEGADOT */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* navAlmSVHealth */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* navAlmSqrtA */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* navAlmOMEGAo */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* navAlmOmega */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* navAlmMo */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* navAlmaf0 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 } /* navAlmaf1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AlmanacNAV_KeplerianSet_specs_1 = { + sizeof(struct AlmanacNAV_KeplerianSet), + offsetof(struct AlmanacNAV_KeplerianSet, _asn_ctx), + asn_MAP_AlmanacNAV_KeplerianSet_tag2el_1, + 11, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 11, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AlmanacNAV_KeplerianSet = { + "AlmanacNAV-KeplerianSet", + "AlmanacNAV-KeplerianSet", + &asn_OP_SEQUENCE, + asn_DEF_AlmanacNAV_KeplerianSet_tags_1, + sizeof(asn_DEF_AlmanacNAV_KeplerianSet_tags_1) + /sizeof(asn_DEF_AlmanacNAV_KeplerianSet_tags_1[0]), /* 1 */ + asn_DEF_AlmanacNAV_KeplerianSet_tags_1, /* Same as above */ + sizeof(asn_DEF_AlmanacNAV_KeplerianSet_tags_1) + /sizeof(asn_DEF_AlmanacNAV_KeplerianSet_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AlmanacNAV_KeplerianSet_1, + 11, /* Elements count */ + &asn_SPC_AlmanacNAV_KeplerianSet_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AlmanacNAV-KeplerianSet.h b/asn.1/lpp_generated/AlmanacNAV-KeplerianSet.h similarity index 82% rename from asn.1/generated/AlmanacNAV-KeplerianSet.h rename to asn.1/lpp_generated/AlmanacNAV-KeplerianSet.h index 0a4d2de8..d18b9daa 100644 --- a/asn.1/generated/AlmanacNAV-KeplerianSet.h +++ b/asn.1/lpp_generated/AlmanacNAV-KeplerianSet.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _AlmanacNAV_KeplerianSet_H_ diff --git a/asn.1/lpp_generated/AlmanacNavIC-AlmanacSet-r16.c b/asn.1/lpp_generated/AlmanacNavIC-AlmanacSet-r16.c new file mode 100644 index 00000000..0d500533 --- /dev/null +++ b/asn.1/lpp_generated/AlmanacNavIC-AlmanacSet-r16.c @@ -0,0 +1,518 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AlmanacNavIC-AlmanacSet-r16.h" + +static int +memb_navic_AlmToa_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_AlmE_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_AlmOMEGADOT_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_AlmSqrtA_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16777215L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_AlmOMEGAo_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_AlmOmega_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_AlmMo_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_Almaf0_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_Almaf1_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_AlmToa_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_AlmE_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_AlmOMEGADOT_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_AlmSqrtA_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_AlmOMEGAo_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_AlmOmega_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_AlmMo_r16_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_Almaf0_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_Almaf1_r16_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_AlmanacNavIC_AlmanacSet_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNavIC_AlmanacSet_r16, svID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID-r16" + }, + { ATF_POINTER, 1, offsetof(struct AlmanacNavIC_AlmanacSet_r16, navic_AlmToa_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_AlmToa_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_AlmToa_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-AlmToa-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNavIC_AlmanacSet_r16, navic_AlmE_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_AlmE_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_AlmE_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-AlmE-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNavIC_AlmanacSet_r16, navic_AlmOMEGADOT_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_AlmOMEGADOT_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_AlmOMEGADOT_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-AlmOMEGADOT-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNavIC_AlmanacSet_r16, navic_AlmSqrtA_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_AlmSqrtA_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_AlmSqrtA_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-AlmSqrtA-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNavIC_AlmanacSet_r16, navic_AlmOMEGAo_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_AlmOMEGAo_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_AlmOMEGAo_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-AlmOMEGAo-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNavIC_AlmanacSet_r16, navic_AlmOmega_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_AlmOmega_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_AlmOmega_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-AlmOmega-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNavIC_AlmanacSet_r16, navic_AlmMo_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_AlmMo_r16_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_AlmMo_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-AlmMo-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNavIC_AlmanacSet_r16, navic_Almaf0_r16), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_Almaf0_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_Almaf0_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-Almaf0-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacNavIC_AlmanacSet_r16, navic_Almaf1_r16), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_Almaf1_r16_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_Almaf1_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-Almaf1-r16" + }, +}; +static const int asn_MAP_AlmanacNavIC_AlmanacSet_r16_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_AlmanacNavIC_AlmanacSet_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AlmanacNavIC_AlmanacSet_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* navic-AlmToa-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* navic-AlmE-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* navic-AlmOMEGADOT-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* navic-AlmSqrtA-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* navic-AlmOMEGAo-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* navic-AlmOmega-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* navic-AlmMo-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* navic-Almaf0-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* navic-Almaf1-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AlmanacNavIC_AlmanacSet_r16_specs_1 = { + sizeof(struct AlmanacNavIC_AlmanacSet_r16), + offsetof(struct AlmanacNavIC_AlmanacSet_r16, _asn_ctx), + asn_MAP_AlmanacNavIC_AlmanacSet_r16_tag2el_1, + 10, /* Count of tags in the map */ + asn_MAP_AlmanacNavIC_AlmanacSet_r16_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 10, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AlmanacNavIC_AlmanacSet_r16 = { + "AlmanacNavIC-AlmanacSet-r16", + "AlmanacNavIC-AlmanacSet-r16", + &asn_OP_SEQUENCE, + asn_DEF_AlmanacNavIC_AlmanacSet_r16_tags_1, + sizeof(asn_DEF_AlmanacNavIC_AlmanacSet_r16_tags_1) + /sizeof(asn_DEF_AlmanacNavIC_AlmanacSet_r16_tags_1[0]), /* 1 */ + asn_DEF_AlmanacNavIC_AlmanacSet_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_AlmanacNavIC_AlmanacSet_r16_tags_1) + /sizeof(asn_DEF_AlmanacNavIC_AlmanacSet_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AlmanacNavIC_AlmanacSet_r16_1, + 10, /* Elements count */ + &asn_SPC_AlmanacNavIC_AlmanacSet_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AlmanacNavIC-AlmanacSet-r16.h b/asn.1/lpp_generated/AlmanacNavIC-AlmanacSet-r16.h similarity index 80% rename from asn.1/generated/AlmanacNavIC-AlmanacSet-r16.h rename to asn.1/lpp_generated/AlmanacNavIC-AlmanacSet-r16.h index c7b12a79..7636524e 100644 --- a/asn.1/generated/AlmanacNavIC-AlmanacSet-r16.h +++ b/asn.1/lpp_generated/AlmanacNavIC-AlmanacSet-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _AlmanacNavIC_AlmanacSet_r16_H_ @@ -23,7 +23,7 @@ extern "C" { /* AlmanacNavIC-AlmanacSet-r16 */ typedef struct AlmanacNavIC_AlmanacSet_r16 { SV_ID_t svID_r16; - long *navic_AlmToa_r16 /* OPTIONAL */; + long *navic_AlmToa_r16; /* OPTIONAL */ long navic_AlmE_r16; long navic_AlmOMEGADOT_r16; long navic_AlmSqrtA_r16; diff --git a/asn.1/lpp_generated/AlmanacReducedKeplerianSet.c b/asn.1/lpp_generated/AlmanacReducedKeplerianSet.c new file mode 100644 index 00000000..73014ae1 --- /dev/null +++ b/asn.1/lpp_generated/AlmanacReducedKeplerianSet.c @@ -0,0 +1,270 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AlmanacReducedKeplerianSet.h" + +static int +memb_redAlmDeltaA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_redAlmOmega0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -64L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_redAlmPhi0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -64L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_redAlmDeltaA_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_redAlmOmega0_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_redAlmPhi0_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_AlmanacReducedKeplerianSet_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AlmanacReducedKeplerianSet, svID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacReducedKeplerianSet, redAlmDeltaA), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_redAlmDeltaA_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_redAlmDeltaA_constraint_1 + }, + 0, 0, /* No default value */ + "redAlmDeltaA" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacReducedKeplerianSet, redAlmOmega0), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_redAlmOmega0_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_redAlmOmega0_constraint_1 + }, + 0, 0, /* No default value */ + "redAlmOmega0" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacReducedKeplerianSet, redAlmPhi0), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_redAlmPhi0_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_redAlmPhi0_constraint_1 + }, + 0, 0, /* No default value */ + "redAlmPhi0" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacReducedKeplerianSet, redAlmL1Health), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "redAlmL1Health" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacReducedKeplerianSet, redAlmL2Health), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "redAlmL2Health" + }, + { ATF_NOFLAGS, 0, offsetof(struct AlmanacReducedKeplerianSet, redAlmL5Health), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "redAlmL5Health" + }, +}; +static const ber_tlv_tag_t asn_DEF_AlmanacReducedKeplerianSet_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AlmanacReducedKeplerianSet_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* redAlmDeltaA */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* redAlmOmega0 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* redAlmPhi0 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* redAlmL1Health */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* redAlmL2Health */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* redAlmL5Health */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AlmanacReducedKeplerianSet_specs_1 = { + sizeof(struct AlmanacReducedKeplerianSet), + offsetof(struct AlmanacReducedKeplerianSet, _asn_ctx), + asn_MAP_AlmanacReducedKeplerianSet_tag2el_1, + 7, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AlmanacReducedKeplerianSet = { + "AlmanacReducedKeplerianSet", + "AlmanacReducedKeplerianSet", + &asn_OP_SEQUENCE, + asn_DEF_AlmanacReducedKeplerianSet_tags_1, + sizeof(asn_DEF_AlmanacReducedKeplerianSet_tags_1) + /sizeof(asn_DEF_AlmanacReducedKeplerianSet_tags_1[0]), /* 1 */ + asn_DEF_AlmanacReducedKeplerianSet_tags_1, /* Same as above */ + sizeof(asn_DEF_AlmanacReducedKeplerianSet_tags_1) + /sizeof(asn_DEF_AlmanacReducedKeplerianSet_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AlmanacReducedKeplerianSet_1, + 7, /* Elements count */ + &asn_SPC_AlmanacReducedKeplerianSet_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AlmanacReducedKeplerianSet.h b/asn.1/lpp_generated/AlmanacReducedKeplerianSet.h similarity index 82% rename from asn.1/generated/AlmanacReducedKeplerianSet.h rename to asn.1/lpp_generated/AlmanacReducedKeplerianSet.h index a11702e2..c8c95d18 100644 --- a/asn.1/generated/AlmanacReducedKeplerianSet.h +++ b/asn.1/lpp_generated/AlmanacReducedKeplerianSet.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _AlmanacReducedKeplerianSet_H_ diff --git a/asn.1/lpp_generated/AntennaDescription-r15.c b/asn.1/lpp_generated/AntennaDescription-r15.c new file mode 100644 index 00000000..09f9c53e --- /dev/null +++ b/asn.1/lpp_generated/AntennaDescription-r15.c @@ -0,0 +1,187 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AntennaDescription-r15.h" + +static int check_permitted_alphabet_2(const void *sptr) { + /* The underlying type is VisibleString */ + const VisibleString_t *st = (const VisibleString_t *)sptr; + const uint8_t *ch = st->buf; + const uint8_t *end = ch + st->size; + + for(; ch < end; ch++) { + uint8_t cv = *ch; + if(!(cv >= 32UL && cv <= 126UL)) return -1; + } + return 0; +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_antennaDescriptor_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const VisibleString_t *st = (const VisibleString_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size >= 1UL && size <= 256UL) + && !check_permitted_alphabet_2(st)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_antennaSetUpID_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_antennaDescriptor_r15_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 32, 126 } /* (32..126) */, + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (SIZE(1..256)) */, + 0, 0 /* No PER character map necessary */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_antennaSetUpID_r15_value2enum_3[] = { + { 0, 8, "non-zero" } +}; +static const unsigned int asn_MAP_antennaSetUpID_r15_enum2value_3[] = { + 0 /* non-zero(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_antennaSetUpID_r15_specs_3 = { + asn_MAP_antennaSetUpID_r15_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_antennaSetUpID_r15_enum2value_3, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_antennaSetUpID_r15_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_antennaSetUpID_r15_3 = { + "antennaSetUpID-r15", + "antennaSetUpID-r15", + &asn_OP_NativeEnumerated, + asn_DEF_antennaSetUpID_r15_tags_3, + sizeof(asn_DEF_antennaSetUpID_r15_tags_3) + /sizeof(asn_DEF_antennaSetUpID_r15_tags_3[0]) - 1, /* 1 */ + asn_DEF_antennaSetUpID_r15_tags_3, /* Same as above */ + sizeof(asn_DEF_antennaSetUpID_r15_tags_3) + /sizeof(asn_DEF_antennaSetUpID_r15_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_antennaSetUpID_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_antennaSetUpID_r15_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_AntennaDescription_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AntennaDescription_r15, antennaDescriptor_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VisibleString, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_antennaDescriptor_r15_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_antennaDescriptor_r15_constraint_1 + }, + 0, 0, /* No default value */ + "antennaDescriptor-r15" + }, + { ATF_POINTER, 1, offsetof(struct AntennaDescription_r15, antennaSetUpID_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_antennaSetUpID_r15_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "antennaSetUpID-r15" + }, +}; +static const int asn_MAP_AntennaDescription_r15_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_AntennaDescription_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AntennaDescription_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* antennaDescriptor-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* antennaSetUpID-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AntennaDescription_r15_specs_1 = { + sizeof(struct AntennaDescription_r15), + offsetof(struct AntennaDescription_r15, _asn_ctx), + asn_MAP_AntennaDescription_r15_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_AntennaDescription_r15_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AntennaDescription_r15 = { + "AntennaDescription-r15", + "AntennaDescription-r15", + &asn_OP_SEQUENCE, + asn_DEF_AntennaDescription_r15_tags_1, + sizeof(asn_DEF_AntennaDescription_r15_tags_1) + /sizeof(asn_DEF_AntennaDescription_r15_tags_1[0]), /* 1 */ + asn_DEF_AntennaDescription_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_AntennaDescription_r15_tags_1) + /sizeof(asn_DEF_AntennaDescription_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AntennaDescription_r15_1, + 2, /* Elements count */ + &asn_SPC_AntennaDescription_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AntennaDescription-r15.h b/asn.1/lpp_generated/AntennaDescription-r15.h similarity index 81% rename from asn.1/generated/AntennaDescription-r15.h rename to asn.1/lpp_generated/AntennaDescription-r15.h index 736cb7b7..68411f8f 100644 --- a/asn.1/generated/AntennaDescription-r15.h +++ b/asn.1/lpp_generated/AntennaDescription-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _AntennaDescription_r15_H_ @@ -28,7 +28,7 @@ typedef enum AntennaDescription_r15__antennaSetUpID_r15 { /* AntennaDescription-r15 */ typedef struct AntennaDescription_r15 { VisibleString_t antennaDescriptor_r15; - long *antennaSetUpID_r15 /* OPTIONAL */; + long *antennaSetUpID_r15; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/AntennaReferencePointUnc-r15.c b/asn.1/lpp_generated/AntennaReferencePointUnc-r15.c new file mode 100644 index 00000000..bb235f11 --- /dev/null +++ b/asn.1/lpp_generated/AntennaReferencePointUnc-r15.c @@ -0,0 +1,348 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AntennaReferencePointUnc-r15.h" + +static int +memb_uncertainty_X_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_confidence_X_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertainty_Y_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_confidence_Y_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertainty_Z_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_confidence_Z_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertainty_X_r15_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_confidence_X_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertainty_Y_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_confidence_Y_r15_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertainty_Z_r15_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_confidence_Z_r15_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_AntennaReferencePointUnc_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AntennaReferencePointUnc_r15, uncertainty_X_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertainty_X_r15_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertainty_X_r15_constraint_1 + }, + 0, 0, /* No default value */ + "uncertainty-X-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct AntennaReferencePointUnc_r15, confidence_X_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_confidence_X_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_confidence_X_r15_constraint_1 + }, + 0, 0, /* No default value */ + "confidence-X-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct AntennaReferencePointUnc_r15, uncertainty_Y_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertainty_Y_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertainty_Y_r15_constraint_1 + }, + 0, 0, /* No default value */ + "uncertainty-Y-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct AntennaReferencePointUnc_r15, confidence_Y_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_confidence_Y_r15_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_confidence_Y_r15_constraint_1 + }, + 0, 0, /* No default value */ + "confidence-Y-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct AntennaReferencePointUnc_r15, uncertainty_Z_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertainty_Z_r15_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertainty_Z_r15_constraint_1 + }, + 0, 0, /* No default value */ + "uncertainty-Z-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct AntennaReferencePointUnc_r15, confidence_Z_r15), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_confidence_Z_r15_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_confidence_Z_r15_constraint_1 + }, + 0, 0, /* No default value */ + "confidence-Z-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_AntennaReferencePointUnc_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AntennaReferencePointUnc_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* uncertainty-X-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* confidence-X-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* uncertainty-Y-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* confidence-Y-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* uncertainty-Z-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* confidence-Z-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AntennaReferencePointUnc_r15_specs_1 = { + sizeof(struct AntennaReferencePointUnc_r15), + offsetof(struct AntennaReferencePointUnc_r15, _asn_ctx), + asn_MAP_AntennaReferencePointUnc_r15_tag2el_1, + 6, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AntennaReferencePointUnc_r15 = { + "AntennaReferencePointUnc-r15", + "AntennaReferencePointUnc-r15", + &asn_OP_SEQUENCE, + asn_DEF_AntennaReferencePointUnc_r15_tags_1, + sizeof(asn_DEF_AntennaReferencePointUnc_r15_tags_1) + /sizeof(asn_DEF_AntennaReferencePointUnc_r15_tags_1[0]), /* 1 */ + asn_DEF_AntennaReferencePointUnc_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_AntennaReferencePointUnc_r15_tags_1) + /sizeof(asn_DEF_AntennaReferencePointUnc_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AntennaReferencePointUnc_r15_1, + 6, /* Elements count */ + &asn_SPC_AntennaReferencePointUnc_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AntennaReferencePointUnc-r15.h b/asn.1/lpp_generated/AntennaReferencePointUnc-r15.h similarity index 81% rename from asn.1/generated/AntennaReferencePointUnc-r15.h rename to asn.1/lpp_generated/AntennaReferencePointUnc-r15.h index e934cfc8..33ca0924 100644 --- a/asn.1/generated/AntennaReferencePointUnc-r15.h +++ b/asn.1/lpp_generated/AntennaReferencePointUnc-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _AntennaReferencePointUnc_r15_H_ diff --git a/asn.1/lpp_generated/AreaID-CellList-r17.c b/asn.1/lpp_generated/AreaID-CellList-r17.c new file mode 100644 index 00000000..eee31e9e --- /dev/null +++ b/asn.1/lpp_generated/AreaID-CellList-r17.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AreaID-CellList-r17.h" + +#include "NR-Cell-IDs-r17.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AreaID_CellList_r17_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (SIZE(1..256)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_AreaID_CellList_r17_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_Cell_IDs_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_AreaID_CellList_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_AreaID_CellList_r17_specs_1 = { + sizeof(struct AreaID_CellList_r17), + offsetof(struct AreaID_CellList_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_AreaID_CellList_r17 = { + "AreaID-CellList-r17", + "AreaID-CellList-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_AreaID_CellList_r17_tags_1, + sizeof(asn_DEF_AreaID_CellList_r17_tags_1) + /sizeof(asn_DEF_AreaID_CellList_r17_tags_1[0]), /* 1 */ + asn_DEF_AreaID_CellList_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_AreaID_CellList_r17_tags_1) + /sizeof(asn_DEF_AreaID_CellList_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AreaID_CellList_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_AreaID_CellList_r17_1, + 1, /* Single element */ + &asn_SPC_AreaID_CellList_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/AreaID-CellList-r17.h b/asn.1/lpp_generated/AreaID-CellList-r17.h new file mode 100644 index 00000000..5de52dc5 --- /dev/null +++ b/asn.1/lpp_generated/AreaID-CellList-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _AreaID_CellList_r17_H_ +#define _AreaID_CellList_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_Cell_IDs_r17; + +/* AreaID-CellList-r17 */ +typedef struct AreaID_CellList_r17 { + A_SEQUENCE_OF(struct NR_Cell_IDs_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} AreaID_CellList_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_AreaID_CellList_r17; +extern asn_SET_OF_specifics_t asn_SPC_AreaID_CellList_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_AreaID_CellList_r17_1[1]; +extern asn_per_constraints_t asn_PER_type_AreaID_CellList_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _AreaID_CellList_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/ArrayOfGridPoints-r18.c b/asn.1/lpp_generated/ArrayOfGridPoints-r18.c new file mode 100644 index 00000000..6b131bcf --- /dev/null +++ b/asn.1/lpp_generated/ArrayOfGridPoints-r18.c @@ -0,0 +1,516 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ArrayOfGridPoints-r18.h" + +static int +memb_bog16_r18_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 16UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bog64_r18_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 64UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bog256_r18_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 256UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_referencePointLatitude_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16777216L && value <= 16777215L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_referencePointLongitude_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -33554432L && value <= 33554431L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_numberOfStepsSouth_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_numberOfStepsEast_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bog16_r18_constr_9 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bog64_r18_constr_10 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 64, 64 } /* (SIZE(64..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bog256_r18_constr_11 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 256, 256 } /* (SIZE(256..256)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_bitmaskOfGrids_r18_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_referencePointLatitude_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 25, -1, -16777216, 16777215 } /* (-16777216..16777215) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_referencePointLongitude_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 26, -1, -33554432, 33554431 } /* (-33554432..33554431) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_numberOfStepsSouth_r18_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_numberOfStepsEast_r18_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_bitmaskOfGrids_r18_8[] = { + { ATF_NOFLAGS, 0, offsetof(struct ArrayOfGridPoints_r18__bitmaskOfGrids_r18, choice.bog16_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bog16_r18_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bog16_r18_constraint_8 + }, + 0, 0, /* No default value */ + "bog16-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct ArrayOfGridPoints_r18__bitmaskOfGrids_r18, choice.bog64_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bog64_r18_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bog64_r18_constraint_8 + }, + 0, 0, /* No default value */ + "bog64-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct ArrayOfGridPoints_r18__bitmaskOfGrids_r18, choice.bog256_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bog256_r18_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bog256_r18_constraint_8 + }, + 0, 0, /* No default value */ + "bog256-r18" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_bitmaskOfGrids_r18_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bog16-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bog64-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* bog256-r18 */ +}; +static asn_CHOICE_specifics_t asn_SPC_bitmaskOfGrids_r18_specs_8 = { + sizeof(struct ArrayOfGridPoints_r18__bitmaskOfGrids_r18), + offsetof(struct ArrayOfGridPoints_r18__bitmaskOfGrids_r18, _asn_ctx), + offsetof(struct ArrayOfGridPoints_r18__bitmaskOfGrids_r18, present), + sizeof(((struct ArrayOfGridPoints_r18__bitmaskOfGrids_r18 *)0)->present), + asn_MAP_bitmaskOfGrids_r18_tag2el_8, + 3, /* Count of tags in the map */ + 0, 0, + 3 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_bitmaskOfGrids_r18_8 = { + "bitmaskOfGrids-r18", + "bitmaskOfGrids-r18", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_bitmaskOfGrids_r18_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_bitmaskOfGrids_r18_8, + 3, /* Elements count */ + &asn_SPC_bitmaskOfGrids_r18_specs_8 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ArrayOfGridPoints_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ArrayOfGridPoints_r18, referencePointLatitude_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_referencePointLatitude_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_referencePointLatitude_r18_constraint_1 + }, + 0, 0, /* No default value */ + "referencePointLatitude-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct ArrayOfGridPoints_r18, referencePointLongitude_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_referencePointLongitude_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_referencePointLongitude_r18_constraint_1 + }, + 0, 0, /* No default value */ + "referencePointLongitude-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct ArrayOfGridPoints_r18, numberOfStepsSouth_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_numberOfStepsSouth_r18_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_numberOfStepsSouth_r18_constraint_1 + }, + 0, 0, /* No default value */ + "numberOfStepsSouth-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct ArrayOfGridPoints_r18, numberOfStepsEast_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_numberOfStepsEast_r18_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_numberOfStepsEast_r18_constraint_1 + }, + 0, 0, /* No default value */ + "numberOfStepsEast-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct ArrayOfGridPoints_r18, stepSouth_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpatialDelta_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stepSouth-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct ArrayOfGridPoints_r18, stepEast_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpatialDelta_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stepEast-r18" + }, + { ATF_POINTER, 1, offsetof(struct ArrayOfGridPoints_r18, bitmaskOfGrids_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_bitmaskOfGrids_r18_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bitmaskOfGrids-r18" + }, +}; +static const int asn_MAP_ArrayOfGridPoints_r18_oms_1[] = { 6 }; +static const ber_tlv_tag_t asn_DEF_ArrayOfGridPoints_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ArrayOfGridPoints_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referencePointLatitude-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* referencePointLongitude-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* numberOfStepsSouth-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* numberOfStepsEast-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* stepSouth-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* stepEast-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* bitmaskOfGrids-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ArrayOfGridPoints_r18_specs_1 = { + sizeof(struct ArrayOfGridPoints_r18), + offsetof(struct ArrayOfGridPoints_r18, _asn_ctx), + asn_MAP_ArrayOfGridPoints_r18_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_ArrayOfGridPoints_r18_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ArrayOfGridPoints_r18 = { + "ArrayOfGridPoints-r18", + "ArrayOfGridPoints-r18", + &asn_OP_SEQUENCE, + asn_DEF_ArrayOfGridPoints_r18_tags_1, + sizeof(asn_DEF_ArrayOfGridPoints_r18_tags_1) + /sizeof(asn_DEF_ArrayOfGridPoints_r18_tags_1[0]), /* 1 */ + asn_DEF_ArrayOfGridPoints_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_ArrayOfGridPoints_r18_tags_1) + /sizeof(asn_DEF_ArrayOfGridPoints_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ArrayOfGridPoints_r18_1, + 7, /* Elements count */ + &asn_SPC_ArrayOfGridPoints_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/ArrayOfGridPoints-r18.h b/asn.1/lpp_generated/ArrayOfGridPoints-r18.h new file mode 100644 index 00000000..3a6fde1e --- /dev/null +++ b/asn.1/lpp_generated/ArrayOfGridPoints-r18.h @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _ArrayOfGridPoints_r18_H_ +#define _ArrayOfGridPoints_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include "SpatialDelta-r18.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum ArrayOfGridPoints_r18__bitmaskOfGrids_r18_PR { + ArrayOfGridPoints_r18__bitmaskOfGrids_r18_PR_NOTHING, /* No components present */ + ArrayOfGridPoints_r18__bitmaskOfGrids_r18_PR_bog16_r18, + ArrayOfGridPoints_r18__bitmaskOfGrids_r18_PR_bog64_r18, + ArrayOfGridPoints_r18__bitmaskOfGrids_r18_PR_bog256_r18 + /* Extensions may appear below */ + +} ArrayOfGridPoints_r18__bitmaskOfGrids_r18_PR; + +/* ArrayOfGridPoints-r18 */ +typedef struct ArrayOfGridPoints_r18 { + long referencePointLatitude_r18; + long referencePointLongitude_r18; + long numberOfStepsSouth_r18; + long numberOfStepsEast_r18; + SpatialDelta_r18_t stepSouth_r18; + SpatialDelta_r18_t stepEast_r18; + struct ArrayOfGridPoints_r18__bitmaskOfGrids_r18 { + ArrayOfGridPoints_r18__bitmaskOfGrids_r18_PR present; + union ArrayOfGridPoints_r18__bitmaskOfGrids_r18_u { + BIT_STRING_t bog16_r18; + BIT_STRING_t bog64_r18; + BIT_STRING_t bog256_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *bitmaskOfGrids_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ArrayOfGridPoints_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ArrayOfGridPoints_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_ArrayOfGridPoints_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_ArrayOfGridPoints_r18_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ArrayOfGridPoints_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/AssistanceDataSupportList.c b/asn.1/lpp_generated/AssistanceDataSupportList.c new file mode 100644 index 00000000..ca9d49db --- /dev/null +++ b/asn.1/lpp_generated/AssistanceDataSupportList.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AssistanceDataSupportList.h" + +asn_TYPE_member_t asn_MBR_AssistanceDataSupportList_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AssistanceDataSupportList, gnss_CommonAssistanceDataSupport), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_CommonAssistanceDataSupport, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-CommonAssistanceDataSupport" + }, + { ATF_NOFLAGS, 0, offsetof(struct AssistanceDataSupportList, gnss_GenericAssistanceDataSupport), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_GenericAssistanceDataSupport, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-GenericAssistanceDataSupport" + }, +}; +static const ber_tlv_tag_t asn_DEF_AssistanceDataSupportList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AssistanceDataSupportList_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-CommonAssistanceDataSupport */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-GenericAssistanceDataSupport */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AssistanceDataSupportList_specs_1 = { + sizeof(struct AssistanceDataSupportList), + offsetof(struct AssistanceDataSupportList, _asn_ctx), + asn_MAP_AssistanceDataSupportList_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AssistanceDataSupportList = { + "AssistanceDataSupportList", + "AssistanceDataSupportList", + &asn_OP_SEQUENCE, + asn_DEF_AssistanceDataSupportList_tags_1, + sizeof(asn_DEF_AssistanceDataSupportList_tags_1) + /sizeof(asn_DEF_AssistanceDataSupportList_tags_1[0]), /* 1 */ + asn_DEF_AssistanceDataSupportList_tags_1, /* Same as above */ + sizeof(asn_DEF_AssistanceDataSupportList_tags_1) + /sizeof(asn_DEF_AssistanceDataSupportList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AssistanceDataSupportList_1, + 2, /* Elements count */ + &asn_SPC_AssistanceDataSupportList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AssistanceDataSupportList.h b/asn.1/lpp_generated/AssistanceDataSupportList.h similarity index 82% rename from asn.1/generated/AssistanceDataSupportList.h rename to asn.1/lpp_generated/AssistanceDataSupportList.h index 3ec9830d..9934da9e 100644 --- a/asn.1/generated/AssistanceDataSupportList.h +++ b/asn.1/lpp_generated/AssistanceDataSupportList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _AssistanceDataSupportList_H_ diff --git a/asn.1/lpp_generated/Aux-ARP-Unc-r15.c b/asn.1/lpp_generated/Aux-ARP-Unc-r15.c new file mode 100644 index 00000000..79239407 --- /dev/null +++ b/asn.1/lpp_generated/Aux-ARP-Unc-r15.c @@ -0,0 +1,250 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Aux-ARP-Unc-r15.h" + +static int +memb_horizontalUncertainty_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_horizontalConfidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_verticalUncertainty_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_verticalConfidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horizontalUncertainty_r15_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horizontalConfidence_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_verticalUncertainty_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_verticalConfidence_r15_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Aux_ARP_Unc_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Aux_ARP_Unc_r15, horizontalUncertainty_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horizontalUncertainty_r15_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horizontalUncertainty_r15_constraint_1 + }, + 0, 0, /* No default value */ + "horizontalUncertainty-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct Aux_ARP_Unc_r15, horizontalConfidence_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horizontalConfidence_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horizontalConfidence_r15_constraint_1 + }, + 0, 0, /* No default value */ + "horizontalConfidence-r15" + }, + { ATF_POINTER, 2, offsetof(struct Aux_ARP_Unc_r15, verticalUncertainty_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_verticalUncertainty_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_verticalUncertainty_r15_constraint_1 + }, + 0, 0, /* No default value */ + "verticalUncertainty-r15" + }, + { ATF_POINTER, 1, offsetof(struct Aux_ARP_Unc_r15, verticalConfidence_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_verticalConfidence_r15_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_verticalConfidence_r15_constraint_1 + }, + 0, 0, /* No default value */ + "verticalConfidence-r15" + }, +}; +static const int asn_MAP_Aux_ARP_Unc_r15_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_Aux_ARP_Unc_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Aux_ARP_Unc_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horizontalUncertainty-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horizontalConfidence-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* verticalUncertainty-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* verticalConfidence-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Aux_ARP_Unc_r15_specs_1 = { + sizeof(struct Aux_ARP_Unc_r15), + offsetof(struct Aux_ARP_Unc_r15, _asn_ctx), + asn_MAP_Aux_ARP_Unc_r15_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_Aux_ARP_Unc_r15_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Aux_ARP_Unc_r15 = { + "Aux-ARP-Unc-r15", + "Aux-ARP-Unc-r15", + &asn_OP_SEQUENCE, + asn_DEF_Aux_ARP_Unc_r15_tags_1, + sizeof(asn_DEF_Aux_ARP_Unc_r15_tags_1) + /sizeof(asn_DEF_Aux_ARP_Unc_r15_tags_1[0]), /* 1 */ + asn_DEF_Aux_ARP_Unc_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_Aux_ARP_Unc_r15_tags_1) + /sizeof(asn_DEF_Aux_ARP_Unc_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Aux_ARP_Unc_r15_1, + 4, /* Elements count */ + &asn_SPC_Aux_ARP_Unc_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/Aux-ARP-Unc-r15.h b/asn.1/lpp_generated/Aux-ARP-Unc-r15.h new file mode 100644 index 00000000..16b843a0 --- /dev/null +++ b/asn.1/lpp_generated/Aux-ARP-Unc-r15.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _Aux_ARP_Unc_r15_H_ +#define _Aux_ARP_Unc_r15_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Aux-ARP-Unc-r15 */ +typedef struct Aux_ARP_Unc_r15 { + long horizontalUncertainty_r15; + long horizontalConfidence_r15; + long *verticalUncertainty_r15; /* OPTIONAL */ + long *verticalConfidence_r15; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Aux_ARP_Unc_r15_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Aux_ARP_Unc_r15; +extern asn_SEQUENCE_specifics_t asn_SPC_Aux_ARP_Unc_r15_specs_1; +extern asn_TYPE_member_t asn_MBR_Aux_ARP_Unc_r15_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Aux_ARP_Unc_r15_H_ */ +#include diff --git a/asn.1/lpp_generated/AuxiliaryStationElement-r15.c b/asn.1/lpp_generated/AuxiliaryStationElement-r15.c new file mode 100644 index 00000000..e105ca79 --- /dev/null +++ b/asn.1/lpp_generated/AuxiliaryStationElement-r15.c @@ -0,0 +1,237 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AuxiliaryStationElement-r15.h" + +#include "Aux-ARP-Unc-r15.h" +static int +memb_aux_master_delta_latitude_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -524288L && value <= 524287L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_aux_master_delta_longitude_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1048576L && value <= 1048575L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_aux_master_delta_height_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -4194304L && value <= 4194303L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_aux_master_delta_latitude_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 20, -1, -524288, 524287 } /* (-524288..524287) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_aux_master_delta_longitude_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_aux_master_delta_height_r15_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 23, -1, -4194304, 4194303 } /* (-4194304..4194303) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_AuxiliaryStationElement_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AuxiliaryStationElement_r15, aux_referenceStationID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceStationID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "aux-referenceStationID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct AuxiliaryStationElement_r15, aux_master_delta_latitude_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_aux_master_delta_latitude_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_aux_master_delta_latitude_r15_constraint_1 + }, + 0, 0, /* No default value */ + "aux-master-delta-latitude-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct AuxiliaryStationElement_r15, aux_master_delta_longitude_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_aux_master_delta_longitude_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_aux_master_delta_longitude_r15_constraint_1 + }, + 0, 0, /* No default value */ + "aux-master-delta-longitude-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct AuxiliaryStationElement_r15, aux_master_delta_height_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_aux_master_delta_height_r15_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_aux_master_delta_height_r15_constraint_1 + }, + 0, 0, /* No default value */ + "aux-master-delta-height-r15" + }, + { ATF_POINTER, 1, offsetof(struct AuxiliaryStationElement_r15, aux_ARP_unc_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Aux_ARP_Unc_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "aux-ARP-unc-r15" + }, +}; +static const int asn_MAP_AuxiliaryStationElement_r15_oms_1[] = { 4 }; +static const ber_tlv_tag_t asn_DEF_AuxiliaryStationElement_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AuxiliaryStationElement_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* aux-referenceStationID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* aux-master-delta-latitude-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* aux-master-delta-longitude-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* aux-master-delta-height-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* aux-ARP-unc-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AuxiliaryStationElement_r15_specs_1 = { + sizeof(struct AuxiliaryStationElement_r15), + offsetof(struct AuxiliaryStationElement_r15, _asn_ctx), + asn_MAP_AuxiliaryStationElement_r15_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_AuxiliaryStationElement_r15_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AuxiliaryStationElement_r15 = { + "AuxiliaryStationElement-r15", + "AuxiliaryStationElement-r15", + &asn_OP_SEQUENCE, + asn_DEF_AuxiliaryStationElement_r15_tags_1, + sizeof(asn_DEF_AuxiliaryStationElement_r15_tags_1) + /sizeof(asn_DEF_AuxiliaryStationElement_r15_tags_1[0]), /* 1 */ + asn_DEF_AuxiliaryStationElement_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_AuxiliaryStationElement_r15_tags_1) + /sizeof(asn_DEF_AuxiliaryStationElement_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AuxiliaryStationElement_r15_1, + 5, /* Elements count */ + &asn_SPC_AuxiliaryStationElement_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AuxiliaryStationElement-r15.h b/asn.1/lpp_generated/AuxiliaryStationElement-r15.h similarity index 79% rename from asn.1/generated/AuxiliaryStationElement-r15.h rename to asn.1/lpp_generated/AuxiliaryStationElement-r15.h index 42d104cc..4fb05fed 100644 --- a/asn.1/generated/AuxiliaryStationElement-r15.h +++ b/asn.1/lpp_generated/AuxiliaryStationElement-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _AuxiliaryStationElement_r15_H_ @@ -29,7 +29,7 @@ typedef struct AuxiliaryStationElement_r15 { long aux_master_delta_latitude_r15; long aux_master_delta_longitude_r15; long aux_master_delta_height_r15; - struct Aux_ARP_Unc_r15 *aux_ARP_unc_r15 /* OPTIONAL */; + struct Aux_ARP_Unc_r15 *aux_ARP_unc_r15; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -48,8 +48,5 @@ extern asn_TYPE_member_t asn_MBR_AuxiliaryStationElement_r15_1[5]; } #endif -/* Referred external types */ -#include "Aux-ARP-Unc-r15.h" - #endif /* _AuxiliaryStationElement_r15_H_ */ #include diff --git a/asn.1/lpp_generated/AuxiliaryStationList-r15.c b/asn.1/lpp_generated/AuxiliaryStationList-r15.c new file mode 100644 index 00000000..6d74bb0b --- /dev/null +++ b/asn.1/lpp_generated/AuxiliaryStationList-r15.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "AuxiliaryStationList-r15.h" + +#include "AuxiliaryStationElement-r15.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AuxiliaryStationList_r15_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_AuxiliaryStationList_r15_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_AuxiliaryStationElement_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_AuxiliaryStationList_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_AuxiliaryStationList_r15_specs_1 = { + sizeof(struct AuxiliaryStationList_r15), + offsetof(struct AuxiliaryStationList_r15, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_AuxiliaryStationList_r15 = { + "AuxiliaryStationList-r15", + "AuxiliaryStationList-r15", + &asn_OP_SEQUENCE_OF, + asn_DEF_AuxiliaryStationList_r15_tags_1, + sizeof(asn_DEF_AuxiliaryStationList_r15_tags_1) + /sizeof(asn_DEF_AuxiliaryStationList_r15_tags_1[0]), /* 1 */ + asn_DEF_AuxiliaryStationList_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_AuxiliaryStationList_r15_tags_1) + /sizeof(asn_DEF_AuxiliaryStationList_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AuxiliaryStationList_r15_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_AuxiliaryStationList_r15_1, + 1, /* Single element */ + &asn_SPC_AuxiliaryStationList_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AuxiliaryStationList-r15.h b/asn.1/lpp_generated/AuxiliaryStationList-r15.h similarity index 80% rename from asn.1/generated/AuxiliaryStationList-r15.h rename to asn.1/lpp_generated/AuxiliaryStationList-r15.h index e45b39a9..bc709049 100644 --- a/asn.1/generated/AuxiliaryStationList-r15.h +++ b/asn.1/lpp_generated/AuxiliaryStationList-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _AuxiliaryStationList_r15_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_AuxiliaryStationList_r15_constr_1; } #endif -/* Referred external types */ -#include "AuxiliaryStationElement-r15.h" - #endif /* _AuxiliaryStationList_r15_H_ */ #include diff --git a/asn.1/lpp_generated/BDS-ClockModel-r12.c b/asn.1/lpp_generated/BDS-ClockModel-r12.c new file mode 100644 index 00000000..849ce761 --- /dev/null +++ b/asn.1/lpp_generated/BDS-ClockModel-r12.c @@ -0,0 +1,461 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BDS-ClockModel-r12.h" + +static int +memb_bdsTgd2_r16_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -512L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsAODC_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 31L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsToc_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 131071L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsA0_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsA1_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2097152L && value <= 2097151L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsA2_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsTgd1_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -512L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsTgd2_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsAODC_r12_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsToc_r12_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 0, 131071 } /* (0..131071) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsA0_r12_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsA1_r12_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, -2097152, 2097151 } /* (-2097152..2097151) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsA2_r12_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsTgd1_r12_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_9[] = { + { ATF_POINTER, 1, offsetof(struct BDS_ClockModel_r12__ext1, bdsTgd2_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsTgd2_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsTgd2_r16_constraint_9 + }, + 0, 0, /* No default value */ + "bdsTgd2-r16" + }, +}; +static const int asn_MAP_ext1_oms_9[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_9[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* bdsTgd2-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_9 = { + sizeof(struct BDS_ClockModel_r12__ext1), + offsetof(struct BDS_ClockModel_r12__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_9, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_9, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_9 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_9, + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_9, /* Same as above */ + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_9, + 1, /* Elements count */ + &asn_SPC_ext1_specs_9 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_BDS_ClockModel_r12_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel_r12, bdsAODC_r12), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsAODC_r12_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsAODC_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsAODC-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel_r12, bdsToc_r12), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsToc_r12_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsToc_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsToc-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel_r12, bdsA0_r12), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsA0_r12_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsA0_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsA0-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel_r12, bdsA1_r12), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsA1_r12_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsA1_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsA1-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel_r12, bdsA2_r12), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsA2_r12_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsA2_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsA2-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel_r12, bdsTgd1_r12), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsTgd1_r12_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsTgd1_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsTgd1-r12" + }, + { ATF_POINTER, 1, offsetof(struct BDS_ClockModel_r12, ext1), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext1_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_BDS_ClockModel_r12_oms_1[] = { 6 }; +static const ber_tlv_tag_t asn_DEF_BDS_ClockModel_r12_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BDS_ClockModel_r12_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bdsAODC-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bdsToc-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bdsA0-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* bdsA1-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* bdsA2-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* bdsTgd1-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BDS_ClockModel_r12_specs_1 = { + sizeof(struct BDS_ClockModel_r12), + offsetof(struct BDS_ClockModel_r12, _asn_ctx), + asn_MAP_BDS_ClockModel_r12_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_BDS_ClockModel_r12_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BDS_ClockModel_r12 = { + "BDS-ClockModel-r12", + "BDS-ClockModel-r12", + &asn_OP_SEQUENCE, + asn_DEF_BDS_ClockModel_r12_tags_1, + sizeof(asn_DEF_BDS_ClockModel_r12_tags_1) + /sizeof(asn_DEF_BDS_ClockModel_r12_tags_1[0]), /* 1 */ + asn_DEF_BDS_ClockModel_r12_tags_1, /* Same as above */ + sizeof(asn_DEF_BDS_ClockModel_r12_tags_1) + /sizeof(asn_DEF_BDS_ClockModel_r12_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BDS_ClockModel_r12_1, + 7, /* Elements count */ + &asn_SPC_BDS_ClockModel_r12_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BDS-ClockModel-r12.h b/asn.1/lpp_generated/BDS-ClockModel-r12.h new file mode 100644 index 00000000..a77de232 --- /dev/null +++ b/asn.1/lpp_generated/BDS-ClockModel-r12.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BDS_ClockModel_r12_H_ +#define _BDS_ClockModel_r12_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* BDS-ClockModel-r12 */ +typedef struct BDS_ClockModel_r12 { + long bdsAODC_r12; + long bdsToc_r12; + long bdsA0_r12; + long bdsA1_r12; + long bdsA2_r12; + long bdsTgd1_r12; + /* + * This type is extensible, + * possible extensions are below. + */ + struct BDS_ClockModel_r12__ext1 { + long *bdsTgd2_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BDS_ClockModel_r12_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BDS_ClockModel_r12; +extern asn_SEQUENCE_specifics_t asn_SPC_BDS_ClockModel_r12_specs_1; +extern asn_TYPE_member_t asn_MBR_BDS_ClockModel_r12_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BDS_ClockModel_r12_H_ */ +#include diff --git a/asn.1/lpp_generated/BDS-ClockModel2-r16.c b/asn.1/lpp_generated/BDS-ClockModel2-r16.c new file mode 100644 index 00000000..60bc6ec1 --- /dev/null +++ b/asn.1/lpp_generated/BDS-ClockModel2-r16.c @@ -0,0 +1,511 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BDS-ClockModel2-r16.h" + +static int +memb_bdsTgdB2ap_r17_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2048L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsIscB2ad_r17_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2048L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsToc_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsA0_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16777216L && value <= 16777215L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsA1_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2097152L && value <= 2097151L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsA2_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsTgdB1Cp_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2048L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsIscB1Cd_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2048L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsTgdB2ap_r17_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsIscB2ad_r17_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsToc_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsA0_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 25, -1, -16777216, 16777215 } /* (-16777216..16777215) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsA1_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, -2097152, 2097151 } /* (-2097152..2097151) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsA2_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsTgdB1Cp_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsIscB1Cd_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_9[] = { + { ATF_POINTER, 2, offsetof(struct BDS_ClockModel2_r16__ext1, bdsTgdB2ap_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsTgdB2ap_r17_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsTgdB2ap_r17_constraint_9 + }, + 0, 0, /* No default value */ + "bdsTgdB2ap-r17" + }, + { ATF_POINTER, 1, offsetof(struct BDS_ClockModel2_r16__ext1, bdsIscB2ad_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsIscB2ad_r17_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsIscB2ad_r17_constraint_9 + }, + 0, 0, /* No default value */ + "bdsIscB2ad-r17" + }, +}; +static const int asn_MAP_ext1_oms_9[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_9[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bdsTgdB2ap-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bdsIscB2ad-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_9 = { + sizeof(struct BDS_ClockModel2_r16__ext1), + offsetof(struct BDS_ClockModel2_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_9, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_9, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_9 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_9, + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_9, /* Same as above */ + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_9, + 2, /* Elements count */ + &asn_SPC_ext1_specs_9 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_BDS_ClockModel2_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel2_r16, bdsToc_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsToc_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsToc_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsToc-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel2_r16, bdsA0_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsA0_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsA0_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsA0-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel2_r16, bdsA1_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsA1_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsA1_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsA1-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel2_r16, bdsA2_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsA2_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsA2_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsA2-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel2_r16, bdsTgdB1Cp_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsTgdB1Cp_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsTgdB1Cp_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsTgdB1Cp-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct BDS_ClockModel2_r16, bdsIscB1Cd_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsIscB1Cd_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsIscB1Cd_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsIscB1Cd-r16" + }, + { ATF_POINTER, 1, offsetof(struct BDS_ClockModel2_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext1_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_BDS_ClockModel2_r16_oms_1[] = { 6 }; +static const ber_tlv_tag_t asn_DEF_BDS_ClockModel2_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BDS_ClockModel2_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bdsToc-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bdsA0-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bdsA1-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* bdsA2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* bdsTgdB1Cp-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* bdsIscB1Cd-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BDS_ClockModel2_r16_specs_1 = { + sizeof(struct BDS_ClockModel2_r16), + offsetof(struct BDS_ClockModel2_r16, _asn_ctx), + asn_MAP_BDS_ClockModel2_r16_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_BDS_ClockModel2_r16_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BDS_ClockModel2_r16 = { + "BDS-ClockModel2-r16", + "BDS-ClockModel2-r16", + &asn_OP_SEQUENCE, + asn_DEF_BDS_ClockModel2_r16_tags_1, + sizeof(asn_DEF_BDS_ClockModel2_r16_tags_1) + /sizeof(asn_DEF_BDS_ClockModel2_r16_tags_1[0]), /* 1 */ + asn_DEF_BDS_ClockModel2_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_BDS_ClockModel2_r16_tags_1) + /sizeof(asn_DEF_BDS_ClockModel2_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BDS_ClockModel2_r16_1, + 7, /* Elements count */ + &asn_SPC_BDS_ClockModel2_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BDS-ClockModel2-r16.h b/asn.1/lpp_generated/BDS-ClockModel2-r16.h new file mode 100644 index 00000000..ef96fecb --- /dev/null +++ b/asn.1/lpp_generated/BDS-ClockModel2-r16.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BDS_ClockModel2_r16_H_ +#define _BDS_ClockModel2_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* BDS-ClockModel2-r16 */ +typedef struct BDS_ClockModel2_r16 { + long bdsToc_r16; + long bdsA0_r16; + long bdsA1_r16; + long bdsA2_r16; + long bdsTgdB1Cp_r16; + long bdsIscB1Cd_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct BDS_ClockModel2_r16__ext1 { + long *bdsTgdB2ap_r17; /* OPTIONAL */ + long *bdsIscB2ad_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BDS_ClockModel2_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BDS_ClockModel2_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_BDS_ClockModel2_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_BDS_ClockModel2_r16_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BDS_ClockModel2_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/BDS-DifferentialCorrections-r12.c b/asn.1/lpp_generated/BDS-DifferentialCorrections-r12.c new file mode 100644 index 00000000..4fb3fef6 --- /dev/null +++ b/asn.1/lpp_generated/BDS-DifferentialCorrections-r12.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BDS-DifferentialCorrections-r12.h" + +static int +memb_dbds_RefTime_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3599L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dbds_RefTime_r12_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BDS_DifferentialCorrections_r12_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BDS_DifferentialCorrections_r12, dbds_RefTime_r12), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dbds_RefTime_r12_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dbds_RefTime_r12_constraint_1 + }, + 0, 0, /* No default value */ + "dbds-RefTime-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct BDS_DifferentialCorrections_r12, bds_SgnTypeList_r12), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BDS_SgnTypeList_r12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bds-SgnTypeList-r12" + }, +}; +static const ber_tlv_tag_t asn_DEF_BDS_DifferentialCorrections_r12_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BDS_DifferentialCorrections_r12_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dbds-RefTime-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bds-SgnTypeList-r12 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BDS_DifferentialCorrections_r12_specs_1 = { + sizeof(struct BDS_DifferentialCorrections_r12), + offsetof(struct BDS_DifferentialCorrections_r12, _asn_ctx), + asn_MAP_BDS_DifferentialCorrections_r12_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BDS_DifferentialCorrections_r12 = { + "BDS-DifferentialCorrections-r12", + "BDS-DifferentialCorrections-r12", + &asn_OP_SEQUENCE, + asn_DEF_BDS_DifferentialCorrections_r12_tags_1, + sizeof(asn_DEF_BDS_DifferentialCorrections_r12_tags_1) + /sizeof(asn_DEF_BDS_DifferentialCorrections_r12_tags_1[0]), /* 1 */ + asn_DEF_BDS_DifferentialCorrections_r12_tags_1, /* Same as above */ + sizeof(asn_DEF_BDS_DifferentialCorrections_r12_tags_1) + /sizeof(asn_DEF_BDS_DifferentialCorrections_r12_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BDS_DifferentialCorrections_r12_1, + 2, /* Elements count */ + &asn_SPC_BDS_DifferentialCorrections_r12_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/BDS-DifferentialCorrections-r12.h b/asn.1/lpp_generated/BDS-DifferentialCorrections-r12.h similarity index 81% rename from asn.1/generated/BDS-DifferentialCorrections-r12.h rename to asn.1/lpp_generated/BDS-DifferentialCorrections-r12.h index d40c584b..aff87e29 100644 --- a/asn.1/generated/BDS-DifferentialCorrections-r12.h +++ b/asn.1/lpp_generated/BDS-DifferentialCorrections-r12.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _BDS_DifferentialCorrections_r12_H_ diff --git a/asn.1/lpp_generated/BDS-DifferentialCorrectionsReq-r12.c b/asn.1/lpp_generated/BDS-DifferentialCorrectionsReq-r12.c new file mode 100644 index 00000000..f54c05b5 --- /dev/null +++ b/asn.1/lpp_generated/BDS-DifferentialCorrectionsReq-r12.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BDS-DifferentialCorrectionsReq-r12.h" + +asn_TYPE_member_t asn_MBR_BDS_DifferentialCorrectionsReq_r12_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BDS_DifferentialCorrectionsReq_r12, dgnss_SignalsReq), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalIDs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dgnss-SignalsReq" + }, +}; +static const ber_tlv_tag_t asn_DEF_BDS_DifferentialCorrectionsReq_r12_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BDS_DifferentialCorrectionsReq_r12_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* dgnss-SignalsReq */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BDS_DifferentialCorrectionsReq_r12_specs_1 = { + sizeof(struct BDS_DifferentialCorrectionsReq_r12), + offsetof(struct BDS_DifferentialCorrectionsReq_r12, _asn_ctx), + asn_MAP_BDS_DifferentialCorrectionsReq_r12_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BDS_DifferentialCorrectionsReq_r12 = { + "BDS-DifferentialCorrectionsReq-r12", + "BDS-DifferentialCorrectionsReq-r12", + &asn_OP_SEQUENCE, + asn_DEF_BDS_DifferentialCorrectionsReq_r12_tags_1, + sizeof(asn_DEF_BDS_DifferentialCorrectionsReq_r12_tags_1) + /sizeof(asn_DEF_BDS_DifferentialCorrectionsReq_r12_tags_1[0]), /* 1 */ + asn_DEF_BDS_DifferentialCorrectionsReq_r12_tags_1, /* Same as above */ + sizeof(asn_DEF_BDS_DifferentialCorrectionsReq_r12_tags_1) + /sizeof(asn_DEF_BDS_DifferentialCorrectionsReq_r12_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BDS_DifferentialCorrectionsReq_r12_1, + 1, /* Elements count */ + &asn_SPC_BDS_DifferentialCorrectionsReq_r12_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/BDS-DifferentialCorrectionsReq-r12.h b/asn.1/lpp_generated/BDS-DifferentialCorrectionsReq-r12.h similarity index 80% rename from asn.1/generated/BDS-DifferentialCorrectionsReq-r12.h rename to asn.1/lpp_generated/BDS-DifferentialCorrectionsReq-r12.h index 11585fb6..126d4c5b 100644 --- a/asn.1/generated/BDS-DifferentialCorrectionsReq-r12.h +++ b/asn.1/lpp_generated/BDS-DifferentialCorrectionsReq-r12.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _BDS_DifferentialCorrectionsReq_r12_H_ diff --git a/asn.1/lpp_generated/BDS-DifferentialCorrectionsSupport-r12.c b/asn.1/lpp_generated/BDS-DifferentialCorrectionsSupport-r12.c new file mode 100644 index 00000000..75b26180 --- /dev/null +++ b/asn.1/lpp_generated/BDS-DifferentialCorrectionsSupport-r12.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BDS-DifferentialCorrectionsSupport-r12.h" + +asn_TYPE_member_t asn_MBR_BDS_DifferentialCorrectionsSupport_r12_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BDS_DifferentialCorrectionsSupport_r12, gnssSignalIDs), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalIDs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnssSignalIDs" + }, +}; +static const ber_tlv_tag_t asn_DEF_BDS_DifferentialCorrectionsSupport_r12_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BDS_DifferentialCorrectionsSupport_r12_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnssSignalIDs */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BDS_DifferentialCorrectionsSupport_r12_specs_1 = { + sizeof(struct BDS_DifferentialCorrectionsSupport_r12), + offsetof(struct BDS_DifferentialCorrectionsSupport_r12, _asn_ctx), + asn_MAP_BDS_DifferentialCorrectionsSupport_r12_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BDS_DifferentialCorrectionsSupport_r12 = { + "BDS-DifferentialCorrectionsSupport-r12", + "BDS-DifferentialCorrectionsSupport-r12", + &asn_OP_SEQUENCE, + asn_DEF_BDS_DifferentialCorrectionsSupport_r12_tags_1, + sizeof(asn_DEF_BDS_DifferentialCorrectionsSupport_r12_tags_1) + /sizeof(asn_DEF_BDS_DifferentialCorrectionsSupport_r12_tags_1[0]), /* 1 */ + asn_DEF_BDS_DifferentialCorrectionsSupport_r12_tags_1, /* Same as above */ + sizeof(asn_DEF_BDS_DifferentialCorrectionsSupport_r12_tags_1) + /sizeof(asn_DEF_BDS_DifferentialCorrectionsSupport_r12_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BDS_DifferentialCorrectionsSupport_r12_1, + 1, /* Elements count */ + &asn_SPC_BDS_DifferentialCorrectionsSupport_r12_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/BDS-DifferentialCorrectionsSupport-r12.h b/asn.1/lpp_generated/BDS-DifferentialCorrectionsSupport-r12.h similarity index 81% rename from asn.1/generated/BDS-DifferentialCorrectionsSupport-r12.h rename to asn.1/lpp_generated/BDS-DifferentialCorrectionsSupport-r12.h index 6d96a724..7f3b3feb 100644 --- a/asn.1/generated/BDS-DifferentialCorrectionsSupport-r12.h +++ b/asn.1/lpp_generated/BDS-DifferentialCorrectionsSupport-r12.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _BDS_DifferentialCorrectionsSupport_r12_H_ diff --git a/asn.1/lpp_generated/BDS-GridModelParameter-r12.c b/asn.1/lpp_generated/BDS-GridModelParameter-r12.c new file mode 100644 index 00000000..677f4de0 --- /dev/null +++ b/asn.1/lpp_generated/BDS-GridModelParameter-r12.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BDS-GridModelParameter-r12.h" + +static int +memb_bds_RefTime_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3599L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bds_RefTime_r12_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BDS_GridModelParameter_r12_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BDS_GridModelParameter_r12, bds_RefTime_r12), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bds_RefTime_r12_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bds_RefTime_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bds-RefTime-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct BDS_GridModelParameter_r12, gridIonList_r12), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GridIonList_r12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gridIonList-r12" + }, +}; +static const ber_tlv_tag_t asn_DEF_BDS_GridModelParameter_r12_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BDS_GridModelParameter_r12_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bds-RefTime-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gridIonList-r12 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BDS_GridModelParameter_r12_specs_1 = { + sizeof(struct BDS_GridModelParameter_r12), + offsetof(struct BDS_GridModelParameter_r12, _asn_ctx), + asn_MAP_BDS_GridModelParameter_r12_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BDS_GridModelParameter_r12 = { + "BDS-GridModelParameter-r12", + "BDS-GridModelParameter-r12", + &asn_OP_SEQUENCE, + asn_DEF_BDS_GridModelParameter_r12_tags_1, + sizeof(asn_DEF_BDS_GridModelParameter_r12_tags_1) + /sizeof(asn_DEF_BDS_GridModelParameter_r12_tags_1[0]), /* 1 */ + asn_DEF_BDS_GridModelParameter_r12_tags_1, /* Same as above */ + sizeof(asn_DEF_BDS_GridModelParameter_r12_tags_1) + /sizeof(asn_DEF_BDS_GridModelParameter_r12_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BDS_GridModelParameter_r12_1, + 2, /* Elements count */ + &asn_SPC_BDS_GridModelParameter_r12_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/BDS-GridModelParameter-r12.h b/asn.1/lpp_generated/BDS-GridModelParameter-r12.h similarity index 80% rename from asn.1/generated/BDS-GridModelParameter-r12.h rename to asn.1/lpp_generated/BDS-GridModelParameter-r12.h index a65ef565..66a6ea26 100644 --- a/asn.1/generated/BDS-GridModelParameter-r12.h +++ b/asn.1/lpp_generated/BDS-GridModelParameter-r12.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _BDS_GridModelParameter_r12_H_ diff --git a/asn.1/lpp_generated/BDS-GridModelReq-r12.c b/asn.1/lpp_generated/BDS-GridModelReq-r12.c new file mode 100644 index 00000000..d6bc91cc --- /dev/null +++ b/asn.1/lpp_generated/BDS-GridModelReq-r12.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BDS-GridModelReq-r12.h" + +static const ber_tlv_tag_t asn_DEF_BDS_GridModelReq_r12_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_BDS_GridModelReq_r12_specs_1 = { + sizeof(struct BDS_GridModelReq_r12), + offsetof(struct BDS_GridModelReq_r12, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BDS_GridModelReq_r12 = { + "BDS-GridModelReq-r12", + "BDS-GridModelReq-r12", + &asn_OP_SEQUENCE, + asn_DEF_BDS_GridModelReq_r12_tags_1, + sizeof(asn_DEF_BDS_GridModelReq_r12_tags_1) + /sizeof(asn_DEF_BDS_GridModelReq_r12_tags_1[0]), /* 1 */ + asn_DEF_BDS_GridModelReq_r12_tags_1, /* Same as above */ + sizeof(asn_DEF_BDS_GridModelReq_r12_tags_1) + /sizeof(asn_DEF_BDS_GridModelReq_r12_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_BDS_GridModelReq_r12_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/BDS-GridModelReq-r12.h b/asn.1/lpp_generated/BDS-GridModelReq-r12.h similarity index 76% rename from asn.1/generated/BDS-GridModelReq-r12.h rename to asn.1/lpp_generated/BDS-GridModelReq-r12.h index 2df3cf54..99668275 100644 --- a/asn.1/generated/BDS-GridModelReq-r12.h +++ b/asn.1/lpp_generated/BDS-GridModelReq-r12.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _BDS_GridModelReq_r12_H_ diff --git a/asn.1/lpp_generated/BDS-GridModelSupport-r12.c b/asn.1/lpp_generated/BDS-GridModelSupport-r12.c new file mode 100644 index 00000000..d77e71a7 --- /dev/null +++ b/asn.1/lpp_generated/BDS-GridModelSupport-r12.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BDS-GridModelSupport-r12.h" + +static const ber_tlv_tag_t asn_DEF_BDS_GridModelSupport_r12_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_BDS_GridModelSupport_r12_specs_1 = { + sizeof(struct BDS_GridModelSupport_r12), + offsetof(struct BDS_GridModelSupport_r12, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BDS_GridModelSupport_r12 = { + "BDS-GridModelSupport-r12", + "BDS-GridModelSupport-r12", + &asn_OP_SEQUENCE, + asn_DEF_BDS_GridModelSupport_r12_tags_1, + sizeof(asn_DEF_BDS_GridModelSupport_r12_tags_1) + /sizeof(asn_DEF_BDS_GridModelSupport_r12_tags_1[0]), /* 1 */ + asn_DEF_BDS_GridModelSupport_r12_tags_1, /* Same as above */ + sizeof(asn_DEF_BDS_GridModelSupport_r12_tags_1) + /sizeof(asn_DEF_BDS_GridModelSupport_r12_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_BDS_GridModelSupport_r12_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/BDS-GridModelSupport-r12.h b/asn.1/lpp_generated/BDS-GridModelSupport-r12.h similarity index 76% rename from asn.1/generated/BDS-GridModelSupport-r12.h rename to asn.1/lpp_generated/BDS-GridModelSupport-r12.h index 901c3e91..6265114e 100644 --- a/asn.1/generated/BDS-GridModelSupport-r12.h +++ b/asn.1/lpp_generated/BDS-GridModelSupport-r12.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _BDS_GridModelSupport_r12_H_ diff --git a/asn.1/lpp_generated/BDS-SgnTypeElement-r12.c b/asn.1/lpp_generated/BDS-SgnTypeElement-r12.c new file mode 100644 index 00000000..8fd77b2c --- /dev/null +++ b/asn.1/lpp_generated/BDS-SgnTypeElement-r12.c @@ -0,0 +1,87 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BDS-SgnTypeElement-r12.h" + +#include "GNSS-SignalID.h" +asn_TYPE_member_t asn_MBR_BDS_SgnTypeElement_r12_1[] = { + { ATF_POINTER, 1, offsetof(struct BDS_SgnTypeElement_r12, gnss_SignalID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SignalID" + }, + { ATF_NOFLAGS, 0, offsetof(struct BDS_SgnTypeElement_r12, dbds_CorrectionList_r12), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DBDS_CorrectionList_r12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dbds-CorrectionList-r12" + }, +}; +static const int asn_MAP_BDS_SgnTypeElement_r12_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_BDS_SgnTypeElement_r12_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BDS_SgnTypeElement_r12_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SignalID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dbds-CorrectionList-r12 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BDS_SgnTypeElement_r12_specs_1 = { + sizeof(struct BDS_SgnTypeElement_r12), + offsetof(struct BDS_SgnTypeElement_r12, _asn_ctx), + asn_MAP_BDS_SgnTypeElement_r12_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_BDS_SgnTypeElement_r12_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BDS_SgnTypeElement_r12 = { + "BDS-SgnTypeElement-r12", + "BDS-SgnTypeElement-r12", + &asn_OP_SEQUENCE, + asn_DEF_BDS_SgnTypeElement_r12_tags_1, + sizeof(asn_DEF_BDS_SgnTypeElement_r12_tags_1) + /sizeof(asn_DEF_BDS_SgnTypeElement_r12_tags_1[0]), /* 1 */ + asn_DEF_BDS_SgnTypeElement_r12_tags_1, /* Same as above */ + sizeof(asn_DEF_BDS_SgnTypeElement_r12_tags_1) + /sizeof(asn_DEF_BDS_SgnTypeElement_r12_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BDS_SgnTypeElement_r12_1, + 2, /* Elements count */ + &asn_SPC_BDS_SgnTypeElement_r12_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/BDS-SgnTypeElement-r12.h b/asn.1/lpp_generated/BDS-SgnTypeElement-r12.h similarity index 77% rename from asn.1/generated/BDS-SgnTypeElement-r12.h rename to asn.1/lpp_generated/BDS-SgnTypeElement-r12.h index c6a28b02..dc74a3ae 100644 --- a/asn.1/generated/BDS-SgnTypeElement-r12.h +++ b/asn.1/lpp_generated/BDS-SgnTypeElement-r12.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _BDS_SgnTypeElement_r12_H_ @@ -24,7 +24,7 @@ struct GNSS_SignalID; /* BDS-SgnTypeElement-r12 */ typedef struct BDS_SgnTypeElement_r12 { - struct GNSS_SignalID *gnss_SignalID /* OPTIONAL */; + struct GNSS_SignalID *gnss_SignalID; /* OPTIONAL */ DBDS_CorrectionList_r12_t dbds_CorrectionList_r12; /* * This type is extensible, @@ -44,8 +44,5 @@ extern asn_TYPE_member_t asn_MBR_BDS_SgnTypeElement_r12_1[2]; } #endif -/* Referred external types */ -#include "GNSS-SignalID.h" - #endif /* _BDS_SgnTypeElement_r12_H_ */ #include diff --git a/asn.1/lpp_generated/BDS-SgnTypeList-r12.c b/asn.1/lpp_generated/BDS-SgnTypeList-r12.c new file mode 100644 index 00000000..3a336151 --- /dev/null +++ b/asn.1/lpp_generated/BDS-SgnTypeList-r12.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BDS-SgnTypeList-r12.h" + +#include "BDS-SgnTypeElement-r12.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_BDS_SgnTypeList_r12_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BDS_SgnTypeList_r12_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_BDS_SgnTypeElement_r12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_BDS_SgnTypeList_r12_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_BDS_SgnTypeList_r12_specs_1 = { + sizeof(struct BDS_SgnTypeList_r12), + offsetof(struct BDS_SgnTypeList_r12, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_BDS_SgnTypeList_r12 = { + "BDS-SgnTypeList-r12", + "BDS-SgnTypeList-r12", + &asn_OP_SEQUENCE_OF, + asn_DEF_BDS_SgnTypeList_r12_tags_1, + sizeof(asn_DEF_BDS_SgnTypeList_r12_tags_1) + /sizeof(asn_DEF_BDS_SgnTypeList_r12_tags_1[0]), /* 1 */ + asn_DEF_BDS_SgnTypeList_r12_tags_1, /* Same as above */ + sizeof(asn_DEF_BDS_SgnTypeList_r12_tags_1) + /sizeof(asn_DEF_BDS_SgnTypeList_r12_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_BDS_SgnTypeList_r12_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_BDS_SgnTypeList_r12_1, + 1, /* Single element */ + &asn_SPC_BDS_SgnTypeList_r12_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/BDS-SgnTypeList-r12.h b/asn.1/lpp_generated/BDS-SgnTypeList-r12.h similarity index 79% rename from asn.1/generated/BDS-SgnTypeList-r12.h rename to asn.1/lpp_generated/BDS-SgnTypeList-r12.h index c0a1eb22..ea45233e 100644 --- a/asn.1/generated/BDS-SgnTypeList-r12.h +++ b/asn.1/lpp_generated/BDS-SgnTypeList-r12.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _BDS_SgnTypeList_r12_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_BDS_SgnTypeList_r12_constr_1; } #endif -/* Referred external types */ -#include "BDS-SgnTypeElement-r12.h" - #endif /* _BDS_SgnTypeList_r12_H_ */ #include diff --git a/asn.1/lpp_generated/BT-AntArrayConfig-r18.c b/asn.1/lpp_generated/BT-AntArrayConfig-r18.c new file mode 100644 index 00000000..783a6f42 --- /dev/null +++ b/asn.1/lpp_generated/BT-AntArrayConfig-r18.c @@ -0,0 +1,124 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-AntArrayConfig-r18.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_BT_AntArrayConfig_r18_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BT_AntArrayConfig_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BT_AntArrayConfig_r18, choice.bt_UniformLinearArray_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BT_UniformLinearArray_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-UniformLinearArray-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct BT_AntArrayConfig_r18, choice.bt_UniformRectangularArray_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BT_UniformRectangularArray_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-UniformRectangularArray-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct BT_AntArrayConfig_r18, choice.bt_UniformCircularArray_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BT_UniformCircularArray_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-UniformCircularArray-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct BT_AntArrayConfig_r18, choice.bt_GenericArray_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BT_GenericArray_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-GenericArray-r18" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_AntArrayConfig_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bt-UniformLinearArray-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bt-UniformRectangularArray-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bt-UniformCircularArray-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* bt-GenericArray-r18 */ +}; +asn_CHOICE_specifics_t asn_SPC_BT_AntArrayConfig_r18_specs_1 = { + sizeof(struct BT_AntArrayConfig_r18), + offsetof(struct BT_AntArrayConfig_r18, _asn_ctx), + offsetof(struct BT_AntArrayConfig_r18, present), + sizeof(((struct BT_AntArrayConfig_r18 *)0)->present), + asn_MAP_BT_AntArrayConfig_r18_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_AntArrayConfig_r18 = { + "BT-AntArrayConfig-r18", + "BT-AntArrayConfig-r18", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_BT_AntArrayConfig_r18_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_BT_AntArrayConfig_r18_1, + 4, /* Elements count */ + &asn_SPC_BT_AntArrayConfig_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-AntArrayConfig-r18.h b/asn.1/lpp_generated/BT-AntArrayConfig-r18.h new file mode 100644 index 00000000..2a3c75b2 --- /dev/null +++ b/asn.1/lpp_generated/BT-AntArrayConfig-r18.h @@ -0,0 +1,59 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_AntArrayConfig_r18_H_ +#define _BT_AntArrayConfig_r18_H_ + + +#include + +/* Including external dependencies */ +#include "BT-UniformLinearArray-r18.h" +#include "BT-UniformRectangularArray-r18.h" +#include "BT-UniformCircularArray-r18.h" +#include "BT-GenericArray-r18.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum BT_AntArrayConfig_r18_PR { + BT_AntArrayConfig_r18_PR_NOTHING, /* No components present */ + BT_AntArrayConfig_r18_PR_bt_UniformLinearArray_r18, + BT_AntArrayConfig_r18_PR_bt_UniformRectangularArray_r18, + BT_AntArrayConfig_r18_PR_bt_UniformCircularArray_r18, + BT_AntArrayConfig_r18_PR_bt_GenericArray_r18 +} BT_AntArrayConfig_r18_PR; + +/* BT-AntArrayConfig-r18 */ +typedef struct BT_AntArrayConfig_r18 { + BT_AntArrayConfig_r18_PR present; + union BT_AntArrayConfig_r18_u { + BT_UniformLinearArray_r18_t bt_UniformLinearArray_r18; + BT_UniformRectangularArray_r18_t bt_UniformRectangularArray_r18; + BT_UniformCircularArray_r18_t bt_UniformCircularArray_r18; + BT_GenericArray_r18_t bt_GenericArray_r18; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_AntArrayConfig_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BT_AntArrayConfig_r18; +extern asn_CHOICE_specifics_t asn_SPC_BT_AntArrayConfig_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_AntArrayConfig_r18_1[4]; +extern asn_per_constraints_t asn_PER_type_BT_AntArrayConfig_r18_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_AntArrayConfig_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-AntElement-r18.c b/asn.1/lpp_generated/BT-AntElement-r18.c new file mode 100644 index 00000000..b39c2657 --- /dev/null +++ b/asn.1/lpp_generated/BT-AntElement-r18.c @@ -0,0 +1,128 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-AntElement-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_polarization_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_polarization_r18_value2enum_2[] = { + { 0, 3, "m45" }, + { 1, 4, "zero" }, + { 2, 3, "p45" }, + { 3, 3, "p90" }, + { 4, 4, "circ" } +}; +static const unsigned int asn_MAP_polarization_r18_enum2value_2[] = { + 4, /* circ(4) */ + 0, /* m45(0) */ + 2, /* p45(2) */ + 3, /* p90(3) */ + 1 /* zero(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_polarization_r18_specs_2 = { + asn_MAP_polarization_r18_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_polarization_r18_enum2value_2, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_polarization_r18_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_polarization_r18_2 = { + "polarization-r18", + "polarization-r18", + &asn_OP_NativeEnumerated, + asn_DEF_polarization_r18_tags_2, + sizeof(asn_DEF_polarization_r18_tags_2) + /sizeof(asn_DEF_polarization_r18_tags_2[0]) - 1, /* 1 */ + asn_DEF_polarization_r18_tags_2, /* Same as above */ + sizeof(asn_DEF_polarization_r18_tags_2) + /sizeof(asn_DEF_polarization_r18_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_polarization_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_polarization_r18_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_BT_AntElement_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BT_AntElement_r18, polarization_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_polarization_r18_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "polarization-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_BT_AntElement_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_AntElement_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* polarization-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_AntElement_r18_specs_1 = { + sizeof(struct BT_AntElement_r18), + offsetof(struct BT_AntElement_r18, _asn_ctx), + asn_MAP_BT_AntElement_r18_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_AntElement_r18 = { + "BT-AntElement-r18", + "BT-AntElement-r18", + &asn_OP_SEQUENCE, + asn_DEF_BT_AntElement_r18_tags_1, + sizeof(asn_DEF_BT_AntElement_r18_tags_1) + /sizeof(asn_DEF_BT_AntElement_r18_tags_1[0]), /* 1 */ + asn_DEF_BT_AntElement_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_AntElement_r18_tags_1) + /sizeof(asn_DEF_BT_AntElement_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_AntElement_r18_1, + 1, /* Elements count */ + &asn_SPC_BT_AntElement_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-AntElement-r18.h b/asn.1/lpp_generated/BT-AntElement-r18.h new file mode 100644 index 00000000..d270c8e8 --- /dev/null +++ b/asn.1/lpp_generated/BT-AntElement-r18.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_AntElement_r18_H_ +#define _BT_AntElement_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum BT_AntElement_r18__polarization_r18 { + BT_AntElement_r18__polarization_r18_m45 = 0, + BT_AntElement_r18__polarization_r18_zero = 1, + BT_AntElement_r18__polarization_r18_p45 = 2, + BT_AntElement_r18__polarization_r18_p90 = 3, + BT_AntElement_r18__polarization_r18_circ = 4 +} e_BT_AntElement_r18__polarization_r18; + +/* BT-AntElement-r18 */ +typedef struct BT_AntElement_r18 { + long polarization_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_AntElement_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_polarization_r18_2; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_BT_AntElement_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_BT_AntElement_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_AntElement_r18_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_AntElement_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-AntSwitchElement-r18.c b/asn.1/lpp_generated/BT-AntSwitchElement-r18.c new file mode 100644 index 00000000..39b7acc1 --- /dev/null +++ b/asn.1/lpp_generated/BT-AntSwitchElement-r18.c @@ -0,0 +1,178 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-AntSwitchElement-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_antElementIndexShort_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 16L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_antElementIndexOffset_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_antElementIndexShort_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (1..16) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_antElementIndexOffset_r18_value2enum_3[] = { + { 0, 3, "o16" }, + { 1, 3, "o32" }, + { 2, 3, "o48" }, + { 3, 3, "o64" } +}; +static const unsigned int asn_MAP_antElementIndexOffset_r18_enum2value_3[] = { + 0, /* o16(0) */ + 1, /* o32(1) */ + 2, /* o48(2) */ + 3 /* o64(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_antElementIndexOffset_r18_specs_3 = { + asn_MAP_antElementIndexOffset_r18_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_antElementIndexOffset_r18_enum2value_3, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_antElementIndexOffset_r18_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_antElementIndexOffset_r18_3 = { + "antElementIndexOffset-r18", + "antElementIndexOffset-r18", + &asn_OP_NativeEnumerated, + asn_DEF_antElementIndexOffset_r18_tags_3, + sizeof(asn_DEF_antElementIndexOffset_r18_tags_3) + /sizeof(asn_DEF_antElementIndexOffset_r18_tags_3[0]) - 1, /* 1 */ + asn_DEF_antElementIndexOffset_r18_tags_3, /* Same as above */ + sizeof(asn_DEF_antElementIndexOffset_r18_tags_3) + /sizeof(asn_DEF_antElementIndexOffset_r18_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_antElementIndexOffset_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_antElementIndexOffset_r18_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_BT_AntSwitchElement_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BT_AntSwitchElement_r18, antElementIndexShort_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_antElementIndexShort_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_antElementIndexShort_r18_constraint_1 + }, + 0, 0, /* No default value */ + "antElementIndexShort-r18" + }, + { ATF_POINTER, 1, offsetof(struct BT_AntSwitchElement_r18, antElementIndexOffset_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_antElementIndexOffset_r18_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "antElementIndexOffset-r18" + }, +}; +static const int asn_MAP_BT_AntSwitchElement_r18_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_BT_AntSwitchElement_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_AntSwitchElement_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* antElementIndexShort-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* antElementIndexOffset-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_AntSwitchElement_r18_specs_1 = { + sizeof(struct BT_AntSwitchElement_r18), + offsetof(struct BT_AntSwitchElement_r18, _asn_ctx), + asn_MAP_BT_AntSwitchElement_r18_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_BT_AntSwitchElement_r18_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_AntSwitchElement_r18 = { + "BT-AntSwitchElement-r18", + "BT-AntSwitchElement-r18", + &asn_OP_SEQUENCE, + asn_DEF_BT_AntSwitchElement_r18_tags_1, + sizeof(asn_DEF_BT_AntSwitchElement_r18_tags_1) + /sizeof(asn_DEF_BT_AntSwitchElement_r18_tags_1[0]), /* 1 */ + asn_DEF_BT_AntSwitchElement_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_AntSwitchElement_r18_tags_1) + /sizeof(asn_DEF_BT_AntSwitchElement_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_AntSwitchElement_r18_1, + 2, /* Elements count */ + &asn_SPC_BT_AntSwitchElement_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-AntSwitchElement-r18.h b/asn.1/lpp_generated/BT-AntSwitchElement-r18.h new file mode 100644 index 00000000..ad508f5f --- /dev/null +++ b/asn.1/lpp_generated/BT-AntSwitchElement-r18.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_AntSwitchElement_r18_H_ +#define _BT_AntSwitchElement_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum BT_AntSwitchElement_r18__antElementIndexOffset_r18 { + BT_AntSwitchElement_r18__antElementIndexOffset_r18_o16 = 0, + BT_AntSwitchElement_r18__antElementIndexOffset_r18_o32 = 1, + BT_AntSwitchElement_r18__antElementIndexOffset_r18_o48 = 2, + BT_AntSwitchElement_r18__antElementIndexOffset_r18_o64 = 3 +} e_BT_AntSwitchElement_r18__antElementIndexOffset_r18; + +/* BT-AntSwitchElement-r18 */ +typedef struct BT_AntSwitchElement_r18 { + long antElementIndexShort_r18; + long *antElementIndexOffset_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_AntSwitchElement_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_antElementIndexOffset_r18_3; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_BT_AntSwitchElement_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_BT_AntSwitchElement_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_AntSwitchElement_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_AntSwitchElement_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-AoA-Config-r18.c b/asn.1/lpp_generated/BT-AoA-Config-r18.c new file mode 100644 index 00000000..e70a8174 --- /dev/null +++ b/asn.1/lpp_generated/BT-AoA-Config-r18.c @@ -0,0 +1,500 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-AoA-Config-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_bt_Addr_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 48UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_primaryAdvInterval_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 32L && value <= 16777L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_secondAdvInterval_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 6L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_tx_Power_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -127L && value <= 20L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cte_Length_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 2L && value <= 20L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cte_Count_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 16L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cte_Status_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_tx_PHY_M2_r18_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bt_Addr_r18_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 48, 48 } /* (SIZE(48..48)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_primaryAdvInterval_r18_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, 32, 16777 } /* (32..16777) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_secondAdvInterval_r18_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 6, 65535 } /* (6..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tx_Power_r18_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -127, 20 } /* (-127..20) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cte_Length_r18_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 2, 20 } /* (2..20) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cte_Count_r18_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (1..16) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cte_Status_r18_value2enum_3[] = { + { 0, 7, "enabled" } +}; +static const unsigned int asn_MAP_cte_Status_r18_enum2value_3[] = { + 0 /* enabled(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cte_Status_r18_specs_3 = { + asn_MAP_cte_Status_r18_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_cte_Status_r18_enum2value_3, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cte_Status_r18_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cte_Status_r18_3 = { + "cte-Status-r18", + "cte-Status-r18", + &asn_OP_NativeEnumerated, + asn_DEF_cte_Status_r18_tags_3, + sizeof(asn_DEF_cte_Status_r18_tags_3) + /sizeof(asn_DEF_cte_Status_r18_tags_3[0]) - 1, /* 1 */ + asn_DEF_cte_Status_r18_tags_3, /* Same as above */ + sizeof(asn_DEF_cte_Status_r18_tags_3) + /sizeof(asn_DEF_cte_Status_r18_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cte_Status_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cte_Status_r18_specs_3 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_tx_PHY_M2_r18_value2enum_10[] = { + { 0, 2, "m2" } +}; +static const unsigned int asn_MAP_tx_PHY_M2_r18_enum2value_10[] = { + 0 /* m2(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_tx_PHY_M2_r18_specs_10 = { + asn_MAP_tx_PHY_M2_r18_value2enum_10, /* "tag" => N; sorted by tag */ + asn_MAP_tx_PHY_M2_r18_enum2value_10, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_tx_PHY_M2_r18_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_tx_PHY_M2_r18_10 = { + "tx-PHY-M2-r18", + "tx-PHY-M2-r18", + &asn_OP_NativeEnumerated, + asn_DEF_tx_PHY_M2_r18_tags_10, + sizeof(asn_DEF_tx_PHY_M2_r18_tags_10) + /sizeof(asn_DEF_tx_PHY_M2_r18_tags_10[0]) - 1, /* 1 */ + asn_DEF_tx_PHY_M2_r18_tags_10, /* Same as above */ + sizeof(asn_DEF_tx_PHY_M2_r18_tags_10) + /sizeof(asn_DEF_tx_PHY_M2_r18_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_tx_PHY_M2_r18_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_tx_PHY_M2_r18_specs_10 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_BT_AoA_Config_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BT_AoA_Config_r18, bt_Addr_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bt_Addr_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bt_Addr_r18_constraint_1 + }, + 0, 0, /* No default value */ + "bt-Addr-r18" + }, + { ATF_POINTER, 7, offsetof(struct BT_AoA_Config_r18, cte_Status_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cte_Status_r18_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cte-Status-r18" + }, + { ATF_POINTER, 6, offsetof(struct BT_AoA_Config_r18, primaryAdvInterval_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_primaryAdvInterval_r18_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_primaryAdvInterval_r18_constraint_1 + }, + 0, 0, /* No default value */ + "primaryAdvInterval-r18" + }, + { ATF_POINTER, 5, offsetof(struct BT_AoA_Config_r18, secondAdvInterval_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_secondAdvInterval_r18_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_secondAdvInterval_r18_constraint_1 + }, + 0, 0, /* No default value */ + "secondAdvInterval-r18" + }, + { ATF_POINTER, 4, offsetof(struct BT_AoA_Config_r18, tx_Power_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tx_Power_r18_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tx_Power_r18_constraint_1 + }, + 0, 0, /* No default value */ + "tx-Power-r18" + }, + { ATF_POINTER, 3, offsetof(struct BT_AoA_Config_r18, cte_Length_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cte_Length_r18_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cte_Length_r18_constraint_1 + }, + 0, 0, /* No default value */ + "cte-Length-r18" + }, + { ATF_POINTER, 2, offsetof(struct BT_AoA_Config_r18, cte_Count_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cte_Count_r18_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cte_Count_r18_constraint_1 + }, + 0, 0, /* No default value */ + "cte-Count-r18" + }, + { ATF_POINTER, 1, offsetof(struct BT_AoA_Config_r18, tx_PHY_M2_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_tx_PHY_M2_r18_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tx-PHY-M2-r18" + }, +}; +static const int asn_MAP_BT_AoA_Config_r18_oms_1[] = { 1, 2, 3, 4, 5, 6, 7 }; +static const ber_tlv_tag_t asn_DEF_BT_AoA_Config_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_AoA_Config_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bt-Addr-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cte-Status-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* primaryAdvInterval-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* secondAdvInterval-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* tx-Power-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* cte-Length-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* cte-Count-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* tx-PHY-M2-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_AoA_Config_r18_specs_1 = { + sizeof(struct BT_AoA_Config_r18), + offsetof(struct BT_AoA_Config_r18, _asn_ctx), + asn_MAP_BT_AoA_Config_r18_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_BT_AoA_Config_r18_oms_1, /* Optional members */ + 7, 0, /* Root/Additions */ + 8, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_AoA_Config_r18 = { + "BT-AoA-Config-r18", + "BT-AoA-Config-r18", + &asn_OP_SEQUENCE, + asn_DEF_BT_AoA_Config_r18_tags_1, + sizeof(asn_DEF_BT_AoA_Config_r18_tags_1) + /sizeof(asn_DEF_BT_AoA_Config_r18_tags_1[0]), /* 1 */ + asn_DEF_BT_AoA_Config_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_AoA_Config_r18_tags_1) + /sizeof(asn_DEF_BT_AoA_Config_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_AoA_Config_r18_1, + 8, /* Elements count */ + &asn_SPC_BT_AoA_Config_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-AoA-Config-r18.h b/asn.1/lpp_generated/BT-AoA-Config-r18.h new file mode 100644 index 00000000..707a482f --- /dev/null +++ b/asn.1/lpp_generated/BT-AoA-Config-r18.h @@ -0,0 +1,63 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_AoA_Config_r18_H_ +#define _BT_AoA_Config_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum BT_AoA_Config_r18__cte_Status_r18 { + BT_AoA_Config_r18__cte_Status_r18_enabled = 0 +} e_BT_AoA_Config_r18__cte_Status_r18; +typedef enum BT_AoA_Config_r18__tx_PHY_M2_r18 { + BT_AoA_Config_r18__tx_PHY_M2_r18_m2 = 0 +} e_BT_AoA_Config_r18__tx_PHY_M2_r18; + +/* BT-AoA-Config-r18 */ +typedef struct BT_AoA_Config_r18 { + BIT_STRING_t bt_Addr_r18; + long *cte_Status_r18; /* OPTIONAL */ + long *primaryAdvInterval_r18; /* OPTIONAL */ + long *secondAdvInterval_r18; /* OPTIONAL */ + long *tx_Power_r18; /* OPTIONAL */ + long *cte_Length_r18; /* OPTIONAL */ + long *cte_Count_r18; /* OPTIONAL */ + long *tx_PHY_M2_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_AoA_Config_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_cte_Status_r18_3; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_tx_PHY_M2_r18_10; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_BT_AoA_Config_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_BT_AoA_Config_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_AoA_Config_r18_1[8]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_AoA_Config_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-AoD-TransmConfig-r18.c b/asn.1/lpp_generated/BT-AoD-TransmConfig-r18.c new file mode 100644 index 00000000..8c66666e --- /dev/null +++ b/asn.1/lpp_generated/BT-AoD-TransmConfig-r18.c @@ -0,0 +1,286 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-AoD-TransmConfig-r18.h" + +static int +memb_primaryAdvInterval_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 32L && value <= 16777L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_secondAdvInterval_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 6L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cte_Length_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 2L && value <= 20L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cte_Count_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 16L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_primaryAdvInterval_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, 32, 16777 } /* (32..16777) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_secondAdvInterval_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 6, 65535 } /* (6..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cte_Length_r18_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 2, 20 } /* (2..20) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cte_Count_r18_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (1..16) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BT_AoD_TransmConfig_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BT_AoD_TransmConfig_r18, primaryAdvInterval_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_primaryAdvInterval_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_primaryAdvInterval_r18_constraint_1 + }, + 0, 0, /* No default value */ + "primaryAdvInterval-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct BT_AoD_TransmConfig_r18, secondAdvInterval_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_secondAdvInterval_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_secondAdvInterval_r18_constraint_1 + }, + 0, 0, /* No default value */ + "secondAdvInterval-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct BT_AoD_TransmConfig_r18, cte_Length_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cte_Length_r18_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cte_Length_r18_constraint_1 + }, + 0, 0, /* No default value */ + "cte-Length-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct BT_AoD_TransmConfig_r18, cte_Count_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cte_Count_r18_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cte_Count_r18_constraint_1 + }, + 0, 0, /* No default value */ + "cte-Count-r18" + }, + { ATF_POINTER, 2, offsetof(struct BT_AoD_TransmConfig_r18, cte_Type2us_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cte-Type2us-r18" + }, + { ATF_POINTER, 1, offsetof(struct BT_AoD_TransmConfig_r18, tx_PHY_M2_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tx-PHY-M2-r18" + }, +}; +static const int asn_MAP_BT_AoD_TransmConfig_r18_oms_1[] = { 4, 5 }; +static const ber_tlv_tag_t asn_DEF_BT_AoD_TransmConfig_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_AoD_TransmConfig_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* primaryAdvInterval-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* secondAdvInterval-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cte-Length-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* cte-Count-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* cte-Type2us-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* tx-PHY-M2-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_AoD_TransmConfig_r18_specs_1 = { + sizeof(struct BT_AoD_TransmConfig_r18), + offsetof(struct BT_AoD_TransmConfig_r18, _asn_ctx), + asn_MAP_BT_AoD_TransmConfig_r18_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_BT_AoD_TransmConfig_r18_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_AoD_TransmConfig_r18 = { + "BT-AoD-TransmConfig-r18", + "BT-AoD-TransmConfig-r18", + &asn_OP_SEQUENCE, + asn_DEF_BT_AoD_TransmConfig_r18_tags_1, + sizeof(asn_DEF_BT_AoD_TransmConfig_r18_tags_1) + /sizeof(asn_DEF_BT_AoD_TransmConfig_r18_tags_1[0]), /* 1 */ + asn_DEF_BT_AoD_TransmConfig_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_AoD_TransmConfig_r18_tags_1) + /sizeof(asn_DEF_BT_AoD_TransmConfig_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_AoD_TransmConfig_r18_1, + 6, /* Elements count */ + &asn_SPC_BT_AoD_TransmConfig_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-AoD-TransmConfig-r18.h b/asn.1/lpp_generated/BT-AoD-TransmConfig-r18.h new file mode 100644 index 00000000..3f693e90 --- /dev/null +++ b/asn.1/lpp_generated/BT-AoD-TransmConfig-r18.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_AoD_TransmConfig_r18_H_ +#define _BT_AoD_TransmConfig_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* BT-AoD-TransmConfig-r18 */ +typedef struct BT_AoD_TransmConfig_r18 { + long primaryAdvInterval_r18; + long secondAdvInterval_r18; + long cte_Length_r18; + long cte_Count_r18; + NULL_t *cte_Type2us_r18; /* OPTIONAL */ + NULL_t *tx_PHY_M2_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_AoD_TransmConfig_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BT_AoD_TransmConfig_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_BT_AoD_TransmConfig_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_AoD_TransmConfig_r18_1[6]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_AoD_TransmConfig_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-BeaconInfo-r18.c b/asn.1/lpp_generated/BT-BeaconInfo-r18.c new file mode 100644 index 00000000..9f8c27ac --- /dev/null +++ b/asn.1/lpp_generated/BT-BeaconInfo-r18.c @@ -0,0 +1,178 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-BeaconInfo-r18.h" + +#include "BT-BeaconInfoElement-r18.h" +static int +memb_bt_BeaconInfoList_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 64UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_bt_BeaconInfoList_r18_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bt_BeaconInfoList_r18_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_bt_BeaconInfoList_r18_3[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_BT_BeaconInfoElement_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_bt_BeaconInfoList_r18_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_bt_BeaconInfoList_r18_specs_3 = { + sizeof(struct BT_BeaconInfo_r18__bt_BeaconInfoList_r18), + offsetof(struct BT_BeaconInfo_r18__bt_BeaconInfoList_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_bt_BeaconInfoList_r18_3 = { + "bt-BeaconInfoList-r18", + "bt-BeaconInfoList-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_bt_BeaconInfoList_r18_tags_3, + sizeof(asn_DEF_bt_BeaconInfoList_r18_tags_3) + /sizeof(asn_DEF_bt_BeaconInfoList_r18_tags_3[0]) - 1, /* 1 */ + asn_DEF_bt_BeaconInfoList_r18_tags_3, /* Same as above */ + sizeof(asn_DEF_bt_BeaconInfoList_r18_tags_3) + /sizeof(asn_DEF_bt_BeaconInfoList_r18_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_bt_BeaconInfoList_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_bt_BeaconInfoList_r18_3, + 1, /* Single element */ + &asn_SPC_bt_BeaconInfoList_r18_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_BT_BeaconInfo_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BT_BeaconInfo_r18, referencePoint_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReferencePoint_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referencePoint-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct BT_BeaconInfo_r18, bt_BeaconInfoList_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_bt_BeaconInfoList_r18_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bt_BeaconInfoList_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bt_BeaconInfoList_r18_constraint_1 + }, + 0, 0, /* No default value */ + "bt-BeaconInfoList-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_BT_BeaconInfo_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_BeaconInfo_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referencePoint-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bt-BeaconInfoList-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_BeaconInfo_r18_specs_1 = { + sizeof(struct BT_BeaconInfo_r18), + offsetof(struct BT_BeaconInfo_r18, _asn_ctx), + asn_MAP_BT_BeaconInfo_r18_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_BeaconInfo_r18 = { + "BT-BeaconInfo-r18", + "BT-BeaconInfo-r18", + &asn_OP_SEQUENCE, + asn_DEF_BT_BeaconInfo_r18_tags_1, + sizeof(asn_DEF_BT_BeaconInfo_r18_tags_1) + /sizeof(asn_DEF_BT_BeaconInfo_r18_tags_1[0]), /* 1 */ + asn_DEF_BT_BeaconInfo_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_BeaconInfo_r18_tags_1) + /sizeof(asn_DEF_BT_BeaconInfo_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_BeaconInfo_r18_1, + 2, /* Elements count */ + &asn_SPC_BT_BeaconInfo_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-BeaconInfo-r18.h b/asn.1/lpp_generated/BT-BeaconInfo-r18.h new file mode 100644 index 00000000..b35e038d --- /dev/null +++ b/asn.1/lpp_generated/BT-BeaconInfo-r18.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_BeaconInfo_r18_H_ +#define _BT_BeaconInfo_r18_H_ + + +#include + +/* Including external dependencies */ +#include "ReferencePoint-r16.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct BT_BeaconInfoElement_r18; + +/* BT-BeaconInfo-r18 */ +typedef struct BT_BeaconInfo_r18 { + ReferencePoint_r16_t referencePoint_r18; + struct BT_BeaconInfo_r18__bt_BeaconInfoList_r18 { + A_SEQUENCE_OF(struct BT_BeaconInfoElement_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } bt_BeaconInfoList_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_BeaconInfo_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BT_BeaconInfo_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_BT_BeaconInfo_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_BeaconInfo_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_BeaconInfo_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-BeaconInfoElement-r18.c b/asn.1/lpp_generated/BT-BeaconInfoElement-r18.c new file mode 100644 index 00000000..fdd96693 --- /dev/null +++ b/asn.1/lpp_generated/BT-BeaconInfoElement-r18.c @@ -0,0 +1,406 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-BeaconInfoElement-r18.h" + +#include "RelativeLocation-r16.h" +#include "LCS-GCS-TranslationParameter-r16.h" +#include "BT-AntArrayConfig-r18.h" +#include "BT-AoD-TransmConfig-r18.h" +#include "BT-AntElement-r18.h" +#include "BT-AntSwitchElement-r18.h" +static int +memb_bt_Addr_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 48UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bt_antElementList_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 2UL && size <= 74UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bt_antSwitchingPattern_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 2UL && size <= 74UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_bt_antElementList_r18_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 7, 7, 2, 74 } /* (SIZE(2..74)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_bt_antSwitchingPattern_r18_constr_8 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 7, 7, 2, 74 } /* (SIZE(2..74)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bt_Addr_r18_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 48, 48 } /* (SIZE(48..48)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bt_antElementList_r18_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 7, 7, 2, 74 } /* (SIZE(2..74)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bt_antSwitchingPattern_r18_constr_8 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 7, 7, 2, 74 } /* (SIZE(2..74)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_bt_antElementList_r18_6[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_BT_AntElement_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_bt_antElementList_r18_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_bt_antElementList_r18_specs_6 = { + sizeof(struct BT_BeaconInfoElement_r18__bt_antElementList_r18), + offsetof(struct BT_BeaconInfoElement_r18__bt_antElementList_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_bt_antElementList_r18_6 = { + "bt-antElementList-r18", + "bt-antElementList-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_bt_antElementList_r18_tags_6, + sizeof(asn_DEF_bt_antElementList_r18_tags_6) + /sizeof(asn_DEF_bt_antElementList_r18_tags_6[0]) - 1, /* 1 */ + asn_DEF_bt_antElementList_r18_tags_6, /* Same as above */ + sizeof(asn_DEF_bt_antElementList_r18_tags_6) + /sizeof(asn_DEF_bt_antElementList_r18_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_bt_antElementList_r18_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_bt_antElementList_r18_6, + 1, /* Single element */ + &asn_SPC_bt_antElementList_r18_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_bt_antSwitchingPattern_r18_8[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_BT_AntSwitchElement_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_bt_antSwitchingPattern_r18_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_bt_antSwitchingPattern_r18_specs_8 = { + sizeof(struct BT_BeaconInfoElement_r18__bt_antSwitchingPattern_r18), + offsetof(struct BT_BeaconInfoElement_r18__bt_antSwitchingPattern_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_bt_antSwitchingPattern_r18_8 = { + "bt-antSwitchingPattern-r18", + "bt-antSwitchingPattern-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_bt_antSwitchingPattern_r18_tags_8, + sizeof(asn_DEF_bt_antSwitchingPattern_r18_tags_8) + /sizeof(asn_DEF_bt_antSwitchingPattern_r18_tags_8[0]) - 1, /* 1 */ + asn_DEF_bt_antSwitchingPattern_r18_tags_8, /* Same as above */ + sizeof(asn_DEF_bt_antSwitchingPattern_r18_tags_8) + /sizeof(asn_DEF_bt_antSwitchingPattern_r18_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_bt_antSwitchingPattern_r18_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_bt_antSwitchingPattern_r18_8, + 1, /* Single element */ + &asn_SPC_bt_antSwitchingPattern_r18_specs_8 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_BT_BeaconInfoElement_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BT_BeaconInfoElement_r18, bt_Addr_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bt_Addr_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bt_Addr_r18_constraint_1 + }, + 0, 0, /* No default value */ + "bt-Addr-r18" + }, + { ATF_POINTER, 6, offsetof(struct BT_BeaconInfoElement_r18, bt_BeaconLocation_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RelativeLocation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-BeaconLocation-r18" + }, + { ATF_POINTER, 5, offsetof(struct BT_BeaconInfoElement_r18, bt_LCS_GCS_TranslationParameter_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LCS_GCS_TranslationParameter_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-LCS-GCS-TranslationParameter-r18" + }, + { ATF_POINTER, 4, offsetof(struct BT_BeaconInfoElement_r18, bt_antArrayConfig_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_BT_AntArrayConfig_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-antArrayConfig-r18" + }, + { ATF_POINTER, 3, offsetof(struct BT_BeaconInfoElement_r18, bt_antElementList_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_bt_antElementList_r18_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bt_antElementList_r18_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bt_antElementList_r18_constraint_1 + }, + 0, 0, /* No default value */ + "bt-antElementList-r18" + }, + { ATF_POINTER, 2, offsetof(struct BT_BeaconInfoElement_r18, bt_antSwitchingPattern_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_bt_antSwitchingPattern_r18_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bt_antSwitchingPattern_r18_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bt_antSwitchingPattern_r18_constraint_1 + }, + 0, 0, /* No default value */ + "bt-antSwitchingPattern-r18" + }, + { ATF_POINTER, 1, offsetof(struct BT_BeaconInfoElement_r18, bt_AoD_TransmConfig_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BT_AoD_TransmConfig_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-AoD-TransmConfig-r18" + }, +}; +static const int asn_MAP_BT_BeaconInfoElement_r18_oms_1[] = { 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_BT_BeaconInfoElement_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_BeaconInfoElement_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bt-Addr-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bt-BeaconLocation-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bt-LCS-GCS-TranslationParameter-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* bt-antArrayConfig-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* bt-antElementList-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* bt-antSwitchingPattern-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* bt-AoD-TransmConfig-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_BeaconInfoElement_r18_specs_1 = { + sizeof(struct BT_BeaconInfoElement_r18), + offsetof(struct BT_BeaconInfoElement_r18, _asn_ctx), + asn_MAP_BT_BeaconInfoElement_r18_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_BT_BeaconInfoElement_r18_oms_1, /* Optional members */ + 6, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_BeaconInfoElement_r18 = { + "BT-BeaconInfoElement-r18", + "BT-BeaconInfoElement-r18", + &asn_OP_SEQUENCE, + asn_DEF_BT_BeaconInfoElement_r18_tags_1, + sizeof(asn_DEF_BT_BeaconInfoElement_r18_tags_1) + /sizeof(asn_DEF_BT_BeaconInfoElement_r18_tags_1[0]), /* 1 */ + asn_DEF_BT_BeaconInfoElement_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_BeaconInfoElement_r18_tags_1) + /sizeof(asn_DEF_BT_BeaconInfoElement_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_BeaconInfoElement_r18_1, + 7, /* Elements count */ + &asn_SPC_BT_BeaconInfoElement_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-BeaconInfoElement-r18.h b/asn.1/lpp_generated/BT-BeaconInfoElement-r18.h new file mode 100644 index 00000000..9795f98a --- /dev/null +++ b/asn.1/lpp_generated/BT-BeaconInfoElement-r18.h @@ -0,0 +1,70 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_BeaconInfoElement_r18_H_ +#define _BT_BeaconInfoElement_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct RelativeLocation_r16; +struct LCS_GCS_TranslationParameter_r16; +struct BT_AntArrayConfig_r18; +struct BT_AoD_TransmConfig_r18; +struct BT_AntElement_r18; +struct BT_AntSwitchElement_r18; + +/* BT-BeaconInfoElement-r18 */ +typedef struct BT_BeaconInfoElement_r18 { + BIT_STRING_t bt_Addr_r18; + struct RelativeLocation_r16 *bt_BeaconLocation_r18; /* OPTIONAL */ + struct LCS_GCS_TranslationParameter_r16 *bt_LCS_GCS_TranslationParameter_r18; /* OPTIONAL */ + struct BT_AntArrayConfig_r18 *bt_antArrayConfig_r18; /* OPTIONAL */ + struct BT_BeaconInfoElement_r18__bt_antElementList_r18 { + A_SEQUENCE_OF(struct BT_AntElement_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *bt_antElementList_r18; + struct BT_BeaconInfoElement_r18__bt_antSwitchingPattern_r18 { + A_SEQUENCE_OF(struct BT_AntSwitchElement_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *bt_antSwitchingPattern_r18; + struct BT_AoD_TransmConfig_r18 *bt_AoD_TransmConfig_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_BeaconInfoElement_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BT_BeaconInfoElement_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_BT_BeaconInfoElement_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_BeaconInfoElement_r18_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_BeaconInfoElement_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-Error-r13.c b/asn.1/lpp_generated/BT-Error-r13.c new file mode 100644 index 00000000..7f707b4f --- /dev/null +++ b/asn.1/lpp_generated/BT-Error-r13.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-Error-r13.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_BT_Error_r13_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BT_Error_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BT_Error_r13, choice.locationServerErrorCauses_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BT_LocationServerErrorCauses_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationServerErrorCauses-r13" + }, + { ATF_NOFLAGS, 0, offsetof(struct BT_Error_r13, choice.targetDeviceErrorCauses_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BT_TargetDeviceErrorCauses_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "targetDeviceErrorCauses-r13" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_Error_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses-r13 */ +}; +asn_CHOICE_specifics_t asn_SPC_BT_Error_r13_specs_1 = { + sizeof(struct BT_Error_r13), + offsetof(struct BT_Error_r13, _asn_ctx), + offsetof(struct BT_Error_r13, present), + sizeof(((struct BT_Error_r13 *)0)->present), + asn_MAP_BT_Error_r13_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_Error_r13 = { + "BT-Error-r13", + "BT-Error-r13", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_BT_Error_r13_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_BT_Error_r13_1, + 2, /* Elements count */ + &asn_SPC_BT_Error_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/BT-Error-r13.h b/asn.1/lpp_generated/BT-Error-r13.h similarity index 84% rename from asn.1/generated/BT-Error-r13.h rename to asn.1/lpp_generated/BT-Error-r13.h index 87f124cd..bc146648 100644 --- a/asn.1/generated/BT-Error-r13.h +++ b/asn.1/lpp_generated/BT-Error-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _BT_Error_r13_H_ diff --git a/asn.1/lpp_generated/BT-GenericArray-r18.c b/asn.1/lpp_generated/BT-GenericArray-r18.c new file mode 100644 index 00000000..8e47e318 --- /dev/null +++ b/asn.1/lpp_generated/BT-GenericArray-r18.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-GenericArray-r18.h" + +#include "BT-ULA-GenericAntElement-r18.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_BT_GenericArray_r18_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 7, 7, 2, 74 } /* (SIZE(2..74)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BT_GenericArray_r18_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_BT_ULA_GenericAntElement_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_BT_GenericArray_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_BT_GenericArray_r18_specs_1 = { + sizeof(struct BT_GenericArray_r18), + offsetof(struct BT_GenericArray_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_GenericArray_r18 = { + "BT-GenericArray-r18", + "BT-GenericArray-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_BT_GenericArray_r18_tags_1, + sizeof(asn_DEF_BT_GenericArray_r18_tags_1) + /sizeof(asn_DEF_BT_GenericArray_r18_tags_1[0]), /* 1 */ + asn_DEF_BT_GenericArray_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_GenericArray_r18_tags_1) + /sizeof(asn_DEF_BT_GenericArray_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_BT_GenericArray_r18_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_BT_GenericArray_r18_1, + 1, /* Single element */ + &asn_SPC_BT_GenericArray_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-GenericArray-r18.h b/asn.1/lpp_generated/BT-GenericArray-r18.h new file mode 100644 index 00000000..75b1b70e --- /dev/null +++ b/asn.1/lpp_generated/BT-GenericArray-r18.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_GenericArray_r18_H_ +#define _BT_GenericArray_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct BT_ULA_GenericAntElement_r18; + +/* BT-GenericArray-r18 */ +typedef struct BT_GenericArray_r18 { + A_SEQUENCE_OF(struct BT_ULA_GenericAntElement_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_GenericArray_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BT_GenericArray_r18; +extern asn_SET_OF_specifics_t asn_SPC_BT_GenericArray_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_GenericArray_r18_1[1]; +extern asn_per_constraints_t asn_PER_type_BT_GenericArray_r18_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_GenericArray_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-LocationServerErrorCauses-r13.c b/asn.1/lpp_generated/BT-LocationServerErrorCauses-r13.c new file mode 100644 index 00000000..25a8117f --- /dev/null +++ b/asn.1/lpp_generated/BT-LocationServerErrorCauses-r13.c @@ -0,0 +1,128 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-LocationServerErrorCauses-r13.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_r13_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_r13_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 40, "assistanceDataNotSupportedByServer-v1810" }, + { 2, 61, "assistanceDataSupportedButCurrentlyNotAvailableByServer-v1810" }, + { 3, 52, "notAllrequestedAssistanceDataAvailableByServer-v1810" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_r13_enum2value_2[] = { + 1, /* assistanceDataNotSupportedByServer-v1810(1) */ + 2, /* assistanceDataSupportedButCurrentlyNotAvailableByServer-v1810(2) */ + 3, /* notAllrequestedAssistanceDataAvailableByServer-v1810(3) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_r13_specs_2 = { + asn_MAP_cause_r13_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_r13_enum2value_2, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_r13_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_r13_2 = { + "cause-r13", + "cause-r13", + &asn_OP_NativeEnumerated, + asn_DEF_cause_r13_tags_2, + sizeof(asn_DEF_cause_r13_tags_2) + /sizeof(asn_DEF_cause_r13_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_r13_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_r13_tags_2) + /sizeof(asn_DEF_cause_r13_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_r13_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_r13_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_BT_LocationServerErrorCauses_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BT_LocationServerErrorCauses_r13, cause_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_r13_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause-r13" + }, +}; +static const ber_tlv_tag_t asn_DEF_BT_LocationServerErrorCauses_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_LocationServerErrorCauses_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause-r13 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_LocationServerErrorCauses_r13_specs_1 = { + sizeof(struct BT_LocationServerErrorCauses_r13), + offsetof(struct BT_LocationServerErrorCauses_r13, _asn_ctx), + asn_MAP_BT_LocationServerErrorCauses_r13_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_LocationServerErrorCauses_r13 = { + "BT-LocationServerErrorCauses-r13", + "BT-LocationServerErrorCauses-r13", + &asn_OP_SEQUENCE, + asn_DEF_BT_LocationServerErrorCauses_r13_tags_1, + sizeof(asn_DEF_BT_LocationServerErrorCauses_r13_tags_1) + /sizeof(asn_DEF_BT_LocationServerErrorCauses_r13_tags_1[0]), /* 1 */ + asn_DEF_BT_LocationServerErrorCauses_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_LocationServerErrorCauses_r13_tags_1) + /sizeof(asn_DEF_BT_LocationServerErrorCauses_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_LocationServerErrorCauses_r13_1, + 1, /* Elements count */ + &asn_SPC_BT_LocationServerErrorCauses_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-LocationServerErrorCauses-r13.h b/asn.1/lpp_generated/BT-LocationServerErrorCauses-r13.h new file mode 100644 index 00000000..739cddfd --- /dev/null +++ b/asn.1/lpp_generated/BT-LocationServerErrorCauses-r13.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_LocationServerErrorCauses_r13_H_ +#define _BT_LocationServerErrorCauses_r13_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum BT_LocationServerErrorCauses_r13__cause_r13 { + BT_LocationServerErrorCauses_r13__cause_r13_undefined = 0, + /* + * Enumeration is extensible + */ + BT_LocationServerErrorCauses_r13__cause_r13_assistanceDataNotSupportedByServer_v1810 = 1, + BT_LocationServerErrorCauses_r13__cause_r13_assistanceDataSupportedButCurrentlyNotAvailableByServer_v1810 = 2, + BT_LocationServerErrorCauses_r13__cause_r13_notAllrequestedAssistanceDataAvailableByServer_v1810 = 3 +} e_BT_LocationServerErrorCauses_r13__cause_r13; + +/* BT-LocationServerErrorCauses-r13 */ +typedef struct BT_LocationServerErrorCauses_r13 { + long cause_r13; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_LocationServerErrorCauses_r13_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_cause_r13_2; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_BT_LocationServerErrorCauses_r13; +extern asn_SEQUENCE_specifics_t asn_SPC_BT_LocationServerErrorCauses_r13_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_LocationServerErrorCauses_r13_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_LocationServerErrorCauses_r13_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-MeasurementElement-r13.c b/asn.1/lpp_generated/BT-MeasurementElement-r13.c new file mode 100644 index 00000000..69b66666 --- /dev/null +++ b/asn.1/lpp_generated/BT-MeasurementElement-r13.c @@ -0,0 +1,156 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-MeasurementElement-r13.h" + +static int +memb_btAddr_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 48UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_rssi_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_btAddr_r13_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 48, 48 } /* (SIZE(48..48)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rssi_r13_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BT_MeasurementElement_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BT_MeasurementElement_r13, btAddr_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_btAddr_r13_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_btAddr_r13_constraint_1 + }, + 0, 0, /* No default value */ + "btAddr-r13" + }, + { ATF_POINTER, 1, offsetof(struct BT_MeasurementElement_r13, rssi_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rssi_r13_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rssi_r13_constraint_1 + }, + 0, 0, /* No default value */ + "rssi-r13" + }, +}; +static const int asn_MAP_BT_MeasurementElement_r13_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_BT_MeasurementElement_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_MeasurementElement_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* btAddr-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* rssi-r13 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_MeasurementElement_r13_specs_1 = { + sizeof(struct BT_MeasurementElement_r13), + offsetof(struct BT_MeasurementElement_r13, _asn_ctx), + asn_MAP_BT_MeasurementElement_r13_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_BT_MeasurementElement_r13_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_MeasurementElement_r13 = { + "BT-MeasurementElement-r13", + "BT-MeasurementElement-r13", + &asn_OP_SEQUENCE, + asn_DEF_BT_MeasurementElement_r13_tags_1, + sizeof(asn_DEF_BT_MeasurementElement_r13_tags_1) + /sizeof(asn_DEF_BT_MeasurementElement_r13_tags_1[0]), /* 1 */ + asn_DEF_BT_MeasurementElement_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_MeasurementElement_r13_tags_1) + /sizeof(asn_DEF_BT_MeasurementElement_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_MeasurementElement_r13_1, + 2, /* Elements count */ + &asn_SPC_BT_MeasurementElement_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/BT-MeasurementElement-r13.h b/asn.1/lpp_generated/BT-MeasurementElement-r13.h similarity index 77% rename from asn.1/generated/BT-MeasurementElement-r13.h rename to asn.1/lpp_generated/BT-MeasurementElement-r13.h index ec52dd5b..1fabdcf8 100644 --- a/asn.1/generated/BT-MeasurementElement-r13.h +++ b/asn.1/lpp_generated/BT-MeasurementElement-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _BT_MeasurementElement_r13_H_ @@ -23,7 +23,7 @@ extern "C" { /* BT-MeasurementElement-r13 */ typedef struct BT_MeasurementElement_r13 { BIT_STRING_t btAddr_r13; - long *rssi_r13 /* OPTIONAL */; + long *rssi_r13; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/BT-MeasurementElement-r18.c b/asn.1/lpp_generated/BT-MeasurementElement-r18.c new file mode 100644 index 00000000..02ebfd76 --- /dev/null +++ b/asn.1/lpp_generated/BT-MeasurementElement-r18.c @@ -0,0 +1,256 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-MeasurementElement-r18.h" + +static int +memb_btAddr_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 48UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bt_azimuth_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 359L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bt_elevation_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 180L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_rssi_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_btAddr_r18_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 48, 48 } /* (SIZE(48..48)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bt_azimuth_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 359 } /* (0..359) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bt_elevation_r18_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 180 } /* (0..180) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rssi_r18_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BT_MeasurementElement_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BT_MeasurementElement_r18, btAddr_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_btAddr_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_btAddr_r18_constraint_1 + }, + 0, 0, /* No default value */ + "btAddr-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct BT_MeasurementElement_r18, bt_azimuth_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bt_azimuth_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bt_azimuth_r18_constraint_1 + }, + 0, 0, /* No default value */ + "bt-azimuth-r18" + }, + { ATF_POINTER, 2, offsetof(struct BT_MeasurementElement_r18, bt_elevation_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bt_elevation_r18_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bt_elevation_r18_constraint_1 + }, + 0, 0, /* No default value */ + "bt-elevation-r18" + }, + { ATF_POINTER, 1, offsetof(struct BT_MeasurementElement_r18, rssi_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rssi_r18_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rssi_r18_constraint_1 + }, + 0, 0, /* No default value */ + "rssi-r18" + }, +}; +static const int asn_MAP_BT_MeasurementElement_r18_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_BT_MeasurementElement_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_MeasurementElement_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* btAddr-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bt-azimuth-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bt-elevation-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* rssi-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_MeasurementElement_r18_specs_1 = { + sizeof(struct BT_MeasurementElement_r18), + offsetof(struct BT_MeasurementElement_r18, _asn_ctx), + asn_MAP_BT_MeasurementElement_r18_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_BT_MeasurementElement_r18_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_MeasurementElement_r18 = { + "BT-MeasurementElement-r18", + "BT-MeasurementElement-r18", + &asn_OP_SEQUENCE, + asn_DEF_BT_MeasurementElement_r18_tags_1, + sizeof(asn_DEF_BT_MeasurementElement_r18_tags_1) + /sizeof(asn_DEF_BT_MeasurementElement_r18_tags_1[0]), /* 1 */ + asn_DEF_BT_MeasurementElement_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_MeasurementElement_r18_tags_1) + /sizeof(asn_DEF_BT_MeasurementElement_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_MeasurementElement_r18_1, + 4, /* Elements count */ + &asn_SPC_BT_MeasurementElement_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-MeasurementElement-r18.h b/asn.1/lpp_generated/BT-MeasurementElement-r18.h new file mode 100644 index 00000000..6a38b97e --- /dev/null +++ b/asn.1/lpp_generated/BT-MeasurementElement-r18.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_MeasurementElement_r18_H_ +#define _BT_MeasurementElement_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* BT-MeasurementElement-r18 */ +typedef struct BT_MeasurementElement_r18 { + BIT_STRING_t btAddr_r18; + long bt_azimuth_r18; + long *bt_elevation_r18; /* OPTIONAL */ + long *rssi_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_MeasurementElement_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BT_MeasurementElement_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_BT_MeasurementElement_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_MeasurementElement_r18_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_MeasurementElement_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-MeasurementInformation-r13.c b/asn.1/lpp_generated/BT-MeasurementInformation-r13.c new file mode 100644 index 00000000..14c677ae --- /dev/null +++ b/asn.1/lpp_generated/BT-MeasurementInformation-r13.c @@ -0,0 +1,167 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-MeasurementInformation-r13.h" + +#include "BT-MeasurementList-r13.h" +#include "BT-MeasurementList-r18.h" +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_POINTER, 1, offsetof(struct BT_MeasurementInformation_r13__ext1, bt_MeasurementList_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BT_MeasurementList_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-MeasurementList-r18" + }, +}; +static const int asn_MAP_ext1_oms_5[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* bt-MeasurementList-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct BT_MeasurementInformation_r13__ext1), + offsetof(struct BT_MeasurementInformation_r13__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_5, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 1, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_BT_MeasurementInformation_r13_1[] = { + { ATF_POINTER, 3, offsetof(struct BT_MeasurementInformation_r13, measurementReferenceTime_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTCTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "measurementReferenceTime-r13" + }, + { ATF_POINTER, 2, offsetof(struct BT_MeasurementInformation_r13, bt_MeasurementList_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BT_MeasurementList_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-MeasurementList-r13" + }, + { ATF_POINTER, 1, offsetof(struct BT_MeasurementInformation_r13, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_BT_MeasurementInformation_r13_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_BT_MeasurementInformation_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_MeasurementInformation_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* measurementReferenceTime-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bt-MeasurementList-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_MeasurementInformation_r13_specs_1 = { + sizeof(struct BT_MeasurementInformation_r13), + offsetof(struct BT_MeasurementInformation_r13, _asn_ctx), + asn_MAP_BT_MeasurementInformation_r13_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_BT_MeasurementInformation_r13_oms_1, /* Optional members */ + 2, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_MeasurementInformation_r13 = { + "BT-MeasurementInformation-r13", + "BT-MeasurementInformation-r13", + &asn_OP_SEQUENCE, + asn_DEF_BT_MeasurementInformation_r13_tags_1, + sizeof(asn_DEF_BT_MeasurementInformation_r13_tags_1) + /sizeof(asn_DEF_BT_MeasurementInformation_r13_tags_1[0]), /* 1 */ + asn_DEF_BT_MeasurementInformation_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_MeasurementInformation_r13_tags_1) + /sizeof(asn_DEF_BT_MeasurementInformation_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_MeasurementInformation_r13_1, + 3, /* Elements count */ + &asn_SPC_BT_MeasurementInformation_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-MeasurementInformation-r13.h b/asn.1/lpp_generated/BT-MeasurementInformation-r13.h new file mode 100644 index 00000000..c4a71f57 --- /dev/null +++ b/asn.1/lpp_generated/BT-MeasurementInformation-r13.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_MeasurementInformation_r13_H_ +#define _BT_MeasurementInformation_r13_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct BT_MeasurementList_r13; +struct BT_MeasurementList_r18; + +/* BT-MeasurementInformation-r13 */ +typedef struct BT_MeasurementInformation_r13 { + UTCTime_t *measurementReferenceTime_r13; /* OPTIONAL */ + struct BT_MeasurementList_r13 *bt_MeasurementList_r13; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct BT_MeasurementInformation_r13__ext1 { + struct BT_MeasurementList_r18 *bt_MeasurementList_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_MeasurementInformation_r13_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BT_MeasurementInformation_r13; +extern asn_SEQUENCE_specifics_t asn_SPC_BT_MeasurementInformation_r13_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_MeasurementInformation_r13_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_MeasurementInformation_r13_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-MeasurementList-r13.c b/asn.1/lpp_generated/BT-MeasurementList-r13.c new file mode 100644 index 00000000..78bc3785 --- /dev/null +++ b/asn.1/lpp_generated/BT-MeasurementList-r13.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-MeasurementList-r13.h" + +#include "BT-MeasurementElement-r13.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_BT_MeasurementList_r13_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BT_MeasurementList_r13_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_BT_MeasurementElement_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_BT_MeasurementList_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_BT_MeasurementList_r13_specs_1 = { + sizeof(struct BT_MeasurementList_r13), + offsetof(struct BT_MeasurementList_r13, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_MeasurementList_r13 = { + "BT-MeasurementList-r13", + "BT-MeasurementList-r13", + &asn_OP_SEQUENCE_OF, + asn_DEF_BT_MeasurementList_r13_tags_1, + sizeof(asn_DEF_BT_MeasurementList_r13_tags_1) + /sizeof(asn_DEF_BT_MeasurementList_r13_tags_1[0]), /* 1 */ + asn_DEF_BT_MeasurementList_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_MeasurementList_r13_tags_1) + /sizeof(asn_DEF_BT_MeasurementList_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_BT_MeasurementList_r13_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_BT_MeasurementList_r13_1, + 1, /* Single element */ + &asn_SPC_BT_MeasurementList_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/BT-MeasurementList-r13.h b/asn.1/lpp_generated/BT-MeasurementList-r13.h similarity index 80% rename from asn.1/generated/BT-MeasurementList-r13.h rename to asn.1/lpp_generated/BT-MeasurementList-r13.h index d47615c9..5b5229a1 100644 --- a/asn.1/generated/BT-MeasurementList-r13.h +++ b/asn.1/lpp_generated/BT-MeasurementList-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _BT_MeasurementList_r13_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_BT_MeasurementList_r13_constr_1; } #endif -/* Referred external types */ -#include "BT-MeasurementElement-r13.h" - #endif /* _BT_MeasurementList_r13_H_ */ #include diff --git a/asn.1/lpp_generated/BT-MeasurementList-r18.c b/asn.1/lpp_generated/BT-MeasurementList-r18.c new file mode 100644 index 00000000..f171d7ca --- /dev/null +++ b/asn.1/lpp_generated/BT-MeasurementList-r18.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-MeasurementList-r18.h" + +#include "BT-MeasurementElement-r18.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_BT_MeasurementList_r18_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BT_MeasurementList_r18_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_BT_MeasurementElement_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_BT_MeasurementList_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_BT_MeasurementList_r18_specs_1 = { + sizeof(struct BT_MeasurementList_r18), + offsetof(struct BT_MeasurementList_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_MeasurementList_r18 = { + "BT-MeasurementList-r18", + "BT-MeasurementList-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_BT_MeasurementList_r18_tags_1, + sizeof(asn_DEF_BT_MeasurementList_r18_tags_1) + /sizeof(asn_DEF_BT_MeasurementList_r18_tags_1[0]), /* 1 */ + asn_DEF_BT_MeasurementList_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_MeasurementList_r18_tags_1) + /sizeof(asn_DEF_BT_MeasurementList_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_BT_MeasurementList_r18_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_BT_MeasurementList_r18_1, + 1, /* Single element */ + &asn_SPC_BT_MeasurementList_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-MeasurementList-r18.h b/asn.1/lpp_generated/BT-MeasurementList-r18.h new file mode 100644 index 00000000..154d8919 --- /dev/null +++ b/asn.1/lpp_generated/BT-MeasurementList-r18.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_MeasurementList_r18_H_ +#define _BT_MeasurementList_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct BT_MeasurementElement_r18; + +/* BT-MeasurementList-r18 */ +typedef struct BT_MeasurementList_r18 { + A_SEQUENCE_OF(struct BT_MeasurementElement_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_MeasurementList_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BT_MeasurementList_r18; +extern asn_SET_OF_specifics_t asn_SPC_BT_MeasurementList_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_MeasurementList_r18_1[1]; +extern asn_per_constraints_t asn_PER_type_BT_MeasurementList_r18_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_MeasurementList_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-ProvideAssistanceData-r18.c b/asn.1/lpp_generated/BT-ProvideAssistanceData-r18.c new file mode 100644 index 00000000..8c743d07 --- /dev/null +++ b/asn.1/lpp_generated/BT-ProvideAssistanceData-r18.c @@ -0,0 +1,87 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-ProvideAssistanceData-r18.h" + +#include "BT-Error-r13.h" +asn_TYPE_member_t asn_MBR_BT_ProvideAssistanceData_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BT_ProvideAssistanceData_r18, bt_BeaconInfo_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BT_BeaconInfo_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-BeaconInfo-r18" + }, + { ATF_POINTER, 1, offsetof(struct BT_ProvideAssistanceData_r18, bt_Error_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_BT_Error_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-Error-r18" + }, +}; +static const int asn_MAP_BT_ProvideAssistanceData_r18_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_BT_ProvideAssistanceData_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_ProvideAssistanceData_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bt-BeaconInfo-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bt-Error-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_ProvideAssistanceData_r18_specs_1 = { + sizeof(struct BT_ProvideAssistanceData_r18), + offsetof(struct BT_ProvideAssistanceData_r18, _asn_ctx), + asn_MAP_BT_ProvideAssistanceData_r18_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_BT_ProvideAssistanceData_r18_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_ProvideAssistanceData_r18 = { + "BT-ProvideAssistanceData-r18", + "BT-ProvideAssistanceData-r18", + &asn_OP_SEQUENCE, + asn_DEF_BT_ProvideAssistanceData_r18_tags_1, + sizeof(asn_DEF_BT_ProvideAssistanceData_r18_tags_1) + /sizeof(asn_DEF_BT_ProvideAssistanceData_r18_tags_1[0]), /* 1 */ + asn_DEF_BT_ProvideAssistanceData_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_ProvideAssistanceData_r18_tags_1) + /sizeof(asn_DEF_BT_ProvideAssistanceData_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_ProvideAssistanceData_r18_1, + 2, /* Elements count */ + &asn_SPC_BT_ProvideAssistanceData_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-ProvideAssistanceData-r18.h b/asn.1/lpp_generated/BT-ProvideAssistanceData-r18.h new file mode 100644 index 00000000..cf3ae197 --- /dev/null +++ b/asn.1/lpp_generated/BT-ProvideAssistanceData-r18.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_ProvideAssistanceData_r18_H_ +#define _BT_ProvideAssistanceData_r18_H_ + + +#include + +/* Including external dependencies */ +#include "BT-BeaconInfo-r18.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct BT_Error_r13; + +/* BT-ProvideAssistanceData-r18 */ +typedef struct BT_ProvideAssistanceData_r18 { + BT_BeaconInfo_r18_t bt_BeaconInfo_r18; + struct BT_Error_r13 *bt_Error_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_ProvideAssistanceData_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BT_ProvideAssistanceData_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_BT_ProvideAssistanceData_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_ProvideAssistanceData_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_ProvideAssistanceData_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-ProvideCapabilities-r13.c b/asn.1/lpp_generated/BT-ProvideCapabilities-r13.c new file mode 100644 index 00000000..82e591c4 --- /dev/null +++ b/asn.1/lpp_generated/BT-ProvideCapabilities-r13.c @@ -0,0 +1,529 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-ProvideCapabilities-r13.h" + +#include "PositioningModes.h" +#include "ScheduledLocationTimeSupportPerMode-r17.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_bt_Modes_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bt_MeasSupported_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_idleStateForMeasurements_r14_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_bt_AoA_r18_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bt_Modes_r13_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bt_MeasSupported_r13_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_idleStateForMeasurements_r14_value2enum_11[] = { + { 0, 8, "required" } +}; +static const unsigned int asn_MAP_idleStateForMeasurements_r14_enum2value_11[] = { + 0 /* required(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_idleStateForMeasurements_r14_specs_11 = { + asn_MAP_idleStateForMeasurements_r14_value2enum_11, /* "tag" => N; sorted by tag */ + asn_MAP_idleStateForMeasurements_r14_enum2value_11, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_idleStateForMeasurements_r14_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_idleStateForMeasurements_r14_11 = { + "idleStateForMeasurements-r14", + "idleStateForMeasurements-r14", + &asn_OP_NativeEnumerated, + asn_DEF_idleStateForMeasurements_r14_tags_11, + sizeof(asn_DEF_idleStateForMeasurements_r14_tags_11) + /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_11[0]) - 1, /* 1 */ + asn_DEF_idleStateForMeasurements_r14_tags_11, /* Same as above */ + sizeof(asn_DEF_idleStateForMeasurements_r14_tags_11) + /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_idleStateForMeasurements_r14_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_idleStateForMeasurements_r14_specs_11 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_10[] = { + { ATF_POINTER, 2, offsetof(struct BT_ProvideCapabilities_r13__ext1, idleStateForMeasurements_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_idleStateForMeasurements_r14_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "idleStateForMeasurements-r14" + }, + { ATF_POINTER, 1, offsetof(struct BT_ProvideCapabilities_r13__ext1, periodicalReportingSupported_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningModes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "periodicalReportingSupported-r14" + }, +}; +static const int asn_MAP_ext1_oms_10[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_10[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* idleStateForMeasurements-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* periodicalReportingSupported-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_10 = { + sizeof(struct BT_ProvideCapabilities_r13__ext1), + offsetof(struct BT_ProvideCapabilities_r13__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_10, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_10, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_10 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_10, + sizeof(asn_DEF_ext1_tags_10) + /sizeof(asn_DEF_ext1_tags_10[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_10, /* Same as above */ + sizeof(asn_DEF_ext1_tags_10) + /sizeof(asn_DEF_ext1_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_10, + 2, /* Elements count */ + &asn_SPC_ext1_specs_10 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_14[] = { + { ATF_POINTER, 1, offsetof(struct BT_ProvideCapabilities_r13__ext2, scheduledLocationRequestSupported_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ScheduledLocationTimeSupportPerMode_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scheduledLocationRequestSupported-r17" + }, +}; +static const int asn_MAP_ext2_oms_14[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_14[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_14[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* scheduledLocationRequestSupported-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_14 = { + sizeof(struct BT_ProvideCapabilities_r13__ext2), + offsetof(struct BT_ProvideCapabilities_r13__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_14, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_14, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_14 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_14, + sizeof(asn_DEF_ext2_tags_14) + /sizeof(asn_DEF_ext2_tags_14[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_14, /* Same as above */ + sizeof(asn_DEF_ext2_tags_14) + /sizeof(asn_DEF_ext2_tags_14[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_14, + 1, /* Elements count */ + &asn_SPC_ext2_specs_14 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_bt_AoA_r18_value2enum_17[] = { + { 0, 12, "request-only" }, + { 1, 10, "suggestion" } +}; +static const unsigned int asn_MAP_bt_AoA_r18_enum2value_17[] = { + 0, /* request-only(0) */ + 1 /* suggestion(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_bt_AoA_r18_specs_17 = { + asn_MAP_bt_AoA_r18_value2enum_17, /* "tag" => N; sorted by tag */ + asn_MAP_bt_AoA_r18_enum2value_17, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_bt_AoA_r18_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_bt_AoA_r18_17 = { + "bt-AoA-r18", + "bt-AoA-r18", + &asn_OP_NativeEnumerated, + asn_DEF_bt_AoA_r18_tags_17, + sizeof(asn_DEF_bt_AoA_r18_tags_17) + /sizeof(asn_DEF_bt_AoA_r18_tags_17[0]) - 1, /* 1 */ + asn_DEF_bt_AoA_r18_tags_17, /* Same as above */ + sizeof(asn_DEF_bt_AoA_r18_tags_17) + /sizeof(asn_DEF_bt_AoA_r18_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_bt_AoA_r18_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_bt_AoA_r18_specs_17 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_16[] = { + { ATF_POINTER, 1, offsetof(struct BT_ProvideCapabilities_r13__ext3, bt_AoA_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_bt_AoA_r18_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-AoA-r18" + }, +}; +static const int asn_MAP_ext3_oms_16[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_16[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_16[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* bt-AoA-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_16 = { + sizeof(struct BT_ProvideCapabilities_r13__ext3), + offsetof(struct BT_ProvideCapabilities_r13__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_16, + 1, /* Count of tags in the map */ + asn_MAP_ext3_oms_16, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_16 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_16, + sizeof(asn_DEF_ext3_tags_16) + /sizeof(asn_DEF_ext3_tags_16[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_16, /* Same as above */ + sizeof(asn_DEF_ext3_tags_16) + /sizeof(asn_DEF_ext3_tags_16[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_16, + 1, /* Elements count */ + &asn_SPC_ext3_specs_16 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_BT_ProvideCapabilities_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BT_ProvideCapabilities_r13, bt_Modes_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bt_Modes_r13_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bt_Modes_r13_constraint_1 + }, + 0, 0, /* No default value */ + "bt-Modes-r13" + }, + { ATF_NOFLAGS, 0, offsetof(struct BT_ProvideCapabilities_r13, bt_MeasSupported_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bt_MeasSupported_r13_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bt_MeasSupported_r13_constraint_1 + }, + 0, 0, /* No default value */ + "bt-MeasSupported-r13" + }, + { ATF_POINTER, 3, offsetof(struct BT_ProvideCapabilities_r13, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 2, offsetof(struct BT_ProvideCapabilities_r13, ext2), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext2_14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 1, offsetof(struct BT_ProvideCapabilities_r13, ext3), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext3_16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, +}; +static const int asn_MAP_BT_ProvideCapabilities_r13_oms_1[] = { 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_BT_ProvideCapabilities_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_ProvideCapabilities_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bt-Modes-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bt-MeasSupported-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext3 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_ProvideCapabilities_r13_specs_1 = { + sizeof(struct BT_ProvideCapabilities_r13), + offsetof(struct BT_ProvideCapabilities_r13, _asn_ctx), + asn_MAP_BT_ProvideCapabilities_r13_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_BT_ProvideCapabilities_r13_oms_1, /* Optional members */ + 0, 3, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_ProvideCapabilities_r13 = { + "BT-ProvideCapabilities-r13", + "BT-ProvideCapabilities-r13", + &asn_OP_SEQUENCE, + asn_DEF_BT_ProvideCapabilities_r13_tags_1, + sizeof(asn_DEF_BT_ProvideCapabilities_r13_tags_1) + /sizeof(asn_DEF_BT_ProvideCapabilities_r13_tags_1[0]), /* 1 */ + asn_DEF_BT_ProvideCapabilities_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_ProvideCapabilities_r13_tags_1) + /sizeof(asn_DEF_BT_ProvideCapabilities_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_ProvideCapabilities_r13_1, + 5, /* Elements count */ + &asn_SPC_BT_ProvideCapabilities_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-ProvideCapabilities-r13.h b/asn.1/lpp_generated/BT-ProvideCapabilities-r13.h new file mode 100644 index 00000000..f7bb86c2 --- /dev/null +++ b/asn.1/lpp_generated/BT-ProvideCapabilities-r13.h @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_ProvideCapabilities_r13_H_ +#define _BT_ProvideCapabilities_r13_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum BT_ProvideCapabilities_r13__bt_Modes_r13 { + BT_ProvideCapabilities_r13__bt_Modes_r13_standalone = 0, + BT_ProvideCapabilities_r13__bt_Modes_r13_ue_assisted = 1, + BT_ProvideCapabilities_r13__bt_Modes_r13_ue_based_v1810 = 2 +} e_BT_ProvideCapabilities_r13__bt_Modes_r13; +typedef enum BT_ProvideCapabilities_r13__bt_MeasSupported_r13 { + BT_ProvideCapabilities_r13__bt_MeasSupported_r13_rssi_r13 = 0, + BT_ProvideCapabilities_r13__bt_MeasSupported_r13_aod_v1800 = 1 +} e_BT_ProvideCapabilities_r13__bt_MeasSupported_r13; +typedef enum BT_ProvideCapabilities_r13__ext1__idleStateForMeasurements_r14 { + BT_ProvideCapabilities_r13__ext1__idleStateForMeasurements_r14_required = 0 +} e_BT_ProvideCapabilities_r13__ext1__idleStateForMeasurements_r14; +typedef enum BT_ProvideCapabilities_r13__ext3__bt_AoA_r18 { + BT_ProvideCapabilities_r13__ext3__bt_AoA_r18_request_only = 0, + BT_ProvideCapabilities_r13__ext3__bt_AoA_r18_suggestion = 1 +} e_BT_ProvideCapabilities_r13__ext3__bt_AoA_r18; + +/* Forward declarations */ +struct PositioningModes; +struct ScheduledLocationTimeSupportPerMode_r17; + +/* BT-ProvideCapabilities-r13 */ +typedef struct BT_ProvideCapabilities_r13 { + BIT_STRING_t bt_Modes_r13; + BIT_STRING_t bt_MeasSupported_r13; + /* + * This type is extensible, + * possible extensions are below. + */ + struct BT_ProvideCapabilities_r13__ext1 { + long *idleStateForMeasurements_r14; /* OPTIONAL */ + struct PositioningModes *periodicalReportingSupported_r14; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct BT_ProvideCapabilities_r13__ext2 { + struct ScheduledLocationTimeSupportPerMode_r17 *scheduledLocationRequestSupported_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct BT_ProvideCapabilities_r13__ext3 { + long *bt_AoA_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_ProvideCapabilities_r13_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_idleStateForMeasurements_r14_11; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_bt_AoA_r18_17; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_BT_ProvideCapabilities_r13; +extern asn_SEQUENCE_specifics_t asn_SPC_BT_ProvideCapabilities_r13_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_ProvideCapabilities_r13_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_ProvideCapabilities_r13_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-ProvideLocationInformation-r13.c b/asn.1/lpp_generated/BT-ProvideLocationInformation-r13.c new file mode 100644 index 00000000..f241f84b --- /dev/null +++ b/asn.1/lpp_generated/BT-ProvideLocationInformation-r13.c @@ -0,0 +1,168 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-ProvideLocationInformation-r13.h" + +#include "BT-MeasurementInformation-r13.h" +#include "BT-Error-r13.h" +#include "BT-AoA-Config-r18.h" +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_POINTER, 1, offsetof(struct BT_ProvideLocationInformation_r13__ext1, bt_AoA_Config_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BT_AoA_Config_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-AoA-Config-r18" + }, +}; +static const int asn_MAP_ext1_oms_5[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* bt-AoA-Config-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct BT_ProvideLocationInformation_r13__ext1), + offsetof(struct BT_ProvideLocationInformation_r13__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_5, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 1, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_BT_ProvideLocationInformation_r13_1[] = { + { ATF_POINTER, 3, offsetof(struct BT_ProvideLocationInformation_r13, bt_MeasurementInformation_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BT_MeasurementInformation_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-MeasurementInformation-r13" + }, + { ATF_POINTER, 2, offsetof(struct BT_ProvideLocationInformation_r13, bt_Error_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_BT_Error_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-Error-r13" + }, + { ATF_POINTER, 1, offsetof(struct BT_ProvideLocationInformation_r13, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_BT_ProvideLocationInformation_r13_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_BT_ProvideLocationInformation_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_ProvideLocationInformation_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bt-MeasurementInformation-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bt-Error-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_ProvideLocationInformation_r13_specs_1 = { + sizeof(struct BT_ProvideLocationInformation_r13), + offsetof(struct BT_ProvideLocationInformation_r13, _asn_ctx), + asn_MAP_BT_ProvideLocationInformation_r13_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_BT_ProvideLocationInformation_r13_oms_1, /* Optional members */ + 2, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_ProvideLocationInformation_r13 = { + "BT-ProvideLocationInformation-r13", + "BT-ProvideLocationInformation-r13", + &asn_OP_SEQUENCE, + asn_DEF_BT_ProvideLocationInformation_r13_tags_1, + sizeof(asn_DEF_BT_ProvideLocationInformation_r13_tags_1) + /sizeof(asn_DEF_BT_ProvideLocationInformation_r13_tags_1[0]), /* 1 */ + asn_DEF_BT_ProvideLocationInformation_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_ProvideLocationInformation_r13_tags_1) + /sizeof(asn_DEF_BT_ProvideLocationInformation_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_ProvideLocationInformation_r13_1, + 3, /* Elements count */ + &asn_SPC_BT_ProvideLocationInformation_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-ProvideLocationInformation-r13.h b/asn.1/lpp_generated/BT-ProvideLocationInformation-r13.h new file mode 100644 index 00000000..88a73165 --- /dev/null +++ b/asn.1/lpp_generated/BT-ProvideLocationInformation-r13.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_ProvideLocationInformation_r13_H_ +#define _BT_ProvideLocationInformation_r13_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct BT_MeasurementInformation_r13; +struct BT_Error_r13; +struct BT_AoA_Config_r18; + +/* BT-ProvideLocationInformation-r13 */ +typedef struct BT_ProvideLocationInformation_r13 { + struct BT_MeasurementInformation_r13 *bt_MeasurementInformation_r13; /* OPTIONAL */ + struct BT_Error_r13 *bt_Error_r13; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct BT_ProvideLocationInformation_r13__ext1 { + struct BT_AoA_Config_r18 *bt_AoA_Config_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_ProvideLocationInformation_r13_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BT_ProvideLocationInformation_r13; +extern asn_SEQUENCE_specifics_t asn_SPC_BT_ProvideLocationInformation_r13_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_ProvideLocationInformation_r13_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_ProvideLocationInformation_r13_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-RequestAssistanceData-r18.c b/asn.1/lpp_generated/BT-RequestAssistanceData-r18.c new file mode 100644 index 00000000..09696c27 --- /dev/null +++ b/asn.1/lpp_generated/BT-RequestAssistanceData-r18.c @@ -0,0 +1,104 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-RequestAssistanceData-r18.h" + +static int +memb_requestedAD_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_requestedAD_r18_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BT_RequestAssistanceData_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BT_RequestAssistanceData_r18, requestedAD_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_requestedAD_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_requestedAD_r18_constraint_1 + }, + 0, 0, /* No default value */ + "requestedAD-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_BT_RequestAssistanceData_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_RequestAssistanceData_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* requestedAD-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_RequestAssistanceData_r18_specs_1 = { + sizeof(struct BT_RequestAssistanceData_r18), + offsetof(struct BT_RequestAssistanceData_r18, _asn_ctx), + asn_MAP_BT_RequestAssistanceData_r18_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_RequestAssistanceData_r18 = { + "BT-RequestAssistanceData-r18", + "BT-RequestAssistanceData-r18", + &asn_OP_SEQUENCE, + asn_DEF_BT_RequestAssistanceData_r18_tags_1, + sizeof(asn_DEF_BT_RequestAssistanceData_r18_tags_1) + /sizeof(asn_DEF_BT_RequestAssistanceData_r18_tags_1[0]), /* 1 */ + asn_DEF_BT_RequestAssistanceData_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_RequestAssistanceData_r18_tags_1) + /sizeof(asn_DEF_BT_RequestAssistanceData_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_RequestAssistanceData_r18_1, + 1, /* Elements count */ + &asn_SPC_BT_RequestAssistanceData_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-RequestAssistanceData-r18.h b/asn.1/lpp_generated/BT-RequestAssistanceData-r18.h new file mode 100644 index 00000000..1451f2c5 --- /dev/null +++ b/asn.1/lpp_generated/BT-RequestAssistanceData-r18.h @@ -0,0 +1,51 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_RequestAssistanceData_r18_H_ +#define _BT_RequestAssistanceData_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum BT_RequestAssistanceData_r18__requestedAD_r18 { + BT_RequestAssistanceData_r18__requestedAD_r18_beacon_location = 0, + BT_RequestAssistanceData_r18__requestedAD_r18_beacon_antConfig = 1, + BT_RequestAssistanceData_r18__requestedAD_r18_beacon_transmConfig = 2 +} e_BT_RequestAssistanceData_r18__requestedAD_r18; + +/* BT-RequestAssistanceData-r18 */ +typedef struct BT_RequestAssistanceData_r18 { + BIT_STRING_t requestedAD_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_RequestAssistanceData_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BT_RequestAssistanceData_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_BT_RequestAssistanceData_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_RequestAssistanceData_r18_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_RequestAssistanceData_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-RequestCapabilities-r13.c b/asn.1/lpp_generated/BT-RequestCapabilities-r13.c new file mode 100644 index 00000000..817f030c --- /dev/null +++ b/asn.1/lpp_generated/BT-RequestCapabilities-r13.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-RequestCapabilities-r13.h" + +static const ber_tlv_tag_t asn_DEF_BT_RequestCapabilities_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_RequestCapabilities_r13_specs_1 = { + sizeof(struct BT_RequestCapabilities_r13), + offsetof(struct BT_RequestCapabilities_r13, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_RequestCapabilities_r13 = { + "BT-RequestCapabilities-r13", + "BT-RequestCapabilities-r13", + &asn_OP_SEQUENCE, + asn_DEF_BT_RequestCapabilities_r13_tags_1, + sizeof(asn_DEF_BT_RequestCapabilities_r13_tags_1) + /sizeof(asn_DEF_BT_RequestCapabilities_r13_tags_1[0]), /* 1 */ + asn_DEF_BT_RequestCapabilities_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_RequestCapabilities_r13_tags_1) + /sizeof(asn_DEF_BT_RequestCapabilities_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_BT_RequestCapabilities_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/BT-RequestCapabilities-r13.h b/asn.1/lpp_generated/BT-RequestCapabilities-r13.h similarity index 77% rename from asn.1/generated/BT-RequestCapabilities-r13.h rename to asn.1/lpp_generated/BT-RequestCapabilities-r13.h index e5b4db20..3911517b 100644 --- a/asn.1/generated/BT-RequestCapabilities-r13.h +++ b/asn.1/lpp_generated/BT-RequestCapabilities-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _BT_RequestCapabilities_r13_H_ diff --git a/asn.1/lpp_generated/BT-RequestLocationInformation-r13.c b/asn.1/lpp_generated/BT-RequestLocationInformation-r13.c new file mode 100644 index 00000000..fc2079ff --- /dev/null +++ b/asn.1/lpp_generated/BT-RequestLocationInformation-r13.c @@ -0,0 +1,242 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-RequestLocationInformation-r13.h" + +#include "BT-SuggestedAoA-Config-r18.h" +static int +memb_bt_requestedAoA_Config_r18_constraint_6(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_requestedMeasurements_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bt_requestedAoA_Config_r18_constr_7 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_requestedMeasurements_r13_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_6[] = { + { ATF_POINTER, 2, offsetof(struct BT_RequestLocationInformation_r13__ext1, bt_requestedAoA_Config_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bt_requestedAoA_Config_r18_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bt_requestedAoA_Config_r18_constraint_6 + }, + 0, 0, /* No default value */ + "bt-requestedAoA-Config-r18" + }, + { ATF_POINTER, 1, offsetof(struct BT_RequestLocationInformation_r13__ext1, bt_suggestedAoA_Config_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BT_SuggestedAoA_Config_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-suggestedAoA-Config-r18" + }, +}; +static const int asn_MAP_ext1_oms_6[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bt-requestedAoA-Config-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bt-suggestedAoA-Config-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = { + sizeof(struct BT_RequestLocationInformation_r13__ext1), + offsetof(struct BT_RequestLocationInformation_r13__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_6, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_6, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_6 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_6, + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_6, /* Same as above */ + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_6, + 2, /* Elements count */ + &asn_SPC_ext1_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_BT_RequestLocationInformation_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BT_RequestLocationInformation_r13, requestedMeasurements_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_requestedMeasurements_r13_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_requestedMeasurements_r13_constraint_1 + }, + 0, 0, /* No default value */ + "requestedMeasurements-r13" + }, + { ATF_POINTER, 1, offsetof(struct BT_RequestLocationInformation_r13, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_BT_RequestLocationInformation_r13_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_BT_RequestLocationInformation_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_RequestLocationInformation_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* requestedMeasurements-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_RequestLocationInformation_r13_specs_1 = { + sizeof(struct BT_RequestLocationInformation_r13), + offsetof(struct BT_RequestLocationInformation_r13, _asn_ctx), + asn_MAP_BT_RequestLocationInformation_r13_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_BT_RequestLocationInformation_r13_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_RequestLocationInformation_r13 = { + "BT-RequestLocationInformation-r13", + "BT-RequestLocationInformation-r13", + &asn_OP_SEQUENCE, + asn_DEF_BT_RequestLocationInformation_r13_tags_1, + sizeof(asn_DEF_BT_RequestLocationInformation_r13_tags_1) + /sizeof(asn_DEF_BT_RequestLocationInformation_r13_tags_1[0]), /* 1 */ + asn_DEF_BT_RequestLocationInformation_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_RequestLocationInformation_r13_tags_1) + /sizeof(asn_DEF_BT_RequestLocationInformation_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_RequestLocationInformation_r13_1, + 2, /* Elements count */ + &asn_SPC_BT_RequestLocationInformation_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-RequestLocationInformation-r13.h b/asn.1/lpp_generated/BT-RequestLocationInformation-r13.h new file mode 100644 index 00000000..1a1b7c18 --- /dev/null +++ b/asn.1/lpp_generated/BT-RequestLocationInformation-r13.h @@ -0,0 +1,64 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_RequestLocationInformation_r13_H_ +#define _BT_RequestLocationInformation_r13_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum BT_RequestLocationInformation_r13__requestedMeasurements_r13 { + BT_RequestLocationInformation_r13__requestedMeasurements_r13_rssi = 0, + BT_RequestLocationInformation_r13__requestedMeasurements_r13_aod_v1800 = 1 +} e_BT_RequestLocationInformation_r13__requestedMeasurements_r13; +typedef enum BT_RequestLocationInformation_r13__ext1__bt_requestedAoA_Config_r18 { + BT_RequestLocationInformation_r13__ext1__bt_requestedAoA_Config_r18_aoa_advConfig = 0, + BT_RequestLocationInformation_r13__ext1__bt_requestedAoA_Config_r18_aoa_cteConfig = 1 +} e_BT_RequestLocationInformation_r13__ext1__bt_requestedAoA_Config_r18; + +/* Forward declarations */ +struct BT_SuggestedAoA_Config_r18; + +/* BT-RequestLocationInformation-r13 */ +typedef struct BT_RequestLocationInformation_r13 { + BIT_STRING_t requestedMeasurements_r13; + /* + * This type is extensible, + * possible extensions are below. + */ + struct BT_RequestLocationInformation_r13__ext1 { + BIT_STRING_t *bt_requestedAoA_Config_r18; /* OPTIONAL */ + struct BT_SuggestedAoA_Config_r18 *bt_suggestedAoA_Config_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_RequestLocationInformation_r13_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BT_RequestLocationInformation_r13; +extern asn_SEQUENCE_specifics_t asn_SPC_BT_RequestLocationInformation_r13_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_RequestLocationInformation_r13_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_RequestLocationInformation_r13_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-SuggestedAoA-Config-r18.c b/asn.1/lpp_generated/BT-SuggestedAoA-Config-r18.c new file mode 100644 index 00000000..94f01be7 --- /dev/null +++ b/asn.1/lpp_generated/BT-SuggestedAoA-Config-r18.c @@ -0,0 +1,446 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-SuggestedAoA-Config-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_primaryAdvInterval_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 32L && value <= 16777L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_secondAdvInterval_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 6L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_tx_Power_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -127L && value <= 20L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cte_Length_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 2L && value <= 20L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cte_Count_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 16L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cte_Status_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_tx_PHY_M2_r18_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_primaryAdvInterval_r18_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, 32, 16777 } /* (32..16777) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_secondAdvInterval_r18_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 6, 65535 } /* (6..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tx_Power_r18_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -127, 20 } /* (-127..20) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cte_Length_r18_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 2, 20 } /* (2..20) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cte_Count_r18_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (1..16) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cte_Status_r18_value2enum_2[] = { + { 0, 7, "enabled" }, + { 1, 8, "disabled" } +}; +static const unsigned int asn_MAP_cte_Status_r18_enum2value_2[] = { + 1, /* disabled(1) */ + 0 /* enabled(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cte_Status_r18_specs_2 = { + asn_MAP_cte_Status_r18_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cte_Status_r18_enum2value_2, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cte_Status_r18_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cte_Status_r18_2 = { + "cte-Status-r18", + "cte-Status-r18", + &asn_OP_NativeEnumerated, + asn_DEF_cte_Status_r18_tags_2, + sizeof(asn_DEF_cte_Status_r18_tags_2) + /sizeof(asn_DEF_cte_Status_r18_tags_2[0]) - 1, /* 1 */ + asn_DEF_cte_Status_r18_tags_2, /* Same as above */ + sizeof(asn_DEF_cte_Status_r18_tags_2) + /sizeof(asn_DEF_cte_Status_r18_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cte_Status_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cte_Status_r18_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_tx_PHY_M2_r18_value2enum_10[] = { + { 0, 2, "m2" } +}; +static const unsigned int asn_MAP_tx_PHY_M2_r18_enum2value_10[] = { + 0 /* m2(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_tx_PHY_M2_r18_specs_10 = { + asn_MAP_tx_PHY_M2_r18_value2enum_10, /* "tag" => N; sorted by tag */ + asn_MAP_tx_PHY_M2_r18_enum2value_10, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_tx_PHY_M2_r18_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_tx_PHY_M2_r18_10 = { + "tx-PHY-M2-r18", + "tx-PHY-M2-r18", + &asn_OP_NativeEnumerated, + asn_DEF_tx_PHY_M2_r18_tags_10, + sizeof(asn_DEF_tx_PHY_M2_r18_tags_10) + /sizeof(asn_DEF_tx_PHY_M2_r18_tags_10[0]) - 1, /* 1 */ + asn_DEF_tx_PHY_M2_r18_tags_10, /* Same as above */ + sizeof(asn_DEF_tx_PHY_M2_r18_tags_10) + /sizeof(asn_DEF_tx_PHY_M2_r18_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_tx_PHY_M2_r18_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_tx_PHY_M2_r18_specs_10 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_BT_SuggestedAoA_Config_r18_1[] = { + { ATF_POINTER, 7, offsetof(struct BT_SuggestedAoA_Config_r18, cte_Status_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cte_Status_r18_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cte-Status-r18" + }, + { ATF_POINTER, 6, offsetof(struct BT_SuggestedAoA_Config_r18, primaryAdvInterval_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_primaryAdvInterval_r18_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_primaryAdvInterval_r18_constraint_1 + }, + 0, 0, /* No default value */ + "primaryAdvInterval-r18" + }, + { ATF_POINTER, 5, offsetof(struct BT_SuggestedAoA_Config_r18, secondAdvInterval_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_secondAdvInterval_r18_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_secondAdvInterval_r18_constraint_1 + }, + 0, 0, /* No default value */ + "secondAdvInterval-r18" + }, + { ATF_POINTER, 4, offsetof(struct BT_SuggestedAoA_Config_r18, tx_Power_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tx_Power_r18_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tx_Power_r18_constraint_1 + }, + 0, 0, /* No default value */ + "tx-Power-r18" + }, + { ATF_POINTER, 3, offsetof(struct BT_SuggestedAoA_Config_r18, cte_Length_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cte_Length_r18_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cte_Length_r18_constraint_1 + }, + 0, 0, /* No default value */ + "cte-Length-r18" + }, + { ATF_POINTER, 2, offsetof(struct BT_SuggestedAoA_Config_r18, cte_Count_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cte_Count_r18_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cte_Count_r18_constraint_1 + }, + 0, 0, /* No default value */ + "cte-Count-r18" + }, + { ATF_POINTER, 1, offsetof(struct BT_SuggestedAoA_Config_r18, tx_PHY_M2_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_tx_PHY_M2_r18_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tx-PHY-M2-r18" + }, +}; +static const int asn_MAP_BT_SuggestedAoA_Config_r18_oms_1[] = { 0, 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_BT_SuggestedAoA_Config_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_SuggestedAoA_Config_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cte-Status-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* primaryAdvInterval-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* secondAdvInterval-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* tx-Power-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* cte-Length-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* cte-Count-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* tx-PHY-M2-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_SuggestedAoA_Config_r18_specs_1 = { + sizeof(struct BT_SuggestedAoA_Config_r18), + offsetof(struct BT_SuggestedAoA_Config_r18, _asn_ctx), + asn_MAP_BT_SuggestedAoA_Config_r18_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_BT_SuggestedAoA_Config_r18_oms_1, /* Optional members */ + 7, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_SuggestedAoA_Config_r18 = { + "BT-SuggestedAoA-Config-r18", + "BT-SuggestedAoA-Config-r18", + &asn_OP_SEQUENCE, + asn_DEF_BT_SuggestedAoA_Config_r18_tags_1, + sizeof(asn_DEF_BT_SuggestedAoA_Config_r18_tags_1) + /sizeof(asn_DEF_BT_SuggestedAoA_Config_r18_tags_1[0]), /* 1 */ + asn_DEF_BT_SuggestedAoA_Config_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_SuggestedAoA_Config_r18_tags_1) + /sizeof(asn_DEF_BT_SuggestedAoA_Config_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_SuggestedAoA_Config_r18_1, + 7, /* Elements count */ + &asn_SPC_BT_SuggestedAoA_Config_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-SuggestedAoA-Config-r18.h b/asn.1/lpp_generated/BT-SuggestedAoA-Config-r18.h new file mode 100644 index 00000000..72e8777d --- /dev/null +++ b/asn.1/lpp_generated/BT-SuggestedAoA-Config-r18.h @@ -0,0 +1,62 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_SuggestedAoA_Config_r18_H_ +#define _BT_SuggestedAoA_Config_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum BT_SuggestedAoA_Config_r18__cte_Status_r18 { + BT_SuggestedAoA_Config_r18__cte_Status_r18_enabled = 0, + BT_SuggestedAoA_Config_r18__cte_Status_r18_disabled = 1 +} e_BT_SuggestedAoA_Config_r18__cte_Status_r18; +typedef enum BT_SuggestedAoA_Config_r18__tx_PHY_M2_r18 { + BT_SuggestedAoA_Config_r18__tx_PHY_M2_r18_m2 = 0 +} e_BT_SuggestedAoA_Config_r18__tx_PHY_M2_r18; + +/* BT-SuggestedAoA-Config-r18 */ +typedef struct BT_SuggestedAoA_Config_r18 { + long *cte_Status_r18; /* OPTIONAL */ + long *primaryAdvInterval_r18; /* OPTIONAL */ + long *secondAdvInterval_r18; /* OPTIONAL */ + long *tx_Power_r18; /* OPTIONAL */ + long *cte_Length_r18; /* OPTIONAL */ + long *cte_Count_r18; /* OPTIONAL */ + long *tx_PHY_M2_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_SuggestedAoA_Config_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_cte_Status_r18_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_tx_PHY_M2_r18_10; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_BT_SuggestedAoA_Config_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_BT_SuggestedAoA_Config_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_SuggestedAoA_Config_r18_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_SuggestedAoA_Config_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-TargetDeviceErrorCauses-r13.c b/asn.1/lpp_generated/BT-TargetDeviceErrorCauses-r13.c new file mode 100644 index 00000000..fc311762 --- /dev/null +++ b/asn.1/lpp_generated/BT-TargetDeviceErrorCauses-r13.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-TargetDeviceErrorCauses-r13.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_r13_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_r13_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 33, "requestedMeasurementsNotAvailable" }, + { 2, 35, "notAllrequestedMeasurementsPossible" }, + { 3, 27, "assistanceDataMissing-v1810" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_r13_enum2value_2[] = { + 3, /* assistanceDataMissing-v1810(3) */ + 2, /* notAllrequestedMeasurementsPossible(2) */ + 1, /* requestedMeasurementsNotAvailable(1) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_r13_specs_2 = { + asn_MAP_cause_r13_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_r13_enum2value_2, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 4, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_r13_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_r13_2 = { + "cause-r13", + "cause-r13", + &asn_OP_NativeEnumerated, + asn_DEF_cause_r13_tags_2, + sizeof(asn_DEF_cause_r13_tags_2) + /sizeof(asn_DEF_cause_r13_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_r13_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_r13_tags_2) + /sizeof(asn_DEF_cause_r13_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_r13_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_r13_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_BT_TargetDeviceErrorCauses_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BT_TargetDeviceErrorCauses_r13, cause_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_r13_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause-r13" + }, + { ATF_POINTER, 1, offsetof(struct BT_TargetDeviceErrorCauses_r13, bt_Beacon_rssiMeasurementNotPossible_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-Beacon-rssiMeasurementNotPossible-r13" + }, +}; +static const int asn_MAP_BT_TargetDeviceErrorCauses_r13_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_BT_TargetDeviceErrorCauses_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_TargetDeviceErrorCauses_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bt-Beacon-rssiMeasurementNotPossible-r13 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_TargetDeviceErrorCauses_r13_specs_1 = { + sizeof(struct BT_TargetDeviceErrorCauses_r13), + offsetof(struct BT_TargetDeviceErrorCauses_r13, _asn_ctx), + asn_MAP_BT_TargetDeviceErrorCauses_r13_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_BT_TargetDeviceErrorCauses_r13_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_TargetDeviceErrorCauses_r13 = { + "BT-TargetDeviceErrorCauses-r13", + "BT-TargetDeviceErrorCauses-r13", + &asn_OP_SEQUENCE, + asn_DEF_BT_TargetDeviceErrorCauses_r13_tags_1, + sizeof(asn_DEF_BT_TargetDeviceErrorCauses_r13_tags_1) + /sizeof(asn_DEF_BT_TargetDeviceErrorCauses_r13_tags_1[0]), /* 1 */ + asn_DEF_BT_TargetDeviceErrorCauses_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_TargetDeviceErrorCauses_r13_tags_1) + /sizeof(asn_DEF_BT_TargetDeviceErrorCauses_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_TargetDeviceErrorCauses_r13_1, + 2, /* Elements count */ + &asn_SPC_BT_TargetDeviceErrorCauses_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/BT-TargetDeviceErrorCauses-r13.h b/asn.1/lpp_generated/BT-TargetDeviceErrorCauses-r13.h similarity index 78% rename from asn.1/generated/BT-TargetDeviceErrorCauses-r13.h rename to asn.1/lpp_generated/BT-TargetDeviceErrorCauses-r13.h index 888d13d1..df7d8516 100644 --- a/asn.1/generated/BT-TargetDeviceErrorCauses-r13.h +++ b/asn.1/lpp_generated/BT-TargetDeviceErrorCauses-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _BT_TargetDeviceErrorCauses_r13_H_ @@ -24,16 +24,17 @@ extern "C" { typedef enum BT_TargetDeviceErrorCauses_r13__cause_r13 { BT_TargetDeviceErrorCauses_r13__cause_r13_undefined = 0, BT_TargetDeviceErrorCauses_r13__cause_r13_requestedMeasurementsNotAvailable = 1, - BT_TargetDeviceErrorCauses_r13__cause_r13_notAllrequestedMeasurementsPossible = 2 + BT_TargetDeviceErrorCauses_r13__cause_r13_notAllrequestedMeasurementsPossible = 2, /* * Enumeration is extensible */ + BT_TargetDeviceErrorCauses_r13__cause_r13_assistanceDataMissing_v1810 = 3 } e_BT_TargetDeviceErrorCauses_r13__cause_r13; /* BT-TargetDeviceErrorCauses-r13 */ typedef struct BT_TargetDeviceErrorCauses_r13 { long cause_r13; - NULL_t *bt_Beacon_rssiMeasurementNotPossible_r13 /* OPTIONAL */; + NULL_t *bt_Beacon_rssiMeasurementNotPossible_r13; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/BT-ULA-GenericAntElement-r18.c b/asn.1/lpp_generated/BT-ULA-GenericAntElement-r18.c new file mode 100644 index 00000000..4c2acc77 --- /dev/null +++ b/asn.1/lpp_generated/BT-ULA-GenericAntElement-r18.c @@ -0,0 +1,200 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-ULA-GenericAntElement-r18.h" + +static int +memb_deltaY_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -135L && value <= 135L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_deltaX_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -135L && value <= 135L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_deltaZ_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -135L && value <= 135L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_deltaY_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, -135, 135 } /* (-135..135) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_deltaX_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, -135, 135 } /* (-135..135) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_deltaZ_r18_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, -135, 135 } /* (-135..135) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BT_ULA_GenericAntElement_r18_1[] = { + { ATF_POINTER, 3, offsetof(struct BT_ULA_GenericAntElement_r18, deltaY_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_deltaY_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_deltaY_r18_constraint_1 + }, + 0, 0, /* No default value */ + "deltaY-r18" + }, + { ATF_POINTER, 2, offsetof(struct BT_ULA_GenericAntElement_r18, deltaX_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_deltaX_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_deltaX_r18_constraint_1 + }, + 0, 0, /* No default value */ + "deltaX-r18" + }, + { ATF_POINTER, 1, offsetof(struct BT_ULA_GenericAntElement_r18, deltaZ_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_deltaZ_r18_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_deltaZ_r18_constraint_1 + }, + 0, 0, /* No default value */ + "deltaZ-r18" + }, +}; +static const int asn_MAP_BT_ULA_GenericAntElement_r18_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_BT_ULA_GenericAntElement_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_ULA_GenericAntElement_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* deltaY-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* deltaX-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* deltaZ-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_ULA_GenericAntElement_r18_specs_1 = { + sizeof(struct BT_ULA_GenericAntElement_r18), + offsetof(struct BT_ULA_GenericAntElement_r18, _asn_ctx), + asn_MAP_BT_ULA_GenericAntElement_r18_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_BT_ULA_GenericAntElement_r18_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_ULA_GenericAntElement_r18 = { + "BT-ULA-GenericAntElement-r18", + "BT-ULA-GenericAntElement-r18", + &asn_OP_SEQUENCE, + asn_DEF_BT_ULA_GenericAntElement_r18_tags_1, + sizeof(asn_DEF_BT_ULA_GenericAntElement_r18_tags_1) + /sizeof(asn_DEF_BT_ULA_GenericAntElement_r18_tags_1[0]), /* 1 */ + asn_DEF_BT_ULA_GenericAntElement_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_ULA_GenericAntElement_r18_tags_1) + /sizeof(asn_DEF_BT_ULA_GenericAntElement_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_ULA_GenericAntElement_r18_1, + 3, /* Elements count */ + &asn_SPC_BT_ULA_GenericAntElement_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-ULA-GenericAntElement-r18.h b/asn.1/lpp_generated/BT-ULA-GenericAntElement-r18.h new file mode 100644 index 00000000..52331a54 --- /dev/null +++ b/asn.1/lpp_generated/BT-ULA-GenericAntElement-r18.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_ULA_GenericAntElement_r18_H_ +#define _BT_ULA_GenericAntElement_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* BT-ULA-GenericAntElement-r18 */ +typedef struct BT_ULA_GenericAntElement_r18 { + long *deltaY_r18; /* OPTIONAL */ + long *deltaX_r18; /* OPTIONAL */ + long *deltaZ_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_ULA_GenericAntElement_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BT_ULA_GenericAntElement_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_BT_ULA_GenericAntElement_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_ULA_GenericAntElement_r18_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_ULA_GenericAntElement_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-UniformCircularArray-r18.c b/asn.1/lpp_generated/BT-UniformCircularArray-r18.c new file mode 100644 index 00000000..2054a33a --- /dev/null +++ b/asn.1/lpp_generated/BT-UniformCircularArray-r18.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-UniformCircularArray-r18.h" + +static int +memb_bt_NoElements_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 2L && value <= 74L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bt_InterElementDist_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 30L && value <= 130L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bt_NoElements_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 2, 74 } /* (2..74) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bt_InterElementDist_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 30, 130 } /* (30..130) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BT_UniformCircularArray_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BT_UniformCircularArray_r18, bt_NoElements_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bt_NoElements_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bt_NoElements_r18_constraint_1 + }, + 0, 0, /* No default value */ + "bt-NoElements-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct BT_UniformCircularArray_r18, bt_InterElementDist_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bt_InterElementDist_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bt_InterElementDist_r18_constraint_1 + }, + 0, 0, /* No default value */ + "bt-InterElementDist-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_BT_UniformCircularArray_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_UniformCircularArray_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bt-NoElements-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bt-InterElementDist-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_UniformCircularArray_r18_specs_1 = { + sizeof(struct BT_UniformCircularArray_r18), + offsetof(struct BT_UniformCircularArray_r18, _asn_ctx), + asn_MAP_BT_UniformCircularArray_r18_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_UniformCircularArray_r18 = { + "BT-UniformCircularArray-r18", + "BT-UniformCircularArray-r18", + &asn_OP_SEQUENCE, + asn_DEF_BT_UniformCircularArray_r18_tags_1, + sizeof(asn_DEF_BT_UniformCircularArray_r18_tags_1) + /sizeof(asn_DEF_BT_UniformCircularArray_r18_tags_1[0]), /* 1 */ + asn_DEF_BT_UniformCircularArray_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_UniformCircularArray_r18_tags_1) + /sizeof(asn_DEF_BT_UniformCircularArray_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_UniformCircularArray_r18_1, + 2, /* Elements count */ + &asn_SPC_BT_UniformCircularArray_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-UniformCircularArray-r18.h b/asn.1/lpp_generated/BT-UniformCircularArray-r18.h new file mode 100644 index 00000000..72cd07b2 --- /dev/null +++ b/asn.1/lpp_generated/BT-UniformCircularArray-r18.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_UniformCircularArray_r18_H_ +#define _BT_UniformCircularArray_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* BT-UniformCircularArray-r18 */ +typedef struct BT_UniformCircularArray_r18 { + long bt_NoElements_r18; + long bt_InterElementDist_r18; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_UniformCircularArray_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BT_UniformCircularArray_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_BT_UniformCircularArray_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_UniformCircularArray_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_UniformCircularArray_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-UniformLinearArray-r18.c b/asn.1/lpp_generated/BT-UniformLinearArray-r18.c new file mode 100644 index 00000000..e86efb4d --- /dev/null +++ b/asn.1/lpp_generated/BT-UniformLinearArray-r18.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-UniformLinearArray-r18.h" + +static int +memb_bt_NoElements_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 2L && value <= 74L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bt_InterElementDist_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 30L && value <= 130L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bt_NoElements_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 2, 74 } /* (2..74) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bt_InterElementDist_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 30, 130 } /* (30..130) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BT_UniformLinearArray_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BT_UniformLinearArray_r18, bt_NoElements_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bt_NoElements_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bt_NoElements_r18_constraint_1 + }, + 0, 0, /* No default value */ + "bt-NoElements-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct BT_UniformLinearArray_r18, bt_InterElementDist_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bt_InterElementDist_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bt_InterElementDist_r18_constraint_1 + }, + 0, 0, /* No default value */ + "bt-InterElementDist-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_BT_UniformLinearArray_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_UniformLinearArray_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bt-NoElements-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bt-InterElementDist-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_UniformLinearArray_r18_specs_1 = { + sizeof(struct BT_UniformLinearArray_r18), + offsetof(struct BT_UniformLinearArray_r18, _asn_ctx), + asn_MAP_BT_UniformLinearArray_r18_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_UniformLinearArray_r18 = { + "BT-UniformLinearArray-r18", + "BT-UniformLinearArray-r18", + &asn_OP_SEQUENCE, + asn_DEF_BT_UniformLinearArray_r18_tags_1, + sizeof(asn_DEF_BT_UniformLinearArray_r18_tags_1) + /sizeof(asn_DEF_BT_UniformLinearArray_r18_tags_1[0]), /* 1 */ + asn_DEF_BT_UniformLinearArray_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_UniformLinearArray_r18_tags_1) + /sizeof(asn_DEF_BT_UniformLinearArray_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_UniformLinearArray_r18_1, + 2, /* Elements count */ + &asn_SPC_BT_UniformLinearArray_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-UniformLinearArray-r18.h b/asn.1/lpp_generated/BT-UniformLinearArray-r18.h new file mode 100644 index 00000000..0dd520f2 --- /dev/null +++ b/asn.1/lpp_generated/BT-UniformLinearArray-r18.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_UniformLinearArray_r18_H_ +#define _BT_UniformLinearArray_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* BT-UniformLinearArray-r18 */ +typedef struct BT_UniformLinearArray_r18 { + long bt_NoElements_r18; + long bt_InterElementDist_r18; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_UniformLinearArray_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BT_UniformLinearArray_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_BT_UniformLinearArray_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_UniformLinearArray_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_UniformLinearArray_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/BT-UniformRectangularArray-r18.c b/asn.1/lpp_generated/BT-UniformRectangularArray-r18.c new file mode 100644 index 00000000..14beebf5 --- /dev/null +++ b/asn.1/lpp_generated/BT-UniformRectangularArray-r18.c @@ -0,0 +1,248 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BT-UniformRectangularArray-r18.h" + +static int +memb_bt_NoElementsY_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 74L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bt_NoElementsZ_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 74L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bt_InterElementDistY_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 30L && value <= 135L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bt_InterElementDistZ_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 30L && value <= 135L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bt_NoElementsY_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 74 } /* (1..74) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bt_NoElementsZ_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 74 } /* (1..74) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bt_InterElementDistY_r18_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 30, 135 } /* (30..135) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bt_InterElementDistZ_r18_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 30, 135 } /* (30..135) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BT_UniformRectangularArray_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BT_UniformRectangularArray_r18, bt_NoElementsY_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bt_NoElementsY_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bt_NoElementsY_r18_constraint_1 + }, + 0, 0, /* No default value */ + "bt-NoElementsY-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct BT_UniformRectangularArray_r18, bt_NoElementsZ_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bt_NoElementsZ_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bt_NoElementsZ_r18_constraint_1 + }, + 0, 0, /* No default value */ + "bt-NoElementsZ-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct BT_UniformRectangularArray_r18, bt_InterElementDistY_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bt_InterElementDistY_r18_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bt_InterElementDistY_r18_constraint_1 + }, + 0, 0, /* No default value */ + "bt-InterElementDistY-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct BT_UniformRectangularArray_r18, bt_InterElementDistZ_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bt_InterElementDistZ_r18_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bt_InterElementDistZ_r18_constraint_1 + }, + 0, 0, /* No default value */ + "bt-InterElementDistZ-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_BT_UniformRectangularArray_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BT_UniformRectangularArray_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bt-NoElementsY-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bt-NoElementsZ-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bt-InterElementDistY-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* bt-InterElementDistZ-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BT_UniformRectangularArray_r18_specs_1 = { + sizeof(struct BT_UniformRectangularArray_r18), + offsetof(struct BT_UniformRectangularArray_r18, _asn_ctx), + asn_MAP_BT_UniformRectangularArray_r18_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BT_UniformRectangularArray_r18 = { + "BT-UniformRectangularArray-r18", + "BT-UniformRectangularArray-r18", + &asn_OP_SEQUENCE, + asn_DEF_BT_UniformRectangularArray_r18_tags_1, + sizeof(asn_DEF_BT_UniformRectangularArray_r18_tags_1) + /sizeof(asn_DEF_BT_UniformRectangularArray_r18_tags_1[0]), /* 1 */ + asn_DEF_BT_UniformRectangularArray_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_BT_UniformRectangularArray_r18_tags_1) + /sizeof(asn_DEF_BT_UniformRectangularArray_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BT_UniformRectangularArray_r18_1, + 4, /* Elements count */ + &asn_SPC_BT_UniformRectangularArray_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BT-UniformRectangularArray-r18.h b/asn.1/lpp_generated/BT-UniformRectangularArray-r18.h new file mode 100644 index 00000000..4ca74614 --- /dev/null +++ b/asn.1/lpp_generated/BT-UniformRectangularArray-r18.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BT_UniformRectangularArray_r18_H_ +#define _BT_UniformRectangularArray_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* BT-UniformRectangularArray-r18 */ +typedef struct BT_UniformRectangularArray_r18 { + long bt_NoElementsY_r18; + long bt_NoElementsZ_r18; + long bt_InterElementDistY_r18; + long bt_InterElementDistZ_r18; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BT_UniformRectangularArray_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BT_UniformRectangularArray_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_BT_UniformRectangularArray_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_BT_UniformRectangularArray_r18_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BT_UniformRectangularArray_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/BadSignalElement.c b/asn.1/lpp_generated/BadSignalElement.c new file mode 100644 index 00000000..8ce47251 --- /dev/null +++ b/asn.1/lpp_generated/BadSignalElement.c @@ -0,0 +1,87 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BadSignalElement.h" + +#include "GNSS-SignalIDs.h" +asn_TYPE_member_t asn_MBR_BadSignalElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BadSignalElement, badSVID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "badSVID" + }, + { ATF_POINTER, 1, offsetof(struct BadSignalElement, badSignalID), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalIDs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "badSignalID" + }, +}; +static const int asn_MAP_BadSignalElement_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_BadSignalElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BadSignalElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* badSVID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* badSignalID */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BadSignalElement_specs_1 = { + sizeof(struct BadSignalElement), + offsetof(struct BadSignalElement, _asn_ctx), + asn_MAP_BadSignalElement_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_BadSignalElement_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BadSignalElement = { + "BadSignalElement", + "BadSignalElement", + &asn_OP_SEQUENCE, + asn_DEF_BadSignalElement_tags_1, + sizeof(asn_DEF_BadSignalElement_tags_1) + /sizeof(asn_DEF_BadSignalElement_tags_1[0]), /* 1 */ + asn_DEF_BadSignalElement_tags_1, /* Same as above */ + sizeof(asn_DEF_BadSignalElement_tags_1) + /sizeof(asn_DEF_BadSignalElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BadSignalElement_1, + 2, /* Elements count */ + &asn_SPC_BadSignalElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/BadSignalElement.h b/asn.1/lpp_generated/BadSignalElement.h similarity index 75% rename from asn.1/generated/BadSignalElement.h rename to asn.1/lpp_generated/BadSignalElement.h index 20f4b88a..2b6920d3 100644 --- a/asn.1/generated/BadSignalElement.h +++ b/asn.1/lpp_generated/BadSignalElement.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _BadSignalElement_H_ @@ -25,7 +25,7 @@ struct GNSS_SignalIDs; /* BadSignalElement */ typedef struct BadSignalElement { SV_ID_t badSVID; - struct GNSS_SignalIDs *badSignalID /* OPTIONAL */; + struct GNSS_SignalIDs *badSignalID; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -44,8 +44,5 @@ extern asn_TYPE_member_t asn_MBR_BadSignalElement_1[2]; } #endif -/* Referred external types */ -#include "GNSS-SignalIDs.h" - #endif /* _BadSignalElement_H_ */ #include diff --git a/asn.1/lpp_generated/BeamPowerElement-r17.c b/asn.1/lpp_generated/BeamPowerElement-r17.c new file mode 100644 index 00000000..f82f99f0 --- /dev/null +++ b/asn.1/lpp_generated/BeamPowerElement-r17.c @@ -0,0 +1,266 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "BeamPowerElement-r17.h" + +#include "NR-IntegrityBeamPowerBounds-r18.h" +static int +memb_nr_dl_prs_RelativePower_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 30L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_dl_prs_RelativePowerFine_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_dl_prs_RelativePower_r17_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 30 } /* (0..30) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_dl_prs_RelativePowerFine_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 1, offsetof(struct BeamPowerElement_r17__ext1, nr_IntegrityBeamPowerBounds_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_IntegrityBeamPowerBounds_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-IntegrityBeamPowerBounds-r18" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-IntegrityBeamPowerBounds-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct BeamPowerElement_r17__ext1), + offsetof(struct BeamPowerElement_r17__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 1, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_BeamPowerElement_r17_1[] = { + { ATF_POINTER, 1, offsetof(struct BeamPowerElement_r17, nr_dl_prs_ResourceSetID_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceSetID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-dl-prs-ResourceSetID-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct BeamPowerElement_r17, nr_dl_prs_ResourceID_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-dl-prs-ResourceID-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct BeamPowerElement_r17, nr_dl_prs_RelativePower_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_dl_prs_RelativePower_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_dl_prs_RelativePower_r17_constraint_1 + }, + 0, 0, /* No default value */ + "nr-dl-prs-RelativePower-r17" + }, + { ATF_POINTER, 2, offsetof(struct BeamPowerElement_r17, nr_dl_prs_RelativePowerFine_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_dl_prs_RelativePowerFine_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_dl_prs_RelativePowerFine_r17_constraint_1 + }, + 0, 0, /* No default value */ + "nr-dl-prs-RelativePowerFine-r17" + }, + { ATF_POINTER, 1, offsetof(struct BeamPowerElement_r17, ext1), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_BeamPowerElement_r17_oms_1[] = { 0, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_BeamPowerElement_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BeamPowerElement_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-dl-prs-ResourceSetID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-dl-prs-ResourceID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-dl-prs-RelativePower-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-dl-prs-RelativePowerFine-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BeamPowerElement_r17_specs_1 = { + sizeof(struct BeamPowerElement_r17), + offsetof(struct BeamPowerElement_r17, _asn_ctx), + asn_MAP_BeamPowerElement_r17_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_BeamPowerElement_r17_oms_1, /* Optional members */ + 2, 1, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BeamPowerElement_r17 = { + "BeamPowerElement-r17", + "BeamPowerElement-r17", + &asn_OP_SEQUENCE, + asn_DEF_BeamPowerElement_r17_tags_1, + sizeof(asn_DEF_BeamPowerElement_r17_tags_1) + /sizeof(asn_DEF_BeamPowerElement_r17_tags_1[0]), /* 1 */ + asn_DEF_BeamPowerElement_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_BeamPowerElement_r17_tags_1) + /sizeof(asn_DEF_BeamPowerElement_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BeamPowerElement_r17_1, + 5, /* Elements count */ + &asn_SPC_BeamPowerElement_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/BeamPowerElement-r17.h b/asn.1/lpp_generated/BeamPowerElement-r17.h new file mode 100644 index 00000000..defc967f --- /dev/null +++ b/asn.1/lpp_generated/BeamPowerElement-r17.h @@ -0,0 +1,58 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _BeamPowerElement_r17_H_ +#define _BeamPowerElement_r17_H_ + + +#include + +/* Including external dependencies */ +#include "NR-DL-PRS-ResourceSetID-r16.h" +#include "NR-DL-PRS-ResourceID-r16.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_IntegrityBeamPowerBounds_r18; + +/* BeamPowerElement-r17 */ +typedef struct BeamPowerElement_r17 { + NR_DL_PRS_ResourceSetID_r16_t *nr_dl_prs_ResourceSetID_r17; /* OPTIONAL */ + NR_DL_PRS_ResourceID_r16_t nr_dl_prs_ResourceID_r17; + long nr_dl_prs_RelativePower_r17; + long *nr_dl_prs_RelativePowerFine_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct BeamPowerElement_r17__ext1 { + struct NR_IntegrityBeamPowerBounds_r18 *nr_IntegrityBeamPowerBounds_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BeamPowerElement_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BeamPowerElement_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_BeamPowerElement_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_BeamPowerElement_r17_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BeamPowerElement_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/CLOCK-IntegrityParameters-r17.c b/asn.1/lpp_generated/CLOCK-IntegrityParameters-r17.c new file mode 100644 index 00000000..0aa84dd2 --- /dev/null +++ b/asn.1/lpp_generated/CLOCK-IntegrityParameters-r17.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "CLOCK-IntegrityParameters-r17.h" + +static int +memb_clockRangeErrorCorrelationTime_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_clockRangeRateErrorCorrelationTime_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_clockRangeErrorCorrelationTime_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_clockRangeRateErrorCorrelationTime_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_CLOCK_IntegrityParameters_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CLOCK_IntegrityParameters_r17, clockRangeErrorCorrelationTime_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_clockRangeErrorCorrelationTime_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_clockRangeErrorCorrelationTime_r17_constraint_1 + }, + 0, 0, /* No default value */ + "clockRangeErrorCorrelationTime-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct CLOCK_IntegrityParameters_r17, clockRangeRateErrorCorrelationTime_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_clockRangeRateErrorCorrelationTime_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_clockRangeRateErrorCorrelationTime_r17_constraint_1 + }, + 0, 0, /* No default value */ + "clockRangeRateErrorCorrelationTime-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_CLOCK_IntegrityParameters_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CLOCK_IntegrityParameters_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* clockRangeErrorCorrelationTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* clockRangeRateErrorCorrelationTime-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CLOCK_IntegrityParameters_r17_specs_1 = { + sizeof(struct CLOCK_IntegrityParameters_r17), + offsetof(struct CLOCK_IntegrityParameters_r17, _asn_ctx), + asn_MAP_CLOCK_IntegrityParameters_r17_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CLOCK_IntegrityParameters_r17 = { + "CLOCK-IntegrityParameters-r17", + "CLOCK-IntegrityParameters-r17", + &asn_OP_SEQUENCE, + asn_DEF_CLOCK_IntegrityParameters_r17_tags_1, + sizeof(asn_DEF_CLOCK_IntegrityParameters_r17_tags_1) + /sizeof(asn_DEF_CLOCK_IntegrityParameters_r17_tags_1[0]), /* 1 */ + asn_DEF_CLOCK_IntegrityParameters_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_CLOCK_IntegrityParameters_r17_tags_1) + /sizeof(asn_DEF_CLOCK_IntegrityParameters_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CLOCK_IntegrityParameters_r17_1, + 2, /* Elements count */ + &asn_SPC_CLOCK_IntegrityParameters_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/CLOCK-IntegrityParameters-r17.h b/asn.1/lpp_generated/CLOCK-IntegrityParameters-r17.h new file mode 100644 index 00000000..82713d7d --- /dev/null +++ b/asn.1/lpp_generated/CLOCK-IntegrityParameters-r17.h @@ -0,0 +1,45 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _CLOCK_IntegrityParameters_r17_H_ +#define _CLOCK_IntegrityParameters_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* CLOCK-IntegrityParameters-r17 */ +typedef struct CLOCK_IntegrityParameters_r17 { + long clockRangeErrorCorrelationTime_r17; + long clockRangeRateErrorCorrelationTime_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CLOCK_IntegrityParameters_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CLOCK_IntegrityParameters_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_CLOCK_IntegrityParameters_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_CLOCK_IntegrityParameters_r17_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _CLOCK_IntegrityParameters_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/CNAV-ClockModel.c b/asn.1/lpp_generated/CNAV-ClockModel.c new file mode 100644 index 00000000..4d9e0c77 --- /dev/null +++ b/asn.1/lpp_generated/CNAV-ClockModel.c @@ -0,0 +1,800 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "CNAV-ClockModel.h" + +static int +memb_cnavToc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2015L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavTop_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2015L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavURA0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavURA1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavURA2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavAf2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -512L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavAf1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -524288L && value <= 524287L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavAf0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -33554432L && value <= 33554431L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavTgd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -4096L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavISCl1cp_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -4096L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavISCl1cd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -4096L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavISCl1ca_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -4096L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavISCl2c_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -4096L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavISCl5i5_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -4096L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavISCl5q5_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -4096L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavToc_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 2015 } /* (0..2015) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavTop_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 2015 } /* (0..2015) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavURA0_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, -16, 15 } /* (-16..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavURA1_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavURA2_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavAf2_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavAf1_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 20, -1, -524288, 524287 } /* (-524288..524287) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavAf0_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 26, -1, -33554432, 33554431 } /* (-33554432..33554431) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavTgd_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavISCl1cp_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavISCl1cd_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavISCl1ca_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavISCl2c_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavISCl5i5_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavISCl5q5_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_CNAV_ClockModel_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CNAV_ClockModel, cnavToc), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavToc_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavToc_constraint_1 + }, + 0, 0, /* No default value */ + "cnavToc" + }, + { ATF_NOFLAGS, 0, offsetof(struct CNAV_ClockModel, cnavTop), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavTop_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavTop_constraint_1 + }, + 0, 0, /* No default value */ + "cnavTop" + }, + { ATF_NOFLAGS, 0, offsetof(struct CNAV_ClockModel, cnavURA0), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavURA0_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavURA0_constraint_1 + }, + 0, 0, /* No default value */ + "cnavURA0" + }, + { ATF_NOFLAGS, 0, offsetof(struct CNAV_ClockModel, cnavURA1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavURA1_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavURA1_constraint_1 + }, + 0, 0, /* No default value */ + "cnavURA1" + }, + { ATF_NOFLAGS, 0, offsetof(struct CNAV_ClockModel, cnavURA2), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavURA2_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavURA2_constraint_1 + }, + 0, 0, /* No default value */ + "cnavURA2" + }, + { ATF_NOFLAGS, 0, offsetof(struct CNAV_ClockModel, cnavAf2), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavAf2_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavAf2_constraint_1 + }, + 0, 0, /* No default value */ + "cnavAf2" + }, + { ATF_NOFLAGS, 0, offsetof(struct CNAV_ClockModel, cnavAf1), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavAf1_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavAf1_constraint_1 + }, + 0, 0, /* No default value */ + "cnavAf1" + }, + { ATF_NOFLAGS, 0, offsetof(struct CNAV_ClockModel, cnavAf0), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavAf0_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavAf0_constraint_1 + }, + 0, 0, /* No default value */ + "cnavAf0" + }, + { ATF_NOFLAGS, 0, offsetof(struct CNAV_ClockModel, cnavTgd), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavTgd_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavTgd_constraint_1 + }, + 0, 0, /* No default value */ + "cnavTgd" + }, + { ATF_POINTER, 6, offsetof(struct CNAV_ClockModel, cnavISCl1cp), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavISCl1cp_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavISCl1cp_constraint_1 + }, + 0, 0, /* No default value */ + "cnavISCl1cp" + }, + { ATF_POINTER, 5, offsetof(struct CNAV_ClockModel, cnavISCl1cd), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavISCl1cd_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavISCl1cd_constraint_1 + }, + 0, 0, /* No default value */ + "cnavISCl1cd" + }, + { ATF_POINTER, 4, offsetof(struct CNAV_ClockModel, cnavISCl1ca), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavISCl1ca_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavISCl1ca_constraint_1 + }, + 0, 0, /* No default value */ + "cnavISCl1ca" + }, + { ATF_POINTER, 3, offsetof(struct CNAV_ClockModel, cnavISCl2c), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavISCl2c_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavISCl2c_constraint_1 + }, + 0, 0, /* No default value */ + "cnavISCl2c" + }, + { ATF_POINTER, 2, offsetof(struct CNAV_ClockModel, cnavISCl5i5), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavISCl5i5_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavISCl5i5_constraint_1 + }, + 0, 0, /* No default value */ + "cnavISCl5i5" + }, + { ATF_POINTER, 1, offsetof(struct CNAV_ClockModel, cnavISCl5q5), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavISCl5q5_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavISCl5q5_constraint_1 + }, + 0, 0, /* No default value */ + "cnavISCl5q5" + }, +}; +static const int asn_MAP_CNAV_ClockModel_oms_1[] = { 9, 10, 11, 12, 13, 14 }; +static const ber_tlv_tag_t asn_DEF_CNAV_ClockModel_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CNAV_ClockModel_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cnavToc */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cnavTop */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cnavURA0 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* cnavURA1 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* cnavURA2 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* cnavAf2 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* cnavAf1 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* cnavAf0 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* cnavTgd */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* cnavISCl1cp */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* cnavISCl1cd */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* cnavISCl1ca */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* cnavISCl2c */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* cnavISCl5i5 */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 } /* cnavISCl5q5 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CNAV_ClockModel_specs_1 = { + sizeof(struct CNAV_ClockModel), + offsetof(struct CNAV_ClockModel, _asn_ctx), + asn_MAP_CNAV_ClockModel_tag2el_1, + 15, /* Count of tags in the map */ + asn_MAP_CNAV_ClockModel_oms_1, /* Optional members */ + 6, 0, /* Root/Additions */ + 15, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CNAV_ClockModel = { + "CNAV-ClockModel", + "CNAV-ClockModel", + &asn_OP_SEQUENCE, + asn_DEF_CNAV_ClockModel_tags_1, + sizeof(asn_DEF_CNAV_ClockModel_tags_1) + /sizeof(asn_DEF_CNAV_ClockModel_tags_1[0]), /* 1 */ + asn_DEF_CNAV_ClockModel_tags_1, /* Same as above */ + sizeof(asn_DEF_CNAV_ClockModel_tags_1) + /sizeof(asn_DEF_CNAV_ClockModel_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CNAV_ClockModel_1, + 15, /* Elements count */ + &asn_SPC_CNAV_ClockModel_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/CNAV-ClockModel.h b/asn.1/lpp_generated/CNAV-ClockModel.h new file mode 100644 index 00000000..add09407 --- /dev/null +++ b/asn.1/lpp_generated/CNAV-ClockModel.h @@ -0,0 +1,58 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _CNAV_ClockModel_H_ +#define _CNAV_ClockModel_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* CNAV-ClockModel */ +typedef struct CNAV_ClockModel { + long cnavToc; + long cnavTop; + long cnavURA0; + long cnavURA1; + long cnavURA2; + long cnavAf2; + long cnavAf1; + long cnavAf0; + long cnavTgd; + long *cnavISCl1cp; /* OPTIONAL */ + long *cnavISCl1cd; /* OPTIONAL */ + long *cnavISCl1ca; /* OPTIONAL */ + long *cnavISCl2c; /* OPTIONAL */ + long *cnavISCl5i5; /* OPTIONAL */ + long *cnavISCl5q5; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CNAV_ClockModel_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CNAV_ClockModel; +extern asn_SEQUENCE_specifics_t asn_SPC_CNAV_ClockModel_specs_1; +extern asn_TYPE_member_t asn_MBR_CNAV_ClockModel_1[15]; + +#ifdef __cplusplus +} +#endif + +#endif /* _CNAV_ClockModel_H_ */ +#include diff --git a/asn.1/lpp_generated/CarrierFreq-NB-r14.c b/asn.1/lpp_generated/CarrierFreq-NB-r14.c new file mode 100644 index 00000000..ad0798bd --- /dev/null +++ b/asn.1/lpp_generated/CarrierFreq-NB-r14.c @@ -0,0 +1,86 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "CarrierFreq-NB-r14.h" + +asn_TYPE_member_t asn_MBR_CarrierFreq_NB_r14_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CarrierFreq_NB_r14, carrierFreq_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueEUTRA_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "carrierFreq-r14" + }, + { ATF_POINTER, 1, offsetof(struct CarrierFreq_NB_r14, carrierFreqOffset_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CarrierFreqOffsetNB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "carrierFreqOffset-r14" + }, +}; +static const int asn_MAP_CarrierFreq_NB_r14_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_CarrierFreq_NB_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CarrierFreq_NB_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* carrierFreq-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* carrierFreqOffset-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CarrierFreq_NB_r14_specs_1 = { + sizeof(struct CarrierFreq_NB_r14), + offsetof(struct CarrierFreq_NB_r14, _asn_ctx), + asn_MAP_CarrierFreq_NB_r14_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_CarrierFreq_NB_r14_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CarrierFreq_NB_r14 = { + "CarrierFreq-NB-r14", + "CarrierFreq-NB-r14", + &asn_OP_SEQUENCE, + asn_DEF_CarrierFreq_NB_r14_tags_1, + sizeof(asn_DEF_CarrierFreq_NB_r14_tags_1) + /sizeof(asn_DEF_CarrierFreq_NB_r14_tags_1[0]), /* 1 */ + asn_DEF_CarrierFreq_NB_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_CarrierFreq_NB_r14_tags_1) + /sizeof(asn_DEF_CarrierFreq_NB_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CarrierFreq_NB_r14_1, + 2, /* Elements count */ + &asn_SPC_CarrierFreq_NB_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/CarrierFreq-NB-r14.h b/asn.1/lpp_generated/CarrierFreq-NB-r14.h similarity index 75% rename from asn.1/generated/CarrierFreq-NB-r14.h rename to asn.1/lpp_generated/CarrierFreq-NB-r14.h index 57407dba..afe05d74 100644 --- a/asn.1/generated/CarrierFreq-NB-r14.h +++ b/asn.1/lpp_generated/CarrierFreq-NB-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _CarrierFreq_NB_r14_H_ @@ -23,7 +23,7 @@ extern "C" { /* CarrierFreq-NB-r14 */ typedef struct CarrierFreq_NB_r14 { ARFCN_ValueEUTRA_r14_t carrierFreq_r14; - CarrierFreqOffsetNB_r14_t *carrierFreqOffset_r14 /* OPTIONAL */; + CarrierFreqOffsetNB_r14_t *carrierFreqOffset_r14; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/generated/CarrierFreqOffsetNB-r14.c b/asn.1/lpp_generated/CarrierFreqOffsetNB-r14.c similarity index 76% rename from asn.1/generated/CarrierFreqOffsetNB-r14.c rename to asn.1/lpp_generated/CarrierFreqOffsetNB-r14.c index f7ed64bb..c19be72a 100644 --- a/asn.1/generated/CarrierFreqOffsetNB-r14.c +++ b/asn.1/lpp_generated/CarrierFreqOffsetNB-r14.c @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #include "CarrierFreqOffsetNB-r14.h" @@ -11,11 +11,13 @@ * This type is implemented using NativeEnumerated, * so here we adjust the DEF accordingly. */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) asn_per_constraints_t asn_PER_type_CarrierFreqOffsetNB_r14_constr_1 CC_NOTUSED = { { APC_CONSTRAINED, 5, 5, 0, 20 } /* (0..20) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ static const asn_INTEGER_enum_map_t asn_MAP_CarrierFreqOffsetNB_r14_value2enum_1[] = { { 0, 4, "v-10" }, { 1, 3, "v-9" }, @@ -84,7 +86,15 @@ asn_TYPE_descriptor_t asn_DEF_CarrierFreqOffsetNB_r14 = { asn_DEF_CarrierFreqOffsetNB_r14_tags_1, /* Same as above */ sizeof(asn_DEF_CarrierFreqOffsetNB_r14_tags_1) /sizeof(asn_DEF_CarrierFreqOffsetNB_r14_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_CarrierFreqOffsetNB_r14_constr_1, NativeEnumerated_constraint }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CarrierFreqOffsetNB_r14_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, 0, 0, /* Defined elsewhere */ &asn_SPC_CarrierFreqOffsetNB_r14_specs_1 /* Additional specs */ }; diff --git a/asn.1/generated/CarrierFreqOffsetNB-r14.h b/asn.1/lpp_generated/CarrierFreqOffsetNB-r14.h similarity index 84% rename from asn.1/generated/CarrierFreqOffsetNB-r14.h rename to asn.1/lpp_generated/CarrierFreqOffsetNB-r14.h index a4e1fde8..6c81c296 100644 --- a/asn.1/generated/CarrierFreqOffsetNB-r14.h +++ b/asn.1/lpp_generated/CarrierFreqOffsetNB-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _CarrierFreqOffsetNB_r14_H_ @@ -51,12 +51,10 @@ extern asn_per_constraints_t asn_PER_type_CarrierFreqOffsetNB_r14_constr_1; extern asn_TYPE_descriptor_t asn_DEF_CarrierFreqOffsetNB_r14; extern const asn_INTEGER_specifics_t asn_SPC_CarrierFreqOffsetNB_r14_specs_1; asn_struct_free_f CarrierFreqOffsetNB_r14_free; -asn_struct_print_f CarrierFreqOffsetNB_r14_print; asn_constr_check_f CarrierFreqOffsetNB_r14_constraint; -ber_type_decoder_f CarrierFreqOffsetNB_r14_decode_ber; -der_type_encoder_f CarrierFreqOffsetNB_r14_encode_der; xer_type_decoder_f CarrierFreqOffsetNB_r14_decode_xer; xer_type_encoder_f CarrierFreqOffsetNB_r14_encode_xer; +jer_type_encoder_f CarrierFreqOffsetNB_r14_encode_jer; per_type_decoder_f CarrierFreqOffsetNB_r14_decode_uper; per_type_encoder_f CarrierFreqOffsetNB_r14_encode_uper; diff --git a/asn.1/lpp_generated/CellGlobalIdEUTRA-AndUTRA.c b/asn.1/lpp_generated/CellGlobalIdEUTRA-AndUTRA.c new file mode 100644 index 00000000..e3b804ca --- /dev/null +++ b/asn.1/lpp_generated/CellGlobalIdEUTRA-AndUTRA.c @@ -0,0 +1,567 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "CellGlobalIdEUTRA-AndUTRA.h" + +static int +memb_NativeInteger_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_NativeInteger_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_mcc_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size == 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_mnc_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 2UL && size <= 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_eutra_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 28UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utra_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 32UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_mcc_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_mnc_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_mcc_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_mnc_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_eutra_constr_8 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 28, 28 } /* (SIZE(28..28)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utra_constr_9 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 32, 32 } /* (SIZE(32..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cellIdentity_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_mcc_3[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_NativeInteger_constraint_3 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_mcc_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_mcc_specs_3 = { + sizeof(struct CellGlobalIdEUTRA_AndUTRA__plmn_Identity__mcc), + offsetof(struct CellGlobalIdEUTRA_AndUTRA__plmn_Identity__mcc, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_mcc_3 = { + "mcc", + "mcc", + &asn_OP_SEQUENCE_OF, + asn_DEF_mcc_tags_3, + sizeof(asn_DEF_mcc_tags_3) + /sizeof(asn_DEF_mcc_tags_3[0]) - 1, /* 1 */ + asn_DEF_mcc_tags_3, /* Same as above */ + sizeof(asn_DEF_mcc_tags_3) + /sizeof(asn_DEF_mcc_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_mcc_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_mcc_3, + 1, /* Single element */ + &asn_SPC_mcc_specs_3 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_mnc_5[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_NativeInteger_constraint_5 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_mnc_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_mnc_specs_5 = { + sizeof(struct CellGlobalIdEUTRA_AndUTRA__plmn_Identity__mnc), + offsetof(struct CellGlobalIdEUTRA_AndUTRA__plmn_Identity__mnc, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_mnc_5 = { + "mnc", + "mnc", + &asn_OP_SEQUENCE_OF, + asn_DEF_mnc_tags_5, + sizeof(asn_DEF_mnc_tags_5) + /sizeof(asn_DEF_mnc_tags_5[0]) - 1, /* 1 */ + asn_DEF_mnc_tags_5, /* Same as above */ + sizeof(asn_DEF_mnc_tags_5) + /sizeof(asn_DEF_mnc_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_mnc_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_mnc_5, + 1, /* Single element */ + &asn_SPC_mnc_specs_5 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_plmn_Identity_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdEUTRA_AndUTRA__plmn_Identity, mcc), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_mcc_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_mcc_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_mcc_constraint_2 + }, + 0, 0, /* No default value */ + "mcc" + }, + { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdEUTRA_AndUTRA__plmn_Identity, mnc), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_mnc_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_mnc_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_mnc_constraint_2 + }, + 0, 0, /* No default value */ + "mnc" + }, +}; +static const ber_tlv_tag_t asn_DEF_plmn_Identity_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_plmn_Identity_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mcc */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* mnc */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_plmn_Identity_specs_2 = { + sizeof(struct CellGlobalIdEUTRA_AndUTRA__plmn_Identity), + offsetof(struct CellGlobalIdEUTRA_AndUTRA__plmn_Identity, _asn_ctx), + asn_MAP_plmn_Identity_tag2el_2, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_plmn_Identity_2 = { + "plmn-Identity", + "plmn-Identity", + &asn_OP_SEQUENCE, + asn_DEF_plmn_Identity_tags_2, + sizeof(asn_DEF_plmn_Identity_tags_2) + /sizeof(asn_DEF_plmn_Identity_tags_2[0]) - 1, /* 1 */ + asn_DEF_plmn_Identity_tags_2, /* Same as above */ + sizeof(asn_DEF_plmn_Identity_tags_2) + /sizeof(asn_DEF_plmn_Identity_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_plmn_Identity_2, + 2, /* Elements count */ + &asn_SPC_plmn_Identity_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_cellIdentity_7[] = { + { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdEUTRA_AndUTRA__cellIdentity, choice.eutra), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_eutra_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_eutra_constraint_7 + }, + 0, 0, /* No default value */ + "eutra" + }, + { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdEUTRA_AndUTRA__cellIdentity, choice.utra), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utra_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utra_constraint_7 + }, + 0, 0, /* No default value */ + "utra" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_cellIdentity_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eutra */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* utra */ +}; +static asn_CHOICE_specifics_t asn_SPC_cellIdentity_specs_7 = { + sizeof(struct CellGlobalIdEUTRA_AndUTRA__cellIdentity), + offsetof(struct CellGlobalIdEUTRA_AndUTRA__cellIdentity, _asn_ctx), + offsetof(struct CellGlobalIdEUTRA_AndUTRA__cellIdentity, present), + sizeof(((struct CellGlobalIdEUTRA_AndUTRA__cellIdentity *)0)->present), + asn_MAP_cellIdentity_tag2el_7, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cellIdentity_7 = { + "cellIdentity", + "cellIdentity", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cellIdentity_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_cellIdentity_7, + 2, /* Elements count */ + &asn_SPC_cellIdentity_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_CellGlobalIdEUTRA_AndUTRA_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdEUTRA_AndUTRA, plmn_Identity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_plmn_Identity_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "plmn-Identity" + }, + { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdEUTRA_AndUTRA, cellIdentity), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_cellIdentity_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellIdentity" + }, +}; +static const ber_tlv_tag_t asn_DEF_CellGlobalIdEUTRA_AndUTRA_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CellGlobalIdEUTRA_AndUTRA_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* plmn-Identity */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cellIdentity */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CellGlobalIdEUTRA_AndUTRA_specs_1 = { + sizeof(struct CellGlobalIdEUTRA_AndUTRA), + offsetof(struct CellGlobalIdEUTRA_AndUTRA, _asn_ctx), + asn_MAP_CellGlobalIdEUTRA_AndUTRA_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CellGlobalIdEUTRA_AndUTRA = { + "CellGlobalIdEUTRA-AndUTRA", + "CellGlobalIdEUTRA-AndUTRA", + &asn_OP_SEQUENCE, + asn_DEF_CellGlobalIdEUTRA_AndUTRA_tags_1, + sizeof(asn_DEF_CellGlobalIdEUTRA_AndUTRA_tags_1) + /sizeof(asn_DEF_CellGlobalIdEUTRA_AndUTRA_tags_1[0]), /* 1 */ + asn_DEF_CellGlobalIdEUTRA_AndUTRA_tags_1, /* Same as above */ + sizeof(asn_DEF_CellGlobalIdEUTRA_AndUTRA_tags_1) + /sizeof(asn_DEF_CellGlobalIdEUTRA_AndUTRA_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CellGlobalIdEUTRA_AndUTRA_1, + 2, /* Elements count */ + &asn_SPC_CellGlobalIdEUTRA_AndUTRA_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/CellGlobalIdEUTRA-AndUTRA.h b/asn.1/lpp_generated/CellGlobalIdEUTRA-AndUTRA.h similarity index 89% rename from asn.1/generated/CellGlobalIdEUTRA-AndUTRA.h rename to asn.1/lpp_generated/CellGlobalIdEUTRA-AndUTRA.h index 9589a239..12074718 100644 --- a/asn.1/generated/CellGlobalIdEUTRA-AndUTRA.h +++ b/asn.1/lpp_generated/CellGlobalIdEUTRA-AndUTRA.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _CellGlobalIdEUTRA_AndUTRA_H_ diff --git a/asn.1/lpp_generated/CellGlobalIdGERAN.c b/asn.1/lpp_generated/CellGlobalIdGERAN.c new file mode 100644 index 00000000..4b9bd655 --- /dev/null +++ b/asn.1/lpp_generated/CellGlobalIdGERAN.c @@ -0,0 +1,505 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "CellGlobalIdGERAN.h" + +static int +memb_NativeInteger_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_NativeInteger_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_mcc_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size == 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_mnc_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 2UL && size <= 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_locationAreaCode_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 16UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cellIdentity_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 16UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_mcc_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_mnc_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_mcc_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_mnc_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_locationAreaCode_constr_7 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cellIdentity_constr_8 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_mcc_3[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_NativeInteger_constraint_3 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_mcc_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_mcc_specs_3 = { + sizeof(struct CellGlobalIdGERAN__plmn_Identity__mcc), + offsetof(struct CellGlobalIdGERAN__plmn_Identity__mcc, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_mcc_3 = { + "mcc", + "mcc", + &asn_OP_SEQUENCE_OF, + asn_DEF_mcc_tags_3, + sizeof(asn_DEF_mcc_tags_3) + /sizeof(asn_DEF_mcc_tags_3[0]) - 1, /* 1 */ + asn_DEF_mcc_tags_3, /* Same as above */ + sizeof(asn_DEF_mcc_tags_3) + /sizeof(asn_DEF_mcc_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_mcc_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_mcc_3, + 1, /* Single element */ + &asn_SPC_mcc_specs_3 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_mnc_5[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_NativeInteger_constraint_5 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_mnc_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_mnc_specs_5 = { + sizeof(struct CellGlobalIdGERAN__plmn_Identity__mnc), + offsetof(struct CellGlobalIdGERAN__plmn_Identity__mnc, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_mnc_5 = { + "mnc", + "mnc", + &asn_OP_SEQUENCE_OF, + asn_DEF_mnc_tags_5, + sizeof(asn_DEF_mnc_tags_5) + /sizeof(asn_DEF_mnc_tags_5[0]) - 1, /* 1 */ + asn_DEF_mnc_tags_5, /* Same as above */ + sizeof(asn_DEF_mnc_tags_5) + /sizeof(asn_DEF_mnc_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_mnc_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_mnc_5, + 1, /* Single element */ + &asn_SPC_mnc_specs_5 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_plmn_Identity_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdGERAN__plmn_Identity, mcc), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_mcc_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_mcc_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_mcc_constraint_2 + }, + 0, 0, /* No default value */ + "mcc" + }, + { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdGERAN__plmn_Identity, mnc), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_mnc_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_mnc_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_mnc_constraint_2 + }, + 0, 0, /* No default value */ + "mnc" + }, +}; +static const ber_tlv_tag_t asn_DEF_plmn_Identity_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_plmn_Identity_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mcc */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* mnc */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_plmn_Identity_specs_2 = { + sizeof(struct CellGlobalIdGERAN__plmn_Identity), + offsetof(struct CellGlobalIdGERAN__plmn_Identity, _asn_ctx), + asn_MAP_plmn_Identity_tag2el_2, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_plmn_Identity_2 = { + "plmn-Identity", + "plmn-Identity", + &asn_OP_SEQUENCE, + asn_DEF_plmn_Identity_tags_2, + sizeof(asn_DEF_plmn_Identity_tags_2) + /sizeof(asn_DEF_plmn_Identity_tags_2[0]) - 1, /* 1 */ + asn_DEF_plmn_Identity_tags_2, /* Same as above */ + sizeof(asn_DEF_plmn_Identity_tags_2) + /sizeof(asn_DEF_plmn_Identity_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_plmn_Identity_2, + 2, /* Elements count */ + &asn_SPC_plmn_Identity_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_CellGlobalIdGERAN_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdGERAN, plmn_Identity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_plmn_Identity_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "plmn-Identity" + }, + { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdGERAN, locationAreaCode), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_locationAreaCode_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_locationAreaCode_constraint_1 + }, + 0, 0, /* No default value */ + "locationAreaCode" + }, + { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdGERAN, cellIdentity), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cellIdentity_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cellIdentity_constraint_1 + }, + 0, 0, /* No default value */ + "cellIdentity" + }, +}; +static const ber_tlv_tag_t asn_DEF_CellGlobalIdGERAN_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CellGlobalIdGERAN_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* plmn-Identity */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* locationAreaCode */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* cellIdentity */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CellGlobalIdGERAN_specs_1 = { + sizeof(struct CellGlobalIdGERAN), + offsetof(struct CellGlobalIdGERAN, _asn_ctx), + asn_MAP_CellGlobalIdGERAN_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CellGlobalIdGERAN = { + "CellGlobalIdGERAN", + "CellGlobalIdGERAN", + &asn_OP_SEQUENCE, + asn_DEF_CellGlobalIdGERAN_tags_1, + sizeof(asn_DEF_CellGlobalIdGERAN_tags_1) + /sizeof(asn_DEF_CellGlobalIdGERAN_tags_1[0]), /* 1 */ + asn_DEF_CellGlobalIdGERAN_tags_1, /* Same as above */ + sizeof(asn_DEF_CellGlobalIdGERAN_tags_1) + /sizeof(asn_DEF_CellGlobalIdGERAN_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CellGlobalIdGERAN_1, + 3, /* Elements count */ + &asn_SPC_CellGlobalIdGERAN_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/CellGlobalIdGERAN.h b/asn.1/lpp_generated/CellGlobalIdGERAN.h similarity index 85% rename from asn.1/generated/CellGlobalIdGERAN.h rename to asn.1/lpp_generated/CellGlobalIdGERAN.h index 201cd660..99843a71 100644 --- a/asn.1/generated/CellGlobalIdGERAN.h +++ b/asn.1/lpp_generated/CellGlobalIdGERAN.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _CellGlobalIdGERAN_H_ diff --git a/asn.1/lpp_generated/CommonIEsAbort.c b/asn.1/lpp_generated/CommonIEsAbort.c new file mode 100644 index 00000000..9e288e80 --- /dev/null +++ b/asn.1/lpp_generated/CommonIEsAbort.c @@ -0,0 +1,130 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "CommonIEsAbort.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_abortCause_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_abortCause_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 21, "stopPeriodicReporting" }, + { 2, 17, "targetDeviceAbort" }, + { 3, 12, "networkAbort" }, + { 4, 40, "stopPeriodicAssistanceDataDelivery-v1510" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_abortCause_enum2value_2[] = { + 3, /* networkAbort(3) */ + 4, /* stopPeriodicAssistanceDataDelivery-v1510(4) */ + 1, /* stopPeriodicReporting(1) */ + 2, /* targetDeviceAbort(2) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_abortCause_specs_2 = { + asn_MAP_abortCause_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_abortCause_enum2value_2, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_abortCause_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_abortCause_2 = { + "abortCause", + "abortCause", + &asn_OP_NativeEnumerated, + asn_DEF_abortCause_tags_2, + sizeof(asn_DEF_abortCause_tags_2) + /sizeof(asn_DEF_abortCause_tags_2[0]) - 1, /* 1 */ + asn_DEF_abortCause_tags_2, /* Same as above */ + sizeof(asn_DEF_abortCause_tags_2) + /sizeof(asn_DEF_abortCause_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_abortCause_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_abortCause_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_CommonIEsAbort_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CommonIEsAbort, abortCause), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_abortCause_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "abortCause" + }, +}; +static const ber_tlv_tag_t asn_DEF_CommonIEsAbort_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CommonIEsAbort_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* abortCause */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CommonIEsAbort_specs_1 = { + sizeof(struct CommonIEsAbort), + offsetof(struct CommonIEsAbort, _asn_ctx), + asn_MAP_CommonIEsAbort_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CommonIEsAbort = { + "CommonIEsAbort", + "CommonIEsAbort", + &asn_OP_SEQUENCE, + asn_DEF_CommonIEsAbort_tags_1, + sizeof(asn_DEF_CommonIEsAbort_tags_1) + /sizeof(asn_DEF_CommonIEsAbort_tags_1[0]), /* 1 */ + asn_DEF_CommonIEsAbort_tags_1, /* Same as above */ + sizeof(asn_DEF_CommonIEsAbort_tags_1) + /sizeof(asn_DEF_CommonIEsAbort_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CommonIEsAbort_1, + 1, /* Elements count */ + &asn_SPC_CommonIEsAbort_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/CommonIEsAbort.h b/asn.1/lpp_generated/CommonIEsAbort.h similarity index 83% rename from asn.1/generated/CommonIEsAbort.h rename to asn.1/lpp_generated/CommonIEsAbort.h index 9b5bb045..458c1c35 100644 --- a/asn.1/generated/CommonIEsAbort.h +++ b/asn.1/lpp_generated/CommonIEsAbort.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _CommonIEsAbort_H_ diff --git a/asn.1/lpp_generated/CommonIEsError.c b/asn.1/lpp_generated/CommonIEsError.c new file mode 100644 index 00000000..44dabcda --- /dev/null +++ b/asn.1/lpp_generated/CommonIEsError.c @@ -0,0 +1,132 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "CommonIEsError.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_errorCause_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_errorCause_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 21, "lppMessageHeaderError" }, + { 2, 19, "lppMessageBodyError" }, + { 3, 9, "epduError" }, + { 4, 18, "incorrectDataValue" }, + { 5, 26, "lppSegmentationError-v1450" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_errorCause_enum2value_2[] = { + 3, /* epduError(3) */ + 4, /* incorrectDataValue(4) */ + 2, /* lppMessageBodyError(2) */ + 1, /* lppMessageHeaderError(1) */ + 5, /* lppSegmentationError-v1450(5) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_errorCause_specs_2 = { + asn_MAP_errorCause_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_errorCause_enum2value_2, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 6, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_errorCause_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_errorCause_2 = { + "errorCause", + "errorCause", + &asn_OP_NativeEnumerated, + asn_DEF_errorCause_tags_2, + sizeof(asn_DEF_errorCause_tags_2) + /sizeof(asn_DEF_errorCause_tags_2[0]) - 1, /* 1 */ + asn_DEF_errorCause_tags_2, /* Same as above */ + sizeof(asn_DEF_errorCause_tags_2) + /sizeof(asn_DEF_errorCause_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_errorCause_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_errorCause_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_CommonIEsError_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CommonIEsError, errorCause), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_errorCause_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "errorCause" + }, +}; +static const ber_tlv_tag_t asn_DEF_CommonIEsError_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CommonIEsError_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* errorCause */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CommonIEsError_specs_1 = { + sizeof(struct CommonIEsError), + offsetof(struct CommonIEsError, _asn_ctx), + asn_MAP_CommonIEsError_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CommonIEsError = { + "CommonIEsError", + "CommonIEsError", + &asn_OP_SEQUENCE, + asn_DEF_CommonIEsError_tags_1, + sizeof(asn_DEF_CommonIEsError_tags_1) + /sizeof(asn_DEF_CommonIEsError_tags_1[0]), /* 1 */ + asn_DEF_CommonIEsError_tags_1, /* Same as above */ + sizeof(asn_DEF_CommonIEsError_tags_1) + /sizeof(asn_DEF_CommonIEsError_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CommonIEsError_1, + 1, /* Elements count */ + &asn_SPC_CommonIEsError_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/CommonIEsError.h b/asn.1/lpp_generated/CommonIEsError.h similarity index 84% rename from asn.1/generated/CommonIEsError.h rename to asn.1/lpp_generated/CommonIEsError.h index 2fe9f248..990d7b67 100644 --- a/asn.1/generated/CommonIEsError.h +++ b/asn.1/lpp_generated/CommonIEsError.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _CommonIEsError_H_ diff --git a/asn.1/lpp_generated/CommonIEsProvideAssistanceData.c b/asn.1/lpp_generated/CommonIEsProvideAssistanceData.c new file mode 100644 index 00000000..971b4416 --- /dev/null +++ b/asn.1/lpp_generated/CommonIEsProvideAssistanceData.c @@ -0,0 +1,209 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "CommonIEsProvideAssistanceData.h" + +#include "PeriodicAssistanceDataControlParameters-r15.h" +static asn_TYPE_member_t asn_MBR_ext1_3[] = { + { ATF_POINTER, 1, offsetof(struct CommonIEsProvideAssistanceData__ext1, segmentationInfo_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SegmentationInfo_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "segmentationInfo-r14" + }, +}; +static const int asn_MAP_ext1_oms_3[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* segmentationInfo-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_3 = { + sizeof(struct CommonIEsProvideAssistanceData__ext1), + offsetof(struct CommonIEsProvideAssistanceData__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_3, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_3, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_3 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_3, + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_3, /* Same as above */ + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_3, + 1, /* Elements count */ + &asn_SPC_ext1_specs_3 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_5[] = { + { ATF_POINTER, 1, offsetof(struct CommonIEsProvideAssistanceData__ext2, periodicAssistanceData_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PeriodicAssistanceDataControlParameters_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "periodicAssistanceData-r15" + }, +}; +static const int asn_MAP_ext2_oms_5[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* periodicAssistanceData-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_5 = { + sizeof(struct CommonIEsProvideAssistanceData__ext2), + offsetof(struct CommonIEsProvideAssistanceData__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_5, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_5, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_5 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_5, + sizeof(asn_DEF_ext2_tags_5) + /sizeof(asn_DEF_ext2_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_5, /* Same as above */ + sizeof(asn_DEF_ext2_tags_5) + /sizeof(asn_DEF_ext2_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_5, + 1, /* Elements count */ + &asn_SPC_ext2_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_CommonIEsProvideAssistanceData_1[] = { + { ATF_POINTER, 2, offsetof(struct CommonIEsProvideAssistanceData, ext1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_ext1_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct CommonIEsProvideAssistanceData, ext2), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext2_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_CommonIEsProvideAssistanceData_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_CommonIEsProvideAssistanceData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CommonIEsProvideAssistanceData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CommonIEsProvideAssistanceData_specs_1 = { + sizeof(struct CommonIEsProvideAssistanceData), + offsetof(struct CommonIEsProvideAssistanceData, _asn_ctx), + asn_MAP_CommonIEsProvideAssistanceData_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_CommonIEsProvideAssistanceData_oms_1, /* Optional members */ + 0, 2, /* Root/Additions */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CommonIEsProvideAssistanceData = { + "CommonIEsProvideAssistanceData", + "CommonIEsProvideAssistanceData", + &asn_OP_SEQUENCE, + asn_DEF_CommonIEsProvideAssistanceData_tags_1, + sizeof(asn_DEF_CommonIEsProvideAssistanceData_tags_1) + /sizeof(asn_DEF_CommonIEsProvideAssistanceData_tags_1[0]), /* 1 */ + asn_DEF_CommonIEsProvideAssistanceData_tags_1, /* Same as above */ + sizeof(asn_DEF_CommonIEsProvideAssistanceData_tags_1) + /sizeof(asn_DEF_CommonIEsProvideAssistanceData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CommonIEsProvideAssistanceData_1, + 2, /* Elements count */ + &asn_SPC_CommonIEsProvideAssistanceData_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/CommonIEsProvideAssistanceData.h b/asn.1/lpp_generated/CommonIEsProvideAssistanceData.h similarity index 79% rename from asn.1/generated/CommonIEsProvideAssistanceData.h rename to asn.1/lpp_generated/CommonIEsProvideAssistanceData.h index 5d1139d1..900c8488 100644 --- a/asn.1/generated/CommonIEsProvideAssistanceData.h +++ b/asn.1/lpp_generated/CommonIEsProvideAssistanceData.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _CommonIEsProvideAssistanceData_H_ @@ -29,13 +29,13 @@ typedef struct CommonIEsProvideAssistanceData { * possible extensions are below. */ struct CommonIEsProvideAssistanceData__ext1 { - SegmentationInfo_r14_t *segmentationInfo_r14 /* OPTIONAL */; + SegmentationInfo_r14_t *segmentationInfo_r14; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *ext1; struct CommonIEsProvideAssistanceData__ext2 { - struct PeriodicAssistanceDataControlParameters_r15 *periodicAssistanceData_r15 /* OPTIONAL */; + struct PeriodicAssistanceDataControlParameters_r15 *periodicAssistanceData_r15; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -54,8 +54,5 @@ extern asn_TYPE_member_t asn_MBR_CommonIEsProvideAssistanceData_1[2]; } #endif -/* Referred external types */ -#include "PeriodicAssistanceDataControlParameters-r15.h" - #endif /* _CommonIEsProvideAssistanceData_H_ */ #include diff --git a/asn.1/lpp_generated/CommonIEsProvideCapabilities.c b/asn.1/lpp_generated/CommonIEsProvideCapabilities.c new file mode 100644 index 00000000..87cb454b --- /dev/null +++ b/asn.1/lpp_generated/CommonIEsProvideCapabilities.c @@ -0,0 +1,298 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "CommonIEsProvideCapabilities.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_locationEstimateAndMeasurementReporting_r18_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_3[] = { + { ATF_POINTER, 2, offsetof(struct CommonIEsProvideCapabilities__ext1, segmentationInfo_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SegmentationInfo_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "segmentationInfo-r14" + }, + { ATF_POINTER, 1, offsetof(struct CommonIEsProvideCapabilities__ext1, lpp_message_segmentation_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lpp-message-segmentation-r14" + }, +}; +static const int asn_MAP_ext1_oms_3[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* segmentationInfo-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* lpp-message-segmentation-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_3 = { + sizeof(struct CommonIEsProvideCapabilities__ext1), + offsetof(struct CommonIEsProvideCapabilities__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_3, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_3, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_3 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_3, + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_3, /* Same as above */ + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_3, + 2, /* Elements count */ + &asn_SPC_ext1_specs_3 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_locationEstimateAndMeasurementReporting_r18_value2enum_10[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_locationEstimateAndMeasurementReporting_r18_enum2value_10[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_locationEstimateAndMeasurementReporting_r18_specs_10 = { + asn_MAP_locationEstimateAndMeasurementReporting_r18_value2enum_10, /* "tag" => N; sorted by tag */ + asn_MAP_locationEstimateAndMeasurementReporting_r18_enum2value_10, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_locationEstimateAndMeasurementReporting_r18_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_locationEstimateAndMeasurementReporting_r18_10 = { + "locationEstimateAndMeasurementReporting-r18", + "locationEstimateAndMeasurementReporting-r18", + &asn_OP_NativeEnumerated, + asn_DEF_locationEstimateAndMeasurementReporting_r18_tags_10, + sizeof(asn_DEF_locationEstimateAndMeasurementReporting_r18_tags_10) + /sizeof(asn_DEF_locationEstimateAndMeasurementReporting_r18_tags_10[0]) - 1, /* 1 */ + asn_DEF_locationEstimateAndMeasurementReporting_r18_tags_10, /* Same as above */ + sizeof(asn_DEF_locationEstimateAndMeasurementReporting_r18_tags_10) + /sizeof(asn_DEF_locationEstimateAndMeasurementReporting_r18_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_locationEstimateAndMeasurementReporting_r18_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_locationEstimateAndMeasurementReporting_r18_specs_10 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_8[] = { + { ATF_POINTER, 2, offsetof(struct CommonIEsProvideCapabilities__ext2, remoteUE_Indication_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "remoteUE-Indication-r18" + }, + { ATF_POINTER, 1, offsetof(struct CommonIEsProvideCapabilities__ext2, locationEstimateAndMeasurementReporting_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_locationEstimateAndMeasurementReporting_r18_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationEstimateAndMeasurementReporting-r18" + }, +}; +static const int asn_MAP_ext2_oms_8[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* remoteUE-Indication-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* locationEstimateAndMeasurementReporting-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_8 = { + sizeof(struct CommonIEsProvideCapabilities__ext2), + offsetof(struct CommonIEsProvideCapabilities__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_8, + 2, /* Count of tags in the map */ + asn_MAP_ext2_oms_8, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_8 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_8, + sizeof(asn_DEF_ext2_tags_8) + /sizeof(asn_DEF_ext2_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_8, /* Same as above */ + sizeof(asn_DEF_ext2_tags_8) + /sizeof(asn_DEF_ext2_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_8, + 2, /* Elements count */ + &asn_SPC_ext2_specs_8 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_CommonIEsProvideCapabilities_1[] = { + { ATF_POINTER, 2, offsetof(struct CommonIEsProvideCapabilities, ext1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_ext1_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct CommonIEsProvideCapabilities, ext2), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext2_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_CommonIEsProvideCapabilities_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_CommonIEsProvideCapabilities_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CommonIEsProvideCapabilities_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CommonIEsProvideCapabilities_specs_1 = { + sizeof(struct CommonIEsProvideCapabilities), + offsetof(struct CommonIEsProvideCapabilities, _asn_ctx), + asn_MAP_CommonIEsProvideCapabilities_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_CommonIEsProvideCapabilities_oms_1, /* Optional members */ + 0, 2, /* Root/Additions */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CommonIEsProvideCapabilities = { + "CommonIEsProvideCapabilities", + "CommonIEsProvideCapabilities", + &asn_OP_SEQUENCE, + asn_DEF_CommonIEsProvideCapabilities_tags_1, + sizeof(asn_DEF_CommonIEsProvideCapabilities_tags_1) + /sizeof(asn_DEF_CommonIEsProvideCapabilities_tags_1[0]), /* 1 */ + asn_DEF_CommonIEsProvideCapabilities_tags_1, /* Same as above */ + sizeof(asn_DEF_CommonIEsProvideCapabilities_tags_1) + /sizeof(asn_DEF_CommonIEsProvideCapabilities_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CommonIEsProvideCapabilities_1, + 2, /* Elements count */ + &asn_SPC_CommonIEsProvideCapabilities_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/CommonIEsProvideCapabilities.h b/asn.1/lpp_generated/CommonIEsProvideCapabilities.h new file mode 100644 index 00000000..914416c1 --- /dev/null +++ b/asn.1/lpp_generated/CommonIEsProvideCapabilities.h @@ -0,0 +1,70 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _CommonIEsProvideCapabilities_H_ +#define _CommonIEsProvideCapabilities_H_ + + +#include + +/* Including external dependencies */ +#include "SegmentationInfo-r14.h" +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum CommonIEsProvideCapabilities__ext1__lpp_message_segmentation_r14 { + CommonIEsProvideCapabilities__ext1__lpp_message_segmentation_r14_serverToTarget = 0, + CommonIEsProvideCapabilities__ext1__lpp_message_segmentation_r14_targetToServer = 1 +} e_CommonIEsProvideCapabilities__ext1__lpp_message_segmentation_r14; +typedef enum CommonIEsProvideCapabilities__ext2__locationEstimateAndMeasurementReporting_r18 { + CommonIEsProvideCapabilities__ext2__locationEstimateAndMeasurementReporting_r18_supported = 0 +} e_CommonIEsProvideCapabilities__ext2__locationEstimateAndMeasurementReporting_r18; + +/* CommonIEsProvideCapabilities */ +typedef struct CommonIEsProvideCapabilities { + /* + * This type is extensible, + * possible extensions are below. + */ + struct CommonIEsProvideCapabilities__ext1 { + SegmentationInfo_r14_t *segmentationInfo_r14; /* OPTIONAL */ + BIT_STRING_t *lpp_message_segmentation_r14; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct CommonIEsProvideCapabilities__ext2 { + BOOLEAN_t *remoteUE_Indication_r18; /* OPTIONAL */ + long *locationEstimateAndMeasurementReporting_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CommonIEsProvideCapabilities_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_locationEstimateAndMeasurementReporting_r18_10; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_CommonIEsProvideCapabilities; +extern asn_SEQUENCE_specifics_t asn_SPC_CommonIEsProvideCapabilities_specs_1; +extern asn_TYPE_member_t asn_MBR_CommonIEsProvideCapabilities_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _CommonIEsProvideCapabilities_H_ */ +#include diff --git a/asn.1/lpp_generated/CommonIEsProvideLocationInformation.c b/asn.1/lpp_generated/CommonIEsProvideLocationInformation.c new file mode 100644 index 00000000..11e1b795 --- /dev/null +++ b/asn.1/lpp_generated/CommonIEsProvideLocationInformation.c @@ -0,0 +1,442 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "CommonIEsProvideLocationInformation.h" + +#include "LocationCoordinates.h" +#include "Velocity.h" +#include "LocationError.h" +#include "IntegrityInfo-r17.h" +static asn_TYPE_member_t asn_MBR_ext1_6[] = { + { ATF_POINTER, 1, offsetof(struct CommonIEsProvideLocationInformation__ext1, earlyFixReport_r12), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EarlyFixReport_r12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "earlyFixReport-r12" + }, +}; +static const int asn_MAP_ext1_oms_6[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* earlyFixReport-r12 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = { + sizeof(struct CommonIEsProvideLocationInformation__ext1), + offsetof(struct CommonIEsProvideLocationInformation__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_6, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_6, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_6 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_6, + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_6, /* Same as above */ + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_6, + 1, /* Elements count */ + &asn_SPC_ext1_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_8[] = { + { ATF_POINTER, 2, offsetof(struct CommonIEsProvideLocationInformation__ext2, locationSource_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationSource_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationSource-r13" + }, + { ATF_POINTER, 1, offsetof(struct CommonIEsProvideLocationInformation__ext2, locationTimestamp_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTCTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationTimestamp-r13" + }, +}; +static const int asn_MAP_ext2_oms_8[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationSource-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* locationTimestamp-r13 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_8 = { + sizeof(struct CommonIEsProvideLocationInformation__ext2), + offsetof(struct CommonIEsProvideLocationInformation__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_8, + 2, /* Count of tags in the map */ + asn_MAP_ext2_oms_8, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_8 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_8, + sizeof(asn_DEF_ext2_tags_8) + /sizeof(asn_DEF_ext2_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_8, /* Same as above */ + sizeof(asn_DEF_ext2_tags_8) + /sizeof(asn_DEF_ext2_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_8, + 2, /* Elements count */ + &asn_SPC_ext2_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_11[] = { + { ATF_POINTER, 1, offsetof(struct CommonIEsProvideLocationInformation__ext3, segmentationInfo_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SegmentationInfo_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "segmentationInfo-r14" + }, +}; +static const int asn_MAP_ext3_oms_11[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* segmentationInfo-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_11 = { + sizeof(struct CommonIEsProvideLocationInformation__ext3), + offsetof(struct CommonIEsProvideLocationInformation__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_11, + 1, /* Count of tags in the map */ + asn_MAP_ext3_oms_11, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_11 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_11, + sizeof(asn_DEF_ext3_tags_11) + /sizeof(asn_DEF_ext3_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_11, /* Same as above */ + sizeof(asn_DEF_ext3_tags_11) + /sizeof(asn_DEF_ext3_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_11, + 1, /* Elements count */ + &asn_SPC_ext3_specs_11 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext4_13[] = { + { ATF_POINTER, 1, offsetof(struct CommonIEsProvideLocationInformation__ext4, integrityInfo_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_IntegrityInfo_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "integrityInfo-r17" + }, +}; +static const int asn_MAP_ext4_oms_13[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext4_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext4_tag2el_13[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* integrityInfo-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext4_specs_13 = { + sizeof(struct CommonIEsProvideLocationInformation__ext4), + offsetof(struct CommonIEsProvideLocationInformation__ext4, _asn_ctx), + asn_MAP_ext4_tag2el_13, + 1, /* Count of tags in the map */ + asn_MAP_ext4_oms_13, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext4_13 = { + "ext4", + "ext4", + &asn_OP_SEQUENCE, + asn_DEF_ext4_tags_13, + sizeof(asn_DEF_ext4_tags_13) + /sizeof(asn_DEF_ext4_tags_13[0]) - 1, /* 1 */ + asn_DEF_ext4_tags_13, /* Same as above */ + sizeof(asn_DEF_ext4_tags_13) + /sizeof(asn_DEF_ext4_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext4_13, + 1, /* Elements count */ + &asn_SPC_ext4_specs_13 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_CommonIEsProvideLocationInformation_1[] = { + { ATF_POINTER, 7, offsetof(struct CommonIEsProvideLocationInformation, locationEstimate), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_LocationCoordinates, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationEstimate" + }, + { ATF_POINTER, 6, offsetof(struct CommonIEsProvideLocationInformation, velocityEstimate), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_Velocity, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "velocityEstimate" + }, + { ATF_POINTER, 5, offsetof(struct CommonIEsProvideLocationInformation, locationError), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationError, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationError" + }, + { ATF_POINTER, 4, offsetof(struct CommonIEsProvideLocationInformation, ext1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext1_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 3, offsetof(struct CommonIEsProvideLocationInformation, ext2), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext2_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 2, offsetof(struct CommonIEsProvideLocationInformation, ext3), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext3_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, + { ATF_POINTER, 1, offsetof(struct CommonIEsProvideLocationInformation, ext4), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext4_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext4" + }, +}; +static const int asn_MAP_CommonIEsProvideLocationInformation_oms_1[] = { 0, 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_CommonIEsProvideLocationInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CommonIEsProvideLocationInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationEstimate */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* velocityEstimate */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* locationError */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext3 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext4 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CommonIEsProvideLocationInformation_specs_1 = { + sizeof(struct CommonIEsProvideLocationInformation), + offsetof(struct CommonIEsProvideLocationInformation, _asn_ctx), + asn_MAP_CommonIEsProvideLocationInformation_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_CommonIEsProvideLocationInformation_oms_1, /* Optional members */ + 3, 4, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CommonIEsProvideLocationInformation = { + "CommonIEsProvideLocationInformation", + "CommonIEsProvideLocationInformation", + &asn_OP_SEQUENCE, + asn_DEF_CommonIEsProvideLocationInformation_tags_1, + sizeof(asn_DEF_CommonIEsProvideLocationInformation_tags_1) + /sizeof(asn_DEF_CommonIEsProvideLocationInformation_tags_1[0]), /* 1 */ + asn_DEF_CommonIEsProvideLocationInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_CommonIEsProvideLocationInformation_tags_1) + /sizeof(asn_DEF_CommonIEsProvideLocationInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CommonIEsProvideLocationInformation_1, + 7, /* Elements count */ + &asn_SPC_CommonIEsProvideLocationInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/CommonIEsProvideLocationInformation.h b/asn.1/lpp_generated/CommonIEsProvideLocationInformation.h new file mode 100644 index 00000000..b9d5b817 --- /dev/null +++ b/asn.1/lpp_generated/CommonIEsProvideLocationInformation.h @@ -0,0 +1,80 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _CommonIEsProvideLocationInformation_H_ +#define _CommonIEsProvideLocationInformation_H_ + + +#include + +/* Including external dependencies */ +#include "EarlyFixReport-r12.h" +#include +#include "LocationSource-r13.h" +#include +#include "SegmentationInfo-r14.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct LocationCoordinates; +struct Velocity; +struct LocationError; +struct IntegrityInfo_r17; + +/* CommonIEsProvideLocationInformation */ +typedef struct CommonIEsProvideLocationInformation { + struct LocationCoordinates *locationEstimate; /* OPTIONAL */ + struct Velocity *velocityEstimate; /* OPTIONAL */ + struct LocationError *locationError; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct CommonIEsProvideLocationInformation__ext1 { + EarlyFixReport_r12_t *earlyFixReport_r12; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct CommonIEsProvideLocationInformation__ext2 { + LocationSource_r13_t *locationSource_r13; /* OPTIONAL */ + UTCTime_t *locationTimestamp_r13; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct CommonIEsProvideLocationInformation__ext3 { + SegmentationInfo_r14_t *segmentationInfo_r14; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + struct CommonIEsProvideLocationInformation__ext4 { + struct IntegrityInfo_r17 *integrityInfo_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext4; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CommonIEsProvideLocationInformation_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CommonIEsProvideLocationInformation; +extern asn_SEQUENCE_specifics_t asn_SPC_CommonIEsProvideLocationInformation_specs_1; +extern asn_TYPE_member_t asn_MBR_CommonIEsProvideLocationInformation_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _CommonIEsProvideLocationInformation_H_ */ +#include diff --git a/asn.1/lpp_generated/CommonIEsRequestAssistanceData.c b/asn.1/lpp_generated/CommonIEsRequestAssistanceData.c new file mode 100644 index 00000000..c691124a --- /dev/null +++ b/asn.1/lpp_generated/CommonIEsRequestAssistanceData.c @@ -0,0 +1,247 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "CommonIEsRequestAssistanceData.h" + +#include "ECGI.h" +#include "PeriodicAssistanceDataControlParameters-r15.h" +#include "NCGI-r15.h" +static asn_TYPE_member_t asn_MBR_ext1_4[] = { + { ATF_POINTER, 1, offsetof(struct CommonIEsRequestAssistanceData__ext1, segmentationInfo_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SegmentationInfo_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "segmentationInfo-r14" + }, +}; +static const int asn_MAP_ext1_oms_4[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* segmentationInfo-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { + sizeof(struct CommonIEsRequestAssistanceData__ext1), + offsetof(struct CommonIEsRequestAssistanceData__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_4, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_4, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_4 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_4, + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_4, /* Same as above */ + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_4, + 1, /* Elements count */ + &asn_SPC_ext1_specs_4 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_6[] = { + { ATF_POINTER, 2, offsetof(struct CommonIEsRequestAssistanceData__ext2, periodicAssistanceDataReq_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PeriodicAssistanceDataControlParameters_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "periodicAssistanceDataReq-r15" + }, + { ATF_POINTER, 1, offsetof(struct CommonIEsRequestAssistanceData__ext2, primaryCellID_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "primaryCellID-r15" + }, +}; +static const int asn_MAP_ext2_oms_6[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* periodicAssistanceDataReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* primaryCellID-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_6 = { + sizeof(struct CommonIEsRequestAssistanceData__ext2), + offsetof(struct CommonIEsRequestAssistanceData__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_6, + 2, /* Count of tags in the map */ + asn_MAP_ext2_oms_6, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_6 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_6, + sizeof(asn_DEF_ext2_tags_6) + /sizeof(asn_DEF_ext2_tags_6[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_6, /* Same as above */ + sizeof(asn_DEF_ext2_tags_6) + /sizeof(asn_DEF_ext2_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_6, + 2, /* Elements count */ + &asn_SPC_ext2_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_CommonIEsRequestAssistanceData_1[] = { + { ATF_POINTER, 3, offsetof(struct CommonIEsRequestAssistanceData, primaryCellID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ECGI, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "primaryCellID" + }, + { ATF_POINTER, 2, offsetof(struct CommonIEsRequestAssistanceData, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct CommonIEsRequestAssistanceData, ext2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext2_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_CommonIEsRequestAssistanceData_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_CommonIEsRequestAssistanceData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CommonIEsRequestAssistanceData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* primaryCellID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CommonIEsRequestAssistanceData_specs_1 = { + sizeof(struct CommonIEsRequestAssistanceData), + offsetof(struct CommonIEsRequestAssistanceData, _asn_ctx), + asn_MAP_CommonIEsRequestAssistanceData_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_CommonIEsRequestAssistanceData_oms_1, /* Optional members */ + 1, 2, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CommonIEsRequestAssistanceData = { + "CommonIEsRequestAssistanceData", + "CommonIEsRequestAssistanceData", + &asn_OP_SEQUENCE, + asn_DEF_CommonIEsRequestAssistanceData_tags_1, + sizeof(asn_DEF_CommonIEsRequestAssistanceData_tags_1) + /sizeof(asn_DEF_CommonIEsRequestAssistanceData_tags_1[0]), /* 1 */ + asn_DEF_CommonIEsRequestAssistanceData_tags_1, /* Same as above */ + sizeof(asn_DEF_CommonIEsRequestAssistanceData_tags_1) + /sizeof(asn_DEF_CommonIEsRequestAssistanceData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CommonIEsRequestAssistanceData_1, + 3, /* Elements count */ + &asn_SPC_CommonIEsRequestAssistanceData_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/CommonIEsRequestAssistanceData.h b/asn.1/lpp_generated/CommonIEsRequestAssistanceData.h new file mode 100644 index 00000000..3c751710 --- /dev/null +++ b/asn.1/lpp_generated/CommonIEsRequestAssistanceData.h @@ -0,0 +1,62 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _CommonIEsRequestAssistanceData_H_ +#define _CommonIEsRequestAssistanceData_H_ + + +#include + +/* Including external dependencies */ +#include "SegmentationInfo-r14.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ECGI; +struct PeriodicAssistanceDataControlParameters_r15; +struct NCGI_r15; + +/* CommonIEsRequestAssistanceData */ +typedef struct CommonIEsRequestAssistanceData { + struct ECGI *primaryCellID; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct CommonIEsRequestAssistanceData__ext1 { + SegmentationInfo_r14_t *segmentationInfo_r14; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct CommonIEsRequestAssistanceData__ext2 { + struct PeriodicAssistanceDataControlParameters_r15 *periodicAssistanceDataReq_r15; /* OPTIONAL */ + struct NCGI_r15 *primaryCellID_r15; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CommonIEsRequestAssistanceData_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CommonIEsRequestAssistanceData; +extern asn_SEQUENCE_specifics_t asn_SPC_CommonIEsRequestAssistanceData_specs_1; +extern asn_TYPE_member_t asn_MBR_CommonIEsRequestAssistanceData_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _CommonIEsRequestAssistanceData_H_ */ +#include diff --git a/asn.1/lpp_generated/CommonIEsRequestCapabilities.c b/asn.1/lpp_generated/CommonIEsRequestCapabilities.c new file mode 100644 index 00000000..1c6f7397 --- /dev/null +++ b/asn.1/lpp_generated/CommonIEsRequestCapabilities.c @@ -0,0 +1,262 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "CommonIEsRequestCapabilities.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_remoteUE_IndicationReq_r18_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_3[] = { + { ATF_POINTER, 1, offsetof(struct CommonIEsRequestCapabilities__ext1, lpp_message_segmentation_req_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lpp-message-segmentation-req-r14" + }, +}; +static const int asn_MAP_ext1_oms_3[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* lpp-message-segmentation-req-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_3 = { + sizeof(struct CommonIEsRequestCapabilities__ext1), + offsetof(struct CommonIEsRequestCapabilities__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_3, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_3, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_3 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_3, + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_3, /* Same as above */ + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_3, + 1, /* Elements count */ + &asn_SPC_ext1_specs_3 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_remoteUE_IndicationReq_r18_value2enum_8[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_remoteUE_IndicationReq_r18_enum2value_8[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_remoteUE_IndicationReq_r18_specs_8 = { + asn_MAP_remoteUE_IndicationReq_r18_value2enum_8, /* "tag" => N; sorted by tag */ + asn_MAP_remoteUE_IndicationReq_r18_enum2value_8, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_remoteUE_IndicationReq_r18_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_remoteUE_IndicationReq_r18_8 = { + "remoteUE-IndicationReq-r18", + "remoteUE-IndicationReq-r18", + &asn_OP_NativeEnumerated, + asn_DEF_remoteUE_IndicationReq_r18_tags_8, + sizeof(asn_DEF_remoteUE_IndicationReq_r18_tags_8) + /sizeof(asn_DEF_remoteUE_IndicationReq_r18_tags_8[0]) - 1, /* 1 */ + asn_DEF_remoteUE_IndicationReq_r18_tags_8, /* Same as above */ + sizeof(asn_DEF_remoteUE_IndicationReq_r18_tags_8) + /sizeof(asn_DEF_remoteUE_IndicationReq_r18_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_remoteUE_IndicationReq_r18_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_remoteUE_IndicationReq_r18_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_7[] = { + { ATF_POINTER, 1, offsetof(struct CommonIEsRequestCapabilities__ext2, remoteUE_IndicationReq_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_remoteUE_IndicationReq_r18_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "remoteUE-IndicationReq-r18" + }, +}; +static const int asn_MAP_ext2_oms_7[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* remoteUE-IndicationReq-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_7 = { + sizeof(struct CommonIEsRequestCapabilities__ext2), + offsetof(struct CommonIEsRequestCapabilities__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_7, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_7, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_7 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_7, + sizeof(asn_DEF_ext2_tags_7) + /sizeof(asn_DEF_ext2_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_7, /* Same as above */ + sizeof(asn_DEF_ext2_tags_7) + /sizeof(asn_DEF_ext2_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_7, + 1, /* Elements count */ + &asn_SPC_ext2_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_CommonIEsRequestCapabilities_1[] = { + { ATF_POINTER, 2, offsetof(struct CommonIEsRequestCapabilities, ext1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_ext1_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct CommonIEsRequestCapabilities, ext2), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext2_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_CommonIEsRequestCapabilities_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_CommonIEsRequestCapabilities_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CommonIEsRequestCapabilities_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CommonIEsRequestCapabilities_specs_1 = { + sizeof(struct CommonIEsRequestCapabilities), + offsetof(struct CommonIEsRequestCapabilities, _asn_ctx), + asn_MAP_CommonIEsRequestCapabilities_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_CommonIEsRequestCapabilities_oms_1, /* Optional members */ + 0, 2, /* Root/Additions */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CommonIEsRequestCapabilities = { + "CommonIEsRequestCapabilities", + "CommonIEsRequestCapabilities", + &asn_OP_SEQUENCE, + asn_DEF_CommonIEsRequestCapabilities_tags_1, + sizeof(asn_DEF_CommonIEsRequestCapabilities_tags_1) + /sizeof(asn_DEF_CommonIEsRequestCapabilities_tags_1[0]), /* 1 */ + asn_DEF_CommonIEsRequestCapabilities_tags_1, /* Same as above */ + sizeof(asn_DEF_CommonIEsRequestCapabilities_tags_1) + /sizeof(asn_DEF_CommonIEsRequestCapabilities_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CommonIEsRequestCapabilities_1, + 2, /* Elements count */ + &asn_SPC_CommonIEsRequestCapabilities_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/CommonIEsRequestCapabilities.h b/asn.1/lpp_generated/CommonIEsRequestCapabilities.h new file mode 100644 index 00000000..a206709b --- /dev/null +++ b/asn.1/lpp_generated/CommonIEsRequestCapabilities.h @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _CommonIEsRequestCapabilities_H_ +#define _CommonIEsRequestCapabilities_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum CommonIEsRequestCapabilities__ext1__lpp_message_segmentation_req_r14 { + CommonIEsRequestCapabilities__ext1__lpp_message_segmentation_req_r14_serverToTarget = 0, + CommonIEsRequestCapabilities__ext1__lpp_message_segmentation_req_r14_targetToServer = 1 +} e_CommonIEsRequestCapabilities__ext1__lpp_message_segmentation_req_r14; +typedef enum CommonIEsRequestCapabilities__ext2__remoteUE_IndicationReq_r18 { + CommonIEsRequestCapabilities__ext2__remoteUE_IndicationReq_r18_true = 0 +} e_CommonIEsRequestCapabilities__ext2__remoteUE_IndicationReq_r18; + +/* CommonIEsRequestCapabilities */ +typedef struct CommonIEsRequestCapabilities { + /* + * This type is extensible, + * possible extensions are below. + */ + struct CommonIEsRequestCapabilities__ext1 { + BIT_STRING_t *lpp_message_segmentation_req_r14; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct CommonIEsRequestCapabilities__ext2 { + long *remoteUE_IndicationReq_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CommonIEsRequestCapabilities_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_remoteUE_IndicationReq_r18_8; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_CommonIEsRequestCapabilities; +extern asn_SEQUENCE_specifics_t asn_SPC_CommonIEsRequestCapabilities_specs_1; +extern asn_TYPE_member_t asn_MBR_CommonIEsRequestCapabilities_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _CommonIEsRequestCapabilities_H_ */ +#include diff --git a/asn.1/lpp_generated/CommonIEsRequestLocationInformation.c b/asn.1/lpp_generated/CommonIEsRequestLocationInformation.c new file mode 100644 index 00000000..1131c6a1 --- /dev/null +++ b/asn.1/lpp_generated/CommonIEsRequestLocationInformation.c @@ -0,0 +1,456 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "CommonIEsRequestLocationInformation.h" + +#include "TriggeredReportingCriteria.h" +#include "PeriodicalReportingCriteria.h" +#include "QoS.h" +#include "LocationCoordinateTypes.h" +#include "VelocityTypes.h" +#include "MessageSizeLimitNB-r14.h" +#include "ScheduledLocationTime-r17.h" +static asn_TYPE_member_t asn_MBR_ext1_11[] = { + { ATF_POINTER, 1, offsetof(struct CommonIEsRequestLocationInformation__ext1, messageSizeLimitNB_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MessageSizeLimitNB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "messageSizeLimitNB-r14" + }, +}; +static const int asn_MAP_ext1_oms_11[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* messageSizeLimitNB-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_11 = { + sizeof(struct CommonIEsRequestLocationInformation__ext1), + offsetof(struct CommonIEsRequestLocationInformation__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_11, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_11, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_11 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_11, + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_11, /* Same as above */ + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_11, + 1, /* Elements count */ + &asn_SPC_ext1_specs_11 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_13[] = { + { ATF_POINTER, 1, offsetof(struct CommonIEsRequestLocationInformation__ext2, segmentationInfo_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SegmentationInfo_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "segmentationInfo-r14" + }, +}; +static const int asn_MAP_ext2_oms_13[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_13[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* segmentationInfo-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_13 = { + sizeof(struct CommonIEsRequestLocationInformation__ext2), + offsetof(struct CommonIEsRequestLocationInformation__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_13, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_13, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_13 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_13, + sizeof(asn_DEF_ext2_tags_13) + /sizeof(asn_DEF_ext2_tags_13[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_13, /* Same as above */ + sizeof(asn_DEF_ext2_tags_13) + /sizeof(asn_DEF_ext2_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_13, + 1, /* Elements count */ + &asn_SPC_ext2_specs_13 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_15[] = { + { ATF_POINTER, 2, offsetof(struct CommonIEsRequestLocationInformation__ext3, scheduledLocationTime_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ScheduledLocationTime_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scheduledLocationTime-r17" + }, + { ATF_POINTER, 1, offsetof(struct CommonIEsRequestLocationInformation__ext3, targetIntegrityRisk_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TargetIntegrityRisk_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "targetIntegrityRisk-r17" + }, +}; +static const int asn_MAP_ext3_oms_15[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_15[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* scheduledLocationTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetIntegrityRisk-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_15 = { + sizeof(struct CommonIEsRequestLocationInformation__ext3), + offsetof(struct CommonIEsRequestLocationInformation__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_15, + 2, /* Count of tags in the map */ + asn_MAP_ext3_oms_15, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_15 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_15, + sizeof(asn_DEF_ext3_tags_15) + /sizeof(asn_DEF_ext3_tags_15[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_15, /* Same as above */ + sizeof(asn_DEF_ext3_tags_15) + /sizeof(asn_DEF_ext3_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_15, + 2, /* Elements count */ + &asn_SPC_ext3_specs_15 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_CommonIEsRequestLocationInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CommonIEsRequestLocationInformation, locationInformationType), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationInformationType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationInformationType" + }, + { ATF_POINTER, 10, offsetof(struct CommonIEsRequestLocationInformation, triggeredReporting), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TriggeredReportingCriteria, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "triggeredReporting" + }, + { ATF_POINTER, 9, offsetof(struct CommonIEsRequestLocationInformation, periodicalReporting), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PeriodicalReportingCriteria, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "periodicalReporting" + }, + { ATF_POINTER, 8, offsetof(struct CommonIEsRequestLocationInformation, additionalInformation), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AdditionalInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "additionalInformation" + }, + { ATF_POINTER, 7, offsetof(struct CommonIEsRequestLocationInformation, qos), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_QoS, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "qos" + }, + { ATF_POINTER, 6, offsetof(struct CommonIEsRequestLocationInformation, environment), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Environment, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "environment" + }, + { ATF_POINTER, 5, offsetof(struct CommonIEsRequestLocationInformation, locationCoordinateTypes), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationCoordinateTypes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationCoordinateTypes" + }, + { ATF_POINTER, 4, offsetof(struct CommonIEsRequestLocationInformation, velocityTypes), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VelocityTypes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "velocityTypes" + }, + { ATF_POINTER, 3, offsetof(struct CommonIEsRequestLocationInformation, ext1), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + 0, + &asn_DEF_ext1_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 2, offsetof(struct CommonIEsRequestLocationInformation, ext2), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + 0, + &asn_DEF_ext2_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 1, offsetof(struct CommonIEsRequestLocationInformation, ext3), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + 0, + &asn_DEF_ext3_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, +}; +static const int asn_MAP_CommonIEsRequestLocationInformation_oms_1[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; +static const ber_tlv_tag_t asn_DEF_CommonIEsRequestLocationInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CommonIEsRequestLocationInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationInformationType */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* triggeredReporting */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* periodicalReporting */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* additionalInformation */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* qos */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* environment */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* locationCoordinateTypes */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* velocityTypes */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 } /* ext3 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CommonIEsRequestLocationInformation_specs_1 = { + sizeof(struct CommonIEsRequestLocationInformation), + offsetof(struct CommonIEsRequestLocationInformation, _asn_ctx), + asn_MAP_CommonIEsRequestLocationInformation_tag2el_1, + 11, /* Count of tags in the map */ + asn_MAP_CommonIEsRequestLocationInformation_oms_1, /* Optional members */ + 7, 3, /* Root/Additions */ + 8, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CommonIEsRequestLocationInformation = { + "CommonIEsRequestLocationInformation", + "CommonIEsRequestLocationInformation", + &asn_OP_SEQUENCE, + asn_DEF_CommonIEsRequestLocationInformation_tags_1, + sizeof(asn_DEF_CommonIEsRequestLocationInformation_tags_1) + /sizeof(asn_DEF_CommonIEsRequestLocationInformation_tags_1[0]), /* 1 */ + asn_DEF_CommonIEsRequestLocationInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_CommonIEsRequestLocationInformation_tags_1) + /sizeof(asn_DEF_CommonIEsRequestLocationInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CommonIEsRequestLocationInformation_1, + 11, /* Elements count */ + &asn_SPC_CommonIEsRequestLocationInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/CommonIEsRequestLocationInformation.h b/asn.1/lpp_generated/CommonIEsRequestLocationInformation.h new file mode 100644 index 00000000..92e4bff8 --- /dev/null +++ b/asn.1/lpp_generated/CommonIEsRequestLocationInformation.h @@ -0,0 +1,83 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _CommonIEsRequestLocationInformation_H_ +#define _CommonIEsRequestLocationInformation_H_ + + +#include + +/* Including external dependencies */ +#include "LocationInformationType.h" +#include "AdditionalInformation.h" +#include "Environment.h" +#include +#include "SegmentationInfo-r14.h" +#include "TargetIntegrityRisk-r17.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct TriggeredReportingCriteria; +struct PeriodicalReportingCriteria; +struct QoS; +struct LocationCoordinateTypes; +struct VelocityTypes; +struct MessageSizeLimitNB_r14; +struct ScheduledLocationTime_r17; + +/* CommonIEsRequestLocationInformation */ +typedef struct CommonIEsRequestLocationInformation { + LocationInformationType_t locationInformationType; + struct TriggeredReportingCriteria *triggeredReporting; /* OPTIONAL */ + struct PeriodicalReportingCriteria *periodicalReporting; /* OPTIONAL */ + AdditionalInformation_t *additionalInformation; /* OPTIONAL */ + struct QoS *qos; /* OPTIONAL */ + Environment_t *environment; /* OPTIONAL */ + struct LocationCoordinateTypes *locationCoordinateTypes; /* OPTIONAL */ + struct VelocityTypes *velocityTypes; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct CommonIEsRequestLocationInformation__ext1 { + struct MessageSizeLimitNB_r14 *messageSizeLimitNB_r14; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct CommonIEsRequestLocationInformation__ext2 { + SegmentationInfo_r14_t *segmentationInfo_r14; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct CommonIEsRequestLocationInformation__ext3 { + struct ScheduledLocationTime_r17 *scheduledLocationTime_r17; /* OPTIONAL */ + TargetIntegrityRisk_r17_t *targetIntegrityRisk_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CommonIEsRequestLocationInformation_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CommonIEsRequestLocationInformation; +extern asn_SEQUENCE_specifics_t asn_SPC_CommonIEsRequestLocationInformation_specs_1; +extern asn_TYPE_member_t asn_MBR_CommonIEsRequestLocationInformation_1[11]; + +#ifdef __cplusplus +} +#endif + +#endif /* _CommonIEsRequestLocationInformation_H_ */ +#include diff --git a/asn.1/lpp_generated/DBDS-CorrectionElement-r12.c b/asn.1/lpp_generated/DBDS-CorrectionElement-r12.c new file mode 100644 index 00000000..ecf8ed87 --- /dev/null +++ b/asn.1/lpp_generated/DBDS-CorrectionElement-r12.c @@ -0,0 +1,216 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DBDS-CorrectionElement-r12.h" + +static int +memb_bds_UDREI_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bds_RURAI_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bds_ECC_DeltaT_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -4096L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bds_UDREI_r12_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bds_RURAI_r12_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bds_ECC_DeltaT_r12_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_DBDS_CorrectionElement_r12_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DBDS_CorrectionElement_r12, svID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID" + }, + { ATF_NOFLAGS, 0, offsetof(struct DBDS_CorrectionElement_r12, bds_UDREI_r12), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bds_UDREI_r12_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bds_UDREI_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bds-UDREI-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct DBDS_CorrectionElement_r12, bds_RURAI_r12), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bds_RURAI_r12_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bds_RURAI_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bds-RURAI-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct DBDS_CorrectionElement_r12, bds_ECC_DeltaT_r12), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bds_ECC_DeltaT_r12_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bds_ECC_DeltaT_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bds-ECC-DeltaT-r12" + }, +}; +static const ber_tlv_tag_t asn_DEF_DBDS_CorrectionElement_r12_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DBDS_CorrectionElement_r12_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bds-UDREI-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bds-RURAI-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* bds-ECC-DeltaT-r12 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DBDS_CorrectionElement_r12_specs_1 = { + sizeof(struct DBDS_CorrectionElement_r12), + offsetof(struct DBDS_CorrectionElement_r12, _asn_ctx), + asn_MAP_DBDS_CorrectionElement_r12_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DBDS_CorrectionElement_r12 = { + "DBDS-CorrectionElement-r12", + "DBDS-CorrectionElement-r12", + &asn_OP_SEQUENCE, + asn_DEF_DBDS_CorrectionElement_r12_tags_1, + sizeof(asn_DEF_DBDS_CorrectionElement_r12_tags_1) + /sizeof(asn_DEF_DBDS_CorrectionElement_r12_tags_1[0]), /* 1 */ + asn_DEF_DBDS_CorrectionElement_r12_tags_1, /* Same as above */ + sizeof(asn_DEF_DBDS_CorrectionElement_r12_tags_1) + /sizeof(asn_DEF_DBDS_CorrectionElement_r12_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DBDS_CorrectionElement_r12_1, + 4, /* Elements count */ + &asn_SPC_DBDS_CorrectionElement_r12_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/DBDS-CorrectionElement-r12.h b/asn.1/lpp_generated/DBDS-CorrectionElement-r12.h similarity index 80% rename from asn.1/generated/DBDS-CorrectionElement-r12.h rename to asn.1/lpp_generated/DBDS-CorrectionElement-r12.h index 080ca903..d34f901f 100644 --- a/asn.1/generated/DBDS-CorrectionElement-r12.h +++ b/asn.1/lpp_generated/DBDS-CorrectionElement-r12.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _DBDS_CorrectionElement_r12_H_ diff --git a/asn.1/lpp_generated/DBDS-CorrectionList-r12.c b/asn.1/lpp_generated/DBDS-CorrectionList-r12.c new file mode 100644 index 00000000..6bdca66a --- /dev/null +++ b/asn.1/lpp_generated/DBDS-CorrectionList-r12.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DBDS-CorrectionList-r12.h" + +#include "DBDS-CorrectionElement-r12.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DBDS_CorrectionList_r12_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_DBDS_CorrectionList_r12_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DBDS_CorrectionElement_r12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_DBDS_CorrectionList_r12_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_DBDS_CorrectionList_r12_specs_1 = { + sizeof(struct DBDS_CorrectionList_r12), + offsetof(struct DBDS_CorrectionList_r12, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_DBDS_CorrectionList_r12 = { + "DBDS-CorrectionList-r12", + "DBDS-CorrectionList-r12", + &asn_OP_SEQUENCE_OF, + asn_DEF_DBDS_CorrectionList_r12_tags_1, + sizeof(asn_DEF_DBDS_CorrectionList_r12_tags_1) + /sizeof(asn_DEF_DBDS_CorrectionList_r12_tags_1[0]), /* 1 */ + asn_DEF_DBDS_CorrectionList_r12_tags_1, /* Same as above */ + sizeof(asn_DEF_DBDS_CorrectionList_r12_tags_1) + /sizeof(asn_DEF_DBDS_CorrectionList_r12_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DBDS_CorrectionList_r12_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_DBDS_CorrectionList_r12_1, + 1, /* Single element */ + &asn_SPC_DBDS_CorrectionList_r12_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/DBDS-CorrectionList-r12.h b/asn.1/lpp_generated/DBDS-CorrectionList-r12.h similarity index 80% rename from asn.1/generated/DBDS-CorrectionList-r12.h rename to asn.1/lpp_generated/DBDS-CorrectionList-r12.h index dba015c5..0192d06f 100644 --- a/asn.1/generated/DBDS-CorrectionList-r12.h +++ b/asn.1/lpp_generated/DBDS-CorrectionList-r12.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _DBDS_CorrectionList_r12_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_DBDS_CorrectionList_r12_constr_1; } #endif -/* Referred external types */ -#include "DBDS-CorrectionElement-r12.h" - #endif /* _DBDS_CorrectionList_r12_H_ */ #include diff --git a/asn.1/lpp_generated/DGNSS-CorrectionsElement.c b/asn.1/lpp_generated/DGNSS-CorrectionsElement.c new file mode 100644 index 00000000..74470936 --- /dev/null +++ b/asn.1/lpp_generated/DGNSS-CorrectionsElement.c @@ -0,0 +1,374 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DGNSS-CorrectionsElement.h" + +static int +memb_iod_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 11UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_udre_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_pseudoRangeCor_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2047L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_rangeRateCor_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -127L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_udreGrowthRate_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_udreValidityTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_iod_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 11, 11 } /* (SIZE(11..11)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_udre_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_pseudoRangeCor_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, -2047, 2047 } /* (-2047..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rangeRateCor_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -127, 127 } /* (-127..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_udreGrowthRate_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_udreValidityTime_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_DGNSS_CorrectionsElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DGNSS_CorrectionsElement, svID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID" + }, + { ATF_NOFLAGS, 0, offsetof(struct DGNSS_CorrectionsElement, iod), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_iod_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_iod_constraint_1 + }, + 0, 0, /* No default value */ + "iod" + }, + { ATF_NOFLAGS, 0, offsetof(struct DGNSS_CorrectionsElement, udre), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_udre_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_udre_constraint_1 + }, + 0, 0, /* No default value */ + "udre" + }, + { ATF_NOFLAGS, 0, offsetof(struct DGNSS_CorrectionsElement, pseudoRangeCor), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_pseudoRangeCor_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_pseudoRangeCor_constraint_1 + }, + 0, 0, /* No default value */ + "pseudoRangeCor" + }, + { ATF_NOFLAGS, 0, offsetof(struct DGNSS_CorrectionsElement, rangeRateCor), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rangeRateCor_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rangeRateCor_constraint_1 + }, + 0, 0, /* No default value */ + "rangeRateCor" + }, + { ATF_POINTER, 2, offsetof(struct DGNSS_CorrectionsElement, udreGrowthRate), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_udreGrowthRate_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_udreGrowthRate_constraint_1 + }, + 0, 0, /* No default value */ + "udreGrowthRate" + }, + { ATF_POINTER, 1, offsetof(struct DGNSS_CorrectionsElement, udreValidityTime), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_udreValidityTime_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_udreValidityTime_constraint_1 + }, + 0, 0, /* No default value */ + "udreValidityTime" + }, +}; +static const int asn_MAP_DGNSS_CorrectionsElement_oms_1[] = { 5, 6 }; +static const ber_tlv_tag_t asn_DEF_DGNSS_CorrectionsElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DGNSS_CorrectionsElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* iod */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* udre */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* pseudoRangeCor */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rangeRateCor */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* udreGrowthRate */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* udreValidityTime */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DGNSS_CorrectionsElement_specs_1 = { + sizeof(struct DGNSS_CorrectionsElement), + offsetof(struct DGNSS_CorrectionsElement, _asn_ctx), + asn_MAP_DGNSS_CorrectionsElement_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_DGNSS_CorrectionsElement_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DGNSS_CorrectionsElement = { + "DGNSS-CorrectionsElement", + "DGNSS-CorrectionsElement", + &asn_OP_SEQUENCE, + asn_DEF_DGNSS_CorrectionsElement_tags_1, + sizeof(asn_DEF_DGNSS_CorrectionsElement_tags_1) + /sizeof(asn_DEF_DGNSS_CorrectionsElement_tags_1[0]), /* 1 */ + asn_DEF_DGNSS_CorrectionsElement_tags_1, /* Same as above */ + sizeof(asn_DEF_DGNSS_CorrectionsElement_tags_1) + /sizeof(asn_DEF_DGNSS_CorrectionsElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DGNSS_CorrectionsElement_1, + 7, /* Elements count */ + &asn_SPC_DGNSS_CorrectionsElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/DGNSS-CorrectionsElement.h b/asn.1/lpp_generated/DGNSS-CorrectionsElement.h similarity index 76% rename from asn.1/generated/DGNSS-CorrectionsElement.h rename to asn.1/lpp_generated/DGNSS-CorrectionsElement.h index 32918347..0d72cd79 100644 --- a/asn.1/generated/DGNSS-CorrectionsElement.h +++ b/asn.1/lpp_generated/DGNSS-CorrectionsElement.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _DGNSS_CorrectionsElement_H_ @@ -28,8 +28,8 @@ typedef struct DGNSS_CorrectionsElement { long udre; long pseudoRangeCor; long rangeRateCor; - long *udreGrowthRate /* OPTIONAL */; - long *udreValidityTime /* OPTIONAL */; + long *udreGrowthRate; /* OPTIONAL */ + long *udreValidityTime; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/DGNSS-SatList.c b/asn.1/lpp_generated/DGNSS-SatList.c new file mode 100644 index 00000000..6345c557 --- /dev/null +++ b/asn.1/lpp_generated/DGNSS-SatList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DGNSS-SatList.h" + +#include "DGNSS-CorrectionsElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DGNSS_SatList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_DGNSS_SatList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DGNSS_CorrectionsElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_DGNSS_SatList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_DGNSS_SatList_specs_1 = { + sizeof(struct DGNSS_SatList), + offsetof(struct DGNSS_SatList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_DGNSS_SatList = { + "DGNSS-SatList", + "DGNSS-SatList", + &asn_OP_SEQUENCE_OF, + asn_DEF_DGNSS_SatList_tags_1, + sizeof(asn_DEF_DGNSS_SatList_tags_1) + /sizeof(asn_DEF_DGNSS_SatList_tags_1[0]), /* 1 */ + asn_DEF_DGNSS_SatList_tags_1, /* Same as above */ + sizeof(asn_DEF_DGNSS_SatList_tags_1) + /sizeof(asn_DEF_DGNSS_SatList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DGNSS_SatList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_DGNSS_SatList_1, + 1, /* Single element */ + &asn_SPC_DGNSS_SatList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/DGNSS-SatList.h b/asn.1/lpp_generated/DGNSS-SatList.h similarity index 78% rename from asn.1/generated/DGNSS-SatList.h rename to asn.1/lpp_generated/DGNSS-SatList.h index 7cc288fb..9c85f608 100644 --- a/asn.1/generated/DGNSS-SatList.h +++ b/asn.1/lpp_generated/DGNSS-SatList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _DGNSS_SatList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_DGNSS_SatList_constr_1; } #endif -/* Referred external types */ -#include "DGNSS-CorrectionsElement.h" - #endif /* _DGNSS_SatList_H_ */ #include diff --git a/asn.1/lpp_generated/DGNSS-SgnTypeElement.c b/asn.1/lpp_generated/DGNSS-SgnTypeElement.c new file mode 100644 index 00000000..cf2349ce --- /dev/null +++ b/asn.1/lpp_generated/DGNSS-SgnTypeElement.c @@ -0,0 +1,134 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DGNSS-SgnTypeElement.h" + +static int +memb_gnss_StatusHealth_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_StatusHealth_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_DGNSS_SgnTypeElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DGNSS_SgnTypeElement, gnss_SignalID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SignalID" + }, + { ATF_NOFLAGS, 0, offsetof(struct DGNSS_SgnTypeElement, gnss_StatusHealth), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_StatusHealth_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_StatusHealth_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-StatusHealth" + }, + { ATF_NOFLAGS, 0, offsetof(struct DGNSS_SgnTypeElement, dgnss_SatList), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DGNSS_SatList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dgnss-SatList" + }, +}; +static const ber_tlv_tag_t asn_DEF_DGNSS_SgnTypeElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DGNSS_SgnTypeElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SignalID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-StatusHealth */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* dgnss-SatList */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DGNSS_SgnTypeElement_specs_1 = { + sizeof(struct DGNSS_SgnTypeElement), + offsetof(struct DGNSS_SgnTypeElement, _asn_ctx), + asn_MAP_DGNSS_SgnTypeElement_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DGNSS_SgnTypeElement = { + "DGNSS-SgnTypeElement", + "DGNSS-SgnTypeElement", + &asn_OP_SEQUENCE, + asn_DEF_DGNSS_SgnTypeElement_tags_1, + sizeof(asn_DEF_DGNSS_SgnTypeElement_tags_1) + /sizeof(asn_DEF_DGNSS_SgnTypeElement_tags_1[0]), /* 1 */ + asn_DEF_DGNSS_SgnTypeElement_tags_1, /* Same as above */ + sizeof(asn_DEF_DGNSS_SgnTypeElement_tags_1) + /sizeof(asn_DEF_DGNSS_SgnTypeElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DGNSS_SgnTypeElement_1, + 3, /* Elements count */ + &asn_SPC_DGNSS_SgnTypeElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/DGNSS-SgnTypeElement.h b/asn.1/lpp_generated/DGNSS-SgnTypeElement.h similarity index 80% rename from asn.1/generated/DGNSS-SgnTypeElement.h rename to asn.1/lpp_generated/DGNSS-SgnTypeElement.h index fe1373d5..fd9472df 100644 --- a/asn.1/generated/DGNSS-SgnTypeElement.h +++ b/asn.1/lpp_generated/DGNSS-SgnTypeElement.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _DGNSS_SgnTypeElement_H_ diff --git a/asn.1/lpp_generated/DGNSS-SgnTypeList.c b/asn.1/lpp_generated/DGNSS-SgnTypeList.c new file mode 100644 index 00000000..d5abcbf0 --- /dev/null +++ b/asn.1/lpp_generated/DGNSS-SgnTypeList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DGNSS-SgnTypeList.h" + +#include "DGNSS-SgnTypeElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DGNSS_SgnTypeList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_DGNSS_SgnTypeList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DGNSS_SgnTypeElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_DGNSS_SgnTypeList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_DGNSS_SgnTypeList_specs_1 = { + sizeof(struct DGNSS_SgnTypeList), + offsetof(struct DGNSS_SgnTypeList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_DGNSS_SgnTypeList = { + "DGNSS-SgnTypeList", + "DGNSS-SgnTypeList", + &asn_OP_SEQUENCE_OF, + asn_DEF_DGNSS_SgnTypeList_tags_1, + sizeof(asn_DEF_DGNSS_SgnTypeList_tags_1) + /sizeof(asn_DEF_DGNSS_SgnTypeList_tags_1[0]), /* 1 */ + asn_DEF_DGNSS_SgnTypeList_tags_1, /* Same as above */ + sizeof(asn_DEF_DGNSS_SgnTypeList_tags_1) + /sizeof(asn_DEF_DGNSS_SgnTypeList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DGNSS_SgnTypeList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_DGNSS_SgnTypeList_1, + 1, /* Single element */ + &asn_SPC_DGNSS_SgnTypeList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/DGNSS-SgnTypeList.h b/asn.1/lpp_generated/DGNSS-SgnTypeList.h similarity index 79% rename from asn.1/generated/DGNSS-SgnTypeList.h rename to asn.1/lpp_generated/DGNSS-SgnTypeList.h index 1ba0dfc1..bf03988e 100644 --- a/asn.1/generated/DGNSS-SgnTypeList.h +++ b/asn.1/lpp_generated/DGNSS-SgnTypeList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _DGNSS_SgnTypeList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_DGNSS_SgnTypeList_constr_1; } #endif -/* Referred external types */ -#include "DGNSS-SgnTypeElement.h" - #endif /* _DGNSS_SgnTypeList_H_ */ #include diff --git a/asn.1/lpp_generated/DL-AoD-MeasCapabilityPerBand-r16.c b/asn.1/lpp_generated/DL-AoD-MeasCapabilityPerBand-r16.c new file mode 100644 index 00000000..b41fde69 --- /dev/null +++ b/asn.1/lpp_generated/DL-AoD-MeasCapabilityPerBand-r16.c @@ -0,0 +1,560 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-AoD-MeasCapabilityPerBand-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_simul_NR_DL_AoD_DL_TDOA_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_simul_NR_DL_AoD_Multi_RTT_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_MeasRRC_Inactive_r17_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfLegacyMeasurementInTimeWindow_r18_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_simul_NR_DL_AoD_DL_TDOA_r16_value2enum_3[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_simul_NR_DL_AoD_DL_TDOA_r16_enum2value_3[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_simul_NR_DL_AoD_DL_TDOA_r16_specs_3 = { + asn_MAP_simul_NR_DL_AoD_DL_TDOA_r16_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_simul_NR_DL_AoD_DL_TDOA_r16_enum2value_3, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_simul_NR_DL_AoD_DL_TDOA_r16_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_simul_NR_DL_AoD_DL_TDOA_r16_3 = { + "simul-NR-DL-AoD-DL-TDOA-r16", + "simul-NR-DL-AoD-DL-TDOA-r16", + &asn_OP_NativeEnumerated, + asn_DEF_simul_NR_DL_AoD_DL_TDOA_r16_tags_3, + sizeof(asn_DEF_simul_NR_DL_AoD_DL_TDOA_r16_tags_3) + /sizeof(asn_DEF_simul_NR_DL_AoD_DL_TDOA_r16_tags_3[0]) - 1, /* 1 */ + asn_DEF_simul_NR_DL_AoD_DL_TDOA_r16_tags_3, /* Same as above */ + sizeof(asn_DEF_simul_NR_DL_AoD_DL_TDOA_r16_tags_3) + /sizeof(asn_DEF_simul_NR_DL_AoD_DL_TDOA_r16_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_simul_NR_DL_AoD_DL_TDOA_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_simul_NR_DL_AoD_DL_TDOA_r16_specs_3 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_simul_NR_DL_AoD_Multi_RTT_r16_value2enum_5[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_simul_NR_DL_AoD_Multi_RTT_r16_enum2value_5[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_simul_NR_DL_AoD_Multi_RTT_r16_specs_5 = { + asn_MAP_simul_NR_DL_AoD_Multi_RTT_r16_value2enum_5, /* "tag" => N; sorted by tag */ + asn_MAP_simul_NR_DL_AoD_Multi_RTT_r16_enum2value_5, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_simul_NR_DL_AoD_Multi_RTT_r16_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_simul_NR_DL_AoD_Multi_RTT_r16_5 = { + "simul-NR-DL-AoD-Multi-RTT-r16", + "simul-NR-DL-AoD-Multi-RTT-r16", + &asn_OP_NativeEnumerated, + asn_DEF_simul_NR_DL_AoD_Multi_RTT_r16_tags_5, + sizeof(asn_DEF_simul_NR_DL_AoD_Multi_RTT_r16_tags_5) + /sizeof(asn_DEF_simul_NR_DL_AoD_Multi_RTT_r16_tags_5[0]) - 1, /* 1 */ + asn_DEF_simul_NR_DL_AoD_Multi_RTT_r16_tags_5, /* Same as above */ + sizeof(asn_DEF_simul_NR_DL_AoD_Multi_RTT_r16_tags_5) + /sizeof(asn_DEF_simul_NR_DL_AoD_Multi_RTT_r16_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_simul_NR_DL_AoD_Multi_RTT_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_simul_NR_DL_AoD_Multi_RTT_r16_specs_5 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_value2enum_9[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n24" } +}; +static const unsigned int asn_MAP_maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_enum2value_9[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n24(5) */ + 2, /* n4(2) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_specs_9 = { + asn_MAP_maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_value2enum_9, /* "tag" => N; sorted by tag */ + asn_MAP_maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_enum2value_9, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_9 = { + "maxDL-PRS-FirstPathRSRP-MeasPerTRP-r17", + "maxDL-PRS-FirstPathRSRP-MeasPerTRP-r17", + &asn_OP_NativeEnumerated, + asn_DEF_maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_tags_9, + sizeof(asn_DEF_maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_tags_9) + /sizeof(asn_DEF_maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_tags_9[0]) - 1, /* 1 */ + asn_DEF_maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_tags_9, /* Same as above */ + sizeof(asn_DEF_maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_tags_9) + /sizeof(asn_DEF_maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_specs_9 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_MeasRRC_Inactive_r17_value2enum_16[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_dl_PRS_MeasRRC_Inactive_r17_enum2value_16[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_MeasRRC_Inactive_r17_specs_16 = { + asn_MAP_dl_PRS_MeasRRC_Inactive_r17_value2enum_16, /* "tag" => N; sorted by tag */ + asn_MAP_dl_PRS_MeasRRC_Inactive_r17_enum2value_16, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_16[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_MeasRRC_Inactive_r17_16 = { + "dl-PRS-MeasRRC-Inactive-r17", + "dl-PRS-MeasRRC-Inactive-r17", + &asn_OP_NativeEnumerated, + asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_16, + sizeof(asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_16) + /sizeof(asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_16[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_16, /* Same as above */ + sizeof(asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_16) + /sizeof(asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_16[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_MeasRRC_Inactive_r17_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_PRS_MeasRRC_Inactive_r17_specs_16 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_8[] = { + { ATF_POINTER, 2, offsetof(struct DL_AoD_MeasCapabilityPerBand_r16__ext1, maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxDL-PRS-FirstPathRSRP-MeasPerTRP-r17" + }, + { ATF_POINTER, 1, offsetof(struct DL_AoD_MeasCapabilityPerBand_r16__ext1, dl_PRS_MeasRRC_Inactive_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_PRS_MeasRRC_Inactive_r17_16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-MeasRRC-Inactive-r17" + }, +}; +static const int asn_MAP_ext1_oms_8[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxDL-PRS-FirstPathRSRP-MeasPerTRP-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dl-PRS-MeasRRC-Inactive-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { + sizeof(struct DL_AoD_MeasCapabilityPerBand_r16__ext1), + offsetof(struct DL_AoD_MeasCapabilityPerBand_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_8, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_8, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_8 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_8, + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_8, /* Same as above */ + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_8, + 2, /* Elements count */ + &asn_SPC_ext1_specs_8 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfLegacyMeasurementInTimeWindow_r18_value2enum_19[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfLegacyMeasurementInTimeWindow_r18_enum2value_19[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfLegacyMeasurementInTimeWindow_r18_specs_19 = { + asn_MAP_supportOfLegacyMeasurementInTimeWindow_r18_value2enum_19, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfLegacyMeasurementInTimeWindow_r18_enum2value_19, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_19[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_19 = { + "supportOfLegacyMeasurementInTimeWindow-r18", + "supportOfLegacyMeasurementInTimeWindow-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_19, + sizeof(asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_19) + /sizeof(asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_19[0]) - 1, /* 1 */ + asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_19, /* Same as above */ + sizeof(asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_19) + /sizeof(asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_19[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfLegacyMeasurementInTimeWindow_r18_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfLegacyMeasurementInTimeWindow_r18_specs_19 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_18[] = { + { ATF_POINTER, 1, offsetof(struct DL_AoD_MeasCapabilityPerBand_r16__ext2, supportOfLegacyMeasurementInTimeWindow_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_19, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfLegacyMeasurementInTimeWindow-r18" + }, +}; +static const int asn_MAP_ext2_oms_18[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_18[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* supportOfLegacyMeasurementInTimeWindow-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_18 = { + sizeof(struct DL_AoD_MeasCapabilityPerBand_r16__ext2), + offsetof(struct DL_AoD_MeasCapabilityPerBand_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_18, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_18, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_18 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_18, + sizeof(asn_DEF_ext2_tags_18) + /sizeof(asn_DEF_ext2_tags_18[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_18, /* Same as above */ + sizeof(asn_DEF_ext2_tags_18) + /sizeof(asn_DEF_ext2_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_18, + 1, /* Elements count */ + &asn_SPC_ext2_specs_18 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_DL_AoD_MeasCapabilityPerBand_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_AoD_MeasCapabilityPerBand_r16, freqBandIndicatorNR_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FreqBandIndicatorNR_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "freqBandIndicatorNR-r16" + }, + { ATF_POINTER, 4, offsetof(struct DL_AoD_MeasCapabilityPerBand_r16, simul_NR_DL_AoD_DL_TDOA_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_simul_NR_DL_AoD_DL_TDOA_r16_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "simul-NR-DL-AoD-DL-TDOA-r16" + }, + { ATF_POINTER, 3, offsetof(struct DL_AoD_MeasCapabilityPerBand_r16, simul_NR_DL_AoD_Multi_RTT_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_simul_NR_DL_AoD_Multi_RTT_r16_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "simul-NR-DL-AoD-Multi-RTT-r16" + }, + { ATF_POINTER, 2, offsetof(struct DL_AoD_MeasCapabilityPerBand_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext1_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct DL_AoD_MeasCapabilityPerBand_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext2_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_DL_AoD_MeasCapabilityPerBand_r16_oms_1[] = { 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_DL_AoD_MeasCapabilityPerBand_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_AoD_MeasCapabilityPerBand_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* freqBandIndicatorNR-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* simul-NR-DL-AoD-DL-TDOA-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* simul-NR-DL-AoD-Multi-RTT-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DL_AoD_MeasCapabilityPerBand_r16_specs_1 = { + sizeof(struct DL_AoD_MeasCapabilityPerBand_r16), + offsetof(struct DL_AoD_MeasCapabilityPerBand_r16, _asn_ctx), + asn_MAP_DL_AoD_MeasCapabilityPerBand_r16_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_DL_AoD_MeasCapabilityPerBand_r16_oms_1, /* Optional members */ + 2, 2, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_AoD_MeasCapabilityPerBand_r16 = { + "DL-AoD-MeasCapabilityPerBand-r16", + "DL-AoD-MeasCapabilityPerBand-r16", + &asn_OP_SEQUENCE, + asn_DEF_DL_AoD_MeasCapabilityPerBand_r16_tags_1, + sizeof(asn_DEF_DL_AoD_MeasCapabilityPerBand_r16_tags_1) + /sizeof(asn_DEF_DL_AoD_MeasCapabilityPerBand_r16_tags_1[0]), /* 1 */ + asn_DEF_DL_AoD_MeasCapabilityPerBand_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_AoD_MeasCapabilityPerBand_r16_tags_1) + /sizeof(asn_DEF_DL_AoD_MeasCapabilityPerBand_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DL_AoD_MeasCapabilityPerBand_r16_1, + 5, /* Elements count */ + &asn_SPC_DL_AoD_MeasCapabilityPerBand_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-AoD-MeasCapabilityPerBand-r16.h b/asn.1/lpp_generated/DL-AoD-MeasCapabilityPerBand-r16.h new file mode 100644 index 00000000..98f5afbc --- /dev/null +++ b/asn.1/lpp_generated/DL-AoD-MeasCapabilityPerBand-r16.h @@ -0,0 +1,87 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_AoD_MeasCapabilityPerBand_r16_H_ +#define _DL_AoD_MeasCapabilityPerBand_r16_H_ + + +#include + +/* Including external dependencies */ +#include "FreqBandIndicatorNR-r16.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum DL_AoD_MeasCapabilityPerBand_r16__simul_NR_DL_AoD_DL_TDOA_r16 { + DL_AoD_MeasCapabilityPerBand_r16__simul_NR_DL_AoD_DL_TDOA_r16_supported = 0 +} e_DL_AoD_MeasCapabilityPerBand_r16__simul_NR_DL_AoD_DL_TDOA_r16; +typedef enum DL_AoD_MeasCapabilityPerBand_r16__simul_NR_DL_AoD_Multi_RTT_r16 { + DL_AoD_MeasCapabilityPerBand_r16__simul_NR_DL_AoD_Multi_RTT_r16_supported = 0 +} e_DL_AoD_MeasCapabilityPerBand_r16__simul_NR_DL_AoD_Multi_RTT_r16; +typedef enum DL_AoD_MeasCapabilityPerBand_r16__ext1__maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17 { + DL_AoD_MeasCapabilityPerBand_r16__ext1__maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_n1 = 0, + DL_AoD_MeasCapabilityPerBand_r16__ext1__maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_n2 = 1, + DL_AoD_MeasCapabilityPerBand_r16__ext1__maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_n4 = 2, + DL_AoD_MeasCapabilityPerBand_r16__ext1__maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_n8 = 3, + DL_AoD_MeasCapabilityPerBand_r16__ext1__maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_n16 = 4, + DL_AoD_MeasCapabilityPerBand_r16__ext1__maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_n24 = 5 +} e_DL_AoD_MeasCapabilityPerBand_r16__ext1__maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17; +typedef enum DL_AoD_MeasCapabilityPerBand_r16__ext1__dl_PRS_MeasRRC_Inactive_r17 { + DL_AoD_MeasCapabilityPerBand_r16__ext1__dl_PRS_MeasRRC_Inactive_r17_supported = 0 +} e_DL_AoD_MeasCapabilityPerBand_r16__ext1__dl_PRS_MeasRRC_Inactive_r17; +typedef enum DL_AoD_MeasCapabilityPerBand_r16__ext2__supportOfLegacyMeasurementInTimeWindow_r18 { + DL_AoD_MeasCapabilityPerBand_r16__ext2__supportOfLegacyMeasurementInTimeWindow_r18_supported = 0 +} e_DL_AoD_MeasCapabilityPerBand_r16__ext2__supportOfLegacyMeasurementInTimeWindow_r18; + +/* DL-AoD-MeasCapabilityPerBand-r16 */ +typedef struct DL_AoD_MeasCapabilityPerBand_r16 { + FreqBandIndicatorNR_r16_t freqBandIndicatorNR_r16; + long *simul_NR_DL_AoD_DL_TDOA_r16; /* OPTIONAL */ + long *simul_NR_DL_AoD_Multi_RTT_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct DL_AoD_MeasCapabilityPerBand_r16__ext1 { + long *maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17; /* OPTIONAL */ + long *dl_PRS_MeasRRC_Inactive_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct DL_AoD_MeasCapabilityPerBand_r16__ext2 { + long *supportOfLegacyMeasurementInTimeWindow_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_AoD_MeasCapabilityPerBand_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_simul_NR_DL_AoD_DL_TDOA_r16_3; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_simul_NR_DL_AoD_Multi_RTT_r16_5; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxDL_PRS_FirstPathRSRP_MeasPerTRP_r17_9; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_dl_PRS_MeasRRC_Inactive_r17_16; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_19; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_DL_AoD_MeasCapabilityPerBand_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_DL_AoD_MeasCapabilityPerBand_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_AoD_MeasCapabilityPerBand_r16_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_AoD_MeasCapabilityPerBand_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-PRS-BeamInfoElement-r16.c b/asn.1/lpp_generated/DL-PRS-BeamInfoElement-r16.c new file mode 100644 index 00000000..2523e1d2 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-BeamInfoElement-r16.c @@ -0,0 +1,330 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-BeamInfoElement-r16.h" + +#include "NR-IntegrityBeamInfoBounds-r18.h" +static int +memb_dl_PRS_Azimuth_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 359L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_PRS_Azimuth_fine_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_PRS_Elevation_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 180L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_PRS_Elevation_fine_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_Azimuth_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 359 } /* (0..359) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_Azimuth_fine_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_Elevation_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 180 } /* (0..180) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_Elevation_fine_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 1, offsetof(struct DL_PRS_BeamInfoElement_r16__ext1, nr_IntegrityBeamInfoBounds_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_IntegrityBeamInfoBounds_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-IntegrityBeamInfoBounds-r18" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-IntegrityBeamInfoBounds-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct DL_PRS_BeamInfoElement_r16__ext1), + offsetof(struct DL_PRS_BeamInfoElement_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 1, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_DL_PRS_BeamInfoElement_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_BeamInfoElement_r16, dl_PRS_Azimuth_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_Azimuth_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_Azimuth_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-Azimuth-r16" + }, + { ATF_POINTER, 4, offsetof(struct DL_PRS_BeamInfoElement_r16, dl_PRS_Azimuth_fine_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_Azimuth_fine_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_Azimuth_fine_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-Azimuth-fine-r16" + }, + { ATF_POINTER, 3, offsetof(struct DL_PRS_BeamInfoElement_r16, dl_PRS_Elevation_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_Elevation_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_Elevation_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-Elevation-r16" + }, + { ATF_POINTER, 2, offsetof(struct DL_PRS_BeamInfoElement_r16, dl_PRS_Elevation_fine_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_Elevation_fine_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_Elevation_fine_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-Elevation-fine-r16" + }, + { ATF_POINTER, 1, offsetof(struct DL_PRS_BeamInfoElement_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_DL_PRS_BeamInfoElement_r16_oms_1[] = { 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_DL_PRS_BeamInfoElement_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_BeamInfoElement_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-Azimuth-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* dl-PRS-Azimuth-fine-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dl-PRS-Elevation-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* dl-PRS-Elevation-fine-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_BeamInfoElement_r16_specs_1 = { + sizeof(struct DL_PRS_BeamInfoElement_r16), + offsetof(struct DL_PRS_BeamInfoElement_r16, _asn_ctx), + asn_MAP_DL_PRS_BeamInfoElement_r16_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_DL_PRS_BeamInfoElement_r16_oms_1, /* Optional members */ + 3, 1, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_BeamInfoElement_r16 = { + "DL-PRS-BeamInfoElement-r16", + "DL-PRS-BeamInfoElement-r16", + &asn_OP_SEQUENCE, + asn_DEF_DL_PRS_BeamInfoElement_r16_tags_1, + sizeof(asn_DEF_DL_PRS_BeamInfoElement_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_BeamInfoElement_r16_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_BeamInfoElement_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_BeamInfoElement_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_BeamInfoElement_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DL_PRS_BeamInfoElement_r16_1, + 5, /* Elements count */ + &asn_SPC_DL_PRS_BeamInfoElement_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-PRS-BeamInfoElement-r16.h b/asn.1/lpp_generated/DL-PRS-BeamInfoElement-r16.h new file mode 100644 index 00000000..54a0a51c --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-BeamInfoElement-r16.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_PRS_BeamInfoElement_r16_H_ +#define _DL_PRS_BeamInfoElement_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_IntegrityBeamInfoBounds_r18; + +/* DL-PRS-BeamInfoElement-r16 */ +typedef struct DL_PRS_BeamInfoElement_r16 { + long dl_PRS_Azimuth_r16; + long *dl_PRS_Azimuth_fine_r16; /* OPTIONAL */ + long *dl_PRS_Elevation_r16; /* OPTIONAL */ + long *dl_PRS_Elevation_fine_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct DL_PRS_BeamInfoElement_r16__ext1 { + struct NR_IntegrityBeamInfoBounds_r18 *nr_IntegrityBeamInfoBounds_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_PRS_BeamInfoElement_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_BeamInfoElement_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_BeamInfoElement_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_PRS_BeamInfoElement_r16_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_PRS_BeamInfoElement_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-PRS-BeamInfoResourceSet-r16.c b/asn.1/lpp_generated/DL-PRS-BeamInfoResourceSet-r16.c new file mode 100644 index 00000000..f853b523 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-BeamInfoResourceSet-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-BeamInfoResourceSet-r16.h" + +#include "DL-PRS-BeamInfoElement-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DL_PRS_BeamInfoResourceSet_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_DL_PRS_BeamInfoResourceSet_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DL_PRS_BeamInfoElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_DL_PRS_BeamInfoResourceSet_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_DL_PRS_BeamInfoResourceSet_r16_specs_1 = { + sizeof(struct DL_PRS_BeamInfoResourceSet_r16), + offsetof(struct DL_PRS_BeamInfoResourceSet_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_BeamInfoResourceSet_r16 = { + "DL-PRS-BeamInfoResourceSet-r16", + "DL-PRS-BeamInfoResourceSet-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_DL_PRS_BeamInfoResourceSet_r16_tags_1, + sizeof(asn_DEF_DL_PRS_BeamInfoResourceSet_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_BeamInfoResourceSet_r16_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_BeamInfoResourceSet_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_BeamInfoResourceSet_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_BeamInfoResourceSet_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DL_PRS_BeamInfoResourceSet_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_DL_PRS_BeamInfoResourceSet_r16_1, + 1, /* Single element */ + &asn_SPC_DL_PRS_BeamInfoResourceSet_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/DL-PRS-BeamInfoResourceSet-r16.h b/asn.1/lpp_generated/DL-PRS-BeamInfoResourceSet-r16.h similarity index 81% rename from asn.1/generated/DL-PRS-BeamInfoResourceSet-r16.h rename to asn.1/lpp_generated/DL-PRS-BeamInfoResourceSet-r16.h index 1891743b..1baef508 100644 --- a/asn.1/generated/DL-PRS-BeamInfoResourceSet-r16.h +++ b/asn.1/lpp_generated/DL-PRS-BeamInfoResourceSet-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _DL_PRS_BeamInfoResourceSet_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_DL_PRS_BeamInfoResourceSet_r16_constr_ } #endif -/* Referred external types */ -#include "DL-PRS-BeamInfoElement-r16.h" - #endif /* _DL_PRS_BeamInfoResourceSet_r16_H_ */ #include diff --git a/asn.1/lpp_generated/DL-PRS-BeamInfoSet-r16.c b/asn.1/lpp_generated/DL-PRS-BeamInfoSet-r16.c new file mode 100644 index 00000000..43c1dce2 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-BeamInfoSet-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-BeamInfoSet-r16.h" + +#include "DL-PRS-BeamInfoResourceSet-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DL_PRS_BeamInfoSet_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_DL_PRS_BeamInfoSet_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DL_PRS_BeamInfoResourceSet_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_DL_PRS_BeamInfoSet_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_DL_PRS_BeamInfoSet_r16_specs_1 = { + sizeof(struct DL_PRS_BeamInfoSet_r16), + offsetof(struct DL_PRS_BeamInfoSet_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_BeamInfoSet_r16 = { + "DL-PRS-BeamInfoSet-r16", + "DL-PRS-BeamInfoSet-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_DL_PRS_BeamInfoSet_r16_tags_1, + sizeof(asn_DEF_DL_PRS_BeamInfoSet_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_BeamInfoSet_r16_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_BeamInfoSet_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_BeamInfoSet_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_BeamInfoSet_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DL_PRS_BeamInfoSet_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_DL_PRS_BeamInfoSet_r16_1, + 1, /* Single element */ + &asn_SPC_DL_PRS_BeamInfoSet_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/DL-PRS-BeamInfoSet-r16.h b/asn.1/lpp_generated/DL-PRS-BeamInfoSet-r16.h similarity index 80% rename from asn.1/generated/DL-PRS-BeamInfoSet-r16.h rename to asn.1/lpp_generated/DL-PRS-BeamInfoSet-r16.h index b56a3f4d..e21ab93e 100644 --- a/asn.1/generated/DL-PRS-BeamInfoSet-r16.h +++ b/asn.1/lpp_generated/DL-PRS-BeamInfoSet-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _DL_PRS_BeamInfoSet_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_DL_PRS_BeamInfoSet_r16_constr_1; } #endif -/* Referred external types */ -#include "DL-PRS-BeamInfoResourceSet-r16.h" - #endif /* _DL_PRS_BeamInfoSet_r16_H_ */ #include diff --git a/asn.1/lpp_generated/DL-PRS-Configuration-ID-r17.c b/asn.1/lpp_generated/DL-PRS-Configuration-ID-r17.c new file mode 100644 index 00000000..2df9f0b1 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-Configuration-ID-r17.c @@ -0,0 +1,98 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-Configuration-ID-r17.h" + +static int +memb_nr_dl_prs_configuration_id_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 8L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_dl_prs_configuration_id_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_DL_PRS_Configuration_ID_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_Configuration_ID_r17, nr_dl_prs_configuration_id_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_dl_prs_configuration_id_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_dl_prs_configuration_id_r17_constraint_1 + }, + 0, 0, /* No default value */ + "nr-dl-prs-configuration-id-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_DL_PRS_Configuration_ID_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_Configuration_ID_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-dl-prs-configuration-id-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_Configuration_ID_r17_specs_1 = { + sizeof(struct DL_PRS_Configuration_ID_r17), + offsetof(struct DL_PRS_Configuration_ID_r17, _asn_ctx), + asn_MAP_DL_PRS_Configuration_ID_r17_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_Configuration_ID_r17 = { + "DL-PRS-Configuration-ID-r17", + "DL-PRS-Configuration-ID-r17", + &asn_OP_SEQUENCE, + asn_DEF_DL_PRS_Configuration_ID_r17_tags_1, + sizeof(asn_DEF_DL_PRS_Configuration_ID_r17_tags_1) + /sizeof(asn_DEF_DL_PRS_Configuration_ID_r17_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_Configuration_ID_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_Configuration_ID_r17_tags_1) + /sizeof(asn_DEF_DL_PRS_Configuration_ID_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DL_PRS_Configuration_ID_r17_1, + 1, /* Elements count */ + &asn_SPC_DL_PRS_Configuration_ID_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-PRS-Configuration-ID-r17.h b/asn.1/lpp_generated/DL-PRS-Configuration-ID-r17.h new file mode 100644 index 00000000..94897b82 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-Configuration-ID-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_PRS_Configuration_ID_r17_H_ +#define _DL_PRS_Configuration_ID_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* DL-PRS-Configuration-ID-r17 */ +typedef struct DL_PRS_Configuration_ID_r17 { + long nr_dl_prs_configuration_id_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_PRS_Configuration_ID_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_Configuration_ID_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_Configuration_ID_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_PRS_Configuration_ID_r17_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_PRS_Configuration_ID_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-PRS-ID-Info-r16.c b/asn.1/lpp_generated/DL-PRS-ID-Info-r16.c new file mode 100644 index 00000000..d98199b4 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-ID-Info-r16.c @@ -0,0 +1,229 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-ID-Info-r16.h" + +static int +memb_dl_PRS_ID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_ResourceID_List_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 64UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_ResourceID_List_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ID_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_ResourceID_List_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_DL_PRS_ResourceID_List_r16_3[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NR_DL_PRS_ResourceID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_ResourceID_List_r16_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_DL_PRS_ResourceID_List_r16_specs_3 = { + sizeof(struct DL_PRS_ID_Info_r16__nr_DL_PRS_ResourceID_List_r16), + offsetof(struct DL_PRS_ID_Info_r16__nr_DL_PRS_ResourceID_List_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_ResourceID_List_r16_3 = { + "nr-DL-PRS-ResourceID-List-r16", + "nr-DL-PRS-ResourceID-List-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_DL_PRS_ResourceID_List_r16_tags_3, + sizeof(asn_DEF_nr_DL_PRS_ResourceID_List_r16_tags_3) + /sizeof(asn_DEF_nr_DL_PRS_ResourceID_List_r16_tags_3[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_ResourceID_List_r16_tags_3, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_ResourceID_List_r16_tags_3) + /sizeof(asn_DEF_nr_DL_PRS_ResourceID_List_r16_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_ResourceID_List_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_DL_PRS_ResourceID_List_r16_3, + 1, /* Single element */ + &asn_SPC_nr_DL_PRS_ResourceID_List_r16_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_DL_PRS_ID_Info_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_ID_Info_r16, dl_PRS_ID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ID_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ID_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ID-r16" + }, + { ATF_POINTER, 2, offsetof(struct DL_PRS_ID_Info_r16, nr_DL_PRS_ResourceID_List_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_nr_DL_PRS_ResourceID_List_r16_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_ResourceID_List_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_ResourceID_List_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceID-List-r16" + }, + { ATF_POINTER, 1, offsetof(struct DL_PRS_ID_Info_r16, nr_DL_PRS_ResourceSetID_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceSetID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceSetID-r16" + }, +}; +static const int asn_MAP_DL_PRS_ID_Info_r16_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_DL_PRS_ID_Info_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_ID_Info_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-ResourceID-List-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-DL-PRS-ResourceSetID-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_ID_Info_r16_specs_1 = { + sizeof(struct DL_PRS_ID_Info_r16), + offsetof(struct DL_PRS_ID_Info_r16, _asn_ctx), + asn_MAP_DL_PRS_ID_Info_r16_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_DL_PRS_ID_Info_r16_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_ID_Info_r16 = { + "DL-PRS-ID-Info-r16", + "DL-PRS-ID-Info-r16", + &asn_OP_SEQUENCE, + asn_DEF_DL_PRS_ID_Info_r16_tags_1, + sizeof(asn_DEF_DL_PRS_ID_Info_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_ID_Info_r16_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_ID_Info_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_ID_Info_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_ID_Info_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DL_PRS_ID_Info_r16_1, + 3, /* Elements count */ + &asn_SPC_DL_PRS_ID_Info_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-PRS-ID-Info-r16.h b/asn.1/lpp_generated/DL-PRS-ID-Info-r16.h new file mode 100644 index 00000000..acb29eb3 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-ID-Info-r16.h @@ -0,0 +1,51 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_PRS_ID_Info_r16_H_ +#define _DL_PRS_ID_Info_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include "NR-DL-PRS-ResourceSetID-r16.h" +#include "NR-DL-PRS-ResourceID-r16.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* DL-PRS-ID-Info-r16 */ +typedef struct DL_PRS_ID_Info_r16 { + long dl_PRS_ID_r16; + struct DL_PRS_ID_Info_r16__nr_DL_PRS_ResourceID_List_r16 { + A_SEQUENCE_OF(NR_DL_PRS_ResourceID_r16_t) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_DL_PRS_ResourceID_List_r16; + NR_DL_PRS_ResourceSetID_r16_t *nr_DL_PRS_ResourceSetID_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_PRS_ID_Info_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_ID_Info_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_ID_Info_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_PRS_ID_Info_r16_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_PRS_ID_Info_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-PRS-MeasurementWithRxFH-RRC-Connected-r18.c b/asn.1/lpp_generated/DL-PRS-MeasurementWithRxFH-RRC-Connected-r18.c new file mode 100644 index 00000000..10e43d61 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-MeasurementWithRxFH-RRC-Connected-r18.c @@ -0,0 +1,769 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-MeasurementWithRxFH-RRC-Connected-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumPRS_BandwidthAcrossAllHopsFR1_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumPRS_BandwidthAcrossAllHopsFR2_r18_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumFH_Hops_r18_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_processingPRS_SymbolsDurationN3_r18_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 17 } /* (0..17) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_processingDurationT3_r18_constr_37 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_rf_RxRetunTimeFR1_r18_constr_48 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_rf_RxRetunTimeFR2_r18_constr_52 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_numOfOverlappingPRB_r18_constr_56 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_maximumPRS_BandwidthAcrossAllHopsFR1_r18_value2enum_2[] = { + { 0, 5, "mhz40" }, + { 1, 5, "mhz50" }, + { 2, 5, "mhz80" }, + { 3, 6, "mhz100" } +}; +static const unsigned int asn_MAP_maximumPRS_BandwidthAcrossAllHopsFR1_r18_enum2value_2[] = { + 3, /* mhz100(3) */ + 0, /* mhz40(0) */ + 1, /* mhz50(1) */ + 2 /* mhz80(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumPRS_BandwidthAcrossAllHopsFR1_r18_specs_2 = { + asn_MAP_maximumPRS_BandwidthAcrossAllHopsFR1_r18_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_maximumPRS_BandwidthAcrossAllHopsFR1_r18_enum2value_2, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR1_r18_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR1_r18_2 = { + "maximumPRS-BandwidthAcrossAllHopsFR1-r18", + "maximumPRS-BandwidthAcrossAllHopsFR1-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR1_r18_tags_2, + sizeof(asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR1_r18_tags_2) + /sizeof(asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR1_r18_tags_2[0]) - 1, /* 1 */ + asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR1_r18_tags_2, /* Same as above */ + sizeof(asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR1_r18_tags_2) + /sizeof(asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR1_r18_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumPRS_BandwidthAcrossAllHopsFR1_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumPRS_BandwidthAcrossAllHopsFR1_r18_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumPRS_BandwidthAcrossAllHopsFR2_r18_value2enum_7[] = { + { 0, 6, "mhz100" }, + { 1, 6, "mhz200" }, + { 2, 6, "mhz400" } +}; +static const unsigned int asn_MAP_maximumPRS_BandwidthAcrossAllHopsFR2_r18_enum2value_7[] = { + 0, /* mhz100(0) */ + 1, /* mhz200(1) */ + 2 /* mhz400(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumPRS_BandwidthAcrossAllHopsFR2_r18_specs_7 = { + asn_MAP_maximumPRS_BandwidthAcrossAllHopsFR2_r18_value2enum_7, /* "tag" => N; sorted by tag */ + asn_MAP_maximumPRS_BandwidthAcrossAllHopsFR2_r18_enum2value_7, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR2_r18_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR2_r18_7 = { + "maximumPRS-BandwidthAcrossAllHopsFR2-r18", + "maximumPRS-BandwidthAcrossAllHopsFR2-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR2_r18_tags_7, + sizeof(asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR2_r18_tags_7) + /sizeof(asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR2_r18_tags_7[0]) - 1, /* 1 */ + asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR2_r18_tags_7, /* Same as above */ + sizeof(asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR2_r18_tags_7) + /sizeof(asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR2_r18_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumPRS_BandwidthAcrossAllHopsFR2_r18_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumPRS_BandwidthAcrossAllHopsFR2_r18_specs_7 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumFH_Hops_r18_value2enum_11[] = { + { 0, 2, "n2" }, + { 1, 2, "n3" }, + { 2, 2, "n4" }, + { 3, 2, "n5" }, + { 4, 2, "n6" } +}; +static const unsigned int asn_MAP_maximumFH_Hops_r18_enum2value_11[] = { + 0, /* n2(0) */ + 1, /* n3(1) */ + 2, /* n4(2) */ + 3, /* n5(3) */ + 4 /* n6(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumFH_Hops_r18_specs_11 = { + asn_MAP_maximumFH_Hops_r18_value2enum_11, /* "tag" => N; sorted by tag */ + asn_MAP_maximumFH_Hops_r18_enum2value_11, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumFH_Hops_r18_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumFH_Hops_r18_11 = { + "maximumFH-Hops-r18", + "maximumFH-Hops-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumFH_Hops_r18_tags_11, + sizeof(asn_DEF_maximumFH_Hops_r18_tags_11) + /sizeof(asn_DEF_maximumFH_Hops_r18_tags_11[0]) - 1, /* 1 */ + asn_DEF_maximumFH_Hops_r18_tags_11, /* Same as above */ + sizeof(asn_DEF_maximumFH_Hops_r18_tags_11) + /sizeof(asn_DEF_maximumFH_Hops_r18_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumFH_Hops_r18_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumFH_Hops_r18_specs_11 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_processingPRS_SymbolsDurationN3_r18_value2enum_18[] = { + { 0, 8, "msDot125" }, + { 1, 7, "msDot25" }, + { 2, 6, "msDot5" }, + { 3, 3, "ms1" }, + { 4, 3, "ms2" }, + { 5, 3, "ms4" }, + { 6, 3, "ms6" }, + { 7, 3, "ms8" }, + { 8, 4, "ms12" }, + { 9, 4, "ms16" }, + { 10, 4, "ms20" }, + { 11, 4, "ms25" }, + { 12, 4, "ms30" }, + { 13, 4, "ms32" }, + { 14, 4, "ms35" }, + { 15, 4, "ms40" }, + { 16, 4, "ms45" }, + { 17, 4, "ms50" } +}; +static const unsigned int asn_MAP_processingPRS_SymbolsDurationN3_r18_enum2value_18[] = { + 3, /* ms1(3) */ + 8, /* ms12(8) */ + 9, /* ms16(9) */ + 4, /* ms2(4) */ + 10, /* ms20(10) */ + 11, /* ms25(11) */ + 12, /* ms30(12) */ + 13, /* ms32(13) */ + 14, /* ms35(14) */ + 5, /* ms4(5) */ + 15, /* ms40(15) */ + 16, /* ms45(16) */ + 17, /* ms50(17) */ + 6, /* ms6(6) */ + 7, /* ms8(7) */ + 0, /* msDot125(0) */ + 1, /* msDot25(1) */ + 2 /* msDot5(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_processingPRS_SymbolsDurationN3_r18_specs_18 = { + asn_MAP_processingPRS_SymbolsDurationN3_r18_value2enum_18, /* "tag" => N; sorted by tag */ + asn_MAP_processingPRS_SymbolsDurationN3_r18_enum2value_18, /* N => "tag"; sorted by N */ + 18, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_processingPRS_SymbolsDurationN3_r18_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_processingPRS_SymbolsDurationN3_r18_18 = { + "processingPRS-SymbolsDurationN3-r18", + "processingPRS-SymbolsDurationN3-r18", + &asn_OP_NativeEnumerated, + asn_DEF_processingPRS_SymbolsDurationN3_r18_tags_18, + sizeof(asn_DEF_processingPRS_SymbolsDurationN3_r18_tags_18) + /sizeof(asn_DEF_processingPRS_SymbolsDurationN3_r18_tags_18[0]) - 1, /* 1 */ + asn_DEF_processingPRS_SymbolsDurationN3_r18_tags_18, /* Same as above */ + sizeof(asn_DEF_processingPRS_SymbolsDurationN3_r18_tags_18) + /sizeof(asn_DEF_processingPRS_SymbolsDurationN3_r18_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_processingPRS_SymbolsDurationN3_r18_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_processingPRS_SymbolsDurationN3_r18_specs_18 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_processingDurationT3_r18_value2enum_37[] = { + { 0, 3, "ms8" }, + { 1, 4, "ms16" }, + { 2, 4, "ms20" }, + { 3, 4, "ms30" }, + { 4, 4, "ms40" }, + { 5, 4, "ms80" }, + { 6, 5, "ms160" }, + { 7, 5, "ms320" }, + { 8, 5, "ms640" }, + { 9, 6, "ms1280" } +}; +static const unsigned int asn_MAP_processingDurationT3_r18_enum2value_37[] = { + 9, /* ms1280(9) */ + 1, /* ms16(1) */ + 6, /* ms160(6) */ + 2, /* ms20(2) */ + 3, /* ms30(3) */ + 7, /* ms320(7) */ + 4, /* ms40(4) */ + 8, /* ms640(8) */ + 0, /* ms8(0) */ + 5 /* ms80(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_processingDurationT3_r18_specs_37 = { + asn_MAP_processingDurationT3_r18_value2enum_37, /* "tag" => N; sorted by tag */ + asn_MAP_processingDurationT3_r18_enum2value_37, /* N => "tag"; sorted by N */ + 10, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_processingDurationT3_r18_tags_37[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_processingDurationT3_r18_37 = { + "processingDurationT3-r18", + "processingDurationT3-r18", + &asn_OP_NativeEnumerated, + asn_DEF_processingDurationT3_r18_tags_37, + sizeof(asn_DEF_processingDurationT3_r18_tags_37) + /sizeof(asn_DEF_processingDurationT3_r18_tags_37[0]) - 1, /* 1 */ + asn_DEF_processingDurationT3_r18_tags_37, /* Same as above */ + sizeof(asn_DEF_processingDurationT3_r18_tags_37) + /sizeof(asn_DEF_processingDurationT3_r18_tags_37[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_processingDurationT3_r18_constr_37, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_processingDurationT3_r18_specs_37 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_processingDuration_r18_17[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18, processingPRS_SymbolsDurationN3_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_processingPRS_SymbolsDurationN3_r18_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "processingPRS-SymbolsDurationN3-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18, processingDurationT3_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_processingDurationT3_r18_37, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "processingDurationT3-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_processingDuration_r18_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_processingDuration_r18_tag2el_17[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* processingPRS-SymbolsDurationN3-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* processingDurationT3-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_processingDuration_r18_specs_17 = { + sizeof(struct DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18), + offsetof(struct DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18, _asn_ctx), + asn_MAP_processingDuration_r18_tag2el_17, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_processingDuration_r18_17 = { + "processingDuration-r18", + "processingDuration-r18", + &asn_OP_SEQUENCE, + asn_DEF_processingDuration_r18_tags_17, + sizeof(asn_DEF_processingDuration_r18_tags_17) + /sizeof(asn_DEF_processingDuration_r18_tags_17[0]) - 1, /* 1 */ + asn_DEF_processingDuration_r18_tags_17, /* Same as above */ + sizeof(asn_DEF_processingDuration_r18_tags_17) + /sizeof(asn_DEF_processingDuration_r18_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_processingDuration_r18_17, + 2, /* Elements count */ + &asn_SPC_processingDuration_r18_specs_17 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_rf_RxRetunTimeFR1_r18_value2enum_48[] = { + { 0, 3, "n70" }, + { 1, 4, "n140" }, + { 2, 4, "n210" } +}; +static const unsigned int asn_MAP_rf_RxRetunTimeFR1_r18_enum2value_48[] = { + 1, /* n140(1) */ + 2, /* n210(2) */ + 0 /* n70(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_rf_RxRetunTimeFR1_r18_specs_48 = { + asn_MAP_rf_RxRetunTimeFR1_r18_value2enum_48, /* "tag" => N; sorted by tag */ + asn_MAP_rf_RxRetunTimeFR1_r18_enum2value_48, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_rf_RxRetunTimeFR1_r18_tags_48[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_rf_RxRetunTimeFR1_r18_48 = { + "rf-RxRetunTimeFR1-r18", + "rf-RxRetunTimeFR1-r18", + &asn_OP_NativeEnumerated, + asn_DEF_rf_RxRetunTimeFR1_r18_tags_48, + sizeof(asn_DEF_rf_RxRetunTimeFR1_r18_tags_48) + /sizeof(asn_DEF_rf_RxRetunTimeFR1_r18_tags_48[0]) - 1, /* 1 */ + asn_DEF_rf_RxRetunTimeFR1_r18_tags_48, /* Same as above */ + sizeof(asn_DEF_rf_RxRetunTimeFR1_r18_tags_48) + /sizeof(asn_DEF_rf_RxRetunTimeFR1_r18_tags_48[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_rf_RxRetunTimeFR1_r18_constr_48, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_rf_RxRetunTimeFR1_r18_specs_48 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_rf_RxRetunTimeFR2_r18_value2enum_52[] = { + { 0, 3, "n35" }, + { 1, 3, "n70" }, + { 2, 4, "n140" } +}; +static const unsigned int asn_MAP_rf_RxRetunTimeFR2_r18_enum2value_52[] = { + 2, /* n140(2) */ + 0, /* n35(0) */ + 1 /* n70(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_rf_RxRetunTimeFR2_r18_specs_52 = { + asn_MAP_rf_RxRetunTimeFR2_r18_value2enum_52, /* "tag" => N; sorted by tag */ + asn_MAP_rf_RxRetunTimeFR2_r18_enum2value_52, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_rf_RxRetunTimeFR2_r18_tags_52[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_rf_RxRetunTimeFR2_r18_52 = { + "rf-RxRetunTimeFR2-r18", + "rf-RxRetunTimeFR2-r18", + &asn_OP_NativeEnumerated, + asn_DEF_rf_RxRetunTimeFR2_r18_tags_52, + sizeof(asn_DEF_rf_RxRetunTimeFR2_r18_tags_52) + /sizeof(asn_DEF_rf_RxRetunTimeFR2_r18_tags_52[0]) - 1, /* 1 */ + asn_DEF_rf_RxRetunTimeFR2_r18_tags_52, /* Same as above */ + sizeof(asn_DEF_rf_RxRetunTimeFR2_r18_tags_52) + /sizeof(asn_DEF_rf_RxRetunTimeFR2_r18_tags_52[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_rf_RxRetunTimeFR2_r18_constr_52, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_rf_RxRetunTimeFR2_r18_specs_52 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_numOfOverlappingPRB_r18_value2enum_56[] = { + { 0, 2, "n0" }, + { 1, 2, "n1" }, + { 2, 2, "n2" }, + { 3, 2, "n4" } +}; +static const unsigned int asn_MAP_numOfOverlappingPRB_r18_enum2value_56[] = { + 0, /* n0(0) */ + 1, /* n1(1) */ + 2, /* n2(2) */ + 3 /* n4(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_numOfOverlappingPRB_r18_specs_56 = { + asn_MAP_numOfOverlappingPRB_r18_value2enum_56, /* "tag" => N; sorted by tag */ + asn_MAP_numOfOverlappingPRB_r18_enum2value_56, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_numOfOverlappingPRB_r18_tags_56[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_numOfOverlappingPRB_r18_56 = { + "numOfOverlappingPRB-r18", + "numOfOverlappingPRB-r18", + &asn_OP_NativeEnumerated, + asn_DEF_numOfOverlappingPRB_r18_tags_56, + sizeof(asn_DEF_numOfOverlappingPRB_r18_tags_56) + /sizeof(asn_DEF_numOfOverlappingPRB_r18_tags_56[0]) - 1, /* 1 */ + asn_DEF_numOfOverlappingPRB_r18_tags_56, /* Same as above */ + sizeof(asn_DEF_numOfOverlappingPRB_r18_tags_56) + /sizeof(asn_DEF_numOfOverlappingPRB_r18_tags_56[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_numOfOverlappingPRB_r18_constr_56, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_numOfOverlappingPRB_r18_specs_56 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_1[] = { + { ATF_POINTER, 7, offsetof(struct DL_PRS_MeasurementWithRxFH_RRC_Connected_r18, maximumPRS_BandwidthAcrossAllHopsFR1_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR1_r18_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumPRS-BandwidthAcrossAllHopsFR1-r18" + }, + { ATF_POINTER, 6, offsetof(struct DL_PRS_MeasurementWithRxFH_RRC_Connected_r18, maximumPRS_BandwidthAcrossAllHopsFR2_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR2_r18_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumPRS-BandwidthAcrossAllHopsFR2-r18" + }, + { ATF_POINTER, 5, offsetof(struct DL_PRS_MeasurementWithRxFH_RRC_Connected_r18, maximumFH_Hops_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumFH_Hops_r18_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumFH-Hops-r18" + }, + { ATF_POINTER, 4, offsetof(struct DL_PRS_MeasurementWithRxFH_RRC_Connected_r18, processingDuration_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_processingDuration_r18_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "processingDuration-r18" + }, + { ATF_POINTER, 3, offsetof(struct DL_PRS_MeasurementWithRxFH_RRC_Connected_r18, rf_RxRetunTimeFR1_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_rf_RxRetunTimeFR1_r18_48, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rf-RxRetunTimeFR1-r18" + }, + { ATF_POINTER, 2, offsetof(struct DL_PRS_MeasurementWithRxFH_RRC_Connected_r18, rf_RxRetunTimeFR2_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_rf_RxRetunTimeFR2_r18_52, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rf-RxRetunTimeFR2-r18" + }, + { ATF_POINTER, 1, offsetof(struct DL_PRS_MeasurementWithRxFH_RRC_Connected_r18, numOfOverlappingPRB_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_numOfOverlappingPRB_r18_56, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "numOfOverlappingPRB-r18" + }, +}; +static const int asn_MAP_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_oms_1[] = { 0, 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maximumPRS-BandwidthAcrossAllHopsFR1-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maximumPRS-BandwidthAcrossAllHopsFR2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* maximumFH-Hops-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* processingDuration-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rf-RxRetunTimeFR1-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* rf-RxRetunTimeFR2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* numOfOverlappingPRB-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_specs_1 = { + sizeof(struct DL_PRS_MeasurementWithRxFH_RRC_Connected_r18), + offsetof(struct DL_PRS_MeasurementWithRxFH_RRC_Connected_r18, _asn_ctx), + asn_MAP_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_oms_1, /* Optional members */ + 7, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18 = { + "DL-PRS-MeasurementWithRxFH-RRC-Connected-r18", + "DL-PRS-MeasurementWithRxFH-RRC-Connected-r18", + &asn_OP_SEQUENCE, + asn_DEF_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_tags_1, + sizeof(asn_DEF_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_tags_1) + /sizeof(asn_DEF_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_tags_1) + /sizeof(asn_DEF_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_1, + 7, /* Elements count */ + &asn_SPC_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-PRS-MeasurementWithRxFH-RRC-Connected-r18.h b/asn.1/lpp_generated/DL-PRS-MeasurementWithRxFH-RRC-Connected-r18.h new file mode 100644 index 00000000..bee51b93 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-MeasurementWithRxFH-RRC-Connected-r18.h @@ -0,0 +1,132 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_H_ +#define _DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__maximumPRS_BandwidthAcrossAllHopsFR1_r18 { + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__maximumPRS_BandwidthAcrossAllHopsFR1_r18_mhz40 = 0, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__maximumPRS_BandwidthAcrossAllHopsFR1_r18_mhz50 = 1, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__maximumPRS_BandwidthAcrossAllHopsFR1_r18_mhz80 = 2, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__maximumPRS_BandwidthAcrossAllHopsFR1_r18_mhz100 = 3 +} e_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__maximumPRS_BandwidthAcrossAllHopsFR1_r18; +typedef enum DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__maximumPRS_BandwidthAcrossAllHopsFR2_r18 { + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__maximumPRS_BandwidthAcrossAllHopsFR2_r18_mhz100 = 0, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__maximumPRS_BandwidthAcrossAllHopsFR2_r18_mhz200 = 1, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__maximumPRS_BandwidthAcrossAllHopsFR2_r18_mhz400 = 2 +} e_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__maximumPRS_BandwidthAcrossAllHopsFR2_r18; +typedef enum DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__maximumFH_Hops_r18 { + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__maximumFH_Hops_r18_n2 = 0, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__maximumFH_Hops_r18_n3 = 1, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__maximumFH_Hops_r18_n4 = 2, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__maximumFH_Hops_r18_n5 = 3, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__maximumFH_Hops_r18_n6 = 4 +} e_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__maximumFH_Hops_r18; +typedef enum DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18 { + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18_msDot125 = 0, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18_msDot25 = 1, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18_msDot5 = 2, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18_ms1 = 3, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18_ms2 = 4, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18_ms4 = 5, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18_ms6 = 6, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18_ms8 = 7, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18_ms12 = 8, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18_ms16 = 9, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18_ms20 = 10, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18_ms25 = 11, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18_ms30 = 12, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18_ms32 = 13, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18_ms35 = 14, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18_ms40 = 15, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18_ms45 = 16, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18_ms50 = 17 +} e_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingPRS_SymbolsDurationN3_r18; +typedef enum DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingDurationT3_r18 { + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingDurationT3_r18_ms8 = 0, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingDurationT3_r18_ms16 = 1, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingDurationT3_r18_ms20 = 2, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingDurationT3_r18_ms30 = 3, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingDurationT3_r18_ms40 = 4, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingDurationT3_r18_ms80 = 5, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingDurationT3_r18_ms160 = 6, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingDurationT3_r18_ms320 = 7, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingDurationT3_r18_ms640 = 8, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingDurationT3_r18_ms1280 = 9 +} e_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18__processingDurationT3_r18; +typedef enum DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__rf_RxRetunTimeFR1_r18 { + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__rf_RxRetunTimeFR1_r18_n70 = 0, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__rf_RxRetunTimeFR1_r18_n140 = 1, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__rf_RxRetunTimeFR1_r18_n210 = 2 +} e_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__rf_RxRetunTimeFR1_r18; +typedef enum DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__rf_RxRetunTimeFR2_r18 { + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__rf_RxRetunTimeFR2_r18_n35 = 0, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__rf_RxRetunTimeFR2_r18_n70 = 1, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__rf_RxRetunTimeFR2_r18_n140 = 2 +} e_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__rf_RxRetunTimeFR2_r18; +typedef enum DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__numOfOverlappingPRB_r18 { + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__numOfOverlappingPRB_r18_n0 = 0, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__numOfOverlappingPRB_r18_n1 = 1, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__numOfOverlappingPRB_r18_n2 = 2, + DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__numOfOverlappingPRB_r18_n4 = 3 +} e_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__numOfOverlappingPRB_r18; + +/* DL-PRS-MeasurementWithRxFH-RRC-Connected-r18 */ +typedef struct DL_PRS_MeasurementWithRxFH_RRC_Connected_r18 { + long *maximumPRS_BandwidthAcrossAllHopsFR1_r18; /* OPTIONAL */ + long *maximumPRS_BandwidthAcrossAllHopsFR2_r18; /* OPTIONAL */ + long *maximumFH_Hops_r18; /* OPTIONAL */ + struct DL_PRS_MeasurementWithRxFH_RRC_Connected_r18__processingDuration_r18 { + long processingPRS_SymbolsDurationN3_r18; + long processingDurationT3_r18; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *processingDuration_r18; + long *rf_RxRetunTimeFR1_r18; /* OPTIONAL */ + long *rf_RxRetunTimeFR2_r18; /* OPTIONAL */ + long *numOfOverlappingPRB_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR1_r18_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumPRS_BandwidthAcrossAllHopsFR2_r18_7; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumFH_Hops_r18_11; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_processingPRS_SymbolsDurationN3_r18_18; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_processingDurationT3_r18_37; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_rf_RxRetunTimeFR1_r18_48; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_rf_RxRetunTimeFR2_r18_52; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_numOfOverlappingPRB_r18_56; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_PRS_MeasurementWithRxFH_RRC_Connected_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-PRS-MutingOption1-r16.c b/asn.1/lpp_generated/DL-PRS-MutingOption1-r16.c new file mode 100644 index 00000000..da5a36c8 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-MutingOption1-r16.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-MutingOption1-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_prs_MutingBitRepetitionFactor_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_dl_prs_MutingBitRepetitionFactor_r16_value2enum_2[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_dl_prs_MutingBitRepetitionFactor_r16_enum2value_2[] = { + 0, /* n1(0) */ + 1, /* n2(1) */ + 2, /* n4(2) */ + 3 /* n8(3) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_prs_MutingBitRepetitionFactor_r16_specs_2 = { + asn_MAP_dl_prs_MutingBitRepetitionFactor_r16_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_dl_prs_MutingBitRepetitionFactor_r16_enum2value_2, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_prs_MutingBitRepetitionFactor_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_prs_MutingBitRepetitionFactor_r16_2 = { + "dl-prs-MutingBitRepetitionFactor-r16", + "dl-prs-MutingBitRepetitionFactor-r16", + &asn_OP_NativeEnumerated, + asn_DEF_dl_prs_MutingBitRepetitionFactor_r16_tags_2, + sizeof(asn_DEF_dl_prs_MutingBitRepetitionFactor_r16_tags_2) + /sizeof(asn_DEF_dl_prs_MutingBitRepetitionFactor_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_dl_prs_MutingBitRepetitionFactor_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_dl_prs_MutingBitRepetitionFactor_r16_tags_2) + /sizeof(asn_DEF_dl_prs_MutingBitRepetitionFactor_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_prs_MutingBitRepetitionFactor_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_prs_MutingBitRepetitionFactor_r16_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_DL_PRS_MutingOption1_r16_1[] = { + { ATF_POINTER, 1, offsetof(struct DL_PRS_MutingOption1_r16, dl_prs_MutingBitRepetitionFactor_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_prs_MutingBitRepetitionFactor_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-prs-MutingBitRepetitionFactor-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_MutingOption1_r16, nr_option1_muting_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_NR_MutingPattern_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-option1-muting-r16" + }, +}; +static const int asn_MAP_DL_PRS_MutingOption1_r16_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_DL_PRS_MutingOption1_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_MutingOption1_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-prs-MutingBitRepetitionFactor-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-option1-muting-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_MutingOption1_r16_specs_1 = { + sizeof(struct DL_PRS_MutingOption1_r16), + offsetof(struct DL_PRS_MutingOption1_r16, _asn_ctx), + asn_MAP_DL_PRS_MutingOption1_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_DL_PRS_MutingOption1_r16_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_MutingOption1_r16 = { + "DL-PRS-MutingOption1-r16", + "DL-PRS-MutingOption1-r16", + &asn_OP_SEQUENCE, + asn_DEF_DL_PRS_MutingOption1_r16_tags_1, + sizeof(asn_DEF_DL_PRS_MutingOption1_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_MutingOption1_r16_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_MutingOption1_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_MutingOption1_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_MutingOption1_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DL_PRS_MutingOption1_r16_1, + 2, /* Elements count */ + &asn_SPC_DL_PRS_MutingOption1_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-PRS-MutingOption1-r16.h b/asn.1/lpp_generated/DL-PRS-MutingOption1-r16.h new file mode 100644 index 00000000..a95c9508 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-MutingOption1-r16.h @@ -0,0 +1,58 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_PRS_MutingOption1_r16_H_ +#define _DL_PRS_MutingOption1_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include "NR-MutingPattern-r16.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum DL_PRS_MutingOption1_r16__dl_prs_MutingBitRepetitionFactor_r16 { + DL_PRS_MutingOption1_r16__dl_prs_MutingBitRepetitionFactor_r16_n1 = 0, + DL_PRS_MutingOption1_r16__dl_prs_MutingBitRepetitionFactor_r16_n2 = 1, + DL_PRS_MutingOption1_r16__dl_prs_MutingBitRepetitionFactor_r16_n4 = 2, + DL_PRS_MutingOption1_r16__dl_prs_MutingBitRepetitionFactor_r16_n8 = 3 + /* + * Enumeration is extensible + */ +} e_DL_PRS_MutingOption1_r16__dl_prs_MutingBitRepetitionFactor_r16; + +/* DL-PRS-MutingOption1-r16 */ +typedef struct DL_PRS_MutingOption1_r16 { + long *dl_prs_MutingBitRepetitionFactor_r16; /* OPTIONAL */ + NR_MutingPattern_r16_t nr_option1_muting_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_PRS_MutingOption1_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_dl_prs_MutingBitRepetitionFactor_r16_2; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_MutingOption1_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_MutingOption1_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_PRS_MutingOption1_r16_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_PRS_MutingOption1_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-PRS-MutingOption2-r16.c b/asn.1/lpp_generated/DL-PRS-MutingOption2-r16.c new file mode 100644 index 00000000..425c9f7c --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-MutingOption2-r16.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-MutingOption2-r16.h" + +asn_TYPE_member_t asn_MBR_DL_PRS_MutingOption2_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_MutingOption2_r16, nr_option2_muting_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_NR_MutingPattern_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-option2-muting-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_DL_PRS_MutingOption2_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_MutingOption2_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-option2-muting-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_MutingOption2_r16_specs_1 = { + sizeof(struct DL_PRS_MutingOption2_r16), + offsetof(struct DL_PRS_MutingOption2_r16, _asn_ctx), + asn_MAP_DL_PRS_MutingOption2_r16_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_MutingOption2_r16 = { + "DL-PRS-MutingOption2-r16", + "DL-PRS-MutingOption2-r16", + &asn_OP_SEQUENCE, + asn_DEF_DL_PRS_MutingOption2_r16_tags_1, + sizeof(asn_DEF_DL_PRS_MutingOption2_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_MutingOption2_r16_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_MutingOption2_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_MutingOption2_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_MutingOption2_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DL_PRS_MutingOption2_r16_1, + 1, /* Elements count */ + &asn_SPC_DL_PRS_MutingOption2_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-PRS-MutingOption2-r16.h b/asn.1/lpp_generated/DL-PRS-MutingOption2-r16.h new file mode 100644 index 00000000..a6ed38d4 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-MutingOption2-r16.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_PRS_MutingOption2_r16_H_ +#define _DL_PRS_MutingOption2_r16_H_ + + +#include + +/* Including external dependencies */ +#include "NR-MutingPattern-r16.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* DL-PRS-MutingOption2-r16 */ +typedef struct DL_PRS_MutingOption2_r16 { + NR_MutingPattern_r16_t nr_option2_muting_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_PRS_MutingOption2_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_MutingOption2_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_MutingOption2_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_PRS_MutingOption2_r16_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_PRS_MutingOption2_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-PRS-QCL-Info-r16.c b/asn.1/lpp_generated/DL-PRS-QCL-Info-r16.c new file mode 100644 index 00000000..1bf4fe71 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-QCL-Info-r16.c @@ -0,0 +1,350 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-QCL-Info-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_ssb_Index_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_rs_Type_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ssb_Index_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DL_PRS_QCL_Info_r16_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_rs_Type_r16_value2enum_5[] = { + { 0, 5, "typeC" }, + { 1, 5, "typeD" }, + { 2, 16, "typeC-plus-typeD" } +}; +static const unsigned int asn_MAP_rs_Type_r16_enum2value_5[] = { + 0, /* typeC(0) */ + 2, /* typeC-plus-typeD(2) */ + 1 /* typeD(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_rs_Type_r16_specs_5 = { + asn_MAP_rs_Type_r16_value2enum_5, /* "tag" => N; sorted by tag */ + asn_MAP_rs_Type_r16_enum2value_5, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_rs_Type_r16_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_rs_Type_r16_5 = { + "rs-Type-r16", + "rs-Type-r16", + &asn_OP_NativeEnumerated, + asn_DEF_rs_Type_r16_tags_5, + sizeof(asn_DEF_rs_Type_r16_tags_5) + /sizeof(asn_DEF_rs_Type_r16_tags_5[0]) - 1, /* 1 */ + asn_DEF_rs_Type_r16_tags_5, /* Same as above */ + sizeof(asn_DEF_rs_Type_r16_tags_5) + /sizeof(asn_DEF_rs_Type_r16_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_rs_Type_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_rs_Type_r16_specs_5 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ssb_r16_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_Info_r16__ssb_r16, pci_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pci-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_Info_r16__ssb_r16, ssb_Index_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ssb_Index_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ssb_Index_r16_constraint_2 + }, + 0, 0, /* No default value */ + "ssb-Index-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_Info_r16__ssb_r16, rs_Type_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_rs_Type_r16_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rs-Type-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_ssb_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ssb_r16_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pci-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ssb-Index-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* rs-Type-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ssb_r16_specs_2 = { + sizeof(struct DL_PRS_QCL_Info_r16__ssb_r16), + offsetof(struct DL_PRS_QCL_Info_r16__ssb_r16, _asn_ctx), + asn_MAP_ssb_r16_tag2el_2, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ssb_r16_2 = { + "ssb-r16", + "ssb-r16", + &asn_OP_SEQUENCE, + asn_DEF_ssb_r16_tags_2, + sizeof(asn_DEF_ssb_r16_tags_2) + /sizeof(asn_DEF_ssb_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_ssb_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_ssb_r16_tags_2) + /sizeof(asn_DEF_ssb_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ssb_r16_2, + 3, /* Elements count */ + &asn_SPC_ssb_r16_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_dl_PRS_r16_9[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_Info_r16__dl_PRS_r16, qcl_DL_PRS_ResourceID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "qcl-DL-PRS-ResourceID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_Info_r16__dl_PRS_r16, qcl_DL_PRS_ResourceSetID_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceSetID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "qcl-DL-PRS-ResourceSetID-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_r16_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_dl_PRS_r16_tag2el_9[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* qcl-DL-PRS-ResourceID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* qcl-DL-PRS-ResourceSetID-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_dl_PRS_r16_specs_9 = { + sizeof(struct DL_PRS_QCL_Info_r16__dl_PRS_r16), + offsetof(struct DL_PRS_QCL_Info_r16__dl_PRS_r16, _asn_ctx), + asn_MAP_dl_PRS_r16_tag2el_9, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_r16_9 = { + "dl-PRS-r16", + "dl-PRS-r16", + &asn_OP_SEQUENCE, + asn_DEF_dl_PRS_r16_tags_9, + sizeof(asn_DEF_dl_PRS_r16_tags_9) + /sizeof(asn_DEF_dl_PRS_r16_tags_9[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_r16_tags_9, /* Same as above */ + sizeof(asn_DEF_dl_PRS_r16_tags_9) + /sizeof(asn_DEF_dl_PRS_r16_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_dl_PRS_r16_9, + 2, /* Elements count */ + &asn_SPC_dl_PRS_r16_specs_9 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_DL_PRS_QCL_Info_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_Info_r16, choice.ssb_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_ssb_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssb-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_Info_r16, choice.dl_PRS_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_dl_PRS_r16_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_QCL_Info_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ssb-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dl-PRS-r16 */ +}; +asn_CHOICE_specifics_t asn_SPC_DL_PRS_QCL_Info_r16_specs_1 = { + sizeof(struct DL_PRS_QCL_Info_r16), + offsetof(struct DL_PRS_QCL_Info_r16, _asn_ctx), + offsetof(struct DL_PRS_QCL_Info_r16, present), + sizeof(((struct DL_PRS_QCL_Info_r16 *)0)->present), + asn_MAP_DL_PRS_QCL_Info_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_QCL_Info_r16 = { + "DL-PRS-QCL-Info-r16", + "DL-PRS-QCL-Info-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DL_PRS_QCL_Info_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_DL_PRS_QCL_Info_r16_1, + 2, /* Elements count */ + &asn_SPC_DL_PRS_QCL_Info_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/DL-PRS-QCL-Info-r16.h b/asn.1/lpp_generated/DL-PRS-QCL-Info-r16.h similarity index 82% rename from asn.1/generated/DL-PRS-QCL-Info-r16.h rename to asn.1/lpp_generated/DL-PRS-QCL-Info-r16.h index 03e66e9a..087bec7f 100644 --- a/asn.1/generated/DL-PRS-QCL-Info-r16.h +++ b/asn.1/lpp_generated/DL-PRS-QCL-Info-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _DL_PRS_QCL_Info_r16_H_ @@ -12,7 +12,7 @@ #include /* Including external dependencies */ -#include "NR-PhysCellId-r16.h" +#include "NR-PhysCellID-r16.h" #include #include #include @@ -41,7 +41,7 @@ typedef struct DL_PRS_QCL_Info_r16 { DL_PRS_QCL_Info_r16_PR present; union DL_PRS_QCL_Info_r16_u { struct DL_PRS_QCL_Info_r16__ssb_r16 { - NR_PhysCellId_r16_t pci_r16; + NR_PhysCellID_r16_t pci_r16; long ssb_Index_r16; long rs_Type_r16; @@ -49,8 +49,8 @@ typedef struct DL_PRS_QCL_Info_r16 { asn_struct_ctx_t _asn_ctx; } ssb_r16; struct DL_PRS_QCL_Info_r16__dl_PRS_r16 { - NR_DL_PRS_ResourceID_r16_t qcl_dl_PRS_ResourceId_r16; - NR_DL_PRS_ResourceSetID_r16_t qcl_dl_PRS_ResourceSetId_r16; + NR_DL_PRS_ResourceID_r16_t qcl_DL_PRS_ResourceID_r16; + NR_DL_PRS_ResourceSetID_r16_t qcl_DL_PRS_ResourceSetID_r16; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/DL-PRS-QCL-InfoReq-r17.c b/asn.1/lpp_generated/DL-PRS-QCL-InfoReq-r17.c new file mode 100644 index 00000000..1972fdb1 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-QCL-InfoReq-r17.c @@ -0,0 +1,339 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-QCL-InfoReq-r17.h" + +#include "DL-PRS-QCL-Info-r16.h" +static int +memb_dl_prs_QCL_InfoRecPerResource_r17_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 64UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_prs_QCL_InformationReq_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_prs_QCL_InfoRecPerResource_r17_constr_8 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_prs_QCL_InfoRecPerResource_r17_constr_8 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_dl_prs_QCL_InformationReq_r17_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_InfoReq_r17__dl_prs_QCL_InformationReq_r17, choice.dl_prs_QCL_InfoRecPerResourceSet_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_DL_PRS_QCL_Info_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-prs-QCL-InfoRecPerResourceSet-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_InfoReq_r17__dl_prs_QCL_InformationReq_r17, choice.dl_prs_QCL_Info_requested_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-prs-QCL-Info-requested-r17" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_dl_prs_QCL_InformationReq_r17_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-prs-QCL-InfoRecPerResourceSet-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dl-prs-QCL-Info-requested-r17 */ +}; +static asn_CHOICE_specifics_t asn_SPC_dl_prs_QCL_InformationReq_r17_specs_3 = { + sizeof(struct DL_PRS_QCL_InfoReq_r17__dl_prs_QCL_InformationReq_r17), + offsetof(struct DL_PRS_QCL_InfoReq_r17__dl_prs_QCL_InformationReq_r17, _asn_ctx), + offsetof(struct DL_PRS_QCL_InfoReq_r17__dl_prs_QCL_InformationReq_r17, present), + sizeof(((struct DL_PRS_QCL_InfoReq_r17__dl_prs_QCL_InformationReq_r17 *)0)->present), + asn_MAP_dl_prs_QCL_InformationReq_r17_tag2el_3, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_prs_QCL_InformationReq_r17_3 = { + "dl-prs-QCL-InformationReq-r17", + "dl-prs-QCL-InformationReq-r17", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_prs_QCL_InformationReq_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_dl_prs_QCL_InformationReq_r17_3, + 2, /* Elements count */ + &asn_SPC_dl_prs_QCL_InformationReq_r17_specs_3 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_dl_prs_QCL_InfoRecPerResource_r17_8[] = { + { ATF_POINTER, 0, 0, + -1 /* Ambiguous tag (CHOICE?) */, + 0, + &asn_DEF_DL_PRS_QCL_Info_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_dl_prs_QCL_InfoRecPerResource_r17_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_dl_prs_QCL_InfoRecPerResource_r17_specs_8 = { + sizeof(struct DL_PRS_QCL_InfoReq_r17__ext1__dl_prs_QCL_InfoRecPerResource_r17), + offsetof(struct DL_PRS_QCL_InfoReq_r17__ext1__dl_prs_QCL_InfoRecPerResource_r17, _asn_ctx), + 2, /* XER encoding is XMLValueList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_prs_QCL_InfoRecPerResource_r17_8 = { + "dl-prs-QCL-InfoRecPerResource-r17", + "dl-prs-QCL-InfoRecPerResource-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_dl_prs_QCL_InfoRecPerResource_r17_tags_8, + sizeof(asn_DEF_dl_prs_QCL_InfoRecPerResource_r17_tags_8) + /sizeof(asn_DEF_dl_prs_QCL_InfoRecPerResource_r17_tags_8[0]) - 1, /* 1 */ + asn_DEF_dl_prs_QCL_InfoRecPerResource_r17_tags_8, /* Same as above */ + sizeof(asn_DEF_dl_prs_QCL_InfoRecPerResource_r17_tags_8) + /sizeof(asn_DEF_dl_prs_QCL_InfoRecPerResource_r17_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_prs_QCL_InfoRecPerResource_r17_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_dl_prs_QCL_InfoRecPerResource_r17_8, + 1, /* Single element */ + &asn_SPC_dl_prs_QCL_InfoRecPerResource_r17_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 1, offsetof(struct DL_PRS_QCL_InfoReq_r17__ext1, dl_prs_QCL_InfoRecPerResource_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_dl_prs_QCL_InfoRecPerResource_r17_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_prs_QCL_InfoRecPerResource_r17_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_prs_QCL_InfoRecPerResource_r17_constraint_7 + }, + 0, 0, /* No default value */ + "dl-prs-QCL-InfoRecPerResource-r17" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* dl-prs-QCL-InfoRecPerResource-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct DL_PRS_QCL_InfoReq_r17__ext1), + offsetof(struct DL_PRS_QCL_InfoReq_r17__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 1, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_DL_PRS_QCL_InfoReq_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_InfoReq_r17, nr_DL_PRS_ResourceSetID_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceSetID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceSetID-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_InfoReq_r17, dl_prs_QCL_InformationReq_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_dl_prs_QCL_InformationReq_r17_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-prs-QCL-InformationReq-r17" + }, + { ATF_POINTER, 1, offsetof(struct DL_PRS_QCL_InfoReq_r17, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_DL_PRS_QCL_InfoReq_r17_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_DL_PRS_QCL_InfoReq_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_QCL_InfoReq_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-ResourceSetID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* dl-prs-QCL-InformationReq-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_QCL_InfoReq_r17_specs_1 = { + sizeof(struct DL_PRS_QCL_InfoReq_r17), + offsetof(struct DL_PRS_QCL_InfoReq_r17, _asn_ctx), + asn_MAP_DL_PRS_QCL_InfoReq_r17_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_DL_PRS_QCL_InfoReq_r17_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_QCL_InfoReq_r17 = { + "DL-PRS-QCL-InfoReq-r17", + "DL-PRS-QCL-InfoReq-r17", + &asn_OP_SEQUENCE, + asn_DEF_DL_PRS_QCL_InfoReq_r17_tags_1, + sizeof(asn_DEF_DL_PRS_QCL_InfoReq_r17_tags_1) + /sizeof(asn_DEF_DL_PRS_QCL_InfoReq_r17_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_QCL_InfoReq_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_QCL_InfoReq_r17_tags_1) + /sizeof(asn_DEF_DL_PRS_QCL_InfoReq_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DL_PRS_QCL_InfoReq_r17_1, + 3, /* Elements count */ + &asn_SPC_DL_PRS_QCL_InfoReq_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-PRS-QCL-InfoReq-r17.h b/asn.1/lpp_generated/DL-PRS-QCL-InfoReq-r17.h new file mode 100644 index 00000000..3577c951 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-QCL-InfoReq-r17.h @@ -0,0 +1,80 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_PRS_QCL_InfoReq_r17_H_ +#define _DL_PRS_QCL_InfoReq_r17_H_ + + +#include + +/* Including external dependencies */ +#include "NR-DL-PRS-ResourceSetID-r16.h" +#include "DL-PRS-QCL-Info-r16.h" +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum DL_PRS_QCL_InfoReq_r17__dl_prs_QCL_InformationReq_r17_PR { + DL_PRS_QCL_InfoReq_r17__dl_prs_QCL_InformationReq_r17_PR_NOTHING, /* No components present */ + DL_PRS_QCL_InfoReq_r17__dl_prs_QCL_InformationReq_r17_PR_dl_prs_QCL_InfoRecPerResourceSet_r17, + DL_PRS_QCL_InfoReq_r17__dl_prs_QCL_InformationReq_r17_PR_dl_prs_QCL_Info_requested_r17 +} DL_PRS_QCL_InfoReq_r17__dl_prs_QCL_InformationReq_r17_PR; + +/* Forward declarations */ +struct DL_PRS_QCL_Info_r16; + +/* DL-PRS-QCL-InfoReq-r17 */ +typedef struct DL_PRS_QCL_InfoReq_r17 { + NR_DL_PRS_ResourceSetID_r16_t nr_DL_PRS_ResourceSetID_r17; + struct DL_PRS_QCL_InfoReq_r17__dl_prs_QCL_InformationReq_r17 { + DL_PRS_QCL_InfoReq_r17__dl_prs_QCL_InformationReq_r17_PR present; + union DL_PRS_QCL_InfoReq_r17__dl_prs_QCL_InformationReq_r17_u { + DL_PRS_QCL_Info_r16_t dl_prs_QCL_InfoRecPerResourceSet_r17; + NULL_t dl_prs_QCL_Info_requested_r17; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } dl_prs_QCL_InformationReq_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + struct DL_PRS_QCL_InfoReq_r17__ext1 { + struct DL_PRS_QCL_InfoReq_r17__ext1__dl_prs_QCL_InfoRecPerResource_r17 { + A_SEQUENCE_OF(struct DL_PRS_QCL_Info_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *dl_prs_QCL_InfoRecPerResource_r17; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_PRS_QCL_InfoReq_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_QCL_InfoReq_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_QCL_InfoReq_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_PRS_QCL_InfoReq_r17_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_PRS_QCL_InfoReq_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-PRS-QCL-InformationReqPerTRP-r17.c b/asn.1/lpp_generated/DL-PRS-QCL-InformationReqPerTRP-r17.c new file mode 100644 index 00000000..98cbfce0 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-QCL-InformationReqPerTRP-r17.c @@ -0,0 +1,267 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-QCL-InformationReqPerTRP-r17.h" + +#include "NCGI-r15.h" +#include "DL-PRS-QCL-InfoReq-r17.h" +static int +memb_dl_PRS_ID_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_prs_QCL_InformationReqSet_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 2UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_prs_QCL_InformationReqSet_r17_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ID_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_prs_QCL_InformationReqSet_r17_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_dl_prs_QCL_InformationReqSet_r17_6[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DL_PRS_QCL_InfoReq_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_dl_prs_QCL_InformationReqSet_r17_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_dl_prs_QCL_InformationReqSet_r17_specs_6 = { + sizeof(struct DL_PRS_QCL_InformationReqPerTRP_r17__dl_prs_QCL_InformationReqSet_r17), + offsetof(struct DL_PRS_QCL_InformationReqPerTRP_r17__dl_prs_QCL_InformationReqSet_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_prs_QCL_InformationReqSet_r17_6 = { + "dl-prs-QCL-InformationReqSet-r17", + "dl-prs-QCL-InformationReqSet-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_dl_prs_QCL_InformationReqSet_r17_tags_6, + sizeof(asn_DEF_dl_prs_QCL_InformationReqSet_r17_tags_6) + /sizeof(asn_DEF_dl_prs_QCL_InformationReqSet_r17_tags_6[0]) - 1, /* 1 */ + asn_DEF_dl_prs_QCL_InformationReqSet_r17_tags_6, /* Same as above */ + sizeof(asn_DEF_dl_prs_QCL_InformationReqSet_r17_tags_6) + /sizeof(asn_DEF_dl_prs_QCL_InformationReqSet_r17_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_prs_QCL_InformationReqSet_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_dl_prs_QCL_InformationReqSet_r17_6, + 1, /* Single element */ + &asn_SPC_dl_prs_QCL_InformationReqSet_r17_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_DL_PRS_QCL_InformationReqPerTRP_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_InformationReqPerTRP_r17, dl_PRS_ID_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ID_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ID_r17_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ID-r17" + }, + { ATF_POINTER, 3, offsetof(struct DL_PRS_QCL_InformationReqPerTRP_r17, nr_PhysCellID_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r17" + }, + { ATF_POINTER, 2, offsetof(struct DL_PRS_QCL_InformationReqPerTRP_r17, nr_CellGlobalID_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-CellGlobalID-r17" + }, + { ATF_POINTER, 1, offsetof(struct DL_PRS_QCL_InformationReqPerTRP_r17, nr_ARFCN_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ARFCN-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_InformationReqPerTRP_r17, dl_prs_QCL_InformationReqSet_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_dl_prs_QCL_InformationReqSet_r17_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_prs_QCL_InformationReqSet_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_prs_QCL_InformationReqSet_r17_constraint_1 + }, + 0, 0, /* No default value */ + "dl-prs-QCL-InformationReqSet-r17" + }, +}; +static const int asn_MAP_DL_PRS_QCL_InformationReqPerTRP_r17_oms_1[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_DL_PRS_QCL_InformationReqPerTRP_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_QCL_InformationReqPerTRP_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PhysCellID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-CellGlobalID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-ARFCN-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* dl-prs-QCL-InformationReqSet-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_QCL_InformationReqPerTRP_r17_specs_1 = { + sizeof(struct DL_PRS_QCL_InformationReqPerTRP_r17), + offsetof(struct DL_PRS_QCL_InformationReqPerTRP_r17, _asn_ctx), + asn_MAP_DL_PRS_QCL_InformationReqPerTRP_r17_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_DL_PRS_QCL_InformationReqPerTRP_r17_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_QCL_InformationReqPerTRP_r17 = { + "DL-PRS-QCL-InformationReqPerTRP-r17", + "DL-PRS-QCL-InformationReqPerTRP-r17", + &asn_OP_SEQUENCE, + asn_DEF_DL_PRS_QCL_InformationReqPerTRP_r17_tags_1, + sizeof(asn_DEF_DL_PRS_QCL_InformationReqPerTRP_r17_tags_1) + /sizeof(asn_DEF_DL_PRS_QCL_InformationReqPerTRP_r17_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_QCL_InformationReqPerTRP_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_QCL_InformationReqPerTRP_r17_tags_1) + /sizeof(asn_DEF_DL_PRS_QCL_InformationReqPerTRP_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DL_PRS_QCL_InformationReqPerTRP_r17_1, + 5, /* Elements count */ + &asn_SPC_DL_PRS_QCL_InformationReqPerTRP_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-PRS-QCL-InformationReqPerTRP-r17.h b/asn.1/lpp_generated/DL-PRS-QCL-InformationReqPerTRP-r17.h new file mode 100644 index 00000000..16832edd --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-QCL-InformationReqPerTRP-r17.h @@ -0,0 +1,61 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_PRS_QCL_InformationReqPerTRP_r17_H_ +#define _DL_PRS_QCL_InformationReqPerTRP_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include "NR-PhysCellID-r16.h" +#include "ARFCN-ValueNR-r15.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NCGI_r15; +struct DL_PRS_QCL_InfoReq_r17; + +/* DL-PRS-QCL-InformationReqPerTRP-r17 */ +typedef struct DL_PRS_QCL_InformationReqPerTRP_r17 { + long dl_PRS_ID_r17; + NR_PhysCellID_r16_t *nr_PhysCellID_r17; /* OPTIONAL */ + struct NCGI_r15 *nr_CellGlobalID_r17; /* OPTIONAL */ + ARFCN_ValueNR_r15_t *nr_ARFCN_r17; /* OPTIONAL */ + struct DL_PRS_QCL_InformationReqPerTRP_r17__dl_prs_QCL_InformationReqSet_r17 { + A_SEQUENCE_OF(struct DL_PRS_QCL_InfoReq_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } dl_prs_QCL_InformationReqSet_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_PRS_QCL_InformationReqPerTRP_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_QCL_InformationReqPerTRP_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_QCL_InformationReqPerTRP_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_PRS_QCL_InformationReqPerTRP_r17_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_PRS_QCL_InformationReqPerTRP_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-PRS-QCL-InformationReqTRPlist-r17.c b/asn.1/lpp_generated/DL-PRS-QCL-InformationReqTRPlist-r17.c new file mode 100644 index 00000000..f55d4bb6 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-QCL-InformationReqTRPlist-r17.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-QCL-InformationReqTRPlist-r17.h" + +#include "DL-PRS-QCL-InformationReqPerTRP-r17.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DL_PRS_QCL_InformationReqTRPlist_r17_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_DL_PRS_QCL_InformationReqTRPlist_r17_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DL_PRS_QCL_InformationReqPerTRP_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_DL_PRS_QCL_InformationReqTRPlist_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_DL_PRS_QCL_InformationReqTRPlist_r17_specs_1 = { + sizeof(struct DL_PRS_QCL_InformationReqTRPlist_r17), + offsetof(struct DL_PRS_QCL_InformationReqTRPlist_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_QCL_InformationReqTRPlist_r17 = { + "DL-PRS-QCL-InformationReqTRPlist-r17", + "DL-PRS-QCL-InformationReqTRPlist-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_DL_PRS_QCL_InformationReqTRPlist_r17_tags_1, + sizeof(asn_DEF_DL_PRS_QCL_InformationReqTRPlist_r17_tags_1) + /sizeof(asn_DEF_DL_PRS_QCL_InformationReqTRPlist_r17_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_QCL_InformationReqTRPlist_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_QCL_InformationReqTRPlist_r17_tags_1) + /sizeof(asn_DEF_DL_PRS_QCL_InformationReqTRPlist_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DL_PRS_QCL_InformationReqTRPlist_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_DL_PRS_QCL_InformationReqTRPlist_r17_1, + 1, /* Single element */ + &asn_SPC_DL_PRS_QCL_InformationReqTRPlist_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-PRS-QCL-InformationReqTRPlist-r17.h b/asn.1/lpp_generated/DL-PRS-QCL-InformationReqTRPlist-r17.h new file mode 100644 index 00000000..b1ff412c --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-QCL-InformationReqTRPlist-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_PRS_QCL_InformationReqTRPlist_r17_H_ +#define _DL_PRS_QCL_InformationReqTRPlist_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct DL_PRS_QCL_InformationReqPerTRP_r17; + +/* DL-PRS-QCL-InformationReqTRPlist-r17 */ +typedef struct DL_PRS_QCL_InformationReqTRPlist_r17 { + A_SEQUENCE_OF(struct DL_PRS_QCL_InformationReqPerTRP_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_PRS_QCL_InformationReqTRPlist_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_QCL_InformationReqTRPlist_r17; +extern asn_SET_OF_specifics_t asn_SPC_DL_PRS_QCL_InformationReqTRPlist_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_PRS_QCL_InformationReqTRPlist_r17_1[1]; +extern asn_per_constraints_t asn_PER_type_DL_PRS_QCL_InformationReqTRPlist_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_PRS_QCL_InformationReqTRPlist_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-PRS-QCL-ProcessingCapabilityPerBand-r16.c b/asn.1/lpp_generated/DL-PRS-QCL-ProcessingCapabilityPerBand-r16.c new file mode 100644 index 00000000..53f93b0c --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-QCL-ProcessingCapabilityPerBand-r16.c @@ -0,0 +1,212 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-QCL-ProcessingCapabilityPerBand-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ssb_FromNeighCellAsQCL_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prs_FromServNeighCellAsQCL_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_ssb_FromNeighCellAsQCL_r16_value2enum_3[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_ssb_FromNeighCellAsQCL_r16_enum2value_3[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ssb_FromNeighCellAsQCL_r16_specs_3 = { + asn_MAP_ssb_FromNeighCellAsQCL_r16_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_ssb_FromNeighCellAsQCL_r16_enum2value_3, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ssb_FromNeighCellAsQCL_r16_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ssb_FromNeighCellAsQCL_r16_3 = { + "ssb-FromNeighCellAsQCL-r16", + "ssb-FromNeighCellAsQCL-r16", + &asn_OP_NativeEnumerated, + asn_DEF_ssb_FromNeighCellAsQCL_r16_tags_3, + sizeof(asn_DEF_ssb_FromNeighCellAsQCL_r16_tags_3) + /sizeof(asn_DEF_ssb_FromNeighCellAsQCL_r16_tags_3[0]) - 1, /* 1 */ + asn_DEF_ssb_FromNeighCellAsQCL_r16_tags_3, /* Same as above */ + sizeof(asn_DEF_ssb_FromNeighCellAsQCL_r16_tags_3) + /sizeof(asn_DEF_ssb_FromNeighCellAsQCL_r16_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ssb_FromNeighCellAsQCL_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ssb_FromNeighCellAsQCL_r16_specs_3 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_prs_FromServNeighCellAsQCL_r16_value2enum_5[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_prs_FromServNeighCellAsQCL_r16_enum2value_5[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_prs_FromServNeighCellAsQCL_r16_specs_5 = { + asn_MAP_prs_FromServNeighCellAsQCL_r16_value2enum_5, /* "tag" => N; sorted by tag */ + asn_MAP_prs_FromServNeighCellAsQCL_r16_enum2value_5, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_prs_FromServNeighCellAsQCL_r16_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prs_FromServNeighCellAsQCL_r16_5 = { + "prs-FromServNeighCellAsQCL-r16", + "prs-FromServNeighCellAsQCL-r16", + &asn_OP_NativeEnumerated, + asn_DEF_prs_FromServNeighCellAsQCL_r16_tags_5, + sizeof(asn_DEF_prs_FromServNeighCellAsQCL_r16_tags_5) + /sizeof(asn_DEF_prs_FromServNeighCellAsQCL_r16_tags_5[0]) - 1, /* 1 */ + asn_DEF_prs_FromServNeighCellAsQCL_r16_tags_5, /* Same as above */ + sizeof(asn_DEF_prs_FromServNeighCellAsQCL_r16_tags_5) + /sizeof(asn_DEF_prs_FromServNeighCellAsQCL_r16_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prs_FromServNeighCellAsQCL_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_prs_FromServNeighCellAsQCL_r16_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_DL_PRS_QCL_ProcessingCapabilityPerBand_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_QCL_ProcessingCapabilityPerBand_r16, freqBandIndicatorNR_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FreqBandIndicatorNR_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "freqBandIndicatorNR-r16" + }, + { ATF_POINTER, 2, offsetof(struct DL_PRS_QCL_ProcessingCapabilityPerBand_r16, ssb_FromNeighCellAsQCL_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ssb_FromNeighCellAsQCL_r16_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssb-FromNeighCellAsQCL-r16" + }, + { ATF_POINTER, 1, offsetof(struct DL_PRS_QCL_ProcessingCapabilityPerBand_r16, prs_FromServNeighCellAsQCL_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_prs_FromServNeighCellAsQCL_r16_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-FromServNeighCellAsQCL-r16" + }, +}; +static const int asn_MAP_DL_PRS_QCL_ProcessingCapabilityPerBand_r16_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_DL_PRS_QCL_ProcessingCapabilityPerBand_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_QCL_ProcessingCapabilityPerBand_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* freqBandIndicatorNR-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ssb-FromNeighCellAsQCL-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* prs-FromServNeighCellAsQCL-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_QCL_ProcessingCapabilityPerBand_r16_specs_1 = { + sizeof(struct DL_PRS_QCL_ProcessingCapabilityPerBand_r16), + offsetof(struct DL_PRS_QCL_ProcessingCapabilityPerBand_r16, _asn_ctx), + asn_MAP_DL_PRS_QCL_ProcessingCapabilityPerBand_r16_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_DL_PRS_QCL_ProcessingCapabilityPerBand_r16_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_QCL_ProcessingCapabilityPerBand_r16 = { + "DL-PRS-QCL-ProcessingCapabilityPerBand-r16", + "DL-PRS-QCL-ProcessingCapabilityPerBand-r16", + &asn_OP_SEQUENCE, + asn_DEF_DL_PRS_QCL_ProcessingCapabilityPerBand_r16_tags_1, + sizeof(asn_DEF_DL_PRS_QCL_ProcessingCapabilityPerBand_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_QCL_ProcessingCapabilityPerBand_r16_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_QCL_ProcessingCapabilityPerBand_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_QCL_ProcessingCapabilityPerBand_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_QCL_ProcessingCapabilityPerBand_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DL_PRS_QCL_ProcessingCapabilityPerBand_r16_1, + 3, /* Elements count */ + &asn_SPC_DL_PRS_QCL_ProcessingCapabilityPerBand_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-PRS-QCL-ProcessingCapabilityPerBand-r16.h b/asn.1/lpp_generated/DL-PRS-QCL-ProcessingCapabilityPerBand-r16.h new file mode 100644 index 00000000..56831d44 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-QCL-ProcessingCapabilityPerBand-r16.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_PRS_QCL_ProcessingCapabilityPerBand_r16_H_ +#define _DL_PRS_QCL_ProcessingCapabilityPerBand_r16_H_ + + +#include + +/* Including external dependencies */ +#include "FreqBandIndicatorNR-r16.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum DL_PRS_QCL_ProcessingCapabilityPerBand_r16__ssb_FromNeighCellAsQCL_r16 { + DL_PRS_QCL_ProcessingCapabilityPerBand_r16__ssb_FromNeighCellAsQCL_r16_supported = 0 +} e_DL_PRS_QCL_ProcessingCapabilityPerBand_r16__ssb_FromNeighCellAsQCL_r16; +typedef enum DL_PRS_QCL_ProcessingCapabilityPerBand_r16__prs_FromServNeighCellAsQCL_r16 { + DL_PRS_QCL_ProcessingCapabilityPerBand_r16__prs_FromServNeighCellAsQCL_r16_supported = 0 +} e_DL_PRS_QCL_ProcessingCapabilityPerBand_r16__prs_FromServNeighCellAsQCL_r16; + +/* DL-PRS-QCL-ProcessingCapabilityPerBand-r16 */ +typedef struct DL_PRS_QCL_ProcessingCapabilityPerBand_r16 { + FreqBandIndicatorNR_r16_t freqBandIndicatorNR_r16; + long *ssb_FromNeighCellAsQCL_r16; /* OPTIONAL */ + long *prs_FromServNeighCellAsQCL_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_PRS_QCL_ProcessingCapabilityPerBand_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_ssb_FromNeighCellAsQCL_r16_3; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_prs_FromServNeighCellAsQCL_r16_5; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_QCL_ProcessingCapabilityPerBand_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_QCL_ProcessingCapabilityPerBand_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_PRS_QCL_ProcessingCapabilityPerBand_r16_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_PRS_QCL_ProcessingCapabilityPerBand_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-PRS-Resource-ARP-Element-r16.c b/asn.1/lpp_generated/DL-PRS-Resource-ARP-Element-r16.c new file mode 100644 index 00000000..d1590862 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-Resource-ARP-Element-r16.c @@ -0,0 +1,168 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-Resource-ARP-Element-r16.h" + +#include "RelativeLocation-r16.h" +#include "RelativeCartesianLocation-r18.h" +#include "NR-IntegrityLocationBounds-r18.h" +static asn_TYPE_member_t asn_MBR_ext1_4[] = { + { ATF_POINTER, 2, offsetof(struct DL_PRS_Resource_ARP_Element_r16__ext1, dl_PRS_Resource_ARP_locationCartesian_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RelativeCartesianLocation_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-Resource-ARP-locationCartesian-r18" + }, + { ATF_POINTER, 1, offsetof(struct DL_PRS_Resource_ARP_Element_r16__ext1, nr_IntegrityDL_PRS_ResourceARP_LocationBounds_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_IntegrityLocationBounds_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-IntegrityDL-PRS-ResourceARP-LocationBounds-r18" + }, +}; +static const int asn_MAP_ext1_oms_4[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-Resource-ARP-locationCartesian-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-IntegrityDL-PRS-ResourceARP-LocationBounds-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { + sizeof(struct DL_PRS_Resource_ARP_Element_r16__ext1), + offsetof(struct DL_PRS_Resource_ARP_Element_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_4, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_4, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_4 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_4, + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_4, /* Same as above */ + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_4, + 2, /* Elements count */ + &asn_SPC_ext1_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_DL_PRS_Resource_ARP_Element_r16_1[] = { + { ATF_POINTER, 2, offsetof(struct DL_PRS_Resource_ARP_Element_r16, dl_PRS_Resource_ARP_location_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RelativeLocation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-Resource-ARP-location-r16" + }, + { ATF_POINTER, 1, offsetof(struct DL_PRS_Resource_ARP_Element_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_DL_PRS_Resource_ARP_Element_r16_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_DL_PRS_Resource_ARP_Element_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_Resource_ARP_Element_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-Resource-ARP-location-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_Resource_ARP_Element_r16_specs_1 = { + sizeof(struct DL_PRS_Resource_ARP_Element_r16), + offsetof(struct DL_PRS_Resource_ARP_Element_r16, _asn_ctx), + asn_MAP_DL_PRS_Resource_ARP_Element_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_DL_PRS_Resource_ARP_Element_r16_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_Resource_ARP_Element_r16 = { + "DL-PRS-Resource-ARP-Element-r16", + "DL-PRS-Resource-ARP-Element-r16", + &asn_OP_SEQUENCE, + asn_DEF_DL_PRS_Resource_ARP_Element_r16_tags_1, + sizeof(asn_DEF_DL_PRS_Resource_ARP_Element_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_Resource_ARP_Element_r16_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_Resource_ARP_Element_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_Resource_ARP_Element_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_Resource_ARP_Element_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DL_PRS_Resource_ARP_Element_r16_1, + 2, /* Elements count */ + &asn_SPC_DL_PRS_Resource_ARP_Element_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-PRS-Resource-ARP-Element-r16.h b/asn.1/lpp_generated/DL-PRS-Resource-ARP-Element-r16.h new file mode 100644 index 00000000..d225ff50 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-Resource-ARP-Element-r16.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_PRS_Resource_ARP_Element_r16_H_ +#define _DL_PRS_Resource_ARP_Element_r16_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct RelativeLocation_r16; +struct RelativeCartesianLocation_r18; +struct NR_IntegrityLocationBounds_r18; + +/* DL-PRS-Resource-ARP-Element-r16 */ +typedef struct DL_PRS_Resource_ARP_Element_r16 { + struct RelativeLocation_r16 *dl_PRS_Resource_ARP_location_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct DL_PRS_Resource_ARP_Element_r16__ext1 { + struct RelativeCartesianLocation_r18 *dl_PRS_Resource_ARP_locationCartesian_r18; /* OPTIONAL */ + struct NR_IntegrityLocationBounds_r18 *nr_IntegrityDL_PRS_ResourceARP_LocationBounds_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_PRS_Resource_ARP_Element_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_Resource_ARP_Element_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_Resource_ARP_Element_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_PRS_Resource_ARP_Element_r16_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_PRS_Resource_ARP_Element_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-PRS-ResourcePrioritySubset-r17.c b/asn.1/lpp_generated/DL-PRS-ResourcePrioritySubset-r17.c new file mode 100644 index 00000000..0a8969a0 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-ResourcePrioritySubset-r17.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-ResourcePrioritySubset-r17.h" + +#include "NR-DL-PRSResourcePriorityItem-r17.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DL_PRS_ResourcePrioritySubset_r17_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 24 } /* (SIZE(1..24)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_DL_PRS_ResourcePrioritySubset_r17_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_PRSResourcePriorityItem_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_DL_PRS_ResourcePrioritySubset_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_DL_PRS_ResourcePrioritySubset_r17_specs_1 = { + sizeof(struct DL_PRS_ResourcePrioritySubset_r17), + offsetof(struct DL_PRS_ResourcePrioritySubset_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_ResourcePrioritySubset_r17 = { + "DL-PRS-ResourcePrioritySubset-r17", + "DL-PRS-ResourcePrioritySubset-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_DL_PRS_ResourcePrioritySubset_r17_tags_1, + sizeof(asn_DEF_DL_PRS_ResourcePrioritySubset_r17_tags_1) + /sizeof(asn_DEF_DL_PRS_ResourcePrioritySubset_r17_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_ResourcePrioritySubset_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_ResourcePrioritySubset_r17_tags_1) + /sizeof(asn_DEF_DL_PRS_ResourcePrioritySubset_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DL_PRS_ResourcePrioritySubset_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_DL_PRS_ResourcePrioritySubset_r17_1, + 1, /* Single element */ + &asn_SPC_DL_PRS_ResourcePrioritySubset_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-PRS-ResourcePrioritySubset-r17.h b/asn.1/lpp_generated/DL-PRS-ResourcePrioritySubset-r17.h new file mode 100644 index 00000000..d0d27fa0 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-ResourcePrioritySubset-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_PRS_ResourcePrioritySubset_r17_H_ +#define _DL_PRS_ResourcePrioritySubset_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_DL_PRSResourcePriorityItem_r17; + +/* DL-PRS-ResourcePrioritySubset-r17 */ +typedef struct DL_PRS_ResourcePrioritySubset_r17 { + A_SEQUENCE_OF(struct NR_DL_PRSResourcePriorityItem_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_PRS_ResourcePrioritySubset_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_ResourcePrioritySubset_r17; +extern asn_SET_OF_specifics_t asn_SPC_DL_PRS_ResourcePrioritySubset_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_PRS_ResourcePrioritySubset_r17_1[1]; +extern asn_per_constraints_t asn_PER_type_DL_PRS_ResourcePrioritySubset_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_PRS_ResourcePrioritySubset_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-PRS-ResourceSets-TRP-Element-r16.c b/asn.1/lpp_generated/DL-PRS-ResourceSets-TRP-Element-r16.c new file mode 100644 index 00000000..d16749a2 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-ResourceSets-TRP-Element-r16.c @@ -0,0 +1,280 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-ResourceSets-TRP-Element-r16.h" + +#include "RelativeLocation-r16.h" +#include "DL-PRS-Resource-ARP-Element-r16.h" +#include "RelativeCartesianLocation-r18.h" +#include "NR-IntegrityLocationBounds-r18.h" +static int +memb_dl_PRS_Resource_ARP_List_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 64UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_Resource_ARP_List_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_Resource_ARP_List_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_dl_PRS_Resource_ARP_List_r16_3[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DL_PRS_Resource_ARP_Element_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_Resource_ARP_List_r16_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_dl_PRS_Resource_ARP_List_r16_specs_3 = { + sizeof(struct DL_PRS_ResourceSets_TRP_Element_r16__dl_PRS_Resource_ARP_List_r16), + offsetof(struct DL_PRS_ResourceSets_TRP_Element_r16__dl_PRS_Resource_ARP_List_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_Resource_ARP_List_r16_3 = { + "dl-PRS-Resource-ARP-List-r16", + "dl-PRS-Resource-ARP-List-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_dl_PRS_Resource_ARP_List_r16_tags_3, + sizeof(asn_DEF_dl_PRS_Resource_ARP_List_r16_tags_3) + /sizeof(asn_DEF_dl_PRS_Resource_ARP_List_r16_tags_3[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_Resource_ARP_List_r16_tags_3, /* Same as above */ + sizeof(asn_DEF_dl_PRS_Resource_ARP_List_r16_tags_3) + /sizeof(asn_DEF_dl_PRS_Resource_ARP_List_r16_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_Resource_ARP_List_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_dl_PRS_Resource_ARP_List_r16_3, + 1, /* Single element */ + &asn_SPC_dl_PRS_Resource_ARP_List_r16_specs_3 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_6[] = { + { ATF_POINTER, 2, offsetof(struct DL_PRS_ResourceSets_TRP_Element_r16__ext1, dl_PRS_ResourceSetARP_Cartesian_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RelativeCartesianLocation_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-ResourceSetARP-Cartesian-r18" + }, + { ATF_POINTER, 1, offsetof(struct DL_PRS_ResourceSets_TRP_Element_r16__ext1, nr_IntegrityDL_PRS_ResourceSetARP_LocationBounds_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_IntegrityLocationBounds_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-IntegrityDL-PRS-ResourceSetARP-LocationBounds-r18" + }, +}; +static const int asn_MAP_ext1_oms_6[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ResourceSetARP-Cartesian-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-IntegrityDL-PRS-ResourceSetARP-LocationBounds-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = { + sizeof(struct DL_PRS_ResourceSets_TRP_Element_r16__ext1), + offsetof(struct DL_PRS_ResourceSets_TRP_Element_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_6, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_6, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_6 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_6, + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_6, /* Same as above */ + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_6, + 2, /* Elements count */ + &asn_SPC_ext1_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_DL_PRS_ResourceSets_TRP_Element_r16_1[] = { + { ATF_POINTER, 3, offsetof(struct DL_PRS_ResourceSets_TRP_Element_r16, dl_PRS_ResourceSetARP_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RelativeLocation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-ResourceSetARP-r16" + }, + { ATF_POINTER, 2, offsetof(struct DL_PRS_ResourceSets_TRP_Element_r16, dl_PRS_Resource_ARP_List_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_dl_PRS_Resource_ARP_List_r16_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_Resource_ARP_List_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_Resource_ARP_List_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-Resource-ARP-List-r16" + }, + { ATF_POINTER, 1, offsetof(struct DL_PRS_ResourceSets_TRP_Element_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_DL_PRS_ResourceSets_TRP_Element_r16_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_ResourceSets_TRP_Element_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ResourceSetARP-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* dl-PRS-Resource-ARP-List-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_ResourceSets_TRP_Element_r16_specs_1 = { + sizeof(struct DL_PRS_ResourceSets_TRP_Element_r16), + offsetof(struct DL_PRS_ResourceSets_TRP_Element_r16, _asn_ctx), + asn_MAP_DL_PRS_ResourceSets_TRP_Element_r16_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_DL_PRS_ResourceSets_TRP_Element_r16_oms_1, /* Optional members */ + 2, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16 = { + "DL-PRS-ResourceSets-TRP-Element-r16", + "DL-PRS-ResourceSets-TRP-Element-r16", + &asn_OP_SEQUENCE, + asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16_tags_1, + sizeof(asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DL_PRS_ResourceSets_TRP_Element_r16_1, + 3, /* Elements count */ + &asn_SPC_DL_PRS_ResourceSets_TRP_Element_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-PRS-ResourceSets-TRP-Element-r16.h b/asn.1/lpp_generated/DL-PRS-ResourceSets-TRP-Element-r16.h new file mode 100644 index 00000000..02b8cf07 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-ResourceSets-TRP-Element-r16.h @@ -0,0 +1,64 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_PRS_ResourceSets_TRP_Element_r16_H_ +#define _DL_PRS_ResourceSets_TRP_Element_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct RelativeLocation_r16; +struct DL_PRS_Resource_ARP_Element_r16; +struct RelativeCartesianLocation_r18; +struct NR_IntegrityLocationBounds_r18; + +/* DL-PRS-ResourceSets-TRP-Element-r16 */ +typedef struct DL_PRS_ResourceSets_TRP_Element_r16 { + struct RelativeLocation_r16 *dl_PRS_ResourceSetARP_r16; /* OPTIONAL */ + struct DL_PRS_ResourceSets_TRP_Element_r16__dl_PRS_Resource_ARP_List_r16 { + A_SEQUENCE_OF(struct DL_PRS_Resource_ARP_Element_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *dl_PRS_Resource_ARP_List_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct DL_PRS_ResourceSets_TRP_Element_r16__ext1 { + struct RelativeCartesianLocation_r18 *dl_PRS_ResourceSetARP_Cartesian_r18; /* OPTIONAL */ + struct NR_IntegrityLocationBounds_r18 *nr_IntegrityDL_PRS_ResourceSetARP_LocationBounds_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_PRS_ResourceSets_TRP_Element_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_ResourceSets_TRP_Element_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_PRS_ResourceSets_TRP_Element_r16_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_PRS_ResourceSets_TRP_Element_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-PRS-ResourcesBandCombination-r16.c b/asn.1/lpp_generated/DL-PRS-ResourcesBandCombination-r16.c new file mode 100644 index 00000000..81db5d61 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-ResourcesBandCombination-r16.c @@ -0,0 +1,634 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-ResourcesBandCombination-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_bandList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 4UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_bandList_r16_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_fr1_Only_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 8 } /* (0..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_fr2_Only_r16_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 8 } /* (0..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_fr1_r16_constr_26 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_fr2_r16_constr_37 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 8 } /* (0..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bandList_r16_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_bandList_r16_2[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_FreqBandIndicatorNR_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_bandList_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_bandList_r16_specs_2 = { + sizeof(struct DL_PRS_ResourcesBandCombination_r16__bandList_r16), + offsetof(struct DL_PRS_ResourcesBandCombination_r16__bandList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_bandList_r16_2 = { + "bandList-r16", + "bandList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_bandList_r16_tags_2, + sizeof(asn_DEF_bandList_r16_tags_2) + /sizeof(asn_DEF_bandList_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_bandList_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_bandList_r16_tags_2) + /sizeof(asn_DEF_bandList_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_bandList_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_bandList_r16_2, + 1, /* Single element */ + &asn_SPC_bandList_r16_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_fr1_Only_r16_value2enum_5[] = { + { 0, 2, "n6" }, + { 1, 3, "n24" }, + { 2, 3, "n64" }, + { 3, 4, "n128" }, + { 4, 4, "n192" }, + { 5, 4, "n256" }, + { 6, 4, "n512" }, + { 7, 5, "n1024" }, + { 8, 5, "n2048" } +}; +static const unsigned int asn_MAP_fr1_Only_r16_enum2value_5[] = { + 7, /* n1024(7) */ + 3, /* n128(3) */ + 4, /* n192(4) */ + 8, /* n2048(8) */ + 1, /* n24(1) */ + 5, /* n256(5) */ + 6, /* n512(6) */ + 0, /* n6(0) */ + 2 /* n64(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_fr1_Only_r16_specs_5 = { + asn_MAP_fr1_Only_r16_value2enum_5, /* "tag" => N; sorted by tag */ + asn_MAP_fr1_Only_r16_enum2value_5, /* N => "tag"; sorted by N */ + 9, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_fr1_Only_r16_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fr1_Only_r16_5 = { + "fr1-Only-r16", + "fr1-Only-r16", + &asn_OP_NativeEnumerated, + asn_DEF_fr1_Only_r16_tags_5, + sizeof(asn_DEF_fr1_Only_r16_tags_5) + /sizeof(asn_DEF_fr1_Only_r16_tags_5[0]) - 1, /* 1 */ + asn_DEF_fr1_Only_r16_tags_5, /* Same as above */ + sizeof(asn_DEF_fr1_Only_r16_tags_5) + /sizeof(asn_DEF_fr1_Only_r16_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_fr1_Only_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_fr1_Only_r16_specs_5 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_fr2_Only_r16_value2enum_15[] = { + { 0, 3, "n24" }, + { 1, 3, "n64" }, + { 2, 3, "n96" }, + { 3, 4, "n128" }, + { 4, 4, "n192" }, + { 5, 4, "n256" }, + { 6, 4, "n512" }, + { 7, 5, "n1024" }, + { 8, 5, "n2048" } +}; +static const unsigned int asn_MAP_fr2_Only_r16_enum2value_15[] = { + 7, /* n1024(7) */ + 3, /* n128(3) */ + 4, /* n192(4) */ + 8, /* n2048(8) */ + 0, /* n24(0) */ + 5, /* n256(5) */ + 6, /* n512(6) */ + 1, /* n64(1) */ + 2 /* n96(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_fr2_Only_r16_specs_15 = { + asn_MAP_fr2_Only_r16_value2enum_15, /* "tag" => N; sorted by tag */ + asn_MAP_fr2_Only_r16_enum2value_15, /* N => "tag"; sorted by N */ + 9, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_fr2_Only_r16_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fr2_Only_r16_15 = { + "fr2-Only-r16", + "fr2-Only-r16", + &asn_OP_NativeEnumerated, + asn_DEF_fr2_Only_r16_tags_15, + sizeof(asn_DEF_fr2_Only_r16_tags_15) + /sizeof(asn_DEF_fr2_Only_r16_tags_15[0]) - 1, /* 1 */ + asn_DEF_fr2_Only_r16_tags_15, /* Same as above */ + sizeof(asn_DEF_fr2_Only_r16_tags_15) + /sizeof(asn_DEF_fr2_Only_r16_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_fr2_Only_r16_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_fr2_Only_r16_specs_15 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_fr1_r16_value2enum_26[] = { + { 0, 2, "n6" }, + { 1, 3, "n24" }, + { 2, 3, "n64" }, + { 3, 3, "n96" }, + { 4, 4, "n128" }, + { 5, 4, "n192" }, + { 6, 4, "n256" }, + { 7, 4, "n512" }, + { 8, 5, "n1024" }, + { 9, 5, "n2048" } +}; +static const unsigned int asn_MAP_fr1_r16_enum2value_26[] = { + 8, /* n1024(8) */ + 4, /* n128(4) */ + 5, /* n192(5) */ + 9, /* n2048(9) */ + 1, /* n24(1) */ + 6, /* n256(6) */ + 7, /* n512(7) */ + 0, /* n6(0) */ + 2, /* n64(2) */ + 3 /* n96(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_fr1_r16_specs_26 = { + asn_MAP_fr1_r16_value2enum_26, /* "tag" => N; sorted by tag */ + asn_MAP_fr1_r16_enum2value_26, /* N => "tag"; sorted by N */ + 10, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_fr1_r16_tags_26[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fr1_r16_26 = { + "fr1-r16", + "fr1-r16", + &asn_OP_NativeEnumerated, + asn_DEF_fr1_r16_tags_26, + sizeof(asn_DEF_fr1_r16_tags_26) + /sizeof(asn_DEF_fr1_r16_tags_26[0]) - 1, /* 1 */ + asn_DEF_fr1_r16_tags_26, /* Same as above */ + sizeof(asn_DEF_fr1_r16_tags_26) + /sizeof(asn_DEF_fr1_r16_tags_26[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_fr1_r16_constr_26, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_fr1_r16_specs_26 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_fr2_r16_value2enum_37[] = { + { 0, 3, "n24" }, + { 1, 3, "n64" }, + { 2, 3, "n96" }, + { 3, 4, "n128" }, + { 4, 4, "n192" }, + { 5, 4, "n256" }, + { 6, 4, "n512" }, + { 7, 5, "n1024" }, + { 8, 5, "n2048" } +}; +static const unsigned int asn_MAP_fr2_r16_enum2value_37[] = { + 7, /* n1024(7) */ + 3, /* n128(3) */ + 4, /* n192(4) */ + 8, /* n2048(8) */ + 0, /* n24(0) */ + 5, /* n256(5) */ + 6, /* n512(6) */ + 1, /* n64(1) */ + 2 /* n96(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_fr2_r16_specs_37 = { + asn_MAP_fr2_r16_value2enum_37, /* "tag" => N; sorted by tag */ + asn_MAP_fr2_r16_enum2value_37, /* N => "tag"; sorted by N */ + 9, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_fr2_r16_tags_37[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fr2_r16_37 = { + "fr2-r16", + "fr2-r16", + &asn_OP_NativeEnumerated, + asn_DEF_fr2_r16_tags_37, + sizeof(asn_DEF_fr2_r16_tags_37) + /sizeof(asn_DEF_fr2_r16_tags_37[0]) - 1, /* 1 */ + asn_DEF_fr2_r16_tags_37, /* Same as above */ + sizeof(asn_DEF_fr2_r16_tags_37) + /sizeof(asn_DEF_fr2_r16_tags_37[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_fr2_r16_constr_37, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_fr2_r16_specs_37 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_fr1_FR2Mix_r16_25[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16, fr1_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_fr1_r16_26, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fr1-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16, fr2_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_fr2_r16_37, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fr2-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_fr1_FR2Mix_r16_tags_25[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_fr1_FR2Mix_r16_tag2el_25[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fr1-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* fr2-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_fr1_FR2Mix_r16_specs_25 = { + sizeof(struct DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16), + offsetof(struct DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16, _asn_ctx), + asn_MAP_fr1_FR2Mix_r16_tag2el_25, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fr1_FR2Mix_r16_25 = { + "fr1-FR2Mix-r16", + "fr1-FR2Mix-r16", + &asn_OP_SEQUENCE, + asn_DEF_fr1_FR2Mix_r16_tags_25, + sizeof(asn_DEF_fr1_FR2Mix_r16_tags_25) + /sizeof(asn_DEF_fr1_FR2Mix_r16_tags_25[0]) - 1, /* 1 */ + asn_DEF_fr1_FR2Mix_r16_tags_25, /* Same as above */ + sizeof(asn_DEF_fr1_FR2Mix_r16_tags_25) + /sizeof(asn_DEF_fr1_FR2Mix_r16_tags_25[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_fr1_FR2Mix_r16_25, + 2, /* Elements count */ + &asn_SPC_fr1_FR2Mix_r16_specs_25 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16_4[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16, choice.fr1_Only_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_fr1_Only_r16_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fr1-Only-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16, choice.fr2_Only_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_fr2_Only_r16_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fr2-Only-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16, choice.fr1_FR2Mix_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_fr1_FR2Mix_r16_25, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fr1-FR2Mix-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fr1-Only-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* fr2-Only-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* fr1-FR2Mix-r16 */ +}; +static asn_CHOICE_specifics_t asn_SPC_maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16_specs_4 = { + sizeof(struct DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16), + offsetof(struct DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16, _asn_ctx), + offsetof(struct DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16, present), + sizeof(((struct DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16 *)0)->present), + asn_MAP_maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16_tag2el_4, + 3, /* Count of tags in the map */ + 0, 0, + 3 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16_4 = { + "maxNrOfDL-PRS-ResourcesAcrossAllFL-TRP-ResourceSet-r16", + "maxNrOfDL-PRS-ResourcesAcrossAllFL-TRP-ResourceSet-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16_4, + 3, /* Elements count */ + &asn_SPC_maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_DL_PRS_ResourcesBandCombination_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_ResourcesBandCombination_r16, bandList_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_bandList_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bandList_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bandList_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bandList-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_ResourcesBandCombination_r16, maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNrOfDL-PRS-ResourcesAcrossAllFL-TRP-ResourceSet-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_DL_PRS_ResourcesBandCombination_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_ResourcesBandCombination_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bandList-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* maxNrOfDL-PRS-ResourcesAcrossAllFL-TRP-ResourceSet-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_ResourcesBandCombination_r16_specs_1 = { + sizeof(struct DL_PRS_ResourcesBandCombination_r16), + offsetof(struct DL_PRS_ResourcesBandCombination_r16, _asn_ctx), + asn_MAP_DL_PRS_ResourcesBandCombination_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_ResourcesBandCombination_r16 = { + "DL-PRS-ResourcesBandCombination-r16", + "DL-PRS-ResourcesBandCombination-r16", + &asn_OP_SEQUENCE, + asn_DEF_DL_PRS_ResourcesBandCombination_r16_tags_1, + sizeof(asn_DEF_DL_PRS_ResourcesBandCombination_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_ResourcesBandCombination_r16_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_ResourcesBandCombination_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_ResourcesBandCombination_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_ResourcesBandCombination_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DL_PRS_ResourcesBandCombination_r16_1, + 2, /* Elements count */ + &asn_SPC_DL_PRS_ResourcesBandCombination_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-PRS-ResourcesBandCombination-r16.h b/asn.1/lpp_generated/DL-PRS-ResourcesBandCombination-r16.h new file mode 100644 index 00000000..daabe983 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-ResourcesBandCombination-r16.h @@ -0,0 +1,137 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_PRS_ResourcesBandCombination_r16_H_ +#define _DL_PRS_ResourcesBandCombination_r16_H_ + + +#include + +/* Including external dependencies */ +#include "FreqBandIndicatorNR-r16.h" +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16_PR { + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16_PR_NOTHING, /* No components present */ + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16_PR_fr1_Only_r16, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16_PR_fr2_Only_r16, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16_PR_fr1_FR2Mix_r16 + /* Extensions may appear below */ + +} DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16_PR; +typedef enum DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_Only_r16 { + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_Only_r16_n6 = 0, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_Only_r16_n24 = 1, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_Only_r16_n64 = 2, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_Only_r16_n128 = 3, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_Only_r16_n192 = 4, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_Only_r16_n256 = 5, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_Only_r16_n512 = 6, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_Only_r16_n1024 = 7, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_Only_r16_n2048 = 8 +} e_DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_Only_r16; +typedef enum DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr2_Only_r16 { + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr2_Only_r16_n24 = 0, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr2_Only_r16_n64 = 1, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr2_Only_r16_n96 = 2, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr2_Only_r16_n128 = 3, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr2_Only_r16_n192 = 4, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr2_Only_r16_n256 = 5, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr2_Only_r16_n512 = 6, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr2_Only_r16_n1024 = 7, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr2_Only_r16_n2048 = 8 +} e_DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr2_Only_r16; +typedef enum DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr1_r16 { + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr1_r16_n6 = 0, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr1_r16_n24 = 1, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr1_r16_n64 = 2, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr1_r16_n96 = 3, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr1_r16_n128 = 4, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr1_r16_n192 = 5, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr1_r16_n256 = 6, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr1_r16_n512 = 7, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr1_r16_n1024 = 8, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr1_r16_n2048 = 9 +} e_DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr1_r16; +typedef enum DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr2_r16 { + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr2_r16_n24 = 0, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr2_r16_n64 = 1, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr2_r16_n96 = 2, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr2_r16_n128 = 3, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr2_r16_n192 = 4, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr2_r16_n256 = 5, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr2_r16_n512 = 6, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr2_r16_n1024 = 7, + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr2_r16_n2048 = 8 +} e_DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16__fr2_r16; + +/* DL-PRS-ResourcesBandCombination-r16 */ +typedef struct DL_PRS_ResourcesBandCombination_r16 { + struct DL_PRS_ResourcesBandCombination_r16__bandList_r16 { + A_SEQUENCE_OF(FreqBandIndicatorNR_r16_t) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } bandList_r16; + struct DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16 { + DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16_PR present; + union DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16_u { + long fr1_Only_r16; + long fr2_Only_r16; + struct DL_PRS_ResourcesBandCombination_r16__maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16__fr1_FR2Mix_r16 { + long fr1_r16; + long fr2_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } fr1_FR2Mix_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } maxNrOfDL_PRS_ResourcesAcrossAllFL_TRP_ResourceSet_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_PRS_ResourcesBandCombination_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_fr1_Only_r16_5; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_fr2_Only_r16_15; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_fr1_r16_26; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_fr2_r16_37; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_ResourcesBandCombination_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_ResourcesBandCombination_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_PRS_ResourcesBandCombination_r16_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_PRS_ResourcesBandCombination_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-PRS-ResourcesBandCombinationList-r16.c b/asn.1/lpp_generated/DL-PRS-ResourcesBandCombinationList-r16.c new file mode 100644 index 00000000..b3f8d974 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-ResourcesBandCombinationList-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-ResourcesBandCombinationList-r16.h" + +#include "DL-PRS-ResourcesBandCombination-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DL_PRS_ResourcesBandCombinationList_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_DL_PRS_ResourcesBandCombinationList_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DL_PRS_ResourcesBandCombination_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_DL_PRS_ResourcesBandCombinationList_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_DL_PRS_ResourcesBandCombinationList_r16_specs_1 = { + sizeof(struct DL_PRS_ResourcesBandCombinationList_r16), + offsetof(struct DL_PRS_ResourcesBandCombinationList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_ResourcesBandCombinationList_r16 = { + "DL-PRS-ResourcesBandCombinationList-r16", + "DL-PRS-ResourcesBandCombinationList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_DL_PRS_ResourcesBandCombinationList_r16_tags_1, + sizeof(asn_DEF_DL_PRS_ResourcesBandCombinationList_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_ResourcesBandCombinationList_r16_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_ResourcesBandCombinationList_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_ResourcesBandCombinationList_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_ResourcesBandCombinationList_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DL_PRS_ResourcesBandCombinationList_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_DL_PRS_ResourcesBandCombinationList_r16_1, + 1, /* Single element */ + &asn_SPC_DL_PRS_ResourcesBandCombinationList_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-PRS-ResourcesBandCombinationList-r16.h b/asn.1/lpp_generated/DL-PRS-ResourcesBandCombinationList-r16.h new file mode 100644 index 00000000..3232b33e --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-ResourcesBandCombinationList-r16.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_PRS_ResourcesBandCombinationList_r16_H_ +#define _DL_PRS_ResourcesBandCombinationList_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct DL_PRS_ResourcesBandCombination_r16; + +/* DL-PRS-ResourcesBandCombinationList-r16 */ +typedef struct DL_PRS_ResourcesBandCombinationList_r16 { + A_SEQUENCE_OF(struct DL_PRS_ResourcesBandCombination_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_PRS_ResourcesBandCombinationList_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_ResourcesBandCombinationList_r16; +extern asn_SET_OF_specifics_t asn_SPC_DL_PRS_ResourcesBandCombinationList_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_PRS_ResourcesBandCombinationList_r16_1[1]; +extern asn_per_constraints_t asn_PER_type_DL_PRS_ResourcesBandCombinationList_r16_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_PRS_ResourcesBandCombinationList_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-PRS-ResourcesCapabilityPerBand-r16.c b/asn.1/lpp_generated/DL-PRS-ResourcesCapabilityPerBand-r16.c new file mode 100644 index 00000000..6c2dc74f --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-ResourcesCapabilityPerBand-r16.c @@ -0,0 +1,242 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-ResourcesCapabilityPerBand-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNrOfDL_PRS_ResourcesPerResourceSet_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 6 } /* (0..6,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 0, 8 } /* (0..8,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_maxNrOfDL_PRS_ResourcesPerResourceSet_r16_value2enum_3[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n32" }, + { 6, 3, "n64" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_maxNrOfDL_PRS_ResourcesPerResourceSet_r16_enum2value_3[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n32(5) */ + 2, /* n4(2) */ + 6, /* n64(6) */ + 3 /* n8(3) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNrOfDL_PRS_ResourcesPerResourceSet_r16_specs_3 = { + asn_MAP_maxNrOfDL_PRS_ResourcesPerResourceSet_r16_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_maxNrOfDL_PRS_ResourcesPerResourceSet_r16_enum2value_3, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 8, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNrOfDL_PRS_ResourcesPerResourceSet_r16_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNrOfDL_PRS_ResourcesPerResourceSet_r16_3 = { + "maxNrOfDL-PRS-ResourcesPerResourceSet-r16", + "maxNrOfDL-PRS-ResourcesPerResourceSet-r16", + &asn_OP_NativeEnumerated, + asn_DEF_maxNrOfDL_PRS_ResourcesPerResourceSet_r16_tags_3, + sizeof(asn_DEF_maxNrOfDL_PRS_ResourcesPerResourceSet_r16_tags_3) + /sizeof(asn_DEF_maxNrOfDL_PRS_ResourcesPerResourceSet_r16_tags_3[0]) - 1, /* 1 */ + asn_DEF_maxNrOfDL_PRS_ResourcesPerResourceSet_r16_tags_3, /* Same as above */ + sizeof(asn_DEF_maxNrOfDL_PRS_ResourcesPerResourceSet_r16_tags_3) + /sizeof(asn_DEF_maxNrOfDL_PRS_ResourcesPerResourceSet_r16_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNrOfDL_PRS_ResourcesPerResourceSet_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNrOfDL_PRS_ResourcesPerResourceSet_r16_specs_3 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_value2enum_12[] = { + { 0, 2, "n6" }, + { 1, 3, "n24" }, + { 2, 3, "n32" }, + { 3, 3, "n64" }, + { 4, 3, "n96" }, + { 5, 4, "n128" }, + { 6, 4, "n256" }, + { 7, 4, "n512" }, + { 8, 5, "n1024" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_enum2value_12[] = { + 8, /* n1024(8) */ + 5, /* n128(5) */ + 1, /* n24(1) */ + 6, /* n256(6) */ + 2, /* n32(2) */ + 7, /* n512(7) */ + 0, /* n6(0) */ + 3, /* n64(3) */ + 4 /* n96(4) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_specs_12 = { + asn_MAP_maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_value2enum_12, /* "tag" => N; sorted by tag */ + asn_MAP_maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_enum2value_12, /* N => "tag"; sorted by N */ + 9, /* Number of elements in the maps */ + 10, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_12 = { + "maxNrOfDL-PRS-ResourcesPerPositioningFrequencylayer-r16", + "maxNrOfDL-PRS-ResourcesPerPositioningFrequencylayer-r16", + &asn_OP_NativeEnumerated, + asn_DEF_maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_tags_12, + sizeof(asn_DEF_maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_tags_12) + /sizeof(asn_DEF_maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_tags_12[0]) - 1, /* 1 */ + asn_DEF_maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_tags_12, /* Same as above */ + sizeof(asn_DEF_maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_tags_12) + /sizeof(asn_DEF_maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_specs_12 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_DL_PRS_ResourcesCapabilityPerBand_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_ResourcesCapabilityPerBand_r16, freqBandIndicatorNR_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FreqBandIndicatorNR_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "freqBandIndicatorNR-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_ResourcesCapabilityPerBand_r16, maxNrOfDL_PRS_ResourcesPerResourceSet_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNrOfDL_PRS_ResourcesPerResourceSet_r16_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNrOfDL-PRS-ResourcesPerResourceSet-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_ResourcesCapabilityPerBand_r16, maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNrOfDL-PRS-ResourcesPerPositioningFrequencylayer-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_DL_PRS_ResourcesCapabilityPerBand_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_ResourcesCapabilityPerBand_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* freqBandIndicatorNR-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxNrOfDL-PRS-ResourcesPerResourceSet-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* maxNrOfDL-PRS-ResourcesPerPositioningFrequencylayer-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_ResourcesCapabilityPerBand_r16_specs_1 = { + sizeof(struct DL_PRS_ResourcesCapabilityPerBand_r16), + offsetof(struct DL_PRS_ResourcesCapabilityPerBand_r16, _asn_ctx), + asn_MAP_DL_PRS_ResourcesCapabilityPerBand_r16_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_ResourcesCapabilityPerBand_r16 = { + "DL-PRS-ResourcesCapabilityPerBand-r16", + "DL-PRS-ResourcesCapabilityPerBand-r16", + &asn_OP_SEQUENCE, + asn_DEF_DL_PRS_ResourcesCapabilityPerBand_r16_tags_1, + sizeof(asn_DEF_DL_PRS_ResourcesCapabilityPerBand_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_ResourcesCapabilityPerBand_r16_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_ResourcesCapabilityPerBand_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_ResourcesCapabilityPerBand_r16_tags_1) + /sizeof(asn_DEF_DL_PRS_ResourcesCapabilityPerBand_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DL_PRS_ResourcesCapabilityPerBand_r16_1, + 3, /* Elements count */ + &asn_SPC_DL_PRS_ResourcesCapabilityPerBand_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-PRS-ResourcesCapabilityPerBand-r16.h b/asn.1/lpp_generated/DL-PRS-ResourcesCapabilityPerBand-r16.h new file mode 100644 index 00000000..1d08f70a --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-ResourcesCapabilityPerBand-r16.h @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_PRS_ResourcesCapabilityPerBand_r16_H_ +#define _DL_PRS_ResourcesCapabilityPerBand_r16_H_ + + +#include + +/* Including external dependencies */ +#include "FreqBandIndicatorNR-r16.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerResourceSet_r16 { + DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerResourceSet_r16_n1 = 0, + DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerResourceSet_r16_n2 = 1, + DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerResourceSet_r16_n4 = 2, + DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerResourceSet_r16_n8 = 3, + DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerResourceSet_r16_n16 = 4, + DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerResourceSet_r16_n32 = 5, + DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerResourceSet_r16_n64 = 6 + /* + * Enumeration is extensible + */ +} e_DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerResourceSet_r16; +typedef enum DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16 { + DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_n6 = 0, + DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_n24 = 1, + DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_n32 = 2, + DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_n64 = 3, + DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_n96 = 4, + DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_n128 = 5, + DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_n256 = 6, + DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_n512 = 7, + DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_n1024 = 8 + /* + * Enumeration is extensible + */ +} e_DL_PRS_ResourcesCapabilityPerBand_r16__maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16; + +/* DL-PRS-ResourcesCapabilityPerBand-r16 */ +typedef struct DL_PRS_ResourcesCapabilityPerBand_r16 { + FreqBandIndicatorNR_r16_t freqBandIndicatorNR_r16; + long maxNrOfDL_PRS_ResourcesPerResourceSet_r16; + long maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_PRS_ResourcesCapabilityPerBand_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNrOfDL_PRS_ResourcesPerResourceSet_r16_3; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNrOfDL_PRS_ResourcesPerPositioningFrequencylayer_r16_12; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_ResourcesCapabilityPerBand_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_ResourcesCapabilityPerBand_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_PRS_ResourcesCapabilityPerBand_r16_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_PRS_ResourcesCapabilityPerBand_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-PRS-StartTime-and-Duration-r17.c b/asn.1/lpp_generated/DL-PRS-StartTime-and-Duration-r17.c new file mode 100644 index 00000000..a34033ec --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-StartTime-and-Duration-r17.c @@ -0,0 +1,311 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-StartTime-and-Duration-r17.h" + +static int +memb_seconds_r17_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 59L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_minutes_r17_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 59L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_hours_r17_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 23L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_prs_start_time_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1024L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_seconds_r17_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 59 } /* (0..59) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_minutes_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 59 } /* (0..59) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_hours_r17_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 23 } /* (0..23) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_prs_start_time_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (1..1024) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_dl_prs_duration_r17_3[] = { + { ATF_POINTER, 3, offsetof(struct DL_PRS_StartTime_and_Duration_r17__dl_prs_duration_r17, seconds_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_seconds_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_seconds_r17_constraint_3 + }, + 0, 0, /* No default value */ + "seconds-r17" + }, + { ATF_POINTER, 2, offsetof(struct DL_PRS_StartTime_and_Duration_r17__dl_prs_duration_r17, minutes_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_minutes_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_minutes_r17_constraint_3 + }, + 0, 0, /* No default value */ + "minutes-r17" + }, + { ATF_POINTER, 1, offsetof(struct DL_PRS_StartTime_and_Duration_r17__dl_prs_duration_r17, hours_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_hours_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_hours_r17_constraint_3 + }, + 0, 0, /* No default value */ + "hours-r17" + }, +}; +static const int asn_MAP_dl_prs_duration_r17_oms_3[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_dl_prs_duration_r17_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_dl_prs_duration_r17_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* seconds-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* minutes-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* hours-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_dl_prs_duration_r17_specs_3 = { + sizeof(struct DL_PRS_StartTime_and_Duration_r17__dl_prs_duration_r17), + offsetof(struct DL_PRS_StartTime_and_Duration_r17__dl_prs_duration_r17, _asn_ctx), + asn_MAP_dl_prs_duration_r17_tag2el_3, + 3, /* Count of tags in the map */ + asn_MAP_dl_prs_duration_r17_oms_3, /* Optional members */ + 3, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_prs_duration_r17_3 = { + "dl-prs-duration-r17", + "dl-prs-duration-r17", + &asn_OP_SEQUENCE, + asn_DEF_dl_prs_duration_r17_tags_3, + sizeof(asn_DEF_dl_prs_duration_r17_tags_3) + /sizeof(asn_DEF_dl_prs_duration_r17_tags_3[0]) - 1, /* 1 */ + asn_DEF_dl_prs_duration_r17_tags_3, /* Same as above */ + sizeof(asn_DEF_dl_prs_duration_r17_tags_3) + /sizeof(asn_DEF_dl_prs_duration_r17_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_dl_prs_duration_r17_3, + 3, /* Elements count */ + &asn_SPC_dl_prs_duration_r17_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_DL_PRS_StartTime_and_Duration_r17_1[] = { + { ATF_POINTER, 2, offsetof(struct DL_PRS_StartTime_and_Duration_r17, dl_prs_start_time_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_prs_start_time_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_prs_start_time_r17_constraint_1 + }, + 0, 0, /* No default value */ + "dl-prs-start-time-r17" + }, + { ATF_POINTER, 1, offsetof(struct DL_PRS_StartTime_and_Duration_r17, dl_prs_duration_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_dl_prs_duration_r17_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-prs-duration-r17" + }, +}; +static const int asn_MAP_DL_PRS_StartTime_and_Duration_r17_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_DL_PRS_StartTime_and_Duration_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_StartTime_and_Duration_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-prs-start-time-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dl-prs-duration-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_StartTime_and_Duration_r17_specs_1 = { + sizeof(struct DL_PRS_StartTime_and_Duration_r17), + offsetof(struct DL_PRS_StartTime_and_Duration_r17, _asn_ctx), + asn_MAP_DL_PRS_StartTime_and_Duration_r17_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_DL_PRS_StartTime_and_Duration_r17_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_StartTime_and_Duration_r17 = { + "DL-PRS-StartTime-and-Duration-r17", + "DL-PRS-StartTime-and-Duration-r17", + &asn_OP_SEQUENCE, + asn_DEF_DL_PRS_StartTime_and_Duration_r17_tags_1, + sizeof(asn_DEF_DL_PRS_StartTime_and_Duration_r17_tags_1) + /sizeof(asn_DEF_DL_PRS_StartTime_and_Duration_r17_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_StartTime_and_Duration_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_StartTime_and_Duration_r17_tags_1) + /sizeof(asn_DEF_DL_PRS_StartTime_and_Duration_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DL_PRS_StartTime_and_Duration_r17_1, + 2, /* Elements count */ + &asn_SPC_DL_PRS_StartTime_and_Duration_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-PRS-StartTime-and-Duration-r17.h b/asn.1/lpp_generated/DL-PRS-StartTime-and-Duration-r17.h new file mode 100644 index 00000000..f4ac38d2 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-StartTime-and-Duration-r17.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_PRS_StartTime_and_Duration_r17_H_ +#define _DL_PRS_StartTime_and_Duration_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* DL-PRS-StartTime-and-Duration-r17 */ +typedef struct DL_PRS_StartTime_and_Duration_r17 { + long *dl_prs_start_time_r17; /* OPTIONAL */ + struct DL_PRS_StartTime_and_Duration_r17__dl_prs_duration_r17 { + long *seconds_r17; /* OPTIONAL */ + long *minutes_r17; /* OPTIONAL */ + long *hours_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *dl_prs_duration_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_PRS_StartTime_and_Duration_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_StartTime_and_Duration_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_StartTime_and_Duration_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_PRS_StartTime_and_Duration_r17_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_PRS_StartTime_and_Duration_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-PRS-TEG-InfoElement-r17.c b/asn.1/lpp_generated/DL-PRS-TEG-InfoElement-r17.c new file mode 100644 index 00000000..1c396785 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-TEG-InfoElement-r17.c @@ -0,0 +1,98 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-TEG-InfoElement-r17.h" + +static int +memb_dl_prs_trp_Tx_TEG_ID_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_prs_trp_Tx_TEG_ID_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_DL_PRS_TEG_InfoElement_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_PRS_TEG_InfoElement_r17, dl_prs_trp_Tx_TEG_ID_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_prs_trp_Tx_TEG_ID_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_prs_trp_Tx_TEG_ID_r17_constraint_1 + }, + 0, 0, /* No default value */ + "dl-prs-trp-Tx-TEG-ID-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_DL_PRS_TEG_InfoElement_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_PRS_TEG_InfoElement_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* dl-prs-trp-Tx-TEG-ID-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_TEG_InfoElement_r17_specs_1 = { + sizeof(struct DL_PRS_TEG_InfoElement_r17), + offsetof(struct DL_PRS_TEG_InfoElement_r17, _asn_ctx), + asn_MAP_DL_PRS_TEG_InfoElement_r17_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_TEG_InfoElement_r17 = { + "DL-PRS-TEG-InfoElement-r17", + "DL-PRS-TEG-InfoElement-r17", + &asn_OP_SEQUENCE, + asn_DEF_DL_PRS_TEG_InfoElement_r17_tags_1, + sizeof(asn_DEF_DL_PRS_TEG_InfoElement_r17_tags_1) + /sizeof(asn_DEF_DL_PRS_TEG_InfoElement_r17_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_TEG_InfoElement_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_TEG_InfoElement_r17_tags_1) + /sizeof(asn_DEF_DL_PRS_TEG_InfoElement_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DL_PRS_TEG_InfoElement_r17_1, + 1, /* Elements count */ + &asn_SPC_DL_PRS_TEG_InfoElement_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-PRS-TEG-InfoElement-r17.h b/asn.1/lpp_generated/DL-PRS-TEG-InfoElement-r17.h new file mode 100644 index 00000000..3ec2e90d --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-TEG-InfoElement-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_PRS_TEG_InfoElement_r17_H_ +#define _DL_PRS_TEG_InfoElement_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* DL-PRS-TEG-InfoElement-r17 */ +typedef struct DL_PRS_TEG_InfoElement_r17 { + long dl_prs_trp_Tx_TEG_ID_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_PRS_TEG_InfoElement_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_TEG_InfoElement_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_DL_PRS_TEG_InfoElement_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_PRS_TEG_InfoElement_r17_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_PRS_TEG_InfoElement_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-PRS-TEG-InfoPerResourceSet-r17.c b/asn.1/lpp_generated/DL-PRS-TEG-InfoPerResourceSet-r17.c new file mode 100644 index 00000000..ad09e9e7 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-TEG-InfoPerResourceSet-r17.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-PRS-TEG-InfoPerResourceSet-r17.h" + +#include "DL-PRS-TEG-InfoElement-r17.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DL_PRS_TEG_InfoPerResourceSet_r17_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_DL_PRS_TEG_InfoPerResourceSet_r17_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DL_PRS_TEG_InfoElement_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_DL_PRS_TEG_InfoPerResourceSet_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_DL_PRS_TEG_InfoPerResourceSet_r17_specs_1 = { + sizeof(struct DL_PRS_TEG_InfoPerResourceSet_r17), + offsetof(struct DL_PRS_TEG_InfoPerResourceSet_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_PRS_TEG_InfoPerResourceSet_r17 = { + "DL-PRS-TEG-InfoPerResourceSet-r17", + "DL-PRS-TEG-InfoPerResourceSet-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_DL_PRS_TEG_InfoPerResourceSet_r17_tags_1, + sizeof(asn_DEF_DL_PRS_TEG_InfoPerResourceSet_r17_tags_1) + /sizeof(asn_DEF_DL_PRS_TEG_InfoPerResourceSet_r17_tags_1[0]), /* 1 */ + asn_DEF_DL_PRS_TEG_InfoPerResourceSet_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_PRS_TEG_InfoPerResourceSet_r17_tags_1) + /sizeof(asn_DEF_DL_PRS_TEG_InfoPerResourceSet_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DL_PRS_TEG_InfoPerResourceSet_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_DL_PRS_TEG_InfoPerResourceSet_r17_1, + 1, /* Single element */ + &asn_SPC_DL_PRS_TEG_InfoPerResourceSet_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-PRS-TEG-InfoPerResourceSet-r17.h b/asn.1/lpp_generated/DL-PRS-TEG-InfoPerResourceSet-r17.h new file mode 100644 index 00000000..24f5bb21 --- /dev/null +++ b/asn.1/lpp_generated/DL-PRS-TEG-InfoPerResourceSet-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_PRS_TEG_InfoPerResourceSet_r17_H_ +#define _DL_PRS_TEG_InfoPerResourceSet_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct DL_PRS_TEG_InfoElement_r17; + +/* DL-PRS-TEG-InfoPerResourceSet-r17 */ +typedef struct DL_PRS_TEG_InfoPerResourceSet_r17 { + A_SEQUENCE_OF(struct DL_PRS_TEG_InfoElement_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_PRS_TEG_InfoPerResourceSet_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DL_PRS_TEG_InfoPerResourceSet_r17; +extern asn_SET_OF_specifics_t asn_SPC_DL_PRS_TEG_InfoPerResourceSet_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_PRS_TEG_InfoPerResourceSet_r17_1[1]; +extern asn_per_constraints_t asn_PER_type_DL_PRS_TEG_InfoPerResourceSet_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_PRS_TEG_InfoPerResourceSet_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-SelectedPRS-ResourceIndex-r16.c b/asn.1/lpp_generated/DL-SelectedPRS-ResourceIndex-r16.c new file mode 100644 index 00000000..7fe3c1f3 --- /dev/null +++ b/asn.1/lpp_generated/DL-SelectedPRS-ResourceIndex-r16.c @@ -0,0 +1,98 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-SelectedPRS-ResourceIndex-r16.h" + +static int +memb_nr_DL_SelectedPRS_ResourceIdIndex_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_SelectedPRS_ResourceIdIndex_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_DL_SelectedPRS_ResourceIndex_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_SelectedPRS_ResourceIndex_r16, nr_DL_SelectedPRS_ResourceIdIndex_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_SelectedPRS_ResourceIdIndex_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_SelectedPRS_ResourceIdIndex_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-SelectedPRS-ResourceIdIndex-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_DL_SelectedPRS_ResourceIndex_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_SelectedPRS_ResourceIndex_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-DL-SelectedPRS-ResourceIdIndex-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DL_SelectedPRS_ResourceIndex_r16_specs_1 = { + sizeof(struct DL_SelectedPRS_ResourceIndex_r16), + offsetof(struct DL_SelectedPRS_ResourceIndex_r16, _asn_ctx), + asn_MAP_DL_SelectedPRS_ResourceIndex_r16_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_SelectedPRS_ResourceIndex_r16 = { + "DL-SelectedPRS-ResourceIndex-r16", + "DL-SelectedPRS-ResourceIndex-r16", + &asn_OP_SEQUENCE, + asn_DEF_DL_SelectedPRS_ResourceIndex_r16_tags_1, + sizeof(asn_DEF_DL_SelectedPRS_ResourceIndex_r16_tags_1) + /sizeof(asn_DEF_DL_SelectedPRS_ResourceIndex_r16_tags_1[0]), /* 1 */ + asn_DEF_DL_SelectedPRS_ResourceIndex_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_SelectedPRS_ResourceIndex_r16_tags_1) + /sizeof(asn_DEF_DL_SelectedPRS_ResourceIndex_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DL_SelectedPRS_ResourceIndex_r16_1, + 1, /* Elements count */ + &asn_SPC_DL_SelectedPRS_ResourceIndex_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/DL-SelectedPRS-ResourceIndex-r16.h b/asn.1/lpp_generated/DL-SelectedPRS-ResourceIndex-r16.h similarity index 77% rename from asn.1/generated/DL-SelectedPRS-ResourceIndex-r16.h rename to asn.1/lpp_generated/DL-SelectedPRS-ResourceIndex-r16.h index a2c8d189..117d7b0b 100644 --- a/asn.1/generated/DL-SelectedPRS-ResourceIndex-r16.h +++ b/asn.1/lpp_generated/DL-SelectedPRS-ResourceIndex-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _DL_SelectedPRS_ResourceIndex_r16_H_ @@ -21,7 +21,7 @@ extern "C" { /* DL-SelectedPRS-ResourceIndex-r16 */ typedef struct DL_SelectedPRS_ResourceIndex_r16 { - long nr_dl_SelectedPRS_ResourceIdIndex_r16; + long nr_DL_SelectedPRS_ResourceIdIndex_r16; /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/DL-SelectedPRS-ResourceSetIndex-r16.c b/asn.1/lpp_generated/DL-SelectedPRS-ResourceSetIndex-r16.c new file mode 100644 index 00000000..2b1572d1 --- /dev/null +++ b/asn.1/lpp_generated/DL-SelectedPRS-ResourceSetIndex-r16.c @@ -0,0 +1,212 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-SelectedPRS-ResourceSetIndex-r16.h" + +#include "DL-SelectedPRS-ResourceIndex-r16.h" +static int +memb_nr_DL_SelectedPRS_ResourceSetIndex_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_SelectedPRS_ResourceIndexList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 64UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_SelectedPRS_ResourceIndexList_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_SelectedPRS_ResourceSetIndex_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_SelectedPRS_ResourceIndexList_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_dl_SelectedPRS_ResourceIndexList_r16_3[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DL_SelectedPRS_ResourceIndex_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_dl_SelectedPRS_ResourceIndexList_r16_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_dl_SelectedPRS_ResourceIndexList_r16_specs_3 = { + sizeof(struct DL_SelectedPRS_ResourceSetIndex_r16__dl_SelectedPRS_ResourceIndexList_r16), + offsetof(struct DL_SelectedPRS_ResourceSetIndex_r16__dl_SelectedPRS_ResourceIndexList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_SelectedPRS_ResourceIndexList_r16_3 = { + "dl-SelectedPRS-ResourceIndexList-r16", + "dl-SelectedPRS-ResourceIndexList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_dl_SelectedPRS_ResourceIndexList_r16_tags_3, + sizeof(asn_DEF_dl_SelectedPRS_ResourceIndexList_r16_tags_3) + /sizeof(asn_DEF_dl_SelectedPRS_ResourceIndexList_r16_tags_3[0]) - 1, /* 1 */ + asn_DEF_dl_SelectedPRS_ResourceIndexList_r16_tags_3, /* Same as above */ + sizeof(asn_DEF_dl_SelectedPRS_ResourceIndexList_r16_tags_3) + /sizeof(asn_DEF_dl_SelectedPRS_ResourceIndexList_r16_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_SelectedPRS_ResourceIndexList_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_dl_SelectedPRS_ResourceIndexList_r16_3, + 1, /* Single element */ + &asn_SPC_dl_SelectedPRS_ResourceIndexList_r16_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_DL_SelectedPRS_ResourceSetIndex_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_SelectedPRS_ResourceSetIndex_r16, nr_DL_SelectedPRS_ResourceSetIndex_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_SelectedPRS_ResourceSetIndex_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_SelectedPRS_ResourceSetIndex_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-SelectedPRS-ResourceSetIndex-r16" + }, + { ATF_POINTER, 1, offsetof(struct DL_SelectedPRS_ResourceSetIndex_r16, dl_SelectedPRS_ResourceIndexList_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_dl_SelectedPRS_ResourceIndexList_r16_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_SelectedPRS_ResourceIndexList_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_SelectedPRS_ResourceIndexList_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-SelectedPRS-ResourceIndexList-r16" + }, +}; +static const int asn_MAP_DL_SelectedPRS_ResourceSetIndex_r16_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_DL_SelectedPRS_ResourceSetIndex_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_SelectedPRS_ResourceSetIndex_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-SelectedPRS-ResourceSetIndex-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dl-SelectedPRS-ResourceIndexList-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DL_SelectedPRS_ResourceSetIndex_r16_specs_1 = { + sizeof(struct DL_SelectedPRS_ResourceSetIndex_r16), + offsetof(struct DL_SelectedPRS_ResourceSetIndex_r16, _asn_ctx), + asn_MAP_DL_SelectedPRS_ResourceSetIndex_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_DL_SelectedPRS_ResourceSetIndex_r16_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_SelectedPRS_ResourceSetIndex_r16 = { + "DL-SelectedPRS-ResourceSetIndex-r16", + "DL-SelectedPRS-ResourceSetIndex-r16", + &asn_OP_SEQUENCE, + asn_DEF_DL_SelectedPRS_ResourceSetIndex_r16_tags_1, + sizeof(asn_DEF_DL_SelectedPRS_ResourceSetIndex_r16_tags_1) + /sizeof(asn_DEF_DL_SelectedPRS_ResourceSetIndex_r16_tags_1[0]), /* 1 */ + asn_DEF_DL_SelectedPRS_ResourceSetIndex_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_SelectedPRS_ResourceSetIndex_r16_tags_1) + /sizeof(asn_DEF_DL_SelectedPRS_ResourceSetIndex_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DL_SelectedPRS_ResourceSetIndex_r16_1, + 2, /* Elements count */ + &asn_SPC_DL_SelectedPRS_ResourceSetIndex_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-SelectedPRS-ResourceSetIndex-r16.h b/asn.1/lpp_generated/DL-SelectedPRS-ResourceSetIndex-r16.h new file mode 100644 index 00000000..bd1fa0aa --- /dev/null +++ b/asn.1/lpp_generated/DL-SelectedPRS-ResourceSetIndex-r16.h @@ -0,0 +1,51 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_SelectedPRS_ResourceSetIndex_r16_H_ +#define _DL_SelectedPRS_ResourceSetIndex_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct DL_SelectedPRS_ResourceIndex_r16; + +/* DL-SelectedPRS-ResourceSetIndex-r16 */ +typedef struct DL_SelectedPRS_ResourceSetIndex_r16 { + long nr_DL_SelectedPRS_ResourceSetIndex_r16; + struct DL_SelectedPRS_ResourceSetIndex_r16__dl_SelectedPRS_ResourceIndexList_r16 { + A_SEQUENCE_OF(struct DL_SelectedPRS_ResourceIndex_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *dl_SelectedPRS_ResourceIndexList_r16; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_SelectedPRS_ResourceSetIndex_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DL_SelectedPRS_ResourceSetIndex_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_DL_SelectedPRS_ResourceSetIndex_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_SelectedPRS_ResourceSetIndex_r16_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_SelectedPRS_ResourceSetIndex_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/DL-TDOA-MeasCapabilityPerBand-r17.c b/asn.1/lpp_generated/DL-TDOA-MeasCapabilityPerBand-r17.c new file mode 100644 index 00000000..1354ba23 --- /dev/null +++ b/asn.1/lpp_generated/DL-TDOA-MeasCapabilityPerBand-r17.c @@ -0,0 +1,1075 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DL-TDOA-MeasCapabilityPerBand-r17.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfDL_PRS_FirstPathRSRP_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_MeasRRC_Inactive_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfDL_PRS_BWA_RRC_Connected_r18_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfDL_PRS_BWA_RRC_Inactive_r18_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfDL_PRS_BWA_RRC_Idle_r18_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_assocSingleRSTD_WithUpToNsampleRSCPD_r18_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfLegacyMeasurementInTimeWindow_r18_constr_21 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfRSCPD_MeasurementInTimeWindow_r18_constr_23 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfUE_basedCarrierPhasePositioning_r18_constr_25 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfSymbolTimeStampForRSCPD_r18_constr_27 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfFinerTimingReportGranularityForPRS_Meas_r18_constr_29 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_supportOfDL_PRS_FirstPathRSRP_r17_value2enum_3[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfDL_PRS_FirstPathRSRP_r17_enum2value_3[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfDL_PRS_FirstPathRSRP_r17_specs_3 = { + asn_MAP_supportOfDL_PRS_FirstPathRSRP_r17_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfDL_PRS_FirstPathRSRP_r17_enum2value_3, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_3 = { + "supportOfDL-PRS-FirstPathRSRP-r17", + "supportOfDL-PRS-FirstPathRSRP-r17", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_tags_3, + sizeof(asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_tags_3) + /sizeof(asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_tags_3[0]) - 1, /* 1 */ + asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_tags_3, /* Same as above */ + sizeof(asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_tags_3) + /sizeof(asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfDL_PRS_FirstPathRSRP_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfDL_PRS_FirstPathRSRP_r17_specs_3 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_MeasRRC_Inactive_r17_value2enum_5[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_dl_PRS_MeasRRC_Inactive_r17_enum2value_5[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_MeasRRC_Inactive_r17_specs_5 = { + asn_MAP_dl_PRS_MeasRRC_Inactive_r17_value2enum_5, /* "tag" => N; sorted by tag */ + asn_MAP_dl_PRS_MeasRRC_Inactive_r17_enum2value_5, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_MeasRRC_Inactive_r17_5 = { + "dl-PRS-MeasRRC-Inactive-r17", + "dl-PRS-MeasRRC-Inactive-r17", + &asn_OP_NativeEnumerated, + asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_5, + sizeof(asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_5) + /sizeof(asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_5[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_5, /* Same as above */ + sizeof(asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_5) + /sizeof(asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_MeasRRC_Inactive_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_PRS_MeasRRC_Inactive_r17_specs_5 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfDL_PRS_BWA_RRC_Connected_r18_value2enum_9[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfDL_PRS_BWA_RRC_Connected_r18_enum2value_9[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfDL_PRS_BWA_RRC_Connected_r18_specs_9 = { + asn_MAP_supportOfDL_PRS_BWA_RRC_Connected_r18_value2enum_9, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfDL_PRS_BWA_RRC_Connected_r18_enum2value_9, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_9 = { + "supportOfDL-PRS-BWA-RRC-Connected-r18", + "supportOfDL-PRS-BWA-RRC-Connected-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_tags_9, + sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_tags_9) + /sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_tags_9[0]) - 1, /* 1 */ + asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_tags_9, /* Same as above */ + sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_tags_9) + /sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfDL_PRS_BWA_RRC_Connected_r18_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfDL_PRS_BWA_RRC_Connected_r18_specs_9 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfDL_PRS_BWA_RRC_Inactive_r18_value2enum_11[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfDL_PRS_BWA_RRC_Inactive_r18_enum2value_11[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfDL_PRS_BWA_RRC_Inactive_r18_specs_11 = { + asn_MAP_supportOfDL_PRS_BWA_RRC_Inactive_r18_value2enum_11, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfDL_PRS_BWA_RRC_Inactive_r18_enum2value_11, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_11 = { + "supportOfDL-PRS-BWA-RRC-Inactive-r18", + "supportOfDL-PRS-BWA-RRC-Inactive-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_tags_11, + sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_tags_11) + /sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_tags_11[0]) - 1, /* 1 */ + asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_tags_11, /* Same as above */ + sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_tags_11) + /sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfDL_PRS_BWA_RRC_Inactive_r18_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfDL_PRS_BWA_RRC_Inactive_r18_specs_11 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfDL_PRS_BWA_RRC_Idle_r18_value2enum_13[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfDL_PRS_BWA_RRC_Idle_r18_enum2value_13[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfDL_PRS_BWA_RRC_Idle_r18_specs_13 = { + asn_MAP_supportOfDL_PRS_BWA_RRC_Idle_r18_value2enum_13, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfDL_PRS_BWA_RRC_Idle_r18_enum2value_13, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfDL_PRS_BWA_RRC_Idle_r18_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfDL_PRS_BWA_RRC_Idle_r18_13 = { + "supportOfDL-PRS-BWA-RRC-Idle-r18", + "supportOfDL-PRS-BWA-RRC-Idle-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfDL_PRS_BWA_RRC_Idle_r18_tags_13, + sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Idle_r18_tags_13) + /sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Idle_r18_tags_13[0]) - 1, /* 1 */ + asn_DEF_supportOfDL_PRS_BWA_RRC_Idle_r18_tags_13, /* Same as above */ + sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Idle_r18_tags_13) + /sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Idle_r18_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfDL_PRS_BWA_RRC_Idle_r18_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfDL_PRS_BWA_RRC_Idle_r18_specs_13 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18_value2enum_15[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18_enum2value_15[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18_specs_15 = { + asn_MAP_nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18_value2enum_15, /* "tag" => N; sorted by tag */ + asn_MAP_nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18_enum2value_15, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18_15 = { + "nr-DL-PRS-RSCPD-ReportingRRC-Connected-r18", + "nr-DL-PRS-RSCPD-ReportingRRC-Connected-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18_tags_15, + sizeof(asn_DEF_nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18_tags_15) + /sizeof(asn_DEF_nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18_tags_15[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18_tags_15, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18_tags_15) + /sizeof(asn_DEF_nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18_specs_15 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_assocSingleRSTD_WithUpToNsampleRSCPD_r18_value2enum_17[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_assocSingleRSTD_WithUpToNsampleRSCPD_r18_enum2value_17[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_assocSingleRSTD_WithUpToNsampleRSCPD_r18_specs_17 = { + asn_MAP_assocSingleRSTD_WithUpToNsampleRSCPD_r18_value2enum_17, /* "tag" => N; sorted by tag */ + asn_MAP_assocSingleRSTD_WithUpToNsampleRSCPD_r18_enum2value_17, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_assocSingleRSTD_WithUpToNsampleRSCPD_r18_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_assocSingleRSTD_WithUpToNsampleRSCPD_r18_17 = { + "assocSingleRSTD-WithUpToNsampleRSCPD-r18", + "assocSingleRSTD-WithUpToNsampleRSCPD-r18", + &asn_OP_NativeEnumerated, + asn_DEF_assocSingleRSTD_WithUpToNsampleRSCPD_r18_tags_17, + sizeof(asn_DEF_assocSingleRSTD_WithUpToNsampleRSCPD_r18_tags_17) + /sizeof(asn_DEF_assocSingleRSTD_WithUpToNsampleRSCPD_r18_tags_17[0]) - 1, /* 1 */ + asn_DEF_assocSingleRSTD_WithUpToNsampleRSCPD_r18_tags_17, /* Same as above */ + sizeof(asn_DEF_assocSingleRSTD_WithUpToNsampleRSCPD_r18_tags_17) + /sizeof(asn_DEF_assocSingleRSTD_WithUpToNsampleRSCPD_r18_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_assocSingleRSTD_WithUpToNsampleRSCPD_r18_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_assocSingleRSTD_WithUpToNsampleRSCPD_r18_specs_17 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18_value2enum_19[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18_enum2value_19[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18_specs_19 = { + asn_MAP_nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18_value2enum_19, /* "tag" => N; sorted by tag */ + asn_MAP_nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18_enum2value_19, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18_tags_19[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18_19 = { + "nr-DL-PRS-RSCPD-MeasurementRRC-Idle-r18", + "nr-DL-PRS-RSCPD-MeasurementRRC-Idle-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18_tags_19, + sizeof(asn_DEF_nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18_tags_19) + /sizeof(asn_DEF_nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18_tags_19[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18_tags_19, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18_tags_19) + /sizeof(asn_DEF_nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18_tags_19[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18_specs_19 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfLegacyMeasurementInTimeWindow_r18_value2enum_21[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfLegacyMeasurementInTimeWindow_r18_enum2value_21[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfLegacyMeasurementInTimeWindow_r18_specs_21 = { + asn_MAP_supportOfLegacyMeasurementInTimeWindow_r18_value2enum_21, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfLegacyMeasurementInTimeWindow_r18_enum2value_21, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_21[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_21 = { + "supportOfLegacyMeasurementInTimeWindow-r18", + "supportOfLegacyMeasurementInTimeWindow-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_21, + sizeof(asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_21) + /sizeof(asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_21[0]) - 1, /* 1 */ + asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_21, /* Same as above */ + sizeof(asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_21) + /sizeof(asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_21[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfLegacyMeasurementInTimeWindow_r18_constr_21, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfLegacyMeasurementInTimeWindow_r18_specs_21 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfRSCPD_MeasurementInTimeWindow_r18_value2enum_23[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfRSCPD_MeasurementInTimeWindow_r18_enum2value_23[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfRSCPD_MeasurementInTimeWindow_r18_specs_23 = { + asn_MAP_supportOfRSCPD_MeasurementInTimeWindow_r18_value2enum_23, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfRSCPD_MeasurementInTimeWindow_r18_enum2value_23, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfRSCPD_MeasurementInTimeWindow_r18_tags_23[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfRSCPD_MeasurementInTimeWindow_r18_23 = { + "supportOfRSCPD-MeasurementInTimeWindow-r18", + "supportOfRSCPD-MeasurementInTimeWindow-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfRSCPD_MeasurementInTimeWindow_r18_tags_23, + sizeof(asn_DEF_supportOfRSCPD_MeasurementInTimeWindow_r18_tags_23) + /sizeof(asn_DEF_supportOfRSCPD_MeasurementInTimeWindow_r18_tags_23[0]) - 1, /* 1 */ + asn_DEF_supportOfRSCPD_MeasurementInTimeWindow_r18_tags_23, /* Same as above */ + sizeof(asn_DEF_supportOfRSCPD_MeasurementInTimeWindow_r18_tags_23) + /sizeof(asn_DEF_supportOfRSCPD_MeasurementInTimeWindow_r18_tags_23[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfRSCPD_MeasurementInTimeWindow_r18_constr_23, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfRSCPD_MeasurementInTimeWindow_r18_specs_23 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfUE_basedCarrierPhasePositioning_r18_value2enum_25[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfUE_basedCarrierPhasePositioning_r18_enum2value_25[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfUE_basedCarrierPhasePositioning_r18_specs_25 = { + asn_MAP_supportOfUE_basedCarrierPhasePositioning_r18_value2enum_25, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfUE_basedCarrierPhasePositioning_r18_enum2value_25, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfUE_basedCarrierPhasePositioning_r18_tags_25[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfUE_basedCarrierPhasePositioning_r18_25 = { + "supportOfUE-basedCarrierPhasePositioning-r18", + "supportOfUE-basedCarrierPhasePositioning-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfUE_basedCarrierPhasePositioning_r18_tags_25, + sizeof(asn_DEF_supportOfUE_basedCarrierPhasePositioning_r18_tags_25) + /sizeof(asn_DEF_supportOfUE_basedCarrierPhasePositioning_r18_tags_25[0]) - 1, /* 1 */ + asn_DEF_supportOfUE_basedCarrierPhasePositioning_r18_tags_25, /* Same as above */ + sizeof(asn_DEF_supportOfUE_basedCarrierPhasePositioning_r18_tags_25) + /sizeof(asn_DEF_supportOfUE_basedCarrierPhasePositioning_r18_tags_25[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfUE_basedCarrierPhasePositioning_r18_constr_25, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfUE_basedCarrierPhasePositioning_r18_specs_25 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfSymbolTimeStampForRSCPD_r18_value2enum_27[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfSymbolTimeStampForRSCPD_r18_enum2value_27[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfSymbolTimeStampForRSCPD_r18_specs_27 = { + asn_MAP_supportOfSymbolTimeStampForRSCPD_r18_value2enum_27, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfSymbolTimeStampForRSCPD_r18_enum2value_27, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfSymbolTimeStampForRSCPD_r18_tags_27[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfSymbolTimeStampForRSCPD_r18_27 = { + "supportOfSymbolTimeStampForRSCPD-r18", + "supportOfSymbolTimeStampForRSCPD-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfSymbolTimeStampForRSCPD_r18_tags_27, + sizeof(asn_DEF_supportOfSymbolTimeStampForRSCPD_r18_tags_27) + /sizeof(asn_DEF_supportOfSymbolTimeStampForRSCPD_r18_tags_27[0]) - 1, /* 1 */ + asn_DEF_supportOfSymbolTimeStampForRSCPD_r18_tags_27, /* Same as above */ + sizeof(asn_DEF_supportOfSymbolTimeStampForRSCPD_r18_tags_27) + /sizeof(asn_DEF_supportOfSymbolTimeStampForRSCPD_r18_tags_27[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfSymbolTimeStampForRSCPD_r18_constr_27, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfSymbolTimeStampForRSCPD_r18_specs_27 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfFinerTimingReportGranularityForPRS_Meas_r18_value2enum_29[] = { + { 0, 6, "minus1" }, + { 1, 6, "minus2" }, + { 2, 6, "minus3" }, + { 3, 6, "minus4" }, + { 4, 6, "minus5" }, + { 5, 6, "minus6" } +}; +static const unsigned int asn_MAP_supportOfFinerTimingReportGranularityForPRS_Meas_r18_enum2value_29[] = { + 0, /* minus1(0) */ + 1, /* minus2(1) */ + 2, /* minus3(2) */ + 3, /* minus4(3) */ + 4, /* minus5(4) */ + 5 /* minus6(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfFinerTimingReportGranularityForPRS_Meas_r18_specs_29 = { + asn_MAP_supportOfFinerTimingReportGranularityForPRS_Meas_r18_value2enum_29, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfFinerTimingReportGranularityForPRS_Meas_r18_enum2value_29, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_tags_29[] = { + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_29 = { + "supportOfFinerTimingReportGranularityForPRS-Meas-r18", + "supportOfFinerTimingReportGranularityForPRS-Meas-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_tags_29, + sizeof(asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_tags_29) + /sizeof(asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_tags_29[0]) - 1, /* 1 */ + asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_tags_29, /* Same as above */ + sizeof(asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_tags_29) + /sizeof(asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_tags_29[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfFinerTimingReportGranularityForPRS_Meas_r18_constr_29, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfFinerTimingReportGranularityForPRS_Meas_r18_specs_29 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_8[] = { + { ATF_POINTER, 11, offsetof(struct DL_TDOA_MeasCapabilityPerBand_r17__ext1, supportOfDL_PRS_BWA_RRC_Connected_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfDL-PRS-BWA-RRC-Connected-r18" + }, + { ATF_POINTER, 10, offsetof(struct DL_TDOA_MeasCapabilityPerBand_r17__ext1, supportOfDL_PRS_BWA_RRC_Inactive_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfDL-PRS-BWA-RRC-Inactive-r18" + }, + { ATF_POINTER, 9, offsetof(struct DL_TDOA_MeasCapabilityPerBand_r17__ext1, supportOfDL_PRS_BWA_RRC_Idle_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfDL_PRS_BWA_RRC_Idle_r18_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfDL-PRS-BWA-RRC-Idle-r18" + }, + { ATF_POINTER, 8, offsetof(struct DL_TDOA_MeasCapabilityPerBand_r17__ext1, nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RSCPD-ReportingRRC-Connected-r18" + }, + { ATF_POINTER, 7, offsetof(struct DL_TDOA_MeasCapabilityPerBand_r17__ext1, assocSingleRSTD_WithUpToNsampleRSCPD_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_assocSingleRSTD_WithUpToNsampleRSCPD_r18_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "assocSingleRSTD-WithUpToNsampleRSCPD-r18" + }, + { ATF_POINTER, 6, offsetof(struct DL_TDOA_MeasCapabilityPerBand_r17__ext1, nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18_19, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RSCPD-MeasurementRRC-Idle-r18" + }, + { ATF_POINTER, 5, offsetof(struct DL_TDOA_MeasCapabilityPerBand_r17__ext1, supportOfLegacyMeasurementInTimeWindow_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_21, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfLegacyMeasurementInTimeWindow-r18" + }, + { ATF_POINTER, 4, offsetof(struct DL_TDOA_MeasCapabilityPerBand_r17__ext1, supportOfRSCPD_MeasurementInTimeWindow_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfRSCPD_MeasurementInTimeWindow_r18_23, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfRSCPD-MeasurementInTimeWindow-r18" + }, + { ATF_POINTER, 3, offsetof(struct DL_TDOA_MeasCapabilityPerBand_r17__ext1, supportOfUE_basedCarrierPhasePositioning_r18), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfUE_basedCarrierPhasePositioning_r18_25, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfUE-basedCarrierPhasePositioning-r18" + }, + { ATF_POINTER, 2, offsetof(struct DL_TDOA_MeasCapabilityPerBand_r17__ext1, supportOfSymbolTimeStampForRSCPD_r18), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfSymbolTimeStampForRSCPD_r18_27, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfSymbolTimeStampForRSCPD-r18" + }, + { ATF_POINTER, 1, offsetof(struct DL_TDOA_MeasCapabilityPerBand_r17__ext1, supportOfFinerTimingReportGranularityForPRS_Meas_r18), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_29, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfFinerTimingReportGranularityForPRS-Meas-r18" + }, +}; +static const int asn_MAP_ext1_oms_8[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* supportOfDL-PRS-BWA-RRC-Connected-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* supportOfDL-PRS-BWA-RRC-Inactive-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* supportOfDL-PRS-BWA-RRC-Idle-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-DL-PRS-RSCPD-ReportingRRC-Connected-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* assocSingleRSTD-WithUpToNsampleRSCPD-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nr-DL-PRS-RSCPD-MeasurementRRC-Idle-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* supportOfLegacyMeasurementInTimeWindow-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* supportOfRSCPD-MeasurementInTimeWindow-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* supportOfUE-basedCarrierPhasePositioning-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* supportOfSymbolTimeStampForRSCPD-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 } /* supportOfFinerTimingReportGranularityForPRS-Meas-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { + sizeof(struct DL_TDOA_MeasCapabilityPerBand_r17__ext1), + offsetof(struct DL_TDOA_MeasCapabilityPerBand_r17__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_8, + 11, /* Count of tags in the map */ + asn_MAP_ext1_oms_8, /* Optional members */ + 11, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_8 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_8, + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_8, /* Same as above */ + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_8, + 11, /* Elements count */ + &asn_SPC_ext1_specs_8 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_DL_TDOA_MeasCapabilityPerBand_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DL_TDOA_MeasCapabilityPerBand_r17, freqBandIndicatorNR_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FreqBandIndicatorNR_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "freqBandIndicatorNR-r17" + }, + { ATF_POINTER, 3, offsetof(struct DL_TDOA_MeasCapabilityPerBand_r17, supportOfDL_PRS_FirstPathRSRP_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfDL-PRS-FirstPathRSRP-r17" + }, + { ATF_POINTER, 2, offsetof(struct DL_TDOA_MeasCapabilityPerBand_r17, dl_PRS_MeasRRC_Inactive_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_PRS_MeasRRC_Inactive_r17_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-MeasRRC-Inactive-r17" + }, + { ATF_POINTER, 1, offsetof(struct DL_TDOA_MeasCapabilityPerBand_r17, ext1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext1_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_DL_TDOA_MeasCapabilityPerBand_r17_oms_1[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_DL_TDOA_MeasCapabilityPerBand_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DL_TDOA_MeasCapabilityPerBand_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* freqBandIndicatorNR-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* supportOfDL-PRS-FirstPathRSRP-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dl-PRS-MeasRRC-Inactive-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DL_TDOA_MeasCapabilityPerBand_r17_specs_1 = { + sizeof(struct DL_TDOA_MeasCapabilityPerBand_r17), + offsetof(struct DL_TDOA_MeasCapabilityPerBand_r17, _asn_ctx), + asn_MAP_DL_TDOA_MeasCapabilityPerBand_r17_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_DL_TDOA_MeasCapabilityPerBand_r17_oms_1, /* Optional members */ + 2, 1, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DL_TDOA_MeasCapabilityPerBand_r17 = { + "DL-TDOA-MeasCapabilityPerBand-r17", + "DL-TDOA-MeasCapabilityPerBand-r17", + &asn_OP_SEQUENCE, + asn_DEF_DL_TDOA_MeasCapabilityPerBand_r17_tags_1, + sizeof(asn_DEF_DL_TDOA_MeasCapabilityPerBand_r17_tags_1) + /sizeof(asn_DEF_DL_TDOA_MeasCapabilityPerBand_r17_tags_1[0]), /* 1 */ + asn_DEF_DL_TDOA_MeasCapabilityPerBand_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_DL_TDOA_MeasCapabilityPerBand_r17_tags_1) + /sizeof(asn_DEF_DL_TDOA_MeasCapabilityPerBand_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DL_TDOA_MeasCapabilityPerBand_r17_1, + 4, /* Elements count */ + &asn_SPC_DL_TDOA_MeasCapabilityPerBand_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/DL-TDOA-MeasCapabilityPerBand-r17.h b/asn.1/lpp_generated/DL-TDOA-MeasCapabilityPerBand-r17.h new file mode 100644 index 00000000..85d735af --- /dev/null +++ b/asn.1/lpp_generated/DL-TDOA-MeasCapabilityPerBand-r17.h @@ -0,0 +1,122 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _DL_TDOA_MeasCapabilityPerBand_r17_H_ +#define _DL_TDOA_MeasCapabilityPerBand_r17_H_ + + +#include + +/* Including external dependencies */ +#include "FreqBandIndicatorNR-r16.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum DL_TDOA_MeasCapabilityPerBand_r17__supportOfDL_PRS_FirstPathRSRP_r17 { + DL_TDOA_MeasCapabilityPerBand_r17__supportOfDL_PRS_FirstPathRSRP_r17_supported = 0 +} e_DL_TDOA_MeasCapabilityPerBand_r17__supportOfDL_PRS_FirstPathRSRP_r17; +typedef enum DL_TDOA_MeasCapabilityPerBand_r17__dl_PRS_MeasRRC_Inactive_r17 { + DL_TDOA_MeasCapabilityPerBand_r17__dl_PRS_MeasRRC_Inactive_r17_supported = 0 +} e_DL_TDOA_MeasCapabilityPerBand_r17__dl_PRS_MeasRRC_Inactive_r17; +typedef enum DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfDL_PRS_BWA_RRC_Connected_r18 { + DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfDL_PRS_BWA_RRC_Connected_r18_supported = 0 +} e_DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfDL_PRS_BWA_RRC_Connected_r18; +typedef enum DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfDL_PRS_BWA_RRC_Inactive_r18 { + DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfDL_PRS_BWA_RRC_Inactive_r18_supported = 0 +} e_DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfDL_PRS_BWA_RRC_Inactive_r18; +typedef enum DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfDL_PRS_BWA_RRC_Idle_r18 { + DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfDL_PRS_BWA_RRC_Idle_r18_supported = 0 +} e_DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfDL_PRS_BWA_RRC_Idle_r18; +typedef enum DL_TDOA_MeasCapabilityPerBand_r17__ext1__nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18 { + DL_TDOA_MeasCapabilityPerBand_r17__ext1__nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18_supported = 0 +} e_DL_TDOA_MeasCapabilityPerBand_r17__ext1__nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18; +typedef enum DL_TDOA_MeasCapabilityPerBand_r17__ext1__assocSingleRSTD_WithUpToNsampleRSCPD_r18 { + DL_TDOA_MeasCapabilityPerBand_r17__ext1__assocSingleRSTD_WithUpToNsampleRSCPD_r18_supported = 0 +} e_DL_TDOA_MeasCapabilityPerBand_r17__ext1__assocSingleRSTD_WithUpToNsampleRSCPD_r18; +typedef enum DL_TDOA_MeasCapabilityPerBand_r17__ext1__nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18 { + DL_TDOA_MeasCapabilityPerBand_r17__ext1__nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18_supported = 0 +} e_DL_TDOA_MeasCapabilityPerBand_r17__ext1__nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18; +typedef enum DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfLegacyMeasurementInTimeWindow_r18 { + DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfLegacyMeasurementInTimeWindow_r18_supported = 0 +} e_DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfLegacyMeasurementInTimeWindow_r18; +typedef enum DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfRSCPD_MeasurementInTimeWindow_r18 { + DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfRSCPD_MeasurementInTimeWindow_r18_supported = 0 +} e_DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfRSCPD_MeasurementInTimeWindow_r18; +typedef enum DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfUE_basedCarrierPhasePositioning_r18 { + DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfUE_basedCarrierPhasePositioning_r18_supported = 0 +} e_DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfUE_basedCarrierPhasePositioning_r18; +typedef enum DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfSymbolTimeStampForRSCPD_r18 { + DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfSymbolTimeStampForRSCPD_r18_supported = 0 +} e_DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfSymbolTimeStampForRSCPD_r18; +typedef enum DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfFinerTimingReportGranularityForPRS_Meas_r18 { + DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfFinerTimingReportGranularityForPRS_Meas_r18_minus1 = 0, + DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfFinerTimingReportGranularityForPRS_Meas_r18_minus2 = 1, + DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfFinerTimingReportGranularityForPRS_Meas_r18_minus3 = 2, + DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfFinerTimingReportGranularityForPRS_Meas_r18_minus4 = 3, + DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfFinerTimingReportGranularityForPRS_Meas_r18_minus5 = 4, + DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfFinerTimingReportGranularityForPRS_Meas_r18_minus6 = 5 +} e_DL_TDOA_MeasCapabilityPerBand_r17__ext1__supportOfFinerTimingReportGranularityForPRS_Meas_r18; + +/* DL-TDOA-MeasCapabilityPerBand-r17 */ +typedef struct DL_TDOA_MeasCapabilityPerBand_r17 { + FreqBandIndicatorNR_r16_t freqBandIndicatorNR_r17; + long *supportOfDL_PRS_FirstPathRSRP_r17; /* OPTIONAL */ + long *dl_PRS_MeasRRC_Inactive_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct DL_TDOA_MeasCapabilityPerBand_r17__ext1 { + long *supportOfDL_PRS_BWA_RRC_Connected_r18; /* OPTIONAL */ + long *supportOfDL_PRS_BWA_RRC_Inactive_r18; /* OPTIONAL */ + long *supportOfDL_PRS_BWA_RRC_Idle_r18; /* OPTIONAL */ + long *nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18; /* OPTIONAL */ + long *assocSingleRSTD_WithUpToNsampleRSCPD_r18; /* OPTIONAL */ + long *nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18; /* OPTIONAL */ + long *supportOfLegacyMeasurementInTimeWindow_r18; /* OPTIONAL */ + long *supportOfRSCPD_MeasurementInTimeWindow_r18; /* OPTIONAL */ + long *supportOfUE_basedCarrierPhasePositioning_r18; /* OPTIONAL */ + long *supportOfSymbolTimeStampForRSCPD_r18; /* OPTIONAL */ + long *supportOfFinerTimingReportGranularityForPRS_Meas_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DL_TDOA_MeasCapabilityPerBand_r17_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_3; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_dl_PRS_MeasRRC_Inactive_r17_5; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_9; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_11; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfDL_PRS_BWA_RRC_Idle_r18_13; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RSCPD_ReportingRRC_Connected_r18_15; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_assocSingleRSTD_WithUpToNsampleRSCPD_r18_17; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RSCPD_MeasurementRRC_Idle_r18_19; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_21; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfRSCPD_MeasurementInTimeWindow_r18_23; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfUE_basedCarrierPhasePositioning_r18_25; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfSymbolTimeStampForRSCPD_r18_27; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_29; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_DL_TDOA_MeasCapabilityPerBand_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_DL_TDOA_MeasCapabilityPerBand_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_DL_TDOA_MeasCapabilityPerBand_r17_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DL_TDOA_MeasCapabilityPerBand_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/Delta-Height-r16.c b/asn.1/lpp_generated/Delta-Height-r16.c new file mode 100644 index 00000000..48c58751 --- /dev/null +++ b/asn.1/lpp_generated/Delta-Height-r16.c @@ -0,0 +1,150 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Delta-Height-r16.h" + +static int +memb_delta_Height_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_coarse_delta_Height_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_delta_Height_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_coarse_delta_Height_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Delta_Height_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Delta_Height_r16, delta_Height_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_delta_Height_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_delta_Height_r16_constraint_1 + }, + 0, 0, /* No default value */ + "delta-Height-r16" + }, + { ATF_POINTER, 1, offsetof(struct Delta_Height_r16, coarse_delta_Height_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_coarse_delta_Height_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_coarse_delta_Height_r16_constraint_1 + }, + 0, 0, /* No default value */ + "coarse-delta-Height-r16" + }, +}; +static const int asn_MAP_Delta_Height_r16_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_Delta_Height_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Delta_Height_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* delta-Height-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* coarse-delta-Height-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Delta_Height_r16_specs_1 = { + sizeof(struct Delta_Height_r16), + offsetof(struct Delta_Height_r16, _asn_ctx), + asn_MAP_Delta_Height_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_Delta_Height_r16_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Delta_Height_r16 = { + "Delta-Height-r16", + "Delta-Height-r16", + &asn_OP_SEQUENCE, + asn_DEF_Delta_Height_r16_tags_1, + sizeof(asn_DEF_Delta_Height_r16_tags_1) + /sizeof(asn_DEF_Delta_Height_r16_tags_1[0]), /* 1 */ + asn_DEF_Delta_Height_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_Delta_Height_r16_tags_1) + /sizeof(asn_DEF_Delta_Height_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Delta_Height_r16_1, + 2, /* Elements count */ + &asn_SPC_Delta_Height_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/Delta-Height-r16.h b/asn.1/lpp_generated/Delta-Height-r16.h new file mode 100644 index 00000000..3e57c4fa --- /dev/null +++ b/asn.1/lpp_generated/Delta-Height-r16.h @@ -0,0 +1,45 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _Delta_Height_r16_H_ +#define _Delta_Height_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Delta-Height-r16 */ +typedef struct Delta_Height_r16 { + long delta_Height_r16; + long *coarse_delta_Height_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Delta_Height_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Delta_Height_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_Delta_Height_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_Delta_Height_r16_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Delta_Height_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/Delta-Latitude-r16.c b/asn.1/lpp_generated/Delta-Latitude-r16.c new file mode 100644 index 00000000..cf6b1e7f --- /dev/null +++ b/asn.1/lpp_generated/Delta-Latitude-r16.c @@ -0,0 +1,150 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Delta-Latitude-r16.h" + +static int +memb_delta_Latitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_coarse_delta_Latitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_delta_Latitude_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_coarse_delta_Latitude_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Delta_Latitude_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Delta_Latitude_r16, delta_Latitude_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_delta_Latitude_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_delta_Latitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "delta-Latitude-r16" + }, + { ATF_POINTER, 1, offsetof(struct Delta_Latitude_r16, coarse_delta_Latitude_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_coarse_delta_Latitude_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_coarse_delta_Latitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "coarse-delta-Latitude-r16" + }, +}; +static const int asn_MAP_Delta_Latitude_r16_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_Delta_Latitude_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Delta_Latitude_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* delta-Latitude-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* coarse-delta-Latitude-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Delta_Latitude_r16_specs_1 = { + sizeof(struct Delta_Latitude_r16), + offsetof(struct Delta_Latitude_r16, _asn_ctx), + asn_MAP_Delta_Latitude_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_Delta_Latitude_r16_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Delta_Latitude_r16 = { + "Delta-Latitude-r16", + "Delta-Latitude-r16", + &asn_OP_SEQUENCE, + asn_DEF_Delta_Latitude_r16_tags_1, + sizeof(asn_DEF_Delta_Latitude_r16_tags_1) + /sizeof(asn_DEF_Delta_Latitude_r16_tags_1[0]), /* 1 */ + asn_DEF_Delta_Latitude_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_Delta_Latitude_r16_tags_1) + /sizeof(asn_DEF_Delta_Latitude_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Delta_Latitude_r16_1, + 2, /* Elements count */ + &asn_SPC_Delta_Latitude_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Delta-Latitude-r16.h b/asn.1/lpp_generated/Delta-Latitude-r16.h similarity index 75% rename from asn.1/generated/Delta-Latitude-r16.h rename to asn.1/lpp_generated/Delta-Latitude-r16.h index 1098983e..9d677bd8 100644 --- a/asn.1/generated/Delta-Latitude-r16.h +++ b/asn.1/lpp_generated/Delta-Latitude-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Delta_Latitude_r16_H_ @@ -22,7 +22,7 @@ extern "C" { /* Delta-Latitude-r16 */ typedef struct Delta_Latitude_r16 { long delta_Latitude_r16; - long *coarse_delta_Latitude_r16 /* OPTIONAL */; + long *coarse_delta_Latitude_r16; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/Delta-Longitude-r16.c b/asn.1/lpp_generated/Delta-Longitude-r16.c new file mode 100644 index 00000000..04db08c2 --- /dev/null +++ b/asn.1/lpp_generated/Delta-Longitude-r16.c @@ -0,0 +1,150 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Delta-Longitude-r16.h" + +static int +memb_delta_Longitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_coarse_delta_Longitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_delta_Longitude_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_coarse_delta_Longitude_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Delta_Longitude_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Delta_Longitude_r16, delta_Longitude_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_delta_Longitude_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_delta_Longitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "delta-Longitude-r16" + }, + { ATF_POINTER, 1, offsetof(struct Delta_Longitude_r16, coarse_delta_Longitude_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_coarse_delta_Longitude_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_coarse_delta_Longitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "coarse-delta-Longitude-r16" + }, +}; +static const int asn_MAP_Delta_Longitude_r16_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_Delta_Longitude_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Delta_Longitude_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* delta-Longitude-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* coarse-delta-Longitude-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Delta_Longitude_r16_specs_1 = { + sizeof(struct Delta_Longitude_r16), + offsetof(struct Delta_Longitude_r16, _asn_ctx), + asn_MAP_Delta_Longitude_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_Delta_Longitude_r16_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Delta_Longitude_r16 = { + "Delta-Longitude-r16", + "Delta-Longitude-r16", + &asn_OP_SEQUENCE, + asn_DEF_Delta_Longitude_r16_tags_1, + sizeof(asn_DEF_Delta_Longitude_r16_tags_1) + /sizeof(asn_DEF_Delta_Longitude_r16_tags_1[0]), /* 1 */ + asn_DEF_Delta_Longitude_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_Delta_Longitude_r16_tags_1) + /sizeof(asn_DEF_Delta_Longitude_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Delta_Longitude_r16_1, + 2, /* Elements count */ + &asn_SPC_Delta_Longitude_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Delta-Longitude-r16.h b/asn.1/lpp_generated/Delta-Longitude-r16.h similarity index 75% rename from asn.1/generated/Delta-Longitude-r16.h rename to asn.1/lpp_generated/Delta-Longitude-r16.h index 08ef1df8..d861bc57 100644 --- a/asn.1/generated/Delta-Longitude-r16.h +++ b/asn.1/lpp_generated/Delta-Longitude-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Delta_Longitude_r16_H_ @@ -22,7 +22,7 @@ extern "C" { /* Delta-Longitude-r16 */ typedef struct Delta_Longitude_r16 { long delta_Longitude_r16; - long *coarse_delta_Longitude_r16 /* OPTIONAL */; + long *coarse_delta_Longitude_r16; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/DeltaTime-r15.c b/asn.1/lpp_generated/DeltaTime-r15.c new file mode 100644 index 00000000..11434550 --- /dev/null +++ b/asn.1/lpp_generated/DeltaTime-r15.c @@ -0,0 +1,152 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DeltaTime-r15.h" + +static int +memb_deltaTimeSec_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 16384L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_deltaTimeSFN_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 4096L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_deltaTimeSec_r15_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 1, 16384 } /* (1..16384) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_deltaTimeSFN_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 1, 4096 } /* (1..4096) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DeltaTime_r15_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_DeltaTime_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DeltaTime_r15, choice.deltaTimeSec_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_deltaTimeSec_r15_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_deltaTimeSec_r15_constraint_1 + }, + 0, 0, /* No default value */ + "deltaTimeSec-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct DeltaTime_r15, choice.deltaTimeSFN_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_deltaTimeSFN_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_deltaTimeSFN_r15_constraint_1 + }, + 0, 0, /* No default value */ + "deltaTimeSFN-r15" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_DeltaTime_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* deltaTimeSec-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* deltaTimeSFN-r15 */ +}; +asn_CHOICE_specifics_t asn_SPC_DeltaTime_r15_specs_1 = { + sizeof(struct DeltaTime_r15), + offsetof(struct DeltaTime_r15, _asn_ctx), + offsetof(struct DeltaTime_r15, present), + sizeof(((struct DeltaTime_r15 *)0)->present), + asn_MAP_DeltaTime_r15_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_DeltaTime_r15 = { + "DeltaTime-r15", + "DeltaTime-r15", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DeltaTime_r15_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_DeltaTime_r15_1, + 2, /* Elements count */ + &asn_SPC_DeltaTime_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/DeltaTime-r15.h b/asn.1/lpp_generated/DeltaTime-r15.h similarity index 83% rename from asn.1/generated/DeltaTime-r15.h rename to asn.1/lpp_generated/DeltaTime-r15.h index bb696c8a..4a68cf7d 100644 --- a/asn.1/generated/DeltaTime-r15.h +++ b/asn.1/lpp_generated/DeltaTime-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _DeltaTime_r15_H_ diff --git a/asn.1/lpp_generated/Displacement-r15.c b/asn.1/lpp_generated/Displacement-r15.c new file mode 100644 index 00000000..99445709 --- /dev/null +++ b/asn.1/lpp_generated/Displacement-r15.c @@ -0,0 +1,600 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Displacement-r15.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_bearing_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3599L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bearingUncConfidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_horizontalDistance_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_horizontalDistanceUnc_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_horizontalUncConfidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_verticalDistance_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_verticalDistanceUnc_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_verticalUncConfidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_bearingRef_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_verticalDirection_r15_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bearing_r15_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bearingUncConfidence_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horizontalDistance_r15_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, 0, 8191 } /* (0..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horizontalDistanceUnc_r15_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horizontalUncConfidence_r15_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_verticalDistance_r15_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, 0, 8191 } /* (0..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_verticalDistanceUnc_r15_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_verticalUncConfidence_r15_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_bearingRef_r15_value2enum_4[] = { + { 0, 15, "geographicNorth" }, + { 1, 13, "magneticNorth" }, + { 2, 5, "local" } +}; +static const unsigned int asn_MAP_bearingRef_r15_enum2value_4[] = { + 0, /* geographicNorth(0) */ + 2, /* local(2) */ + 1 /* magneticNorth(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_bearingRef_r15_specs_4 = { + asn_MAP_bearingRef_r15_value2enum_4, /* "tag" => N; sorted by tag */ + asn_MAP_bearingRef_r15_enum2value_4, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_bearingRef_r15_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_bearingRef_r15_4 = { + "bearingRef-r15", + "bearingRef-r15", + &asn_OP_NativeEnumerated, + asn_DEF_bearingRef_r15_tags_4, + sizeof(asn_DEF_bearingRef_r15_tags_4) + /sizeof(asn_DEF_bearingRef_r15_tags_4[0]) - 1, /* 1 */ + asn_DEF_bearingRef_r15_tags_4, /* Same as above */ + sizeof(asn_DEF_bearingRef_r15_tags_4) + /sizeof(asn_DEF_bearingRef_r15_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_bearingRef_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_bearingRef_r15_specs_4 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_verticalDirection_r15_value2enum_11[] = { + { 0, 6, "upward" }, + { 1, 8, "downward" } +}; +static const unsigned int asn_MAP_verticalDirection_r15_enum2value_11[] = { + 1, /* downward(1) */ + 0 /* upward(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_verticalDirection_r15_specs_11 = { + asn_MAP_verticalDirection_r15_value2enum_11, /* "tag" => N; sorted by tag */ + asn_MAP_verticalDirection_r15_enum2value_11, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_verticalDirection_r15_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_verticalDirection_r15_11 = { + "verticalDirection-r15", + "verticalDirection-r15", + &asn_OP_NativeEnumerated, + asn_DEF_verticalDirection_r15_tags_11, + sizeof(asn_DEF_verticalDirection_r15_tags_11) + /sizeof(asn_DEF_verticalDirection_r15_tags_11[0]) - 1, /* 1 */ + asn_DEF_verticalDirection_r15_tags_11, /* Same as above */ + sizeof(asn_DEF_verticalDirection_r15_tags_11) + /sizeof(asn_DEF_verticalDirection_r15_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_verticalDirection_r15_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_verticalDirection_r15_specs_11 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_Displacement_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Displacement_r15, bearing_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bearing_r15_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bearing_r15_constraint_1 + }, + 0, 0, /* No default value */ + "bearing-r15" + }, + { ATF_POINTER, 1, offsetof(struct Displacement_r15, bearingUncConfidence_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bearingUncConfidence_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bearingUncConfidence_r15_constraint_1 + }, + 0, 0, /* No default value */ + "bearingUncConfidence-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct Displacement_r15, bearingRef_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_bearingRef_r15_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bearingRef-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct Displacement_r15, horizontalDistance_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horizontalDistance_r15_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horizontalDistance_r15_constraint_1 + }, + 0, 0, /* No default value */ + "horizontalDistance-r15" + }, + { ATF_POINTER, 6, offsetof(struct Displacement_r15, horizontalDistanceUnc_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horizontalDistanceUnc_r15_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horizontalDistanceUnc_r15_constraint_1 + }, + 0, 0, /* No default value */ + "horizontalDistanceUnc-r15" + }, + { ATF_POINTER, 5, offsetof(struct Displacement_r15, horizontalUncConfidence_r15), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horizontalUncConfidence_r15_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horizontalUncConfidence_r15_constraint_1 + }, + 0, 0, /* No default value */ + "horizontalUncConfidence-r15" + }, + { ATF_POINTER, 4, offsetof(struct Displacement_r15, verticalDirection_r15), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_verticalDirection_r15_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalDirection-r15" + }, + { ATF_POINTER, 3, offsetof(struct Displacement_r15, verticalDistance_r15), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_verticalDistance_r15_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_verticalDistance_r15_constraint_1 + }, + 0, 0, /* No default value */ + "verticalDistance-r15" + }, + { ATF_POINTER, 2, offsetof(struct Displacement_r15, verticalDistanceUnc_r15), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_verticalDistanceUnc_r15_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_verticalDistanceUnc_r15_constraint_1 + }, + 0, 0, /* No default value */ + "verticalDistanceUnc-r15" + }, + { ATF_POINTER, 1, offsetof(struct Displacement_r15, verticalUncConfidence_r15), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_verticalUncConfidence_r15_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_verticalUncConfidence_r15_constraint_1 + }, + 0, 0, /* No default value */ + "verticalUncConfidence-r15" + }, +}; +static const int asn_MAP_Displacement_r15_oms_1[] = { 1, 4, 5, 6, 7, 8, 9 }; +static const ber_tlv_tag_t asn_DEF_Displacement_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Displacement_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bearing-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bearingUncConfidence-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bearingRef-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* horizontalDistance-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* horizontalDistanceUnc-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* horizontalUncConfidence-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* verticalDirection-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* verticalDistance-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* verticalDistanceUnc-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* verticalUncConfidence-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Displacement_r15_specs_1 = { + sizeof(struct Displacement_r15), + offsetof(struct Displacement_r15, _asn_ctx), + asn_MAP_Displacement_r15_tag2el_1, + 10, /* Count of tags in the map */ + asn_MAP_Displacement_r15_oms_1, /* Optional members */ + 7, 0, /* Root/Additions */ + 10, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Displacement_r15 = { + "Displacement-r15", + "Displacement-r15", + &asn_OP_SEQUENCE, + asn_DEF_Displacement_r15_tags_1, + sizeof(asn_DEF_Displacement_r15_tags_1) + /sizeof(asn_DEF_Displacement_r15_tags_1[0]), /* 1 */ + asn_DEF_Displacement_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_Displacement_r15_tags_1) + /sizeof(asn_DEF_Displacement_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Displacement_r15_1, + 10, /* Elements count */ + &asn_SPC_Displacement_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/Displacement-r15.h b/asn.1/lpp_generated/Displacement-r15.h new file mode 100644 index 00000000..15813658 --- /dev/null +++ b/asn.1/lpp_generated/Displacement-r15.h @@ -0,0 +1,67 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _Displacement_r15_H_ +#define _Displacement_r15_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum Displacement_r15__bearingRef_r15 { + Displacement_r15__bearingRef_r15_geographicNorth = 0, + Displacement_r15__bearingRef_r15_magneticNorth = 1, + Displacement_r15__bearingRef_r15_local = 2 +} e_Displacement_r15__bearingRef_r15; +typedef enum Displacement_r15__verticalDirection_r15 { + Displacement_r15__verticalDirection_r15_upward = 0, + Displacement_r15__verticalDirection_r15_downward = 1 +} e_Displacement_r15__verticalDirection_r15; + +/* Displacement-r15 */ +typedef struct Displacement_r15 { + long bearing_r15; + long *bearingUncConfidence_r15; /* OPTIONAL */ + long bearingRef_r15; + long horizontalDistance_r15; + long *horizontalDistanceUnc_r15; /* OPTIONAL */ + long *horizontalUncConfidence_r15; /* OPTIONAL */ + long *verticalDirection_r15; /* OPTIONAL */ + long *verticalDistance_r15; /* OPTIONAL */ + long *verticalDistanceUnc_r15; /* OPTIONAL */ + long *verticalUncConfidence_r15; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Displacement_r15_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_bearingRef_r15_4; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_verticalDirection_r15_11; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_Displacement_r15; +extern asn_SEQUENCE_specifics_t asn_SPC_Displacement_r15_specs_1; +extern asn_TYPE_member_t asn_MBR_Displacement_r15_1[10]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Displacement_r15_H_ */ +#include diff --git a/asn.1/lpp_generated/DisplacementInfoList-r15.c b/asn.1/lpp_generated/DisplacementInfoList-r15.c new file mode 100644 index 00000000..308e27f5 --- /dev/null +++ b/asn.1/lpp_generated/DisplacementInfoList-r15.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DisplacementInfoList-r15.h" + +#include "DisplacementInfoListElement-r15.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DisplacementInfoList_r15_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 7, 7, 1, 128 } /* (SIZE(1..128)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_DisplacementInfoList_r15_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DisplacementInfoListElement_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_DisplacementInfoList_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_DisplacementInfoList_r15_specs_1 = { + sizeof(struct DisplacementInfoList_r15), + offsetof(struct DisplacementInfoList_r15, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_DisplacementInfoList_r15 = { + "DisplacementInfoList-r15", + "DisplacementInfoList-r15", + &asn_OP_SEQUENCE_OF, + asn_DEF_DisplacementInfoList_r15_tags_1, + sizeof(asn_DEF_DisplacementInfoList_r15_tags_1) + /sizeof(asn_DEF_DisplacementInfoList_r15_tags_1[0]), /* 1 */ + asn_DEF_DisplacementInfoList_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_DisplacementInfoList_r15_tags_1) + /sizeof(asn_DEF_DisplacementInfoList_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DisplacementInfoList_r15_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_DisplacementInfoList_r15_1, + 1, /* Single element */ + &asn_SPC_DisplacementInfoList_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/DisplacementInfoList-r15.h b/asn.1/lpp_generated/DisplacementInfoList-r15.h similarity index 80% rename from asn.1/generated/DisplacementInfoList-r15.h rename to asn.1/lpp_generated/DisplacementInfoList-r15.h index 23bc62e6..6f156c42 100644 --- a/asn.1/generated/DisplacementInfoList-r15.h +++ b/asn.1/lpp_generated/DisplacementInfoList-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _DisplacementInfoList_r15_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_DisplacementInfoList_r15_constr_1; } #endif -/* Referred external types */ -#include "DisplacementInfoListElement-r15.h" - #endif /* _DisplacementInfoList_r15_H_ */ #include diff --git a/asn.1/lpp_generated/DisplacementInfoListElement-r15.c b/asn.1/lpp_generated/DisplacementInfoListElement-r15.c new file mode 100644 index 00000000..1d3936a0 --- /dev/null +++ b/asn.1/lpp_generated/DisplacementInfoListElement-r15.c @@ -0,0 +1,87 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DisplacementInfoListElement-r15.h" + +#include "Displacement-r15.h" +asn_TYPE_member_t asn_MBR_DisplacementInfoListElement_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DisplacementInfoListElement_r15, deltaTimeStamp_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_DeltaTime_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "deltaTimeStamp-r15" + }, + { ATF_POINTER, 1, offsetof(struct DisplacementInfoListElement_r15, displacement_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Displacement_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "displacement-r15" + }, +}; +static const int asn_MAP_DisplacementInfoListElement_r15_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_DisplacementInfoListElement_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DisplacementInfoListElement_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* deltaTimeStamp-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* displacement-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DisplacementInfoListElement_r15_specs_1 = { + sizeof(struct DisplacementInfoListElement_r15), + offsetof(struct DisplacementInfoListElement_r15, _asn_ctx), + asn_MAP_DisplacementInfoListElement_r15_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_DisplacementInfoListElement_r15_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DisplacementInfoListElement_r15 = { + "DisplacementInfoListElement-r15", + "DisplacementInfoListElement-r15", + &asn_OP_SEQUENCE, + asn_DEF_DisplacementInfoListElement_r15_tags_1, + sizeof(asn_DEF_DisplacementInfoListElement_r15_tags_1) + /sizeof(asn_DEF_DisplacementInfoListElement_r15_tags_1[0]), /* 1 */ + asn_DEF_DisplacementInfoListElement_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_DisplacementInfoListElement_r15_tags_1) + /sizeof(asn_DEF_DisplacementInfoListElement_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DisplacementInfoListElement_r15_1, + 2, /* Elements count */ + &asn_SPC_DisplacementInfoListElement_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/DisplacementInfoListElement-r15.h b/asn.1/lpp_generated/DisplacementInfoListElement-r15.h similarity index 77% rename from asn.1/generated/DisplacementInfoListElement-r15.h rename to asn.1/lpp_generated/DisplacementInfoListElement-r15.h index 79391d3c..6d0e6a32 100644 --- a/asn.1/generated/DisplacementInfoListElement-r15.h +++ b/asn.1/lpp_generated/DisplacementInfoListElement-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _DisplacementInfoListElement_r15_H_ @@ -25,7 +25,7 @@ struct Displacement_r15; /* DisplacementInfoListElement-r15 */ typedef struct DisplacementInfoListElement_r15 { DeltaTime_r15_t deltaTimeStamp_r15; - struct Displacement_r15 *displacement_r15 /* OPTIONAL */; + struct Displacement_r15 *displacement_r15; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -44,8 +44,5 @@ extern asn_TYPE_member_t asn_MBR_DisplacementInfoListElement_r15_1[2]; } #endif -/* Referred external types */ -#include "Displacement-r15.h" - #endif /* _DisplacementInfoListElement_r15_H_ */ #include diff --git a/asn.1/lpp_generated/DisplacementTimeStamp-r15.c b/asn.1/lpp_generated/DisplacementTimeStamp-r15.c new file mode 100644 index 00000000..c7895ea8 --- /dev/null +++ b/asn.1/lpp_generated/DisplacementTimeStamp-r15.c @@ -0,0 +1,156 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "DisplacementTimeStamp-r15.h" + +static int +memb_measurementSFN_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8192L && value <= 9214L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_measurementSFN_r15_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, -8192, 9214 } /* (-8192..9214) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DisplacementTimeStamp_r15_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_DisplacementTimeStamp_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DisplacementTimeStamp_r15, choice.utcTime_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTC_Time_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utcTime-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct DisplacementTimeStamp_r15, choice.gnssTime_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MeasurementReferenceTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnssTime-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct DisplacementTimeStamp_r15, choice.systemFrameNumber_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SFN_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "systemFrameNumber-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct DisplacementTimeStamp_r15, choice.measurementSFN_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_measurementSFN_r15_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_measurementSFN_r15_constraint_1 + }, + 0, 0, /* No default value */ + "measurementSFN-r15" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_DisplacementTimeStamp_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utcTime-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnssTime-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* systemFrameNumber-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* measurementSFN-r15 */ +}; +asn_CHOICE_specifics_t asn_SPC_DisplacementTimeStamp_r15_specs_1 = { + sizeof(struct DisplacementTimeStamp_r15), + offsetof(struct DisplacementTimeStamp_r15, _asn_ctx), + offsetof(struct DisplacementTimeStamp_r15, present), + sizeof(((struct DisplacementTimeStamp_r15 *)0)->present), + asn_MAP_DisplacementTimeStamp_r15_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, + 4 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_DisplacementTimeStamp_r15 = { + "DisplacementTimeStamp-r15", + "DisplacementTimeStamp-r15", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DisplacementTimeStamp_r15_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_DisplacementTimeStamp_r15_1, + 4, /* Elements count */ + &asn_SPC_DisplacementTimeStamp_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/DisplacementTimeStamp-r15.h b/asn.1/lpp_generated/DisplacementTimeStamp-r15.h similarity index 87% rename from asn.1/generated/DisplacementTimeStamp-r15.h rename to asn.1/lpp_generated/DisplacementTimeStamp-r15.h index 403c4d0c..6e633ae8 100644 --- a/asn.1/generated/DisplacementTimeStamp-r15.h +++ b/asn.1/lpp_generated/DisplacementTimeStamp-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _DisplacementTimeStamp_r15_H_ diff --git a/asn.1/lpp_generated/ECGI.c b/asn.1/lpp_generated/ECGI.c new file mode 100644 index 00000000..1bff8245 --- /dev/null +++ b/asn.1/lpp_generated/ECGI.c @@ -0,0 +1,390 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ECGI.h" + +static int +memb_NativeInteger_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_NativeInteger_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_mcc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size == 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_mnc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 2UL && size <= 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cellidentity_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 28UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_mcc_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_mnc_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_mcc_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_mnc_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cellidentity_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 28, 28 } /* (SIZE(28..28)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_mcc_2[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_NativeInteger_constraint_2 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_mcc_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_mcc_specs_2 = { + sizeof(struct ECGI__mcc), + offsetof(struct ECGI__mcc, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_mcc_2 = { + "mcc", + "mcc", + &asn_OP_SEQUENCE_OF, + asn_DEF_mcc_tags_2, + sizeof(asn_DEF_mcc_tags_2) + /sizeof(asn_DEF_mcc_tags_2[0]) - 1, /* 1 */ + asn_DEF_mcc_tags_2, /* Same as above */ + sizeof(asn_DEF_mcc_tags_2) + /sizeof(asn_DEF_mcc_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_mcc_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_mcc_2, + 1, /* Single element */ + &asn_SPC_mcc_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_mnc_4[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_NativeInteger_constraint_4 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_mnc_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_mnc_specs_4 = { + sizeof(struct ECGI__mnc), + offsetof(struct ECGI__mnc, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_mnc_4 = { + "mnc", + "mnc", + &asn_OP_SEQUENCE_OF, + asn_DEF_mnc_tags_4, + sizeof(asn_DEF_mnc_tags_4) + /sizeof(asn_DEF_mnc_tags_4[0]) - 1, /* 1 */ + asn_DEF_mnc_tags_4, /* Same as above */ + sizeof(asn_DEF_mnc_tags_4) + /sizeof(asn_DEF_mnc_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_mnc_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_mnc_4, + 1, /* Single element */ + &asn_SPC_mnc_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ECGI_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ECGI, mcc), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_mcc_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_mcc_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_mcc_constraint_1 + }, + 0, 0, /* No default value */ + "mcc" + }, + { ATF_NOFLAGS, 0, offsetof(struct ECGI, mnc), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_mnc_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_mnc_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_mnc_constraint_1 + }, + 0, 0, /* No default value */ + "mnc" + }, + { ATF_NOFLAGS, 0, offsetof(struct ECGI, cellidentity), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cellidentity_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cellidentity_constraint_1 + }, + 0, 0, /* No default value */ + "cellidentity" + }, +}; +static const ber_tlv_tag_t asn_DEF_ECGI_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ECGI_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mcc */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* mnc */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* cellidentity */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ECGI_specs_1 = { + sizeof(struct ECGI), + offsetof(struct ECGI, _asn_ctx), + asn_MAP_ECGI_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ECGI = { + "ECGI", + "ECGI", + &asn_OP_SEQUENCE, + asn_DEF_ECGI_tags_1, + sizeof(asn_DEF_ECGI_tags_1) + /sizeof(asn_DEF_ECGI_tags_1[0]), /* 1 */ + asn_DEF_ECGI_tags_1, /* Same as above */ + sizeof(asn_DEF_ECGI_tags_1) + /sizeof(asn_DEF_ECGI_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ECGI_1, + 3, /* Elements count */ + &asn_SPC_ECGI_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ECGI.h b/asn.1/lpp_generated/ECGI.h similarity index 80% rename from asn.1/generated/ECGI.h rename to asn.1/lpp_generated/ECGI.h index e3114cb9..a13d27ed 100644 --- a/asn.1/generated/ECGI.h +++ b/asn.1/lpp_generated/ECGI.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _ECGI_H_ diff --git a/asn.1/lpp_generated/ECID-Error.c b/asn.1/lpp_generated/ECID-Error.c new file mode 100644 index 00000000..12873522 --- /dev/null +++ b/asn.1/lpp_generated/ECID-Error.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ECID-Error.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ECID_Error_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_ECID_Error_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ECID_Error, choice.locationServerErrorCauses), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ECID_LocationServerErrorCauses, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationServerErrorCauses" + }, + { ATF_NOFLAGS, 0, offsetof(struct ECID_Error, choice.targetDeviceErrorCauses), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ECID_TargetDeviceErrorCauses, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "targetDeviceErrorCauses" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_ECID_Error_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses */ +}; +asn_CHOICE_specifics_t asn_SPC_ECID_Error_specs_1 = { + sizeof(struct ECID_Error), + offsetof(struct ECID_Error, _asn_ctx), + offsetof(struct ECID_Error, present), + sizeof(((struct ECID_Error *)0)->present), + asn_MAP_ECID_Error_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_ECID_Error = { + "ECID-Error", + "ECID-Error", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ECID_Error_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_ECID_Error_1, + 2, /* Elements count */ + &asn_SPC_ECID_Error_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ECID-Error.h b/asn.1/lpp_generated/ECID-Error.h similarity index 84% rename from asn.1/generated/ECID-Error.h rename to asn.1/lpp_generated/ECID-Error.h index cc86615e..4f458f26 100644 --- a/asn.1/generated/ECID-Error.h +++ b/asn.1/lpp_generated/ECID-Error.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _ECID_Error_H_ diff --git a/asn.1/lpp_generated/ECID-LocationServerErrorCauses.c b/asn.1/lpp_generated/ECID-LocationServerErrorCauses.c new file mode 100644 index 00000000..8c93c3c2 --- /dev/null +++ b/asn.1/lpp_generated/ECID-LocationServerErrorCauses.c @@ -0,0 +1,122 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ECID-LocationServerErrorCauses.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_value2enum_2[] = { + { 0, 9, "undefined" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_enum2value_2[] = { + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_specs_2 = { + asn_MAP_cause_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_enum2value_2, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_2 = { + "cause", + "cause", + &asn_OP_NativeEnumerated, + asn_DEF_cause_tags_2, + sizeof(asn_DEF_cause_tags_2) + /sizeof(asn_DEF_cause_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_tags_2) + /sizeof(asn_DEF_cause_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ECID_LocationServerErrorCauses_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ECID_LocationServerErrorCauses, cause), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause" + }, +}; +static const ber_tlv_tag_t asn_DEF_ECID_LocationServerErrorCauses_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ECID_LocationServerErrorCauses_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ECID_LocationServerErrorCauses_specs_1 = { + sizeof(struct ECID_LocationServerErrorCauses), + offsetof(struct ECID_LocationServerErrorCauses, _asn_ctx), + asn_MAP_ECID_LocationServerErrorCauses_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ECID_LocationServerErrorCauses = { + "ECID-LocationServerErrorCauses", + "ECID-LocationServerErrorCauses", + &asn_OP_SEQUENCE, + asn_DEF_ECID_LocationServerErrorCauses_tags_1, + sizeof(asn_DEF_ECID_LocationServerErrorCauses_tags_1) + /sizeof(asn_DEF_ECID_LocationServerErrorCauses_tags_1[0]), /* 1 */ + asn_DEF_ECID_LocationServerErrorCauses_tags_1, /* Same as above */ + sizeof(asn_DEF_ECID_LocationServerErrorCauses_tags_1) + /sizeof(asn_DEF_ECID_LocationServerErrorCauses_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ECID_LocationServerErrorCauses_1, + 1, /* Elements count */ + &asn_SPC_ECID_LocationServerErrorCauses_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ECID-LocationServerErrorCauses.h b/asn.1/lpp_generated/ECID-LocationServerErrorCauses.h similarity index 83% rename from asn.1/generated/ECID-LocationServerErrorCauses.h rename to asn.1/lpp_generated/ECID-LocationServerErrorCauses.h index 68a0d9e7..cf93c57f 100644 --- a/asn.1/generated/ECID-LocationServerErrorCauses.h +++ b/asn.1/lpp_generated/ECID-LocationServerErrorCauses.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _ECID_LocationServerErrorCauses_H_ diff --git a/asn.1/lpp_generated/ECID-ProvideCapabilities.c b/asn.1/lpp_generated/ECID-ProvideCapabilities.c new file mode 100644 index 00000000..37b27eaf --- /dev/null +++ b/asn.1/lpp_generated/ECID-ProvideCapabilities.c @@ -0,0 +1,596 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ECID-ProvideCapabilities.h" + +#include "ScheduledLocationTimeSupport-r17.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_ecid_MeasSupported_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ueRxTxSupTDD_r13_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_periodicalReporting_r14_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_triggeredReporting_r14_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_idleStateForMeasurements_r14_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ecid_MeasSupported_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_ueRxTxSupTDD_r13_value2enum_10[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_ueRxTxSupTDD_r13_enum2value_10[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ueRxTxSupTDD_r13_specs_10 = { + asn_MAP_ueRxTxSupTDD_r13_value2enum_10, /* "tag" => N; sorted by tag */ + asn_MAP_ueRxTxSupTDD_r13_enum2value_10, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ueRxTxSupTDD_r13_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ueRxTxSupTDD_r13_10 = { + "ueRxTxSupTDD-r13", + "ueRxTxSupTDD-r13", + &asn_OP_NativeEnumerated, + asn_DEF_ueRxTxSupTDD_r13_tags_10, + sizeof(asn_DEF_ueRxTxSupTDD_r13_tags_10) + /sizeof(asn_DEF_ueRxTxSupTDD_r13_tags_10[0]) - 1, /* 1 */ + asn_DEF_ueRxTxSupTDD_r13_tags_10, /* Same as above */ + sizeof(asn_DEF_ueRxTxSupTDD_r13_tags_10) + /sizeof(asn_DEF_ueRxTxSupTDD_r13_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ueRxTxSupTDD_r13_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ueRxTxSupTDD_r13_specs_10 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_9[] = { + { ATF_POINTER, 1, offsetof(struct ECID_ProvideCapabilities__ext1, ueRxTxSupTDD_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ueRxTxSupTDD_r13_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ueRxTxSupTDD-r13" + }, +}; +static const int asn_MAP_ext1_oms_9[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_9[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ueRxTxSupTDD-r13 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_9 = { + sizeof(struct ECID_ProvideCapabilities__ext1), + offsetof(struct ECID_ProvideCapabilities__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_9, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_9, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_9 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_9, + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_9, /* Same as above */ + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_9, + 1, /* Elements count */ + &asn_SPC_ext1_specs_9 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_periodicalReporting_r14_value2enum_13[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_periodicalReporting_r14_enum2value_13[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_periodicalReporting_r14_specs_13 = { + asn_MAP_periodicalReporting_r14_value2enum_13, /* "tag" => N; sorted by tag */ + asn_MAP_periodicalReporting_r14_enum2value_13, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_periodicalReporting_r14_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_periodicalReporting_r14_13 = { + "periodicalReporting-r14", + "periodicalReporting-r14", + &asn_OP_NativeEnumerated, + asn_DEF_periodicalReporting_r14_tags_13, + sizeof(asn_DEF_periodicalReporting_r14_tags_13) + /sizeof(asn_DEF_periodicalReporting_r14_tags_13[0]) - 1, /* 1 */ + asn_DEF_periodicalReporting_r14_tags_13, /* Same as above */ + sizeof(asn_DEF_periodicalReporting_r14_tags_13) + /sizeof(asn_DEF_periodicalReporting_r14_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_periodicalReporting_r14_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_periodicalReporting_r14_specs_13 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_triggeredReporting_r14_value2enum_15[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_triggeredReporting_r14_enum2value_15[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_triggeredReporting_r14_specs_15 = { + asn_MAP_triggeredReporting_r14_value2enum_15, /* "tag" => N; sorted by tag */ + asn_MAP_triggeredReporting_r14_enum2value_15, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_triggeredReporting_r14_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_triggeredReporting_r14_15 = { + "triggeredReporting-r14", + "triggeredReporting-r14", + &asn_OP_NativeEnumerated, + asn_DEF_triggeredReporting_r14_tags_15, + sizeof(asn_DEF_triggeredReporting_r14_tags_15) + /sizeof(asn_DEF_triggeredReporting_r14_tags_15[0]) - 1, /* 1 */ + asn_DEF_triggeredReporting_r14_tags_15, /* Same as above */ + sizeof(asn_DEF_triggeredReporting_r14_tags_15) + /sizeof(asn_DEF_triggeredReporting_r14_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_triggeredReporting_r14_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_triggeredReporting_r14_specs_15 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_idleStateForMeasurements_r14_value2enum_17[] = { + { 0, 8, "required" } +}; +static const unsigned int asn_MAP_idleStateForMeasurements_r14_enum2value_17[] = { + 0 /* required(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_idleStateForMeasurements_r14_specs_17 = { + asn_MAP_idleStateForMeasurements_r14_value2enum_17, /* "tag" => N; sorted by tag */ + asn_MAP_idleStateForMeasurements_r14_enum2value_17, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_idleStateForMeasurements_r14_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_idleStateForMeasurements_r14_17 = { + "idleStateForMeasurements-r14", + "idleStateForMeasurements-r14", + &asn_OP_NativeEnumerated, + asn_DEF_idleStateForMeasurements_r14_tags_17, + sizeof(asn_DEF_idleStateForMeasurements_r14_tags_17) + /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_17[0]) - 1, /* 1 */ + asn_DEF_idleStateForMeasurements_r14_tags_17, /* Same as above */ + sizeof(asn_DEF_idleStateForMeasurements_r14_tags_17) + /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_idleStateForMeasurements_r14_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_idleStateForMeasurements_r14_specs_17 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_12[] = { + { ATF_POINTER, 3, offsetof(struct ECID_ProvideCapabilities__ext2, periodicalReporting_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_periodicalReporting_r14_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "periodicalReporting-r14" + }, + { ATF_POINTER, 2, offsetof(struct ECID_ProvideCapabilities__ext2, triggeredReporting_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_triggeredReporting_r14_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "triggeredReporting-r14" + }, + { ATF_POINTER, 1, offsetof(struct ECID_ProvideCapabilities__ext2, idleStateForMeasurements_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_idleStateForMeasurements_r14_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "idleStateForMeasurements-r14" + }, +}; +static const int asn_MAP_ext2_oms_12[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_12[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* periodicalReporting-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* triggeredReporting-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* idleStateForMeasurements-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_12 = { + sizeof(struct ECID_ProvideCapabilities__ext2), + offsetof(struct ECID_ProvideCapabilities__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_12, + 3, /* Count of tags in the map */ + asn_MAP_ext2_oms_12, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_12 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_12, + sizeof(asn_DEF_ext2_tags_12) + /sizeof(asn_DEF_ext2_tags_12[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_12, /* Same as above */ + sizeof(asn_DEF_ext2_tags_12) + /sizeof(asn_DEF_ext2_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_12, + 3, /* Elements count */ + &asn_SPC_ext2_specs_12 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_19[] = { + { ATF_POINTER, 1, offsetof(struct ECID_ProvideCapabilities__ext3, scheduledLocationRequestSupported_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ScheduledLocationTimeSupport_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scheduledLocationRequestSupported-r17" + }, +}; +static const int asn_MAP_ext3_oms_19[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_19[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_19[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* scheduledLocationRequestSupported-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_19 = { + sizeof(struct ECID_ProvideCapabilities__ext3), + offsetof(struct ECID_ProvideCapabilities__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_19, + 1, /* Count of tags in the map */ + asn_MAP_ext3_oms_19, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_19 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_19, + sizeof(asn_DEF_ext3_tags_19) + /sizeof(asn_DEF_ext3_tags_19[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_19, /* Same as above */ + sizeof(asn_DEF_ext3_tags_19) + /sizeof(asn_DEF_ext3_tags_19[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_19, + 1, /* Elements count */ + &asn_SPC_ext3_specs_19 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ECID_ProvideCapabilities_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ECID_ProvideCapabilities, ecid_MeasSupported), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ecid_MeasSupported_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ecid_MeasSupported_constraint_1 + }, + 0, 0, /* No default value */ + "ecid-MeasSupported" + }, + { ATF_POINTER, 3, offsetof(struct ECID_ProvideCapabilities, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 2, offsetof(struct ECID_ProvideCapabilities, ext2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext2_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 1, offsetof(struct ECID_ProvideCapabilities, ext3), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext3_19, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, +}; +static const int asn_MAP_ECID_ProvideCapabilities_oms_1[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ECID_ProvideCapabilities_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ECID_ProvideCapabilities_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ecid-MeasSupported */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext3 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ECID_ProvideCapabilities_specs_1 = { + sizeof(struct ECID_ProvideCapabilities), + offsetof(struct ECID_ProvideCapabilities, _asn_ctx), + asn_MAP_ECID_ProvideCapabilities_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_ECID_ProvideCapabilities_oms_1, /* Optional members */ + 0, 3, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ECID_ProvideCapabilities = { + "ECID-ProvideCapabilities", + "ECID-ProvideCapabilities", + &asn_OP_SEQUENCE, + asn_DEF_ECID_ProvideCapabilities_tags_1, + sizeof(asn_DEF_ECID_ProvideCapabilities_tags_1) + /sizeof(asn_DEF_ECID_ProvideCapabilities_tags_1[0]), /* 1 */ + asn_DEF_ECID_ProvideCapabilities_tags_1, /* Same as above */ + sizeof(asn_DEF_ECID_ProvideCapabilities_tags_1) + /sizeof(asn_DEF_ECID_ProvideCapabilities_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ECID_ProvideCapabilities_1, + 4, /* Elements count */ + &asn_SPC_ECID_ProvideCapabilities_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ECID-ProvideCapabilities.h b/asn.1/lpp_generated/ECID-ProvideCapabilities.h similarity index 78% rename from asn.1/generated/ECID-ProvideCapabilities.h rename to asn.1/lpp_generated/ECID-ProvideCapabilities.h index eca03cf8..d3616f9c 100644 --- a/asn.1/generated/ECID-ProvideCapabilities.h +++ b/asn.1/lpp_generated/ECID-ProvideCapabilities.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _ECID_ProvideCapabilities_H_ @@ -41,6 +41,9 @@ typedef enum ECID_ProvideCapabilities__ext2__idleStateForMeasurements_r14 { ECID_ProvideCapabilities__ext2__idleStateForMeasurements_r14_required = 0 } e_ECID_ProvideCapabilities__ext2__idleStateForMeasurements_r14; +/* Forward declarations */ +struct ScheduledLocationTimeSupport_r17; + /* ECID-ProvideCapabilities */ typedef struct ECID_ProvideCapabilities { BIT_STRING_t ecid_MeasSupported; @@ -49,19 +52,25 @@ typedef struct ECID_ProvideCapabilities { * possible extensions are below. */ struct ECID_ProvideCapabilities__ext1 { - long *ueRxTxSupTDD_r13 /* OPTIONAL */; + long *ueRxTxSupTDD_r13; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *ext1; struct ECID_ProvideCapabilities__ext2 { - long *periodicalReporting_r14 /* OPTIONAL */; - long *triggeredReporting_r14 /* OPTIONAL */; - long *idleStateForMeasurements_r14 /* OPTIONAL */; + long *periodicalReporting_r14; /* OPTIONAL */ + long *triggeredReporting_r14; /* OPTIONAL */ + long *idleStateForMeasurements_r14; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *ext2; + struct ECID_ProvideCapabilities__ext3 { + struct ScheduledLocationTimeSupport_r17 *scheduledLocationRequestSupported_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -74,7 +83,7 @@ typedef struct ECID_ProvideCapabilities { /* extern asn_TYPE_descriptor_t asn_DEF_idleStateForMeasurements_r14_17; // (Use -fall-defs-global to expose) */ extern asn_TYPE_descriptor_t asn_DEF_ECID_ProvideCapabilities; extern asn_SEQUENCE_specifics_t asn_SPC_ECID_ProvideCapabilities_specs_1; -extern asn_TYPE_member_t asn_MBR_ECID_ProvideCapabilities_1[3]; +extern asn_TYPE_member_t asn_MBR_ECID_ProvideCapabilities_1[4]; #ifdef __cplusplus } diff --git a/asn.1/lpp_generated/ECID-ProvideLocationInformation.c b/asn.1/lpp_generated/ECID-ProvideLocationInformation.c new file mode 100644 index 00000000..80d3f25c --- /dev/null +++ b/asn.1/lpp_generated/ECID-ProvideLocationInformation.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ECID-ProvideLocationInformation.h" + +#include "ECID-SignalMeasurementInformation.h" +#include "ECID-Error.h" +asn_TYPE_member_t asn_MBR_ECID_ProvideLocationInformation_1[] = { + { ATF_POINTER, 2, offsetof(struct ECID_ProvideLocationInformation, ecid_SignalMeasurementInformation), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ECID_SignalMeasurementInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ecid-SignalMeasurementInformation" + }, + { ATF_POINTER, 1, offsetof(struct ECID_ProvideLocationInformation, ecid_Error), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_ECID_Error, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ecid-Error" + }, +}; +static const int asn_MAP_ECID_ProvideLocationInformation_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ECID_ProvideLocationInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ECID_ProvideLocationInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ecid-SignalMeasurementInformation */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ecid-Error */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ECID_ProvideLocationInformation_specs_1 = { + sizeof(struct ECID_ProvideLocationInformation), + offsetof(struct ECID_ProvideLocationInformation, _asn_ctx), + asn_MAP_ECID_ProvideLocationInformation_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_ECID_ProvideLocationInformation_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ECID_ProvideLocationInformation = { + "ECID-ProvideLocationInformation", + "ECID-ProvideLocationInformation", + &asn_OP_SEQUENCE, + asn_DEF_ECID_ProvideLocationInformation_tags_1, + sizeof(asn_DEF_ECID_ProvideLocationInformation_tags_1) + /sizeof(asn_DEF_ECID_ProvideLocationInformation_tags_1[0]), /* 1 */ + asn_DEF_ECID_ProvideLocationInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_ECID_ProvideLocationInformation_tags_1) + /sizeof(asn_DEF_ECID_ProvideLocationInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ECID_ProvideLocationInformation_1, + 2, /* Elements count */ + &asn_SPC_ECID_ProvideLocationInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ECID-ProvideLocationInformation.h b/asn.1/lpp_generated/ECID-ProvideLocationInformation.h similarity index 76% rename from asn.1/generated/ECID-ProvideLocationInformation.h rename to asn.1/lpp_generated/ECID-ProvideLocationInformation.h index bf46cf07..81536bf4 100644 --- a/asn.1/generated/ECID-ProvideLocationInformation.h +++ b/asn.1/lpp_generated/ECID-ProvideLocationInformation.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _ECID_ProvideLocationInformation_H_ @@ -24,8 +24,8 @@ struct ECID_Error; /* ECID-ProvideLocationInformation */ typedef struct ECID_ProvideLocationInformation { - struct ECID_SignalMeasurementInformation *ecid_SignalMeasurementInformation /* OPTIONAL */; - struct ECID_Error *ecid_Error /* OPTIONAL */; + struct ECID_SignalMeasurementInformation *ecid_SignalMeasurementInformation; /* OPTIONAL */ + struct ECID_Error *ecid_Error; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -44,9 +44,5 @@ extern asn_TYPE_member_t asn_MBR_ECID_ProvideLocationInformation_1[2]; } #endif -/* Referred external types */ -#include "ECID-SignalMeasurementInformation.h" -#include "ECID-Error.h" - #endif /* _ECID_ProvideLocationInformation_H_ */ #include diff --git a/asn.1/lpp_generated/ECID-RequestCapabilities.c b/asn.1/lpp_generated/ECID-RequestCapabilities.c new file mode 100644 index 00000000..f3befbee --- /dev/null +++ b/asn.1/lpp_generated/ECID-RequestCapabilities.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ECID-RequestCapabilities.h" + +static const ber_tlv_tag_t asn_DEF_ECID_RequestCapabilities_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_ECID_RequestCapabilities_specs_1 = { + sizeof(struct ECID_RequestCapabilities), + offsetof(struct ECID_RequestCapabilities, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ECID_RequestCapabilities = { + "ECID-RequestCapabilities", + "ECID-RequestCapabilities", + &asn_OP_SEQUENCE, + asn_DEF_ECID_RequestCapabilities_tags_1, + sizeof(asn_DEF_ECID_RequestCapabilities_tags_1) + /sizeof(asn_DEF_ECID_RequestCapabilities_tags_1[0]), /* 1 */ + asn_DEF_ECID_RequestCapabilities_tags_1, /* Same as above */ + sizeof(asn_DEF_ECID_RequestCapabilities_tags_1) + /sizeof(asn_DEF_ECID_RequestCapabilities_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_ECID_RequestCapabilities_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ECID-RequestCapabilities.h b/asn.1/lpp_generated/ECID-RequestCapabilities.h similarity index 76% rename from asn.1/generated/ECID-RequestCapabilities.h rename to asn.1/lpp_generated/ECID-RequestCapabilities.h index b3d488ae..9027e209 100644 --- a/asn.1/generated/ECID-RequestCapabilities.h +++ b/asn.1/lpp_generated/ECID-RequestCapabilities.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _ECID_RequestCapabilities_H_ diff --git a/asn.1/lpp_generated/ECID-RequestLocationInformation.c b/asn.1/lpp_generated/ECID-RequestLocationInformation.c new file mode 100644 index 00000000..65cd36ce --- /dev/null +++ b/asn.1/lpp_generated/ECID-RequestLocationInformation.c @@ -0,0 +1,104 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ECID-RequestLocationInformation.h" + +static int +memb_requestedMeasurements_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_requestedMeasurements_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_ECID_RequestLocationInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ECID_RequestLocationInformation, requestedMeasurements), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_requestedMeasurements_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_requestedMeasurements_constraint_1 + }, + 0, 0, /* No default value */ + "requestedMeasurements" + }, +}; +static const ber_tlv_tag_t asn_DEF_ECID_RequestLocationInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ECID_RequestLocationInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* requestedMeasurements */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ECID_RequestLocationInformation_specs_1 = { + sizeof(struct ECID_RequestLocationInformation), + offsetof(struct ECID_RequestLocationInformation, _asn_ctx), + asn_MAP_ECID_RequestLocationInformation_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ECID_RequestLocationInformation = { + "ECID-RequestLocationInformation", + "ECID-RequestLocationInformation", + &asn_OP_SEQUENCE, + asn_DEF_ECID_RequestLocationInformation_tags_1, + sizeof(asn_DEF_ECID_RequestLocationInformation_tags_1) + /sizeof(asn_DEF_ECID_RequestLocationInformation_tags_1[0]), /* 1 */ + asn_DEF_ECID_RequestLocationInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_ECID_RequestLocationInformation_tags_1) + /sizeof(asn_DEF_ECID_RequestLocationInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ECID_RequestLocationInformation_1, + 1, /* Elements count */ + &asn_SPC_ECID_RequestLocationInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ECID-RequestLocationInformation.h b/asn.1/lpp_generated/ECID-RequestLocationInformation.h similarity index 85% rename from asn.1/generated/ECID-RequestLocationInformation.h rename to asn.1/lpp_generated/ECID-RequestLocationInformation.h index e1758197..008a8d05 100644 --- a/asn.1/generated/ECID-RequestLocationInformation.h +++ b/asn.1/lpp_generated/ECID-RequestLocationInformation.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _ECID_RequestLocationInformation_H_ diff --git a/asn.1/lpp_generated/ECID-SignalMeasurementInformation.c b/asn.1/lpp_generated/ECID-SignalMeasurementInformation.c new file mode 100644 index 00000000..6b6c8f10 --- /dev/null +++ b/asn.1/lpp_generated/ECID-SignalMeasurementInformation.c @@ -0,0 +1,87 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ECID-SignalMeasurementInformation.h" + +#include "MeasuredResultsElement.h" +asn_TYPE_member_t asn_MBR_ECID_SignalMeasurementInformation_1[] = { + { ATF_POINTER, 1, offsetof(struct ECID_SignalMeasurementInformation, primaryCellMeasuredResults), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MeasuredResultsElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "primaryCellMeasuredResults" + }, + { ATF_NOFLAGS, 0, offsetof(struct ECID_SignalMeasurementInformation, measuredResultsList), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MeasuredResultsList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "measuredResultsList" + }, +}; +static const int asn_MAP_ECID_SignalMeasurementInformation_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ECID_SignalMeasurementInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ECID_SignalMeasurementInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* primaryCellMeasuredResults */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* measuredResultsList */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ECID_SignalMeasurementInformation_specs_1 = { + sizeof(struct ECID_SignalMeasurementInformation), + offsetof(struct ECID_SignalMeasurementInformation, _asn_ctx), + asn_MAP_ECID_SignalMeasurementInformation_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_ECID_SignalMeasurementInformation_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ECID_SignalMeasurementInformation = { + "ECID-SignalMeasurementInformation", + "ECID-SignalMeasurementInformation", + &asn_OP_SEQUENCE, + asn_DEF_ECID_SignalMeasurementInformation_tags_1, + sizeof(asn_DEF_ECID_SignalMeasurementInformation_tags_1) + /sizeof(asn_DEF_ECID_SignalMeasurementInformation_tags_1[0]), /* 1 */ + asn_DEF_ECID_SignalMeasurementInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_ECID_SignalMeasurementInformation_tags_1) + /sizeof(asn_DEF_ECID_SignalMeasurementInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ECID_SignalMeasurementInformation_1, + 2, /* Elements count */ + &asn_SPC_ECID_SignalMeasurementInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ECID-SignalMeasurementInformation.h b/asn.1/lpp_generated/ECID-SignalMeasurementInformation.h similarity index 77% rename from asn.1/generated/ECID-SignalMeasurementInformation.h rename to asn.1/lpp_generated/ECID-SignalMeasurementInformation.h index da8d8f79..1433cc44 100644 --- a/asn.1/generated/ECID-SignalMeasurementInformation.h +++ b/asn.1/lpp_generated/ECID-SignalMeasurementInformation.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _ECID_SignalMeasurementInformation_H_ @@ -24,7 +24,7 @@ struct MeasuredResultsElement; /* ECID-SignalMeasurementInformation */ typedef struct ECID_SignalMeasurementInformation { - struct MeasuredResultsElement *primaryCellMeasuredResults /* OPTIONAL */; + struct MeasuredResultsElement *primaryCellMeasuredResults; /* OPTIONAL */ MeasuredResultsList_t measuredResultsList; /* * This type is extensible, @@ -44,8 +44,5 @@ extern asn_TYPE_member_t asn_MBR_ECID_SignalMeasurementInformation_1[2]; } #endif -/* Referred external types */ -#include "MeasuredResultsElement.h" - #endif /* _ECID_SignalMeasurementInformation_H_ */ #include diff --git a/asn.1/lpp_generated/ECID-TargetDeviceErrorCauses.c b/asn.1/lpp_generated/ECID-TargetDeviceErrorCauses.c new file mode 100644 index 00000000..24546920 --- /dev/null +++ b/asn.1/lpp_generated/ECID-TargetDeviceErrorCauses.c @@ -0,0 +1,279 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ECID-TargetDeviceErrorCauses.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 32, "requestedMeasurementNotAvailable" }, + { 2, 35, "notAllrequestedMeasurementsPossible" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_enum2value_2[] = { + 2, /* notAllrequestedMeasurementsPossible(2) */ + 1, /* requestedMeasurementNotAvailable(1) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_specs_2 = { + asn_MAP_cause_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_enum2value_2, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 4, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_2 = { + "cause", + "cause", + &asn_OP_NativeEnumerated, + asn_DEF_cause_tags_2, + sizeof(asn_DEF_cause_tags_2) + /sizeof(asn_DEF_cause_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_tags_2) + /sizeof(asn_DEF_cause_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_11[] = { + { ATF_POINTER, 2, offsetof(struct ECID_TargetDeviceErrorCauses__ext1, nrsrpMeasurementNotPossible_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nrsrpMeasurementNotPossible-r14" + }, + { ATF_POINTER, 1, offsetof(struct ECID_TargetDeviceErrorCauses__ext1, nrsrqMeasurementNotPossible_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nrsrqMeasurementNotPossible-r14" + }, +}; +static const int asn_MAP_ext1_oms_11[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nrsrpMeasurementNotPossible-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nrsrqMeasurementNotPossible-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_11 = { + sizeof(struct ECID_TargetDeviceErrorCauses__ext1), + offsetof(struct ECID_TargetDeviceErrorCauses__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_11, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_11, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_11 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_11, + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_11, /* Same as above */ + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_11, + 2, /* Elements count */ + &asn_SPC_ext1_specs_11 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ECID_TargetDeviceErrorCauses_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ECID_TargetDeviceErrorCauses, cause), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause" + }, + { ATF_POINTER, 4, offsetof(struct ECID_TargetDeviceErrorCauses, rsrpMeasurementNotPossible), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rsrpMeasurementNotPossible" + }, + { ATF_POINTER, 3, offsetof(struct ECID_TargetDeviceErrorCauses, rsrqMeasurementNotPossible), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rsrqMeasurementNotPossible" + }, + { ATF_POINTER, 2, offsetof(struct ECID_TargetDeviceErrorCauses, ueRxTxMeasurementNotPossible), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ueRxTxMeasurementNotPossible" + }, + { ATF_POINTER, 1, offsetof(struct ECID_TargetDeviceErrorCauses, ext1), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext1_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_ECID_TargetDeviceErrorCauses_oms_1[] = { 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_ECID_TargetDeviceErrorCauses_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ECID_TargetDeviceErrorCauses_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* rsrpMeasurementNotPossible */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* rsrqMeasurementNotPossible */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ueRxTxMeasurementNotPossible */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ECID_TargetDeviceErrorCauses_specs_1 = { + sizeof(struct ECID_TargetDeviceErrorCauses), + offsetof(struct ECID_TargetDeviceErrorCauses, _asn_ctx), + asn_MAP_ECID_TargetDeviceErrorCauses_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_ECID_TargetDeviceErrorCauses_oms_1, /* Optional members */ + 3, 1, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ECID_TargetDeviceErrorCauses = { + "ECID-TargetDeviceErrorCauses", + "ECID-TargetDeviceErrorCauses", + &asn_OP_SEQUENCE, + asn_DEF_ECID_TargetDeviceErrorCauses_tags_1, + sizeof(asn_DEF_ECID_TargetDeviceErrorCauses_tags_1) + /sizeof(asn_DEF_ECID_TargetDeviceErrorCauses_tags_1[0]), /* 1 */ + asn_DEF_ECID_TargetDeviceErrorCauses_tags_1, /* Same as above */ + sizeof(asn_DEF_ECID_TargetDeviceErrorCauses_tags_1) + /sizeof(asn_DEF_ECID_TargetDeviceErrorCauses_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ECID_TargetDeviceErrorCauses_1, + 5, /* Elements count */ + &asn_SPC_ECID_TargetDeviceErrorCauses_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ECID-TargetDeviceErrorCauses.h b/asn.1/lpp_generated/ECID-TargetDeviceErrorCauses.h similarity index 75% rename from asn.1/generated/ECID-TargetDeviceErrorCauses.h rename to asn.1/lpp_generated/ECID-TargetDeviceErrorCauses.h index b4a12ed3..b8e1f085 100644 --- a/asn.1/generated/ECID-TargetDeviceErrorCauses.h +++ b/asn.1/lpp_generated/ECID-TargetDeviceErrorCauses.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _ECID_TargetDeviceErrorCauses_H_ @@ -33,16 +33,16 @@ typedef enum ECID_TargetDeviceErrorCauses__cause { /* ECID-TargetDeviceErrorCauses */ typedef struct ECID_TargetDeviceErrorCauses { long cause; - NULL_t *rsrpMeasurementNotPossible /* OPTIONAL */; - NULL_t *rsrqMeasurementNotPossible /* OPTIONAL */; - NULL_t *ueRxTxMeasurementNotPossible /* OPTIONAL */; + NULL_t *rsrpMeasurementNotPossible; /* OPTIONAL */ + NULL_t *rsrqMeasurementNotPossible; /* OPTIONAL */ + NULL_t *ueRxTxMeasurementNotPossible; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. */ struct ECID_TargetDeviceErrorCauses__ext1 { - NULL_t *nrsrpMeasurementNotPossible_r14 /* OPTIONAL */; - NULL_t *nrsrqMeasurementNotPossible_r14 /* OPTIONAL */; + NULL_t *nrsrpMeasurementNotPossible_r14; /* OPTIONAL */ + NULL_t *nrsrqMeasurementNotPossible_r14; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/EPDU-Body.c b/asn.1/lpp_generated/EPDU-Body.c new file mode 100644 index 00000000..09b9fc65 --- /dev/null +++ b/asn.1/lpp_generated/EPDU-Body.c @@ -0,0 +1,39 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "EPDU-Body.h" + +/* + * This type is implemented using OCTET_STRING, + * so here we adjust the DEF accordingly. + */ +static const ber_tlv_tag_t asn_DEF_EPDU_Body_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EPDU_Body = { + "EPDU-Body", + "EPDU-Body", + &asn_OP_OCTET_STRING, + asn_DEF_EPDU_Body_tags_1, + sizeof(asn_DEF_EPDU_Body_tags_1) + /sizeof(asn_DEF_EPDU_Body_tags_1[0]), /* 1 */ + asn_DEF_EPDU_Body_tags_1, /* Same as above */ + sizeof(asn_DEF_EPDU_Body_tags_1) + /sizeof(asn_DEF_EPDU_Body_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + OCTET_STRING_constraint + }, + 0, 0, /* No members */ + &asn_SPC_OCTET_STRING_specs /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/EPDU-Body.h b/asn.1/lpp_generated/EPDU-Body.h new file mode 100644 index 00000000..5e31cc00 --- /dev/null +++ b/asn.1/lpp_generated/EPDU-Body.h @@ -0,0 +1,39 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _EPDU_Body_H_ +#define _EPDU_Body_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* EPDU-Body */ +typedef OCTET_STRING_t EPDU_Body_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_EPDU_Body; +asn_struct_free_f EPDU_Body_free; +asn_constr_check_f EPDU_Body_constraint; +xer_type_decoder_f EPDU_Body_decode_xer; +xer_type_encoder_f EPDU_Body_encode_xer; +jer_type_encoder_f EPDU_Body_encode_jer; +per_type_decoder_f EPDU_Body_decode_uper; +per_type_encoder_f EPDU_Body_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _EPDU_Body_H_ */ +#include diff --git a/asn.1/lpp_generated/EPDU-ID.c b/asn.1/lpp_generated/EPDU-ID.c new file mode 100644 index 00000000..7dd6e13b --- /dev/null +++ b/asn.1/lpp_generated/EPDU-ID.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "EPDU-ID.h" + +int +EPDU_ID_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 256L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EPDU_ID_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (1..256) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_EPDU_ID_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EPDU_ID = { + "EPDU-ID", + "EPDU-ID", + &asn_OP_NativeInteger, + asn_DEF_EPDU_ID_tags_1, + sizeof(asn_DEF_EPDU_ID_tags_1) + /sizeof(asn_DEF_EPDU_ID_tags_1[0]), /* 1 */ + asn_DEF_EPDU_ID_tags_1, /* Same as above */ + sizeof(asn_DEF_EPDU_ID_tags_1) + /sizeof(asn_DEF_EPDU_ID_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EPDU_ID_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + EPDU_ID_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/lpp_generated/EPDU-ID.h b/asn.1/lpp_generated/EPDU-ID.h new file mode 100644 index 00000000..a473b170 --- /dev/null +++ b/asn.1/lpp_generated/EPDU-ID.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _EPDU_ID_H_ +#define _EPDU_ID_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* EPDU-ID */ +typedef long EPDU_ID_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_EPDU_ID_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_EPDU_ID; +asn_struct_free_f EPDU_ID_free; +asn_constr_check_f EPDU_ID_constraint; +xer_type_decoder_f EPDU_ID_decode_xer; +xer_type_encoder_f EPDU_ID_encode_xer; +jer_type_encoder_f EPDU_ID_encode_jer; +per_type_decoder_f EPDU_ID_decode_uper; +per_type_encoder_f EPDU_ID_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _EPDU_ID_H_ */ +#include diff --git a/asn.1/lpp_generated/EPDU-Identifier.c b/asn.1/lpp_generated/EPDU-Identifier.c new file mode 100644 index 00000000..24cb0ab1 --- /dev/null +++ b/asn.1/lpp_generated/EPDU-Identifier.c @@ -0,0 +1,86 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "EPDU-Identifier.h" + +asn_TYPE_member_t asn_MBR_EPDU_Identifier_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct EPDU_Identifier, ePDU_ID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EPDU_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ePDU-ID" + }, + { ATF_POINTER, 1, offsetof(struct EPDU_Identifier, ePDU_Name), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EPDU_Name, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ePDU-Name" + }, +}; +static const int asn_MAP_EPDU_Identifier_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_EPDU_Identifier_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_EPDU_Identifier_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ePDU-ID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ePDU-Name */ +}; +asn_SEQUENCE_specifics_t asn_SPC_EPDU_Identifier_specs_1 = { + sizeof(struct EPDU_Identifier), + offsetof(struct EPDU_Identifier, _asn_ctx), + asn_MAP_EPDU_Identifier_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_EPDU_Identifier_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_EPDU_Identifier = { + "EPDU-Identifier", + "EPDU-Identifier", + &asn_OP_SEQUENCE, + asn_DEF_EPDU_Identifier_tags_1, + sizeof(asn_DEF_EPDU_Identifier_tags_1) + /sizeof(asn_DEF_EPDU_Identifier_tags_1[0]), /* 1 */ + asn_DEF_EPDU_Identifier_tags_1, /* Same as above */ + sizeof(asn_DEF_EPDU_Identifier_tags_1) + /sizeof(asn_DEF_EPDU_Identifier_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_EPDU_Identifier_1, + 2, /* Elements count */ + &asn_SPC_EPDU_Identifier_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/EPDU-Identifier.h b/asn.1/lpp_generated/EPDU-Identifier.h similarity index 75% rename from asn.1/generated/EPDU-Identifier.h rename to asn.1/lpp_generated/EPDU-Identifier.h index 3dd43b38..fcc61af8 100644 --- a/asn.1/generated/EPDU-Identifier.h +++ b/asn.1/lpp_generated/EPDU-Identifier.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _EPDU_Identifier_H_ @@ -23,7 +23,7 @@ extern "C" { /* EPDU-Identifier */ typedef struct EPDU_Identifier { EPDU_ID_t ePDU_ID; - EPDU_Name_t *ePDU_Name /* OPTIONAL */; + EPDU_Name_t *ePDU_Name; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/EPDU-Name.c b/asn.1/lpp_generated/EPDU-Name.c new file mode 100644 index 00000000..e084143c --- /dev/null +++ b/asn.1/lpp_generated/EPDU-Name.c @@ -0,0 +1,86 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "EPDU-Name.h" + +static int check_permitted_alphabet_1(const void *sptr) { + /* The underlying type is VisibleString */ + const VisibleString_t *st = (const VisibleString_t *)sptr; + const uint8_t *ch = st->buf; + const uint8_t *end = ch + st->size; + + for(; ch < end; ch++) { + uint8_t cv = *ch; + if(!(cv >= 32UL && cv <= 126UL)) return -1; + } + return 0; +} + +int +EPDU_Name_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const VisibleString_t *st = (const VisibleString_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size >= 1UL && size <= 32UL) + && !check_permitted_alphabet_1(st)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using VisibleString, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EPDU_Name_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 32, 126 } /* (32..126) */, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER character map necessary */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_EPDU_Name_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EPDU_Name = { + "EPDU-Name", + "EPDU-Name", + &asn_OP_VisibleString, + asn_DEF_EPDU_Name_tags_1, + sizeof(asn_DEF_EPDU_Name_tags_1) + /sizeof(asn_DEF_EPDU_Name_tags_1[0]), /* 1 */ + asn_DEF_EPDU_Name_tags_1, /* Same as above */ + sizeof(asn_DEF_EPDU_Name_tags_1) + /sizeof(asn_DEF_EPDU_Name_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EPDU_Name_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + EPDU_Name_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/lpp_generated/EPDU-Name.h b/asn.1/lpp_generated/EPDU-Name.h new file mode 100644 index 00000000..71abb65a --- /dev/null +++ b/asn.1/lpp_generated/EPDU-Name.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _EPDU_Name_H_ +#define _EPDU_Name_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* EPDU-Name */ +typedef VisibleString_t EPDU_Name_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_EPDU_Name_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_EPDU_Name; +asn_struct_free_f EPDU_Name_free; +asn_constr_check_f EPDU_Name_constraint; +xer_type_decoder_f EPDU_Name_decode_xer; +xer_type_encoder_f EPDU_Name_encode_xer; +jer_type_encoder_f EPDU_Name_encode_jer; +per_type_decoder_f EPDU_Name_decode_uper; +per_type_encoder_f EPDU_Name_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _EPDU_Name_H_ */ +#include diff --git a/asn.1/lpp_generated/EPDU-Sequence.c b/asn.1/lpp_generated/EPDU-Sequence.c new file mode 100644 index 00000000..d0e6ad98 --- /dev/null +++ b/asn.1/lpp_generated/EPDU-Sequence.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "EPDU-Sequence.h" + +#include "EPDU.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EPDU_Sequence_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_EPDU_Sequence_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_EPDU, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_EPDU_Sequence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_EPDU_Sequence_specs_1 = { + sizeof(struct EPDU_Sequence), + offsetof(struct EPDU_Sequence, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_EPDU_Sequence = { + "EPDU-Sequence", + "EPDU-Sequence", + &asn_OP_SEQUENCE_OF, + asn_DEF_EPDU_Sequence_tags_1, + sizeof(asn_DEF_EPDU_Sequence_tags_1) + /sizeof(asn_DEF_EPDU_Sequence_tags_1[0]), /* 1 */ + asn_DEF_EPDU_Sequence_tags_1, /* Same as above */ + sizeof(asn_DEF_EPDU_Sequence_tags_1) + /sizeof(asn_DEF_EPDU_Sequence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EPDU_Sequence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_EPDU_Sequence_1, + 1, /* Single element */ + &asn_SPC_EPDU_Sequence_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/EPDU-Sequence.h b/asn.1/lpp_generated/EPDU-Sequence.h similarity index 78% rename from asn.1/generated/EPDU-Sequence.h rename to asn.1/lpp_generated/EPDU-Sequence.h index 4637829c..741e03a0 100644 --- a/asn.1/generated/EPDU-Sequence.h +++ b/asn.1/lpp_generated/EPDU-Sequence.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _EPDU_Sequence_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_EPDU_Sequence_constr_1; } #endif -/* Referred external types */ -#include "EPDU.h" - #endif /* _EPDU_Sequence_H_ */ #include diff --git a/asn.1/lpp_generated/EPDU.c b/asn.1/lpp_generated/EPDU.c new file mode 100644 index 00000000..2f4041b4 --- /dev/null +++ b/asn.1/lpp_generated/EPDU.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "EPDU.h" + +asn_TYPE_member_t asn_MBR_EPDU_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct EPDU, ePDU_Identifier), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EPDU_Identifier, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ePDU-Identifier" + }, + { ATF_NOFLAGS, 0, offsetof(struct EPDU, ePDU_Body), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EPDU_Body, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ePDU-Body" + }, +}; +static const ber_tlv_tag_t asn_DEF_EPDU_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_EPDU_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ePDU-Identifier */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ePDU-Body */ +}; +asn_SEQUENCE_specifics_t asn_SPC_EPDU_specs_1 = { + sizeof(struct EPDU), + offsetof(struct EPDU, _asn_ctx), + asn_MAP_EPDU_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_EPDU = { + "EPDU", + "EPDU", + &asn_OP_SEQUENCE, + asn_DEF_EPDU_tags_1, + sizeof(asn_DEF_EPDU_tags_1) + /sizeof(asn_DEF_EPDU_tags_1[0]), /* 1 */ + asn_DEF_EPDU_tags_1, /* Same as above */ + sizeof(asn_DEF_EPDU_tags_1) + /sizeof(asn_DEF_EPDU_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_EPDU_1, + 2, /* Elements count */ + &asn_SPC_EPDU_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/EPDU.h b/asn.1/lpp_generated/EPDU.h similarity index 75% rename from asn.1/generated/EPDU.h rename to asn.1/lpp_generated/EPDU.h index d56cd1b2..152daf79 100644 --- a/asn.1/generated/EPDU.h +++ b/asn.1/lpp_generated/EPDU.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _EPDU_H_ diff --git a/asn.1/lpp_generated/EarlyFixReport-r12.c b/asn.1/lpp_generated/EarlyFixReport-r12.c new file mode 100644 index 00000000..20e7f051 --- /dev/null +++ b/asn.1/lpp_generated/EarlyFixReport-r12.c @@ -0,0 +1,63 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "EarlyFixReport-r12.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EarlyFixReport_r12_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_EarlyFixReport_r12_value2enum_1[] = { + { 0, 14, "noMoreMessages" }, + { 1, 20, "moreMessagesOnTheWay" } +}; +static const unsigned int asn_MAP_EarlyFixReport_r12_enum2value_1[] = { + 1, /* moreMessagesOnTheWay(1) */ + 0 /* noMoreMessages(0) */ +}; +const asn_INTEGER_specifics_t asn_SPC_EarlyFixReport_r12_specs_1 = { + asn_MAP_EarlyFixReport_r12_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_EarlyFixReport_r12_enum2value_1, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_EarlyFixReport_r12_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EarlyFixReport_r12 = { + "EarlyFixReport-r12", + "EarlyFixReport-r12", + &asn_OP_NativeEnumerated, + asn_DEF_EarlyFixReport_r12_tags_1, + sizeof(asn_DEF_EarlyFixReport_r12_tags_1) + /sizeof(asn_DEF_EarlyFixReport_r12_tags_1[0]), /* 1 */ + asn_DEF_EarlyFixReport_r12_tags_1, /* Same as above */ + sizeof(asn_DEF_EarlyFixReport_r12_tags_1) + /sizeof(asn_DEF_EarlyFixReport_r12_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EarlyFixReport_r12_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_EarlyFixReport_r12_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/EarlyFixReport-r12.h b/asn.1/lpp_generated/EarlyFixReport-r12.h similarity index 78% rename from asn.1/generated/EarlyFixReport-r12.h rename to asn.1/lpp_generated/EarlyFixReport-r12.h index 289fafe3..da2af713 100644 --- a/asn.1/generated/EarlyFixReport-r12.h +++ b/asn.1/lpp_generated/EarlyFixReport-r12.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _EarlyFixReport_r12_H_ @@ -32,12 +32,10 @@ extern asn_per_constraints_t asn_PER_type_EarlyFixReport_r12_constr_1; extern asn_TYPE_descriptor_t asn_DEF_EarlyFixReport_r12; extern const asn_INTEGER_specifics_t asn_SPC_EarlyFixReport_r12_specs_1; asn_struct_free_f EarlyFixReport_r12_free; -asn_struct_print_f EarlyFixReport_r12_print; asn_constr_check_f EarlyFixReport_r12_constraint; -ber_type_decoder_f EarlyFixReport_r12_decode_ber; -der_type_encoder_f EarlyFixReport_r12_encode_der; xer_type_decoder_f EarlyFixReport_r12_decode_xer; xer_type_encoder_f EarlyFixReport_r12_encode_xer; +jer_type_encoder_f EarlyFixReport_r12_encode_jer; per_type_decoder_f EarlyFixReport_r12_decode_uper; per_type_encoder_f EarlyFixReport_r12_encode_uper; diff --git a/asn.1/lpp_generated/ElevationElement-R17.c b/asn.1/lpp_generated/ElevationElement-R17.c new file mode 100644 index 00000000..f6138da0 --- /dev/null +++ b/asn.1/lpp_generated/ElevationElement-R17.c @@ -0,0 +1,262 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ElevationElement-R17.h" + +#include "BeamPowerElement-r17.h" +static int +memb_elevation_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 180L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_elevation_fine_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_beamPowerList_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 2UL && size <= 24UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_beamPowerList_r17_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 2, 24 } /* (SIZE(2..24)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_elevation_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 180 } /* (0..180) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_elevation_fine_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_beamPowerList_r17_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 2, 24 } /* (SIZE(2..24)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_beamPowerList_r17_4[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_BeamPowerElement_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_beamPowerList_r17_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_beamPowerList_r17_specs_4 = { + sizeof(struct ElevationElement_R17__beamPowerList_r17), + offsetof(struct ElevationElement_R17__beamPowerList_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_beamPowerList_r17_4 = { + "beamPowerList-r17", + "beamPowerList-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_beamPowerList_r17_tags_4, + sizeof(asn_DEF_beamPowerList_r17_tags_4) + /sizeof(asn_DEF_beamPowerList_r17_tags_4[0]) - 1, /* 1 */ + asn_DEF_beamPowerList_r17_tags_4, /* Same as above */ + sizeof(asn_DEF_beamPowerList_r17_tags_4) + /sizeof(asn_DEF_beamPowerList_r17_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_beamPowerList_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_beamPowerList_r17_4, + 1, /* Single element */ + &asn_SPC_beamPowerList_r17_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ElevationElement_R17_1[] = { + { ATF_POINTER, 2, offsetof(struct ElevationElement_R17, elevation_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_elevation_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_elevation_r17_constraint_1 + }, + 0, 0, /* No default value */ + "elevation-r17" + }, + { ATF_POINTER, 1, offsetof(struct ElevationElement_R17, elevation_fine_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_elevation_fine_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_elevation_fine_r17_constraint_1 + }, + 0, 0, /* No default value */ + "elevation-fine-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct ElevationElement_R17, beamPowerList_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_beamPowerList_r17_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_beamPowerList_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_beamPowerList_r17_constraint_1 + }, + 0, 0, /* No default value */ + "beamPowerList-r17" + }, +}; +static const int asn_MAP_ElevationElement_R17_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ElevationElement_R17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ElevationElement_R17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* elevation-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* elevation-fine-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* beamPowerList-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ElevationElement_R17_specs_1 = { + sizeof(struct ElevationElement_R17), + offsetof(struct ElevationElement_R17, _asn_ctx), + asn_MAP_ElevationElement_R17_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_ElevationElement_R17_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ElevationElement_R17 = { + "ElevationElement-R17", + "ElevationElement-R17", + &asn_OP_SEQUENCE, + asn_DEF_ElevationElement_R17_tags_1, + sizeof(asn_DEF_ElevationElement_R17_tags_1) + /sizeof(asn_DEF_ElevationElement_R17_tags_1[0]), /* 1 */ + asn_DEF_ElevationElement_R17_tags_1, /* Same as above */ + sizeof(asn_DEF_ElevationElement_R17_tags_1) + /sizeof(asn_DEF_ElevationElement_R17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ElevationElement_R17_1, + 3, /* Elements count */ + &asn_SPC_ElevationElement_R17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/ElevationElement-R17.h b/asn.1/lpp_generated/ElevationElement-R17.h new file mode 100644 index 00000000..02397d98 --- /dev/null +++ b/asn.1/lpp_generated/ElevationElement-R17.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _ElevationElement_R17_H_ +#define _ElevationElement_R17_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct BeamPowerElement_r17; + +/* ElevationElement-R17 */ +typedef struct ElevationElement_R17 { + long *elevation_r17; /* OPTIONAL */ + long *elevation_fine_r17; /* OPTIONAL */ + struct ElevationElement_R17__beamPowerList_r17 { + A_SEQUENCE_OF(struct BeamPowerElement_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } beamPowerList_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ElevationElement_R17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ElevationElement_R17; +extern asn_SEQUENCE_specifics_t asn_SPC_ElevationElement_R17_specs_1; +extern asn_TYPE_member_t asn_MBR_ElevationElement_R17_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ElevationElement_R17_H_ */ +#include diff --git a/asn.1/lpp_generated/Ellipsoid-Point.c b/asn.1/lpp_generated/Ellipsoid-Point.c new file mode 100644 index 00000000..180d1273 --- /dev/null +++ b/asn.1/lpp_generated/Ellipsoid-Point.c @@ -0,0 +1,222 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Ellipsoid-Point.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_degreesLatitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_degreesLongitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_latitudeSign_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLatitude_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLongitude_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_latitudeSign_value2enum_2[] = { + { 0, 5, "north" }, + { 1, 5, "south" } +}; +static const unsigned int asn_MAP_latitudeSign_enum2value_2[] = { + 0, /* north(0) */ + 1 /* south(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_latitudeSign_specs_2 = { + asn_MAP_latitudeSign_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_latitudeSign_enum2value_2, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_latitudeSign_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_latitudeSign_2 = { + "latitudeSign", + "latitudeSign", + &asn_OP_NativeEnumerated, + asn_DEF_latitudeSign_tags_2, + sizeof(asn_DEF_latitudeSign_tags_2) + /sizeof(asn_DEF_latitudeSign_tags_2[0]) - 1, /* 1 */ + asn_DEF_latitudeSign_tags_2, /* Same as above */ + sizeof(asn_DEF_latitudeSign_tags_2) + /sizeof(asn_DEF_latitudeSign_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_latitudeSign_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_latitudeSign_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_Ellipsoid_Point_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Ellipsoid_Point, latitudeSign), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_latitudeSign_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "latitudeSign" + }, + { ATF_NOFLAGS, 0, offsetof(struct Ellipsoid_Point, degreesLatitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLatitude_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLatitude_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLatitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct Ellipsoid_Point, degreesLongitude), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLongitude_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLongitude_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLongitude" + }, +}; +static const ber_tlv_tag_t asn_DEF_Ellipsoid_Point_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ellipsoid_Point_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeSign */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLatitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* degreesLongitude */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ellipsoid_Point_specs_1 = { + sizeof(struct Ellipsoid_Point), + offsetof(struct Ellipsoid_Point, _asn_ctx), + asn_MAP_Ellipsoid_Point_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ellipsoid_Point = { + "Ellipsoid-Point", + "Ellipsoid-Point", + &asn_OP_SEQUENCE, + asn_DEF_Ellipsoid_Point_tags_1, + sizeof(asn_DEF_Ellipsoid_Point_tags_1) + /sizeof(asn_DEF_Ellipsoid_Point_tags_1[0]), /* 1 */ + asn_DEF_Ellipsoid_Point_tags_1, /* Same as above */ + sizeof(asn_DEF_Ellipsoid_Point_tags_1) + /sizeof(asn_DEF_Ellipsoid_Point_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ellipsoid_Point_1, + 3, /* Elements count */ + &asn_SPC_Ellipsoid_Point_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Ellipsoid-Point.h b/asn.1/lpp_generated/Ellipsoid-Point.h similarity index 82% rename from asn.1/generated/Ellipsoid-Point.h rename to asn.1/lpp_generated/Ellipsoid-Point.h index 1769c0a0..9adb7cad 100644 --- a/asn.1/generated/Ellipsoid-Point.h +++ b/asn.1/lpp_generated/Ellipsoid-Point.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Ellipsoid_Point_H_ diff --git a/asn.1/lpp_generated/Ellipsoid-PointWithUncertaintyCircle.c b/asn.1/lpp_generated/Ellipsoid-PointWithUncertaintyCircle.c new file mode 100644 index 00000000..141fcc28 --- /dev/null +++ b/asn.1/lpp_generated/Ellipsoid-PointWithUncertaintyCircle.c @@ -0,0 +1,272 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Ellipsoid-PointWithUncertaintyCircle.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_degreesLatitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_degreesLongitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertainty_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_latitudeSign_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLatitude_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLongitude_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertainty_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_latitudeSign_value2enum_2[] = { + { 0, 5, "north" }, + { 1, 5, "south" } +}; +static const unsigned int asn_MAP_latitudeSign_enum2value_2[] = { + 0, /* north(0) */ + 1 /* south(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_latitudeSign_specs_2 = { + asn_MAP_latitudeSign_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_latitudeSign_enum2value_2, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_latitudeSign_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_latitudeSign_2 = { + "latitudeSign", + "latitudeSign", + &asn_OP_NativeEnumerated, + asn_DEF_latitudeSign_tags_2, + sizeof(asn_DEF_latitudeSign_tags_2) + /sizeof(asn_DEF_latitudeSign_tags_2[0]) - 1, /* 1 */ + asn_DEF_latitudeSign_tags_2, /* Same as above */ + sizeof(asn_DEF_latitudeSign_tags_2) + /sizeof(asn_DEF_latitudeSign_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_latitudeSign_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_latitudeSign_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_Ellipsoid_PointWithUncertaintyCircle_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Ellipsoid_PointWithUncertaintyCircle, latitudeSign), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_latitudeSign_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "latitudeSign" + }, + { ATF_NOFLAGS, 0, offsetof(struct Ellipsoid_PointWithUncertaintyCircle, degreesLatitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLatitude_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLatitude_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLatitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct Ellipsoid_PointWithUncertaintyCircle, degreesLongitude), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLongitude_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLongitude_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLongitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct Ellipsoid_PointWithUncertaintyCircle, uncertainty), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertainty_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertainty_constraint_1 + }, + 0, 0, /* No default value */ + "uncertainty" + }, +}; +static const ber_tlv_tag_t asn_DEF_Ellipsoid_PointWithUncertaintyCircle_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ellipsoid_PointWithUncertaintyCircle_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeSign */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLatitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* degreesLongitude */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* uncertainty */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ellipsoid_PointWithUncertaintyCircle_specs_1 = { + sizeof(struct Ellipsoid_PointWithUncertaintyCircle), + offsetof(struct Ellipsoid_PointWithUncertaintyCircle, _asn_ctx), + asn_MAP_Ellipsoid_PointWithUncertaintyCircle_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ellipsoid_PointWithUncertaintyCircle = { + "Ellipsoid-PointWithUncertaintyCircle", + "Ellipsoid-PointWithUncertaintyCircle", + &asn_OP_SEQUENCE, + asn_DEF_Ellipsoid_PointWithUncertaintyCircle_tags_1, + sizeof(asn_DEF_Ellipsoid_PointWithUncertaintyCircle_tags_1) + /sizeof(asn_DEF_Ellipsoid_PointWithUncertaintyCircle_tags_1[0]), /* 1 */ + asn_DEF_Ellipsoid_PointWithUncertaintyCircle_tags_1, /* Same as above */ + sizeof(asn_DEF_Ellipsoid_PointWithUncertaintyCircle_tags_1) + /sizeof(asn_DEF_Ellipsoid_PointWithUncertaintyCircle_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ellipsoid_PointWithUncertaintyCircle_1, + 4, /* Elements count */ + &asn_SPC_Ellipsoid_PointWithUncertaintyCircle_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Ellipsoid-PointWithUncertaintyCircle.h b/asn.1/lpp_generated/Ellipsoid-PointWithUncertaintyCircle.h similarity index 85% rename from asn.1/generated/Ellipsoid-PointWithUncertaintyCircle.h rename to asn.1/lpp_generated/Ellipsoid-PointWithUncertaintyCircle.h index 0cc61076..0caf7fe9 100644 --- a/asn.1/generated/Ellipsoid-PointWithUncertaintyCircle.h +++ b/asn.1/lpp_generated/Ellipsoid-PointWithUncertaintyCircle.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Ellipsoid_PointWithUncertaintyCircle_H_ diff --git a/asn.1/lpp_generated/EllipsoidArc.c b/asn.1/lpp_generated/EllipsoidArc.c new file mode 100644 index 00000000..2393b43e --- /dev/null +++ b/asn.1/lpp_generated/EllipsoidArc.c @@ -0,0 +1,472 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "EllipsoidArc.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_degreesLatitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_degreesLongitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_innerRadius_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintyRadius_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_offsetAngle_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 179L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_includedAngle_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 179L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_confidence_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_latitudeSign_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLatitude_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLongitude_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_innerRadius_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintyRadius_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_offsetAngle_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 179 } /* (0..179) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_includedAngle_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 179 } /* (0..179) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_confidence_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_latitudeSign_value2enum_2[] = { + { 0, 5, "north" }, + { 1, 5, "south" } +}; +static const unsigned int asn_MAP_latitudeSign_enum2value_2[] = { + 0, /* north(0) */ + 1 /* south(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_latitudeSign_specs_2 = { + asn_MAP_latitudeSign_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_latitudeSign_enum2value_2, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_latitudeSign_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_latitudeSign_2 = { + "latitudeSign", + "latitudeSign", + &asn_OP_NativeEnumerated, + asn_DEF_latitudeSign_tags_2, + sizeof(asn_DEF_latitudeSign_tags_2) + /sizeof(asn_DEF_latitudeSign_tags_2[0]) - 1, /* 1 */ + asn_DEF_latitudeSign_tags_2, /* Same as above */ + sizeof(asn_DEF_latitudeSign_tags_2) + /sizeof(asn_DEF_latitudeSign_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_latitudeSign_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_latitudeSign_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_EllipsoidArc_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidArc, latitudeSign), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_latitudeSign_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "latitudeSign" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidArc, degreesLatitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLatitude_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLatitude_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLatitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidArc, degreesLongitude), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLongitude_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLongitude_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLongitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidArc, innerRadius), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_innerRadius_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_innerRadius_constraint_1 + }, + 0, 0, /* No default value */ + "innerRadius" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidArc, uncertaintyRadius), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintyRadius_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintyRadius_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintyRadius" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidArc, offsetAngle), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_offsetAngle_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_offsetAngle_constraint_1 + }, + 0, 0, /* No default value */ + "offsetAngle" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidArc, includedAngle), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_includedAngle_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_includedAngle_constraint_1 + }, + 0, 0, /* No default value */ + "includedAngle" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidArc, confidence), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_confidence_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_confidence_constraint_1 + }, + 0, 0, /* No default value */ + "confidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_EllipsoidArc_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_EllipsoidArc_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeSign */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLatitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* degreesLongitude */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* innerRadius */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* uncertaintyRadius */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* offsetAngle */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* includedAngle */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* confidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_EllipsoidArc_specs_1 = { + sizeof(struct EllipsoidArc), + offsetof(struct EllipsoidArc, _asn_ctx), + asn_MAP_EllipsoidArc_tag2el_1, + 8, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_EllipsoidArc = { + "EllipsoidArc", + "EllipsoidArc", + &asn_OP_SEQUENCE, + asn_DEF_EllipsoidArc_tags_1, + sizeof(asn_DEF_EllipsoidArc_tags_1) + /sizeof(asn_DEF_EllipsoidArc_tags_1[0]), /* 1 */ + asn_DEF_EllipsoidArc_tags_1, /* Same as above */ + sizeof(asn_DEF_EllipsoidArc_tags_1) + /sizeof(asn_DEF_EllipsoidArc_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_EllipsoidArc_1, + 8, /* Elements count */ + &asn_SPC_EllipsoidArc_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/EllipsoidArc.h b/asn.1/lpp_generated/EllipsoidArc.h similarity index 82% rename from asn.1/generated/EllipsoidArc.h rename to asn.1/lpp_generated/EllipsoidArc.h index 8ec39916..054a2fab 100644 --- a/asn.1/generated/EllipsoidArc.h +++ b/asn.1/lpp_generated/EllipsoidArc.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _EllipsoidArc_H_ diff --git a/asn.1/lpp_generated/EllipsoidPointWithAltitude.c b/asn.1/lpp_generated/EllipsoidPointWithAltitude.c new file mode 100644 index 00000000..e8a12851 --- /dev/null +++ b/asn.1/lpp_generated/EllipsoidPointWithAltitude.c @@ -0,0 +1,346 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "EllipsoidPointWithAltitude.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_degreesLatitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_degreesLongitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_altitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_latitudeSign_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_altitudeDirection_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLatitude_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLongitude_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_altitude_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_latitudeSign_value2enum_2[] = { + { 0, 5, "north" }, + { 1, 5, "south" } +}; +static const unsigned int asn_MAP_latitudeSign_enum2value_2[] = { + 0, /* north(0) */ + 1 /* south(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_latitudeSign_specs_2 = { + asn_MAP_latitudeSign_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_latitudeSign_enum2value_2, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_latitudeSign_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_latitudeSign_2 = { + "latitudeSign", + "latitudeSign", + &asn_OP_NativeEnumerated, + asn_DEF_latitudeSign_tags_2, + sizeof(asn_DEF_latitudeSign_tags_2) + /sizeof(asn_DEF_latitudeSign_tags_2[0]) - 1, /* 1 */ + asn_DEF_latitudeSign_tags_2, /* Same as above */ + sizeof(asn_DEF_latitudeSign_tags_2) + /sizeof(asn_DEF_latitudeSign_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_latitudeSign_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_latitudeSign_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_altitudeDirection_value2enum_7[] = { + { 0, 6, "height" }, + { 1, 5, "depth" } +}; +static const unsigned int asn_MAP_altitudeDirection_enum2value_7[] = { + 1, /* depth(1) */ + 0 /* height(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_altitudeDirection_specs_7 = { + asn_MAP_altitudeDirection_value2enum_7, /* "tag" => N; sorted by tag */ + asn_MAP_altitudeDirection_enum2value_7, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_altitudeDirection_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_altitudeDirection_7 = { + "altitudeDirection", + "altitudeDirection", + &asn_OP_NativeEnumerated, + asn_DEF_altitudeDirection_tags_7, + sizeof(asn_DEF_altitudeDirection_tags_7) + /sizeof(asn_DEF_altitudeDirection_tags_7[0]) - 1, /* 1 */ + asn_DEF_altitudeDirection_tags_7, /* Same as above */ + sizeof(asn_DEF_altitudeDirection_tags_7) + /sizeof(asn_DEF_altitudeDirection_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_altitudeDirection_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_altitudeDirection_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_EllipsoidPointWithAltitude_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitude, latitudeSign), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_latitudeSign_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "latitudeSign" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitude, degreesLatitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLatitude_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLatitude_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLatitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitude, degreesLongitude), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLongitude_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLongitude_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLongitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitude, altitudeDirection), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_altitudeDirection_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "altitudeDirection" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitude, altitude), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_altitude_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_altitude_constraint_1 + }, + 0, 0, /* No default value */ + "altitude" + }, +}; +static const ber_tlv_tag_t asn_DEF_EllipsoidPointWithAltitude_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_EllipsoidPointWithAltitude_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeSign */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLatitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* degreesLongitude */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* altitudeDirection */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* altitude */ +}; +asn_SEQUENCE_specifics_t asn_SPC_EllipsoidPointWithAltitude_specs_1 = { + sizeof(struct EllipsoidPointWithAltitude), + offsetof(struct EllipsoidPointWithAltitude, _asn_ctx), + asn_MAP_EllipsoidPointWithAltitude_tag2el_1, + 5, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_EllipsoidPointWithAltitude = { + "EllipsoidPointWithAltitude", + "EllipsoidPointWithAltitude", + &asn_OP_SEQUENCE, + asn_DEF_EllipsoidPointWithAltitude_tags_1, + sizeof(asn_DEF_EllipsoidPointWithAltitude_tags_1) + /sizeof(asn_DEF_EllipsoidPointWithAltitude_tags_1[0]), /* 1 */ + asn_DEF_EllipsoidPointWithAltitude_tags_1, /* Same as above */ + sizeof(asn_DEF_EllipsoidPointWithAltitude_tags_1) + /sizeof(asn_DEF_EllipsoidPointWithAltitude_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_EllipsoidPointWithAltitude_1, + 5, /* Elements count */ + &asn_SPC_EllipsoidPointWithAltitude_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/EllipsoidPointWithAltitude.h b/asn.1/lpp_generated/EllipsoidPointWithAltitude.h similarity index 86% rename from asn.1/generated/EllipsoidPointWithAltitude.h rename to asn.1/lpp_generated/EllipsoidPointWithAltitude.h index d8d56491..41467cbf 100644 --- a/asn.1/generated/EllipsoidPointWithAltitude.h +++ b/asn.1/lpp_generated/EllipsoidPointWithAltitude.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _EllipsoidPointWithAltitude_H_ diff --git a/asn.1/lpp_generated/EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.c b/asn.1/lpp_generated/EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.c new file mode 100644 index 00000000..7854004f --- /dev/null +++ b/asn.1/lpp_generated/EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.c @@ -0,0 +1,596 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_degreesLatitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_degreesLongitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_altitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintySemiMajor_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintySemiMinor_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_orientationMajorAxis_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 179L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintyAltitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_confidence_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_latitudeSign_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_altitudeDirection_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLatitude_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLongitude_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_altitude_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintySemiMajor_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintySemiMinor_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_orientationMajorAxis_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 179 } /* (0..179) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintyAltitude_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_confidence_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_latitudeSign_value2enum_2[] = { + { 0, 5, "north" }, + { 1, 5, "south" } +}; +static const unsigned int asn_MAP_latitudeSign_enum2value_2[] = { + 0, /* north(0) */ + 1 /* south(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_latitudeSign_specs_2 = { + asn_MAP_latitudeSign_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_latitudeSign_enum2value_2, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_latitudeSign_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_latitudeSign_2 = { + "latitudeSign", + "latitudeSign", + &asn_OP_NativeEnumerated, + asn_DEF_latitudeSign_tags_2, + sizeof(asn_DEF_latitudeSign_tags_2) + /sizeof(asn_DEF_latitudeSign_tags_2[0]) - 1, /* 1 */ + asn_DEF_latitudeSign_tags_2, /* Same as above */ + sizeof(asn_DEF_latitudeSign_tags_2) + /sizeof(asn_DEF_latitudeSign_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_latitudeSign_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_latitudeSign_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_altitudeDirection_value2enum_7[] = { + { 0, 6, "height" }, + { 1, 5, "depth" } +}; +static const unsigned int asn_MAP_altitudeDirection_enum2value_7[] = { + 1, /* depth(1) */ + 0 /* height(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_altitudeDirection_specs_7 = { + asn_MAP_altitudeDirection_value2enum_7, /* "tag" => N; sorted by tag */ + asn_MAP_altitudeDirection_enum2value_7, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_altitudeDirection_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_altitudeDirection_7 = { + "altitudeDirection", + "altitudeDirection", + &asn_OP_NativeEnumerated, + asn_DEF_altitudeDirection_tags_7, + sizeof(asn_DEF_altitudeDirection_tags_7) + /sizeof(asn_DEF_altitudeDirection_tags_7[0]) - 1, /* 1 */ + asn_DEF_altitudeDirection_tags_7, /* Same as above */ + sizeof(asn_DEF_altitudeDirection_tags_7) + /sizeof(asn_DEF_altitudeDirection_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_altitudeDirection_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_altitudeDirection_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, latitudeSign), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_latitudeSign_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "latitudeSign" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, degreesLatitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLatitude_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLatitude_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLatitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, degreesLongitude), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLongitude_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLongitude_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLongitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, altitudeDirection), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_altitudeDirection_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "altitudeDirection" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, altitude), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_altitude_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_altitude_constraint_1 + }, + 0, 0, /* No default value */ + "altitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, uncertaintySemiMajor), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintySemiMajor_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintySemiMajor_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintySemiMajor" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, uncertaintySemiMinor), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintySemiMinor_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintySemiMinor_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintySemiMinor" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, orientationMajorAxis), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_orientationMajorAxis_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_orientationMajorAxis_constraint_1 + }, + 0, 0, /* No default value */ + "orientationMajorAxis" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, uncertaintyAltitude), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintyAltitude_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintyAltitude_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintyAltitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, confidence), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_confidence_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_confidence_constraint_1 + }, + 0, 0, /* No default value */ + "confidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeSign */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLatitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* degreesLongitude */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* altitudeDirection */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* altitude */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* uncertaintySemiMajor */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* uncertaintySemiMinor */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* orientationMajorAxis */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* uncertaintyAltitude */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* confidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_specs_1 = { + sizeof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid), + offsetof(struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, _asn_ctx), + asn_MAP_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_tag2el_1, + 10, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid = { + "EllipsoidPointWithAltitudeAndUncertaintyEllipsoid", + "EllipsoidPointWithAltitudeAndUncertaintyEllipsoid", + &asn_OP_SEQUENCE, + asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_tags_1, + sizeof(asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_tags_1) + /sizeof(asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_tags_1[0]), /* 1 */ + asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_tags_1, /* Same as above */ + sizeof(asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_tags_1) + /sizeof(asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_1, + 10, /* Elements count */ + &asn_SPC_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.h b/asn.1/lpp_generated/EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.h similarity index 89% rename from asn.1/generated/EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.h rename to asn.1/lpp_generated/EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.h index b6294888..cf6308a9 100644 --- a/asn.1/generated/EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.h +++ b/asn.1/lpp_generated/EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_H_ diff --git a/asn.1/lpp_generated/EllipsoidPointWithUncertaintyEllipse.c b/asn.1/lpp_generated/EllipsoidPointWithUncertaintyEllipse.c new file mode 100644 index 00000000..fd32b7e6 --- /dev/null +++ b/asn.1/lpp_generated/EllipsoidPointWithUncertaintyEllipse.c @@ -0,0 +1,422 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "EllipsoidPointWithUncertaintyEllipse.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_degreesLatitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_degreesLongitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintySemiMajor_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintySemiMinor_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_orientationMajorAxis_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 179L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_confidence_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_latitudeSign_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLatitude_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLongitude_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintySemiMajor_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintySemiMinor_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_orientationMajorAxis_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 179 } /* (0..179) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_confidence_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_latitudeSign_value2enum_2[] = { + { 0, 5, "north" }, + { 1, 5, "south" } +}; +static const unsigned int asn_MAP_latitudeSign_enum2value_2[] = { + 0, /* north(0) */ + 1 /* south(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_latitudeSign_specs_2 = { + asn_MAP_latitudeSign_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_latitudeSign_enum2value_2, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_latitudeSign_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_latitudeSign_2 = { + "latitudeSign", + "latitudeSign", + &asn_OP_NativeEnumerated, + asn_DEF_latitudeSign_tags_2, + sizeof(asn_DEF_latitudeSign_tags_2) + /sizeof(asn_DEF_latitudeSign_tags_2[0]) - 1, /* 1 */ + asn_DEF_latitudeSign_tags_2, /* Same as above */ + sizeof(asn_DEF_latitudeSign_tags_2) + /sizeof(asn_DEF_latitudeSign_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_latitudeSign_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_latitudeSign_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_EllipsoidPointWithUncertaintyEllipse_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithUncertaintyEllipse, latitudeSign), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_latitudeSign_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "latitudeSign" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithUncertaintyEllipse, degreesLatitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLatitude_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLatitude_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLatitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithUncertaintyEllipse, degreesLongitude), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLongitude_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLongitude_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLongitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithUncertaintyEllipse, uncertaintySemiMajor), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintySemiMajor_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintySemiMajor_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintySemiMajor" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithUncertaintyEllipse, uncertaintySemiMinor), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintySemiMinor_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintySemiMinor_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintySemiMinor" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithUncertaintyEllipse, orientationMajorAxis), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_orientationMajorAxis_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_orientationMajorAxis_constraint_1 + }, + 0, 0, /* No default value */ + "orientationMajorAxis" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipsoidPointWithUncertaintyEllipse, confidence), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_confidence_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_confidence_constraint_1 + }, + 0, 0, /* No default value */ + "confidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_EllipsoidPointWithUncertaintyEllipse_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_EllipsoidPointWithUncertaintyEllipse_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeSign */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLatitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* degreesLongitude */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* uncertaintySemiMajor */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* uncertaintySemiMinor */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* orientationMajorAxis */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* confidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_EllipsoidPointWithUncertaintyEllipse_specs_1 = { + sizeof(struct EllipsoidPointWithUncertaintyEllipse), + offsetof(struct EllipsoidPointWithUncertaintyEllipse, _asn_ctx), + asn_MAP_EllipsoidPointWithUncertaintyEllipse_tag2el_1, + 7, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_EllipsoidPointWithUncertaintyEllipse = { + "EllipsoidPointWithUncertaintyEllipse", + "EllipsoidPointWithUncertaintyEllipse", + &asn_OP_SEQUENCE, + asn_DEF_EllipsoidPointWithUncertaintyEllipse_tags_1, + sizeof(asn_DEF_EllipsoidPointWithUncertaintyEllipse_tags_1) + /sizeof(asn_DEF_EllipsoidPointWithUncertaintyEllipse_tags_1[0]), /* 1 */ + asn_DEF_EllipsoidPointWithUncertaintyEllipse_tags_1, /* Same as above */ + sizeof(asn_DEF_EllipsoidPointWithUncertaintyEllipse_tags_1) + /sizeof(asn_DEF_EllipsoidPointWithUncertaintyEllipse_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_EllipsoidPointWithUncertaintyEllipse_1, + 7, /* Elements count */ + &asn_SPC_EllipsoidPointWithUncertaintyEllipse_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/EllipsoidPointWithUncertaintyEllipse.h b/asn.1/lpp_generated/EllipsoidPointWithUncertaintyEllipse.h similarity index 85% rename from asn.1/generated/EllipsoidPointWithUncertaintyEllipse.h rename to asn.1/lpp_generated/EllipsoidPointWithUncertaintyEllipse.h index 0b5859c5..e20cfda5 100644 --- a/asn.1/generated/EllipsoidPointWithUncertaintyEllipse.h +++ b/asn.1/lpp_generated/EllipsoidPointWithUncertaintyEllipse.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _EllipsoidPointWithUncertaintyEllipse_H_ diff --git a/asn.1/lpp_generated/Environment.c b/asn.1/lpp_generated/Environment.c new file mode 100644 index 00000000..fa5706cc --- /dev/null +++ b/asn.1/lpp_generated/Environment.c @@ -0,0 +1,67 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Environment.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Environment_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_Environment_value2enum_1[] = { + { 0, 7, "badArea" }, + { 1, 10, "notBadArea" }, + { 2, 9, "mixedArea" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_Environment_enum2value_1[] = { + 0, /* badArea(0) */ + 2, /* mixedArea(2) */ + 1 /* notBadArea(1) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_Environment_specs_1 = { + asn_MAP_Environment_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_Environment_enum2value_1, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 4, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_Environment_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Environment = { + "Environment", + "Environment", + &asn_OP_NativeEnumerated, + asn_DEF_Environment_tags_1, + sizeof(asn_DEF_Environment_tags_1) + /sizeof(asn_DEF_Environment_tags_1[0]), /* 1 */ + asn_DEF_Environment_tags_1, /* Same as above */ + sizeof(asn_DEF_Environment_tags_1) + /sizeof(asn_DEF_Environment_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Environment_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_Environment_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Environment.h b/asn.1/lpp_generated/Environment.h similarity index 78% rename from asn.1/generated/Environment.h rename to asn.1/lpp_generated/Environment.h index 20e7a62b..a8667e7e 100644 --- a/asn.1/generated/Environment.h +++ b/asn.1/lpp_generated/Environment.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Environment_H_ @@ -36,12 +36,10 @@ extern asn_per_constraints_t asn_PER_type_Environment_constr_1; extern asn_TYPE_descriptor_t asn_DEF_Environment; extern const asn_INTEGER_specifics_t asn_SPC_Environment_specs_1; asn_struct_free_f Environment_free; -asn_struct_print_f Environment_print; asn_constr_check_f Environment_constraint; -ber_type_decoder_f Environment_decode_ber; -der_type_encoder_f Environment_encode_der; xer_type_decoder_f Environment_decode_xer; xer_type_encoder_f Environment_encode_xer; +jer_type_encoder_f Environment_encode_jer; per_type_decoder_f Environment_decode_uper; per_type_encoder_f Environment_encode_uper; diff --git a/asn.1/lpp_generated/EqualIntegerAmbiguityLevel-r16.c b/asn.1/lpp_generated/EqualIntegerAmbiguityLevel-r16.c new file mode 100644 index 00000000..f1d410e0 --- /dev/null +++ b/asn.1/lpp_generated/EqualIntegerAmbiguityLevel-r16.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "EqualIntegerAmbiguityLevel-r16.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EqualIntegerAmbiguityLevel_r16_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_EqualIntegerAmbiguityLevel_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct EqualIntegerAmbiguityLevel_r16, choice.allReferenceStations_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "allReferenceStations-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct EqualIntegerAmbiguityLevel_r16, choice.referenceStationList_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReferenceStationList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceStationList-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_EqualIntegerAmbiguityLevel_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* allReferenceStations-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* referenceStationList-r16 */ +}; +asn_CHOICE_specifics_t asn_SPC_EqualIntegerAmbiguityLevel_r16_specs_1 = { + sizeof(struct EqualIntegerAmbiguityLevel_r16), + offsetof(struct EqualIntegerAmbiguityLevel_r16, _asn_ctx), + offsetof(struct EqualIntegerAmbiguityLevel_r16, present), + sizeof(((struct EqualIntegerAmbiguityLevel_r16 *)0)->present), + asn_MAP_EqualIntegerAmbiguityLevel_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_EqualIntegerAmbiguityLevel_r16 = { + "EqualIntegerAmbiguityLevel-r16", + "EqualIntegerAmbiguityLevel-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EqualIntegerAmbiguityLevel_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_EqualIntegerAmbiguityLevel_r16_1, + 2, /* Elements count */ + &asn_SPC_EqualIntegerAmbiguityLevel_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/EqualIntegerAmbiguityLevel-r16.h b/asn.1/lpp_generated/EqualIntegerAmbiguityLevel-r16.h similarity index 85% rename from asn.1/generated/EqualIntegerAmbiguityLevel-r16.h rename to asn.1/lpp_generated/EqualIntegerAmbiguityLevel-r16.h index 71c61566..ff514a70 100644 --- a/asn.1/generated/EqualIntegerAmbiguityLevel-r16.h +++ b/asn.1/lpp_generated/EqualIntegerAmbiguityLevel-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _EqualIntegerAmbiguityLevel_r16_H_ diff --git a/asn.1/lpp_generated/Error-r9-IEs.c b/asn.1/lpp_generated/Error-r9-IEs.c new file mode 100644 index 00000000..7a8ce809 --- /dev/null +++ b/asn.1/lpp_generated/Error-r9-IEs.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Error-r9-IEs.h" + +#include "CommonIEsError.h" +#include "EPDU-Sequence.h" +asn_TYPE_member_t asn_MBR_Error_r9_IEs_1[] = { + { ATF_POINTER, 2, offsetof(struct Error_r9_IEs, commonIEsError), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CommonIEsError, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "commonIEsError" + }, + { ATF_POINTER, 1, offsetof(struct Error_r9_IEs, epdu_Error), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EPDU_Sequence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epdu-Error" + }, +}; +static const int asn_MAP_Error_r9_IEs_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_Error_r9_IEs_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Error_r9_IEs_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* commonIEsError */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* epdu-Error */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Error_r9_IEs_specs_1 = { + sizeof(struct Error_r9_IEs), + offsetof(struct Error_r9_IEs, _asn_ctx), + asn_MAP_Error_r9_IEs_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_Error_r9_IEs_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Error_r9_IEs = { + "Error-r9-IEs", + "Error-r9-IEs", + &asn_OP_SEQUENCE, + asn_DEF_Error_r9_IEs_tags_1, + sizeof(asn_DEF_Error_r9_IEs_tags_1) + /sizeof(asn_DEF_Error_r9_IEs_tags_1[0]), /* 1 */ + asn_DEF_Error_r9_IEs_tags_1, /* Same as above */ + sizeof(asn_DEF_Error_r9_IEs_tags_1) + /sizeof(asn_DEF_Error_r9_IEs_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Error_r9_IEs_1, + 2, /* Elements count */ + &asn_SPC_Error_r9_IEs_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/Error-r9-IEs.h b/asn.1/lpp_generated/Error-r9-IEs.h new file mode 100644 index 00000000..800a2674 --- /dev/null +++ b/asn.1/lpp_generated/Error-r9-IEs.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _Error_r9_IEs_H_ +#define _Error_r9_IEs_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CommonIEsError; +struct EPDU_Sequence; + +/* Error-r9-IEs */ +typedef struct Error_r9_IEs { + struct CommonIEsError *commonIEsError; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct EPDU_Sequence *epdu_Error; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Error_r9_IEs_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Error_r9_IEs; +extern asn_SEQUENCE_specifics_t asn_SPC_Error_r9_IEs_specs_1; +extern asn_TYPE_member_t asn_MBR_Error_r9_IEs_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Error_r9_IEs_H_ */ +#include diff --git a/asn.1/lpp_generated/Error.c b/asn.1/lpp_generated/Error.c new file mode 100644 index 00000000..a9f7586f --- /dev/null +++ b/asn.1/lpp_generated/Error.c @@ -0,0 +1,124 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Error.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Error_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_criticalExtensionsFuture_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SEQUENCE_specifics_t asn_SPC_criticalExtensionsFuture_specs_3 = { + sizeof(struct Error__criticalExtensionsFuture), + offsetof(struct Error__criticalExtensionsFuture, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_criticalExtensionsFuture_3 = { + "criticalExtensionsFuture", + "criticalExtensionsFuture", + &asn_OP_SEQUENCE, + asn_DEF_criticalExtensionsFuture_tags_3, + sizeof(asn_DEF_criticalExtensionsFuture_tags_3) + /sizeof(asn_DEF_criticalExtensionsFuture_tags_3[0]) - 1, /* 1 */ + asn_DEF_criticalExtensionsFuture_tags_3, /* Same as above */ + sizeof(asn_DEF_criticalExtensionsFuture_tags_3) + /sizeof(asn_DEF_criticalExtensionsFuture_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_criticalExtensionsFuture_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_Error_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Error, choice.error_r9), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Error_r9_IEs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "error-r9" + }, + { ATF_NOFLAGS, 0, offsetof(struct Error, choice.criticalExtensionsFuture), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_criticalExtensionsFuture_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "criticalExtensionsFuture" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_Error_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* error-r9 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* criticalExtensionsFuture */ +}; +asn_CHOICE_specifics_t asn_SPC_Error_specs_1 = { + sizeof(struct Error), + offsetof(struct Error, _asn_ctx), + offsetof(struct Error, present), + sizeof(((struct Error *)0)->present), + asn_MAP_Error_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_Error = { + "Error", + "Error", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Error_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_Error_1, + 2, /* Elements count */ + &asn_SPC_Error_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Error.h b/asn.1/lpp_generated/Error.h similarity index 82% rename from asn.1/generated/Error.h rename to asn.1/lpp_generated/Error.h index 1410fce9..fd54e04e 100644 --- a/asn.1/generated/Error.h +++ b/asn.1/lpp_generated/Error.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Error_H_ diff --git a/asn.1/lpp_generated/FKP-Gradients-Element-r15.c b/asn.1/lpp_generated/FKP-Gradients-Element-r15.c new file mode 100644 index 00000000..0ac87c8f --- /dev/null +++ b/asn.1/lpp_generated/FKP-Gradients-Element-r15.c @@ -0,0 +1,322 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "FKP-Gradients-Element-r15.h" + +static int +memb_iod_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 11UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_north_geometric_gradient_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2048L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_east_geometric_gradient_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2048L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_north_ionospheric_gradient_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8192L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_east_ionospheric_gradient_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8192L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_iod_r15_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 11, 11 } /* (SIZE(11..11)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_north_geometric_gradient_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_east_geometric_gradient_r15_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_north_ionospheric_gradient_r15_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_east_ionospheric_gradient_r15_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_FKP_Gradients_Element_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct FKP_Gradients_Element_r15, svID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct FKP_Gradients_Element_r15, iod_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_iod_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_iod_r15_constraint_1 + }, + 0, 0, /* No default value */ + "iod-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct FKP_Gradients_Element_r15, north_geometric_gradient_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_north_geometric_gradient_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_north_geometric_gradient_r15_constraint_1 + }, + 0, 0, /* No default value */ + "north-geometric-gradient-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct FKP_Gradients_Element_r15, east_geometric_gradient_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_east_geometric_gradient_r15_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_east_geometric_gradient_r15_constraint_1 + }, + 0, 0, /* No default value */ + "east-geometric-gradient-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct FKP_Gradients_Element_r15, north_ionospheric_gradient_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_north_ionospheric_gradient_r15_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_north_ionospheric_gradient_r15_constraint_1 + }, + 0, 0, /* No default value */ + "north-ionospheric-gradient-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct FKP_Gradients_Element_r15, east_ionospheric_gradient_r15), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_east_ionospheric_gradient_r15_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_east_ionospheric_gradient_r15_constraint_1 + }, + 0, 0, /* No default value */ + "east-ionospheric-gradient-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_FKP_Gradients_Element_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_FKP_Gradients_Element_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* iod-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* north-geometric-gradient-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* east-geometric-gradient-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* north-ionospheric-gradient-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* east-ionospheric-gradient-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_FKP_Gradients_Element_r15_specs_1 = { + sizeof(struct FKP_Gradients_Element_r15), + offsetof(struct FKP_Gradients_Element_r15, _asn_ctx), + asn_MAP_FKP_Gradients_Element_r15_tag2el_1, + 6, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_FKP_Gradients_Element_r15 = { + "FKP-Gradients-Element-r15", + "FKP-Gradients-Element-r15", + &asn_OP_SEQUENCE, + asn_DEF_FKP_Gradients_Element_r15_tags_1, + sizeof(asn_DEF_FKP_Gradients_Element_r15_tags_1) + /sizeof(asn_DEF_FKP_Gradients_Element_r15_tags_1[0]), /* 1 */ + asn_DEF_FKP_Gradients_Element_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_FKP_Gradients_Element_r15_tags_1) + /sizeof(asn_DEF_FKP_Gradients_Element_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_FKP_Gradients_Element_r15_1, + 6, /* Elements count */ + &asn_SPC_FKP_Gradients_Element_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/FKP-Gradients-Element-r15.h b/asn.1/lpp_generated/FKP-Gradients-Element-r15.h similarity index 82% rename from asn.1/generated/FKP-Gradients-Element-r15.h rename to asn.1/lpp_generated/FKP-Gradients-Element-r15.h index 858a2533..106648f1 100644 --- a/asn.1/generated/FKP-Gradients-Element-r15.h +++ b/asn.1/lpp_generated/FKP-Gradients-Element-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _FKP_Gradients_Element_r15_H_ diff --git a/asn.1/lpp_generated/FKP-Gradients-List-r15.c b/asn.1/lpp_generated/FKP-Gradients-List-r15.c new file mode 100644 index 00000000..62fbfdc7 --- /dev/null +++ b/asn.1/lpp_generated/FKP-Gradients-List-r15.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "FKP-Gradients-List-r15.h" + +#include "FKP-Gradients-Element-r15.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_FKP_Gradients_List_r15_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_FKP_Gradients_List_r15_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_FKP_Gradients_Element_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_FKP_Gradients_List_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_FKP_Gradients_List_r15_specs_1 = { + sizeof(struct FKP_Gradients_List_r15), + offsetof(struct FKP_Gradients_List_r15, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_FKP_Gradients_List_r15 = { + "FKP-Gradients-List-r15", + "FKP-Gradients-List-r15", + &asn_OP_SEQUENCE_OF, + asn_DEF_FKP_Gradients_List_r15_tags_1, + sizeof(asn_DEF_FKP_Gradients_List_r15_tags_1) + /sizeof(asn_DEF_FKP_Gradients_List_r15_tags_1[0]), /* 1 */ + asn_DEF_FKP_Gradients_List_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_FKP_Gradients_List_r15_tags_1) + /sizeof(asn_DEF_FKP_Gradients_List_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_FKP_Gradients_List_r15_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_FKP_Gradients_List_r15_1, + 1, /* Single element */ + &asn_SPC_FKP_Gradients_List_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/FKP-Gradients-List-r15.h b/asn.1/lpp_generated/FKP-Gradients-List-r15.h similarity index 80% rename from asn.1/generated/FKP-Gradients-List-r15.h rename to asn.1/lpp_generated/FKP-Gradients-List-r15.h index 5d780985..814e4453 100644 --- a/asn.1/generated/FKP-Gradients-List-r15.h +++ b/asn.1/lpp_generated/FKP-Gradients-List-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _FKP_Gradients_List_r15_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_FKP_Gradients_List_r15_constr_1; } #endif -/* Referred external types */ -#include "FKP-Gradients-Element-r15.h" - #endif /* _FKP_Gradients_List_r15_H_ */ #include diff --git a/asn.1/lpp_generated/FreqBandIndicatorNR-r16.c b/asn.1/lpp_generated/FreqBandIndicatorNR-r16.c new file mode 100644 index 00000000..5afacd29 --- /dev/null +++ b/asn.1/lpp_generated/FreqBandIndicatorNR-r16.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "FreqBandIndicatorNR-r16.h" + +int +FreqBandIndicatorNR_r16_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1024L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_FreqBandIndicatorNR_r16_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (1..1024) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_FreqBandIndicatorNR_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_FreqBandIndicatorNR_r16 = { + "FreqBandIndicatorNR-r16", + "FreqBandIndicatorNR-r16", + &asn_OP_NativeInteger, + asn_DEF_FreqBandIndicatorNR_r16_tags_1, + sizeof(asn_DEF_FreqBandIndicatorNR_r16_tags_1) + /sizeof(asn_DEF_FreqBandIndicatorNR_r16_tags_1[0]), /* 1 */ + asn_DEF_FreqBandIndicatorNR_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_FreqBandIndicatorNR_r16_tags_1) + /sizeof(asn_DEF_FreqBandIndicatorNR_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_FreqBandIndicatorNR_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + FreqBandIndicatorNR_r16_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/lpp_generated/FreqBandIndicatorNR-r16.h b/asn.1/lpp_generated/FreqBandIndicatorNR-r16.h new file mode 100644 index 00000000..878de8cd --- /dev/null +++ b/asn.1/lpp_generated/FreqBandIndicatorNR-r16.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _FreqBandIndicatorNR_r16_H_ +#define _FreqBandIndicatorNR_r16_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* FreqBandIndicatorNR-r16 */ +typedef long FreqBandIndicatorNR_r16_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_FreqBandIndicatorNR_r16_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_FreqBandIndicatorNR_r16; +asn_struct_free_f FreqBandIndicatorNR_r16_free; +asn_constr_check_f FreqBandIndicatorNR_r16_constraint; +xer_type_decoder_f FreqBandIndicatorNR_r16_decode_xer; +xer_type_encoder_f FreqBandIndicatorNR_r16_encode_xer; +jer_type_encoder_f FreqBandIndicatorNR_r16_encode_jer; +per_type_decoder_f FreqBandIndicatorNR_r16_decode_uper; +per_type_encoder_f FreqBandIndicatorNR_r16_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _FreqBandIndicatorNR_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/GLO-RTK-BiasInformation-r15.c b/asn.1/lpp_generated/GLO-RTK-BiasInformation-r15.c new file mode 100644 index 00000000..17f86a48 --- /dev/null +++ b/asn.1/lpp_generated/GLO-RTK-BiasInformation-r15.c @@ -0,0 +1,324 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GLO-RTK-BiasInformation-r15.h" + +static int +memb_cpbIndicator_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 1UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_l1_ca_cpBias_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_l1_p_cpBias_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_l2_ca_cpBias_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_l2_p_cpBias_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cpbIndicator_r15_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 1, 1 } /* (SIZE(1..1)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_l1_ca_cpBias_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_l1_p_cpBias_r15_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_l2_ca_cpBias_r15_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_l2_p_cpBias_r15_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GLO_RTK_BiasInformation_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GLO_RTK_BiasInformation_r15, referenceStationID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceStationID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceStationID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GLO_RTK_BiasInformation_r15, cpbIndicator_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cpbIndicator_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cpbIndicator_r15_constraint_1 + }, + 0, 0, /* No default value */ + "cpbIndicator-r15" + }, + { ATF_POINTER, 4, offsetof(struct GLO_RTK_BiasInformation_r15, l1_ca_cpBias_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_l1_ca_cpBias_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_l1_ca_cpBias_r15_constraint_1 + }, + 0, 0, /* No default value */ + "l1-ca-cpBias-r15" + }, + { ATF_POINTER, 3, offsetof(struct GLO_RTK_BiasInformation_r15, l1_p_cpBias_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_l1_p_cpBias_r15_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_l1_p_cpBias_r15_constraint_1 + }, + 0, 0, /* No default value */ + "l1-p-cpBias-r15" + }, + { ATF_POINTER, 2, offsetof(struct GLO_RTK_BiasInformation_r15, l2_ca_cpBias_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_l2_ca_cpBias_r15_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_l2_ca_cpBias_r15_constraint_1 + }, + 0, 0, /* No default value */ + "l2-ca-cpBias-r15" + }, + { ATF_POINTER, 1, offsetof(struct GLO_RTK_BiasInformation_r15, l2_p_cpBias_r15), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_l2_p_cpBias_r15_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_l2_p_cpBias_r15_constraint_1 + }, + 0, 0, /* No default value */ + "l2-p-cpBias-r15" + }, +}; +static const int asn_MAP_GLO_RTK_BiasInformation_r15_oms_1[] = { 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_GLO_RTK_BiasInformation_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GLO_RTK_BiasInformation_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceStationID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cpbIndicator-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* l1-ca-cpBias-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* l1-p-cpBias-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* l2-ca-cpBias-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* l2-p-cpBias-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GLO_RTK_BiasInformation_r15_specs_1 = { + sizeof(struct GLO_RTK_BiasInformation_r15), + offsetof(struct GLO_RTK_BiasInformation_r15, _asn_ctx), + asn_MAP_GLO_RTK_BiasInformation_r15_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_GLO_RTK_BiasInformation_r15_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GLO_RTK_BiasInformation_r15 = { + "GLO-RTK-BiasInformation-r15", + "GLO-RTK-BiasInformation-r15", + &asn_OP_SEQUENCE, + asn_DEF_GLO_RTK_BiasInformation_r15_tags_1, + sizeof(asn_DEF_GLO_RTK_BiasInformation_r15_tags_1) + /sizeof(asn_DEF_GLO_RTK_BiasInformation_r15_tags_1[0]), /* 1 */ + asn_DEF_GLO_RTK_BiasInformation_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GLO_RTK_BiasInformation_r15_tags_1) + /sizeof(asn_DEF_GLO_RTK_BiasInformation_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GLO_RTK_BiasInformation_r15_1, + 6, /* Elements count */ + &asn_SPC_GLO_RTK_BiasInformation_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GLO-RTK-BiasInformation-r15.h b/asn.1/lpp_generated/GLO-RTK-BiasInformation-r15.h new file mode 100644 index 00000000..82347812 --- /dev/null +++ b/asn.1/lpp_generated/GLO-RTK-BiasInformation-r15.h @@ -0,0 +1,51 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GLO_RTK_BiasInformation_r15_H_ +#define _GLO_RTK_BiasInformation_r15_H_ + + +#include + +/* Including external dependencies */ +#include "GNSS-ReferenceStationID-r15.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GLO-RTK-BiasInformation-r15 */ +typedef struct GLO_RTK_BiasInformation_r15 { + GNSS_ReferenceStationID_r15_t referenceStationID_r15; + BIT_STRING_t cpbIndicator_r15; + long *l1_ca_cpBias_r15; /* OPTIONAL */ + long *l1_p_cpBias_r15; /* OPTIONAL */ + long *l2_ca_cpBias_r15; /* OPTIONAL */ + long *l2_p_cpBias_r15; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GLO_RTK_BiasInformation_r15_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GLO_RTK_BiasInformation_r15; +extern asn_SEQUENCE_specifics_t asn_SPC_GLO_RTK_BiasInformation_r15_specs_1; +extern asn_TYPE_member_t asn_MBR_GLO_RTK_BiasInformation_r15_1[6]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GLO_RTK_BiasInformation_r15_H_ */ +#include diff --git a/asn.1/lpp_generated/GLO-RTK-BiasInformationReq-r15.c b/asn.1/lpp_generated/GLO-RTK-BiasInformationReq-r15.c new file mode 100644 index 00000000..293120f2 --- /dev/null +++ b/asn.1/lpp_generated/GLO-RTK-BiasInformationReq-r15.c @@ -0,0 +1,69 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GLO-RTK-BiasInformationReq-r15.h" + +#include "GNSS-ReferenceStationID-r15.h" +asn_TYPE_member_t asn_MBR_GLO_RTK_BiasInformationReq_r15_1[] = { + { ATF_POINTER, 1, offsetof(struct GLO_RTK_BiasInformationReq_r15, stationID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceStationID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stationID-r15" + }, +}; +static const int asn_MAP_GLO_RTK_BiasInformationReq_r15_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_GLO_RTK_BiasInformationReq_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GLO_RTK_BiasInformationReq_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* stationID-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GLO_RTK_BiasInformationReq_r15_specs_1 = { + sizeof(struct GLO_RTK_BiasInformationReq_r15), + offsetof(struct GLO_RTK_BiasInformationReq_r15, _asn_ctx), + asn_MAP_GLO_RTK_BiasInformationReq_r15_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_GLO_RTK_BiasInformationReq_r15_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GLO_RTK_BiasInformationReq_r15 = { + "GLO-RTK-BiasInformationReq-r15", + "GLO-RTK-BiasInformationReq-r15", + &asn_OP_SEQUENCE, + asn_DEF_GLO_RTK_BiasInformationReq_r15_tags_1, + sizeof(asn_DEF_GLO_RTK_BiasInformationReq_r15_tags_1) + /sizeof(asn_DEF_GLO_RTK_BiasInformationReq_r15_tags_1[0]), /* 1 */ + asn_DEF_GLO_RTK_BiasInformationReq_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GLO_RTK_BiasInformationReq_r15_tags_1) + /sizeof(asn_DEF_GLO_RTK_BiasInformationReq_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GLO_RTK_BiasInformationReq_r15_1, + 1, /* Elements count */ + &asn_SPC_GLO_RTK_BiasInformationReq_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GLO-RTK-BiasInformationReq-r15.h b/asn.1/lpp_generated/GLO-RTK-BiasInformationReq-r15.h similarity index 76% rename from asn.1/generated/GLO-RTK-BiasInformationReq-r15.h rename to asn.1/lpp_generated/GLO-RTK-BiasInformationReq-r15.h index 7c8a47c9..487d6ef2 100644 --- a/asn.1/generated/GLO-RTK-BiasInformationReq-r15.h +++ b/asn.1/lpp_generated/GLO-RTK-BiasInformationReq-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GLO_RTK_BiasInformationReq_r15_H_ @@ -23,7 +23,7 @@ struct GNSS_ReferenceStationID_r15; /* GLO-RTK-BiasInformationReq-r15 */ typedef struct GLO_RTK_BiasInformationReq_r15 { - struct GNSS_ReferenceStationID_r15 *stationID_r15 /* OPTIONAL */; + struct GNSS_ReferenceStationID_r15 *stationID_r15; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -42,8 +42,5 @@ extern asn_TYPE_member_t asn_MBR_GLO_RTK_BiasInformationReq_r15_1[1]; } #endif -/* Referred external types */ -#include "GNSS-ReferenceStationID-r15.h" - #endif /* _GLO_RTK_BiasInformationReq_r15_H_ */ #include diff --git a/asn.1/lpp_generated/GLO-RTK-BiasInformationSupport-r15.c b/asn.1/lpp_generated/GLO-RTK-BiasInformationSupport-r15.c new file mode 100644 index 00000000..488220c4 --- /dev/null +++ b/asn.1/lpp_generated/GLO-RTK-BiasInformationSupport-r15.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GLO-RTK-BiasInformationSupport-r15.h" + +static const ber_tlv_tag_t asn_DEF_GLO_RTK_BiasInformationSupport_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GLO_RTK_BiasInformationSupport_r15_specs_1 = { + sizeof(struct GLO_RTK_BiasInformationSupport_r15), + offsetof(struct GLO_RTK_BiasInformationSupport_r15, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GLO_RTK_BiasInformationSupport_r15 = { + "GLO-RTK-BiasInformationSupport-r15", + "GLO-RTK-BiasInformationSupport-r15", + &asn_OP_SEQUENCE, + asn_DEF_GLO_RTK_BiasInformationSupport_r15_tags_1, + sizeof(asn_DEF_GLO_RTK_BiasInformationSupport_r15_tags_1) + /sizeof(asn_DEF_GLO_RTK_BiasInformationSupport_r15_tags_1[0]), /* 1 */ + asn_DEF_GLO_RTK_BiasInformationSupport_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GLO_RTK_BiasInformationSupport_r15_tags_1) + /sizeof(asn_DEF_GLO_RTK_BiasInformationSupport_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GLO_RTK_BiasInformationSupport_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GLO-RTK-BiasInformationSupport-r15.h b/asn.1/lpp_generated/GLO-RTK-BiasInformationSupport-r15.h similarity index 78% rename from asn.1/generated/GLO-RTK-BiasInformationSupport-r15.h rename to asn.1/lpp_generated/GLO-RTK-BiasInformationSupport-r15.h index bf09d4fd..b41a93aa 100644 --- a/asn.1/generated/GLO-RTK-BiasInformationSupport-r15.h +++ b/asn.1/lpp_generated/GLO-RTK-BiasInformationSupport-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GLO_RTK_BiasInformationSupport_r15_H_ diff --git a/asn.1/lpp_generated/GLONASS-ClockModel.c b/asn.1/lpp_generated/GLONASS-ClockModel.c new file mode 100644 index 00000000..a468f768 --- /dev/null +++ b/asn.1/lpp_generated/GLONASS-ClockModel.c @@ -0,0 +1,200 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GLONASS-ClockModel.h" + +static int +memb_gloTau_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2097152L && value <= 2097151L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloGamma_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloDeltaTau_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloTau_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, -2097152, 2097151 } /* (-2097152..2097151) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloGamma_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloDeltaTau_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, -16, 15 } /* (-16..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GLONASS_ClockModel_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GLONASS_ClockModel, gloTau), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloTau_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloTau_constraint_1 + }, + 0, 0, /* No default value */ + "gloTau" + }, + { ATF_NOFLAGS, 0, offsetof(struct GLONASS_ClockModel, gloGamma), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloGamma_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloGamma_constraint_1 + }, + 0, 0, /* No default value */ + "gloGamma" + }, + { ATF_POINTER, 1, offsetof(struct GLONASS_ClockModel, gloDeltaTau), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloDeltaTau_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloDeltaTau_constraint_1 + }, + 0, 0, /* No default value */ + "gloDeltaTau" + }, +}; +static const int asn_MAP_GLONASS_ClockModel_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_GLONASS_ClockModel_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GLONASS_ClockModel_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gloTau */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gloGamma */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gloDeltaTau */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GLONASS_ClockModel_specs_1 = { + sizeof(struct GLONASS_ClockModel), + offsetof(struct GLONASS_ClockModel, _asn_ctx), + asn_MAP_GLONASS_ClockModel_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_GLONASS_ClockModel_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GLONASS_ClockModel = { + "GLONASS-ClockModel", + "GLONASS-ClockModel", + &asn_OP_SEQUENCE, + asn_DEF_GLONASS_ClockModel_tags_1, + sizeof(asn_DEF_GLONASS_ClockModel_tags_1) + /sizeof(asn_DEF_GLONASS_ClockModel_tags_1[0]), /* 1 */ + asn_DEF_GLONASS_ClockModel_tags_1, /* Same as above */ + sizeof(asn_DEF_GLONASS_ClockModel_tags_1) + /sizeof(asn_DEF_GLONASS_ClockModel_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GLONASS_ClockModel_1, + 3, /* Elements count */ + &asn_SPC_GLONASS_ClockModel_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GLONASS-ClockModel.h b/asn.1/lpp_generated/GLONASS-ClockModel.h similarity index 75% rename from asn.1/generated/GLONASS-ClockModel.h rename to asn.1/lpp_generated/GLONASS-ClockModel.h index 3b8e5f4f..b5132e5b 100644 --- a/asn.1/generated/GLONASS-ClockModel.h +++ b/asn.1/lpp_generated/GLONASS-ClockModel.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GLONASS_ClockModel_H_ @@ -23,7 +23,7 @@ extern "C" { typedef struct GLONASS_ClockModel { long gloTau; long gloGamma; - long *gloDeltaTau /* OPTIONAL */; + long *gloDeltaTau; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/GNSS-AcquisitionAssistElement.c b/asn.1/lpp_generated/GNSS-AcquisitionAssistElement.c new file mode 100644 index 00000000..aeec32b2 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-AcquisitionAssistElement.c @@ -0,0 +1,568 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-AcquisitionAssistElement.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_doppler0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2048L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_doppler1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dopplerUncertainty_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_codePhase_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1022L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_intCodePhase_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_codePhaseSearchWindow_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 31L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_azimuth_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_elevation_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dopplerUncertaintyExt_r10_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_doppler0_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_doppler1_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dopplerUncertainty_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_codePhase_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1022 } /* (0..1022) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_intCodePhase_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_codePhaseSearchWindow_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_azimuth_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_elevation_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_dopplerUncertaintyExt_r10_value2enum_13[] = { + { 0, 3, "d60" }, + { 1, 3, "d80" }, + { 2, 4, "d100" }, + { 3, 4, "d120" }, + { 4, 13, "noInformation" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_dopplerUncertaintyExt_r10_enum2value_13[] = { + 2, /* d100(2) */ + 3, /* d120(3) */ + 0, /* d60(0) */ + 1, /* d80(1) */ + 4 /* noInformation(4) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dopplerUncertaintyExt_r10_specs_13 = { + asn_MAP_dopplerUncertaintyExt_r10_value2enum_13, /* "tag" => N; sorted by tag */ + asn_MAP_dopplerUncertaintyExt_r10_enum2value_13, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 6, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dopplerUncertaintyExt_r10_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dopplerUncertaintyExt_r10_13 = { + "dopplerUncertaintyExt-r10", + "dopplerUncertaintyExt-r10", + &asn_OP_NativeEnumerated, + asn_DEF_dopplerUncertaintyExt_r10_tags_13, + sizeof(asn_DEF_dopplerUncertaintyExt_r10_tags_13) + /sizeof(asn_DEF_dopplerUncertaintyExt_r10_tags_13[0]) - 1, /* 1 */ + asn_DEF_dopplerUncertaintyExt_r10_tags_13, /* Same as above */ + sizeof(asn_DEF_dopplerUncertaintyExt_r10_tags_13) + /sizeof(asn_DEF_dopplerUncertaintyExt_r10_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dopplerUncertaintyExt_r10_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dopplerUncertaintyExt_r10_specs_13 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_AcquisitionAssistElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistElement, svID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistElement, doppler0), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_doppler0_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_doppler0_constraint_1 + }, + 0, 0, /* No default value */ + "doppler0" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistElement, doppler1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_doppler1_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_doppler1_constraint_1 + }, + 0, 0, /* No default value */ + "doppler1" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistElement, dopplerUncertainty), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dopplerUncertainty_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dopplerUncertainty_constraint_1 + }, + 0, 0, /* No default value */ + "dopplerUncertainty" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistElement, codePhase), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_codePhase_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_codePhase_constraint_1 + }, + 0, 0, /* No default value */ + "codePhase" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistElement, intCodePhase), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_intCodePhase_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_intCodePhase_constraint_1 + }, + 0, 0, /* No default value */ + "intCodePhase" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistElement, codePhaseSearchWindow), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_codePhaseSearchWindow_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_codePhaseSearchWindow_constraint_1 + }, + 0, 0, /* No default value */ + "codePhaseSearchWindow" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistElement, azimuth), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_azimuth_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_azimuth_constraint_1 + }, + 0, 0, /* No default value */ + "azimuth" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistElement, elevation), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_elevation_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_elevation_constraint_1 + }, + 0, 0, /* No default value */ + "elevation" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_AcquisitionAssistElement, codePhase1023), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "codePhase1023" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_AcquisitionAssistElement, dopplerUncertaintyExt_r10), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dopplerUncertaintyExt_r10_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dopplerUncertaintyExt-r10" + }, +}; +static const int asn_MAP_GNSS_AcquisitionAssistElement_oms_1[] = { 9, 10 }; +static const ber_tlv_tag_t asn_DEF_GNSS_AcquisitionAssistElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_AcquisitionAssistElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* doppler0 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* doppler1 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* dopplerUncertainty */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* codePhase */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* intCodePhase */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* codePhaseSearchWindow */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* azimuth */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* elevation */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* codePhase1023 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 } /* dopplerUncertaintyExt-r10 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_AcquisitionAssistElement_specs_1 = { + sizeof(struct GNSS_AcquisitionAssistElement), + offsetof(struct GNSS_AcquisitionAssistElement, _asn_ctx), + asn_MAP_GNSS_AcquisitionAssistElement_tag2el_1, + 11, /* Count of tags in the map */ + asn_MAP_GNSS_AcquisitionAssistElement_oms_1, /* Optional members */ + 0, 2, /* Root/Additions */ + 9, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_AcquisitionAssistElement = { + "GNSS-AcquisitionAssistElement", + "GNSS-AcquisitionAssistElement", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_AcquisitionAssistElement_tags_1, + sizeof(asn_DEF_GNSS_AcquisitionAssistElement_tags_1) + /sizeof(asn_DEF_GNSS_AcquisitionAssistElement_tags_1[0]), /* 1 */ + asn_DEF_GNSS_AcquisitionAssistElement_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_AcquisitionAssistElement_tags_1) + /sizeof(asn_DEF_GNSS_AcquisitionAssistElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_AcquisitionAssistElement_1, + 11, /* Elements count */ + &asn_SPC_GNSS_AcquisitionAssistElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-AcquisitionAssistElement.h b/asn.1/lpp_generated/GNSS-AcquisitionAssistElement.h similarity index 84% rename from asn.1/generated/GNSS-AcquisitionAssistElement.h rename to asn.1/lpp_generated/GNSS-AcquisitionAssistElement.h index 0e83e889..f8f4943f 100644 --- a/asn.1/generated/GNSS-AcquisitionAssistElement.h +++ b/asn.1/lpp_generated/GNSS-AcquisitionAssistElement.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_AcquisitionAssistElement_H_ @@ -49,8 +49,8 @@ typedef struct GNSS_AcquisitionAssistElement { * This type is extensible, * possible extensions are below. */ - BOOLEAN_t *codePhase1023 /* OPTIONAL */; - long *dopplerUncertaintyExt_r10 /* OPTIONAL */; + BOOLEAN_t *codePhase1023; /* OPTIONAL */ + long *dopplerUncertaintyExt_r10; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/GNSS-AcquisitionAssistList.c b/asn.1/lpp_generated/GNSS-AcquisitionAssistList.c new file mode 100644 index 00000000..ce52085a --- /dev/null +++ b/asn.1/lpp_generated/GNSS-AcquisitionAssistList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-AcquisitionAssistList.h" + +#include "GNSS-AcquisitionAssistElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_AcquisitionAssistList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_AcquisitionAssistList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_AcquisitionAssistElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_AcquisitionAssistList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_AcquisitionAssistList_specs_1 = { + sizeof(struct GNSS_AcquisitionAssistList), + offsetof(struct GNSS_AcquisitionAssistList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_AcquisitionAssistList = { + "GNSS-AcquisitionAssistList", + "GNSS-AcquisitionAssistList", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_AcquisitionAssistList_tags_1, + sizeof(asn_DEF_GNSS_AcquisitionAssistList_tags_1) + /sizeof(asn_DEF_GNSS_AcquisitionAssistList_tags_1[0]), /* 1 */ + asn_DEF_GNSS_AcquisitionAssistList_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_AcquisitionAssistList_tags_1) + /sizeof(asn_DEF_GNSS_AcquisitionAssistList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_AcquisitionAssistList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_AcquisitionAssistList_1, + 1, /* Single element */ + &asn_SPC_GNSS_AcquisitionAssistList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-AcquisitionAssistList.h b/asn.1/lpp_generated/GNSS-AcquisitionAssistList.h similarity index 81% rename from asn.1/generated/GNSS-AcquisitionAssistList.h rename to asn.1/lpp_generated/GNSS-AcquisitionAssistList.h index 43ba6717..6fa2f4ea 100644 --- a/asn.1/generated/GNSS-AcquisitionAssistList.h +++ b/asn.1/lpp_generated/GNSS-AcquisitionAssistList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_AcquisitionAssistList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_AcquisitionAssistList_constr_1; } #endif -/* Referred external types */ -#include "GNSS-AcquisitionAssistElement.h" - #endif /* _GNSS_AcquisitionAssistList_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-AcquisitionAssistance.c b/asn.1/lpp_generated/GNSS-AcquisitionAssistance.c new file mode 100644 index 00000000..f204efb8 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-AcquisitionAssistance.c @@ -0,0 +1,136 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-AcquisitionAssistance.h" + +static int +memb_confidence_r10_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_confidence_r10_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_AcquisitionAssistance_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistance, gnss_SignalID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SignalID" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistance, gnss_AcquisitionAssistList), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_AcquisitionAssistList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-AcquisitionAssistList" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_AcquisitionAssistance, confidence_r10), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_confidence_r10_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_confidence_r10_constraint_1 + }, + 0, 0, /* No default value */ + "confidence-r10" + }, +}; +static const int asn_MAP_GNSS_AcquisitionAssistance_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_GNSS_AcquisitionAssistance_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_AcquisitionAssistance_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SignalID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-AcquisitionAssistList */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* confidence-r10 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_AcquisitionAssistance_specs_1 = { + sizeof(struct GNSS_AcquisitionAssistance), + offsetof(struct GNSS_AcquisitionAssistance, _asn_ctx), + asn_MAP_GNSS_AcquisitionAssistance_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_GNSS_AcquisitionAssistance_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_AcquisitionAssistance = { + "GNSS-AcquisitionAssistance", + "GNSS-AcquisitionAssistance", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_AcquisitionAssistance_tags_1, + sizeof(asn_DEF_GNSS_AcquisitionAssistance_tags_1) + /sizeof(asn_DEF_GNSS_AcquisitionAssistance_tags_1[0]), /* 1 */ + asn_DEF_GNSS_AcquisitionAssistance_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_AcquisitionAssistance_tags_1) + /sizeof(asn_DEF_GNSS_AcquisitionAssistance_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_AcquisitionAssistance_1, + 3, /* Elements count */ + &asn_SPC_GNSS_AcquisitionAssistance_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-AcquisitionAssistance.h b/asn.1/lpp_generated/GNSS-AcquisitionAssistance.h similarity index 79% rename from asn.1/generated/GNSS-AcquisitionAssistance.h rename to asn.1/lpp_generated/GNSS-AcquisitionAssistance.h index d22e9178..ba0ad72d 100644 --- a/asn.1/generated/GNSS-AcquisitionAssistance.h +++ b/asn.1/lpp_generated/GNSS-AcquisitionAssistance.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_AcquisitionAssistance_H_ @@ -29,7 +29,7 @@ typedef struct GNSS_AcquisitionAssistance { * This type is extensible, * possible extensions are below. */ - long *confidence_r10 /* OPTIONAL */; + long *confidence_r10; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/GNSS-AcquisitionAssistanceReq.c b/asn.1/lpp_generated/GNSS-AcquisitionAssistanceReq.c new file mode 100644 index 00000000..7a3a06e8 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-AcquisitionAssistanceReq.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-AcquisitionAssistanceReq.h" + +asn_TYPE_member_t asn_MBR_GNSS_AcquisitionAssistanceReq_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AcquisitionAssistanceReq, gnss_SignalID_Req), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SignalID-Req" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_AcquisitionAssistanceReq_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_AcquisitionAssistanceReq_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-SignalID-Req */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_AcquisitionAssistanceReq_specs_1 = { + sizeof(struct GNSS_AcquisitionAssistanceReq), + offsetof(struct GNSS_AcquisitionAssistanceReq, _asn_ctx), + asn_MAP_GNSS_AcquisitionAssistanceReq_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_AcquisitionAssistanceReq = { + "GNSS-AcquisitionAssistanceReq", + "GNSS-AcquisitionAssistanceReq", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_AcquisitionAssistanceReq_tags_1, + sizeof(asn_DEF_GNSS_AcquisitionAssistanceReq_tags_1) + /sizeof(asn_DEF_GNSS_AcquisitionAssistanceReq_tags_1[0]), /* 1 */ + asn_DEF_GNSS_AcquisitionAssistanceReq_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_AcquisitionAssistanceReq_tags_1) + /sizeof(asn_DEF_GNSS_AcquisitionAssistanceReq_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_AcquisitionAssistanceReq_1, + 1, /* Elements count */ + &asn_SPC_GNSS_AcquisitionAssistanceReq_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-AcquisitionAssistanceReq.h b/asn.1/lpp_generated/GNSS-AcquisitionAssistanceReq.h similarity index 80% rename from asn.1/generated/GNSS-AcquisitionAssistanceReq.h rename to asn.1/lpp_generated/GNSS-AcquisitionAssistanceReq.h index 43e95fde..36c96a59 100644 --- a/asn.1/generated/GNSS-AcquisitionAssistanceReq.h +++ b/asn.1/lpp_generated/GNSS-AcquisitionAssistanceReq.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_AcquisitionAssistanceReq_H_ diff --git a/asn.1/lpp_generated/GNSS-AcquisitionAssistanceSupport.c b/asn.1/lpp_generated/GNSS-AcquisitionAssistanceSupport.c new file mode 100644 index 00000000..0ddb8ba8 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-AcquisitionAssistanceSupport.c @@ -0,0 +1,194 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-AcquisitionAssistanceSupport.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_confidenceSupport_r10_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dopplerUncertaintyExtSupport_r10_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_confidenceSupport_r10_value2enum_3[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_confidenceSupport_r10_enum2value_3[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_confidenceSupport_r10_specs_3 = { + asn_MAP_confidenceSupport_r10_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_confidenceSupport_r10_enum2value_3, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_confidenceSupport_r10_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_confidenceSupport_r10_3 = { + "confidenceSupport-r10", + "confidenceSupport-r10", + &asn_OP_NativeEnumerated, + asn_DEF_confidenceSupport_r10_tags_3, + sizeof(asn_DEF_confidenceSupport_r10_tags_3) + /sizeof(asn_DEF_confidenceSupport_r10_tags_3[0]) - 1, /* 1 */ + asn_DEF_confidenceSupport_r10_tags_3, /* Same as above */ + sizeof(asn_DEF_confidenceSupport_r10_tags_3) + /sizeof(asn_DEF_confidenceSupport_r10_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_confidenceSupport_r10_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_confidenceSupport_r10_specs_3 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dopplerUncertaintyExtSupport_r10_value2enum_5[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_dopplerUncertaintyExtSupport_r10_enum2value_5[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dopplerUncertaintyExtSupport_r10_specs_5 = { + asn_MAP_dopplerUncertaintyExtSupport_r10_value2enum_5, /* "tag" => N; sorted by tag */ + asn_MAP_dopplerUncertaintyExtSupport_r10_enum2value_5, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dopplerUncertaintyExtSupport_r10_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dopplerUncertaintyExtSupport_r10_5 = { + "dopplerUncertaintyExtSupport-r10", + "dopplerUncertaintyExtSupport-r10", + &asn_OP_NativeEnumerated, + asn_DEF_dopplerUncertaintyExtSupport_r10_tags_5, + sizeof(asn_DEF_dopplerUncertaintyExtSupport_r10_tags_5) + /sizeof(asn_DEF_dopplerUncertaintyExtSupport_r10_tags_5[0]) - 1, /* 1 */ + asn_DEF_dopplerUncertaintyExtSupport_r10_tags_5, /* Same as above */ + sizeof(asn_DEF_dopplerUncertaintyExtSupport_r10_tags_5) + /sizeof(asn_DEF_dopplerUncertaintyExtSupport_r10_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dopplerUncertaintyExtSupport_r10_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dopplerUncertaintyExtSupport_r10_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_AcquisitionAssistanceSupport_1[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_AcquisitionAssistanceSupport, confidenceSupport_r10), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_confidenceSupport_r10_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "confidenceSupport-r10" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_AcquisitionAssistanceSupport, dopplerUncertaintyExtSupport_r10), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dopplerUncertaintyExtSupport_r10_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dopplerUncertaintyExtSupport-r10" + }, +}; +static const int asn_MAP_GNSS_AcquisitionAssistanceSupport_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_GNSS_AcquisitionAssistanceSupport_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_AcquisitionAssistanceSupport_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* confidenceSupport-r10 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dopplerUncertaintyExtSupport-r10 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_AcquisitionAssistanceSupport_specs_1 = { + sizeof(struct GNSS_AcquisitionAssistanceSupport), + offsetof(struct GNSS_AcquisitionAssistanceSupport, _asn_ctx), + asn_MAP_GNSS_AcquisitionAssistanceSupport_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_GNSS_AcquisitionAssistanceSupport_oms_1, /* Optional members */ + 0, 2, /* Root/Additions */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_AcquisitionAssistanceSupport = { + "GNSS-AcquisitionAssistanceSupport", + "GNSS-AcquisitionAssistanceSupport", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_AcquisitionAssistanceSupport_tags_1, + sizeof(asn_DEF_GNSS_AcquisitionAssistanceSupport_tags_1) + /sizeof(asn_DEF_GNSS_AcquisitionAssistanceSupport_tags_1[0]), /* 1 */ + asn_DEF_GNSS_AcquisitionAssistanceSupport_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_AcquisitionAssistanceSupport_tags_1) + /sizeof(asn_DEF_GNSS_AcquisitionAssistanceSupport_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_AcquisitionAssistanceSupport_1, + 2, /* Elements count */ + &asn_SPC_GNSS_AcquisitionAssistanceSupport_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-AcquisitionAssistanceSupport.h b/asn.1/lpp_generated/GNSS-AcquisitionAssistanceSupport.h similarity index 82% rename from asn.1/generated/GNSS-AcquisitionAssistanceSupport.h rename to asn.1/lpp_generated/GNSS-AcquisitionAssistanceSupport.h index 6bf65799..8a25babf 100644 --- a/asn.1/generated/GNSS-AcquisitionAssistanceSupport.h +++ b/asn.1/lpp_generated/GNSS-AcquisitionAssistanceSupport.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_AcquisitionAssistanceSupport_H_ @@ -33,8 +33,8 @@ typedef struct GNSS_AcquisitionAssistanceSupport { * This type is extensible, * possible extensions are below. */ - long *confidenceSupport_r10 /* OPTIONAL */; - long *dopplerUncertaintyExtSupport_r10 /* OPTIONAL */; + long *confidenceSupport_r10; /* OPTIONAL */ + long *dopplerUncertaintyExtSupport_r10; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/GNSS-Almanac.c b/asn.1/lpp_generated/GNSS-Almanac.c new file mode 100644 index 00000000..741ec2da --- /dev/null +++ b/asn.1/lpp_generated/GNSS-Almanac.c @@ -0,0 +1,558 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-Almanac.h" + +static int +memb_toa_ext_v1240_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 256L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ioda_ext_v1240_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 4L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_weekNumber_ext_r16_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 256L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_toa_ext2_r16_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 256L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_weekNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_toa_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ioda_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_toa_ext_v1240_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 256, 1023 } /* (256..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ioda_ext_v1240_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 4, 15 } /* (4..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_weekNumber_ext_r16_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, 256, 8191 } /* (256..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_toa_ext2_r16_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 256, 65535 } /* (256..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_weekNumber_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_toa_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ioda_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_8[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_Almanac__ext1, toa_ext_v1240), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_toa_ext_v1240_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_toa_ext_v1240_constraint_8 + }, + 0, 0, /* No default value */ + "toa-ext-v1240" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_Almanac__ext1, ioda_ext_v1240), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ioda_ext_v1240_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ioda_ext_v1240_constraint_8 + }, + 0, 0, /* No default value */ + "ioda-ext-v1240" + }, +}; +static const int asn_MAP_ext1_oms_8[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* toa-ext-v1240 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ioda-ext-v1240 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { + sizeof(struct GNSS_Almanac__ext1), + offsetof(struct GNSS_Almanac__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_8, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_8, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_8 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_8, + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_8, /* Same as above */ + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_8, + 2, /* Elements count */ + &asn_SPC_ext1_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_11[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_Almanac__ext2, weekNumber_ext_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_weekNumber_ext_r16_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_weekNumber_ext_r16_constraint_11 + }, + 0, 0, /* No default value */ + "weekNumber-ext-r16" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_Almanac__ext2, toa_ext2_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_toa_ext2_r16_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_toa_ext2_r16_constraint_11 + }, + 0, 0, /* No default value */ + "toa-ext2-r16" + }, +}; +static const int asn_MAP_ext2_oms_11[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* weekNumber-ext-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* toa-ext2-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_11 = { + sizeof(struct GNSS_Almanac__ext2), + offsetof(struct GNSS_Almanac__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_11, + 2, /* Count of tags in the map */ + asn_MAP_ext2_oms_11, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_11 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_11, + sizeof(asn_DEF_ext2_tags_11) + /sizeof(asn_DEF_ext2_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_11, /* Same as above */ + sizeof(asn_DEF_ext2_tags_11) + /sizeof(asn_DEF_ext2_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_11, + 2, /* Elements count */ + &asn_SPC_ext2_specs_11 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_Almanac_1[] = { + { ATF_POINTER, 3, offsetof(struct GNSS_Almanac, weekNumber), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_weekNumber_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_weekNumber_constraint_1 + }, + 0, 0, /* No default value */ + "weekNumber" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_Almanac, toa), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_toa_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_toa_constraint_1 + }, + 0, 0, /* No default value */ + "toa" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_Almanac, ioda), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ioda_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ioda_constraint_1 + }, + 0, 0, /* No default value */ + "ioda" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_Almanac, completeAlmanacProvided), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "completeAlmanacProvided" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_Almanac, gnss_AlmanacList), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_AlmanacList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-AlmanacList" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_Almanac, ext1), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext1_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_Almanac, ext2), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext2_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_GNSS_Almanac_oms_1[] = { 0, 1, 2, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_GNSS_Almanac_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_Almanac_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* weekNumber */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* toa */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ioda */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* completeAlmanacProvided */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-AlmanacList */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_Almanac_specs_1 = { + sizeof(struct GNSS_Almanac), + offsetof(struct GNSS_Almanac, _asn_ctx), + asn_MAP_GNSS_Almanac_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_GNSS_Almanac_oms_1, /* Optional members */ + 3, 2, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_Almanac = { + "GNSS-Almanac", + "GNSS-Almanac", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_Almanac_tags_1, + sizeof(asn_DEF_GNSS_Almanac_tags_1) + /sizeof(asn_DEF_GNSS_Almanac_tags_1[0]), /* 1 */ + asn_DEF_GNSS_Almanac_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_Almanac_tags_1) + /sizeof(asn_DEF_GNSS_Almanac_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_Almanac_1, + 7, /* Elements count */ + &asn_SPC_GNSS_Almanac_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-Almanac.h b/asn.1/lpp_generated/GNSS-Almanac.h new file mode 100644 index 00000000..5b87ac73 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-Almanac.h @@ -0,0 +1,64 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_Almanac_H_ +#define _GNSS_Almanac_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include "GNSS-AlmanacList.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-Almanac */ +typedef struct GNSS_Almanac { + long *weekNumber; /* OPTIONAL */ + long *toa; /* OPTIONAL */ + long *ioda; /* OPTIONAL */ + BOOLEAN_t completeAlmanacProvided; + GNSS_AlmanacList_t gnss_AlmanacList; + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_Almanac__ext1 { + long *toa_ext_v1240; /* OPTIONAL */ + long *ioda_ext_v1240; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct GNSS_Almanac__ext2 { + long *weekNumber_ext_r16; /* OPTIONAL */ + long *toa_ext2_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_Almanac_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_Almanac; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_Almanac_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_Almanac_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_Almanac_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-AlmanacElement.c b/asn.1/lpp_generated/GNSS-AlmanacElement.c new file mode 100644 index 00000000..9ec1ffe3 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-AlmanacElement.c @@ -0,0 +1,196 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-AlmanacElement.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_AlmanacElement_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_AlmanacElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AlmanacElement, choice.keplerianAlmanacSet), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AlmanacKeplerianSet, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "keplerianAlmanacSet" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AlmanacElement, choice.keplerianNAV_Almanac), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AlmanacNAV_KeplerianSet, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "keplerianNAV-Almanac" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AlmanacElement, choice.keplerianReducedAlmanac), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AlmanacReducedKeplerianSet, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "keplerianReducedAlmanac" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AlmanacElement, choice.keplerianMidiAlmanac), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AlmanacMidiAlmanacSet, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "keplerianMidiAlmanac" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AlmanacElement, choice.keplerianGLONASS), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AlmanacGLONASS_AlmanacSet, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "keplerianGLONASS" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AlmanacElement, choice.ecef_SBAS_Almanac), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AlmanacECEF_SBAS_AlmanacSet, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ecef-SBAS-Almanac" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AlmanacElement, choice.keplerianBDS_Almanac_r12), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AlmanacBDS_AlmanacSet_r12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "keplerianBDS-Almanac-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AlmanacElement, choice.keplerianNavIC_Almanac_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AlmanacNavIC_AlmanacSet_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "keplerianNavIC-Almanac-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_AlmanacElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* keplerianAlmanacSet */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* keplerianNAV-Almanac */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* keplerianReducedAlmanac */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* keplerianMidiAlmanac */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* keplerianGLONASS */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ecef-SBAS-Almanac */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* keplerianBDS-Almanac-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* keplerianNavIC-Almanac-r16 */ +}; +asn_CHOICE_specifics_t asn_SPC_GNSS_AlmanacElement_specs_1 = { + sizeof(struct GNSS_AlmanacElement), + offsetof(struct GNSS_AlmanacElement, _asn_ctx), + offsetof(struct GNSS_AlmanacElement, present), + sizeof(((struct GNSS_AlmanacElement *)0)->present), + asn_MAP_GNSS_AlmanacElement_tag2el_1, + 8, /* Count of tags in the map */ + 0, 0, + 6 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_AlmanacElement = { + "GNSS-AlmanacElement", + "GNSS-AlmanacElement", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_AlmanacElement_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_GNSS_AlmanacElement_1, + 8, /* Elements count */ + &asn_SPC_GNSS_AlmanacElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-AlmanacElement.h b/asn.1/lpp_generated/GNSS-AlmanacElement.h similarity index 90% rename from asn.1/generated/GNSS-AlmanacElement.h rename to asn.1/lpp_generated/GNSS-AlmanacElement.h index dd41259a..d6dd2598 100644 --- a/asn.1/generated/GNSS-AlmanacElement.h +++ b/asn.1/lpp_generated/GNSS-AlmanacElement.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_AlmanacElement_H_ diff --git a/asn.1/lpp_generated/GNSS-AlmanacList.c b/asn.1/lpp_generated/GNSS-AlmanacList.c new file mode 100644 index 00000000..a6a80fc4 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-AlmanacList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-AlmanacList.h" + +#include "GNSS-AlmanacElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_AlmanacList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_AlmanacList_1[] = { + { ATF_POINTER, 0, 0, + -1 /* Ambiguous tag (CHOICE?) */, + 0, + &asn_DEF_GNSS_AlmanacElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_AlmanacList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_AlmanacList_specs_1 = { + sizeof(struct GNSS_AlmanacList), + offsetof(struct GNSS_AlmanacList, _asn_ctx), + 2, /* XER encoding is XMLValueList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_AlmanacList = { + "GNSS-AlmanacList", + "GNSS-AlmanacList", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_AlmanacList_tags_1, + sizeof(asn_DEF_GNSS_AlmanacList_tags_1) + /sizeof(asn_DEF_GNSS_AlmanacList_tags_1[0]), /* 1 */ + asn_DEF_GNSS_AlmanacList_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_AlmanacList_tags_1) + /sizeof(asn_DEF_GNSS_AlmanacList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_AlmanacList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_AlmanacList_1, + 1, /* Single element */ + &asn_SPC_GNSS_AlmanacList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-AlmanacList.h b/asn.1/lpp_generated/GNSS-AlmanacList.h similarity index 79% rename from asn.1/generated/GNSS-AlmanacList.h rename to asn.1/lpp_generated/GNSS-AlmanacList.h index b2dc0d28..21c354f6 100644 --- a/asn.1/generated/GNSS-AlmanacList.h +++ b/asn.1/lpp_generated/GNSS-AlmanacList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_AlmanacList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_AlmanacList_constr_1; } #endif -/* Referred external types */ -#include "GNSS-AlmanacElement.h" - #endif /* _GNSS_AlmanacList_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-AlmanacReq.c b/asn.1/lpp_generated/GNSS-AlmanacReq.c new file mode 100644 index 00000000..6cf3fadf --- /dev/null +++ b/asn.1/lpp_generated/GNSS-AlmanacReq.c @@ -0,0 +1,100 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-AlmanacReq.h" + +static int +memb_modelID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 8L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_modelID_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_AlmanacReq_1[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_AlmanacReq, modelID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_modelID_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_modelID_constraint_1 + }, + 0, 0, /* No default value */ + "modelID" + }, +}; +static const int asn_MAP_GNSS_AlmanacReq_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_GNSS_AlmanacReq_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_AlmanacReq_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* modelID */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_AlmanacReq_specs_1 = { + sizeof(struct GNSS_AlmanacReq), + offsetof(struct GNSS_AlmanacReq, _asn_ctx), + asn_MAP_GNSS_AlmanacReq_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_GNSS_AlmanacReq_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_AlmanacReq = { + "GNSS-AlmanacReq", + "GNSS-AlmanacReq", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_AlmanacReq_tags_1, + sizeof(asn_DEF_GNSS_AlmanacReq_tags_1) + /sizeof(asn_DEF_GNSS_AlmanacReq_tags_1[0]), /* 1 */ + asn_DEF_GNSS_AlmanacReq_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_AlmanacReq_tags_1) + /sizeof(asn_DEF_GNSS_AlmanacReq_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_AlmanacReq_1, + 1, /* Elements count */ + &asn_SPC_GNSS_AlmanacReq_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-AlmanacReq.h b/asn.1/lpp_generated/GNSS-AlmanacReq.h similarity index 75% rename from asn.1/generated/GNSS-AlmanacReq.h rename to asn.1/lpp_generated/GNSS-AlmanacReq.h index de72c88d..898cea91 100644 --- a/asn.1/generated/GNSS-AlmanacReq.h +++ b/asn.1/lpp_generated/GNSS-AlmanacReq.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_AlmanacReq_H_ @@ -21,7 +21,7 @@ extern "C" { /* GNSS-AlmanacReq */ typedef struct GNSS_AlmanacReq { - long *modelID /* OPTIONAL */; + long *modelID; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/GNSS-AlmanacSupport.c b/asn.1/lpp_generated/GNSS-AlmanacSupport.c new file mode 100644 index 00000000..3f996458 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-AlmanacSupport.c @@ -0,0 +1,106 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-AlmanacSupport.h" + +static int +memb_almanacModel_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_almanacModel_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_AlmanacSupport_1[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_AlmanacSupport, almanacModel), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_almanacModel_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_almanacModel_constraint_1 + }, + 0, 0, /* No default value */ + "almanacModel" + }, +}; +static const int asn_MAP_GNSS_AlmanacSupport_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_GNSS_AlmanacSupport_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_AlmanacSupport_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* almanacModel */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_AlmanacSupport_specs_1 = { + sizeof(struct GNSS_AlmanacSupport), + offsetof(struct GNSS_AlmanacSupport, _asn_ctx), + asn_MAP_GNSS_AlmanacSupport_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_GNSS_AlmanacSupport_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_AlmanacSupport = { + "GNSS-AlmanacSupport", + "GNSS-AlmanacSupport", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_AlmanacSupport_tags_1, + sizeof(asn_DEF_GNSS_AlmanacSupport_tags_1) + /sizeof(asn_DEF_GNSS_AlmanacSupport_tags_1[0]), /* 1 */ + asn_DEF_GNSS_AlmanacSupport_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_AlmanacSupport_tags_1) + /sizeof(asn_DEF_GNSS_AlmanacSupport_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_AlmanacSupport_1, + 1, /* Elements count */ + &asn_SPC_GNSS_AlmanacSupport_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-AlmanacSupport.h b/asn.1/lpp_generated/GNSS-AlmanacSupport.h similarity index 81% rename from asn.1/generated/GNSS-AlmanacSupport.h rename to asn.1/lpp_generated/GNSS-AlmanacSupport.h index 69a38044..24031a90 100644 --- a/asn.1/generated/GNSS-AlmanacSupport.h +++ b/asn.1/lpp_generated/GNSS-AlmanacSupport.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_AlmanacSupport_H_ @@ -32,7 +32,7 @@ typedef enum GNSS_AlmanacSupport__almanacModel { /* GNSS-AlmanacSupport */ typedef struct GNSS_AlmanacSupport { - BIT_STRING_t *almanacModel /* OPTIONAL */; + BIT_STRING_t *almanacModel; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/GNSS-AuxiliaryInformation.c b/asn.1/lpp_generated/GNSS-AuxiliaryInformation.c new file mode 100644 index 00000000..b0d1047e --- /dev/null +++ b/asn.1/lpp_generated/GNSS-AuxiliaryInformation.c @@ -0,0 +1,165 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-AuxiliaryInformation.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_AuxiliaryInformation_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AuxiliaryInformation__ext1, gnss_ID_BDS_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ID_BDS_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-ID-BDS-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-ID-BDS-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct GNSS_AuxiliaryInformation__ext1), + offsetof(struct GNSS_AuxiliaryInformation__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 1, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_AuxiliaryInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AuxiliaryInformation, choice.gnss_ID_GPS), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ID_GPS, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-ID-GPS" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_AuxiliaryInformation, choice.gnss_ID_GLONASS), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ID_GLONASS, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-ID-GLONASS" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_AuxiliaryInformation, choice.ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_AuxiliaryInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-ID-GPS */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-ID-GLONASS */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_CHOICE_specifics_t asn_SPC_GNSS_AuxiliaryInformation_specs_1 = { + sizeof(struct GNSS_AuxiliaryInformation), + offsetof(struct GNSS_AuxiliaryInformation, _asn_ctx), + offsetof(struct GNSS_AuxiliaryInformation, present), + sizeof(((struct GNSS_AuxiliaryInformation *)0)->present), + asn_MAP_GNSS_AuxiliaryInformation_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_AuxiliaryInformation = { + "GNSS-AuxiliaryInformation", + "GNSS-AuxiliaryInformation", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_AuxiliaryInformation_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_GNSS_AuxiliaryInformation_1, + 3, /* Elements count */ + &asn_SPC_GNSS_AuxiliaryInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-AuxiliaryInformation.h b/asn.1/lpp_generated/GNSS-AuxiliaryInformation.h similarity index 87% rename from asn.1/generated/GNSS-AuxiliaryInformation.h rename to asn.1/lpp_generated/GNSS-AuxiliaryInformation.h index 66d6edab..37525f5a 100644 --- a/asn.1/generated/GNSS-AuxiliaryInformation.h +++ b/asn.1/lpp_generated/GNSS-AuxiliaryInformation.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_AuxiliaryInformation_H_ diff --git a/asn.1/lpp_generated/GNSS-AuxiliaryInformationReq.c b/asn.1/lpp_generated/GNSS-AuxiliaryInformationReq.c new file mode 100644 index 00000000..279fca9f --- /dev/null +++ b/asn.1/lpp_generated/GNSS-AuxiliaryInformationReq.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-AuxiliaryInformationReq.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_AuxiliaryInformationReq_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_AuxiliaryInformationReq_specs_1 = { + sizeof(struct GNSS_AuxiliaryInformationReq), + offsetof(struct GNSS_AuxiliaryInformationReq, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_AuxiliaryInformationReq = { + "GNSS-AuxiliaryInformationReq", + "GNSS-AuxiliaryInformationReq", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_AuxiliaryInformationReq_tags_1, + sizeof(asn_DEF_GNSS_AuxiliaryInformationReq_tags_1) + /sizeof(asn_DEF_GNSS_AuxiliaryInformationReq_tags_1[0]), /* 1 */ + asn_DEF_GNSS_AuxiliaryInformationReq_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_AuxiliaryInformationReq_tags_1) + /sizeof(asn_DEF_GNSS_AuxiliaryInformationReq_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_AuxiliaryInformationReq_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-AuxiliaryInformationReq.h b/asn.1/lpp_generated/GNSS-AuxiliaryInformationReq.h similarity index 77% rename from asn.1/generated/GNSS-AuxiliaryInformationReq.h rename to asn.1/lpp_generated/GNSS-AuxiliaryInformationReq.h index 49d5711f..ad81f35f 100644 --- a/asn.1/generated/GNSS-AuxiliaryInformationReq.h +++ b/asn.1/lpp_generated/GNSS-AuxiliaryInformationReq.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_AuxiliaryInformationReq_H_ diff --git a/asn.1/lpp_generated/GNSS-AuxiliaryInformationSupport.c b/asn.1/lpp_generated/GNSS-AuxiliaryInformationSupport.c new file mode 100644 index 00000000..1dea70a7 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-AuxiliaryInformationSupport.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-AuxiliaryInformationSupport.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_AuxiliaryInformationSupport_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_AuxiliaryInformationSupport_specs_1 = { + sizeof(struct GNSS_AuxiliaryInformationSupport), + offsetof(struct GNSS_AuxiliaryInformationSupport, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_AuxiliaryInformationSupport = { + "GNSS-AuxiliaryInformationSupport", + "GNSS-AuxiliaryInformationSupport", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_AuxiliaryInformationSupport_tags_1, + sizeof(asn_DEF_GNSS_AuxiliaryInformationSupport_tags_1) + /sizeof(asn_DEF_GNSS_AuxiliaryInformationSupport_tags_1[0]), /* 1 */ + asn_DEF_GNSS_AuxiliaryInformationSupport_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_AuxiliaryInformationSupport_tags_1) + /sizeof(asn_DEF_GNSS_AuxiliaryInformationSupport_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_AuxiliaryInformationSupport_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-AuxiliaryInformationSupport.h b/asn.1/lpp_generated/GNSS-AuxiliaryInformationSupport.h similarity index 78% rename from asn.1/generated/GNSS-AuxiliaryInformationSupport.h rename to asn.1/lpp_generated/GNSS-AuxiliaryInformationSupport.h index 42789ec8..ad0b2dd1 100644 --- a/asn.1/generated/GNSS-AuxiliaryInformationSupport.h +++ b/asn.1/lpp_generated/GNSS-AuxiliaryInformationSupport.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_AuxiliaryInformationSupport_H_ diff --git a/asn.1/lpp_generated/GNSS-BadSignalList.c b/asn.1/lpp_generated/GNSS-BadSignalList.c new file mode 100644 index 00000000..afb9c01e --- /dev/null +++ b/asn.1/lpp_generated/GNSS-BadSignalList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-BadSignalList.h" + +#include "BadSignalElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_BadSignalList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_BadSignalList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_BadSignalElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_BadSignalList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_BadSignalList_specs_1 = { + sizeof(struct GNSS_BadSignalList), + offsetof(struct GNSS_BadSignalList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_BadSignalList = { + "GNSS-BadSignalList", + "GNSS-BadSignalList", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_BadSignalList_tags_1, + sizeof(asn_DEF_GNSS_BadSignalList_tags_1) + /sizeof(asn_DEF_GNSS_BadSignalList_tags_1[0]), /* 1 */ + asn_DEF_GNSS_BadSignalList_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_BadSignalList_tags_1) + /sizeof(asn_DEF_GNSS_BadSignalList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_BadSignalList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_BadSignalList_1, + 1, /* Single element */ + &asn_SPC_GNSS_BadSignalList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-BadSignalList.h b/asn.1/lpp_generated/GNSS-BadSignalList.h similarity index 79% rename from asn.1/generated/GNSS-BadSignalList.h rename to asn.1/lpp_generated/GNSS-BadSignalList.h index e75dc486..474ffaf7 100644 --- a/asn.1/generated/GNSS-BadSignalList.h +++ b/asn.1/lpp_generated/GNSS-BadSignalList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_BadSignalList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_BadSignalList_constr_1; } #endif -/* Referred external types */ -#include "BadSignalElement.h" - #endif /* _GNSS_BadSignalList_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-ClockModel.c b/asn.1/lpp_generated/GNSS-ClockModel.c new file mode 100644 index 00000000..10b94e03 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-ClockModel.c @@ -0,0 +1,196 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-ClockModel.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_ClockModel_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_ClockModel_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ClockModel, choice.standardClockModelList), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardClockModelList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "standardClockModelList" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ClockModel, choice.nav_ClockModel), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NAV_ClockModel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nav-ClockModel" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ClockModel, choice.cnav_ClockModel), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CNAV_ClockModel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cnav-ClockModel" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ClockModel, choice.glonass_ClockModel), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GLONASS_ClockModel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "glonass-ClockModel" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ClockModel, choice.sbas_ClockModel), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SBAS_ClockModel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sbas-ClockModel" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ClockModel, choice.bds_ClockModel_r12), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BDS_ClockModel_r12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bds-ClockModel-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ClockModel, choice.bds_ClockModel2_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BDS_ClockModel2_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bds-ClockModel2-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ClockModel, choice.navic_ClockModel_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NavIC_ClockModel_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "navic-ClockModel-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_ClockModel_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* standardClockModelList */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nav-ClockModel */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cnav-ClockModel */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* glonass-ClockModel */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* sbas-ClockModel */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* bds-ClockModel-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* bds-ClockModel2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* navic-ClockModel-r16 */ +}; +asn_CHOICE_specifics_t asn_SPC_GNSS_ClockModel_specs_1 = { + sizeof(struct GNSS_ClockModel), + offsetof(struct GNSS_ClockModel, _asn_ctx), + offsetof(struct GNSS_ClockModel, present), + sizeof(((struct GNSS_ClockModel *)0)->present), + asn_MAP_GNSS_ClockModel_tag2el_1, + 8, /* Count of tags in the map */ + 0, 0, + 5 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_ClockModel = { + "GNSS-ClockModel", + "GNSS-ClockModel", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_ClockModel_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_GNSS_ClockModel_1, + 8, /* Elements count */ + &asn_SPC_GNSS_ClockModel_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-ClockModel.h b/asn.1/lpp_generated/GNSS-ClockModel.h similarity index 89% rename from asn.1/generated/GNSS-ClockModel.h rename to asn.1/lpp_generated/GNSS-ClockModel.h index 63e6c47f..33576ee1 100644 --- a/asn.1/generated/GNSS-ClockModel.h +++ b/asn.1/lpp_generated/GNSS-ClockModel.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_ClockModel_H_ diff --git a/asn.1/lpp_generated/GNSS-CommonAssistData.c b/asn.1/lpp_generated/GNSS-CommonAssistData.c new file mode 100644 index 00000000..dffbccde --- /dev/null +++ b/asn.1/lpp_generated/GNSS-CommonAssistData.c @@ -0,0 +1,522 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-CommonAssistData.h" + +#include "GNSS-ReferenceTime.h" +#include "GNSS-ReferenceLocation.h" +#include "GNSS-IonosphericModel.h" +#include "GNSS-EarthOrientationParameters.h" +#include "GNSS-RTK-ReferenceStationInfo-r15.h" +#include "GNSS-RTK-CommonObservationInfo-r15.h" +#include "GNSS-RTK-AuxiliaryStationData-r15.h" +#include "GNSS-SSR-CorrectionPoints-r16.h" +#include "GNSS-Integrity-ServiceParameters-r17.h" +#include "GNSS-Integrity-ServiceAlert-r17.h" +#include "GNSS-LOS-NLOS-GridPoints-r18.h" +#include "GNSS-SSR-IOD-Update-r18.h" +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 3, offsetof(struct GNSS_CommonAssistData__ext1, gnss_RTK_ReferenceStationInfo_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_ReferenceStationInfo_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-ReferenceStationInfo-r15" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_CommonAssistData__ext1, gnss_RTK_CommonObservationInfo_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_CommonObservationInfo_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-CommonObservationInfo-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistData__ext1, gnss_RTK_AuxiliaryStationData_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_AuxiliaryStationData_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-AuxiliaryStationData-r15" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-RTK-ReferenceStationInfo-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-RTK-CommonObservationInfo-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gnss-RTK-AuxiliaryStationData-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct GNSS_CommonAssistData__ext1), + offsetof(struct GNSS_CommonAssistData__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 3, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 3, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_11[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistData__ext2, gnss_SSR_CorrectionPoints_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_CorrectionPoints_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-CorrectionPoints-r16" + }, +}; +static const int asn_MAP_ext2_oms_11[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-SSR-CorrectionPoints-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_11 = { + sizeof(struct GNSS_CommonAssistData__ext2), + offsetof(struct GNSS_CommonAssistData__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_11, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_11, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_11 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_11, + sizeof(asn_DEF_ext2_tags_11) + /sizeof(asn_DEF_ext2_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_11, /* Same as above */ + sizeof(asn_DEF_ext2_tags_11) + /sizeof(asn_DEF_ext2_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_11, + 1, /* Elements count */ + &asn_SPC_ext2_specs_11 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_13[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_CommonAssistData__ext3, gnss_Integrity_ServiceParameters_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_Integrity_ServiceParameters_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-Integrity-ServiceParameters-r17" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistData__ext3, gnss_Integrity_ServiceAlert_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_Integrity_ServiceAlert_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-Integrity-ServiceAlert-r17" + }, +}; +static const int asn_MAP_ext3_oms_13[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_13[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-Integrity-ServiceParameters-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-Integrity-ServiceAlert-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_13 = { + sizeof(struct GNSS_CommonAssistData__ext3), + offsetof(struct GNSS_CommonAssistData__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_13, + 2, /* Count of tags in the map */ + asn_MAP_ext3_oms_13, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_13 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_13, + sizeof(asn_DEF_ext3_tags_13) + /sizeof(asn_DEF_ext3_tags_13[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_13, /* Same as above */ + sizeof(asn_DEF_ext3_tags_13) + /sizeof(asn_DEF_ext3_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_13, + 2, /* Elements count */ + &asn_SPC_ext3_specs_13 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext4_16[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_CommonAssistData__ext4, gnss_los_nlos_GridPoints_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_LOS_NLOS_GridPoints_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-los-nlos-GridPoints-r18" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistData__ext4, gnss_SSR_IOD_Update_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_IOD_Update_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-IOD-Update-r18" + }, +}; +static const int asn_MAP_ext4_oms_16[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext4_tags_16[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext4_tag2el_16[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-los-nlos-GridPoints-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-SSR-IOD-Update-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext4_specs_16 = { + sizeof(struct GNSS_CommonAssistData__ext4), + offsetof(struct GNSS_CommonAssistData__ext4, _asn_ctx), + asn_MAP_ext4_tag2el_16, + 2, /* Count of tags in the map */ + asn_MAP_ext4_oms_16, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext4_16 = { + "ext4", + "ext4", + &asn_OP_SEQUENCE, + asn_DEF_ext4_tags_16, + sizeof(asn_DEF_ext4_tags_16) + /sizeof(asn_DEF_ext4_tags_16[0]) - 1, /* 1 */ + asn_DEF_ext4_tags_16, /* Same as above */ + sizeof(asn_DEF_ext4_tags_16) + /sizeof(asn_DEF_ext4_tags_16[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext4_16, + 2, /* Elements count */ + &asn_SPC_ext4_specs_16 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_CommonAssistData_1[] = { + { ATF_POINTER, 8, offsetof(struct GNSS_CommonAssistData, gnss_ReferenceTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-ReferenceTime" + }, + { ATF_POINTER, 7, offsetof(struct GNSS_CommonAssistData, gnss_ReferenceLocation), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceLocation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-ReferenceLocation" + }, + { ATF_POINTER, 6, offsetof(struct GNSS_CommonAssistData, gnss_IonosphericModel), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_IonosphericModel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-IonosphericModel" + }, + { ATF_POINTER, 5, offsetof(struct GNSS_CommonAssistData, gnss_EarthOrientationParameters), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_EarthOrientationParameters, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-EarthOrientationParameters" + }, + { ATF_POINTER, 4, offsetof(struct GNSS_CommonAssistData, ext1), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_CommonAssistData, ext2), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext2_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_CommonAssistData, ext3), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext3_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistData, ext4), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_ext4_16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext4" + }, +}; +static const int asn_MAP_GNSS_CommonAssistData_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7 }; +static const ber_tlv_tag_t asn_DEF_GNSS_CommonAssistData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_CommonAssistData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-ReferenceTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-ReferenceLocation */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-IonosphericModel */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-EarthOrientationParameters */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ext3 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* ext4 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_CommonAssistData_specs_1 = { + sizeof(struct GNSS_CommonAssistData), + offsetof(struct GNSS_CommonAssistData, _asn_ctx), + asn_MAP_GNSS_CommonAssistData_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_GNSS_CommonAssistData_oms_1, /* Optional members */ + 4, 4, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_CommonAssistData = { + "GNSS-CommonAssistData", + "GNSS-CommonAssistData", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_CommonAssistData_tags_1, + sizeof(asn_DEF_GNSS_CommonAssistData_tags_1) + /sizeof(asn_DEF_GNSS_CommonAssistData_tags_1[0]), /* 1 */ + asn_DEF_GNSS_CommonAssistData_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_CommonAssistData_tags_1) + /sizeof(asn_DEF_GNSS_CommonAssistData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_CommonAssistData_1, + 8, /* Elements count */ + &asn_SPC_GNSS_CommonAssistData_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-CommonAssistData.h b/asn.1/lpp_generated/GNSS-CommonAssistData.h new file mode 100644 index 00000000..6652dc81 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-CommonAssistData.h @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_CommonAssistData_H_ +#define _GNSS_CommonAssistData_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GNSS_ReferenceTime; +struct GNSS_ReferenceLocation; +struct GNSS_IonosphericModel; +struct GNSS_EarthOrientationParameters; +struct GNSS_RTK_ReferenceStationInfo_r15; +struct GNSS_RTK_CommonObservationInfo_r15; +struct GNSS_RTK_AuxiliaryStationData_r15; +struct GNSS_SSR_CorrectionPoints_r16; +struct GNSS_Integrity_ServiceParameters_r17; +struct GNSS_Integrity_ServiceAlert_r17; +struct GNSS_LOS_NLOS_GridPoints_r18; +struct GNSS_SSR_IOD_Update_r18; + +/* GNSS-CommonAssistData */ +typedef struct GNSS_CommonAssistData { + struct GNSS_ReferenceTime *gnss_ReferenceTime; /* OPTIONAL */ + struct GNSS_ReferenceLocation *gnss_ReferenceLocation; /* OPTIONAL */ + struct GNSS_IonosphericModel *gnss_IonosphericModel; /* OPTIONAL */ + struct GNSS_EarthOrientationParameters *gnss_EarthOrientationParameters; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_CommonAssistData__ext1 { + struct GNSS_RTK_ReferenceStationInfo_r15 *gnss_RTK_ReferenceStationInfo_r15; /* OPTIONAL */ + struct GNSS_RTK_CommonObservationInfo_r15 *gnss_RTK_CommonObservationInfo_r15; /* OPTIONAL */ + struct GNSS_RTK_AuxiliaryStationData_r15 *gnss_RTK_AuxiliaryStationData_r15; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct GNSS_CommonAssistData__ext2 { + struct GNSS_SSR_CorrectionPoints_r16 *gnss_SSR_CorrectionPoints_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct GNSS_CommonAssistData__ext3 { + struct GNSS_Integrity_ServiceParameters_r17 *gnss_Integrity_ServiceParameters_r17; /* OPTIONAL */ + struct GNSS_Integrity_ServiceAlert_r17 *gnss_Integrity_ServiceAlert_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + struct GNSS_CommonAssistData__ext4 { + struct GNSS_LOS_NLOS_GridPoints_r18 *gnss_los_nlos_GridPoints_r18; /* OPTIONAL */ + struct GNSS_SSR_IOD_Update_r18 *gnss_SSR_IOD_Update_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext4; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_CommonAssistData_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_CommonAssistData; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_CommonAssistData_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_CommonAssistData_1[8]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_CommonAssistData_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-CommonAssistDataReq.c b/asn.1/lpp_generated/GNSS-CommonAssistDataReq.c new file mode 100644 index 00000000..ff3abc35 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-CommonAssistDataReq.c @@ -0,0 +1,484 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-CommonAssistDataReq.h" + +#include "GNSS-ReferenceTimeReq.h" +#include "GNSS-ReferenceLocationReq.h" +#include "GNSS-IonosphericModelReq.h" +#include "GNSS-EarthOrientationParametersReq.h" +#include "GNSS-RTK-ReferenceStationInfoReq-r15.h" +#include "GNSS-RTK-AuxiliaryStationDataReq-r15.h" +#include "GNSS-SSR-CorrectionPointsReq-r16.h" +#include "GNSS-Integrity-ServiceParametersReq-r17.h" +#include "GNSS-Integrity-ServiceAlertReq-r17.h" +#include "GNSS-SSR-IOD-UpdateReq-r18.h" +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_CommonAssistDataReq__ext1, gnss_RTK_ReferenceStationInfoReq_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_ReferenceStationInfoReq_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-ReferenceStationInfoReq-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistDataReq__ext1, gnss_RTK_AuxiliaryStationDataReq_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_AuxiliaryStationDataReq_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-AuxiliaryStationDataReq-r15" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-RTK-ReferenceStationInfoReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-RTK-AuxiliaryStationDataReq-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct GNSS_CommonAssistDataReq__ext1), + offsetof(struct GNSS_CommonAssistDataReq__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 2, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_10[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistDataReq__ext2, gnss_SSR_CorrectionPointsReq_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_CorrectionPointsReq_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-CorrectionPointsReq-r16" + }, +}; +static const int asn_MAP_ext2_oms_10[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_10[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-SSR-CorrectionPointsReq-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_10 = { + sizeof(struct GNSS_CommonAssistDataReq__ext2), + offsetof(struct GNSS_CommonAssistDataReq__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_10, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_10, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_10 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_10, + sizeof(asn_DEF_ext2_tags_10) + /sizeof(asn_DEF_ext2_tags_10[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_10, /* Same as above */ + sizeof(asn_DEF_ext2_tags_10) + /sizeof(asn_DEF_ext2_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_10, + 1, /* Elements count */ + &asn_SPC_ext2_specs_10 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_12[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_CommonAssistDataReq__ext3, gnss_Integrity_ServiceParametersReq_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_Integrity_ServiceParametersReq_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-Integrity-ServiceParametersReq-r17" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistDataReq__ext3, gnss_Integrity_ServiceAlertReq_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_Integrity_ServiceAlertReq_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-Integrity-ServiceAlertReq-r17" + }, +}; +static const int asn_MAP_ext3_oms_12[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_12[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-Integrity-ServiceParametersReq-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-Integrity-ServiceAlertReq-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_12 = { + sizeof(struct GNSS_CommonAssistDataReq__ext3), + offsetof(struct GNSS_CommonAssistDataReq__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_12, + 2, /* Count of tags in the map */ + asn_MAP_ext3_oms_12, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_12 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_12, + sizeof(asn_DEF_ext3_tags_12) + /sizeof(asn_DEF_ext3_tags_12[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_12, /* Same as above */ + sizeof(asn_DEF_ext3_tags_12) + /sizeof(asn_DEF_ext3_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_12, + 2, /* Elements count */ + &asn_SPC_ext3_specs_12 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext4_15[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistDataReq__ext4, gnss_SSR_IOD_UpdateReq_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_IOD_UpdateReq_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-IOD-UpdateReq-r18" + }, +}; +static const int asn_MAP_ext4_oms_15[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext4_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext4_tag2el_15[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-SSR-IOD-UpdateReq-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext4_specs_15 = { + sizeof(struct GNSS_CommonAssistDataReq__ext4), + offsetof(struct GNSS_CommonAssistDataReq__ext4, _asn_ctx), + asn_MAP_ext4_tag2el_15, + 1, /* Count of tags in the map */ + asn_MAP_ext4_oms_15, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext4_15 = { + "ext4", + "ext4", + &asn_OP_SEQUENCE, + asn_DEF_ext4_tags_15, + sizeof(asn_DEF_ext4_tags_15) + /sizeof(asn_DEF_ext4_tags_15[0]) - 1, /* 1 */ + asn_DEF_ext4_tags_15, /* Same as above */ + sizeof(asn_DEF_ext4_tags_15) + /sizeof(asn_DEF_ext4_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext4_15, + 1, /* Elements count */ + &asn_SPC_ext4_specs_15 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_CommonAssistDataReq_1[] = { + { ATF_POINTER, 8, offsetof(struct GNSS_CommonAssistDataReq, gnss_ReferenceTimeReq), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceTimeReq, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-ReferenceTimeReq" + }, + { ATF_POINTER, 7, offsetof(struct GNSS_CommonAssistDataReq, gnss_ReferenceLocationReq), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceLocationReq, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-ReferenceLocationReq" + }, + { ATF_POINTER, 6, offsetof(struct GNSS_CommonAssistDataReq, gnss_IonosphericModelReq), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_IonosphericModelReq, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-IonosphericModelReq" + }, + { ATF_POINTER, 5, offsetof(struct GNSS_CommonAssistDataReq, gnss_EarthOrientationParametersReq), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_EarthOrientationParametersReq, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-EarthOrientationParametersReq" + }, + { ATF_POINTER, 4, offsetof(struct GNSS_CommonAssistDataReq, ext1), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_CommonAssistDataReq, ext2), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext2_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_CommonAssistDataReq, ext3), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext3_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistDataReq, ext4), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_ext4_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext4" + }, +}; +static const int asn_MAP_GNSS_CommonAssistDataReq_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7 }; +static const ber_tlv_tag_t asn_DEF_GNSS_CommonAssistDataReq_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_CommonAssistDataReq_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-ReferenceTimeReq */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-ReferenceLocationReq */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-IonosphericModelReq */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-EarthOrientationParametersReq */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ext3 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* ext4 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_CommonAssistDataReq_specs_1 = { + sizeof(struct GNSS_CommonAssistDataReq), + offsetof(struct GNSS_CommonAssistDataReq, _asn_ctx), + asn_MAP_GNSS_CommonAssistDataReq_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_GNSS_CommonAssistDataReq_oms_1, /* Optional members */ + 4, 4, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_CommonAssistDataReq = { + "GNSS-CommonAssistDataReq", + "GNSS-CommonAssistDataReq", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_CommonAssistDataReq_tags_1, + sizeof(asn_DEF_GNSS_CommonAssistDataReq_tags_1) + /sizeof(asn_DEF_GNSS_CommonAssistDataReq_tags_1[0]), /* 1 */ + asn_DEF_GNSS_CommonAssistDataReq_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_CommonAssistDataReq_tags_1) + /sizeof(asn_DEF_GNSS_CommonAssistDataReq_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_CommonAssistDataReq_1, + 8, /* Elements count */ + &asn_SPC_GNSS_CommonAssistDataReq_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-CommonAssistDataReq.h b/asn.1/lpp_generated/GNSS-CommonAssistDataReq.h new file mode 100644 index 00000000..ba12de20 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-CommonAssistDataReq.h @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_CommonAssistDataReq_H_ +#define _GNSS_CommonAssistDataReq_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GNSS_ReferenceTimeReq; +struct GNSS_ReferenceLocationReq; +struct GNSS_IonosphericModelReq; +struct GNSS_EarthOrientationParametersReq; +struct GNSS_RTK_ReferenceStationInfoReq_r15; +struct GNSS_RTK_AuxiliaryStationDataReq_r15; +struct GNSS_SSR_CorrectionPointsReq_r16; +struct GNSS_Integrity_ServiceParametersReq_r17; +struct GNSS_Integrity_ServiceAlertReq_r17; +struct GNSS_SSR_IOD_UpdateReq_r18; + +/* GNSS-CommonAssistDataReq */ +typedef struct GNSS_CommonAssistDataReq { + struct GNSS_ReferenceTimeReq *gnss_ReferenceTimeReq; /* OPTIONAL */ + struct GNSS_ReferenceLocationReq *gnss_ReferenceLocationReq; /* OPTIONAL */ + struct GNSS_IonosphericModelReq *gnss_IonosphericModelReq; /* OPTIONAL */ + struct GNSS_EarthOrientationParametersReq *gnss_EarthOrientationParametersReq; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_CommonAssistDataReq__ext1 { + struct GNSS_RTK_ReferenceStationInfoReq_r15 *gnss_RTK_ReferenceStationInfoReq_r15; /* OPTIONAL */ + struct GNSS_RTK_AuxiliaryStationDataReq_r15 *gnss_RTK_AuxiliaryStationDataReq_r15; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct GNSS_CommonAssistDataReq__ext2 { + struct GNSS_SSR_CorrectionPointsReq_r16 *gnss_SSR_CorrectionPointsReq_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct GNSS_CommonAssistDataReq__ext3 { + struct GNSS_Integrity_ServiceParametersReq_r17 *gnss_Integrity_ServiceParametersReq_r17; /* OPTIONAL */ + struct GNSS_Integrity_ServiceAlertReq_r17 *gnss_Integrity_ServiceAlertReq_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + struct GNSS_CommonAssistDataReq__ext4 { + struct GNSS_SSR_IOD_UpdateReq_r18 *gnss_SSR_IOD_UpdateReq_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext4; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_CommonAssistDataReq_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_CommonAssistDataReq; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_CommonAssistDataReq_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_CommonAssistDataReq_1[8]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_CommonAssistDataReq_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-CommonAssistanceDataSupport.c b/asn.1/lpp_generated/GNSS-CommonAssistanceDataSupport.c new file mode 100644 index 00000000..461706a6 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-CommonAssistanceDataSupport.c @@ -0,0 +1,404 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-CommonAssistanceDataSupport.h" + +#include "GNSS-ReferenceTimeSupport.h" +#include "GNSS-ReferenceLocationSupport.h" +#include "GNSS-IonosphericModelSupport.h" +#include "GNSS-EarthOrientationParametersSupport.h" +#include "GNSS-RTK-ReferenceStationInfoSupport-r15.h" +#include "GNSS-RTK-AuxiliaryStationDataSupport-r15.h" +#include "GNSS-Integrity-ServiceParametersSupport-r17.h" +#include "GNSS-Integrity-ServiceAlertSupport-r17.h" +#include "GNSS-SSR-IOD-UpdateSupport-r18.h" +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_CommonAssistanceDataSupport__ext1, gnss_RTK_ReferenceStationInfoSupport_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_ReferenceStationInfoSupport_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-ReferenceStationInfoSupport-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistanceDataSupport__ext1, gnss_RTK_AuxiliaryStationDataSupport_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_AuxiliaryStationDataSupport_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-AuxiliaryStationDataSupport-r15" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-RTK-ReferenceStationInfoSupport-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-RTK-AuxiliaryStationDataSupport-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct GNSS_CommonAssistanceDataSupport__ext1), + offsetof(struct GNSS_CommonAssistanceDataSupport__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 2, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_10[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_CommonAssistanceDataSupport__ext2, gnss_Integrity_ServiceParametersSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_Integrity_ServiceParametersSupport_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-Integrity-ServiceParametersSupport-r17" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistanceDataSupport__ext2, gnss_Integrity_ServiceAlertSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_Integrity_ServiceAlertSupport_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-Integrity-ServiceAlertSupport-r17" + }, +}; +static const int asn_MAP_ext2_oms_10[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_10[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-Integrity-ServiceParametersSupport-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-Integrity-ServiceAlertSupport-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_10 = { + sizeof(struct GNSS_CommonAssistanceDataSupport__ext2), + offsetof(struct GNSS_CommonAssistanceDataSupport__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_10, + 2, /* Count of tags in the map */ + asn_MAP_ext2_oms_10, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_10 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_10, + sizeof(asn_DEF_ext2_tags_10) + /sizeof(asn_DEF_ext2_tags_10[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_10, /* Same as above */ + sizeof(asn_DEF_ext2_tags_10) + /sizeof(asn_DEF_ext2_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_10, + 2, /* Elements count */ + &asn_SPC_ext2_specs_10 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_13[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistanceDataSupport__ext3, gnss_SSR_IOD_UpdateSupport_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_IOD_UpdateSupport_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-IOD-UpdateSupport-r18" + }, +}; +static const int asn_MAP_ext3_oms_13[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_13[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-SSR-IOD-UpdateSupport-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_13 = { + sizeof(struct GNSS_CommonAssistanceDataSupport__ext3), + offsetof(struct GNSS_CommonAssistanceDataSupport__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_13, + 1, /* Count of tags in the map */ + asn_MAP_ext3_oms_13, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_13 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_13, + sizeof(asn_DEF_ext3_tags_13) + /sizeof(asn_DEF_ext3_tags_13[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_13, /* Same as above */ + sizeof(asn_DEF_ext3_tags_13) + /sizeof(asn_DEF_ext3_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_13, + 1, /* Elements count */ + &asn_SPC_ext3_specs_13 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_CommonAssistanceDataSupport_1[] = { + { ATF_POINTER, 7, offsetof(struct GNSS_CommonAssistanceDataSupport, gnss_ReferenceTimeSupport), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceTimeSupport, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-ReferenceTimeSupport" + }, + { ATF_POINTER, 6, offsetof(struct GNSS_CommonAssistanceDataSupport, gnss_ReferenceLocationSupport), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceLocationSupport, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-ReferenceLocationSupport" + }, + { ATF_POINTER, 5, offsetof(struct GNSS_CommonAssistanceDataSupport, gnss_IonosphericModelSupport), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_IonosphericModelSupport, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-IonosphericModelSupport" + }, + { ATF_POINTER, 4, offsetof(struct GNSS_CommonAssistanceDataSupport, gnss_EarthOrientationParametersSupport), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_EarthOrientationParametersSupport, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-EarthOrientationParametersSupport" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_CommonAssistanceDataSupport, ext1), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_CommonAssistanceDataSupport, ext2), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext2_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_CommonAssistanceDataSupport, ext3), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext3_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, +}; +static const int asn_MAP_GNSS_CommonAssistanceDataSupport_oms_1[] = { 0, 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_GNSS_CommonAssistanceDataSupport_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_CommonAssistanceDataSupport_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-ReferenceTimeSupport */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-ReferenceLocationSupport */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-IonosphericModelSupport */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-EarthOrientationParametersSupport */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext3 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_CommonAssistanceDataSupport_specs_1 = { + sizeof(struct GNSS_CommonAssistanceDataSupport), + offsetof(struct GNSS_CommonAssistanceDataSupport, _asn_ctx), + asn_MAP_GNSS_CommonAssistanceDataSupport_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_GNSS_CommonAssistanceDataSupport_oms_1, /* Optional members */ + 4, 3, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_CommonAssistanceDataSupport = { + "GNSS-CommonAssistanceDataSupport", + "GNSS-CommonAssistanceDataSupport", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_CommonAssistanceDataSupport_tags_1, + sizeof(asn_DEF_GNSS_CommonAssistanceDataSupport_tags_1) + /sizeof(asn_DEF_GNSS_CommonAssistanceDataSupport_tags_1[0]), /* 1 */ + asn_DEF_GNSS_CommonAssistanceDataSupport_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_CommonAssistanceDataSupport_tags_1) + /sizeof(asn_DEF_GNSS_CommonAssistanceDataSupport_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_CommonAssistanceDataSupport_1, + 7, /* Elements count */ + &asn_SPC_GNSS_CommonAssistanceDataSupport_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-CommonAssistanceDataSupport.h b/asn.1/lpp_generated/GNSS-CommonAssistanceDataSupport.h new file mode 100644 index 00000000..09fa3c5f --- /dev/null +++ b/asn.1/lpp_generated/GNSS-CommonAssistanceDataSupport.h @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_CommonAssistanceDataSupport_H_ +#define _GNSS_CommonAssistanceDataSupport_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GNSS_ReferenceTimeSupport; +struct GNSS_ReferenceLocationSupport; +struct GNSS_IonosphericModelSupport; +struct GNSS_EarthOrientationParametersSupport; +struct GNSS_RTK_ReferenceStationInfoSupport_r15; +struct GNSS_RTK_AuxiliaryStationDataSupport_r15; +struct GNSS_Integrity_ServiceParametersSupport_r17; +struct GNSS_Integrity_ServiceAlertSupport_r17; +struct GNSS_SSR_IOD_UpdateSupport_r18; + +/* GNSS-CommonAssistanceDataSupport */ +typedef struct GNSS_CommonAssistanceDataSupport { + struct GNSS_ReferenceTimeSupport *gnss_ReferenceTimeSupport; /* OPTIONAL */ + struct GNSS_ReferenceLocationSupport *gnss_ReferenceLocationSupport; /* OPTIONAL */ + struct GNSS_IonosphericModelSupport *gnss_IonosphericModelSupport; /* OPTIONAL */ + struct GNSS_EarthOrientationParametersSupport *gnss_EarthOrientationParametersSupport; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_CommonAssistanceDataSupport__ext1 { + struct GNSS_RTK_ReferenceStationInfoSupport_r15 *gnss_RTK_ReferenceStationInfoSupport_r15; /* OPTIONAL */ + struct GNSS_RTK_AuxiliaryStationDataSupport_r15 *gnss_RTK_AuxiliaryStationDataSupport_r15; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct GNSS_CommonAssistanceDataSupport__ext2 { + struct GNSS_Integrity_ServiceParametersSupport_r17 *gnss_Integrity_ServiceParametersSupport_r17; /* OPTIONAL */ + struct GNSS_Integrity_ServiceAlertSupport_r17 *gnss_Integrity_ServiceAlertSupport_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct GNSS_CommonAssistanceDataSupport__ext3 { + struct GNSS_SSR_IOD_UpdateSupport_r18 *gnss_SSR_IOD_UpdateSupport_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_CommonAssistanceDataSupport_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_CommonAssistanceDataSupport; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_CommonAssistanceDataSupport_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_CommonAssistanceDataSupport_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_CommonAssistanceDataSupport_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-DataBitAssistance.c b/asn.1/lpp_generated/GNSS-DataBitAssistance.c new file mode 100644 index 00000000..86cfaae0 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-DataBitAssistance.c @@ -0,0 +1,168 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-DataBitAssistance.h" + +static int +memb_gnss_TOD_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3599L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gnss_TODfrac_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_TOD_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_TODfrac_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_DataBitAssistance_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitAssistance, gnss_TOD), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_TOD_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_TOD_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-TOD" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_DataBitAssistance, gnss_TODfrac), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_TODfrac_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_TODfrac_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-TODfrac" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitAssistance, gnss_DataBitsSatList), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_DataBitsSatList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-DataBitsSatList" + }, +}; +static const int asn_MAP_GNSS_DataBitAssistance_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_GNSS_DataBitAssistance_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_DataBitAssistance_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-TOD */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-TODfrac */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gnss-DataBitsSatList */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_DataBitAssistance_specs_1 = { + sizeof(struct GNSS_DataBitAssistance), + offsetof(struct GNSS_DataBitAssistance, _asn_ctx), + asn_MAP_GNSS_DataBitAssistance_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_GNSS_DataBitAssistance_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_DataBitAssistance = { + "GNSS-DataBitAssistance", + "GNSS-DataBitAssistance", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_DataBitAssistance_tags_1, + sizeof(asn_DEF_GNSS_DataBitAssistance_tags_1) + /sizeof(asn_DEF_GNSS_DataBitAssistance_tags_1[0]), /* 1 */ + asn_DEF_GNSS_DataBitAssistance_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_DataBitAssistance_tags_1) + /sizeof(asn_DEF_GNSS_DataBitAssistance_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_DataBitAssistance_1, + 3, /* Elements count */ + &asn_SPC_GNSS_DataBitAssistance_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-DataBitAssistance.h b/asn.1/lpp_generated/GNSS-DataBitAssistance.h similarity index 77% rename from asn.1/generated/GNSS-DataBitAssistance.h rename to asn.1/lpp_generated/GNSS-DataBitAssistance.h index afc069f6..83832a05 100644 --- a/asn.1/generated/GNSS-DataBitAssistance.h +++ b/asn.1/lpp_generated/GNSS-DataBitAssistance.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_DataBitAssistance_H_ @@ -23,7 +23,7 @@ extern "C" { /* GNSS-DataBitAssistance */ typedef struct GNSS_DataBitAssistance { long gnss_TOD; - long *gnss_TODfrac /* OPTIONAL */; + long *gnss_TODfrac; /* OPTIONAL */ GNSS_DataBitsSatList_t gnss_DataBitsSatList; /* * This type is extensible, diff --git a/asn.1/lpp_generated/GNSS-DataBitAssistanceReq.c b/asn.1/lpp_generated/GNSS-DataBitAssistanceReq.c new file mode 100644 index 00000000..c53232b4 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-DataBitAssistanceReq.c @@ -0,0 +1,237 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-DataBitAssistanceReq.h" + +#include "GNSS-DataBitsReqSatList.h" +static int +memb_gnss_TOD_Req_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3599L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gnss_TOD_FracReq_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dataBitInterval_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_TOD_Req_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_TOD_FracReq_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dataBitInterval_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_DataBitAssistanceReq_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitAssistanceReq, gnss_TOD_Req), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_TOD_Req_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_TOD_Req_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-TOD-Req" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_DataBitAssistanceReq, gnss_TOD_FracReq), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_TOD_FracReq_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_TOD_FracReq_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-TOD-FracReq" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitAssistanceReq, dataBitInterval), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dataBitInterval_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dataBitInterval_constraint_1 + }, + 0, 0, /* No default value */ + "dataBitInterval" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitAssistanceReq, gnss_SignalType), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalIDs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SignalType" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_DataBitAssistanceReq, gnss_DataBitsReq), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_DataBitsReqSatList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-DataBitsReq" + }, +}; +static const int asn_MAP_GNSS_DataBitAssistanceReq_oms_1[] = { 1, 4 }; +static const ber_tlv_tag_t asn_DEF_GNSS_DataBitAssistanceReq_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_DataBitAssistanceReq_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-TOD-Req */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-TOD-FracReq */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dataBitInterval */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-SignalType */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* gnss-DataBitsReq */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_DataBitAssistanceReq_specs_1 = { + sizeof(struct GNSS_DataBitAssistanceReq), + offsetof(struct GNSS_DataBitAssistanceReq, _asn_ctx), + asn_MAP_GNSS_DataBitAssistanceReq_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_GNSS_DataBitAssistanceReq_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_DataBitAssistanceReq = { + "GNSS-DataBitAssistanceReq", + "GNSS-DataBitAssistanceReq", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_DataBitAssistanceReq_tags_1, + sizeof(asn_DEF_GNSS_DataBitAssistanceReq_tags_1) + /sizeof(asn_DEF_GNSS_DataBitAssistanceReq_tags_1[0]), /* 1 */ + asn_DEF_GNSS_DataBitAssistanceReq_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_DataBitAssistanceReq_tags_1) + /sizeof(asn_DEF_GNSS_DataBitAssistanceReq_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_DataBitAssistanceReq_1, + 5, /* Elements count */ + &asn_SPC_GNSS_DataBitAssistanceReq_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-DataBitAssistanceReq.h b/asn.1/lpp_generated/GNSS-DataBitAssistanceReq.h similarity index 75% rename from asn.1/generated/GNSS-DataBitAssistanceReq.h rename to asn.1/lpp_generated/GNSS-DataBitAssistanceReq.h index 81e543dd..a63145a7 100644 --- a/asn.1/generated/GNSS-DataBitAssistanceReq.h +++ b/asn.1/lpp_generated/GNSS-DataBitAssistanceReq.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_DataBitAssistanceReq_H_ @@ -26,10 +26,10 @@ struct GNSS_DataBitsReqSatList; /* GNSS-DataBitAssistanceReq */ typedef struct GNSS_DataBitAssistanceReq { long gnss_TOD_Req; - long *gnss_TOD_FracReq /* OPTIONAL */; + long *gnss_TOD_FracReq; /* OPTIONAL */ long dataBitInterval; GNSS_SignalIDs_t gnss_SignalType; - struct GNSS_DataBitsReqSatList *gnss_DataBitsReq /* OPTIONAL */; + struct GNSS_DataBitsReqSatList *gnss_DataBitsReq; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -48,8 +48,5 @@ extern asn_TYPE_member_t asn_MBR_GNSS_DataBitAssistanceReq_1[5]; } #endif -/* Referred external types */ -#include "GNSS-DataBitsReqSatList.h" - #endif /* _GNSS_DataBitAssistanceReq_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-DataBitAssistanceSupport.c b/asn.1/lpp_generated/GNSS-DataBitAssistanceSupport.c new file mode 100644 index 00000000..0c19412e --- /dev/null +++ b/asn.1/lpp_generated/GNSS-DataBitAssistanceSupport.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-DataBitAssistanceSupport.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_DataBitAssistanceSupport_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_DataBitAssistanceSupport_specs_1 = { + sizeof(struct GNSS_DataBitAssistanceSupport), + offsetof(struct GNSS_DataBitAssistanceSupport, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_DataBitAssistanceSupport = { + "GNSS-DataBitAssistanceSupport", + "GNSS-DataBitAssistanceSupport", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_DataBitAssistanceSupport_tags_1, + sizeof(asn_DEF_GNSS_DataBitAssistanceSupport_tags_1) + /sizeof(asn_DEF_GNSS_DataBitAssistanceSupport_tags_1[0]), /* 1 */ + asn_DEF_GNSS_DataBitAssistanceSupport_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_DataBitAssistanceSupport_tags_1) + /sizeof(asn_DEF_GNSS_DataBitAssistanceSupport_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_DataBitAssistanceSupport_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-DataBitAssistanceSupport.h b/asn.1/lpp_generated/GNSS-DataBitAssistanceSupport.h similarity index 77% rename from asn.1/generated/GNSS-DataBitAssistanceSupport.h rename to asn.1/lpp_generated/GNSS-DataBitAssistanceSupport.h index 84e51b2e..33425196 100644 --- a/asn.1/generated/GNSS-DataBitAssistanceSupport.h +++ b/asn.1/lpp_generated/GNSS-DataBitAssistanceSupport.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_DataBitAssistanceSupport_H_ diff --git a/asn.1/lpp_generated/GNSS-DataBitsReqSatElement.c b/asn.1/lpp_generated/GNSS-DataBitsReqSatElement.c new file mode 100644 index 00000000..c0e8dd1e --- /dev/null +++ b/asn.1/lpp_generated/GNSS-DataBitsReqSatElement.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-DataBitsReqSatElement.h" + +asn_TYPE_member_t asn_MBR_GNSS_DataBitsReqSatElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitsReqSatElement, svID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_DataBitsReqSatElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_DataBitsReqSatElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* svID */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_DataBitsReqSatElement_specs_1 = { + sizeof(struct GNSS_DataBitsReqSatElement), + offsetof(struct GNSS_DataBitsReqSatElement, _asn_ctx), + asn_MAP_GNSS_DataBitsReqSatElement_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_DataBitsReqSatElement = { + "GNSS-DataBitsReqSatElement", + "GNSS-DataBitsReqSatElement", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_DataBitsReqSatElement_tags_1, + sizeof(asn_DEF_GNSS_DataBitsReqSatElement_tags_1) + /sizeof(asn_DEF_GNSS_DataBitsReqSatElement_tags_1[0]), /* 1 */ + asn_DEF_GNSS_DataBitsReqSatElement_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_DataBitsReqSatElement_tags_1) + /sizeof(asn_DEF_GNSS_DataBitsReqSatElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_DataBitsReqSatElement_1, + 1, /* Elements count */ + &asn_SPC_GNSS_DataBitsReqSatElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-DataBitsReqSatElement.h b/asn.1/lpp_generated/GNSS-DataBitsReqSatElement.h similarity index 79% rename from asn.1/generated/GNSS-DataBitsReqSatElement.h rename to asn.1/lpp_generated/GNSS-DataBitsReqSatElement.h index 59bdc0a9..12224f4a 100644 --- a/asn.1/generated/GNSS-DataBitsReqSatElement.h +++ b/asn.1/lpp_generated/GNSS-DataBitsReqSatElement.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_DataBitsReqSatElement_H_ diff --git a/asn.1/lpp_generated/GNSS-DataBitsReqSatList.c b/asn.1/lpp_generated/GNSS-DataBitsReqSatList.c new file mode 100644 index 00000000..adfefbe1 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-DataBitsReqSatList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-DataBitsReqSatList.h" + +#include "GNSS-DataBitsReqSatElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_DataBitsReqSatList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_DataBitsReqSatList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_DataBitsReqSatElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_DataBitsReqSatList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_DataBitsReqSatList_specs_1 = { + sizeof(struct GNSS_DataBitsReqSatList), + offsetof(struct GNSS_DataBitsReqSatList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_DataBitsReqSatList = { + "GNSS-DataBitsReqSatList", + "GNSS-DataBitsReqSatList", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_DataBitsReqSatList_tags_1, + sizeof(asn_DEF_GNSS_DataBitsReqSatList_tags_1) + /sizeof(asn_DEF_GNSS_DataBitsReqSatList_tags_1[0]), /* 1 */ + asn_DEF_GNSS_DataBitsReqSatList_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_DataBitsReqSatList_tags_1) + /sizeof(asn_DEF_GNSS_DataBitsReqSatList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_DataBitsReqSatList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_DataBitsReqSatList_1, + 1, /* Single element */ + &asn_SPC_GNSS_DataBitsReqSatList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-DataBitsReqSatList.h b/asn.1/lpp_generated/GNSS-DataBitsReqSatList.h similarity index 80% rename from asn.1/generated/GNSS-DataBitsReqSatList.h rename to asn.1/lpp_generated/GNSS-DataBitsReqSatList.h index e1eb55fb..aa86ad21 100644 --- a/asn.1/generated/GNSS-DataBitsReqSatList.h +++ b/asn.1/lpp_generated/GNSS-DataBitsReqSatList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_DataBitsReqSatList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_DataBitsReqSatList_constr_1; } #endif -/* Referred external types */ -#include "GNSS-DataBitsReqSatElement.h" - #endif /* _GNSS_DataBitsReqSatList_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-DataBitsSatElement.c b/asn.1/lpp_generated/GNSS-DataBitsSatElement.c new file mode 100644 index 00000000..91ae9fb7 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-DataBitsSatElement.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-DataBitsSatElement.h" + +asn_TYPE_member_t asn_MBR_GNSS_DataBitsSatElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitsSatElement, svID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitsSatElement, gnss_DataBitsSgnList), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_DataBitsSgnList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-DataBitsSgnList" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_DataBitsSatElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_DataBitsSatElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-DataBitsSgnList */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_DataBitsSatElement_specs_1 = { + sizeof(struct GNSS_DataBitsSatElement), + offsetof(struct GNSS_DataBitsSatElement, _asn_ctx), + asn_MAP_GNSS_DataBitsSatElement_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_DataBitsSatElement = { + "GNSS-DataBitsSatElement", + "GNSS-DataBitsSatElement", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_DataBitsSatElement_tags_1, + sizeof(asn_DEF_GNSS_DataBitsSatElement_tags_1) + /sizeof(asn_DEF_GNSS_DataBitsSatElement_tags_1[0]), /* 1 */ + asn_DEF_GNSS_DataBitsSatElement_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_DataBitsSatElement_tags_1) + /sizeof(asn_DEF_GNSS_DataBitsSatElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_DataBitsSatElement_1, + 2, /* Elements count */ + &asn_SPC_GNSS_DataBitsSatElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-DataBitsSatElement.h b/asn.1/lpp_generated/GNSS-DataBitsSatElement.h similarity index 80% rename from asn.1/generated/GNSS-DataBitsSatElement.h rename to asn.1/lpp_generated/GNSS-DataBitsSatElement.h index 5011e452..1ba2a6be 100644 --- a/asn.1/generated/GNSS-DataBitsSatElement.h +++ b/asn.1/lpp_generated/GNSS-DataBitsSatElement.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_DataBitsSatElement_H_ diff --git a/asn.1/lpp_generated/GNSS-DataBitsSatList.c b/asn.1/lpp_generated/GNSS-DataBitsSatList.c new file mode 100644 index 00000000..33c858e9 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-DataBitsSatList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-DataBitsSatList.h" + +#include "GNSS-DataBitsSatElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_DataBitsSatList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_DataBitsSatList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_DataBitsSatElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_DataBitsSatList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_DataBitsSatList_specs_1 = { + sizeof(struct GNSS_DataBitsSatList), + offsetof(struct GNSS_DataBitsSatList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_DataBitsSatList = { + "GNSS-DataBitsSatList", + "GNSS-DataBitsSatList", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_DataBitsSatList_tags_1, + sizeof(asn_DEF_GNSS_DataBitsSatList_tags_1) + /sizeof(asn_DEF_GNSS_DataBitsSatList_tags_1[0]), /* 1 */ + asn_DEF_GNSS_DataBitsSatList_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_DataBitsSatList_tags_1) + /sizeof(asn_DEF_GNSS_DataBitsSatList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_DataBitsSatList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_DataBitsSatList_1, + 1, /* Single element */ + &asn_SPC_GNSS_DataBitsSatList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-DataBitsSatList.h b/asn.1/lpp_generated/GNSS-DataBitsSatList.h similarity index 80% rename from asn.1/generated/GNSS-DataBitsSatList.h rename to asn.1/lpp_generated/GNSS-DataBitsSatList.h index 7c46c0d1..8d4ad913 100644 --- a/asn.1/generated/GNSS-DataBitsSatList.h +++ b/asn.1/lpp_generated/GNSS-DataBitsSatList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_DataBitsSatList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_DataBitsSatList_constr_1; } #endif -/* Referred external types */ -#include "GNSS-DataBitsSatElement.h" - #endif /* _GNSS_DataBitsSatList_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-DataBitsSgnElement.c b/asn.1/lpp_generated/GNSS-DataBitsSgnElement.c new file mode 100644 index 00000000..9b2bfe70 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-DataBitsSgnElement.c @@ -0,0 +1,122 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-DataBitsSgnElement.h" + +static int +memb_gnss_DataBits_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 1024UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_DataBits_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_DataBitsSgnElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitsSgnElement, gnss_SignalType), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SignalType" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_DataBitsSgnElement, gnss_DataBits), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_DataBits_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_DataBits_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-DataBits" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_DataBitsSgnElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_DataBitsSgnElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SignalType */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-DataBits */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_DataBitsSgnElement_specs_1 = { + sizeof(struct GNSS_DataBitsSgnElement), + offsetof(struct GNSS_DataBitsSgnElement, _asn_ctx), + asn_MAP_GNSS_DataBitsSgnElement_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_DataBitsSgnElement = { + "GNSS-DataBitsSgnElement", + "GNSS-DataBitsSgnElement", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_DataBitsSgnElement_tags_1, + sizeof(asn_DEF_GNSS_DataBitsSgnElement_tags_1) + /sizeof(asn_DEF_GNSS_DataBitsSgnElement_tags_1[0]), /* 1 */ + asn_DEF_GNSS_DataBitsSgnElement_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_DataBitsSgnElement_tags_1) + /sizeof(asn_DEF_GNSS_DataBitsSgnElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_DataBitsSgnElement_1, + 2, /* Elements count */ + &asn_SPC_GNSS_DataBitsSgnElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-DataBitsSgnElement.h b/asn.1/lpp_generated/GNSS-DataBitsSgnElement.h similarity index 80% rename from asn.1/generated/GNSS-DataBitsSgnElement.h rename to asn.1/lpp_generated/GNSS-DataBitsSgnElement.h index 27274a19..cbf9c64e 100644 --- a/asn.1/generated/GNSS-DataBitsSgnElement.h +++ b/asn.1/lpp_generated/GNSS-DataBitsSgnElement.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_DataBitsSgnElement_H_ diff --git a/asn.1/lpp_generated/GNSS-DataBitsSgnList.c b/asn.1/lpp_generated/GNSS-DataBitsSgnList.c new file mode 100644 index 00000000..1465bd89 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-DataBitsSgnList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-DataBitsSgnList.h" + +#include "GNSS-DataBitsSgnElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_DataBitsSgnList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_DataBitsSgnList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_DataBitsSgnElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_DataBitsSgnList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_DataBitsSgnList_specs_1 = { + sizeof(struct GNSS_DataBitsSgnList), + offsetof(struct GNSS_DataBitsSgnList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_DataBitsSgnList = { + "GNSS-DataBitsSgnList", + "GNSS-DataBitsSgnList", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_DataBitsSgnList_tags_1, + sizeof(asn_DEF_GNSS_DataBitsSgnList_tags_1) + /sizeof(asn_DEF_GNSS_DataBitsSgnList_tags_1[0]), /* 1 */ + asn_DEF_GNSS_DataBitsSgnList_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_DataBitsSgnList_tags_1) + /sizeof(asn_DEF_GNSS_DataBitsSgnList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_DataBitsSgnList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_DataBitsSgnList_1, + 1, /* Single element */ + &asn_SPC_GNSS_DataBitsSgnList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-DataBitsSgnList.h b/asn.1/lpp_generated/GNSS-DataBitsSgnList.h similarity index 80% rename from asn.1/generated/GNSS-DataBitsSgnList.h rename to asn.1/lpp_generated/GNSS-DataBitsSgnList.h index 9afdb1cd..32bd035a 100644 --- a/asn.1/generated/GNSS-DataBitsSgnList.h +++ b/asn.1/lpp_generated/GNSS-DataBitsSgnList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_DataBitsSgnList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_DataBitsSgnList_constr_1; } #endif -/* Referred external types */ -#include "GNSS-DataBitsSgnElement.h" - #endif /* _GNSS_DataBitsSgnList_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-DifferentialCorrections.c b/asn.1/lpp_generated/GNSS-DifferentialCorrections.c new file mode 100644 index 00000000..ea957793 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-DifferentialCorrections.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-DifferentialCorrections.h" + +static int +memb_dgnss_RefTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3599L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dgnss_RefTime_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_DifferentialCorrections_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_DifferentialCorrections, dgnss_RefTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dgnss_RefTime_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dgnss_RefTime_constraint_1 + }, + 0, 0, /* No default value */ + "dgnss-RefTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_DifferentialCorrections, dgnss_SgnTypeList), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DGNSS_SgnTypeList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dgnss-SgnTypeList" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_DifferentialCorrections_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_DifferentialCorrections_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dgnss-RefTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dgnss-SgnTypeList */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_DifferentialCorrections_specs_1 = { + sizeof(struct GNSS_DifferentialCorrections), + offsetof(struct GNSS_DifferentialCorrections, _asn_ctx), + asn_MAP_GNSS_DifferentialCorrections_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_DifferentialCorrections = { + "GNSS-DifferentialCorrections", + "GNSS-DifferentialCorrections", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_DifferentialCorrections_tags_1, + sizeof(asn_DEF_GNSS_DifferentialCorrections_tags_1) + /sizeof(asn_DEF_GNSS_DifferentialCorrections_tags_1[0]), /* 1 */ + asn_DEF_GNSS_DifferentialCorrections_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_DifferentialCorrections_tags_1) + /sizeof(asn_DEF_GNSS_DifferentialCorrections_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_DifferentialCorrections_1, + 2, /* Elements count */ + &asn_SPC_GNSS_DifferentialCorrections_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-DifferentialCorrections.h b/asn.1/lpp_generated/GNSS-DifferentialCorrections.h similarity index 80% rename from asn.1/generated/GNSS-DifferentialCorrections.h rename to asn.1/lpp_generated/GNSS-DifferentialCorrections.h index dce86c81..29e49f96 100644 --- a/asn.1/generated/GNSS-DifferentialCorrections.h +++ b/asn.1/lpp_generated/GNSS-DifferentialCorrections.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_DifferentialCorrections_H_ diff --git a/asn.1/lpp_generated/GNSS-DifferentialCorrectionsReq.c b/asn.1/lpp_generated/GNSS-DifferentialCorrectionsReq.c new file mode 100644 index 00000000..4bf74e76 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-DifferentialCorrectionsReq.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-DifferentialCorrectionsReq.h" + +asn_TYPE_member_t asn_MBR_GNSS_DifferentialCorrectionsReq_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_DifferentialCorrectionsReq, dgnss_SignalsReq), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalIDs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dgnss-SignalsReq" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_DifferentialCorrectionsReq, dgnss_ValidityTimeReq), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dgnss-ValidityTimeReq" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_DifferentialCorrectionsReq_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_DifferentialCorrectionsReq_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dgnss-SignalsReq */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dgnss-ValidityTimeReq */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_DifferentialCorrectionsReq_specs_1 = { + sizeof(struct GNSS_DifferentialCorrectionsReq), + offsetof(struct GNSS_DifferentialCorrectionsReq, _asn_ctx), + asn_MAP_GNSS_DifferentialCorrectionsReq_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_DifferentialCorrectionsReq = { + "GNSS-DifferentialCorrectionsReq", + "GNSS-DifferentialCorrectionsReq", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_DifferentialCorrectionsReq_tags_1, + sizeof(asn_DEF_GNSS_DifferentialCorrectionsReq_tags_1) + /sizeof(asn_DEF_GNSS_DifferentialCorrectionsReq_tags_1[0]), /* 1 */ + asn_DEF_GNSS_DifferentialCorrectionsReq_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_DifferentialCorrectionsReq_tags_1) + /sizeof(asn_DEF_GNSS_DifferentialCorrectionsReq_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_DifferentialCorrectionsReq_1, + 2, /* Elements count */ + &asn_SPC_GNSS_DifferentialCorrectionsReq_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-DifferentialCorrectionsReq.h b/asn.1/lpp_generated/GNSS-DifferentialCorrectionsReq.h similarity index 81% rename from asn.1/generated/GNSS-DifferentialCorrectionsReq.h rename to asn.1/lpp_generated/GNSS-DifferentialCorrectionsReq.h index 31da2515..47479469 100644 --- a/asn.1/generated/GNSS-DifferentialCorrectionsReq.h +++ b/asn.1/lpp_generated/GNSS-DifferentialCorrectionsReq.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_DifferentialCorrectionsReq_H_ diff --git a/asn.1/lpp_generated/GNSS-DifferentialCorrectionsSupport.c b/asn.1/lpp_generated/GNSS-DifferentialCorrectionsSupport.c new file mode 100644 index 00000000..6b5e1a94 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-DifferentialCorrectionsSupport.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-DifferentialCorrectionsSupport.h" + +asn_TYPE_member_t asn_MBR_GNSS_DifferentialCorrectionsSupport_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_DifferentialCorrectionsSupport, gnssSignalIDs), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalIDs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnssSignalIDs" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_DifferentialCorrectionsSupport, dgnss_ValidityTimeSup), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dgnss-ValidityTimeSup" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_DifferentialCorrectionsSupport_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_DifferentialCorrectionsSupport_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnssSignalIDs */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dgnss-ValidityTimeSup */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_DifferentialCorrectionsSupport_specs_1 = { + sizeof(struct GNSS_DifferentialCorrectionsSupport), + offsetof(struct GNSS_DifferentialCorrectionsSupport, _asn_ctx), + asn_MAP_GNSS_DifferentialCorrectionsSupport_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_DifferentialCorrectionsSupport = { + "GNSS-DifferentialCorrectionsSupport", + "GNSS-DifferentialCorrectionsSupport", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_DifferentialCorrectionsSupport_tags_1, + sizeof(asn_DEF_GNSS_DifferentialCorrectionsSupport_tags_1) + /sizeof(asn_DEF_GNSS_DifferentialCorrectionsSupport_tags_1[0]), /* 1 */ + asn_DEF_GNSS_DifferentialCorrectionsSupport_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_DifferentialCorrectionsSupport_tags_1) + /sizeof(asn_DEF_GNSS_DifferentialCorrectionsSupport_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_DifferentialCorrectionsSupport_1, + 2, /* Elements count */ + &asn_SPC_GNSS_DifferentialCorrectionsSupport_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-DifferentialCorrectionsSupport.h b/asn.1/lpp_generated/GNSS-DifferentialCorrectionsSupport.h similarity index 81% rename from asn.1/generated/GNSS-DifferentialCorrectionsSupport.h rename to asn.1/lpp_generated/GNSS-DifferentialCorrectionsSupport.h index 45e25702..9b55af4e 100644 --- a/asn.1/generated/GNSS-DifferentialCorrectionsSupport.h +++ b/asn.1/lpp_generated/GNSS-DifferentialCorrectionsSupport.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_DifferentialCorrectionsSupport_H_ diff --git a/asn.1/lpp_generated/GNSS-EarthOrientationParameters.c b/asn.1/lpp_generated/GNSS-EarthOrientationParameters.c new file mode 100644 index 00000000..bd2b3312 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-EarthOrientationParameters.c @@ -0,0 +1,398 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-EarthOrientationParameters.h" + +static int +memb_teop_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_pmX_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1048576L && value <= 1048575L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_pmXdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16384L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_pmY_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1048576L && value <= 1048575L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_pmYdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16384L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_deltaUT1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1073741824L && value <= 1073741823L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_deltaUT1dot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -262144L && value <= 262143L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_teop_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_pmX_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_pmXdot_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_pmY_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_pmYdot_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_deltaUT1_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 31, -1, -1073741824, 1073741823 } /* (-1073741824..1073741823) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_deltaUT1dot_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 19, -1, -262144, 262143 } /* (-262144..262143) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_EarthOrientationParameters_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_EarthOrientationParameters, teop), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_teop_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_teop_constraint_1 + }, + 0, 0, /* No default value */ + "teop" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_EarthOrientationParameters, pmX), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_pmX_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_pmX_constraint_1 + }, + 0, 0, /* No default value */ + "pmX" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_EarthOrientationParameters, pmXdot), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_pmXdot_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_pmXdot_constraint_1 + }, + 0, 0, /* No default value */ + "pmXdot" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_EarthOrientationParameters, pmY), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_pmY_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_pmY_constraint_1 + }, + 0, 0, /* No default value */ + "pmY" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_EarthOrientationParameters, pmYdot), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_pmYdot_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_pmYdot_constraint_1 + }, + 0, 0, /* No default value */ + "pmYdot" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_EarthOrientationParameters, deltaUT1), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_deltaUT1_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_deltaUT1_constraint_1 + }, + 0, 0, /* No default value */ + "deltaUT1" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_EarthOrientationParameters, deltaUT1dot), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_deltaUT1dot_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_deltaUT1dot_constraint_1 + }, + 0, 0, /* No default value */ + "deltaUT1dot" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_EarthOrientationParameters_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_EarthOrientationParameters_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* teop */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* pmX */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* pmXdot */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* pmY */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* pmYdot */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* deltaUT1 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* deltaUT1dot */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_EarthOrientationParameters_specs_1 = { + sizeof(struct GNSS_EarthOrientationParameters), + offsetof(struct GNSS_EarthOrientationParameters, _asn_ctx), + asn_MAP_GNSS_EarthOrientationParameters_tag2el_1, + 7, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_EarthOrientationParameters = { + "GNSS-EarthOrientationParameters", + "GNSS-EarthOrientationParameters", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_EarthOrientationParameters_tags_1, + sizeof(asn_DEF_GNSS_EarthOrientationParameters_tags_1) + /sizeof(asn_DEF_GNSS_EarthOrientationParameters_tags_1[0]), /* 1 */ + asn_DEF_GNSS_EarthOrientationParameters_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_EarthOrientationParameters_tags_1) + /sizeof(asn_DEF_GNSS_EarthOrientationParameters_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_EarthOrientationParameters_1, + 7, /* Elements count */ + &asn_SPC_GNSS_EarthOrientationParameters_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-EarthOrientationParameters.h b/asn.1/lpp_generated/GNSS-EarthOrientationParameters.h similarity index 81% rename from asn.1/generated/GNSS-EarthOrientationParameters.h rename to asn.1/lpp_generated/GNSS-EarthOrientationParameters.h index e1c1f421..8049b8da 100644 --- a/asn.1/generated/GNSS-EarthOrientationParameters.h +++ b/asn.1/lpp_generated/GNSS-EarthOrientationParameters.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_EarthOrientationParameters_H_ diff --git a/asn.1/lpp_generated/GNSS-EarthOrientationParametersReq.c b/asn.1/lpp_generated/GNSS-EarthOrientationParametersReq.c new file mode 100644 index 00000000..2b3208ea --- /dev/null +++ b/asn.1/lpp_generated/GNSS-EarthOrientationParametersReq.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-EarthOrientationParametersReq.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_EarthOrientationParametersReq_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_EarthOrientationParametersReq_specs_1 = { + sizeof(struct GNSS_EarthOrientationParametersReq), + offsetof(struct GNSS_EarthOrientationParametersReq, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_EarthOrientationParametersReq = { + "GNSS-EarthOrientationParametersReq", + "GNSS-EarthOrientationParametersReq", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_EarthOrientationParametersReq_tags_1, + sizeof(asn_DEF_GNSS_EarthOrientationParametersReq_tags_1) + /sizeof(asn_DEF_GNSS_EarthOrientationParametersReq_tags_1[0]), /* 1 */ + asn_DEF_GNSS_EarthOrientationParametersReq_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_EarthOrientationParametersReq_tags_1) + /sizeof(asn_DEF_GNSS_EarthOrientationParametersReq_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_EarthOrientationParametersReq_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-EarthOrientationParametersReq.h b/asn.1/lpp_generated/GNSS-EarthOrientationParametersReq.h similarity index 78% rename from asn.1/generated/GNSS-EarthOrientationParametersReq.h rename to asn.1/lpp_generated/GNSS-EarthOrientationParametersReq.h index 204d6378..7262bcd9 100644 --- a/asn.1/generated/GNSS-EarthOrientationParametersReq.h +++ b/asn.1/lpp_generated/GNSS-EarthOrientationParametersReq.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_EarthOrientationParametersReq_H_ diff --git a/asn.1/lpp_generated/GNSS-EarthOrientationParametersSupport.c b/asn.1/lpp_generated/GNSS-EarthOrientationParametersSupport.c new file mode 100644 index 00000000..ef72f497 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-EarthOrientationParametersSupport.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-EarthOrientationParametersSupport.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_EarthOrientationParametersSupport_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_EarthOrientationParametersSupport_specs_1 = { + sizeof(struct GNSS_EarthOrientationParametersSupport), + offsetof(struct GNSS_EarthOrientationParametersSupport, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_EarthOrientationParametersSupport = { + "GNSS-EarthOrientationParametersSupport", + "GNSS-EarthOrientationParametersSupport", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_EarthOrientationParametersSupport_tags_1, + sizeof(asn_DEF_GNSS_EarthOrientationParametersSupport_tags_1) + /sizeof(asn_DEF_GNSS_EarthOrientationParametersSupport_tags_1[0]), /* 1 */ + asn_DEF_GNSS_EarthOrientationParametersSupport_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_EarthOrientationParametersSupport_tags_1) + /sizeof(asn_DEF_GNSS_EarthOrientationParametersSupport_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_EarthOrientationParametersSupport_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-EarthOrientationParametersSupport.h b/asn.1/lpp_generated/GNSS-EarthOrientationParametersSupport.h similarity index 79% rename from asn.1/generated/GNSS-EarthOrientationParametersSupport.h rename to asn.1/lpp_generated/GNSS-EarthOrientationParametersSupport.h index a855b47b..e9104ca2 100644 --- a/asn.1/generated/GNSS-EarthOrientationParametersSupport.h +++ b/asn.1/lpp_generated/GNSS-EarthOrientationParametersSupport.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_EarthOrientationParametersSupport_H_ diff --git a/asn.1/lpp_generated/GNSS-FrequencyID-r15.c b/asn.1/lpp_generated/GNSS-FrequencyID-r15.c new file mode 100644 index 00000000..e5a200ac --- /dev/null +++ b/asn.1/lpp_generated/GNSS-FrequencyID-r15.c @@ -0,0 +1,98 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-FrequencyID-r15.h" + +static int +memb_gnss_FrequencyID_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_FrequencyID_r15_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_FrequencyID_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_FrequencyID_r15, gnss_FrequencyID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_FrequencyID_r15_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_FrequencyID_r15_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-FrequencyID-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_FrequencyID_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_FrequencyID_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-FrequencyID-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_FrequencyID_r15_specs_1 = { + sizeof(struct GNSS_FrequencyID_r15), + offsetof(struct GNSS_FrequencyID_r15, _asn_ctx), + asn_MAP_GNSS_FrequencyID_r15_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_FrequencyID_r15 = { + "GNSS-FrequencyID-r15", + "GNSS-FrequencyID-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_FrequencyID_r15_tags_1, + sizeof(asn_DEF_GNSS_FrequencyID_r15_tags_1) + /sizeof(asn_DEF_GNSS_FrequencyID_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_FrequencyID_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_FrequencyID_r15_tags_1) + /sizeof(asn_DEF_GNSS_FrequencyID_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_FrequencyID_r15_1, + 1, /* Elements count */ + &asn_SPC_GNSS_FrequencyID_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-FrequencyID-r15.h b/asn.1/lpp_generated/GNSS-FrequencyID-r15.h similarity index 78% rename from asn.1/generated/GNSS-FrequencyID-r15.h rename to asn.1/lpp_generated/GNSS-FrequencyID-r15.h index 138784ef..70a1cb09 100644 --- a/asn.1/generated/GNSS-FrequencyID-r15.h +++ b/asn.1/lpp_generated/GNSS-FrequencyID-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_FrequencyID_r15_H_ diff --git a/asn.1/lpp_generated/GNSS-GenericAssistData.c b/asn.1/lpp_generated/GNSS-GenericAssistData.c new file mode 100644 index 00000000..47f20184 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-GenericAssistData.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-GenericAssistData.h" + +#include "GNSS-GenericAssistDataElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_GenericAssistData_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_GenericAssistData_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_GenericAssistDataElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_GenericAssistData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_GenericAssistData_specs_1 = { + sizeof(struct GNSS_GenericAssistData), + offsetof(struct GNSS_GenericAssistData, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_GenericAssistData = { + "GNSS-GenericAssistData", + "GNSS-GenericAssistData", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_GenericAssistData_tags_1, + sizeof(asn_DEF_GNSS_GenericAssistData_tags_1) + /sizeof(asn_DEF_GNSS_GenericAssistData_tags_1[0]), /* 1 */ + asn_DEF_GNSS_GenericAssistData_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_GenericAssistData_tags_1) + /sizeof(asn_DEF_GNSS_GenericAssistData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_GenericAssistData_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_GenericAssistData_1, + 1, /* Single element */ + &asn_SPC_GNSS_GenericAssistData_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-GenericAssistData.h b/asn.1/lpp_generated/GNSS-GenericAssistData.h similarity index 80% rename from asn.1/generated/GNSS-GenericAssistData.h rename to asn.1/lpp_generated/GNSS-GenericAssistData.h index e5b6b478..ba8fd0be 100644 --- a/asn.1/generated/GNSS-GenericAssistData.h +++ b/asn.1/lpp_generated/GNSS-GenericAssistData.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_GenericAssistData_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_GenericAssistData_constr_1; } #endif -/* Referred external types */ -#include "GNSS-GenericAssistDataElement.h" - #endif /* _GNSS_GenericAssistData_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-GenericAssistDataElement.c b/asn.1/lpp_generated/GNSS-GenericAssistDataElement.c new file mode 100644 index 00000000..4bf17b93 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-GenericAssistDataElement.c @@ -0,0 +1,962 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-GenericAssistDataElement.h" + +#include "SBAS-ID.h" +#include "GNSS-TimeModelList.h" +#include "GNSS-DifferentialCorrections.h" +#include "GNSS-NavigationModel.h" +#include "GNSS-RealTimeIntegrity.h" +#include "GNSS-DataBitAssistance.h" +#include "GNSS-AcquisitionAssistance.h" +#include "GNSS-Almanac.h" +#include "GNSS-UTC-Model.h" +#include "GNSS-AuxiliaryInformation.h" +#include "BDS-DifferentialCorrections-r12.h" +#include "BDS-GridModelParameter-r12.h" +#include "GNSS-RTK-Observations-r15.h" +#include "GLO-RTK-BiasInformation-r15.h" +#include "GNSS-RTK-MAC-CorrectionDifferences-r15.h" +#include "GNSS-RTK-Residuals-r15.h" +#include "GNSS-RTK-FKP-Gradients-r15.h" +#include "GNSS-SSR-OrbitCorrections-r15.h" +#include "GNSS-SSR-ClockCorrections-r15.h" +#include "GNSS-SSR-CodeBias-r15.h" +#include "GNSS-SSR-URA-r16.h" +#include "GNSS-SSR-PhaseBias-r16.h" +#include "GNSS-SSR-STEC-Correction-r16.h" +#include "GNSS-SSR-GriddedCorrection-r16.h" +#include "NavIC-DifferentialCorrections-r16.h" +#include "NavIC-GridModelParameter-r16.h" +#include "GNSS-SSR-OrbitCorrectionsSet2-r17.h" +#include "GNSS-SSR-ClockCorrectionsSet2-r17.h" +#include "GNSS-SSR-URA-Set2-r17.h" +#include "GNSS-LOS-NLOS-GriddedIndications-r18.h" +#include "GNSS-SSR-SatellitePCVResiduals-r18.h" +static asn_TYPE_member_t asn_MBR_ext1_14[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataElement__ext1, bds_DifferentialCorrections_r12), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BDS_DifferentialCorrections_r12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bds-DifferentialCorrections-r12" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataElement__ext1, bds_GridModel_r12), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BDS_GridModelParameter_r12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bds-GridModel-r12" + }, +}; +static const int asn_MAP_ext1_oms_14[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_14[] = { + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_14[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bds-DifferentialCorrections-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bds-GridModel-r12 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_14 = { + sizeof(struct GNSS_GenericAssistDataElement__ext1), + offsetof(struct GNSS_GenericAssistDataElement__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_14, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_14, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_14 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_14, + sizeof(asn_DEF_ext1_tags_14) + /sizeof(asn_DEF_ext1_tags_14[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_14, /* Same as above */ + sizeof(asn_DEF_ext1_tags_14) + /sizeof(asn_DEF_ext1_tags_14[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_14, + 2, /* Elements count */ + &asn_SPC_ext1_specs_14 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_17[] = { + { ATF_POINTER, 8, offsetof(struct GNSS_GenericAssistDataElement__ext2, gnss_RTK_Observations_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_Observations_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-Observations-r15" + }, + { ATF_POINTER, 7, offsetof(struct GNSS_GenericAssistDataElement__ext2, glo_RTK_BiasInformation_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GLO_RTK_BiasInformation_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "glo-RTK-BiasInformation-r15" + }, + { ATF_POINTER, 6, offsetof(struct GNSS_GenericAssistDataElement__ext2, gnss_RTK_MAC_CorrectionDifferences_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_MAC_CorrectionDifferences_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-MAC-CorrectionDifferences-r15" + }, + { ATF_POINTER, 5, offsetof(struct GNSS_GenericAssistDataElement__ext2, gnss_RTK_Residuals_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_Residuals_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-Residuals-r15" + }, + { ATF_POINTER, 4, offsetof(struct GNSS_GenericAssistDataElement__ext2, gnss_RTK_FKP_Gradients_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_FKP_Gradients_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-FKP-Gradients-r15" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataElement__ext2, gnss_SSR_OrbitCorrections_r15), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_OrbitCorrections_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-OrbitCorrections-r15" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataElement__ext2, gnss_SSR_ClockCorrections_r15), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_ClockCorrections_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-ClockCorrections-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataElement__ext2, gnss_SSR_CodeBias_r15), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_CodeBias_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-CodeBias-r15" + }, +}; +static const int asn_MAP_ext2_oms_17[] = { 0, 1, 2, 3, 4, 5, 6, 7 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_17[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-RTK-Observations-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* glo-RTK-BiasInformation-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-RTK-MAC-CorrectionDifferences-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-RTK-Residuals-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-RTK-FKP-Gradients-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gnss-SSR-OrbitCorrections-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnss-SSR-ClockCorrections-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* gnss-SSR-CodeBias-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_17 = { + sizeof(struct GNSS_GenericAssistDataElement__ext2), + offsetof(struct GNSS_GenericAssistDataElement__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_17, + 8, /* Count of tags in the map */ + asn_MAP_ext2_oms_17, /* Optional members */ + 8, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_17 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_17, + sizeof(asn_DEF_ext2_tags_17) + /sizeof(asn_DEF_ext2_tags_17[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_17, /* Same as above */ + sizeof(asn_DEF_ext2_tags_17) + /sizeof(asn_DEF_ext2_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_17, + 8, /* Elements count */ + &asn_SPC_ext2_specs_17 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_26[] = { + { ATF_POINTER, 6, offsetof(struct GNSS_GenericAssistDataElement__ext3, gnss_SSR_URA_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_URA_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-URA-r16" + }, + { ATF_POINTER, 5, offsetof(struct GNSS_GenericAssistDataElement__ext3, gnss_SSR_PhaseBias_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_PhaseBias_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PhaseBias-r16" + }, + { ATF_POINTER, 4, offsetof(struct GNSS_GenericAssistDataElement__ext3, gnss_SSR_STEC_Correction_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_STEC_Correction_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-STEC-Correction-r16" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataElement__ext3, gnss_SSR_GriddedCorrection_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_GriddedCorrection_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-GriddedCorrection-r16" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataElement__ext3, navic_DifferentialCorrections_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NavIC_DifferentialCorrections_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "navic-DifferentialCorrections-r16" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataElement__ext3, navic_GridModel_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NavIC_GridModelParameter_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "navic-GridModel-r16" + }, +}; +static const int asn_MAP_ext3_oms_26[] = { 0, 1, 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_26[] = { + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_26[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SSR-URA-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-SSR-PhaseBias-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-SSR-STEC-Correction-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-SSR-GriddedCorrection-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* navic-DifferentialCorrections-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* navic-GridModel-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_26 = { + sizeof(struct GNSS_GenericAssistDataElement__ext3), + offsetof(struct GNSS_GenericAssistDataElement__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_26, + 6, /* Count of tags in the map */ + asn_MAP_ext3_oms_26, /* Optional members */ + 6, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_26 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_26, + sizeof(asn_DEF_ext3_tags_26) + /sizeof(asn_DEF_ext3_tags_26[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_26, /* Same as above */ + sizeof(asn_DEF_ext3_tags_26) + /sizeof(asn_DEF_ext3_tags_26[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_26, + 6, /* Elements count */ + &asn_SPC_ext3_specs_26 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext4_33[] = { + { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataElement__ext4, gnss_SSR_OrbitCorrectionsSet2_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_OrbitCorrectionsSet2_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-OrbitCorrectionsSet2-r17" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataElement__ext4, gnss_SSR_ClockCorrectionsSet2_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_ClockCorrectionsSet2_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-ClockCorrectionsSet2-r17" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataElement__ext4, gnss_SSR_URA_Set2_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_URA_Set2_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-URA-Set2-r17" + }, +}; +static const int asn_MAP_ext4_oms_33[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext4_tags_33[] = { + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext4_tag2el_33[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SSR-OrbitCorrectionsSet2-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-SSR-ClockCorrectionsSet2-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gnss-SSR-URA-Set2-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext4_specs_33 = { + sizeof(struct GNSS_GenericAssistDataElement__ext4), + offsetof(struct GNSS_GenericAssistDataElement__ext4, _asn_ctx), + asn_MAP_ext4_tag2el_33, + 3, /* Count of tags in the map */ + asn_MAP_ext4_oms_33, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext4_33 = { + "ext4", + "ext4", + &asn_OP_SEQUENCE, + asn_DEF_ext4_tags_33, + sizeof(asn_DEF_ext4_tags_33) + /sizeof(asn_DEF_ext4_tags_33[0]) - 1, /* 1 */ + asn_DEF_ext4_tags_33, /* Same as above */ + sizeof(asn_DEF_ext4_tags_33) + /sizeof(asn_DEF_ext4_tags_33[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext4_33, + 3, /* Elements count */ + &asn_SPC_ext4_specs_33 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext5_37[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataElement__ext5, gnss_LOS_NLOS_GriddedIndications_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_LOS_NLOS_GriddedIndications_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-LOS-NLOS-GriddedIndications-r18" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataElement__ext5, gnss_SSR_SatellitePCVResiduals_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_SatellitePCVResiduals_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-SatellitePCVResiduals-r18" + }, +}; +static const int asn_MAP_ext5_oms_37[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext5_tags_37[] = { + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext5_tag2el_37[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-LOS-NLOS-GriddedIndications-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-SSR-SatellitePCVResiduals-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext5_specs_37 = { + sizeof(struct GNSS_GenericAssistDataElement__ext5), + offsetof(struct GNSS_GenericAssistDataElement__ext5, _asn_ctx), + asn_MAP_ext5_tag2el_37, + 2, /* Count of tags in the map */ + asn_MAP_ext5_oms_37, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext5_37 = { + "ext5", + "ext5", + &asn_OP_SEQUENCE, + asn_DEF_ext5_tags_37, + sizeof(asn_DEF_ext5_tags_37) + /sizeof(asn_DEF_ext5_tags_37[0]) - 1, /* 1 */ + asn_DEF_ext5_tags_37, /* Same as above */ + sizeof(asn_DEF_ext5_tags_37) + /sizeof(asn_DEF_ext5_tags_37[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext5_37, + 2, /* Elements count */ + &asn_SPC_ext5_specs_37 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_GenericAssistDataElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_GenericAssistDataElement, gnss_ID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-ID" + }, + { ATF_POINTER, 15, offsetof(struct GNSS_GenericAssistDataElement, sbas_ID), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SBAS_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sbas-ID" + }, + { ATF_POINTER, 14, offsetof(struct GNSS_GenericAssistDataElement, gnss_TimeModels), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_TimeModelList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-TimeModels" + }, + { ATF_POINTER, 13, offsetof(struct GNSS_GenericAssistDataElement, gnss_DifferentialCorrections), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_DifferentialCorrections, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-DifferentialCorrections" + }, + { ATF_POINTER, 12, offsetof(struct GNSS_GenericAssistDataElement, gnss_NavigationModel), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_NavigationModel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-NavigationModel" + }, + { ATF_POINTER, 11, offsetof(struct GNSS_GenericAssistDataElement, gnss_RealTimeIntegrity), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RealTimeIntegrity, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RealTimeIntegrity" + }, + { ATF_POINTER, 10, offsetof(struct GNSS_GenericAssistDataElement, gnss_DataBitAssistance), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_DataBitAssistance, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-DataBitAssistance" + }, + { ATF_POINTER, 9, offsetof(struct GNSS_GenericAssistDataElement, gnss_AcquisitionAssistance), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_AcquisitionAssistance, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-AcquisitionAssistance" + }, + { ATF_POINTER, 8, offsetof(struct GNSS_GenericAssistDataElement, gnss_Almanac), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_Almanac, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-Almanac" + }, + { ATF_POINTER, 7, offsetof(struct GNSS_GenericAssistDataElement, gnss_UTC_Model), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_GNSS_UTC_Model, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-UTC-Model" + }, + { ATF_POINTER, 6, offsetof(struct GNSS_GenericAssistDataElement, gnss_AuxiliaryInformation), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_GNSS_AuxiliaryInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-AuxiliaryInformation" + }, + { ATF_POINTER, 5, offsetof(struct GNSS_GenericAssistDataElement, ext1), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + 0, + &asn_DEF_ext1_14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 4, offsetof(struct GNSS_GenericAssistDataElement, ext2), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + 0, + &asn_DEF_ext2_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataElement, ext3), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + 0, + &asn_DEF_ext3_26, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataElement, ext4), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + 0, + &asn_DEF_ext4_33, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext4" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataElement, ext5), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + 0, + &asn_DEF_ext5_37, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext5" + }, +}; +static const int asn_MAP_GNSS_GenericAssistDataElement_oms_1[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; +static const ber_tlv_tag_t asn_DEF_GNSS_GenericAssistDataElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_GenericAssistDataElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-ID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sbas-ID */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-TimeModels */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-DifferentialCorrections */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-NavigationModel */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gnss-RealTimeIntegrity */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnss-DataBitAssistance */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* gnss-AcquisitionAssistance */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* gnss-Almanac */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* gnss-UTC-Model */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* gnss-AuxiliaryInformation */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* ext3 */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* ext4 */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 } /* ext5 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_GenericAssistDataElement_specs_1 = { + sizeof(struct GNSS_GenericAssistDataElement), + offsetof(struct GNSS_GenericAssistDataElement, _asn_ctx), + asn_MAP_GNSS_GenericAssistDataElement_tag2el_1, + 16, /* Count of tags in the map */ + asn_MAP_GNSS_GenericAssistDataElement_oms_1, /* Optional members */ + 10, 5, /* Root/Additions */ + 11, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_GenericAssistDataElement = { + "GNSS-GenericAssistDataElement", + "GNSS-GenericAssistDataElement", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_GenericAssistDataElement_tags_1, + sizeof(asn_DEF_GNSS_GenericAssistDataElement_tags_1) + /sizeof(asn_DEF_GNSS_GenericAssistDataElement_tags_1[0]), /* 1 */ + asn_DEF_GNSS_GenericAssistDataElement_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_GenericAssistDataElement_tags_1) + /sizeof(asn_DEF_GNSS_GenericAssistDataElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_GenericAssistDataElement_1, + 16, /* Elements count */ + &asn_SPC_GNSS_GenericAssistDataElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-GenericAssistDataElement.h b/asn.1/lpp_generated/GNSS-GenericAssistDataElement.h new file mode 100644 index 00000000..befbd47a --- /dev/null +++ b/asn.1/lpp_generated/GNSS-GenericAssistDataElement.h @@ -0,0 +1,133 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_GenericAssistDataElement_H_ +#define _GNSS_GenericAssistDataElement_H_ + + +#include + +/* Including external dependencies */ +#include "GNSS-ID.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SBAS_ID; +struct GNSS_TimeModelList; +struct GNSS_DifferentialCorrections; +struct GNSS_NavigationModel; +struct GNSS_RealTimeIntegrity; +struct GNSS_DataBitAssistance; +struct GNSS_AcquisitionAssistance; +struct GNSS_Almanac; +struct GNSS_UTC_Model; +struct GNSS_AuxiliaryInformation; +struct BDS_DifferentialCorrections_r12; +struct BDS_GridModelParameter_r12; +struct GNSS_RTK_Observations_r15; +struct GLO_RTK_BiasInformation_r15; +struct GNSS_RTK_MAC_CorrectionDifferences_r15; +struct GNSS_RTK_Residuals_r15; +struct GNSS_RTK_FKP_Gradients_r15; +struct GNSS_SSR_OrbitCorrections_r15; +struct GNSS_SSR_ClockCorrections_r15; +struct GNSS_SSR_CodeBias_r15; +struct GNSS_SSR_URA_r16; +struct GNSS_SSR_PhaseBias_r16; +struct GNSS_SSR_STEC_Correction_r16; +struct GNSS_SSR_GriddedCorrection_r16; +struct NavIC_DifferentialCorrections_r16; +struct NavIC_GridModelParameter_r16; +struct GNSS_SSR_OrbitCorrectionsSet2_r17; +struct GNSS_SSR_ClockCorrectionsSet2_r17; +struct GNSS_SSR_URA_Set2_r17; +struct GNSS_LOS_NLOS_GriddedIndications_r18; +struct GNSS_SSR_SatellitePCVResiduals_r18; + +/* GNSS-GenericAssistDataElement */ +typedef struct GNSS_GenericAssistDataElement { + GNSS_ID_t gnss_ID; + struct SBAS_ID *sbas_ID; /* OPTIONAL */ + struct GNSS_TimeModelList *gnss_TimeModels; /* OPTIONAL */ + struct GNSS_DifferentialCorrections *gnss_DifferentialCorrections; /* OPTIONAL */ + struct GNSS_NavigationModel *gnss_NavigationModel; /* OPTIONAL */ + struct GNSS_RealTimeIntegrity *gnss_RealTimeIntegrity; /* OPTIONAL */ + struct GNSS_DataBitAssistance *gnss_DataBitAssistance; /* OPTIONAL */ + struct GNSS_AcquisitionAssistance *gnss_AcquisitionAssistance; /* OPTIONAL */ + struct GNSS_Almanac *gnss_Almanac; /* OPTIONAL */ + struct GNSS_UTC_Model *gnss_UTC_Model; /* OPTIONAL */ + struct GNSS_AuxiliaryInformation *gnss_AuxiliaryInformation; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_GenericAssistDataElement__ext1 { + struct BDS_DifferentialCorrections_r12 *bds_DifferentialCorrections_r12; /* OPTIONAL */ + struct BDS_GridModelParameter_r12 *bds_GridModel_r12; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct GNSS_GenericAssistDataElement__ext2 { + struct GNSS_RTK_Observations_r15 *gnss_RTK_Observations_r15; /* OPTIONAL */ + struct GLO_RTK_BiasInformation_r15 *glo_RTK_BiasInformation_r15; /* OPTIONAL */ + struct GNSS_RTK_MAC_CorrectionDifferences_r15 *gnss_RTK_MAC_CorrectionDifferences_r15; /* OPTIONAL */ + struct GNSS_RTK_Residuals_r15 *gnss_RTK_Residuals_r15; /* OPTIONAL */ + struct GNSS_RTK_FKP_Gradients_r15 *gnss_RTK_FKP_Gradients_r15; /* OPTIONAL */ + struct GNSS_SSR_OrbitCorrections_r15 *gnss_SSR_OrbitCorrections_r15; /* OPTIONAL */ + struct GNSS_SSR_ClockCorrections_r15 *gnss_SSR_ClockCorrections_r15; /* OPTIONAL */ + struct GNSS_SSR_CodeBias_r15 *gnss_SSR_CodeBias_r15; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct GNSS_GenericAssistDataElement__ext3 { + struct GNSS_SSR_URA_r16 *gnss_SSR_URA_r16; /* OPTIONAL */ + struct GNSS_SSR_PhaseBias_r16 *gnss_SSR_PhaseBias_r16; /* OPTIONAL */ + struct GNSS_SSR_STEC_Correction_r16 *gnss_SSR_STEC_Correction_r16; /* OPTIONAL */ + struct GNSS_SSR_GriddedCorrection_r16 *gnss_SSR_GriddedCorrection_r16; /* OPTIONAL */ + struct NavIC_DifferentialCorrections_r16 *navic_DifferentialCorrections_r16; /* OPTIONAL */ + struct NavIC_GridModelParameter_r16 *navic_GridModel_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + struct GNSS_GenericAssistDataElement__ext4 { + struct GNSS_SSR_OrbitCorrectionsSet2_r17 *gnss_SSR_OrbitCorrectionsSet2_r17; /* OPTIONAL */ + struct GNSS_SSR_ClockCorrectionsSet2_r17 *gnss_SSR_ClockCorrectionsSet2_r17; /* OPTIONAL */ + struct GNSS_SSR_URA_Set2_r17 *gnss_SSR_URA_Set2_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext4; + struct GNSS_GenericAssistDataElement__ext5 { + struct GNSS_LOS_NLOS_GriddedIndications_r18 *gnss_LOS_NLOS_GriddedIndications_r18; /* OPTIONAL */ + struct GNSS_SSR_SatellitePCVResiduals_r18 *gnss_SSR_SatellitePCVResiduals_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext5; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_GenericAssistDataElement_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_GenericAssistDataElement; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_GenericAssistDataElement_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_GenericAssistDataElement_1[16]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_GenericAssistDataElement_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-GenericAssistDataReq.c b/asn.1/lpp_generated/GNSS-GenericAssistDataReq.c new file mode 100644 index 00000000..c028c5f2 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-GenericAssistDataReq.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-GenericAssistDataReq.h" + +#include "GNSS-GenericAssistDataReqElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_GenericAssistDataReq_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_GenericAssistDataReq_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_GenericAssistDataReqElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_GenericAssistDataReq_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_GenericAssistDataReq_specs_1 = { + sizeof(struct GNSS_GenericAssistDataReq), + offsetof(struct GNSS_GenericAssistDataReq, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_GenericAssistDataReq = { + "GNSS-GenericAssistDataReq", + "GNSS-GenericAssistDataReq", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_GenericAssistDataReq_tags_1, + sizeof(asn_DEF_GNSS_GenericAssistDataReq_tags_1) + /sizeof(asn_DEF_GNSS_GenericAssistDataReq_tags_1[0]), /* 1 */ + asn_DEF_GNSS_GenericAssistDataReq_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_GenericAssistDataReq_tags_1) + /sizeof(asn_DEF_GNSS_GenericAssistDataReq_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_GenericAssistDataReq_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_GenericAssistDataReq_1, + 1, /* Single element */ + &asn_SPC_GNSS_GenericAssistDataReq_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-GenericAssistDataReq.h b/asn.1/lpp_generated/GNSS-GenericAssistDataReq.h similarity index 81% rename from asn.1/generated/GNSS-GenericAssistDataReq.h rename to asn.1/lpp_generated/GNSS-GenericAssistDataReq.h index a6903d2b..e8edf1f0 100644 --- a/asn.1/generated/GNSS-GenericAssistDataReq.h +++ b/asn.1/lpp_generated/GNSS-GenericAssistDataReq.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_GenericAssistDataReq_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_GenericAssistDataReq_constr_1; } #endif -/* Referred external types */ -#include "GNSS-GenericAssistDataReqElement.h" - #endif /* _GNSS_GenericAssistDataReq_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-GenericAssistDataReqElement.c b/asn.1/lpp_generated/GNSS-GenericAssistDataReqElement.c new file mode 100644 index 00000000..d0f61299 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-GenericAssistDataReqElement.c @@ -0,0 +1,962 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-GenericAssistDataReqElement.h" + +#include "SBAS-ID.h" +#include "GNSS-TimeModelListReq.h" +#include "GNSS-DifferentialCorrectionsReq.h" +#include "GNSS-NavigationModelReq.h" +#include "GNSS-RealTimeIntegrityReq.h" +#include "GNSS-DataBitAssistanceReq.h" +#include "GNSS-AcquisitionAssistanceReq.h" +#include "GNSS-AlmanacReq.h" +#include "GNSS-UTC-ModelReq.h" +#include "GNSS-AuxiliaryInformationReq.h" +#include "BDS-DifferentialCorrectionsReq-r12.h" +#include "BDS-GridModelReq-r12.h" +#include "GNSS-RTK-ObservationsReq-r15.h" +#include "GLO-RTK-BiasInformationReq-r15.h" +#include "GNSS-RTK-MAC-CorrectionDifferencesReq-r15.h" +#include "GNSS-RTK-ResidualsReq-r15.h" +#include "GNSS-RTK-FKP-GradientsReq-r15.h" +#include "GNSS-SSR-OrbitCorrectionsReq-r15.h" +#include "GNSS-SSR-ClockCorrectionsReq-r15.h" +#include "GNSS-SSR-CodeBiasReq-r15.h" +#include "GNSS-SSR-URA-Req-r16.h" +#include "GNSS-SSR-PhaseBiasReq-r16.h" +#include "GNSS-SSR-STEC-CorrectionReq-r16.h" +#include "GNSS-SSR-GriddedCorrectionReq-r16.h" +#include "NavIC-DifferentialCorrectionsReq-r16.h" +#include "NavIC-GridModelReq-r16.h" +#include "GNSS-SSR-OrbitCorrectionsSet2Req-r17.h" +#include "GNSS-SSR-ClockCorrectionsSet2Req-r17.h" +#include "GNSS-SSR-URA-Set2Req-r17.h" +#include "GNSS-LOS-NLOS-GriddedIndicationsReq-r18.h" +#include "GNSS-SSR-SatellitePCVResidualsReq-r18.h" +static asn_TYPE_member_t asn_MBR_ext1_14[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataReqElement__ext1, bds_DifferentialCorrectionsReq_r12), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BDS_DifferentialCorrectionsReq_r12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bds-DifferentialCorrectionsReq-r12" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataReqElement__ext1, bds_GridModelReq_r12), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BDS_GridModelReq_r12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bds-GridModelReq-r12" + }, +}; +static const int asn_MAP_ext1_oms_14[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_14[] = { + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_14[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bds-DifferentialCorrectionsReq-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bds-GridModelReq-r12 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_14 = { + sizeof(struct GNSS_GenericAssistDataReqElement__ext1), + offsetof(struct GNSS_GenericAssistDataReqElement__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_14, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_14, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_14 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_14, + sizeof(asn_DEF_ext1_tags_14) + /sizeof(asn_DEF_ext1_tags_14[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_14, /* Same as above */ + sizeof(asn_DEF_ext1_tags_14) + /sizeof(asn_DEF_ext1_tags_14[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_14, + 2, /* Elements count */ + &asn_SPC_ext1_specs_14 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_17[] = { + { ATF_POINTER, 8, offsetof(struct GNSS_GenericAssistDataReqElement__ext2, gnss_RTK_ObservationsReq_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_ObservationsReq_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-ObservationsReq-r15" + }, + { ATF_POINTER, 7, offsetof(struct GNSS_GenericAssistDataReqElement__ext2, glo_RTK_BiasInformationReq_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GLO_RTK_BiasInformationReq_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "glo-RTK-BiasInformationReq-r15" + }, + { ATF_POINTER, 6, offsetof(struct GNSS_GenericAssistDataReqElement__ext2, gnss_RTK_MAC_CorrectionDifferencesReq_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesReq_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-MAC-CorrectionDifferencesReq-r15" + }, + { ATF_POINTER, 5, offsetof(struct GNSS_GenericAssistDataReqElement__ext2, gnss_RTK_ResidualsReq_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_ResidualsReq_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-ResidualsReq-r15" + }, + { ATF_POINTER, 4, offsetof(struct GNSS_GenericAssistDataReqElement__ext2, gnss_RTK_FKP_GradientsReq_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_FKP_GradientsReq_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-FKP-GradientsReq-r15" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataReqElement__ext2, gnss_SSR_OrbitCorrectionsReq_r15), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-OrbitCorrectionsReq-r15" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataReqElement__ext2, gnss_SSR_ClockCorrectionsReq_r15), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-ClockCorrectionsReq-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataReqElement__ext2, gnss_SSR_CodeBiasReq_r15), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_CodeBiasReq_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-CodeBiasReq-r15" + }, +}; +static const int asn_MAP_ext2_oms_17[] = { 0, 1, 2, 3, 4, 5, 6, 7 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_17[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-RTK-ObservationsReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* glo-RTK-BiasInformationReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-RTK-MAC-CorrectionDifferencesReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-RTK-ResidualsReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-RTK-FKP-GradientsReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gnss-SSR-OrbitCorrectionsReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnss-SSR-ClockCorrectionsReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* gnss-SSR-CodeBiasReq-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_17 = { + sizeof(struct GNSS_GenericAssistDataReqElement__ext2), + offsetof(struct GNSS_GenericAssistDataReqElement__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_17, + 8, /* Count of tags in the map */ + asn_MAP_ext2_oms_17, /* Optional members */ + 8, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_17 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_17, + sizeof(asn_DEF_ext2_tags_17) + /sizeof(asn_DEF_ext2_tags_17[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_17, /* Same as above */ + sizeof(asn_DEF_ext2_tags_17) + /sizeof(asn_DEF_ext2_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_17, + 8, /* Elements count */ + &asn_SPC_ext2_specs_17 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_26[] = { + { ATF_POINTER, 6, offsetof(struct GNSS_GenericAssistDataReqElement__ext3, gnss_SSR_URA_Req_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_URA_Req_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-URA-Req-r16" + }, + { ATF_POINTER, 5, offsetof(struct GNSS_GenericAssistDataReqElement__ext3, gnss_SSR_PhaseBiasReq_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_PhaseBiasReq_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PhaseBiasReq-r16" + }, + { ATF_POINTER, 4, offsetof(struct GNSS_GenericAssistDataReqElement__ext3, gnss_SSR_STEC_CorrectionReq_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-STEC-CorrectionReq-r16" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataReqElement__ext3, gnss_SSR_GriddedCorrectionReq_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-GriddedCorrectionReq-r16" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataReqElement__ext3, navic_DifferentialCorrectionsReq_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NavIC_DifferentialCorrectionsReq_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "navic-DifferentialCorrectionsReq-r16" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataReqElement__ext3, navic_GridModelReq_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NavIC_GridModelReq_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "navic-GridModelReq-r16" + }, +}; +static const int asn_MAP_ext3_oms_26[] = { 0, 1, 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_26[] = { + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_26[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SSR-URA-Req-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-SSR-PhaseBiasReq-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-SSR-STEC-CorrectionReq-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-SSR-GriddedCorrectionReq-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* navic-DifferentialCorrectionsReq-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* navic-GridModelReq-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_26 = { + sizeof(struct GNSS_GenericAssistDataReqElement__ext3), + offsetof(struct GNSS_GenericAssistDataReqElement__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_26, + 6, /* Count of tags in the map */ + asn_MAP_ext3_oms_26, /* Optional members */ + 6, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_26 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_26, + sizeof(asn_DEF_ext3_tags_26) + /sizeof(asn_DEF_ext3_tags_26[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_26, /* Same as above */ + sizeof(asn_DEF_ext3_tags_26) + /sizeof(asn_DEF_ext3_tags_26[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_26, + 6, /* Elements count */ + &asn_SPC_ext3_specs_26 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext4_33[] = { + { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataReqElement__ext4, gnss_SSR_OrbitCorrectionsSet2Req_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Req_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-OrbitCorrectionsSet2Req-r17" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataReqElement__ext4, gnss_SSR_ClockCorrectionsSet2Req_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_ClockCorrectionsSet2Req_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-ClockCorrectionsSet2Req-r17" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataReqElement__ext4, gnss_SSR_URA_Set2Req_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_URA_Set2Req_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-URA-Set2Req-r17" + }, +}; +static const int asn_MAP_ext4_oms_33[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext4_tags_33[] = { + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext4_tag2el_33[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SSR-OrbitCorrectionsSet2Req-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-SSR-ClockCorrectionsSet2Req-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gnss-SSR-URA-Set2Req-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext4_specs_33 = { + sizeof(struct GNSS_GenericAssistDataReqElement__ext4), + offsetof(struct GNSS_GenericAssistDataReqElement__ext4, _asn_ctx), + asn_MAP_ext4_tag2el_33, + 3, /* Count of tags in the map */ + asn_MAP_ext4_oms_33, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext4_33 = { + "ext4", + "ext4", + &asn_OP_SEQUENCE, + asn_DEF_ext4_tags_33, + sizeof(asn_DEF_ext4_tags_33) + /sizeof(asn_DEF_ext4_tags_33[0]) - 1, /* 1 */ + asn_DEF_ext4_tags_33, /* Same as above */ + sizeof(asn_DEF_ext4_tags_33) + /sizeof(asn_DEF_ext4_tags_33[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext4_33, + 3, /* Elements count */ + &asn_SPC_ext4_specs_33 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext5_37[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataReqElement__ext5, gnss_LOS_NLOS_GriddedIndicationsReq_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsReq_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-LOS-NLOS-GriddedIndicationsReq-r18" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataReqElement__ext5, gnss_SSR_SatellitePCVResidualsReq_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_SatellitePCVResidualsReq_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-SatellitePCVResidualsReq-r18" + }, +}; +static const int asn_MAP_ext5_oms_37[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext5_tags_37[] = { + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext5_tag2el_37[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-LOS-NLOS-GriddedIndicationsReq-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-SSR-SatellitePCVResidualsReq-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext5_specs_37 = { + sizeof(struct GNSS_GenericAssistDataReqElement__ext5), + offsetof(struct GNSS_GenericAssistDataReqElement__ext5, _asn_ctx), + asn_MAP_ext5_tag2el_37, + 2, /* Count of tags in the map */ + asn_MAP_ext5_oms_37, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext5_37 = { + "ext5", + "ext5", + &asn_OP_SEQUENCE, + asn_DEF_ext5_tags_37, + sizeof(asn_DEF_ext5_tags_37) + /sizeof(asn_DEF_ext5_tags_37[0]) - 1, /* 1 */ + asn_DEF_ext5_tags_37, /* Same as above */ + sizeof(asn_DEF_ext5_tags_37) + /sizeof(asn_DEF_ext5_tags_37[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext5_37, + 2, /* Elements count */ + &asn_SPC_ext5_specs_37 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_GenericAssistDataReqElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_ID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-ID" + }, + { ATF_POINTER, 15, offsetof(struct GNSS_GenericAssistDataReqElement, sbas_ID), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SBAS_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sbas-ID" + }, + { ATF_POINTER, 14, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_TimeModelsReq), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_TimeModelListReq, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-TimeModelsReq" + }, + { ATF_POINTER, 13, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_DifferentialCorrectionsReq), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_DifferentialCorrectionsReq, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-DifferentialCorrectionsReq" + }, + { ATF_POINTER, 12, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_NavigationModelReq), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_GNSS_NavigationModelReq, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-NavigationModelReq" + }, + { ATF_POINTER, 11, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_RealTimeIntegrityReq), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RealTimeIntegrityReq, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RealTimeIntegrityReq" + }, + { ATF_POINTER, 10, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_DataBitAssistanceReq), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_DataBitAssistanceReq, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-DataBitAssistanceReq" + }, + { ATF_POINTER, 9, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_AcquisitionAssistanceReq), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_AcquisitionAssistanceReq, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-AcquisitionAssistanceReq" + }, + { ATF_POINTER, 8, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_AlmanacReq), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_AlmanacReq, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-AlmanacReq" + }, + { ATF_POINTER, 7, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_UTCModelReq), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_UTC_ModelReq, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-UTCModelReq" + }, + { ATF_POINTER, 6, offsetof(struct GNSS_GenericAssistDataReqElement, gnss_AuxiliaryInformationReq), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_AuxiliaryInformationReq, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-AuxiliaryInformationReq" + }, + { ATF_POINTER, 5, offsetof(struct GNSS_GenericAssistDataReqElement, ext1), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + 0, + &asn_DEF_ext1_14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 4, offsetof(struct GNSS_GenericAssistDataReqElement, ext2), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + 0, + &asn_DEF_ext2_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataReqElement, ext3), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + 0, + &asn_DEF_ext3_26, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataReqElement, ext4), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + 0, + &asn_DEF_ext4_33, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext4" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataReqElement, ext5), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + 0, + &asn_DEF_ext5_37, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext5" + }, +}; +static const int asn_MAP_GNSS_GenericAssistDataReqElement_oms_1[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; +static const ber_tlv_tag_t asn_DEF_GNSS_GenericAssistDataReqElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_GenericAssistDataReqElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-ID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sbas-ID */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-TimeModelsReq */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-DifferentialCorrectionsReq */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-NavigationModelReq */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gnss-RealTimeIntegrityReq */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnss-DataBitAssistanceReq */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* gnss-AcquisitionAssistanceReq */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* gnss-AlmanacReq */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* gnss-UTCModelReq */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* gnss-AuxiliaryInformationReq */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* ext3 */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* ext4 */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 } /* ext5 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_GenericAssistDataReqElement_specs_1 = { + sizeof(struct GNSS_GenericAssistDataReqElement), + offsetof(struct GNSS_GenericAssistDataReqElement, _asn_ctx), + asn_MAP_GNSS_GenericAssistDataReqElement_tag2el_1, + 16, /* Count of tags in the map */ + asn_MAP_GNSS_GenericAssistDataReqElement_oms_1, /* Optional members */ + 10, 5, /* Root/Additions */ + 11, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_GenericAssistDataReqElement = { + "GNSS-GenericAssistDataReqElement", + "GNSS-GenericAssistDataReqElement", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_GenericAssistDataReqElement_tags_1, + sizeof(asn_DEF_GNSS_GenericAssistDataReqElement_tags_1) + /sizeof(asn_DEF_GNSS_GenericAssistDataReqElement_tags_1[0]), /* 1 */ + asn_DEF_GNSS_GenericAssistDataReqElement_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_GenericAssistDataReqElement_tags_1) + /sizeof(asn_DEF_GNSS_GenericAssistDataReqElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_GenericAssistDataReqElement_1, + 16, /* Elements count */ + &asn_SPC_GNSS_GenericAssistDataReqElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-GenericAssistDataReqElement.h b/asn.1/lpp_generated/GNSS-GenericAssistDataReqElement.h new file mode 100644 index 00000000..157bb908 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-GenericAssistDataReqElement.h @@ -0,0 +1,133 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_GenericAssistDataReqElement_H_ +#define _GNSS_GenericAssistDataReqElement_H_ + + +#include + +/* Including external dependencies */ +#include "GNSS-ID.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SBAS_ID; +struct GNSS_TimeModelListReq; +struct GNSS_DifferentialCorrectionsReq; +struct GNSS_NavigationModelReq; +struct GNSS_RealTimeIntegrityReq; +struct GNSS_DataBitAssistanceReq; +struct GNSS_AcquisitionAssistanceReq; +struct GNSS_AlmanacReq; +struct GNSS_UTC_ModelReq; +struct GNSS_AuxiliaryInformationReq; +struct BDS_DifferentialCorrectionsReq_r12; +struct BDS_GridModelReq_r12; +struct GNSS_RTK_ObservationsReq_r15; +struct GLO_RTK_BiasInformationReq_r15; +struct GNSS_RTK_MAC_CorrectionDifferencesReq_r15; +struct GNSS_RTK_ResidualsReq_r15; +struct GNSS_RTK_FKP_GradientsReq_r15; +struct GNSS_SSR_OrbitCorrectionsReq_r15; +struct GNSS_SSR_ClockCorrectionsReq_r15; +struct GNSS_SSR_CodeBiasReq_r15; +struct GNSS_SSR_URA_Req_r16; +struct GNSS_SSR_PhaseBiasReq_r16; +struct GNSS_SSR_STEC_CorrectionReq_r16; +struct GNSS_SSR_GriddedCorrectionReq_r16; +struct NavIC_DifferentialCorrectionsReq_r16; +struct NavIC_GridModelReq_r16; +struct GNSS_SSR_OrbitCorrectionsSet2Req_r17; +struct GNSS_SSR_ClockCorrectionsSet2Req_r17; +struct GNSS_SSR_URA_Set2Req_r17; +struct GNSS_LOS_NLOS_GriddedIndicationsReq_r18; +struct GNSS_SSR_SatellitePCVResidualsReq_r18; + +/* GNSS-GenericAssistDataReqElement */ +typedef struct GNSS_GenericAssistDataReqElement { + GNSS_ID_t gnss_ID; + struct SBAS_ID *sbas_ID; /* OPTIONAL */ + struct GNSS_TimeModelListReq *gnss_TimeModelsReq; /* OPTIONAL */ + struct GNSS_DifferentialCorrectionsReq *gnss_DifferentialCorrectionsReq; /* OPTIONAL */ + struct GNSS_NavigationModelReq *gnss_NavigationModelReq; /* OPTIONAL */ + struct GNSS_RealTimeIntegrityReq *gnss_RealTimeIntegrityReq; /* OPTIONAL */ + struct GNSS_DataBitAssistanceReq *gnss_DataBitAssistanceReq; /* OPTIONAL */ + struct GNSS_AcquisitionAssistanceReq *gnss_AcquisitionAssistanceReq; /* OPTIONAL */ + struct GNSS_AlmanacReq *gnss_AlmanacReq; /* OPTIONAL */ + struct GNSS_UTC_ModelReq *gnss_UTCModelReq; /* OPTIONAL */ + struct GNSS_AuxiliaryInformationReq *gnss_AuxiliaryInformationReq; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_GenericAssistDataReqElement__ext1 { + struct BDS_DifferentialCorrectionsReq_r12 *bds_DifferentialCorrectionsReq_r12; /* OPTIONAL */ + struct BDS_GridModelReq_r12 *bds_GridModelReq_r12; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct GNSS_GenericAssistDataReqElement__ext2 { + struct GNSS_RTK_ObservationsReq_r15 *gnss_RTK_ObservationsReq_r15; /* OPTIONAL */ + struct GLO_RTK_BiasInformationReq_r15 *glo_RTK_BiasInformationReq_r15; /* OPTIONAL */ + struct GNSS_RTK_MAC_CorrectionDifferencesReq_r15 *gnss_RTK_MAC_CorrectionDifferencesReq_r15; /* OPTIONAL */ + struct GNSS_RTK_ResidualsReq_r15 *gnss_RTK_ResidualsReq_r15; /* OPTIONAL */ + struct GNSS_RTK_FKP_GradientsReq_r15 *gnss_RTK_FKP_GradientsReq_r15; /* OPTIONAL */ + struct GNSS_SSR_OrbitCorrectionsReq_r15 *gnss_SSR_OrbitCorrectionsReq_r15; /* OPTIONAL */ + struct GNSS_SSR_ClockCorrectionsReq_r15 *gnss_SSR_ClockCorrectionsReq_r15; /* OPTIONAL */ + struct GNSS_SSR_CodeBiasReq_r15 *gnss_SSR_CodeBiasReq_r15; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct GNSS_GenericAssistDataReqElement__ext3 { + struct GNSS_SSR_URA_Req_r16 *gnss_SSR_URA_Req_r16; /* OPTIONAL */ + struct GNSS_SSR_PhaseBiasReq_r16 *gnss_SSR_PhaseBiasReq_r16; /* OPTIONAL */ + struct GNSS_SSR_STEC_CorrectionReq_r16 *gnss_SSR_STEC_CorrectionReq_r16; /* OPTIONAL */ + struct GNSS_SSR_GriddedCorrectionReq_r16 *gnss_SSR_GriddedCorrectionReq_r16; /* OPTIONAL */ + struct NavIC_DifferentialCorrectionsReq_r16 *navic_DifferentialCorrectionsReq_r16; /* OPTIONAL */ + struct NavIC_GridModelReq_r16 *navic_GridModelReq_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + struct GNSS_GenericAssistDataReqElement__ext4 { + struct GNSS_SSR_OrbitCorrectionsSet2Req_r17 *gnss_SSR_OrbitCorrectionsSet2Req_r17; /* OPTIONAL */ + struct GNSS_SSR_ClockCorrectionsSet2Req_r17 *gnss_SSR_ClockCorrectionsSet2Req_r17; /* OPTIONAL */ + struct GNSS_SSR_URA_Set2Req_r17 *gnss_SSR_URA_Set2Req_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext4; + struct GNSS_GenericAssistDataReqElement__ext5 { + struct GNSS_LOS_NLOS_GriddedIndicationsReq_r18 *gnss_LOS_NLOS_GriddedIndicationsReq_r18; /* OPTIONAL */ + struct GNSS_SSR_SatellitePCVResidualsReq_r18 *gnss_SSR_SatellitePCVResidualsReq_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext5; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_GenericAssistDataReqElement_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_GenericAssistDataReqElement; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_GenericAssistDataReqElement_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_GenericAssistDataReqElement_1[16]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_GenericAssistDataReqElement_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-GenericAssistDataSupportElement.c b/asn.1/lpp_generated/GNSS-GenericAssistDataSupportElement.c new file mode 100644 index 00000000..6d038865 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-GenericAssistDataSupportElement.c @@ -0,0 +1,962 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-GenericAssistDataSupportElement.h" + +#include "SBAS-ID.h" +#include "GNSS-TimeModelListSupport.h" +#include "GNSS-DifferentialCorrectionsSupport.h" +#include "GNSS-NavigationModelSupport.h" +#include "GNSS-RealTimeIntegritySupport.h" +#include "GNSS-DataBitAssistanceSupport.h" +#include "GNSS-AcquisitionAssistanceSupport.h" +#include "GNSS-AlmanacSupport.h" +#include "GNSS-UTC-ModelSupport.h" +#include "GNSS-AuxiliaryInformationSupport.h" +#include "BDS-DifferentialCorrectionsSupport-r12.h" +#include "BDS-GridModelSupport-r12.h" +#include "GNSS-RTK-ObservationsSupport-r15.h" +#include "GLO-RTK-BiasInformationSupport-r15.h" +#include "GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.h" +#include "GNSS-RTK-ResidualsSupport-r15.h" +#include "GNSS-RTK-FKP-GradientsSupport-r15.h" +#include "GNSS-SSR-OrbitCorrectionsSupport-r15.h" +#include "GNSS-SSR-ClockCorrectionsSupport-r15.h" +#include "GNSS-SSR-CodeBiasSupport-r15.h" +#include "GNSS-SSR-URA-Support-r16.h" +#include "GNSS-SSR-PhaseBiasSupport-r16.h" +#include "GNSS-SSR-STEC-CorrectionSupport-r16.h" +#include "GNSS-SSR-GriddedCorrectionSupport-r16.h" +#include "NavIC-DifferentialCorrectionsSupport-r16.h" +#include "NavIC-GridModelSupport-r16.h" +#include "GNSS-SSR-OrbitCorrectionsSet2Support-r17.h" +#include "GNSS-SSR-ClockCorrectionsSet2Support-r17.h" +#include "GNSS-SSR-URA-Set2Support-r17.h" +#include "GNSS-LOS-NLOS-GriddedIndicationsSupport-r18.h" +#include "GNSS-SSR-SatellitePCVResidualsSupport-r18.h" +static asn_TYPE_member_t asn_MBR_ext1_14[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataSupportElement__ext1, bds_DifferentialCorrectionsSupport_r12), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BDS_DifferentialCorrectionsSupport_r12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bds-DifferentialCorrectionsSupport-r12" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataSupportElement__ext1, bds_GridModelSupport_r12), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BDS_GridModelSupport_r12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bds-GridModelSupport-r12" + }, +}; +static const int asn_MAP_ext1_oms_14[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_14[] = { + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_14[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bds-DifferentialCorrectionsSupport-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bds-GridModelSupport-r12 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_14 = { + sizeof(struct GNSS_GenericAssistDataSupportElement__ext1), + offsetof(struct GNSS_GenericAssistDataSupportElement__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_14, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_14, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_14 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_14, + sizeof(asn_DEF_ext1_tags_14) + /sizeof(asn_DEF_ext1_tags_14[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_14, /* Same as above */ + sizeof(asn_DEF_ext1_tags_14) + /sizeof(asn_DEF_ext1_tags_14[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_14, + 2, /* Elements count */ + &asn_SPC_ext1_specs_14 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_17[] = { + { ATF_POINTER, 8, offsetof(struct GNSS_GenericAssistDataSupportElement__ext2, gnss_RTK_ObservationsSupport_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_ObservationsSupport_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-ObservationsSupport-r15" + }, + { ATF_POINTER, 7, offsetof(struct GNSS_GenericAssistDataSupportElement__ext2, glo_RTK_BiasInformationSupport_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GLO_RTK_BiasInformationSupport_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "glo-RTK-BiasInformationSupport-r15" + }, + { ATF_POINTER, 6, offsetof(struct GNSS_GenericAssistDataSupportElement__ext2, gnss_RTK_MAC_CorrectionDifferencesSupport_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-MAC-CorrectionDifferencesSupport-r15" + }, + { ATF_POINTER, 5, offsetof(struct GNSS_GenericAssistDataSupportElement__ext2, gnss_RTK_ResidualsSupport_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_ResidualsSupport_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-ResidualsSupport-r15" + }, + { ATF_POINTER, 4, offsetof(struct GNSS_GenericAssistDataSupportElement__ext2, gnss_RTK_FKP_GradientsSupport_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_FKP_GradientsSupport_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-FKP-GradientsSupport-r15" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataSupportElement__ext2, gnss_SSR_OrbitCorrectionsSupport_r15), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-OrbitCorrectionsSupport-r15" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataSupportElement__ext2, gnss_SSR_ClockCorrectionsSupport_r15), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-ClockCorrectionsSupport-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataSupportElement__ext2, gnss_SSR_CodeBiasSupport_r15), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_CodeBiasSupport_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-CodeBiasSupport-r15" + }, +}; +static const int asn_MAP_ext2_oms_17[] = { 0, 1, 2, 3, 4, 5, 6, 7 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_17[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-RTK-ObservationsSupport-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* glo-RTK-BiasInformationSupport-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-RTK-MAC-CorrectionDifferencesSupport-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-RTK-ResidualsSupport-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-RTK-FKP-GradientsSupport-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gnss-SSR-OrbitCorrectionsSupport-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnss-SSR-ClockCorrectionsSupport-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* gnss-SSR-CodeBiasSupport-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_17 = { + sizeof(struct GNSS_GenericAssistDataSupportElement__ext2), + offsetof(struct GNSS_GenericAssistDataSupportElement__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_17, + 8, /* Count of tags in the map */ + asn_MAP_ext2_oms_17, /* Optional members */ + 8, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_17 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_17, + sizeof(asn_DEF_ext2_tags_17) + /sizeof(asn_DEF_ext2_tags_17[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_17, /* Same as above */ + sizeof(asn_DEF_ext2_tags_17) + /sizeof(asn_DEF_ext2_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_17, + 8, /* Elements count */ + &asn_SPC_ext2_specs_17 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_26[] = { + { ATF_POINTER, 6, offsetof(struct GNSS_GenericAssistDataSupportElement__ext3, gnss_SSR_URA_Support_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_URA_Support_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-URA-Support-r16" + }, + { ATF_POINTER, 5, offsetof(struct GNSS_GenericAssistDataSupportElement__ext3, gnss_SSR_PhaseBiasSupport_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_PhaseBiasSupport_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PhaseBiasSupport-r16" + }, + { ATF_POINTER, 4, offsetof(struct GNSS_GenericAssistDataSupportElement__ext3, gnss_SSR_STEC_CorrectionSupport_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-STEC-CorrectionSupport-r16" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataSupportElement__ext3, gnss_SSR_GriddedCorrectionSupport_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-GriddedCorrectionSupport-r16" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataSupportElement__ext3, navic_DifferentialCorrectionsSupport_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NavIC_DifferentialCorrectionsSupport_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "navic-DifferentialCorrectionsSupport-r16" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataSupportElement__ext3, navic_GridModelSupport_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NavIC_GridModelSupport_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "navic-GridModelSupport-r16" + }, +}; +static const int asn_MAP_ext3_oms_26[] = { 0, 1, 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_26[] = { + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_26[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SSR-URA-Support-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-SSR-PhaseBiasSupport-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-SSR-STEC-CorrectionSupport-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-SSR-GriddedCorrectionSupport-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* navic-DifferentialCorrectionsSupport-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* navic-GridModelSupport-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_26 = { + sizeof(struct GNSS_GenericAssistDataSupportElement__ext3), + offsetof(struct GNSS_GenericAssistDataSupportElement__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_26, + 6, /* Count of tags in the map */ + asn_MAP_ext3_oms_26, /* Optional members */ + 6, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_26 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_26, + sizeof(asn_DEF_ext3_tags_26) + /sizeof(asn_DEF_ext3_tags_26[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_26, /* Same as above */ + sizeof(asn_DEF_ext3_tags_26) + /sizeof(asn_DEF_ext3_tags_26[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_26, + 6, /* Elements count */ + &asn_SPC_ext3_specs_26 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext4_33[] = { + { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataSupportElement__ext4, gnss_SSR_OrbitCorrectionsSet2Support_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Support_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-OrbitCorrectionsSet2Support-r17" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataSupportElement__ext4, gnss_SSR_ClockCorrectionsSet2Support_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_ClockCorrectionsSet2Support_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-ClockCorrectionsSet2Support-r17" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataSupportElement__ext4, gnss_SSR_URA_Set2Support_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_URA_Set2Support_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-URA-Set2Support-r17" + }, +}; +static const int asn_MAP_ext4_oms_33[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext4_tags_33[] = { + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext4_tag2el_33[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SSR-OrbitCorrectionsSet2Support-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-SSR-ClockCorrectionsSet2Support-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gnss-SSR-URA-Set2Support-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext4_specs_33 = { + sizeof(struct GNSS_GenericAssistDataSupportElement__ext4), + offsetof(struct GNSS_GenericAssistDataSupportElement__ext4, _asn_ctx), + asn_MAP_ext4_tag2el_33, + 3, /* Count of tags in the map */ + asn_MAP_ext4_oms_33, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext4_33 = { + "ext4", + "ext4", + &asn_OP_SEQUENCE, + asn_DEF_ext4_tags_33, + sizeof(asn_DEF_ext4_tags_33) + /sizeof(asn_DEF_ext4_tags_33[0]) - 1, /* 1 */ + asn_DEF_ext4_tags_33, /* Same as above */ + sizeof(asn_DEF_ext4_tags_33) + /sizeof(asn_DEF_ext4_tags_33[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext4_33, + 3, /* Elements count */ + &asn_SPC_ext4_specs_33 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext5_37[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataSupportElement__ext5, gnss_LOS_NLOS_GriddedIndicationsSupport_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsSupport_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-LOS-NLOS-GriddedIndicationsSupport-r18" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataSupportElement__ext5, gnss_SSR_SatellitePCVResidualsSupport_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_SatellitePCVResidualsSupport_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-SatellitePCVResidualsSupport-r18" + }, +}; +static const int asn_MAP_ext5_oms_37[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext5_tags_37[] = { + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext5_tag2el_37[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-LOS-NLOS-GriddedIndicationsSupport-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-SSR-SatellitePCVResidualsSupport-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext5_specs_37 = { + sizeof(struct GNSS_GenericAssistDataSupportElement__ext5), + offsetof(struct GNSS_GenericAssistDataSupportElement__ext5, _asn_ctx), + asn_MAP_ext5_tag2el_37, + 2, /* Count of tags in the map */ + asn_MAP_ext5_oms_37, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext5_37 = { + "ext5", + "ext5", + &asn_OP_SEQUENCE, + asn_DEF_ext5_tags_37, + sizeof(asn_DEF_ext5_tags_37) + /sizeof(asn_DEF_ext5_tags_37[0]) - 1, /* 1 */ + asn_DEF_ext5_tags_37, /* Same as above */ + sizeof(asn_DEF_ext5_tags_37) + /sizeof(asn_DEF_ext5_tags_37[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext5_37, + 2, /* Elements count */ + &asn_SPC_ext5_specs_37 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_GenericAssistDataSupportElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_ID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-ID" + }, + { ATF_POINTER, 15, offsetof(struct GNSS_GenericAssistDataSupportElement, sbas_ID), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SBAS_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sbas-ID" + }, + { ATF_POINTER, 14, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_TimeModelsSupport), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_TimeModelListSupport, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-TimeModelsSupport" + }, + { ATF_POINTER, 13, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_DifferentialCorrectionsSupport), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_DifferentialCorrectionsSupport, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-DifferentialCorrectionsSupport" + }, + { ATF_POINTER, 12, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_NavigationModelSupport), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_NavigationModelSupport, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-NavigationModelSupport" + }, + { ATF_POINTER, 11, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_RealTimeIntegritySupport), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RealTimeIntegritySupport, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RealTimeIntegritySupport" + }, + { ATF_POINTER, 10, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_DataBitAssistanceSupport), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_DataBitAssistanceSupport, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-DataBitAssistanceSupport" + }, + { ATF_POINTER, 9, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_AcquisitionAssistanceSupport), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_AcquisitionAssistanceSupport, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-AcquisitionAssistanceSupport" + }, + { ATF_POINTER, 8, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_AlmanacSupport), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_AlmanacSupport, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-AlmanacSupport" + }, + { ATF_POINTER, 7, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_UTC_ModelSupport), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_UTC_ModelSupport, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-UTC-ModelSupport" + }, + { ATF_POINTER, 6, offsetof(struct GNSS_GenericAssistDataSupportElement, gnss_AuxiliaryInformationSupport), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_AuxiliaryInformationSupport, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-AuxiliaryInformationSupport" + }, + { ATF_POINTER, 5, offsetof(struct GNSS_GenericAssistDataSupportElement, ext1), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + 0, + &asn_DEF_ext1_14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 4, offsetof(struct GNSS_GenericAssistDataSupportElement, ext2), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + 0, + &asn_DEF_ext2_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_GenericAssistDataSupportElement, ext3), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + 0, + &asn_DEF_ext3_26, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_GenericAssistDataSupportElement, ext4), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + 0, + &asn_DEF_ext4_33, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext4" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_GenericAssistDataSupportElement, ext5), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + 0, + &asn_DEF_ext5_37, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext5" + }, +}; +static const int asn_MAP_GNSS_GenericAssistDataSupportElement_oms_1[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; +static const ber_tlv_tag_t asn_DEF_GNSS_GenericAssistDataSupportElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_GenericAssistDataSupportElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-ID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sbas-ID */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-TimeModelsSupport */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-DifferentialCorrectionsSupport */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-NavigationModelSupport */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gnss-RealTimeIntegritySupport */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnss-DataBitAssistanceSupport */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* gnss-AcquisitionAssistanceSupport */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* gnss-AlmanacSupport */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* gnss-UTC-ModelSupport */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* gnss-AuxiliaryInformationSupport */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* ext3 */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* ext4 */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 } /* ext5 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_GenericAssistDataSupportElement_specs_1 = { + sizeof(struct GNSS_GenericAssistDataSupportElement), + offsetof(struct GNSS_GenericAssistDataSupportElement, _asn_ctx), + asn_MAP_GNSS_GenericAssistDataSupportElement_tag2el_1, + 16, /* Count of tags in the map */ + asn_MAP_GNSS_GenericAssistDataSupportElement_oms_1, /* Optional members */ + 10, 5, /* Root/Additions */ + 11, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_GenericAssistDataSupportElement = { + "GNSS-GenericAssistDataSupportElement", + "GNSS-GenericAssistDataSupportElement", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_GenericAssistDataSupportElement_tags_1, + sizeof(asn_DEF_GNSS_GenericAssistDataSupportElement_tags_1) + /sizeof(asn_DEF_GNSS_GenericAssistDataSupportElement_tags_1[0]), /* 1 */ + asn_DEF_GNSS_GenericAssistDataSupportElement_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_GenericAssistDataSupportElement_tags_1) + /sizeof(asn_DEF_GNSS_GenericAssistDataSupportElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_GenericAssistDataSupportElement_1, + 16, /* Elements count */ + &asn_SPC_GNSS_GenericAssistDataSupportElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-GenericAssistDataSupportElement.h b/asn.1/lpp_generated/GNSS-GenericAssistDataSupportElement.h new file mode 100644 index 00000000..01e65f2b --- /dev/null +++ b/asn.1/lpp_generated/GNSS-GenericAssistDataSupportElement.h @@ -0,0 +1,133 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_GenericAssistDataSupportElement_H_ +#define _GNSS_GenericAssistDataSupportElement_H_ + + +#include + +/* Including external dependencies */ +#include "GNSS-ID.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SBAS_ID; +struct GNSS_TimeModelListSupport; +struct GNSS_DifferentialCorrectionsSupport; +struct GNSS_NavigationModelSupport; +struct GNSS_RealTimeIntegritySupport; +struct GNSS_DataBitAssistanceSupport; +struct GNSS_AcquisitionAssistanceSupport; +struct GNSS_AlmanacSupport; +struct GNSS_UTC_ModelSupport; +struct GNSS_AuxiliaryInformationSupport; +struct BDS_DifferentialCorrectionsSupport_r12; +struct BDS_GridModelSupport_r12; +struct GNSS_RTK_ObservationsSupport_r15; +struct GLO_RTK_BiasInformationSupport_r15; +struct GNSS_RTK_MAC_CorrectionDifferencesSupport_r15; +struct GNSS_RTK_ResidualsSupport_r15; +struct GNSS_RTK_FKP_GradientsSupport_r15; +struct GNSS_SSR_OrbitCorrectionsSupport_r15; +struct GNSS_SSR_ClockCorrectionsSupport_r15; +struct GNSS_SSR_CodeBiasSupport_r15; +struct GNSS_SSR_URA_Support_r16; +struct GNSS_SSR_PhaseBiasSupport_r16; +struct GNSS_SSR_STEC_CorrectionSupport_r16; +struct GNSS_SSR_GriddedCorrectionSupport_r16; +struct NavIC_DifferentialCorrectionsSupport_r16; +struct NavIC_GridModelSupport_r16; +struct GNSS_SSR_OrbitCorrectionsSet2Support_r17; +struct GNSS_SSR_ClockCorrectionsSet2Support_r17; +struct GNSS_SSR_URA_Set2Support_r17; +struct GNSS_LOS_NLOS_GriddedIndicationsSupport_r18; +struct GNSS_SSR_SatellitePCVResidualsSupport_r18; + +/* GNSS-GenericAssistDataSupportElement */ +typedef struct GNSS_GenericAssistDataSupportElement { + GNSS_ID_t gnss_ID; + struct SBAS_ID *sbas_ID; /* OPTIONAL */ + struct GNSS_TimeModelListSupport *gnss_TimeModelsSupport; /* OPTIONAL */ + struct GNSS_DifferentialCorrectionsSupport *gnss_DifferentialCorrectionsSupport; /* OPTIONAL */ + struct GNSS_NavigationModelSupport *gnss_NavigationModelSupport; /* OPTIONAL */ + struct GNSS_RealTimeIntegritySupport *gnss_RealTimeIntegritySupport; /* OPTIONAL */ + struct GNSS_DataBitAssistanceSupport *gnss_DataBitAssistanceSupport; /* OPTIONAL */ + struct GNSS_AcquisitionAssistanceSupport *gnss_AcquisitionAssistanceSupport; /* OPTIONAL */ + struct GNSS_AlmanacSupport *gnss_AlmanacSupport; /* OPTIONAL */ + struct GNSS_UTC_ModelSupport *gnss_UTC_ModelSupport; /* OPTIONAL */ + struct GNSS_AuxiliaryInformationSupport *gnss_AuxiliaryInformationSupport; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_GenericAssistDataSupportElement__ext1 { + struct BDS_DifferentialCorrectionsSupport_r12 *bds_DifferentialCorrectionsSupport_r12; /* OPTIONAL */ + struct BDS_GridModelSupport_r12 *bds_GridModelSupport_r12; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct GNSS_GenericAssistDataSupportElement__ext2 { + struct GNSS_RTK_ObservationsSupport_r15 *gnss_RTK_ObservationsSupport_r15; /* OPTIONAL */ + struct GLO_RTK_BiasInformationSupport_r15 *glo_RTK_BiasInformationSupport_r15; /* OPTIONAL */ + struct GNSS_RTK_MAC_CorrectionDifferencesSupport_r15 *gnss_RTK_MAC_CorrectionDifferencesSupport_r15; /* OPTIONAL */ + struct GNSS_RTK_ResidualsSupport_r15 *gnss_RTK_ResidualsSupport_r15; /* OPTIONAL */ + struct GNSS_RTK_FKP_GradientsSupport_r15 *gnss_RTK_FKP_GradientsSupport_r15; /* OPTIONAL */ + struct GNSS_SSR_OrbitCorrectionsSupport_r15 *gnss_SSR_OrbitCorrectionsSupport_r15; /* OPTIONAL */ + struct GNSS_SSR_ClockCorrectionsSupport_r15 *gnss_SSR_ClockCorrectionsSupport_r15; /* OPTIONAL */ + struct GNSS_SSR_CodeBiasSupport_r15 *gnss_SSR_CodeBiasSupport_r15; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct GNSS_GenericAssistDataSupportElement__ext3 { + struct GNSS_SSR_URA_Support_r16 *gnss_SSR_URA_Support_r16; /* OPTIONAL */ + struct GNSS_SSR_PhaseBiasSupport_r16 *gnss_SSR_PhaseBiasSupport_r16; /* OPTIONAL */ + struct GNSS_SSR_STEC_CorrectionSupport_r16 *gnss_SSR_STEC_CorrectionSupport_r16; /* OPTIONAL */ + struct GNSS_SSR_GriddedCorrectionSupport_r16 *gnss_SSR_GriddedCorrectionSupport_r16; /* OPTIONAL */ + struct NavIC_DifferentialCorrectionsSupport_r16 *navic_DifferentialCorrectionsSupport_r16; /* OPTIONAL */ + struct NavIC_GridModelSupport_r16 *navic_GridModelSupport_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + struct GNSS_GenericAssistDataSupportElement__ext4 { + struct GNSS_SSR_OrbitCorrectionsSet2Support_r17 *gnss_SSR_OrbitCorrectionsSet2Support_r17; /* OPTIONAL */ + struct GNSS_SSR_ClockCorrectionsSet2Support_r17 *gnss_SSR_ClockCorrectionsSet2Support_r17; /* OPTIONAL */ + struct GNSS_SSR_URA_Set2Support_r17 *gnss_SSR_URA_Set2Support_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext4; + struct GNSS_GenericAssistDataSupportElement__ext5 { + struct GNSS_LOS_NLOS_GriddedIndicationsSupport_r18 *gnss_LOS_NLOS_GriddedIndicationsSupport_r18; /* OPTIONAL */ + struct GNSS_SSR_SatellitePCVResidualsSupport_r18 *gnss_SSR_SatellitePCVResidualsSupport_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext5; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_GenericAssistDataSupportElement_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_GenericAssistDataSupportElement; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_GenericAssistDataSupportElement_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_GenericAssistDataSupportElement_1[16]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_GenericAssistDataSupportElement_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-GenericAssistanceDataSupport.c b/asn.1/lpp_generated/GNSS-GenericAssistanceDataSupport.c new file mode 100644 index 00000000..f51f2378 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-GenericAssistanceDataSupport.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-GenericAssistanceDataSupport.h" + +#include "GNSS-GenericAssistDataSupportElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_GenericAssistanceDataSupport_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_GenericAssistanceDataSupport_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_GenericAssistDataSupportElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_GenericAssistanceDataSupport_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_GenericAssistanceDataSupport_specs_1 = { + sizeof(struct GNSS_GenericAssistanceDataSupport), + offsetof(struct GNSS_GenericAssistanceDataSupport, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_GenericAssistanceDataSupport = { + "GNSS-GenericAssistanceDataSupport", + "GNSS-GenericAssistanceDataSupport", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_GenericAssistanceDataSupport_tags_1, + sizeof(asn_DEF_GNSS_GenericAssistanceDataSupport_tags_1) + /sizeof(asn_DEF_GNSS_GenericAssistanceDataSupport_tags_1[0]), /* 1 */ + asn_DEF_GNSS_GenericAssistanceDataSupport_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_GenericAssistanceDataSupport_tags_1) + /sizeof(asn_DEF_GNSS_GenericAssistanceDataSupport_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_GenericAssistanceDataSupport_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_GenericAssistanceDataSupport_1, + 1, /* Single element */ + &asn_SPC_GNSS_GenericAssistanceDataSupport_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-GenericAssistanceDataSupport.h b/asn.1/lpp_generated/GNSS-GenericAssistanceDataSupport.h similarity index 82% rename from asn.1/generated/GNSS-GenericAssistanceDataSupport.h rename to asn.1/lpp_generated/GNSS-GenericAssistanceDataSupport.h index 4aa04006..a95b145e 100644 --- a/asn.1/generated/GNSS-GenericAssistanceDataSupport.h +++ b/asn.1/lpp_generated/GNSS-GenericAssistanceDataSupport.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_GenericAssistanceDataSupport_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_GenericAssistanceDataSupport_cons } #endif -/* Referred external types */ -#include "GNSS-GenericAssistDataSupportElement.h" - #endif /* _GNSS_GenericAssistanceDataSupport_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-ID-BDS-SatElement-r16.c b/asn.1/lpp_generated/GNSS-ID-BDS-SatElement-r16.c new file mode 100644 index 00000000..33cf0b97 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-ID-BDS-SatElement-r16.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-ID-BDS-SatElement-r16.h" + +static int +memb_satType_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_satType_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_ID_BDS_SatElement_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ID_BDS_SatElement_r16, svID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ID_BDS_SatElement_r16, satType_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_satType_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_satType_r16_constraint_1 + }, + 0, 0, /* No default value */ + "satType-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_ID_BDS_SatElement_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_ID_BDS_SatElement_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* satType-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_ID_BDS_SatElement_r16_specs_1 = { + sizeof(struct GNSS_ID_BDS_SatElement_r16), + offsetof(struct GNSS_ID_BDS_SatElement_r16, _asn_ctx), + asn_MAP_GNSS_ID_BDS_SatElement_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_ID_BDS_SatElement_r16 = { + "GNSS-ID-BDS-SatElement-r16", + "GNSS-ID-BDS-SatElement-r16", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_ID_BDS_SatElement_r16_tags_1, + sizeof(asn_DEF_GNSS_ID_BDS_SatElement_r16_tags_1) + /sizeof(asn_DEF_GNSS_ID_BDS_SatElement_r16_tags_1[0]), /* 1 */ + asn_DEF_GNSS_ID_BDS_SatElement_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_ID_BDS_SatElement_r16_tags_1) + /sizeof(asn_DEF_GNSS_ID_BDS_SatElement_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_ID_BDS_SatElement_r16_1, + 2, /* Elements count */ + &asn_SPC_GNSS_ID_BDS_SatElement_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-ID-BDS-SatElement-r16.h b/asn.1/lpp_generated/GNSS-ID-BDS-SatElement-r16.h similarity index 80% rename from asn.1/generated/GNSS-ID-BDS-SatElement-r16.h rename to asn.1/lpp_generated/GNSS-ID-BDS-SatElement-r16.h index dbc318b6..a476c547 100644 --- a/asn.1/generated/GNSS-ID-BDS-SatElement-r16.h +++ b/asn.1/lpp_generated/GNSS-ID-BDS-SatElement-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_ID_BDS_SatElement_r16_H_ diff --git a/asn.1/lpp_generated/GNSS-ID-BDS-r16.c b/asn.1/lpp_generated/GNSS-ID-BDS-r16.c new file mode 100644 index 00000000..f9018f3c --- /dev/null +++ b/asn.1/lpp_generated/GNSS-ID-BDS-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-ID-BDS-r16.h" + +#include "GNSS-ID-BDS-SatElement-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_ID_BDS_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_ID_BDS_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_ID_BDS_SatElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_ID_BDS_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_ID_BDS_r16_specs_1 = { + sizeof(struct GNSS_ID_BDS_r16), + offsetof(struct GNSS_ID_BDS_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_ID_BDS_r16 = { + "GNSS-ID-BDS-r16", + "GNSS-ID-BDS-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_ID_BDS_r16_tags_1, + sizeof(asn_DEF_GNSS_ID_BDS_r16_tags_1) + /sizeof(asn_DEF_GNSS_ID_BDS_r16_tags_1[0]), /* 1 */ + asn_DEF_GNSS_ID_BDS_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_ID_BDS_r16_tags_1) + /sizeof(asn_DEF_GNSS_ID_BDS_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_ID_BDS_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_ID_BDS_r16_1, + 1, /* Single element */ + &asn_SPC_GNSS_ID_BDS_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-ID-BDS-r16.h b/asn.1/lpp_generated/GNSS-ID-BDS-r16.h similarity index 79% rename from asn.1/generated/GNSS-ID-BDS-r16.h rename to asn.1/lpp_generated/GNSS-ID-BDS-r16.h index 9953a96b..b1f551c0 100644 --- a/asn.1/generated/GNSS-ID-BDS-r16.h +++ b/asn.1/lpp_generated/GNSS-ID-BDS-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_ID_BDS_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_ID_BDS_r16_constr_1; } #endif -/* Referred external types */ -#include "GNSS-ID-BDS-SatElement-r16.h" - #endif /* _GNSS_ID_BDS_r16_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-ID-Bitmap.c b/asn.1/lpp_generated/GNSS-ID-Bitmap.c new file mode 100644 index 00000000..c544f231 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-ID-Bitmap.c @@ -0,0 +1,104 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-ID-Bitmap.h" + +static int +memb_gnss_ids_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 16UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_ids_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_ID_Bitmap_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ID_Bitmap, gnss_ids), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_ids_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_ids_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-ids" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_ID_Bitmap_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_ID_Bitmap_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-ids */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_ID_Bitmap_specs_1 = { + sizeof(struct GNSS_ID_Bitmap), + offsetof(struct GNSS_ID_Bitmap, _asn_ctx), + asn_MAP_GNSS_ID_Bitmap_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_ID_Bitmap = { + "GNSS-ID-Bitmap", + "GNSS-ID-Bitmap", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_ID_Bitmap_tags_1, + sizeof(asn_DEF_GNSS_ID_Bitmap_tags_1) + /sizeof(asn_DEF_GNSS_ID_Bitmap_tags_1[0]), /* 1 */ + asn_DEF_GNSS_ID_Bitmap_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_ID_Bitmap_tags_1) + /sizeof(asn_DEF_GNSS_ID_Bitmap_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_ID_Bitmap_1, + 1, /* Elements count */ + &asn_SPC_GNSS_ID_Bitmap_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-ID-Bitmap.h b/asn.1/lpp_generated/GNSS-ID-Bitmap.h similarity index 79% rename from asn.1/generated/GNSS-ID-Bitmap.h rename to asn.1/lpp_generated/GNSS-ID-Bitmap.h index 88104d60..4f5cdefd 100644 --- a/asn.1/generated/GNSS-ID-Bitmap.h +++ b/asn.1/lpp_generated/GNSS-ID-Bitmap.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_ID_Bitmap_H_ @@ -27,7 +27,7 @@ typedef enum GNSS_ID_Bitmap__gnss_ids { GNSS_ID_Bitmap__gnss_ids_galileo = 3, GNSS_ID_Bitmap__gnss_ids_glonass = 4, GNSS_ID_Bitmap__gnss_ids_bds = 5, - GNSS_ID_Bitmap__gnss_ids_navic_v16xy = 6 + GNSS_ID_Bitmap__gnss_ids_navic_v1610 = 6 } e_GNSS_ID_Bitmap__gnss_ids; /* GNSS-ID-Bitmap */ diff --git a/asn.1/lpp_generated/GNSS-ID-GLONASS-SatElement.c b/asn.1/lpp_generated/GNSS-ID-GLONASS-SatElement.c new file mode 100644 index 00000000..bdaa96c3 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-ID-GLONASS-SatElement.c @@ -0,0 +1,136 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-ID-GLONASS-SatElement.h" + +static int +memb_channelNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -7L && value <= 13L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_channelNumber_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, -7, 13 } /* (-7..13) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_ID_GLONASS_SatElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ID_GLONASS_SatElement, svID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ID_GLONASS_SatElement, signalsAvailable), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalIDs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "signalsAvailable" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_ID_GLONASS_SatElement, channelNumber), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_channelNumber_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_channelNumber_constraint_1 + }, + 0, 0, /* No default value */ + "channelNumber" + }, +}; +static const int asn_MAP_GNSS_ID_GLONASS_SatElement_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_GNSS_ID_GLONASS_SatElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_ID_GLONASS_SatElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* signalsAvailable */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* channelNumber */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_ID_GLONASS_SatElement_specs_1 = { + sizeof(struct GNSS_ID_GLONASS_SatElement), + offsetof(struct GNSS_ID_GLONASS_SatElement, _asn_ctx), + asn_MAP_GNSS_ID_GLONASS_SatElement_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_GNSS_ID_GLONASS_SatElement_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_ID_GLONASS_SatElement = { + "GNSS-ID-GLONASS-SatElement", + "GNSS-ID-GLONASS-SatElement", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_ID_GLONASS_SatElement_tags_1, + sizeof(asn_DEF_GNSS_ID_GLONASS_SatElement_tags_1) + /sizeof(asn_DEF_GNSS_ID_GLONASS_SatElement_tags_1[0]), /* 1 */ + asn_DEF_GNSS_ID_GLONASS_SatElement_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_ID_GLONASS_SatElement_tags_1) + /sizeof(asn_DEF_GNSS_ID_GLONASS_SatElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_ID_GLONASS_SatElement_1, + 3, /* Elements count */ + &asn_SPC_GNSS_ID_GLONASS_SatElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-ID-GLONASS-SatElement.h b/asn.1/lpp_generated/GNSS-ID-GLONASS-SatElement.h similarity index 78% rename from asn.1/generated/GNSS-ID-GLONASS-SatElement.h rename to asn.1/lpp_generated/GNSS-ID-GLONASS-SatElement.h index c1309fc5..20d8ebb9 100644 --- a/asn.1/generated/GNSS-ID-GLONASS-SatElement.h +++ b/asn.1/lpp_generated/GNSS-ID-GLONASS-SatElement.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_ID_GLONASS_SatElement_H_ @@ -25,7 +25,7 @@ extern "C" { typedef struct GNSS_ID_GLONASS_SatElement { SV_ID_t svID; GNSS_SignalIDs_t signalsAvailable; - long *channelNumber /* OPTIONAL */; + long *channelNumber; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/GNSS-ID-GLONASS.c b/asn.1/lpp_generated/GNSS-ID-GLONASS.c new file mode 100644 index 00000000..0fca3ecb --- /dev/null +++ b/asn.1/lpp_generated/GNSS-ID-GLONASS.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-ID-GLONASS.h" + +#include "GNSS-ID-GLONASS-SatElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_ID_GLONASS_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_ID_GLONASS_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_ID_GLONASS_SatElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_ID_GLONASS_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_ID_GLONASS_specs_1 = { + sizeof(struct GNSS_ID_GLONASS), + offsetof(struct GNSS_ID_GLONASS, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_ID_GLONASS = { + "GNSS-ID-GLONASS", + "GNSS-ID-GLONASS", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_ID_GLONASS_tags_1, + sizeof(asn_DEF_GNSS_ID_GLONASS_tags_1) + /sizeof(asn_DEF_GNSS_ID_GLONASS_tags_1[0]), /* 1 */ + asn_DEF_GNSS_ID_GLONASS_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_ID_GLONASS_tags_1) + /sizeof(asn_DEF_GNSS_ID_GLONASS_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_ID_GLONASS_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_ID_GLONASS_1, + 1, /* Single element */ + &asn_SPC_GNSS_ID_GLONASS_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-ID-GLONASS.h b/asn.1/lpp_generated/GNSS-ID-GLONASS.h similarity index 79% rename from asn.1/generated/GNSS-ID-GLONASS.h rename to asn.1/lpp_generated/GNSS-ID-GLONASS.h index 9de280b1..285732f4 100644 --- a/asn.1/generated/GNSS-ID-GLONASS.h +++ b/asn.1/lpp_generated/GNSS-ID-GLONASS.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_ID_GLONASS_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_ID_GLONASS_constr_1; } #endif -/* Referred external types */ -#include "GNSS-ID-GLONASS-SatElement.h" - #endif /* _GNSS_ID_GLONASS_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-ID-GPS-SatElement.c b/asn.1/lpp_generated/GNSS-ID-GPS-SatElement.c new file mode 100644 index 00000000..e2ead711 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-ID-GPS-SatElement.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-ID-GPS-SatElement.h" + +asn_TYPE_member_t asn_MBR_GNSS_ID_GPS_SatElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ID_GPS_SatElement, svID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ID_GPS_SatElement, signalsAvailable), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalIDs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "signalsAvailable" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_ID_GPS_SatElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_ID_GPS_SatElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* signalsAvailable */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_ID_GPS_SatElement_specs_1 = { + sizeof(struct GNSS_ID_GPS_SatElement), + offsetof(struct GNSS_ID_GPS_SatElement, _asn_ctx), + asn_MAP_GNSS_ID_GPS_SatElement_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_ID_GPS_SatElement = { + "GNSS-ID-GPS-SatElement", + "GNSS-ID-GPS-SatElement", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_ID_GPS_SatElement_tags_1, + sizeof(asn_DEF_GNSS_ID_GPS_SatElement_tags_1) + /sizeof(asn_DEF_GNSS_ID_GPS_SatElement_tags_1[0]), /* 1 */ + asn_DEF_GNSS_ID_GPS_SatElement_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_ID_GPS_SatElement_tags_1) + /sizeof(asn_DEF_GNSS_ID_GPS_SatElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_ID_GPS_SatElement_1, + 2, /* Elements count */ + &asn_SPC_GNSS_ID_GPS_SatElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-ID-GPS-SatElement.h b/asn.1/lpp_generated/GNSS-ID-GPS-SatElement.h similarity index 79% rename from asn.1/generated/GNSS-ID-GPS-SatElement.h rename to asn.1/lpp_generated/GNSS-ID-GPS-SatElement.h index 688fd34c..b9c517f8 100644 --- a/asn.1/generated/GNSS-ID-GPS-SatElement.h +++ b/asn.1/lpp_generated/GNSS-ID-GPS-SatElement.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_ID_GPS_SatElement_H_ diff --git a/asn.1/lpp_generated/GNSS-ID-GPS.c b/asn.1/lpp_generated/GNSS-ID-GPS.c new file mode 100644 index 00000000..329c94ca --- /dev/null +++ b/asn.1/lpp_generated/GNSS-ID-GPS.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-ID-GPS.h" + +#include "GNSS-ID-GPS-SatElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_ID_GPS_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_ID_GPS_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_ID_GPS_SatElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_ID_GPS_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_ID_GPS_specs_1 = { + sizeof(struct GNSS_ID_GPS), + offsetof(struct GNSS_ID_GPS, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_ID_GPS = { + "GNSS-ID-GPS", + "GNSS-ID-GPS", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_ID_GPS_tags_1, + sizeof(asn_DEF_GNSS_ID_GPS_tags_1) + /sizeof(asn_DEF_GNSS_ID_GPS_tags_1[0]), /* 1 */ + asn_DEF_GNSS_ID_GPS_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_ID_GPS_tags_1) + /sizeof(asn_DEF_GNSS_ID_GPS_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_ID_GPS_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_ID_GPS_1, + 1, /* Single element */ + &asn_SPC_GNSS_ID_GPS_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-ID-GPS.h b/asn.1/lpp_generated/GNSS-ID-GPS.h similarity index 78% rename from asn.1/generated/GNSS-ID-GPS.h rename to asn.1/lpp_generated/GNSS-ID-GPS.h index 9e26f547..ada7a249 100644 --- a/asn.1/generated/GNSS-ID-GPS.h +++ b/asn.1/lpp_generated/GNSS-ID-GPS.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_ID_GPS_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_ID_GPS_constr_1; } #endif -/* Referred external types */ -#include "GNSS-ID-GPS-SatElement.h" - #endif /* _GNSS_ID_GPS_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-ID.c b/asn.1/lpp_generated/GNSS-ID.c new file mode 100644 index 00000000..e141c562 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-ID.c @@ -0,0 +1,134 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-ID.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_gnss_id_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_gnss_id_value2enum_2[] = { + { 0, 3, "gps" }, + { 1, 4, "sbas" }, + { 2, 4, "qzss" }, + { 3, 7, "galileo" }, + { 4, 7, "glonass" }, + { 5, 3, "bds" }, + { 6, 11, "navic-v1610" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_gnss_id_enum2value_2[] = { + 5, /* bds(5) */ + 3, /* galileo(3) */ + 4, /* glonass(4) */ + 0, /* gps(0) */ + 6, /* navic-v1610(6) */ + 2, /* qzss(2) */ + 1 /* sbas(1) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_gnss_id_specs_2 = { + asn_MAP_gnss_id_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_gnss_id_enum2value_2, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 6, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_gnss_id_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_gnss_id_2 = { + "gnss-id", + "gnss-id", + &asn_OP_NativeEnumerated, + asn_DEF_gnss_id_tags_2, + sizeof(asn_DEF_gnss_id_tags_2) + /sizeof(asn_DEF_gnss_id_tags_2[0]) - 1, /* 1 */ + asn_DEF_gnss_id_tags_2, /* Same as above */ + sizeof(asn_DEF_gnss_id_tags_2) + /sizeof(asn_DEF_gnss_id_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_gnss_id_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_gnss_id_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_ID_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ID, gnss_id), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_gnss_id_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-id" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_ID_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_ID_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-id */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_ID_specs_1 = { + sizeof(struct GNSS_ID), + offsetof(struct GNSS_ID, _asn_ctx), + asn_MAP_GNSS_ID_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_ID = { + "GNSS-ID", + "GNSS-ID", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_ID_tags_1, + sizeof(asn_DEF_GNSS_ID_tags_1) + /sizeof(asn_DEF_GNSS_ID_tags_1[0]), /* 1 */ + asn_DEF_GNSS_ID_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_ID_tags_1) + /sizeof(asn_DEF_GNSS_ID_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_ID_1, + 1, /* Elements count */ + &asn_SPC_GNSS_ID_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-ID.h b/asn.1/lpp_generated/GNSS-ID.h similarity index 80% rename from asn.1/generated/GNSS-ID.h rename to asn.1/lpp_generated/GNSS-ID.h index 07e64531..2df0509a 100644 --- a/asn.1/generated/GNSS-ID.h +++ b/asn.1/lpp_generated/GNSS-ID.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_ID_H_ @@ -30,7 +30,7 @@ typedef enum GNSS_ID__gnss_id { * Enumeration is extensible */ GNSS_ID__gnss_id_bds = 5, - GNSS_ID__gnss_id_navic_v16xy = 6 + GNSS_ID__gnss_id_navic_v1610 = 6 } e_GNSS_ID__gnss_id; /* GNSS-ID */ diff --git a/asn.1/lpp_generated/GNSS-Integrity-ServiceAlert-r17.c b/asn.1/lpp_generated/GNSS-Integrity-ServiceAlert-r17.c new file mode 100644 index 00000000..72435f2a --- /dev/null +++ b/asn.1/lpp_generated/GNSS-Integrity-ServiceAlert-r17.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-Integrity-ServiceAlert-r17.h" + +asn_TYPE_member_t asn_MBR_GNSS_Integrity_ServiceAlert_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_Integrity_ServiceAlert_r17, ionosphereDoNotUse_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ionosphereDoNotUse-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_Integrity_ServiceAlert_r17, troposphereDoNotUse_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "troposphereDoNotUse-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_Integrity_ServiceAlert_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_Integrity_ServiceAlert_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ionosphereDoNotUse-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* troposphereDoNotUse-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_Integrity_ServiceAlert_r17_specs_1 = { + sizeof(struct GNSS_Integrity_ServiceAlert_r17), + offsetof(struct GNSS_Integrity_ServiceAlert_r17, _asn_ctx), + asn_MAP_GNSS_Integrity_ServiceAlert_r17_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_Integrity_ServiceAlert_r17 = { + "GNSS-Integrity-ServiceAlert-r17", + "GNSS-Integrity-ServiceAlert-r17", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_Integrity_ServiceAlert_r17_tags_1, + sizeof(asn_DEF_GNSS_Integrity_ServiceAlert_r17_tags_1) + /sizeof(asn_DEF_GNSS_Integrity_ServiceAlert_r17_tags_1[0]), /* 1 */ + asn_DEF_GNSS_Integrity_ServiceAlert_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_Integrity_ServiceAlert_r17_tags_1) + /sizeof(asn_DEF_GNSS_Integrity_ServiceAlert_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_Integrity_ServiceAlert_r17_1, + 2, /* Elements count */ + &asn_SPC_GNSS_Integrity_ServiceAlert_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-Integrity-ServiceAlert-r17.h b/asn.1/lpp_generated/GNSS-Integrity-ServiceAlert-r17.h new file mode 100644 index 00000000..bfedd05e --- /dev/null +++ b/asn.1/lpp_generated/GNSS-Integrity-ServiceAlert-r17.h @@ -0,0 +1,45 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_Integrity_ServiceAlert_r17_H_ +#define _GNSS_Integrity_ServiceAlert_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-Integrity-ServiceAlert-r17 */ +typedef struct GNSS_Integrity_ServiceAlert_r17 { + BOOLEAN_t ionosphereDoNotUse_r17; + BOOLEAN_t troposphereDoNotUse_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_Integrity_ServiceAlert_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_Integrity_ServiceAlert_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_Integrity_ServiceAlert_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_Integrity_ServiceAlert_r17_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_Integrity_ServiceAlert_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-Integrity-ServiceAlertReq-r17.c b/asn.1/lpp_generated/GNSS-Integrity-ServiceAlertReq-r17.c new file mode 100644 index 00000000..f3df8389 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-Integrity-ServiceAlertReq-r17.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-Integrity-ServiceAlertReq-r17.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_Integrity_ServiceAlertReq_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_Integrity_ServiceAlertReq_r17_specs_1 = { + sizeof(struct GNSS_Integrity_ServiceAlertReq_r17), + offsetof(struct GNSS_Integrity_ServiceAlertReq_r17, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_Integrity_ServiceAlertReq_r17 = { + "GNSS-Integrity-ServiceAlertReq-r17", + "GNSS-Integrity-ServiceAlertReq-r17", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_Integrity_ServiceAlertReq_r17_tags_1, + sizeof(asn_DEF_GNSS_Integrity_ServiceAlertReq_r17_tags_1) + /sizeof(asn_DEF_GNSS_Integrity_ServiceAlertReq_r17_tags_1[0]), /* 1 */ + asn_DEF_GNSS_Integrity_ServiceAlertReq_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_Integrity_ServiceAlertReq_r17_tags_1) + /sizeof(asn_DEF_GNSS_Integrity_ServiceAlertReq_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_Integrity_ServiceAlertReq_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-Integrity-ServiceAlertReq-r17.h b/asn.1/lpp_generated/GNSS-Integrity-ServiceAlertReq-r17.h new file mode 100644 index 00000000..27554169 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-Integrity-ServiceAlertReq-r17.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_Integrity_ServiceAlertReq_r17_H_ +#define _GNSS_Integrity_ServiceAlertReq_r17_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-Integrity-ServiceAlertReq-r17 */ +typedef struct GNSS_Integrity_ServiceAlertReq_r17 { + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_Integrity_ServiceAlertReq_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_Integrity_ServiceAlertReq_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_Integrity_ServiceAlertReq_r17_specs_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_Integrity_ServiceAlertReq_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-Integrity-ServiceAlertSupport-r17.c b/asn.1/lpp_generated/GNSS-Integrity-ServiceAlertSupport-r17.c new file mode 100644 index 00000000..6082b063 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-Integrity-ServiceAlertSupport-r17.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-Integrity-ServiceAlertSupport-r17.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_Integrity_ServiceAlertSupport_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_Integrity_ServiceAlertSupport_r17_specs_1 = { + sizeof(struct GNSS_Integrity_ServiceAlertSupport_r17), + offsetof(struct GNSS_Integrity_ServiceAlertSupport_r17, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_Integrity_ServiceAlertSupport_r17 = { + "GNSS-Integrity-ServiceAlertSupport-r17", + "GNSS-Integrity-ServiceAlertSupport-r17", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_Integrity_ServiceAlertSupport_r17_tags_1, + sizeof(asn_DEF_GNSS_Integrity_ServiceAlertSupport_r17_tags_1) + /sizeof(asn_DEF_GNSS_Integrity_ServiceAlertSupport_r17_tags_1[0]), /* 1 */ + asn_DEF_GNSS_Integrity_ServiceAlertSupport_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_Integrity_ServiceAlertSupport_r17_tags_1) + /sizeof(asn_DEF_GNSS_Integrity_ServiceAlertSupport_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_Integrity_ServiceAlertSupport_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-Integrity-ServiceAlertSupport-r17.h b/asn.1/lpp_generated/GNSS-Integrity-ServiceAlertSupport-r17.h new file mode 100644 index 00000000..c326533f --- /dev/null +++ b/asn.1/lpp_generated/GNSS-Integrity-ServiceAlertSupport-r17.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_Integrity_ServiceAlertSupport_r17_H_ +#define _GNSS_Integrity_ServiceAlertSupport_r17_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-Integrity-ServiceAlertSupport-r17 */ +typedef struct GNSS_Integrity_ServiceAlertSupport_r17 { + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_Integrity_ServiceAlertSupport_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_Integrity_ServiceAlertSupport_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_Integrity_ServiceAlertSupport_r17_specs_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_Integrity_ServiceAlertSupport_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-Integrity-ServiceParameters-r17.c b/asn.1/lpp_generated/GNSS-Integrity-ServiceParameters-r17.c new file mode 100644 index 00000000..0cf2e6f1 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-Integrity-ServiceParameters-r17.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-Integrity-ServiceParameters-r17.h" + +static int +memb_irMinimum_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_irMaximum_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_irMinimum_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_irMaximum_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_Integrity_ServiceParameters_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_Integrity_ServiceParameters_r17, irMinimum_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_irMinimum_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_irMinimum_r17_constraint_1 + }, + 0, 0, /* No default value */ + "irMinimum-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_Integrity_ServiceParameters_r17, irMaximum_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_irMaximum_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_irMaximum_r17_constraint_1 + }, + 0, 0, /* No default value */ + "irMaximum-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_Integrity_ServiceParameters_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_Integrity_ServiceParameters_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* irMinimum-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* irMaximum-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_Integrity_ServiceParameters_r17_specs_1 = { + sizeof(struct GNSS_Integrity_ServiceParameters_r17), + offsetof(struct GNSS_Integrity_ServiceParameters_r17, _asn_ctx), + asn_MAP_GNSS_Integrity_ServiceParameters_r17_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_Integrity_ServiceParameters_r17 = { + "GNSS-Integrity-ServiceParameters-r17", + "GNSS-Integrity-ServiceParameters-r17", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_Integrity_ServiceParameters_r17_tags_1, + sizeof(asn_DEF_GNSS_Integrity_ServiceParameters_r17_tags_1) + /sizeof(asn_DEF_GNSS_Integrity_ServiceParameters_r17_tags_1[0]), /* 1 */ + asn_DEF_GNSS_Integrity_ServiceParameters_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_Integrity_ServiceParameters_r17_tags_1) + /sizeof(asn_DEF_GNSS_Integrity_ServiceParameters_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_Integrity_ServiceParameters_r17_1, + 2, /* Elements count */ + &asn_SPC_GNSS_Integrity_ServiceParameters_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-Integrity-ServiceParameters-r17.h b/asn.1/lpp_generated/GNSS-Integrity-ServiceParameters-r17.h new file mode 100644 index 00000000..1ad7c9e2 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-Integrity-ServiceParameters-r17.h @@ -0,0 +1,45 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_Integrity_ServiceParameters_r17_H_ +#define _GNSS_Integrity_ServiceParameters_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-Integrity-ServiceParameters-r17 */ +typedef struct GNSS_Integrity_ServiceParameters_r17 { + long irMinimum_r17; + long irMaximum_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_Integrity_ServiceParameters_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_Integrity_ServiceParameters_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_Integrity_ServiceParameters_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_Integrity_ServiceParameters_r17_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_Integrity_ServiceParameters_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-Integrity-ServiceParametersReq-r17.c b/asn.1/lpp_generated/GNSS-Integrity-ServiceParametersReq-r17.c new file mode 100644 index 00000000..e5d55003 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-Integrity-ServiceParametersReq-r17.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-Integrity-ServiceParametersReq-r17.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_Integrity_ServiceParametersReq_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_Integrity_ServiceParametersReq_r17_specs_1 = { + sizeof(struct GNSS_Integrity_ServiceParametersReq_r17), + offsetof(struct GNSS_Integrity_ServiceParametersReq_r17, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_Integrity_ServiceParametersReq_r17 = { + "GNSS-Integrity-ServiceParametersReq-r17", + "GNSS-Integrity-ServiceParametersReq-r17", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_Integrity_ServiceParametersReq_r17_tags_1, + sizeof(asn_DEF_GNSS_Integrity_ServiceParametersReq_r17_tags_1) + /sizeof(asn_DEF_GNSS_Integrity_ServiceParametersReq_r17_tags_1[0]), /* 1 */ + asn_DEF_GNSS_Integrity_ServiceParametersReq_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_Integrity_ServiceParametersReq_r17_tags_1) + /sizeof(asn_DEF_GNSS_Integrity_ServiceParametersReq_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_Integrity_ServiceParametersReq_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-Integrity-ServiceParametersReq-r17.h b/asn.1/lpp_generated/GNSS-Integrity-ServiceParametersReq-r17.h new file mode 100644 index 00000000..77fb83b5 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-Integrity-ServiceParametersReq-r17.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_Integrity_ServiceParametersReq_r17_H_ +#define _GNSS_Integrity_ServiceParametersReq_r17_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-Integrity-ServiceParametersReq-r17 */ +typedef struct GNSS_Integrity_ServiceParametersReq_r17 { + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_Integrity_ServiceParametersReq_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_Integrity_ServiceParametersReq_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_Integrity_ServiceParametersReq_r17_specs_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_Integrity_ServiceParametersReq_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-Integrity-ServiceParametersSupport-r17.c b/asn.1/lpp_generated/GNSS-Integrity-ServiceParametersSupport-r17.c new file mode 100644 index 00000000..e4756523 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-Integrity-ServiceParametersSupport-r17.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-Integrity-ServiceParametersSupport-r17.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_Integrity_ServiceParametersSupport_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_Integrity_ServiceParametersSupport_r17_specs_1 = { + sizeof(struct GNSS_Integrity_ServiceParametersSupport_r17), + offsetof(struct GNSS_Integrity_ServiceParametersSupport_r17, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_Integrity_ServiceParametersSupport_r17 = { + "GNSS-Integrity-ServiceParametersSupport-r17", + "GNSS-Integrity-ServiceParametersSupport-r17", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_Integrity_ServiceParametersSupport_r17_tags_1, + sizeof(asn_DEF_GNSS_Integrity_ServiceParametersSupport_r17_tags_1) + /sizeof(asn_DEF_GNSS_Integrity_ServiceParametersSupport_r17_tags_1[0]), /* 1 */ + asn_DEF_GNSS_Integrity_ServiceParametersSupport_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_Integrity_ServiceParametersSupport_r17_tags_1) + /sizeof(asn_DEF_GNSS_Integrity_ServiceParametersSupport_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_Integrity_ServiceParametersSupport_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-Integrity-ServiceParametersSupport-r17.h b/asn.1/lpp_generated/GNSS-Integrity-ServiceParametersSupport-r17.h new file mode 100644 index 00000000..c82b63c4 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-Integrity-ServiceParametersSupport-r17.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_Integrity_ServiceParametersSupport_r17_H_ +#define _GNSS_Integrity_ServiceParametersSupport_r17_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-Integrity-ServiceParametersSupport-r17 */ +typedef struct GNSS_Integrity_ServiceParametersSupport_r17 { + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_Integrity_ServiceParametersSupport_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_Integrity_ServiceParametersSupport_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_Integrity_ServiceParametersSupport_r17_specs_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_Integrity_ServiceParametersSupport_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-IonosphericModel.c b/asn.1/lpp_generated/GNSS-IonosphericModel.c new file mode 100644 index 00000000..e0bf9988 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-IonosphericModel.c @@ -0,0 +1,168 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-IonosphericModel.h" + +#include "KlobucharModelParameter.h" +#include "NeQuickModelParameter.h" +#include "KlobucharModel2Parameter-r16.h" +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_IonosphericModel__ext1, klobucharModel2_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_KlobucharModel2Parameter_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "klobucharModel2-r16" + }, +}; +static const int asn_MAP_ext1_oms_5[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* klobucharModel2-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct GNSS_IonosphericModel__ext1), + offsetof(struct GNSS_IonosphericModel__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_5, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 1, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_IonosphericModel_1[] = { + { ATF_POINTER, 3, offsetof(struct GNSS_IonosphericModel, klobucharModel), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_KlobucharModelParameter, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "klobucharModel" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_IonosphericModel, neQuickModel), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NeQuickModelParameter, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "neQuickModel" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_IonosphericModel, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_IonosphericModel_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_GNSS_IonosphericModel_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_IonosphericModel_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* klobucharModel */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* neQuickModel */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_IonosphericModel_specs_1 = { + sizeof(struct GNSS_IonosphericModel), + offsetof(struct GNSS_IonosphericModel, _asn_ctx), + asn_MAP_GNSS_IonosphericModel_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_GNSS_IonosphericModel_oms_1, /* Optional members */ + 2, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_IonosphericModel = { + "GNSS-IonosphericModel", + "GNSS-IonosphericModel", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_IonosphericModel_tags_1, + sizeof(asn_DEF_GNSS_IonosphericModel_tags_1) + /sizeof(asn_DEF_GNSS_IonosphericModel_tags_1[0]), /* 1 */ + asn_DEF_GNSS_IonosphericModel_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_IonosphericModel_tags_1) + /sizeof(asn_DEF_GNSS_IonosphericModel_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_IonosphericModel_1, + 3, /* Elements count */ + &asn_SPC_GNSS_IonosphericModel_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-IonosphericModel.h b/asn.1/lpp_generated/GNSS-IonosphericModel.h new file mode 100644 index 00000000..32a4e10d --- /dev/null +++ b/asn.1/lpp_generated/GNSS-IonosphericModel.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_IonosphericModel_H_ +#define _GNSS_IonosphericModel_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct KlobucharModelParameter; +struct NeQuickModelParameter; +struct KlobucharModel2Parameter_r16; + +/* GNSS-IonosphericModel */ +typedef struct GNSS_IonosphericModel { + struct KlobucharModelParameter *klobucharModel; /* OPTIONAL */ + struct NeQuickModelParameter *neQuickModel; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_IonosphericModel__ext1 { + struct KlobucharModel2Parameter_r16 *klobucharModel2_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_IonosphericModel_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_IonosphericModel; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_IonosphericModel_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_IonosphericModel_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_IonosphericModel_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-IonosphericModelReq.c b/asn.1/lpp_generated/GNSS-IonosphericModelReq.c new file mode 100644 index 00000000..e51cc932 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-IonosphericModelReq.c @@ -0,0 +1,203 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-IonosphericModelReq.h" + +static int +memb_klobucharModelReq_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 2UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_klobucharModelReq_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_IonosphericModelReq__ext1, klobucharModel2Req_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "klobucharModel2Req-r16" + }, +}; +static const int asn_MAP_ext1_oms_5[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* klobucharModel2Req-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct GNSS_IonosphericModelReq__ext1), + offsetof(struct GNSS_IonosphericModelReq__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_5, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 1, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_IonosphericModelReq_1[] = { + { ATF_POINTER, 3, offsetof(struct GNSS_IonosphericModelReq, klobucharModelReq), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_klobucharModelReq_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_klobucharModelReq_constraint_1 + }, + 0, 0, /* No default value */ + "klobucharModelReq" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_IonosphericModelReq, neQuickModelReq), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "neQuickModelReq" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_IonosphericModelReq, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_IonosphericModelReq_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_GNSS_IonosphericModelReq_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_IonosphericModelReq_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* klobucharModelReq */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* neQuickModelReq */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_IonosphericModelReq_specs_1 = { + sizeof(struct GNSS_IonosphericModelReq), + offsetof(struct GNSS_IonosphericModelReq, _asn_ctx), + asn_MAP_GNSS_IonosphericModelReq_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_GNSS_IonosphericModelReq_oms_1, /* Optional members */ + 2, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_IonosphericModelReq = { + "GNSS-IonosphericModelReq", + "GNSS-IonosphericModelReq", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_IonosphericModelReq_tags_1, + sizeof(asn_DEF_GNSS_IonosphericModelReq_tags_1) + /sizeof(asn_DEF_GNSS_IonosphericModelReq_tags_1[0]), /* 1 */ + asn_DEF_GNSS_IonosphericModelReq_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_IonosphericModelReq_tags_1) + /sizeof(asn_DEF_GNSS_IonosphericModelReq_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_IonosphericModelReq_1, + 3, /* Elements count */ + &asn_SPC_GNSS_IonosphericModelReq_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-IonosphericModelReq.h b/asn.1/lpp_generated/GNSS-IonosphericModelReq.h new file mode 100644 index 00000000..0e6c19ab --- /dev/null +++ b/asn.1/lpp_generated/GNSS-IonosphericModelReq.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_IonosphericModelReq_H_ +#define _GNSS_IonosphericModelReq_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-IonosphericModelReq */ +typedef struct GNSS_IonosphericModelReq { + BIT_STRING_t *klobucharModelReq; /* OPTIONAL */ + NULL_t *neQuickModelReq; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_IonosphericModelReq__ext1 { + NULL_t *klobucharModel2Req_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_IonosphericModelReq_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_IonosphericModelReq; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_IonosphericModelReq_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_IonosphericModelReq_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_IonosphericModelReq_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-IonosphericModelSupport.c b/asn.1/lpp_generated/GNSS-IonosphericModelSupport.c new file mode 100644 index 00000000..f476797c --- /dev/null +++ b/asn.1/lpp_generated/GNSS-IonosphericModelSupport.c @@ -0,0 +1,104 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-IonosphericModelSupport.h" + +static int +memb_ionoModel_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ionoModel_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_IonosphericModelSupport_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_IonosphericModelSupport, ionoModel), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ionoModel_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ionoModel_constraint_1 + }, + 0, 0, /* No default value */ + "ionoModel" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_IonosphericModelSupport_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_IonosphericModelSupport_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ionoModel */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_IonosphericModelSupport_specs_1 = { + sizeof(struct GNSS_IonosphericModelSupport), + offsetof(struct GNSS_IonosphericModelSupport, _asn_ctx), + asn_MAP_GNSS_IonosphericModelSupport_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_IonosphericModelSupport = { + "GNSS-IonosphericModelSupport", + "GNSS-IonosphericModelSupport", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_IonosphericModelSupport_tags_1, + sizeof(asn_DEF_GNSS_IonosphericModelSupport_tags_1) + /sizeof(asn_DEF_GNSS_IonosphericModelSupport_tags_1[0]), /* 1 */ + asn_DEF_GNSS_IonosphericModelSupport_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_IonosphericModelSupport_tags_1) + /sizeof(asn_DEF_GNSS_IonosphericModelSupport_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_IonosphericModelSupport_1, + 1, /* Elements count */ + &asn_SPC_GNSS_IonosphericModelSupport_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-IonosphericModelSupport.h b/asn.1/lpp_generated/GNSS-IonosphericModelSupport.h similarity index 83% rename from asn.1/generated/GNSS-IonosphericModelSupport.h rename to asn.1/lpp_generated/GNSS-IonosphericModelSupport.h index c8f5a284..e5a98745 100644 --- a/asn.1/generated/GNSS-IonosphericModelSupport.h +++ b/asn.1/lpp_generated/GNSS-IonosphericModelSupport.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_IonosphericModelSupport_H_ diff --git a/asn.1/lpp_generated/GNSS-LOS-InfoElement-r18.c b/asn.1/lpp_generated/GNSS-LOS-InfoElement-r18.c new file mode 100644 index 00000000..cf7fb2c9 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-LOS-InfoElement-r18.c @@ -0,0 +1,142 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-LOS-InfoElement-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_los_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_los_r18_value2enum_3[] = { + { 0, 4, "true" }, + { 1, 5, "false" }, + { 2, 9, "uncertain" } +}; +static const unsigned int asn_MAP_los_r18_enum2value_3[] = { + 1, /* false(1) */ + 0, /* true(0) */ + 2 /* uncertain(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_los_r18_specs_3 = { + asn_MAP_los_r18_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_los_r18_enum2value_3, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_los_r18_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_los_r18_3 = { + "los-r18", + "los-r18", + &asn_OP_NativeEnumerated, + asn_DEF_los_r18_tags_3, + sizeof(asn_DEF_los_r18_tags_3) + /sizeof(asn_DEF_los_r18_tags_3[0]) - 1, /* 1 */ + asn_DEF_los_r18_tags_3, /* Same as above */ + sizeof(asn_DEF_los_r18_tags_3) + /sizeof(asn_DEF_los_r18_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_los_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_los_r18_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_LOS_InfoElement_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_LOS_InfoElement_r18, svID_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_LOS_InfoElement_r18, los_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_los_r18_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "los-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_LOS_InfoElement_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_LOS_InfoElement_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* los-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_LOS_InfoElement_r18_specs_1 = { + sizeof(struct GNSS_LOS_InfoElement_r18), + offsetof(struct GNSS_LOS_InfoElement_r18, _asn_ctx), + asn_MAP_GNSS_LOS_InfoElement_r18_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_LOS_InfoElement_r18 = { + "GNSS-LOS-InfoElement-r18", + "GNSS-LOS-InfoElement-r18", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_LOS_InfoElement_r18_tags_1, + sizeof(asn_DEF_GNSS_LOS_InfoElement_r18_tags_1) + /sizeof(asn_DEF_GNSS_LOS_InfoElement_r18_tags_1[0]), /* 1 */ + asn_DEF_GNSS_LOS_InfoElement_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_LOS_InfoElement_r18_tags_1) + /sizeof(asn_DEF_GNSS_LOS_InfoElement_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_LOS_InfoElement_r18_1, + 2, /* Elements count */ + &asn_SPC_GNSS_LOS_InfoElement_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-LOS-InfoElement-r18.h b/asn.1/lpp_generated/GNSS-LOS-InfoElement-r18.h new file mode 100644 index 00000000..c886bbd7 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-LOS-InfoElement-r18.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_LOS_InfoElement_r18_H_ +#define _GNSS_LOS_InfoElement_r18_H_ + + +#include + +/* Including external dependencies */ +#include "SV-ID.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_LOS_InfoElement_r18__los_r18 { + GNSS_LOS_InfoElement_r18__los_r18_true = 0, + GNSS_LOS_InfoElement_r18__los_r18_false = 1, + GNSS_LOS_InfoElement_r18__los_r18_uncertain = 2 +} e_GNSS_LOS_InfoElement_r18__los_r18; + +/* GNSS-LOS-InfoElement-r18 */ +typedef struct GNSS_LOS_InfoElement_r18 { + SV_ID_t svID_r18; + long los_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_LOS_InfoElement_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_los_r18_3; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_LOS_InfoElement_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_LOS_InfoElement_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_LOS_InfoElement_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_LOS_InfoElement_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-LOS-InfoList-r18.c b/asn.1/lpp_generated/GNSS-LOS-InfoList-r18.c new file mode 100644 index 00000000..67bfdcbe --- /dev/null +++ b/asn.1/lpp_generated/GNSS-LOS-InfoList-r18.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-LOS-InfoList-r18.h" + +#include "GNSS-LOS-InfoElement-r18.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_LOS_InfoList_r18_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_LOS_InfoList_r18_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_LOS_InfoElement_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_LOS_InfoList_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_LOS_InfoList_r18_specs_1 = { + sizeof(struct GNSS_LOS_InfoList_r18), + offsetof(struct GNSS_LOS_InfoList_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_LOS_InfoList_r18 = { + "GNSS-LOS-InfoList-r18", + "GNSS-LOS-InfoList-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_LOS_InfoList_r18_tags_1, + sizeof(asn_DEF_GNSS_LOS_InfoList_r18_tags_1) + /sizeof(asn_DEF_GNSS_LOS_InfoList_r18_tags_1[0]), /* 1 */ + asn_DEF_GNSS_LOS_InfoList_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_LOS_InfoList_r18_tags_1) + /sizeof(asn_DEF_GNSS_LOS_InfoList_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_LOS_InfoList_r18_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_LOS_InfoList_r18_1, + 1, /* Single element */ + &asn_SPC_GNSS_LOS_InfoList_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-LOS-InfoList-r18.h b/asn.1/lpp_generated/GNSS-LOS-InfoList-r18.h new file mode 100644 index 00000000..531a4772 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-LOS-InfoList-r18.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_LOS_InfoList_r18_H_ +#define _GNSS_LOS_InfoList_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GNSS_LOS_InfoElement_r18; + +/* GNSS-LOS-InfoList-r18 */ +typedef struct GNSS_LOS_InfoList_r18 { + A_SEQUENCE_OF(struct GNSS_LOS_InfoElement_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_LOS_InfoList_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_LOS_InfoList_r18; +extern asn_SET_OF_specifics_t asn_SPC_GNSS_LOS_InfoList_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_LOS_InfoList_r18_1[1]; +extern asn_per_constraints_t asn_PER_type_GNSS_LOS_InfoList_r18_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_LOS_InfoList_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-LOS-NLOS-GridPoints-r18.c b/asn.1/lpp_generated/GNSS-LOS-NLOS-GridPoints-r18.c new file mode 100644 index 00000000..48b11d09 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-LOS-NLOS-GridPoints-r18.c @@ -0,0 +1,187 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-LOS-NLOS-GridPoints-r18.h" + +#include "VerticalGridPoints-r18.h" +static int +memb_gridPointsSetID_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_referenceAltitudeFine_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gridPointsSetID_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_referenceAltitudeFine_r18_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_LOS_NLOS_GridPoints_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_LOS_NLOS_GridPoints_r18, gridPointsSetID_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gridPointsSetID_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gridPointsSetID_r18_constraint_1 + }, + 0, 0, /* No default value */ + "gridPointsSetID-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_LOS_NLOS_GridPoints_r18, horizontalGridPoints_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ArrayOfGridPoints_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horizontalGridPoints-r18" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_LOS_NLOS_GridPoints_r18, referenceAltitudeFine_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_referenceAltitudeFine_r18_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_referenceAltitudeFine_r18_constraint_1 + }, + 0, 0, /* No default value */ + "referenceAltitudeFine-r18" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_LOS_NLOS_GridPoints_r18, verticalGridPoints_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VerticalGridPoints_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalGridPoints-r18" + }, +}; +static const int asn_MAP_GNSS_LOS_NLOS_GridPoints_r18_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_GNSS_LOS_NLOS_GridPoints_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_LOS_NLOS_GridPoints_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gridPointsSetID-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horizontalGridPoints-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* referenceAltitudeFine-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* verticalGridPoints-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_LOS_NLOS_GridPoints_r18_specs_1 = { + sizeof(struct GNSS_LOS_NLOS_GridPoints_r18), + offsetof(struct GNSS_LOS_NLOS_GridPoints_r18, _asn_ctx), + asn_MAP_GNSS_LOS_NLOS_GridPoints_r18_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_GNSS_LOS_NLOS_GridPoints_r18_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_LOS_NLOS_GridPoints_r18 = { + "GNSS-LOS-NLOS-GridPoints-r18", + "GNSS-LOS-NLOS-GridPoints-r18", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_LOS_NLOS_GridPoints_r18_tags_1, + sizeof(asn_DEF_GNSS_LOS_NLOS_GridPoints_r18_tags_1) + /sizeof(asn_DEF_GNSS_LOS_NLOS_GridPoints_r18_tags_1[0]), /* 1 */ + asn_DEF_GNSS_LOS_NLOS_GridPoints_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_LOS_NLOS_GridPoints_r18_tags_1) + /sizeof(asn_DEF_GNSS_LOS_NLOS_GridPoints_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_LOS_NLOS_GridPoints_r18_1, + 4, /* Elements count */ + &asn_SPC_GNSS_LOS_NLOS_GridPoints_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-LOS-NLOS-GridPoints-r18.h b/asn.1/lpp_generated/GNSS-LOS-NLOS-GridPoints-r18.h new file mode 100644 index 00000000..e372dc5b --- /dev/null +++ b/asn.1/lpp_generated/GNSS-LOS-NLOS-GridPoints-r18.h @@ -0,0 +1,51 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_LOS_NLOS_GridPoints_r18_H_ +#define _GNSS_LOS_NLOS_GridPoints_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include "ArrayOfGridPoints-r18.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct VerticalGridPoints_r18; + +/* GNSS-LOS-NLOS-GridPoints-r18 */ +typedef struct GNSS_LOS_NLOS_GridPoints_r18 { + long gridPointsSetID_r18; + ArrayOfGridPoints_r18_t horizontalGridPoints_r18; + long *referenceAltitudeFine_r18; /* OPTIONAL */ + struct VerticalGridPoints_r18 *verticalGridPoints_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_LOS_NLOS_GridPoints_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_LOS_NLOS_GridPoints_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_LOS_NLOS_GridPoints_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_LOS_NLOS_GridPoints_r18_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_LOS_NLOS_GridPoints_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndications-r18.c b/asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndications-r18.c new file mode 100644 index 00000000..d4098e48 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndications-r18.c @@ -0,0 +1,136 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-LOS-NLOS-GriddedIndications-r18.h" + +static int +memb_gridPointsSetID_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gridPointsSetID_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_LOS_NLOS_GriddedIndications_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_LOS_NLOS_GriddedIndications_r18, gridPointsSetID_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gridPointsSetID_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gridPointsSetID_r18_constraint_1 + }, + 0, 0, /* No default value */ + "gridPointsSetID-r18" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_LOS_NLOS_GriddedIndications_r18, expirationTime_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTCTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "expirationTime-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_LOS_NLOS_GriddedIndications_r18, gridList_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GridList_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gridList-r18" + }, +}; +static const int asn_MAP_GNSS_LOS_NLOS_GriddedIndications_r18_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_GNSS_LOS_NLOS_GriddedIndications_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_LOS_NLOS_GriddedIndications_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gridPointsSetID-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* expirationTime-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gridList-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_LOS_NLOS_GriddedIndications_r18_specs_1 = { + sizeof(struct GNSS_LOS_NLOS_GriddedIndications_r18), + offsetof(struct GNSS_LOS_NLOS_GriddedIndications_r18, _asn_ctx), + asn_MAP_GNSS_LOS_NLOS_GriddedIndications_r18_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_GNSS_LOS_NLOS_GriddedIndications_r18_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_LOS_NLOS_GriddedIndications_r18 = { + "GNSS-LOS-NLOS-GriddedIndications-r18", + "GNSS-LOS-NLOS-GriddedIndications-r18", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_LOS_NLOS_GriddedIndications_r18_tags_1, + sizeof(asn_DEF_GNSS_LOS_NLOS_GriddedIndications_r18_tags_1) + /sizeof(asn_DEF_GNSS_LOS_NLOS_GriddedIndications_r18_tags_1[0]), /* 1 */ + asn_DEF_GNSS_LOS_NLOS_GriddedIndications_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_LOS_NLOS_GriddedIndications_r18_tags_1) + /sizeof(asn_DEF_GNSS_LOS_NLOS_GriddedIndications_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_LOS_NLOS_GriddedIndications_r18_1, + 3, /* Elements count */ + &asn_SPC_GNSS_LOS_NLOS_GriddedIndications_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndications-r18.h b/asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndications-r18.h new file mode 100644 index 00000000..59893803 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndications-r18.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_LOS_NLOS_GriddedIndications_r18_H_ +#define _GNSS_LOS_NLOS_GriddedIndications_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include "GridList-r18.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-LOS-NLOS-GriddedIndications-r18 */ +typedef struct GNSS_LOS_NLOS_GriddedIndications_r18 { + long gridPointsSetID_r18; + UTCTime_t *expirationTime_r18; /* OPTIONAL */ + GridList_r18_t gridList_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_LOS_NLOS_GriddedIndications_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_LOS_NLOS_GriddedIndications_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_LOS_NLOS_GriddedIndications_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_LOS_NLOS_GriddedIndications_r18_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_LOS_NLOS_GriddedIndications_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndicationsReq-r18.c b/asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndicationsReq-r18.c new file mode 100644 index 00000000..403913e9 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndicationsReq-r18.c @@ -0,0 +1,500 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-LOS-NLOS-GriddedIndicationsReq-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_gridPointsSetID_Req_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_referenceAltitudeFine_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_referenceAltitudeCoarse_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -50L && value <= 900L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_inside_r18_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_outside_r18_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_relativeLocationInfo_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_verticalGridType_r18_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gridPointsSetID_Req_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_referenceAltitudeFine_r18_constr_21 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_referenceAltitudeCoarse_r18_constr_22 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, -50, 900 } /* (-50..900) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_inside_r18_value2enum_4[] = { + { 0, 10, "upper-left" }, + { 1, 11, "upper-right" }, + { 2, 10, "lower-left" }, + { 3, 11, "lower-right" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_inside_r18_enum2value_4[] = { + 2, /* lower-left(2) */ + 3, /* lower-right(3) */ + 0, /* upper-left(0) */ + 1 /* upper-right(1) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_inside_r18_specs_4 = { + asn_MAP_inside_r18_value2enum_4, /* "tag" => N; sorted by tag */ + asn_MAP_inside_r18_enum2value_4, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_inside_r18_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_inside_r18_4 = { + "inside-r18", + "inside-r18", + &asn_OP_NativeEnumerated, + asn_DEF_inside_r18_tags_4, + sizeof(asn_DEF_inside_r18_tags_4) + /sizeof(asn_DEF_inside_r18_tags_4[0]) - 1, /* 1 */ + asn_DEF_inside_r18_tags_4, /* Same as above */ + sizeof(asn_DEF_inside_r18_tags_4) + /sizeof(asn_DEF_inside_r18_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_inside_r18_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_inside_r18_specs_4 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_outside_r18_value2enum_10[] = { + { 0, 5, "north" }, + { 1, 4, "west" }, + { 2, 5, "south" }, + { 3, 4, "east" }, + { 4, 5, "above" }, + { 5, 5, "below" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_outside_r18_enum2value_10[] = { + 4, /* above(4) */ + 5, /* below(5) */ + 3, /* east(3) */ + 0, /* north(0) */ + 2, /* south(2) */ + 1 /* west(1) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_outside_r18_specs_10 = { + asn_MAP_outside_r18_value2enum_10, /* "tag" => N; sorted by tag */ + asn_MAP_outside_r18_enum2value_10, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 7, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_outside_r18_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_outside_r18_10 = { + "outside-r18", + "outside-r18", + &asn_OP_NativeEnumerated, + asn_DEF_outside_r18_tags_10, + sizeof(asn_DEF_outside_r18_tags_10) + /sizeof(asn_DEF_outside_r18_tags_10[0]) - 1, /* 1 */ + asn_DEF_outside_r18_tags_10, /* Same as above */ + sizeof(asn_DEF_outside_r18_tags_10) + /sizeof(asn_DEF_outside_r18_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_outside_r18_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_outside_r18_specs_10 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_relativeLocationInfo_r18_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18, choice.inside_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_inside_r18_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "inside-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18, choice.outside_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_outside_r18_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "outside-r18" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_relativeLocationInfo_r18_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* inside-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* outside-r18 */ +}; +static asn_CHOICE_specifics_t asn_SPC_relativeLocationInfo_r18_specs_3 = { + sizeof(struct GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18), + offsetof(struct GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18, _asn_ctx), + offsetof(struct GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18, present), + sizeof(((struct GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18 *)0)->present), + asn_MAP_relativeLocationInfo_r18_tag2el_3, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_relativeLocationInfo_r18_3 = { + "relativeLocationInfo-r18", + "relativeLocationInfo-r18", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_relativeLocationInfo_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_relativeLocationInfo_r18_3, + 2, /* Elements count */ + &asn_SPC_relativeLocationInfo_r18_specs_3 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_verticalGridType_r18_value2enum_18[] = { + { 0, 12, "ground-level" }, + { 1, 6, "threeD" } +}; +static const unsigned int asn_MAP_verticalGridType_r18_enum2value_18[] = { + 0, /* ground-level(0) */ + 1 /* threeD(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_verticalGridType_r18_specs_18 = { + asn_MAP_verticalGridType_r18_value2enum_18, /* "tag" => N; sorted by tag */ + asn_MAP_verticalGridType_r18_enum2value_18, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_verticalGridType_r18_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_verticalGridType_r18_18 = { + "verticalGridType-r18", + "verticalGridType-r18", + &asn_OP_NativeEnumerated, + asn_DEF_verticalGridType_r18_tags_18, + sizeof(asn_DEF_verticalGridType_r18_tags_18) + /sizeof(asn_DEF_verticalGridType_r18_tags_18[0]) - 1, /* 1 */ + asn_DEF_verticalGridType_r18_tags_18, /* Same as above */ + sizeof(asn_DEF_verticalGridType_r18_tags_18) + /sizeof(asn_DEF_verticalGridType_r18_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_verticalGridType_r18_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_verticalGridType_r18_specs_18 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_LOS_NLOS_GriddedIndicationsReq_r18_1[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_LOS_NLOS_GriddedIndicationsReq_r18, gridPointsSetID_Req_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gridPointsSetID_Req_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gridPointsSetID_Req_r18_constraint_1 + }, + 0, 0, /* No default value */ + "gridPointsSetID-Req-r18" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_LOS_NLOS_GriddedIndicationsReq_r18, relativeLocationInfo_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_relativeLocationInfo_r18_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "relativeLocationInfo-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_LOS_NLOS_GriddedIndicationsReq_r18, verticalGridType_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_verticalGridType_r18_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalGridType-r18" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_LOS_NLOS_GriddedIndicationsReq_r18, referenceAltitudeFine_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_referenceAltitudeFine_r18_constr_21, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_referenceAltitudeFine_r18_constraint_1 + }, + 0, 0, /* No default value */ + "referenceAltitudeFine-r18" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_LOS_NLOS_GriddedIndicationsReq_r18, referenceAltitudeCoarse_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_referenceAltitudeCoarse_r18_constr_22, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_referenceAltitudeCoarse_r18_constraint_1 + }, + 0, 0, /* No default value */ + "referenceAltitudeCoarse-r18" + }, +}; +static const int asn_MAP_GNSS_LOS_NLOS_GriddedIndicationsReq_r18_oms_1[] = { 0, 1, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsReq_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_LOS_NLOS_GriddedIndicationsReq_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gridPointsSetID-Req-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* relativeLocationInfo-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* verticalGridType-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* referenceAltitudeFine-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* referenceAltitudeCoarse-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_LOS_NLOS_GriddedIndicationsReq_r18_specs_1 = { + sizeof(struct GNSS_LOS_NLOS_GriddedIndicationsReq_r18), + offsetof(struct GNSS_LOS_NLOS_GriddedIndicationsReq_r18, _asn_ctx), + asn_MAP_GNSS_LOS_NLOS_GriddedIndicationsReq_r18_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_GNSS_LOS_NLOS_GriddedIndicationsReq_r18_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsReq_r18 = { + "GNSS-LOS-NLOS-GriddedIndicationsReq-r18", + "GNSS-LOS-NLOS-GriddedIndicationsReq-r18", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsReq_r18_tags_1, + sizeof(asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsReq_r18_tags_1) + /sizeof(asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsReq_r18_tags_1[0]), /* 1 */ + asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsReq_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsReq_r18_tags_1) + /sizeof(asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsReq_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_LOS_NLOS_GriddedIndicationsReq_r18_1, + 5, /* Elements count */ + &asn_SPC_GNSS_LOS_NLOS_GriddedIndicationsReq_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndicationsReq-r18.h b/asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndicationsReq-r18.h new file mode 100644 index 00000000..a922e4d5 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndicationsReq-r18.h @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_LOS_NLOS_GriddedIndicationsReq_r18_H_ +#define _GNSS_LOS_NLOS_GriddedIndicationsReq_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18_PR { + GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18_PR_NOTHING, /* No components present */ + GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18_PR_inside_r18, + GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18_PR_outside_r18 +} GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18_PR; +typedef enum GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18__inside_r18 { + GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18__inside_r18_upper_left = 0, + GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18__inside_r18_upper_right = 1, + GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18__inside_r18_lower_left = 2, + GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18__inside_r18_lower_right = 3 + /* + * Enumeration is extensible + */ +} e_GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18__inside_r18; +typedef enum GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18__outside_r18 { + GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18__outside_r18_north = 0, + GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18__outside_r18_west = 1, + GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18__outside_r18_south = 2, + GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18__outside_r18_east = 3, + GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18__outside_r18_above = 4, + GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18__outside_r18_below = 5 + /* + * Enumeration is extensible + */ +} e_GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18__outside_r18; +typedef enum GNSS_LOS_NLOS_GriddedIndicationsReq_r18__verticalGridType_r18 { + GNSS_LOS_NLOS_GriddedIndicationsReq_r18__verticalGridType_r18_ground_level = 0, + GNSS_LOS_NLOS_GriddedIndicationsReq_r18__verticalGridType_r18_threeD = 1 +} e_GNSS_LOS_NLOS_GriddedIndicationsReq_r18__verticalGridType_r18; + +/* GNSS-LOS-NLOS-GriddedIndicationsReq-r18 */ +typedef struct GNSS_LOS_NLOS_GriddedIndicationsReq_r18 { + long *gridPointsSetID_Req_r18; /* OPTIONAL */ + struct GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18 { + GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18_PR present; + union GNSS_LOS_NLOS_GriddedIndicationsReq_r18__relativeLocationInfo_r18_u { + long inside_r18; + long outside_r18; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *relativeLocationInfo_r18; + long verticalGridType_r18; + long *referenceAltitudeFine_r18; /* OPTIONAL */ + long *referenceAltitudeCoarse_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_LOS_NLOS_GriddedIndicationsReq_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_inside_r18_4; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_outside_r18_10; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_verticalGridType_r18_18; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsReq_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_LOS_NLOS_GriddedIndicationsReq_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_LOS_NLOS_GriddedIndicationsReq_r18_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_LOS_NLOS_GriddedIndicationsReq_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndicationsSupport-r18.c b/asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndicationsSupport-r18.c new file mode 100644 index 00000000..d0754521 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndicationsSupport-r18.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-LOS-NLOS-GriddedIndicationsSupport-r18.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsSupport_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_LOS_NLOS_GriddedIndicationsSupport_r18_specs_1 = { + sizeof(struct GNSS_LOS_NLOS_GriddedIndicationsSupport_r18), + offsetof(struct GNSS_LOS_NLOS_GriddedIndicationsSupport_r18, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsSupport_r18 = { + "GNSS-LOS-NLOS-GriddedIndicationsSupport-r18", + "GNSS-LOS-NLOS-GriddedIndicationsSupport-r18", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsSupport_r18_tags_1, + sizeof(asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsSupport_r18_tags_1) + /sizeof(asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsSupport_r18_tags_1[0]), /* 1 */ + asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsSupport_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsSupport_r18_tags_1) + /sizeof(asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsSupport_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_LOS_NLOS_GriddedIndicationsSupport_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndicationsSupport-r18.h b/asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndicationsSupport-r18.h new file mode 100644 index 00000000..48720d3f --- /dev/null +++ b/asn.1/lpp_generated/GNSS-LOS-NLOS-GriddedIndicationsSupport-r18.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_LOS_NLOS_GriddedIndicationsSupport_r18_H_ +#define _GNSS_LOS_NLOS_GriddedIndicationsSupport_r18_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-LOS-NLOS-GriddedIndicationsSupport-r18 */ +typedef struct GNSS_LOS_NLOS_GriddedIndicationsSupport_r18 { + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_LOS_NLOS_GriddedIndicationsSupport_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_LOS_NLOS_GriddedIndicationsSupport_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_LOS_NLOS_GriddedIndicationsSupport_r18_specs_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_LOS_NLOS_GriddedIndicationsSupport_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-Link-Combinations-r15.c b/asn.1/lpp_generated/GNSS-Link-Combinations-r15.c new file mode 100644 index 00000000..bf669df4 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-Link-Combinations-r15.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-Link-Combinations-r15.h" + +asn_TYPE_member_t asn_MBR_GNSS_Link_Combinations_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_Link_Combinations_r15, l1_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_FrequencyID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "l1-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_Link_Combinations_r15, l2_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_FrequencyID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "l2-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_Link_Combinations_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_Link_Combinations_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* l1-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* l2-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_Link_Combinations_r15_specs_1 = { + sizeof(struct GNSS_Link_Combinations_r15), + offsetof(struct GNSS_Link_Combinations_r15, _asn_ctx), + asn_MAP_GNSS_Link_Combinations_r15_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_Link_Combinations_r15 = { + "GNSS-Link-Combinations-r15", + "GNSS-Link-Combinations-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_Link_Combinations_r15_tags_1, + sizeof(asn_DEF_GNSS_Link_Combinations_r15_tags_1) + /sizeof(asn_DEF_GNSS_Link_Combinations_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_Link_Combinations_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_Link_Combinations_r15_tags_1) + /sizeof(asn_DEF_GNSS_Link_Combinations_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_Link_Combinations_r15_1, + 2, /* Elements count */ + &asn_SPC_GNSS_Link_Combinations_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-Link-Combinations-r15.h b/asn.1/lpp_generated/GNSS-Link-Combinations-r15.h similarity index 80% rename from asn.1/generated/GNSS-Link-Combinations-r15.h rename to asn.1/lpp_generated/GNSS-Link-Combinations-r15.h index 4300747c..fcec839f 100644 --- a/asn.1/generated/GNSS-Link-Combinations-r15.h +++ b/asn.1/lpp_generated/GNSS-Link-Combinations-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_Link_Combinations_r15_H_ diff --git a/asn.1/lpp_generated/GNSS-Link-CombinationsList-r15.c b/asn.1/lpp_generated/GNSS-Link-CombinationsList-r15.c new file mode 100644 index 00000000..cd346032 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-Link-CombinationsList-r15.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-Link-CombinationsList-r15.h" + +#include "GNSS-Link-Combinations-r15.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_Link_CombinationsList_r15_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_Link_CombinationsList_r15_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_Link_Combinations_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_Link_CombinationsList_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_Link_CombinationsList_r15_specs_1 = { + sizeof(struct GNSS_Link_CombinationsList_r15), + offsetof(struct GNSS_Link_CombinationsList_r15, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_Link_CombinationsList_r15 = { + "GNSS-Link-CombinationsList-r15", + "GNSS-Link-CombinationsList-r15", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_Link_CombinationsList_r15_tags_1, + sizeof(asn_DEF_GNSS_Link_CombinationsList_r15_tags_1) + /sizeof(asn_DEF_GNSS_Link_CombinationsList_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_Link_CombinationsList_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_Link_CombinationsList_r15_tags_1) + /sizeof(asn_DEF_GNSS_Link_CombinationsList_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_Link_CombinationsList_r15_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_Link_CombinationsList_r15_1, + 1, /* Single element */ + &asn_SPC_GNSS_Link_CombinationsList_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-Link-CombinationsList-r15.h b/asn.1/lpp_generated/GNSS-Link-CombinationsList-r15.h similarity index 81% rename from asn.1/generated/GNSS-Link-CombinationsList-r15.h rename to asn.1/lpp_generated/GNSS-Link-CombinationsList-r15.h index aa83d914..dea064d9 100644 --- a/asn.1/generated/GNSS-Link-CombinationsList-r15.h +++ b/asn.1/lpp_generated/GNSS-Link-CombinationsList-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_Link_CombinationsList_r15_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_Link_CombinationsList_r15_constr_ } #endif -/* Referred external types */ -#include "GNSS-Link-Combinations-r15.h" - #endif /* _GNSS_Link_CombinationsList_r15_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-LocationInformation.c b/asn.1/lpp_generated/GNSS-LocationInformation.c new file mode 100644 index 00000000..2f6acde5 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-LocationInformation.c @@ -0,0 +1,166 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-LocationInformation.h" + +#include "HA-GNSS-Metrics-r17.h" +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_LocationInformation__ext1, ha_GNSS_Metrics_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HA_GNSS_Metrics_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ha-GNSS-Metrics-r17" + }, +}; +static const int asn_MAP_ext1_oms_5[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ha-GNSS-Metrics-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct GNSS_LocationInformation__ext1), + offsetof(struct GNSS_LocationInformation__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_5, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 1, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_LocationInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_LocationInformation, measurementReferenceTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MeasurementReferenceTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "measurementReferenceTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_LocationInformation, agnss_List), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ID_Bitmap, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "agnss-List" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_LocationInformation, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_LocationInformation_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_GNSS_LocationInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_LocationInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* measurementReferenceTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* agnss-List */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_LocationInformation_specs_1 = { + sizeof(struct GNSS_LocationInformation), + offsetof(struct GNSS_LocationInformation, _asn_ctx), + asn_MAP_GNSS_LocationInformation_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_GNSS_LocationInformation_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_LocationInformation = { + "GNSS-LocationInformation", + "GNSS-LocationInformation", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_LocationInformation_tags_1, + sizeof(asn_DEF_GNSS_LocationInformation_tags_1) + /sizeof(asn_DEF_GNSS_LocationInformation_tags_1[0]), /* 1 */ + asn_DEF_GNSS_LocationInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_LocationInformation_tags_1) + /sizeof(asn_DEF_GNSS_LocationInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_LocationInformation_1, + 3, /* Elements count */ + &asn_SPC_GNSS_LocationInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-LocationInformation.h b/asn.1/lpp_generated/GNSS-LocationInformation.h new file mode 100644 index 00000000..78aaf40d --- /dev/null +++ b/asn.1/lpp_generated/GNSS-LocationInformation.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_LocationInformation_H_ +#define _GNSS_LocationInformation_H_ + + +#include + +/* Including external dependencies */ +#include "MeasurementReferenceTime.h" +#include "GNSS-ID-Bitmap.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct HA_GNSS_Metrics_r17; + +/* GNSS-LocationInformation */ +typedef struct GNSS_LocationInformation { + MeasurementReferenceTime_t measurementReferenceTime; + GNSS_ID_Bitmap_t agnss_List; + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_LocationInformation__ext1 { + struct HA_GNSS_Metrics_r17 *ha_GNSS_Metrics_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_LocationInformation_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_LocationInformation; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_LocationInformation_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_LocationInformation_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_LocationInformation_H_ */ +#include diff --git a/asn.1/generated/GNSS-LocationServerErrorCauses.c b/asn.1/lpp_generated/GNSS-LocationServerErrorCauses.c similarity index 76% rename from asn.1/generated/GNSS-LocationServerErrorCauses.c rename to asn.1/lpp_generated/GNSS-LocationServerErrorCauses.c index 32805477..3fdda906 100644 --- a/asn.1/generated/GNSS-LocationServerErrorCauses.c +++ b/asn.1/lpp_generated/GNSS-LocationServerErrorCauses.c @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #include "GNSS-LocationServerErrorCauses.h" @@ -11,11 +11,13 @@ * This type is implemented using NativeEnumerated, * so here we adjust the DEF accordingly. */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) static asn_per_constraints_t asn_PER_type_cause_constr_2 CC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ static const asn_INTEGER_enum_map_t asn_MAP_cause_value2enum_2[] = { { 0, 9, "undefined" }, { 1, 47, "undeliveredAssistanceDataIsNotSupportedByServer" }, @@ -62,7 +64,15 @@ asn_TYPE_descriptor_t asn_DEF_cause_2 = { asn_DEF_cause_tags_2, /* Same as above */ sizeof(asn_DEF_cause_tags_2) /sizeof(asn_DEF_cause_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_cause_constr_2, NativeEnumerated_constraint }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, 0, 0, /* Defined elsewhere */ &asn_SPC_cause_specs_2 /* Additional specs */ }; @@ -73,7 +83,15 @@ asn_TYPE_member_t asn_MBR_GNSS_LocationServerErrorCauses_1[] = { -1, /* IMPLICIT tag at current level */ &asn_DEF_cause_2, 0, - { 0, 0, 0 }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, 0, 0, /* No default value */ "cause" }, @@ -102,7 +120,15 @@ asn_TYPE_descriptor_t asn_DEF_GNSS_LocationServerErrorCauses = { asn_DEF_GNSS_LocationServerErrorCauses_tags_1, /* Same as above */ sizeof(asn_DEF_GNSS_LocationServerErrorCauses_tags_1) /sizeof(asn_DEF_GNSS_LocationServerErrorCauses_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, asn_MBR_GNSS_LocationServerErrorCauses_1, 1, /* Elements count */ &asn_SPC_GNSS_LocationServerErrorCauses_specs_1 /* Additional specs */ diff --git a/asn.1/generated/GNSS-LocationServerErrorCauses.h b/asn.1/lpp_generated/GNSS-LocationServerErrorCauses.h similarity index 89% rename from asn.1/generated/GNSS-LocationServerErrorCauses.h rename to asn.1/lpp_generated/GNSS-LocationServerErrorCauses.h index 99cca805..c8555ea1 100644 --- a/asn.1/generated/GNSS-LocationServerErrorCauses.h +++ b/asn.1/lpp_generated/GNSS-LocationServerErrorCauses.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_LocationServerErrorCauses_H_ diff --git a/asn.1/lpp_generated/GNSS-MeasurementForOneGNSS.c b/asn.1/lpp_generated/GNSS-MeasurementForOneGNSS.c new file mode 100644 index 00000000..3a7d206c --- /dev/null +++ b/asn.1/lpp_generated/GNSS-MeasurementForOneGNSS.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-MeasurementForOneGNSS.h" + +asn_TYPE_member_t asn_MBR_GNSS_MeasurementForOneGNSS_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_MeasurementForOneGNSS, gnss_ID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-ID" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_MeasurementForOneGNSS, gnss_SgnMeasList), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SgnMeasList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SgnMeasList" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_MeasurementForOneGNSS_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_MeasurementForOneGNSS_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-ID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-SgnMeasList */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_MeasurementForOneGNSS_specs_1 = { + sizeof(struct GNSS_MeasurementForOneGNSS), + offsetof(struct GNSS_MeasurementForOneGNSS, _asn_ctx), + asn_MAP_GNSS_MeasurementForOneGNSS_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_MeasurementForOneGNSS = { + "GNSS-MeasurementForOneGNSS", + "GNSS-MeasurementForOneGNSS", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_MeasurementForOneGNSS_tags_1, + sizeof(asn_DEF_GNSS_MeasurementForOneGNSS_tags_1) + /sizeof(asn_DEF_GNSS_MeasurementForOneGNSS_tags_1[0]), /* 1 */ + asn_DEF_GNSS_MeasurementForOneGNSS_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_MeasurementForOneGNSS_tags_1) + /sizeof(asn_DEF_GNSS_MeasurementForOneGNSS_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_MeasurementForOneGNSS_1, + 2, /* Elements count */ + &asn_SPC_GNSS_MeasurementForOneGNSS_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-MeasurementForOneGNSS.h b/asn.1/lpp_generated/GNSS-MeasurementForOneGNSS.h similarity index 80% rename from asn.1/generated/GNSS-MeasurementForOneGNSS.h rename to asn.1/lpp_generated/GNSS-MeasurementForOneGNSS.h index 1515ad46..681bfe66 100644 --- a/asn.1/generated/GNSS-MeasurementForOneGNSS.h +++ b/asn.1/lpp_generated/GNSS-MeasurementForOneGNSS.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_MeasurementForOneGNSS_H_ diff --git a/asn.1/lpp_generated/GNSS-MeasurementList.c b/asn.1/lpp_generated/GNSS-MeasurementList.c new file mode 100644 index 00000000..9f7ee88a --- /dev/null +++ b/asn.1/lpp_generated/GNSS-MeasurementList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-MeasurementList.h" + +#include "GNSS-MeasurementForOneGNSS.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_MeasurementList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_MeasurementList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_MeasurementForOneGNSS, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_MeasurementList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_MeasurementList_specs_1 = { + sizeof(struct GNSS_MeasurementList), + offsetof(struct GNSS_MeasurementList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_MeasurementList = { + "GNSS-MeasurementList", + "GNSS-MeasurementList", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_MeasurementList_tags_1, + sizeof(asn_DEF_GNSS_MeasurementList_tags_1) + /sizeof(asn_DEF_GNSS_MeasurementList_tags_1[0]), /* 1 */ + asn_DEF_GNSS_MeasurementList_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_MeasurementList_tags_1) + /sizeof(asn_DEF_GNSS_MeasurementList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_MeasurementList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_MeasurementList_1, + 1, /* Single element */ + &asn_SPC_GNSS_MeasurementList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-MeasurementList.h b/asn.1/lpp_generated/GNSS-MeasurementList.h similarity index 80% rename from asn.1/generated/GNSS-MeasurementList.h rename to asn.1/lpp_generated/GNSS-MeasurementList.h index b296e903..3e06efa1 100644 --- a/asn.1/generated/GNSS-MeasurementList.h +++ b/asn.1/lpp_generated/GNSS-MeasurementList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_MeasurementList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_MeasurementList_constr_1; } #endif -/* Referred external types */ -#include "GNSS-MeasurementForOneGNSS.h" - #endif /* _GNSS_MeasurementList_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-NavListInfo-r15.c b/asn.1/lpp_generated/GNSS-NavListInfo-r15.c new file mode 100644 index 00000000..c0c2a76a --- /dev/null +++ b/asn.1/lpp_generated/GNSS-NavListInfo-r15.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-NavListInfo-r15.h" + +#include "SatListElement-r15.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_NavListInfo_r15_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_NavListInfo_r15_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SatListElement_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_NavListInfo_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_NavListInfo_r15_specs_1 = { + sizeof(struct GNSS_NavListInfo_r15), + offsetof(struct GNSS_NavListInfo_r15, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_NavListInfo_r15 = { + "GNSS-NavListInfo-r15", + "GNSS-NavListInfo-r15", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_NavListInfo_r15_tags_1, + sizeof(asn_DEF_GNSS_NavListInfo_r15_tags_1) + /sizeof(asn_DEF_GNSS_NavListInfo_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_NavListInfo_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_NavListInfo_r15_tags_1) + /sizeof(asn_DEF_GNSS_NavListInfo_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_NavListInfo_r15_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_NavListInfo_r15_1, + 1, /* Single element */ + &asn_SPC_GNSS_NavListInfo_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-NavListInfo-r15.h b/asn.1/lpp_generated/GNSS-NavListInfo-r15.h similarity index 79% rename from asn.1/generated/GNSS-NavListInfo-r15.h rename to asn.1/lpp_generated/GNSS-NavListInfo-r15.h index 9183066c..07878341 100644 --- a/asn.1/generated/GNSS-NavListInfo-r15.h +++ b/asn.1/lpp_generated/GNSS-NavListInfo-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_NavListInfo_r15_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_NavListInfo_r15_constr_1; } #endif -/* Referred external types */ -#include "SatListElement-r15.h" - #endif /* _GNSS_NavListInfo_r15_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-NavModelSatelliteElement.c b/asn.1/lpp_generated/GNSS-NavModelSatelliteElement.c new file mode 100644 index 00000000..fb2b5be2 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-NavModelSatelliteElement.c @@ -0,0 +1,333 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-NavModelSatelliteElement.h" + +static int +memb_svHealthExt_v1240_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 4UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_svHealth_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_iod_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 11UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_svHealthExt_v1240_constr_9 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_svHealth_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_iod_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 11, 11 } /* (SIZE(11..11)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_8[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_NavModelSatelliteElement__ext1, svHealthExt_v1240), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_svHealthExt_v1240_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_svHealthExt_v1240_constraint_8 + }, + 0, 0, /* No default value */ + "svHealthExt-v1240" + }, +}; +static const int asn_MAP_ext1_oms_8[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* svHealthExt-v1240 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { + sizeof(struct GNSS_NavModelSatelliteElement__ext1), + offsetof(struct GNSS_NavModelSatelliteElement__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_8, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_8, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_8 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_8, + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_8, /* Same as above */ + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_8, + 1, /* Elements count */ + &asn_SPC_ext1_specs_8 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_NavModelSatelliteElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_NavModelSatelliteElement, svID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_NavModelSatelliteElement, svHealth), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_svHealth_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_svHealth_constraint_1 + }, + 0, 0, /* No default value */ + "svHealth" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_NavModelSatelliteElement, iod), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_iod_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_iod_constraint_1 + }, + 0, 0, /* No default value */ + "iod" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_NavModelSatelliteElement, gnss_ClockModel), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_GNSS_ClockModel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-ClockModel" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_NavModelSatelliteElement, gnss_OrbitModel), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_GNSS_OrbitModel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-OrbitModel" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_NavModelSatelliteElement, ext1), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext1_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_NavModelSatelliteElement_oms_1[] = { 5 }; +static const ber_tlv_tag_t asn_DEF_GNSS_NavModelSatelliteElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_NavModelSatelliteElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* svHealth */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* iod */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-ClockModel */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-OrbitModel */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_NavModelSatelliteElement_specs_1 = { + sizeof(struct GNSS_NavModelSatelliteElement), + offsetof(struct GNSS_NavModelSatelliteElement, _asn_ctx), + asn_MAP_GNSS_NavModelSatelliteElement_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_GNSS_NavModelSatelliteElement_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_NavModelSatelliteElement = { + "GNSS-NavModelSatelliteElement", + "GNSS-NavModelSatelliteElement", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_NavModelSatelliteElement_tags_1, + sizeof(asn_DEF_GNSS_NavModelSatelliteElement_tags_1) + /sizeof(asn_DEF_GNSS_NavModelSatelliteElement_tags_1[0]), /* 1 */ + asn_DEF_GNSS_NavModelSatelliteElement_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_NavModelSatelliteElement_tags_1) + /sizeof(asn_DEF_GNSS_NavModelSatelliteElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_NavModelSatelliteElement_1, + 6, /* Elements count */ + &asn_SPC_GNSS_NavModelSatelliteElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-NavModelSatelliteElement.h b/asn.1/lpp_generated/GNSS-NavModelSatelliteElement.h similarity index 81% rename from asn.1/generated/GNSS-NavModelSatelliteElement.h rename to asn.1/lpp_generated/GNSS-NavModelSatelliteElement.h index 0bf937b3..96fc8dcc 100644 --- a/asn.1/generated/GNSS-NavModelSatelliteElement.h +++ b/asn.1/lpp_generated/GNSS-NavModelSatelliteElement.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_NavModelSatelliteElement_H_ @@ -34,7 +34,7 @@ typedef struct GNSS_NavModelSatelliteElement { * possible extensions are below. */ struct GNSS_NavModelSatelliteElement__ext1 { - BIT_STRING_t *svHealthExt_v1240 /* OPTIONAL */; + BIT_STRING_t *svHealthExt_v1240; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/GNSS-NavModelSatelliteList.c b/asn.1/lpp_generated/GNSS-NavModelSatelliteList.c new file mode 100644 index 00000000..1c76f959 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-NavModelSatelliteList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-NavModelSatelliteList.h" + +#include "GNSS-NavModelSatelliteElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_NavModelSatelliteList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_NavModelSatelliteList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_NavModelSatelliteElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_NavModelSatelliteList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_NavModelSatelliteList_specs_1 = { + sizeof(struct GNSS_NavModelSatelliteList), + offsetof(struct GNSS_NavModelSatelliteList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_NavModelSatelliteList = { + "GNSS-NavModelSatelliteList", + "GNSS-NavModelSatelliteList", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_NavModelSatelliteList_tags_1, + sizeof(asn_DEF_GNSS_NavModelSatelliteList_tags_1) + /sizeof(asn_DEF_GNSS_NavModelSatelliteList_tags_1[0]), /* 1 */ + asn_DEF_GNSS_NavModelSatelliteList_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_NavModelSatelliteList_tags_1) + /sizeof(asn_DEF_GNSS_NavModelSatelliteList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_NavModelSatelliteList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_NavModelSatelliteList_1, + 1, /* Single element */ + &asn_SPC_GNSS_NavModelSatelliteList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-NavModelSatelliteList.h b/asn.1/lpp_generated/GNSS-NavModelSatelliteList.h similarity index 81% rename from asn.1/generated/GNSS-NavModelSatelliteList.h rename to asn.1/lpp_generated/GNSS-NavModelSatelliteList.h index 2eedaf2b..cfa46fbf 100644 --- a/asn.1/generated/GNSS-NavModelSatelliteList.h +++ b/asn.1/lpp_generated/GNSS-NavModelSatelliteList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_NavModelSatelliteList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_NavModelSatelliteList_constr_1; } #endif -/* Referred external types */ -#include "GNSS-NavModelSatelliteElement.h" - #endif /* _GNSS_NavModelSatelliteList_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-NavigationModel.c b/asn.1/lpp_generated/GNSS-NavigationModel.c new file mode 100644 index 00000000..48d5c43c --- /dev/null +++ b/asn.1/lpp_generated/GNSS-NavigationModel.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-NavigationModel.h" + +static int +memb_nonBroadcastIndFlag_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nonBroadcastIndFlag_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_NavigationModel_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_NavigationModel, nonBroadcastIndFlag), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nonBroadcastIndFlag_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nonBroadcastIndFlag_constraint_1 + }, + 0, 0, /* No default value */ + "nonBroadcastIndFlag" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_NavigationModel, gnss_SatelliteList), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_NavModelSatelliteList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SatelliteList" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_NavigationModel_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_NavigationModel_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nonBroadcastIndFlag */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-SatelliteList */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_NavigationModel_specs_1 = { + sizeof(struct GNSS_NavigationModel), + offsetof(struct GNSS_NavigationModel, _asn_ctx), + asn_MAP_GNSS_NavigationModel_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_NavigationModel = { + "GNSS-NavigationModel", + "GNSS-NavigationModel", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_NavigationModel_tags_1, + sizeof(asn_DEF_GNSS_NavigationModel_tags_1) + /sizeof(asn_DEF_GNSS_NavigationModel_tags_1[0]), /* 1 */ + asn_DEF_GNSS_NavigationModel_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_NavigationModel_tags_1) + /sizeof(asn_DEF_GNSS_NavigationModel_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_NavigationModel_1, + 2, /* Elements count */ + &asn_SPC_GNSS_NavigationModel_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-NavigationModel.h b/asn.1/lpp_generated/GNSS-NavigationModel.h similarity index 80% rename from asn.1/generated/GNSS-NavigationModel.h rename to asn.1/lpp_generated/GNSS-NavigationModel.h index 9215321f..4281380b 100644 --- a/asn.1/generated/GNSS-NavigationModel.h +++ b/asn.1/lpp_generated/GNSS-NavigationModel.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_NavigationModel_H_ diff --git a/asn.1/lpp_generated/GNSS-NavigationModelReq.c b/asn.1/lpp_generated/GNSS-NavigationModelReq.c new file mode 100644 index 00000000..d0b99bdd --- /dev/null +++ b/asn.1/lpp_generated/GNSS-NavigationModelReq.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-NavigationModelReq.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_NavigationModelReq_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_NavigationModelReq_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_NavigationModelReq, choice.storedNavList), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StoredNavListInfo, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "storedNavList" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_NavigationModelReq, choice.reqNavList), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReqNavListInfo, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reqNavList" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_NavigationModelReq_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* storedNavList */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* reqNavList */ +}; +asn_CHOICE_specifics_t asn_SPC_GNSS_NavigationModelReq_specs_1 = { + sizeof(struct GNSS_NavigationModelReq), + offsetof(struct GNSS_NavigationModelReq, _asn_ctx), + offsetof(struct GNSS_NavigationModelReq, present), + sizeof(((struct GNSS_NavigationModelReq *)0)->present), + asn_MAP_GNSS_NavigationModelReq_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_NavigationModelReq = { + "GNSS-NavigationModelReq", + "GNSS-NavigationModelReq", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_NavigationModelReq_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_GNSS_NavigationModelReq_1, + 2, /* Elements count */ + &asn_SPC_GNSS_NavigationModelReq_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-NavigationModelReq.h b/asn.1/lpp_generated/GNSS-NavigationModelReq.h similarity index 85% rename from asn.1/generated/GNSS-NavigationModelReq.h rename to asn.1/lpp_generated/GNSS-NavigationModelReq.h index 57b4ad17..b7e2d712 100644 --- a/asn.1/generated/GNSS-NavigationModelReq.h +++ b/asn.1/lpp_generated/GNSS-NavigationModelReq.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_NavigationModelReq_H_ diff --git a/asn.1/lpp_generated/GNSS-NavigationModelSupport.c b/asn.1/lpp_generated/GNSS-NavigationModelSupport.c new file mode 100644 index 00000000..a6b34e05 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-NavigationModelSupport.c @@ -0,0 +1,162 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-NavigationModelSupport.h" + +static int +memb_clockModel_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_orbitModel_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_clockModel_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_orbitModel_constr_11 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_NavigationModelSupport_1[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_NavigationModelSupport, clockModel), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_clockModel_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_clockModel_constraint_1 + }, + 0, 0, /* No default value */ + "clockModel" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_NavigationModelSupport, orbitModel), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_orbitModel_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_orbitModel_constraint_1 + }, + 0, 0, /* No default value */ + "orbitModel" + }, +}; +static const int asn_MAP_GNSS_NavigationModelSupport_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_GNSS_NavigationModelSupport_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_NavigationModelSupport_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* clockModel */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* orbitModel */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_NavigationModelSupport_specs_1 = { + sizeof(struct GNSS_NavigationModelSupport), + offsetof(struct GNSS_NavigationModelSupport, _asn_ctx), + asn_MAP_GNSS_NavigationModelSupport_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_GNSS_NavigationModelSupport_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_NavigationModelSupport = { + "GNSS-NavigationModelSupport", + "GNSS-NavigationModelSupport", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_NavigationModelSupport_tags_1, + sizeof(asn_DEF_GNSS_NavigationModelSupport_tags_1) + /sizeof(asn_DEF_GNSS_NavigationModelSupport_tags_1[0]), /* 1 */ + asn_DEF_GNSS_NavigationModelSupport_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_NavigationModelSupport_tags_1) + /sizeof(asn_DEF_GNSS_NavigationModelSupport_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_NavigationModelSupport_1, + 2, /* Elements count */ + &asn_SPC_GNSS_NavigationModelSupport_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-NavigationModelSupport.h b/asn.1/lpp_generated/GNSS-NavigationModelSupport.h similarity index 85% rename from asn.1/generated/GNSS-NavigationModelSupport.h rename to asn.1/lpp_generated/GNSS-NavigationModelSupport.h index 5d458936..53a5529c 100644 --- a/asn.1/generated/GNSS-NavigationModelSupport.h +++ b/asn.1/lpp_generated/GNSS-NavigationModelSupport.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_NavigationModelSupport_H_ @@ -43,8 +43,8 @@ typedef enum GNSS_NavigationModelSupport__orbitModel { /* GNSS-NavigationModelSupport */ typedef struct GNSS_NavigationModelSupport { - BIT_STRING_t *clockModel /* OPTIONAL */; - BIT_STRING_t *orbitModel /* OPTIONAL */; + BIT_STRING_t *clockModel; /* OPTIONAL */ + BIT_STRING_t *orbitModel; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/GNSS-NetworkID-r15.c b/asn.1/lpp_generated/GNSS-NetworkID-r15.c new file mode 100644 index 00000000..30287756 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-NetworkID-r15.c @@ -0,0 +1,98 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-NetworkID-r15.h" + +static int +memb_networkID_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_networkID_r15_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_NetworkID_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_NetworkID_r15, networkID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_networkID_r15_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_networkID_r15_constraint_1 + }, + 0, 0, /* No default value */ + "networkID-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_NetworkID_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_NetworkID_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* networkID-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_NetworkID_r15_specs_1 = { + sizeof(struct GNSS_NetworkID_r15), + offsetof(struct GNSS_NetworkID_r15, _asn_ctx), + asn_MAP_GNSS_NetworkID_r15_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_NetworkID_r15 = { + "GNSS-NetworkID-r15", + "GNSS-NetworkID-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_NetworkID_r15_tags_1, + sizeof(asn_DEF_GNSS_NetworkID_r15_tags_1) + /sizeof(asn_DEF_GNSS_NetworkID_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_NetworkID_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_NetworkID_r15_tags_1) + /sizeof(asn_DEF_GNSS_NetworkID_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_NetworkID_r15_1, + 1, /* Elements count */ + &asn_SPC_GNSS_NetworkID_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-NetworkID-r15.h b/asn.1/lpp_generated/GNSS-NetworkID-r15.h similarity index 78% rename from asn.1/generated/GNSS-NetworkID-r15.h rename to asn.1/lpp_generated/GNSS-NetworkID-r15.h index 9bfeaa31..c6090868 100644 --- a/asn.1/generated/GNSS-NetworkID-r15.h +++ b/asn.1/lpp_generated/GNSS-NetworkID-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_NetworkID_r15_H_ diff --git a/asn.1/lpp_generated/GNSS-ObservationList-r15.c b/asn.1/lpp_generated/GNSS-ObservationList-r15.c new file mode 100644 index 00000000..932fc223 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-ObservationList-r15.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-ObservationList-r15.h" + +#include "GNSS-RTK-SatelliteDataElement-r15.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_ObservationList_r15_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_ObservationList_r15_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_RTK_SatelliteDataElement_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_ObservationList_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_ObservationList_r15_specs_1 = { + sizeof(struct GNSS_ObservationList_r15), + offsetof(struct GNSS_ObservationList_r15, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_ObservationList_r15 = { + "GNSS-ObservationList-r15", + "GNSS-ObservationList-r15", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_ObservationList_r15_tags_1, + sizeof(asn_DEF_GNSS_ObservationList_r15_tags_1) + /sizeof(asn_DEF_GNSS_ObservationList_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_ObservationList_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_ObservationList_r15_tags_1) + /sizeof(asn_DEF_GNSS_ObservationList_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_ObservationList_r15_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_ObservationList_r15_1, + 1, /* Single element */ + &asn_SPC_GNSS_ObservationList_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-ObservationList-r15.h b/asn.1/lpp_generated/GNSS-ObservationList-r15.h similarity index 80% rename from asn.1/generated/GNSS-ObservationList-r15.h rename to asn.1/lpp_generated/GNSS-ObservationList-r15.h index 11b8b7ec..78ff4379 100644 --- a/asn.1/generated/GNSS-ObservationList-r15.h +++ b/asn.1/lpp_generated/GNSS-ObservationList-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_ObservationList_r15_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_ObservationList_r15_constr_1; } #endif -/* Referred external types */ -#include "GNSS-RTK-SatelliteDataElement-r15.h" - #endif /* _GNSS_ObservationList_r15_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-OrbitModel.c b/asn.1/lpp_generated/GNSS-OrbitModel.c new file mode 100644 index 00000000..51ad991b --- /dev/null +++ b/asn.1/lpp_generated/GNSS-OrbitModel.c @@ -0,0 +1,196 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-OrbitModel.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_OrbitModel_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_OrbitModel_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_OrbitModel, choice.keplerianSet), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NavModelKeplerianSet, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "keplerianSet" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_OrbitModel, choice.nav_KeplerianSet), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NavModelNAV_KeplerianSet, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nav-KeplerianSet" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_OrbitModel, choice.cnav_KeplerianSet), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NavModelCNAV_KeplerianSet, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cnav-KeplerianSet" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_OrbitModel, choice.glonass_ECEF), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NavModel_GLONASS_ECEF, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "glonass-ECEF" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_OrbitModel, choice.sbas_ECEF), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NavModel_SBAS_ECEF, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sbas-ECEF" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_OrbitModel, choice.bds_KeplerianSet_r12), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NavModel_BDS_KeplerianSet_r12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bds-KeplerianSet-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_OrbitModel, choice.bds_KeplerianSet2_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NavModel_BDS_KeplerianSet2_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bds-KeplerianSet2-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_OrbitModel, choice.navic_KeplerianSet_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NavModel_NavIC_KeplerianSet_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "navic-KeplerianSet-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_OrbitModel_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* keplerianSet */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nav-KeplerianSet */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cnav-KeplerianSet */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* glonass-ECEF */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* sbas-ECEF */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* bds-KeplerianSet-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* bds-KeplerianSet2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* navic-KeplerianSet-r16 */ +}; +asn_CHOICE_specifics_t asn_SPC_GNSS_OrbitModel_specs_1 = { + sizeof(struct GNSS_OrbitModel), + offsetof(struct GNSS_OrbitModel, _asn_ctx), + offsetof(struct GNSS_OrbitModel, present), + sizeof(((struct GNSS_OrbitModel *)0)->present), + asn_MAP_GNSS_OrbitModel_tag2el_1, + 8, /* Count of tags in the map */ + 0, 0, + 5 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_OrbitModel = { + "GNSS-OrbitModel", + "GNSS-OrbitModel", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_OrbitModel_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_GNSS_OrbitModel_1, + 8, /* Elements count */ + &asn_SPC_GNSS_OrbitModel_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-OrbitModel.h b/asn.1/lpp_generated/GNSS-OrbitModel.h similarity index 84% rename from asn.1/generated/GNSS-OrbitModel.h rename to asn.1/lpp_generated/GNSS-OrbitModel.h index 4dc1f2d7..10924fc5 100644 --- a/asn.1/generated/GNSS-OrbitModel.h +++ b/asn.1/lpp_generated/GNSS-OrbitModel.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_OrbitModel_H_ @@ -19,6 +19,7 @@ #include "NavModel-SBAS-ECEF.h" #include "NavModel-BDS-KeplerianSet-r12.h" #include "NavModel-BDS-KeplerianSet2-r16.h" +#include "NavModel-NavIC-KeplerianSet-r16.h" #include #ifdef __cplusplus @@ -54,7 +55,7 @@ typedef struct GNSS_OrbitModel { */ NavModel_BDS_KeplerianSet_r12_t bds_KeplerianSet_r12; NavModel_BDS_KeplerianSet2_r16_t bds_KeplerianSet2_r16; - NavModelKeplerianSet_t navic_KeplerianSet_r16; + NavModel_NavIC_KeplerianSet_r16_t navic_KeplerianSet_r16; } choice; /* Context for parsing across buffer boundaries */ diff --git a/asn.1/lpp_generated/GNSS-PeriodicAssistData-r15.c b/asn.1/lpp_generated/GNSS-PeriodicAssistData-r15.c new file mode 100644 index 00000000..b0d249fe --- /dev/null +++ b/asn.1/lpp_generated/GNSS-PeriodicAssistData-r15.c @@ -0,0 +1,601 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-PeriodicAssistData-r15.h" + +#include "GNSS-PeriodicControlParam-r15.h" +static asn_TYPE_member_t asn_MBR_ext1_11[] = { + { ATF_POINTER, 4, offsetof(struct GNSS_PeriodicAssistData_r15__ext1, gnss_SSR_PeriodicURA_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicURA-r16" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_PeriodicAssistData_r15__ext1, gnss_SSR_PeriodicPhaseBias_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicPhaseBias-r16" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_PeriodicAssistData_r15__ext1, gnss_SSR_PeriodicSTEC_Correction_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicSTEC-Correction-r16" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_PeriodicAssistData_r15__ext1, gnss_SSR_PeriodicGriddedCorrection_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicGriddedCorrection-r16" + }, +}; +static const int asn_MAP_ext1_oms_11[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SSR-PeriodicURA-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-SSR-PeriodicPhaseBias-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-SSR-PeriodicSTEC-Correction-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* gnss-SSR-PeriodicGriddedCorrection-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_11 = { + sizeof(struct GNSS_PeriodicAssistData_r15__ext1), + offsetof(struct GNSS_PeriodicAssistData_r15__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_11, + 4, /* Count of tags in the map */ + asn_MAP_ext1_oms_11, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_11 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_11, + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_11, /* Same as above */ + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_11, + 4, /* Elements count */ + &asn_SPC_ext1_specs_11 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_16[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_PeriodicAssistData_r15__ext2, gnss_Integrity_PeriodicServiceAlert_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-Integrity-PeriodicServiceAlert-r17" + }, +}; +static const int asn_MAP_ext2_oms_16[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_16[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_16[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-Integrity-PeriodicServiceAlert-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_16 = { + sizeof(struct GNSS_PeriodicAssistData_r15__ext2), + offsetof(struct GNSS_PeriodicAssistData_r15__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_16, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_16, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_16 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_16, + sizeof(asn_DEF_ext2_tags_16) + /sizeof(asn_DEF_ext2_tags_16[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_16, /* Same as above */ + sizeof(asn_DEF_ext2_tags_16) + /sizeof(asn_DEF_ext2_tags_16[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_16, + 1, /* Elements count */ + &asn_SPC_ext2_specs_16 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_18[] = { + { ATF_POINTER, 3, offsetof(struct GNSS_PeriodicAssistData_r15__ext3, gnss_SSR_PeriodicOrbitCorrectionsSet2_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicOrbitCorrectionsSet2-r17" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_PeriodicAssistData_r15__ext3, gnss_SSR_PeriodicClockCorrectionsSet2_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicClockCorrectionsSet2-r17" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_PeriodicAssistData_r15__ext3, gnss_SSR_PeriodicURA_Set2_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicURA-Set2-r17" + }, +}; +static const int asn_MAP_ext3_oms_18[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_18[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SSR-PeriodicOrbitCorrectionsSet2-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-SSR-PeriodicClockCorrectionsSet2-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gnss-SSR-PeriodicURA-Set2-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_18 = { + sizeof(struct GNSS_PeriodicAssistData_r15__ext3), + offsetof(struct GNSS_PeriodicAssistData_r15__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_18, + 3, /* Count of tags in the map */ + asn_MAP_ext3_oms_18, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_18 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_18, + sizeof(asn_DEF_ext3_tags_18) + /sizeof(asn_DEF_ext3_tags_18[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_18, /* Same as above */ + sizeof(asn_DEF_ext3_tags_18) + /sizeof(asn_DEF_ext3_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_18, + 3, /* Elements count */ + &asn_SPC_ext3_specs_18 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext4_22[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_PeriodicAssistData_r15__ext4, gnss_SSR_PeriodicIOD_Update_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicIOD-Update-r18" + }, +}; +static const int asn_MAP_ext4_oms_22[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext4_tags_22[] = { + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext4_tag2el_22[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-SSR-PeriodicIOD-Update-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext4_specs_22 = { + sizeof(struct GNSS_PeriodicAssistData_r15__ext4), + offsetof(struct GNSS_PeriodicAssistData_r15__ext4, _asn_ctx), + asn_MAP_ext4_tag2el_22, + 1, /* Count of tags in the map */ + asn_MAP_ext4_oms_22, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext4_22 = { + "ext4", + "ext4", + &asn_OP_SEQUENCE, + asn_DEF_ext4_tags_22, + sizeof(asn_DEF_ext4_tags_22) + /sizeof(asn_DEF_ext4_tags_22[0]) - 1, /* 1 */ + asn_DEF_ext4_tags_22, /* Same as above */ + sizeof(asn_DEF_ext4_tags_22) + /sizeof(asn_DEF_ext4_tags_22[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext4_22, + 1, /* Elements count */ + &asn_SPC_ext4_specs_22 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_PeriodicAssistData_r15_1[] = { + { ATF_POINTER, 12, offsetof(struct GNSS_PeriodicAssistData_r15, gnss_RTK_PeriodicObservations_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-PeriodicObservations-r15" + }, + { ATF_POINTER, 11, offsetof(struct GNSS_PeriodicAssistData_r15, glo_RTK_PeriodicBiasInformation_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "glo-RTK-PeriodicBiasInformation-r15" + }, + { ATF_POINTER, 10, offsetof(struct GNSS_PeriodicAssistData_r15, gnss_RTK_MAC_PeriodicCorrectionDifferences_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-MAC-PeriodicCorrectionDifferences-r15" + }, + { ATF_POINTER, 9, offsetof(struct GNSS_PeriodicAssistData_r15, gnss_RTK_PeriodicResiduals_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-PeriodicResiduals-r15" + }, + { ATF_POINTER, 8, offsetof(struct GNSS_PeriodicAssistData_r15, gnss_RTK_FKP_PeriodicGradients_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-FKP-PeriodicGradients-r15" + }, + { ATF_POINTER, 7, offsetof(struct GNSS_PeriodicAssistData_r15, gnss_SSR_PeriodicOrbitCorrections_r15), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicOrbitCorrections-r15" + }, + { ATF_POINTER, 6, offsetof(struct GNSS_PeriodicAssistData_r15, gnss_SSR_PeriodicClockCorrections_r15), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicClockCorrections-r15" + }, + { ATF_POINTER, 5, offsetof(struct GNSS_PeriodicAssistData_r15, gnss_SSR_PeriodicCodeBias_r15), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicCodeBias-r15" + }, + { ATF_POINTER, 4, offsetof(struct GNSS_PeriodicAssistData_r15, ext1), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + 0, + &asn_DEF_ext1_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_PeriodicAssistData_r15, ext2), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + 0, + &asn_DEF_ext2_16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_PeriodicAssistData_r15, ext3), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + 0, + &asn_DEF_ext3_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_PeriodicAssistData_r15, ext4), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + 0, + &asn_DEF_ext4_22, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext4" + }, +}; +static const int asn_MAP_GNSS_PeriodicAssistData_r15_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static const ber_tlv_tag_t asn_DEF_GNSS_PeriodicAssistData_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_PeriodicAssistData_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-RTK-PeriodicObservations-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* glo-RTK-PeriodicBiasInformation-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-RTK-MAC-PeriodicCorrectionDifferences-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-RTK-PeriodicResiduals-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-RTK-FKP-PeriodicGradients-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gnss-SSR-PeriodicOrbitCorrections-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnss-SSR-PeriodicClockCorrections-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* gnss-SSR-PeriodicCodeBias-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* ext3 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* ext4 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_PeriodicAssistData_r15_specs_1 = { + sizeof(struct GNSS_PeriodicAssistData_r15), + offsetof(struct GNSS_PeriodicAssistData_r15, _asn_ctx), + asn_MAP_GNSS_PeriodicAssistData_r15_tag2el_1, + 12, /* Count of tags in the map */ + asn_MAP_GNSS_PeriodicAssistData_r15_oms_1, /* Optional members */ + 8, 4, /* Root/Additions */ + 8, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_PeriodicAssistData_r15 = { + "GNSS-PeriodicAssistData-r15", + "GNSS-PeriodicAssistData-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_PeriodicAssistData_r15_tags_1, + sizeof(asn_DEF_GNSS_PeriodicAssistData_r15_tags_1) + /sizeof(asn_DEF_GNSS_PeriodicAssistData_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_PeriodicAssistData_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_PeriodicAssistData_r15_tags_1) + /sizeof(asn_DEF_GNSS_PeriodicAssistData_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_PeriodicAssistData_r15_1, + 12, /* Elements count */ + &asn_SPC_GNSS_PeriodicAssistData_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-PeriodicAssistData-r15.h b/asn.1/lpp_generated/GNSS-PeriodicAssistData-r15.h new file mode 100644 index 00000000..f1292acf --- /dev/null +++ b/asn.1/lpp_generated/GNSS-PeriodicAssistData-r15.h @@ -0,0 +1,82 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_PeriodicAssistData_r15_H_ +#define _GNSS_PeriodicAssistData_r15_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GNSS_PeriodicControlParam_r15; + +/* GNSS-PeriodicAssistData-r15 */ +typedef struct GNSS_PeriodicAssistData_r15 { + struct GNSS_PeriodicControlParam_r15 *gnss_RTK_PeriodicObservations_r15; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *glo_RTK_PeriodicBiasInformation_r15; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_RTK_MAC_PeriodicCorrectionDifferences_r15; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_RTK_PeriodicResiduals_r15; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_RTK_FKP_PeriodicGradients_r15; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicOrbitCorrections_r15; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicClockCorrections_r15; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicCodeBias_r15; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_PeriodicAssistData_r15__ext1 { + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicURA_r16; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicPhaseBias_r16; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicSTEC_Correction_r16; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicGriddedCorrection_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct GNSS_PeriodicAssistData_r15__ext2 { + struct GNSS_PeriodicControlParam_r15 *gnss_Integrity_PeriodicServiceAlert_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct GNSS_PeriodicAssistData_r15__ext3 { + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicOrbitCorrectionsSet2_r17; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicClockCorrectionsSet2_r17; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicURA_Set2_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + struct GNSS_PeriodicAssistData_r15__ext4 { + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicIOD_Update_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext4; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_PeriodicAssistData_r15_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_PeriodicAssistData_r15; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_PeriodicAssistData_r15_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_PeriodicAssistData_r15_1[12]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_PeriodicAssistData_r15_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-PeriodicAssistDataReq-r15.c b/asn.1/lpp_generated/GNSS-PeriodicAssistDataReq-r15.c new file mode 100644 index 00000000..40fb5ec2 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-PeriodicAssistDataReq-r15.c @@ -0,0 +1,601 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-PeriodicAssistDataReq-r15.h" + +#include "GNSS-PeriodicControlParam-r15.h" +static asn_TYPE_member_t asn_MBR_ext1_11[] = { + { ATF_POINTER, 4, offsetof(struct GNSS_PeriodicAssistDataReq_r15__ext1, gnss_SSR_PeriodicURA_Req_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicURA-Req-r16" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_PeriodicAssistDataReq_r15__ext1, gnss_SSR_PeriodicPhaseBiasReq_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicPhaseBiasReq-r16" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_PeriodicAssistDataReq_r15__ext1, gnss_SSR_PeriodicSTEC_CorrectionReq_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicSTEC-CorrectionReq-r16" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_PeriodicAssistDataReq_r15__ext1, gnss_SSR_PeriodicGriddedCorrectionReq_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicGriddedCorrectionReq-r16" + }, +}; +static const int asn_MAP_ext1_oms_11[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SSR-PeriodicURA-Req-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-SSR-PeriodicPhaseBiasReq-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-SSR-PeriodicSTEC-CorrectionReq-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* gnss-SSR-PeriodicGriddedCorrectionReq-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_11 = { + sizeof(struct GNSS_PeriodicAssistDataReq_r15__ext1), + offsetof(struct GNSS_PeriodicAssistDataReq_r15__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_11, + 4, /* Count of tags in the map */ + asn_MAP_ext1_oms_11, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_11 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_11, + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_11, /* Same as above */ + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_11, + 4, /* Elements count */ + &asn_SPC_ext1_specs_11 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_16[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_PeriodicAssistDataReq_r15__ext2, gnss_Integrity_PeriodicServiceAlertReq_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-Integrity-PeriodicServiceAlertReq-r17" + }, +}; +static const int asn_MAP_ext2_oms_16[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_16[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_16[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-Integrity-PeriodicServiceAlertReq-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_16 = { + sizeof(struct GNSS_PeriodicAssistDataReq_r15__ext2), + offsetof(struct GNSS_PeriodicAssistDataReq_r15__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_16, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_16, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_16 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_16, + sizeof(asn_DEF_ext2_tags_16) + /sizeof(asn_DEF_ext2_tags_16[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_16, /* Same as above */ + sizeof(asn_DEF_ext2_tags_16) + /sizeof(asn_DEF_ext2_tags_16[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_16, + 1, /* Elements count */ + &asn_SPC_ext2_specs_16 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_18[] = { + { ATF_POINTER, 3, offsetof(struct GNSS_PeriodicAssistDataReq_r15__ext3, gnss_SSR_PeriodicOrbitCorrectionsSet2Req_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicOrbitCorrectionsSet2Req-r17" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_PeriodicAssistDataReq_r15__ext3, gnss_SSR_PeriodicClockCorrectionsSet2Req_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicClockCorrectionsSet2Req-r17" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_PeriodicAssistDataReq_r15__ext3, gnss_SSR_PeriodicURA_Set2Req_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicURA-Set2Req-r17" + }, +}; +static const int asn_MAP_ext3_oms_18[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_18[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SSR-PeriodicOrbitCorrectionsSet2Req-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-SSR-PeriodicClockCorrectionsSet2Req-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gnss-SSR-PeriodicURA-Set2Req-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_18 = { + sizeof(struct GNSS_PeriodicAssistDataReq_r15__ext3), + offsetof(struct GNSS_PeriodicAssistDataReq_r15__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_18, + 3, /* Count of tags in the map */ + asn_MAP_ext3_oms_18, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_18 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_18, + sizeof(asn_DEF_ext3_tags_18) + /sizeof(asn_DEF_ext3_tags_18[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_18, /* Same as above */ + sizeof(asn_DEF_ext3_tags_18) + /sizeof(asn_DEF_ext3_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_18, + 3, /* Elements count */ + &asn_SPC_ext3_specs_18 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext4_22[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_PeriodicAssistDataReq_r15__ext4, gnss_SSR_PeriodicIOD_UpdateReq_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicIOD-UpdateReq-r18" + }, +}; +static const int asn_MAP_ext4_oms_22[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext4_tags_22[] = { + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext4_tag2el_22[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-SSR-PeriodicIOD-UpdateReq-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext4_specs_22 = { + sizeof(struct GNSS_PeriodicAssistDataReq_r15__ext4), + offsetof(struct GNSS_PeriodicAssistDataReq_r15__ext4, _asn_ctx), + asn_MAP_ext4_tag2el_22, + 1, /* Count of tags in the map */ + asn_MAP_ext4_oms_22, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext4_22 = { + "ext4", + "ext4", + &asn_OP_SEQUENCE, + asn_DEF_ext4_tags_22, + sizeof(asn_DEF_ext4_tags_22) + /sizeof(asn_DEF_ext4_tags_22[0]) - 1, /* 1 */ + asn_DEF_ext4_tags_22, /* Same as above */ + sizeof(asn_DEF_ext4_tags_22) + /sizeof(asn_DEF_ext4_tags_22[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext4_22, + 1, /* Elements count */ + &asn_SPC_ext4_specs_22 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_PeriodicAssistDataReq_r15_1[] = { + { ATF_POINTER, 12, offsetof(struct GNSS_PeriodicAssistDataReq_r15, gnss_RTK_PeriodicObservationsReq_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-PeriodicObservationsReq-r15" + }, + { ATF_POINTER, 11, offsetof(struct GNSS_PeriodicAssistDataReq_r15, glo_RTK_PeriodicBiasInformationReq_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "glo-RTK-PeriodicBiasInformationReq-r15" + }, + { ATF_POINTER, 10, offsetof(struct GNSS_PeriodicAssistDataReq_r15, gnss_RTK_MAC_PeriodicCorrectionDifferencesReq_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-MAC-PeriodicCorrectionDifferencesReq-r15" + }, + { ATF_POINTER, 9, offsetof(struct GNSS_PeriodicAssistDataReq_r15, gnss_RTK_PeriodicResidualsReq_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-PeriodicResidualsReq-r15" + }, + { ATF_POINTER, 8, offsetof(struct GNSS_PeriodicAssistDataReq_r15, gnss_RTK_FKP_PeriodicGradientsReq_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-FKP-PeriodicGradientsReq-r15" + }, + { ATF_POINTER, 7, offsetof(struct GNSS_PeriodicAssistDataReq_r15, gnss_SSR_PeriodicOrbitCorrectionsReq_r15), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicOrbitCorrectionsReq-r15" + }, + { ATF_POINTER, 6, offsetof(struct GNSS_PeriodicAssistDataReq_r15, gnss_SSR_PeriodicClockCorrectionsReq_r15), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicClockCorrectionsReq-r15" + }, + { ATF_POINTER, 5, offsetof(struct GNSS_PeriodicAssistDataReq_r15, gnss_SSR_PeriodicCodeBiasReq_r15), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_PeriodicControlParam_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-PeriodicCodeBiasReq-r15" + }, + { ATF_POINTER, 4, offsetof(struct GNSS_PeriodicAssistDataReq_r15, ext1), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + 0, + &asn_DEF_ext1_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_PeriodicAssistDataReq_r15, ext2), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + 0, + &asn_DEF_ext2_16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_PeriodicAssistDataReq_r15, ext3), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + 0, + &asn_DEF_ext3_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_PeriodicAssistDataReq_r15, ext4), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + 0, + &asn_DEF_ext4_22, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext4" + }, +}; +static const int asn_MAP_GNSS_PeriodicAssistDataReq_r15_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static const ber_tlv_tag_t asn_DEF_GNSS_PeriodicAssistDataReq_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_PeriodicAssistDataReq_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-RTK-PeriodicObservationsReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* glo-RTK-PeriodicBiasInformationReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-RTK-MAC-PeriodicCorrectionDifferencesReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-RTK-PeriodicResidualsReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-RTK-FKP-PeriodicGradientsReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gnss-SSR-PeriodicOrbitCorrectionsReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnss-SSR-PeriodicClockCorrectionsReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* gnss-SSR-PeriodicCodeBiasReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* ext3 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* ext4 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_PeriodicAssistDataReq_r15_specs_1 = { + sizeof(struct GNSS_PeriodicAssistDataReq_r15), + offsetof(struct GNSS_PeriodicAssistDataReq_r15, _asn_ctx), + asn_MAP_GNSS_PeriodicAssistDataReq_r15_tag2el_1, + 12, /* Count of tags in the map */ + asn_MAP_GNSS_PeriodicAssistDataReq_r15_oms_1, /* Optional members */ + 8, 4, /* Root/Additions */ + 8, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_PeriodicAssistDataReq_r15 = { + "GNSS-PeriodicAssistDataReq-r15", + "GNSS-PeriodicAssistDataReq-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_PeriodicAssistDataReq_r15_tags_1, + sizeof(asn_DEF_GNSS_PeriodicAssistDataReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_PeriodicAssistDataReq_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_PeriodicAssistDataReq_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_PeriodicAssistDataReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_PeriodicAssistDataReq_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_PeriodicAssistDataReq_r15_1, + 12, /* Elements count */ + &asn_SPC_GNSS_PeriodicAssistDataReq_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-PeriodicAssistDataReq-r15.h b/asn.1/lpp_generated/GNSS-PeriodicAssistDataReq-r15.h new file mode 100644 index 00000000..fc694f3c --- /dev/null +++ b/asn.1/lpp_generated/GNSS-PeriodicAssistDataReq-r15.h @@ -0,0 +1,82 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_PeriodicAssistDataReq_r15_H_ +#define _GNSS_PeriodicAssistDataReq_r15_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GNSS_PeriodicControlParam_r15; + +/* GNSS-PeriodicAssistDataReq-r15 */ +typedef struct GNSS_PeriodicAssistDataReq_r15 { + struct GNSS_PeriodicControlParam_r15 *gnss_RTK_PeriodicObservationsReq_r15; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *glo_RTK_PeriodicBiasInformationReq_r15; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_RTK_MAC_PeriodicCorrectionDifferencesReq_r15; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_RTK_PeriodicResidualsReq_r15; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_RTK_FKP_PeriodicGradientsReq_r15; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicOrbitCorrectionsReq_r15; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicClockCorrectionsReq_r15; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicCodeBiasReq_r15; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_PeriodicAssistDataReq_r15__ext1 { + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicURA_Req_r16; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicPhaseBiasReq_r16; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicSTEC_CorrectionReq_r16; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicGriddedCorrectionReq_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct GNSS_PeriodicAssistDataReq_r15__ext2 { + struct GNSS_PeriodicControlParam_r15 *gnss_Integrity_PeriodicServiceAlertReq_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct GNSS_PeriodicAssistDataReq_r15__ext3 { + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicOrbitCorrectionsSet2Req_r17; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicClockCorrectionsSet2Req_r17; /* OPTIONAL */ + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicURA_Set2Req_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + struct GNSS_PeriodicAssistDataReq_r15__ext4 { + struct GNSS_PeriodicControlParam_r15 *gnss_SSR_PeriodicIOD_UpdateReq_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext4; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_PeriodicAssistDataReq_r15_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_PeriodicAssistDataReq_r15; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_PeriodicAssistDataReq_r15_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_PeriodicAssistDataReq_r15_1[12]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_PeriodicAssistDataReq_r15_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-PeriodicControlParam-r15.c b/asn.1/lpp_generated/GNSS-PeriodicControlParam-r15.c new file mode 100644 index 00000000..89a5836c --- /dev/null +++ b/asn.1/lpp_generated/GNSS-PeriodicControlParam-r15.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-PeriodicControlParam-r15.h" + +static int +memb_deliveryAmount_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 32L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_deliveryInterval_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 64L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_deliveryAmount_r15_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (1..32) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_deliveryInterval_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (1..64) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_PeriodicControlParam_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_PeriodicControlParam_r15, deliveryAmount_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_deliveryAmount_r15_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_deliveryAmount_r15_constraint_1 + }, + 0, 0, /* No default value */ + "deliveryAmount-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_PeriodicControlParam_r15, deliveryInterval_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_deliveryInterval_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_deliveryInterval_r15_constraint_1 + }, + 0, 0, /* No default value */ + "deliveryInterval-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_PeriodicControlParam_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_PeriodicControlParam_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* deliveryAmount-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* deliveryInterval-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_PeriodicControlParam_r15_specs_1 = { + sizeof(struct GNSS_PeriodicControlParam_r15), + offsetof(struct GNSS_PeriodicControlParam_r15, _asn_ctx), + asn_MAP_GNSS_PeriodicControlParam_r15_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_PeriodicControlParam_r15 = { + "GNSS-PeriodicControlParam-r15", + "GNSS-PeriodicControlParam-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_PeriodicControlParam_r15_tags_1, + sizeof(asn_DEF_GNSS_PeriodicControlParam_r15_tags_1) + /sizeof(asn_DEF_GNSS_PeriodicControlParam_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_PeriodicControlParam_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_PeriodicControlParam_r15_tags_1) + /sizeof(asn_DEF_GNSS_PeriodicControlParam_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_PeriodicControlParam_r15_1, + 2, /* Elements count */ + &asn_SPC_GNSS_PeriodicControlParam_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-PeriodicControlParam-r15.h b/asn.1/lpp_generated/GNSS-PeriodicControlParam-r15.h similarity index 80% rename from asn.1/generated/GNSS-PeriodicControlParam-r15.h rename to asn.1/lpp_generated/GNSS-PeriodicControlParam-r15.h index 61962efd..3565c472 100644 --- a/asn.1/generated/GNSS-PeriodicControlParam-r15.h +++ b/asn.1/lpp_generated/GNSS-PeriodicControlParam-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_PeriodicControlParam_r15_H_ diff --git a/asn.1/lpp_generated/GNSS-PositioningInstructions.c b/asn.1/lpp_generated/GNSS-PositioningInstructions.c new file mode 100644 index 00000000..3a9d5444 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-PositioningInstructions.c @@ -0,0 +1,406 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-PositioningInstructions.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ha_GNSS_Req_r15_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ha_GNSS_MetricsReq_r17_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_ha_GNSS_Req_r15_value2enum_9[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_ha_GNSS_Req_r15_enum2value_9[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ha_GNSS_Req_r15_specs_9 = { + asn_MAP_ha_GNSS_Req_r15_value2enum_9, /* "tag" => N; sorted by tag */ + asn_MAP_ha_GNSS_Req_r15_enum2value_9, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ha_GNSS_Req_r15_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ha_GNSS_Req_r15_9 = { + "ha-GNSS-Req-r15", + "ha-GNSS-Req-r15", + &asn_OP_NativeEnumerated, + asn_DEF_ha_GNSS_Req_r15_tags_9, + sizeof(asn_DEF_ha_GNSS_Req_r15_tags_9) + /sizeof(asn_DEF_ha_GNSS_Req_r15_tags_9[0]) - 1, /* 1 */ + asn_DEF_ha_GNSS_Req_r15_tags_9, /* Same as above */ + sizeof(asn_DEF_ha_GNSS_Req_r15_tags_9) + /sizeof(asn_DEF_ha_GNSS_Req_r15_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ha_GNSS_Req_r15_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ha_GNSS_Req_r15_specs_9 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_8[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_PositioningInstructions__ext1, ha_GNSS_Req_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ha_GNSS_Req_r15_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ha-GNSS-Req-r15" + }, +}; +static const int asn_MAP_ext1_oms_8[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ha-GNSS-Req-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { + sizeof(struct GNSS_PositioningInstructions__ext1), + offsetof(struct GNSS_PositioningInstructions__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_8, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_8, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_8 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_8, + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_8, /* Same as above */ + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_8, + 1, /* Elements count */ + &asn_SPC_ext1_specs_8 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_ha_GNSS_MetricsReq_r17_value2enum_12[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_ha_GNSS_MetricsReq_r17_enum2value_12[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ha_GNSS_MetricsReq_r17_specs_12 = { + asn_MAP_ha_GNSS_MetricsReq_r17_value2enum_12, /* "tag" => N; sorted by tag */ + asn_MAP_ha_GNSS_MetricsReq_r17_enum2value_12, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ha_GNSS_MetricsReq_r17_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ha_GNSS_MetricsReq_r17_12 = { + "ha-GNSS-MetricsReq-r17", + "ha-GNSS-MetricsReq-r17", + &asn_OP_NativeEnumerated, + asn_DEF_ha_GNSS_MetricsReq_r17_tags_12, + sizeof(asn_DEF_ha_GNSS_MetricsReq_r17_tags_12) + /sizeof(asn_DEF_ha_GNSS_MetricsReq_r17_tags_12[0]) - 1, /* 1 */ + asn_DEF_ha_GNSS_MetricsReq_r17_tags_12, /* Same as above */ + sizeof(asn_DEF_ha_GNSS_MetricsReq_r17_tags_12) + /sizeof(asn_DEF_ha_GNSS_MetricsReq_r17_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ha_GNSS_MetricsReq_r17_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ha_GNSS_MetricsReq_r17_specs_12 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_11[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_PositioningInstructions__ext2, ha_GNSS_MetricsReq_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ha_GNSS_MetricsReq_r17_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ha-GNSS-MetricsReq-r17" + }, +}; +static const int asn_MAP_ext2_oms_11[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ha-GNSS-MetricsReq-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_11 = { + sizeof(struct GNSS_PositioningInstructions__ext2), + offsetof(struct GNSS_PositioningInstructions__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_11, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_11, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_11 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_11, + sizeof(asn_DEF_ext2_tags_11) + /sizeof(asn_DEF_ext2_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_11, /* Same as above */ + sizeof(asn_DEF_ext2_tags_11) + /sizeof(asn_DEF_ext2_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_11, + 1, /* Elements count */ + &asn_SPC_ext2_specs_11 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_PositioningInstructions_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_PositioningInstructions, gnss_Methods), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ID_Bitmap, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-Methods" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_PositioningInstructions, fineTimeAssistanceMeasReq), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fineTimeAssistanceMeasReq" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_PositioningInstructions, adrMeasReq), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "adrMeasReq" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_PositioningInstructions, multiFreqMeasReq), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "multiFreqMeasReq" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_PositioningInstructions, assistanceAvailability), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "assistanceAvailability" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_PositioningInstructions, ext1), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext1_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_PositioningInstructions, ext2), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext2_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_GNSS_PositioningInstructions_oms_1[] = { 5, 6 }; +static const ber_tlv_tag_t asn_DEF_GNSS_PositioningInstructions_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_PositioningInstructions_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-Methods */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* fineTimeAssistanceMeasReq */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* adrMeasReq */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* multiFreqMeasReq */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* assistanceAvailability */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_PositioningInstructions_specs_1 = { + sizeof(struct GNSS_PositioningInstructions), + offsetof(struct GNSS_PositioningInstructions, _asn_ctx), + asn_MAP_GNSS_PositioningInstructions_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_GNSS_PositioningInstructions_oms_1, /* Optional members */ + 0, 2, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_PositioningInstructions = { + "GNSS-PositioningInstructions", + "GNSS-PositioningInstructions", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_PositioningInstructions_tags_1, + sizeof(asn_DEF_GNSS_PositioningInstructions_tags_1) + /sizeof(asn_DEF_GNSS_PositioningInstructions_tags_1[0]), /* 1 */ + asn_DEF_GNSS_PositioningInstructions_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_PositioningInstructions_tags_1) + /sizeof(asn_DEF_GNSS_PositioningInstructions_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_PositioningInstructions_1, + 7, /* Elements count */ + &asn_SPC_GNSS_PositioningInstructions_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-PositioningInstructions.h b/asn.1/lpp_generated/GNSS-PositioningInstructions.h new file mode 100644 index 00000000..b49710fe --- /dev/null +++ b/asn.1/lpp_generated/GNSS-PositioningInstructions.h @@ -0,0 +1,72 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_PositioningInstructions_H_ +#define _GNSS_PositioningInstructions_H_ + + +#include + +/* Including external dependencies */ +#include "GNSS-ID-Bitmap.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_PositioningInstructions__ext1__ha_GNSS_Req_r15 { + GNSS_PositioningInstructions__ext1__ha_GNSS_Req_r15_true = 0 +} e_GNSS_PositioningInstructions__ext1__ha_GNSS_Req_r15; +typedef enum GNSS_PositioningInstructions__ext2__ha_GNSS_MetricsReq_r17 { + GNSS_PositioningInstructions__ext2__ha_GNSS_MetricsReq_r17_true = 0 +} e_GNSS_PositioningInstructions__ext2__ha_GNSS_MetricsReq_r17; + +/* GNSS-PositioningInstructions */ +typedef struct GNSS_PositioningInstructions { + GNSS_ID_Bitmap_t gnss_Methods; + BOOLEAN_t fineTimeAssistanceMeasReq; + BOOLEAN_t adrMeasReq; + BOOLEAN_t multiFreqMeasReq; + BOOLEAN_t assistanceAvailability; + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_PositioningInstructions__ext1 { + long *ha_GNSS_Req_r15; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct GNSS_PositioningInstructions__ext2 { + long *ha_GNSS_MetricsReq_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_PositioningInstructions_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_ha_GNSS_Req_r15_9; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_ha_GNSS_MetricsReq_r17_12; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_PositioningInstructions; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_PositioningInstructions_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_PositioningInstructions_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_PositioningInstructions_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationData-r15.c b/asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationData-r15.c new file mode 100644 index 00000000..7ea56af1 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationData-r15.c @@ -0,0 +1,123 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-AuxiliaryStationData-r15.h" + +#include "GNSS-SubNetworkID-r15.h" +asn_TYPE_member_t asn_MBR_GNSS_RTK_AuxiliaryStationData_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_AuxiliaryStationData_r15, networkID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_NetworkID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "networkID-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_RTK_AuxiliaryStationData_r15, subNetworkID_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SubNetworkID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "subNetworkID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_AuxiliaryStationData_r15, master_referenceStationID_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceStationID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "master-referenceStationID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_AuxiliaryStationData_r15, auxiliaryStationList_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AuxiliaryStationList_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "auxiliaryStationList-r15" + }, +}; +static const int asn_MAP_GNSS_RTK_AuxiliaryStationData_r15_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_AuxiliaryStationData_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_AuxiliaryStationData_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* networkID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* subNetworkID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* master-referenceStationID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* auxiliaryStationList-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_AuxiliaryStationData_r15_specs_1 = { + sizeof(struct GNSS_RTK_AuxiliaryStationData_r15), + offsetof(struct GNSS_RTK_AuxiliaryStationData_r15, _asn_ctx), + asn_MAP_GNSS_RTK_AuxiliaryStationData_r15_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_GNSS_RTK_AuxiliaryStationData_r15_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_AuxiliaryStationData_r15 = { + "GNSS-RTK-AuxiliaryStationData-r15", + "GNSS-RTK-AuxiliaryStationData-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_AuxiliaryStationData_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationData_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationData_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_AuxiliaryStationData_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationData_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationData_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RTK_AuxiliaryStationData_r15_1, + 4, /* Elements count */ + &asn_SPC_GNSS_RTK_AuxiliaryStationData_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-AuxiliaryStationData-r15.h b/asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationData-r15.h similarity index 80% rename from asn.1/generated/GNSS-RTK-AuxiliaryStationData-r15.h rename to asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationData-r15.h index b336c9d5..ca69013c 100644 --- a/asn.1/generated/GNSS-RTK-AuxiliaryStationData-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationData-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_AuxiliaryStationData_r15_H_ @@ -27,7 +27,7 @@ struct GNSS_SubNetworkID_r15; /* GNSS-RTK-AuxiliaryStationData-r15 */ typedef struct GNSS_RTK_AuxiliaryStationData_r15 { GNSS_NetworkID_r15_t networkID_r15; - struct GNSS_SubNetworkID_r15 *subNetworkID_r15 /* OPTIONAL */; + struct GNSS_SubNetworkID_r15 *subNetworkID_r15; /* OPTIONAL */ GNSS_ReferenceStationID_r15_t master_referenceStationID_r15; AuxiliaryStationList_r15_t auxiliaryStationList_r15; /* @@ -48,8 +48,5 @@ extern asn_TYPE_member_t asn_MBR_GNSS_RTK_AuxiliaryStationData_r15_1[4]; } #endif -/* Referred external types */ -#include "GNSS-SubNetworkID-r15.h" - #endif /* _GNSS_RTK_AuxiliaryStationData_r15_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationDataReq-r15.c b/asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationDataReq-r15.c new file mode 100644 index 00000000..952efef8 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationDataReq-r15.c @@ -0,0 +1,69 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-AuxiliaryStationDataReq-r15.h" + +#include "GNSS-ReferenceStationID-r15.h" +asn_TYPE_member_t asn_MBR_GNSS_RTK_AuxiliaryStationDataReq_r15_1[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_RTK_AuxiliaryStationDataReq_r15, master_referenceStationID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceStationID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "master-referenceStationID-r15" + }, +}; +static const int asn_MAP_GNSS_RTK_AuxiliaryStationDataReq_r15_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_AuxiliaryStationDataReq_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_AuxiliaryStationDataReq_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* master-referenceStationID-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_AuxiliaryStationDataReq_r15_specs_1 = { + sizeof(struct GNSS_RTK_AuxiliaryStationDataReq_r15), + offsetof(struct GNSS_RTK_AuxiliaryStationDataReq_r15, _asn_ctx), + asn_MAP_GNSS_RTK_AuxiliaryStationDataReq_r15_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_GNSS_RTK_AuxiliaryStationDataReq_r15_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_AuxiliaryStationDataReq_r15 = { + "GNSS-RTK-AuxiliaryStationDataReq-r15", + "GNSS-RTK-AuxiliaryStationDataReq-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_AuxiliaryStationDataReq_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationDataReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationDataReq_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_AuxiliaryStationDataReq_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationDataReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationDataReq_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RTK_AuxiliaryStationDataReq_r15_1, + 1, /* Elements count */ + &asn_SPC_GNSS_RTK_AuxiliaryStationDataReq_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-AuxiliaryStationDataReq-r15.h b/asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationDataReq-r15.h similarity index 80% rename from asn.1/generated/GNSS-RTK-AuxiliaryStationDataReq-r15.h rename to asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationDataReq-r15.h index f72d5d92..61bd88e8 100644 --- a/asn.1/generated/GNSS-RTK-AuxiliaryStationDataReq-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationDataReq-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_AuxiliaryStationDataReq_r15_H_ @@ -23,7 +23,7 @@ struct GNSS_ReferenceStationID_r15; /* GNSS-RTK-AuxiliaryStationDataReq-r15 */ typedef struct GNSS_RTK_AuxiliaryStationDataReq_r15 { - struct GNSS_ReferenceStationID_r15 *master_referenceStationID_r15 /* OPTIONAL */; + struct GNSS_ReferenceStationID_r15 *master_referenceStationID_r15; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -42,8 +42,5 @@ extern asn_TYPE_member_t asn_MBR_GNSS_RTK_AuxiliaryStationDataReq_r15_1[1]; } #endif -/* Referred external types */ -#include "GNSS-ReferenceStationID-r15.h" - #endif /* _GNSS_RTK_AuxiliaryStationDataReq_r15_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationDataSupport-r15.c b/asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationDataSupport-r15.c new file mode 100644 index 00000000..f3e6a3f0 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationDataSupport-r15.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-AuxiliaryStationDataSupport-r15.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_AuxiliaryStationDataSupport_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_AuxiliaryStationDataSupport_r15_specs_1 = { + sizeof(struct GNSS_RTK_AuxiliaryStationDataSupport_r15), + offsetof(struct GNSS_RTK_AuxiliaryStationDataSupport_r15, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_AuxiliaryStationDataSupport_r15 = { + "GNSS-RTK-AuxiliaryStationDataSupport-r15", + "GNSS-RTK-AuxiliaryStationDataSupport-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_AuxiliaryStationDataSupport_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationDataSupport_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationDataSupport_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_AuxiliaryStationDataSupport_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationDataSupport_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_AuxiliaryStationDataSupport_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_RTK_AuxiliaryStationDataSupport_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-AuxiliaryStationDataSupport-r15.h b/asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationDataSupport-r15.h similarity index 79% rename from asn.1/generated/GNSS-RTK-AuxiliaryStationDataSupport-r15.h rename to asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationDataSupport-r15.h index 87873c25..72aa02cc 100644 --- a/asn.1/generated/GNSS-RTK-AuxiliaryStationDataSupport-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-AuxiliaryStationDataSupport-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_AuxiliaryStationDataSupport_r15_H_ diff --git a/asn.1/lpp_generated/GNSS-RTK-CommonObservationInfo-r15.c b/asn.1/lpp_generated/GNSS-RTK-CommonObservationInfo-r15.c new file mode 100644 index 00000000..31b284c5 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-CommonObservationInfo-r15.c @@ -0,0 +1,278 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-CommonObservationInfo-r15.h" + +static int +memb_clockSteeringIndicator_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_externalClockIndicator_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_smoothingIndicator_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 1UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_smoothingInterval_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 3UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_clockSteeringIndicator_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_externalClockIndicator_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_smoothingIndicator_r15_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 1, 1 } /* (SIZE(1..1)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_smoothingInterval_r15_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_RTK_CommonObservationInfo_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_CommonObservationInfo_r15, referenceStationID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceStationID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceStationID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_CommonObservationInfo_r15, clockSteeringIndicator_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_clockSteeringIndicator_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_clockSteeringIndicator_r15_constraint_1 + }, + 0, 0, /* No default value */ + "clockSteeringIndicator-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_CommonObservationInfo_r15, externalClockIndicator_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_externalClockIndicator_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_externalClockIndicator_r15_constraint_1 + }, + 0, 0, /* No default value */ + "externalClockIndicator-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_CommonObservationInfo_r15, smoothingIndicator_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_smoothingIndicator_r15_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_smoothingIndicator_r15_constraint_1 + }, + 0, 0, /* No default value */ + "smoothingIndicator-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_CommonObservationInfo_r15, smoothingInterval_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_smoothingInterval_r15_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_smoothingInterval_r15_constraint_1 + }, + 0, 0, /* No default value */ + "smoothingInterval-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_CommonObservationInfo_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_CommonObservationInfo_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceStationID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* clockSteeringIndicator-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* externalClockIndicator-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* smoothingIndicator-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* smoothingInterval-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_CommonObservationInfo_r15_specs_1 = { + sizeof(struct GNSS_RTK_CommonObservationInfo_r15), + offsetof(struct GNSS_RTK_CommonObservationInfo_r15, _asn_ctx), + asn_MAP_GNSS_RTK_CommonObservationInfo_r15_tag2el_1, + 5, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_CommonObservationInfo_r15 = { + "GNSS-RTK-CommonObservationInfo-r15", + "GNSS-RTK-CommonObservationInfo-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_CommonObservationInfo_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_CommonObservationInfo_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_CommonObservationInfo_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_CommonObservationInfo_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_CommonObservationInfo_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_CommonObservationInfo_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RTK_CommonObservationInfo_r15_1, + 5, /* Elements count */ + &asn_SPC_GNSS_RTK_CommonObservationInfo_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-CommonObservationInfo-r15.h b/asn.1/lpp_generated/GNSS-RTK-CommonObservationInfo-r15.h similarity index 83% rename from asn.1/generated/GNSS-RTK-CommonObservationInfo-r15.h rename to asn.1/lpp_generated/GNSS-RTK-CommonObservationInfo-r15.h index 3a633b48..1ac8a812 100644 --- a/asn.1/generated/GNSS-RTK-CommonObservationInfo-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-CommonObservationInfo-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_CommonObservationInfo_r15_H_ diff --git a/asn.1/lpp_generated/GNSS-RTK-FKP-Gradients-r15.c b/asn.1/lpp_generated/GNSS-RTK-FKP-Gradients-r15.c new file mode 100644 index 00000000..0f980210 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-FKP-Gradients-r15.c @@ -0,0 +1,141 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-FKP-Gradients-r15.h" + +#include "GNSS-FrequencyID-r15.h" +asn_TYPE_member_t asn_MBR_GNSS_RTK_FKP_Gradients_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_FKP_Gradients_r15, referenceStationID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceStationID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceStationID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_FKP_Gradients_r15, epochTime_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SystemTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epochTime-r15" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_RTK_FKP_Gradients_r15, l1_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_FrequencyID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "l1-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_RTK_FKP_Gradients_r15, l2_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_FrequencyID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "l2-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_FKP_Gradients_r15, fkp_gradients_list_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FKP_Gradients_List_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fkp-gradients-list-r15" + }, +}; +static const int asn_MAP_GNSS_RTK_FKP_Gradients_r15_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_FKP_Gradients_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_FKP_Gradients_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceStationID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* epochTime-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* l1-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* l2-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* fkp-gradients-list-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_FKP_Gradients_r15_specs_1 = { + sizeof(struct GNSS_RTK_FKP_Gradients_r15), + offsetof(struct GNSS_RTK_FKP_Gradients_r15, _asn_ctx), + asn_MAP_GNSS_RTK_FKP_Gradients_r15_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_GNSS_RTK_FKP_Gradients_r15_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_FKP_Gradients_r15 = { + "GNSS-RTK-FKP-Gradients-r15", + "GNSS-RTK-FKP-Gradients-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_FKP_Gradients_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_FKP_Gradients_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_FKP_Gradients_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_FKP_Gradients_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_FKP_Gradients_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_FKP_Gradients_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RTK_FKP_Gradients_r15_1, + 5, /* Elements count */ + &asn_SPC_GNSS_RTK_FKP_Gradients_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-FKP-Gradients-r15.h b/asn.1/lpp_generated/GNSS-RTK-FKP-Gradients-r15.h similarity index 77% rename from asn.1/generated/GNSS-RTK-FKP-Gradients-r15.h rename to asn.1/lpp_generated/GNSS-RTK-FKP-Gradients-r15.h index 0ecacb66..5ddad07b 100644 --- a/asn.1/generated/GNSS-RTK-FKP-Gradients-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-FKP-Gradients-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_FKP_Gradients_r15_H_ @@ -28,8 +28,8 @@ struct GNSS_FrequencyID_r15; typedef struct GNSS_RTK_FKP_Gradients_r15 { GNSS_ReferenceStationID_r15_t referenceStationID_r15; GNSS_SystemTime_t epochTime_r15; - struct GNSS_FrequencyID_r15 *l1_r15 /* OPTIONAL */; - struct GNSS_FrequencyID_r15 *l2_r15 /* OPTIONAL */; + struct GNSS_FrequencyID_r15 *l1_r15; /* OPTIONAL */ + struct GNSS_FrequencyID_r15 *l2_r15; /* OPTIONAL */ FKP_Gradients_List_r15_t fkp_gradients_list_r15; /* * This type is extensible, @@ -49,8 +49,5 @@ extern asn_TYPE_member_t asn_MBR_GNSS_RTK_FKP_Gradients_r15_1[5]; } #endif -/* Referred external types */ -#include "GNSS-FrequencyID-r15.h" - #endif /* _GNSS_RTK_FKP_Gradients_r15_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-RTK-FKP-GradientsReq-r15.c b/asn.1/lpp_generated/GNSS-RTK-FKP-GradientsReq-r15.c new file mode 100644 index 00000000..4b584d9f --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-FKP-GradientsReq-r15.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-FKP-GradientsReq-r15.h" + +#include "GNSS-ReferenceStationID-r15.h" +#include "GNSS-Link-CombinationsList-r15.h" +asn_TYPE_member_t asn_MBR_GNSS_RTK_FKP_GradientsReq_r15_1[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_RTK_FKP_GradientsReq_r15, stationID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceStationID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stationID-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_RTK_FKP_GradientsReq_r15, linkCombinations_PrefList_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_Link_CombinationsList_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "linkCombinations-PrefList-r15" + }, +}; +static const int asn_MAP_GNSS_RTK_FKP_GradientsReq_r15_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_FKP_GradientsReq_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_FKP_GradientsReq_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* stationID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* linkCombinations-PrefList-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_FKP_GradientsReq_r15_specs_1 = { + sizeof(struct GNSS_RTK_FKP_GradientsReq_r15), + offsetof(struct GNSS_RTK_FKP_GradientsReq_r15, _asn_ctx), + asn_MAP_GNSS_RTK_FKP_GradientsReq_r15_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_GNSS_RTK_FKP_GradientsReq_r15_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_FKP_GradientsReq_r15 = { + "GNSS-RTK-FKP-GradientsReq-r15", + "GNSS-RTK-FKP-GradientsReq-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_FKP_GradientsReq_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_FKP_GradientsReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_FKP_GradientsReq_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_FKP_GradientsReq_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_FKP_GradientsReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_FKP_GradientsReq_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RTK_FKP_GradientsReq_r15_1, + 2, /* Elements count */ + &asn_SPC_GNSS_RTK_FKP_GradientsReq_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-RTK-FKP-GradientsReq-r15.h b/asn.1/lpp_generated/GNSS-RTK-FKP-GradientsReq-r15.h new file mode 100644 index 00000000..d1983874 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-FKP-GradientsReq-r15.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_RTK_FKP_GradientsReq_r15_H_ +#define _GNSS_RTK_FKP_GradientsReq_r15_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GNSS_ReferenceStationID_r15; +struct GNSS_Link_CombinationsList_r15; + +/* GNSS-RTK-FKP-GradientsReq-r15 */ +typedef struct GNSS_RTK_FKP_GradientsReq_r15 { + struct GNSS_ReferenceStationID_r15 *stationID_r15; /* OPTIONAL */ + struct GNSS_Link_CombinationsList_r15 *linkCombinations_PrefList_r15; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_RTK_FKP_GradientsReq_r15_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_FKP_GradientsReq_r15; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_FKP_GradientsReq_r15_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_RTK_FKP_GradientsReq_r15_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_RTK_FKP_GradientsReq_r15_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-RTK-FKP-GradientsSupport-r15.c b/asn.1/lpp_generated/GNSS-RTK-FKP-GradientsSupport-r15.c new file mode 100644 index 00000000..e721178f --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-FKP-GradientsSupport-r15.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-FKP-GradientsSupport-r15.h" + +asn_TYPE_member_t asn_MBR_GNSS_RTK_FKP_GradientsSupport_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_FKP_GradientsSupport_r15, link_combinations_support_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_Link_CombinationsList_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "link-combinations-support-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_FKP_GradientsSupport_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_FKP_GradientsSupport_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* link-combinations-support-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_FKP_GradientsSupport_r15_specs_1 = { + sizeof(struct GNSS_RTK_FKP_GradientsSupport_r15), + offsetof(struct GNSS_RTK_FKP_GradientsSupport_r15, _asn_ctx), + asn_MAP_GNSS_RTK_FKP_GradientsSupport_r15_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_FKP_GradientsSupport_r15 = { + "GNSS-RTK-FKP-GradientsSupport-r15", + "GNSS-RTK-FKP-GradientsSupport-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_FKP_GradientsSupport_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_FKP_GradientsSupport_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_FKP_GradientsSupport_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_FKP_GradientsSupport_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_FKP_GradientsSupport_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_FKP_GradientsSupport_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RTK_FKP_GradientsSupport_r15_1, + 1, /* Elements count */ + &asn_SPC_GNSS_RTK_FKP_GradientsSupport_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-FKP-GradientsSupport-r15.h b/asn.1/lpp_generated/GNSS-RTK-FKP-GradientsSupport-r15.h similarity index 81% rename from asn.1/generated/GNSS-RTK-FKP-GradientsSupport-r15.h rename to asn.1/lpp_generated/GNSS-RTK-FKP-GradientsSupport-r15.h index 5db3f50f..cc860c97 100644 --- a/asn.1/generated/GNSS-RTK-FKP-GradientsSupport-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-FKP-GradientsSupport-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_FKP_GradientsSupport_r15_H_ diff --git a/asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferences-r15.c b/asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferences-r15.c new file mode 100644 index 00000000..fc6a51f2 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferences-r15.c @@ -0,0 +1,160 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-MAC-CorrectionDifferences-r15.h" + +#include "GNSS-SubNetworkID-r15.h" +#include "GNSS-FrequencyID-r15.h" +asn_TYPE_member_t asn_MBR_GNSS_RTK_MAC_CorrectionDifferences_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_MAC_CorrectionDifferences_r15, networkID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_NetworkID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "networkID-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_RTK_MAC_CorrectionDifferences_r15, subNetworkID_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SubNetworkID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "subNetworkID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_MAC_CorrectionDifferences_r15, master_ReferenceStationID_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceStationID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "master-ReferenceStationID-r15" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_RTK_MAC_CorrectionDifferences_r15, l1_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_FrequencyID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "l1-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_RTK_MAC_CorrectionDifferences_r15, l2_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_FrequencyID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "l2-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_MAC_CorrectionDifferences_r15, rtkCorrectionDifferencesList_r15), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RTK_CorrectionDifferencesList_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rtkCorrectionDifferencesList-r15" + }, +}; +static const int asn_MAP_GNSS_RTK_MAC_CorrectionDifferences_r15_oms_1[] = { 1, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_MAC_CorrectionDifferences_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_MAC_CorrectionDifferences_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* networkID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* subNetworkID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* master-ReferenceStationID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* l1-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* l2-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* rtkCorrectionDifferencesList-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_MAC_CorrectionDifferences_r15_specs_1 = { + sizeof(struct GNSS_RTK_MAC_CorrectionDifferences_r15), + offsetof(struct GNSS_RTK_MAC_CorrectionDifferences_r15, _asn_ctx), + asn_MAP_GNSS_RTK_MAC_CorrectionDifferences_r15_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_GNSS_RTK_MAC_CorrectionDifferences_r15_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_MAC_CorrectionDifferences_r15 = { + "GNSS-RTK-MAC-CorrectionDifferences-r15", + "GNSS-RTK-MAC-CorrectionDifferences-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_MAC_CorrectionDifferences_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferences_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferences_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_MAC_CorrectionDifferences_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferences_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferences_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RTK_MAC_CorrectionDifferences_r15_1, + 6, /* Elements count */ + &asn_SPC_GNSS_RTK_MAC_CorrectionDifferences_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-MAC-CorrectionDifferences-r15.h b/asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferences-r15.h similarity index 76% rename from asn.1/generated/GNSS-RTK-MAC-CorrectionDifferences-r15.h rename to asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferences-r15.h index b672c779..c73d9d78 100644 --- a/asn.1/generated/GNSS-RTK-MAC-CorrectionDifferences-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferences-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_MAC_CorrectionDifferences_r15_H_ @@ -28,10 +28,10 @@ struct GNSS_FrequencyID_r15; /* GNSS-RTK-MAC-CorrectionDifferences-r15 */ typedef struct GNSS_RTK_MAC_CorrectionDifferences_r15 { GNSS_NetworkID_r15_t networkID_r15; - struct GNSS_SubNetworkID_r15 *subNetworkID_r15 /* OPTIONAL */; + struct GNSS_SubNetworkID_r15 *subNetworkID_r15; /* OPTIONAL */ GNSS_ReferenceStationID_r15_t master_ReferenceStationID_r15; - struct GNSS_FrequencyID_r15 *l1_r15 /* OPTIONAL */; - struct GNSS_FrequencyID_r15 *l2_r15 /* OPTIONAL */; + struct GNSS_FrequencyID_r15 *l1_r15; /* OPTIONAL */ + struct GNSS_FrequencyID_r15 *l2_r15; /* OPTIONAL */ RTK_CorrectionDifferencesList_r15_t rtkCorrectionDifferencesList_r15; /* * This type is extensible, @@ -51,9 +51,5 @@ extern asn_TYPE_member_t asn_MBR_GNSS_RTK_MAC_CorrectionDifferences_r15_1[6]; } #endif -/* Referred external types */ -#include "GNSS-SubNetworkID-r15.h" -#include "GNSS-FrequencyID-r15.h" - #endif /* _GNSS_RTK_MAC_CorrectionDifferences_r15_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferencesReq-r15.c b/asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferencesReq-r15.c new file mode 100644 index 00000000..a867a7dc --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferencesReq-r15.c @@ -0,0 +1,107 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-MAC-CorrectionDifferencesReq-r15.h" + +#include "GNSS-ReferenceStationID-r15.h" +#include "AUX-ReferenceStationList-r15.h" +#include "GNSS-Link-CombinationsList-r15.h" +asn_TYPE_member_t asn_MBR_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_1[] = { + { ATF_POINTER, 3, offsetof(struct GNSS_RTK_MAC_CorrectionDifferencesReq_r15, master_ReferenceStationID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceStationID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "master-ReferenceStationID-r15" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_RTK_MAC_CorrectionDifferencesReq_r15, aux_ReferenceStationList_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AUX_ReferenceStationList_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "aux-ReferenceStationList-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_RTK_MAC_CorrectionDifferencesReq_r15, linkCombinations_PrefList_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_Link_CombinationsList_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "linkCombinations-PrefList-r15" + }, +}; +static const int asn_MAP_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* master-ReferenceStationID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* aux-ReferenceStationList-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* linkCombinations-PrefList-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_specs_1 = { + sizeof(struct GNSS_RTK_MAC_CorrectionDifferencesReq_r15), + offsetof(struct GNSS_RTK_MAC_CorrectionDifferencesReq_r15, _asn_ctx), + asn_MAP_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesReq_r15 = { + "GNSS-RTK-MAC-CorrectionDifferencesReq-r15", + "GNSS-RTK-MAC-CorrectionDifferencesReq-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_1, + 3, /* Elements count */ + &asn_SPC_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-MAC-CorrectionDifferencesReq-r15.h b/asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferencesReq-r15.h similarity index 78% rename from asn.1/generated/GNSS-RTK-MAC-CorrectionDifferencesReq-r15.h rename to asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferencesReq-r15.h index ccd690f5..2199a6aa 100644 --- a/asn.1/generated/GNSS-RTK-MAC-CorrectionDifferencesReq-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferencesReq-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_MAC_CorrectionDifferencesReq_r15_H_ @@ -25,9 +25,9 @@ struct GNSS_Link_CombinationsList_r15; /* GNSS-RTK-MAC-CorrectionDifferencesReq-r15 */ typedef struct GNSS_RTK_MAC_CorrectionDifferencesReq_r15 { - struct GNSS_ReferenceStationID_r15 *master_ReferenceStationID_r15 /* OPTIONAL */; - struct AUX_ReferenceStationList_r15 *aux_ReferenceStationList_r15 /* OPTIONAL */; - struct GNSS_Link_CombinationsList_r15 *linkCombinations_PrefList_r15 /* OPTIONAL */; + struct GNSS_ReferenceStationID_r15 *master_ReferenceStationID_r15; /* OPTIONAL */ + struct AUX_ReferenceStationList_r15 *aux_ReferenceStationList_r15; /* OPTIONAL */ + struct GNSS_Link_CombinationsList_r15 *linkCombinations_PrefList_r15; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -46,10 +46,5 @@ extern asn_TYPE_member_t asn_MBR_GNSS_RTK_MAC_CorrectionDifferencesReq_r15_1[3]; } #endif -/* Referred external types */ -#include "GNSS-ReferenceStationID-r15.h" -#include "AUX-ReferenceStationList-r15.h" -#include "GNSS-Link-CombinationsList-r15.h" - #endif /* _GNSS_RTK_MAC_CorrectionDifferencesReq_r15_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.c b/asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.c new file mode 100644 index 00000000..b46aa17a --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.h" + +asn_TYPE_member_t asn_MBR_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_MAC_CorrectionDifferencesSupport_r15, link_combinations_support_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_Link_CombinationsList_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "link-combinations-support-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* link-combinations-support-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_specs_1 = { + sizeof(struct GNSS_RTK_MAC_CorrectionDifferencesSupport_r15), + offsetof(struct GNSS_RTK_MAC_CorrectionDifferencesSupport_r15, _asn_ctx), + asn_MAP_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15 = { + "GNSS-RTK-MAC-CorrectionDifferencesSupport-r15", + "GNSS-RTK-MAC-CorrectionDifferencesSupport-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_1, + 1, /* Elements count */ + &asn_SPC_GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.h b/asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.h similarity index 82% rename from asn.1/generated/GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.h rename to asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.h index 3d458bd9..e211c8c3 100644 --- a/asn.1/generated/GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-MAC-CorrectionDifferencesSupport-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_MAC_CorrectionDifferencesSupport_r15_H_ diff --git a/asn.1/lpp_generated/GNSS-RTK-Observations-r15.c b/asn.1/lpp_generated/GNSS-RTK-Observations-r15.c new file mode 100644 index 00000000..0dcc0693 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-Observations-r15.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-Observations-r15.h" + +asn_TYPE_member_t asn_MBR_GNSS_RTK_Observations_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_Observations_r15, epochTime_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SystemTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epochTime-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_Observations_r15, gnss_ObservationList_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ObservationList_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-ObservationList-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_Observations_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_Observations_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-ObservationList-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_Observations_r15_specs_1 = { + sizeof(struct GNSS_RTK_Observations_r15), + offsetof(struct GNSS_RTK_Observations_r15, _asn_ctx), + asn_MAP_GNSS_RTK_Observations_r15_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_Observations_r15 = { + "GNSS-RTK-Observations-r15", + "GNSS-RTK-Observations-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_Observations_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_Observations_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_Observations_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_Observations_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_Observations_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_Observations_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RTK_Observations_r15_1, + 2, /* Elements count */ + &asn_SPC_GNSS_RTK_Observations_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-Observations-r15.h b/asn.1/lpp_generated/GNSS-RTK-Observations-r15.h similarity index 80% rename from asn.1/generated/GNSS-RTK-Observations-r15.h rename to asn.1/lpp_generated/GNSS-RTK-Observations-r15.h index f4a24203..9c744d5c 100644 --- a/asn.1/generated/GNSS-RTK-Observations-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-Observations-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_Observations_r15_H_ diff --git a/asn.1/lpp_generated/GNSS-RTK-ObservationsReq-r15.c b/asn.1/lpp_generated/GNSS-RTK-ObservationsReq-r15.c new file mode 100644 index 00000000..590f1f8b --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-ObservationsReq-r15.c @@ -0,0 +1,141 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-ObservationsReq-r15.h" + +#include "GNSS-ReferenceStationID-r15.h" +asn_TYPE_member_t asn_MBR_GNSS_RTK_ObservationsReq_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ObservationsReq_r15, gnss_RTK_SignalsReq_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalIDs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-SignalsReq-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ObservationsReq_r15, gnss_RTK_Integer_ms_Req_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-Integer-ms-Req-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ObservationsReq_r15, gnss_RTK_PhaseRangeRateReq_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-PhaseRangeRateReq-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ObservationsReq_r15, gnss_RTK_CNR_Req_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-RTK-CNR-Req-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_RTK_ObservationsReq_r15, stationID_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceStationID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stationID-r15" + }, +}; +static const int asn_MAP_GNSS_RTK_ObservationsReq_r15_oms_1[] = { 4 }; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_ObservationsReq_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_ObservationsReq_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-RTK-SignalsReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-RTK-Integer-ms-Req-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-RTK-PhaseRangeRateReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-RTK-CNR-Req-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* stationID-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_ObservationsReq_r15_specs_1 = { + sizeof(struct GNSS_RTK_ObservationsReq_r15), + offsetof(struct GNSS_RTK_ObservationsReq_r15, _asn_ctx), + asn_MAP_GNSS_RTK_ObservationsReq_r15_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_GNSS_RTK_ObservationsReq_r15_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_ObservationsReq_r15 = { + "GNSS-RTK-ObservationsReq-r15", + "GNSS-RTK-ObservationsReq-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_ObservationsReq_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_ObservationsReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_ObservationsReq_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_ObservationsReq_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_ObservationsReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_ObservationsReq_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RTK_ObservationsReq_r15_1, + 5, /* Elements count */ + &asn_SPC_GNSS_RTK_ObservationsReq_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-ObservationsReq-r15.h b/asn.1/lpp_generated/GNSS-RTK-ObservationsReq-r15.h similarity index 79% rename from asn.1/generated/GNSS-RTK-ObservationsReq-r15.h rename to asn.1/lpp_generated/GNSS-RTK-ObservationsReq-r15.h index 424959da..3694caf8 100644 --- a/asn.1/generated/GNSS-RTK-ObservationsReq-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-ObservationsReq-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_ObservationsReq_r15_H_ @@ -29,7 +29,7 @@ typedef struct GNSS_RTK_ObservationsReq_r15 { BOOLEAN_t gnss_RTK_Integer_ms_Req_r15; BOOLEAN_t gnss_RTK_PhaseRangeRateReq_r15; BOOLEAN_t gnss_RTK_CNR_Req_r15; - struct GNSS_ReferenceStationID_r15 *stationID_r15 /* OPTIONAL */; + struct GNSS_ReferenceStationID_r15 *stationID_r15; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -48,8 +48,5 @@ extern asn_TYPE_member_t asn_MBR_GNSS_RTK_ObservationsReq_r15_1[5]; } #endif -/* Referred external types */ -#include "GNSS-ReferenceStationID-r15.h" - #endif /* _GNSS_RTK_ObservationsReq_r15_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-RTK-ObservationsSupport-r15.c b/asn.1/lpp_generated/GNSS-RTK-ObservationsSupport-r15.c new file mode 100644 index 00000000..5216aa11 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-ObservationsSupport-r15.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-ObservationsSupport-r15.h" + +asn_TYPE_member_t asn_MBR_GNSS_RTK_ObservationsSupport_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ObservationsSupport_r15, gnssSignalIDs_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalIDs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnssSignalIDs-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_ObservationsSupport_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_ObservationsSupport_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnssSignalIDs-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_ObservationsSupport_r15_specs_1 = { + sizeof(struct GNSS_RTK_ObservationsSupport_r15), + offsetof(struct GNSS_RTK_ObservationsSupport_r15, _asn_ctx), + asn_MAP_GNSS_RTK_ObservationsSupport_r15_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_ObservationsSupport_r15 = { + "GNSS-RTK-ObservationsSupport-r15", + "GNSS-RTK-ObservationsSupport-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_ObservationsSupport_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_ObservationsSupport_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_ObservationsSupport_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_ObservationsSupport_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_ObservationsSupport_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_ObservationsSupport_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RTK_ObservationsSupport_r15_1, + 1, /* Elements count */ + &asn_SPC_GNSS_RTK_ObservationsSupport_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-ObservationsSupport-r15.h b/asn.1/lpp_generated/GNSS-RTK-ObservationsSupport-r15.h similarity index 80% rename from asn.1/generated/GNSS-RTK-ObservationsSupport-r15.h rename to asn.1/lpp_generated/GNSS-RTK-ObservationsSupport-r15.h index e974c2b4..ad259d2e 100644 --- a/asn.1/generated/GNSS-RTK-ObservationsSupport-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-ObservationsSupport-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_ObservationsSupport_r15_H_ diff --git a/asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfo-r15.c b/asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfo-r15.c new file mode 100644 index 00000000..c07062bd --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfo-r15.c @@ -0,0 +1,497 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-ReferenceStationInfo-r15.h" + +#include "AntennaDescription-r15.h" +#include "AntennaReferencePointUnc-r15.h" +#include "PhysicalReferenceStationInfo-r15.h" +#include "EqualIntegerAmbiguityLevel-r16.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_antenna_reference_point_ECEF_X_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(asn_INTEGER2long(st, &value)) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value too large (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if((value >= -137438953472L && value <= 137438953471L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_antenna_reference_point_ECEF_Y_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(asn_INTEGER2long(st, &value)) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value too large (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if((value >= -137438953472L && value <= 137438953471L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_antenna_reference_point_ECEF_Z_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(asn_INTEGER2long(st, &value)) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value too large (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if((value >= -137438953472L && value <= 137438953471L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_antennaHeight_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_referenceStationIndicator_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_antenna_reference_point_ECEF_X_r15_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 38, -1, -137438953472, 137438953471 } /* (-137438953472..137438953471) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_antenna_reference_point_ECEF_Y_r15_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 38, -1, -137438953472, 137438953471 } /* (-137438953472..137438953471) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_antenna_reference_point_ECEF_Z_r15_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 38, -1, -137438953472, 137438953471 } /* (-137438953472..137438953471) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_antennaHeight_r15_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_referenceStationIndicator_r15_value2enum_3[] = { + { 0, 8, "physical" }, + { 1, 12, "non-physical" } +}; +static const unsigned int asn_MAP_referenceStationIndicator_r15_enum2value_3[] = { + 1, /* non-physical(1) */ + 0 /* physical(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_referenceStationIndicator_r15_specs_3 = { + asn_MAP_referenceStationIndicator_r15_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_referenceStationIndicator_r15_enum2value_3, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_referenceStationIndicator_r15_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_referenceStationIndicator_r15_3 = { + "referenceStationIndicator-r15", + "referenceStationIndicator-r15", + &asn_OP_NativeEnumerated, + asn_DEF_referenceStationIndicator_r15_tags_3, + sizeof(asn_DEF_referenceStationIndicator_r15_tags_3) + /sizeof(asn_DEF_referenceStationIndicator_r15_tags_3[0]) - 1, /* 1 */ + asn_DEF_referenceStationIndicator_r15_tags_3, /* Same as above */ + sizeof(asn_DEF_referenceStationIndicator_r15_tags_3) + /sizeof(asn_DEF_referenceStationIndicator_r15_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_referenceStationIndicator_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_referenceStationIndicator_r15_specs_3 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_14[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15__ext1, equalIntegerAmbiguityLevel_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_EqualIntegerAmbiguityLevel_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "equalIntegerAmbiguityLevel-r16" + }, +}; +static const int asn_MAP_ext1_oms_14[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_14[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_14[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* equalIntegerAmbiguityLevel-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_14 = { + sizeof(struct GNSS_RTK_ReferenceStationInfo_r15__ext1), + offsetof(struct GNSS_RTK_ReferenceStationInfo_r15__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_14, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_14, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_14 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_14, + sizeof(asn_DEF_ext1_tags_14) + /sizeof(asn_DEF_ext1_tags_14[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_14, /* Same as above */ + sizeof(asn_DEF_ext1_tags_14) + /sizeof(asn_DEF_ext1_tags_14[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_14, + 1, /* Elements count */ + &asn_SPC_ext1_specs_14 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_RTK_ReferenceStationInfo_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, referenceStationID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceStationID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceStationID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, referenceStationIndicator_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_referenceStationIndicator_r15_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceStationIndicator-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, antenna_reference_point_ECEF_X_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_INTEGER, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_antenna_reference_point_ECEF_X_r15_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_antenna_reference_point_ECEF_X_r15_constraint_1 + }, + 0, 0, /* No default value */ + "antenna-reference-point-ECEF-X-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, antenna_reference_point_ECEF_Y_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_INTEGER, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_antenna_reference_point_ECEF_Y_r15_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_antenna_reference_point_ECEF_Y_r15_constraint_1 + }, + 0, 0, /* No default value */ + "antenna-reference-point-ECEF-Y-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, antenna_reference_point_ECEF_Z_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_INTEGER, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_antenna_reference_point_ECEF_Z_r15_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_antenna_reference_point_ECEF_Z_r15_constraint_1 + }, + 0, 0, /* No default value */ + "antenna-reference-point-ECEF-Z-r15" + }, + { ATF_POINTER, 5, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, antennaHeight_r15), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_antennaHeight_r15_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_antennaHeight_r15_constraint_1 + }, + 0, 0, /* No default value */ + "antennaHeight-r15" + }, + { ATF_POINTER, 4, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, antennaDescription_r15), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AntennaDescription_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "antennaDescription-r15" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, antenna_reference_point_unc_r15), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AntennaReferencePointUnc_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "antenna-reference-point-unc-r15" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, physical_reference_station_info_r15), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PhysicalReferenceStationInfo_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "physical-reference-station-info-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, ext1), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + 0, + &asn_DEF_ext1_14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_RTK_ReferenceStationInfo_r15_oms_1[] = { 5, 6, 7, 8, 9 }; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_ReferenceStationInfo_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_ReferenceStationInfo_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceStationID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* referenceStationIndicator-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* antenna-reference-point-ECEF-X-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* antenna-reference-point-ECEF-Y-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* antenna-reference-point-ECEF-Z-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* antennaHeight-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* antennaDescription-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* antenna-reference-point-unc-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* physical-reference-station-info-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_ReferenceStationInfo_r15_specs_1 = { + sizeof(struct GNSS_RTK_ReferenceStationInfo_r15), + offsetof(struct GNSS_RTK_ReferenceStationInfo_r15, _asn_ctx), + asn_MAP_GNSS_RTK_ReferenceStationInfo_r15_tag2el_1, + 10, /* Count of tags in the map */ + asn_MAP_GNSS_RTK_ReferenceStationInfo_r15_oms_1, /* Optional members */ + 4, 1, /* Root/Additions */ + 9, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_ReferenceStationInfo_r15 = { + "GNSS-RTK-ReferenceStationInfo-r15", + "GNSS-RTK-ReferenceStationInfo-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_ReferenceStationInfo_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfo_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfo_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_ReferenceStationInfo_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfo_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfo_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RTK_ReferenceStationInfo_r15_1, + 10, /* Elements count */ + &asn_SPC_GNSS_RTK_ReferenceStationInfo_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-ReferenceStationInfo-r15.h b/asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfo-r15.h similarity index 80% rename from asn.1/generated/GNSS-RTK-ReferenceStationInfo-r15.h rename to asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfo-r15.h index 12e5fc40..a39402c9 100644 --- a/asn.1/generated/GNSS-RTK-ReferenceStationInfo-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfo-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_ReferenceStationInfo_r15_H_ @@ -41,16 +41,16 @@ typedef struct GNSS_RTK_ReferenceStationInfo_r15 { INTEGER_t antenna_reference_point_ECEF_X_r15; INTEGER_t antenna_reference_point_ECEF_Y_r15; INTEGER_t antenna_reference_point_ECEF_Z_r15; - long *antennaHeight_r15 /* OPTIONAL */; - struct AntennaDescription_r15 *antennaDescription_r15 /* OPTIONAL */; - struct AntennaReferencePointUnc_r15 *antenna_reference_point_unc_r15 /* OPTIONAL */; - struct PhysicalReferenceStationInfo_r15 *physical_reference_station_info_r15 /* OPTIONAL */; + long *antennaHeight_r15; /* OPTIONAL */ + struct AntennaDescription_r15 *antennaDescription_r15; /* OPTIONAL */ + struct AntennaReferencePointUnc_r15 *antenna_reference_point_unc_r15; /* OPTIONAL */ + struct PhysicalReferenceStationInfo_r15 *physical_reference_station_info_r15; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. */ struct GNSS_RTK_ReferenceStationInfo_r15__ext1 { - struct EqualIntegerAmbiguityLevel_r16 *equalIntegerAmbiguityLevel_r16 /* OPTIONAL */; + struct EqualIntegerAmbiguityLevel_r16 *equalIntegerAmbiguityLevel_r16; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -70,11 +70,5 @@ extern asn_TYPE_member_t asn_MBR_GNSS_RTK_ReferenceStationInfo_r15_1[10]; } #endif -/* Referred external types */ -#include "AntennaDescription-r15.h" -#include "AntennaReferencePointUnc-r15.h" -#include "PhysicalReferenceStationInfo-r15.h" -#include "EqualIntegerAmbiguityLevel-r16.h" - #endif /* _GNSS_RTK_ReferenceStationInfo_r15_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfoReq-r15.c b/asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfoReq-r15.c new file mode 100644 index 00000000..913b9870 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfoReq-r15.c @@ -0,0 +1,123 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-ReferenceStationInfoReq-r15.h" + +#include "GNSS-ReferenceStationID-r15.h" +asn_TYPE_member_t asn_MBR_GNSS_RTK_ReferenceStationInfoReq_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ReferenceStationInfoReq_r15, antennaDescriptionReq_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "antennaDescriptionReq-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ReferenceStationInfoReq_r15, antennaHeightReq_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "antennaHeightReq-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ReferenceStationInfoReq_r15, physicalReferenceStationReq_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "physicalReferenceStationReq-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_RTK_ReferenceStationInfoReq_r15, stationID_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceStationID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stationID-r15" + }, +}; +static const int asn_MAP_GNSS_RTK_ReferenceStationInfoReq_r15_oms_1[] = { 3 }; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_ReferenceStationInfoReq_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_ReferenceStationInfoReq_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* antennaDescriptionReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* antennaHeightReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* physicalReferenceStationReq-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* stationID-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_ReferenceStationInfoReq_r15_specs_1 = { + sizeof(struct GNSS_RTK_ReferenceStationInfoReq_r15), + offsetof(struct GNSS_RTK_ReferenceStationInfoReq_r15, _asn_ctx), + asn_MAP_GNSS_RTK_ReferenceStationInfoReq_r15_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_GNSS_RTK_ReferenceStationInfoReq_r15_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_ReferenceStationInfoReq_r15 = { + "GNSS-RTK-ReferenceStationInfoReq-r15", + "GNSS-RTK-ReferenceStationInfoReq-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_ReferenceStationInfoReq_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfoReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfoReq_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_ReferenceStationInfoReq_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfoReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfoReq_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RTK_ReferenceStationInfoReq_r15_1, + 4, /* Elements count */ + &asn_SPC_GNSS_RTK_ReferenceStationInfoReq_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-ReferenceStationInfoReq-r15.h b/asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfoReq-r15.h similarity index 79% rename from asn.1/generated/GNSS-RTK-ReferenceStationInfoReq-r15.h rename to asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfoReq-r15.h index b94263d1..11e3ad04 100644 --- a/asn.1/generated/GNSS-RTK-ReferenceStationInfoReq-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfoReq-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_ReferenceStationInfoReq_r15_H_ @@ -27,7 +27,7 @@ typedef struct GNSS_RTK_ReferenceStationInfoReq_r15 { BOOLEAN_t antennaDescriptionReq_r15; BOOLEAN_t antennaHeightReq_r15; BOOLEAN_t physicalReferenceStationReq_r15; - struct GNSS_ReferenceStationID_r15 *stationID_r15 /* OPTIONAL */; + struct GNSS_ReferenceStationID_r15 *stationID_r15; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -46,8 +46,5 @@ extern asn_TYPE_member_t asn_MBR_GNSS_RTK_ReferenceStationInfoReq_r15_1[4]; } #endif -/* Referred external types */ -#include "GNSS-ReferenceStationID-r15.h" - #endif /* _GNSS_RTK_ReferenceStationInfoReq_r15_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfoSupport-r15.c b/asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfoSupport-r15.c new file mode 100644 index 00000000..dc6812f7 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfoSupport-r15.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-ReferenceStationInfoSupport-r15.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_ReferenceStationInfoSupport_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_ReferenceStationInfoSupport_r15_specs_1 = { + sizeof(struct GNSS_RTK_ReferenceStationInfoSupport_r15), + offsetof(struct GNSS_RTK_ReferenceStationInfoSupport_r15, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_ReferenceStationInfoSupport_r15 = { + "GNSS-RTK-ReferenceStationInfoSupport-r15", + "GNSS-RTK-ReferenceStationInfoSupport-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_ReferenceStationInfoSupport_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfoSupport_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfoSupport_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_ReferenceStationInfoSupport_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfoSupport_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_ReferenceStationInfoSupport_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_RTK_ReferenceStationInfoSupport_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-ReferenceStationInfoSupport-r15.h b/asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfoSupport-r15.h similarity index 79% rename from asn.1/generated/GNSS-RTK-ReferenceStationInfoSupport-r15.h rename to asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfoSupport-r15.h index 1e5b6383..e7f5f2b1 100644 --- a/asn.1/generated/GNSS-RTK-ReferenceStationInfoSupport-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-ReferenceStationInfoSupport-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_ReferenceStationInfoSupport_r15_H_ diff --git a/asn.1/lpp_generated/GNSS-RTK-Residuals-r15.c b/asn.1/lpp_generated/GNSS-RTK-Residuals-r15.c new file mode 100644 index 00000000..49547f94 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-Residuals-r15.c @@ -0,0 +1,191 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-Residuals-r15.h" + +#include "GNSS-FrequencyID-r15.h" +static int +memb_n_Refs_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n_Refs_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_RTK_Residuals_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_Residuals_r15, epochTime_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SystemTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epochTime-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_Residuals_r15, referenceStationID_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceStationID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceStationID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_Residuals_r15, n_Refs_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n_Refs_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n_Refs_r15_constraint_1 + }, + 0, 0, /* No default value */ + "n-Refs-r15" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_RTK_Residuals_r15, l1_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_FrequencyID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "l1-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_RTK_Residuals_r15, l2_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_FrequencyID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "l2-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_Residuals_r15, rtk_residuals_list_r15), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RTK_Residuals_List_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rtk-residuals-list-r15" + }, +}; +static const int asn_MAP_GNSS_RTK_Residuals_r15_oms_1[] = { 3, 4 }; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_Residuals_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_Residuals_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* referenceStationID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* n-Refs-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* l1-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* l2-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* rtk-residuals-list-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_Residuals_r15_specs_1 = { + sizeof(struct GNSS_RTK_Residuals_r15), + offsetof(struct GNSS_RTK_Residuals_r15, _asn_ctx), + asn_MAP_GNSS_RTK_Residuals_r15_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_GNSS_RTK_Residuals_r15_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_Residuals_r15 = { + "GNSS-RTK-Residuals-r15", + "GNSS-RTK-Residuals-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_Residuals_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_Residuals_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_Residuals_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_Residuals_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_Residuals_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_Residuals_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RTK_Residuals_r15_1, + 6, /* Elements count */ + &asn_SPC_GNSS_RTK_Residuals_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-Residuals-r15.h b/asn.1/lpp_generated/GNSS-RTK-Residuals-r15.h similarity index 77% rename from asn.1/generated/GNSS-RTK-Residuals-r15.h rename to asn.1/lpp_generated/GNSS-RTK-Residuals-r15.h index ed0fb606..840a1499 100644 --- a/asn.1/generated/GNSS-RTK-Residuals-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-Residuals-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_Residuals_r15_H_ @@ -30,8 +30,8 @@ typedef struct GNSS_RTK_Residuals_r15 { GNSS_SystemTime_t epochTime_r15; GNSS_ReferenceStationID_r15_t referenceStationID_r15; long n_Refs_r15; - struct GNSS_FrequencyID_r15 *l1_r15 /* OPTIONAL */; - struct GNSS_FrequencyID_r15 *l2_r15 /* OPTIONAL */; + struct GNSS_FrequencyID_r15 *l1_r15; /* OPTIONAL */ + struct GNSS_FrequencyID_r15 *l2_r15; /* OPTIONAL */ RTK_Residuals_List_r15_t rtk_residuals_list_r15; /* * This type is extensible, @@ -51,8 +51,5 @@ extern asn_TYPE_member_t asn_MBR_GNSS_RTK_Residuals_r15_1[6]; } #endif -/* Referred external types */ -#include "GNSS-FrequencyID-r15.h" - #endif /* _GNSS_RTK_Residuals_r15_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-RTK-ResidualsReq-r15.c b/asn.1/lpp_generated/GNSS-RTK-ResidualsReq-r15.c new file mode 100644 index 00000000..5b3eb2c4 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-ResidualsReq-r15.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-ResidualsReq-r15.h" + +#include "GNSS-ReferenceStationID-r15.h" +#include "GNSS-Link-CombinationsList-r15.h" +asn_TYPE_member_t asn_MBR_GNSS_RTK_ResidualsReq_r15_1[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_RTK_ResidualsReq_r15, stationID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceStationID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stationID-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_RTK_ResidualsReq_r15, linkCombinations_PrefList_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_Link_CombinationsList_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "linkCombinations-PrefList-r15" + }, +}; +static const int asn_MAP_GNSS_RTK_ResidualsReq_r15_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_ResidualsReq_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_ResidualsReq_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* stationID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* linkCombinations-PrefList-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_ResidualsReq_r15_specs_1 = { + sizeof(struct GNSS_RTK_ResidualsReq_r15), + offsetof(struct GNSS_RTK_ResidualsReq_r15, _asn_ctx), + asn_MAP_GNSS_RTK_ResidualsReq_r15_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_GNSS_RTK_ResidualsReq_r15_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_ResidualsReq_r15 = { + "GNSS-RTK-ResidualsReq-r15", + "GNSS-RTK-ResidualsReq-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_ResidualsReq_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_ResidualsReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_ResidualsReq_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_ResidualsReq_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_ResidualsReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_ResidualsReq_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RTK_ResidualsReq_r15_1, + 2, /* Elements count */ + &asn_SPC_GNSS_RTK_ResidualsReq_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-RTK-ResidualsReq-r15.h b/asn.1/lpp_generated/GNSS-RTK-ResidualsReq-r15.h new file mode 100644 index 00000000..822d1cf2 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-ResidualsReq-r15.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_RTK_ResidualsReq_r15_H_ +#define _GNSS_RTK_ResidualsReq_r15_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GNSS_ReferenceStationID_r15; +struct GNSS_Link_CombinationsList_r15; + +/* GNSS-RTK-ResidualsReq-r15 */ +typedef struct GNSS_RTK_ResidualsReq_r15 { + struct GNSS_ReferenceStationID_r15 *stationID_r15; /* OPTIONAL */ + struct GNSS_Link_CombinationsList_r15 *linkCombinations_PrefList_r15; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_RTK_ResidualsReq_r15_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_ResidualsReq_r15; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_ResidualsReq_r15_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_RTK_ResidualsReq_r15_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_RTK_ResidualsReq_r15_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-RTK-ResidualsSupport-r15.c b/asn.1/lpp_generated/GNSS-RTK-ResidualsSupport-r15.c new file mode 100644 index 00000000..ad49b3c3 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-ResidualsSupport-r15.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-ResidualsSupport-r15.h" + +asn_TYPE_member_t asn_MBR_GNSS_RTK_ResidualsSupport_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_ResidualsSupport_r15, link_combinations_support_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_Link_CombinationsList_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "link-combinations-support-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_ResidualsSupport_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_ResidualsSupport_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* link-combinations-support-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_ResidualsSupport_r15_specs_1 = { + sizeof(struct GNSS_RTK_ResidualsSupport_r15), + offsetof(struct GNSS_RTK_ResidualsSupport_r15, _asn_ctx), + asn_MAP_GNSS_RTK_ResidualsSupport_r15_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_ResidualsSupport_r15 = { + "GNSS-RTK-ResidualsSupport-r15", + "GNSS-RTK-ResidualsSupport-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_ResidualsSupport_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_ResidualsSupport_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_ResidualsSupport_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_ResidualsSupport_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_ResidualsSupport_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_ResidualsSupport_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RTK_ResidualsSupport_r15_1, + 1, /* Elements count */ + &asn_SPC_GNSS_RTK_ResidualsSupport_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-ResidualsSupport-r15.h b/asn.1/lpp_generated/GNSS-RTK-ResidualsSupport-r15.h similarity index 80% rename from asn.1/generated/GNSS-RTK-ResidualsSupport-r15.h rename to asn.1/lpp_generated/GNSS-RTK-ResidualsSupport-r15.h index 709caa3f..890f5435 100644 --- a/asn.1/generated/GNSS-RTK-ResidualsSupport-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-ResidualsSupport-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_ResidualsSupport_r15_H_ diff --git a/asn.1/lpp_generated/GNSS-RTK-SatelliteDataElement-r15.c b/asn.1/lpp_generated/GNSS-RTK-SatelliteDataElement-r15.c new file mode 100644 index 00000000..422bb5a3 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-SatelliteDataElement-r15.c @@ -0,0 +1,236 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-SatelliteDataElement-r15.h" + +static int +memb_integer_ms_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 254L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_rough_range_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_rough_phase_range_rate_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8192L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_integer_ms_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 254 } /* (0..254) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rough_range_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rough_phase_range_rate_r15_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_RTK_SatelliteDataElement_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_SatelliteDataElement_r15, svID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_RTK_SatelliteDataElement_r15, integer_ms_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_integer_ms_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_integer_ms_r15_constraint_1 + }, + 0, 0, /* No default value */ + "integer-ms-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_SatelliteDataElement_r15, rough_range_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rough_range_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rough_range_r15_constraint_1 + }, + 0, 0, /* No default value */ + "rough-range-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_RTK_SatelliteDataElement_r15, rough_phase_range_rate_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rough_phase_range_rate_r15_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rough_phase_range_rate_r15_constraint_1 + }, + 0, 0, /* No default value */ + "rough-phase-range-rate-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_SatelliteDataElement_r15, gnss_rtk_SatelliteSignalDataList_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_RTK_SatelliteSignalDataList_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-rtk-SatelliteSignalDataList-r15" + }, +}; +static const int asn_MAP_GNSS_RTK_SatelliteDataElement_r15_oms_1[] = { 1, 3 }; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_SatelliteDataElement_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_SatelliteDataElement_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* integer-ms-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* rough-range-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* rough-phase-range-rate-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* gnss-rtk-SatelliteSignalDataList-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_SatelliteDataElement_r15_specs_1 = { + sizeof(struct GNSS_RTK_SatelliteDataElement_r15), + offsetof(struct GNSS_RTK_SatelliteDataElement_r15, _asn_ctx), + asn_MAP_GNSS_RTK_SatelliteDataElement_r15_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_GNSS_RTK_SatelliteDataElement_r15_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_SatelliteDataElement_r15 = { + "GNSS-RTK-SatelliteDataElement-r15", + "GNSS-RTK-SatelliteDataElement-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_SatelliteDataElement_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_SatelliteDataElement_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_SatelliteDataElement_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_SatelliteDataElement_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_SatelliteDataElement_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_SatelliteDataElement_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RTK_SatelliteDataElement_r15_1, + 5, /* Elements count */ + &asn_SPC_GNSS_RTK_SatelliteDataElement_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-SatelliteDataElement-r15.h b/asn.1/lpp_generated/GNSS-RTK-SatelliteDataElement-r15.h similarity index 77% rename from asn.1/generated/GNSS-RTK-SatelliteDataElement-r15.h rename to asn.1/lpp_generated/GNSS-RTK-SatelliteDataElement-r15.h index 9587a0e6..310e7126 100644 --- a/asn.1/generated/GNSS-RTK-SatelliteDataElement-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-SatelliteDataElement-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_SatelliteDataElement_r15_H_ @@ -24,9 +24,9 @@ extern "C" { /* GNSS-RTK-SatelliteDataElement-r15 */ typedef struct GNSS_RTK_SatelliteDataElement_r15 { SV_ID_t svID_r15; - long *integer_ms_r15 /* OPTIONAL */; + long *integer_ms_r15; /* OPTIONAL */ long rough_range_r15; - long *rough_phase_range_rate_r15 /* OPTIONAL */; + long *rough_phase_range_rate_r15; /* OPTIONAL */ GNSS_RTK_SatelliteSignalDataList_r15_t gnss_rtk_SatelliteSignalDataList_r15; /* * This type is extensible, diff --git a/asn.1/lpp_generated/GNSS-RTK-SatelliteSignalDataElement-r15.c b/asn.1/lpp_generated/GNSS-RTK-SatelliteSignalDataElement-r15.c new file mode 100644 index 00000000..ba8c7af2 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-SatelliteSignalDataElement-r15.c @@ -0,0 +1,374 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-SatelliteSignalDataElement-r15.h" + +static int +memb_fine_PseudoRange_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -524288L && value <= 524287L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_fine_PhaseRange_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_lockTimeIndicator_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_halfCycleAmbiguityIndicator_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 1UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_carrier_to_noise_ratio_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_fine_PhaseRangeRate_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16384L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_fine_PseudoRange_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 20, -1, -524288, 524287 } /* (-524288..524287) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_fine_PhaseRange_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_lockTimeIndicator_r15_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_halfCycleAmbiguityIndicator_r15_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 1, 1 } /* (SIZE(1..1)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_carrier_to_noise_ratio_r15_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_fine_PhaseRangeRate_r15_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_RTK_SatelliteSignalDataElement_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_SatelliteSignalDataElement_r15, gnss_SignalID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SignalID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_SatelliteSignalDataElement_r15, fine_PseudoRange_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_fine_PseudoRange_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_fine_PseudoRange_r15_constraint_1 + }, + 0, 0, /* No default value */ + "fine-PseudoRange-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_SatelliteSignalDataElement_r15, fine_PhaseRange_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_fine_PhaseRange_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_fine_PhaseRange_r15_constraint_1 + }, + 0, 0, /* No default value */ + "fine-PhaseRange-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_SatelliteSignalDataElement_r15, lockTimeIndicator_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_lockTimeIndicator_r15_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_lockTimeIndicator_r15_constraint_1 + }, + 0, 0, /* No default value */ + "lockTimeIndicator-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RTK_SatelliteSignalDataElement_r15, halfCycleAmbiguityIndicator_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_halfCycleAmbiguityIndicator_r15_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_halfCycleAmbiguityIndicator_r15_constraint_1 + }, + 0, 0, /* No default value */ + "halfCycleAmbiguityIndicator-r15" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_RTK_SatelliteSignalDataElement_r15, carrier_to_noise_ratio_r15), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_carrier_to_noise_ratio_r15_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_carrier_to_noise_ratio_r15_constraint_1 + }, + 0, 0, /* No default value */ + "carrier-to-noise-ratio-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_RTK_SatelliteSignalDataElement_r15, fine_PhaseRangeRate_r15), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_fine_PhaseRangeRate_r15_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_fine_PhaseRangeRate_r15_constraint_1 + }, + 0, 0, /* No default value */ + "fine-PhaseRangeRate-r15" + }, +}; +static const int asn_MAP_GNSS_RTK_SatelliteSignalDataElement_r15_oms_1[] = { 5, 6 }; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_SatelliteSignalDataElement_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RTK_SatelliteSignalDataElement_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SignalID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* fine-PseudoRange-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* fine-PhaseRange-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* lockTimeIndicator-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* halfCycleAmbiguityIndicator-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* carrier-to-noise-ratio-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* fine-PhaseRangeRate-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RTK_SatelliteSignalDataElement_r15_specs_1 = { + sizeof(struct GNSS_RTK_SatelliteSignalDataElement_r15), + offsetof(struct GNSS_RTK_SatelliteSignalDataElement_r15, _asn_ctx), + asn_MAP_GNSS_RTK_SatelliteSignalDataElement_r15_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_GNSS_RTK_SatelliteSignalDataElement_r15_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_SatelliteSignalDataElement_r15 = { + "GNSS-RTK-SatelliteSignalDataElement-r15", + "GNSS-RTK-SatelliteSignalDataElement-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RTK_SatelliteSignalDataElement_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_SatelliteSignalDataElement_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_SatelliteSignalDataElement_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_SatelliteSignalDataElement_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_SatelliteSignalDataElement_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_SatelliteSignalDataElement_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RTK_SatelliteSignalDataElement_r15_1, + 7, /* Elements count */ + &asn_SPC_GNSS_RTK_SatelliteSignalDataElement_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-SatelliteSignalDataElement-r15.h b/asn.1/lpp_generated/GNSS-RTK-SatelliteSignalDataElement-r15.h similarity index 78% rename from asn.1/generated/GNSS-RTK-SatelliteSignalDataElement-r15.h rename to asn.1/lpp_generated/GNSS-RTK-SatelliteSignalDataElement-r15.h index 6af59dde..6e339f76 100644 --- a/asn.1/generated/GNSS-RTK-SatelliteSignalDataElement-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-SatelliteSignalDataElement-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_SatelliteSignalDataElement_r15_H_ @@ -28,8 +28,8 @@ typedef struct GNSS_RTK_SatelliteSignalDataElement_r15 { long fine_PhaseRange_r15; long lockTimeIndicator_r15; BIT_STRING_t halfCycleAmbiguityIndicator_r15; - long *carrier_to_noise_ratio_r15 /* OPTIONAL */; - long *fine_PhaseRangeRate_r15 /* OPTIONAL */; + long *carrier_to_noise_ratio_r15; /* OPTIONAL */ + long *fine_PhaseRangeRate_r15; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/GNSS-RTK-SatelliteSignalDataList-r15.c b/asn.1/lpp_generated/GNSS-RTK-SatelliteSignalDataList-r15.c new file mode 100644 index 00000000..29265aa3 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RTK-SatelliteSignalDataList-r15.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RTK-SatelliteSignalDataList-r15.h" + +#include "GNSS-RTK-SatelliteSignalDataElement-r15.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_RTK_SatelliteSignalDataList_r15_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 24 } /* (SIZE(1..24)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_RTK_SatelliteSignalDataList_r15_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_RTK_SatelliteSignalDataElement_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_RTK_SatelliteSignalDataList_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_RTK_SatelliteSignalDataList_r15_specs_1 = { + sizeof(struct GNSS_RTK_SatelliteSignalDataList_r15), + offsetof(struct GNSS_RTK_SatelliteSignalDataList_r15, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RTK_SatelliteSignalDataList_r15 = { + "GNSS-RTK-SatelliteSignalDataList-r15", + "GNSS-RTK-SatelliteSignalDataList-r15", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_RTK_SatelliteSignalDataList_r15_tags_1, + sizeof(asn_DEF_GNSS_RTK_SatelliteSignalDataList_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_SatelliteSignalDataList_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RTK_SatelliteSignalDataList_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RTK_SatelliteSignalDataList_r15_tags_1) + /sizeof(asn_DEF_GNSS_RTK_SatelliteSignalDataList_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_RTK_SatelliteSignalDataList_r15_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_RTK_SatelliteSignalDataList_r15_1, + 1, /* Single element */ + &asn_SPC_GNSS_RTK_SatelliteSignalDataList_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RTK-SatelliteSignalDataList-r15.h b/asn.1/lpp_generated/GNSS-RTK-SatelliteSignalDataList-r15.h similarity index 82% rename from asn.1/generated/GNSS-RTK-SatelliteSignalDataList-r15.h rename to asn.1/lpp_generated/GNSS-RTK-SatelliteSignalDataList-r15.h index 872d7a6d..eb668430 100644 --- a/asn.1/generated/GNSS-RTK-SatelliteSignalDataList-r15.h +++ b/asn.1/lpp_generated/GNSS-RTK-SatelliteSignalDataList-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RTK_SatelliteSignalDataList_r15_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_RTK_SatelliteSignalDataList_r15_c } #endif -/* Referred external types */ -#include "GNSS-RTK-SatelliteSignalDataElement-r15.h" - #endif /* _GNSS_RTK_SatelliteSignalDataList_r15_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-RealTimeIntegrity.c b/asn.1/lpp_generated/GNSS-RealTimeIntegrity.c new file mode 100644 index 00000000..7670c65f --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RealTimeIntegrity.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RealTimeIntegrity.h" + +asn_TYPE_member_t asn_MBR_GNSS_RealTimeIntegrity_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_RealTimeIntegrity, gnss_BadSignalList), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_BadSignalList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-BadSignalList" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_RealTimeIntegrity_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_RealTimeIntegrity_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-BadSignalList */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RealTimeIntegrity_specs_1 = { + sizeof(struct GNSS_RealTimeIntegrity), + offsetof(struct GNSS_RealTimeIntegrity, _asn_ctx), + asn_MAP_GNSS_RealTimeIntegrity_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RealTimeIntegrity = { + "GNSS-RealTimeIntegrity", + "GNSS-RealTimeIntegrity", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RealTimeIntegrity_tags_1, + sizeof(asn_DEF_GNSS_RealTimeIntegrity_tags_1) + /sizeof(asn_DEF_GNSS_RealTimeIntegrity_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RealTimeIntegrity_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RealTimeIntegrity_tags_1) + /sizeof(asn_DEF_GNSS_RealTimeIntegrity_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_RealTimeIntegrity_1, + 1, /* Elements count */ + &asn_SPC_GNSS_RealTimeIntegrity_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RealTimeIntegrity.h b/asn.1/lpp_generated/GNSS-RealTimeIntegrity.h similarity index 79% rename from asn.1/generated/GNSS-RealTimeIntegrity.h rename to asn.1/lpp_generated/GNSS-RealTimeIntegrity.h index d4982845..2cf00abf 100644 --- a/asn.1/generated/GNSS-RealTimeIntegrity.h +++ b/asn.1/lpp_generated/GNSS-RealTimeIntegrity.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RealTimeIntegrity_H_ diff --git a/asn.1/lpp_generated/GNSS-RealTimeIntegrityReq.c b/asn.1/lpp_generated/GNSS-RealTimeIntegrityReq.c new file mode 100644 index 00000000..778fac6a --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RealTimeIntegrityReq.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RealTimeIntegrityReq.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_RealTimeIntegrityReq_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RealTimeIntegrityReq_specs_1 = { + sizeof(struct GNSS_RealTimeIntegrityReq), + offsetof(struct GNSS_RealTimeIntegrityReq, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RealTimeIntegrityReq = { + "GNSS-RealTimeIntegrityReq", + "GNSS-RealTimeIntegrityReq", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RealTimeIntegrityReq_tags_1, + sizeof(asn_DEF_GNSS_RealTimeIntegrityReq_tags_1) + /sizeof(asn_DEF_GNSS_RealTimeIntegrityReq_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RealTimeIntegrityReq_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RealTimeIntegrityReq_tags_1) + /sizeof(asn_DEF_GNSS_RealTimeIntegrityReq_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_RealTimeIntegrityReq_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RealTimeIntegrityReq.h b/asn.1/lpp_generated/GNSS-RealTimeIntegrityReq.h similarity index 77% rename from asn.1/generated/GNSS-RealTimeIntegrityReq.h rename to asn.1/lpp_generated/GNSS-RealTimeIntegrityReq.h index e4b27f92..2c881909 100644 --- a/asn.1/generated/GNSS-RealTimeIntegrityReq.h +++ b/asn.1/lpp_generated/GNSS-RealTimeIntegrityReq.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RealTimeIntegrityReq_H_ diff --git a/asn.1/lpp_generated/GNSS-RealTimeIntegritySupport.c b/asn.1/lpp_generated/GNSS-RealTimeIntegritySupport.c new file mode 100644 index 00000000..f0666cef --- /dev/null +++ b/asn.1/lpp_generated/GNSS-RealTimeIntegritySupport.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-RealTimeIntegritySupport.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_RealTimeIntegritySupport_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_RealTimeIntegritySupport_specs_1 = { + sizeof(struct GNSS_RealTimeIntegritySupport), + offsetof(struct GNSS_RealTimeIntegritySupport, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_RealTimeIntegritySupport = { + "GNSS-RealTimeIntegritySupport", + "GNSS-RealTimeIntegritySupport", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_RealTimeIntegritySupport_tags_1, + sizeof(asn_DEF_GNSS_RealTimeIntegritySupport_tags_1) + /sizeof(asn_DEF_GNSS_RealTimeIntegritySupport_tags_1[0]), /* 1 */ + asn_DEF_GNSS_RealTimeIntegritySupport_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_RealTimeIntegritySupport_tags_1) + /sizeof(asn_DEF_GNSS_RealTimeIntegritySupport_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_RealTimeIntegritySupport_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-RealTimeIntegritySupport.h b/asn.1/lpp_generated/GNSS-RealTimeIntegritySupport.h similarity index 77% rename from asn.1/generated/GNSS-RealTimeIntegritySupport.h rename to asn.1/lpp_generated/GNSS-RealTimeIntegritySupport.h index 07e51721..0455d9ed 100644 --- a/asn.1/generated/GNSS-RealTimeIntegritySupport.h +++ b/asn.1/lpp_generated/GNSS-RealTimeIntegritySupport.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_RealTimeIntegritySupport_H_ diff --git a/asn.1/lpp_generated/GNSS-ReferenceLocation.c b/asn.1/lpp_generated/GNSS-ReferenceLocation.c new file mode 100644 index 00000000..1fce4243 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-ReferenceLocation.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-ReferenceLocation.h" + +asn_TYPE_member_t asn_MBR_GNSS_ReferenceLocation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ReferenceLocation, threeDlocation), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "threeDlocation" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_ReferenceLocation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_ReferenceLocation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* threeDlocation */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_ReferenceLocation_specs_1 = { + sizeof(struct GNSS_ReferenceLocation), + offsetof(struct GNSS_ReferenceLocation, _asn_ctx), + asn_MAP_GNSS_ReferenceLocation_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_ReferenceLocation = { + "GNSS-ReferenceLocation", + "GNSS-ReferenceLocation", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_ReferenceLocation_tags_1, + sizeof(asn_DEF_GNSS_ReferenceLocation_tags_1) + /sizeof(asn_DEF_GNSS_ReferenceLocation_tags_1[0]), /* 1 */ + asn_DEF_GNSS_ReferenceLocation_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_ReferenceLocation_tags_1) + /sizeof(asn_DEF_GNSS_ReferenceLocation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_ReferenceLocation_1, + 1, /* Elements count */ + &asn_SPC_GNSS_ReferenceLocation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-ReferenceLocation.h b/asn.1/lpp_generated/GNSS-ReferenceLocation.h similarity index 80% rename from asn.1/generated/GNSS-ReferenceLocation.h rename to asn.1/lpp_generated/GNSS-ReferenceLocation.h index cf21178c..fe9fbf63 100644 --- a/asn.1/generated/GNSS-ReferenceLocation.h +++ b/asn.1/lpp_generated/GNSS-ReferenceLocation.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_ReferenceLocation_H_ diff --git a/asn.1/lpp_generated/GNSS-ReferenceLocationReq.c b/asn.1/lpp_generated/GNSS-ReferenceLocationReq.c new file mode 100644 index 00000000..2e8d6d5a --- /dev/null +++ b/asn.1/lpp_generated/GNSS-ReferenceLocationReq.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-ReferenceLocationReq.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_ReferenceLocationReq_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_ReferenceLocationReq_specs_1 = { + sizeof(struct GNSS_ReferenceLocationReq), + offsetof(struct GNSS_ReferenceLocationReq, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_ReferenceLocationReq = { + "GNSS-ReferenceLocationReq", + "GNSS-ReferenceLocationReq", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_ReferenceLocationReq_tags_1, + sizeof(asn_DEF_GNSS_ReferenceLocationReq_tags_1) + /sizeof(asn_DEF_GNSS_ReferenceLocationReq_tags_1[0]), /* 1 */ + asn_DEF_GNSS_ReferenceLocationReq_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_ReferenceLocationReq_tags_1) + /sizeof(asn_DEF_GNSS_ReferenceLocationReq_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_ReferenceLocationReq_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-ReferenceLocationReq.h b/asn.1/lpp_generated/GNSS-ReferenceLocationReq.h similarity index 77% rename from asn.1/generated/GNSS-ReferenceLocationReq.h rename to asn.1/lpp_generated/GNSS-ReferenceLocationReq.h index 8a5dd573..7d576cfe 100644 --- a/asn.1/generated/GNSS-ReferenceLocationReq.h +++ b/asn.1/lpp_generated/GNSS-ReferenceLocationReq.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_ReferenceLocationReq_H_ diff --git a/asn.1/lpp_generated/GNSS-ReferenceLocationSupport.c b/asn.1/lpp_generated/GNSS-ReferenceLocationSupport.c new file mode 100644 index 00000000..861648cf --- /dev/null +++ b/asn.1/lpp_generated/GNSS-ReferenceLocationSupport.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-ReferenceLocationSupport.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_ReferenceLocationSupport_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_ReferenceLocationSupport_specs_1 = { + sizeof(struct GNSS_ReferenceLocationSupport), + offsetof(struct GNSS_ReferenceLocationSupport, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_ReferenceLocationSupport = { + "GNSS-ReferenceLocationSupport", + "GNSS-ReferenceLocationSupport", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_ReferenceLocationSupport_tags_1, + sizeof(asn_DEF_GNSS_ReferenceLocationSupport_tags_1) + /sizeof(asn_DEF_GNSS_ReferenceLocationSupport_tags_1[0]), /* 1 */ + asn_DEF_GNSS_ReferenceLocationSupport_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_ReferenceLocationSupport_tags_1) + /sizeof(asn_DEF_GNSS_ReferenceLocationSupport_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_ReferenceLocationSupport_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-ReferenceLocationSupport.h b/asn.1/lpp_generated/GNSS-ReferenceLocationSupport.h similarity index 77% rename from asn.1/generated/GNSS-ReferenceLocationSupport.h rename to asn.1/lpp_generated/GNSS-ReferenceLocationSupport.h index 88318f03..03b02478 100644 --- a/asn.1/generated/GNSS-ReferenceLocationSupport.h +++ b/asn.1/lpp_generated/GNSS-ReferenceLocationSupport.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_ReferenceLocationSupport_H_ diff --git a/asn.1/lpp_generated/GNSS-ReferenceStationID-r15.c b/asn.1/lpp_generated/GNSS-ReferenceStationID-r15.c new file mode 100644 index 00000000..f74db7b1 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-ReferenceStationID-r15.c @@ -0,0 +1,165 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-ReferenceStationID-r15.h" + +static int check_permitted_alphabet_3(const void *sptr) { + /* The underlying type is VisibleString */ + const VisibleString_t *st = (const VisibleString_t *)sptr; + const uint8_t *ch = st->buf; + const uint8_t *end = ch + st->size; + + for(; ch < end; ch++) { + uint8_t cv = *ch; + if(!(cv >= 32UL && cv <= 126UL)) return -1; + } + return 0; +} + +static int +memb_referenceStationID_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_providerName_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const VisibleString_t *st = (const VisibleString_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size >= 1UL && size <= 32UL) + && !check_permitted_alphabet_3(st)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_referenceStationID_r15_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_providerName_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 32, 126 } /* (32..126) */, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER character map necessary */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_ReferenceStationID_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ReferenceStationID_r15, referenceStationID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_referenceStationID_r15_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_referenceStationID_r15_constraint_1 + }, + 0, 0, /* No default value */ + "referenceStationID-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_ReferenceStationID_r15, providerName_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VisibleString, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_providerName_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_providerName_r15_constraint_1 + }, + 0, 0, /* No default value */ + "providerName-r15" + }, +}; +static const int asn_MAP_GNSS_ReferenceStationID_r15_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_GNSS_ReferenceStationID_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_ReferenceStationID_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceStationID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* providerName-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_ReferenceStationID_r15_specs_1 = { + sizeof(struct GNSS_ReferenceStationID_r15), + offsetof(struct GNSS_ReferenceStationID_r15, _asn_ctx), + asn_MAP_GNSS_ReferenceStationID_r15_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_GNSS_ReferenceStationID_r15_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_ReferenceStationID_r15 = { + "GNSS-ReferenceStationID-r15", + "GNSS-ReferenceStationID-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_ReferenceStationID_r15_tags_1, + sizeof(asn_DEF_GNSS_ReferenceStationID_r15_tags_1) + /sizeof(asn_DEF_GNSS_ReferenceStationID_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_ReferenceStationID_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_ReferenceStationID_r15_tags_1) + /sizeof(asn_DEF_GNSS_ReferenceStationID_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_ReferenceStationID_r15_1, + 2, /* Elements count */ + &asn_SPC_GNSS_ReferenceStationID_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-ReferenceStationID-r15.h b/asn.1/lpp_generated/GNSS-ReferenceStationID-r15.h similarity index 77% rename from asn.1/generated/GNSS-ReferenceStationID-r15.h rename to asn.1/lpp_generated/GNSS-ReferenceStationID-r15.h index cc96f0e0..de56ab82 100644 --- a/asn.1/generated/GNSS-ReferenceStationID-r15.h +++ b/asn.1/lpp_generated/GNSS-ReferenceStationID-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_ReferenceStationID_r15_H_ @@ -23,7 +23,7 @@ extern "C" { /* GNSS-ReferenceStationID-r15 */ typedef struct GNSS_ReferenceStationID_r15 { long referenceStationID_r15; - VisibleString_t *providerName_r15 /* OPTIONAL */; + VisibleString_t *providerName_r15; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/GNSS-ReferenceTime.c b/asn.1/lpp_generated/GNSS-ReferenceTime.c new file mode 100644 index 00000000..604bd6e6 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-ReferenceTime.c @@ -0,0 +1,230 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-ReferenceTime.h" + +#include "GNSS-ReferenceTimeForOneCell.h" +static int +memb_referenceTimeUnc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gnss_ReferenceTimeForCells_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 16UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_gnss_ReferenceTimeForCells_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_referenceTimeUnc_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_ReferenceTimeForCells_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_gnss_ReferenceTimeForCells_4[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_ReferenceTimeForOneCell, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_gnss_ReferenceTimeForCells_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_gnss_ReferenceTimeForCells_specs_4 = { + sizeof(struct GNSS_ReferenceTime__gnss_ReferenceTimeForCells), + offsetof(struct GNSS_ReferenceTime__gnss_ReferenceTimeForCells, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_gnss_ReferenceTimeForCells_4 = { + "gnss-ReferenceTimeForCells", + "gnss-ReferenceTimeForCells", + &asn_OP_SEQUENCE_OF, + asn_DEF_gnss_ReferenceTimeForCells_tags_4, + sizeof(asn_DEF_gnss_ReferenceTimeForCells_tags_4) + /sizeof(asn_DEF_gnss_ReferenceTimeForCells_tags_4[0]) - 1, /* 1 */ + asn_DEF_gnss_ReferenceTimeForCells_tags_4, /* Same as above */ + sizeof(asn_DEF_gnss_ReferenceTimeForCells_tags_4) + /sizeof(asn_DEF_gnss_ReferenceTimeForCells_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_gnss_ReferenceTimeForCells_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_gnss_ReferenceTimeForCells_4, + 1, /* Single element */ + &asn_SPC_gnss_ReferenceTimeForCells_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_ReferenceTime_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ReferenceTime, gnss_SystemTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SystemTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SystemTime" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_ReferenceTime, referenceTimeUnc), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_referenceTimeUnc_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_referenceTimeUnc_constraint_1 + }, + 0, 0, /* No default value */ + "referenceTimeUnc" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_ReferenceTime, gnss_ReferenceTimeForCells), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_gnss_ReferenceTimeForCells_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_ReferenceTimeForCells_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_ReferenceTimeForCells_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-ReferenceTimeForCells" + }, +}; +static const int asn_MAP_GNSS_ReferenceTime_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_GNSS_ReferenceTime_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_ReferenceTime_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SystemTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* referenceTimeUnc */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gnss-ReferenceTimeForCells */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_ReferenceTime_specs_1 = { + sizeof(struct GNSS_ReferenceTime), + offsetof(struct GNSS_ReferenceTime, _asn_ctx), + asn_MAP_GNSS_ReferenceTime_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_GNSS_ReferenceTime_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_ReferenceTime = { + "GNSS-ReferenceTime", + "GNSS-ReferenceTime", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_ReferenceTime_tags_1, + sizeof(asn_DEF_GNSS_ReferenceTime_tags_1) + /sizeof(asn_DEF_GNSS_ReferenceTime_tags_1[0]), /* 1 */ + asn_DEF_GNSS_ReferenceTime_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_ReferenceTime_tags_1) + /sizeof(asn_DEF_GNSS_ReferenceTime_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_ReferenceTime_1, + 3, /* Elements count */ + &asn_SPC_GNSS_ReferenceTime_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-ReferenceTime.h b/asn.1/lpp_generated/GNSS-ReferenceTime.h similarity index 81% rename from asn.1/generated/GNSS-ReferenceTime.h rename to asn.1/lpp_generated/GNSS-ReferenceTime.h index e95bf7b0..958cdb38 100644 --- a/asn.1/generated/GNSS-ReferenceTime.h +++ b/asn.1/lpp_generated/GNSS-ReferenceTime.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_ReferenceTime_H_ @@ -28,7 +28,7 @@ struct GNSS_ReferenceTimeForOneCell; /* GNSS-ReferenceTime */ typedef struct GNSS_ReferenceTime { GNSS_SystemTime_t gnss_SystemTime; - long *referenceTimeUnc /* OPTIONAL */; + long *referenceTimeUnc; /* OPTIONAL */ struct GNSS_ReferenceTime__gnss_ReferenceTimeForCells { A_SEQUENCE_OF(struct GNSS_ReferenceTimeForOneCell) list; @@ -53,8 +53,5 @@ extern asn_TYPE_member_t asn_MBR_GNSS_ReferenceTime_1[3]; } #endif -/* Referred external types */ -#include "GNSS-ReferenceTimeForOneCell.h" - #endif /* _GNSS_ReferenceTime_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-ReferenceTimeForOneCell.c b/asn.1/lpp_generated/GNSS-ReferenceTimeForOneCell.c new file mode 100644 index 00000000..d59b094e --- /dev/null +++ b/asn.1/lpp_generated/GNSS-ReferenceTimeForOneCell.c @@ -0,0 +1,190 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-ReferenceTimeForOneCell.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_referenceTimeUnc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_bsAlign_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_referenceTimeUnc_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_bsAlign_value2enum_4[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_bsAlign_enum2value_4[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_bsAlign_specs_4 = { + asn_MAP_bsAlign_value2enum_4, /* "tag" => N; sorted by tag */ + asn_MAP_bsAlign_enum2value_4, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_bsAlign_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_bsAlign_4 = { + "bsAlign", + "bsAlign", + &asn_OP_NativeEnumerated, + asn_DEF_bsAlign_tags_4, + sizeof(asn_DEF_bsAlign_tags_4) + /sizeof(asn_DEF_bsAlign_tags_4[0]) - 1, /* 1 */ + asn_DEF_bsAlign_tags_4, /* Same as above */ + sizeof(asn_DEF_bsAlign_tags_4) + /sizeof(asn_DEF_bsAlign_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_bsAlign_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_bsAlign_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_ReferenceTimeForOneCell_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ReferenceTimeForOneCell, networkTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NetworkTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "networkTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ReferenceTimeForOneCell, referenceTimeUnc), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_referenceTimeUnc_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_referenceTimeUnc_constraint_1 + }, + 0, 0, /* No default value */ + "referenceTimeUnc" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_ReferenceTimeForOneCell, bsAlign), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_bsAlign_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bsAlign" + }, +}; +static const int asn_MAP_GNSS_ReferenceTimeForOneCell_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_GNSS_ReferenceTimeForOneCell_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_ReferenceTimeForOneCell_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* networkTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* referenceTimeUnc */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* bsAlign */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_ReferenceTimeForOneCell_specs_1 = { + sizeof(struct GNSS_ReferenceTimeForOneCell), + offsetof(struct GNSS_ReferenceTimeForOneCell, _asn_ctx), + asn_MAP_GNSS_ReferenceTimeForOneCell_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_GNSS_ReferenceTimeForOneCell_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_ReferenceTimeForOneCell = { + "GNSS-ReferenceTimeForOneCell", + "GNSS-ReferenceTimeForOneCell", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_ReferenceTimeForOneCell_tags_1, + sizeof(asn_DEF_GNSS_ReferenceTimeForOneCell_tags_1) + /sizeof(asn_DEF_GNSS_ReferenceTimeForOneCell_tags_1[0]), /* 1 */ + asn_DEF_GNSS_ReferenceTimeForOneCell_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_ReferenceTimeForOneCell_tags_1) + /sizeof(asn_DEF_GNSS_ReferenceTimeForOneCell_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_ReferenceTimeForOneCell_1, + 3, /* Elements count */ + &asn_SPC_GNSS_ReferenceTimeForOneCell_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-ReferenceTimeForOneCell.h b/asn.1/lpp_generated/GNSS-ReferenceTimeForOneCell.h similarity index 82% rename from asn.1/generated/GNSS-ReferenceTimeForOneCell.h rename to asn.1/lpp_generated/GNSS-ReferenceTimeForOneCell.h index f30c9f3c..d76e7bf3 100644 --- a/asn.1/generated/GNSS-ReferenceTimeForOneCell.h +++ b/asn.1/lpp_generated/GNSS-ReferenceTimeForOneCell.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_ReferenceTimeForOneCell_H_ @@ -30,7 +30,7 @@ typedef enum GNSS_ReferenceTimeForOneCell__bsAlign { typedef struct GNSS_ReferenceTimeForOneCell { NetworkTime_t networkTime; long referenceTimeUnc; - long *bsAlign /* OPTIONAL */; + long *bsAlign; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/GNSS-ReferenceTimeReq.c b/asn.1/lpp_generated/GNSS-ReferenceTimeReq.c new file mode 100644 index 00000000..956ca183 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-ReferenceTimeReq.c @@ -0,0 +1,198 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-ReferenceTimeReq.h" + +#include "GNSS-ID.h" +static int +memb_gnss_TimeReqPrefList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 8UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_gnss_TimeReqPrefList_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_TimeReqPrefList_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_gnss_TimeReqPrefList_2[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_gnss_TimeReqPrefList_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_gnss_TimeReqPrefList_specs_2 = { + sizeof(struct GNSS_ReferenceTimeReq__gnss_TimeReqPrefList), + offsetof(struct GNSS_ReferenceTimeReq__gnss_TimeReqPrefList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_gnss_TimeReqPrefList_2 = { + "gnss-TimeReqPrefList", + "gnss-TimeReqPrefList", + &asn_OP_SEQUENCE_OF, + asn_DEF_gnss_TimeReqPrefList_tags_2, + sizeof(asn_DEF_gnss_TimeReqPrefList_tags_2) + /sizeof(asn_DEF_gnss_TimeReqPrefList_tags_2[0]) - 1, /* 1 */ + asn_DEF_gnss_TimeReqPrefList_tags_2, /* Same as above */ + sizeof(asn_DEF_gnss_TimeReqPrefList_tags_2) + /sizeof(asn_DEF_gnss_TimeReqPrefList_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_gnss_TimeReqPrefList_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_gnss_TimeReqPrefList_2, + 1, /* Single element */ + &asn_SPC_gnss_TimeReqPrefList_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_ReferenceTimeReq_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ReferenceTimeReq, gnss_TimeReqPrefList), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_gnss_TimeReqPrefList_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_TimeReqPrefList_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_TimeReqPrefList_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-TimeReqPrefList" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_ReferenceTimeReq, gps_TOW_assistReq), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gps-TOW-assistReq" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_ReferenceTimeReq, notOfLeapSecReq), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "notOfLeapSecReq" + }, +}; +static const int asn_MAP_GNSS_ReferenceTimeReq_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_GNSS_ReferenceTimeReq_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_ReferenceTimeReq_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-TimeReqPrefList */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gps-TOW-assistReq */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* notOfLeapSecReq */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_ReferenceTimeReq_specs_1 = { + sizeof(struct GNSS_ReferenceTimeReq), + offsetof(struct GNSS_ReferenceTimeReq, _asn_ctx), + asn_MAP_GNSS_ReferenceTimeReq_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_GNSS_ReferenceTimeReq_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_ReferenceTimeReq = { + "GNSS-ReferenceTimeReq", + "GNSS-ReferenceTimeReq", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_ReferenceTimeReq_tags_1, + sizeof(asn_DEF_GNSS_ReferenceTimeReq_tags_1) + /sizeof(asn_DEF_GNSS_ReferenceTimeReq_tags_1[0]), /* 1 */ + asn_DEF_GNSS_ReferenceTimeReq_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_ReferenceTimeReq_tags_1) + /sizeof(asn_DEF_GNSS_ReferenceTimeReq_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_ReferenceTimeReq_1, + 3, /* Elements count */ + &asn_SPC_GNSS_ReferenceTimeReq_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-ReferenceTimeReq.h b/asn.1/lpp_generated/GNSS-ReferenceTimeReq.h similarity index 77% rename from asn.1/generated/GNSS-ReferenceTimeReq.h rename to asn.1/lpp_generated/GNSS-ReferenceTimeReq.h index 34a9bd0b..07fcc42d 100644 --- a/asn.1/generated/GNSS-ReferenceTimeReq.h +++ b/asn.1/lpp_generated/GNSS-ReferenceTimeReq.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_ReferenceTimeReq_H_ @@ -32,8 +32,8 @@ typedef struct GNSS_ReferenceTimeReq { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } gnss_TimeReqPrefList; - BOOLEAN_t *gps_TOW_assistReq /* OPTIONAL */; - BOOLEAN_t *notOfLeapSecReq /* OPTIONAL */; + BOOLEAN_t *gps_TOW_assistReq; /* OPTIONAL */ + BOOLEAN_t *notOfLeapSecReq; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -52,8 +52,5 @@ extern asn_TYPE_member_t asn_MBR_GNSS_ReferenceTimeReq_1[3]; } #endif -/* Referred external types */ -#include "GNSS-ID.h" - #endif /* _GNSS_ReferenceTimeReq_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-ReferenceTimeSupport.c b/asn.1/lpp_generated/GNSS-ReferenceTimeSupport.c new file mode 100644 index 00000000..3747db9b --- /dev/null +++ b/asn.1/lpp_generated/GNSS-ReferenceTimeSupport.c @@ -0,0 +1,87 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-ReferenceTimeSupport.h" + +#include "AccessTypes.h" +asn_TYPE_member_t asn_MBR_GNSS_ReferenceTimeSupport_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_ReferenceTimeSupport, gnss_SystemTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ID_Bitmap, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SystemTime" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_ReferenceTimeSupport, fta_Support), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccessTypes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fta-Support" + }, +}; +static const int asn_MAP_GNSS_ReferenceTimeSupport_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_GNSS_ReferenceTimeSupport_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_ReferenceTimeSupport_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SystemTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* fta-Support */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_ReferenceTimeSupport_specs_1 = { + sizeof(struct GNSS_ReferenceTimeSupport), + offsetof(struct GNSS_ReferenceTimeSupport, _asn_ctx), + asn_MAP_GNSS_ReferenceTimeSupport_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_GNSS_ReferenceTimeSupport_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_ReferenceTimeSupport = { + "GNSS-ReferenceTimeSupport", + "GNSS-ReferenceTimeSupport", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_ReferenceTimeSupport_tags_1, + sizeof(asn_DEF_GNSS_ReferenceTimeSupport_tags_1) + /sizeof(asn_DEF_GNSS_ReferenceTimeSupport_tags_1[0]), /* 1 */ + asn_DEF_GNSS_ReferenceTimeSupport_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_ReferenceTimeSupport_tags_1) + /sizeof(asn_DEF_GNSS_ReferenceTimeSupport_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_ReferenceTimeSupport_1, + 2, /* Elements count */ + &asn_SPC_GNSS_ReferenceTimeSupport_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-ReferenceTimeSupport.h b/asn.1/lpp_generated/GNSS-ReferenceTimeSupport.h similarity index 77% rename from asn.1/generated/GNSS-ReferenceTimeSupport.h rename to asn.1/lpp_generated/GNSS-ReferenceTimeSupport.h index e6884522..4be9d79a 100644 --- a/asn.1/generated/GNSS-ReferenceTimeSupport.h +++ b/asn.1/lpp_generated/GNSS-ReferenceTimeSupport.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_ReferenceTimeSupport_H_ @@ -25,7 +25,7 @@ struct AccessTypes; /* GNSS-ReferenceTimeSupport */ typedef struct GNSS_ReferenceTimeSupport { GNSS_ID_Bitmap_t gnss_SystemTime; - struct AccessTypes *fta_Support /* OPTIONAL */; + struct AccessTypes *fta_Support; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -44,8 +44,5 @@ extern asn_TYPE_member_t asn_MBR_GNSS_ReferenceTimeSupport_1[2]; } #endif -/* Referred external types */ -#include "AccessTypes.h" - #endif /* _GNSS_ReferenceTimeSupport_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-SSR-ArrayOfCorrectionPoints-r16.c b/asn.1/lpp_generated/GNSS-SSR-ArrayOfCorrectionPoints-r16.c new file mode 100644 index 00000000..2dcb9c07 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-ArrayOfCorrectionPoints-r16.c @@ -0,0 +1,406 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-ArrayOfCorrectionPoints-r16.h" + +static int +memb_referencePointLatitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16384L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_referencePointLongitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_numberOfStepsLatitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_numberOfStepsLongitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stepOfLatitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stepOfLongitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bitmaskOfGrids_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 64UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_referencePointLatitude_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_referencePointLongitude_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_numberOfStepsLatitude_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_numberOfStepsLongitude_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stepOfLatitude_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 1, 511 } /* (1..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stepOfLongitude_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 1, 1023 } /* (1..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bitmaskOfGrids_r16_constr_8 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 64, 64 } /* (SIZE(64..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_SSR_ArrayOfCorrectionPoints_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ArrayOfCorrectionPoints_r16, referencePointLatitude_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_referencePointLatitude_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_referencePointLatitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "referencePointLatitude-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ArrayOfCorrectionPoints_r16, referencePointLongitude_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_referencePointLongitude_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_referencePointLongitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "referencePointLongitude-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ArrayOfCorrectionPoints_r16, numberOfStepsLatitude_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_numberOfStepsLatitude_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_numberOfStepsLatitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "numberOfStepsLatitude-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ArrayOfCorrectionPoints_r16, numberOfStepsLongitude_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_numberOfStepsLongitude_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_numberOfStepsLongitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "numberOfStepsLongitude-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ArrayOfCorrectionPoints_r16, stepOfLatitude_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stepOfLatitude_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stepOfLatitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "stepOfLatitude-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ArrayOfCorrectionPoints_r16, stepOfLongitude_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stepOfLongitude_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stepOfLongitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "stepOfLongitude-r16" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_ArrayOfCorrectionPoints_r16, bitmaskOfGrids_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bitmaskOfGrids_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bitmaskOfGrids_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bitmaskOfGrids-r16" + }, +}; +static const int asn_MAP_GNSS_SSR_ArrayOfCorrectionPoints_r16_oms_1[] = { 6 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_ArrayOfCorrectionPoints_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_ArrayOfCorrectionPoints_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referencePointLatitude-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* referencePointLongitude-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* numberOfStepsLatitude-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* numberOfStepsLongitude-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* stepOfLatitude-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* stepOfLongitude-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* bitmaskOfGrids-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ArrayOfCorrectionPoints_r16_specs_1 = { + sizeof(struct GNSS_SSR_ArrayOfCorrectionPoints_r16), + offsetof(struct GNSS_SSR_ArrayOfCorrectionPoints_r16, _asn_ctx), + asn_MAP_GNSS_SSR_ArrayOfCorrectionPoints_r16_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_ArrayOfCorrectionPoints_r16_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ArrayOfCorrectionPoints_r16 = { + "GNSS-SSR-ArrayOfCorrectionPoints-r16", + "GNSS-SSR-ArrayOfCorrectionPoints-r16", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_ArrayOfCorrectionPoints_r16_tags_1, + sizeof(asn_DEF_GNSS_SSR_ArrayOfCorrectionPoints_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_ArrayOfCorrectionPoints_r16_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_ArrayOfCorrectionPoints_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_ArrayOfCorrectionPoints_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_ArrayOfCorrectionPoints_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_ArrayOfCorrectionPoints_r16_1, + 7, /* Elements count */ + &asn_SPC_GNSS_SSR_ArrayOfCorrectionPoints_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-SSR-ArrayOfCorrectionPoints-r16.h b/asn.1/lpp_generated/GNSS-SSR-ArrayOfCorrectionPoints-r16.h similarity index 80% rename from asn.1/generated/GNSS-SSR-ArrayOfCorrectionPoints-r16.h rename to asn.1/lpp_generated/GNSS-SSR-ArrayOfCorrectionPoints-r16.h index 9153b16e..fd2e7e07 100644 --- a/asn.1/generated/GNSS-SSR-ArrayOfCorrectionPoints-r16.h +++ b/asn.1/lpp_generated/GNSS-SSR-ArrayOfCorrectionPoints-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_SSR_ArrayOfCorrectionPoints_r16_H_ @@ -28,7 +28,7 @@ typedef struct GNSS_SSR_ArrayOfCorrectionPoints_r16 { long numberOfStepsLongitude_r16; long stepOfLatitude_r16; long stepOfLongitude_r16; - BIT_STRING_t *bitmaskOfGrids_r16 /* OPTIONAL */; + BIT_STRING_t *bitmaskOfGrids_r16; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/GNSS-SSR-ClockCorrections-r15.c b/asn.1/lpp_generated/GNSS-SSR-ClockCorrections-r15.c new file mode 100644 index 00000000..3562c1e8 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-ClockCorrections-r15.c @@ -0,0 +1,266 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-ClockCorrections-r15.h" + +#include "CLOCK-IntegrityParameters-r17.h" +static int +memb_ssrUpdateInterval_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_iod_ssr_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ssrUpdateInterval_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_iod_ssr_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_ClockCorrections_r15__ext1, clock_IntegrityParameters_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CLOCK_IntegrityParameters_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "clock-IntegrityParameters-r17" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* clock-IntegrityParameters-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct GNSS_SSR_ClockCorrections_r15__ext1), + offsetof(struct GNSS_SSR_ClockCorrections_r15__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 1, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_ClockCorrections_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ClockCorrections_r15, epochTime_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SystemTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epochTime-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ClockCorrections_r15, ssrUpdateInterval_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ssrUpdateInterval_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ssrUpdateInterval_r15_constraint_1 + }, + 0, 0, /* No default value */ + "ssrUpdateInterval-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ClockCorrections_r15, iod_ssr_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_iod_ssr_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_iod_ssr_r15_constraint_1 + }, + 0, 0, /* No default value */ + "iod-ssr-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ClockCorrections_r15, ssr_ClockCorrectionList_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SSR_ClockCorrectionList_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-ClockCorrectionList-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_ClockCorrections_r15, ext1), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_SSR_ClockCorrections_r15_oms_1[] = { 4 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_ClockCorrections_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_ClockCorrections_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ssrUpdateInterval-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* iod-ssr-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ssr-ClockCorrectionList-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ClockCorrections_r15_specs_1 = { + sizeof(struct GNSS_SSR_ClockCorrections_r15), + offsetof(struct GNSS_SSR_ClockCorrections_r15, _asn_ctx), + asn_MAP_GNSS_SSR_ClockCorrections_r15_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_ClockCorrections_r15_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ClockCorrections_r15 = { + "GNSS-SSR-ClockCorrections-r15", + "GNSS-SSR-ClockCorrections-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_ClockCorrections_r15_tags_1, + sizeof(asn_DEF_GNSS_SSR_ClockCorrections_r15_tags_1) + /sizeof(asn_DEF_GNSS_SSR_ClockCorrections_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_ClockCorrections_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_ClockCorrections_r15_tags_1) + /sizeof(asn_DEF_GNSS_SSR_ClockCorrections_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_ClockCorrections_r15_1, + 5, /* Elements count */ + &asn_SPC_GNSS_SSR_ClockCorrections_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-ClockCorrections-r15.h b/asn.1/lpp_generated/GNSS-SSR-ClockCorrections-r15.h new file mode 100644 index 00000000..1a738f97 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-ClockCorrections-r15.h @@ -0,0 +1,58 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_ClockCorrections_r15_H_ +#define _GNSS_SSR_ClockCorrections_r15_H_ + + +#include + +/* Including external dependencies */ +#include "GNSS-SystemTime.h" +#include +#include "SSR-ClockCorrectionList-r15.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CLOCK_IntegrityParameters_r17; + +/* GNSS-SSR-ClockCorrections-r15 */ +typedef struct GNSS_SSR_ClockCorrections_r15 { + GNSS_SystemTime_t epochTime_r15; + long ssrUpdateInterval_r15; + long iod_ssr_r15; + SSR_ClockCorrectionList_r15_t ssr_ClockCorrectionList_r15; + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_SSR_ClockCorrections_r15__ext1 { + struct CLOCK_IntegrityParameters_r17 *clock_IntegrityParameters_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_ClockCorrections_r15_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ClockCorrections_r15; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ClockCorrections_r15_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_ClockCorrections_r15_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_ClockCorrections_r15_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsReq-r15.c b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsReq-r15.c new file mode 100644 index 00000000..d78d9eef --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsReq-r15.c @@ -0,0 +1,274 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-ClockCorrectionsReq-r15.h" + +#include "GNSS-NavListInfo-r15.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_clock_IntegrityParametersReq_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ssr_IntegrityClockBoundsReq_r17_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_clock_IntegrityParametersReq_r17_value2enum_5[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_clock_IntegrityParametersReq_r17_enum2value_5[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_clock_IntegrityParametersReq_r17_specs_5 = { + asn_MAP_clock_IntegrityParametersReq_r17_value2enum_5, /* "tag" => N; sorted by tag */ + asn_MAP_clock_IntegrityParametersReq_r17_enum2value_5, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_clock_IntegrityParametersReq_r17_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_clock_IntegrityParametersReq_r17_5 = { + "clock-IntegrityParametersReq-r17", + "clock-IntegrityParametersReq-r17", + &asn_OP_NativeEnumerated, + asn_DEF_clock_IntegrityParametersReq_r17_tags_5, + sizeof(asn_DEF_clock_IntegrityParametersReq_r17_tags_5) + /sizeof(asn_DEF_clock_IntegrityParametersReq_r17_tags_5[0]) - 1, /* 1 */ + asn_DEF_clock_IntegrityParametersReq_r17_tags_5, /* Same as above */ + sizeof(asn_DEF_clock_IntegrityParametersReq_r17_tags_5) + /sizeof(asn_DEF_clock_IntegrityParametersReq_r17_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_clock_IntegrityParametersReq_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_clock_IntegrityParametersReq_r17_specs_5 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_ssr_IntegrityClockBoundsReq_r17_value2enum_7[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_ssr_IntegrityClockBoundsReq_r17_enum2value_7[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ssr_IntegrityClockBoundsReq_r17_specs_7 = { + asn_MAP_ssr_IntegrityClockBoundsReq_r17_value2enum_7, /* "tag" => N; sorted by tag */ + asn_MAP_ssr_IntegrityClockBoundsReq_r17_enum2value_7, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ssr_IntegrityClockBoundsReq_r17_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ssr_IntegrityClockBoundsReq_r17_7 = { + "ssr-IntegrityClockBoundsReq-r17", + "ssr-IntegrityClockBoundsReq-r17", + &asn_OP_NativeEnumerated, + asn_DEF_ssr_IntegrityClockBoundsReq_r17_tags_7, + sizeof(asn_DEF_ssr_IntegrityClockBoundsReq_r17_tags_7) + /sizeof(asn_DEF_ssr_IntegrityClockBoundsReq_r17_tags_7[0]) - 1, /* 1 */ + asn_DEF_ssr_IntegrityClockBoundsReq_r17_tags_7, /* Same as above */ + sizeof(asn_DEF_ssr_IntegrityClockBoundsReq_r17_tags_7) + /sizeof(asn_DEF_ssr_IntegrityClockBoundsReq_r17_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ssr_IntegrityClockBoundsReq_r17_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ssr_IntegrityClockBoundsReq_r17_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_4[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_SSR_ClockCorrectionsReq_r15__ext1, clock_IntegrityParametersReq_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_clock_IntegrityParametersReq_r17_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "clock-IntegrityParametersReq-r17" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_ClockCorrectionsReq_r15__ext1, ssr_IntegrityClockBoundsReq_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ssr_IntegrityClockBoundsReq_r17_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-IntegrityClockBoundsReq-r17" + }, +}; +static const int asn_MAP_ext1_oms_4[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* clock-IntegrityParametersReq-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ssr-IntegrityClockBoundsReq-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { + sizeof(struct GNSS_SSR_ClockCorrectionsReq_r15__ext1), + offsetof(struct GNSS_SSR_ClockCorrectionsReq_r15__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_4, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_4, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_4 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_4, + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_4, /* Same as above */ + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_4, + 2, /* Elements count */ + &asn_SPC_ext1_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_ClockCorrectionsReq_r15_1[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_SSR_ClockCorrectionsReq_r15, storedNavList_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_NavListInfo_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "storedNavList-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_ClockCorrectionsReq_r15, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_SSR_ClockCorrectionsReq_r15_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_ClockCorrectionsReq_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* storedNavList-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ClockCorrectionsReq_r15_specs_1 = { + sizeof(struct GNSS_SSR_ClockCorrectionsReq_r15), + offsetof(struct GNSS_SSR_ClockCorrectionsReq_r15, _asn_ctx), + asn_MAP_GNSS_SSR_ClockCorrectionsReq_r15_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_ClockCorrectionsReq_r15_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15 = { + "GNSS-SSR-ClockCorrectionsReq-r15", + "GNSS-SSR-ClockCorrectionsReq-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15_tags_1, + sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_ClockCorrectionsReq_r15_1, + 2, /* Elements count */ + &asn_SPC_GNSS_SSR_ClockCorrectionsReq_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsReq-r15.h b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsReq-r15.h new file mode 100644 index 00000000..19702d70 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsReq-r15.h @@ -0,0 +1,64 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_ClockCorrectionsReq_r15_H_ +#define _GNSS_SSR_ClockCorrectionsReq_r15_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_SSR_ClockCorrectionsReq_r15__ext1__clock_IntegrityParametersReq_r17 { + GNSS_SSR_ClockCorrectionsReq_r15__ext1__clock_IntegrityParametersReq_r17_true = 0 +} e_GNSS_SSR_ClockCorrectionsReq_r15__ext1__clock_IntegrityParametersReq_r17; +typedef enum GNSS_SSR_ClockCorrectionsReq_r15__ext1__ssr_IntegrityClockBoundsReq_r17 { + GNSS_SSR_ClockCorrectionsReq_r15__ext1__ssr_IntegrityClockBoundsReq_r17_true = 0 +} e_GNSS_SSR_ClockCorrectionsReq_r15__ext1__ssr_IntegrityClockBoundsReq_r17; + +/* Forward declarations */ +struct GNSS_NavListInfo_r15; + +/* GNSS-SSR-ClockCorrectionsReq-r15 */ +typedef struct GNSS_SSR_ClockCorrectionsReq_r15 { + struct GNSS_NavListInfo_r15 *storedNavList_r15; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_SSR_ClockCorrectionsReq_r15__ext1 { + long *clock_IntegrityParametersReq_r17; /* OPTIONAL */ + long *ssr_IntegrityClockBoundsReq_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_ClockCorrectionsReq_r15_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_clock_IntegrityParametersReq_r17_5; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_ssr_IntegrityClockBoundsReq_r17_7; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ClockCorrectionsReq_r15_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_ClockCorrectionsReq_r15_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_ClockCorrectionsReq_r15_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2-r17.c b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2-r17.c new file mode 100644 index 00000000..c490af97 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2-r17.c @@ -0,0 +1,140 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-ClockCorrectionsSet2-r17.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_refEph_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_refEph_r17_value2enum_2[] = { + { 0, 3, "b1c" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_refEph_r17_enum2value_2[] = { + 0 /* b1c(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_refEph_r17_specs_2 = { + asn_MAP_refEph_r17_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_refEph_r17_enum2value_2, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_refEph_r17_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_refEph_r17_2 = { + "refEph-r17", + "refEph-r17", + &asn_OP_NativeEnumerated, + asn_DEF_refEph_r17_tags_2, + sizeof(asn_DEF_refEph_r17_tags_2) + /sizeof(asn_DEF_refEph_r17_tags_2[0]) - 1, /* 1 */ + asn_DEF_refEph_r17_tags_2, /* Same as above */ + sizeof(asn_DEF_refEph_r17_tags_2) + /sizeof(asn_DEF_refEph_r17_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_refEph_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_refEph_r17_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_ClockCorrectionsSet2_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ClockCorrectionsSet2_r17, refEph_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_refEph_r17_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "refEph-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ClockCorrectionsSet2_r17, gnss_SSR_ClockCorrections_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_ClockCorrections_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-ClockCorrections-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_ClockCorrectionsSet2_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_ClockCorrectionsSet2_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refEph-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-SSR-ClockCorrections-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ClockCorrectionsSet2_r17_specs_1 = { + sizeof(struct GNSS_SSR_ClockCorrectionsSet2_r17), + offsetof(struct GNSS_SSR_ClockCorrectionsSet2_r17, _asn_ctx), + asn_MAP_GNSS_SSR_ClockCorrectionsSet2_r17_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ClockCorrectionsSet2_r17 = { + "GNSS-SSR-ClockCorrectionsSet2-r17", + "GNSS-SSR-ClockCorrectionsSet2-r17", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_ClockCorrectionsSet2_r17_tags_1, + sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSet2_r17_tags_1) + /sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSet2_r17_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_ClockCorrectionsSet2_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSet2_r17_tags_1) + /sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSet2_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_ClockCorrectionsSet2_r17_1, + 2, /* Elements count */ + &asn_SPC_GNSS_SSR_ClockCorrectionsSet2_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2-r17.h b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2-r17.h new file mode 100644 index 00000000..758bb786 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2-r17.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_ClockCorrectionsSet2_r17_H_ +#define _GNSS_SSR_ClockCorrectionsSet2_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include "GNSS-SSR-ClockCorrections-r15.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_SSR_ClockCorrectionsSet2_r17__refEph_r17 { + GNSS_SSR_ClockCorrectionsSet2_r17__refEph_r17_b1c = 0 + /* + * Enumeration is extensible + */ +} e_GNSS_SSR_ClockCorrectionsSet2_r17__refEph_r17; + +/* GNSS-SSR-ClockCorrectionsSet2-r17 */ +typedef struct GNSS_SSR_ClockCorrectionsSet2_r17 { + long refEph_r17; + GNSS_SSR_ClockCorrections_r15_t gnss_SSR_ClockCorrections_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_ClockCorrectionsSet2_r17_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_refEph_r17_2; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ClockCorrectionsSet2_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ClockCorrectionsSet2_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_ClockCorrectionsSet2_r17_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_ClockCorrectionsSet2_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2Req-r17.c b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2Req-r17.c new file mode 100644 index 00000000..f8f1c59f --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2Req-r17.c @@ -0,0 +1,143 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-ClockCorrectionsSet2Req-r17.h" + +#include "GNSS-SSR-ClockCorrectionsReq-r15.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_refEphReq_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_refEphReq_r17_value2enum_2[] = { + { 0, 3, "b1c" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_refEphReq_r17_enum2value_2[] = { + 0 /* b1c(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_refEphReq_r17_specs_2 = { + asn_MAP_refEphReq_r17_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_refEphReq_r17_enum2value_2, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_refEphReq_r17_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_refEphReq_r17_2 = { + "refEphReq-r17", + "refEphReq-r17", + &asn_OP_NativeEnumerated, + asn_DEF_refEphReq_r17_tags_2, + sizeof(asn_DEF_refEphReq_r17_tags_2) + /sizeof(asn_DEF_refEphReq_r17_tags_2[0]) - 1, /* 1 */ + asn_DEF_refEphReq_r17_tags_2, /* Same as above */ + sizeof(asn_DEF_refEphReq_r17_tags_2) + /sizeof(asn_DEF_refEphReq_r17_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_refEphReq_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_refEphReq_r17_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_ClockCorrectionsSet2Req_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ClockCorrectionsSet2Req_r17, refEphReq_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_refEphReq_r17_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "refEphReq-r17" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_ClockCorrectionsSet2Req_r17, gnss_SSR_ClockCorrectionsSet2Req_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_ClockCorrectionsReq_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-ClockCorrectionsSet2Req-r17" + }, +}; +static const int asn_MAP_GNSS_SSR_ClockCorrectionsSet2Req_r17_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_ClockCorrectionsSet2Req_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_ClockCorrectionsSet2Req_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refEphReq-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-SSR-ClockCorrectionsSet2Req-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ClockCorrectionsSet2Req_r17_specs_1 = { + sizeof(struct GNSS_SSR_ClockCorrectionsSet2Req_r17), + offsetof(struct GNSS_SSR_ClockCorrectionsSet2Req_r17, _asn_ctx), + asn_MAP_GNSS_SSR_ClockCorrectionsSet2Req_r17_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_ClockCorrectionsSet2Req_r17_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ClockCorrectionsSet2Req_r17 = { + "GNSS-SSR-ClockCorrectionsSet2Req-r17", + "GNSS-SSR-ClockCorrectionsSet2Req-r17", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_ClockCorrectionsSet2Req_r17_tags_1, + sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSet2Req_r17_tags_1) + /sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSet2Req_r17_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_ClockCorrectionsSet2Req_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSet2Req_r17_tags_1) + /sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSet2Req_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_ClockCorrectionsSet2Req_r17_1, + 2, /* Elements count */ + &asn_SPC_GNSS_SSR_ClockCorrectionsSet2Req_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2Req-r17.h b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2Req-r17.h new file mode 100644 index 00000000..2da594b3 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2Req-r17.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_ClockCorrectionsSet2Req_r17_H_ +#define _GNSS_SSR_ClockCorrectionsSet2Req_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_SSR_ClockCorrectionsSet2Req_r17__refEphReq_r17 { + GNSS_SSR_ClockCorrectionsSet2Req_r17__refEphReq_r17_b1c = 0 + /* + * Enumeration is extensible + */ +} e_GNSS_SSR_ClockCorrectionsSet2Req_r17__refEphReq_r17; + +/* Forward declarations */ +struct GNSS_SSR_ClockCorrectionsReq_r15; + +/* GNSS-SSR-ClockCorrectionsSet2Req-r17 */ +typedef struct GNSS_SSR_ClockCorrectionsSet2Req_r17 { + long refEphReq_r17; + struct GNSS_SSR_ClockCorrectionsReq_r15 *gnss_SSR_ClockCorrectionsSet2Req_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_ClockCorrectionsSet2Req_r17_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_refEphReq_r17_2; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ClockCorrectionsSet2Req_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ClockCorrectionsSet2Req_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_ClockCorrectionsSet2Req_r17_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_ClockCorrectionsSet2Req_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2Support-r17.c b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2Support-r17.c new file mode 100644 index 00000000..3d499f4f --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2Support-r17.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-ClockCorrectionsSet2Support-r17.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_ClockCorrectionsSet2Support_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ClockCorrectionsSet2Support_r17_specs_1 = { + sizeof(struct GNSS_SSR_ClockCorrectionsSet2Support_r17), + offsetof(struct GNSS_SSR_ClockCorrectionsSet2Support_r17, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ClockCorrectionsSet2Support_r17 = { + "GNSS-SSR-ClockCorrectionsSet2Support-r17", + "GNSS-SSR-ClockCorrectionsSet2Support-r17", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_ClockCorrectionsSet2Support_r17_tags_1, + sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSet2Support_r17_tags_1) + /sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSet2Support_r17_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_ClockCorrectionsSet2Support_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSet2Support_r17_tags_1) + /sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSet2Support_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_SSR_ClockCorrectionsSet2Support_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2Support-r17.h b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2Support-r17.h new file mode 100644 index 00000000..0014837b --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSet2Support-r17.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_ClockCorrectionsSet2Support_r17_H_ +#define _GNSS_SSR_ClockCorrectionsSet2Support_r17_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-SSR-ClockCorrectionsSet2Support-r17 */ +typedef struct GNSS_SSR_ClockCorrectionsSet2Support_r17 { + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_ClockCorrectionsSet2Support_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ClockCorrectionsSet2Support_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ClockCorrectionsSet2Support_r17_specs_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_ClockCorrectionsSet2Support_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSupport-r15.c b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSupport-r15.c new file mode 100644 index 00000000..41b97b67 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSupport-r15.c @@ -0,0 +1,255 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-ClockCorrectionsSupport-r15.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_clock_IntegrityParameterSupport_r17_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ssr_IntegrityClockBoundsSupport_r17_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_clock_IntegrityParameterSupport_r17_value2enum_4[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_clock_IntegrityParameterSupport_r17_enum2value_4[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_clock_IntegrityParameterSupport_r17_specs_4 = { + asn_MAP_clock_IntegrityParameterSupport_r17_value2enum_4, /* "tag" => N; sorted by tag */ + asn_MAP_clock_IntegrityParameterSupport_r17_enum2value_4, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_clock_IntegrityParameterSupport_r17_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_clock_IntegrityParameterSupport_r17_4 = { + "clock-IntegrityParameterSupport-r17", + "clock-IntegrityParameterSupport-r17", + &asn_OP_NativeEnumerated, + asn_DEF_clock_IntegrityParameterSupport_r17_tags_4, + sizeof(asn_DEF_clock_IntegrityParameterSupport_r17_tags_4) + /sizeof(asn_DEF_clock_IntegrityParameterSupport_r17_tags_4[0]) - 1, /* 1 */ + asn_DEF_clock_IntegrityParameterSupport_r17_tags_4, /* Same as above */ + sizeof(asn_DEF_clock_IntegrityParameterSupport_r17_tags_4) + /sizeof(asn_DEF_clock_IntegrityParameterSupport_r17_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_clock_IntegrityParameterSupport_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_clock_IntegrityParameterSupport_r17_specs_4 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_ssr_IntegrityClockBoundsSupport_r17_value2enum_6[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_ssr_IntegrityClockBoundsSupport_r17_enum2value_6[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ssr_IntegrityClockBoundsSupport_r17_specs_6 = { + asn_MAP_ssr_IntegrityClockBoundsSupport_r17_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_ssr_IntegrityClockBoundsSupport_r17_enum2value_6, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ssr_IntegrityClockBoundsSupport_r17_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ssr_IntegrityClockBoundsSupport_r17_6 = { + "ssr-IntegrityClockBoundsSupport-r17", + "ssr-IntegrityClockBoundsSupport-r17", + &asn_OP_NativeEnumerated, + asn_DEF_ssr_IntegrityClockBoundsSupport_r17_tags_6, + sizeof(asn_DEF_ssr_IntegrityClockBoundsSupport_r17_tags_6) + /sizeof(asn_DEF_ssr_IntegrityClockBoundsSupport_r17_tags_6[0]) - 1, /* 1 */ + asn_DEF_ssr_IntegrityClockBoundsSupport_r17_tags_6, /* Same as above */ + sizeof(asn_DEF_ssr_IntegrityClockBoundsSupport_r17_tags_6) + /sizeof(asn_DEF_ssr_IntegrityClockBoundsSupport_r17_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ssr_IntegrityClockBoundsSupport_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ssr_IntegrityClockBoundsSupport_r17_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_3[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_SSR_ClockCorrectionsSupport_r15__ext1, clock_IntegrityParameterSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_clock_IntegrityParameterSupport_r17_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "clock-IntegrityParameterSupport-r17" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_ClockCorrectionsSupport_r15__ext1, ssr_IntegrityClockBoundsSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ssr_IntegrityClockBoundsSupport_r17_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-IntegrityClockBoundsSupport-r17" + }, +}; +static const int asn_MAP_ext1_oms_3[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* clock-IntegrityParameterSupport-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ssr-IntegrityClockBoundsSupport-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_3 = { + sizeof(struct GNSS_SSR_ClockCorrectionsSupport_r15__ext1), + offsetof(struct GNSS_SSR_ClockCorrectionsSupport_r15__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_3, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_3, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_3 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_3, + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_3, /* Same as above */ + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_3, + 2, /* Elements count */ + &asn_SPC_ext1_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_ClockCorrectionsSupport_r15_1[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_ClockCorrectionsSupport_r15, ext1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_ext1_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_SSR_ClockCorrectionsSupport_r15_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_ClockCorrectionsSupport_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ClockCorrectionsSupport_r15_specs_1 = { + sizeof(struct GNSS_SSR_ClockCorrectionsSupport_r15), + offsetof(struct GNSS_SSR_ClockCorrectionsSupport_r15, _asn_ctx), + asn_MAP_GNSS_SSR_ClockCorrectionsSupport_r15_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_ClockCorrectionsSupport_r15_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15 = { + "GNSS-SSR-ClockCorrectionsSupport-r15", + "GNSS-SSR-ClockCorrectionsSupport-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15_tags_1, + sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15_tags_1) + /sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15_tags_1) + /sizeof(asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_ClockCorrectionsSupport_r15_1, + 1, /* Elements count */ + &asn_SPC_GNSS_SSR_ClockCorrectionsSupport_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSupport-r15.h b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSupport-r15.h new file mode 100644 index 00000000..db4d9e03 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-ClockCorrectionsSupport-r15.h @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_ClockCorrectionsSupport_r15_H_ +#define _GNSS_SSR_ClockCorrectionsSupport_r15_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_SSR_ClockCorrectionsSupport_r15__ext1__clock_IntegrityParameterSupport_r17 { + GNSS_SSR_ClockCorrectionsSupport_r15__ext1__clock_IntegrityParameterSupport_r17_supported = 0 +} e_GNSS_SSR_ClockCorrectionsSupport_r15__ext1__clock_IntegrityParameterSupport_r17; +typedef enum GNSS_SSR_ClockCorrectionsSupport_r15__ext1__ssr_IntegrityClockBoundsSupport_r17 { + GNSS_SSR_ClockCorrectionsSupport_r15__ext1__ssr_IntegrityClockBoundsSupport_r17_supported = 0 +} e_GNSS_SSR_ClockCorrectionsSupport_r15__ext1__ssr_IntegrityClockBoundsSupport_r17; + +/* GNSS-SSR-ClockCorrectionsSupport-r15 */ +typedef struct GNSS_SSR_ClockCorrectionsSupport_r15 { + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_SSR_ClockCorrectionsSupport_r15__ext1 { + long *clock_IntegrityParameterSupport_r17; /* OPTIONAL */ + long *ssr_IntegrityClockBoundsSupport_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_ClockCorrectionsSupport_r15_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_clock_IntegrityParameterSupport_r17_4; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_ssr_IntegrityClockBoundsSupport_r17_6; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ClockCorrectionsSupport_r15; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ClockCorrectionsSupport_r15_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_ClockCorrectionsSupport_r15_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_ClockCorrectionsSupport_r15_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-CodeBias-r15.c b/asn.1/lpp_generated/GNSS-SSR-CodeBias-r15.c new file mode 100644 index 00000000..ba894c25 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-CodeBias-r15.c @@ -0,0 +1,184 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-CodeBias-r15.h" + +static int +memb_ssrUpdateInterval_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_iod_ssr_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ssrUpdateInterval_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_iod_ssr_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_SSR_CodeBias_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CodeBias_r15, epochTime_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SystemTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epochTime-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CodeBias_r15, ssrUpdateInterval_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ssrUpdateInterval_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ssrUpdateInterval_r15_constraint_1 + }, + 0, 0, /* No default value */ + "ssrUpdateInterval-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CodeBias_r15, iod_ssr_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_iod_ssr_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_iod_ssr_r15_constraint_1 + }, + 0, 0, /* No default value */ + "iod-ssr-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CodeBias_r15, ssr_CodeBiasSatList_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SSR_CodeBiasSatList_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-CodeBiasSatList-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_CodeBias_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_CodeBias_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ssrUpdateInterval-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* iod-ssr-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ssr-CodeBiasSatList-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_CodeBias_r15_specs_1 = { + sizeof(struct GNSS_SSR_CodeBias_r15), + offsetof(struct GNSS_SSR_CodeBias_r15, _asn_ctx), + asn_MAP_GNSS_SSR_CodeBias_r15_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_CodeBias_r15 = { + "GNSS-SSR-CodeBias-r15", + "GNSS-SSR-CodeBias-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_CodeBias_r15_tags_1, + sizeof(asn_DEF_GNSS_SSR_CodeBias_r15_tags_1) + /sizeof(asn_DEF_GNSS_SSR_CodeBias_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_CodeBias_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_CodeBias_r15_tags_1) + /sizeof(asn_DEF_GNSS_SSR_CodeBias_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_CodeBias_r15_1, + 4, /* Elements count */ + &asn_SPC_GNSS_SSR_CodeBias_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-SSR-CodeBias-r15.h b/asn.1/lpp_generated/GNSS-SSR-CodeBias-r15.h similarity index 81% rename from asn.1/generated/GNSS-SSR-CodeBias-r15.h rename to asn.1/lpp_generated/GNSS-SSR-CodeBias-r15.h index 3cde70e2..d1a5c413 100644 --- a/asn.1/generated/GNSS-SSR-CodeBias-r15.h +++ b/asn.1/lpp_generated/GNSS-SSR-CodeBias-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_SSR_CodeBias_r15_H_ diff --git a/asn.1/lpp_generated/GNSS-SSR-CodeBiasReq-r15.c b/asn.1/lpp_generated/GNSS-SSR-CodeBiasReq-r15.c new file mode 100644 index 00000000..63b0de95 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-CodeBiasReq-r15.c @@ -0,0 +1,220 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-CodeBiasReq-r15.h" + +#include "GNSS-NavListInfo-r15.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ssr_IntegrityCodeBiasBoundsReq_r17_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_ssr_IntegrityCodeBiasBoundsReq_r17_value2enum_6[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_ssr_IntegrityCodeBiasBoundsReq_r17_enum2value_6[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ssr_IntegrityCodeBiasBoundsReq_r17_specs_6 = { + asn_MAP_ssr_IntegrityCodeBiasBoundsReq_r17_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_ssr_IntegrityCodeBiasBoundsReq_r17_enum2value_6, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ssr_IntegrityCodeBiasBoundsReq_r17_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ssr_IntegrityCodeBiasBoundsReq_r17_6 = { + "ssr-IntegrityCodeBiasBoundsReq-r17", + "ssr-IntegrityCodeBiasBoundsReq-r17", + &asn_OP_NativeEnumerated, + asn_DEF_ssr_IntegrityCodeBiasBoundsReq_r17_tags_6, + sizeof(asn_DEF_ssr_IntegrityCodeBiasBoundsReq_r17_tags_6) + /sizeof(asn_DEF_ssr_IntegrityCodeBiasBoundsReq_r17_tags_6[0]) - 1, /* 1 */ + asn_DEF_ssr_IntegrityCodeBiasBoundsReq_r17_tags_6, /* Same as above */ + sizeof(asn_DEF_ssr_IntegrityCodeBiasBoundsReq_r17_tags_6) + /sizeof(asn_DEF_ssr_IntegrityCodeBiasBoundsReq_r17_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ssr_IntegrityCodeBiasBoundsReq_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ssr_IntegrityCodeBiasBoundsReq_r17_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_CodeBiasReq_r15__ext1, ssr_IntegrityCodeBiasBoundsReq_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ssr_IntegrityCodeBiasBoundsReq_r17_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-IntegrityCodeBiasBoundsReq-r17" + }, +}; +static const int asn_MAP_ext1_oms_5[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ssr-IntegrityCodeBiasBoundsReq-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct GNSS_SSR_CodeBiasReq_r15__ext1), + offsetof(struct GNSS_SSR_CodeBiasReq_r15__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_5, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 1, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_CodeBiasReq_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CodeBiasReq_r15, signal_and_tracking_mode_ID_Map_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalIDs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "signal-and-tracking-mode-ID-Map-r15" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_SSR_CodeBiasReq_r15, storedNavList_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_NavListInfo_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "storedNavList-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_CodeBiasReq_r15, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_SSR_CodeBiasReq_r15_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_CodeBiasReq_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_CodeBiasReq_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* signal-and-tracking-mode-ID-Map-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* storedNavList-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_CodeBiasReq_r15_specs_1 = { + sizeof(struct GNSS_SSR_CodeBiasReq_r15), + offsetof(struct GNSS_SSR_CodeBiasReq_r15, _asn_ctx), + asn_MAP_GNSS_SSR_CodeBiasReq_r15_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_CodeBiasReq_r15_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_CodeBiasReq_r15 = { + "GNSS-SSR-CodeBiasReq-r15", + "GNSS-SSR-CodeBiasReq-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_CodeBiasReq_r15_tags_1, + sizeof(asn_DEF_GNSS_SSR_CodeBiasReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_SSR_CodeBiasReq_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_CodeBiasReq_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_CodeBiasReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_SSR_CodeBiasReq_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_CodeBiasReq_r15_1, + 3, /* Elements count */ + &asn_SPC_GNSS_SSR_CodeBiasReq_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-CodeBiasReq-r15.h b/asn.1/lpp_generated/GNSS-SSR-CodeBiasReq-r15.h new file mode 100644 index 00000000..94b7d4c1 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-CodeBiasReq-r15.h @@ -0,0 +1,61 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_CodeBiasReq_r15_H_ +#define _GNSS_SSR_CodeBiasReq_r15_H_ + + +#include + +/* Including external dependencies */ +#include "GNSS-SignalIDs.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_SSR_CodeBiasReq_r15__ext1__ssr_IntegrityCodeBiasBoundsReq_r17 { + GNSS_SSR_CodeBiasReq_r15__ext1__ssr_IntegrityCodeBiasBoundsReq_r17_requested = 0 +} e_GNSS_SSR_CodeBiasReq_r15__ext1__ssr_IntegrityCodeBiasBoundsReq_r17; + +/* Forward declarations */ +struct GNSS_NavListInfo_r15; + +/* GNSS-SSR-CodeBiasReq-r15 */ +typedef struct GNSS_SSR_CodeBiasReq_r15 { + GNSS_SignalIDs_t signal_and_tracking_mode_ID_Map_r15; + struct GNSS_NavListInfo_r15 *storedNavList_r15; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_SSR_CodeBiasReq_r15__ext1 { + long *ssr_IntegrityCodeBiasBoundsReq_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_CodeBiasReq_r15_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_ssr_IntegrityCodeBiasBoundsReq_r17_6; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_CodeBiasReq_r15; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_CodeBiasReq_r15_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_CodeBiasReq_r15_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_CodeBiasReq_r15_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-CodeBiasSupport-r15.c b/asn.1/lpp_generated/GNSS-SSR-CodeBiasSupport-r15.c new file mode 100644 index 00000000..41a7c394 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-CodeBiasSupport-r15.c @@ -0,0 +1,201 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-CodeBiasSupport-r15.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ssr_IntegrityCodeBiasBoundsSup_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_ssr_IntegrityCodeBiasBoundsSup_r17_value2enum_5[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_ssr_IntegrityCodeBiasBoundsSup_r17_enum2value_5[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ssr_IntegrityCodeBiasBoundsSup_r17_specs_5 = { + asn_MAP_ssr_IntegrityCodeBiasBoundsSup_r17_value2enum_5, /* "tag" => N; sorted by tag */ + asn_MAP_ssr_IntegrityCodeBiasBoundsSup_r17_enum2value_5, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ssr_IntegrityCodeBiasBoundsSup_r17_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ssr_IntegrityCodeBiasBoundsSup_r17_5 = { + "ssr-IntegrityCodeBiasBoundsSup-r17", + "ssr-IntegrityCodeBiasBoundsSup-r17", + &asn_OP_NativeEnumerated, + asn_DEF_ssr_IntegrityCodeBiasBoundsSup_r17_tags_5, + sizeof(asn_DEF_ssr_IntegrityCodeBiasBoundsSup_r17_tags_5) + /sizeof(asn_DEF_ssr_IntegrityCodeBiasBoundsSup_r17_tags_5[0]) - 1, /* 1 */ + asn_DEF_ssr_IntegrityCodeBiasBoundsSup_r17_tags_5, /* Same as above */ + sizeof(asn_DEF_ssr_IntegrityCodeBiasBoundsSup_r17_tags_5) + /sizeof(asn_DEF_ssr_IntegrityCodeBiasBoundsSup_r17_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ssr_IntegrityCodeBiasBoundsSup_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ssr_IntegrityCodeBiasBoundsSup_r17_specs_5 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_4[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_CodeBiasSupport_r15__ext1, ssr_IntegrityCodeBiasBoundsSup_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ssr_IntegrityCodeBiasBoundsSup_r17_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-IntegrityCodeBiasBoundsSup-r17" + }, +}; +static const int asn_MAP_ext1_oms_4[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ssr-IntegrityCodeBiasBoundsSup-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { + sizeof(struct GNSS_SSR_CodeBiasSupport_r15__ext1), + offsetof(struct GNSS_SSR_CodeBiasSupport_r15__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_4, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_4, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_4 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_4, + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_4, /* Same as above */ + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_4, + 1, /* Elements count */ + &asn_SPC_ext1_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_CodeBiasSupport_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CodeBiasSupport_r15, signal_and_tracking_mode_ID_Sup_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalIDs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "signal-and-tracking-mode-ID-Sup-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_CodeBiasSupport_r15, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_SSR_CodeBiasSupport_r15_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_CodeBiasSupport_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_CodeBiasSupport_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* signal-and-tracking-mode-ID-Sup-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_CodeBiasSupport_r15_specs_1 = { + sizeof(struct GNSS_SSR_CodeBiasSupport_r15), + offsetof(struct GNSS_SSR_CodeBiasSupport_r15, _asn_ctx), + asn_MAP_GNSS_SSR_CodeBiasSupport_r15_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_CodeBiasSupport_r15_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_CodeBiasSupport_r15 = { + "GNSS-SSR-CodeBiasSupport-r15", + "GNSS-SSR-CodeBiasSupport-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_CodeBiasSupport_r15_tags_1, + sizeof(asn_DEF_GNSS_SSR_CodeBiasSupport_r15_tags_1) + /sizeof(asn_DEF_GNSS_SSR_CodeBiasSupport_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_CodeBiasSupport_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_CodeBiasSupport_r15_tags_1) + /sizeof(asn_DEF_GNSS_SSR_CodeBiasSupport_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_CodeBiasSupport_r15_1, + 2, /* Elements count */ + &asn_SPC_GNSS_SSR_CodeBiasSupport_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-CodeBiasSupport-r15.h b/asn.1/lpp_generated/GNSS-SSR-CodeBiasSupport-r15.h new file mode 100644 index 00000000..78eaa408 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-CodeBiasSupport-r15.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_CodeBiasSupport_r15_H_ +#define _GNSS_SSR_CodeBiasSupport_r15_H_ + + +#include + +/* Including external dependencies */ +#include "GNSS-SignalIDs.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_SSR_CodeBiasSupport_r15__ext1__ssr_IntegrityCodeBiasBoundsSup_r17 { + GNSS_SSR_CodeBiasSupport_r15__ext1__ssr_IntegrityCodeBiasBoundsSup_r17_supported = 0 +} e_GNSS_SSR_CodeBiasSupport_r15__ext1__ssr_IntegrityCodeBiasBoundsSup_r17; + +/* GNSS-SSR-CodeBiasSupport-r15 */ +typedef struct GNSS_SSR_CodeBiasSupport_r15 { + GNSS_SignalIDs_t signal_and_tracking_mode_ID_Sup_r15; + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_SSR_CodeBiasSupport_r15__ext1 { + long *ssr_IntegrityCodeBiasBoundsSup_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_CodeBiasSupport_r15_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_ssr_IntegrityCodeBiasBoundsSup_r17_5; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_CodeBiasSupport_r15; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_CodeBiasSupport_r15_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_CodeBiasSupport_r15_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_CodeBiasSupport_r15_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-CorrectionPoints-r16.c b/asn.1/lpp_generated/GNSS-SSR-CorrectionPoints-r16.c new file mode 100644 index 00000000..faef9dee --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-CorrectionPoints-r16.c @@ -0,0 +1,196 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-CorrectionPoints-r16.h" + +static int +memb_correctionPointSetID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_correctionPoints_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_correctionPointSetID_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_correctionPoints_r16_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CorrectionPoints_r16__correctionPoints_r16, choice.listOfCorrectionPoints_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_ListOfCorrectionPoints_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "listOfCorrectionPoints-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CorrectionPoints_r16__correctionPoints_r16, choice.arrayOfCorrectionPoints_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_ArrayOfCorrectionPoints_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "arrayOfCorrectionPoints-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_correctionPoints_r16_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* listOfCorrectionPoints-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* arrayOfCorrectionPoints-r16 */ +}; +static asn_CHOICE_specifics_t asn_SPC_correctionPoints_r16_specs_3 = { + sizeof(struct GNSS_SSR_CorrectionPoints_r16__correctionPoints_r16), + offsetof(struct GNSS_SSR_CorrectionPoints_r16__correctionPoints_r16, _asn_ctx), + offsetof(struct GNSS_SSR_CorrectionPoints_r16__correctionPoints_r16, present), + sizeof(((struct GNSS_SSR_CorrectionPoints_r16__correctionPoints_r16 *)0)->present), + asn_MAP_correctionPoints_r16_tag2el_3, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_correctionPoints_r16_3 = { + "correctionPoints-r16", + "correctionPoints-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_correctionPoints_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_correctionPoints_r16_3, + 2, /* Elements count */ + &asn_SPC_correctionPoints_r16_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_CorrectionPoints_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CorrectionPoints_r16, correctionPointSetID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_correctionPointSetID_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_correctionPointSetID_r16_constraint_1 + }, + 0, 0, /* No default value */ + "correctionPointSetID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_CorrectionPoints_r16, correctionPoints_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_correctionPoints_r16_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "correctionPoints-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_CorrectionPoints_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_CorrectionPoints_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* correctionPointSetID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* correctionPoints-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_CorrectionPoints_r16_specs_1 = { + sizeof(struct GNSS_SSR_CorrectionPoints_r16), + offsetof(struct GNSS_SSR_CorrectionPoints_r16, _asn_ctx), + asn_MAP_GNSS_SSR_CorrectionPoints_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_CorrectionPoints_r16 = { + "GNSS-SSR-CorrectionPoints-r16", + "GNSS-SSR-CorrectionPoints-r16", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_CorrectionPoints_r16_tags_1, + sizeof(asn_DEF_GNSS_SSR_CorrectionPoints_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_CorrectionPoints_r16_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_CorrectionPoints_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_CorrectionPoints_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_CorrectionPoints_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_CorrectionPoints_r16_1, + 2, /* Elements count */ + &asn_SPC_GNSS_SSR_CorrectionPoints_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-SSR-CorrectionPoints-r16.h b/asn.1/lpp_generated/GNSS-SSR-CorrectionPoints-r16.h similarity index 88% rename from asn.1/generated/GNSS-SSR-CorrectionPoints-r16.h rename to asn.1/lpp_generated/GNSS-SSR-CorrectionPoints-r16.h index 0b2d7db4..2e429829 100644 --- a/asn.1/generated/GNSS-SSR-CorrectionPoints-r16.h +++ b/asn.1/lpp_generated/GNSS-SSR-CorrectionPoints-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_SSR_CorrectionPoints_r16_H_ diff --git a/asn.1/lpp_generated/GNSS-SSR-CorrectionPointsReq-r16.c b/asn.1/lpp_generated/GNSS-SSR-CorrectionPointsReq-r16.c new file mode 100644 index 00000000..202b8ab1 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-CorrectionPointsReq-r16.c @@ -0,0 +1,100 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-CorrectionPointsReq-r16.h" + +static int +memb_correctionPointSetID_Req_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_correctionPointSetID_Req_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_SSR_CorrectionPointsReq_r16_1[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_CorrectionPointsReq_r16, correctionPointSetID_Req_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_correctionPointSetID_Req_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_correctionPointSetID_Req_r16_constraint_1 + }, + 0, 0, /* No default value */ + "correctionPointSetID-Req-r16" + }, +}; +static const int asn_MAP_GNSS_SSR_CorrectionPointsReq_r16_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_CorrectionPointsReq_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_CorrectionPointsReq_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* correctionPointSetID-Req-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_CorrectionPointsReq_r16_specs_1 = { + sizeof(struct GNSS_SSR_CorrectionPointsReq_r16), + offsetof(struct GNSS_SSR_CorrectionPointsReq_r16, _asn_ctx), + asn_MAP_GNSS_SSR_CorrectionPointsReq_r16_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_CorrectionPointsReq_r16_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_CorrectionPointsReq_r16 = { + "GNSS-SSR-CorrectionPointsReq-r16", + "GNSS-SSR-CorrectionPointsReq-r16", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_CorrectionPointsReq_r16_tags_1, + sizeof(asn_DEF_GNSS_SSR_CorrectionPointsReq_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_CorrectionPointsReq_r16_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_CorrectionPointsReq_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_CorrectionPointsReq_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_CorrectionPointsReq_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_CorrectionPointsReq_r16_1, + 1, /* Elements count */ + &asn_SPC_GNSS_SSR_CorrectionPointsReq_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-SSR-CorrectionPointsReq-r16.h b/asn.1/lpp_generated/GNSS-SSR-CorrectionPointsReq-r16.h similarity index 76% rename from asn.1/generated/GNSS-SSR-CorrectionPointsReq-r16.h rename to asn.1/lpp_generated/GNSS-SSR-CorrectionPointsReq-r16.h index e108c107..9bd6d81d 100644 --- a/asn.1/generated/GNSS-SSR-CorrectionPointsReq-r16.h +++ b/asn.1/lpp_generated/GNSS-SSR-CorrectionPointsReq-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_SSR_CorrectionPointsReq_r16_H_ @@ -21,7 +21,7 @@ extern "C" { /* GNSS-SSR-CorrectionPointsReq-r16 */ typedef struct GNSS_SSR_CorrectionPointsReq_r16 { - long *correctionPointSetID_Req_r16 /* OPTIONAL */; + long *correctionPointSetID_Req_r16; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/GNSS-SSR-GriddedCorrection-r16.c b/asn.1/lpp_generated/GNSS-SSR-GriddedCorrection-r16.c new file mode 100644 index 00000000..d75625ae --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-GriddedCorrection-r16.c @@ -0,0 +1,372 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-GriddedCorrection-r16.h" + +#include "SSR-GriddedCorrectionIntegrityParameters-r17.h" +static int +memb_ssrUpdateInterval_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_iod_ssr_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_troposphericDelayQualityIndicator_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 6UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_correctionPointSetID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ssrUpdateInterval_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_iod_ssr_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_troposphericDelayQualityIndicator_r16_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_correctionPointSetID_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_9[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_GriddedCorrection_r16__ext1, ssr_GriddedCorrectionIntegrityParameters_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SSR_GriddedCorrectionIntegrityParameters_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-GriddedCorrectionIntegrityParameters-r17" + }, +}; +static const int asn_MAP_ext1_oms_9[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_9[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ssr-GriddedCorrectionIntegrityParameters-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_9 = { + sizeof(struct GNSS_SSR_GriddedCorrection_r16__ext1), + offsetof(struct GNSS_SSR_GriddedCorrection_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_9, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_9, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_9 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_9, + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_9, /* Same as above */ + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_9, + 1, /* Elements count */ + &asn_SPC_ext1_specs_9 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_GriddedCorrection_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_GriddedCorrection_r16, epochTime_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SystemTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epochTime-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_GriddedCorrection_r16, ssrUpdateInterval_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ssrUpdateInterval_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ssrUpdateInterval_r16_constraint_1 + }, + 0, 0, /* No default value */ + "ssrUpdateInterval-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_GriddedCorrection_r16, iod_ssr_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_iod_ssr_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_iod_ssr_r16_constraint_1 + }, + 0, 0, /* No default value */ + "iod-ssr-r16" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_GriddedCorrection_r16, troposphericDelayQualityIndicator_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_troposphericDelayQualityIndicator_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_troposphericDelayQualityIndicator_r16_constraint_1 + }, + 0, 0, /* No default value */ + "troposphericDelayQualityIndicator-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_GriddedCorrection_r16, correctionPointSetID_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_correctionPointSetID_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_correctionPointSetID_r16_constraint_1 + }, + 0, 0, /* No default value */ + "correctionPointSetID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_GriddedCorrection_r16, gridList_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GridList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gridList-r16" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_GriddedCorrection_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext1_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_SSR_GriddedCorrection_r16_oms_1[] = { 3, 6 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_GriddedCorrection_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_GriddedCorrection_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ssrUpdateInterval-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* iod-ssr-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* troposphericDelayQualityIndicator-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* correctionPointSetID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gridList-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_GriddedCorrection_r16_specs_1 = { + sizeof(struct GNSS_SSR_GriddedCorrection_r16), + offsetof(struct GNSS_SSR_GriddedCorrection_r16, _asn_ctx), + asn_MAP_GNSS_SSR_GriddedCorrection_r16_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_GriddedCorrection_r16_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_GriddedCorrection_r16 = { + "GNSS-SSR-GriddedCorrection-r16", + "GNSS-SSR-GriddedCorrection-r16", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_GriddedCorrection_r16_tags_1, + sizeof(asn_DEF_GNSS_SSR_GriddedCorrection_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_GriddedCorrection_r16_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_GriddedCorrection_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_GriddedCorrection_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_GriddedCorrection_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_GriddedCorrection_r16_1, + 7, /* Elements count */ + &asn_SPC_GNSS_SSR_GriddedCorrection_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-GriddedCorrection-r16.h b/asn.1/lpp_generated/GNSS-SSR-GriddedCorrection-r16.h new file mode 100644 index 00000000..2b408502 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-GriddedCorrection-r16.h @@ -0,0 +1,61 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_GriddedCorrection_r16_H_ +#define _GNSS_SSR_GriddedCorrection_r16_H_ + + +#include + +/* Including external dependencies */ +#include "GNSS-SystemTime.h" +#include +#include +#include "GridList-r16.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SSR_GriddedCorrectionIntegrityParameters_r17; + +/* GNSS-SSR-GriddedCorrection-r16 */ +typedef struct GNSS_SSR_GriddedCorrection_r16 { + GNSS_SystemTime_t epochTime_r16; + long ssrUpdateInterval_r16; + long iod_ssr_r16; + BIT_STRING_t *troposphericDelayQualityIndicator_r16; /* OPTIONAL */ + long correctionPointSetID_r16; + GridList_r16_t gridList_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_SSR_GriddedCorrection_r16__ext1 { + struct SSR_GriddedCorrectionIntegrityParameters_r17 *ssr_GriddedCorrectionIntegrityParameters_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_GriddedCorrection_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_GriddedCorrection_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_GriddedCorrection_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_GriddedCorrection_r16_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_GriddedCorrection_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-GriddedCorrectionReq-r16.c b/asn.1/lpp_generated/GNSS-SSR-GriddedCorrectionReq-r16.c new file mode 100644 index 00000000..2f6aee4d --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-GriddedCorrectionReq-r16.c @@ -0,0 +1,183 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-GriddedCorrectionReq-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_griddedCorrectionIntegrityReq_r17_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_griddedCorrectionIntegrityReq_r17_value2enum_4[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_griddedCorrectionIntegrityReq_r17_enum2value_4[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_griddedCorrectionIntegrityReq_r17_specs_4 = { + asn_MAP_griddedCorrectionIntegrityReq_r17_value2enum_4, /* "tag" => N; sorted by tag */ + asn_MAP_griddedCorrectionIntegrityReq_r17_enum2value_4, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_griddedCorrectionIntegrityReq_r17_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_griddedCorrectionIntegrityReq_r17_4 = { + "griddedCorrectionIntegrityReq-r17", + "griddedCorrectionIntegrityReq-r17", + &asn_OP_NativeEnumerated, + asn_DEF_griddedCorrectionIntegrityReq_r17_tags_4, + sizeof(asn_DEF_griddedCorrectionIntegrityReq_r17_tags_4) + /sizeof(asn_DEF_griddedCorrectionIntegrityReq_r17_tags_4[0]) - 1, /* 1 */ + asn_DEF_griddedCorrectionIntegrityReq_r17_tags_4, /* Same as above */ + sizeof(asn_DEF_griddedCorrectionIntegrityReq_r17_tags_4) + /sizeof(asn_DEF_griddedCorrectionIntegrityReq_r17_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_griddedCorrectionIntegrityReq_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_griddedCorrectionIntegrityReq_r17_specs_4 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_3[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_GriddedCorrectionReq_r16__ext1, griddedCorrectionIntegrityReq_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_griddedCorrectionIntegrityReq_r17_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "griddedCorrectionIntegrityReq-r17" + }, +}; +static const int asn_MAP_ext1_oms_3[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* griddedCorrectionIntegrityReq-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_3 = { + sizeof(struct GNSS_SSR_GriddedCorrectionReq_r16__ext1), + offsetof(struct GNSS_SSR_GriddedCorrectionReq_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_3, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_3, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_3 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_3, + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_3, /* Same as above */ + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_3, + 1, /* Elements count */ + &asn_SPC_ext1_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_GriddedCorrectionReq_r16_1[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_GriddedCorrectionReq_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_ext1_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_SSR_GriddedCorrectionReq_r16_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_GriddedCorrectionReq_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_GriddedCorrectionReq_r16_specs_1 = { + sizeof(struct GNSS_SSR_GriddedCorrectionReq_r16), + offsetof(struct GNSS_SSR_GriddedCorrectionReq_r16, _asn_ctx), + asn_MAP_GNSS_SSR_GriddedCorrectionReq_r16_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_GriddedCorrectionReq_r16_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16 = { + "GNSS-SSR-GriddedCorrectionReq-r16", + "GNSS-SSR-GriddedCorrectionReq-r16", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16_tags_1, + sizeof(asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_GriddedCorrectionReq_r16_1, + 1, /* Elements count */ + &asn_SPC_GNSS_SSR_GriddedCorrectionReq_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-GriddedCorrectionReq-r16.h b/asn.1/lpp_generated/GNSS-SSR-GriddedCorrectionReq-r16.h new file mode 100644 index 00000000..e22ede3e --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-GriddedCorrectionReq-r16.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_GriddedCorrectionReq_r16_H_ +#define _GNSS_SSR_GriddedCorrectionReq_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_SSR_GriddedCorrectionReq_r16__ext1__griddedCorrectionIntegrityReq_r17 { + GNSS_SSR_GriddedCorrectionReq_r16__ext1__griddedCorrectionIntegrityReq_r17_requested = 0 +} e_GNSS_SSR_GriddedCorrectionReq_r16__ext1__griddedCorrectionIntegrityReq_r17; + +/* GNSS-SSR-GriddedCorrectionReq-r16 */ +typedef struct GNSS_SSR_GriddedCorrectionReq_r16 { + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_SSR_GriddedCorrectionReq_r16__ext1 { + long *griddedCorrectionIntegrityReq_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_GriddedCorrectionReq_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_griddedCorrectionIntegrityReq_r17_4; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_GriddedCorrectionReq_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_GriddedCorrectionReq_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_GriddedCorrectionReq_r16_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_GriddedCorrectionReq_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-GriddedCorrectionSupport-r16.c b/asn.1/lpp_generated/GNSS-SSR-GriddedCorrectionSupport-r16.c new file mode 100644 index 00000000..3eab0e94 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-GriddedCorrectionSupport-r16.c @@ -0,0 +1,183 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-GriddedCorrectionSupport-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_griddedCorrectionIntegritySup_r17_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_griddedCorrectionIntegritySup_r17_value2enum_4[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_griddedCorrectionIntegritySup_r17_enum2value_4[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_griddedCorrectionIntegritySup_r17_specs_4 = { + asn_MAP_griddedCorrectionIntegritySup_r17_value2enum_4, /* "tag" => N; sorted by tag */ + asn_MAP_griddedCorrectionIntegritySup_r17_enum2value_4, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_griddedCorrectionIntegritySup_r17_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_griddedCorrectionIntegritySup_r17_4 = { + "griddedCorrectionIntegritySup-r17", + "griddedCorrectionIntegritySup-r17", + &asn_OP_NativeEnumerated, + asn_DEF_griddedCorrectionIntegritySup_r17_tags_4, + sizeof(asn_DEF_griddedCorrectionIntegritySup_r17_tags_4) + /sizeof(asn_DEF_griddedCorrectionIntegritySup_r17_tags_4[0]) - 1, /* 1 */ + asn_DEF_griddedCorrectionIntegritySup_r17_tags_4, /* Same as above */ + sizeof(asn_DEF_griddedCorrectionIntegritySup_r17_tags_4) + /sizeof(asn_DEF_griddedCorrectionIntegritySup_r17_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_griddedCorrectionIntegritySup_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_griddedCorrectionIntegritySup_r17_specs_4 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_3[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_GriddedCorrectionSupport_r16__ext1, griddedCorrectionIntegritySup_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_griddedCorrectionIntegritySup_r17_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "griddedCorrectionIntegritySup-r17" + }, +}; +static const int asn_MAP_ext1_oms_3[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* griddedCorrectionIntegritySup-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_3 = { + sizeof(struct GNSS_SSR_GriddedCorrectionSupport_r16__ext1), + offsetof(struct GNSS_SSR_GriddedCorrectionSupport_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_3, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_3, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_3 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_3, + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_3, /* Same as above */ + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_3, + 1, /* Elements count */ + &asn_SPC_ext1_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_GriddedCorrectionSupport_r16_1[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_GriddedCorrectionSupport_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_ext1_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_SSR_GriddedCorrectionSupport_r16_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_GriddedCorrectionSupport_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_GriddedCorrectionSupport_r16_specs_1 = { + sizeof(struct GNSS_SSR_GriddedCorrectionSupport_r16), + offsetof(struct GNSS_SSR_GriddedCorrectionSupport_r16, _asn_ctx), + asn_MAP_GNSS_SSR_GriddedCorrectionSupport_r16_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_GriddedCorrectionSupport_r16_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16 = { + "GNSS-SSR-GriddedCorrectionSupport-r16", + "GNSS-SSR-GriddedCorrectionSupport-r16", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16_tags_1, + sizeof(asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_GriddedCorrectionSupport_r16_1, + 1, /* Elements count */ + &asn_SPC_GNSS_SSR_GriddedCorrectionSupport_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-GriddedCorrectionSupport-r16.h b/asn.1/lpp_generated/GNSS-SSR-GriddedCorrectionSupport-r16.h new file mode 100644 index 00000000..66bb6c61 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-GriddedCorrectionSupport-r16.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_GriddedCorrectionSupport_r16_H_ +#define _GNSS_SSR_GriddedCorrectionSupport_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_SSR_GriddedCorrectionSupport_r16__ext1__griddedCorrectionIntegritySup_r17 { + GNSS_SSR_GriddedCorrectionSupport_r16__ext1__griddedCorrectionIntegritySup_r17_supported = 0 +} e_GNSS_SSR_GriddedCorrectionSupport_r16__ext1__griddedCorrectionIntegritySup_r17; + +/* GNSS-SSR-GriddedCorrectionSupport-r16 */ +typedef struct GNSS_SSR_GriddedCorrectionSupport_r16 { + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_SSR_GriddedCorrectionSupport_r16__ext1 { + long *griddedCorrectionIntegritySup_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_GriddedCorrectionSupport_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_griddedCorrectionIntegritySup_r17_4; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_GriddedCorrectionSupport_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_GriddedCorrectionSupport_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_GriddedCorrectionSupport_r16_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_GriddedCorrectionSupport_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-IOD-Update-r18.c b/asn.1/lpp_generated/GNSS-SSR-IOD-Update-r18.c new file mode 100644 index 00000000..506bdefd --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-IOD-Update-r18.c @@ -0,0 +1,216 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-IOD-Update-r18.h" + +static int +memb_ssrUpdateInterval_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_iod_ssr_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_iod_ssr_PCVResiduals_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 64L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ssrUpdateInterval_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_iod_ssr_r18_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_iod_ssr_PCVResiduals_r18_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 64 } /* (0..64) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_SSR_IOD_Update_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_IOD_Update_r18, epochTime_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SystemTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epochTime-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_IOD_Update_r18, ssrUpdateInterval_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ssrUpdateInterval_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ssrUpdateInterval_r18_constraint_1 + }, + 0, 0, /* No default value */ + "ssrUpdateInterval-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_IOD_Update_r18, iod_ssr_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_iod_ssr_r18_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_iod_ssr_r18_constraint_1 + }, + 0, 0, /* No default value */ + "iod-ssr-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_IOD_Update_r18, iod_ssr_PCVResiduals_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_iod_ssr_PCVResiduals_r18_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_iod_ssr_PCVResiduals_r18_constraint_1 + }, + 0, 0, /* No default value */ + "iod-ssr-PCVResiduals-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_IOD_Update_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_IOD_Update_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ssrUpdateInterval-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* iod-ssr-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iod-ssr-PCVResiduals-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_IOD_Update_r18_specs_1 = { + sizeof(struct GNSS_SSR_IOD_Update_r18), + offsetof(struct GNSS_SSR_IOD_Update_r18, _asn_ctx), + asn_MAP_GNSS_SSR_IOD_Update_r18_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_IOD_Update_r18 = { + "GNSS-SSR-IOD-Update-r18", + "GNSS-SSR-IOD-Update-r18", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_IOD_Update_r18_tags_1, + sizeof(asn_DEF_GNSS_SSR_IOD_Update_r18_tags_1) + /sizeof(asn_DEF_GNSS_SSR_IOD_Update_r18_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_IOD_Update_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_IOD_Update_r18_tags_1) + /sizeof(asn_DEF_GNSS_SSR_IOD_Update_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_IOD_Update_r18_1, + 4, /* Elements count */ + &asn_SPC_GNSS_SSR_IOD_Update_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-IOD-Update-r18.h b/asn.1/lpp_generated/GNSS-SSR-IOD-Update-r18.h new file mode 100644 index 00000000..f3f61024 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-IOD-Update-r18.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_IOD_Update_r18_H_ +#define _GNSS_SSR_IOD_Update_r18_H_ + + +#include + +/* Including external dependencies */ +#include "GNSS-SystemTime.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-SSR-IOD-Update-r18 */ +typedef struct GNSS_SSR_IOD_Update_r18 { + GNSS_SystemTime_t epochTime_r18; + long ssrUpdateInterval_r18; + long iod_ssr_r18; + long iod_ssr_PCVResiduals_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_IOD_Update_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_IOD_Update_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_IOD_Update_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_IOD_Update_r18_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_IOD_Update_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-IOD-UpdateReq-r18.c b/asn.1/lpp_generated/GNSS-SSR-IOD-UpdateReq-r18.c new file mode 100644 index 00000000..4d5ba2e4 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-IOD-UpdateReq-r18.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-IOD-UpdateReq-r18.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_IOD_UpdateReq_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_IOD_UpdateReq_r18_specs_1 = { + sizeof(struct GNSS_SSR_IOD_UpdateReq_r18), + offsetof(struct GNSS_SSR_IOD_UpdateReq_r18, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_IOD_UpdateReq_r18 = { + "GNSS-SSR-IOD-UpdateReq-r18", + "GNSS-SSR-IOD-UpdateReq-r18", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_IOD_UpdateReq_r18_tags_1, + sizeof(asn_DEF_GNSS_SSR_IOD_UpdateReq_r18_tags_1) + /sizeof(asn_DEF_GNSS_SSR_IOD_UpdateReq_r18_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_IOD_UpdateReq_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_IOD_UpdateReq_r18_tags_1) + /sizeof(asn_DEF_GNSS_SSR_IOD_UpdateReq_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_SSR_IOD_UpdateReq_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-IOD-UpdateReq-r18.h b/asn.1/lpp_generated/GNSS-SSR-IOD-UpdateReq-r18.h new file mode 100644 index 00000000..71db5649 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-IOD-UpdateReq-r18.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_IOD_UpdateReq_r18_H_ +#define _GNSS_SSR_IOD_UpdateReq_r18_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-SSR-IOD-UpdateReq-r18 */ +typedef struct GNSS_SSR_IOD_UpdateReq_r18 { + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_IOD_UpdateReq_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_IOD_UpdateReq_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_IOD_UpdateReq_r18_specs_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_IOD_UpdateReq_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-IOD-UpdateSupport-r18.c b/asn.1/lpp_generated/GNSS-SSR-IOD-UpdateSupport-r18.c new file mode 100644 index 00000000..2fc59c32 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-IOD-UpdateSupport-r18.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-IOD-UpdateSupport-r18.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_IOD_UpdateSupport_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_IOD_UpdateSupport_r18_specs_1 = { + sizeof(struct GNSS_SSR_IOD_UpdateSupport_r18), + offsetof(struct GNSS_SSR_IOD_UpdateSupport_r18, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_IOD_UpdateSupport_r18 = { + "GNSS-SSR-IOD-UpdateSupport-r18", + "GNSS-SSR-IOD-UpdateSupport-r18", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_IOD_UpdateSupport_r18_tags_1, + sizeof(asn_DEF_GNSS_SSR_IOD_UpdateSupport_r18_tags_1) + /sizeof(asn_DEF_GNSS_SSR_IOD_UpdateSupport_r18_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_IOD_UpdateSupport_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_IOD_UpdateSupport_r18_tags_1) + /sizeof(asn_DEF_GNSS_SSR_IOD_UpdateSupport_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_SSR_IOD_UpdateSupport_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-IOD-UpdateSupport-r18.h b/asn.1/lpp_generated/GNSS-SSR-IOD-UpdateSupport-r18.h new file mode 100644 index 00000000..70a4488a --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-IOD-UpdateSupport-r18.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_IOD_UpdateSupport_r18_H_ +#define _GNSS_SSR_IOD_UpdateSupport_r18_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-SSR-IOD-UpdateSupport-r18 */ +typedef struct GNSS_SSR_IOD_UpdateSupport_r18 { + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_IOD_UpdateSupport_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_IOD_UpdateSupport_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_IOD_UpdateSupport_r18_specs_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_IOD_UpdateSupport_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-ListOfCorrectionPoints-r16.c b/asn.1/lpp_generated/GNSS-SSR-ListOfCorrectionPoints-r16.c new file mode 100644 index 00000000..3d3aa085 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-ListOfCorrectionPoints-r16.c @@ -0,0 +1,260 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-ListOfCorrectionPoints-r16.h" + +#include "RelativeLocationElement-r16.h" +static int +memb_referencePointLatitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16384L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_referencePointLongitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_relativeLocationsList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size <= 63UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_relativeLocationsList_r16_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (SIZE(0..63)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_referencePointLatitude_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_referencePointLongitude_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_relativeLocationsList_r16_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (SIZE(0..63)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_relativeLocationsList_r16_4[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_RelativeLocationElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_relativeLocationsList_r16_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_relativeLocationsList_r16_specs_4 = { + sizeof(struct GNSS_SSR_ListOfCorrectionPoints_r16__relativeLocationsList_r16), + offsetof(struct GNSS_SSR_ListOfCorrectionPoints_r16__relativeLocationsList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_relativeLocationsList_r16_4 = { + "relativeLocationsList-r16", + "relativeLocationsList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_relativeLocationsList_r16_tags_4, + sizeof(asn_DEF_relativeLocationsList_r16_tags_4) + /sizeof(asn_DEF_relativeLocationsList_r16_tags_4[0]) - 1, /* 1 */ + asn_DEF_relativeLocationsList_r16_tags_4, /* Same as above */ + sizeof(asn_DEF_relativeLocationsList_r16_tags_4) + /sizeof(asn_DEF_relativeLocationsList_r16_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_relativeLocationsList_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_relativeLocationsList_r16_4, + 1, /* Single element */ + &asn_SPC_relativeLocationsList_r16_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_ListOfCorrectionPoints_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ListOfCorrectionPoints_r16, referencePointLatitude_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_referencePointLatitude_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_referencePointLatitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "referencePointLatitude-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ListOfCorrectionPoints_r16, referencePointLongitude_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_referencePointLongitude_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_referencePointLongitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "referencePointLongitude-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_ListOfCorrectionPoints_r16, relativeLocationsList_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_relativeLocationsList_r16_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_relativeLocationsList_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_relativeLocationsList_r16_constraint_1 + }, + 0, 0, /* No default value */ + "relativeLocationsList-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_ListOfCorrectionPoints_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_ListOfCorrectionPoints_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referencePointLatitude-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* referencePointLongitude-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* relativeLocationsList-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_ListOfCorrectionPoints_r16_specs_1 = { + sizeof(struct GNSS_SSR_ListOfCorrectionPoints_r16), + offsetof(struct GNSS_SSR_ListOfCorrectionPoints_r16, _asn_ctx), + asn_MAP_GNSS_SSR_ListOfCorrectionPoints_r16_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_ListOfCorrectionPoints_r16 = { + "GNSS-SSR-ListOfCorrectionPoints-r16", + "GNSS-SSR-ListOfCorrectionPoints-r16", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_ListOfCorrectionPoints_r16_tags_1, + sizeof(asn_DEF_GNSS_SSR_ListOfCorrectionPoints_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_ListOfCorrectionPoints_r16_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_ListOfCorrectionPoints_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_ListOfCorrectionPoints_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_ListOfCorrectionPoints_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_ListOfCorrectionPoints_r16_1, + 3, /* Elements count */ + &asn_SPC_GNSS_SSR_ListOfCorrectionPoints_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-SSR-ListOfCorrectionPoints-r16.h b/asn.1/lpp_generated/GNSS-SSR-ListOfCorrectionPoints-r16.h similarity index 79% rename from asn.1/generated/GNSS-SSR-ListOfCorrectionPoints-r16.h rename to asn.1/lpp_generated/GNSS-SSR-ListOfCorrectionPoints-r16.h index 257813c2..850d465f 100644 --- a/asn.1/generated/GNSS-SSR-ListOfCorrectionPoints-r16.h +++ b/asn.1/lpp_generated/GNSS-SSR-ListOfCorrectionPoints-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_SSR_ListOfCorrectionPoints_r16_H_ @@ -22,14 +22,14 @@ extern "C" { #endif /* Forward declarations */ -struct RelativeLocation; +struct RelativeLocationElement_r16; /* GNSS-SSR-ListOfCorrectionPoints-r16 */ typedef struct GNSS_SSR_ListOfCorrectionPoints_r16 { long referencePointLatitude_r16; long referencePointLongitude_r16; struct GNSS_SSR_ListOfCorrectionPoints_r16__relativeLocationsList_r16 { - A_SEQUENCE_OF(struct RelativeLocation) list; + A_SEQUENCE_OF(struct RelativeLocationElement_r16) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -52,8 +52,5 @@ extern asn_TYPE_member_t asn_MBR_GNSS_SSR_ListOfCorrectionPoints_r16_1[3]; } #endif -/* Referred external types */ -#include "RelativeLocation.h" - #endif /* _GNSS_SSR_ListOfCorrectionPoints_r16_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-SSR-OrbitCorrections-r15.c b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrections-r15.c new file mode 100644 index 00000000..20b2e263 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrections-r15.c @@ -0,0 +1,342 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-OrbitCorrections-r15.h" + +#include "ORBIT-IntegrityParameters-r17.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_ssrUpdateInterval_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_iod_ssr_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_satelliteReferenceDatum_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ssrUpdateInterval_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_iod_ssr_r15_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_satelliteReferenceDatum_r15_value2enum_4[] = { + { 0, 4, "itrf" }, + { 1, 8, "regional" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_satelliteReferenceDatum_r15_enum2value_4[] = { + 0, /* itrf(0) */ + 1 /* regional(1) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_satelliteReferenceDatum_r15_specs_4 = { + asn_MAP_satelliteReferenceDatum_r15_value2enum_4, /* "tag" => N; sorted by tag */ + asn_MAP_satelliteReferenceDatum_r15_enum2value_4, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_satelliteReferenceDatum_r15_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_satelliteReferenceDatum_r15_4 = { + "satelliteReferenceDatum-r15", + "satelliteReferenceDatum-r15", + &asn_OP_NativeEnumerated, + asn_DEF_satelliteReferenceDatum_r15_tags_4, + sizeof(asn_DEF_satelliteReferenceDatum_r15_tags_4) + /sizeof(asn_DEF_satelliteReferenceDatum_r15_tags_4[0]) - 1, /* 1 */ + asn_DEF_satelliteReferenceDatum_r15_tags_4, /* Same as above */ + sizeof(asn_DEF_satelliteReferenceDatum_r15_tags_4) + /sizeof(asn_DEF_satelliteReferenceDatum_r15_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_satelliteReferenceDatum_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_satelliteReferenceDatum_r15_specs_4 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_11[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_OrbitCorrections_r15__ext1, orbit_IntegrityParameters_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ORBIT_IntegrityParameters_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "orbit-IntegrityParameters-r17" + }, +}; +static const int asn_MAP_ext1_oms_11[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* orbit-IntegrityParameters-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_11 = { + sizeof(struct GNSS_SSR_OrbitCorrections_r15__ext1), + offsetof(struct GNSS_SSR_OrbitCorrections_r15__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_11, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_11, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_11 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_11, + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_11, /* Same as above */ + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_11, + 1, /* Elements count */ + &asn_SPC_ext1_specs_11 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_OrbitCorrections_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_OrbitCorrections_r15, epochTime_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SystemTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epochTime-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_OrbitCorrections_r15, ssrUpdateInterval_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ssrUpdateInterval_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ssrUpdateInterval_r15_constraint_1 + }, + 0, 0, /* No default value */ + "ssrUpdateInterval-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_OrbitCorrections_r15, satelliteReferenceDatum_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_satelliteReferenceDatum_r15_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "satelliteReferenceDatum-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_OrbitCorrections_r15, iod_ssr_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_iod_ssr_r15_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_iod_ssr_r15_constraint_1 + }, + 0, 0, /* No default value */ + "iod-ssr-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_OrbitCorrections_r15, ssr_OrbitCorrectionList_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SSR_OrbitCorrectionList_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-OrbitCorrectionList-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_OrbitCorrections_r15, ext1), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext1_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_SSR_OrbitCorrections_r15_oms_1[] = { 5 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_OrbitCorrections_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_OrbitCorrections_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ssrUpdateInterval-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* satelliteReferenceDatum-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* iod-ssr-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ssr-OrbitCorrectionList-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_OrbitCorrections_r15_specs_1 = { + sizeof(struct GNSS_SSR_OrbitCorrections_r15), + offsetof(struct GNSS_SSR_OrbitCorrections_r15, _asn_ctx), + asn_MAP_GNSS_SSR_OrbitCorrections_r15_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_OrbitCorrections_r15_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_OrbitCorrections_r15 = { + "GNSS-SSR-OrbitCorrections-r15", + "GNSS-SSR-OrbitCorrections-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_OrbitCorrections_r15_tags_1, + sizeof(asn_DEF_GNSS_SSR_OrbitCorrections_r15_tags_1) + /sizeof(asn_DEF_GNSS_SSR_OrbitCorrections_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_OrbitCorrections_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_OrbitCorrections_r15_tags_1) + /sizeof(asn_DEF_GNSS_SSR_OrbitCorrections_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_OrbitCorrections_r15_1, + 6, /* Elements count */ + &asn_SPC_GNSS_SSR_OrbitCorrections_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-SSR-OrbitCorrections-r15.h b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrections-r15.h similarity index 75% rename from asn.1/generated/GNSS-SSR-OrbitCorrections-r15.h rename to asn.1/lpp_generated/GNSS-SSR-OrbitCorrections-r15.h index c966763d..b9cb47aa 100644 --- a/asn.1/generated/GNSS-SSR-OrbitCorrections-r15.h +++ b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrections-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_SSR_OrbitCorrections_r15_H_ @@ -31,6 +31,9 @@ typedef enum GNSS_SSR_OrbitCorrections_r15__satelliteReferenceDatum_r15 { */ } e_GNSS_SSR_OrbitCorrections_r15__satelliteReferenceDatum_r15; +/* Forward declarations */ +struct ORBIT_IntegrityParameters_r17; + /* GNSS-SSR-OrbitCorrections-r15 */ typedef struct GNSS_SSR_OrbitCorrections_r15 { GNSS_SystemTime_t epochTime_r15; @@ -42,6 +45,12 @@ typedef struct GNSS_SSR_OrbitCorrections_r15 { * This type is extensible, * possible extensions are below. */ + struct GNSS_SSR_OrbitCorrections_r15__ext1 { + struct ORBIT_IntegrityParameters_r17 *orbit_IntegrityParameters_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -51,7 +60,7 @@ typedef struct GNSS_SSR_OrbitCorrections_r15 { /* extern asn_TYPE_descriptor_t asn_DEF_satelliteReferenceDatum_r15_4; // (Use -fall-defs-global to expose) */ extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_OrbitCorrections_r15; extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_OrbitCorrections_r15_specs_1; -extern asn_TYPE_member_t asn_MBR_GNSS_SSR_OrbitCorrections_r15_1[5]; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_OrbitCorrections_r15_1[6]; #ifdef __cplusplus } diff --git a/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsReq-r15.c b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsReq-r15.c new file mode 100644 index 00000000..b23c0b00 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsReq-r15.c @@ -0,0 +1,186 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-OrbitCorrectionsReq-r15.h" + +#include "GNSS-NavListInfo-r15.h" +static int +memb_orbit_IntegrityReq_r17_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_orbit_IntegrityReq_r17_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_4[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_OrbitCorrectionsReq_r15__ext1, orbit_IntegrityReq_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_orbit_IntegrityReq_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_orbit_IntegrityReq_r17_constraint_4 + }, + 0, 0, /* No default value */ + "orbit-IntegrityReq-r17" + }, +}; +static const int asn_MAP_ext1_oms_4[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* orbit-IntegrityReq-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { + sizeof(struct GNSS_SSR_OrbitCorrectionsReq_r15__ext1), + offsetof(struct GNSS_SSR_OrbitCorrectionsReq_r15__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_4, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_4, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_4 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_4, + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_4, /* Same as above */ + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_4, + 1, /* Elements count */ + &asn_SPC_ext1_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_OrbitCorrectionsReq_r15_1[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_SSR_OrbitCorrectionsReq_r15, storedNavList_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_NavListInfo_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "storedNavList-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_OrbitCorrectionsReq_r15, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_SSR_OrbitCorrectionsReq_r15_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_OrbitCorrectionsReq_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* storedNavList-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_OrbitCorrectionsReq_r15_specs_1 = { + sizeof(struct GNSS_SSR_OrbitCorrectionsReq_r15), + offsetof(struct GNSS_SSR_OrbitCorrectionsReq_r15, _asn_ctx), + asn_MAP_GNSS_SSR_OrbitCorrectionsReq_r15_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_OrbitCorrectionsReq_r15_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15 = { + "GNSS-SSR-OrbitCorrectionsReq-r15", + "GNSS-SSR-OrbitCorrectionsReq-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15_tags_1, + sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15_tags_1) + /sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_OrbitCorrectionsReq_r15_1, + 2, /* Elements count */ + &asn_SPC_GNSS_SSR_OrbitCorrectionsReq_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsReq-r15.h b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsReq-r15.h new file mode 100644 index 00000000..63925a51 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsReq-r15.h @@ -0,0 +1,58 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_OrbitCorrectionsReq_r15_H_ +#define _GNSS_SSR_OrbitCorrectionsReq_r15_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_SSR_OrbitCorrectionsReq_r15__ext1__orbit_IntegrityReq_r17 { + GNSS_SSR_OrbitCorrectionsReq_r15__ext1__orbit_IntegrityReq_r17_correlationTimeReq = 0 +} e_GNSS_SSR_OrbitCorrectionsReq_r15__ext1__orbit_IntegrityReq_r17; + +/* Forward declarations */ +struct GNSS_NavListInfo_r15; + +/* GNSS-SSR-OrbitCorrectionsReq-r15 */ +typedef struct GNSS_SSR_OrbitCorrectionsReq_r15 { + struct GNSS_NavListInfo_r15 *storedNavList_r15; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_SSR_OrbitCorrectionsReq_r15__ext1 { + BIT_STRING_t *orbit_IntegrityReq_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_OrbitCorrectionsReq_r15_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_OrbitCorrectionsReq_r15_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_OrbitCorrectionsReq_r15_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_OrbitCorrectionsReq_r15_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2-r17.c b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2-r17.c new file mode 100644 index 00000000..3e43f7f4 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2-r17.c @@ -0,0 +1,140 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-OrbitCorrectionsSet2-r17.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_refEph_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_refEph_r17_value2enum_2[] = { + { 0, 3, "b1c" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_refEph_r17_enum2value_2[] = { + 0 /* b1c(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_refEph_r17_specs_2 = { + asn_MAP_refEph_r17_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_refEph_r17_enum2value_2, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_refEph_r17_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_refEph_r17_2 = { + "refEph-r17", + "refEph-r17", + &asn_OP_NativeEnumerated, + asn_DEF_refEph_r17_tags_2, + sizeof(asn_DEF_refEph_r17_tags_2) + /sizeof(asn_DEF_refEph_r17_tags_2[0]) - 1, /* 1 */ + asn_DEF_refEph_r17_tags_2, /* Same as above */ + sizeof(asn_DEF_refEph_r17_tags_2) + /sizeof(asn_DEF_refEph_r17_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_refEph_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_refEph_r17_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_OrbitCorrectionsSet2_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_OrbitCorrectionsSet2_r17, refEph_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_refEph_r17_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "refEph-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_OrbitCorrectionsSet2_r17, gnss_SSR_OrbitCorrections_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_OrbitCorrections_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-OrbitCorrections-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_OrbitCorrectionsSet2_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_OrbitCorrectionsSet2_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refEph-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-SSR-OrbitCorrections-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_OrbitCorrectionsSet2_r17_specs_1 = { + sizeof(struct GNSS_SSR_OrbitCorrectionsSet2_r17), + offsetof(struct GNSS_SSR_OrbitCorrectionsSet2_r17, _asn_ctx), + asn_MAP_GNSS_SSR_OrbitCorrectionsSet2_r17_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_OrbitCorrectionsSet2_r17 = { + "GNSS-SSR-OrbitCorrectionsSet2-r17", + "GNSS-SSR-OrbitCorrectionsSet2-r17", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_OrbitCorrectionsSet2_r17_tags_1, + sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSet2_r17_tags_1) + /sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSet2_r17_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_OrbitCorrectionsSet2_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSet2_r17_tags_1) + /sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSet2_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_OrbitCorrectionsSet2_r17_1, + 2, /* Elements count */ + &asn_SPC_GNSS_SSR_OrbitCorrectionsSet2_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2-r17.h b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2-r17.h new file mode 100644 index 00000000..b568932c --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2-r17.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_OrbitCorrectionsSet2_r17_H_ +#define _GNSS_SSR_OrbitCorrectionsSet2_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include "GNSS-SSR-OrbitCorrections-r15.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_SSR_OrbitCorrectionsSet2_r17__refEph_r17 { + GNSS_SSR_OrbitCorrectionsSet2_r17__refEph_r17_b1c = 0 + /* + * Enumeration is extensible + */ +} e_GNSS_SSR_OrbitCorrectionsSet2_r17__refEph_r17; + +/* GNSS-SSR-OrbitCorrectionsSet2-r17 */ +typedef struct GNSS_SSR_OrbitCorrectionsSet2_r17 { + long refEph_r17; + GNSS_SSR_OrbitCorrections_r15_t gnss_SSR_OrbitCorrections_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_OrbitCorrectionsSet2_r17_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_refEph_r17_2; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_OrbitCorrectionsSet2_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_OrbitCorrectionsSet2_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_OrbitCorrectionsSet2_r17_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_OrbitCorrectionsSet2_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2Req-r17.c b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2Req-r17.c new file mode 100644 index 00000000..575ca9b6 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2Req-r17.c @@ -0,0 +1,143 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-OrbitCorrectionsSet2Req-r17.h" + +#include "GNSS-SSR-OrbitCorrectionsReq-r15.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_refEphReq_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_refEphReq_r17_value2enum_2[] = { + { 0, 3, "b1c" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_refEphReq_r17_enum2value_2[] = { + 0 /* b1c(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_refEphReq_r17_specs_2 = { + asn_MAP_refEphReq_r17_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_refEphReq_r17_enum2value_2, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_refEphReq_r17_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_refEphReq_r17_2 = { + "refEphReq-r17", + "refEphReq-r17", + &asn_OP_NativeEnumerated, + asn_DEF_refEphReq_r17_tags_2, + sizeof(asn_DEF_refEphReq_r17_tags_2) + /sizeof(asn_DEF_refEphReq_r17_tags_2[0]) - 1, /* 1 */ + asn_DEF_refEphReq_r17_tags_2, /* Same as above */ + sizeof(asn_DEF_refEphReq_r17_tags_2) + /sizeof(asn_DEF_refEphReq_r17_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_refEphReq_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_refEphReq_r17_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_OrbitCorrectionsSet2Req_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_OrbitCorrectionsSet2Req_r17, refEphReq_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_refEphReq_r17_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "refEphReq-r17" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_OrbitCorrectionsSet2Req_r17, gnss_SSR_OrbitCorrectionsSet2Req_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_OrbitCorrectionsReq_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-OrbitCorrectionsSet2Req-r17" + }, +}; +static const int asn_MAP_GNSS_SSR_OrbitCorrectionsSet2Req_r17_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Req_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_OrbitCorrectionsSet2Req_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refEphReq-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-SSR-OrbitCorrectionsSet2Req-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_OrbitCorrectionsSet2Req_r17_specs_1 = { + sizeof(struct GNSS_SSR_OrbitCorrectionsSet2Req_r17), + offsetof(struct GNSS_SSR_OrbitCorrectionsSet2Req_r17, _asn_ctx), + asn_MAP_GNSS_SSR_OrbitCorrectionsSet2Req_r17_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_OrbitCorrectionsSet2Req_r17_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Req_r17 = { + "GNSS-SSR-OrbitCorrectionsSet2Req-r17", + "GNSS-SSR-OrbitCorrectionsSet2Req-r17", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Req_r17_tags_1, + sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Req_r17_tags_1) + /sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Req_r17_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Req_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Req_r17_tags_1) + /sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Req_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_OrbitCorrectionsSet2Req_r17_1, + 2, /* Elements count */ + &asn_SPC_GNSS_SSR_OrbitCorrectionsSet2Req_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2Req-r17.h b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2Req-r17.h new file mode 100644 index 00000000..80d358ea --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2Req-r17.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_OrbitCorrectionsSet2Req_r17_H_ +#define _GNSS_SSR_OrbitCorrectionsSet2Req_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_SSR_OrbitCorrectionsSet2Req_r17__refEphReq_r17 { + GNSS_SSR_OrbitCorrectionsSet2Req_r17__refEphReq_r17_b1c = 0 + /* + * Enumeration is extensible + */ +} e_GNSS_SSR_OrbitCorrectionsSet2Req_r17__refEphReq_r17; + +/* Forward declarations */ +struct GNSS_SSR_OrbitCorrectionsReq_r15; + +/* GNSS-SSR-OrbitCorrectionsSet2Req-r17 */ +typedef struct GNSS_SSR_OrbitCorrectionsSet2Req_r17 { + long refEphReq_r17; + struct GNSS_SSR_OrbitCorrectionsReq_r15 *gnss_SSR_OrbitCorrectionsSet2Req_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_OrbitCorrectionsSet2Req_r17_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_refEphReq_r17_2; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Req_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_OrbitCorrectionsSet2Req_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_OrbitCorrectionsSet2Req_r17_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_OrbitCorrectionsSet2Req_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2Support-r17.c b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2Support-r17.c new file mode 100644 index 00000000..06db3550 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2Support-r17.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-OrbitCorrectionsSet2Support-r17.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Support_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_OrbitCorrectionsSet2Support_r17_specs_1 = { + sizeof(struct GNSS_SSR_OrbitCorrectionsSet2Support_r17), + offsetof(struct GNSS_SSR_OrbitCorrectionsSet2Support_r17, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Support_r17 = { + "GNSS-SSR-OrbitCorrectionsSet2Support-r17", + "GNSS-SSR-OrbitCorrectionsSet2Support-r17", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Support_r17_tags_1, + sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Support_r17_tags_1) + /sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Support_r17_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Support_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Support_r17_tags_1) + /sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Support_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_SSR_OrbitCorrectionsSet2Support_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2Support-r17.h b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2Support-r17.h new file mode 100644 index 00000000..e159d9d5 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSet2Support-r17.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_OrbitCorrectionsSet2Support_r17_H_ +#define _GNSS_SSR_OrbitCorrectionsSet2Support_r17_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-SSR-OrbitCorrectionsSet2Support-r17 */ +typedef struct GNSS_SSR_OrbitCorrectionsSet2Support_r17 { + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_OrbitCorrectionsSet2Support_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_OrbitCorrectionsSet2Support_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_OrbitCorrectionsSet2Support_r17_specs_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_OrbitCorrectionsSet2Support_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSupport-r15.c b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSupport-r15.c new file mode 100644 index 00000000..df54feed --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSupport-r15.c @@ -0,0 +1,167 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-OrbitCorrectionsSupport-r15.h" + +static int +memb_orbit_IntegritySup_r17_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_orbit_IntegritySup_r17_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_3[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_OrbitCorrectionsSupport_r15__ext1, orbit_IntegritySup_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_orbit_IntegritySup_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_orbit_IntegritySup_r17_constraint_3 + }, + 0, 0, /* No default value */ + "orbit-IntegritySup-r17" + }, +}; +static const int asn_MAP_ext1_oms_3[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* orbit-IntegritySup-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_3 = { + sizeof(struct GNSS_SSR_OrbitCorrectionsSupport_r15__ext1), + offsetof(struct GNSS_SSR_OrbitCorrectionsSupport_r15__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_3, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_3, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_3 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_3, + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_3, /* Same as above */ + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_3, + 1, /* Elements count */ + &asn_SPC_ext1_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_OrbitCorrectionsSupport_r15_1[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_OrbitCorrectionsSupport_r15, ext1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_ext1_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_SSR_OrbitCorrectionsSupport_r15_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_OrbitCorrectionsSupport_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_OrbitCorrectionsSupport_r15_specs_1 = { + sizeof(struct GNSS_SSR_OrbitCorrectionsSupport_r15), + offsetof(struct GNSS_SSR_OrbitCorrectionsSupport_r15, _asn_ctx), + asn_MAP_GNSS_SSR_OrbitCorrectionsSupport_r15_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_OrbitCorrectionsSupport_r15_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15 = { + "GNSS-SSR-OrbitCorrectionsSupport-r15", + "GNSS-SSR-OrbitCorrectionsSupport-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15_tags_1, + sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15_tags_1) + /sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15_tags_1) + /sizeof(asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_OrbitCorrectionsSupport_r15_1, + 1, /* Elements count */ + &asn_SPC_GNSS_SSR_OrbitCorrectionsSupport_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSupport-r15.h b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSupport-r15.h new file mode 100644 index 00000000..6995a575 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-OrbitCorrectionsSupport-r15.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_OrbitCorrectionsSupport_r15_H_ +#define _GNSS_SSR_OrbitCorrectionsSupport_r15_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_SSR_OrbitCorrectionsSupport_r15__ext1__orbit_IntegritySup_r17 { + GNSS_SSR_OrbitCorrectionsSupport_r15__ext1__orbit_IntegritySup_r17_correlationTimeSup = 0 +} e_GNSS_SSR_OrbitCorrectionsSupport_r15__ext1__orbit_IntegritySup_r17; + +/* GNSS-SSR-OrbitCorrectionsSupport-r15 */ +typedef struct GNSS_SSR_OrbitCorrectionsSupport_r15 { + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_SSR_OrbitCorrectionsSupport_r15__ext1 { + BIT_STRING_t *orbit_IntegritySup_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_OrbitCorrectionsSupport_r15_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_OrbitCorrectionsSupport_r15; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_OrbitCorrectionsSupport_r15_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_OrbitCorrectionsSupport_r15_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_OrbitCorrectionsSupport_r15_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-PhaseBias-r16.c b/asn.1/lpp_generated/GNSS-SSR-PhaseBias-r16.c new file mode 100644 index 00000000..affd97c4 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-PhaseBias-r16.c @@ -0,0 +1,184 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-PhaseBias-r16.h" + +static int +memb_ssrUpdateInterval_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_iod_ssr_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ssrUpdateInterval_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_iod_ssr_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_SSR_PhaseBias_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_PhaseBias_r16, epochTime_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SystemTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epochTime-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_PhaseBias_r16, ssrUpdateInterval_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ssrUpdateInterval_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ssrUpdateInterval_r16_constraint_1 + }, + 0, 0, /* No default value */ + "ssrUpdateInterval-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_PhaseBias_r16, iod_ssr_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_iod_ssr_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_iod_ssr_r16_constraint_1 + }, + 0, 0, /* No default value */ + "iod-ssr-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_PhaseBias_r16, ssr_PhaseBiasSatList_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SSR_PhaseBiasSatList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-PhaseBiasSatList-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_PhaseBias_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_PhaseBias_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ssrUpdateInterval-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* iod-ssr-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ssr-PhaseBiasSatList-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_PhaseBias_r16_specs_1 = { + sizeof(struct GNSS_SSR_PhaseBias_r16), + offsetof(struct GNSS_SSR_PhaseBias_r16, _asn_ctx), + asn_MAP_GNSS_SSR_PhaseBias_r16_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_PhaseBias_r16 = { + "GNSS-SSR-PhaseBias-r16", + "GNSS-SSR-PhaseBias-r16", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_PhaseBias_r16_tags_1, + sizeof(asn_DEF_GNSS_SSR_PhaseBias_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_PhaseBias_r16_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_PhaseBias_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_PhaseBias_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_PhaseBias_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_PhaseBias_r16_1, + 4, /* Elements count */ + &asn_SPC_GNSS_SSR_PhaseBias_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-SSR-PhaseBias-r16.h b/asn.1/lpp_generated/GNSS-SSR-PhaseBias-r16.h similarity index 81% rename from asn.1/generated/GNSS-SSR-PhaseBias-r16.h rename to asn.1/lpp_generated/GNSS-SSR-PhaseBias-r16.h index d56a3198..4ae2a703 100644 --- a/asn.1/generated/GNSS-SSR-PhaseBias-r16.h +++ b/asn.1/lpp_generated/GNSS-SSR-PhaseBias-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_SSR_PhaseBias_r16_H_ diff --git a/asn.1/lpp_generated/GNSS-SSR-PhaseBiasReq-r16.c b/asn.1/lpp_generated/GNSS-SSR-PhaseBiasReq-r16.c new file mode 100644 index 00000000..8ea9a2c8 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-PhaseBiasReq-r16.c @@ -0,0 +1,220 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-PhaseBiasReq-r16.h" + +#include "GNSS-NavListInfo-r15.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ssr_IntegrityPhaseBiasBoundsReq_r17_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_ssr_IntegrityPhaseBiasBoundsReq_r17_value2enum_6[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_ssr_IntegrityPhaseBiasBoundsReq_r17_enum2value_6[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ssr_IntegrityPhaseBiasBoundsReq_r17_specs_6 = { + asn_MAP_ssr_IntegrityPhaseBiasBoundsReq_r17_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_ssr_IntegrityPhaseBiasBoundsReq_r17_enum2value_6, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ssr_IntegrityPhaseBiasBoundsReq_r17_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ssr_IntegrityPhaseBiasBoundsReq_r17_6 = { + "ssr-IntegrityPhaseBiasBoundsReq-r17", + "ssr-IntegrityPhaseBiasBoundsReq-r17", + &asn_OP_NativeEnumerated, + asn_DEF_ssr_IntegrityPhaseBiasBoundsReq_r17_tags_6, + sizeof(asn_DEF_ssr_IntegrityPhaseBiasBoundsReq_r17_tags_6) + /sizeof(asn_DEF_ssr_IntegrityPhaseBiasBoundsReq_r17_tags_6[0]) - 1, /* 1 */ + asn_DEF_ssr_IntegrityPhaseBiasBoundsReq_r17_tags_6, /* Same as above */ + sizeof(asn_DEF_ssr_IntegrityPhaseBiasBoundsReq_r17_tags_6) + /sizeof(asn_DEF_ssr_IntegrityPhaseBiasBoundsReq_r17_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ssr_IntegrityPhaseBiasBoundsReq_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ssr_IntegrityPhaseBiasBoundsReq_r17_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_PhaseBiasReq_r16__ext1, ssr_IntegrityPhaseBiasBoundsReq_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ssr_IntegrityPhaseBiasBoundsReq_r17_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-IntegrityPhaseBiasBoundsReq-r17" + }, +}; +static const int asn_MAP_ext1_oms_5[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ssr-IntegrityPhaseBiasBoundsReq-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct GNSS_SSR_PhaseBiasReq_r16__ext1), + offsetof(struct GNSS_SSR_PhaseBiasReq_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_5, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 1, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_PhaseBiasReq_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_PhaseBiasReq_r16, signal_and_tracking_mode_ID_Map_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalIDs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "signal-and-tracking-mode-ID-Map-r16" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_SSR_PhaseBiasReq_r16, storedNavList_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_NavListInfo_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "storedNavList-r16" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_PhaseBiasReq_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_SSR_PhaseBiasReq_r16_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_PhaseBiasReq_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_PhaseBiasReq_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* signal-and-tracking-mode-ID-Map-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* storedNavList-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_PhaseBiasReq_r16_specs_1 = { + sizeof(struct GNSS_SSR_PhaseBiasReq_r16), + offsetof(struct GNSS_SSR_PhaseBiasReq_r16, _asn_ctx), + asn_MAP_GNSS_SSR_PhaseBiasReq_r16_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_PhaseBiasReq_r16_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_PhaseBiasReq_r16 = { + "GNSS-SSR-PhaseBiasReq-r16", + "GNSS-SSR-PhaseBiasReq-r16", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_PhaseBiasReq_r16_tags_1, + sizeof(asn_DEF_GNSS_SSR_PhaseBiasReq_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_PhaseBiasReq_r16_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_PhaseBiasReq_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_PhaseBiasReq_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_PhaseBiasReq_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_PhaseBiasReq_r16_1, + 3, /* Elements count */ + &asn_SPC_GNSS_SSR_PhaseBiasReq_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-PhaseBiasReq-r16.h b/asn.1/lpp_generated/GNSS-SSR-PhaseBiasReq-r16.h new file mode 100644 index 00000000..3dade813 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-PhaseBiasReq-r16.h @@ -0,0 +1,61 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_PhaseBiasReq_r16_H_ +#define _GNSS_SSR_PhaseBiasReq_r16_H_ + + +#include + +/* Including external dependencies */ +#include "GNSS-SignalIDs.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_SSR_PhaseBiasReq_r16__ext1__ssr_IntegrityPhaseBiasBoundsReq_r17 { + GNSS_SSR_PhaseBiasReq_r16__ext1__ssr_IntegrityPhaseBiasBoundsReq_r17_requested = 0 +} e_GNSS_SSR_PhaseBiasReq_r16__ext1__ssr_IntegrityPhaseBiasBoundsReq_r17; + +/* Forward declarations */ +struct GNSS_NavListInfo_r15; + +/* GNSS-SSR-PhaseBiasReq-r16 */ +typedef struct GNSS_SSR_PhaseBiasReq_r16 { + GNSS_SignalIDs_t signal_and_tracking_mode_ID_Map_r16; + struct GNSS_NavListInfo_r15 *storedNavList_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_SSR_PhaseBiasReq_r16__ext1 { + long *ssr_IntegrityPhaseBiasBoundsReq_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_PhaseBiasReq_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_ssr_IntegrityPhaseBiasBoundsReq_r17_6; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_PhaseBiasReq_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_PhaseBiasReq_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_PhaseBiasReq_r16_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_PhaseBiasReq_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-PhaseBiasSupport-r16.c b/asn.1/lpp_generated/GNSS-SSR-PhaseBiasSupport-r16.c new file mode 100644 index 00000000..37e08ecf --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-PhaseBiasSupport-r16.c @@ -0,0 +1,201 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-PhaseBiasSupport-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ssr_IntegrityPhaseBiasBoundsSup_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_ssr_IntegrityPhaseBiasBoundsSup_r17_value2enum_5[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_ssr_IntegrityPhaseBiasBoundsSup_r17_enum2value_5[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ssr_IntegrityPhaseBiasBoundsSup_r17_specs_5 = { + asn_MAP_ssr_IntegrityPhaseBiasBoundsSup_r17_value2enum_5, /* "tag" => N; sorted by tag */ + asn_MAP_ssr_IntegrityPhaseBiasBoundsSup_r17_enum2value_5, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ssr_IntegrityPhaseBiasBoundsSup_r17_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ssr_IntegrityPhaseBiasBoundsSup_r17_5 = { + "ssr-IntegrityPhaseBiasBoundsSup-r17", + "ssr-IntegrityPhaseBiasBoundsSup-r17", + &asn_OP_NativeEnumerated, + asn_DEF_ssr_IntegrityPhaseBiasBoundsSup_r17_tags_5, + sizeof(asn_DEF_ssr_IntegrityPhaseBiasBoundsSup_r17_tags_5) + /sizeof(asn_DEF_ssr_IntegrityPhaseBiasBoundsSup_r17_tags_5[0]) - 1, /* 1 */ + asn_DEF_ssr_IntegrityPhaseBiasBoundsSup_r17_tags_5, /* Same as above */ + sizeof(asn_DEF_ssr_IntegrityPhaseBiasBoundsSup_r17_tags_5) + /sizeof(asn_DEF_ssr_IntegrityPhaseBiasBoundsSup_r17_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ssr_IntegrityPhaseBiasBoundsSup_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ssr_IntegrityPhaseBiasBoundsSup_r17_specs_5 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_4[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_PhaseBiasSupport_r16__ext1, ssr_IntegrityPhaseBiasBoundsSup_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ssr_IntegrityPhaseBiasBoundsSup_r17_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-IntegrityPhaseBiasBoundsSup-r17" + }, +}; +static const int asn_MAP_ext1_oms_4[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ssr-IntegrityPhaseBiasBoundsSup-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { + sizeof(struct GNSS_SSR_PhaseBiasSupport_r16__ext1), + offsetof(struct GNSS_SSR_PhaseBiasSupport_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_4, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_4, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_4 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_4, + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_4, /* Same as above */ + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_4, + 1, /* Elements count */ + &asn_SPC_ext1_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_PhaseBiasSupport_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_PhaseBiasSupport_r16, signal_and_tracking_mode_ID_Sup_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalIDs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "signal-and-tracking-mode-ID-Sup-r16" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_PhaseBiasSupport_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_SSR_PhaseBiasSupport_r16_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_PhaseBiasSupport_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_PhaseBiasSupport_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* signal-and-tracking-mode-ID-Sup-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_PhaseBiasSupport_r16_specs_1 = { + sizeof(struct GNSS_SSR_PhaseBiasSupport_r16), + offsetof(struct GNSS_SSR_PhaseBiasSupport_r16, _asn_ctx), + asn_MAP_GNSS_SSR_PhaseBiasSupport_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_PhaseBiasSupport_r16_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_PhaseBiasSupport_r16 = { + "GNSS-SSR-PhaseBiasSupport-r16", + "GNSS-SSR-PhaseBiasSupport-r16", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_PhaseBiasSupport_r16_tags_1, + sizeof(asn_DEF_GNSS_SSR_PhaseBiasSupport_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_PhaseBiasSupport_r16_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_PhaseBiasSupport_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_PhaseBiasSupport_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_PhaseBiasSupport_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_PhaseBiasSupport_r16_1, + 2, /* Elements count */ + &asn_SPC_GNSS_SSR_PhaseBiasSupport_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-PhaseBiasSupport-r16.h b/asn.1/lpp_generated/GNSS-SSR-PhaseBiasSupport-r16.h new file mode 100644 index 00000000..63a953cb --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-PhaseBiasSupport-r16.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_PhaseBiasSupport_r16_H_ +#define _GNSS_SSR_PhaseBiasSupport_r16_H_ + + +#include + +/* Including external dependencies */ +#include "GNSS-SignalIDs.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_SSR_PhaseBiasSupport_r16__ext1__ssr_IntegrityPhaseBiasBoundsSup_r17 { + GNSS_SSR_PhaseBiasSupport_r16__ext1__ssr_IntegrityPhaseBiasBoundsSup_r17_supported = 0 +} e_GNSS_SSR_PhaseBiasSupport_r16__ext1__ssr_IntegrityPhaseBiasBoundsSup_r17; + +/* GNSS-SSR-PhaseBiasSupport-r16 */ +typedef struct GNSS_SSR_PhaseBiasSupport_r16 { + GNSS_SignalIDs_t signal_and_tracking_mode_ID_Sup_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_SSR_PhaseBiasSupport_r16__ext1 { + long *ssr_IntegrityPhaseBiasBoundsSup_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_PhaseBiasSupport_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_ssr_IntegrityPhaseBiasBoundsSup_r17_5; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_PhaseBiasSupport_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_PhaseBiasSupport_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_PhaseBiasSupport_r16_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_PhaseBiasSupport_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-STEC-Correction-r16.c b/asn.1/lpp_generated/GNSS-SSR-STEC-Correction-r16.c new file mode 100644 index 00000000..114f8ab3 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-STEC-Correction-r16.c @@ -0,0 +1,316 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-STEC-Correction-r16.h" + +#include "STEC-IntegrityParameters-r17.h" +static int +memb_ssrUpdateInterval_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_iod_ssr_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_correctionPointSetID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ssrUpdateInterval_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_iod_ssr_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_correctionPointSetID_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_8[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_STEC_Correction_r16__ext1, stec_IntegrityParameters_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_STEC_IntegrityParameters_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stec-IntegrityParameters-r17" + }, +}; +static const int asn_MAP_ext1_oms_8[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* stec-IntegrityParameters-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { + sizeof(struct GNSS_SSR_STEC_Correction_r16__ext1), + offsetof(struct GNSS_SSR_STEC_Correction_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_8, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_8, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_8 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_8, + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_8, /* Same as above */ + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_8, + 1, /* Elements count */ + &asn_SPC_ext1_specs_8 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_STEC_Correction_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_STEC_Correction_r16, epochTime_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SystemTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epochTime-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_STEC_Correction_r16, ssrUpdateInterval_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ssrUpdateInterval_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ssrUpdateInterval_r16_constraint_1 + }, + 0, 0, /* No default value */ + "ssrUpdateInterval-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_STEC_Correction_r16, iod_ssr_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_iod_ssr_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_iod_ssr_r16_constraint_1 + }, + 0, 0, /* No default value */ + "iod-ssr-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_STEC_Correction_r16, correctionPointSetID_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_correctionPointSetID_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_correctionPointSetID_r16_constraint_1 + }, + 0, 0, /* No default value */ + "correctionPointSetID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_STEC_Correction_r16, stec_SatList_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_STEC_SatList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stec-SatList-r16" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_STEC_Correction_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext1_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_SSR_STEC_Correction_r16_oms_1[] = { 5 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_STEC_Correction_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_STEC_Correction_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ssrUpdateInterval-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* iod-ssr-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* correctionPointSetID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* stec-SatList-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_STEC_Correction_r16_specs_1 = { + sizeof(struct GNSS_SSR_STEC_Correction_r16), + offsetof(struct GNSS_SSR_STEC_Correction_r16, _asn_ctx), + asn_MAP_GNSS_SSR_STEC_Correction_r16_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_STEC_Correction_r16_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_STEC_Correction_r16 = { + "GNSS-SSR-STEC-Correction-r16", + "GNSS-SSR-STEC-Correction-r16", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_STEC_Correction_r16_tags_1, + sizeof(asn_DEF_GNSS_SSR_STEC_Correction_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_STEC_Correction_r16_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_STEC_Correction_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_STEC_Correction_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_STEC_Correction_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_STEC_Correction_r16_1, + 6, /* Elements count */ + &asn_SPC_GNSS_SSR_STEC_Correction_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-STEC-Correction-r16.h b/asn.1/lpp_generated/GNSS-SSR-STEC-Correction-r16.h new file mode 100644 index 00000000..de1f73c7 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-STEC-Correction-r16.h @@ -0,0 +1,59 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_STEC_Correction_r16_H_ +#define _GNSS_SSR_STEC_Correction_r16_H_ + + +#include + +/* Including external dependencies */ +#include "GNSS-SystemTime.h" +#include +#include "STEC-SatList-r16.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct STEC_IntegrityParameters_r17; + +/* GNSS-SSR-STEC-Correction-r16 */ +typedef struct GNSS_SSR_STEC_Correction_r16 { + GNSS_SystemTime_t epochTime_r16; + long ssrUpdateInterval_r16; + long iod_ssr_r16; + long correctionPointSetID_r16; + STEC_SatList_r16_t stec_SatList_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_SSR_STEC_Correction_r16__ext1 { + struct STEC_IntegrityParameters_r17 *stec_IntegrityParameters_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_STEC_Correction_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_STEC_Correction_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_STEC_Correction_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_STEC_Correction_r16_1[6]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_STEC_Correction_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-STEC-CorrectionReq-r16.c b/asn.1/lpp_generated/GNSS-SSR-STEC-CorrectionReq-r16.c new file mode 100644 index 00000000..959d9800 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-STEC-CorrectionReq-r16.c @@ -0,0 +1,167 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-STEC-CorrectionReq-r16.h" + +static int +memb_stec_IntegrityReq_r17_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stec_IntegrityReq_r17_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_3[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_STEC_CorrectionReq_r16__ext1, stec_IntegrityReq_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stec_IntegrityReq_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stec_IntegrityReq_r17_constraint_3 + }, + 0, 0, /* No default value */ + "stec-IntegrityReq-r17" + }, +}; +static const int asn_MAP_ext1_oms_3[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* stec-IntegrityReq-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_3 = { + sizeof(struct GNSS_SSR_STEC_CorrectionReq_r16__ext1), + offsetof(struct GNSS_SSR_STEC_CorrectionReq_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_3, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_3, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_3 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_3, + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_3, /* Same as above */ + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_3, + 1, /* Elements count */ + &asn_SPC_ext1_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_STEC_CorrectionReq_r16_1[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_STEC_CorrectionReq_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_ext1_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_SSR_STEC_CorrectionReq_r16_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_STEC_CorrectionReq_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_STEC_CorrectionReq_r16_specs_1 = { + sizeof(struct GNSS_SSR_STEC_CorrectionReq_r16), + offsetof(struct GNSS_SSR_STEC_CorrectionReq_r16, _asn_ctx), + asn_MAP_GNSS_SSR_STEC_CorrectionReq_r16_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_STEC_CorrectionReq_r16_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16 = { + "GNSS-SSR-STEC-CorrectionReq-r16", + "GNSS-SSR-STEC-CorrectionReq-r16", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16_tags_1, + sizeof(asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_STEC_CorrectionReq_r16_1, + 1, /* Elements count */ + &asn_SPC_GNSS_SSR_STEC_CorrectionReq_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-STEC-CorrectionReq-r16.h b/asn.1/lpp_generated/GNSS-SSR-STEC-CorrectionReq-r16.h new file mode 100644 index 00000000..3c0f1ef3 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-STEC-CorrectionReq-r16.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_STEC_CorrectionReq_r16_H_ +#define _GNSS_SSR_STEC_CorrectionReq_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_SSR_STEC_CorrectionReq_r16__ext1__stec_IntegrityReq_r17 { + GNSS_SSR_STEC_CorrectionReq_r16__ext1__stec_IntegrityReq_r17_correlationTimeReq = 0 +} e_GNSS_SSR_STEC_CorrectionReq_r16__ext1__stec_IntegrityReq_r17; + +/* GNSS-SSR-STEC-CorrectionReq-r16 */ +typedef struct GNSS_SSR_STEC_CorrectionReq_r16 { + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_SSR_STEC_CorrectionReq_r16__ext1 { + BIT_STRING_t *stec_IntegrityReq_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_STEC_CorrectionReq_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_STEC_CorrectionReq_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_STEC_CorrectionReq_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_STEC_CorrectionReq_r16_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_STEC_CorrectionReq_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-STEC-CorrectionSupport-r16.c b/asn.1/lpp_generated/GNSS-SSR-STEC-CorrectionSupport-r16.c new file mode 100644 index 00000000..3831aa32 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-STEC-CorrectionSupport-r16.c @@ -0,0 +1,167 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-STEC-CorrectionSupport-r16.h" + +static int +memb_stec_IntegritySup_r17_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stec_IntegritySup_r17_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_3[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_STEC_CorrectionSupport_r16__ext1, stec_IntegritySup_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stec_IntegritySup_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stec_IntegritySup_r17_constraint_3 + }, + 0, 0, /* No default value */ + "stec-IntegritySup-r17" + }, +}; +static const int asn_MAP_ext1_oms_3[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* stec-IntegritySup-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_3 = { + sizeof(struct GNSS_SSR_STEC_CorrectionSupport_r16__ext1), + offsetof(struct GNSS_SSR_STEC_CorrectionSupport_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_3, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_3, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_3 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_3, + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_3, /* Same as above */ + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_3, + 1, /* Elements count */ + &asn_SPC_ext1_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_STEC_CorrectionSupport_r16_1[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SSR_STEC_CorrectionSupport_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_ext1_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_SSR_STEC_CorrectionSupport_r16_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_STEC_CorrectionSupport_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_STEC_CorrectionSupport_r16_specs_1 = { + sizeof(struct GNSS_SSR_STEC_CorrectionSupport_r16), + offsetof(struct GNSS_SSR_STEC_CorrectionSupport_r16, _asn_ctx), + asn_MAP_GNSS_SSR_STEC_CorrectionSupport_r16_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_GNSS_SSR_STEC_CorrectionSupport_r16_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16 = { + "GNSS-SSR-STEC-CorrectionSupport-r16", + "GNSS-SSR-STEC-CorrectionSupport-r16", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16_tags_1, + sizeof(asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_STEC_CorrectionSupport_r16_1, + 1, /* Elements count */ + &asn_SPC_GNSS_SSR_STEC_CorrectionSupport_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-STEC-CorrectionSupport-r16.h b/asn.1/lpp_generated/GNSS-SSR-STEC-CorrectionSupport-r16.h new file mode 100644 index 00000000..7618aab8 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-STEC-CorrectionSupport-r16.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_STEC_CorrectionSupport_r16_H_ +#define _GNSS_SSR_STEC_CorrectionSupport_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_SSR_STEC_CorrectionSupport_r16__ext1__stec_IntegritySup_r17 { + GNSS_SSR_STEC_CorrectionSupport_r16__ext1__stec_IntegritySup_r17_correlationTimeSup = 0 +} e_GNSS_SSR_STEC_CorrectionSupport_r16__ext1__stec_IntegritySup_r17; + +/* GNSS-SSR-STEC-CorrectionSupport-r16 */ +typedef struct GNSS_SSR_STEC_CorrectionSupport_r16 { + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_SSR_STEC_CorrectionSupport_r16__ext1 { + BIT_STRING_t *stec_IntegritySup_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_STEC_CorrectionSupport_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_STEC_CorrectionSupport_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_STEC_CorrectionSupport_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_STEC_CorrectionSupport_r16_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_STEC_CorrectionSupport_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-SatellitePCVResiduals-r18.c b/asn.1/lpp_generated/GNSS-SSR-SatellitePCVResiduals-r18.c new file mode 100644 index 00000000..8e218fe8 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-SatellitePCVResiduals-r18.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-SatellitePCVResiduals-r18.h" + +static int +memb_iod_ssr_PCVResiduals_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 64L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_iod_ssr_PCVResiduals_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 64 } /* (0..64) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_SSR_SatellitePCVResiduals_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_SatellitePCVResiduals_r18, iod_ssr_PCVResiduals_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_iod_ssr_PCVResiduals_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_iod_ssr_PCVResiduals_r18_constraint_1 + }, + 0, 0, /* No default value */ + "iod-ssr-PCVResiduals-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_SatellitePCVResiduals_r18, ssr_SatellitePCV_List_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SSR_SatellitePCV_List_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-SatellitePCV-List-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_SatellitePCVResiduals_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_SatellitePCVResiduals_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iod-ssr-PCVResiduals-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ssr-SatellitePCV-List-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_SatellitePCVResiduals_r18_specs_1 = { + sizeof(struct GNSS_SSR_SatellitePCVResiduals_r18), + offsetof(struct GNSS_SSR_SatellitePCVResiduals_r18, _asn_ctx), + asn_MAP_GNSS_SSR_SatellitePCVResiduals_r18_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_SatellitePCVResiduals_r18 = { + "GNSS-SSR-SatellitePCVResiduals-r18", + "GNSS-SSR-SatellitePCVResiduals-r18", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_SatellitePCVResiduals_r18_tags_1, + sizeof(asn_DEF_GNSS_SSR_SatellitePCVResiduals_r18_tags_1) + /sizeof(asn_DEF_GNSS_SSR_SatellitePCVResiduals_r18_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_SatellitePCVResiduals_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_SatellitePCVResiduals_r18_tags_1) + /sizeof(asn_DEF_GNSS_SSR_SatellitePCVResiduals_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_SatellitePCVResiduals_r18_1, + 2, /* Elements count */ + &asn_SPC_GNSS_SSR_SatellitePCVResiduals_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-SatellitePCVResiduals-r18.h b/asn.1/lpp_generated/GNSS-SSR-SatellitePCVResiduals-r18.h new file mode 100644 index 00000000..e95ffd02 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-SatellitePCVResiduals-r18.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_SatellitePCVResiduals_r18_H_ +#define _GNSS_SSR_SatellitePCVResiduals_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include "SSR-SatellitePCV-List-r18.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-SSR-SatellitePCVResiduals-r18 */ +typedef struct GNSS_SSR_SatellitePCVResiduals_r18 { + long iod_ssr_PCVResiduals_r18; + SSR_SatellitePCV_List_r18_t ssr_SatellitePCV_List_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_SatellitePCVResiduals_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_SatellitePCVResiduals_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_SatellitePCVResiduals_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_SatellitePCVResiduals_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_SatellitePCVResiduals_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-SatellitePCVResidualsReq-r18.c b/asn.1/lpp_generated/GNSS-SSR-SatellitePCVResidualsReq-r18.c new file mode 100644 index 00000000..1c2209bf --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-SatellitePCVResidualsReq-r18.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-SatellitePCVResidualsReq-r18.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_SatellitePCVResidualsReq_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_SatellitePCVResidualsReq_r18_specs_1 = { + sizeof(struct GNSS_SSR_SatellitePCVResidualsReq_r18), + offsetof(struct GNSS_SSR_SatellitePCVResidualsReq_r18, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_SatellitePCVResidualsReq_r18 = { + "GNSS-SSR-SatellitePCVResidualsReq-r18", + "GNSS-SSR-SatellitePCVResidualsReq-r18", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_SatellitePCVResidualsReq_r18_tags_1, + sizeof(asn_DEF_GNSS_SSR_SatellitePCVResidualsReq_r18_tags_1) + /sizeof(asn_DEF_GNSS_SSR_SatellitePCVResidualsReq_r18_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_SatellitePCVResidualsReq_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_SatellitePCVResidualsReq_r18_tags_1) + /sizeof(asn_DEF_GNSS_SSR_SatellitePCVResidualsReq_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_SSR_SatellitePCVResidualsReq_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-SatellitePCVResidualsReq-r18.h b/asn.1/lpp_generated/GNSS-SSR-SatellitePCVResidualsReq-r18.h new file mode 100644 index 00000000..50fa50dd --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-SatellitePCVResidualsReq-r18.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_SatellitePCVResidualsReq_r18_H_ +#define _GNSS_SSR_SatellitePCVResidualsReq_r18_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-SSR-SatellitePCVResidualsReq-r18 */ +typedef struct GNSS_SSR_SatellitePCVResidualsReq_r18 { + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_SatellitePCVResidualsReq_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_SatellitePCVResidualsReq_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_SatellitePCVResidualsReq_r18_specs_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_SatellitePCVResidualsReq_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-SatellitePCVResidualsSupport-r18.c b/asn.1/lpp_generated/GNSS-SSR-SatellitePCVResidualsSupport-r18.c new file mode 100644 index 00000000..93435e28 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-SatellitePCVResidualsSupport-r18.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-SatellitePCVResidualsSupport-r18.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_SatellitePCVResidualsSupport_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_SatellitePCVResidualsSupport_r18_specs_1 = { + sizeof(struct GNSS_SSR_SatellitePCVResidualsSupport_r18), + offsetof(struct GNSS_SSR_SatellitePCVResidualsSupport_r18, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_SatellitePCVResidualsSupport_r18 = { + "GNSS-SSR-SatellitePCVResidualsSupport-r18", + "GNSS-SSR-SatellitePCVResidualsSupport-r18", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_SatellitePCVResidualsSupport_r18_tags_1, + sizeof(asn_DEF_GNSS_SSR_SatellitePCVResidualsSupport_r18_tags_1) + /sizeof(asn_DEF_GNSS_SSR_SatellitePCVResidualsSupport_r18_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_SatellitePCVResidualsSupport_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_SatellitePCVResidualsSupport_r18_tags_1) + /sizeof(asn_DEF_GNSS_SSR_SatellitePCVResidualsSupport_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_SSR_SatellitePCVResidualsSupport_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-SatellitePCVResidualsSupport-r18.h b/asn.1/lpp_generated/GNSS-SSR-SatellitePCVResidualsSupport-r18.h new file mode 100644 index 00000000..67ff35dc --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-SatellitePCVResidualsSupport-r18.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_SatellitePCVResidualsSupport_r18_H_ +#define _GNSS_SSR_SatellitePCVResidualsSupport_r18_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-SSR-SatellitePCVResidualsSupport-r18 */ +typedef struct GNSS_SSR_SatellitePCVResidualsSupport_r18 { + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_SatellitePCVResidualsSupport_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_SatellitePCVResidualsSupport_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_SatellitePCVResidualsSupport_r18_specs_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_SatellitePCVResidualsSupport_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-URA-Req-r16.c b/asn.1/lpp_generated/GNSS-SSR-URA-Req-r16.c new file mode 100644 index 00000000..b7113ee8 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-URA-Req-r16.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-URA-Req-r16.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_URA_Req_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_URA_Req_r16_specs_1 = { + sizeof(struct GNSS_SSR_URA_Req_r16), + offsetof(struct GNSS_SSR_URA_Req_r16, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_URA_Req_r16 = { + "GNSS-SSR-URA-Req-r16", + "GNSS-SSR-URA-Req-r16", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_URA_Req_r16_tags_1, + sizeof(asn_DEF_GNSS_SSR_URA_Req_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_URA_Req_r16_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_URA_Req_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_URA_Req_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_URA_Req_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_SSR_URA_Req_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-SSR-URA-Req-r16.h b/asn.1/lpp_generated/GNSS-SSR-URA-Req-r16.h similarity index 76% rename from asn.1/generated/GNSS-SSR-URA-Req-r16.h rename to asn.1/lpp_generated/GNSS-SSR-URA-Req-r16.h index f7576d24..d9d13510 100644 --- a/asn.1/generated/GNSS-SSR-URA-Req-r16.h +++ b/asn.1/lpp_generated/GNSS-SSR-URA-Req-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_SSR_URA_Req_r16_H_ diff --git a/asn.1/lpp_generated/GNSS-SSR-URA-Set2-r17.c b/asn.1/lpp_generated/GNSS-SSR-URA-Set2-r17.c new file mode 100644 index 00000000..20c1fb62 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-URA-Set2-r17.c @@ -0,0 +1,140 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-URA-Set2-r17.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_refEph_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_refEph_r17_value2enum_2[] = { + { 0, 3, "b1c" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_refEph_r17_enum2value_2[] = { + 0 /* b1c(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_refEph_r17_specs_2 = { + asn_MAP_refEph_r17_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_refEph_r17_enum2value_2, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_refEph_r17_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_refEph_r17_2 = { + "refEph-r17", + "refEph-r17", + &asn_OP_NativeEnumerated, + asn_DEF_refEph_r17_tags_2, + sizeof(asn_DEF_refEph_r17_tags_2) + /sizeof(asn_DEF_refEph_r17_tags_2[0]) - 1, /* 1 */ + asn_DEF_refEph_r17_tags_2, /* Same as above */ + sizeof(asn_DEF_refEph_r17_tags_2) + /sizeof(asn_DEF_refEph_r17_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_refEph_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_refEph_r17_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_URA_Set2_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_URA_Set2_r17, refEph_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_refEph_r17_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "refEph-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_URA_Set2_r17, gnss_SSR_URA_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SSR_URA_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SSR-URA-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_URA_Set2_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_URA_Set2_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refEph-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-SSR-URA-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_URA_Set2_r17_specs_1 = { + sizeof(struct GNSS_SSR_URA_Set2_r17), + offsetof(struct GNSS_SSR_URA_Set2_r17, _asn_ctx), + asn_MAP_GNSS_SSR_URA_Set2_r17_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_URA_Set2_r17 = { + "GNSS-SSR-URA-Set2-r17", + "GNSS-SSR-URA-Set2-r17", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_URA_Set2_r17_tags_1, + sizeof(asn_DEF_GNSS_SSR_URA_Set2_r17_tags_1) + /sizeof(asn_DEF_GNSS_SSR_URA_Set2_r17_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_URA_Set2_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_URA_Set2_r17_tags_1) + /sizeof(asn_DEF_GNSS_SSR_URA_Set2_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_URA_Set2_r17_1, + 2, /* Elements count */ + &asn_SPC_GNSS_SSR_URA_Set2_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-URA-Set2-r17.h b/asn.1/lpp_generated/GNSS-SSR-URA-Set2-r17.h new file mode 100644 index 00000000..1caa8f99 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-URA-Set2-r17.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_URA_Set2_r17_H_ +#define _GNSS_SSR_URA_Set2_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include "GNSS-SSR-URA-r16.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_SSR_URA_Set2_r17__refEph_r17 { + GNSS_SSR_URA_Set2_r17__refEph_r17_b1c = 0 + /* + * Enumeration is extensible + */ +} e_GNSS_SSR_URA_Set2_r17__refEph_r17; + +/* GNSS-SSR-URA-Set2-r17 */ +typedef struct GNSS_SSR_URA_Set2_r17 { + long refEph_r17; + GNSS_SSR_URA_r16_t gnss_SSR_URA_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_URA_Set2_r17_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_refEph_r17_2; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_URA_Set2_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_URA_Set2_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_URA_Set2_r17_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_URA_Set2_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-URA-Set2Req-r17.c b/asn.1/lpp_generated/GNSS-SSR-URA-Set2Req-r17.c new file mode 100644 index 00000000..c3db0a9d --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-URA-Set2Req-r17.c @@ -0,0 +1,122 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-URA-Set2Req-r17.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_refEphReq_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_refEphReq_r17_value2enum_2[] = { + { 0, 3, "b1c" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_refEphReq_r17_enum2value_2[] = { + 0 /* b1c(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_refEphReq_r17_specs_2 = { + asn_MAP_refEphReq_r17_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_refEphReq_r17_enum2value_2, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_refEphReq_r17_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_refEphReq_r17_2 = { + "refEphReq-r17", + "refEphReq-r17", + &asn_OP_NativeEnumerated, + asn_DEF_refEphReq_r17_tags_2, + sizeof(asn_DEF_refEphReq_r17_tags_2) + /sizeof(asn_DEF_refEphReq_r17_tags_2[0]) - 1, /* 1 */ + asn_DEF_refEphReq_r17_tags_2, /* Same as above */ + sizeof(asn_DEF_refEphReq_r17_tags_2) + /sizeof(asn_DEF_refEphReq_r17_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_refEphReq_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_refEphReq_r17_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SSR_URA_Set2Req_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_URA_Set2Req_r17, refEphReq_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_refEphReq_r17_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "refEphReq-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_URA_Set2Req_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_URA_Set2Req_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* refEphReq-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_URA_Set2Req_r17_specs_1 = { + sizeof(struct GNSS_SSR_URA_Set2Req_r17), + offsetof(struct GNSS_SSR_URA_Set2Req_r17, _asn_ctx), + asn_MAP_GNSS_SSR_URA_Set2Req_r17_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_URA_Set2Req_r17 = { + "GNSS-SSR-URA-Set2Req-r17", + "GNSS-SSR-URA-Set2Req-r17", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_URA_Set2Req_r17_tags_1, + sizeof(asn_DEF_GNSS_SSR_URA_Set2Req_r17_tags_1) + /sizeof(asn_DEF_GNSS_SSR_URA_Set2Req_r17_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_URA_Set2Req_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_URA_Set2Req_r17_tags_1) + /sizeof(asn_DEF_GNSS_SSR_URA_Set2Req_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_URA_Set2Req_r17_1, + 1, /* Elements count */ + &asn_SPC_GNSS_SSR_URA_Set2Req_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-URA-Set2Req-r17.h b/asn.1/lpp_generated/GNSS-SSR-URA-Set2Req-r17.h new file mode 100644 index 00000000..91d7f0b4 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-URA-Set2Req-r17.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_URA_Set2Req_r17_H_ +#define _GNSS_SSR_URA_Set2Req_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_SSR_URA_Set2Req_r17__refEphReq_r17 { + GNSS_SSR_URA_Set2Req_r17__refEphReq_r17_b1c = 0 + /* + * Enumeration is extensible + */ +} e_GNSS_SSR_URA_Set2Req_r17__refEphReq_r17; + +/* GNSS-SSR-URA-Set2Req-r17 */ +typedef struct GNSS_SSR_URA_Set2Req_r17 { + long refEphReq_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_URA_Set2Req_r17_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_refEphReq_r17_2; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_URA_Set2Req_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_URA_Set2Req_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SSR_URA_Set2Req_r17_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_URA_Set2Req_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-URA-Set2Support-r17.c b/asn.1/lpp_generated/GNSS-SSR-URA-Set2Support-r17.c new file mode 100644 index 00000000..9a5c7aaf --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-URA-Set2Support-r17.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-URA-Set2Support-r17.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_URA_Set2Support_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_URA_Set2Support_r17_specs_1 = { + sizeof(struct GNSS_SSR_URA_Set2Support_r17), + offsetof(struct GNSS_SSR_URA_Set2Support_r17, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_URA_Set2Support_r17 = { + "GNSS-SSR-URA-Set2Support-r17", + "GNSS-SSR-URA-Set2Support-r17", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_URA_Set2Support_r17_tags_1, + sizeof(asn_DEF_GNSS_SSR_URA_Set2Support_r17_tags_1) + /sizeof(asn_DEF_GNSS_SSR_URA_Set2Support_r17_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_URA_Set2Support_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_URA_Set2Support_r17_tags_1) + /sizeof(asn_DEF_GNSS_SSR_URA_Set2Support_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_SSR_URA_Set2Support_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SSR-URA-Set2Support-r17.h b/asn.1/lpp_generated/GNSS-SSR-URA-Set2Support-r17.h new file mode 100644 index 00000000..e99cbfa0 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-URA-Set2Support-r17.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SSR_URA_Set2Support_r17_H_ +#define _GNSS_SSR_URA_Set2Support_r17_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-SSR-URA-Set2Support-r17 */ +typedef struct GNSS_SSR_URA_Set2Support_r17 { + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SSR_URA_Set2Support_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_URA_Set2Support_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_URA_Set2Support_r17_specs_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SSR_URA_Set2Support_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SSR-URA-Support-r16.c b/asn.1/lpp_generated/GNSS-SSR-URA-Support-r16.c new file mode 100644 index 00000000..779ba9a8 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-URA-Support-r16.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-URA-Support-r16.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_URA_Support_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_URA_Support_r16_specs_1 = { + sizeof(struct GNSS_SSR_URA_Support_r16), + offsetof(struct GNSS_SSR_URA_Support_r16, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_URA_Support_r16 = { + "GNSS-SSR-URA-Support-r16", + "GNSS-SSR-URA-Support-r16", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_URA_Support_r16_tags_1, + sizeof(asn_DEF_GNSS_SSR_URA_Support_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_URA_Support_r16_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_URA_Support_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_URA_Support_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_URA_Support_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_SSR_URA_Support_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-SSR-URA-Support-r16.h b/asn.1/lpp_generated/GNSS-SSR-URA-Support-r16.h similarity index 76% rename from asn.1/generated/GNSS-SSR-URA-Support-r16.h rename to asn.1/lpp_generated/GNSS-SSR-URA-Support-r16.h index c2810bf7..1e33eaf4 100644 --- a/asn.1/generated/GNSS-SSR-URA-Support-r16.h +++ b/asn.1/lpp_generated/GNSS-SSR-URA-Support-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_SSR_URA_Support_r16_H_ diff --git a/asn.1/lpp_generated/GNSS-SSR-URA-r16.c b/asn.1/lpp_generated/GNSS-SSR-URA-r16.c new file mode 100644 index 00000000..e05b2c5b --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SSR-URA-r16.c @@ -0,0 +1,184 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SSR-URA-r16.h" + +static int +memb_ssrUpdateInterval_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_iod_ssr_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ssrUpdateInterval_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_iod_ssr_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_SSR_URA_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_URA_r16, epochTime_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SystemTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epochTime-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_URA_r16, ssrUpdateInterval_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ssrUpdateInterval_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ssrUpdateInterval_r16_constraint_1 + }, + 0, 0, /* No default value */ + "ssrUpdateInterval-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_URA_r16, iod_ssr_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_iod_ssr_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_iod_ssr_r16_constraint_1 + }, + 0, 0, /* No default value */ + "iod-ssr-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SSR_URA_r16, ssr_URA_SatList_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SSR_URA_SatList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-URA-SatList-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_SSR_URA_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SSR_URA_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ssrUpdateInterval-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* iod-ssr-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ssr-URA-SatList-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SSR_URA_r16_specs_1 = { + sizeof(struct GNSS_SSR_URA_r16), + offsetof(struct GNSS_SSR_URA_r16, _asn_ctx), + asn_MAP_GNSS_SSR_URA_r16_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SSR_URA_r16 = { + "GNSS-SSR-URA-r16", + "GNSS-SSR-URA-r16", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SSR_URA_r16_tags_1, + sizeof(asn_DEF_GNSS_SSR_URA_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_URA_r16_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SSR_URA_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SSR_URA_r16_tags_1) + /sizeof(asn_DEF_GNSS_SSR_URA_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SSR_URA_r16_1, + 4, /* Elements count */ + &asn_SPC_GNSS_SSR_URA_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-SSR-URA-r16.h b/asn.1/lpp_generated/GNSS-SSR-URA-r16.h similarity index 80% rename from asn.1/generated/GNSS-SSR-URA-r16.h rename to asn.1/lpp_generated/GNSS-SSR-URA-r16.h index 2b030103..3b574982 100644 --- a/asn.1/generated/GNSS-SSR-URA-r16.h +++ b/asn.1/lpp_generated/GNSS-SSR-URA-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_SSR_URA_r16_H_ diff --git a/asn.1/lpp_generated/GNSS-SatMeasElement.c b/asn.1/lpp_generated/GNSS-SatMeasElement.c new file mode 100644 index 00000000..0e7a79a4 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SatMeasElement.c @@ -0,0 +1,783 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SatMeasElement.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_adrMSB_r15_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_adrRMSerror_r15_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_delta_codePhase_r15_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cNo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_carrierQualityInd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_codePhase_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2097151L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_integerCodePhase_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_codePhaseRMSError_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_doppler_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_adr_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 33554431L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_mpathDet_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_adrSign_r15_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_adrMSB_r15_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_adrRMSerror_r15_constr_22 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_delta_codePhase_r15_constr_23 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cNo_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_carrierQualityInd_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_codePhase_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, 0, 2097151 } /* (0..2097151) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_integerCodePhase_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_codePhaseRMSError_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_doppler_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_adr_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 25, -1, 0, 33554431 } /* (0..33554431) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_mpathDet_value2enum_4[] = { + { 0, 11, "notMeasured" }, + { 1, 3, "low" }, + { 2, 6, "medium" }, + { 3, 4, "high" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_mpathDet_enum2value_4[] = { + 3, /* high(3) */ + 1, /* low(1) */ + 2, /* medium(2) */ + 0 /* notMeasured(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_mpathDet_specs_4 = { + asn_MAP_mpathDet_value2enum_4, /* "tag" => N; sorted by tag */ + asn_MAP_mpathDet_enum2value_4, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_mpathDet_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_mpathDet_4 = { + "mpathDet", + "mpathDet", + &asn_OP_NativeEnumerated, + asn_DEF_mpathDet_tags_4, + sizeof(asn_DEF_mpathDet_tags_4) + /sizeof(asn_DEF_mpathDet_tags_4[0]) - 1, /* 1 */ + asn_DEF_mpathDet_tags_4, /* Same as above */ + sizeof(asn_DEF_mpathDet_tags_4) + /sizeof(asn_DEF_mpathDet_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_mpathDet_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_mpathDet_specs_4 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_adrSign_r15_value2enum_19[] = { + { 0, 8, "positive" }, + { 1, 8, "negative" } +}; +static const unsigned int asn_MAP_adrSign_r15_enum2value_19[] = { + 1, /* negative(1) */ + 0 /* positive(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_adrSign_r15_specs_19 = { + asn_MAP_adrSign_r15_value2enum_19, /* "tag" => N; sorted by tag */ + asn_MAP_adrSign_r15_enum2value_19, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_adrSign_r15_tags_19[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_adrSign_r15_19 = { + "adrSign-r15", + "adrSign-r15", + &asn_OP_NativeEnumerated, + asn_DEF_adrSign_r15_tags_19, + sizeof(asn_DEF_adrSign_r15_tags_19) + /sizeof(asn_DEF_adrSign_r15_tags_19[0]) - 1, /* 1 */ + asn_DEF_adrSign_r15_tags_19, /* Same as above */ + sizeof(asn_DEF_adrSign_r15_tags_19) + /sizeof(asn_DEF_adrSign_r15_tags_19[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_adrSign_r15_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_adrSign_r15_specs_19 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_17[] = { + { ATF_POINTER, 4, offsetof(struct GNSS_SatMeasElement__ext1, adrMSB_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_adrMSB_r15_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_adrMSB_r15_constraint_17 + }, + 0, 0, /* No default value */ + "adrMSB-r15" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_SatMeasElement__ext1, adrSign_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_adrSign_r15_19, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "adrSign-r15" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_SatMeasElement__ext1, adrRMSerror_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_adrRMSerror_r15_constr_22, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_adrRMSerror_r15_constraint_17 + }, + 0, 0, /* No default value */ + "adrRMSerror-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SatMeasElement__ext1, delta_codePhase_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_delta_codePhase_r15_constr_23, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_delta_codePhase_r15_constraint_17 + }, + 0, 0, /* No default value */ + "delta-codePhase-r15" + }, +}; +static const int asn_MAP_ext1_oms_17[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_17[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* adrMSB-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* adrSign-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* adrRMSerror-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* delta-codePhase-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_17 = { + sizeof(struct GNSS_SatMeasElement__ext1), + offsetof(struct GNSS_SatMeasElement__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_17, + 4, /* Count of tags in the map */ + asn_MAP_ext1_oms_17, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_17 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_17, + sizeof(asn_DEF_ext1_tags_17) + /sizeof(asn_DEF_ext1_tags_17[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_17, /* Same as above */ + sizeof(asn_DEF_ext1_tags_17) + /sizeof(asn_DEF_ext1_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_17, + 4, /* Elements count */ + &asn_SPC_ext1_specs_17 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SatMeasElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SatMeasElement, svID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SatMeasElement, cNo), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cNo_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cNo_constraint_1 + }, + 0, 0, /* No default value */ + "cNo" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SatMeasElement, mpathDet), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_mpathDet_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mpathDet" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SatMeasElement, carrierQualityInd), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_carrierQualityInd_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_carrierQualityInd_constraint_1 + }, + 0, 0, /* No default value */ + "carrierQualityInd" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SatMeasElement, codePhase), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_codePhase_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_codePhase_constraint_1 + }, + 0, 0, /* No default value */ + "codePhase" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SatMeasElement, integerCodePhase), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_integerCodePhase_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_integerCodePhase_constraint_1 + }, + 0, 0, /* No default value */ + "integerCodePhase" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SatMeasElement, codePhaseRMSError), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_codePhaseRMSError_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_codePhaseRMSError_constraint_1 + }, + 0, 0, /* No default value */ + "codePhaseRMSError" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_SatMeasElement, doppler), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_doppler_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_doppler_constraint_1 + }, + 0, 0, /* No default value */ + "doppler" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_SatMeasElement, adr), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_adr_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_adr_constraint_1 + }, + 0, 0, /* No default value */ + "adr" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SatMeasElement, ext1), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + 0, + &asn_DEF_ext1_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_SatMeasElement_oms_1[] = { 3, 5, 7, 8, 9 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SatMeasElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SatMeasElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cNo */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* mpathDet */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* carrierQualityInd */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* codePhase */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* integerCodePhase */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* codePhaseRMSError */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* doppler */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* adr */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SatMeasElement_specs_1 = { + sizeof(struct GNSS_SatMeasElement), + offsetof(struct GNSS_SatMeasElement, _asn_ctx), + asn_MAP_GNSS_SatMeasElement_tag2el_1, + 10, /* Count of tags in the map */ + asn_MAP_GNSS_SatMeasElement_oms_1, /* Optional members */ + 4, 1, /* Root/Additions */ + 9, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SatMeasElement = { + "GNSS-SatMeasElement", + "GNSS-SatMeasElement", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SatMeasElement_tags_1, + sizeof(asn_DEF_GNSS_SatMeasElement_tags_1) + /sizeof(asn_DEF_GNSS_SatMeasElement_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SatMeasElement_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SatMeasElement_tags_1) + /sizeof(asn_DEF_GNSS_SatMeasElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SatMeasElement_1, + 10, /* Elements count */ + &asn_SPC_GNSS_SatMeasElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-SatMeasElement.h b/asn.1/lpp_generated/GNSS-SatMeasElement.h similarity index 77% rename from asn.1/generated/GNSS-SatMeasElement.h rename to asn.1/lpp_generated/GNSS-SatMeasElement.h index a0e0988b..95b427c0 100644 --- a/asn.1/generated/GNSS-SatMeasElement.h +++ b/asn.1/lpp_generated/GNSS-SatMeasElement.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_SatMeasElement_H_ @@ -41,21 +41,21 @@ typedef struct GNSS_SatMeasElement { SV_ID_t svID; long cNo; long mpathDet; - long *carrierQualityInd /* OPTIONAL */; + long *carrierQualityInd; /* OPTIONAL */ long codePhase; - long *integerCodePhase /* OPTIONAL */; + long *integerCodePhase; /* OPTIONAL */ long codePhaseRMSError; - long *doppler /* OPTIONAL */; - long *adr /* OPTIONAL */; + long *doppler; /* OPTIONAL */ + long *adr; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. */ struct GNSS_SatMeasElement__ext1 { - long *adrMSB_r15 /* OPTIONAL */; - long *adrSign_r15 /* OPTIONAL */; - long *adrRMSerror_r15 /* OPTIONAL */; - long *delta_codePhase_r15 /* OPTIONAL */; + long *adrMSB_r15; /* OPTIONAL */ + long *adrSign_r15; /* OPTIONAL */ + long *adrRMSerror_r15; /* OPTIONAL */ + long *delta_codePhase_r15; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/GNSS-SatMeasList.c b/asn.1/lpp_generated/GNSS-SatMeasList.c new file mode 100644 index 00000000..bbbc3798 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SatMeasList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SatMeasList.h" + +#include "GNSS-SatMeasElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_SatMeasList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_SatMeasList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_SatMeasElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_SatMeasList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_SatMeasList_specs_1 = { + sizeof(struct GNSS_SatMeasList), + offsetof(struct GNSS_SatMeasList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SatMeasList = { + "GNSS-SatMeasList", + "GNSS-SatMeasList", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_SatMeasList_tags_1, + sizeof(asn_DEF_GNSS_SatMeasList_tags_1) + /sizeof(asn_DEF_GNSS_SatMeasList_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SatMeasList_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SatMeasList_tags_1) + /sizeof(asn_DEF_GNSS_SatMeasList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_SatMeasList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_SatMeasList_1, + 1, /* Single element */ + &asn_SPC_GNSS_SatMeasList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-SatMeasList.h b/asn.1/lpp_generated/GNSS-SatMeasList.h similarity index 79% rename from asn.1/generated/GNSS-SatMeasList.h rename to asn.1/lpp_generated/GNSS-SatMeasList.h index 0f9b29e0..2514a855 100644 --- a/asn.1/generated/GNSS-SatMeasList.h +++ b/asn.1/lpp_generated/GNSS-SatMeasList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_SatMeasList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_SatMeasList_constr_1; } #endif -/* Referred external types */ -#include "GNSS-SatMeasElement.h" - #endif /* _GNSS_SatMeasList_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-SgnMeasElement.c b/asn.1/lpp_generated/GNSS-SgnMeasElement.c new file mode 100644 index 00000000..0641ea26 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SgnMeasElement.c @@ -0,0 +1,136 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SgnMeasElement.h" + +static int +memb_gnss_CodePhaseAmbiguity_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_CodePhaseAmbiguity_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_SgnMeasElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SgnMeasElement, gnss_SignalID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SignalID" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SgnMeasElement, gnss_CodePhaseAmbiguity), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_CodePhaseAmbiguity_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_CodePhaseAmbiguity_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-CodePhaseAmbiguity" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SgnMeasElement, gnss_SatMeasList), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SatMeasList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-SatMeasList" + }, +}; +static const int asn_MAP_GNSS_SgnMeasElement_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SgnMeasElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SgnMeasElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SignalID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-CodePhaseAmbiguity */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gnss-SatMeasList */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SgnMeasElement_specs_1 = { + sizeof(struct GNSS_SgnMeasElement), + offsetof(struct GNSS_SgnMeasElement, _asn_ctx), + asn_MAP_GNSS_SgnMeasElement_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_GNSS_SgnMeasElement_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SgnMeasElement = { + "GNSS-SgnMeasElement", + "GNSS-SgnMeasElement", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SgnMeasElement_tags_1, + sizeof(asn_DEF_GNSS_SgnMeasElement_tags_1) + /sizeof(asn_DEF_GNSS_SgnMeasElement_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SgnMeasElement_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SgnMeasElement_tags_1) + /sizeof(asn_DEF_GNSS_SgnMeasElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SgnMeasElement_1, + 3, /* Elements count */ + &asn_SPC_GNSS_SgnMeasElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-SgnMeasElement.h b/asn.1/lpp_generated/GNSS-SgnMeasElement.h similarity index 77% rename from asn.1/generated/GNSS-SgnMeasElement.h rename to asn.1/lpp_generated/GNSS-SgnMeasElement.h index bfe8aab1..29a216e3 100644 --- a/asn.1/generated/GNSS-SgnMeasElement.h +++ b/asn.1/lpp_generated/GNSS-SgnMeasElement.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_SgnMeasElement_H_ @@ -24,7 +24,7 @@ extern "C" { /* GNSS-SgnMeasElement */ typedef struct GNSS_SgnMeasElement { GNSS_SignalID_t gnss_SignalID; - long *gnss_CodePhaseAmbiguity /* OPTIONAL */; + long *gnss_CodePhaseAmbiguity; /* OPTIONAL */ GNSS_SatMeasList_t gnss_SatMeasList; /* * This type is extensible, diff --git a/asn.1/lpp_generated/GNSS-SgnMeasList.c b/asn.1/lpp_generated/GNSS-SgnMeasList.c new file mode 100644 index 00000000..d70c714d --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SgnMeasList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SgnMeasList.h" + +#include "GNSS-SgnMeasElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_SgnMeasList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_SgnMeasList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_SgnMeasElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_SgnMeasList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_SgnMeasList_specs_1 = { + sizeof(struct GNSS_SgnMeasList), + offsetof(struct GNSS_SgnMeasList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SgnMeasList = { + "GNSS-SgnMeasList", + "GNSS-SgnMeasList", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_SgnMeasList_tags_1, + sizeof(asn_DEF_GNSS_SgnMeasList_tags_1) + /sizeof(asn_DEF_GNSS_SgnMeasList_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SgnMeasList_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SgnMeasList_tags_1) + /sizeof(asn_DEF_GNSS_SgnMeasList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_SgnMeasList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_SgnMeasList_1, + 1, /* Single element */ + &asn_SPC_GNSS_SgnMeasList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-SgnMeasList.h b/asn.1/lpp_generated/GNSS-SgnMeasList.h similarity index 79% rename from asn.1/generated/GNSS-SgnMeasList.h rename to asn.1/lpp_generated/GNSS-SgnMeasList.h index 37249f25..da6aea2a 100644 --- a/asn.1/generated/GNSS-SgnMeasList.h +++ b/asn.1/lpp_generated/GNSS-SgnMeasList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_SgnMeasList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_SgnMeasList_constr_1; } #endif -/* Referred external types */ -#include "GNSS-SgnMeasElement.h" - #endif /* _GNSS_SgnMeasList_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-SignalID.c b/asn.1/lpp_generated/GNSS-SignalID.c new file mode 100644 index 00000000..a13a0197 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SignalID.c @@ -0,0 +1,211 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SignalID.h" + +static int +memb_gnss_SignalID_Ext_r15_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 8L && value <= 23L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gnss_SignalID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_SignalID_Ext_r15_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 8, 23 } /* (8..23) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_SignalID_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_4[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SignalID__ext1, gnss_SignalID_Ext_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_SignalID_Ext_r15_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_SignalID_Ext_r15_constraint_4 + }, + 0, 0, /* No default value */ + "gnss-SignalID-Ext-r15" + }, +}; +static const int asn_MAP_ext1_oms_4[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-SignalID-Ext-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { + sizeof(struct GNSS_SignalID__ext1), + offsetof(struct GNSS_SignalID__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_4, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_4, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_4 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_4, + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_4, /* Same as above */ + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_4, + 1, /* Elements count */ + &asn_SPC_ext1_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SignalID_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SignalID, gnss_SignalID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_SignalID_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_SignalID_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-SignalID" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SignalID, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_SignalID_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SignalID_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SignalID_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SignalID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SignalID_specs_1 = { + sizeof(struct GNSS_SignalID), + offsetof(struct GNSS_SignalID, _asn_ctx), + asn_MAP_GNSS_SignalID_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_GNSS_SignalID_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SignalID = { + "GNSS-SignalID", + "GNSS-SignalID", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SignalID_tags_1, + sizeof(asn_DEF_GNSS_SignalID_tags_1) + /sizeof(asn_DEF_GNSS_SignalID_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SignalID_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SignalID_tags_1) + /sizeof(asn_DEF_GNSS_SignalID_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SignalID_1, + 2, /* Elements count */ + &asn_SPC_GNSS_SignalID_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-SignalID.h b/asn.1/lpp_generated/GNSS-SignalID.h similarity index 76% rename from asn.1/generated/GNSS-SignalID.h rename to asn.1/lpp_generated/GNSS-SignalID.h index cba4ced4..0cee34c3 100644 --- a/asn.1/generated/GNSS-SignalID.h +++ b/asn.1/lpp_generated/GNSS-SignalID.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_SignalID_H_ @@ -27,7 +27,7 @@ typedef struct GNSS_SignalID { * possible extensions are below. */ struct GNSS_SignalID__ext1 { - long *gnss_SignalID_Ext_r15 /* OPTIONAL */; + long *gnss_SignalID_Ext_r15; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/GNSS-SignalIDs.c b/asn.1/lpp_generated/GNSS-SignalIDs.c new file mode 100644 index 00000000..154b9aa7 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SignalIDs.c @@ -0,0 +1,223 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SignalIDs.h" + +static int +memb_gnss_SignalIDs_Ext_r15_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 16UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gnss_SignalIDs_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_SignalIDs_Ext_r15_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_SignalIDs_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_4[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SignalIDs__ext1, gnss_SignalIDs_Ext_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_SignalIDs_Ext_r15_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_SignalIDs_Ext_r15_constraint_4 + }, + 0, 0, /* No default value */ + "gnss-SignalIDs-Ext-r15" + }, +}; +static const int asn_MAP_ext1_oms_4[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-SignalIDs-Ext-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { + sizeof(struct GNSS_SignalIDs__ext1), + offsetof(struct GNSS_SignalIDs__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_4, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_4, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_4 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_4, + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_4, /* Same as above */ + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_4, + 1, /* Elements count */ + &asn_SPC_ext1_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SignalIDs_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SignalIDs, gnss_SignalIDs), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_SignalIDs_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_SignalIDs_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-SignalIDs" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SignalIDs, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_SignalIDs_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SignalIDs_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SignalIDs_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-SignalIDs */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SignalIDs_specs_1 = { + sizeof(struct GNSS_SignalIDs), + offsetof(struct GNSS_SignalIDs, _asn_ctx), + asn_MAP_GNSS_SignalIDs_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_GNSS_SignalIDs_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SignalIDs = { + "GNSS-SignalIDs", + "GNSS-SignalIDs", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SignalIDs_tags_1, + sizeof(asn_DEF_GNSS_SignalIDs_tags_1) + /sizeof(asn_DEF_GNSS_SignalIDs_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SignalIDs_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SignalIDs_tags_1) + /sizeof(asn_DEF_GNSS_SignalIDs_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SignalIDs_1, + 2, /* Elements count */ + &asn_SPC_GNSS_SignalIDs_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-SignalIDs.h b/asn.1/lpp_generated/GNSS-SignalIDs.h similarity index 76% rename from asn.1/generated/GNSS-SignalIDs.h rename to asn.1/lpp_generated/GNSS-SignalIDs.h index 9fc57ecd..bdf3a506 100644 --- a/asn.1/generated/GNSS-SignalIDs.h +++ b/asn.1/lpp_generated/GNSS-SignalIDs.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_SignalIDs_H_ @@ -27,7 +27,7 @@ typedef struct GNSS_SignalIDs { * possible extensions are below. */ struct GNSS_SignalIDs__ext1 { - BIT_STRING_t *gnss_SignalIDs_Ext_r15 /* OPTIONAL */; + BIT_STRING_t *gnss_SignalIDs_Ext_r15; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/GNSS-SignalMeasurementInformation.c b/asn.1/lpp_generated/GNSS-SignalMeasurementInformation.c new file mode 100644 index 00000000..49e9c70b --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SignalMeasurementInformation.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SignalMeasurementInformation.h" + +asn_TYPE_member_t asn_MBR_GNSS_SignalMeasurementInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SignalMeasurementInformation, measurementReferenceTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MeasurementReferenceTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "measurementReferenceTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SignalMeasurementInformation, gnss_MeasurementList), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_MeasurementList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-MeasurementList" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_SignalMeasurementInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SignalMeasurementInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* measurementReferenceTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-MeasurementList */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SignalMeasurementInformation_specs_1 = { + sizeof(struct GNSS_SignalMeasurementInformation), + offsetof(struct GNSS_SignalMeasurementInformation, _asn_ctx), + asn_MAP_GNSS_SignalMeasurementInformation_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SignalMeasurementInformation = { + "GNSS-SignalMeasurementInformation", + "GNSS-SignalMeasurementInformation", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SignalMeasurementInformation_tags_1, + sizeof(asn_DEF_GNSS_SignalMeasurementInformation_tags_1) + /sizeof(asn_DEF_GNSS_SignalMeasurementInformation_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SignalMeasurementInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SignalMeasurementInformation_tags_1) + /sizeof(asn_DEF_GNSS_SignalMeasurementInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SignalMeasurementInformation_1, + 2, /* Elements count */ + &asn_SPC_GNSS_SignalMeasurementInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-SignalMeasurementInformation.h b/asn.1/lpp_generated/GNSS-SignalMeasurementInformation.h similarity index 82% rename from asn.1/generated/GNSS-SignalMeasurementInformation.h rename to asn.1/lpp_generated/GNSS-SignalMeasurementInformation.h index 4659c2cb..91e8dcc7 100644 --- a/asn.1/generated/GNSS-SignalMeasurementInformation.h +++ b/asn.1/lpp_generated/GNSS-SignalMeasurementInformation.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_SignalMeasurementInformation_H_ diff --git a/asn.1/lpp_generated/GNSS-SubNetworkID-r15.c b/asn.1/lpp_generated/GNSS-SubNetworkID-r15.c new file mode 100644 index 00000000..feffa690 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SubNetworkID-r15.c @@ -0,0 +1,98 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SubNetworkID-r15.h" + +static int +memb_subNetworkID_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_subNetworkID_r15_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_SubNetworkID_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SubNetworkID_r15, subNetworkID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_subNetworkID_r15_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_subNetworkID_r15_constraint_1 + }, + 0, 0, /* No default value */ + "subNetworkID-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_SubNetworkID_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SubNetworkID_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* subNetworkID-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SubNetworkID_r15_specs_1 = { + sizeof(struct GNSS_SubNetworkID_r15), + offsetof(struct GNSS_SubNetworkID_r15, _asn_ctx), + asn_MAP_GNSS_SubNetworkID_r15_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SubNetworkID_r15 = { + "GNSS-SubNetworkID-r15", + "GNSS-SubNetworkID-r15", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SubNetworkID_r15_tags_1, + sizeof(asn_DEF_GNSS_SubNetworkID_r15_tags_1) + /sizeof(asn_DEF_GNSS_SubNetworkID_r15_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SubNetworkID_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SubNetworkID_r15_tags_1) + /sizeof(asn_DEF_GNSS_SubNetworkID_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SubNetworkID_r15_1, + 1, /* Elements count */ + &asn_SPC_GNSS_SubNetworkID_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-SubNetworkID-r15.h b/asn.1/lpp_generated/GNSS-SubNetworkID-r15.h similarity index 78% rename from asn.1/generated/GNSS-SubNetworkID-r15.h rename to asn.1/lpp_generated/GNSS-SubNetworkID-r15.h index 78d9c972..678ff405 100644 --- a/asn.1/generated/GNSS-SubNetworkID-r15.h +++ b/asn.1/lpp_generated/GNSS-SubNetworkID-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_SubNetworkID_r15_H_ diff --git a/asn.1/lpp_generated/GNSS-SupportElement.c b/asn.1/lpp_generated/GNSS-SupportElement.c new file mode 100644 index 00000000..00d0dc26 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SupportElement.c @@ -0,0 +1,539 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SupportElement.h" + +#include "SBAS-IDs.h" +#include "PositioningModes.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_adrEnhancementsSupport_r15_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ha_gnss_MetricsSupport_r17_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_fta_MeasSupport_6[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SupportElement__fta_MeasSupport, cellTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccessTypes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SupportElement__fta_MeasSupport, mode), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningModes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mode" + }, +}; +static const ber_tlv_tag_t asn_DEF_fta_MeasSupport_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_fta_MeasSupport_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* mode */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_fta_MeasSupport_specs_6 = { + sizeof(struct GNSS_SupportElement__fta_MeasSupport), + offsetof(struct GNSS_SupportElement__fta_MeasSupport, _asn_ctx), + asn_MAP_fta_MeasSupport_tag2el_6, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fta_MeasSupport_6 = { + "fta-MeasSupport", + "fta-MeasSupport", + &asn_OP_SEQUENCE, + asn_DEF_fta_MeasSupport_tags_6, + sizeof(asn_DEF_fta_MeasSupport_tags_6) + /sizeof(asn_DEF_fta_MeasSupport_tags_6[0]) - 1, /* 1 */ + asn_DEF_fta_MeasSupport_tags_6, /* Same as above */ + sizeof(asn_DEF_fta_MeasSupport_tags_6) + /sizeof(asn_DEF_fta_MeasSupport_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_fta_MeasSupport_6, + 2, /* Elements count */ + &asn_SPC_fta_MeasSupport_specs_6 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_adrEnhancementsSupport_r15_value2enum_14[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_adrEnhancementsSupport_r15_enum2value_14[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_adrEnhancementsSupport_r15_specs_14 = { + asn_MAP_adrEnhancementsSupport_r15_value2enum_14, /* "tag" => N; sorted by tag */ + asn_MAP_adrEnhancementsSupport_r15_enum2value_14, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_adrEnhancementsSupport_r15_tags_14[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_adrEnhancementsSupport_r15_14 = { + "adrEnhancementsSupport-r15", + "adrEnhancementsSupport-r15", + &asn_OP_NativeEnumerated, + asn_DEF_adrEnhancementsSupport_r15_tags_14, + sizeof(asn_DEF_adrEnhancementsSupport_r15_tags_14) + /sizeof(asn_DEF_adrEnhancementsSupport_r15_tags_14[0]) - 1, /* 1 */ + asn_DEF_adrEnhancementsSupport_r15_tags_14, /* Same as above */ + sizeof(asn_DEF_adrEnhancementsSupport_r15_tags_14) + /sizeof(asn_DEF_adrEnhancementsSupport_r15_tags_14[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_adrEnhancementsSupport_r15_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_adrEnhancementsSupport_r15_specs_14 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_13[] = { + { ATF_POINTER, 2, offsetof(struct GNSS_SupportElement__ext1, adrEnhancementsSupport_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_adrEnhancementsSupport_r15_14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "adrEnhancementsSupport-r15" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SupportElement__ext1, ha_gnss_Modes_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningModes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ha-gnss-Modes-r15" + }, +}; +static const int asn_MAP_ext1_oms_13[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_13[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* adrEnhancementsSupport-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ha-gnss-Modes-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_13 = { + sizeof(struct GNSS_SupportElement__ext1), + offsetof(struct GNSS_SupportElement__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_13, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_13, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_13 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_13, + sizeof(asn_DEF_ext1_tags_13) + /sizeof(asn_DEF_ext1_tags_13[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_13, /* Same as above */ + sizeof(asn_DEF_ext1_tags_13) + /sizeof(asn_DEF_ext1_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_13, + 2, /* Elements count */ + &asn_SPC_ext1_specs_13 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_ha_gnss_MetricsSupport_r17_value2enum_18[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_ha_gnss_MetricsSupport_r17_enum2value_18[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ha_gnss_MetricsSupport_r17_specs_18 = { + asn_MAP_ha_gnss_MetricsSupport_r17_value2enum_18, /* "tag" => N; sorted by tag */ + asn_MAP_ha_gnss_MetricsSupport_r17_enum2value_18, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ha_gnss_MetricsSupport_r17_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ha_gnss_MetricsSupport_r17_18 = { + "ha-gnss-MetricsSupport-r17", + "ha-gnss-MetricsSupport-r17", + &asn_OP_NativeEnumerated, + asn_DEF_ha_gnss_MetricsSupport_r17_tags_18, + sizeof(asn_DEF_ha_gnss_MetricsSupport_r17_tags_18) + /sizeof(asn_DEF_ha_gnss_MetricsSupport_r17_tags_18[0]) - 1, /* 1 */ + asn_DEF_ha_gnss_MetricsSupport_r17_tags_18, /* Same as above */ + sizeof(asn_DEF_ha_gnss_MetricsSupport_r17_tags_18) + /sizeof(asn_DEF_ha_gnss_MetricsSupport_r17_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ha_gnss_MetricsSupport_r17_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ha_gnss_MetricsSupport_r17_specs_18 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_17[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_SupportElement__ext2, ha_gnss_MetricsSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ha_gnss_MetricsSupport_r17_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ha-gnss-MetricsSupport-r17" + }, +}; +static const int asn_MAP_ext2_oms_17[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_17[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ha-gnss-MetricsSupport-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_17 = { + sizeof(struct GNSS_SupportElement__ext2), + offsetof(struct GNSS_SupportElement__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_17, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_17, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_17 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_17, + sizeof(asn_DEF_ext2_tags_17) + /sizeof(asn_DEF_ext2_tags_17[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_17, /* Same as above */ + sizeof(asn_DEF_ext2_tags_17) + /sizeof(asn_DEF_ext2_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_17, + 1, /* Elements count */ + &asn_SPC_ext2_specs_17 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_SupportElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SupportElement, gnss_ID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-ID" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SupportElement, sbas_IDs), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SBAS_IDs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sbas-IDs" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SupportElement, agnss_Modes), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningModes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "agnss-Modes" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SupportElement, gnss_Signals), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalIDs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-Signals" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SupportElement, fta_MeasSupport), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_fta_MeasSupport_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fta-MeasSupport" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SupportElement, adr_Support), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "adr-Support" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SupportElement, velocityMeasurementSupport), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "velocityMeasurementSupport" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_SupportElement, ext1), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_ext1_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SupportElement, ext2), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + 0, + &asn_DEF_ext2_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_GNSS_SupportElement_oms_1[] = { 1, 4, 7, 8 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SupportElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SupportElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-ID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sbas-IDs */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* agnss-Modes */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-Signals */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* fta-MeasSupport */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* adr-Support */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* velocityMeasurementSupport */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SupportElement_specs_1 = { + sizeof(struct GNSS_SupportElement), + offsetof(struct GNSS_SupportElement, _asn_ctx), + asn_MAP_GNSS_SupportElement_tag2el_1, + 9, /* Count of tags in the map */ + asn_MAP_GNSS_SupportElement_oms_1, /* Optional members */ + 2, 2, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SupportElement = { + "GNSS-SupportElement", + "GNSS-SupportElement", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SupportElement_tags_1, + sizeof(asn_DEF_GNSS_SupportElement_tags_1) + /sizeof(asn_DEF_GNSS_SupportElement_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SupportElement_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SupportElement_tags_1) + /sizeof(asn_DEF_GNSS_SupportElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SupportElement_1, + 9, /* Elements count */ + &asn_SPC_GNSS_SupportElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SupportElement.h b/asn.1/lpp_generated/GNSS-SupportElement.h new file mode 100644 index 00000000..ce788dc4 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SupportElement.h @@ -0,0 +1,92 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SupportElement_H_ +#define _GNSS_SupportElement_H_ + + +#include + +/* Including external dependencies */ +#include "GNSS-ID.h" +#include "PositioningModes.h" +#include "GNSS-SignalIDs.h" +#include +#include "AccessTypes.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_SupportElement__ext1__adrEnhancementsSupport_r15 { + GNSS_SupportElement__ext1__adrEnhancementsSupport_r15_true = 0 +} e_GNSS_SupportElement__ext1__adrEnhancementsSupport_r15; +typedef enum GNSS_SupportElement__ext2__ha_gnss_MetricsSupport_r17 { + GNSS_SupportElement__ext2__ha_gnss_MetricsSupport_r17_true = 0 +} e_GNSS_SupportElement__ext2__ha_gnss_MetricsSupport_r17; + +/* Forward declarations */ +struct SBAS_IDs; +struct PositioningModes; + +/* GNSS-SupportElement */ +typedef struct GNSS_SupportElement { + GNSS_ID_t gnss_ID; + struct SBAS_IDs *sbas_IDs; /* OPTIONAL */ + PositioningModes_t agnss_Modes; + GNSS_SignalIDs_t gnss_Signals; + struct GNSS_SupportElement__fta_MeasSupport { + AccessTypes_t cellTime; + PositioningModes_t mode; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *fta_MeasSupport; + BOOLEAN_t adr_Support; + BOOLEAN_t velocityMeasurementSupport; + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_SupportElement__ext1 { + long *adrEnhancementsSupport_r15; /* OPTIONAL */ + struct PositioningModes *ha_gnss_Modes_r15; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct GNSS_SupportElement__ext2 { + long *ha_gnss_MetricsSupport_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SupportElement_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_adrEnhancementsSupport_r15_14; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_ha_gnss_MetricsSupport_r17_18; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SupportElement; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SupportElement_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SupportElement_1[9]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SupportElement_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-SupportList.c b/asn.1/lpp_generated/GNSS-SupportList.c new file mode 100644 index 00000000..0fa33e8e --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SupportList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SupportList.h" + +#include "GNSS-SupportElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_SupportList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_SupportList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_SupportElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_SupportList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_SupportList_specs_1 = { + sizeof(struct GNSS_SupportList), + offsetof(struct GNSS_SupportList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SupportList = { + "GNSS-SupportList", + "GNSS-SupportList", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_SupportList_tags_1, + sizeof(asn_DEF_GNSS_SupportList_tags_1) + /sizeof(asn_DEF_GNSS_SupportList_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SupportList_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SupportList_tags_1) + /sizeof(asn_DEF_GNSS_SupportList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_SupportList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_SupportList_1, + 1, /* Single element */ + &asn_SPC_GNSS_SupportList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-SupportList.h b/asn.1/lpp_generated/GNSS-SupportList.h similarity index 79% rename from asn.1/generated/GNSS-SupportList.h rename to asn.1/lpp_generated/GNSS-SupportList.h index f62133b5..f78b0e01 100644 --- a/asn.1/generated/GNSS-SupportList.h +++ b/asn.1/lpp_generated/GNSS-SupportList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_SupportList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_SupportList_constr_1; } #endif -/* Referred external types */ -#include "GNSS-SupportElement.h" - #endif /* _GNSS_SupportList_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-SystemTime.c b/asn.1/lpp_generated/GNSS-SystemTime.c new file mode 100644 index 00000000..a5357af5 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SystemTime.c @@ -0,0 +1,293 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-SystemTime.h" + +#include "GPS-TOW-Assist.h" +static int +memb_gnss_DayNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gnss_TimeOfDay_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 86399L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gnss_TimeOfDayFrac_msec_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_notificationOfLeapSecond_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 2UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_DayNumber_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_TimeOfDay_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 0, 86399 } /* (0..86399) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_TimeOfDayFrac_msec_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_notificationOfLeapSecond_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_SystemTime_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SystemTime, gnss_TimeID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-TimeID" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SystemTime, gnss_DayNumber), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_DayNumber_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_DayNumber_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-DayNumber" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_SystemTime, gnss_TimeOfDay), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_TimeOfDay_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_TimeOfDay_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-TimeOfDay" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_SystemTime, gnss_TimeOfDayFrac_msec), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_TimeOfDayFrac_msec_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_TimeOfDayFrac_msec_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-TimeOfDayFrac-msec" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_SystemTime, notificationOfLeapSecond), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_notificationOfLeapSecond_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_notificationOfLeapSecond_constraint_1 + }, + 0, 0, /* No default value */ + "notificationOfLeapSecond" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_SystemTime, gps_TOW_Assist), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GPS_TOW_Assist, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gps-TOW-Assist" + }, +}; +static const int asn_MAP_GNSS_SystemTime_oms_1[] = { 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_GNSS_SystemTime_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_SystemTime_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-TimeID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-DayNumber */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-TimeOfDay */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-TimeOfDayFrac-msec */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* notificationOfLeapSecond */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* gps-TOW-Assist */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_SystemTime_specs_1 = { + sizeof(struct GNSS_SystemTime), + offsetof(struct GNSS_SystemTime, _asn_ctx), + asn_MAP_GNSS_SystemTime_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_GNSS_SystemTime_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_SystemTime = { + "GNSS-SystemTime", + "GNSS-SystemTime", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_SystemTime_tags_1, + sizeof(asn_DEF_GNSS_SystemTime_tags_1) + /sizeof(asn_DEF_GNSS_SystemTime_tags_1[0]), /* 1 */ + asn_DEF_GNSS_SystemTime_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_SystemTime_tags_1) + /sizeof(asn_DEF_GNSS_SystemTime_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_SystemTime_1, + 6, /* Elements count */ + &asn_SPC_GNSS_SystemTime_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-SystemTime.h b/asn.1/lpp_generated/GNSS-SystemTime.h new file mode 100644 index 00000000..12936266 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-SystemTime.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_SystemTime_H_ +#define _GNSS_SystemTime_H_ + + +#include + +/* Including external dependencies */ +#include "GNSS-ID.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GPS_TOW_Assist; + +/* GNSS-SystemTime */ +typedef struct GNSS_SystemTime { + GNSS_ID_t gnss_TimeID; + long gnss_DayNumber; + long gnss_TimeOfDay; + long *gnss_TimeOfDayFrac_msec; /* OPTIONAL */ + BIT_STRING_t *notificationOfLeapSecond; /* OPTIONAL */ + struct GPS_TOW_Assist *gps_TOW_Assist; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_SystemTime_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_SystemTime; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_SystemTime_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_SystemTime_1[6]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_SystemTime_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-TargetDeviceErrorCauses.c b/asn.1/lpp_generated/GNSS-TargetDeviceErrorCauses.c new file mode 100644 index 00000000..8cf0d80e --- /dev/null +++ b/asn.1/lpp_generated/GNSS-TargetDeviceErrorCauses.c @@ -0,0 +1,317 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-TargetDeviceErrorCauses.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_remoteUE_Indication_r18_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 36, "thereWereNotEnoughSatellitesReceived" }, + { 2, 21, "assistanceDataMissing" }, + { 3, 35, "notAllRequestedMeasurementsPossible" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_enum2value_2[] = { + 2, /* assistanceDataMissing(2) */ + 3, /* notAllRequestedMeasurementsPossible(3) */ + 1, /* thereWereNotEnoughSatellitesReceived(1) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_specs_2 = { + asn_MAP_cause_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_enum2value_2, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_2 = { + "cause", + "cause", + &asn_OP_NativeEnumerated, + asn_DEF_cause_tags_2, + sizeof(asn_DEF_cause_tags_2) + /sizeof(asn_DEF_cause_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_tags_2) + /sizeof(asn_DEF_cause_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_remoteUE_Indication_r18_value2enum_13[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_remoteUE_Indication_r18_enum2value_13[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_remoteUE_Indication_r18_specs_13 = { + asn_MAP_remoteUE_Indication_r18_value2enum_13, /* "tag" => N; sorted by tag */ + asn_MAP_remoteUE_Indication_r18_enum2value_13, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_remoteUE_Indication_r18_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_remoteUE_Indication_r18_13 = { + "remoteUE-Indication-r18", + "remoteUE-Indication-r18", + &asn_OP_NativeEnumerated, + asn_DEF_remoteUE_Indication_r18_tags_13, + sizeof(asn_DEF_remoteUE_Indication_r18_tags_13) + /sizeof(asn_DEF_remoteUE_Indication_r18_tags_13[0]) - 1, /* 1 */ + asn_DEF_remoteUE_Indication_r18_tags_13, /* Same as above */ + sizeof(asn_DEF_remoteUE_Indication_r18_tags_13) + /sizeof(asn_DEF_remoteUE_Indication_r18_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_remoteUE_Indication_r18_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_remoteUE_Indication_r18_specs_13 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_12[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_TargetDeviceErrorCauses__ext1, remoteUE_Indication_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_remoteUE_Indication_r18_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "remoteUE-Indication-r18" + }, +}; +static const int asn_MAP_ext1_oms_12[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_12[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* remoteUE-Indication-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_12 = { + sizeof(struct GNSS_TargetDeviceErrorCauses__ext1), + offsetof(struct GNSS_TargetDeviceErrorCauses__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_12, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_12, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_12 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_12, + sizeof(asn_DEF_ext1_tags_12) + /sizeof(asn_DEF_ext1_tags_12[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_12, /* Same as above */ + sizeof(asn_DEF_ext1_tags_12) + /sizeof(asn_DEF_ext1_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_12, + 1, /* Elements count */ + &asn_SPC_ext1_specs_12 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_GNSS_TargetDeviceErrorCauses_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_TargetDeviceErrorCauses, cause), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause" + }, + { ATF_POINTER, 4, offsetof(struct GNSS_TargetDeviceErrorCauses, fineTimeAssistanceMeasurementsNotPossible), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fineTimeAssistanceMeasurementsNotPossible" + }, + { ATF_POINTER, 3, offsetof(struct GNSS_TargetDeviceErrorCauses, adrMeasurementsNotPossible), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "adrMeasurementsNotPossible" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_TargetDeviceErrorCauses, multiFrequencyMeasurementsNotPossible), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "multiFrequencyMeasurementsNotPossible" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_TargetDeviceErrorCauses, ext1), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext1_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_GNSS_TargetDeviceErrorCauses_oms_1[] = { 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_GNSS_TargetDeviceErrorCauses_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_TargetDeviceErrorCauses_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* fineTimeAssistanceMeasurementsNotPossible */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* adrMeasurementsNotPossible */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* multiFrequencyMeasurementsNotPossible */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_TargetDeviceErrorCauses_specs_1 = { + sizeof(struct GNSS_TargetDeviceErrorCauses), + offsetof(struct GNSS_TargetDeviceErrorCauses, _asn_ctx), + asn_MAP_GNSS_TargetDeviceErrorCauses_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_GNSS_TargetDeviceErrorCauses_oms_1, /* Optional members */ + 3, 1, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_TargetDeviceErrorCauses = { + "GNSS-TargetDeviceErrorCauses", + "GNSS-TargetDeviceErrorCauses", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_TargetDeviceErrorCauses_tags_1, + sizeof(asn_DEF_GNSS_TargetDeviceErrorCauses_tags_1) + /sizeof(asn_DEF_GNSS_TargetDeviceErrorCauses_tags_1[0]), /* 1 */ + asn_DEF_GNSS_TargetDeviceErrorCauses_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_TargetDeviceErrorCauses_tags_1) + /sizeof(asn_DEF_GNSS_TargetDeviceErrorCauses_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_TargetDeviceErrorCauses_1, + 5, /* Elements count */ + &asn_SPC_GNSS_TargetDeviceErrorCauses_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-TargetDeviceErrorCauses.h b/asn.1/lpp_generated/GNSS-TargetDeviceErrorCauses.h new file mode 100644 index 00000000..8d03b5ed --- /dev/null +++ b/asn.1/lpp_generated/GNSS-TargetDeviceErrorCauses.h @@ -0,0 +1,70 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_TargetDeviceErrorCauses_H_ +#define _GNSS_TargetDeviceErrorCauses_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GNSS_TargetDeviceErrorCauses__cause { + GNSS_TargetDeviceErrorCauses__cause_undefined = 0, + GNSS_TargetDeviceErrorCauses__cause_thereWereNotEnoughSatellitesReceived = 1, + GNSS_TargetDeviceErrorCauses__cause_assistanceDataMissing = 2, + GNSS_TargetDeviceErrorCauses__cause_notAllRequestedMeasurementsPossible = 3 + /* + * Enumeration is extensible + */ +} e_GNSS_TargetDeviceErrorCauses__cause; +typedef enum GNSS_TargetDeviceErrorCauses__ext1__remoteUE_Indication_r18 { + GNSS_TargetDeviceErrorCauses__ext1__remoteUE_Indication_r18_true = 0 +} e_GNSS_TargetDeviceErrorCauses__ext1__remoteUE_Indication_r18; + +/* GNSS-TargetDeviceErrorCauses */ +typedef struct GNSS_TargetDeviceErrorCauses { + long cause; + NULL_t *fineTimeAssistanceMeasurementsNotPossible; /* OPTIONAL */ + NULL_t *adrMeasurementsNotPossible; /* OPTIONAL */ + NULL_t *multiFrequencyMeasurementsNotPossible; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct GNSS_TargetDeviceErrorCauses__ext1 { + long *remoteUE_Indication_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_TargetDeviceErrorCauses_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_cause_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_remoteUE_Indication_r18_13; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_TargetDeviceErrorCauses; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_TargetDeviceErrorCauses_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_TargetDeviceErrorCauses_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_TargetDeviceErrorCauses_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-TimeModelElement.c b/asn.1/lpp_generated/GNSS-TimeModelElement.c new file mode 100644 index 00000000..ce2b7762 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-TimeModelElement.c @@ -0,0 +1,400 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-TimeModelElement.h" + +static int +memb_gnss_TimeModelRefTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_tA0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -67108864L && value <= 67108863L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_tA1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -4096L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_tA2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -64L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gnss_TO_ID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_weekNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_deltaT_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_TimeModelRefTime_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tA0_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 27, -1, -67108864, 67108863 } /* (-67108864..67108863) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tA1_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tA2_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_TO_ID_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 1, 15 } /* (1..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_weekNumber_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, 0, 8191 } /* (0..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_deltaT_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_TimeModelElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_TimeModelElement, gnss_TimeModelRefTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_TimeModelRefTime_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_TimeModelRefTime_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-TimeModelRefTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_TimeModelElement, tA0), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tA0_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tA0_constraint_1 + }, + 0, 0, /* No default value */ + "tA0" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_TimeModelElement, tA1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tA1_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tA1_constraint_1 + }, + 0, 0, /* No default value */ + "tA1" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_TimeModelElement, tA2), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tA2_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tA2_constraint_1 + }, + 0, 0, /* No default value */ + "tA2" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_TimeModelElement, gnss_TO_ID), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_TO_ID_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_TO_ID_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-TO-ID" + }, + { ATF_POINTER, 2, offsetof(struct GNSS_TimeModelElement, weekNumber), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_weekNumber_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_weekNumber_constraint_1 + }, + 0, 0, /* No default value */ + "weekNumber" + }, + { ATF_POINTER, 1, offsetof(struct GNSS_TimeModelElement, deltaT), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_deltaT_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_deltaT_constraint_1 + }, + 0, 0, /* No default value */ + "deltaT" + }, +}; +static const int asn_MAP_GNSS_TimeModelElement_oms_1[] = { 2, 3, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_GNSS_TimeModelElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_TimeModelElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-TimeModelRefTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tA0 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* tA1 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* tA2 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-TO-ID */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* weekNumber */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* deltaT */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_TimeModelElement_specs_1 = { + sizeof(struct GNSS_TimeModelElement), + offsetof(struct GNSS_TimeModelElement, _asn_ctx), + asn_MAP_GNSS_TimeModelElement_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_GNSS_TimeModelElement_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_TimeModelElement = { + "GNSS-TimeModelElement", + "GNSS-TimeModelElement", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_TimeModelElement_tags_1, + sizeof(asn_DEF_GNSS_TimeModelElement_tags_1) + /sizeof(asn_DEF_GNSS_TimeModelElement_tags_1[0]), /* 1 */ + asn_DEF_GNSS_TimeModelElement_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_TimeModelElement_tags_1) + /sizeof(asn_DEF_GNSS_TimeModelElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_TimeModelElement_1, + 7, /* Elements count */ + &asn_SPC_GNSS_TimeModelElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GNSS-TimeModelElement.h b/asn.1/lpp_generated/GNSS-TimeModelElement.h new file mode 100644 index 00000000..8501b226 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-TimeModelElement.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GNSS_TimeModelElement_H_ +#define _GNSS_TimeModelElement_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GNSS-TimeModelElement */ +typedef struct GNSS_TimeModelElement { + long gnss_TimeModelRefTime; + long tA0; + long *tA1; /* OPTIONAL */ + long *tA2; /* OPTIONAL */ + long gnss_TO_ID; + long *weekNumber; /* OPTIONAL */ + long *deltaT; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GNSS_TimeModelElement_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GNSS_TimeModelElement; +extern asn_SEQUENCE_specifics_t asn_SPC_GNSS_TimeModelElement_specs_1; +extern asn_TYPE_member_t asn_MBR_GNSS_TimeModelElement_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GNSS_TimeModelElement_H_ */ +#include diff --git a/asn.1/lpp_generated/GNSS-TimeModelElementReq.c b/asn.1/lpp_generated/GNSS-TimeModelElementReq.c new file mode 100644 index 00000000..31908971 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-TimeModelElementReq.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-TimeModelElementReq.h" + +static int +memb_gnss_TO_IDsReq_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_TO_IDsReq_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 1, 15 } /* (1..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_TimeModelElementReq_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_TimeModelElementReq, gnss_TO_IDsReq), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_TO_IDsReq_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_TO_IDsReq_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-TO-IDsReq" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_TimeModelElementReq, deltaTreq), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "deltaTreq" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_TimeModelElementReq_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_TimeModelElementReq_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-TO-IDsReq */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* deltaTreq */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_TimeModelElementReq_specs_1 = { + sizeof(struct GNSS_TimeModelElementReq), + offsetof(struct GNSS_TimeModelElementReq, _asn_ctx), + asn_MAP_GNSS_TimeModelElementReq_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_TimeModelElementReq = { + "GNSS-TimeModelElementReq", + "GNSS-TimeModelElementReq", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_TimeModelElementReq_tags_1, + sizeof(asn_DEF_GNSS_TimeModelElementReq_tags_1) + /sizeof(asn_DEF_GNSS_TimeModelElementReq_tags_1[0]), /* 1 */ + asn_DEF_GNSS_TimeModelElementReq_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_TimeModelElementReq_tags_1) + /sizeof(asn_DEF_GNSS_TimeModelElementReq_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_TimeModelElementReq_1, + 2, /* Elements count */ + &asn_SPC_GNSS_TimeModelElementReq_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-TimeModelElementReq.h b/asn.1/lpp_generated/GNSS-TimeModelElementReq.h similarity index 79% rename from asn.1/generated/GNSS-TimeModelElementReq.h rename to asn.1/lpp_generated/GNSS-TimeModelElementReq.h index a6f687da..2f257d9e 100644 --- a/asn.1/generated/GNSS-TimeModelElementReq.h +++ b/asn.1/lpp_generated/GNSS-TimeModelElementReq.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_TimeModelElementReq_H_ diff --git a/asn.1/lpp_generated/GNSS-TimeModelList.c b/asn.1/lpp_generated/GNSS-TimeModelList.c new file mode 100644 index 00000000..c675c680 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-TimeModelList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-TimeModelList.h" + +#include "GNSS-TimeModelElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_TimeModelList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 15 } /* (SIZE(1..15)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_TimeModelList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_TimeModelElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_TimeModelList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_TimeModelList_specs_1 = { + sizeof(struct GNSS_TimeModelList), + offsetof(struct GNSS_TimeModelList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_TimeModelList = { + "GNSS-TimeModelList", + "GNSS-TimeModelList", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_TimeModelList_tags_1, + sizeof(asn_DEF_GNSS_TimeModelList_tags_1) + /sizeof(asn_DEF_GNSS_TimeModelList_tags_1[0]), /* 1 */ + asn_DEF_GNSS_TimeModelList_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_TimeModelList_tags_1) + /sizeof(asn_DEF_GNSS_TimeModelList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_TimeModelList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_TimeModelList_1, + 1, /* Single element */ + &asn_SPC_GNSS_TimeModelList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-TimeModelList.h b/asn.1/lpp_generated/GNSS-TimeModelList.h similarity index 79% rename from asn.1/generated/GNSS-TimeModelList.h rename to asn.1/lpp_generated/GNSS-TimeModelList.h index 0f70985c..8b1df32b 100644 --- a/asn.1/generated/GNSS-TimeModelList.h +++ b/asn.1/lpp_generated/GNSS-TimeModelList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_TimeModelList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_TimeModelList_constr_1; } #endif -/* Referred external types */ -#include "GNSS-TimeModelElement.h" - #endif /* _GNSS_TimeModelList_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-TimeModelListReq.c b/asn.1/lpp_generated/GNSS-TimeModelListReq.c new file mode 100644 index 00000000..97f90b99 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-TimeModelListReq.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-TimeModelListReq.h" + +#include "GNSS-TimeModelElementReq.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_TimeModelListReq_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 15 } /* (SIZE(1..15)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_TimeModelListReq_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_TimeModelElementReq, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSS_TimeModelListReq_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GNSS_TimeModelListReq_specs_1 = { + sizeof(struct GNSS_TimeModelListReq), + offsetof(struct GNSS_TimeModelListReq, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_TimeModelListReq = { + "GNSS-TimeModelListReq", + "GNSS-TimeModelListReq", + &asn_OP_SEQUENCE_OF, + asn_DEF_GNSS_TimeModelListReq_tags_1, + sizeof(asn_DEF_GNSS_TimeModelListReq_tags_1) + /sizeof(asn_DEF_GNSS_TimeModelListReq_tags_1[0]), /* 1 */ + asn_DEF_GNSS_TimeModelListReq_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_TimeModelListReq_tags_1) + /sizeof(asn_DEF_GNSS_TimeModelListReq_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_TimeModelListReq_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GNSS_TimeModelListReq_1, + 1, /* Single element */ + &asn_SPC_GNSS_TimeModelListReq_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-TimeModelListReq.h b/asn.1/lpp_generated/GNSS-TimeModelListReq.h similarity index 80% rename from asn.1/generated/GNSS-TimeModelListReq.h rename to asn.1/lpp_generated/GNSS-TimeModelListReq.h index dfd376f1..887071a1 100644 --- a/asn.1/generated/GNSS-TimeModelListReq.h +++ b/asn.1/lpp_generated/GNSS-TimeModelListReq.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_TimeModelListReq_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GNSS_TimeModelListReq_constr_1; } #endif -/* Referred external types */ -#include "GNSS-TimeModelElementReq.h" - #endif /* _GNSS_TimeModelListReq_H_ */ #include diff --git a/asn.1/lpp_generated/GNSS-TimeModelListSupport.c b/asn.1/lpp_generated/GNSS-TimeModelListSupport.c new file mode 100644 index 00000000..48506165 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-TimeModelListSupport.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-TimeModelListSupport.h" + +static const ber_tlv_tag_t asn_DEF_GNSS_TimeModelListSupport_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_TimeModelListSupport_specs_1 = { + sizeof(struct GNSS_TimeModelListSupport), + offsetof(struct GNSS_TimeModelListSupport, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_TimeModelListSupport = { + "GNSS-TimeModelListSupport", + "GNSS-TimeModelListSupport", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_TimeModelListSupport_tags_1, + sizeof(asn_DEF_GNSS_TimeModelListSupport_tags_1) + /sizeof(asn_DEF_GNSS_TimeModelListSupport_tags_1[0]), /* 1 */ + asn_DEF_GNSS_TimeModelListSupport_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_TimeModelListSupport_tags_1) + /sizeof(asn_DEF_GNSS_TimeModelListSupport_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_GNSS_TimeModelListSupport_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-TimeModelListSupport.h b/asn.1/lpp_generated/GNSS-TimeModelListSupport.h similarity index 77% rename from asn.1/generated/GNSS-TimeModelListSupport.h rename to asn.1/lpp_generated/GNSS-TimeModelListSupport.h index ed9ecdc6..5c4d9aa1 100644 --- a/asn.1/generated/GNSS-TimeModelListSupport.h +++ b/asn.1/lpp_generated/GNSS-TimeModelListSupport.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_TimeModelListSupport_H_ diff --git a/asn.1/lpp_generated/GNSS-UTC-Model.c b/asn.1/lpp_generated/GNSS-UTC-Model.c new file mode 100644 index 00000000..96da4ed6 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-UTC-Model.c @@ -0,0 +1,142 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-UTC-Model.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GNSS_UTC_Model_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_UTC_Model_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSS_UTC_Model, choice.utcModel1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTC_ModelSet1, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utcModel1" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_UTC_Model, choice.utcModel2), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTC_ModelSet2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utcModel2" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_UTC_Model, choice.utcModel3), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTC_ModelSet3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utcModel3" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_UTC_Model, choice.utcModel4), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTC_ModelSet4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utcModel4" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSS_UTC_Model, choice.utcModel5_r12), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTC_ModelSet5_r12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utcModel5-r12" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_UTC_Model_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utcModel1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* utcModel2 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* utcModel3 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* utcModel4 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* utcModel5-r12 */ +}; +asn_CHOICE_specifics_t asn_SPC_GNSS_UTC_Model_specs_1 = { + sizeof(struct GNSS_UTC_Model), + offsetof(struct GNSS_UTC_Model, _asn_ctx), + offsetof(struct GNSS_UTC_Model, present), + sizeof(((struct GNSS_UTC_Model *)0)->present), + asn_MAP_GNSS_UTC_Model_tag2el_1, + 5, /* Count of tags in the map */ + 0, 0, + 4 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_UTC_Model = { + "GNSS-UTC-Model", + "GNSS-UTC-Model", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GNSS_UTC_Model_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_GNSS_UTC_Model_1, + 5, /* Elements count */ + &asn_SPC_GNSS_UTC_Model_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-UTC-Model.h b/asn.1/lpp_generated/GNSS-UTC-Model.h similarity index 86% rename from asn.1/generated/GNSS-UTC-Model.h rename to asn.1/lpp_generated/GNSS-UTC-Model.h index 60c0134e..7a0f5cda 100644 --- a/asn.1/generated/GNSS-UTC-Model.h +++ b/asn.1/lpp_generated/GNSS-UTC-Model.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_UTC_Model_H_ diff --git a/asn.1/lpp_generated/GNSS-UTC-ModelReq.c b/asn.1/lpp_generated/GNSS-UTC-ModelReq.c new file mode 100644 index 00000000..e60c11f7 --- /dev/null +++ b/asn.1/lpp_generated/GNSS-UTC-ModelReq.c @@ -0,0 +1,100 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-UTC-ModelReq.h" + +static int +memb_modelID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 8L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_modelID_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_UTC_ModelReq_1[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_UTC_ModelReq, modelID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_modelID_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_modelID_constraint_1 + }, + 0, 0, /* No default value */ + "modelID" + }, +}; +static const int asn_MAP_GNSS_UTC_ModelReq_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_GNSS_UTC_ModelReq_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_UTC_ModelReq_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* modelID */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_UTC_ModelReq_specs_1 = { + sizeof(struct GNSS_UTC_ModelReq), + offsetof(struct GNSS_UTC_ModelReq, _asn_ctx), + asn_MAP_GNSS_UTC_ModelReq_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_GNSS_UTC_ModelReq_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_UTC_ModelReq = { + "GNSS-UTC-ModelReq", + "GNSS-UTC-ModelReq", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_UTC_ModelReq_tags_1, + sizeof(asn_DEF_GNSS_UTC_ModelReq_tags_1) + /sizeof(asn_DEF_GNSS_UTC_ModelReq_tags_1[0]), /* 1 */ + asn_DEF_GNSS_UTC_ModelReq_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_UTC_ModelReq_tags_1) + /sizeof(asn_DEF_GNSS_UTC_ModelReq_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_UTC_ModelReq_1, + 1, /* Elements count */ + &asn_SPC_GNSS_UTC_ModelReq_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-UTC-ModelReq.h b/asn.1/lpp_generated/GNSS-UTC-ModelReq.h similarity index 75% rename from asn.1/generated/GNSS-UTC-ModelReq.h rename to asn.1/lpp_generated/GNSS-UTC-ModelReq.h index e56b265c..0197f4b2 100644 --- a/asn.1/generated/GNSS-UTC-ModelReq.h +++ b/asn.1/lpp_generated/GNSS-UTC-ModelReq.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_UTC_ModelReq_H_ @@ -21,7 +21,7 @@ extern "C" { /* GNSS-UTC-ModelReq */ typedef struct GNSS_UTC_ModelReq { - long *modelID /* OPTIONAL */; + long *modelID; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/GNSS-UTC-ModelSupport.c b/asn.1/lpp_generated/GNSS-UTC-ModelSupport.c new file mode 100644 index 00000000..85d8fa8f --- /dev/null +++ b/asn.1/lpp_generated/GNSS-UTC-ModelSupport.c @@ -0,0 +1,106 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GNSS-UTC-ModelSupport.h" + +static int +memb_utc_Model_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utc_Model_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GNSS_UTC_ModelSupport_1[] = { + { ATF_POINTER, 1, offsetof(struct GNSS_UTC_ModelSupport, utc_Model), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utc_Model_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utc_Model_constraint_1 + }, + 0, 0, /* No default value */ + "utc-Model" + }, +}; +static const int asn_MAP_GNSS_UTC_ModelSupport_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_GNSS_UTC_ModelSupport_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSS_UTC_ModelSupport_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* utc-Model */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSS_UTC_ModelSupport_specs_1 = { + sizeof(struct GNSS_UTC_ModelSupport), + offsetof(struct GNSS_UTC_ModelSupport, _asn_ctx), + asn_MAP_GNSS_UTC_ModelSupport_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_GNSS_UTC_ModelSupport_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSS_UTC_ModelSupport = { + "GNSS-UTC-ModelSupport", + "GNSS-UTC-ModelSupport", + &asn_OP_SEQUENCE, + asn_DEF_GNSS_UTC_ModelSupport_tags_1, + sizeof(asn_DEF_GNSS_UTC_ModelSupport_tags_1) + /sizeof(asn_DEF_GNSS_UTC_ModelSupport_tags_1[0]), /* 1 */ + asn_DEF_GNSS_UTC_ModelSupport_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSS_UTC_ModelSupport_tags_1) + /sizeof(asn_DEF_GNSS_UTC_ModelSupport_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSS_UTC_ModelSupport_1, + 1, /* Elements count */ + &asn_SPC_GNSS_UTC_ModelSupport_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSS-UTC-ModelSupport.h b/asn.1/lpp_generated/GNSS-UTC-ModelSupport.h similarity index 80% rename from asn.1/generated/GNSS-UTC-ModelSupport.h rename to asn.1/lpp_generated/GNSS-UTC-ModelSupport.h index 66b8483e..823c6bb6 100644 --- a/asn.1/generated/GNSS-UTC-ModelSupport.h +++ b/asn.1/lpp_generated/GNSS-UTC-ModelSupport.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GNSS_UTC_ModelSupport_H_ @@ -30,7 +30,7 @@ typedef enum GNSS_UTC_ModelSupport__utc_Model { /* GNSS-UTC-ModelSupport */ typedef struct GNSS_UTC_ModelSupport { - BIT_STRING_t *utc_Model /* OPTIONAL */; + BIT_STRING_t *utc_Model; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/GPS-TOW-Assist.c b/asn.1/lpp_generated/GPS-TOW-Assist.c new file mode 100644 index 00000000..4f652a5c --- /dev/null +++ b/asn.1/lpp_generated/GPS-TOW-Assist.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GPS-TOW-Assist.h" + +#include "GPS-TOW-AssistElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GPS_TOW_Assist_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GPS_TOW_Assist_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GPS_TOW_AssistElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GPS_TOW_Assist_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GPS_TOW_Assist_specs_1 = { + sizeof(struct GPS_TOW_Assist), + offsetof(struct GPS_TOW_Assist, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GPS_TOW_Assist = { + "GPS-TOW-Assist", + "GPS-TOW-Assist", + &asn_OP_SEQUENCE_OF, + asn_DEF_GPS_TOW_Assist_tags_1, + sizeof(asn_DEF_GPS_TOW_Assist_tags_1) + /sizeof(asn_DEF_GPS_TOW_Assist_tags_1[0]), /* 1 */ + asn_DEF_GPS_TOW_Assist_tags_1, /* Same as above */ + sizeof(asn_DEF_GPS_TOW_Assist_tags_1) + /sizeof(asn_DEF_GPS_TOW_Assist_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GPS_TOW_Assist_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GPS_TOW_Assist_1, + 1, /* Single element */ + &asn_SPC_GPS_TOW_Assist_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GPS-TOW-Assist.h b/asn.1/lpp_generated/GPS-TOW-Assist.h similarity index 78% rename from asn.1/generated/GPS-TOW-Assist.h rename to asn.1/lpp_generated/GPS-TOW-Assist.h index 2996d28f..80e874b7 100644 --- a/asn.1/generated/GPS-TOW-Assist.h +++ b/asn.1/lpp_generated/GPS-TOW-Assist.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GPS_TOW_Assist_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GPS_TOW_Assist_constr_1; } #endif -/* Referred external types */ -#include "GPS-TOW-AssistElement.h" - #endif /* _GPS_TOW_Assist_H_ */ #include diff --git a/asn.1/lpp_generated/GPS-TOW-AssistElement.c b/asn.1/lpp_generated/GPS-TOW-AssistElement.c new file mode 100644 index 00000000..aff3810a --- /dev/null +++ b/asn.1/lpp_generated/GPS-TOW-AssistElement.c @@ -0,0 +1,298 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GPS-TOW-AssistElement.h" + +static int +memb_satelliteID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 64L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_tlmWord_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_antiSpoof_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_alert_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_tlmRsvdBits_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_satelliteID_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (1..64) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tlmWord_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_antiSpoof_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_alert_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tlmRsvdBits_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GPS_TOW_AssistElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GPS_TOW_AssistElement, satelliteID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_satelliteID_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_satelliteID_constraint_1 + }, + 0, 0, /* No default value */ + "satelliteID" + }, + { ATF_NOFLAGS, 0, offsetof(struct GPS_TOW_AssistElement, tlmWord), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tlmWord_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tlmWord_constraint_1 + }, + 0, 0, /* No default value */ + "tlmWord" + }, + { ATF_NOFLAGS, 0, offsetof(struct GPS_TOW_AssistElement, antiSpoof), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_antiSpoof_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_antiSpoof_constraint_1 + }, + 0, 0, /* No default value */ + "antiSpoof" + }, + { ATF_NOFLAGS, 0, offsetof(struct GPS_TOW_AssistElement, alert), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_alert_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_alert_constraint_1 + }, + 0, 0, /* No default value */ + "alert" + }, + { ATF_NOFLAGS, 0, offsetof(struct GPS_TOW_AssistElement, tlmRsvdBits), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tlmRsvdBits_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tlmRsvdBits_constraint_1 + }, + 0, 0, /* No default value */ + "tlmRsvdBits" + }, +}; +static const ber_tlv_tag_t asn_DEF_GPS_TOW_AssistElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GPS_TOW_AssistElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* satelliteID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tlmWord */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* antiSpoof */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* alert */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* tlmRsvdBits */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GPS_TOW_AssistElement_specs_1 = { + sizeof(struct GPS_TOW_AssistElement), + offsetof(struct GPS_TOW_AssistElement, _asn_ctx), + asn_MAP_GPS_TOW_AssistElement_tag2el_1, + 5, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GPS_TOW_AssistElement = { + "GPS-TOW-AssistElement", + "GPS-TOW-AssistElement", + &asn_OP_SEQUENCE, + asn_DEF_GPS_TOW_AssistElement_tags_1, + sizeof(asn_DEF_GPS_TOW_AssistElement_tags_1) + /sizeof(asn_DEF_GPS_TOW_AssistElement_tags_1[0]), /* 1 */ + asn_DEF_GPS_TOW_AssistElement_tags_1, /* Same as above */ + sizeof(asn_DEF_GPS_TOW_AssistElement_tags_1) + /sizeof(asn_DEF_GPS_TOW_AssistElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GPS_TOW_AssistElement_1, + 5, /* Elements count */ + &asn_SPC_GPS_TOW_AssistElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GPS-TOW-AssistElement.h b/asn.1/lpp_generated/GPS-TOW-AssistElement.h similarity index 79% rename from asn.1/generated/GPS-TOW-AssistElement.h rename to asn.1/lpp_generated/GPS-TOW-AssistElement.h index 2206268e..8aac5cf0 100644 --- a/asn.1/generated/GPS-TOW-AssistElement.h +++ b/asn.1/lpp_generated/GPS-TOW-AssistElement.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GPS_TOW_AssistElement_H_ diff --git a/asn.1/lpp_generated/Geometric-Ionospheric-Corrections-Differences-Element-r15.c b/asn.1/lpp_generated/Geometric-Ionospheric-Corrections-Differences-Element-r15.c new file mode 100644 index 00000000..fad7a86e --- /dev/null +++ b/asn.1/lpp_generated/Geometric-Ionospheric-Corrections-Differences-Element-r15.c @@ -0,0 +1,322 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Geometric-Ionospheric-Corrections-Differences-Element-r15.h" + +static int +memb_ambiguityStatusFlag_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_non_synch_count_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_geometricCarrierPhaseCorrectionDifference_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -65536L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_iod_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 11UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ionosphericCarrierPhaseCorrectionDifference_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -65536L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ambiguityStatusFlag_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_non_synch_count_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_geometricCarrierPhaseCorrectionDifference_r15_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, -65536, 65535 } /* (-65536..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_iod_r15_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 11, 11 } /* (SIZE(11..11)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ionosphericCarrierPhaseCorrectionDifference_r15_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, -65536, 65535 } /* (-65536..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Geometric_Ionospheric_Corrections_Differences_Element_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Geometric_Ionospheric_Corrections_Differences_Element_r15, svID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct Geometric_Ionospheric_Corrections_Differences_Element_r15, ambiguityStatusFlag_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ambiguityStatusFlag_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ambiguityStatusFlag_r15_constraint_1 + }, + 0, 0, /* No default value */ + "ambiguityStatusFlag-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct Geometric_Ionospheric_Corrections_Differences_Element_r15, non_synch_count_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_non_synch_count_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_non_synch_count_r15_constraint_1 + }, + 0, 0, /* No default value */ + "non-synch-count-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct Geometric_Ionospheric_Corrections_Differences_Element_r15, geometricCarrierPhaseCorrectionDifference_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_geometricCarrierPhaseCorrectionDifference_r15_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_geometricCarrierPhaseCorrectionDifference_r15_constraint_1 + }, + 0, 0, /* No default value */ + "geometricCarrierPhaseCorrectionDifference-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct Geometric_Ionospheric_Corrections_Differences_Element_r15, iod_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_iod_r15_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_iod_r15_constraint_1 + }, + 0, 0, /* No default value */ + "iod-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct Geometric_Ionospheric_Corrections_Differences_Element_r15, ionosphericCarrierPhaseCorrectionDifference_r15), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ionosphericCarrierPhaseCorrectionDifference_r15_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ionosphericCarrierPhaseCorrectionDifference_r15_constraint_1 + }, + 0, 0, /* No default value */ + "ionosphericCarrierPhaseCorrectionDifference-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_Geometric_Ionospheric_Corrections_Differences_Element_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Geometric_Ionospheric_Corrections_Differences_Element_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ambiguityStatusFlag-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* non-synch-count-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* geometricCarrierPhaseCorrectionDifference-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* iod-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ionosphericCarrierPhaseCorrectionDifference-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Geometric_Ionospheric_Corrections_Differences_Element_r15_specs_1 = { + sizeof(struct Geometric_Ionospheric_Corrections_Differences_Element_r15), + offsetof(struct Geometric_Ionospheric_Corrections_Differences_Element_r15, _asn_ctx), + asn_MAP_Geometric_Ionospheric_Corrections_Differences_Element_r15_tag2el_1, + 6, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Geometric_Ionospheric_Corrections_Differences_Element_r15 = { + "Geometric-Ionospheric-Corrections-Differences-Element-r15", + "Geometric-Ionospheric-Corrections-Differences-Element-r15", + &asn_OP_SEQUENCE, + asn_DEF_Geometric_Ionospheric_Corrections_Differences_Element_r15_tags_1, + sizeof(asn_DEF_Geometric_Ionospheric_Corrections_Differences_Element_r15_tags_1) + /sizeof(asn_DEF_Geometric_Ionospheric_Corrections_Differences_Element_r15_tags_1[0]), /* 1 */ + asn_DEF_Geometric_Ionospheric_Corrections_Differences_Element_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_Geometric_Ionospheric_Corrections_Differences_Element_r15_tags_1) + /sizeof(asn_DEF_Geometric_Ionospheric_Corrections_Differences_Element_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Geometric_Ionospheric_Corrections_Differences_Element_r15_1, + 6, /* Elements count */ + &asn_SPC_Geometric_Ionospheric_Corrections_Differences_Element_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Geometric-Ionospheric-Corrections-Differences-Element-r15.h b/asn.1/lpp_generated/Geometric-Ionospheric-Corrections-Differences-Element-r15.h similarity index 85% rename from asn.1/generated/Geometric-Ionospheric-Corrections-Differences-Element-r15.h rename to asn.1/lpp_generated/Geometric-Ionospheric-Corrections-Differences-Element-r15.h index 3ac682d8..4ef10493 100644 --- a/asn.1/generated/Geometric-Ionospheric-Corrections-Differences-Element-r15.h +++ b/asn.1/lpp_generated/Geometric-Ionospheric-Corrections-Differences-Element-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Geometric_Ionospheric_Corrections_Differences_Element_r15_H_ diff --git a/asn.1/lpp_generated/Geometric-Ionospheric-Corrections-Differences-r15.c b/asn.1/lpp_generated/Geometric-Ionospheric-Corrections-Differences-r15.c new file mode 100644 index 00000000..d966ad75 --- /dev/null +++ b/asn.1/lpp_generated/Geometric-Ionospheric-Corrections-Differences-r15.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Geometric-Ionospheric-Corrections-Differences-r15.h" + +#include "Geometric-Ionospheric-Corrections-Differences-Element-r15.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Geometric_Ionospheric_Corrections_Differences_r15_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Geometric_Ionospheric_Corrections_Differences_r15_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_Geometric_Ionospheric_Corrections_Differences_Element_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_Geometric_Ionospheric_Corrections_Differences_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_Geometric_Ionospheric_Corrections_Differences_r15_specs_1 = { + sizeof(struct Geometric_Ionospheric_Corrections_Differences_r15), + offsetof(struct Geometric_Ionospheric_Corrections_Differences_r15, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_Geometric_Ionospheric_Corrections_Differences_r15 = { + "Geometric-Ionospheric-Corrections-Differences-r15", + "Geometric-Ionospheric-Corrections-Differences-r15", + &asn_OP_SEQUENCE_OF, + asn_DEF_Geometric_Ionospheric_Corrections_Differences_r15_tags_1, + sizeof(asn_DEF_Geometric_Ionospheric_Corrections_Differences_r15_tags_1) + /sizeof(asn_DEF_Geometric_Ionospheric_Corrections_Differences_r15_tags_1[0]), /* 1 */ + asn_DEF_Geometric_Ionospheric_Corrections_Differences_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_Geometric_Ionospheric_Corrections_Differences_r15_tags_1) + /sizeof(asn_DEF_Geometric_Ionospheric_Corrections_Differences_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Geometric_Ionospheric_Corrections_Differences_r15_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_Geometric_Ionospheric_Corrections_Differences_r15_1, + 1, /* Single element */ + &asn_SPC_Geometric_Ionospheric_Corrections_Differences_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Geometric-Ionospheric-Corrections-Differences-r15.h b/asn.1/lpp_generated/Geometric-Ionospheric-Corrections-Differences-r15.h similarity index 83% rename from asn.1/generated/Geometric-Ionospheric-Corrections-Differences-r15.h rename to asn.1/lpp_generated/Geometric-Ionospheric-Corrections-Differences-r15.h index ffd46fd8..15067960 100644 --- a/asn.1/generated/Geometric-Ionospheric-Corrections-Differences-r15.h +++ b/asn.1/lpp_generated/Geometric-Ionospheric-Corrections-Differences-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Geometric_Ionospheric_Corrections_Differences_r15_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_Geometric_Ionospheric_Corrections_Diff } #endif -/* Referred external types */ -#include "Geometric-Ionospheric-Corrections-Differences-Element-r15.h" - #endif /* _Geometric_Ionospheric_Corrections_Differences_r15_H_ */ #include diff --git a/asn.1/lpp_generated/GridElement-r16.c b/asn.1/lpp_generated/GridElement-r16.c new file mode 100644 index 00000000..5fe759d2 --- /dev/null +++ b/asn.1/lpp_generated/GridElement-r16.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GridElement-r16.h" + +#include "TropospericDelayCorrection-r16.h" +#include "STEC-ResidualSatList-r16.h" +asn_TYPE_member_t asn_MBR_GridElement_r16_1[] = { + { ATF_POINTER, 2, offsetof(struct GridElement_r16, tropospericDelayCorrection_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TropospericDelayCorrection_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tropospericDelayCorrection-r16" + }, + { ATF_POINTER, 1, offsetof(struct GridElement_r16, stec_ResidualSatList_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_STEC_ResidualSatList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stec-ResidualSatList-r16" + }, +}; +static const int asn_MAP_GridElement_r16_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_GridElement_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GridElement_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tropospericDelayCorrection-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* stec-ResidualSatList-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GridElement_r16_specs_1 = { + sizeof(struct GridElement_r16), + offsetof(struct GridElement_r16, _asn_ctx), + asn_MAP_GridElement_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_GridElement_r16_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GridElement_r16 = { + "GridElement-r16", + "GridElement-r16", + &asn_OP_SEQUENCE, + asn_DEF_GridElement_r16_tags_1, + sizeof(asn_DEF_GridElement_r16_tags_1) + /sizeof(asn_DEF_GridElement_r16_tags_1[0]), /* 1 */ + asn_DEF_GridElement_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GridElement_r16_tags_1) + /sizeof(asn_DEF_GridElement_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GridElement_r16_1, + 2, /* Elements count */ + &asn_SPC_GridElement_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GridElement-r16.h b/asn.1/lpp_generated/GridElement-r16.h new file mode 100644 index 00000000..c323ff79 --- /dev/null +++ b/asn.1/lpp_generated/GridElement-r16.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GridElement_r16_H_ +#define _GridElement_r16_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct TropospericDelayCorrection_r16; +struct STEC_ResidualSatList_r16; + +/* GridElement-r16 */ +typedef struct GridElement_r16 { + struct TropospericDelayCorrection_r16 *tropospericDelayCorrection_r16; /* OPTIONAL */ + struct STEC_ResidualSatList_r16 *stec_ResidualSatList_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GridElement_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GridElement_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_GridElement_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_GridElement_r16_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GridElement_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/GridElement-r18.c b/asn.1/lpp_generated/GridElement-r18.c new file mode 100644 index 00000000..46ee5b3a --- /dev/null +++ b/asn.1/lpp_generated/GridElement-r18.c @@ -0,0 +1,69 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GridElement-r18.h" + +#include "GNSS-LOS-InfoList-r18.h" +asn_TYPE_member_t asn_MBR_GridElement_r18_1[] = { + { ATF_POINTER, 1, offsetof(struct GridElement_r18, gnss_LOS_InfoList_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_LOS_InfoList_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-LOS-InfoList-r18" + }, +}; +static const int asn_MAP_GridElement_r18_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_GridElement_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GridElement_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnss-LOS-InfoList-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GridElement_r18_specs_1 = { + sizeof(struct GridElement_r18), + offsetof(struct GridElement_r18, _asn_ctx), + asn_MAP_GridElement_r18_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_GridElement_r18_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GridElement_r18 = { + "GridElement-r18", + "GridElement-r18", + &asn_OP_SEQUENCE, + asn_DEF_GridElement_r18_tags_1, + sizeof(asn_DEF_GridElement_r18_tags_1) + /sizeof(asn_DEF_GridElement_r18_tags_1[0]), /* 1 */ + asn_DEF_GridElement_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_GridElement_r18_tags_1) + /sizeof(asn_DEF_GridElement_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GridElement_r18_1, + 1, /* Elements count */ + &asn_SPC_GridElement_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GridElement-r18.h b/asn.1/lpp_generated/GridElement-r18.h new file mode 100644 index 00000000..c2aded7c --- /dev/null +++ b/asn.1/lpp_generated/GridElement-r18.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GridElement_r18_H_ +#define _GridElement_r18_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GNSS_LOS_InfoList_r18; + +/* GridElement-r18 */ +typedef struct GridElement_r18 { + struct GNSS_LOS_InfoList_r18 *gnss_LOS_InfoList_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GridElement_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GridElement_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_GridElement_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_GridElement_r18_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GridElement_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/GridIonElement-r12.c b/asn.1/lpp_generated/GridIonElement-r12.c new file mode 100644 index 00000000..eced11c1 --- /dev/null +++ b/asn.1/lpp_generated/GridIonElement-r12.c @@ -0,0 +1,198 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GridIonElement-r12.h" + +static int +memb_igp_ID_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 320L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dt_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givei_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_igp_ID_r12_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 1, 320 } /* (1..320) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dt_r12_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givei_r12_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GridIonElement_r12_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GridIonElement_r12, igp_ID_r12), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_igp_ID_r12_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_igp_ID_r12_constraint_1 + }, + 0, 0, /* No default value */ + "igp-ID-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct GridIonElement_r12, dt_r12), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dt_r12_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dt_r12_constraint_1 + }, + 0, 0, /* No default value */ + "dt-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct GridIonElement_r12, givei_r12), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givei_r12_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givei_r12_constraint_1 + }, + 0, 0, /* No default value */ + "givei-r12" + }, +}; +static const ber_tlv_tag_t asn_DEF_GridIonElement_r12_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GridIonElement_r12_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* igp-ID-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* dt-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* givei-r12 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GridIonElement_r12_specs_1 = { + sizeof(struct GridIonElement_r12), + offsetof(struct GridIonElement_r12, _asn_ctx), + asn_MAP_GridIonElement_r12_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GridIonElement_r12 = { + "GridIonElement-r12", + "GridIonElement-r12", + &asn_OP_SEQUENCE, + asn_DEF_GridIonElement_r12_tags_1, + sizeof(asn_DEF_GridIonElement_r12_tags_1) + /sizeof(asn_DEF_GridIonElement_r12_tags_1[0]), /* 1 */ + asn_DEF_GridIonElement_r12_tags_1, /* Same as above */ + sizeof(asn_DEF_GridIonElement_r12_tags_1) + /sizeof(asn_DEF_GridIonElement_r12_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GridIonElement_r12_1, + 3, /* Elements count */ + &asn_SPC_GridIonElement_r12_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GridIonElement-r12.h b/asn.1/lpp_generated/GridIonElement-r12.h similarity index 78% rename from asn.1/generated/GridIonElement-r12.h rename to asn.1/lpp_generated/GridIonElement-r12.h index 1424b103..ce6fd044 100644 --- a/asn.1/generated/GridIonElement-r12.h +++ b/asn.1/lpp_generated/GridIonElement-r12.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GridIonElement_r12_H_ diff --git a/asn.1/lpp_generated/GridIonList-r12.c b/asn.1/lpp_generated/GridIonList-r12.c new file mode 100644 index 00000000..f5ad2c04 --- /dev/null +++ b/asn.1/lpp_generated/GridIonList-r12.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GridIonList-r12.h" + +#include "GridIonElement-r12.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GridIonList_r12_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 9, 9, 1, 320 } /* (SIZE(1..320)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GridIonList_r12_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GridIonElement_r12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GridIonList_r12_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GridIonList_r12_specs_1 = { + sizeof(struct GridIonList_r12), + offsetof(struct GridIonList_r12, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GridIonList_r12 = { + "GridIonList-r12", + "GridIonList-r12", + &asn_OP_SEQUENCE_OF, + asn_DEF_GridIonList_r12_tags_1, + sizeof(asn_DEF_GridIonList_r12_tags_1) + /sizeof(asn_DEF_GridIonList_r12_tags_1[0]), /* 1 */ + asn_DEF_GridIonList_r12_tags_1, /* Same as above */ + sizeof(asn_DEF_GridIonList_r12_tags_1) + /sizeof(asn_DEF_GridIonList_r12_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GridIonList_r12_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GridIonList_r12_1, + 1, /* Single element */ + &asn_SPC_GridIonList_r12_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GridIonList-r12.h b/asn.1/lpp_generated/GridIonList-r12.h similarity index 79% rename from asn.1/generated/GridIonList-r12.h rename to asn.1/lpp_generated/GridIonList-r12.h index 80803c1b..8efa2f4d 100644 --- a/asn.1/generated/GridIonList-r12.h +++ b/asn.1/lpp_generated/GridIonList-r12.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GridIonList_r12_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GridIonList_r12_constr_1; } #endif -/* Referred external types */ -#include "GridIonElement-r12.h" - #endif /* _GridIonList_r12_H_ */ #include diff --git a/asn.1/lpp_generated/GridList-r16.c b/asn.1/lpp_generated/GridList-r16.c new file mode 100644 index 00000000..192f642f --- /dev/null +++ b/asn.1/lpp_generated/GridList-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GridList-r16.h" + +#include "GridElement-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GridList_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GridList_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GridElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GridList_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GridList_r16_specs_1 = { + sizeof(struct GridList_r16), + offsetof(struct GridList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GridList_r16 = { + "GridList-r16", + "GridList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_GridList_r16_tags_1, + sizeof(asn_DEF_GridList_r16_tags_1) + /sizeof(asn_DEF_GridList_r16_tags_1[0]), /* 1 */ + asn_DEF_GridList_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_GridList_r16_tags_1) + /sizeof(asn_DEF_GridList_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GridList_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GridList_r16_1, + 1, /* Single element */ + &asn_SPC_GridList_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GridList-r16.h b/asn.1/lpp_generated/GridList-r16.h similarity index 78% rename from asn.1/generated/GridList-r16.h rename to asn.1/lpp_generated/GridList-r16.h index 399cc466..bda5168d 100644 --- a/asn.1/generated/GridList-r16.h +++ b/asn.1/lpp_generated/GridList-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _GridList_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GridList_r16_constr_1; } #endif -/* Referred external types */ -#include "GridElement-r16.h" - #endif /* _GridList_r16_H_ */ #include diff --git a/asn.1/lpp_generated/GridList-r18.c b/asn.1/lpp_generated/GridList-r18.c new file mode 100644 index 00000000..49ff24a7 --- /dev/null +++ b/asn.1/lpp_generated/GridList-r18.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "GridList-r18.h" + +#include "GridElement-r18.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GridList_r18_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GridList_r18_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GridElement_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GridList_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GridList_r18_specs_1 = { + sizeof(struct GridList_r18), + offsetof(struct GridList_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GridList_r18 = { + "GridList-r18", + "GridList-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_GridList_r18_tags_1, + sizeof(asn_DEF_GridList_r18_tags_1) + /sizeof(asn_DEF_GridList_r18_tags_1[0]), /* 1 */ + asn_DEF_GridList_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_GridList_r18_tags_1) + /sizeof(asn_DEF_GridList_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GridList_r18_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GridList_r18_1, + 1, /* Single element */ + &asn_SPC_GridList_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/GridList-r18.h b/asn.1/lpp_generated/GridList-r18.h new file mode 100644 index 00000000..e1d0b803 --- /dev/null +++ b/asn.1/lpp_generated/GridList-r18.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _GridList_r18_H_ +#define _GridList_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GridElement_r18; + +/* GridList-r18 */ +typedef struct GridList_r18 { + A_SEQUENCE_OF(struct GridElement_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GridList_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GridList_r18; +extern asn_SET_OF_specifics_t asn_SPC_GridList_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_GridList_r18_1[1]; +extern asn_per_constraints_t asn_PER_type_GridList_r18_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _GridList_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/HA-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-r16.c b/asn.1/lpp_generated/HA-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-r16.c new file mode 100644 index 00000000..db07c1ad --- /dev/null +++ b/asn.1/lpp_generated/HA-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-r16.c @@ -0,0 +1,534 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "HA-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-r16.h" + +static int +memb_degreesLatitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_degreesLongitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_altitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -64000L && value <= 1280000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintySemiMajor_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintySemiMinor_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_orientationMajorAxis_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 179L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_horizontalConfidence_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintyAltitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_verticalConfidence_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLatitude_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLongitude_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_altitude_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, -64000, 1280000 } /* (-64000..1280000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintySemiMajor_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintySemiMinor_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_orientationMajorAxis_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 179 } /* (0..179) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horizontalConfidence_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintyAltitude_r16_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_verticalConfidence_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16, degreesLatitude_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLatitude_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLatitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLatitude-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16, degreesLongitude_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLongitude_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLongitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLongitude-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16, altitude_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_altitude_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_altitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "altitude-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16, uncertaintySemiMajor_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintySemiMajor_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintySemiMajor_r16_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintySemiMajor-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16, uncertaintySemiMinor_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintySemiMinor_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintySemiMinor_r16_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintySemiMinor-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16, orientationMajorAxis_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_orientationMajorAxis_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_orientationMajorAxis_r16_constraint_1 + }, + 0, 0, /* No default value */ + "orientationMajorAxis-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16, horizontalConfidence_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horizontalConfidence_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horizontalConfidence_r16_constraint_1 + }, + 0, 0, /* No default value */ + "horizontalConfidence-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16, uncertaintyAltitude_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintyAltitude_r16_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintyAltitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintyAltitude-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16, verticalConfidence_r16), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_verticalConfidence_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_verticalConfidence_r16_constraint_1 + }, + 0, 0, /* No default value */ + "verticalConfidence-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16, ha_HorizontalExtendedRangeUsed_r16), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ha-HorizontalExtendedRangeUsed-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16, ha_VerticalExtendedRangeUsed_r16), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ha-VerticalExtendedRangeUsed-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* degreesLatitude-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLongitude-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* altitude-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* uncertaintySemiMajor-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* uncertaintySemiMinor-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* orientationMajorAxis-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* horizontalConfidence-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* uncertaintyAltitude-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* verticalConfidence-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* ha-HorizontalExtendedRangeUsed-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 } /* ha-VerticalExtendedRangeUsed-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_specs_1 = { + sizeof(struct HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16), + offsetof(struct HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16, _asn_ctx), + asn_MAP_HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_tag2el_1, + 11, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16 = { + "HA-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-r16", + "HA-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-r16", + &asn_OP_SEQUENCE, + asn_DEF_HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_tags_1, + sizeof(asn_DEF_HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_tags_1) + /sizeof(asn_DEF_HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_tags_1[0]), /* 1 */ + asn_DEF_HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_tags_1) + /sizeof(asn_DEF_HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_1, + 11, /* Elements count */ + &asn_SPC_HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/HA-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-r16.h b/asn.1/lpp_generated/HA-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-r16.h new file mode 100644 index 00000000..ad5028a3 --- /dev/null +++ b/asn.1/lpp_generated/HA-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-r16.h @@ -0,0 +1,51 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_H_ +#define _HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* HA-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-r16 */ +typedef struct HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16 { + long degreesLatitude_r16; + long degreesLongitude_r16; + long altitude_r16; + long uncertaintySemiMajor_r16; + long uncertaintySemiMinor_r16; + long orientationMajorAxis_r16; + long horizontalConfidence_r16; + long uncertaintyAltitude_r16; + long verticalConfidence_r16; + BOOLEAN_t ha_HorizontalExtendedRangeUsed_r16; + BOOLEAN_t ha_VerticalExtendedRangeUsed_r16; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_1[11]; + +#ifdef __cplusplus +} +#endif + +#endif /* _HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/HA-EllipsoidPointWithScalableUncertaintyEllipse-r16.c b/asn.1/lpp_generated/HA-EllipsoidPointWithScalableUncertaintyEllipse-r16.c new file mode 100644 index 00000000..22b55f59 --- /dev/null +++ b/asn.1/lpp_generated/HA-EllipsoidPointWithScalableUncertaintyEllipse-r16.c @@ -0,0 +1,366 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "HA-EllipsoidPointWithScalableUncertaintyEllipse-r16.h" + +static int +memb_degreesLatitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_degreesLongitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintySemiMajor_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintySemiMinor_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_orientationMajorAxis_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 179L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_confidence_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLatitude_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLongitude_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintySemiMajor_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintySemiMinor_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_orientationMajorAxis_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 179 } /* (0..179) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_confidence_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HA_EllipsoidPointWithScalableUncertaintyEllipse_r16, degreesLatitude_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLatitude_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLatitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLatitude-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct HA_EllipsoidPointWithScalableUncertaintyEllipse_r16, degreesLongitude_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLongitude_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLongitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLongitude-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct HA_EllipsoidPointWithScalableUncertaintyEllipse_r16, uncertaintySemiMajor_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintySemiMajor_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintySemiMajor_r16_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintySemiMajor-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct HA_EllipsoidPointWithScalableUncertaintyEllipse_r16, uncertaintySemiMinor_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintySemiMinor_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintySemiMinor_r16_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintySemiMinor-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct HA_EllipsoidPointWithScalableUncertaintyEllipse_r16, orientationMajorAxis_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_orientationMajorAxis_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_orientationMajorAxis_r16_constraint_1 + }, + 0, 0, /* No default value */ + "orientationMajorAxis-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct HA_EllipsoidPointWithScalableUncertaintyEllipse_r16, confidence_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_confidence_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_confidence_r16_constraint_1 + }, + 0, 0, /* No default value */ + "confidence-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct HA_EllipsoidPointWithScalableUncertaintyEllipse_r16, ha_ExtendedUncertaintyRangeUsed_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ha-ExtendedUncertaintyRangeUsed-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* degreesLatitude-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLongitude-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* uncertaintySemiMajor-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* uncertaintySemiMinor-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* orientationMajorAxis-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* confidence-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ha-ExtendedUncertaintyRangeUsed-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_specs_1 = { + sizeof(struct HA_EllipsoidPointWithScalableUncertaintyEllipse_r16), + offsetof(struct HA_EllipsoidPointWithScalableUncertaintyEllipse_r16, _asn_ctx), + asn_MAP_HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_tag2el_1, + 7, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_HA_EllipsoidPointWithScalableUncertaintyEllipse_r16 = { + "HA-EllipsoidPointWithScalableUncertaintyEllipse-r16", + "HA-EllipsoidPointWithScalableUncertaintyEllipse-r16", + &asn_OP_SEQUENCE, + asn_DEF_HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_tags_1, + sizeof(asn_DEF_HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_tags_1) + /sizeof(asn_DEF_HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_tags_1[0]), /* 1 */ + asn_DEF_HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_tags_1) + /sizeof(asn_DEF_HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_1, + 7, /* Elements count */ + &asn_SPC_HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/HA-EllipsoidPointWithScalableUncertaintyEllipse-r16.h b/asn.1/lpp_generated/HA-EllipsoidPointWithScalableUncertaintyEllipse-r16.h new file mode 100644 index 00000000..3e8f3850 --- /dev/null +++ b/asn.1/lpp_generated/HA-EllipsoidPointWithScalableUncertaintyEllipse-r16.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_H_ +#define _HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* HA-EllipsoidPointWithScalableUncertaintyEllipse-r16 */ +typedef struct HA_EllipsoidPointWithScalableUncertaintyEllipse_r16 { + long degreesLatitude_r16; + long degreesLongitude_r16; + long uncertaintySemiMajor_r16; + long uncertaintySemiMinor_r16; + long orientationMajorAxis_r16; + long confidence_r16; + BOOLEAN_t ha_ExtendedUncertaintyRangeUsed_r16; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HA_EllipsoidPointWithScalableUncertaintyEllipse_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/HA-GNSS-Metrics-r17.c b/asn.1/lpp_generated/HA-GNSS-Metrics-r17.c new file mode 100644 index 00000000..450ca361 --- /dev/null +++ b/asn.1/lpp_generated/HA-GNSS-Metrics-r17.c @@ -0,0 +1,326 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "HA-GNSS-Metrics-r17.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_nrOfUsedSatellites_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 64L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_hdopi_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 256L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_pdopi_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 256L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_age_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 99L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_fixType_r17_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nrOfUsedSatellites_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 64 } /* (0..64) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_hdopi_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (1..256) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_pdopi_r17_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (1..256) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_age_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 99 } /* (0..99) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_fixType_r17_value2enum_6[] = { + { 0, 19, "carrier-phase-float" }, + { 1, 17, "carrier-phase-fix" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_fixType_r17_enum2value_6[] = { + 1, /* carrier-phase-fix(1) */ + 0 /* carrier-phase-float(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_fixType_r17_specs_6 = { + asn_MAP_fixType_r17_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_fixType_r17_enum2value_6, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_fixType_r17_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fixType_r17_6 = { + "fixType-r17", + "fixType-r17", + &asn_OP_NativeEnumerated, + asn_DEF_fixType_r17_tags_6, + sizeof(asn_DEF_fixType_r17_tags_6) + /sizeof(asn_DEF_fixType_r17_tags_6[0]) - 1, /* 1 */ + asn_DEF_fixType_r17_tags_6, /* Same as above */ + sizeof(asn_DEF_fixType_r17_tags_6) + /sizeof(asn_DEF_fixType_r17_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_fixType_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_fixType_r17_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_HA_GNSS_Metrics_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HA_GNSS_Metrics_r17, nrOfUsedSatellites_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nrOfUsedSatellites_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nrOfUsedSatellites_r17_constraint_1 + }, + 0, 0, /* No default value */ + "nrOfUsedSatellites-r17" + }, + { ATF_POINTER, 4, offsetof(struct HA_GNSS_Metrics_r17, hdopi_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_hdopi_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_hdopi_r17_constraint_1 + }, + 0, 0, /* No default value */ + "hdopi-r17" + }, + { ATF_POINTER, 3, offsetof(struct HA_GNSS_Metrics_r17, pdopi_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_pdopi_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_pdopi_r17_constraint_1 + }, + 0, 0, /* No default value */ + "pdopi-r17" + }, + { ATF_POINTER, 2, offsetof(struct HA_GNSS_Metrics_r17, age_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_age_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_age_r17_constraint_1 + }, + 0, 0, /* No default value */ + "age-r17" + }, + { ATF_POINTER, 1, offsetof(struct HA_GNSS_Metrics_r17, fixType_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_fixType_r17_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fixType-r17" + }, +}; +static const int asn_MAP_HA_GNSS_Metrics_r17_oms_1[] = { 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_HA_GNSS_Metrics_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HA_GNSS_Metrics_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nrOfUsedSatellites-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* hdopi-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* pdopi-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* age-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* fixType-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_HA_GNSS_Metrics_r17_specs_1 = { + sizeof(struct HA_GNSS_Metrics_r17), + offsetof(struct HA_GNSS_Metrics_r17, _asn_ctx), + asn_MAP_HA_GNSS_Metrics_r17_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_HA_GNSS_Metrics_r17_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_HA_GNSS_Metrics_r17 = { + "HA-GNSS-Metrics-r17", + "HA-GNSS-Metrics-r17", + &asn_OP_SEQUENCE, + asn_DEF_HA_GNSS_Metrics_r17_tags_1, + sizeof(asn_DEF_HA_GNSS_Metrics_r17_tags_1) + /sizeof(asn_DEF_HA_GNSS_Metrics_r17_tags_1[0]), /* 1 */ + asn_DEF_HA_GNSS_Metrics_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_HA_GNSS_Metrics_r17_tags_1) + /sizeof(asn_DEF_HA_GNSS_Metrics_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_HA_GNSS_Metrics_r17_1, + 5, /* Elements count */ + &asn_SPC_HA_GNSS_Metrics_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/HA-GNSS-Metrics-r17.h b/asn.1/lpp_generated/HA-GNSS-Metrics-r17.h new file mode 100644 index 00000000..305e7142 --- /dev/null +++ b/asn.1/lpp_generated/HA-GNSS-Metrics-r17.h @@ -0,0 +1,59 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _HA_GNSS_Metrics_r17_H_ +#define _HA_GNSS_Metrics_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HA_GNSS_Metrics_r17__fixType_r17 { + HA_GNSS_Metrics_r17__fixType_r17_carrier_phase_float = 0, + HA_GNSS_Metrics_r17__fixType_r17_carrier_phase_fix = 1 + /* + * Enumeration is extensible + */ +} e_HA_GNSS_Metrics_r17__fixType_r17; + +/* HA-GNSS-Metrics-r17 */ +typedef struct HA_GNSS_Metrics_r17 { + long nrOfUsedSatellites_r17; + long *hdopi_r17; /* OPTIONAL */ + long *pdopi_r17; /* OPTIONAL */ + long *age_r17; /* OPTIONAL */ + long *fixType_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HA_GNSS_Metrics_r17_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_fixType_r17_6; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_HA_GNSS_Metrics_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_HA_GNSS_Metrics_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_HA_GNSS_Metrics_r17_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _HA_GNSS_Metrics_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.c b/asn.1/lpp_generated/HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.c new file mode 100644 index 00000000..5e88c725 --- /dev/null +++ b/asn.1/lpp_generated/HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.c @@ -0,0 +1,498 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.h" + +static int +memb_degreesLatitude_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_degreesLongitude_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_altitude_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -64000L && value <= 1280000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintySemiMajor_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintySemiMinor_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_orientationMajorAxis_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 179L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_horizontalConfidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintyAltitude_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_verticalConfidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLatitude_r15_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLongitude_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_altitude_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, -64000, 1280000 } /* (-64000..1280000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintySemiMajor_r15_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintySemiMinor_r15_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_orientationMajorAxis_r15_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 179 } /* (0..179) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horizontalConfidence_r15_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintyAltitude_r15_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_verticalConfidence_r15_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, degreesLatitude_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLatitude_r15_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLatitude_r15_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLatitude-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, degreesLongitude_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLongitude_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLongitude_r15_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLongitude-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, altitude_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_altitude_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_altitude_r15_constraint_1 + }, + 0, 0, /* No default value */ + "altitude-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, uncertaintySemiMajor_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintySemiMajor_r15_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintySemiMajor_r15_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintySemiMajor-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, uncertaintySemiMinor_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintySemiMinor_r15_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintySemiMinor_r15_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintySemiMinor-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, orientationMajorAxis_r15), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_orientationMajorAxis_r15_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_orientationMajorAxis_r15_constraint_1 + }, + 0, 0, /* No default value */ + "orientationMajorAxis-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, horizontalConfidence_r15), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horizontalConfidence_r15_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horizontalConfidence_r15_constraint_1 + }, + 0, 0, /* No default value */ + "horizontalConfidence-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, uncertaintyAltitude_r15), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintyAltitude_r15_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintyAltitude_r15_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintyAltitude-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, verticalConfidence_r15), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_verticalConfidence_r15_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_verticalConfidence_r15_constraint_1 + }, + 0, 0, /* No default value */ + "verticalConfidence-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* degreesLatitude-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLongitude-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* altitude-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* uncertaintySemiMajor-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* uncertaintySemiMinor-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* orientationMajorAxis-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* horizontalConfidence-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* uncertaintyAltitude-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* verticalConfidence-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_specs_1 = { + sizeof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15), + offsetof(struct HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, _asn_ctx), + asn_MAP_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_tag2el_1, + 9, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15 = { + "HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15", + "HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15", + &asn_OP_SEQUENCE, + asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_tags_1, + sizeof(asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_tags_1) + /sizeof(asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_tags_1[0]), /* 1 */ + asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_tags_1) + /sizeof(asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_1, + 9, /* Elements count */ + &asn_SPC_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.h b/asn.1/lpp_generated/HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.h similarity index 85% rename from asn.1/generated/HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.h rename to asn.1/lpp_generated/HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.h index 8fa270e5..af42a411 100644 --- a/asn.1/generated/HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.h +++ b/asn.1/lpp_generated/HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_H_ diff --git a/asn.1/lpp_generated/HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.c b/asn.1/lpp_generated/HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.c new file mode 100644 index 00000000..a1041d4e --- /dev/null +++ b/asn.1/lpp_generated/HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.c @@ -0,0 +1,348 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.h" + +static int +memb_degreesLatitude_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_degreesLongitude_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintySemiMajor_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintySemiMinor_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_orientationMajorAxis_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 179L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_confidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLatitude_r15_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLongitude_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintySemiMajor_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintySemiMinor_r15_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_orientationMajorAxis_r15_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 179 } /* (0..179) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_confidence_r15_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15, degreesLatitude_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLatitude_r15_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLatitude_r15_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLatitude-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15, degreesLongitude_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLongitude_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLongitude_r15_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLongitude-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15, uncertaintySemiMajor_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintySemiMajor_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintySemiMajor_r15_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintySemiMajor-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15, uncertaintySemiMinor_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintySemiMinor_r15_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintySemiMinor_r15_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintySemiMinor-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15, orientationMajorAxis_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_orientationMajorAxis_r15_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_orientationMajorAxis_r15_constraint_1 + }, + 0, 0, /* No default value */ + "orientationMajorAxis-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15, confidence_r15), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_confidence_r15_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_confidence_r15_constraint_1 + }, + 0, 0, /* No default value */ + "confidence-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* degreesLatitude-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLongitude-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* uncertaintySemiMajor-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* uncertaintySemiMinor-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* orientationMajorAxis-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* confidence-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_specs_1 = { + sizeof(struct HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15), + offsetof(struct HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15, _asn_ctx), + asn_MAP_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_tag2el_1, + 6, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15 = { + "HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15", + "HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15", + &asn_OP_SEQUENCE, + asn_DEF_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_tags_1, + sizeof(asn_DEF_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_tags_1) + /sizeof(asn_DEF_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_tags_1[0]), /* 1 */ + asn_DEF_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_tags_1) + /sizeof(asn_DEF_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_1, + 6, /* Elements count */ + &asn_SPC_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.h b/asn.1/lpp_generated/HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.h similarity index 83% rename from asn.1/generated/HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.h rename to asn.1/lpp_generated/HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.h index c5ac9ce8..a598a416 100644 --- a/asn.1/generated/HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.h +++ b/asn.1/lpp_generated/HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_H_ diff --git a/asn.1/lpp_generated/HorizontalAccuracy.c b/asn.1/lpp_generated/HorizontalAccuracy.c new file mode 100644 index 00000000..9818dba8 --- /dev/null +++ b/asn.1/lpp_generated/HorizontalAccuracy.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "HorizontalAccuracy.h" + +static int +memb_accuracy_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_confidence_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_accuracy_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_confidence_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_HorizontalAccuracy_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HorizontalAccuracy, accuracy), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_accuracy_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_accuracy_constraint_1 + }, + 0, 0, /* No default value */ + "accuracy" + }, + { ATF_NOFLAGS, 0, offsetof(struct HorizontalAccuracy, confidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_confidence_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_confidence_constraint_1 + }, + 0, 0, /* No default value */ + "confidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_HorizontalAccuracy_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HorizontalAccuracy_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* accuracy */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_HorizontalAccuracy_specs_1 = { + sizeof(struct HorizontalAccuracy), + offsetof(struct HorizontalAccuracy, _asn_ctx), + asn_MAP_HorizontalAccuracy_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_HorizontalAccuracy = { + "HorizontalAccuracy", + "HorizontalAccuracy", + &asn_OP_SEQUENCE, + asn_DEF_HorizontalAccuracy_tags_1, + sizeof(asn_DEF_HorizontalAccuracy_tags_1) + /sizeof(asn_DEF_HorizontalAccuracy_tags_1[0]), /* 1 */ + asn_DEF_HorizontalAccuracy_tags_1, /* Same as above */ + sizeof(asn_DEF_HorizontalAccuracy_tags_1) + /sizeof(asn_DEF_HorizontalAccuracy_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_HorizontalAccuracy_1, + 2, /* Elements count */ + &asn_SPC_HorizontalAccuracy_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/HorizontalAccuracy.h b/asn.1/lpp_generated/HorizontalAccuracy.h similarity index 78% rename from asn.1/generated/HorizontalAccuracy.h rename to asn.1/lpp_generated/HorizontalAccuracy.h index 64eb6192..1ba0731a 100644 --- a/asn.1/generated/HorizontalAccuracy.h +++ b/asn.1/lpp_generated/HorizontalAccuracy.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _HorizontalAccuracy_H_ diff --git a/asn.1/lpp_generated/HorizontalAccuracyExt-r15.c b/asn.1/lpp_generated/HorizontalAccuracyExt-r15.c new file mode 100644 index 00000000..66bc516e --- /dev/null +++ b/asn.1/lpp_generated/HorizontalAccuracyExt-r15.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "HorizontalAccuracyExt-r15.h" + +static int +memb_accuracyExt_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_confidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_accuracyExt_r15_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_confidence_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_HorizontalAccuracyExt_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HorizontalAccuracyExt_r15, accuracyExt_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_accuracyExt_r15_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_accuracyExt_r15_constraint_1 + }, + 0, 0, /* No default value */ + "accuracyExt-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct HorizontalAccuracyExt_r15, confidence_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_confidence_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_confidence_r15_constraint_1 + }, + 0, 0, /* No default value */ + "confidence-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_HorizontalAccuracyExt_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HorizontalAccuracyExt_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* accuracyExt-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_HorizontalAccuracyExt_r15_specs_1 = { + sizeof(struct HorizontalAccuracyExt_r15), + offsetof(struct HorizontalAccuracyExt_r15, _asn_ctx), + asn_MAP_HorizontalAccuracyExt_r15_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_HorizontalAccuracyExt_r15 = { + "HorizontalAccuracyExt-r15", + "HorizontalAccuracyExt-r15", + &asn_OP_SEQUENCE, + asn_DEF_HorizontalAccuracyExt_r15_tags_1, + sizeof(asn_DEF_HorizontalAccuracyExt_r15_tags_1) + /sizeof(asn_DEF_HorizontalAccuracyExt_r15_tags_1[0]), /* 1 */ + asn_DEF_HorizontalAccuracyExt_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_HorizontalAccuracyExt_r15_tags_1) + /sizeof(asn_DEF_HorizontalAccuracyExt_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_HorizontalAccuracyExt_r15_1, + 2, /* Elements count */ + &asn_SPC_HorizontalAccuracyExt_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/HorizontalAccuracyExt-r15.h b/asn.1/lpp_generated/HorizontalAccuracyExt-r15.h similarity index 79% rename from asn.1/generated/HorizontalAccuracyExt-r15.h rename to asn.1/lpp_generated/HorizontalAccuracyExt-r15.h index 4b0add99..86f8faea 100644 --- a/asn.1/generated/HorizontalAccuracyExt-r15.h +++ b/asn.1/lpp_generated/HorizontalAccuracyExt-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _HorizontalAccuracyExt_r15_H_ diff --git a/asn.1/lpp_generated/HorizontalVelocity.c b/asn.1/lpp_generated/HorizontalVelocity.c new file mode 100644 index 00000000..14723b1b --- /dev/null +++ b/asn.1/lpp_generated/HorizontalVelocity.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "HorizontalVelocity.h" + +static int +memb_bearing_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 359L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_horizontalSpeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bearing_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 359 } /* (0..359) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horizontalSpeed_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_HorizontalVelocity_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HorizontalVelocity, bearing), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bearing_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bearing_constraint_1 + }, + 0, 0, /* No default value */ + "bearing" + }, + { ATF_NOFLAGS, 0, offsetof(struct HorizontalVelocity, horizontalSpeed), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horizontalSpeed_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horizontalSpeed_constraint_1 + }, + 0, 0, /* No default value */ + "horizontalSpeed" + }, +}; +static const ber_tlv_tag_t asn_DEF_HorizontalVelocity_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HorizontalVelocity_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bearing */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* horizontalSpeed */ +}; +asn_SEQUENCE_specifics_t asn_SPC_HorizontalVelocity_specs_1 = { + sizeof(struct HorizontalVelocity), + offsetof(struct HorizontalVelocity, _asn_ctx), + asn_MAP_HorizontalVelocity_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_HorizontalVelocity = { + "HorizontalVelocity", + "HorizontalVelocity", + &asn_OP_SEQUENCE, + asn_DEF_HorizontalVelocity_tags_1, + sizeof(asn_DEF_HorizontalVelocity_tags_1) + /sizeof(asn_DEF_HorizontalVelocity_tags_1[0]), /* 1 */ + asn_DEF_HorizontalVelocity_tags_1, /* Same as above */ + sizeof(asn_DEF_HorizontalVelocity_tags_1) + /sizeof(asn_DEF_HorizontalVelocity_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_HorizontalVelocity_1, + 2, /* Elements count */ + &asn_SPC_HorizontalVelocity_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/HorizontalVelocity.h b/asn.1/lpp_generated/HorizontalVelocity.h similarity index 76% rename from asn.1/generated/HorizontalVelocity.h rename to asn.1/lpp_generated/HorizontalVelocity.h index ee46608b..2e829fc2 100644 --- a/asn.1/generated/HorizontalVelocity.h +++ b/asn.1/lpp_generated/HorizontalVelocity.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _HorizontalVelocity_H_ diff --git a/asn.1/lpp_generated/HorizontalVelocityWithUncertainty.c b/asn.1/lpp_generated/HorizontalVelocityWithUncertainty.c new file mode 100644 index 00000000..a7c99dff --- /dev/null +++ b/asn.1/lpp_generated/HorizontalVelocityWithUncertainty.c @@ -0,0 +1,198 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "HorizontalVelocityWithUncertainty.h" + +static int +memb_bearing_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 359L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_horizontalSpeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintySpeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bearing_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 359 } /* (0..359) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horizontalSpeed_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintySpeed_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_HorizontalVelocityWithUncertainty_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HorizontalVelocityWithUncertainty, bearing), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bearing_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bearing_constraint_1 + }, + 0, 0, /* No default value */ + "bearing" + }, + { ATF_NOFLAGS, 0, offsetof(struct HorizontalVelocityWithUncertainty, horizontalSpeed), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horizontalSpeed_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horizontalSpeed_constraint_1 + }, + 0, 0, /* No default value */ + "horizontalSpeed" + }, + { ATF_NOFLAGS, 0, offsetof(struct HorizontalVelocityWithUncertainty, uncertaintySpeed), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintySpeed_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintySpeed_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintySpeed" + }, +}; +static const ber_tlv_tag_t asn_DEF_HorizontalVelocityWithUncertainty_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HorizontalVelocityWithUncertainty_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bearing */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horizontalSpeed */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* uncertaintySpeed */ +}; +asn_SEQUENCE_specifics_t asn_SPC_HorizontalVelocityWithUncertainty_specs_1 = { + sizeof(struct HorizontalVelocityWithUncertainty), + offsetof(struct HorizontalVelocityWithUncertainty, _asn_ctx), + asn_MAP_HorizontalVelocityWithUncertainty_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_HorizontalVelocityWithUncertainty = { + "HorizontalVelocityWithUncertainty", + "HorizontalVelocityWithUncertainty", + &asn_OP_SEQUENCE, + asn_DEF_HorizontalVelocityWithUncertainty_tags_1, + sizeof(asn_DEF_HorizontalVelocityWithUncertainty_tags_1) + /sizeof(asn_DEF_HorizontalVelocityWithUncertainty_tags_1[0]), /* 1 */ + asn_DEF_HorizontalVelocityWithUncertainty_tags_1, /* Same as above */ + sizeof(asn_DEF_HorizontalVelocityWithUncertainty_tags_1) + /sizeof(asn_DEF_HorizontalVelocityWithUncertainty_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_HorizontalVelocityWithUncertainty_1, + 3, /* Elements count */ + &asn_SPC_HorizontalVelocityWithUncertainty_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/HorizontalVelocityWithUncertainty.h b/asn.1/lpp_generated/HorizontalVelocityWithUncertainty.h similarity index 79% rename from asn.1/generated/HorizontalVelocityWithUncertainty.h rename to asn.1/lpp_generated/HorizontalVelocityWithUncertainty.h index 0c21d74b..7dd4e1f9 100644 --- a/asn.1/generated/HorizontalVelocityWithUncertainty.h +++ b/asn.1/lpp_generated/HorizontalVelocityWithUncertainty.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _HorizontalVelocityWithUncertainty_H_ diff --git a/asn.1/lpp_generated/HorizontalWithVerticalVelocity.c b/asn.1/lpp_generated/HorizontalWithVerticalVelocity.c new file mode 100644 index 00000000..a917c462 --- /dev/null +++ b/asn.1/lpp_generated/HorizontalWithVerticalVelocity.c @@ -0,0 +1,272 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "HorizontalWithVerticalVelocity.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_bearing_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 359L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_horizontalSpeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_verticalSpeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_verticalDirection_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bearing_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 359 } /* (0..359) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horizontalSpeed_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_verticalSpeed_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_verticalDirection_value2enum_4[] = { + { 0, 6, "upward" }, + { 1, 8, "downward" } +}; +static const unsigned int asn_MAP_verticalDirection_enum2value_4[] = { + 1, /* downward(1) */ + 0 /* upward(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_verticalDirection_specs_4 = { + asn_MAP_verticalDirection_value2enum_4, /* "tag" => N; sorted by tag */ + asn_MAP_verticalDirection_enum2value_4, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_verticalDirection_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_verticalDirection_4 = { + "verticalDirection", + "verticalDirection", + &asn_OP_NativeEnumerated, + asn_DEF_verticalDirection_tags_4, + sizeof(asn_DEF_verticalDirection_tags_4) + /sizeof(asn_DEF_verticalDirection_tags_4[0]) - 1, /* 1 */ + asn_DEF_verticalDirection_tags_4, /* Same as above */ + sizeof(asn_DEF_verticalDirection_tags_4) + /sizeof(asn_DEF_verticalDirection_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_verticalDirection_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_verticalDirection_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_HorizontalWithVerticalVelocity_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocity, bearing), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bearing_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bearing_constraint_1 + }, + 0, 0, /* No default value */ + "bearing" + }, + { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocity, horizontalSpeed), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horizontalSpeed_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horizontalSpeed_constraint_1 + }, + 0, 0, /* No default value */ + "horizontalSpeed" + }, + { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocity, verticalDirection), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_verticalDirection_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalDirection" + }, + { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocity, verticalSpeed), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_verticalSpeed_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_verticalSpeed_constraint_1 + }, + 0, 0, /* No default value */ + "verticalSpeed" + }, +}; +static const ber_tlv_tag_t asn_DEF_HorizontalWithVerticalVelocity_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HorizontalWithVerticalVelocity_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bearing */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horizontalSpeed */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* verticalDirection */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* verticalSpeed */ +}; +asn_SEQUENCE_specifics_t asn_SPC_HorizontalWithVerticalVelocity_specs_1 = { + sizeof(struct HorizontalWithVerticalVelocity), + offsetof(struct HorizontalWithVerticalVelocity, _asn_ctx), + asn_MAP_HorizontalWithVerticalVelocity_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_HorizontalWithVerticalVelocity = { + "HorizontalWithVerticalVelocity", + "HorizontalWithVerticalVelocity", + &asn_OP_SEQUENCE, + asn_DEF_HorizontalWithVerticalVelocity_tags_1, + sizeof(asn_DEF_HorizontalWithVerticalVelocity_tags_1) + /sizeof(asn_DEF_HorizontalWithVerticalVelocity_tags_1[0]), /* 1 */ + asn_DEF_HorizontalWithVerticalVelocity_tags_1, /* Same as above */ + sizeof(asn_DEF_HorizontalWithVerticalVelocity_tags_1) + /sizeof(asn_DEF_HorizontalWithVerticalVelocity_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_HorizontalWithVerticalVelocity_1, + 4, /* Elements count */ + &asn_SPC_HorizontalWithVerticalVelocity_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/HorizontalWithVerticalVelocity.h b/asn.1/lpp_generated/HorizontalWithVerticalVelocity.h similarity index 84% rename from asn.1/generated/HorizontalWithVerticalVelocity.h rename to asn.1/lpp_generated/HorizontalWithVerticalVelocity.h index b65c9233..09613035 100644 --- a/asn.1/generated/HorizontalWithVerticalVelocity.h +++ b/asn.1/lpp_generated/HorizontalWithVerticalVelocity.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _HorizontalWithVerticalVelocity_H_ diff --git a/asn.1/lpp_generated/HorizontalWithVerticalVelocityAndUncertainty.c b/asn.1/lpp_generated/HorizontalWithVerticalVelocityAndUncertainty.c new file mode 100644 index 00000000..e9e53d0f --- /dev/null +++ b/asn.1/lpp_generated/HorizontalWithVerticalVelocityAndUncertainty.c @@ -0,0 +1,372 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "HorizontalWithVerticalVelocityAndUncertainty.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_bearing_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 359L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_horizontalSpeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_verticalSpeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_horizontalUncertaintySpeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_verticalUncertaintySpeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_verticalDirection_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bearing_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 359 } /* (0..359) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horizontalSpeed_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_verticalSpeed_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horizontalUncertaintySpeed_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_verticalUncertaintySpeed_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_verticalDirection_value2enum_4[] = { + { 0, 6, "upward" }, + { 1, 8, "downward" } +}; +static const unsigned int asn_MAP_verticalDirection_enum2value_4[] = { + 1, /* downward(1) */ + 0 /* upward(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_verticalDirection_specs_4 = { + asn_MAP_verticalDirection_value2enum_4, /* "tag" => N; sorted by tag */ + asn_MAP_verticalDirection_enum2value_4, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_verticalDirection_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_verticalDirection_4 = { + "verticalDirection", + "verticalDirection", + &asn_OP_NativeEnumerated, + asn_DEF_verticalDirection_tags_4, + sizeof(asn_DEF_verticalDirection_tags_4) + /sizeof(asn_DEF_verticalDirection_tags_4[0]) - 1, /* 1 */ + asn_DEF_verticalDirection_tags_4, /* Same as above */ + sizeof(asn_DEF_verticalDirection_tags_4) + /sizeof(asn_DEF_verticalDirection_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_verticalDirection_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_verticalDirection_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_HorizontalWithVerticalVelocityAndUncertainty_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocityAndUncertainty, bearing), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bearing_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bearing_constraint_1 + }, + 0, 0, /* No default value */ + "bearing" + }, + { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocityAndUncertainty, horizontalSpeed), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horizontalSpeed_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horizontalSpeed_constraint_1 + }, + 0, 0, /* No default value */ + "horizontalSpeed" + }, + { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocityAndUncertainty, verticalDirection), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_verticalDirection_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalDirection" + }, + { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocityAndUncertainty, verticalSpeed), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_verticalSpeed_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_verticalSpeed_constraint_1 + }, + 0, 0, /* No default value */ + "verticalSpeed" + }, + { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocityAndUncertainty, horizontalUncertaintySpeed), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horizontalUncertaintySpeed_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horizontalUncertaintySpeed_constraint_1 + }, + 0, 0, /* No default value */ + "horizontalUncertaintySpeed" + }, + { ATF_NOFLAGS, 0, offsetof(struct HorizontalWithVerticalVelocityAndUncertainty, verticalUncertaintySpeed), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_verticalUncertaintySpeed_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_verticalUncertaintySpeed_constraint_1 + }, + 0, 0, /* No default value */ + "verticalUncertaintySpeed" + }, +}; +static const ber_tlv_tag_t asn_DEF_HorizontalWithVerticalVelocityAndUncertainty_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HorizontalWithVerticalVelocityAndUncertainty_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bearing */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horizontalSpeed */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* verticalDirection */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* verticalSpeed */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* horizontalUncertaintySpeed */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* verticalUncertaintySpeed */ +}; +asn_SEQUENCE_specifics_t asn_SPC_HorizontalWithVerticalVelocityAndUncertainty_specs_1 = { + sizeof(struct HorizontalWithVerticalVelocityAndUncertainty), + offsetof(struct HorizontalWithVerticalVelocityAndUncertainty, _asn_ctx), + asn_MAP_HorizontalWithVerticalVelocityAndUncertainty_tag2el_1, + 6, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_HorizontalWithVerticalVelocityAndUncertainty = { + "HorizontalWithVerticalVelocityAndUncertainty", + "HorizontalWithVerticalVelocityAndUncertainty", + &asn_OP_SEQUENCE, + asn_DEF_HorizontalWithVerticalVelocityAndUncertainty_tags_1, + sizeof(asn_DEF_HorizontalWithVerticalVelocityAndUncertainty_tags_1) + /sizeof(asn_DEF_HorizontalWithVerticalVelocityAndUncertainty_tags_1[0]), /* 1 */ + asn_DEF_HorizontalWithVerticalVelocityAndUncertainty_tags_1, /* Same as above */ + sizeof(asn_DEF_HorizontalWithVerticalVelocityAndUncertainty_tags_1) + /sizeof(asn_DEF_HorizontalWithVerticalVelocityAndUncertainty_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_HorizontalWithVerticalVelocityAndUncertainty_1, + 6, /* Elements count */ + &asn_SPC_HorizontalWithVerticalVelocityAndUncertainty_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/HorizontalWithVerticalVelocityAndUncertainty.h b/asn.1/lpp_generated/HorizontalWithVerticalVelocityAndUncertainty.h similarity index 86% rename from asn.1/generated/HorizontalWithVerticalVelocityAndUncertainty.h rename to asn.1/lpp_generated/HorizontalWithVerticalVelocityAndUncertainty.h index 099f337b..1cce1926 100644 --- a/asn.1/generated/HorizontalWithVerticalVelocityAndUncertainty.h +++ b/asn.1/lpp_generated/HorizontalWithVerticalVelocityAndUncertainty.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _HorizontalWithVerticalVelocityAndUncertainty_H_ diff --git a/asn.1/lpp_generated/Initiator.c b/asn.1/lpp_generated/Initiator.c new file mode 100644 index 00000000..61e3e28e --- /dev/null +++ b/asn.1/lpp_generated/Initiator.c @@ -0,0 +1,65 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Initiator.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Initiator_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_Initiator_value2enum_1[] = { + { 0, 14, "locationServer" }, + { 1, 12, "targetDevice" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_Initiator_enum2value_1[] = { + 0, /* locationServer(0) */ + 1 /* targetDevice(1) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_Initiator_specs_1 = { + asn_MAP_Initiator_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_Initiator_enum2value_1, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_Initiator_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Initiator = { + "Initiator", + "Initiator", + &asn_OP_NativeEnumerated, + asn_DEF_Initiator_tags_1, + sizeof(asn_DEF_Initiator_tags_1) + /sizeof(asn_DEF_Initiator_tags_1[0]), /* 1 */ + asn_DEF_Initiator_tags_1, /* Same as above */ + sizeof(asn_DEF_Initiator_tags_1) + /sizeof(asn_DEF_Initiator_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Initiator_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_Initiator_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Initiator.h b/asn.1/lpp_generated/Initiator.h similarity index 77% rename from asn.1/generated/Initiator.h rename to asn.1/lpp_generated/Initiator.h index 4b9c2255..e7f57f13 100644 --- a/asn.1/generated/Initiator.h +++ b/asn.1/lpp_generated/Initiator.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Initiator_H_ @@ -35,12 +35,10 @@ extern asn_per_constraints_t asn_PER_type_Initiator_constr_1; extern asn_TYPE_descriptor_t asn_DEF_Initiator; extern const asn_INTEGER_specifics_t asn_SPC_Initiator_specs_1; asn_struct_free_f Initiator_free; -asn_struct_print_f Initiator_print; asn_constr_check_f Initiator_constraint; -ber_type_decoder_f Initiator_decode_ber; -der_type_encoder_f Initiator_encode_der; xer_type_decoder_f Initiator_decode_xer; xer_type_encoder_f Initiator_encode_xer; +jer_type_encoder_f Initiator_encode_jer; per_type_decoder_f Initiator_decode_uper; per_type_encoder_f Initiator_encode_uper; diff --git a/asn.1/lpp_generated/IntegrityInfo-r17.c b/asn.1/lpp_generated/IntegrityInfo-r17.c new file mode 100644 index 00000000..07488bb6 --- /dev/null +++ b/asn.1/lpp_generated/IntegrityInfo-r17.c @@ -0,0 +1,200 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "IntegrityInfo-r17.h" + +static int +memb_horizontalProtectionLevel_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 50000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_verticalProtectionLevel_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 50000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_achievableTargetIntegrityRisk_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 10L && value <= 90L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horizontalProtectionLevel_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 50000 } /* (0..50000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_verticalProtectionLevel_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 50000 } /* (0..50000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_achievableTargetIntegrityRisk_r17_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 10, 90 } /* (10..90) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_IntegrityInfo_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct IntegrityInfo_r17, horizontalProtectionLevel_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horizontalProtectionLevel_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horizontalProtectionLevel_r17_constraint_1 + }, + 0, 0, /* No default value */ + "horizontalProtectionLevel-r17" + }, + { ATF_POINTER, 2, offsetof(struct IntegrityInfo_r17, verticalProtectionLevel_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_verticalProtectionLevel_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_verticalProtectionLevel_r17_constraint_1 + }, + 0, 0, /* No default value */ + "verticalProtectionLevel-r17" + }, + { ATF_POINTER, 1, offsetof(struct IntegrityInfo_r17, achievableTargetIntegrityRisk_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_achievableTargetIntegrityRisk_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_achievableTargetIntegrityRisk_r17_constraint_1 + }, + 0, 0, /* No default value */ + "achievableTargetIntegrityRisk-r17" + }, +}; +static const int asn_MAP_IntegrityInfo_r17_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_IntegrityInfo_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_IntegrityInfo_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horizontalProtectionLevel-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* verticalProtectionLevel-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* achievableTargetIntegrityRisk-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_IntegrityInfo_r17_specs_1 = { + sizeof(struct IntegrityInfo_r17), + offsetof(struct IntegrityInfo_r17, _asn_ctx), + asn_MAP_IntegrityInfo_r17_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_IntegrityInfo_r17_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_IntegrityInfo_r17 = { + "IntegrityInfo-r17", + "IntegrityInfo-r17", + &asn_OP_SEQUENCE, + asn_DEF_IntegrityInfo_r17_tags_1, + sizeof(asn_DEF_IntegrityInfo_r17_tags_1) + /sizeof(asn_DEF_IntegrityInfo_r17_tags_1[0]), /* 1 */ + asn_DEF_IntegrityInfo_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_IntegrityInfo_r17_tags_1) + /sizeof(asn_DEF_IntegrityInfo_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_IntegrityInfo_r17_1, + 3, /* Elements count */ + &asn_SPC_IntegrityInfo_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/IntegrityInfo-r17.h b/asn.1/lpp_generated/IntegrityInfo-r17.h new file mode 100644 index 00000000..bcaff173 --- /dev/null +++ b/asn.1/lpp_generated/IntegrityInfo-r17.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _IntegrityInfo_r17_H_ +#define _IntegrityInfo_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* IntegrityInfo-r17 */ +typedef struct IntegrityInfo_r17 { + long horizontalProtectionLevel_r17; + long *verticalProtectionLevel_r17; /* OPTIONAL */ + long *achievableTargetIntegrityRisk_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} IntegrityInfo_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_IntegrityInfo_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_IntegrityInfo_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_IntegrityInfo_r17_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _IntegrityInfo_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/KlobucharModel2Parameter-r16.c b/asn.1/lpp_generated/KlobucharModel2Parameter-r16.c new file mode 100644 index 00000000..ac97969b --- /dev/null +++ b/asn.1/lpp_generated/KlobucharModel2Parameter-r16.c @@ -0,0 +1,498 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "KlobucharModel2Parameter-r16.h" + +static int +memb_alfa1_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_alfa2_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_alfa3_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_alfa4_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_alfa5_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_alfa6_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_alfa7_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_alfa8_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_alfa9_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_alfa1_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_alfa2_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_alfa3_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_alfa4_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_alfa5_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_alfa6_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_alfa7_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_alfa8_r16_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_alfa9_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_KlobucharModel2Parameter_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct KlobucharModel2Parameter_r16, alfa1_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_alfa1_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_alfa1_r16_constraint_1 + }, + 0, 0, /* No default value */ + "alfa1-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct KlobucharModel2Parameter_r16, alfa2_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_alfa2_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_alfa2_r16_constraint_1 + }, + 0, 0, /* No default value */ + "alfa2-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct KlobucharModel2Parameter_r16, alfa3_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_alfa3_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_alfa3_r16_constraint_1 + }, + 0, 0, /* No default value */ + "alfa3-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct KlobucharModel2Parameter_r16, alfa4_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_alfa4_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_alfa4_r16_constraint_1 + }, + 0, 0, /* No default value */ + "alfa4-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct KlobucharModel2Parameter_r16, alfa5_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_alfa5_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_alfa5_r16_constraint_1 + }, + 0, 0, /* No default value */ + "alfa5-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct KlobucharModel2Parameter_r16, alfa6_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_alfa6_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_alfa6_r16_constraint_1 + }, + 0, 0, /* No default value */ + "alfa6-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct KlobucharModel2Parameter_r16, alfa7_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_alfa7_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_alfa7_r16_constraint_1 + }, + 0, 0, /* No default value */ + "alfa7-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct KlobucharModel2Parameter_r16, alfa8_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_alfa8_r16_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_alfa8_r16_constraint_1 + }, + 0, 0, /* No default value */ + "alfa8-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct KlobucharModel2Parameter_r16, alfa9_r16), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_alfa9_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_alfa9_r16_constraint_1 + }, + 0, 0, /* No default value */ + "alfa9-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_KlobucharModel2Parameter_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_KlobucharModel2Parameter_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* alfa1-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* alfa2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* alfa3-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* alfa4-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* alfa5-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* alfa6-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* alfa7-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* alfa8-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* alfa9-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_KlobucharModel2Parameter_r16_specs_1 = { + sizeof(struct KlobucharModel2Parameter_r16), + offsetof(struct KlobucharModel2Parameter_r16, _asn_ctx), + asn_MAP_KlobucharModel2Parameter_r16_tag2el_1, + 9, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 9, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_KlobucharModel2Parameter_r16 = { + "KlobucharModel2Parameter-r16", + "KlobucharModel2Parameter-r16", + &asn_OP_SEQUENCE, + asn_DEF_KlobucharModel2Parameter_r16_tags_1, + sizeof(asn_DEF_KlobucharModel2Parameter_r16_tags_1) + /sizeof(asn_DEF_KlobucharModel2Parameter_r16_tags_1[0]), /* 1 */ + asn_DEF_KlobucharModel2Parameter_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_KlobucharModel2Parameter_r16_tags_1) + /sizeof(asn_DEF_KlobucharModel2Parameter_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_KlobucharModel2Parameter_r16_1, + 9, /* Elements count */ + &asn_SPC_KlobucharModel2Parameter_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/KlobucharModel2Parameter-r16.h b/asn.1/lpp_generated/KlobucharModel2Parameter-r16.h similarity index 81% rename from asn.1/generated/KlobucharModel2Parameter-r16.h rename to asn.1/lpp_generated/KlobucharModel2Parameter-r16.h index cf305c4f..2df6af36 100644 --- a/asn.1/generated/KlobucharModel2Parameter-r16.h +++ b/asn.1/lpp_generated/KlobucharModel2Parameter-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _KlobucharModel2Parameter_r16_H_ diff --git a/asn.1/lpp_generated/KlobucharModelParameter.c b/asn.1/lpp_generated/KlobucharModelParameter.c new file mode 100644 index 00000000..a75e78cb --- /dev/null +++ b/asn.1/lpp_generated/KlobucharModelParameter.c @@ -0,0 +1,504 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "KlobucharModelParameter.h" + +static int +memb_dataID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 2UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_alfa0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_alfa1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_alfa2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_alfa3_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_beta0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_beta1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_beta2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_beta3_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dataID_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_alfa0_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_alfa1_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_alfa2_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_alfa3_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_beta0_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_beta1_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_beta2_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_beta3_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_KlobucharModelParameter_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct KlobucharModelParameter, dataID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dataID_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dataID_constraint_1 + }, + 0, 0, /* No default value */ + "dataID" + }, + { ATF_NOFLAGS, 0, offsetof(struct KlobucharModelParameter, alfa0), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_alfa0_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_alfa0_constraint_1 + }, + 0, 0, /* No default value */ + "alfa0" + }, + { ATF_NOFLAGS, 0, offsetof(struct KlobucharModelParameter, alfa1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_alfa1_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_alfa1_constraint_1 + }, + 0, 0, /* No default value */ + "alfa1" + }, + { ATF_NOFLAGS, 0, offsetof(struct KlobucharModelParameter, alfa2), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_alfa2_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_alfa2_constraint_1 + }, + 0, 0, /* No default value */ + "alfa2" + }, + { ATF_NOFLAGS, 0, offsetof(struct KlobucharModelParameter, alfa3), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_alfa3_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_alfa3_constraint_1 + }, + 0, 0, /* No default value */ + "alfa3" + }, + { ATF_NOFLAGS, 0, offsetof(struct KlobucharModelParameter, beta0), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_beta0_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_beta0_constraint_1 + }, + 0, 0, /* No default value */ + "beta0" + }, + { ATF_NOFLAGS, 0, offsetof(struct KlobucharModelParameter, beta1), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_beta1_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_beta1_constraint_1 + }, + 0, 0, /* No default value */ + "beta1" + }, + { ATF_NOFLAGS, 0, offsetof(struct KlobucharModelParameter, beta2), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_beta2_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_beta2_constraint_1 + }, + 0, 0, /* No default value */ + "beta2" + }, + { ATF_NOFLAGS, 0, offsetof(struct KlobucharModelParameter, beta3), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_beta3_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_beta3_constraint_1 + }, + 0, 0, /* No default value */ + "beta3" + }, +}; +static const ber_tlv_tag_t asn_DEF_KlobucharModelParameter_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_KlobucharModelParameter_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dataID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* alfa0 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* alfa1 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* alfa2 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* alfa3 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* beta0 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* beta1 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* beta2 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* beta3 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_KlobucharModelParameter_specs_1 = { + sizeof(struct KlobucharModelParameter), + offsetof(struct KlobucharModelParameter, _asn_ctx), + asn_MAP_KlobucharModelParameter_tag2el_1, + 9, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 9, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_KlobucharModelParameter = { + "KlobucharModelParameter", + "KlobucharModelParameter", + &asn_OP_SEQUENCE, + asn_DEF_KlobucharModelParameter_tags_1, + sizeof(asn_DEF_KlobucharModelParameter_tags_1) + /sizeof(asn_DEF_KlobucharModelParameter_tags_1[0]), /* 1 */ + asn_DEF_KlobucharModelParameter_tags_1, /* Same as above */ + sizeof(asn_DEF_KlobucharModelParameter_tags_1) + /sizeof(asn_DEF_KlobucharModelParameter_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_KlobucharModelParameter_1, + 9, /* Elements count */ + &asn_SPC_KlobucharModelParameter_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/KlobucharModelParameter.h b/asn.1/lpp_generated/KlobucharModelParameter.h similarity index 81% rename from asn.1/generated/KlobucharModelParameter.h rename to asn.1/lpp_generated/KlobucharModelParameter.h index 0e847c5d..5b365124 100644 --- a/asn.1/generated/KlobucharModelParameter.h +++ b/asn.1/lpp_generated/KlobucharModelParameter.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _KlobucharModelParameter_H_ diff --git a/asn.1/lpp_generated/LCS-GCS-TranslationParameter-r16.c b/asn.1/lpp_generated/LCS-GCS-TranslationParameter-r16.c new file mode 100644 index 00000000..325de612 --- /dev/null +++ b/asn.1/lpp_generated/LCS-GCS-TranslationParameter-r16.c @@ -0,0 +1,350 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "LCS-GCS-TranslationParameter-r16.h" + +static int +memb_alpha_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 359L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_alpha_fine_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_beta_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 359L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_beta_fine_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gamma_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 359L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gamma_fine_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_alpha_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 359 } /* (0..359) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_alpha_fine_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_beta_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 359 } /* (0..359) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_beta_fine_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gamma_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 359 } /* (0..359) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gamma_fine_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_LCS_GCS_TranslationParameter_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LCS_GCS_TranslationParameter_r16, alpha_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_alpha_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_alpha_r16_constraint_1 + }, + 0, 0, /* No default value */ + "alpha-r16" + }, + { ATF_POINTER, 1, offsetof(struct LCS_GCS_TranslationParameter_r16, alpha_fine_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_alpha_fine_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_alpha_fine_r16_constraint_1 + }, + 0, 0, /* No default value */ + "alpha-fine-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct LCS_GCS_TranslationParameter_r16, beta_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_beta_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_beta_r16_constraint_1 + }, + 0, 0, /* No default value */ + "beta-r16" + }, + { ATF_POINTER, 1, offsetof(struct LCS_GCS_TranslationParameter_r16, beta_fine_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_beta_fine_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_beta_fine_r16_constraint_1 + }, + 0, 0, /* No default value */ + "beta-fine-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct LCS_GCS_TranslationParameter_r16, gamma_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gamma_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gamma_r16_constraint_1 + }, + 0, 0, /* No default value */ + "gamma-r16" + }, + { ATF_POINTER, 1, offsetof(struct LCS_GCS_TranslationParameter_r16, gamma_fine_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gamma_fine_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gamma_fine_r16_constraint_1 + }, + 0, 0, /* No default value */ + "gamma-fine-r16" + }, +}; +static const int asn_MAP_LCS_GCS_TranslationParameter_r16_oms_1[] = { 1, 3, 5 }; +static const ber_tlv_tag_t asn_DEF_LCS_GCS_TranslationParameter_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LCS_GCS_TranslationParameter_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* alpha-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* alpha-fine-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* beta-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* beta-fine-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gamma-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* gamma-fine-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LCS_GCS_TranslationParameter_r16_specs_1 = { + sizeof(struct LCS_GCS_TranslationParameter_r16), + offsetof(struct LCS_GCS_TranslationParameter_r16, _asn_ctx), + asn_MAP_LCS_GCS_TranslationParameter_r16_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_LCS_GCS_TranslationParameter_r16_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_LCS_GCS_TranslationParameter_r16 = { + "LCS-GCS-TranslationParameter-r16", + "LCS-GCS-TranslationParameter-r16", + &asn_OP_SEQUENCE, + asn_DEF_LCS_GCS_TranslationParameter_r16_tags_1, + sizeof(asn_DEF_LCS_GCS_TranslationParameter_r16_tags_1) + /sizeof(asn_DEF_LCS_GCS_TranslationParameter_r16_tags_1[0]), /* 1 */ + asn_DEF_LCS_GCS_TranslationParameter_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_LCS_GCS_TranslationParameter_r16_tags_1) + /sizeof(asn_DEF_LCS_GCS_TranslationParameter_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LCS_GCS_TranslationParameter_r16_1, + 6, /* Elements count */ + &asn_SPC_LCS_GCS_TranslationParameter_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/LCS-GCS-TranslationParameter-r16.h b/asn.1/lpp_generated/LCS-GCS-TranslationParameter-r16.h new file mode 100644 index 00000000..5f0d3458 --- /dev/null +++ b/asn.1/lpp_generated/LCS-GCS-TranslationParameter-r16.h @@ -0,0 +1,49 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _LCS_GCS_TranslationParameter_r16_H_ +#define _LCS_GCS_TranslationParameter_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* LCS-GCS-TranslationParameter-r16 */ +typedef struct LCS_GCS_TranslationParameter_r16 { + long alpha_r16; + long *alpha_fine_r16; /* OPTIONAL */ + long beta_r16; + long *beta_fine_r16; /* OPTIONAL */ + long gamma_r16; + long *gamma_fine_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LCS_GCS_TranslationParameter_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LCS_GCS_TranslationParameter_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_LCS_GCS_TranslationParameter_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_LCS_GCS_TranslationParameter_r16_1[6]; + +#ifdef __cplusplus +} +#endif + +#endif /* _LCS_GCS_TranslationParameter_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/LOS-NLOS-Indicator-r17.c b/asn.1/lpp_generated/LOS-NLOS-Indicator-r17.c new file mode 100644 index 00000000..aaa02847 --- /dev/null +++ b/asn.1/lpp_generated/LOS-NLOS-Indicator-r17.c @@ -0,0 +1,178 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "LOS-NLOS-Indicator-r17.h" + +static int +memb_soft_r17_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 10L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_soft_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_indicator_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_indicator_r17_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct LOS_NLOS_Indicator_r17__indicator_r17, choice.soft_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_soft_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_soft_r17_constraint_2 + }, + 0, 0, /* No default value */ + "soft-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct LOS_NLOS_Indicator_r17__indicator_r17, choice.hard_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "hard-r17" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_indicator_r17_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* soft-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* hard-r17 */ +}; +static asn_CHOICE_specifics_t asn_SPC_indicator_r17_specs_2 = { + sizeof(struct LOS_NLOS_Indicator_r17__indicator_r17), + offsetof(struct LOS_NLOS_Indicator_r17__indicator_r17, _asn_ctx), + offsetof(struct LOS_NLOS_Indicator_r17__indicator_r17, present), + sizeof(((struct LOS_NLOS_Indicator_r17__indicator_r17 *)0)->present), + asn_MAP_indicator_r17_tag2el_2, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_indicator_r17_2 = { + "indicator-r17", + "indicator-r17", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_indicator_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_indicator_r17_2, + 2, /* Elements count */ + &asn_SPC_indicator_r17_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_LOS_NLOS_Indicator_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LOS_NLOS_Indicator_r17, indicator_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_indicator_r17_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "indicator-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_LOS_NLOS_Indicator_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LOS_NLOS_Indicator_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* indicator-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LOS_NLOS_Indicator_r17_specs_1 = { + sizeof(struct LOS_NLOS_Indicator_r17), + offsetof(struct LOS_NLOS_Indicator_r17, _asn_ctx), + asn_MAP_LOS_NLOS_Indicator_r17_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_LOS_NLOS_Indicator_r17 = { + "LOS-NLOS-Indicator-r17", + "LOS-NLOS-Indicator-r17", + &asn_OP_SEQUENCE, + asn_DEF_LOS_NLOS_Indicator_r17_tags_1, + sizeof(asn_DEF_LOS_NLOS_Indicator_r17_tags_1) + /sizeof(asn_DEF_LOS_NLOS_Indicator_r17_tags_1[0]), /* 1 */ + asn_DEF_LOS_NLOS_Indicator_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_LOS_NLOS_Indicator_r17_tags_1) + /sizeof(asn_DEF_LOS_NLOS_Indicator_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LOS_NLOS_Indicator_r17_1, + 1, /* Elements count */ + &asn_SPC_LOS_NLOS_Indicator_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/LOS-NLOS-Indicator-r17.h b/asn.1/lpp_generated/LOS-NLOS-Indicator-r17.h new file mode 100644 index 00000000..cdafd737 --- /dev/null +++ b/asn.1/lpp_generated/LOS-NLOS-Indicator-r17.h @@ -0,0 +1,62 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _LOS_NLOS_Indicator_r17_H_ +#define _LOS_NLOS_Indicator_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum LOS_NLOS_Indicator_r17__indicator_r17_PR { + LOS_NLOS_Indicator_r17__indicator_r17_PR_NOTHING, /* No components present */ + LOS_NLOS_Indicator_r17__indicator_r17_PR_soft_r17, + LOS_NLOS_Indicator_r17__indicator_r17_PR_hard_r17 +} LOS_NLOS_Indicator_r17__indicator_r17_PR; + +/* LOS-NLOS-Indicator-r17 */ +typedef struct LOS_NLOS_Indicator_r17 { + struct LOS_NLOS_Indicator_r17__indicator_r17 { + LOS_NLOS_Indicator_r17__indicator_r17_PR present; + union LOS_NLOS_Indicator_r17__indicator_r17_u { + long soft_r17; + BOOLEAN_t hard_r17; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } indicator_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LOS_NLOS_Indicator_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LOS_NLOS_Indicator_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_LOS_NLOS_Indicator_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_LOS_NLOS_Indicator_r17_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _LOS_NLOS_Indicator_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/LOS-NLOS-IndicatorGranularity1-r17.c b/asn.1/lpp_generated/LOS-NLOS-IndicatorGranularity1-r17.c new file mode 100644 index 00000000..ac171f2b --- /dev/null +++ b/asn.1/lpp_generated/LOS-NLOS-IndicatorGranularity1-r17.c @@ -0,0 +1,63 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "LOS-NLOS-IndicatorGranularity1-r17.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LOS_NLOS_IndicatorGranularity1_r17_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_LOS_NLOS_IndicatorGranularity1_r17_value2enum_1[] = { + { 0, 11, "trpspecific" }, + { 1, 16, "resourcespecific" } +}; +static const unsigned int asn_MAP_LOS_NLOS_IndicatorGranularity1_r17_enum2value_1[] = { + 1, /* resourcespecific(1) */ + 0 /* trpspecific(0) */ +}; +const asn_INTEGER_specifics_t asn_SPC_LOS_NLOS_IndicatorGranularity1_r17_specs_1 = { + asn_MAP_LOS_NLOS_IndicatorGranularity1_r17_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_LOS_NLOS_IndicatorGranularity1_r17_enum2value_1, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_LOS_NLOS_IndicatorGranularity1_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LOS_NLOS_IndicatorGranularity1_r17 = { + "LOS-NLOS-IndicatorGranularity1-r17", + "LOS-NLOS-IndicatorGranularity1-r17", + &asn_OP_NativeEnumerated, + asn_DEF_LOS_NLOS_IndicatorGranularity1_r17_tags_1, + sizeof(asn_DEF_LOS_NLOS_IndicatorGranularity1_r17_tags_1) + /sizeof(asn_DEF_LOS_NLOS_IndicatorGranularity1_r17_tags_1[0]), /* 1 */ + asn_DEF_LOS_NLOS_IndicatorGranularity1_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_LOS_NLOS_IndicatorGranularity1_r17_tags_1) + /sizeof(asn_DEF_LOS_NLOS_IndicatorGranularity1_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LOS_NLOS_IndicatorGranularity1_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_LOS_NLOS_IndicatorGranularity1_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/LOS-NLOS-IndicatorGranularity1-r17.h b/asn.1/lpp_generated/LOS-NLOS-IndicatorGranularity1-r17.h new file mode 100644 index 00000000..f1672af5 --- /dev/null +++ b/asn.1/lpp_generated/LOS-NLOS-IndicatorGranularity1-r17.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _LOS_NLOS_IndicatorGranularity1_r17_H_ +#define _LOS_NLOS_IndicatorGranularity1_r17_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum LOS_NLOS_IndicatorGranularity1_r17 { + LOS_NLOS_IndicatorGranularity1_r17_trpspecific = 0, + LOS_NLOS_IndicatorGranularity1_r17_resourcespecific = 1 +} e_LOS_NLOS_IndicatorGranularity1_r17; + +/* LOS-NLOS-IndicatorGranularity1-r17 */ +typedef long LOS_NLOS_IndicatorGranularity1_r17_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_LOS_NLOS_IndicatorGranularity1_r17_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_LOS_NLOS_IndicatorGranularity1_r17; +extern const asn_INTEGER_specifics_t asn_SPC_LOS_NLOS_IndicatorGranularity1_r17_specs_1; +asn_struct_free_f LOS_NLOS_IndicatorGranularity1_r17_free; +asn_constr_check_f LOS_NLOS_IndicatorGranularity1_r17_constraint; +xer_type_decoder_f LOS_NLOS_IndicatorGranularity1_r17_decode_xer; +xer_type_encoder_f LOS_NLOS_IndicatorGranularity1_r17_encode_xer; +jer_type_encoder_f LOS_NLOS_IndicatorGranularity1_r17_encode_jer; +per_type_decoder_f LOS_NLOS_IndicatorGranularity1_r17_decode_uper; +per_type_encoder_f LOS_NLOS_IndicatorGranularity1_r17_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _LOS_NLOS_IndicatorGranularity1_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/LOS-NLOS-IndicatorGranularity2-r17.c b/asn.1/lpp_generated/LOS-NLOS-IndicatorGranularity2-r17.c new file mode 100644 index 00000000..c4d86865 --- /dev/null +++ b/asn.1/lpp_generated/LOS-NLOS-IndicatorGranularity2-r17.c @@ -0,0 +1,65 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "LOS-NLOS-IndicatorGranularity2-r17.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LOS_NLOS_IndicatorGranularity2_r17_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_LOS_NLOS_IndicatorGranularity2_r17_value2enum_1[] = { + { 0, 11, "trpspecific" }, + { 1, 16, "resourcespecific" }, + { 2, 4, "both" } +}; +static const unsigned int asn_MAP_LOS_NLOS_IndicatorGranularity2_r17_enum2value_1[] = { + 2, /* both(2) */ + 1, /* resourcespecific(1) */ + 0 /* trpspecific(0) */ +}; +const asn_INTEGER_specifics_t asn_SPC_LOS_NLOS_IndicatorGranularity2_r17_specs_1 = { + asn_MAP_LOS_NLOS_IndicatorGranularity2_r17_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_LOS_NLOS_IndicatorGranularity2_r17_enum2value_1, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_LOS_NLOS_IndicatorGranularity2_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LOS_NLOS_IndicatorGranularity2_r17 = { + "LOS-NLOS-IndicatorGranularity2-r17", + "LOS-NLOS-IndicatorGranularity2-r17", + &asn_OP_NativeEnumerated, + asn_DEF_LOS_NLOS_IndicatorGranularity2_r17_tags_1, + sizeof(asn_DEF_LOS_NLOS_IndicatorGranularity2_r17_tags_1) + /sizeof(asn_DEF_LOS_NLOS_IndicatorGranularity2_r17_tags_1[0]), /* 1 */ + asn_DEF_LOS_NLOS_IndicatorGranularity2_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_LOS_NLOS_IndicatorGranularity2_r17_tags_1) + /sizeof(asn_DEF_LOS_NLOS_IndicatorGranularity2_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LOS_NLOS_IndicatorGranularity2_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_LOS_NLOS_IndicatorGranularity2_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/LOS-NLOS-IndicatorGranularity2-r17.h b/asn.1/lpp_generated/LOS-NLOS-IndicatorGranularity2-r17.h new file mode 100644 index 00000000..91165cc0 --- /dev/null +++ b/asn.1/lpp_generated/LOS-NLOS-IndicatorGranularity2-r17.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _LOS_NLOS_IndicatorGranularity2_r17_H_ +#define _LOS_NLOS_IndicatorGranularity2_r17_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum LOS_NLOS_IndicatorGranularity2_r17 { + LOS_NLOS_IndicatorGranularity2_r17_trpspecific = 0, + LOS_NLOS_IndicatorGranularity2_r17_resourcespecific = 1, + LOS_NLOS_IndicatorGranularity2_r17_both = 2 +} e_LOS_NLOS_IndicatorGranularity2_r17; + +/* LOS-NLOS-IndicatorGranularity2-r17 */ +typedef long LOS_NLOS_IndicatorGranularity2_r17_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_LOS_NLOS_IndicatorGranularity2_r17_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_LOS_NLOS_IndicatorGranularity2_r17; +extern const asn_INTEGER_specifics_t asn_SPC_LOS_NLOS_IndicatorGranularity2_r17_specs_1; +asn_struct_free_f LOS_NLOS_IndicatorGranularity2_r17_free; +asn_constr_check_f LOS_NLOS_IndicatorGranularity2_r17_constraint; +xer_type_decoder_f LOS_NLOS_IndicatorGranularity2_r17_decode_xer; +xer_type_encoder_f LOS_NLOS_IndicatorGranularity2_r17_encode_xer; +jer_type_encoder_f LOS_NLOS_IndicatorGranularity2_r17_encode_jer; +per_type_decoder_f LOS_NLOS_IndicatorGranularity2_r17_decode_uper; +per_type_encoder_f LOS_NLOS_IndicatorGranularity2_r17_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _LOS_NLOS_IndicatorGranularity2_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/LOS-NLOS-IndicatorType1-r17.c b/asn.1/lpp_generated/LOS-NLOS-IndicatorType1-r17.c new file mode 100644 index 00000000..ec9bb9b2 --- /dev/null +++ b/asn.1/lpp_generated/LOS-NLOS-IndicatorType1-r17.c @@ -0,0 +1,63 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "LOS-NLOS-IndicatorType1-r17.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LOS_NLOS_IndicatorType1_r17_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_LOS_NLOS_IndicatorType1_r17_value2enum_1[] = { + { 0, 9, "hardvalue" }, + { 1, 9, "softvalue" } +}; +static const unsigned int asn_MAP_LOS_NLOS_IndicatorType1_r17_enum2value_1[] = { + 0, /* hardvalue(0) */ + 1 /* softvalue(1) */ +}; +const asn_INTEGER_specifics_t asn_SPC_LOS_NLOS_IndicatorType1_r17_specs_1 = { + asn_MAP_LOS_NLOS_IndicatorType1_r17_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_LOS_NLOS_IndicatorType1_r17_enum2value_1, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_LOS_NLOS_IndicatorType1_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LOS_NLOS_IndicatorType1_r17 = { + "LOS-NLOS-IndicatorType1-r17", + "LOS-NLOS-IndicatorType1-r17", + &asn_OP_NativeEnumerated, + asn_DEF_LOS_NLOS_IndicatorType1_r17_tags_1, + sizeof(asn_DEF_LOS_NLOS_IndicatorType1_r17_tags_1) + /sizeof(asn_DEF_LOS_NLOS_IndicatorType1_r17_tags_1[0]), /* 1 */ + asn_DEF_LOS_NLOS_IndicatorType1_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_LOS_NLOS_IndicatorType1_r17_tags_1) + /sizeof(asn_DEF_LOS_NLOS_IndicatorType1_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LOS_NLOS_IndicatorType1_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_LOS_NLOS_IndicatorType1_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/LOS-NLOS-IndicatorType1-r17.h b/asn.1/lpp_generated/LOS-NLOS-IndicatorType1-r17.h new file mode 100644 index 00000000..3890dc51 --- /dev/null +++ b/asn.1/lpp_generated/LOS-NLOS-IndicatorType1-r17.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _LOS_NLOS_IndicatorType1_r17_H_ +#define _LOS_NLOS_IndicatorType1_r17_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum LOS_NLOS_IndicatorType1_r17 { + LOS_NLOS_IndicatorType1_r17_hardvalue = 0, + LOS_NLOS_IndicatorType1_r17_softvalue = 1 +} e_LOS_NLOS_IndicatorType1_r17; + +/* LOS-NLOS-IndicatorType1-r17 */ +typedef long LOS_NLOS_IndicatorType1_r17_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_LOS_NLOS_IndicatorType1_r17_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_LOS_NLOS_IndicatorType1_r17; +extern const asn_INTEGER_specifics_t asn_SPC_LOS_NLOS_IndicatorType1_r17_specs_1; +asn_struct_free_f LOS_NLOS_IndicatorType1_r17_free; +asn_constr_check_f LOS_NLOS_IndicatorType1_r17_constraint; +xer_type_decoder_f LOS_NLOS_IndicatorType1_r17_decode_xer; +xer_type_encoder_f LOS_NLOS_IndicatorType1_r17_encode_xer; +jer_type_encoder_f LOS_NLOS_IndicatorType1_r17_encode_jer; +per_type_decoder_f LOS_NLOS_IndicatorType1_r17_decode_uper; +per_type_encoder_f LOS_NLOS_IndicatorType1_r17_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _LOS_NLOS_IndicatorType1_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/LOS-NLOS-IndicatorType2-r17.c b/asn.1/lpp_generated/LOS-NLOS-IndicatorType2-r17.c new file mode 100644 index 00000000..b4a707c8 --- /dev/null +++ b/asn.1/lpp_generated/LOS-NLOS-IndicatorType2-r17.c @@ -0,0 +1,63 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "LOS-NLOS-IndicatorType2-r17.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LOS_NLOS_IndicatorType2_r17_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_LOS_NLOS_IndicatorType2_r17_value2enum_1[] = { + { 0, 9, "hardvalue" }, + { 1, 16, "hardAndsoftvalue" } +}; +static const unsigned int asn_MAP_LOS_NLOS_IndicatorType2_r17_enum2value_1[] = { + 1, /* hardAndsoftvalue(1) */ + 0 /* hardvalue(0) */ +}; +const asn_INTEGER_specifics_t asn_SPC_LOS_NLOS_IndicatorType2_r17_specs_1 = { + asn_MAP_LOS_NLOS_IndicatorType2_r17_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_LOS_NLOS_IndicatorType2_r17_enum2value_1, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_LOS_NLOS_IndicatorType2_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LOS_NLOS_IndicatorType2_r17 = { + "LOS-NLOS-IndicatorType2-r17", + "LOS-NLOS-IndicatorType2-r17", + &asn_OP_NativeEnumerated, + asn_DEF_LOS_NLOS_IndicatorType2_r17_tags_1, + sizeof(asn_DEF_LOS_NLOS_IndicatorType2_r17_tags_1) + /sizeof(asn_DEF_LOS_NLOS_IndicatorType2_r17_tags_1[0]), /* 1 */ + asn_DEF_LOS_NLOS_IndicatorType2_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_LOS_NLOS_IndicatorType2_r17_tags_1) + /sizeof(asn_DEF_LOS_NLOS_IndicatorType2_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LOS_NLOS_IndicatorType2_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_LOS_NLOS_IndicatorType2_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/LOS-NLOS-IndicatorType2-r17.h b/asn.1/lpp_generated/LOS-NLOS-IndicatorType2-r17.h new file mode 100644 index 00000000..ae1d67c9 --- /dev/null +++ b/asn.1/lpp_generated/LOS-NLOS-IndicatorType2-r17.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _LOS_NLOS_IndicatorType2_r17_H_ +#define _LOS_NLOS_IndicatorType2_r17_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum LOS_NLOS_IndicatorType2_r17 { + LOS_NLOS_IndicatorType2_r17_hardvalue = 0, + LOS_NLOS_IndicatorType2_r17_hardAndsoftvalue = 1 +} e_LOS_NLOS_IndicatorType2_r17; + +/* LOS-NLOS-IndicatorType2-r17 */ +typedef long LOS_NLOS_IndicatorType2_r17_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_LOS_NLOS_IndicatorType2_r17_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_LOS_NLOS_IndicatorType2_r17; +extern const asn_INTEGER_specifics_t asn_SPC_LOS_NLOS_IndicatorType2_r17_specs_1; +asn_struct_free_f LOS_NLOS_IndicatorType2_r17_free; +asn_constr_check_f LOS_NLOS_IndicatorType2_r17_constraint; +xer_type_decoder_f LOS_NLOS_IndicatorType2_r17_decode_xer; +xer_type_encoder_f LOS_NLOS_IndicatorType2_r17_encode_xer; +jer_type_encoder_f LOS_NLOS_IndicatorType2_r17_encode_jer; +per_type_decoder_f LOS_NLOS_IndicatorType2_r17_decode_uper; +per_type_encoder_f LOS_NLOS_IndicatorType2_r17_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _LOS_NLOS_IndicatorType2_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/LPP-Message.c b/asn.1/lpp_generated/LPP-Message.c new file mode 100644 index 00000000..2942252d --- /dev/null +++ b/asn.1/lpp_generated/LPP-Message.c @@ -0,0 +1,143 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "LPP-Message.h" + +#include "LPP-TransactionID.h" +#include "Acknowledgement.h" +#include "LPP-MessageBody.h" +static asn_TYPE_member_t asn_MBR_LPP_Message_1[] = { + { ATF_POINTER, 1, offsetof(struct LPP_Message, transactionID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LPP_TransactionID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "transactionID" + }, + { ATF_NOFLAGS, 0, offsetof(struct LPP_Message, endTransaction), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "endTransaction" + }, + { ATF_POINTER, 3, offsetof(struct LPP_Message, sequenceNumber), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SequenceNumber, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sequenceNumber" + }, + { ATF_POINTER, 2, offsetof(struct LPP_Message, acknowledgement), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Acknowledgement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "acknowledgement" + }, + { ATF_POINTER, 1, offsetof(struct LPP_Message, lpp_MessageBody), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_LPP_MessageBody, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lpp-MessageBody" + }, +}; +static const int asn_MAP_LPP_Message_oms_1[] = { 0, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_LPP_Message_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LPP_Message_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* transactionID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* endTransaction */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sequenceNumber */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* acknowledgement */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* lpp-MessageBody */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_LPP_Message_specs_1 = { + sizeof(struct LPP_Message), + offsetof(struct LPP_Message, _asn_ctx), + asn_MAP_LPP_Message_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_LPP_Message_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_LPP_Message = { + "LPP-Message", + "LPP-Message", + &asn_OP_SEQUENCE, + asn_DEF_LPP_Message_tags_1, + sizeof(asn_DEF_LPP_Message_tags_1) + /sizeof(asn_DEF_LPP_Message_tags_1[0]), /* 1 */ + asn_DEF_LPP_Message_tags_1, /* Same as above */ + sizeof(asn_DEF_LPP_Message_tags_1) + /sizeof(asn_DEF_LPP_Message_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LPP_Message_1, + 5, /* Elements count */ + &asn_SPC_LPP_Message_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/LPP-Message.h b/asn.1/lpp_generated/LPP-Message.h new file mode 100644 index 00000000..d8a8c50c --- /dev/null +++ b/asn.1/lpp_generated/LPP-Message.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _LPP_Message_H_ +#define _LPP_Message_H_ + + +#include + +/* Including external dependencies */ +#include +#include "SequenceNumber.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct LPP_TransactionID; +struct Acknowledgement; +struct LPP_MessageBody; + +/* LPP-Message */ +typedef struct LPP_Message { + struct LPP_TransactionID *transactionID; /* OPTIONAL */ + BOOLEAN_t endTransaction; + SequenceNumber_t *sequenceNumber; /* OPTIONAL */ + struct Acknowledgement *acknowledgement; /* OPTIONAL */ + struct LPP_MessageBody *lpp_MessageBody; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LPP_Message_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LPP_Message; + +#ifdef __cplusplus +} +#endif + +#endif /* _LPP_Message_H_ */ +#include diff --git a/asn.1/lpp_generated/LPP-MessageBody.c b/asn.1/lpp_generated/LPP-MessageBody.c new file mode 100644 index 00000000..0c5ace71 --- /dev/null +++ b/asn.1/lpp_generated/LPP-MessageBody.c @@ -0,0 +1,456 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "LPP-MessageBody.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_c1_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LPP_MessageBody_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_c1_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.requestCapabilities), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RequestCapabilities, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "requestCapabilities" + }, + { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.provideCapabilities), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ProvideCapabilities, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "provideCapabilities" + }, + { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.requestAssistanceData), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RequestAssistanceData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "requestAssistanceData" + }, + { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.provideAssistanceData), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ProvideAssistanceData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "provideAssistanceData" + }, + { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.requestLocationInformation), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RequestLocationInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "requestLocationInformation" + }, + { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.provideLocationInformation), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ProvideLocationInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "provideLocationInformation" + }, + { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.abort), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Abort, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "abort" + }, + { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.error), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_Error, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "error" + }, + { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.spare7), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare7" + }, + { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.spare6), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare6" + }, + { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.spare5), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare5" + }, + { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.spare4), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare4" + }, + { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.spare3), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare3" + }, + { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.spare2), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare2" + }, + { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.spare1), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare1" + }, + { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody__c1, choice.spare0), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare0" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_c1_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* requestCapabilities */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* provideCapabilities */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* requestAssistanceData */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* provideAssistanceData */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* requestLocationInformation */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* provideLocationInformation */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* abort */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* error */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* spare7 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* spare6 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* spare5 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* spare4 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* spare3 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* spare2 */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* spare1 */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 } /* spare0 */ +}; +static asn_CHOICE_specifics_t asn_SPC_c1_specs_2 = { + sizeof(struct LPP_MessageBody__c1), + offsetof(struct LPP_MessageBody__c1, _asn_ctx), + offsetof(struct LPP_MessageBody__c1, present), + sizeof(((struct LPP_MessageBody__c1 *)0)->present), + asn_MAP_c1_tag2el_2, + 16, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_c1_2 = { + "c1", + "c1", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_c1_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_c1_2, + 16, /* Elements count */ + &asn_SPC_c1_specs_2 /* Additional specs */ +}; + +static const ber_tlv_tag_t asn_DEF_messageClassExtension_tags_19[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SEQUENCE_specifics_t asn_SPC_messageClassExtension_specs_19 = { + sizeof(struct LPP_MessageBody__messageClassExtension), + offsetof(struct LPP_MessageBody__messageClassExtension, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_messageClassExtension_19 = { + "messageClassExtension", + "messageClassExtension", + &asn_OP_SEQUENCE, + asn_DEF_messageClassExtension_tags_19, + sizeof(asn_DEF_messageClassExtension_tags_19) + /sizeof(asn_DEF_messageClassExtension_tags_19[0]) - 1, /* 1 */ + asn_DEF_messageClassExtension_tags_19, /* Same as above */ + sizeof(asn_DEF_messageClassExtension_tags_19) + /sizeof(asn_DEF_messageClassExtension_tags_19[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_messageClassExtension_specs_19 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_LPP_MessageBody_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody, choice.c1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_c1_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "c1" + }, + { ATF_NOFLAGS, 0, offsetof(struct LPP_MessageBody, choice.messageClassExtension), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_messageClassExtension_19, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "messageClassExtension" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_LPP_MessageBody_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* c1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* messageClassExtension */ +}; +asn_CHOICE_specifics_t asn_SPC_LPP_MessageBody_specs_1 = { + sizeof(struct LPP_MessageBody), + offsetof(struct LPP_MessageBody, _asn_ctx), + offsetof(struct LPP_MessageBody, present), + sizeof(((struct LPP_MessageBody *)0)->present), + asn_MAP_LPP_MessageBody_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_LPP_MessageBody = { + "LPP-MessageBody", + "LPP-MessageBody", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LPP_MessageBody_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_LPP_MessageBody_1, + 2, /* Elements count */ + &asn_SPC_LPP_MessageBody_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/LPP-MessageBody.h b/asn.1/lpp_generated/LPP-MessageBody.h similarity index 92% rename from asn.1/generated/LPP-MessageBody.h rename to asn.1/lpp_generated/LPP-MessageBody.h index a2eef54b..5fa3949c 100644 --- a/asn.1/generated/LPP-MessageBody.h +++ b/asn.1/lpp_generated/LPP-MessageBody.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _LPP_MessageBody_H_ diff --git a/asn.1/lpp_generated/LPP-TransactionID.c b/asn.1/lpp_generated/LPP-TransactionID.c new file mode 100644 index 00000000..b949d181 --- /dev/null +++ b/asn.1/lpp_generated/LPP-TransactionID.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "LPP-TransactionID.h" + +asn_TYPE_member_t asn_MBR_LPP_TransactionID_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LPP_TransactionID, initiator), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Initiator, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "initiator" + }, + { ATF_NOFLAGS, 0, offsetof(struct LPP_TransactionID, transactionNumber), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TransactionNumber, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "transactionNumber" + }, +}; +static const ber_tlv_tag_t asn_DEF_LPP_TransactionID_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LPP_TransactionID_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* initiator */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* transactionNumber */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LPP_TransactionID_specs_1 = { + sizeof(struct LPP_TransactionID), + offsetof(struct LPP_TransactionID, _asn_ctx), + asn_MAP_LPP_TransactionID_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_LPP_TransactionID = { + "LPP-TransactionID", + "LPP-TransactionID", + &asn_OP_SEQUENCE, + asn_DEF_LPP_TransactionID_tags_1, + sizeof(asn_DEF_LPP_TransactionID_tags_1) + /sizeof(asn_DEF_LPP_TransactionID_tags_1[0]), /* 1 */ + asn_DEF_LPP_TransactionID_tags_1, /* Same as above */ + sizeof(asn_DEF_LPP_TransactionID_tags_1) + /sizeof(asn_DEF_LPP_TransactionID_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LPP_TransactionID_1, + 2, /* Elements count */ + &asn_SPC_LPP_TransactionID_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/LPP-TransactionID.h b/asn.1/lpp_generated/LPP-TransactionID.h similarity index 79% rename from asn.1/generated/LPP-TransactionID.h rename to asn.1/lpp_generated/LPP-TransactionID.h index a573d5bd..cef41fb1 100644 --- a/asn.1/generated/LPP-TransactionID.h +++ b/asn.1/lpp_generated/LPP-TransactionID.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _LPP_TransactionID_H_ diff --git a/asn.1/lpp_generated/Local2dPointWithUncertaintyEllipse-r18.c b/asn.1/lpp_generated/Local2dPointWithUncertaintyEllipse-r18.c new file mode 100644 index 00000000..dfbb8c57 --- /dev/null +++ b/asn.1/lpp_generated/Local2dPointWithUncertaintyEllipse-r18.c @@ -0,0 +1,382 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Local2dPointWithUncertaintyEllipse-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_uncertaintySemiMajor_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintySemiMinor_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_orientationMajorAxis_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 179L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_confidence_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cartesianCoordinatesUnits_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintySemiMajor_r18_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintySemiMinor_r18_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_orientationMajorAxis_r18_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 179 } /* (0..179) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_confidence_r18_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cartesianCoordinatesUnits_r18_value2enum_3[] = { + { 0, 2, "mm" }, + { 1, 2, "cm" }, + { 2, 2, "dm" }, + { 3, 1, "m" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cartesianCoordinatesUnits_r18_enum2value_3[] = { + 1, /* cm(1) */ + 2, /* dm(2) */ + 3, /* m(3) */ + 0 /* mm(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cartesianCoordinatesUnits_r18_specs_3 = { + asn_MAP_cartesianCoordinatesUnits_r18_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_cartesianCoordinatesUnits_r18_enum2value_3, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cartesianCoordinatesUnits_r18_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cartesianCoordinatesUnits_r18_3 = { + "cartesianCoordinatesUnits-r18", + "cartesianCoordinatesUnits-r18", + &asn_OP_NativeEnumerated, + asn_DEF_cartesianCoordinatesUnits_r18_tags_3, + sizeof(asn_DEF_cartesianCoordinatesUnits_r18_tags_3) + /sizeof(asn_DEF_cartesianCoordinatesUnits_r18_tags_3[0]) - 1, /* 1 */ + asn_DEF_cartesianCoordinatesUnits_r18_tags_3, /* Same as above */ + sizeof(asn_DEF_cartesianCoordinatesUnits_r18_tags_3) + /sizeof(asn_DEF_cartesianCoordinatesUnits_r18_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cartesianCoordinatesUnits_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cartesianCoordinatesUnits_r18_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_Local2dPointWithUncertaintyEllipse_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Local2dPointWithUncertaintyEllipse_r18, localOrigin_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReferencePoint_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "localOrigin-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct Local2dPointWithUncertaintyEllipse_r18, cartesianCoordinatesUnits_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cartesianCoordinatesUnits_r18_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cartesianCoordinatesUnits-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct Local2dPointWithUncertaintyEllipse_r18, x_value_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_X_Value_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "x-value-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct Local2dPointWithUncertaintyEllipse_r18, y_value_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Y_Value_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "y-value-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct Local2dPointWithUncertaintyEllipse_r18, uncertaintySemiMajor_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintySemiMajor_r18_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintySemiMajor_r18_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintySemiMajor-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct Local2dPointWithUncertaintyEllipse_r18, uncertaintySemiMinor_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintySemiMinor_r18_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintySemiMinor_r18_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintySemiMinor-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct Local2dPointWithUncertaintyEllipse_r18, orientationMajorAxis_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_orientationMajorAxis_r18_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_orientationMajorAxis_r18_constraint_1 + }, + 0, 0, /* No default value */ + "orientationMajorAxis-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct Local2dPointWithUncertaintyEllipse_r18, confidence_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_confidence_r18_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_confidence_r18_constraint_1 + }, + 0, 0, /* No default value */ + "confidence-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_Local2dPointWithUncertaintyEllipse_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Local2dPointWithUncertaintyEllipse_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* localOrigin-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cartesianCoordinatesUnits-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* x-value-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* y-value-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* uncertaintySemiMajor-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* uncertaintySemiMinor-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* orientationMajorAxis-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* confidence-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Local2dPointWithUncertaintyEllipse_r18_specs_1 = { + sizeof(struct Local2dPointWithUncertaintyEllipse_r18), + offsetof(struct Local2dPointWithUncertaintyEllipse_r18, _asn_ctx), + asn_MAP_Local2dPointWithUncertaintyEllipse_r18_tag2el_1, + 8, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Local2dPointWithUncertaintyEllipse_r18 = { + "Local2dPointWithUncertaintyEllipse-r18", + "Local2dPointWithUncertaintyEllipse-r18", + &asn_OP_SEQUENCE, + asn_DEF_Local2dPointWithUncertaintyEllipse_r18_tags_1, + sizeof(asn_DEF_Local2dPointWithUncertaintyEllipse_r18_tags_1) + /sizeof(asn_DEF_Local2dPointWithUncertaintyEllipse_r18_tags_1[0]), /* 1 */ + asn_DEF_Local2dPointWithUncertaintyEllipse_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_Local2dPointWithUncertaintyEllipse_r18_tags_1) + /sizeof(asn_DEF_Local2dPointWithUncertaintyEllipse_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Local2dPointWithUncertaintyEllipse_r18_1, + 8, /* Elements count */ + &asn_SPC_Local2dPointWithUncertaintyEllipse_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/Local2dPointWithUncertaintyEllipse-r18.h b/asn.1/lpp_generated/Local2dPointWithUncertaintyEllipse-r18.h new file mode 100644 index 00000000..89cecee3 --- /dev/null +++ b/asn.1/lpp_generated/Local2dPointWithUncertaintyEllipse-r18.h @@ -0,0 +1,63 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _Local2dPointWithUncertaintyEllipse_r18_H_ +#define _Local2dPointWithUncertaintyEllipse_r18_H_ + + +#include + +/* Including external dependencies */ +#include "ReferencePoint-r16.h" +#include +#include "X-Value-r18.h" +#include "Y-Value-r18.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum Local2dPointWithUncertaintyEllipse_r18__cartesianCoordinatesUnits_r18 { + Local2dPointWithUncertaintyEllipse_r18__cartesianCoordinatesUnits_r18_mm = 0, + Local2dPointWithUncertaintyEllipse_r18__cartesianCoordinatesUnits_r18_cm = 1, + Local2dPointWithUncertaintyEllipse_r18__cartesianCoordinatesUnits_r18_dm = 2, + Local2dPointWithUncertaintyEllipse_r18__cartesianCoordinatesUnits_r18_m = 3 + /* + * Enumeration is extensible + */ +} e_Local2dPointWithUncertaintyEllipse_r18__cartesianCoordinatesUnits_r18; + +/* Local2dPointWithUncertaintyEllipse-r18 */ +typedef struct Local2dPointWithUncertaintyEllipse_r18 { + ReferencePoint_r16_t localOrigin_r18; + long cartesianCoordinatesUnits_r18; + X_Value_r18_t x_value_r18; + Y_Value_r18_t y_value_r18; + long uncertaintySemiMajor_r18; + long uncertaintySemiMinor_r18; + long orientationMajorAxis_r18; + long confidence_r18; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Local2dPointWithUncertaintyEllipse_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_cartesianCoordinatesUnits_r18_3; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_Local2dPointWithUncertaintyEllipse_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_Local2dPointWithUncertaintyEllipse_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_Local2dPointWithUncertaintyEllipse_r18_1[8]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Local2dPointWithUncertaintyEllipse_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/Local3dPointWithUncertaintyEllipsoid-r18.c b/asn.1/lpp_generated/Local3dPointWithUncertaintyEllipsoid-r18.c new file mode 100644 index 00000000..46eb37be --- /dev/null +++ b/asn.1/lpp_generated/Local3dPointWithUncertaintyEllipsoid-r18.c @@ -0,0 +1,450 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Local3dPointWithUncertaintyEllipsoid-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_uncertaintySemiMajor_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintySemiMinor_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_orientationMajorAxis_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 179L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintyAltitude_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_confidence_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cartesianCoordinatesUnits_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintySemiMajor_r18_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintySemiMinor_r18_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_orientationMajorAxis_r18_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 179 } /* (0..179) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintyAltitude_r18_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_confidence_r18_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cartesianCoordinatesUnits_r18_value2enum_3[] = { + { 0, 2, "mm" }, + { 1, 2, "cm" }, + { 2, 2, "dm" }, + { 3, 1, "m" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cartesianCoordinatesUnits_r18_enum2value_3[] = { + 1, /* cm(1) */ + 2, /* dm(2) */ + 3, /* m(3) */ + 0 /* mm(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cartesianCoordinatesUnits_r18_specs_3 = { + asn_MAP_cartesianCoordinatesUnits_r18_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_cartesianCoordinatesUnits_r18_enum2value_3, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cartesianCoordinatesUnits_r18_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cartesianCoordinatesUnits_r18_3 = { + "cartesianCoordinatesUnits-r18", + "cartesianCoordinatesUnits-r18", + &asn_OP_NativeEnumerated, + asn_DEF_cartesianCoordinatesUnits_r18_tags_3, + sizeof(asn_DEF_cartesianCoordinatesUnits_r18_tags_3) + /sizeof(asn_DEF_cartesianCoordinatesUnits_r18_tags_3[0]) - 1, /* 1 */ + asn_DEF_cartesianCoordinatesUnits_r18_tags_3, /* Same as above */ + sizeof(asn_DEF_cartesianCoordinatesUnits_r18_tags_3) + /sizeof(asn_DEF_cartesianCoordinatesUnits_r18_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cartesianCoordinatesUnits_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cartesianCoordinatesUnits_r18_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_Local3dPointWithUncertaintyEllipsoid_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Local3dPointWithUncertaintyEllipsoid_r18, localOrigin_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReferencePoint_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "localOrigin-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct Local3dPointWithUncertaintyEllipsoid_r18, cartesianCoordinatesUnits_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cartesianCoordinatesUnits_r18_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cartesianCoordinatesUnits-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct Local3dPointWithUncertaintyEllipsoid_r18, x_value_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_X_Value_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "x-value-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct Local3dPointWithUncertaintyEllipsoid_r18, y_value_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Y_Value_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "y-value-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct Local3dPointWithUncertaintyEllipsoid_r18, z_value_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Z_Value_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "z-value-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct Local3dPointWithUncertaintyEllipsoid_r18, uncertaintySemiMajor_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintySemiMajor_r18_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintySemiMajor_r18_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintySemiMajor-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct Local3dPointWithUncertaintyEllipsoid_r18, uncertaintySemiMinor_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintySemiMinor_r18_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintySemiMinor_r18_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintySemiMinor-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct Local3dPointWithUncertaintyEllipsoid_r18, orientationMajorAxis_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_orientationMajorAxis_r18_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_orientationMajorAxis_r18_constraint_1 + }, + 0, 0, /* No default value */ + "orientationMajorAxis-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct Local3dPointWithUncertaintyEllipsoid_r18, uncertaintyAltitude_r18), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintyAltitude_r18_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintyAltitude_r18_constraint_1 + }, + 0, 0, /* No default value */ + "uncertaintyAltitude-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct Local3dPointWithUncertaintyEllipsoid_r18, confidence_r18), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_confidence_r18_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_confidence_r18_constraint_1 + }, + 0, 0, /* No default value */ + "confidence-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_Local3dPointWithUncertaintyEllipsoid_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Local3dPointWithUncertaintyEllipsoid_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* localOrigin-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cartesianCoordinatesUnits-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* x-value-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* y-value-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* z-value-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* uncertaintySemiMajor-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* uncertaintySemiMinor-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* orientationMajorAxis-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* uncertaintyAltitude-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* confidence-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Local3dPointWithUncertaintyEllipsoid_r18_specs_1 = { + sizeof(struct Local3dPointWithUncertaintyEllipsoid_r18), + offsetof(struct Local3dPointWithUncertaintyEllipsoid_r18, _asn_ctx), + asn_MAP_Local3dPointWithUncertaintyEllipsoid_r18_tag2el_1, + 10, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Local3dPointWithUncertaintyEllipsoid_r18 = { + "Local3dPointWithUncertaintyEllipsoid-r18", + "Local3dPointWithUncertaintyEllipsoid-r18", + &asn_OP_SEQUENCE, + asn_DEF_Local3dPointWithUncertaintyEllipsoid_r18_tags_1, + sizeof(asn_DEF_Local3dPointWithUncertaintyEllipsoid_r18_tags_1) + /sizeof(asn_DEF_Local3dPointWithUncertaintyEllipsoid_r18_tags_1[0]), /* 1 */ + asn_DEF_Local3dPointWithUncertaintyEllipsoid_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_Local3dPointWithUncertaintyEllipsoid_r18_tags_1) + /sizeof(asn_DEF_Local3dPointWithUncertaintyEllipsoid_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Local3dPointWithUncertaintyEllipsoid_r18_1, + 10, /* Elements count */ + &asn_SPC_Local3dPointWithUncertaintyEllipsoid_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/Local3dPointWithUncertaintyEllipsoid-r18.h b/asn.1/lpp_generated/Local3dPointWithUncertaintyEllipsoid-r18.h new file mode 100644 index 00000000..daab727f --- /dev/null +++ b/asn.1/lpp_generated/Local3dPointWithUncertaintyEllipsoid-r18.h @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _Local3dPointWithUncertaintyEllipsoid_r18_H_ +#define _Local3dPointWithUncertaintyEllipsoid_r18_H_ + + +#include + +/* Including external dependencies */ +#include "ReferencePoint-r16.h" +#include +#include "X-Value-r18.h" +#include "Y-Value-r18.h" +#include "Z-Value-r18.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum Local3dPointWithUncertaintyEllipsoid_r18__cartesianCoordinatesUnits_r18 { + Local3dPointWithUncertaintyEllipsoid_r18__cartesianCoordinatesUnits_r18_mm = 0, + Local3dPointWithUncertaintyEllipsoid_r18__cartesianCoordinatesUnits_r18_cm = 1, + Local3dPointWithUncertaintyEllipsoid_r18__cartesianCoordinatesUnits_r18_dm = 2, + Local3dPointWithUncertaintyEllipsoid_r18__cartesianCoordinatesUnits_r18_m = 3 + /* + * Enumeration is extensible + */ +} e_Local3dPointWithUncertaintyEllipsoid_r18__cartesianCoordinatesUnits_r18; + +/* Local3dPointWithUncertaintyEllipsoid-r18 */ +typedef struct Local3dPointWithUncertaintyEllipsoid_r18 { + ReferencePoint_r16_t localOrigin_r18; + long cartesianCoordinatesUnits_r18; + X_Value_r18_t x_value_r18; + Y_Value_r18_t y_value_r18; + Z_Value_r18_t z_value_r18; + long uncertaintySemiMajor_r18; + long uncertaintySemiMinor_r18; + long orientationMajorAxis_r18; + long uncertaintyAltitude_r18; + long confidence_r18; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Local3dPointWithUncertaintyEllipsoid_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_cartesianCoordinatesUnits_r18_3; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_Local3dPointWithUncertaintyEllipsoid_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_Local3dPointWithUncertaintyEllipsoid_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_Local3dPointWithUncertaintyEllipsoid_r18_1[10]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Local3dPointWithUncertaintyEllipsoid_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/LocalOrigin-r18.c b/asn.1/lpp_generated/LocalOrigin-r18.c new file mode 100644 index 00000000..a95eeda5 --- /dev/null +++ b/asn.1/lpp_generated/LocalOrigin-r18.c @@ -0,0 +1,134 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "LocalOrigin-r18.h" + +#include "Ellipsoid-Point.h" +static int check_permitted_alphabet_2(const void *sptr) { + /* The underlying type is VisibleString */ + const VisibleString_t *st = (const VisibleString_t *)sptr; + const uint8_t *ch = st->buf; + const uint8_t *end = ch + st->size; + + for(; ch < end; ch++) { + uint8_t cv = *ch; + if(!(cv >= 32UL && cv <= 126UL)) return -1; + } + return 0; +} + +static int +memb_coordinateID_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const VisibleString_t *st = (const VisibleString_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size >= 1UL && size <= 256UL) + && !check_permitted_alphabet_2(st)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_coordinateID_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 32, 126 } /* (32..126) */, + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (SIZE(1..256)) */, + 0, 0 /* No PER character map necessary */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_LocalOrigin_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LocalOrigin_r18, coordinateID_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VisibleString, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_coordinateID_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_coordinateID_r18_constraint_1 + }, + 0, 0, /* No default value */ + "coordinateID-r18" + }, + { ATF_POINTER, 1, offsetof(struct LocalOrigin_r18, point_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ellipsoid_Point, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "point-r18" + }, +}; +static const int asn_MAP_LocalOrigin_r18_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_LocalOrigin_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LocalOrigin_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* coordinateID-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* point-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LocalOrigin_r18_specs_1 = { + sizeof(struct LocalOrigin_r18), + offsetof(struct LocalOrigin_r18, _asn_ctx), + asn_MAP_LocalOrigin_r18_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_LocalOrigin_r18_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_LocalOrigin_r18 = { + "LocalOrigin-r18", + "LocalOrigin-r18", + &asn_OP_SEQUENCE, + asn_DEF_LocalOrigin_r18_tags_1, + sizeof(asn_DEF_LocalOrigin_r18_tags_1) + /sizeof(asn_DEF_LocalOrigin_r18_tags_1[0]), /* 1 */ + asn_DEF_LocalOrigin_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_LocalOrigin_r18_tags_1) + /sizeof(asn_DEF_LocalOrigin_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LocalOrigin_r18_1, + 2, /* Elements count */ + &asn_SPC_LocalOrigin_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/LocalOrigin-r18.h b/asn.1/lpp_generated/LocalOrigin-r18.h new file mode 100644 index 00000000..fea18d1f --- /dev/null +++ b/asn.1/lpp_generated/LocalOrigin-r18.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _LocalOrigin_r18_H_ +#define _LocalOrigin_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct Ellipsoid_Point; + +/* LocalOrigin-r18 */ +typedef struct LocalOrigin_r18 { + VisibleString_t coordinateID_r18; + struct Ellipsoid_Point *point_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LocalOrigin_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LocalOrigin_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_LocalOrigin_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_LocalOrigin_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _LocalOrigin_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/LocationCoordinateTypes.c b/asn.1/lpp_generated/LocationCoordinateTypes.c new file mode 100644 index 00000000..71fd5f07 --- /dev/null +++ b/asn.1/lpp_generated/LocationCoordinateTypes.c @@ -0,0 +1,467 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "LocationCoordinateTypes.h" + +static asn_TYPE_member_t asn_MBR_ext1_10[] = { + { ATF_POINTER, 2, offsetof(struct LocationCoordinateTypes__ext1, highAccuracyEllipsoidPointWithUncertaintyEllipse_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "highAccuracyEllipsoidPointWithUncertaintyEllipse-r15" + }, + { ATF_POINTER, 1, offsetof(struct LocationCoordinateTypes__ext1, highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15" + }, +}; +static const int asn_MAP_ext1_oms_10[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_10[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* highAccuracyEllipsoidPointWithUncertaintyEllipse-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_10 = { + sizeof(struct LocationCoordinateTypes__ext1), + offsetof(struct LocationCoordinateTypes__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_10, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_10, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_10 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_10, + sizeof(asn_DEF_ext1_tags_10) + /sizeof(asn_DEF_ext1_tags_10[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_10, /* Same as above */ + sizeof(asn_DEF_ext1_tags_10) + /sizeof(asn_DEF_ext1_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_10, + 2, /* Elements count */ + &asn_SPC_ext1_specs_10 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_13[] = { + { ATF_POINTER, 2, offsetof(struct LocationCoordinateTypes__ext2, ha_EllipsoidPointWithScalableUncertaintyEllipse_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ha-EllipsoidPointWithScalableUncertaintyEllipse-r16" + }, + { ATF_POINTER, 1, offsetof(struct LocationCoordinateTypes__ext2, ha_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ha-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-r16" + }, +}; +static const int asn_MAP_ext2_oms_13[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_13[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ha-EllipsoidPointWithScalableUncertaintyEllipse-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ha-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_13 = { + sizeof(struct LocationCoordinateTypes__ext2), + offsetof(struct LocationCoordinateTypes__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_13, + 2, /* Count of tags in the map */ + asn_MAP_ext2_oms_13, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_13 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_13, + sizeof(asn_DEF_ext2_tags_13) + /sizeof(asn_DEF_ext2_tags_13[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_13, /* Same as above */ + sizeof(asn_DEF_ext2_tags_13) + /sizeof(asn_DEF_ext2_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_13, + 2, /* Elements count */ + &asn_SPC_ext2_specs_13 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_16[] = { + { ATF_POINTER, 2, offsetof(struct LocationCoordinateTypes__ext3, local2dPointWithUncertaintyEllipse_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "local2dPointWithUncertaintyEllipse-r18" + }, + { ATF_POINTER, 1, offsetof(struct LocationCoordinateTypes__ext3, local3dPointWithUncertaintyEllipsoid_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "local3dPointWithUncertaintyEllipsoid-r18" + }, +}; +static const int asn_MAP_ext3_oms_16[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_16[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_16[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* local2dPointWithUncertaintyEllipse-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* local3dPointWithUncertaintyEllipsoid-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_16 = { + sizeof(struct LocationCoordinateTypes__ext3), + offsetof(struct LocationCoordinateTypes__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_16, + 2, /* Count of tags in the map */ + asn_MAP_ext3_oms_16, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_16 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_16, + sizeof(asn_DEF_ext3_tags_16) + /sizeof(asn_DEF_ext3_tags_16[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_16, /* Same as above */ + sizeof(asn_DEF_ext3_tags_16) + /sizeof(asn_DEF_ext3_tags_16[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_16, + 2, /* Elements count */ + &asn_SPC_ext3_specs_16 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_LocationCoordinateTypes_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinateTypes, ellipsoidPoint), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ellipsoidPoint" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinateTypes, ellipsoidPointWithUncertaintyCircle), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ellipsoidPointWithUncertaintyCircle" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinateTypes, ellipsoidPointWithUncertaintyEllipse), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ellipsoidPointWithUncertaintyEllipse" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinateTypes, polygon), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "polygon" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinateTypes, ellipsoidPointWithAltitude), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ellipsoidPointWithAltitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinateTypes, ellipsoidPointWithAltitudeAndUncertaintyEllipsoid), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ellipsoidPointWithAltitudeAndUncertaintyEllipsoid" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinateTypes, ellipsoidArc), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ellipsoidArc" + }, + { ATF_POINTER, 3, offsetof(struct LocationCoordinateTypes, ext1), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_ext1_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 2, offsetof(struct LocationCoordinateTypes, ext2), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + 0, + &asn_DEF_ext2_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 1, offsetof(struct LocationCoordinateTypes, ext3), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + 0, + &asn_DEF_ext3_16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, +}; +static const int asn_MAP_LocationCoordinateTypes_oms_1[] = { 7, 8, 9 }; +static const ber_tlv_tag_t asn_DEF_LocationCoordinateTypes_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LocationCoordinateTypes_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ellipsoidPoint */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ellipsoidPointWithUncertaintyCircle */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ellipsoidPointWithUncertaintyEllipse */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* polygon */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ellipsoidPointWithAltitude */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ellipsoidPointWithAltitudeAndUncertaintyEllipsoid */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ellipsoidArc */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* ext3 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LocationCoordinateTypes_specs_1 = { + sizeof(struct LocationCoordinateTypes), + offsetof(struct LocationCoordinateTypes, _asn_ctx), + asn_MAP_LocationCoordinateTypes_tag2el_1, + 10, /* Count of tags in the map */ + asn_MAP_LocationCoordinateTypes_oms_1, /* Optional members */ + 0, 3, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_LocationCoordinateTypes = { + "LocationCoordinateTypes", + "LocationCoordinateTypes", + &asn_OP_SEQUENCE, + asn_DEF_LocationCoordinateTypes_tags_1, + sizeof(asn_DEF_LocationCoordinateTypes_tags_1) + /sizeof(asn_DEF_LocationCoordinateTypes_tags_1[0]), /* 1 */ + asn_DEF_LocationCoordinateTypes_tags_1, /* Same as above */ + sizeof(asn_DEF_LocationCoordinateTypes_tags_1) + /sizeof(asn_DEF_LocationCoordinateTypes_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LocationCoordinateTypes_1, + 10, /* Elements count */ + &asn_SPC_LocationCoordinateTypes_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/LocationCoordinateTypes.h b/asn.1/lpp_generated/LocationCoordinateTypes.h new file mode 100644 index 00000000..0d252675 --- /dev/null +++ b/asn.1/lpp_generated/LocationCoordinateTypes.h @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _LocationCoordinateTypes_H_ +#define _LocationCoordinateTypes_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* LocationCoordinateTypes */ +typedef struct LocationCoordinateTypes { + BOOLEAN_t ellipsoidPoint; + BOOLEAN_t ellipsoidPointWithUncertaintyCircle; + BOOLEAN_t ellipsoidPointWithUncertaintyEllipse; + BOOLEAN_t polygon; + BOOLEAN_t ellipsoidPointWithAltitude; + BOOLEAN_t ellipsoidPointWithAltitudeAndUncertaintyEllipsoid; + BOOLEAN_t ellipsoidArc; + /* + * This type is extensible, + * possible extensions are below. + */ + struct LocationCoordinateTypes__ext1 { + BOOLEAN_t *highAccuracyEllipsoidPointWithUncertaintyEllipse_r15; /* OPTIONAL */ + BOOLEAN_t *highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct LocationCoordinateTypes__ext2 { + BOOLEAN_t *ha_EllipsoidPointWithScalableUncertaintyEllipse_r16; /* OPTIONAL */ + BOOLEAN_t *ha_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct LocationCoordinateTypes__ext3 { + BOOLEAN_t *local2dPointWithUncertaintyEllipse_r18; /* OPTIONAL */ + BOOLEAN_t *local3dPointWithUncertaintyEllipsoid_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LocationCoordinateTypes_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LocationCoordinateTypes; +extern asn_SEQUENCE_specifics_t asn_SPC_LocationCoordinateTypes_specs_1; +extern asn_TYPE_member_t asn_MBR_LocationCoordinateTypes_1[10]; + +#ifdef __cplusplus +} +#endif + +#endif /* _LocationCoordinateTypes_H_ */ +#include diff --git a/asn.1/lpp_generated/LocationCoordinates.c b/asn.1/lpp_generated/LocationCoordinates.c new file mode 100644 index 00000000..2978c72d --- /dev/null +++ b/asn.1/lpp_generated/LocationCoordinates.c @@ -0,0 +1,286 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "LocationCoordinates.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LocationCoordinates_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 6 } /* (0..6,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_LocationCoordinates_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.ellipsoidPoint), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ellipsoid_Point, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ellipsoidPoint" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.ellipsoidPointWithUncertaintyCircle), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ellipsoid_PointWithUncertaintyCircle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ellipsoidPointWithUncertaintyCircle" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.ellipsoidPointWithUncertaintyEllipse), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EllipsoidPointWithUncertaintyEllipse, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ellipsoidPointWithUncertaintyEllipse" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.polygon), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Polygon, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "polygon" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.ellipsoidPointWithAltitude), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EllipsoidPointWithAltitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ellipsoidPointWithAltitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.ellipsoidPointWithAltitudeAndUncertaintyEllipsoid), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ellipsoidPointWithAltitudeAndUncertaintyEllipsoid" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.ellipsoidArc), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EllipsoidArc, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ellipsoidArc" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.highAccuracyEllipsoidPointWithUncertaintyEllipse_v1510), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "highAccuracyEllipsoidPointWithUncertaintyEllipse-v1510" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_v1510), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-v1510" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.ha_EllipsoidPointWithScalableUncertaintyEllipse_v1680), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HA_EllipsoidPointWithScalableUncertaintyEllipse_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ha-EllipsoidPointWithScalableUncertaintyEllipse-v1680" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.ha_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_v1680), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ha-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-v1680" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.local2dPointWithUncertaintyEllipse_v1800), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Local2dPointWithUncertaintyEllipse_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "local2dPointWithUncertaintyEllipse-v1800" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationCoordinates, choice.local3dPointWithUncertaintyEllipsoid_v1800), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Local3dPointWithUncertaintyEllipsoid_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "local3dPointWithUncertaintyEllipsoid-v1800" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_LocationCoordinates_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ellipsoidPoint */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ellipsoidPointWithUncertaintyCircle */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ellipsoidPointWithUncertaintyEllipse */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* polygon */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ellipsoidPointWithAltitude */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ellipsoidPointWithAltitudeAndUncertaintyEllipsoid */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ellipsoidArc */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* highAccuracyEllipsoidPointWithUncertaintyEllipse-v1510 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-v1510 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* ha-EllipsoidPointWithScalableUncertaintyEllipse-v1680 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* ha-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-v1680 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* local2dPointWithUncertaintyEllipse-v1800 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 } /* local3dPointWithUncertaintyEllipsoid-v1800 */ +}; +asn_CHOICE_specifics_t asn_SPC_LocationCoordinates_specs_1 = { + sizeof(struct LocationCoordinates), + offsetof(struct LocationCoordinates, _asn_ctx), + offsetof(struct LocationCoordinates, present), + sizeof(((struct LocationCoordinates *)0)->present), + asn_MAP_LocationCoordinates_tag2el_1, + 13, /* Count of tags in the map */ + 0, 0, + 7 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_LocationCoordinates = { + "LocationCoordinates", + "LocationCoordinates", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LocationCoordinates_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_LocationCoordinates_1, + 13, /* Elements count */ + &asn_SPC_LocationCoordinates_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/LocationCoordinates.h b/asn.1/lpp_generated/LocationCoordinates.h new file mode 100644 index 00000000..2faae70c --- /dev/null +++ b/asn.1/lpp_generated/LocationCoordinates.h @@ -0,0 +1,91 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _LocationCoordinates_H_ +#define _LocationCoordinates_H_ + + +#include + +/* Including external dependencies */ +#include "Ellipsoid-Point.h" +#include "Ellipsoid-PointWithUncertaintyCircle.h" +#include "EllipsoidPointWithUncertaintyEllipse.h" +#include "Polygon.h" +#include "EllipsoidPointWithAltitude.h" +#include "EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.h" +#include "EllipsoidArc.h" +#include "HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15.h" +#include "HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.h" +#include "HA-EllipsoidPointWithScalableUncertaintyEllipse-r16.h" +#include "HA-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-r16.h" +#include "Local2dPointWithUncertaintyEllipse-r18.h" +#include "Local3dPointWithUncertaintyEllipsoid-r18.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum LocationCoordinates_PR { + LocationCoordinates_PR_NOTHING, /* No components present */ + LocationCoordinates_PR_ellipsoidPoint, + LocationCoordinates_PR_ellipsoidPointWithUncertaintyCircle, + LocationCoordinates_PR_ellipsoidPointWithUncertaintyEllipse, + LocationCoordinates_PR_polygon, + LocationCoordinates_PR_ellipsoidPointWithAltitude, + LocationCoordinates_PR_ellipsoidPointWithAltitudeAndUncertaintyEllipsoid, + LocationCoordinates_PR_ellipsoidArc, + /* Extensions may appear below */ + LocationCoordinates_PR_highAccuracyEllipsoidPointWithUncertaintyEllipse_v1510, + LocationCoordinates_PR_highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_v1510, + LocationCoordinates_PR_ha_EllipsoidPointWithScalableUncertaintyEllipse_v1680, + LocationCoordinates_PR_ha_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_v1680, + LocationCoordinates_PR_local2dPointWithUncertaintyEllipse_v1800, + LocationCoordinates_PR_local3dPointWithUncertaintyEllipsoid_v1800 +} LocationCoordinates_PR; + +/* LocationCoordinates */ +typedef struct LocationCoordinates { + LocationCoordinates_PR present; + union LocationCoordinates_u { + Ellipsoid_Point_t ellipsoidPoint; + Ellipsoid_PointWithUncertaintyCircle_t ellipsoidPointWithUncertaintyCircle; + EllipsoidPointWithUncertaintyEllipse_t ellipsoidPointWithUncertaintyEllipse; + Polygon_t polygon; + EllipsoidPointWithAltitude_t ellipsoidPointWithAltitude; + EllipsoidPointWithAltitudeAndUncertaintyEllipsoid_t ellipsoidPointWithAltitudeAndUncertaintyEllipsoid; + EllipsoidArc_t ellipsoidArc; + /* + * This type is extensible, + * possible extensions are below. + */ + HighAccuracyEllipsoidPointWithUncertaintyEllipse_r15_t highAccuracyEllipsoidPointWithUncertaintyEllipse_v1510; + HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15_t highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_v1510; + HA_EllipsoidPointWithScalableUncertaintyEllipse_r16_t ha_EllipsoidPointWithScalableUncertaintyEllipse_v1680; + HA_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_r16_t ha_EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid_v1680; + Local2dPointWithUncertaintyEllipse_r18_t local2dPointWithUncertaintyEllipse_v1800; + Local3dPointWithUncertaintyEllipsoid_r18_t local3dPointWithUncertaintyEllipsoid_v1800; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LocationCoordinates_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LocationCoordinates; +extern asn_CHOICE_specifics_t asn_SPC_LocationCoordinates_specs_1; +extern asn_TYPE_member_t asn_MBR_LocationCoordinates_1[13]; +extern asn_per_constraints_t asn_PER_type_LocationCoordinates_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _LocationCoordinates_H_ */ +#include diff --git a/asn.1/lpp_generated/LocationDataLCI-r14.c b/asn.1/lpp_generated/LocationDataLCI-r14.c new file mode 100644 index 00000000..5ff91aeb --- /dev/null +++ b/asn.1/lpp_generated/LocationDataLCI-r14.c @@ -0,0 +1,442 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "LocationDataLCI-r14.h" + +static int +memb_latitudeUncertainty_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 6UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_latitude_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 34UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_longitudeUncertainty_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 6UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_longitude_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 34UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_altitudeUncertainty_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 6UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_altitude_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 30UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_datum_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_latitudeUncertainty_r14_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_latitude_r14_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 34, 34 } /* (SIZE(34..34)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_longitudeUncertainty_r14_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_longitude_r14_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 34, 34 } /* (SIZE(34..34)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_altitudeUncertainty_r14_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_altitude_r14_constr_7 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 30, 30 } /* (SIZE(30..30)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_datum_r14_constr_8 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_LocationDataLCI_r14_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LocationDataLCI_r14, latitudeUncertainty_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_latitudeUncertainty_r14_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_latitudeUncertainty_r14_constraint_1 + }, + 0, 0, /* No default value */ + "latitudeUncertainty-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationDataLCI_r14, latitude_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_latitude_r14_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_latitude_r14_constraint_1 + }, + 0, 0, /* No default value */ + "latitude-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationDataLCI_r14, longitudeUncertainty_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_longitudeUncertainty_r14_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_longitudeUncertainty_r14_constraint_1 + }, + 0, 0, /* No default value */ + "longitudeUncertainty-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationDataLCI_r14, longitude_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_longitude_r14_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_longitude_r14_constraint_1 + }, + 0, 0, /* No default value */ + "longitude-r14" + }, + { ATF_POINTER, 2, offsetof(struct LocationDataLCI_r14, altitudeUncertainty_r14), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_altitudeUncertainty_r14_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_altitudeUncertainty_r14_constraint_1 + }, + 0, 0, /* No default value */ + "altitudeUncertainty-r14" + }, + { ATF_POINTER, 1, offsetof(struct LocationDataLCI_r14, altitude_r14), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_altitude_r14_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_altitude_r14_constraint_1 + }, + 0, 0, /* No default value */ + "altitude-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationDataLCI_r14, datum_r14), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_datum_r14_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_datum_r14_constraint_1 + }, + 0, 0, /* No default value */ + "datum-r14" + }, +}; +static const int asn_MAP_LocationDataLCI_r14_oms_1[] = { 4, 5 }; +static const ber_tlv_tag_t asn_DEF_LocationDataLCI_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LocationDataLCI_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeUncertainty-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* latitude-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* longitudeUncertainty-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* longitude-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* altitudeUncertainty-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* altitude-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* datum-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LocationDataLCI_r14_specs_1 = { + sizeof(struct LocationDataLCI_r14), + offsetof(struct LocationDataLCI_r14, _asn_ctx), + asn_MAP_LocationDataLCI_r14_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_LocationDataLCI_r14_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_LocationDataLCI_r14 = { + "LocationDataLCI-r14", + "LocationDataLCI-r14", + &asn_OP_SEQUENCE, + asn_DEF_LocationDataLCI_r14_tags_1, + sizeof(asn_DEF_LocationDataLCI_r14_tags_1) + /sizeof(asn_DEF_LocationDataLCI_r14_tags_1[0]), /* 1 */ + asn_DEF_LocationDataLCI_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_LocationDataLCI_r14_tags_1) + /sizeof(asn_DEF_LocationDataLCI_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LocationDataLCI_r14_1, + 7, /* Elements count */ + &asn_SPC_LocationDataLCI_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/LocationDataLCI-r14.h b/asn.1/lpp_generated/LocationDataLCI-r14.h new file mode 100644 index 00000000..c7d6b5a8 --- /dev/null +++ b/asn.1/lpp_generated/LocationDataLCI-r14.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _LocationDataLCI_r14_H_ +#define _LocationDataLCI_r14_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* LocationDataLCI-r14 */ +typedef struct LocationDataLCI_r14 { + BIT_STRING_t latitudeUncertainty_r14; + BIT_STRING_t latitude_r14; + BIT_STRING_t longitudeUncertainty_r14; + BIT_STRING_t longitude_r14; + BIT_STRING_t *altitudeUncertainty_r14; /* OPTIONAL */ + BIT_STRING_t *altitude_r14; /* OPTIONAL */ + BIT_STRING_t datum_r14; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LocationDataLCI_r14_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LocationDataLCI_r14; +extern asn_SEQUENCE_specifics_t asn_SPC_LocationDataLCI_r14_specs_1; +extern asn_TYPE_member_t asn_MBR_LocationDataLCI_r14_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _LocationDataLCI_r14_H_ */ +#include diff --git a/asn.1/lpp_generated/LocationError.c b/asn.1/lpp_generated/LocationError.c new file mode 100644 index 00000000..73522716 --- /dev/null +++ b/asn.1/lpp_generated/LocationError.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "LocationError.h" + +asn_TYPE_member_t asn_MBR_LocationError_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LocationError, locationfailurecause), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationFailureCause, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationfailurecause" + }, +}; +static const ber_tlv_tag_t asn_DEF_LocationError_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LocationError_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* locationfailurecause */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LocationError_specs_1 = { + sizeof(struct LocationError), + offsetof(struct LocationError, _asn_ctx), + asn_MAP_LocationError_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_LocationError = { + "LocationError", + "LocationError", + &asn_OP_SEQUENCE, + asn_DEF_LocationError_tags_1, + sizeof(asn_DEF_LocationError_tags_1) + /sizeof(asn_DEF_LocationError_tags_1[0]), /* 1 */ + asn_DEF_LocationError_tags_1, /* Same as above */ + sizeof(asn_DEF_LocationError_tags_1) + /sizeof(asn_DEF_LocationError_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LocationError_1, + 1, /* Elements count */ + &asn_SPC_LocationError_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/LocationError.h b/asn.1/lpp_generated/LocationError.h similarity index 77% rename from asn.1/generated/LocationError.h rename to asn.1/lpp_generated/LocationError.h index dc95161d..aec7ec70 100644 --- a/asn.1/generated/LocationError.h +++ b/asn.1/lpp_generated/LocationError.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _LocationError_H_ diff --git a/asn.1/lpp_generated/LocationFailureCause.c b/asn.1/lpp_generated/LocationFailureCause.c new file mode 100644 index 00000000..57e31910 --- /dev/null +++ b/asn.1/lpp_generated/LocationFailureCause.c @@ -0,0 +1,69 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "LocationFailureCause.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LocationFailureCause_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_LocationFailureCause_value2enum_1[] = { + { 0, 9, "undefined" }, + { 1, 27, "requestedMethodNotSupported" }, + { 2, 21, "positionMethodFailure" }, + { 3, 40, "periodicLocationMeasurementsNotAvailable" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_LocationFailureCause_enum2value_1[] = { + 3, /* periodicLocationMeasurementsNotAvailable(3) */ + 2, /* positionMethodFailure(2) */ + 1, /* requestedMethodNotSupported(1) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_LocationFailureCause_specs_1 = { + asn_MAP_LocationFailureCause_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_LocationFailureCause_enum2value_1, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_LocationFailureCause_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LocationFailureCause = { + "LocationFailureCause", + "LocationFailureCause", + &asn_OP_NativeEnumerated, + asn_DEF_LocationFailureCause_tags_1, + sizeof(asn_DEF_LocationFailureCause_tags_1) + /sizeof(asn_DEF_LocationFailureCause_tags_1[0]), /* 1 */ + asn_DEF_LocationFailureCause_tags_1, /* Same as above */ + sizeof(asn_DEF_LocationFailureCause_tags_1) + /sizeof(asn_DEF_LocationFailureCause_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LocationFailureCause_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_LocationFailureCause_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/LocationFailureCause.h b/asn.1/lpp_generated/LocationFailureCause.h similarity index 80% rename from asn.1/generated/LocationFailureCause.h rename to asn.1/lpp_generated/LocationFailureCause.h index 0a9bc05e..2df2939e 100644 --- a/asn.1/generated/LocationFailureCause.h +++ b/asn.1/lpp_generated/LocationFailureCause.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _LocationFailureCause_H_ @@ -37,12 +37,10 @@ extern asn_per_constraints_t asn_PER_type_LocationFailureCause_constr_1; extern asn_TYPE_descriptor_t asn_DEF_LocationFailureCause; extern const asn_INTEGER_specifics_t asn_SPC_LocationFailureCause_specs_1; asn_struct_free_f LocationFailureCause_free; -asn_struct_print_f LocationFailureCause_print; asn_constr_check_f LocationFailureCause_constraint; -ber_type_decoder_f LocationFailureCause_decode_ber; -der_type_encoder_f LocationFailureCause_encode_der; xer_type_decoder_f LocationFailureCause_decode_xer; xer_type_encoder_f LocationFailureCause_encode_xer; +jer_type_encoder_f LocationFailureCause_encode_jer; per_type_decoder_f LocationFailureCause_decode_uper; per_type_encoder_f LocationFailureCause_encode_uper; diff --git a/asn.1/lpp_generated/LocationInformationType.c b/asn.1/lpp_generated/LocationInformationType.c new file mode 100644 index 00000000..f2a5f963 --- /dev/null +++ b/asn.1/lpp_generated/LocationInformationType.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "LocationInformationType.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LocationInformationType_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_LocationInformationType_value2enum_1[] = { + { 0, 24, "locationEstimateRequired" }, + { 1, 28, "locationMeasurementsRequired" }, + { 2, 25, "locationEstimatePreferred" }, + { 3, 29, "locationMeasurementsPreferred" }, + { 4, 43, "locationEstimateAndMeasurementsRequired-r18" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_LocationInformationType_enum2value_1[] = { + 4, /* locationEstimateAndMeasurementsRequired-r18(4) */ + 2, /* locationEstimatePreferred(2) */ + 0, /* locationEstimateRequired(0) */ + 3, /* locationMeasurementsPreferred(3) */ + 1 /* locationMeasurementsRequired(1) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_LocationInformationType_specs_1 = { + asn_MAP_LocationInformationType_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_LocationInformationType_enum2value_1, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_LocationInformationType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LocationInformationType = { + "LocationInformationType", + "LocationInformationType", + &asn_OP_NativeEnumerated, + asn_DEF_LocationInformationType_tags_1, + sizeof(asn_DEF_LocationInformationType_tags_1) + /sizeof(asn_DEF_LocationInformationType_tags_1[0]), /* 1 */ + asn_DEF_LocationInformationType_tags_1, /* Same as above */ + sizeof(asn_DEF_LocationInformationType_tags_1) + /sizeof(asn_DEF_LocationInformationType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LocationInformationType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_LocationInformationType_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/LocationInformationType.h b/asn.1/lpp_generated/LocationInformationType.h similarity index 75% rename from asn.1/generated/LocationInformationType.h rename to asn.1/lpp_generated/LocationInformationType.h index 6845f0d1..6c39c0e0 100644 --- a/asn.1/generated/LocationInformationType.h +++ b/asn.1/lpp_generated/LocationInformationType.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _LocationInformationType_H_ @@ -23,10 +23,11 @@ typedef enum LocationInformationType { LocationInformationType_locationEstimateRequired = 0, LocationInformationType_locationMeasurementsRequired = 1, LocationInformationType_locationEstimatePreferred = 2, - LocationInformationType_locationMeasurementsPreferred = 3 + LocationInformationType_locationMeasurementsPreferred = 3, /* * Enumeration is extensible */ + LocationInformationType_locationEstimateAndMeasurementsRequired_r18 = 4 } e_LocationInformationType; /* LocationInformationType */ @@ -37,12 +38,10 @@ extern asn_per_constraints_t asn_PER_type_LocationInformationType_constr_1; extern asn_TYPE_descriptor_t asn_DEF_LocationInformationType; extern const asn_INTEGER_specifics_t asn_SPC_LocationInformationType_specs_1; asn_struct_free_f LocationInformationType_free; -asn_struct_print_f LocationInformationType_print; asn_constr_check_f LocationInformationType_constraint; -ber_type_decoder_f LocationInformationType_decode_ber; -der_type_encoder_f LocationInformationType_encode_der; xer_type_decoder_f LocationInformationType_decode_xer; xer_type_encoder_f LocationInformationType_encode_xer; +jer_type_encoder_f LocationInformationType_encode_jer; per_type_decoder_f LocationInformationType_decode_uper; per_type_encoder_f LocationInformationType_encode_uper; diff --git a/asn.1/lpp_generated/LocationSource-r13.c b/asn.1/lpp_generated/LocationSource-r13.c new file mode 100644 index 00000000..3758c323 --- /dev/null +++ b/asn.1/lpp_generated/LocationSource-r13.c @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "LocationSource-r13.h" + +int +LocationSource_r13_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 16UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using BIT_STRING, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LocationSource_r13_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_LocationSource_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LocationSource_r13 = { + "LocationSource-r13", + "LocationSource-r13", + &asn_OP_BIT_STRING, + asn_DEF_LocationSource_r13_tags_1, + sizeof(asn_DEF_LocationSource_r13_tags_1) + /sizeof(asn_DEF_LocationSource_r13_tags_1[0]), /* 1 */ + asn_DEF_LocationSource_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_LocationSource_r13_tags_1) + /sizeof(asn_DEF_LocationSource_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LocationSource_r13_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + LocationSource_r13_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/LocationSource-r13.h b/asn.1/lpp_generated/LocationSource-r13.h new file mode 100644 index 00000000..9243d337 --- /dev/null +++ b/asn.1/lpp_generated/LocationSource-r13.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _LocationSource_r13_H_ +#define _LocationSource_r13_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum LocationSource_r13 { + LocationSource_r13_a_gnss = 0, + LocationSource_r13_wlan = 1, + LocationSource_r13_bt = 2, + LocationSource_r13_tbs = 3, + LocationSource_r13_sensor = 4, + LocationSource_r13_ha_gnss_v1510 = 5, + LocationSource_r13_motion_sensor_v1550 = 6, + LocationSource_r13_dl_tdoa_r16 = 7, + LocationSource_r13_dl_aod_r16 = 8 +} e_LocationSource_r13; + +/* LocationSource-r13 */ +typedef BIT_STRING_t LocationSource_r13_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_LocationSource_r13_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_LocationSource_r13; +asn_struct_free_f LocationSource_r13_free; +asn_constr_check_f LocationSource_r13_constraint; +xer_type_decoder_f LocationSource_r13_decode_xer; +xer_type_encoder_f LocationSource_r13_encode_xer; +jer_type_encoder_f LocationSource_r13_encode_jer; +per_type_decoder_f LocationSource_r13_decode_uper; +per_type_encoder_f LocationSource_r13_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _LocationSource_r13_H_ */ +#include diff --git a/asn.1/lpp_generated/LocationUncertainty-r16.c b/asn.1/lpp_generated/LocationUncertainty-r16.c new file mode 100644 index 00000000..5337263b --- /dev/null +++ b/asn.1/lpp_generated/LocationUncertainty-r16.c @@ -0,0 +1,248 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "LocationUncertainty-r16.h" + +static int +memb_horizontalUncertainty_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_horizontalConfidence_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_verticalUncertainty_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_verticalConfidence_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horizontalUncertainty_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horizontalConfidence_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_verticalUncertainty_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_verticalConfidence_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_LocationUncertainty_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LocationUncertainty_r16, horizontalUncertainty_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horizontalUncertainty_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horizontalUncertainty_r16_constraint_1 + }, + 0, 0, /* No default value */ + "horizontalUncertainty-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationUncertainty_r16, horizontalConfidence_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horizontalConfidence_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horizontalConfidence_r16_constraint_1 + }, + 0, 0, /* No default value */ + "horizontalConfidence-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationUncertainty_r16, verticalUncertainty_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_verticalUncertainty_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_verticalUncertainty_r16_constraint_1 + }, + 0, 0, /* No default value */ + "verticalUncertainty-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationUncertainty_r16, verticalConfidence_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_verticalConfidence_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_verticalConfidence_r16_constraint_1 + }, + 0, 0, /* No default value */ + "verticalConfidence-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_LocationUncertainty_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LocationUncertainty_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horizontalUncertainty-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horizontalConfidence-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* verticalUncertainty-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* verticalConfidence-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LocationUncertainty_r16_specs_1 = { + sizeof(struct LocationUncertainty_r16), + offsetof(struct LocationUncertainty_r16, _asn_ctx), + asn_MAP_LocationUncertainty_r16_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_LocationUncertainty_r16 = { + "LocationUncertainty-r16", + "LocationUncertainty-r16", + &asn_OP_SEQUENCE, + asn_DEF_LocationUncertainty_r16_tags_1, + sizeof(asn_DEF_LocationUncertainty_r16_tags_1) + /sizeof(asn_DEF_LocationUncertainty_r16_tags_1[0]), /* 1 */ + asn_DEF_LocationUncertainty_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_LocationUncertainty_r16_tags_1) + /sizeof(asn_DEF_LocationUncertainty_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LocationUncertainty_r16_1, + 4, /* Elements count */ + &asn_SPC_LocationUncertainty_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/LocationUncertainty-r16.h b/asn.1/lpp_generated/LocationUncertainty-r16.h new file mode 100644 index 00000000..bd2ef526 --- /dev/null +++ b/asn.1/lpp_generated/LocationUncertainty-r16.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _LocationUncertainty_r16_H_ +#define _LocationUncertainty_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* LocationUncertainty-r16 */ +typedef struct LocationUncertainty_r16 { + long horizontalUncertainty_r16; + long horizontalConfidence_r16; + long verticalUncertainty_r16; + long verticalConfidence_r16; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LocationUncertainty_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LocationUncertainty_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_LocationUncertainty_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_LocationUncertainty_r16_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _LocationUncertainty_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/MBS-AcquisitionAssistance-r14.c b/asn.1/lpp_generated/MBS-AcquisitionAssistance-r14.c new file mode 100644 index 00000000..55daabd2 --- /dev/null +++ b/asn.1/lpp_generated/MBS-AcquisitionAssistance-r14.c @@ -0,0 +1,280 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "MBS-AcquisitionAssistance-r14.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_transmitterID_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_pnCodeIndex_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 128L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_freq_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 919750000L && value <= 927250000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_mbsConfiguration_r14_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_transmitterID_r14_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_pnCodeIndex_r14_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 128 } /* (1..128) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_freq_r14_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 23, -1, 919750000, 927250000 } /* (919750000..927250000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_mbsConfiguration_r14_value2enum_3[] = { + { 0, 3, "tb1" }, + { 1, 3, "tb2" }, + { 2, 3, "tb3" }, + { 3, 3, "tb4" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_mbsConfiguration_r14_enum2value_3[] = { + 0, /* tb1(0) */ + 1, /* tb2(1) */ + 2, /* tb3(2) */ + 3 /* tb4(3) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_mbsConfiguration_r14_specs_3 = { + asn_MAP_mbsConfiguration_r14_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_mbsConfiguration_r14_enum2value_3, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_mbsConfiguration_r14_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_mbsConfiguration_r14_3 = { + "mbsConfiguration-r14", + "mbsConfiguration-r14", + &asn_OP_NativeEnumerated, + asn_DEF_mbsConfiguration_r14_tags_3, + sizeof(asn_DEF_mbsConfiguration_r14_tags_3) + /sizeof(asn_DEF_mbsConfiguration_r14_tags_3[0]) - 1, /* 1 */ + asn_DEF_mbsConfiguration_r14_tags_3, /* Same as above */ + sizeof(asn_DEF_mbsConfiguration_r14_tags_3) + /sizeof(asn_DEF_mbsConfiguration_r14_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_mbsConfiguration_r14_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_mbsConfiguration_r14_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_MBS_AcquisitionAssistance_r14_1[] = { + { ATF_POINTER, 4, offsetof(struct MBS_AcquisitionAssistance_r14, transmitterID_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_transmitterID_r14_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_transmitterID_r14_constraint_1 + }, + 0, 0, /* No default value */ + "transmitterID-r14" + }, + { ATF_POINTER, 3, offsetof(struct MBS_AcquisitionAssistance_r14, mbsConfiguration_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_mbsConfiguration_r14_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mbsConfiguration-r14" + }, + { ATF_POINTER, 2, offsetof(struct MBS_AcquisitionAssistance_r14, pnCodeIndex_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_pnCodeIndex_r14_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_pnCodeIndex_r14_constraint_1 + }, + 0, 0, /* No default value */ + "pnCodeIndex-r14" + }, + { ATF_POINTER, 1, offsetof(struct MBS_AcquisitionAssistance_r14, freq_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_freq_r14_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_freq_r14_constraint_1 + }, + 0, 0, /* No default value */ + "freq-r14" + }, +}; +static const int asn_MAP_MBS_AcquisitionAssistance_r14_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_MBS_AcquisitionAssistance_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MBS_AcquisitionAssistance_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* transmitterID-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* mbsConfiguration-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* pnCodeIndex-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* freq-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_MBS_AcquisitionAssistance_r14_specs_1 = { + sizeof(struct MBS_AcquisitionAssistance_r14), + offsetof(struct MBS_AcquisitionAssistance_r14, _asn_ctx), + asn_MAP_MBS_AcquisitionAssistance_r14_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_MBS_AcquisitionAssistance_r14_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_MBS_AcquisitionAssistance_r14 = { + "MBS-AcquisitionAssistance-r14", + "MBS-AcquisitionAssistance-r14", + &asn_OP_SEQUENCE, + asn_DEF_MBS_AcquisitionAssistance_r14_tags_1, + sizeof(asn_DEF_MBS_AcquisitionAssistance_r14_tags_1) + /sizeof(asn_DEF_MBS_AcquisitionAssistance_r14_tags_1[0]), /* 1 */ + asn_DEF_MBS_AcquisitionAssistance_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_MBS_AcquisitionAssistance_r14_tags_1) + /sizeof(asn_DEF_MBS_AcquisitionAssistance_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MBS_AcquisitionAssistance_r14_1, + 4, /* Elements count */ + &asn_SPC_MBS_AcquisitionAssistance_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/MBS-AcquisitionAssistance-r14.h b/asn.1/lpp_generated/MBS-AcquisitionAssistance-r14.h similarity index 79% rename from asn.1/generated/MBS-AcquisitionAssistance-r14.h rename to asn.1/lpp_generated/MBS-AcquisitionAssistance-r14.h index 6b17d7c7..a3ef8472 100644 --- a/asn.1/generated/MBS-AcquisitionAssistance-r14.h +++ b/asn.1/lpp_generated/MBS-AcquisitionAssistance-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _MBS_AcquisitionAssistance_r14_H_ @@ -33,10 +33,10 @@ typedef enum MBS_AcquisitionAssistance_r14__mbsConfiguration_r14 { /* MBS-AcquisitionAssistance-r14 */ typedef struct MBS_AcquisitionAssistance_r14 { - long *transmitterID_r14 /* OPTIONAL */; - long *mbsConfiguration_r14 /* OPTIONAL */; - long *pnCodeIndex_r14 /* OPTIONAL */; - long *freq_r14 /* OPTIONAL */; + long *transmitterID_r14; /* OPTIONAL */ + long *mbsConfiguration_r14; /* OPTIONAL */ + long *pnCodeIndex_r14; /* OPTIONAL */ + long *freq_r14; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/MBS-AlmanacAssistance-r14.c b/asn.1/lpp_generated/MBS-AlmanacAssistance-r14.c new file mode 100644 index 00000000..4078cbe7 --- /dev/null +++ b/asn.1/lpp_generated/MBS-AlmanacAssistance-r14.c @@ -0,0 +1,318 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "MBS-AlmanacAssistance-r14.h" + +static int +memb_transmitterID_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_transmitterLatitude_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 26UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_transmitterLongitude_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 27UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_transmitterAltitude_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 15UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_timeCorrection_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 25L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_transmitterID_r14_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_transmitterLatitude_r14_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 26, 26 } /* (SIZE(26..26)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_transmitterLongitude_r14_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 27, 27 } /* (SIZE(27..27)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_transmitterAltitude_r14_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 15, 15 } /* (SIZE(15..15)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_timeCorrection_r14_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 25 } /* (0..25) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_MBS_AlmanacAssistance_r14_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct MBS_AlmanacAssistance_r14, transmitterID_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_transmitterID_r14_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_transmitterID_r14_constraint_1 + }, + 0, 0, /* No default value */ + "transmitterID-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct MBS_AlmanacAssistance_r14, transmitterLatitude_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_transmitterLatitude_r14_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_transmitterLatitude_r14_constraint_1 + }, + 0, 0, /* No default value */ + "transmitterLatitude-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct MBS_AlmanacAssistance_r14, transmitterLongitude_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_transmitterLongitude_r14_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_transmitterLongitude_r14_constraint_1 + }, + 0, 0, /* No default value */ + "transmitterLongitude-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct MBS_AlmanacAssistance_r14, transmitterAltitude_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_transmitterAltitude_r14_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_transmitterAltitude_r14_constraint_1 + }, + 0, 0, /* No default value */ + "transmitterAltitude-r14" + }, + { ATF_POINTER, 1, offsetof(struct MBS_AlmanacAssistance_r14, timeCorrection_r14), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_timeCorrection_r14_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_timeCorrection_r14_constraint_1 + }, + 0, 0, /* No default value */ + "timeCorrection-r14" + }, +}; +static const int asn_MAP_MBS_AlmanacAssistance_r14_oms_1[] = { 4 }; +static const ber_tlv_tag_t asn_DEF_MBS_AlmanacAssistance_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MBS_AlmanacAssistance_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* transmitterID-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* transmitterLatitude-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* transmitterLongitude-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* transmitterAltitude-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* timeCorrection-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_MBS_AlmanacAssistance_r14_specs_1 = { + sizeof(struct MBS_AlmanacAssistance_r14), + offsetof(struct MBS_AlmanacAssistance_r14, _asn_ctx), + asn_MAP_MBS_AlmanacAssistance_r14_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_MBS_AlmanacAssistance_r14_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_MBS_AlmanacAssistance_r14 = { + "MBS-AlmanacAssistance-r14", + "MBS-AlmanacAssistance-r14", + &asn_OP_SEQUENCE, + asn_DEF_MBS_AlmanacAssistance_r14_tags_1, + sizeof(asn_DEF_MBS_AlmanacAssistance_r14_tags_1) + /sizeof(asn_DEF_MBS_AlmanacAssistance_r14_tags_1[0]), /* 1 */ + asn_DEF_MBS_AlmanacAssistance_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_MBS_AlmanacAssistance_r14_tags_1) + /sizeof(asn_DEF_MBS_AlmanacAssistance_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MBS_AlmanacAssistance_r14_1, + 5, /* Elements count */ + &asn_SPC_MBS_AlmanacAssistance_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/MBS-AlmanacAssistance-r14.h b/asn.1/lpp_generated/MBS-AlmanacAssistance-r14.h similarity index 79% rename from asn.1/generated/MBS-AlmanacAssistance-r14.h rename to asn.1/lpp_generated/MBS-AlmanacAssistance-r14.h index f03b73a0..c57224f9 100644 --- a/asn.1/generated/MBS-AlmanacAssistance-r14.h +++ b/asn.1/lpp_generated/MBS-AlmanacAssistance-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _MBS_AlmanacAssistance_r14_H_ @@ -26,7 +26,7 @@ typedef struct MBS_AlmanacAssistance_r14 { BIT_STRING_t transmitterLatitude_r14; BIT_STRING_t transmitterLongitude_r14; BIT_STRING_t transmitterAltitude_r14; - long *timeCorrection_r14 /* OPTIONAL */; + long *timeCorrection_r14; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/MBS-AssistanceDataElement-r14.c b/asn.1/lpp_generated/MBS-AssistanceDataElement-r14.c new file mode 100644 index 00000000..b002e56f --- /dev/null +++ b/asn.1/lpp_generated/MBS-AssistanceDataElement-r14.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "MBS-AssistanceDataElement-r14.h" + +#include "MBS-AlmanacAssistance-r14.h" +#include "MBS-AcquisitionAssistance-r14.h" +asn_TYPE_member_t asn_MBR_MBS_AssistanceDataElement_r14_1[] = { + { ATF_POINTER, 2, offsetof(struct MBS_AssistanceDataElement_r14, mbs_AlmanacAssistance_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MBS_AlmanacAssistance_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mbs-AlmanacAssistance-r14" + }, + { ATF_POINTER, 1, offsetof(struct MBS_AssistanceDataElement_r14, mbs_AcquisitionAssistance_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MBS_AcquisitionAssistance_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mbs-AcquisitionAssistance-r14" + }, +}; +static const int asn_MAP_MBS_AssistanceDataElement_r14_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_MBS_AssistanceDataElement_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MBS_AssistanceDataElement_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mbs-AlmanacAssistance-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* mbs-AcquisitionAssistance-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_MBS_AssistanceDataElement_r14_specs_1 = { + sizeof(struct MBS_AssistanceDataElement_r14), + offsetof(struct MBS_AssistanceDataElement_r14, _asn_ctx), + asn_MAP_MBS_AssistanceDataElement_r14_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_MBS_AssistanceDataElement_r14_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_MBS_AssistanceDataElement_r14 = { + "MBS-AssistanceDataElement-r14", + "MBS-AssistanceDataElement-r14", + &asn_OP_SEQUENCE, + asn_DEF_MBS_AssistanceDataElement_r14_tags_1, + sizeof(asn_DEF_MBS_AssistanceDataElement_r14_tags_1) + /sizeof(asn_DEF_MBS_AssistanceDataElement_r14_tags_1[0]), /* 1 */ + asn_DEF_MBS_AssistanceDataElement_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_MBS_AssistanceDataElement_r14_tags_1) + /sizeof(asn_DEF_MBS_AssistanceDataElement_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MBS_AssistanceDataElement_r14_1, + 2, /* Elements count */ + &asn_SPC_MBS_AssistanceDataElement_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/MBS-AssistanceDataElement-r14.h b/asn.1/lpp_generated/MBS-AssistanceDataElement-r14.h new file mode 100644 index 00000000..14122fed --- /dev/null +++ b/asn.1/lpp_generated/MBS-AssistanceDataElement-r14.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _MBS_AssistanceDataElement_r14_H_ +#define _MBS_AssistanceDataElement_r14_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct MBS_AlmanacAssistance_r14; +struct MBS_AcquisitionAssistance_r14; + +/* MBS-AssistanceDataElement-r14 */ +typedef struct MBS_AssistanceDataElement_r14 { + struct MBS_AlmanacAssistance_r14 *mbs_AlmanacAssistance_r14; /* OPTIONAL */ + struct MBS_AcquisitionAssistance_r14 *mbs_AcquisitionAssistance_r14; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} MBS_AssistanceDataElement_r14_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_MBS_AssistanceDataElement_r14; +extern asn_SEQUENCE_specifics_t asn_SPC_MBS_AssistanceDataElement_r14_specs_1; +extern asn_TYPE_member_t asn_MBR_MBS_AssistanceDataElement_r14_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _MBS_AssistanceDataElement_r14_H_ */ +#include diff --git a/asn.1/lpp_generated/MBS-AssistanceDataList-r14.c b/asn.1/lpp_generated/MBS-AssistanceDataList-r14.c new file mode 100644 index 00000000..7ae7109f --- /dev/null +++ b/asn.1/lpp_generated/MBS-AssistanceDataList-r14.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "MBS-AssistanceDataList-r14.h" + +#include "MBS-AssistanceDataElement-r14.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_MBS_AssistanceDataList_r14_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_MBS_AssistanceDataList_r14_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_MBS_AssistanceDataElement_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_MBS_AssistanceDataList_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_MBS_AssistanceDataList_r14_specs_1 = { + sizeof(struct MBS_AssistanceDataList_r14), + offsetof(struct MBS_AssistanceDataList_r14, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_MBS_AssistanceDataList_r14 = { + "MBS-AssistanceDataList-r14", + "MBS-AssistanceDataList-r14", + &asn_OP_SEQUENCE_OF, + asn_DEF_MBS_AssistanceDataList_r14_tags_1, + sizeof(asn_DEF_MBS_AssistanceDataList_r14_tags_1) + /sizeof(asn_DEF_MBS_AssistanceDataList_r14_tags_1[0]), /* 1 */ + asn_DEF_MBS_AssistanceDataList_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_MBS_AssistanceDataList_r14_tags_1) + /sizeof(asn_DEF_MBS_AssistanceDataList_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MBS_AssistanceDataList_r14_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_MBS_AssistanceDataList_r14_1, + 1, /* Single element */ + &asn_SPC_MBS_AssistanceDataList_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/MBS-AssistanceDataList-r14.h b/asn.1/lpp_generated/MBS-AssistanceDataList-r14.h similarity index 81% rename from asn.1/generated/MBS-AssistanceDataList-r14.h rename to asn.1/lpp_generated/MBS-AssistanceDataList-r14.h index 1d30bc6b..7f2dcfbd 100644 --- a/asn.1/generated/MBS-AssistanceDataList-r14.h +++ b/asn.1/lpp_generated/MBS-AssistanceDataList-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _MBS_AssistanceDataList_r14_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_MBS_AssistanceDataList_r14_constr_1; } #endif -/* Referred external types */ -#include "MBS-AssistanceDataElement-r14.h" - #endif /* _MBS_AssistanceDataList_r14_H_ */ #include diff --git a/asn.1/lpp_generated/MBS-AssistanceDataSupportList-r14.c b/asn.1/lpp_generated/MBS-AssistanceDataSupportList-r14.c new file mode 100644 index 00000000..5e9b4923 --- /dev/null +++ b/asn.1/lpp_generated/MBS-AssistanceDataSupportList-r14.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "MBS-AssistanceDataSupportList-r14.h" + +asn_TYPE_member_t asn_MBR_MBS_AssistanceDataSupportList_r14_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct MBS_AssistanceDataSupportList_r14, mbs_AcquisitionAssistanceDataSupport_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mbs-AcquisitionAssistanceDataSupport-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct MBS_AssistanceDataSupportList_r14, mbs_AlmanacAssistanceDataSupport_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mbs-AlmanacAssistanceDataSupport-r14" + }, +}; +static const ber_tlv_tag_t asn_DEF_MBS_AssistanceDataSupportList_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MBS_AssistanceDataSupportList_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mbs-AcquisitionAssistanceDataSupport-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* mbs-AlmanacAssistanceDataSupport-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_MBS_AssistanceDataSupportList_r14_specs_1 = { + sizeof(struct MBS_AssistanceDataSupportList_r14), + offsetof(struct MBS_AssistanceDataSupportList_r14, _asn_ctx), + asn_MAP_MBS_AssistanceDataSupportList_r14_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_MBS_AssistanceDataSupportList_r14 = { + "MBS-AssistanceDataSupportList-r14", + "MBS-AssistanceDataSupportList-r14", + &asn_OP_SEQUENCE, + asn_DEF_MBS_AssistanceDataSupportList_r14_tags_1, + sizeof(asn_DEF_MBS_AssistanceDataSupportList_r14_tags_1) + /sizeof(asn_DEF_MBS_AssistanceDataSupportList_r14_tags_1[0]), /* 1 */ + asn_DEF_MBS_AssistanceDataSupportList_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_MBS_AssistanceDataSupportList_r14_tags_1) + /sizeof(asn_DEF_MBS_AssistanceDataSupportList_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MBS_AssistanceDataSupportList_r14_1, + 2, /* Elements count */ + &asn_SPC_MBS_AssistanceDataSupportList_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/MBS-AssistanceDataSupportList-r14.h b/asn.1/lpp_generated/MBS-AssistanceDataSupportList-r14.h similarity index 81% rename from asn.1/generated/MBS-AssistanceDataSupportList-r14.h rename to asn.1/lpp_generated/MBS-AssistanceDataSupportList-r14.h index c19fb7c2..6d8a3445 100644 --- a/asn.1/generated/MBS-AssistanceDataSupportList-r14.h +++ b/asn.1/lpp_generated/MBS-AssistanceDataSupportList-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _MBS_AssistanceDataSupportList_r14_H_ diff --git a/asn.1/lpp_generated/MBS-BeaconMeasElement-r13.c b/asn.1/lpp_generated/MBS-BeaconMeasElement-r13.c new file mode 100644 index 00000000..82162da4 --- /dev/null +++ b/asn.1/lpp_generated/MBS-BeaconMeasElement-r13.c @@ -0,0 +1,311 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "MBS-BeaconMeasElement-r13.h" + +static int +memb_rssi_r14_constraint_6(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -130L && value <= -30L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_transmitterID_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_codePhase_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2097151L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_codePhaseRMSError_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rssi_r14_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, -130, -30 } /* (-130..-30) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_transmitterID_r13_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_codePhase_r13_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, 0, 2097151 } /* (0..2097151) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_codePhaseRMSError_r13_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_6[] = { + { ATF_POINTER, 1, offsetof(struct MBS_BeaconMeasElement_r13__ext1, rssi_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rssi_r14_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rssi_r14_constraint_6 + }, + 0, 0, /* No default value */ + "rssi-r14" + }, +}; +static const int asn_MAP_ext1_oms_6[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* rssi-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = { + sizeof(struct MBS_BeaconMeasElement_r13__ext1), + offsetof(struct MBS_BeaconMeasElement_r13__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_6, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_6, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_6 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_6, + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_6, /* Same as above */ + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_6, + 1, /* Elements count */ + &asn_SPC_ext1_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_MBS_BeaconMeasElement_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct MBS_BeaconMeasElement_r13, transmitterID_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_transmitterID_r13_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_transmitterID_r13_constraint_1 + }, + 0, 0, /* No default value */ + "transmitterID-r13" + }, + { ATF_NOFLAGS, 0, offsetof(struct MBS_BeaconMeasElement_r13, codePhase_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_codePhase_r13_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_codePhase_r13_constraint_1 + }, + 0, 0, /* No default value */ + "codePhase-r13" + }, + { ATF_NOFLAGS, 0, offsetof(struct MBS_BeaconMeasElement_r13, codePhaseRMSError_r13), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_codePhaseRMSError_r13_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_codePhaseRMSError_r13_constraint_1 + }, + 0, 0, /* No default value */ + "codePhaseRMSError-r13" + }, + { ATF_POINTER, 1, offsetof(struct MBS_BeaconMeasElement_r13, ext1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext1_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_MBS_BeaconMeasElement_r13_oms_1[] = { 3 }; +static const ber_tlv_tag_t asn_DEF_MBS_BeaconMeasElement_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MBS_BeaconMeasElement_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* transmitterID-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* codePhase-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* codePhaseRMSError-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_MBS_BeaconMeasElement_r13_specs_1 = { + sizeof(struct MBS_BeaconMeasElement_r13), + offsetof(struct MBS_BeaconMeasElement_r13, _asn_ctx), + asn_MAP_MBS_BeaconMeasElement_r13_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_MBS_BeaconMeasElement_r13_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_MBS_BeaconMeasElement_r13 = { + "MBS-BeaconMeasElement-r13", + "MBS-BeaconMeasElement-r13", + &asn_OP_SEQUENCE, + asn_DEF_MBS_BeaconMeasElement_r13_tags_1, + sizeof(asn_DEF_MBS_BeaconMeasElement_r13_tags_1) + /sizeof(asn_DEF_MBS_BeaconMeasElement_r13_tags_1[0]), /* 1 */ + asn_DEF_MBS_BeaconMeasElement_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_MBS_BeaconMeasElement_r13_tags_1) + /sizeof(asn_DEF_MBS_BeaconMeasElement_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MBS_BeaconMeasElement_r13_1, + 4, /* Elements count */ + &asn_SPC_MBS_BeaconMeasElement_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/MBS-BeaconMeasElement-r13.h b/asn.1/lpp_generated/MBS-BeaconMeasElement-r13.h similarity index 80% rename from asn.1/generated/MBS-BeaconMeasElement-r13.h rename to asn.1/lpp_generated/MBS-BeaconMeasElement-r13.h index f0f57578..6f2c1efc 100644 --- a/asn.1/generated/MBS-BeaconMeasElement-r13.h +++ b/asn.1/lpp_generated/MBS-BeaconMeasElement-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _MBS_BeaconMeasElement_r13_H_ @@ -29,7 +29,7 @@ typedef struct MBS_BeaconMeasElement_r13 { * possible extensions are below. */ struct MBS_BeaconMeasElement_r13__ext1 { - long *rssi_r14 /* OPTIONAL */; + long *rssi_r14; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/MBS-BeaconMeasList-r13.c b/asn.1/lpp_generated/MBS-BeaconMeasList-r13.c new file mode 100644 index 00000000..a597d4cc --- /dev/null +++ b/asn.1/lpp_generated/MBS-BeaconMeasList-r13.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "MBS-BeaconMeasList-r13.h" + +#include "MBS-BeaconMeasElement-r13.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_MBS_BeaconMeasList_r13_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_MBS_BeaconMeasList_r13_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_MBS_BeaconMeasElement_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_MBS_BeaconMeasList_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_MBS_BeaconMeasList_r13_specs_1 = { + sizeof(struct MBS_BeaconMeasList_r13), + offsetof(struct MBS_BeaconMeasList_r13, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_MBS_BeaconMeasList_r13 = { + "MBS-BeaconMeasList-r13", + "MBS-BeaconMeasList-r13", + &asn_OP_SEQUENCE_OF, + asn_DEF_MBS_BeaconMeasList_r13_tags_1, + sizeof(asn_DEF_MBS_BeaconMeasList_r13_tags_1) + /sizeof(asn_DEF_MBS_BeaconMeasList_r13_tags_1[0]), /* 1 */ + asn_DEF_MBS_BeaconMeasList_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_MBS_BeaconMeasList_r13_tags_1) + /sizeof(asn_DEF_MBS_BeaconMeasList_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MBS_BeaconMeasList_r13_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_MBS_BeaconMeasList_r13_1, + 1, /* Single element */ + &asn_SPC_MBS_BeaconMeasList_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/MBS-BeaconMeasList-r13.h b/asn.1/lpp_generated/MBS-BeaconMeasList-r13.h similarity index 80% rename from asn.1/generated/MBS-BeaconMeasList-r13.h rename to asn.1/lpp_generated/MBS-BeaconMeasList-r13.h index 21d785b2..7921ced1 100644 --- a/asn.1/generated/MBS-BeaconMeasList-r13.h +++ b/asn.1/lpp_generated/MBS-BeaconMeasList-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _MBS_BeaconMeasList_r13_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_MBS_BeaconMeasList_r13_constr_1; } #endif -/* Referred external types */ -#include "MBS-BeaconMeasElement-r13.h" - #endif /* _MBS_BeaconMeasList_r13_H_ */ #include diff --git a/asn.1/lpp_generated/MeasQuantityResults-r16.c b/asn.1/lpp_generated/MeasQuantityResults-r16.c new file mode 100644 index 00000000..27bc2916 --- /dev/null +++ b/asn.1/lpp_generated/MeasQuantityResults-r16.c @@ -0,0 +1,150 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "MeasQuantityResults-r16.h" + +static int +memb_nr_RSRP_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_RSRQ_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_RSRP_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_RSRQ_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_MeasQuantityResults_r16_1[] = { + { ATF_POINTER, 2, offsetof(struct MeasQuantityResults_r16, nr_RSRP_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_RSRP_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_RSRP_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-RSRP-r16" + }, + { ATF_POINTER, 1, offsetof(struct MeasQuantityResults_r16, nr_RSRQ_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_RSRQ_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_RSRQ_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-RSRQ-r16" + }, +}; +static const int asn_MAP_MeasQuantityResults_r16_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_MeasQuantityResults_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MeasQuantityResults_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-RSRP-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-RSRQ-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_MeasQuantityResults_r16_specs_1 = { + sizeof(struct MeasQuantityResults_r16), + offsetof(struct MeasQuantityResults_r16, _asn_ctx), + asn_MAP_MeasQuantityResults_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_MeasQuantityResults_r16_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_MeasQuantityResults_r16 = { + "MeasQuantityResults-r16", + "MeasQuantityResults-r16", + &asn_OP_SEQUENCE, + asn_DEF_MeasQuantityResults_r16_tags_1, + sizeof(asn_DEF_MeasQuantityResults_r16_tags_1) + /sizeof(asn_DEF_MeasQuantityResults_r16_tags_1[0]), /* 1 */ + asn_DEF_MeasQuantityResults_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_MeasQuantityResults_r16_tags_1) + /sizeof(asn_DEF_MeasQuantityResults_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MeasQuantityResults_r16_1, + 2, /* Elements count */ + &asn_SPC_MeasQuantityResults_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/MeasQuantityResults-r16.h b/asn.1/lpp_generated/MeasQuantityResults-r16.h new file mode 100644 index 00000000..2b13ee6b --- /dev/null +++ b/asn.1/lpp_generated/MeasQuantityResults-r16.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _MeasQuantityResults_r16_H_ +#define _MeasQuantityResults_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* MeasQuantityResults-r16 */ +typedef struct MeasQuantityResults_r16 { + long *nr_RSRP_r16; /* OPTIONAL */ + long *nr_RSRQ_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} MeasQuantityResults_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_MeasQuantityResults_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_MeasQuantityResults_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_MeasQuantityResults_r16_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _MeasQuantityResults_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/MeasuredResultsElement.c b/asn.1/lpp_generated/MeasuredResultsElement.c new file mode 100644 index 00000000..280c08ab --- /dev/null +++ b/asn.1/lpp_generated/MeasuredResultsElement.c @@ -0,0 +1,818 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "MeasuredResultsElement.h" + +#include "CellGlobalIdEUTRA-AndUTRA.h" +static int +memb_nrsrp_Result_r14_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 113L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nrsrq_Result_r14_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 74L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_hyperSFN_r14_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 10UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_rsrp_Result_v1470_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -17L && value <= -1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_rsrq_Result_v1470_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -30L && value <= 46L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_physCellId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 503L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_systemFrameNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 10UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_rsrp_Result_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 97L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_rsrq_Result_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 34L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ue_RxTxTimeDiff_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nrsrp_Result_r14_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 113 } /* (0..113) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nrsrq_Result_r14_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 74 } /* (0..74) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_hyperSFN_r14_constr_16 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rsrp_Result_v1470_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, -17, -1 } /* (-17..-1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rsrq_Result_v1470_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, -30, 46 } /* (-30..46) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_physCellId_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_systemFrameNumber_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rsrp_Result_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 97 } /* (0..97) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rsrq_Result_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 34 } /* (0..34) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ue_RxTxTimeDiff_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_10[] = { + { ATF_POINTER, 1, offsetof(struct MeasuredResultsElement__ext1, arfcnEUTRA_v9a0), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueEUTRA_v9a0, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "arfcnEUTRA-v9a0" + }, +}; +static const int asn_MAP_ext1_oms_10[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_10[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* arfcnEUTRA-v9a0 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_10 = { + sizeof(struct MeasuredResultsElement__ext1), + offsetof(struct MeasuredResultsElement__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_10, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_10, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_10 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_10, + sizeof(asn_DEF_ext1_tags_10) + /sizeof(asn_DEF_ext1_tags_10[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_10, /* Same as above */ + sizeof(asn_DEF_ext1_tags_10) + /sizeof(asn_DEF_ext1_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_10, + 1, /* Elements count */ + &asn_SPC_ext1_specs_10 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_12[] = { + { ATF_POINTER, 4, offsetof(struct MeasuredResultsElement__ext2, nrsrp_Result_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nrsrp_Result_r14_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nrsrp_Result_r14_constraint_12 + }, + 0, 0, /* No default value */ + "nrsrp-Result-r14" + }, + { ATF_POINTER, 3, offsetof(struct MeasuredResultsElement__ext2, nrsrq_Result_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nrsrq_Result_r14_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nrsrq_Result_r14_constraint_12 + }, + 0, 0, /* No default value */ + "nrsrq-Result-r14" + }, + { ATF_POINTER, 2, offsetof(struct MeasuredResultsElement__ext2, carrierFreqOffsetNB_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CarrierFreqOffsetNB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "carrierFreqOffsetNB-r14" + }, + { ATF_POINTER, 1, offsetof(struct MeasuredResultsElement__ext2, hyperSFN_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_hyperSFN_r14_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_hyperSFN_r14_constraint_12 + }, + 0, 0, /* No default value */ + "hyperSFN-r14" + }, +}; +static const int asn_MAP_ext2_oms_12[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_12[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nrsrp-Result-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nrsrq-Result-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* carrierFreqOffsetNB-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* hyperSFN-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_12 = { + sizeof(struct MeasuredResultsElement__ext2), + offsetof(struct MeasuredResultsElement__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_12, + 4, /* Count of tags in the map */ + asn_MAP_ext2_oms_12, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_12 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_12, + sizeof(asn_DEF_ext2_tags_12) + /sizeof(asn_DEF_ext2_tags_12[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_12, /* Same as above */ + sizeof(asn_DEF_ext2_tags_12) + /sizeof(asn_DEF_ext2_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_12, + 4, /* Elements count */ + &asn_SPC_ext2_specs_12 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_17[] = { + { ATF_POINTER, 2, offsetof(struct MeasuredResultsElement__ext3, rsrp_Result_v1470), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rsrp_Result_v1470_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rsrp_Result_v1470_constraint_17 + }, + 0, 0, /* No default value */ + "rsrp-Result-v1470" + }, + { ATF_POINTER, 1, offsetof(struct MeasuredResultsElement__ext3, rsrq_Result_v1470), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rsrq_Result_v1470_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rsrq_Result_v1470_constraint_17 + }, + 0, 0, /* No default value */ + "rsrq-Result-v1470" + }, +}; +static const int asn_MAP_ext3_oms_17[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_17[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rsrp-Result-v1470 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* rsrq-Result-v1470 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_17 = { + sizeof(struct MeasuredResultsElement__ext3), + offsetof(struct MeasuredResultsElement__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_17, + 2, /* Count of tags in the map */ + asn_MAP_ext3_oms_17, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_17 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_17, + sizeof(asn_DEF_ext3_tags_17) + /sizeof(asn_DEF_ext3_tags_17[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_17, /* Same as above */ + sizeof(asn_DEF_ext3_tags_17) + /sizeof(asn_DEF_ext3_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_17, + 2, /* Elements count */ + &asn_SPC_ext3_specs_17 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_MeasuredResultsElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct MeasuredResultsElement, physCellId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_physCellId_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_physCellId_constraint_1 + }, + 0, 0, /* No default value */ + "physCellId" + }, + { ATF_POINTER, 1, offsetof(struct MeasuredResultsElement, cellGlobalId), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CellGlobalIdEUTRA_AndUTRA, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellGlobalId" + }, + { ATF_NOFLAGS, 0, offsetof(struct MeasuredResultsElement, arfcnEUTRA), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueEUTRA, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "arfcnEUTRA" + }, + { ATF_POINTER, 7, offsetof(struct MeasuredResultsElement, systemFrameNumber), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_systemFrameNumber_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_systemFrameNumber_constraint_1 + }, + 0, 0, /* No default value */ + "systemFrameNumber" + }, + { ATF_POINTER, 6, offsetof(struct MeasuredResultsElement, rsrp_Result), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rsrp_Result_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rsrp_Result_constraint_1 + }, + 0, 0, /* No default value */ + "rsrp-Result" + }, + { ATF_POINTER, 5, offsetof(struct MeasuredResultsElement, rsrq_Result), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rsrq_Result_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rsrq_Result_constraint_1 + }, + 0, 0, /* No default value */ + "rsrq-Result" + }, + { ATF_POINTER, 4, offsetof(struct MeasuredResultsElement, ue_RxTxTimeDiff), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ue_RxTxTimeDiff_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ue_RxTxTimeDiff_constraint_1 + }, + 0, 0, /* No default value */ + "ue-RxTxTimeDiff" + }, + { ATF_POINTER, 3, offsetof(struct MeasuredResultsElement, ext1), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_ext1_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 2, offsetof(struct MeasuredResultsElement, ext2), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + 0, + &asn_DEF_ext2_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 1, offsetof(struct MeasuredResultsElement, ext3), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + 0, + &asn_DEF_ext3_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, +}; +static const int asn_MAP_MeasuredResultsElement_oms_1[] = { 1, 3, 4, 5, 6, 7, 8, 9 }; +static const ber_tlv_tag_t asn_DEF_MeasuredResultsElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MeasuredResultsElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalId */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* arfcnEUTRA */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* systemFrameNumber */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rsrp-Result */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* rsrq-Result */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ue-RxTxTimeDiff */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* ext3 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_MeasuredResultsElement_specs_1 = { + sizeof(struct MeasuredResultsElement), + offsetof(struct MeasuredResultsElement, _asn_ctx), + asn_MAP_MeasuredResultsElement_tag2el_1, + 10, /* Count of tags in the map */ + asn_MAP_MeasuredResultsElement_oms_1, /* Optional members */ + 5, 3, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_MeasuredResultsElement = { + "MeasuredResultsElement", + "MeasuredResultsElement", + &asn_OP_SEQUENCE, + asn_DEF_MeasuredResultsElement_tags_1, + sizeof(asn_DEF_MeasuredResultsElement_tags_1) + /sizeof(asn_DEF_MeasuredResultsElement_tags_1[0]), /* 1 */ + asn_DEF_MeasuredResultsElement_tags_1, /* Same as above */ + sizeof(asn_DEF_MeasuredResultsElement_tags_1) + /sizeof(asn_DEF_MeasuredResultsElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MeasuredResultsElement_1, + 10, /* Elements count */ + &asn_SPC_MeasuredResultsElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/MeasuredResultsElement.h b/asn.1/lpp_generated/MeasuredResultsElement.h new file mode 100644 index 00000000..4e2a606a --- /dev/null +++ b/asn.1/lpp_generated/MeasuredResultsElement.h @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _MeasuredResultsElement_H_ +#define _MeasuredResultsElement_H_ + + +#include + +/* Including external dependencies */ +#include +#include "ARFCN-ValueEUTRA.h" +#include +#include "ARFCN-ValueEUTRA-v9a0.h" +#include +#include "CarrierFreqOffsetNB-r14.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CellGlobalIdEUTRA_AndUTRA; + +/* MeasuredResultsElement */ +typedef struct MeasuredResultsElement { + long physCellId; + struct CellGlobalIdEUTRA_AndUTRA *cellGlobalId; /* OPTIONAL */ + ARFCN_ValueEUTRA_t arfcnEUTRA; + BIT_STRING_t *systemFrameNumber; /* OPTIONAL */ + long *rsrp_Result; /* OPTIONAL */ + long *rsrq_Result; /* OPTIONAL */ + long *ue_RxTxTimeDiff; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct MeasuredResultsElement__ext1 { + ARFCN_ValueEUTRA_v9a0_t *arfcnEUTRA_v9a0; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct MeasuredResultsElement__ext2 { + long *nrsrp_Result_r14; /* OPTIONAL */ + long *nrsrq_Result_r14; /* OPTIONAL */ + CarrierFreqOffsetNB_r14_t *carrierFreqOffsetNB_r14; /* OPTIONAL */ + BIT_STRING_t *hyperSFN_r14; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct MeasuredResultsElement__ext3 { + long *rsrp_Result_v1470; /* OPTIONAL */ + long *rsrq_Result_v1470; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} MeasuredResultsElement_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_MeasuredResultsElement; +extern asn_SEQUENCE_specifics_t asn_SPC_MeasuredResultsElement_specs_1; +extern asn_TYPE_member_t asn_MBR_MeasuredResultsElement_1[10]; + +#ifdef __cplusplus +} +#endif + +#endif /* _MeasuredResultsElement_H_ */ +#include diff --git a/asn.1/lpp_generated/MeasuredResultsList.c b/asn.1/lpp_generated/MeasuredResultsList.c new file mode 100644 index 00000000..95fca4aa --- /dev/null +++ b/asn.1/lpp_generated/MeasuredResultsList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "MeasuredResultsList.h" + +#include "MeasuredResultsElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_MeasuredResultsList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_MeasuredResultsList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_MeasuredResultsElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_MeasuredResultsList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_MeasuredResultsList_specs_1 = { + sizeof(struct MeasuredResultsList), + offsetof(struct MeasuredResultsList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_MeasuredResultsList = { + "MeasuredResultsList", + "MeasuredResultsList", + &asn_OP_SEQUENCE_OF, + asn_DEF_MeasuredResultsList_tags_1, + sizeof(asn_DEF_MeasuredResultsList_tags_1) + /sizeof(asn_DEF_MeasuredResultsList_tags_1[0]), /* 1 */ + asn_DEF_MeasuredResultsList_tags_1, /* Same as above */ + sizeof(asn_DEF_MeasuredResultsList_tags_1) + /sizeof(asn_DEF_MeasuredResultsList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MeasuredResultsList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_MeasuredResultsList_1, + 1, /* Single element */ + &asn_SPC_MeasuredResultsList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/MeasuredResultsList.h b/asn.1/lpp_generated/MeasuredResultsList.h similarity index 79% rename from asn.1/generated/MeasuredResultsList.h rename to asn.1/lpp_generated/MeasuredResultsList.h index a38d0a0a..a616bedf 100644 --- a/asn.1/generated/MeasuredResultsList.h +++ b/asn.1/lpp_generated/MeasuredResultsList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _MeasuredResultsList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_MeasuredResultsList_constr_1; } #endif -/* Referred external types */ -#include "MeasuredResultsElement.h" - #endif /* _MeasuredResultsList_H_ */ #include diff --git a/asn.1/lpp_generated/MeasurementReferenceTime.c b/asn.1/lpp_generated/MeasurementReferenceTime.c new file mode 100644 index 00000000..42788595 --- /dev/null +++ b/asn.1/lpp_generated/MeasurementReferenceTime.c @@ -0,0 +1,1694 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "MeasurementReferenceTime.h" + +#include "CellGlobalIdEUTRA-AndUTRA.h" +#include "CellGlobalIdGERAN.h" +#include "ECGI.h" +#include "NCGI-r15.h" +static int +memb_physCellId_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 503L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_systemFrameNumber_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 10UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_primary_CPICH_Info_constraint_14(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cellParameters_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_referenceSystemFrameNumber_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_referenceFN_constraint_27(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_referenceFNMSB_constraint_27(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bcchCarrier_constraint_23(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bsic_constraint_23(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_deltaGNSS_TOD_constraint_23(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nbPhysCellId_r14_constraint_34(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 503L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sfn_r14_constraint_34(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 10UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_hyperSFN_r14_constraint_34(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 10UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nrPhysCellId_r15_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1007L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_sfn_r15_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 10UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gnss_TOD_msec_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3599999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gnss_TOD_frac_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gnss_TOD_unc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_physCellId_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_systemFrameNumber_constr_10 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_primary_CPICH_Info_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cellParameters_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_mode_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_referenceSystemFrameNumber_constr_21 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_referenceFN_constr_28 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_referenceFNMSB_constr_29 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bcchCarrier_constr_24 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bsic_constr_25 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_deltaGNSS_TOD_constr_31 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nbPhysCellId_r14_constr_35 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sfn_r14_constr_37 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_hyperSFN_r14_constr_38 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nrPhysCellId_r15_constr_41 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1007 } /* (0..1007) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_sfn_r15_constr_43 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_networkTime_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_TOD_msec_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, 0, 3599999 } /* (0..3599999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_TOD_frac_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 3999 } /* (0..3999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_TOD_unc_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_eUTRA_7[] = { + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__eUTRA, physCellId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_physCellId_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_physCellId_constraint_7 + }, + 0, 0, /* No default value */ + "physCellId" + }, + { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime__networkTime__eUTRA, cellGlobalId), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CellGlobalIdEUTRA_AndUTRA, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellGlobalId" + }, + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__eUTRA, systemFrameNumber), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_systemFrameNumber_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_systemFrameNumber_constraint_7 + }, + 0, 0, /* No default value */ + "systemFrameNumber" + }, +}; +static const int asn_MAP_eUTRA_oms_7[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_eUTRA_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_eUTRA_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalId */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* systemFrameNumber */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_eUTRA_specs_7 = { + sizeof(struct MeasurementReferenceTime__networkTime__eUTRA), + offsetof(struct MeasurementReferenceTime__networkTime__eUTRA, _asn_ctx), + asn_MAP_eUTRA_tag2el_7, + 3, /* Count of tags in the map */ + asn_MAP_eUTRA_oms_7, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_eUTRA_7 = { + "eUTRA", + "eUTRA", + &asn_OP_SEQUENCE, + asn_DEF_eUTRA_tags_7, + sizeof(asn_DEF_eUTRA_tags_7) + /sizeof(asn_DEF_eUTRA_tags_7[0]) - 1, /* 1 */ + asn_DEF_eUTRA_tags_7, /* Same as above */ + sizeof(asn_DEF_eUTRA_tags_7) + /sizeof(asn_DEF_eUTRA_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_eUTRA_7, + 3, /* Elements count */ + &asn_SPC_eUTRA_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_fdd_14[] = { + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__uTRA__mode__fdd, primary_CPICH_Info), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_primary_CPICH_Info_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_primary_CPICH_Info_constraint_14 + }, + 0, 0, /* No default value */ + "primary-CPICH-Info" + }, +}; +static const ber_tlv_tag_t asn_DEF_fdd_tags_14[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_fdd_tag2el_14[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* primary-CPICH-Info */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_fdd_specs_14 = { + sizeof(struct MeasurementReferenceTime__networkTime__uTRA__mode__fdd), + offsetof(struct MeasurementReferenceTime__networkTime__uTRA__mode__fdd, _asn_ctx), + asn_MAP_fdd_tag2el_14, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fdd_14 = { + "fdd", + "fdd", + &asn_OP_SEQUENCE, + asn_DEF_fdd_tags_14, + sizeof(asn_DEF_fdd_tags_14) + /sizeof(asn_DEF_fdd_tags_14[0]) - 1, /* 1 */ + asn_DEF_fdd_tags_14, /* Same as above */ + sizeof(asn_DEF_fdd_tags_14) + /sizeof(asn_DEF_fdd_tags_14[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_fdd_14, + 1, /* Elements count */ + &asn_SPC_fdd_specs_14 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_tdd_17[] = { + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__uTRA__mode__tdd, cellParameters), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cellParameters_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cellParameters_constraint_17 + }, + 0, 0, /* No default value */ + "cellParameters" + }, +}; +static const ber_tlv_tag_t asn_DEF_tdd_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_tdd_tag2el_17[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cellParameters */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_tdd_specs_17 = { + sizeof(struct MeasurementReferenceTime__networkTime__uTRA__mode__tdd), + offsetof(struct MeasurementReferenceTime__networkTime__uTRA__mode__tdd, _asn_ctx), + asn_MAP_tdd_tag2el_17, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_tdd_17 = { + "tdd", + "tdd", + &asn_OP_SEQUENCE, + asn_DEF_tdd_tags_17, + sizeof(asn_DEF_tdd_tags_17) + /sizeof(asn_DEF_tdd_tags_17[0]) - 1, /* 1 */ + asn_DEF_tdd_tags_17, /* Same as above */ + sizeof(asn_DEF_tdd_tags_17) + /sizeof(asn_DEF_tdd_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_tdd_17, + 1, /* Elements count */ + &asn_SPC_tdd_specs_17 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_mode_13[] = { + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__uTRA__mode, choice.fdd), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_fdd_14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fdd" + }, + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__uTRA__mode, choice.tdd), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_tdd_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tdd" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_mode_tag2el_13[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */ +}; +static asn_CHOICE_specifics_t asn_SPC_mode_specs_13 = { + sizeof(struct MeasurementReferenceTime__networkTime__uTRA__mode), + offsetof(struct MeasurementReferenceTime__networkTime__uTRA__mode, _asn_ctx), + offsetof(struct MeasurementReferenceTime__networkTime__uTRA__mode, present), + sizeof(((struct MeasurementReferenceTime__networkTime__uTRA__mode *)0)->present), + asn_MAP_mode_tag2el_13, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_mode_13 = { + "mode", + "mode", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_mode_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_mode_13, + 2, /* Elements count */ + &asn_SPC_mode_specs_13 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_uTRA_12[] = { + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__uTRA, mode), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_mode_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mode" + }, + { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime__networkTime__uTRA, cellGlobalId), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CellGlobalIdEUTRA_AndUTRA, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellGlobalId" + }, + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__uTRA, referenceSystemFrameNumber), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_referenceSystemFrameNumber_constr_21, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_referenceSystemFrameNumber_constraint_12 + }, + 0, 0, /* No default value */ + "referenceSystemFrameNumber" + }, +}; +static const int asn_MAP_uTRA_oms_12[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_uTRA_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_uTRA_tag2el_12[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mode */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalId */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* referenceSystemFrameNumber */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_uTRA_specs_12 = { + sizeof(struct MeasurementReferenceTime__networkTime__uTRA), + offsetof(struct MeasurementReferenceTime__networkTime__uTRA, _asn_ctx), + asn_MAP_uTRA_tag2el_12, + 3, /* Count of tags in the map */ + asn_MAP_uTRA_oms_12, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_uTRA_12 = { + "uTRA", + "uTRA", + &asn_OP_SEQUENCE, + asn_DEF_uTRA_tags_12, + sizeof(asn_DEF_uTRA_tags_12) + /sizeof(asn_DEF_uTRA_tags_12[0]) - 1, /* 1 */ + asn_DEF_uTRA_tags_12, /* Same as above */ + sizeof(asn_DEF_uTRA_tags_12) + /sizeof(asn_DEF_uTRA_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_uTRA_12, + 3, /* Elements count */ + &asn_SPC_uTRA_specs_12 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_referenceFrame_27[] = { + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__gSM__referenceFrame, referenceFN), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_referenceFN_constr_28, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_referenceFN_constraint_27 + }, + 0, 0, /* No default value */ + "referenceFN" + }, + { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime__networkTime__gSM__referenceFrame, referenceFNMSB), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_referenceFNMSB_constr_29, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_referenceFNMSB_constraint_27 + }, + 0, 0, /* No default value */ + "referenceFNMSB" + }, +}; +static const int asn_MAP_referenceFrame_oms_27[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_referenceFrame_tags_27[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_referenceFrame_tag2el_27[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceFN */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* referenceFNMSB */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_referenceFrame_specs_27 = { + sizeof(struct MeasurementReferenceTime__networkTime__gSM__referenceFrame), + offsetof(struct MeasurementReferenceTime__networkTime__gSM__referenceFrame, _asn_ctx), + asn_MAP_referenceFrame_tag2el_27, + 2, /* Count of tags in the map */ + asn_MAP_referenceFrame_oms_27, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_referenceFrame_27 = { + "referenceFrame", + "referenceFrame", + &asn_OP_SEQUENCE, + asn_DEF_referenceFrame_tags_27, + sizeof(asn_DEF_referenceFrame_tags_27) + /sizeof(asn_DEF_referenceFrame_tags_27[0]) - 1, /* 1 */ + asn_DEF_referenceFrame_tags_27, /* Same as above */ + sizeof(asn_DEF_referenceFrame_tags_27) + /sizeof(asn_DEF_referenceFrame_tags_27[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_referenceFrame_27, + 2, /* Elements count */ + &asn_SPC_referenceFrame_specs_27 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_gSM_23[] = { + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__gSM, bcchCarrier), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bcchCarrier_constr_24, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bcchCarrier_constraint_23 + }, + 0, 0, /* No default value */ + "bcchCarrier" + }, + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__gSM, bsic), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bsic_constr_25, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bsic_constraint_23 + }, + 0, 0, /* No default value */ + "bsic" + }, + { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime__networkTime__gSM, cellGlobalId), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CellGlobalIdGERAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellGlobalId" + }, + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__gSM, referenceFrame), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_referenceFrame_27, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceFrame" + }, + { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime__networkTime__gSM, deltaGNSS_TOD), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_deltaGNSS_TOD_constr_31, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_deltaGNSS_TOD_constraint_23 + }, + 0, 0, /* No default value */ + "deltaGNSS-TOD" + }, +}; +static const int asn_MAP_gSM_oms_23[] = { 2, 4 }; +static const ber_tlv_tag_t asn_DEF_gSM_tags_23[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_gSM_tag2el_23[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bcchCarrier */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bsic */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cellGlobalId */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* referenceFrame */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* deltaGNSS-TOD */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_gSM_specs_23 = { + sizeof(struct MeasurementReferenceTime__networkTime__gSM), + offsetof(struct MeasurementReferenceTime__networkTime__gSM, _asn_ctx), + asn_MAP_gSM_tag2el_23, + 5, /* Count of tags in the map */ + asn_MAP_gSM_oms_23, /* Optional members */ + 2, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_gSM_23 = { + "gSM", + "gSM", + &asn_OP_SEQUENCE, + asn_DEF_gSM_tags_23, + sizeof(asn_DEF_gSM_tags_23) + /sizeof(asn_DEF_gSM_tags_23[0]) - 1, /* 1 */ + asn_DEF_gSM_tags_23, /* Same as above */ + sizeof(asn_DEF_gSM_tags_23) + /sizeof(asn_DEF_gSM_tags_23[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_gSM_23, + 5, /* Elements count */ + &asn_SPC_gSM_specs_23 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nbIoT_r14_34[] = { + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__nbIoT_r14, nbPhysCellId_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nbPhysCellId_r14_constr_35, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nbPhysCellId_r14_constraint_34 + }, + 0, 0, /* No default value */ + "nbPhysCellId-r14" + }, + { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime__networkTime__nbIoT_r14, nbCellGlobalId_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ECGI, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nbCellGlobalId-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__nbIoT_r14, sfn_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sfn_r14_constr_37, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sfn_r14_constraint_34 + }, + 0, 0, /* No default value */ + "sfn-r14" + }, + { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime__networkTime__nbIoT_r14, hyperSFN_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_hyperSFN_r14_constr_38, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_hyperSFN_r14_constraint_34 + }, + 0, 0, /* No default value */ + "hyperSFN-r14" + }, +}; +static const int asn_MAP_nbIoT_r14_oms_34[] = { 1, 3 }; +static const ber_tlv_tag_t asn_DEF_nbIoT_r14_tags_34[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_nbIoT_r14_tag2el_34[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nbPhysCellId-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nbCellGlobalId-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sfn-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* hyperSFN-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_nbIoT_r14_specs_34 = { + sizeof(struct MeasurementReferenceTime__networkTime__nbIoT_r14), + offsetof(struct MeasurementReferenceTime__networkTime__nbIoT_r14, _asn_ctx), + asn_MAP_nbIoT_r14_tag2el_34, + 4, /* Count of tags in the map */ + asn_MAP_nbIoT_r14_oms_34, /* Optional members */ + 2, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nbIoT_r14_34 = { + "nbIoT-r14", + "nbIoT-r14", + &asn_OP_SEQUENCE, + asn_DEF_nbIoT_r14_tags_34, + sizeof(asn_DEF_nbIoT_r14_tags_34) + /sizeof(asn_DEF_nbIoT_r14_tags_34[0]) - 1, /* 1 */ + asn_DEF_nbIoT_r14_tags_34, /* Same as above */ + sizeof(asn_DEF_nbIoT_r14_tags_34) + /sizeof(asn_DEF_nbIoT_r14_tags_34[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_nbIoT_r14_34, + 4, /* Elements count */ + &asn_SPC_nbIoT_r14_specs_34 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_r15_40[] = { + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__nr_r15, nrPhysCellId_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nrPhysCellId_r15_constr_41, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nrPhysCellId_r15_constraint_40 + }, + 0, 0, /* No default value */ + "nrPhysCellId-r15" + }, + { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime__networkTime__nr_r15, nrCellGlobalID_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nrCellGlobalID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime__nr_r15, nr_sfn_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_sfn_r15_constr_43, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_sfn_r15_constraint_40 + }, + 0, 0, /* No default value */ + "nr-sfn-r15" + }, +}; +static const int asn_MAP_nr_r15_oms_40[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_nr_r15_tags_40[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_r15_tag2el_40[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nrPhysCellId-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nrCellGlobalID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-sfn-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_nr_r15_specs_40 = { + sizeof(struct MeasurementReferenceTime__networkTime__nr_r15), + offsetof(struct MeasurementReferenceTime__networkTime__nr_r15, _asn_ctx), + asn_MAP_nr_r15_tag2el_40, + 3, /* Count of tags in the map */ + asn_MAP_nr_r15_oms_40, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_r15_40 = { + "nr-r15", + "nr-r15", + &asn_OP_SEQUENCE, + asn_DEF_nr_r15_tags_40, + sizeof(asn_DEF_nr_r15_tags_40) + /sizeof(asn_DEF_nr_r15_tags_40[0]) - 1, /* 1 */ + asn_DEF_nr_r15_tags_40, /* Same as above */ + sizeof(asn_DEF_nr_r15_tags_40) + /sizeof(asn_DEF_nr_r15_tags_40[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_nr_r15_40, + 3, /* Elements count */ + &asn_SPC_nr_r15_specs_40 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_networkTime_6[] = { + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime, choice.eUTRA), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_eUTRA_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eUTRA" + }, + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime, choice.uTRA), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_uTRA_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "uTRA" + }, + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime, choice.gSM), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_gSM_23, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gSM" + }, + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime, choice.nbIoT_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_nbIoT_r14_34, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nbIoT-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime__networkTime, choice.nr_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_nr_r15_40, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-r15" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_networkTime_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eUTRA */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uTRA */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gSM */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nbIoT-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* nr-r15 */ +}; +static asn_CHOICE_specifics_t asn_SPC_networkTime_specs_6 = { + sizeof(struct MeasurementReferenceTime__networkTime), + offsetof(struct MeasurementReferenceTime__networkTime, _asn_ctx), + offsetof(struct MeasurementReferenceTime__networkTime, present), + sizeof(((struct MeasurementReferenceTime__networkTime *)0)->present), + asn_MAP_networkTime_tag2el_6, + 5, /* Count of tags in the map */ + 0, 0, + 3 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_networkTime_6 = { + "networkTime", + "networkTime", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_networkTime_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_networkTime_6, + 5, /* Elements count */ + &asn_SPC_networkTime_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_MeasurementReferenceTime_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime, gnss_TOD_msec), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_TOD_msec_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_TOD_msec_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-TOD-msec" + }, + { ATF_POINTER, 2, offsetof(struct MeasurementReferenceTime, gnss_TOD_frac), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_TOD_frac_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_TOD_frac_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-TOD-frac" + }, + { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime, gnss_TOD_unc), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_TOD_unc_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_TOD_unc_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-TOD-unc" + }, + { ATF_NOFLAGS, 0, offsetof(struct MeasurementReferenceTime, gnss_TimeID), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-TimeID" + }, + { ATF_POINTER, 1, offsetof(struct MeasurementReferenceTime, networkTime), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_networkTime_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "networkTime" + }, +}; +static const int asn_MAP_MeasurementReferenceTime_oms_1[] = { 1, 2, 4 }; +static const ber_tlv_tag_t asn_DEF_MeasurementReferenceTime_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MeasurementReferenceTime_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-TOD-msec */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-TOD-frac */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-TOD-unc */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-TimeID */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* networkTime */ +}; +asn_SEQUENCE_specifics_t asn_SPC_MeasurementReferenceTime_specs_1 = { + sizeof(struct MeasurementReferenceTime), + offsetof(struct MeasurementReferenceTime, _asn_ctx), + asn_MAP_MeasurementReferenceTime_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_MeasurementReferenceTime_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_MeasurementReferenceTime = { + "MeasurementReferenceTime", + "MeasurementReferenceTime", + &asn_OP_SEQUENCE, + asn_DEF_MeasurementReferenceTime_tags_1, + sizeof(asn_DEF_MeasurementReferenceTime_tags_1) + /sizeof(asn_DEF_MeasurementReferenceTime_tags_1[0]), /* 1 */ + asn_DEF_MeasurementReferenceTime_tags_1, /* Same as above */ + sizeof(asn_DEF_MeasurementReferenceTime_tags_1) + /sizeof(asn_DEF_MeasurementReferenceTime_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MeasurementReferenceTime_1, + 5, /* Elements count */ + &asn_SPC_MeasurementReferenceTime_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/MeasurementReferenceTime.h b/asn.1/lpp_generated/MeasurementReferenceTime.h similarity index 86% rename from asn.1/generated/MeasurementReferenceTime.h rename to asn.1/lpp_generated/MeasurementReferenceTime.h index ba466837..a9297b4b 100644 --- a/asn.1/generated/MeasurementReferenceTime.h +++ b/asn.1/lpp_generated/MeasurementReferenceTime.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _MeasurementReferenceTime_H_ @@ -47,15 +47,15 @@ struct NCGI_r15; /* MeasurementReferenceTime */ typedef struct MeasurementReferenceTime { long gnss_TOD_msec; - long *gnss_TOD_frac /* OPTIONAL */; - long *gnss_TOD_unc /* OPTIONAL */; + long *gnss_TOD_frac; /* OPTIONAL */ + long *gnss_TOD_unc; /* OPTIONAL */ GNSS_ID_t gnss_TimeID; struct MeasurementReferenceTime__networkTime { MeasurementReferenceTime__networkTime_PR present; union MeasurementReferenceTime__networkTime_u { struct MeasurementReferenceTime__networkTime__eUTRA { long physCellId; - struct CellGlobalIdEUTRA_AndUTRA *cellGlobalId /* OPTIONAL */; + struct CellGlobalIdEUTRA_AndUTRA *cellGlobalId; /* OPTIONAL */ BIT_STRING_t systemFrameNumber; /* * This type is extensible, @@ -94,7 +94,7 @@ typedef struct MeasurementReferenceTime { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } mode; - struct CellGlobalIdEUTRA_AndUTRA *cellGlobalId /* OPTIONAL */; + struct CellGlobalIdEUTRA_AndUTRA *cellGlobalId; /* OPTIONAL */ long referenceSystemFrameNumber; /* * This type is extensible, @@ -107,10 +107,10 @@ typedef struct MeasurementReferenceTime { struct MeasurementReferenceTime__networkTime__gSM { long bcchCarrier; long bsic; - struct CellGlobalIdGERAN *cellGlobalId /* OPTIONAL */; + struct CellGlobalIdGERAN *cellGlobalId; /* OPTIONAL */ struct MeasurementReferenceTime__networkTime__gSM__referenceFrame { long referenceFN; - long *referenceFNMSB /* OPTIONAL */; + long *referenceFNMSB; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -119,7 +119,7 @@ typedef struct MeasurementReferenceTime { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } referenceFrame; - long *deltaGNSS_TOD /* OPTIONAL */; + long *deltaGNSS_TOD; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -134,9 +134,9 @@ typedef struct MeasurementReferenceTime { */ struct MeasurementReferenceTime__networkTime__nbIoT_r14 { long nbPhysCellId_r14; - struct ECGI *nbCellGlobalId_r14 /* OPTIONAL */; + struct ECGI *nbCellGlobalId_r14; /* OPTIONAL */ BIT_STRING_t sfn_r14; - BIT_STRING_t *hyperSFN_r14 /* OPTIONAL */; + BIT_STRING_t *hyperSFN_r14; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -147,7 +147,7 @@ typedef struct MeasurementReferenceTime { } nbIoT_r14; struct MeasurementReferenceTime__networkTime__nr_r15 { long nrPhysCellId_r15; - struct NCGI_r15 *nrCellGlobalID_r15 /* OPTIONAL */; + struct NCGI_r15 *nrCellGlobalID_r15; /* OPTIONAL */ BIT_STRING_t nr_sfn_r15; /* * This type is extensible, @@ -180,11 +180,5 @@ extern asn_TYPE_member_t asn_MBR_MeasurementReferenceTime_1[5]; } #endif -/* Referred external types */ -#include "CellGlobalIdEUTRA-AndUTRA.h" -#include "CellGlobalIdGERAN.h" -#include "ECGI.h" -#include "NCGI-r15.h" - #endif /* _MeasurementReferenceTime_H_ */ #include diff --git a/asn.1/lpp_generated/MessageSizeLimitNB-r14.c b/asn.1/lpp_generated/MessageSizeLimitNB-r14.c new file mode 100644 index 00000000..c565d15c --- /dev/null +++ b/asn.1/lpp_generated/MessageSizeLimitNB-r14.c @@ -0,0 +1,100 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "MessageSizeLimitNB-r14.h" + +static int +memb_measurementLimit_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 512L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_measurementLimit_r14_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 1, 512 } /* (1..512) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_MessageSizeLimitNB_r14_1[] = { + { ATF_POINTER, 1, offsetof(struct MessageSizeLimitNB_r14, measurementLimit_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_measurementLimit_r14_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_measurementLimit_r14_constraint_1 + }, + 0, 0, /* No default value */ + "measurementLimit-r14" + }, +}; +static const int asn_MAP_MessageSizeLimitNB_r14_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_MessageSizeLimitNB_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MessageSizeLimitNB_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* measurementLimit-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_MessageSizeLimitNB_r14_specs_1 = { + sizeof(struct MessageSizeLimitNB_r14), + offsetof(struct MessageSizeLimitNB_r14, _asn_ctx), + asn_MAP_MessageSizeLimitNB_r14_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_MessageSizeLimitNB_r14_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_MessageSizeLimitNB_r14 = { + "MessageSizeLimitNB-r14", + "MessageSizeLimitNB-r14", + &asn_OP_SEQUENCE, + asn_DEF_MessageSizeLimitNB_r14_tags_1, + sizeof(asn_DEF_MessageSizeLimitNB_r14_tags_1) + /sizeof(asn_DEF_MessageSizeLimitNB_r14_tags_1[0]), /* 1 */ + asn_DEF_MessageSizeLimitNB_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_MessageSizeLimitNB_r14_tags_1) + /sizeof(asn_DEF_MessageSizeLimitNB_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MessageSizeLimitNB_r14_1, + 1, /* Elements count */ + &asn_SPC_MessageSizeLimitNB_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/MessageSizeLimitNB-r14.h b/asn.1/lpp_generated/MessageSizeLimitNB-r14.h similarity index 75% rename from asn.1/generated/MessageSizeLimitNB-r14.h rename to asn.1/lpp_generated/MessageSizeLimitNB-r14.h index 2bb3132b..e5dd312d 100644 --- a/asn.1/generated/MessageSizeLimitNB-r14.h +++ b/asn.1/lpp_generated/MessageSizeLimitNB-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _MessageSizeLimitNB_r14_H_ @@ -21,7 +21,7 @@ extern "C" { /* MessageSizeLimitNB-r14 */ typedef struct MessageSizeLimitNB_r14 { - long *measurementLimit_r14 /* OPTIONAL */; + long *measurementLimit_r14; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/MotionTimeSource-r15.c b/asn.1/lpp_generated/MotionTimeSource-r15.c new file mode 100644 index 00000000..74e9964e --- /dev/null +++ b/asn.1/lpp_generated/MotionTimeSource-r15.c @@ -0,0 +1,132 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "MotionTimeSource-r15.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_timeSource_r15_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_timeSource_r15_value2enum_2[] = { + { 0, 11, "servingCell" }, + { 1, 13, "referenceCell" }, + { 2, 4, "gnss" }, + { 3, 5, "mixed" }, + { 4, 5, "other" }, + { 5, 4, "none" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_timeSource_r15_enum2value_2[] = { + 2, /* gnss(2) */ + 3, /* mixed(3) */ + 5, /* none(5) */ + 4, /* other(4) */ + 1, /* referenceCell(1) */ + 0 /* servingCell(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_timeSource_r15_specs_2 = { + asn_MAP_timeSource_r15_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_timeSource_r15_enum2value_2, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 7, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_timeSource_r15_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_timeSource_r15_2 = { + "timeSource-r15", + "timeSource-r15", + &asn_OP_NativeEnumerated, + asn_DEF_timeSource_r15_tags_2, + sizeof(asn_DEF_timeSource_r15_tags_2) + /sizeof(asn_DEF_timeSource_r15_tags_2[0]) - 1, /* 1 */ + asn_DEF_timeSource_r15_tags_2, /* Same as above */ + sizeof(asn_DEF_timeSource_r15_tags_2) + /sizeof(asn_DEF_timeSource_r15_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_timeSource_r15_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_timeSource_r15_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_MotionTimeSource_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct MotionTimeSource_r15, timeSource_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_timeSource_r15_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "timeSource-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_MotionTimeSource_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MotionTimeSource_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* timeSource-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_MotionTimeSource_r15_specs_1 = { + sizeof(struct MotionTimeSource_r15), + offsetof(struct MotionTimeSource_r15, _asn_ctx), + asn_MAP_MotionTimeSource_r15_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_MotionTimeSource_r15 = { + "MotionTimeSource-r15", + "MotionTimeSource-r15", + &asn_OP_SEQUENCE, + asn_DEF_MotionTimeSource_r15_tags_1, + sizeof(asn_DEF_MotionTimeSource_r15_tags_1) + /sizeof(asn_DEF_MotionTimeSource_r15_tags_1[0]), /* 1 */ + asn_DEF_MotionTimeSource_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_MotionTimeSource_r15_tags_1) + /sizeof(asn_DEF_MotionTimeSource_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MotionTimeSource_r15_1, + 1, /* Elements count */ + &asn_SPC_MotionTimeSource_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/MotionTimeSource-r15.h b/asn.1/lpp_generated/MotionTimeSource-r15.h similarity index 84% rename from asn.1/generated/MotionTimeSource-r15.h rename to asn.1/lpp_generated/MotionTimeSource-r15.h index 8d5f175c..cd927822 100644 --- a/asn.1/generated/MotionTimeSource-r15.h +++ b/asn.1/lpp_generated/MotionTimeSource-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _MotionTimeSource_r15_H_ diff --git a/asn.1/lpp_generated/Multi-RTT-MeasCapabilityPerBand-r17.c b/asn.1/lpp_generated/Multi-RTT-MeasCapabilityPerBand-r17.c new file mode 100644 index 00000000..7663eeba --- /dev/null +++ b/asn.1/lpp_generated/Multi-RTT-MeasCapabilityPerBand-r17.c @@ -0,0 +1,1003 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Multi-RTT-MeasCapabilityPerBand-r17.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfDL_PRS_FirstPathRSRP_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_MeasRRC_Inactive_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfDL_PRS_BWA_RRC_Connected_r18_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfDL_PRS_BWA_RRC_Inactive_r18_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_NTN_MeasAndReport_r18_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_RSCP_ReportingRRC_Connected_r18_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfLegacyMeasurementInTimeWindow_r18_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_assocSingleRx_Tx_WithUpToNsampleRSCP_r18_constr_21 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfRSCP_MeasurementInTimeWindow_r18_constr_23 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfSymbolTimeStampForRSCP_r18_constr_25 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfFinerTimingReportGranularityForPRS_Meas_r18_constr_27 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_supportOfDL_PRS_FirstPathRSRP_r17_value2enum_3[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfDL_PRS_FirstPathRSRP_r17_enum2value_3[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfDL_PRS_FirstPathRSRP_r17_specs_3 = { + asn_MAP_supportOfDL_PRS_FirstPathRSRP_r17_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfDL_PRS_FirstPathRSRP_r17_enum2value_3, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_3 = { + "supportOfDL-PRS-FirstPathRSRP-r17", + "supportOfDL-PRS-FirstPathRSRP-r17", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_tags_3, + sizeof(asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_tags_3) + /sizeof(asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_tags_3[0]) - 1, /* 1 */ + asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_tags_3, /* Same as above */ + sizeof(asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_tags_3) + /sizeof(asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfDL_PRS_FirstPathRSRP_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfDL_PRS_FirstPathRSRP_r17_specs_3 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_MeasRRC_Inactive_r17_value2enum_5[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_dl_PRS_MeasRRC_Inactive_r17_enum2value_5[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_MeasRRC_Inactive_r17_specs_5 = { + asn_MAP_dl_PRS_MeasRRC_Inactive_r17_value2enum_5, /* "tag" => N; sorted by tag */ + asn_MAP_dl_PRS_MeasRRC_Inactive_r17_enum2value_5, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_MeasRRC_Inactive_r17_5 = { + "dl-PRS-MeasRRC-Inactive-r17", + "dl-PRS-MeasRRC-Inactive-r17", + &asn_OP_NativeEnumerated, + asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_5, + sizeof(asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_5) + /sizeof(asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_5[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_5, /* Same as above */ + sizeof(asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_5) + /sizeof(asn_DEF_dl_PRS_MeasRRC_Inactive_r17_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_MeasRRC_Inactive_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_PRS_MeasRRC_Inactive_r17_specs_5 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfDL_PRS_BWA_RRC_Connected_r18_value2enum_9[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfDL_PRS_BWA_RRC_Connected_r18_enum2value_9[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfDL_PRS_BWA_RRC_Connected_r18_specs_9 = { + asn_MAP_supportOfDL_PRS_BWA_RRC_Connected_r18_value2enum_9, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfDL_PRS_BWA_RRC_Connected_r18_enum2value_9, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_9 = { + "supportOfDL-PRS-BWA-RRC-Connected-r18", + "supportOfDL-PRS-BWA-RRC-Connected-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_tags_9, + sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_tags_9) + /sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_tags_9[0]) - 1, /* 1 */ + asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_tags_9, /* Same as above */ + sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_tags_9) + /sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfDL_PRS_BWA_RRC_Connected_r18_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfDL_PRS_BWA_RRC_Connected_r18_specs_9 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfDL_PRS_BWA_RRC_Inactive_r18_value2enum_11[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfDL_PRS_BWA_RRC_Inactive_r18_enum2value_11[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfDL_PRS_BWA_RRC_Inactive_r18_specs_11 = { + asn_MAP_supportOfDL_PRS_BWA_RRC_Inactive_r18_value2enum_11, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfDL_PRS_BWA_RRC_Inactive_r18_enum2value_11, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_11 = { + "supportOfDL-PRS-BWA-RRC-Inactive-r18", + "supportOfDL-PRS-BWA-RRC-Inactive-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_tags_11, + sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_tags_11) + /sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_tags_11[0]) - 1, /* 1 */ + asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_tags_11, /* Same as above */ + sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_tags_11) + /sizeof(asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfDL_PRS_BWA_RRC_Inactive_r18_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfDL_PRS_BWA_RRC_Inactive_r18_specs_11 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_NTN_MeasAndReport_r18_value2enum_13[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_nr_NTN_MeasAndReport_r18_enum2value_13[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_NTN_MeasAndReport_r18_specs_13 = { + asn_MAP_nr_NTN_MeasAndReport_r18_value2enum_13, /* "tag" => N; sorted by tag */ + asn_MAP_nr_NTN_MeasAndReport_r18_enum2value_13, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_NTN_MeasAndReport_r18_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_NTN_MeasAndReport_r18_13 = { + "nr-NTN-MeasAndReport-r18", + "nr-NTN-MeasAndReport-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_NTN_MeasAndReport_r18_tags_13, + sizeof(asn_DEF_nr_NTN_MeasAndReport_r18_tags_13) + /sizeof(asn_DEF_nr_NTN_MeasAndReport_r18_tags_13[0]) - 1, /* 1 */ + asn_DEF_nr_NTN_MeasAndReport_r18_tags_13, /* Same as above */ + sizeof(asn_DEF_nr_NTN_MeasAndReport_r18_tags_13) + /sizeof(asn_DEF_nr_NTN_MeasAndReport_r18_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_NTN_MeasAndReport_r18_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_NTN_MeasAndReport_r18_specs_13 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_DL_PRS_RSCP_ReportingRRC_Connected_r18_value2enum_15[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_nr_DL_PRS_RSCP_ReportingRRC_Connected_r18_enum2value_15[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_DL_PRS_RSCP_ReportingRRC_Connected_r18_specs_15 = { + asn_MAP_nr_DL_PRS_RSCP_ReportingRRC_Connected_r18_value2enum_15, /* "tag" => N; sorted by tag */ + asn_MAP_nr_DL_PRS_RSCP_ReportingRRC_Connected_r18_enum2value_15, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Connected_r18_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Connected_r18_15 = { + "nr-DL-PRS-RSCP-ReportingRRC-Connected-r18", + "nr-DL-PRS-RSCP-ReportingRRC-Connected-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Connected_r18_tags_15, + sizeof(asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Connected_r18_tags_15) + /sizeof(asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Connected_r18_tags_15[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Connected_r18_tags_15, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Connected_r18_tags_15) + /sizeof(asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Connected_r18_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_RSCP_ReportingRRC_Connected_r18_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_DL_PRS_RSCP_ReportingRRC_Connected_r18_specs_15 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18_value2enum_17[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18_enum2value_17[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18_specs_17 = { + asn_MAP_nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18_value2enum_17, /* "tag" => N; sorted by tag */ + asn_MAP_nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18_enum2value_17, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18_17 = { + "nr-DL-PRS-RSCP-ReportingRRC-Inactive-r18", + "nr-DL-PRS-RSCP-ReportingRRC-Inactive-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18_tags_17, + sizeof(asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18_tags_17) + /sizeof(asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18_tags_17[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18_tags_17, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18_tags_17) + /sizeof(asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18_specs_17 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfLegacyMeasurementInTimeWindow_r18_value2enum_19[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfLegacyMeasurementInTimeWindow_r18_enum2value_19[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfLegacyMeasurementInTimeWindow_r18_specs_19 = { + asn_MAP_supportOfLegacyMeasurementInTimeWindow_r18_value2enum_19, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfLegacyMeasurementInTimeWindow_r18_enum2value_19, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_19[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_19 = { + "supportOfLegacyMeasurementInTimeWindow-r18", + "supportOfLegacyMeasurementInTimeWindow-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_19, + sizeof(asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_19) + /sizeof(asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_19[0]) - 1, /* 1 */ + asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_19, /* Same as above */ + sizeof(asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_19) + /sizeof(asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_tags_19[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfLegacyMeasurementInTimeWindow_r18_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfLegacyMeasurementInTimeWindow_r18_specs_19 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_assocSingleRx_Tx_WithUpToNsampleRSCP_r18_value2enum_21[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_assocSingleRx_Tx_WithUpToNsampleRSCP_r18_enum2value_21[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_assocSingleRx_Tx_WithUpToNsampleRSCP_r18_specs_21 = { + asn_MAP_assocSingleRx_Tx_WithUpToNsampleRSCP_r18_value2enum_21, /* "tag" => N; sorted by tag */ + asn_MAP_assocSingleRx_Tx_WithUpToNsampleRSCP_r18_enum2value_21, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_assocSingleRx_Tx_WithUpToNsampleRSCP_r18_tags_21[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_assocSingleRx_Tx_WithUpToNsampleRSCP_r18_21 = { + "assocSingleRx-Tx-WithUpToNsampleRSCP-r18", + "assocSingleRx-Tx-WithUpToNsampleRSCP-r18", + &asn_OP_NativeEnumerated, + asn_DEF_assocSingleRx_Tx_WithUpToNsampleRSCP_r18_tags_21, + sizeof(asn_DEF_assocSingleRx_Tx_WithUpToNsampleRSCP_r18_tags_21) + /sizeof(asn_DEF_assocSingleRx_Tx_WithUpToNsampleRSCP_r18_tags_21[0]) - 1, /* 1 */ + asn_DEF_assocSingleRx_Tx_WithUpToNsampleRSCP_r18_tags_21, /* Same as above */ + sizeof(asn_DEF_assocSingleRx_Tx_WithUpToNsampleRSCP_r18_tags_21) + /sizeof(asn_DEF_assocSingleRx_Tx_WithUpToNsampleRSCP_r18_tags_21[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_assocSingleRx_Tx_WithUpToNsampleRSCP_r18_constr_21, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_assocSingleRx_Tx_WithUpToNsampleRSCP_r18_specs_21 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfRSCP_MeasurementInTimeWindow_r18_value2enum_23[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfRSCP_MeasurementInTimeWindow_r18_enum2value_23[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfRSCP_MeasurementInTimeWindow_r18_specs_23 = { + asn_MAP_supportOfRSCP_MeasurementInTimeWindow_r18_value2enum_23, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfRSCP_MeasurementInTimeWindow_r18_enum2value_23, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfRSCP_MeasurementInTimeWindow_r18_tags_23[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfRSCP_MeasurementInTimeWindow_r18_23 = { + "supportOfRSCP-MeasurementInTimeWindow-r18", + "supportOfRSCP-MeasurementInTimeWindow-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfRSCP_MeasurementInTimeWindow_r18_tags_23, + sizeof(asn_DEF_supportOfRSCP_MeasurementInTimeWindow_r18_tags_23) + /sizeof(asn_DEF_supportOfRSCP_MeasurementInTimeWindow_r18_tags_23[0]) - 1, /* 1 */ + asn_DEF_supportOfRSCP_MeasurementInTimeWindow_r18_tags_23, /* Same as above */ + sizeof(asn_DEF_supportOfRSCP_MeasurementInTimeWindow_r18_tags_23) + /sizeof(asn_DEF_supportOfRSCP_MeasurementInTimeWindow_r18_tags_23[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfRSCP_MeasurementInTimeWindow_r18_constr_23, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfRSCP_MeasurementInTimeWindow_r18_specs_23 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfSymbolTimeStampForRSCP_r18_value2enum_25[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfSymbolTimeStampForRSCP_r18_enum2value_25[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfSymbolTimeStampForRSCP_r18_specs_25 = { + asn_MAP_supportOfSymbolTimeStampForRSCP_r18_value2enum_25, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfSymbolTimeStampForRSCP_r18_enum2value_25, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfSymbolTimeStampForRSCP_r18_tags_25[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfSymbolTimeStampForRSCP_r18_25 = { + "supportOfSymbolTimeStampForRSCP-r18", + "supportOfSymbolTimeStampForRSCP-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfSymbolTimeStampForRSCP_r18_tags_25, + sizeof(asn_DEF_supportOfSymbolTimeStampForRSCP_r18_tags_25) + /sizeof(asn_DEF_supportOfSymbolTimeStampForRSCP_r18_tags_25[0]) - 1, /* 1 */ + asn_DEF_supportOfSymbolTimeStampForRSCP_r18_tags_25, /* Same as above */ + sizeof(asn_DEF_supportOfSymbolTimeStampForRSCP_r18_tags_25) + /sizeof(asn_DEF_supportOfSymbolTimeStampForRSCP_r18_tags_25[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfSymbolTimeStampForRSCP_r18_constr_25, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfSymbolTimeStampForRSCP_r18_specs_25 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfFinerTimingReportGranularityForPRS_Meas_r18_value2enum_27[] = { + { 0, 6, "minus1" }, + { 1, 6, "minus2" }, + { 2, 6, "minus3" }, + { 3, 6, "minus4" }, + { 4, 6, "minus5" }, + { 5, 6, "minus6" } +}; +static const unsigned int asn_MAP_supportOfFinerTimingReportGranularityForPRS_Meas_r18_enum2value_27[] = { + 0, /* minus1(0) */ + 1, /* minus2(1) */ + 2, /* minus3(2) */ + 3, /* minus4(3) */ + 4, /* minus5(4) */ + 5 /* minus6(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfFinerTimingReportGranularityForPRS_Meas_r18_specs_27 = { + asn_MAP_supportOfFinerTimingReportGranularityForPRS_Meas_r18_value2enum_27, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfFinerTimingReportGranularityForPRS_Meas_r18_enum2value_27, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_tags_27[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_27 = { + "supportOfFinerTimingReportGranularityForPRS-Meas-r18", + "supportOfFinerTimingReportGranularityForPRS-Meas-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_tags_27, + sizeof(asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_tags_27) + /sizeof(asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_tags_27[0]) - 1, /* 1 */ + asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_tags_27, /* Same as above */ + sizeof(asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_tags_27) + /sizeof(asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_tags_27[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfFinerTimingReportGranularityForPRS_Meas_r18_constr_27, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfFinerTimingReportGranularityForPRS_Meas_r18_specs_27 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_8[] = { + { ATF_POINTER, 10, offsetof(struct Multi_RTT_MeasCapabilityPerBand_r17__ext1, supportOfDL_PRS_BWA_RRC_Connected_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfDL-PRS-BWA-RRC-Connected-r18" + }, + { ATF_POINTER, 9, offsetof(struct Multi_RTT_MeasCapabilityPerBand_r17__ext1, supportOfDL_PRS_BWA_RRC_Inactive_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfDL-PRS-BWA-RRC-Inactive-r18" + }, + { ATF_POINTER, 8, offsetof(struct Multi_RTT_MeasCapabilityPerBand_r17__ext1, nr_NTN_MeasAndReport_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_NTN_MeasAndReport_r18_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-NTN-MeasAndReport-r18" + }, + { ATF_POINTER, 7, offsetof(struct Multi_RTT_MeasCapabilityPerBand_r17__ext1, nr_DL_PRS_RSCP_ReportingRRC_Connected_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Connected_r18_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RSCP-ReportingRRC-Connected-r18" + }, + { ATF_POINTER, 6, offsetof(struct Multi_RTT_MeasCapabilityPerBand_r17__ext1, nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RSCP-ReportingRRC-Inactive-r18" + }, + { ATF_POINTER, 5, offsetof(struct Multi_RTT_MeasCapabilityPerBand_r17__ext1, supportOfLegacyMeasurementInTimeWindow_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_19, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfLegacyMeasurementInTimeWindow-r18" + }, + { ATF_POINTER, 4, offsetof(struct Multi_RTT_MeasCapabilityPerBand_r17__ext1, assocSingleRx_Tx_WithUpToNsampleRSCP_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_assocSingleRx_Tx_WithUpToNsampleRSCP_r18_21, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "assocSingleRx-Tx-WithUpToNsampleRSCP-r18" + }, + { ATF_POINTER, 3, offsetof(struct Multi_RTT_MeasCapabilityPerBand_r17__ext1, supportOfRSCP_MeasurementInTimeWindow_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfRSCP_MeasurementInTimeWindow_r18_23, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfRSCP-MeasurementInTimeWindow-r18" + }, + { ATF_POINTER, 2, offsetof(struct Multi_RTT_MeasCapabilityPerBand_r17__ext1, supportOfSymbolTimeStampForRSCP_r18), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfSymbolTimeStampForRSCP_r18_25, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfSymbolTimeStampForRSCP-r18" + }, + { ATF_POINTER, 1, offsetof(struct Multi_RTT_MeasCapabilityPerBand_r17__ext1, supportOfFinerTimingReportGranularityForPRS_Meas_r18), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_27, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfFinerTimingReportGranularityForPRS-Meas-r18" + }, +}; +static const int asn_MAP_ext1_oms_8[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* supportOfDL-PRS-BWA-RRC-Connected-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* supportOfDL-PRS-BWA-RRC-Inactive-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-NTN-MeasAndReport-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-DL-PRS-RSCP-ReportingRRC-Connected-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-DL-PRS-RSCP-ReportingRRC-Inactive-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* supportOfLegacyMeasurementInTimeWindow-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* assocSingleRx-Tx-WithUpToNsampleRSCP-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* supportOfRSCP-MeasurementInTimeWindow-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* supportOfSymbolTimeStampForRSCP-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* supportOfFinerTimingReportGranularityForPRS-Meas-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { + sizeof(struct Multi_RTT_MeasCapabilityPerBand_r17__ext1), + offsetof(struct Multi_RTT_MeasCapabilityPerBand_r17__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_8, + 10, /* Count of tags in the map */ + asn_MAP_ext1_oms_8, /* Optional members */ + 10, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_8 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_8, + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_8, /* Same as above */ + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_8, + 10, /* Elements count */ + &asn_SPC_ext1_specs_8 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_Multi_RTT_MeasCapabilityPerBand_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Multi_RTT_MeasCapabilityPerBand_r17, freqBandIndicatorNR_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FreqBandIndicatorNR_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "freqBandIndicatorNR-r17" + }, + { ATF_POINTER, 3, offsetof(struct Multi_RTT_MeasCapabilityPerBand_r17, supportOfDL_PRS_FirstPathRSRP_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfDL-PRS-FirstPathRSRP-r17" + }, + { ATF_POINTER, 2, offsetof(struct Multi_RTT_MeasCapabilityPerBand_r17, dl_PRS_MeasRRC_Inactive_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_PRS_MeasRRC_Inactive_r17_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-MeasRRC-Inactive-r17" + }, + { ATF_POINTER, 1, offsetof(struct Multi_RTT_MeasCapabilityPerBand_r17, ext1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext1_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_Multi_RTT_MeasCapabilityPerBand_r17_oms_1[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_Multi_RTT_MeasCapabilityPerBand_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Multi_RTT_MeasCapabilityPerBand_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* freqBandIndicatorNR-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* supportOfDL-PRS-FirstPathRSRP-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dl-PRS-MeasRRC-Inactive-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Multi_RTT_MeasCapabilityPerBand_r17_specs_1 = { + sizeof(struct Multi_RTT_MeasCapabilityPerBand_r17), + offsetof(struct Multi_RTT_MeasCapabilityPerBand_r17, _asn_ctx), + asn_MAP_Multi_RTT_MeasCapabilityPerBand_r17_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_Multi_RTT_MeasCapabilityPerBand_r17_oms_1, /* Optional members */ + 2, 1, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Multi_RTT_MeasCapabilityPerBand_r17 = { + "Multi-RTT-MeasCapabilityPerBand-r17", + "Multi-RTT-MeasCapabilityPerBand-r17", + &asn_OP_SEQUENCE, + asn_DEF_Multi_RTT_MeasCapabilityPerBand_r17_tags_1, + sizeof(asn_DEF_Multi_RTT_MeasCapabilityPerBand_r17_tags_1) + /sizeof(asn_DEF_Multi_RTT_MeasCapabilityPerBand_r17_tags_1[0]), /* 1 */ + asn_DEF_Multi_RTT_MeasCapabilityPerBand_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_Multi_RTT_MeasCapabilityPerBand_r17_tags_1) + /sizeof(asn_DEF_Multi_RTT_MeasCapabilityPerBand_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Multi_RTT_MeasCapabilityPerBand_r17_1, + 4, /* Elements count */ + &asn_SPC_Multi_RTT_MeasCapabilityPerBand_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/Multi-RTT-MeasCapabilityPerBand-r17.h b/asn.1/lpp_generated/Multi-RTT-MeasCapabilityPerBand-r17.h new file mode 100644 index 00000000..7136f965 --- /dev/null +++ b/asn.1/lpp_generated/Multi-RTT-MeasCapabilityPerBand-r17.h @@ -0,0 +1,117 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _Multi_RTT_MeasCapabilityPerBand_r17_H_ +#define _Multi_RTT_MeasCapabilityPerBand_r17_H_ + + +#include + +/* Including external dependencies */ +#include "FreqBandIndicatorNR-r16.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum Multi_RTT_MeasCapabilityPerBand_r17__supportOfDL_PRS_FirstPathRSRP_r17 { + Multi_RTT_MeasCapabilityPerBand_r17__supportOfDL_PRS_FirstPathRSRP_r17_supported = 0 +} e_Multi_RTT_MeasCapabilityPerBand_r17__supportOfDL_PRS_FirstPathRSRP_r17; +typedef enum Multi_RTT_MeasCapabilityPerBand_r17__dl_PRS_MeasRRC_Inactive_r17 { + Multi_RTT_MeasCapabilityPerBand_r17__dl_PRS_MeasRRC_Inactive_r17_supported = 0 +} e_Multi_RTT_MeasCapabilityPerBand_r17__dl_PRS_MeasRRC_Inactive_r17; +typedef enum Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfDL_PRS_BWA_RRC_Connected_r18 { + Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfDL_PRS_BWA_RRC_Connected_r18_supported = 0 +} e_Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfDL_PRS_BWA_RRC_Connected_r18; +typedef enum Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfDL_PRS_BWA_RRC_Inactive_r18 { + Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfDL_PRS_BWA_RRC_Inactive_r18_supported = 0 +} e_Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfDL_PRS_BWA_RRC_Inactive_r18; +typedef enum Multi_RTT_MeasCapabilityPerBand_r17__ext1__nr_NTN_MeasAndReport_r18 { + Multi_RTT_MeasCapabilityPerBand_r17__ext1__nr_NTN_MeasAndReport_r18_supported = 0 +} e_Multi_RTT_MeasCapabilityPerBand_r17__ext1__nr_NTN_MeasAndReport_r18; +typedef enum Multi_RTT_MeasCapabilityPerBand_r17__ext1__nr_DL_PRS_RSCP_ReportingRRC_Connected_r18 { + Multi_RTT_MeasCapabilityPerBand_r17__ext1__nr_DL_PRS_RSCP_ReportingRRC_Connected_r18_supported = 0 +} e_Multi_RTT_MeasCapabilityPerBand_r17__ext1__nr_DL_PRS_RSCP_ReportingRRC_Connected_r18; +typedef enum Multi_RTT_MeasCapabilityPerBand_r17__ext1__nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18 { + Multi_RTT_MeasCapabilityPerBand_r17__ext1__nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18_supported = 0 +} e_Multi_RTT_MeasCapabilityPerBand_r17__ext1__nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18; +typedef enum Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfLegacyMeasurementInTimeWindow_r18 { + Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfLegacyMeasurementInTimeWindow_r18_supported = 0 +} e_Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfLegacyMeasurementInTimeWindow_r18; +typedef enum Multi_RTT_MeasCapabilityPerBand_r17__ext1__assocSingleRx_Tx_WithUpToNsampleRSCP_r18 { + Multi_RTT_MeasCapabilityPerBand_r17__ext1__assocSingleRx_Tx_WithUpToNsampleRSCP_r18_supported = 0 +} e_Multi_RTT_MeasCapabilityPerBand_r17__ext1__assocSingleRx_Tx_WithUpToNsampleRSCP_r18; +typedef enum Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfRSCP_MeasurementInTimeWindow_r18 { + Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfRSCP_MeasurementInTimeWindow_r18_supported = 0 +} e_Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfRSCP_MeasurementInTimeWindow_r18; +typedef enum Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfSymbolTimeStampForRSCP_r18 { + Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfSymbolTimeStampForRSCP_r18_supported = 0 +} e_Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfSymbolTimeStampForRSCP_r18; +typedef enum Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfFinerTimingReportGranularityForPRS_Meas_r18 { + Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfFinerTimingReportGranularityForPRS_Meas_r18_minus1 = 0, + Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfFinerTimingReportGranularityForPRS_Meas_r18_minus2 = 1, + Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfFinerTimingReportGranularityForPRS_Meas_r18_minus3 = 2, + Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfFinerTimingReportGranularityForPRS_Meas_r18_minus4 = 3, + Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfFinerTimingReportGranularityForPRS_Meas_r18_minus5 = 4, + Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfFinerTimingReportGranularityForPRS_Meas_r18_minus6 = 5 +} e_Multi_RTT_MeasCapabilityPerBand_r17__ext1__supportOfFinerTimingReportGranularityForPRS_Meas_r18; + +/* Multi-RTT-MeasCapabilityPerBand-r17 */ +typedef struct Multi_RTT_MeasCapabilityPerBand_r17 { + FreqBandIndicatorNR_r16_t freqBandIndicatorNR_r17; + long *supportOfDL_PRS_FirstPathRSRP_r17; /* OPTIONAL */ + long *dl_PRS_MeasRRC_Inactive_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct Multi_RTT_MeasCapabilityPerBand_r17__ext1 { + long *supportOfDL_PRS_BWA_RRC_Connected_r18; /* OPTIONAL */ + long *supportOfDL_PRS_BWA_RRC_Inactive_r18; /* OPTIONAL */ + long *nr_NTN_MeasAndReport_r18; /* OPTIONAL */ + long *nr_DL_PRS_RSCP_ReportingRRC_Connected_r18; /* OPTIONAL */ + long *nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18; /* OPTIONAL */ + long *supportOfLegacyMeasurementInTimeWindow_r18; /* OPTIONAL */ + long *assocSingleRx_Tx_WithUpToNsampleRSCP_r18; /* OPTIONAL */ + long *supportOfRSCP_MeasurementInTimeWindow_r18; /* OPTIONAL */ + long *supportOfSymbolTimeStampForRSCP_r18; /* OPTIONAL */ + long *supportOfFinerTimingReportGranularityForPRS_Meas_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Multi_RTT_MeasCapabilityPerBand_r17_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfDL_PRS_FirstPathRSRP_r17_3; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_dl_PRS_MeasRRC_Inactive_r17_5; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfDL_PRS_BWA_RRC_Connected_r18_9; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfDL_PRS_BWA_RRC_Inactive_r18_11; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_NTN_MeasAndReport_r18_13; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Connected_r18_15; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RSCP_ReportingRRC_Inactive_r18_17; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfLegacyMeasurementInTimeWindow_r18_19; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_assocSingleRx_Tx_WithUpToNsampleRSCP_r18_21; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfRSCP_MeasurementInTimeWindow_r18_23; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfSymbolTimeStampForRSCP_r18_25; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfFinerTimingReportGranularityForPRS_Meas_r18_27; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_Multi_RTT_MeasCapabilityPerBand_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_Multi_RTT_MeasCapabilityPerBand_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_Multi_RTT_MeasCapabilityPerBand_r17_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Multi_RTT_MeasCapabilityPerBand_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NAV-ClockModel.c b/asn.1/lpp_generated/NAV-ClockModel.c new file mode 100644 index 00000000..d236c210 --- /dev/null +++ b/asn.1/lpp_generated/NAV-ClockModel.c @@ -0,0 +1,298 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NAV-ClockModel.h" + +static int +memb_navToc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 37799L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navaf2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navaf1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navaf0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2097152L && value <= 2097151L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navTgd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navToc_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 37799 } /* (0..37799) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navaf2_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navaf1_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navaf0_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, -2097152, 2097151 } /* (-2097152..2097151) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navTgd_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NAV_ClockModel_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NAV_ClockModel, navToc), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navToc_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navToc_constraint_1 + }, + 0, 0, /* No default value */ + "navToc" + }, + { ATF_NOFLAGS, 0, offsetof(struct NAV_ClockModel, navaf2), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navaf2_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navaf2_constraint_1 + }, + 0, 0, /* No default value */ + "navaf2" + }, + { ATF_NOFLAGS, 0, offsetof(struct NAV_ClockModel, navaf1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navaf1_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navaf1_constraint_1 + }, + 0, 0, /* No default value */ + "navaf1" + }, + { ATF_NOFLAGS, 0, offsetof(struct NAV_ClockModel, navaf0), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navaf0_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navaf0_constraint_1 + }, + 0, 0, /* No default value */ + "navaf0" + }, + { ATF_NOFLAGS, 0, offsetof(struct NAV_ClockModel, navTgd), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navTgd_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navTgd_constraint_1 + }, + 0, 0, /* No default value */ + "navTgd" + }, +}; +static const ber_tlv_tag_t asn_DEF_NAV_ClockModel_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NAV_ClockModel_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* navToc */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* navaf2 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* navaf1 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* navaf0 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* navTgd */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NAV_ClockModel_specs_1 = { + sizeof(struct NAV_ClockModel), + offsetof(struct NAV_ClockModel, _asn_ctx), + asn_MAP_NAV_ClockModel_tag2el_1, + 5, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NAV_ClockModel = { + "NAV-ClockModel", + "NAV-ClockModel", + &asn_OP_SEQUENCE, + asn_DEF_NAV_ClockModel_tags_1, + sizeof(asn_DEF_NAV_ClockModel_tags_1) + /sizeof(asn_DEF_NAV_ClockModel_tags_1[0]), /* 1 */ + asn_DEF_NAV_ClockModel_tags_1, /* Same as above */ + sizeof(asn_DEF_NAV_ClockModel_tags_1) + /sizeof(asn_DEF_NAV_ClockModel_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NAV_ClockModel_1, + 5, /* Elements count */ + &asn_SPC_NAV_ClockModel_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NAV-ClockModel.h b/asn.1/lpp_generated/NAV-ClockModel.h similarity index 78% rename from asn.1/generated/NAV-ClockModel.h rename to asn.1/lpp_generated/NAV-ClockModel.h index ca7b9d7f..e85f9158 100644 --- a/asn.1/generated/NAV-ClockModel.h +++ b/asn.1/lpp_generated/NAV-ClockModel.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NAV_ClockModel_H_ diff --git a/asn.1/lpp_generated/NCGI-r15.c b/asn.1/lpp_generated/NCGI-r15.c new file mode 100644 index 00000000..55f9b050 --- /dev/null +++ b/asn.1/lpp_generated/NCGI-r15.c @@ -0,0 +1,390 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NCGI-r15.h" + +static int +memb_NativeInteger_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_NativeInteger_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_mcc_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size == 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_mnc_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 2UL && size <= 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_cellidentity_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 36UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_mcc_r15_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_mnc_r15_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_mcc_r15_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_mnc_r15_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_cellidentity_r15_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 36, 36 } /* (SIZE(36..36)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_mcc_r15_2[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_NativeInteger_constraint_2 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_mcc_r15_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_mcc_r15_specs_2 = { + sizeof(struct NCGI_r15__mcc_r15), + offsetof(struct NCGI_r15__mcc_r15, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_mcc_r15_2 = { + "mcc-r15", + "mcc-r15", + &asn_OP_SEQUENCE_OF, + asn_DEF_mcc_r15_tags_2, + sizeof(asn_DEF_mcc_r15_tags_2) + /sizeof(asn_DEF_mcc_r15_tags_2[0]) - 1, /* 1 */ + asn_DEF_mcc_r15_tags_2, /* Same as above */ + sizeof(asn_DEF_mcc_r15_tags_2) + /sizeof(asn_DEF_mcc_r15_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_mcc_r15_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_mcc_r15_2, + 1, /* Single element */ + &asn_SPC_mcc_r15_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_mnc_r15_4[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_NativeInteger_constraint_4 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_mnc_r15_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_mnc_r15_specs_4 = { + sizeof(struct NCGI_r15__mnc_r15), + offsetof(struct NCGI_r15__mnc_r15, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_mnc_r15_4 = { + "mnc-r15", + "mnc-r15", + &asn_OP_SEQUENCE_OF, + asn_DEF_mnc_r15_tags_4, + sizeof(asn_DEF_mnc_r15_tags_4) + /sizeof(asn_DEF_mnc_r15_tags_4[0]) - 1, /* 1 */ + asn_DEF_mnc_r15_tags_4, /* Same as above */ + sizeof(asn_DEF_mnc_r15_tags_4) + /sizeof(asn_DEF_mnc_r15_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_mnc_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_mnc_r15_4, + 1, /* Single element */ + &asn_SPC_mnc_r15_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NCGI_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NCGI_r15, mcc_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_mcc_r15_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_mcc_r15_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_mcc_r15_constraint_1 + }, + 0, 0, /* No default value */ + "mcc-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct NCGI_r15, mnc_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_mnc_r15_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_mnc_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_mnc_r15_constraint_1 + }, + 0, 0, /* No default value */ + "mnc-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct NCGI_r15, nr_cellidentity_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_cellidentity_r15_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_cellidentity_r15_constraint_1 + }, + 0, 0, /* No default value */ + "nr-cellidentity-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_NCGI_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NCGI_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mcc-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* mnc-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-cellidentity-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NCGI_r15_specs_1 = { + sizeof(struct NCGI_r15), + offsetof(struct NCGI_r15, _asn_ctx), + asn_MAP_NCGI_r15_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NCGI_r15 = { + "NCGI-r15", + "NCGI-r15", + &asn_OP_SEQUENCE, + asn_DEF_NCGI_r15_tags_1, + sizeof(asn_DEF_NCGI_r15_tags_1) + /sizeof(asn_DEF_NCGI_r15_tags_1[0]), /* 1 */ + asn_DEF_NCGI_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_NCGI_r15_tags_1) + /sizeof(asn_DEF_NCGI_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NCGI_r15_1, + 3, /* Elements count */ + &asn_SPC_NCGI_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NCGI-r15.h b/asn.1/lpp_generated/NCGI-r15.h similarity index 81% rename from asn.1/generated/NCGI-r15.h rename to asn.1/lpp_generated/NCGI-r15.h index 5ae0562f..dcc2221a 100644 --- a/asn.1/generated/NCGI-r15.h +++ b/asn.1/lpp_generated/NCGI-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NCGI_r15_H_ diff --git a/asn.1/lpp_generated/NPRS-Info-r14.c b/asn.1/lpp_generated/NPRS-Info-r14.c new file mode 100644 index 00000000..14105946 --- /dev/null +++ b/asn.1/lpp_generated/NPRS-Info-r14.c @@ -0,0 +1,2090 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NPRS-Info-r14.h" + +#include "CarrierFreq-NB-r14.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_subframePattern10_r14_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 10UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_subframePattern40_r14_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 40UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po2_r14_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 2UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po4_r14_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 4UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po8_r14_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po16_r14_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 16UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_po2_r14_constraint_48(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 2UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po4_r14_constraint_48(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 4UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po8_r14_constraint_48(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po16_r14_constraint_48(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 16UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_subframePattern10_TDD_r15_constraint_63(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_subframePattern40_TDD_r15_constraint_63(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 32UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po2_r15_constraint_67(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 2UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po4_r15_constraint_67(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 4UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po8_r15_constraint_67(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po16_r15_constraint_67(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 16UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nprsSequenceInfo_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 174L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nprsID_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_operationModeInfoNPRS_r14_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_subframePattern10_r14_constr_10 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_subframePattern40_r14_constr_11 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 40, 40 } /* (SIZE(40..40)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nprsBitmap_r14_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po2_r14_constr_13 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po4_r14_constr_14 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po8_r14_constr_15 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po16_r14_constr_16 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nprs_MutingInfoA_r14_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nprs_Period_r14_constr_20 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nprs_startSF_r14_constr_27 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 7 } /* (0..7,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nprs_NumSF_r14_constr_37 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 7 } /* (0..7,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po2_r14_constr_49 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po4_r14_constr_50 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po8_r14_constr_51 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po16_r14_constr_52 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nprs_MutingInfoB_r14_constr_48 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_sib1_SF_TDD_r15_constr_56 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_subframePattern10_TDD_r15_constr_64 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_subframePattern40_TDD_r15_constr_65 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 32, 32 } /* (SIZE(32..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nprsBitmap_r15_constr_63 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po2_r15_constr_68 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po4_r15_constr_69 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po8_r15_constr_70 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po16_r15_constr_71 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nprs_MutingInfoA_r15_constr_67 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nprsSequenceInfo_r14_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 174 } /* (0..174) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nprsID_r14_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_operationModeInfoNPRS_r14_value2enum_2[] = { + { 0, 6, "inband" }, + { 1, 10, "standalone" } +}; +static const unsigned int asn_MAP_operationModeInfoNPRS_r14_enum2value_2[] = { + 0, /* inband(0) */ + 1 /* standalone(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_operationModeInfoNPRS_r14_specs_2 = { + asn_MAP_operationModeInfoNPRS_r14_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_operationModeInfoNPRS_r14_enum2value_2, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_operationModeInfoNPRS_r14_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_operationModeInfoNPRS_r14_2 = { + "operationModeInfoNPRS-r14", + "operationModeInfoNPRS-r14", + &asn_OP_NativeEnumerated, + asn_DEF_operationModeInfoNPRS_r14_tags_2, + sizeof(asn_DEF_operationModeInfoNPRS_r14_tags_2) + /sizeof(asn_DEF_operationModeInfoNPRS_r14_tags_2[0]) - 1, /* 1 */ + asn_DEF_operationModeInfoNPRS_r14_tags_2, /* Same as above */ + sizeof(asn_DEF_operationModeInfoNPRS_r14_tags_2) + /sizeof(asn_DEF_operationModeInfoNPRS_r14_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_operationModeInfoNPRS_r14_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_operationModeInfoNPRS_r14_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nprsBitmap_r14_9[] = { + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partA_r14__nprsBitmap_r14, choice.subframePattern10_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_subframePattern10_r14_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_subframePattern10_r14_constraint_9 + }, + 0, 0, /* No default value */ + "subframePattern10-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partA_r14__nprsBitmap_r14, choice.subframePattern40_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_subframePattern40_r14_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_subframePattern40_r14_constraint_9 + }, + 0, 0, /* No default value */ + "subframePattern40-r14" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nprsBitmap_r14_tag2el_9[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* subframePattern10-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* subframePattern40-r14 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nprsBitmap_r14_specs_9 = { + sizeof(struct NPRS_Info_r14__partA_r14__nprsBitmap_r14), + offsetof(struct NPRS_Info_r14__partA_r14__nprsBitmap_r14, _asn_ctx), + offsetof(struct NPRS_Info_r14__partA_r14__nprsBitmap_r14, present), + sizeof(((struct NPRS_Info_r14__partA_r14__nprsBitmap_r14 *)0)->present), + asn_MAP_nprsBitmap_r14_tag2el_9, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nprsBitmap_r14_9 = { + "nprsBitmap-r14", + "nprsBitmap-r14", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nprsBitmap_r14_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nprsBitmap_r14_9, + 2, /* Elements count */ + &asn_SPC_nprsBitmap_r14_specs_9 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nprs_MutingInfoA_r14_12[] = { + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partA_r14__nprs_MutingInfoA_r14, choice.po2_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po2_r14_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po2_r14_constraint_12 + }, + 0, 0, /* No default value */ + "po2-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partA_r14__nprs_MutingInfoA_r14, choice.po4_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po4_r14_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po4_r14_constraint_12 + }, + 0, 0, /* No default value */ + "po4-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partA_r14__nprs_MutingInfoA_r14, choice.po8_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po8_r14_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po8_r14_constraint_12 + }, + 0, 0, /* No default value */ + "po8-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partA_r14__nprs_MutingInfoA_r14, choice.po16_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po16_r14_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po16_r14_constraint_12 + }, + 0, 0, /* No default value */ + "po16-r14" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nprs_MutingInfoA_r14_tag2el_12[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* po2-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* po4-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* po8-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* po16-r14 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nprs_MutingInfoA_r14_specs_12 = { + sizeof(struct NPRS_Info_r14__partA_r14__nprs_MutingInfoA_r14), + offsetof(struct NPRS_Info_r14__partA_r14__nprs_MutingInfoA_r14, _asn_ctx), + offsetof(struct NPRS_Info_r14__partA_r14__nprs_MutingInfoA_r14, present), + sizeof(((struct NPRS_Info_r14__partA_r14__nprs_MutingInfoA_r14 *)0)->present), + asn_MAP_nprs_MutingInfoA_r14_tag2el_12, + 4, /* Count of tags in the map */ + 0, 0, + 4 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nprs_MutingInfoA_r14_12 = { + "nprs-MutingInfoA-r14", + "nprs-MutingInfoA-r14", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nprs_MutingInfoA_r14_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nprs_MutingInfoA_r14_12, + 4, /* Elements count */ + &asn_SPC_nprs_MutingInfoA_r14_specs_12 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_partA_r14_8[] = { + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partA_r14, nprsBitmap_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nprsBitmap_r14_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nprsBitmap-r14" + }, + { ATF_POINTER, 1, offsetof(struct NPRS_Info_r14__partA_r14, nprs_MutingInfoA_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nprs_MutingInfoA_r14_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nprs-MutingInfoA-r14" + }, +}; +static const int asn_MAP_partA_r14_oms_8[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_partA_r14_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_partA_r14_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nprsBitmap-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nprs-MutingInfoA-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_partA_r14_specs_8 = { + sizeof(struct NPRS_Info_r14__partA_r14), + offsetof(struct NPRS_Info_r14__partA_r14, _asn_ctx), + asn_MAP_partA_r14_tag2el_8, + 2, /* Count of tags in the map */ + asn_MAP_partA_r14_oms_8, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_partA_r14_8 = { + "partA-r14", + "partA-r14", + &asn_OP_SEQUENCE, + asn_DEF_partA_r14_tags_8, + sizeof(asn_DEF_partA_r14_tags_8) + /sizeof(asn_DEF_partA_r14_tags_8[0]) - 1, /* 1 */ + asn_DEF_partA_r14_tags_8, /* Same as above */ + sizeof(asn_DEF_partA_r14_tags_8) + /sizeof(asn_DEF_partA_r14_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_partA_r14_8, + 2, /* Elements count */ + &asn_SPC_partA_r14_specs_8 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nprs_Period_r14_value2enum_20[] = { + { 0, 5, "ms160" }, + { 1, 5, "ms320" }, + { 2, 5, "ms640" }, + { 3, 6, "ms1280" }, + { 4, 12, "ms2560-v1510" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_nprs_Period_r14_enum2value_20[] = { + 3, /* ms1280(3) */ + 0, /* ms160(0) */ + 4, /* ms2560-v1510(4) */ + 1, /* ms320(1) */ + 2 /* ms640(2) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nprs_Period_r14_specs_20 = { + asn_MAP_nprs_Period_r14_value2enum_20, /* "tag" => N; sorted by tag */ + asn_MAP_nprs_Period_r14_enum2value_20, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nprs_Period_r14_tags_20[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nprs_Period_r14_20 = { + "nprs-Period-r14", + "nprs-Period-r14", + &asn_OP_NativeEnumerated, + asn_DEF_nprs_Period_r14_tags_20, + sizeof(asn_DEF_nprs_Period_r14_tags_20) + /sizeof(asn_DEF_nprs_Period_r14_tags_20[0]) - 1, /* 1 */ + asn_DEF_nprs_Period_r14_tags_20, /* Same as above */ + sizeof(asn_DEF_nprs_Period_r14_tags_20) + /sizeof(asn_DEF_nprs_Period_r14_tags_20[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nprs_Period_r14_constr_20, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nprs_Period_r14_specs_20 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nprs_startSF_r14_value2enum_27[] = { + { 0, 4, "zero" }, + { 1, 10, "one-eighth" }, + { 2, 11, "two-eighths" }, + { 3, 13, "three-eighths" }, + { 4, 12, "four-eighths" }, + { 5, 12, "five-eighths" }, + { 6, 11, "six-eighths" }, + { 7, 13, "seven-eighths" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_nprs_startSF_r14_enum2value_27[] = { + 5, /* five-eighths(5) */ + 4, /* four-eighths(4) */ + 1, /* one-eighth(1) */ + 7, /* seven-eighths(7) */ + 6, /* six-eighths(6) */ + 3, /* three-eighths(3) */ + 2, /* two-eighths(2) */ + 0 /* zero(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nprs_startSF_r14_specs_27 = { + asn_MAP_nprs_startSF_r14_value2enum_27, /* "tag" => N; sorted by tag */ + asn_MAP_nprs_startSF_r14_enum2value_27, /* N => "tag"; sorted by N */ + 8, /* Number of elements in the maps */ + 9, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nprs_startSF_r14_tags_27[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nprs_startSF_r14_27 = { + "nprs-startSF-r14", + "nprs-startSF-r14", + &asn_OP_NativeEnumerated, + asn_DEF_nprs_startSF_r14_tags_27, + sizeof(asn_DEF_nprs_startSF_r14_tags_27) + /sizeof(asn_DEF_nprs_startSF_r14_tags_27[0]) - 1, /* 1 */ + asn_DEF_nprs_startSF_r14_tags_27, /* Same as above */ + sizeof(asn_DEF_nprs_startSF_r14_tags_27) + /sizeof(asn_DEF_nprs_startSF_r14_tags_27[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nprs_startSF_r14_constr_27, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nprs_startSF_r14_specs_27 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nprs_NumSF_r14_value2enum_37[] = { + { 0, 4, "sf10" }, + { 1, 4, "sf20" }, + { 2, 4, "sf40" }, + { 3, 4, "sf80" }, + { 4, 5, "sf160" }, + { 5, 5, "sf320" }, + { 6, 5, "sf640" }, + { 7, 6, "sf1280" }, + { 8, 12, "sf2560-v1510" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_nprs_NumSF_r14_enum2value_37[] = { + 0, /* sf10(0) */ + 7, /* sf1280(7) */ + 4, /* sf160(4) */ + 1, /* sf20(1) */ + 8, /* sf2560-v1510(8) */ + 5, /* sf320(5) */ + 2, /* sf40(2) */ + 6, /* sf640(6) */ + 3 /* sf80(3) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nprs_NumSF_r14_specs_37 = { + asn_MAP_nprs_NumSF_r14_value2enum_37, /* "tag" => N; sorted by tag */ + asn_MAP_nprs_NumSF_r14_enum2value_37, /* N => "tag"; sorted by N */ + 9, /* Number of elements in the maps */ + 9, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nprs_NumSF_r14_tags_37[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nprs_NumSF_r14_37 = { + "nprs-NumSF-r14", + "nprs-NumSF-r14", + &asn_OP_NativeEnumerated, + asn_DEF_nprs_NumSF_r14_tags_37, + sizeof(asn_DEF_nprs_NumSF_r14_tags_37) + /sizeof(asn_DEF_nprs_NumSF_r14_tags_37[0]) - 1, /* 1 */ + asn_DEF_nprs_NumSF_r14_tags_37, /* Same as above */ + sizeof(asn_DEF_nprs_NumSF_r14_tags_37) + /sizeof(asn_DEF_nprs_NumSF_r14_tags_37[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nprs_NumSF_r14_constr_37, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nprs_NumSF_r14_specs_37 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nprs_MutingInfoB_r14_48[] = { + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partB_r14__nprs_MutingInfoB_r14, choice.po2_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po2_r14_constr_49, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po2_r14_constraint_48 + }, + 0, 0, /* No default value */ + "po2-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partB_r14__nprs_MutingInfoB_r14, choice.po4_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po4_r14_constr_50, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po4_r14_constraint_48 + }, + 0, 0, /* No default value */ + "po4-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partB_r14__nprs_MutingInfoB_r14, choice.po8_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po8_r14_constr_51, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po8_r14_constraint_48 + }, + 0, 0, /* No default value */ + "po8-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partB_r14__nprs_MutingInfoB_r14, choice.po16_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po16_r14_constr_52, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po16_r14_constraint_48 + }, + 0, 0, /* No default value */ + "po16-r14" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nprs_MutingInfoB_r14_tag2el_48[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* po2-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* po4-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* po8-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* po16-r14 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nprs_MutingInfoB_r14_specs_48 = { + sizeof(struct NPRS_Info_r14__partB_r14__nprs_MutingInfoB_r14), + offsetof(struct NPRS_Info_r14__partB_r14__nprs_MutingInfoB_r14, _asn_ctx), + offsetof(struct NPRS_Info_r14__partB_r14__nprs_MutingInfoB_r14, present), + sizeof(((struct NPRS_Info_r14__partB_r14__nprs_MutingInfoB_r14 *)0)->present), + asn_MAP_nprs_MutingInfoB_r14_tag2el_48, + 4, /* Count of tags in the map */ + 0, 0, + 4 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nprs_MutingInfoB_r14_48 = { + "nprs-MutingInfoB-r14", + "nprs-MutingInfoB-r14", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nprs_MutingInfoB_r14_constr_48, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nprs_MutingInfoB_r14_48, + 4, /* Elements count */ + &asn_SPC_nprs_MutingInfoB_r14_specs_48 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_sib1_SF_TDD_r15_value2enum_56[] = { + { 0, 3, "sf0" }, + { 1, 3, "sf4" }, + { 2, 7, "sf0and5" } +}; +static const unsigned int asn_MAP_sib1_SF_TDD_r15_enum2value_56[] = { + 0, /* sf0(0) */ + 2, /* sf0and5(2) */ + 1 /* sf4(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_sib1_SF_TDD_r15_specs_56 = { + asn_MAP_sib1_SF_TDD_r15_value2enum_56, /* "tag" => N; sorted by tag */ + asn_MAP_sib1_SF_TDD_r15_enum2value_56, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_sib1_SF_TDD_r15_tags_56[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_sib1_SF_TDD_r15_56 = { + "sib1-SF-TDD-r15", + "sib1-SF-TDD-r15", + &asn_OP_NativeEnumerated, + asn_DEF_sib1_SF_TDD_r15_tags_56, + sizeof(asn_DEF_sib1_SF_TDD_r15_tags_56) + /sizeof(asn_DEF_sib1_SF_TDD_r15_tags_56[0]) - 1, /* 1 */ + asn_DEF_sib1_SF_TDD_r15_tags_56, /* Same as above */ + sizeof(asn_DEF_sib1_SF_TDD_r15_tags_56) + /sizeof(asn_DEF_sib1_SF_TDD_r15_tags_56[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_sib1_SF_TDD_r15_constr_56, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_sib1_SF_TDD_r15_specs_56 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_55[] = { + { ATF_POINTER, 1, offsetof(struct NPRS_Info_r14__partB_r14__ext1, sib1_SF_TDD_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_sib1_SF_TDD_r15_56, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sib1-SF-TDD-r15" + }, +}; +static const int asn_MAP_ext1_oms_55[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_55[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_55[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* sib1-SF-TDD-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_55 = { + sizeof(struct NPRS_Info_r14__partB_r14__ext1), + offsetof(struct NPRS_Info_r14__partB_r14__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_55, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_55, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_55 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_55, + sizeof(asn_DEF_ext1_tags_55) + /sizeof(asn_DEF_ext1_tags_55[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_55, /* Same as above */ + sizeof(asn_DEF_ext1_tags_55) + /sizeof(asn_DEF_ext1_tags_55[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_55, + 1, /* Elements count */ + &asn_SPC_ext1_specs_55 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_partB_r14_19[] = { + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partB_r14, nprs_Period_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nprs_Period_r14_20, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nprs-Period-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partB_r14, nprs_startSF_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nprs_startSF_r14_27, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nprs-startSF-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__partB_r14, nprs_NumSF_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nprs_NumSF_r14_37, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nprs-NumSF-r14" + }, + { ATF_POINTER, 2, offsetof(struct NPRS_Info_r14__partB_r14, nprs_MutingInfoB_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nprs_MutingInfoB_r14_48, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nprs-MutingInfoB-r14" + }, + { ATF_POINTER, 1, offsetof(struct NPRS_Info_r14__partB_r14, ext1), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext1_55, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_partB_r14_oms_19[] = { 3, 4 }; +static const ber_tlv_tag_t asn_DEF_partB_r14_tags_19[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_partB_r14_tag2el_19[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nprs-Period-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nprs-startSF-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nprs-NumSF-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nprs-MutingInfoB-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext1 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_partB_r14_specs_19 = { + sizeof(struct NPRS_Info_r14__partB_r14), + offsetof(struct NPRS_Info_r14__partB_r14, _asn_ctx), + asn_MAP_partB_r14_tag2el_19, + 5, /* Count of tags in the map */ + asn_MAP_partB_r14_oms_19, /* Optional members */ + 1, 1, /* Root/Additions */ + 4, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_partB_r14_19 = { + "partB-r14", + "partB-r14", + &asn_OP_SEQUENCE, + asn_DEF_partB_r14_tags_19, + sizeof(asn_DEF_partB_r14_tags_19) + /sizeof(asn_DEF_partB_r14_tags_19[0]) - 1, /* 1 */ + asn_DEF_partB_r14_tags_19, /* Same as above */ + sizeof(asn_DEF_partB_r14_tags_19) + /sizeof(asn_DEF_partB_r14_tags_19[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_partB_r14_19, + 5, /* Elements count */ + &asn_SPC_partB_r14_specs_19 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nprsBitmap_r15_63[] = { + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprsBitmap_r15, choice.subframePattern10_TDD_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_subframePattern10_TDD_r15_constr_64, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_subframePattern10_TDD_r15_constraint_63 + }, + 0, 0, /* No default value */ + "subframePattern10-TDD-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprsBitmap_r15, choice.subframePattern40_TDD_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_subframePattern40_TDD_r15_constr_65, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_subframePattern40_TDD_r15_constraint_63 + }, + 0, 0, /* No default value */ + "subframePattern40-TDD-r15" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nprsBitmap_r15_tag2el_63[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* subframePattern10-TDD-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* subframePattern40-TDD-r15 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nprsBitmap_r15_specs_63 = { + sizeof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprsBitmap_r15), + offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprsBitmap_r15, _asn_ctx), + offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprsBitmap_r15, present), + sizeof(((struct NPRS_Info_r14__ext1__partA_TDD_r15__nprsBitmap_r15 *)0)->present), + asn_MAP_nprsBitmap_r15_tag2el_63, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nprsBitmap_r15_63 = { + "nprsBitmap-r15", + "nprsBitmap-r15", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nprsBitmap_r15_constr_63, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nprsBitmap_r15_63, + 2, /* Elements count */ + &asn_SPC_nprsBitmap_r15_specs_63 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nprs_MutingInfoA_r15_67[] = { + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprs_MutingInfoA_r15, choice.po2_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po2_r15_constr_68, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po2_r15_constraint_67 + }, + 0, 0, /* No default value */ + "po2-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprs_MutingInfoA_r15, choice.po4_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po4_r15_constr_69, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po4_r15_constraint_67 + }, + 0, 0, /* No default value */ + "po4-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprs_MutingInfoA_r15, choice.po8_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po8_r15_constr_70, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po8_r15_constraint_67 + }, + 0, 0, /* No default value */ + "po8-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprs_MutingInfoA_r15, choice.po16_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po16_r15_constr_71, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po16_r15_constraint_67 + }, + 0, 0, /* No default value */ + "po16-r15" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nprs_MutingInfoA_r15_tag2el_67[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* po2-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* po4-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* po8-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* po16-r15 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nprs_MutingInfoA_r15_specs_67 = { + sizeof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprs_MutingInfoA_r15), + offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprs_MutingInfoA_r15, _asn_ctx), + offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15__nprs_MutingInfoA_r15, present), + sizeof(((struct NPRS_Info_r14__ext1__partA_TDD_r15__nprs_MutingInfoA_r15 *)0)->present), + asn_MAP_nprs_MutingInfoA_r15_tag2el_67, + 4, /* Count of tags in the map */ + 0, 0, + 4 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nprs_MutingInfoA_r15_67 = { + "nprs-MutingInfoA-r15", + "nprs-MutingInfoA-r15", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nprs_MutingInfoA_r15_constr_67, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nprs_MutingInfoA_r15_67, + 4, /* Elements count */ + &asn_SPC_nprs_MutingInfoA_r15_specs_67 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_partA_TDD_r15_62[] = { + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15, nprsBitmap_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nprsBitmap_r15_63, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nprsBitmap-r15" + }, + { ATF_POINTER, 1, offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15, nprs_MutingInfoA_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nprs_MutingInfoA_r15_67, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nprs-MutingInfoA-r15" + }, +}; +static const int asn_MAP_partA_TDD_r15_oms_62[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_partA_TDD_r15_tags_62[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_partA_TDD_r15_tag2el_62[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nprsBitmap-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nprs-MutingInfoA-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_partA_TDD_r15_specs_62 = { + sizeof(struct NPRS_Info_r14__ext1__partA_TDD_r15), + offsetof(struct NPRS_Info_r14__ext1__partA_TDD_r15, _asn_ctx), + asn_MAP_partA_TDD_r15_tag2el_62, + 2, /* Count of tags in the map */ + asn_MAP_partA_TDD_r15_oms_62, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_partA_TDD_r15_62 = { + "partA-TDD-r15", + "partA-TDD-r15", + &asn_OP_SEQUENCE, + asn_DEF_partA_TDD_r15_tags_62, + sizeof(asn_DEF_partA_TDD_r15_tags_62) + /sizeof(asn_DEF_partA_TDD_r15_tags_62[0]) - 1, /* 1 */ + asn_DEF_partA_TDD_r15_tags_62, /* Same as above */ + sizeof(asn_DEF_partA_TDD_r15_tags_62) + /sizeof(asn_DEF_partA_TDD_r15_tags_62[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_partA_TDD_r15_62, + 2, /* Elements count */ + &asn_SPC_partA_TDD_r15_specs_62 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_61[] = { + { ATF_POINTER, 1, offsetof(struct NPRS_Info_r14__ext1, partA_TDD_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_partA_TDD_r15_62, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "partA-TDD-r15" + }, +}; +static const int asn_MAP_ext1_oms_61[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_61[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_61[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* partA-TDD-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_61 = { + sizeof(struct NPRS_Info_r14__ext1), + offsetof(struct NPRS_Info_r14__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_61, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_61, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_61 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_61, + sizeof(asn_DEF_ext1_tags_61) + /sizeof(asn_DEF_ext1_tags_61[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_61, /* Same as above */ + sizeof(asn_DEF_ext1_tags_61) + /sizeof(asn_DEF_ext1_tags_61[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_61, + 1, /* Elements count */ + &asn_SPC_ext1_specs_61 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NPRS_Info_r14_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NPRS_Info_r14, operationModeInfoNPRS_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_operationModeInfoNPRS_r14_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "operationModeInfoNPRS-r14" + }, + { ATF_POINTER, 6, offsetof(struct NPRS_Info_r14, nprs_carrier_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CarrierFreq_NB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nprs-carrier-r14" + }, + { ATF_POINTER, 5, offsetof(struct NPRS_Info_r14, nprsSequenceInfo_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nprsSequenceInfo_r14_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nprsSequenceInfo_r14_constraint_1 + }, + 0, 0, /* No default value */ + "nprsSequenceInfo-r14" + }, + { ATF_POINTER, 4, offsetof(struct NPRS_Info_r14, nprsID_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nprsID_r14_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nprsID_r14_constraint_1 + }, + 0, 0, /* No default value */ + "nprsID-r14" + }, + { ATF_POINTER, 3, offsetof(struct NPRS_Info_r14, partA_r14), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_partA_r14_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "partA-r14" + }, + { ATF_POINTER, 2, offsetof(struct NPRS_Info_r14, partB_r14), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_partB_r14_19, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "partB-r14" + }, + { ATF_POINTER, 1, offsetof(struct NPRS_Info_r14, ext1), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext1_61, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NPRS_Info_r14_oms_1[] = { 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_NPRS_Info_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NPRS_Info_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* operationModeInfoNPRS-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nprs-carrier-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nprsSequenceInfo-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nprsID-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* partA-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* partB-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NPRS_Info_r14_specs_1 = { + sizeof(struct NPRS_Info_r14), + offsetof(struct NPRS_Info_r14, _asn_ctx), + asn_MAP_NPRS_Info_r14_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_NPRS_Info_r14_oms_1, /* Optional members */ + 5, 1, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NPRS_Info_r14 = { + "NPRS-Info-r14", + "NPRS-Info-r14", + &asn_OP_SEQUENCE, + asn_DEF_NPRS_Info_r14_tags_1, + sizeof(asn_DEF_NPRS_Info_r14_tags_1) + /sizeof(asn_DEF_NPRS_Info_r14_tags_1[0]), /* 1 */ + asn_DEF_NPRS_Info_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_NPRS_Info_r14_tags_1) + /sizeof(asn_DEF_NPRS_Info_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NPRS_Info_r14_1, + 7, /* Elements count */ + &asn_SPC_NPRS_Info_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NPRS-Info-r14.h b/asn.1/lpp_generated/NPRS-Info-r14.h similarity index 95% rename from asn.1/generated/NPRS-Info-r14.h rename to asn.1/lpp_generated/NPRS-Info-r14.h index 65c39b6c..518d750a 100644 --- a/asn.1/generated/NPRS-Info-r14.h +++ b/asn.1/lpp_generated/NPRS-Info-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NPRS_Info_r14_H_ @@ -115,9 +115,9 @@ struct CarrierFreq_NB_r14; /* NPRS-Info-r14 */ typedef struct NPRS_Info_r14 { long operationModeInfoNPRS_r14; - struct CarrierFreq_NB_r14 *nprs_carrier_r14 /* OPTIONAL */; - long *nprsSequenceInfo_r14 /* OPTIONAL */; - long *nprsID_r14 /* OPTIONAL */; + struct CarrierFreq_NB_r14 *nprs_carrier_r14; /* OPTIONAL */ + long *nprsSequenceInfo_r14; /* OPTIONAL */ + long *nprsID_r14; /* OPTIONAL */ struct NPRS_Info_r14__partA_r14 { struct NPRS_Info_r14__partA_r14__nprsBitmap_r14 { NPRS_Info_r14__partA_r14__nprsBitmap_r14_PR present; @@ -178,7 +178,7 @@ typedef struct NPRS_Info_r14 { * possible extensions are below. */ struct NPRS_Info_r14__partB_r14__ext1 { - long *sib1_SF_TDD_r15 /* OPTIONAL */; + long *sib1_SF_TDD_r15; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -254,8 +254,5 @@ extern asn_TYPE_member_t asn_MBR_NPRS_Info_r14_1[7]; } #endif -/* Referred external types */ -#include "CarrierFreq-NB-r14.h" - #endif /* _NPRS_Info_r14_H_ */ #include diff --git a/asn.1/lpp_generated/NR-AdditionalPath-r16.c b/asn.1/lpp_generated/NR-AdditionalPath-r16.c new file mode 100644 index 00000000..bbd9fc0f --- /dev/null +++ b/asn.1/lpp_generated/NR-AdditionalPath-r16.c @@ -0,0 +1,842 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-AdditionalPath-r16.h" + +#include "NR-TimingQuality-r16.h" +static int +memb_k0_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16351L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k1_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8176L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k2_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4088L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k3_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2044L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k4_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1022L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k5_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus6_r18_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1046401L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus5_r18_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 523201L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus4_r18_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 261601L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus3_r18_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 130801L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus2_r18_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65401L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus1_r18_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 32701L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_RSRPP_r17_constraint_18(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 126L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k0_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 16351 } /* (0..16351) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k1_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, 0, 8176 } /* (0..8176) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k2_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4088 } /* (0..4088) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k3_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 2044 } /* (0..2044) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k4_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1022 } /* (0..1022) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k5_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus6_r18_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 20, -1, 0, 1046401 } /* (0..1046401) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus5_r18_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 19, -1, 0, 523201 } /* (0..523201) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus4_r18_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 18, -1, 0, 261601 } /* (0..261601) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus3_r18_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 0, 130801 } /* (0..130801) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus2_r18_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65401 } /* (0..65401) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus1_r18_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, 0, 32701 } /* (0..32701) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_RelativeTimeDifference_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_RSRPP_r17_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 126 } /* (0..126) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_RelativeTimeDifference_r16_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16, choice.k0_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k0_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k0_r16_constraint_2 + }, + 0, 0, /* No default value */ + "k0-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16, choice.k1_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k1_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k1_r16_constraint_2 + }, + 0, 0, /* No default value */ + "k1-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16, choice.k2_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k2_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k2_r16_constraint_2 + }, + 0, 0, /* No default value */ + "k2-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16, choice.k3_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k3_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k3_r16_constraint_2 + }, + 0, 0, /* No default value */ + "k3-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16, choice.k4_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k4_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k4_r16_constraint_2 + }, + 0, 0, /* No default value */ + "k4-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16, choice.k5_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k5_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k5_r16_constraint_2 + }, + 0, 0, /* No default value */ + "k5-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16, choice.kMinus6_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus6_r18_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus6_r18_constraint_2 + }, + 0, 0, /* No default value */ + "kMinus6-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16, choice.kMinus5_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus5_r18_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus5_r18_constraint_2 + }, + 0, 0, /* No default value */ + "kMinus5-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16, choice.kMinus4_r18), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus4_r18_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus4_r18_constraint_2 + }, + 0, 0, /* No default value */ + "kMinus4-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16, choice.kMinus3_r18), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus3_r18_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus3_r18_constraint_2 + }, + 0, 0, /* No default value */ + "kMinus3-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16, choice.kMinus2_r18), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus2_r18_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus2_r18_constraint_2 + }, + 0, 0, /* No default value */ + "kMinus2-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16, choice.kMinus1_r18), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus1_r18_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus1_r18_constraint_2 + }, + 0, 0, /* No default value */ + "kMinus1-r18" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_RelativeTimeDifference_r16_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* k0-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* k1-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* k2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* k3-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* k4-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* k5-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* kMinus6-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* kMinus5-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* kMinus4-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* kMinus3-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* kMinus2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* kMinus1-r18 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nr_RelativeTimeDifference_r16_specs_2 = { + sizeof(struct NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16), + offsetof(struct NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16, _asn_ctx), + offsetof(struct NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16, present), + sizeof(((struct NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16 *)0)->present), + asn_MAP_nr_RelativeTimeDifference_r16_tag2el_2, + 12, /* Count of tags in the map */ + 0, 0, + 6 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_RelativeTimeDifference_r16_2 = { + "nr-RelativeTimeDifference-r16", + "nr-RelativeTimeDifference-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_RelativeTimeDifference_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nr_RelativeTimeDifference_r16_2, + 12, /* Elements count */ + &asn_SPC_nr_RelativeTimeDifference_r16_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_18[] = { + { ATF_POINTER, 1, offsetof(struct NR_AdditionalPath_r16__ext1, nr_DL_PRS_RSRPP_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_RSRPP_r17_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_RSRPP_r17_constraint_18 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RSRPP-r17" + }, +}; +static const int asn_MAP_ext1_oms_18[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_18[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-DL-PRS-RSRPP-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_18 = { + sizeof(struct NR_AdditionalPath_r16__ext1), + offsetof(struct NR_AdditionalPath_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_18, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_18, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_18 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_18, + sizeof(asn_DEF_ext1_tags_18) + /sizeof(asn_DEF_ext1_tags_18[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_18, /* Same as above */ + sizeof(asn_DEF_ext1_tags_18) + /sizeof(asn_DEF_ext1_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_18, + 1, /* Elements count */ + &asn_SPC_ext1_specs_18 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_AdditionalPath_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_AdditionalPath_r16, nr_RelativeTimeDifference_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nr_RelativeTimeDifference_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-RelativeTimeDifference-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_AdditionalPath_r16, nr_PathQuality_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimingQuality_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PathQuality-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_AdditionalPath_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_AdditionalPath_r16_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_NR_AdditionalPath_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_AdditionalPath_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-RelativeTimeDifference-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PathQuality-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_AdditionalPath_r16_specs_1 = { + sizeof(struct NR_AdditionalPath_r16), + offsetof(struct NR_AdditionalPath_r16, _asn_ctx), + asn_MAP_NR_AdditionalPath_r16_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_NR_AdditionalPath_r16_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_AdditionalPath_r16 = { + "NR-AdditionalPath-r16", + "NR-AdditionalPath-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_AdditionalPath_r16_tags_1, + sizeof(asn_DEF_NR_AdditionalPath_r16_tags_1) + /sizeof(asn_DEF_NR_AdditionalPath_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_AdditionalPath_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_AdditionalPath_r16_tags_1) + /sizeof(asn_DEF_NR_AdditionalPath_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_AdditionalPath_r16_1, + 3, /* Elements count */ + &asn_SPC_NR_AdditionalPath_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-AdditionalPath-r16.h b/asn.1/lpp_generated/NR-AdditionalPath-r16.h new file mode 100644 index 00000000..a6252e56 --- /dev/null +++ b/asn.1/lpp_generated/NR-AdditionalPath-r16.h @@ -0,0 +1,96 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_AdditionalPath_r16_H_ +#define _NR_AdditionalPath_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16_PR { + NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16_PR_NOTHING, /* No components present */ + NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16_PR_k0_r16, + NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16_PR_k1_r16, + NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16_PR_k2_r16, + NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16_PR_k3_r16, + NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16_PR_k4_r16, + NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16_PR_k5_r16, + /* Extensions may appear below */ + NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16_PR_kMinus6_r18, + NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16_PR_kMinus5_r18, + NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16_PR_kMinus4_r18, + NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16_PR_kMinus3_r18, + NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16_PR_kMinus2_r18, + NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16_PR_kMinus1_r18 +} NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16_PR; + +/* Forward declarations */ +struct NR_TimingQuality_r16; + +/* NR-AdditionalPath-r16 */ +typedef struct NR_AdditionalPath_r16 { + struct NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16 { + NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16_PR present; + union NR_AdditionalPath_r16__nr_RelativeTimeDifference_r16_u { + long k0_r16; + long k1_r16; + long k2_r16; + long k3_r16; + long k4_r16; + long k5_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + long kMinus6_r18; + long kMinus5_r18; + long kMinus4_r18; + long kMinus3_r18; + long kMinus2_r18; + long kMinus1_r18; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } nr_RelativeTimeDifference_r16; + struct NR_TimingQuality_r16 *nr_PathQuality_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_AdditionalPath_r16__ext1 { + long *nr_DL_PRS_RSRPP_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_AdditionalPath_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_AdditionalPath_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_AdditionalPath_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_AdditionalPath_r16_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_AdditionalPath_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-AdditionalPathList-r16.c b/asn.1/lpp_generated/NR-AdditionalPathList-r16.c new file mode 100644 index 00000000..4f0f49e5 --- /dev/null +++ b/asn.1/lpp_generated/NR-AdditionalPathList-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-AdditionalPathList-r16.h" + +#include "NR-AdditionalPath-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_AdditionalPathList_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_AdditionalPathList_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_AdditionalPath_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_AdditionalPathList_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_AdditionalPathList_r16_specs_1 = { + sizeof(struct NR_AdditionalPathList_r16), + offsetof(struct NR_AdditionalPathList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_AdditionalPathList_r16 = { + "NR-AdditionalPathList-r16", + "NR-AdditionalPathList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_AdditionalPathList_r16_tags_1, + sizeof(asn_DEF_NR_AdditionalPathList_r16_tags_1) + /sizeof(asn_DEF_NR_AdditionalPathList_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_AdditionalPathList_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_AdditionalPathList_r16_tags_1) + /sizeof(asn_DEF_NR_AdditionalPathList_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_AdditionalPathList_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_AdditionalPathList_r16_1, + 1, /* Single element */ + &asn_SPC_NR_AdditionalPathList_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-AdditionalPathList-r16.h b/asn.1/lpp_generated/NR-AdditionalPathList-r16.h similarity index 80% rename from asn.1/generated/NR-AdditionalPathList-r16.h rename to asn.1/lpp_generated/NR-AdditionalPathList-r16.h index ca0d3285..3e67046b 100644 --- a/asn.1/generated/NR-AdditionalPathList-r16.h +++ b/asn.1/lpp_generated/NR-AdditionalPathList-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_AdditionalPathList_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_NR_AdditionalPathList_r16_constr_1; } #endif -/* Referred external types */ -#include "NR-AdditionalPath-r16.h" - #endif /* _NR_AdditionalPathList_r16_H_ */ #include diff --git a/asn.1/lpp_generated/NR-AdditionalPathListExt-r17.c b/asn.1/lpp_generated/NR-AdditionalPathListExt-r17.c new file mode 100644 index 00000000..7e7dd8a7 --- /dev/null +++ b/asn.1/lpp_generated/NR-AdditionalPathListExt-r17.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-AdditionalPathListExt-r17.h" + +#include "NR-AdditionalPath-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_AdditionalPathListExt_r17_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_AdditionalPathListExt_r17_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_AdditionalPath_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_AdditionalPathListExt_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_AdditionalPathListExt_r17_specs_1 = { + sizeof(struct NR_AdditionalPathListExt_r17), + offsetof(struct NR_AdditionalPathListExt_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_AdditionalPathListExt_r17 = { + "NR-AdditionalPathListExt-r17", + "NR-AdditionalPathListExt-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_AdditionalPathListExt_r17_tags_1, + sizeof(asn_DEF_NR_AdditionalPathListExt_r17_tags_1) + /sizeof(asn_DEF_NR_AdditionalPathListExt_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_AdditionalPathListExt_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_AdditionalPathListExt_r17_tags_1) + /sizeof(asn_DEF_NR_AdditionalPathListExt_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_AdditionalPathListExt_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_AdditionalPathListExt_r17_1, + 1, /* Single element */ + &asn_SPC_NR_AdditionalPathListExt_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-AdditionalPathListExt-r17.h b/asn.1/lpp_generated/NR-AdditionalPathListExt-r17.h new file mode 100644 index 00000000..c8be62e9 --- /dev/null +++ b/asn.1/lpp_generated/NR-AdditionalPathListExt-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_AdditionalPathListExt_r17_H_ +#define _NR_AdditionalPathListExt_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_AdditionalPath_r16; + +/* NR-AdditionalPathListExt-r17 */ +typedef struct NR_AdditionalPathListExt_r17 { + A_SEQUENCE_OF(struct NR_AdditionalPath_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_AdditionalPathListExt_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_AdditionalPathListExt_r17; +extern asn_SET_OF_specifics_t asn_SPC_NR_AdditionalPathListExt_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_AdditionalPathListExt_r17_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_AdditionalPathListExt_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_AdditionalPathListExt_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-AggregatedDL-PRS-ResourceSetID-Element-r18.c b/asn.1/lpp_generated/NR-AggregatedDL-PRS-ResourceSetID-Element-r18.c new file mode 100644 index 00000000..7a22d171 --- /dev/null +++ b/asn.1/lpp_generated/NR-AggregatedDL-PRS-ResourceSetID-Element-r18.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-AggregatedDL-PRS-ResourceSetID-Element-r18.h" + +static int +memb_dl_PRS_ID_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ID_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_AggregatedDL_PRS_ResourceSetID_Element_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_AggregatedDL_PRS_ResourceSetID_Element_r18, dl_PRS_ID_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ID_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ID_r18_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ID-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_AggregatedDL_PRS_ResourceSetID_Element_r18, nr_DL_PRS_ResourceSetID_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceSetID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceSetID-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_AggregatedDL_PRS_ResourceSetID_Element_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_AggregatedDL_PRS_ResourceSetID_Element_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ID-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-DL-PRS-ResourceSetID-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_AggregatedDL_PRS_ResourceSetID_Element_r18_specs_1 = { + sizeof(struct NR_AggregatedDL_PRS_ResourceSetID_Element_r18), + offsetof(struct NR_AggregatedDL_PRS_ResourceSetID_Element_r18, _asn_ctx), + asn_MAP_NR_AggregatedDL_PRS_ResourceSetID_Element_r18_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_AggregatedDL_PRS_ResourceSetID_Element_r18 = { + "NR-AggregatedDL-PRS-ResourceSetID-Element-r18", + "NR-AggregatedDL-PRS-ResourceSetID-Element-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_AggregatedDL_PRS_ResourceSetID_Element_r18_tags_1, + sizeof(asn_DEF_NR_AggregatedDL_PRS_ResourceSetID_Element_r18_tags_1) + /sizeof(asn_DEF_NR_AggregatedDL_PRS_ResourceSetID_Element_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_AggregatedDL_PRS_ResourceSetID_Element_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_AggregatedDL_PRS_ResourceSetID_Element_r18_tags_1) + /sizeof(asn_DEF_NR_AggregatedDL_PRS_ResourceSetID_Element_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_AggregatedDL_PRS_ResourceSetID_Element_r18_1, + 2, /* Elements count */ + &asn_SPC_NR_AggregatedDL_PRS_ResourceSetID_Element_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-AggregatedDL-PRS-ResourceSetID-Element-r18.h b/asn.1/lpp_generated/NR-AggregatedDL-PRS-ResourceSetID-Element-r18.h new file mode 100644 index 00000000..22587330 --- /dev/null +++ b/asn.1/lpp_generated/NR-AggregatedDL-PRS-ResourceSetID-Element-r18.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_AggregatedDL_PRS_ResourceSetID_Element_r18_H_ +#define _NR_AggregatedDL_PRS_ResourceSetID_Element_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include "NR-DL-PRS-ResourceSetID-r16.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-AggregatedDL-PRS-ResourceSetID-Element-r18 */ +typedef struct NR_AggregatedDL_PRS_ResourceSetID_Element_r18 { + long dl_PRS_ID_r18; + NR_DL_PRS_ResourceSetID_r16_t nr_DL_PRS_ResourceSetID_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_AggregatedDL_PRS_ResourceSetID_Element_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_AggregatedDL_PRS_ResourceSetID_Element_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_AggregatedDL_PRS_ResourceSetID_Element_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_AggregatedDL_PRS_ResourceSetID_Element_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_AggregatedDL_PRS_ResourceSetID_Element_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-Cell-IDs-r17.c b/asn.1/lpp_generated/NR-Cell-IDs-r17.c new file mode 100644 index 00000000..d3489d22 --- /dev/null +++ b/asn.1/lpp_generated/NR-Cell-IDs-r17.c @@ -0,0 +1,105 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-Cell-IDs-r17.h" + +#include "NCGI-r15.h" +asn_TYPE_member_t asn_MBR_NR_Cell_IDs_r17_1[] = { + { ATF_POINTER, 3, offsetof(struct NR_Cell_IDs_r17, nr_CellGlobalID_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-CellGlobalID-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_Cell_IDs_r17, nr_PhysCellID_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_Cell_IDs_r17, nr_ARFCN_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ARFCN-r17" + }, +}; +static const int asn_MAP_NR_Cell_IDs_r17_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_NR_Cell_IDs_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_Cell_IDs_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-CellGlobalID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PhysCellID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-ARFCN-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_Cell_IDs_r17_specs_1 = { + sizeof(struct NR_Cell_IDs_r17), + offsetof(struct NR_Cell_IDs_r17, _asn_ctx), + asn_MAP_NR_Cell_IDs_r17_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_NR_Cell_IDs_r17_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_Cell_IDs_r17 = { + "NR-Cell-IDs-r17", + "NR-Cell-IDs-r17", + &asn_OP_SEQUENCE, + asn_DEF_NR_Cell_IDs_r17_tags_1, + sizeof(asn_DEF_NR_Cell_IDs_r17_tags_1) + /sizeof(asn_DEF_NR_Cell_IDs_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_Cell_IDs_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_Cell_IDs_r17_tags_1) + /sizeof(asn_DEF_NR_Cell_IDs_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_Cell_IDs_r17_1, + 3, /* Elements count */ + &asn_SPC_NR_Cell_IDs_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-Cell-IDs-r17.h b/asn.1/lpp_generated/NR-Cell-IDs-r17.h new file mode 100644 index 00000000..81924cf2 --- /dev/null +++ b/asn.1/lpp_generated/NR-Cell-IDs-r17.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_Cell_IDs_r17_H_ +#define _NR_Cell_IDs_r17_H_ + + +#include + +/* Including external dependencies */ +#include "NR-PhysCellID-r16.h" +#include "ARFCN-ValueNR-r15.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NCGI_r15; + +/* NR-Cell-IDs-r17 */ +typedef struct NR_Cell_IDs_r17 { + struct NCGI_r15 *nr_CellGlobalID_r17; /* OPTIONAL */ + NR_PhysCellID_r16_t *nr_PhysCellID_r17; /* OPTIONAL */ + ARFCN_ValueNR_r15_t *nr_ARFCN_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_Cell_IDs_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_Cell_IDs_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_Cell_IDs_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_Cell_IDs_r17_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_Cell_IDs_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementElement-r16.c b/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementElement-r16.c new file mode 100644 index 00000000..f06cbcf9 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementElement-r16.c @@ -0,0 +1,204 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-AoD-AdditionalMeasurementElement-r16.h" + +static int +memb_nr_DL_PRS_RSRP_ResultDiff_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 30L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_RxBeamIndex_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 8L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_RSRP_ResultDiff_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 30 } /* (0..30) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_RxBeamIndex_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_AoD_AdditionalMeasurementElement_r16_1[] = { + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r16, nr_DL_PRS_ResourceID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceID-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r16, nr_DL_PRS_ResourceSetID_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceSetID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceSetID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r16, nr_TimeStamp_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimeStamp_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-TimeStamp-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r16, nr_DL_PRS_RSRP_ResultDiff_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_RSRP_ResultDiff_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_RSRP_ResultDiff_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RSRP-ResultDiff-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r16, nr_DL_PRS_RxBeamIndex_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_RxBeamIndex_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_RxBeamIndex_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RxBeamIndex-r16" + }, +}; +static const int asn_MAP_NR_DL_AoD_AdditionalMeasurementElement_r16_oms_1[] = { 0, 1, 4 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_AdditionalMeasurementElement_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-ResourceID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-ResourceSetID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-TimeStamp-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-DL-PRS-RSRP-ResultDiff-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* nr-DL-PRS-RxBeamIndex-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_AdditionalMeasurementElement_r16_specs_1 = { + sizeof(struct NR_DL_AoD_AdditionalMeasurementElement_r16), + offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r16, _asn_ctx), + asn_MAP_NR_DL_AoD_AdditionalMeasurementElement_r16_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_NR_DL_AoD_AdditionalMeasurementElement_r16_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16 = { + "NR-DL-AoD-AdditionalMeasurementElement-r16", + "NR-DL-AoD-AdditionalMeasurementElement-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16_tags_1, + sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_AoD_AdditionalMeasurementElement_r16_1, + 5, /* Elements count */ + &asn_SPC_NR_DL_AoD_AdditionalMeasurementElement_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementElement-r16.h b/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementElement-r16.h new file mode 100644 index 00000000..fb27c2af --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementElement-r16.h @@ -0,0 +1,51 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_AoD_AdditionalMeasurementElement_r16_H_ +#define _NR_DL_AoD_AdditionalMeasurementElement_r16_H_ + + +#include + +/* Including external dependencies */ +#include "NR-DL-PRS-ResourceID-r16.h" +#include "NR-DL-PRS-ResourceSetID-r16.h" +#include "NR-TimeStamp-r16.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-DL-AoD-AdditionalMeasurementElement-r16 */ +typedef struct NR_DL_AoD_AdditionalMeasurementElement_r16 { + NR_DL_PRS_ResourceID_r16_t *nr_DL_PRS_ResourceID_r16; /* OPTIONAL */ + NR_DL_PRS_ResourceSetID_r16_t *nr_DL_PRS_ResourceSetID_r16; /* OPTIONAL */ + NR_TimeStamp_r16_t nr_TimeStamp_r16; + long nr_DL_PRS_RSRP_ResultDiff_r16; + long *nr_DL_PRS_RxBeamIndex_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_AoD_AdditionalMeasurementElement_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_AdditionalMeasurementElement_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_AdditionalMeasurementElement_r16_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_AoD_AdditionalMeasurementElement_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementElement-r17.c b/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementElement-r17.c new file mode 100644 index 00000000..36b0d1cf --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementElement-r17.c @@ -0,0 +1,273 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-AoD-AdditionalMeasurementElement-r17.h" + +#include "LOS-NLOS-Indicator-r17.h" +static int +memb_nr_DL_PRS_RSRP_ResultDiff_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 30L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_RxBeamIndex_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 8L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_FirstPathRSRP_ResultDiff_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 61L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_RSRP_ResultDiff_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 30 } /* (0..30) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_RxBeamIndex_r17_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_FirstPathRSRP_ResultDiff_r17_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 61 } /* (0..61) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_AoD_AdditionalMeasurementElement_r17_1[] = { + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r17, nr_DL_PRS_ResourceID_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceID-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r17, nr_DL_PRS_ResourceSetID_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceSetID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceSetID-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r17, nr_TimeStamp_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimeStamp_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-TimeStamp-r17" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r17, nr_DL_PRS_RSRP_ResultDiff_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_RSRP_ResultDiff_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_RSRP_ResultDiff_r17_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RSRP-ResultDiff-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r17, nr_DL_PRS_RxBeamIndex_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_RxBeamIndex_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_RxBeamIndex_r17_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RxBeamIndex-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r17, nr_DL_PRS_FirstPathRSRP_ResultDiff_r17), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_FirstPathRSRP_ResultDiff_r17_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_FirstPathRSRP_ResultDiff_r17_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-FirstPathRSRP-ResultDiff-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r17, nr_los_nlos_IndicatorPerResource_r17), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_Indicator_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-los-nlos-IndicatorPerResource-r17" + }, +}; +static const int asn_MAP_NR_DL_AoD_AdditionalMeasurementElement_r17_oms_1[] = { 0, 1, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_AdditionalMeasurementElement_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-ResourceID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-ResourceSetID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-TimeStamp-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-DL-PRS-RSRP-ResultDiff-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-DL-PRS-RxBeamIndex-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nr-DL-PRS-FirstPathRSRP-ResultDiff-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* nr-los-nlos-IndicatorPerResource-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_AdditionalMeasurementElement_r17_specs_1 = { + sizeof(struct NR_DL_AoD_AdditionalMeasurementElement_r17), + offsetof(struct NR_DL_AoD_AdditionalMeasurementElement_r17, _asn_ctx), + asn_MAP_NR_DL_AoD_AdditionalMeasurementElement_r17_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_NR_DL_AoD_AdditionalMeasurementElement_r17_oms_1, /* Optional members */ + 6, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r17 = { + "NR-DL-AoD-AdditionalMeasurementElement-r17", + "NR-DL-AoD-AdditionalMeasurementElement-r17", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r17_tags_1, + sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r17_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r17_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_AoD_AdditionalMeasurementElement_r17_1, + 7, /* Elements count */ + &asn_SPC_NR_DL_AoD_AdditionalMeasurementElement_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementElement-r17.h b/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementElement-r17.h new file mode 100644 index 00000000..04234762 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementElement-r17.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_AoD_AdditionalMeasurementElement_r17_H_ +#define _NR_DL_AoD_AdditionalMeasurementElement_r17_H_ + + +#include + +/* Including external dependencies */ +#include "NR-DL-PRS-ResourceID-r16.h" +#include "NR-DL-PRS-ResourceSetID-r16.h" +#include "NR-TimeStamp-r16.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct LOS_NLOS_Indicator_r17; + +/* NR-DL-AoD-AdditionalMeasurementElement-r17 */ +typedef struct NR_DL_AoD_AdditionalMeasurementElement_r17 { + NR_DL_PRS_ResourceID_r16_t *nr_DL_PRS_ResourceID_r17; /* OPTIONAL */ + NR_DL_PRS_ResourceSetID_r16_t *nr_DL_PRS_ResourceSetID_r17; /* OPTIONAL */ + NR_TimeStamp_r16_t nr_TimeStamp_r17; + long *nr_DL_PRS_RSRP_ResultDiff_r17; /* OPTIONAL */ + long *nr_DL_PRS_RxBeamIndex_r17; /* OPTIONAL */ + long *nr_DL_PRS_FirstPathRSRP_ResultDiff_r17; /* OPTIONAL */ + struct LOS_NLOS_Indicator_r17 *nr_los_nlos_IndicatorPerResource_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_AoD_AdditionalMeasurementElement_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_AdditionalMeasurementElement_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_AdditionalMeasurementElement_r17_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_AoD_AdditionalMeasurementElement_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurements-r16.c b/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurements-r16.c new file mode 100644 index 00000000..648cbc00 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurements-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-AoD-AdditionalMeasurements-r16.h" + +#include "NR-DL-AoD-AdditionalMeasurementElement-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_AoD_AdditionalMeasurements_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 7 } /* (SIZE(1..7)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_AoD_AdditionalMeasurements_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_AdditionalMeasurements_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_DL_AoD_AdditionalMeasurements_r16_specs_1 = { + sizeof(struct NR_DL_AoD_AdditionalMeasurements_r16), + offsetof(struct NR_DL_AoD_AdditionalMeasurements_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_AdditionalMeasurements_r16 = { + "NR-DL-AoD-AdditionalMeasurements-r16", + "NR-DL-AoD-AdditionalMeasurements-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_DL_AoD_AdditionalMeasurements_r16_tags_1, + sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurements_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurements_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_AoD_AdditionalMeasurements_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurements_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurements_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_AoD_AdditionalMeasurements_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_DL_AoD_AdditionalMeasurements_r16_1, + 1, /* Single element */ + &asn_SPC_NR_DL_AoD_AdditionalMeasurements_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-DL-AoD-AdditionalMeasurements-r16.h b/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurements-r16.h similarity index 82% rename from asn.1/generated/NR-DL-AoD-AdditionalMeasurements-r16.h rename to asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurements-r16.h index b16e9229..39927d73 100644 --- a/asn.1/generated/NR-DL-AoD-AdditionalMeasurements-r16.h +++ b/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurements-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_DL_AoD_AdditionalMeasurements_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_NR_DL_AoD_AdditionalMeasurements_r16_c } #endif -/* Referred external types */ -#include "NR-DL-AoD-AdditionalMeasurementElement-r16.h" - #endif /* _NR_DL_AoD_AdditionalMeasurements_r16_H_ */ #include diff --git a/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementsExt-r17.c b/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementsExt-r17.c new file mode 100644 index 00000000..06eb3603 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementsExt-r17.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-AoD-AdditionalMeasurementsExt-r17.h" + +#include "NR-DL-AoD-AdditionalMeasurementElement-r17.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_AoD_AdditionalMeasurementsExt_r17_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 23 } /* (SIZE(1..23)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_AoD_AdditionalMeasurementsExt_r17_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_AoD_AdditionalMeasurementElement_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_AdditionalMeasurementsExt_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_DL_AoD_AdditionalMeasurementsExt_r17_specs_1 = { + sizeof(struct NR_DL_AoD_AdditionalMeasurementsExt_r17), + offsetof(struct NR_DL_AoD_AdditionalMeasurementsExt_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_AdditionalMeasurementsExt_r17 = { + "NR-DL-AoD-AdditionalMeasurementsExt-r17", + "NR-DL-AoD-AdditionalMeasurementsExt-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_DL_AoD_AdditionalMeasurementsExt_r17_tags_1, + sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurementsExt_r17_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurementsExt_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_AoD_AdditionalMeasurementsExt_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurementsExt_r17_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_AdditionalMeasurementsExt_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_AoD_AdditionalMeasurementsExt_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_DL_AoD_AdditionalMeasurementsExt_r17_1, + 1, /* Single element */ + &asn_SPC_NR_DL_AoD_AdditionalMeasurementsExt_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementsExt-r17.h b/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementsExt-r17.h new file mode 100644 index 00000000..ef91b3a3 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-AdditionalMeasurementsExt-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_AoD_AdditionalMeasurementsExt_r17_H_ +#define _NR_DL_AoD_AdditionalMeasurementsExt_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_DL_AoD_AdditionalMeasurementElement_r17; + +/* NR-DL-AoD-AdditionalMeasurementsExt-r17 */ +typedef struct NR_DL_AoD_AdditionalMeasurementsExt_r17 { + A_SEQUENCE_OF(struct NR_DL_AoD_AdditionalMeasurementElement_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_AoD_AdditionalMeasurementsExt_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_AdditionalMeasurementsExt_r17; +extern asn_SET_OF_specifics_t asn_SPC_NR_DL_AoD_AdditionalMeasurementsExt_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_AdditionalMeasurementsExt_r17_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_DL_AoD_AdditionalMeasurementsExt_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_AoD_AdditionalMeasurementsExt_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-AoD-Error-r16.c b/asn.1/lpp_generated/NR-DL-AoD-Error-r16.c new file mode 100644 index 00000000..74010b9f --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-Error-r16.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-AoD-Error-r16.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_AoD_Error_r16_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_AoD_Error_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_Error_r16, choice.locationServerErrorCauses_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_AoD_LocationServerErrorCauses_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationServerErrorCauses-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_Error_r16, choice.targetDeviceErrorCauses_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "targetDeviceErrorCauses-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_Error_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses-r16 */ +}; +asn_CHOICE_specifics_t asn_SPC_NR_DL_AoD_Error_r16_specs_1 = { + sizeof(struct NR_DL_AoD_Error_r16), + offsetof(struct NR_DL_AoD_Error_r16, _asn_ctx), + offsetof(struct NR_DL_AoD_Error_r16, present), + sizeof(((struct NR_DL_AoD_Error_r16 *)0)->present), + asn_MAP_NR_DL_AoD_Error_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_Error_r16 = { + "NR-DL-AoD-Error-r16", + "NR-DL-AoD-Error-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_AoD_Error_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_NR_DL_AoD_Error_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_DL_AoD_Error_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-DL-AoD-Error-r16.h b/asn.1/lpp_generated/NR-DL-AoD-Error-r16.h similarity index 86% rename from asn.1/generated/NR-DL-AoD-Error-r16.h rename to asn.1/lpp_generated/NR-DL-AoD-Error-r16.h index 9a59fe79..7d1d03b6 100644 --- a/asn.1/generated/NR-DL-AoD-Error-r16.h +++ b/asn.1/lpp_generated/NR-DL-AoD-Error-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_DL_AoD_Error_r16_H_ diff --git a/asn.1/lpp_generated/NR-DL-AoD-LocationInformation-r16.c b/asn.1/lpp_generated/NR-DL-AoD-LocationInformation-r16.c new file mode 100644 index 00000000..d6cd6b1b --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-LocationInformation-r16.c @@ -0,0 +1,246 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-AoD-LocationInformation-r16.h" + +#include "LocationCoordinates.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_measurementReferenceTime_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_measurementReferenceTime_r16_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_LocationInformation_r16__measurementReferenceTime_r16, choice.sfn_time_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimeStamp_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sfn-time-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_LocationInformation_r16__measurementReferenceTime_r16, choice.utc_time_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTCTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utc-time-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_measurementReferenceTime_r16_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sfn-time-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* utc-time-r16 */ +}; +static asn_CHOICE_specifics_t asn_SPC_measurementReferenceTime_r16_specs_2 = { + sizeof(struct NR_DL_AoD_LocationInformation_r16__measurementReferenceTime_r16), + offsetof(struct NR_DL_AoD_LocationInformation_r16__measurementReferenceTime_r16, _asn_ctx), + offsetof(struct NR_DL_AoD_LocationInformation_r16__measurementReferenceTime_r16, present), + sizeof(((struct NR_DL_AoD_LocationInformation_r16__measurementReferenceTime_r16 *)0)->present), + asn_MAP_measurementReferenceTime_r16_tag2el_2, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_measurementReferenceTime_r16_2 = { + "measurementReferenceTime-r16", + "measurementReferenceTime-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_measurementReferenceTime_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_measurementReferenceTime_r16_2, + 2, /* Elements count */ + &asn_SPC_measurementReferenceTime_r16_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_LocationInformation_r16__ext1, locationCoordinates_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_LocationCoordinates, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationCoordinates-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_LocationInformation_r16__ext1, locationSource_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationSource_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationSource-r17" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationCoordinates-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* locationSource-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct NR_DL_AoD_LocationInformation_r16__ext1), + offsetof(struct NR_DL_AoD_LocationInformation_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 2, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_AoD_LocationInformation_r16_1[] = { + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_LocationInformation_r16, measurementReferenceTime_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_measurementReferenceTime_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "measurementReferenceTime-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_LocationInformation_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_DL_AoD_LocationInformation_r16_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_LocationInformation_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_LocationInformation_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* measurementReferenceTime-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_LocationInformation_r16_specs_1 = { + sizeof(struct NR_DL_AoD_LocationInformation_r16), + offsetof(struct NR_DL_AoD_LocationInformation_r16, _asn_ctx), + asn_MAP_NR_DL_AoD_LocationInformation_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_NR_DL_AoD_LocationInformation_r16_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_LocationInformation_r16 = { + "NR-DL-AoD-LocationInformation-r16", + "NR-DL-AoD-LocationInformation-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_AoD_LocationInformation_r16_tags_1, + sizeof(asn_DEF_NR_DL_AoD_LocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_LocationInformation_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_AoD_LocationInformation_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_AoD_LocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_LocationInformation_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_AoD_LocationInformation_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_DL_AoD_LocationInformation_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-DL-AoD-LocationInformation-r16.h b/asn.1/lpp_generated/NR-DL-AoD-LocationInformation-r16.h similarity index 76% rename from asn.1/generated/NR-DL-AoD-LocationInformation-r16.h rename to asn.1/lpp_generated/NR-DL-AoD-LocationInformation-r16.h index 8af67d9d..bbb0e674 100644 --- a/asn.1/generated/NR-DL-AoD-LocationInformation-r16.h +++ b/asn.1/lpp_generated/NR-DL-AoD-LocationInformation-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_DL_AoD_LocationInformation_r16_H_ @@ -15,6 +15,7 @@ #include "NR-TimeStamp-r16.h" #include #include +#include "LocationSource-r13.h" #include #ifdef __cplusplus @@ -30,6 +31,9 @@ typedef enum NR_DL_AoD_LocationInformation_r16__measurementReferenceTime_r16_PR } NR_DL_AoD_LocationInformation_r16__measurementReferenceTime_r16_PR; +/* Forward declarations */ +struct LocationCoordinates; + /* NR-DL-AoD-LocationInformation-r16 */ typedef struct NR_DL_AoD_LocationInformation_r16 { struct NR_DL_AoD_LocationInformation_r16__measurementReferenceTime_r16 { @@ -50,6 +54,13 @@ typedef struct NR_DL_AoD_LocationInformation_r16 { * This type is extensible, * possible extensions are below. */ + struct NR_DL_AoD_LocationInformation_r16__ext1 { + struct LocationCoordinates *locationCoordinates_r17; /* OPTIONAL */ + LocationSource_r13_t *locationSource_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -58,7 +69,7 @@ typedef struct NR_DL_AoD_LocationInformation_r16 { /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_LocationInformation_r16; extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_LocationInformation_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_LocationInformation_r16_1[1]; +extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_LocationInformation_r16_1[2]; #ifdef __cplusplus } diff --git a/asn.1/lpp_generated/NR-DL-AoD-LocationServerErrorCauses-r16.c b/asn.1/lpp_generated/NR-DL-AoD-LocationServerErrorCauses-r16.c new file mode 100644 index 00000000..c398de5f --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-LocationServerErrorCauses-r16.c @@ -0,0 +1,132 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-AoD-LocationServerErrorCauses-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_r16_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 34, "assistanceDataNotSupportedByServer" }, + { 2, 55, "assistanceDataSupportedButCurrentlyNotAvailableByServer" }, + { 3, 45, "notProvidedAssistanceDataNotSupportedByServer" }, + { 4, 43, "on-demand-dl-prs-NotSupportedByServer-v1700" }, + { 5, 64, "on-demand-dl-prs-SupportedButCurrentlyNotAvailableByServer-v1700" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_r16_enum2value_2[] = { + 1, /* assistanceDataNotSupportedByServer(1) */ + 2, /* assistanceDataSupportedButCurrentlyNotAvailableByServer(2) */ + 3, /* notProvidedAssistanceDataNotSupportedByServer(3) */ + 4, /* on-demand-dl-prs-NotSupportedByServer-v1700(4) */ + 5, /* on-demand-dl-prs-SupportedButCurrentlyNotAvailableByServer-v1700(5) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_r16_specs_2 = { + asn_MAP_cause_r16_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_r16_enum2value_2, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_r16_2 = { + "cause-r16", + "cause-r16", + &asn_OP_NativeEnumerated, + asn_DEF_cause_r16_tags_2, + sizeof(asn_DEF_cause_r16_tags_2) + /sizeof(asn_DEF_cause_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_r16_tags_2) + /sizeof(asn_DEF_cause_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_r16_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_AoD_LocationServerErrorCauses_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_LocationServerErrorCauses_r16, cause_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_LocationServerErrorCauses_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_LocationServerErrorCauses_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_LocationServerErrorCauses_r16_specs_1 = { + sizeof(struct NR_DL_AoD_LocationServerErrorCauses_r16), + offsetof(struct NR_DL_AoD_LocationServerErrorCauses_r16, _asn_ctx), + asn_MAP_NR_DL_AoD_LocationServerErrorCauses_r16_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_LocationServerErrorCauses_r16 = { + "NR-DL-AoD-LocationServerErrorCauses-r16", + "NR-DL-AoD-LocationServerErrorCauses-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_AoD_LocationServerErrorCauses_r16_tags_1, + sizeof(asn_DEF_NR_DL_AoD_LocationServerErrorCauses_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_LocationServerErrorCauses_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_AoD_LocationServerErrorCauses_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_AoD_LocationServerErrorCauses_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_LocationServerErrorCauses_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_AoD_LocationServerErrorCauses_r16_1, + 1, /* Elements count */ + &asn_SPC_NR_DL_AoD_LocationServerErrorCauses_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-DL-AoD-LocationServerErrorCauses-r16.h b/asn.1/lpp_generated/NR-DL-AoD-LocationServerErrorCauses-r16.h similarity index 76% rename from asn.1/generated/NR-DL-AoD-LocationServerErrorCauses-r16.h rename to asn.1/lpp_generated/NR-DL-AoD-LocationServerErrorCauses-r16.h index 31b3b7a0..892aad6c 100644 --- a/asn.1/generated/NR-DL-AoD-LocationServerErrorCauses-r16.h +++ b/asn.1/lpp_generated/NR-DL-AoD-LocationServerErrorCauses-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_DL_AoD_LocationServerErrorCauses_r16_H_ @@ -24,10 +24,12 @@ typedef enum NR_DL_AoD_LocationServerErrorCauses_r16__cause_r16 { NR_DL_AoD_LocationServerErrorCauses_r16__cause_r16_undefined = 0, NR_DL_AoD_LocationServerErrorCauses_r16__cause_r16_assistanceDataNotSupportedByServer = 1, NR_DL_AoD_LocationServerErrorCauses_r16__cause_r16_assistanceDataSupportedButCurrentlyNotAvailableByServer = 2, - NR_DL_AoD_LocationServerErrorCauses_r16__cause_r16_notProvidedAssistanceDataNotSupportedByServer = 3 + NR_DL_AoD_LocationServerErrorCauses_r16__cause_r16_notProvidedAssistanceDataNotSupportedByServer = 3, /* * Enumeration is extensible */ + NR_DL_AoD_LocationServerErrorCauses_r16__cause_r16_on_demand_dl_prs_NotSupportedByServer_v1700 = 4, + NR_DL_AoD_LocationServerErrorCauses_r16__cause_r16_on_demand_dl_prs_SupportedButCurrentlyNotAvailableByServer_v1700 = 5 } e_NR_DL_AoD_LocationServerErrorCauses_r16__cause_r16; /* NR-DL-AoD-LocationServerErrorCauses-r16 */ diff --git a/asn.1/lpp_generated/NR-DL-AoD-MeasElement-r16.c b/asn.1/lpp_generated/NR-DL-AoD-MeasElement-r16.c new file mode 100644 index 00000000..f516ffdb --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-MeasElement-r16.c @@ -0,0 +1,556 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-AoD-MeasElement-r16.h" + +#include "NCGI-r15.h" +#include "NR-DL-AoD-AdditionalMeasurements-r16.h" +#include "NR-DL-AoD-AdditionalMeasurementsExt-r17.h" +static int +memb_nr_DL_PRS_FirstPathRSRP_Result_r17_constraint_13(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 126L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_PRS_ID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_RSRP_Result_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 126L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_RxBeamIndex_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 8L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_los_nlos_Indicator_r17_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_FirstPathRSRP_Result_r17_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 126 } /* (0..126) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ID_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_RSRP_Result_r16_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 126 } /* (0..126) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_RxBeamIndex_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_los_nlos_Indicator_r17_15[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17, choice.perTRP_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_Indicator_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "perTRP-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17, choice.perResource_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_Indicator_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "perResource-r17" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_los_nlos_Indicator_r17_tag2el_15[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* perTRP-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* perResource-r17 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nr_los_nlos_Indicator_r17_specs_15 = { + sizeof(struct NR_DL_AoD_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17), + offsetof(struct NR_DL_AoD_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17, _asn_ctx), + offsetof(struct NR_DL_AoD_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17, present), + sizeof(((struct NR_DL_AoD_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17 *)0)->present), + asn_MAP_nr_los_nlos_Indicator_r17_tag2el_15, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_los_nlos_Indicator_r17_15 = { + "nr-los-nlos-Indicator-r17", + "nr-los-nlos-Indicator-r17", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_los_nlos_Indicator_r17_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nr_los_nlos_Indicator_r17_15, + 2, /* Elements count */ + &asn_SPC_nr_los_nlos_Indicator_r17_specs_15 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_13[] = { + { ATF_POINTER, 3, offsetof(struct NR_DL_AoD_MeasElement_r16__ext1, nr_DL_PRS_FirstPathRSRP_Result_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_FirstPathRSRP_Result_r17_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_FirstPathRSRP_Result_r17_constraint_13 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-FirstPathRSRP-Result-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_MeasElement_r16__ext1, nr_los_nlos_Indicator_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nr_los_nlos_Indicator_r17_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-los-nlos-Indicator-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_MeasElement_r16__ext1, nr_DL_AoD_AdditionalMeasurementsExt_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_AoD_AdditionalMeasurementsExt_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-AdditionalMeasurementsExt-r17" + }, +}; +static const int asn_MAP_ext1_oms_13[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_13[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-FirstPathRSRP-Result-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-los-nlos-Indicator-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-DL-AoD-AdditionalMeasurementsExt-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_13 = { + sizeof(struct NR_DL_AoD_MeasElement_r16__ext1), + offsetof(struct NR_DL_AoD_MeasElement_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_13, + 3, /* Count of tags in the map */ + asn_MAP_ext1_oms_13, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_13 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_13, + sizeof(asn_DEF_ext1_tags_13) + /sizeof(asn_DEF_ext1_tags_13[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_13, /* Same as above */ + sizeof(asn_DEF_ext1_tags_13) + /sizeof(asn_DEF_ext1_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_13, + 3, /* Elements count */ + &asn_SPC_ext1_specs_13 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_AoD_MeasElement_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_MeasElement_r16, dl_PRS_ID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ID_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ID_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ID-r16" + }, + { ATF_POINTER, 5, offsetof(struct NR_DL_AoD_MeasElement_r16, nr_PhysCellID_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r16" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_AoD_MeasElement_r16, nr_CellGlobalID_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-CellGlobalID-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_AoD_MeasElement_r16, nr_ARFCN_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ARFCN-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_MeasElement_r16, nr_DL_PRS_ResourceID_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceID-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_MeasElement_r16, nr_DL_PRS_ResourceSetID_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceSetID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceSetID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_MeasElement_r16, nr_TimeStamp_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimeStamp_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-TimeStamp-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_MeasElement_r16, nr_DL_PRS_RSRP_Result_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_RSRP_Result_r16_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_RSRP_Result_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RSRP-Result-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_AoD_MeasElement_r16, nr_DL_PRS_RxBeamIndex_r16), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_RxBeamIndex_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_RxBeamIndex_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RxBeamIndex-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_MeasElement_r16, nr_DL_AoD_AdditionalMeasurements_r16), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_AoD_AdditionalMeasurements_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-AdditionalMeasurements-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_MeasElement_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + 0, + &asn_DEF_ext1_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_DL_AoD_MeasElement_r16_oms_1[] = { 1, 2, 3, 4, 5, 8, 9, 10 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_MeasElement_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_MeasElement_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PhysCellID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-CellGlobalID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-ARFCN-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-DL-PRS-ResourceID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nr-DL-PRS-ResourceSetID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* nr-TimeStamp-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* nr-DL-PRS-RSRP-Result-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* nr-DL-PRS-RxBeamIndex-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* nr-DL-AoD-AdditionalMeasurements-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_MeasElement_r16_specs_1 = { + sizeof(struct NR_DL_AoD_MeasElement_r16), + offsetof(struct NR_DL_AoD_MeasElement_r16, _asn_ctx), + asn_MAP_NR_DL_AoD_MeasElement_r16_tag2el_1, + 11, /* Count of tags in the map */ + asn_MAP_NR_DL_AoD_MeasElement_r16_oms_1, /* Optional members */ + 7, 1, /* Root/Additions */ + 10, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_MeasElement_r16 = { + "NR-DL-AoD-MeasElement-r16", + "NR-DL-AoD-MeasElement-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_AoD_MeasElement_r16_tags_1, + sizeof(asn_DEF_NR_DL_AoD_MeasElement_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_MeasElement_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_AoD_MeasElement_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_AoD_MeasElement_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_MeasElement_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_AoD_MeasElement_r16_1, + 11, /* Elements count */ + &asn_SPC_NR_DL_AoD_MeasElement_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-AoD-MeasElement-r16.h b/asn.1/lpp_generated/NR-DL-AoD-MeasElement-r16.h new file mode 100644 index 00000000..2e4a83d0 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-MeasElement-r16.h @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_AoD_MeasElement_r16_H_ +#define _NR_DL_AoD_MeasElement_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include "NR-PhysCellID-r16.h" +#include "ARFCN-ValueNR-r15.h" +#include "NR-DL-PRS-ResourceID-r16.h" +#include "NR-DL-PRS-ResourceSetID-r16.h" +#include "NR-TimeStamp-r16.h" +#include "LOS-NLOS-Indicator-r17.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_AoD_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_PR { + NR_DL_AoD_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_PR_NOTHING, /* No components present */ + NR_DL_AoD_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_PR_perTRP_r17, + NR_DL_AoD_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_PR_perResource_r17 +} NR_DL_AoD_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_PR; + +/* Forward declarations */ +struct NCGI_r15; +struct NR_DL_AoD_AdditionalMeasurements_r16; +struct NR_DL_AoD_AdditionalMeasurementsExt_r17; + +/* NR-DL-AoD-MeasElement-r16 */ +typedef struct NR_DL_AoD_MeasElement_r16 { + long dl_PRS_ID_r16; + NR_PhysCellID_r16_t *nr_PhysCellID_r16; /* OPTIONAL */ + struct NCGI_r15 *nr_CellGlobalID_r16; /* OPTIONAL */ + ARFCN_ValueNR_r15_t *nr_ARFCN_r16; /* OPTIONAL */ + NR_DL_PRS_ResourceID_r16_t *nr_DL_PRS_ResourceID_r16; /* OPTIONAL */ + NR_DL_PRS_ResourceSetID_r16_t *nr_DL_PRS_ResourceSetID_r16; /* OPTIONAL */ + NR_TimeStamp_r16_t nr_TimeStamp_r16; + long nr_DL_PRS_RSRP_Result_r16; + long *nr_DL_PRS_RxBeamIndex_r16; /* OPTIONAL */ + struct NR_DL_AoD_AdditionalMeasurements_r16 *nr_DL_AoD_AdditionalMeasurements_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_AoD_MeasElement_r16__ext1 { + long *nr_DL_PRS_FirstPathRSRP_Result_r17; /* OPTIONAL */ + struct NR_DL_AoD_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17 { + NR_DL_AoD_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_PR present; + union NR_DL_AoD_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_u { + LOS_NLOS_Indicator_r17_t perTRP_r17; + LOS_NLOS_Indicator_r17_t perResource_r17; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_los_nlos_Indicator_r17; + struct NR_DL_AoD_AdditionalMeasurementsExt_r17 *nr_DL_AoD_AdditionalMeasurementsExt_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_AoD_MeasElement_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_MeasElement_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_MeasElement_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_MeasElement_r16_1[11]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_AoD_MeasElement_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-AoD-MeasList-r16.c b/asn.1/lpp_generated/NR-DL-AoD-MeasList-r16.c new file mode 100644 index 00000000..8159ea94 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-MeasList-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-AoD-MeasList-r16.h" + +#include "NR-DL-AoD-MeasElement-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_AoD_MeasList_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (SIZE(1..256)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_AoD_MeasList_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_AoD_MeasElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_MeasList_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_DL_AoD_MeasList_r16_specs_1 = { + sizeof(struct NR_DL_AoD_MeasList_r16), + offsetof(struct NR_DL_AoD_MeasList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_MeasList_r16 = { + "NR-DL-AoD-MeasList-r16", + "NR-DL-AoD-MeasList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_DL_AoD_MeasList_r16_tags_1, + sizeof(asn_DEF_NR_DL_AoD_MeasList_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_MeasList_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_AoD_MeasList_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_AoD_MeasList_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_MeasList_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_AoD_MeasList_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_DL_AoD_MeasList_r16_1, + 1, /* Single element */ + &asn_SPC_NR_DL_AoD_MeasList_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-DL-AoD-MeasList-r16.h b/asn.1/lpp_generated/NR-DL-AoD-MeasList-r16.h similarity index 80% rename from asn.1/generated/NR-DL-AoD-MeasList-r16.h rename to asn.1/lpp_generated/NR-DL-AoD-MeasList-r16.h index 4b08b2c1..5fd08926 100644 --- a/asn.1/generated/NR-DL-AoD-MeasList-r16.h +++ b/asn.1/lpp_generated/NR-DL-AoD-MeasList-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_DL_AoD_MeasList_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_NR_DL_AoD_MeasList_r16_constr_1; } #endif -/* Referred external types */ -#include "NR-DL-AoD-MeasElement-r16.h" - #endif /* _NR_DL_AoD_MeasList_r16_H_ */ #include diff --git a/asn.1/lpp_generated/NR-DL-AoD-MeasurementCapability-r16.c b/asn.1/lpp_generated/NR-DL-AoD-MeasurementCapability-r16.c new file mode 100644 index 00000000..73352497 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-MeasurementCapability-r16.c @@ -0,0 +1,471 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-AoD-MeasurementCapability-r16.h" + +#include "DL-AoD-MeasCapabilityPerBand-r16.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_maxDL_PRS_RSRP_MeasurementFR1_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 8L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_maxDL_PRS_RSRP_MeasurementFR2_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 8L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_AoD_MeasCapabilityBandList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 1024UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_AoD_MeasCapabilityBandList_r16_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxDL_PRS_RSRP_MeasurementFR1_v1730_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxDL_PRS_RSRP_MeasurementFR2_v1730_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxDL_PRS_RSRP_MeasurementFR1_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxDL_PRS_RSRP_MeasurementFR2_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_AoD_MeasCapabilityBandList_r16_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_dl_AoD_MeasCapabilityBandList_r16_4[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DL_AoD_MeasCapabilityPerBand_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_dl_AoD_MeasCapabilityBandList_r16_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_dl_AoD_MeasCapabilityBandList_r16_specs_4 = { + sizeof(struct NR_DL_AoD_MeasurementCapability_r16__dl_AoD_MeasCapabilityBandList_r16), + offsetof(struct NR_DL_AoD_MeasurementCapability_r16__dl_AoD_MeasCapabilityBandList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_AoD_MeasCapabilityBandList_r16_4 = { + "dl-AoD-MeasCapabilityBandList-r16", + "dl-AoD-MeasCapabilityBandList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_dl_AoD_MeasCapabilityBandList_r16_tags_4, + sizeof(asn_DEF_dl_AoD_MeasCapabilityBandList_r16_tags_4) + /sizeof(asn_DEF_dl_AoD_MeasCapabilityBandList_r16_tags_4[0]) - 1, /* 1 */ + asn_DEF_dl_AoD_MeasCapabilityBandList_r16_tags_4, /* Same as above */ + sizeof(asn_DEF_dl_AoD_MeasCapabilityBandList_r16_tags_4) + /sizeof(asn_DEF_dl_AoD_MeasCapabilityBandList_r16_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_AoD_MeasCapabilityBandList_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_dl_AoD_MeasCapabilityBandList_r16_4, + 1, /* Single element */ + &asn_SPC_dl_AoD_MeasCapabilityBandList_r16_specs_4 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxDL_PRS_RSRP_MeasurementFR1_v1730_value2enum_8[] = { + { 0, 3, "n16" }, + { 1, 3, "n24" } +}; +static const unsigned int asn_MAP_maxDL_PRS_RSRP_MeasurementFR1_v1730_enum2value_8[] = { + 0, /* n16(0) */ + 1 /* n24(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxDL_PRS_RSRP_MeasurementFR1_v1730_specs_8 = { + asn_MAP_maxDL_PRS_RSRP_MeasurementFR1_v1730_value2enum_8, /* "tag" => N; sorted by tag */ + asn_MAP_maxDL_PRS_RSRP_MeasurementFR1_v1730_enum2value_8, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxDL_PRS_RSRP_MeasurementFR1_v1730_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxDL_PRS_RSRP_MeasurementFR1_v1730_8 = { + "maxDL-PRS-RSRP-MeasurementFR1-v1730", + "maxDL-PRS-RSRP-MeasurementFR1-v1730", + &asn_OP_NativeEnumerated, + asn_DEF_maxDL_PRS_RSRP_MeasurementFR1_v1730_tags_8, + sizeof(asn_DEF_maxDL_PRS_RSRP_MeasurementFR1_v1730_tags_8) + /sizeof(asn_DEF_maxDL_PRS_RSRP_MeasurementFR1_v1730_tags_8[0]) - 1, /* 1 */ + asn_DEF_maxDL_PRS_RSRP_MeasurementFR1_v1730_tags_8, /* Same as above */ + sizeof(asn_DEF_maxDL_PRS_RSRP_MeasurementFR1_v1730_tags_8) + /sizeof(asn_DEF_maxDL_PRS_RSRP_MeasurementFR1_v1730_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxDL_PRS_RSRP_MeasurementFR1_v1730_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxDL_PRS_RSRP_MeasurementFR1_v1730_specs_8 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxDL_PRS_RSRP_MeasurementFR2_v1730_value2enum_11[] = { + { 0, 3, "n16" }, + { 1, 3, "n24" } +}; +static const unsigned int asn_MAP_maxDL_PRS_RSRP_MeasurementFR2_v1730_enum2value_11[] = { + 0, /* n16(0) */ + 1 /* n24(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxDL_PRS_RSRP_MeasurementFR2_v1730_specs_11 = { + asn_MAP_maxDL_PRS_RSRP_MeasurementFR2_v1730_value2enum_11, /* "tag" => N; sorted by tag */ + asn_MAP_maxDL_PRS_RSRP_MeasurementFR2_v1730_enum2value_11, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxDL_PRS_RSRP_MeasurementFR2_v1730_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxDL_PRS_RSRP_MeasurementFR2_v1730_11 = { + "maxDL-PRS-RSRP-MeasurementFR2-v1730", + "maxDL-PRS-RSRP-MeasurementFR2-v1730", + &asn_OP_NativeEnumerated, + asn_DEF_maxDL_PRS_RSRP_MeasurementFR2_v1730_tags_11, + sizeof(asn_DEF_maxDL_PRS_RSRP_MeasurementFR2_v1730_tags_11) + /sizeof(asn_DEF_maxDL_PRS_RSRP_MeasurementFR2_v1730_tags_11[0]) - 1, /* 1 */ + asn_DEF_maxDL_PRS_RSRP_MeasurementFR2_v1730_tags_11, /* Same as above */ + sizeof(asn_DEF_maxDL_PRS_RSRP_MeasurementFR2_v1730_tags_11) + /sizeof(asn_DEF_maxDL_PRS_RSRP_MeasurementFR2_v1730_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxDL_PRS_RSRP_MeasurementFR2_v1730_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxDL_PRS_RSRP_MeasurementFR2_v1730_specs_11 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_MeasurementCapability_r16__ext1, maxDL_PRS_RSRP_MeasurementFR1_v1730), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxDL_PRS_RSRP_MeasurementFR1_v1730_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxDL-PRS-RSRP-MeasurementFR1-v1730" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_MeasurementCapability_r16__ext1, maxDL_PRS_RSRP_MeasurementFR2_v1730), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxDL_PRS_RSRP_MeasurementFR2_v1730_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxDL-PRS-RSRP-MeasurementFR2-v1730" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxDL-PRS-RSRP-MeasurementFR1-v1730 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* maxDL-PRS-RSRP-MeasurementFR2-v1730 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct NR_DL_AoD_MeasurementCapability_r16__ext1), + offsetof(struct NR_DL_AoD_MeasurementCapability_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 2, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_AoD_MeasurementCapability_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_MeasurementCapability_r16, maxDL_PRS_RSRP_MeasurementFR1_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxDL_PRS_RSRP_MeasurementFR1_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxDL_PRS_RSRP_MeasurementFR1_r16_constraint_1 + }, + 0, 0, /* No default value */ + "maxDL-PRS-RSRP-MeasurementFR1-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_MeasurementCapability_r16, maxDL_PRS_RSRP_MeasurementFR2_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxDL_PRS_RSRP_MeasurementFR2_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxDL_PRS_RSRP_MeasurementFR2_r16_constraint_1 + }, + 0, 0, /* No default value */ + "maxDL-PRS-RSRP-MeasurementFR2-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_MeasurementCapability_r16, dl_AoD_MeasCapabilityBandList_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_dl_AoD_MeasCapabilityBandList_r16_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_AoD_MeasCapabilityBandList_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_AoD_MeasCapabilityBandList_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-AoD-MeasCapabilityBandList-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_MeasurementCapability_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_DL_AoD_MeasurementCapability_r16_oms_1[] = { 3 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_MeasurementCapability_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_MeasurementCapability_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxDL-PRS-RSRP-MeasurementFR1-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxDL-PRS-RSRP-MeasurementFR2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dl-AoD-MeasCapabilityBandList-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_MeasurementCapability_r16_specs_1 = { + sizeof(struct NR_DL_AoD_MeasurementCapability_r16), + offsetof(struct NR_DL_AoD_MeasurementCapability_r16, _asn_ctx), + asn_MAP_NR_DL_AoD_MeasurementCapability_r16_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_NR_DL_AoD_MeasurementCapability_r16_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_MeasurementCapability_r16 = { + "NR-DL-AoD-MeasurementCapability-r16", + "NR-DL-AoD-MeasurementCapability-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_AoD_MeasurementCapability_r16_tags_1, + sizeof(asn_DEF_NR_DL_AoD_MeasurementCapability_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_MeasurementCapability_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_AoD_MeasurementCapability_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_AoD_MeasurementCapability_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_MeasurementCapability_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_AoD_MeasurementCapability_r16_1, + 4, /* Elements count */ + &asn_SPC_NR_DL_AoD_MeasurementCapability_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-AoD-MeasurementCapability-r16.h b/asn.1/lpp_generated/NR-DL-AoD-MeasurementCapability-r16.h new file mode 100644 index 00000000..860a07ce --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-MeasurementCapability-r16.h @@ -0,0 +1,76 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_AoD_MeasurementCapability_r16_H_ +#define _NR_DL_AoD_MeasurementCapability_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_AoD_MeasurementCapability_r16__ext1__maxDL_PRS_RSRP_MeasurementFR1_v1730 { + NR_DL_AoD_MeasurementCapability_r16__ext1__maxDL_PRS_RSRP_MeasurementFR1_v1730_n16 = 0, + NR_DL_AoD_MeasurementCapability_r16__ext1__maxDL_PRS_RSRP_MeasurementFR1_v1730_n24 = 1 +} e_NR_DL_AoD_MeasurementCapability_r16__ext1__maxDL_PRS_RSRP_MeasurementFR1_v1730; +typedef enum NR_DL_AoD_MeasurementCapability_r16__ext1__maxDL_PRS_RSRP_MeasurementFR2_v1730 { + NR_DL_AoD_MeasurementCapability_r16__ext1__maxDL_PRS_RSRP_MeasurementFR2_v1730_n16 = 0, + NR_DL_AoD_MeasurementCapability_r16__ext1__maxDL_PRS_RSRP_MeasurementFR2_v1730_n24 = 1 +} e_NR_DL_AoD_MeasurementCapability_r16__ext1__maxDL_PRS_RSRP_MeasurementFR2_v1730; + +/* Forward declarations */ +struct DL_AoD_MeasCapabilityPerBand_r16; + +/* NR-DL-AoD-MeasurementCapability-r16 */ +typedef struct NR_DL_AoD_MeasurementCapability_r16 { + long maxDL_PRS_RSRP_MeasurementFR1_r16; + long maxDL_PRS_RSRP_MeasurementFR2_r16; + struct NR_DL_AoD_MeasurementCapability_r16__dl_AoD_MeasCapabilityBandList_r16 { + A_SEQUENCE_OF(struct DL_AoD_MeasCapabilityPerBand_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } dl_AoD_MeasCapabilityBandList_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_AoD_MeasurementCapability_r16__ext1 { + long *maxDL_PRS_RSRP_MeasurementFR1_v1730; /* OPTIONAL */ + long *maxDL_PRS_RSRP_MeasurementFR2_v1730; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_AoD_MeasurementCapability_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxDL_PRS_RSRP_MeasurementFR1_v1730_8; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxDL_PRS_RSRP_MeasurementFR2_v1730_11; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_MeasurementCapability_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_MeasurementCapability_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_MeasurementCapability_r16_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_AoD_MeasurementCapability_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-AoD-ProvideAssistanceData-r16.c b/asn.1/lpp_generated/NR-DL-AoD-ProvideAssistanceData-r16.c new file mode 100644 index 00000000..c3567099 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-ProvideAssistanceData-r16.c @@ -0,0 +1,263 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-AoD-ProvideAssistanceData-r16.h" + +#include "NR-DL-PRS-AssistanceData-r16.h" +#include "NR-SelectedDL-PRS-IndexList-r16.h" +#include "NR-PositionCalculationAssistance-r16.h" +#include "NR-DL-AoD-Error-r16.h" +#include "NR-DL-PRS-BeamInfo-r16.h" +#include "NR-On-Demand-DL-PRS-Configurations-r17.h" +#include "NR-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17.h" +#include "AreaID-CellList-r17.h" +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 4, offsetof(struct NR_DL_AoD_ProvideAssistanceData_r16__ext1, nr_DL_PRS_BeamInfo_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_BeamInfo_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-BeamInfo-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_AoD_ProvideAssistanceData_r16__ext1, nr_On_Demand_DL_PRS_Configurations_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_On_Demand_DL_PRS_Configurations_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-On-Demand-DL-PRS-Configurations-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_ProvideAssistanceData_r16__ext1, nr_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_ProvideAssistanceData_r16__ext1, assistanceDataValidityArea_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AreaID_CellList_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "assistanceDataValidityArea-r17" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-BeamInfo-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-On-Demand-DL-PRS-Configurations-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* assistanceDataValidityArea-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct NR_DL_AoD_ProvideAssistanceData_r16__ext1), + offsetof(struct NR_DL_AoD_ProvideAssistanceData_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 4, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 4, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_AoD_ProvideAssistanceData_r16_1[] = { + { ATF_POINTER, 5, offsetof(struct NR_DL_AoD_ProvideAssistanceData_r16, nr_DL_PRS_AssistanceData_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_AssistanceData_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-AssistanceData-r16" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_AoD_ProvideAssistanceData_r16, nr_SelectedDL_PRS_IndexList_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_SelectedDL_PRS_IndexList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-SelectedDL-PRS-IndexList-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_AoD_ProvideAssistanceData_r16, nr_PositionCalculationAssistance_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PositionCalculationAssistance_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PositionCalculationAssistance-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_ProvideAssistanceData_r16, nr_DL_AoD_Error_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_NR_DL_AoD_Error_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-Error-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_ProvideAssistanceData_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_DL_AoD_ProvideAssistanceData_r16_oms_1[] = { 0, 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_ProvideAssistanceData_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-AssistanceData-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-SelectedDL-PRS-IndexList-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-PositionCalculationAssistance-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-DL-AoD-Error-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_ProvideAssistanceData_r16_specs_1 = { + sizeof(struct NR_DL_AoD_ProvideAssistanceData_r16), + offsetof(struct NR_DL_AoD_ProvideAssistanceData_r16, _asn_ctx), + asn_MAP_NR_DL_AoD_ProvideAssistanceData_r16_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_NR_DL_AoD_ProvideAssistanceData_r16_oms_1, /* Optional members */ + 4, 1, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16 = { + "NR-DL-AoD-ProvideAssistanceData-r16", + "NR-DL-AoD-ProvideAssistanceData-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16_tags_1, + sizeof(asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_AoD_ProvideAssistanceData_r16_1, + 5, /* Elements count */ + &asn_SPC_NR_DL_AoD_ProvideAssistanceData_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-AoD-ProvideAssistanceData-r16.h b/asn.1/lpp_generated/NR-DL-AoD-ProvideAssistanceData-r16.h new file mode 100644 index 00000000..cfe45d29 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-ProvideAssistanceData-r16.h @@ -0,0 +1,65 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_AoD_ProvideAssistanceData_r16_H_ +#define _NR_DL_AoD_ProvideAssistanceData_r16_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_DL_PRS_AssistanceData_r16; +struct NR_SelectedDL_PRS_IndexList_r16; +struct NR_PositionCalculationAssistance_r16; +struct NR_DL_AoD_Error_r16; +struct NR_DL_PRS_BeamInfo_r16; +struct NR_On_Demand_DL_PRS_Configurations_r17; +struct NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17; +struct AreaID_CellList_r17; + +/* NR-DL-AoD-ProvideAssistanceData-r16 */ +typedef struct NR_DL_AoD_ProvideAssistanceData_r16 { + struct NR_DL_PRS_AssistanceData_r16 *nr_DL_PRS_AssistanceData_r16; /* OPTIONAL */ + struct NR_SelectedDL_PRS_IndexList_r16 *nr_SelectedDL_PRS_IndexList_r16; /* OPTIONAL */ + struct NR_PositionCalculationAssistance_r16 *nr_PositionCalculationAssistance_r16; /* OPTIONAL */ + struct NR_DL_AoD_Error_r16 *nr_DL_AoD_Error_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_AoD_ProvideAssistanceData_r16__ext1 { + struct NR_DL_PRS_BeamInfo_r16 *nr_DL_PRS_BeamInfo_r17; /* OPTIONAL */ + struct NR_On_Demand_DL_PRS_Configurations_r17 *nr_On_Demand_DL_PRS_Configurations_r17; /* OPTIONAL */ + struct NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17 *nr_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17; /* OPTIONAL */ + struct AreaID_CellList_r17 *assistanceDataValidityArea_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_AoD_ProvideAssistanceData_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_ProvideAssistanceData_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_ProvideAssistanceData_r16_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_AoD_ProvideAssistanceData_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-AoD-ProvideCapabilities-r16.c b/asn.1/lpp_generated/NR-DL-AoD-ProvideCapabilities-r16.c new file mode 100644 index 00000000..97e4ae8e --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-ProvideCapabilities-r16.c @@ -0,0 +1,1455 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-AoD-ProvideCapabilities-r16.h" + +#include "PositioningModes.h" +#include "NR-On-Demand-DL-PRS-Support-r17.h" +#include "ScheduledLocationTimeSupportPerMode-r17.h" +#include "LocationCoordinateTypes.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_area_validity_r17_constraint_36(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 16L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_nr_PosCalcAssistanceSupport_r17_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_nr_IntegrityAssistanceSupport_r18_constraint_49(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_ResourcePrioritySubset_Sup_r17_constr_24 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_BeamInfoSup_r17_constr_28 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_area_validity_r17_constr_37 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (1..16) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_multiMeasInSameMeasReport_r17_constr_39 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_mg_ActivationRequest_r17_constr_41 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_PosCalcAssistanceSupport_r17_constr_11 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17_constr_21 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_posMeasGapSupport_r17_constr_44 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_multiLocationEstimateInSameMeasReport_r17_constr_47 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18_constr_59 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_IntegrityAssistanceSupport_r18_constr_51 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_los_nlos_AssistanceDataSupport_r17_17[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_los_nlos_AssistanceDataSupport_r17, type_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_IndicatorType2_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "type-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_los_nlos_AssistanceDataSupport_r17, granularity_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_IndicatorGranularity2_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "granularity-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_los_nlos_AssistanceDataSupport_r17_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_los_nlos_AssistanceDataSupport_r17_tag2el_17[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* type-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* granularity-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_nr_los_nlos_AssistanceDataSupport_r17_specs_17 = { + sizeof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_los_nlos_AssistanceDataSupport_r17), + offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_los_nlos_AssistanceDataSupport_r17, _asn_ctx), + asn_MAP_nr_los_nlos_AssistanceDataSupport_r17_tag2el_17, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_los_nlos_AssistanceDataSupport_r17_17 = { + "nr-los-nlos-AssistanceDataSupport-r17", + "nr-los-nlos-AssistanceDataSupport-r17", + &asn_OP_SEQUENCE, + asn_DEF_nr_los_nlos_AssistanceDataSupport_r17_tags_17, + sizeof(asn_DEF_nr_los_nlos_AssistanceDataSupport_r17_tags_17) + /sizeof(asn_DEF_nr_los_nlos_AssistanceDataSupport_r17_tags_17[0]) - 1, /* 1 */ + asn_DEF_nr_los_nlos_AssistanceDataSupport_r17_tags_17, /* Same as above */ + sizeof(asn_DEF_nr_los_nlos_AssistanceDataSupport_r17_tags_17) + /sizeof(asn_DEF_nr_los_nlos_AssistanceDataSupport_r17_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_nr_los_nlos_AssistanceDataSupport_r17_17, + 2, /* Elements count */ + &asn_SPC_nr_los_nlos_AssistanceDataSupport_r17_specs_17 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_ResourcePrioritySubset_Sup_r17_value2enum_24[] = { + { 0, 7, "sameSet" }, + { 1, 12, "differentSet" }, + { 2, 18, "sameOrDifferentSet" } +}; +static const unsigned int asn_MAP_dl_PRS_ResourcePrioritySubset_Sup_r17_enum2value_24[] = { + 1, /* differentSet(1) */ + 2, /* sameOrDifferentSet(2) */ + 0 /* sameSet(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_ResourcePrioritySubset_Sup_r17_specs_24 = { + asn_MAP_dl_PRS_ResourcePrioritySubset_Sup_r17_value2enum_24, /* "tag" => N; sorted by tag */ + asn_MAP_dl_PRS_ResourcePrioritySubset_Sup_r17_enum2value_24, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_ResourcePrioritySubset_Sup_r17_tags_24[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_ResourcePrioritySubset_Sup_r17_24 = { + "dl-PRS-ResourcePrioritySubset-Sup-r17", + "dl-PRS-ResourcePrioritySubset-Sup-r17", + &asn_OP_NativeEnumerated, + asn_DEF_dl_PRS_ResourcePrioritySubset_Sup_r17_tags_24, + sizeof(asn_DEF_dl_PRS_ResourcePrioritySubset_Sup_r17_tags_24) + /sizeof(asn_DEF_dl_PRS_ResourcePrioritySubset_Sup_r17_tags_24[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_ResourcePrioritySubset_Sup_r17_tags_24, /* Same as above */ + sizeof(asn_DEF_dl_PRS_ResourcePrioritySubset_Sup_r17_tags_24) + /sizeof(asn_DEF_dl_PRS_ResourcePrioritySubset_Sup_r17_tags_24[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_ResourcePrioritySubset_Sup_r17_constr_24, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_PRS_ResourcePrioritySubset_Sup_r17_specs_24 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_DL_PRS_BeamInfoSup_r17_value2enum_28[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_nr_DL_PRS_BeamInfoSup_r17_enum2value_28[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_DL_PRS_BeamInfoSup_r17_specs_28 = { + asn_MAP_nr_DL_PRS_BeamInfoSup_r17_value2enum_28, /* "tag" => N; sorted by tag */ + asn_MAP_nr_DL_PRS_BeamInfoSup_r17_enum2value_28, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_BeamInfoSup_r17_tags_28[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_BeamInfoSup_r17_28 = { + "nr-DL-PRS-BeamInfoSup-r17", + "nr-DL-PRS-BeamInfoSup-r17", + &asn_OP_NativeEnumerated, + asn_DEF_nr_DL_PRS_BeamInfoSup_r17_tags_28, + sizeof(asn_DEF_nr_DL_PRS_BeamInfoSup_r17_tags_28) + /sizeof(asn_DEF_nr_DL_PRS_BeamInfoSup_r17_tags_28[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_BeamInfoSup_r17_tags_28, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_BeamInfoSup_r17_tags_28) + /sizeof(asn_DEF_nr_DL_PRS_BeamInfoSup_r17_tags_28[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_BeamInfoSup_r17_constr_28, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_DL_PRS_BeamInfoSup_r17_specs_28 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_los_nlos_IndicatorSupport_r17_31[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_los_nlos_IndicatorSupport_r17, type_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_IndicatorType2_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "type-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_los_nlos_IndicatorSupport_r17, granularity_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_IndicatorGranularity2_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "granularity-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_31[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_los_nlos_IndicatorSupport_r17_tag2el_31[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* type-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* granularity-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_nr_los_nlos_IndicatorSupport_r17_specs_31 = { + sizeof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_los_nlos_IndicatorSupport_r17), + offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_los_nlos_IndicatorSupport_r17, _asn_ctx), + asn_MAP_nr_los_nlos_IndicatorSupport_r17_tag2el_31, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_los_nlos_IndicatorSupport_r17_31 = { + "nr-los-nlos-IndicatorSupport-r17", + "nr-los-nlos-IndicatorSupport-r17", + &asn_OP_SEQUENCE, + asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_31, + sizeof(asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_31) + /sizeof(asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_31[0]) - 1, /* 1 */ + asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_31, /* Same as above */ + sizeof(asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_31) + /sizeof(asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_31[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_nr_los_nlos_IndicatorSupport_r17_31, + 2, /* Elements count */ + &asn_SPC_nr_los_nlos_IndicatorSupport_r17_specs_31 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_dl_prs_AssistanceDataValidity_r17_36[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_dl_prs_AssistanceDataValidity_r17, area_validity_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_area_validity_r17_constr_37, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_area_validity_r17_constraint_36 + }, + 0, 0, /* No default value */ + "area-validity-r17" + }, +}; +static const int asn_MAP_nr_dl_prs_AssistanceDataValidity_r17_oms_36[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_36[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_dl_prs_AssistanceDataValidity_r17_tag2el_36[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* area-validity-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_nr_dl_prs_AssistanceDataValidity_r17_specs_36 = { + sizeof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_dl_prs_AssistanceDataValidity_r17), + offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_dl_prs_AssistanceDataValidity_r17, _asn_ctx), + asn_MAP_nr_dl_prs_AssistanceDataValidity_r17_tag2el_36, + 1, /* Count of tags in the map */ + asn_MAP_nr_dl_prs_AssistanceDataValidity_r17_oms_36, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_36 = { + "nr-dl-prs-AssistanceDataValidity-r17", + "nr-dl-prs-AssistanceDataValidity-r17", + &asn_OP_SEQUENCE, + asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_36, + sizeof(asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_36) + /sizeof(asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_36[0]) - 1, /* 1 */ + asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_36, /* Same as above */ + sizeof(asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_36) + /sizeof(asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_36[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_nr_dl_prs_AssistanceDataValidity_r17_36, + 1, /* Elements count */ + &asn_SPC_nr_dl_prs_AssistanceDataValidity_r17_specs_36 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_multiMeasInSameMeasReport_r17_value2enum_39[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_multiMeasInSameMeasReport_r17_enum2value_39[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_multiMeasInSameMeasReport_r17_specs_39 = { + asn_MAP_multiMeasInSameMeasReport_r17_value2enum_39, /* "tag" => N; sorted by tag */ + asn_MAP_multiMeasInSameMeasReport_r17_enum2value_39, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_multiMeasInSameMeasReport_r17_tags_39[] = { + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_multiMeasInSameMeasReport_r17_39 = { + "multiMeasInSameMeasReport-r17", + "multiMeasInSameMeasReport-r17", + &asn_OP_NativeEnumerated, + asn_DEF_multiMeasInSameMeasReport_r17_tags_39, + sizeof(asn_DEF_multiMeasInSameMeasReport_r17_tags_39) + /sizeof(asn_DEF_multiMeasInSameMeasReport_r17_tags_39[0]) - 1, /* 1 */ + asn_DEF_multiMeasInSameMeasReport_r17_tags_39, /* Same as above */ + sizeof(asn_DEF_multiMeasInSameMeasReport_r17_tags_39) + /sizeof(asn_DEF_multiMeasInSameMeasReport_r17_tags_39[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_multiMeasInSameMeasReport_r17_constr_39, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_multiMeasInSameMeasReport_r17_specs_39 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_mg_ActivationRequest_r17_value2enum_41[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_mg_ActivationRequest_r17_enum2value_41[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_mg_ActivationRequest_r17_specs_41 = { + asn_MAP_mg_ActivationRequest_r17_value2enum_41, /* "tag" => N; sorted by tag */ + asn_MAP_mg_ActivationRequest_r17_enum2value_41, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_mg_ActivationRequest_r17_tags_41[] = { + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_mg_ActivationRequest_r17_41 = { + "mg-ActivationRequest-r17", + "mg-ActivationRequest-r17", + &asn_OP_NativeEnumerated, + asn_DEF_mg_ActivationRequest_r17_tags_41, + sizeof(asn_DEF_mg_ActivationRequest_r17_tags_41) + /sizeof(asn_DEF_mg_ActivationRequest_r17_tags_41[0]) - 1, /* 1 */ + asn_DEF_mg_ActivationRequest_r17_tags_41, /* Same as above */ + sizeof(asn_DEF_mg_ActivationRequest_r17_tags_41) + /sizeof(asn_DEF_mg_ActivationRequest_r17_tags_41[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_mg_ActivationRequest_r17_constr_41, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_mg_ActivationRequest_r17_specs_41 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_9[] = { + { ATF_POINTER, 12, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1, ten_ms_unit_ResponseTime_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningModes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ten-ms-unit-ResponseTime-r17" + }, + { ATF_POINTER, 11, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1, nr_PosCalcAssistanceSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_PosCalcAssistanceSupport_r17_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_PosCalcAssistanceSupport_r17_constraint_9 + }, + 0, 0, /* No default value */ + "nr-PosCalcAssistanceSupport-r17" + }, + { ATF_POINTER, 10, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1, nr_los_nlos_AssistanceDataSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_nr_los_nlos_AssistanceDataSupport_r17_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-los-nlos-AssistanceDataSupport-r17" + }, + { ATF_POINTER, 9, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1, nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17_constr_21, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17_constraint_9 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ExpectedAoD-or-AoA-Sup-r17" + }, + { ATF_POINTER, 8, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1, dl_PRS_ResourcePrioritySubset_Sup_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_PRS_ResourcePrioritySubset_Sup_r17_24, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-ResourcePrioritySubset-Sup-r17" + }, + { ATF_POINTER, 7, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1, nr_DL_PRS_BeamInfoSup_r17), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_DL_PRS_BeamInfoSup_r17_28, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-BeamInfoSup-r17" + }, + { ATF_POINTER, 6, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1, nr_DL_AoD_On_Demand_DL_PRS_Support_r17), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_On_Demand_DL_PRS_Support_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-On-Demand-DL-PRS-Support-r17" + }, + { ATF_POINTER, 5, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1, nr_los_nlos_IndicatorSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_nr_los_nlos_IndicatorSupport_r17_31, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-los-nlos-IndicatorSupport-r17" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1, scheduledLocationRequestSupported_r17), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ScheduledLocationTimeSupportPerMode_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scheduledLocationRequestSupported-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1, nr_dl_prs_AssistanceDataValidity_r17), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + 0, + &asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_36, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-dl-prs-AssistanceDataValidity-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1, multiMeasInSameMeasReport_r17), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_multiMeasInSameMeasReport_r17_39, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "multiMeasInSameMeasReport-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1, mg_ActivationRequest_r17), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_mg_ActivationRequest_r17_41, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mg-ActivationRequest-r17" + }, +}; +static const int asn_MAP_ext1_oms_9[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_9[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ten-ms-unit-ResponseTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PosCalcAssistanceSupport-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-los-nlos-AssistanceDataSupport-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-DL-PRS-ExpectedAoD-or-AoA-Sup-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* dl-PRS-ResourcePrioritySubset-Sup-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nr-DL-PRS-BeamInfoSup-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* nr-DL-AoD-On-Demand-DL-PRS-Support-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* nr-los-nlos-IndicatorSupport-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* scheduledLocationRequestSupported-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* nr-dl-prs-AssistanceDataValidity-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* multiMeasInSameMeasReport-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* mg-ActivationRequest-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_9 = { + sizeof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1), + offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_9, + 12, /* Count of tags in the map */ + asn_MAP_ext1_oms_9, /* Optional members */ + 12, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_9 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_9, + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_9, /* Same as above */ + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_9, + 12, /* Elements count */ + &asn_SPC_ext1_specs_9 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_posMeasGapSupport_r17_value2enum_44[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_posMeasGapSupport_r17_enum2value_44[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_posMeasGapSupport_r17_specs_44 = { + asn_MAP_posMeasGapSupport_r17_value2enum_44, /* "tag" => N; sorted by tag */ + asn_MAP_posMeasGapSupport_r17_enum2value_44, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_posMeasGapSupport_r17_tags_44[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_posMeasGapSupport_r17_44 = { + "posMeasGapSupport-r17", + "posMeasGapSupport-r17", + &asn_OP_NativeEnumerated, + asn_DEF_posMeasGapSupport_r17_tags_44, + sizeof(asn_DEF_posMeasGapSupport_r17_tags_44) + /sizeof(asn_DEF_posMeasGapSupport_r17_tags_44[0]) - 1, /* 1 */ + asn_DEF_posMeasGapSupport_r17_tags_44, /* Same as above */ + sizeof(asn_DEF_posMeasGapSupport_r17_tags_44) + /sizeof(asn_DEF_posMeasGapSupport_r17_tags_44[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_posMeasGapSupport_r17_constr_44, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_posMeasGapSupport_r17_specs_44 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_43[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext2, posMeasGapSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_posMeasGapSupport_r17_44, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posMeasGapSupport-r17" + }, +}; +static const int asn_MAP_ext2_oms_43[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_43[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_43[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* posMeasGapSupport-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_43 = { + sizeof(struct NR_DL_AoD_ProvideCapabilities_r16__ext2), + offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_43, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_43, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_43 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_43, + sizeof(asn_DEF_ext2_tags_43) + /sizeof(asn_DEF_ext2_tags_43[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_43, /* Same as above */ + sizeof(asn_DEF_ext2_tags_43) + /sizeof(asn_DEF_ext2_tags_43[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_43, + 1, /* Elements count */ + &asn_SPC_ext2_specs_43 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_multiLocationEstimateInSameMeasReport_r17_value2enum_47[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_multiLocationEstimateInSameMeasReport_r17_enum2value_47[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_multiLocationEstimateInSameMeasReport_r17_specs_47 = { + asn_MAP_multiLocationEstimateInSameMeasReport_r17_value2enum_47, /* "tag" => N; sorted by tag */ + asn_MAP_multiLocationEstimateInSameMeasReport_r17_enum2value_47, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_multiLocationEstimateInSameMeasReport_r17_tags_47[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_multiLocationEstimateInSameMeasReport_r17_47 = { + "multiLocationEstimateInSameMeasReport-r17", + "multiLocationEstimateInSameMeasReport-r17", + &asn_OP_NativeEnumerated, + asn_DEF_multiLocationEstimateInSameMeasReport_r17_tags_47, + sizeof(asn_DEF_multiLocationEstimateInSameMeasReport_r17_tags_47) + /sizeof(asn_DEF_multiLocationEstimateInSameMeasReport_r17_tags_47[0]) - 1, /* 1 */ + asn_DEF_multiLocationEstimateInSameMeasReport_r17_tags_47, /* Same as above */ + sizeof(asn_DEF_multiLocationEstimateInSameMeasReport_r17_tags_47) + /sizeof(asn_DEF_multiLocationEstimateInSameMeasReport_r17_tags_47[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_multiLocationEstimateInSameMeasReport_r17_constr_47, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_multiLocationEstimateInSameMeasReport_r17_specs_47 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_46[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext3, multiLocationEstimateInSameMeasReport_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_multiLocationEstimateInSameMeasReport_r17_47, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "multiLocationEstimateInSameMeasReport-r17" + }, +}; +static const int asn_MAP_ext3_oms_46[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_46[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_46[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* multiLocationEstimateInSameMeasReport-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_46 = { + sizeof(struct NR_DL_AoD_ProvideCapabilities_r16__ext3), + offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_46, + 1, /* Count of tags in the map */ + asn_MAP_ext3_oms_46, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_46 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_46, + sizeof(asn_DEF_ext3_tags_46) + /sizeof(asn_DEF_ext3_tags_46[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_46, /* Same as above */ + sizeof(asn_DEF_ext3_tags_46) + /sizeof(asn_DEF_ext3_tags_46[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_46, + 1, /* Elements count */ + &asn_SPC_ext3_specs_46 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18_value2enum_59[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18_enum2value_59[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18_specs_59 = { + asn_MAP_nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18_value2enum_59, /* "tag" => N; sorted by tag */ + asn_MAP_nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18_enum2value_59, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18_tags_59[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18_59 = { + "nr-DL-AoD-OnDemandPRS-ForBWA-Support-r18", + "nr-DL-AoD-OnDemandPRS-ForBWA-Support-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18_tags_59, + sizeof(asn_DEF_nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18_tags_59) + /sizeof(asn_DEF_nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18_tags_59[0]) - 1, /* 1 */ + asn_DEF_nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18_tags_59, /* Same as above */ + sizeof(asn_DEF_nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18_tags_59) + /sizeof(asn_DEF_nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18_tags_59[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18_constr_59, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18_specs_59 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext4_49[] = { + { ATF_POINTER, 3, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext4, locationCoordinateTypes_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationCoordinateTypes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationCoordinateTypes-r18" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext4, nr_IntegrityAssistanceSupport_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_IntegrityAssistanceSupport_r18_constr_51, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_IntegrityAssistanceSupport_r18_constraint_49 + }, + 0, 0, /* No default value */ + "nr-IntegrityAssistanceSupport-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext4, nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18_59, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-OnDemandPRS-ForBWA-Support-r18" + }, +}; +static const int asn_MAP_ext4_oms_49[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext4_tags_49[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext4_tag2el_49[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationCoordinateTypes-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-IntegrityAssistanceSupport-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-DL-AoD-OnDemandPRS-ForBWA-Support-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext4_specs_49 = { + sizeof(struct NR_DL_AoD_ProvideCapabilities_r16__ext4), + offsetof(struct NR_DL_AoD_ProvideCapabilities_r16__ext4, _asn_ctx), + asn_MAP_ext4_tag2el_49, + 3, /* Count of tags in the map */ + asn_MAP_ext4_oms_49, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext4_49 = { + "ext4", + "ext4", + &asn_OP_SEQUENCE, + asn_DEF_ext4_tags_49, + sizeof(asn_DEF_ext4_tags_49) + /sizeof(asn_DEF_ext4_tags_49[0]) - 1, /* 1 */ + asn_DEF_ext4_tags_49, /* Same as above */ + sizeof(asn_DEF_ext4_tags_49) + /sizeof(asn_DEF_ext4_tags_49[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext4_49, + 3, /* Elements count */ + &asn_SPC_ext4_specs_49 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_AoD_ProvideCapabilities_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16, nr_DL_AoD_Mode_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningModes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-Mode-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16, nr_DL_AoD_PRS_Capability_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourcesCapability_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-PRS-Capability-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16, nr_DL_AoD_MeasurementCapability_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_AoD_MeasurementCapability_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-MeasurementCapability-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16, nr_DL_PRS_QCL_ProcessingCapability_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_QCL_ProcessingCapability_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-QCL-ProcessingCapability-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16, nr_DL_PRS_ProcessingCapability_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ProcessingCapability_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ProcessingCapability-r16" + }, + { ATF_POINTER, 5, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16, periodicalReporting_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningModes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "periodicalReporting-r16" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext1_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_ext2_43, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16, ext3), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + 0, + &asn_DEF_ext3_46, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_ProvideCapabilities_r16, ext4), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + 0, + &asn_DEF_ext4_49, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext4" + }, +}; +static const int asn_MAP_NR_DL_AoD_ProvideCapabilities_r16_oms_1[] = { 5, 6, 7, 8, 9 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_ProvideCapabilities_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_ProvideCapabilities_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-AoD-Mode-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-AoD-PRS-Capability-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-AoD-MeasurementCapability-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-DL-PRS-QCL-ProcessingCapability-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-DL-PRS-ProcessingCapability-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* periodicalReporting-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ext3 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* ext4 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_ProvideCapabilities_r16_specs_1 = { + sizeof(struct NR_DL_AoD_ProvideCapabilities_r16), + offsetof(struct NR_DL_AoD_ProvideCapabilities_r16, _asn_ctx), + asn_MAP_NR_DL_AoD_ProvideCapabilities_r16_tag2el_1, + 10, /* Count of tags in the map */ + asn_MAP_NR_DL_AoD_ProvideCapabilities_r16_oms_1, /* Optional members */ + 1, 4, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_ProvideCapabilities_r16 = { + "NR-DL-AoD-ProvideCapabilities-r16", + "NR-DL-AoD-ProvideCapabilities-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_AoD_ProvideCapabilities_r16_tags_1, + sizeof(asn_DEF_NR_DL_AoD_ProvideCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_ProvideCapabilities_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_AoD_ProvideCapabilities_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_AoD_ProvideCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_ProvideCapabilities_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_AoD_ProvideCapabilities_r16_1, + 10, /* Elements count */ + &asn_SPC_NR_DL_AoD_ProvideCapabilities_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-AoD-ProvideCapabilities-r16.h b/asn.1/lpp_generated/NR-DL-AoD-ProvideCapabilities-r16.h new file mode 100644 index 00000000..2e0bc031 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-ProvideCapabilities-r16.h @@ -0,0 +1,182 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_AoD_ProvideCapabilities_r16_H_ +#define _NR_DL_AoD_ProvideCapabilities_r16_H_ + + +#include + +/* Including external dependencies */ +#include "PositioningModes.h" +#include "NR-DL-PRS-ResourcesCapability-r16.h" +#include "NR-DL-AoD-MeasurementCapability-r16.h" +#include "NR-DL-PRS-QCL-ProcessingCapability-r16.h" +#include "NR-DL-PRS-ProcessingCapability-r16.h" +#include +#include +#include "LOS-NLOS-IndicatorType2-r17.h" +#include "LOS-NLOS-IndicatorGranularity2-r17.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_PosCalcAssistanceSupport_r17 { + NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_PosCalcAssistanceSupport_r17_trpLocSup = 0, + NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_PosCalcAssistanceSupport_r17_beamInfoSup = 1, + NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_PosCalcAssistanceSupport_r17_rtdInfoSup = 2, + NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_PosCalcAssistanceSupport_r17_beamAntInfoSup = 3, + NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_PosCalcAssistanceSupport_r17_nr_IntegrityBoundsSup_r18 = 4 +} e_NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_PosCalcAssistanceSupport_r17; +typedef enum NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17 { + NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17_eAoD = 0, + NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17_eAoA = 1 +} e_NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17; +typedef enum NR_DL_AoD_ProvideCapabilities_r16__ext1__dl_PRS_ResourcePrioritySubset_Sup_r17 { + NR_DL_AoD_ProvideCapabilities_r16__ext1__dl_PRS_ResourcePrioritySubset_Sup_r17_sameSet = 0, + NR_DL_AoD_ProvideCapabilities_r16__ext1__dl_PRS_ResourcePrioritySubset_Sup_r17_differentSet = 1, + NR_DL_AoD_ProvideCapabilities_r16__ext1__dl_PRS_ResourcePrioritySubset_Sup_r17_sameOrDifferentSet = 2 +} e_NR_DL_AoD_ProvideCapabilities_r16__ext1__dl_PRS_ResourcePrioritySubset_Sup_r17; +typedef enum NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_DL_PRS_BeamInfoSup_r17 { + NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_DL_PRS_BeamInfoSup_r17_supported = 0 +} e_NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_DL_PRS_BeamInfoSup_r17; +typedef enum NR_DL_AoD_ProvideCapabilities_r16__ext1__multiMeasInSameMeasReport_r17 { + NR_DL_AoD_ProvideCapabilities_r16__ext1__multiMeasInSameMeasReport_r17_supported = 0 +} e_NR_DL_AoD_ProvideCapabilities_r16__ext1__multiMeasInSameMeasReport_r17; +typedef enum NR_DL_AoD_ProvideCapabilities_r16__ext1__mg_ActivationRequest_r17 { + NR_DL_AoD_ProvideCapabilities_r16__ext1__mg_ActivationRequest_r17_supported = 0 +} e_NR_DL_AoD_ProvideCapabilities_r16__ext1__mg_ActivationRequest_r17; +typedef enum NR_DL_AoD_ProvideCapabilities_r16__ext2__posMeasGapSupport_r17 { + NR_DL_AoD_ProvideCapabilities_r16__ext2__posMeasGapSupport_r17_supported = 0 +} e_NR_DL_AoD_ProvideCapabilities_r16__ext2__posMeasGapSupport_r17; +typedef enum NR_DL_AoD_ProvideCapabilities_r16__ext3__multiLocationEstimateInSameMeasReport_r17 { + NR_DL_AoD_ProvideCapabilities_r16__ext3__multiLocationEstimateInSameMeasReport_r17_supported = 0 +} e_NR_DL_AoD_ProvideCapabilities_r16__ext3__multiLocationEstimateInSameMeasReport_r17; +typedef enum NR_DL_AoD_ProvideCapabilities_r16__ext4__nr_IntegrityAssistanceSupport_r18 { + NR_DL_AoD_ProvideCapabilities_r16__ext4__nr_IntegrityAssistanceSupport_r18_serviceParametersSup = 0, + NR_DL_AoD_ProvideCapabilities_r16__ext4__nr_IntegrityAssistanceSupport_r18_serviceAlertSup = 1, + NR_DL_AoD_ProvideCapabilities_r16__ext4__nr_IntegrityAssistanceSupport_r18_riskParametersSup = 2, + NR_DL_AoD_ProvideCapabilities_r16__ext4__nr_IntegrityAssistanceSupport_r18_integrityParaTRP_LocSup = 3, + NR_DL_AoD_ProvideCapabilities_r16__ext4__nr_IntegrityAssistanceSupport_r18_integrityParaBeamInfoSup = 4, + NR_DL_AoD_ProvideCapabilities_r16__ext4__nr_IntegrityAssistanceSupport_r18_integrityParaRTD_InfoSup = 5, + NR_DL_AoD_ProvideCapabilities_r16__ext4__nr_IntegrityAssistanceSupport_r18_integrityBeamAntInfoSup = 6 +} e_NR_DL_AoD_ProvideCapabilities_r16__ext4__nr_IntegrityAssistanceSupport_r18; +typedef enum NR_DL_AoD_ProvideCapabilities_r16__ext4__nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18 { + NR_DL_AoD_ProvideCapabilities_r16__ext4__nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18_supported = 0 +} e_NR_DL_AoD_ProvideCapabilities_r16__ext4__nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18; + +/* Forward declarations */ +struct PositioningModes; +struct NR_On_Demand_DL_PRS_Support_r17; +struct ScheduledLocationTimeSupportPerMode_r17; +struct LocationCoordinateTypes; + +/* NR-DL-AoD-ProvideCapabilities-r16 */ +typedef struct NR_DL_AoD_ProvideCapabilities_r16 { + PositioningModes_t nr_DL_AoD_Mode_r16; + NR_DL_PRS_ResourcesCapability_r16_t nr_DL_AoD_PRS_Capability_r16; + NR_DL_AoD_MeasurementCapability_r16_t nr_DL_AoD_MeasurementCapability_r16; + NR_DL_PRS_QCL_ProcessingCapability_r16_t nr_DL_PRS_QCL_ProcessingCapability_r16; + NR_DL_PRS_ProcessingCapability_r16_t nr_DL_PRS_ProcessingCapability_r16; + struct PositioningModes *periodicalReporting_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_AoD_ProvideCapabilities_r16__ext1 { + struct PositioningModes *ten_ms_unit_ResponseTime_r17; /* OPTIONAL */ + BIT_STRING_t *nr_PosCalcAssistanceSupport_r17; /* OPTIONAL */ + struct NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_los_nlos_AssistanceDataSupport_r17 { + LOS_NLOS_IndicatorType2_r17_t type_r17; + LOS_NLOS_IndicatorGranularity2_r17_t granularity_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_los_nlos_AssistanceDataSupport_r17; + BIT_STRING_t *nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17; /* OPTIONAL */ + long *dl_PRS_ResourcePrioritySubset_Sup_r17; /* OPTIONAL */ + long *nr_DL_PRS_BeamInfoSup_r17; /* OPTIONAL */ + struct NR_On_Demand_DL_PRS_Support_r17 *nr_DL_AoD_On_Demand_DL_PRS_Support_r17; /* OPTIONAL */ + struct NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_los_nlos_IndicatorSupport_r17 { + LOS_NLOS_IndicatorType2_r17_t type_r17; + LOS_NLOS_IndicatorGranularity2_r17_t granularity_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_los_nlos_IndicatorSupport_r17; + struct ScheduledLocationTimeSupportPerMode_r17 *scheduledLocationRequestSupported_r17; /* OPTIONAL */ + struct NR_DL_AoD_ProvideCapabilities_r16__ext1__nr_dl_prs_AssistanceDataValidity_r17 { + long *area_validity_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_dl_prs_AssistanceDataValidity_r17; + long *multiMeasInSameMeasReport_r17; /* OPTIONAL */ + long *mg_ActivationRequest_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct NR_DL_AoD_ProvideCapabilities_r16__ext2 { + long *posMeasGapSupport_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct NR_DL_AoD_ProvideCapabilities_r16__ext3 { + long *multiLocationEstimateInSameMeasReport_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + struct NR_DL_AoD_ProvideCapabilities_r16__ext4 { + struct LocationCoordinateTypes *locationCoordinateTypes_r18; /* OPTIONAL */ + BIT_STRING_t *nr_IntegrityAssistanceSupport_r18; /* OPTIONAL */ + long *nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext4; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_AoD_ProvideCapabilities_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_dl_PRS_ResourcePrioritySubset_Sup_r17_24; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_BeamInfoSup_r17_28; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_multiMeasInSameMeasReport_r17_39; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_mg_ActivationRequest_r17_41; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_posMeasGapSupport_r17_44; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_multiLocationEstimateInSameMeasReport_r17_47; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_DL_AoD_OnDemandPRS_ForBWA_Support_r18_59; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_ProvideCapabilities_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_ProvideCapabilities_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_ProvideCapabilities_r16_1[10]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_AoD_ProvideCapabilities_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-AoD-ProvideLocationInformation-r16.c b/asn.1/lpp_generated/NR-DL-AoD-ProvideLocationInformation-r16.c new file mode 100644 index 00000000..32c44252 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-ProvideLocationInformation-r16.c @@ -0,0 +1,390 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-AoD-ProvideLocationInformation-r16.h" + +#include "NR-DL-AoD-SignalMeasurementInformation-r16.h" +#include "NR-DL-AoD-LocationInformation-r16.h" +#include "NR-DL-AoD-Error-r16.h" +static int +memb_nr_DL_AoD_SignalMeasurementInstances_r17_constraint_6(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 32UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_AoD_LocationInformationInstances_r17_constraint_6(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 32UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_AoD_SignalMeasurementInstances_r17_constr_7 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_AoD_LocationInformationInstances_r17_constr_9 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_AoD_SignalMeasurementInstances_r17_constr_7 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_AoD_LocationInformationInstances_r17_constr_9 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_DL_AoD_SignalMeasurementInstances_r17_7[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_AoD_SignalMeasurementInstances_r17_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_DL_AoD_SignalMeasurementInstances_r17_specs_7 = { + sizeof(struct NR_DL_AoD_ProvideLocationInformation_r16__ext1__nr_DL_AoD_SignalMeasurementInstances_r17), + offsetof(struct NR_DL_AoD_ProvideLocationInformation_r16__ext1__nr_DL_AoD_SignalMeasurementInstances_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_AoD_SignalMeasurementInstances_r17_7 = { + "nr-DL-AoD-SignalMeasurementInstances-r17", + "nr-DL-AoD-SignalMeasurementInstances-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_DL_AoD_SignalMeasurementInstances_r17_tags_7, + sizeof(asn_DEF_nr_DL_AoD_SignalMeasurementInstances_r17_tags_7) + /sizeof(asn_DEF_nr_DL_AoD_SignalMeasurementInstances_r17_tags_7[0]) - 1, /* 1 */ + asn_DEF_nr_DL_AoD_SignalMeasurementInstances_r17_tags_7, /* Same as above */ + sizeof(asn_DEF_nr_DL_AoD_SignalMeasurementInstances_r17_tags_7) + /sizeof(asn_DEF_nr_DL_AoD_SignalMeasurementInstances_r17_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_AoD_SignalMeasurementInstances_r17_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_DL_AoD_SignalMeasurementInstances_r17_7, + 1, /* Single element */ + &asn_SPC_nr_DL_AoD_SignalMeasurementInstances_r17_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_DL_AoD_LocationInformationInstances_r17_9[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_AoD_LocationInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_AoD_LocationInformationInstances_r17_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_DL_AoD_LocationInformationInstances_r17_specs_9 = { + sizeof(struct NR_DL_AoD_ProvideLocationInformation_r16__ext1__nr_DL_AoD_LocationInformationInstances_r17), + offsetof(struct NR_DL_AoD_ProvideLocationInformation_r16__ext1__nr_DL_AoD_LocationInformationInstances_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_AoD_LocationInformationInstances_r17_9 = { + "nr-DL-AoD-LocationInformationInstances-r17", + "nr-DL-AoD-LocationInformationInstances-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_DL_AoD_LocationInformationInstances_r17_tags_9, + sizeof(asn_DEF_nr_DL_AoD_LocationInformationInstances_r17_tags_9) + /sizeof(asn_DEF_nr_DL_AoD_LocationInformationInstances_r17_tags_9[0]) - 1, /* 1 */ + asn_DEF_nr_DL_AoD_LocationInformationInstances_r17_tags_9, /* Same as above */ + sizeof(asn_DEF_nr_DL_AoD_LocationInformationInstances_r17_tags_9) + /sizeof(asn_DEF_nr_DL_AoD_LocationInformationInstances_r17_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_AoD_LocationInformationInstances_r17_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_DL_AoD_LocationInformationInstances_r17_9, + 1, /* Single element */ + &asn_SPC_nr_DL_AoD_LocationInformationInstances_r17_specs_9 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_6[] = { + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_ProvideLocationInformation_r16__ext1, nr_DL_AoD_SignalMeasurementInstances_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_nr_DL_AoD_SignalMeasurementInstances_r17_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_AoD_SignalMeasurementInstances_r17_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_AoD_SignalMeasurementInstances_r17_constraint_6 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-SignalMeasurementInstances-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_ProvideLocationInformation_r16__ext1, nr_DL_AoD_LocationInformationInstances_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_nr_DL_AoD_LocationInformationInstances_r17_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_AoD_LocationInformationInstances_r17_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_AoD_LocationInformationInstances_r17_constraint_6 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-LocationInformationInstances-r17" + }, +}; +static const int asn_MAP_ext1_oms_6[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-AoD-SignalMeasurementInstances-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-DL-AoD-LocationInformationInstances-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = { + sizeof(struct NR_DL_AoD_ProvideLocationInformation_r16__ext1), + offsetof(struct NR_DL_AoD_ProvideLocationInformation_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_6, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_6, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_6 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_6, + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_6, /* Same as above */ + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_6, + 2, /* Elements count */ + &asn_SPC_ext1_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_AoD_ProvideLocationInformation_r16_1[] = { + { ATF_POINTER, 4, offsetof(struct NR_DL_AoD_ProvideLocationInformation_r16, nr_DL_AoD_SignalMeasurementInformation_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-SignalMeasurementInformation-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_AoD_ProvideLocationInformation_r16, nr_dl_AoD_LocationInformation_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_AoD_LocationInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-dl-AoD-LocationInformation-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_ProvideLocationInformation_r16, nr_DL_AoD_Error_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_NR_DL_AoD_Error_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-Error-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_ProvideLocationInformation_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext1_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_DL_AoD_ProvideLocationInformation_r16_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_ProvideLocationInformation_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-AoD-SignalMeasurementInformation-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-dl-AoD-LocationInformation-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-AoD-Error-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_ProvideLocationInformation_r16_specs_1 = { + sizeof(struct NR_DL_AoD_ProvideLocationInformation_r16), + offsetof(struct NR_DL_AoD_ProvideLocationInformation_r16, _asn_ctx), + asn_MAP_NR_DL_AoD_ProvideLocationInformation_r16_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_NR_DL_AoD_ProvideLocationInformation_r16_oms_1, /* Optional members */ + 3, 1, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16 = { + "NR-DL-AoD-ProvideLocationInformation-r16", + "NR-DL-AoD-ProvideLocationInformation-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16_tags_1, + sizeof(asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_AoD_ProvideLocationInformation_r16_1, + 4, /* Elements count */ + &asn_SPC_NR_DL_AoD_ProvideLocationInformation_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-AoD-ProvideLocationInformation-r16.h b/asn.1/lpp_generated/NR-DL-AoD-ProvideLocationInformation-r16.h new file mode 100644 index 00000000..d13f4015 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-ProvideLocationInformation-r16.h @@ -0,0 +1,69 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_AoD_ProvideLocationInformation_r16_H_ +#define _NR_DL_AoD_ProvideLocationInformation_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_DL_AoD_SignalMeasurementInformation_r16; +struct NR_DL_AoD_LocationInformation_r16; +struct NR_DL_AoD_Error_r16; + +/* NR-DL-AoD-ProvideLocationInformation-r16 */ +typedef struct NR_DL_AoD_ProvideLocationInformation_r16 { + struct NR_DL_AoD_SignalMeasurementInformation_r16 *nr_DL_AoD_SignalMeasurementInformation_r16; /* OPTIONAL */ + struct NR_DL_AoD_LocationInformation_r16 *nr_dl_AoD_LocationInformation_r16; /* OPTIONAL */ + struct NR_DL_AoD_Error_r16 *nr_DL_AoD_Error_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_AoD_ProvideLocationInformation_r16__ext1 { + struct NR_DL_AoD_ProvideLocationInformation_r16__ext1__nr_DL_AoD_SignalMeasurementInstances_r17 { + A_SEQUENCE_OF(struct NR_DL_AoD_SignalMeasurementInformation_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_DL_AoD_SignalMeasurementInstances_r17; + struct NR_DL_AoD_ProvideLocationInformation_r16__ext1__nr_DL_AoD_LocationInformationInstances_r17 { + A_SEQUENCE_OF(struct NR_DL_AoD_LocationInformation_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_DL_AoD_LocationInformationInstances_r17; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_AoD_ProvideLocationInformation_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_ProvideLocationInformation_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_ProvideLocationInformation_r16_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_AoD_ProvideLocationInformation_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-AoD-ReportConfig-r16.c b/asn.1/lpp_generated/NR-DL-AoD-ReportConfig-r16.c new file mode 100644 index 00000000..df4a71ac --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-ReportConfig-r16.c @@ -0,0 +1,582 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-AoD-ReportConfig-r16.h" + +#include "NR-DL-PRS-MeasurementTimeWindowsConfig-r18.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r17_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 9L && value <= 24L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_maxDL_PRS_RSRPP_MeasurementsPerTRP_r17_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 24L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 8L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_reducedDL_PRS_ProcessingSamples_r17_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_lowerRxBeamSweepingFactor_FR2_r17_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 9, 24 } /* (9..24) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxDL_PRS_RSRPP_MeasurementsPerTRP_r17_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 1, 24 } /* (1..24) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_los_nlos_IndicatorRequest_r17_7[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_ReportConfig_r16__ext1__nr_los_nlos_IndicatorRequest_r17, type_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_IndicatorType1_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "type-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_ReportConfig_r16__ext1__nr_los_nlos_IndicatorRequest_r17, granularity_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_IndicatorGranularity1_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "granularity-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_los_nlos_IndicatorRequest_r17_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* type-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* granularity-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_nr_los_nlos_IndicatorRequest_r17_specs_7 = { + sizeof(struct NR_DL_AoD_ReportConfig_r16__ext1__nr_los_nlos_IndicatorRequest_r17), + offsetof(struct NR_DL_AoD_ReportConfig_r16__ext1__nr_los_nlos_IndicatorRequest_r17, _asn_ctx), + asn_MAP_nr_los_nlos_IndicatorRequest_r17_tag2el_7, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_los_nlos_IndicatorRequest_r17_7 = { + "nr-los-nlos-IndicatorRequest-r17", + "nr-los-nlos-IndicatorRequest-r17", + &asn_OP_SEQUENCE, + asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_7, + sizeof(asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_7) + /sizeof(asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_7[0]) - 1, /* 1 */ + asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_7, /* Same as above */ + sizeof(asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_7) + /sizeof(asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_nr_los_nlos_IndicatorRequest_r17_7, + 2, /* Elements count */ + &asn_SPC_nr_los_nlos_IndicatorRequest_r17_specs_7 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_reducedDL_PRS_ProcessingSamples_r17_value2enum_11[] = { + { 0, 9, "requested" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_reducedDL_PRS_ProcessingSamples_r17_enum2value_11[] = { + 0 /* requested(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_reducedDL_PRS_ProcessingSamples_r17_specs_11 = { + asn_MAP_reducedDL_PRS_ProcessingSamples_r17_value2enum_11, /* "tag" => N; sorted by tag */ + asn_MAP_reducedDL_PRS_ProcessingSamples_r17_enum2value_11, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_reducedDL_PRS_ProcessingSamples_r17_11 = { + "reducedDL-PRS-ProcessingSamples-r17", + "reducedDL-PRS-ProcessingSamples-r17", + &asn_OP_NativeEnumerated, + asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_11, + sizeof(asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_11) + /sizeof(asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_11[0]) - 1, /* 1 */ + asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_11, /* Same as above */ + sizeof(asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_11) + /sizeof(asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_reducedDL_PRS_ProcessingSamples_r17_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_reducedDL_PRS_ProcessingSamples_r17_specs_11 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_lowerRxBeamSweepingFactor_FR2_r17_value2enum_14[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_lowerRxBeamSweepingFactor_FR2_r17_enum2value_14[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_lowerRxBeamSweepingFactor_FR2_r17_specs_14 = { + asn_MAP_lowerRxBeamSweepingFactor_FR2_r17_value2enum_14, /* "tag" => N; sorted by tag */ + asn_MAP_lowerRxBeamSweepingFactor_FR2_r17_enum2value_14, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_14[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_14 = { + "lowerRxBeamSweepingFactor-FR2-r17", + "lowerRxBeamSweepingFactor-FR2-r17", + &asn_OP_NativeEnumerated, + asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_14, + sizeof(asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_14) + /sizeof(asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_14[0]) - 1, /* 1 */ + asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_14, /* Same as above */ + sizeof(asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_14) + /sizeof(asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_14[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_lowerRxBeamSweepingFactor_FR2_r17_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_lowerRxBeamSweepingFactor_FR2_r17_specs_14 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_4[] = { + { ATF_POINTER, 5, offsetof(struct NR_DL_AoD_ReportConfig_r16__ext1, maxDL_PRS_RSRP_MeasurementsPerTRP_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r17_constraint_4 + }, + 0, 0, /* No default value */ + "maxDL-PRS-RSRP-MeasurementsPerTRP-r17" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_AoD_ReportConfig_r16__ext1, maxDL_PRS_RSRPP_MeasurementsPerTRP_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxDL_PRS_RSRPP_MeasurementsPerTRP_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxDL_PRS_RSRPP_MeasurementsPerTRP_r17_constraint_4 + }, + 0, 0, /* No default value */ + "maxDL-PRS-RSRPP-MeasurementsPerTRP-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_AoD_ReportConfig_r16__ext1, nr_los_nlos_IndicatorRequest_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_nr_los_nlos_IndicatorRequest_r17_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-los-nlos-IndicatorRequest-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_ReportConfig_r16__ext1, reducedDL_PRS_ProcessingSamples_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_reducedDL_PRS_ProcessingSamples_r17_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reducedDL-PRS-ProcessingSamples-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_ReportConfig_r16__ext1, lowerRxBeamSweepingFactor_FR2_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lowerRxBeamSweepingFactor-FR2-r17" + }, +}; +static const int asn_MAP_ext1_oms_4[] = { 0, 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxDL-PRS-RSRP-MeasurementsPerTRP-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxDL-PRS-RSRPP-MeasurementsPerTRP-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-los-nlos-IndicatorRequest-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* reducedDL-PRS-ProcessingSamples-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* lowerRxBeamSweepingFactor-FR2-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { + sizeof(struct NR_DL_AoD_ReportConfig_r16__ext1), + offsetof(struct NR_DL_AoD_ReportConfig_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_4, + 5, /* Count of tags in the map */ + asn_MAP_ext1_oms_4, /* Optional members */ + 5, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_4 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_4, + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_4, /* Same as above */ + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_4, + 5, /* Elements count */ + &asn_SPC_ext1_specs_4 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_16[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_ReportConfig_r16__ext2, nr_DL_PRS_MeasurementTimeWindowsConfig_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfig_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-MeasurementTimeWindowsConfig-r18" + }, +}; +static const int asn_MAP_ext2_oms_16[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_16[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_16[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-DL-PRS-MeasurementTimeWindowsConfig-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_16 = { + sizeof(struct NR_DL_AoD_ReportConfig_r16__ext2), + offsetof(struct NR_DL_AoD_ReportConfig_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_16, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_16, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_16 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_16, + sizeof(asn_DEF_ext2_tags_16) + /sizeof(asn_DEF_ext2_tags_16[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_16, /* Same as above */ + sizeof(asn_DEF_ext2_tags_16) + /sizeof(asn_DEF_ext2_tags_16[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_16, + 1, /* Elements count */ + &asn_SPC_ext2_specs_16 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_AoD_ReportConfig_r16_1[] = { + { ATF_POINTER, 3, offsetof(struct NR_DL_AoD_ReportConfig_r16, maxDL_PRS_RSRP_MeasurementsPerTRP_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxDL_PRS_RSRP_MeasurementsPerTRP_r16_constraint_1 + }, + 0, 0, /* No default value */ + "maxDL-PRS-RSRP-MeasurementsPerTRP-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_ReportConfig_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_ReportConfig_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext2_16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_NR_DL_AoD_ReportConfig_r16_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_ReportConfig_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_ReportConfig_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxDL-PRS-RSRP-MeasurementsPerTRP-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_ReportConfig_r16_specs_1 = { + sizeof(struct NR_DL_AoD_ReportConfig_r16), + offsetof(struct NR_DL_AoD_ReportConfig_r16, _asn_ctx), + asn_MAP_NR_DL_AoD_ReportConfig_r16_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_NR_DL_AoD_ReportConfig_r16_oms_1, /* Optional members */ + 1, 2, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_ReportConfig_r16 = { + "NR-DL-AoD-ReportConfig-r16", + "NR-DL-AoD-ReportConfig-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_AoD_ReportConfig_r16_tags_1, + sizeof(asn_DEF_NR_DL_AoD_ReportConfig_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_ReportConfig_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_AoD_ReportConfig_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_AoD_ReportConfig_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_ReportConfig_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_AoD_ReportConfig_r16_1, + 3, /* Elements count */ + &asn_SPC_NR_DL_AoD_ReportConfig_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-AoD-ReportConfig-r16.h b/asn.1/lpp_generated/NR-DL-AoD-ReportConfig-r16.h new file mode 100644 index 00000000..1add78ed --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-ReportConfig-r16.h @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_AoD_ReportConfig_r16_H_ +#define _NR_DL_AoD_ReportConfig_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include "LOS-NLOS-IndicatorType1-r17.h" +#include "LOS-NLOS-IndicatorGranularity1-r17.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_AoD_ReportConfig_r16__ext1__reducedDL_PRS_ProcessingSamples_r17 { + NR_DL_AoD_ReportConfig_r16__ext1__reducedDL_PRS_ProcessingSamples_r17_requested = 0 + /* + * Enumeration is extensible + */ +} e_NR_DL_AoD_ReportConfig_r16__ext1__reducedDL_PRS_ProcessingSamples_r17; +typedef enum NR_DL_AoD_ReportConfig_r16__ext1__lowerRxBeamSweepingFactor_FR2_r17 { + NR_DL_AoD_ReportConfig_r16__ext1__lowerRxBeamSweepingFactor_FR2_r17_requested = 0 +} e_NR_DL_AoD_ReportConfig_r16__ext1__lowerRxBeamSweepingFactor_FR2_r17; + +/* Forward declarations */ +struct NR_DL_PRS_MeasurementTimeWindowsConfig_r18; + +/* NR-DL-AoD-ReportConfig-r16 */ +typedef struct NR_DL_AoD_ReportConfig_r16 { + long *maxDL_PRS_RSRP_MeasurementsPerTRP_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_AoD_ReportConfig_r16__ext1 { + long *maxDL_PRS_RSRP_MeasurementsPerTRP_r17; /* OPTIONAL */ + long *maxDL_PRS_RSRPP_MeasurementsPerTRP_r17; /* OPTIONAL */ + struct NR_DL_AoD_ReportConfig_r16__ext1__nr_los_nlos_IndicatorRequest_r17 { + LOS_NLOS_IndicatorType1_r17_t type_r17; + LOS_NLOS_IndicatorGranularity1_r17_t granularity_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_los_nlos_IndicatorRequest_r17; + long *reducedDL_PRS_ProcessingSamples_r17; /* OPTIONAL */ + long *lowerRxBeamSweepingFactor_FR2_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct NR_DL_AoD_ReportConfig_r16__ext2 { + struct NR_DL_PRS_MeasurementTimeWindowsConfig_r18 *nr_DL_PRS_MeasurementTimeWindowsConfig_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_AoD_ReportConfig_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_reducedDL_PRS_ProcessingSamples_r17_11; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_14; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_ReportConfig_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_ReportConfig_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_ReportConfig_r16_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_AoD_ReportConfig_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-AoD-RequestAssistanceData-r16.c b/asn.1/lpp_generated/NR-DL-AoD-RequestAssistanceData-r16.c new file mode 100644 index 00000000..62d7280e --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-RequestAssistanceData-r16.c @@ -0,0 +1,534 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-AoD-RequestAssistanceData-r16.h" + +#include "NR-On-Demand-DL-PRS-Request-r17.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_nr_PosCalcAssistanceRequest_r17_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_IntegrityAssistanceRequest_r18_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_AdType_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_BeamInfoRequest_r17_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_pre_configured_AssistanceDataRequest_r17_constr_21 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_PosCalcAssistanceRequest_r17_constr_8 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_IntegrityAssistanceRequest_r18_constr_23 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_AdType_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_value2enum_15[] = { + { 0, 4, "eAoD" }, + { 1, 4, "eAoA" } +}; +static const unsigned int asn_MAP_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_enum2value_15[] = { + 1, /* eAoA(1) */ + 0 /* eAoD(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_specs_15 = { + asn_MAP_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_value2enum_15, /* "tag" => N; sorted by tag */ + asn_MAP_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_enum2value_15, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_15 = { + "nr-DL-PRS-ExpectedAoD-or-AoA-Request-r17", + "nr-DL-PRS-ExpectedAoD-or-AoA-Request-r17", + &asn_OP_NativeEnumerated, + asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_15, + sizeof(asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_15) + /sizeof(asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_15[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_15, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_15) + /sizeof(asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_specs_15 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_DL_PRS_BeamInfoRequest_r17_value2enum_18[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_nr_DL_PRS_BeamInfoRequest_r17_enum2value_18[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_DL_PRS_BeamInfoRequest_r17_specs_18 = { + asn_MAP_nr_DL_PRS_BeamInfoRequest_r17_value2enum_18, /* "tag" => N; sorted by tag */ + asn_MAP_nr_DL_PRS_BeamInfoRequest_r17_enum2value_18, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_BeamInfoRequest_r17_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_BeamInfoRequest_r17_18 = { + "nr-DL-PRS-BeamInfoRequest-r17", + "nr-DL-PRS-BeamInfoRequest-r17", + &asn_OP_NativeEnumerated, + asn_DEF_nr_DL_PRS_BeamInfoRequest_r17_tags_18, + sizeof(asn_DEF_nr_DL_PRS_BeamInfoRequest_r17_tags_18) + /sizeof(asn_DEF_nr_DL_PRS_BeamInfoRequest_r17_tags_18[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_BeamInfoRequest_r17_tags_18, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_BeamInfoRequest_r17_tags_18) + /sizeof(asn_DEF_nr_DL_PRS_BeamInfoRequest_r17_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_BeamInfoRequest_r17_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_DL_PRS_BeamInfoRequest_r17_specs_18 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_pre_configured_AssistanceDataRequest_r17_value2enum_21[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_pre_configured_AssistanceDataRequest_r17_enum2value_21[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_pre_configured_AssistanceDataRequest_r17_specs_21 = { + asn_MAP_pre_configured_AssistanceDataRequest_r17_value2enum_21, /* "tag" => N; sorted by tag */ + asn_MAP_pre_configured_AssistanceDataRequest_r17_enum2value_21, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_21[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_pre_configured_AssistanceDataRequest_r17_21 = { + "pre-configured-AssistanceDataRequest-r17", + "pre-configured-AssistanceDataRequest-r17", + &asn_OP_NativeEnumerated, + asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_21, + sizeof(asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_21) + /sizeof(asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_21[0]) - 1, /* 1 */ + asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_21, /* Same as above */ + sizeof(asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_21) + /sizeof(asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_21[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_pre_configured_AssistanceDataRequest_r17_constr_21, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_pre_configured_AssistanceDataRequest_r17_specs_21 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 6, offsetof(struct NR_DL_AoD_RequestAssistanceData_r16__ext1, nr_PosCalcAssistanceRequest_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_PosCalcAssistanceRequest_r17_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_PosCalcAssistanceRequest_r17_constraint_7 + }, + 0, 0, /* No default value */ + "nr-PosCalcAssistanceRequest-r17" + }, + { ATF_POINTER, 5, offsetof(struct NR_DL_AoD_RequestAssistanceData_r16__ext1, nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ExpectedAoD-or-AoA-Request-r17" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_AoD_RequestAssistanceData_r16__ext1, nr_DL_PRS_BeamInfoRequest_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_DL_PRS_BeamInfoRequest_r17_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-BeamInfoRequest-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_AoD_RequestAssistanceData_r16__ext1, nr_on_demand_DL_PRS_Request_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_On_Demand_DL_PRS_Request_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-on-demand-DL-PRS-Request-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_RequestAssistanceData_r16__ext1, pre_configured_AssistanceDataRequest_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_pre_configured_AssistanceDataRequest_r17_21, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pre-configured-AssistanceDataRequest-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_RequestAssistanceData_r16__ext1, nr_IntegrityAssistanceRequest_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_IntegrityAssistanceRequest_r18_constr_23, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_IntegrityAssistanceRequest_r18_constraint_7 + }, + 0, 0, /* No default value */ + "nr-IntegrityAssistanceRequest-r18" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0, 1, 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-PosCalcAssistanceRequest-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-ExpectedAoD-or-AoA-Request-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-PRS-BeamInfoRequest-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-on-demand-DL-PRS-Request-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* pre-configured-AssistanceDataRequest-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* nr-IntegrityAssistanceRequest-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct NR_DL_AoD_RequestAssistanceData_r16__ext1), + offsetof(struct NR_DL_AoD_RequestAssistanceData_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 6, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 6, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 6, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_AoD_RequestAssistanceData_r16_1[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_RequestAssistanceData_r16, nr_PhysCellID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_RequestAssistanceData_r16, nr_AdType_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_AdType_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_AdType_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-AdType-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_RequestAssistanceData_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_DL_AoD_RequestAssistanceData_r16_oms_1[] = { 0, 2 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_RequestAssistanceData_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_RequestAssistanceData_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-PhysCellID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-AdType-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_RequestAssistanceData_r16_specs_1 = { + sizeof(struct NR_DL_AoD_RequestAssistanceData_r16), + offsetof(struct NR_DL_AoD_RequestAssistanceData_r16, _asn_ctx), + asn_MAP_NR_DL_AoD_RequestAssistanceData_r16_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_NR_DL_AoD_RequestAssistanceData_r16_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_RequestAssistanceData_r16 = { + "NR-DL-AoD-RequestAssistanceData-r16", + "NR-DL-AoD-RequestAssistanceData-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_AoD_RequestAssistanceData_r16_tags_1, + sizeof(asn_DEF_NR_DL_AoD_RequestAssistanceData_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_RequestAssistanceData_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_AoD_RequestAssistanceData_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_AoD_RequestAssistanceData_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_RequestAssistanceData_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_AoD_RequestAssistanceData_r16_1, + 3, /* Elements count */ + &asn_SPC_NR_DL_AoD_RequestAssistanceData_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-AoD-RequestAssistanceData-r16.h b/asn.1/lpp_generated/NR-DL-AoD-RequestAssistanceData-r16.h new file mode 100644 index 00000000..3101771e --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-RequestAssistanceData-r16.h @@ -0,0 +1,97 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_AoD_RequestAssistanceData_r16_H_ +#define _NR_DL_AoD_RequestAssistanceData_r16_H_ + + +#include + +/* Including external dependencies */ +#include "NR-PhysCellID-r16.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_AoD_RequestAssistanceData_r16__nr_AdType_r16 { + NR_DL_AoD_RequestAssistanceData_r16__nr_AdType_r16_dl_prs = 0, + NR_DL_AoD_RequestAssistanceData_r16__nr_AdType_r16_posCalc = 1 +} e_NR_DL_AoD_RequestAssistanceData_r16__nr_AdType_r16; +typedef enum NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_PosCalcAssistanceRequest_r17 { + NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_PosCalcAssistanceRequest_r17_trpLoc = 0, + NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_PosCalcAssistanceRequest_r17_beamInfo = 1, + NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_PosCalcAssistanceRequest_r17_rtdInfo = 2, + NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_PosCalcAssistanceRequest_r17_beamAntInfo = 3, + NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_PosCalcAssistanceRequest_r17_losNlosInfo = 4, + NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_PosCalcAssistanceRequest_r17_nr_IntegrityBounds_r18 = 5 +} e_NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_PosCalcAssistanceRequest_r17; +typedef enum NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17 { + NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_eAoD = 0, + NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_eAoA = 1 +} e_NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17; +typedef enum NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_DL_PRS_BeamInfoRequest_r17 { + NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_DL_PRS_BeamInfoRequest_r17_requested = 0 +} e_NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_DL_PRS_BeamInfoRequest_r17; +typedef enum NR_DL_AoD_RequestAssistanceData_r16__ext1__pre_configured_AssistanceDataRequest_r17 { + NR_DL_AoD_RequestAssistanceData_r16__ext1__pre_configured_AssistanceDataRequest_r17_true = 0 +} e_NR_DL_AoD_RequestAssistanceData_r16__ext1__pre_configured_AssistanceDataRequest_r17; +typedef enum NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_IntegrityAssistanceRequest_r18 { + NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_IntegrityAssistanceRequest_r18_serviceParameters = 0, + NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_IntegrityAssistanceRequest_r18_serviceAlert = 1, + NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_IntegrityAssistanceRequest_r18_riskParameters = 2, + NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_IntegrityAssistanceRequest_r18_integrityParaTRP_Loc = 3, + NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_IntegrityAssistanceRequest_r18_integrityParaBeamInfo = 4, + NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_IntegrityAssistanceRequest_r18_integrityParaRTD_Info = 5, + NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_IntegrityAssistanceRequest_r18_integrityBeamAntInfo = 6 +} e_NR_DL_AoD_RequestAssistanceData_r16__ext1__nr_IntegrityAssistanceRequest_r18; + +/* Forward declarations */ +struct NR_On_Demand_DL_PRS_Request_r17; + +/* NR-DL-AoD-RequestAssistanceData-r16 */ +typedef struct NR_DL_AoD_RequestAssistanceData_r16 { + NR_PhysCellID_r16_t *nr_PhysCellID_r16; /* OPTIONAL */ + BIT_STRING_t nr_AdType_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_AoD_RequestAssistanceData_r16__ext1 { + BIT_STRING_t *nr_PosCalcAssistanceRequest_r17; /* OPTIONAL */ + long *nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17; /* OPTIONAL */ + long *nr_DL_PRS_BeamInfoRequest_r17; /* OPTIONAL */ + struct NR_On_Demand_DL_PRS_Request_r17 *nr_on_demand_DL_PRS_Request_r17; /* OPTIONAL */ + long *pre_configured_AssistanceDataRequest_r17; /* OPTIONAL */ + BIT_STRING_t *nr_IntegrityAssistanceRequest_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_AoD_RequestAssistanceData_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_15; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_BeamInfoRequest_r17_18; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_pre_configured_AssistanceDataRequest_r17_21; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_RequestAssistanceData_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_RequestAssistanceData_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_RequestAssistanceData_r16_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_AoD_RequestAssistanceData_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-AoD-RequestCapabilities-r16.c b/asn.1/lpp_generated/NR-DL-AoD-RequestCapabilities-r16.c new file mode 100644 index 00000000..a689429c --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-RequestCapabilities-r16.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-AoD-RequestCapabilities-r16.h" + +static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_RequestCapabilities_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_RequestCapabilities_r16_specs_1 = { + sizeof(struct NR_DL_AoD_RequestCapabilities_r16), + offsetof(struct NR_DL_AoD_RequestCapabilities_r16, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_RequestCapabilities_r16 = { + "NR-DL-AoD-RequestCapabilities-r16", + "NR-DL-AoD-RequestCapabilities-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_AoD_RequestCapabilities_r16_tags_1, + sizeof(asn_DEF_NR_DL_AoD_RequestCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_RequestCapabilities_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_AoD_RequestCapabilities_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_AoD_RequestCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_RequestCapabilities_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_NR_DL_AoD_RequestCapabilities_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-DL-AoD-RequestCapabilities-r16.h b/asn.1/lpp_generated/NR-DL-AoD-RequestCapabilities-r16.h similarity index 78% rename from asn.1/generated/NR-DL-AoD-RequestCapabilities-r16.h rename to asn.1/lpp_generated/NR-DL-AoD-RequestCapabilities-r16.h index a5a50bd7..4e9e8ebb 100644 --- a/asn.1/generated/NR-DL-AoD-RequestCapabilities-r16.h +++ b/asn.1/lpp_generated/NR-DL-AoD-RequestCapabilities-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_DL_AoD_RequestCapabilities_r16_H_ diff --git a/asn.1/lpp_generated/NR-DL-AoD-RequestLocationInformation-r16.c b/asn.1/lpp_generated/NR-DL-AoD-RequestLocationInformation-r16.c new file mode 100644 index 00000000..410b8eeb --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-RequestLocationInformation-r16.c @@ -0,0 +1,568 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-AoD-RequestLocationInformation-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_multiMeasInSameReport_r17_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_RxHoppingRequest_r18_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_fr1_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_fr2_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_RxHoppingTotalBandwidth_r18_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_multiMeasInSameReport_r17_value2enum_6[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_multiMeasInSameReport_r17_enum2value_6[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_multiMeasInSameReport_r17_specs_6 = { + asn_MAP_multiMeasInSameReport_r17_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_multiMeasInSameReport_r17_enum2value_6, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_multiMeasInSameReport_r17_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_multiMeasInSameReport_r17_6 = { + "multiMeasInSameReport-r17", + "multiMeasInSameReport-r17", + &asn_OP_NativeEnumerated, + asn_DEF_multiMeasInSameReport_r17_tags_6, + sizeof(asn_DEF_multiMeasInSameReport_r17_tags_6) + /sizeof(asn_DEF_multiMeasInSameReport_r17_tags_6[0]) - 1, /* 1 */ + asn_DEF_multiMeasInSameReport_r17_tags_6, /* Same as above */ + sizeof(asn_DEF_multiMeasInSameReport_r17_tags_6) + /sizeof(asn_DEF_multiMeasInSameReport_r17_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_multiMeasInSameReport_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_multiMeasInSameReport_r17_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_RequestLocationInformation_r16__ext1, multiMeasInSameReport_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_multiMeasInSameReport_r17_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "multiMeasInSameReport-r17" + }, +}; +static const int asn_MAP_ext1_oms_5[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* multiMeasInSameReport-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct NR_DL_AoD_RequestLocationInformation_r16__ext1), + offsetof(struct NR_DL_AoD_RequestLocationInformation_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_5, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 1, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_DL_PRS_RxHoppingRequest_r18_value2enum_9[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_nr_DL_PRS_RxHoppingRequest_r18_enum2value_9[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_DL_PRS_RxHoppingRequest_r18_specs_9 = { + asn_MAP_nr_DL_PRS_RxHoppingRequest_r18_value2enum_9, /* "tag" => N; sorted by tag */ + asn_MAP_nr_DL_PRS_RxHoppingRequest_r18_enum2value_9, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_9 = { + "nr-DL-PRS-RxHoppingRequest-r18", + "nr-DL-PRS-RxHoppingRequest-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_9, + sizeof(asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_9) + /sizeof(asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_9[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_9, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_9) + /sizeof(asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_RxHoppingRequest_r18_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_DL_PRS_RxHoppingRequest_r18_specs_9 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_fr1_value2enum_12[] = { + { 0, 5, "mhz40" }, + { 1, 5, "mhz50" }, + { 2, 5, "mhz80" }, + { 3, 6, "mhz100" } +}; +static const unsigned int asn_MAP_fr1_enum2value_12[] = { + 3, /* mhz100(3) */ + 0, /* mhz40(0) */ + 1, /* mhz50(1) */ + 2 /* mhz80(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_fr1_specs_12 = { + asn_MAP_fr1_value2enum_12, /* "tag" => N; sorted by tag */ + asn_MAP_fr1_enum2value_12, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_fr1_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fr1_12 = { + "fr1", + "fr1", + &asn_OP_NativeEnumerated, + asn_DEF_fr1_tags_12, + sizeof(asn_DEF_fr1_tags_12) + /sizeof(asn_DEF_fr1_tags_12[0]) - 1, /* 1 */ + asn_DEF_fr1_tags_12, /* Same as above */ + sizeof(asn_DEF_fr1_tags_12) + /sizeof(asn_DEF_fr1_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_fr1_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_fr1_specs_12 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_fr2_value2enum_17[] = { + { 0, 6, "mhz100" }, + { 1, 6, "mhz200" }, + { 2, 6, "mhz400" } +}; +static const unsigned int asn_MAP_fr2_enum2value_17[] = { + 0, /* mhz100(0) */ + 1, /* mhz200(1) */ + 2 /* mhz400(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_fr2_specs_17 = { + asn_MAP_fr2_value2enum_17, /* "tag" => N; sorted by tag */ + asn_MAP_fr2_enum2value_17, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_fr2_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fr2_17 = { + "fr2", + "fr2", + &asn_OP_NativeEnumerated, + asn_DEF_fr2_tags_17, + sizeof(asn_DEF_fr2_tags_17) + /sizeof(asn_DEF_fr2_tags_17[0]) - 1, /* 1 */ + asn_DEF_fr2_tags_17, /* Same as above */ + sizeof(asn_DEF_fr2_tags_17) + /sizeof(asn_DEF_fr2_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_fr2_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_fr2_specs_17 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_DL_PRS_RxHoppingTotalBandwidth_r18_11[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18, choice.fr1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_fr1_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fr1" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18, choice.fr2), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_fr2_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fr2" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_DL_PRS_RxHoppingTotalBandwidth_r18_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fr1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* fr2 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nr_DL_PRS_RxHoppingTotalBandwidth_r18_specs_11 = { + sizeof(struct NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18), + offsetof(struct NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18, _asn_ctx), + offsetof(struct NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18, present), + sizeof(((struct NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18 *)0)->present), + asn_MAP_nr_DL_PRS_RxHoppingTotalBandwidth_r18_tag2el_11, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RxHoppingTotalBandwidth_r18_11 = { + "nr-DL-PRS-RxHoppingTotalBandwidth-r18", + "nr-DL-PRS-RxHoppingTotalBandwidth-r18", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_RxHoppingTotalBandwidth_r18_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nr_DL_PRS_RxHoppingTotalBandwidth_r18_11, + 2, /* Elements count */ + &asn_SPC_nr_DL_PRS_RxHoppingTotalBandwidth_r18_specs_11 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_8[] = { + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_RequestLocationInformation_r16__ext2, nr_DL_PRS_RxHoppingRequest_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RxHoppingRequest-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_RequestLocationInformation_r16__ext2, nr_DL_PRS_RxHoppingTotalBandwidth_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nr_DL_PRS_RxHoppingTotalBandwidth_r18_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RxHoppingTotalBandwidth-r18" + }, +}; +static const int asn_MAP_ext2_oms_8[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-RxHoppingRequest-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-DL-PRS-RxHoppingTotalBandwidth-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_8 = { + sizeof(struct NR_DL_AoD_RequestLocationInformation_r16__ext2), + offsetof(struct NR_DL_AoD_RequestLocationInformation_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_8, + 2, /* Count of tags in the map */ + asn_MAP_ext2_oms_8, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_8 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_8, + sizeof(asn_DEF_ext2_tags_8) + /sizeof(asn_DEF_ext2_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_8, /* Same as above */ + sizeof(asn_DEF_ext2_tags_8) + /sizeof(asn_DEF_ext2_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_8, + 2, /* Elements count */ + &asn_SPC_ext2_specs_8 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_AoD_RequestLocationInformation_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_RequestLocationInformation_r16, nr_AssistanceAvailability_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-AssistanceAvailability-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_RequestLocationInformation_r16, nr_DL_AoD_ReportConfig_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_AoD_ReportConfig_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-ReportConfig-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_AoD_RequestLocationInformation_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_RequestLocationInformation_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext2_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_NR_DL_AoD_RequestLocationInformation_r16_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_RequestLocationInformation_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_RequestLocationInformation_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-AssistanceAvailability-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-AoD-ReportConfig-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_RequestLocationInformation_r16_specs_1 = { + sizeof(struct NR_DL_AoD_RequestLocationInformation_r16), + offsetof(struct NR_DL_AoD_RequestLocationInformation_r16, _asn_ctx), + asn_MAP_NR_DL_AoD_RequestLocationInformation_r16_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_NR_DL_AoD_RequestLocationInformation_r16_oms_1, /* Optional members */ + 0, 2, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_RequestLocationInformation_r16 = { + "NR-DL-AoD-RequestLocationInformation-r16", + "NR-DL-AoD-RequestLocationInformation-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_AoD_RequestLocationInformation_r16_tags_1, + sizeof(asn_DEF_NR_DL_AoD_RequestLocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_RequestLocationInformation_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_AoD_RequestLocationInformation_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_AoD_RequestLocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_RequestLocationInformation_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_AoD_RequestLocationInformation_r16_1, + 4, /* Elements count */ + &asn_SPC_NR_DL_AoD_RequestLocationInformation_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-AoD-RequestLocationInformation-r16.h b/asn.1/lpp_generated/NR-DL-AoD-RequestLocationInformation-r16.h new file mode 100644 index 00000000..df7c785d --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-RequestLocationInformation-r16.h @@ -0,0 +1,98 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_AoD_RequestLocationInformation_r16_H_ +#define _NR_DL_AoD_RequestLocationInformation_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include "NR-DL-AoD-ReportConfig-r16.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_AoD_RequestLocationInformation_r16__ext1__multiMeasInSameReport_r17 { + NR_DL_AoD_RequestLocationInformation_r16__ext1__multiMeasInSameReport_r17_requested = 0 +} e_NR_DL_AoD_RequestLocationInformation_r16__ext1__multiMeasInSameReport_r17; +typedef enum NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18 { + NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18_requested = 0 +} e_NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18; +typedef enum NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18_PR { + NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18_PR_NOTHING, /* No components present */ + NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18_PR_fr1, + NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18_PR_fr2 +} NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18_PR; +typedef enum NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr1 { + NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr1_mhz40 = 0, + NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr1_mhz50 = 1, + NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr1_mhz80 = 2, + NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr1_mhz100 = 3 +} e_NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr1; +typedef enum NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr2 { + NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr2_mhz100 = 0, + NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr2_mhz200 = 1, + NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr2_mhz400 = 2 +} e_NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr2; + +/* NR-DL-AoD-RequestLocationInformation-r16 */ +typedef struct NR_DL_AoD_RequestLocationInformation_r16 { + BOOLEAN_t nr_AssistanceAvailability_r16; + NR_DL_AoD_ReportConfig_r16_t nr_DL_AoD_ReportConfig_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_AoD_RequestLocationInformation_r16__ext1 { + long *multiMeasInSameReport_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct NR_DL_AoD_RequestLocationInformation_r16__ext2 { + long *nr_DL_PRS_RxHoppingRequest_r18; /* OPTIONAL */ + struct NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18 { + NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18_PR present; + union NR_DL_AoD_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingTotalBandwidth_r18_u { + long fr1; + long fr2; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_DL_PRS_RxHoppingTotalBandwidth_r18; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_AoD_RequestLocationInformation_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_multiMeasInSameReport_r17_6; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_9; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_fr1_12; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_fr2_17; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_RequestLocationInformation_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_RequestLocationInformation_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_RequestLocationInformation_r16_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_AoD_RequestLocationInformation_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-AoD-SignalMeasurementInformation-r16.c b/asn.1/lpp_generated/NR-DL-AoD-SignalMeasurementInformation-r16.c new file mode 100644 index 00000000..d17e8a52 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-SignalMeasurementInformation-r16.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-AoD-SignalMeasurementInformation-r16.h" + +asn_TYPE_member_t asn_MBR_NR_DL_AoD_SignalMeasurementInformation_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_SignalMeasurementInformation_r16, nr_DL_AoD_MeasList_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_AoD_MeasList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-MeasList-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_SignalMeasurementInformation_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-DL-AoD-MeasList-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_SignalMeasurementInformation_r16_specs_1 = { + sizeof(struct NR_DL_AoD_SignalMeasurementInformation_r16), + offsetof(struct NR_DL_AoD_SignalMeasurementInformation_r16, _asn_ctx), + asn_MAP_NR_DL_AoD_SignalMeasurementInformation_r16_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16 = { + "NR-DL-AoD-SignalMeasurementInformation-r16", + "NR-DL-AoD-SignalMeasurementInformation-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16_tags_1, + sizeof(asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_AoD_SignalMeasurementInformation_r16_1, + 1, /* Elements count */ + &asn_SPC_NR_DL_AoD_SignalMeasurementInformation_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-DL-AoD-SignalMeasurementInformation-r16.h b/asn.1/lpp_generated/NR-DL-AoD-SignalMeasurementInformation-r16.h similarity index 82% rename from asn.1/generated/NR-DL-AoD-SignalMeasurementInformation-r16.h rename to asn.1/lpp_generated/NR-DL-AoD-SignalMeasurementInformation-r16.h index 462a74e2..956ec81a 100644 --- a/asn.1/generated/NR-DL-AoD-SignalMeasurementInformation-r16.h +++ b/asn.1/lpp_generated/NR-DL-AoD-SignalMeasurementInformation-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_DL_AoD_SignalMeasurementInformation_r16_H_ diff --git a/asn.1/lpp_generated/NR-DL-AoD-TargetDeviceErrorCauses-r16.c b/asn.1/lpp_generated/NR-DL-AoD-TargetDeviceErrorCauses-r16.c new file mode 100644 index 00000000..3d5815d3 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-TargetDeviceErrorCauses-r16.c @@ -0,0 +1,267 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-AoD-TargetDeviceErrorCauses-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_remoteUE_Indication_r18_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_r16_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 23, "assistance-data-missing" }, + { 2, 21, "unableToMeasureAnyTRP" }, + { 3, 44, "attemptedButUnableToMeasureSomeNeighbourTRPs" }, + { 4, 49, "thereWereNotEnoughSignalsReceivedForUeBasedDL-AoD" }, + { 5, 40, "locationCalculationAssistanceDataMissing" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_r16_enum2value_2[] = { + 1, /* assistance-data-missing(1) */ + 3, /* attemptedButUnableToMeasureSomeNeighbourTRPs(3) */ + 5, /* locationCalculationAssistanceDataMissing(5) */ + 4, /* thereWereNotEnoughSignalsReceivedForUeBasedDL-AoD(4) */ + 2, /* unableToMeasureAnyTRP(2) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_r16_specs_2 = { + asn_MAP_cause_r16_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_r16_enum2value_2, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 7, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_r16_2 = { + "cause-r16", + "cause-r16", + &asn_OP_NativeEnumerated, + asn_DEF_cause_r16_tags_2, + sizeof(asn_DEF_cause_r16_tags_2) + /sizeof(asn_DEF_cause_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_r16_tags_2) + /sizeof(asn_DEF_cause_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_r16_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_remoteUE_Indication_r18_value2enum_12[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_remoteUE_Indication_r18_enum2value_12[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_remoteUE_Indication_r18_specs_12 = { + asn_MAP_remoteUE_Indication_r18_value2enum_12, /* "tag" => N; sorted by tag */ + asn_MAP_remoteUE_Indication_r18_enum2value_12, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_remoteUE_Indication_r18_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_remoteUE_Indication_r18_12 = { + "remoteUE-Indication-r18", + "remoteUE-Indication-r18", + &asn_OP_NativeEnumerated, + asn_DEF_remoteUE_Indication_r18_tags_12, + sizeof(asn_DEF_remoteUE_Indication_r18_tags_12) + /sizeof(asn_DEF_remoteUE_Indication_r18_tags_12[0]) - 1, /* 1 */ + asn_DEF_remoteUE_Indication_r18_tags_12, /* Same as above */ + sizeof(asn_DEF_remoteUE_Indication_r18_tags_12) + /sizeof(asn_DEF_remoteUE_Indication_r18_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_remoteUE_Indication_r18_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_remoteUE_Indication_r18_specs_12 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_11[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_TargetDeviceErrorCauses_r16__ext1, remoteUE_Indication_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_remoteUE_Indication_r18_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "remoteUE-Indication-r18" + }, +}; +static const int asn_MAP_ext1_oms_11[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* remoteUE-Indication-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_11 = { + sizeof(struct NR_DL_AoD_TargetDeviceErrorCauses_r16__ext1), + offsetof(struct NR_DL_AoD_TargetDeviceErrorCauses_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_11, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_11, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_11 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_11, + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_11, /* Same as above */ + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_11, + 1, /* Elements count */ + &asn_SPC_ext1_specs_11 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_AoD_TargetDeviceErrorCauses_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_AoD_TargetDeviceErrorCauses_r16, cause_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_AoD_TargetDeviceErrorCauses_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_DL_AoD_TargetDeviceErrorCauses_r16_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_AoD_TargetDeviceErrorCauses_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_TargetDeviceErrorCauses_r16_specs_1 = { + sizeof(struct NR_DL_AoD_TargetDeviceErrorCauses_r16), + offsetof(struct NR_DL_AoD_TargetDeviceErrorCauses_r16, _asn_ctx), + asn_MAP_NR_DL_AoD_TargetDeviceErrorCauses_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_NR_DL_AoD_TargetDeviceErrorCauses_r16_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16 = { + "NR-DL-AoD-TargetDeviceErrorCauses-r16", + "NR-DL-AoD-TargetDeviceErrorCauses-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16_tags_1, + sizeof(asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16_tags_1) + /sizeof(asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_AoD_TargetDeviceErrorCauses_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_DL_AoD_TargetDeviceErrorCauses_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-AoD-TargetDeviceErrorCauses-r16.h b/asn.1/lpp_generated/NR-DL-AoD-TargetDeviceErrorCauses-r16.h new file mode 100644 index 00000000..1b69908f --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-AoD-TargetDeviceErrorCauses-r16.h @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_AoD_TargetDeviceErrorCauses_r16_H_ +#define _NR_DL_AoD_TargetDeviceErrorCauses_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_AoD_TargetDeviceErrorCauses_r16__cause_r16 { + NR_DL_AoD_TargetDeviceErrorCauses_r16__cause_r16_undefined = 0, + NR_DL_AoD_TargetDeviceErrorCauses_r16__cause_r16_assistance_data_missing = 1, + NR_DL_AoD_TargetDeviceErrorCauses_r16__cause_r16_unableToMeasureAnyTRP = 2, + NR_DL_AoD_TargetDeviceErrorCauses_r16__cause_r16_attemptedButUnableToMeasureSomeNeighbourTRPs = 3, + NR_DL_AoD_TargetDeviceErrorCauses_r16__cause_r16_thereWereNotEnoughSignalsReceivedForUeBasedDL_AoD = 4, + NR_DL_AoD_TargetDeviceErrorCauses_r16__cause_r16_locationCalculationAssistanceDataMissing = 5 + /* + * Enumeration is extensible + */ +} e_NR_DL_AoD_TargetDeviceErrorCauses_r16__cause_r16; +typedef enum NR_DL_AoD_TargetDeviceErrorCauses_r16__ext1__remoteUE_Indication_r18 { + NR_DL_AoD_TargetDeviceErrorCauses_r16__ext1__remoteUE_Indication_r18_true = 0 +} e_NR_DL_AoD_TargetDeviceErrorCauses_r16__ext1__remoteUE_Indication_r18; + +/* NR-DL-AoD-TargetDeviceErrorCauses-r16 */ +typedef struct NR_DL_AoD_TargetDeviceErrorCauses_r16 { + long cause_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_AoD_TargetDeviceErrorCauses_r16__ext1 { + long *remoteUE_Indication_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_AoD_TargetDeviceErrorCauses_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_cause_r16_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_remoteUE_Indication_r18_12; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_AoD_TargetDeviceErrorCauses_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_AoD_TargetDeviceErrorCauses_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_AoD_TargetDeviceErrorCauses_r16_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_AoD_TargetDeviceErrorCauses_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-AggregationElement-r18.c b/asn.1/lpp_generated/NR-DL-PRS-AggregationElement-r18.c new file mode 100644 index 00000000..61fceabb --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-AggregationElement-r18.c @@ -0,0 +1,198 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-AggregationElement-r18.h" + +static int +memb_nr_DL_PRS_FrequencyLayerIndex_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_TRP_Index_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_ResourceSetIndex_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_FrequencyLayerIndex_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_TRP_Index_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_ResourceSetIndex_r18_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_PRS_AggregationElement_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_AggregationElement_r18, nr_DL_PRS_FrequencyLayerIndex_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_FrequencyLayerIndex_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_FrequencyLayerIndex_r18_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-FrequencyLayerIndex-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_AggregationElement_r18, nr_DL_PRS_TRP_Index_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_TRP_Index_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_TRP_Index_r18_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-TRP-Index-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_AggregationElement_r18, nr_DL_PRS_ResourceSetIndex_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_ResourceSetIndex_r18_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_ResourceSetIndex_r18_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceSetIndex-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_AggregationElement_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_AggregationElement_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-FrequencyLayerIndex-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-TRP-Index-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-DL-PRS-ResourceSetIndex-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_AggregationElement_r18_specs_1 = { + sizeof(struct NR_DL_PRS_AggregationElement_r18), + offsetof(struct NR_DL_PRS_AggregationElement_r18, _asn_ctx), + asn_MAP_NR_DL_PRS_AggregationElement_r18_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_AggregationElement_r18 = { + "NR-DL-PRS-AggregationElement-r18", + "NR-DL-PRS-AggregationElement-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_PRS_AggregationElement_r18_tags_1, + sizeof(asn_DEF_NR_DL_PRS_AggregationElement_r18_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_AggregationElement_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_AggregationElement_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_AggregationElement_r18_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_AggregationElement_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_PRS_AggregationElement_r18_1, + 3, /* Elements count */ + &asn_SPC_NR_DL_PRS_AggregationElement_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-AggregationElement-r18.h b/asn.1/lpp_generated/NR-DL-PRS-AggregationElement-r18.h new file mode 100644 index 00000000..f3bd4572 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-AggregationElement-r18.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_AggregationElement_r18_H_ +#define _NR_DL_PRS_AggregationElement_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-DL-PRS-AggregationElement-r18 */ +typedef struct NR_DL_PRS_AggregationElement_r18 { + long nr_DL_PRS_FrequencyLayerIndex_r18; + long nr_DL_PRS_TRP_Index_r18; + long nr_DL_PRS_ResourceSetIndex_r18; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_AggregationElement_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_AggregationElement_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_AggregationElement_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_AggregationElement_r18_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_AggregationElement_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-AggregationInfo-r18.c b/asn.1/lpp_generated/NR-DL-PRS-AggregationInfo-r18.c new file mode 100644 index 00000000..2fa56b06 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-AggregationInfo-r18.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-AggregationInfo-r18.h" + +#include "NR-linkedDL-PRS-ResourceSetID-PRS-AggregationList-r18.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_PRS_AggregationInfo_r18_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (SIZE(1..256)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_PRS_AggregationInfo_r18_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_AggregationInfo_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_DL_PRS_AggregationInfo_r18_specs_1 = { + sizeof(struct NR_DL_PRS_AggregationInfo_r18), + offsetof(struct NR_DL_PRS_AggregationInfo_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_AggregationInfo_r18 = { + "NR-DL-PRS-AggregationInfo-r18", + "NR-DL-PRS-AggregationInfo-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_DL_PRS_AggregationInfo_r18_tags_1, + sizeof(asn_DEF_NR_DL_PRS_AggregationInfo_r18_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_AggregationInfo_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_AggregationInfo_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_AggregationInfo_r18_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_AggregationInfo_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_PRS_AggregationInfo_r18_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_DL_PRS_AggregationInfo_r18_1, + 1, /* Single element */ + &asn_SPC_NR_DL_PRS_AggregationInfo_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-AggregationInfo-r18.h b/asn.1/lpp_generated/NR-DL-PRS-AggregationInfo-r18.h new file mode 100644 index 00000000..d571bf0c --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-AggregationInfo-r18.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_AggregationInfo_r18_H_ +#define _NR_DL_PRS_AggregationInfo_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18; + +/* NR-DL-PRS-AggregationInfo-r18 */ +typedef struct NR_DL_PRS_AggregationInfo_r18 { + A_SEQUENCE_OF(struct NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_AggregationInfo_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_AggregationInfo_r18; +extern asn_SET_OF_specifics_t asn_SPC_NR_DL_PRS_AggregationInfo_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_AggregationInfo_r18_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_DL_PRS_AggregationInfo_r18_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_AggregationInfo_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-AssistanceData-r16.c b/asn.1/lpp_generated/NR-DL-PRS-AssistanceData-r16.c new file mode 100644 index 00000000..4c6349ed --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-AssistanceData-r16.c @@ -0,0 +1,372 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-AssistanceData-r16.h" + +#include "NR-DL-PRS-AssistanceDataPerFreq-r16.h" +#include "NR-SSB-Config-r16.h" +#include "NR-DL-PRS-AggregationInfo-r18.h" +static int +memb_nr_DL_PRS_AssistanceDataList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 4UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_SSB_Config_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 256UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_AssistanceDataList_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_SSB_Config_r16_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (SIZE(1..256)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_AssistanceDataList_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_SSB_Config_r16_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (SIZE(1..256)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_DL_PRS_AssistanceDataList_r16_3[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_PRS_AssistanceDataPerFreq_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_AssistanceDataList_r16_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_DL_PRS_AssistanceDataList_r16_specs_3 = { + sizeof(struct NR_DL_PRS_AssistanceData_r16__nr_DL_PRS_AssistanceDataList_r16), + offsetof(struct NR_DL_PRS_AssistanceData_r16__nr_DL_PRS_AssistanceDataList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_AssistanceDataList_r16_3 = { + "nr-DL-PRS-AssistanceDataList-r16", + "nr-DL-PRS-AssistanceDataList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_DL_PRS_AssistanceDataList_r16_tags_3, + sizeof(asn_DEF_nr_DL_PRS_AssistanceDataList_r16_tags_3) + /sizeof(asn_DEF_nr_DL_PRS_AssistanceDataList_r16_tags_3[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_AssistanceDataList_r16_tags_3, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_AssistanceDataList_r16_tags_3) + /sizeof(asn_DEF_nr_DL_PRS_AssistanceDataList_r16_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_AssistanceDataList_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_DL_PRS_AssistanceDataList_r16_3, + 1, /* Single element */ + &asn_SPC_nr_DL_PRS_AssistanceDataList_r16_specs_3 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_SSB_Config_r16_5[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_SSB_Config_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_SSB_Config_r16_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_SSB_Config_r16_specs_5 = { + sizeof(struct NR_DL_PRS_AssistanceData_r16__nr_SSB_Config_r16), + offsetof(struct NR_DL_PRS_AssistanceData_r16__nr_SSB_Config_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_SSB_Config_r16_5 = { + "nr-SSB-Config-r16", + "nr-SSB-Config-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_SSB_Config_r16_tags_5, + sizeof(asn_DEF_nr_SSB_Config_r16_tags_5) + /sizeof(asn_DEF_nr_SSB_Config_r16_tags_5[0]) - 1, /* 1 */ + asn_DEF_nr_SSB_Config_r16_tags_5, /* Same as above */ + sizeof(asn_DEF_nr_SSB_Config_r16_tags_5) + /sizeof(asn_DEF_nr_SSB_Config_r16_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_SSB_Config_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_SSB_Config_r16_5, + 1, /* Single element */ + &asn_SPC_nr_SSB_Config_r16_specs_5 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_8[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_AssistanceData_r16__ext1, nr_DL_PRS_AggregationInfo_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_AggregationInfo_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-AggregationInfo-r18" + }, +}; +static const int asn_MAP_ext1_oms_8[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-DL-PRS-AggregationInfo-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { + sizeof(struct NR_DL_PRS_AssistanceData_r16__ext1), + offsetof(struct NR_DL_PRS_AssistanceData_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_8, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_8, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_8 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_8, + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_8, /* Same as above */ + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_8, + 1, /* Elements count */ + &asn_SPC_ext1_specs_8 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_PRS_AssistanceData_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_AssistanceData_r16, nr_DL_PRS_ReferenceInfo_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DL_PRS_ID_Info_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ReferenceInfo-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_AssistanceData_r16, nr_DL_PRS_AssistanceDataList_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_nr_DL_PRS_AssistanceDataList_r16_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_AssistanceDataList_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_AssistanceDataList_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-AssistanceDataList-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_PRS_AssistanceData_r16, nr_SSB_Config_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_nr_SSB_Config_r16_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_SSB_Config_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_SSB_Config_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-SSB-Config-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_AssistanceData_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext1_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_DL_PRS_AssistanceData_r16_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_AssistanceData_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_AssistanceData_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-ReferenceInfo-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-AssistanceDataList-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-SSB-Config-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_AssistanceData_r16_specs_1 = { + sizeof(struct NR_DL_PRS_AssistanceData_r16), + offsetof(struct NR_DL_PRS_AssistanceData_r16, _asn_ctx), + asn_MAP_NR_DL_PRS_AssistanceData_r16_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_NR_DL_PRS_AssistanceData_r16_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_AssistanceData_r16 = { + "NR-DL-PRS-AssistanceData-r16", + "NR-DL-PRS-AssistanceData-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_PRS_AssistanceData_r16_tags_1, + sizeof(asn_DEF_NR_DL_PRS_AssistanceData_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_AssistanceData_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_AssistanceData_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_AssistanceData_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_AssistanceData_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_PRS_AssistanceData_r16_1, + 4, /* Elements count */ + &asn_SPC_NR_DL_PRS_AssistanceData_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-AssistanceData-r16.h b/asn.1/lpp_generated/NR-DL-PRS-AssistanceData-r16.h new file mode 100644 index 00000000..87a03e4b --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-AssistanceData-r16.h @@ -0,0 +1,69 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_AssistanceData_r16_H_ +#define _NR_DL_PRS_AssistanceData_r16_H_ + + +#include + +/* Including external dependencies */ +#include "DL-PRS-ID-Info-r16.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_DL_PRS_AssistanceDataPerFreq_r16; +struct NR_SSB_Config_r16; +struct NR_DL_PRS_AggregationInfo_r18; + +/* NR-DL-PRS-AssistanceData-r16 */ +typedef struct NR_DL_PRS_AssistanceData_r16 { + DL_PRS_ID_Info_r16_t nr_DL_PRS_ReferenceInfo_r16; + struct NR_DL_PRS_AssistanceData_r16__nr_DL_PRS_AssistanceDataList_r16 { + A_SEQUENCE_OF(struct NR_DL_PRS_AssistanceDataPerFreq_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } nr_DL_PRS_AssistanceDataList_r16; + struct NR_DL_PRS_AssistanceData_r16__nr_SSB_Config_r16 { + A_SEQUENCE_OF(struct NR_SSB_Config_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_SSB_Config_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_PRS_AssistanceData_r16__ext1 { + struct NR_DL_PRS_AggregationInfo_r18 *nr_DL_PRS_AggregationInfo_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_AssistanceData_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_AssistanceData_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_AssistanceData_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_AssistanceData_r16_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_AssistanceData_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-AssistanceDataPerFreq-r16.c b/asn.1/lpp_generated/NR-DL-PRS-AssistanceDataPerFreq-r16.c new file mode 100644 index 00000000..3cd23f01 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-AssistanceDataPerFreq-r16.c @@ -0,0 +1,178 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-AssistanceDataPerFreq-r16.h" + +#include "NR-DL-PRS-AssistanceDataPerTRP-r16.h" +static int +memb_nr_DL_PRS_AssistanceDataPerFreq_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 64UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_AssistanceDataPerFreq_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_AssistanceDataPerFreq_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_DL_PRS_AssistanceDataPerFreq_r16_3[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_AssistanceDataPerFreq_r16_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_DL_PRS_AssistanceDataPerFreq_r16_specs_3 = { + sizeof(struct NR_DL_PRS_AssistanceDataPerFreq_r16__nr_DL_PRS_AssistanceDataPerFreq_r16), + offsetof(struct NR_DL_PRS_AssistanceDataPerFreq_r16__nr_DL_PRS_AssistanceDataPerFreq_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_AssistanceDataPerFreq_r16_3 = { + "nr-DL-PRS-AssistanceDataPerFreq-r16", + "nr-DL-PRS-AssistanceDataPerFreq-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_DL_PRS_AssistanceDataPerFreq_r16_tags_3, + sizeof(asn_DEF_nr_DL_PRS_AssistanceDataPerFreq_r16_tags_3) + /sizeof(asn_DEF_nr_DL_PRS_AssistanceDataPerFreq_r16_tags_3[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_AssistanceDataPerFreq_r16_tags_3, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_AssistanceDataPerFreq_r16_tags_3) + /sizeof(asn_DEF_nr_DL_PRS_AssistanceDataPerFreq_r16_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_AssistanceDataPerFreq_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_DL_PRS_AssistanceDataPerFreq_r16_3, + 1, /* Single element */ + &asn_SPC_nr_DL_PRS_AssistanceDataPerFreq_r16_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_PRS_AssistanceDataPerFreq_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_AssistanceDataPerFreq_r16, nr_DL_PRS_PositioningFrequencyLayer_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_PositioningFrequencyLayer_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-PositioningFrequencyLayer-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_AssistanceDataPerFreq_r16, nr_DL_PRS_AssistanceDataPerFreq_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_nr_DL_PRS_AssistanceDataPerFreq_r16_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_AssistanceDataPerFreq_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_AssistanceDataPerFreq_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-AssistanceDataPerFreq-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_AssistanceDataPerFreq_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_AssistanceDataPerFreq_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-PositioningFrequencyLayer-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-DL-PRS-AssistanceDataPerFreq-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_AssistanceDataPerFreq_r16_specs_1 = { + sizeof(struct NR_DL_PRS_AssistanceDataPerFreq_r16), + offsetof(struct NR_DL_PRS_AssistanceDataPerFreq_r16, _asn_ctx), + asn_MAP_NR_DL_PRS_AssistanceDataPerFreq_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_AssistanceDataPerFreq_r16 = { + "NR-DL-PRS-AssistanceDataPerFreq-r16", + "NR-DL-PRS-AssistanceDataPerFreq-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_PRS_AssistanceDataPerFreq_r16_tags_1, + sizeof(asn_DEF_NR_DL_PRS_AssistanceDataPerFreq_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_AssistanceDataPerFreq_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_AssistanceDataPerFreq_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_AssistanceDataPerFreq_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_AssistanceDataPerFreq_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_PRS_AssistanceDataPerFreq_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_DL_PRS_AssistanceDataPerFreq_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-DL-PRS-AssistanceDataPerFreq-r16.h b/asn.1/lpp_generated/NR-DL-PRS-AssistanceDataPerFreq-r16.h similarity index 75% rename from asn.1/generated/NR-DL-PRS-AssistanceDataPerFreq-r16.h rename to asn.1/lpp_generated/NR-DL-PRS-AssistanceDataPerFreq-r16.h index 190cff0f..e1521f6c 100644 --- a/asn.1/generated/NR-DL-PRS-AssistanceDataPerFreq-r16.h +++ b/asn.1/lpp_generated/NR-DL-PRS-AssistanceDataPerFreq-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_DL_PRS_AssistanceDataPerFreq_r16_H_ @@ -12,6 +12,7 @@ #include /* Including external dependencies */ +#include "NR-DL-PRS-PositioningFrequencyLayer-r16.h" #include #include #include @@ -21,18 +22,17 @@ extern "C" { #endif /* Forward declarations */ -struct NR_DL_PRS_PositioningFrequencyLayer_r16; struct NR_DL_PRS_AssistanceDataPerTRP_r16; /* NR-DL-PRS-AssistanceDataPerFreq-r16 */ typedef struct NR_DL_PRS_AssistanceDataPerFreq_r16 { - struct NR_DL_PRS_AssistanceDataPerFreq_r16__nr_DL_PRS_AssistanceDataPerFreq { + NR_DL_PRS_PositioningFrequencyLayer_r16_t nr_DL_PRS_PositioningFrequencyLayer_r16; + struct NR_DL_PRS_AssistanceDataPerFreq_r16__nr_DL_PRS_AssistanceDataPerFreq_r16 { A_SEQUENCE_OF(struct NR_DL_PRS_AssistanceDataPerTRP_r16) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; - } nr_DL_PRS_AssistanceDataPerFreq; - struct NR_DL_PRS_PositioningFrequencyLayer_r16 *nr_DL_PRS_PositioningFrequencyLayer_r16 /* OPTIONAL */; + } nr_DL_PRS_AssistanceDataPerFreq_r16; /* * This type is extensible, * possible extensions are below. @@ -51,9 +51,5 @@ extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_AssistanceDataPerFreq_r16_1[2]; } #endif -/* Referred external types */ -#include "NR-DL-PRS-PositioningFrequencyLayer-r16.h" -#include "NR-DL-PRS-AssistanceDataPerTRP-r16.h" - #endif /* _NR_DL_PRS_AssistanceDataPerFreq_r16_H_ */ #include diff --git a/asn.1/lpp_generated/NR-DL-PRS-AssistanceDataPerTRP-r16.c b/asn.1/lpp_generated/NR-DL-PRS-AssistanceDataPerTRP-r16.c new file mode 100644 index 00000000..5e8842b8 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-AssistanceDataPerTRP-r16.c @@ -0,0 +1,504 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-AssistanceDataPerTRP-r16.h" + +#include "NCGI-r15.h" +#include "NR-DL-PRS-ExpectedAoD-or-AoA-r17.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_dl_PRS_ID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_ExpectedRSTD_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -3841L && value <= 3841L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_ExpectedRSTD_Uncertainty_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 246L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prs_OnlyTP_r16_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ID_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_ExpectedRSTD_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, -3841, 3841 } /* (-3841..3841) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_ExpectedRSTD_Uncertainty_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 246 } /* (0..246) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_prs_OnlyTP_r16_value2enum_12[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_prs_OnlyTP_r16_enum2value_12[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_prs_OnlyTP_r16_specs_12 = { + asn_MAP_prs_OnlyTP_r16_value2enum_12, /* "tag" => N; sorted by tag */ + asn_MAP_prs_OnlyTP_r16_enum2value_12, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_prs_OnlyTP_r16_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prs_OnlyTP_r16_12 = { + "prs-OnlyTP-r16", + "prs-OnlyTP-r16", + &asn_OP_NativeEnumerated, + asn_DEF_prs_OnlyTP_r16_tags_12, + sizeof(asn_DEF_prs_OnlyTP_r16_tags_12) + /sizeof(asn_DEF_prs_OnlyTP_r16_tags_12[0]) - 1, /* 1 */ + asn_DEF_prs_OnlyTP_r16_tags_12, /* Same as above */ + sizeof(asn_DEF_prs_OnlyTP_r16_tags_12) + /sizeof(asn_DEF_prs_OnlyTP_r16_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prs_OnlyTP_r16_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_prs_OnlyTP_r16_specs_12 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_11[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16__ext1, prs_OnlyTP_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_prs_OnlyTP_r16_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-OnlyTP-r16" + }, +}; +static const int asn_MAP_ext1_oms_11[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* prs-OnlyTP-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_11 = { + sizeof(struct NR_DL_PRS_AssistanceDataPerTRP_r16__ext1), + offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_11, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_11, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_11 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_11, + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_11, /* Same as above */ + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_11, + 1, /* Elements count */ + &asn_SPC_ext1_specs_11 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_14[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16__ext2, nr_DL_PRS_ExpectedAoD_or_AoA_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ExpectedAoD_or_AoA_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ExpectedAoD-or-AoA-r17" + }, +}; +static const int asn_MAP_ext2_oms_14[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_14[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_14[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-DL-PRS-ExpectedAoD-or-AoA-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_14 = { + sizeof(struct NR_DL_PRS_AssistanceDataPerTRP_r16__ext2), + offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_14, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_14, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_14 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_14, + sizeof(asn_DEF_ext2_tags_14) + /sizeof(asn_DEF_ext2_tags_14[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_14, /* Same as above */ + sizeof(asn_DEF_ext2_tags_14) + /sizeof(asn_DEF_ext2_tags_14[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_14, + 1, /* Elements count */ + &asn_SPC_ext2_specs_14 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_PRS_AssistanceDataPerTRP_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16, dl_PRS_ID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ID_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ID_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ID-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16, nr_PhysCellID_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16, nr_CellGlobalID_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-CellGlobalID-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16, nr_ARFCN_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ARFCN-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16, nr_DL_PRS_SFN0_Offset_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_SFN0_Offset_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-SFN0-Offset-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16, nr_DL_PRS_ExpectedRSTD_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_ExpectedRSTD_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_ExpectedRSTD_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ExpectedRSTD-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16, nr_DL_PRS_ExpectedRSTD_Uncertainty_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_ExpectedRSTD_Uncertainty_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_ExpectedRSTD_Uncertainty_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ExpectedRSTD-Uncertainty-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16, nr_DL_PRS_Info_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_Info_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-Info-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + 0, + &asn_DEF_ext1_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + 0, + &asn_DEF_ext2_14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_NR_DL_PRS_AssistanceDataPerTRP_r16_oms_1[] = { 1, 2, 3, 8, 9 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_AssistanceDataPerTRP_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PhysCellID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-CellGlobalID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-ARFCN-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-DL-PRS-SFN0-Offset-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nr-DL-PRS-ExpectedRSTD-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* nr-DL-PRS-ExpectedRSTD-Uncertainty-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* nr-DL-PRS-Info-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_AssistanceDataPerTRP_r16_specs_1 = { + sizeof(struct NR_DL_PRS_AssistanceDataPerTRP_r16), + offsetof(struct NR_DL_PRS_AssistanceDataPerTRP_r16, _asn_ctx), + asn_MAP_NR_DL_PRS_AssistanceDataPerTRP_r16_tag2el_1, + 10, /* Count of tags in the map */ + asn_MAP_NR_DL_PRS_AssistanceDataPerTRP_r16_oms_1, /* Optional members */ + 3, 2, /* Root/Additions */ + 8, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16 = { + "NR-DL-PRS-AssistanceDataPerTRP-r16", + "NR-DL-PRS-AssistanceDataPerTRP-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16_tags_1, + sizeof(asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_PRS_AssistanceDataPerTRP_r16_1, + 10, /* Elements count */ + &asn_SPC_NR_DL_PRS_AssistanceDataPerTRP_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-AssistanceDataPerTRP-r16.h b/asn.1/lpp_generated/NR-DL-PRS-AssistanceDataPerTRP-r16.h new file mode 100644 index 00000000..04313b62 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-AssistanceDataPerTRP-r16.h @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_AssistanceDataPerTRP_r16_H_ +#define _NR_DL_PRS_AssistanceDataPerTRP_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include "NR-PhysCellID-r16.h" +#include "ARFCN-ValueNR-r15.h" +#include "NR-DL-PRS-SFN0-Offset-r16.h" +#include "NR-DL-PRS-Info-r16.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_PRS_AssistanceDataPerTRP_r16__ext1__prs_OnlyTP_r16 { + NR_DL_PRS_AssistanceDataPerTRP_r16__ext1__prs_OnlyTP_r16_true = 0 +} e_NR_DL_PRS_AssistanceDataPerTRP_r16__ext1__prs_OnlyTP_r16; + +/* Forward declarations */ +struct NCGI_r15; +struct NR_DL_PRS_ExpectedAoD_or_AoA_r17; + +/* NR-DL-PRS-AssistanceDataPerTRP-r16 */ +typedef struct NR_DL_PRS_AssistanceDataPerTRP_r16 { + long dl_PRS_ID_r16; + NR_PhysCellID_r16_t *nr_PhysCellID_r16; /* OPTIONAL */ + struct NCGI_r15 *nr_CellGlobalID_r16; /* OPTIONAL */ + ARFCN_ValueNR_r15_t *nr_ARFCN_r16; /* OPTIONAL */ + NR_DL_PRS_SFN0_Offset_r16_t nr_DL_PRS_SFN0_Offset_r16; + long nr_DL_PRS_ExpectedRSTD_r16; + long nr_DL_PRS_ExpectedRSTD_Uncertainty_r16; + NR_DL_PRS_Info_r16_t nr_DL_PRS_Info_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_PRS_AssistanceDataPerTRP_r16__ext1 { + long *prs_OnlyTP_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct NR_DL_PRS_AssistanceDataPerTRP_r16__ext2 { + struct NR_DL_PRS_ExpectedAoD_or_AoA_r17 *nr_DL_PRS_ExpectedAoD_or_AoA_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_AssistanceDataPerTRP_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_prs_OnlyTP_r16_12; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_AssistanceDataPerTRP_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_AssistanceDataPerTRP_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_AssistanceDataPerTRP_r16_1[10]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_AssistanceDataPerTRP_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-BeamInfo-r16.c b/asn.1/lpp_generated/NR-DL-PRS-BeamInfo-r16.c new file mode 100644 index 00000000..73410711 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-BeamInfo-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-BeamInfo-r16.h" + +#include "NR-DL-PRS-BeamInfoPerFreqLayer-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_PRS_BeamInfo_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_PRS_BeamInfo_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_PRS_BeamInfoPerFreqLayer_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_BeamInfo_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_DL_PRS_BeamInfo_r16_specs_1 = { + sizeof(struct NR_DL_PRS_BeamInfo_r16), + offsetof(struct NR_DL_PRS_BeamInfo_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_BeamInfo_r16 = { + "NR-DL-PRS-BeamInfo-r16", + "NR-DL-PRS-BeamInfo-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_DL_PRS_BeamInfo_r16_tags_1, + sizeof(asn_DEF_NR_DL_PRS_BeamInfo_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_BeamInfo_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_BeamInfo_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_BeamInfo_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_BeamInfo_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_PRS_BeamInfo_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_DL_PRS_BeamInfo_r16_1, + 1, /* Single element */ + &asn_SPC_NR_DL_PRS_BeamInfo_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-BeamInfo-r16.h b/asn.1/lpp_generated/NR-DL-PRS-BeamInfo-r16.h new file mode 100644 index 00000000..eeeaab85 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-BeamInfo-r16.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_BeamInfo_r16_H_ +#define _NR_DL_PRS_BeamInfo_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_DL_PRS_BeamInfoPerFreqLayer_r16; + +/* NR-DL-PRS-BeamInfo-r16 */ +typedef struct NR_DL_PRS_BeamInfo_r16 { + A_SEQUENCE_OF(struct NR_DL_PRS_BeamInfoPerFreqLayer_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_BeamInfo_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_BeamInfo_r16; +extern asn_SET_OF_specifics_t asn_SPC_NR_DL_PRS_BeamInfo_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_BeamInfo_r16_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_DL_PRS_BeamInfo_r16_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_BeamInfo_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-BeamInfoPerFreqLayer-r16.c b/asn.1/lpp_generated/NR-DL-PRS-BeamInfoPerFreqLayer-r16.c new file mode 100644 index 00000000..2e66cd7f --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-BeamInfoPerFreqLayer-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-BeamInfoPerFreqLayer-r16.h" + +#include "NR-DL-PRS-BeamInfoPerTRP-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_PRS_BeamInfoPerFreqLayer_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_PRS_BeamInfoPerFreqLayer_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_PRS_BeamInfoPerTRP_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_BeamInfoPerFreqLayer_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_DL_PRS_BeamInfoPerFreqLayer_r16_specs_1 = { + sizeof(struct NR_DL_PRS_BeamInfoPerFreqLayer_r16), + offsetof(struct NR_DL_PRS_BeamInfoPerFreqLayer_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_BeamInfoPerFreqLayer_r16 = { + "NR-DL-PRS-BeamInfoPerFreqLayer-r16", + "NR-DL-PRS-BeamInfoPerFreqLayer-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_DL_PRS_BeamInfoPerFreqLayer_r16_tags_1, + sizeof(asn_DEF_NR_DL_PRS_BeamInfoPerFreqLayer_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_BeamInfoPerFreqLayer_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_BeamInfoPerFreqLayer_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_BeamInfoPerFreqLayer_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_BeamInfoPerFreqLayer_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_PRS_BeamInfoPerFreqLayer_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_DL_PRS_BeamInfoPerFreqLayer_r16_1, + 1, /* Single element */ + &asn_SPC_NR_DL_PRS_BeamInfoPerFreqLayer_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-BeamInfoPerFreqLayer-r16.h b/asn.1/lpp_generated/NR-DL-PRS-BeamInfoPerFreqLayer-r16.h new file mode 100644 index 00000000..146c8982 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-BeamInfoPerFreqLayer-r16.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_BeamInfoPerFreqLayer_r16_H_ +#define _NR_DL_PRS_BeamInfoPerFreqLayer_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_DL_PRS_BeamInfoPerTRP_r16; + +/* NR-DL-PRS-BeamInfoPerFreqLayer-r16 */ +typedef struct NR_DL_PRS_BeamInfoPerFreqLayer_r16 { + A_SEQUENCE_OF(struct NR_DL_PRS_BeamInfoPerTRP_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_BeamInfoPerFreqLayer_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_BeamInfoPerFreqLayer_r16; +extern asn_SET_OF_specifics_t asn_SPC_NR_DL_PRS_BeamInfoPerFreqLayer_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_BeamInfoPerFreqLayer_r16_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_DL_PRS_BeamInfoPerFreqLayer_r16_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_BeamInfoPerFreqLayer_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-BeamInfoPerTRP-r16.c b/asn.1/lpp_generated/NR-DL-PRS-BeamInfoPerTRP-r16.c new file mode 100644 index 00000000..1cd6fc8a --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-BeamInfoPerTRP-r16.c @@ -0,0 +1,243 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-BeamInfoPerTRP-r16.h" + +#include "NCGI-r15.h" +#include "LCS-GCS-TranslationParameter-r16.h" +#include "DL-PRS-BeamInfoSet-r16.h" +static int +memb_dl_PRS_ID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_associated_DL_PRS_ID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ID_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_associated_DL_PRS_ID_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_PRS_BeamInfoPerTRP_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_BeamInfoPerTRP_r16, dl_PRS_ID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ID_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ID_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ID-r16" + }, + { ATF_POINTER, 6, offsetof(struct NR_DL_PRS_BeamInfoPerTRP_r16, nr_PhysCellID_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r16" + }, + { ATF_POINTER, 5, offsetof(struct NR_DL_PRS_BeamInfoPerTRP_r16, nr_CellGlobalID_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-CellGlobalID-r16" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_PRS_BeamInfoPerTRP_r16, nr_ARFCN_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ARFCN-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_PRS_BeamInfoPerTRP_r16, associated_DL_PRS_ID_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_associated_DL_PRS_ID_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_associated_DL_PRS_ID_r16_constraint_1 + }, + 0, 0, /* No default value */ + "associated-DL-PRS-ID-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_PRS_BeamInfoPerTRP_r16, lcs_GCS_TranslationParameter_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LCS_GCS_TranslationParameter_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lcs-GCS-TranslationParameter-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_BeamInfoPerTRP_r16, dl_PRS_BeamInfoSet_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DL_PRS_BeamInfoSet_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-BeamInfoSet-r16" + }, +}; +static const int asn_MAP_NR_DL_PRS_BeamInfoPerTRP_r16_oms_1[] = { 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_BeamInfoPerTRP_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_BeamInfoPerTRP_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PhysCellID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-CellGlobalID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-ARFCN-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* associated-DL-PRS-ID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* lcs-GCS-TranslationParameter-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* dl-PRS-BeamInfoSet-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_BeamInfoPerTRP_r16_specs_1 = { + sizeof(struct NR_DL_PRS_BeamInfoPerTRP_r16), + offsetof(struct NR_DL_PRS_BeamInfoPerTRP_r16, _asn_ctx), + asn_MAP_NR_DL_PRS_BeamInfoPerTRP_r16_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_NR_DL_PRS_BeamInfoPerTRP_r16_oms_1, /* Optional members */ + 6, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_BeamInfoPerTRP_r16 = { + "NR-DL-PRS-BeamInfoPerTRP-r16", + "NR-DL-PRS-BeamInfoPerTRP-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_PRS_BeamInfoPerTRP_r16_tags_1, + sizeof(asn_DEF_NR_DL_PRS_BeamInfoPerTRP_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_BeamInfoPerTRP_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_BeamInfoPerTRP_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_BeamInfoPerTRP_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_BeamInfoPerTRP_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_PRS_BeamInfoPerTRP_r16_1, + 7, /* Elements count */ + &asn_SPC_NR_DL_PRS_BeamInfoPerTRP_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-BeamInfoPerTRP-r16.h b/asn.1/lpp_generated/NR-DL-PRS-BeamInfoPerTRP-r16.h new file mode 100644 index 00000000..4969e425 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-BeamInfoPerTRP-r16.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_BeamInfoPerTRP_r16_H_ +#define _NR_DL_PRS_BeamInfoPerTRP_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include "NR-PhysCellID-r16.h" +#include "ARFCN-ValueNR-r15.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NCGI_r15; +struct LCS_GCS_TranslationParameter_r16; +struct DL_PRS_BeamInfoSet_r16; + +/* NR-DL-PRS-BeamInfoPerTRP-r16 */ +typedef struct NR_DL_PRS_BeamInfoPerTRP_r16 { + long dl_PRS_ID_r16; + NR_PhysCellID_r16_t *nr_PhysCellID_r16; /* OPTIONAL */ + struct NCGI_r15 *nr_CellGlobalID_r16; /* OPTIONAL */ + ARFCN_ValueNR_r15_t *nr_ARFCN_r16; /* OPTIONAL */ + long *associated_DL_PRS_ID_r16; /* OPTIONAL */ + struct LCS_GCS_TranslationParameter_r16 *lcs_GCS_TranslationParameter_r16; /* OPTIONAL */ + struct DL_PRS_BeamInfoSet_r16 *dl_PRS_BeamInfoSet_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_BeamInfoPerTRP_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_BeamInfoPerTRP_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_BeamInfoPerTRP_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_BeamInfoPerTRP_r16_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_BeamInfoPerTRP_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-ExpectedAoD-or-AoA-r17.c b/asn.1/lpp_generated/NR-DL-PRS-ExpectedAoD-or-AoA-r17.c new file mode 100644 index 00000000..3b2caf6e --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ExpectedAoD-or-AoA-r17.c @@ -0,0 +1,574 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-ExpectedAoD-or-AoA-r17.h" + +static int +memb_expectedDL_AzimuthAoD_r17_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 359L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_expectedDL_AzimuthAoD_Unc_r17_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 60L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_expectedDL_ZenithAoD_r17_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 180L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_expectedDL_ZenithAoD_Unc_r17_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 30L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_expectedDL_AzimuthAoA_r17_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 359L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_expectedDL_AzimuthAoA_Unc_r17_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 60L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_expectedDL_ZenithAoA_r17_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 180L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_expectedDL_ZenithAoA_Unc_r17_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 30L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_expectedDL_AzimuthAoD_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 359 } /* (0..359) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_expectedDL_AzimuthAoD_Unc_r17_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 60 } /* (0..60) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_expectedDL_ZenithAoD_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 180 } /* (0..180) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_expectedDL_ZenithAoD_Unc_r17_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 30 } /* (0..30) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_expectedDL_AzimuthAoA_r17_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 359 } /* (0..359) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_expectedDL_AzimuthAoA_Unc_r17_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 60 } /* (0..60) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_expectedDL_ZenithAoA_r17_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 180 } /* (0..180) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_expectedDL_ZenithAoA_Unc_r17_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 30 } /* (0..30) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_PRS_ExpectedAoD_or_AoA_r17_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_expectedAoD_r17_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ExpectedAoD_or_AoA_r17__expectedAoD_r17, expectedDL_AzimuthAoD_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_expectedDL_AzimuthAoD_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_expectedDL_AzimuthAoD_r17_constraint_2 + }, + 0, 0, /* No default value */ + "expectedDL-AzimuthAoD-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_ExpectedAoD_or_AoA_r17__expectedAoD_r17, expectedDL_AzimuthAoD_Unc_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_expectedDL_AzimuthAoD_Unc_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_expectedDL_AzimuthAoD_Unc_r17_constraint_2 + }, + 0, 0, /* No default value */ + "expectedDL-AzimuthAoD-Unc-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ExpectedAoD_or_AoA_r17__expectedAoD_r17, expectedDL_ZenithAoD_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_expectedDL_ZenithAoD_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_expectedDL_ZenithAoD_r17_constraint_2 + }, + 0, 0, /* No default value */ + "expectedDL-ZenithAoD-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_ExpectedAoD_or_AoA_r17__expectedAoD_r17, expectedDL_ZenithAoD_Unc_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_expectedDL_ZenithAoD_Unc_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_expectedDL_ZenithAoD_Unc_r17_constraint_2 + }, + 0, 0, /* No default value */ + "expectedDL-ZenithAoD-Unc-r17" + }, +}; +static const int asn_MAP_expectedAoD_r17_oms_2[] = { 1, 3 }; +static const ber_tlv_tag_t asn_DEF_expectedAoD_r17_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_expectedAoD_r17_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* expectedDL-AzimuthAoD-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* expectedDL-AzimuthAoD-Unc-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* expectedDL-ZenithAoD-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* expectedDL-ZenithAoD-Unc-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_expectedAoD_r17_specs_2 = { + sizeof(struct NR_DL_PRS_ExpectedAoD_or_AoA_r17__expectedAoD_r17), + offsetof(struct NR_DL_PRS_ExpectedAoD_or_AoA_r17__expectedAoD_r17, _asn_ctx), + asn_MAP_expectedAoD_r17_tag2el_2, + 4, /* Count of tags in the map */ + asn_MAP_expectedAoD_r17_oms_2, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_expectedAoD_r17_2 = { + "expectedAoD-r17", + "expectedAoD-r17", + &asn_OP_SEQUENCE, + asn_DEF_expectedAoD_r17_tags_2, + sizeof(asn_DEF_expectedAoD_r17_tags_2) + /sizeof(asn_DEF_expectedAoD_r17_tags_2[0]) - 1, /* 1 */ + asn_DEF_expectedAoD_r17_tags_2, /* Same as above */ + sizeof(asn_DEF_expectedAoD_r17_tags_2) + /sizeof(asn_DEF_expectedAoD_r17_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_expectedAoD_r17_2, + 4, /* Elements count */ + &asn_SPC_expectedAoD_r17_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_expectedAoA_r17_7[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ExpectedAoD_or_AoA_r17__expectedAoA_r17, expectedDL_AzimuthAoA_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_expectedDL_AzimuthAoA_r17_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_expectedDL_AzimuthAoA_r17_constraint_7 + }, + 0, 0, /* No default value */ + "expectedDL-AzimuthAoA-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_ExpectedAoD_or_AoA_r17__expectedAoA_r17, expectedDL_AzimuthAoA_Unc_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_expectedDL_AzimuthAoA_Unc_r17_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_expectedDL_AzimuthAoA_Unc_r17_constraint_7 + }, + 0, 0, /* No default value */ + "expectedDL-AzimuthAoA-Unc-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ExpectedAoD_or_AoA_r17__expectedAoA_r17, expectedDL_ZenithAoA_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_expectedDL_ZenithAoA_r17_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_expectedDL_ZenithAoA_r17_constraint_7 + }, + 0, 0, /* No default value */ + "expectedDL-ZenithAoA-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_ExpectedAoD_or_AoA_r17__expectedAoA_r17, expectedDL_ZenithAoA_Unc_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_expectedDL_ZenithAoA_Unc_r17_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_expectedDL_ZenithAoA_Unc_r17_constraint_7 + }, + 0, 0, /* No default value */ + "expectedDL-ZenithAoA-Unc-r17" + }, +}; +static const int asn_MAP_expectedAoA_r17_oms_7[] = { 1, 3 }; +static const ber_tlv_tag_t asn_DEF_expectedAoA_r17_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_expectedAoA_r17_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* expectedDL-AzimuthAoA-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* expectedDL-AzimuthAoA-Unc-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* expectedDL-ZenithAoA-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* expectedDL-ZenithAoA-Unc-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_expectedAoA_r17_specs_7 = { + sizeof(struct NR_DL_PRS_ExpectedAoD_or_AoA_r17__expectedAoA_r17), + offsetof(struct NR_DL_PRS_ExpectedAoD_or_AoA_r17__expectedAoA_r17, _asn_ctx), + asn_MAP_expectedAoA_r17_tag2el_7, + 4, /* Count of tags in the map */ + asn_MAP_expectedAoA_r17_oms_7, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_expectedAoA_r17_7 = { + "expectedAoA-r17", + "expectedAoA-r17", + &asn_OP_SEQUENCE, + asn_DEF_expectedAoA_r17_tags_7, + sizeof(asn_DEF_expectedAoA_r17_tags_7) + /sizeof(asn_DEF_expectedAoA_r17_tags_7[0]) - 1, /* 1 */ + asn_DEF_expectedAoA_r17_tags_7, /* Same as above */ + sizeof(asn_DEF_expectedAoA_r17_tags_7) + /sizeof(asn_DEF_expectedAoA_r17_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_expectedAoA_r17_7, + 4, /* Elements count */ + &asn_SPC_expectedAoA_r17_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_PRS_ExpectedAoD_or_AoA_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ExpectedAoD_or_AoA_r17, choice.expectedAoD_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_expectedAoD_r17_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "expectedAoD-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ExpectedAoD_or_AoA_r17, choice.expectedAoA_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_expectedAoA_r17_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "expectedAoA-r17" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_ExpectedAoD_or_AoA_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* expectedAoD-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* expectedAoA-r17 */ +}; +asn_CHOICE_specifics_t asn_SPC_NR_DL_PRS_ExpectedAoD_or_AoA_r17_specs_1 = { + sizeof(struct NR_DL_PRS_ExpectedAoD_or_AoA_r17), + offsetof(struct NR_DL_PRS_ExpectedAoD_or_AoA_r17, _asn_ctx), + offsetof(struct NR_DL_PRS_ExpectedAoD_or_AoA_r17, present), + sizeof(((struct NR_DL_PRS_ExpectedAoD_or_AoA_r17 *)0)->present), + asn_MAP_NR_DL_PRS_ExpectedAoD_or_AoA_r17_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ExpectedAoD_or_AoA_r17 = { + "NR-DL-PRS-ExpectedAoD-or-AoA-r17", + "NR-DL-PRS-ExpectedAoD-or-AoA-r17", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_PRS_ExpectedAoD_or_AoA_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_NR_DL_PRS_ExpectedAoD_or_AoA_r17_1, + 2, /* Elements count */ + &asn_SPC_NR_DL_PRS_ExpectedAoD_or_AoA_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-ExpectedAoD-or-AoA-r17.h b/asn.1/lpp_generated/NR-DL-PRS-ExpectedAoD-or-AoA-r17.h new file mode 100644 index 00000000..8582d258 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ExpectedAoD-or-AoA-r17.h @@ -0,0 +1,69 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_ExpectedAoD_or_AoA_r17_H_ +#define _NR_DL_PRS_ExpectedAoD_or_AoA_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_PRS_ExpectedAoD_or_AoA_r17_PR { + NR_DL_PRS_ExpectedAoD_or_AoA_r17_PR_NOTHING, /* No components present */ + NR_DL_PRS_ExpectedAoD_or_AoA_r17_PR_expectedAoD_r17, + NR_DL_PRS_ExpectedAoD_or_AoA_r17_PR_expectedAoA_r17 +} NR_DL_PRS_ExpectedAoD_or_AoA_r17_PR; + +/* NR-DL-PRS-ExpectedAoD-or-AoA-r17 */ +typedef struct NR_DL_PRS_ExpectedAoD_or_AoA_r17 { + NR_DL_PRS_ExpectedAoD_or_AoA_r17_PR present; + union NR_DL_PRS_ExpectedAoD_or_AoA_r17_u { + struct NR_DL_PRS_ExpectedAoD_or_AoA_r17__expectedAoD_r17 { + long expectedDL_AzimuthAoD_r17; + long *expectedDL_AzimuthAoD_Unc_r17; /* OPTIONAL */ + long expectedDL_ZenithAoD_r17; + long *expectedDL_ZenithAoD_Unc_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } expectedAoD_r17; + struct NR_DL_PRS_ExpectedAoD_or_AoA_r17__expectedAoA_r17 { + long expectedDL_AzimuthAoA_r17; + long *expectedDL_AzimuthAoA_Unc_r17; /* OPTIONAL */ + long expectedDL_ZenithAoA_r17; + long *expectedDL_ZenithAoA_Unc_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } expectedAoA_r17; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_ExpectedAoD_or_AoA_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ExpectedAoD_or_AoA_r17; +extern asn_CHOICE_specifics_t asn_SPC_NR_DL_PRS_ExpectedAoD_or_AoA_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_ExpectedAoD_or_AoA_r17_1[2]; +extern asn_per_constraints_t asn_PER_type_NR_DL_PRS_ExpectedAoD_or_AoA_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_ExpectedAoD_or_AoA_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-Assistance-r17.c b/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-Assistance-r17.c new file mode 100644 index 00000000..e626f7cc --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-Assistance-r17.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-ExpectedLOS-NLOS-Assistance-r17.h" + +#include "NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerFreqLayer-r17.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_specs_1 = { + sizeof(struct NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17), + offsetof(struct NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17 = { + "NR-DL-PRS-ExpectedLOS-NLOS-Assistance-r17", + "NR-DL-PRS-ExpectedLOS-NLOS-Assistance-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_tags_1, + sizeof(asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_1, + 1, /* Single element */ + &asn_SPC_NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-Assistance-r17.h b/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-Assistance-r17.h new file mode 100644 index 00000000..e7e53409 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-Assistance-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_H_ +#define _NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17; + +/* NR-DL-PRS-ExpectedLOS-NLOS-Assistance-r17 */ +typedef struct NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17 { + A_SEQUENCE_OF(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17; +extern asn_SET_OF_specifics_t asn_SPC_NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerFreqLayer-r17.c b/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerFreqLayer-r17.c new file mode 100644 index 00000000..3ed5605d --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerFreqLayer-r17.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerFreqLayer-r17.h" + +#include "NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerTRP-r17.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_specs_1 = { + sizeof(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17), + offsetof(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17 = { + "NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerFreqLayer-r17", + "NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerFreqLayer-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_tags_1, + sizeof(asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_1, + 1, /* Single element */ + &asn_SPC_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerFreqLayer-r17.h b/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerFreqLayer-r17.h new file mode 100644 index 00000000..63e21882 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerFreqLayer-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_H_ +#define _NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17; + +/* NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerFreqLayer-r17 */ +typedef struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17 { + A_SEQUENCE_OF(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17; +extern asn_SET_OF_specifics_t asn_SPC_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerFreqLayer_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerResource-r17.c b/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerResource-r17.c new file mode 100644 index 00000000..083fbe87 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerResource-r17.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerResource-r17.h" + +#include "LOS-NLOS-Indicator-r17.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_LOS_NLOS_Indicator_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_specs_1 = { + sizeof(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17), + offsetof(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17 = { + "NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerResource-r17", + "NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerResource-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_tags_1, + sizeof(asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_1, + 1, /* Single element */ + &asn_SPC_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerResource-r17.h b/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerResource-r17.h new file mode 100644 index 00000000..5b7b94a0 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerResource-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_H_ +#define _NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct LOS_NLOS_Indicator_r17; + +/* NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerResource-r17 */ +typedef struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17 { + A_SEQUENCE_OF(struct LOS_NLOS_Indicator_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17; +extern asn_SET_OF_specifics_t asn_SPC_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerTRP-r17.c b/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerTRP-r17.c new file mode 100644 index 00000000..59aab5b2 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerTRP-r17.c @@ -0,0 +1,347 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerTRP-r17.h" + +#include "NCGI-r15.h" +#include "NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerResource-r17.h" +static int +memb_perResource_r17_constraint_6(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 2UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_PRS_ID_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_perResource_r17_constr_8 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_perResource_r17_constr_8 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_los_nlos_indicator_r17_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ID_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_perResource_r17_8[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_perResource_r17_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_perResource_r17_specs_8 = { + sizeof(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17__nr_los_nlos_indicator_r17__perResource_r17), + offsetof(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17__nr_los_nlos_indicator_r17__perResource_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_perResource_r17_8 = { + "perResource-r17", + "perResource-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_perResource_r17_tags_8, + sizeof(asn_DEF_perResource_r17_tags_8) + /sizeof(asn_DEF_perResource_r17_tags_8[0]) - 1, /* 1 */ + asn_DEF_perResource_r17_tags_8, /* Same as above */ + sizeof(asn_DEF_perResource_r17_tags_8) + /sizeof(asn_DEF_perResource_r17_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_perResource_r17_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_perResource_r17_8, + 1, /* Single element */ + &asn_SPC_perResource_r17_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_los_nlos_indicator_r17_6[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17__nr_los_nlos_indicator_r17, choice.perTrp_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_Indicator_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "perTrp-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17__nr_los_nlos_indicator_r17, choice.perResource_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_perResource_r17_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_perResource_r17_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_perResource_r17_constraint_6 + }, + 0, 0, /* No default value */ + "perResource-r17" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_los_nlos_indicator_r17_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* perTrp-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* perResource-r17 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nr_los_nlos_indicator_r17_specs_6 = { + sizeof(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17__nr_los_nlos_indicator_r17), + offsetof(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17__nr_los_nlos_indicator_r17, _asn_ctx), + offsetof(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17__nr_los_nlos_indicator_r17, present), + sizeof(((struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17__nr_los_nlos_indicator_r17 *)0)->present), + asn_MAP_nr_los_nlos_indicator_r17_tag2el_6, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_los_nlos_indicator_r17_6 = { + "nr-los-nlos-indicator-r17", + "nr-los-nlos-indicator-r17", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_los_nlos_indicator_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nr_los_nlos_indicator_r17_6, + 2, /* Elements count */ + &asn_SPC_nr_los_nlos_indicator_r17_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17, dl_PRS_ID_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ID_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ID_r17_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ID-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17, nr_PhysCellID_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17, nr_CellGlobalID_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-CellGlobalID-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17, nr_ARFCN_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ARFCN-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17, nr_los_nlos_indicator_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nr_los_nlos_indicator_r17_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-los-nlos-indicator-r17" + }, +}; +static const int asn_MAP_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_oms_1[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PhysCellID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-CellGlobalID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-ARFCN-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* nr-los-nlos-indicator-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_specs_1 = { + sizeof(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17), + offsetof(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17, _asn_ctx), + asn_MAP_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17 = { + "NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerTRP-r17", + "NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerTRP-r17", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_tags_1, + sizeof(asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_1, + 5, /* Elements count */ + &asn_SPC_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerTRP-r17.h b/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerTRP-r17.h new file mode 100644 index 00000000..f842e504 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerTRP-r17.h @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_H_ +#define _NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include "NR-PhysCellID-r16.h" +#include "ARFCN-ValueNR-r15.h" +#include "LOS-NLOS-Indicator-r17.h" +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17__nr_los_nlos_indicator_r17_PR { + NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17__nr_los_nlos_indicator_r17_PR_NOTHING, /* No components present */ + NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17__nr_los_nlos_indicator_r17_PR_perTrp_r17, + NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17__nr_los_nlos_indicator_r17_PR_perResource_r17 +} NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17__nr_los_nlos_indicator_r17_PR; + +/* Forward declarations */ +struct NCGI_r15; +struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17; + +/* NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerTRP-r17 */ +typedef struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17 { + long dl_PRS_ID_r17; + NR_PhysCellID_r16_t *nr_PhysCellID_r17; /* OPTIONAL */ + struct NCGI_r15 *nr_CellGlobalID_r17; /* OPTIONAL */ + ARFCN_ValueNR_r15_t *nr_ARFCN_r17; /* OPTIONAL */ + struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17__nr_los_nlos_indicator_r17 { + NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17__nr_los_nlos_indicator_r17_PR present; + union NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17__nr_los_nlos_indicator_r17_u { + LOS_NLOS_Indicator_r17_t perTrp_r17; + struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17__nr_los_nlos_indicator_r17__perResource_r17 { + A_SEQUENCE_OF(struct NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerResource_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } perResource_r17; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } nr_los_nlos_indicator_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_ExpectedLOS_NLOS_AssistancePerTRP_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-Info-r16.c b/asn.1/lpp_generated/NR-DL-PRS-Info-r16.c new file mode 100644 index 00000000..a88fbd74 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-Info-r16.c @@ -0,0 +1,160 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-Info-r16.h" + +#include "NR-DL-PRS-ResourceSet-r16.h" +static int +memb_nr_DL_PRS_ResourceSetList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 2UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_ResourceSetList_r16_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_ResourceSetList_r16_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_DL_PRS_ResourceSetList_r16_2[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_PRS_ResourceSet_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_ResourceSetList_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_DL_PRS_ResourceSetList_r16_specs_2 = { + sizeof(struct NR_DL_PRS_Info_r16__nr_DL_PRS_ResourceSetList_r16), + offsetof(struct NR_DL_PRS_Info_r16__nr_DL_PRS_ResourceSetList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_ResourceSetList_r16_2 = { + "nr-DL-PRS-ResourceSetList-r16", + "nr-DL-PRS-ResourceSetList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_DL_PRS_ResourceSetList_r16_tags_2, + sizeof(asn_DEF_nr_DL_PRS_ResourceSetList_r16_tags_2) + /sizeof(asn_DEF_nr_DL_PRS_ResourceSetList_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_ResourceSetList_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_ResourceSetList_r16_tags_2) + /sizeof(asn_DEF_nr_DL_PRS_ResourceSetList_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_ResourceSetList_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_DL_PRS_ResourceSetList_r16_2, + 1, /* Single element */ + &asn_SPC_nr_DL_PRS_ResourceSetList_r16_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_PRS_Info_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Info_r16, nr_DL_PRS_ResourceSetList_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_nr_DL_PRS_ResourceSetList_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_ResourceSetList_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_ResourceSetList_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceSetList-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_Info_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_Info_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-DL-PRS-ResourceSetList-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_Info_r16_specs_1 = { + sizeof(struct NR_DL_PRS_Info_r16), + offsetof(struct NR_DL_PRS_Info_r16, _asn_ctx), + asn_MAP_NR_DL_PRS_Info_r16_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_Info_r16 = { + "NR-DL-PRS-Info-r16", + "NR-DL-PRS-Info-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_PRS_Info_r16_tags_1, + sizeof(asn_DEF_NR_DL_PRS_Info_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_Info_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_Info_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_Info_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_Info_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_PRS_Info_r16_1, + 1, /* Elements count */ + &asn_SPC_NR_DL_PRS_Info_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-Info-r16.h b/asn.1/lpp_generated/NR-DL-PRS-Info-r16.h new file mode 100644 index 00000000..3ab76ed5 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-Info-r16.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_Info_r16_H_ +#define _NR_DL_PRS_Info_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_DL_PRS_ResourceSet_r16; + +/* NR-DL-PRS-Info-r16 */ +typedef struct NR_DL_PRS_Info_r16 { + struct NR_DL_PRS_Info_r16__nr_DL_PRS_ResourceSetList_r16 { + A_SEQUENCE_OF(struct NR_DL_PRS_ResourceSet_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } nr_DL_PRS_ResourceSetList_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_Info_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_Info_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_Info_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_Info_r16_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_Info_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-MeasurementTimeWindowsConfig-r18.c b/asn.1/lpp_generated/NR-DL-PRS-MeasurementTimeWindowsConfig-r18.c new file mode 100644 index 00000000..4a9f9e01 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-MeasurementTimeWindowsConfig-r18.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-MeasurementTimeWindowsConfig-r18.h" + +#include "NR-DL-PRS-MeasurementTimeWindowsConfigElement-r18.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_PRS_MeasurementTimeWindowsConfig_r18_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_PRS_MeasurementTimeWindowsConfig_r18_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfig_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_DL_PRS_MeasurementTimeWindowsConfig_r18_specs_1 = { + sizeof(struct NR_DL_PRS_MeasurementTimeWindowsConfig_r18), + offsetof(struct NR_DL_PRS_MeasurementTimeWindowsConfig_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfig_r18 = { + "NR-DL-PRS-MeasurementTimeWindowsConfig-r18", + "NR-DL-PRS-MeasurementTimeWindowsConfig-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfig_r18_tags_1, + sizeof(asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfig_r18_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfig_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfig_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfig_r18_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfig_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_PRS_MeasurementTimeWindowsConfig_r18_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_DL_PRS_MeasurementTimeWindowsConfig_r18_1, + 1, /* Single element */ + &asn_SPC_NR_DL_PRS_MeasurementTimeWindowsConfig_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-MeasurementTimeWindowsConfig-r18.h b/asn.1/lpp_generated/NR-DL-PRS-MeasurementTimeWindowsConfig-r18.h new file mode 100644 index 00000000..3b4e8e97 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-MeasurementTimeWindowsConfig-r18.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_MeasurementTimeWindowsConfig_r18_H_ +#define _NR_DL_PRS_MeasurementTimeWindowsConfig_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18; + +/* NR-DL-PRS-MeasurementTimeWindowsConfig-r18 */ +typedef struct NR_DL_PRS_MeasurementTimeWindowsConfig_r18 { + A_SEQUENCE_OF(struct NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_MeasurementTimeWindowsConfig_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfig_r18; +extern asn_SET_OF_specifics_t asn_SPC_NR_DL_PRS_MeasurementTimeWindowsConfig_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_MeasurementTimeWindowsConfig_r18_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_DL_PRS_MeasurementTimeWindowsConfig_r18_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_MeasurementTimeWindowsConfig_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-MeasurementTimeWindowsConfigElement-r18.c b/asn.1/lpp_generated/NR-DL-PRS-MeasurementTimeWindowsConfigElement-r18.c new file mode 100644 index 00000000..9a859060 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-MeasurementTimeWindowsConfigElement-r18.c @@ -0,0 +1,417 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-MeasurementTimeWindowsConfigElement-r18.h" + +#include "NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.h" +#include "NR-SelectedDL-PRS-IndexPerTRP-r18.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_nr_StartSFN_TimeWindow_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_SymbolOffsetTimeWindow_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 13L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_SelectedDL_PRS_FrequencyLayerIndex_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_SelectedDL_PRS_IndexListPerFreq_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 64UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DurationTimeWindow_r18_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 6 } /* (0..6,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_SelectedDL_PRS_IndexListPerFreq_r18_constr_15 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_StartSFN_TimeWindow_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_SymbolOffsetTimeWindow_r18_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 13 } /* (0..13) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_SelectedDL_PRS_FrequencyLayerIndex_r18_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_SelectedDL_PRS_IndexListPerFreq_r18_constr_15 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_nr_DurationTimeWindow_r18_value2enum_5[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_nr_DurationTimeWindow_r18_enum2value_5[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 2, /* n4(2) */ + 3, /* n6(3) */ + 4 /* n8(4) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_DurationTimeWindow_r18_specs_5 = { + asn_MAP_nr_DurationTimeWindow_r18_value2enum_5, /* "tag" => N; sorted by tag */ + asn_MAP_nr_DurationTimeWindow_r18_enum2value_5, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 8, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_DurationTimeWindow_r18_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DurationTimeWindow_r18_5 = { + "nr-DurationTimeWindow-r18", + "nr-DurationTimeWindow-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_DurationTimeWindow_r18_tags_5, + sizeof(asn_DEF_nr_DurationTimeWindow_r18_tags_5) + /sizeof(asn_DEF_nr_DurationTimeWindow_r18_tags_5[0]) - 1, /* 1 */ + asn_DEF_nr_DurationTimeWindow_r18_tags_5, /* Same as above */ + sizeof(asn_DEF_nr_DurationTimeWindow_r18_tags_5) + /sizeof(asn_DEF_nr_DurationTimeWindow_r18_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DurationTimeWindow_r18_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_DurationTimeWindow_r18_specs_5 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_SelectedDL_PRS_IndexListPerFreq_r18_15[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r18_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_SelectedDL_PRS_IndexListPerFreq_r18_specs_15 = { + sizeof(struct NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18__nr_SelectedDL_PRS_IndexListPerFreq_r18), + offsetof(struct NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18__nr_SelectedDL_PRS_IndexListPerFreq_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r18_15 = { + "nr-SelectedDL-PRS-IndexListPerFreq-r18", + "nr-SelectedDL-PRS-IndexListPerFreq-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r18_tags_15, + sizeof(asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r18_tags_15) + /sizeof(asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r18_tags_15[0]) - 1, /* 1 */ + asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r18_tags_15, /* Same as above */ + sizeof(asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r18_tags_15) + /sizeof(asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r18_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_SelectedDL_PRS_IndexListPerFreq_r18_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_SelectedDL_PRS_IndexListPerFreq_r18_15, + 1, /* Single element */ + &asn_SPC_nr_SelectedDL_PRS_IndexListPerFreq_r18_specs_15 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18, nr_StartSFN_TimeWindow_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_StartSFN_TimeWindow_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_StartSFN_TimeWindow_r18_constraint_1 + }, + 0, 0, /* No default value */ + "nr-StartSFN-TimeWindow-r18" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18, nr_PeriodicityAndSlotOffsetTimeWindow_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PeriodicityAndSlotOffsetTimeWindow-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18, nr_SymbolOffsetTimeWindow_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_SymbolOffsetTimeWindow_r18_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_SymbolOffsetTimeWindow_r18_constraint_1 + }, + 0, 0, /* No default value */ + "nr-SymbolOffsetTimeWindow-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18, nr_DurationTimeWindow_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_DurationTimeWindow_r18_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DurationTimeWindow-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18, nr_SelectedDL_PRS_FrequencyLayerIndex_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_SelectedDL_PRS_FrequencyLayerIndex_r18_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_SelectedDL_PRS_FrequencyLayerIndex_r18_constraint_1 + }, + 0, 0, /* No default value */ + "nr-SelectedDL-PRS-FrequencyLayerIndex-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18, nr_SelectedDL_PRS_IndexListPerFreq_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r18_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_SelectedDL_PRS_IndexListPerFreq_r18_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_SelectedDL_PRS_IndexListPerFreq_r18_constraint_1 + }, + 0, 0, /* No default value */ + "nr-SelectedDL-PRS-IndexListPerFreq-r18" + }, +}; +static const int asn_MAP_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_oms_1[] = { 1, 2, 5 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-StartSFN-TimeWindow-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PeriodicityAndSlotOffsetTimeWindow-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-SymbolOffsetTimeWindow-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-DurationTimeWindow-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-SelectedDL-PRS-FrequencyLayerIndex-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* nr-SelectedDL-PRS-IndexListPerFreq-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_specs_1 = { + sizeof(struct NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18), + offsetof(struct NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18, _asn_ctx), + asn_MAP_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18 = { + "NR-DL-PRS-MeasurementTimeWindowsConfigElement-r18", + "NR-DL-PRS-MeasurementTimeWindowsConfigElement-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_tags_1, + sizeof(asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_1, + 6, /* Elements count */ + &asn_SPC_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-MeasurementTimeWindowsConfigElement-r18.h b/asn.1/lpp_generated/NR-DL-PRS-MeasurementTimeWindowsConfigElement-r18.h new file mode 100644 index 00000000..d4360e0e --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-MeasurementTimeWindowsConfigElement-r18.h @@ -0,0 +1,76 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_H_ +#define _NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18__nr_DurationTimeWindow_r18 { + NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18__nr_DurationTimeWindow_r18_n1 = 0, + NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18__nr_DurationTimeWindow_r18_n2 = 1, + NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18__nr_DurationTimeWindow_r18_n4 = 2, + NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18__nr_DurationTimeWindow_r18_n6 = 3, + NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18__nr_DurationTimeWindow_r18_n8 = 4, + NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18__nr_DurationTimeWindow_r18_n12 = 5, + NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18__nr_DurationTimeWindow_r18_n16 = 6 + /* + * Enumeration is extensible + */ +} e_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18__nr_DurationTimeWindow_r18; + +/* Forward declarations */ +struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16; +struct NR_SelectedDL_PRS_IndexPerTRP_r18; + +/* NR-DL-PRS-MeasurementTimeWindowsConfigElement-r18 */ +typedef struct NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18 { + long nr_StartSFN_TimeWindow_r18; + struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16 *nr_PeriodicityAndSlotOffsetTimeWindow_r18; /* OPTIONAL */ + long *nr_SymbolOffsetTimeWindow_r18; /* OPTIONAL */ + long nr_DurationTimeWindow_r18; + long nr_SelectedDL_PRS_FrequencyLayerIndex_r18; + struct NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18__nr_SelectedDL_PRS_IndexListPerFreq_r18 { + A_SEQUENCE_OF(struct NR_SelectedDL_PRS_IndexPerTRP_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_SelectedDL_PRS_IndexListPerFreq_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_DurationTimeWindow_r18_5; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_1[6]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_MeasurementTimeWindowsConfigElement_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.c b/asn.1/lpp_generated/NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.c new file mode 100644 index 00000000..87846fd7 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.c @@ -0,0 +1,3700 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.h" + +static int +memb_n4_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n5_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n8_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n10_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n16_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n20_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 19L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n32_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 31L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n40_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 39L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n64_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n80_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 79L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n160_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 159L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n320_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 319L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n640_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 639L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n1280_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1279L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n2560_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2559L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n5120_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 5119L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n10240_r16_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 10239L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n8_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n10_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n16_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n20_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 19L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n32_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 31L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n40_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 39L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n64_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n80_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 79L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n128_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n160_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 159L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n320_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 319L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n640_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 639L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n1280_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1279L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n2560_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2559L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n5120_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 5119L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n10240_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 10239L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n20480_r16_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 20479L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n16_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n20_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 19L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n32_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 31L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n40_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 39L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n64_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n80_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 79L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n128_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n160_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 159L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n256_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n320_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 319L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n640_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 639L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n1280_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1279L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n2560_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2559L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n5120_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 5119L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n10240_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 10239L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n20480_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 20479L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n40960_r16_constraint_40(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 40959L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n32_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 31L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n40_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 39L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n64_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n80_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 79L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n128_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n160_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 159L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n256_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n320_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 319L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n512_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n640_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 639L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n1280_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1279L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n2560_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2559L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n5120_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 5119L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n10240_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 10239L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n20480_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 20479L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n40960_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 40959L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n81920_r16_constraint_59(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 81919L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n4_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n5_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n8_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n10_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n16_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n20_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n32_r16_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n40_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 39 } /* (0..39) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n64_r16_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n80_r16_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 79 } /* (0..79) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n160_r16_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 159 } /* (0..159) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n320_r16_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 319 } /* (0..319) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n640_r16_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 639 } /* (0..639) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n1280_r16_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 1279 } /* (0..1279) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n2560_r16_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 2559 } /* (0..2559) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n5120_r16_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, 0, 5119 } /* (0..5119) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n10240_r16_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 10239 } /* (0..10239) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs15_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 5, 5, 0, 16 } /* (0..16,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n8_r16_constr_22 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n10_r16_constr_23 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n16_r16_constr_24 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n20_r16_constr_25 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n32_r16_constr_26 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n40_r16_constr_27 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 39 } /* (0..39) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n64_r16_constr_28 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n80_r16_constr_29 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 79 } /* (0..79) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n128_r16_constr_30 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n160_r16_constr_31 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 159 } /* (0..159) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n320_r16_constr_32 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 319 } /* (0..319) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n640_r16_constr_33 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 639 } /* (0..639) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n1280_r16_constr_34 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 1279 } /* (0..1279) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n2560_r16_constr_35 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 2559 } /* (0..2559) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n5120_r16_constr_36 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, 0, 5119 } /* (0..5119) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n10240_r16_constr_37 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 10239 } /* (0..10239) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n20480_r16_constr_38 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, 0, 20479 } /* (0..20479) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs30_r16_constr_21 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 5, 5, 0, 16 } /* (0..16,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n16_r16_constr_41 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n20_r16_constr_42 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n32_r16_constr_43 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n40_r16_constr_44 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 39 } /* (0..39) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n64_r16_constr_45 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n80_r16_constr_46 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 79 } /* (0..79) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n128_r16_constr_47 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n160_r16_constr_48 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 159 } /* (0..159) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n256_r16_constr_49 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n320_r16_constr_50 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 319 } /* (0..319) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n640_r16_constr_51 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 639 } /* (0..639) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n1280_r16_constr_52 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 1279 } /* (0..1279) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n2560_r16_constr_53 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 2559 } /* (0..2559) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n5120_r16_constr_54 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, 0, 5119 } /* (0..5119) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n10240_r16_constr_55 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 10239 } /* (0..10239) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n20480_r16_constr_56 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, 0, 20479 } /* (0..20479) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n40960_r16_constr_57 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 40959 } /* (0..40959) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs60_r16_constr_40 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 5, 5, 0, 16 } /* (0..16,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n32_r16_constr_60 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n40_r16_constr_61 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 39 } /* (0..39) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n64_r16_constr_62 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n80_r16_constr_63 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 79 } /* (0..79) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n128_r16_constr_64 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n160_r16_constr_65 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 159 } /* (0..159) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n256_r16_constr_66 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n320_r16_constr_67 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 319 } /* (0..319) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n512_r16_constr_68 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n640_r16_constr_69 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 639 } /* (0..639) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n1280_r16_constr_70 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 1279 } /* (0..1279) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n2560_r16_constr_71 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 2559 } /* (0..2559) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n5120_r16_constr_72 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, 0, 5119 } /* (0..5119) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n10240_r16_constr_73 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 10239 } /* (0..10239) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n20480_r16_constr_74 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, 0, 20479 } /* (0..20479) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n40960_r16_constr_75 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 40959 } /* (0..40959) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n81920_r16_constr_76 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 0, 81919 } /* (0..81919) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs120_r16_constr_59 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 5, 5, 0, 16 } /* (0..16,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_scs15_r16_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n4_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n4_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n4_r16_constraint_2 + }, + 0, 0, /* No default value */ + "n4-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n5_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n5_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n5_r16_constraint_2 + }, + 0, 0, /* No default value */ + "n5-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n8_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n8_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n8_r16_constraint_2 + }, + 0, 0, /* No default value */ + "n8-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n10_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n10_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n10_r16_constraint_2 + }, + 0, 0, /* No default value */ + "n10-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n16_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n16_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n16_r16_constraint_2 + }, + 0, 0, /* No default value */ + "n16-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n20_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n20_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n20_r16_constraint_2 + }, + 0, 0, /* No default value */ + "n20-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n32_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n32_r16_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n32_r16_constraint_2 + }, + 0, 0, /* No default value */ + "n32-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n40_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n40_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n40_r16_constraint_2 + }, + 0, 0, /* No default value */ + "n40-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n64_r16), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n64_r16_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n64_r16_constraint_2 + }, + 0, 0, /* No default value */ + "n64-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n80_r16), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n80_r16_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n80_r16_constraint_2 + }, + 0, 0, /* No default value */ + "n80-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n160_r16), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n160_r16_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n160_r16_constraint_2 + }, + 0, 0, /* No default value */ + "n160-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n320_r16), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n320_r16_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n320_r16_constraint_2 + }, + 0, 0, /* No default value */ + "n320-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n640_r16), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n640_r16_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n640_r16_constraint_2 + }, + 0, 0, /* No default value */ + "n640-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n1280_r16), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n1280_r16_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n1280_r16_constraint_2 + }, + 0, 0, /* No default value */ + "n1280-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n2560_r16), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n2560_r16_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n2560_r16_constraint_2 + }, + 0, 0, /* No default value */ + "n2560-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n5120_r16), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n5120_r16_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n5120_r16_constraint_2 + }, + 0, 0, /* No default value */ + "n5120-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, choice.n10240_r16), + (ASN_TAG_CLASS_CONTEXT | (16 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n10240_r16_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n10240_r16_constraint_2 + }, + 0, 0, /* No default value */ + "n10240-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_scs15_r16_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* n4-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* n5-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* n8-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* n10-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* n16-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* n20-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* n32-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* n40-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* n64-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* n80-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* n160-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* n320-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* n640-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* n1280-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* n2560-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* n5120-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 } /* n10240-r16 */ +}; +static asn_CHOICE_specifics_t asn_SPC_scs15_r16_specs_2 = { + sizeof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16), + offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, _asn_ctx), + offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16, present), + sizeof(((struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs15_r16 *)0)->present), + asn_MAP_scs15_r16_tag2el_2, + 17, /* Count of tags in the map */ + 0, 0, + 17 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs15_r16_2 = { + "scs15-r16", + "scs15-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs15_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_scs15_r16_2, + 17, /* Elements count */ + &asn_SPC_scs15_r16_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_scs30_r16_21[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n8_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n8_r16_constr_22, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n8_r16_constraint_21 + }, + 0, 0, /* No default value */ + "n8-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n10_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n10_r16_constr_23, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n10_r16_constraint_21 + }, + 0, 0, /* No default value */ + "n10-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n16_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n16_r16_constr_24, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n16_r16_constraint_21 + }, + 0, 0, /* No default value */ + "n16-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n20_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n20_r16_constr_25, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n20_r16_constraint_21 + }, + 0, 0, /* No default value */ + "n20-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n32_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n32_r16_constr_26, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n32_r16_constraint_21 + }, + 0, 0, /* No default value */ + "n32-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n40_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n40_r16_constr_27, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n40_r16_constraint_21 + }, + 0, 0, /* No default value */ + "n40-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n64_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n64_r16_constr_28, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n64_r16_constraint_21 + }, + 0, 0, /* No default value */ + "n64-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n80_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n80_r16_constr_29, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n80_r16_constraint_21 + }, + 0, 0, /* No default value */ + "n80-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n128_r16), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n128_r16_constr_30, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n128_r16_constraint_21 + }, + 0, 0, /* No default value */ + "n128-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n160_r16), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n160_r16_constr_31, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n160_r16_constraint_21 + }, + 0, 0, /* No default value */ + "n160-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n320_r16), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n320_r16_constr_32, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n320_r16_constraint_21 + }, + 0, 0, /* No default value */ + "n320-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n640_r16), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n640_r16_constr_33, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n640_r16_constraint_21 + }, + 0, 0, /* No default value */ + "n640-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n1280_r16), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n1280_r16_constr_34, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n1280_r16_constraint_21 + }, + 0, 0, /* No default value */ + "n1280-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n2560_r16), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n2560_r16_constr_35, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n2560_r16_constraint_21 + }, + 0, 0, /* No default value */ + "n2560-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n5120_r16), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n5120_r16_constr_36, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n5120_r16_constraint_21 + }, + 0, 0, /* No default value */ + "n5120-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n10240_r16), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n10240_r16_constr_37, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n10240_r16_constraint_21 + }, + 0, 0, /* No default value */ + "n10240-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, choice.n20480_r16), + (ASN_TAG_CLASS_CONTEXT | (16 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n20480_r16_constr_38, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n20480_r16_constraint_21 + }, + 0, 0, /* No default value */ + "n20480-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_scs30_r16_tag2el_21[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* n8-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* n10-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* n16-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* n20-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* n32-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* n40-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* n64-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* n80-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* n128-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* n160-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* n320-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* n640-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* n1280-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* n2560-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* n5120-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* n10240-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 } /* n20480-r16 */ +}; +static asn_CHOICE_specifics_t asn_SPC_scs30_r16_specs_21 = { + sizeof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16), + offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, _asn_ctx), + offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16, present), + sizeof(((struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs30_r16 *)0)->present), + asn_MAP_scs30_r16_tag2el_21, + 17, /* Count of tags in the map */ + 0, 0, + 17 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs30_r16_21 = { + "scs30-r16", + "scs30-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs30_r16_constr_21, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_scs30_r16_21, + 17, /* Elements count */ + &asn_SPC_scs30_r16_specs_21 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_scs60_r16_40[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n16_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n16_r16_constr_41, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n16_r16_constraint_40 + }, + 0, 0, /* No default value */ + "n16-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n20_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n20_r16_constr_42, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n20_r16_constraint_40 + }, + 0, 0, /* No default value */ + "n20-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n32_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n32_r16_constr_43, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n32_r16_constraint_40 + }, + 0, 0, /* No default value */ + "n32-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n40_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n40_r16_constr_44, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n40_r16_constraint_40 + }, + 0, 0, /* No default value */ + "n40-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n64_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n64_r16_constr_45, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n64_r16_constraint_40 + }, + 0, 0, /* No default value */ + "n64-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n80_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n80_r16_constr_46, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n80_r16_constraint_40 + }, + 0, 0, /* No default value */ + "n80-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n128_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n128_r16_constr_47, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n128_r16_constraint_40 + }, + 0, 0, /* No default value */ + "n128-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n160_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n160_r16_constr_48, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n160_r16_constraint_40 + }, + 0, 0, /* No default value */ + "n160-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n256_r16), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n256_r16_constr_49, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n256_r16_constraint_40 + }, + 0, 0, /* No default value */ + "n256-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n320_r16), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n320_r16_constr_50, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n320_r16_constraint_40 + }, + 0, 0, /* No default value */ + "n320-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n640_r16), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n640_r16_constr_51, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n640_r16_constraint_40 + }, + 0, 0, /* No default value */ + "n640-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n1280_r16), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n1280_r16_constr_52, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n1280_r16_constraint_40 + }, + 0, 0, /* No default value */ + "n1280-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n2560_r16), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n2560_r16_constr_53, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n2560_r16_constraint_40 + }, + 0, 0, /* No default value */ + "n2560-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n5120_r16), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n5120_r16_constr_54, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n5120_r16_constraint_40 + }, + 0, 0, /* No default value */ + "n5120-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n10240_r16), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n10240_r16_constr_55, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n10240_r16_constraint_40 + }, + 0, 0, /* No default value */ + "n10240-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n20480_r16), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n20480_r16_constr_56, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n20480_r16_constraint_40 + }, + 0, 0, /* No default value */ + "n20480-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, choice.n40960_r16), + (ASN_TAG_CLASS_CONTEXT | (16 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n40960_r16_constr_57, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n40960_r16_constraint_40 + }, + 0, 0, /* No default value */ + "n40960-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_scs60_r16_tag2el_40[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* n16-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* n20-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* n32-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* n40-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* n64-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* n80-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* n128-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* n160-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* n256-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* n320-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* n640-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* n1280-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* n2560-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* n5120-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* n10240-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* n20480-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 } /* n40960-r16 */ +}; +static asn_CHOICE_specifics_t asn_SPC_scs60_r16_specs_40 = { + sizeof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16), + offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, _asn_ctx), + offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16, present), + sizeof(((struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs60_r16 *)0)->present), + asn_MAP_scs60_r16_tag2el_40, + 17, /* Count of tags in the map */ + 0, 0, + 17 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs60_r16_40 = { + "scs60-r16", + "scs60-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs60_r16_constr_40, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_scs60_r16_40, + 17, /* Elements count */ + &asn_SPC_scs60_r16_specs_40 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_scs120_r16_59[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n32_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n32_r16_constr_60, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n32_r16_constraint_59 + }, + 0, 0, /* No default value */ + "n32-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n40_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n40_r16_constr_61, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n40_r16_constraint_59 + }, + 0, 0, /* No default value */ + "n40-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n64_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n64_r16_constr_62, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n64_r16_constraint_59 + }, + 0, 0, /* No default value */ + "n64-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n80_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n80_r16_constr_63, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n80_r16_constraint_59 + }, + 0, 0, /* No default value */ + "n80-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n128_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n128_r16_constr_64, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n128_r16_constraint_59 + }, + 0, 0, /* No default value */ + "n128-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n160_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n160_r16_constr_65, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n160_r16_constraint_59 + }, + 0, 0, /* No default value */ + "n160-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n256_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n256_r16_constr_66, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n256_r16_constraint_59 + }, + 0, 0, /* No default value */ + "n256-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n320_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n320_r16_constr_67, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n320_r16_constraint_59 + }, + 0, 0, /* No default value */ + "n320-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n512_r16), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n512_r16_constr_68, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n512_r16_constraint_59 + }, + 0, 0, /* No default value */ + "n512-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n640_r16), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n640_r16_constr_69, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n640_r16_constraint_59 + }, + 0, 0, /* No default value */ + "n640-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n1280_r16), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n1280_r16_constr_70, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n1280_r16_constraint_59 + }, + 0, 0, /* No default value */ + "n1280-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n2560_r16), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n2560_r16_constr_71, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n2560_r16_constraint_59 + }, + 0, 0, /* No default value */ + "n2560-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n5120_r16), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n5120_r16_constr_72, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n5120_r16_constraint_59 + }, + 0, 0, /* No default value */ + "n5120-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n10240_r16), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n10240_r16_constr_73, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n10240_r16_constraint_59 + }, + 0, 0, /* No default value */ + "n10240-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n20480_r16), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n20480_r16_constr_74, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n20480_r16_constraint_59 + }, + 0, 0, /* No default value */ + "n20480-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n40960_r16), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n40960_r16_constr_75, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n40960_r16_constraint_59 + }, + 0, 0, /* No default value */ + "n40960-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, choice.n81920_r16), + (ASN_TAG_CLASS_CONTEXT | (16 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n81920_r16_constr_76, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n81920_r16_constraint_59 + }, + 0, 0, /* No default value */ + "n81920-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_scs120_r16_tag2el_59[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* n32-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* n40-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* n64-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* n80-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* n128-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* n160-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* n256-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* n320-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* n512-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* n640-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* n1280-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* n2560-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* n5120-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* n10240-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* n20480-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* n40960-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 } /* n81920-r16 */ +}; +static asn_CHOICE_specifics_t asn_SPC_scs120_r16_specs_59 = { + sizeof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16), + offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, _asn_ctx), + offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16, present), + sizeof(((struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16__scs120_r16 *)0)->present), + asn_MAP_scs120_r16_tag2el_59, + 17, /* Count of tags in the map */ + 0, 0, + 17 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs120_r16_59 = { + "scs120-r16", + "scs120-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs120_r16_constr_59, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_scs120_r16_59, + 17, /* Elements count */ + &asn_SPC_scs120_r16_specs_59 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16, choice.scs15_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_scs15_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs15-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16, choice.scs30_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_scs30_r16_21, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs30-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16, choice.scs60_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_scs60_r16_40, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs60-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16, choice.scs120_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_scs120_r16_59, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs120-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* scs15-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* scs30-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* scs60-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* scs120-r16 */ +}; +asn_CHOICE_specifics_t asn_SPC_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16_specs_1 = { + sizeof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16), + offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16, _asn_ctx), + offsetof(struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16, present), + sizeof(((struct NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16 *)0)->present), + asn_MAP_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, + 4 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16 = { + "NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16", + "NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16_1, + 4, /* Elements count */ + &asn_SPC_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.h b/asn.1/lpp_generated/NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.h similarity index 97% rename from asn.1/generated/NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.h rename to asn.1/lpp_generated/NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.h index f6623623..a040a21d 100644 --- a/asn.1/generated/NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.h +++ b/asn.1/lpp_generated/NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16_H_ diff --git a/asn.1/lpp_generated/NR-DL-PRS-PositioningFrequencyLayer-r16.c b/asn.1/lpp_generated/NR-DL-PRS-PositioningFrequencyLayer-r16.c new file mode 100644 index 00000000..d7a1762b --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-PositioningFrequencyLayer-r16.c @@ -0,0 +1,402 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-PositioningFrequencyLayer-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_dl_PRS_ResourceBandwidth_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_PRS_StartPRB_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2176L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_SubcarrierSpacing_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_CombSizeN_r16_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_CyclicPrefix_r16_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ResourceBandwidth_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 1, 63 } /* (1..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_StartPRB_r16_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 2176 } /* (0..2176) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_SubcarrierSpacing_r16_value2enum_2[] = { + { 0, 5, "kHz15" }, + { 1, 5, "kHz30" }, + { 2, 5, "kHz60" }, + { 3, 6, "kHz120" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_dl_PRS_SubcarrierSpacing_r16_enum2value_2[] = { + 3, /* kHz120(3) */ + 0, /* kHz15(0) */ + 1, /* kHz30(1) */ + 2 /* kHz60(2) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_SubcarrierSpacing_r16_specs_2 = { + asn_MAP_dl_PRS_SubcarrierSpacing_r16_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_dl_PRS_SubcarrierSpacing_r16_enum2value_2, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_SubcarrierSpacing_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_SubcarrierSpacing_r16_2 = { + "dl-PRS-SubcarrierSpacing-r16", + "dl-PRS-SubcarrierSpacing-r16", + &asn_OP_NativeEnumerated, + asn_DEF_dl_PRS_SubcarrierSpacing_r16_tags_2, + sizeof(asn_DEF_dl_PRS_SubcarrierSpacing_r16_tags_2) + /sizeof(asn_DEF_dl_PRS_SubcarrierSpacing_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_SubcarrierSpacing_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_dl_PRS_SubcarrierSpacing_r16_tags_2) + /sizeof(asn_DEF_dl_PRS_SubcarrierSpacing_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_SubcarrierSpacing_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_PRS_SubcarrierSpacing_r16_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_CombSizeN_r16_value2enum_11[] = { + { 0, 2, "n2" }, + { 1, 2, "n4" }, + { 2, 2, "n6" }, + { 3, 3, "n12" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_dl_PRS_CombSizeN_r16_enum2value_11[] = { + 3, /* n12(3) */ + 0, /* n2(0) */ + 1, /* n4(1) */ + 2 /* n6(2) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_CombSizeN_r16_specs_11 = { + asn_MAP_dl_PRS_CombSizeN_r16_value2enum_11, /* "tag" => N; sorted by tag */ + asn_MAP_dl_PRS_CombSizeN_r16_enum2value_11, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_CombSizeN_r16_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_CombSizeN_r16_11 = { + "dl-PRS-CombSizeN-r16", + "dl-PRS-CombSizeN-r16", + &asn_OP_NativeEnumerated, + asn_DEF_dl_PRS_CombSizeN_r16_tags_11, + sizeof(asn_DEF_dl_PRS_CombSizeN_r16_tags_11) + /sizeof(asn_DEF_dl_PRS_CombSizeN_r16_tags_11[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_CombSizeN_r16_tags_11, /* Same as above */ + sizeof(asn_DEF_dl_PRS_CombSizeN_r16_tags_11) + /sizeof(asn_DEF_dl_PRS_CombSizeN_r16_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_CombSizeN_r16_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_PRS_CombSizeN_r16_specs_11 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_CyclicPrefix_r16_value2enum_17[] = { + { 0, 6, "normal" }, + { 1, 8, "extended" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_dl_PRS_CyclicPrefix_r16_enum2value_17[] = { + 1, /* extended(1) */ + 0 /* normal(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_CyclicPrefix_r16_specs_17 = { + asn_MAP_dl_PRS_CyclicPrefix_r16_value2enum_17, /* "tag" => N; sorted by tag */ + asn_MAP_dl_PRS_CyclicPrefix_r16_enum2value_17, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_CyclicPrefix_r16_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_CyclicPrefix_r16_17 = { + "dl-PRS-CyclicPrefix-r16", + "dl-PRS-CyclicPrefix-r16", + &asn_OP_NativeEnumerated, + asn_DEF_dl_PRS_CyclicPrefix_r16_tags_17, + sizeof(asn_DEF_dl_PRS_CyclicPrefix_r16_tags_17) + /sizeof(asn_DEF_dl_PRS_CyclicPrefix_r16_tags_17[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_CyclicPrefix_r16_tags_17, /* Same as above */ + sizeof(asn_DEF_dl_PRS_CyclicPrefix_r16_tags_17) + /sizeof(asn_DEF_dl_PRS_CyclicPrefix_r16_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_CyclicPrefix_r16_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_PRS_CyclicPrefix_r16_specs_17 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_PRS_PositioningFrequencyLayer_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_PositioningFrequencyLayer_r16, dl_PRS_SubcarrierSpacing_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_PRS_SubcarrierSpacing_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-SubcarrierSpacing-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_PositioningFrequencyLayer_r16, dl_PRS_ResourceBandwidth_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ResourceBandwidth_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ResourceBandwidth_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ResourceBandwidth-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_PositioningFrequencyLayer_r16, dl_PRS_StartPRB_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_StartPRB_r16_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_StartPRB_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-StartPRB-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_PositioningFrequencyLayer_r16, dl_PRS_PointA_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-PointA-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_PositioningFrequencyLayer_r16, dl_PRS_CombSizeN_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_PRS_CombSizeN_r16_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-CombSizeN-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_PositioningFrequencyLayer_r16, dl_PRS_CyclicPrefix_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_PRS_CyclicPrefix_r16_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-CyclicPrefix-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_PositioningFrequencyLayer_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_PositioningFrequencyLayer_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-SubcarrierSpacing-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* dl-PRS-ResourceBandwidth-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dl-PRS-StartPRB-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* dl-PRS-PointA-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* dl-PRS-CombSizeN-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* dl-PRS-CyclicPrefix-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_PositioningFrequencyLayer_r16_specs_1 = { + sizeof(struct NR_DL_PRS_PositioningFrequencyLayer_r16), + offsetof(struct NR_DL_PRS_PositioningFrequencyLayer_r16, _asn_ctx), + asn_MAP_NR_DL_PRS_PositioningFrequencyLayer_r16_tag2el_1, + 6, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_PositioningFrequencyLayer_r16 = { + "NR-DL-PRS-PositioningFrequencyLayer-r16", + "NR-DL-PRS-PositioningFrequencyLayer-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_PRS_PositioningFrequencyLayer_r16_tags_1, + sizeof(asn_DEF_NR_DL_PRS_PositioningFrequencyLayer_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_PositioningFrequencyLayer_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_PositioningFrequencyLayer_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_PositioningFrequencyLayer_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_PositioningFrequencyLayer_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_PRS_PositioningFrequencyLayer_r16_1, + 6, /* Elements count */ + &asn_SPC_NR_DL_PRS_PositioningFrequencyLayer_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-DL-PRS-PositioningFrequencyLayer-r16.h b/asn.1/lpp_generated/NR-DL-PRS-PositioningFrequencyLayer-r16.h similarity index 92% rename from asn.1/generated/NR-DL-PRS-PositioningFrequencyLayer-r16.h rename to asn.1/lpp_generated/NR-DL-PRS-PositioningFrequencyLayer-r16.h index fe475dde..6ecc5d7f 100644 --- a/asn.1/generated/NR-DL-PRS-PositioningFrequencyLayer-r16.h +++ b/asn.1/lpp_generated/NR-DL-PRS-PositioningFrequencyLayer-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_DL_PRS_PositioningFrequencyLayer_r16_H_ diff --git a/asn.1/lpp_generated/NR-DL-PRS-ProcessingCapability-r16.c b/asn.1/lpp_generated/NR-DL-PRS-ProcessingCapability-r16.c new file mode 100644 index 00000000..4ae958a6 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ProcessingCapability-r16.c @@ -0,0 +1,421 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-ProcessingCapability-r16.h" + +#include "PRS-ProcessingCapabilityPerBand-r16.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_prs_ProcessingCapabilityBandList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 1024UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_maxSupportedFreqLayers_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 4L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prs_ProcessingCapabilityBandList_r16_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_simulLTE_NR_PRS_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dummy_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_prs_ProcessingCapabilityBandList_r16_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxSupportedFreqLayers_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (1..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_prs_ProcessingCapabilityBandList_r16_2[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_PRS_ProcessingCapabilityPerBand_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_prs_ProcessingCapabilityBandList_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_prs_ProcessingCapabilityBandList_r16_specs_2 = { + sizeof(struct NR_DL_PRS_ProcessingCapability_r16__prs_ProcessingCapabilityBandList_r16), + offsetof(struct NR_DL_PRS_ProcessingCapability_r16__prs_ProcessingCapabilityBandList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prs_ProcessingCapabilityBandList_r16_2 = { + "prs-ProcessingCapabilityBandList-r16", + "prs-ProcessingCapabilityBandList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_prs_ProcessingCapabilityBandList_r16_tags_2, + sizeof(asn_DEF_prs_ProcessingCapabilityBandList_r16_tags_2) + /sizeof(asn_DEF_prs_ProcessingCapabilityBandList_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_prs_ProcessingCapabilityBandList_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_prs_ProcessingCapabilityBandList_r16_tags_2) + /sizeof(asn_DEF_prs_ProcessingCapabilityBandList_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prs_ProcessingCapabilityBandList_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_prs_ProcessingCapabilityBandList_r16_2, + 1, /* Single element */ + &asn_SPC_prs_ProcessingCapabilityBandList_r16_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_simulLTE_NR_PRS_r16_value2enum_5[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_simulLTE_NR_PRS_r16_enum2value_5[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_simulLTE_NR_PRS_r16_specs_5 = { + asn_MAP_simulLTE_NR_PRS_r16_value2enum_5, /* "tag" => N; sorted by tag */ + asn_MAP_simulLTE_NR_PRS_r16_enum2value_5, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_simulLTE_NR_PRS_r16_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_simulLTE_NR_PRS_r16_5 = { + "simulLTE-NR-PRS-r16", + "simulLTE-NR-PRS-r16", + &asn_OP_NativeEnumerated, + asn_DEF_simulLTE_NR_PRS_r16_tags_5, + sizeof(asn_DEF_simulLTE_NR_PRS_r16_tags_5) + /sizeof(asn_DEF_simulLTE_NR_PRS_r16_tags_5[0]) - 1, /* 1 */ + asn_DEF_simulLTE_NR_PRS_r16_tags_5, /* Same as above */ + sizeof(asn_DEF_simulLTE_NR_PRS_r16_tags_5) + /sizeof(asn_DEF_simulLTE_NR_PRS_r16_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_simulLTE_NR_PRS_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_simulLTE_NR_PRS_r16_specs_5 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dummy_value2enum_9[] = { + { 0, 2, "m1" }, + { 1, 2, "m2" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_dummy_enum2value_9[] = { + 0, /* m1(0) */ + 1 /* m2(1) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dummy_specs_9 = { + asn_MAP_dummy_value2enum_9, /* "tag" => N; sorted by tag */ + asn_MAP_dummy_enum2value_9, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dummy_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dummy_9 = { + "dummy", + "dummy", + &asn_OP_NativeEnumerated, + asn_DEF_dummy_tags_9, + sizeof(asn_DEF_dummy_tags_9) + /sizeof(asn_DEF_dummy_tags_9[0]) - 1, /* 1 */ + asn_DEF_dummy_tags_9, /* Same as above */ + sizeof(asn_DEF_dummy_tags_9) + /sizeof(asn_DEF_dummy_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dummy_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dummy_specs_9 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_8[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_ProcessingCapability_r16__ext1, dummy), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dummy_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dummy" + }, +}; +static const int asn_MAP_ext1_oms_8[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* dummy */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { + sizeof(struct NR_DL_PRS_ProcessingCapability_r16__ext1), + offsetof(struct NR_DL_PRS_ProcessingCapability_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_8, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_8, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_8 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_8, + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_8, /* Same as above */ + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_8, + 1, /* Elements count */ + &asn_SPC_ext1_specs_8 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_PRS_ProcessingCapability_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ProcessingCapability_r16, prs_ProcessingCapabilityBandList_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_prs_ProcessingCapabilityBandList_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_prs_ProcessingCapabilityBandList_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_prs_ProcessingCapabilityBandList_r16_constraint_1 + }, + 0, 0, /* No default value */ + "prs-ProcessingCapabilityBandList-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ProcessingCapability_r16, maxSupportedFreqLayers_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxSupportedFreqLayers_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxSupportedFreqLayers_r16_constraint_1 + }, + 0, 0, /* No default value */ + "maxSupportedFreqLayers-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_PRS_ProcessingCapability_r16, simulLTE_NR_PRS_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_simulLTE_NR_PRS_r16_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "simulLTE-NR-PRS-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_ProcessingCapability_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext1_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_DL_PRS_ProcessingCapability_r16_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_ProcessingCapability_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_ProcessingCapability_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* prs-ProcessingCapabilityBandList-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxSupportedFreqLayers-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* simulLTE-NR-PRS-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_ProcessingCapability_r16_specs_1 = { + sizeof(struct NR_DL_PRS_ProcessingCapability_r16), + offsetof(struct NR_DL_PRS_ProcessingCapability_r16, _asn_ctx), + asn_MAP_NR_DL_PRS_ProcessingCapability_r16_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_NR_DL_PRS_ProcessingCapability_r16_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ProcessingCapability_r16 = { + "NR-DL-PRS-ProcessingCapability-r16", + "NR-DL-PRS-ProcessingCapability-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_PRS_ProcessingCapability_r16_tags_1, + sizeof(asn_DEF_NR_DL_PRS_ProcessingCapability_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_ProcessingCapability_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_ProcessingCapability_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_ProcessingCapability_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_ProcessingCapability_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_PRS_ProcessingCapability_r16_1, + 4, /* Elements count */ + &asn_SPC_NR_DL_PRS_ProcessingCapability_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-ProcessingCapability-r16.h b/asn.1/lpp_generated/NR-DL-PRS-ProcessingCapability-r16.h new file mode 100644 index 00000000..78e57820 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ProcessingCapability-r16.h @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_ProcessingCapability_r16_H_ +#define _NR_DL_PRS_ProcessingCapability_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_PRS_ProcessingCapability_r16__simulLTE_NR_PRS_r16 { + NR_DL_PRS_ProcessingCapability_r16__simulLTE_NR_PRS_r16_supported = 0 +} e_NR_DL_PRS_ProcessingCapability_r16__simulLTE_NR_PRS_r16; +typedef enum NR_DL_PRS_ProcessingCapability_r16__ext1__dummy { + NR_DL_PRS_ProcessingCapability_r16__ext1__dummy_m1 = 0, + NR_DL_PRS_ProcessingCapability_r16__ext1__dummy_m2 = 1 + /* + * Enumeration is extensible + */ +} e_NR_DL_PRS_ProcessingCapability_r16__ext1__dummy; + +/* Forward declarations */ +struct PRS_ProcessingCapabilityPerBand_r16; + +/* NR-DL-PRS-ProcessingCapability-r16 */ +typedef struct NR_DL_PRS_ProcessingCapability_r16 { + struct NR_DL_PRS_ProcessingCapability_r16__prs_ProcessingCapabilityBandList_r16 { + A_SEQUENCE_OF(struct PRS_ProcessingCapabilityPerBand_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } prs_ProcessingCapabilityBandList_r16; + long maxSupportedFreqLayers_r16; + long *simulLTE_NR_PRS_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_PRS_ProcessingCapability_r16__ext1 { + long *dummy; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_ProcessingCapability_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_simulLTE_NR_PRS_r16_5; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_dummy_9; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ProcessingCapability_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_ProcessingCapability_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_ProcessingCapability_r16_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_ProcessingCapability_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-QCL-ProcessingCapability-r16.c b/asn.1/lpp_generated/NR-DL-PRS-QCL-ProcessingCapability-r16.c new file mode 100644 index 00000000..fc444496 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-QCL-ProcessingCapability-r16.c @@ -0,0 +1,160 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-QCL-ProcessingCapability-r16.h" + +#include "DL-PRS-QCL-ProcessingCapabilityPerBand-r16.h" +static int +memb_dl_PRS_QCL_ProcessingCapabilityBandList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 1024UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_QCL_ProcessingCapabilityBandList_r16_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_QCL_ProcessingCapabilityBandList_r16_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_dl_PRS_QCL_ProcessingCapabilityBandList_r16_2[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DL_PRS_QCL_ProcessingCapabilityPerBand_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_QCL_ProcessingCapabilityBandList_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_dl_PRS_QCL_ProcessingCapabilityBandList_r16_specs_2 = { + sizeof(struct NR_DL_PRS_QCL_ProcessingCapability_r16__dl_PRS_QCL_ProcessingCapabilityBandList_r16), + offsetof(struct NR_DL_PRS_QCL_ProcessingCapability_r16__dl_PRS_QCL_ProcessingCapabilityBandList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_QCL_ProcessingCapabilityBandList_r16_2 = { + "dl-PRS-QCL-ProcessingCapabilityBandList-r16", + "dl-PRS-QCL-ProcessingCapabilityBandList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_dl_PRS_QCL_ProcessingCapabilityBandList_r16_tags_2, + sizeof(asn_DEF_dl_PRS_QCL_ProcessingCapabilityBandList_r16_tags_2) + /sizeof(asn_DEF_dl_PRS_QCL_ProcessingCapabilityBandList_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_QCL_ProcessingCapabilityBandList_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_dl_PRS_QCL_ProcessingCapabilityBandList_r16_tags_2) + /sizeof(asn_DEF_dl_PRS_QCL_ProcessingCapabilityBandList_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_QCL_ProcessingCapabilityBandList_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_dl_PRS_QCL_ProcessingCapabilityBandList_r16_2, + 1, /* Single element */ + &asn_SPC_dl_PRS_QCL_ProcessingCapabilityBandList_r16_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_PRS_QCL_ProcessingCapability_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_QCL_ProcessingCapability_r16, dl_PRS_QCL_ProcessingCapabilityBandList_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_dl_PRS_QCL_ProcessingCapabilityBandList_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_QCL_ProcessingCapabilityBandList_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_QCL_ProcessingCapabilityBandList_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-QCL-ProcessingCapabilityBandList-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_QCL_ProcessingCapability_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_QCL_ProcessingCapability_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* dl-PRS-QCL-ProcessingCapabilityBandList-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_QCL_ProcessingCapability_r16_specs_1 = { + sizeof(struct NR_DL_PRS_QCL_ProcessingCapability_r16), + offsetof(struct NR_DL_PRS_QCL_ProcessingCapability_r16, _asn_ctx), + asn_MAP_NR_DL_PRS_QCL_ProcessingCapability_r16_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_QCL_ProcessingCapability_r16 = { + "NR-DL-PRS-QCL-ProcessingCapability-r16", + "NR-DL-PRS-QCL-ProcessingCapability-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_PRS_QCL_ProcessingCapability_r16_tags_1, + sizeof(asn_DEF_NR_DL_PRS_QCL_ProcessingCapability_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_QCL_ProcessingCapability_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_QCL_ProcessingCapability_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_QCL_ProcessingCapability_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_QCL_ProcessingCapability_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_PRS_QCL_ProcessingCapability_r16_1, + 1, /* Elements count */ + &asn_SPC_NR_DL_PRS_QCL_ProcessingCapability_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-QCL-ProcessingCapability-r16.h b/asn.1/lpp_generated/NR-DL-PRS-QCL-ProcessingCapability-r16.h new file mode 100644 index 00000000..f92d44ad --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-QCL-ProcessingCapability-r16.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_QCL_ProcessingCapability_r16_H_ +#define _NR_DL_PRS_QCL_ProcessingCapability_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct DL_PRS_QCL_ProcessingCapabilityPerBand_r16; + +/* NR-DL-PRS-QCL-ProcessingCapability-r16 */ +typedef struct NR_DL_PRS_QCL_ProcessingCapability_r16 { + struct NR_DL_PRS_QCL_ProcessingCapability_r16__dl_PRS_QCL_ProcessingCapabilityBandList_r16 { + A_SEQUENCE_OF(struct DL_PRS_QCL_ProcessingCapabilityPerBand_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } dl_PRS_QCL_ProcessingCapabilityBandList_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_QCL_ProcessingCapability_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_QCL_ProcessingCapability_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_QCL_ProcessingCapability_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_QCL_ProcessingCapability_r16_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_QCL_ProcessingCapability_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-Resource-r16.c b/asn.1/lpp_generated/NR-DL-PRS-Resource-r16.c new file mode 100644 index 00000000..eff38de0 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-Resource-r16.c @@ -0,0 +1,690 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-Resource-r16.h" + +#include "DL-PRS-QCL-Info-r16.h" +#include "DL-PRS-ResourcePrioritySubset-r17.h" +static int +memb_n2_r16_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n4_r16_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n6_r16_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 5L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_n12_r16_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 11L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_PRS_ResourceSymbolOffset_v1800_constraint_16(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value == 13L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_PRS_SequenceID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_PRS_ResourceSlotOffset_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_PRS_ResourceSymbolOffset_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 12L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n2_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n4_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n6_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_n12_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 11 } /* (0..11) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_CombSizeN_AndReOffset_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ResourceSymbolOffset_v1800_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 13, 13 } /* (13..13) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_SequenceID_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ResourceSlotOffset_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ResourceSymbolOffset_r16_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 12 } /* (0..12) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_dl_PRS_CombSizeN_AndReOffset_r16_4[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Resource_r16__dl_PRS_CombSizeN_AndReOffset_r16, choice.n2_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n2_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n2_r16_constraint_4 + }, + 0, 0, /* No default value */ + "n2-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Resource_r16__dl_PRS_CombSizeN_AndReOffset_r16, choice.n4_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n4_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n4_r16_constraint_4 + }, + 0, 0, /* No default value */ + "n4-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Resource_r16__dl_PRS_CombSizeN_AndReOffset_r16, choice.n6_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n6_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n6_r16_constraint_4 + }, + 0, 0, /* No default value */ + "n6-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Resource_r16__dl_PRS_CombSizeN_AndReOffset_r16, choice.n12_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_n12_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_n12_r16_constraint_4 + }, + 0, 0, /* No default value */ + "n12-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_dl_PRS_CombSizeN_AndReOffset_r16_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* n2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* n4-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* n6-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* n12-r16 */ +}; +static asn_CHOICE_specifics_t asn_SPC_dl_PRS_CombSizeN_AndReOffset_r16_specs_4 = { + sizeof(struct NR_DL_PRS_Resource_r16__dl_PRS_CombSizeN_AndReOffset_r16), + offsetof(struct NR_DL_PRS_Resource_r16__dl_PRS_CombSizeN_AndReOffset_r16, _asn_ctx), + offsetof(struct NR_DL_PRS_Resource_r16__dl_PRS_CombSizeN_AndReOffset_r16, present), + sizeof(((struct NR_DL_PRS_Resource_r16__dl_PRS_CombSizeN_AndReOffset_r16 *)0)->present), + asn_MAP_dl_PRS_CombSizeN_AndReOffset_r16_tag2el_4, + 4, /* Count of tags in the map */ + 0, 0, + 4 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_CombSizeN_AndReOffset_r16_4 = { + "dl-PRS-CombSizeN-AndReOffset-r16", + "dl-PRS-CombSizeN-AndReOffset-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_CombSizeN_AndReOffset_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_dl_PRS_CombSizeN_AndReOffset_r16_4, + 4, /* Elements count */ + &asn_SPC_dl_PRS_CombSizeN_AndReOffset_r16_specs_4 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_14[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_Resource_r16__ext1, dl_PRS_ResourcePrioritySubset_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DL_PRS_ResourcePrioritySubset_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-ResourcePrioritySubset-r17" + }, +}; +static const int asn_MAP_ext1_oms_14[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_14[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_14[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* dl-PRS-ResourcePrioritySubset-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_14 = { + sizeof(struct NR_DL_PRS_Resource_r16__ext1), + offsetof(struct NR_DL_PRS_Resource_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_14, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_14, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_14 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_14, + sizeof(asn_DEF_ext1_tags_14) + /sizeof(asn_DEF_ext1_tags_14[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_14, /* Same as above */ + sizeof(asn_DEF_ext1_tags_14) + /sizeof(asn_DEF_ext1_tags_14[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_14, + 1, /* Elements count */ + &asn_SPC_ext1_specs_14 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_16[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_Resource_r16__ext2, dl_PRS_ResourceSymbolOffset_v1800), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ResourceSymbolOffset_v1800_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ResourceSymbolOffset_v1800_constraint_16 + }, + 0, 0, /* No default value */ + "dl-PRS-ResourceSymbolOffset-v1800" + }, +}; +static const int asn_MAP_ext2_oms_16[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_16[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_16[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* dl-PRS-ResourceSymbolOffset-v1800 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_16 = { + sizeof(struct NR_DL_PRS_Resource_r16__ext2), + offsetof(struct NR_DL_PRS_Resource_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_16, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_16, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_16 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_16, + sizeof(asn_DEF_ext2_tags_16) + /sizeof(asn_DEF_ext2_tags_16[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_16, /* Same as above */ + sizeof(asn_DEF_ext2_tags_16) + /sizeof(asn_DEF_ext2_tags_16[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_16, + 1, /* Elements count */ + &asn_SPC_ext2_specs_16 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_PRS_Resource_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Resource_r16, nr_DL_PRS_ResourceID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Resource_r16, dl_PRS_SequenceID_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_SequenceID_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_SequenceID_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-SequenceID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Resource_r16, dl_PRS_CombSizeN_AndReOffset_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_dl_PRS_CombSizeN_AndReOffset_r16_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-CombSizeN-AndReOffset-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Resource_r16, dl_PRS_ResourceSlotOffset_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ResourceSlotOffset_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ResourceSlotOffset_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ResourceSlotOffset-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_Resource_r16, dl_PRS_ResourceSymbolOffset_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ResourceSymbolOffset_r16_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ResourceSymbolOffset_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ResourceSymbolOffset-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_PRS_Resource_r16, dl_PRS_QCL_Info_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_DL_PRS_QCL_Info_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-QCL-Info-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_PRS_Resource_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext1_14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_Resource_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_ext2_16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_NR_DL_PRS_Resource_r16_oms_1[] = { 5, 6, 7 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_Resource_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_Resource_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-ResourceID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* dl-PRS-SequenceID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dl-PRS-CombSizeN-AndReOffset-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* dl-PRS-ResourceSlotOffset-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* dl-PRS-ResourceSymbolOffset-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* dl-PRS-QCL-Info-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_Resource_r16_specs_1 = { + sizeof(struct NR_DL_PRS_Resource_r16), + offsetof(struct NR_DL_PRS_Resource_r16, _asn_ctx), + asn_MAP_NR_DL_PRS_Resource_r16_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_NR_DL_PRS_Resource_r16_oms_1, /* Optional members */ + 1, 2, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_Resource_r16 = { + "NR-DL-PRS-Resource-r16", + "NR-DL-PRS-Resource-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_PRS_Resource_r16_tags_1, + sizeof(asn_DEF_NR_DL_PRS_Resource_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_Resource_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_Resource_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_Resource_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_Resource_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_PRS_Resource_r16_1, + 8, /* Elements count */ + &asn_SPC_NR_DL_PRS_Resource_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-Resource-r16.h b/asn.1/lpp_generated/NR-DL-PRS-Resource-r16.h new file mode 100644 index 00000000..6ba358e8 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-Resource-r16.h @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_Resource_r16_H_ +#define _NR_DL_PRS_Resource_r16_H_ + + +#include + +/* Including external dependencies */ +#include "NR-DL-PRS-ResourceID-r16.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_PRS_Resource_r16__dl_PRS_CombSizeN_AndReOffset_r16_PR { + NR_DL_PRS_Resource_r16__dl_PRS_CombSizeN_AndReOffset_r16_PR_NOTHING, /* No components present */ + NR_DL_PRS_Resource_r16__dl_PRS_CombSizeN_AndReOffset_r16_PR_n2_r16, + NR_DL_PRS_Resource_r16__dl_PRS_CombSizeN_AndReOffset_r16_PR_n4_r16, + NR_DL_PRS_Resource_r16__dl_PRS_CombSizeN_AndReOffset_r16_PR_n6_r16, + NR_DL_PRS_Resource_r16__dl_PRS_CombSizeN_AndReOffset_r16_PR_n12_r16 + /* Extensions may appear below */ + +} NR_DL_PRS_Resource_r16__dl_PRS_CombSizeN_AndReOffset_r16_PR; + +/* Forward declarations */ +struct DL_PRS_QCL_Info_r16; +struct DL_PRS_ResourcePrioritySubset_r17; + +/* NR-DL-PRS-Resource-r16 */ +typedef struct NR_DL_PRS_Resource_r16 { + NR_DL_PRS_ResourceID_r16_t nr_DL_PRS_ResourceID_r16; + long dl_PRS_SequenceID_r16; + struct NR_DL_PRS_Resource_r16__dl_PRS_CombSizeN_AndReOffset_r16 { + NR_DL_PRS_Resource_r16__dl_PRS_CombSizeN_AndReOffset_r16_PR present; + union NR_DL_PRS_Resource_r16__dl_PRS_CombSizeN_AndReOffset_r16_u { + long n2_r16; + long n4_r16; + long n6_r16; + long n12_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } dl_PRS_CombSizeN_AndReOffset_r16; + long dl_PRS_ResourceSlotOffset_r16; + long dl_PRS_ResourceSymbolOffset_r16; + struct DL_PRS_QCL_Info_r16 *dl_PRS_QCL_Info_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_PRS_Resource_r16__ext1 { + struct DL_PRS_ResourcePrioritySubset_r17 *dl_PRS_ResourcePrioritySubset_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct NR_DL_PRS_Resource_r16__ext2 { + long *dl_PRS_ResourceSymbolOffset_v1800; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_Resource_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_Resource_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_Resource_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_Resource_r16_1[8]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_Resource_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-ResourceID-r16.c b/asn.1/lpp_generated/NR-DL-PRS-ResourceID-r16.c new file mode 100644 index 00000000..5792a262 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ResourceID-r16.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-ResourceID-r16.h" + +int +NR_DL_PRS_ResourceID_r16_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_PRS_ResourceID_r16_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_ResourceID_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ResourceID_r16 = { + "NR-DL-PRS-ResourceID-r16", + "NR-DL-PRS-ResourceID-r16", + &asn_OP_NativeInteger, + asn_DEF_NR_DL_PRS_ResourceID_r16_tags_1, + sizeof(asn_DEF_NR_DL_PRS_ResourceID_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_ResourceID_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_ResourceID_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_ResourceID_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_ResourceID_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_PRS_ResourceID_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NR_DL_PRS_ResourceID_r16_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-ResourceID-r16.h b/asn.1/lpp_generated/NR-DL-PRS-ResourceID-r16.h new file mode 100644 index 00000000..d4a3eed9 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ResourceID-r16.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_ResourceID_r16_H_ +#define _NR_DL_PRS_ResourceID_r16_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-DL-PRS-ResourceID-r16 */ +typedef long NR_DL_PRS_ResourceID_r16_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_NR_DL_PRS_ResourceID_r16_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ResourceID_r16; +asn_struct_free_f NR_DL_PRS_ResourceID_r16_free; +asn_constr_check_f NR_DL_PRS_ResourceID_r16_constraint; +xer_type_decoder_f NR_DL_PRS_ResourceID_r16_decode_xer; +xer_type_encoder_f NR_DL_PRS_ResourceID_r16_encode_xer; +jer_type_encoder_f NR_DL_PRS_ResourceID_r16_encode_jer; +per_type_decoder_f NR_DL_PRS_ResourceID_r16_decode_uper; +per_type_encoder_f NR_DL_PRS_ResourceID_r16_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_ResourceID_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-ResourceSet-r16.c b/asn.1/lpp_generated/NR-DL-PRS-ResourceSet-r16.c new file mode 100644 index 00000000..799ac521 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ResourceSet-r16.c @@ -0,0 +1,536 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-ResourceSet-r16.h" + +#include "DL-PRS-MutingOption1-r16.h" +#include "DL-PRS-MutingOption2-r16.h" +#include "NR-DL-PRS-Resource-r16.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_dl_PRS_ResourcePower_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -60L && value <= 50L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_PRS_ResourceList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 64UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_ResourceRepetitionFactor_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_ResourceTimeGap_r16_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_NumSymbols_r16_constr_20 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_ResourceList_r16_constr_30 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ResourcePower_r16_constr_29 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, -60, 50 } /* (-60..50) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ResourceList_r16_constr_30 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_ResourceRepetitionFactor_r16_value2enum_4[] = { + { 0, 2, "n2" }, + { 1, 2, "n4" }, + { 2, 2, "n6" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n32" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_dl_PRS_ResourceRepetitionFactor_r16_enum2value_4[] = { + 4, /* n16(4) */ + 0, /* n2(0) */ + 5, /* n32(5) */ + 1, /* n4(1) */ + 2, /* n6(2) */ + 3 /* n8(3) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_ResourceRepetitionFactor_r16_specs_4 = { + asn_MAP_dl_PRS_ResourceRepetitionFactor_r16_value2enum_4, /* "tag" => N; sorted by tag */ + asn_MAP_dl_PRS_ResourceRepetitionFactor_r16_enum2value_4, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 7, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_4 = { + "dl-PRS-ResourceRepetitionFactor-r16", + "dl-PRS-ResourceRepetitionFactor-r16", + &asn_OP_NativeEnumerated, + asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_tags_4, + sizeof(asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_tags_4) + /sizeof(asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_tags_4[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_tags_4, /* Same as above */ + sizeof(asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_tags_4) + /sizeof(asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_ResourceRepetitionFactor_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_PRS_ResourceRepetitionFactor_r16_specs_4 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_ResourceTimeGap_r16_value2enum_12[] = { + { 0, 2, "s1" }, + { 1, 2, "s2" }, + { 2, 2, "s4" }, + { 3, 2, "s8" }, + { 4, 3, "s16" }, + { 5, 3, "s32" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_dl_PRS_ResourceTimeGap_r16_enum2value_12[] = { + 0, /* s1(0) */ + 4, /* s16(4) */ + 1, /* s2(1) */ + 5, /* s32(5) */ + 2, /* s4(2) */ + 3 /* s8(3) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_ResourceTimeGap_r16_specs_12 = { + asn_MAP_dl_PRS_ResourceTimeGap_r16_value2enum_12, /* "tag" => N; sorted by tag */ + asn_MAP_dl_PRS_ResourceTimeGap_r16_enum2value_12, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 7, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_ResourceTimeGap_r16_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_ResourceTimeGap_r16_12 = { + "dl-PRS-ResourceTimeGap-r16", + "dl-PRS-ResourceTimeGap-r16", + &asn_OP_NativeEnumerated, + asn_DEF_dl_PRS_ResourceTimeGap_r16_tags_12, + sizeof(asn_DEF_dl_PRS_ResourceTimeGap_r16_tags_12) + /sizeof(asn_DEF_dl_PRS_ResourceTimeGap_r16_tags_12[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_ResourceTimeGap_r16_tags_12, /* Same as above */ + sizeof(asn_DEF_dl_PRS_ResourceTimeGap_r16_tags_12) + /sizeof(asn_DEF_dl_PRS_ResourceTimeGap_r16_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_ResourceTimeGap_r16_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_PRS_ResourceTimeGap_r16_specs_12 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_NumSymbols_r16_value2enum_20[] = { + { 0, 2, "n2" }, + { 1, 2, "n4" }, + { 2, 2, "n6" }, + { 3, 3, "n12" }, + { 4, 8, "n1-v1800" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_dl_PRS_NumSymbols_r16_enum2value_20[] = { + 4, /* n1-v1800(4) */ + 3, /* n12(3) */ + 0, /* n2(0) */ + 1, /* n4(1) */ + 2 /* n6(2) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_NumSymbols_r16_specs_20 = { + asn_MAP_dl_PRS_NumSymbols_r16_value2enum_20, /* "tag" => N; sorted by tag */ + asn_MAP_dl_PRS_NumSymbols_r16_enum2value_20, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_NumSymbols_r16_tags_20[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_NumSymbols_r16_20 = { + "dl-PRS-NumSymbols-r16", + "dl-PRS-NumSymbols-r16", + &asn_OP_NativeEnumerated, + asn_DEF_dl_PRS_NumSymbols_r16_tags_20, + sizeof(asn_DEF_dl_PRS_NumSymbols_r16_tags_20) + /sizeof(asn_DEF_dl_PRS_NumSymbols_r16_tags_20[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_NumSymbols_r16_tags_20, /* Same as above */ + sizeof(asn_DEF_dl_PRS_NumSymbols_r16_tags_20) + /sizeof(asn_DEF_dl_PRS_NumSymbols_r16_tags_20[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_NumSymbols_r16_constr_20, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_PRS_NumSymbols_r16_specs_20 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_dl_PRS_ResourceList_r16_30[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_PRS_Resource_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_ResourceList_r16_tags_30[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_dl_PRS_ResourceList_r16_specs_30 = { + sizeof(struct NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceList_r16), + offsetof(struct NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_ResourceList_r16_30 = { + "dl-PRS-ResourceList-r16", + "dl-PRS-ResourceList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_dl_PRS_ResourceList_r16_tags_30, + sizeof(asn_DEF_dl_PRS_ResourceList_r16_tags_30) + /sizeof(asn_DEF_dl_PRS_ResourceList_r16_tags_30[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_ResourceList_r16_tags_30, /* Same as above */ + sizeof(asn_DEF_dl_PRS_ResourceList_r16_tags_30) + /sizeof(asn_DEF_dl_PRS_ResourceList_r16_tags_30[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_ResourceList_r16_constr_30, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_dl_PRS_ResourceList_r16_30, + 1, /* Single element */ + &asn_SPC_dl_PRS_ResourceList_r16_specs_30 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_PRS_ResourceSet_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourceSet_r16, nr_DL_PRS_ResourceSetID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceSetID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceSetID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourceSet_r16, dl_PRS_Periodicity_and_ResourceSetSlotOffset_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-Periodicity-and-ResourceSetSlotOffset-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_PRS_ResourceSet_r16, dl_PRS_ResourceRepetitionFactor_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-ResourceRepetitionFactor-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_ResourceSet_r16, dl_PRS_ResourceTimeGap_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_PRS_ResourceTimeGap_r16_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-ResourceTimeGap-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourceSet_r16, dl_PRS_NumSymbols_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_PRS_NumSymbols_r16_20, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-NumSymbols-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_PRS_ResourceSet_r16, dl_PRS_MutingOption1_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DL_PRS_MutingOption1_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-MutingOption1-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_ResourceSet_r16, dl_PRS_MutingOption2_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DL_PRS_MutingOption2_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-MutingOption2-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourceSet_r16, dl_PRS_ResourcePower_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ResourcePower_r16_constr_29, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ResourcePower_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ResourcePower-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourceSet_r16, dl_PRS_ResourceList_r16), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + 0, + &asn_DEF_dl_PRS_ResourceList_r16_30, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ResourceList_r16_constr_30, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ResourceList_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ResourceList-r16" + }, +}; +static const int asn_MAP_NR_DL_PRS_ResourceSet_r16_oms_1[] = { 2, 3, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_ResourceSet_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_ResourceSet_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-ResourceSetID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* dl-PRS-Periodicity-and-ResourceSetSlotOffset-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dl-PRS-ResourceRepetitionFactor-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* dl-PRS-ResourceTimeGap-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* dl-PRS-NumSymbols-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* dl-PRS-MutingOption1-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* dl-PRS-MutingOption2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* dl-PRS-ResourcePower-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* dl-PRS-ResourceList-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_ResourceSet_r16_specs_1 = { + sizeof(struct NR_DL_PRS_ResourceSet_r16), + offsetof(struct NR_DL_PRS_ResourceSet_r16, _asn_ctx), + asn_MAP_NR_DL_PRS_ResourceSet_r16_tag2el_1, + 9, /* Count of tags in the map */ + asn_MAP_NR_DL_PRS_ResourceSet_r16_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 9, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ResourceSet_r16 = { + "NR-DL-PRS-ResourceSet-r16", + "NR-DL-PRS-ResourceSet-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_PRS_ResourceSet_r16_tags_1, + sizeof(asn_DEF_NR_DL_PRS_ResourceSet_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_ResourceSet_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_ResourceSet_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_ResourceSet_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_ResourceSet_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_PRS_ResourceSet_r16_1, + 9, /* Elements count */ + &asn_SPC_NR_DL_PRS_ResourceSet_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-ResourceSet-r16.h b/asn.1/lpp_generated/NR-DL-PRS-ResourceSet-r16.h new file mode 100644 index 00000000..d8a2de3f --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ResourceSet-r16.h @@ -0,0 +1,104 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_ResourceSet_r16_H_ +#define _NR_DL_PRS_ResourceSet_r16_H_ + + +#include + +/* Including external dependencies */ +#include "NR-DL-PRS-ResourceSetID-r16.h" +#include "NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16.h" +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceRepetitionFactor_r16 { + NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceRepetitionFactor_r16_n2 = 0, + NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceRepetitionFactor_r16_n4 = 1, + NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceRepetitionFactor_r16_n6 = 2, + NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceRepetitionFactor_r16_n8 = 3, + NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceRepetitionFactor_r16_n16 = 4, + NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceRepetitionFactor_r16_n32 = 5 + /* + * Enumeration is extensible + */ +} e_NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceRepetitionFactor_r16; +typedef enum NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceTimeGap_r16 { + NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceTimeGap_r16_s1 = 0, + NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceTimeGap_r16_s2 = 1, + NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceTimeGap_r16_s4 = 2, + NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceTimeGap_r16_s8 = 3, + NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceTimeGap_r16_s16 = 4, + NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceTimeGap_r16_s32 = 5 + /* + * Enumeration is extensible + */ +} e_NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceTimeGap_r16; +typedef enum NR_DL_PRS_ResourceSet_r16__dl_PRS_NumSymbols_r16 { + NR_DL_PRS_ResourceSet_r16__dl_PRS_NumSymbols_r16_n2 = 0, + NR_DL_PRS_ResourceSet_r16__dl_PRS_NumSymbols_r16_n4 = 1, + NR_DL_PRS_ResourceSet_r16__dl_PRS_NumSymbols_r16_n6 = 2, + NR_DL_PRS_ResourceSet_r16__dl_PRS_NumSymbols_r16_n12 = 3, + /* + * Enumeration is extensible + */ + NR_DL_PRS_ResourceSet_r16__dl_PRS_NumSymbols_r16_n1_v1800 = 4 +} e_NR_DL_PRS_ResourceSet_r16__dl_PRS_NumSymbols_r16; + +/* Forward declarations */ +struct DL_PRS_MutingOption1_r16; +struct DL_PRS_MutingOption2_r16; +struct NR_DL_PRS_Resource_r16; + +/* NR-DL-PRS-ResourceSet-r16 */ +typedef struct NR_DL_PRS_ResourceSet_r16 { + NR_DL_PRS_ResourceSetID_r16_t nr_DL_PRS_ResourceSetID_r16; + NR_DL_PRS_Periodicity_and_ResourceSetSlotOffset_r16_t dl_PRS_Periodicity_and_ResourceSetSlotOffset_r16; + long *dl_PRS_ResourceRepetitionFactor_r16; /* OPTIONAL */ + long *dl_PRS_ResourceTimeGap_r16; /* OPTIONAL */ + long dl_PRS_NumSymbols_r16; + struct DL_PRS_MutingOption1_r16 *dl_PRS_MutingOption1_r16; /* OPTIONAL */ + struct DL_PRS_MutingOption2_r16 *dl_PRS_MutingOption2_r16; /* OPTIONAL */ + long dl_PRS_ResourcePower_r16; + struct NR_DL_PRS_ResourceSet_r16__dl_PRS_ResourceList_r16 { + A_SEQUENCE_OF(struct NR_DL_PRS_Resource_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } dl_PRS_ResourceList_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_ResourceSet_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_dl_PRS_ResourceRepetitionFactor_r16_4; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_dl_PRS_ResourceTimeGap_r16_12; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_dl_PRS_NumSymbols_r16_20; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ResourceSet_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_ResourceSet_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_ResourceSet_r16_1[9]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_ResourceSet_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-ResourceSetID-r16.c b/asn.1/lpp_generated/NR-DL-PRS-ResourceSetID-r16.c new file mode 100644 index 00000000..7e44594e --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ResourceSetID-r16.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-ResourceSetID-r16.h" + +int +NR_DL_PRS_ResourceSetID_r16_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_PRS_ResourceSetID_r16_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_ResourceSetID_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ResourceSetID_r16 = { + "NR-DL-PRS-ResourceSetID-r16", + "NR-DL-PRS-ResourceSetID-r16", + &asn_OP_NativeInteger, + asn_DEF_NR_DL_PRS_ResourceSetID_r16_tags_1, + sizeof(asn_DEF_NR_DL_PRS_ResourceSetID_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_ResourceSetID_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_ResourceSetID_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_ResourceSetID_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_ResourceSetID_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_PRS_ResourceSetID_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NR_DL_PRS_ResourceSetID_r16_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-ResourceSetID-r16.h b/asn.1/lpp_generated/NR-DL-PRS-ResourceSetID-r16.h new file mode 100644 index 00000000..79c75d0e --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ResourceSetID-r16.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_ResourceSetID_r16_H_ +#define _NR_DL_PRS_ResourceSetID_r16_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-DL-PRS-ResourceSetID-r16 */ +typedef long NR_DL_PRS_ResourceSetID_r16_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_NR_DL_PRS_ResourceSetID_r16_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ResourceSetID_r16; +asn_struct_free_f NR_DL_PRS_ResourceSetID_r16_free; +asn_constr_check_f NR_DL_PRS_ResourceSetID_r16_constraint; +xer_type_decoder_f NR_DL_PRS_ResourceSetID_r16_decode_xer; +xer_type_encoder_f NR_DL_PRS_ResourceSetID_r16_encode_xer; +jer_type_encoder_f NR_DL_PRS_ResourceSetID_r16_encode_jer; +per_type_decoder_f NR_DL_PRS_ResourceSetID_r16_decode_uper; +per_type_encoder_f NR_DL_PRS_ResourceSetID_r16_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_ResourceSetID_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-ResourcesCapability-r16.c b/asn.1/lpp_generated/NR-DL-PRS-ResourcesCapability-r16.c new file mode 100644 index 00000000..d50e4f4a --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ResourcesCapability-r16.c @@ -0,0 +1,368 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-ResourcesCapability-r16.h" + +#include "DL-PRS-ResourcesCapabilityPerBand-r16.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_maxNrOfDL_PRS_ResourceSetPerTrpPerFrequencyLayer_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 2L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_maxNrOfPosLayer_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 4L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_PRS_ResourcesCapabilityBandList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 1024UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNrOfTRP_AcrossFreqs_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 7 } /* (0..7,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_ResourcesCapabilityBandList_r16_constr_15 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxNrOfDL_PRS_ResourceSetPerTrpPerFrequencyLayer_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (1..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxNrOfPosLayer_r16_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (1..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ResourcesCapabilityBandList_r16_constr_15 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_maxNrOfTRP_AcrossFreqs_r16_value2enum_3[] = { + { 0, 2, "n4" }, + { 1, 2, "n6" }, + { 2, 3, "n12" }, + { 3, 3, "n16" }, + { 4, 3, "n32" }, + { 5, 3, "n64" }, + { 6, 4, "n128" }, + { 7, 4, "n256" }, + { 8, 9, "n24-v1690" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_maxNrOfTRP_AcrossFreqs_r16_enum2value_3[] = { + 2, /* n12(2) */ + 6, /* n128(6) */ + 3, /* n16(3) */ + 8, /* n24-v1690(8) */ + 7, /* n256(7) */ + 4, /* n32(4) */ + 0, /* n4(0) */ + 1, /* n6(1) */ + 5 /* n64(5) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNrOfTRP_AcrossFreqs_r16_specs_3 = { + asn_MAP_maxNrOfTRP_AcrossFreqs_r16_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_maxNrOfTRP_AcrossFreqs_r16_enum2value_3, /* N => "tag"; sorted by N */ + 9, /* Number of elements in the maps */ + 9, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNrOfTRP_AcrossFreqs_r16_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNrOfTRP_AcrossFreqs_r16_3 = { + "maxNrOfTRP-AcrossFreqs-r16", + "maxNrOfTRP-AcrossFreqs-r16", + &asn_OP_NativeEnumerated, + asn_DEF_maxNrOfTRP_AcrossFreqs_r16_tags_3, + sizeof(asn_DEF_maxNrOfTRP_AcrossFreqs_r16_tags_3) + /sizeof(asn_DEF_maxNrOfTRP_AcrossFreqs_r16_tags_3[0]) - 1, /* 1 */ + asn_DEF_maxNrOfTRP_AcrossFreqs_r16_tags_3, /* Same as above */ + sizeof(asn_DEF_maxNrOfTRP_AcrossFreqs_r16_tags_3) + /sizeof(asn_DEF_maxNrOfTRP_AcrossFreqs_r16_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNrOfTRP_AcrossFreqs_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNrOfTRP_AcrossFreqs_r16_specs_3 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_dl_PRS_ResourcesCapabilityBandList_r16_15[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DL_PRS_ResourcesCapabilityPerBand_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_ResourcesCapabilityBandList_r16_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_dl_PRS_ResourcesCapabilityBandList_r16_specs_15 = { + sizeof(struct NR_DL_PRS_ResourcesCapability_r16__dl_PRS_ResourcesCapabilityBandList_r16), + offsetof(struct NR_DL_PRS_ResourcesCapability_r16__dl_PRS_ResourcesCapabilityBandList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_ResourcesCapabilityBandList_r16_15 = { + "dl-PRS-ResourcesCapabilityBandList-r16", + "dl-PRS-ResourcesCapabilityBandList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_dl_PRS_ResourcesCapabilityBandList_r16_tags_15, + sizeof(asn_DEF_dl_PRS_ResourcesCapabilityBandList_r16_tags_15) + /sizeof(asn_DEF_dl_PRS_ResourcesCapabilityBandList_r16_tags_15[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_ResourcesCapabilityBandList_r16_tags_15, /* Same as above */ + sizeof(asn_DEF_dl_PRS_ResourcesCapabilityBandList_r16_tags_15) + /sizeof(asn_DEF_dl_PRS_ResourcesCapabilityBandList_r16_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_ResourcesCapabilityBandList_r16_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_dl_PRS_ResourcesCapabilityBandList_r16_15, + 1, /* Single element */ + &asn_SPC_dl_PRS_ResourcesCapabilityBandList_r16_specs_15 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_PRS_ResourcesCapability_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourcesCapability_r16, maxNrOfDL_PRS_ResourceSetPerTrpPerFrequencyLayer_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxNrOfDL_PRS_ResourceSetPerTrpPerFrequencyLayer_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxNrOfDL_PRS_ResourceSetPerTrpPerFrequencyLayer_r16_constraint_1 + }, + 0, 0, /* No default value */ + "maxNrOfDL-PRS-ResourceSetPerTrpPerFrequencyLayer-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourcesCapability_r16, maxNrOfTRP_AcrossFreqs_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNrOfTRP_AcrossFreqs_r16_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNrOfTRP-AcrossFreqs-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourcesCapability_r16, maxNrOfPosLayer_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxNrOfPosLayer_r16_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxNrOfPosLayer_r16_constraint_1 + }, + 0, 0, /* No default value */ + "maxNrOfPosLayer-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourcesCapability_r16, dl_PRS_ResourcesCapabilityBandList_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_dl_PRS_ResourcesCapabilityBandList_r16_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ResourcesCapabilityBandList_r16_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ResourcesCapabilityBandList_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ResourcesCapabilityBandList-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_ResourcesCapability_r16, dl_PRS_ResourcesBandCombinationList_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DL_PRS_ResourcesBandCombinationList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-ResourcesBandCombinationList-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_ResourcesCapability_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_ResourcesCapability_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxNrOfDL-PRS-ResourceSetPerTrpPerFrequencyLayer-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxNrOfTRP-AcrossFreqs-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* maxNrOfPosLayer-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* dl-PRS-ResourcesCapabilityBandList-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* dl-PRS-ResourcesBandCombinationList-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_ResourcesCapability_r16_specs_1 = { + sizeof(struct NR_DL_PRS_ResourcesCapability_r16), + offsetof(struct NR_DL_PRS_ResourcesCapability_r16, _asn_ctx), + asn_MAP_NR_DL_PRS_ResourcesCapability_r16_tag2el_1, + 5, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ResourcesCapability_r16 = { + "NR-DL-PRS-ResourcesCapability-r16", + "NR-DL-PRS-ResourcesCapability-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_PRS_ResourcesCapability_r16_tags_1, + sizeof(asn_DEF_NR_DL_PRS_ResourcesCapability_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_ResourcesCapability_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_ResourcesCapability_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_ResourcesCapability_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_ResourcesCapability_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_PRS_ResourcesCapability_r16_1, + 5, /* Elements count */ + &asn_SPC_NR_DL_PRS_ResourcesCapability_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-ResourcesCapability-r16.h b/asn.1/lpp_generated/NR-DL-PRS-ResourcesCapability-r16.h new file mode 100644 index 00000000..a91cd5c3 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-ResourcesCapability-r16.h @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_ResourcesCapability_r16_H_ +#define _NR_DL_PRS_ResourcesCapability_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include "DL-PRS-ResourcesBandCombinationList-r16.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_PRS_ResourcesCapability_r16__maxNrOfTRP_AcrossFreqs_r16 { + NR_DL_PRS_ResourcesCapability_r16__maxNrOfTRP_AcrossFreqs_r16_n4 = 0, + NR_DL_PRS_ResourcesCapability_r16__maxNrOfTRP_AcrossFreqs_r16_n6 = 1, + NR_DL_PRS_ResourcesCapability_r16__maxNrOfTRP_AcrossFreqs_r16_n12 = 2, + NR_DL_PRS_ResourcesCapability_r16__maxNrOfTRP_AcrossFreqs_r16_n16 = 3, + NR_DL_PRS_ResourcesCapability_r16__maxNrOfTRP_AcrossFreqs_r16_n32 = 4, + NR_DL_PRS_ResourcesCapability_r16__maxNrOfTRP_AcrossFreqs_r16_n64 = 5, + NR_DL_PRS_ResourcesCapability_r16__maxNrOfTRP_AcrossFreqs_r16_n128 = 6, + NR_DL_PRS_ResourcesCapability_r16__maxNrOfTRP_AcrossFreqs_r16_n256 = 7, + /* + * Enumeration is extensible + */ + NR_DL_PRS_ResourcesCapability_r16__maxNrOfTRP_AcrossFreqs_r16_n24_v1690 = 8 +} e_NR_DL_PRS_ResourcesCapability_r16__maxNrOfTRP_AcrossFreqs_r16; + +/* Forward declarations */ +struct DL_PRS_ResourcesCapabilityPerBand_r16; + +/* NR-DL-PRS-ResourcesCapability-r16 */ +typedef struct NR_DL_PRS_ResourcesCapability_r16 { + long maxNrOfDL_PRS_ResourceSetPerTrpPerFrequencyLayer_r16; + long maxNrOfTRP_AcrossFreqs_r16; + long maxNrOfPosLayer_r16; + struct NR_DL_PRS_ResourcesCapability_r16__dl_PRS_ResourcesCapabilityBandList_r16 { + A_SEQUENCE_OF(struct DL_PRS_ResourcesCapabilityPerBand_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } dl_PRS_ResourcesCapabilityBandList_r16; + DL_PRS_ResourcesBandCombinationList_r16_t dl_PRS_ResourcesBandCombinationList_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_ResourcesCapability_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNrOfTRP_AcrossFreqs_r16_3; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_ResourcesCapability_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_ResourcesCapability_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_ResourcesCapability_r16_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_ResourcesCapability_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-SFN0-Offset-r16.c b/asn.1/lpp_generated/NR-DL-PRS-SFN0-Offset-r16.c new file mode 100644 index 00000000..5f5b99ce --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-SFN0-Offset-r16.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-SFN0-Offset-r16.h" + +static int +memb_sfn_Offset_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_integerSubframeOffset_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sfn_Offset_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_integerSubframeOffset_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_PRS_SFN0_Offset_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_SFN0_Offset_r16, sfn_Offset_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sfn_Offset_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sfn_Offset_r16_constraint_1 + }, + 0, 0, /* No default value */ + "sfn-Offset-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_SFN0_Offset_r16, integerSubframeOffset_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_integerSubframeOffset_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_integerSubframeOffset_r16_constraint_1 + }, + 0, 0, /* No default value */ + "integerSubframeOffset-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_SFN0_Offset_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_SFN0_Offset_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sfn-Offset-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* integerSubframeOffset-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_SFN0_Offset_r16_specs_1 = { + sizeof(struct NR_DL_PRS_SFN0_Offset_r16), + offsetof(struct NR_DL_PRS_SFN0_Offset_r16, _asn_ctx), + asn_MAP_NR_DL_PRS_SFN0_Offset_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_SFN0_Offset_r16 = { + "NR-DL-PRS-SFN0-Offset-r16", + "NR-DL-PRS-SFN0-Offset-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_PRS_SFN0_Offset_r16_tags_1, + sizeof(asn_DEF_NR_DL_PRS_SFN0_Offset_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_SFN0_Offset_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_SFN0_Offset_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_SFN0_Offset_r16_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_SFN0_Offset_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_PRS_SFN0_Offset_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_DL_PRS_SFN0_Offset_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-SFN0-Offset-r16.h b/asn.1/lpp_generated/NR-DL-PRS-SFN0-Offset-r16.h new file mode 100644 index 00000000..b89db07e --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-SFN0-Offset-r16.h @@ -0,0 +1,45 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_SFN0_Offset_r16_H_ +#define _NR_DL_PRS_SFN0_Offset_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-DL-PRS-SFN0-Offset-r16 */ +typedef struct NR_DL_PRS_SFN0_Offset_r16 { + long sfn_Offset_r16; + long integerSubframeOffset_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_SFN0_Offset_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_SFN0_Offset_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_SFN0_Offset_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_SFN0_Offset_r16_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_SFN0_Offset_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-Info-r17.c b/asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-Info-r17.c new file mode 100644 index 00000000..9e2e1d4b --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-Info-r17.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-TRP-TEG-Info-r17.h" + +#include "NR-DL-PRS-TRP-TEG-InfoPerFreqLayer-r17.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_PRS_TRP_TEG_Info_r17_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_PRS_TRP_TEG_Info_r17_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_TRP_TEG_Info_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_DL_PRS_TRP_TEG_Info_r17_specs_1 = { + sizeof(struct NR_DL_PRS_TRP_TEG_Info_r17), + offsetof(struct NR_DL_PRS_TRP_TEG_Info_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_TRP_TEG_Info_r17 = { + "NR-DL-PRS-TRP-TEG-Info-r17", + "NR-DL-PRS-TRP-TEG-Info-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_DL_PRS_TRP_TEG_Info_r17_tags_1, + sizeof(asn_DEF_NR_DL_PRS_TRP_TEG_Info_r17_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_TRP_TEG_Info_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_TRP_TEG_Info_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_TRP_TEG_Info_r17_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_TRP_TEG_Info_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_PRS_TRP_TEG_Info_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_DL_PRS_TRP_TEG_Info_r17_1, + 1, /* Single element */ + &asn_SPC_NR_DL_PRS_TRP_TEG_Info_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-Info-r17.h b/asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-Info-r17.h new file mode 100644 index 00000000..2671c6ea --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-Info-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_TRP_TEG_Info_r17_H_ +#define _NR_DL_PRS_TRP_TEG_Info_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17; + +/* NR-DL-PRS-TRP-TEG-Info-r17 */ +typedef struct NR_DL_PRS_TRP_TEG_Info_r17 { + A_SEQUENCE_OF(struct NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_TRP_TEG_Info_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_TRP_TEG_Info_r17; +extern asn_SET_OF_specifics_t asn_SPC_NR_DL_PRS_TRP_TEG_Info_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_TRP_TEG_Info_r17_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_DL_PRS_TRP_TEG_Info_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_TRP_TEG_Info_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-InfoPerFreqLayer-r17.c b/asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-InfoPerFreqLayer-r17.c new file mode 100644 index 00000000..7751649c --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-InfoPerFreqLayer-r17.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-TRP-TEG-InfoPerFreqLayer-r17.h" + +#include "NR-DL-PRS-TRP-TEG-InfoPerTRP-r17.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_specs_1 = { + sizeof(struct NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17), + offsetof(struct NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17 = { + "NR-DL-PRS-TRP-TEG-InfoPerFreqLayer-r17", + "NR-DL-PRS-TRP-TEG-InfoPerFreqLayer-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_tags_1, + sizeof(asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_1, + 1, /* Single element */ + &asn_SPC_NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-InfoPerFreqLayer-r17.h b/asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-InfoPerFreqLayer-r17.h new file mode 100644 index 00000000..c3b34b37 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-InfoPerFreqLayer-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_H_ +#define _NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_DL_PRS_TRP_TEG_InfoPerTRP_r17; + +/* NR-DL-PRS-TRP-TEG-InfoPerFreqLayer-r17 */ +typedef struct NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17 { + A_SEQUENCE_OF(struct NR_DL_PRS_TRP_TEG_InfoPerTRP_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17; +extern asn_SET_OF_specifics_t asn_SPC_NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_TRP_TEG_InfoPerFreqLayer_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-InfoPerTRP-r17.c b/asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-InfoPerTRP-r17.c new file mode 100644 index 00000000..669f8889 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-InfoPerTRP-r17.c @@ -0,0 +1,346 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRS-TRP-TEG-InfoPerTRP-r17.h" + +#include "NCGI-r15.h" +#include "DL-PRS-TEG-InfoPerResourceSet-r17.h" +static int +memb_dl_PRS_ID_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_PRS_TEG_InfoSet_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 2UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_TEG_InfoSet_r17_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ID_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_TEG_InfoSet_r17_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_dl_PRS_TEG_InfoSet_r17_6[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DL_PRS_TEG_InfoPerResourceSet_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_TEG_InfoSet_r17_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_dl_PRS_TEG_InfoSet_r17_specs_6 = { + sizeof(struct NR_DL_PRS_TRP_TEG_InfoPerTRP_r17__dl_PRS_TEG_InfoSet_r17), + offsetof(struct NR_DL_PRS_TRP_TEG_InfoPerTRP_r17__dl_PRS_TEG_InfoSet_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_TEG_InfoSet_r17_6 = { + "dl-PRS-TEG-InfoSet-r17", + "dl-PRS-TEG-InfoSet-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_dl_PRS_TEG_InfoSet_r17_tags_6, + sizeof(asn_DEF_dl_PRS_TEG_InfoSet_r17_tags_6) + /sizeof(asn_DEF_dl_PRS_TEG_InfoSet_r17_tags_6[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_TEG_InfoSet_r17_tags_6, /* Same as above */ + sizeof(asn_DEF_dl_PRS_TEG_InfoSet_r17_tags_6) + /sizeof(asn_DEF_dl_PRS_TEG_InfoSet_r17_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_TEG_InfoSet_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_dl_PRS_TEG_InfoSet_r17_6, + 1, /* Single element */ + &asn_SPC_dl_PRS_TEG_InfoSet_r17_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_9[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_TRP_TEG_InfoPerTRP_r17__ext1, nr_TRP_TxTEG_TimingErrorMargin_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TEG_TimingErrorMargin_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-TRP-TxTEG-TimingErrorMargin-r17" + }, +}; +static const int asn_MAP_ext1_oms_9[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_9[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-TRP-TxTEG-TimingErrorMargin-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_9 = { + sizeof(struct NR_DL_PRS_TRP_TEG_InfoPerTRP_r17__ext1), + offsetof(struct NR_DL_PRS_TRP_TEG_InfoPerTRP_r17__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_9, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_9, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_9 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_9, + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_9, /* Same as above */ + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_9, + 1, /* Elements count */ + &asn_SPC_ext1_specs_9 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_TRP_TEG_InfoPerTRP_r17, dl_PRS_ID_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ID_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ID_r17_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ID-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_PRS_TRP_TEG_InfoPerTRP_r17, nr_PhysCellID_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_PRS_TRP_TEG_InfoPerTRP_r17, nr_CellGlobalID_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-CellGlobalID-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_TRP_TEG_InfoPerTRP_r17, nr_ARFCN_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ARFCN-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRS_TRP_TEG_InfoPerTRP_r17, dl_PRS_TEG_InfoSet_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_dl_PRS_TEG_InfoSet_r17_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_TEG_InfoSet_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_TEG_InfoSet_r17_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-TEG-InfoSet-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_PRS_TRP_TEG_InfoPerTRP_r17, ext1), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext1_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_oms_1[] = { 1, 2, 3, 5 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PhysCellID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-CellGlobalID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-ARFCN-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* dl-PRS-TEG-InfoSet-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_specs_1 = { + sizeof(struct NR_DL_PRS_TRP_TEG_InfoPerTRP_r17), + offsetof(struct NR_DL_PRS_TRP_TEG_InfoPerTRP_r17, _asn_ctx), + asn_MAP_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_oms_1, /* Optional members */ + 3, 1, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17 = { + "NR-DL-PRS-TRP-TEG-InfoPerTRP-r17", + "NR-DL-PRS-TRP-TEG-InfoPerTRP-r17", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_tags_1, + sizeof(asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_tags_1) + /sizeof(asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_1, + 6, /* Elements count */ + &asn_SPC_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-InfoPerTRP-r17.h b/asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-InfoPerTRP-r17.h new file mode 100644 index 00000000..337b469f --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRS-TRP-TEG-InfoPerTRP-r17.h @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_H_ +#define _NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include "NR-PhysCellID-r16.h" +#include "ARFCN-ValueNR-r15.h" +#include +#include +#include "TEG-TimingErrorMargin-r17.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NCGI_r15; +struct DL_PRS_TEG_InfoPerResourceSet_r17; + +/* NR-DL-PRS-TRP-TEG-InfoPerTRP-r17 */ +typedef struct NR_DL_PRS_TRP_TEG_InfoPerTRP_r17 { + long dl_PRS_ID_r17; + NR_PhysCellID_r16_t *nr_PhysCellID_r17; /* OPTIONAL */ + struct NCGI_r15 *nr_CellGlobalID_r17; /* OPTIONAL */ + ARFCN_ValueNR_r15_t *nr_ARFCN_r17; /* OPTIONAL */ + struct NR_DL_PRS_TRP_TEG_InfoPerTRP_r17__dl_PRS_TEG_InfoSet_r17 { + A_SEQUENCE_OF(struct DL_PRS_TEG_InfoPerResourceSet_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } dl_PRS_TEG_InfoSet_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_PRS_TRP_TEG_InfoPerTRP_r17__ext1 { + TEG_TimingErrorMargin_r17_t *nr_TRP_TxTEG_TimingErrorMargin_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_1[6]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRS_TRP_TEG_InfoPerTRP_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-PRSResourcePriorityItem-r17.c b/asn.1/lpp_generated/NR-DL-PRSResourcePriorityItem-r17.c new file mode 100644 index 00000000..73fb5344 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRSResourcePriorityItem-r17.c @@ -0,0 +1,86 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-PRSResourcePriorityItem-r17.h" + +asn_TYPE_member_t asn_MBR_NR_DL_PRSResourcePriorityItem_r17_1[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_PRSResourcePriorityItem_r17, nr_DL_PRS_PrioResourceSetID_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceSetID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-PrioResourceSetID-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_PRSResourcePriorityItem_r17, nr_DL_PRS_PrioResourceID_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-PrioResourceID-r17" + }, +}; +static const int asn_MAP_NR_DL_PRSResourcePriorityItem_r17_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_PRSResourcePriorityItem_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_PRSResourcePriorityItem_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-PrioResourceSetID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-DL-PRS-PrioResourceID-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRSResourcePriorityItem_r17_specs_1 = { + sizeof(struct NR_DL_PRSResourcePriorityItem_r17), + offsetof(struct NR_DL_PRSResourcePriorityItem_r17, _asn_ctx), + asn_MAP_NR_DL_PRSResourcePriorityItem_r17_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_NR_DL_PRSResourcePriorityItem_r17_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_PRSResourcePriorityItem_r17 = { + "NR-DL-PRSResourcePriorityItem-r17", + "NR-DL-PRSResourcePriorityItem-r17", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_PRSResourcePriorityItem_r17_tags_1, + sizeof(asn_DEF_NR_DL_PRSResourcePriorityItem_r17_tags_1) + /sizeof(asn_DEF_NR_DL_PRSResourcePriorityItem_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_PRSResourcePriorityItem_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_PRSResourcePriorityItem_r17_tags_1) + /sizeof(asn_DEF_NR_DL_PRSResourcePriorityItem_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_PRSResourcePriorityItem_r17_1, + 2, /* Elements count */ + &asn_SPC_NR_DL_PRSResourcePriorityItem_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-PRSResourcePriorityItem-r17.h b/asn.1/lpp_generated/NR-DL-PRSResourcePriorityItem-r17.h new file mode 100644 index 00000000..1e9f1352 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-PRSResourcePriorityItem-r17.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_PRSResourcePriorityItem_r17_H_ +#define _NR_DL_PRSResourcePriorityItem_r17_H_ + + +#include + +/* Including external dependencies */ +#include "NR-DL-PRS-ResourceSetID-r16.h" +#include "NR-DL-PRS-ResourceID-r16.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-DL-PRSResourcePriorityItem-r17 */ +typedef struct NR_DL_PRSResourcePriorityItem_r17 { + NR_DL_PRS_ResourceSetID_r16_t *nr_DL_PRS_PrioResourceSetID_r17; /* OPTIONAL */ + NR_DL_PRS_ResourceID_r16_t nr_DL_PRS_PrioResourceID_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_PRSResourcePriorityItem_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_PRSResourcePriorityItem_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_PRSResourcePriorityItem_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_PRSResourcePriorityItem_r17_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_PRSResourcePriorityItem_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurementElement-r16.c b/asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurementElement-r16.c new file mode 100644 index 00000000..26ecdd19 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurementElement-r16.c @@ -0,0 +1,1552 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-TDOA-AdditionalMeasurementElement-r16.h" + +#include "NR-AdditionalPathList-r16.h" +#include "LOS-NLOS-Indicator-r17.h" +#include "NR-AdditionalPathListExt-r17.h" +#include "NR-PhaseQuality-r18.h" +#include "NR-AggregatedDL-PRS-ResourceSetID-Element-r18.h" +#include "NR-RSCPD-AdditionalMeasurementSamplesElement-r18.h" +static int +memb_k0_r16_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k1_r16_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k2_r16_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k3_r16_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k4_r16_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k5_r16_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus6_r18_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 524224L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus5_r18_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 262112L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus4_r18_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 131056L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus3_r18_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65528L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus2_r18_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 32764L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus1_r18_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16382L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_UE_Rx_TEG_ID_r17_constraint_23(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 31L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_FirstPathRSRP_ResultDiff_r17_constraint_23(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 61L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constraint_28(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 2UL && size <= 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_RSCPD_r18_constraint_28(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3599L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_RSCPD_AdditionalMeasurementsAddSamples_r18_constraint_28(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_RSRP_ResultDiff_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 61L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k0_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, 0, 8191 } /* (0..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k1_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k2_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k3_r16_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k4_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k5_r16_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus6_r18_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 19, -1, 0, 524224 } /* (0..524224) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus5_r18_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 18, -1, 0, 262112 } /* (0..262112) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus4_r18_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 0, 131056 } /* (0..131056) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus3_r18_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65528 } /* (0..65528) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus2_r18_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, 0, 32764 } /* (0..32764) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus1_r18_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 16382 } /* (0..16382) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_RSTD_ResultDiff_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_UE_Rx_TEG_ID_r17_constr_24 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_FirstPathRSRP_ResultDiff_r17_constr_25 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 61 } /* (0..61) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_RSTD_BasedOnAggregatedResources_r18_constr_29 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constr_31 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_RSCPD_AdditionalMeasurementsAddSamples_r18_constr_35 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_constr_37 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constr_31 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_RSCPD_r18_constr_33 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_RSCPD_AdditionalMeasurementsAddSamples_r18_constr_35 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_RSRP_ResultDiff_r16_constr_20 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 61 } /* (0..61) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_RSTD_ResultDiff_r16_5[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16, choice.k0_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k0_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k0_r16_constraint_5 + }, + 0, 0, /* No default value */ + "k0-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16, choice.k1_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k1_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k1_r16_constraint_5 + }, + 0, 0, /* No default value */ + "k1-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16, choice.k2_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k2_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k2_r16_constraint_5 + }, + 0, 0, /* No default value */ + "k2-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16, choice.k3_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k3_r16_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k3_r16_constraint_5 + }, + 0, 0, /* No default value */ + "k3-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16, choice.k4_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k4_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k4_r16_constraint_5 + }, + 0, 0, /* No default value */ + "k4-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16, choice.k5_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k5_r16_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k5_r16_constraint_5 + }, + 0, 0, /* No default value */ + "k5-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16, choice.kMinus6_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus6_r18_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus6_r18_constraint_5 + }, + 0, 0, /* No default value */ + "kMinus6-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16, choice.kMinus5_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus5_r18_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus5_r18_constraint_5 + }, + 0, 0, /* No default value */ + "kMinus5-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16, choice.kMinus4_r18), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus4_r18_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus4_r18_constraint_5 + }, + 0, 0, /* No default value */ + "kMinus4-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16, choice.kMinus3_r18), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus3_r18_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus3_r18_constraint_5 + }, + 0, 0, /* No default value */ + "kMinus3-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16, choice.kMinus2_r18), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus2_r18_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus2_r18_constraint_5 + }, + 0, 0, /* No default value */ + "kMinus2-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16, choice.kMinus1_r18), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus1_r18_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus1_r18_constraint_5 + }, + 0, 0, /* No default value */ + "kMinus1-r18" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_RSTD_ResultDiff_r16_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* k0-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* k1-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* k2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* k3-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* k4-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* k5-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* kMinus6-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* kMinus5-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* kMinus4-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* kMinus3-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* kMinus2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* kMinus1-r18 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nr_RSTD_ResultDiff_r16_specs_5 = { + sizeof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16), + offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16, _asn_ctx), + offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16, present), + sizeof(((struct NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16 *)0)->present), + asn_MAP_nr_RSTD_ResultDiff_r16_tag2el_5, + 12, /* Count of tags in the map */ + 0, 0, + 6 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_RSTD_ResultDiff_r16_5 = { + "nr-RSTD-ResultDiff-r16", + "nr-RSTD-ResultDiff-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_RSTD_ResultDiff_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nr_RSTD_ResultDiff_r16_5, + 12, /* Elements count */ + &asn_SPC_nr_RSTD_ResultDiff_r16_specs_5 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_23[] = { + { ATF_POINTER, 4, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext1, nr_UE_Rx_TEG_ID_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_UE_Rx_TEG_ID_r17_constr_24, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_UE_Rx_TEG_ID_r17_constraint_23 + }, + 0, 0, /* No default value */ + "nr-UE-Rx-TEG-ID-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext1, nr_DL_PRS_FirstPathRSRP_ResultDiff_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_FirstPathRSRP_ResultDiff_r17_constr_25, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_FirstPathRSRP_ResultDiff_r17_constraint_23 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-FirstPathRSRP-ResultDiff-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext1, nr_los_nlos_IndicatorPerResource_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_Indicator_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-los-nlos-IndicatorPerResource-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext1, nr_AdditionalPathListExt_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_AdditionalPathListExt_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-AdditionalPathListExt-r17" + }, +}; +static const int asn_MAP_ext1_oms_23[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_23[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_23[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-UE-Rx-TEG-ID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-FirstPathRSRP-ResultDiff-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-los-nlos-IndicatorPerResource-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* nr-AdditionalPathListExt-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_23 = { + sizeof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext1), + offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_23, + 4, /* Count of tags in the map */ + asn_MAP_ext1_oms_23, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_23 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_23, + sizeof(asn_DEF_ext1_tags_23) + /sizeof(asn_DEF_ext1_tags_23[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_23, /* Same as above */ + sizeof(asn_DEF_ext1_tags_23) + /sizeof(asn_DEF_ext1_tags_23[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_23, + 4, /* Elements count */ + &asn_SPC_ext1_specs_23 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_RSTD_BasedOnAggregatedResources_r18_value2enum_29[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_nr_RSTD_BasedOnAggregatedResources_r18_enum2value_29[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_RSTD_BasedOnAggregatedResources_r18_specs_29 = { + asn_MAP_nr_RSTD_BasedOnAggregatedResources_r18_value2enum_29, /* "tag" => N; sorted by tag */ + asn_MAP_nr_RSTD_BasedOnAggregatedResources_r18_enum2value_29, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_tags_29[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_29 = { + "nr-RSTD-BasedOnAggregatedResources-r18", + "nr-RSTD-BasedOnAggregatedResources-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_tags_29, + sizeof(asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_tags_29) + /sizeof(asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_tags_29[0]) - 1, /* 1 */ + asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_tags_29, /* Same as above */ + sizeof(asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_tags_29) + /sizeof(asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_tags_29[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_RSTD_BasedOnAggregatedResources_r18_constr_29, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_RSTD_BasedOnAggregatedResources_r18_specs_29 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_AggregatedDL_PRS_ResourceSetID_List_r18_31[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_AggregatedDL_PRS_ResourceSetID_Element_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_31[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_AggregatedDL_PRS_ResourceSetID_List_r18_specs_31 = { + sizeof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2__nr_AggregatedDL_PRS_ResourceSetID_List_r18), + offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2__nr_AggregatedDL_PRS_ResourceSetID_List_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_31 = { + "nr-AggregatedDL-PRS-ResourceSetID-List-r18", + "nr-AggregatedDL-PRS-ResourceSetID-List-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_31, + sizeof(asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_31) + /sizeof(asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_31[0]) - 1, /* 1 */ + asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_31, /* Same as above */ + sizeof(asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_31) + /sizeof(asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_31[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constr_31, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_AggregatedDL_PRS_ResourceSetID_List_r18_31, + 1, /* Single element */ + &asn_SPC_nr_AggregatedDL_PRS_ResourceSetID_List_r18_specs_31 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_RSCPD_AdditionalMeasurementsAddSamples_r18_35[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_RSCPD_AdditionalMeasurementSamplesElement_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_RSCPD_AdditionalMeasurementsAddSamples_r18_tags_35[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_RSCPD_AdditionalMeasurementsAddSamples_r18_specs_35 = { + sizeof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2__nr_RSCPD_AdditionalMeasurementsAddSamples_r18), + offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2__nr_RSCPD_AdditionalMeasurementsAddSamples_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_RSCPD_AdditionalMeasurementsAddSamples_r18_35 = { + "nr-RSCPD-AdditionalMeasurementsAddSamples-r18", + "nr-RSCPD-AdditionalMeasurementsAddSamples-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_RSCPD_AdditionalMeasurementsAddSamples_r18_tags_35, + sizeof(asn_DEF_nr_RSCPD_AdditionalMeasurementsAddSamples_r18_tags_35) + /sizeof(asn_DEF_nr_RSCPD_AdditionalMeasurementsAddSamples_r18_tags_35[0]) - 1, /* 1 */ + asn_DEF_nr_RSCPD_AdditionalMeasurementsAddSamples_r18_tags_35, /* Same as above */ + sizeof(asn_DEF_nr_RSCPD_AdditionalMeasurementsAddSamples_r18_tags_35) + /sizeof(asn_DEF_nr_RSCPD_AdditionalMeasurementsAddSamples_r18_tags_35[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_RSCPD_AdditionalMeasurementsAddSamples_r18_constr_35, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_RSCPD_AdditionalMeasurementsAddSamples_r18_35, + 1, /* Single element */ + &asn_SPC_nr_RSCPD_AdditionalMeasurementsAddSamples_r18_specs_35 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_value2enum_37[] = { + { 0, 9, "singleHop" }, + { 1, 11, "multipleHop" } +}; +static const unsigned int asn_MAP_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_enum2value_37[] = { + 1, /* multipleHop(1) */ + 0 /* singleHop(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_specs_37 = { + asn_MAP_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_value2enum_37, /* "tag" => N; sorted by tag */ + asn_MAP_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_enum2value_37, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_37[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_37 = { + "nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18", + "nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_37, + sizeof(asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_37) + /sizeof(asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_37[0]) - 1, /* 1 */ + asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_37, /* Same as above */ + sizeof(asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_37) + /sizeof(asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_37[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_constr_37, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_specs_37 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_28[] = { + { ATF_POINTER, 6, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2, nr_RSTD_BasedOnAggregatedResources_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_29, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-RSTD-BasedOnAggregatedResources-r18" + }, + { ATF_POINTER, 5, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2, nr_AggregatedDL_PRS_ResourceSetID_List_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_31, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constr_31, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constraint_28 + }, + 0, 0, /* No default value */ + "nr-AggregatedDL-PRS-ResourceSetID-List-r18" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2, nr_RSCPD_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_RSCPD_r18_constr_33, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_RSCPD_r18_constraint_28 + }, + 0, 0, /* No default value */ + "nr-RSCPD-r18" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2, nr_PhaseQuality_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhaseQuality_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhaseQuality-r18" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2, nr_RSCPD_AdditionalMeasurementsAddSamples_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_nr_RSCPD_AdditionalMeasurementsAddSamples_r18_35, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_RSCPD_AdditionalMeasurementsAddSamples_r18_constr_35, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_RSCPD_AdditionalMeasurementsAddSamples_r18_constraint_28 + }, + 0, 0, /* No default value */ + "nr-RSCPD-AdditionalMeasurementsAddSamples-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2, nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_37, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18" + }, +}; +static const int asn_MAP_ext2_oms_28[] = { 0, 1, 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_28[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_28[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-RSTD-BasedOnAggregatedResources-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-AggregatedDL-PRS-ResourceSetID-List-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-RSCPD-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-PhaseQuality-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-RSCPD-AdditionalMeasurementsAddSamples-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_28 = { + sizeof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2), + offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_28, + 6, /* Count of tags in the map */ + asn_MAP_ext2_oms_28, /* Optional members */ + 6, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_28 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_28, + sizeof(asn_DEF_ext2_tags_28) + /sizeof(asn_DEF_ext2_tags_28[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_28, /* Same as above */ + sizeof(asn_DEF_ext2_tags_28) + /sizeof(asn_DEF_ext2_tags_28[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_28, + 6, /* Elements count */ + &asn_SPC_ext2_specs_28 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_TDOA_AdditionalMeasurementElement_r16_1[] = { + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16, nr_DL_PRS_ResourceID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceID-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16, nr_DL_PRS_ResourceSetID_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceSetID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceSetID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16, nr_TimeStamp_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimeStamp_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-TimeStamp-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16, nr_RSTD_ResultDiff_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nr_RSTD_ResultDiff_r16_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-RSTD-ResultDiff-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16, nr_TimingQuality_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimingQuality_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-TimingQuality-r16" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16, nr_DL_PRS_RSRP_ResultDiff_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_RSRP_ResultDiff_r16_constr_20, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_RSRP_ResultDiff_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RSRP-ResultDiff-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16, nr_AdditionalPathList_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_AdditionalPathList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-AdditionalPathList-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_ext1_23, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + 0, + &asn_DEF_ext2_28, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_NR_DL_TDOA_AdditionalMeasurementElement_r16_oms_1[] = { 0, 1, 5, 6, 7, 8 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_AdditionalMeasurementElement_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-ResourceID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-ResourceSetID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-TimeStamp-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-RSTD-ResultDiff-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-TimingQuality-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nr-DL-PRS-RSRP-ResultDiff-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* nr-AdditionalPathList-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_AdditionalMeasurementElement_r16_specs_1 = { + sizeof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16), + offsetof(struct NR_DL_TDOA_AdditionalMeasurementElement_r16, _asn_ctx), + asn_MAP_NR_DL_TDOA_AdditionalMeasurementElement_r16_tag2el_1, + 9, /* Count of tags in the map */ + asn_MAP_NR_DL_TDOA_AdditionalMeasurementElement_r16_oms_1, /* Optional members */ + 4, 2, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16 = { + "NR-DL-TDOA-AdditionalMeasurementElement-r16", + "NR-DL-TDOA-AdditionalMeasurementElement-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16_tags_1, + sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_TDOA_AdditionalMeasurementElement_r16_1, + 9, /* Elements count */ + &asn_SPC_NR_DL_TDOA_AdditionalMeasurementElement_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurementElement-r16.h b/asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurementElement-r16.h new file mode 100644 index 00000000..669361ed --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurementElement-r16.h @@ -0,0 +1,146 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_TDOA_AdditionalMeasurementElement_r16_H_ +#define _NR_DL_TDOA_AdditionalMeasurementElement_r16_H_ + + +#include + +/* Including external dependencies */ +#include "NR-DL-PRS-ResourceID-r16.h" +#include "NR-DL-PRS-ResourceSetID-r16.h" +#include "NR-TimeStamp-r16.h" +#include "NR-TimingQuality-r16.h" +#include +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16_PR { + NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16_PR_NOTHING, /* No components present */ + NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16_PR_k0_r16, + NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16_PR_k1_r16, + NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16_PR_k2_r16, + NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16_PR_k3_r16, + NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16_PR_k4_r16, + NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16_PR_k5_r16, + /* Extensions may appear below */ + NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16_PR_kMinus6_r18, + NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16_PR_kMinus5_r18, + NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16_PR_kMinus4_r18, + NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16_PR_kMinus3_r18, + NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16_PR_kMinus2_r18, + NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16_PR_kMinus1_r18 +} NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16_PR; +typedef enum NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2__nr_RSTD_BasedOnAggregatedResources_r18 { + NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2__nr_RSTD_BasedOnAggregatedResources_r18_true = 0 +} e_NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2__nr_RSTD_BasedOnAggregatedResources_r18; +typedef enum NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2__nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18 { + NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2__nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_singleHop = 0, + NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2__nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_multipleHop = 1 +} e_NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2__nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18; + +/* Forward declarations */ +struct NR_AdditionalPathList_r16; +struct LOS_NLOS_Indicator_r17; +struct NR_AdditionalPathListExt_r17; +struct NR_PhaseQuality_r18; +struct NR_AggregatedDL_PRS_ResourceSetID_Element_r18; +struct NR_RSCPD_AdditionalMeasurementSamplesElement_r18; + +/* NR-DL-TDOA-AdditionalMeasurementElement-r16 */ +typedef struct NR_DL_TDOA_AdditionalMeasurementElement_r16 { + NR_DL_PRS_ResourceID_r16_t *nr_DL_PRS_ResourceID_r16; /* OPTIONAL */ + NR_DL_PRS_ResourceSetID_r16_t *nr_DL_PRS_ResourceSetID_r16; /* OPTIONAL */ + NR_TimeStamp_r16_t nr_TimeStamp_r16; + struct NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16 { + NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16_PR present; + union NR_DL_TDOA_AdditionalMeasurementElement_r16__nr_RSTD_ResultDiff_r16_u { + long k0_r16; + long k1_r16; + long k2_r16; + long k3_r16; + long k4_r16; + long k5_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + long kMinus6_r18; + long kMinus5_r18; + long kMinus4_r18; + long kMinus3_r18; + long kMinus2_r18; + long kMinus1_r18; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } nr_RSTD_ResultDiff_r16; + NR_TimingQuality_r16_t nr_TimingQuality_r16; + long *nr_DL_PRS_RSRP_ResultDiff_r16; /* OPTIONAL */ + struct NR_AdditionalPathList_r16 *nr_AdditionalPathList_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext1 { + long *nr_UE_Rx_TEG_ID_r17; /* OPTIONAL */ + long *nr_DL_PRS_FirstPathRSRP_ResultDiff_r17; /* OPTIONAL */ + struct LOS_NLOS_Indicator_r17 *nr_los_nlos_IndicatorPerResource_r17; /* OPTIONAL */ + struct NR_AdditionalPathListExt_r17 *nr_AdditionalPathListExt_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2 { + long *nr_RSTD_BasedOnAggregatedResources_r18; /* OPTIONAL */ + struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2__nr_AggregatedDL_PRS_ResourceSetID_List_r18 { + A_SEQUENCE_OF(struct NR_AggregatedDL_PRS_ResourceSetID_Element_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_AggregatedDL_PRS_ResourceSetID_List_r18; + long *nr_RSCPD_r18; /* OPTIONAL */ + struct NR_PhaseQuality_r18 *nr_PhaseQuality_r18; /* OPTIONAL */ + struct NR_DL_TDOA_AdditionalMeasurementElement_r16__ext2__nr_RSCPD_AdditionalMeasurementsAddSamples_r18 { + A_SEQUENCE_OF(struct NR_RSCPD_AdditionalMeasurementSamplesElement_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_RSCPD_AdditionalMeasurementsAddSamples_r18; + long *nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_TDOA_AdditionalMeasurementElement_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_29; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_37; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_AdditionalMeasurementElement_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_AdditionalMeasurementElement_r16_1[9]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_TDOA_AdditionalMeasurementElement_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurements-r16.c b/asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurements-r16.c new file mode 100644 index 00000000..49e25d57 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurements-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-TDOA-AdditionalMeasurements-r16.h" + +#include "NR-DL-TDOA-AdditionalMeasurementElement-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_TDOA_AdditionalMeasurements_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_TDOA_AdditionalMeasurements_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_AdditionalMeasurements_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_DL_TDOA_AdditionalMeasurements_r16_specs_1 = { + sizeof(struct NR_DL_TDOA_AdditionalMeasurements_r16), + offsetof(struct NR_DL_TDOA_AdditionalMeasurements_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_AdditionalMeasurements_r16 = { + "NR-DL-TDOA-AdditionalMeasurements-r16", + "NR-DL-TDOA-AdditionalMeasurements-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_DL_TDOA_AdditionalMeasurements_r16_tags_1, + sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurements_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurements_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_TDOA_AdditionalMeasurements_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurements_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurements_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_TDOA_AdditionalMeasurements_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_DL_TDOA_AdditionalMeasurements_r16_1, + 1, /* Single element */ + &asn_SPC_NR_DL_TDOA_AdditionalMeasurements_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-DL-TDOA-AdditionalMeasurements-r16.h b/asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurements-r16.h similarity index 82% rename from asn.1/generated/NR-DL-TDOA-AdditionalMeasurements-r16.h rename to asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurements-r16.h index 94631fe9..b7b3cc97 100644 --- a/asn.1/generated/NR-DL-TDOA-AdditionalMeasurements-r16.h +++ b/asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurements-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_DL_TDOA_AdditionalMeasurements_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_NR_DL_TDOA_AdditionalMeasurements_r16_ } #endif -/* Referred external types */ -#include "NR-DL-TDOA-AdditionalMeasurementElement-r16.h" - #endif /* _NR_DL_TDOA_AdditionalMeasurements_r16_H_ */ #include diff --git a/asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurementsExt-r17.c b/asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurementsExt-r17.c new file mode 100644 index 00000000..8f73bc1e --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurementsExt-r17.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-TDOA-AdditionalMeasurementsExt-r17.h" + +#include "NR-DL-TDOA-AdditionalMeasurementElement-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_TDOA_AdditionalMeasurementsExt_r17_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 31 } /* (SIZE(1..31)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_TDOA_AdditionalMeasurementsExt_r17_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_TDOA_AdditionalMeasurementElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_AdditionalMeasurementsExt_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_DL_TDOA_AdditionalMeasurementsExt_r17_specs_1 = { + sizeof(struct NR_DL_TDOA_AdditionalMeasurementsExt_r17), + offsetof(struct NR_DL_TDOA_AdditionalMeasurementsExt_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_AdditionalMeasurementsExt_r17 = { + "NR-DL-TDOA-AdditionalMeasurementsExt-r17", + "NR-DL-TDOA-AdditionalMeasurementsExt-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_DL_TDOA_AdditionalMeasurementsExt_r17_tags_1, + sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurementsExt_r17_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurementsExt_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_TDOA_AdditionalMeasurementsExt_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurementsExt_r17_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_AdditionalMeasurementsExt_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_TDOA_AdditionalMeasurementsExt_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_DL_TDOA_AdditionalMeasurementsExt_r17_1, + 1, /* Single element */ + &asn_SPC_NR_DL_TDOA_AdditionalMeasurementsExt_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurementsExt-r17.h b/asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurementsExt-r17.h new file mode 100644 index 00000000..ac22c66c --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-AdditionalMeasurementsExt-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_TDOA_AdditionalMeasurementsExt_r17_H_ +#define _NR_DL_TDOA_AdditionalMeasurementsExt_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_DL_TDOA_AdditionalMeasurementElement_r16; + +/* NR-DL-TDOA-AdditionalMeasurementsExt-r17 */ +typedef struct NR_DL_TDOA_AdditionalMeasurementsExt_r17 { + A_SEQUENCE_OF(struct NR_DL_TDOA_AdditionalMeasurementElement_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_TDOA_AdditionalMeasurementsExt_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_AdditionalMeasurementsExt_r17; +extern asn_SET_OF_specifics_t asn_SPC_NR_DL_TDOA_AdditionalMeasurementsExt_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_AdditionalMeasurementsExt_r17_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_DL_TDOA_AdditionalMeasurementsExt_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_TDOA_AdditionalMeasurementsExt_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-TDOA-Error-r16.c b/asn.1/lpp_generated/NR-DL-TDOA-Error-r16.c new file mode 100644 index 00000000..3eabf089 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-Error-r16.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-TDOA-Error-r16.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_TDOA_Error_r16_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_TDOA_Error_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_Error_r16, choice.locationServerErrorCauses_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_TDOA_LocationServerErrorCauses_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationServerErrorCauses-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_Error_r16, choice.targetDeviceErrorCauses_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "targetDeviceErrorCauses-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_Error_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses-r16 */ +}; +asn_CHOICE_specifics_t asn_SPC_NR_DL_TDOA_Error_r16_specs_1 = { + sizeof(struct NR_DL_TDOA_Error_r16), + offsetof(struct NR_DL_TDOA_Error_r16, _asn_ctx), + offsetof(struct NR_DL_TDOA_Error_r16, present), + sizeof(((struct NR_DL_TDOA_Error_r16 *)0)->present), + asn_MAP_NR_DL_TDOA_Error_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_Error_r16 = { + "NR-DL-TDOA-Error-r16", + "NR-DL-TDOA-Error-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_TDOA_Error_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_NR_DL_TDOA_Error_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_DL_TDOA_Error_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-DL-TDOA-Error-r16.h b/asn.1/lpp_generated/NR-DL-TDOA-Error-r16.h similarity index 86% rename from asn.1/generated/NR-DL-TDOA-Error-r16.h rename to asn.1/lpp_generated/NR-DL-TDOA-Error-r16.h index 95e035d6..05d7bb18 100644 --- a/asn.1/generated/NR-DL-TDOA-Error-r16.h +++ b/asn.1/lpp_generated/NR-DL-TDOA-Error-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_DL_TDOA_Error_r16_H_ diff --git a/asn.1/lpp_generated/NR-DL-TDOA-LocationInformation-r16.c b/asn.1/lpp_generated/NR-DL-TDOA-LocationInformation-r16.c new file mode 100644 index 00000000..235047ba --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-LocationInformation-r16.c @@ -0,0 +1,246 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-TDOA-LocationInformation-r16.h" + +#include "LocationCoordinates.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_measurementReferenceTime_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_measurementReferenceTime_r16_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_LocationInformation_r16__measurementReferenceTime_r16, choice.systemFrameNumber_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimeStamp_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "systemFrameNumber-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_LocationInformation_r16__measurementReferenceTime_r16, choice.utc_time_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTCTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utc-time-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_measurementReferenceTime_r16_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* systemFrameNumber-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* utc-time-r16 */ +}; +static asn_CHOICE_specifics_t asn_SPC_measurementReferenceTime_r16_specs_2 = { + sizeof(struct NR_DL_TDOA_LocationInformation_r16__measurementReferenceTime_r16), + offsetof(struct NR_DL_TDOA_LocationInformation_r16__measurementReferenceTime_r16, _asn_ctx), + offsetof(struct NR_DL_TDOA_LocationInformation_r16__measurementReferenceTime_r16, present), + sizeof(((struct NR_DL_TDOA_LocationInformation_r16__measurementReferenceTime_r16 *)0)->present), + asn_MAP_measurementReferenceTime_r16_tag2el_2, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_measurementReferenceTime_r16_2 = { + "measurementReferenceTime-r16", + "measurementReferenceTime-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_measurementReferenceTime_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_measurementReferenceTime_r16_2, + 2, /* Elements count */ + &asn_SPC_measurementReferenceTime_r16_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_LocationInformation_r16__ext1, locationCoordinates_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_LocationCoordinates, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationCoordinates-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_LocationInformation_r16__ext1, locationSource_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationSource_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationSource-r17" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationCoordinates-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* locationSource-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct NR_DL_TDOA_LocationInformation_r16__ext1), + offsetof(struct NR_DL_TDOA_LocationInformation_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 2, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_TDOA_LocationInformation_r16_1[] = { + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_LocationInformation_r16, measurementReferenceTime_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_measurementReferenceTime_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "measurementReferenceTime-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_LocationInformation_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_DL_TDOA_LocationInformation_r16_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_LocationInformation_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_LocationInformation_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* measurementReferenceTime-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_LocationInformation_r16_specs_1 = { + sizeof(struct NR_DL_TDOA_LocationInformation_r16), + offsetof(struct NR_DL_TDOA_LocationInformation_r16, _asn_ctx), + asn_MAP_NR_DL_TDOA_LocationInformation_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_NR_DL_TDOA_LocationInformation_r16_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_LocationInformation_r16 = { + "NR-DL-TDOA-LocationInformation-r16", + "NR-DL-TDOA-LocationInformation-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_TDOA_LocationInformation_r16_tags_1, + sizeof(asn_DEF_NR_DL_TDOA_LocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_LocationInformation_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_TDOA_LocationInformation_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_TDOA_LocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_LocationInformation_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_TDOA_LocationInformation_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_DL_TDOA_LocationInformation_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-DL-TDOA-LocationInformation-r16.h b/asn.1/lpp_generated/NR-DL-TDOA-LocationInformation-r16.h similarity index 76% rename from asn.1/generated/NR-DL-TDOA-LocationInformation-r16.h rename to asn.1/lpp_generated/NR-DL-TDOA-LocationInformation-r16.h index 49bc7f7e..5ce47a8d 100644 --- a/asn.1/generated/NR-DL-TDOA-LocationInformation-r16.h +++ b/asn.1/lpp_generated/NR-DL-TDOA-LocationInformation-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_DL_TDOA_LocationInformation_r16_H_ @@ -15,6 +15,7 @@ #include "NR-TimeStamp-r16.h" #include #include +#include "LocationSource-r13.h" #include #ifdef __cplusplus @@ -30,6 +31,9 @@ typedef enum NR_DL_TDOA_LocationInformation_r16__measurementReferenceTime_r16_PR } NR_DL_TDOA_LocationInformation_r16__measurementReferenceTime_r16_PR; +/* Forward declarations */ +struct LocationCoordinates; + /* NR-DL-TDOA-LocationInformation-r16 */ typedef struct NR_DL_TDOA_LocationInformation_r16 { struct NR_DL_TDOA_LocationInformation_r16__measurementReferenceTime_r16 { @@ -50,6 +54,13 @@ typedef struct NR_DL_TDOA_LocationInformation_r16 { * This type is extensible, * possible extensions are below. */ + struct NR_DL_TDOA_LocationInformation_r16__ext1 { + struct LocationCoordinates *locationCoordinates_r17; /* OPTIONAL */ + LocationSource_r13_t *locationSource_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -58,7 +69,7 @@ typedef struct NR_DL_TDOA_LocationInformation_r16 { /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_LocationInformation_r16; extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_LocationInformation_r16_specs_1; -extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_LocationInformation_r16_1[1]; +extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_LocationInformation_r16_1[2]; #ifdef __cplusplus } diff --git a/asn.1/lpp_generated/NR-DL-TDOA-LocationServerErrorCauses-r16.c b/asn.1/lpp_generated/NR-DL-TDOA-LocationServerErrorCauses-r16.c new file mode 100644 index 00000000..61ac4863 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-LocationServerErrorCauses-r16.c @@ -0,0 +1,132 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-TDOA-LocationServerErrorCauses-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_r16_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 34, "assistanceDataNotSupportedByServer" }, + { 2, 55, "assistanceDataSupportedButCurrentlyNotAvailableByServer" }, + { 3, 45, "notProvidedAssistanceDataNotSupportedByServer" }, + { 4, 43, "on-demand-dl-prs-NotSupportedByServer-v1700" }, + { 5, 64, "on-demand-dl-prs-SupportedButCurrentlyNotAvailableByServer-v1700" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_r16_enum2value_2[] = { + 1, /* assistanceDataNotSupportedByServer(1) */ + 2, /* assistanceDataSupportedButCurrentlyNotAvailableByServer(2) */ + 3, /* notProvidedAssistanceDataNotSupportedByServer(3) */ + 4, /* on-demand-dl-prs-NotSupportedByServer-v1700(4) */ + 5, /* on-demand-dl-prs-SupportedButCurrentlyNotAvailableByServer-v1700(5) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_r16_specs_2 = { + asn_MAP_cause_r16_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_r16_enum2value_2, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_r16_2 = { + "cause-r16", + "cause-r16", + &asn_OP_NativeEnumerated, + asn_DEF_cause_r16_tags_2, + sizeof(asn_DEF_cause_r16_tags_2) + /sizeof(asn_DEF_cause_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_r16_tags_2) + /sizeof(asn_DEF_cause_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_r16_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_TDOA_LocationServerErrorCauses_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_LocationServerErrorCauses_r16, cause_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_LocationServerErrorCauses_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_LocationServerErrorCauses_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_LocationServerErrorCauses_r16_specs_1 = { + sizeof(struct NR_DL_TDOA_LocationServerErrorCauses_r16), + offsetof(struct NR_DL_TDOA_LocationServerErrorCauses_r16, _asn_ctx), + asn_MAP_NR_DL_TDOA_LocationServerErrorCauses_r16_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_LocationServerErrorCauses_r16 = { + "NR-DL-TDOA-LocationServerErrorCauses-r16", + "NR-DL-TDOA-LocationServerErrorCauses-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_TDOA_LocationServerErrorCauses_r16_tags_1, + sizeof(asn_DEF_NR_DL_TDOA_LocationServerErrorCauses_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_LocationServerErrorCauses_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_TDOA_LocationServerErrorCauses_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_TDOA_LocationServerErrorCauses_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_LocationServerErrorCauses_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_TDOA_LocationServerErrorCauses_r16_1, + 1, /* Elements count */ + &asn_SPC_NR_DL_TDOA_LocationServerErrorCauses_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-DL-TDOA-LocationServerErrorCauses-r16.h b/asn.1/lpp_generated/NR-DL-TDOA-LocationServerErrorCauses-r16.h similarity index 76% rename from asn.1/generated/NR-DL-TDOA-LocationServerErrorCauses-r16.h rename to asn.1/lpp_generated/NR-DL-TDOA-LocationServerErrorCauses-r16.h index 289303bc..b77fd7d8 100644 --- a/asn.1/generated/NR-DL-TDOA-LocationServerErrorCauses-r16.h +++ b/asn.1/lpp_generated/NR-DL-TDOA-LocationServerErrorCauses-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_DL_TDOA_LocationServerErrorCauses_r16_H_ @@ -24,10 +24,12 @@ typedef enum NR_DL_TDOA_LocationServerErrorCauses_r16__cause_r16 { NR_DL_TDOA_LocationServerErrorCauses_r16__cause_r16_undefined = 0, NR_DL_TDOA_LocationServerErrorCauses_r16__cause_r16_assistanceDataNotSupportedByServer = 1, NR_DL_TDOA_LocationServerErrorCauses_r16__cause_r16_assistanceDataSupportedButCurrentlyNotAvailableByServer = 2, - NR_DL_TDOA_LocationServerErrorCauses_r16__cause_r16_notProvidedAssistanceDataNotSupportedByServer = 3 + NR_DL_TDOA_LocationServerErrorCauses_r16__cause_r16_notProvidedAssistanceDataNotSupportedByServer = 3, /* * Enumeration is extensible */ + NR_DL_TDOA_LocationServerErrorCauses_r16__cause_r16_on_demand_dl_prs_NotSupportedByServer_v1700 = 4, + NR_DL_TDOA_LocationServerErrorCauses_r16__cause_r16_on_demand_dl_prs_SupportedButCurrentlyNotAvailableByServer_v1700 = 5 } e_NR_DL_TDOA_LocationServerErrorCauses_r16__cause_r16; /* NR-DL-TDOA-LocationServerErrorCauses-r16 */ diff --git a/asn.1/lpp_generated/NR-DL-TDOA-MeasElement-r16.c b/asn.1/lpp_generated/NR-DL-TDOA-MeasElement-r16.c new file mode 100644 index 00000000..4898425c --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-MeasElement-r16.c @@ -0,0 +1,1774 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-TDOA-MeasElement-r16.h" + +#include "NCGI-r15.h" +#include "NR-AdditionalPathList-r16.h" +#include "NR-DL-TDOA-AdditionalMeasurements-r16.h" +#include "NR-AdditionalPathListExt-r17.h" +#include "NR-DL-TDOA-AdditionalMeasurementsExt-r17.h" +#include "NR-PhaseQuality-r18.h" +#include "NR-AggregatedDL-PRS-ResourceSetID-Element-r18.h" +#include "NR-RSCPD-AdditionalMeasurementSamplesElement-r18.h" +static int +memb_k0_r16_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1970049L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k1_r16_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 985025L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k2_r16_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 492513L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k3_r16_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 246257L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k4_r16_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 123129L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k5_r16_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 61565L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus6_r18_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 126083073L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus5_r18_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63041537L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus4_r18_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 31520769L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus3_r18_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15760385L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus2_r18_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7880193L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus1_r18_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3940097L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_UE_Rx_TEG_ID_r17_constraint_28(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 31L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_FirstPathRSRP_Result_r17_constraint_28(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 126L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constraint_36(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 2UL && size <= 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_RSCPD_r18_constraint_36(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 61565L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_RSCPD_AddMeasurementSamples_r18_constraint_36(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_PRS_ID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_RSRP_Result_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 126L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k0_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, 0, 1970049 } /* (0..1970049) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k1_r16_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 20, -1, 0, 985025 } /* (0..985025) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k2_r16_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 19, -1, 0, 492513 } /* (0..492513) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k3_r16_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 18, -1, 0, 246257 } /* (0..246257) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k4_r16_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 0, 123129 } /* (0..123129) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k5_r16_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 61565 } /* (0..61565) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus6_r18_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 27, -1, 0, 126083073 } /* (0..126083073) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus5_r18_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 26, -1, 0, 63041537 } /* (0..63041537) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus4_r18_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED, 25, -1, 0, 31520769 } /* (0..31520769) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus3_r18_constr_20 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, 0, 15760385 } /* (0..15760385) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus2_r18_constr_21 CC_NOTUSED = { + { APC_CONSTRAINED, 23, -1, 0, 7880193 } /* (0..7880193) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus1_r18_constr_22 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, 0, 3940097 } /* (0..3940097) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_RSTD_r16_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_los_nlos_Indicator_r17_constr_31 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_UE_Rx_TEG_ID_r17_constr_29 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_FirstPathRSRP_Result_r17_constr_30 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 126 } /* (0..126) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_RSTD_BasedOnAggregatedResources_r18_constr_37 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constr_39 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_RSCPD_AddMeasurementSamples_r18_constr_43 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_constr_45 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constr_39 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_RSCPD_r18_constr_41 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 61565 } /* (0..61565) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_RSCPD_AddMeasurementSamples_r18_constr_43 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ID_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_RSRP_Result_r16_constr_25 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 126 } /* (0..126) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_RSTD_r16_9[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16, choice.k0_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k0_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k0_r16_constraint_9 + }, + 0, 0, /* No default value */ + "k0-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16, choice.k1_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k1_r16_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k1_r16_constraint_9 + }, + 0, 0, /* No default value */ + "k1-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16, choice.k2_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k2_r16_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k2_r16_constraint_9 + }, + 0, 0, /* No default value */ + "k2-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16, choice.k3_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k3_r16_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k3_r16_constraint_9 + }, + 0, 0, /* No default value */ + "k3-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16, choice.k4_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k4_r16_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k4_r16_constraint_9 + }, + 0, 0, /* No default value */ + "k4-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16, choice.k5_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k5_r16_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k5_r16_constraint_9 + }, + 0, 0, /* No default value */ + "k5-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16, choice.kMinus6_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus6_r18_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus6_r18_constraint_9 + }, + 0, 0, /* No default value */ + "kMinus6-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16, choice.kMinus5_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus5_r18_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus5_r18_constraint_9 + }, + 0, 0, /* No default value */ + "kMinus5-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16, choice.kMinus4_r18), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus4_r18_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus4_r18_constraint_9 + }, + 0, 0, /* No default value */ + "kMinus4-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16, choice.kMinus3_r18), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus3_r18_constr_20, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus3_r18_constraint_9 + }, + 0, 0, /* No default value */ + "kMinus3-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16, choice.kMinus2_r18), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus2_r18_constr_21, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus2_r18_constraint_9 + }, + 0, 0, /* No default value */ + "kMinus2-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16, choice.kMinus1_r18), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus1_r18_constr_22, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus1_r18_constraint_9 + }, + 0, 0, /* No default value */ + "kMinus1-r18" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_RSTD_r16_tag2el_9[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* k0-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* k1-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* k2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* k3-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* k4-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* k5-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* kMinus6-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* kMinus5-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* kMinus4-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* kMinus3-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* kMinus2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* kMinus1-r18 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nr_RSTD_r16_specs_9 = { + sizeof(struct NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16), + offsetof(struct NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16, _asn_ctx), + offsetof(struct NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16, present), + sizeof(((struct NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16 *)0)->present), + asn_MAP_nr_RSTD_r16_tag2el_9, + 12, /* Count of tags in the map */ + 0, 0, + 6 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_RSTD_r16_9 = { + "nr-RSTD-r16", + "nr-RSTD-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_RSTD_r16_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nr_RSTD_r16_9, + 12, /* Elements count */ + &asn_SPC_nr_RSTD_r16_specs_9 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_los_nlos_Indicator_r17_31[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17, choice.perTRP_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_Indicator_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "perTRP-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17, choice.perResource_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_Indicator_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "perResource-r17" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_los_nlos_Indicator_r17_tag2el_31[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* perTRP-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* perResource-r17 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nr_los_nlos_Indicator_r17_specs_31 = { + sizeof(struct NR_DL_TDOA_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17), + offsetof(struct NR_DL_TDOA_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17, _asn_ctx), + offsetof(struct NR_DL_TDOA_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17, present), + sizeof(((struct NR_DL_TDOA_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17 *)0)->present), + asn_MAP_nr_los_nlos_Indicator_r17_tag2el_31, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_los_nlos_Indicator_r17_31 = { + "nr-los-nlos-Indicator-r17", + "nr-los-nlos-Indicator-r17", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_los_nlos_Indicator_r17_constr_31, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nr_los_nlos_Indicator_r17_31, + 2, /* Elements count */ + &asn_SPC_nr_los_nlos_Indicator_r17_specs_31 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_28[] = { + { ATF_POINTER, 5, offsetof(struct NR_DL_TDOA_MeasElement_r16__ext1, nr_UE_Rx_TEG_ID_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_UE_Rx_TEG_ID_r17_constr_29, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_UE_Rx_TEG_ID_r17_constraint_28 + }, + 0, 0, /* No default value */ + "nr-UE-Rx-TEG-ID-r17" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_TDOA_MeasElement_r16__ext1, nr_DL_PRS_FirstPathRSRP_Result_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_FirstPathRSRP_Result_r17_constr_30, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_FirstPathRSRP_Result_r17_constraint_28 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-FirstPathRSRP-Result-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_MeasElement_r16__ext1, nr_los_nlos_Indicator_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nr_los_nlos_Indicator_r17_31, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-los-nlos-Indicator-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_MeasElement_r16__ext1, nr_AdditionalPathListExt_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_AdditionalPathListExt_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-AdditionalPathListExt-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_MeasElement_r16__ext1, nr_DL_TDOA_AdditionalMeasurementsExt_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_TDOA_AdditionalMeasurementsExt_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-AdditionalMeasurementsExt-r17" + }, +}; +static const int asn_MAP_ext1_oms_28[] = { 0, 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_28[] = { + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_28[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-UE-Rx-TEG-ID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-FirstPathRSRP-Result-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-los-nlos-Indicator-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-AdditionalPathListExt-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* nr-DL-TDOA-AdditionalMeasurementsExt-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_28 = { + sizeof(struct NR_DL_TDOA_MeasElement_r16__ext1), + offsetof(struct NR_DL_TDOA_MeasElement_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_28, + 5, /* Count of tags in the map */ + asn_MAP_ext1_oms_28, /* Optional members */ + 5, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_28 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_28, + sizeof(asn_DEF_ext1_tags_28) + /sizeof(asn_DEF_ext1_tags_28[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_28, /* Same as above */ + sizeof(asn_DEF_ext1_tags_28) + /sizeof(asn_DEF_ext1_tags_28[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_28, + 5, /* Elements count */ + &asn_SPC_ext1_specs_28 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_RSTD_BasedOnAggregatedResources_r18_value2enum_37[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_nr_RSTD_BasedOnAggregatedResources_r18_enum2value_37[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_RSTD_BasedOnAggregatedResources_r18_specs_37 = { + asn_MAP_nr_RSTD_BasedOnAggregatedResources_r18_value2enum_37, /* "tag" => N; sorted by tag */ + asn_MAP_nr_RSTD_BasedOnAggregatedResources_r18_enum2value_37, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_tags_37[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_37 = { + "nr-RSTD-BasedOnAggregatedResources-r18", + "nr-RSTD-BasedOnAggregatedResources-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_tags_37, + sizeof(asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_tags_37) + /sizeof(asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_tags_37[0]) - 1, /* 1 */ + asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_tags_37, /* Same as above */ + sizeof(asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_tags_37) + /sizeof(asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_tags_37[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_RSTD_BasedOnAggregatedResources_r18_constr_37, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_RSTD_BasedOnAggregatedResources_r18_specs_37 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_AggregatedDL_PRS_ResourceSetID_List_r18_39[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_AggregatedDL_PRS_ResourceSetID_Element_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_39[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_AggregatedDL_PRS_ResourceSetID_List_r18_specs_39 = { + sizeof(struct NR_DL_TDOA_MeasElement_r16__ext2__nr_AggregatedDL_PRS_ResourceSetID_List_r18), + offsetof(struct NR_DL_TDOA_MeasElement_r16__ext2__nr_AggregatedDL_PRS_ResourceSetID_List_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_39 = { + "nr-AggregatedDL-PRS-ResourceSetID-List-r18", + "nr-AggregatedDL-PRS-ResourceSetID-List-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_39, + sizeof(asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_39) + /sizeof(asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_39[0]) - 1, /* 1 */ + asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_39, /* Same as above */ + sizeof(asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_39) + /sizeof(asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_39[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constr_39, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_AggregatedDL_PRS_ResourceSetID_List_r18_39, + 1, /* Single element */ + &asn_SPC_nr_AggregatedDL_PRS_ResourceSetID_List_r18_specs_39 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_RSCPD_AddMeasurementSamples_r18_43[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_RSCPD_AdditionalMeasurementSamplesElement_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_RSCPD_AddMeasurementSamples_r18_tags_43[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_RSCPD_AddMeasurementSamples_r18_specs_43 = { + sizeof(struct NR_DL_TDOA_MeasElement_r16__ext2__nr_RSCPD_AddMeasurementSamples_r18), + offsetof(struct NR_DL_TDOA_MeasElement_r16__ext2__nr_RSCPD_AddMeasurementSamples_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_RSCPD_AddMeasurementSamples_r18_43 = { + "nr-RSCPD-AddMeasurementSamples-r18", + "nr-RSCPD-AddMeasurementSamples-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_RSCPD_AddMeasurementSamples_r18_tags_43, + sizeof(asn_DEF_nr_RSCPD_AddMeasurementSamples_r18_tags_43) + /sizeof(asn_DEF_nr_RSCPD_AddMeasurementSamples_r18_tags_43[0]) - 1, /* 1 */ + asn_DEF_nr_RSCPD_AddMeasurementSamples_r18_tags_43, /* Same as above */ + sizeof(asn_DEF_nr_RSCPD_AddMeasurementSamples_r18_tags_43) + /sizeof(asn_DEF_nr_RSCPD_AddMeasurementSamples_r18_tags_43[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_RSCPD_AddMeasurementSamples_r18_constr_43, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_RSCPD_AddMeasurementSamples_r18_43, + 1, /* Single element */ + &asn_SPC_nr_RSCPD_AddMeasurementSamples_r18_specs_43 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_value2enum_45[] = { + { 0, 9, "singleHop" }, + { 1, 11, "multipleHop" } +}; +static const unsigned int asn_MAP_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_enum2value_45[] = { + 1, /* multipleHop(1) */ + 0 /* singleHop(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_specs_45 = { + asn_MAP_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_value2enum_45, /* "tag" => N; sorted by tag */ + asn_MAP_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_enum2value_45, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_45[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_45 = { + "nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18", + "nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_45, + sizeof(asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_45) + /sizeof(asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_45[0]) - 1, /* 1 */ + asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_45, /* Same as above */ + sizeof(asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_45) + /sizeof(asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_45[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_constr_45, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_specs_45 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_36[] = { + { ATF_POINTER, 6, offsetof(struct NR_DL_TDOA_MeasElement_r16__ext2, nr_RSTD_BasedOnAggregatedResources_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_37, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-RSTD-BasedOnAggregatedResources-r18" + }, + { ATF_POINTER, 5, offsetof(struct NR_DL_TDOA_MeasElement_r16__ext2, nr_AggregatedDL_PRS_ResourceSetID_List_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_39, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constr_39, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constraint_36 + }, + 0, 0, /* No default value */ + "nr-AggregatedDL-PRS-ResourceSetID-List-r18" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_TDOA_MeasElement_r16__ext2, nr_RSCPD_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_RSCPD_r18_constr_41, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_RSCPD_r18_constraint_36 + }, + 0, 0, /* No default value */ + "nr-RSCPD-r18" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_MeasElement_r16__ext2, nr_PhaseQuality_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhaseQuality_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhaseQuality-r18" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_MeasElement_r16__ext2, nr_RSCPD_AddMeasurementSamples_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_nr_RSCPD_AddMeasurementSamples_r18_43, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_RSCPD_AddMeasurementSamples_r18_constr_43, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_RSCPD_AddMeasurementSamples_r18_constraint_36 + }, + 0, 0, /* No default value */ + "nr-RSCPD-AddMeasurementSamples-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_MeasElement_r16__ext2, nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_45, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18" + }, +}; +static const int asn_MAP_ext2_oms_36[] = { 0, 1, 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_36[] = { + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_36[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-RSTD-BasedOnAggregatedResources-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-AggregatedDL-PRS-ResourceSetID-List-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-RSCPD-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-PhaseQuality-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-RSCPD-AddMeasurementSamples-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_36 = { + sizeof(struct NR_DL_TDOA_MeasElement_r16__ext2), + offsetof(struct NR_DL_TDOA_MeasElement_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_36, + 6, /* Count of tags in the map */ + asn_MAP_ext2_oms_36, /* Optional members */ + 6, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_36 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_36, + sizeof(asn_DEF_ext2_tags_36) + /sizeof(asn_DEF_ext2_tags_36[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_36, /* Same as above */ + sizeof(asn_DEF_ext2_tags_36) + /sizeof(asn_DEF_ext2_tags_36[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_36, + 6, /* Elements count */ + &asn_SPC_ext2_specs_36 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_TDOA_MeasElement_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16, dl_PRS_ID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ID_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ID_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ID-r16" + }, + { ATF_POINTER, 5, offsetof(struct NR_DL_TDOA_MeasElement_r16, nr_PhysCellID_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r16" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_TDOA_MeasElement_r16, nr_CellGlobalID_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-CellGlobalID-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_MeasElement_r16, nr_ARFCN_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ARFCN-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_MeasElement_r16, nr_DL_PRS_ResourceID_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceID-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_MeasElement_r16, nr_DL_PRS_ResourceSetID_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceSetID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceSetID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16, nr_TimeStamp_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimeStamp_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-TimeStamp-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16, nr_RSTD_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nr_RSTD_r16_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-RSTD-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_MeasElement_r16, nr_AdditionalPathList_r16), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_AdditionalPathList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-AdditionalPathList-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasElement_r16, nr_TimingQuality_r16), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimingQuality_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-TimingQuality-r16" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_TDOA_MeasElement_r16, nr_DL_PRS_RSRP_Result_r16), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_RSRP_Result_r16_constr_25, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_RSRP_Result_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RSRP-Result-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_MeasElement_r16, nr_DL_TDOA_AdditionalMeasurements_r16), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_TDOA_AdditionalMeasurements_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-AdditionalMeasurements-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_MeasElement_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + 0, + &asn_DEF_ext1_28, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_MeasElement_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + 0, + &asn_DEF_ext2_36, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_NR_DL_TDOA_MeasElement_r16_oms_1[] = { 1, 2, 3, 4, 5, 8, 10, 11, 12, 13 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_MeasElement_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_MeasElement_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PhysCellID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-CellGlobalID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-ARFCN-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-DL-PRS-ResourceID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nr-DL-PRS-ResourceSetID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* nr-TimeStamp-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* nr-RSTD-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* nr-AdditionalPathList-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* nr-TimingQuality-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* nr-DL-PRS-RSRP-Result-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* nr-DL-TDOA-AdditionalMeasurements-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_MeasElement_r16_specs_1 = { + sizeof(struct NR_DL_TDOA_MeasElement_r16), + offsetof(struct NR_DL_TDOA_MeasElement_r16, _asn_ctx), + asn_MAP_NR_DL_TDOA_MeasElement_r16_tag2el_1, + 14, /* Count of tags in the map */ + asn_MAP_NR_DL_TDOA_MeasElement_r16_oms_1, /* Optional members */ + 8, 2, /* Root/Additions */ + 12, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_MeasElement_r16 = { + "NR-DL-TDOA-MeasElement-r16", + "NR-DL-TDOA-MeasElement-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_TDOA_MeasElement_r16_tags_1, + sizeof(asn_DEF_NR_DL_TDOA_MeasElement_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_MeasElement_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_TDOA_MeasElement_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_TDOA_MeasElement_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_MeasElement_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_TDOA_MeasElement_r16_1, + 14, /* Elements count */ + &asn_SPC_NR_DL_TDOA_MeasElement_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-TDOA-MeasElement-r16.h b/asn.1/lpp_generated/NR-DL-TDOA-MeasElement-r16.h new file mode 100644 index 00000000..6a6b54aa --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-MeasElement-r16.h @@ -0,0 +1,171 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_TDOA_MeasElement_r16_H_ +#define _NR_DL_TDOA_MeasElement_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include "NR-PhysCellID-r16.h" +#include "ARFCN-ValueNR-r15.h" +#include "NR-DL-PRS-ResourceID-r16.h" +#include "NR-DL-PRS-ResourceSetID-r16.h" +#include "NR-TimeStamp-r16.h" +#include "NR-TimingQuality-r16.h" +#include +#include "LOS-NLOS-Indicator-r17.h" +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16_PR { + NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16_PR_NOTHING, /* No components present */ + NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16_PR_k0_r16, + NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16_PR_k1_r16, + NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16_PR_k2_r16, + NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16_PR_k3_r16, + NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16_PR_k4_r16, + NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16_PR_k5_r16, + /* Extensions may appear below */ + NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16_PR_kMinus6_r18, + NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16_PR_kMinus5_r18, + NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16_PR_kMinus4_r18, + NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16_PR_kMinus3_r18, + NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16_PR_kMinus2_r18, + NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16_PR_kMinus1_r18 +} NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16_PR; +typedef enum NR_DL_TDOA_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_PR { + NR_DL_TDOA_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_PR_NOTHING, /* No components present */ + NR_DL_TDOA_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_PR_perTRP_r17, + NR_DL_TDOA_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_PR_perResource_r17 +} NR_DL_TDOA_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_PR; +typedef enum NR_DL_TDOA_MeasElement_r16__ext2__nr_RSTD_BasedOnAggregatedResources_r18 { + NR_DL_TDOA_MeasElement_r16__ext2__nr_RSTD_BasedOnAggregatedResources_r18_true = 0 +} e_NR_DL_TDOA_MeasElement_r16__ext2__nr_RSTD_BasedOnAggregatedResources_r18; +typedef enum NR_DL_TDOA_MeasElement_r16__ext2__nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18 { + NR_DL_TDOA_MeasElement_r16__ext2__nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_singleHop = 0, + NR_DL_TDOA_MeasElement_r16__ext2__nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_multipleHop = 1 +} e_NR_DL_TDOA_MeasElement_r16__ext2__nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18; + +/* Forward declarations */ +struct NCGI_r15; +struct NR_AdditionalPathList_r16; +struct NR_DL_TDOA_AdditionalMeasurements_r16; +struct NR_AdditionalPathListExt_r17; +struct NR_DL_TDOA_AdditionalMeasurementsExt_r17; +struct NR_PhaseQuality_r18; +struct NR_AggregatedDL_PRS_ResourceSetID_Element_r18; +struct NR_RSCPD_AdditionalMeasurementSamplesElement_r18; + +/* NR-DL-TDOA-MeasElement-r16 */ +typedef struct NR_DL_TDOA_MeasElement_r16 { + long dl_PRS_ID_r16; + NR_PhysCellID_r16_t *nr_PhysCellID_r16; /* OPTIONAL */ + struct NCGI_r15 *nr_CellGlobalID_r16; /* OPTIONAL */ + ARFCN_ValueNR_r15_t *nr_ARFCN_r16; /* OPTIONAL */ + NR_DL_PRS_ResourceID_r16_t *nr_DL_PRS_ResourceID_r16; /* OPTIONAL */ + NR_DL_PRS_ResourceSetID_r16_t *nr_DL_PRS_ResourceSetID_r16; /* OPTIONAL */ + NR_TimeStamp_r16_t nr_TimeStamp_r16; + struct NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16 { + NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16_PR present; + union NR_DL_TDOA_MeasElement_r16__nr_RSTD_r16_u { + long k0_r16; + long k1_r16; + long k2_r16; + long k3_r16; + long k4_r16; + long k5_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + long kMinus6_r18; + long kMinus5_r18; + long kMinus4_r18; + long kMinus3_r18; + long kMinus2_r18; + long kMinus1_r18; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } nr_RSTD_r16; + struct NR_AdditionalPathList_r16 *nr_AdditionalPathList_r16; /* OPTIONAL */ + NR_TimingQuality_r16_t nr_TimingQuality_r16; + long *nr_DL_PRS_RSRP_Result_r16; /* OPTIONAL */ + struct NR_DL_TDOA_AdditionalMeasurements_r16 *nr_DL_TDOA_AdditionalMeasurements_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_TDOA_MeasElement_r16__ext1 { + long *nr_UE_Rx_TEG_ID_r17; /* OPTIONAL */ + long *nr_DL_PRS_FirstPathRSRP_Result_r17; /* OPTIONAL */ + struct NR_DL_TDOA_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17 { + NR_DL_TDOA_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_PR present; + union NR_DL_TDOA_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_u { + LOS_NLOS_Indicator_r17_t perTRP_r17; + LOS_NLOS_Indicator_r17_t perResource_r17; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_los_nlos_Indicator_r17; + struct NR_AdditionalPathListExt_r17 *nr_AdditionalPathListExt_r17; /* OPTIONAL */ + struct NR_DL_TDOA_AdditionalMeasurementsExt_r17 *nr_DL_TDOA_AdditionalMeasurementsExt_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct NR_DL_TDOA_MeasElement_r16__ext2 { + long *nr_RSTD_BasedOnAggregatedResources_r18; /* OPTIONAL */ + struct NR_DL_TDOA_MeasElement_r16__ext2__nr_AggregatedDL_PRS_ResourceSetID_List_r18 { + A_SEQUENCE_OF(struct NR_AggregatedDL_PRS_ResourceSetID_Element_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_AggregatedDL_PRS_ResourceSetID_List_r18; + long *nr_RSCPD_r18; /* OPTIONAL */ + struct NR_PhaseQuality_r18 *nr_PhaseQuality_r18; /* OPTIONAL */ + struct NR_DL_TDOA_MeasElement_r16__ext2__nr_RSCPD_AddMeasurementSamples_r18 { + A_SEQUENCE_OF(struct NR_RSCPD_AdditionalMeasurementSamplesElement_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_RSCPD_AddMeasurementSamples_r18; + long *nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_TDOA_MeasElement_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_RSTD_BasedOnAggregatedResources_r18_37; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_45; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_MeasElement_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_MeasElement_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_MeasElement_r16_1[14]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_TDOA_MeasElement_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-TDOA-MeasList-r16.c b/asn.1/lpp_generated/NR-DL-TDOA-MeasList-r16.c new file mode 100644 index 00000000..6867c931 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-MeasList-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-TDOA-MeasList-r16.h" + +#include "NR-DL-TDOA-MeasElement-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_DL_TDOA_MeasList_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (SIZE(1..256)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_DL_TDOA_MeasList_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_TDOA_MeasElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_MeasList_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_DL_TDOA_MeasList_r16_specs_1 = { + sizeof(struct NR_DL_TDOA_MeasList_r16), + offsetof(struct NR_DL_TDOA_MeasList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_MeasList_r16 = { + "NR-DL-TDOA-MeasList-r16", + "NR-DL-TDOA-MeasList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_DL_TDOA_MeasList_r16_tags_1, + sizeof(asn_DEF_NR_DL_TDOA_MeasList_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_MeasList_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_TDOA_MeasList_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_TDOA_MeasList_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_MeasList_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_DL_TDOA_MeasList_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_DL_TDOA_MeasList_r16_1, + 1, /* Single element */ + &asn_SPC_NR_DL_TDOA_MeasList_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-DL-TDOA-MeasList-r16.h b/asn.1/lpp_generated/NR-DL-TDOA-MeasList-r16.h similarity index 80% rename from asn.1/generated/NR-DL-TDOA-MeasList-r16.h rename to asn.1/lpp_generated/NR-DL-TDOA-MeasList-r16.h index 58e5cbbd..1824fb3a 100644 --- a/asn.1/generated/NR-DL-TDOA-MeasList-r16.h +++ b/asn.1/lpp_generated/NR-DL-TDOA-MeasList-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_DL_TDOA_MeasList_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_NR_DL_TDOA_MeasList_r16_constr_1; } #endif -/* Referred external types */ -#include "NR-DL-TDOA-MeasElement-r16.h" - #endif /* _NR_DL_TDOA_MeasList_r16_H_ */ #include diff --git a/asn.1/lpp_generated/NR-DL-TDOA-MeasurementCapability-r16.c b/asn.1/lpp_generated/NR-DL-TDOA-MeasurementCapability-r16.c new file mode 100644 index 00000000..9c1c2254 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-MeasurementCapability-r16.c @@ -0,0 +1,486 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-TDOA-MeasurementCapability-r16.h" + +#include "NR-UE-TEG-Capability-r17.h" +#include "DL-TDOA-MeasCapabilityPerBand-r17.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_dl_tdoa_MeasCapabilityBandList_r17_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 1024UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_RSTD_MeasurementPerPairOfTRP_FR1_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 4L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_RSTD_MeasurementPerPairOfTRP_FR2_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 4L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfDL_PRS_RSRP_MeasFR1_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfDL_PRS_RSRP_MeasFR2_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_tdoa_MeasCapabilityBandList_r17_constr_11 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_tdoa_MeasCapabilityBandList_r17_constr_11 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_RSTD_MeasurementPerPairOfTRP_FR1_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (1..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_RSTD_MeasurementPerPairOfTRP_FR2_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (1..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_supportOfDL_PRS_RSRP_MeasFR1_r16_value2enum_4[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfDL_PRS_RSRP_MeasFR1_r16_enum2value_4[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfDL_PRS_RSRP_MeasFR1_r16_specs_4 = { + asn_MAP_supportOfDL_PRS_RSRP_MeasFR1_r16_value2enum_4, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfDL_PRS_RSRP_MeasFR1_r16_enum2value_4, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfDL_PRS_RSRP_MeasFR1_r16_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfDL_PRS_RSRP_MeasFR1_r16_4 = { + "supportOfDL-PRS-RSRP-MeasFR1-r16", + "supportOfDL-PRS-RSRP-MeasFR1-r16", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfDL_PRS_RSRP_MeasFR1_r16_tags_4, + sizeof(asn_DEF_supportOfDL_PRS_RSRP_MeasFR1_r16_tags_4) + /sizeof(asn_DEF_supportOfDL_PRS_RSRP_MeasFR1_r16_tags_4[0]) - 1, /* 1 */ + asn_DEF_supportOfDL_PRS_RSRP_MeasFR1_r16_tags_4, /* Same as above */ + sizeof(asn_DEF_supportOfDL_PRS_RSRP_MeasFR1_r16_tags_4) + /sizeof(asn_DEF_supportOfDL_PRS_RSRP_MeasFR1_r16_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfDL_PRS_RSRP_MeasFR1_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfDL_PRS_RSRP_MeasFR1_r16_specs_4 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfDL_PRS_RSRP_MeasFR2_r16_value2enum_6[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfDL_PRS_RSRP_MeasFR2_r16_enum2value_6[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfDL_PRS_RSRP_MeasFR2_r16_specs_6 = { + asn_MAP_supportOfDL_PRS_RSRP_MeasFR2_r16_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfDL_PRS_RSRP_MeasFR2_r16_enum2value_6, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfDL_PRS_RSRP_MeasFR2_r16_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfDL_PRS_RSRP_MeasFR2_r16_6 = { + "supportOfDL-PRS-RSRP-MeasFR2-r16", + "supportOfDL-PRS-RSRP-MeasFR2-r16", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfDL_PRS_RSRP_MeasFR2_r16_tags_6, + sizeof(asn_DEF_supportOfDL_PRS_RSRP_MeasFR2_r16_tags_6) + /sizeof(asn_DEF_supportOfDL_PRS_RSRP_MeasFR2_r16_tags_6[0]) - 1, /* 1 */ + asn_DEF_supportOfDL_PRS_RSRP_MeasFR2_r16_tags_6, /* Same as above */ + sizeof(asn_DEF_supportOfDL_PRS_RSRP_MeasFR2_r16_tags_6) + /sizeof(asn_DEF_supportOfDL_PRS_RSRP_MeasFR2_r16_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfDL_PRS_RSRP_MeasFR2_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfDL_PRS_RSRP_MeasFR2_r16_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_dl_tdoa_MeasCapabilityBandList_r17_11[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DL_TDOA_MeasCapabilityPerBand_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_dl_tdoa_MeasCapabilityBandList_r17_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_dl_tdoa_MeasCapabilityBandList_r17_specs_11 = { + sizeof(struct NR_DL_TDOA_MeasurementCapability_r16__ext1__dl_tdoa_MeasCapabilityBandList_r17), + offsetof(struct NR_DL_TDOA_MeasurementCapability_r16__ext1__dl_tdoa_MeasCapabilityBandList_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_tdoa_MeasCapabilityBandList_r17_11 = { + "dl-tdoa-MeasCapabilityBandList-r17", + "dl-tdoa-MeasCapabilityBandList-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_dl_tdoa_MeasCapabilityBandList_r17_tags_11, + sizeof(asn_DEF_dl_tdoa_MeasCapabilityBandList_r17_tags_11) + /sizeof(asn_DEF_dl_tdoa_MeasCapabilityBandList_r17_tags_11[0]) - 1, /* 1 */ + asn_DEF_dl_tdoa_MeasCapabilityBandList_r17_tags_11, /* Same as above */ + sizeof(asn_DEF_dl_tdoa_MeasCapabilityBandList_r17_tags_11) + /sizeof(asn_DEF_dl_tdoa_MeasCapabilityBandList_r17_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_tdoa_MeasCapabilityBandList_r17_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_dl_tdoa_MeasCapabilityBandList_r17_11, + 1, /* Single element */ + &asn_SPC_dl_tdoa_MeasCapabilityBandList_r17_specs_11 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_9[] = { + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_MeasurementCapability_r16__ext1, nr_UE_TEG_Capability_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_UE_TEG_Capability_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UE-TEG-Capability-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_MeasurementCapability_r16__ext1, dl_tdoa_MeasCapabilityBandList_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_dl_tdoa_MeasCapabilityBandList_r17_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_tdoa_MeasCapabilityBandList_r17_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_tdoa_MeasCapabilityBandList_r17_constraint_9 + }, + 0, 0, /* No default value */ + "dl-tdoa-MeasCapabilityBandList-r17" + }, +}; +static const int asn_MAP_ext1_oms_9[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_9[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-UE-TEG-Capability-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dl-tdoa-MeasCapabilityBandList-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_9 = { + sizeof(struct NR_DL_TDOA_MeasurementCapability_r16__ext1), + offsetof(struct NR_DL_TDOA_MeasurementCapability_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_9, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_9, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_9 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_9, + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_9, /* Same as above */ + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_9, + 2, /* Elements count */ + &asn_SPC_ext1_specs_9 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_TDOA_MeasurementCapability_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasurementCapability_r16, dl_RSTD_MeasurementPerPairOfTRP_FR1_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_RSTD_MeasurementPerPairOfTRP_FR1_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_RSTD_MeasurementPerPairOfTRP_FR1_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-RSTD-MeasurementPerPairOfTRP-FR1-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_MeasurementCapability_r16, dl_RSTD_MeasurementPerPairOfTRP_FR2_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_RSTD_MeasurementPerPairOfTRP_FR2_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_RSTD_MeasurementPerPairOfTRP_FR2_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-RSTD-MeasurementPerPairOfTRP-FR2-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_MeasurementCapability_r16, supportOfDL_PRS_RSRP_MeasFR1_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfDL_PRS_RSRP_MeasFR1_r16_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfDL-PRS-RSRP-MeasFR1-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_MeasurementCapability_r16, supportOfDL_PRS_RSRP_MeasFR2_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfDL_PRS_RSRP_MeasFR2_r16_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfDL-PRS-RSRP-MeasFR2-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_MeasurementCapability_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext1_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_DL_TDOA_MeasurementCapability_r16_oms_1[] = { 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_MeasurementCapability_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_MeasurementCapability_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-RSTD-MeasurementPerPairOfTRP-FR1-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* dl-RSTD-MeasurementPerPairOfTRP-FR2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* supportOfDL-PRS-RSRP-MeasFR1-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* supportOfDL-PRS-RSRP-MeasFR2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_MeasurementCapability_r16_specs_1 = { + sizeof(struct NR_DL_TDOA_MeasurementCapability_r16), + offsetof(struct NR_DL_TDOA_MeasurementCapability_r16, _asn_ctx), + asn_MAP_NR_DL_TDOA_MeasurementCapability_r16_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_NR_DL_TDOA_MeasurementCapability_r16_oms_1, /* Optional members */ + 2, 1, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_MeasurementCapability_r16 = { + "NR-DL-TDOA-MeasurementCapability-r16", + "NR-DL-TDOA-MeasurementCapability-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_TDOA_MeasurementCapability_r16_tags_1, + sizeof(asn_DEF_NR_DL_TDOA_MeasurementCapability_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_MeasurementCapability_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_TDOA_MeasurementCapability_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_TDOA_MeasurementCapability_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_MeasurementCapability_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_TDOA_MeasurementCapability_r16_1, + 5, /* Elements count */ + &asn_SPC_NR_DL_TDOA_MeasurementCapability_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-TDOA-MeasurementCapability-r16.h b/asn.1/lpp_generated/NR-DL-TDOA-MeasurementCapability-r16.h new file mode 100644 index 00000000..da84a60f --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-MeasurementCapability-r16.h @@ -0,0 +1,76 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_TDOA_MeasurementCapability_r16_H_ +#define _NR_DL_TDOA_MeasurementCapability_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_TDOA_MeasurementCapability_r16__supportOfDL_PRS_RSRP_MeasFR1_r16 { + NR_DL_TDOA_MeasurementCapability_r16__supportOfDL_PRS_RSRP_MeasFR1_r16_supported = 0 +} e_NR_DL_TDOA_MeasurementCapability_r16__supportOfDL_PRS_RSRP_MeasFR1_r16; +typedef enum NR_DL_TDOA_MeasurementCapability_r16__supportOfDL_PRS_RSRP_MeasFR2_r16 { + NR_DL_TDOA_MeasurementCapability_r16__supportOfDL_PRS_RSRP_MeasFR2_r16_supported = 0 +} e_NR_DL_TDOA_MeasurementCapability_r16__supportOfDL_PRS_RSRP_MeasFR2_r16; + +/* Forward declarations */ +struct NR_UE_TEG_Capability_r17; +struct DL_TDOA_MeasCapabilityPerBand_r17; + +/* NR-DL-TDOA-MeasurementCapability-r16 */ +typedef struct NR_DL_TDOA_MeasurementCapability_r16 { + long dl_RSTD_MeasurementPerPairOfTRP_FR1_r16; + long dl_RSTD_MeasurementPerPairOfTRP_FR2_r16; + long *supportOfDL_PRS_RSRP_MeasFR1_r16; /* OPTIONAL */ + long *supportOfDL_PRS_RSRP_MeasFR2_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_TDOA_MeasurementCapability_r16__ext1 { + struct NR_UE_TEG_Capability_r17 *nr_UE_TEG_Capability_r17; /* OPTIONAL */ + struct NR_DL_TDOA_MeasurementCapability_r16__ext1__dl_tdoa_MeasCapabilityBandList_r17 { + A_SEQUENCE_OF(struct DL_TDOA_MeasCapabilityPerBand_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *dl_tdoa_MeasCapabilityBandList_r17; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_TDOA_MeasurementCapability_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfDL_PRS_RSRP_MeasFR1_r16_4; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfDL_PRS_RSRP_MeasFR2_r16_6; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_MeasurementCapability_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_MeasurementCapability_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_MeasurementCapability_r16_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_TDOA_MeasurementCapability_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-TDOA-ProvideAssistanceData-r16.c b/asn.1/lpp_generated/NR-DL-TDOA-ProvideAssistanceData-r16.c new file mode 100644 index 00000000..4c8e88c5 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-ProvideAssistanceData-r16.c @@ -0,0 +1,324 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-TDOA-ProvideAssistanceData-r16.h" + +#include "NR-DL-PRS-AssistanceData-r16.h" +#include "NR-SelectedDL-PRS-IndexList-r16.h" +#include "NR-PositionCalculationAssistance-r16.h" +#include "NR-DL-TDOA-Error-r16.h" +#include "NR-On-Demand-DL-PRS-Configurations-r17.h" +#include "NR-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17.h" +#include "AreaID-CellList-r17.h" +#include "NR-PeriodicAssistData-r18.h" +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_ProvideAssistanceData_r16__ext1, nr_On_Demand_DL_PRS_Configurations_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_On_Demand_DL_PRS_Configurations_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-On-Demand-DL-PRS-Configurations-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_ProvideAssistanceData_r16__ext1, nr_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_ProvideAssistanceData_r16__ext1, assistanceDataValidityArea_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AreaID_CellList_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "assistanceDataValidityArea-r17" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-On-Demand-DL-PRS-Configurations-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* assistanceDataValidityArea-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct NR_DL_TDOA_ProvideAssistanceData_r16__ext1), + offsetof(struct NR_DL_TDOA_ProvideAssistanceData_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 3, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 3, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_11[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_ProvideAssistanceData_r16__ext2, nr_PeriodicAssistData_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PeriodicAssistData_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PeriodicAssistData-r18" + }, +}; +static const int asn_MAP_ext2_oms_11[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-PeriodicAssistData-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_11 = { + sizeof(struct NR_DL_TDOA_ProvideAssistanceData_r16__ext2), + offsetof(struct NR_DL_TDOA_ProvideAssistanceData_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_11, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_11, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_11 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_11, + sizeof(asn_DEF_ext2_tags_11) + /sizeof(asn_DEF_ext2_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_11, /* Same as above */ + sizeof(asn_DEF_ext2_tags_11) + /sizeof(asn_DEF_ext2_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_11, + 1, /* Elements count */ + &asn_SPC_ext2_specs_11 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_TDOA_ProvideAssistanceData_r16_1[] = { + { ATF_POINTER, 6, offsetof(struct NR_DL_TDOA_ProvideAssistanceData_r16, nr_DL_PRS_AssistanceData_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_AssistanceData_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-AssistanceData-r16" + }, + { ATF_POINTER, 5, offsetof(struct NR_DL_TDOA_ProvideAssistanceData_r16, nr_SelectedDL_PRS_IndexList_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_SelectedDL_PRS_IndexList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-SelectedDL-PRS-IndexList-r16" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_TDOA_ProvideAssistanceData_r16, nr_PositionCalculationAssistance_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PositionCalculationAssistance_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PositionCalculationAssistance-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_ProvideAssistanceData_r16, nr_DL_TDOA_Error_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_NR_DL_TDOA_Error_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-Error-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_ProvideAssistanceData_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_ProvideAssistanceData_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext2_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_NR_DL_TDOA_ProvideAssistanceData_r16_oms_1[] = { 0, 1, 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_ProvideAssistanceData_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-AssistanceData-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-SelectedDL-PRS-IndexList-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-PositionCalculationAssistance-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-DL-TDOA-Error-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_ProvideAssistanceData_r16_specs_1 = { + sizeof(struct NR_DL_TDOA_ProvideAssistanceData_r16), + offsetof(struct NR_DL_TDOA_ProvideAssistanceData_r16, _asn_ctx), + asn_MAP_NR_DL_TDOA_ProvideAssistanceData_r16_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_NR_DL_TDOA_ProvideAssistanceData_r16_oms_1, /* Optional members */ + 4, 2, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16 = { + "NR-DL-TDOA-ProvideAssistanceData-r16", + "NR-DL-TDOA-ProvideAssistanceData-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16_tags_1, + sizeof(asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_TDOA_ProvideAssistanceData_r16_1, + 6, /* Elements count */ + &asn_SPC_NR_DL_TDOA_ProvideAssistanceData_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-TDOA-ProvideAssistanceData-r16.h b/asn.1/lpp_generated/NR-DL-TDOA-ProvideAssistanceData-r16.h new file mode 100644 index 00000000..5c062bfc --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-ProvideAssistanceData-r16.h @@ -0,0 +1,70 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_TDOA_ProvideAssistanceData_r16_H_ +#define _NR_DL_TDOA_ProvideAssistanceData_r16_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_DL_PRS_AssistanceData_r16; +struct NR_SelectedDL_PRS_IndexList_r16; +struct NR_PositionCalculationAssistance_r16; +struct NR_DL_TDOA_Error_r16; +struct NR_On_Demand_DL_PRS_Configurations_r17; +struct NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17; +struct AreaID_CellList_r17; +struct NR_PeriodicAssistData_r18; + +/* NR-DL-TDOA-ProvideAssistanceData-r16 */ +typedef struct NR_DL_TDOA_ProvideAssistanceData_r16 { + struct NR_DL_PRS_AssistanceData_r16 *nr_DL_PRS_AssistanceData_r16; /* OPTIONAL */ + struct NR_SelectedDL_PRS_IndexList_r16 *nr_SelectedDL_PRS_IndexList_r16; /* OPTIONAL */ + struct NR_PositionCalculationAssistance_r16 *nr_PositionCalculationAssistance_r16; /* OPTIONAL */ + struct NR_DL_TDOA_Error_r16 *nr_DL_TDOA_Error_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_TDOA_ProvideAssistanceData_r16__ext1 { + struct NR_On_Demand_DL_PRS_Configurations_r17 *nr_On_Demand_DL_PRS_Configurations_r17; /* OPTIONAL */ + struct NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17 *nr_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17; /* OPTIONAL */ + struct AreaID_CellList_r17 *assistanceDataValidityArea_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct NR_DL_TDOA_ProvideAssistanceData_r16__ext2 { + struct NR_PeriodicAssistData_r18 *nr_PeriodicAssistData_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_TDOA_ProvideAssistanceData_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_ProvideAssistanceData_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_ProvideAssistanceData_r16_1[6]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_TDOA_ProvideAssistanceData_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-TDOA-ProvideCapabilities-r16.c b/asn.1/lpp_generated/NR-DL-TDOA-ProvideCapabilities-r16.c new file mode 100644 index 00000000..e678efa2 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-ProvideCapabilities-r16.c @@ -0,0 +1,1583 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-TDOA-ProvideCapabilities-r16.h" + +#include "PositioningModes.h" +#include "NR-On-Demand-DL-PRS-Support-r17.h" +#include "ScheduledLocationTimeSupportPerMode-r17.h" +#include "LocationCoordinateTypes.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_area_validity_r17_constraint_37(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 16L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_nr_PosCalcAssistanceSupport_r17_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_periodicAssistanceData_r18_constraint_50(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_IntegrityAssistanceSupport_r18_constraint_50(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_additionalPathsReport_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_additionalPathsExtSupport_r17_constr_32 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_area_validity_r17_constr_38 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (1..16) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_multiMeasInSameMeasReport_r17_constr_40 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_mg_ActivationRequest_r17_constr_42 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_PosCalcAssistanceSupport_r17_constr_13 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17_constr_24 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_posMeasGapSupport_r17_constr_45 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_multiLocationEstimateInSameMeasReport_r17_constr_48 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_symbolTimeStampSupport_r18_constr_52 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18_constr_64 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_periodicAssistanceData_r18_constr_54 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_IntegrityAssistanceSupport_r18_constr_57 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_additionalPathsReport_r16_value2enum_7[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_additionalPathsReport_r16_enum2value_7[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_additionalPathsReport_r16_specs_7 = { + asn_MAP_additionalPathsReport_r16_value2enum_7, /* "tag" => N; sorted by tag */ + asn_MAP_additionalPathsReport_r16_enum2value_7, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_additionalPathsReport_r16_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_additionalPathsReport_r16_7 = { + "additionalPathsReport-r16", + "additionalPathsReport-r16", + &asn_OP_NativeEnumerated, + asn_DEF_additionalPathsReport_r16_tags_7, + sizeof(asn_DEF_additionalPathsReport_r16_tags_7) + /sizeof(asn_DEF_additionalPathsReport_r16_tags_7[0]) - 1, /* 1 */ + asn_DEF_additionalPathsReport_r16_tags_7, /* Same as above */ + sizeof(asn_DEF_additionalPathsReport_r16_tags_7) + /sizeof(asn_DEF_additionalPathsReport_r16_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_additionalPathsReport_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_additionalPathsReport_r16_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_los_nlos_AssistanceDataSupport_r17_20[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_los_nlos_AssistanceDataSupport_r17, type_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_IndicatorType2_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "type-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_los_nlos_AssistanceDataSupport_r17, granularity_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_IndicatorGranularity2_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "granularity-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_los_nlos_AssistanceDataSupport_r17_tags_20[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_los_nlos_AssistanceDataSupport_r17_tag2el_20[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* type-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* granularity-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_nr_los_nlos_AssistanceDataSupport_r17_specs_20 = { + sizeof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_los_nlos_AssistanceDataSupport_r17), + offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_los_nlos_AssistanceDataSupport_r17, _asn_ctx), + asn_MAP_nr_los_nlos_AssistanceDataSupport_r17_tag2el_20, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_los_nlos_AssistanceDataSupport_r17_20 = { + "nr-los-nlos-AssistanceDataSupport-r17", + "nr-los-nlos-AssistanceDataSupport-r17", + &asn_OP_SEQUENCE, + asn_DEF_nr_los_nlos_AssistanceDataSupport_r17_tags_20, + sizeof(asn_DEF_nr_los_nlos_AssistanceDataSupport_r17_tags_20) + /sizeof(asn_DEF_nr_los_nlos_AssistanceDataSupport_r17_tags_20[0]) - 1, /* 1 */ + asn_DEF_nr_los_nlos_AssistanceDataSupport_r17_tags_20, /* Same as above */ + sizeof(asn_DEF_nr_los_nlos_AssistanceDataSupport_r17_tags_20) + /sizeof(asn_DEF_nr_los_nlos_AssistanceDataSupport_r17_tags_20[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_nr_los_nlos_AssistanceDataSupport_r17_20, + 2, /* Elements count */ + &asn_SPC_nr_los_nlos_AssistanceDataSupport_r17_specs_20 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_los_nlos_IndicatorSupport_r17_28[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_los_nlos_IndicatorSupport_r17, type_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_IndicatorType2_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "type-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_los_nlos_IndicatorSupport_r17, granularity_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_IndicatorGranularity2_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "granularity-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_28[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_los_nlos_IndicatorSupport_r17_tag2el_28[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* type-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* granularity-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_nr_los_nlos_IndicatorSupport_r17_specs_28 = { + sizeof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_los_nlos_IndicatorSupport_r17), + offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_los_nlos_IndicatorSupport_r17, _asn_ctx), + asn_MAP_nr_los_nlos_IndicatorSupport_r17_tag2el_28, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_los_nlos_IndicatorSupport_r17_28 = { + "nr-los-nlos-IndicatorSupport-r17", + "nr-los-nlos-IndicatorSupport-r17", + &asn_OP_SEQUENCE, + asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_28, + sizeof(asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_28) + /sizeof(asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_28[0]) - 1, /* 1 */ + asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_28, /* Same as above */ + sizeof(asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_28) + /sizeof(asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_28[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_nr_los_nlos_IndicatorSupport_r17_28, + 2, /* Elements count */ + &asn_SPC_nr_los_nlos_IndicatorSupport_r17_specs_28 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_additionalPathsExtSupport_r17_value2enum_32[] = { + { 0, 2, "n4" }, + { 1, 2, "n6" }, + { 2, 2, "n8" } +}; +static const unsigned int asn_MAP_additionalPathsExtSupport_r17_enum2value_32[] = { + 0, /* n4(0) */ + 1, /* n6(1) */ + 2 /* n8(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_additionalPathsExtSupport_r17_specs_32 = { + asn_MAP_additionalPathsExtSupport_r17_value2enum_32, /* "tag" => N; sorted by tag */ + asn_MAP_additionalPathsExtSupport_r17_enum2value_32, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_additionalPathsExtSupport_r17_tags_32[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_additionalPathsExtSupport_r17_32 = { + "additionalPathsExtSupport-r17", + "additionalPathsExtSupport-r17", + &asn_OP_NativeEnumerated, + asn_DEF_additionalPathsExtSupport_r17_tags_32, + sizeof(asn_DEF_additionalPathsExtSupport_r17_tags_32) + /sizeof(asn_DEF_additionalPathsExtSupport_r17_tags_32[0]) - 1, /* 1 */ + asn_DEF_additionalPathsExtSupport_r17_tags_32, /* Same as above */ + sizeof(asn_DEF_additionalPathsExtSupport_r17_tags_32) + /sizeof(asn_DEF_additionalPathsExtSupport_r17_tags_32[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_additionalPathsExtSupport_r17_constr_32, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_additionalPathsExtSupport_r17_specs_32 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_dl_prs_AssistanceDataValidity_r17_37[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_dl_prs_AssistanceDataValidity_r17, area_validity_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_area_validity_r17_constr_38, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_area_validity_r17_constraint_37 + }, + 0, 0, /* No default value */ + "area-validity-r17" + }, +}; +static const int asn_MAP_nr_dl_prs_AssistanceDataValidity_r17_oms_37[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_37[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_dl_prs_AssistanceDataValidity_r17_tag2el_37[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* area-validity-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_nr_dl_prs_AssistanceDataValidity_r17_specs_37 = { + sizeof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_dl_prs_AssistanceDataValidity_r17), + offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_dl_prs_AssistanceDataValidity_r17, _asn_ctx), + asn_MAP_nr_dl_prs_AssistanceDataValidity_r17_tag2el_37, + 1, /* Count of tags in the map */ + asn_MAP_nr_dl_prs_AssistanceDataValidity_r17_oms_37, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_37 = { + "nr-dl-prs-AssistanceDataValidity-r17", + "nr-dl-prs-AssistanceDataValidity-r17", + &asn_OP_SEQUENCE, + asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_37, + sizeof(asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_37) + /sizeof(asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_37[0]) - 1, /* 1 */ + asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_37, /* Same as above */ + sizeof(asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_37) + /sizeof(asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_37[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_nr_dl_prs_AssistanceDataValidity_r17_37, + 1, /* Elements count */ + &asn_SPC_nr_dl_prs_AssistanceDataValidity_r17_specs_37 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_multiMeasInSameMeasReport_r17_value2enum_40[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_multiMeasInSameMeasReport_r17_enum2value_40[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_multiMeasInSameMeasReport_r17_specs_40 = { + asn_MAP_multiMeasInSameMeasReport_r17_value2enum_40, /* "tag" => N; sorted by tag */ + asn_MAP_multiMeasInSameMeasReport_r17_enum2value_40, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_multiMeasInSameMeasReport_r17_tags_40[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_multiMeasInSameMeasReport_r17_40 = { + "multiMeasInSameMeasReport-r17", + "multiMeasInSameMeasReport-r17", + &asn_OP_NativeEnumerated, + asn_DEF_multiMeasInSameMeasReport_r17_tags_40, + sizeof(asn_DEF_multiMeasInSameMeasReport_r17_tags_40) + /sizeof(asn_DEF_multiMeasInSameMeasReport_r17_tags_40[0]) - 1, /* 1 */ + asn_DEF_multiMeasInSameMeasReport_r17_tags_40, /* Same as above */ + sizeof(asn_DEF_multiMeasInSameMeasReport_r17_tags_40) + /sizeof(asn_DEF_multiMeasInSameMeasReport_r17_tags_40[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_multiMeasInSameMeasReport_r17_constr_40, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_multiMeasInSameMeasReport_r17_specs_40 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_mg_ActivationRequest_r17_value2enum_42[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_mg_ActivationRequest_r17_enum2value_42[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_mg_ActivationRequest_r17_specs_42 = { + asn_MAP_mg_ActivationRequest_r17_value2enum_42, /* "tag" => N; sorted by tag */ + asn_MAP_mg_ActivationRequest_r17_enum2value_42, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_mg_ActivationRequest_r17_tags_42[] = { + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_mg_ActivationRequest_r17_42 = { + "mg-ActivationRequest-r17", + "mg-ActivationRequest-r17", + &asn_OP_NativeEnumerated, + asn_DEF_mg_ActivationRequest_r17_tags_42, + sizeof(asn_DEF_mg_ActivationRequest_r17_tags_42) + /sizeof(asn_DEF_mg_ActivationRequest_r17_tags_42[0]) - 1, /* 1 */ + asn_DEF_mg_ActivationRequest_r17_tags_42, /* Same as above */ + sizeof(asn_DEF_mg_ActivationRequest_r17_tags_42) + /sizeof(asn_DEF_mg_ActivationRequest_r17_tags_42[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_mg_ActivationRequest_r17_constr_42, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_mg_ActivationRequest_r17_specs_42 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_11[] = { + { ATF_POINTER, 11, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1, ten_ms_unit_ResponseTime_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningModes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ten-ms-unit-ResponseTime-r17" + }, + { ATF_POINTER, 10, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1, nr_PosCalcAssistanceSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_PosCalcAssistanceSupport_r17_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_PosCalcAssistanceSupport_r17_constraint_11 + }, + 0, 0, /* No default value */ + "nr-PosCalcAssistanceSupport-r17" + }, + { ATF_POINTER, 9, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1, nr_los_nlos_AssistanceDataSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_nr_los_nlos_AssistanceDataSupport_r17_20, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-los-nlos-AssistanceDataSupport-r17" + }, + { ATF_POINTER, 8, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1, nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17_constr_24, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17_constraint_11 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ExpectedAoD-or-AoA-Sup-r17" + }, + { ATF_POINTER, 7, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1, nr_DL_TDOA_On_Demand_DL_PRS_Support_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_On_Demand_DL_PRS_Support_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-On-Demand-DL-PRS-Support-r17" + }, + { ATF_POINTER, 6, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1, nr_los_nlos_IndicatorSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_nr_los_nlos_IndicatorSupport_r17_28, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-los-nlos-IndicatorSupport-r17" + }, + { ATF_POINTER, 5, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1, additionalPathsExtSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_additionalPathsExtSupport_r17_32, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "additionalPathsExtSupport-r17" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1, scheduledLocationRequestSupported_r17), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ScheduledLocationTimeSupportPerMode_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scheduledLocationRequestSupported-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1, nr_dl_prs_AssistanceDataValidity_r17), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + 0, + &asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_37, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-dl-prs-AssistanceDataValidity-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1, multiMeasInSameMeasReport_r17), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_multiMeasInSameMeasReport_r17_40, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "multiMeasInSameMeasReport-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1, mg_ActivationRequest_r17), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_mg_ActivationRequest_r17_42, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mg-ActivationRequest-r17" + }, +}; +static const int asn_MAP_ext1_oms_11[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ten-ms-unit-ResponseTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PosCalcAssistanceSupport-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-los-nlos-AssistanceDataSupport-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-DL-PRS-ExpectedAoD-or-AoA-Sup-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-DL-TDOA-On-Demand-DL-PRS-Support-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nr-los-nlos-IndicatorSupport-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* additionalPathsExtSupport-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* scheduledLocationRequestSupported-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* nr-dl-prs-AssistanceDataValidity-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* multiMeasInSameMeasReport-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 } /* mg-ActivationRequest-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_11 = { + sizeof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1), + offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_11, + 11, /* Count of tags in the map */ + asn_MAP_ext1_oms_11, /* Optional members */ + 11, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_11 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_11, + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_11, /* Same as above */ + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_11, + 11, /* Elements count */ + &asn_SPC_ext1_specs_11 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_posMeasGapSupport_r17_value2enum_45[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_posMeasGapSupport_r17_enum2value_45[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_posMeasGapSupport_r17_specs_45 = { + asn_MAP_posMeasGapSupport_r17_value2enum_45, /* "tag" => N; sorted by tag */ + asn_MAP_posMeasGapSupport_r17_enum2value_45, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_posMeasGapSupport_r17_tags_45[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_posMeasGapSupport_r17_45 = { + "posMeasGapSupport-r17", + "posMeasGapSupport-r17", + &asn_OP_NativeEnumerated, + asn_DEF_posMeasGapSupport_r17_tags_45, + sizeof(asn_DEF_posMeasGapSupport_r17_tags_45) + /sizeof(asn_DEF_posMeasGapSupport_r17_tags_45[0]) - 1, /* 1 */ + asn_DEF_posMeasGapSupport_r17_tags_45, /* Same as above */ + sizeof(asn_DEF_posMeasGapSupport_r17_tags_45) + /sizeof(asn_DEF_posMeasGapSupport_r17_tags_45[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_posMeasGapSupport_r17_constr_45, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_posMeasGapSupport_r17_specs_45 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_44[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext2, posMeasGapSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_posMeasGapSupport_r17_45, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posMeasGapSupport-r17" + }, +}; +static const int asn_MAP_ext2_oms_44[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_44[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_44[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* posMeasGapSupport-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_44 = { + sizeof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext2), + offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_44, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_44, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_44 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_44, + sizeof(asn_DEF_ext2_tags_44) + /sizeof(asn_DEF_ext2_tags_44[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_44, /* Same as above */ + sizeof(asn_DEF_ext2_tags_44) + /sizeof(asn_DEF_ext2_tags_44[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_44, + 1, /* Elements count */ + &asn_SPC_ext2_specs_44 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_multiLocationEstimateInSameMeasReport_r17_value2enum_48[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_multiLocationEstimateInSameMeasReport_r17_enum2value_48[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_multiLocationEstimateInSameMeasReport_r17_specs_48 = { + asn_MAP_multiLocationEstimateInSameMeasReport_r17_value2enum_48, /* "tag" => N; sorted by tag */ + asn_MAP_multiLocationEstimateInSameMeasReport_r17_enum2value_48, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_multiLocationEstimateInSameMeasReport_r17_tags_48[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_multiLocationEstimateInSameMeasReport_r17_48 = { + "multiLocationEstimateInSameMeasReport-r17", + "multiLocationEstimateInSameMeasReport-r17", + &asn_OP_NativeEnumerated, + asn_DEF_multiLocationEstimateInSameMeasReport_r17_tags_48, + sizeof(asn_DEF_multiLocationEstimateInSameMeasReport_r17_tags_48) + /sizeof(asn_DEF_multiLocationEstimateInSameMeasReport_r17_tags_48[0]) - 1, /* 1 */ + asn_DEF_multiLocationEstimateInSameMeasReport_r17_tags_48, /* Same as above */ + sizeof(asn_DEF_multiLocationEstimateInSameMeasReport_r17_tags_48) + /sizeof(asn_DEF_multiLocationEstimateInSameMeasReport_r17_tags_48[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_multiLocationEstimateInSameMeasReport_r17_constr_48, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_multiLocationEstimateInSameMeasReport_r17_specs_48 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_47[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext3, multiLocationEstimateInSameMeasReport_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_multiLocationEstimateInSameMeasReport_r17_48, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "multiLocationEstimateInSameMeasReport-r17" + }, +}; +static const int asn_MAP_ext3_oms_47[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_47[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_47[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* multiLocationEstimateInSameMeasReport-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_47 = { + sizeof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext3), + offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_47, + 1, /* Count of tags in the map */ + asn_MAP_ext3_oms_47, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_47 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_47, + sizeof(asn_DEF_ext3_tags_47) + /sizeof(asn_DEF_ext3_tags_47[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_47, /* Same as above */ + sizeof(asn_DEF_ext3_tags_47) + /sizeof(asn_DEF_ext3_tags_47[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_47, + 1, /* Elements count */ + &asn_SPC_ext3_specs_47 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_symbolTimeStampSupport_r18_value2enum_52[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_symbolTimeStampSupport_r18_enum2value_52[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_symbolTimeStampSupport_r18_specs_52 = { + asn_MAP_symbolTimeStampSupport_r18_value2enum_52, /* "tag" => N; sorted by tag */ + asn_MAP_symbolTimeStampSupport_r18_enum2value_52, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_symbolTimeStampSupport_r18_tags_52[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_symbolTimeStampSupport_r18_52 = { + "symbolTimeStampSupport-r18", + "symbolTimeStampSupport-r18", + &asn_OP_NativeEnumerated, + asn_DEF_symbolTimeStampSupport_r18_tags_52, + sizeof(asn_DEF_symbolTimeStampSupport_r18_tags_52) + /sizeof(asn_DEF_symbolTimeStampSupport_r18_tags_52[0]) - 1, /* 1 */ + asn_DEF_symbolTimeStampSupport_r18_tags_52, /* Same as above */ + sizeof(asn_DEF_symbolTimeStampSupport_r18_tags_52) + /sizeof(asn_DEF_symbolTimeStampSupport_r18_tags_52[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_symbolTimeStampSupport_r18_constr_52, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_symbolTimeStampSupport_r18_specs_52 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18_value2enum_64[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18_enum2value_64[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18_specs_64 = { + asn_MAP_nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18_value2enum_64, /* "tag" => N; sorted by tag */ + asn_MAP_nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18_enum2value_64, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18_tags_64[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18_64 = { + "nr-DL-TDOA-OnDemandPRS-ForBWA-Support-r18", + "nr-DL-TDOA-OnDemandPRS-ForBWA-Support-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18_tags_64, + sizeof(asn_DEF_nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18_tags_64) + /sizeof(asn_DEF_nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18_tags_64[0]) - 1, /* 1 */ + asn_DEF_nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18_tags_64, /* Same as above */ + sizeof(asn_DEF_nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18_tags_64) + /sizeof(asn_DEF_nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18_tags_64[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18_constr_64, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18_specs_64 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext4_50[] = { + { ATF_POINTER, 5, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext4, locationCoordinateTypes_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationCoordinateTypes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationCoordinateTypes-r18" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext4, symbolTimeStampSupport_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_symbolTimeStampSupport_r18_52, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "symbolTimeStampSupport-r18" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext4, periodicAssistanceData_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_periodicAssistanceData_r18_constr_54, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_periodicAssistanceData_r18_constraint_50 + }, + 0, 0, /* No default value */ + "periodicAssistanceData-r18" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext4, nr_IntegrityAssistanceSupport_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_IntegrityAssistanceSupport_r18_constr_57, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_IntegrityAssistanceSupport_r18_constraint_50 + }, + 0, 0, /* No default value */ + "nr-IntegrityAssistanceSupport-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext4, nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18_64, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-OnDemandPRS-ForBWA-Support-r18" + }, +}; +static const int asn_MAP_ext4_oms_50[] = { 0, 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_ext4_tags_50[] = { + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext4_tag2el_50[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationCoordinateTypes-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* symbolTimeStampSupport-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* periodicAssistanceData-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-IntegrityAssistanceSupport-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* nr-DL-TDOA-OnDemandPRS-ForBWA-Support-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext4_specs_50 = { + sizeof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext4), + offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16__ext4, _asn_ctx), + asn_MAP_ext4_tag2el_50, + 5, /* Count of tags in the map */ + asn_MAP_ext4_oms_50, /* Optional members */ + 5, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext4_50 = { + "ext4", + "ext4", + &asn_OP_SEQUENCE, + asn_DEF_ext4_tags_50, + sizeof(asn_DEF_ext4_tags_50) + /sizeof(asn_DEF_ext4_tags_50[0]) - 1, /* 1 */ + asn_DEF_ext4_tags_50, /* Same as above */ + sizeof(asn_DEF_ext4_tags_50) + /sizeof(asn_DEF_ext4_tags_50[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext4_50, + 5, /* Elements count */ + &asn_SPC_ext4_specs_50 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_TDOA_ProvideCapabilities_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16, nr_DL_TDOA_Mode_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningModes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-Mode-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16, nr_DL_TDOA_PRS_Capability_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourcesCapability_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-PRS-Capability-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16, nr_DL_TDOA_MeasurementCapability_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_TDOA_MeasurementCapability_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-MeasurementCapability-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16, nr_DL_PRS_QCL_ProcessingCapability_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_QCL_ProcessingCapability_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-QCL-ProcessingCapability-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16, nr_DL_PRS_ProcessingCapability_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ProcessingCapability_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ProcessingCapability-r16" + }, + { ATF_POINTER, 6, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16, additionalPathsReport_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_additionalPathsReport_r16_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "additionalPathsReport-r16" + }, + { ATF_POINTER, 5, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16, periodicalReporting_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningModes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "periodicalReporting-r16" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_ext1_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + 0, + &asn_DEF_ext2_44, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16, ext3), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + 0, + &asn_DEF_ext3_47, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16, ext4), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + 0, + &asn_DEF_ext4_50, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext4" + }, +}; +static const int asn_MAP_NR_DL_TDOA_ProvideCapabilities_r16_oms_1[] = { 5, 6, 7, 8, 9, 10 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_ProvideCapabilities_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-TDOA-Mode-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-TDOA-PRS-Capability-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-TDOA-MeasurementCapability-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-DL-PRS-QCL-ProcessingCapability-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-DL-PRS-ProcessingCapability-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* additionalPathsReport-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* periodicalReporting-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* ext3 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 } /* ext4 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_ProvideCapabilities_r16_specs_1 = { + sizeof(struct NR_DL_TDOA_ProvideCapabilities_r16), + offsetof(struct NR_DL_TDOA_ProvideCapabilities_r16, _asn_ctx), + asn_MAP_NR_DL_TDOA_ProvideCapabilities_r16_tag2el_1, + 11, /* Count of tags in the map */ + asn_MAP_NR_DL_TDOA_ProvideCapabilities_r16_oms_1, /* Optional members */ + 2, 4, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16 = { + "NR-DL-TDOA-ProvideCapabilities-r16", + "NR-DL-TDOA-ProvideCapabilities-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16_tags_1, + sizeof(asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_TDOA_ProvideCapabilities_r16_1, + 11, /* Elements count */ + &asn_SPC_NR_DL_TDOA_ProvideCapabilities_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-TDOA-ProvideCapabilities-r16.h b/asn.1/lpp_generated/NR-DL-TDOA-ProvideCapabilities-r16.h new file mode 100644 index 00000000..1ccf1817 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-ProvideCapabilities-r16.h @@ -0,0 +1,192 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_TDOA_ProvideCapabilities_r16_H_ +#define _NR_DL_TDOA_ProvideCapabilities_r16_H_ + + +#include + +/* Including external dependencies */ +#include "PositioningModes.h" +#include "NR-DL-PRS-ResourcesCapability-r16.h" +#include "NR-DL-TDOA-MeasurementCapability-r16.h" +#include "NR-DL-PRS-QCL-ProcessingCapability-r16.h" +#include "NR-DL-PRS-ProcessingCapability-r16.h" +#include +#include +#include "LOS-NLOS-IndicatorType2-r17.h" +#include "LOS-NLOS-IndicatorGranularity2-r17.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_TDOA_ProvideCapabilities_r16__additionalPathsReport_r16 { + NR_DL_TDOA_ProvideCapabilities_r16__additionalPathsReport_r16_supported = 0 +} e_NR_DL_TDOA_ProvideCapabilities_r16__additionalPathsReport_r16; +typedef enum NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_PosCalcAssistanceSupport_r17 { + NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_PosCalcAssistanceSupport_r17_trpLocSup = 0, + NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_PosCalcAssistanceSupport_r17_beamInfoSup = 1, + NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_PosCalcAssistanceSupport_r17_rtdInfoSup = 2, + NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_PosCalcAssistanceSupport_r17_trpTEG_InfoSup = 3, + NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_PosCalcAssistanceSupport_r17_nr_IntegritySup_r18 = 4, + NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_PosCalcAssistanceSupport_r17_pruInfoSup_r18 = 5 +} e_NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_PosCalcAssistanceSupport_r17; +typedef enum NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17 { + NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17_eAoD = 0, + NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17_eAoA = 1 +} e_NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17; +typedef enum NR_DL_TDOA_ProvideCapabilities_r16__ext1__additionalPathsExtSupport_r17 { + NR_DL_TDOA_ProvideCapabilities_r16__ext1__additionalPathsExtSupport_r17_n4 = 0, + NR_DL_TDOA_ProvideCapabilities_r16__ext1__additionalPathsExtSupport_r17_n6 = 1, + NR_DL_TDOA_ProvideCapabilities_r16__ext1__additionalPathsExtSupport_r17_n8 = 2 +} e_NR_DL_TDOA_ProvideCapabilities_r16__ext1__additionalPathsExtSupport_r17; +typedef enum NR_DL_TDOA_ProvideCapabilities_r16__ext1__multiMeasInSameMeasReport_r17 { + NR_DL_TDOA_ProvideCapabilities_r16__ext1__multiMeasInSameMeasReport_r17_supported = 0 +} e_NR_DL_TDOA_ProvideCapabilities_r16__ext1__multiMeasInSameMeasReport_r17; +typedef enum NR_DL_TDOA_ProvideCapabilities_r16__ext1__mg_ActivationRequest_r17 { + NR_DL_TDOA_ProvideCapabilities_r16__ext1__mg_ActivationRequest_r17_supported = 0 +} e_NR_DL_TDOA_ProvideCapabilities_r16__ext1__mg_ActivationRequest_r17; +typedef enum NR_DL_TDOA_ProvideCapabilities_r16__ext2__posMeasGapSupport_r17 { + NR_DL_TDOA_ProvideCapabilities_r16__ext2__posMeasGapSupport_r17_supported = 0 +} e_NR_DL_TDOA_ProvideCapabilities_r16__ext2__posMeasGapSupport_r17; +typedef enum NR_DL_TDOA_ProvideCapabilities_r16__ext3__multiLocationEstimateInSameMeasReport_r17 { + NR_DL_TDOA_ProvideCapabilities_r16__ext3__multiLocationEstimateInSameMeasReport_r17_supported = 0 +} e_NR_DL_TDOA_ProvideCapabilities_r16__ext3__multiLocationEstimateInSameMeasReport_r17; +typedef enum NR_DL_TDOA_ProvideCapabilities_r16__ext4__symbolTimeStampSupport_r18 { + NR_DL_TDOA_ProvideCapabilities_r16__ext4__symbolTimeStampSupport_r18_supported = 0 +} e_NR_DL_TDOA_ProvideCapabilities_r16__ext4__symbolTimeStampSupport_r18; +typedef enum NR_DL_TDOA_ProvideCapabilities_r16__ext4__periodicAssistanceData_r18 { + NR_DL_TDOA_ProvideCapabilities_r16__ext4__periodicAssistanceData_r18_solicited = 0, + NR_DL_TDOA_ProvideCapabilities_r16__ext4__periodicAssistanceData_r18_unsolicited = 1 +} e_NR_DL_TDOA_ProvideCapabilities_r16__ext4__periodicAssistanceData_r18; +typedef enum NR_DL_TDOA_ProvideCapabilities_r16__ext4__nr_IntegrityAssistanceSupport_r18 { + NR_DL_TDOA_ProvideCapabilities_r16__ext4__nr_IntegrityAssistanceSupport_r18_serviceParametersSup = 0, + NR_DL_TDOA_ProvideCapabilities_r16__ext4__nr_IntegrityAssistanceSupport_r18_serviceAlertSup = 1, + NR_DL_TDOA_ProvideCapabilities_r16__ext4__nr_IntegrityAssistanceSupport_r18_riskParametersSup = 2, + NR_DL_TDOA_ProvideCapabilities_r16__ext4__nr_IntegrityAssistanceSupport_r18_integrityParaTRP_LocSup = 3, + NR_DL_TDOA_ProvideCapabilities_r16__ext4__nr_IntegrityAssistanceSupport_r18_integrityParaBeamInfoSup = 4, + NR_DL_TDOA_ProvideCapabilities_r16__ext4__nr_IntegrityAssistanceSupport_r18_integrityParaRTD_InfoSup = 5 +} e_NR_DL_TDOA_ProvideCapabilities_r16__ext4__nr_IntegrityAssistanceSupport_r18; +typedef enum NR_DL_TDOA_ProvideCapabilities_r16__ext4__nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18 { + NR_DL_TDOA_ProvideCapabilities_r16__ext4__nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18_supported = 0 +} e_NR_DL_TDOA_ProvideCapabilities_r16__ext4__nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18; + +/* Forward declarations */ +struct PositioningModes; +struct NR_On_Demand_DL_PRS_Support_r17; +struct ScheduledLocationTimeSupportPerMode_r17; +struct LocationCoordinateTypes; + +/* NR-DL-TDOA-ProvideCapabilities-r16 */ +typedef struct NR_DL_TDOA_ProvideCapabilities_r16 { + PositioningModes_t nr_DL_TDOA_Mode_r16; + NR_DL_PRS_ResourcesCapability_r16_t nr_DL_TDOA_PRS_Capability_r16; + NR_DL_TDOA_MeasurementCapability_r16_t nr_DL_TDOA_MeasurementCapability_r16; + NR_DL_PRS_QCL_ProcessingCapability_r16_t nr_DL_PRS_QCL_ProcessingCapability_r16; + NR_DL_PRS_ProcessingCapability_r16_t nr_DL_PRS_ProcessingCapability_r16; + long *additionalPathsReport_r16; /* OPTIONAL */ + struct PositioningModes *periodicalReporting_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_TDOA_ProvideCapabilities_r16__ext1 { + struct PositioningModes *ten_ms_unit_ResponseTime_r17; /* OPTIONAL */ + BIT_STRING_t *nr_PosCalcAssistanceSupport_r17; /* OPTIONAL */ + struct NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_los_nlos_AssistanceDataSupport_r17 { + LOS_NLOS_IndicatorType2_r17_t type_r17; + LOS_NLOS_IndicatorGranularity2_r17_t granularity_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_los_nlos_AssistanceDataSupport_r17; + BIT_STRING_t *nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17; /* OPTIONAL */ + struct NR_On_Demand_DL_PRS_Support_r17 *nr_DL_TDOA_On_Demand_DL_PRS_Support_r17; /* OPTIONAL */ + struct NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_los_nlos_IndicatorSupport_r17 { + LOS_NLOS_IndicatorType2_r17_t type_r17; + LOS_NLOS_IndicatorGranularity2_r17_t granularity_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_los_nlos_IndicatorSupport_r17; + long *additionalPathsExtSupport_r17; /* OPTIONAL */ + struct ScheduledLocationTimeSupportPerMode_r17 *scheduledLocationRequestSupported_r17; /* OPTIONAL */ + struct NR_DL_TDOA_ProvideCapabilities_r16__ext1__nr_dl_prs_AssistanceDataValidity_r17 { + long *area_validity_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_dl_prs_AssistanceDataValidity_r17; + long *multiMeasInSameMeasReport_r17; /* OPTIONAL */ + long *mg_ActivationRequest_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct NR_DL_TDOA_ProvideCapabilities_r16__ext2 { + long *posMeasGapSupport_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct NR_DL_TDOA_ProvideCapabilities_r16__ext3 { + long *multiLocationEstimateInSameMeasReport_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + struct NR_DL_TDOA_ProvideCapabilities_r16__ext4 { + struct LocationCoordinateTypes *locationCoordinateTypes_r18; /* OPTIONAL */ + long *symbolTimeStampSupport_r18; /* OPTIONAL */ + BIT_STRING_t *periodicAssistanceData_r18; /* OPTIONAL */ + BIT_STRING_t *nr_IntegrityAssistanceSupport_r18; /* OPTIONAL */ + long *nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext4; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_TDOA_ProvideCapabilities_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_additionalPathsReport_r16_7; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_additionalPathsExtSupport_r17_32; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_multiMeasInSameMeasReport_r17_40; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_mg_ActivationRequest_r17_42; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_posMeasGapSupport_r17_45; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_multiLocationEstimateInSameMeasReport_r17_48; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_symbolTimeStampSupport_r18_52; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_DL_TDOA_OnDemandPRS_ForBWA_Support_r18_64; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_ProvideCapabilities_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_ProvideCapabilities_r16_1[11]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_TDOA_ProvideCapabilities_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-TDOA-ProvideLocationInformation-r16.c b/asn.1/lpp_generated/NR-DL-TDOA-ProvideLocationInformation-r16.c new file mode 100644 index 00000000..6238a9fe --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-ProvideLocationInformation-r16.c @@ -0,0 +1,390 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-TDOA-ProvideLocationInformation-r16.h" + +#include "NR-DL-TDOA-SignalMeasurementInformation-r16.h" +#include "NR-DL-TDOA-LocationInformation-r16.h" +#include "NR-DL-TDOA-Error-r16.h" +static int +memb_nr_DL_TDOA_SignalMeasurementInstances_r17_constraint_6(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 32UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_TDOA_LocationInformationInstances_r17_constraint_6(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 32UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_TDOA_SignalMeasurementInstances_r17_constr_7 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_TDOA_LocationInformationInstances_r17_constr_9 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_TDOA_SignalMeasurementInstances_r17_constr_7 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_TDOA_LocationInformationInstances_r17_constr_9 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_DL_TDOA_SignalMeasurementInstances_r17_7[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_TDOA_SignalMeasurementInstances_r17_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_DL_TDOA_SignalMeasurementInstances_r17_specs_7 = { + sizeof(struct NR_DL_TDOA_ProvideLocationInformation_r16__ext1__nr_DL_TDOA_SignalMeasurementInstances_r17), + offsetof(struct NR_DL_TDOA_ProvideLocationInformation_r16__ext1__nr_DL_TDOA_SignalMeasurementInstances_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_TDOA_SignalMeasurementInstances_r17_7 = { + "nr-DL-TDOA-SignalMeasurementInstances-r17", + "nr-DL-TDOA-SignalMeasurementInstances-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_DL_TDOA_SignalMeasurementInstances_r17_tags_7, + sizeof(asn_DEF_nr_DL_TDOA_SignalMeasurementInstances_r17_tags_7) + /sizeof(asn_DEF_nr_DL_TDOA_SignalMeasurementInstances_r17_tags_7[0]) - 1, /* 1 */ + asn_DEF_nr_DL_TDOA_SignalMeasurementInstances_r17_tags_7, /* Same as above */ + sizeof(asn_DEF_nr_DL_TDOA_SignalMeasurementInstances_r17_tags_7) + /sizeof(asn_DEF_nr_DL_TDOA_SignalMeasurementInstances_r17_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_TDOA_SignalMeasurementInstances_r17_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_DL_TDOA_SignalMeasurementInstances_r17_7, + 1, /* Single element */ + &asn_SPC_nr_DL_TDOA_SignalMeasurementInstances_r17_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_DL_TDOA_LocationInformationInstances_r17_9[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_TDOA_LocationInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_TDOA_LocationInformationInstances_r17_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_DL_TDOA_LocationInformationInstances_r17_specs_9 = { + sizeof(struct NR_DL_TDOA_ProvideLocationInformation_r16__ext1__nr_DL_TDOA_LocationInformationInstances_r17), + offsetof(struct NR_DL_TDOA_ProvideLocationInformation_r16__ext1__nr_DL_TDOA_LocationInformationInstances_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_TDOA_LocationInformationInstances_r17_9 = { + "nr-DL-TDOA-LocationInformationInstances-r17", + "nr-DL-TDOA-LocationInformationInstances-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_DL_TDOA_LocationInformationInstances_r17_tags_9, + sizeof(asn_DEF_nr_DL_TDOA_LocationInformationInstances_r17_tags_9) + /sizeof(asn_DEF_nr_DL_TDOA_LocationInformationInstances_r17_tags_9[0]) - 1, /* 1 */ + asn_DEF_nr_DL_TDOA_LocationInformationInstances_r17_tags_9, /* Same as above */ + sizeof(asn_DEF_nr_DL_TDOA_LocationInformationInstances_r17_tags_9) + /sizeof(asn_DEF_nr_DL_TDOA_LocationInformationInstances_r17_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_TDOA_LocationInformationInstances_r17_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_DL_TDOA_LocationInformationInstances_r17_9, + 1, /* Single element */ + &asn_SPC_nr_DL_TDOA_LocationInformationInstances_r17_specs_9 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_6[] = { + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_ProvideLocationInformation_r16__ext1, nr_DL_TDOA_SignalMeasurementInstances_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_nr_DL_TDOA_SignalMeasurementInstances_r17_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_TDOA_SignalMeasurementInstances_r17_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_TDOA_SignalMeasurementInstances_r17_constraint_6 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-SignalMeasurementInstances-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_ProvideLocationInformation_r16__ext1, nr_DL_TDOA_LocationInformationInstances_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_nr_DL_TDOA_LocationInformationInstances_r17_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_TDOA_LocationInformationInstances_r17_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_TDOA_LocationInformationInstances_r17_constraint_6 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-LocationInformationInstances-r17" + }, +}; +static const int asn_MAP_ext1_oms_6[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-TDOA-SignalMeasurementInstances-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-DL-TDOA-LocationInformationInstances-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = { + sizeof(struct NR_DL_TDOA_ProvideLocationInformation_r16__ext1), + offsetof(struct NR_DL_TDOA_ProvideLocationInformation_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_6, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_6, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_6 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_6, + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_6, /* Same as above */ + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_6, + 2, /* Elements count */ + &asn_SPC_ext1_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_TDOA_ProvideLocationInformation_r16_1[] = { + { ATF_POINTER, 4, offsetof(struct NR_DL_TDOA_ProvideLocationInformation_r16, nr_DL_TDOA_SignalMeasurementInformation_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-SignalMeasurementInformation-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_ProvideLocationInformation_r16, nr_dl_tdoa_LocationInformation_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_TDOA_LocationInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-dl-tdoa-LocationInformation-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_ProvideLocationInformation_r16, nr_DL_TDOA_Error_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_NR_DL_TDOA_Error_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-Error-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_ProvideLocationInformation_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext1_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_DL_TDOA_ProvideLocationInformation_r16_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_ProvideLocationInformation_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-TDOA-SignalMeasurementInformation-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-dl-tdoa-LocationInformation-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-TDOA-Error-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_ProvideLocationInformation_r16_specs_1 = { + sizeof(struct NR_DL_TDOA_ProvideLocationInformation_r16), + offsetof(struct NR_DL_TDOA_ProvideLocationInformation_r16, _asn_ctx), + asn_MAP_NR_DL_TDOA_ProvideLocationInformation_r16_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_NR_DL_TDOA_ProvideLocationInformation_r16_oms_1, /* Optional members */ + 3, 1, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16 = { + "NR-DL-TDOA-ProvideLocationInformation-r16", + "NR-DL-TDOA-ProvideLocationInformation-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16_tags_1, + sizeof(asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_TDOA_ProvideLocationInformation_r16_1, + 4, /* Elements count */ + &asn_SPC_NR_DL_TDOA_ProvideLocationInformation_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-TDOA-ProvideLocationInformation-r16.h b/asn.1/lpp_generated/NR-DL-TDOA-ProvideLocationInformation-r16.h new file mode 100644 index 00000000..f83ff1c7 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-ProvideLocationInformation-r16.h @@ -0,0 +1,69 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_TDOA_ProvideLocationInformation_r16_H_ +#define _NR_DL_TDOA_ProvideLocationInformation_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_DL_TDOA_SignalMeasurementInformation_r16; +struct NR_DL_TDOA_LocationInformation_r16; +struct NR_DL_TDOA_Error_r16; + +/* NR-DL-TDOA-ProvideLocationInformation-r16 */ +typedef struct NR_DL_TDOA_ProvideLocationInformation_r16 { + struct NR_DL_TDOA_SignalMeasurementInformation_r16 *nr_DL_TDOA_SignalMeasurementInformation_r16; /* OPTIONAL */ + struct NR_DL_TDOA_LocationInformation_r16 *nr_dl_tdoa_LocationInformation_r16; /* OPTIONAL */ + struct NR_DL_TDOA_Error_r16 *nr_DL_TDOA_Error_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_TDOA_ProvideLocationInformation_r16__ext1 { + struct NR_DL_TDOA_ProvideLocationInformation_r16__ext1__nr_DL_TDOA_SignalMeasurementInstances_r17 { + A_SEQUENCE_OF(struct NR_DL_TDOA_SignalMeasurementInformation_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_DL_TDOA_SignalMeasurementInstances_r17; + struct NR_DL_TDOA_ProvideLocationInformation_r16__ext1__nr_DL_TDOA_LocationInformationInstances_r17 { + A_SEQUENCE_OF(struct NR_DL_TDOA_LocationInformation_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_DL_TDOA_LocationInformationInstances_r17; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_TDOA_ProvideLocationInformation_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_ProvideLocationInformation_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_ProvideLocationInformation_r16_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_TDOA_ProvideLocationInformation_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-TDOA-ReportConfig-r16.c b/asn.1/lpp_generated/NR-DL-TDOA-ReportConfig-r16.c new file mode 100644 index 00000000..614987b5 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-ReportConfig-r16.c @@ -0,0 +1,571 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-TDOA-ReportConfig-r16.h" + +#include "NR-DL-PRS-MeasurementTimeWindowsConfig-r18.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_timingReportingGranularityFactorExt_r18_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -6L && value <= -1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_maxDL_PRS_RSTD_MeasurementsPerTRP_Pair_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 4L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_timingReportingGranularityFactor_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 5L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_reducedDL_PRS_ProcessingSamples_r17_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_lowerRxBeamSweepingFactor_FR2_r17_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_timingReportingGranularityFactorExt_r18_constr_20 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, -6, -1 } /* (-6..-1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxDL_PRS_RSTD_MeasurementsPerTRP_Pair_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (1..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_timingReportingGranularityFactor_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_value2enum_6[] = { + { 0, 2, "n0" }, + { 1, 2, "n2" }, + { 2, 2, "n3" }, + { 3, 2, "n4" }, + { 4, 2, "n6" }, + { 5, 2, "n8" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_enum2value_6[] = { + 0, /* n0(0) */ + 1, /* n2(1) */ + 2, /* n3(2) */ + 3, /* n4(3) */ + 4, /* n6(4) */ + 5 /* n8(5) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_specs_6 = { + asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_enum2value_6, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 7, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_6 = { + "measureSameDL-PRS-ResourceWithDifferentRxTEGs-r17", + "measureSameDL-PRS-ResourceWithDifferentRxTEGs-r17", + &asn_OP_NativeEnumerated, + asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_6, + sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_6) + /sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_6[0]) - 1, /* 1 */ + asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_6, /* Same as above */ + sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_6) + /sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_specs_6 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_reducedDL_PRS_ProcessingSamples_r17_value2enum_14[] = { + { 0, 9, "requested" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_reducedDL_PRS_ProcessingSamples_r17_enum2value_14[] = { + 0 /* requested(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_reducedDL_PRS_ProcessingSamples_r17_specs_14 = { + asn_MAP_reducedDL_PRS_ProcessingSamples_r17_value2enum_14, /* "tag" => N; sorted by tag */ + asn_MAP_reducedDL_PRS_ProcessingSamples_r17_enum2value_14, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_14[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_reducedDL_PRS_ProcessingSamples_r17_14 = { + "reducedDL-PRS-ProcessingSamples-r17", + "reducedDL-PRS-ProcessingSamples-r17", + &asn_OP_NativeEnumerated, + asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_14, + sizeof(asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_14) + /sizeof(asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_14[0]) - 1, /* 1 */ + asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_14, /* Same as above */ + sizeof(asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_14) + /sizeof(asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_14[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_reducedDL_PRS_ProcessingSamples_r17_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_reducedDL_PRS_ProcessingSamples_r17_specs_14 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_lowerRxBeamSweepingFactor_FR2_r17_value2enum_17[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_lowerRxBeamSweepingFactor_FR2_r17_enum2value_17[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_lowerRxBeamSweepingFactor_FR2_r17_specs_17 = { + asn_MAP_lowerRxBeamSweepingFactor_FR2_r17_value2enum_17, /* "tag" => N; sorted by tag */ + asn_MAP_lowerRxBeamSweepingFactor_FR2_r17_enum2value_17, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_17 = { + "lowerRxBeamSweepingFactor-FR2-r17", + "lowerRxBeamSweepingFactor-FR2-r17", + &asn_OP_NativeEnumerated, + asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_17, + sizeof(asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_17) + /sizeof(asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_17[0]) - 1, /* 1 */ + asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_17, /* Same as above */ + sizeof(asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_17) + /sizeof(asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_lowerRxBeamSweepingFactor_FR2_r17_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_lowerRxBeamSweepingFactor_FR2_r17_specs_17 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_ReportConfig_r16__ext1, measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "measureSameDL-PRS-ResourceWithDifferentRxTEGs-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_ReportConfig_r16__ext1, reducedDL_PRS_ProcessingSamples_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_reducedDL_PRS_ProcessingSamples_r17_14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reducedDL-PRS-ProcessingSamples-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_ReportConfig_r16__ext1, lowerRxBeamSweepingFactor_FR2_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lowerRxBeamSweepingFactor-FR2-r17" + }, +}; +static const int asn_MAP_ext1_oms_5[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* measureSameDL-PRS-ResourceWithDifferentRxTEGs-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* reducedDL-PRS-ProcessingSamples-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* lowerRxBeamSweepingFactor-FR2-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct NR_DL_TDOA_ReportConfig_r16__ext1), + offsetof(struct NR_DL_TDOA_ReportConfig_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 3, /* Count of tags in the map */ + asn_MAP_ext1_oms_5, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 3, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_19[] = { + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_ReportConfig_r16__ext2, timingReportingGranularityFactorExt_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_timingReportingGranularityFactorExt_r18_constr_20, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_timingReportingGranularityFactorExt_r18_constraint_19 + }, + 0, 0, /* No default value */ + "timingReportingGranularityFactorExt-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_ReportConfig_r16__ext2, nr_DL_PRS_MeasurementTimeWindowsConfig_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfig_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-MeasurementTimeWindowsConfig-r18" + }, +}; +static const int asn_MAP_ext2_oms_19[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_19[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_19[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* timingReportingGranularityFactorExt-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-DL-PRS-MeasurementTimeWindowsConfig-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_19 = { + sizeof(struct NR_DL_TDOA_ReportConfig_r16__ext2), + offsetof(struct NR_DL_TDOA_ReportConfig_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_19, + 2, /* Count of tags in the map */ + asn_MAP_ext2_oms_19, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_19 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_19, + sizeof(asn_DEF_ext2_tags_19) + /sizeof(asn_DEF_ext2_tags_19[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_19, /* Same as above */ + sizeof(asn_DEF_ext2_tags_19) + /sizeof(asn_DEF_ext2_tags_19[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_19, + 2, /* Elements count */ + &asn_SPC_ext2_specs_19 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_TDOA_ReportConfig_r16_1[] = { + { ATF_POINTER, 4, offsetof(struct NR_DL_TDOA_ReportConfig_r16, maxDL_PRS_RSTD_MeasurementsPerTRP_Pair_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxDL_PRS_RSTD_MeasurementsPerTRP_Pair_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxDL_PRS_RSTD_MeasurementsPerTRP_Pair_r16_constraint_1 + }, + 0, 0, /* No default value */ + "maxDL-PRS-RSTD-MeasurementsPerTRP-Pair-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_ReportConfig_r16, timingReportingGranularityFactor_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_timingReportingGranularityFactor_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_timingReportingGranularityFactor_r16_constraint_1 + }, + 0, 0, /* No default value */ + "timingReportingGranularityFactor-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_ReportConfig_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_ReportConfig_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext2_19, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_NR_DL_TDOA_ReportConfig_r16_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_ReportConfig_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_ReportConfig_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxDL-PRS-RSTD-MeasurementsPerTRP-Pair-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* timingReportingGranularityFactor-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_ReportConfig_r16_specs_1 = { + sizeof(struct NR_DL_TDOA_ReportConfig_r16), + offsetof(struct NR_DL_TDOA_ReportConfig_r16, _asn_ctx), + asn_MAP_NR_DL_TDOA_ReportConfig_r16_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_NR_DL_TDOA_ReportConfig_r16_oms_1, /* Optional members */ + 2, 2, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_ReportConfig_r16 = { + "NR-DL-TDOA-ReportConfig-r16", + "NR-DL-TDOA-ReportConfig-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_TDOA_ReportConfig_r16_tags_1, + sizeof(asn_DEF_NR_DL_TDOA_ReportConfig_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_ReportConfig_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_TDOA_ReportConfig_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_TDOA_ReportConfig_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_ReportConfig_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_TDOA_ReportConfig_r16_1, + 4, /* Elements count */ + &asn_SPC_NR_DL_TDOA_ReportConfig_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-TDOA-ReportConfig-r16.h b/asn.1/lpp_generated/NR-DL-TDOA-ReportConfig-r16.h new file mode 100644 index 00000000..bd32156c --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-ReportConfig-r16.h @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_TDOA_ReportConfig_r16_H_ +#define _NR_DL_TDOA_ReportConfig_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_TDOA_ReportConfig_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17 { + NR_DL_TDOA_ReportConfig_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_n0 = 0, + NR_DL_TDOA_ReportConfig_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_n2 = 1, + NR_DL_TDOA_ReportConfig_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_n3 = 2, + NR_DL_TDOA_ReportConfig_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_n4 = 3, + NR_DL_TDOA_ReportConfig_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_n6 = 4, + NR_DL_TDOA_ReportConfig_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_n8 = 5 + /* + * Enumeration is extensible + */ +} e_NR_DL_TDOA_ReportConfig_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17; +typedef enum NR_DL_TDOA_ReportConfig_r16__ext1__reducedDL_PRS_ProcessingSamples_r17 { + NR_DL_TDOA_ReportConfig_r16__ext1__reducedDL_PRS_ProcessingSamples_r17_requested = 0 + /* + * Enumeration is extensible + */ +} e_NR_DL_TDOA_ReportConfig_r16__ext1__reducedDL_PRS_ProcessingSamples_r17; +typedef enum NR_DL_TDOA_ReportConfig_r16__ext1__lowerRxBeamSweepingFactor_FR2_r17 { + NR_DL_TDOA_ReportConfig_r16__ext1__lowerRxBeamSweepingFactor_FR2_r17_requested = 0 +} e_NR_DL_TDOA_ReportConfig_r16__ext1__lowerRxBeamSweepingFactor_FR2_r17; + +/* Forward declarations */ +struct NR_DL_PRS_MeasurementTimeWindowsConfig_r18; + +/* NR-DL-TDOA-ReportConfig-r16 */ +typedef struct NR_DL_TDOA_ReportConfig_r16 { + long *maxDL_PRS_RSTD_MeasurementsPerTRP_Pair_r16; /* OPTIONAL */ + long *timingReportingGranularityFactor_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_TDOA_ReportConfig_r16__ext1 { + long *measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17; /* OPTIONAL */ + long *reducedDL_PRS_ProcessingSamples_r17; /* OPTIONAL */ + long *lowerRxBeamSweepingFactor_FR2_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct NR_DL_TDOA_ReportConfig_r16__ext2 { + long *timingReportingGranularityFactorExt_r18; /* OPTIONAL */ + struct NR_DL_PRS_MeasurementTimeWindowsConfig_r18 *nr_DL_PRS_MeasurementTimeWindowsConfig_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_TDOA_ReportConfig_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_6; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_reducedDL_PRS_ProcessingSamples_r17_14; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_17; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_ReportConfig_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_ReportConfig_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_ReportConfig_r16_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_TDOA_ReportConfig_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-TDOA-RequestAssistanceData-r16.c b/asn.1/lpp_generated/NR-DL-TDOA-RequestAssistanceData-r16.c new file mode 100644 index 00000000..688afb2d --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-RequestAssistanceData-r16.c @@ -0,0 +1,542 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-TDOA-RequestAssistanceData-r16.h" + +#include "NR-On-Demand-DL-PRS-Request-r17.h" +#include "NR-PeriodicAssistDataReq-r18.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_nr_PosCalcAssistanceRequest_r17_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_IntegrityAssistanceRequest_r18_constraint_22(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_AdType_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_pre_configured_AssistanceDataRequest_r17_constr_20 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_PosCalcAssistanceRequest_r17_constr_8 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_IntegrityAssistanceRequest_r18_constr_24 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_AdType_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_value2enum_17[] = { + { 0, 4, "eAoD" }, + { 1, 4, "eAoA" } +}; +static const unsigned int asn_MAP_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_enum2value_17[] = { + 1, /* eAoA(1) */ + 0 /* eAoD(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_specs_17 = { + asn_MAP_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_value2enum_17, /* "tag" => N; sorted by tag */ + asn_MAP_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_enum2value_17, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_17 = { + "nr-DL-PRS-ExpectedAoD-or-AoA-Request-r17", + "nr-DL-PRS-ExpectedAoD-or-AoA-Request-r17", + &asn_OP_NativeEnumerated, + asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_17, + sizeof(asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_17) + /sizeof(asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_17[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_17, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_17) + /sizeof(asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_specs_17 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_pre_configured_AssistanceDataRequest_r17_value2enum_20[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_pre_configured_AssistanceDataRequest_r17_enum2value_20[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_pre_configured_AssistanceDataRequest_r17_specs_20 = { + asn_MAP_pre_configured_AssistanceDataRequest_r17_value2enum_20, /* "tag" => N; sorted by tag */ + asn_MAP_pre_configured_AssistanceDataRequest_r17_enum2value_20, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_20[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_pre_configured_AssistanceDataRequest_r17_20 = { + "pre-configured-AssistanceDataRequest-r17", + "pre-configured-AssistanceDataRequest-r17", + &asn_OP_NativeEnumerated, + asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_20, + sizeof(asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_20) + /sizeof(asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_20[0]) - 1, /* 1 */ + asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_20, /* Same as above */ + sizeof(asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_20) + /sizeof(asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_20[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_pre_configured_AssistanceDataRequest_r17_constr_20, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_pre_configured_AssistanceDataRequest_r17_specs_20 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 4, offsetof(struct NR_DL_TDOA_RequestAssistanceData_r16__ext1, nr_PosCalcAssistanceRequest_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_PosCalcAssistanceRequest_r17_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_PosCalcAssistanceRequest_r17_constraint_7 + }, + 0, 0, /* No default value */ + "nr-PosCalcAssistanceRequest-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_RequestAssistanceData_r16__ext1, nr_on_demand_DL_PRS_Request_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_On_Demand_DL_PRS_Request_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-on-demand-DL-PRS-Request-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_RequestAssistanceData_r16__ext1, nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ExpectedAoD-or-AoA-Request-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_RequestAssistanceData_r16__ext1, pre_configured_AssistanceDataRequest_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_pre_configured_AssistanceDataRequest_r17_20, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pre-configured-AssistanceDataRequest-r17" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-PosCalcAssistanceRequest-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-on-demand-DL-PRS-Request-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-PRS-ExpectedAoD-or-AoA-Request-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* pre-configured-AssistanceDataRequest-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct NR_DL_TDOA_RequestAssistanceData_r16__ext1), + offsetof(struct NR_DL_TDOA_RequestAssistanceData_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 4, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 4, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_22[] = { + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_RequestAssistanceData_r16__ext2, nr_PeriodicAssistDataReq_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PeriodicAssistDataReq_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PeriodicAssistDataReq-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_RequestAssistanceData_r16__ext2, nr_IntegrityAssistanceRequest_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_IntegrityAssistanceRequest_r18_constr_24, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_IntegrityAssistanceRequest_r18_constraint_22 + }, + 0, 0, /* No default value */ + "nr-IntegrityAssistanceRequest-r18" + }, +}; +static const int asn_MAP_ext2_oms_22[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_22[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_22[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-PeriodicAssistDataReq-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-IntegrityAssistanceRequest-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_22 = { + sizeof(struct NR_DL_TDOA_RequestAssistanceData_r16__ext2), + offsetof(struct NR_DL_TDOA_RequestAssistanceData_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_22, + 2, /* Count of tags in the map */ + asn_MAP_ext2_oms_22, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_22 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_22, + sizeof(asn_DEF_ext2_tags_22) + /sizeof(asn_DEF_ext2_tags_22[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_22, /* Same as above */ + sizeof(asn_DEF_ext2_tags_22) + /sizeof(asn_DEF_ext2_tags_22[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_22, + 2, /* Elements count */ + &asn_SPC_ext2_specs_22 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_TDOA_RequestAssistanceData_r16_1[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_RequestAssistanceData_r16, nr_PhysCellID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_RequestAssistanceData_r16, nr_AdType_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_AdType_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_AdType_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-AdType-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_RequestAssistanceData_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_RequestAssistanceData_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext2_22, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_NR_DL_TDOA_RequestAssistanceData_r16_oms_1[] = { 0, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_RequestAssistanceData_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-PhysCellID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-AdType-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_RequestAssistanceData_r16_specs_1 = { + sizeof(struct NR_DL_TDOA_RequestAssistanceData_r16), + offsetof(struct NR_DL_TDOA_RequestAssistanceData_r16, _asn_ctx), + asn_MAP_NR_DL_TDOA_RequestAssistanceData_r16_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_NR_DL_TDOA_RequestAssistanceData_r16_oms_1, /* Optional members */ + 1, 2, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16 = { + "NR-DL-TDOA-RequestAssistanceData-r16", + "NR-DL-TDOA-RequestAssistanceData-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16_tags_1, + sizeof(asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_TDOA_RequestAssistanceData_r16_1, + 4, /* Elements count */ + &asn_SPC_NR_DL_TDOA_RequestAssistanceData_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-TDOA-RequestAssistanceData-r16.h b/asn.1/lpp_generated/NR-DL-TDOA-RequestAssistanceData-r16.h new file mode 100644 index 00000000..9b747a88 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-RequestAssistanceData-r16.h @@ -0,0 +1,99 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_TDOA_RequestAssistanceData_r16_H_ +#define _NR_DL_TDOA_RequestAssistanceData_r16_H_ + + +#include + +/* Including external dependencies */ +#include "NR-PhysCellID-r16.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_TDOA_RequestAssistanceData_r16__nr_AdType_r16 { + NR_DL_TDOA_RequestAssistanceData_r16__nr_AdType_r16_dl_prs = 0, + NR_DL_TDOA_RequestAssistanceData_r16__nr_AdType_r16_posCalc = 1 +} e_NR_DL_TDOA_RequestAssistanceData_r16__nr_AdType_r16; +typedef enum NR_DL_TDOA_RequestAssistanceData_r16__ext1__nr_PosCalcAssistanceRequest_r17 { + NR_DL_TDOA_RequestAssistanceData_r16__ext1__nr_PosCalcAssistanceRequest_r17_trpLoc = 0, + NR_DL_TDOA_RequestAssistanceData_r16__ext1__nr_PosCalcAssistanceRequest_r17_beamInfo = 1, + NR_DL_TDOA_RequestAssistanceData_r16__ext1__nr_PosCalcAssistanceRequest_r17_rtdInfo = 2, + NR_DL_TDOA_RequestAssistanceData_r16__ext1__nr_PosCalcAssistanceRequest_r17_losNlosInfo = 3, + NR_DL_TDOA_RequestAssistanceData_r16__ext1__nr_PosCalcAssistanceRequest_r17_trpTEG_Info = 4, + NR_DL_TDOA_RequestAssistanceData_r16__ext1__nr_PosCalcAssistanceRequest_r17_nr_IntegrityBounds_r18 = 5, + NR_DL_TDOA_RequestAssistanceData_r16__ext1__nr_PosCalcAssistanceRequest_r17_pruInfo_r18 = 6 +} e_NR_DL_TDOA_RequestAssistanceData_r16__ext1__nr_PosCalcAssistanceRequest_r17; +typedef enum NR_DL_TDOA_RequestAssistanceData_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17 { + NR_DL_TDOA_RequestAssistanceData_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_eAoD = 0, + NR_DL_TDOA_RequestAssistanceData_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_eAoA = 1 +} e_NR_DL_TDOA_RequestAssistanceData_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17; +typedef enum NR_DL_TDOA_RequestAssistanceData_r16__ext1__pre_configured_AssistanceDataRequest_r17 { + NR_DL_TDOA_RequestAssistanceData_r16__ext1__pre_configured_AssistanceDataRequest_r17_true = 0 +} e_NR_DL_TDOA_RequestAssistanceData_r16__ext1__pre_configured_AssistanceDataRequest_r17; +typedef enum NR_DL_TDOA_RequestAssistanceData_r16__ext2__nr_IntegrityAssistanceRequest_r18 { + NR_DL_TDOA_RequestAssistanceData_r16__ext2__nr_IntegrityAssistanceRequest_r18_serviceParameters = 0, + NR_DL_TDOA_RequestAssistanceData_r16__ext2__nr_IntegrityAssistanceRequest_r18_serviceAlert = 1, + NR_DL_TDOA_RequestAssistanceData_r16__ext2__nr_IntegrityAssistanceRequest_r18_riskParameters = 2, + NR_DL_TDOA_RequestAssistanceData_r16__ext2__nr_IntegrityAssistanceRequest_r18_integrityParaTRP_Loc = 3, + NR_DL_TDOA_RequestAssistanceData_r16__ext2__nr_IntegrityAssistanceRequest_r18_integrityParaBeamInfo = 4, + NR_DL_TDOA_RequestAssistanceData_r16__ext2__nr_IntegrityAssistanceRequest_r18_integrityParaRTD_Info = 5 +} e_NR_DL_TDOA_RequestAssistanceData_r16__ext2__nr_IntegrityAssistanceRequest_r18; + +/* Forward declarations */ +struct NR_On_Demand_DL_PRS_Request_r17; +struct NR_PeriodicAssistDataReq_r18; + +/* NR-DL-TDOA-RequestAssistanceData-r16 */ +typedef struct NR_DL_TDOA_RequestAssistanceData_r16 { + NR_PhysCellID_r16_t *nr_PhysCellID_r16; /* OPTIONAL */ + BIT_STRING_t nr_AdType_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_TDOA_RequestAssistanceData_r16__ext1 { + BIT_STRING_t *nr_PosCalcAssistanceRequest_r17; /* OPTIONAL */ + struct NR_On_Demand_DL_PRS_Request_r17 *nr_on_demand_DL_PRS_Request_r17; /* OPTIONAL */ + long *nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17; /* OPTIONAL */ + long *pre_configured_AssistanceDataRequest_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct NR_DL_TDOA_RequestAssistanceData_r16__ext2 { + struct NR_PeriodicAssistDataReq_r18 *nr_PeriodicAssistDataReq_r18; /* OPTIONAL */ + BIT_STRING_t *nr_IntegrityAssistanceRequest_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_TDOA_RequestAssistanceData_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_17; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_pre_configured_AssistanceDataRequest_r17_20; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_RequestAssistanceData_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_RequestAssistanceData_r16_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_TDOA_RequestAssistanceData_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-TDOA-RequestCapabilities-r16.c b/asn.1/lpp_generated/NR-DL-TDOA-RequestCapabilities-r16.c new file mode 100644 index 00000000..f8b30b44 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-RequestCapabilities-r16.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-TDOA-RequestCapabilities-r16.h" + +static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_RequestCapabilities_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_RequestCapabilities_r16_specs_1 = { + sizeof(struct NR_DL_TDOA_RequestCapabilities_r16), + offsetof(struct NR_DL_TDOA_RequestCapabilities_r16, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_RequestCapabilities_r16 = { + "NR-DL-TDOA-RequestCapabilities-r16", + "NR-DL-TDOA-RequestCapabilities-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_TDOA_RequestCapabilities_r16_tags_1, + sizeof(asn_DEF_NR_DL_TDOA_RequestCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_RequestCapabilities_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_TDOA_RequestCapabilities_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_TDOA_RequestCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_RequestCapabilities_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_NR_DL_TDOA_RequestCapabilities_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-DL-TDOA-RequestCapabilities-r16.h b/asn.1/lpp_generated/NR-DL-TDOA-RequestCapabilities-r16.h similarity index 78% rename from asn.1/generated/NR-DL-TDOA-RequestCapabilities-r16.h rename to asn.1/lpp_generated/NR-DL-TDOA-RequestCapabilities-r16.h index 9d3199c4..5a28792a 100644 --- a/asn.1/generated/NR-DL-TDOA-RequestCapabilities-r16.h +++ b/asn.1/lpp_generated/NR-DL-TDOA-RequestCapabilities-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_DL_TDOA_RequestCapabilities_r16_H_ diff --git a/asn.1/lpp_generated/NR-DL-TDOA-RequestLocationInformation-r16.c b/asn.1/lpp_generated/NR-DL-TDOA-RequestLocationInformation-r16.c new file mode 100644 index 00000000..16923285 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-RequestLocationInformation-r16.c @@ -0,0 +1,1284 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-TDOA-RequestLocationInformation-r16.h" + +#include "NR-DL-TDOA-ReportConfig-r16.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_NativeInteger_constraint_27(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_constraint_26(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 2UL && size <= 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_RequestedMeasurements_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_RstdMeasurementInfoRequest_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_additionalPaths_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_UE_RxTEG_Request_r17_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_additionalPathsExt_r17_constr_20 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_additionalPathsDL_PRS_RSRP_Request_r17_constr_22 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_multiMeasInSameReport_r17_constr_24 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_28 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_constr_27 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_fr1_constr_31 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_fr2_constr_36 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_RxHoppingTotalBandwidth_r18_constr_30 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_RSCPD_Request_r18_constr_40 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_constr_27 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_RequestedMeasurements_r16_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_nr_DL_PRS_RstdMeasurementInfoRequest_r16_value2enum_2[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_nr_DL_PRS_RstdMeasurementInfoRequest_r16_enum2value_2[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_DL_PRS_RstdMeasurementInfoRequest_r16_specs_2 = { + asn_MAP_nr_DL_PRS_RstdMeasurementInfoRequest_r16_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_nr_DL_PRS_RstdMeasurementInfoRequest_r16_enum2value_2, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_2 = { + "nr-DL-PRS-RstdMeasurementInfoRequest-r16", + "nr-DL-PRS-RstdMeasurementInfoRequest-r16", + &asn_OP_NativeEnumerated, + asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_tags_2, + sizeof(asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_tags_2) + /sizeof(asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_tags_2) + /sizeof(asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_RstdMeasurementInfoRequest_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_DL_PRS_RstdMeasurementInfoRequest_r16_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_additionalPaths_r16_value2enum_10[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_additionalPaths_r16_enum2value_10[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_additionalPaths_r16_specs_10 = { + asn_MAP_additionalPaths_r16_value2enum_10, /* "tag" => N; sorted by tag */ + asn_MAP_additionalPaths_r16_enum2value_10, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_additionalPaths_r16_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_additionalPaths_r16_10 = { + "additionalPaths-r16", + "additionalPaths-r16", + &asn_OP_NativeEnumerated, + asn_DEF_additionalPaths_r16_tags_10, + sizeof(asn_DEF_additionalPaths_r16_tags_10) + /sizeof(asn_DEF_additionalPaths_r16_tags_10[0]) - 1, /* 1 */ + asn_DEF_additionalPaths_r16_tags_10, /* Same as above */ + sizeof(asn_DEF_additionalPaths_r16_tags_10) + /sizeof(asn_DEF_additionalPaths_r16_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_additionalPaths_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_additionalPaths_r16_specs_10 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_UE_RxTEG_Request_r17_value2enum_14[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_nr_UE_RxTEG_Request_r17_enum2value_14[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_UE_RxTEG_Request_r17_specs_14 = { + asn_MAP_nr_UE_RxTEG_Request_r17_value2enum_14, /* "tag" => N; sorted by tag */ + asn_MAP_nr_UE_RxTEG_Request_r17_enum2value_14, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_UE_RxTEG_Request_r17_tags_14[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_UE_RxTEG_Request_r17_14 = { + "nr-UE-RxTEG-Request-r17", + "nr-UE-RxTEG-Request-r17", + &asn_OP_NativeEnumerated, + asn_DEF_nr_UE_RxTEG_Request_r17_tags_14, + sizeof(asn_DEF_nr_UE_RxTEG_Request_r17_tags_14) + /sizeof(asn_DEF_nr_UE_RxTEG_Request_r17_tags_14[0]) - 1, /* 1 */ + asn_DEF_nr_UE_RxTEG_Request_r17_tags_14, /* Same as above */ + sizeof(asn_DEF_nr_UE_RxTEG_Request_r17_tags_14) + /sizeof(asn_DEF_nr_UE_RxTEG_Request_r17_tags_14[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_UE_RxTEG_Request_r17_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_UE_RxTEG_Request_r17_specs_14 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_los_nlos_IndicatorRequest_r17_16[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext1__nr_los_nlos_IndicatorRequest_r17, type_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_IndicatorType1_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "type-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext1__nr_los_nlos_IndicatorRequest_r17, granularity_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_IndicatorGranularity1_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "granularity-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_16[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_los_nlos_IndicatorRequest_r17_tag2el_16[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* type-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* granularity-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_nr_los_nlos_IndicatorRequest_r17_specs_16 = { + sizeof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext1__nr_los_nlos_IndicatorRequest_r17), + offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext1__nr_los_nlos_IndicatorRequest_r17, _asn_ctx), + asn_MAP_nr_los_nlos_IndicatorRequest_r17_tag2el_16, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_los_nlos_IndicatorRequest_r17_16 = { + "nr-los-nlos-IndicatorRequest-r17", + "nr-los-nlos-IndicatorRequest-r17", + &asn_OP_SEQUENCE, + asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_16, + sizeof(asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_16) + /sizeof(asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_16[0]) - 1, /* 1 */ + asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_16, /* Same as above */ + sizeof(asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_16) + /sizeof(asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_16[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_nr_los_nlos_IndicatorRequest_r17_16, + 2, /* Elements count */ + &asn_SPC_nr_los_nlos_IndicatorRequest_r17_specs_16 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_additionalPathsExt_r17_value2enum_20[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_additionalPathsExt_r17_enum2value_20[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_additionalPathsExt_r17_specs_20 = { + asn_MAP_additionalPathsExt_r17_value2enum_20, /* "tag" => N; sorted by tag */ + asn_MAP_additionalPathsExt_r17_enum2value_20, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_additionalPathsExt_r17_tags_20[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_additionalPathsExt_r17_20 = { + "additionalPathsExt-r17", + "additionalPathsExt-r17", + &asn_OP_NativeEnumerated, + asn_DEF_additionalPathsExt_r17_tags_20, + sizeof(asn_DEF_additionalPathsExt_r17_tags_20) + /sizeof(asn_DEF_additionalPathsExt_r17_tags_20[0]) - 1, /* 1 */ + asn_DEF_additionalPathsExt_r17_tags_20, /* Same as above */ + sizeof(asn_DEF_additionalPathsExt_r17_tags_20) + /sizeof(asn_DEF_additionalPathsExt_r17_tags_20[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_additionalPathsExt_r17_constr_20, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_additionalPathsExt_r17_specs_20 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_additionalPathsDL_PRS_RSRP_Request_r17_value2enum_22[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_additionalPathsDL_PRS_RSRP_Request_r17_enum2value_22[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_additionalPathsDL_PRS_RSRP_Request_r17_specs_22 = { + asn_MAP_additionalPathsDL_PRS_RSRP_Request_r17_value2enum_22, /* "tag" => N; sorted by tag */ + asn_MAP_additionalPathsDL_PRS_RSRP_Request_r17_enum2value_22, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_tags_22[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_22 = { + "additionalPathsDL-PRS-RSRP-Request-r17", + "additionalPathsDL-PRS-RSRP-Request-r17", + &asn_OP_NativeEnumerated, + asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_tags_22, + sizeof(asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_tags_22) + /sizeof(asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_tags_22[0]) - 1, /* 1 */ + asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_tags_22, /* Same as above */ + sizeof(asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_tags_22) + /sizeof(asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_tags_22[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_additionalPathsDL_PRS_RSRP_Request_r17_constr_22, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_additionalPathsDL_PRS_RSRP_Request_r17_specs_22 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_multiMeasInSameReport_r17_value2enum_24[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_multiMeasInSameReport_r17_enum2value_24[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_multiMeasInSameReport_r17_specs_24 = { + asn_MAP_multiMeasInSameReport_r17_value2enum_24, /* "tag" => N; sorted by tag */ + asn_MAP_multiMeasInSameReport_r17_enum2value_24, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_multiMeasInSameReport_r17_tags_24[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_multiMeasInSameReport_r17_24 = { + "multiMeasInSameReport-r17", + "multiMeasInSameReport-r17", + &asn_OP_NativeEnumerated, + asn_DEF_multiMeasInSameReport_r17_tags_24, + sizeof(asn_DEF_multiMeasInSameReport_r17_tags_24) + /sizeof(asn_DEF_multiMeasInSameReport_r17_tags_24[0]) - 1, /* 1 */ + asn_DEF_multiMeasInSameReport_r17_tags_24, /* Same as above */ + sizeof(asn_DEF_multiMeasInSameReport_r17_tags_24) + /sizeof(asn_DEF_multiMeasInSameReport_r17_tags_24[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_multiMeasInSameReport_r17_constr_24, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_multiMeasInSameReport_r17_specs_24 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_13[] = { + { ATF_POINTER, 5, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext1, nr_UE_RxTEG_Request_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_UE_RxTEG_Request_r17_14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UE-RxTEG-Request-r17" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext1, nr_los_nlos_IndicatorRequest_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_nr_los_nlos_IndicatorRequest_r17_16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-los-nlos-IndicatorRequest-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext1, additionalPathsExt_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_additionalPathsExt_r17_20, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "additionalPathsExt-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext1, additionalPathsDL_PRS_RSRP_Request_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_22, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "additionalPathsDL-PRS-RSRP-Request-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext1, multiMeasInSameReport_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_multiMeasInSameReport_r17_24, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "multiMeasInSameReport-r17" + }, +}; +static const int asn_MAP_ext1_oms_13[] = { 0, 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_13[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-UE-RxTEG-Request-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-los-nlos-IndicatorRequest-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* additionalPathsExt-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* additionalPathsDL-PRS-RSRP-Request-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* multiMeasInSameReport-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_13 = { + sizeof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext1), + offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_13, + 5, /* Count of tags in the map */ + asn_MAP_ext1_oms_13, /* Optional members */ + 5, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_13 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_13, + sizeof(asn_DEF_ext1_tags_13) + /sizeof(asn_DEF_ext1_tags_13[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_13, /* Same as above */ + sizeof(asn_DEF_ext1_tags_13) + /sizeof(asn_DEF_ext1_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_13, + 5, /* Elements count */ + &asn_SPC_ext1_specs_13 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_27[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_28, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_NativeInteger_constraint_27 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_tags_27[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_specs_27 = { + sizeof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_JointMeasurementRequestedPFL_List_r18), + offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_JointMeasurementRequestedPFL_List_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_27 = { + "nr-DL-PRS-JointMeasurementRequestedPFL-List-r18", + "nr-DL-PRS-JointMeasurementRequestedPFL-List-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_tags_27, + sizeof(asn_DEF_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_tags_27) + /sizeof(asn_DEF_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_tags_27[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_tags_27, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_tags_27) + /sizeof(asn_DEF_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_tags_27[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_constr_27, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_27, + 1, /* Single element */ + &asn_SPC_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_specs_27 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_fr1_value2enum_31[] = { + { 0, 5, "mhz40" }, + { 1, 5, "mhz50" }, + { 2, 5, "mhz80" }, + { 3, 6, "mhz100" } +}; +static const unsigned int asn_MAP_fr1_enum2value_31[] = { + 3, /* mhz100(3) */ + 0, /* mhz40(0) */ + 1, /* mhz50(1) */ + 2 /* mhz80(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_fr1_specs_31 = { + asn_MAP_fr1_value2enum_31, /* "tag" => N; sorted by tag */ + asn_MAP_fr1_enum2value_31, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_fr1_tags_31[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fr1_31 = { + "fr1", + "fr1", + &asn_OP_NativeEnumerated, + asn_DEF_fr1_tags_31, + sizeof(asn_DEF_fr1_tags_31) + /sizeof(asn_DEF_fr1_tags_31[0]) - 1, /* 1 */ + asn_DEF_fr1_tags_31, /* Same as above */ + sizeof(asn_DEF_fr1_tags_31) + /sizeof(asn_DEF_fr1_tags_31[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_fr1_constr_31, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_fr1_specs_31 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_fr2_value2enum_36[] = { + { 0, 6, "mhz100" }, + { 1, 6, "mhz200" }, + { 2, 6, "mhz400" } +}; +static const unsigned int asn_MAP_fr2_enum2value_36[] = { + 0, /* mhz100(0) */ + 1, /* mhz200(1) */ + 2 /* mhz400(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_fr2_specs_36 = { + asn_MAP_fr2_value2enum_36, /* "tag" => N; sorted by tag */ + asn_MAP_fr2_enum2value_36, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_fr2_tags_36[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fr2_36 = { + "fr2", + "fr2", + &asn_OP_NativeEnumerated, + asn_DEF_fr2_tags_36, + sizeof(asn_DEF_fr2_tags_36) + /sizeof(asn_DEF_fr2_tags_36[0]) - 1, /* 1 */ + asn_DEF_fr2_tags_36, /* Same as above */ + sizeof(asn_DEF_fr2_tags_36) + /sizeof(asn_DEF_fr2_tags_36[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_fr2_constr_36, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_fr2_specs_36 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_DL_PRS_RxHoppingTotalBandwidth_r18_30[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18, choice.fr1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_fr1_31, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fr1" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18, choice.fr2), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_fr2_36, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fr2" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_DL_PRS_RxHoppingTotalBandwidth_r18_tag2el_30[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fr1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* fr2 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nr_DL_PRS_RxHoppingTotalBandwidth_r18_specs_30 = { + sizeof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18), + offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18, _asn_ctx), + offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18, present), + sizeof(((struct NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18 *)0)->present), + asn_MAP_nr_DL_PRS_RxHoppingTotalBandwidth_r18_tag2el_30, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RxHoppingTotalBandwidth_r18_30 = { + "nr-DL-PRS-RxHoppingTotalBandwidth-r18", + "nr-DL-PRS-RxHoppingTotalBandwidth-r18", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_RxHoppingTotalBandwidth_r18_constr_30, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nr_DL_PRS_RxHoppingTotalBandwidth_r18_30, + 2, /* Elements count */ + &asn_SPC_nr_DL_PRS_RxHoppingTotalBandwidth_r18_specs_30 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_DL_PRS_RxHoppingRequest_r18_29[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18, nr_DL_PRS_RxHoppingTotalBandwidth_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nr_DL_PRS_RxHoppingTotalBandwidth_r18_30, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RxHoppingTotalBandwidth-r18" + }, +}; +static const int asn_MAP_nr_DL_PRS_RxHoppingRequest_r18_oms_29[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_29[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_DL_PRS_RxHoppingRequest_r18_tag2el_29[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-DL-PRS-RxHoppingTotalBandwidth-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_nr_DL_PRS_RxHoppingRequest_r18_specs_29 = { + sizeof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18), + offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18, _asn_ctx), + asn_MAP_nr_DL_PRS_RxHoppingRequest_r18_tag2el_29, + 1, /* Count of tags in the map */ + asn_MAP_nr_DL_PRS_RxHoppingRequest_r18_oms_29, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_29 = { + "nr-DL-PRS-RxHoppingRequest-r18", + "nr-DL-PRS-RxHoppingRequest-r18", + &asn_OP_SEQUENCE, + asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_29, + sizeof(asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_29) + /sizeof(asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_29[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_29, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_29) + /sizeof(asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_29[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_nr_DL_PRS_RxHoppingRequest_r18_29, + 1, /* Elements count */ + &asn_SPC_nr_DL_PRS_RxHoppingRequest_r18_specs_29 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_DL_PRS_RSCPD_Request_r18_value2enum_40[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_nr_DL_PRS_RSCPD_Request_r18_enum2value_40[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_DL_PRS_RSCPD_Request_r18_specs_40 = { + asn_MAP_nr_DL_PRS_RSCPD_Request_r18_value2enum_40, /* "tag" => N; sorted by tag */ + asn_MAP_nr_DL_PRS_RSCPD_Request_r18_enum2value_40, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_RSCPD_Request_r18_tags_40[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RSCPD_Request_r18_40 = { + "nr-DL-PRS-RSCPD-Request-r18", + "nr-DL-PRS-RSCPD-Request-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_DL_PRS_RSCPD_Request_r18_tags_40, + sizeof(asn_DEF_nr_DL_PRS_RSCPD_Request_r18_tags_40) + /sizeof(asn_DEF_nr_DL_PRS_RSCPD_Request_r18_tags_40[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_RSCPD_Request_r18_tags_40, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_RSCPD_Request_r18_tags_40) + /sizeof(asn_DEF_nr_DL_PRS_RSCPD_Request_r18_tags_40[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_RSCPD_Request_r18_constr_40, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_DL_PRS_RSCPD_Request_r18_specs_40 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_26[] = { + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext2, nr_DL_PRS_JointMeasurementRequestedPFL_List_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_27, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_constr_27, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_constraint_26 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-JointMeasurementRequestedPFL-List-r18" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext2, nr_DL_PRS_RxHoppingRequest_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_29, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RxHoppingRequest-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext2, nr_DL_PRS_RSCPD_Request_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_DL_PRS_RSCPD_Request_r18_40, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RSCPD-Request-r18" + }, +}; +static const int asn_MAP_ext2_oms_26[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_26[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_26[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-JointMeasurementRequestedPFL-List-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-RxHoppingRequest-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-DL-PRS-RSCPD-Request-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_26 = { + sizeof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext2), + offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_26, + 3, /* Count of tags in the map */ + asn_MAP_ext2_oms_26, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_26 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_26, + sizeof(asn_DEF_ext2_tags_26) + /sizeof(asn_DEF_ext2_tags_26[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_26, /* Same as above */ + sizeof(asn_DEF_ext2_tags_26) + /sizeof(asn_DEF_ext2_tags_26[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_26, + 3, /* Elements count */ + &asn_SPC_ext2_specs_26 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_TDOA_RequestLocationInformation_r16_1[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16, nr_DL_PRS_RstdMeasurementInfoRequest_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RstdMeasurementInfoRequest-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16, nr_RequestedMeasurements_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_RequestedMeasurements_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_RequestedMeasurements_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-RequestedMeasurements-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16, nr_AssistanceAvailability_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-AssistanceAvailability-r16" + }, + { ATF_POINTER, 4, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16, nr_DL_TDOA_ReportConfig_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_TDOA_ReportConfig_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-ReportConfig-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16, additionalPaths_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_additionalPaths_r16_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "additionalPaths-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext1_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext2_26, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_NR_DL_TDOA_RequestLocationInformation_r16_oms_1[] = { 0, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_RequestLocationInformation_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-RstdMeasurementInfoRequest-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-RequestedMeasurements-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-AssistanceAvailability-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-DL-TDOA-ReportConfig-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* additionalPaths-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_RequestLocationInformation_r16_specs_1 = { + sizeof(struct NR_DL_TDOA_RequestLocationInformation_r16), + offsetof(struct NR_DL_TDOA_RequestLocationInformation_r16, _asn_ctx), + asn_MAP_NR_DL_TDOA_RequestLocationInformation_r16_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_NR_DL_TDOA_RequestLocationInformation_r16_oms_1, /* Optional members */ + 3, 2, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16 = { + "NR-DL-TDOA-RequestLocationInformation-r16", + "NR-DL-TDOA-RequestLocationInformation-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16_tags_1, + sizeof(asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_TDOA_RequestLocationInformation_r16_1, + 7, /* Elements count */ + &asn_SPC_NR_DL_TDOA_RequestLocationInformation_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-TDOA-RequestLocationInformation-r16.h b/asn.1/lpp_generated/NR-DL-TDOA-RequestLocationInformation-r16.h new file mode 100644 index 00000000..bcf8f80d --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-RequestLocationInformation-r16.h @@ -0,0 +1,159 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_TDOA_RequestLocationInformation_r16_H_ +#define _NR_DL_TDOA_RequestLocationInformation_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include "LOS-NLOS-IndicatorType1-r17.h" +#include "LOS-NLOS-IndicatorGranularity1-r17.h" +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_TDOA_RequestLocationInformation_r16__nr_DL_PRS_RstdMeasurementInfoRequest_r16 { + NR_DL_TDOA_RequestLocationInformation_r16__nr_DL_PRS_RstdMeasurementInfoRequest_r16_true = 0 +} e_NR_DL_TDOA_RequestLocationInformation_r16__nr_DL_PRS_RstdMeasurementInfoRequest_r16; +typedef enum NR_DL_TDOA_RequestLocationInformation_r16__nr_RequestedMeasurements_r16 { + NR_DL_TDOA_RequestLocationInformation_r16__nr_RequestedMeasurements_r16_prsrsrpReq = 0, + NR_DL_TDOA_RequestLocationInformation_r16__nr_RequestedMeasurements_r16_firstPathRsrpReq_r17 = 1, + NR_DL_TDOA_RequestLocationInformation_r16__nr_RequestedMeasurements_r16_jointMeasurementsReq_r18 = 2 +} e_NR_DL_TDOA_RequestLocationInformation_r16__nr_RequestedMeasurements_r16; +typedef enum NR_DL_TDOA_RequestLocationInformation_r16__additionalPaths_r16 { + NR_DL_TDOA_RequestLocationInformation_r16__additionalPaths_r16_requested = 0 +} e_NR_DL_TDOA_RequestLocationInformation_r16__additionalPaths_r16; +typedef enum NR_DL_TDOA_RequestLocationInformation_r16__ext1__nr_UE_RxTEG_Request_r17 { + NR_DL_TDOA_RequestLocationInformation_r16__ext1__nr_UE_RxTEG_Request_r17_requested = 0 +} e_NR_DL_TDOA_RequestLocationInformation_r16__ext1__nr_UE_RxTEG_Request_r17; +typedef enum NR_DL_TDOA_RequestLocationInformation_r16__ext1__additionalPathsExt_r17 { + NR_DL_TDOA_RequestLocationInformation_r16__ext1__additionalPathsExt_r17_requested = 0 +} e_NR_DL_TDOA_RequestLocationInformation_r16__ext1__additionalPathsExt_r17; +typedef enum NR_DL_TDOA_RequestLocationInformation_r16__ext1__additionalPathsDL_PRS_RSRP_Request_r17 { + NR_DL_TDOA_RequestLocationInformation_r16__ext1__additionalPathsDL_PRS_RSRP_Request_r17_requested = 0 +} e_NR_DL_TDOA_RequestLocationInformation_r16__ext1__additionalPathsDL_PRS_RSRP_Request_r17; +typedef enum NR_DL_TDOA_RequestLocationInformation_r16__ext1__multiMeasInSameReport_r17 { + NR_DL_TDOA_RequestLocationInformation_r16__ext1__multiMeasInSameReport_r17_requested = 0 +} e_NR_DL_TDOA_RequestLocationInformation_r16__ext1__multiMeasInSameReport_r17; +typedef enum NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18_PR { + NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18_PR_NOTHING, /* No components present */ + NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18_PR_fr1, + NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18_PR_fr2 +} NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18_PR; +typedef enum NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr1 { + NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr1_mhz40 = 0, + NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr1_mhz50 = 1, + NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr1_mhz80 = 2, + NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr1_mhz100 = 3 +} e_NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr1; +typedef enum NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr2 { + NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr2_mhz100 = 0, + NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr2_mhz200 = 1, + NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr2_mhz400 = 2 +} e_NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr2; +typedef enum NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RSCPD_Request_r18 { + NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RSCPD_Request_r18_requested = 0 +} e_NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RSCPD_Request_r18; + +/* Forward declarations */ +struct NR_DL_TDOA_ReportConfig_r16; + +/* NR-DL-TDOA-RequestLocationInformation-r16 */ +typedef struct NR_DL_TDOA_RequestLocationInformation_r16 { + long *nr_DL_PRS_RstdMeasurementInfoRequest_r16; /* OPTIONAL */ + BIT_STRING_t nr_RequestedMeasurements_r16; + BOOLEAN_t nr_AssistanceAvailability_r16; + struct NR_DL_TDOA_ReportConfig_r16 *nr_DL_TDOA_ReportConfig_r16; /* OPTIONAL */ + long *additionalPaths_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_TDOA_RequestLocationInformation_r16__ext1 { + long *nr_UE_RxTEG_Request_r17; /* OPTIONAL */ + struct NR_DL_TDOA_RequestLocationInformation_r16__ext1__nr_los_nlos_IndicatorRequest_r17 { + LOS_NLOS_IndicatorType1_r17_t type_r17; + LOS_NLOS_IndicatorGranularity1_r17_t granularity_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_los_nlos_IndicatorRequest_r17; + long *additionalPathsExt_r17; /* OPTIONAL */ + long *additionalPathsDL_PRS_RSRP_Request_r17; /* OPTIONAL */ + long *multiMeasInSameReport_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct NR_DL_TDOA_RequestLocationInformation_r16__ext2 { + struct NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_JointMeasurementRequestedPFL_List_r18 { + A_SEQUENCE_OF(long) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_DL_PRS_JointMeasurementRequestedPFL_List_r18; + struct NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18 { + struct NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18 { + NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18_PR present; + union NR_DL_TDOA_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18_u { + long fr1; + long fr2; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_DL_PRS_RxHoppingTotalBandwidth_r18; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_DL_PRS_RxHoppingRequest_r18; + long *nr_DL_PRS_RSCPD_Request_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_TDOA_RequestLocationInformation_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RstdMeasurementInfoRequest_r16_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_additionalPaths_r16_10; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_UE_RxTEG_Request_r17_14; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_additionalPathsExt_r17_20; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_22; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_multiMeasInSameReport_r17_24; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_fr1_31; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_fr2_36; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RSCPD_Request_r18_40; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_RequestLocationInformation_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_RequestLocationInformation_r16_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_TDOA_RequestLocationInformation_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-TDOA-SignalMeasurementInformation-r16.c b/asn.1/lpp_generated/NR-DL-TDOA-SignalMeasurementInformation-r16.c new file mode 100644 index 00000000..6fb68a97 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-SignalMeasurementInformation-r16.c @@ -0,0 +1,165 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-TDOA-SignalMeasurementInformation-r16.h" + +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_SignalMeasurementInformation_r16__ext1, nr_UE_RxTEG_TimingErrorMargin_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TEG_TimingErrorMargin_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UE-RxTEG-TimingErrorMargin-r17" + }, +}; +static const int asn_MAP_ext1_oms_5[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-UE-RxTEG-TimingErrorMargin-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct NR_DL_TDOA_SignalMeasurementInformation_r16__ext1), + offsetof(struct NR_DL_TDOA_SignalMeasurementInformation_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_5, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 1, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_TDOA_SignalMeasurementInformation_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_SignalMeasurementInformation_r16, dl_PRS_ReferenceInfo_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DL_PRS_ID_Info_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-ReferenceInfo-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_SignalMeasurementInformation_r16, nr_DL_TDOA_MeasList_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_TDOA_MeasList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-MeasList-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_SignalMeasurementInformation_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_DL_TDOA_SignalMeasurementInformation_r16_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_SignalMeasurementInformation_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ReferenceInfo-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-TDOA-MeasList-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_SignalMeasurementInformation_r16_specs_1 = { + sizeof(struct NR_DL_TDOA_SignalMeasurementInformation_r16), + offsetof(struct NR_DL_TDOA_SignalMeasurementInformation_r16, _asn_ctx), + asn_MAP_NR_DL_TDOA_SignalMeasurementInformation_r16_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_NR_DL_TDOA_SignalMeasurementInformation_r16_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16 = { + "NR-DL-TDOA-SignalMeasurementInformation-r16", + "NR-DL-TDOA-SignalMeasurementInformation-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16_tags_1, + sizeof(asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_TDOA_SignalMeasurementInformation_r16_1, + 3, /* Elements count */ + &asn_SPC_NR_DL_TDOA_SignalMeasurementInformation_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-TDOA-SignalMeasurementInformation-r16.h b/asn.1/lpp_generated/NR-DL-TDOA-SignalMeasurementInformation-r16.h new file mode 100644 index 00000000..15a188c2 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-SignalMeasurementInformation-r16.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_TDOA_SignalMeasurementInformation_r16_H_ +#define _NR_DL_TDOA_SignalMeasurementInformation_r16_H_ + + +#include + +/* Including external dependencies */ +#include "DL-PRS-ID-Info-r16.h" +#include "NR-DL-TDOA-MeasList-r16.h" +#include "TEG-TimingErrorMargin-r17.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-DL-TDOA-SignalMeasurementInformation-r16 */ +typedef struct NR_DL_TDOA_SignalMeasurementInformation_r16 { + DL_PRS_ID_Info_r16_t dl_PRS_ReferenceInfo_r16; + NR_DL_TDOA_MeasList_r16_t nr_DL_TDOA_MeasList_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_TDOA_SignalMeasurementInformation_r16__ext1 { + TEG_TimingErrorMargin_r17_t *nr_UE_RxTEG_TimingErrorMargin_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_TDOA_SignalMeasurementInformation_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_SignalMeasurementInformation_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_SignalMeasurementInformation_r16_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_TDOA_SignalMeasurementInformation_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-DL-TDOA-TargetDeviceErrorCauses-r16.c b/asn.1/lpp_generated/NR-DL-TDOA-TargetDeviceErrorCauses-r16.c new file mode 100644 index 00000000..266ab026 --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-TargetDeviceErrorCauses-r16.c @@ -0,0 +1,267 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-DL-TDOA-TargetDeviceErrorCauses-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_remoteUE_Indication_r18_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_r16_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 23, "assistance-data-missing" }, + { 2, 21, "unableToMeasureAnyTRP" }, + { 3, 44, "attemptedButUnableToMeasureSomeNeighbourTRPs" }, + { 4, 50, "thereWereNotEnoughSignalsReceivedForUeBasedDL-TDOA" }, + { 5, 40, "locationCalculationAssistanceDataMissing" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_r16_enum2value_2[] = { + 1, /* assistance-data-missing(1) */ + 3, /* attemptedButUnableToMeasureSomeNeighbourTRPs(3) */ + 5, /* locationCalculationAssistanceDataMissing(5) */ + 4, /* thereWereNotEnoughSignalsReceivedForUeBasedDL-TDOA(4) */ + 2, /* unableToMeasureAnyTRP(2) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_r16_specs_2 = { + asn_MAP_cause_r16_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_r16_enum2value_2, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 7, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_r16_2 = { + "cause-r16", + "cause-r16", + &asn_OP_NativeEnumerated, + asn_DEF_cause_r16_tags_2, + sizeof(asn_DEF_cause_r16_tags_2) + /sizeof(asn_DEF_cause_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_r16_tags_2) + /sizeof(asn_DEF_cause_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_r16_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_remoteUE_Indication_r18_value2enum_12[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_remoteUE_Indication_r18_enum2value_12[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_remoteUE_Indication_r18_specs_12 = { + asn_MAP_remoteUE_Indication_r18_value2enum_12, /* "tag" => N; sorted by tag */ + asn_MAP_remoteUE_Indication_r18_enum2value_12, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_remoteUE_Indication_r18_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_remoteUE_Indication_r18_12 = { + "remoteUE-Indication-r18", + "remoteUE-Indication-r18", + &asn_OP_NativeEnumerated, + asn_DEF_remoteUE_Indication_r18_tags_12, + sizeof(asn_DEF_remoteUE_Indication_r18_tags_12) + /sizeof(asn_DEF_remoteUE_Indication_r18_tags_12[0]) - 1, /* 1 */ + asn_DEF_remoteUE_Indication_r18_tags_12, /* Same as above */ + sizeof(asn_DEF_remoteUE_Indication_r18_tags_12) + /sizeof(asn_DEF_remoteUE_Indication_r18_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_remoteUE_Indication_r18_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_remoteUE_Indication_r18_specs_12 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_11[] = { + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_TargetDeviceErrorCauses_r16__ext1, remoteUE_Indication_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_remoteUE_Indication_r18_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "remoteUE-Indication-r18" + }, +}; +static const int asn_MAP_ext1_oms_11[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* remoteUE-Indication-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_11 = { + sizeof(struct NR_DL_TDOA_TargetDeviceErrorCauses_r16__ext1), + offsetof(struct NR_DL_TDOA_TargetDeviceErrorCauses_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_11, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_11, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_11 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_11, + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_11, /* Same as above */ + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_11, + 1, /* Elements count */ + &asn_SPC_ext1_specs_11 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_DL_TDOA_TargetDeviceErrorCauses_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_DL_TDOA_TargetDeviceErrorCauses_r16, cause_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_DL_TDOA_TargetDeviceErrorCauses_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_DL_TDOA_TargetDeviceErrorCauses_r16_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_DL_TDOA_TargetDeviceErrorCauses_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_TargetDeviceErrorCauses_r16_specs_1 = { + sizeof(struct NR_DL_TDOA_TargetDeviceErrorCauses_r16), + offsetof(struct NR_DL_TDOA_TargetDeviceErrorCauses_r16, _asn_ctx), + asn_MAP_NR_DL_TDOA_TargetDeviceErrorCauses_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_NR_DL_TDOA_TargetDeviceErrorCauses_r16_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16 = { + "NR-DL-TDOA-TargetDeviceErrorCauses-r16", + "NR-DL-TDOA-TargetDeviceErrorCauses-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16_tags_1, + sizeof(asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16_tags_1) + /sizeof(asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_DL_TDOA_TargetDeviceErrorCauses_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_DL_TDOA_TargetDeviceErrorCauses_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-DL-TDOA-TargetDeviceErrorCauses-r16.h b/asn.1/lpp_generated/NR-DL-TDOA-TargetDeviceErrorCauses-r16.h new file mode 100644 index 00000000..423d412d --- /dev/null +++ b/asn.1/lpp_generated/NR-DL-TDOA-TargetDeviceErrorCauses-r16.h @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_DL_TDOA_TargetDeviceErrorCauses_r16_H_ +#define _NR_DL_TDOA_TargetDeviceErrorCauses_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_DL_TDOA_TargetDeviceErrorCauses_r16__cause_r16 { + NR_DL_TDOA_TargetDeviceErrorCauses_r16__cause_r16_undefined = 0, + NR_DL_TDOA_TargetDeviceErrorCauses_r16__cause_r16_assistance_data_missing = 1, + NR_DL_TDOA_TargetDeviceErrorCauses_r16__cause_r16_unableToMeasureAnyTRP = 2, + NR_DL_TDOA_TargetDeviceErrorCauses_r16__cause_r16_attemptedButUnableToMeasureSomeNeighbourTRPs = 3, + NR_DL_TDOA_TargetDeviceErrorCauses_r16__cause_r16_thereWereNotEnoughSignalsReceivedForUeBasedDL_TDOA = 4, + NR_DL_TDOA_TargetDeviceErrorCauses_r16__cause_r16_locationCalculationAssistanceDataMissing = 5 + /* + * Enumeration is extensible + */ +} e_NR_DL_TDOA_TargetDeviceErrorCauses_r16__cause_r16; +typedef enum NR_DL_TDOA_TargetDeviceErrorCauses_r16__ext1__remoteUE_Indication_r18 { + NR_DL_TDOA_TargetDeviceErrorCauses_r16__ext1__remoteUE_Indication_r18_true = 0 +} e_NR_DL_TDOA_TargetDeviceErrorCauses_r16__ext1__remoteUE_Indication_r18; + +/* NR-DL-TDOA-TargetDeviceErrorCauses-r16 */ +typedef struct NR_DL_TDOA_TargetDeviceErrorCauses_r16 { + long cause_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_DL_TDOA_TargetDeviceErrorCauses_r16__ext1 { + long *remoteUE_Indication_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_DL_TDOA_TargetDeviceErrorCauses_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_cause_r16_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_remoteUE_Indication_r18_12; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_DL_TDOA_TargetDeviceErrorCauses_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_DL_TDOA_TargetDeviceErrorCauses_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_DL_TDOA_TargetDeviceErrorCauses_r16_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_DL_TDOA_TargetDeviceErrorCauses_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-ECID-Error-r16.c b/asn.1/lpp_generated/NR-ECID-Error-r16.c new file mode 100644 index 00000000..838c3051 --- /dev/null +++ b/asn.1/lpp_generated/NR-ECID-Error-r16.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-ECID-Error-r16.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_ECID_Error_r16_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_ECID_Error_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_ECID_Error_r16, choice.locationServerErrorCauses_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_ECID_LocationServerErrorCauses_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationServerErrorCauses-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_ECID_Error_r16, choice.targetDeviceErrorCauses_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "targetDeviceErrorCauses-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_ECID_Error_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses-r16 */ +}; +asn_CHOICE_specifics_t asn_SPC_NR_ECID_Error_r16_specs_1 = { + sizeof(struct NR_ECID_Error_r16), + offsetof(struct NR_ECID_Error_r16, _asn_ctx), + offsetof(struct NR_ECID_Error_r16, present), + sizeof(((struct NR_ECID_Error_r16 *)0)->present), + asn_MAP_NR_ECID_Error_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_ECID_Error_r16 = { + "NR-ECID-Error-r16", + "NR-ECID-Error-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_ECID_Error_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_NR_ECID_Error_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_ECID_Error_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-ECID-Error-r16.h b/asn.1/lpp_generated/NR-ECID-Error-r16.h similarity index 85% rename from asn.1/generated/NR-ECID-Error-r16.h rename to asn.1/lpp_generated/NR-ECID-Error-r16.h index 41bb3ee9..c96811da 100644 --- a/asn.1/generated/NR-ECID-Error-r16.h +++ b/asn.1/lpp_generated/NR-ECID-Error-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_ECID_Error_r16_H_ diff --git a/asn.1/lpp_generated/NR-ECID-LocationServerErrorCauses-r16.c b/asn.1/lpp_generated/NR-ECID-LocationServerErrorCauses-r16.c new file mode 100644 index 00000000..d5417034 --- /dev/null +++ b/asn.1/lpp_generated/NR-ECID-LocationServerErrorCauses-r16.c @@ -0,0 +1,122 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-ECID-LocationServerErrorCauses-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_r16_value2enum_2[] = { + { 0, 9, "undefined" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_r16_enum2value_2[] = { + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_r16_specs_2 = { + asn_MAP_cause_r16_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_r16_enum2value_2, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_r16_2 = { + "cause-r16", + "cause-r16", + &asn_OP_NativeEnumerated, + asn_DEF_cause_r16_tags_2, + sizeof(asn_DEF_cause_r16_tags_2) + /sizeof(asn_DEF_cause_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_r16_tags_2) + /sizeof(asn_DEF_cause_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_r16_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_ECID_LocationServerErrorCauses_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_ECID_LocationServerErrorCauses_r16, cause_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_ECID_LocationServerErrorCauses_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_ECID_LocationServerErrorCauses_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_ECID_LocationServerErrorCauses_r16_specs_1 = { + sizeof(struct NR_ECID_LocationServerErrorCauses_r16), + offsetof(struct NR_ECID_LocationServerErrorCauses_r16, _asn_ctx), + asn_MAP_NR_ECID_LocationServerErrorCauses_r16_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_ECID_LocationServerErrorCauses_r16 = { + "NR-ECID-LocationServerErrorCauses-r16", + "NR-ECID-LocationServerErrorCauses-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_ECID_LocationServerErrorCauses_r16_tags_1, + sizeof(asn_DEF_NR_ECID_LocationServerErrorCauses_r16_tags_1) + /sizeof(asn_DEF_NR_ECID_LocationServerErrorCauses_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_ECID_LocationServerErrorCauses_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_ECID_LocationServerErrorCauses_r16_tags_1) + /sizeof(asn_DEF_NR_ECID_LocationServerErrorCauses_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_ECID_LocationServerErrorCauses_r16_1, + 1, /* Elements count */ + &asn_SPC_NR_ECID_LocationServerErrorCauses_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-ECID-LocationServerErrorCauses-r16.h b/asn.1/lpp_generated/NR-ECID-LocationServerErrorCauses-r16.h similarity index 84% rename from asn.1/generated/NR-ECID-LocationServerErrorCauses-r16.h rename to asn.1/lpp_generated/NR-ECID-LocationServerErrorCauses-r16.h index 7e50e465..c354863f 100644 --- a/asn.1/generated/NR-ECID-LocationServerErrorCauses-r16.h +++ b/asn.1/lpp_generated/NR-ECID-LocationServerErrorCauses-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_ECID_LocationServerErrorCauses_r16_H_ diff --git a/asn.1/lpp_generated/NR-ECID-ProvideCapabilities-r16.c b/asn.1/lpp_generated/NR-ECID-ProvideCapabilities-r16.c new file mode 100644 index 00000000..a134b3c5 --- /dev/null +++ b/asn.1/lpp_generated/NR-ECID-ProvideCapabilities-r16.c @@ -0,0 +1,402 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-ECID-ProvideCapabilities-r16.h" + +#include "ScheduledLocationTimeSupport-r17.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_nr_ECID_MeasSupported_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_periodicalReporting_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_triggeredReporting_r16_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ten_ms_unit_ResponseTime_r17_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_ECID_MeasSupported_r16_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_periodicalReporting_r16_value2enum_7[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_periodicalReporting_r16_enum2value_7[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_periodicalReporting_r16_specs_7 = { + asn_MAP_periodicalReporting_r16_value2enum_7, /* "tag" => N; sorted by tag */ + asn_MAP_periodicalReporting_r16_enum2value_7, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_periodicalReporting_r16_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_periodicalReporting_r16_7 = { + "periodicalReporting-r16", + "periodicalReporting-r16", + &asn_OP_NativeEnumerated, + asn_DEF_periodicalReporting_r16_tags_7, + sizeof(asn_DEF_periodicalReporting_r16_tags_7) + /sizeof(asn_DEF_periodicalReporting_r16_tags_7[0]) - 1, /* 1 */ + asn_DEF_periodicalReporting_r16_tags_7, /* Same as above */ + sizeof(asn_DEF_periodicalReporting_r16_tags_7) + /sizeof(asn_DEF_periodicalReporting_r16_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_periodicalReporting_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_periodicalReporting_r16_specs_7 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_triggeredReporting_r16_value2enum_9[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_triggeredReporting_r16_enum2value_9[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_triggeredReporting_r16_specs_9 = { + asn_MAP_triggeredReporting_r16_value2enum_9, /* "tag" => N; sorted by tag */ + asn_MAP_triggeredReporting_r16_enum2value_9, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_triggeredReporting_r16_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_triggeredReporting_r16_9 = { + "triggeredReporting-r16", + "triggeredReporting-r16", + &asn_OP_NativeEnumerated, + asn_DEF_triggeredReporting_r16_tags_9, + sizeof(asn_DEF_triggeredReporting_r16_tags_9) + /sizeof(asn_DEF_triggeredReporting_r16_tags_9[0]) - 1, /* 1 */ + asn_DEF_triggeredReporting_r16_tags_9, /* Same as above */ + sizeof(asn_DEF_triggeredReporting_r16_tags_9) + /sizeof(asn_DEF_triggeredReporting_r16_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_triggeredReporting_r16_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_triggeredReporting_r16_specs_9 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_ten_ms_unit_ResponseTime_r17_value2enum_13[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_ten_ms_unit_ResponseTime_r17_enum2value_13[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ten_ms_unit_ResponseTime_r17_specs_13 = { + asn_MAP_ten_ms_unit_ResponseTime_r17_value2enum_13, /* "tag" => N; sorted by tag */ + asn_MAP_ten_ms_unit_ResponseTime_r17_enum2value_13, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ten_ms_unit_ResponseTime_r17_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ten_ms_unit_ResponseTime_r17_13 = { + "ten-ms-unit-ResponseTime-r17", + "ten-ms-unit-ResponseTime-r17", + &asn_OP_NativeEnumerated, + asn_DEF_ten_ms_unit_ResponseTime_r17_tags_13, + sizeof(asn_DEF_ten_ms_unit_ResponseTime_r17_tags_13) + /sizeof(asn_DEF_ten_ms_unit_ResponseTime_r17_tags_13[0]) - 1, /* 1 */ + asn_DEF_ten_ms_unit_ResponseTime_r17_tags_13, /* Same as above */ + sizeof(asn_DEF_ten_ms_unit_ResponseTime_r17_tags_13) + /sizeof(asn_DEF_ten_ms_unit_ResponseTime_r17_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ten_ms_unit_ResponseTime_r17_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ten_ms_unit_ResponseTime_r17_specs_13 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_12[] = { + { ATF_POINTER, 2, offsetof(struct NR_ECID_ProvideCapabilities_r16__ext1, ten_ms_unit_ResponseTime_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ten_ms_unit_ResponseTime_r17_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ten-ms-unit-ResponseTime-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_ECID_ProvideCapabilities_r16__ext1, scheduledLocationRequestSupported_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ScheduledLocationTimeSupport_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scheduledLocationRequestSupported-r17" + }, +}; +static const int asn_MAP_ext1_oms_12[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_12[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ten-ms-unit-ResponseTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* scheduledLocationRequestSupported-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_12 = { + sizeof(struct NR_ECID_ProvideCapabilities_r16__ext1), + offsetof(struct NR_ECID_ProvideCapabilities_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_12, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_12, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_12 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_12, + sizeof(asn_DEF_ext1_tags_12) + /sizeof(asn_DEF_ext1_tags_12[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_12, /* Same as above */ + sizeof(asn_DEF_ext1_tags_12) + /sizeof(asn_DEF_ext1_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_12, + 2, /* Elements count */ + &asn_SPC_ext1_specs_12 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_ECID_ProvideCapabilities_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_ECID_ProvideCapabilities_r16, nr_ECID_MeasSupported_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_ECID_MeasSupported_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_ECID_MeasSupported_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-ECID-MeasSupported-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_ECID_ProvideCapabilities_r16, periodicalReporting_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_periodicalReporting_r16_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "periodicalReporting-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_ECID_ProvideCapabilities_r16, triggeredReporting_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_triggeredReporting_r16_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "triggeredReporting-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_ECID_ProvideCapabilities_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext1_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_ECID_ProvideCapabilities_r16_oms_1[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_NR_ECID_ProvideCapabilities_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_ECID_ProvideCapabilities_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-ECID-MeasSupported-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* periodicalReporting-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* triggeredReporting-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_ECID_ProvideCapabilities_r16_specs_1 = { + sizeof(struct NR_ECID_ProvideCapabilities_r16), + offsetof(struct NR_ECID_ProvideCapabilities_r16, _asn_ctx), + asn_MAP_NR_ECID_ProvideCapabilities_r16_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_NR_ECID_ProvideCapabilities_r16_oms_1, /* Optional members */ + 2, 1, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_ECID_ProvideCapabilities_r16 = { + "NR-ECID-ProvideCapabilities-r16", + "NR-ECID-ProvideCapabilities-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_ECID_ProvideCapabilities_r16_tags_1, + sizeof(asn_DEF_NR_ECID_ProvideCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_ECID_ProvideCapabilities_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_ECID_ProvideCapabilities_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_ECID_ProvideCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_ECID_ProvideCapabilities_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_ECID_ProvideCapabilities_r16_1, + 4, /* Elements count */ + &asn_SPC_NR_ECID_ProvideCapabilities_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-ECID-ProvideCapabilities-r16.h b/asn.1/lpp_generated/NR-ECID-ProvideCapabilities-r16.h new file mode 100644 index 00000000..6d67a143 --- /dev/null +++ b/asn.1/lpp_generated/NR-ECID-ProvideCapabilities-r16.h @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_ECID_ProvideCapabilities_r16_H_ +#define _NR_ECID_ProvideCapabilities_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_ECID_ProvideCapabilities_r16__nr_ECID_MeasSupported_r16 { + NR_ECID_ProvideCapabilities_r16__nr_ECID_MeasSupported_r16_ssrsrpSup = 0, + NR_ECID_ProvideCapabilities_r16__nr_ECID_MeasSupported_r16_ssrsrqSup = 1, + NR_ECID_ProvideCapabilities_r16__nr_ECID_MeasSupported_r16_csirsrpSup = 2, + NR_ECID_ProvideCapabilities_r16__nr_ECID_MeasSupported_r16_csirsrqSup = 3 +} e_NR_ECID_ProvideCapabilities_r16__nr_ECID_MeasSupported_r16; +typedef enum NR_ECID_ProvideCapabilities_r16__periodicalReporting_r16 { + NR_ECID_ProvideCapabilities_r16__periodicalReporting_r16_supported = 0 +} e_NR_ECID_ProvideCapabilities_r16__periodicalReporting_r16; +typedef enum NR_ECID_ProvideCapabilities_r16__triggeredReporting_r16 { + NR_ECID_ProvideCapabilities_r16__triggeredReporting_r16_supported = 0 +} e_NR_ECID_ProvideCapabilities_r16__triggeredReporting_r16; +typedef enum NR_ECID_ProvideCapabilities_r16__ext1__ten_ms_unit_ResponseTime_r17 { + NR_ECID_ProvideCapabilities_r16__ext1__ten_ms_unit_ResponseTime_r17_supported = 0 +} e_NR_ECID_ProvideCapabilities_r16__ext1__ten_ms_unit_ResponseTime_r17; + +/* Forward declarations */ +struct ScheduledLocationTimeSupport_r17; + +/* NR-ECID-ProvideCapabilities-r16 */ +typedef struct NR_ECID_ProvideCapabilities_r16 { + BIT_STRING_t nr_ECID_MeasSupported_r16; + long *periodicalReporting_r16; /* OPTIONAL */ + long *triggeredReporting_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_ECID_ProvideCapabilities_r16__ext1 { + long *ten_ms_unit_ResponseTime_r17; /* OPTIONAL */ + struct ScheduledLocationTimeSupport_r17 *scheduledLocationRequestSupported_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_ECID_ProvideCapabilities_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_periodicalReporting_r16_7; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_triggeredReporting_r16_9; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_ten_ms_unit_ResponseTime_r17_13; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_ECID_ProvideCapabilities_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_ECID_ProvideCapabilities_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_ECID_ProvideCapabilities_r16_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_ECID_ProvideCapabilities_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-ECID-ProvideLocationInformation-r16.c b/asn.1/lpp_generated/NR-ECID-ProvideLocationInformation-r16.c new file mode 100644 index 00000000..c1458293 --- /dev/null +++ b/asn.1/lpp_generated/NR-ECID-ProvideLocationInformation-r16.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-ECID-ProvideLocationInformation-r16.h" + +#include "NR-ECID-SignalMeasurementInformation-r16.h" +#include "NR-ECID-Error-r16.h" +asn_TYPE_member_t asn_MBR_NR_ECID_ProvideLocationInformation_r16_1[] = { + { ATF_POINTER, 2, offsetof(struct NR_ECID_ProvideLocationInformation_r16, nr_ECID_SignalMeasurementInformation_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_ECID_SignalMeasurementInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ECID-SignalMeasurementInformation-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_ECID_ProvideLocationInformation_r16, nr_ECID_Error_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_NR_ECID_Error_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ECID-Error-r16" + }, +}; +static const int asn_MAP_NR_ECID_ProvideLocationInformation_r16_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_NR_ECID_ProvideLocationInformation_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_ECID_ProvideLocationInformation_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-ECID-SignalMeasurementInformation-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-ECID-Error-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_ECID_ProvideLocationInformation_r16_specs_1 = { + sizeof(struct NR_ECID_ProvideLocationInformation_r16), + offsetof(struct NR_ECID_ProvideLocationInformation_r16, _asn_ctx), + asn_MAP_NR_ECID_ProvideLocationInformation_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_NR_ECID_ProvideLocationInformation_r16_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_ECID_ProvideLocationInformation_r16 = { + "NR-ECID-ProvideLocationInformation-r16", + "NR-ECID-ProvideLocationInformation-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_ECID_ProvideLocationInformation_r16_tags_1, + sizeof(asn_DEF_NR_ECID_ProvideLocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_ECID_ProvideLocationInformation_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_ECID_ProvideLocationInformation_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_ECID_ProvideLocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_ECID_ProvideLocationInformation_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_ECID_ProvideLocationInformation_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_ECID_ProvideLocationInformation_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-ECID-ProvideLocationInformation-r16.h b/asn.1/lpp_generated/NR-ECID-ProvideLocationInformation-r16.h similarity index 75% rename from asn.1/generated/NR-ECID-ProvideLocationInformation-r16.h rename to asn.1/lpp_generated/NR-ECID-ProvideLocationInformation-r16.h index 0b933558..bd36d486 100644 --- a/asn.1/generated/NR-ECID-ProvideLocationInformation-r16.h +++ b/asn.1/lpp_generated/NR-ECID-ProvideLocationInformation-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_ECID_ProvideLocationInformation_r16_H_ @@ -24,8 +24,8 @@ struct NR_ECID_Error_r16; /* NR-ECID-ProvideLocationInformation-r16 */ typedef struct NR_ECID_ProvideLocationInformation_r16 { - struct NR_ECID_SignalMeasurementInformation_r16 *nr_ECID_SignalMeasurementInformation_r16 /* OPTIONAL */; - struct NR_ECID_Error_r16 *nr_ECID_Error_r16 /* OPTIONAL */; + struct NR_ECID_SignalMeasurementInformation_r16 *nr_ECID_SignalMeasurementInformation_r16; /* OPTIONAL */ + struct NR_ECID_Error_r16 *nr_ECID_Error_r16; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -44,9 +44,5 @@ extern asn_TYPE_member_t asn_MBR_NR_ECID_ProvideLocationInformation_r16_1[2]; } #endif -/* Referred external types */ -#include "NR-ECID-SignalMeasurementInformation-r16.h" -#include "NR-ECID-Error-r16.h" - #endif /* _NR_ECID_ProvideLocationInformation_r16_H_ */ #include diff --git a/asn.1/lpp_generated/NR-ECID-RequestCapabilities-r16.c b/asn.1/lpp_generated/NR-ECID-RequestCapabilities-r16.c new file mode 100644 index 00000000..83634b0e --- /dev/null +++ b/asn.1/lpp_generated/NR-ECID-RequestCapabilities-r16.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-ECID-RequestCapabilities-r16.h" + +static const ber_tlv_tag_t asn_DEF_NR_ECID_RequestCapabilities_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_ECID_RequestCapabilities_r16_specs_1 = { + sizeof(struct NR_ECID_RequestCapabilities_r16), + offsetof(struct NR_ECID_RequestCapabilities_r16, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_ECID_RequestCapabilities_r16 = { + "NR-ECID-RequestCapabilities-r16", + "NR-ECID-RequestCapabilities-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_ECID_RequestCapabilities_r16_tags_1, + sizeof(asn_DEF_NR_ECID_RequestCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_ECID_RequestCapabilities_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_ECID_RequestCapabilities_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_ECID_RequestCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_ECID_RequestCapabilities_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_NR_ECID_RequestCapabilities_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-ECID-RequestCapabilities-r16.h b/asn.1/lpp_generated/NR-ECID-RequestCapabilities-r16.h similarity index 78% rename from asn.1/generated/NR-ECID-RequestCapabilities-r16.h rename to asn.1/lpp_generated/NR-ECID-RequestCapabilities-r16.h index ad30e1e5..796f1b9a 100644 --- a/asn.1/generated/NR-ECID-RequestCapabilities-r16.h +++ b/asn.1/lpp_generated/NR-ECID-RequestCapabilities-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_ECID_RequestCapabilities_r16_H_ diff --git a/asn.1/lpp_generated/NR-ECID-RequestLocationInformation-r16.c b/asn.1/lpp_generated/NR-ECID-RequestLocationInformation-r16.c new file mode 100644 index 00000000..7f896fb8 --- /dev/null +++ b/asn.1/lpp_generated/NR-ECID-RequestLocationInformation-r16.c @@ -0,0 +1,104 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-ECID-RequestLocationInformation-r16.h" + +static int +memb_requestedMeasurements_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_requestedMeasurements_r16_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_ECID_RequestLocationInformation_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_ECID_RequestLocationInformation_r16, requestedMeasurements_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_requestedMeasurements_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_requestedMeasurements_r16_constraint_1 + }, + 0, 0, /* No default value */ + "requestedMeasurements-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_ECID_RequestLocationInformation_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_ECID_RequestLocationInformation_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* requestedMeasurements-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_ECID_RequestLocationInformation_r16_specs_1 = { + sizeof(struct NR_ECID_RequestLocationInformation_r16), + offsetof(struct NR_ECID_RequestLocationInformation_r16, _asn_ctx), + asn_MAP_NR_ECID_RequestLocationInformation_r16_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_ECID_RequestLocationInformation_r16 = { + "NR-ECID-RequestLocationInformation-r16", + "NR-ECID-RequestLocationInformation-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_ECID_RequestLocationInformation_r16_tags_1, + sizeof(asn_DEF_NR_ECID_RequestLocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_ECID_RequestLocationInformation_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_ECID_RequestLocationInformation_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_ECID_RequestLocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_ECID_RequestLocationInformation_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_ECID_RequestLocationInformation_r16_1, + 1, /* Elements count */ + &asn_SPC_NR_ECID_RequestLocationInformation_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-ECID-RequestLocationInformation-r16.h b/asn.1/lpp_generated/NR-ECID-RequestLocationInformation-r16.h similarity index 86% rename from asn.1/generated/NR-ECID-RequestLocationInformation-r16.h rename to asn.1/lpp_generated/NR-ECID-RequestLocationInformation-r16.h index 2f8fc810..75b29b0a 100644 --- a/asn.1/generated/NR-ECID-RequestLocationInformation-r16.h +++ b/asn.1/lpp_generated/NR-ECID-RequestLocationInformation-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_ECID_RequestLocationInformation_r16_H_ diff --git a/asn.1/lpp_generated/NR-ECID-SignalMeasurementInformation-r16.c b/asn.1/lpp_generated/NR-ECID-SignalMeasurementInformation-r16.c new file mode 100644 index 00000000..2c24742f --- /dev/null +++ b/asn.1/lpp_generated/NR-ECID-SignalMeasurementInformation-r16.c @@ -0,0 +1,87 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-ECID-SignalMeasurementInformation-r16.h" + +#include "NR-MeasuredResultsList-r16.h" +asn_TYPE_member_t asn_MBR_NR_ECID_SignalMeasurementInformation_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_ECID_SignalMeasurementInformation_r16, nr_PrimaryCellMeasuredResults_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_MeasuredResultsElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PrimaryCellMeasuredResults-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_ECID_SignalMeasurementInformation_r16, nr_MeasuredResultsList_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_MeasuredResultsList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-MeasuredResultsList-r16" + }, +}; +static const int asn_MAP_NR_ECID_SignalMeasurementInformation_r16_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_NR_ECID_SignalMeasurementInformation_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_ECID_SignalMeasurementInformation_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-PrimaryCellMeasuredResults-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-MeasuredResultsList-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_ECID_SignalMeasurementInformation_r16_specs_1 = { + sizeof(struct NR_ECID_SignalMeasurementInformation_r16), + offsetof(struct NR_ECID_SignalMeasurementInformation_r16, _asn_ctx), + asn_MAP_NR_ECID_SignalMeasurementInformation_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_NR_ECID_SignalMeasurementInformation_r16_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_ECID_SignalMeasurementInformation_r16 = { + "NR-ECID-SignalMeasurementInformation-r16", + "NR-ECID-SignalMeasurementInformation-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_ECID_SignalMeasurementInformation_r16_tags_1, + sizeof(asn_DEF_NR_ECID_SignalMeasurementInformation_r16_tags_1) + /sizeof(asn_DEF_NR_ECID_SignalMeasurementInformation_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_ECID_SignalMeasurementInformation_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_ECID_SignalMeasurementInformation_r16_tags_1) + /sizeof(asn_DEF_NR_ECID_SignalMeasurementInformation_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_ECID_SignalMeasurementInformation_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_ECID_SignalMeasurementInformation_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-ECID-SignalMeasurementInformation-r16.h b/asn.1/lpp_generated/NR-ECID-SignalMeasurementInformation-r16.h similarity index 78% rename from asn.1/generated/NR-ECID-SignalMeasurementInformation-r16.h rename to asn.1/lpp_generated/NR-ECID-SignalMeasurementInformation-r16.h index de4e1a54..30e6f086 100644 --- a/asn.1/generated/NR-ECID-SignalMeasurementInformation-r16.h +++ b/asn.1/lpp_generated/NR-ECID-SignalMeasurementInformation-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_ECID_SignalMeasurementInformation_r16_H_ @@ -25,7 +25,7 @@ struct NR_MeasuredResultsList_r16; /* NR-ECID-SignalMeasurementInformation-r16 */ typedef struct NR_ECID_SignalMeasurementInformation_r16 { NR_MeasuredResultsElement_r16_t nr_PrimaryCellMeasuredResults_r16; - struct NR_MeasuredResultsList_r16 *nr_MeasuredResultsList_r16 /* OPTIONAL */; + struct NR_MeasuredResultsList_r16 *nr_MeasuredResultsList_r16; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -44,8 +44,5 @@ extern asn_TYPE_member_t asn_MBR_NR_ECID_SignalMeasurementInformation_r16_1[2]; } #endif -/* Referred external types */ -#include "NR-MeasuredResultsList-r16.h" - #endif /* _NR_ECID_SignalMeasurementInformation_r16_H_ */ #include diff --git a/asn.1/lpp_generated/NR-ECID-TargetDeviceErrorCauses-r16.c b/asn.1/lpp_generated/NR-ECID-TargetDeviceErrorCauses-r16.c new file mode 100644 index 00000000..5fc595f4 --- /dev/null +++ b/asn.1/lpp_generated/NR-ECID-TargetDeviceErrorCauses-r16.c @@ -0,0 +1,333 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-ECID-TargetDeviceErrorCauses-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_remoteUE_Indication_r18_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_r16_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 32, "requestedMeasurementNotAvailable" }, + { 2, 35, "notAllrequestedMeasurementsPossible" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_r16_enum2value_2[] = { + 2, /* notAllrequestedMeasurementsPossible(2) */ + 1, /* requestedMeasurementNotAvailable(1) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_r16_specs_2 = { + asn_MAP_cause_r16_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_r16_enum2value_2, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 4, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_r16_2 = { + "cause-r16", + "cause-r16", + &asn_OP_NativeEnumerated, + asn_DEF_cause_r16_tags_2, + sizeof(asn_DEF_cause_r16_tags_2) + /sizeof(asn_DEF_cause_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_r16_tags_2) + /sizeof(asn_DEF_cause_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_r16_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_remoteUE_Indication_r18_value2enum_13[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_remoteUE_Indication_r18_enum2value_13[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_remoteUE_Indication_r18_specs_13 = { + asn_MAP_remoteUE_Indication_r18_value2enum_13, /* "tag" => N; sorted by tag */ + asn_MAP_remoteUE_Indication_r18_enum2value_13, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_remoteUE_Indication_r18_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_remoteUE_Indication_r18_13 = { + "remoteUE-Indication-r18", + "remoteUE-Indication-r18", + &asn_OP_NativeEnumerated, + asn_DEF_remoteUE_Indication_r18_tags_13, + sizeof(asn_DEF_remoteUE_Indication_r18_tags_13) + /sizeof(asn_DEF_remoteUE_Indication_r18_tags_13[0]) - 1, /* 1 */ + asn_DEF_remoteUE_Indication_r18_tags_13, /* Same as above */ + sizeof(asn_DEF_remoteUE_Indication_r18_tags_13) + /sizeof(asn_DEF_remoteUE_Indication_r18_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_remoteUE_Indication_r18_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_remoteUE_Indication_r18_specs_13 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_12[] = { + { ATF_POINTER, 1, offsetof(struct NR_ECID_TargetDeviceErrorCauses_r16__ext1, remoteUE_Indication_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_remoteUE_Indication_r18_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "remoteUE-Indication-r18" + }, +}; +static const int asn_MAP_ext1_oms_12[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_12[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* remoteUE-Indication-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_12 = { + sizeof(struct NR_ECID_TargetDeviceErrorCauses_r16__ext1), + offsetof(struct NR_ECID_TargetDeviceErrorCauses_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_12, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_12, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_12 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_12, + sizeof(asn_DEF_ext1_tags_12) + /sizeof(asn_DEF_ext1_tags_12[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_12, /* Same as above */ + sizeof(asn_DEF_ext1_tags_12) + /sizeof(asn_DEF_ext1_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_12, + 1, /* Elements count */ + &asn_SPC_ext1_specs_12 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_ECID_TargetDeviceErrorCauses_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_ECID_TargetDeviceErrorCauses_r16, cause_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause-r16" + }, + { ATF_POINTER, 5, offsetof(struct NR_ECID_TargetDeviceErrorCauses_r16, ss_RSRPMeasurementNotPossible_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ss-RSRPMeasurementNotPossible-r16" + }, + { ATF_POINTER, 4, offsetof(struct NR_ECID_TargetDeviceErrorCauses_r16, ss_RSRQMeasurementNotPossible_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ss-RSRQMeasurementNotPossible-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_ECID_TargetDeviceErrorCauses_r16, csi_RSRPMeasurementNotPossible_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "csi-RSRPMeasurementNotPossible-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_ECID_TargetDeviceErrorCauses_r16, csi_RSRQMeasurementNotPossible_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "csi-RSRQMeasurementNotPossible-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_ECID_TargetDeviceErrorCauses_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext1_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_ECID_TargetDeviceErrorCauses_r16_oms_1[] = { 1, 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_ECID_TargetDeviceErrorCauses_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ss-RSRPMeasurementNotPossible-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ss-RSRQMeasurementNotPossible-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* csi-RSRPMeasurementNotPossible-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* csi-RSRQMeasurementNotPossible-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_ECID_TargetDeviceErrorCauses_r16_specs_1 = { + sizeof(struct NR_ECID_TargetDeviceErrorCauses_r16), + offsetof(struct NR_ECID_TargetDeviceErrorCauses_r16, _asn_ctx), + asn_MAP_NR_ECID_TargetDeviceErrorCauses_r16_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_NR_ECID_TargetDeviceErrorCauses_r16_oms_1, /* Optional members */ + 4, 1, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16 = { + "NR-ECID-TargetDeviceErrorCauses-r16", + "NR-ECID-TargetDeviceErrorCauses-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16_tags_1, + sizeof(asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16_tags_1) + /sizeof(asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16_tags_1) + /sizeof(asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_ECID_TargetDeviceErrorCauses_r16_1, + 6, /* Elements count */ + &asn_SPC_NR_ECID_TargetDeviceErrorCauses_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-ECID-TargetDeviceErrorCauses-r16.h b/asn.1/lpp_generated/NR-ECID-TargetDeviceErrorCauses-r16.h new file mode 100644 index 00000000..9a2e7af0 --- /dev/null +++ b/asn.1/lpp_generated/NR-ECID-TargetDeviceErrorCauses-r16.h @@ -0,0 +1,70 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_ECID_TargetDeviceErrorCauses_r16_H_ +#define _NR_ECID_TargetDeviceErrorCauses_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_ECID_TargetDeviceErrorCauses_r16__cause_r16 { + NR_ECID_TargetDeviceErrorCauses_r16__cause_r16_undefined = 0, + NR_ECID_TargetDeviceErrorCauses_r16__cause_r16_requestedMeasurementNotAvailable = 1, + NR_ECID_TargetDeviceErrorCauses_r16__cause_r16_notAllrequestedMeasurementsPossible = 2 + /* + * Enumeration is extensible + */ +} e_NR_ECID_TargetDeviceErrorCauses_r16__cause_r16; +typedef enum NR_ECID_TargetDeviceErrorCauses_r16__ext1__remoteUE_Indication_r18 { + NR_ECID_TargetDeviceErrorCauses_r16__ext1__remoteUE_Indication_r18_true = 0 +} e_NR_ECID_TargetDeviceErrorCauses_r16__ext1__remoteUE_Indication_r18; + +/* NR-ECID-TargetDeviceErrorCauses-r16 */ +typedef struct NR_ECID_TargetDeviceErrorCauses_r16 { + long cause_r16; + NULL_t *ss_RSRPMeasurementNotPossible_r16; /* OPTIONAL */ + NULL_t *ss_RSRQMeasurementNotPossible_r16; /* OPTIONAL */ + NULL_t *csi_RSRPMeasurementNotPossible_r16; /* OPTIONAL */ + NULL_t *csi_RSRQMeasurementNotPossible_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_ECID_TargetDeviceErrorCauses_r16__ext1 { + long *remoteUE_Indication_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_ECID_TargetDeviceErrorCauses_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_cause_r16_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_remoteUE_Indication_r18_13; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_ECID_TargetDeviceErrorCauses_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_ECID_TargetDeviceErrorCauses_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_ECID_TargetDeviceErrorCauses_r16_1[6]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_ECID_TargetDeviceErrorCauses_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-IntegrityBeamInfoBounds-r18.c b/asn.1/lpp_generated/NR-IntegrityBeamInfoBounds-r18.c new file mode 100644 index 00000000..87a7e9f3 --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityBeamInfoBounds-r18.c @@ -0,0 +1,248 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-IntegrityBeamInfoBounds-r18.h" + +static int +memb_meanAzimuth_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stdDevAzimuth_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_meanElevation_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stdDevElevation_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanAzimuth_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stdDevAzimuth_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanElevation_r18_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stdDevElevation_r18_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_IntegrityBeamInfoBounds_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityBeamInfoBounds_r18, meanAzimuth_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanAzimuth_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanAzimuth_r18_constraint_1 + }, + 0, 0, /* No default value */ + "meanAzimuth-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityBeamInfoBounds_r18, stdDevAzimuth_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stdDevAzimuth_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stdDevAzimuth_r18_constraint_1 + }, + 0, 0, /* No default value */ + "stdDevAzimuth-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityBeamInfoBounds_r18, meanElevation_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanElevation_r18_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanElevation_r18_constraint_1 + }, + 0, 0, /* No default value */ + "meanElevation-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityBeamInfoBounds_r18, stdDevElevation_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stdDevElevation_r18_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stdDevElevation_r18_constraint_1 + }, + 0, 0, /* No default value */ + "stdDevElevation-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_IntegrityBeamInfoBounds_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_IntegrityBeamInfoBounds_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* meanAzimuth-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* stdDevAzimuth-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* meanElevation-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* stdDevElevation-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityBeamInfoBounds_r18_specs_1 = { + sizeof(struct NR_IntegrityBeamInfoBounds_r18), + offsetof(struct NR_IntegrityBeamInfoBounds_r18, _asn_ctx), + asn_MAP_NR_IntegrityBeamInfoBounds_r18_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_IntegrityBeamInfoBounds_r18 = { + "NR-IntegrityBeamInfoBounds-r18", + "NR-IntegrityBeamInfoBounds-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_IntegrityBeamInfoBounds_r18_tags_1, + sizeof(asn_DEF_NR_IntegrityBeamInfoBounds_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityBeamInfoBounds_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_IntegrityBeamInfoBounds_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_IntegrityBeamInfoBounds_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityBeamInfoBounds_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_IntegrityBeamInfoBounds_r18_1, + 4, /* Elements count */ + &asn_SPC_NR_IntegrityBeamInfoBounds_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-IntegrityBeamInfoBounds-r18.h b/asn.1/lpp_generated/NR-IntegrityBeamInfoBounds-r18.h new file mode 100644 index 00000000..82ffd770 --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityBeamInfoBounds-r18.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_IntegrityBeamInfoBounds_r18_H_ +#define _NR_IntegrityBeamInfoBounds_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-IntegrityBeamInfoBounds-r18 */ +typedef struct NR_IntegrityBeamInfoBounds_r18 { + long meanAzimuth_r18; + long stdDevAzimuth_r18; + long meanElevation_r18; + long stdDevElevation_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_IntegrityBeamInfoBounds_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_IntegrityBeamInfoBounds_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityBeamInfoBounds_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_IntegrityBeamInfoBounds_r18_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_IntegrityBeamInfoBounds_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-IntegrityBeamPowerBounds-r18.c b/asn.1/lpp_generated/NR-IntegrityBeamPowerBounds-r18.c new file mode 100644 index 00000000..51c83454 --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityBeamPowerBounds-r18.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-IntegrityBeamPowerBounds-r18.h" + +static int +memb_meanBeamPower_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stdDevBeamPower_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanBeamPower_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stdDevBeamPower_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_IntegrityBeamPowerBounds_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityBeamPowerBounds_r18, meanBeamPower_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanBeamPower_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanBeamPower_r18_constraint_1 + }, + 0, 0, /* No default value */ + "meanBeamPower-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityBeamPowerBounds_r18, stdDevBeamPower_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stdDevBeamPower_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stdDevBeamPower_r18_constraint_1 + }, + 0, 0, /* No default value */ + "stdDevBeamPower-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_IntegrityBeamPowerBounds_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_IntegrityBeamPowerBounds_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* meanBeamPower-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* stdDevBeamPower-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityBeamPowerBounds_r18_specs_1 = { + sizeof(struct NR_IntegrityBeamPowerBounds_r18), + offsetof(struct NR_IntegrityBeamPowerBounds_r18, _asn_ctx), + asn_MAP_NR_IntegrityBeamPowerBounds_r18_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_IntegrityBeamPowerBounds_r18 = { + "NR-IntegrityBeamPowerBounds-r18", + "NR-IntegrityBeamPowerBounds-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_IntegrityBeamPowerBounds_r18_tags_1, + sizeof(asn_DEF_NR_IntegrityBeamPowerBounds_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityBeamPowerBounds_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_IntegrityBeamPowerBounds_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_IntegrityBeamPowerBounds_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityBeamPowerBounds_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_IntegrityBeamPowerBounds_r18_1, + 2, /* Elements count */ + &asn_SPC_NR_IntegrityBeamPowerBounds_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-IntegrityBeamPowerBounds-r18.h b/asn.1/lpp_generated/NR-IntegrityBeamPowerBounds-r18.h new file mode 100644 index 00000000..51348a8a --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityBeamPowerBounds-r18.h @@ -0,0 +1,45 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_IntegrityBeamPowerBounds_r18_H_ +#define _NR_IntegrityBeamPowerBounds_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-IntegrityBeamPowerBounds-r18 */ +typedef struct NR_IntegrityBeamPowerBounds_r18 { + long meanBeamPower_r18; + long stdDevBeamPower_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_IntegrityBeamPowerBounds_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_IntegrityBeamPowerBounds_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityBeamPowerBounds_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_IntegrityBeamPowerBounds_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_IntegrityBeamPowerBounds_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-IntegrityLocationBounds-r18.c b/asn.1/lpp_generated/NR-IntegrityLocationBounds-r18.c new file mode 100644 index 00000000..45a107be --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityLocationBounds-r18.c @@ -0,0 +1,444 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-IntegrityLocationBounds-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_horizontal_r18_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_vertical_r18_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_horizontal_r18_constraint_10(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_vertical_r18_constraint_10(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_units_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horizontal_r18_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_vertical_r18_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horizontal_r18_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_vertical_r18_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_units_r18_value2enum_2[] = { + { 0, 2, "mm" }, + { 1, 2, "cm" }, + { 2, 1, "m" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_units_r18_enum2value_2[] = { + 1, /* cm(1) */ + 2, /* m(2) */ + 0 /* mm(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_units_r18_specs_2 = { + asn_MAP_units_r18_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_units_r18_enum2value_2, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 4, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_units_r18_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_units_r18_2 = { + "units-r18", + "units-r18", + &asn_OP_NativeEnumerated, + asn_DEF_units_r18_tags_2, + sizeof(asn_DEF_units_r18_tags_2) + /sizeof(asn_DEF_units_r18_tags_2[0]) - 1, /* 1 */ + asn_DEF_units_r18_tags_2, /* Same as above */ + sizeof(asn_DEF_units_r18_tags_2) + /sizeof(asn_DEF_units_r18_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_units_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_units_r18_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_meanLocationErrorBound_r18_7[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityLocationBounds_r18__meanLocationErrorBound_r18, horizontal_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horizontal_r18_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horizontal_r18_constraint_7 + }, + 0, 0, /* No default value */ + "horizontal-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityLocationBounds_r18__meanLocationErrorBound_r18, vertical_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_vertical_r18_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_vertical_r18_constraint_7 + }, + 0, 0, /* No default value */ + "vertical-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_meanLocationErrorBound_r18_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_meanLocationErrorBound_r18_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horizontal-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* vertical-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_meanLocationErrorBound_r18_specs_7 = { + sizeof(struct NR_IntegrityLocationBounds_r18__meanLocationErrorBound_r18), + offsetof(struct NR_IntegrityLocationBounds_r18__meanLocationErrorBound_r18, _asn_ctx), + asn_MAP_meanLocationErrorBound_r18_tag2el_7, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_meanLocationErrorBound_r18_7 = { + "meanLocationErrorBound-r18", + "meanLocationErrorBound-r18", + &asn_OP_SEQUENCE, + asn_DEF_meanLocationErrorBound_r18_tags_7, + sizeof(asn_DEF_meanLocationErrorBound_r18_tags_7) + /sizeof(asn_DEF_meanLocationErrorBound_r18_tags_7[0]) - 1, /* 1 */ + asn_DEF_meanLocationErrorBound_r18_tags_7, /* Same as above */ + sizeof(asn_DEF_meanLocationErrorBound_r18_tags_7) + /sizeof(asn_DEF_meanLocationErrorBound_r18_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_meanLocationErrorBound_r18_7, + 2, /* Elements count */ + &asn_SPC_meanLocationErrorBound_r18_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_stdDevLocationErrorBound_r18_10[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityLocationBounds_r18__stdDevLocationErrorBound_r18, horizontal_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horizontal_r18_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horizontal_r18_constraint_10 + }, + 0, 0, /* No default value */ + "horizontal-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityLocationBounds_r18__stdDevLocationErrorBound_r18, vertical_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_vertical_r18_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_vertical_r18_constraint_10 + }, + 0, 0, /* No default value */ + "vertical-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_stdDevLocationErrorBound_r18_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_stdDevLocationErrorBound_r18_tag2el_10[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horizontal-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* vertical-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_stdDevLocationErrorBound_r18_specs_10 = { + sizeof(struct NR_IntegrityLocationBounds_r18__stdDevLocationErrorBound_r18), + offsetof(struct NR_IntegrityLocationBounds_r18__stdDevLocationErrorBound_r18, _asn_ctx), + asn_MAP_stdDevLocationErrorBound_r18_tag2el_10, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_stdDevLocationErrorBound_r18_10 = { + "stdDevLocationErrorBound-r18", + "stdDevLocationErrorBound-r18", + &asn_OP_SEQUENCE, + asn_DEF_stdDevLocationErrorBound_r18_tags_10, + sizeof(asn_DEF_stdDevLocationErrorBound_r18_tags_10) + /sizeof(asn_DEF_stdDevLocationErrorBound_r18_tags_10[0]) - 1, /* 1 */ + asn_DEF_stdDevLocationErrorBound_r18_tags_10, /* Same as above */ + sizeof(asn_DEF_stdDevLocationErrorBound_r18_tags_10) + /sizeof(asn_DEF_stdDevLocationErrorBound_r18_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_stdDevLocationErrorBound_r18_10, + 2, /* Elements count */ + &asn_SPC_stdDevLocationErrorBound_r18_specs_10 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_IntegrityLocationBounds_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityLocationBounds_r18, units_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_units_r18_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "units-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityLocationBounds_r18, meanLocationErrorBound_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_meanLocationErrorBound_r18_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "meanLocationErrorBound-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityLocationBounds_r18, stdDevLocationErrorBound_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_stdDevLocationErrorBound_r18_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stdDevLocationErrorBound-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_IntegrityLocationBounds_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_IntegrityLocationBounds_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* units-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* meanLocationErrorBound-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* stdDevLocationErrorBound-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityLocationBounds_r18_specs_1 = { + sizeof(struct NR_IntegrityLocationBounds_r18), + offsetof(struct NR_IntegrityLocationBounds_r18, _asn_ctx), + asn_MAP_NR_IntegrityLocationBounds_r18_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_IntegrityLocationBounds_r18 = { + "NR-IntegrityLocationBounds-r18", + "NR-IntegrityLocationBounds-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_IntegrityLocationBounds_r18_tags_1, + sizeof(asn_DEF_NR_IntegrityLocationBounds_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityLocationBounds_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_IntegrityLocationBounds_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_IntegrityLocationBounds_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityLocationBounds_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_IntegrityLocationBounds_r18_1, + 3, /* Elements count */ + &asn_SPC_NR_IntegrityLocationBounds_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-IntegrityLocationBounds-r18.h b/asn.1/lpp_generated/NR-IntegrityLocationBounds-r18.h new file mode 100644 index 00000000..a91b3105 --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityLocationBounds-r18.h @@ -0,0 +1,70 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_IntegrityLocationBounds_r18_H_ +#define _NR_IntegrityLocationBounds_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_IntegrityLocationBounds_r18__units_r18 { + NR_IntegrityLocationBounds_r18__units_r18_mm = 0, + NR_IntegrityLocationBounds_r18__units_r18_cm = 1, + NR_IntegrityLocationBounds_r18__units_r18_m = 2 + /* + * Enumeration is extensible + */ +} e_NR_IntegrityLocationBounds_r18__units_r18; + +/* NR-IntegrityLocationBounds-r18 */ +typedef struct NR_IntegrityLocationBounds_r18 { + long units_r18; + struct NR_IntegrityLocationBounds_r18__meanLocationErrorBound_r18 { + long horizontal_r18; + long vertical_r18; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } meanLocationErrorBound_r18; + struct NR_IntegrityLocationBounds_r18__stdDevLocationErrorBound_r18 { + long horizontal_r18; + long vertical_r18; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } stdDevLocationErrorBound_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_IntegrityLocationBounds_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_units_r18_2; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_IntegrityLocationBounds_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityLocationBounds_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_IntegrityLocationBounds_r18_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_IntegrityLocationBounds_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-IntegrityParametersDL-PRS-BeamInfo-r18.c b/asn.1/lpp_generated/NR-IntegrityParametersDL-PRS-BeamInfo-r18.c new file mode 100644 index 00000000..ef4c9cb5 --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityParametersDL-PRS-BeamInfo-r18.c @@ -0,0 +1,98 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-IntegrityParametersDL-PRS-BeamInfo-r18.h" + +static int +memb_dl_PRS_BeamInfoErrorCorrelationTime_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_BeamInfoErrorCorrelationTime_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_IntegrityParametersDL_PRS_BeamInfo_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityParametersDL_PRS_BeamInfo_r18, dl_PRS_BeamInfoErrorCorrelationTime_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_BeamInfoErrorCorrelationTime_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_BeamInfoErrorCorrelationTime_r18_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-BeamInfoErrorCorrelationTime-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_IntegrityParametersDL_PRS_BeamInfo_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_IntegrityParametersDL_PRS_BeamInfo_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* dl-PRS-BeamInfoErrorCorrelationTime-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityParametersDL_PRS_BeamInfo_r18_specs_1 = { + sizeof(struct NR_IntegrityParametersDL_PRS_BeamInfo_r18), + offsetof(struct NR_IntegrityParametersDL_PRS_BeamInfo_r18, _asn_ctx), + asn_MAP_NR_IntegrityParametersDL_PRS_BeamInfo_r18_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_IntegrityParametersDL_PRS_BeamInfo_r18 = { + "NR-IntegrityParametersDL-PRS-BeamInfo-r18", + "NR-IntegrityParametersDL-PRS-BeamInfo-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_IntegrityParametersDL_PRS_BeamInfo_r18_tags_1, + sizeof(asn_DEF_NR_IntegrityParametersDL_PRS_BeamInfo_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityParametersDL_PRS_BeamInfo_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_IntegrityParametersDL_PRS_BeamInfo_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_IntegrityParametersDL_PRS_BeamInfo_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityParametersDL_PRS_BeamInfo_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_IntegrityParametersDL_PRS_BeamInfo_r18_1, + 1, /* Elements count */ + &asn_SPC_NR_IntegrityParametersDL_PRS_BeamInfo_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-IntegrityParametersDL-PRS-BeamInfo-r18.h b/asn.1/lpp_generated/NR-IntegrityParametersDL-PRS-BeamInfo-r18.h new file mode 100644 index 00000000..37d81f72 --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityParametersDL-PRS-BeamInfo-r18.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_IntegrityParametersDL_PRS_BeamInfo_r18_H_ +#define _NR_IntegrityParametersDL_PRS_BeamInfo_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-IntegrityParametersDL-PRS-BeamInfo-r18 */ +typedef struct NR_IntegrityParametersDL_PRS_BeamInfo_r18 { + long dl_PRS_BeamInfoErrorCorrelationTime_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_IntegrityParametersDL_PRS_BeamInfo_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_IntegrityParametersDL_PRS_BeamInfo_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityParametersDL_PRS_BeamInfo_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_IntegrityParametersDL_PRS_BeamInfo_r18_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_IntegrityParametersDL_PRS_BeamInfo_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-IntegrityParametersRTD-Info-r18.c b/asn.1/lpp_generated/NR-IntegrityParametersRTD-Info-r18.c new file mode 100644 index 00000000..bff5137d --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityParametersRTD-Info-r18.c @@ -0,0 +1,98 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-IntegrityParametersRTD-Info-r18.h" + +static int +memb_rtd_ErrorCorrelationTime_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rtd_ErrorCorrelationTime_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_IntegrityParametersRTD_Info_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityParametersRTD_Info_r18, rtd_ErrorCorrelationTime_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rtd_ErrorCorrelationTime_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rtd_ErrorCorrelationTime_r18_constraint_1 + }, + 0, 0, /* No default value */ + "rtd-ErrorCorrelationTime-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_IntegrityParametersRTD_Info_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_IntegrityParametersRTD_Info_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* rtd-ErrorCorrelationTime-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityParametersRTD_Info_r18_specs_1 = { + sizeof(struct NR_IntegrityParametersRTD_Info_r18), + offsetof(struct NR_IntegrityParametersRTD_Info_r18, _asn_ctx), + asn_MAP_NR_IntegrityParametersRTD_Info_r18_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_IntegrityParametersRTD_Info_r18 = { + "NR-IntegrityParametersRTD-Info-r18", + "NR-IntegrityParametersRTD-Info-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_IntegrityParametersRTD_Info_r18_tags_1, + sizeof(asn_DEF_NR_IntegrityParametersRTD_Info_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityParametersRTD_Info_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_IntegrityParametersRTD_Info_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_IntegrityParametersRTD_Info_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityParametersRTD_Info_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_IntegrityParametersRTD_Info_r18_1, + 1, /* Elements count */ + &asn_SPC_NR_IntegrityParametersRTD_Info_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-IntegrityParametersRTD-Info-r18.h b/asn.1/lpp_generated/NR-IntegrityParametersRTD-Info-r18.h new file mode 100644 index 00000000..45c3fc6f --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityParametersRTD-Info-r18.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_IntegrityParametersRTD_Info_r18_H_ +#define _NR_IntegrityParametersRTD_Info_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-IntegrityParametersRTD-Info-r18 */ +typedef struct NR_IntegrityParametersRTD_Info_r18 { + long rtd_ErrorCorrelationTime_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_IntegrityParametersRTD_Info_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_IntegrityParametersRTD_Info_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityParametersRTD_Info_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_IntegrityParametersRTD_Info_r18_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_IntegrityParametersRTD_Info_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-IntegrityParametersTRP-BeamAntennaInfo-r18.c b/asn.1/lpp_generated/NR-IntegrityParametersTRP-BeamAntennaInfo-r18.c new file mode 100644 index 00000000..51e4ed11 --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityParametersTRP-BeamAntennaInfo-r18.c @@ -0,0 +1,98 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-IntegrityParametersTRP-BeamAntennaInfo-r18.h" + +static int +memb_trp_BeamAntennaInfoErrorCorrelationTime_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_trp_BeamAntennaInfoErrorCorrelationTime_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_IntegrityParametersTRP_BeamAntennaInfo_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityParametersTRP_BeamAntennaInfo_r18, trp_BeamAntennaInfoErrorCorrelationTime_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_trp_BeamAntennaInfoErrorCorrelationTime_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_trp_BeamAntennaInfoErrorCorrelationTime_r18_constraint_1 + }, + 0, 0, /* No default value */ + "trp-BeamAntennaInfoErrorCorrelationTime-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_IntegrityParametersTRP_BeamAntennaInfo_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_IntegrityParametersTRP_BeamAntennaInfo_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* trp-BeamAntennaInfoErrorCorrelationTime-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityParametersTRP_BeamAntennaInfo_r18_specs_1 = { + sizeof(struct NR_IntegrityParametersTRP_BeamAntennaInfo_r18), + offsetof(struct NR_IntegrityParametersTRP_BeamAntennaInfo_r18, _asn_ctx), + asn_MAP_NR_IntegrityParametersTRP_BeamAntennaInfo_r18_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_IntegrityParametersTRP_BeamAntennaInfo_r18 = { + "NR-IntegrityParametersTRP-BeamAntennaInfo-r18", + "NR-IntegrityParametersTRP-BeamAntennaInfo-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_IntegrityParametersTRP_BeamAntennaInfo_r18_tags_1, + sizeof(asn_DEF_NR_IntegrityParametersTRP_BeamAntennaInfo_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityParametersTRP_BeamAntennaInfo_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_IntegrityParametersTRP_BeamAntennaInfo_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_IntegrityParametersTRP_BeamAntennaInfo_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityParametersTRP_BeamAntennaInfo_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_IntegrityParametersTRP_BeamAntennaInfo_r18_1, + 1, /* Elements count */ + &asn_SPC_NR_IntegrityParametersTRP_BeamAntennaInfo_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-IntegrityParametersTRP-BeamAntennaInfo-r18.h b/asn.1/lpp_generated/NR-IntegrityParametersTRP-BeamAntennaInfo-r18.h new file mode 100644 index 00000000..dfde6673 --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityParametersTRP-BeamAntennaInfo-r18.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_IntegrityParametersTRP_BeamAntennaInfo_r18_H_ +#define _NR_IntegrityParametersTRP_BeamAntennaInfo_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-IntegrityParametersTRP-BeamAntennaInfo-r18 */ +typedef struct NR_IntegrityParametersTRP_BeamAntennaInfo_r18 { + long trp_BeamAntennaInfoErrorCorrelationTime_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_IntegrityParametersTRP_BeamAntennaInfo_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_IntegrityParametersTRP_BeamAntennaInfo_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityParametersTRP_BeamAntennaInfo_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_IntegrityParametersTRP_BeamAntennaInfo_r18_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_IntegrityParametersTRP_BeamAntennaInfo_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-IntegrityParametersTRP-LocationInfo-r18.c b/asn.1/lpp_generated/NR-IntegrityParametersTRP-LocationInfo-r18.c new file mode 100644 index 00000000..2c68bc51 --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityParametersTRP-LocationInfo-r18.c @@ -0,0 +1,98 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-IntegrityParametersTRP-LocationInfo-r18.h" + +static int +memb_trp_ErrorCorrelationTime_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_trp_ErrorCorrelationTime_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_IntegrityParametersTRP_LocationInfo_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityParametersTRP_LocationInfo_r18, trp_ErrorCorrelationTime_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_trp_ErrorCorrelationTime_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_trp_ErrorCorrelationTime_r18_constraint_1 + }, + 0, 0, /* No default value */ + "trp-ErrorCorrelationTime-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_IntegrityParametersTRP_LocationInfo_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_IntegrityParametersTRP_LocationInfo_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* trp-ErrorCorrelationTime-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityParametersTRP_LocationInfo_r18_specs_1 = { + sizeof(struct NR_IntegrityParametersTRP_LocationInfo_r18), + offsetof(struct NR_IntegrityParametersTRP_LocationInfo_r18, _asn_ctx), + asn_MAP_NR_IntegrityParametersTRP_LocationInfo_r18_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_IntegrityParametersTRP_LocationInfo_r18 = { + "NR-IntegrityParametersTRP-LocationInfo-r18", + "NR-IntegrityParametersTRP-LocationInfo-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_IntegrityParametersTRP_LocationInfo_r18_tags_1, + sizeof(asn_DEF_NR_IntegrityParametersTRP_LocationInfo_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityParametersTRP_LocationInfo_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_IntegrityParametersTRP_LocationInfo_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_IntegrityParametersTRP_LocationInfo_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityParametersTRP_LocationInfo_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_IntegrityParametersTRP_LocationInfo_r18_1, + 1, /* Elements count */ + &asn_SPC_NR_IntegrityParametersTRP_LocationInfo_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-IntegrityParametersTRP-LocationInfo-r18.h b/asn.1/lpp_generated/NR-IntegrityParametersTRP-LocationInfo-r18.h new file mode 100644 index 00000000..24a14b07 --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityParametersTRP-LocationInfo-r18.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_IntegrityParametersTRP_LocationInfo_r18_H_ +#define _NR_IntegrityParametersTRP_LocationInfo_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-IntegrityParametersTRP-LocationInfo-r18 */ +typedef struct NR_IntegrityParametersTRP_LocationInfo_r18 { + long trp_ErrorCorrelationTime_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_IntegrityParametersTRP_LocationInfo_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_IntegrityParametersTRP_LocationInfo_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityParametersTRP_LocationInfo_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_IntegrityParametersTRP_LocationInfo_r18_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_IntegrityParametersTRP_LocationInfo_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-IntegrityRTD-InfoBounds-r18.c b/asn.1/lpp_generated/NR-IntegrityRTD-InfoBounds-r18.c new file mode 100644 index 00000000..9420d0f5 --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityRTD-InfoBounds-r18.c @@ -0,0 +1,228 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-IntegrityRTD-InfoBounds-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_meanRTD_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stdDevRTD_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 31L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_resolution_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanRTD_r18_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stdDevRTD_r18_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_resolution_r18_value2enum_2[] = { + { 0, 5, "mdot1" }, + { 1, 2, "m1" }, + { 2, 3, "m10" }, + { 3, 3, "m30" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_resolution_r18_enum2value_2[] = { + 1, /* m1(1) */ + 2, /* m10(2) */ + 3, /* m30(3) */ + 0 /* mdot1(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_resolution_r18_specs_2 = { + asn_MAP_resolution_r18_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_resolution_r18_enum2value_2, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_resolution_r18_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_resolution_r18_2 = { + "resolution-r18", + "resolution-r18", + &asn_OP_NativeEnumerated, + asn_DEF_resolution_r18_tags_2, + sizeof(asn_DEF_resolution_r18_tags_2) + /sizeof(asn_DEF_resolution_r18_tags_2[0]) - 1, /* 1 */ + asn_DEF_resolution_r18_tags_2, /* Same as above */ + sizeof(asn_DEF_resolution_r18_tags_2) + /sizeof(asn_DEF_resolution_r18_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_resolution_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_resolution_r18_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_IntegrityRTD_InfoBounds_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityRTD_InfoBounds_r18, resolution_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_resolution_r18_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "resolution-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityRTD_InfoBounds_r18, meanRTD_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanRTD_r18_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanRTD_r18_constraint_1 + }, + 0, 0, /* No default value */ + "meanRTD-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityRTD_InfoBounds_r18, stdDevRTD_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stdDevRTD_r18_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stdDevRTD_r18_constraint_1 + }, + 0, 0, /* No default value */ + "stdDevRTD-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_IntegrityRTD_InfoBounds_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_IntegrityRTD_InfoBounds_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* resolution-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* meanRTD-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* stdDevRTD-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityRTD_InfoBounds_r18_specs_1 = { + sizeof(struct NR_IntegrityRTD_InfoBounds_r18), + offsetof(struct NR_IntegrityRTD_InfoBounds_r18, _asn_ctx), + asn_MAP_NR_IntegrityRTD_InfoBounds_r18_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_IntegrityRTD_InfoBounds_r18 = { + "NR-IntegrityRTD-InfoBounds-r18", + "NR-IntegrityRTD-InfoBounds-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_IntegrityRTD_InfoBounds_r18_tags_1, + sizeof(asn_DEF_NR_IntegrityRTD_InfoBounds_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityRTD_InfoBounds_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_IntegrityRTD_InfoBounds_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_IntegrityRTD_InfoBounds_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityRTD_InfoBounds_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_IntegrityRTD_InfoBounds_r18_1, + 3, /* Elements count */ + &asn_SPC_NR_IntegrityRTD_InfoBounds_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-IntegrityRTD-InfoBounds-r18.h b/asn.1/lpp_generated/NR-IntegrityRTD-InfoBounds-r18.h new file mode 100644 index 00000000..56bf4a86 --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityRTD-InfoBounds-r18.h @@ -0,0 +1,59 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_IntegrityRTD_InfoBounds_r18_H_ +#define _NR_IntegrityRTD_InfoBounds_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_IntegrityRTD_InfoBounds_r18__resolution_r18 { + NR_IntegrityRTD_InfoBounds_r18__resolution_r18_mdot1 = 0, + NR_IntegrityRTD_InfoBounds_r18__resolution_r18_m1 = 1, + NR_IntegrityRTD_InfoBounds_r18__resolution_r18_m10 = 2, + NR_IntegrityRTD_InfoBounds_r18__resolution_r18_m30 = 3 + /* + * Enumeration is extensible + */ +} e_NR_IntegrityRTD_InfoBounds_r18__resolution_r18; + +/* NR-IntegrityRTD-InfoBounds-r18 */ +typedef struct NR_IntegrityRTD_InfoBounds_r18 { + long resolution_r18; + long meanRTD_r18; + long stdDevRTD_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_IntegrityRTD_InfoBounds_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_resolution_r18_2; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_IntegrityRTD_InfoBounds_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityRTD_InfoBounds_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_IntegrityRTD_InfoBounds_r18_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_IntegrityRTD_InfoBounds_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-IntegrityRiskParameters-r18.c b/asn.1/lpp_generated/NR-IntegrityRiskParameters-r18.c new file mode 100644 index 00000000..7c3480c9 --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityRiskParameters-r18.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-IntegrityRiskParameters-r18.h" + +static int +memb_nr_ProbOnsetTRP_Fault_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_MeanTRP_FaultDuration_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 3600L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_ProbOnsetTRP_Fault_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_MeanTRP_FaultDuration_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 1, 3600 } /* (1..3600) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_IntegrityRiskParameters_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityRiskParameters_r18, nr_ProbOnsetTRP_Fault_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_ProbOnsetTRP_Fault_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_ProbOnsetTRP_Fault_r18_constraint_1 + }, + 0, 0, /* No default value */ + "nr-ProbOnsetTRP-Fault-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityRiskParameters_r18, nr_MeanTRP_FaultDuration_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_MeanTRP_FaultDuration_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_MeanTRP_FaultDuration_r18_constraint_1 + }, + 0, 0, /* No default value */ + "nr-MeanTRP-FaultDuration-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_IntegrityRiskParameters_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_IntegrityRiskParameters_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-ProbOnsetTRP-Fault-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-MeanTRP-FaultDuration-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityRiskParameters_r18_specs_1 = { + sizeof(struct NR_IntegrityRiskParameters_r18), + offsetof(struct NR_IntegrityRiskParameters_r18, _asn_ctx), + asn_MAP_NR_IntegrityRiskParameters_r18_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_IntegrityRiskParameters_r18 = { + "NR-IntegrityRiskParameters-r18", + "NR-IntegrityRiskParameters-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_IntegrityRiskParameters_r18_tags_1, + sizeof(asn_DEF_NR_IntegrityRiskParameters_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityRiskParameters_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_IntegrityRiskParameters_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_IntegrityRiskParameters_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityRiskParameters_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_IntegrityRiskParameters_r18_1, + 2, /* Elements count */ + &asn_SPC_NR_IntegrityRiskParameters_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-IntegrityRiskParameters-r18.h b/asn.1/lpp_generated/NR-IntegrityRiskParameters-r18.h new file mode 100644 index 00000000..615e00f4 --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityRiskParameters-r18.h @@ -0,0 +1,45 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_IntegrityRiskParameters_r18_H_ +#define _NR_IntegrityRiskParameters_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-IntegrityRiskParameters-r18 */ +typedef struct NR_IntegrityRiskParameters_r18 { + long nr_ProbOnsetTRP_Fault_r18; + long nr_MeanTRP_FaultDuration_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_IntegrityRiskParameters_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_IntegrityRiskParameters_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityRiskParameters_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_IntegrityRiskParameters_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_IntegrityRiskParameters_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-IntegrityServiceAlert-r18.c b/asn.1/lpp_generated/NR-IntegrityServiceAlert-r18.c new file mode 100644 index 00000000..0f584ee4 --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityServiceAlert-r18.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-IntegrityServiceAlert-r18.h" + +#include "NR-TRP-IntegrityServiceAlertPerFreqLayer-r18.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_IntegrityServiceAlert_r18_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_IntegrityServiceAlert_r18_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_TRP_IntegrityServiceAlertPerFreqLayer_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_IntegrityServiceAlert_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_IntegrityServiceAlert_r18_specs_1 = { + sizeof(struct NR_IntegrityServiceAlert_r18), + offsetof(struct NR_IntegrityServiceAlert_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_IntegrityServiceAlert_r18 = { + "NR-IntegrityServiceAlert-r18", + "NR-IntegrityServiceAlert-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_IntegrityServiceAlert_r18_tags_1, + sizeof(asn_DEF_NR_IntegrityServiceAlert_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityServiceAlert_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_IntegrityServiceAlert_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_IntegrityServiceAlert_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityServiceAlert_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_IntegrityServiceAlert_r18_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_IntegrityServiceAlert_r18_1, + 1, /* Single element */ + &asn_SPC_NR_IntegrityServiceAlert_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-IntegrityServiceAlert-r18.h b/asn.1/lpp_generated/NR-IntegrityServiceAlert-r18.h new file mode 100644 index 00000000..60f0d490 --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityServiceAlert-r18.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_IntegrityServiceAlert_r18_H_ +#define _NR_IntegrityServiceAlert_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_TRP_IntegrityServiceAlertPerFreqLayer_r18; + +/* NR-IntegrityServiceAlert-r18 */ +typedef struct NR_IntegrityServiceAlert_r18 { + A_SEQUENCE_OF(struct NR_TRP_IntegrityServiceAlertPerFreqLayer_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_IntegrityServiceAlert_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_IntegrityServiceAlert_r18; +extern asn_SET_OF_specifics_t asn_SPC_NR_IntegrityServiceAlert_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_IntegrityServiceAlert_r18_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_IntegrityServiceAlert_r18_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_IntegrityServiceAlert_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-IntegrityServiceParameters-r18.c b/asn.1/lpp_generated/NR-IntegrityServiceParameters-r18.c new file mode 100644 index 00000000..cb69fcc5 --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityServiceParameters-r18.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-IntegrityServiceParameters-r18.h" + +static int +memb_ir_Minimum_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ir_Maximum_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ir_Minimum_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ir_Maximum_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_IntegrityServiceParameters_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityServiceParameters_r18, ir_Minimum_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ir_Minimum_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ir_Minimum_r18_constraint_1 + }, + 0, 0, /* No default value */ + "ir-Minimum-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_IntegrityServiceParameters_r18, ir_Maximum_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ir_Maximum_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ir_Maximum_r18_constraint_1 + }, + 0, 0, /* No default value */ + "ir-Maximum-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_IntegrityServiceParameters_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_IntegrityServiceParameters_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ir-Minimum-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ir-Maximum-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityServiceParameters_r18_specs_1 = { + sizeof(struct NR_IntegrityServiceParameters_r18), + offsetof(struct NR_IntegrityServiceParameters_r18, _asn_ctx), + asn_MAP_NR_IntegrityServiceParameters_r18_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_IntegrityServiceParameters_r18 = { + "NR-IntegrityServiceParameters-r18", + "NR-IntegrityServiceParameters-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_IntegrityServiceParameters_r18_tags_1, + sizeof(asn_DEF_NR_IntegrityServiceParameters_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityServiceParameters_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_IntegrityServiceParameters_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_IntegrityServiceParameters_r18_tags_1) + /sizeof(asn_DEF_NR_IntegrityServiceParameters_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_IntegrityServiceParameters_r18_1, + 2, /* Elements count */ + &asn_SPC_NR_IntegrityServiceParameters_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-IntegrityServiceParameters-r18.h b/asn.1/lpp_generated/NR-IntegrityServiceParameters-r18.h new file mode 100644 index 00000000..09ae3c5c --- /dev/null +++ b/asn.1/lpp_generated/NR-IntegrityServiceParameters-r18.h @@ -0,0 +1,45 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_IntegrityServiceParameters_r18_H_ +#define _NR_IntegrityServiceParameters_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-IntegrityServiceParameters-r18 */ +typedef struct NR_IntegrityServiceParameters_r18 { + long ir_Minimum_r18; + long ir_Maximum_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_IntegrityServiceParameters_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_IntegrityServiceParameters_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_IntegrityServiceParameters_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_IntegrityServiceParameters_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_IntegrityServiceParameters_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-MeasuredResultsElement-r16.c b/asn.1/lpp_generated/NR-MeasuredResultsElement-r16.c new file mode 100644 index 00000000..dc6d661e --- /dev/null +++ b/asn.1/lpp_generated/NR-MeasuredResultsElement-r16.c @@ -0,0 +1,316 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-MeasuredResultsElement-r16.h" + +#include "NCGI-r15.h" +#include "MeasQuantityResults-r16.h" +#include "ResultsPerSSB-IndexList-r16.h" +#include "ResultsPerCSI-RS-IndexList-r16.h" +static int +memb_systemFrameNumber_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 10UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_ARFCN_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_systemFrameNumber_r16_constr_7 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_ARFCN_r16_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_MeasuredResultsElement_r16__nr_ARFCN_r16, choice.ssb_ARFCN_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssb-ARFCN-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_MeasuredResultsElement_r16__nr_ARFCN_r16, choice.csi_RS_pointA_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "csi-RS-pointA-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_ARFCN_r16_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ssb-ARFCN-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* csi-RS-pointA-r16 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nr_ARFCN_r16_specs_3 = { + sizeof(struct NR_MeasuredResultsElement_r16__nr_ARFCN_r16), + offsetof(struct NR_MeasuredResultsElement_r16__nr_ARFCN_r16, _asn_ctx), + offsetof(struct NR_MeasuredResultsElement_r16__nr_ARFCN_r16, present), + sizeof(((struct NR_MeasuredResultsElement_r16__nr_ARFCN_r16 *)0)->present), + asn_MAP_nr_ARFCN_r16_tag2el_3, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_ARFCN_r16_3 = { + "nr-ARFCN-r16", + "nr-ARFCN-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_ARFCN_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nr_ARFCN_r16_3, + 2, /* Elements count */ + &asn_SPC_nr_ARFCN_r16_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_MeasuredResultsElement_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_MeasuredResultsElement_r16, nr_PhysCellID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_MeasuredResultsElement_r16, nr_ARFCN_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nr_ARFCN_r16_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ARFCN-r16" + }, + { ATF_POINTER, 6, offsetof(struct NR_MeasuredResultsElement_r16, nr_CellGlobalID_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-CellGlobalID-r16" + }, + { ATF_POINTER, 5, offsetof(struct NR_MeasuredResultsElement_r16, systemFrameNumber_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_systemFrameNumber_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_systemFrameNumber_r16_constraint_1 + }, + 0, 0, /* No default value */ + "systemFrameNumber-r16" + }, + { ATF_POINTER, 4, offsetof(struct NR_MeasuredResultsElement_r16, resultsSSB_Cell_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MeasQuantityResults_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "resultsSSB-Cell-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_MeasuredResultsElement_r16, resultsCSI_RS_Cell_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MeasQuantityResults_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "resultsCSI-RS-Cell-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_MeasuredResultsElement_r16, resultsSSB_Indexes_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ResultsPerSSB_IndexList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "resultsSSB-Indexes-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_MeasuredResultsElement_r16, resultsCSI_RS_Indexes_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ResultsPerCSI_RS_IndexList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "resultsCSI-RS-Indexes-r16" + }, +}; +static const int asn_MAP_NR_MeasuredResultsElement_r16_oms_1[] = { 2, 3, 4, 5, 6, 7 }; +static const ber_tlv_tag_t asn_DEF_NR_MeasuredResultsElement_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_MeasuredResultsElement_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-PhysCellID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-ARFCN-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-CellGlobalID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* systemFrameNumber-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* resultsSSB-Cell-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* resultsCSI-RS-Cell-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* resultsSSB-Indexes-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* resultsCSI-RS-Indexes-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_MeasuredResultsElement_r16_specs_1 = { + sizeof(struct NR_MeasuredResultsElement_r16), + offsetof(struct NR_MeasuredResultsElement_r16, _asn_ctx), + asn_MAP_NR_MeasuredResultsElement_r16_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_NR_MeasuredResultsElement_r16_oms_1, /* Optional members */ + 6, 0, /* Root/Additions */ + 8, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_MeasuredResultsElement_r16 = { + "NR-MeasuredResultsElement-r16", + "NR-MeasuredResultsElement-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_MeasuredResultsElement_r16_tags_1, + sizeof(asn_DEF_NR_MeasuredResultsElement_r16_tags_1) + /sizeof(asn_DEF_NR_MeasuredResultsElement_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_MeasuredResultsElement_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_MeasuredResultsElement_r16_tags_1) + /sizeof(asn_DEF_NR_MeasuredResultsElement_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_MeasuredResultsElement_r16_1, + 8, /* Elements count */ + &asn_SPC_NR_MeasuredResultsElement_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-MeasuredResultsElement-r16.h b/asn.1/lpp_generated/NR-MeasuredResultsElement-r16.h new file mode 100644 index 00000000..e5f59e17 --- /dev/null +++ b/asn.1/lpp_generated/NR-MeasuredResultsElement-r16.h @@ -0,0 +1,76 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_MeasuredResultsElement_r16_H_ +#define _NR_MeasuredResultsElement_r16_H_ + + +#include + +/* Including external dependencies */ +#include "NR-PhysCellID-r16.h" +#include +#include "ARFCN-ValueNR-r15.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_MeasuredResultsElement_r16__nr_ARFCN_r16_PR { + NR_MeasuredResultsElement_r16__nr_ARFCN_r16_PR_NOTHING, /* No components present */ + NR_MeasuredResultsElement_r16__nr_ARFCN_r16_PR_ssb_ARFCN_r16, + NR_MeasuredResultsElement_r16__nr_ARFCN_r16_PR_csi_RS_pointA_r16 +} NR_MeasuredResultsElement_r16__nr_ARFCN_r16_PR; + +/* Forward declarations */ +struct NCGI_r15; +struct MeasQuantityResults_r16; +struct ResultsPerSSB_IndexList_r16; +struct ResultsPerCSI_RS_IndexList_r16; + +/* NR-MeasuredResultsElement-r16 */ +typedef struct NR_MeasuredResultsElement_r16 { + NR_PhysCellID_r16_t nr_PhysCellID_r16; + struct NR_MeasuredResultsElement_r16__nr_ARFCN_r16 { + NR_MeasuredResultsElement_r16__nr_ARFCN_r16_PR present; + union NR_MeasuredResultsElement_r16__nr_ARFCN_r16_u { + ARFCN_ValueNR_r15_t ssb_ARFCN_r16; + ARFCN_ValueNR_r15_t csi_RS_pointA_r16; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } nr_ARFCN_r16; + struct NCGI_r15 *nr_CellGlobalID_r16; /* OPTIONAL */ + BIT_STRING_t *systemFrameNumber_r16; /* OPTIONAL */ + struct MeasQuantityResults_r16 *resultsSSB_Cell_r16; /* OPTIONAL */ + struct MeasQuantityResults_r16 *resultsCSI_RS_Cell_r16; /* OPTIONAL */ + struct ResultsPerSSB_IndexList_r16 *resultsSSB_Indexes_r16; /* OPTIONAL */ + struct ResultsPerCSI_RS_IndexList_r16 *resultsCSI_RS_Indexes_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_MeasuredResultsElement_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_MeasuredResultsElement_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_MeasuredResultsElement_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_MeasuredResultsElement_r16_1[8]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_MeasuredResultsElement_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-MeasuredResultsList-r16.c b/asn.1/lpp_generated/NR-MeasuredResultsList-r16.c new file mode 100644 index 00000000..59be934a --- /dev/null +++ b/asn.1/lpp_generated/NR-MeasuredResultsList-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-MeasuredResultsList-r16.h" + +#include "NR-MeasuredResultsElement-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_MeasuredResultsList_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_MeasuredResultsList_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_MeasuredResultsElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_MeasuredResultsList_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_MeasuredResultsList_r16_specs_1 = { + sizeof(struct NR_MeasuredResultsList_r16), + offsetof(struct NR_MeasuredResultsList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_MeasuredResultsList_r16 = { + "NR-MeasuredResultsList-r16", + "NR-MeasuredResultsList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_MeasuredResultsList_r16_tags_1, + sizeof(asn_DEF_NR_MeasuredResultsList_r16_tags_1) + /sizeof(asn_DEF_NR_MeasuredResultsList_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_MeasuredResultsList_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_MeasuredResultsList_r16_tags_1) + /sizeof(asn_DEF_NR_MeasuredResultsList_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_MeasuredResultsList_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_MeasuredResultsList_r16_1, + 1, /* Single element */ + &asn_SPC_NR_MeasuredResultsList_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-MeasuredResultsList-r16.h b/asn.1/lpp_generated/NR-MeasuredResultsList-r16.h similarity index 81% rename from asn.1/generated/NR-MeasuredResultsList-r16.h rename to asn.1/lpp_generated/NR-MeasuredResultsList-r16.h index 5dcc1401..ea6ffa92 100644 --- a/asn.1/generated/NR-MeasuredResultsList-r16.h +++ b/asn.1/lpp_generated/NR-MeasuredResultsList-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_MeasuredResultsList_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_NR_MeasuredResultsList_r16_constr_1; } #endif -/* Referred external types */ -#include "NR-MeasuredResultsElement-r16.h" - #endif /* _NR_MeasuredResultsList_r16_H_ */ #include diff --git a/asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurementElement-r16.c b/asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurementElement-r16.c new file mode 100644 index 00000000..22eb69a1 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurementElement-r16.c @@ -0,0 +1,1540 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-Multi-RTT-AdditionalMeasurementElement-r16.h" + +#include "NR-AdditionalPathList-r16.h" +#include "NR-UE-RxTx-TEG-Info-r17.h" +#include "LOS-NLOS-Indicator-r17.h" +#include "NR-AdditionalPathListExt-r17.h" +#include "NR-PhaseQuality-r18.h" +#include "NR-NTN-UE-RxTxMeasurements-r18.h" +#include "NR-AggregatedDL-PRS-ResourceSetID-Element-r18.h" +#include "NR-RSCP-AdditionalMeasurements-r18.h" +static int +memb_k0_r16_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k1_r16_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k2_r16_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k3_r16_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k4_r16_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k5_r16_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus6_r18_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 524224L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus5_r18_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 262112L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus4_r18_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 131056L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus3_r18_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65528L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus2_r18_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 32764L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus1_r18_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16382L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_FirstPathRSRP_ResultDiff_r17_constraint_23(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 61L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constraint_28(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 2UL && size <= 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_RSCP_r18_constraint_28(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3599L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_RSCP_AdditionalMeasurementsAddSample_r18_constraint_28(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_RSRP_ResultDiff_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 61L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k0_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, 0, 8191 } /* (0..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k1_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k2_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k3_r16_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k4_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k5_r16_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus6_r18_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 19, -1, 0, 524224 } /* (0..524224) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus5_r18_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 18, -1, 0, 262112 } /* (0..262112) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus4_r18_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 0, 131056 } /* (0..131056) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus3_r18_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65528 } /* (0..65528) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus2_r18_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, 0, 32764 } /* (0..32764) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus1_r18_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 16382 } /* (0..16382) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_UE_RxTxTimeDiffAdditional_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_FirstPathRSRP_ResultDiff_r17_constr_25 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 61 } /* (0..61) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_constr_29 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constr_31 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_RSCP_AdditionalMeasurementsAddSample_r18_constr_35 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_constr_37 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constr_31 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_RSCP_r18_constr_33 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_RSCP_AdditionalMeasurementsAddSample_r18_constr_35 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_RSRP_ResultDiff_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 61 } /* (0..61) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_UE_RxTxTimeDiffAdditional_r16_5[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16, choice.k0_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k0_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k0_r16_constraint_5 + }, + 0, 0, /* No default value */ + "k0-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16, choice.k1_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k1_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k1_r16_constraint_5 + }, + 0, 0, /* No default value */ + "k1-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16, choice.k2_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k2_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k2_r16_constraint_5 + }, + 0, 0, /* No default value */ + "k2-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16, choice.k3_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k3_r16_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k3_r16_constraint_5 + }, + 0, 0, /* No default value */ + "k3-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16, choice.k4_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k4_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k4_r16_constraint_5 + }, + 0, 0, /* No default value */ + "k4-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16, choice.k5_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k5_r16_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k5_r16_constraint_5 + }, + 0, 0, /* No default value */ + "k5-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16, choice.kMinus6_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus6_r18_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus6_r18_constraint_5 + }, + 0, 0, /* No default value */ + "kMinus6-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16, choice.kMinus5_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus5_r18_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus5_r18_constraint_5 + }, + 0, 0, /* No default value */ + "kMinus5-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16, choice.kMinus4_r18), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus4_r18_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus4_r18_constraint_5 + }, + 0, 0, /* No default value */ + "kMinus4-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16, choice.kMinus3_r18), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus3_r18_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus3_r18_constraint_5 + }, + 0, 0, /* No default value */ + "kMinus3-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16, choice.kMinus2_r18), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus2_r18_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus2_r18_constraint_5 + }, + 0, 0, /* No default value */ + "kMinus2-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16, choice.kMinus1_r18), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus1_r18_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus1_r18_constraint_5 + }, + 0, 0, /* No default value */ + "kMinus1-r18" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_UE_RxTxTimeDiffAdditional_r16_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* k0-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* k1-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* k2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* k3-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* k4-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* k5-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* kMinus6-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* kMinus5-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* kMinus4-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* kMinus3-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* kMinus2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* kMinus1-r18 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nr_UE_RxTxTimeDiffAdditional_r16_specs_5 = { + sizeof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16), + offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16, _asn_ctx), + offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16, present), + sizeof(((struct NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16 *)0)->present), + asn_MAP_nr_UE_RxTxTimeDiffAdditional_r16_tag2el_5, + 12, /* Count of tags in the map */ + 0, 0, + 6 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_UE_RxTxTimeDiffAdditional_r16_5 = { + "nr-UE-RxTxTimeDiffAdditional-r16", + "nr-UE-RxTxTimeDiffAdditional-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_UE_RxTxTimeDiffAdditional_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nr_UE_RxTxTimeDiffAdditional_r16_5, + 12, /* Elements count */ + &asn_SPC_nr_UE_RxTxTimeDiffAdditional_r16_specs_5 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_23[] = { + { ATF_POINTER, 4, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext1, nr_UE_RxTx_TEG_Info_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_NR_UE_RxTx_TEG_Info_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UE-RxTx-TEG-Info-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext1, nr_DL_PRS_FirstPathRSRP_ResultDiff_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_FirstPathRSRP_ResultDiff_r17_constr_25, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_FirstPathRSRP_ResultDiff_r17_constraint_23 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-FirstPathRSRP-ResultDiff-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext1, nr_los_nlos_IndicatorPerResource_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_Indicator_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-los-nlos-IndicatorPerResource-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext1, nr_AdditionalPathListExt_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_AdditionalPathListExt_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-AdditionalPathListExt-r17" + }, +}; +static const int asn_MAP_ext1_oms_23[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_23[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_23[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-UE-RxTx-TEG-Info-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-FirstPathRSRP-ResultDiff-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-los-nlos-IndicatorPerResource-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* nr-AdditionalPathListExt-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_23 = { + sizeof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext1), + offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_23, + 4, /* Count of tags in the map */ + asn_MAP_ext1_oms_23, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_23 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_23, + sizeof(asn_DEF_ext1_tags_23) + /sizeof(asn_DEF_ext1_tags_23[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_23, /* Same as above */ + sizeof(asn_DEF_ext1_tags_23) + /sizeof(asn_DEF_ext1_tags_23[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_23, + 4, /* Elements count */ + &asn_SPC_ext1_specs_23 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_value2enum_29[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_enum2value_29[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_specs_29 = { + asn_MAP_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_value2enum_29, /* "tag" => N; sorted by tag */ + asn_MAP_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_enum2value_29, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_tags_29[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_29 = { + "nr-UE-RxTxTimeDiffBasedOnAggregatedResources-r18", + "nr-UE-RxTxTimeDiffBasedOnAggregatedResources-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_tags_29, + sizeof(asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_tags_29) + /sizeof(asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_tags_29[0]) - 1, /* 1 */ + asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_tags_29, /* Same as above */ + sizeof(asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_tags_29) + /sizeof(asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_tags_29[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_constr_29, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_specs_29 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_AggregatedDL_PRS_ResourceSetID_List_r18_31[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_AggregatedDL_PRS_ResourceSetID_Element_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_31[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_AggregatedDL_PRS_ResourceSetID_List_r18_specs_31 = { + sizeof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2__nr_AggregatedDL_PRS_ResourceSetID_List_r18), + offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2__nr_AggregatedDL_PRS_ResourceSetID_List_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_31 = { + "nr-AggregatedDL-PRS-ResourceSetID-List-r18", + "nr-AggregatedDL-PRS-ResourceSetID-List-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_31, + sizeof(asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_31) + /sizeof(asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_31[0]) - 1, /* 1 */ + asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_31, /* Same as above */ + sizeof(asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_31) + /sizeof(asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_31[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constr_31, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_AggregatedDL_PRS_ResourceSetID_List_r18_31, + 1, /* Single element */ + &asn_SPC_nr_AggregatedDL_PRS_ResourceSetID_List_r18_specs_31 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_RSCP_AdditionalMeasurementsAddSample_r18_35[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_RSCP_AdditionalMeasurements_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_RSCP_AdditionalMeasurementsAddSample_r18_tags_35[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_RSCP_AdditionalMeasurementsAddSample_r18_specs_35 = { + sizeof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2__nr_RSCP_AdditionalMeasurementsAddSample_r18), + offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2__nr_RSCP_AdditionalMeasurementsAddSample_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_RSCP_AdditionalMeasurementsAddSample_r18_35 = { + "nr-RSCP-AdditionalMeasurementsAddSample-r18", + "nr-RSCP-AdditionalMeasurementsAddSample-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_RSCP_AdditionalMeasurementsAddSample_r18_tags_35, + sizeof(asn_DEF_nr_RSCP_AdditionalMeasurementsAddSample_r18_tags_35) + /sizeof(asn_DEF_nr_RSCP_AdditionalMeasurementsAddSample_r18_tags_35[0]) - 1, /* 1 */ + asn_DEF_nr_RSCP_AdditionalMeasurementsAddSample_r18_tags_35, /* Same as above */ + sizeof(asn_DEF_nr_RSCP_AdditionalMeasurementsAddSample_r18_tags_35) + /sizeof(asn_DEF_nr_RSCP_AdditionalMeasurementsAddSample_r18_tags_35[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_RSCP_AdditionalMeasurementsAddSample_r18_constr_35, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_RSCP_AdditionalMeasurementsAddSample_r18_35, + 1, /* Single element */ + &asn_SPC_nr_RSCP_AdditionalMeasurementsAddSample_r18_specs_35 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_value2enum_37[] = { + { 0, 9, "singleHop" }, + { 1, 11, "multipleHop" } +}; +static const unsigned int asn_MAP_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_enum2value_37[] = { + 1, /* multipleHop(1) */ + 0 /* singleHop(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_specs_37 = { + asn_MAP_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_value2enum_37, /* "tag" => N; sorted by tag */ + asn_MAP_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_enum2value_37, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_37[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_37 = { + "nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18", + "nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_37, + sizeof(asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_37) + /sizeof(asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_37[0]) - 1, /* 1 */ + asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_37, /* Same as above */ + sizeof(asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_37) + /sizeof(asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_37[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_constr_37, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_specs_37 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_28[] = { + { ATF_POINTER, 7, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2, nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_29, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UE-RxTxTimeDiffBasedOnAggregatedResources-r18" + }, + { ATF_POINTER, 6, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2, nr_AggregatedDL_PRS_ResourceSetID_List_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_31, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constr_31, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constraint_28 + }, + 0, 0, /* No default value */ + "nr-AggregatedDL-PRS-ResourceSetID-List-r18" + }, + { ATF_POINTER, 5, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2, nr_RSCP_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_RSCP_r18_constr_33, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_RSCP_r18_constraint_28 + }, + 0, 0, /* No default value */ + "nr-RSCP-r18" + }, + { ATF_POINTER, 4, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2, nr_PhaseQuality_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhaseQuality_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhaseQuality-r18" + }, + { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2, nr_RSCP_AdditionalMeasurementsAddSample_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_nr_RSCP_AdditionalMeasurementsAddSample_r18_35, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_RSCP_AdditionalMeasurementsAddSample_r18_constr_35, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_RSCP_AdditionalMeasurementsAddSample_r18_constraint_28 + }, + 0, 0, /* No default value */ + "nr-RSCP-AdditionalMeasurementsAddSample-r18" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2, nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_37, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2, nr_NTN_UE_RxTxMeasurements_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_NTN_UE_RxTxMeasurements_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-NTN-UE-RxTxMeasurements-r18" + }, +}; +static const int asn_MAP_ext2_oms_28[] = { 0, 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_28[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_28[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-UE-RxTxTimeDiffBasedOnAggregatedResources-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-AggregatedDL-PRS-ResourceSetID-List-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-RSCP-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-PhaseQuality-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-RSCP-AdditionalMeasurementsAddSample-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* nr-NTN-UE-RxTxMeasurements-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_28 = { + sizeof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2), + offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_28, + 7, /* Count of tags in the map */ + asn_MAP_ext2_oms_28, /* Optional members */ + 7, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_28 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_28, + sizeof(asn_DEF_ext2_tags_28) + /sizeof(asn_DEF_ext2_tags_28[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_28, /* Same as above */ + sizeof(asn_DEF_ext2_tags_28) + /sizeof(asn_DEF_ext2_tags_28[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_28, + 7, /* Elements count */ + &asn_SPC_ext2_specs_28 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_Multi_RTT_AdditionalMeasurementElement_r16_1[] = { + { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16, nr_DL_PRS_ResourceID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceID-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16, nr_DL_PRS_ResourceSetID_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceSetID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceSetID-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16, nr_DL_PRS_RSRP_ResultDiff_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_RSRP_ResultDiff_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_RSRP_ResultDiff_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RSRP-ResultDiff-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16, nr_UE_RxTxTimeDiffAdditional_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nr_UE_RxTxTimeDiffAdditional_r16_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UE-RxTxTimeDiffAdditional-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16, nr_TimingQuality_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimingQuality_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-TimingQuality-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16, nr_AdditionalPathList_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_AdditionalPathList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-AdditionalPathList-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16, nr_TimeStamp_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimeStamp_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-TimeStamp-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_ext1_23, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + 0, + &asn_DEF_ext2_28, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_NR_Multi_RTT_AdditionalMeasurementElement_r16_oms_1[] = { 0, 1, 2, 5, 7, 8 }; +static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_AdditionalMeasurementElement_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-ResourceID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-ResourceSetID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-PRS-RSRP-ResultDiff-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-UE-RxTxTimeDiffAdditional-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-TimingQuality-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nr-AdditionalPathList-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* nr-TimeStamp-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_AdditionalMeasurementElement_r16_specs_1 = { + sizeof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16), + offsetof(struct NR_Multi_RTT_AdditionalMeasurementElement_r16, _asn_ctx), + asn_MAP_NR_Multi_RTT_AdditionalMeasurementElement_r16_tag2el_1, + 9, /* Count of tags in the map */ + asn_MAP_NR_Multi_RTT_AdditionalMeasurementElement_r16_oms_1, /* Optional members */ + 4, 2, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16 = { + "NR-Multi-RTT-AdditionalMeasurementElement-r16", + "NR-Multi-RTT-AdditionalMeasurementElement-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16_tags_1, + sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_Multi_RTT_AdditionalMeasurementElement_r16_1, + 9, /* Elements count */ + &asn_SPC_NR_Multi_RTT_AdditionalMeasurementElement_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurementElement-r16.h b/asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurementElement-r16.h new file mode 100644 index 00000000..9117df42 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurementElement-r16.h @@ -0,0 +1,149 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_Multi_RTT_AdditionalMeasurementElement_r16_H_ +#define _NR_Multi_RTT_AdditionalMeasurementElement_r16_H_ + + +#include + +/* Including external dependencies */ +#include "NR-DL-PRS-ResourceID-r16.h" +#include "NR-DL-PRS-ResourceSetID-r16.h" +#include +#include "NR-TimingQuality-r16.h" +#include "NR-TimeStamp-r16.h" +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16_PR { + NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16_PR_NOTHING, /* No components present */ + NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16_PR_k0_r16, + NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16_PR_k1_r16, + NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16_PR_k2_r16, + NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16_PR_k3_r16, + NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16_PR_k4_r16, + NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16_PR_k5_r16, + /* Extensions may appear below */ + NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16_PR_kMinus6_r18, + NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16_PR_kMinus5_r18, + NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16_PR_kMinus4_r18, + NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16_PR_kMinus3_r18, + NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16_PR_kMinus2_r18, + NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16_PR_kMinus1_r18 +} NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16_PR; +typedef enum NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2__nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18 { + NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2__nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_true = 0 +} e_NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2__nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18; +typedef enum NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2__nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18 { + NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2__nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_singleHop = 0, + NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2__nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_multipleHop = 1 +} e_NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2__nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18; + +/* Forward declarations */ +struct NR_AdditionalPathList_r16; +struct NR_UE_RxTx_TEG_Info_r17; +struct LOS_NLOS_Indicator_r17; +struct NR_AdditionalPathListExt_r17; +struct NR_PhaseQuality_r18; +struct NR_NTN_UE_RxTxMeasurements_r18; +struct NR_AggregatedDL_PRS_ResourceSetID_Element_r18; +struct NR_RSCP_AdditionalMeasurements_r18; + +/* NR-Multi-RTT-AdditionalMeasurementElement-r16 */ +typedef struct NR_Multi_RTT_AdditionalMeasurementElement_r16 { + NR_DL_PRS_ResourceID_r16_t *nr_DL_PRS_ResourceID_r16; /* OPTIONAL */ + NR_DL_PRS_ResourceSetID_r16_t *nr_DL_PRS_ResourceSetID_r16; /* OPTIONAL */ + long *nr_DL_PRS_RSRP_ResultDiff_r16; /* OPTIONAL */ + struct NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16 { + NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16_PR present; + union NR_Multi_RTT_AdditionalMeasurementElement_r16__nr_UE_RxTxTimeDiffAdditional_r16_u { + long k0_r16; + long k1_r16; + long k2_r16; + long k3_r16; + long k4_r16; + long k5_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + long kMinus6_r18; + long kMinus5_r18; + long kMinus4_r18; + long kMinus3_r18; + long kMinus2_r18; + long kMinus1_r18; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } nr_UE_RxTxTimeDiffAdditional_r16; + NR_TimingQuality_r16_t nr_TimingQuality_r16; + struct NR_AdditionalPathList_r16 *nr_AdditionalPathList_r16; /* OPTIONAL */ + NR_TimeStamp_r16_t nr_TimeStamp_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext1 { + struct NR_UE_RxTx_TEG_Info_r17 *nr_UE_RxTx_TEG_Info_r17; /* OPTIONAL */ + long *nr_DL_PRS_FirstPathRSRP_ResultDiff_r17; /* OPTIONAL */ + struct LOS_NLOS_Indicator_r17 *nr_los_nlos_IndicatorPerResource_r17; /* OPTIONAL */ + struct NR_AdditionalPathListExt_r17 *nr_AdditionalPathListExt_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2 { + long *nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18; /* OPTIONAL */ + struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2__nr_AggregatedDL_PRS_ResourceSetID_List_r18 { + A_SEQUENCE_OF(struct NR_AggregatedDL_PRS_ResourceSetID_Element_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_AggregatedDL_PRS_ResourceSetID_List_r18; + long *nr_RSCP_r18; /* OPTIONAL */ + struct NR_PhaseQuality_r18 *nr_PhaseQuality_r18; /* OPTIONAL */ + struct NR_Multi_RTT_AdditionalMeasurementElement_r16__ext2__nr_RSCP_AdditionalMeasurementsAddSample_r18 { + A_SEQUENCE_OF(struct NR_RSCP_AdditionalMeasurements_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_RSCP_AdditionalMeasurementsAddSample_r18; + long *nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18; /* OPTIONAL */ + struct NR_NTN_UE_RxTxMeasurements_r18 *nr_NTN_UE_RxTxMeasurements_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_Multi_RTT_AdditionalMeasurementElement_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_29; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_37; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_AdditionalMeasurementElement_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_AdditionalMeasurementElement_r16_1[9]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_Multi_RTT_AdditionalMeasurementElement_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurements-r16.c b/asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurements-r16.c new file mode 100644 index 00000000..6a8b6ab6 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurements-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-Multi-RTT-AdditionalMeasurements-r16.h" + +#include "NR-Multi-RTT-AdditionalMeasurementElement-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_Multi_RTT_AdditionalMeasurements_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_Multi_RTT_AdditionalMeasurements_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_AdditionalMeasurements_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_Multi_RTT_AdditionalMeasurements_r16_specs_1 = { + sizeof(struct NR_Multi_RTT_AdditionalMeasurements_r16), + offsetof(struct NR_Multi_RTT_AdditionalMeasurements_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_AdditionalMeasurements_r16 = { + "NR-Multi-RTT-AdditionalMeasurements-r16", + "NR-Multi-RTT-AdditionalMeasurements-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_Multi_RTT_AdditionalMeasurements_r16_tags_1, + sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurements_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurements_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_Multi_RTT_AdditionalMeasurements_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurements_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurements_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_Multi_RTT_AdditionalMeasurements_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_Multi_RTT_AdditionalMeasurements_r16_1, + 1, /* Single element */ + &asn_SPC_NR_Multi_RTT_AdditionalMeasurements_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-Multi-RTT-AdditionalMeasurements-r16.h b/asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurements-r16.h similarity index 82% rename from asn.1/generated/NR-Multi-RTT-AdditionalMeasurements-r16.h rename to asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurements-r16.h index 0e23218b..9198744c 100644 --- a/asn.1/generated/NR-Multi-RTT-AdditionalMeasurements-r16.h +++ b/asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurements-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_Multi_RTT_AdditionalMeasurements_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_NR_Multi_RTT_AdditionalMeasurements_r1 } #endif -/* Referred external types */ -#include "NR-Multi-RTT-AdditionalMeasurementElement-r16.h" - #endif /* _NR_Multi_RTT_AdditionalMeasurements_r16_H_ */ #include diff --git a/asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurementsExt-r17.c b/asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurementsExt-r17.c new file mode 100644 index 00000000..64d52417 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurementsExt-r17.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-Multi-RTT-AdditionalMeasurementsExt-r17.h" + +#include "NR-Multi-RTT-AdditionalMeasurementElement-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_Multi_RTT_AdditionalMeasurementsExt_r17_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 31 } /* (SIZE(1..31)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_Multi_RTT_AdditionalMeasurementsExt_r17_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_Multi_RTT_AdditionalMeasurementElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_AdditionalMeasurementsExt_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_Multi_RTT_AdditionalMeasurementsExt_r17_specs_1 = { + sizeof(struct NR_Multi_RTT_AdditionalMeasurementsExt_r17), + offsetof(struct NR_Multi_RTT_AdditionalMeasurementsExt_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_AdditionalMeasurementsExt_r17 = { + "NR-Multi-RTT-AdditionalMeasurementsExt-r17", + "NR-Multi-RTT-AdditionalMeasurementsExt-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_Multi_RTT_AdditionalMeasurementsExt_r17_tags_1, + sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurementsExt_r17_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurementsExt_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_Multi_RTT_AdditionalMeasurementsExt_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurementsExt_r17_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_AdditionalMeasurementsExt_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_Multi_RTT_AdditionalMeasurementsExt_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_Multi_RTT_AdditionalMeasurementsExt_r17_1, + 1, /* Single element */ + &asn_SPC_NR_Multi_RTT_AdditionalMeasurementsExt_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurementsExt-r17.h b/asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurementsExt-r17.h new file mode 100644 index 00000000..2ece049b --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-AdditionalMeasurementsExt-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_Multi_RTT_AdditionalMeasurementsExt_r17_H_ +#define _NR_Multi_RTT_AdditionalMeasurementsExt_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_Multi_RTT_AdditionalMeasurementElement_r16; + +/* NR-Multi-RTT-AdditionalMeasurementsExt-r17 */ +typedef struct NR_Multi_RTT_AdditionalMeasurementsExt_r17 { + A_SEQUENCE_OF(struct NR_Multi_RTT_AdditionalMeasurementElement_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_Multi_RTT_AdditionalMeasurementsExt_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_AdditionalMeasurementsExt_r17; +extern asn_SET_OF_specifics_t asn_SPC_NR_Multi_RTT_AdditionalMeasurementsExt_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_AdditionalMeasurementsExt_r17_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_Multi_RTT_AdditionalMeasurementsExt_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_Multi_RTT_AdditionalMeasurementsExt_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-Multi-RTT-Error-r16.c b/asn.1/lpp_generated/NR-Multi-RTT-Error-r16.c new file mode 100644 index 00000000..c4a8b659 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-Error-r16.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-Multi-RTT-Error-r16.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_Multi_RTT_Error_r16_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_Multi_RTT_Error_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_Error_r16, choice.locationServerErrorCauses_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_Multi_RTT_LocationServerErrorCauses_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationServerErrorCauses-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_Error_r16, choice.targetDeviceErrorCauses_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "targetDeviceErrorCauses-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_Error_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses-r16 */ +}; +asn_CHOICE_specifics_t asn_SPC_NR_Multi_RTT_Error_r16_specs_1 = { + sizeof(struct NR_Multi_RTT_Error_r16), + offsetof(struct NR_Multi_RTT_Error_r16, _asn_ctx), + offsetof(struct NR_Multi_RTT_Error_r16, present), + sizeof(((struct NR_Multi_RTT_Error_r16 *)0)->present), + asn_MAP_NR_Multi_RTT_Error_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_Error_r16 = { + "NR-Multi-RTT-Error-r16", + "NR-Multi-RTT-Error-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_Multi_RTT_Error_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_NR_Multi_RTT_Error_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_Multi_RTT_Error_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-Multi-RTT-Error-r16.h b/asn.1/lpp_generated/NR-Multi-RTT-Error-r16.h similarity index 86% rename from asn.1/generated/NR-Multi-RTT-Error-r16.h rename to asn.1/lpp_generated/NR-Multi-RTT-Error-r16.h index 32ce1de8..9093b147 100644 --- a/asn.1/generated/NR-Multi-RTT-Error-r16.h +++ b/asn.1/lpp_generated/NR-Multi-RTT-Error-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_Multi_RTT_Error_r16_H_ diff --git a/asn.1/lpp_generated/NR-Multi-RTT-LocationServerErrorCauses-r16.c b/asn.1/lpp_generated/NR-Multi-RTT-LocationServerErrorCauses-r16.c new file mode 100644 index 00000000..36e7e43a --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-LocationServerErrorCauses-r16.c @@ -0,0 +1,130 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-Multi-RTT-LocationServerErrorCauses-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_r16_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 34, "assistanceDataNotSupportedByServer" }, + { 2, 55, "assistanceDataSupportedButCurrentlyNotAvailableByServer" }, + { 3, 43, "on-demand-dl-prs-NotSupportedByServer-v1700" }, + { 4, 64, "on-demand-dl-prs-SupportedButCurrentlyNotAvailableByServer-v1700" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_r16_enum2value_2[] = { + 1, /* assistanceDataNotSupportedByServer(1) */ + 2, /* assistanceDataSupportedButCurrentlyNotAvailableByServer(2) */ + 3, /* on-demand-dl-prs-NotSupportedByServer-v1700(3) */ + 4, /* on-demand-dl-prs-SupportedButCurrentlyNotAvailableByServer-v1700(4) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_r16_specs_2 = { + asn_MAP_cause_r16_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_r16_enum2value_2, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 4, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_r16_2 = { + "cause-r16", + "cause-r16", + &asn_OP_NativeEnumerated, + asn_DEF_cause_r16_tags_2, + sizeof(asn_DEF_cause_r16_tags_2) + /sizeof(asn_DEF_cause_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_r16_tags_2) + /sizeof(asn_DEF_cause_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_r16_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_Multi_RTT_LocationServerErrorCauses_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_LocationServerErrorCauses_r16, cause_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_LocationServerErrorCauses_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_LocationServerErrorCauses_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_LocationServerErrorCauses_r16_specs_1 = { + sizeof(struct NR_Multi_RTT_LocationServerErrorCauses_r16), + offsetof(struct NR_Multi_RTT_LocationServerErrorCauses_r16, _asn_ctx), + asn_MAP_NR_Multi_RTT_LocationServerErrorCauses_r16_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_LocationServerErrorCauses_r16 = { + "NR-Multi-RTT-LocationServerErrorCauses-r16", + "NR-Multi-RTT-LocationServerErrorCauses-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_Multi_RTT_LocationServerErrorCauses_r16_tags_1, + sizeof(asn_DEF_NR_Multi_RTT_LocationServerErrorCauses_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_LocationServerErrorCauses_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_Multi_RTT_LocationServerErrorCauses_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_Multi_RTT_LocationServerErrorCauses_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_LocationServerErrorCauses_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_Multi_RTT_LocationServerErrorCauses_r16_1, + 1, /* Elements count */ + &asn_SPC_NR_Multi_RTT_LocationServerErrorCauses_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-Multi-RTT-LocationServerErrorCauses-r16.h b/asn.1/lpp_generated/NR-Multi-RTT-LocationServerErrorCauses-r16.h similarity index 75% rename from asn.1/generated/NR-Multi-RTT-LocationServerErrorCauses-r16.h rename to asn.1/lpp_generated/NR-Multi-RTT-LocationServerErrorCauses-r16.h index b0243bed..b2a4881d 100644 --- a/asn.1/generated/NR-Multi-RTT-LocationServerErrorCauses-r16.h +++ b/asn.1/lpp_generated/NR-Multi-RTT-LocationServerErrorCauses-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_Multi_RTT_LocationServerErrorCauses_r16_H_ @@ -23,10 +23,12 @@ extern "C" { typedef enum NR_Multi_RTT_LocationServerErrorCauses_r16__cause_r16 { NR_Multi_RTT_LocationServerErrorCauses_r16__cause_r16_undefined = 0, NR_Multi_RTT_LocationServerErrorCauses_r16__cause_r16_assistanceDataNotSupportedByServer = 1, - NR_Multi_RTT_LocationServerErrorCauses_r16__cause_r16_assistanceDataSupportedButCurrentlyNotAvailableByServer = 2 + NR_Multi_RTT_LocationServerErrorCauses_r16__cause_r16_assistanceDataSupportedButCurrentlyNotAvailableByServer = 2, /* * Enumeration is extensible */ + NR_Multi_RTT_LocationServerErrorCauses_r16__cause_r16_on_demand_dl_prs_NotSupportedByServer_v1700 = 3, + NR_Multi_RTT_LocationServerErrorCauses_r16__cause_r16_on_demand_dl_prs_SupportedButCurrentlyNotAvailableByServer_v1700 = 4 } e_NR_Multi_RTT_LocationServerErrorCauses_r16__cause_r16; /* NR-Multi-RTT-LocationServerErrorCauses-r16 */ diff --git a/asn.1/lpp_generated/NR-Multi-RTT-MeasElement-r16.c b/asn.1/lpp_generated/NR-Multi-RTT-MeasElement-r16.c new file mode 100644 index 00000000..19a3bd15 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-MeasElement-r16.c @@ -0,0 +1,1762 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-Multi-RTT-MeasElement-r16.h" + +#include "NCGI-r15.h" +#include "NR-AdditionalPathList-r16.h" +#include "NR-Multi-RTT-AdditionalMeasurements-r16.h" +#include "NR-UE-RxTx-TEG-Info-r17.h" +#include "NR-AdditionalPathListExt-r17.h" +#include "NR-Multi-RTT-AdditionalMeasurementsExt-r17.h" +#include "NR-PhaseQuality-r18.h" +#include "NR-NTN-UE-RxTxMeasurements-r18.h" +#include "NR-AggregatedDL-PRS-ResourceSetID-Element-r18.h" +#include "NR-RSCP-AdditionalMeasurements-r18.h" +static int +memb_k0_r16_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1970049L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k1_r16_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 985025L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k2_r16_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 492513L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k3_r16_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 246257L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k4_r16_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 123129L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_k5_r16_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 61565L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus6_r18_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 126083073L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus5_r18_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63041537L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus4_r18_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 31520769L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus3_r18_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15760385L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus2_r18_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7880193L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kMinus1_r18_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3940097L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_FirstPathRSRP_Result_r17_constraint_28(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 126L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constraint_36(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 2UL && size <= 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_RSCP_r18_constraint_36(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3599L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_RSCP_AddSampleMeasurements_r18_constraint_36(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_PRS_ID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_RSRP_Result_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 126L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k0_r16_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, 0, 1970049 } /* (0..1970049) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k1_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 20, -1, 0, 985025 } /* (0..985025) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k2_r16_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 19, -1, 0, 492513 } /* (0..492513) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k3_r16_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 18, -1, 0, 246257 } /* (0..246257) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k4_r16_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 0, 123129 } /* (0..123129) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_k5_r16_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 61565 } /* (0..61565) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus6_r18_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 27, -1, 0, 126083073 } /* (0..126083073) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus5_r18_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 26, -1, 0, 63041537 } /* (0..63041537) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus4_r18_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 25, -1, 0, 31520769 } /* (0..31520769) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus3_r18_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, 0, 15760385 } /* (0..15760385) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus2_r18_constr_20 CC_NOTUSED = { + { APC_CONSTRAINED, 23, -1, 0, 7880193 } /* (0..7880193) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kMinus1_r18_constr_21 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, 0, 3940097 } /* (0..3940097) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_UE_RxTxTimeDiff_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_los_nlos_Indicator_r17_constr_31 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_FirstPathRSRP_Result_r17_constr_30 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 126 } /* (0..126) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_constr_37 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constr_39 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_RSCP_AddSampleMeasurements_r18_constr_43 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_constr_45 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constr_39 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_RSCP_r18_constr_41 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_RSCP_AddSampleMeasurements_r18_constr_43 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ID_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_RSRP_Result_r16_constr_25 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 126 } /* (0..126) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_UE_RxTxTimeDiff_r16_8[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16, choice.k0_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k0_r16_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k0_r16_constraint_8 + }, + 0, 0, /* No default value */ + "k0-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16, choice.k1_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k1_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k1_r16_constraint_8 + }, + 0, 0, /* No default value */ + "k1-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16, choice.k2_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k2_r16_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k2_r16_constraint_8 + }, + 0, 0, /* No default value */ + "k2-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16, choice.k3_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k3_r16_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k3_r16_constraint_8 + }, + 0, 0, /* No default value */ + "k3-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16, choice.k4_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k4_r16_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k4_r16_constraint_8 + }, + 0, 0, /* No default value */ + "k4-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16, choice.k5_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_k5_r16_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_k5_r16_constraint_8 + }, + 0, 0, /* No default value */ + "k5-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16, choice.kMinus6_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus6_r18_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus6_r18_constraint_8 + }, + 0, 0, /* No default value */ + "kMinus6-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16, choice.kMinus5_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus5_r18_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus5_r18_constraint_8 + }, + 0, 0, /* No default value */ + "kMinus5-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16, choice.kMinus4_r18), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus4_r18_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus4_r18_constraint_8 + }, + 0, 0, /* No default value */ + "kMinus4-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16, choice.kMinus3_r18), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus3_r18_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus3_r18_constraint_8 + }, + 0, 0, /* No default value */ + "kMinus3-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16, choice.kMinus2_r18), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus2_r18_constr_20, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus2_r18_constraint_8 + }, + 0, 0, /* No default value */ + "kMinus2-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16, choice.kMinus1_r18), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kMinus1_r18_constr_21, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kMinus1_r18_constraint_8 + }, + 0, 0, /* No default value */ + "kMinus1-r18" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_UE_RxTxTimeDiff_r16_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* k0-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* k1-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* k2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* k3-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* k4-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* k5-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* kMinus6-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* kMinus5-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* kMinus4-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* kMinus3-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* kMinus2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* kMinus1-r18 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nr_UE_RxTxTimeDiff_r16_specs_8 = { + sizeof(struct NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16), + offsetof(struct NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16, _asn_ctx), + offsetof(struct NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16, present), + sizeof(((struct NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16 *)0)->present), + asn_MAP_nr_UE_RxTxTimeDiff_r16_tag2el_8, + 12, /* Count of tags in the map */ + 0, 0, + 6 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_UE_RxTxTimeDiff_r16_8 = { + "nr-UE-RxTxTimeDiff-r16", + "nr-UE-RxTxTimeDiff-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_UE_RxTxTimeDiff_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nr_UE_RxTxTimeDiff_r16_8, + 12, /* Elements count */ + &asn_SPC_nr_UE_RxTxTimeDiff_r16_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_los_nlos_Indicator_r17_31[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17, choice.perTRP_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_Indicator_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "perTRP-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17, choice.perResource_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_Indicator_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "perResource-r17" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_los_nlos_Indicator_r17_tag2el_31[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* perTRP-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* perResource-r17 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nr_los_nlos_Indicator_r17_specs_31 = { + sizeof(struct NR_Multi_RTT_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17), + offsetof(struct NR_Multi_RTT_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17, _asn_ctx), + offsetof(struct NR_Multi_RTT_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17, present), + sizeof(((struct NR_Multi_RTT_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17 *)0)->present), + asn_MAP_nr_los_nlos_Indicator_r17_tag2el_31, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_los_nlos_Indicator_r17_31 = { + "nr-los-nlos-Indicator-r17", + "nr-los-nlos-Indicator-r17", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_los_nlos_Indicator_r17_constr_31, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nr_los_nlos_Indicator_r17_31, + 2, /* Elements count */ + &asn_SPC_nr_los_nlos_Indicator_r17_specs_31 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_28[] = { + { ATF_POINTER, 5, offsetof(struct NR_Multi_RTT_MeasElement_r16__ext1, nr_UE_RxTx_TEG_Info_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_NR_UE_RxTx_TEG_Info_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UE-RxTx-TEG-Info-r17" + }, + { ATF_POINTER, 4, offsetof(struct NR_Multi_RTT_MeasElement_r16__ext1, nr_DL_PRS_FirstPathRSRP_Result_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_FirstPathRSRP_Result_r17_constr_30, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_FirstPathRSRP_Result_r17_constraint_28 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-FirstPathRSRP-Result-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_MeasElement_r16__ext1, nr_los_nlos_Indicator_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nr_los_nlos_Indicator_r17_31, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-los-nlos-Indicator-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_MeasElement_r16__ext1, nr_AdditionalPathListExt_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_AdditionalPathListExt_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-AdditionalPathListExt-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_MeasElement_r16__ext1, nr_Multi_RTT_AdditionalMeasurementsExt_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_Multi_RTT_AdditionalMeasurementsExt_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-Multi-RTT-AdditionalMeasurementsExt-r17" + }, +}; +static const int asn_MAP_ext1_oms_28[] = { 0, 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_28[] = { + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_28[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-UE-RxTx-TEG-Info-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-FirstPathRSRP-Result-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-los-nlos-Indicator-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-AdditionalPathListExt-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* nr-Multi-RTT-AdditionalMeasurementsExt-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_28 = { + sizeof(struct NR_Multi_RTT_MeasElement_r16__ext1), + offsetof(struct NR_Multi_RTT_MeasElement_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_28, + 5, /* Count of tags in the map */ + asn_MAP_ext1_oms_28, /* Optional members */ + 5, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_28 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_28, + sizeof(asn_DEF_ext1_tags_28) + /sizeof(asn_DEF_ext1_tags_28[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_28, /* Same as above */ + sizeof(asn_DEF_ext1_tags_28) + /sizeof(asn_DEF_ext1_tags_28[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_28, + 5, /* Elements count */ + &asn_SPC_ext1_specs_28 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_value2enum_37[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_enum2value_37[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_specs_37 = { + asn_MAP_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_value2enum_37, /* "tag" => N; sorted by tag */ + asn_MAP_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_enum2value_37, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_tags_37[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_37 = { + "nr-UE-RxTxTimeDiffBasedOnAggregatedResources-r18", + "nr-UE-RxTxTimeDiffBasedOnAggregatedResources-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_tags_37, + sizeof(asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_tags_37) + /sizeof(asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_tags_37[0]) - 1, /* 1 */ + asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_tags_37, /* Same as above */ + sizeof(asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_tags_37) + /sizeof(asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_tags_37[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_constr_37, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_specs_37 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_AggregatedDL_PRS_ResourceSetID_List_r18_39[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_AggregatedDL_PRS_ResourceSetID_Element_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_39[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_AggregatedDL_PRS_ResourceSetID_List_r18_specs_39 = { + sizeof(struct NR_Multi_RTT_MeasElement_r16__ext2__nr_AggregatedDL_PRS_ResourceSetID_List_r18), + offsetof(struct NR_Multi_RTT_MeasElement_r16__ext2__nr_AggregatedDL_PRS_ResourceSetID_List_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_39 = { + "nr-AggregatedDL-PRS-ResourceSetID-List-r18", + "nr-AggregatedDL-PRS-ResourceSetID-List-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_39, + sizeof(asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_39) + /sizeof(asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_39[0]) - 1, /* 1 */ + asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_39, /* Same as above */ + sizeof(asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_39) + /sizeof(asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_tags_39[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constr_39, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_AggregatedDL_PRS_ResourceSetID_List_r18_39, + 1, /* Single element */ + &asn_SPC_nr_AggregatedDL_PRS_ResourceSetID_List_r18_specs_39 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_RSCP_AddSampleMeasurements_r18_43[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_RSCP_AdditionalMeasurements_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_RSCP_AddSampleMeasurements_r18_tags_43[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_RSCP_AddSampleMeasurements_r18_specs_43 = { + sizeof(struct NR_Multi_RTT_MeasElement_r16__ext2__nr_RSCP_AddSampleMeasurements_r18), + offsetof(struct NR_Multi_RTT_MeasElement_r16__ext2__nr_RSCP_AddSampleMeasurements_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_RSCP_AddSampleMeasurements_r18_43 = { + "nr-RSCP-AddSampleMeasurements-r18", + "nr-RSCP-AddSampleMeasurements-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_RSCP_AddSampleMeasurements_r18_tags_43, + sizeof(asn_DEF_nr_RSCP_AddSampleMeasurements_r18_tags_43) + /sizeof(asn_DEF_nr_RSCP_AddSampleMeasurements_r18_tags_43[0]) - 1, /* 1 */ + asn_DEF_nr_RSCP_AddSampleMeasurements_r18_tags_43, /* Same as above */ + sizeof(asn_DEF_nr_RSCP_AddSampleMeasurements_r18_tags_43) + /sizeof(asn_DEF_nr_RSCP_AddSampleMeasurements_r18_tags_43[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_RSCP_AddSampleMeasurements_r18_constr_43, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_RSCP_AddSampleMeasurements_r18_43, + 1, /* Single element */ + &asn_SPC_nr_RSCP_AddSampleMeasurements_r18_specs_43 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_value2enum_45[] = { + { 0, 9, "singleHop" }, + { 1, 11, "multipleHop" } +}; +static const unsigned int asn_MAP_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_enum2value_45[] = { + 1, /* multipleHop(1) */ + 0 /* singleHop(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_specs_45 = { + asn_MAP_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_value2enum_45, /* "tag" => N; sorted by tag */ + asn_MAP_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_enum2value_45, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_45[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_45 = { + "nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18", + "nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_45, + sizeof(asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_45) + /sizeof(asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_45[0]) - 1, /* 1 */ + asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_45, /* Same as above */ + sizeof(asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_45) + /sizeof(asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_tags_45[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_constr_45, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_specs_45 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_36[] = { + { ATF_POINTER, 7, offsetof(struct NR_Multi_RTT_MeasElement_r16__ext2, nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_37, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UE-RxTxTimeDiffBasedOnAggregatedResources-r18" + }, + { ATF_POINTER, 6, offsetof(struct NR_Multi_RTT_MeasElement_r16__ext2, nr_AggregatedDL_PRS_ResourceSetID_List_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_nr_AggregatedDL_PRS_ResourceSetID_List_r18_39, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constr_39, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_AggregatedDL_PRS_ResourceSetID_List_r18_constraint_36 + }, + 0, 0, /* No default value */ + "nr-AggregatedDL-PRS-ResourceSetID-List-r18" + }, + { ATF_POINTER, 5, offsetof(struct NR_Multi_RTT_MeasElement_r16__ext2, nr_RSCP_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_RSCP_r18_constr_41, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_RSCP_r18_constraint_36 + }, + 0, 0, /* No default value */ + "nr-RSCP-r18" + }, + { ATF_POINTER, 4, offsetof(struct NR_Multi_RTT_MeasElement_r16__ext2, nr_PhaseQuality_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhaseQuality_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhaseQuality-r18" + }, + { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_MeasElement_r16__ext2, nr_RSCP_AddSampleMeasurements_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_nr_RSCP_AddSampleMeasurements_r18_43, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_RSCP_AddSampleMeasurements_r18_constr_43, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_RSCP_AddSampleMeasurements_r18_constraint_36 + }, + 0, 0, /* No default value */ + "nr-RSCP-AddSampleMeasurements-r18" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_MeasElement_r16__ext2, nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_45, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_MeasElement_r16__ext2, nr_NTN_UE_RxTxMeasurements_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_NTN_UE_RxTxMeasurements_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-NTN-UE-RxTxMeasurements-r18" + }, +}; +static const int asn_MAP_ext2_oms_36[] = { 0, 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_36[] = { + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_36[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-UE-RxTxTimeDiffBasedOnAggregatedResources-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-AggregatedDL-PRS-ResourceSetID-List-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-RSCP-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-PhaseQuality-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-RSCP-AddSampleMeasurements-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* nr-NTN-UE-RxTxMeasurements-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_36 = { + sizeof(struct NR_Multi_RTT_MeasElement_r16__ext2), + offsetof(struct NR_Multi_RTT_MeasElement_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_36, + 7, /* Count of tags in the map */ + asn_MAP_ext2_oms_36, /* Optional members */ + 7, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_36 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_36, + sizeof(asn_DEF_ext2_tags_36) + /sizeof(asn_DEF_ext2_tags_36[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_36, /* Same as above */ + sizeof(asn_DEF_ext2_tags_36) + /sizeof(asn_DEF_ext2_tags_36[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_36, + 7, /* Elements count */ + &asn_SPC_ext2_specs_36 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_Multi_RTT_MeasElement_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16, dl_PRS_ID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ID_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ID_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ID-r16" + }, + { ATF_POINTER, 5, offsetof(struct NR_Multi_RTT_MeasElement_r16, nr_PhysCellID_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r16" + }, + { ATF_POINTER, 4, offsetof(struct NR_Multi_RTT_MeasElement_r16, nr_CellGlobalID_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-CellGlobalID-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_MeasElement_r16, nr_ARFCN_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ARFCN-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_MeasElement_r16, nr_DL_PRS_ResourceID_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceID-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_MeasElement_r16, nr_DL_PRS_ResourceSetID_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceSetID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceSetID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16, nr_UE_RxTxTimeDiff_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nr_UE_RxTxTimeDiff_r16_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UE-RxTxTimeDiff-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_MeasElement_r16, nr_AdditionalPathList_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_AdditionalPathList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-AdditionalPathList-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16, nr_TimeStamp_r16), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimeStamp_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-TimeStamp-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_MeasElement_r16, nr_TimingQuality_r16), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimingQuality_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-TimingQuality-r16" + }, + { ATF_POINTER, 4, offsetof(struct NR_Multi_RTT_MeasElement_r16, nr_DL_PRS_RSRP_Result_r16), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_RSRP_Result_r16_constr_25, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_RSRP_Result_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RSRP-Result-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_MeasElement_r16, nr_Multi_RTT_AdditionalMeasurements_r16), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_Multi_RTT_AdditionalMeasurements_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-Multi-RTT-AdditionalMeasurements-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_MeasElement_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + 0, + &asn_DEF_ext1_28, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_MeasElement_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + 0, + &asn_DEF_ext2_36, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_NR_Multi_RTT_MeasElement_r16_oms_1[] = { 1, 2, 3, 4, 5, 7, 10, 11, 12, 13 }; +static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_MeasElement_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_MeasElement_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PhysCellID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-CellGlobalID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-ARFCN-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-DL-PRS-ResourceID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nr-DL-PRS-ResourceSetID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* nr-UE-RxTxTimeDiff-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* nr-AdditionalPathList-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* nr-TimeStamp-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* nr-TimingQuality-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* nr-DL-PRS-RSRP-Result-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* nr-Multi-RTT-AdditionalMeasurements-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_MeasElement_r16_specs_1 = { + sizeof(struct NR_Multi_RTT_MeasElement_r16), + offsetof(struct NR_Multi_RTT_MeasElement_r16, _asn_ctx), + asn_MAP_NR_Multi_RTT_MeasElement_r16_tag2el_1, + 14, /* Count of tags in the map */ + asn_MAP_NR_Multi_RTT_MeasElement_r16_oms_1, /* Optional members */ + 8, 2, /* Root/Additions */ + 12, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_MeasElement_r16 = { + "NR-Multi-RTT-MeasElement-r16", + "NR-Multi-RTT-MeasElement-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_Multi_RTT_MeasElement_r16_tags_1, + sizeof(asn_DEF_NR_Multi_RTT_MeasElement_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_MeasElement_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_Multi_RTT_MeasElement_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_Multi_RTT_MeasElement_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_MeasElement_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_Multi_RTT_MeasElement_r16_1, + 14, /* Elements count */ + &asn_SPC_NR_Multi_RTT_MeasElement_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-Multi-RTT-MeasElement-r16.h b/asn.1/lpp_generated/NR-Multi-RTT-MeasElement-r16.h new file mode 100644 index 00000000..5b68cba8 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-MeasElement-r16.h @@ -0,0 +1,174 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_Multi_RTT_MeasElement_r16_H_ +#define _NR_Multi_RTT_MeasElement_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include "NR-PhysCellID-r16.h" +#include "ARFCN-ValueNR-r15.h" +#include "NR-DL-PRS-ResourceID-r16.h" +#include "NR-DL-PRS-ResourceSetID-r16.h" +#include "NR-TimeStamp-r16.h" +#include "NR-TimingQuality-r16.h" +#include +#include "LOS-NLOS-Indicator-r17.h" +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16_PR { + NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16_PR_NOTHING, /* No components present */ + NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16_PR_k0_r16, + NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16_PR_k1_r16, + NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16_PR_k2_r16, + NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16_PR_k3_r16, + NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16_PR_k4_r16, + NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16_PR_k5_r16, + /* Extensions may appear below */ + NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16_PR_kMinus6_r18, + NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16_PR_kMinus5_r18, + NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16_PR_kMinus4_r18, + NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16_PR_kMinus3_r18, + NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16_PR_kMinus2_r18, + NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16_PR_kMinus1_r18 +} NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16_PR; +typedef enum NR_Multi_RTT_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_PR { + NR_Multi_RTT_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_PR_NOTHING, /* No components present */ + NR_Multi_RTT_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_PR_perTRP_r17, + NR_Multi_RTT_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_PR_perResource_r17 +} NR_Multi_RTT_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_PR; +typedef enum NR_Multi_RTT_MeasElement_r16__ext2__nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18 { + NR_Multi_RTT_MeasElement_r16__ext2__nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_true = 0 +} e_NR_Multi_RTT_MeasElement_r16__ext2__nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18; +typedef enum NR_Multi_RTT_MeasElement_r16__ext2__nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18 { + NR_Multi_RTT_MeasElement_r16__ext2__nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_singleHop = 0, + NR_Multi_RTT_MeasElement_r16__ext2__nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_multipleHop = 1 +} e_NR_Multi_RTT_MeasElement_r16__ext2__nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18; + +/* Forward declarations */ +struct NCGI_r15; +struct NR_AdditionalPathList_r16; +struct NR_Multi_RTT_AdditionalMeasurements_r16; +struct NR_UE_RxTx_TEG_Info_r17; +struct NR_AdditionalPathListExt_r17; +struct NR_Multi_RTT_AdditionalMeasurementsExt_r17; +struct NR_PhaseQuality_r18; +struct NR_NTN_UE_RxTxMeasurements_r18; +struct NR_AggregatedDL_PRS_ResourceSetID_Element_r18; +struct NR_RSCP_AdditionalMeasurements_r18; + +/* NR-Multi-RTT-MeasElement-r16 */ +typedef struct NR_Multi_RTT_MeasElement_r16 { + long dl_PRS_ID_r16; + NR_PhysCellID_r16_t *nr_PhysCellID_r16; /* OPTIONAL */ + struct NCGI_r15 *nr_CellGlobalID_r16; /* OPTIONAL */ + ARFCN_ValueNR_r15_t *nr_ARFCN_r16; /* OPTIONAL */ + NR_DL_PRS_ResourceID_r16_t *nr_DL_PRS_ResourceID_r16; /* OPTIONAL */ + NR_DL_PRS_ResourceSetID_r16_t *nr_DL_PRS_ResourceSetID_r16; /* OPTIONAL */ + struct NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16 { + NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16_PR present; + union NR_Multi_RTT_MeasElement_r16__nr_UE_RxTxTimeDiff_r16_u { + long k0_r16; + long k1_r16; + long k2_r16; + long k3_r16; + long k4_r16; + long k5_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + long kMinus6_r18; + long kMinus5_r18; + long kMinus4_r18; + long kMinus3_r18; + long kMinus2_r18; + long kMinus1_r18; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } nr_UE_RxTxTimeDiff_r16; + struct NR_AdditionalPathList_r16 *nr_AdditionalPathList_r16; /* OPTIONAL */ + NR_TimeStamp_r16_t nr_TimeStamp_r16; + NR_TimingQuality_r16_t nr_TimingQuality_r16; + long *nr_DL_PRS_RSRP_Result_r16; /* OPTIONAL */ + struct NR_Multi_RTT_AdditionalMeasurements_r16 *nr_Multi_RTT_AdditionalMeasurements_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_Multi_RTT_MeasElement_r16__ext1 { + struct NR_UE_RxTx_TEG_Info_r17 *nr_UE_RxTx_TEG_Info_r17; /* OPTIONAL */ + long *nr_DL_PRS_FirstPathRSRP_Result_r17; /* OPTIONAL */ + struct NR_Multi_RTT_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17 { + NR_Multi_RTT_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_PR present; + union NR_Multi_RTT_MeasElement_r16__ext1__nr_los_nlos_Indicator_r17_u { + LOS_NLOS_Indicator_r17_t perTRP_r17; + LOS_NLOS_Indicator_r17_t perResource_r17; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_los_nlos_Indicator_r17; + struct NR_AdditionalPathListExt_r17 *nr_AdditionalPathListExt_r17; /* OPTIONAL */ + struct NR_Multi_RTT_AdditionalMeasurementsExt_r17 *nr_Multi_RTT_AdditionalMeasurementsExt_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct NR_Multi_RTT_MeasElement_r16__ext2 { + long *nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18; /* OPTIONAL */ + struct NR_Multi_RTT_MeasElement_r16__ext2__nr_AggregatedDL_PRS_ResourceSetID_List_r18 { + A_SEQUENCE_OF(struct NR_AggregatedDL_PRS_ResourceSetID_Element_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_AggregatedDL_PRS_ResourceSetID_List_r18; + long *nr_RSCP_r18; /* OPTIONAL */ + struct NR_PhaseQuality_r18 *nr_PhaseQuality_r18; /* OPTIONAL */ + struct NR_Multi_RTT_MeasElement_r16__ext2__nr_RSCP_AddSampleMeasurements_r18 { + A_SEQUENCE_OF(struct NR_RSCP_AdditionalMeasurements_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_RSCP_AddSampleMeasurements_r18; + long *nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18; /* OPTIONAL */ + struct NR_NTN_UE_RxTxMeasurements_r18 *nr_NTN_UE_RxTxMeasurements_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_Multi_RTT_MeasElement_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_UE_RxTxTimeDiffBasedOnAggregatedResources_r18_37; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_ReportDL_PRS_MeasBasedOnSingleOrMultiHopRx_r18_45; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_MeasElement_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_MeasElement_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_MeasElement_r16_1[14]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_Multi_RTT_MeasElement_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-Multi-RTT-MeasList-r16.c b/asn.1/lpp_generated/NR-Multi-RTT-MeasList-r16.c new file mode 100644 index 00000000..6c426d4b --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-MeasList-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-Multi-RTT-MeasList-r16.h" + +#include "NR-Multi-RTT-MeasElement-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_Multi_RTT_MeasList_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (SIZE(1..256)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_Multi_RTT_MeasList_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_Multi_RTT_MeasElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_MeasList_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_Multi_RTT_MeasList_r16_specs_1 = { + sizeof(struct NR_Multi_RTT_MeasList_r16), + offsetof(struct NR_Multi_RTT_MeasList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_MeasList_r16 = { + "NR-Multi-RTT-MeasList-r16", + "NR-Multi-RTT-MeasList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_Multi_RTT_MeasList_r16_tags_1, + sizeof(asn_DEF_NR_Multi_RTT_MeasList_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_MeasList_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_Multi_RTT_MeasList_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_Multi_RTT_MeasList_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_MeasList_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_Multi_RTT_MeasList_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_Multi_RTT_MeasList_r16_1, + 1, /* Single element */ + &asn_SPC_NR_Multi_RTT_MeasList_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-Multi-RTT-MeasList-r16.h b/asn.1/lpp_generated/NR-Multi-RTT-MeasList-r16.h similarity index 80% rename from asn.1/generated/NR-Multi-RTT-MeasList-r16.h rename to asn.1/lpp_generated/NR-Multi-RTT-MeasList-r16.h index d4b315c5..2a036147 100644 --- a/asn.1/generated/NR-Multi-RTT-MeasList-r16.h +++ b/asn.1/lpp_generated/NR-Multi-RTT-MeasList-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_Multi_RTT_MeasList_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_NR_Multi_RTT_MeasList_r16_constr_1; } #endif -/* Referred external types */ -#include "NR-Multi-RTT-MeasElement-r16.h" - #endif /* _NR_Multi_RTT_MeasList_r16_H_ */ #include diff --git a/asn.1/lpp_generated/NR-Multi-RTT-MeasurementCapability-r16.c b/asn.1/lpp_generated/NR-Multi-RTT-MeasurementCapability-r16.c new file mode 100644 index 00000000..9984a345 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-MeasurementCapability-r16.c @@ -0,0 +1,630 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-Multi-RTT-MeasurementCapability-r16.h" + +#include "NR-UE-TEG-Capability-r17.h" +#include "Multi-RTT-MeasCapabilityPerBand-r17.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_multi_RTT_MeasCapabilityBandList_r17_constraint_13(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 1024UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_maxNrOfRx_TX_MeasFR1_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 4L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_maxNrOfRx_TX_MeasFR2_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 4L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfRSRP_MeasFR1_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfRSRP_MeasFR2_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_srs_AssocPRS_MultiLayersFR1_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_srs_AssocPRS_MultiLayersFR2_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_multi_RTT_MeasCapabilityBandList_r17_constr_15 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_multi_RTT_MeasCapabilityBandList_r17_constr_15 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxNrOfRx_TX_MeasFR1_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (1..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxNrOfRx_TX_MeasFR2_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (1..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_supportOfRSRP_MeasFR1_r16_value2enum_4[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfRSRP_MeasFR1_r16_enum2value_4[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfRSRP_MeasFR1_r16_specs_4 = { + asn_MAP_supportOfRSRP_MeasFR1_r16_value2enum_4, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfRSRP_MeasFR1_r16_enum2value_4, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfRSRP_MeasFR1_r16_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfRSRP_MeasFR1_r16_4 = { + "supportOfRSRP-MeasFR1-r16", + "supportOfRSRP-MeasFR1-r16", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfRSRP_MeasFR1_r16_tags_4, + sizeof(asn_DEF_supportOfRSRP_MeasFR1_r16_tags_4) + /sizeof(asn_DEF_supportOfRSRP_MeasFR1_r16_tags_4[0]) - 1, /* 1 */ + asn_DEF_supportOfRSRP_MeasFR1_r16_tags_4, /* Same as above */ + sizeof(asn_DEF_supportOfRSRP_MeasFR1_r16_tags_4) + /sizeof(asn_DEF_supportOfRSRP_MeasFR1_r16_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfRSRP_MeasFR1_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfRSRP_MeasFR1_r16_specs_4 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfRSRP_MeasFR2_r16_value2enum_6[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfRSRP_MeasFR2_r16_enum2value_6[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfRSRP_MeasFR2_r16_specs_6 = { + asn_MAP_supportOfRSRP_MeasFR2_r16_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfRSRP_MeasFR2_r16_enum2value_6, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfRSRP_MeasFR2_r16_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfRSRP_MeasFR2_r16_6 = { + "supportOfRSRP-MeasFR2-r16", + "supportOfRSRP-MeasFR2-r16", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfRSRP_MeasFR2_r16_tags_6, + sizeof(asn_DEF_supportOfRSRP_MeasFR2_r16_tags_6) + /sizeof(asn_DEF_supportOfRSRP_MeasFR2_r16_tags_6[0]) - 1, /* 1 */ + asn_DEF_supportOfRSRP_MeasFR2_r16_tags_6, /* Same as above */ + sizeof(asn_DEF_supportOfRSRP_MeasFR2_r16_tags_6) + /sizeof(asn_DEF_supportOfRSRP_MeasFR2_r16_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfRSRP_MeasFR2_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfRSRP_MeasFR2_r16_specs_6 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_srs_AssocPRS_MultiLayersFR1_r16_value2enum_8[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_srs_AssocPRS_MultiLayersFR1_r16_enum2value_8[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_srs_AssocPRS_MultiLayersFR1_r16_specs_8 = { + asn_MAP_srs_AssocPRS_MultiLayersFR1_r16_value2enum_8, /* "tag" => N; sorted by tag */ + asn_MAP_srs_AssocPRS_MultiLayersFR1_r16_enum2value_8, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_srs_AssocPRS_MultiLayersFR1_r16_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_srs_AssocPRS_MultiLayersFR1_r16_8 = { + "srs-AssocPRS-MultiLayersFR1-r16", + "srs-AssocPRS-MultiLayersFR1-r16", + &asn_OP_NativeEnumerated, + asn_DEF_srs_AssocPRS_MultiLayersFR1_r16_tags_8, + sizeof(asn_DEF_srs_AssocPRS_MultiLayersFR1_r16_tags_8) + /sizeof(asn_DEF_srs_AssocPRS_MultiLayersFR1_r16_tags_8[0]) - 1, /* 1 */ + asn_DEF_srs_AssocPRS_MultiLayersFR1_r16_tags_8, /* Same as above */ + sizeof(asn_DEF_srs_AssocPRS_MultiLayersFR1_r16_tags_8) + /sizeof(asn_DEF_srs_AssocPRS_MultiLayersFR1_r16_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_srs_AssocPRS_MultiLayersFR1_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_srs_AssocPRS_MultiLayersFR1_r16_specs_8 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_srs_AssocPRS_MultiLayersFR2_r16_value2enum_10[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_srs_AssocPRS_MultiLayersFR2_r16_enum2value_10[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_srs_AssocPRS_MultiLayersFR2_r16_specs_10 = { + asn_MAP_srs_AssocPRS_MultiLayersFR2_r16_value2enum_10, /* "tag" => N; sorted by tag */ + asn_MAP_srs_AssocPRS_MultiLayersFR2_r16_enum2value_10, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_srs_AssocPRS_MultiLayersFR2_r16_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_srs_AssocPRS_MultiLayersFR2_r16_10 = { + "srs-AssocPRS-MultiLayersFR2-r16", + "srs-AssocPRS-MultiLayersFR2-r16", + &asn_OP_NativeEnumerated, + asn_DEF_srs_AssocPRS_MultiLayersFR2_r16_tags_10, + sizeof(asn_DEF_srs_AssocPRS_MultiLayersFR2_r16_tags_10) + /sizeof(asn_DEF_srs_AssocPRS_MultiLayersFR2_r16_tags_10[0]) - 1, /* 1 */ + asn_DEF_srs_AssocPRS_MultiLayersFR2_r16_tags_10, /* Same as above */ + sizeof(asn_DEF_srs_AssocPRS_MultiLayersFR2_r16_tags_10) + /sizeof(asn_DEF_srs_AssocPRS_MultiLayersFR2_r16_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_srs_AssocPRS_MultiLayersFR2_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_srs_AssocPRS_MultiLayersFR2_r16_specs_10 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_multi_RTT_MeasCapabilityBandList_r17_15[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_Multi_RTT_MeasCapabilityPerBand_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_multi_RTT_MeasCapabilityBandList_r17_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_multi_RTT_MeasCapabilityBandList_r17_specs_15 = { + sizeof(struct NR_Multi_RTT_MeasurementCapability_r16__ext1__multi_RTT_MeasCapabilityBandList_r17), + offsetof(struct NR_Multi_RTT_MeasurementCapability_r16__ext1__multi_RTT_MeasCapabilityBandList_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_multi_RTT_MeasCapabilityBandList_r17_15 = { + "multi-RTT-MeasCapabilityBandList-r17", + "multi-RTT-MeasCapabilityBandList-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_multi_RTT_MeasCapabilityBandList_r17_tags_15, + sizeof(asn_DEF_multi_RTT_MeasCapabilityBandList_r17_tags_15) + /sizeof(asn_DEF_multi_RTT_MeasCapabilityBandList_r17_tags_15[0]) - 1, /* 1 */ + asn_DEF_multi_RTT_MeasCapabilityBandList_r17_tags_15, /* Same as above */ + sizeof(asn_DEF_multi_RTT_MeasCapabilityBandList_r17_tags_15) + /sizeof(asn_DEF_multi_RTT_MeasCapabilityBandList_r17_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_multi_RTT_MeasCapabilityBandList_r17_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_multi_RTT_MeasCapabilityBandList_r17_15, + 1, /* Single element */ + &asn_SPC_multi_RTT_MeasCapabilityBandList_r17_specs_15 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_13[] = { + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_MeasurementCapability_r16__ext1, nr_UE_TEG_Capability_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_UE_TEG_Capability_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UE-TEG-Capability-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_MeasurementCapability_r16__ext1, multi_RTT_MeasCapabilityBandList_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_multi_RTT_MeasCapabilityBandList_r17_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_multi_RTT_MeasCapabilityBandList_r17_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_multi_RTT_MeasCapabilityBandList_r17_constraint_13 + }, + 0, 0, /* No default value */ + "multi-RTT-MeasCapabilityBandList-r17" + }, +}; +static const int asn_MAP_ext1_oms_13[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_13[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-UE-TEG-Capability-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* multi-RTT-MeasCapabilityBandList-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_13 = { + sizeof(struct NR_Multi_RTT_MeasurementCapability_r16__ext1), + offsetof(struct NR_Multi_RTT_MeasurementCapability_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_13, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_13, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_13 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_13, + sizeof(asn_DEF_ext1_tags_13) + /sizeof(asn_DEF_ext1_tags_13[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_13, /* Same as above */ + sizeof(asn_DEF_ext1_tags_13) + /sizeof(asn_DEF_ext1_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_13, + 2, /* Elements count */ + &asn_SPC_ext1_specs_13 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_Multi_RTT_MeasurementCapability_r16_1[] = { + { ATF_POINTER, 7, offsetof(struct NR_Multi_RTT_MeasurementCapability_r16, maxNrOfRx_TX_MeasFR1_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxNrOfRx_TX_MeasFR1_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxNrOfRx_TX_MeasFR1_r16_constraint_1 + }, + 0, 0, /* No default value */ + "maxNrOfRx-TX-MeasFR1-r16" + }, + { ATF_POINTER, 6, offsetof(struct NR_Multi_RTT_MeasurementCapability_r16, maxNrOfRx_TX_MeasFR2_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxNrOfRx_TX_MeasFR2_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxNrOfRx_TX_MeasFR2_r16_constraint_1 + }, + 0, 0, /* No default value */ + "maxNrOfRx-TX-MeasFR2-r16" + }, + { ATF_POINTER, 5, offsetof(struct NR_Multi_RTT_MeasurementCapability_r16, supportOfRSRP_MeasFR1_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfRSRP_MeasFR1_r16_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfRSRP-MeasFR1-r16" + }, + { ATF_POINTER, 4, offsetof(struct NR_Multi_RTT_MeasurementCapability_r16, supportOfRSRP_MeasFR2_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfRSRP_MeasFR2_r16_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfRSRP-MeasFR2-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_MeasurementCapability_r16, srs_AssocPRS_MultiLayersFR1_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_srs_AssocPRS_MultiLayersFR1_r16_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "srs-AssocPRS-MultiLayersFR1-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_MeasurementCapability_r16, srs_AssocPRS_MultiLayersFR2_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_srs_AssocPRS_MultiLayersFR2_r16_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "srs-AssocPRS-MultiLayersFR2-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_MeasurementCapability_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext1_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_Multi_RTT_MeasurementCapability_r16_oms_1[] = { 0, 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_MeasurementCapability_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_MeasurementCapability_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxNrOfRx-TX-MeasFR1-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxNrOfRx-TX-MeasFR2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* supportOfRSRP-MeasFR1-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* supportOfRSRP-MeasFR2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* srs-AssocPRS-MultiLayersFR1-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* srs-AssocPRS-MultiLayersFR2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_MeasurementCapability_r16_specs_1 = { + sizeof(struct NR_Multi_RTT_MeasurementCapability_r16), + offsetof(struct NR_Multi_RTT_MeasurementCapability_r16, _asn_ctx), + asn_MAP_NR_Multi_RTT_MeasurementCapability_r16_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_NR_Multi_RTT_MeasurementCapability_r16_oms_1, /* Optional members */ + 6, 1, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_MeasurementCapability_r16 = { + "NR-Multi-RTT-MeasurementCapability-r16", + "NR-Multi-RTT-MeasurementCapability-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_Multi_RTT_MeasurementCapability_r16_tags_1, + sizeof(asn_DEF_NR_Multi_RTT_MeasurementCapability_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_MeasurementCapability_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_Multi_RTT_MeasurementCapability_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_Multi_RTT_MeasurementCapability_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_MeasurementCapability_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_Multi_RTT_MeasurementCapability_r16_1, + 7, /* Elements count */ + &asn_SPC_NR_Multi_RTT_MeasurementCapability_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-Multi-RTT-MeasurementCapability-r16.h b/asn.1/lpp_generated/NR-Multi-RTT-MeasurementCapability-r16.h new file mode 100644 index 00000000..5f220302 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-MeasurementCapability-r16.h @@ -0,0 +1,86 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_Multi_RTT_MeasurementCapability_r16_H_ +#define _NR_Multi_RTT_MeasurementCapability_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_Multi_RTT_MeasurementCapability_r16__supportOfRSRP_MeasFR1_r16 { + NR_Multi_RTT_MeasurementCapability_r16__supportOfRSRP_MeasFR1_r16_supported = 0 +} e_NR_Multi_RTT_MeasurementCapability_r16__supportOfRSRP_MeasFR1_r16; +typedef enum NR_Multi_RTT_MeasurementCapability_r16__supportOfRSRP_MeasFR2_r16 { + NR_Multi_RTT_MeasurementCapability_r16__supportOfRSRP_MeasFR2_r16_supported = 0 +} e_NR_Multi_RTT_MeasurementCapability_r16__supportOfRSRP_MeasFR2_r16; +typedef enum NR_Multi_RTT_MeasurementCapability_r16__srs_AssocPRS_MultiLayersFR1_r16 { + NR_Multi_RTT_MeasurementCapability_r16__srs_AssocPRS_MultiLayersFR1_r16_supported = 0 +} e_NR_Multi_RTT_MeasurementCapability_r16__srs_AssocPRS_MultiLayersFR1_r16; +typedef enum NR_Multi_RTT_MeasurementCapability_r16__srs_AssocPRS_MultiLayersFR2_r16 { + NR_Multi_RTT_MeasurementCapability_r16__srs_AssocPRS_MultiLayersFR2_r16_supported = 0 +} e_NR_Multi_RTT_MeasurementCapability_r16__srs_AssocPRS_MultiLayersFR2_r16; + +/* Forward declarations */ +struct NR_UE_TEG_Capability_r17; +struct Multi_RTT_MeasCapabilityPerBand_r17; + +/* NR-Multi-RTT-MeasurementCapability-r16 */ +typedef struct NR_Multi_RTT_MeasurementCapability_r16 { + long *maxNrOfRx_TX_MeasFR1_r16; /* OPTIONAL */ + long *maxNrOfRx_TX_MeasFR2_r16; /* OPTIONAL */ + long *supportOfRSRP_MeasFR1_r16; /* OPTIONAL */ + long *supportOfRSRP_MeasFR2_r16; /* OPTIONAL */ + long *srs_AssocPRS_MultiLayersFR1_r16; /* OPTIONAL */ + long *srs_AssocPRS_MultiLayersFR2_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_Multi_RTT_MeasurementCapability_r16__ext1 { + struct NR_UE_TEG_Capability_r17 *nr_UE_TEG_Capability_r17; /* OPTIONAL */ + struct NR_Multi_RTT_MeasurementCapability_r16__ext1__multi_RTT_MeasCapabilityBandList_r17 { + A_SEQUENCE_OF(struct Multi_RTT_MeasCapabilityPerBand_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *multi_RTT_MeasCapabilityBandList_r17; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_Multi_RTT_MeasurementCapability_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfRSRP_MeasFR1_r16_4; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfRSRP_MeasFR2_r16_6; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_srs_AssocPRS_MultiLayersFR1_r16_8; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_srs_AssocPRS_MultiLayersFR2_r16_10; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_MeasurementCapability_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_MeasurementCapability_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_MeasurementCapability_r16_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_Multi_RTT_MeasurementCapability_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-Multi-RTT-ProvideAssistanceData-r16.c b/asn.1/lpp_generated/NR-Multi-RTT-ProvideAssistanceData-r16.c new file mode 100644 index 00000000..d6c2b030 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-ProvideAssistanceData-r16.c @@ -0,0 +1,225 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-Multi-RTT-ProvideAssistanceData-r16.h" + +#include "NR-DL-PRS-AssistanceData-r16.h" +#include "NR-SelectedDL-PRS-IndexList-r16.h" +#include "NR-Multi-RTT-Error-r16.h" +#include "NR-On-Demand-DL-PRS-Configurations-r17.h" +#include "NR-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17.h" +#include "AreaID-CellList-r17.h" +static asn_TYPE_member_t asn_MBR_ext1_6[] = { + { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_ProvideAssistanceData_r16__ext1, nr_On_Demand_DL_PRS_Configurations_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_On_Demand_DL_PRS_Configurations_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-On-Demand-DL-PRS-Configurations-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_ProvideAssistanceData_r16__ext1, nr_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_ProvideAssistanceData_r16__ext1, assistanceDataValidityArea_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AreaID_CellList_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "assistanceDataValidityArea-r17" + }, +}; +static const int asn_MAP_ext1_oms_6[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-On-Demand-DL-PRS-Configurations-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* assistanceDataValidityArea-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = { + sizeof(struct NR_Multi_RTT_ProvideAssistanceData_r16__ext1), + offsetof(struct NR_Multi_RTT_ProvideAssistanceData_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_6, + 3, /* Count of tags in the map */ + asn_MAP_ext1_oms_6, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_6 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_6, + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_6, /* Same as above */ + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_6, + 3, /* Elements count */ + &asn_SPC_ext1_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_Multi_RTT_ProvideAssistanceData_r16_1[] = { + { ATF_POINTER, 4, offsetof(struct NR_Multi_RTT_ProvideAssistanceData_r16, nr_DL_PRS_AssistanceData_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_AssistanceData_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-AssistanceData-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_ProvideAssistanceData_r16, nr_SelectedDL_PRS_IndexList_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_SelectedDL_PRS_IndexList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-SelectedDL-PRS-IndexList-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_ProvideAssistanceData_r16, nr_Multi_RTT_Error_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_NR_Multi_RTT_Error_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-Multi-RTT-Error-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_ProvideAssistanceData_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext1_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_Multi_RTT_ProvideAssistanceData_r16_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_ProvideAssistanceData_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-AssistanceData-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-SelectedDL-PRS-IndexList-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-Multi-RTT-Error-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_ProvideAssistanceData_r16_specs_1 = { + sizeof(struct NR_Multi_RTT_ProvideAssistanceData_r16), + offsetof(struct NR_Multi_RTT_ProvideAssistanceData_r16, _asn_ctx), + asn_MAP_NR_Multi_RTT_ProvideAssistanceData_r16_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_NR_Multi_RTT_ProvideAssistanceData_r16_oms_1, /* Optional members */ + 3, 1, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16 = { + "NR-Multi-RTT-ProvideAssistanceData-r16", + "NR-Multi-RTT-ProvideAssistanceData-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16_tags_1, + sizeof(asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_Multi_RTT_ProvideAssistanceData_r16_1, + 4, /* Elements count */ + &asn_SPC_NR_Multi_RTT_ProvideAssistanceData_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-Multi-RTT-ProvideAssistanceData-r16.h b/asn.1/lpp_generated/NR-Multi-RTT-ProvideAssistanceData-r16.h new file mode 100644 index 00000000..d0888f2c --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-ProvideAssistanceData-r16.h @@ -0,0 +1,61 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_Multi_RTT_ProvideAssistanceData_r16_H_ +#define _NR_Multi_RTT_ProvideAssistanceData_r16_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_DL_PRS_AssistanceData_r16; +struct NR_SelectedDL_PRS_IndexList_r16; +struct NR_Multi_RTT_Error_r16; +struct NR_On_Demand_DL_PRS_Configurations_r17; +struct NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17; +struct AreaID_CellList_r17; + +/* NR-Multi-RTT-ProvideAssistanceData-r16 */ +typedef struct NR_Multi_RTT_ProvideAssistanceData_r16 { + struct NR_DL_PRS_AssistanceData_r16 *nr_DL_PRS_AssistanceData_r16; /* OPTIONAL */ + struct NR_SelectedDL_PRS_IndexList_r16 *nr_SelectedDL_PRS_IndexList_r16; /* OPTIONAL */ + struct NR_Multi_RTT_Error_r16 *nr_Multi_RTT_Error_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_Multi_RTT_ProvideAssistanceData_r16__ext1 { + struct NR_On_Demand_DL_PRS_Configurations_r17 *nr_On_Demand_DL_PRS_Configurations_r17; /* OPTIONAL */ + struct NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17 *nr_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17; /* OPTIONAL */ + struct AreaID_CellList_r17 *assistanceDataValidityArea_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_Multi_RTT_ProvideAssistanceData_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_ProvideAssistanceData_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_ProvideAssistanceData_r16_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_Multi_RTT_ProvideAssistanceData_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-Multi-RTT-ProvideCapabilities-r16.c b/asn.1/lpp_generated/NR-Multi-RTT-ProvideCapabilities-r16.c new file mode 100644 index 00000000..93fb2c78 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-ProvideCapabilities-r16.c @@ -0,0 +1,1331 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-Multi-RTT-ProvideCapabilities-r16.h" + +#include "NR-On-Demand-DL-PRS-Support-r17.h" +#include "ScheduledLocationTimeSupport-r17.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_area_validity_r17_constraint_32(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 16L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_UE_RxTx_TEG_ID_ReportingSupport_r17_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_additionalPathsReport_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_periodicalReporting_r16_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ten_ms_unit_ResponseTime_r17_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_additionalPathsExtSupport_r17_constr_27 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_area_validity_r17_constr_33 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (1..16) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_multiMeasInSameMeasReport_r17_constr_35 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_mg_ActivationRequest_r17_constr_37 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17_constr_15 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_UE_RxTx_TEG_ID_ReportingSupport_r17_constr_19 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_posMeasGapSupport_r17_constr_40 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_symbolTimeStampSupport_r18_constr_43 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18_constr_45 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_additionalPathsReport_r16_value2enum_7[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_additionalPathsReport_r16_enum2value_7[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_additionalPathsReport_r16_specs_7 = { + asn_MAP_additionalPathsReport_r16_value2enum_7, /* "tag" => N; sorted by tag */ + asn_MAP_additionalPathsReport_r16_enum2value_7, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_additionalPathsReport_r16_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_additionalPathsReport_r16_7 = { + "additionalPathsReport-r16", + "additionalPathsReport-r16", + &asn_OP_NativeEnumerated, + asn_DEF_additionalPathsReport_r16_tags_7, + sizeof(asn_DEF_additionalPathsReport_r16_tags_7) + /sizeof(asn_DEF_additionalPathsReport_r16_tags_7[0]) - 1, /* 1 */ + asn_DEF_additionalPathsReport_r16_tags_7, /* Same as above */ + sizeof(asn_DEF_additionalPathsReport_r16_tags_7) + /sizeof(asn_DEF_additionalPathsReport_r16_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_additionalPathsReport_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_additionalPathsReport_r16_specs_7 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_periodicalReporting_r16_value2enum_9[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_periodicalReporting_r16_enum2value_9[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_periodicalReporting_r16_specs_9 = { + asn_MAP_periodicalReporting_r16_value2enum_9, /* "tag" => N; sorted by tag */ + asn_MAP_periodicalReporting_r16_enum2value_9, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_periodicalReporting_r16_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_periodicalReporting_r16_9 = { + "periodicalReporting-r16", + "periodicalReporting-r16", + &asn_OP_NativeEnumerated, + asn_DEF_periodicalReporting_r16_tags_9, + sizeof(asn_DEF_periodicalReporting_r16_tags_9) + /sizeof(asn_DEF_periodicalReporting_r16_tags_9[0]) - 1, /* 1 */ + asn_DEF_periodicalReporting_r16_tags_9, /* Same as above */ + sizeof(asn_DEF_periodicalReporting_r16_tags_9) + /sizeof(asn_DEF_periodicalReporting_r16_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_periodicalReporting_r16_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_periodicalReporting_r16_specs_9 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_ten_ms_unit_ResponseTime_r17_value2enum_13[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_ten_ms_unit_ResponseTime_r17_enum2value_13[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ten_ms_unit_ResponseTime_r17_specs_13 = { + asn_MAP_ten_ms_unit_ResponseTime_r17_value2enum_13, /* "tag" => N; sorted by tag */ + asn_MAP_ten_ms_unit_ResponseTime_r17_enum2value_13, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ten_ms_unit_ResponseTime_r17_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ten_ms_unit_ResponseTime_r17_13 = { + "ten-ms-unit-ResponseTime-r17", + "ten-ms-unit-ResponseTime-r17", + &asn_OP_NativeEnumerated, + asn_DEF_ten_ms_unit_ResponseTime_r17_tags_13, + sizeof(asn_DEF_ten_ms_unit_ResponseTime_r17_tags_13) + /sizeof(asn_DEF_ten_ms_unit_ResponseTime_r17_tags_13[0]) - 1, /* 1 */ + asn_DEF_ten_ms_unit_ResponseTime_r17_tags_13, /* Same as above */ + sizeof(asn_DEF_ten_ms_unit_ResponseTime_r17_tags_13) + /sizeof(asn_DEF_ten_ms_unit_ResponseTime_r17_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ten_ms_unit_ResponseTime_r17_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ten_ms_unit_ResponseTime_r17_specs_13 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_los_nlos_IndicatorSupport_r17_23[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext1__nr_los_nlos_IndicatorSupport_r17, type_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_IndicatorType2_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "type-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext1__nr_los_nlos_IndicatorSupport_r17, granularity_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_IndicatorGranularity2_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "granularity-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_23[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_los_nlos_IndicatorSupport_r17_tag2el_23[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* type-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* granularity-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_nr_los_nlos_IndicatorSupport_r17_specs_23 = { + sizeof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext1__nr_los_nlos_IndicatorSupport_r17), + offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext1__nr_los_nlos_IndicatorSupport_r17, _asn_ctx), + asn_MAP_nr_los_nlos_IndicatorSupport_r17_tag2el_23, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_los_nlos_IndicatorSupport_r17_23 = { + "nr-los-nlos-IndicatorSupport-r17", + "nr-los-nlos-IndicatorSupport-r17", + &asn_OP_SEQUENCE, + asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_23, + sizeof(asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_23) + /sizeof(asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_23[0]) - 1, /* 1 */ + asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_23, /* Same as above */ + sizeof(asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_23) + /sizeof(asn_DEF_nr_los_nlos_IndicatorSupport_r17_tags_23[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_nr_los_nlos_IndicatorSupport_r17_23, + 2, /* Elements count */ + &asn_SPC_nr_los_nlos_IndicatorSupport_r17_specs_23 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_additionalPathsExtSupport_r17_value2enum_27[] = { + { 0, 2, "n4" }, + { 1, 2, "n6" }, + { 2, 2, "n8" } +}; +static const unsigned int asn_MAP_additionalPathsExtSupport_r17_enum2value_27[] = { + 0, /* n4(0) */ + 1, /* n6(1) */ + 2 /* n8(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_additionalPathsExtSupport_r17_specs_27 = { + asn_MAP_additionalPathsExtSupport_r17_value2enum_27, /* "tag" => N; sorted by tag */ + asn_MAP_additionalPathsExtSupport_r17_enum2value_27, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_additionalPathsExtSupport_r17_tags_27[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_additionalPathsExtSupport_r17_27 = { + "additionalPathsExtSupport-r17", + "additionalPathsExtSupport-r17", + &asn_OP_NativeEnumerated, + asn_DEF_additionalPathsExtSupport_r17_tags_27, + sizeof(asn_DEF_additionalPathsExtSupport_r17_tags_27) + /sizeof(asn_DEF_additionalPathsExtSupport_r17_tags_27[0]) - 1, /* 1 */ + asn_DEF_additionalPathsExtSupport_r17_tags_27, /* Same as above */ + sizeof(asn_DEF_additionalPathsExtSupport_r17_tags_27) + /sizeof(asn_DEF_additionalPathsExtSupport_r17_tags_27[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_additionalPathsExtSupport_r17_constr_27, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_additionalPathsExtSupport_r17_specs_27 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_dl_prs_AssistanceDataValidity_r17_32[] = { + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext1__nr_dl_prs_AssistanceDataValidity_r17, area_validity_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_area_validity_r17_constr_33, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_area_validity_r17_constraint_32 + }, + 0, 0, /* No default value */ + "area-validity-r17" + }, +}; +static const int asn_MAP_nr_dl_prs_AssistanceDataValidity_r17_oms_32[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_32[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_dl_prs_AssistanceDataValidity_r17_tag2el_32[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* area-validity-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_nr_dl_prs_AssistanceDataValidity_r17_specs_32 = { + sizeof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext1__nr_dl_prs_AssistanceDataValidity_r17), + offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext1__nr_dl_prs_AssistanceDataValidity_r17, _asn_ctx), + asn_MAP_nr_dl_prs_AssistanceDataValidity_r17_tag2el_32, + 1, /* Count of tags in the map */ + asn_MAP_nr_dl_prs_AssistanceDataValidity_r17_oms_32, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_32 = { + "nr-dl-prs-AssistanceDataValidity-r17", + "nr-dl-prs-AssistanceDataValidity-r17", + &asn_OP_SEQUENCE, + asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_32, + sizeof(asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_32) + /sizeof(asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_32[0]) - 1, /* 1 */ + asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_32, /* Same as above */ + sizeof(asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_32) + /sizeof(asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_tags_32[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_nr_dl_prs_AssistanceDataValidity_r17_32, + 1, /* Elements count */ + &asn_SPC_nr_dl_prs_AssistanceDataValidity_r17_specs_32 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_multiMeasInSameMeasReport_r17_value2enum_35[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_multiMeasInSameMeasReport_r17_enum2value_35[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_multiMeasInSameMeasReport_r17_specs_35 = { + asn_MAP_multiMeasInSameMeasReport_r17_value2enum_35, /* "tag" => N; sorted by tag */ + asn_MAP_multiMeasInSameMeasReport_r17_enum2value_35, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_multiMeasInSameMeasReport_r17_tags_35[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_multiMeasInSameMeasReport_r17_35 = { + "multiMeasInSameMeasReport-r17", + "multiMeasInSameMeasReport-r17", + &asn_OP_NativeEnumerated, + asn_DEF_multiMeasInSameMeasReport_r17_tags_35, + sizeof(asn_DEF_multiMeasInSameMeasReport_r17_tags_35) + /sizeof(asn_DEF_multiMeasInSameMeasReport_r17_tags_35[0]) - 1, /* 1 */ + asn_DEF_multiMeasInSameMeasReport_r17_tags_35, /* Same as above */ + sizeof(asn_DEF_multiMeasInSameMeasReport_r17_tags_35) + /sizeof(asn_DEF_multiMeasInSameMeasReport_r17_tags_35[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_multiMeasInSameMeasReport_r17_constr_35, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_multiMeasInSameMeasReport_r17_specs_35 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_mg_ActivationRequest_r17_value2enum_37[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_mg_ActivationRequest_r17_enum2value_37[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_mg_ActivationRequest_r17_specs_37 = { + asn_MAP_mg_ActivationRequest_r17_value2enum_37, /* "tag" => N; sorted by tag */ + asn_MAP_mg_ActivationRequest_r17_enum2value_37, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_mg_ActivationRequest_r17_tags_37[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_mg_ActivationRequest_r17_37 = { + "mg-ActivationRequest-r17", + "mg-ActivationRequest-r17", + &asn_OP_NativeEnumerated, + asn_DEF_mg_ActivationRequest_r17_tags_37, + sizeof(asn_DEF_mg_ActivationRequest_r17_tags_37) + /sizeof(asn_DEF_mg_ActivationRequest_r17_tags_37[0]) - 1, /* 1 */ + asn_DEF_mg_ActivationRequest_r17_tags_37, /* Same as above */ + sizeof(asn_DEF_mg_ActivationRequest_r17_tags_37) + /sizeof(asn_DEF_mg_ActivationRequest_r17_tags_37[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_mg_ActivationRequest_r17_constr_37, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_mg_ActivationRequest_r17_specs_37 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_12[] = { + { ATF_POINTER, 10, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext1, ten_ms_unit_ResponseTime_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ten_ms_unit_ResponseTime_r17_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ten-ms-unit-ResponseTime-r17" + }, + { ATF_POINTER, 9, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext1, nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17_constraint_12 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ExpectedAoD-or-AoA-Sup-r17" + }, + { ATF_POINTER, 8, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext1, nr_Multi_RTT_On_Demand_DL_PRS_Support_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_On_Demand_DL_PRS_Support_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-Multi-RTT-On-Demand-DL-PRS-Support-r17" + }, + { ATF_POINTER, 7, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext1, nr_UE_RxTx_TEG_ID_ReportingSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_UE_RxTx_TEG_ID_ReportingSupport_r17_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_UE_RxTx_TEG_ID_ReportingSupport_r17_constraint_12 + }, + 0, 0, /* No default value */ + "nr-UE-RxTx-TEG-ID-ReportingSupport-r17" + }, + { ATF_POINTER, 6, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext1, nr_los_nlos_IndicatorSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_nr_los_nlos_IndicatorSupport_r17_23, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-los-nlos-IndicatorSupport-r17" + }, + { ATF_POINTER, 5, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext1, additionalPathsExtSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_additionalPathsExtSupport_r17_27, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "additionalPathsExtSupport-r17" + }, + { ATF_POINTER, 4, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext1, scheduledLocationRequestSupported_r17), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ScheduledLocationTimeSupport_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scheduledLocationRequestSupported-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext1, nr_dl_prs_AssistanceDataValidity_r17), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_nr_dl_prs_AssistanceDataValidity_r17_32, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-dl-prs-AssistanceDataValidity-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext1, multiMeasInSameMeasReport_r17), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_multiMeasInSameMeasReport_r17_35, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "multiMeasInSameMeasReport-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext1, mg_ActivationRequest_r17), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_mg_ActivationRequest_r17_37, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mg-ActivationRequest-r17" + }, +}; +static const int asn_MAP_ext1_oms_12[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_12[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ten-ms-unit-ResponseTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-ExpectedAoD-or-AoA-Sup-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-Multi-RTT-On-Demand-DL-PRS-Support-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-UE-RxTx-TEG-ID-ReportingSupport-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-los-nlos-IndicatorSupport-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* additionalPathsExtSupport-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* scheduledLocationRequestSupported-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* nr-dl-prs-AssistanceDataValidity-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* multiMeasInSameMeasReport-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* mg-ActivationRequest-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_12 = { + sizeof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext1), + offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_12, + 10, /* Count of tags in the map */ + asn_MAP_ext1_oms_12, /* Optional members */ + 10, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_12 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_12, + sizeof(asn_DEF_ext1_tags_12) + /sizeof(asn_DEF_ext1_tags_12[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_12, /* Same as above */ + sizeof(asn_DEF_ext1_tags_12) + /sizeof(asn_DEF_ext1_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_12, + 10, /* Elements count */ + &asn_SPC_ext1_specs_12 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_posMeasGapSupport_r17_value2enum_40[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_posMeasGapSupport_r17_enum2value_40[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_posMeasGapSupport_r17_specs_40 = { + asn_MAP_posMeasGapSupport_r17_value2enum_40, /* "tag" => N; sorted by tag */ + asn_MAP_posMeasGapSupport_r17_enum2value_40, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_posMeasGapSupport_r17_tags_40[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_posMeasGapSupport_r17_40 = { + "posMeasGapSupport-r17", + "posMeasGapSupport-r17", + &asn_OP_NativeEnumerated, + asn_DEF_posMeasGapSupport_r17_tags_40, + sizeof(asn_DEF_posMeasGapSupport_r17_tags_40) + /sizeof(asn_DEF_posMeasGapSupport_r17_tags_40[0]) - 1, /* 1 */ + asn_DEF_posMeasGapSupport_r17_tags_40, /* Same as above */ + sizeof(asn_DEF_posMeasGapSupport_r17_tags_40) + /sizeof(asn_DEF_posMeasGapSupport_r17_tags_40[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_posMeasGapSupport_r17_constr_40, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_posMeasGapSupport_r17_specs_40 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_39[] = { + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext2, posMeasGapSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_posMeasGapSupport_r17_40, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posMeasGapSupport-r17" + }, +}; +static const int asn_MAP_ext2_oms_39[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_39[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_39[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* posMeasGapSupport-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_39 = { + sizeof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext2), + offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_39, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_39, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_39 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_39, + sizeof(asn_DEF_ext2_tags_39) + /sizeof(asn_DEF_ext2_tags_39[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_39, /* Same as above */ + sizeof(asn_DEF_ext2_tags_39) + /sizeof(asn_DEF_ext2_tags_39[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_39, + 1, /* Elements count */ + &asn_SPC_ext2_specs_39 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_symbolTimeStampSupport_r18_value2enum_43[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_symbolTimeStampSupport_r18_enum2value_43[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_symbolTimeStampSupport_r18_specs_43 = { + asn_MAP_symbolTimeStampSupport_r18_value2enum_43, /* "tag" => N; sorted by tag */ + asn_MAP_symbolTimeStampSupport_r18_enum2value_43, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_symbolTimeStampSupport_r18_tags_43[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_symbolTimeStampSupport_r18_43 = { + "symbolTimeStampSupport-r18", + "symbolTimeStampSupport-r18", + &asn_OP_NativeEnumerated, + asn_DEF_symbolTimeStampSupport_r18_tags_43, + sizeof(asn_DEF_symbolTimeStampSupport_r18_tags_43) + /sizeof(asn_DEF_symbolTimeStampSupport_r18_tags_43[0]) - 1, /* 1 */ + asn_DEF_symbolTimeStampSupport_r18_tags_43, /* Same as above */ + sizeof(asn_DEF_symbolTimeStampSupport_r18_tags_43) + /sizeof(asn_DEF_symbolTimeStampSupport_r18_tags_43[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_symbolTimeStampSupport_r18_constr_43, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_symbolTimeStampSupport_r18_specs_43 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18_value2enum_45[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18_enum2value_45[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18_specs_45 = { + asn_MAP_nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18_value2enum_45, /* "tag" => N; sorted by tag */ + asn_MAP_nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18_enum2value_45, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18_tags_45[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18_45 = { + "nr-MultiRTT-OnDemandPRS-ForBWA-Support-r18", + "nr-MultiRTT-OnDemandPRS-ForBWA-Support-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18_tags_45, + sizeof(asn_DEF_nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18_tags_45) + /sizeof(asn_DEF_nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18_tags_45[0]) - 1, /* 1 */ + asn_DEF_nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18_tags_45, /* Same as above */ + sizeof(asn_DEF_nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18_tags_45) + /sizeof(asn_DEF_nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18_tags_45[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18_constr_45, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18_specs_45 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_42[] = { + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext3, symbolTimeStampSupport_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_symbolTimeStampSupport_r18_43, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "symbolTimeStampSupport-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext3, nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18_45, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-MultiRTT-OnDemandPRS-ForBWA-Support-r18" + }, +}; +static const int asn_MAP_ext3_oms_42[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_42[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_42[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* symbolTimeStampSupport-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-MultiRTT-OnDemandPRS-ForBWA-Support-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_42 = { + sizeof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext3), + offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_42, + 2, /* Count of tags in the map */ + asn_MAP_ext3_oms_42, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_42 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_42, + sizeof(asn_DEF_ext3_tags_42) + /sizeof(asn_DEF_ext3_tags_42[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_42, /* Same as above */ + sizeof(asn_DEF_ext3_tags_42) + /sizeof(asn_DEF_ext3_tags_42[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_42, + 2, /* Elements count */ + &asn_SPC_ext3_specs_42 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_Multi_RTT_ProvideCapabilities_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16, nr_Multi_RTT_PRS_Capability_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourcesCapability_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-Multi-RTT-PRS-Capability-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16, nr_Multi_RTT_MeasurementCapability_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_Multi_RTT_MeasurementCapability_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-Multi-RTT-MeasurementCapability-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16, nr_DL_PRS_QCL_ProcessingCapability_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_QCL_ProcessingCapability_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-QCL-ProcessingCapability-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16, nr_DL_PRS_ProcessingCapability_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ProcessingCapability_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ProcessingCapability-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16, nr_UL_SRS_Capability_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_UL_SRS_Capability_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UL-SRS-Capability-r16" + }, + { ATF_POINTER, 5, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16, additionalPathsReport_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_additionalPathsReport_r16_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "additionalPathsReport-r16" + }, + { ATF_POINTER, 4, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16, periodicalReporting_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_periodicalReporting_r16_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "periodicalReporting-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_ext1_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + 0, + &asn_DEF_ext2_39, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16, ext3), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + 0, + &asn_DEF_ext3_42, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, +}; +static const int asn_MAP_NR_Multi_RTT_ProvideCapabilities_r16_oms_1[] = { 5, 6, 7, 8, 9 }; +static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_ProvideCapabilities_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-Multi-RTT-PRS-Capability-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-Multi-RTT-MeasurementCapability-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-PRS-QCL-ProcessingCapability-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-DL-PRS-ProcessingCapability-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-UL-SRS-Capability-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* additionalPathsReport-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* periodicalReporting-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* ext3 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_ProvideCapabilities_r16_specs_1 = { + sizeof(struct NR_Multi_RTT_ProvideCapabilities_r16), + offsetof(struct NR_Multi_RTT_ProvideCapabilities_r16, _asn_ctx), + asn_MAP_NR_Multi_RTT_ProvideCapabilities_r16_tag2el_1, + 10, /* Count of tags in the map */ + asn_MAP_NR_Multi_RTT_ProvideCapabilities_r16_oms_1, /* Optional members */ + 2, 3, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16 = { + "NR-Multi-RTT-ProvideCapabilities-r16", + "NR-Multi-RTT-ProvideCapabilities-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16_tags_1, + sizeof(asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_Multi_RTT_ProvideCapabilities_r16_1, + 10, /* Elements count */ + &asn_SPC_NR_Multi_RTT_ProvideCapabilities_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-Multi-RTT-ProvideCapabilities-r16.h b/asn.1/lpp_generated/NR-Multi-RTT-ProvideCapabilities-r16.h new file mode 100644 index 00000000..34bdeda4 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-ProvideCapabilities-r16.h @@ -0,0 +1,159 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_Multi_RTT_ProvideCapabilities_r16_H_ +#define _NR_Multi_RTT_ProvideCapabilities_r16_H_ + + +#include + +/* Including external dependencies */ +#include "NR-DL-PRS-ResourcesCapability-r16.h" +#include "NR-Multi-RTT-MeasurementCapability-r16.h" +#include "NR-DL-PRS-QCL-ProcessingCapability-r16.h" +#include "NR-DL-PRS-ProcessingCapability-r16.h" +#include "NR-UL-SRS-Capability-r16.h" +#include +#include +#include "LOS-NLOS-IndicatorType2-r17.h" +#include "LOS-NLOS-IndicatorGranularity2-r17.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_Multi_RTT_ProvideCapabilities_r16__additionalPathsReport_r16 { + NR_Multi_RTT_ProvideCapabilities_r16__additionalPathsReport_r16_supported = 0 +} e_NR_Multi_RTT_ProvideCapabilities_r16__additionalPathsReport_r16; +typedef enum NR_Multi_RTT_ProvideCapabilities_r16__periodicalReporting_r16 { + NR_Multi_RTT_ProvideCapabilities_r16__periodicalReporting_r16_supported = 0 +} e_NR_Multi_RTT_ProvideCapabilities_r16__periodicalReporting_r16; +typedef enum NR_Multi_RTT_ProvideCapabilities_r16__ext1__ten_ms_unit_ResponseTime_r17 { + NR_Multi_RTT_ProvideCapabilities_r16__ext1__ten_ms_unit_ResponseTime_r17_supported = 0 +} e_NR_Multi_RTT_ProvideCapabilities_r16__ext1__ten_ms_unit_ResponseTime_r17; +typedef enum NR_Multi_RTT_ProvideCapabilities_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17 { + NR_Multi_RTT_ProvideCapabilities_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17_eAoD = 0, + NR_Multi_RTT_ProvideCapabilities_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17_eAoA = 1 +} e_NR_Multi_RTT_ProvideCapabilities_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17; +typedef enum NR_Multi_RTT_ProvideCapabilities_r16__ext1__nr_UE_RxTx_TEG_ID_ReportingSupport_r17 { + NR_Multi_RTT_ProvideCapabilities_r16__ext1__nr_UE_RxTx_TEG_ID_ReportingSupport_r17_case1 = 0, + NR_Multi_RTT_ProvideCapabilities_r16__ext1__nr_UE_RxTx_TEG_ID_ReportingSupport_r17_case2 = 1, + NR_Multi_RTT_ProvideCapabilities_r16__ext1__nr_UE_RxTx_TEG_ID_ReportingSupport_r17_case3 = 2 +} e_NR_Multi_RTT_ProvideCapabilities_r16__ext1__nr_UE_RxTx_TEG_ID_ReportingSupport_r17; +typedef enum NR_Multi_RTT_ProvideCapabilities_r16__ext1__additionalPathsExtSupport_r17 { + NR_Multi_RTT_ProvideCapabilities_r16__ext1__additionalPathsExtSupport_r17_n4 = 0, + NR_Multi_RTT_ProvideCapabilities_r16__ext1__additionalPathsExtSupport_r17_n6 = 1, + NR_Multi_RTT_ProvideCapabilities_r16__ext1__additionalPathsExtSupport_r17_n8 = 2 +} e_NR_Multi_RTT_ProvideCapabilities_r16__ext1__additionalPathsExtSupport_r17; +typedef enum NR_Multi_RTT_ProvideCapabilities_r16__ext1__multiMeasInSameMeasReport_r17 { + NR_Multi_RTT_ProvideCapabilities_r16__ext1__multiMeasInSameMeasReport_r17_supported = 0 +} e_NR_Multi_RTT_ProvideCapabilities_r16__ext1__multiMeasInSameMeasReport_r17; +typedef enum NR_Multi_RTT_ProvideCapabilities_r16__ext1__mg_ActivationRequest_r17 { + NR_Multi_RTT_ProvideCapabilities_r16__ext1__mg_ActivationRequest_r17_supported = 0 +} e_NR_Multi_RTT_ProvideCapabilities_r16__ext1__mg_ActivationRequest_r17; +typedef enum NR_Multi_RTT_ProvideCapabilities_r16__ext2__posMeasGapSupport_r17 { + NR_Multi_RTT_ProvideCapabilities_r16__ext2__posMeasGapSupport_r17_supported = 0 +} e_NR_Multi_RTT_ProvideCapabilities_r16__ext2__posMeasGapSupport_r17; +typedef enum NR_Multi_RTT_ProvideCapabilities_r16__ext3__symbolTimeStampSupport_r18 { + NR_Multi_RTT_ProvideCapabilities_r16__ext3__symbolTimeStampSupport_r18_supported = 0 +} e_NR_Multi_RTT_ProvideCapabilities_r16__ext3__symbolTimeStampSupport_r18; +typedef enum NR_Multi_RTT_ProvideCapabilities_r16__ext3__nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18 { + NR_Multi_RTT_ProvideCapabilities_r16__ext3__nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18_supported = 0 +} e_NR_Multi_RTT_ProvideCapabilities_r16__ext3__nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18; + +/* Forward declarations */ +struct NR_On_Demand_DL_PRS_Support_r17; +struct ScheduledLocationTimeSupport_r17; + +/* NR-Multi-RTT-ProvideCapabilities-r16 */ +typedef struct NR_Multi_RTT_ProvideCapabilities_r16 { + NR_DL_PRS_ResourcesCapability_r16_t nr_Multi_RTT_PRS_Capability_r16; + NR_Multi_RTT_MeasurementCapability_r16_t nr_Multi_RTT_MeasurementCapability_r16; + NR_DL_PRS_QCL_ProcessingCapability_r16_t nr_DL_PRS_QCL_ProcessingCapability_r16; + NR_DL_PRS_ProcessingCapability_r16_t nr_DL_PRS_ProcessingCapability_r16; + NR_UL_SRS_Capability_r16_t nr_UL_SRS_Capability_r16; + long *additionalPathsReport_r16; /* OPTIONAL */ + long *periodicalReporting_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_Multi_RTT_ProvideCapabilities_r16__ext1 { + long *ten_ms_unit_ResponseTime_r17; /* OPTIONAL */ + BIT_STRING_t *nr_DL_PRS_ExpectedAoD_or_AoA_Sup_r17; /* OPTIONAL */ + struct NR_On_Demand_DL_PRS_Support_r17 *nr_Multi_RTT_On_Demand_DL_PRS_Support_r17; /* OPTIONAL */ + BIT_STRING_t *nr_UE_RxTx_TEG_ID_ReportingSupport_r17; /* OPTIONAL */ + struct NR_Multi_RTT_ProvideCapabilities_r16__ext1__nr_los_nlos_IndicatorSupport_r17 { + LOS_NLOS_IndicatorType2_r17_t type_r17; + LOS_NLOS_IndicatorGranularity2_r17_t granularity_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_los_nlos_IndicatorSupport_r17; + long *additionalPathsExtSupport_r17; /* OPTIONAL */ + struct ScheduledLocationTimeSupport_r17 *scheduledLocationRequestSupported_r17; /* OPTIONAL */ + struct NR_Multi_RTT_ProvideCapabilities_r16__ext1__nr_dl_prs_AssistanceDataValidity_r17 { + long *area_validity_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_dl_prs_AssistanceDataValidity_r17; + long *multiMeasInSameMeasReport_r17; /* OPTIONAL */ + long *mg_ActivationRequest_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct NR_Multi_RTT_ProvideCapabilities_r16__ext2 { + long *posMeasGapSupport_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct NR_Multi_RTT_ProvideCapabilities_r16__ext3 { + long *symbolTimeStampSupport_r18; /* OPTIONAL */ + long *nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_Multi_RTT_ProvideCapabilities_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_additionalPathsReport_r16_7; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_periodicalReporting_r16_9; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_ten_ms_unit_ResponseTime_r17_13; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_additionalPathsExtSupport_r17_27; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_multiMeasInSameMeasReport_r17_35; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_mg_ActivationRequest_r17_37; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_posMeasGapSupport_r17_40; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_symbolTimeStampSupport_r18_43; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_MultiRTT_OnDemandPRS_ForBWA_Support_r18_45; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_ProvideCapabilities_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_ProvideCapabilities_r16_1[10]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_Multi_RTT_ProvideCapabilities_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-Multi-RTT-ProvideLocationInformation-r16.c b/asn.1/lpp_generated/NR-Multi-RTT-ProvideLocationInformation-r16.c new file mode 100644 index 00000000..f478cfc7 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-ProvideLocationInformation-r16.c @@ -0,0 +1,260 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-Multi-RTT-ProvideLocationInformation-r16.h" + +#include "NR-Multi-RTT-SignalMeasurementInformation-r16.h" +#include "NR-Multi-RTT-Error-r16.h" +static int +memb_nr_Multi_RTT_SignalMeasurementInstances_r17_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 32UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_Multi_RTT_SignalMeasurementInstances_r17_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_Multi_RTT_SignalMeasurementInstances_r17_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_Multi_RTT_SignalMeasurementInstances_r17_6[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_Multi_RTT_SignalMeasurementInstances_r17_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_Multi_RTT_SignalMeasurementInstances_r17_specs_6 = { + sizeof(struct NR_Multi_RTT_ProvideLocationInformation_r16__ext1__nr_Multi_RTT_SignalMeasurementInstances_r17), + offsetof(struct NR_Multi_RTT_ProvideLocationInformation_r16__ext1__nr_Multi_RTT_SignalMeasurementInstances_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_Multi_RTT_SignalMeasurementInstances_r17_6 = { + "nr-Multi-RTT-SignalMeasurementInstances-r17", + "nr-Multi-RTT-SignalMeasurementInstances-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_Multi_RTT_SignalMeasurementInstances_r17_tags_6, + sizeof(asn_DEF_nr_Multi_RTT_SignalMeasurementInstances_r17_tags_6) + /sizeof(asn_DEF_nr_Multi_RTT_SignalMeasurementInstances_r17_tags_6[0]) - 1, /* 1 */ + asn_DEF_nr_Multi_RTT_SignalMeasurementInstances_r17_tags_6, /* Same as above */ + sizeof(asn_DEF_nr_Multi_RTT_SignalMeasurementInstances_r17_tags_6) + /sizeof(asn_DEF_nr_Multi_RTT_SignalMeasurementInstances_r17_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_Multi_RTT_SignalMeasurementInstances_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_Multi_RTT_SignalMeasurementInstances_r17_6, + 1, /* Single element */ + &asn_SPC_nr_Multi_RTT_SignalMeasurementInstances_r17_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_ProvideLocationInformation_r16__ext1, nr_Multi_RTT_SignalMeasurementInstances_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_nr_Multi_RTT_SignalMeasurementInstances_r17_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_Multi_RTT_SignalMeasurementInstances_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_Multi_RTT_SignalMeasurementInstances_r17_constraint_5 + }, + 0, 0, /* No default value */ + "nr-Multi-RTT-SignalMeasurementInstances-r17" + }, +}; +static const int asn_MAP_ext1_oms_5[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-Multi-RTT-SignalMeasurementInstances-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct NR_Multi_RTT_ProvideLocationInformation_r16__ext1), + offsetof(struct NR_Multi_RTT_ProvideLocationInformation_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_5, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 1, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_Multi_RTT_ProvideLocationInformation_r16_1[] = { + { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_ProvideLocationInformation_r16, nr_Multi_RTT_SignalMeasurementInformation_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-Multi-RTT-SignalMeasurementInformation-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_ProvideLocationInformation_r16, nr_Multi_RTT_Error_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_NR_Multi_RTT_Error_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-Multi-RTT-Error-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_ProvideLocationInformation_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_Multi_RTT_ProvideLocationInformation_r16_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_ProvideLocationInformation_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-Multi-RTT-SignalMeasurementInformation-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-Multi-RTT-Error-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_ProvideLocationInformation_r16_specs_1 = { + sizeof(struct NR_Multi_RTT_ProvideLocationInformation_r16), + offsetof(struct NR_Multi_RTT_ProvideLocationInformation_r16, _asn_ctx), + asn_MAP_NR_Multi_RTT_ProvideLocationInformation_r16_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_NR_Multi_RTT_ProvideLocationInformation_r16_oms_1, /* Optional members */ + 2, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16 = { + "NR-Multi-RTT-ProvideLocationInformation-r16", + "NR-Multi-RTT-ProvideLocationInformation-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16_tags_1, + sizeof(asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_Multi_RTT_ProvideLocationInformation_r16_1, + 3, /* Elements count */ + &asn_SPC_NR_Multi_RTT_ProvideLocationInformation_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-Multi-RTT-ProvideLocationInformation-r16.h b/asn.1/lpp_generated/NR-Multi-RTT-ProvideLocationInformation-r16.h new file mode 100644 index 00000000..7db1e6dc --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-ProvideLocationInformation-r16.h @@ -0,0 +1,61 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_Multi_RTT_ProvideLocationInformation_r16_H_ +#define _NR_Multi_RTT_ProvideLocationInformation_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_Multi_RTT_SignalMeasurementInformation_r16; +struct NR_Multi_RTT_Error_r16; + +/* NR-Multi-RTT-ProvideLocationInformation-r16 */ +typedef struct NR_Multi_RTT_ProvideLocationInformation_r16 { + struct NR_Multi_RTT_SignalMeasurementInformation_r16 *nr_Multi_RTT_SignalMeasurementInformation_r16; /* OPTIONAL */ + struct NR_Multi_RTT_Error_r16 *nr_Multi_RTT_Error_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_Multi_RTT_ProvideLocationInformation_r16__ext1 { + struct NR_Multi_RTT_ProvideLocationInformation_r16__ext1__nr_Multi_RTT_SignalMeasurementInstances_r17 { + A_SEQUENCE_OF(struct NR_Multi_RTT_SignalMeasurementInformation_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_Multi_RTT_SignalMeasurementInstances_r17; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_Multi_RTT_ProvideLocationInformation_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_ProvideLocationInformation_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_ProvideLocationInformation_r16_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_Multi_RTT_ProvideLocationInformation_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-Multi-RTT-ReportConfig-r16.c b/asn.1/lpp_generated/NR-Multi-RTT-ReportConfig-r16.c new file mode 100644 index 00000000..d25d06f1 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-ReportConfig-r16.c @@ -0,0 +1,150 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-Multi-RTT-ReportConfig-r16.h" + +static int +memb_maxDL_PRS_RxTxTimeDiffMeasPerTRP_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 4L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_timingReportingGranularityFactor_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 5L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxDL_PRS_RxTxTimeDiffMeasPerTRP_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (1..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_timingReportingGranularityFactor_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_Multi_RTT_ReportConfig_r16_1[] = { + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_ReportConfig_r16, maxDL_PRS_RxTxTimeDiffMeasPerTRP_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxDL_PRS_RxTxTimeDiffMeasPerTRP_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxDL_PRS_RxTxTimeDiffMeasPerTRP_r16_constraint_1 + }, + 0, 0, /* No default value */ + "maxDL-PRS-RxTxTimeDiffMeasPerTRP-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_ReportConfig_r16, timingReportingGranularityFactor_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_timingReportingGranularityFactor_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_timingReportingGranularityFactor_r16_constraint_1 + }, + 0, 0, /* No default value */ + "timingReportingGranularityFactor-r16" + }, +}; +static const int asn_MAP_NR_Multi_RTT_ReportConfig_r16_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_ReportConfig_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_ReportConfig_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxDL-PRS-RxTxTimeDiffMeasPerTRP-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* timingReportingGranularityFactor-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_ReportConfig_r16_specs_1 = { + sizeof(struct NR_Multi_RTT_ReportConfig_r16), + offsetof(struct NR_Multi_RTT_ReportConfig_r16, _asn_ctx), + asn_MAP_NR_Multi_RTT_ReportConfig_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_NR_Multi_RTT_ReportConfig_r16_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_ReportConfig_r16 = { + "NR-Multi-RTT-ReportConfig-r16", + "NR-Multi-RTT-ReportConfig-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_Multi_RTT_ReportConfig_r16_tags_1, + sizeof(asn_DEF_NR_Multi_RTT_ReportConfig_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_ReportConfig_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_Multi_RTT_ReportConfig_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_Multi_RTT_ReportConfig_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_ReportConfig_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_Multi_RTT_ReportConfig_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_Multi_RTT_ReportConfig_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-Multi-RTT-ReportConfig-r16.h b/asn.1/lpp_generated/NR-Multi-RTT-ReportConfig-r16.h new file mode 100644 index 00000000..4b517842 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-ReportConfig-r16.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_Multi_RTT_ReportConfig_r16_H_ +#define _NR_Multi_RTT_ReportConfig_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-Multi-RTT-ReportConfig-r16 */ +typedef struct NR_Multi_RTT_ReportConfig_r16 { + long *maxDL_PRS_RxTxTimeDiffMeasPerTRP_r16; /* OPTIONAL */ + long *timingReportingGranularityFactor_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_Multi_RTT_ReportConfig_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_ReportConfig_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_ReportConfig_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_ReportConfig_r16_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_Multi_RTT_ReportConfig_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-Multi-RTT-RequestAssistanceData-r16.c b/asn.1/lpp_generated/NR-Multi-RTT-RequestAssistanceData-r16.c new file mode 100644 index 00000000..4a39e821 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-RequestAssistanceData-r16.c @@ -0,0 +1,350 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-Multi-RTT-RequestAssistanceData-r16.h" + +#include "NR-On-Demand-DL-PRS-Request-r17.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_nr_AdType_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_pre_configured_AssistanceDataRequest_r17_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_AdType_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_value2enum_9[] = { + { 0, 4, "eAoD" }, + { 1, 4, "eAoA" } +}; +static const unsigned int asn_MAP_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_enum2value_9[] = { + 1, /* eAoA(1) */ + 0 /* eAoD(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_specs_9 = { + asn_MAP_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_value2enum_9, /* "tag" => N; sorted by tag */ + asn_MAP_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_enum2value_9, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_9 = { + "nr-DL-PRS-ExpectedAoD-or-AoA-Request-r17", + "nr-DL-PRS-ExpectedAoD-or-AoA-Request-r17", + &asn_OP_NativeEnumerated, + asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_9, + sizeof(asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_9) + /sizeof(asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_9[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_9, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_9) + /sizeof(asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_specs_9 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_pre_configured_AssistanceDataRequest_r17_value2enum_12[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_pre_configured_AssistanceDataRequest_r17_enum2value_12[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_pre_configured_AssistanceDataRequest_r17_specs_12 = { + asn_MAP_pre_configured_AssistanceDataRequest_r17_value2enum_12, /* "tag" => N; sorted by tag */ + asn_MAP_pre_configured_AssistanceDataRequest_r17_enum2value_12, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_pre_configured_AssistanceDataRequest_r17_12 = { + "pre-configured-AssistanceDataRequest-r17", + "pre-configured-AssistanceDataRequest-r17", + &asn_OP_NativeEnumerated, + asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_12, + sizeof(asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_12) + /sizeof(asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_12[0]) - 1, /* 1 */ + asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_12, /* Same as above */ + sizeof(asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_12) + /sizeof(asn_DEF_pre_configured_AssistanceDataRequest_r17_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_pre_configured_AssistanceDataRequest_r17_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_pre_configured_AssistanceDataRequest_r17_specs_12 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_RequestAssistanceData_r16__ext1, nr_on_demand_DL_PRS_Request_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_On_Demand_DL_PRS_Request_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-on-demand-DL-PRS-Request-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_RequestAssistanceData_r16__ext1, nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ExpectedAoD-or-AoA-Request-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_RequestAssistanceData_r16__ext1, pre_configured_AssistanceDataRequest_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_pre_configured_AssistanceDataRequest_r17_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pre-configured-AssistanceDataRequest-r17" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-on-demand-DL-PRS-Request-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-ExpectedAoD-or-AoA-Request-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* pre-configured-AssistanceDataRequest-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct NR_Multi_RTT_RequestAssistanceData_r16__ext1), + offsetof(struct NR_Multi_RTT_RequestAssistanceData_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 3, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 3, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_Multi_RTT_RequestAssistanceData_r16_1[] = { + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_RequestAssistanceData_r16, nr_PhysCellID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_RequestAssistanceData_r16, nr_AdType_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_AdType_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_AdType_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-AdType-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_RequestAssistanceData_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_Multi_RTT_RequestAssistanceData_r16_oms_1[] = { 0, 2 }; +static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_RequestAssistanceData_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-PhysCellID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-AdType-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_RequestAssistanceData_r16_specs_1 = { + sizeof(struct NR_Multi_RTT_RequestAssistanceData_r16), + offsetof(struct NR_Multi_RTT_RequestAssistanceData_r16, _asn_ctx), + asn_MAP_NR_Multi_RTT_RequestAssistanceData_r16_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_NR_Multi_RTT_RequestAssistanceData_r16_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16 = { + "NR-Multi-RTT-RequestAssistanceData-r16", + "NR-Multi-RTT-RequestAssistanceData-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16_tags_1, + sizeof(asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_Multi_RTT_RequestAssistanceData_r16_1, + 3, /* Elements count */ + &asn_SPC_NR_Multi_RTT_RequestAssistanceData_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-Multi-RTT-RequestAssistanceData-r16.h b/asn.1/lpp_generated/NR-Multi-RTT-RequestAssistanceData-r16.h new file mode 100644 index 00000000..85cefe23 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-RequestAssistanceData-r16.h @@ -0,0 +1,73 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_Multi_RTT_RequestAssistanceData_r16_H_ +#define _NR_Multi_RTT_RequestAssistanceData_r16_H_ + + +#include + +/* Including external dependencies */ +#include "NR-PhysCellID-r16.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_Multi_RTT_RequestAssistanceData_r16__nr_AdType_r16 { + NR_Multi_RTT_RequestAssistanceData_r16__nr_AdType_r16_dl_prs = 0, + NR_Multi_RTT_RequestAssistanceData_r16__nr_AdType_r16_ul_srs = 1 +} e_NR_Multi_RTT_RequestAssistanceData_r16__nr_AdType_r16; +typedef enum NR_Multi_RTT_RequestAssistanceData_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17 { + NR_Multi_RTT_RequestAssistanceData_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_eAoD = 0, + NR_Multi_RTT_RequestAssistanceData_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_eAoA = 1 +} e_NR_Multi_RTT_RequestAssistanceData_r16__ext1__nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17; +typedef enum NR_Multi_RTT_RequestAssistanceData_r16__ext1__pre_configured_AssistanceDataRequest_r17 { + NR_Multi_RTT_RequestAssistanceData_r16__ext1__pre_configured_AssistanceDataRequest_r17_true = 0 +} e_NR_Multi_RTT_RequestAssistanceData_r16__ext1__pre_configured_AssistanceDataRequest_r17; + +/* Forward declarations */ +struct NR_On_Demand_DL_PRS_Request_r17; + +/* NR-Multi-RTT-RequestAssistanceData-r16 */ +typedef struct NR_Multi_RTT_RequestAssistanceData_r16 { + NR_PhysCellID_r16_t *nr_PhysCellID_r16; /* OPTIONAL */ + BIT_STRING_t nr_AdType_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_Multi_RTT_RequestAssistanceData_r16__ext1 { + struct NR_On_Demand_DL_PRS_Request_r17 *nr_on_demand_DL_PRS_Request_r17; /* OPTIONAL */ + long *nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17; /* OPTIONAL */ + long *pre_configured_AssistanceDataRequest_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_Multi_RTT_RequestAssistanceData_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_ExpectedAoD_or_AoA_Request_r17_9; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_pre_configured_AssistanceDataRequest_r17_12; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_RequestAssistanceData_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_RequestAssistanceData_r16_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_Multi_RTT_RequestAssistanceData_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-Multi-RTT-RequestCapabilities-r16.c b/asn.1/lpp_generated/NR-Multi-RTT-RequestCapabilities-r16.c new file mode 100644 index 00000000..7722b62c --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-RequestCapabilities-r16.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-Multi-RTT-RequestCapabilities-r16.h" + +static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_RequestCapabilities_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_RequestCapabilities_r16_specs_1 = { + sizeof(struct NR_Multi_RTT_RequestCapabilities_r16), + offsetof(struct NR_Multi_RTT_RequestCapabilities_r16, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_RequestCapabilities_r16 = { + "NR-Multi-RTT-RequestCapabilities-r16", + "NR-Multi-RTT-RequestCapabilities-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_Multi_RTT_RequestCapabilities_r16_tags_1, + sizeof(asn_DEF_NR_Multi_RTT_RequestCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_RequestCapabilities_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_Multi_RTT_RequestCapabilities_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_Multi_RTT_RequestCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_RequestCapabilities_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_NR_Multi_RTT_RequestCapabilities_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-Multi-RTT-RequestCapabilities-r16.h b/asn.1/lpp_generated/NR-Multi-RTT-RequestCapabilities-r16.h similarity index 78% rename from asn.1/generated/NR-Multi-RTT-RequestCapabilities-r16.h rename to asn.1/lpp_generated/NR-Multi-RTT-RequestCapabilities-r16.h index 54298f5a..300e3c19 100644 --- a/asn.1/generated/NR-Multi-RTT-RequestCapabilities-r16.h +++ b/asn.1/lpp_generated/NR-Multi-RTT-RequestCapabilities-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_Multi_RTT_RequestCapabilities_r16_H_ diff --git a/asn.1/lpp_generated/NR-Multi-RTT-RequestLocationInformation-r16.c b/asn.1/lpp_generated/NR-Multi-RTT-RequestLocationInformation-r16.c new file mode 100644 index 00000000..d97deebd --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-RequestLocationInformation-r16.c @@ -0,0 +1,1672 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-Multi-RTT-RequestLocationInformation-r16.h" + +#include "NR-DL-PRS-MeasurementTimeWindowsConfig-r18.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_NativeInteger_constraint_63(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_timingReportingGranularityFactorExt_r18_constraint_50(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -6L && value <= -1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_constraint_50(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 2UL && size <= 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_RequestedMeasurements_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_additionalPaths_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_UE_RxTxTEG_Request_r17_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_constr_27 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_reducedDL_PRS_ProcessingSamples_r17_constr_35 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_additionalPathsExt_r17_constr_42 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_additionalPathsDL_PRS_RSRP_Request_r17_constr_44 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_multiMeasInSameReport_r17_constr_46 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_lowerRxBeamSweepingFactor_FR2_r17_constr_48 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_fr1_constr_53 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_fr2_constr_58 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_RxHoppingTotalBandwidth_r18_constr_52 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_64 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_constr_63 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_DL_PRS_RSCP_Request_r18_constr_65 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_timingReportingGranularityFactorExt_r18_constr_62 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, -6, -1 } /* (-6..-1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_constr_63 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_RequestedMeasurements_r16_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16_value2enum_2[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16_enum2value_2[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16_specs_2 = { + asn_MAP_nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16_enum2value_2, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16_2 = { + "nr-UE-RxTxTimeDiffMeasurementInfoRequest-r16", + "nr-UE-RxTxTimeDiffMeasurementInfoRequest-r16", + &asn_OP_NativeEnumerated, + asn_DEF_nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16_tags_2, + sizeof(asn_DEF_nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16_tags_2) + /sizeof(asn_DEF_nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16_tags_2) + /sizeof(asn_DEF_nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_additionalPaths_r16_value2enum_10[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_additionalPaths_r16_enum2value_10[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_additionalPaths_r16_specs_10 = { + asn_MAP_additionalPaths_r16_value2enum_10, /* "tag" => N; sorted by tag */ + asn_MAP_additionalPaths_r16_enum2value_10, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_additionalPaths_r16_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_additionalPaths_r16_10 = { + "additionalPaths-r16", + "additionalPaths-r16", + &asn_OP_NativeEnumerated, + asn_DEF_additionalPaths_r16_tags_10, + sizeof(asn_DEF_additionalPaths_r16_tags_10) + /sizeof(asn_DEF_additionalPaths_r16_tags_10[0]) - 1, /* 1 */ + asn_DEF_additionalPaths_r16_tags_10, /* Same as above */ + sizeof(asn_DEF_additionalPaths_r16_tags_10) + /sizeof(asn_DEF_additionalPaths_r16_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_additionalPaths_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_additionalPaths_r16_specs_10 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_UE_RxTxTEG_Request_r17_value2enum_14[] = { + { 0, 5, "case1" }, + { 1, 5, "case2" }, + { 2, 5, "case3" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_nr_UE_RxTxTEG_Request_r17_enum2value_14[] = { + 0, /* case1(0) */ + 1, /* case2(1) */ + 2 /* case3(2) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_UE_RxTxTEG_Request_r17_specs_14 = { + asn_MAP_nr_UE_RxTxTEG_Request_r17_value2enum_14, /* "tag" => N; sorted by tag */ + asn_MAP_nr_UE_RxTxTEG_Request_r17_enum2value_14, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 4, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_UE_RxTxTEG_Request_r17_tags_14[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_UE_RxTxTEG_Request_r17_14 = { + "nr-UE-RxTxTEG-Request-r17", + "nr-UE-RxTxTEG-Request-r17", + &asn_OP_NativeEnumerated, + asn_DEF_nr_UE_RxTxTEG_Request_r17_tags_14, + sizeof(asn_DEF_nr_UE_RxTxTEG_Request_r17_tags_14) + /sizeof(asn_DEF_nr_UE_RxTxTEG_Request_r17_tags_14[0]) - 1, /* 1 */ + asn_DEF_nr_UE_RxTxTEG_Request_r17_tags_14, /* Same as above */ + sizeof(asn_DEF_nr_UE_RxTxTEG_Request_r17_tags_14) + /sizeof(asn_DEF_nr_UE_RxTxTEG_Request_r17_tags_14[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_UE_RxTxTEG_Request_r17_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_UE_RxTxTEG_Request_r17_specs_14 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_value2enum_19[] = { + { 0, 2, "n0" }, + { 1, 2, "n2" }, + { 2, 2, "n3" }, + { 3, 2, "n4" }, + { 4, 2, "n6" }, + { 5, 2, "n8" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_enum2value_19[] = { + 0, /* n0(0) */ + 1, /* n2(1) */ + 2, /* n3(2) */ + 3, /* n4(3) */ + 4, /* n6(4) */ + 5 /* n8(5) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_specs_19 = { + asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_value2enum_19, /* "tag" => N; sorted by tag */ + asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_enum2value_19, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 7, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_tags_19[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_19 = { + "measureSameDL-PRS-ResourceWithDifferentRxTxTEGs-r17", + "measureSameDL-PRS-ResourceWithDifferentRxTxTEGs-r17", + &asn_OP_NativeEnumerated, + asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_tags_19, + sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_tags_19) + /sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_tags_19[0]) - 1, /* 1 */ + asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_tags_19, /* Same as above */ + sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_tags_19) + /sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_tags_19[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_specs_19 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_value2enum_27[] = { + { 0, 2, "n0" }, + { 1, 2, "n2" }, + { 2, 2, "n3" }, + { 3, 2, "n4" }, + { 4, 2, "n6" }, + { 5, 2, "n8" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_enum2value_27[] = { + 0, /* n0(0) */ + 1, /* n2(1) */ + 2, /* n3(2) */ + 3, /* n4(3) */ + 4, /* n6(4) */ + 5 /* n8(5) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_specs_27 = { + asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_value2enum_27, /* "tag" => N; sorted by tag */ + asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_enum2value_27, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 7, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_27[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_27 = { + "measureSameDL-PRS-ResourceWithDifferentRxTEGs-r17", + "measureSameDL-PRS-ResourceWithDifferentRxTEGs-r17", + &asn_OP_NativeEnumerated, + asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_27, + sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_27) + /sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_27[0]) - 1, /* 1 */ + asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_27, /* Same as above */ + sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_27) + /sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_27[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_constr_27, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_specs_27 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_reducedDL_PRS_ProcessingSamples_r17_value2enum_35[] = { + { 0, 9, "requested" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_reducedDL_PRS_ProcessingSamples_r17_enum2value_35[] = { + 0 /* requested(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_reducedDL_PRS_ProcessingSamples_r17_specs_35 = { + asn_MAP_reducedDL_PRS_ProcessingSamples_r17_value2enum_35, /* "tag" => N; sorted by tag */ + asn_MAP_reducedDL_PRS_ProcessingSamples_r17_enum2value_35, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_35[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_reducedDL_PRS_ProcessingSamples_r17_35 = { + "reducedDL-PRS-ProcessingSamples-r17", + "reducedDL-PRS-ProcessingSamples-r17", + &asn_OP_NativeEnumerated, + asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_35, + sizeof(asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_35) + /sizeof(asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_35[0]) - 1, /* 1 */ + asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_35, /* Same as above */ + sizeof(asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_35) + /sizeof(asn_DEF_reducedDL_PRS_ProcessingSamples_r17_tags_35[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_reducedDL_PRS_ProcessingSamples_r17_constr_35, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_reducedDL_PRS_ProcessingSamples_r17_specs_35 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_los_nlos_IndicatorRequest_r17_38[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext1__nr_los_nlos_IndicatorRequest_r17, type_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_IndicatorType1_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "type-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext1__nr_los_nlos_IndicatorRequest_r17, granularity_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_IndicatorGranularity1_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "granularity-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_38[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_los_nlos_IndicatorRequest_r17_tag2el_38[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* type-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* granularity-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_nr_los_nlos_IndicatorRequest_r17_specs_38 = { + sizeof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext1__nr_los_nlos_IndicatorRequest_r17), + offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext1__nr_los_nlos_IndicatorRequest_r17, _asn_ctx), + asn_MAP_nr_los_nlos_IndicatorRequest_r17_tag2el_38, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_los_nlos_IndicatorRequest_r17_38 = { + "nr-los-nlos-IndicatorRequest-r17", + "nr-los-nlos-IndicatorRequest-r17", + &asn_OP_SEQUENCE, + asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_38, + sizeof(asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_38) + /sizeof(asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_38[0]) - 1, /* 1 */ + asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_38, /* Same as above */ + sizeof(asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_38) + /sizeof(asn_DEF_nr_los_nlos_IndicatorRequest_r17_tags_38[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_nr_los_nlos_IndicatorRequest_r17_38, + 2, /* Elements count */ + &asn_SPC_nr_los_nlos_IndicatorRequest_r17_specs_38 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_additionalPathsExt_r17_value2enum_42[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_additionalPathsExt_r17_enum2value_42[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_additionalPathsExt_r17_specs_42 = { + asn_MAP_additionalPathsExt_r17_value2enum_42, /* "tag" => N; sorted by tag */ + asn_MAP_additionalPathsExt_r17_enum2value_42, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_additionalPathsExt_r17_tags_42[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_additionalPathsExt_r17_42 = { + "additionalPathsExt-r17", + "additionalPathsExt-r17", + &asn_OP_NativeEnumerated, + asn_DEF_additionalPathsExt_r17_tags_42, + sizeof(asn_DEF_additionalPathsExt_r17_tags_42) + /sizeof(asn_DEF_additionalPathsExt_r17_tags_42[0]) - 1, /* 1 */ + asn_DEF_additionalPathsExt_r17_tags_42, /* Same as above */ + sizeof(asn_DEF_additionalPathsExt_r17_tags_42) + /sizeof(asn_DEF_additionalPathsExt_r17_tags_42[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_additionalPathsExt_r17_constr_42, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_additionalPathsExt_r17_specs_42 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_additionalPathsDL_PRS_RSRP_Request_r17_value2enum_44[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_additionalPathsDL_PRS_RSRP_Request_r17_enum2value_44[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_additionalPathsDL_PRS_RSRP_Request_r17_specs_44 = { + asn_MAP_additionalPathsDL_PRS_RSRP_Request_r17_value2enum_44, /* "tag" => N; sorted by tag */ + asn_MAP_additionalPathsDL_PRS_RSRP_Request_r17_enum2value_44, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_tags_44[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_44 = { + "additionalPathsDL-PRS-RSRP-Request-r17", + "additionalPathsDL-PRS-RSRP-Request-r17", + &asn_OP_NativeEnumerated, + asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_tags_44, + sizeof(asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_tags_44) + /sizeof(asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_tags_44[0]) - 1, /* 1 */ + asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_tags_44, /* Same as above */ + sizeof(asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_tags_44) + /sizeof(asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_tags_44[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_additionalPathsDL_PRS_RSRP_Request_r17_constr_44, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_additionalPathsDL_PRS_RSRP_Request_r17_specs_44 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_multiMeasInSameReport_r17_value2enum_46[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_multiMeasInSameReport_r17_enum2value_46[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_multiMeasInSameReport_r17_specs_46 = { + asn_MAP_multiMeasInSameReport_r17_value2enum_46, /* "tag" => N; sorted by tag */ + asn_MAP_multiMeasInSameReport_r17_enum2value_46, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_multiMeasInSameReport_r17_tags_46[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_multiMeasInSameReport_r17_46 = { + "multiMeasInSameReport-r17", + "multiMeasInSameReport-r17", + &asn_OP_NativeEnumerated, + asn_DEF_multiMeasInSameReport_r17_tags_46, + sizeof(asn_DEF_multiMeasInSameReport_r17_tags_46) + /sizeof(asn_DEF_multiMeasInSameReport_r17_tags_46[0]) - 1, /* 1 */ + asn_DEF_multiMeasInSameReport_r17_tags_46, /* Same as above */ + sizeof(asn_DEF_multiMeasInSameReport_r17_tags_46) + /sizeof(asn_DEF_multiMeasInSameReport_r17_tags_46[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_multiMeasInSameReport_r17_constr_46, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_multiMeasInSameReport_r17_specs_46 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_lowerRxBeamSweepingFactor_FR2_r17_value2enum_48[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_lowerRxBeamSweepingFactor_FR2_r17_enum2value_48[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_lowerRxBeamSweepingFactor_FR2_r17_specs_48 = { + asn_MAP_lowerRxBeamSweepingFactor_FR2_r17_value2enum_48, /* "tag" => N; sorted by tag */ + asn_MAP_lowerRxBeamSweepingFactor_FR2_r17_enum2value_48, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_48[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_48 = { + "lowerRxBeamSweepingFactor-FR2-r17", + "lowerRxBeamSweepingFactor-FR2-r17", + &asn_OP_NativeEnumerated, + asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_48, + sizeof(asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_48) + /sizeof(asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_48[0]) - 1, /* 1 */ + asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_48, /* Same as above */ + sizeof(asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_48) + /sizeof(asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_tags_48[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_lowerRxBeamSweepingFactor_FR2_r17_constr_48, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_lowerRxBeamSweepingFactor_FR2_r17_specs_48 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_13[] = { + { ATF_POINTER, 9, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext1, nr_UE_RxTxTEG_Request_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_UE_RxTxTEG_Request_r17_14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UE-RxTxTEG-Request-r17" + }, + { ATF_POINTER, 8, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext1, measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_19, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "measureSameDL-PRS-ResourceWithDifferentRxTxTEGs-r17" + }, + { ATF_POINTER, 7, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext1, measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_27, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "measureSameDL-PRS-ResourceWithDifferentRxTEGs-r17" + }, + { ATF_POINTER, 6, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext1, reducedDL_PRS_ProcessingSamples_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_reducedDL_PRS_ProcessingSamples_r17_35, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reducedDL-PRS-ProcessingSamples-r17" + }, + { ATF_POINTER, 5, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext1, nr_los_nlos_IndicatorRequest_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_nr_los_nlos_IndicatorRequest_r17_38, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-los-nlos-IndicatorRequest-r17" + }, + { ATF_POINTER, 4, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext1, additionalPathsExt_r17), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_additionalPathsExt_r17_42, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "additionalPathsExt-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext1, additionalPathsDL_PRS_RSRP_Request_r17), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_44, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "additionalPathsDL-PRS-RSRP-Request-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext1, multiMeasInSameReport_r17), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_multiMeasInSameReport_r17_46, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "multiMeasInSameReport-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext1, lowerRxBeamSweepingFactor_FR2_r17), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_48, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lowerRxBeamSweepingFactor-FR2-r17" + }, +}; +static const int asn_MAP_ext1_oms_13[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_13[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-UE-RxTxTEG-Request-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* measureSameDL-PRS-ResourceWithDifferentRxTxTEGs-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* measureSameDL-PRS-ResourceWithDifferentRxTEGs-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* reducedDL-PRS-ProcessingSamples-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-los-nlos-IndicatorRequest-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* additionalPathsExt-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* additionalPathsDL-PRS-RSRP-Request-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* multiMeasInSameReport-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* lowerRxBeamSweepingFactor-FR2-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_13 = { + sizeof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext1), + offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_13, + 9, /* Count of tags in the map */ + asn_MAP_ext1_oms_13, /* Optional members */ + 9, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_13 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_13, + sizeof(asn_DEF_ext1_tags_13) + /sizeof(asn_DEF_ext1_tags_13[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_13, /* Same as above */ + sizeof(asn_DEF_ext1_tags_13) + /sizeof(asn_DEF_ext1_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_13, + 9, /* Elements count */ + &asn_SPC_ext1_specs_13 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_fr1_value2enum_53[] = { + { 0, 5, "mhz40" }, + { 1, 5, "mhz50" }, + { 2, 5, "mhz80" }, + { 3, 6, "mhz100" } +}; +static const unsigned int asn_MAP_fr1_enum2value_53[] = { + 3, /* mhz100(3) */ + 0, /* mhz40(0) */ + 1, /* mhz50(1) */ + 2 /* mhz80(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_fr1_specs_53 = { + asn_MAP_fr1_value2enum_53, /* "tag" => N; sorted by tag */ + asn_MAP_fr1_enum2value_53, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_fr1_tags_53[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fr1_53 = { + "fr1", + "fr1", + &asn_OP_NativeEnumerated, + asn_DEF_fr1_tags_53, + sizeof(asn_DEF_fr1_tags_53) + /sizeof(asn_DEF_fr1_tags_53[0]) - 1, /* 1 */ + asn_DEF_fr1_tags_53, /* Same as above */ + sizeof(asn_DEF_fr1_tags_53) + /sizeof(asn_DEF_fr1_tags_53[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_fr1_constr_53, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_fr1_specs_53 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_fr2_value2enum_58[] = { + { 0, 6, "mhz100" }, + { 1, 6, "mhz200" }, + { 2, 6, "mhz400" } +}; +static const unsigned int asn_MAP_fr2_enum2value_58[] = { + 0, /* mhz100(0) */ + 1, /* mhz200(1) */ + 2 /* mhz400(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_fr2_specs_58 = { + asn_MAP_fr2_value2enum_58, /* "tag" => N; sorted by tag */ + asn_MAP_fr2_enum2value_58, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_fr2_tags_58[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fr2_58 = { + "fr2", + "fr2", + &asn_OP_NativeEnumerated, + asn_DEF_fr2_tags_58, + sizeof(asn_DEF_fr2_tags_58) + /sizeof(asn_DEF_fr2_tags_58[0]) - 1, /* 1 */ + asn_DEF_fr2_tags_58, /* Same as above */ + sizeof(asn_DEF_fr2_tags_58) + /sizeof(asn_DEF_fr2_tags_58[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_fr2_constr_58, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_fr2_specs_58 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_DL_PRS_RxHoppingTotalBandwidth_r18_52[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18, choice.fr1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_fr1_53, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fr1" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18, choice.fr2), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_fr2_58, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fr2" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_DL_PRS_RxHoppingTotalBandwidth_r18_tag2el_52[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fr1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* fr2 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nr_DL_PRS_RxHoppingTotalBandwidth_r18_specs_52 = { + sizeof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18), + offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18, _asn_ctx), + offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18, present), + sizeof(((struct NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18 *)0)->present), + asn_MAP_nr_DL_PRS_RxHoppingTotalBandwidth_r18_tag2el_52, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RxHoppingTotalBandwidth_r18_52 = { + "nr-DL-PRS-RxHoppingTotalBandwidth-r18", + "nr-DL-PRS-RxHoppingTotalBandwidth-r18", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_RxHoppingTotalBandwidth_r18_constr_52, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nr_DL_PRS_RxHoppingTotalBandwidth_r18_52, + 2, /* Elements count */ + &asn_SPC_nr_DL_PRS_RxHoppingTotalBandwidth_r18_specs_52 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_DL_PRS_RxHoppingRequest_r18_51[] = { + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18, nr_DL_PRS_RxHoppingTotalBandwidth_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nr_DL_PRS_RxHoppingTotalBandwidth_r18_52, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RxHoppingTotalBandwidth-r18" + }, +}; +static const int asn_MAP_nr_DL_PRS_RxHoppingRequest_r18_oms_51[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_51[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_DL_PRS_RxHoppingRequest_r18_tag2el_51[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-DL-PRS-RxHoppingTotalBandwidth-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_nr_DL_PRS_RxHoppingRequest_r18_specs_51 = { + sizeof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18), + offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18, _asn_ctx), + asn_MAP_nr_DL_PRS_RxHoppingRequest_r18_tag2el_51, + 1, /* Count of tags in the map */ + asn_MAP_nr_DL_PRS_RxHoppingRequest_r18_oms_51, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_51 = { + "nr-DL-PRS-RxHoppingRequest-r18", + "nr-DL-PRS-RxHoppingRequest-r18", + &asn_OP_SEQUENCE, + asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_51, + sizeof(asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_51) + /sizeof(asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_51[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_51, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_51) + /sizeof(asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_tags_51[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_nr_DL_PRS_RxHoppingRequest_r18_51, + 1, /* Elements count */ + &asn_SPC_nr_DL_PRS_RxHoppingRequest_r18_specs_51 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_63[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_64, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_NativeInteger_constraint_63 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_tags_63[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_specs_63 = { + sizeof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_JointMeasurementRequestedPFL_List_r18), + offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_JointMeasurementRequestedPFL_List_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_63 = { + "nr-DL-PRS-JointMeasurementRequestedPFL-List-r18", + "nr-DL-PRS-JointMeasurementRequestedPFL-List-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_tags_63, + sizeof(asn_DEF_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_tags_63) + /sizeof(asn_DEF_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_tags_63[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_tags_63, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_tags_63) + /sizeof(asn_DEF_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_tags_63[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_constr_63, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_63, + 1, /* Single element */ + &asn_SPC_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_specs_63 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_DL_PRS_RSCP_Request_r18_value2enum_65[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_nr_DL_PRS_RSCP_Request_r18_enum2value_65[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_DL_PRS_RSCP_Request_r18_specs_65 = { + asn_MAP_nr_DL_PRS_RSCP_Request_r18_value2enum_65, /* "tag" => N; sorted by tag */ + asn_MAP_nr_DL_PRS_RSCP_Request_r18_enum2value_65, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_DL_PRS_RSCP_Request_r18_tags_65[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RSCP_Request_r18_65 = { + "nr-DL-PRS-RSCP-Request-r18", + "nr-DL-PRS-RSCP-Request-r18", + &asn_OP_NativeEnumerated, + asn_DEF_nr_DL_PRS_RSCP_Request_r18_tags_65, + sizeof(asn_DEF_nr_DL_PRS_RSCP_Request_r18_tags_65) + /sizeof(asn_DEF_nr_DL_PRS_RSCP_Request_r18_tags_65[0]) - 1, /* 1 */ + asn_DEF_nr_DL_PRS_RSCP_Request_r18_tags_65, /* Same as above */ + sizeof(asn_DEF_nr_DL_PRS_RSCP_Request_r18_tags_65) + /sizeof(asn_DEF_nr_DL_PRS_RSCP_Request_r18_tags_65[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_DL_PRS_RSCP_Request_r18_constr_65, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_DL_PRS_RSCP_Request_r18_specs_65 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_50[] = { + { ATF_POINTER, 5, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext2, nr_DL_PRS_RxHoppingRequest_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_nr_DL_PRS_RxHoppingRequest_r18_51, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RxHoppingRequest-r18" + }, + { ATF_POINTER, 4, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext2, timingReportingGranularityFactorExt_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_timingReportingGranularityFactorExt_r18_constr_62, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_timingReportingGranularityFactorExt_r18_constraint_50 + }, + 0, 0, /* No default value */ + "timingReportingGranularityFactorExt-r18" + }, + { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext2, nr_DL_PRS_JointMeasurementRequestedPFL_List_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_63, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_constr_63, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_DL_PRS_JointMeasurementRequestedPFL_List_r18_constraint_50 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-JointMeasurementRequestedPFL-List-r18" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext2, nr_DL_PRS_RSCP_Request_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_DL_PRS_RSCP_Request_r18_65, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-RSCP-Request-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext2, nr_DL_PRS_MeasurementTimeWindowsConfig_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_MeasurementTimeWindowsConfig_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-MeasurementTimeWindowsConfig-r18" + }, +}; +static const int asn_MAP_ext2_oms_50[] = { 0, 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_50[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_50[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-RxHoppingRequest-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* timingReportingGranularityFactorExt-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-PRS-JointMeasurementRequestedPFL-List-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-DL-PRS-RSCP-Request-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* nr-DL-PRS-MeasurementTimeWindowsConfig-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_50 = { + sizeof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext2), + offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_50, + 5, /* Count of tags in the map */ + asn_MAP_ext2_oms_50, /* Optional members */ + 5, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_50 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_50, + sizeof(asn_DEF_ext2_tags_50) + /sizeof(asn_DEF_ext2_tags_50[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_50, /* Same as above */ + sizeof(asn_DEF_ext2_tags_50) + /sizeof(asn_DEF_ext2_tags_50[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_50, + 5, /* Elements count */ + &asn_SPC_ext2_specs_50 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_Multi_RTT_RequestLocationInformation_r16_1[] = { + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16, nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UE-RxTxTimeDiffMeasurementInfoRequest-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16, nr_RequestedMeasurements_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_RequestedMeasurements_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_RequestedMeasurements_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-RequestedMeasurements-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16, nr_AssistanceAvailability_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-AssistanceAvailability-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16, nr_Multi_RTT_ReportConfig_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_Multi_RTT_ReportConfig_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-Multi-RTT-ReportConfig-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16, additionalPaths_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_additionalPaths_r16_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "additionalPaths-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext1_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext2_50, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_NR_Multi_RTT_RequestLocationInformation_r16_oms_1[] = { 0, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_RequestLocationInformation_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-UE-RxTxTimeDiffMeasurementInfoRequest-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-RequestedMeasurements-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-AssistanceAvailability-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-Multi-RTT-ReportConfig-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* additionalPaths-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_RequestLocationInformation_r16_specs_1 = { + sizeof(struct NR_Multi_RTT_RequestLocationInformation_r16), + offsetof(struct NR_Multi_RTT_RequestLocationInformation_r16, _asn_ctx), + asn_MAP_NR_Multi_RTT_RequestLocationInformation_r16_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_NR_Multi_RTT_RequestLocationInformation_r16_oms_1, /* Optional members */ + 2, 2, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16 = { + "NR-Multi-RTT-RequestLocationInformation-r16", + "NR-Multi-RTT-RequestLocationInformation-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16_tags_1, + sizeof(asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_Multi_RTT_RequestLocationInformation_r16_1, + 7, /* Elements count */ + &asn_SPC_NR_Multi_RTT_RequestLocationInformation_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-Multi-RTT-RequestLocationInformation-r16.h b/asn.1/lpp_generated/NR-Multi-RTT-RequestLocationInformation-r16.h new file mode 100644 index 00000000..dcface6b --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-RequestLocationInformation-r16.h @@ -0,0 +1,206 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_Multi_RTT_RequestLocationInformation_r16_H_ +#define _NR_Multi_RTT_RequestLocationInformation_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include "NR-Multi-RTT-ReportConfig-r16.h" +#include "LOS-NLOS-IndicatorType1-r17.h" +#include "LOS-NLOS-IndicatorGranularity1-r17.h" +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_Multi_RTT_RequestLocationInformation_r16__nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16 { + NR_Multi_RTT_RequestLocationInformation_r16__nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16_true = 0 +} e_NR_Multi_RTT_RequestLocationInformation_r16__nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16; +typedef enum NR_Multi_RTT_RequestLocationInformation_r16__nr_RequestedMeasurements_r16 { + NR_Multi_RTT_RequestLocationInformation_r16__nr_RequestedMeasurements_r16_prsrsrpReq = 0, + NR_Multi_RTT_RequestLocationInformation_r16__nr_RequestedMeasurements_r16_firstPathRsrpReq_r17 = 1, + NR_Multi_RTT_RequestLocationInformation_r16__nr_RequestedMeasurements_r16_jointMeasurementsReq_r18 = 2 +} e_NR_Multi_RTT_RequestLocationInformation_r16__nr_RequestedMeasurements_r16; +typedef enum NR_Multi_RTT_RequestLocationInformation_r16__additionalPaths_r16 { + NR_Multi_RTT_RequestLocationInformation_r16__additionalPaths_r16_requested = 0 +} e_NR_Multi_RTT_RequestLocationInformation_r16__additionalPaths_r16; +typedef enum NR_Multi_RTT_RequestLocationInformation_r16__ext1__nr_UE_RxTxTEG_Request_r17 { + NR_Multi_RTT_RequestLocationInformation_r16__ext1__nr_UE_RxTxTEG_Request_r17_case1 = 0, + NR_Multi_RTT_RequestLocationInformation_r16__ext1__nr_UE_RxTxTEG_Request_r17_case2 = 1, + NR_Multi_RTT_RequestLocationInformation_r16__ext1__nr_UE_RxTxTEG_Request_r17_case3 = 2 + /* + * Enumeration is extensible + */ +} e_NR_Multi_RTT_RequestLocationInformation_r16__ext1__nr_UE_RxTxTEG_Request_r17; +typedef enum NR_Multi_RTT_RequestLocationInformation_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17 { + NR_Multi_RTT_RequestLocationInformation_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_n0 = 0, + NR_Multi_RTT_RequestLocationInformation_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_n2 = 1, + NR_Multi_RTT_RequestLocationInformation_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_n3 = 2, + NR_Multi_RTT_RequestLocationInformation_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_n4 = 3, + NR_Multi_RTT_RequestLocationInformation_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_n6 = 4, + NR_Multi_RTT_RequestLocationInformation_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_n8 = 5 + /* + * Enumeration is extensible + */ +} e_NR_Multi_RTT_RequestLocationInformation_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17; +typedef enum NR_Multi_RTT_RequestLocationInformation_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17 { + NR_Multi_RTT_RequestLocationInformation_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_n0 = 0, + NR_Multi_RTT_RequestLocationInformation_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_n2 = 1, + NR_Multi_RTT_RequestLocationInformation_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_n3 = 2, + NR_Multi_RTT_RequestLocationInformation_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_n4 = 3, + NR_Multi_RTT_RequestLocationInformation_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_n6 = 4, + NR_Multi_RTT_RequestLocationInformation_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_n8 = 5 + /* + * Enumeration is extensible + */ +} e_NR_Multi_RTT_RequestLocationInformation_r16__ext1__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17; +typedef enum NR_Multi_RTT_RequestLocationInformation_r16__ext1__reducedDL_PRS_ProcessingSamples_r17 { + NR_Multi_RTT_RequestLocationInformation_r16__ext1__reducedDL_PRS_ProcessingSamples_r17_requested = 0 + /* + * Enumeration is extensible + */ +} e_NR_Multi_RTT_RequestLocationInformation_r16__ext1__reducedDL_PRS_ProcessingSamples_r17; +typedef enum NR_Multi_RTT_RequestLocationInformation_r16__ext1__additionalPathsExt_r17 { + NR_Multi_RTT_RequestLocationInformation_r16__ext1__additionalPathsExt_r17_requested = 0 +} e_NR_Multi_RTT_RequestLocationInformation_r16__ext1__additionalPathsExt_r17; +typedef enum NR_Multi_RTT_RequestLocationInformation_r16__ext1__additionalPathsDL_PRS_RSRP_Request_r17 { + NR_Multi_RTT_RequestLocationInformation_r16__ext1__additionalPathsDL_PRS_RSRP_Request_r17_requested = 0 +} e_NR_Multi_RTT_RequestLocationInformation_r16__ext1__additionalPathsDL_PRS_RSRP_Request_r17; +typedef enum NR_Multi_RTT_RequestLocationInformation_r16__ext1__multiMeasInSameReport_r17 { + NR_Multi_RTT_RequestLocationInformation_r16__ext1__multiMeasInSameReport_r17_requested = 0 +} e_NR_Multi_RTT_RequestLocationInformation_r16__ext1__multiMeasInSameReport_r17; +typedef enum NR_Multi_RTT_RequestLocationInformation_r16__ext1__lowerRxBeamSweepingFactor_FR2_r17 { + NR_Multi_RTT_RequestLocationInformation_r16__ext1__lowerRxBeamSweepingFactor_FR2_r17_requested = 0 +} e_NR_Multi_RTT_RequestLocationInformation_r16__ext1__lowerRxBeamSweepingFactor_FR2_r17; +typedef enum NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18_PR { + NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18_PR_NOTHING, /* No components present */ + NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18_PR_fr1, + NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18_PR_fr2 +} NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18_PR; +typedef enum NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr1 { + NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr1_mhz40 = 0, + NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr1_mhz50 = 1, + NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr1_mhz80 = 2, + NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr1_mhz100 = 3 +} e_NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr1; +typedef enum NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr2 { + NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr2_mhz100 = 0, + NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr2_mhz200 = 1, + NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr2_mhz400 = 2 +} e_NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18__fr2; +typedef enum NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RSCP_Request_r18 { + NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RSCP_Request_r18_requested = 0 +} e_NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RSCP_Request_r18; + +/* Forward declarations */ +struct NR_DL_PRS_MeasurementTimeWindowsConfig_r18; + +/* NR-Multi-RTT-RequestLocationInformation-r16 */ +typedef struct NR_Multi_RTT_RequestLocationInformation_r16 { + long *nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16; /* OPTIONAL */ + BIT_STRING_t nr_RequestedMeasurements_r16; + BOOLEAN_t nr_AssistanceAvailability_r16; + NR_Multi_RTT_ReportConfig_r16_t nr_Multi_RTT_ReportConfig_r16; + long *additionalPaths_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_Multi_RTT_RequestLocationInformation_r16__ext1 { + long *nr_UE_RxTxTEG_Request_r17; /* OPTIONAL */ + long *measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17; /* OPTIONAL */ + long *measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17; /* OPTIONAL */ + long *reducedDL_PRS_ProcessingSamples_r17; /* OPTIONAL */ + struct NR_Multi_RTT_RequestLocationInformation_r16__ext1__nr_los_nlos_IndicatorRequest_r17 { + LOS_NLOS_IndicatorType1_r17_t type_r17; + LOS_NLOS_IndicatorGranularity1_r17_t granularity_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_los_nlos_IndicatorRequest_r17; + long *additionalPathsExt_r17; /* OPTIONAL */ + long *additionalPathsDL_PRS_RSRP_Request_r17; /* OPTIONAL */ + long *multiMeasInSameReport_r17; /* OPTIONAL */ + long *lowerRxBeamSweepingFactor_FR2_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct NR_Multi_RTT_RequestLocationInformation_r16__ext2 { + struct NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18 { + struct NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18 { + NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18_PR present; + union NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_RxHoppingRequest_r18__nr_DL_PRS_RxHoppingTotalBandwidth_r18_u { + long fr1; + long fr2; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_DL_PRS_RxHoppingTotalBandwidth_r18; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_DL_PRS_RxHoppingRequest_r18; + long *timingReportingGranularityFactorExt_r18; /* OPTIONAL */ + struct NR_Multi_RTT_RequestLocationInformation_r16__ext2__nr_DL_PRS_JointMeasurementRequestedPFL_List_r18 { + A_SEQUENCE_OF(long) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_DL_PRS_JointMeasurementRequestedPFL_List_r18; + long *nr_DL_PRS_RSCP_Request_r18; /* OPTIONAL */ + struct NR_DL_PRS_MeasurementTimeWindowsConfig_r18 *nr_DL_PRS_MeasurementTimeWindowsConfig_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_Multi_RTT_RequestLocationInformation_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_UE_RxTxTimeDiffMeasurementInfoRequest_r16_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_additionalPaths_r16_10; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_UE_RxTxTEG_Request_r17_14; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTxTEGs_r17_19; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_27; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_reducedDL_PRS_ProcessingSamples_r17_35; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_additionalPathsExt_r17_42; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_additionalPathsDL_PRS_RSRP_Request_r17_44; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_multiMeasInSameReport_r17_46; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_lowerRxBeamSweepingFactor_FR2_r17_48; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_fr1_53; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_fr2_58; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_DL_PRS_RSCP_Request_r18_65; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_RequestLocationInformation_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_RequestLocationInformation_r16_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_Multi_RTT_RequestLocationInformation_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-Multi-RTT-SignalMeasurementInformation-r16.c b/asn.1/lpp_generated/NR-Multi-RTT-SignalMeasurementInformation-r16.c new file mode 100644 index 00000000..44ac2fd9 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-SignalMeasurementInformation-r16.c @@ -0,0 +1,436 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-Multi-RTT-SignalMeasurementInformation-r16.h" + +#include "NR-SRS-TxTEG-Element-r17.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_nr_SRS_TxTEG_Set_r17_constraint_10(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 256UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_NTA_Offset_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_SRS_TxTEG_Set_r17_constr_11 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (SIZE(1..256)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_SRS_TxTEG_Set_r17_constr_11 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (SIZE(1..256)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_nr_NTA_Offset_r16_value2enum_3[] = { + { 0, 4, "nTA1" }, + { 1, 4, "nTA2" }, + { 2, 4, "nTA3" }, + { 3, 4, "nTA4" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_nr_NTA_Offset_r16_enum2value_3[] = { + 0, /* nTA1(0) */ + 1, /* nTA2(1) */ + 2, /* nTA3(2) */ + 3 /* nTA4(3) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_NTA_Offset_r16_specs_3 = { + asn_MAP_nr_NTA_Offset_r16_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_nr_NTA_Offset_r16_enum2value_3, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_NTA_Offset_r16_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_NTA_Offset_r16_3 = { + "nr-NTA-Offset-r16", + "nr-NTA-Offset-r16", + &asn_OP_NativeEnumerated, + asn_DEF_nr_NTA_Offset_r16_tags_3, + sizeof(asn_DEF_nr_NTA_Offset_r16_tags_3) + /sizeof(asn_DEF_nr_NTA_Offset_r16_tags_3[0]) - 1, /* 1 */ + asn_DEF_nr_NTA_Offset_r16_tags_3, /* Same as above */ + sizeof(asn_DEF_nr_NTA_Offset_r16_tags_3) + /sizeof(asn_DEF_nr_NTA_Offset_r16_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_NTA_Offset_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_NTA_Offset_r16_specs_3 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_SRS_TxTEG_Set_r17_11[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_SRS_TxTEG_Element_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_SRS_TxTEG_Set_r17_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_SRS_TxTEG_Set_r17_specs_11 = { + sizeof(struct NR_Multi_RTT_SignalMeasurementInformation_r16__ext1__nr_SRS_TxTEG_Set_r17), + offsetof(struct NR_Multi_RTT_SignalMeasurementInformation_r16__ext1__nr_SRS_TxTEG_Set_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_SRS_TxTEG_Set_r17_11 = { + "nr-SRS-TxTEG-Set-r17", + "nr-SRS-TxTEG-Set-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_SRS_TxTEG_Set_r17_tags_11, + sizeof(asn_DEF_nr_SRS_TxTEG_Set_r17_tags_11) + /sizeof(asn_DEF_nr_SRS_TxTEG_Set_r17_tags_11[0]) - 1, /* 1 */ + asn_DEF_nr_SRS_TxTEG_Set_r17_tags_11, /* Same as above */ + sizeof(asn_DEF_nr_SRS_TxTEG_Set_r17_tags_11) + /sizeof(asn_DEF_nr_SRS_TxTEG_Set_r17_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_SRS_TxTEG_Set_r17_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_SRS_TxTEG_Set_r17_11, + 1, /* Single element */ + &asn_SPC_nr_SRS_TxTEG_Set_r17_specs_11 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_10[] = { + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_SignalMeasurementInformation_r16__ext1, nr_SRS_TxTEG_Set_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_nr_SRS_TxTEG_Set_r17_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_SRS_TxTEG_Set_r17_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_SRS_TxTEG_Set_r17_constraint_10 + }, + 0, 0, /* No default value */ + "nr-SRS-TxTEG-Set-r17" + }, +}; +static const int asn_MAP_ext1_oms_10[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_10[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-SRS-TxTEG-Set-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_10 = { + sizeof(struct NR_Multi_RTT_SignalMeasurementInformation_r16__ext1), + offsetof(struct NR_Multi_RTT_SignalMeasurementInformation_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_10, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_10, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_10 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_10, + sizeof(asn_DEF_ext1_tags_10) + /sizeof(asn_DEF_ext1_tags_10[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_10, /* Same as above */ + sizeof(asn_DEF_ext1_tags_10) + /sizeof(asn_DEF_ext1_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_10, + 1, /* Elements count */ + &asn_SPC_ext1_specs_10 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_13[] = { + { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_SignalMeasurementInformation_r16__ext2, nr_UE_RxTEG_TimingErrorMargin_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TEG_TimingErrorMargin_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UE-RxTEG-TimingErrorMargin-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_SignalMeasurementInformation_r16__ext2, nr_UE_TxTEG_TimingErrorMargin_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TEG_TimingErrorMargin_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UE-TxTEG-TimingErrorMargin-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_SignalMeasurementInformation_r16__ext2, nr_UE_RxTxTEG_TimingErrorMargin_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RxTxTEG_TimingErrorMargin_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UE-RxTxTEG-TimingErrorMargin-r17" + }, +}; +static const int asn_MAP_ext2_oms_13[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_13[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-UE-RxTEG-TimingErrorMargin-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-UE-TxTEG-TimingErrorMargin-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-UE-RxTxTEG-TimingErrorMargin-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_13 = { + sizeof(struct NR_Multi_RTT_SignalMeasurementInformation_r16__ext2), + offsetof(struct NR_Multi_RTT_SignalMeasurementInformation_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_13, + 3, /* Count of tags in the map */ + asn_MAP_ext2_oms_13, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_13 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_13, + sizeof(asn_DEF_ext2_tags_13) + /sizeof(asn_DEF_ext2_tags_13[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_13, /* Same as above */ + sizeof(asn_DEF_ext2_tags_13) + /sizeof(asn_DEF_ext2_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_13, + 3, /* Elements count */ + &asn_SPC_ext2_specs_13 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_Multi_RTT_SignalMeasurementInformation_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_SignalMeasurementInformation_r16, nr_Multi_RTT_MeasList_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_Multi_RTT_MeasList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-Multi-RTT-MeasList-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_Multi_RTT_SignalMeasurementInformation_r16, nr_NTA_Offset_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_NTA_Offset_r16_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-NTA-Offset-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_Multi_RTT_SignalMeasurementInformation_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_SignalMeasurementInformation_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext2_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_NR_Multi_RTT_SignalMeasurementInformation_r16_oms_1[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_SignalMeasurementInformation_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-Multi-RTT-MeasList-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-NTA-Offset-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_SignalMeasurementInformation_r16_specs_1 = { + sizeof(struct NR_Multi_RTT_SignalMeasurementInformation_r16), + offsetof(struct NR_Multi_RTT_SignalMeasurementInformation_r16, _asn_ctx), + asn_MAP_NR_Multi_RTT_SignalMeasurementInformation_r16_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_NR_Multi_RTT_SignalMeasurementInformation_r16_oms_1, /* Optional members */ + 1, 2, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16 = { + "NR-Multi-RTT-SignalMeasurementInformation-r16", + "NR-Multi-RTT-SignalMeasurementInformation-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16_tags_1, + sizeof(asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_Multi_RTT_SignalMeasurementInformation_r16_1, + 4, /* Elements count */ + &asn_SPC_NR_Multi_RTT_SignalMeasurementInformation_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-Multi-RTT-SignalMeasurementInformation-r16.h b/asn.1/lpp_generated/NR-Multi-RTT-SignalMeasurementInformation-r16.h new file mode 100644 index 00000000..5a75e97e --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-SignalMeasurementInformation-r16.h @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_Multi_RTT_SignalMeasurementInformation_r16_H_ +#define _NR_Multi_RTT_SignalMeasurementInformation_r16_H_ + + +#include + +/* Including external dependencies */ +#include "NR-Multi-RTT-MeasList-r16.h" +#include +#include +#include +#include +#include "TEG-TimingErrorMargin-r17.h" +#include "RxTxTEG-TimingErrorMargin-r17.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_Multi_RTT_SignalMeasurementInformation_r16__nr_NTA_Offset_r16 { + NR_Multi_RTT_SignalMeasurementInformation_r16__nr_NTA_Offset_r16_nTA1 = 0, + NR_Multi_RTT_SignalMeasurementInformation_r16__nr_NTA_Offset_r16_nTA2 = 1, + NR_Multi_RTT_SignalMeasurementInformation_r16__nr_NTA_Offset_r16_nTA3 = 2, + NR_Multi_RTT_SignalMeasurementInformation_r16__nr_NTA_Offset_r16_nTA4 = 3 + /* + * Enumeration is extensible + */ +} e_NR_Multi_RTT_SignalMeasurementInformation_r16__nr_NTA_Offset_r16; + +/* Forward declarations */ +struct NR_SRS_TxTEG_Element_r17; + +/* NR-Multi-RTT-SignalMeasurementInformation-r16 */ +typedef struct NR_Multi_RTT_SignalMeasurementInformation_r16 { + NR_Multi_RTT_MeasList_r16_t nr_Multi_RTT_MeasList_r16; + long *nr_NTA_Offset_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_Multi_RTT_SignalMeasurementInformation_r16__ext1 { + struct NR_Multi_RTT_SignalMeasurementInformation_r16__ext1__nr_SRS_TxTEG_Set_r17 { + A_SEQUENCE_OF(struct NR_SRS_TxTEG_Element_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_SRS_TxTEG_Set_r17; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct NR_Multi_RTT_SignalMeasurementInformation_r16__ext2 { + TEG_TimingErrorMargin_r17_t *nr_UE_RxTEG_TimingErrorMargin_r17; /* OPTIONAL */ + TEG_TimingErrorMargin_r17_t *nr_UE_TxTEG_TimingErrorMargin_r17; /* OPTIONAL */ + RxTxTEG_TimingErrorMargin_r17_t *nr_UE_RxTxTEG_TimingErrorMargin_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_Multi_RTT_SignalMeasurementInformation_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_NTA_Offset_r16_3; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_SignalMeasurementInformation_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_SignalMeasurementInformation_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_SignalMeasurementInformation_r16_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_Multi_RTT_SignalMeasurementInformation_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-Multi-RTT-TargetDeviceErrorCauses-r16.c b/asn.1/lpp_generated/NR-Multi-RTT-TargetDeviceErrorCauses-r16.c new file mode 100644 index 00000000..95790bb7 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-TargetDeviceErrorCauses-r16.c @@ -0,0 +1,267 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-Multi-RTT-TargetDeviceErrorCauses-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_remoteUE_Indication_r18_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_r16_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 26, "dl-assistance-data-missing" }, + { 2, 21, "unableToMeasureAnyTRP" }, + { 3, 44, "attemptedButUnableToMeasureSomeNeighbourTRPs" }, + { 4, 28, "ul-srs-configuration-missing" }, + { 5, 23, "unableToTransmit-ul-srs" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_r16_enum2value_2[] = { + 3, /* attemptedButUnableToMeasureSomeNeighbourTRPs(3) */ + 1, /* dl-assistance-data-missing(1) */ + 4, /* ul-srs-configuration-missing(4) */ + 2, /* unableToMeasureAnyTRP(2) */ + 5, /* unableToTransmit-ul-srs(5) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_r16_specs_2 = { + asn_MAP_cause_r16_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_r16_enum2value_2, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 7, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_r16_2 = { + "cause-r16", + "cause-r16", + &asn_OP_NativeEnumerated, + asn_DEF_cause_r16_tags_2, + sizeof(asn_DEF_cause_r16_tags_2) + /sizeof(asn_DEF_cause_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_r16_tags_2) + /sizeof(asn_DEF_cause_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_r16_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_remoteUE_Indication_r18_value2enum_12[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_remoteUE_Indication_r18_enum2value_12[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_remoteUE_Indication_r18_specs_12 = { + asn_MAP_remoteUE_Indication_r18_value2enum_12, /* "tag" => N; sorted by tag */ + asn_MAP_remoteUE_Indication_r18_enum2value_12, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_remoteUE_Indication_r18_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_remoteUE_Indication_r18_12 = { + "remoteUE-Indication-r18", + "remoteUE-Indication-r18", + &asn_OP_NativeEnumerated, + asn_DEF_remoteUE_Indication_r18_tags_12, + sizeof(asn_DEF_remoteUE_Indication_r18_tags_12) + /sizeof(asn_DEF_remoteUE_Indication_r18_tags_12[0]) - 1, /* 1 */ + asn_DEF_remoteUE_Indication_r18_tags_12, /* Same as above */ + sizeof(asn_DEF_remoteUE_Indication_r18_tags_12) + /sizeof(asn_DEF_remoteUE_Indication_r18_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_remoteUE_Indication_r18_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_remoteUE_Indication_r18_specs_12 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_11[] = { + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_TargetDeviceErrorCauses_r16__ext1, remoteUE_Indication_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_remoteUE_Indication_r18_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "remoteUE-Indication-r18" + }, +}; +static const int asn_MAP_ext1_oms_11[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* remoteUE-Indication-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_11 = { + sizeof(struct NR_Multi_RTT_TargetDeviceErrorCauses_r16__ext1), + offsetof(struct NR_Multi_RTT_TargetDeviceErrorCauses_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_11, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_11, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_11 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_11, + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_11, /* Same as above */ + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_11, + 1, /* Elements count */ + &asn_SPC_ext1_specs_11 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_Multi_RTT_TargetDeviceErrorCauses_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_Multi_RTT_TargetDeviceErrorCauses_r16, cause_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_Multi_RTT_TargetDeviceErrorCauses_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_Multi_RTT_TargetDeviceErrorCauses_r16_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_Multi_RTT_TargetDeviceErrorCauses_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_TargetDeviceErrorCauses_r16_specs_1 = { + sizeof(struct NR_Multi_RTT_TargetDeviceErrorCauses_r16), + offsetof(struct NR_Multi_RTT_TargetDeviceErrorCauses_r16, _asn_ctx), + asn_MAP_NR_Multi_RTT_TargetDeviceErrorCauses_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_NR_Multi_RTT_TargetDeviceErrorCauses_r16_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16 = { + "NR-Multi-RTT-TargetDeviceErrorCauses-r16", + "NR-Multi-RTT-TargetDeviceErrorCauses-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16_tags_1, + sizeof(asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16_tags_1) + /sizeof(asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_Multi_RTT_TargetDeviceErrorCauses_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_Multi_RTT_TargetDeviceErrorCauses_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-Multi-RTT-TargetDeviceErrorCauses-r16.h b/asn.1/lpp_generated/NR-Multi-RTT-TargetDeviceErrorCauses-r16.h new file mode 100644 index 00000000..982f4d01 --- /dev/null +++ b/asn.1/lpp_generated/NR-Multi-RTT-TargetDeviceErrorCauses-r16.h @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_Multi_RTT_TargetDeviceErrorCauses_r16_H_ +#define _NR_Multi_RTT_TargetDeviceErrorCauses_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_Multi_RTT_TargetDeviceErrorCauses_r16__cause_r16 { + NR_Multi_RTT_TargetDeviceErrorCauses_r16__cause_r16_undefined = 0, + NR_Multi_RTT_TargetDeviceErrorCauses_r16__cause_r16_dl_assistance_data_missing = 1, + NR_Multi_RTT_TargetDeviceErrorCauses_r16__cause_r16_unableToMeasureAnyTRP = 2, + NR_Multi_RTT_TargetDeviceErrorCauses_r16__cause_r16_attemptedButUnableToMeasureSomeNeighbourTRPs = 3, + NR_Multi_RTT_TargetDeviceErrorCauses_r16__cause_r16_ul_srs_configuration_missing = 4, + NR_Multi_RTT_TargetDeviceErrorCauses_r16__cause_r16_unableToTransmit_ul_srs = 5 + /* + * Enumeration is extensible + */ +} e_NR_Multi_RTT_TargetDeviceErrorCauses_r16__cause_r16; +typedef enum NR_Multi_RTT_TargetDeviceErrorCauses_r16__ext1__remoteUE_Indication_r18 { + NR_Multi_RTT_TargetDeviceErrorCauses_r16__ext1__remoteUE_Indication_r18_true = 0 +} e_NR_Multi_RTT_TargetDeviceErrorCauses_r16__ext1__remoteUE_Indication_r18; + +/* NR-Multi-RTT-TargetDeviceErrorCauses-r16 */ +typedef struct NR_Multi_RTT_TargetDeviceErrorCauses_r16 { + long cause_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_Multi_RTT_TargetDeviceErrorCauses_r16__ext1 { + long *remoteUE_Indication_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_Multi_RTT_TargetDeviceErrorCauses_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_cause_r16_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_remoteUE_Indication_r18_12; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_Multi_RTT_TargetDeviceErrorCauses_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_Multi_RTT_TargetDeviceErrorCauses_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_Multi_RTT_TargetDeviceErrorCauses_r16_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_Multi_RTT_TargetDeviceErrorCauses_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-MutingPattern-r16.c b/asn.1/lpp_generated/NR-MutingPattern-r16.c new file mode 100644 index 00000000..242d86fd --- /dev/null +++ b/asn.1/lpp_generated/NR-MutingPattern-r16.c @@ -0,0 +1,388 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-MutingPattern-r16.h" + +static int +memb_po2_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 2UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po4_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 4UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po6_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 6UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po8_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po16_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 16UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po32_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 32UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po2_r16_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po4_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po6_r16_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po8_r16_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po16_r16_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po32_r16_constr_7 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 32, 32 } /* (SIZE(32..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_MutingPattern_r16_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_MutingPattern_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_MutingPattern_r16, choice.po2_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po2_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po2_r16_constraint_1 + }, + 0, 0, /* No default value */ + "po2-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_MutingPattern_r16, choice.po4_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po4_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po4_r16_constraint_1 + }, + 0, 0, /* No default value */ + "po4-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_MutingPattern_r16, choice.po6_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po6_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po6_r16_constraint_1 + }, + 0, 0, /* No default value */ + "po6-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_MutingPattern_r16, choice.po8_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po8_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po8_r16_constraint_1 + }, + 0, 0, /* No default value */ + "po8-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_MutingPattern_r16, choice.po16_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po16_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po16_r16_constraint_1 + }, + 0, 0, /* No default value */ + "po16-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_MutingPattern_r16, choice.po32_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po32_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po32_r16_constraint_1 + }, + 0, 0, /* No default value */ + "po32-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_MutingPattern_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* po2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* po4-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* po6-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* po8-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* po16-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* po32-r16 */ +}; +asn_CHOICE_specifics_t asn_SPC_NR_MutingPattern_r16_specs_1 = { + sizeof(struct NR_MutingPattern_r16), + offsetof(struct NR_MutingPattern_r16, _asn_ctx), + offsetof(struct NR_MutingPattern_r16, present), + sizeof(((struct NR_MutingPattern_r16 *)0)->present), + asn_MAP_NR_MutingPattern_r16_tag2el_1, + 6, /* Count of tags in the map */ + 0, 0, + 6 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_MutingPattern_r16 = { + "NR-MutingPattern-r16", + "NR-MutingPattern-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_MutingPattern_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_NR_MutingPattern_r16_1, + 6, /* Elements count */ + &asn_SPC_NR_MutingPattern_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-MutingPattern-r16.h b/asn.1/lpp_generated/NR-MutingPattern-r16.h new file mode 100644 index 00000000..1631fba1 --- /dev/null +++ b/asn.1/lpp_generated/NR-MutingPattern-r16.h @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_MutingPattern_r16_H_ +#define _NR_MutingPattern_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_MutingPattern_r16_PR { + NR_MutingPattern_r16_PR_NOTHING, /* No components present */ + NR_MutingPattern_r16_PR_po2_r16, + NR_MutingPattern_r16_PR_po4_r16, + NR_MutingPattern_r16_PR_po6_r16, + NR_MutingPattern_r16_PR_po8_r16, + NR_MutingPattern_r16_PR_po16_r16, + NR_MutingPattern_r16_PR_po32_r16 + /* Extensions may appear below */ + +} NR_MutingPattern_r16_PR; + +/* NR-MutingPattern-r16 */ +typedef struct NR_MutingPattern_r16 { + NR_MutingPattern_r16_PR present; + union NR_MutingPattern_r16_u { + BIT_STRING_t po2_r16; + BIT_STRING_t po4_r16; + BIT_STRING_t po6_r16; + BIT_STRING_t po8_r16; + BIT_STRING_t po16_r16; + BIT_STRING_t po32_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_MutingPattern_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_MutingPattern_r16; +extern asn_CHOICE_specifics_t asn_SPC_NR_MutingPattern_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_MutingPattern_r16_1[6]; +extern asn_per_constraints_t asn_PER_type_NR_MutingPattern_r16_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_MutingPattern_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-NTN-UE-RxTxMeasurements-r18.c b/asn.1/lpp_generated/NR-NTN-UE-RxTxMeasurements-r18.c new file mode 100644 index 00000000..902a04c4 --- /dev/null +++ b/asn.1/lpp_generated/NR-NTN-UE-RxTxMeasurements-r18.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-NTN-UE-RxTxMeasurements-r18.h" + +static int +memb_nr_NTN_UE_RxTxTimeDiffSubframeOffset_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 542L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_NTN_DL_TimingDrift_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -265L && value <= 265L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_NTN_UE_RxTxTimeDiffSubframeOffset_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 542 } /* (0..542) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_NTN_DL_TimingDrift_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, -265, 265 } /* (-265..265) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_NTN_UE_RxTxMeasurements_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_NTN_UE_RxTxMeasurements_r18, nr_NTN_UE_RxTxTimeDiffSubframeOffset_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_NTN_UE_RxTxTimeDiffSubframeOffset_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_NTN_UE_RxTxTimeDiffSubframeOffset_r18_constraint_1 + }, + 0, 0, /* No default value */ + "nr-NTN-UE-RxTxTimeDiffSubframeOffset-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_NTN_UE_RxTxMeasurements_r18, nr_NTN_DL_TimingDrift_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_NTN_DL_TimingDrift_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_NTN_DL_TimingDrift_r18_constraint_1 + }, + 0, 0, /* No default value */ + "nr-NTN-DL-TimingDrift-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_NTN_UE_RxTxMeasurements_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_NTN_UE_RxTxMeasurements_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-NTN-UE-RxTxTimeDiffSubframeOffset-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-NTN-DL-TimingDrift-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_NTN_UE_RxTxMeasurements_r18_specs_1 = { + sizeof(struct NR_NTN_UE_RxTxMeasurements_r18), + offsetof(struct NR_NTN_UE_RxTxMeasurements_r18, _asn_ctx), + asn_MAP_NR_NTN_UE_RxTxMeasurements_r18_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_NTN_UE_RxTxMeasurements_r18 = { + "NR-NTN-UE-RxTxMeasurements-r18", + "NR-NTN-UE-RxTxMeasurements-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_NTN_UE_RxTxMeasurements_r18_tags_1, + sizeof(asn_DEF_NR_NTN_UE_RxTxMeasurements_r18_tags_1) + /sizeof(asn_DEF_NR_NTN_UE_RxTxMeasurements_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_NTN_UE_RxTxMeasurements_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_NTN_UE_RxTxMeasurements_r18_tags_1) + /sizeof(asn_DEF_NR_NTN_UE_RxTxMeasurements_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_NTN_UE_RxTxMeasurements_r18_1, + 2, /* Elements count */ + &asn_SPC_NR_NTN_UE_RxTxMeasurements_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-NTN-UE-RxTxMeasurements-r18.h b/asn.1/lpp_generated/NR-NTN-UE-RxTxMeasurements-r18.h new file mode 100644 index 00000000..119f3e06 --- /dev/null +++ b/asn.1/lpp_generated/NR-NTN-UE-RxTxMeasurements-r18.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_NTN_UE_RxTxMeasurements_r18_H_ +#define _NR_NTN_UE_RxTxMeasurements_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-NTN-UE-RxTxMeasurements-r18 */ +typedef struct NR_NTN_UE_RxTxMeasurements_r18 { + long nr_NTN_UE_RxTxTimeDiffSubframeOffset_r18; + long nr_NTN_DL_TimingDrift_r18; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_NTN_UE_RxTxMeasurements_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_NTN_UE_RxTxMeasurements_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_NTN_UE_RxTxMeasurements_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_NTN_UE_RxTxMeasurements_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_NTN_UE_RxTxMeasurements_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17.c b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17.c new file mode 100644 index 00000000..db7ae457 --- /dev/null +++ b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17.h" + +#include "DL-PRS-Configuration-ID-r17.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DL_PRS_Configuration_ID_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_specs_1 = { + sizeof(struct NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17), + offsetof(struct NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17 = { + "NR-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17", + "NR-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_tags_1, + sizeof(asn_DEF_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_tags_1) + /sizeof(asn_DEF_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_tags_1) + /sizeof(asn_DEF_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_1, + 1, /* Single element */ + &asn_SPC_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17.h b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17.h new file mode 100644 index 00000000..5967df33 --- /dev/null +++ b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_H_ +#define _NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct DL_PRS_Configuration_ID_r17; + +/* NR-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17 */ +typedef struct NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17 { + A_SEQUENCE_OF(struct DL_PRS_Configuration_ID_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17; +extern asn_SET_OF_specifics_t asn_SPC_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_On_Demand_DL_PRS_Configurations_Selected_IndexList_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Configurations-r17.c b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Configurations-r17.c new file mode 100644 index 00000000..4622db60 --- /dev/null +++ b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Configurations-r17.c @@ -0,0 +1,335 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-On-Demand-DL-PRS-Configurations-r17.h" + +#include "On-Demand-DL-PRS-Configuration-r17.h" +#include "OnDemandDL-PRS-AggregationInfo-r18.h" +static int +memb_onDemandDL_PRS_AggregationList_r18_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 8UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_on_demand_dl_prs_configuration_list_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 8UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_on_demand_dl_prs_configuration_list_r17_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_onDemandDL_PRS_AggregationList_r18_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_onDemandDL_PRS_AggregationList_r18_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_on_demand_dl_prs_configuration_list_r17_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_on_demand_dl_prs_configuration_list_r17_2[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_On_Demand_DL_PRS_Configuration_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_on_demand_dl_prs_configuration_list_r17_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_on_demand_dl_prs_configuration_list_r17_specs_2 = { + sizeof(struct NR_On_Demand_DL_PRS_Configurations_r17__on_demand_dl_prs_configuration_list_r17), + offsetof(struct NR_On_Demand_DL_PRS_Configurations_r17__on_demand_dl_prs_configuration_list_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_on_demand_dl_prs_configuration_list_r17_2 = { + "on-demand-dl-prs-configuration-list-r17", + "on-demand-dl-prs-configuration-list-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_on_demand_dl_prs_configuration_list_r17_tags_2, + sizeof(asn_DEF_on_demand_dl_prs_configuration_list_r17_tags_2) + /sizeof(asn_DEF_on_demand_dl_prs_configuration_list_r17_tags_2[0]) - 1, /* 1 */ + asn_DEF_on_demand_dl_prs_configuration_list_r17_tags_2, /* Same as above */ + sizeof(asn_DEF_on_demand_dl_prs_configuration_list_r17_tags_2) + /sizeof(asn_DEF_on_demand_dl_prs_configuration_list_r17_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_on_demand_dl_prs_configuration_list_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_on_demand_dl_prs_configuration_list_r17_2, + 1, /* Single element */ + &asn_SPC_on_demand_dl_prs_configuration_list_r17_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_onDemandDL_PRS_AggregationList_r18_6[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_OnDemandDL_PRS_AggregationInfo_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_onDemandDL_PRS_AggregationList_r18_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_onDemandDL_PRS_AggregationList_r18_specs_6 = { + sizeof(struct NR_On_Demand_DL_PRS_Configurations_r17__ext1__onDemandDL_PRS_AggregationList_r18), + offsetof(struct NR_On_Demand_DL_PRS_Configurations_r17__ext1__onDemandDL_PRS_AggregationList_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_onDemandDL_PRS_AggregationList_r18_6 = { + "onDemandDL-PRS-AggregationList-r18", + "onDemandDL-PRS-AggregationList-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_onDemandDL_PRS_AggregationList_r18_tags_6, + sizeof(asn_DEF_onDemandDL_PRS_AggregationList_r18_tags_6) + /sizeof(asn_DEF_onDemandDL_PRS_AggregationList_r18_tags_6[0]) - 1, /* 1 */ + asn_DEF_onDemandDL_PRS_AggregationList_r18_tags_6, /* Same as above */ + sizeof(asn_DEF_onDemandDL_PRS_AggregationList_r18_tags_6) + /sizeof(asn_DEF_onDemandDL_PRS_AggregationList_r18_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_onDemandDL_PRS_AggregationList_r18_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_onDemandDL_PRS_AggregationList_r18_6, + 1, /* Single element */ + &asn_SPC_onDemandDL_PRS_AggregationList_r18_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_POINTER, 1, offsetof(struct NR_On_Demand_DL_PRS_Configurations_r17__ext1, onDemandDL_PRS_AggregationList_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_onDemandDL_PRS_AggregationList_r18_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_onDemandDL_PRS_AggregationList_r18_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_onDemandDL_PRS_AggregationList_r18_constraint_5 + }, + 0, 0, /* No default value */ + "onDemandDL-PRS-AggregationList-r18" + }, +}; +static const int asn_MAP_ext1_oms_5[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* onDemandDL-PRS-AggregationList-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct NR_On_Demand_DL_PRS_Configurations_r17__ext1), + offsetof(struct NR_On_Demand_DL_PRS_Configurations_r17__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_5, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 1, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_On_Demand_DL_PRS_Configurations_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_On_Demand_DL_PRS_Configurations_r17, on_demand_dl_prs_configuration_list_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_on_demand_dl_prs_configuration_list_r17_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_on_demand_dl_prs_configuration_list_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_on_demand_dl_prs_configuration_list_r17_constraint_1 + }, + 0, 0, /* No default value */ + "on-demand-dl-prs-configuration-list-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_On_Demand_DL_PRS_Configurations_r17, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_On_Demand_DL_PRS_Configurations_r17_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_NR_On_Demand_DL_PRS_Configurations_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_On_Demand_DL_PRS_Configurations_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* on-demand-dl-prs-configuration-list-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_On_Demand_DL_PRS_Configurations_r17_specs_1 = { + sizeof(struct NR_On_Demand_DL_PRS_Configurations_r17), + offsetof(struct NR_On_Demand_DL_PRS_Configurations_r17, _asn_ctx), + asn_MAP_NR_On_Demand_DL_PRS_Configurations_r17_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_NR_On_Demand_DL_PRS_Configurations_r17_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_On_Demand_DL_PRS_Configurations_r17 = { + "NR-On-Demand-DL-PRS-Configurations-r17", + "NR-On-Demand-DL-PRS-Configurations-r17", + &asn_OP_SEQUENCE, + asn_DEF_NR_On_Demand_DL_PRS_Configurations_r17_tags_1, + sizeof(asn_DEF_NR_On_Demand_DL_PRS_Configurations_r17_tags_1) + /sizeof(asn_DEF_NR_On_Demand_DL_PRS_Configurations_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_On_Demand_DL_PRS_Configurations_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_On_Demand_DL_PRS_Configurations_r17_tags_1) + /sizeof(asn_DEF_NR_On_Demand_DL_PRS_Configurations_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_On_Demand_DL_PRS_Configurations_r17_1, + 2, /* Elements count */ + &asn_SPC_NR_On_Demand_DL_PRS_Configurations_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Configurations-r17.h b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Configurations-r17.h new file mode 100644 index 00000000..f274ea73 --- /dev/null +++ b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Configurations-r17.h @@ -0,0 +1,65 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_On_Demand_DL_PRS_Configurations_r17_H_ +#define _NR_On_Demand_DL_PRS_Configurations_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct On_Demand_DL_PRS_Configuration_r17; +struct OnDemandDL_PRS_AggregationInfo_r18; + +/* NR-On-Demand-DL-PRS-Configurations-r17 */ +typedef struct NR_On_Demand_DL_PRS_Configurations_r17 { + struct NR_On_Demand_DL_PRS_Configurations_r17__on_demand_dl_prs_configuration_list_r17 { + A_SEQUENCE_OF(struct On_Demand_DL_PRS_Configuration_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } on_demand_dl_prs_configuration_list_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_On_Demand_DL_PRS_Configurations_r17__ext1 { + struct NR_On_Demand_DL_PRS_Configurations_r17__ext1__onDemandDL_PRS_AggregationList_r18 { + A_SEQUENCE_OF(struct OnDemandDL_PRS_AggregationInfo_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *onDemandDL_PRS_AggregationList_r18; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_On_Demand_DL_PRS_Configurations_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_On_Demand_DL_PRS_Configurations_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_On_Demand_DL_PRS_Configurations_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_On_Demand_DL_PRS_Configurations_r17_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_On_Demand_DL_PRS_Configurations_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Information-r17.c b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Information-r17.c new file mode 100644 index 00000000..85b3f12f --- /dev/null +++ b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Information-r17.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-On-Demand-DL-PRS-Information-r17.h" + +#include "NR-On-Demand-DL-PRS-PerFreqLayer-r17.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_On_Demand_DL_PRS_Information_r17_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_On_Demand_DL_PRS_Information_r17_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_On_Demand_DL_PRS_PerFreqLayer_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_On_Demand_DL_PRS_Information_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_On_Demand_DL_PRS_Information_r17_specs_1 = { + sizeof(struct NR_On_Demand_DL_PRS_Information_r17), + offsetof(struct NR_On_Demand_DL_PRS_Information_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_On_Demand_DL_PRS_Information_r17 = { + "NR-On-Demand-DL-PRS-Information-r17", + "NR-On-Demand-DL-PRS-Information-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_On_Demand_DL_PRS_Information_r17_tags_1, + sizeof(asn_DEF_NR_On_Demand_DL_PRS_Information_r17_tags_1) + /sizeof(asn_DEF_NR_On_Demand_DL_PRS_Information_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_On_Demand_DL_PRS_Information_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_On_Demand_DL_PRS_Information_r17_tags_1) + /sizeof(asn_DEF_NR_On_Demand_DL_PRS_Information_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_On_Demand_DL_PRS_Information_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_On_Demand_DL_PRS_Information_r17_1, + 1, /* Single element */ + &asn_SPC_NR_On_Demand_DL_PRS_Information_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Information-r17.h b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Information-r17.h new file mode 100644 index 00000000..808a505e --- /dev/null +++ b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Information-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_On_Demand_DL_PRS_Information_r17_H_ +#define _NR_On_Demand_DL_PRS_Information_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_On_Demand_DL_PRS_PerFreqLayer_r17; + +/* NR-On-Demand-DL-PRS-Information-r17 */ +typedef struct NR_On_Demand_DL_PRS_Information_r17 { + A_SEQUENCE_OF(struct NR_On_Demand_DL_PRS_PerFreqLayer_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_On_Demand_DL_PRS_Information_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_On_Demand_DL_PRS_Information_r17; +extern asn_SET_OF_specifics_t asn_SPC_NR_On_Demand_DL_PRS_Information_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_On_Demand_DL_PRS_Information_r17_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_On_Demand_DL_PRS_Information_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_On_Demand_DL_PRS_Information_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-On-Demand-DL-PRS-PerFreqLayer-r17.c b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-PerFreqLayer-r17.c new file mode 100644 index 00000000..7f4706a2 --- /dev/null +++ b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-PerFreqLayer-r17.c @@ -0,0 +1,559 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-On-Demand-DL-PRS-PerFreqLayer-r17.h" + +#include "DL-PRS-QCL-InformationReqTRPlist-r17.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_dl_prs_ResourceBandwidthReq_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_prs_FrequencyRangeReq_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_prs_ResourceSetPeriodicityReq_r17_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 5, 5, 0, 19 } /* (0..19,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_prs_ResourceRepetitionFactorReq_r17_constr_32 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_prs_NumSymbolsReq_r17_constr_40 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_prs_CombSizeN_Req_r17_constr_47 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_prs_ResourceBandwidthReq_r17_constr_31 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 1, 63 } /* (1..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_dl_prs_FrequencyRangeReq_r17_value2enum_2[] = { + { 0, 3, "fr1" }, + { 1, 3, "fr2" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_dl_prs_FrequencyRangeReq_r17_enum2value_2[] = { + 0, /* fr1(0) */ + 1 /* fr2(1) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_prs_FrequencyRangeReq_r17_specs_2 = { + asn_MAP_dl_prs_FrequencyRangeReq_r17_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_dl_prs_FrequencyRangeReq_r17_enum2value_2, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_prs_FrequencyRangeReq_r17_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_prs_FrequencyRangeReq_r17_2 = { + "dl-prs-FrequencyRangeReq-r17", + "dl-prs-FrequencyRangeReq-r17", + &asn_OP_NativeEnumerated, + asn_DEF_dl_prs_FrequencyRangeReq_r17_tags_2, + sizeof(asn_DEF_dl_prs_FrequencyRangeReq_r17_tags_2) + /sizeof(asn_DEF_dl_prs_FrequencyRangeReq_r17_tags_2[0]) - 1, /* 1 */ + asn_DEF_dl_prs_FrequencyRangeReq_r17_tags_2, /* Same as above */ + sizeof(asn_DEF_dl_prs_FrequencyRangeReq_r17_tags_2) + /sizeof(asn_DEF_dl_prs_FrequencyRangeReq_r17_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_prs_FrequencyRangeReq_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_prs_FrequencyRangeReq_r17_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dl_prs_ResourceSetPeriodicityReq_r17_value2enum_6[] = { + { 0, 2, "p4" }, + { 1, 2, "p5" }, + { 2, 2, "p8" }, + { 3, 3, "p10" }, + { 4, 3, "p16" }, + { 5, 3, "p20" }, + { 6, 3, "p32" }, + { 7, 3, "p40" }, + { 8, 3, "p64" }, + { 9, 3, "p80" }, + { 10, 4, "p160" }, + { 11, 4, "p320" }, + { 12, 4, "p640" }, + { 13, 5, "p1280" }, + { 14, 5, "p2560" }, + { 15, 5, "p5120" }, + { 16, 6, "p10240" }, + { 17, 6, "p20480" }, + { 18, 6, "p40960" }, + { 19, 6, "p81920" }, + { 20, 10, "p128-v1760" }, + { 21, 10, "p256-v1760" }, + { 22, 10, "p512-v1760" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_dl_prs_ResourceSetPeriodicityReq_r17_enum2value_6[] = { + 3, /* p10(3) */ + 16, /* p10240(16) */ + 20, /* p128-v1760(20) */ + 13, /* p1280(13) */ + 4, /* p16(4) */ + 10, /* p160(10) */ + 5, /* p20(5) */ + 17, /* p20480(17) */ + 21, /* p256-v1760(21) */ + 14, /* p2560(14) */ + 6, /* p32(6) */ + 11, /* p320(11) */ + 0, /* p4(0) */ + 7, /* p40(7) */ + 18, /* p40960(18) */ + 1, /* p5(1) */ + 22, /* p512-v1760(22) */ + 15, /* p5120(15) */ + 8, /* p64(8) */ + 12, /* p640(12) */ + 2, /* p8(2) */ + 9, /* p80(9) */ + 19 /* p81920(19) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_prs_ResourceSetPeriodicityReq_r17_specs_6 = { + asn_MAP_dl_prs_ResourceSetPeriodicityReq_r17_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_dl_prs_ResourceSetPeriodicityReq_r17_enum2value_6, /* N => "tag"; sorted by N */ + 23, /* Number of elements in the maps */ + 21, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_prs_ResourceSetPeriodicityReq_r17_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_prs_ResourceSetPeriodicityReq_r17_6 = { + "dl-prs-ResourceSetPeriodicityReq-r17", + "dl-prs-ResourceSetPeriodicityReq-r17", + &asn_OP_NativeEnumerated, + asn_DEF_dl_prs_ResourceSetPeriodicityReq_r17_tags_6, + sizeof(asn_DEF_dl_prs_ResourceSetPeriodicityReq_r17_tags_6) + /sizeof(asn_DEF_dl_prs_ResourceSetPeriodicityReq_r17_tags_6[0]) - 1, /* 1 */ + asn_DEF_dl_prs_ResourceSetPeriodicityReq_r17_tags_6, /* Same as above */ + sizeof(asn_DEF_dl_prs_ResourceSetPeriodicityReq_r17_tags_6) + /sizeof(asn_DEF_dl_prs_ResourceSetPeriodicityReq_r17_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_prs_ResourceSetPeriodicityReq_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_prs_ResourceSetPeriodicityReq_r17_specs_6 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dl_prs_ResourceRepetitionFactorReq_r17_value2enum_32[] = { + { 0, 2, "n2" }, + { 1, 2, "n4" }, + { 2, 2, "n6" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n32" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_dl_prs_ResourceRepetitionFactorReq_r17_enum2value_32[] = { + 4, /* n16(4) */ + 0, /* n2(0) */ + 5, /* n32(5) */ + 1, /* n4(1) */ + 2, /* n6(2) */ + 3 /* n8(3) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_prs_ResourceRepetitionFactorReq_r17_specs_32 = { + asn_MAP_dl_prs_ResourceRepetitionFactorReq_r17_value2enum_32, /* "tag" => N; sorted by tag */ + asn_MAP_dl_prs_ResourceRepetitionFactorReq_r17_enum2value_32, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 7, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_prs_ResourceRepetitionFactorReq_r17_tags_32[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_prs_ResourceRepetitionFactorReq_r17_32 = { + "dl-prs-ResourceRepetitionFactorReq-r17", + "dl-prs-ResourceRepetitionFactorReq-r17", + &asn_OP_NativeEnumerated, + asn_DEF_dl_prs_ResourceRepetitionFactorReq_r17_tags_32, + sizeof(asn_DEF_dl_prs_ResourceRepetitionFactorReq_r17_tags_32) + /sizeof(asn_DEF_dl_prs_ResourceRepetitionFactorReq_r17_tags_32[0]) - 1, /* 1 */ + asn_DEF_dl_prs_ResourceRepetitionFactorReq_r17_tags_32, /* Same as above */ + sizeof(asn_DEF_dl_prs_ResourceRepetitionFactorReq_r17_tags_32) + /sizeof(asn_DEF_dl_prs_ResourceRepetitionFactorReq_r17_tags_32[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_prs_ResourceRepetitionFactorReq_r17_constr_32, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_prs_ResourceRepetitionFactorReq_r17_specs_32 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dl_prs_NumSymbolsReq_r17_value2enum_40[] = { + { 0, 2, "n2" }, + { 1, 2, "n4" }, + { 2, 2, "n6" }, + { 3, 3, "n12" }, + { 4, 8, "n1-v1800" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_dl_prs_NumSymbolsReq_r17_enum2value_40[] = { + 4, /* n1-v1800(4) */ + 3, /* n12(3) */ + 0, /* n2(0) */ + 1, /* n4(1) */ + 2 /* n6(2) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_prs_NumSymbolsReq_r17_specs_40 = { + asn_MAP_dl_prs_NumSymbolsReq_r17_value2enum_40, /* "tag" => N; sorted by tag */ + asn_MAP_dl_prs_NumSymbolsReq_r17_enum2value_40, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_prs_NumSymbolsReq_r17_tags_40[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_prs_NumSymbolsReq_r17_40 = { + "dl-prs-NumSymbolsReq-r17", + "dl-prs-NumSymbolsReq-r17", + &asn_OP_NativeEnumerated, + asn_DEF_dl_prs_NumSymbolsReq_r17_tags_40, + sizeof(asn_DEF_dl_prs_NumSymbolsReq_r17_tags_40) + /sizeof(asn_DEF_dl_prs_NumSymbolsReq_r17_tags_40[0]) - 1, /* 1 */ + asn_DEF_dl_prs_NumSymbolsReq_r17_tags_40, /* Same as above */ + sizeof(asn_DEF_dl_prs_NumSymbolsReq_r17_tags_40) + /sizeof(asn_DEF_dl_prs_NumSymbolsReq_r17_tags_40[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_prs_NumSymbolsReq_r17_constr_40, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_prs_NumSymbolsReq_r17_specs_40 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dl_prs_CombSizeN_Req_r17_value2enum_47[] = { + { 0, 2, "n2" }, + { 1, 2, "n4" }, + { 2, 2, "n6" }, + { 3, 3, "n12" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_dl_prs_CombSizeN_Req_r17_enum2value_47[] = { + 3, /* n12(3) */ + 0, /* n2(0) */ + 1, /* n4(1) */ + 2 /* n6(2) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_prs_CombSizeN_Req_r17_specs_47 = { + asn_MAP_dl_prs_CombSizeN_Req_r17_value2enum_47, /* "tag" => N; sorted by tag */ + asn_MAP_dl_prs_CombSizeN_Req_r17_enum2value_47, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_prs_CombSizeN_Req_r17_tags_47[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_prs_CombSizeN_Req_r17_47 = { + "dl-prs-CombSizeN-Req-r17", + "dl-prs-CombSizeN-Req-r17", + &asn_OP_NativeEnumerated, + asn_DEF_dl_prs_CombSizeN_Req_r17_tags_47, + sizeof(asn_DEF_dl_prs_CombSizeN_Req_r17_tags_47) + /sizeof(asn_DEF_dl_prs_CombSizeN_Req_r17_tags_47[0]) - 1, /* 1 */ + asn_DEF_dl_prs_CombSizeN_Req_r17_tags_47, /* Same as above */ + sizeof(asn_DEF_dl_prs_CombSizeN_Req_r17_tags_47) + /sizeof(asn_DEF_dl_prs_CombSizeN_Req_r17_tags_47[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_prs_CombSizeN_Req_r17_constr_47, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_prs_CombSizeN_Req_r17_specs_47 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_On_Demand_DL_PRS_PerFreqLayer_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_On_Demand_DL_PRS_PerFreqLayer_r17, dl_prs_FrequencyRangeReq_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_prs_FrequencyRangeReq_r17_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-prs-FrequencyRangeReq-r17" + }, + { ATF_POINTER, 6, offsetof(struct NR_On_Demand_DL_PRS_PerFreqLayer_r17, dl_prs_ResourceSetPeriodicityReq_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_prs_ResourceSetPeriodicityReq_r17_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-prs-ResourceSetPeriodicityReq-r17" + }, + { ATF_POINTER, 5, offsetof(struct NR_On_Demand_DL_PRS_PerFreqLayer_r17, dl_prs_ResourceBandwidthReq_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_prs_ResourceBandwidthReq_r17_constr_31, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_prs_ResourceBandwidthReq_r17_constraint_1 + }, + 0, 0, /* No default value */ + "dl-prs-ResourceBandwidthReq-r17" + }, + { ATF_POINTER, 4, offsetof(struct NR_On_Demand_DL_PRS_PerFreqLayer_r17, dl_prs_ResourceRepetitionFactorReq_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_prs_ResourceRepetitionFactorReq_r17_32, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-prs-ResourceRepetitionFactorReq-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_On_Demand_DL_PRS_PerFreqLayer_r17, dl_prs_NumSymbolsReq_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_prs_NumSymbolsReq_r17_40, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-prs-NumSymbolsReq-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_On_Demand_DL_PRS_PerFreqLayer_r17, dl_prs_CombSizeN_Req_r17), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_prs_CombSizeN_Req_r17_47, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-prs-CombSizeN-Req-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_On_Demand_DL_PRS_PerFreqLayer_r17, dl_prs_QCL_InformationReqTRPlist_r17), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DL_PRS_QCL_InformationReqTRPlist_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-prs-QCL-InformationReqTRPlist-r17" + }, +}; +static const int asn_MAP_NR_On_Demand_DL_PRS_PerFreqLayer_r17_oms_1[] = { 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_NR_On_Demand_DL_PRS_PerFreqLayer_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_On_Demand_DL_PRS_PerFreqLayer_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-prs-FrequencyRangeReq-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* dl-prs-ResourceSetPeriodicityReq-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dl-prs-ResourceBandwidthReq-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* dl-prs-ResourceRepetitionFactorReq-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* dl-prs-NumSymbolsReq-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* dl-prs-CombSizeN-Req-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* dl-prs-QCL-InformationReqTRPlist-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_On_Demand_DL_PRS_PerFreqLayer_r17_specs_1 = { + sizeof(struct NR_On_Demand_DL_PRS_PerFreqLayer_r17), + offsetof(struct NR_On_Demand_DL_PRS_PerFreqLayer_r17, _asn_ctx), + asn_MAP_NR_On_Demand_DL_PRS_PerFreqLayer_r17_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_NR_On_Demand_DL_PRS_PerFreqLayer_r17_oms_1, /* Optional members */ + 6, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_On_Demand_DL_PRS_PerFreqLayer_r17 = { + "NR-On-Demand-DL-PRS-PerFreqLayer-r17", + "NR-On-Demand-DL-PRS-PerFreqLayer-r17", + &asn_OP_SEQUENCE, + asn_DEF_NR_On_Demand_DL_PRS_PerFreqLayer_r17_tags_1, + sizeof(asn_DEF_NR_On_Demand_DL_PRS_PerFreqLayer_r17_tags_1) + /sizeof(asn_DEF_NR_On_Demand_DL_PRS_PerFreqLayer_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_On_Demand_DL_PRS_PerFreqLayer_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_On_Demand_DL_PRS_PerFreqLayer_r17_tags_1) + /sizeof(asn_DEF_NR_On_Demand_DL_PRS_PerFreqLayer_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_On_Demand_DL_PRS_PerFreqLayer_r17_1, + 7, /* Elements count */ + &asn_SPC_NR_On_Demand_DL_PRS_PerFreqLayer_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-On-Demand-DL-PRS-PerFreqLayer-r17.h b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-PerFreqLayer-r17.h new file mode 100644 index 00000000..efe00b60 --- /dev/null +++ b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-PerFreqLayer-r17.h @@ -0,0 +1,126 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_On_Demand_DL_PRS_PerFreqLayer_r17_H_ +#define _NR_On_Demand_DL_PRS_PerFreqLayer_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_FrequencyRangeReq_r17 { + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_FrequencyRangeReq_r17_fr1 = 0, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_FrequencyRangeReq_r17_fr2 = 1 + /* + * Enumeration is extensible + */ +} e_NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_FrequencyRangeReq_r17; +typedef enum NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17 { + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p4 = 0, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p5 = 1, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p8 = 2, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p10 = 3, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p16 = 4, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p20 = 5, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p32 = 6, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p40 = 7, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p64 = 8, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p80 = 9, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p160 = 10, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p320 = 11, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p640 = 12, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p1280 = 13, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p2560 = 14, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p5120 = 15, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p10240 = 16, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p20480 = 17, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p40960 = 18, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p81920 = 19, + /* + * Enumeration is extensible + */ + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p128_v1760 = 20, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p256_v1760 = 21, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17_p512_v1760 = 22 +} e_NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceSetPeriodicityReq_r17; +typedef enum NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceRepetitionFactorReq_r17 { + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceRepetitionFactorReq_r17_n2 = 0, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceRepetitionFactorReq_r17_n4 = 1, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceRepetitionFactorReq_r17_n6 = 2, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceRepetitionFactorReq_r17_n8 = 3, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceRepetitionFactorReq_r17_n16 = 4, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceRepetitionFactorReq_r17_n32 = 5 + /* + * Enumeration is extensible + */ +} e_NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_ResourceRepetitionFactorReq_r17; +typedef enum NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_NumSymbolsReq_r17 { + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_NumSymbolsReq_r17_n2 = 0, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_NumSymbolsReq_r17_n4 = 1, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_NumSymbolsReq_r17_n6 = 2, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_NumSymbolsReq_r17_n12 = 3, + /* + * Enumeration is extensible + */ + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_NumSymbolsReq_r17_n1_v1800 = 4 +} e_NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_NumSymbolsReq_r17; +typedef enum NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_CombSizeN_Req_r17 { + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_CombSizeN_Req_r17_n2 = 0, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_CombSizeN_Req_r17_n4 = 1, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_CombSizeN_Req_r17_n6 = 2, + NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_CombSizeN_Req_r17_n12 = 3 + /* + * Enumeration is extensible + */ +} e_NR_On_Demand_DL_PRS_PerFreqLayer_r17__dl_prs_CombSizeN_Req_r17; + +/* Forward declarations */ +struct DL_PRS_QCL_InformationReqTRPlist_r17; + +/* NR-On-Demand-DL-PRS-PerFreqLayer-r17 */ +typedef struct NR_On_Demand_DL_PRS_PerFreqLayer_r17 { + long dl_prs_FrequencyRangeReq_r17; + long *dl_prs_ResourceSetPeriodicityReq_r17; /* OPTIONAL */ + long *dl_prs_ResourceBandwidthReq_r17; /* OPTIONAL */ + long *dl_prs_ResourceRepetitionFactorReq_r17; /* OPTIONAL */ + long *dl_prs_NumSymbolsReq_r17; /* OPTIONAL */ + long *dl_prs_CombSizeN_Req_r17; /* OPTIONAL */ + struct DL_PRS_QCL_InformationReqTRPlist_r17 *dl_prs_QCL_InformationReqTRPlist_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_On_Demand_DL_PRS_PerFreqLayer_r17_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_dl_prs_FrequencyRangeReq_r17_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_dl_prs_ResourceSetPeriodicityReq_r17_6; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_dl_prs_ResourceRepetitionFactorReq_r17_32; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_dl_prs_NumSymbolsReq_r17_40; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_dl_prs_CombSizeN_Req_r17_47; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_On_Demand_DL_PRS_PerFreqLayer_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_On_Demand_DL_PRS_PerFreqLayer_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_On_Demand_DL_PRS_PerFreqLayer_r17_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_On_Demand_DL_PRS_PerFreqLayer_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Request-r17.c b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Request-r17.c new file mode 100644 index 00000000..3bd8ce23 --- /dev/null +++ b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Request-r17.c @@ -0,0 +1,516 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-On-Demand-DL-PRS-Request-r17.h" + +#include "DL-PRS-StartTime-and-Duration-r17.h" +#include "NR-On-Demand-DL-PRS-Information-r17.h" +#include "DL-PRS-Configuration-ID-r17.h" +#include "NR-OnDemandDL-PRS-AggregationReqElement-r18.h" +static int +memb_NativeInteger_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 8L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_PRS_AggregationID_PrefList_r18_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 8UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_OnDemandDL_PRS_AggregationReqList_r18_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 8UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_prs_configuration_id_PrefList_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 8UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_prs_configuration_id_PrefList_r17_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_AggregationID_PrefList_r18_constr_8 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_OnDemandDL_PRS_AggregationReqList_r18_constr_10 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_AggregationID_PrefList_r18_constr_8 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_OnDemandDL_PRS_AggregationReqList_r18_constr_10 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_prs_configuration_id_PrefList_r17_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_dl_prs_configuration_id_PrefList_r17_4[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DL_PRS_Configuration_ID_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_dl_prs_configuration_id_PrefList_r17_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_dl_prs_configuration_id_PrefList_r17_specs_4 = { + sizeof(struct NR_On_Demand_DL_PRS_Request_r17__dl_prs_configuration_id_PrefList_r17), + offsetof(struct NR_On_Demand_DL_PRS_Request_r17__dl_prs_configuration_id_PrefList_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_prs_configuration_id_PrefList_r17_4 = { + "dl-prs-configuration-id-PrefList-r17", + "dl-prs-configuration-id-PrefList-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_dl_prs_configuration_id_PrefList_r17_tags_4, + sizeof(asn_DEF_dl_prs_configuration_id_PrefList_r17_tags_4) + /sizeof(asn_DEF_dl_prs_configuration_id_PrefList_r17_tags_4[0]) - 1, /* 1 */ + asn_DEF_dl_prs_configuration_id_PrefList_r17_tags_4, /* Same as above */ + sizeof(asn_DEF_dl_prs_configuration_id_PrefList_r17_tags_4) + /sizeof(asn_DEF_dl_prs_configuration_id_PrefList_r17_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_prs_configuration_id_PrefList_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_dl_prs_configuration_id_PrefList_r17_4, + 1, /* Single element */ + &asn_SPC_dl_prs_configuration_id_PrefList_r17_specs_4 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_dl_PRS_AggregationID_PrefList_r18_8[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_NativeInteger_constraint_8 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_AggregationID_PrefList_r18_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_dl_PRS_AggregationID_PrefList_r18_specs_8 = { + sizeof(struct NR_On_Demand_DL_PRS_Request_r17__ext1__dl_PRS_AggregationID_PrefList_r18), + offsetof(struct NR_On_Demand_DL_PRS_Request_r17__ext1__dl_PRS_AggregationID_PrefList_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_AggregationID_PrefList_r18_8 = { + "dl-PRS-AggregationID-PrefList-r18", + "dl-PRS-AggregationID-PrefList-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_dl_PRS_AggregationID_PrefList_r18_tags_8, + sizeof(asn_DEF_dl_PRS_AggregationID_PrefList_r18_tags_8) + /sizeof(asn_DEF_dl_PRS_AggregationID_PrefList_r18_tags_8[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_AggregationID_PrefList_r18_tags_8, /* Same as above */ + sizeof(asn_DEF_dl_PRS_AggregationID_PrefList_r18_tags_8) + /sizeof(asn_DEF_dl_PRS_AggregationID_PrefList_r18_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_AggregationID_PrefList_r18_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_dl_PRS_AggregationID_PrefList_r18_8, + 1, /* Single element */ + &asn_SPC_dl_PRS_AggregationID_PrefList_r18_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_OnDemandDL_PRS_AggregationReqList_r18_10[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_OnDemandDL_PRS_AggregationReqElement_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_OnDemandDL_PRS_AggregationReqList_r18_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_OnDemandDL_PRS_AggregationReqList_r18_specs_10 = { + sizeof(struct NR_On_Demand_DL_PRS_Request_r17__ext1__nr_OnDemandDL_PRS_AggregationReqList_r18), + offsetof(struct NR_On_Demand_DL_PRS_Request_r17__ext1__nr_OnDemandDL_PRS_AggregationReqList_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_OnDemandDL_PRS_AggregationReqList_r18_10 = { + "nr-OnDemandDL-PRS-AggregationReqList-r18", + "nr-OnDemandDL-PRS-AggregationReqList-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_OnDemandDL_PRS_AggregationReqList_r18_tags_10, + sizeof(asn_DEF_nr_OnDemandDL_PRS_AggregationReqList_r18_tags_10) + /sizeof(asn_DEF_nr_OnDemandDL_PRS_AggregationReqList_r18_tags_10[0]) - 1, /* 1 */ + asn_DEF_nr_OnDemandDL_PRS_AggregationReqList_r18_tags_10, /* Same as above */ + sizeof(asn_DEF_nr_OnDemandDL_PRS_AggregationReqList_r18_tags_10) + /sizeof(asn_DEF_nr_OnDemandDL_PRS_AggregationReqList_r18_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_OnDemandDL_PRS_AggregationReqList_r18_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_OnDemandDL_PRS_AggregationReqList_r18_10, + 1, /* Single element */ + &asn_SPC_nr_OnDemandDL_PRS_AggregationReqList_r18_specs_10 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 2, offsetof(struct NR_On_Demand_DL_PRS_Request_r17__ext1, dl_PRS_AggregationID_PrefList_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_dl_PRS_AggregationID_PrefList_r18_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_AggregationID_PrefList_r18_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_AggregationID_PrefList_r18_constraint_7 + }, + 0, 0, /* No default value */ + "dl-PRS-AggregationID-PrefList-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_On_Demand_DL_PRS_Request_r17__ext1, nr_OnDemandDL_PRS_AggregationReqList_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_nr_OnDemandDL_PRS_AggregationReqList_r18_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_OnDemandDL_PRS_AggregationReqList_r18_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_OnDemandDL_PRS_AggregationReqList_r18_constraint_7 + }, + 0, 0, /* No default value */ + "nr-OnDemandDL-PRS-AggregationReqList-r18" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-AggregationID-PrefList-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-OnDemandDL-PRS-AggregationReqList-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct NR_On_Demand_DL_PRS_Request_r17__ext1), + offsetof(struct NR_On_Demand_DL_PRS_Request_r17__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 2, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_On_Demand_DL_PRS_Request_r17_1[] = { + { ATF_POINTER, 4, offsetof(struct NR_On_Demand_DL_PRS_Request_r17, dl_prs_StartTime_and_Duration_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DL_PRS_StartTime_and_Duration_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-prs-StartTime-and-Duration-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_On_Demand_DL_PRS_Request_r17, nr_on_demand_DL_PRS_Information_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_On_Demand_DL_PRS_Information_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-on-demand-DL-PRS-Information-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_On_Demand_DL_PRS_Request_r17, dl_prs_configuration_id_PrefList_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_dl_prs_configuration_id_PrefList_r17_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_prs_configuration_id_PrefList_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_prs_configuration_id_PrefList_r17_constraint_1 + }, + 0, 0, /* No default value */ + "dl-prs-configuration-id-PrefList-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_On_Demand_DL_PRS_Request_r17, ext1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_On_Demand_DL_PRS_Request_r17_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_NR_On_Demand_DL_PRS_Request_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_On_Demand_DL_PRS_Request_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-prs-StartTime-and-Duration-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-on-demand-DL-PRS-Information-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dl-prs-configuration-id-PrefList-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_On_Demand_DL_PRS_Request_r17_specs_1 = { + sizeof(struct NR_On_Demand_DL_PRS_Request_r17), + offsetof(struct NR_On_Demand_DL_PRS_Request_r17, _asn_ctx), + asn_MAP_NR_On_Demand_DL_PRS_Request_r17_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_NR_On_Demand_DL_PRS_Request_r17_oms_1, /* Optional members */ + 3, 1, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_On_Demand_DL_PRS_Request_r17 = { + "NR-On-Demand-DL-PRS-Request-r17", + "NR-On-Demand-DL-PRS-Request-r17", + &asn_OP_SEQUENCE, + asn_DEF_NR_On_Demand_DL_PRS_Request_r17_tags_1, + sizeof(asn_DEF_NR_On_Demand_DL_PRS_Request_r17_tags_1) + /sizeof(asn_DEF_NR_On_Demand_DL_PRS_Request_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_On_Demand_DL_PRS_Request_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_On_Demand_DL_PRS_Request_r17_tags_1) + /sizeof(asn_DEF_NR_On_Demand_DL_PRS_Request_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_On_Demand_DL_PRS_Request_r17_1, + 4, /* Elements count */ + &asn_SPC_NR_On_Demand_DL_PRS_Request_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Request-r17.h b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Request-r17.h new file mode 100644 index 00000000..690c8364 --- /dev/null +++ b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Request-r17.h @@ -0,0 +1,76 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_On_Demand_DL_PRS_Request_r17_H_ +#define _NR_On_Demand_DL_PRS_Request_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct DL_PRS_StartTime_and_Duration_r17; +struct NR_On_Demand_DL_PRS_Information_r17; +struct DL_PRS_Configuration_ID_r17; +struct NR_OnDemandDL_PRS_AggregationReqElement_r18; + +/* NR-On-Demand-DL-PRS-Request-r17 */ +typedef struct NR_On_Demand_DL_PRS_Request_r17 { + struct DL_PRS_StartTime_and_Duration_r17 *dl_prs_StartTime_and_Duration_r17; /* OPTIONAL */ + struct NR_On_Demand_DL_PRS_Information_r17 *nr_on_demand_DL_PRS_Information_r17; /* OPTIONAL */ + struct NR_On_Demand_DL_PRS_Request_r17__dl_prs_configuration_id_PrefList_r17 { + A_SEQUENCE_OF(struct DL_PRS_Configuration_ID_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *dl_prs_configuration_id_PrefList_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_On_Demand_DL_PRS_Request_r17__ext1 { + struct NR_On_Demand_DL_PRS_Request_r17__ext1__dl_PRS_AggregationID_PrefList_r18 { + A_SEQUENCE_OF(long) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *dl_PRS_AggregationID_PrefList_r18; + struct NR_On_Demand_DL_PRS_Request_r17__ext1__nr_OnDemandDL_PRS_AggregationReqList_r18 { + A_SEQUENCE_OF(struct NR_OnDemandDL_PRS_AggregationReqElement_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_OnDemandDL_PRS_AggregationReqList_r18; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_On_Demand_DL_PRS_Request_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_On_Demand_DL_PRS_Request_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_On_Demand_DL_PRS_Request_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_On_Demand_DL_PRS_Request_r17_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_On_Demand_DL_PRS_Request_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Support-r17.c b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Support-r17.c new file mode 100644 index 00000000..5b2c4954 --- /dev/null +++ b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Support-r17.c @@ -0,0 +1,194 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-On-Demand-DL-PRS-Support-r17.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_on_demand_DL_PRS_InformationSup_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_on_demand_DL_PRS_ConfigurationsSup_r17_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_nr_on_demand_DL_PRS_InformationSup_r17_value2enum_2[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_nr_on_demand_DL_PRS_InformationSup_r17_enum2value_2[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_on_demand_DL_PRS_InformationSup_r17_specs_2 = { + asn_MAP_nr_on_demand_DL_PRS_InformationSup_r17_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_nr_on_demand_DL_PRS_InformationSup_r17_enum2value_2, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_on_demand_DL_PRS_InformationSup_r17_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_on_demand_DL_PRS_InformationSup_r17_2 = { + "nr-on-demand-DL-PRS-InformationSup-r17", + "nr-on-demand-DL-PRS-InformationSup-r17", + &asn_OP_NativeEnumerated, + asn_DEF_nr_on_demand_DL_PRS_InformationSup_r17_tags_2, + sizeof(asn_DEF_nr_on_demand_DL_PRS_InformationSup_r17_tags_2) + /sizeof(asn_DEF_nr_on_demand_DL_PRS_InformationSup_r17_tags_2[0]) - 1, /* 1 */ + asn_DEF_nr_on_demand_DL_PRS_InformationSup_r17_tags_2, /* Same as above */ + sizeof(asn_DEF_nr_on_demand_DL_PRS_InformationSup_r17_tags_2) + /sizeof(asn_DEF_nr_on_demand_DL_PRS_InformationSup_r17_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_on_demand_DL_PRS_InformationSup_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_on_demand_DL_PRS_InformationSup_r17_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_on_demand_DL_PRS_ConfigurationsSup_r17_value2enum_4[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_nr_on_demand_DL_PRS_ConfigurationsSup_r17_enum2value_4[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_on_demand_DL_PRS_ConfigurationsSup_r17_specs_4 = { + asn_MAP_nr_on_demand_DL_PRS_ConfigurationsSup_r17_value2enum_4, /* "tag" => N; sorted by tag */ + asn_MAP_nr_on_demand_DL_PRS_ConfigurationsSup_r17_enum2value_4, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_on_demand_DL_PRS_ConfigurationsSup_r17_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_on_demand_DL_PRS_ConfigurationsSup_r17_4 = { + "nr-on-demand-DL-PRS-ConfigurationsSup-r17", + "nr-on-demand-DL-PRS-ConfigurationsSup-r17", + &asn_OP_NativeEnumerated, + asn_DEF_nr_on_demand_DL_PRS_ConfigurationsSup_r17_tags_4, + sizeof(asn_DEF_nr_on_demand_DL_PRS_ConfigurationsSup_r17_tags_4) + /sizeof(asn_DEF_nr_on_demand_DL_PRS_ConfigurationsSup_r17_tags_4[0]) - 1, /* 1 */ + asn_DEF_nr_on_demand_DL_PRS_ConfigurationsSup_r17_tags_4, /* Same as above */ + sizeof(asn_DEF_nr_on_demand_DL_PRS_ConfigurationsSup_r17_tags_4) + /sizeof(asn_DEF_nr_on_demand_DL_PRS_ConfigurationsSup_r17_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_on_demand_DL_PRS_ConfigurationsSup_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_on_demand_DL_PRS_ConfigurationsSup_r17_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_On_Demand_DL_PRS_Support_r17_1[] = { + { ATF_POINTER, 2, offsetof(struct NR_On_Demand_DL_PRS_Support_r17, nr_on_demand_DL_PRS_InformationSup_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_on_demand_DL_PRS_InformationSup_r17_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-on-demand-DL-PRS-InformationSup-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_On_Demand_DL_PRS_Support_r17, nr_on_demand_DL_PRS_ConfigurationsSup_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_on_demand_DL_PRS_ConfigurationsSup_r17_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-on-demand-DL-PRS-ConfigurationsSup-r17" + }, +}; +static const int asn_MAP_NR_On_Demand_DL_PRS_Support_r17_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_NR_On_Demand_DL_PRS_Support_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_On_Demand_DL_PRS_Support_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-on-demand-DL-PRS-InformationSup-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-on-demand-DL-PRS-ConfigurationsSup-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_On_Demand_DL_PRS_Support_r17_specs_1 = { + sizeof(struct NR_On_Demand_DL_PRS_Support_r17), + offsetof(struct NR_On_Demand_DL_PRS_Support_r17, _asn_ctx), + asn_MAP_NR_On_Demand_DL_PRS_Support_r17_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_NR_On_Demand_DL_PRS_Support_r17_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_On_Demand_DL_PRS_Support_r17 = { + "NR-On-Demand-DL-PRS-Support-r17", + "NR-On-Demand-DL-PRS-Support-r17", + &asn_OP_SEQUENCE, + asn_DEF_NR_On_Demand_DL_PRS_Support_r17_tags_1, + sizeof(asn_DEF_NR_On_Demand_DL_PRS_Support_r17_tags_1) + /sizeof(asn_DEF_NR_On_Demand_DL_PRS_Support_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_On_Demand_DL_PRS_Support_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_On_Demand_DL_PRS_Support_r17_tags_1) + /sizeof(asn_DEF_NR_On_Demand_DL_PRS_Support_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_On_Demand_DL_PRS_Support_r17_1, + 2, /* Elements count */ + &asn_SPC_NR_On_Demand_DL_PRS_Support_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Support-r17.h b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Support-r17.h new file mode 100644 index 00000000..7c73d1c4 --- /dev/null +++ b/asn.1/lpp_generated/NR-On-Demand-DL-PRS-Support-r17.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_On_Demand_DL_PRS_Support_r17_H_ +#define _NR_On_Demand_DL_PRS_Support_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_On_Demand_DL_PRS_Support_r17__nr_on_demand_DL_PRS_InformationSup_r17 { + NR_On_Demand_DL_PRS_Support_r17__nr_on_demand_DL_PRS_InformationSup_r17_supported = 0 +} e_NR_On_Demand_DL_PRS_Support_r17__nr_on_demand_DL_PRS_InformationSup_r17; +typedef enum NR_On_Demand_DL_PRS_Support_r17__nr_on_demand_DL_PRS_ConfigurationsSup_r17 { + NR_On_Demand_DL_PRS_Support_r17__nr_on_demand_DL_PRS_ConfigurationsSup_r17_supported = 0 +} e_NR_On_Demand_DL_PRS_Support_r17__nr_on_demand_DL_PRS_ConfigurationsSup_r17; + +/* NR-On-Demand-DL-PRS-Support-r17 */ +typedef struct NR_On_Demand_DL_PRS_Support_r17 { + long *nr_on_demand_DL_PRS_InformationSup_r17; /* OPTIONAL */ + long *nr_on_demand_DL_PRS_ConfigurationsSup_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_On_Demand_DL_PRS_Support_r17_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_on_demand_DL_PRS_InformationSup_r17_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_on_demand_DL_PRS_ConfigurationsSup_r17_4; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_On_Demand_DL_PRS_Support_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_On_Demand_DL_PRS_Support_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_On_Demand_DL_PRS_Support_r17_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_On_Demand_DL_PRS_Support_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-OnDemandDL-PRS-AggregationReqElement-r18.c b/asn.1/lpp_generated/NR-OnDemandDL-PRS-AggregationReqElement-r18.c new file mode 100644 index 00000000..a230e454 --- /dev/null +++ b/asn.1/lpp_generated/NR-OnDemandDL-PRS-AggregationReqElement-r18.c @@ -0,0 +1,99 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-OnDemandDL-PRS-AggregationReqElement-r18.h" + +static int +memb_NativeInteger_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 4L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (1..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_OnDemandDL_PRS_AggregationReqElement_r18_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_OnDemandDL_PRS_AggregationReqElement_r18_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_NativeInteger_constraint_1 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_OnDemandDL_PRS_AggregationReqElement_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_OnDemandDL_PRS_AggregationReqElement_r18_specs_1 = { + sizeof(struct NR_OnDemandDL_PRS_AggregationReqElement_r18), + offsetof(struct NR_OnDemandDL_PRS_AggregationReqElement_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_OnDemandDL_PRS_AggregationReqElement_r18 = { + "NR-OnDemandDL-PRS-AggregationReqElement-r18", + "NR-OnDemandDL-PRS-AggregationReqElement-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_OnDemandDL_PRS_AggregationReqElement_r18_tags_1, + sizeof(asn_DEF_NR_OnDemandDL_PRS_AggregationReqElement_r18_tags_1) + /sizeof(asn_DEF_NR_OnDemandDL_PRS_AggregationReqElement_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_OnDemandDL_PRS_AggregationReqElement_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_OnDemandDL_PRS_AggregationReqElement_r18_tags_1) + /sizeof(asn_DEF_NR_OnDemandDL_PRS_AggregationReqElement_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_OnDemandDL_PRS_AggregationReqElement_r18_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_OnDemandDL_PRS_AggregationReqElement_r18_1, + 1, /* Single element */ + &asn_SPC_NR_OnDemandDL_PRS_AggregationReqElement_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-OnDemandDL-PRS-AggregationReqElement-r18.h b/asn.1/lpp_generated/NR-OnDemandDL-PRS-AggregationReqElement-r18.h new file mode 100644 index 00000000..fa9d1926 --- /dev/null +++ b/asn.1/lpp_generated/NR-OnDemandDL-PRS-AggregationReqElement-r18.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_OnDemandDL_PRS_AggregationReqElement_r18_H_ +#define _NR_OnDemandDL_PRS_AggregationReqElement_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-OnDemandDL-PRS-AggregationReqElement-r18 */ +typedef struct NR_OnDemandDL_PRS_AggregationReqElement_r18 { + A_SEQUENCE_OF(long) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_OnDemandDL_PRS_AggregationReqElement_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_OnDemandDL_PRS_AggregationReqElement_r18; +extern asn_SET_OF_specifics_t asn_SPC_NR_OnDemandDL_PRS_AggregationReqElement_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_OnDemandDL_PRS_AggregationReqElement_r18_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_OnDemandDL_PRS_AggregationReqElement_r18_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_OnDemandDL_PRS_AggregationReqElement_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-PRU-DL-Info-r18.c b/asn.1/lpp_generated/NR-PRU-DL-Info-r18.c new file mode 100644 index 00000000..b5c1d13e --- /dev/null +++ b/asn.1/lpp_generated/NR-PRU-DL-Info-r18.c @@ -0,0 +1,126 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-PRU-DL-Info-r18.h" + +#include "LocationCoordinates.h" +#include "NR-DL-TDOA-SignalMeasurementInformation-r16.h" +#include "NR-DL-AoD-SignalMeasurementInformation-r16.h" +#include "NR-PRU-RSCP-MeasurementInformation-r18.h" +asn_TYPE_member_t asn_MBR_NR_PRU_DL_Info_r18_1[] = { + { ATF_POINTER, 4, offsetof(struct NR_PRU_DL_Info_r18, nr_PRU_LocationInfo_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_LocationCoordinates, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PRU-LocationInfo-r18" + }, + { ATF_POINTER, 3, offsetof(struct NR_PRU_DL_Info_r18, nr_PRU_DL_TDOA_MeasInfo_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_TDOA_SignalMeasurementInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PRU-DL-TDOA-MeasInfo-r18" + }, + { ATF_POINTER, 2, offsetof(struct NR_PRU_DL_Info_r18, nr_PRU_DL_AoD_MeasInfo_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_AoD_SignalMeasurementInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PRU-DL-AoD-MeasInfo-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_PRU_DL_Info_r18, nr_PRU_RSCP_MeasInfo_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PRU_RSCP_MeasurementInformation_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PRU-RSCP-MeasInfo-r18" + }, +}; +static const int asn_MAP_NR_PRU_DL_Info_r18_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_NR_PRU_DL_Info_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_PRU_DL_Info_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-PRU-LocationInfo-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PRU-DL-TDOA-MeasInfo-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-PRU-DL-AoD-MeasInfo-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* nr-PRU-RSCP-MeasInfo-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_PRU_DL_Info_r18_specs_1 = { + sizeof(struct NR_PRU_DL_Info_r18), + offsetof(struct NR_PRU_DL_Info_r18, _asn_ctx), + asn_MAP_NR_PRU_DL_Info_r18_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_NR_PRU_DL_Info_r18_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_PRU_DL_Info_r18 = { + "NR-PRU-DL-Info-r18", + "NR-PRU-DL-Info-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_PRU_DL_Info_r18_tags_1, + sizeof(asn_DEF_NR_PRU_DL_Info_r18_tags_1) + /sizeof(asn_DEF_NR_PRU_DL_Info_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_PRU_DL_Info_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_PRU_DL_Info_r18_tags_1) + /sizeof(asn_DEF_NR_PRU_DL_Info_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_PRU_DL_Info_r18_1, + 4, /* Elements count */ + &asn_SPC_NR_PRU_DL_Info_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-PRU-DL-Info-r18.h b/asn.1/lpp_generated/NR-PRU-DL-Info-r18.h new file mode 100644 index 00000000..286f57b8 --- /dev/null +++ b/asn.1/lpp_generated/NR-PRU-DL-Info-r18.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_PRU_DL_Info_r18_H_ +#define _NR_PRU_DL_Info_r18_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct LocationCoordinates; +struct NR_DL_TDOA_SignalMeasurementInformation_r16; +struct NR_DL_AoD_SignalMeasurementInformation_r16; +struct NR_PRU_RSCP_MeasurementInformation_r18; + +/* NR-PRU-DL-Info-r18 */ +typedef struct NR_PRU_DL_Info_r18 { + struct LocationCoordinates *nr_PRU_LocationInfo_r18; /* OPTIONAL */ + struct NR_DL_TDOA_SignalMeasurementInformation_r16 *nr_PRU_DL_TDOA_MeasInfo_r18; /* OPTIONAL */ + struct NR_DL_AoD_SignalMeasurementInformation_r16 *nr_PRU_DL_AoD_MeasInfo_r18; /* OPTIONAL */ + struct NR_PRU_RSCP_MeasurementInformation_r18 *nr_PRU_RSCP_MeasInfo_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_PRU_DL_Info_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_PRU_DL_Info_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_PRU_DL_Info_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_PRU_DL_Info_r18_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_PRU_DL_Info_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-PRU-RSCP-AdditionalMeasurementElement-r18.c b/asn.1/lpp_generated/NR-PRU-RSCP-AdditionalMeasurementElement-r18.c new file mode 100644 index 00000000..6813b64e --- /dev/null +++ b/asn.1/lpp_generated/NR-PRU-RSCP-AdditionalMeasurementElement-r18.c @@ -0,0 +1,198 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-PRU-RSCP-AdditionalMeasurementElement-r18.h" + +#include "NR-RSCP-AdditionalMeasurements-r18.h" +static int +memb_nr_PRU_RSCP_AdditionalMeasurementsList_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 4UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_PRU_RSCP_AdditionalMeasurementsList_r18_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_PRU_RSCP_AdditionalMeasurementsList_r18_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_PRU_RSCP_AdditionalMeasurementsList_r18_4[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_RSCP_AdditionalMeasurements_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_PRU_RSCP_AdditionalMeasurementsList_r18_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_PRU_RSCP_AdditionalMeasurementsList_r18_specs_4 = { + sizeof(struct NR_PRU_RSCP_AdditionalMeasurementElement_r18__nr_PRU_RSCP_AdditionalMeasurementsList_r18), + offsetof(struct NR_PRU_RSCP_AdditionalMeasurementElement_r18__nr_PRU_RSCP_AdditionalMeasurementsList_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_PRU_RSCP_AdditionalMeasurementsList_r18_4 = { + "nr-PRU-RSCP-AdditionalMeasurementsList-r18", + "nr-PRU-RSCP-AdditionalMeasurementsList-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_PRU_RSCP_AdditionalMeasurementsList_r18_tags_4, + sizeof(asn_DEF_nr_PRU_RSCP_AdditionalMeasurementsList_r18_tags_4) + /sizeof(asn_DEF_nr_PRU_RSCP_AdditionalMeasurementsList_r18_tags_4[0]) - 1, /* 1 */ + asn_DEF_nr_PRU_RSCP_AdditionalMeasurementsList_r18_tags_4, /* Same as above */ + sizeof(asn_DEF_nr_PRU_RSCP_AdditionalMeasurementsList_r18_tags_4) + /sizeof(asn_DEF_nr_PRU_RSCP_AdditionalMeasurementsList_r18_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_PRU_RSCP_AdditionalMeasurementsList_r18_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_PRU_RSCP_AdditionalMeasurementsList_r18_4, + 1, /* Single element */ + &asn_SPC_nr_PRU_RSCP_AdditionalMeasurementsList_r18_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_PRU_RSCP_AdditionalMeasurementElement_r18_1[] = { + { ATF_POINTER, 3, offsetof(struct NR_PRU_RSCP_AdditionalMeasurementElement_r18, nr_DL_PRS_ResourceID_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceID-r18" + }, + { ATF_POINTER, 2, offsetof(struct NR_PRU_RSCP_AdditionalMeasurementElement_r18, nr_DL_PRS_ResourceSetID_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceSetID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceSetID-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_PRU_RSCP_AdditionalMeasurementElement_r18, nr_PRU_RSCP_AdditionalMeasurementsList_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_nr_PRU_RSCP_AdditionalMeasurementsList_r18_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_PRU_RSCP_AdditionalMeasurementsList_r18_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_PRU_RSCP_AdditionalMeasurementsList_r18_constraint_1 + }, + 0, 0, /* No default value */ + "nr-PRU-RSCP-AdditionalMeasurementsList-r18" + }, +}; +static const int asn_MAP_NR_PRU_RSCP_AdditionalMeasurementElement_r18_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_NR_PRU_RSCP_AdditionalMeasurementElement_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_PRU_RSCP_AdditionalMeasurementElement_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-DL-PRS-ResourceID-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-ResourceSetID-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-PRU-RSCP-AdditionalMeasurementsList-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_PRU_RSCP_AdditionalMeasurementElement_r18_specs_1 = { + sizeof(struct NR_PRU_RSCP_AdditionalMeasurementElement_r18), + offsetof(struct NR_PRU_RSCP_AdditionalMeasurementElement_r18, _asn_ctx), + asn_MAP_NR_PRU_RSCP_AdditionalMeasurementElement_r18_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_NR_PRU_RSCP_AdditionalMeasurementElement_r18_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_PRU_RSCP_AdditionalMeasurementElement_r18 = { + "NR-PRU-RSCP-AdditionalMeasurementElement-r18", + "NR-PRU-RSCP-AdditionalMeasurementElement-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_PRU_RSCP_AdditionalMeasurementElement_r18_tags_1, + sizeof(asn_DEF_NR_PRU_RSCP_AdditionalMeasurementElement_r18_tags_1) + /sizeof(asn_DEF_NR_PRU_RSCP_AdditionalMeasurementElement_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_PRU_RSCP_AdditionalMeasurementElement_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_PRU_RSCP_AdditionalMeasurementElement_r18_tags_1) + /sizeof(asn_DEF_NR_PRU_RSCP_AdditionalMeasurementElement_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_PRU_RSCP_AdditionalMeasurementElement_r18_1, + 3, /* Elements count */ + &asn_SPC_NR_PRU_RSCP_AdditionalMeasurementElement_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-PRU-RSCP-AdditionalMeasurementElement-r18.h b/asn.1/lpp_generated/NR-PRU-RSCP-AdditionalMeasurementElement-r18.h new file mode 100644 index 00000000..caaa0eb0 --- /dev/null +++ b/asn.1/lpp_generated/NR-PRU-RSCP-AdditionalMeasurementElement-r18.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_PRU_RSCP_AdditionalMeasurementElement_r18_H_ +#define _NR_PRU_RSCP_AdditionalMeasurementElement_r18_H_ + + +#include + +/* Including external dependencies */ +#include "NR-DL-PRS-ResourceID-r16.h" +#include "NR-DL-PRS-ResourceSetID-r16.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_RSCP_AdditionalMeasurements_r18; + +/* NR-PRU-RSCP-AdditionalMeasurementElement-r18 */ +typedef struct NR_PRU_RSCP_AdditionalMeasurementElement_r18 { + NR_DL_PRS_ResourceID_r16_t *nr_DL_PRS_ResourceID_r18; /* OPTIONAL */ + NR_DL_PRS_ResourceSetID_r16_t *nr_DL_PRS_ResourceSetID_r18; /* OPTIONAL */ + struct NR_PRU_RSCP_AdditionalMeasurementElement_r18__nr_PRU_RSCP_AdditionalMeasurementsList_r18 { + A_SEQUENCE_OF(struct NR_RSCP_AdditionalMeasurements_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_PRU_RSCP_AdditionalMeasurementsList_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_PRU_RSCP_AdditionalMeasurementElement_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_PRU_RSCP_AdditionalMeasurementElement_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_PRU_RSCP_AdditionalMeasurementElement_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_PRU_RSCP_AdditionalMeasurementElement_r18_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_PRU_RSCP_AdditionalMeasurementElement_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-PRU-RSCP-AdditionalMeasurements-r18.c b/asn.1/lpp_generated/NR-PRU-RSCP-AdditionalMeasurements-r18.c new file mode 100644 index 00000000..44bdeb76 --- /dev/null +++ b/asn.1/lpp_generated/NR-PRU-RSCP-AdditionalMeasurements-r18.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-PRU-RSCP-AdditionalMeasurements-r18.h" + +#include "NR-PRU-RSCP-AdditionalMeasurementElement-r18.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_PRU_RSCP_AdditionalMeasurements_r18_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_PRU_RSCP_AdditionalMeasurements_r18_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_PRU_RSCP_AdditionalMeasurementElement_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_PRU_RSCP_AdditionalMeasurements_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_PRU_RSCP_AdditionalMeasurements_r18_specs_1 = { + sizeof(struct NR_PRU_RSCP_AdditionalMeasurements_r18), + offsetof(struct NR_PRU_RSCP_AdditionalMeasurements_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_PRU_RSCP_AdditionalMeasurements_r18 = { + "NR-PRU-RSCP-AdditionalMeasurements-r18", + "NR-PRU-RSCP-AdditionalMeasurements-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_PRU_RSCP_AdditionalMeasurements_r18_tags_1, + sizeof(asn_DEF_NR_PRU_RSCP_AdditionalMeasurements_r18_tags_1) + /sizeof(asn_DEF_NR_PRU_RSCP_AdditionalMeasurements_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_PRU_RSCP_AdditionalMeasurements_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_PRU_RSCP_AdditionalMeasurements_r18_tags_1) + /sizeof(asn_DEF_NR_PRU_RSCP_AdditionalMeasurements_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_PRU_RSCP_AdditionalMeasurements_r18_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_PRU_RSCP_AdditionalMeasurements_r18_1, + 1, /* Single element */ + &asn_SPC_NR_PRU_RSCP_AdditionalMeasurements_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-PRU-RSCP-AdditionalMeasurements-r18.h b/asn.1/lpp_generated/NR-PRU-RSCP-AdditionalMeasurements-r18.h new file mode 100644 index 00000000..861b1f93 --- /dev/null +++ b/asn.1/lpp_generated/NR-PRU-RSCP-AdditionalMeasurements-r18.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_PRU_RSCP_AdditionalMeasurements_r18_H_ +#define _NR_PRU_RSCP_AdditionalMeasurements_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_PRU_RSCP_AdditionalMeasurementElement_r18; + +/* NR-PRU-RSCP-AdditionalMeasurements-r18 */ +typedef struct NR_PRU_RSCP_AdditionalMeasurements_r18 { + A_SEQUENCE_OF(struct NR_PRU_RSCP_AdditionalMeasurementElement_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_PRU_RSCP_AdditionalMeasurements_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_PRU_RSCP_AdditionalMeasurements_r18; +extern asn_SET_OF_specifics_t asn_SPC_NR_PRU_RSCP_AdditionalMeasurements_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_PRU_RSCP_AdditionalMeasurements_r18_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_PRU_RSCP_AdditionalMeasurements_r18_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_PRU_RSCP_AdditionalMeasurements_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-PRU-RSCP-MeasElement-r18.c b/asn.1/lpp_generated/NR-PRU-RSCP-MeasElement-r18.c new file mode 100644 index 00000000..f2daf775 --- /dev/null +++ b/asn.1/lpp_generated/NR-PRU-RSCP-MeasElement-r18.c @@ -0,0 +1,507 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-PRU-RSCP-MeasElement-r18.h" + +#include "NCGI-r15.h" +#include "NR-PhaseQuality-r18.h" +#include "NR-PRU-RSCP-AdditionalMeasurements-r18.h" +#include "NR-RSCP-AdditionalMeasurements-r18.h" +static int +memb_dl_PRS_ID_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_RSCP_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3599L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_PRU_RSCP_AddSampleMeasurements_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_los_nlos_Indicator_r18_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_PRU_RSCP_AddSampleMeasurements_r18_constr_14 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ID_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_RSCP_r18_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_PRU_RSCP_AddSampleMeasurements_r18_constr_14 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_los_nlos_Indicator_r18_9[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_PRU_RSCP_MeasElement_r18__nr_los_nlos_Indicator_r18, choice.perTRP), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_Indicator_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "perTRP" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_PRU_RSCP_MeasElement_r18__nr_los_nlos_Indicator_r18, choice.perResource), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LOS_NLOS_Indicator_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "perResource" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_los_nlos_Indicator_r18_tag2el_9[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* perTRP */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* perResource */ +}; +static asn_CHOICE_specifics_t asn_SPC_nr_los_nlos_Indicator_r18_specs_9 = { + sizeof(struct NR_PRU_RSCP_MeasElement_r18__nr_los_nlos_Indicator_r18), + offsetof(struct NR_PRU_RSCP_MeasElement_r18__nr_los_nlos_Indicator_r18, _asn_ctx), + offsetof(struct NR_PRU_RSCP_MeasElement_r18__nr_los_nlos_Indicator_r18, present), + sizeof(((struct NR_PRU_RSCP_MeasElement_r18__nr_los_nlos_Indicator_r18 *)0)->present), + asn_MAP_nr_los_nlos_Indicator_r18_tag2el_9, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_los_nlos_Indicator_r18_9 = { + "nr-los-nlos-Indicator-r18", + "nr-los-nlos-Indicator-r18", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_los_nlos_Indicator_r18_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nr_los_nlos_Indicator_r18_9, + 2, /* Elements count */ + &asn_SPC_nr_los_nlos_Indicator_r18_specs_9 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_PRU_RSCP_AddSampleMeasurements_r18_14[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_RSCP_AdditionalMeasurements_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_PRU_RSCP_AddSampleMeasurements_r18_tags_14[] = { + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_PRU_RSCP_AddSampleMeasurements_r18_specs_14 = { + sizeof(struct NR_PRU_RSCP_MeasElement_r18__nr_PRU_RSCP_AddSampleMeasurements_r18), + offsetof(struct NR_PRU_RSCP_MeasElement_r18__nr_PRU_RSCP_AddSampleMeasurements_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_PRU_RSCP_AddSampleMeasurements_r18_14 = { + "nr-PRU-RSCP-AddSampleMeasurements-r18", + "nr-PRU-RSCP-AddSampleMeasurements-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_PRU_RSCP_AddSampleMeasurements_r18_tags_14, + sizeof(asn_DEF_nr_PRU_RSCP_AddSampleMeasurements_r18_tags_14) + /sizeof(asn_DEF_nr_PRU_RSCP_AddSampleMeasurements_r18_tags_14[0]) - 1, /* 1 */ + asn_DEF_nr_PRU_RSCP_AddSampleMeasurements_r18_tags_14, /* Same as above */ + sizeof(asn_DEF_nr_PRU_RSCP_AddSampleMeasurements_r18_tags_14) + /sizeof(asn_DEF_nr_PRU_RSCP_AddSampleMeasurements_r18_tags_14[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_PRU_RSCP_AddSampleMeasurements_r18_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_PRU_RSCP_AddSampleMeasurements_r18_14, + 1, /* Single element */ + &asn_SPC_nr_PRU_RSCP_AddSampleMeasurements_r18_specs_14 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_PRU_RSCP_MeasElement_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_PRU_RSCP_MeasElement_r18, dl_PRS_ID_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ID_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ID_r18_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ID-r18" + }, + { ATF_POINTER, 5, offsetof(struct NR_PRU_RSCP_MeasElement_r18, nr_PhysCellID_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r18" + }, + { ATF_POINTER, 4, offsetof(struct NR_PRU_RSCP_MeasElement_r18, nr_CellGlobalID_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-CellGlobalID-r18" + }, + { ATF_POINTER, 3, offsetof(struct NR_PRU_RSCP_MeasElement_r18, nr_ARFCN_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ARFCN-r18" + }, + { ATF_POINTER, 2, offsetof(struct NR_PRU_RSCP_MeasElement_r18, nr_DL_PRS_ResourceID_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceID-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_PRU_RSCP_MeasElement_r18, nr_DL_PRS_ResourceSetID_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ResourceSetID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-ResourceSetID-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_PRU_RSCP_MeasElement_r18, nr_TimeStamp_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimeStamp_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-TimeStamp-r18" + }, + { ATF_POINTER, 5, offsetof(struct NR_PRU_RSCP_MeasElement_r18, nr_los_nlos_Indicator_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nr_los_nlos_Indicator_r18_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-los-nlos-Indicator-r18" + }, + { ATF_POINTER, 4, offsetof(struct NR_PRU_RSCP_MeasElement_r18, nr_RSCP_r18), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_RSCP_r18_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_RSCP_r18_constraint_1 + }, + 0, 0, /* No default value */ + "nr-RSCP-r18" + }, + { ATF_POINTER, 3, offsetof(struct NR_PRU_RSCP_MeasElement_r18, nr_PhaseQuality_r18), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhaseQuality_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhaseQuality-r18" + }, + { ATF_POINTER, 2, offsetof(struct NR_PRU_RSCP_MeasElement_r18, nr_PRU_RSCP_AddSampleMeasurements_r18), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + 0, + &asn_DEF_nr_PRU_RSCP_AddSampleMeasurements_r18_14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_PRU_RSCP_AddSampleMeasurements_r18_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_PRU_RSCP_AddSampleMeasurements_r18_constraint_1 + }, + 0, 0, /* No default value */ + "nr-PRU-RSCP-AddSampleMeasurements-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_PRU_RSCP_MeasElement_r18, nr_PRU_RSCP_AdditionalMeasurements_r18), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PRU_RSCP_AdditionalMeasurements_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PRU-RSCP-AdditionalMeasurements-r18" + }, +}; +static const int asn_MAP_NR_PRU_RSCP_MeasElement_r18_oms_1[] = { 1, 2, 3, 4, 5, 7, 8, 9, 10, 11 }; +static const ber_tlv_tag_t asn_DEF_NR_PRU_RSCP_MeasElement_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_PRU_RSCP_MeasElement_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ID-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PhysCellID-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-CellGlobalID-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-ARFCN-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-DL-PRS-ResourceID-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nr-DL-PRS-ResourceSetID-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* nr-TimeStamp-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* nr-los-nlos-Indicator-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* nr-RSCP-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* nr-PhaseQuality-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* nr-PRU-RSCP-AddSampleMeasurements-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* nr-PRU-RSCP-AdditionalMeasurements-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_PRU_RSCP_MeasElement_r18_specs_1 = { + sizeof(struct NR_PRU_RSCP_MeasElement_r18), + offsetof(struct NR_PRU_RSCP_MeasElement_r18, _asn_ctx), + asn_MAP_NR_PRU_RSCP_MeasElement_r18_tag2el_1, + 12, /* Count of tags in the map */ + asn_MAP_NR_PRU_RSCP_MeasElement_r18_oms_1, /* Optional members */ + 10, 0, /* Root/Additions */ + 12, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_PRU_RSCP_MeasElement_r18 = { + "NR-PRU-RSCP-MeasElement-r18", + "NR-PRU-RSCP-MeasElement-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_PRU_RSCP_MeasElement_r18_tags_1, + sizeof(asn_DEF_NR_PRU_RSCP_MeasElement_r18_tags_1) + /sizeof(asn_DEF_NR_PRU_RSCP_MeasElement_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_PRU_RSCP_MeasElement_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_PRU_RSCP_MeasElement_r18_tags_1) + /sizeof(asn_DEF_NR_PRU_RSCP_MeasElement_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_PRU_RSCP_MeasElement_r18_1, + 12, /* Elements count */ + &asn_SPC_NR_PRU_RSCP_MeasElement_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-PRU-RSCP-MeasElement-r18.h b/asn.1/lpp_generated/NR-PRU-RSCP-MeasElement-r18.h new file mode 100644 index 00000000..ca09b4f0 --- /dev/null +++ b/asn.1/lpp_generated/NR-PRU-RSCP-MeasElement-r18.h @@ -0,0 +1,91 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_PRU_RSCP_MeasElement_r18_H_ +#define _NR_PRU_RSCP_MeasElement_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include "NR-PhysCellID-r16.h" +#include "ARFCN-ValueNR-r15.h" +#include "NR-DL-PRS-ResourceID-r16.h" +#include "NR-DL-PRS-ResourceSetID-r16.h" +#include "NR-TimeStamp-r16.h" +#include "LOS-NLOS-Indicator-r17.h" +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_PRU_RSCP_MeasElement_r18__nr_los_nlos_Indicator_r18_PR { + NR_PRU_RSCP_MeasElement_r18__nr_los_nlos_Indicator_r18_PR_NOTHING, /* No components present */ + NR_PRU_RSCP_MeasElement_r18__nr_los_nlos_Indicator_r18_PR_perTRP, + NR_PRU_RSCP_MeasElement_r18__nr_los_nlos_Indicator_r18_PR_perResource +} NR_PRU_RSCP_MeasElement_r18__nr_los_nlos_Indicator_r18_PR; + +/* Forward declarations */ +struct NCGI_r15; +struct NR_PhaseQuality_r18; +struct NR_PRU_RSCP_AdditionalMeasurements_r18; +struct NR_RSCP_AdditionalMeasurements_r18; + +/* NR-PRU-RSCP-MeasElement-r18 */ +typedef struct NR_PRU_RSCP_MeasElement_r18 { + long dl_PRS_ID_r18; + NR_PhysCellID_r16_t *nr_PhysCellID_r18; /* OPTIONAL */ + struct NCGI_r15 *nr_CellGlobalID_r18; /* OPTIONAL */ + ARFCN_ValueNR_r15_t *nr_ARFCN_r18; /* OPTIONAL */ + NR_DL_PRS_ResourceID_r16_t *nr_DL_PRS_ResourceID_r18; /* OPTIONAL */ + NR_DL_PRS_ResourceSetID_r16_t *nr_DL_PRS_ResourceSetID_r18; /* OPTIONAL */ + NR_TimeStamp_r16_t nr_TimeStamp_r18; + struct NR_PRU_RSCP_MeasElement_r18__nr_los_nlos_Indicator_r18 { + NR_PRU_RSCP_MeasElement_r18__nr_los_nlos_Indicator_r18_PR present; + union NR_PRU_RSCP_MeasElement_r18__nr_los_nlos_Indicator_r18_u { + LOS_NLOS_Indicator_r17_t perTRP; + LOS_NLOS_Indicator_r17_t perResource; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_los_nlos_Indicator_r18; + long *nr_RSCP_r18; /* OPTIONAL */ + struct NR_PhaseQuality_r18 *nr_PhaseQuality_r18; /* OPTIONAL */ + struct NR_PRU_RSCP_MeasElement_r18__nr_PRU_RSCP_AddSampleMeasurements_r18 { + A_SEQUENCE_OF(struct NR_RSCP_AdditionalMeasurements_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_PRU_RSCP_AddSampleMeasurements_r18; + struct NR_PRU_RSCP_AdditionalMeasurements_r18 *nr_PRU_RSCP_AdditionalMeasurements_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_PRU_RSCP_MeasElement_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_PRU_RSCP_MeasElement_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_PRU_RSCP_MeasElement_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_PRU_RSCP_MeasElement_r18_1[12]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_PRU_RSCP_MeasElement_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-PRU-RSCP-MeasurementInformation-r18.c b/asn.1/lpp_generated/NR-PRU-RSCP-MeasurementInformation-r18.c new file mode 100644 index 00000000..27309ad6 --- /dev/null +++ b/asn.1/lpp_generated/NR-PRU-RSCP-MeasurementInformation-r18.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-PRU-RSCP-MeasurementInformation-r18.h" + +#include "NR-PRU-RSCP-MeasElement-r18.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_PRU_RSCP_MeasurementInformation_r18_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (SIZE(1..256)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_PRU_RSCP_MeasurementInformation_r18_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_PRU_RSCP_MeasElement_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_PRU_RSCP_MeasurementInformation_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_PRU_RSCP_MeasurementInformation_r18_specs_1 = { + sizeof(struct NR_PRU_RSCP_MeasurementInformation_r18), + offsetof(struct NR_PRU_RSCP_MeasurementInformation_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_PRU_RSCP_MeasurementInformation_r18 = { + "NR-PRU-RSCP-MeasurementInformation-r18", + "NR-PRU-RSCP-MeasurementInformation-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_PRU_RSCP_MeasurementInformation_r18_tags_1, + sizeof(asn_DEF_NR_PRU_RSCP_MeasurementInformation_r18_tags_1) + /sizeof(asn_DEF_NR_PRU_RSCP_MeasurementInformation_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_PRU_RSCP_MeasurementInformation_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_PRU_RSCP_MeasurementInformation_r18_tags_1) + /sizeof(asn_DEF_NR_PRU_RSCP_MeasurementInformation_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_PRU_RSCP_MeasurementInformation_r18_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_PRU_RSCP_MeasurementInformation_r18_1, + 1, /* Single element */ + &asn_SPC_NR_PRU_RSCP_MeasurementInformation_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-PRU-RSCP-MeasurementInformation-r18.h b/asn.1/lpp_generated/NR-PRU-RSCP-MeasurementInformation-r18.h new file mode 100644 index 00000000..0c72da36 --- /dev/null +++ b/asn.1/lpp_generated/NR-PRU-RSCP-MeasurementInformation-r18.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_PRU_RSCP_MeasurementInformation_r18_H_ +#define _NR_PRU_RSCP_MeasurementInformation_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_PRU_RSCP_MeasElement_r18; + +/* NR-PRU-RSCP-MeasurementInformation-r18 */ +typedef struct NR_PRU_RSCP_MeasurementInformation_r18 { + A_SEQUENCE_OF(struct NR_PRU_RSCP_MeasElement_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_PRU_RSCP_MeasurementInformation_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_PRU_RSCP_MeasurementInformation_r18; +extern asn_SET_OF_specifics_t asn_SPC_NR_PRU_RSCP_MeasurementInformation_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_PRU_RSCP_MeasurementInformation_r18_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_PRU_RSCP_MeasurementInformation_r18_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_PRU_RSCP_MeasurementInformation_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-PeriodicAssistData-r18.c b/asn.1/lpp_generated/NR-PeriodicAssistData-r18.c new file mode 100644 index 00000000..6a0b572a --- /dev/null +++ b/asn.1/lpp_generated/NR-PeriodicAssistData-r18.c @@ -0,0 +1,69 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-PeriodicAssistData-r18.h" + +#include "NR-PeriodicControlParam-r18.h" +asn_TYPE_member_t asn_MBR_NR_PeriodicAssistData_r18_1[] = { + { ATF_POINTER, 1, offsetof(struct NR_PeriodicAssistData_r18, nr_PeriodicPRU_DL_Info_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PeriodicControlParam_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PeriodicPRU-DL-Info-r18" + }, +}; +static const int asn_MAP_NR_PeriodicAssistData_r18_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_NR_PeriodicAssistData_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_PeriodicAssistData_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-PeriodicPRU-DL-Info-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_PeriodicAssistData_r18_specs_1 = { + sizeof(struct NR_PeriodicAssistData_r18), + offsetof(struct NR_PeriodicAssistData_r18, _asn_ctx), + asn_MAP_NR_PeriodicAssistData_r18_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_NR_PeriodicAssistData_r18_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_PeriodicAssistData_r18 = { + "NR-PeriodicAssistData-r18", + "NR-PeriodicAssistData-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_PeriodicAssistData_r18_tags_1, + sizeof(asn_DEF_NR_PeriodicAssistData_r18_tags_1) + /sizeof(asn_DEF_NR_PeriodicAssistData_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_PeriodicAssistData_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_PeriodicAssistData_r18_tags_1) + /sizeof(asn_DEF_NR_PeriodicAssistData_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_PeriodicAssistData_r18_1, + 1, /* Elements count */ + &asn_SPC_NR_PeriodicAssistData_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-PeriodicAssistData-r18.h b/asn.1/lpp_generated/NR-PeriodicAssistData-r18.h new file mode 100644 index 00000000..160ff2b9 --- /dev/null +++ b/asn.1/lpp_generated/NR-PeriodicAssistData-r18.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_PeriodicAssistData_r18_H_ +#define _NR_PeriodicAssistData_r18_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_PeriodicControlParam_r18; + +/* NR-PeriodicAssistData-r18 */ +typedef struct NR_PeriodicAssistData_r18 { + struct NR_PeriodicControlParam_r18 *nr_PeriodicPRU_DL_Info_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_PeriodicAssistData_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_PeriodicAssistData_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_PeriodicAssistData_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_PeriodicAssistData_r18_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_PeriodicAssistData_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-PeriodicAssistDataReq-r18.c b/asn.1/lpp_generated/NR-PeriodicAssistDataReq-r18.c new file mode 100644 index 00000000..3b15558e --- /dev/null +++ b/asn.1/lpp_generated/NR-PeriodicAssistDataReq-r18.c @@ -0,0 +1,69 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-PeriodicAssistDataReq-r18.h" + +#include "NR-PeriodicControlParam-r18.h" +asn_TYPE_member_t asn_MBR_NR_PeriodicAssistDataReq_r18_1[] = { + { ATF_POINTER, 1, offsetof(struct NR_PeriodicAssistDataReq_r18, nr_PeriodicPRU_DL_InfoReq_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PeriodicControlParam_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PeriodicPRU-DL-InfoReq-r18" + }, +}; +static const int asn_MAP_NR_PeriodicAssistDataReq_r18_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_NR_PeriodicAssistDataReq_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_PeriodicAssistDataReq_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-PeriodicPRU-DL-InfoReq-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_PeriodicAssistDataReq_r18_specs_1 = { + sizeof(struct NR_PeriodicAssistDataReq_r18), + offsetof(struct NR_PeriodicAssistDataReq_r18, _asn_ctx), + asn_MAP_NR_PeriodicAssistDataReq_r18_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_NR_PeriodicAssistDataReq_r18_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_PeriodicAssistDataReq_r18 = { + "NR-PeriodicAssistDataReq-r18", + "NR-PeriodicAssistDataReq-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_PeriodicAssistDataReq_r18_tags_1, + sizeof(asn_DEF_NR_PeriodicAssistDataReq_r18_tags_1) + /sizeof(asn_DEF_NR_PeriodicAssistDataReq_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_PeriodicAssistDataReq_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_PeriodicAssistDataReq_r18_tags_1) + /sizeof(asn_DEF_NR_PeriodicAssistDataReq_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_PeriodicAssistDataReq_r18_1, + 1, /* Elements count */ + &asn_SPC_NR_PeriodicAssistDataReq_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-PeriodicAssistDataReq-r18.h b/asn.1/lpp_generated/NR-PeriodicAssistDataReq-r18.h new file mode 100644 index 00000000..7533dfa9 --- /dev/null +++ b/asn.1/lpp_generated/NR-PeriodicAssistDataReq-r18.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_PeriodicAssistDataReq_r18_H_ +#define _NR_PeriodicAssistDataReq_r18_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_PeriodicControlParam_r18; + +/* NR-PeriodicAssistDataReq-r18 */ +typedef struct NR_PeriodicAssistDataReq_r18 { + struct NR_PeriodicControlParam_r18 *nr_PeriodicPRU_DL_InfoReq_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_PeriodicAssistDataReq_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_PeriodicAssistDataReq_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_PeriodicAssistDataReq_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_PeriodicAssistDataReq_r18_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_PeriodicAssistDataReq_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-PeriodicControlParam-r18.c b/asn.1/lpp_generated/NR-PeriodicControlParam-r18.c new file mode 100644 index 00000000..04851934 --- /dev/null +++ b/asn.1/lpp_generated/NR-PeriodicControlParam-r18.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-PeriodicControlParam-r18.h" + +static int +memb_deliveryAmount_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 32L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_deliveryInterval_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 4L && value <= 81920L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_deliveryAmount_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (1..32) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_deliveryInterval_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 4, 81920 } /* (4..81920) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_PeriodicControlParam_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_PeriodicControlParam_r18, deliveryAmount_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_deliveryAmount_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_deliveryAmount_r18_constraint_1 + }, + 0, 0, /* No default value */ + "deliveryAmount-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_PeriodicControlParam_r18, deliveryInterval_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_deliveryInterval_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_deliveryInterval_r18_constraint_1 + }, + 0, 0, /* No default value */ + "deliveryInterval-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_PeriodicControlParam_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_PeriodicControlParam_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* deliveryAmount-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* deliveryInterval-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_PeriodicControlParam_r18_specs_1 = { + sizeof(struct NR_PeriodicControlParam_r18), + offsetof(struct NR_PeriodicControlParam_r18, _asn_ctx), + asn_MAP_NR_PeriodicControlParam_r18_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_PeriodicControlParam_r18 = { + "NR-PeriodicControlParam-r18", + "NR-PeriodicControlParam-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_PeriodicControlParam_r18_tags_1, + sizeof(asn_DEF_NR_PeriodicControlParam_r18_tags_1) + /sizeof(asn_DEF_NR_PeriodicControlParam_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_PeriodicControlParam_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_PeriodicControlParam_r18_tags_1) + /sizeof(asn_DEF_NR_PeriodicControlParam_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_PeriodicControlParam_r18_1, + 2, /* Elements count */ + &asn_SPC_NR_PeriodicControlParam_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-PeriodicControlParam-r18.h b/asn.1/lpp_generated/NR-PeriodicControlParam-r18.h new file mode 100644 index 00000000..3e271b9c --- /dev/null +++ b/asn.1/lpp_generated/NR-PeriodicControlParam-r18.h @@ -0,0 +1,45 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_PeriodicControlParam_r18_H_ +#define _NR_PeriodicControlParam_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-PeriodicControlParam-r18 */ +typedef struct NR_PeriodicControlParam_r18 { + long deliveryAmount_r18; + long deliveryInterval_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_PeriodicControlParam_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_PeriodicControlParam_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_PeriodicControlParam_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_PeriodicControlParam_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_PeriodicControlParam_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-PhaseQuality-r18.c b/asn.1/lpp_generated/NR-PhaseQuality-r18.c new file mode 100644 index 00000000..a41a64a8 --- /dev/null +++ b/asn.1/lpp_generated/NR-PhaseQuality-r18.c @@ -0,0 +1,174 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-PhaseQuality-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_phaseQualityIndex_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 179L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_phaseQualityResolution_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_phaseQualityIndex_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 179 } /* (0..179) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_phaseQualityResolution_r18_value2enum_3[] = { + { 0, 5, "mdot1" }, + { 1, 2, "m1" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_phaseQualityResolution_r18_enum2value_3[] = { + 1, /* m1(1) */ + 0 /* mdot1(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_phaseQualityResolution_r18_specs_3 = { + asn_MAP_phaseQualityResolution_r18_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_phaseQualityResolution_r18_enum2value_3, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_phaseQualityResolution_r18_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_phaseQualityResolution_r18_3 = { + "phaseQualityResolution-r18", + "phaseQualityResolution-r18", + &asn_OP_NativeEnumerated, + asn_DEF_phaseQualityResolution_r18_tags_3, + sizeof(asn_DEF_phaseQualityResolution_r18_tags_3) + /sizeof(asn_DEF_phaseQualityResolution_r18_tags_3[0]) - 1, /* 1 */ + asn_DEF_phaseQualityResolution_r18_tags_3, /* Same as above */ + sizeof(asn_DEF_phaseQualityResolution_r18_tags_3) + /sizeof(asn_DEF_phaseQualityResolution_r18_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_phaseQualityResolution_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_phaseQualityResolution_r18_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_PhaseQuality_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_PhaseQuality_r18, phaseQualityIndex_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_phaseQualityIndex_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_phaseQualityIndex_r18_constraint_1 + }, + 0, 0, /* No default value */ + "phaseQualityIndex-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_PhaseQuality_r18, phaseQualityResolution_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_phaseQualityResolution_r18_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "phaseQualityResolution-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_PhaseQuality_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_PhaseQuality_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* phaseQualityIndex-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* phaseQualityResolution-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_PhaseQuality_r18_specs_1 = { + sizeof(struct NR_PhaseQuality_r18), + offsetof(struct NR_PhaseQuality_r18, _asn_ctx), + asn_MAP_NR_PhaseQuality_r18_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_PhaseQuality_r18 = { + "NR-PhaseQuality-r18", + "NR-PhaseQuality-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_PhaseQuality_r18_tags_1, + sizeof(asn_DEF_NR_PhaseQuality_r18_tags_1) + /sizeof(asn_DEF_NR_PhaseQuality_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_PhaseQuality_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_PhaseQuality_r18_tags_1) + /sizeof(asn_DEF_NR_PhaseQuality_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_PhaseQuality_r18_1, + 2, /* Elements count */ + &asn_SPC_NR_PhaseQuality_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-PhaseQuality-r18.h b/asn.1/lpp_generated/NR-PhaseQuality-r18.h new file mode 100644 index 00000000..8dc0d111 --- /dev/null +++ b/asn.1/lpp_generated/NR-PhaseQuality-r18.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_PhaseQuality_r18_H_ +#define _NR_PhaseQuality_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_PhaseQuality_r18__phaseQualityResolution_r18 { + NR_PhaseQuality_r18__phaseQualityResolution_r18_mdot1 = 0, + NR_PhaseQuality_r18__phaseQualityResolution_r18_m1 = 1 + /* + * Enumeration is extensible + */ +} e_NR_PhaseQuality_r18__phaseQualityResolution_r18; + +/* NR-PhaseQuality-r18 */ +typedef struct NR_PhaseQuality_r18 { + long phaseQualityIndex_r18; + long phaseQualityResolution_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_PhaseQuality_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_phaseQualityResolution_r18_3; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_PhaseQuality_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_PhaseQuality_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_PhaseQuality_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_PhaseQuality_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-PhysCellID-r16.c b/asn.1/lpp_generated/NR-PhysCellID-r16.c new file mode 100644 index 00000000..257f6afc --- /dev/null +++ b/asn.1/lpp_generated/NR-PhysCellID-r16.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-PhysCellID-r16.h" + +int +NR_PhysCellID_r16_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1007L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_PhysCellID_r16_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1007 } /* (0..1007) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_NR_PhysCellID_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_NR_PhysCellID_r16 = { + "NR-PhysCellID-r16", + "NR-PhysCellID-r16", + &asn_OP_NativeInteger, + asn_DEF_NR_PhysCellID_r16_tags_1, + sizeof(asn_DEF_NR_PhysCellID_r16_tags_1) + /sizeof(asn_DEF_NR_PhysCellID_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_PhysCellID_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_PhysCellID_r16_tags_1) + /sizeof(asn_DEF_NR_PhysCellID_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_PhysCellID_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NR_PhysCellID_r16_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/lpp_generated/NR-PhysCellID-r16.h b/asn.1/lpp_generated/NR-PhysCellID-r16.h new file mode 100644 index 00000000..0a60e6bc --- /dev/null +++ b/asn.1/lpp_generated/NR-PhysCellID-r16.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_PhysCellID_r16_H_ +#define _NR_PhysCellID_r16_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-PhysCellID-r16 */ +typedef long NR_PhysCellID_r16_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_NR_PhysCellID_r16_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_NR_PhysCellID_r16; +asn_struct_free_f NR_PhysCellID_r16_free; +asn_constr_check_f NR_PhysCellID_r16_constraint; +xer_type_decoder_f NR_PhysCellID_r16_decode_xer; +xer_type_encoder_f NR_PhysCellID_r16_encode_xer; +jer_type_encoder_f NR_PhysCellID_r16_encode_jer; +per_type_decoder_f NR_PhysCellID_r16_decode_uper; +per_type_encoder_f NR_PhysCellID_r16_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_PhysCellID_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-PositionCalculationAssistance-r16.c b/asn.1/lpp_generated/NR-PositionCalculationAssistance-r16.c new file mode 100644 index 00000000..2c8f6a14 --- /dev/null +++ b/asn.1/lpp_generated/NR-PositionCalculationAssistance-r16.c @@ -0,0 +1,438 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-PositionCalculationAssistance-r16.h" + +#include "NR-TRP-LocationInfo-r16.h" +#include "NR-DL-PRS-BeamInfo-r16.h" +#include "NR-RTD-Info-r16.h" +#include "NR-TRP-BeamAntennaInfo-r17.h" +#include "NR-DL-PRS-ExpectedLOS-NLOS-Assistance-r17.h" +#include "NR-DL-PRS-TRP-TEG-Info-r17.h" +#include "NR-IntegrityServiceParameters-r18.h" +#include "NR-IntegrityServiceAlert-r18.h" +#include "NR-IntegrityRiskParameters-r18.h" +#include "NR-IntegrityParametersTRP-LocationInfo-r18.h" +#include "NR-IntegrityParametersDL-PRS-BeamInfo-r18.h" +#include "NR-IntegrityParametersRTD-Info-r18.h" +#include "NR-IntegrityParametersTRP-BeamAntennaInfo-r18.h" +#include "NR-PRU-DL-Info-r18.h" +static asn_TYPE_member_t asn_MBR_ext1_6[] = { + { ATF_POINTER, 3, offsetof(struct NR_PositionCalculationAssistance_r16__ext1, nr_TRP_BeamAntennaInfo_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TRP_BeamAntennaInfo_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-TRP-BeamAntennaInfo-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_PositionCalculationAssistance_r16__ext1, nr_DL_PRS_Expected_LOS_NLOS_Assistance_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-Expected-LOS-NLOS-Assistance-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_PositionCalculationAssistance_r16__ext1, nr_DL_PRS_TRP_TEG_Info_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_TRP_TEG_Info_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-TRP-TEG-Info-r17" + }, +}; +static const int asn_MAP_ext1_oms_6[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-TRP-BeamAntennaInfo-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-Expected-LOS-NLOS-Assistance-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-DL-PRS-TRP-TEG-Info-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = { + sizeof(struct NR_PositionCalculationAssistance_r16__ext1), + offsetof(struct NR_PositionCalculationAssistance_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_6, + 3, /* Count of tags in the map */ + asn_MAP_ext1_oms_6, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_6 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_6, + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_6, /* Same as above */ + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_6, + 3, /* Elements count */ + &asn_SPC_ext1_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_10[] = { + { ATF_POINTER, 8, offsetof(struct NR_PositionCalculationAssistance_r16__ext2, nr_IntegrityServiceParameters_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_IntegrityServiceParameters_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-IntegrityServiceParameters-r18" + }, + { ATF_POINTER, 7, offsetof(struct NR_PositionCalculationAssistance_r16__ext2, nr_IntegrityServiceAlert_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_IntegrityServiceAlert_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-IntegrityServiceAlert-r18" + }, + { ATF_POINTER, 6, offsetof(struct NR_PositionCalculationAssistance_r16__ext2, nr_IntegrityRiskParameters_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_IntegrityRiskParameters_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-IntegrityRiskParameters-r18" + }, + { ATF_POINTER, 5, offsetof(struct NR_PositionCalculationAssistance_r16__ext2, nr_IntegrityParametersTRP_LocationInfo_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_IntegrityParametersTRP_LocationInfo_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-IntegrityParametersTRP-LocationInfo-r18" + }, + { ATF_POINTER, 4, offsetof(struct NR_PositionCalculationAssistance_r16__ext2, nr_IntegrityParametersDL_PRS_BeamInfo_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_IntegrityParametersDL_PRS_BeamInfo_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-IntegrityParametersDL-PRS-BeamInfo-r18" + }, + { ATF_POINTER, 3, offsetof(struct NR_PositionCalculationAssistance_r16__ext2, nr_IntegrityParametersRTD_Info_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_IntegrityParametersRTD_Info_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-IntegrityParametersRTD-Info-r18" + }, + { ATF_POINTER, 2, offsetof(struct NR_PositionCalculationAssistance_r16__ext2, nr_IntegrityParametersTRP_BeamAntennaInfo_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_IntegrityParametersTRP_BeamAntennaInfo_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-IntegrityParametersTRP-BeamAntennaInfo-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_PositionCalculationAssistance_r16__ext2, nr_PRU_DL_Info_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PRU_DL_Info_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PRU-DL-Info-r18" + }, +}; +static const int asn_MAP_ext2_oms_10[] = { 0, 1, 2, 3, 4, 5, 6, 7 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_10[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-IntegrityServiceParameters-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-IntegrityServiceAlert-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-IntegrityRiskParameters-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-IntegrityParametersTRP-LocationInfo-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-IntegrityParametersDL-PRS-BeamInfo-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nr-IntegrityParametersRTD-Info-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* nr-IntegrityParametersTRP-BeamAntennaInfo-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* nr-PRU-DL-Info-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_10 = { + sizeof(struct NR_PositionCalculationAssistance_r16__ext2), + offsetof(struct NR_PositionCalculationAssistance_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_10, + 8, /* Count of tags in the map */ + asn_MAP_ext2_oms_10, /* Optional members */ + 8, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_10 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_10, + sizeof(asn_DEF_ext2_tags_10) + /sizeof(asn_DEF_ext2_tags_10[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_10, /* Same as above */ + sizeof(asn_DEF_ext2_tags_10) + /sizeof(asn_DEF_ext2_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_10, + 8, /* Elements count */ + &asn_SPC_ext2_specs_10 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_PositionCalculationAssistance_r16_1[] = { + { ATF_POINTER, 5, offsetof(struct NR_PositionCalculationAssistance_r16, nr_TRP_LocationInfo_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TRP_LocationInfo_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-TRP-LocationInfo-r16" + }, + { ATF_POINTER, 4, offsetof(struct NR_PositionCalculationAssistance_r16, nr_DL_PRS_BeamInfo_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_BeamInfo_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-BeamInfo-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_PositionCalculationAssistance_r16, nr_RTD_Info_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_RTD_Info_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-RTD-Info-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_PositionCalculationAssistance_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext1_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct NR_PositionCalculationAssistance_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext2_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_NR_PositionCalculationAssistance_r16_oms_1[] = { 0, 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_NR_PositionCalculationAssistance_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_PositionCalculationAssistance_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-TRP-LocationInfo-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-BeamInfo-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-RTD-Info-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_PositionCalculationAssistance_r16_specs_1 = { + sizeof(struct NR_PositionCalculationAssistance_r16), + offsetof(struct NR_PositionCalculationAssistance_r16, _asn_ctx), + asn_MAP_NR_PositionCalculationAssistance_r16_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_NR_PositionCalculationAssistance_r16_oms_1, /* Optional members */ + 3, 2, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_PositionCalculationAssistance_r16 = { + "NR-PositionCalculationAssistance-r16", + "NR-PositionCalculationAssistance-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_PositionCalculationAssistance_r16_tags_1, + sizeof(asn_DEF_NR_PositionCalculationAssistance_r16_tags_1) + /sizeof(asn_DEF_NR_PositionCalculationAssistance_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_PositionCalculationAssistance_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_PositionCalculationAssistance_r16_tags_1) + /sizeof(asn_DEF_NR_PositionCalculationAssistance_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_PositionCalculationAssistance_r16_1, + 5, /* Elements count */ + &asn_SPC_NR_PositionCalculationAssistance_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-PositionCalculationAssistance-r16.h b/asn.1/lpp_generated/NR-PositionCalculationAssistance-r16.h new file mode 100644 index 00000000..18541629 --- /dev/null +++ b/asn.1/lpp_generated/NR-PositionCalculationAssistance-r16.h @@ -0,0 +1,82 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_PositionCalculationAssistance_r16_H_ +#define _NR_PositionCalculationAssistance_r16_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_TRP_LocationInfo_r16; +struct NR_DL_PRS_BeamInfo_r16; +struct NR_RTD_Info_r16; +struct NR_TRP_BeamAntennaInfo_r17; +struct NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17; +struct NR_DL_PRS_TRP_TEG_Info_r17; +struct NR_IntegrityServiceParameters_r18; +struct NR_IntegrityServiceAlert_r18; +struct NR_IntegrityRiskParameters_r18; +struct NR_IntegrityParametersTRP_LocationInfo_r18; +struct NR_IntegrityParametersDL_PRS_BeamInfo_r18; +struct NR_IntegrityParametersRTD_Info_r18; +struct NR_IntegrityParametersTRP_BeamAntennaInfo_r18; +struct NR_PRU_DL_Info_r18; + +/* NR-PositionCalculationAssistance-r16 */ +typedef struct NR_PositionCalculationAssistance_r16 { + struct NR_TRP_LocationInfo_r16 *nr_TRP_LocationInfo_r16; /* OPTIONAL */ + struct NR_DL_PRS_BeamInfo_r16 *nr_DL_PRS_BeamInfo_r16; /* OPTIONAL */ + struct NR_RTD_Info_r16 *nr_RTD_Info_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_PositionCalculationAssistance_r16__ext1 { + struct NR_TRP_BeamAntennaInfo_r17 *nr_TRP_BeamAntennaInfo_r17; /* OPTIONAL */ + struct NR_DL_PRS_ExpectedLOS_NLOS_Assistance_r17 *nr_DL_PRS_Expected_LOS_NLOS_Assistance_r17; /* OPTIONAL */ + struct NR_DL_PRS_TRP_TEG_Info_r17 *nr_DL_PRS_TRP_TEG_Info_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct NR_PositionCalculationAssistance_r16__ext2 { + struct NR_IntegrityServiceParameters_r18 *nr_IntegrityServiceParameters_r18; /* OPTIONAL */ + struct NR_IntegrityServiceAlert_r18 *nr_IntegrityServiceAlert_r18; /* OPTIONAL */ + struct NR_IntegrityRiskParameters_r18 *nr_IntegrityRiskParameters_r18; /* OPTIONAL */ + struct NR_IntegrityParametersTRP_LocationInfo_r18 *nr_IntegrityParametersTRP_LocationInfo_r18; /* OPTIONAL */ + struct NR_IntegrityParametersDL_PRS_BeamInfo_r18 *nr_IntegrityParametersDL_PRS_BeamInfo_r18; /* OPTIONAL */ + struct NR_IntegrityParametersRTD_Info_r18 *nr_IntegrityParametersRTD_Info_r18; /* OPTIONAL */ + struct NR_IntegrityParametersTRP_BeamAntennaInfo_r18 *nr_IntegrityParametersTRP_BeamAntennaInfo_r18; /* OPTIONAL */ + struct NR_PRU_DL_Info_r18 *nr_PRU_DL_Info_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_PositionCalculationAssistance_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_PositionCalculationAssistance_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_PositionCalculationAssistance_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_PositionCalculationAssistance_r16_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_PositionCalculationAssistance_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-RSCP-AdditionalMeasurements-r18.c b/asn.1/lpp_generated/NR-RSCP-AdditionalMeasurements-r18.c new file mode 100644 index 00000000..3835a317 --- /dev/null +++ b/asn.1/lpp_generated/NR-RSCP-AdditionalMeasurements-r18.c @@ -0,0 +1,138 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-RSCP-AdditionalMeasurements-r18.h" + +#include "NR-PhaseQuality-r18.h" +#include "NR-TimeStamp-r16.h" +static int +memb_nr_RSCP_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3599L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_RSCP_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_RSCP_AdditionalMeasurements_r18_1[] = { + { ATF_POINTER, 3, offsetof(struct NR_RSCP_AdditionalMeasurements_r18, nr_RSCP_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_RSCP_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_RSCP_r18_constraint_1 + }, + 0, 0, /* No default value */ + "nr-RSCP-r18" + }, + { ATF_POINTER, 2, offsetof(struct NR_RSCP_AdditionalMeasurements_r18, nr_PhaseQuality_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhaseQuality_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhaseQuality-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_RSCP_AdditionalMeasurements_r18, nr_TimeStamp_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimeStamp_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-TimeStamp-r18" + }, +}; +static const int asn_MAP_NR_RSCP_AdditionalMeasurements_r18_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_NR_RSCP_AdditionalMeasurements_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_RSCP_AdditionalMeasurements_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-RSCP-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PhaseQuality-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-TimeStamp-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_RSCP_AdditionalMeasurements_r18_specs_1 = { + sizeof(struct NR_RSCP_AdditionalMeasurements_r18), + offsetof(struct NR_RSCP_AdditionalMeasurements_r18, _asn_ctx), + asn_MAP_NR_RSCP_AdditionalMeasurements_r18_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_NR_RSCP_AdditionalMeasurements_r18_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_RSCP_AdditionalMeasurements_r18 = { + "NR-RSCP-AdditionalMeasurements-r18", + "NR-RSCP-AdditionalMeasurements-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_RSCP_AdditionalMeasurements_r18_tags_1, + sizeof(asn_DEF_NR_RSCP_AdditionalMeasurements_r18_tags_1) + /sizeof(asn_DEF_NR_RSCP_AdditionalMeasurements_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_RSCP_AdditionalMeasurements_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_RSCP_AdditionalMeasurements_r18_tags_1) + /sizeof(asn_DEF_NR_RSCP_AdditionalMeasurements_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_RSCP_AdditionalMeasurements_r18_1, + 3, /* Elements count */ + &asn_SPC_NR_RSCP_AdditionalMeasurements_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-RSCP-AdditionalMeasurements-r18.h b/asn.1/lpp_generated/NR-RSCP-AdditionalMeasurements-r18.h new file mode 100644 index 00000000..75149268 --- /dev/null +++ b/asn.1/lpp_generated/NR-RSCP-AdditionalMeasurements-r18.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_RSCP_AdditionalMeasurements_r18_H_ +#define _NR_RSCP_AdditionalMeasurements_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_PhaseQuality_r18; +struct NR_TimeStamp_r16; + +/* NR-RSCP-AdditionalMeasurements-r18 */ +typedef struct NR_RSCP_AdditionalMeasurements_r18 { + long *nr_RSCP_r18; /* OPTIONAL */ + struct NR_PhaseQuality_r18 *nr_PhaseQuality_r18; /* OPTIONAL */ + struct NR_TimeStamp_r16 *nr_TimeStamp_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_RSCP_AdditionalMeasurements_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_RSCP_AdditionalMeasurements_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_RSCP_AdditionalMeasurements_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_RSCP_AdditionalMeasurements_r18_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_RSCP_AdditionalMeasurements_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-RSCPD-AdditionalMeasurementSamplesElement-r18.c b/asn.1/lpp_generated/NR-RSCPD-AdditionalMeasurementSamplesElement-r18.c new file mode 100644 index 00000000..03ca61be --- /dev/null +++ b/asn.1/lpp_generated/NR-RSCPD-AdditionalMeasurementSamplesElement-r18.c @@ -0,0 +1,138 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-RSCPD-AdditionalMeasurementSamplesElement-r18.h" + +#include "NR-PhaseQuality-r18.h" +#include "NR-TimeStamp-r16.h" +static int +memb_nr_RSCPD_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3599L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_RSCPD_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 3599 } /* (0..3599) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_RSCPD_AdditionalMeasurementSamplesElement_r18_1[] = { + { ATF_POINTER, 3, offsetof(struct NR_RSCPD_AdditionalMeasurementSamplesElement_r18, nr_RSCPD_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_RSCPD_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_RSCPD_r18_constraint_1 + }, + 0, 0, /* No default value */ + "nr-RSCPD-r18" + }, + { ATF_POINTER, 2, offsetof(struct NR_RSCPD_AdditionalMeasurementSamplesElement_r18, nr_PhaseQuality_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhaseQuality_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhaseQuality-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_RSCPD_AdditionalMeasurementSamplesElement_r18, nr_TimeStamp_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimeStamp_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-TimeStamp-r18" + }, +}; +static const int asn_MAP_NR_RSCPD_AdditionalMeasurementSamplesElement_r18_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_NR_RSCPD_AdditionalMeasurementSamplesElement_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_RSCPD_AdditionalMeasurementSamplesElement_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-RSCPD-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PhaseQuality-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-TimeStamp-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_RSCPD_AdditionalMeasurementSamplesElement_r18_specs_1 = { + sizeof(struct NR_RSCPD_AdditionalMeasurementSamplesElement_r18), + offsetof(struct NR_RSCPD_AdditionalMeasurementSamplesElement_r18, _asn_ctx), + asn_MAP_NR_RSCPD_AdditionalMeasurementSamplesElement_r18_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_NR_RSCPD_AdditionalMeasurementSamplesElement_r18_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_RSCPD_AdditionalMeasurementSamplesElement_r18 = { + "NR-RSCPD-AdditionalMeasurementSamplesElement-r18", + "NR-RSCPD-AdditionalMeasurementSamplesElement-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_RSCPD_AdditionalMeasurementSamplesElement_r18_tags_1, + sizeof(asn_DEF_NR_RSCPD_AdditionalMeasurementSamplesElement_r18_tags_1) + /sizeof(asn_DEF_NR_RSCPD_AdditionalMeasurementSamplesElement_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_RSCPD_AdditionalMeasurementSamplesElement_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_RSCPD_AdditionalMeasurementSamplesElement_r18_tags_1) + /sizeof(asn_DEF_NR_RSCPD_AdditionalMeasurementSamplesElement_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_RSCPD_AdditionalMeasurementSamplesElement_r18_1, + 3, /* Elements count */ + &asn_SPC_NR_RSCPD_AdditionalMeasurementSamplesElement_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-RSCPD-AdditionalMeasurementSamplesElement-r18.h b/asn.1/lpp_generated/NR-RSCPD-AdditionalMeasurementSamplesElement-r18.h new file mode 100644 index 00000000..7e8cc450 --- /dev/null +++ b/asn.1/lpp_generated/NR-RSCPD-AdditionalMeasurementSamplesElement-r18.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_RSCPD_AdditionalMeasurementSamplesElement_r18_H_ +#define _NR_RSCPD_AdditionalMeasurementSamplesElement_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_PhaseQuality_r18; +struct NR_TimeStamp_r16; + +/* NR-RSCPD-AdditionalMeasurementSamplesElement-r18 */ +typedef struct NR_RSCPD_AdditionalMeasurementSamplesElement_r18 { + long *nr_RSCPD_r18; /* OPTIONAL */ + struct NR_PhaseQuality_r18 *nr_PhaseQuality_r18; /* OPTIONAL */ + struct NR_TimeStamp_r16 *nr_TimeStamp_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_RSCPD_AdditionalMeasurementSamplesElement_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_RSCPD_AdditionalMeasurementSamplesElement_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_RSCPD_AdditionalMeasurementSamplesElement_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_RSCPD_AdditionalMeasurementSamplesElement_r18_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_RSCPD_AdditionalMeasurementSamplesElement_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-RTD-Info-r16.c b/asn.1/lpp_generated/NR-RTD-Info-r16.c new file mode 100644 index 00000000..1e8267ac --- /dev/null +++ b/asn.1/lpp_generated/NR-RTD-Info-r16.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-RTD-Info-r16.h" + +asn_TYPE_member_t asn_MBR_NR_RTD_Info_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_RTD_Info_r16, referenceTRP_RTD_Info_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReferenceTRP_RTD_Info_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceTRP-RTD-Info-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_RTD_Info_r16, rtd_InfoList_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RTD_InfoList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rtd-InfoList-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_RTD_Info_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_RTD_Info_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceTRP-RTD-Info-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* rtd-InfoList-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_RTD_Info_r16_specs_1 = { + sizeof(struct NR_RTD_Info_r16), + offsetof(struct NR_RTD_Info_r16, _asn_ctx), + asn_MAP_NR_RTD_Info_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_RTD_Info_r16 = { + "NR-RTD-Info-r16", + "NR-RTD-Info-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_RTD_Info_r16_tags_1, + sizeof(asn_DEF_NR_RTD_Info_r16_tags_1) + /sizeof(asn_DEF_NR_RTD_Info_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_RTD_Info_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_RTD_Info_r16_tags_1) + /sizeof(asn_DEF_NR_RTD_Info_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_RTD_Info_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_RTD_Info_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-RTD-Info-r16.h b/asn.1/lpp_generated/NR-RTD-Info-r16.h similarity index 79% rename from asn.1/generated/NR-RTD-Info-r16.h rename to asn.1/lpp_generated/NR-RTD-Info-r16.h index a68d8e81..c8b45553 100644 --- a/asn.1/generated/NR-RTD-Info-r16.h +++ b/asn.1/lpp_generated/NR-RTD-Info-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_RTD_Info_r16_H_ diff --git a/asn.1/lpp_generated/NR-SRS-TxTEG-Element-r17.c b/asn.1/lpp_generated/NR-SRS-TxTEG-Element-r17.c new file mode 100644 index 00000000..866a4558 --- /dev/null +++ b/asn.1/lpp_generated/NR-SRS-TxTEG-Element-r17.c @@ -0,0 +1,389 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-SRS-TxTEG-Element-r17.h" + +#include "NR-TimeStamp-r16.h" +static int +memb_offsetToPointA_r17_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2199L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_NativeInteger_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_UE_Tx_TEG_ID_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_srs_PosResourceList_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 64UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_offsetToPointA_r17_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 2199 } /* (0..2199) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_srs_PosResourceList_r17_constr_7 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_UE_Tx_TEG_ID_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_srs_PosResourceList_r17_constr_7 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_carrierFreq_r17_4[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_SRS_TxTEG_Element_r17__carrierFreq_r17, absoluteFrequencyPointA_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "absoluteFrequencyPointA-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_SRS_TxTEG_Element_r17__carrierFreq_r17, offsetToPointA_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_offsetToPointA_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_offsetToPointA_r17_constraint_4 + }, + 0, 0, /* No default value */ + "offsetToPointA-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_carrierFreq_r17_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_carrierFreq_r17_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* absoluteFrequencyPointA-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* offsetToPointA-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_carrierFreq_r17_specs_4 = { + sizeof(struct NR_SRS_TxTEG_Element_r17__carrierFreq_r17), + offsetof(struct NR_SRS_TxTEG_Element_r17__carrierFreq_r17, _asn_ctx), + asn_MAP_carrierFreq_r17_tag2el_4, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_carrierFreq_r17_4 = { + "carrierFreq-r17", + "carrierFreq-r17", + &asn_OP_SEQUENCE, + asn_DEF_carrierFreq_r17_tags_4, + sizeof(asn_DEF_carrierFreq_r17_tags_4) + /sizeof(asn_DEF_carrierFreq_r17_tags_4[0]) - 1, /* 1 */ + asn_DEF_carrierFreq_r17_tags_4, /* Same as above */ + sizeof(asn_DEF_carrierFreq_r17_tags_4) + /sizeof(asn_DEF_carrierFreq_r17_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_carrierFreq_r17_4, + 2, /* Elements count */ + &asn_SPC_carrierFreq_r17_specs_4 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_srs_PosResourceList_r17_7[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_NativeInteger_constraint_7 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_srs_PosResourceList_r17_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_srs_PosResourceList_r17_specs_7 = { + sizeof(struct NR_SRS_TxTEG_Element_r17__srs_PosResourceList_r17), + offsetof(struct NR_SRS_TxTEG_Element_r17__srs_PosResourceList_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_srs_PosResourceList_r17_7 = { + "srs-PosResourceList-r17", + "srs-PosResourceList-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_srs_PosResourceList_r17_tags_7, + sizeof(asn_DEF_srs_PosResourceList_r17_tags_7) + /sizeof(asn_DEF_srs_PosResourceList_r17_tags_7[0]) - 1, /* 1 */ + asn_DEF_srs_PosResourceList_r17_tags_7, /* Same as above */ + sizeof(asn_DEF_srs_PosResourceList_r17_tags_7) + /sizeof(asn_DEF_srs_PosResourceList_r17_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_srs_PosResourceList_r17_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_srs_PosResourceList_r17_7, + 1, /* Single element */ + &asn_SPC_srs_PosResourceList_r17_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_SRS_TxTEG_Element_r17_1[] = { + { ATF_POINTER, 1, offsetof(struct NR_SRS_TxTEG_Element_r17, nr_TimeStamp_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimeStamp_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-TimeStamp-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_SRS_TxTEG_Element_r17, nr_UE_Tx_TEG_ID_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_UE_Tx_TEG_ID_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_UE_Tx_TEG_ID_r17_constraint_1 + }, + 0, 0, /* No default value */ + "nr-UE-Tx-TEG-ID-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_SRS_TxTEG_Element_r17, carrierFreq_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_carrierFreq_r17_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "carrierFreq-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_SRS_TxTEG_Element_r17, srs_PosResourceList_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_srs_PosResourceList_r17_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_srs_PosResourceList_r17_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_srs_PosResourceList_r17_constraint_1 + }, + 0, 0, /* No default value */ + "srs-PosResourceList-r17" + }, +}; +static const int asn_MAP_NR_SRS_TxTEG_Element_r17_oms_1[] = { 0, 2 }; +static const ber_tlv_tag_t asn_DEF_NR_SRS_TxTEG_Element_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_SRS_TxTEG_Element_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-TimeStamp-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-UE-Tx-TEG-ID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* carrierFreq-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* srs-PosResourceList-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_SRS_TxTEG_Element_r17_specs_1 = { + sizeof(struct NR_SRS_TxTEG_Element_r17), + offsetof(struct NR_SRS_TxTEG_Element_r17, _asn_ctx), + asn_MAP_NR_SRS_TxTEG_Element_r17_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_NR_SRS_TxTEG_Element_r17_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_SRS_TxTEG_Element_r17 = { + "NR-SRS-TxTEG-Element-r17", + "NR-SRS-TxTEG-Element-r17", + &asn_OP_SEQUENCE, + asn_DEF_NR_SRS_TxTEG_Element_r17_tags_1, + sizeof(asn_DEF_NR_SRS_TxTEG_Element_r17_tags_1) + /sizeof(asn_DEF_NR_SRS_TxTEG_Element_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_SRS_TxTEG_Element_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_SRS_TxTEG_Element_r17_tags_1) + /sizeof(asn_DEF_NR_SRS_TxTEG_Element_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_SRS_TxTEG_Element_r17_1, + 4, /* Elements count */ + &asn_SPC_NR_SRS_TxTEG_Element_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-SRS-TxTEG-Element-r17.h b/asn.1/lpp_generated/NR-SRS-TxTEG-Element-r17.h new file mode 100644 index 00000000..5ea9e080 --- /dev/null +++ b/asn.1/lpp_generated/NR-SRS-TxTEG-Element-r17.h @@ -0,0 +1,64 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_SRS_TxTEG_Element_r17_H_ +#define _NR_SRS_TxTEG_Element_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include "ARFCN-ValueNR-r15.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_TimeStamp_r16; + +/* NR-SRS-TxTEG-Element-r17 */ +typedef struct NR_SRS_TxTEG_Element_r17 { + struct NR_TimeStamp_r16 *nr_TimeStamp_r17; /* OPTIONAL */ + long nr_UE_Tx_TEG_ID_r17; + struct NR_SRS_TxTEG_Element_r17__carrierFreq_r17 { + ARFCN_ValueNR_r15_t absoluteFrequencyPointA_r17; + long offsetToPointA_r17; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *carrierFreq_r17; + struct NR_SRS_TxTEG_Element_r17__srs_PosResourceList_r17 { + A_SEQUENCE_OF(long) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } srs_PosResourceList_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_SRS_TxTEG_Element_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_SRS_TxTEG_Element_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_SRS_TxTEG_Element_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_SRS_TxTEG_Element_r17_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_SRS_TxTEG_Element_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-SSB-Config-r16.c b/asn.1/lpp_generated/NR-SSB-Config-r16.c new file mode 100644 index 00000000..5c7eca11 --- /dev/null +++ b/asn.1/lpp_generated/NR-SSB-Config-r16.c @@ -0,0 +1,632 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-SSB-Config-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_shortBitmap_r16_constraint_14(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 4UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_mediumBitmap_r16_constraint_14(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_longBitmap_r16_constraint_14(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 64UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_ss_PBCH_BlockPower_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -60L && value <= 50L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_halfFrameIndex_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sfn_SSB_Offset_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ssb_periodicity_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_shortBitmap_r16_constr_15 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_mediumBitmap_r16_constr_16 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_longBitmap_r16_constr_17 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 64, 64 } /* (SIZE(64..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ssb_PositionsInBurst_r16_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ssb_SubcarrierSpacing_r16_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ss_PBCH_BlockPower_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, -60, 50 } /* (-60..50) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_halfFrameIndex_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sfn_SSB_Offset_r16_constr_25 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_ssb_periodicity_r16_value2enum_6[] = { + { 0, 3, "ms5" }, + { 1, 4, "ms10" }, + { 2, 4, "ms20" }, + { 3, 4, "ms40" }, + { 4, 4, "ms80" }, + { 5, 5, "ms160" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_ssb_periodicity_r16_enum2value_6[] = { + 1, /* ms10(1) */ + 5, /* ms160(5) */ + 2, /* ms20(2) */ + 3, /* ms40(3) */ + 0, /* ms5(0) */ + 4 /* ms80(4) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ssb_periodicity_r16_specs_6 = { + asn_MAP_ssb_periodicity_r16_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_ssb_periodicity_r16_enum2value_6, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 7, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ssb_periodicity_r16_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ssb_periodicity_r16_6 = { + "ssb-periodicity-r16", + "ssb-periodicity-r16", + &asn_OP_NativeEnumerated, + asn_DEF_ssb_periodicity_r16_tags_6, + sizeof(asn_DEF_ssb_periodicity_r16_tags_6) + /sizeof(asn_DEF_ssb_periodicity_r16_tags_6[0]) - 1, /* 1 */ + asn_DEF_ssb_periodicity_r16_tags_6, /* Same as above */ + sizeof(asn_DEF_ssb_periodicity_r16_tags_6) + /sizeof(asn_DEF_ssb_periodicity_r16_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ssb_periodicity_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ssb_periodicity_r16_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ssb_PositionsInBurst_r16_14[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16__ssb_PositionsInBurst_r16, choice.shortBitmap_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_shortBitmap_r16_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_shortBitmap_r16_constraint_14 + }, + 0, 0, /* No default value */ + "shortBitmap-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16__ssb_PositionsInBurst_r16, choice.mediumBitmap_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_mediumBitmap_r16_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_mediumBitmap_r16_constraint_14 + }, + 0, 0, /* No default value */ + "mediumBitmap-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16__ssb_PositionsInBurst_r16, choice.longBitmap_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_longBitmap_r16_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_longBitmap_r16_constraint_14 + }, + 0, 0, /* No default value */ + "longBitmap-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_ssb_PositionsInBurst_r16_tag2el_14[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* shortBitmap-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* mediumBitmap-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* longBitmap-r16 */ +}; +static asn_CHOICE_specifics_t asn_SPC_ssb_PositionsInBurst_r16_specs_14 = { + sizeof(struct NR_SSB_Config_r16__ssb_PositionsInBurst_r16), + offsetof(struct NR_SSB_Config_r16__ssb_PositionsInBurst_r16, _asn_ctx), + offsetof(struct NR_SSB_Config_r16__ssb_PositionsInBurst_r16, present), + sizeof(((struct NR_SSB_Config_r16__ssb_PositionsInBurst_r16 *)0)->present), + asn_MAP_ssb_PositionsInBurst_r16_tag2el_14, + 3, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ssb_PositionsInBurst_r16_14 = { + "ssb-PositionsInBurst-r16", + "ssb-PositionsInBurst-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ssb_PositionsInBurst_r16_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_ssb_PositionsInBurst_r16_14, + 3, /* Elements count */ + &asn_SPC_ssb_PositionsInBurst_r16_specs_14 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_ssb_SubcarrierSpacing_r16_value2enum_18[] = { + { 0, 5, "kHz15" }, + { 1, 5, "kHz30" }, + { 2, 5, "kHz60" }, + { 3, 6, "kHz120" }, + { 4, 6, "kHz240" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_ssb_SubcarrierSpacing_r16_enum2value_18[] = { + 3, /* kHz120(3) */ + 0, /* kHz15(0) */ + 4, /* kHz240(4) */ + 1, /* kHz30(1) */ + 2 /* kHz60(2) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ssb_SubcarrierSpacing_r16_specs_18 = { + asn_MAP_ssb_SubcarrierSpacing_r16_value2enum_18, /* "tag" => N; sorted by tag */ + asn_MAP_ssb_SubcarrierSpacing_r16_enum2value_18, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 6, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ssb_SubcarrierSpacing_r16_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ssb_SubcarrierSpacing_r16_18 = { + "ssb-SubcarrierSpacing-r16", + "ssb-SubcarrierSpacing-r16", + &asn_OP_NativeEnumerated, + asn_DEF_ssb_SubcarrierSpacing_r16_tags_18, + sizeof(asn_DEF_ssb_SubcarrierSpacing_r16_tags_18) + /sizeof(asn_DEF_ssb_SubcarrierSpacing_r16_tags_18[0]) - 1, /* 1 */ + asn_DEF_ssb_SubcarrierSpacing_r16_tags_18, /* Same as above */ + sizeof(asn_DEF_ssb_SubcarrierSpacing_r16_tags_18) + /sizeof(asn_DEF_ssb_SubcarrierSpacing_r16_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ssb_SubcarrierSpacing_r16_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ssb_SubcarrierSpacing_r16_specs_18 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_SSB_Config_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16, nr_PhysCellID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16, nr_ARFCN_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ARFCN-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16, ss_PBCH_BlockPower_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ss_PBCH_BlockPower_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ss_PBCH_BlockPower_r16_constraint_1 + }, + 0, 0, /* No default value */ + "ss-PBCH-BlockPower-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16, halfFrameIndex_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_halfFrameIndex_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_halfFrameIndex_r16_constraint_1 + }, + 0, 0, /* No default value */ + "halfFrameIndex-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16, ssb_periodicity_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ssb_periodicity_r16_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssb-periodicity-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_SSB_Config_r16, ssb_PositionsInBurst_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_ssb_PositionsInBurst_r16_14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssb-PositionsInBurst-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16, ssb_SubcarrierSpacing_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ssb_SubcarrierSpacing_r16_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssb-SubcarrierSpacing-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_SSB_Config_r16, sfn_SSB_Offset_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sfn_SSB_Offset_r16_constr_25, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sfn_SSB_Offset_r16_constraint_1 + }, + 0, 0, /* No default value */ + "sfn-SSB-Offset-r16" + }, +}; +static const int asn_MAP_NR_SSB_Config_r16_oms_1[] = { 5 }; +static const ber_tlv_tag_t asn_DEF_NR_SSB_Config_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_SSB_Config_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-PhysCellID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-ARFCN-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ss-PBCH-BlockPower-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* halfFrameIndex-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ssb-periodicity-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ssb-PositionsInBurst-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ssb-SubcarrierSpacing-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* sfn-SSB-Offset-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_SSB_Config_r16_specs_1 = { + sizeof(struct NR_SSB_Config_r16), + offsetof(struct NR_SSB_Config_r16, _asn_ctx), + asn_MAP_NR_SSB_Config_r16_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_NR_SSB_Config_r16_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 8, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_SSB_Config_r16 = { + "NR-SSB-Config-r16", + "NR-SSB-Config-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_SSB_Config_r16_tags_1, + sizeof(asn_DEF_NR_SSB_Config_r16_tags_1) + /sizeof(asn_DEF_NR_SSB_Config_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_SSB_Config_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_SSB_Config_r16_tags_1) + /sizeof(asn_DEF_NR_SSB_Config_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_SSB_Config_r16_1, + 8, /* Elements count */ + &asn_SPC_NR_SSB_Config_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-SSB-Config-r16.h b/asn.1/lpp_generated/NR-SSB-Config-r16.h new file mode 100644 index 00000000..e7d7d38e --- /dev/null +++ b/asn.1/lpp_generated/NR-SSB-Config-r16.h @@ -0,0 +1,97 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_SSB_Config_r16_H_ +#define _NR_SSB_Config_r16_H_ + + +#include + +/* Including external dependencies */ +#include "NR-PhysCellID-r16.h" +#include "ARFCN-ValueNR-r15.h" +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_SSB_Config_r16__ssb_periodicity_r16 { + NR_SSB_Config_r16__ssb_periodicity_r16_ms5 = 0, + NR_SSB_Config_r16__ssb_periodicity_r16_ms10 = 1, + NR_SSB_Config_r16__ssb_periodicity_r16_ms20 = 2, + NR_SSB_Config_r16__ssb_periodicity_r16_ms40 = 3, + NR_SSB_Config_r16__ssb_periodicity_r16_ms80 = 4, + NR_SSB_Config_r16__ssb_periodicity_r16_ms160 = 5 + /* + * Enumeration is extensible + */ +} e_NR_SSB_Config_r16__ssb_periodicity_r16; +typedef enum NR_SSB_Config_r16__ssb_PositionsInBurst_r16_PR { + NR_SSB_Config_r16__ssb_PositionsInBurst_r16_PR_NOTHING, /* No components present */ + NR_SSB_Config_r16__ssb_PositionsInBurst_r16_PR_shortBitmap_r16, + NR_SSB_Config_r16__ssb_PositionsInBurst_r16_PR_mediumBitmap_r16, + NR_SSB_Config_r16__ssb_PositionsInBurst_r16_PR_longBitmap_r16 +} NR_SSB_Config_r16__ssb_PositionsInBurst_r16_PR; +typedef enum NR_SSB_Config_r16__ssb_SubcarrierSpacing_r16 { + NR_SSB_Config_r16__ssb_SubcarrierSpacing_r16_kHz15 = 0, + NR_SSB_Config_r16__ssb_SubcarrierSpacing_r16_kHz30 = 1, + NR_SSB_Config_r16__ssb_SubcarrierSpacing_r16_kHz60 = 2, + NR_SSB_Config_r16__ssb_SubcarrierSpacing_r16_kHz120 = 3, + NR_SSB_Config_r16__ssb_SubcarrierSpacing_r16_kHz240 = 4 + /* + * Enumeration is extensible + */ +} e_NR_SSB_Config_r16__ssb_SubcarrierSpacing_r16; + +/* NR-SSB-Config-r16 */ +typedef struct NR_SSB_Config_r16 { + NR_PhysCellID_r16_t nr_PhysCellID_r16; + ARFCN_ValueNR_r15_t nr_ARFCN_r16; + long ss_PBCH_BlockPower_r16; + long halfFrameIndex_r16; + long ssb_periodicity_r16; + struct NR_SSB_Config_r16__ssb_PositionsInBurst_r16 { + NR_SSB_Config_r16__ssb_PositionsInBurst_r16_PR present; + union NR_SSB_Config_r16__ssb_PositionsInBurst_r16_u { + BIT_STRING_t shortBitmap_r16; + BIT_STRING_t mediumBitmap_r16; + BIT_STRING_t longBitmap_r16; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ssb_PositionsInBurst_r16; + long ssb_SubcarrierSpacing_r16; + long sfn_SSB_Offset_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_SSB_Config_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_ssb_periodicity_r16_6; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_ssb_SubcarrierSpacing_r16_18; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_SSB_Config_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_SSB_Config_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_SSB_Config_r16_1[8]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_SSB_Config_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-SelectedDL-PRS-IndexList-r16.c b/asn.1/lpp_generated/NR-SelectedDL-PRS-IndexList-r16.c new file mode 100644 index 00000000..34eeb52f --- /dev/null +++ b/asn.1/lpp_generated/NR-SelectedDL-PRS-IndexList-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-SelectedDL-PRS-IndexList-r16.h" + +#include "NR-SelectedDL-PRS-PerFreq-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_SelectedDL_PRS_IndexList_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_SelectedDL_PRS_IndexList_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_SelectedDL_PRS_PerFreq_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_SelectedDL_PRS_IndexList_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_SelectedDL_PRS_IndexList_r16_specs_1 = { + sizeof(struct NR_SelectedDL_PRS_IndexList_r16), + offsetof(struct NR_SelectedDL_PRS_IndexList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_SelectedDL_PRS_IndexList_r16 = { + "NR-SelectedDL-PRS-IndexList-r16", + "NR-SelectedDL-PRS-IndexList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_SelectedDL_PRS_IndexList_r16_tags_1, + sizeof(asn_DEF_NR_SelectedDL_PRS_IndexList_r16_tags_1) + /sizeof(asn_DEF_NR_SelectedDL_PRS_IndexList_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_SelectedDL_PRS_IndexList_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_SelectedDL_PRS_IndexList_r16_tags_1) + /sizeof(asn_DEF_NR_SelectedDL_PRS_IndexList_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_SelectedDL_PRS_IndexList_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_SelectedDL_PRS_IndexList_r16_1, + 1, /* Single element */ + &asn_SPC_NR_SelectedDL_PRS_IndexList_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-SelectedDL-PRS-IndexList-r16.h b/asn.1/lpp_generated/NR-SelectedDL-PRS-IndexList-r16.h new file mode 100644 index 00000000..e446c0c6 --- /dev/null +++ b/asn.1/lpp_generated/NR-SelectedDL-PRS-IndexList-r16.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_SelectedDL_PRS_IndexList_r16_H_ +#define _NR_SelectedDL_PRS_IndexList_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_SelectedDL_PRS_PerFreq_r16; + +/* NR-SelectedDL-PRS-IndexList-r16 */ +typedef struct NR_SelectedDL_PRS_IndexList_r16 { + A_SEQUENCE_OF(struct NR_SelectedDL_PRS_PerFreq_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_SelectedDL_PRS_IndexList_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_SelectedDL_PRS_IndexList_r16; +extern asn_SET_OF_specifics_t asn_SPC_NR_SelectedDL_PRS_IndexList_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_SelectedDL_PRS_IndexList_r16_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_SelectedDL_PRS_IndexList_r16_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_SelectedDL_PRS_IndexList_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-SelectedDL-PRS-IndexPerTRP-r16.c b/asn.1/lpp_generated/NR-SelectedDL-PRS-IndexPerTRP-r16.c new file mode 100644 index 00000000..e8e47895 --- /dev/null +++ b/asn.1/lpp_generated/NR-SelectedDL-PRS-IndexPerTRP-r16.c @@ -0,0 +1,212 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-SelectedDL-PRS-IndexPerTRP-r16.h" + +#include "DL-SelectedPRS-ResourceSetIndex-r16.h" +static int +memb_nr_SelectedTRP_Index_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_SelectedPRS_ResourceSetIndexList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 2UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_SelectedPRS_ResourceSetIndexList_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_SelectedTRP_Index_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_SelectedPRS_ResourceSetIndexList_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_dl_SelectedPRS_ResourceSetIndexList_r16_3[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DL_SelectedPRS_ResourceSetIndex_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r16_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_dl_SelectedPRS_ResourceSetIndexList_r16_specs_3 = { + sizeof(struct NR_SelectedDL_PRS_IndexPerTRP_r16__dl_SelectedPRS_ResourceSetIndexList_r16), + offsetof(struct NR_SelectedDL_PRS_IndexPerTRP_r16__dl_SelectedPRS_ResourceSetIndexList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r16_3 = { + "dl-SelectedPRS-ResourceSetIndexList-r16", + "dl-SelectedPRS-ResourceSetIndexList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r16_tags_3, + sizeof(asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r16_tags_3) + /sizeof(asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r16_tags_3[0]) - 1, /* 1 */ + asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r16_tags_3, /* Same as above */ + sizeof(asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r16_tags_3) + /sizeof(asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r16_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_SelectedPRS_ResourceSetIndexList_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_dl_SelectedPRS_ResourceSetIndexList_r16_3, + 1, /* Single element */ + &asn_SPC_dl_SelectedPRS_ResourceSetIndexList_r16_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_SelectedDL_PRS_IndexPerTRP_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_SelectedDL_PRS_IndexPerTRP_r16, nr_SelectedTRP_Index_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_SelectedTRP_Index_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_SelectedTRP_Index_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-SelectedTRP-Index-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_SelectedDL_PRS_IndexPerTRP_r16, dl_SelectedPRS_ResourceSetIndexList_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r16_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_SelectedPRS_ResourceSetIndexList_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_SelectedPRS_ResourceSetIndexList_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-SelectedPRS-ResourceSetIndexList-r16" + }, +}; +static const int asn_MAP_NR_SelectedDL_PRS_IndexPerTRP_r16_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_SelectedDL_PRS_IndexPerTRP_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-SelectedTRP-Index-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dl-SelectedPRS-ResourceSetIndexList-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_SelectedDL_PRS_IndexPerTRP_r16_specs_1 = { + sizeof(struct NR_SelectedDL_PRS_IndexPerTRP_r16), + offsetof(struct NR_SelectedDL_PRS_IndexPerTRP_r16, _asn_ctx), + asn_MAP_NR_SelectedDL_PRS_IndexPerTRP_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_NR_SelectedDL_PRS_IndexPerTRP_r16_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r16 = { + "NR-SelectedDL-PRS-IndexPerTRP-r16", + "NR-SelectedDL-PRS-IndexPerTRP-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r16_tags_1, + sizeof(asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r16_tags_1) + /sizeof(asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r16_tags_1) + /sizeof(asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_SelectedDL_PRS_IndexPerTRP_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_SelectedDL_PRS_IndexPerTRP_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-SelectedDL-PRS-IndexPerTRP-r16.h b/asn.1/lpp_generated/NR-SelectedDL-PRS-IndexPerTRP-r16.h new file mode 100644 index 00000000..e17846d9 --- /dev/null +++ b/asn.1/lpp_generated/NR-SelectedDL-PRS-IndexPerTRP-r16.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_SelectedDL_PRS_IndexPerTRP_r16_H_ +#define _NR_SelectedDL_PRS_IndexPerTRP_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct DL_SelectedPRS_ResourceSetIndex_r16; + +/* NR-SelectedDL-PRS-IndexPerTRP-r16 */ +typedef struct NR_SelectedDL_PRS_IndexPerTRP_r16 { + long nr_SelectedTRP_Index_r16; + struct NR_SelectedDL_PRS_IndexPerTRP_r16__dl_SelectedPRS_ResourceSetIndexList_r16 { + A_SEQUENCE_OF(struct DL_SelectedPRS_ResourceSetIndex_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *dl_SelectedPRS_ResourceSetIndexList_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_SelectedDL_PRS_IndexPerTRP_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_SelectedDL_PRS_IndexPerTRP_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_SelectedDL_PRS_IndexPerTRP_r16_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_SelectedDL_PRS_IndexPerTRP_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-SelectedDL-PRS-IndexPerTRP-r18.c b/asn.1/lpp_generated/NR-SelectedDL-PRS-IndexPerTRP-r18.c new file mode 100644 index 00000000..757d30cf --- /dev/null +++ b/asn.1/lpp_generated/NR-SelectedDL-PRS-IndexPerTRP-r18.c @@ -0,0 +1,243 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-SelectedDL-PRS-IndexPerTRP-r18.h" + +static int +memb_NativeInteger_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_SelectedTRP_Index_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_SelectedPRS_ResourceSetIndexList_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 2UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_SelectedPRS_ResourceSetIndexList_r18_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_SelectedTRP_Index_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_SelectedPRS_ResourceSetIndexList_r18_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_dl_SelectedPRS_ResourceSetIndexList_r18_3[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_NativeInteger_constraint_3 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r18_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_dl_SelectedPRS_ResourceSetIndexList_r18_specs_3 = { + sizeof(struct NR_SelectedDL_PRS_IndexPerTRP_r18__dl_SelectedPRS_ResourceSetIndexList_r18), + offsetof(struct NR_SelectedDL_PRS_IndexPerTRP_r18__dl_SelectedPRS_ResourceSetIndexList_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r18_3 = { + "dl-SelectedPRS-ResourceSetIndexList-r18", + "dl-SelectedPRS-ResourceSetIndexList-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r18_tags_3, + sizeof(asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r18_tags_3) + /sizeof(asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r18_tags_3[0]) - 1, /* 1 */ + asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r18_tags_3, /* Same as above */ + sizeof(asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r18_tags_3) + /sizeof(asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r18_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_SelectedPRS_ResourceSetIndexList_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_dl_SelectedPRS_ResourceSetIndexList_r18_3, + 1, /* Single element */ + &asn_SPC_dl_SelectedPRS_ResourceSetIndexList_r18_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_SelectedDL_PRS_IndexPerTRP_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_SelectedDL_PRS_IndexPerTRP_r18, nr_SelectedTRP_Index_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_SelectedTRP_Index_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_SelectedTRP_Index_r18_constraint_1 + }, + 0, 0, /* No default value */ + "nr-SelectedTRP-Index-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_SelectedDL_PRS_IndexPerTRP_r18, dl_SelectedPRS_ResourceSetIndexList_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_dl_SelectedPRS_ResourceSetIndexList_r18_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_SelectedPRS_ResourceSetIndexList_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_SelectedPRS_ResourceSetIndexList_r18_constraint_1 + }, + 0, 0, /* No default value */ + "dl-SelectedPRS-ResourceSetIndexList-r18" + }, +}; +static const int asn_MAP_NR_SelectedDL_PRS_IndexPerTRP_r18_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_SelectedDL_PRS_IndexPerTRP_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-SelectedTRP-Index-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dl-SelectedPRS-ResourceSetIndexList-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_SelectedDL_PRS_IndexPerTRP_r18_specs_1 = { + sizeof(struct NR_SelectedDL_PRS_IndexPerTRP_r18), + offsetof(struct NR_SelectedDL_PRS_IndexPerTRP_r18, _asn_ctx), + asn_MAP_NR_SelectedDL_PRS_IndexPerTRP_r18_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_NR_SelectedDL_PRS_IndexPerTRP_r18_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r18 = { + "NR-SelectedDL-PRS-IndexPerTRP-r18", + "NR-SelectedDL-PRS-IndexPerTRP-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r18_tags_1, + sizeof(asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r18_tags_1) + /sizeof(asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r18_tags_1) + /sizeof(asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_SelectedDL_PRS_IndexPerTRP_r18_1, + 2, /* Elements count */ + &asn_SPC_NR_SelectedDL_PRS_IndexPerTRP_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-SelectedDL-PRS-IndexPerTRP-r18.h b/asn.1/lpp_generated/NR-SelectedDL-PRS-IndexPerTRP-r18.h new file mode 100644 index 00000000..8b4164e3 --- /dev/null +++ b/asn.1/lpp_generated/NR-SelectedDL-PRS-IndexPerTRP-r18.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_SelectedDL_PRS_IndexPerTRP_r18_H_ +#define _NR_SelectedDL_PRS_IndexPerTRP_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NR-SelectedDL-PRS-IndexPerTRP-r18 */ +typedef struct NR_SelectedDL_PRS_IndexPerTRP_r18 { + long nr_SelectedTRP_Index_r18; + struct NR_SelectedDL_PRS_IndexPerTRP_r18__dl_SelectedPRS_ResourceSetIndexList_r18 { + A_SEQUENCE_OF(long) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *dl_SelectedPRS_ResourceSetIndexList_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_SelectedDL_PRS_IndexPerTRP_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_SelectedDL_PRS_IndexPerTRP_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_SelectedDL_PRS_IndexPerTRP_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_SelectedDL_PRS_IndexPerTRP_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-SelectedDL-PRS-PerFreq-r16.c b/asn.1/lpp_generated/NR-SelectedDL-PRS-PerFreq-r16.c new file mode 100644 index 00000000..a838e0de --- /dev/null +++ b/asn.1/lpp_generated/NR-SelectedDL-PRS-PerFreq-r16.c @@ -0,0 +1,212 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-SelectedDL-PRS-PerFreq-r16.h" + +#include "NR-SelectedDL-PRS-IndexPerTRP-r16.h" +static int +memb_nr_SelectedDL_PRS_FrequencyLayerIndex_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_SelectedDL_PRS_IndexListPerFreq_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 64UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_SelectedDL_PRS_IndexListPerFreq_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_SelectedDL_PRS_FrequencyLayerIndex_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_SelectedDL_PRS_IndexListPerFreq_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_SelectedDL_PRS_IndexListPerFreq_r16_3[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_SelectedDL_PRS_IndexPerTRP_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r16_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_SelectedDL_PRS_IndexListPerFreq_r16_specs_3 = { + sizeof(struct NR_SelectedDL_PRS_PerFreq_r16__nr_SelectedDL_PRS_IndexListPerFreq_r16), + offsetof(struct NR_SelectedDL_PRS_PerFreq_r16__nr_SelectedDL_PRS_IndexListPerFreq_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r16_3 = { + "nr-SelectedDL-PRS-IndexListPerFreq-r16", + "nr-SelectedDL-PRS-IndexListPerFreq-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r16_tags_3, + sizeof(asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r16_tags_3) + /sizeof(asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r16_tags_3[0]) - 1, /* 1 */ + asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r16_tags_3, /* Same as above */ + sizeof(asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r16_tags_3) + /sizeof(asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r16_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_SelectedDL_PRS_IndexListPerFreq_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_SelectedDL_PRS_IndexListPerFreq_r16_3, + 1, /* Single element */ + &asn_SPC_nr_SelectedDL_PRS_IndexListPerFreq_r16_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_SelectedDL_PRS_PerFreq_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_SelectedDL_PRS_PerFreq_r16, nr_SelectedDL_PRS_FrequencyLayerIndex_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_SelectedDL_PRS_FrequencyLayerIndex_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_SelectedDL_PRS_FrequencyLayerIndex_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-SelectedDL-PRS-FrequencyLayerIndex-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_SelectedDL_PRS_PerFreq_r16, nr_SelectedDL_PRS_IndexListPerFreq_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_nr_SelectedDL_PRS_IndexListPerFreq_r16_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_SelectedDL_PRS_IndexListPerFreq_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_SelectedDL_PRS_IndexListPerFreq_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-SelectedDL-PRS-IndexListPerFreq-r16" + }, +}; +static const int asn_MAP_NR_SelectedDL_PRS_PerFreq_r16_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_NR_SelectedDL_PRS_PerFreq_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_SelectedDL_PRS_PerFreq_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-SelectedDL-PRS-FrequencyLayerIndex-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-SelectedDL-PRS-IndexListPerFreq-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_SelectedDL_PRS_PerFreq_r16_specs_1 = { + sizeof(struct NR_SelectedDL_PRS_PerFreq_r16), + offsetof(struct NR_SelectedDL_PRS_PerFreq_r16, _asn_ctx), + asn_MAP_NR_SelectedDL_PRS_PerFreq_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_NR_SelectedDL_PRS_PerFreq_r16_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_SelectedDL_PRS_PerFreq_r16 = { + "NR-SelectedDL-PRS-PerFreq-r16", + "NR-SelectedDL-PRS-PerFreq-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_SelectedDL_PRS_PerFreq_r16_tags_1, + sizeof(asn_DEF_NR_SelectedDL_PRS_PerFreq_r16_tags_1) + /sizeof(asn_DEF_NR_SelectedDL_PRS_PerFreq_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_SelectedDL_PRS_PerFreq_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_SelectedDL_PRS_PerFreq_r16_tags_1) + /sizeof(asn_DEF_NR_SelectedDL_PRS_PerFreq_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_SelectedDL_PRS_PerFreq_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_SelectedDL_PRS_PerFreq_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-SelectedDL-PRS-PerFreq-r16.h b/asn.1/lpp_generated/NR-SelectedDL-PRS-PerFreq-r16.h similarity index 78% rename from asn.1/generated/NR-SelectedDL-PRS-PerFreq-r16.h rename to asn.1/lpp_generated/NR-SelectedDL-PRS-PerFreq-r16.h index 4d971950..e6356e14 100644 --- a/asn.1/generated/NR-SelectedDL-PRS-PerFreq-r16.h +++ b/asn.1/lpp_generated/NR-SelectedDL-PRS-PerFreq-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_SelectedDL_PRS_PerFreq_r16_H_ @@ -22,13 +22,13 @@ extern "C" { #endif /* Forward declarations */ -struct NR_Selected_DL_PRS_IndexPerTRP_r16; +struct NR_SelectedDL_PRS_IndexPerTRP_r16; /* NR-SelectedDL-PRS-PerFreq-r16 */ typedef struct NR_SelectedDL_PRS_PerFreq_r16 { long nr_SelectedDL_PRS_FrequencyLayerIndex_r16; struct NR_SelectedDL_PRS_PerFreq_r16__nr_SelectedDL_PRS_IndexListPerFreq_r16 { - A_SEQUENCE_OF(struct NR_Selected_DL_PRS_IndexPerTRP_r16) list; + A_SEQUENCE_OF(struct NR_SelectedDL_PRS_IndexPerTRP_r16) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -51,8 +51,5 @@ extern asn_TYPE_member_t asn_MBR_NR_SelectedDL_PRS_PerFreq_r16_1[2]; } #endif -/* Referred external types */ -#include "NR-Selected-DL-PRS-IndexPerTRP-r16.h" - #endif /* _NR_SelectedDL_PRS_PerFreq_r16_H_ */ #include diff --git a/asn.1/lpp_generated/NR-TRP-BeamAntennaAngles-r17.c b/asn.1/lpp_generated/NR-TRP-BeamAntennaAngles-r17.c new file mode 100644 index 00000000..ce73003b --- /dev/null +++ b/asn.1/lpp_generated/NR-TRP-BeamAntennaAngles-r17.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-TRP-BeamAntennaAngles-r17.h" + +#include "NR-TRP-BeamAntennaInfoAzimuthElevation-r17.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_TRP_BeamAntennaAngles_r17_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 12, 12, 1, 3600 } /* (SIZE(1..3600)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_TRP_BeamAntennaAngles_r17_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_TRP_BeamAntennaInfoAzimuthElevation_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_TRP_BeamAntennaAngles_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_TRP_BeamAntennaAngles_r17_specs_1 = { + sizeof(struct NR_TRP_BeamAntennaAngles_r17), + offsetof(struct NR_TRP_BeamAntennaAngles_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_TRP_BeamAntennaAngles_r17 = { + "NR-TRP-BeamAntennaAngles-r17", + "NR-TRP-BeamAntennaAngles-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_TRP_BeamAntennaAngles_r17_tags_1, + sizeof(asn_DEF_NR_TRP_BeamAntennaAngles_r17_tags_1) + /sizeof(asn_DEF_NR_TRP_BeamAntennaAngles_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_TRP_BeamAntennaAngles_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_TRP_BeamAntennaAngles_r17_tags_1) + /sizeof(asn_DEF_NR_TRP_BeamAntennaAngles_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_TRP_BeamAntennaAngles_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_TRP_BeamAntennaAngles_r17_1, + 1, /* Single element */ + &asn_SPC_NR_TRP_BeamAntennaAngles_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-TRP-BeamAntennaAngles-r17.h b/asn.1/lpp_generated/NR-TRP-BeamAntennaAngles-r17.h new file mode 100644 index 00000000..1bf64e57 --- /dev/null +++ b/asn.1/lpp_generated/NR-TRP-BeamAntennaAngles-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_TRP_BeamAntennaAngles_r17_H_ +#define _NR_TRP_BeamAntennaAngles_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_TRP_BeamAntennaInfoAzimuthElevation_r17; + +/* NR-TRP-BeamAntennaAngles-r17 */ +typedef struct NR_TRP_BeamAntennaAngles_r17 { + A_SEQUENCE_OF(struct NR_TRP_BeamAntennaInfoAzimuthElevation_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_TRP_BeamAntennaAngles_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_TRP_BeamAntennaAngles_r17; +extern asn_SET_OF_specifics_t asn_SPC_NR_TRP_BeamAntennaAngles_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_TRP_BeamAntennaAngles_r17_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_TRP_BeamAntennaAngles_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_TRP_BeamAntennaAngles_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-TRP-BeamAntennaInfo-r17.c b/asn.1/lpp_generated/NR-TRP-BeamAntennaInfo-r17.c new file mode 100644 index 00000000..e5d3af6d --- /dev/null +++ b/asn.1/lpp_generated/NR-TRP-BeamAntennaInfo-r17.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-TRP-BeamAntennaInfo-r17.h" + +#include "NR-TRP-BeamAntennaInfoPerFreqLayer-r17.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_TRP_BeamAntennaInfo_r17_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_TRP_BeamAntennaInfo_r17_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_TRP_BeamAntennaInfoPerFreqLayer_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_TRP_BeamAntennaInfo_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_TRP_BeamAntennaInfo_r17_specs_1 = { + sizeof(struct NR_TRP_BeamAntennaInfo_r17), + offsetof(struct NR_TRP_BeamAntennaInfo_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_TRP_BeamAntennaInfo_r17 = { + "NR-TRP-BeamAntennaInfo-r17", + "NR-TRP-BeamAntennaInfo-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_TRP_BeamAntennaInfo_r17_tags_1, + sizeof(asn_DEF_NR_TRP_BeamAntennaInfo_r17_tags_1) + /sizeof(asn_DEF_NR_TRP_BeamAntennaInfo_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_TRP_BeamAntennaInfo_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_TRP_BeamAntennaInfo_r17_tags_1) + /sizeof(asn_DEF_NR_TRP_BeamAntennaInfo_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_TRP_BeamAntennaInfo_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_TRP_BeamAntennaInfo_r17_1, + 1, /* Single element */ + &asn_SPC_NR_TRP_BeamAntennaInfo_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-TRP-BeamAntennaInfo-r17.h b/asn.1/lpp_generated/NR-TRP-BeamAntennaInfo-r17.h new file mode 100644 index 00000000..fba5eb63 --- /dev/null +++ b/asn.1/lpp_generated/NR-TRP-BeamAntennaInfo-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_TRP_BeamAntennaInfo_r17_H_ +#define _NR_TRP_BeamAntennaInfo_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_TRP_BeamAntennaInfoPerFreqLayer_r17; + +/* NR-TRP-BeamAntennaInfo-r17 */ +typedef struct NR_TRP_BeamAntennaInfo_r17 { + A_SEQUENCE_OF(struct NR_TRP_BeamAntennaInfoPerFreqLayer_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_TRP_BeamAntennaInfo_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_TRP_BeamAntennaInfo_r17; +extern asn_SET_OF_specifics_t asn_SPC_NR_TRP_BeamAntennaInfo_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_TRP_BeamAntennaInfo_r17_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_TRP_BeamAntennaInfo_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_TRP_BeamAntennaInfo_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-TRP-BeamAntennaInfoAzimuthElevation-r17.c b/asn.1/lpp_generated/NR-TRP-BeamAntennaInfoAzimuthElevation-r17.c new file mode 100644 index 00000000..a801250e --- /dev/null +++ b/asn.1/lpp_generated/NR-TRP-BeamAntennaInfoAzimuthElevation-r17.c @@ -0,0 +1,262 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-TRP-BeamAntennaInfoAzimuthElevation-r17.h" + +#include "ElevationElement-R17.h" +static int +memb_azimuth_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 359L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_azimuth_fine_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_elevationList_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 1801UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_elevationList_r17_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 11, 11, 1, 1801 } /* (SIZE(1..1801)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_azimuth_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 359 } /* (0..359) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_azimuth_fine_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_elevationList_r17_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 11, 11, 1, 1801 } /* (SIZE(1..1801)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_elevationList_r17_4[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_ElevationElement_R17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_elevationList_r17_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_elevationList_r17_specs_4 = { + sizeof(struct NR_TRP_BeamAntennaInfoAzimuthElevation_r17__elevationList_r17), + offsetof(struct NR_TRP_BeamAntennaInfoAzimuthElevation_r17__elevationList_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_elevationList_r17_4 = { + "elevationList-r17", + "elevationList-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_elevationList_r17_tags_4, + sizeof(asn_DEF_elevationList_r17_tags_4) + /sizeof(asn_DEF_elevationList_r17_tags_4[0]) - 1, /* 1 */ + asn_DEF_elevationList_r17_tags_4, /* Same as above */ + sizeof(asn_DEF_elevationList_r17_tags_4) + /sizeof(asn_DEF_elevationList_r17_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_elevationList_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_elevationList_r17_4, + 1, /* Single element */ + &asn_SPC_elevationList_r17_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_TRP_BeamAntennaInfoAzimuthElevation_r17_1[] = { + { ATF_POINTER, 2, offsetof(struct NR_TRP_BeamAntennaInfoAzimuthElevation_r17, azimuth_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_azimuth_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_azimuth_r17_constraint_1 + }, + 0, 0, /* No default value */ + "azimuth-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_TRP_BeamAntennaInfoAzimuthElevation_r17, azimuth_fine_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_azimuth_fine_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_azimuth_fine_r17_constraint_1 + }, + 0, 0, /* No default value */ + "azimuth-fine-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_TRP_BeamAntennaInfoAzimuthElevation_r17, elevationList_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_elevationList_r17_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_elevationList_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_elevationList_r17_constraint_1 + }, + 0, 0, /* No default value */ + "elevationList-r17" + }, +}; +static const int asn_MAP_NR_TRP_BeamAntennaInfoAzimuthElevation_r17_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_NR_TRP_BeamAntennaInfoAzimuthElevation_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_TRP_BeamAntennaInfoAzimuthElevation_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* azimuth-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* azimuth-fine-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* elevationList-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_TRP_BeamAntennaInfoAzimuthElevation_r17_specs_1 = { + sizeof(struct NR_TRP_BeamAntennaInfoAzimuthElevation_r17), + offsetof(struct NR_TRP_BeamAntennaInfoAzimuthElevation_r17, _asn_ctx), + asn_MAP_NR_TRP_BeamAntennaInfoAzimuthElevation_r17_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_NR_TRP_BeamAntennaInfoAzimuthElevation_r17_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_TRP_BeamAntennaInfoAzimuthElevation_r17 = { + "NR-TRP-BeamAntennaInfoAzimuthElevation-r17", + "NR-TRP-BeamAntennaInfoAzimuthElevation-r17", + &asn_OP_SEQUENCE, + asn_DEF_NR_TRP_BeamAntennaInfoAzimuthElevation_r17_tags_1, + sizeof(asn_DEF_NR_TRP_BeamAntennaInfoAzimuthElevation_r17_tags_1) + /sizeof(asn_DEF_NR_TRP_BeamAntennaInfoAzimuthElevation_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_TRP_BeamAntennaInfoAzimuthElevation_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_TRP_BeamAntennaInfoAzimuthElevation_r17_tags_1) + /sizeof(asn_DEF_NR_TRP_BeamAntennaInfoAzimuthElevation_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_TRP_BeamAntennaInfoAzimuthElevation_r17_1, + 3, /* Elements count */ + &asn_SPC_NR_TRP_BeamAntennaInfoAzimuthElevation_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-TRP-BeamAntennaInfoAzimuthElevation-r17.h b/asn.1/lpp_generated/NR-TRP-BeamAntennaInfoAzimuthElevation-r17.h new file mode 100644 index 00000000..c2e2dd4a --- /dev/null +++ b/asn.1/lpp_generated/NR-TRP-BeamAntennaInfoAzimuthElevation-r17.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_TRP_BeamAntennaInfoAzimuthElevation_r17_H_ +#define _NR_TRP_BeamAntennaInfoAzimuthElevation_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ElevationElement_R17; + +/* NR-TRP-BeamAntennaInfoAzimuthElevation-r17 */ +typedef struct NR_TRP_BeamAntennaInfoAzimuthElevation_r17 { + long *azimuth_r17; /* OPTIONAL */ + long *azimuth_fine_r17; /* OPTIONAL */ + struct NR_TRP_BeamAntennaInfoAzimuthElevation_r17__elevationList_r17 { + A_SEQUENCE_OF(struct ElevationElement_R17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } elevationList_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_TRP_BeamAntennaInfoAzimuthElevation_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_TRP_BeamAntennaInfoAzimuthElevation_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_TRP_BeamAntennaInfoAzimuthElevation_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_TRP_BeamAntennaInfoAzimuthElevation_r17_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_TRP_BeamAntennaInfoAzimuthElevation_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-TRP-BeamAntennaInfoPerFreqLayer-r17.c b/asn.1/lpp_generated/NR-TRP-BeamAntennaInfoPerFreqLayer-r17.c new file mode 100644 index 00000000..1c69afa5 --- /dev/null +++ b/asn.1/lpp_generated/NR-TRP-BeamAntennaInfoPerFreqLayer-r17.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-TRP-BeamAntennaInfoPerFreqLayer-r17.h" + +#include "NR-TRP-BeamAntennaInfoPerTRP-r17.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_TRP_BeamAntennaInfoPerFreqLayer_r17_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_TRP_BeamAntennaInfoPerFreqLayer_r17_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_TRP_BeamAntennaInfoPerTRP_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_TRP_BeamAntennaInfoPerFreqLayer_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_TRP_BeamAntennaInfoPerFreqLayer_r17_specs_1 = { + sizeof(struct NR_TRP_BeamAntennaInfoPerFreqLayer_r17), + offsetof(struct NR_TRP_BeamAntennaInfoPerFreqLayer_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_TRP_BeamAntennaInfoPerFreqLayer_r17 = { + "NR-TRP-BeamAntennaInfoPerFreqLayer-r17", + "NR-TRP-BeamAntennaInfoPerFreqLayer-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_TRP_BeamAntennaInfoPerFreqLayer_r17_tags_1, + sizeof(asn_DEF_NR_TRP_BeamAntennaInfoPerFreqLayer_r17_tags_1) + /sizeof(asn_DEF_NR_TRP_BeamAntennaInfoPerFreqLayer_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_TRP_BeamAntennaInfoPerFreqLayer_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_TRP_BeamAntennaInfoPerFreqLayer_r17_tags_1) + /sizeof(asn_DEF_NR_TRP_BeamAntennaInfoPerFreqLayer_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_TRP_BeamAntennaInfoPerFreqLayer_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_TRP_BeamAntennaInfoPerFreqLayer_r17_1, + 1, /* Single element */ + &asn_SPC_NR_TRP_BeamAntennaInfoPerFreqLayer_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-TRP-BeamAntennaInfoPerFreqLayer-r17.h b/asn.1/lpp_generated/NR-TRP-BeamAntennaInfoPerFreqLayer-r17.h new file mode 100644 index 00000000..1d6fa738 --- /dev/null +++ b/asn.1/lpp_generated/NR-TRP-BeamAntennaInfoPerFreqLayer-r17.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_TRP_BeamAntennaInfoPerFreqLayer_r17_H_ +#define _NR_TRP_BeamAntennaInfoPerFreqLayer_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_TRP_BeamAntennaInfoPerTRP_r17; + +/* NR-TRP-BeamAntennaInfoPerFreqLayer-r17 */ +typedef struct NR_TRP_BeamAntennaInfoPerFreqLayer_r17 { + A_SEQUENCE_OF(struct NR_TRP_BeamAntennaInfoPerTRP_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_TRP_BeamAntennaInfoPerFreqLayer_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_TRP_BeamAntennaInfoPerFreqLayer_r17; +extern asn_SET_OF_specifics_t asn_SPC_NR_TRP_BeamAntennaInfoPerFreqLayer_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_TRP_BeamAntennaInfoPerFreqLayer_r17_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_TRP_BeamAntennaInfoPerFreqLayer_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_TRP_BeamAntennaInfoPerFreqLayer_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-TRP-BeamAntennaInfoPerTRP-r17.c b/asn.1/lpp_generated/NR-TRP-BeamAntennaInfoPerTRP-r17.c new file mode 100644 index 00000000..70b9329f --- /dev/null +++ b/asn.1/lpp_generated/NR-TRP-BeamAntennaInfoPerTRP-r17.c @@ -0,0 +1,243 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-TRP-BeamAntennaInfoPerTRP-r17.h" + +#include "NCGI-r15.h" +#include "LCS-GCS-TranslationParameter-r16.h" +#include "NR-TRP-BeamAntennaAngles-r17.h" +static int +memb_dl_PRS_ID_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_associated_DL_PRS_ID_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ID_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_associated_DL_PRS_ID_r17_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_TRP_BeamAntennaInfoPerTRP_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_TRP_BeamAntennaInfoPerTRP_r17, dl_PRS_ID_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ID_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ID_r17_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ID-r17" + }, + { ATF_POINTER, 6, offsetof(struct NR_TRP_BeamAntennaInfoPerTRP_r17, nr_PhysCellID_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r17" + }, + { ATF_POINTER, 5, offsetof(struct NR_TRP_BeamAntennaInfoPerTRP_r17, nr_CellGlobalID_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-CellGlobalID-r17" + }, + { ATF_POINTER, 4, offsetof(struct NR_TRP_BeamAntennaInfoPerTRP_r17, nr_ARFCN_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ARFCN-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_TRP_BeamAntennaInfoPerTRP_r17, associated_DL_PRS_ID_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_associated_DL_PRS_ID_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_associated_DL_PRS_ID_r17_constraint_1 + }, + 0, 0, /* No default value */ + "associated-DL-PRS-ID-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_TRP_BeamAntennaInfoPerTRP_r17, lcs_GCS_TranslationParameter_r17), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LCS_GCS_TranslationParameter_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lcs-GCS-TranslationParameter-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_TRP_BeamAntennaInfoPerTRP_r17, nr_TRP_BeamAntennaAngles_r17), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TRP_BeamAntennaAngles_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-TRP-BeamAntennaAngles-r17" + }, +}; +static const int asn_MAP_NR_TRP_BeamAntennaInfoPerTRP_r17_oms_1[] = { 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_NR_TRP_BeamAntennaInfoPerTRP_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_TRP_BeamAntennaInfoPerTRP_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PhysCellID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-CellGlobalID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-ARFCN-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* associated-DL-PRS-ID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* lcs-GCS-TranslationParameter-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* nr-TRP-BeamAntennaAngles-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_TRP_BeamAntennaInfoPerTRP_r17_specs_1 = { + sizeof(struct NR_TRP_BeamAntennaInfoPerTRP_r17), + offsetof(struct NR_TRP_BeamAntennaInfoPerTRP_r17, _asn_ctx), + asn_MAP_NR_TRP_BeamAntennaInfoPerTRP_r17_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_NR_TRP_BeamAntennaInfoPerTRP_r17_oms_1, /* Optional members */ + 6, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_TRP_BeamAntennaInfoPerTRP_r17 = { + "NR-TRP-BeamAntennaInfoPerTRP-r17", + "NR-TRP-BeamAntennaInfoPerTRP-r17", + &asn_OP_SEQUENCE, + asn_DEF_NR_TRP_BeamAntennaInfoPerTRP_r17_tags_1, + sizeof(asn_DEF_NR_TRP_BeamAntennaInfoPerTRP_r17_tags_1) + /sizeof(asn_DEF_NR_TRP_BeamAntennaInfoPerTRP_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_TRP_BeamAntennaInfoPerTRP_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_TRP_BeamAntennaInfoPerTRP_r17_tags_1) + /sizeof(asn_DEF_NR_TRP_BeamAntennaInfoPerTRP_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_TRP_BeamAntennaInfoPerTRP_r17_1, + 7, /* Elements count */ + &asn_SPC_NR_TRP_BeamAntennaInfoPerTRP_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-TRP-BeamAntennaInfoPerTRP-r17.h b/asn.1/lpp_generated/NR-TRP-BeamAntennaInfoPerTRP-r17.h new file mode 100644 index 00000000..f99db999 --- /dev/null +++ b/asn.1/lpp_generated/NR-TRP-BeamAntennaInfoPerTRP-r17.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_TRP_BeamAntennaInfoPerTRP_r17_H_ +#define _NR_TRP_BeamAntennaInfoPerTRP_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include "NR-PhysCellID-r16.h" +#include "ARFCN-ValueNR-r15.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NCGI_r15; +struct LCS_GCS_TranslationParameter_r16; +struct NR_TRP_BeamAntennaAngles_r17; + +/* NR-TRP-BeamAntennaInfoPerTRP-r17 */ +typedef struct NR_TRP_BeamAntennaInfoPerTRP_r17 { + long dl_PRS_ID_r17; + NR_PhysCellID_r16_t *nr_PhysCellID_r17; /* OPTIONAL */ + struct NCGI_r15 *nr_CellGlobalID_r17; /* OPTIONAL */ + ARFCN_ValueNR_r15_t *nr_ARFCN_r17; /* OPTIONAL */ + long *associated_DL_PRS_ID_r17; /* OPTIONAL */ + struct LCS_GCS_TranslationParameter_r16 *lcs_GCS_TranslationParameter_r17; /* OPTIONAL */ + struct NR_TRP_BeamAntennaAngles_r17 *nr_TRP_BeamAntennaAngles_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_TRP_BeamAntennaInfoPerTRP_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_TRP_BeamAntennaInfoPerTRP_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_TRP_BeamAntennaInfoPerTRP_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_TRP_BeamAntennaInfoPerTRP_r17_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_TRP_BeamAntennaInfoPerTRP_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-TRP-IntegrityServiceAlertElement-r18.c b/asn.1/lpp_generated/NR-TRP-IntegrityServiceAlertElement-r18.c new file mode 100644 index 00000000..538dec12 --- /dev/null +++ b/asn.1/lpp_generated/NR-TRP-IntegrityServiceAlertElement-r18.c @@ -0,0 +1,227 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-TRP-IntegrityServiceAlertElement-r18.h" + +#include "NCGI-r15.h" +static int +memb_dl_PRS_ID_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ID_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_TRP_IntegrityServiceAlertElement_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_TRP_IntegrityServiceAlertElement_r18, dl_PRS_ID_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ID_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ID_r18_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ID-r18" + }, + { ATF_POINTER, 7, offsetof(struct NR_TRP_IntegrityServiceAlertElement_r18, nr_PhysCellID_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r18" + }, + { ATF_POINTER, 6, offsetof(struct NR_TRP_IntegrityServiceAlertElement_r18, nr_CellGlobalID_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-CellGlobalID-r18" + }, + { ATF_POINTER, 5, offsetof(struct NR_TRP_IntegrityServiceAlertElement_r18, nr_ARFCN_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ARFCN-r18" + }, + { ATF_POINTER, 4, offsetof(struct NR_TRP_IntegrityServiceAlertElement_r18, rtd_DoNotUse_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rtd-DoNotUse-r18" + }, + { ATF_POINTER, 3, offsetof(struct NR_TRP_IntegrityServiceAlertElement_r18, trp_LocationDoNotUse_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "trp-LocationDoNotUse-r18" + }, + { ATF_POINTER, 2, offsetof(struct NR_TRP_IntegrityServiceAlertElement_r18, beamInfo_DoNotUse_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "beamInfo-DoNotUse-r18" + }, + { ATF_POINTER, 1, offsetof(struct NR_TRP_IntegrityServiceAlertElement_r18, beamAntennaInfo_DoNotUse_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "beamAntennaInfo-DoNotUse-r18" + }, +}; +static const int asn_MAP_NR_TRP_IntegrityServiceAlertElement_r18_oms_1[] = { 1, 2, 3, 4, 5, 6, 7 }; +static const ber_tlv_tag_t asn_DEF_NR_TRP_IntegrityServiceAlertElement_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_TRP_IntegrityServiceAlertElement_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ID-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PhysCellID-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-CellGlobalID-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-ARFCN-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rtd-DoNotUse-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* trp-LocationDoNotUse-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* beamInfo-DoNotUse-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* beamAntennaInfo-DoNotUse-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_TRP_IntegrityServiceAlertElement_r18_specs_1 = { + sizeof(struct NR_TRP_IntegrityServiceAlertElement_r18), + offsetof(struct NR_TRP_IntegrityServiceAlertElement_r18, _asn_ctx), + asn_MAP_NR_TRP_IntegrityServiceAlertElement_r18_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_NR_TRP_IntegrityServiceAlertElement_r18_oms_1, /* Optional members */ + 7, 0, /* Root/Additions */ + 8, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_TRP_IntegrityServiceAlertElement_r18 = { + "NR-TRP-IntegrityServiceAlertElement-r18", + "NR-TRP-IntegrityServiceAlertElement-r18", + &asn_OP_SEQUENCE, + asn_DEF_NR_TRP_IntegrityServiceAlertElement_r18_tags_1, + sizeof(asn_DEF_NR_TRP_IntegrityServiceAlertElement_r18_tags_1) + /sizeof(asn_DEF_NR_TRP_IntegrityServiceAlertElement_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_TRP_IntegrityServiceAlertElement_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_TRP_IntegrityServiceAlertElement_r18_tags_1) + /sizeof(asn_DEF_NR_TRP_IntegrityServiceAlertElement_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_TRP_IntegrityServiceAlertElement_r18_1, + 8, /* Elements count */ + &asn_SPC_NR_TRP_IntegrityServiceAlertElement_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-TRP-IntegrityServiceAlertElement-r18.h b/asn.1/lpp_generated/NR-TRP-IntegrityServiceAlertElement-r18.h new file mode 100644 index 00000000..5270ec36 --- /dev/null +++ b/asn.1/lpp_generated/NR-TRP-IntegrityServiceAlertElement-r18.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_TRP_IntegrityServiceAlertElement_r18_H_ +#define _NR_TRP_IntegrityServiceAlertElement_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include "NR-PhysCellID-r16.h" +#include "ARFCN-ValueNR-r15.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NCGI_r15; + +/* NR-TRP-IntegrityServiceAlertElement-r18 */ +typedef struct NR_TRP_IntegrityServiceAlertElement_r18 { + long dl_PRS_ID_r18; + NR_PhysCellID_r16_t *nr_PhysCellID_r18; /* OPTIONAL */ + struct NCGI_r15 *nr_CellGlobalID_r18; /* OPTIONAL */ + ARFCN_ValueNR_r15_t *nr_ARFCN_r18; /* OPTIONAL */ + BOOLEAN_t *rtd_DoNotUse_r18; /* OPTIONAL */ + BOOLEAN_t *trp_LocationDoNotUse_r18; /* OPTIONAL */ + BOOLEAN_t *beamInfo_DoNotUse_r18; /* OPTIONAL */ + BOOLEAN_t *beamAntennaInfo_DoNotUse_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_TRP_IntegrityServiceAlertElement_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_TRP_IntegrityServiceAlertElement_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_TRP_IntegrityServiceAlertElement_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_TRP_IntegrityServiceAlertElement_r18_1[8]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_TRP_IntegrityServiceAlertElement_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-TRP-IntegrityServiceAlertPerFreqLayer-r18.c b/asn.1/lpp_generated/NR-TRP-IntegrityServiceAlertPerFreqLayer-r18.c new file mode 100644 index 00000000..fec904f9 --- /dev/null +++ b/asn.1/lpp_generated/NR-TRP-IntegrityServiceAlertPerFreqLayer-r18.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-TRP-IntegrityServiceAlertPerFreqLayer-r18.h" + +#include "NR-TRP-IntegrityServiceAlertElement-r18.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_TRP_IntegrityServiceAlertElement_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_specs_1 = { + sizeof(struct NR_TRP_IntegrityServiceAlertPerFreqLayer_r18), + offsetof(struct NR_TRP_IntegrityServiceAlertPerFreqLayer_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_TRP_IntegrityServiceAlertPerFreqLayer_r18 = { + "NR-TRP-IntegrityServiceAlertPerFreqLayer-r18", + "NR-TRP-IntegrityServiceAlertPerFreqLayer-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_tags_1, + sizeof(asn_DEF_NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_tags_1) + /sizeof(asn_DEF_NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_tags_1) + /sizeof(asn_DEF_NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_1, + 1, /* Single element */ + &asn_SPC_NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-TRP-IntegrityServiceAlertPerFreqLayer-r18.h b/asn.1/lpp_generated/NR-TRP-IntegrityServiceAlertPerFreqLayer-r18.h new file mode 100644 index 00000000..59ef4c48 --- /dev/null +++ b/asn.1/lpp_generated/NR-TRP-IntegrityServiceAlertPerFreqLayer-r18.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_H_ +#define _NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_TRP_IntegrityServiceAlertElement_r18; + +/* NR-TRP-IntegrityServiceAlertPerFreqLayer-r18 */ +typedef struct NR_TRP_IntegrityServiceAlertPerFreqLayer_r18 { + A_SEQUENCE_OF(struct NR_TRP_IntegrityServiceAlertElement_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_TRP_IntegrityServiceAlertPerFreqLayer_r18; +extern asn_SET_OF_specifics_t asn_SPC_NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_TRP_IntegrityServiceAlertPerFreqLayer_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-TRP-LocationInfo-r16.c b/asn.1/lpp_generated/NR-TRP-LocationInfo-r16.c new file mode 100644 index 00000000..421c6724 --- /dev/null +++ b/asn.1/lpp_generated/NR-TRP-LocationInfo-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-TRP-LocationInfo-r16.h" + +#include "NR-TRP-LocationInfoPerFreqLayer-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_TRP_LocationInfo_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_TRP_LocationInfo_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_TRP_LocationInfoPerFreqLayer_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_TRP_LocationInfo_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_TRP_LocationInfo_r16_specs_1 = { + sizeof(struct NR_TRP_LocationInfo_r16), + offsetof(struct NR_TRP_LocationInfo_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_TRP_LocationInfo_r16 = { + "NR-TRP-LocationInfo-r16", + "NR-TRP-LocationInfo-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_TRP_LocationInfo_r16_tags_1, + sizeof(asn_DEF_NR_TRP_LocationInfo_r16_tags_1) + /sizeof(asn_DEF_NR_TRP_LocationInfo_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_TRP_LocationInfo_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_TRP_LocationInfo_r16_tags_1) + /sizeof(asn_DEF_NR_TRP_LocationInfo_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_TRP_LocationInfo_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_TRP_LocationInfo_r16_1, + 1, /* Single element */ + &asn_SPC_NR_TRP_LocationInfo_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-TRP-LocationInfo-r16.h b/asn.1/lpp_generated/NR-TRP-LocationInfo-r16.h similarity index 80% rename from asn.1/generated/NR-TRP-LocationInfo-r16.h rename to asn.1/lpp_generated/NR-TRP-LocationInfo-r16.h index 727c4a83..d89f1228 100644 --- a/asn.1/generated/NR-TRP-LocationInfo-r16.h +++ b/asn.1/lpp_generated/NR-TRP-LocationInfo-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_TRP_LocationInfo_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_NR_TRP_LocationInfo_r16_constr_1; } #endif -/* Referred external types */ -#include "NR-TRP-LocationInfoPerFreqLayer-r16.h" - #endif /* _NR_TRP_LocationInfo_r16_H_ */ #include diff --git a/asn.1/lpp_generated/NR-TRP-LocationInfoPerFreqLayer-r16.c b/asn.1/lpp_generated/NR-TRP-LocationInfoPerFreqLayer-r16.c new file mode 100644 index 00000000..398bdcde --- /dev/null +++ b/asn.1/lpp_generated/NR-TRP-LocationInfoPerFreqLayer-r16.c @@ -0,0 +1,181 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-TRP-LocationInfoPerFreqLayer-r16.h" + +#include "ReferencePoint-r16.h" +#include "TRP-LocationInfoElement-r16.h" +static int +memb_trp_LocationInfoList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 64UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_trp_LocationInfoList_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_trp_LocationInfoList_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_trp_LocationInfoList_r16_3[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_TRP_LocationInfoElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_trp_LocationInfoList_r16_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_trp_LocationInfoList_r16_specs_3 = { + sizeof(struct NR_TRP_LocationInfoPerFreqLayer_r16__trp_LocationInfoList_r16), + offsetof(struct NR_TRP_LocationInfoPerFreqLayer_r16__trp_LocationInfoList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_trp_LocationInfoList_r16_3 = { + "trp-LocationInfoList-r16", + "trp-LocationInfoList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_trp_LocationInfoList_r16_tags_3, + sizeof(asn_DEF_trp_LocationInfoList_r16_tags_3) + /sizeof(asn_DEF_trp_LocationInfoList_r16_tags_3[0]) - 1, /* 1 */ + asn_DEF_trp_LocationInfoList_r16_tags_3, /* Same as above */ + sizeof(asn_DEF_trp_LocationInfoList_r16_tags_3) + /sizeof(asn_DEF_trp_LocationInfoList_r16_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_trp_LocationInfoList_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_trp_LocationInfoList_r16_3, + 1, /* Single element */ + &asn_SPC_trp_LocationInfoList_r16_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_TRP_LocationInfoPerFreqLayer_r16_1[] = { + { ATF_POINTER, 1, offsetof(struct NR_TRP_LocationInfoPerFreqLayer_r16, referencePoint_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReferencePoint_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referencePoint-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_TRP_LocationInfoPerFreqLayer_r16, trp_LocationInfoList_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_trp_LocationInfoList_r16_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_trp_LocationInfoList_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_trp_LocationInfoList_r16_constraint_1 + }, + 0, 0, /* No default value */ + "trp-LocationInfoList-r16" + }, +}; +static const int asn_MAP_NR_TRP_LocationInfoPerFreqLayer_r16_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_NR_TRP_LocationInfoPerFreqLayer_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_TRP_LocationInfoPerFreqLayer_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referencePoint-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* trp-LocationInfoList-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_TRP_LocationInfoPerFreqLayer_r16_specs_1 = { + sizeof(struct NR_TRP_LocationInfoPerFreqLayer_r16), + offsetof(struct NR_TRP_LocationInfoPerFreqLayer_r16, _asn_ctx), + asn_MAP_NR_TRP_LocationInfoPerFreqLayer_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_NR_TRP_LocationInfoPerFreqLayer_r16_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_TRP_LocationInfoPerFreqLayer_r16 = { + "NR-TRP-LocationInfoPerFreqLayer-r16", + "NR-TRP-LocationInfoPerFreqLayer-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_TRP_LocationInfoPerFreqLayer_r16_tags_1, + sizeof(asn_DEF_NR_TRP_LocationInfoPerFreqLayer_r16_tags_1) + /sizeof(asn_DEF_NR_TRP_LocationInfoPerFreqLayer_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_TRP_LocationInfoPerFreqLayer_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_TRP_LocationInfoPerFreqLayer_r16_tags_1) + /sizeof(asn_DEF_NR_TRP_LocationInfoPerFreqLayer_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_TRP_LocationInfoPerFreqLayer_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_TRP_LocationInfoPerFreqLayer_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-TRP-LocationInfoPerFreqLayer-r16.h b/asn.1/lpp_generated/NR-TRP-LocationInfoPerFreqLayer-r16.h similarity index 80% rename from asn.1/generated/NR-TRP-LocationInfoPerFreqLayer-r16.h rename to asn.1/lpp_generated/NR-TRP-LocationInfoPerFreqLayer-r16.h index e1a7e784..61c44144 100644 --- a/asn.1/generated/NR-TRP-LocationInfoPerFreqLayer-r16.h +++ b/asn.1/lpp_generated/NR-TRP-LocationInfoPerFreqLayer-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_TRP_LocationInfoPerFreqLayer_r16_H_ @@ -26,7 +26,7 @@ struct TRP_LocationInfoElement_r16; /* NR-TRP-LocationInfoPerFreqLayer-r16 */ typedef struct NR_TRP_LocationInfoPerFreqLayer_r16 { - struct ReferencePoint_r16 *referencePoint_r16 /* OPTIONAL */; + struct ReferencePoint_r16 *referencePoint_r16; /* OPTIONAL */ struct NR_TRP_LocationInfoPerFreqLayer_r16__trp_LocationInfoList_r16 { A_SEQUENCE_OF(struct TRP_LocationInfoElement_r16) list; @@ -51,9 +51,5 @@ extern asn_TYPE_member_t asn_MBR_NR_TRP_LocationInfoPerFreqLayer_r16_1[2]; } #endif -/* Referred external types */ -#include "ReferencePoint-r16.h" -#include "TRP-LocationInfoElement-r16.h" - #endif /* _NR_TRP_LocationInfoPerFreqLayer_r16_H_ */ #include diff --git a/asn.1/lpp_generated/NR-TimeStamp-r16.c b/asn.1/lpp_generated/NR-TimeStamp-r16.c new file mode 100644 index 00000000..06ac5431 --- /dev/null +++ b/asn.1/lpp_generated/NR-TimeStamp-r16.c @@ -0,0 +1,578 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-TimeStamp-r16.h" + +#include "NCGI-r15.h" +static int +memb_scs15_r16_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_scs30_r16_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 19L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_scs60_r16_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 39L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_scs120_r16_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 79L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_Symbol_r18_constraint_13(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 13L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_PRS_ID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_SFN_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_scs15_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_scs30_r16_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_scs60_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 39 } /* (0..39) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_scs120_r16_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 79 } /* (0..79) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_Slot_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_Symbol_r18_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 13 } /* (0..13) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ID_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_SFN_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_Slot_r16_7[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_TimeStamp_r16__nr_Slot_r16, choice.scs15_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_scs15_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_scs15_r16_constraint_7 + }, + 0, 0, /* No default value */ + "scs15-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_TimeStamp_r16__nr_Slot_r16, choice.scs30_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_scs30_r16_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_scs30_r16_constraint_7 + }, + 0, 0, /* No default value */ + "scs30-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_TimeStamp_r16__nr_Slot_r16, choice.scs60_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_scs60_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_scs60_r16_constraint_7 + }, + 0, 0, /* No default value */ + "scs60-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_TimeStamp_r16__nr_Slot_r16, choice.scs120_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_scs120_r16_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_scs120_r16_constraint_7 + }, + 0, 0, /* No default value */ + "scs120-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_Slot_r16_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* scs15-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* scs30-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* scs60-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* scs120-r16 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nr_Slot_r16_specs_7 = { + sizeof(struct NR_TimeStamp_r16__nr_Slot_r16), + offsetof(struct NR_TimeStamp_r16__nr_Slot_r16, _asn_ctx), + offsetof(struct NR_TimeStamp_r16__nr_Slot_r16, present), + sizeof(((struct NR_TimeStamp_r16__nr_Slot_r16 *)0)->present), + asn_MAP_nr_Slot_r16_tag2el_7, + 4, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_Slot_r16_7 = { + "nr-Slot-r16", + "nr-Slot-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_Slot_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nr_Slot_r16_7, + 4, /* Elements count */ + &asn_SPC_nr_Slot_r16_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_13[] = { + { ATF_POINTER, 1, offsetof(struct NR_TimeStamp_r16__ext1, nr_Symbol_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_Symbol_r18_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_Symbol_r18_constraint_13 + }, + 0, 0, /* No default value */ + "nr-Symbol-r18" + }, +}; +static const int asn_MAP_ext1_oms_13[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_13[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-Symbol-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_13 = { + sizeof(struct NR_TimeStamp_r16__ext1), + offsetof(struct NR_TimeStamp_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_13, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_13, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_13 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_13, + sizeof(asn_DEF_ext1_tags_13) + /sizeof(asn_DEF_ext1_tags_13[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_13, /* Same as above */ + sizeof(asn_DEF_ext1_tags_13) + /sizeof(asn_DEF_ext1_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_13, + 1, /* Elements count */ + &asn_SPC_ext1_specs_13 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_TimeStamp_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_TimeStamp_r16, dl_PRS_ID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ID_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ID_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ID-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_TimeStamp_r16, nr_PhysCellID_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_TimeStamp_r16, nr_CellGlobalID_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-CellGlobalID-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_TimeStamp_r16, nr_ARFCN_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ARFCN-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_TimeStamp_r16, nr_SFN_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_SFN_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_SFN_r16_constraint_1 + }, + 0, 0, /* No default value */ + "nr-SFN-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_TimeStamp_r16, nr_Slot_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nr_Slot_r16_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-Slot-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_TimeStamp_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext1_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_TimeStamp_r16_oms_1[] = { 1, 2, 3, 6 }; +static const ber_tlv_tag_t asn_DEF_NR_TimeStamp_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_TimeStamp_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PhysCellID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-CellGlobalID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-ARFCN-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nr-SFN-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nr-Slot-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_TimeStamp_r16_specs_1 = { + sizeof(struct NR_TimeStamp_r16), + offsetof(struct NR_TimeStamp_r16, _asn_ctx), + asn_MAP_NR_TimeStamp_r16_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_NR_TimeStamp_r16_oms_1, /* Optional members */ + 3, 1, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_TimeStamp_r16 = { + "NR-TimeStamp-r16", + "NR-TimeStamp-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_TimeStamp_r16_tags_1, + sizeof(asn_DEF_NR_TimeStamp_r16_tags_1) + /sizeof(asn_DEF_NR_TimeStamp_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_TimeStamp_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_TimeStamp_r16_tags_1) + /sizeof(asn_DEF_NR_TimeStamp_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_TimeStamp_r16_1, + 7, /* Elements count */ + &asn_SPC_NR_TimeStamp_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-TimeStamp-r16.h b/asn.1/lpp_generated/NR-TimeStamp-r16.h new file mode 100644 index 00000000..18b93998 --- /dev/null +++ b/asn.1/lpp_generated/NR-TimeStamp-r16.h @@ -0,0 +1,81 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_TimeStamp_r16_H_ +#define _NR_TimeStamp_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include "NR-PhysCellID-r16.h" +#include "ARFCN-ValueNR-r15.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_TimeStamp_r16__nr_Slot_r16_PR { + NR_TimeStamp_r16__nr_Slot_r16_PR_NOTHING, /* No components present */ + NR_TimeStamp_r16__nr_Slot_r16_PR_scs15_r16, + NR_TimeStamp_r16__nr_Slot_r16_PR_scs30_r16, + NR_TimeStamp_r16__nr_Slot_r16_PR_scs60_r16, + NR_TimeStamp_r16__nr_Slot_r16_PR_scs120_r16 +} NR_TimeStamp_r16__nr_Slot_r16_PR; + +/* Forward declarations */ +struct NCGI_r15; + +/* NR-TimeStamp-r16 */ +typedef struct NR_TimeStamp_r16 { + long dl_PRS_ID_r16; + NR_PhysCellID_r16_t *nr_PhysCellID_r16; /* OPTIONAL */ + struct NCGI_r15 *nr_CellGlobalID_r16; /* OPTIONAL */ + ARFCN_ValueNR_r15_t *nr_ARFCN_r16; /* OPTIONAL */ + long nr_SFN_r16; + struct NR_TimeStamp_r16__nr_Slot_r16 { + NR_TimeStamp_r16__nr_Slot_r16_PR present; + union NR_TimeStamp_r16__nr_Slot_r16_u { + long scs15_r16; + long scs30_r16; + long scs60_r16; + long scs120_r16; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } nr_Slot_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_TimeStamp_r16__ext1 { + long *nr_Symbol_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_TimeStamp_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_TimeStamp_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_TimeStamp_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_TimeStamp_r16_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_TimeStamp_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-TimingQuality-r16.c b/asn.1/lpp_generated/NR-TimingQuality-r16.c new file mode 100644 index 00000000..0cd5aa2d --- /dev/null +++ b/asn.1/lpp_generated/NR-TimingQuality-r16.c @@ -0,0 +1,178 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-TimingQuality-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_timingQualityValue_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 31L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_timingQualityResolution_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_timingQualityValue_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_timingQualityResolution_r16_value2enum_3[] = { + { 0, 5, "mdot1" }, + { 1, 2, "m1" }, + { 2, 3, "m10" }, + { 3, 3, "m30" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_timingQualityResolution_r16_enum2value_3[] = { + 1, /* m1(1) */ + 2, /* m10(2) */ + 3, /* m30(3) */ + 0 /* mdot1(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_timingQualityResolution_r16_specs_3 = { + asn_MAP_timingQualityResolution_r16_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_timingQualityResolution_r16_enum2value_3, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_timingQualityResolution_r16_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_timingQualityResolution_r16_3 = { + "timingQualityResolution-r16", + "timingQualityResolution-r16", + &asn_OP_NativeEnumerated, + asn_DEF_timingQualityResolution_r16_tags_3, + sizeof(asn_DEF_timingQualityResolution_r16_tags_3) + /sizeof(asn_DEF_timingQualityResolution_r16_tags_3[0]) - 1, /* 1 */ + asn_DEF_timingQualityResolution_r16_tags_3, /* Same as above */ + sizeof(asn_DEF_timingQualityResolution_r16_tags_3) + /sizeof(asn_DEF_timingQualityResolution_r16_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_timingQualityResolution_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_timingQualityResolution_r16_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_TimingQuality_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_TimingQuality_r16, timingQualityValue_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_timingQualityValue_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_timingQualityValue_r16_constraint_1 + }, + 0, 0, /* No default value */ + "timingQualityValue-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_TimingQuality_r16, timingQualityResolution_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_timingQualityResolution_r16_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "timingQualityResolution-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_TimingQuality_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_TimingQuality_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* timingQualityValue-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* timingQualityResolution-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_TimingQuality_r16_specs_1 = { + sizeof(struct NR_TimingQuality_r16), + offsetof(struct NR_TimingQuality_r16, _asn_ctx), + asn_MAP_NR_TimingQuality_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_TimingQuality_r16 = { + "NR-TimingQuality-r16", + "NR-TimingQuality-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_TimingQuality_r16_tags_1, + sizeof(asn_DEF_NR_TimingQuality_r16_tags_1) + /sizeof(asn_DEF_NR_TimingQuality_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_TimingQuality_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_TimingQuality_r16_tags_1) + /sizeof(asn_DEF_NR_TimingQuality_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_TimingQuality_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_TimingQuality_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-TimingQuality-r16.h b/asn.1/lpp_generated/NR-TimingQuality-r16.h new file mode 100644 index 00000000..04d0035d --- /dev/null +++ b/asn.1/lpp_generated/NR-TimingQuality-r16.h @@ -0,0 +1,58 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_TimingQuality_r16_H_ +#define _NR_TimingQuality_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_TimingQuality_r16__timingQualityResolution_r16 { + NR_TimingQuality_r16__timingQualityResolution_r16_mdot1 = 0, + NR_TimingQuality_r16__timingQualityResolution_r16_m1 = 1, + NR_TimingQuality_r16__timingQualityResolution_r16_m10 = 2, + NR_TimingQuality_r16__timingQualityResolution_r16_m30 = 3 + /* + * Enumeration is extensible + */ +} e_NR_TimingQuality_r16__timingQualityResolution_r16; + +/* NR-TimingQuality-r16 */ +typedef struct NR_TimingQuality_r16 { + long timingQualityValue_r16; + long timingQualityResolution_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_TimingQuality_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_timingQualityResolution_r16_3; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_TimingQuality_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_TimingQuality_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_TimingQuality_r16_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_TimingQuality_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-UE-RxTx-TEG-Info-r17.c b/asn.1/lpp_generated/NR-UE-RxTx-TEG-Info-r17.c new file mode 100644 index 00000000..92a063ab --- /dev/null +++ b/asn.1/lpp_generated/NR-UE-RxTx-TEG-Info-r17.c @@ -0,0 +1,479 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-UE-RxTx-TEG-Info-r17.h" + +static int +memb_nr_UE_RxTx_TEG_ID_r17_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_UE_RxTx_TEG_ID_r17_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_UE_Tx_TEG_Index_r17_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 256L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_UE_Rx_TEG_ID_r17_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 31L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_UE_Tx_TEG_Index_r17_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 256L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_UE_RxTx_TEG_ID_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_UE_RxTx_TEG_ID_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_UE_Tx_TEG_Index_r17_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (1..256) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_UE_Rx_TEG_ID_r17_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_UE_Tx_TEG_Index_r17_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (1..256) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_UE_RxTx_TEG_Info_r17_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_case1_r17_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_UE_RxTx_TEG_Info_r17__case1_r17, nr_UE_RxTx_TEG_ID_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_UE_RxTx_TEG_ID_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_UE_RxTx_TEG_ID_r17_constraint_2 + }, + 0, 0, /* No default value */ + "nr-UE-RxTx-TEG-ID-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_case1_r17_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_case1_r17_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-UE-RxTx-TEG-ID-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_case1_r17_specs_2 = { + sizeof(struct NR_UE_RxTx_TEG_Info_r17__case1_r17), + offsetof(struct NR_UE_RxTx_TEG_Info_r17__case1_r17, _asn_ctx), + asn_MAP_case1_r17_tag2el_2, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_case1_r17_2 = { + "case1-r17", + "case1-r17", + &asn_OP_SEQUENCE, + asn_DEF_case1_r17_tags_2, + sizeof(asn_DEF_case1_r17_tags_2) + /sizeof(asn_DEF_case1_r17_tags_2[0]) - 1, /* 1 */ + asn_DEF_case1_r17_tags_2, /* Same as above */ + sizeof(asn_DEF_case1_r17_tags_2) + /sizeof(asn_DEF_case1_r17_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_case1_r17_2, + 1, /* Elements count */ + &asn_SPC_case1_r17_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_case2_r17_4[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_UE_RxTx_TEG_Info_r17__case2_r17, nr_UE_RxTx_TEG_ID_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_UE_RxTx_TEG_ID_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_UE_RxTx_TEG_ID_r17_constraint_4 + }, + 0, 0, /* No default value */ + "nr-UE-RxTx-TEG-ID-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_UE_RxTx_TEG_Info_r17__case2_r17, nr_UE_Tx_TEG_Index_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_UE_Tx_TEG_Index_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_UE_Tx_TEG_Index_r17_constraint_4 + }, + 0, 0, /* No default value */ + "nr-UE-Tx-TEG-Index-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_case2_r17_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_case2_r17_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-UE-RxTx-TEG-ID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-UE-Tx-TEG-Index-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_case2_r17_specs_4 = { + sizeof(struct NR_UE_RxTx_TEG_Info_r17__case2_r17), + offsetof(struct NR_UE_RxTx_TEG_Info_r17__case2_r17, _asn_ctx), + asn_MAP_case2_r17_tag2el_4, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_case2_r17_4 = { + "case2-r17", + "case2-r17", + &asn_OP_SEQUENCE, + asn_DEF_case2_r17_tags_4, + sizeof(asn_DEF_case2_r17_tags_4) + /sizeof(asn_DEF_case2_r17_tags_4[0]) - 1, /* 1 */ + asn_DEF_case2_r17_tags_4, /* Same as above */ + sizeof(asn_DEF_case2_r17_tags_4) + /sizeof(asn_DEF_case2_r17_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_case2_r17_4, + 2, /* Elements count */ + &asn_SPC_case2_r17_specs_4 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_case3_r17_7[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_UE_RxTx_TEG_Info_r17__case3_r17, nr_UE_Rx_TEG_ID_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_UE_Rx_TEG_ID_r17_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_UE_Rx_TEG_ID_r17_constraint_7 + }, + 0, 0, /* No default value */ + "nr-UE-Rx-TEG-ID-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_UE_RxTx_TEG_Info_r17__case3_r17, nr_UE_Tx_TEG_Index_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_UE_Tx_TEG_Index_r17_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_UE_Tx_TEG_Index_r17_constraint_7 + }, + 0, 0, /* No default value */ + "nr-UE-Tx-TEG-Index-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_case3_r17_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_case3_r17_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-UE-Rx-TEG-ID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-UE-Tx-TEG-Index-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_case3_r17_specs_7 = { + sizeof(struct NR_UE_RxTx_TEG_Info_r17__case3_r17), + offsetof(struct NR_UE_RxTx_TEG_Info_r17__case3_r17, _asn_ctx), + asn_MAP_case3_r17_tag2el_7, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_case3_r17_7 = { + "case3-r17", + "case3-r17", + &asn_OP_SEQUENCE, + asn_DEF_case3_r17_tags_7, + sizeof(asn_DEF_case3_r17_tags_7) + /sizeof(asn_DEF_case3_r17_tags_7[0]) - 1, /* 1 */ + asn_DEF_case3_r17_tags_7, /* Same as above */ + sizeof(asn_DEF_case3_r17_tags_7) + /sizeof(asn_DEF_case3_r17_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_case3_r17_7, + 2, /* Elements count */ + &asn_SPC_case3_r17_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_UE_RxTx_TEG_Info_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_UE_RxTx_TEG_Info_r17, choice.case1_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_case1_r17_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "case1-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_UE_RxTx_TEG_Info_r17, choice.case2_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_case2_r17_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "case2-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct NR_UE_RxTx_TEG_Info_r17, choice.case3_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_case3_r17_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "case3-r17" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_UE_RxTx_TEG_Info_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* case1-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* case2-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* case3-r17 */ +}; +asn_CHOICE_specifics_t asn_SPC_NR_UE_RxTx_TEG_Info_r17_specs_1 = { + sizeof(struct NR_UE_RxTx_TEG_Info_r17), + offsetof(struct NR_UE_RxTx_TEG_Info_r17, _asn_ctx), + offsetof(struct NR_UE_RxTx_TEG_Info_r17, present), + sizeof(((struct NR_UE_RxTx_TEG_Info_r17 *)0)->present), + asn_MAP_NR_UE_RxTx_TEG_Info_r17_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, + 3 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_UE_RxTx_TEG_Info_r17 = { + "NR-UE-RxTx-TEG-Info-r17", + "NR-UE-RxTx-TEG-Info-r17", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_UE_RxTx_TEG_Info_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_NR_UE_RxTx_TEG_Info_r17_1, + 3, /* Elements count */ + &asn_SPC_NR_UE_RxTx_TEG_Info_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-UE-RxTx-TEG-Info-r17.h b/asn.1/lpp_generated/NR-UE-RxTx-TEG-Info-r17.h new file mode 100644 index 00000000..dbdf6da2 --- /dev/null +++ b/asn.1/lpp_generated/NR-UE-RxTx-TEG-Info-r17.h @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_UE_RxTx_TEG_Info_r17_H_ +#define _NR_UE_RxTx_TEG_Info_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_UE_RxTx_TEG_Info_r17_PR { + NR_UE_RxTx_TEG_Info_r17_PR_NOTHING, /* No components present */ + NR_UE_RxTx_TEG_Info_r17_PR_case1_r17, + NR_UE_RxTx_TEG_Info_r17_PR_case2_r17, + NR_UE_RxTx_TEG_Info_r17_PR_case3_r17 + /* Extensions may appear below */ + +} NR_UE_RxTx_TEG_Info_r17_PR; + +/* NR-UE-RxTx-TEG-Info-r17 */ +typedef struct NR_UE_RxTx_TEG_Info_r17 { + NR_UE_RxTx_TEG_Info_r17_PR present; + union NR_UE_RxTx_TEG_Info_r17_u { + struct NR_UE_RxTx_TEG_Info_r17__case1_r17 { + long nr_UE_RxTx_TEG_ID_r17; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } case1_r17; + struct NR_UE_RxTx_TEG_Info_r17__case2_r17 { + long nr_UE_RxTx_TEG_ID_r17; + long nr_UE_Tx_TEG_Index_r17; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } case2_r17; + struct NR_UE_RxTx_TEG_Info_r17__case3_r17 { + long nr_UE_Rx_TEG_ID_r17; + long nr_UE_Tx_TEG_Index_r17; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } case3_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_UE_RxTx_TEG_Info_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_UE_RxTx_TEG_Info_r17; +extern asn_CHOICE_specifics_t asn_SPC_NR_UE_RxTx_TEG_Info_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_UE_RxTx_TEG_Info_r17_1[3]; +extern asn_per_constraints_t asn_PER_type_NR_UE_RxTx_TEG_Info_r17_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_UE_RxTx_TEG_Info_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-UE-TEG-Capability-r17.c b/asn.1/lpp_generated/NR-UE-TEG-Capability-r17.c new file mode 100644 index 00000000..05bbb67a --- /dev/null +++ b/asn.1/lpp_generated/NR-UE-TEG-Capability-r17.c @@ -0,0 +1,162 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-UE-TEG-Capability-r17.h" + +#include "NR-UE-TEG-ID-CapabilityPerBand-r17.h" +static int +memb_nr_UE_TEG_ID_CapabilityBandList_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 1024UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_UE_TEG_ID_CapabilityBandList_r17_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_UE_TEG_ID_CapabilityBandList_r17_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_nr_UE_TEG_ID_CapabilityBandList_r17_2[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_UE_TEG_ID_CapabilityPerBand_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nr_UE_TEG_ID_CapabilityBandList_r17_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nr_UE_TEG_ID_CapabilityBandList_r17_specs_2 = { + sizeof(struct NR_UE_TEG_Capability_r17__nr_UE_TEG_ID_CapabilityBandList_r17), + offsetof(struct NR_UE_TEG_Capability_r17__nr_UE_TEG_ID_CapabilityBandList_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_UE_TEG_ID_CapabilityBandList_r17_2 = { + "nr-UE-TEG-ID-CapabilityBandList-r17", + "nr-UE-TEG-ID-CapabilityBandList-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_nr_UE_TEG_ID_CapabilityBandList_r17_tags_2, + sizeof(asn_DEF_nr_UE_TEG_ID_CapabilityBandList_r17_tags_2) + /sizeof(asn_DEF_nr_UE_TEG_ID_CapabilityBandList_r17_tags_2[0]) - 1, /* 1 */ + asn_DEF_nr_UE_TEG_ID_CapabilityBandList_r17_tags_2, /* Same as above */ + sizeof(asn_DEF_nr_UE_TEG_ID_CapabilityBandList_r17_tags_2) + /sizeof(asn_DEF_nr_UE_TEG_ID_CapabilityBandList_r17_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_UE_TEG_ID_CapabilityBandList_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nr_UE_TEG_ID_CapabilityBandList_r17_2, + 1, /* Single element */ + &asn_SPC_nr_UE_TEG_ID_CapabilityBandList_r17_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_UE_TEG_Capability_r17_1[] = { + { ATF_POINTER, 1, offsetof(struct NR_UE_TEG_Capability_r17, nr_UE_TEG_ID_CapabilityBandList_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_nr_UE_TEG_ID_CapabilityBandList_r17_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_UE_TEG_ID_CapabilityBandList_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_UE_TEG_ID_CapabilityBandList_r17_constraint_1 + }, + 0, 0, /* No default value */ + "nr-UE-TEG-ID-CapabilityBandList-r17" + }, +}; +static const int asn_MAP_NR_UE_TEG_Capability_r17_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_NR_UE_TEG_Capability_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_UE_TEG_Capability_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-UE-TEG-ID-CapabilityBandList-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_UE_TEG_Capability_r17_specs_1 = { + sizeof(struct NR_UE_TEG_Capability_r17), + offsetof(struct NR_UE_TEG_Capability_r17, _asn_ctx), + asn_MAP_NR_UE_TEG_Capability_r17_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_NR_UE_TEG_Capability_r17_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_UE_TEG_Capability_r17 = { + "NR-UE-TEG-Capability-r17", + "NR-UE-TEG-Capability-r17", + &asn_OP_SEQUENCE, + asn_DEF_NR_UE_TEG_Capability_r17_tags_1, + sizeof(asn_DEF_NR_UE_TEG_Capability_r17_tags_1) + /sizeof(asn_DEF_NR_UE_TEG_Capability_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_UE_TEG_Capability_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_UE_TEG_Capability_r17_tags_1) + /sizeof(asn_DEF_NR_UE_TEG_Capability_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_UE_TEG_Capability_r17_1, + 1, /* Elements count */ + &asn_SPC_NR_UE_TEG_Capability_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-UE-TEG-Capability-r17.h b/asn.1/lpp_generated/NR-UE-TEG-Capability-r17.h new file mode 100644 index 00000000..3fd915cd --- /dev/null +++ b/asn.1/lpp_generated/NR-UE-TEG-Capability-r17.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_UE_TEG_Capability_r17_H_ +#define _NR_UE_TEG_Capability_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_UE_TEG_ID_CapabilityPerBand_r17; + +/* NR-UE-TEG-Capability-r17 */ +typedef struct NR_UE_TEG_Capability_r17 { + struct NR_UE_TEG_Capability_r17__nr_UE_TEG_ID_CapabilityBandList_r17 { + A_SEQUENCE_OF(struct NR_UE_TEG_ID_CapabilityPerBand_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_UE_TEG_ID_CapabilityBandList_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_UE_TEG_Capability_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_UE_TEG_Capability_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_UE_TEG_Capability_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_UE_TEG_Capability_r17_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_UE_TEG_Capability_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-UE-TEG-ID-CapabilityPerBand-r17.c b/asn.1/lpp_generated/NR-UE-TEG-ID-CapabilityPerBand-r17.c new file mode 100644 index 00000000..ba6dec57 --- /dev/null +++ b/asn.1/lpp_generated/NR-UE-TEG-ID-CapabilityPerBand-r17.c @@ -0,0 +1,488 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-UE-TEG-ID-CapabilityPerBand-r17.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_UE_RxTEG_ID_MaxSupport_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_UE_TxTEG_ID_MaxSupport_r17_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_UE_RxTxTEG_ID_MaxSupport_r17_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 11 } /* (0..11) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_constr_30 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_constr_36 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_nr_UE_RxTEG_ID_MaxSupport_r17_value2enum_3[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n3" }, + { 3, 2, "n4" }, + { 4, 2, "n6" }, + { 5, 2, "n8" } +}; +static const unsigned int asn_MAP_nr_UE_RxTEG_ID_MaxSupport_r17_enum2value_3[] = { + 0, /* n1(0) */ + 1, /* n2(1) */ + 2, /* n3(2) */ + 3, /* n4(3) */ + 4, /* n6(4) */ + 5 /* n8(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_UE_RxTEG_ID_MaxSupport_r17_specs_3 = { + asn_MAP_nr_UE_RxTEG_ID_MaxSupport_r17_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_nr_UE_RxTEG_ID_MaxSupport_r17_enum2value_3, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_UE_RxTEG_ID_MaxSupport_r17_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_UE_RxTEG_ID_MaxSupport_r17_3 = { + "nr-UE-RxTEG-ID-MaxSupport-r17", + "nr-UE-RxTEG-ID-MaxSupport-r17", + &asn_OP_NativeEnumerated, + asn_DEF_nr_UE_RxTEG_ID_MaxSupport_r17_tags_3, + sizeof(asn_DEF_nr_UE_RxTEG_ID_MaxSupport_r17_tags_3) + /sizeof(asn_DEF_nr_UE_RxTEG_ID_MaxSupport_r17_tags_3[0]) - 1, /* 1 */ + asn_DEF_nr_UE_RxTEG_ID_MaxSupport_r17_tags_3, /* Same as above */ + sizeof(asn_DEF_nr_UE_RxTEG_ID_MaxSupport_r17_tags_3) + /sizeof(asn_DEF_nr_UE_RxTEG_ID_MaxSupport_r17_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_UE_RxTEG_ID_MaxSupport_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_UE_RxTEG_ID_MaxSupport_r17_specs_3 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_UE_TxTEG_ID_MaxSupport_r17_value2enum_10[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n3" }, + { 3, 2, "n4" }, + { 4, 2, "n6" }, + { 5, 2, "n8" } +}; +static const unsigned int asn_MAP_nr_UE_TxTEG_ID_MaxSupport_r17_enum2value_10[] = { + 0, /* n1(0) */ + 1, /* n2(1) */ + 2, /* n3(2) */ + 3, /* n4(3) */ + 4, /* n6(4) */ + 5 /* n8(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_UE_TxTEG_ID_MaxSupport_r17_specs_10 = { + asn_MAP_nr_UE_TxTEG_ID_MaxSupport_r17_value2enum_10, /* "tag" => N; sorted by tag */ + asn_MAP_nr_UE_TxTEG_ID_MaxSupport_r17_enum2value_10, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_UE_TxTEG_ID_MaxSupport_r17_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_UE_TxTEG_ID_MaxSupport_r17_10 = { + "nr-UE-TxTEG-ID-MaxSupport-r17", + "nr-UE-TxTEG-ID-MaxSupport-r17", + &asn_OP_NativeEnumerated, + asn_DEF_nr_UE_TxTEG_ID_MaxSupport_r17_tags_10, + sizeof(asn_DEF_nr_UE_TxTEG_ID_MaxSupport_r17_tags_10) + /sizeof(asn_DEF_nr_UE_TxTEG_ID_MaxSupport_r17_tags_10[0]) - 1, /* 1 */ + asn_DEF_nr_UE_TxTEG_ID_MaxSupport_r17_tags_10, /* Same as above */ + sizeof(asn_DEF_nr_UE_TxTEG_ID_MaxSupport_r17_tags_10) + /sizeof(asn_DEF_nr_UE_TxTEG_ID_MaxSupport_r17_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_UE_TxTEG_ID_MaxSupport_r17_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_UE_TxTEG_ID_MaxSupport_r17_specs_10 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nr_UE_RxTxTEG_ID_MaxSupport_r17_value2enum_17[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n36" }, + { 10, 3, "n48" }, + { 11, 3, "n64" } +}; +static const unsigned int asn_MAP_nr_UE_RxTxTEG_ID_MaxSupport_r17_enum2value_17[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 9, /* n36(9) */ + 2, /* n4(2) */ + 10, /* n48(10) */ + 3, /* n6(3) */ + 11, /* n64(11) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nr_UE_RxTxTEG_ID_MaxSupport_r17_specs_17 = { + asn_MAP_nr_UE_RxTxTEG_ID_MaxSupport_r17_value2enum_17, /* "tag" => N; sorted by tag */ + asn_MAP_nr_UE_RxTxTEG_ID_MaxSupport_r17_enum2value_17, /* N => "tag"; sorted by N */ + 12, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nr_UE_RxTxTEG_ID_MaxSupport_r17_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_UE_RxTxTEG_ID_MaxSupport_r17_17 = { + "nr-UE-RxTxTEG-ID-MaxSupport-r17", + "nr-UE-RxTxTEG-ID-MaxSupport-r17", + &asn_OP_NativeEnumerated, + asn_DEF_nr_UE_RxTxTEG_ID_MaxSupport_r17_tags_17, + sizeof(asn_DEF_nr_UE_RxTxTEG_ID_MaxSupport_r17_tags_17) + /sizeof(asn_DEF_nr_UE_RxTxTEG_ID_MaxSupport_r17_tags_17[0]) - 1, /* 1 */ + asn_DEF_nr_UE_RxTxTEG_ID_MaxSupport_r17_tags_17, /* Same as above */ + sizeof(asn_DEF_nr_UE_RxTxTEG_ID_MaxSupport_r17_tags_17) + /sizeof(asn_DEF_nr_UE_RxTxTEG_ID_MaxSupport_r17_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_UE_RxTxTEG_ID_MaxSupport_r17_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nr_UE_RxTxTEG_ID_MaxSupport_r17_specs_17 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_value2enum_30[] = { + { 0, 2, "n2" }, + { 1, 2, "n3" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" } +}; +static const unsigned int asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_enum2value_30[] = { + 0, /* n2(0) */ + 1, /* n3(1) */ + 2, /* n4(2) */ + 3, /* n6(3) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_specs_30 = { + asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_value2enum_30, /* "tag" => N; sorted by tag */ + asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_enum2value_30, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_30[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_30 = { + "measureSameDL-PRS-ResourceWithDifferentRxTEGs-r17", + "measureSameDL-PRS-ResourceWithDifferentRxTEGs-r17", + &asn_OP_NativeEnumerated, + asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_30, + sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_30) + /sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_30[0]) - 1, /* 1 */ + asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_30, /* Same as above */ + sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_30) + /sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_tags_30[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_constr_30, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_specs_30 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_value2enum_36[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n3" }, + { 3, 2, "n4" }, + { 4, 2, "n6" }, + { 5, 2, "n8" } +}; +static const unsigned int asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_enum2value_36[] = { + 0, /* n1(0) */ + 1, /* n2(1) */ + 2, /* n3(2) */ + 3, /* n4(3) */ + 4, /* n6(4) */ + 5 /* n8(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_specs_36 = { + asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_value2enum_36, /* "tag" => N; sorted by tag */ + asn_MAP_measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_enum2value_36, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_tags_36[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_36 = { + "measureSameDL-PRS-ResourceWithDifferentRxTEGsSimul-r17", + "measureSameDL-PRS-ResourceWithDifferentRxTEGsSimul-r17", + &asn_OP_NativeEnumerated, + asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_tags_36, + sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_tags_36) + /sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_tags_36[0]) - 1, /* 1 */ + asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_tags_36, /* Same as above */ + sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_tags_36) + /sizeof(asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_tags_36[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_constr_36, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_specs_36 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_UE_TEG_ID_CapabilityPerBand_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_UE_TEG_ID_CapabilityPerBand_r17, freqBandIndicatorNR_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FreqBandIndicatorNR_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "freqBandIndicatorNR-r17" + }, + { ATF_POINTER, 5, offsetof(struct NR_UE_TEG_ID_CapabilityPerBand_r17, nr_UE_RxTEG_ID_MaxSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_UE_RxTEG_ID_MaxSupport_r17_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UE-RxTEG-ID-MaxSupport-r17" + }, + { ATF_POINTER, 4, offsetof(struct NR_UE_TEG_ID_CapabilityPerBand_r17, nr_UE_TxTEG_ID_MaxSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_UE_TxTEG_ID_MaxSupport_r17_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UE-TxTEG-ID-MaxSupport-r17" + }, + { ATF_POINTER, 3, offsetof(struct NR_UE_TEG_ID_CapabilityPerBand_r17, nr_UE_RxTxTEG_ID_MaxSupport_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nr_UE_RxTxTEG_ID_MaxSupport_r17_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UE-RxTxTEG-ID-MaxSupport-r17" + }, + { ATF_POINTER, 2, offsetof(struct NR_UE_TEG_ID_CapabilityPerBand_r17, measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_30, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "measureSameDL-PRS-ResourceWithDifferentRxTEGs-r17" + }, + { ATF_POINTER, 1, offsetof(struct NR_UE_TEG_ID_CapabilityPerBand_r17, measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_36, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "measureSameDL-PRS-ResourceWithDifferentRxTEGsSimul-r17" + }, +}; +static const int asn_MAP_NR_UE_TEG_ID_CapabilityPerBand_r17_oms_1[] = { 1, 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_NR_UE_TEG_ID_CapabilityPerBand_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_UE_TEG_ID_CapabilityPerBand_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* freqBandIndicatorNR-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-UE-RxTEG-ID-MaxSupport-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-UE-TxTEG-ID-MaxSupport-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-UE-RxTxTEG-ID-MaxSupport-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* measureSameDL-PRS-ResourceWithDifferentRxTEGs-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* measureSameDL-PRS-ResourceWithDifferentRxTEGsSimul-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_UE_TEG_ID_CapabilityPerBand_r17_specs_1 = { + sizeof(struct NR_UE_TEG_ID_CapabilityPerBand_r17), + offsetof(struct NR_UE_TEG_ID_CapabilityPerBand_r17, _asn_ctx), + asn_MAP_NR_UE_TEG_ID_CapabilityPerBand_r17_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_NR_UE_TEG_ID_CapabilityPerBand_r17_oms_1, /* Optional members */ + 5, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_UE_TEG_ID_CapabilityPerBand_r17 = { + "NR-UE-TEG-ID-CapabilityPerBand-r17", + "NR-UE-TEG-ID-CapabilityPerBand-r17", + &asn_OP_SEQUENCE, + asn_DEF_NR_UE_TEG_ID_CapabilityPerBand_r17_tags_1, + sizeof(asn_DEF_NR_UE_TEG_ID_CapabilityPerBand_r17_tags_1) + /sizeof(asn_DEF_NR_UE_TEG_ID_CapabilityPerBand_r17_tags_1[0]), /* 1 */ + asn_DEF_NR_UE_TEG_ID_CapabilityPerBand_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_UE_TEG_ID_CapabilityPerBand_r17_tags_1) + /sizeof(asn_DEF_NR_UE_TEG_ID_CapabilityPerBand_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_UE_TEG_ID_CapabilityPerBand_r17_1, + 6, /* Elements count */ + &asn_SPC_NR_UE_TEG_ID_CapabilityPerBand_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-UE-TEG-ID-CapabilityPerBand-r17.h b/asn.1/lpp_generated/NR-UE-TEG-ID-CapabilityPerBand-r17.h new file mode 100644 index 00000000..148b9081 --- /dev/null +++ b/asn.1/lpp_generated/NR-UE-TEG-ID-CapabilityPerBand-r17.h @@ -0,0 +1,102 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_UE_TEG_ID_CapabilityPerBand_r17_H_ +#define _NR_UE_TEG_ID_CapabilityPerBand_r17_H_ + + +#include + +/* Including external dependencies */ +#include "FreqBandIndicatorNR-r16.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTEG_ID_MaxSupport_r17 { + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTEG_ID_MaxSupport_r17_n1 = 0, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTEG_ID_MaxSupport_r17_n2 = 1, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTEG_ID_MaxSupport_r17_n3 = 2, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTEG_ID_MaxSupport_r17_n4 = 3, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTEG_ID_MaxSupport_r17_n6 = 4, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTEG_ID_MaxSupport_r17_n8 = 5 +} e_NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTEG_ID_MaxSupport_r17; +typedef enum NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_TxTEG_ID_MaxSupport_r17 { + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_TxTEG_ID_MaxSupport_r17_n1 = 0, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_TxTEG_ID_MaxSupport_r17_n2 = 1, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_TxTEG_ID_MaxSupport_r17_n3 = 2, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_TxTEG_ID_MaxSupport_r17_n4 = 3, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_TxTEG_ID_MaxSupport_r17_n6 = 4, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_TxTEG_ID_MaxSupport_r17_n8 = 5 +} e_NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_TxTEG_ID_MaxSupport_r17; +typedef enum NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTxTEG_ID_MaxSupport_r17 { + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTxTEG_ID_MaxSupport_r17_n1 = 0, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTxTEG_ID_MaxSupport_r17_n2 = 1, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTxTEG_ID_MaxSupport_r17_n4 = 2, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTxTEG_ID_MaxSupport_r17_n6 = 3, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTxTEG_ID_MaxSupport_r17_n8 = 4, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTxTEG_ID_MaxSupport_r17_n12 = 5, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTxTEG_ID_MaxSupport_r17_n16 = 6, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTxTEG_ID_MaxSupport_r17_n24 = 7, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTxTEG_ID_MaxSupport_r17_n32 = 8, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTxTEG_ID_MaxSupport_r17_n36 = 9, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTxTEG_ID_MaxSupport_r17_n48 = 10, + NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTxTEG_ID_MaxSupport_r17_n64 = 11 +} e_NR_UE_TEG_ID_CapabilityPerBand_r17__nr_UE_RxTxTEG_ID_MaxSupport_r17; +typedef enum NR_UE_TEG_ID_CapabilityPerBand_r17__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17 { + NR_UE_TEG_ID_CapabilityPerBand_r17__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_n2 = 0, + NR_UE_TEG_ID_CapabilityPerBand_r17__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_n3 = 1, + NR_UE_TEG_ID_CapabilityPerBand_r17__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_n4 = 2, + NR_UE_TEG_ID_CapabilityPerBand_r17__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_n6 = 3, + NR_UE_TEG_ID_CapabilityPerBand_r17__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_n8 = 4 +} e_NR_UE_TEG_ID_CapabilityPerBand_r17__measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17; +typedef enum NR_UE_TEG_ID_CapabilityPerBand_r17__measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17 { + NR_UE_TEG_ID_CapabilityPerBand_r17__measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_n1 = 0, + NR_UE_TEG_ID_CapabilityPerBand_r17__measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_n2 = 1, + NR_UE_TEG_ID_CapabilityPerBand_r17__measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_n3 = 2, + NR_UE_TEG_ID_CapabilityPerBand_r17__measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_n4 = 3, + NR_UE_TEG_ID_CapabilityPerBand_r17__measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_n6 = 4, + NR_UE_TEG_ID_CapabilityPerBand_r17__measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_n8 = 5 +} e_NR_UE_TEG_ID_CapabilityPerBand_r17__measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17; + +/* NR-UE-TEG-ID-CapabilityPerBand-r17 */ +typedef struct NR_UE_TEG_ID_CapabilityPerBand_r17 { + FreqBandIndicatorNR_r16_t freqBandIndicatorNR_r17; + long *nr_UE_RxTEG_ID_MaxSupport_r17; /* OPTIONAL */ + long *nr_UE_TxTEG_ID_MaxSupport_r17; /* OPTIONAL */ + long *nr_UE_RxTxTEG_ID_MaxSupport_r17; /* OPTIONAL */ + long *measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17; /* OPTIONAL */ + long *measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_UE_TEG_ID_CapabilityPerBand_r17_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_UE_RxTEG_ID_MaxSupport_r17_3; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_UE_TxTEG_ID_MaxSupport_r17_10; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nr_UE_RxTxTEG_ID_MaxSupport_r17_17; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGs_r17_30; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_measureSameDL_PRS_ResourceWithDifferentRxTEGsSimul_r17_36; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_UE_TEG_ID_CapabilityPerBand_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_UE_TEG_ID_CapabilityPerBand_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_UE_TEG_ID_CapabilityPerBand_r17_1[6]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_UE_TEG_ID_CapabilityPerBand_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-UL-ProvideCapabilities-r16.c b/asn.1/lpp_generated/NR-UL-ProvideCapabilities-r16.c new file mode 100644 index 00000000..dab1f599 --- /dev/null +++ b/asn.1/lpp_generated/NR-UL-ProvideCapabilities-r16.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-UL-ProvideCapabilities-r16.h" + +#include "NR-UE-TEG-Capability-r17.h" +static asn_TYPE_member_t asn_MBR_ext1_4[] = { + { ATF_POINTER, 1, offsetof(struct NR_UL_ProvideCapabilities_r16__ext1, nr_UE_TEG_Capability_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_UE_TEG_Capability_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UE-TEG-Capability-r17" + }, +}; +static const int asn_MAP_ext1_oms_4[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-UE-TEG-Capability-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { + sizeof(struct NR_UL_ProvideCapabilities_r16__ext1), + offsetof(struct NR_UL_ProvideCapabilities_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_4, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_4, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_4 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_4, + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_4, /* Same as above */ + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_4, + 1, /* Elements count */ + &asn_SPC_ext1_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_UL_ProvideCapabilities_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_UL_ProvideCapabilities_r16, nr_UL_SRS_Capability_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_UL_SRS_Capability_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UL-SRS-Capability-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_UL_ProvideCapabilities_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_NR_UL_ProvideCapabilities_r16_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_NR_UL_ProvideCapabilities_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_UL_ProvideCapabilities_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-UL-SRS-Capability-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_UL_ProvideCapabilities_r16_specs_1 = { + sizeof(struct NR_UL_ProvideCapabilities_r16), + offsetof(struct NR_UL_ProvideCapabilities_r16, _asn_ctx), + asn_MAP_NR_UL_ProvideCapabilities_r16_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_NR_UL_ProvideCapabilities_r16_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_UL_ProvideCapabilities_r16 = { + "NR-UL-ProvideCapabilities-r16", + "NR-UL-ProvideCapabilities-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_UL_ProvideCapabilities_r16_tags_1, + sizeof(asn_DEF_NR_UL_ProvideCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_UL_ProvideCapabilities_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_UL_ProvideCapabilities_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_UL_ProvideCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_UL_ProvideCapabilities_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_UL_ProvideCapabilities_r16_1, + 2, /* Elements count */ + &asn_SPC_NR_UL_ProvideCapabilities_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-UL-ProvideCapabilities-r16.h b/asn.1/lpp_generated/NR-UL-ProvideCapabilities-r16.h new file mode 100644 index 00000000..5aab721b --- /dev/null +++ b/asn.1/lpp_generated/NR-UL-ProvideCapabilities-r16.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_UL_ProvideCapabilities_r16_H_ +#define _NR_UL_ProvideCapabilities_r16_H_ + + +#include + +/* Including external dependencies */ +#include "NR-UL-SRS-Capability-r16.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_UE_TEG_Capability_r17; + +/* NR-UL-ProvideCapabilities-r16 */ +typedef struct NR_UL_ProvideCapabilities_r16 { + NR_UL_SRS_Capability_r16_t nr_UL_SRS_Capability_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct NR_UL_ProvideCapabilities_r16__ext1 { + struct NR_UE_TEG_Capability_r17 *nr_UE_TEG_Capability_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_UL_ProvideCapabilities_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_UL_ProvideCapabilities_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_UL_ProvideCapabilities_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_UL_ProvideCapabilities_r16_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_UL_ProvideCapabilities_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-UL-RequestCapabilities-r16.c b/asn.1/lpp_generated/NR-UL-RequestCapabilities-r16.c new file mode 100644 index 00000000..40ee2752 --- /dev/null +++ b/asn.1/lpp_generated/NR-UL-RequestCapabilities-r16.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-UL-RequestCapabilities-r16.h" + +static const ber_tlv_tag_t asn_DEF_NR_UL_RequestCapabilities_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_UL_RequestCapabilities_r16_specs_1 = { + sizeof(struct NR_UL_RequestCapabilities_r16), + offsetof(struct NR_UL_RequestCapabilities_r16, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_UL_RequestCapabilities_r16 = { + "NR-UL-RequestCapabilities-r16", + "NR-UL-RequestCapabilities-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_UL_RequestCapabilities_r16_tags_1, + sizeof(asn_DEF_NR_UL_RequestCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_UL_RequestCapabilities_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_UL_RequestCapabilities_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_UL_RequestCapabilities_r16_tags_1) + /sizeof(asn_DEF_NR_UL_RequestCapabilities_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_NR_UL_RequestCapabilities_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NR-UL-RequestCapabilities-r16.h b/asn.1/lpp_generated/NR-UL-RequestCapabilities-r16.h similarity index 77% rename from asn.1/generated/NR-UL-RequestCapabilities-r16.h rename to asn.1/lpp_generated/NR-UL-RequestCapabilities-r16.h index f7c619e2..afb20c7c 100644 --- a/asn.1/generated/NR-UL-RequestCapabilities-r16.h +++ b/asn.1/lpp_generated/NR-UL-RequestCapabilities-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NR_UL_RequestCapabilities_r16_H_ diff --git a/asn.1/lpp_generated/NR-UL-SRS-Capability-r16.c b/asn.1/lpp_generated/NR-UL-SRS-Capability-r16.c new file mode 100644 index 00000000..b62b65ab --- /dev/null +++ b/asn.1/lpp_generated/NR-UL-SRS-Capability-r16.c @@ -0,0 +1,434 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-UL-SRS-Capability-r16.h" + +#include "SRS-CapabilityPerBand-r16.h" +#include "SRS-PosResourcesPerBand-r16.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_srs_CapabilityBandList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 1024UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_srs_PosResourceConfigCA_BandList_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 16UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_srs_CapabilityBandList_r16_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_srs_PosResourceConfigCA_BandList_r16_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumberSRS_PosPathLossEstimateAllServingCells_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumberSRS_PosSpatialRelationsAllServingCells_r16_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_srs_CapabilityBandList_r16_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_srs_PosResourceConfigCA_BandList_r16_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_srs_CapabilityBandList_r16_2[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SRS_CapabilityPerBand_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_srs_CapabilityBandList_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_srs_CapabilityBandList_r16_specs_2 = { + sizeof(struct NR_UL_SRS_Capability_r16__srs_CapabilityBandList_r16), + offsetof(struct NR_UL_SRS_Capability_r16__srs_CapabilityBandList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_srs_CapabilityBandList_r16_2 = { + "srs-CapabilityBandList-r16", + "srs-CapabilityBandList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_srs_CapabilityBandList_r16_tags_2, + sizeof(asn_DEF_srs_CapabilityBandList_r16_tags_2) + /sizeof(asn_DEF_srs_CapabilityBandList_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_srs_CapabilityBandList_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_srs_CapabilityBandList_r16_tags_2) + /sizeof(asn_DEF_srs_CapabilityBandList_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_srs_CapabilityBandList_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_srs_CapabilityBandList_r16_2, + 1, /* Single element */ + &asn_SPC_srs_CapabilityBandList_r16_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_srs_PosResourceConfigCA_BandList_r16_4[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SRS_PosResourcesPerBand_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_srs_PosResourceConfigCA_BandList_r16_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_srs_PosResourceConfigCA_BandList_r16_specs_4 = { + sizeof(struct NR_UL_SRS_Capability_r16__srs_PosResourceConfigCA_BandList_r16), + offsetof(struct NR_UL_SRS_Capability_r16__srs_PosResourceConfigCA_BandList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_srs_PosResourceConfigCA_BandList_r16_4 = { + "srs-PosResourceConfigCA-BandList-r16", + "srs-PosResourceConfigCA-BandList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_srs_PosResourceConfigCA_BandList_r16_tags_4, + sizeof(asn_DEF_srs_PosResourceConfigCA_BandList_r16_tags_4) + /sizeof(asn_DEF_srs_PosResourceConfigCA_BandList_r16_tags_4[0]) - 1, /* 1 */ + asn_DEF_srs_PosResourceConfigCA_BandList_r16_tags_4, /* Same as above */ + sizeof(asn_DEF_srs_PosResourceConfigCA_BandList_r16_tags_4) + /sizeof(asn_DEF_srs_PosResourceConfigCA_BandList_r16_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_srs_PosResourceConfigCA_BandList_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_srs_PosResourceConfigCA_BandList_r16_4, + 1, /* Single element */ + &asn_SPC_srs_PosResourceConfigCA_BandList_r16_specs_4 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNumberSRS_PosPathLossEstimateAllServingCells_r16_value2enum_6[] = { + { 0, 2, "n1" }, + { 1, 2, "n4" }, + { 2, 2, "n8" }, + { 3, 3, "n16" } +}; +static const unsigned int asn_MAP_maxNumberSRS_PosPathLossEstimateAllServingCells_r16_enum2value_6[] = { + 0, /* n1(0) */ + 3, /* n16(3) */ + 1, /* n4(1) */ + 2 /* n8(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumberSRS_PosPathLossEstimateAllServingCells_r16_specs_6 = { + asn_MAP_maxNumberSRS_PosPathLossEstimateAllServingCells_r16_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumberSRS_PosPathLossEstimateAllServingCells_r16_enum2value_6, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumberSRS_PosPathLossEstimateAllServingCells_r16_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumberSRS_PosPathLossEstimateAllServingCells_r16_6 = { + "maxNumberSRS-PosPathLossEstimateAllServingCells-r16", + "maxNumberSRS-PosPathLossEstimateAllServingCells-r16", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumberSRS_PosPathLossEstimateAllServingCells_r16_tags_6, + sizeof(asn_DEF_maxNumberSRS_PosPathLossEstimateAllServingCells_r16_tags_6) + /sizeof(asn_DEF_maxNumberSRS_PosPathLossEstimateAllServingCells_r16_tags_6[0]) - 1, /* 1 */ + asn_DEF_maxNumberSRS_PosPathLossEstimateAllServingCells_r16_tags_6, /* Same as above */ + sizeof(asn_DEF_maxNumberSRS_PosPathLossEstimateAllServingCells_r16_tags_6) + /sizeof(asn_DEF_maxNumberSRS_PosPathLossEstimateAllServingCells_r16_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumberSRS_PosPathLossEstimateAllServingCells_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumberSRS_PosPathLossEstimateAllServingCells_r16_specs_6 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNumberSRS_PosSpatialRelationsAllServingCells_r16_value2enum_11[] = { + { 0, 2, "n0" }, + { 1, 2, "n1" }, + { 2, 2, "n2" }, + { 3, 2, "n4" }, + { 4, 2, "n8" }, + { 5, 3, "n16" } +}; +static const unsigned int asn_MAP_maxNumberSRS_PosSpatialRelationsAllServingCells_r16_enum2value_11[] = { + 0, /* n0(0) */ + 1, /* n1(1) */ + 5, /* n16(5) */ + 2, /* n2(2) */ + 3, /* n4(3) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumberSRS_PosSpatialRelationsAllServingCells_r16_specs_11 = { + asn_MAP_maxNumberSRS_PosSpatialRelationsAllServingCells_r16_value2enum_11, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumberSRS_PosSpatialRelationsAllServingCells_r16_enum2value_11, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumberSRS_PosSpatialRelationsAllServingCells_r16_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumberSRS_PosSpatialRelationsAllServingCells_r16_11 = { + "maxNumberSRS-PosSpatialRelationsAllServingCells-r16", + "maxNumberSRS-PosSpatialRelationsAllServingCells-r16", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumberSRS_PosSpatialRelationsAllServingCells_r16_tags_11, + sizeof(asn_DEF_maxNumberSRS_PosSpatialRelationsAllServingCells_r16_tags_11) + /sizeof(asn_DEF_maxNumberSRS_PosSpatialRelationsAllServingCells_r16_tags_11[0]) - 1, /* 1 */ + asn_DEF_maxNumberSRS_PosSpatialRelationsAllServingCells_r16_tags_11, /* Same as above */ + sizeof(asn_DEF_maxNumberSRS_PosSpatialRelationsAllServingCells_r16_tags_11) + /sizeof(asn_DEF_maxNumberSRS_PosSpatialRelationsAllServingCells_r16_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumberSRS_PosSpatialRelationsAllServingCells_r16_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumberSRS_PosSpatialRelationsAllServingCells_r16_specs_11 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NR_UL_SRS_Capability_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NR_UL_SRS_Capability_r16, srs_CapabilityBandList_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_srs_CapabilityBandList_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_srs_CapabilityBandList_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_srs_CapabilityBandList_r16_constraint_1 + }, + 0, 0, /* No default value */ + "srs-CapabilityBandList-r16" + }, + { ATF_POINTER, 3, offsetof(struct NR_UL_SRS_Capability_r16, srs_PosResourceConfigCA_BandList_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_srs_PosResourceConfigCA_BandList_r16_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_srs_PosResourceConfigCA_BandList_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_srs_PosResourceConfigCA_BandList_r16_constraint_1 + }, + 0, 0, /* No default value */ + "srs-PosResourceConfigCA-BandList-r16" + }, + { ATF_POINTER, 2, offsetof(struct NR_UL_SRS_Capability_r16, maxNumberSRS_PosPathLossEstimateAllServingCells_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumberSRS_PosPathLossEstimateAllServingCells_r16_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumberSRS-PosPathLossEstimateAllServingCells-r16" + }, + { ATF_POINTER, 1, offsetof(struct NR_UL_SRS_Capability_r16, maxNumberSRS_PosSpatialRelationsAllServingCells_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumberSRS_PosSpatialRelationsAllServingCells_r16_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumberSRS-PosSpatialRelationsAllServingCells-r16" + }, +}; +static const int asn_MAP_NR_UL_SRS_Capability_r16_oms_1[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_NR_UL_SRS_Capability_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NR_UL_SRS_Capability_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* srs-CapabilityBandList-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* srs-PosResourceConfigCA-BandList-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* maxNumberSRS-PosPathLossEstimateAllServingCells-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* maxNumberSRS-PosSpatialRelationsAllServingCells-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NR_UL_SRS_Capability_r16_specs_1 = { + sizeof(struct NR_UL_SRS_Capability_r16), + offsetof(struct NR_UL_SRS_Capability_r16, _asn_ctx), + asn_MAP_NR_UL_SRS_Capability_r16_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_NR_UL_SRS_Capability_r16_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_UL_SRS_Capability_r16 = { + "NR-UL-SRS-Capability-r16", + "NR-UL-SRS-Capability-r16", + &asn_OP_SEQUENCE, + asn_DEF_NR_UL_SRS_Capability_r16_tags_1, + sizeof(asn_DEF_NR_UL_SRS_Capability_r16_tags_1) + /sizeof(asn_DEF_NR_UL_SRS_Capability_r16_tags_1[0]), /* 1 */ + asn_DEF_NR_UL_SRS_Capability_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_UL_SRS_Capability_r16_tags_1) + /sizeof(asn_DEF_NR_UL_SRS_Capability_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NR_UL_SRS_Capability_r16_1, + 4, /* Elements count */ + &asn_SPC_NR_UL_SRS_Capability_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-UL-SRS-Capability-r16.h b/asn.1/lpp_generated/NR-UL-SRS-Capability-r16.h new file mode 100644 index 00000000..b600f926 --- /dev/null +++ b/asn.1/lpp_generated/NR-UL-SRS-Capability-r16.h @@ -0,0 +1,81 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_UL_SRS_Capability_r16_H_ +#define _NR_UL_SRS_Capability_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NR_UL_SRS_Capability_r16__maxNumberSRS_PosPathLossEstimateAllServingCells_r16 { + NR_UL_SRS_Capability_r16__maxNumberSRS_PosPathLossEstimateAllServingCells_r16_n1 = 0, + NR_UL_SRS_Capability_r16__maxNumberSRS_PosPathLossEstimateAllServingCells_r16_n4 = 1, + NR_UL_SRS_Capability_r16__maxNumberSRS_PosPathLossEstimateAllServingCells_r16_n8 = 2, + NR_UL_SRS_Capability_r16__maxNumberSRS_PosPathLossEstimateAllServingCells_r16_n16 = 3 +} e_NR_UL_SRS_Capability_r16__maxNumberSRS_PosPathLossEstimateAllServingCells_r16; +typedef enum NR_UL_SRS_Capability_r16__maxNumberSRS_PosSpatialRelationsAllServingCells_r16 { + NR_UL_SRS_Capability_r16__maxNumberSRS_PosSpatialRelationsAllServingCells_r16_n0 = 0, + NR_UL_SRS_Capability_r16__maxNumberSRS_PosSpatialRelationsAllServingCells_r16_n1 = 1, + NR_UL_SRS_Capability_r16__maxNumberSRS_PosSpatialRelationsAllServingCells_r16_n2 = 2, + NR_UL_SRS_Capability_r16__maxNumberSRS_PosSpatialRelationsAllServingCells_r16_n4 = 3, + NR_UL_SRS_Capability_r16__maxNumberSRS_PosSpatialRelationsAllServingCells_r16_n8 = 4, + NR_UL_SRS_Capability_r16__maxNumberSRS_PosSpatialRelationsAllServingCells_r16_n16 = 5 +} e_NR_UL_SRS_Capability_r16__maxNumberSRS_PosSpatialRelationsAllServingCells_r16; + +/* Forward declarations */ +struct SRS_CapabilityPerBand_r16; +struct SRS_PosResourcesPerBand_r16; + +/* NR-UL-SRS-Capability-r16 */ +typedef struct NR_UL_SRS_Capability_r16 { + struct NR_UL_SRS_Capability_r16__srs_CapabilityBandList_r16 { + A_SEQUENCE_OF(struct SRS_CapabilityPerBand_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } srs_CapabilityBandList_r16; + struct NR_UL_SRS_Capability_r16__srs_PosResourceConfigCA_BandList_r16 { + A_SEQUENCE_OF(struct SRS_PosResourcesPerBand_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *srs_PosResourceConfigCA_BandList_r16; + long *maxNumberSRS_PosPathLossEstimateAllServingCells_r16; /* OPTIONAL */ + long *maxNumberSRS_PosSpatialRelationsAllServingCells_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_UL_SRS_Capability_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumberSRS_PosPathLossEstimateAllServingCells_r16_6; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumberSRS_PosSpatialRelationsAllServingCells_r16_11; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NR_UL_SRS_Capability_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NR_UL_SRS_Capability_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_UL_SRS_Capability_r16_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_UL_SRS_Capability_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NR-linkedDL-PRS-ResourceSetID-PRS-AggregationList-r18.c b/asn.1/lpp_generated/NR-linkedDL-PRS-ResourceSetID-PRS-AggregationList-r18.c new file mode 100644 index 00000000..3b0513c5 --- /dev/null +++ b/asn.1/lpp_generated/NR-linkedDL-PRS-ResourceSetID-PRS-AggregationList-r18.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NR-linkedDL-PRS-ResourceSetID-PRS-AggregationList-r18.h" + +#include "NR-DL-PRS-AggregationElement-r18.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NR_DL_PRS_AggregationElement_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_specs_1 = { + sizeof(struct NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18), + offsetof(struct NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18 = { + "NR-linkedDL-PRS-ResourceSetID-PRS-AggregationList-r18", + "NR-linkedDL-PRS-ResourceSetID-PRS-AggregationList-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_tags_1, + sizeof(asn_DEF_NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_tags_1) + /sizeof(asn_DEF_NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_tags_1[0]), /* 1 */ + asn_DEF_NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_tags_1) + /sizeof(asn_DEF_NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_1, + 1, /* Single element */ + &asn_SPC_NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NR-linkedDL-PRS-ResourceSetID-PRS-AggregationList-r18.h b/asn.1/lpp_generated/NR-linkedDL-PRS-ResourceSetID-PRS-AggregationList-r18.h new file mode 100644 index 00000000..e73c9f90 --- /dev/null +++ b/asn.1/lpp_generated/NR-linkedDL-PRS-ResourceSetID-PRS-AggregationList-r18.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_H_ +#define _NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NR_DL_PRS_AggregationElement_r18; + +/* NR-linkedDL-PRS-ResourceSetID-PRS-AggregationList-r18 */ +typedef struct NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18 { + A_SEQUENCE_OF(struct NR_DL_PRS_AggregationElement_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18; +extern asn_SET_OF_specifics_t asn_SPC_NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_1[1]; +extern asn_per_constraints_t asn_PER_type_NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _NR_linkedDL_PRS_ResourceSetID_PRS_AggregationList_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/NavIC-CDC-r16.c b/asn.1/lpp_generated/NavIC-CDC-r16.c new file mode 100644 index 00000000..60e6c663 --- /dev/null +++ b/asn.1/lpp_generated/NavIC-CDC-r16.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NavIC-CDC-r16.h" + +static int +memb_navic_ClockBiasCorrection_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -4096L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_ClockDriftCorrection_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_ClockBiasCorrection_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_ClockDriftCorrection_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NavIC_CDC_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NavIC_CDC_r16, navic_ClockBiasCorrection_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_ClockBiasCorrection_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_ClockBiasCorrection_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-ClockBiasCorrection-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavIC_CDC_r16, navic_ClockDriftCorrection_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_ClockDriftCorrection_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_ClockDriftCorrection_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-ClockDriftCorrection-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NavIC_CDC_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NavIC_CDC_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* navic-ClockBiasCorrection-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* navic-ClockDriftCorrection-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NavIC_CDC_r16_specs_1 = { + sizeof(struct NavIC_CDC_r16), + offsetof(struct NavIC_CDC_r16, _asn_ctx), + asn_MAP_NavIC_CDC_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NavIC_CDC_r16 = { + "NavIC-CDC-r16", + "NavIC-CDC-r16", + &asn_OP_SEQUENCE, + asn_DEF_NavIC_CDC_r16_tags_1, + sizeof(asn_DEF_NavIC_CDC_r16_tags_1) + /sizeof(asn_DEF_NavIC_CDC_r16_tags_1[0]), /* 1 */ + asn_DEF_NavIC_CDC_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NavIC_CDC_r16_tags_1) + /sizeof(asn_DEF_NavIC_CDC_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NavIC_CDC_r16_1, + 2, /* Elements count */ + &asn_SPC_NavIC_CDC_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NavIC-CDC-r16.h b/asn.1/lpp_generated/NavIC-CDC-r16.h similarity index 78% rename from asn.1/generated/NavIC-CDC-r16.h rename to asn.1/lpp_generated/NavIC-CDC-r16.h index 2fdc75ab..ef17d79b 100644 --- a/asn.1/generated/NavIC-CDC-r16.h +++ b/asn.1/lpp_generated/NavIC-CDC-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NavIC_CDC_r16_H_ diff --git a/asn.1/lpp_generated/NavIC-ClockModel-r16.c b/asn.1/lpp_generated/NavIC-ClockModel-r16.c new file mode 100644 index 00000000..1387aed4 --- /dev/null +++ b/asn.1/lpp_generated/NavIC-ClockModel-r16.c @@ -0,0 +1,298 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NavIC-ClockModel-r16.h" + +static int +memb_navic_Toc_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_af2_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_af1_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_af0_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2097152L && value <= 2097151L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_Tgd_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_Toc_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_af2_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_af1_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_af0_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, -2097152, 2097151 } /* (-2097152..2097151) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_Tgd_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NavIC_ClockModel_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NavIC_ClockModel_r16, navic_Toc_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_Toc_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_Toc_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-Toc-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavIC_ClockModel_r16, navic_af2_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_af2_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_af2_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-af2-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavIC_ClockModel_r16, navic_af1_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_af1_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_af1_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-af1-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavIC_ClockModel_r16, navic_af0_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_af0_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_af0_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-af0-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavIC_ClockModel_r16, navic_Tgd_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_Tgd_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_Tgd_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-Tgd-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NavIC_ClockModel_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NavIC_ClockModel_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* navic-Toc-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* navic-af2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* navic-af1-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* navic-af0-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* navic-Tgd-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NavIC_ClockModel_r16_specs_1 = { + sizeof(struct NavIC_ClockModel_r16), + offsetof(struct NavIC_ClockModel_r16, _asn_ctx), + asn_MAP_NavIC_ClockModel_r16_tag2el_1, + 5, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NavIC_ClockModel_r16 = { + "NavIC-ClockModel-r16", + "NavIC-ClockModel-r16", + &asn_OP_SEQUENCE, + asn_DEF_NavIC_ClockModel_r16_tags_1, + sizeof(asn_DEF_NavIC_ClockModel_r16_tags_1) + /sizeof(asn_DEF_NavIC_ClockModel_r16_tags_1[0]), /* 1 */ + asn_DEF_NavIC_ClockModel_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NavIC_ClockModel_r16_tags_1) + /sizeof(asn_DEF_NavIC_ClockModel_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NavIC_ClockModel_r16_1, + 5, /* Elements count */ + &asn_SPC_NavIC_ClockModel_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NavIC-ClockModel-r16.h b/asn.1/lpp_generated/NavIC-ClockModel-r16.h similarity index 79% rename from asn.1/generated/NavIC-ClockModel-r16.h rename to asn.1/lpp_generated/NavIC-ClockModel-r16.h index c74965f1..974b4db9 100644 --- a/asn.1/generated/NavIC-ClockModel-r16.h +++ b/asn.1/lpp_generated/NavIC-ClockModel-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NavIC_ClockModel_r16_H_ diff --git a/asn.1/lpp_generated/NavIC-CorrectionElementAutoNav-r16.c b/asn.1/lpp_generated/NavIC-CorrectionElementAutoNav-r16.c new file mode 100644 index 00000000..129e310a --- /dev/null +++ b/asn.1/lpp_generated/NavIC-CorrectionElementAutoNav-r16.c @@ -0,0 +1,302 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NavIC-CorrectionElementAutoNav-r16.h" + +static int +memb_navic_Tod_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_iodec_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_UDRAI_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_UDRArateI_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_Tod_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_iodec_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_UDRAI_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, -16, 15 } /* (-16..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_UDRArateI_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, -16, 15 } /* (-16..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NavIC_CorrectionElementAutoNav_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NavIC_CorrectionElementAutoNav_r16, svID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavIC_CorrectionElementAutoNav_r16, navic_Tod_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_Tod_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_Tod_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-Tod-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavIC_CorrectionElementAutoNav_r16, navic_iodec_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_iodec_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_iodec_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-iodec-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavIC_CorrectionElementAutoNav_r16, navic_UDRAI_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_UDRAI_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_UDRAI_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-UDRAI-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavIC_CorrectionElementAutoNav_r16, navic_UDRArateI_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_UDRArateI_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_UDRArateI_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-UDRArateI-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavIC_CorrectionElementAutoNav_r16, navic_EDC_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NavIC_EDC_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "navic-EDC-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavIC_CorrectionElementAutoNav_r16, navic_CDC_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NavIC_CDC_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "navic-CDC-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NavIC_CorrectionElementAutoNav_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NavIC_CorrectionElementAutoNav_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* navic-Tod-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* navic-iodec-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* navic-UDRAI-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* navic-UDRArateI-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* navic-EDC-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* navic-CDC-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NavIC_CorrectionElementAutoNav_r16_specs_1 = { + sizeof(struct NavIC_CorrectionElementAutoNav_r16), + offsetof(struct NavIC_CorrectionElementAutoNav_r16, _asn_ctx), + asn_MAP_NavIC_CorrectionElementAutoNav_r16_tag2el_1, + 7, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NavIC_CorrectionElementAutoNav_r16 = { + "NavIC-CorrectionElementAutoNav-r16", + "NavIC-CorrectionElementAutoNav-r16", + &asn_OP_SEQUENCE, + asn_DEF_NavIC_CorrectionElementAutoNav_r16_tags_1, + sizeof(asn_DEF_NavIC_CorrectionElementAutoNav_r16_tags_1) + /sizeof(asn_DEF_NavIC_CorrectionElementAutoNav_r16_tags_1[0]), /* 1 */ + asn_DEF_NavIC_CorrectionElementAutoNav_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NavIC_CorrectionElementAutoNav_r16_tags_1) + /sizeof(asn_DEF_NavIC_CorrectionElementAutoNav_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NavIC_CorrectionElementAutoNav_r16_1, + 7, /* Elements count */ + &asn_SPC_NavIC_CorrectionElementAutoNav_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NavIC-CorrectionElementAutoNav-r16.h b/asn.1/lpp_generated/NavIC-CorrectionElementAutoNav-r16.h similarity index 83% rename from asn.1/generated/NavIC-CorrectionElementAutoNav-r16.h rename to asn.1/lpp_generated/NavIC-CorrectionElementAutoNav-r16.h index 72d5afec..337614db 100644 --- a/asn.1/generated/NavIC-CorrectionElementAutoNav-r16.h +++ b/asn.1/lpp_generated/NavIC-CorrectionElementAutoNav-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NavIC_CorrectionElementAutoNav_r16_H_ diff --git a/asn.1/lpp_generated/NavIC-CorrectionListAutoNav-r16.c b/asn.1/lpp_generated/NavIC-CorrectionListAutoNav-r16.c new file mode 100644 index 00000000..e86e8368 --- /dev/null +++ b/asn.1/lpp_generated/NavIC-CorrectionListAutoNav-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NavIC-CorrectionListAutoNav-r16.h" + +#include "NavIC-CorrectionElementAutoNav-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NavIC_CorrectionListAutoNav_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NavIC_CorrectionListAutoNav_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NavIC_CorrectionElementAutoNav_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NavIC_CorrectionListAutoNav_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NavIC_CorrectionListAutoNav_r16_specs_1 = { + sizeof(struct NavIC_CorrectionListAutoNav_r16), + offsetof(struct NavIC_CorrectionListAutoNav_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NavIC_CorrectionListAutoNav_r16 = { + "NavIC-CorrectionListAutoNav-r16", + "NavIC-CorrectionListAutoNav-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_NavIC_CorrectionListAutoNav_r16_tags_1, + sizeof(asn_DEF_NavIC_CorrectionListAutoNav_r16_tags_1) + /sizeof(asn_DEF_NavIC_CorrectionListAutoNav_r16_tags_1[0]), /* 1 */ + asn_DEF_NavIC_CorrectionListAutoNav_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NavIC_CorrectionListAutoNav_r16_tags_1) + /sizeof(asn_DEF_NavIC_CorrectionListAutoNav_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NavIC_CorrectionListAutoNav_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NavIC_CorrectionListAutoNav_r16_1, + 1, /* Single element */ + &asn_SPC_NavIC_CorrectionListAutoNav_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NavIC-CorrectionListAutoNav-r16.h b/asn.1/lpp_generated/NavIC-CorrectionListAutoNav-r16.h similarity index 81% rename from asn.1/generated/NavIC-CorrectionListAutoNav-r16.h rename to asn.1/lpp_generated/NavIC-CorrectionListAutoNav-r16.h index 24646bbb..dc1ce18e 100644 --- a/asn.1/generated/NavIC-CorrectionListAutoNav-r16.h +++ b/asn.1/lpp_generated/NavIC-CorrectionListAutoNav-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NavIC_CorrectionListAutoNav_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_NavIC_CorrectionListAutoNav_r16_constr } #endif -/* Referred external types */ -#include "NavIC-CorrectionElementAutoNav-r16.h" - #endif /* _NavIC_CorrectionListAutoNav_r16_H_ */ #include diff --git a/asn.1/lpp_generated/NavIC-DifferentialCorrections-r16.c b/asn.1/lpp_generated/NavIC-DifferentialCorrections-r16.c new file mode 100644 index 00000000..8f4bd1f7 --- /dev/null +++ b/asn.1/lpp_generated/NavIC-DifferentialCorrections-r16.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NavIC-DifferentialCorrections-r16.h" + +static int +memb_navic_RefTOWC_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 50400L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_RefTOWC_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 50400 } /* (0..50400) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NavIC_DifferentialCorrections_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NavIC_DifferentialCorrections_r16, navic_RefTOWC_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_RefTOWC_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_RefTOWC_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-RefTOWC-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavIC_DifferentialCorrections_r16, navic_CorrectionListAutoNav_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NavIC_CorrectionListAutoNav_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "navic-CorrectionListAutoNav-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NavIC_DifferentialCorrections_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NavIC_DifferentialCorrections_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* navic-RefTOWC-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* navic-CorrectionListAutoNav-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NavIC_DifferentialCorrections_r16_specs_1 = { + sizeof(struct NavIC_DifferentialCorrections_r16), + offsetof(struct NavIC_DifferentialCorrections_r16, _asn_ctx), + asn_MAP_NavIC_DifferentialCorrections_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NavIC_DifferentialCorrections_r16 = { + "NavIC-DifferentialCorrections-r16", + "NavIC-DifferentialCorrections-r16", + &asn_OP_SEQUENCE, + asn_DEF_NavIC_DifferentialCorrections_r16_tags_1, + sizeof(asn_DEF_NavIC_DifferentialCorrections_r16_tags_1) + /sizeof(asn_DEF_NavIC_DifferentialCorrections_r16_tags_1[0]), /* 1 */ + asn_DEF_NavIC_DifferentialCorrections_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NavIC_DifferentialCorrections_r16_tags_1) + /sizeof(asn_DEF_NavIC_DifferentialCorrections_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NavIC_DifferentialCorrections_r16_1, + 2, /* Elements count */ + &asn_SPC_NavIC_DifferentialCorrections_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NavIC-DifferentialCorrections-r16.h b/asn.1/lpp_generated/NavIC-DifferentialCorrections-r16.h similarity index 82% rename from asn.1/generated/NavIC-DifferentialCorrections-r16.h rename to asn.1/lpp_generated/NavIC-DifferentialCorrections-r16.h index 4cf358e4..b9f6a0b8 100644 --- a/asn.1/generated/NavIC-DifferentialCorrections-r16.h +++ b/asn.1/lpp_generated/NavIC-DifferentialCorrections-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NavIC_DifferentialCorrections_r16_H_ diff --git a/asn.1/lpp_generated/NavIC-DifferentialCorrectionsReq-r16.c b/asn.1/lpp_generated/NavIC-DifferentialCorrectionsReq-r16.c new file mode 100644 index 00000000..b6752d81 --- /dev/null +++ b/asn.1/lpp_generated/NavIC-DifferentialCorrectionsReq-r16.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NavIC-DifferentialCorrectionsReq-r16.h" + +asn_TYPE_member_t asn_MBR_NavIC_DifferentialCorrectionsReq_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NavIC_DifferentialCorrectionsReq_r16, dgnss_SignalsReq_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalIDs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dgnss-SignalsReq-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NavIC_DifferentialCorrectionsReq_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NavIC_DifferentialCorrectionsReq_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* dgnss-SignalsReq-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NavIC_DifferentialCorrectionsReq_r16_specs_1 = { + sizeof(struct NavIC_DifferentialCorrectionsReq_r16), + offsetof(struct NavIC_DifferentialCorrectionsReq_r16, _asn_ctx), + asn_MAP_NavIC_DifferentialCorrectionsReq_r16_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NavIC_DifferentialCorrectionsReq_r16 = { + "NavIC-DifferentialCorrectionsReq-r16", + "NavIC-DifferentialCorrectionsReq-r16", + &asn_OP_SEQUENCE, + asn_DEF_NavIC_DifferentialCorrectionsReq_r16_tags_1, + sizeof(asn_DEF_NavIC_DifferentialCorrectionsReq_r16_tags_1) + /sizeof(asn_DEF_NavIC_DifferentialCorrectionsReq_r16_tags_1[0]), /* 1 */ + asn_DEF_NavIC_DifferentialCorrectionsReq_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NavIC_DifferentialCorrectionsReq_r16_tags_1) + /sizeof(asn_DEF_NavIC_DifferentialCorrectionsReq_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NavIC_DifferentialCorrectionsReq_r16_1, + 1, /* Elements count */ + &asn_SPC_NavIC_DifferentialCorrectionsReq_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NavIC-DifferentialCorrectionsReq-r16.h b/asn.1/lpp_generated/NavIC-DifferentialCorrectionsReq-r16.h similarity index 81% rename from asn.1/generated/NavIC-DifferentialCorrectionsReq-r16.h rename to asn.1/lpp_generated/NavIC-DifferentialCorrectionsReq-r16.h index 26e8985f..ff21107d 100644 --- a/asn.1/generated/NavIC-DifferentialCorrectionsReq-r16.h +++ b/asn.1/lpp_generated/NavIC-DifferentialCorrectionsReq-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NavIC_DifferentialCorrectionsReq_r16_H_ diff --git a/asn.1/lpp_generated/NavIC-DifferentialCorrectionsSupport-r16.c b/asn.1/lpp_generated/NavIC-DifferentialCorrectionsSupport-r16.c new file mode 100644 index 00000000..4c8e5aaf --- /dev/null +++ b/asn.1/lpp_generated/NavIC-DifferentialCorrectionsSupport-r16.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NavIC-DifferentialCorrectionsSupport-r16.h" + +asn_TYPE_member_t asn_MBR_NavIC_DifferentialCorrectionsSupport_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NavIC_DifferentialCorrectionsSupport_r16, gnssSignalIDs_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalIDs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnssSignalIDs-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NavIC_DifferentialCorrectionsSupport_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NavIC_DifferentialCorrectionsSupport_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gnssSignalIDs-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NavIC_DifferentialCorrectionsSupport_r16_specs_1 = { + sizeof(struct NavIC_DifferentialCorrectionsSupport_r16), + offsetof(struct NavIC_DifferentialCorrectionsSupport_r16, _asn_ctx), + asn_MAP_NavIC_DifferentialCorrectionsSupport_r16_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NavIC_DifferentialCorrectionsSupport_r16 = { + "NavIC-DifferentialCorrectionsSupport-r16", + "NavIC-DifferentialCorrectionsSupport-r16", + &asn_OP_SEQUENCE, + asn_DEF_NavIC_DifferentialCorrectionsSupport_r16_tags_1, + sizeof(asn_DEF_NavIC_DifferentialCorrectionsSupport_r16_tags_1) + /sizeof(asn_DEF_NavIC_DifferentialCorrectionsSupport_r16_tags_1[0]), /* 1 */ + asn_DEF_NavIC_DifferentialCorrectionsSupport_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NavIC_DifferentialCorrectionsSupport_r16_tags_1) + /sizeof(asn_DEF_NavIC_DifferentialCorrectionsSupport_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NavIC_DifferentialCorrectionsSupport_r16_1, + 1, /* Elements count */ + &asn_SPC_NavIC_DifferentialCorrectionsSupport_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NavIC-DifferentialCorrectionsSupport-r16.h b/asn.1/lpp_generated/NavIC-DifferentialCorrectionsSupport-r16.h similarity index 81% rename from asn.1/generated/NavIC-DifferentialCorrectionsSupport-r16.h rename to asn.1/lpp_generated/NavIC-DifferentialCorrectionsSupport-r16.h index 6fcfd313..d68923c7 100644 --- a/asn.1/generated/NavIC-DifferentialCorrectionsSupport-r16.h +++ b/asn.1/lpp_generated/NavIC-DifferentialCorrectionsSupport-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NavIC_DifferentialCorrectionsSupport_r16_H_ diff --git a/asn.1/lpp_generated/NavIC-EDC-r16.c b/asn.1/lpp_generated/NavIC-EDC-r16.c new file mode 100644 index 00000000..fbb8ed99 --- /dev/null +++ b/asn.1/lpp_generated/NavIC-EDC-r16.c @@ -0,0 +1,348 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NavIC-EDC-r16.h" + +static int +memb_navic_AlphaEDC_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8192L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_BetaEDC_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8192L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_GammaEDC_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16384L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_AoIcorrection_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2048L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_AoRAcorrection_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2048L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_SemiMajorcorrection_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2048L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_AlphaEDC_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_BetaEDC_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_GammaEDC_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_AoIcorrection_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_AoRAcorrection_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_SemiMajorcorrection_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NavIC_EDC_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NavIC_EDC_r16, navic_AlphaEDC_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_AlphaEDC_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_AlphaEDC_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-AlphaEDC-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavIC_EDC_r16, navic_BetaEDC_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_BetaEDC_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_BetaEDC_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-BetaEDC-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavIC_EDC_r16, navic_GammaEDC_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_GammaEDC_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_GammaEDC_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-GammaEDC-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavIC_EDC_r16, navic_AoIcorrection_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_AoIcorrection_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_AoIcorrection_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-AoIcorrection-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavIC_EDC_r16, navic_AoRAcorrection_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_AoRAcorrection_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_AoRAcorrection_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-AoRAcorrection-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavIC_EDC_r16, navic_SemiMajorcorrection_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_SemiMajorcorrection_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_SemiMajorcorrection_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-SemiMajorcorrection-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NavIC_EDC_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NavIC_EDC_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* navic-AlphaEDC-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* navic-BetaEDC-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* navic-GammaEDC-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* navic-AoIcorrection-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* navic-AoRAcorrection-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* navic-SemiMajorcorrection-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NavIC_EDC_r16_specs_1 = { + sizeof(struct NavIC_EDC_r16), + offsetof(struct NavIC_EDC_r16, _asn_ctx), + asn_MAP_NavIC_EDC_r16_tag2el_1, + 6, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NavIC_EDC_r16 = { + "NavIC-EDC-r16", + "NavIC-EDC-r16", + &asn_OP_SEQUENCE, + asn_DEF_NavIC_EDC_r16_tags_1, + sizeof(asn_DEF_NavIC_EDC_r16_tags_1) + /sizeof(asn_DEF_NavIC_EDC_r16_tags_1[0]), /* 1 */ + asn_DEF_NavIC_EDC_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NavIC_EDC_r16_tags_1) + /sizeof(asn_DEF_NavIC_EDC_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NavIC_EDC_r16_1, + 6, /* Elements count */ + &asn_SPC_NavIC_EDC_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NavIC-EDC-r16.h b/asn.1/lpp_generated/NavIC-EDC-r16.h similarity index 80% rename from asn.1/generated/NavIC-EDC-r16.h rename to asn.1/lpp_generated/NavIC-EDC-r16.h index 4e5d1446..0a1f9217 100644 --- a/asn.1/generated/NavIC-EDC-r16.h +++ b/asn.1/lpp_generated/NavIC-EDC-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NavIC_EDC_r16_H_ diff --git a/asn.1/lpp_generated/NavIC-GridModelParameter-r16.c b/asn.1/lpp_generated/NavIC-GridModelParameter-r16.c new file mode 100644 index 00000000..b13f3f67 --- /dev/null +++ b/asn.1/lpp_generated/NavIC-GridModelParameter-r16.c @@ -0,0 +1,166 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NavIC-GridModelParameter-r16.h" + +static int +memb_navic_RefTOWC_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 50400L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_regionMasked_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_RefTOWC_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 50400 } /* (0..50400) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_regionMasked_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NavIC_GridModelParameter_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NavIC_GridModelParameter_r16, navic_RefTOWC_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_RefTOWC_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_RefTOWC_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-RefTOWC-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavIC_GridModelParameter_r16, regionMasked_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_regionMasked_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_regionMasked_r16_constraint_1 + }, + 0, 0, /* No default value */ + "regionMasked-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavIC_GridModelParameter_r16, regionIgpList_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RegionIgpList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "regionIgpList-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NavIC_GridModelParameter_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NavIC_GridModelParameter_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* navic-RefTOWC-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* regionMasked-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* regionIgpList-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NavIC_GridModelParameter_r16_specs_1 = { + sizeof(struct NavIC_GridModelParameter_r16), + offsetof(struct NavIC_GridModelParameter_r16, _asn_ctx), + asn_MAP_NavIC_GridModelParameter_r16_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NavIC_GridModelParameter_r16 = { + "NavIC-GridModelParameter-r16", + "NavIC-GridModelParameter-r16", + &asn_OP_SEQUENCE, + asn_DEF_NavIC_GridModelParameter_r16_tags_1, + sizeof(asn_DEF_NavIC_GridModelParameter_r16_tags_1) + /sizeof(asn_DEF_NavIC_GridModelParameter_r16_tags_1[0]), /* 1 */ + asn_DEF_NavIC_GridModelParameter_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NavIC_GridModelParameter_r16_tags_1) + /sizeof(asn_DEF_NavIC_GridModelParameter_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NavIC_GridModelParameter_r16_1, + 3, /* Elements count */ + &asn_SPC_NavIC_GridModelParameter_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NavIC-GridModelParameter-r16.h b/asn.1/lpp_generated/NavIC-GridModelParameter-r16.h similarity index 81% rename from asn.1/generated/NavIC-GridModelParameter-r16.h rename to asn.1/lpp_generated/NavIC-GridModelParameter-r16.h index a05edbda..94f808fb 100644 --- a/asn.1/generated/NavIC-GridModelParameter-r16.h +++ b/asn.1/lpp_generated/NavIC-GridModelParameter-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NavIC_GridModelParameter_r16_H_ diff --git a/asn.1/lpp_generated/NavIC-GridModelReq-r16.c b/asn.1/lpp_generated/NavIC-GridModelReq-r16.c new file mode 100644 index 00000000..152538ba --- /dev/null +++ b/asn.1/lpp_generated/NavIC-GridModelReq-r16.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NavIC-GridModelReq-r16.h" + +static const ber_tlv_tag_t asn_DEF_NavIC_GridModelReq_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_NavIC_GridModelReq_r16_specs_1 = { + sizeof(struct NavIC_GridModelReq_r16), + offsetof(struct NavIC_GridModelReq_r16, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NavIC_GridModelReq_r16 = { + "NavIC-GridModelReq-r16", + "NavIC-GridModelReq-r16", + &asn_OP_SEQUENCE, + asn_DEF_NavIC_GridModelReq_r16_tags_1, + sizeof(asn_DEF_NavIC_GridModelReq_r16_tags_1) + /sizeof(asn_DEF_NavIC_GridModelReq_r16_tags_1[0]), /* 1 */ + asn_DEF_NavIC_GridModelReq_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NavIC_GridModelReq_r16_tags_1) + /sizeof(asn_DEF_NavIC_GridModelReq_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_NavIC_GridModelReq_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NavIC-GridModelReq-r16.h b/asn.1/lpp_generated/NavIC-GridModelReq-r16.h similarity index 76% rename from asn.1/generated/NavIC-GridModelReq-r16.h rename to asn.1/lpp_generated/NavIC-GridModelReq-r16.h index c393cd4f..e6dc0757 100644 --- a/asn.1/generated/NavIC-GridModelReq-r16.h +++ b/asn.1/lpp_generated/NavIC-GridModelReq-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NavIC_GridModelReq_r16_H_ diff --git a/asn.1/lpp_generated/NavIC-GridModelSupport-r16.c b/asn.1/lpp_generated/NavIC-GridModelSupport-r16.c new file mode 100644 index 00000000..f6a8378c --- /dev/null +++ b/asn.1/lpp_generated/NavIC-GridModelSupport-r16.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NavIC-GridModelSupport-r16.h" + +static const ber_tlv_tag_t asn_DEF_NavIC_GridModelSupport_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_NavIC_GridModelSupport_r16_specs_1 = { + sizeof(struct NavIC_GridModelSupport_r16), + offsetof(struct NavIC_GridModelSupport_r16, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NavIC_GridModelSupport_r16 = { + "NavIC-GridModelSupport-r16", + "NavIC-GridModelSupport-r16", + &asn_OP_SEQUENCE, + asn_DEF_NavIC_GridModelSupport_r16_tags_1, + sizeof(asn_DEF_NavIC_GridModelSupport_r16_tags_1) + /sizeof(asn_DEF_NavIC_GridModelSupport_r16_tags_1[0]), /* 1 */ + asn_DEF_NavIC_GridModelSupport_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NavIC_GridModelSupport_r16_tags_1) + /sizeof(asn_DEF_NavIC_GridModelSupport_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_NavIC_GridModelSupport_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NavIC-GridModelSupport-r16.h b/asn.1/lpp_generated/NavIC-GridModelSupport-r16.h similarity index 77% rename from asn.1/generated/NavIC-GridModelSupport-r16.h rename to asn.1/lpp_generated/NavIC-GridModelSupport-r16.h index 88bdf20d..a80c9d98 100644 --- a/asn.1/generated/NavIC-GridModelSupport-r16.h +++ b/asn.1/lpp_generated/NavIC-GridModelSupport-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NavIC_GridModelSupport_r16_H_ diff --git a/asn.1/lpp_generated/NavModel-BDS-KeplerianSet-r12.c b/asn.1/lpp_generated/NavModel-BDS-KeplerianSet-r12.c new file mode 100644 index 00000000..e741990a --- /dev/null +++ b/asn.1/lpp_generated/NavModel-BDS-KeplerianSet-r12.c @@ -0,0 +1,1050 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NavModel-BDS-KeplerianSet-r12.h" + +static int +bdsAPowerHalf_r12_5_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +static int +bdsE_r12_6_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +static int +memb_bdsAODE_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 31L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsURAI_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsToe_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 131071L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsAPowerHalf_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +static int +memb_bdsE_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +static int +memb_bdsW_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsDeltaN_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsM0_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsOmega0_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsOmegaDot_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsI0_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsIDot_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8192L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsCuc_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -131072L && value <= 131071L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsCus_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -131072L && value <= 131071L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsCrc_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -131072L && value <= 131071L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsCrs_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -131072L && value <= 131071L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsCic_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -131072L && value <= 131071L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsCis_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -131072L && value <= 131071L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_bdsAPowerHalf_r12_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_bdsE_r12_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsAODE_r12_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsURAI_r12_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsToe_r12_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 0, 131071 } /* (0..131071) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsAPowerHalf_r12_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsE_r12_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsW_r12_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsDeltaN_r12_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsM0_r12_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsOmega0_r12_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsOmegaDot_r12_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsI0_r12_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsIDot_r12_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsCuc_r12_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 18, -1, -131072, 131071 } /* (-131072..131071) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsCus_r12_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 18, -1, -131072, 131071 } /* (-131072..131071) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsCrc_r12_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 18, -1, -131072, 131071 } /* (-131072..131071) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsCrs_r12_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 18, -1, -131072, 131071 } /* (-131072..131071) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsCic_r12_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 18, -1, -131072, 131071 } /* (-131072..131071) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsCis_r12_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED, 18, -1, -131072, 131071 } /* (-131072..131071) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_specifics_t asn_SPC_bdsAPowerHalf_r12_specs_5 = { + 0, 0, 0, 0, 0, + 0, /* Native long size */ + 1 /* Unsigned representation */ +}; +static const ber_tlv_tag_t asn_DEF_bdsAPowerHalf_r12_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_bdsAPowerHalf_r12_5 = { + "bdsAPowerHalf-r12", + "bdsAPowerHalf-r12", + &asn_OP_NativeInteger, + asn_DEF_bdsAPowerHalf_r12_tags_5, + sizeof(asn_DEF_bdsAPowerHalf_r12_tags_5) + /sizeof(asn_DEF_bdsAPowerHalf_r12_tags_5[0]) - 1, /* 1 */ + asn_DEF_bdsAPowerHalf_r12_tags_5, /* Same as above */ + sizeof(asn_DEF_bdsAPowerHalf_r12_tags_5) + /sizeof(asn_DEF_bdsAPowerHalf_r12_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_bdsAPowerHalf_r12_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + bdsAPowerHalf_r12_5_constraint + }, + 0, 0, /* No members */ + &asn_SPC_bdsAPowerHalf_r12_specs_5 /* Additional specs */ +}; + +static const asn_INTEGER_specifics_t asn_SPC_bdsE_r12_specs_6 = { + 0, 0, 0, 0, 0, + 0, /* Native long size */ + 1 /* Unsigned representation */ +}; +static const ber_tlv_tag_t asn_DEF_bdsE_r12_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_bdsE_r12_6 = { + "bdsE-r12", + "bdsE-r12", + &asn_OP_NativeInteger, + asn_DEF_bdsE_r12_tags_6, + sizeof(asn_DEF_bdsE_r12_tags_6) + /sizeof(asn_DEF_bdsE_r12_tags_6[0]) - 1, /* 1 */ + asn_DEF_bdsE_r12_tags_6, /* Same as above */ + sizeof(asn_DEF_bdsE_r12_tags_6) + /sizeof(asn_DEF_bdsE_r12_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_bdsE_r12_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + bdsE_r12_6_constraint + }, + 0, 0, /* No members */ + &asn_SPC_bdsE_r12_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NavModel_BDS_KeplerianSet_r12_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsAODE_r12), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsAODE_r12_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsAODE_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsAODE-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsURAI_r12), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsURAI_r12_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsURAI_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsURAI-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsToe_r12), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsToe_r12_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsToe_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsToe-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsAPowerHalf_r12), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_bdsAPowerHalf_r12_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsAPowerHalf_r12_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsAPowerHalf_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsAPowerHalf-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsE_r12), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_bdsE_r12_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsE_r12_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsE_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsE-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsW_r12), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsW_r12_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsW_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsW-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsDeltaN_r12), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsDeltaN_r12_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsDeltaN_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsDeltaN-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsM0_r12), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsM0_r12_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsM0_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsM0-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsOmega0_r12), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsOmega0_r12_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsOmega0_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsOmega0-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsOmegaDot_r12), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsOmegaDot_r12_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsOmegaDot_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsOmegaDot-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsI0_r12), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsI0_r12_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsI0_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsI0-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsIDot_r12), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsIDot_r12_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsIDot_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsIDot-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsCuc_r12), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsCuc_r12_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsCuc_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsCuc-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsCus_r12), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsCus_r12_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsCus_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsCus-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsCrc_r12), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsCrc_r12_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsCrc_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsCrc-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsCrs_r12), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsCrs_r12_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsCrs_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsCrs-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsCic_r12), + (ASN_TAG_CLASS_CONTEXT | (16 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsCic_r12_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsCic_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsCic-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet_r12, bdsCis_r12), + (ASN_TAG_CLASS_CONTEXT | (17 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsCis_r12_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsCis_r12_constraint_1 + }, + 0, 0, /* No default value */ + "bdsCis-r12" + }, +}; +static const ber_tlv_tag_t asn_DEF_NavModel_BDS_KeplerianSet_r12_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NavModel_BDS_KeplerianSet_r12_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bdsAODE-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bdsURAI-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bdsToe-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* bdsAPowerHalf-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* bdsE-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* bdsW-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* bdsDeltaN-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* bdsM0-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* bdsOmega0-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* bdsOmegaDot-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* bdsI0-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* bdsIDot-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* bdsCuc-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* bdsCus-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* bdsCrc-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* bdsCrs-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 }, /* bdsCic-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (17 << 2)), 17, 0, 0 } /* bdsCis-r12 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NavModel_BDS_KeplerianSet_r12_specs_1 = { + sizeof(struct NavModel_BDS_KeplerianSet_r12), + offsetof(struct NavModel_BDS_KeplerianSet_r12, _asn_ctx), + asn_MAP_NavModel_BDS_KeplerianSet_r12_tag2el_1, + 18, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 18, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NavModel_BDS_KeplerianSet_r12 = { + "NavModel-BDS-KeplerianSet-r12", + "NavModel-BDS-KeplerianSet-r12", + &asn_OP_SEQUENCE, + asn_DEF_NavModel_BDS_KeplerianSet_r12_tags_1, + sizeof(asn_DEF_NavModel_BDS_KeplerianSet_r12_tags_1) + /sizeof(asn_DEF_NavModel_BDS_KeplerianSet_r12_tags_1[0]), /* 1 */ + asn_DEF_NavModel_BDS_KeplerianSet_r12_tags_1, /* Same as above */ + sizeof(asn_DEF_NavModel_BDS_KeplerianSet_r12_tags_1) + /sizeof(asn_DEF_NavModel_BDS_KeplerianSet_r12_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NavModel_BDS_KeplerianSet_r12_1, + 18, /* Elements count */ + &asn_SPC_NavModel_BDS_KeplerianSet_r12_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NavModel-BDS-KeplerianSet-r12.h b/asn.1/lpp_generated/NavModel-BDS-KeplerianSet-r12.h similarity index 85% rename from asn.1/generated/NavModel-BDS-KeplerianSet-r12.h rename to asn.1/lpp_generated/NavModel-BDS-KeplerianSet-r12.h index 8b18e173..f07c81d9 100644 --- a/asn.1/generated/NavModel-BDS-KeplerianSet-r12.h +++ b/asn.1/lpp_generated/NavModel-BDS-KeplerianSet-r12.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NavModel_BDS_KeplerianSet_r12_H_ diff --git a/asn.1/lpp_generated/NavModel-BDS-KeplerianSet2-r16.c b/asn.1/lpp_generated/NavModel-BDS-KeplerianSet2-r16.c new file mode 100644 index 00000000..2ebc20f6 --- /dev/null +++ b/asn.1/lpp_generated/NavModel-BDS-KeplerianSet2-r16.c @@ -0,0 +1,1028 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NavModel-BDS-KeplerianSet2-r16.h" + +static int +memb_bdsIODE_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsToe_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsDeltaA_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -33554432L && value <= 33554431L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsAdot_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16777216L && value <= 16777216L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsDeltaN0_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -65536L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsDeltaN0dot_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -4194304L && value <= 4194303L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsM0_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(asn_INTEGER2long(st, &value)) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value too large (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if((value >= -4294967296L && value <= 4294967295L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsE_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(asn_INTEGER2long(st, &value)) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value too large (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if((value >= 0L && value <= 8589934591L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsOmega_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(asn_INTEGER2long(st, &value)) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value too large (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if((value >= -4294967296L && value <= 4294967295L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsOmega0_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(asn_INTEGER2long(st, &value)) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value too large (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if((value >= -4294967296L && value <= 4294967295L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsI0_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(asn_INTEGER2long(st, &value)) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value too large (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if((value >= -4294967296L && value <= 4294967295L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsOmegaDot_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -262144L && value <= 262143L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsI0Dot_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16384L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsCuc_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1048576L && value <= 1048575L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsCus_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1048576L && value <= 1048575L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsCrc_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsCrs_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsCic_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bdsCis_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsIODE_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsToe_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsDeltaA_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 26, -1, -33554432, 33554431 } /* (-33554432..33554431) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsAdot_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 26, -1, -16777216, 16777216 } /* (-16777216..16777216) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsDeltaN0_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, -65536, 65535 } /* (-65536..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsDeltaN0dot_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 23, -1, -4194304, 4194303 } /* (-4194304..4194303) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsM0_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 33, -1, -4294967296, 4294967295 } /* (-4294967296..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsE_r16_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 33, -1, 0, 8589934591 } /* (0..8589934591) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsOmega_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 33, -1, -4294967296, 4294967295 } /* (-4294967296..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsOmega0_r16_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 33, -1, -4294967296, 4294967295 } /* (-4294967296..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsI0_r16_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 33, -1, -4294967296, 4294967295 } /* (-4294967296..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsOmegaDot_r16_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 19, -1, -262144, 262143 } /* (-262144..262143) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsI0Dot_r16_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsCuc_r16_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsCus_r16_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsCrc_r16_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsCrs_r16_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsCic_r16_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bdsCis_r16_constr_20 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NavModel_BDS_KeplerianSet2_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsIODE_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsIODE_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsIODE_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsIODE-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsToe_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsToe_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsToe_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsToe-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsDeltaA_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsDeltaA_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsDeltaA_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsDeltaA-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsAdot_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsAdot_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsAdot_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsAdot-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsDeltaN0_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsDeltaN0_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsDeltaN0_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsDeltaN0-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsDeltaN0dot_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsDeltaN0dot_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsDeltaN0dot_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsDeltaN0dot-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsM0_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_INTEGER, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsM0_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsM0_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsM0-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsE_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_INTEGER, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsE_r16_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsE_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsE-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsOmega_r16), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_INTEGER, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsOmega_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsOmega_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsOmega-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsOmega0_r16), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_INTEGER, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsOmega0_r16_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsOmega0_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsOmega0-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsI0_r16), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_INTEGER, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsI0_r16_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsI0_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsI0-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsOmegaDot_r16), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsOmegaDot_r16_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsOmegaDot_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsOmegaDot-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsI0Dot_r16), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsI0Dot_r16_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsI0Dot_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsI0Dot-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsCuc_r16), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsCuc_r16_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsCuc_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsCuc-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsCus_r16), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsCus_r16_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsCus_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsCus-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsCrc_r16), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsCrc_r16_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsCrc_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsCrc-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsCrs_r16), + (ASN_TAG_CLASS_CONTEXT | (16 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsCrs_r16_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsCrs_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsCrs-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsCic_r16), + (ASN_TAG_CLASS_CONTEXT | (17 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsCic_r16_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsCic_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsCic-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_BDS_KeplerianSet2_r16, bdsCis_r16), + (ASN_TAG_CLASS_CONTEXT | (18 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bdsCis_r16_constr_20, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bdsCis_r16_constraint_1 + }, + 0, 0, /* No default value */ + "bdsCis-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NavModel_BDS_KeplerianSet2_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NavModel_BDS_KeplerianSet2_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bdsIODE-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bdsToe-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bdsDeltaA-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* bdsAdot-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* bdsDeltaN0-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* bdsDeltaN0dot-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* bdsM0-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* bdsE-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* bdsOmega-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* bdsOmega0-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* bdsI0-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* bdsOmegaDot-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* bdsI0Dot-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* bdsCuc-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* bdsCus-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* bdsCrc-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 }, /* bdsCrs-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (17 << 2)), 17, 0, 0 }, /* bdsCic-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (18 << 2)), 18, 0, 0 } /* bdsCis-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NavModel_BDS_KeplerianSet2_r16_specs_1 = { + sizeof(struct NavModel_BDS_KeplerianSet2_r16), + offsetof(struct NavModel_BDS_KeplerianSet2_r16, _asn_ctx), + asn_MAP_NavModel_BDS_KeplerianSet2_r16_tag2el_1, + 19, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 19, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NavModel_BDS_KeplerianSet2_r16 = { + "NavModel-BDS-KeplerianSet2-r16", + "NavModel-BDS-KeplerianSet2-r16", + &asn_OP_SEQUENCE, + asn_DEF_NavModel_BDS_KeplerianSet2_r16_tags_1, + sizeof(asn_DEF_NavModel_BDS_KeplerianSet2_r16_tags_1) + /sizeof(asn_DEF_NavModel_BDS_KeplerianSet2_r16_tags_1[0]), /* 1 */ + asn_DEF_NavModel_BDS_KeplerianSet2_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NavModel_BDS_KeplerianSet2_r16_tags_1) + /sizeof(asn_DEF_NavModel_BDS_KeplerianSet2_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NavModel_BDS_KeplerianSet2_r16_1, + 19, /* Elements count */ + &asn_SPC_NavModel_BDS_KeplerianSet2_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NavModel-BDS-KeplerianSet2-r16.h b/asn.1/lpp_generated/NavModel-BDS-KeplerianSet2-r16.h similarity index 84% rename from asn.1/generated/NavModel-BDS-KeplerianSet2-r16.h rename to asn.1/lpp_generated/NavModel-BDS-KeplerianSet2-r16.h index f9e67533..6837e241 100644 --- a/asn.1/generated/NavModel-BDS-KeplerianSet2-r16.h +++ b/asn.1/lpp_generated/NavModel-BDS-KeplerianSet2-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NavModel_BDS_KeplerianSet2_r16_H_ diff --git a/asn.1/lpp_generated/NavModel-GLONASS-ECEF.c b/asn.1/lpp_generated/NavModel-GLONASS-ECEF.c new file mode 100644 index 00000000..dff5fe1b --- /dev/null +++ b/asn.1/lpp_generated/NavModel-GLONASS-ECEF.c @@ -0,0 +1,672 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NavModel-GLONASS-ECEF.h" + +static int +memb_gloEn_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 31L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloP1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 2UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloM_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloX_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -67108864L && value <= 67108863L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloXdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloXdotdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloY_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -67108864L && value <= 67108863L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloYdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloYdotdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloZ_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -67108864L && value <= 67108863L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloZdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gloZdotdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloEn_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloP1_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloM_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloX_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 27, -1, -67108864, 67108863 } /* (-67108864..67108863) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloXdot_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloXdotdot_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, -16, 15 } /* (-16..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloY_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 27, -1, -67108864, 67108863 } /* (-67108864..67108863) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloYdot_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloYdotdot_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, -16, 15 } /* (-16..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloZ_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 27, -1, -67108864, 67108863 } /* (-67108864..67108863) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloZdot_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gloZdotdot_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, -16, 15 } /* (-16..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NavModel_GLONASS_ECEF_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloEn), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloEn_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloEn_constraint_1 + }, + 0, 0, /* No default value */ + "gloEn" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloP1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloP1_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloP1_constraint_1 + }, + 0, 0, /* No default value */ + "gloP1" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloP2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gloP2" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloM), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloM_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloM_constraint_1 + }, + 0, 0, /* No default value */ + "gloM" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloX), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloX_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloX_constraint_1 + }, + 0, 0, /* No default value */ + "gloX" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloXdot), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloXdot_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloXdot_constraint_1 + }, + 0, 0, /* No default value */ + "gloXdot" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloXdotdot), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloXdotdot_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloXdotdot_constraint_1 + }, + 0, 0, /* No default value */ + "gloXdotdot" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloY), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloY_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloY_constraint_1 + }, + 0, 0, /* No default value */ + "gloY" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloYdot), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloYdot_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloYdot_constraint_1 + }, + 0, 0, /* No default value */ + "gloYdot" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloYdotdot), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloYdotdot_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloYdotdot_constraint_1 + }, + 0, 0, /* No default value */ + "gloYdotdot" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloZ), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloZ_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloZ_constraint_1 + }, + 0, 0, /* No default value */ + "gloZ" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloZdot), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloZdot_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloZdot_constraint_1 + }, + 0, 0, /* No default value */ + "gloZdot" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_GLONASS_ECEF, gloZdotdot), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gloZdotdot_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gloZdotdot_constraint_1 + }, + 0, 0, /* No default value */ + "gloZdotdot" + }, +}; +static const ber_tlv_tag_t asn_DEF_NavModel_GLONASS_ECEF_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NavModel_GLONASS_ECEF_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gloEn */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gloP1 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gloP2 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gloM */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gloX */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gloXdot */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gloXdotdot */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* gloY */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* gloYdot */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* gloYdotdot */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* gloZ */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* gloZdot */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 } /* gloZdotdot */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NavModel_GLONASS_ECEF_specs_1 = { + sizeof(struct NavModel_GLONASS_ECEF), + offsetof(struct NavModel_GLONASS_ECEF, _asn_ctx), + asn_MAP_NavModel_GLONASS_ECEF_tag2el_1, + 13, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 13, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NavModel_GLONASS_ECEF = { + "NavModel-GLONASS-ECEF", + "NavModel-GLONASS-ECEF", + &asn_OP_SEQUENCE, + asn_DEF_NavModel_GLONASS_ECEF_tags_1, + sizeof(asn_DEF_NavModel_GLONASS_ECEF_tags_1) + /sizeof(asn_DEF_NavModel_GLONASS_ECEF_tags_1[0]), /* 1 */ + asn_DEF_NavModel_GLONASS_ECEF_tags_1, /* Same as above */ + sizeof(asn_DEF_NavModel_GLONASS_ECEF_tags_1) + /sizeof(asn_DEF_NavModel_GLONASS_ECEF_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NavModel_GLONASS_ECEF_1, + 13, /* Elements count */ + &asn_SPC_NavModel_GLONASS_ECEF_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NavModel-GLONASS-ECEF.h b/asn.1/lpp_generated/NavModel-GLONASS-ECEF.h similarity index 82% rename from asn.1/generated/NavModel-GLONASS-ECEF.h rename to asn.1/lpp_generated/NavModel-GLONASS-ECEF.h index b06ad560..4ff372a7 100644 --- a/asn.1/generated/NavModel-GLONASS-ECEF.h +++ b/asn.1/lpp_generated/NavModel-GLONASS-ECEF.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NavModel_GLONASS_ECEF_H_ diff --git a/asn.1/lpp_generated/NavModel-NavIC-KeplerianSet-r16.c b/asn.1/lpp_generated/NavModel-NavIC-KeplerianSet-r16.c new file mode 100644 index 00000000..5c7030da --- /dev/null +++ b/asn.1/lpp_generated/NavModel-NavIC-KeplerianSet-r16.c @@ -0,0 +1,1000 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NavModel-NavIC-KeplerianSet-r16.h" + +static int +navic_E_r16_8_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +static int +navic_APowerHalf_r16_10_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +static int +memb_navic_Toe_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65536L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_URAI_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_W_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_DeltaN_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2097152L && value <= 2097151L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_M0_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_OmegaDot_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_E_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +static int +memb_navic_IDot_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8192L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_APowerHalf_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +static int +memb_navic_I0_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_Omega0_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_Crs_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_Cis_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_Cus_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_Crc_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_Cic_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navic_Cuc_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_navic_E_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_navic_APowerHalf_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_Toe_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 0, 65536 } /* (0..65536) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_URAI_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_W_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_DeltaN_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, -2097152, 2097151 } /* (-2097152..2097151) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_M0_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_OmegaDot_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_E_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_IDot_r16_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_APowerHalf_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_I0_r16_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_Omega0_r16_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_Crs_r16_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_Cis_r16_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_Cus_r16_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_Crc_r16_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_Cic_r16_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navic_Cuc_r16_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_specifics_t asn_SPC_navic_E_r16_specs_8 = { + 0, 0, 0, 0, 0, + 0, /* Native long size */ + 1 /* Unsigned representation */ +}; +static const ber_tlv_tag_t asn_DEF_navic_E_r16_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_navic_E_r16_8 = { + "navic-E-r16", + "navic-E-r16", + &asn_OP_NativeInteger, + asn_DEF_navic_E_r16_tags_8, + sizeof(asn_DEF_navic_E_r16_tags_8) + /sizeof(asn_DEF_navic_E_r16_tags_8[0]) - 1, /* 1 */ + asn_DEF_navic_E_r16_tags_8, /* Same as above */ + sizeof(asn_DEF_navic_E_r16_tags_8) + /sizeof(asn_DEF_navic_E_r16_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_navic_E_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + navic_E_r16_8_constraint + }, + 0, 0, /* No members */ + &asn_SPC_navic_E_r16_specs_8 /* Additional specs */ +}; + +static const asn_INTEGER_specifics_t asn_SPC_navic_APowerHalf_r16_specs_10 = { + 0, 0, 0, 0, 0, + 0, /* Native long size */ + 1 /* Unsigned representation */ +}; +static const ber_tlv_tag_t asn_DEF_navic_APowerHalf_r16_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_navic_APowerHalf_r16_10 = { + "navic-APowerHalf-r16", + "navic-APowerHalf-r16", + &asn_OP_NativeInteger, + asn_DEF_navic_APowerHalf_r16_tags_10, + sizeof(asn_DEF_navic_APowerHalf_r16_tags_10) + /sizeof(asn_DEF_navic_APowerHalf_r16_tags_10[0]) - 1, /* 1 */ + asn_DEF_navic_APowerHalf_r16_tags_10, /* Same as above */ + sizeof(asn_DEF_navic_APowerHalf_r16_tags_10) + /sizeof(asn_DEF_navic_APowerHalf_r16_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_navic_APowerHalf_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + navic_APowerHalf_r16_10_constraint + }, + 0, 0, /* No members */ + &asn_SPC_navic_APowerHalf_r16_specs_10 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NavModel_NavIC_KeplerianSet_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NavModel_NavIC_KeplerianSet_r16, navic_Toe_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_Toe_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_Toe_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-Toe-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_NavIC_KeplerianSet_r16, navic_URAI_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_URAI_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_URAI_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-URAI-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_NavIC_KeplerianSet_r16, navic_W_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_W_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_W_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-W-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_NavIC_KeplerianSet_r16, navic_DeltaN_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_DeltaN_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_DeltaN_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-DeltaN-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_NavIC_KeplerianSet_r16, navic_M0_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_M0_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_M0_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-M0-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_NavIC_KeplerianSet_r16, navic_OmegaDot_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_OmegaDot_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_OmegaDot_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-OmegaDot-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_NavIC_KeplerianSet_r16, navic_E_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_navic_E_r16_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_E_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_E_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-E-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_NavIC_KeplerianSet_r16, navic_IDot_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_IDot_r16_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_IDot_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-IDot-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_NavIC_KeplerianSet_r16, navic_APowerHalf_r16), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_navic_APowerHalf_r16_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_APowerHalf_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_APowerHalf_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-APowerHalf-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_NavIC_KeplerianSet_r16, navic_I0_r16), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_I0_r16_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_I0_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-I0-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_NavIC_KeplerianSet_r16, navic_Omega0_r16), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_Omega0_r16_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_Omega0_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-Omega0-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_NavIC_KeplerianSet_r16, navic_Crs_r16), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_Crs_r16_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_Crs_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-Crs-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_NavIC_KeplerianSet_r16, navic_Cis_r16), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_Cis_r16_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_Cis_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-Cis-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_NavIC_KeplerianSet_r16, navic_Cus_r16), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_Cus_r16_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_Cus_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-Cus-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_NavIC_KeplerianSet_r16, navic_Crc_r16), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_Crc_r16_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_Crc_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-Crc-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_NavIC_KeplerianSet_r16, navic_Cic_r16), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_Cic_r16_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_Cic_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-Cic-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_NavIC_KeplerianSet_r16, navic_Cuc_r16), + (ASN_TAG_CLASS_CONTEXT | (16 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navic_Cuc_r16_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navic_Cuc_r16_constraint_1 + }, + 0, 0, /* No default value */ + "navic-Cuc-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_NavModel_NavIC_KeplerianSet_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NavModel_NavIC_KeplerianSet_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* navic-Toe-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* navic-URAI-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* navic-W-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* navic-DeltaN-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* navic-M0-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* navic-OmegaDot-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* navic-E-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* navic-IDot-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* navic-APowerHalf-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* navic-I0-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* navic-Omega0-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* navic-Crs-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* navic-Cis-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* navic-Cus-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* navic-Crc-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* navic-Cic-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 } /* navic-Cuc-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NavModel_NavIC_KeplerianSet_r16_specs_1 = { + sizeof(struct NavModel_NavIC_KeplerianSet_r16), + offsetof(struct NavModel_NavIC_KeplerianSet_r16, _asn_ctx), + asn_MAP_NavModel_NavIC_KeplerianSet_r16_tag2el_1, + 17, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 17, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NavModel_NavIC_KeplerianSet_r16 = { + "NavModel-NavIC-KeplerianSet-r16", + "NavModel-NavIC-KeplerianSet-r16", + &asn_OP_SEQUENCE, + asn_DEF_NavModel_NavIC_KeplerianSet_r16_tags_1, + sizeof(asn_DEF_NavModel_NavIC_KeplerianSet_r16_tags_1) + /sizeof(asn_DEF_NavModel_NavIC_KeplerianSet_r16_tags_1[0]), /* 1 */ + asn_DEF_NavModel_NavIC_KeplerianSet_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_NavModel_NavIC_KeplerianSet_r16_tags_1) + /sizeof(asn_DEF_NavModel_NavIC_KeplerianSet_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NavModel_NavIC_KeplerianSet_r16_1, + 17, /* Elements count */ + &asn_SPC_NavModel_NavIC_KeplerianSet_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NavModel-NavIC-KeplerianSet-r16.h b/asn.1/lpp_generated/NavModel-NavIC-KeplerianSet-r16.h new file mode 100644 index 00000000..ef805224 --- /dev/null +++ b/asn.1/lpp_generated/NavModel-NavIC-KeplerianSet-r16.h @@ -0,0 +1,62 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NavModel_NavIC_KeplerianSet_r16_H_ +#define _NavModel_NavIC_KeplerianSet_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NavModel-NavIC-KeplerianSet-r16 */ +typedef struct NavModel_NavIC_KeplerianSet_r16 { + long navic_Toe_r16; + long navic_URAI_r16; + long navic_W_r16; + long navic_DeltaN_r16; + long navic_M0_r16; + long navic_OmegaDot_r16; + unsigned long navic_E_r16; + long navic_IDot_r16; + unsigned long navic_APowerHalf_r16; + long navic_I0_r16; + long navic_Omega0_r16; + long navic_Crs_r16; + long navic_Cis_r16; + long navic_Cus_r16; + long navic_Crc_r16; + long navic_Cic_r16; + long navic_Cuc_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NavModel_NavIC_KeplerianSet_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_navic_E_r16_8; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_navic_APowerHalf_r16_10; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_NavModel_NavIC_KeplerianSet_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_NavModel_NavIC_KeplerianSet_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_NavModel_NavIC_KeplerianSet_r16_1[17]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NavModel_NavIC_KeplerianSet_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/NavModel-SBAS-ECEF.c b/asn.1/lpp_generated/NavModel-SBAS-ECEF.c new file mode 100644 index 00000000..aaac9726 --- /dev/null +++ b/asn.1/lpp_generated/NavModel-SBAS-ECEF.c @@ -0,0 +1,606 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NavModel-SBAS-ECEF.h" + +static int +memb_sbasTo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 5399L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbasAccuracy_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 4UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbasXg_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -536870912L && value <= 536870911L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbasYg_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -536870912L && value <= 536870911L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbasZg_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16777216L && value <= 16777215L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbasXgDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -65536L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbasYgDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -65536L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbasZgDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -131072L && value <= 131071L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbasXgDotDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -512L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbagYgDotDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -512L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbasZgDotDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -512L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasTo_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, 0, 5399 } /* (0..5399) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasAccuracy_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasXg_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 30, -1, -536870912, 536870911 } /* (-536870912..536870911) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasYg_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 30, -1, -536870912, 536870911 } /* (-536870912..536870911) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasZg_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 25, -1, -16777216, 16777215 } /* (-16777216..16777215) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasXgDot_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, -65536, 65535 } /* (-65536..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasYgDot_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, -65536, 65535 } /* (-65536..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasZgDot_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 18, -1, -131072, 131071 } /* (-131072..131071) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasXgDotDot_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbagYgDotDot_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasZgDotDot_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NavModel_SBAS_ECEF_1[] = { + { ATF_POINTER, 1, offsetof(struct NavModel_SBAS_ECEF, sbasTo), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasTo_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasTo_constraint_1 + }, + 0, 0, /* No default value */ + "sbasTo" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbasAccuracy), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasAccuracy_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasAccuracy_constraint_1 + }, + 0, 0, /* No default value */ + "sbasAccuracy" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbasXg), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasXg_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasXg_constraint_1 + }, + 0, 0, /* No default value */ + "sbasXg" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbasYg), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasYg_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasYg_constraint_1 + }, + 0, 0, /* No default value */ + "sbasYg" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbasZg), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasZg_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasZg_constraint_1 + }, + 0, 0, /* No default value */ + "sbasZg" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbasXgDot), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasXgDot_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasXgDot_constraint_1 + }, + 0, 0, /* No default value */ + "sbasXgDot" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbasYgDot), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasYgDot_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasYgDot_constraint_1 + }, + 0, 0, /* No default value */ + "sbasYgDot" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbasZgDot), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasZgDot_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasZgDot_constraint_1 + }, + 0, 0, /* No default value */ + "sbasZgDot" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbasXgDotDot), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasXgDotDot_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasXgDotDot_constraint_1 + }, + 0, 0, /* No default value */ + "sbasXgDotDot" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbagYgDotDot), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbagYgDotDot_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbagYgDotDot_constraint_1 + }, + 0, 0, /* No default value */ + "sbagYgDotDot" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModel_SBAS_ECEF, sbasZgDotDot), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasZgDotDot_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasZgDotDot_constraint_1 + }, + 0, 0, /* No default value */ + "sbasZgDotDot" + }, +}; +static const int asn_MAP_NavModel_SBAS_ECEF_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_NavModel_SBAS_ECEF_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NavModel_SBAS_ECEF_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sbasTo */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sbasAccuracy */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sbasXg */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* sbasYg */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* sbasZg */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* sbasXgDot */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* sbasYgDot */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* sbasZgDot */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* sbasXgDotDot */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* sbagYgDotDot */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 } /* sbasZgDotDot */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NavModel_SBAS_ECEF_specs_1 = { + sizeof(struct NavModel_SBAS_ECEF), + offsetof(struct NavModel_SBAS_ECEF, _asn_ctx), + asn_MAP_NavModel_SBAS_ECEF_tag2el_1, + 11, /* Count of tags in the map */ + asn_MAP_NavModel_SBAS_ECEF_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 11, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NavModel_SBAS_ECEF = { + "NavModel-SBAS-ECEF", + "NavModel-SBAS-ECEF", + &asn_OP_SEQUENCE, + asn_DEF_NavModel_SBAS_ECEF_tags_1, + sizeof(asn_DEF_NavModel_SBAS_ECEF_tags_1) + /sizeof(asn_DEF_NavModel_SBAS_ECEF_tags_1[0]), /* 1 */ + asn_DEF_NavModel_SBAS_ECEF_tags_1, /* Same as above */ + sizeof(asn_DEF_NavModel_SBAS_ECEF_tags_1) + /sizeof(asn_DEF_NavModel_SBAS_ECEF_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NavModel_SBAS_ECEF_1, + 11, /* Elements count */ + &asn_SPC_NavModel_SBAS_ECEF_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NavModel-SBAS-ECEF.h b/asn.1/lpp_generated/NavModel-SBAS-ECEF.h similarity index 79% rename from asn.1/generated/NavModel-SBAS-ECEF.h rename to asn.1/lpp_generated/NavModel-SBAS-ECEF.h index 805f2311..22dca9b4 100644 --- a/asn.1/generated/NavModel-SBAS-ECEF.h +++ b/asn.1/lpp_generated/NavModel-SBAS-ECEF.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NavModel_SBAS_ECEF_H_ @@ -22,7 +22,7 @@ extern "C" { /* NavModel-SBAS-ECEF */ typedef struct NavModel_SBAS_ECEF { - long *sbasTo /* OPTIONAL */; + long *sbasTo; /* OPTIONAL */ BIT_STRING_t sbasAccuracy; long sbasXg; long sbasYg; diff --git a/asn.1/lpp_generated/NavModelCNAV-KeplerianSet.c b/asn.1/lpp_generated/NavModelCNAV-KeplerianSet.c new file mode 100644 index 00000000..904f1d14 --- /dev/null +++ b/asn.1/lpp_generated/NavModelCNAV-KeplerianSet.c @@ -0,0 +1,1028 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NavModelCNAV-KeplerianSet.h" + +static int +memb_cnavTop_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2015L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavURAindex_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavDeltaA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -33554432L && value <= 33554431L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavAdot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16777216L && value <= 16777215L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavDeltaNo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -65536L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavDeltaNoDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -4194304L && value <= 4194303L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavMo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(asn_INTEGER2long(st, &value)) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value too large (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if((value >= -4294967296L && value <= 4294967295L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavE_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(asn_INTEGER2long(st, &value)) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value too large (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if((value >= 0L && value <= 8589934591L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavOmega_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(asn_INTEGER2long(st, &value)) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value too large (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if((value >= -4294967296L && value <= 4294967295L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavOMEGA0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(asn_INTEGER2long(st, &value)) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value too large (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if((value >= -4294967296L && value <= 4294967295L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavDeltaOmegaDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -65536L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavIo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(asn_INTEGER2long(st, &value)) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value too large (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if((value >= -4294967296L && value <= 4294967295L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavIoDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16384L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavCis_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavCic_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavCrs_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavCrc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavCus_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1048576L && value <= 1048575L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cnavCuc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1048576L && value <= 1048575L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavTop_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 2015 } /* (0..2015) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavURAindex_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, -16, 15 } /* (-16..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavDeltaA_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 26, -1, -33554432, 33554431 } /* (-33554432..33554431) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavAdot_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 25, -1, -16777216, 16777215 } /* (-16777216..16777215) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavDeltaNo_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, -65536, 65535 } /* (-65536..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavDeltaNoDot_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 23, -1, -4194304, 4194303 } /* (-4194304..4194303) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavMo_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 33, -1, -4294967296, 4294967295 } /* (-4294967296..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavE_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 33, -1, 0, 8589934591 } /* (0..8589934591) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavOmega_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 33, -1, -4294967296, 4294967295 } /* (-4294967296..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavOMEGA0_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 33, -1, -4294967296, 4294967295 } /* (-4294967296..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavDeltaOmegaDot_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, -65536, 65535 } /* (-65536..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavIo_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 33, -1, -4294967296, 4294967295 } /* (-4294967296..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavIoDot_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavCis_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavCic_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavCrs_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavCrc_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavCus_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cnavCuc_constr_20 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NavModelCNAV_KeplerianSet_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavTop), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavTop_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavTop_constraint_1 + }, + 0, 0, /* No default value */ + "cnavTop" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavURAindex), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavURAindex_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavURAindex_constraint_1 + }, + 0, 0, /* No default value */ + "cnavURAindex" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavDeltaA), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavDeltaA_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavDeltaA_constraint_1 + }, + 0, 0, /* No default value */ + "cnavDeltaA" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavAdot), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavAdot_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavAdot_constraint_1 + }, + 0, 0, /* No default value */ + "cnavAdot" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavDeltaNo), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavDeltaNo_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavDeltaNo_constraint_1 + }, + 0, 0, /* No default value */ + "cnavDeltaNo" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavDeltaNoDot), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavDeltaNoDot_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavDeltaNoDot_constraint_1 + }, + 0, 0, /* No default value */ + "cnavDeltaNoDot" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavMo), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_INTEGER, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavMo_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavMo_constraint_1 + }, + 0, 0, /* No default value */ + "cnavMo" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavE), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_INTEGER, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavE_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavE_constraint_1 + }, + 0, 0, /* No default value */ + "cnavE" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavOmega), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_INTEGER, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavOmega_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavOmega_constraint_1 + }, + 0, 0, /* No default value */ + "cnavOmega" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavOMEGA0), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_INTEGER, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavOMEGA0_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavOMEGA0_constraint_1 + }, + 0, 0, /* No default value */ + "cnavOMEGA0" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavDeltaOmegaDot), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavDeltaOmegaDot_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavDeltaOmegaDot_constraint_1 + }, + 0, 0, /* No default value */ + "cnavDeltaOmegaDot" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavIo), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_INTEGER, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavIo_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavIo_constraint_1 + }, + 0, 0, /* No default value */ + "cnavIo" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavIoDot), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavIoDot_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavIoDot_constraint_1 + }, + 0, 0, /* No default value */ + "cnavIoDot" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavCis), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavCis_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavCis_constraint_1 + }, + 0, 0, /* No default value */ + "cnavCis" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavCic), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavCic_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavCic_constraint_1 + }, + 0, 0, /* No default value */ + "cnavCic" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavCrs), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavCrs_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavCrs_constraint_1 + }, + 0, 0, /* No default value */ + "cnavCrs" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavCrc), + (ASN_TAG_CLASS_CONTEXT | (16 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavCrc_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavCrc_constraint_1 + }, + 0, 0, /* No default value */ + "cnavCrc" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavCus), + (ASN_TAG_CLASS_CONTEXT | (17 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavCus_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavCus_constraint_1 + }, + 0, 0, /* No default value */ + "cnavCus" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelCNAV_KeplerianSet, cnavCuc), + (ASN_TAG_CLASS_CONTEXT | (18 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cnavCuc_constr_20, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cnavCuc_constraint_1 + }, + 0, 0, /* No default value */ + "cnavCuc" + }, +}; +static const ber_tlv_tag_t asn_DEF_NavModelCNAV_KeplerianSet_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NavModelCNAV_KeplerianSet_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cnavTop */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cnavURAindex */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cnavDeltaA */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* cnavAdot */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* cnavDeltaNo */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* cnavDeltaNoDot */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* cnavMo */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* cnavE */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* cnavOmega */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* cnavOMEGA0 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* cnavDeltaOmegaDot */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* cnavIo */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* cnavIoDot */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* cnavCis */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* cnavCic */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* cnavCrs */ + { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 }, /* cnavCrc */ + { (ASN_TAG_CLASS_CONTEXT | (17 << 2)), 17, 0, 0 }, /* cnavCus */ + { (ASN_TAG_CLASS_CONTEXT | (18 << 2)), 18, 0, 0 } /* cnavCuc */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NavModelCNAV_KeplerianSet_specs_1 = { + sizeof(struct NavModelCNAV_KeplerianSet), + offsetof(struct NavModelCNAV_KeplerianSet, _asn_ctx), + asn_MAP_NavModelCNAV_KeplerianSet_tag2el_1, + 19, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 19, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NavModelCNAV_KeplerianSet = { + "NavModelCNAV-KeplerianSet", + "NavModelCNAV-KeplerianSet", + &asn_OP_SEQUENCE, + asn_DEF_NavModelCNAV_KeplerianSet_tags_1, + sizeof(asn_DEF_NavModelCNAV_KeplerianSet_tags_1) + /sizeof(asn_DEF_NavModelCNAV_KeplerianSet_tags_1[0]), /* 1 */ + asn_DEF_NavModelCNAV_KeplerianSet_tags_1, /* Same as above */ + sizeof(asn_DEF_NavModelCNAV_KeplerianSet_tags_1) + /sizeof(asn_DEF_NavModelCNAV_KeplerianSet_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NavModelCNAV_KeplerianSet_1, + 19, /* Elements count */ + &asn_SPC_NavModelCNAV_KeplerianSet_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NavModelCNAV-KeplerianSet.h b/asn.1/lpp_generated/NavModelCNAV-KeplerianSet.h similarity index 84% rename from asn.1/generated/NavModelCNAV-KeplerianSet.h rename to asn.1/lpp_generated/NavModelCNAV-KeplerianSet.h index bdf8c715..bbcaf606 100644 --- a/asn.1/generated/NavModelCNAV-KeplerianSet.h +++ b/asn.1/lpp_generated/NavModelCNAV-KeplerianSet.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NavModelCNAV_KeplerianSet_H_ diff --git a/asn.1/lpp_generated/NavModelKeplerianSet.c b/asn.1/lpp_generated/NavModelKeplerianSet.c new file mode 100644 index 00000000..93d80943 --- /dev/null +++ b/asn.1/lpp_generated/NavModelKeplerianSet.c @@ -0,0 +1,950 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NavModelKeplerianSet.h" + +static int +keplerE_7_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +static int +keplerAPowerHalf_9_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +static int +memb_keplerToe_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_keplerW_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_keplerDeltaN_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_keplerM0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_keplerOmegaDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_keplerE_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +static int +memb_keplerIDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8192L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_keplerAPowerHalf_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +static int +memb_keplerI0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_keplerOmega0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_keplerCrs_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_keplerCis_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_keplerCus_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_keplerCrc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_keplerCic_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_keplerCuc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_keplerE_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_keplerAPowerHalf_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_keplerToe_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_keplerW_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_keplerDeltaN_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_keplerM0_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_keplerOmegaDot_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_keplerE_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_keplerIDot_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_keplerAPowerHalf_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_keplerI0_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_keplerOmega0_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_keplerCrs_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_keplerCis_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_keplerCus_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_keplerCrc_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_keplerCic_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_keplerCuc_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_specifics_t asn_SPC_keplerE_specs_7 = { + 0, 0, 0, 0, 0, + 0, /* Native long size */ + 1 /* Unsigned representation */ +}; +static const ber_tlv_tag_t asn_DEF_keplerE_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_keplerE_7 = { + "keplerE", + "keplerE", + &asn_OP_NativeInteger, + asn_DEF_keplerE_tags_7, + sizeof(asn_DEF_keplerE_tags_7) + /sizeof(asn_DEF_keplerE_tags_7[0]) - 1, /* 1 */ + asn_DEF_keplerE_tags_7, /* Same as above */ + sizeof(asn_DEF_keplerE_tags_7) + /sizeof(asn_DEF_keplerE_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_keplerE_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + keplerE_7_constraint + }, + 0, 0, /* No members */ + &asn_SPC_keplerE_specs_7 /* Additional specs */ +}; + +static const asn_INTEGER_specifics_t asn_SPC_keplerAPowerHalf_specs_9 = { + 0, 0, 0, 0, 0, + 0, /* Native long size */ + 1 /* Unsigned representation */ +}; +static const ber_tlv_tag_t asn_DEF_keplerAPowerHalf_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_keplerAPowerHalf_9 = { + "keplerAPowerHalf", + "keplerAPowerHalf", + &asn_OP_NativeInteger, + asn_DEF_keplerAPowerHalf_tags_9, + sizeof(asn_DEF_keplerAPowerHalf_tags_9) + /sizeof(asn_DEF_keplerAPowerHalf_tags_9[0]) - 1, /* 1 */ + asn_DEF_keplerAPowerHalf_tags_9, /* Same as above */ + sizeof(asn_DEF_keplerAPowerHalf_tags_9) + /sizeof(asn_DEF_keplerAPowerHalf_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_keplerAPowerHalf_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + keplerAPowerHalf_9_constraint + }, + 0, 0, /* No members */ + &asn_SPC_keplerAPowerHalf_specs_9 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NavModelKeplerianSet_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerToe), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_keplerToe_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_keplerToe_constraint_1 + }, + 0, 0, /* No default value */ + "keplerToe" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerW), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_keplerW_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_keplerW_constraint_1 + }, + 0, 0, /* No default value */ + "keplerW" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerDeltaN), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_keplerDeltaN_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_keplerDeltaN_constraint_1 + }, + 0, 0, /* No default value */ + "keplerDeltaN" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerM0), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_keplerM0_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_keplerM0_constraint_1 + }, + 0, 0, /* No default value */ + "keplerM0" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerOmegaDot), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_keplerOmegaDot_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_keplerOmegaDot_constraint_1 + }, + 0, 0, /* No default value */ + "keplerOmegaDot" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerE), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_keplerE_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_keplerE_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_keplerE_constraint_1 + }, + 0, 0, /* No default value */ + "keplerE" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerIDot), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_keplerIDot_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_keplerIDot_constraint_1 + }, + 0, 0, /* No default value */ + "keplerIDot" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerAPowerHalf), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_keplerAPowerHalf_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_keplerAPowerHalf_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_keplerAPowerHalf_constraint_1 + }, + 0, 0, /* No default value */ + "keplerAPowerHalf" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerI0), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_keplerI0_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_keplerI0_constraint_1 + }, + 0, 0, /* No default value */ + "keplerI0" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerOmega0), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_keplerOmega0_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_keplerOmega0_constraint_1 + }, + 0, 0, /* No default value */ + "keplerOmega0" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerCrs), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_keplerCrs_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_keplerCrs_constraint_1 + }, + 0, 0, /* No default value */ + "keplerCrs" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerCis), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_keplerCis_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_keplerCis_constraint_1 + }, + 0, 0, /* No default value */ + "keplerCis" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerCus), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_keplerCus_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_keplerCus_constraint_1 + }, + 0, 0, /* No default value */ + "keplerCus" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerCrc), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_keplerCrc_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_keplerCrc_constraint_1 + }, + 0, 0, /* No default value */ + "keplerCrc" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerCic), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_keplerCic_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_keplerCic_constraint_1 + }, + 0, 0, /* No default value */ + "keplerCic" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelKeplerianSet, keplerCuc), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_keplerCuc_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_keplerCuc_constraint_1 + }, + 0, 0, /* No default value */ + "keplerCuc" + }, +}; +static const ber_tlv_tag_t asn_DEF_NavModelKeplerianSet_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NavModelKeplerianSet_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* keplerToe */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* keplerW */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* keplerDeltaN */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* keplerM0 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* keplerOmegaDot */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* keplerE */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* keplerIDot */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* keplerAPowerHalf */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* keplerI0 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* keplerOmega0 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* keplerCrs */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* keplerCis */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* keplerCus */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* keplerCrc */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* keplerCic */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 } /* keplerCuc */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NavModelKeplerianSet_specs_1 = { + sizeof(struct NavModelKeplerianSet), + offsetof(struct NavModelKeplerianSet, _asn_ctx), + asn_MAP_NavModelKeplerianSet_tag2el_1, + 16, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 16, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NavModelKeplerianSet = { + "NavModelKeplerianSet", + "NavModelKeplerianSet", + &asn_OP_SEQUENCE, + asn_DEF_NavModelKeplerianSet_tags_1, + sizeof(asn_DEF_NavModelKeplerianSet_tags_1) + /sizeof(asn_DEF_NavModelKeplerianSet_tags_1[0]), /* 1 */ + asn_DEF_NavModelKeplerianSet_tags_1, /* Same as above */ + sizeof(asn_DEF_NavModelKeplerianSet_tags_1) + /sizeof(asn_DEF_NavModelKeplerianSet_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NavModelKeplerianSet_1, + 16, /* Elements count */ + &asn_SPC_NavModelKeplerianSet_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NavModelKeplerianSet.h b/asn.1/lpp_generated/NavModelKeplerianSet.h similarity index 84% rename from asn.1/generated/NavModelKeplerianSet.h rename to asn.1/lpp_generated/NavModelKeplerianSet.h index 3b2a3099..47701b83 100644 --- a/asn.1/generated/NavModelKeplerianSet.h +++ b/asn.1/lpp_generated/NavModelKeplerianSet.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NavModelKeplerianSet_H_ diff --git a/asn.1/lpp_generated/NavModelNAV-KeplerianSet.c b/asn.1/lpp_generated/NavModelNAV-KeplerianSet.c new file mode 100644 index 00000000..7c748aaf --- /dev/null +++ b/asn.1/lpp_generated/NavModelNAV-KeplerianSet.c @@ -0,0 +1,1520 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NavModelNAV-KeplerianSet.h" + +static int +navE_9_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +static int +navAPowerHalf_11_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +static int +memb_reserved1_constraint_23(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_reserved2_constraint_23(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16777215L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_reserved3_constraint_23(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16777215L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_reserved4_constraint_23(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ephemCodeOnL2_constraint_20(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ephemL2Pflag_constraint_20(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ephemAODA_constraint_20(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 31L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navURA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navFitFlag_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navToe_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 37799L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navOmega_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navDeltaN_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navM0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navOmegaADot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navE_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +static int +memb_navIDot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8192L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navAPowerHalf_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +static int +memb_navI0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navOmegaA0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navCrs_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navCis_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navCus_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navCrc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navCic_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_navCuc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_navE_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_navAPowerHalf_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_reserved1_constr_24 CC_NOTUSED = { + { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_reserved2_constr_25 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_reserved3_constr_26 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_reserved4_constr_27 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ephemCodeOnL2_constr_21 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ephemL2Pflag_constr_22 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ephemAODA_constr_28 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navURA_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navFitFlag_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navToe_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 37799 } /* (0..37799) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navOmega_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navDeltaN_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navM0_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navOmegaADot_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navE_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navIDot_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navAPowerHalf_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navI0_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navOmegaA0_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navCrs_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navCis_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navCus_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navCrc_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navCic_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_navCuc_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_specifics_t asn_SPC_navE_specs_9 = { + 0, 0, 0, 0, 0, + 0, /* Native long size */ + 1 /* Unsigned representation */ +}; +static const ber_tlv_tag_t asn_DEF_navE_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_navE_9 = { + "navE", + "navE", + &asn_OP_NativeInteger, + asn_DEF_navE_tags_9, + sizeof(asn_DEF_navE_tags_9) + /sizeof(asn_DEF_navE_tags_9[0]) - 1, /* 1 */ + asn_DEF_navE_tags_9, /* Same as above */ + sizeof(asn_DEF_navE_tags_9) + /sizeof(asn_DEF_navE_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_navE_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + navE_9_constraint + }, + 0, 0, /* No members */ + &asn_SPC_navE_specs_9 /* Additional specs */ +}; + +static const asn_INTEGER_specifics_t asn_SPC_navAPowerHalf_specs_11 = { + 0, 0, 0, 0, 0, + 0, /* Native long size */ + 1 /* Unsigned representation */ +}; +static const ber_tlv_tag_t asn_DEF_navAPowerHalf_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_navAPowerHalf_11 = { + "navAPowerHalf", + "navAPowerHalf", + &asn_OP_NativeInteger, + asn_DEF_navAPowerHalf_tags_11, + sizeof(asn_DEF_navAPowerHalf_tags_11) + /sizeof(asn_DEF_navAPowerHalf_tags_11[0]) - 1, /* 1 */ + asn_DEF_navAPowerHalf_tags_11, /* Same as above */ + sizeof(asn_DEF_navAPowerHalf_tags_11) + /sizeof(asn_DEF_navAPowerHalf_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_navAPowerHalf_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + navAPowerHalf_11_constraint + }, + 0, 0, /* No members */ + &asn_SPC_navAPowerHalf_specs_11 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ephemSF1Rsvd_23[] = { + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet__addNAVparam__ephemSF1Rsvd, reserved1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_reserved1_constr_24, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_reserved1_constraint_23 + }, + 0, 0, /* No default value */ + "reserved1" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet__addNAVparam__ephemSF1Rsvd, reserved2), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_reserved2_constr_25, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_reserved2_constraint_23 + }, + 0, 0, /* No default value */ + "reserved2" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet__addNAVparam__ephemSF1Rsvd, reserved3), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_reserved3_constr_26, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_reserved3_constraint_23 + }, + 0, 0, /* No default value */ + "reserved3" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet__addNAVparam__ephemSF1Rsvd, reserved4), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_reserved4_constr_27, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_reserved4_constraint_23 + }, + 0, 0, /* No default value */ + "reserved4" + }, +}; +static const ber_tlv_tag_t asn_DEF_ephemSF1Rsvd_tags_23[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ephemSF1Rsvd_tag2el_23[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* reserved1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* reserved2 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* reserved3 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* reserved4 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ephemSF1Rsvd_specs_23 = { + sizeof(struct NavModelNAV_KeplerianSet__addNAVparam__ephemSF1Rsvd), + offsetof(struct NavModelNAV_KeplerianSet__addNAVparam__ephemSF1Rsvd, _asn_ctx), + asn_MAP_ephemSF1Rsvd_tag2el_23, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ephemSF1Rsvd_23 = { + "ephemSF1Rsvd", + "ephemSF1Rsvd", + &asn_OP_SEQUENCE, + asn_DEF_ephemSF1Rsvd_tags_23, + sizeof(asn_DEF_ephemSF1Rsvd_tags_23) + /sizeof(asn_DEF_ephemSF1Rsvd_tags_23[0]) - 1, /* 1 */ + asn_DEF_ephemSF1Rsvd_tags_23, /* Same as above */ + sizeof(asn_DEF_ephemSF1Rsvd_tags_23) + /sizeof(asn_DEF_ephemSF1Rsvd_tags_23[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ephemSF1Rsvd_23, + 4, /* Elements count */ + &asn_SPC_ephemSF1Rsvd_specs_23 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_addNAVparam_20[] = { + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet__addNAVparam, ephemCodeOnL2), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ephemCodeOnL2_constr_21, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ephemCodeOnL2_constraint_20 + }, + 0, 0, /* No default value */ + "ephemCodeOnL2" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet__addNAVparam, ephemL2Pflag), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ephemL2Pflag_constr_22, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ephemL2Pflag_constraint_20 + }, + 0, 0, /* No default value */ + "ephemL2Pflag" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet__addNAVparam, ephemSF1Rsvd), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ephemSF1Rsvd_23, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ephemSF1Rsvd" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet__addNAVparam, ephemAODA), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ephemAODA_constr_28, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ephemAODA_constraint_20 + }, + 0, 0, /* No default value */ + "ephemAODA" + }, +}; +static const ber_tlv_tag_t asn_DEF_addNAVparam_tags_20[] = { + (ASN_TAG_CLASS_CONTEXT | (18 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_addNAVparam_tag2el_20[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ephemCodeOnL2 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ephemL2Pflag */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ephemSF1Rsvd */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ephemAODA */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_addNAVparam_specs_20 = { + sizeof(struct NavModelNAV_KeplerianSet__addNAVparam), + offsetof(struct NavModelNAV_KeplerianSet__addNAVparam, _asn_ctx), + asn_MAP_addNAVparam_tag2el_20, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_addNAVparam_20 = { + "addNAVparam", + "addNAVparam", + &asn_OP_SEQUENCE, + asn_DEF_addNAVparam_tags_20, + sizeof(asn_DEF_addNAVparam_tags_20) + /sizeof(asn_DEF_addNAVparam_tags_20[0]) - 1, /* 1 */ + asn_DEF_addNAVparam_tags_20, /* Same as above */ + sizeof(asn_DEF_addNAVparam_tags_20) + /sizeof(asn_DEF_addNAVparam_tags_20[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_addNAVparam_20, + 4, /* Elements count */ + &asn_SPC_addNAVparam_specs_20 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NavModelNAV_KeplerianSet_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navURA), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navURA_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navURA_constraint_1 + }, + 0, 0, /* No default value */ + "navURA" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navFitFlag), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navFitFlag_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navFitFlag_constraint_1 + }, + 0, 0, /* No default value */ + "navFitFlag" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navToe), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navToe_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navToe_constraint_1 + }, + 0, 0, /* No default value */ + "navToe" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navOmega), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navOmega_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navOmega_constraint_1 + }, + 0, 0, /* No default value */ + "navOmega" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navDeltaN), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navDeltaN_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navDeltaN_constraint_1 + }, + 0, 0, /* No default value */ + "navDeltaN" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navM0), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navM0_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navM0_constraint_1 + }, + 0, 0, /* No default value */ + "navM0" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navOmegaADot), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navOmegaADot_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navOmegaADot_constraint_1 + }, + 0, 0, /* No default value */ + "navOmegaADot" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navE), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_navE_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navE_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navE_constraint_1 + }, + 0, 0, /* No default value */ + "navE" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navIDot), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navIDot_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navIDot_constraint_1 + }, + 0, 0, /* No default value */ + "navIDot" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navAPowerHalf), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_navAPowerHalf_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navAPowerHalf_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navAPowerHalf_constraint_1 + }, + 0, 0, /* No default value */ + "navAPowerHalf" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navI0), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navI0_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navI0_constraint_1 + }, + 0, 0, /* No default value */ + "navI0" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navOmegaA0), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navOmegaA0_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navOmegaA0_constraint_1 + }, + 0, 0, /* No default value */ + "navOmegaA0" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navCrs), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navCrs_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navCrs_constraint_1 + }, + 0, 0, /* No default value */ + "navCrs" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navCis), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navCis_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navCis_constraint_1 + }, + 0, 0, /* No default value */ + "navCis" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navCus), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navCus_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navCus_constraint_1 + }, + 0, 0, /* No default value */ + "navCus" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navCrc), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navCrc_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navCrc_constraint_1 + }, + 0, 0, /* No default value */ + "navCrc" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navCic), + (ASN_TAG_CLASS_CONTEXT | (16 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navCic_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navCic_constraint_1 + }, + 0, 0, /* No default value */ + "navCic" + }, + { ATF_NOFLAGS, 0, offsetof(struct NavModelNAV_KeplerianSet, navCuc), + (ASN_TAG_CLASS_CONTEXT | (17 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_navCuc_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_navCuc_constraint_1 + }, + 0, 0, /* No default value */ + "navCuc" + }, + { ATF_POINTER, 1, offsetof(struct NavModelNAV_KeplerianSet, addNAVparam), + (ASN_TAG_CLASS_CONTEXT | (18 << 2)), + 0, + &asn_DEF_addNAVparam_20, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "addNAVparam" + }, +}; +static const int asn_MAP_NavModelNAV_KeplerianSet_oms_1[] = { 18 }; +static const ber_tlv_tag_t asn_DEF_NavModelNAV_KeplerianSet_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NavModelNAV_KeplerianSet_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* navURA */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* navFitFlag */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* navToe */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* navOmega */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* navDeltaN */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* navM0 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* navOmegaADot */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* navE */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* navIDot */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* navAPowerHalf */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* navI0 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* navOmegaA0 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* navCrs */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* navCis */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* navCus */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* navCrc */ + { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 }, /* navCic */ + { (ASN_TAG_CLASS_CONTEXT | (17 << 2)), 17, 0, 0 }, /* navCuc */ + { (ASN_TAG_CLASS_CONTEXT | (18 << 2)), 18, 0, 0 } /* addNAVparam */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NavModelNAV_KeplerianSet_specs_1 = { + sizeof(struct NavModelNAV_KeplerianSet), + offsetof(struct NavModelNAV_KeplerianSet, _asn_ctx), + asn_MAP_NavModelNAV_KeplerianSet_tag2el_1, + 19, /* Count of tags in the map */ + asn_MAP_NavModelNAV_KeplerianSet_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 19, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NavModelNAV_KeplerianSet = { + "NavModelNAV-KeplerianSet", + "NavModelNAV-KeplerianSet", + &asn_OP_SEQUENCE, + asn_DEF_NavModelNAV_KeplerianSet_tags_1, + sizeof(asn_DEF_NavModelNAV_KeplerianSet_tags_1) + /sizeof(asn_DEF_NavModelNAV_KeplerianSet_tags_1[0]), /* 1 */ + asn_DEF_NavModelNAV_KeplerianSet_tags_1, /* Same as above */ + sizeof(asn_DEF_NavModelNAV_KeplerianSet_tags_1) + /sizeof(asn_DEF_NavModelNAV_KeplerianSet_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NavModelNAV_KeplerianSet_1, + 19, /* Elements count */ + &asn_SPC_NavModelNAV_KeplerianSet_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NavModelNAV-KeplerianSet.h b/asn.1/lpp_generated/NavModelNAV-KeplerianSet.h similarity index 88% rename from asn.1/generated/NavModelNAV-KeplerianSet.h rename to asn.1/lpp_generated/NavModelNAV-KeplerianSet.h index 575f851f..0bfceca1 100644 --- a/asn.1/generated/NavModelNAV-KeplerianSet.h +++ b/asn.1/lpp_generated/NavModelNAV-KeplerianSet.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NavModelNAV_KeplerianSet_H_ diff --git a/asn.1/lpp_generated/NeQuickModelParameter.c b/asn.1/lpp_generated/NeQuickModelParameter.c new file mode 100644 index 00000000..45130123 --- /dev/null +++ b/asn.1/lpp_generated/NeQuickModelParameter.c @@ -0,0 +1,450 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NeQuickModelParameter.h" + +static int +memb_ai0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ai1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ai2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8192L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ionoStormFlag1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ionoStormFlag2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ionoStormFlag3_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ionoStormFlag4_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ionoStormFlag5_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ai0_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ai1_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ai2_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ionoStormFlag1_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ionoStormFlag2_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ionoStormFlag3_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ionoStormFlag4_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ionoStormFlag5_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NeQuickModelParameter_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NeQuickModelParameter, ai0), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ai0_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ai0_constraint_1 + }, + 0, 0, /* No default value */ + "ai0" + }, + { ATF_NOFLAGS, 0, offsetof(struct NeQuickModelParameter, ai1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ai1_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ai1_constraint_1 + }, + 0, 0, /* No default value */ + "ai1" + }, + { ATF_NOFLAGS, 0, offsetof(struct NeQuickModelParameter, ai2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ai2_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ai2_constraint_1 + }, + 0, 0, /* No default value */ + "ai2" + }, + { ATF_POINTER, 5, offsetof(struct NeQuickModelParameter, ionoStormFlag1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ionoStormFlag1_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ionoStormFlag1_constraint_1 + }, + 0, 0, /* No default value */ + "ionoStormFlag1" + }, + { ATF_POINTER, 4, offsetof(struct NeQuickModelParameter, ionoStormFlag2), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ionoStormFlag2_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ionoStormFlag2_constraint_1 + }, + 0, 0, /* No default value */ + "ionoStormFlag2" + }, + { ATF_POINTER, 3, offsetof(struct NeQuickModelParameter, ionoStormFlag3), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ionoStormFlag3_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ionoStormFlag3_constraint_1 + }, + 0, 0, /* No default value */ + "ionoStormFlag3" + }, + { ATF_POINTER, 2, offsetof(struct NeQuickModelParameter, ionoStormFlag4), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ionoStormFlag4_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ionoStormFlag4_constraint_1 + }, + 0, 0, /* No default value */ + "ionoStormFlag4" + }, + { ATF_POINTER, 1, offsetof(struct NeQuickModelParameter, ionoStormFlag5), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ionoStormFlag5_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ionoStormFlag5_constraint_1 + }, + 0, 0, /* No default value */ + "ionoStormFlag5" + }, +}; +static const int asn_MAP_NeQuickModelParameter_oms_1[] = { 3, 4, 5, 6, 7 }; +static const ber_tlv_tag_t asn_DEF_NeQuickModelParameter_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NeQuickModelParameter_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ai0 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ai1 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ai2 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ionoStormFlag1 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ionoStormFlag2 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ionoStormFlag3 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ionoStormFlag4 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* ionoStormFlag5 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NeQuickModelParameter_specs_1 = { + sizeof(struct NeQuickModelParameter), + offsetof(struct NeQuickModelParameter, _asn_ctx), + asn_MAP_NeQuickModelParameter_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_NeQuickModelParameter_oms_1, /* Optional members */ + 5, 0, /* Root/Additions */ + 8, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NeQuickModelParameter = { + "NeQuickModelParameter", + "NeQuickModelParameter", + &asn_OP_SEQUENCE, + asn_DEF_NeQuickModelParameter_tags_1, + sizeof(asn_DEF_NeQuickModelParameter_tags_1) + /sizeof(asn_DEF_NeQuickModelParameter_tags_1[0]), /* 1 */ + asn_DEF_NeQuickModelParameter_tags_1, /* Same as above */ + sizeof(asn_DEF_NeQuickModelParameter_tags_1) + /sizeof(asn_DEF_NeQuickModelParameter_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NeQuickModelParameter_1, + 8, /* Elements count */ + &asn_SPC_NeQuickModelParameter_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NeQuickModelParameter.h b/asn.1/lpp_generated/NeQuickModelParameter.h new file mode 100644 index 00000000..8fb8aaaf --- /dev/null +++ b/asn.1/lpp_generated/NeQuickModelParameter.h @@ -0,0 +1,51 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NeQuickModelParameter_H_ +#define _NeQuickModelParameter_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* NeQuickModelParameter */ +typedef struct NeQuickModelParameter { + long ai0; + long ai1; + long ai2; + long *ionoStormFlag1; /* OPTIONAL */ + long *ionoStormFlag2; /* OPTIONAL */ + long *ionoStormFlag3; /* OPTIONAL */ + long *ionoStormFlag4; /* OPTIONAL */ + long *ionoStormFlag5; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NeQuickModelParameter_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NeQuickModelParameter; +extern asn_SEQUENCE_specifics_t asn_SPC_NeQuickModelParameter_specs_1; +extern asn_TYPE_member_t asn_MBR_NeQuickModelParameter_1[8]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NeQuickModelParameter_H_ */ +#include diff --git a/asn.1/lpp_generated/NeighbourMeasurementElement-NB-r14.c b/asn.1/lpp_generated/NeighbourMeasurementElement-NB-r14.c new file mode 100644 index 00000000..c1e27174 --- /dev/null +++ b/asn.1/lpp_generated/NeighbourMeasurementElement-NB-r14.c @@ -0,0 +1,442 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NeighbourMeasurementElement-NB-r14.h" + +#include "ECGI.h" +#include "AdditionalPathList-r14.h" +static int +memb_physCellIdNeighbour_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 503L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_rstd_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 12711L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_tpIdNeighbour_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_prsIdNeighbour_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_delta_rstd_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 5L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nprsIdNeighbour_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_physCellIdNeighbour_r14_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rstd_r14_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 12711 } /* (0..12711) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tpIdNeighbour_r14_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_prsIdNeighbour_r14_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_delta_rstd_r14_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nprsIdNeighbour_r14_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NeighbourMeasurementElement_NB_r14_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NeighbourMeasurementElement_NB_r14, physCellIdNeighbour_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_physCellIdNeighbour_r14_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_physCellIdNeighbour_r14_constraint_1 + }, + 0, 0, /* No default value */ + "physCellIdNeighbour-r14" + }, + { ATF_POINTER, 2, offsetof(struct NeighbourMeasurementElement_NB_r14, cellGlobalIdNeighbour_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ECGI, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellGlobalIdNeighbour-r14" + }, + { ATF_POINTER, 1, offsetof(struct NeighbourMeasurementElement_NB_r14, earfcnNeighbour_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueEUTRA_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "earfcnNeighbour-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct NeighbourMeasurementElement_NB_r14, rstd_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rstd_r14_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rstd_r14_constraint_1 + }, + 0, 0, /* No default value */ + "rstd-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct NeighbourMeasurementElement_NB_r14, rstd_Quality_r14), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OTDOA_MeasQuality, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rstd-Quality-r14" + }, + { ATF_POINTER, 6, offsetof(struct NeighbourMeasurementElement_NB_r14, tpIdNeighbour_r14), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tpIdNeighbour_r14_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tpIdNeighbour_r14_constraint_1 + }, + 0, 0, /* No default value */ + "tpIdNeighbour-r14" + }, + { ATF_POINTER, 5, offsetof(struct NeighbourMeasurementElement_NB_r14, prsIdNeighbour_r14), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_prsIdNeighbour_r14_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_prsIdNeighbour_r14_constraint_1 + }, + 0, 0, /* No default value */ + "prsIdNeighbour-r14" + }, + { ATF_POINTER, 4, offsetof(struct NeighbourMeasurementElement_NB_r14, delta_rstd_r14), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_delta_rstd_r14_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_delta_rstd_r14_constraint_1 + }, + 0, 0, /* No default value */ + "delta-rstd-r14" + }, + { ATF_POINTER, 3, offsetof(struct NeighbourMeasurementElement_NB_r14, additionalPathsNeighbour_r14), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AdditionalPathList_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "additionalPathsNeighbour-r14" + }, + { ATF_POINTER, 2, offsetof(struct NeighbourMeasurementElement_NB_r14, nprsIdNeighbour_r14), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nprsIdNeighbour_r14_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nprsIdNeighbour_r14_constraint_1 + }, + 0, 0, /* No default value */ + "nprsIdNeighbour-r14" + }, + { ATF_POINTER, 1, offsetof(struct NeighbourMeasurementElement_NB_r14, carrierFreqOffsetNB_Neighbour_r14), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CarrierFreqOffsetNB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "carrierFreqOffsetNB-Neighbour-r14" + }, +}; +static const int asn_MAP_NeighbourMeasurementElement_NB_r14_oms_1[] = { 1, 2, 5, 6, 7, 8, 9, 10 }; +static const ber_tlv_tag_t asn_DEF_NeighbourMeasurementElement_NB_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NeighbourMeasurementElement_NB_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellIdNeighbour-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalIdNeighbour-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* earfcnNeighbour-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* rstd-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rstd-Quality-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* tpIdNeighbour-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* prsIdNeighbour-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* delta-rstd-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* additionalPathsNeighbour-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* nprsIdNeighbour-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 } /* carrierFreqOffsetNB-Neighbour-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NeighbourMeasurementElement_NB_r14_specs_1 = { + sizeof(struct NeighbourMeasurementElement_NB_r14), + offsetof(struct NeighbourMeasurementElement_NB_r14, _asn_ctx), + asn_MAP_NeighbourMeasurementElement_NB_r14_tag2el_1, + 11, /* Count of tags in the map */ + asn_MAP_NeighbourMeasurementElement_NB_r14_oms_1, /* Optional members */ + 8, 0, /* Root/Additions */ + 11, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NeighbourMeasurementElement_NB_r14 = { + "NeighbourMeasurementElement-NB-r14", + "NeighbourMeasurementElement-NB-r14", + &asn_OP_SEQUENCE, + asn_DEF_NeighbourMeasurementElement_NB_r14_tags_1, + sizeof(asn_DEF_NeighbourMeasurementElement_NB_r14_tags_1) + /sizeof(asn_DEF_NeighbourMeasurementElement_NB_r14_tags_1[0]), /* 1 */ + asn_DEF_NeighbourMeasurementElement_NB_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_NeighbourMeasurementElement_NB_r14_tags_1) + /sizeof(asn_DEF_NeighbourMeasurementElement_NB_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NeighbourMeasurementElement_NB_r14_1, + 11, /* Elements count */ + &asn_SPC_NeighbourMeasurementElement_NB_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NeighbourMeasurementElement-NB-r14.h b/asn.1/lpp_generated/NeighbourMeasurementElement-NB-r14.h new file mode 100644 index 00000000..ad952858 --- /dev/null +++ b/asn.1/lpp_generated/NeighbourMeasurementElement-NB-r14.h @@ -0,0 +1,61 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NeighbourMeasurementElement_NB_r14_H_ +#define _NeighbourMeasurementElement_NB_r14_H_ + + +#include + +/* Including external dependencies */ +#include +#include "ARFCN-ValueEUTRA-r14.h" +#include "OTDOA-MeasQuality.h" +#include "CarrierFreqOffsetNB-r14.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ECGI; +struct AdditionalPathList_r14; + +/* NeighbourMeasurementElement-NB-r14 */ +typedef struct NeighbourMeasurementElement_NB_r14 { + long physCellIdNeighbour_r14; + struct ECGI *cellGlobalIdNeighbour_r14; /* OPTIONAL */ + ARFCN_ValueEUTRA_r14_t *earfcnNeighbour_r14; /* OPTIONAL */ + long rstd_r14; + OTDOA_MeasQuality_t rstd_Quality_r14; + long *tpIdNeighbour_r14; /* OPTIONAL */ + long *prsIdNeighbour_r14; /* OPTIONAL */ + long *delta_rstd_r14; /* OPTIONAL */ + struct AdditionalPathList_r14 *additionalPathsNeighbour_r14; /* OPTIONAL */ + long *nprsIdNeighbour_r14; /* OPTIONAL */ + CarrierFreqOffsetNB_r14_t *carrierFreqOffsetNB_Neighbour_r14; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NeighbourMeasurementElement_NB_r14_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NeighbourMeasurementElement_NB_r14; +extern asn_SEQUENCE_specifics_t asn_SPC_NeighbourMeasurementElement_NB_r14_specs_1; +extern asn_TYPE_member_t asn_MBR_NeighbourMeasurementElement_NB_r14_1[11]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NeighbourMeasurementElement_NB_r14_H_ */ +#include diff --git a/asn.1/lpp_generated/NeighbourMeasurementElement.c b/asn.1/lpp_generated/NeighbourMeasurementElement.c new file mode 100644 index 00000000..4c545461 --- /dev/null +++ b/asn.1/lpp_generated/NeighbourMeasurementElement.c @@ -0,0 +1,693 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NeighbourMeasurementElement.h" + +#include "ECGI.h" +#include "AdditionalPathList-r14.h" +static int +memb_tpIdNeighbour_r14_constraint_10(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_prsIdNeighbour_r14_constraint_10(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_delta_rstd_r14_constraint_10(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 5L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nprsIdNeighbour_r14_constraint_10(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_delta_SFN_r15_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8192L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_physCellIdNeighbour_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 503L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_rstd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 12711L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tpIdNeighbour_r14_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_prsIdNeighbour_r14_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_delta_rstd_r14_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nprsIdNeighbour_r14_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_delta_SFN_r15_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_physCellIdNeighbour_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rstd_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 12711 } /* (0..12711) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_8[] = { + { ATF_POINTER, 1, offsetof(struct NeighbourMeasurementElement__ext1, earfcnNeighbour_v9a0), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueEUTRA_v9a0, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "earfcnNeighbour-v9a0" + }, +}; +static const int asn_MAP_ext1_oms_8[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* earfcnNeighbour-v9a0 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { + sizeof(struct NeighbourMeasurementElement__ext1), + offsetof(struct NeighbourMeasurementElement__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_8, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_8, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_8 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_8, + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_8, /* Same as above */ + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_8, + 1, /* Elements count */ + &asn_SPC_ext1_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_10[] = { + { ATF_POINTER, 6, offsetof(struct NeighbourMeasurementElement__ext2, tpIdNeighbour_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tpIdNeighbour_r14_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tpIdNeighbour_r14_constraint_10 + }, + 0, 0, /* No default value */ + "tpIdNeighbour-r14" + }, + { ATF_POINTER, 5, offsetof(struct NeighbourMeasurementElement__ext2, prsIdNeighbour_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_prsIdNeighbour_r14_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_prsIdNeighbour_r14_constraint_10 + }, + 0, 0, /* No default value */ + "prsIdNeighbour-r14" + }, + { ATF_POINTER, 4, offsetof(struct NeighbourMeasurementElement__ext2, delta_rstd_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_delta_rstd_r14_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_delta_rstd_r14_constraint_10 + }, + 0, 0, /* No default value */ + "delta-rstd-r14" + }, + { ATF_POINTER, 3, offsetof(struct NeighbourMeasurementElement__ext2, additionalPathsNeighbour_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AdditionalPathList_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "additionalPathsNeighbour-r14" + }, + { ATF_POINTER, 2, offsetof(struct NeighbourMeasurementElement__ext2, nprsIdNeighbour_r14), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nprsIdNeighbour_r14_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nprsIdNeighbour_r14_constraint_10 + }, + 0, 0, /* No default value */ + "nprsIdNeighbour-r14" + }, + { ATF_POINTER, 1, offsetof(struct NeighbourMeasurementElement__ext2, carrierFreqOffsetNB_Neighbour_r14), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CarrierFreqOffsetNB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "carrierFreqOffsetNB-Neighbour-r14" + }, +}; +static const int asn_MAP_ext2_oms_10[] = { 0, 1, 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_10[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tpIdNeighbour-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* prsIdNeighbour-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* delta-rstd-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* additionalPathsNeighbour-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nprsIdNeighbour-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* carrierFreqOffsetNB-Neighbour-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_10 = { + sizeof(struct NeighbourMeasurementElement__ext2), + offsetof(struct NeighbourMeasurementElement__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_10, + 6, /* Count of tags in the map */ + asn_MAP_ext2_oms_10, /* Optional members */ + 6, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_10 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_10, + sizeof(asn_DEF_ext2_tags_10) + /sizeof(asn_DEF_ext2_tags_10[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_10, /* Same as above */ + sizeof(asn_DEF_ext2_tags_10) + /sizeof(asn_DEF_ext2_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_10, + 6, /* Elements count */ + &asn_SPC_ext2_specs_10 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_17[] = { + { ATF_POINTER, 1, offsetof(struct NeighbourMeasurementElement__ext3, delta_SFN_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_delta_SFN_r15_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_delta_SFN_r15_constraint_17 + }, + 0, 0, /* No default value */ + "delta-SFN-r15" + }, +}; +static const int asn_MAP_ext3_oms_17[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_17[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* delta-SFN-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_17 = { + sizeof(struct NeighbourMeasurementElement__ext3), + offsetof(struct NeighbourMeasurementElement__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_17, + 1, /* Count of tags in the map */ + asn_MAP_ext3_oms_17, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_17 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_17, + sizeof(asn_DEF_ext3_tags_17) + /sizeof(asn_DEF_ext3_tags_17[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_17, /* Same as above */ + sizeof(asn_DEF_ext3_tags_17) + /sizeof(asn_DEF_ext3_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_17, + 1, /* Elements count */ + &asn_SPC_ext3_specs_17 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NeighbourMeasurementElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NeighbourMeasurementElement, physCellIdNeighbour), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_physCellIdNeighbour_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_physCellIdNeighbour_constraint_1 + }, + 0, 0, /* No default value */ + "physCellIdNeighbour" + }, + { ATF_POINTER, 2, offsetof(struct NeighbourMeasurementElement, cellGlobalIdNeighbour), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ECGI, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellGlobalIdNeighbour" + }, + { ATF_POINTER, 1, offsetof(struct NeighbourMeasurementElement, earfcnNeighbour), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueEUTRA, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "earfcnNeighbour" + }, + { ATF_NOFLAGS, 0, offsetof(struct NeighbourMeasurementElement, rstd), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rstd_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rstd_constraint_1 + }, + 0, 0, /* No default value */ + "rstd" + }, + { ATF_NOFLAGS, 0, offsetof(struct NeighbourMeasurementElement, rstd_Quality), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OTDOA_MeasQuality, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rstd-Quality" + }, + { ATF_POINTER, 3, offsetof(struct NeighbourMeasurementElement, ext1), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext1_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 2, offsetof(struct NeighbourMeasurementElement, ext2), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext2_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 1, offsetof(struct NeighbourMeasurementElement, ext3), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_ext3_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, +}; +static const int asn_MAP_NeighbourMeasurementElement_oms_1[] = { 1, 2, 5, 6, 7 }; +static const ber_tlv_tag_t asn_DEF_NeighbourMeasurementElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NeighbourMeasurementElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellIdNeighbour */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalIdNeighbour */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* earfcnNeighbour */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* rstd */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rstd-Quality */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* ext3 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NeighbourMeasurementElement_specs_1 = { + sizeof(struct NeighbourMeasurementElement), + offsetof(struct NeighbourMeasurementElement, _asn_ctx), + asn_MAP_NeighbourMeasurementElement_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_NeighbourMeasurementElement_oms_1, /* Optional members */ + 2, 3, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NeighbourMeasurementElement = { + "NeighbourMeasurementElement", + "NeighbourMeasurementElement", + &asn_OP_SEQUENCE, + asn_DEF_NeighbourMeasurementElement_tags_1, + sizeof(asn_DEF_NeighbourMeasurementElement_tags_1) + /sizeof(asn_DEF_NeighbourMeasurementElement_tags_1[0]), /* 1 */ + asn_DEF_NeighbourMeasurementElement_tags_1, /* Same as above */ + sizeof(asn_DEF_NeighbourMeasurementElement_tags_1) + /sizeof(asn_DEF_NeighbourMeasurementElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NeighbourMeasurementElement_1, + 8, /* Elements count */ + &asn_SPC_NeighbourMeasurementElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/NeighbourMeasurementElement.h b/asn.1/lpp_generated/NeighbourMeasurementElement.h new file mode 100644 index 00000000..b4e584bf --- /dev/null +++ b/asn.1/lpp_generated/NeighbourMeasurementElement.h @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _NeighbourMeasurementElement_H_ +#define _NeighbourMeasurementElement_H_ + + +#include + +/* Including external dependencies */ +#include +#include "ARFCN-ValueEUTRA.h" +#include "OTDOA-MeasQuality.h" +#include "ARFCN-ValueEUTRA-v9a0.h" +#include +#include "CarrierFreqOffsetNB-r14.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ECGI; +struct AdditionalPathList_r14; + +/* NeighbourMeasurementElement */ +typedef struct NeighbourMeasurementElement { + long physCellIdNeighbour; + struct ECGI *cellGlobalIdNeighbour; /* OPTIONAL */ + ARFCN_ValueEUTRA_t *earfcnNeighbour; /* OPTIONAL */ + long rstd; + OTDOA_MeasQuality_t rstd_Quality; + /* + * This type is extensible, + * possible extensions are below. + */ + struct NeighbourMeasurementElement__ext1 { + ARFCN_ValueEUTRA_v9a0_t *earfcnNeighbour_v9a0; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct NeighbourMeasurementElement__ext2 { + long *tpIdNeighbour_r14; /* OPTIONAL */ + long *prsIdNeighbour_r14; /* OPTIONAL */ + long *delta_rstd_r14; /* OPTIONAL */ + struct AdditionalPathList_r14 *additionalPathsNeighbour_r14; /* OPTIONAL */ + long *nprsIdNeighbour_r14; /* OPTIONAL */ + CarrierFreqOffsetNB_r14_t *carrierFreqOffsetNB_Neighbour_r14; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct NeighbourMeasurementElement__ext3 { + long *delta_SFN_r15; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} NeighbourMeasurementElement_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_NeighbourMeasurementElement; +extern asn_SEQUENCE_specifics_t asn_SPC_NeighbourMeasurementElement_specs_1; +extern asn_TYPE_member_t asn_MBR_NeighbourMeasurementElement_1[8]; + +#ifdef __cplusplus +} +#endif + +#endif /* _NeighbourMeasurementElement_H_ */ +#include diff --git a/asn.1/lpp_generated/NeighbourMeasurementList-NB-r14.c b/asn.1/lpp_generated/NeighbourMeasurementList-NB-r14.c new file mode 100644 index 00000000..5af9b76c --- /dev/null +++ b/asn.1/lpp_generated/NeighbourMeasurementList-NB-r14.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NeighbourMeasurementList-NB-r14.h" + +#include "NeighbourMeasurementElement-NB-r14.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NeighbourMeasurementList_NB_r14_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 24 } /* (SIZE(1..24)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NeighbourMeasurementList_NB_r14_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NeighbourMeasurementElement_NB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NeighbourMeasurementList_NB_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NeighbourMeasurementList_NB_r14_specs_1 = { + sizeof(struct NeighbourMeasurementList_NB_r14), + offsetof(struct NeighbourMeasurementList_NB_r14, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NeighbourMeasurementList_NB_r14 = { + "NeighbourMeasurementList-NB-r14", + "NeighbourMeasurementList-NB-r14", + &asn_OP_SEQUENCE_OF, + asn_DEF_NeighbourMeasurementList_NB_r14_tags_1, + sizeof(asn_DEF_NeighbourMeasurementList_NB_r14_tags_1) + /sizeof(asn_DEF_NeighbourMeasurementList_NB_r14_tags_1[0]), /* 1 */ + asn_DEF_NeighbourMeasurementList_NB_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_NeighbourMeasurementList_NB_r14_tags_1) + /sizeof(asn_DEF_NeighbourMeasurementList_NB_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NeighbourMeasurementList_NB_r14_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NeighbourMeasurementList_NB_r14_1, + 1, /* Single element */ + &asn_SPC_NeighbourMeasurementList_NB_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NeighbourMeasurementList-NB-r14.h b/asn.1/lpp_generated/NeighbourMeasurementList-NB-r14.h similarity index 81% rename from asn.1/generated/NeighbourMeasurementList-NB-r14.h rename to asn.1/lpp_generated/NeighbourMeasurementList-NB-r14.h index 8b405c20..840f4743 100644 --- a/asn.1/generated/NeighbourMeasurementList-NB-r14.h +++ b/asn.1/lpp_generated/NeighbourMeasurementList-NB-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NeighbourMeasurementList_NB_r14_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_NeighbourMeasurementList_NB_r14_constr } #endif -/* Referred external types */ -#include "NeighbourMeasurementElement-NB-r14.h" - #endif /* _NeighbourMeasurementList_NB_r14_H_ */ #include diff --git a/asn.1/lpp_generated/NeighbourMeasurementList.c b/asn.1/lpp_generated/NeighbourMeasurementList.c new file mode 100644 index 00000000..ad6cf236 --- /dev/null +++ b/asn.1/lpp_generated/NeighbourMeasurementList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NeighbourMeasurementList.h" + +#include "NeighbourMeasurementElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NeighbourMeasurementList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 24 } /* (SIZE(1..24)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NeighbourMeasurementList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NeighbourMeasurementElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NeighbourMeasurementList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NeighbourMeasurementList_specs_1 = { + sizeof(struct NeighbourMeasurementList), + offsetof(struct NeighbourMeasurementList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NeighbourMeasurementList = { + "NeighbourMeasurementList", + "NeighbourMeasurementList", + &asn_OP_SEQUENCE_OF, + asn_DEF_NeighbourMeasurementList_tags_1, + sizeof(asn_DEF_NeighbourMeasurementList_tags_1) + /sizeof(asn_DEF_NeighbourMeasurementList_tags_1[0]), /* 1 */ + asn_DEF_NeighbourMeasurementList_tags_1, /* Same as above */ + sizeof(asn_DEF_NeighbourMeasurementList_tags_1) + /sizeof(asn_DEF_NeighbourMeasurementList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NeighbourMeasurementList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NeighbourMeasurementList_1, + 1, /* Single element */ + &asn_SPC_NeighbourMeasurementList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NeighbourMeasurementList.h b/asn.1/lpp_generated/NeighbourMeasurementList.h similarity index 80% rename from asn.1/generated/NeighbourMeasurementList.h rename to asn.1/lpp_generated/NeighbourMeasurementList.h index 5f1e956e..841fa23f 100644 --- a/asn.1/generated/NeighbourMeasurementList.h +++ b/asn.1/lpp_generated/NeighbourMeasurementList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NeighbourMeasurementList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_NeighbourMeasurementList_constr_1; } #endif -/* Referred external types */ -#include "NeighbourMeasurementElement.h" - #endif /* _NeighbourMeasurementList_H_ */ #include diff --git a/asn.1/lpp_generated/NetworkTime.c b/asn.1/lpp_generated/NetworkTime.c new file mode 100644 index 00000000..a6e1be4e --- /dev/null +++ b/asn.1/lpp_generated/NetworkTime.c @@ -0,0 +1,1342 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "NetworkTime.h" + +#include "CellGlobalIdEUTRA-AndUTRA.h" +#include "CellGlobalIdGERAN.h" +#include "ECGI.h" +#include "NCGI-r15.h" +static int +memb_physCellId_constraint_6(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 503L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_primary_CPICH_Info_constraint_15(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cellParameters_constraint_18(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bcchCarrier_constraint_24(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bsic_constraint_24(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nbPhysCellId_r14_constraint_30(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 503L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nrPhysCellId_r15_constraint_35(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1007L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_secondsFromFrameStructureStart_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 12533L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_fractionalSecondsFromFrameStructureStart_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3999999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_frameDrift_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -64L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_physCellId_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_primary_CPICH_Info_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cellParameters_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_mode_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bcchCarrier_constr_25 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bsic_constr_26 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nbPhysCellId_r14_constr_31 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nrPhysCellId_r15_constr_36 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1007 } /* (0..1007) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cellID_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_secondsFromFrameStructureStart_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 12533 } /* (0..12533) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_fractionalSecondsFromFrameStructureStart_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, 0, 3999999 } /* (0..3999999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_frameDrift_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_11[] = { + { ATF_POINTER, 1, offsetof(struct NetworkTime__cellID__eUTRA__ext1, earfcn_v9a0), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueEUTRA_v9a0, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "earfcn-v9a0" + }, +}; +static const int asn_MAP_ext1_oms_11[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* earfcn-v9a0 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_11 = { + sizeof(struct NetworkTime__cellID__eUTRA__ext1), + offsetof(struct NetworkTime__cellID__eUTRA__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_11, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_11, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_11 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_11, + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_11, /* Same as above */ + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_11, + 1, /* Elements count */ + &asn_SPC_ext1_specs_11 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_eUTRA_6[] = { + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__eUTRA, physCellId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_physCellId_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_physCellId_constraint_6 + }, + 0, 0, /* No default value */ + "physCellId" + }, + { ATF_POINTER, 1, offsetof(struct NetworkTime__cellID__eUTRA, cellGlobalIdEUTRA), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CellGlobalIdEUTRA_AndUTRA, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellGlobalIdEUTRA" + }, + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__eUTRA, earfcn), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueEUTRA, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "earfcn" + }, + { ATF_POINTER, 1, offsetof(struct NetworkTime__cellID__eUTRA, ext1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext1_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_eUTRA_oms_6[] = { 1, 3 }; +static const ber_tlv_tag_t asn_DEF_eUTRA_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_eUTRA_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalIdEUTRA */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* earfcn */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_eUTRA_specs_6 = { + sizeof(struct NetworkTime__cellID__eUTRA), + offsetof(struct NetworkTime__cellID__eUTRA, _asn_ctx), + asn_MAP_eUTRA_tag2el_6, + 4, /* Count of tags in the map */ + asn_MAP_eUTRA_oms_6, /* Optional members */ + 1, 1, /* Root/Additions */ + 3, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_eUTRA_6 = { + "eUTRA", + "eUTRA", + &asn_OP_SEQUENCE, + asn_DEF_eUTRA_tags_6, + sizeof(asn_DEF_eUTRA_tags_6) + /sizeof(asn_DEF_eUTRA_tags_6[0]) - 1, /* 1 */ + asn_DEF_eUTRA_tags_6, /* Same as above */ + sizeof(asn_DEF_eUTRA_tags_6) + /sizeof(asn_DEF_eUTRA_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_eUTRA_6, + 4, /* Elements count */ + &asn_SPC_eUTRA_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_fdd_15[] = { + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__uTRA__mode__fdd, primary_CPICH_Info), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_primary_CPICH_Info_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_primary_CPICH_Info_constraint_15 + }, + 0, 0, /* No default value */ + "primary-CPICH-Info" + }, +}; +static const ber_tlv_tag_t asn_DEF_fdd_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_fdd_tag2el_15[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* primary-CPICH-Info */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_fdd_specs_15 = { + sizeof(struct NetworkTime__cellID__uTRA__mode__fdd), + offsetof(struct NetworkTime__cellID__uTRA__mode__fdd, _asn_ctx), + asn_MAP_fdd_tag2el_15, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fdd_15 = { + "fdd", + "fdd", + &asn_OP_SEQUENCE, + asn_DEF_fdd_tags_15, + sizeof(asn_DEF_fdd_tags_15) + /sizeof(asn_DEF_fdd_tags_15[0]) - 1, /* 1 */ + asn_DEF_fdd_tags_15, /* Same as above */ + sizeof(asn_DEF_fdd_tags_15) + /sizeof(asn_DEF_fdd_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_fdd_15, + 1, /* Elements count */ + &asn_SPC_fdd_specs_15 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_tdd_18[] = { + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__uTRA__mode__tdd, cellParameters), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cellParameters_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cellParameters_constraint_18 + }, + 0, 0, /* No default value */ + "cellParameters" + }, +}; +static const ber_tlv_tag_t asn_DEF_tdd_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_tdd_tag2el_18[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cellParameters */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_tdd_specs_18 = { + sizeof(struct NetworkTime__cellID__uTRA__mode__tdd), + offsetof(struct NetworkTime__cellID__uTRA__mode__tdd, _asn_ctx), + asn_MAP_tdd_tag2el_18, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_tdd_18 = { + "tdd", + "tdd", + &asn_OP_SEQUENCE, + asn_DEF_tdd_tags_18, + sizeof(asn_DEF_tdd_tags_18) + /sizeof(asn_DEF_tdd_tags_18[0]) - 1, /* 1 */ + asn_DEF_tdd_tags_18, /* Same as above */ + sizeof(asn_DEF_tdd_tags_18) + /sizeof(asn_DEF_tdd_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_tdd_18, + 1, /* Elements count */ + &asn_SPC_tdd_specs_18 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_mode_14[] = { + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__uTRA__mode, choice.fdd), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_fdd_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fdd" + }, + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__uTRA__mode, choice.tdd), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_tdd_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tdd" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_mode_tag2el_14[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */ +}; +static asn_CHOICE_specifics_t asn_SPC_mode_specs_14 = { + sizeof(struct NetworkTime__cellID__uTRA__mode), + offsetof(struct NetworkTime__cellID__uTRA__mode, _asn_ctx), + offsetof(struct NetworkTime__cellID__uTRA__mode, present), + sizeof(((struct NetworkTime__cellID__uTRA__mode *)0)->present), + asn_MAP_mode_tag2el_14, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_mode_14 = { + "mode", + "mode", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_mode_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_mode_14, + 2, /* Elements count */ + &asn_SPC_mode_specs_14 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_uTRA_13[] = { + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__uTRA, mode), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_mode_14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mode" + }, + { ATF_POINTER, 1, offsetof(struct NetworkTime__cellID__uTRA, cellGlobalIdUTRA), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CellGlobalIdEUTRA_AndUTRA, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellGlobalIdUTRA" + }, + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__uTRA, uarfcn), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueUTRA, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "uarfcn" + }, +}; +static const int asn_MAP_uTRA_oms_13[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_uTRA_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_uTRA_tag2el_13[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mode */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalIdUTRA */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* uarfcn */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_uTRA_specs_13 = { + sizeof(struct NetworkTime__cellID__uTRA), + offsetof(struct NetworkTime__cellID__uTRA, _asn_ctx), + asn_MAP_uTRA_tag2el_13, + 3, /* Count of tags in the map */ + asn_MAP_uTRA_oms_13, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_uTRA_13 = { + "uTRA", + "uTRA", + &asn_OP_SEQUENCE, + asn_DEF_uTRA_tags_13, + sizeof(asn_DEF_uTRA_tags_13) + /sizeof(asn_DEF_uTRA_tags_13[0]) - 1, /* 1 */ + asn_DEF_uTRA_tags_13, /* Same as above */ + sizeof(asn_DEF_uTRA_tags_13) + /sizeof(asn_DEF_uTRA_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_uTRA_13, + 3, /* Elements count */ + &asn_SPC_uTRA_specs_13 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_gSM_24[] = { + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__gSM, bcchCarrier), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bcchCarrier_constr_25, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bcchCarrier_constraint_24 + }, + 0, 0, /* No default value */ + "bcchCarrier" + }, + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__gSM, bsic), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bsic_constr_26, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bsic_constraint_24 + }, + 0, 0, /* No default value */ + "bsic" + }, + { ATF_POINTER, 1, offsetof(struct NetworkTime__cellID__gSM, cellGlobalIdGERAN), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CellGlobalIdGERAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellGlobalIdGERAN" + }, +}; +static const int asn_MAP_gSM_oms_24[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_gSM_tags_24[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_gSM_tag2el_24[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bcchCarrier */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bsic */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* cellGlobalIdGERAN */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_gSM_specs_24 = { + sizeof(struct NetworkTime__cellID__gSM), + offsetof(struct NetworkTime__cellID__gSM, _asn_ctx), + asn_MAP_gSM_tag2el_24, + 3, /* Count of tags in the map */ + asn_MAP_gSM_oms_24, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_gSM_24 = { + "gSM", + "gSM", + &asn_OP_SEQUENCE, + asn_DEF_gSM_tags_24, + sizeof(asn_DEF_gSM_tags_24) + /sizeof(asn_DEF_gSM_tags_24[0]) - 1, /* 1 */ + asn_DEF_gSM_tags_24, /* Same as above */ + sizeof(asn_DEF_gSM_tags_24) + /sizeof(asn_DEF_gSM_tags_24[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_gSM_24, + 3, /* Elements count */ + &asn_SPC_gSM_specs_24 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nBIoT_r14_30[] = { + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__nBIoT_r14, nbPhysCellId_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nbPhysCellId_r14_constr_31, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nbPhysCellId_r14_constraint_30 + }, + 0, 0, /* No default value */ + "nbPhysCellId-r14" + }, + { ATF_POINTER, 1, offsetof(struct NetworkTime__cellID__nBIoT_r14, nbCellGlobalId_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ECGI, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nbCellGlobalId-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__nBIoT_r14, nbCarrierFreq_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CarrierFreq_NB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nbCarrierFreq-r14" + }, +}; +static const int asn_MAP_nBIoT_r14_oms_30[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_nBIoT_r14_tags_30[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_nBIoT_r14_tag2el_30[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nbPhysCellId-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nbCellGlobalId-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nbCarrierFreq-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_nBIoT_r14_specs_30 = { + sizeof(struct NetworkTime__cellID__nBIoT_r14), + offsetof(struct NetworkTime__cellID__nBIoT_r14, _asn_ctx), + asn_MAP_nBIoT_r14_tag2el_30, + 3, /* Count of tags in the map */ + asn_MAP_nBIoT_r14_oms_30, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nBIoT_r14_30 = { + "nBIoT-r14", + "nBIoT-r14", + &asn_OP_SEQUENCE, + asn_DEF_nBIoT_r14_tags_30, + sizeof(asn_DEF_nBIoT_r14_tags_30) + /sizeof(asn_DEF_nBIoT_r14_tags_30[0]) - 1, /* 1 */ + asn_DEF_nBIoT_r14_tags_30, /* Same as above */ + sizeof(asn_DEF_nBIoT_r14_tags_30) + /sizeof(asn_DEF_nBIoT_r14_tags_30[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_nBIoT_r14_30, + 3, /* Elements count */ + &asn_SPC_nBIoT_r14_specs_30 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_r15_35[] = { + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__nr_r15, nrPhysCellId_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nrPhysCellId_r15_constr_36, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nrPhysCellId_r15_constraint_35 + }, + 0, 0, /* No default value */ + "nrPhysCellId-r15" + }, + { ATF_POINTER, 1, offsetof(struct NetworkTime__cellID__nr_r15, nrCellGlobalID_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nrCellGlobalID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID__nr_r15, nrARFCN_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nrARFCN-r15" + }, +}; +static const int asn_MAP_nr_r15_oms_35[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_nr_r15_tags_35[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_r15_tag2el_35[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nrPhysCellId-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nrCellGlobalID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nrARFCN-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_nr_r15_specs_35 = { + sizeof(struct NetworkTime__cellID__nr_r15), + offsetof(struct NetworkTime__cellID__nr_r15, _asn_ctx), + asn_MAP_nr_r15_tag2el_35, + 3, /* Count of tags in the map */ + asn_MAP_nr_r15_oms_35, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_r15_35 = { + "nr-r15", + "nr-r15", + &asn_OP_SEQUENCE, + asn_DEF_nr_r15_tags_35, + sizeof(asn_DEF_nr_r15_tags_35) + /sizeof(asn_DEF_nr_r15_tags_35[0]) - 1, /* 1 */ + asn_DEF_nr_r15_tags_35, /* Same as above */ + sizeof(asn_DEF_nr_r15_tags_35) + /sizeof(asn_DEF_nr_r15_tags_35[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_nr_r15_35, + 3, /* Elements count */ + &asn_SPC_nr_r15_specs_35 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_cellID_5[] = { + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID, choice.eUTRA), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_eUTRA_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eUTRA" + }, + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID, choice.uTRA), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_uTRA_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "uTRA" + }, + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID, choice.gSM), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_gSM_24, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gSM" + }, + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID, choice.nBIoT_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_nBIoT_r14_30, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nBIoT-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime__cellID, choice.nr_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_nr_r15_35, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-r15" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_cellID_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eUTRA */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uTRA */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gSM */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nBIoT-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* nr-r15 */ +}; +static asn_CHOICE_specifics_t asn_SPC_cellID_specs_5 = { + sizeof(struct NetworkTime__cellID), + offsetof(struct NetworkTime__cellID, _asn_ctx), + offsetof(struct NetworkTime__cellID, present), + sizeof(((struct NetworkTime__cellID *)0)->present), + asn_MAP_cellID_tag2el_5, + 5, /* Count of tags in the map */ + 0, 0, + 3 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cellID_5 = { + "cellID", + "cellID", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cellID_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_cellID_5, + 5, /* Elements count */ + &asn_SPC_cellID_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_NetworkTime_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime, secondsFromFrameStructureStart), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_secondsFromFrameStructureStart_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_secondsFromFrameStructureStart_constraint_1 + }, + 0, 0, /* No default value */ + "secondsFromFrameStructureStart" + }, + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime, fractionalSecondsFromFrameStructureStart), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_fractionalSecondsFromFrameStructureStart_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_fractionalSecondsFromFrameStructureStart_constraint_1 + }, + 0, 0, /* No default value */ + "fractionalSecondsFromFrameStructureStart" + }, + { ATF_POINTER, 1, offsetof(struct NetworkTime, frameDrift), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_frameDrift_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_frameDrift_constraint_1 + }, + 0, 0, /* No default value */ + "frameDrift" + }, + { ATF_NOFLAGS, 0, offsetof(struct NetworkTime, cellID), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_cellID_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellID" + }, +}; +static const int asn_MAP_NetworkTime_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_NetworkTime_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NetworkTime_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* secondsFromFrameStructureStart */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* fractionalSecondsFromFrameStructureStart */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* frameDrift */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* cellID */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NetworkTime_specs_1 = { + sizeof(struct NetworkTime), + offsetof(struct NetworkTime, _asn_ctx), + asn_MAP_NetworkTime_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_NetworkTime_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NetworkTime = { + "NetworkTime", + "NetworkTime", + &asn_OP_SEQUENCE, + asn_DEF_NetworkTime_tags_1, + sizeof(asn_DEF_NetworkTime_tags_1) + /sizeof(asn_DEF_NetworkTime_tags_1[0]), /* 1 */ + asn_DEF_NetworkTime_tags_1, /* Same as above */ + sizeof(asn_DEF_NetworkTime_tags_1) + /sizeof(asn_DEF_NetworkTime_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NetworkTime_1, + 4, /* Elements count */ + &asn_SPC_NetworkTime_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NetworkTime.h b/asn.1/lpp_generated/NetworkTime.h similarity index 86% rename from asn.1/generated/NetworkTime.h rename to asn.1/lpp_generated/NetworkTime.h index 42ec7fb4..37241733 100644 --- a/asn.1/generated/NetworkTime.h +++ b/asn.1/lpp_generated/NetworkTime.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _NetworkTime_H_ @@ -51,20 +51,20 @@ struct NCGI_r15; typedef struct NetworkTime { long secondsFromFrameStructureStart; long fractionalSecondsFromFrameStructureStart; - long *frameDrift /* OPTIONAL */; + long *frameDrift; /* OPTIONAL */ struct NetworkTime__cellID { NetworkTime__cellID_PR present; union NetworkTime__cellID_u { struct NetworkTime__cellID__eUTRA { long physCellId; - struct CellGlobalIdEUTRA_AndUTRA *cellGlobalIdEUTRA /* OPTIONAL */; + struct CellGlobalIdEUTRA_AndUTRA *cellGlobalIdEUTRA; /* OPTIONAL */ ARFCN_ValueEUTRA_t earfcn; /* * This type is extensible, * possible extensions are below. */ struct NetworkTime__cellID__eUTRA__ext1 { - ARFCN_ValueEUTRA_v9a0_t *earfcn_v9a0 /* OPTIONAL */; + ARFCN_ValueEUTRA_v9a0_t *earfcn_v9a0; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -102,7 +102,7 @@ typedef struct NetworkTime { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } mode; - struct CellGlobalIdEUTRA_AndUTRA *cellGlobalIdUTRA /* OPTIONAL */; + struct CellGlobalIdEUTRA_AndUTRA *cellGlobalIdUTRA; /* OPTIONAL */ ARFCN_ValueUTRA_t uarfcn; /* * This type is extensible, @@ -115,7 +115,7 @@ typedef struct NetworkTime { struct NetworkTime__cellID__gSM { long bcchCarrier; long bsic; - struct CellGlobalIdGERAN *cellGlobalIdGERAN /* OPTIONAL */; + struct CellGlobalIdGERAN *cellGlobalIdGERAN; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -130,7 +130,7 @@ typedef struct NetworkTime { */ struct NetworkTime__cellID__nBIoT_r14 { long nbPhysCellId_r14; - struct ECGI *nbCellGlobalId_r14 /* OPTIONAL */; + struct ECGI *nbCellGlobalId_r14; /* OPTIONAL */ CarrierFreq_NB_r14_t nbCarrierFreq_r14; /* * This type is extensible, @@ -142,7 +142,7 @@ typedef struct NetworkTime { } nBIoT_r14; struct NetworkTime__cellID__nr_r15 { long nrPhysCellId_r15; - struct NCGI_r15 *nrCellGlobalID_r15 /* OPTIONAL */; + struct NCGI_r15 *nrCellGlobalID_r15; /* OPTIONAL */ ARFCN_ValueNR_r15_t nrARFCN_r15; /* * This type is extensible, @@ -175,11 +175,5 @@ extern asn_TYPE_member_t asn_MBR_NetworkTime_1[4]; } #endif -/* Referred external types */ -#include "CellGlobalIdEUTRA-AndUTRA.h" -#include "CellGlobalIdGERAN.h" -#include "ECGI.h" -#include "NCGI-r15.h" - #endif /* _NetworkTime_H_ */ #include diff --git a/asn.1/lpp_generated/OLPC-SRS-Pos-r16.c b/asn.1/lpp_generated/OLPC-SRS-Pos-r16.c new file mode 100644 index 00000000..c95e7e26 --- /dev/null +++ b/asn.1/lpp_generated/OLPC-SRS-Pos-r16.c @@ -0,0 +1,344 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OLPC-SRS-Pos-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_olpc_SRS_PosBasedOnPRS_Serving_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_olpc_SRS_PosBasedOnSSB_Neigh_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_olpc_SRS_PosBasedOnPRS_Neigh_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumberPathLossEstimatePerServing_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_olpc_SRS_PosBasedOnPRS_Serving_r16_value2enum_2[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_olpc_SRS_PosBasedOnPRS_Serving_r16_enum2value_2[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_olpc_SRS_PosBasedOnPRS_Serving_r16_specs_2 = { + asn_MAP_olpc_SRS_PosBasedOnPRS_Serving_r16_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_olpc_SRS_PosBasedOnPRS_Serving_r16_enum2value_2, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_olpc_SRS_PosBasedOnPRS_Serving_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_olpc_SRS_PosBasedOnPRS_Serving_r16_2 = { + "olpc-SRS-PosBasedOnPRS-Serving-r16", + "olpc-SRS-PosBasedOnPRS-Serving-r16", + &asn_OP_NativeEnumerated, + asn_DEF_olpc_SRS_PosBasedOnPRS_Serving_r16_tags_2, + sizeof(asn_DEF_olpc_SRS_PosBasedOnPRS_Serving_r16_tags_2) + /sizeof(asn_DEF_olpc_SRS_PosBasedOnPRS_Serving_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_olpc_SRS_PosBasedOnPRS_Serving_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_olpc_SRS_PosBasedOnPRS_Serving_r16_tags_2) + /sizeof(asn_DEF_olpc_SRS_PosBasedOnPRS_Serving_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_olpc_SRS_PosBasedOnPRS_Serving_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_olpc_SRS_PosBasedOnPRS_Serving_r16_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_olpc_SRS_PosBasedOnSSB_Neigh_r16_value2enum_4[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_olpc_SRS_PosBasedOnSSB_Neigh_r16_enum2value_4[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_olpc_SRS_PosBasedOnSSB_Neigh_r16_specs_4 = { + asn_MAP_olpc_SRS_PosBasedOnSSB_Neigh_r16_value2enum_4, /* "tag" => N; sorted by tag */ + asn_MAP_olpc_SRS_PosBasedOnSSB_Neigh_r16_enum2value_4, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_olpc_SRS_PosBasedOnSSB_Neigh_r16_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_olpc_SRS_PosBasedOnSSB_Neigh_r16_4 = { + "olpc-SRS-PosBasedOnSSB-Neigh-r16", + "olpc-SRS-PosBasedOnSSB-Neigh-r16", + &asn_OP_NativeEnumerated, + asn_DEF_olpc_SRS_PosBasedOnSSB_Neigh_r16_tags_4, + sizeof(asn_DEF_olpc_SRS_PosBasedOnSSB_Neigh_r16_tags_4) + /sizeof(asn_DEF_olpc_SRS_PosBasedOnSSB_Neigh_r16_tags_4[0]) - 1, /* 1 */ + asn_DEF_olpc_SRS_PosBasedOnSSB_Neigh_r16_tags_4, /* Same as above */ + sizeof(asn_DEF_olpc_SRS_PosBasedOnSSB_Neigh_r16_tags_4) + /sizeof(asn_DEF_olpc_SRS_PosBasedOnSSB_Neigh_r16_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_olpc_SRS_PosBasedOnSSB_Neigh_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_olpc_SRS_PosBasedOnSSB_Neigh_r16_specs_4 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_olpc_SRS_PosBasedOnPRS_Neigh_r16_value2enum_6[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_olpc_SRS_PosBasedOnPRS_Neigh_r16_enum2value_6[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_olpc_SRS_PosBasedOnPRS_Neigh_r16_specs_6 = { + asn_MAP_olpc_SRS_PosBasedOnPRS_Neigh_r16_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_olpc_SRS_PosBasedOnPRS_Neigh_r16_enum2value_6, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_olpc_SRS_PosBasedOnPRS_Neigh_r16_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_olpc_SRS_PosBasedOnPRS_Neigh_r16_6 = { + "olpc-SRS-PosBasedOnPRS-Neigh-r16", + "olpc-SRS-PosBasedOnPRS-Neigh-r16", + &asn_OP_NativeEnumerated, + asn_DEF_olpc_SRS_PosBasedOnPRS_Neigh_r16_tags_6, + sizeof(asn_DEF_olpc_SRS_PosBasedOnPRS_Neigh_r16_tags_6) + /sizeof(asn_DEF_olpc_SRS_PosBasedOnPRS_Neigh_r16_tags_6[0]) - 1, /* 1 */ + asn_DEF_olpc_SRS_PosBasedOnPRS_Neigh_r16_tags_6, /* Same as above */ + sizeof(asn_DEF_olpc_SRS_PosBasedOnPRS_Neigh_r16_tags_6) + /sizeof(asn_DEF_olpc_SRS_PosBasedOnPRS_Neigh_r16_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_olpc_SRS_PosBasedOnPRS_Neigh_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_olpc_SRS_PosBasedOnPRS_Neigh_r16_specs_6 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNumberPathLossEstimatePerServing_r16_value2enum_8[] = { + { 0, 2, "n1" }, + { 1, 2, "n4" }, + { 2, 2, "n8" }, + { 3, 3, "n16" } +}; +static const unsigned int asn_MAP_maxNumberPathLossEstimatePerServing_r16_enum2value_8[] = { + 0, /* n1(0) */ + 3, /* n16(3) */ + 1, /* n4(1) */ + 2 /* n8(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumberPathLossEstimatePerServing_r16_specs_8 = { + asn_MAP_maxNumberPathLossEstimatePerServing_r16_value2enum_8, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumberPathLossEstimatePerServing_r16_enum2value_8, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumberPathLossEstimatePerServing_r16_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumberPathLossEstimatePerServing_r16_8 = { + "maxNumberPathLossEstimatePerServing-r16", + "maxNumberPathLossEstimatePerServing-r16", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumberPathLossEstimatePerServing_r16_tags_8, + sizeof(asn_DEF_maxNumberPathLossEstimatePerServing_r16_tags_8) + /sizeof(asn_DEF_maxNumberPathLossEstimatePerServing_r16_tags_8[0]) - 1, /* 1 */ + asn_DEF_maxNumberPathLossEstimatePerServing_r16_tags_8, /* Same as above */ + sizeof(asn_DEF_maxNumberPathLossEstimatePerServing_r16_tags_8) + /sizeof(asn_DEF_maxNumberPathLossEstimatePerServing_r16_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumberPathLossEstimatePerServing_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumberPathLossEstimatePerServing_r16_specs_8 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_OLPC_SRS_Pos_r16_1[] = { + { ATF_POINTER, 4, offsetof(struct OLPC_SRS_Pos_r16, olpc_SRS_PosBasedOnPRS_Serving_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_olpc_SRS_PosBasedOnPRS_Serving_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "olpc-SRS-PosBasedOnPRS-Serving-r16" + }, + { ATF_POINTER, 3, offsetof(struct OLPC_SRS_Pos_r16, olpc_SRS_PosBasedOnSSB_Neigh_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_olpc_SRS_PosBasedOnSSB_Neigh_r16_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "olpc-SRS-PosBasedOnSSB-Neigh-r16" + }, + { ATF_POINTER, 2, offsetof(struct OLPC_SRS_Pos_r16, olpc_SRS_PosBasedOnPRS_Neigh_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_olpc_SRS_PosBasedOnPRS_Neigh_r16_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "olpc-SRS-PosBasedOnPRS-Neigh-r16" + }, + { ATF_POINTER, 1, offsetof(struct OLPC_SRS_Pos_r16, maxNumberPathLossEstimatePerServing_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumberPathLossEstimatePerServing_r16_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumberPathLossEstimatePerServing-r16" + }, +}; +static const int asn_MAP_OLPC_SRS_Pos_r16_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_OLPC_SRS_Pos_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_OLPC_SRS_Pos_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* olpc-SRS-PosBasedOnPRS-Serving-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* olpc-SRS-PosBasedOnSSB-Neigh-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* olpc-SRS-PosBasedOnPRS-Neigh-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* maxNumberPathLossEstimatePerServing-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_OLPC_SRS_Pos_r16_specs_1 = { + sizeof(struct OLPC_SRS_Pos_r16), + offsetof(struct OLPC_SRS_Pos_r16, _asn_ctx), + asn_MAP_OLPC_SRS_Pos_r16_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_OLPC_SRS_Pos_r16_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OLPC_SRS_Pos_r16 = { + "OLPC-SRS-Pos-r16", + "OLPC-SRS-Pos-r16", + &asn_OP_SEQUENCE, + asn_DEF_OLPC_SRS_Pos_r16_tags_1, + sizeof(asn_DEF_OLPC_SRS_Pos_r16_tags_1) + /sizeof(asn_DEF_OLPC_SRS_Pos_r16_tags_1[0]), /* 1 */ + asn_DEF_OLPC_SRS_Pos_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_OLPC_SRS_Pos_r16_tags_1) + /sizeof(asn_DEF_OLPC_SRS_Pos_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_OLPC_SRS_Pos_r16_1, + 4, /* Elements count */ + &asn_SPC_OLPC_SRS_Pos_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/OLPC-SRS-Pos-r16.h b/asn.1/lpp_generated/OLPC-SRS-Pos-r16.h new file mode 100644 index 00000000..afcf60db --- /dev/null +++ b/asn.1/lpp_generated/OLPC-SRS-Pos-r16.h @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _OLPC_SRS_Pos_r16_H_ +#define _OLPC_SRS_Pos_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum OLPC_SRS_Pos_r16__olpc_SRS_PosBasedOnPRS_Serving_r16 { + OLPC_SRS_Pos_r16__olpc_SRS_PosBasedOnPRS_Serving_r16_supported = 0 +} e_OLPC_SRS_Pos_r16__olpc_SRS_PosBasedOnPRS_Serving_r16; +typedef enum OLPC_SRS_Pos_r16__olpc_SRS_PosBasedOnSSB_Neigh_r16 { + OLPC_SRS_Pos_r16__olpc_SRS_PosBasedOnSSB_Neigh_r16_supported = 0 +} e_OLPC_SRS_Pos_r16__olpc_SRS_PosBasedOnSSB_Neigh_r16; +typedef enum OLPC_SRS_Pos_r16__olpc_SRS_PosBasedOnPRS_Neigh_r16 { + OLPC_SRS_Pos_r16__olpc_SRS_PosBasedOnPRS_Neigh_r16_supported = 0 +} e_OLPC_SRS_Pos_r16__olpc_SRS_PosBasedOnPRS_Neigh_r16; +typedef enum OLPC_SRS_Pos_r16__maxNumberPathLossEstimatePerServing_r16 { + OLPC_SRS_Pos_r16__maxNumberPathLossEstimatePerServing_r16_n1 = 0, + OLPC_SRS_Pos_r16__maxNumberPathLossEstimatePerServing_r16_n4 = 1, + OLPC_SRS_Pos_r16__maxNumberPathLossEstimatePerServing_r16_n8 = 2, + OLPC_SRS_Pos_r16__maxNumberPathLossEstimatePerServing_r16_n16 = 3 +} e_OLPC_SRS_Pos_r16__maxNumberPathLossEstimatePerServing_r16; + +/* OLPC-SRS-Pos-r16 */ +typedef struct OLPC_SRS_Pos_r16 { + long *olpc_SRS_PosBasedOnPRS_Serving_r16; /* OPTIONAL */ + long *olpc_SRS_PosBasedOnSSB_Neigh_r16; /* OPTIONAL */ + long *olpc_SRS_PosBasedOnPRS_Neigh_r16; /* OPTIONAL */ + long *maxNumberPathLossEstimatePerServing_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} OLPC_SRS_Pos_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_olpc_SRS_PosBasedOnPRS_Serving_r16_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_olpc_SRS_PosBasedOnSSB_Neigh_r16_4; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_olpc_SRS_PosBasedOnPRS_Neigh_r16_6; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumberPathLossEstimatePerServing_r16_8; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_OLPC_SRS_Pos_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_OLPC_SRS_Pos_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_OLPC_SRS_Pos_r16_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _OLPC_SRS_Pos_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/ORBIT-IntegrityParameters-r17.c b/asn.1/lpp_generated/ORBIT-IntegrityParameters-r17.c new file mode 100644 index 00000000..cc78de06 --- /dev/null +++ b/asn.1/lpp_generated/ORBIT-IntegrityParameters-r17.c @@ -0,0 +1,350 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ORBIT-IntegrityParameters-r17.h" + +static int +memb_probOnsetConstFault_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_meanConstFaultDuration_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 3600L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_probOnsetSatFault_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_meanSatFaultDuration_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 3600L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_orbitRangeErrorCorrelationTime_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_orbitRangeRateErrorCorrelationTime_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_probOnsetConstFault_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanConstFaultDuration_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 1, 3600 } /* (1..3600) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_probOnsetSatFault_r17_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanSatFaultDuration_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 1, 3600 } /* (1..3600) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_orbitRangeErrorCorrelationTime_r17_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_orbitRangeRateErrorCorrelationTime_r17_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_ORBIT_IntegrityParameters_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ORBIT_IntegrityParameters_r17, probOnsetConstFault_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_probOnsetConstFault_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_probOnsetConstFault_r17_constraint_1 + }, + 0, 0, /* No default value */ + "probOnsetConstFault-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct ORBIT_IntegrityParameters_r17, meanConstFaultDuration_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanConstFaultDuration_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanConstFaultDuration_r17_constraint_1 + }, + 0, 0, /* No default value */ + "meanConstFaultDuration-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct ORBIT_IntegrityParameters_r17, probOnsetSatFault_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_probOnsetSatFault_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_probOnsetSatFault_r17_constraint_1 + }, + 0, 0, /* No default value */ + "probOnsetSatFault-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct ORBIT_IntegrityParameters_r17, meanSatFaultDuration_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanSatFaultDuration_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanSatFaultDuration_r17_constraint_1 + }, + 0, 0, /* No default value */ + "meanSatFaultDuration-r17" + }, + { ATF_POINTER, 2, offsetof(struct ORBIT_IntegrityParameters_r17, orbitRangeErrorCorrelationTime_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_orbitRangeErrorCorrelationTime_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_orbitRangeErrorCorrelationTime_r17_constraint_1 + }, + 0, 0, /* No default value */ + "orbitRangeErrorCorrelationTime-r17" + }, + { ATF_POINTER, 1, offsetof(struct ORBIT_IntegrityParameters_r17, orbitRangeRateErrorCorrelationTime_r17), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_orbitRangeRateErrorCorrelationTime_r17_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_orbitRangeRateErrorCorrelationTime_r17_constraint_1 + }, + 0, 0, /* No default value */ + "orbitRangeRateErrorCorrelationTime-r17" + }, +}; +static const int asn_MAP_ORBIT_IntegrityParameters_r17_oms_1[] = { 4, 5 }; +static const ber_tlv_tag_t asn_DEF_ORBIT_IntegrityParameters_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ORBIT_IntegrityParameters_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* probOnsetConstFault-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* meanConstFaultDuration-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* probOnsetSatFault-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* meanSatFaultDuration-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* orbitRangeErrorCorrelationTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* orbitRangeRateErrorCorrelationTime-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ORBIT_IntegrityParameters_r17_specs_1 = { + sizeof(struct ORBIT_IntegrityParameters_r17), + offsetof(struct ORBIT_IntegrityParameters_r17, _asn_ctx), + asn_MAP_ORBIT_IntegrityParameters_r17_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_ORBIT_IntegrityParameters_r17_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ORBIT_IntegrityParameters_r17 = { + "ORBIT-IntegrityParameters-r17", + "ORBIT-IntegrityParameters-r17", + &asn_OP_SEQUENCE, + asn_DEF_ORBIT_IntegrityParameters_r17_tags_1, + sizeof(asn_DEF_ORBIT_IntegrityParameters_r17_tags_1) + /sizeof(asn_DEF_ORBIT_IntegrityParameters_r17_tags_1[0]), /* 1 */ + asn_DEF_ORBIT_IntegrityParameters_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_ORBIT_IntegrityParameters_r17_tags_1) + /sizeof(asn_DEF_ORBIT_IntegrityParameters_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ORBIT_IntegrityParameters_r17_1, + 6, /* Elements count */ + &asn_SPC_ORBIT_IntegrityParameters_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/ORBIT-IntegrityParameters-r17.h b/asn.1/lpp_generated/ORBIT-IntegrityParameters-r17.h new file mode 100644 index 00000000..035d3aab --- /dev/null +++ b/asn.1/lpp_generated/ORBIT-IntegrityParameters-r17.h @@ -0,0 +1,49 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _ORBIT_IntegrityParameters_r17_H_ +#define _ORBIT_IntegrityParameters_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* ORBIT-IntegrityParameters-r17 */ +typedef struct ORBIT_IntegrityParameters_r17 { + long probOnsetConstFault_r17; + long meanConstFaultDuration_r17; + long probOnsetSatFault_r17; + long meanSatFaultDuration_r17; + long *orbitRangeErrorCorrelationTime_r17; /* OPTIONAL */ + long *orbitRangeRateErrorCorrelationTime_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ORBIT_IntegrityParameters_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ORBIT_IntegrityParameters_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_ORBIT_IntegrityParameters_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_ORBIT_IntegrityParameters_r17_1[6]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ORBIT_IntegrityParameters_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/OTDOA-Error.c b/asn.1/lpp_generated/OTDOA-Error.c new file mode 100644 index 00000000..15ef2621 --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-Error.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OTDOA-Error.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_OTDOA_Error_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_OTDOA_Error_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_Error, choice.locationServerErrorCauses), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OTDOA_LocationServerErrorCauses, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationServerErrorCauses" + }, + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_Error, choice.targetDeviceErrorCauses), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OTDOA_TargetDeviceErrorCauses, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "targetDeviceErrorCauses" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_OTDOA_Error_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses */ +}; +asn_CHOICE_specifics_t asn_SPC_OTDOA_Error_specs_1 = { + sizeof(struct OTDOA_Error), + offsetof(struct OTDOA_Error, _asn_ctx), + offsetof(struct OTDOA_Error, present), + sizeof(((struct OTDOA_Error *)0)->present), + asn_MAP_OTDOA_Error_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_OTDOA_Error = { + "OTDOA-Error", + "OTDOA-Error", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_OTDOA_Error_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_OTDOA_Error_1, + 2, /* Elements count */ + &asn_SPC_OTDOA_Error_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/OTDOA-Error.h b/asn.1/lpp_generated/OTDOA-Error.h similarity index 84% rename from asn.1/generated/OTDOA-Error.h rename to asn.1/lpp_generated/OTDOA-Error.h index 490d003d..ae16c249 100644 --- a/asn.1/generated/OTDOA-Error.h +++ b/asn.1/lpp_generated/OTDOA-Error.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _OTDOA_Error_H_ diff --git a/asn.1/lpp_generated/OTDOA-LocationServerErrorCauses.c b/asn.1/lpp_generated/OTDOA-LocationServerErrorCauses.c new file mode 100644 index 00000000..5ff83856 --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-LocationServerErrorCauses.c @@ -0,0 +1,126 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OTDOA-LocationServerErrorCauses.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 34, "assistanceDataNotSupportedByServer" }, + { 2, 55, "assistanceDataSupportedButCurrentlyNotAvailableByServer" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_enum2value_2[] = { + 1, /* assistanceDataNotSupportedByServer(1) */ + 2, /* assistanceDataSupportedButCurrentlyNotAvailableByServer(2) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_specs_2 = { + asn_MAP_cause_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_enum2value_2, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 4, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_2 = { + "cause", + "cause", + &asn_OP_NativeEnumerated, + asn_DEF_cause_tags_2, + sizeof(asn_DEF_cause_tags_2) + /sizeof(asn_DEF_cause_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_tags_2) + /sizeof(asn_DEF_cause_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_OTDOA_LocationServerErrorCauses_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_LocationServerErrorCauses, cause), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause" + }, +}; +static const ber_tlv_tag_t asn_DEF_OTDOA_LocationServerErrorCauses_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_OTDOA_LocationServerErrorCauses_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause */ +}; +asn_SEQUENCE_specifics_t asn_SPC_OTDOA_LocationServerErrorCauses_specs_1 = { + sizeof(struct OTDOA_LocationServerErrorCauses), + offsetof(struct OTDOA_LocationServerErrorCauses, _asn_ctx), + asn_MAP_OTDOA_LocationServerErrorCauses_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OTDOA_LocationServerErrorCauses = { + "OTDOA-LocationServerErrorCauses", + "OTDOA-LocationServerErrorCauses", + &asn_OP_SEQUENCE, + asn_DEF_OTDOA_LocationServerErrorCauses_tags_1, + sizeof(asn_DEF_OTDOA_LocationServerErrorCauses_tags_1) + /sizeof(asn_DEF_OTDOA_LocationServerErrorCauses_tags_1[0]), /* 1 */ + asn_DEF_OTDOA_LocationServerErrorCauses_tags_1, /* Same as above */ + sizeof(asn_DEF_OTDOA_LocationServerErrorCauses_tags_1) + /sizeof(asn_DEF_OTDOA_LocationServerErrorCauses_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_OTDOA_LocationServerErrorCauses_1, + 1, /* Elements count */ + &asn_SPC_OTDOA_LocationServerErrorCauses_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/OTDOA-LocationServerErrorCauses.h b/asn.1/lpp_generated/OTDOA-LocationServerErrorCauses.h similarity index 85% rename from asn.1/generated/OTDOA-LocationServerErrorCauses.h rename to asn.1/lpp_generated/OTDOA-LocationServerErrorCauses.h index 1950ecc4..3c37f315 100644 --- a/asn.1/generated/OTDOA-LocationServerErrorCauses.h +++ b/asn.1/lpp_generated/OTDOA-LocationServerErrorCauses.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _OTDOA_LocationServerErrorCauses_H_ diff --git a/asn.1/lpp_generated/OTDOA-MeasQuality.c b/asn.1/lpp_generated/OTDOA-MeasQuality.c new file mode 100644 index 00000000..eb3918ec --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-MeasQuality.c @@ -0,0 +1,218 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OTDOA-MeasQuality.h" + +static int +memb_error_Resolution_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 2UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_error_Value_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 5UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_error_NumSamples_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 3UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_error_Resolution_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_error_Value_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 5, 5 } /* (SIZE(5..5)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_error_NumSamples_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_OTDOA_MeasQuality_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_MeasQuality, error_Resolution), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_error_Resolution_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_error_Resolution_constraint_1 + }, + 0, 0, /* No default value */ + "error-Resolution" + }, + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_MeasQuality, error_Value), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_error_Value_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_error_Value_constraint_1 + }, + 0, 0, /* No default value */ + "error-Value" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_MeasQuality, error_NumSamples), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_error_NumSamples_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_error_NumSamples_constraint_1 + }, + 0, 0, /* No default value */ + "error-NumSamples" + }, +}; +static const int asn_MAP_OTDOA_MeasQuality_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_OTDOA_MeasQuality_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_OTDOA_MeasQuality_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* error-Resolution */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* error-Value */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* error-NumSamples */ +}; +asn_SEQUENCE_specifics_t asn_SPC_OTDOA_MeasQuality_specs_1 = { + sizeof(struct OTDOA_MeasQuality), + offsetof(struct OTDOA_MeasQuality, _asn_ctx), + asn_MAP_OTDOA_MeasQuality_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_OTDOA_MeasQuality_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OTDOA_MeasQuality = { + "OTDOA-MeasQuality", + "OTDOA-MeasQuality", + &asn_OP_SEQUENCE, + asn_DEF_OTDOA_MeasQuality_tags_1, + sizeof(asn_DEF_OTDOA_MeasQuality_tags_1) + /sizeof(asn_DEF_OTDOA_MeasQuality_tags_1[0]), /* 1 */ + asn_DEF_OTDOA_MeasQuality_tags_1, /* Same as above */ + sizeof(asn_DEF_OTDOA_MeasQuality_tags_1) + /sizeof(asn_DEF_OTDOA_MeasQuality_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_OTDOA_MeasQuality_1, + 3, /* Elements count */ + &asn_SPC_OTDOA_MeasQuality_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/OTDOA-MeasQuality.h b/asn.1/lpp_generated/OTDOA-MeasQuality.h similarity index 75% rename from asn.1/generated/OTDOA-MeasQuality.h rename to asn.1/lpp_generated/OTDOA-MeasQuality.h index 4db44320..a244ddb6 100644 --- a/asn.1/generated/OTDOA-MeasQuality.h +++ b/asn.1/lpp_generated/OTDOA-MeasQuality.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _OTDOA_MeasQuality_H_ @@ -23,7 +23,7 @@ extern "C" { typedef struct OTDOA_MeasQuality { BIT_STRING_t error_Resolution; BIT_STRING_t error_Value; - BIT_STRING_t *error_NumSamples /* OPTIONAL */; + BIT_STRING_t *error_NumSamples; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/OTDOA-NeighbourCellInfoElement.c b/asn.1/lpp_generated/OTDOA-NeighbourCellInfoElement.c new file mode 100644 index 00000000..87b008e4 --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-NeighbourCellInfoElement.c @@ -0,0 +1,1138 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OTDOA-NeighbourCellInfoElement.h" + +#include "ECGI.h" +#include "PRS-Info.h" +#include "Add-PRSconfigNeighbourElement-r14.h" +#include "TDD-Config-v1520.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_tpId_r14_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_addPRSconfigNeighbour_r14_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 2UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_physCellId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 503L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_slotNumberOffset_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 19L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_prs_SubframeOffset_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1279L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_expectedRSTD_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_expectedRSTD_Uncertainty_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cpLength_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_antennaPortConfig_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prs_only_tp_r14_constr_23 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cpLengthCRS_r14_constr_25 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dlBandwidth_r14_constr_30 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_addPRSconfigNeighbour_r14_constr_37 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tpId_r14_constr_22 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_addPRSconfigNeighbour_r14_constr_37 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_physCellId_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_slotNumberOffset_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_prs_SubframeOffset_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 1279 } /* (0..1279) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_expectedRSTD_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_expectedRSTD_Uncertainty_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cpLength_value2enum_5[] = { + { 0, 6, "normal" }, + { 1, 8, "extended" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cpLength_enum2value_5[] = { + 1, /* extended(1) */ + 0 /* normal(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cpLength_specs_5 = { + asn_MAP_cpLength_value2enum_5, /* "tag" => N; sorted by tag */ + asn_MAP_cpLength_enum2value_5, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cpLength_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cpLength_5 = { + "cpLength", + "cpLength", + &asn_OP_NativeEnumerated, + asn_DEF_cpLength_tags_5, + sizeof(asn_DEF_cpLength_tags_5) + /sizeof(asn_DEF_cpLength_tags_5[0]) - 1, /* 1 */ + asn_DEF_cpLength_tags_5, /* Same as above */ + sizeof(asn_DEF_cpLength_tags_5) + /sizeof(asn_DEF_cpLength_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cpLength_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cpLength_specs_5 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_antennaPortConfig_value2enum_10[] = { + { 0, 12, "ports-1-or-2" }, + { 1, 7, "ports-4" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_antennaPortConfig_enum2value_10[] = { + 0, /* ports-1-or-2(0) */ + 1 /* ports-4(1) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_antennaPortConfig_specs_10 = { + asn_MAP_antennaPortConfig_value2enum_10, /* "tag" => N; sorted by tag */ + asn_MAP_antennaPortConfig_enum2value_10, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_antennaPortConfig_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_antennaPortConfig_10 = { + "antennaPortConfig", + "antennaPortConfig", + &asn_OP_NativeEnumerated, + asn_DEF_antennaPortConfig_tags_10, + sizeof(asn_DEF_antennaPortConfig_tags_10) + /sizeof(asn_DEF_antennaPortConfig_tags_10[0]) - 1, /* 1 */ + asn_DEF_antennaPortConfig_tags_10, /* Same as above */ + sizeof(asn_DEF_antennaPortConfig_tags_10) + /sizeof(asn_DEF_antennaPortConfig_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_antennaPortConfig_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_antennaPortConfig_specs_10 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_19[] = { + { ATF_POINTER, 1, offsetof(struct OTDOA_NeighbourCellInfoElement__ext1, earfcn_v9a0), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueEUTRA_v9a0, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "earfcn-v9a0" + }, +}; +static const int asn_MAP_ext1_oms_19[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_19[] = { + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_19[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* earfcn-v9a0 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_19 = { + sizeof(struct OTDOA_NeighbourCellInfoElement__ext1), + offsetof(struct OTDOA_NeighbourCellInfoElement__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_19, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_19, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_19 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_19, + sizeof(asn_DEF_ext1_tags_19) + /sizeof(asn_DEF_ext1_tags_19[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_19, /* Same as above */ + sizeof(asn_DEF_ext1_tags_19) + /sizeof(asn_DEF_ext1_tags_19[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_19, + 1, /* Elements count */ + &asn_SPC_ext1_specs_19 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_prs_only_tp_r14_value2enum_23[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_prs_only_tp_r14_enum2value_23[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_prs_only_tp_r14_specs_23 = { + asn_MAP_prs_only_tp_r14_value2enum_23, /* "tag" => N; sorted by tag */ + asn_MAP_prs_only_tp_r14_enum2value_23, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_prs_only_tp_r14_tags_23[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prs_only_tp_r14_23 = { + "prs-only-tp-r14", + "prs-only-tp-r14", + &asn_OP_NativeEnumerated, + asn_DEF_prs_only_tp_r14_tags_23, + sizeof(asn_DEF_prs_only_tp_r14_tags_23) + /sizeof(asn_DEF_prs_only_tp_r14_tags_23[0]) - 1, /* 1 */ + asn_DEF_prs_only_tp_r14_tags_23, /* Same as above */ + sizeof(asn_DEF_prs_only_tp_r14_tags_23) + /sizeof(asn_DEF_prs_only_tp_r14_tags_23[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prs_only_tp_r14_constr_23, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_prs_only_tp_r14_specs_23 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_cpLengthCRS_r14_value2enum_25[] = { + { 0, 6, "normal" }, + { 1, 8, "extended" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cpLengthCRS_r14_enum2value_25[] = { + 1, /* extended(1) */ + 0 /* normal(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cpLengthCRS_r14_specs_25 = { + asn_MAP_cpLengthCRS_r14_value2enum_25, /* "tag" => N; sorted by tag */ + asn_MAP_cpLengthCRS_r14_enum2value_25, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cpLengthCRS_r14_tags_25[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cpLengthCRS_r14_25 = { + "cpLengthCRS-r14", + "cpLengthCRS-r14", + &asn_OP_NativeEnumerated, + asn_DEF_cpLengthCRS_r14_tags_25, + sizeof(asn_DEF_cpLengthCRS_r14_tags_25) + /sizeof(asn_DEF_cpLengthCRS_r14_tags_25[0]) - 1, /* 1 */ + asn_DEF_cpLengthCRS_r14_tags_25, /* Same as above */ + sizeof(asn_DEF_cpLengthCRS_r14_tags_25) + /sizeof(asn_DEF_cpLengthCRS_r14_tags_25[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cpLengthCRS_r14_constr_25, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cpLengthCRS_r14_specs_25 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dlBandwidth_r14_value2enum_30[] = { + { 0, 2, "n6" }, + { 1, 3, "n15" }, + { 2, 3, "n25" }, + { 3, 3, "n50" }, + { 4, 3, "n75" }, + { 5, 4, "n100" } +}; +static const unsigned int asn_MAP_dlBandwidth_r14_enum2value_30[] = { + 5, /* n100(5) */ + 1, /* n15(1) */ + 2, /* n25(2) */ + 3, /* n50(3) */ + 0, /* n6(0) */ + 4 /* n75(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dlBandwidth_r14_specs_30 = { + asn_MAP_dlBandwidth_r14_value2enum_30, /* "tag" => N; sorted by tag */ + asn_MAP_dlBandwidth_r14_enum2value_30, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dlBandwidth_r14_tags_30[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dlBandwidth_r14_30 = { + "dlBandwidth-r14", + "dlBandwidth-r14", + &asn_OP_NativeEnumerated, + asn_DEF_dlBandwidth_r14_tags_30, + sizeof(asn_DEF_dlBandwidth_r14_tags_30) + /sizeof(asn_DEF_dlBandwidth_r14_tags_30[0]) - 1, /* 1 */ + asn_DEF_dlBandwidth_r14_tags_30, /* Same as above */ + sizeof(asn_DEF_dlBandwidth_r14_tags_30) + /sizeof(asn_DEF_dlBandwidth_r14_tags_30[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dlBandwidth_r14_constr_30, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dlBandwidth_r14_specs_30 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_addPRSconfigNeighbour_r14_37[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_Add_PRSconfigNeighbourElement_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_addPRSconfigNeighbour_r14_tags_37[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_addPRSconfigNeighbour_r14_specs_37 = { + sizeof(struct OTDOA_NeighbourCellInfoElement__ext2__addPRSconfigNeighbour_r14), + offsetof(struct OTDOA_NeighbourCellInfoElement__ext2__addPRSconfigNeighbour_r14, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_addPRSconfigNeighbour_r14_37 = { + "addPRSconfigNeighbour-r14", + "addPRSconfigNeighbour-r14", + &asn_OP_SEQUENCE_OF, + asn_DEF_addPRSconfigNeighbour_r14_tags_37, + sizeof(asn_DEF_addPRSconfigNeighbour_r14_tags_37) + /sizeof(asn_DEF_addPRSconfigNeighbour_r14_tags_37[0]) - 1, /* 1 */ + asn_DEF_addPRSconfigNeighbour_r14_tags_37, /* Same as above */ + sizeof(asn_DEF_addPRSconfigNeighbour_r14_tags_37) + /sizeof(asn_DEF_addPRSconfigNeighbour_r14_tags_37[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_addPRSconfigNeighbour_r14_constr_37, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_addPRSconfigNeighbour_r14_37, + 1, /* Single element */ + &asn_SPC_addPRSconfigNeighbour_r14_specs_37 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_21[] = { + { ATF_POINTER, 6, offsetof(struct OTDOA_NeighbourCellInfoElement__ext2, tpId_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tpId_r14_constr_22, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tpId_r14_constraint_21 + }, + 0, 0, /* No default value */ + "tpId-r14" + }, + { ATF_POINTER, 5, offsetof(struct OTDOA_NeighbourCellInfoElement__ext2, prs_only_tp_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_prs_only_tp_r14_23, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-only-tp-r14" + }, + { ATF_POINTER, 4, offsetof(struct OTDOA_NeighbourCellInfoElement__ext2, cpLengthCRS_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cpLengthCRS_r14_25, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cpLengthCRS-r14" + }, + { ATF_POINTER, 3, offsetof(struct OTDOA_NeighbourCellInfoElement__ext2, sameMBSFNconfigNeighbour_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sameMBSFNconfigNeighbour-r14" + }, + { ATF_POINTER, 2, offsetof(struct OTDOA_NeighbourCellInfoElement__ext2, dlBandwidth_r14), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dlBandwidth_r14_30, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dlBandwidth-r14" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_NeighbourCellInfoElement__ext2, addPRSconfigNeighbour_r14), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_addPRSconfigNeighbour_r14_37, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_addPRSconfigNeighbour_r14_constr_37, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_addPRSconfigNeighbour_r14_constraint_21 + }, + 0, 0, /* No default value */ + "addPRSconfigNeighbour-r14" + }, +}; +static const int asn_MAP_ext2_oms_21[] = { 0, 1, 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_21[] = { + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_21[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tpId-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* prs-only-tp-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cpLengthCRS-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* sameMBSFNconfigNeighbour-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* dlBandwidth-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* addPRSconfigNeighbour-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_21 = { + sizeof(struct OTDOA_NeighbourCellInfoElement__ext2), + offsetof(struct OTDOA_NeighbourCellInfoElement__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_21, + 6, /* Count of tags in the map */ + asn_MAP_ext2_oms_21, /* Optional members */ + 6, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_21 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_21, + sizeof(asn_DEF_ext2_tags_21) + /sizeof(asn_DEF_ext2_tags_21[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_21, /* Same as above */ + sizeof(asn_DEF_ext2_tags_21) + /sizeof(asn_DEF_ext2_tags_21[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_21, + 6, /* Elements count */ + &asn_SPC_ext2_specs_21 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_39[] = { + { ATF_POINTER, 1, offsetof(struct OTDOA_NeighbourCellInfoElement__ext3, tdd_config_v1520), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TDD_Config_v1520, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tdd-config-v1520" + }, +}; +static const int asn_MAP_ext3_oms_39[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_39[] = { + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_39[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* tdd-config-v1520 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_39 = { + sizeof(struct OTDOA_NeighbourCellInfoElement__ext3), + offsetof(struct OTDOA_NeighbourCellInfoElement__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_39, + 1, /* Count of tags in the map */ + asn_MAP_ext3_oms_39, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_39 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_39, + sizeof(asn_DEF_ext3_tags_39) + /sizeof(asn_DEF_ext3_tags_39[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_39, /* Same as above */ + sizeof(asn_DEF_ext3_tags_39) + /sizeof(asn_DEF_ext3_tags_39[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_39, + 1, /* Elements count */ + &asn_SPC_ext3_specs_39 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_OTDOA_NeighbourCellInfoElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_NeighbourCellInfoElement, physCellId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_physCellId_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_physCellId_constraint_1 + }, + 0, 0, /* No default value */ + "physCellId" + }, + { ATF_POINTER, 7, offsetof(struct OTDOA_NeighbourCellInfoElement, cellGlobalId), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ECGI, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellGlobalId" + }, + { ATF_POINTER, 6, offsetof(struct OTDOA_NeighbourCellInfoElement, earfcn), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueEUTRA, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "earfcn" + }, + { ATF_POINTER, 5, offsetof(struct OTDOA_NeighbourCellInfoElement, cpLength), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cpLength_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cpLength" + }, + { ATF_POINTER, 4, offsetof(struct OTDOA_NeighbourCellInfoElement, prsInfo), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PRS_Info, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prsInfo" + }, + { ATF_POINTER, 3, offsetof(struct OTDOA_NeighbourCellInfoElement, antennaPortConfig), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_antennaPortConfig_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "antennaPortConfig" + }, + { ATF_POINTER, 2, offsetof(struct OTDOA_NeighbourCellInfoElement, slotNumberOffset), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_slotNumberOffset_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_slotNumberOffset_constraint_1 + }, + 0, 0, /* No default value */ + "slotNumberOffset" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_NeighbourCellInfoElement, prs_SubframeOffset), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_prs_SubframeOffset_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_prs_SubframeOffset_constraint_1 + }, + 0, 0, /* No default value */ + "prs-SubframeOffset" + }, + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_NeighbourCellInfoElement, expectedRSTD), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_expectedRSTD_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_expectedRSTD_constraint_1 + }, + 0, 0, /* No default value */ + "expectedRSTD" + }, + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_NeighbourCellInfoElement, expectedRSTD_Uncertainty), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_expectedRSTD_Uncertainty_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_expectedRSTD_Uncertainty_constraint_1 + }, + 0, 0, /* No default value */ + "expectedRSTD-Uncertainty" + }, + { ATF_POINTER, 3, offsetof(struct OTDOA_NeighbourCellInfoElement, ext1), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + 0, + &asn_DEF_ext1_19, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 2, offsetof(struct OTDOA_NeighbourCellInfoElement, ext2), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + 0, + &asn_DEF_ext2_21, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_NeighbourCellInfoElement, ext3), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + 0, + &asn_DEF_ext3_39, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, +}; +static const int asn_MAP_OTDOA_NeighbourCellInfoElement_oms_1[] = { 1, 2, 3, 4, 5, 6, 7, 10, 11, 12 }; +static const ber_tlv_tag_t asn_DEF_OTDOA_NeighbourCellInfoElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_OTDOA_NeighbourCellInfoElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalId */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* earfcn */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* cpLength */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* prsInfo */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* antennaPortConfig */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* slotNumberOffset */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* prs-SubframeOffset */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* expectedRSTD */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* expectedRSTD-Uncertainty */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 } /* ext3 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_OTDOA_NeighbourCellInfoElement_specs_1 = { + sizeof(struct OTDOA_NeighbourCellInfoElement), + offsetof(struct OTDOA_NeighbourCellInfoElement, _asn_ctx), + asn_MAP_OTDOA_NeighbourCellInfoElement_tag2el_1, + 13, /* Count of tags in the map */ + asn_MAP_OTDOA_NeighbourCellInfoElement_oms_1, /* Optional members */ + 7, 3, /* Root/Additions */ + 10, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OTDOA_NeighbourCellInfoElement = { + "OTDOA-NeighbourCellInfoElement", + "OTDOA-NeighbourCellInfoElement", + &asn_OP_SEQUENCE, + asn_DEF_OTDOA_NeighbourCellInfoElement_tags_1, + sizeof(asn_DEF_OTDOA_NeighbourCellInfoElement_tags_1) + /sizeof(asn_DEF_OTDOA_NeighbourCellInfoElement_tags_1[0]), /* 1 */ + asn_DEF_OTDOA_NeighbourCellInfoElement_tags_1, /* Same as above */ + sizeof(asn_DEF_OTDOA_NeighbourCellInfoElement_tags_1) + /sizeof(asn_DEF_OTDOA_NeighbourCellInfoElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_OTDOA_NeighbourCellInfoElement_1, + 13, /* Elements count */ + &asn_SPC_OTDOA_NeighbourCellInfoElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/OTDOA-NeighbourCellInfoElement.h b/asn.1/lpp_generated/OTDOA-NeighbourCellInfoElement.h similarity index 81% rename from asn.1/generated/OTDOA-NeighbourCellInfoElement.h rename to asn.1/lpp_generated/OTDOA-NeighbourCellInfoElement.h index 06085826..6d640340 100644 --- a/asn.1/generated/OTDOA-NeighbourCellInfoElement.h +++ b/asn.1/lpp_generated/OTDOA-NeighbourCellInfoElement.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _OTDOA_NeighbourCellInfoElement_H_ @@ -68,13 +68,13 @@ struct TDD_Config_v1520; /* OTDOA-NeighbourCellInfoElement */ typedef struct OTDOA_NeighbourCellInfoElement { long physCellId; - struct ECGI *cellGlobalId /* OPTIONAL */; - ARFCN_ValueEUTRA_t *earfcn /* OPTIONAL */; - long *cpLength /* OPTIONAL */; - struct PRS_Info *prsInfo /* OPTIONAL */; - long *antennaPortConfig /* OPTIONAL */; - long *slotNumberOffset /* OPTIONAL */; - long *prs_SubframeOffset /* OPTIONAL */; + struct ECGI *cellGlobalId; /* OPTIONAL */ + ARFCN_ValueEUTRA_t *earfcn; /* OPTIONAL */ + long *cpLength; /* OPTIONAL */ + struct PRS_Info *prsInfo; /* OPTIONAL */ + long *antennaPortConfig; /* OPTIONAL */ + long *slotNumberOffset; /* OPTIONAL */ + long *prs_SubframeOffset; /* OPTIONAL */ long expectedRSTD; long expectedRSTD_Uncertainty; /* @@ -82,17 +82,17 @@ typedef struct OTDOA_NeighbourCellInfoElement { * possible extensions are below. */ struct OTDOA_NeighbourCellInfoElement__ext1 { - ARFCN_ValueEUTRA_v9a0_t *earfcn_v9a0 /* OPTIONAL */; + ARFCN_ValueEUTRA_v9a0_t *earfcn_v9a0; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *ext1; struct OTDOA_NeighbourCellInfoElement__ext2 { - long *tpId_r14 /* OPTIONAL */; - long *prs_only_tp_r14 /* OPTIONAL */; - long *cpLengthCRS_r14 /* OPTIONAL */; - BOOLEAN_t *sameMBSFNconfigNeighbour_r14 /* OPTIONAL */; - long *dlBandwidth_r14 /* OPTIONAL */; + long *tpId_r14; /* OPTIONAL */ + long *prs_only_tp_r14; /* OPTIONAL */ + long *cpLengthCRS_r14; /* OPTIONAL */ + BOOLEAN_t *sameMBSFNconfigNeighbour_r14; /* OPTIONAL */ + long *dlBandwidth_r14; /* OPTIONAL */ struct OTDOA_NeighbourCellInfoElement__ext2__addPRSconfigNeighbour_r14 { A_SEQUENCE_OF(struct Add_PRSconfigNeighbourElement_r14) list; @@ -104,7 +104,7 @@ typedef struct OTDOA_NeighbourCellInfoElement { asn_struct_ctx_t _asn_ctx; } *ext2; struct OTDOA_NeighbourCellInfoElement__ext3 { - struct TDD_Config_v1520 *tdd_config_v1520 /* OPTIONAL */; + struct TDD_Config_v1520 *tdd_config_v1520; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -128,11 +128,5 @@ extern asn_TYPE_member_t asn_MBR_OTDOA_NeighbourCellInfoElement_1[13]; } #endif -/* Referred external types */ -#include "ECGI.h" -#include "PRS-Info.h" -#include "Add-PRSconfigNeighbourElement-r14.h" -#include "TDD-Config-v1520.h" - #endif /* _OTDOA_NeighbourCellInfoElement_H_ */ #include diff --git a/asn.1/lpp_generated/OTDOA-NeighbourCellInfoList.c b/asn.1/lpp_generated/OTDOA-NeighbourCellInfoList.c new file mode 100644 index 00000000..8a69633a --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-NeighbourCellInfoList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OTDOA-NeighbourCellInfoList.h" + +#include "OTDOA-NeighbourFreqInfo.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_OTDOA_NeighbourCellInfoList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_OTDOA_NeighbourCellInfoList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_OTDOA_NeighbourFreqInfo, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_OTDOA_NeighbourCellInfoList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_OTDOA_NeighbourCellInfoList_specs_1 = { + sizeof(struct OTDOA_NeighbourCellInfoList), + offsetof(struct OTDOA_NeighbourCellInfoList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_OTDOA_NeighbourCellInfoList = { + "OTDOA-NeighbourCellInfoList", + "OTDOA-NeighbourCellInfoList", + &asn_OP_SEQUENCE_OF, + asn_DEF_OTDOA_NeighbourCellInfoList_tags_1, + sizeof(asn_DEF_OTDOA_NeighbourCellInfoList_tags_1) + /sizeof(asn_DEF_OTDOA_NeighbourCellInfoList_tags_1[0]), /* 1 */ + asn_DEF_OTDOA_NeighbourCellInfoList_tags_1, /* Same as above */ + sizeof(asn_DEF_OTDOA_NeighbourCellInfoList_tags_1) + /sizeof(asn_DEF_OTDOA_NeighbourCellInfoList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_OTDOA_NeighbourCellInfoList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_OTDOA_NeighbourCellInfoList_1, + 1, /* Single element */ + &asn_SPC_OTDOA_NeighbourCellInfoList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/OTDOA-NeighbourCellInfoList.h b/asn.1/lpp_generated/OTDOA-NeighbourCellInfoList.h similarity index 81% rename from asn.1/generated/OTDOA-NeighbourCellInfoList.h rename to asn.1/lpp_generated/OTDOA-NeighbourCellInfoList.h index d1fb1c63..c3cfc125 100644 --- a/asn.1/generated/OTDOA-NeighbourCellInfoList.h +++ b/asn.1/lpp_generated/OTDOA-NeighbourCellInfoList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _OTDOA_NeighbourCellInfoList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_OTDOA_NeighbourCellInfoList_constr_1; } #endif -/* Referred external types */ -#include "OTDOA-NeighbourFreqInfo.h" - #endif /* _OTDOA_NeighbourCellInfoList_H_ */ #include diff --git a/asn.1/lpp_generated/OTDOA-NeighbourCellInfoListNB-r14.c b/asn.1/lpp_generated/OTDOA-NeighbourCellInfoListNB-r14.c new file mode 100644 index 00000000..4e1e96e4 --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-NeighbourCellInfoListNB-r14.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OTDOA-NeighbourCellInfoListNB-r14.h" + +#include "OTDOA-NeighbourCellInfoNB-r14.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_OTDOA_NeighbourCellInfoListNB_r14_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 7, 7, 1, 72 } /* (SIZE(1..72)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_OTDOA_NeighbourCellInfoListNB_r14_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_OTDOA_NeighbourCellInfoNB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_OTDOA_NeighbourCellInfoListNB_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_OTDOA_NeighbourCellInfoListNB_r14_specs_1 = { + sizeof(struct OTDOA_NeighbourCellInfoListNB_r14), + offsetof(struct OTDOA_NeighbourCellInfoListNB_r14, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_OTDOA_NeighbourCellInfoListNB_r14 = { + "OTDOA-NeighbourCellInfoListNB-r14", + "OTDOA-NeighbourCellInfoListNB-r14", + &asn_OP_SEQUENCE_OF, + asn_DEF_OTDOA_NeighbourCellInfoListNB_r14_tags_1, + sizeof(asn_DEF_OTDOA_NeighbourCellInfoListNB_r14_tags_1) + /sizeof(asn_DEF_OTDOA_NeighbourCellInfoListNB_r14_tags_1[0]), /* 1 */ + asn_DEF_OTDOA_NeighbourCellInfoListNB_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_OTDOA_NeighbourCellInfoListNB_r14_tags_1) + /sizeof(asn_DEF_OTDOA_NeighbourCellInfoListNB_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_OTDOA_NeighbourCellInfoListNB_r14_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_OTDOA_NeighbourCellInfoListNB_r14_1, + 1, /* Single element */ + &asn_SPC_OTDOA_NeighbourCellInfoListNB_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/OTDOA-NeighbourCellInfoListNB-r14.h b/asn.1/lpp_generated/OTDOA-NeighbourCellInfoListNB-r14.h similarity index 82% rename from asn.1/generated/OTDOA-NeighbourCellInfoListNB-r14.h rename to asn.1/lpp_generated/OTDOA-NeighbourCellInfoListNB-r14.h index c7f6d218..5df8cc68 100644 --- a/asn.1/generated/OTDOA-NeighbourCellInfoListNB-r14.h +++ b/asn.1/lpp_generated/OTDOA-NeighbourCellInfoListNB-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _OTDOA_NeighbourCellInfoListNB_r14_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_OTDOA_NeighbourCellInfoListNB_r14_cons } #endif -/* Referred external types */ -#include "OTDOA-NeighbourCellInfoNB-r14.h" - #endif /* _OTDOA_NeighbourCellInfoListNB_r14_H_ */ #include diff --git a/asn.1/lpp_generated/OTDOA-NeighbourCellInfoNB-r14.c b/asn.1/lpp_generated/OTDOA-NeighbourCellInfoNB-r14.c new file mode 100644 index 00000000..62f2255b --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-NeighbourCellInfoNB-r14.c @@ -0,0 +1,786 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OTDOA-NeighbourCellInfoNB-r14.h" + +#include "ECGI.h" +#include "CarrierFreq-NB-r14.h" +#include "PRS-Info-NB-r14.h" +#include "TDD-Config-v1520.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_physCellIdNB_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 503L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nprs_slotNumberOffset_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 19L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nprs_SFN_Offset_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nprs_SubframeOffset_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1279L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_expectedRSTD_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_expectedRSTD_Uncertainty_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_prsNeighbourCellIndex_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 72L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_eutra_NumCRS_Ports_r14_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_otdoa_SIB1_NB_repetitions_r14_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_physCellIdNB_r14_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nprs_slotNumberOffset_r14_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nprs_SFN_Offset_r14_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nprs_SubframeOffset_r14_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 1279 } /* (0..1279) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_expectedRSTD_r14_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_expectedRSTD_Uncertainty_r14_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_prsNeighbourCellIndex_r14_constr_20 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 72 } /* (1..72) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_eutra_NumCRS_Ports_r14_value2enum_6[] = { + { 0, 12, "ports-1-or-2" }, + { 1, 7, "ports-4" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_eutra_NumCRS_Ports_r14_enum2value_6[] = { + 0, /* ports-1-or-2(0) */ + 1 /* ports-4(1) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_eutra_NumCRS_Ports_r14_specs_6 = { + asn_MAP_eutra_NumCRS_Ports_r14_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_eutra_NumCRS_Ports_r14_enum2value_6, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_eutra_NumCRS_Ports_r14_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_eutra_NumCRS_Ports_r14_6 = { + "eutra-NumCRS-Ports-r14", + "eutra-NumCRS-Ports-r14", + &asn_OP_NativeEnumerated, + asn_DEF_eutra_NumCRS_Ports_r14_tags_6, + sizeof(asn_DEF_eutra_NumCRS_Ports_r14_tags_6) + /sizeof(asn_DEF_eutra_NumCRS_Ports_r14_tags_6[0]) - 1, /* 1 */ + asn_DEF_eutra_NumCRS_Ports_r14_tags_6, /* Same as above */ + sizeof(asn_DEF_eutra_NumCRS_Ports_r14_tags_6) + /sizeof(asn_DEF_eutra_NumCRS_Ports_r14_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_eutra_NumCRS_Ports_r14_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_eutra_NumCRS_Ports_r14_specs_6 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_otdoa_SIB1_NB_repetitions_r14_value2enum_10[] = { + { 0, 2, "r4" }, + { 1, 2, "r8" }, + { 2, 3, "r16" } +}; +static const unsigned int asn_MAP_otdoa_SIB1_NB_repetitions_r14_enum2value_10[] = { + 2, /* r16(2) */ + 0, /* r4(0) */ + 1 /* r8(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_otdoa_SIB1_NB_repetitions_r14_specs_10 = { + asn_MAP_otdoa_SIB1_NB_repetitions_r14_value2enum_10, /* "tag" => N; sorted by tag */ + asn_MAP_otdoa_SIB1_NB_repetitions_r14_enum2value_10, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_otdoa_SIB1_NB_repetitions_r14_10 = { + "otdoa-SIB1-NB-repetitions-r14", + "otdoa-SIB1-NB-repetitions-r14", + &asn_OP_NativeEnumerated, + asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_10, + sizeof(asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_10) + /sizeof(asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_10[0]) - 1, /* 1 */ + asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_10, /* Same as above */ + sizeof(asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_10) + /sizeof(asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_otdoa_SIB1_NB_repetitions_r14_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_otdoa_SIB1_NB_repetitions_r14_specs_10 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_22[] = { + { ATF_POINTER, 1, offsetof(struct OTDOA_NeighbourCellInfoNB_r14__ext1, nprsInfo_Type2_v1470), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PRS_Info_NB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nprsInfo-Type2-v1470" + }, +}; +static const int asn_MAP_ext1_oms_22[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_22[] = { + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_22[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nprsInfo-Type2-v1470 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_22 = { + sizeof(struct OTDOA_NeighbourCellInfoNB_r14__ext1), + offsetof(struct OTDOA_NeighbourCellInfoNB_r14__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_22, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_22, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_22 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_22, + sizeof(asn_DEF_ext1_tags_22) + /sizeof(asn_DEF_ext1_tags_22[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_22, /* Same as above */ + sizeof(asn_DEF_ext1_tags_22) + /sizeof(asn_DEF_ext1_tags_22[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_22, + 1, /* Elements count */ + &asn_SPC_ext1_specs_22 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_24[] = { + { ATF_POINTER, 1, offsetof(struct OTDOA_NeighbourCellInfoNB_r14__ext2, tdd_config_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TDD_Config_v1520, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tdd-config-r15" + }, +}; +static const int asn_MAP_ext2_oms_24[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_24[] = { + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_24[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* tdd-config-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_24 = { + sizeof(struct OTDOA_NeighbourCellInfoNB_r14__ext2), + offsetof(struct OTDOA_NeighbourCellInfoNB_r14__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_24, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_24, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_24 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_24, + sizeof(asn_DEF_ext2_tags_24) + /sizeof(asn_DEF_ext2_tags_24[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_24, /* Same as above */ + sizeof(asn_DEF_ext2_tags_24) + /sizeof(asn_DEF_ext2_tags_24[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_24, + 1, /* Elements count */ + &asn_SPC_ext2_specs_24 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_OTDOA_NeighbourCellInfoNB_r14_1[] = { + { ATF_POINTER, 15, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, physCellIdNB_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_physCellIdNB_r14_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_physCellIdNB_r14_constraint_1 + }, + 0, 0, /* No default value */ + "physCellIdNB-r14" + }, + { ATF_POINTER, 14, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, cellGlobalIdNB_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ECGI, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellGlobalIdNB-r14" + }, + { ATF_POINTER, 13, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, carrierFreq_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CarrierFreq_NB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "carrierFreq-r14" + }, + { ATF_POINTER, 12, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, earfcn_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueEUTRA_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "earfcn-r14" + }, + { ATF_POINTER, 11, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, eutra_NumCRS_Ports_r14), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_eutra_NumCRS_Ports_r14_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eutra-NumCRS-Ports-r14" + }, + { ATF_POINTER, 10, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, otdoa_SIB1_NB_repetitions_r14), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_otdoa_SIB1_NB_repetitions_r14_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "otdoa-SIB1-NB-repetitions-r14" + }, + { ATF_POINTER, 9, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, nprsInfo_r14), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PRS_Info_NB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nprsInfo-r14" + }, + { ATF_POINTER, 8, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, nprs_slotNumberOffset_r14), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nprs_slotNumberOffset_r14_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nprs_slotNumberOffset_r14_constraint_1 + }, + 0, 0, /* No default value */ + "nprs-slotNumberOffset-r14" + }, + { ATF_POINTER, 7, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, nprs_SFN_Offset_r14), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nprs_SFN_Offset_r14_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nprs_SFN_Offset_r14_constraint_1 + }, + 0, 0, /* No default value */ + "nprs-SFN-Offset-r14" + }, + { ATF_POINTER, 6, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, nprs_SubframeOffset_r14), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nprs_SubframeOffset_r14_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nprs_SubframeOffset_r14_constraint_1 + }, + 0, 0, /* No default value */ + "nprs-SubframeOffset-r14" + }, + { ATF_POINTER, 5, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, expectedRSTD_r14), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_expectedRSTD_r14_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_expectedRSTD_r14_constraint_1 + }, + 0, 0, /* No default value */ + "expectedRSTD-r14" + }, + { ATF_POINTER, 4, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, expectedRSTD_Uncertainty_r14), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_expectedRSTD_Uncertainty_r14_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_expectedRSTD_Uncertainty_r14_constraint_1 + }, + 0, 0, /* No default value */ + "expectedRSTD-Uncertainty-r14" + }, + { ATF_POINTER, 3, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, prsNeighbourCellIndex_r14), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_prsNeighbourCellIndex_r14_constr_20, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_prsNeighbourCellIndex_r14_constraint_1 + }, + 0, 0, /* No default value */ + "prsNeighbourCellIndex-r14" + }, + { ATF_POINTER, 2, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, ext1), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + 0, + &asn_DEF_ext1_22, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_NeighbourCellInfoNB_r14, ext2), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + 0, + &asn_DEF_ext2_24, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_OTDOA_NeighbourCellInfoNB_r14_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static const ber_tlv_tag_t asn_DEF_OTDOA_NeighbourCellInfoNB_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_OTDOA_NeighbourCellInfoNB_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellIdNB-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalIdNB-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* carrierFreq-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* earfcn-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* eutra-NumCRS-Ports-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* otdoa-SIB1-NB-repetitions-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* nprsInfo-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* nprs-slotNumberOffset-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* nprs-SFN-Offset-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* nprs-SubframeOffset-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* expectedRSTD-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* expectedRSTD-Uncertainty-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* prsNeighbourCellIndex-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_OTDOA_NeighbourCellInfoNB_r14_specs_1 = { + sizeof(struct OTDOA_NeighbourCellInfoNB_r14), + offsetof(struct OTDOA_NeighbourCellInfoNB_r14, _asn_ctx), + asn_MAP_OTDOA_NeighbourCellInfoNB_r14_tag2el_1, + 15, /* Count of tags in the map */ + asn_MAP_OTDOA_NeighbourCellInfoNB_r14_oms_1, /* Optional members */ + 13, 2, /* Root/Additions */ + 13, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OTDOA_NeighbourCellInfoNB_r14 = { + "OTDOA-NeighbourCellInfoNB-r14", + "OTDOA-NeighbourCellInfoNB-r14", + &asn_OP_SEQUENCE, + asn_DEF_OTDOA_NeighbourCellInfoNB_r14_tags_1, + sizeof(asn_DEF_OTDOA_NeighbourCellInfoNB_r14_tags_1) + /sizeof(asn_DEF_OTDOA_NeighbourCellInfoNB_r14_tags_1[0]), /* 1 */ + asn_DEF_OTDOA_NeighbourCellInfoNB_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_OTDOA_NeighbourCellInfoNB_r14_tags_1) + /sizeof(asn_DEF_OTDOA_NeighbourCellInfoNB_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_OTDOA_NeighbourCellInfoNB_r14_1, + 15, /* Elements count */ + &asn_SPC_OTDOA_NeighbourCellInfoNB_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/OTDOA-NeighbourCellInfoNB-r14.h b/asn.1/lpp_generated/OTDOA-NeighbourCellInfoNB-r14.h new file mode 100644 index 00000000..997ba158 --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-NeighbourCellInfoNB-r14.h @@ -0,0 +1,92 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _OTDOA_NeighbourCellInfoNB_r14_H_ +#define _OTDOA_NeighbourCellInfoNB_r14_H_ + + +#include + +/* Including external dependencies */ +#include +#include "ARFCN-ValueEUTRA-r14.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum OTDOA_NeighbourCellInfoNB_r14__eutra_NumCRS_Ports_r14 { + OTDOA_NeighbourCellInfoNB_r14__eutra_NumCRS_Ports_r14_ports_1_or_2 = 0, + OTDOA_NeighbourCellInfoNB_r14__eutra_NumCRS_Ports_r14_ports_4 = 1 + /* + * Enumeration is extensible + */ +} e_OTDOA_NeighbourCellInfoNB_r14__eutra_NumCRS_Ports_r14; +typedef enum OTDOA_NeighbourCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14 { + OTDOA_NeighbourCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14_r4 = 0, + OTDOA_NeighbourCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14_r8 = 1, + OTDOA_NeighbourCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14_r16 = 2 +} e_OTDOA_NeighbourCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14; + +/* Forward declarations */ +struct ECGI; +struct CarrierFreq_NB_r14; +struct PRS_Info_NB_r14; +struct TDD_Config_v1520; + +/* OTDOA-NeighbourCellInfoNB-r14 */ +typedef struct OTDOA_NeighbourCellInfoNB_r14 { + long *physCellIdNB_r14; /* OPTIONAL */ + struct ECGI *cellGlobalIdNB_r14; /* OPTIONAL */ + struct CarrierFreq_NB_r14 *carrierFreq_r14; /* OPTIONAL */ + ARFCN_ValueEUTRA_r14_t *earfcn_r14; /* OPTIONAL */ + long *eutra_NumCRS_Ports_r14; /* OPTIONAL */ + long *otdoa_SIB1_NB_repetitions_r14; /* OPTIONAL */ + struct PRS_Info_NB_r14 *nprsInfo_r14; /* OPTIONAL */ + long *nprs_slotNumberOffset_r14; /* OPTIONAL */ + long *nprs_SFN_Offset_r14; /* OPTIONAL */ + long *nprs_SubframeOffset_r14; /* OPTIONAL */ + long *expectedRSTD_r14; /* OPTIONAL */ + long *expectedRSTD_Uncertainty_r14; /* OPTIONAL */ + long *prsNeighbourCellIndex_r14; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct OTDOA_NeighbourCellInfoNB_r14__ext1 { + struct PRS_Info_NB_r14 *nprsInfo_Type2_v1470; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct OTDOA_NeighbourCellInfoNB_r14__ext2 { + struct TDD_Config_v1520 *tdd_config_r15; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} OTDOA_NeighbourCellInfoNB_r14_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_eutra_NumCRS_Ports_r14_6; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_otdoa_SIB1_NB_repetitions_r14_10; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_OTDOA_NeighbourCellInfoNB_r14; +extern asn_SEQUENCE_specifics_t asn_SPC_OTDOA_NeighbourCellInfoNB_r14_specs_1; +extern asn_TYPE_member_t asn_MBR_OTDOA_NeighbourCellInfoNB_r14_1[15]; + +#ifdef __cplusplus +} +#endif + +#endif /* _OTDOA_NeighbourCellInfoNB_r14_H_ */ +#include diff --git a/asn.1/lpp_generated/OTDOA-NeighbourFreqInfo.c b/asn.1/lpp_generated/OTDOA-NeighbourFreqInfo.c new file mode 100644 index 00000000..cedf8180 --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-NeighbourFreqInfo.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OTDOA-NeighbourFreqInfo.h" + +#include "OTDOA-NeighbourCellInfoElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_OTDOA_NeighbourFreqInfo_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 24 } /* (SIZE(1..24)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_OTDOA_NeighbourFreqInfo_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_OTDOA_NeighbourCellInfoElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_OTDOA_NeighbourFreqInfo_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_OTDOA_NeighbourFreqInfo_specs_1 = { + sizeof(struct OTDOA_NeighbourFreqInfo), + offsetof(struct OTDOA_NeighbourFreqInfo, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_OTDOA_NeighbourFreqInfo = { + "OTDOA-NeighbourFreqInfo", + "OTDOA-NeighbourFreqInfo", + &asn_OP_SEQUENCE_OF, + asn_DEF_OTDOA_NeighbourFreqInfo_tags_1, + sizeof(asn_DEF_OTDOA_NeighbourFreqInfo_tags_1) + /sizeof(asn_DEF_OTDOA_NeighbourFreqInfo_tags_1[0]), /* 1 */ + asn_DEF_OTDOA_NeighbourFreqInfo_tags_1, /* Same as above */ + sizeof(asn_DEF_OTDOA_NeighbourFreqInfo_tags_1) + /sizeof(asn_DEF_OTDOA_NeighbourFreqInfo_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_OTDOA_NeighbourFreqInfo_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_OTDOA_NeighbourFreqInfo_1, + 1, /* Single element */ + &asn_SPC_OTDOA_NeighbourFreqInfo_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/OTDOA-NeighbourFreqInfo.h b/asn.1/lpp_generated/OTDOA-NeighbourFreqInfo.h similarity index 80% rename from asn.1/generated/OTDOA-NeighbourFreqInfo.h rename to asn.1/lpp_generated/OTDOA-NeighbourFreqInfo.h index ed7af5c9..eb017bb4 100644 --- a/asn.1/generated/OTDOA-NeighbourFreqInfo.h +++ b/asn.1/lpp_generated/OTDOA-NeighbourFreqInfo.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _OTDOA_NeighbourFreqInfo_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_OTDOA_NeighbourFreqInfo_constr_1; } #endif -/* Referred external types */ -#include "OTDOA-NeighbourCellInfoElement.h" - #endif /* _OTDOA_NeighbourFreqInfo_H_ */ #include diff --git a/asn.1/lpp_generated/OTDOA-ProvideAssistanceData.c b/asn.1/lpp_generated/OTDOA-ProvideAssistanceData.c new file mode 100644 index 00000000..6478c400 --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-ProvideAssistanceData.c @@ -0,0 +1,206 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OTDOA-ProvideAssistanceData.h" + +#include "OTDOA-ReferenceCellInfo.h" +#include "OTDOA-NeighbourCellInfoList.h" +#include "OTDOA-Error.h" +#include "OTDOA-ReferenceCellInfoNB-r14.h" +#include "OTDOA-NeighbourCellInfoListNB-r14.h" +static asn_TYPE_member_t asn_MBR_ext1_6[] = { + { ATF_POINTER, 2, offsetof(struct OTDOA_ProvideAssistanceData__ext1, otdoa_ReferenceCellInfoNB_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OTDOA_ReferenceCellInfoNB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "otdoa-ReferenceCellInfoNB-r14" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_ProvideAssistanceData__ext1, otdoa_NeighbourCellInfoNB_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OTDOA_NeighbourCellInfoListNB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "otdoa-NeighbourCellInfoNB-r14" + }, +}; +static const int asn_MAP_ext1_oms_6[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* otdoa-ReferenceCellInfoNB-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* otdoa-NeighbourCellInfoNB-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = { + sizeof(struct OTDOA_ProvideAssistanceData__ext1), + offsetof(struct OTDOA_ProvideAssistanceData__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_6, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_6, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_6 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_6, + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_6, /* Same as above */ + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_6, + 2, /* Elements count */ + &asn_SPC_ext1_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_OTDOA_ProvideAssistanceData_1[] = { + { ATF_POINTER, 4, offsetof(struct OTDOA_ProvideAssistanceData, otdoa_ReferenceCellInfo), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OTDOA_ReferenceCellInfo, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "otdoa-ReferenceCellInfo" + }, + { ATF_POINTER, 3, offsetof(struct OTDOA_ProvideAssistanceData, otdoa_NeighbourCellInfo), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OTDOA_NeighbourCellInfoList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "otdoa-NeighbourCellInfo" + }, + { ATF_POINTER, 2, offsetof(struct OTDOA_ProvideAssistanceData, otdoa_Error), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_OTDOA_Error, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "otdoa-Error" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_ProvideAssistanceData, ext1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext1_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_OTDOA_ProvideAssistanceData_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_OTDOA_ProvideAssistanceData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_OTDOA_ProvideAssistanceData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* otdoa-ReferenceCellInfo */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* otdoa-NeighbourCellInfo */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* otdoa-Error */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_OTDOA_ProvideAssistanceData_specs_1 = { + sizeof(struct OTDOA_ProvideAssistanceData), + offsetof(struct OTDOA_ProvideAssistanceData, _asn_ctx), + asn_MAP_OTDOA_ProvideAssistanceData_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_OTDOA_ProvideAssistanceData_oms_1, /* Optional members */ + 3, 1, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OTDOA_ProvideAssistanceData = { + "OTDOA-ProvideAssistanceData", + "OTDOA-ProvideAssistanceData", + &asn_OP_SEQUENCE, + asn_DEF_OTDOA_ProvideAssistanceData_tags_1, + sizeof(asn_DEF_OTDOA_ProvideAssistanceData_tags_1) + /sizeof(asn_DEF_OTDOA_ProvideAssistanceData_tags_1[0]), /* 1 */ + asn_DEF_OTDOA_ProvideAssistanceData_tags_1, /* Same as above */ + sizeof(asn_DEF_OTDOA_ProvideAssistanceData_tags_1) + /sizeof(asn_DEF_OTDOA_ProvideAssistanceData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_OTDOA_ProvideAssistanceData_1, + 4, /* Elements count */ + &asn_SPC_OTDOA_ProvideAssistanceData_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/OTDOA-ProvideAssistanceData.h b/asn.1/lpp_generated/OTDOA-ProvideAssistanceData.h new file mode 100644 index 00000000..6ebbba1e --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-ProvideAssistanceData.h @@ -0,0 +1,59 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _OTDOA_ProvideAssistanceData_H_ +#define _OTDOA_ProvideAssistanceData_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct OTDOA_ReferenceCellInfo; +struct OTDOA_NeighbourCellInfoList; +struct OTDOA_Error; +struct OTDOA_ReferenceCellInfoNB_r14; +struct OTDOA_NeighbourCellInfoListNB_r14; + +/* OTDOA-ProvideAssistanceData */ +typedef struct OTDOA_ProvideAssistanceData { + struct OTDOA_ReferenceCellInfo *otdoa_ReferenceCellInfo; /* OPTIONAL */ + struct OTDOA_NeighbourCellInfoList *otdoa_NeighbourCellInfo; /* OPTIONAL */ + struct OTDOA_Error *otdoa_Error; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct OTDOA_ProvideAssistanceData__ext1 { + struct OTDOA_ReferenceCellInfoNB_r14 *otdoa_ReferenceCellInfoNB_r14; /* OPTIONAL */ + struct OTDOA_NeighbourCellInfoListNB_r14 *otdoa_NeighbourCellInfoNB_r14; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} OTDOA_ProvideAssistanceData_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_OTDOA_ProvideAssistanceData; +extern asn_SEQUENCE_specifics_t asn_SPC_OTDOA_ProvideAssistanceData_specs_1; +extern asn_TYPE_member_t asn_MBR_OTDOA_ProvideAssistanceData_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _OTDOA_ProvideAssistanceData_H_ */ +#include diff --git a/asn.1/lpp_generated/OTDOA-ProvideCapabilities.c b/asn.1/lpp_generated/OTDOA-ProvideCapabilities.c new file mode 100644 index 00000000..0b639519 --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-ProvideCapabilities.c @@ -0,0 +1,1661 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OTDOA-ProvideCapabilities.h" + +#include "ScheduledLocationTimeSupport-r17.h" +#include "SupportedBandEUTRA.h" +#include "SupportedBandEUTRA-v9a0.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_otdoa_Mode_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_supportedBandListEUTRA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 64UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_supportedBandListEUTRA_v9a0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 64UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportedBandListEUTRA_constr_7 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportedBandListEUTRA_v9a0_constr_9 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_interFreqRSTDmeasurement_r10_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_additionalNeighbourCellInfoList_r10_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prs_id_r14_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_tp_separation_via_muting_r14_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_additional_prs_config_r14_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prs_based_tbs_r14_constr_21 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_additionalPathsReport_r14_constr_23 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_densePrsConfig_r14_constr_25 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxSupportedPrsBandwidth_r14_constr_27 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prsOccGroup_r14_constr_35 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prsFrequencyHopping_r14_constr_37 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxSupportedPrsConfigs_r14_constr_39 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_periodicalReporting_r14_constr_42 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_multiPrbNprs_r14_constr_44 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_idleStateForMeasurements_r14_constr_46 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_numberOfRXantennas_r14_constr_48 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_motionMeasurements_r15_constr_51 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_interRAT_RSTDmeasurement_r15_constr_53 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_otdoa_Mode_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_supportedBandListEUTRA_constr_7 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_supportedBandListEUTRA_v9a0_constr_9 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_supportedBandListEUTRA_7[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SupportedBandEUTRA, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_supportedBandListEUTRA_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_supportedBandListEUTRA_specs_7 = { + sizeof(struct OTDOA_ProvideCapabilities__supportedBandListEUTRA), + offsetof(struct OTDOA_ProvideCapabilities__supportedBandListEUTRA, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportedBandListEUTRA_7 = { + "supportedBandListEUTRA", + "supportedBandListEUTRA", + &asn_OP_SEQUENCE_OF, + asn_DEF_supportedBandListEUTRA_tags_7, + sizeof(asn_DEF_supportedBandListEUTRA_tags_7) + /sizeof(asn_DEF_supportedBandListEUTRA_tags_7[0]) - 1, /* 1 */ + asn_DEF_supportedBandListEUTRA_tags_7, /* Same as above */ + sizeof(asn_DEF_supportedBandListEUTRA_tags_7) + /sizeof(asn_DEF_supportedBandListEUTRA_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportedBandListEUTRA_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_supportedBandListEUTRA_7, + 1, /* Single element */ + &asn_SPC_supportedBandListEUTRA_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_supportedBandListEUTRA_v9a0_9[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SupportedBandEUTRA_v9a0, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_supportedBandListEUTRA_v9a0_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_supportedBandListEUTRA_v9a0_specs_9 = { + sizeof(struct OTDOA_ProvideCapabilities__supportedBandListEUTRA_v9a0), + offsetof(struct OTDOA_ProvideCapabilities__supportedBandListEUTRA_v9a0, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportedBandListEUTRA_v9a0_9 = { + "supportedBandListEUTRA-v9a0", + "supportedBandListEUTRA-v9a0", + &asn_OP_SEQUENCE_OF, + asn_DEF_supportedBandListEUTRA_v9a0_tags_9, + sizeof(asn_DEF_supportedBandListEUTRA_v9a0_tags_9) + /sizeof(asn_DEF_supportedBandListEUTRA_v9a0_tags_9[0]) - 1, /* 1 */ + asn_DEF_supportedBandListEUTRA_v9a0_tags_9, /* Same as above */ + sizeof(asn_DEF_supportedBandListEUTRA_v9a0_tags_9) + /sizeof(asn_DEF_supportedBandListEUTRA_v9a0_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportedBandListEUTRA_v9a0_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_supportedBandListEUTRA_v9a0_9, + 1, /* Single element */ + &asn_SPC_supportedBandListEUTRA_v9a0_specs_9 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_interFreqRSTDmeasurement_r10_value2enum_11[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_interFreqRSTDmeasurement_r10_enum2value_11[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_interFreqRSTDmeasurement_r10_specs_11 = { + asn_MAP_interFreqRSTDmeasurement_r10_value2enum_11, /* "tag" => N; sorted by tag */ + asn_MAP_interFreqRSTDmeasurement_r10_enum2value_11, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_interFreqRSTDmeasurement_r10_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_interFreqRSTDmeasurement_r10_11 = { + "interFreqRSTDmeasurement-r10", + "interFreqRSTDmeasurement-r10", + &asn_OP_NativeEnumerated, + asn_DEF_interFreqRSTDmeasurement_r10_tags_11, + sizeof(asn_DEF_interFreqRSTDmeasurement_r10_tags_11) + /sizeof(asn_DEF_interFreqRSTDmeasurement_r10_tags_11[0]) - 1, /* 1 */ + asn_DEF_interFreqRSTDmeasurement_r10_tags_11, /* Same as above */ + sizeof(asn_DEF_interFreqRSTDmeasurement_r10_tags_11) + /sizeof(asn_DEF_interFreqRSTDmeasurement_r10_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_interFreqRSTDmeasurement_r10_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_interFreqRSTDmeasurement_r10_specs_11 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_additionalNeighbourCellInfoList_r10_value2enum_13[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_additionalNeighbourCellInfoList_r10_enum2value_13[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_additionalNeighbourCellInfoList_r10_specs_13 = { + asn_MAP_additionalNeighbourCellInfoList_r10_value2enum_13, /* "tag" => N; sorted by tag */ + asn_MAP_additionalNeighbourCellInfoList_r10_enum2value_13, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_additionalNeighbourCellInfoList_r10_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_additionalNeighbourCellInfoList_r10_13 = { + "additionalNeighbourCellInfoList-r10", + "additionalNeighbourCellInfoList-r10", + &asn_OP_NativeEnumerated, + asn_DEF_additionalNeighbourCellInfoList_r10_tags_13, + sizeof(asn_DEF_additionalNeighbourCellInfoList_r10_tags_13) + /sizeof(asn_DEF_additionalNeighbourCellInfoList_r10_tags_13[0]) - 1, /* 1 */ + asn_DEF_additionalNeighbourCellInfoList_r10_tags_13, /* Same as above */ + sizeof(asn_DEF_additionalNeighbourCellInfoList_r10_tags_13) + /sizeof(asn_DEF_additionalNeighbourCellInfoList_r10_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_additionalNeighbourCellInfoList_r10_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_additionalNeighbourCellInfoList_r10_specs_13 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_prs_id_r14_value2enum_15[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_prs_id_r14_enum2value_15[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_prs_id_r14_specs_15 = { + asn_MAP_prs_id_r14_value2enum_15, /* "tag" => N; sorted by tag */ + asn_MAP_prs_id_r14_enum2value_15, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_prs_id_r14_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prs_id_r14_15 = { + "prs-id-r14", + "prs-id-r14", + &asn_OP_NativeEnumerated, + asn_DEF_prs_id_r14_tags_15, + sizeof(asn_DEF_prs_id_r14_tags_15) + /sizeof(asn_DEF_prs_id_r14_tags_15[0]) - 1, /* 1 */ + asn_DEF_prs_id_r14_tags_15, /* Same as above */ + sizeof(asn_DEF_prs_id_r14_tags_15) + /sizeof(asn_DEF_prs_id_r14_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prs_id_r14_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_prs_id_r14_specs_15 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_tp_separation_via_muting_r14_value2enum_17[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_tp_separation_via_muting_r14_enum2value_17[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_tp_separation_via_muting_r14_specs_17 = { + asn_MAP_tp_separation_via_muting_r14_value2enum_17, /* "tag" => N; sorted by tag */ + asn_MAP_tp_separation_via_muting_r14_enum2value_17, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_tp_separation_via_muting_r14_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_tp_separation_via_muting_r14_17 = { + "tp-separation-via-muting-r14", + "tp-separation-via-muting-r14", + &asn_OP_NativeEnumerated, + asn_DEF_tp_separation_via_muting_r14_tags_17, + sizeof(asn_DEF_tp_separation_via_muting_r14_tags_17) + /sizeof(asn_DEF_tp_separation_via_muting_r14_tags_17[0]) - 1, /* 1 */ + asn_DEF_tp_separation_via_muting_r14_tags_17, /* Same as above */ + sizeof(asn_DEF_tp_separation_via_muting_r14_tags_17) + /sizeof(asn_DEF_tp_separation_via_muting_r14_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_tp_separation_via_muting_r14_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_tp_separation_via_muting_r14_specs_17 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_additional_prs_config_r14_value2enum_19[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_additional_prs_config_r14_enum2value_19[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_additional_prs_config_r14_specs_19 = { + asn_MAP_additional_prs_config_r14_value2enum_19, /* "tag" => N; sorted by tag */ + asn_MAP_additional_prs_config_r14_enum2value_19, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_additional_prs_config_r14_tags_19[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_additional_prs_config_r14_19 = { + "additional-prs-config-r14", + "additional-prs-config-r14", + &asn_OP_NativeEnumerated, + asn_DEF_additional_prs_config_r14_tags_19, + sizeof(asn_DEF_additional_prs_config_r14_tags_19) + /sizeof(asn_DEF_additional_prs_config_r14_tags_19[0]) - 1, /* 1 */ + asn_DEF_additional_prs_config_r14_tags_19, /* Same as above */ + sizeof(asn_DEF_additional_prs_config_r14_tags_19) + /sizeof(asn_DEF_additional_prs_config_r14_tags_19[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_additional_prs_config_r14_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_additional_prs_config_r14_specs_19 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_prs_based_tbs_r14_value2enum_21[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_prs_based_tbs_r14_enum2value_21[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_prs_based_tbs_r14_specs_21 = { + asn_MAP_prs_based_tbs_r14_value2enum_21, /* "tag" => N; sorted by tag */ + asn_MAP_prs_based_tbs_r14_enum2value_21, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_prs_based_tbs_r14_tags_21[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prs_based_tbs_r14_21 = { + "prs-based-tbs-r14", + "prs-based-tbs-r14", + &asn_OP_NativeEnumerated, + asn_DEF_prs_based_tbs_r14_tags_21, + sizeof(asn_DEF_prs_based_tbs_r14_tags_21) + /sizeof(asn_DEF_prs_based_tbs_r14_tags_21[0]) - 1, /* 1 */ + asn_DEF_prs_based_tbs_r14_tags_21, /* Same as above */ + sizeof(asn_DEF_prs_based_tbs_r14_tags_21) + /sizeof(asn_DEF_prs_based_tbs_r14_tags_21[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prs_based_tbs_r14_constr_21, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_prs_based_tbs_r14_specs_21 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_additionalPathsReport_r14_value2enum_23[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_additionalPathsReport_r14_enum2value_23[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_additionalPathsReport_r14_specs_23 = { + asn_MAP_additionalPathsReport_r14_value2enum_23, /* "tag" => N; sorted by tag */ + asn_MAP_additionalPathsReport_r14_enum2value_23, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_additionalPathsReport_r14_tags_23[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_additionalPathsReport_r14_23 = { + "additionalPathsReport-r14", + "additionalPathsReport-r14", + &asn_OP_NativeEnumerated, + asn_DEF_additionalPathsReport_r14_tags_23, + sizeof(asn_DEF_additionalPathsReport_r14_tags_23) + /sizeof(asn_DEF_additionalPathsReport_r14_tags_23[0]) - 1, /* 1 */ + asn_DEF_additionalPathsReport_r14_tags_23, /* Same as above */ + sizeof(asn_DEF_additionalPathsReport_r14_tags_23) + /sizeof(asn_DEF_additionalPathsReport_r14_tags_23[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_additionalPathsReport_r14_constr_23, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_additionalPathsReport_r14_specs_23 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_densePrsConfig_r14_value2enum_25[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_densePrsConfig_r14_enum2value_25[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_densePrsConfig_r14_specs_25 = { + asn_MAP_densePrsConfig_r14_value2enum_25, /* "tag" => N; sorted by tag */ + asn_MAP_densePrsConfig_r14_enum2value_25, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_densePrsConfig_r14_tags_25[] = { + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_densePrsConfig_r14_25 = { + "densePrsConfig-r14", + "densePrsConfig-r14", + &asn_OP_NativeEnumerated, + asn_DEF_densePrsConfig_r14_tags_25, + sizeof(asn_DEF_densePrsConfig_r14_tags_25) + /sizeof(asn_DEF_densePrsConfig_r14_tags_25[0]) - 1, /* 1 */ + asn_DEF_densePrsConfig_r14_tags_25, /* Same as above */ + sizeof(asn_DEF_densePrsConfig_r14_tags_25) + /sizeof(asn_DEF_densePrsConfig_r14_tags_25[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_densePrsConfig_r14_constr_25, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_densePrsConfig_r14_specs_25 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxSupportedPrsBandwidth_r14_value2enum_27[] = { + { 0, 2, "n6" }, + { 1, 3, "n15" }, + { 2, 3, "n25" }, + { 3, 3, "n50" }, + { 4, 3, "n75" }, + { 5, 4, "n100" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_maxSupportedPrsBandwidth_r14_enum2value_27[] = { + 5, /* n100(5) */ + 1, /* n15(1) */ + 2, /* n25(2) */ + 3, /* n50(3) */ + 0, /* n6(0) */ + 4 /* n75(4) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxSupportedPrsBandwidth_r14_specs_27 = { + asn_MAP_maxSupportedPrsBandwidth_r14_value2enum_27, /* "tag" => N; sorted by tag */ + asn_MAP_maxSupportedPrsBandwidth_r14_enum2value_27, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 7, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxSupportedPrsBandwidth_r14_tags_27[] = { + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxSupportedPrsBandwidth_r14_27 = { + "maxSupportedPrsBandwidth-r14", + "maxSupportedPrsBandwidth-r14", + &asn_OP_NativeEnumerated, + asn_DEF_maxSupportedPrsBandwidth_r14_tags_27, + sizeof(asn_DEF_maxSupportedPrsBandwidth_r14_tags_27) + /sizeof(asn_DEF_maxSupportedPrsBandwidth_r14_tags_27[0]) - 1, /* 1 */ + asn_DEF_maxSupportedPrsBandwidth_r14_tags_27, /* Same as above */ + sizeof(asn_DEF_maxSupportedPrsBandwidth_r14_tags_27) + /sizeof(asn_DEF_maxSupportedPrsBandwidth_r14_tags_27[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxSupportedPrsBandwidth_r14_constr_27, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxSupportedPrsBandwidth_r14_specs_27 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_prsOccGroup_r14_value2enum_35[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_prsOccGroup_r14_enum2value_35[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_prsOccGroup_r14_specs_35 = { + asn_MAP_prsOccGroup_r14_value2enum_35, /* "tag" => N; sorted by tag */ + asn_MAP_prsOccGroup_r14_enum2value_35, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_prsOccGroup_r14_tags_35[] = { + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prsOccGroup_r14_35 = { + "prsOccGroup-r14", + "prsOccGroup-r14", + &asn_OP_NativeEnumerated, + asn_DEF_prsOccGroup_r14_tags_35, + sizeof(asn_DEF_prsOccGroup_r14_tags_35) + /sizeof(asn_DEF_prsOccGroup_r14_tags_35[0]) - 1, /* 1 */ + asn_DEF_prsOccGroup_r14_tags_35, /* Same as above */ + sizeof(asn_DEF_prsOccGroup_r14_tags_35) + /sizeof(asn_DEF_prsOccGroup_r14_tags_35[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prsOccGroup_r14_constr_35, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_prsOccGroup_r14_specs_35 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_prsFrequencyHopping_r14_value2enum_37[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_prsFrequencyHopping_r14_enum2value_37[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_prsFrequencyHopping_r14_specs_37 = { + asn_MAP_prsFrequencyHopping_r14_value2enum_37, /* "tag" => N; sorted by tag */ + asn_MAP_prsFrequencyHopping_r14_enum2value_37, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_prsFrequencyHopping_r14_tags_37[] = { + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prsFrequencyHopping_r14_37 = { + "prsFrequencyHopping-r14", + "prsFrequencyHopping-r14", + &asn_OP_NativeEnumerated, + asn_DEF_prsFrequencyHopping_r14_tags_37, + sizeof(asn_DEF_prsFrequencyHopping_r14_tags_37) + /sizeof(asn_DEF_prsFrequencyHopping_r14_tags_37[0]) - 1, /* 1 */ + asn_DEF_prsFrequencyHopping_r14_tags_37, /* Same as above */ + sizeof(asn_DEF_prsFrequencyHopping_r14_tags_37) + /sizeof(asn_DEF_prsFrequencyHopping_r14_tags_37[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prsFrequencyHopping_r14_constr_37, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_prsFrequencyHopping_r14_specs_37 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxSupportedPrsConfigs_r14_value2enum_39[] = { + { 0, 2, "c2" }, + { 1, 2, "c3" } +}; +static const unsigned int asn_MAP_maxSupportedPrsConfigs_r14_enum2value_39[] = { + 0, /* c2(0) */ + 1 /* c3(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxSupportedPrsConfigs_r14_specs_39 = { + asn_MAP_maxSupportedPrsConfigs_r14_value2enum_39, /* "tag" => N; sorted by tag */ + asn_MAP_maxSupportedPrsConfigs_r14_enum2value_39, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxSupportedPrsConfigs_r14_tags_39[] = { + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxSupportedPrsConfigs_r14_39 = { + "maxSupportedPrsConfigs-r14", + "maxSupportedPrsConfigs-r14", + &asn_OP_NativeEnumerated, + asn_DEF_maxSupportedPrsConfigs_r14_tags_39, + sizeof(asn_DEF_maxSupportedPrsConfigs_r14_tags_39) + /sizeof(asn_DEF_maxSupportedPrsConfigs_r14_tags_39[0]) - 1, /* 1 */ + asn_DEF_maxSupportedPrsConfigs_r14_tags_39, /* Same as above */ + sizeof(asn_DEF_maxSupportedPrsConfigs_r14_tags_39) + /sizeof(asn_DEF_maxSupportedPrsConfigs_r14_tags_39[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxSupportedPrsConfigs_r14_constr_39, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxSupportedPrsConfigs_r14_specs_39 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_periodicalReporting_r14_value2enum_42[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_periodicalReporting_r14_enum2value_42[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_periodicalReporting_r14_specs_42 = { + asn_MAP_periodicalReporting_r14_value2enum_42, /* "tag" => N; sorted by tag */ + asn_MAP_periodicalReporting_r14_enum2value_42, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_periodicalReporting_r14_tags_42[] = { + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_periodicalReporting_r14_42 = { + "periodicalReporting-r14", + "periodicalReporting-r14", + &asn_OP_NativeEnumerated, + asn_DEF_periodicalReporting_r14_tags_42, + sizeof(asn_DEF_periodicalReporting_r14_tags_42) + /sizeof(asn_DEF_periodicalReporting_r14_tags_42[0]) - 1, /* 1 */ + asn_DEF_periodicalReporting_r14_tags_42, /* Same as above */ + sizeof(asn_DEF_periodicalReporting_r14_tags_42) + /sizeof(asn_DEF_periodicalReporting_r14_tags_42[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_periodicalReporting_r14_constr_42, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_periodicalReporting_r14_specs_42 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_multiPrbNprs_r14_value2enum_44[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_multiPrbNprs_r14_enum2value_44[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_multiPrbNprs_r14_specs_44 = { + asn_MAP_multiPrbNprs_r14_value2enum_44, /* "tag" => N; sorted by tag */ + asn_MAP_multiPrbNprs_r14_enum2value_44, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_multiPrbNprs_r14_tags_44[] = { + (ASN_TAG_CLASS_CONTEXT | (16 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_multiPrbNprs_r14_44 = { + "multiPrbNprs-r14", + "multiPrbNprs-r14", + &asn_OP_NativeEnumerated, + asn_DEF_multiPrbNprs_r14_tags_44, + sizeof(asn_DEF_multiPrbNprs_r14_tags_44) + /sizeof(asn_DEF_multiPrbNprs_r14_tags_44[0]) - 1, /* 1 */ + asn_DEF_multiPrbNprs_r14_tags_44, /* Same as above */ + sizeof(asn_DEF_multiPrbNprs_r14_tags_44) + /sizeof(asn_DEF_multiPrbNprs_r14_tags_44[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_multiPrbNprs_r14_constr_44, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_multiPrbNprs_r14_specs_44 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_idleStateForMeasurements_r14_value2enum_46[] = { + { 0, 8, "required" } +}; +static const unsigned int asn_MAP_idleStateForMeasurements_r14_enum2value_46[] = { + 0 /* required(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_idleStateForMeasurements_r14_specs_46 = { + asn_MAP_idleStateForMeasurements_r14_value2enum_46, /* "tag" => N; sorted by tag */ + asn_MAP_idleStateForMeasurements_r14_enum2value_46, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_idleStateForMeasurements_r14_tags_46[] = { + (ASN_TAG_CLASS_CONTEXT | (17 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_idleStateForMeasurements_r14_46 = { + "idleStateForMeasurements-r14", + "idleStateForMeasurements-r14", + &asn_OP_NativeEnumerated, + asn_DEF_idleStateForMeasurements_r14_tags_46, + sizeof(asn_DEF_idleStateForMeasurements_r14_tags_46) + /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_46[0]) - 1, /* 1 */ + asn_DEF_idleStateForMeasurements_r14_tags_46, /* Same as above */ + sizeof(asn_DEF_idleStateForMeasurements_r14_tags_46) + /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_46[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_idleStateForMeasurements_r14_constr_46, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_idleStateForMeasurements_r14_specs_46 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_numberOfRXantennas_r14_value2enum_48[] = { + { 0, 3, "rx1" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_numberOfRXantennas_r14_enum2value_48[] = { + 0 /* rx1(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_numberOfRXantennas_r14_specs_48 = { + asn_MAP_numberOfRXantennas_r14_value2enum_48, /* "tag" => N; sorted by tag */ + asn_MAP_numberOfRXantennas_r14_enum2value_48, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_numberOfRXantennas_r14_tags_48[] = { + (ASN_TAG_CLASS_CONTEXT | (18 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_numberOfRXantennas_r14_48 = { + "numberOfRXantennas-r14", + "numberOfRXantennas-r14", + &asn_OP_NativeEnumerated, + asn_DEF_numberOfRXantennas_r14_tags_48, + sizeof(asn_DEF_numberOfRXantennas_r14_tags_48) + /sizeof(asn_DEF_numberOfRXantennas_r14_tags_48[0]) - 1, /* 1 */ + asn_DEF_numberOfRXantennas_r14_tags_48, /* Same as above */ + sizeof(asn_DEF_numberOfRXantennas_r14_tags_48) + /sizeof(asn_DEF_numberOfRXantennas_r14_tags_48[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_numberOfRXantennas_r14_constr_48, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_numberOfRXantennas_r14_specs_48 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_motionMeasurements_r15_value2enum_51[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_motionMeasurements_r15_enum2value_51[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_motionMeasurements_r15_specs_51 = { + asn_MAP_motionMeasurements_r15_value2enum_51, /* "tag" => N; sorted by tag */ + asn_MAP_motionMeasurements_r15_enum2value_51, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_motionMeasurements_r15_tags_51[] = { + (ASN_TAG_CLASS_CONTEXT | (19 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_motionMeasurements_r15_51 = { + "motionMeasurements-r15", + "motionMeasurements-r15", + &asn_OP_NativeEnumerated, + asn_DEF_motionMeasurements_r15_tags_51, + sizeof(asn_DEF_motionMeasurements_r15_tags_51) + /sizeof(asn_DEF_motionMeasurements_r15_tags_51[0]) - 1, /* 1 */ + asn_DEF_motionMeasurements_r15_tags_51, /* Same as above */ + sizeof(asn_DEF_motionMeasurements_r15_tags_51) + /sizeof(asn_DEF_motionMeasurements_r15_tags_51[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_motionMeasurements_r15_constr_51, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_motionMeasurements_r15_specs_51 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_interRAT_RSTDmeasurement_r15_value2enum_53[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_interRAT_RSTDmeasurement_r15_enum2value_53[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_interRAT_RSTDmeasurement_r15_specs_53 = { + asn_MAP_interRAT_RSTDmeasurement_r15_value2enum_53, /* "tag" => N; sorted by tag */ + asn_MAP_interRAT_RSTDmeasurement_r15_enum2value_53, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_interRAT_RSTDmeasurement_r15_tags_53[] = { + (ASN_TAG_CLASS_CONTEXT | (20 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_interRAT_RSTDmeasurement_r15_53 = { + "interRAT-RSTDmeasurement-r15", + "interRAT-RSTDmeasurement-r15", + &asn_OP_NativeEnumerated, + asn_DEF_interRAT_RSTDmeasurement_r15_tags_53, + sizeof(asn_DEF_interRAT_RSTDmeasurement_r15_tags_53) + /sizeof(asn_DEF_interRAT_RSTDmeasurement_r15_tags_53[0]) - 1, /* 1 */ + asn_DEF_interRAT_RSTDmeasurement_r15_tags_53, /* Same as above */ + sizeof(asn_DEF_interRAT_RSTDmeasurement_r15_tags_53) + /sizeof(asn_DEF_interRAT_RSTDmeasurement_r15_tags_53[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_interRAT_RSTDmeasurement_r15_constr_53, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_interRAT_RSTDmeasurement_r15_specs_53 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_OTDOA_ProvideCapabilities_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_ProvideCapabilities, otdoa_Mode), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_otdoa_Mode_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_otdoa_Mode_constraint_1 + }, + 0, 0, /* No default value */ + "otdoa-Mode" + }, + { ATF_POINTER, 21, offsetof(struct OTDOA_ProvideCapabilities, supportedBandListEUTRA), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_supportedBandListEUTRA_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_supportedBandListEUTRA_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_supportedBandListEUTRA_constraint_1 + }, + 0, 0, /* No default value */ + "supportedBandListEUTRA" + }, + { ATF_POINTER, 20, offsetof(struct OTDOA_ProvideCapabilities, supportedBandListEUTRA_v9a0), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_supportedBandListEUTRA_v9a0_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_supportedBandListEUTRA_v9a0_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_supportedBandListEUTRA_v9a0_constraint_1 + }, + 0, 0, /* No default value */ + "supportedBandListEUTRA-v9a0" + }, + { ATF_POINTER, 19, offsetof(struct OTDOA_ProvideCapabilities, interFreqRSTDmeasurement_r10), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_interFreqRSTDmeasurement_r10_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "interFreqRSTDmeasurement-r10" + }, + { ATF_POINTER, 18, offsetof(struct OTDOA_ProvideCapabilities, additionalNeighbourCellInfoList_r10), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_additionalNeighbourCellInfoList_r10_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "additionalNeighbourCellInfoList-r10" + }, + { ATF_POINTER, 17, offsetof(struct OTDOA_ProvideCapabilities, prs_id_r14), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_prs_id_r14_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-id-r14" + }, + { ATF_POINTER, 16, offsetof(struct OTDOA_ProvideCapabilities, tp_separation_via_muting_r14), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_tp_separation_via_muting_r14_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tp-separation-via-muting-r14" + }, + { ATF_POINTER, 15, offsetof(struct OTDOA_ProvideCapabilities, additional_prs_config_r14), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_additional_prs_config_r14_19, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "additional-prs-config-r14" + }, + { ATF_POINTER, 14, offsetof(struct OTDOA_ProvideCapabilities, prs_based_tbs_r14), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_prs_based_tbs_r14_21, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-based-tbs-r14" + }, + { ATF_POINTER, 13, offsetof(struct OTDOA_ProvideCapabilities, additionalPathsReport_r14), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_additionalPathsReport_r14_23, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "additionalPathsReport-r14" + }, + { ATF_POINTER, 12, offsetof(struct OTDOA_ProvideCapabilities, densePrsConfig_r14), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_densePrsConfig_r14_25, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "densePrsConfig-r14" + }, + { ATF_POINTER, 11, offsetof(struct OTDOA_ProvideCapabilities, maxSupportedPrsBandwidth_r14), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxSupportedPrsBandwidth_r14_27, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxSupportedPrsBandwidth-r14" + }, + { ATF_POINTER, 10, offsetof(struct OTDOA_ProvideCapabilities, prsOccGroup_r14), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_prsOccGroup_r14_35, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prsOccGroup-r14" + }, + { ATF_POINTER, 9, offsetof(struct OTDOA_ProvideCapabilities, prsFrequencyHopping_r14), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_prsFrequencyHopping_r14_37, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prsFrequencyHopping-r14" + }, + { ATF_POINTER, 8, offsetof(struct OTDOA_ProvideCapabilities, maxSupportedPrsConfigs_r14), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxSupportedPrsConfigs_r14_39, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxSupportedPrsConfigs-r14" + }, + { ATF_POINTER, 7, offsetof(struct OTDOA_ProvideCapabilities, periodicalReporting_r14), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_periodicalReporting_r14_42, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "periodicalReporting-r14" + }, + { ATF_POINTER, 6, offsetof(struct OTDOA_ProvideCapabilities, multiPrbNprs_r14), + (ASN_TAG_CLASS_CONTEXT | (16 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_multiPrbNprs_r14_44, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "multiPrbNprs-r14" + }, + { ATF_POINTER, 5, offsetof(struct OTDOA_ProvideCapabilities, idleStateForMeasurements_r14), + (ASN_TAG_CLASS_CONTEXT | (17 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_idleStateForMeasurements_r14_46, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "idleStateForMeasurements-r14" + }, + { ATF_POINTER, 4, offsetof(struct OTDOA_ProvideCapabilities, numberOfRXantennas_r14), + (ASN_TAG_CLASS_CONTEXT | (18 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_numberOfRXantennas_r14_48, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "numberOfRXantennas-r14" + }, + { ATF_POINTER, 3, offsetof(struct OTDOA_ProvideCapabilities, motionMeasurements_r15), + (ASN_TAG_CLASS_CONTEXT | (19 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_motionMeasurements_r15_51, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "motionMeasurements-r15" + }, + { ATF_POINTER, 2, offsetof(struct OTDOA_ProvideCapabilities, interRAT_RSTDmeasurement_r15), + (ASN_TAG_CLASS_CONTEXT | (20 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_interRAT_RSTDmeasurement_r15_53, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "interRAT-RSTDmeasurement-r15" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_ProvideCapabilities, scheduledLocationRequestSupported_r17), + (ASN_TAG_CLASS_CONTEXT | (21 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ScheduledLocationTimeSupport_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scheduledLocationRequestSupported-r17" + }, +}; +static const int asn_MAP_OTDOA_ProvideCapabilities_oms_1[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 }; +static const ber_tlv_tag_t asn_DEF_OTDOA_ProvideCapabilities_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_OTDOA_ProvideCapabilities_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* otdoa-Mode */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* supportedBandListEUTRA */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* supportedBandListEUTRA-v9a0 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* interFreqRSTDmeasurement-r10 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* additionalNeighbourCellInfoList-r10 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* prs-id-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* tp-separation-via-muting-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* additional-prs-config-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* prs-based-tbs-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* additionalPathsReport-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* densePrsConfig-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* maxSupportedPrsBandwidth-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* prsOccGroup-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* prsFrequencyHopping-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* maxSupportedPrsConfigs-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* periodicalReporting-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 }, /* multiPrbNprs-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (17 << 2)), 17, 0, 0 }, /* idleStateForMeasurements-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (18 << 2)), 18, 0, 0 }, /* numberOfRXantennas-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (19 << 2)), 19, 0, 0 }, /* motionMeasurements-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (20 << 2)), 20, 0, 0 }, /* interRAT-RSTDmeasurement-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (21 << 2)), 21, 0, 0 } /* scheduledLocationRequestSupported-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_OTDOA_ProvideCapabilities_specs_1 = { + sizeof(struct OTDOA_ProvideCapabilities), + offsetof(struct OTDOA_ProvideCapabilities, _asn_ctx), + asn_MAP_OTDOA_ProvideCapabilities_tag2el_1, + 22, /* Count of tags in the map */ + asn_MAP_OTDOA_ProvideCapabilities_oms_1, /* Optional members */ + 0, 21, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OTDOA_ProvideCapabilities = { + "OTDOA-ProvideCapabilities", + "OTDOA-ProvideCapabilities", + &asn_OP_SEQUENCE, + asn_DEF_OTDOA_ProvideCapabilities_tags_1, + sizeof(asn_DEF_OTDOA_ProvideCapabilities_tags_1) + /sizeof(asn_DEF_OTDOA_ProvideCapabilities_tags_1[0]), /* 1 */ + asn_DEF_OTDOA_ProvideCapabilities_tags_1, /* Same as above */ + sizeof(asn_DEF_OTDOA_ProvideCapabilities_tags_1) + /sizeof(asn_DEF_OTDOA_ProvideCapabilities_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_OTDOA_ProvideCapabilities_1, + 22, /* Elements count */ + &asn_SPC_OTDOA_ProvideCapabilities_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/OTDOA-ProvideCapabilities.h b/asn.1/lpp_generated/OTDOA-ProvideCapabilities.h similarity index 85% rename from asn.1/generated/OTDOA-ProvideCapabilities.h rename to asn.1/lpp_generated/OTDOA-ProvideCapabilities.h index cf865314..96aae2b2 100644 --- a/asn.1/generated/OTDOA-ProvideCapabilities.h +++ b/asn.1/lpp_generated/OTDOA-ProvideCapabilities.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _OTDOA_ProvideCapabilities_H_ @@ -96,6 +96,7 @@ typedef enum OTDOA_ProvideCapabilities__interRAT_RSTDmeasurement_r15 { } e_OTDOA_ProvideCapabilities__interRAT_RSTDmeasurement_r15; /* Forward declarations */ +struct ScheduledLocationTimeSupport_r17; struct SupportedBandEUTRA; struct SupportedBandEUTRA_v9a0; @@ -118,24 +119,25 @@ typedef struct OTDOA_ProvideCapabilities { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *supportedBandListEUTRA_v9a0; - long *interFreqRSTDmeasurement_r10 /* OPTIONAL */; - long *additionalNeighbourCellInfoList_r10 /* OPTIONAL */; - long *prs_id_r14 /* OPTIONAL */; - long *tp_separation_via_muting_r14 /* OPTIONAL */; - long *additional_prs_config_r14 /* OPTIONAL */; - long *prs_based_tbs_r14 /* OPTIONAL */; - long *additionalPathsReport_r14 /* OPTIONAL */; - long *densePrsConfig_r14 /* OPTIONAL */; - long *maxSupportedPrsBandwidth_r14 /* OPTIONAL */; - long *prsOccGroup_r14 /* OPTIONAL */; - long *prsFrequencyHopping_r14 /* OPTIONAL */; - long *maxSupportedPrsConfigs_r14 /* OPTIONAL */; - long *periodicalReporting_r14 /* OPTIONAL */; - long *multiPrbNprs_r14 /* OPTIONAL */; - long *idleStateForMeasurements_r14 /* OPTIONAL */; - long *numberOfRXantennas_r14 /* OPTIONAL */; - long *motionMeasurements_r15 /* OPTIONAL */; - long *interRAT_RSTDmeasurement_r15 /* OPTIONAL */; + long *interFreqRSTDmeasurement_r10; /* OPTIONAL */ + long *additionalNeighbourCellInfoList_r10; /* OPTIONAL */ + long *prs_id_r14; /* OPTIONAL */ + long *tp_separation_via_muting_r14; /* OPTIONAL */ + long *additional_prs_config_r14; /* OPTIONAL */ + long *prs_based_tbs_r14; /* OPTIONAL */ + long *additionalPathsReport_r14; /* OPTIONAL */ + long *densePrsConfig_r14; /* OPTIONAL */ + long *maxSupportedPrsBandwidth_r14; /* OPTIONAL */ + long *prsOccGroup_r14; /* OPTIONAL */ + long *prsFrequencyHopping_r14; /* OPTIONAL */ + long *maxSupportedPrsConfigs_r14; /* OPTIONAL */ + long *periodicalReporting_r14; /* OPTIONAL */ + long *multiPrbNprs_r14; /* OPTIONAL */ + long *idleStateForMeasurements_r14; /* OPTIONAL */ + long *numberOfRXantennas_r14; /* OPTIONAL */ + long *motionMeasurements_r15; /* OPTIONAL */ + long *interRAT_RSTDmeasurement_r15; /* OPTIONAL */ + struct ScheduledLocationTimeSupport_r17 *scheduledLocationRequestSupported_r17; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -162,15 +164,11 @@ typedef struct OTDOA_ProvideCapabilities { /* extern asn_TYPE_descriptor_t asn_DEF_interRAT_RSTDmeasurement_r15_53; // (Use -fall-defs-global to expose) */ extern asn_TYPE_descriptor_t asn_DEF_OTDOA_ProvideCapabilities; extern asn_SEQUENCE_specifics_t asn_SPC_OTDOA_ProvideCapabilities_specs_1; -extern asn_TYPE_member_t asn_MBR_OTDOA_ProvideCapabilities_1[21]; +extern asn_TYPE_member_t asn_MBR_OTDOA_ProvideCapabilities_1[22]; #ifdef __cplusplus } #endif -/* Referred external types */ -#include "SupportedBandEUTRA.h" -#include "SupportedBandEUTRA-v9a0.h" - #endif /* _OTDOA_ProvideCapabilities_H_ */ #include diff --git a/asn.1/lpp_generated/OTDOA-ProvideLocationInformation.c b/asn.1/lpp_generated/OTDOA-ProvideLocationInformation.c new file mode 100644 index 00000000..d9225f00 --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-ProvideLocationInformation.c @@ -0,0 +1,168 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OTDOA-ProvideLocationInformation.h" + +#include "OTDOA-SignalMeasurementInformation.h" +#include "OTDOA-Error.h" +#include "OTDOA-SignalMeasurementInformation-NB-r14.h" +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_POINTER, 1, offsetof(struct OTDOA_ProvideLocationInformation__ext1, otdoaSignalMeasurementInformation_NB_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "otdoaSignalMeasurementInformation-NB-r14" + }, +}; +static const int asn_MAP_ext1_oms_5[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* otdoaSignalMeasurementInformation-NB-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct OTDOA_ProvideLocationInformation__ext1), + offsetof(struct OTDOA_ProvideLocationInformation__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_5, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 1, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_OTDOA_ProvideLocationInformation_1[] = { + { ATF_POINTER, 3, offsetof(struct OTDOA_ProvideLocationInformation, otdoaSignalMeasurementInformation), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OTDOA_SignalMeasurementInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "otdoaSignalMeasurementInformation" + }, + { ATF_POINTER, 2, offsetof(struct OTDOA_ProvideLocationInformation, otdoa_Error), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_OTDOA_Error, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "otdoa-Error" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_ProvideLocationInformation, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_OTDOA_ProvideLocationInformation_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_OTDOA_ProvideLocationInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_OTDOA_ProvideLocationInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* otdoaSignalMeasurementInformation */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* otdoa-Error */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_OTDOA_ProvideLocationInformation_specs_1 = { + sizeof(struct OTDOA_ProvideLocationInformation), + offsetof(struct OTDOA_ProvideLocationInformation, _asn_ctx), + asn_MAP_OTDOA_ProvideLocationInformation_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_OTDOA_ProvideLocationInformation_oms_1, /* Optional members */ + 2, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OTDOA_ProvideLocationInformation = { + "OTDOA-ProvideLocationInformation", + "OTDOA-ProvideLocationInformation", + &asn_OP_SEQUENCE, + asn_DEF_OTDOA_ProvideLocationInformation_tags_1, + sizeof(asn_DEF_OTDOA_ProvideLocationInformation_tags_1) + /sizeof(asn_DEF_OTDOA_ProvideLocationInformation_tags_1[0]), /* 1 */ + asn_DEF_OTDOA_ProvideLocationInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_OTDOA_ProvideLocationInformation_tags_1) + /sizeof(asn_DEF_OTDOA_ProvideLocationInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_OTDOA_ProvideLocationInformation_1, + 3, /* Elements count */ + &asn_SPC_OTDOA_ProvideLocationInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/OTDOA-ProvideLocationInformation.h b/asn.1/lpp_generated/OTDOA-ProvideLocationInformation.h similarity index 75% rename from asn.1/generated/OTDOA-ProvideLocationInformation.h rename to asn.1/lpp_generated/OTDOA-ProvideLocationInformation.h index 3a38b154..3330cedb 100644 --- a/asn.1/generated/OTDOA-ProvideLocationInformation.h +++ b/asn.1/lpp_generated/OTDOA-ProvideLocationInformation.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _OTDOA_ProvideLocationInformation_H_ @@ -25,14 +25,14 @@ struct OTDOA_SignalMeasurementInformation_NB_r14; /* OTDOA-ProvideLocationInformation */ typedef struct OTDOA_ProvideLocationInformation { - struct OTDOA_SignalMeasurementInformation *otdoaSignalMeasurementInformation /* OPTIONAL */; - struct OTDOA_Error *otdoa_Error /* OPTIONAL */; + struct OTDOA_SignalMeasurementInformation *otdoaSignalMeasurementInformation; /* OPTIONAL */ + struct OTDOA_Error *otdoa_Error; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. */ struct OTDOA_ProvideLocationInformation__ext1 { - struct OTDOA_SignalMeasurementInformation_NB_r14 *otdoaSignalMeasurementInformation_NB_r14 /* OPTIONAL */; + struct OTDOA_SignalMeasurementInformation_NB_r14 *otdoaSignalMeasurementInformation_NB_r14; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -51,10 +51,5 @@ extern asn_TYPE_member_t asn_MBR_OTDOA_ProvideLocationInformation_1[3]; } #endif -/* Referred external types */ -#include "OTDOA-SignalMeasurementInformation.h" -#include "OTDOA-Error.h" -#include "OTDOA-SignalMeasurementInformation-NB-r14.h" - #endif /* _OTDOA_ProvideLocationInformation_H_ */ #include diff --git a/asn.1/lpp_generated/OTDOA-ReferenceCellInfo.c b/asn.1/lpp_generated/OTDOA-ReferenceCellInfo.c new file mode 100644 index 00000000..840273b9 --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-ReferenceCellInfo.c @@ -0,0 +1,1026 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OTDOA-ReferenceCellInfo.h" + +#include "ECGI.h" +#include "PRS-Info.h" +#include "TDD-Config-v1520.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_tpId_r14_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_addPRSconfigRef_r14_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 2UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_LTE_SFN_Offset_r15_constraint_33(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_LTE_fineTiming_Offset_r15_constraint_35(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 19L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_physCellId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 503L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_antennaPortConfig_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cpLength_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cpLengthCRS_r14_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dlBandwidth_r14_constr_24 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_addPRSconfigRef_r14_constr_31 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tpId_r14_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_addPRSconfigRef_r14_constr_31 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_LTE_SFN_Offset_r15_constr_34 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_LTE_fineTiming_Offset_r15_constr_37 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_physCellId_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_antennaPortConfig_value2enum_5[] = { + { 0, 11, "ports1-or-2" }, + { 1, 6, "ports4" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_antennaPortConfig_enum2value_5[] = { + 0, /* ports1-or-2(0) */ + 1 /* ports4(1) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_antennaPortConfig_specs_5 = { + asn_MAP_antennaPortConfig_value2enum_5, /* "tag" => N; sorted by tag */ + asn_MAP_antennaPortConfig_enum2value_5, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_antennaPortConfig_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_antennaPortConfig_5 = { + "antennaPortConfig", + "antennaPortConfig", + &asn_OP_NativeEnumerated, + asn_DEF_antennaPortConfig_tags_5, + sizeof(asn_DEF_antennaPortConfig_tags_5) + /sizeof(asn_DEF_antennaPortConfig_tags_5[0]) - 1, /* 1 */ + asn_DEF_antennaPortConfig_tags_5, /* Same as above */ + sizeof(asn_DEF_antennaPortConfig_tags_5) + /sizeof(asn_DEF_antennaPortConfig_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_antennaPortConfig_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_antennaPortConfig_specs_5 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_cpLength_value2enum_9[] = { + { 0, 6, "normal" }, + { 1, 8, "extended" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cpLength_enum2value_9[] = { + 1, /* extended(1) */ + 0 /* normal(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cpLength_specs_9 = { + asn_MAP_cpLength_value2enum_9, /* "tag" => N; sorted by tag */ + asn_MAP_cpLength_enum2value_9, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cpLength_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cpLength_9 = { + "cpLength", + "cpLength", + &asn_OP_NativeEnumerated, + asn_DEF_cpLength_tags_9, + sizeof(asn_DEF_cpLength_tags_9) + /sizeof(asn_DEF_cpLength_tags_9[0]) - 1, /* 1 */ + asn_DEF_cpLength_tags_9, /* Same as above */ + sizeof(asn_DEF_cpLength_tags_9) + /sizeof(asn_DEF_cpLength_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cpLength_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cpLength_specs_9 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_15[] = { + { ATF_POINTER, 1, offsetof(struct OTDOA_ReferenceCellInfo__ext1, earfcnRef_v9a0), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueEUTRA_v9a0, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "earfcnRef-v9a0" + }, +}; +static const int asn_MAP_ext1_oms_15[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_15[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* earfcnRef-v9a0 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_15 = { + sizeof(struct OTDOA_ReferenceCellInfo__ext1), + offsetof(struct OTDOA_ReferenceCellInfo__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_15, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_15, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_15 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_15, + sizeof(asn_DEF_ext1_tags_15) + /sizeof(asn_DEF_ext1_tags_15[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_15, /* Same as above */ + sizeof(asn_DEF_ext1_tags_15) + /sizeof(asn_DEF_ext1_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_15, + 1, /* Elements count */ + &asn_SPC_ext1_specs_15 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_cpLengthCRS_r14_value2enum_19[] = { + { 0, 6, "normal" }, + { 1, 8, "extended" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cpLengthCRS_r14_enum2value_19[] = { + 1, /* extended(1) */ + 0 /* normal(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cpLengthCRS_r14_specs_19 = { + asn_MAP_cpLengthCRS_r14_value2enum_19, /* "tag" => N; sorted by tag */ + asn_MAP_cpLengthCRS_r14_enum2value_19, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cpLengthCRS_r14_tags_19[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cpLengthCRS_r14_19 = { + "cpLengthCRS-r14", + "cpLengthCRS-r14", + &asn_OP_NativeEnumerated, + asn_DEF_cpLengthCRS_r14_tags_19, + sizeof(asn_DEF_cpLengthCRS_r14_tags_19) + /sizeof(asn_DEF_cpLengthCRS_r14_tags_19[0]) - 1, /* 1 */ + asn_DEF_cpLengthCRS_r14_tags_19, /* Same as above */ + sizeof(asn_DEF_cpLengthCRS_r14_tags_19) + /sizeof(asn_DEF_cpLengthCRS_r14_tags_19[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cpLengthCRS_r14_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cpLengthCRS_r14_specs_19 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dlBandwidth_r14_value2enum_24[] = { + { 0, 2, "n6" }, + { 1, 3, "n15" }, + { 2, 3, "n25" }, + { 3, 3, "n50" }, + { 4, 3, "n75" }, + { 5, 4, "n100" } +}; +static const unsigned int asn_MAP_dlBandwidth_r14_enum2value_24[] = { + 5, /* n100(5) */ + 1, /* n15(1) */ + 2, /* n25(2) */ + 3, /* n50(3) */ + 0, /* n6(0) */ + 4 /* n75(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dlBandwidth_r14_specs_24 = { + asn_MAP_dlBandwidth_r14_value2enum_24, /* "tag" => N; sorted by tag */ + asn_MAP_dlBandwidth_r14_enum2value_24, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dlBandwidth_r14_tags_24[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dlBandwidth_r14_24 = { + "dlBandwidth-r14", + "dlBandwidth-r14", + &asn_OP_NativeEnumerated, + asn_DEF_dlBandwidth_r14_tags_24, + sizeof(asn_DEF_dlBandwidth_r14_tags_24) + /sizeof(asn_DEF_dlBandwidth_r14_tags_24[0]) - 1, /* 1 */ + asn_DEF_dlBandwidth_r14_tags_24, /* Same as above */ + sizeof(asn_DEF_dlBandwidth_r14_tags_24) + /sizeof(asn_DEF_dlBandwidth_r14_tags_24[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dlBandwidth_r14_constr_24, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dlBandwidth_r14_specs_24 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_addPRSconfigRef_r14_31[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_PRS_Info, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_addPRSconfigRef_r14_tags_31[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_addPRSconfigRef_r14_specs_31 = { + sizeof(struct OTDOA_ReferenceCellInfo__ext2__addPRSconfigRef_r14), + offsetof(struct OTDOA_ReferenceCellInfo__ext2__addPRSconfigRef_r14, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_addPRSconfigRef_r14_31 = { + "addPRSconfigRef-r14", + "addPRSconfigRef-r14", + &asn_OP_SEQUENCE_OF, + asn_DEF_addPRSconfigRef_r14_tags_31, + sizeof(asn_DEF_addPRSconfigRef_r14_tags_31) + /sizeof(asn_DEF_addPRSconfigRef_r14_tags_31[0]) - 1, /* 1 */ + asn_DEF_addPRSconfigRef_r14_tags_31, /* Same as above */ + sizeof(asn_DEF_addPRSconfigRef_r14_tags_31) + /sizeof(asn_DEF_addPRSconfigRef_r14_tags_31[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_addPRSconfigRef_r14_constr_31, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_addPRSconfigRef_r14_31, + 1, /* Single element */ + &asn_SPC_addPRSconfigRef_r14_specs_31 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_17[] = { + { ATF_POINTER, 5, offsetof(struct OTDOA_ReferenceCellInfo__ext2, tpId_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tpId_r14_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tpId_r14_constraint_17 + }, + 0, 0, /* No default value */ + "tpId-r14" + }, + { ATF_POINTER, 4, offsetof(struct OTDOA_ReferenceCellInfo__ext2, cpLengthCRS_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cpLengthCRS_r14_19, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cpLengthCRS-r14" + }, + { ATF_POINTER, 3, offsetof(struct OTDOA_ReferenceCellInfo__ext2, sameMBSFNconfigRef_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sameMBSFNconfigRef-r14" + }, + { ATF_POINTER, 2, offsetof(struct OTDOA_ReferenceCellInfo__ext2, dlBandwidth_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dlBandwidth_r14_24, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dlBandwidth-r14" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_ReferenceCellInfo__ext2, addPRSconfigRef_r14), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_addPRSconfigRef_r14_31, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_addPRSconfigRef_r14_constr_31, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_addPRSconfigRef_r14_constraint_17 + }, + 0, 0, /* No default value */ + "addPRSconfigRef-r14" + }, +}; +static const int asn_MAP_ext2_oms_17[] = { 0, 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_17[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tpId-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cpLengthCRS-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sameMBSFNconfigRef-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* dlBandwidth-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* addPRSconfigRef-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_17 = { + sizeof(struct OTDOA_ReferenceCellInfo__ext2), + offsetof(struct OTDOA_ReferenceCellInfo__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_17, + 5, /* Count of tags in the map */ + asn_MAP_ext2_oms_17, /* Optional members */ + 5, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_17 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_17, + sizeof(asn_DEF_ext2_tags_17) + /sizeof(asn_DEF_ext2_tags_17[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_17, /* Same as above */ + sizeof(asn_DEF_ext2_tags_17) + /sizeof(asn_DEF_ext2_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_17, + 5, /* Elements count */ + &asn_SPC_ext2_specs_17 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_33[] = { + { ATF_POINTER, 1, offsetof(struct OTDOA_ReferenceCellInfo__ext3, nr_LTE_SFN_Offset_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_LTE_SFN_Offset_r15_constr_34, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_LTE_SFN_Offset_r15_constraint_33 + }, + 0, 0, /* No default value */ + "nr-LTE-SFN-Offset-r15" + }, +}; +static const int asn_MAP_ext3_oms_33[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_33[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_33[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-LTE-SFN-Offset-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_33 = { + sizeof(struct OTDOA_ReferenceCellInfo__ext3), + offsetof(struct OTDOA_ReferenceCellInfo__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_33, + 1, /* Count of tags in the map */ + asn_MAP_ext3_oms_33, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_33 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_33, + sizeof(asn_DEF_ext3_tags_33) + /sizeof(asn_DEF_ext3_tags_33[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_33, /* Same as above */ + sizeof(asn_DEF_ext3_tags_33) + /sizeof(asn_DEF_ext3_tags_33[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_33, + 1, /* Elements count */ + &asn_SPC_ext3_specs_33 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext4_35[] = { + { ATF_POINTER, 2, offsetof(struct OTDOA_ReferenceCellInfo__ext4, tdd_config_v1520), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TDD_Config_v1520, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tdd-config-v1520" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_ReferenceCellInfo__ext4, nr_LTE_fineTiming_Offset_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_LTE_fineTiming_Offset_r15_constr_37, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_LTE_fineTiming_Offset_r15_constraint_35 + }, + 0, 0, /* No default value */ + "nr-LTE-fineTiming-Offset-r15" + }, +}; +static const int asn_MAP_ext4_oms_35[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext4_tags_35[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext4_tag2el_35[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tdd-config-v1520 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-LTE-fineTiming-Offset-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext4_specs_35 = { + sizeof(struct OTDOA_ReferenceCellInfo__ext4), + offsetof(struct OTDOA_ReferenceCellInfo__ext4, _asn_ctx), + asn_MAP_ext4_tag2el_35, + 2, /* Count of tags in the map */ + asn_MAP_ext4_oms_35, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext4_35 = { + "ext4", + "ext4", + &asn_OP_SEQUENCE, + asn_DEF_ext4_tags_35, + sizeof(asn_DEF_ext4_tags_35) + /sizeof(asn_DEF_ext4_tags_35[0]) - 1, /* 1 */ + asn_DEF_ext4_tags_35, /* Same as above */ + sizeof(asn_DEF_ext4_tags_35) + /sizeof(asn_DEF_ext4_tags_35[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext4_35, + 2, /* Elements count */ + &asn_SPC_ext4_specs_35 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_OTDOA_ReferenceCellInfo_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_ReferenceCellInfo, physCellId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_physCellId_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_physCellId_constraint_1 + }, + 0, 0, /* No default value */ + "physCellId" + }, + { ATF_POINTER, 3, offsetof(struct OTDOA_ReferenceCellInfo, cellGlobalId), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ECGI, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellGlobalId" + }, + { ATF_POINTER, 2, offsetof(struct OTDOA_ReferenceCellInfo, earfcnRef), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueEUTRA, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "earfcnRef" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_ReferenceCellInfo, antennaPortConfig), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_antennaPortConfig_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "antennaPortConfig" + }, + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_ReferenceCellInfo, cpLength), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cpLength_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cpLength" + }, + { ATF_POINTER, 5, offsetof(struct OTDOA_ReferenceCellInfo, prsInfo), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PRS_Info, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prsInfo" + }, + { ATF_POINTER, 4, offsetof(struct OTDOA_ReferenceCellInfo, ext1), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext1_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 3, offsetof(struct OTDOA_ReferenceCellInfo, ext2), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_ext2_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 2, offsetof(struct OTDOA_ReferenceCellInfo, ext3), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + 0, + &asn_DEF_ext3_33, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_ReferenceCellInfo, ext4), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + 0, + &asn_DEF_ext4_35, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext4" + }, +}; +static const int asn_MAP_OTDOA_ReferenceCellInfo_oms_1[] = { 1, 2, 3, 5, 6, 7, 8, 9 }; +static const ber_tlv_tag_t asn_DEF_OTDOA_ReferenceCellInfo_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_OTDOA_ReferenceCellInfo_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalId */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* earfcnRef */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* antennaPortConfig */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* cpLength */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* prsInfo */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ext3 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* ext4 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_OTDOA_ReferenceCellInfo_specs_1 = { + sizeof(struct OTDOA_ReferenceCellInfo), + offsetof(struct OTDOA_ReferenceCellInfo, _asn_ctx), + asn_MAP_OTDOA_ReferenceCellInfo_tag2el_1, + 10, /* Count of tags in the map */ + asn_MAP_OTDOA_ReferenceCellInfo_oms_1, /* Optional members */ + 4, 4, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OTDOA_ReferenceCellInfo = { + "OTDOA-ReferenceCellInfo", + "OTDOA-ReferenceCellInfo", + &asn_OP_SEQUENCE, + asn_DEF_OTDOA_ReferenceCellInfo_tags_1, + sizeof(asn_DEF_OTDOA_ReferenceCellInfo_tags_1) + /sizeof(asn_DEF_OTDOA_ReferenceCellInfo_tags_1[0]), /* 1 */ + asn_DEF_OTDOA_ReferenceCellInfo_tags_1, /* Same as above */ + sizeof(asn_DEF_OTDOA_ReferenceCellInfo_tags_1) + /sizeof(asn_DEF_OTDOA_ReferenceCellInfo_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_OTDOA_ReferenceCellInfo_1, + 10, /* Elements count */ + &asn_SPC_OTDOA_ReferenceCellInfo_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/OTDOA-ReferenceCellInfo.h b/asn.1/lpp_generated/OTDOA-ReferenceCellInfo.h similarity index 81% rename from asn.1/generated/OTDOA-ReferenceCellInfo.h rename to asn.1/lpp_generated/OTDOA-ReferenceCellInfo.h index f093b0c2..07fc82b1 100644 --- a/asn.1/generated/OTDOA-ReferenceCellInfo.h +++ b/asn.1/lpp_generated/OTDOA-ReferenceCellInfo.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _OTDOA_ReferenceCellInfo_H_ @@ -64,26 +64,26 @@ struct TDD_Config_v1520; /* OTDOA-ReferenceCellInfo */ typedef struct OTDOA_ReferenceCellInfo { long physCellId; - struct ECGI *cellGlobalId /* OPTIONAL */; - ARFCN_ValueEUTRA_t *earfcnRef /* OPTIONAL */; - long *antennaPortConfig /* OPTIONAL */; + struct ECGI *cellGlobalId; /* OPTIONAL */ + ARFCN_ValueEUTRA_t *earfcnRef; /* OPTIONAL */ + long *antennaPortConfig; /* OPTIONAL */ long cpLength; - struct PRS_Info *prsInfo /* OPTIONAL */; + struct PRS_Info *prsInfo; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. */ struct OTDOA_ReferenceCellInfo__ext1 { - ARFCN_ValueEUTRA_v9a0_t *earfcnRef_v9a0 /* OPTIONAL */; + ARFCN_ValueEUTRA_v9a0_t *earfcnRef_v9a0; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *ext1; struct OTDOA_ReferenceCellInfo__ext2 { - long *tpId_r14 /* OPTIONAL */; - long *cpLengthCRS_r14 /* OPTIONAL */; - BOOLEAN_t *sameMBSFNconfigRef_r14 /* OPTIONAL */; - long *dlBandwidth_r14 /* OPTIONAL */; + long *tpId_r14; /* OPTIONAL */ + long *cpLengthCRS_r14; /* OPTIONAL */ + BOOLEAN_t *sameMBSFNconfigRef_r14; /* OPTIONAL */ + long *dlBandwidth_r14; /* OPTIONAL */ struct OTDOA_ReferenceCellInfo__ext2__addPRSconfigRef_r14 { A_SEQUENCE_OF(struct PRS_Info) list; @@ -95,14 +95,14 @@ typedef struct OTDOA_ReferenceCellInfo { asn_struct_ctx_t _asn_ctx; } *ext2; struct OTDOA_ReferenceCellInfo__ext3 { - long *nr_LTE_SFN_Offset_r15 /* OPTIONAL */; + long *nr_LTE_SFN_Offset_r15; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *ext3; struct OTDOA_ReferenceCellInfo__ext4 { - struct TDD_Config_v1520 *tdd_config_v1520 /* OPTIONAL */; - long *nr_LTE_fineTiming_Offset_r15 /* OPTIONAL */; + struct TDD_Config_v1520 *tdd_config_v1520; /* OPTIONAL */ + long *nr_LTE_fineTiming_Offset_r15; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -125,10 +125,5 @@ extern asn_TYPE_member_t asn_MBR_OTDOA_ReferenceCellInfo_1[10]; } #endif -/* Referred external types */ -#include "ECGI.h" -#include "PRS-Info.h" -#include "TDD-Config-v1520.h" - #endif /* _OTDOA_ReferenceCellInfo_H_ */ #include diff --git a/asn.1/lpp_generated/OTDOA-ReferenceCellInfoNB-r14.c b/asn.1/lpp_generated/OTDOA-ReferenceCellInfoNB-r14.c new file mode 100644 index 00000000..a34ca5c8 --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-ReferenceCellInfoNB-r14.c @@ -0,0 +1,484 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OTDOA-ReferenceCellInfoNB-r14.h" + +#include "ECGI.h" +#include "CarrierFreq-NB-r14.h" +#include "PRS-Info-NB-r14.h" +#include "TDD-Config-v1520.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_physCellIdNB_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 503L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_eutra_NumCRS_Ports_r14_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_otdoa_SIB1_NB_repetitions_r14_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_physCellIdNB_r14_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_eutra_NumCRS_Ports_r14_value2enum_6[] = { + { 0, 11, "ports1-or-2" }, + { 1, 6, "ports4" } +}; +static const unsigned int asn_MAP_eutra_NumCRS_Ports_r14_enum2value_6[] = { + 0, /* ports1-or-2(0) */ + 1 /* ports4(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_eutra_NumCRS_Ports_r14_specs_6 = { + asn_MAP_eutra_NumCRS_Ports_r14_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_eutra_NumCRS_Ports_r14_enum2value_6, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_eutra_NumCRS_Ports_r14_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_eutra_NumCRS_Ports_r14_6 = { + "eutra-NumCRS-Ports-r14", + "eutra-NumCRS-Ports-r14", + &asn_OP_NativeEnumerated, + asn_DEF_eutra_NumCRS_Ports_r14_tags_6, + sizeof(asn_DEF_eutra_NumCRS_Ports_r14_tags_6) + /sizeof(asn_DEF_eutra_NumCRS_Ports_r14_tags_6[0]) - 1, /* 1 */ + asn_DEF_eutra_NumCRS_Ports_r14_tags_6, /* Same as above */ + sizeof(asn_DEF_eutra_NumCRS_Ports_r14_tags_6) + /sizeof(asn_DEF_eutra_NumCRS_Ports_r14_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_eutra_NumCRS_Ports_r14_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_eutra_NumCRS_Ports_r14_specs_6 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_otdoa_SIB1_NB_repetitions_r14_value2enum_9[] = { + { 0, 2, "r4" }, + { 1, 2, "r8" }, + { 2, 3, "r16" } +}; +static const unsigned int asn_MAP_otdoa_SIB1_NB_repetitions_r14_enum2value_9[] = { + 2, /* r16(2) */ + 0, /* r4(0) */ + 1 /* r8(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_otdoa_SIB1_NB_repetitions_r14_specs_9 = { + asn_MAP_otdoa_SIB1_NB_repetitions_r14_value2enum_9, /* "tag" => N; sorted by tag */ + asn_MAP_otdoa_SIB1_NB_repetitions_r14_enum2value_9, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_otdoa_SIB1_NB_repetitions_r14_9 = { + "otdoa-SIB1-NB-repetitions-r14", + "otdoa-SIB1-NB-repetitions-r14", + &asn_OP_NativeEnumerated, + asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_9, + sizeof(asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_9) + /sizeof(asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_9[0]) - 1, /* 1 */ + asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_9, /* Same as above */ + sizeof(asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_9) + /sizeof(asn_DEF_otdoa_SIB1_NB_repetitions_r14_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_otdoa_SIB1_NB_repetitions_r14_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_otdoa_SIB1_NB_repetitions_r14_specs_9 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_15[] = { + { ATF_POINTER, 1, offsetof(struct OTDOA_ReferenceCellInfoNB_r14__ext1, nprsInfo_Type2_v1470), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PRS_Info_NB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nprsInfo-Type2-v1470" + }, +}; +static const int asn_MAP_ext1_oms_15[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_15[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nprsInfo-Type2-v1470 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_15 = { + sizeof(struct OTDOA_ReferenceCellInfoNB_r14__ext1), + offsetof(struct OTDOA_ReferenceCellInfoNB_r14__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_15, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_15, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_15 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_15, + sizeof(asn_DEF_ext1_tags_15) + /sizeof(asn_DEF_ext1_tags_15[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_15, /* Same as above */ + sizeof(asn_DEF_ext1_tags_15) + /sizeof(asn_DEF_ext1_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_15, + 1, /* Elements count */ + &asn_SPC_ext1_specs_15 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_17[] = { + { ATF_POINTER, 1, offsetof(struct OTDOA_ReferenceCellInfoNB_r14__ext2, tdd_config_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TDD_Config_v1520, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tdd-config-r15" + }, +}; +static const int asn_MAP_ext2_oms_17[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_17[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* tdd-config-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_17 = { + sizeof(struct OTDOA_ReferenceCellInfoNB_r14__ext2), + offsetof(struct OTDOA_ReferenceCellInfoNB_r14__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_17, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_17, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_17 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_17, + sizeof(asn_DEF_ext2_tags_17) + /sizeof(asn_DEF_ext2_tags_17[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_17, /* Same as above */ + sizeof(asn_DEF_ext2_tags_17) + /sizeof(asn_DEF_ext2_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_17, + 1, /* Elements count */ + &asn_SPC_ext2_specs_17 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_OTDOA_ReferenceCellInfoNB_r14_1[] = { + { ATF_POINTER, 9, offsetof(struct OTDOA_ReferenceCellInfoNB_r14, physCellIdNB_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_physCellIdNB_r14_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_physCellIdNB_r14_constraint_1 + }, + 0, 0, /* No default value */ + "physCellIdNB-r14" + }, + { ATF_POINTER, 8, offsetof(struct OTDOA_ReferenceCellInfoNB_r14, cellGlobalIdNB_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ECGI, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellGlobalIdNB-r14" + }, + { ATF_POINTER, 7, offsetof(struct OTDOA_ReferenceCellInfoNB_r14, carrierFreqRef_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CarrierFreq_NB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "carrierFreqRef-r14" + }, + { ATF_POINTER, 6, offsetof(struct OTDOA_ReferenceCellInfoNB_r14, earfcn_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueEUTRA_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "earfcn-r14" + }, + { ATF_POINTER, 5, offsetof(struct OTDOA_ReferenceCellInfoNB_r14, eutra_NumCRS_Ports_r14), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_eutra_NumCRS_Ports_r14_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eutra-NumCRS-Ports-r14" + }, + { ATF_POINTER, 4, offsetof(struct OTDOA_ReferenceCellInfoNB_r14, otdoa_SIB1_NB_repetitions_r14), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_otdoa_SIB1_NB_repetitions_r14_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "otdoa-SIB1-NB-repetitions-r14" + }, + { ATF_POINTER, 3, offsetof(struct OTDOA_ReferenceCellInfoNB_r14, nprsInfo_r14), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PRS_Info_NB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nprsInfo-r14" + }, + { ATF_POINTER, 2, offsetof(struct OTDOA_ReferenceCellInfoNB_r14, ext1), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_ext1_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_ReferenceCellInfoNB_r14, ext2), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + 0, + &asn_DEF_ext2_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_OTDOA_ReferenceCellInfoNB_r14_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 }; +static const ber_tlv_tag_t asn_DEF_OTDOA_ReferenceCellInfoNB_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_OTDOA_ReferenceCellInfoNB_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellIdNB-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellGlobalIdNB-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* carrierFreqRef-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* earfcn-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* eutra-NumCRS-Ports-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* otdoa-SIB1-NB-repetitions-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* nprsInfo-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_OTDOA_ReferenceCellInfoNB_r14_specs_1 = { + sizeof(struct OTDOA_ReferenceCellInfoNB_r14), + offsetof(struct OTDOA_ReferenceCellInfoNB_r14, _asn_ctx), + asn_MAP_OTDOA_ReferenceCellInfoNB_r14_tag2el_1, + 9, /* Count of tags in the map */ + asn_MAP_OTDOA_ReferenceCellInfoNB_r14_oms_1, /* Optional members */ + 7, 2, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OTDOA_ReferenceCellInfoNB_r14 = { + "OTDOA-ReferenceCellInfoNB-r14", + "OTDOA-ReferenceCellInfoNB-r14", + &asn_OP_SEQUENCE, + asn_DEF_OTDOA_ReferenceCellInfoNB_r14_tags_1, + sizeof(asn_DEF_OTDOA_ReferenceCellInfoNB_r14_tags_1) + /sizeof(asn_DEF_OTDOA_ReferenceCellInfoNB_r14_tags_1[0]), /* 1 */ + asn_DEF_OTDOA_ReferenceCellInfoNB_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_OTDOA_ReferenceCellInfoNB_r14_tags_1) + /sizeof(asn_DEF_OTDOA_ReferenceCellInfoNB_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_OTDOA_ReferenceCellInfoNB_r14_1, + 9, /* Elements count */ + &asn_SPC_OTDOA_ReferenceCellInfoNB_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/OTDOA-ReferenceCellInfoNB-r14.h b/asn.1/lpp_generated/OTDOA-ReferenceCellInfoNB-r14.h new file mode 100644 index 00000000..e2db0216 --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-ReferenceCellInfoNB-r14.h @@ -0,0 +1,83 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _OTDOA_ReferenceCellInfoNB_r14_H_ +#define _OTDOA_ReferenceCellInfoNB_r14_H_ + + +#include + +/* Including external dependencies */ +#include +#include "ARFCN-ValueEUTRA-r14.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum OTDOA_ReferenceCellInfoNB_r14__eutra_NumCRS_Ports_r14 { + OTDOA_ReferenceCellInfoNB_r14__eutra_NumCRS_Ports_r14_ports1_or_2 = 0, + OTDOA_ReferenceCellInfoNB_r14__eutra_NumCRS_Ports_r14_ports4 = 1 +} e_OTDOA_ReferenceCellInfoNB_r14__eutra_NumCRS_Ports_r14; +typedef enum OTDOA_ReferenceCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14 { + OTDOA_ReferenceCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14_r4 = 0, + OTDOA_ReferenceCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14_r8 = 1, + OTDOA_ReferenceCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14_r16 = 2 +} e_OTDOA_ReferenceCellInfoNB_r14__otdoa_SIB1_NB_repetitions_r14; + +/* Forward declarations */ +struct ECGI; +struct CarrierFreq_NB_r14; +struct PRS_Info_NB_r14; +struct TDD_Config_v1520; + +/* OTDOA-ReferenceCellInfoNB-r14 */ +typedef struct OTDOA_ReferenceCellInfoNB_r14 { + long *physCellIdNB_r14; /* OPTIONAL */ + struct ECGI *cellGlobalIdNB_r14; /* OPTIONAL */ + struct CarrierFreq_NB_r14 *carrierFreqRef_r14; /* OPTIONAL */ + ARFCN_ValueEUTRA_r14_t *earfcn_r14; /* OPTIONAL */ + long *eutra_NumCRS_Ports_r14; /* OPTIONAL */ + long *otdoa_SIB1_NB_repetitions_r14; /* OPTIONAL */ + struct PRS_Info_NB_r14 *nprsInfo_r14; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct OTDOA_ReferenceCellInfoNB_r14__ext1 { + struct PRS_Info_NB_r14 *nprsInfo_Type2_v1470; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct OTDOA_ReferenceCellInfoNB_r14__ext2 { + struct TDD_Config_v1520 *tdd_config_r15; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} OTDOA_ReferenceCellInfoNB_r14_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_eutra_NumCRS_Ports_r14_6; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_otdoa_SIB1_NB_repetitions_r14_9; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_OTDOA_ReferenceCellInfoNB_r14; +extern asn_SEQUENCE_specifics_t asn_SPC_OTDOA_ReferenceCellInfoNB_r14_specs_1; +extern asn_TYPE_member_t asn_MBR_OTDOA_ReferenceCellInfoNB_r14_1[9]; + +#ifdef __cplusplus +} +#endif + +#endif /* _OTDOA_ReferenceCellInfoNB_r14_H_ */ +#include diff --git a/asn.1/lpp_generated/OTDOA-RequestAssistanceData.c b/asn.1/lpp_generated/OTDOA-RequestAssistanceData.c new file mode 100644 index 00000000..da357a5e --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-RequestAssistanceData.c @@ -0,0 +1,328 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OTDOA-RequestAssistanceData.h" + +static int +memb_adType_r14_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nrPhysCellId_r15_constraint_8(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1007L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_physCellId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 503L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_adType_r14_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nrPhysCellId_r15_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1007 } /* (0..1007) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_physCellId_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_4[] = { + { ATF_POINTER, 1, offsetof(struct OTDOA_RequestAssistanceData__ext1, adType_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_adType_r14_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_adType_r14_constraint_4 + }, + 0, 0, /* No default value */ + "adType-r14" + }, +}; +static const int asn_MAP_ext1_oms_4[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* adType-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { + sizeof(struct OTDOA_RequestAssistanceData__ext1), + offsetof(struct OTDOA_RequestAssistanceData__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_4, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_4, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_4 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_4, + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_4, /* Same as above */ + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_4, + 1, /* Elements count */ + &asn_SPC_ext1_specs_4 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_8[] = { + { ATF_POINTER, 1, offsetof(struct OTDOA_RequestAssistanceData__ext2, nrPhysCellId_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nrPhysCellId_r15_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nrPhysCellId_r15_constraint_8 + }, + 0, 0, /* No default value */ + "nrPhysCellId-r15" + }, +}; +static const int asn_MAP_ext2_oms_8[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nrPhysCellId-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_8 = { + sizeof(struct OTDOA_RequestAssistanceData__ext2), + offsetof(struct OTDOA_RequestAssistanceData__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_8, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_8, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_8 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_8, + sizeof(asn_DEF_ext2_tags_8) + /sizeof(asn_DEF_ext2_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_8, /* Same as above */ + sizeof(asn_DEF_ext2_tags_8) + /sizeof(asn_DEF_ext2_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_8, + 1, /* Elements count */ + &asn_SPC_ext2_specs_8 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_OTDOA_RequestAssistanceData_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_RequestAssistanceData, physCellId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_physCellId_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_physCellId_constraint_1 + }, + 0, 0, /* No default value */ + "physCellId" + }, + { ATF_POINTER, 2, offsetof(struct OTDOA_RequestAssistanceData, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_RequestAssistanceData, ext2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext2_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_OTDOA_RequestAssistanceData_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_OTDOA_RequestAssistanceData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_OTDOA_RequestAssistanceData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_OTDOA_RequestAssistanceData_specs_1 = { + sizeof(struct OTDOA_RequestAssistanceData), + offsetof(struct OTDOA_RequestAssistanceData, _asn_ctx), + asn_MAP_OTDOA_RequestAssistanceData_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_OTDOA_RequestAssistanceData_oms_1, /* Optional members */ + 0, 2, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OTDOA_RequestAssistanceData = { + "OTDOA-RequestAssistanceData", + "OTDOA-RequestAssistanceData", + &asn_OP_SEQUENCE, + asn_DEF_OTDOA_RequestAssistanceData_tags_1, + sizeof(asn_DEF_OTDOA_RequestAssistanceData_tags_1) + /sizeof(asn_DEF_OTDOA_RequestAssistanceData_tags_1[0]), /* 1 */ + asn_DEF_OTDOA_RequestAssistanceData_tags_1, /* Same as above */ + sizeof(asn_DEF_OTDOA_RequestAssistanceData_tags_1) + /sizeof(asn_DEF_OTDOA_RequestAssistanceData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_OTDOA_RequestAssistanceData_1, + 3, /* Elements count */ + &asn_SPC_OTDOA_RequestAssistanceData_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/OTDOA-RequestAssistanceData.h b/asn.1/lpp_generated/OTDOA-RequestAssistanceData.h similarity index 81% rename from asn.1/generated/OTDOA-RequestAssistanceData.h rename to asn.1/lpp_generated/OTDOA-RequestAssistanceData.h index 3b52cbc7..6b19e7b8 100644 --- a/asn.1/generated/OTDOA-RequestAssistanceData.h +++ b/asn.1/lpp_generated/OTDOA-RequestAssistanceData.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _OTDOA_RequestAssistanceData_H_ @@ -34,13 +34,13 @@ typedef struct OTDOA_RequestAssistanceData { * possible extensions are below. */ struct OTDOA_RequestAssistanceData__ext1 { - BIT_STRING_t *adType_r14 /* OPTIONAL */; + BIT_STRING_t *adType_r14; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *ext1; struct OTDOA_RequestAssistanceData__ext2 { - long *nrPhysCellId_r15 /* OPTIONAL */; + long *nrPhysCellId_r15; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/OTDOA-RequestCapabilities.c b/asn.1/lpp_generated/OTDOA-RequestCapabilities.c new file mode 100644 index 00000000..ad8344ac --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-RequestCapabilities.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OTDOA-RequestCapabilities.h" + +static const ber_tlv_tag_t asn_DEF_OTDOA_RequestCapabilities_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_OTDOA_RequestCapabilities_specs_1 = { + sizeof(struct OTDOA_RequestCapabilities), + offsetof(struct OTDOA_RequestCapabilities, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OTDOA_RequestCapabilities = { + "OTDOA-RequestCapabilities", + "OTDOA-RequestCapabilities", + &asn_OP_SEQUENCE, + asn_DEF_OTDOA_RequestCapabilities_tags_1, + sizeof(asn_DEF_OTDOA_RequestCapabilities_tags_1) + /sizeof(asn_DEF_OTDOA_RequestCapabilities_tags_1[0]), /* 1 */ + asn_DEF_OTDOA_RequestCapabilities_tags_1, /* Same as above */ + sizeof(asn_DEF_OTDOA_RequestCapabilities_tags_1) + /sizeof(asn_DEF_OTDOA_RequestCapabilities_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_OTDOA_RequestCapabilities_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/OTDOA-RequestCapabilities.h b/asn.1/lpp_generated/OTDOA-RequestCapabilities.h similarity index 77% rename from asn.1/generated/OTDOA-RequestCapabilities.h rename to asn.1/lpp_generated/OTDOA-RequestCapabilities.h index 466a34ed..e5c0f967 100644 --- a/asn.1/generated/OTDOA-RequestCapabilities.h +++ b/asn.1/lpp_generated/OTDOA-RequestCapabilities.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _OTDOA_RequestCapabilities_H_ diff --git a/asn.1/lpp_generated/OTDOA-RequestLocationInformation.c b/asn.1/lpp_generated/OTDOA-RequestLocationInformation.c new file mode 100644 index 00000000..35d47fe2 --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-RequestLocationInformation.c @@ -0,0 +1,384 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OTDOA-RequestLocationInformation.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_maxNoOfRSTDmeas_r14_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 32L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_multipathRSTD_r14_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxNoOfRSTDmeas_r14_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (1..32) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_motionMeasurements_r15_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_multipathRSTD_r14_value2enum_5[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_multipathRSTD_r14_enum2value_5[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_multipathRSTD_r14_specs_5 = { + asn_MAP_multipathRSTD_r14_value2enum_5, /* "tag" => N; sorted by tag */ + asn_MAP_multipathRSTD_r14_enum2value_5, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_multipathRSTD_r14_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_multipathRSTD_r14_5 = { + "multipathRSTD-r14", + "multipathRSTD-r14", + &asn_OP_NativeEnumerated, + asn_DEF_multipathRSTD_r14_tags_5, + sizeof(asn_DEF_multipathRSTD_r14_tags_5) + /sizeof(asn_DEF_multipathRSTD_r14_tags_5[0]) - 1, /* 1 */ + asn_DEF_multipathRSTD_r14_tags_5, /* Same as above */ + sizeof(asn_DEF_multipathRSTD_r14_tags_5) + /sizeof(asn_DEF_multipathRSTD_r14_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_multipathRSTD_r14_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_multipathRSTD_r14_specs_5 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_4[] = { + { ATF_POINTER, 2, offsetof(struct OTDOA_RequestLocationInformation__ext1, multipathRSTD_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_multipathRSTD_r14_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "multipathRSTD-r14" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_RequestLocationInformation__ext1, maxNoOfRSTDmeas_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxNoOfRSTDmeas_r14_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxNoOfRSTDmeas_r14_constraint_4 + }, + 0, 0, /* No default value */ + "maxNoOfRSTDmeas-r14" + }, +}; +static const int asn_MAP_ext1_oms_4[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* multipathRSTD-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* maxNoOfRSTDmeas-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { + sizeof(struct OTDOA_RequestLocationInformation__ext1), + offsetof(struct OTDOA_RequestLocationInformation__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_4, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_4, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_4 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_4, + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_4, /* Same as above */ + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_4, + 2, /* Elements count */ + &asn_SPC_ext1_specs_4 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_motionMeasurements_r15_value2enum_9[] = { + { 0, 9, "requested" } +}; +static const unsigned int asn_MAP_motionMeasurements_r15_enum2value_9[] = { + 0 /* requested(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_motionMeasurements_r15_specs_9 = { + asn_MAP_motionMeasurements_r15_value2enum_9, /* "tag" => N; sorted by tag */ + asn_MAP_motionMeasurements_r15_enum2value_9, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_motionMeasurements_r15_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_motionMeasurements_r15_9 = { + "motionMeasurements-r15", + "motionMeasurements-r15", + &asn_OP_NativeEnumerated, + asn_DEF_motionMeasurements_r15_tags_9, + sizeof(asn_DEF_motionMeasurements_r15_tags_9) + /sizeof(asn_DEF_motionMeasurements_r15_tags_9[0]) - 1, /* 1 */ + asn_DEF_motionMeasurements_r15_tags_9, /* Same as above */ + sizeof(asn_DEF_motionMeasurements_r15_tags_9) + /sizeof(asn_DEF_motionMeasurements_r15_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_motionMeasurements_r15_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_motionMeasurements_r15_specs_9 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_8[] = { + { ATF_POINTER, 1, offsetof(struct OTDOA_RequestLocationInformation__ext2, motionMeasurements_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_motionMeasurements_r15_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "motionMeasurements-r15" + }, +}; +static const int asn_MAP_ext2_oms_8[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* motionMeasurements-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_8 = { + sizeof(struct OTDOA_RequestLocationInformation__ext2), + offsetof(struct OTDOA_RequestLocationInformation__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_8, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_8, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_8 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_8, + sizeof(asn_DEF_ext2_tags_8) + /sizeof(asn_DEF_ext2_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_8, /* Same as above */ + sizeof(asn_DEF_ext2_tags_8) + /sizeof(asn_DEF_ext2_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_8, + 1, /* Elements count */ + &asn_SPC_ext2_specs_8 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_OTDOA_RequestLocationInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_RequestLocationInformation, assistanceAvailability), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "assistanceAvailability" + }, + { ATF_POINTER, 2, offsetof(struct OTDOA_RequestLocationInformation, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_RequestLocationInformation, ext2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext2_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_OTDOA_RequestLocationInformation_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_OTDOA_RequestLocationInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_OTDOA_RequestLocationInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* assistanceAvailability */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_OTDOA_RequestLocationInformation_specs_1 = { + sizeof(struct OTDOA_RequestLocationInformation), + offsetof(struct OTDOA_RequestLocationInformation, _asn_ctx), + asn_MAP_OTDOA_RequestLocationInformation_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_OTDOA_RequestLocationInformation_oms_1, /* Optional members */ + 0, 2, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OTDOA_RequestLocationInformation = { + "OTDOA-RequestLocationInformation", + "OTDOA-RequestLocationInformation", + &asn_OP_SEQUENCE, + asn_DEF_OTDOA_RequestLocationInformation_tags_1, + sizeof(asn_DEF_OTDOA_RequestLocationInformation_tags_1) + /sizeof(asn_DEF_OTDOA_RequestLocationInformation_tags_1[0]), /* 1 */ + asn_DEF_OTDOA_RequestLocationInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_OTDOA_RequestLocationInformation_tags_1) + /sizeof(asn_DEF_OTDOA_RequestLocationInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_OTDOA_RequestLocationInformation_1, + 3, /* Elements count */ + &asn_SPC_OTDOA_RequestLocationInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/OTDOA-RequestLocationInformation.h b/asn.1/lpp_generated/OTDOA-RequestLocationInformation.h similarity index 84% rename from asn.1/generated/OTDOA-RequestLocationInformation.h rename to asn.1/lpp_generated/OTDOA-RequestLocationInformation.h index 290b3562..f0d41bdc 100644 --- a/asn.1/generated/OTDOA-RequestLocationInformation.h +++ b/asn.1/lpp_generated/OTDOA-RequestLocationInformation.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _OTDOA_RequestLocationInformation_H_ @@ -37,14 +37,14 @@ typedef struct OTDOA_RequestLocationInformation { * possible extensions are below. */ struct OTDOA_RequestLocationInformation__ext1 { - long *multipathRSTD_r14 /* OPTIONAL */; - long *maxNoOfRSTDmeas_r14 /* OPTIONAL */; + long *multipathRSTD_r14; /* OPTIONAL */ + long *maxNoOfRSTDmeas_r14; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *ext1; struct OTDOA_RequestLocationInformation__ext2 { - long *motionMeasurements_r15 /* OPTIONAL */; + long *motionMeasurements_r15; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/OTDOA-SignalMeasurementInformation-NB-r14.c b/asn.1/lpp_generated/OTDOA-SignalMeasurementInformation-NB-r14.c new file mode 100644 index 00000000..9528b8a8 --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-SignalMeasurementInformation-NB-r14.c @@ -0,0 +1,473 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OTDOA-SignalMeasurementInformation-NB-r14.h" + +#include "ECGI.h" +#include "OTDOA-MeasQuality.h" +#include "AdditionalPathList-r14.h" +static int +memb_systemFrameNumber_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 10UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_physCellIdRef_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 503L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_tpIdRef_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_prsIdRef_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nprsIdRef_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_hyperSFN_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 10UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_systemFrameNumber_r14_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_physCellIdRef_r14_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tpIdRef_r14_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_prsIdRef_r14_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nprsIdRef_r14_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_hyperSFN_r14_constr_13 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_OTDOA_SignalMeasurementInformation_NB_r14_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, systemFrameNumber_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_systemFrameNumber_r14_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_systemFrameNumber_r14_constraint_1 + }, + 0, 0, /* No default value */ + "systemFrameNumber-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, physCellIdRef_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_physCellIdRef_r14_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_physCellIdRef_r14_constraint_1 + }, + 0, 0, /* No default value */ + "physCellIdRef-r14" + }, + { ATF_POINTER, 3, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, cellGlobalIdRef_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ECGI, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellGlobalIdRef-r14" + }, + { ATF_POINTER, 2, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, earfcnRef_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueEUTRA_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "earfcnRef-r14" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, referenceQuality_r14), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OTDOA_MeasQuality, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceQuality-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, neighbourMeasurementList_r14), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NeighbourMeasurementList_NB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "neighbourMeasurementList-r14" + }, + { ATF_POINTER, 6, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, tpIdRef_r14), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tpIdRef_r14_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tpIdRef_r14_constraint_1 + }, + 0, 0, /* No default value */ + "tpIdRef-r14" + }, + { ATF_POINTER, 5, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, prsIdRef_r14), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_prsIdRef_r14_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_prsIdRef_r14_constraint_1 + }, + 0, 0, /* No default value */ + "prsIdRef-r14" + }, + { ATF_POINTER, 4, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, additionalPathsRef_r14), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AdditionalPathList_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "additionalPathsRef-r14" + }, + { ATF_POINTER, 3, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, nprsIdRef_r14), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nprsIdRef_r14_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nprsIdRef_r14_constraint_1 + }, + 0, 0, /* No default value */ + "nprsIdRef-r14" + }, + { ATF_POINTER, 2, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, carrierFreqOffsetNB_Ref_r14), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CarrierFreqOffsetNB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "carrierFreqOffsetNB-Ref-r14" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, hyperSFN_r14), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_hyperSFN_r14_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_hyperSFN_r14_constraint_1 + }, + 0, 0, /* No default value */ + "hyperSFN-r14" + }, +}; +static const int asn_MAP_OTDOA_SignalMeasurementInformation_NB_r14_oms_1[] = { 2, 3, 4, 6, 7, 8, 9, 10, 11 }; +static const ber_tlv_tag_t asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_OTDOA_SignalMeasurementInformation_NB_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* systemFrameNumber-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* physCellIdRef-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cellGlobalIdRef-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* earfcnRef-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* referenceQuality-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* neighbourMeasurementList-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* tpIdRef-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* prsIdRef-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* additionalPathsRef-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* nprsIdRef-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* carrierFreqOffsetNB-Ref-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* hyperSFN-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_OTDOA_SignalMeasurementInformation_NB_r14_specs_1 = { + sizeof(struct OTDOA_SignalMeasurementInformation_NB_r14), + offsetof(struct OTDOA_SignalMeasurementInformation_NB_r14, _asn_ctx), + asn_MAP_OTDOA_SignalMeasurementInformation_NB_r14_tag2el_1, + 12, /* Count of tags in the map */ + asn_MAP_OTDOA_SignalMeasurementInformation_NB_r14_oms_1, /* Optional members */ + 9, 0, /* Root/Additions */ + 12, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14 = { + "OTDOA-SignalMeasurementInformation-NB-r14", + "OTDOA-SignalMeasurementInformation-NB-r14", + &asn_OP_SEQUENCE, + asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14_tags_1, + sizeof(asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14_tags_1) + /sizeof(asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14_tags_1[0]), /* 1 */ + asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14_tags_1) + /sizeof(asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_OTDOA_SignalMeasurementInformation_NB_r14_1, + 12, /* Elements count */ + &asn_SPC_OTDOA_SignalMeasurementInformation_NB_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/OTDOA-SignalMeasurementInformation-NB-r14.h b/asn.1/lpp_generated/OTDOA-SignalMeasurementInformation-NB-r14.h new file mode 100644 index 00000000..e5bafa75 --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-SignalMeasurementInformation-NB-r14.h @@ -0,0 +1,64 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _OTDOA_SignalMeasurementInformation_NB_r14_H_ +#define _OTDOA_SignalMeasurementInformation_NB_r14_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include "ARFCN-ValueEUTRA-r14.h" +#include "NeighbourMeasurementList-NB-r14.h" +#include "CarrierFreqOffsetNB-r14.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ECGI; +struct OTDOA_MeasQuality; +struct AdditionalPathList_r14; + +/* OTDOA-SignalMeasurementInformation-NB-r14 */ +typedef struct OTDOA_SignalMeasurementInformation_NB_r14 { + BIT_STRING_t systemFrameNumber_r14; + long physCellIdRef_r14; + struct ECGI *cellGlobalIdRef_r14; /* OPTIONAL */ + ARFCN_ValueEUTRA_r14_t *earfcnRef_r14; /* OPTIONAL */ + struct OTDOA_MeasQuality *referenceQuality_r14; /* OPTIONAL */ + NeighbourMeasurementList_NB_r14_t neighbourMeasurementList_r14; + long *tpIdRef_r14; /* OPTIONAL */ + long *prsIdRef_r14; /* OPTIONAL */ + struct AdditionalPathList_r14 *additionalPathsRef_r14; /* OPTIONAL */ + long *nprsIdRef_r14; /* OPTIONAL */ + CarrierFreqOffsetNB_r14_t *carrierFreqOffsetNB_Ref_r14; /* OPTIONAL */ + BIT_STRING_t *hyperSFN_r14; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} OTDOA_SignalMeasurementInformation_NB_r14_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_OTDOA_SignalMeasurementInformation_NB_r14; +extern asn_SEQUENCE_specifics_t asn_SPC_OTDOA_SignalMeasurementInformation_NB_r14_specs_1; +extern asn_TYPE_member_t asn_MBR_OTDOA_SignalMeasurementInformation_NB_r14_1[12]; + +#ifdef __cplusplus +} +#endif + +#endif /* _OTDOA_SignalMeasurementInformation_NB_r14_H_ */ +#include diff --git a/asn.1/lpp_generated/OTDOA-SignalMeasurementInformation.c b/asn.1/lpp_generated/OTDOA-SignalMeasurementInformation.c new file mode 100644 index 00000000..888189f1 --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-SignalMeasurementInformation.c @@ -0,0 +1,693 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OTDOA-SignalMeasurementInformation.h" + +#include "ECGI.h" +#include "OTDOA-MeasQuality.h" +#include "AdditionalPathList-r14.h" +#include "MotionTimeSource-r15.h" +static int +memb_tpIdRef_r14_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_prsIdRef_r14_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nprsIdRef_r14_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_hyperSFN_r14_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 10UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_systemFrameNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 10UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_physCellIdRef_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 503L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tpIdRef_r14_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_prsIdRef_r14_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nprsIdRef_r14_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_hyperSFN_r14_constr_17 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_systemFrameNumber_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_physCellIdRef_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_9[] = { + { ATF_POINTER, 1, offsetof(struct OTDOA_SignalMeasurementInformation__ext1, earfcnRef_v9a0), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueEUTRA_v9a0, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "earfcnRef-v9a0" + }, +}; +static const int asn_MAP_ext1_oms_9[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_9[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* earfcnRef-v9a0 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_9 = { + sizeof(struct OTDOA_SignalMeasurementInformation__ext1), + offsetof(struct OTDOA_SignalMeasurementInformation__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_9, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_9, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_9 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_9, + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_9, /* Same as above */ + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_9, + 1, /* Elements count */ + &asn_SPC_ext1_specs_9 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_11[] = { + { ATF_POINTER, 6, offsetof(struct OTDOA_SignalMeasurementInformation__ext2, tpIdRef_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tpIdRef_r14_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tpIdRef_r14_constraint_11 + }, + 0, 0, /* No default value */ + "tpIdRef-r14" + }, + { ATF_POINTER, 5, offsetof(struct OTDOA_SignalMeasurementInformation__ext2, prsIdRef_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_prsIdRef_r14_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_prsIdRef_r14_constraint_11 + }, + 0, 0, /* No default value */ + "prsIdRef-r14" + }, + { ATF_POINTER, 4, offsetof(struct OTDOA_SignalMeasurementInformation__ext2, additionalPathsRef_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AdditionalPathList_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "additionalPathsRef-r14" + }, + { ATF_POINTER, 3, offsetof(struct OTDOA_SignalMeasurementInformation__ext2, nprsIdRef_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nprsIdRef_r14_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nprsIdRef_r14_constraint_11 + }, + 0, 0, /* No default value */ + "nprsIdRef-r14" + }, + { ATF_POINTER, 2, offsetof(struct OTDOA_SignalMeasurementInformation__ext2, carrierFreqOffsetNB_Ref_r14), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CarrierFreqOffsetNB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "carrierFreqOffsetNB-Ref-r14" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_SignalMeasurementInformation__ext2, hyperSFN_r14), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_hyperSFN_r14_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_hyperSFN_r14_constraint_11 + }, + 0, 0, /* No default value */ + "hyperSFN-r14" + }, +}; +static const int asn_MAP_ext2_oms_11[] = { 0, 1, 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tpIdRef-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* prsIdRef-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* additionalPathsRef-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nprsIdRef-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* carrierFreqOffsetNB-Ref-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* hyperSFN-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_11 = { + sizeof(struct OTDOA_SignalMeasurementInformation__ext2), + offsetof(struct OTDOA_SignalMeasurementInformation__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_11, + 6, /* Count of tags in the map */ + asn_MAP_ext2_oms_11, /* Optional members */ + 6, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_11 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_11, + sizeof(asn_DEF_ext2_tags_11) + /sizeof(asn_DEF_ext2_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_11, /* Same as above */ + sizeof(asn_DEF_ext2_tags_11) + /sizeof(asn_DEF_ext2_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_11, + 6, /* Elements count */ + &asn_SPC_ext2_specs_11 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_18[] = { + { ATF_POINTER, 1, offsetof(struct OTDOA_SignalMeasurementInformation__ext3, motionTimeSource_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MotionTimeSource_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "motionTimeSource-r15" + }, +}; +static const int asn_MAP_ext3_oms_18[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_18[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* motionTimeSource-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_18 = { + sizeof(struct OTDOA_SignalMeasurementInformation__ext3), + offsetof(struct OTDOA_SignalMeasurementInformation__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_18, + 1, /* Count of tags in the map */ + asn_MAP_ext3_oms_18, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_18 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_18, + sizeof(asn_DEF_ext3_tags_18) + /sizeof(asn_DEF_ext3_tags_18[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_18, /* Same as above */ + sizeof(asn_DEF_ext3_tags_18) + /sizeof(asn_DEF_ext3_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_18, + 1, /* Elements count */ + &asn_SPC_ext3_specs_18 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_OTDOA_SignalMeasurementInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_SignalMeasurementInformation, systemFrameNumber), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_systemFrameNumber_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_systemFrameNumber_constraint_1 + }, + 0, 0, /* No default value */ + "systemFrameNumber" + }, + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_SignalMeasurementInformation, physCellIdRef), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_physCellIdRef_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_physCellIdRef_constraint_1 + }, + 0, 0, /* No default value */ + "physCellIdRef" + }, + { ATF_POINTER, 3, offsetof(struct OTDOA_SignalMeasurementInformation, cellGlobalIdRef), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ECGI, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellGlobalIdRef" + }, + { ATF_POINTER, 2, offsetof(struct OTDOA_SignalMeasurementInformation, earfcnRef), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueEUTRA, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "earfcnRef" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_SignalMeasurementInformation, referenceQuality), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OTDOA_MeasQuality, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceQuality" + }, + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_SignalMeasurementInformation, neighbourMeasurementList), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NeighbourMeasurementList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "neighbourMeasurementList" + }, + { ATF_POINTER, 3, offsetof(struct OTDOA_SignalMeasurementInformation, ext1), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext1_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 2, offsetof(struct OTDOA_SignalMeasurementInformation, ext2), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_ext2_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 1, offsetof(struct OTDOA_SignalMeasurementInformation, ext3), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + 0, + &asn_DEF_ext3_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, +}; +static const int asn_MAP_OTDOA_SignalMeasurementInformation_oms_1[] = { 2, 3, 4, 6, 7, 8 }; +static const ber_tlv_tag_t asn_DEF_OTDOA_SignalMeasurementInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_OTDOA_SignalMeasurementInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* systemFrameNumber */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* physCellIdRef */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cellGlobalIdRef */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* earfcnRef */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* referenceQuality */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* neighbourMeasurementList */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* ext3 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_OTDOA_SignalMeasurementInformation_specs_1 = { + sizeof(struct OTDOA_SignalMeasurementInformation), + offsetof(struct OTDOA_SignalMeasurementInformation, _asn_ctx), + asn_MAP_OTDOA_SignalMeasurementInformation_tag2el_1, + 9, /* Count of tags in the map */ + asn_MAP_OTDOA_SignalMeasurementInformation_oms_1, /* Optional members */ + 3, 3, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OTDOA_SignalMeasurementInformation = { + "OTDOA-SignalMeasurementInformation", + "OTDOA-SignalMeasurementInformation", + &asn_OP_SEQUENCE, + asn_DEF_OTDOA_SignalMeasurementInformation_tags_1, + sizeof(asn_DEF_OTDOA_SignalMeasurementInformation_tags_1) + /sizeof(asn_DEF_OTDOA_SignalMeasurementInformation_tags_1[0]), /* 1 */ + asn_DEF_OTDOA_SignalMeasurementInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_OTDOA_SignalMeasurementInformation_tags_1) + /sizeof(asn_DEF_OTDOA_SignalMeasurementInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_OTDOA_SignalMeasurementInformation_1, + 9, /* Elements count */ + &asn_SPC_OTDOA_SignalMeasurementInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/OTDOA-SignalMeasurementInformation.h b/asn.1/lpp_generated/OTDOA-SignalMeasurementInformation.h new file mode 100644 index 00000000..1ffe4d70 --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-SignalMeasurementInformation.h @@ -0,0 +1,83 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _OTDOA_SignalMeasurementInformation_H_ +#define _OTDOA_SignalMeasurementInformation_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include "ARFCN-ValueEUTRA.h" +#include "NeighbourMeasurementList.h" +#include "ARFCN-ValueEUTRA-v9a0.h" +#include +#include "CarrierFreqOffsetNB-r14.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ECGI; +struct OTDOA_MeasQuality; +struct AdditionalPathList_r14; +struct MotionTimeSource_r15; + +/* OTDOA-SignalMeasurementInformation */ +typedef struct OTDOA_SignalMeasurementInformation { + BIT_STRING_t systemFrameNumber; + long physCellIdRef; + struct ECGI *cellGlobalIdRef; /* OPTIONAL */ + ARFCN_ValueEUTRA_t *earfcnRef; /* OPTIONAL */ + struct OTDOA_MeasQuality *referenceQuality; /* OPTIONAL */ + NeighbourMeasurementList_t neighbourMeasurementList; + /* + * This type is extensible, + * possible extensions are below. + */ + struct OTDOA_SignalMeasurementInformation__ext1 { + ARFCN_ValueEUTRA_v9a0_t *earfcnRef_v9a0; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct OTDOA_SignalMeasurementInformation__ext2 { + long *tpIdRef_r14; /* OPTIONAL */ + long *prsIdRef_r14; /* OPTIONAL */ + struct AdditionalPathList_r14 *additionalPathsRef_r14; /* OPTIONAL */ + long *nprsIdRef_r14; /* OPTIONAL */ + CarrierFreqOffsetNB_r14_t *carrierFreqOffsetNB_Ref_r14; /* OPTIONAL */ + BIT_STRING_t *hyperSFN_r14; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct OTDOA_SignalMeasurementInformation__ext3 { + struct MotionTimeSource_r15 *motionTimeSource_r15; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} OTDOA_SignalMeasurementInformation_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_OTDOA_SignalMeasurementInformation; +extern asn_SEQUENCE_specifics_t asn_SPC_OTDOA_SignalMeasurementInformation_specs_1; +extern asn_TYPE_member_t asn_MBR_OTDOA_SignalMeasurementInformation_1[9]; + +#ifdef __cplusplus +} +#endif + +#endif /* _OTDOA_SignalMeasurementInformation_H_ */ +#include diff --git a/asn.1/lpp_generated/OTDOA-TargetDeviceErrorCauses.c b/asn.1/lpp_generated/OTDOA-TargetDeviceErrorCauses.c new file mode 100644 index 00000000..4fb0f47f --- /dev/null +++ b/asn.1/lpp_generated/OTDOA-TargetDeviceErrorCauses.c @@ -0,0 +1,130 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OTDOA-TargetDeviceErrorCauses.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 23, "assistance-data-missing" }, + { 2, 28, "unableToMeasureReferenceCell" }, + { 3, 31, "unableToMeasureAnyNeighbourCell" }, + { 4, 45, "attemptedButUnableToMeasureSomeNeighbourCells" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_enum2value_2[] = { + 1, /* assistance-data-missing(1) */ + 4, /* attemptedButUnableToMeasureSomeNeighbourCells(4) */ + 3, /* unableToMeasureAnyNeighbourCell(3) */ + 2, /* unableToMeasureReferenceCell(2) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_specs_2 = { + asn_MAP_cause_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_enum2value_2, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 6, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_2 = { + "cause", + "cause", + &asn_OP_NativeEnumerated, + asn_DEF_cause_tags_2, + sizeof(asn_DEF_cause_tags_2) + /sizeof(asn_DEF_cause_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_tags_2) + /sizeof(asn_DEF_cause_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_OTDOA_TargetDeviceErrorCauses_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct OTDOA_TargetDeviceErrorCauses, cause), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause" + }, +}; +static const ber_tlv_tag_t asn_DEF_OTDOA_TargetDeviceErrorCauses_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_OTDOA_TargetDeviceErrorCauses_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause */ +}; +asn_SEQUENCE_specifics_t asn_SPC_OTDOA_TargetDeviceErrorCauses_specs_1 = { + sizeof(struct OTDOA_TargetDeviceErrorCauses), + offsetof(struct OTDOA_TargetDeviceErrorCauses, _asn_ctx), + asn_MAP_OTDOA_TargetDeviceErrorCauses_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OTDOA_TargetDeviceErrorCauses = { + "OTDOA-TargetDeviceErrorCauses", + "OTDOA-TargetDeviceErrorCauses", + &asn_OP_SEQUENCE, + asn_DEF_OTDOA_TargetDeviceErrorCauses_tags_1, + sizeof(asn_DEF_OTDOA_TargetDeviceErrorCauses_tags_1) + /sizeof(asn_DEF_OTDOA_TargetDeviceErrorCauses_tags_1[0]), /* 1 */ + asn_DEF_OTDOA_TargetDeviceErrorCauses_tags_1, /* Same as above */ + sizeof(asn_DEF_OTDOA_TargetDeviceErrorCauses_tags_1) + /sizeof(asn_DEF_OTDOA_TargetDeviceErrorCauses_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_OTDOA_TargetDeviceErrorCauses_1, + 1, /* Elements count */ + &asn_SPC_OTDOA_TargetDeviceErrorCauses_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/OTDOA-TargetDeviceErrorCauses.h b/asn.1/lpp_generated/OTDOA-TargetDeviceErrorCauses.h similarity index 86% rename from asn.1/generated/OTDOA-TargetDeviceErrorCauses.h rename to asn.1/lpp_generated/OTDOA-TargetDeviceErrorCauses.h index 5ebcb37c..d5d055ac 100644 --- a/asn.1/generated/OTDOA-TargetDeviceErrorCauses.h +++ b/asn.1/lpp_generated/OTDOA-TargetDeviceErrorCauses.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _OTDOA_TargetDeviceErrorCauses_H_ diff --git a/asn.1/lpp_generated/On-Demand-DL-PRS-Configuration-r17.c b/asn.1/lpp_generated/On-Demand-DL-PRS-Configuration-r17.c new file mode 100644 index 00000000..8e423596 --- /dev/null +++ b/asn.1/lpp_generated/On-Demand-DL-PRS-Configuration-r17.c @@ -0,0 +1,102 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "On-Demand-DL-PRS-Configuration-r17.h" + +asn_TYPE_member_t asn_MBR_On_Demand_DL_PRS_Configuration_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct On_Demand_DL_PRS_Configuration_r17, dl_prs_configuration_id_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DL_PRS_Configuration_ID_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-prs-configuration-id-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct On_Demand_DL_PRS_Configuration_r17, nr_DL_PRS_PositioningFrequencyLayer_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_PositioningFrequencyLayer_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-PositioningFrequencyLayer-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct On_Demand_DL_PRS_Configuration_r17, nr_DL_PRS_Info_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_PRS_Info_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-PRS-Info-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_On_Demand_DL_PRS_Configuration_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_On_Demand_DL_PRS_Configuration_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-prs-configuration-id-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-PRS-PositioningFrequencyLayer-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-DL-PRS-Info-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_On_Demand_DL_PRS_Configuration_r17_specs_1 = { + sizeof(struct On_Demand_DL_PRS_Configuration_r17), + offsetof(struct On_Demand_DL_PRS_Configuration_r17, _asn_ctx), + asn_MAP_On_Demand_DL_PRS_Configuration_r17_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_On_Demand_DL_PRS_Configuration_r17 = { + "On-Demand-DL-PRS-Configuration-r17", + "On-Demand-DL-PRS-Configuration-r17", + &asn_OP_SEQUENCE, + asn_DEF_On_Demand_DL_PRS_Configuration_r17_tags_1, + sizeof(asn_DEF_On_Demand_DL_PRS_Configuration_r17_tags_1) + /sizeof(asn_DEF_On_Demand_DL_PRS_Configuration_r17_tags_1[0]), /* 1 */ + asn_DEF_On_Demand_DL_PRS_Configuration_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_On_Demand_DL_PRS_Configuration_r17_tags_1) + /sizeof(asn_DEF_On_Demand_DL_PRS_Configuration_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_On_Demand_DL_PRS_Configuration_r17_1, + 3, /* Elements count */ + &asn_SPC_On_Demand_DL_PRS_Configuration_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/On-Demand-DL-PRS-Configuration-r17.h b/asn.1/lpp_generated/On-Demand-DL-PRS-Configuration-r17.h new file mode 100644 index 00000000..f869dcf5 --- /dev/null +++ b/asn.1/lpp_generated/On-Demand-DL-PRS-Configuration-r17.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _On_Demand_DL_PRS_Configuration_r17_H_ +#define _On_Demand_DL_PRS_Configuration_r17_H_ + + +#include + +/* Including external dependencies */ +#include "DL-PRS-Configuration-ID-r17.h" +#include "NR-DL-PRS-PositioningFrequencyLayer-r16.h" +#include "NR-DL-PRS-Info-r16.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* On-Demand-DL-PRS-Configuration-r17 */ +typedef struct On_Demand_DL_PRS_Configuration_r17 { + DL_PRS_Configuration_ID_r17_t dl_prs_configuration_id_r17; + NR_DL_PRS_PositioningFrequencyLayer_r16_t nr_DL_PRS_PositioningFrequencyLayer_r17; + NR_DL_PRS_Info_r16_t nr_DL_PRS_Info_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} On_Demand_DL_PRS_Configuration_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_On_Demand_DL_PRS_Configuration_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_On_Demand_DL_PRS_Configuration_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_On_Demand_DL_PRS_Configuration_r17_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _On_Demand_DL_PRS_Configuration_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/OnDemandDL-PRS-AggregationInfo-r18.c b/asn.1/lpp_generated/OnDemandDL-PRS-AggregationInfo-r18.c new file mode 100644 index 00000000..ce14e106 --- /dev/null +++ b/asn.1/lpp_generated/OnDemandDL-PRS-AggregationInfo-r18.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "OnDemandDL-PRS-AggregationInfo-r18.h" + +#include "DL-PRS-Configuration-ID-r17.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_OnDemandDL_PRS_AggregationInfo_r18_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_OnDemandDL_PRS_AggregationInfo_r18_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DL_PRS_Configuration_ID_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_OnDemandDL_PRS_AggregationInfo_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_OnDemandDL_PRS_AggregationInfo_r18_specs_1 = { + sizeof(struct OnDemandDL_PRS_AggregationInfo_r18), + offsetof(struct OnDemandDL_PRS_AggregationInfo_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_OnDemandDL_PRS_AggregationInfo_r18 = { + "OnDemandDL-PRS-AggregationInfo-r18", + "OnDemandDL-PRS-AggregationInfo-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_OnDemandDL_PRS_AggregationInfo_r18_tags_1, + sizeof(asn_DEF_OnDemandDL_PRS_AggregationInfo_r18_tags_1) + /sizeof(asn_DEF_OnDemandDL_PRS_AggregationInfo_r18_tags_1[0]), /* 1 */ + asn_DEF_OnDemandDL_PRS_AggregationInfo_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_OnDemandDL_PRS_AggregationInfo_r18_tags_1) + /sizeof(asn_DEF_OnDemandDL_PRS_AggregationInfo_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_OnDemandDL_PRS_AggregationInfo_r18_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_OnDemandDL_PRS_AggregationInfo_r18_1, + 1, /* Single element */ + &asn_SPC_OnDemandDL_PRS_AggregationInfo_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/OnDemandDL-PRS-AggregationInfo-r18.h b/asn.1/lpp_generated/OnDemandDL-PRS-AggregationInfo-r18.h new file mode 100644 index 00000000..679f0429 --- /dev/null +++ b/asn.1/lpp_generated/OnDemandDL-PRS-AggregationInfo-r18.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _OnDemandDL_PRS_AggregationInfo_r18_H_ +#define _OnDemandDL_PRS_AggregationInfo_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct DL_PRS_Configuration_ID_r17; + +/* OnDemandDL-PRS-AggregationInfo-r18 */ +typedef struct OnDemandDL_PRS_AggregationInfo_r18 { + A_SEQUENCE_OF(struct DL_PRS_Configuration_ID_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} OnDemandDL_PRS_AggregationInfo_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_OnDemandDL_PRS_AggregationInfo_r18; +extern asn_SET_OF_specifics_t asn_SPC_OnDemandDL_PRS_AggregationInfo_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_OnDemandDL_PRS_AggregationInfo_r18_1[1]; +extern asn_per_constraints_t asn_PER_type_OnDemandDL_PRS_AggregationInfo_r18_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _OnDemandDL_PRS_AggregationInfo_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/PRS-BWA-ThreeContiguousIntrabandInMG-r18.c b/asn.1/lpp_generated/PRS-BWA-ThreeContiguousIntrabandInMG-r18.c new file mode 100644 index 00000000..52b08ff3 --- /dev/null +++ b/asn.1/lpp_generated/PRS-BWA-ThreeContiguousIntrabandInMG-r18.c @@ -0,0 +1,1309 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PRS-BWA-ThreeContiguousIntrabandInMG-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 14 } /* (0..14) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_constr_27 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_constr_35 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_BufferTypeOfBWA_r18_constr_40 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_constr_44 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 17 } /* (0..17) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_constr_63 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs15_r18_constr_75 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs30_r18_constr_87 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs60_r18_constr_99 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs60_r18_constr_112 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs120_r18_constr_124 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_value2enum_2[] = { + { 0, 5, "mhz15" }, + { 1, 5, "mhz20" }, + { 2, 5, "mhz30" }, + { 3, 5, "mhz40" }, + { 4, 5, "mhz50" }, + { 5, 5, "mhz60" }, + { 6, 5, "mhz80" }, + { 7, 6, "mhz100" }, + { 8, 6, "mhz120" }, + { 9, 6, "mhz140" }, + { 10, 6, "mhz150" }, + { 11, 6, "mhz180" }, + { 12, 6, "mhz200" }, + { 13, 6, "mhz240" }, + { 14, 6, "mhz300" } +}; +static const unsigned int asn_MAP_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_enum2value_2[] = { + 7, /* mhz100(7) */ + 8, /* mhz120(8) */ + 9, /* mhz140(9) */ + 0, /* mhz15(0) */ + 10, /* mhz150(10) */ + 11, /* mhz180(11) */ + 1, /* mhz20(1) */ + 12, /* mhz200(12) */ + 13, /* mhz240(13) */ + 2, /* mhz30(2) */ + 14, /* mhz300(14) */ + 3, /* mhz40(3) */ + 4, /* mhz50(4) */ + 5, /* mhz60(5) */ + 6 /* mhz80(6) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_specs_2 = { + asn_MAP_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_enum2value_2, /* N => "tag"; sorted by N */ + 15, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_2 = { + "maximumOfThreeAggregatedDL-PRS-Bandwidth-FR1-r18", + "maximumOfThreeAggregatedDL-PRS-Bandwidth-FR1-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_tags_2, + sizeof(asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_tags_2) + /sizeof(asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_tags_2[0]) - 1, /* 1 */ + asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_tags_2, /* Same as above */ + sizeof(asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_tags_2) + /sizeof(asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_value2enum_18[] = { + { 0, 6, "mhz150" }, + { 1, 6, "mhz200" }, + { 2, 6, "mhz300" }, + { 3, 6, "mhz400" }, + { 4, 6, "mhz600" }, + { 5, 6, "mhz800" }, + { 6, 7, "mhz1000" }, + { 7, 7, "mhz1200" } +}; +static const unsigned int asn_MAP_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_enum2value_18[] = { + 6, /* mhz1000(6) */ + 7, /* mhz1200(7) */ + 0, /* mhz150(0) */ + 1, /* mhz200(1) */ + 2, /* mhz300(2) */ + 3, /* mhz400(3) */ + 4, /* mhz600(4) */ + 5 /* mhz800(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_specs_18 = { + asn_MAP_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_value2enum_18, /* "tag" => N; sorted by tag */ + asn_MAP_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_enum2value_18, /* N => "tag"; sorted by N */ + 8, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_18 = { + "maximumOfThreeAggregatedDL-PRS-Bandwidth-FR2-r18", + "maximumOfThreeAggregatedDL-PRS-Bandwidth-FR2-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_tags_18, + sizeof(asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_tags_18) + /sizeof(asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_tags_18[0]) - 1, /* 1 */ + asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_tags_18, /* Same as above */ + sizeof(asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_tags_18) + /sizeof(asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_specs_18 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_value2enum_27[] = { + { 0, 4, "mhz5" }, + { 1, 5, "mhz10" }, + { 2, 5, "mhz20" }, + { 3, 5, "mhz40" }, + { 4, 5, "mhz50" }, + { 5, 5, "mhz80" }, + { 6, 6, "mhz100" } +}; +static const unsigned int asn_MAP_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_enum2value_27[] = { + 1, /* mhz10(1) */ + 6, /* mhz100(6) */ + 2, /* mhz20(2) */ + 3, /* mhz40(3) */ + 0, /* mhz5(0) */ + 4, /* mhz50(4) */ + 5 /* mhz80(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_specs_27 = { + asn_MAP_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_value2enum_27, /* "tag" => N; sorted by tag */ + asn_MAP_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_enum2value_27, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_tags_27[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_27 = { + "maximumOfDL-PRS-BandwidthPerPFL-FR1-r18", + "maximumOfDL-PRS-BandwidthPerPFL-FR1-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_tags_27, + sizeof(asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_tags_27) + /sizeof(asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_tags_27[0]) - 1, /* 1 */ + asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_tags_27, /* Same as above */ + sizeof(asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_tags_27) + /sizeof(asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_tags_27[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_constr_27, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_specs_27 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_value2enum_35[] = { + { 0, 5, "mhz50" }, + { 1, 6, "mhz100" }, + { 2, 6, "mhz200" }, + { 3, 6, "mhz400" } +}; +static const unsigned int asn_MAP_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_enum2value_35[] = { + 1, /* mhz100(1) */ + 2, /* mhz200(2) */ + 3, /* mhz400(3) */ + 0 /* mhz50(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_specs_35 = { + asn_MAP_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_value2enum_35, /* "tag" => N; sorted by tag */ + asn_MAP_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_enum2value_35, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_tags_35[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_35 = { + "maximumOfDL-PRS-BandwidthPerPFL-FR2-r18", + "maximumOfDL-PRS-BandwidthPerPFL-FR2-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_tags_35, + sizeof(asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_tags_35) + /sizeof(asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_tags_35[0]) - 1, /* 1 */ + asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_tags_35, /* Same as above */ + sizeof(asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_tags_35) + /sizeof(asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_tags_35[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_constr_35, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_specs_35 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_BufferTypeOfBWA_r18_value2enum_40[] = { + { 0, 5, "type1" }, + { 1, 5, "type2" } +}; +static const unsigned int asn_MAP_dl_PRS_BufferTypeOfBWA_r18_enum2value_40[] = { + 0, /* type1(0) */ + 1 /* type2(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_BufferTypeOfBWA_r18_specs_40 = { + asn_MAP_dl_PRS_BufferTypeOfBWA_r18_value2enum_40, /* "tag" => N; sorted by tag */ + asn_MAP_dl_PRS_BufferTypeOfBWA_r18_enum2value_40, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_BufferTypeOfBWA_r18_tags_40[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_BufferTypeOfBWA_r18_40 = { + "dl-PRS-BufferTypeOfBWA-r18", + "dl-PRS-BufferTypeOfBWA-r18", + &asn_OP_NativeEnumerated, + asn_DEF_dl_PRS_BufferTypeOfBWA_r18_tags_40, + sizeof(asn_DEF_dl_PRS_BufferTypeOfBWA_r18_tags_40) + /sizeof(asn_DEF_dl_PRS_BufferTypeOfBWA_r18_tags_40[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_BufferTypeOfBWA_r18_tags_40, /* Same as above */ + sizeof(asn_DEF_dl_PRS_BufferTypeOfBWA_r18_tags_40) + /sizeof(asn_DEF_dl_PRS_BufferTypeOfBWA_r18_tags_40[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_BufferTypeOfBWA_r18_constr_40, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_PRS_BufferTypeOfBWA_r18_specs_40 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_value2enum_44[] = { + { 0, 8, "msDot125" }, + { 1, 7, "msDot25" }, + { 2, 6, "msDot5" }, + { 3, 3, "ms1" }, + { 4, 3, "ms2" }, + { 5, 3, "ms4" }, + { 6, 3, "ms6" }, + { 7, 3, "ms8" }, + { 8, 4, "ms12" }, + { 9, 4, "ms16" }, + { 10, 4, "ms20" }, + { 11, 4, "ms25" }, + { 12, 4, "ms30" }, + { 13, 4, "ms32" }, + { 14, 4, "ms35" }, + { 15, 4, "ms40" }, + { 16, 4, "ms45" }, + { 17, 4, "ms50" } +}; +static const unsigned int asn_MAP_prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_enum2value_44[] = { + 3, /* ms1(3) */ + 8, /* ms12(8) */ + 9, /* ms16(9) */ + 4, /* ms2(4) */ + 10, /* ms20(10) */ + 11, /* ms25(11) */ + 12, /* ms30(12) */ + 13, /* ms32(13) */ + 14, /* ms35(14) */ + 5, /* ms4(5) */ + 15, /* ms40(15) */ + 16, /* ms45(16) */ + 17, /* ms50(17) */ + 6, /* ms6(6) */ + 7, /* ms8(7) */ + 0, /* msDot125(0) */ + 1, /* msDot25(1) */ + 2 /* msDot5(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_specs_44 = { + asn_MAP_prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_value2enum_44, /* "tag" => N; sorted by tag */ + asn_MAP_prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_enum2value_44, /* N => "tag"; sorted by N */ + 18, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_tags_44[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_44 = { + "prs-durationOfThreePRS-BWA-ProcessingSymbolsN-r18", + "prs-durationOfThreePRS-BWA-ProcessingSymbolsN-r18", + &asn_OP_NativeEnumerated, + asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_tags_44, + sizeof(asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_tags_44) + /sizeof(asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_tags_44[0]) - 1, /* 1 */ + asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_tags_44, /* Same as above */ + sizeof(asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_tags_44) + /sizeof(asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_tags_44[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_constr_44, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_specs_44 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_value2enum_63[] = { + { 0, 3, "ms8" }, + { 1, 4, "ms16" }, + { 2, 4, "ms20" }, + { 3, 4, "ms30" }, + { 4, 4, "ms40" }, + { 5, 4, "ms80" }, + { 6, 5, "ms160" }, + { 7, 5, "ms320" }, + { 8, 5, "ms640" }, + { 9, 6, "ms1280" } +}; +static const unsigned int asn_MAP_prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_enum2value_63[] = { + 9, /* ms1280(9) */ + 1, /* ms16(1) */ + 6, /* ms160(6) */ + 2, /* ms20(2) */ + 3, /* ms30(3) */ + 7, /* ms320(7) */ + 4, /* ms40(4) */ + 8, /* ms640(8) */ + 0, /* ms8(0) */ + 5 /* ms80(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_specs_63 = { + asn_MAP_prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_value2enum_63, /* "tag" => N; sorted by tag */ + asn_MAP_prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_enum2value_63, /* N => "tag"; sorted by N */ + 10, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_tags_63[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_63 = { + "prs-durationOfThreePRS-BWA-ProcessingSymbolsT-r18", + "prs-durationOfThreePRS-BWA-ProcessingSymbolsT-r18", + &asn_OP_NativeEnumerated, + asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_tags_63, + sizeof(asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_tags_63) + /sizeof(asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_tags_63[0]) - 1, /* 1 */ + asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_tags_63, /* Same as above */ + sizeof(asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_tags_63) + /sizeof(asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_tags_63[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_constr_63, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_specs_63 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_prs_durationOfThreePRS_BWA_Processing_r18_43[] = { + { ATF_NOFLAGS, 0, offsetof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18, prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_44, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-durationOfThreePRS-BWA-ProcessingSymbolsN-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18, prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_63, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-durationOfThreePRS-BWA-ProcessingSymbolsT-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_prs_durationOfThreePRS_BWA_Processing_r18_tags_43[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_prs_durationOfThreePRS_BWA_Processing_r18_tag2el_43[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* prs-durationOfThreePRS-BWA-ProcessingSymbolsN-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* prs-durationOfThreePRS-BWA-ProcessingSymbolsT-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_prs_durationOfThreePRS_BWA_Processing_r18_specs_43 = { + sizeof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18), + offsetof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18, _asn_ctx), + asn_MAP_prs_durationOfThreePRS_BWA_Processing_r18_tag2el_43, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prs_durationOfThreePRS_BWA_Processing_r18_43 = { + "prs-durationOfThreePRS-BWA-Processing-r18", + "prs-durationOfThreePRS-BWA-Processing-r18", + &asn_OP_SEQUENCE, + asn_DEF_prs_durationOfThreePRS_BWA_Processing_r18_tags_43, + sizeof(asn_DEF_prs_durationOfThreePRS_BWA_Processing_r18_tags_43) + /sizeof(asn_DEF_prs_durationOfThreePRS_BWA_Processing_r18_tags_43[0]) - 1, /* 1 */ + asn_DEF_prs_durationOfThreePRS_BWA_Processing_r18_tags_43, /* Same as above */ + sizeof(asn_DEF_prs_durationOfThreePRS_BWA_Processing_r18_tags_43) + /sizeof(asn_DEF_prs_durationOfThreePRS_BWA_Processing_r18_tags_43[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_prs_durationOfThreePRS_BWA_Processing_r18_43, + 2, /* Elements count */ + &asn_SPC_prs_durationOfThreePRS_BWA_Processing_r18_specs_43 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs15_r18_value2enum_75[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs15_r18_enum2value_75[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs15_r18_specs_75 = { + asn_MAP_scs15_r18_value2enum_75, /* "tag" => N; sorted by tag */ + asn_MAP_scs15_r18_enum2value_75, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs15_r18_tags_75[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs15_r18_75 = { + "scs15-r18", + "scs15-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs15_r18_tags_75, + sizeof(asn_DEF_scs15_r18_tags_75) + /sizeof(asn_DEF_scs15_r18_tags_75[0]) - 1, /* 1 */ + asn_DEF_scs15_r18_tags_75, /* Same as above */ + sizeof(asn_DEF_scs15_r18_tags_75) + /sizeof(asn_DEF_scs15_r18_tags_75[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs15_r18_constr_75, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs15_r18_specs_75 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs30_r18_value2enum_87[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs30_r18_enum2value_87[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs30_r18_specs_87 = { + asn_MAP_scs30_r18_value2enum_87, /* "tag" => N; sorted by tag */ + asn_MAP_scs30_r18_enum2value_87, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs30_r18_tags_87[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs30_r18_87 = { + "scs30-r18", + "scs30-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs30_r18_tags_87, + sizeof(asn_DEF_scs30_r18_tags_87) + /sizeof(asn_DEF_scs30_r18_tags_87[0]) - 1, /* 1 */ + asn_DEF_scs30_r18_tags_87, /* Same as above */ + sizeof(asn_DEF_scs30_r18_tags_87) + /sizeof(asn_DEF_scs30_r18_tags_87[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs30_r18_constr_87, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs30_r18_specs_87 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs60_r18_value2enum_99[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs60_r18_enum2value_99[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs60_r18_specs_99 = { + asn_MAP_scs60_r18_value2enum_99, /* "tag" => N; sorted by tag */ + asn_MAP_scs60_r18_enum2value_99, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs60_r18_tags_99[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs60_r18_99 = { + "scs60-r18", + "scs60-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs60_r18_tags_99, + sizeof(asn_DEF_scs60_r18_tags_99) + /sizeof(asn_DEF_scs60_r18_tags_99[0]) - 1, /* 1 */ + asn_DEF_scs60_r18_tags_99, /* Same as above */ + sizeof(asn_DEF_scs60_r18_tags_99) + /sizeof(asn_DEF_scs60_r18_tags_99[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs60_r18_constr_99, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs60_r18_specs_99 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_74[] = { + { ATF_POINTER, 3, offsetof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18, scs15_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs15_r18_75, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs15-r18" + }, + { ATF_POINTER, 2, offsetof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18, scs30_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs30_r18_87, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs30-r18" + }, + { ATF_POINTER, 1, offsetof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18, scs60_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs60_r18_99, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs60-r18" + }, +}; +static const int asn_MAP_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_oms_74[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_tags_74[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_tag2el_74[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* scs15-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* scs30-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* scs60-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_specs_74 = { + sizeof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18), + offsetof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18, _asn_ctx), + asn_MAP_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_tag2el_74, + 3, /* Count of tags in the map */ + asn_MAP_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_oms_74, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_74 = { + "maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR1-r18", + "maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR1-r18", + &asn_OP_SEQUENCE, + asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_tags_74, + sizeof(asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_tags_74) + /sizeof(asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_tags_74[0]) - 1, /* 1 */ + asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_tags_74, /* Same as above */ + sizeof(asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_tags_74) + /sizeof(asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_tags_74[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_74, + 3, /* Elements count */ + &asn_SPC_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_specs_74 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs60_r18_value2enum_112[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs60_r18_enum2value_112[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs60_r18_specs_112 = { + asn_MAP_scs60_r18_value2enum_112, /* "tag" => N; sorted by tag */ + asn_MAP_scs60_r18_enum2value_112, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs60_r18_tags_112[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs60_r18_112 = { + "scs60-r18", + "scs60-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs60_r18_tags_112, + sizeof(asn_DEF_scs60_r18_tags_112) + /sizeof(asn_DEF_scs60_r18_tags_112[0]) - 1, /* 1 */ + asn_DEF_scs60_r18_tags_112, /* Same as above */ + sizeof(asn_DEF_scs60_r18_tags_112) + /sizeof(asn_DEF_scs60_r18_tags_112[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs60_r18_constr_112, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs60_r18_specs_112 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs120_r18_value2enum_124[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs120_r18_enum2value_124[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs120_r18_specs_124 = { + asn_MAP_scs120_r18_value2enum_124, /* "tag" => N; sorted by tag */ + asn_MAP_scs120_r18_enum2value_124, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs120_r18_tags_124[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs120_r18_124 = { + "scs120-r18", + "scs120-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs120_r18_tags_124, + sizeof(asn_DEF_scs120_r18_tags_124) + /sizeof(asn_DEF_scs120_r18_tags_124[0]) - 1, /* 1 */ + asn_DEF_scs120_r18_tags_124, /* Same as above */ + sizeof(asn_DEF_scs120_r18_tags_124) + /sizeof(asn_DEF_scs120_r18_tags_124[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs120_r18_constr_124, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs120_r18_specs_124 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_111[] = { + { ATF_POINTER, 2, offsetof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18, scs60_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs60_r18_112, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs60-r18" + }, + { ATF_POINTER, 1, offsetof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18, scs120_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs120_r18_124, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs120-r18" + }, +}; +static const int asn_MAP_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_oms_111[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_tags_111[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_tag2el_111[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* scs60-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* scs120-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_specs_111 = { + sizeof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18), + offsetof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18, _asn_ctx), + asn_MAP_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_tag2el_111, + 2, /* Count of tags in the map */ + asn_MAP_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_oms_111, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_111 = { + "maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR2-r18", + "maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR2-r18", + &asn_OP_SEQUENCE, + asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_tags_111, + sizeof(asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_tags_111) + /sizeof(asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_tags_111[0]) - 1, /* 1 */ + asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_tags_111, /* Same as above */ + sizeof(asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_tags_111) + /sizeof(asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_tags_111[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_111, + 2, /* Elements count */ + &asn_SPC_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_specs_111 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_PRS_BWA_ThreeContiguousIntrabandInMG_r18_1[] = { + { ATF_POINTER, 4, offsetof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18, maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumOfThreeAggregatedDL-PRS-Bandwidth-FR1-r18" + }, + { ATF_POINTER, 3, offsetof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18, maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumOfThreeAggregatedDL-PRS-Bandwidth-FR2-r18" + }, + { ATF_POINTER, 2, offsetof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18, maximumOfDL_PRS_BandwidthPerPFL_FR1_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_27, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumOfDL-PRS-BandwidthPerPFL-FR1-r18" + }, + { ATF_POINTER, 1, offsetof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18, maximumOfDL_PRS_BandwidthPerPFL_FR2_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_35, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumOfDL-PRS-BandwidthPerPFL-FR2-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18, dl_PRS_BufferTypeOfBWA_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_PRS_BufferTypeOfBWA_r18_40, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-BufferTypeOfBWA-r18" + }, + { ATF_POINTER, 1, offsetof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18, prs_durationOfThreePRS_BWA_Processing_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_prs_durationOfThreePRS_BWA_Processing_r18_43, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-durationOfThreePRS-BWA-Processing-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18, maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_74, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR1-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18, maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_111, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR2-r18" + }, +}; +static const int asn_MAP_PRS_BWA_ThreeContiguousIntrabandInMG_r18_oms_1[] = { 0, 1, 2, 3, 5 }; +static const ber_tlv_tag_t asn_DEF_PRS_BWA_ThreeContiguousIntrabandInMG_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PRS_BWA_ThreeContiguousIntrabandInMG_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maximumOfThreeAggregatedDL-PRS-Bandwidth-FR1-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maximumOfThreeAggregatedDL-PRS-Bandwidth-FR2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* maximumOfDL-PRS-BandwidthPerPFL-FR1-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* maximumOfDL-PRS-BandwidthPerPFL-FR2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* dl-PRS-BufferTypeOfBWA-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* prs-durationOfThreePRS-BWA-Processing-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR1-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR2-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PRS_BWA_ThreeContiguousIntrabandInMG_r18_specs_1 = { + sizeof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18), + offsetof(struct PRS_BWA_ThreeContiguousIntrabandInMG_r18, _asn_ctx), + asn_MAP_PRS_BWA_ThreeContiguousIntrabandInMG_r18_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_PRS_BWA_ThreeContiguousIntrabandInMG_r18_oms_1, /* Optional members */ + 5, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PRS_BWA_ThreeContiguousIntrabandInMG_r18 = { + "PRS-BWA-ThreeContiguousIntrabandInMG-r18", + "PRS-BWA-ThreeContiguousIntrabandInMG-r18", + &asn_OP_SEQUENCE, + asn_DEF_PRS_BWA_ThreeContiguousIntrabandInMG_r18_tags_1, + sizeof(asn_DEF_PRS_BWA_ThreeContiguousIntrabandInMG_r18_tags_1) + /sizeof(asn_DEF_PRS_BWA_ThreeContiguousIntrabandInMG_r18_tags_1[0]), /* 1 */ + asn_DEF_PRS_BWA_ThreeContiguousIntrabandInMG_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_PRS_BWA_ThreeContiguousIntrabandInMG_r18_tags_1) + /sizeof(asn_DEF_PRS_BWA_ThreeContiguousIntrabandInMG_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PRS_BWA_ThreeContiguousIntrabandInMG_r18_1, + 8, /* Elements count */ + &asn_SPC_PRS_BWA_ThreeContiguousIntrabandInMG_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/PRS-BWA-ThreeContiguousIntrabandInMG-r18.h b/asn.1/lpp_generated/PRS-BWA-ThreeContiguousIntrabandInMG-r18.h new file mode 100644 index 00000000..bc2dd9d1 --- /dev/null +++ b/asn.1/lpp_generated/PRS-BWA-ThreeContiguousIntrabandInMG-r18.h @@ -0,0 +1,223 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _PRS_BWA_ThreeContiguousIntrabandInMG_r18_H_ +#define _PRS_BWA_ThreeContiguousIntrabandInMG_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18 { + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_mhz15 = 0, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_mhz20 = 1, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_mhz30 = 2, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_mhz40 = 3, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_mhz50 = 4, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_mhz60 = 5, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_mhz80 = 6, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_mhz100 = 7, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_mhz120 = 8, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_mhz140 = 9, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_mhz150 = 10, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_mhz180 = 11, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_mhz200 = 12, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_mhz240 = 13, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_mhz300 = 14 +} e_PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18; +typedef enum PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18 { + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_mhz150 = 0, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_mhz200 = 1, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_mhz300 = 2, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_mhz400 = 3, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_mhz600 = 4, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_mhz800 = 5, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_mhz1000 = 6, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_mhz1200 = 7 +} e_PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18; +typedef enum PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR1_r18 { + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_mhz5 = 0, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_mhz10 = 1, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_mhz20 = 2, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_mhz40 = 3, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_mhz50 = 4, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_mhz80 = 5, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_mhz100 = 6 +} e_PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR1_r18; +typedef enum PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR2_r18 { + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_mhz50 = 0, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_mhz100 = 1, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_mhz200 = 2, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_mhz400 = 3 +} e_PRS_BWA_ThreeContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR2_r18; +typedef enum PRS_BWA_ThreeContiguousIntrabandInMG_r18__dl_PRS_BufferTypeOfBWA_r18 { + PRS_BWA_ThreeContiguousIntrabandInMG_r18__dl_PRS_BufferTypeOfBWA_r18_type1 = 0, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__dl_PRS_BufferTypeOfBWA_r18_type2 = 1 +} e_PRS_BWA_ThreeContiguousIntrabandInMG_r18__dl_PRS_BufferTypeOfBWA_r18; +typedef enum PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18 { + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_msDot125 = 0, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_msDot25 = 1, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_msDot5 = 2, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_ms1 = 3, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_ms2 = 4, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_ms4 = 5, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_ms6 = 6, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_ms8 = 7, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_ms12 = 8, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_ms16 = 9, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_ms20 = 10, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_ms25 = 11, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_ms30 = 12, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_ms32 = 13, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_ms35 = 14, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_ms40 = 15, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_ms45 = 16, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_ms50 = 17 +} e_PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18; +typedef enum PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18 { + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_ms8 = 0, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_ms16 = 1, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_ms20 = 2, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_ms30 = 3, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_ms40 = 4, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_ms80 = 5, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_ms160 = 6, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_ms320 = 7, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_ms640 = 8, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_ms1280 = 9 +} e_PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18__prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18; +typedef enum PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18 { + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n1 = 0, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n2 = 1, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n4 = 2, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n6 = 3, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n8 = 4, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n12 = 5, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n16 = 6, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n24 = 7, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n32 = 8, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n48 = 9, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n64 = 10 +} e_PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18; +typedef enum PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18 { + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n1 = 0, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n2 = 1, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n4 = 2, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n6 = 3, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n8 = 4, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n12 = 5, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n16 = 6, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n24 = 7, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n32 = 8, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n48 = 9, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n64 = 10 +} e_PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18; +typedef enum PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18 { + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n1 = 0, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n2 = 1, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n4 = 2, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n6 = 3, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n8 = 4, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n12 = 5, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n16 = 6, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n24 = 7, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n32 = 8, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n48 = 9, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n64 = 10 +} e_PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18; +typedef enum PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18 { + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n1 = 0, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n2 = 1, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n4 = 2, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n6 = 3, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n8 = 4, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n12 = 5, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n16 = 6, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n24 = 7, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n32 = 8, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n48 = 9, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n64 = 10 +} e_PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18; +typedef enum PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18 { + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n1 = 0, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n2 = 1, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n4 = 2, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n6 = 3, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n8 = 4, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n12 = 5, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n16 = 6, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n24 = 7, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n32 = 8, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n48 = 9, + PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n64 = 10 +} e_PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18; + +/* PRS-BWA-ThreeContiguousIntrabandInMG-r18 */ +typedef struct PRS_BWA_ThreeContiguousIntrabandInMG_r18 { + long *maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18; /* OPTIONAL */ + long *maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18; /* OPTIONAL */ + long *maximumOfDL_PRS_BandwidthPerPFL_FR1_r18; /* OPTIONAL */ + long *maximumOfDL_PRS_BandwidthPerPFL_FR2_r18; /* OPTIONAL */ + long dl_PRS_BufferTypeOfBWA_r18; + struct PRS_BWA_ThreeContiguousIntrabandInMG_r18__prs_durationOfThreePRS_BWA_Processing_r18 { + long prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18; + long prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *prs_durationOfThreePRS_BWA_Processing_r18; + struct PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18 { + long *scs15_r18; /* OPTIONAL */ + long *scs30_r18; /* OPTIONAL */ + long *scs60_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18; + struct PRS_BWA_ThreeContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18 { + long *scs60_r18; /* OPTIONAL */ + long *scs120_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PRS_BWA_ThreeContiguousIntrabandInMG_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR1_r18_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumOfThreeAggregatedDL_PRS_Bandwidth_FR2_r18_18; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_27; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_35; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_dl_PRS_BufferTypeOfBWA_r18_40; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsN_r18_44; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_prs_durationOfThreePRS_BWA_ProcessingSymbolsT_r18_63; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs15_r18_75; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs30_r18_87; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs60_r18_99; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs60_r18_112; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs120_r18_124; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_PRS_BWA_ThreeContiguousIntrabandInMG_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_PRS_BWA_ThreeContiguousIntrabandInMG_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_PRS_BWA_ThreeContiguousIntrabandInMG_r18_1[8]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PRS_BWA_ThreeContiguousIntrabandInMG_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/PRS-BWA-TwoContiguousIntrabandInMG-r18.c b/asn.1/lpp_generated/PRS-BWA-TwoContiguousIntrabandInMG-r18.c new file mode 100644 index 00000000..3f233f40 --- /dev/null +++ b/asn.1/lpp_generated/PRS-BWA-TwoContiguousIntrabandInMG-r18.c @@ -0,0 +1,1287 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PRS-BWA-TwoContiguousIntrabandInMG-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_constr_24 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_BufferTypeOfBWA_r18_constr_29 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_constr_33 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 17 } /* (0..17) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_constr_52 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs15_r18_constr_64 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs30_r18_constr_76 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs60_r18_constr_88 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs60_r18_constr_101 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs120_r18_constr_113 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_value2enum_2[] = { + { 0, 5, "mhz10" }, + { 1, 5, "mhz20" }, + { 2, 5, "mhz40" }, + { 3, 5, "mhz50" }, + { 4, 5, "mhz80" }, + { 5, 6, "mhz100" }, + { 6, 6, "mhz160" }, + { 7, 6, "mhz200" } +}; +static const unsigned int asn_MAP_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_enum2value_2[] = { + 0, /* mhz10(0) */ + 5, /* mhz100(5) */ + 6, /* mhz160(6) */ + 1, /* mhz20(1) */ + 7, /* mhz200(7) */ + 2, /* mhz40(2) */ + 3, /* mhz50(3) */ + 4 /* mhz80(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_specs_2 = { + asn_MAP_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_enum2value_2, /* N => "tag"; sorted by N */ + 8, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_2 = { + "maximumOfTwoAggregatedDL-PRS-Bandwidth-FR1-r18", + "maximumOfTwoAggregatedDL-PRS-Bandwidth-FR1-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_tags_2, + sizeof(asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_tags_2) + /sizeof(asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_tags_2[0]) - 1, /* 1 */ + asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_tags_2, /* Same as above */ + sizeof(asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_tags_2) + /sizeof(asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_value2enum_11[] = { + { 0, 6, "mhz100" }, + { 1, 6, "mhz200" }, + { 2, 6, "mhz400" }, + { 3, 6, "mhz800" } +}; +static const unsigned int asn_MAP_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_enum2value_11[] = { + 0, /* mhz100(0) */ + 1, /* mhz200(1) */ + 2, /* mhz400(2) */ + 3 /* mhz800(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_specs_11 = { + asn_MAP_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_value2enum_11, /* "tag" => N; sorted by tag */ + asn_MAP_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_enum2value_11, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_11 = { + "maximumOfTwoAggregatedDL-PRS-Bandwidth-FR2-r18", + "maximumOfTwoAggregatedDL-PRS-Bandwidth-FR2-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_tags_11, + sizeof(asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_tags_11) + /sizeof(asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_tags_11[0]) - 1, /* 1 */ + asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_tags_11, /* Same as above */ + sizeof(asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_tags_11) + /sizeof(asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_specs_11 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_value2enum_16[] = { + { 0, 4, "mhz5" }, + { 1, 5, "mhz10" }, + { 2, 5, "mhz20" }, + { 3, 5, "mhz40" }, + { 4, 5, "mhz50" }, + { 5, 5, "mhz80" }, + { 6, 6, "mhz100" } +}; +static const unsigned int asn_MAP_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_enum2value_16[] = { + 1, /* mhz10(1) */ + 6, /* mhz100(6) */ + 2, /* mhz20(2) */ + 3, /* mhz40(3) */ + 0, /* mhz5(0) */ + 4, /* mhz50(4) */ + 5 /* mhz80(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_specs_16 = { + asn_MAP_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_value2enum_16, /* "tag" => N; sorted by tag */ + asn_MAP_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_enum2value_16, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_tags_16[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_16 = { + "maximumOfDL-PRS-BandwidthPerPFL-FR1-r18", + "maximumOfDL-PRS-BandwidthPerPFL-FR1-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_tags_16, + sizeof(asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_tags_16) + /sizeof(asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_tags_16[0]) - 1, /* 1 */ + asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_tags_16, /* Same as above */ + sizeof(asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_tags_16) + /sizeof(asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_tags_16[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_specs_16 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_value2enum_24[] = { + { 0, 5, "mhz50" }, + { 1, 6, "mhz100" }, + { 2, 6, "mhz200" }, + { 3, 6, "mhz400" } +}; +static const unsigned int asn_MAP_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_enum2value_24[] = { + 1, /* mhz100(1) */ + 2, /* mhz200(2) */ + 3, /* mhz400(3) */ + 0 /* mhz50(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_specs_24 = { + asn_MAP_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_value2enum_24, /* "tag" => N; sorted by tag */ + asn_MAP_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_enum2value_24, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_tags_24[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_24 = { + "maximumOfDL-PRS-BandwidthPerPFL-FR2-r18", + "maximumOfDL-PRS-BandwidthPerPFL-FR2-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_tags_24, + sizeof(asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_tags_24) + /sizeof(asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_tags_24[0]) - 1, /* 1 */ + asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_tags_24, /* Same as above */ + sizeof(asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_tags_24) + /sizeof(asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_tags_24[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_constr_24, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_specs_24 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_BufferTypeOfBWA_r18_value2enum_29[] = { + { 0, 5, "type1" }, + { 1, 5, "type2" } +}; +static const unsigned int asn_MAP_dl_PRS_BufferTypeOfBWA_r18_enum2value_29[] = { + 0, /* type1(0) */ + 1 /* type2(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_BufferTypeOfBWA_r18_specs_29 = { + asn_MAP_dl_PRS_BufferTypeOfBWA_r18_value2enum_29, /* "tag" => N; sorted by tag */ + asn_MAP_dl_PRS_BufferTypeOfBWA_r18_enum2value_29, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_BufferTypeOfBWA_r18_tags_29[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_BufferTypeOfBWA_r18_29 = { + "dl-PRS-BufferTypeOfBWA-r18", + "dl-PRS-BufferTypeOfBWA-r18", + &asn_OP_NativeEnumerated, + asn_DEF_dl_PRS_BufferTypeOfBWA_r18_tags_29, + sizeof(asn_DEF_dl_PRS_BufferTypeOfBWA_r18_tags_29) + /sizeof(asn_DEF_dl_PRS_BufferTypeOfBWA_r18_tags_29[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_BufferTypeOfBWA_r18_tags_29, /* Same as above */ + sizeof(asn_DEF_dl_PRS_BufferTypeOfBWA_r18_tags_29) + /sizeof(asn_DEF_dl_PRS_BufferTypeOfBWA_r18_tags_29[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_BufferTypeOfBWA_r18_constr_29, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_PRS_BufferTypeOfBWA_r18_specs_29 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_value2enum_33[] = { + { 0, 8, "msDot125" }, + { 1, 7, "msDot25" }, + { 2, 6, "msDot5" }, + { 3, 3, "ms1" }, + { 4, 3, "ms2" }, + { 5, 3, "ms4" }, + { 6, 3, "ms6" }, + { 7, 3, "ms8" }, + { 8, 4, "ms12" }, + { 9, 4, "ms16" }, + { 10, 4, "ms20" }, + { 11, 4, "ms25" }, + { 12, 4, "ms30" }, + { 13, 4, "ms32" }, + { 14, 4, "ms35" }, + { 15, 4, "ms40" }, + { 16, 4, "ms45" }, + { 17, 4, "ms50" } +}; +static const unsigned int asn_MAP_prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_enum2value_33[] = { + 3, /* ms1(3) */ + 8, /* ms12(8) */ + 9, /* ms16(9) */ + 4, /* ms2(4) */ + 10, /* ms20(10) */ + 11, /* ms25(11) */ + 12, /* ms30(12) */ + 13, /* ms32(13) */ + 14, /* ms35(14) */ + 5, /* ms4(5) */ + 15, /* ms40(15) */ + 16, /* ms45(16) */ + 17, /* ms50(17) */ + 6, /* ms6(6) */ + 7, /* ms8(7) */ + 0, /* msDot125(0) */ + 1, /* msDot25(1) */ + 2 /* msDot5(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_specs_33 = { + asn_MAP_prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_value2enum_33, /* "tag" => N; sorted by tag */ + asn_MAP_prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_enum2value_33, /* N => "tag"; sorted by N */ + 18, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_tags_33[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_33 = { + "prs-durationOfTwoPRS-BWA-ProcessingSymbolsN-r18", + "prs-durationOfTwoPRS-BWA-ProcessingSymbolsN-r18", + &asn_OP_NativeEnumerated, + asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_tags_33, + sizeof(asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_tags_33) + /sizeof(asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_tags_33[0]) - 1, /* 1 */ + asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_tags_33, /* Same as above */ + sizeof(asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_tags_33) + /sizeof(asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_tags_33[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_constr_33, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_specs_33 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_value2enum_52[] = { + { 0, 3, "ms8" }, + { 1, 4, "ms16" }, + { 2, 4, "ms20" }, + { 3, 4, "ms30" }, + { 4, 4, "ms40" }, + { 5, 4, "ms80" }, + { 6, 5, "ms160" }, + { 7, 5, "ms320" }, + { 8, 5, "ms640" }, + { 9, 6, "ms1280" } +}; +static const unsigned int asn_MAP_prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_enum2value_52[] = { + 9, /* ms1280(9) */ + 1, /* ms16(1) */ + 6, /* ms160(6) */ + 2, /* ms20(2) */ + 3, /* ms30(3) */ + 7, /* ms320(7) */ + 4, /* ms40(4) */ + 8, /* ms640(8) */ + 0, /* ms8(0) */ + 5 /* ms80(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_specs_52 = { + asn_MAP_prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_value2enum_52, /* "tag" => N; sorted by tag */ + asn_MAP_prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_enum2value_52, /* N => "tag"; sorted by N */ + 10, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_tags_52[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_52 = { + "prs-durationOfTwoPRS-BWA-ProcessingSymbolsT-r18", + "prs-durationOfTwoPRS-BWA-ProcessingSymbolsT-r18", + &asn_OP_NativeEnumerated, + asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_tags_52, + sizeof(asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_tags_52) + /sizeof(asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_tags_52[0]) - 1, /* 1 */ + asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_tags_52, /* Same as above */ + sizeof(asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_tags_52) + /sizeof(asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_tags_52[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_constr_52, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_specs_52 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_prs_durationOfTwoPRS_BWA_Processing_r18_32[] = { + { ATF_NOFLAGS, 0, offsetof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18, prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_33, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-durationOfTwoPRS-BWA-ProcessingSymbolsN-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18, prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_52, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-durationOfTwoPRS-BWA-ProcessingSymbolsT-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_prs_durationOfTwoPRS_BWA_Processing_r18_tags_32[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_prs_durationOfTwoPRS_BWA_Processing_r18_tag2el_32[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* prs-durationOfTwoPRS-BWA-ProcessingSymbolsN-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* prs-durationOfTwoPRS-BWA-ProcessingSymbolsT-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_prs_durationOfTwoPRS_BWA_Processing_r18_specs_32 = { + sizeof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18), + offsetof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18, _asn_ctx), + asn_MAP_prs_durationOfTwoPRS_BWA_Processing_r18_tag2el_32, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prs_durationOfTwoPRS_BWA_Processing_r18_32 = { + "prs-durationOfTwoPRS-BWA-Processing-r18", + "prs-durationOfTwoPRS-BWA-Processing-r18", + &asn_OP_SEQUENCE, + asn_DEF_prs_durationOfTwoPRS_BWA_Processing_r18_tags_32, + sizeof(asn_DEF_prs_durationOfTwoPRS_BWA_Processing_r18_tags_32) + /sizeof(asn_DEF_prs_durationOfTwoPRS_BWA_Processing_r18_tags_32[0]) - 1, /* 1 */ + asn_DEF_prs_durationOfTwoPRS_BWA_Processing_r18_tags_32, /* Same as above */ + sizeof(asn_DEF_prs_durationOfTwoPRS_BWA_Processing_r18_tags_32) + /sizeof(asn_DEF_prs_durationOfTwoPRS_BWA_Processing_r18_tags_32[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_prs_durationOfTwoPRS_BWA_Processing_r18_32, + 2, /* Elements count */ + &asn_SPC_prs_durationOfTwoPRS_BWA_Processing_r18_specs_32 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs15_r18_value2enum_64[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs15_r18_enum2value_64[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs15_r18_specs_64 = { + asn_MAP_scs15_r18_value2enum_64, /* "tag" => N; sorted by tag */ + asn_MAP_scs15_r18_enum2value_64, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs15_r18_tags_64[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs15_r18_64 = { + "scs15-r18", + "scs15-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs15_r18_tags_64, + sizeof(asn_DEF_scs15_r18_tags_64) + /sizeof(asn_DEF_scs15_r18_tags_64[0]) - 1, /* 1 */ + asn_DEF_scs15_r18_tags_64, /* Same as above */ + sizeof(asn_DEF_scs15_r18_tags_64) + /sizeof(asn_DEF_scs15_r18_tags_64[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs15_r18_constr_64, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs15_r18_specs_64 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs30_r18_value2enum_76[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs30_r18_enum2value_76[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs30_r18_specs_76 = { + asn_MAP_scs30_r18_value2enum_76, /* "tag" => N; sorted by tag */ + asn_MAP_scs30_r18_enum2value_76, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs30_r18_tags_76[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs30_r18_76 = { + "scs30-r18", + "scs30-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs30_r18_tags_76, + sizeof(asn_DEF_scs30_r18_tags_76) + /sizeof(asn_DEF_scs30_r18_tags_76[0]) - 1, /* 1 */ + asn_DEF_scs30_r18_tags_76, /* Same as above */ + sizeof(asn_DEF_scs30_r18_tags_76) + /sizeof(asn_DEF_scs30_r18_tags_76[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs30_r18_constr_76, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs30_r18_specs_76 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs60_r18_value2enum_88[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs60_r18_enum2value_88[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs60_r18_specs_88 = { + asn_MAP_scs60_r18_value2enum_88, /* "tag" => N; sorted by tag */ + asn_MAP_scs60_r18_enum2value_88, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs60_r18_tags_88[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs60_r18_88 = { + "scs60-r18", + "scs60-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs60_r18_tags_88, + sizeof(asn_DEF_scs60_r18_tags_88) + /sizeof(asn_DEF_scs60_r18_tags_88[0]) - 1, /* 1 */ + asn_DEF_scs60_r18_tags_88, /* Same as above */ + sizeof(asn_DEF_scs60_r18_tags_88) + /sizeof(asn_DEF_scs60_r18_tags_88[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs60_r18_constr_88, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs60_r18_specs_88 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_63[] = { + { ATF_POINTER, 3, offsetof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18, scs15_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs15_r18_64, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs15-r18" + }, + { ATF_POINTER, 2, offsetof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18, scs30_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs30_r18_76, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs30-r18" + }, + { ATF_POINTER, 1, offsetof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18, scs60_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs60_r18_88, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs60-r18" + }, +}; +static const int asn_MAP_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_oms_63[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_tags_63[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_tag2el_63[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* scs15-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* scs30-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* scs60-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_specs_63 = { + sizeof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18), + offsetof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18, _asn_ctx), + asn_MAP_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_tag2el_63, + 3, /* Count of tags in the map */ + asn_MAP_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_oms_63, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_63 = { + "maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR1-r18", + "maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR1-r18", + &asn_OP_SEQUENCE, + asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_tags_63, + sizeof(asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_tags_63) + /sizeof(asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_tags_63[0]) - 1, /* 1 */ + asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_tags_63, /* Same as above */ + sizeof(asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_tags_63) + /sizeof(asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_tags_63[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_63, + 3, /* Elements count */ + &asn_SPC_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_specs_63 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs60_r18_value2enum_101[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs60_r18_enum2value_101[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs60_r18_specs_101 = { + asn_MAP_scs60_r18_value2enum_101, /* "tag" => N; sorted by tag */ + asn_MAP_scs60_r18_enum2value_101, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs60_r18_tags_101[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs60_r18_101 = { + "scs60-r18", + "scs60-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs60_r18_tags_101, + sizeof(asn_DEF_scs60_r18_tags_101) + /sizeof(asn_DEF_scs60_r18_tags_101[0]) - 1, /* 1 */ + asn_DEF_scs60_r18_tags_101, /* Same as above */ + sizeof(asn_DEF_scs60_r18_tags_101) + /sizeof(asn_DEF_scs60_r18_tags_101[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs60_r18_constr_101, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs60_r18_specs_101 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs120_r18_value2enum_113[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs120_r18_enum2value_113[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs120_r18_specs_113 = { + asn_MAP_scs120_r18_value2enum_113, /* "tag" => N; sorted by tag */ + asn_MAP_scs120_r18_enum2value_113, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs120_r18_tags_113[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs120_r18_113 = { + "scs120-r18", + "scs120-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs120_r18_tags_113, + sizeof(asn_DEF_scs120_r18_tags_113) + /sizeof(asn_DEF_scs120_r18_tags_113[0]) - 1, /* 1 */ + asn_DEF_scs120_r18_tags_113, /* Same as above */ + sizeof(asn_DEF_scs120_r18_tags_113) + /sizeof(asn_DEF_scs120_r18_tags_113[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs120_r18_constr_113, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs120_r18_specs_113 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_100[] = { + { ATF_POINTER, 2, offsetof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18, scs60_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs60_r18_101, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs60-r18" + }, + { ATF_POINTER, 1, offsetof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18, scs120_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs120_r18_113, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs120-r18" + }, +}; +static const int asn_MAP_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_oms_100[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_tags_100[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_tag2el_100[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* scs60-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* scs120-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_specs_100 = { + sizeof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18), + offsetof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18, _asn_ctx), + asn_MAP_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_tag2el_100, + 2, /* Count of tags in the map */ + asn_MAP_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_oms_100, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_100 = { + "maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR2-r18", + "maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR2-r18", + &asn_OP_SEQUENCE, + asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_tags_100, + sizeof(asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_tags_100) + /sizeof(asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_tags_100[0]) - 1, /* 1 */ + asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_tags_100, /* Same as above */ + sizeof(asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_tags_100) + /sizeof(asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_tags_100[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_100, + 2, /* Elements count */ + &asn_SPC_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_specs_100 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_PRS_BWA_TwoContiguousIntrabandInMG_r18_1[] = { + { ATF_POINTER, 4, offsetof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18, maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumOfTwoAggregatedDL-PRS-Bandwidth-FR1-r18" + }, + { ATF_POINTER, 3, offsetof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18, maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumOfTwoAggregatedDL-PRS-Bandwidth-FR2-r18" + }, + { ATF_POINTER, 2, offsetof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18, maximumOfDL_PRS_BandwidthPerPFL_FR1_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumOfDL-PRS-BandwidthPerPFL-FR1-r18" + }, + { ATF_POINTER, 1, offsetof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18, maximumOfDL_PRS_BandwidthPerPFL_FR2_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_24, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumOfDL-PRS-BandwidthPerPFL-FR2-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18, dl_PRS_BufferTypeOfBWA_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_PRS_BufferTypeOfBWA_r18_29, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-BufferTypeOfBWA-r18" + }, + { ATF_POINTER, 1, offsetof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18, prs_durationOfTwoPRS_BWA_Processing_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_prs_durationOfTwoPRS_BWA_Processing_r18_32, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-durationOfTwoPRS-BWA-Processing-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18, maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18_63, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR1-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18, maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18_100, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR2-r18" + }, +}; +static const int asn_MAP_PRS_BWA_TwoContiguousIntrabandInMG_r18_oms_1[] = { 0, 1, 2, 3, 5 }; +static const ber_tlv_tag_t asn_DEF_PRS_BWA_TwoContiguousIntrabandInMG_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PRS_BWA_TwoContiguousIntrabandInMG_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maximumOfTwoAggregatedDL-PRS-Bandwidth-FR1-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maximumOfTwoAggregatedDL-PRS-Bandwidth-FR2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* maximumOfDL-PRS-BandwidthPerPFL-FR1-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* maximumOfDL-PRS-BandwidthPerPFL-FR2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* dl-PRS-BufferTypeOfBWA-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* prs-durationOfTwoPRS-BWA-Processing-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR1-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR2-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PRS_BWA_TwoContiguousIntrabandInMG_r18_specs_1 = { + sizeof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18), + offsetof(struct PRS_BWA_TwoContiguousIntrabandInMG_r18, _asn_ctx), + asn_MAP_PRS_BWA_TwoContiguousIntrabandInMG_r18_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_PRS_BWA_TwoContiguousIntrabandInMG_r18_oms_1, /* Optional members */ + 5, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PRS_BWA_TwoContiguousIntrabandInMG_r18 = { + "PRS-BWA-TwoContiguousIntrabandInMG-r18", + "PRS-BWA-TwoContiguousIntrabandInMG-r18", + &asn_OP_SEQUENCE, + asn_DEF_PRS_BWA_TwoContiguousIntrabandInMG_r18_tags_1, + sizeof(asn_DEF_PRS_BWA_TwoContiguousIntrabandInMG_r18_tags_1) + /sizeof(asn_DEF_PRS_BWA_TwoContiguousIntrabandInMG_r18_tags_1[0]), /* 1 */ + asn_DEF_PRS_BWA_TwoContiguousIntrabandInMG_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_PRS_BWA_TwoContiguousIntrabandInMG_r18_tags_1) + /sizeof(asn_DEF_PRS_BWA_TwoContiguousIntrabandInMG_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PRS_BWA_TwoContiguousIntrabandInMG_r18_1, + 8, /* Elements count */ + &asn_SPC_PRS_BWA_TwoContiguousIntrabandInMG_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/PRS-BWA-TwoContiguousIntrabandInMG-r18.h b/asn.1/lpp_generated/PRS-BWA-TwoContiguousIntrabandInMG-r18.h new file mode 100644 index 00000000..999d0c05 --- /dev/null +++ b/asn.1/lpp_generated/PRS-BWA-TwoContiguousIntrabandInMG-r18.h @@ -0,0 +1,212 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _PRS_BWA_TwoContiguousIntrabandInMG_r18_H_ +#define _PRS_BWA_TwoContiguousIntrabandInMG_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18 { + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_mhz10 = 0, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_mhz20 = 1, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_mhz40 = 2, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_mhz50 = 3, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_mhz80 = 4, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_mhz100 = 5, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_mhz160 = 6, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_mhz200 = 7 +} e_PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18; +typedef enum PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18 { + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_mhz100 = 0, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_mhz200 = 1, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_mhz400 = 2, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_mhz800 = 3 +} e_PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18; +typedef enum PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR1_r18 { + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_mhz5 = 0, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_mhz10 = 1, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_mhz20 = 2, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_mhz40 = 3, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_mhz50 = 4, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_mhz80 = 5, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_mhz100 = 6 +} e_PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR1_r18; +typedef enum PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR2_r18 { + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_mhz50 = 0, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_mhz100 = 1, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_mhz200 = 2, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_mhz400 = 3 +} e_PRS_BWA_TwoContiguousIntrabandInMG_r18__maximumOfDL_PRS_BandwidthPerPFL_FR2_r18; +typedef enum PRS_BWA_TwoContiguousIntrabandInMG_r18__dl_PRS_BufferTypeOfBWA_r18 { + PRS_BWA_TwoContiguousIntrabandInMG_r18__dl_PRS_BufferTypeOfBWA_r18_type1 = 0, + PRS_BWA_TwoContiguousIntrabandInMG_r18__dl_PRS_BufferTypeOfBWA_r18_type2 = 1 +} e_PRS_BWA_TwoContiguousIntrabandInMG_r18__dl_PRS_BufferTypeOfBWA_r18; +typedef enum PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18 { + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_msDot125 = 0, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_msDot25 = 1, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_msDot5 = 2, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_ms1 = 3, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_ms2 = 4, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_ms4 = 5, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_ms6 = 6, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_ms8 = 7, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_ms12 = 8, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_ms16 = 9, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_ms20 = 10, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_ms25 = 11, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_ms30 = 12, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_ms32 = 13, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_ms35 = 14, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_ms40 = 15, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_ms45 = 16, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_ms50 = 17 +} e_PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18; +typedef enum PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18 { + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_ms8 = 0, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_ms16 = 1, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_ms20 = 2, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_ms30 = 3, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_ms40 = 4, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_ms80 = 5, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_ms160 = 6, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_ms320 = 7, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_ms640 = 8, + PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_ms1280 = 9 +} e_PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18__prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18; +typedef enum PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18 { + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n1 = 0, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n2 = 1, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n4 = 2, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n6 = 3, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n8 = 4, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n12 = 5, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n16 = 6, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n24 = 7, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n32 = 8, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n48 = 9, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18_n64 = 10 +} e_PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs15_r18; +typedef enum PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18 { + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n1 = 0, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n2 = 1, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n4 = 2, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n6 = 3, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n8 = 4, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n12 = 5, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n16 = 6, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n24 = 7, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n32 = 8, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n48 = 9, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18_n64 = 10 +} e_PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs30_r18; +typedef enum PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18 { + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n1 = 0, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n2 = 1, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n4 = 2, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n6 = 3, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n8 = 4, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n12 = 5, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n16 = 6, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n24 = 7, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n32 = 8, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n48 = 9, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18_n64 = 10 +} e_PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18__scs60_r18; +typedef enum PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18 { + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n1 = 0, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n2 = 1, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n4 = 2, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n6 = 3, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n8 = 4, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n12 = 5, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n16 = 6, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n24 = 7, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n32 = 8, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n48 = 9, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18_n64 = 10 +} e_PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs60_r18; +typedef enum PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18 { + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n1 = 0, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n2 = 1, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n4 = 2, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n6 = 3, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n8 = 4, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n12 = 5, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n16 = 6, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n24 = 7, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n32 = 8, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n48 = 9, + PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18_n64 = 10 +} e_PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18__scs120_r18; + +/* PRS-BWA-TwoContiguousIntrabandInMG-r18 */ +typedef struct PRS_BWA_TwoContiguousIntrabandInMG_r18 { + long *maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18; /* OPTIONAL */ + long *maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18; /* OPTIONAL */ + long *maximumOfDL_PRS_BandwidthPerPFL_FR1_r18; /* OPTIONAL */ + long *maximumOfDL_PRS_BandwidthPerPFL_FR2_r18; /* OPTIONAL */ + long dl_PRS_BufferTypeOfBWA_r18; + struct PRS_BWA_TwoContiguousIntrabandInMG_r18__prs_durationOfTwoPRS_BWA_Processing_r18 { + long prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18; + long prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *prs_durationOfTwoPRS_BWA_Processing_r18; + struct PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18 { + long *scs15_r18; /* OPTIONAL */ + long *scs30_r18; /* OPTIONAL */ + long *scs60_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR1_r18; + struct PRS_BWA_TwoContiguousIntrabandInMG_r18__maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18 { + long *scs60_r18; /* OPTIONAL */ + long *scs120_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } maxNumOfAggregatedDL_PRS_ResourcePerSlot_FR2_r18; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PRS_BWA_TwoContiguousIntrabandInMG_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR1_r18_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumOfTwoAggregatedDL_PRS_Bandwidth_FR2_r18_11; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR1_r18_16; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumOfDL_PRS_BandwidthPerPFL_FR2_r18_24; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_dl_PRS_BufferTypeOfBWA_r18_29; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsN_r18_33; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_prs_durationOfTwoPRS_BWA_ProcessingSymbolsT_r18_52; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs15_r18_64; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs30_r18_76; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs60_r18_88; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs60_r18_101; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs120_r18_113; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_PRS_BWA_TwoContiguousIntrabandInMG_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_PRS_BWA_TwoContiguousIntrabandInMG_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_PRS_BWA_TwoContiguousIntrabandInMG_r18_1[8]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PRS_BWA_TwoContiguousIntrabandInMG_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/PRS-Info-NB-r14.c b/asn.1/lpp_generated/PRS-Info-NB-r14.c new file mode 100644 index 00000000..f8e16736 --- /dev/null +++ b/asn.1/lpp_generated/PRS-Info-NB-r14.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PRS-Info-NB-r14.h" + +#include "NPRS-Info-r14.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PRS_Info_NB_r14_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 5 } /* (SIZE(1..5)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_PRS_Info_NB_r14_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NPRS_Info_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_PRS_Info_NB_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_PRS_Info_NB_r14_specs_1 = { + sizeof(struct PRS_Info_NB_r14), + offsetof(struct PRS_Info_NB_r14, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_PRS_Info_NB_r14 = { + "PRS-Info-NB-r14", + "PRS-Info-NB-r14", + &asn_OP_SEQUENCE_OF, + asn_DEF_PRS_Info_NB_r14_tags_1, + sizeof(asn_DEF_PRS_Info_NB_r14_tags_1) + /sizeof(asn_DEF_PRS_Info_NB_r14_tags_1[0]), /* 1 */ + asn_DEF_PRS_Info_NB_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_PRS_Info_NB_r14_tags_1) + /sizeof(asn_DEF_PRS_Info_NB_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PRS_Info_NB_r14_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_PRS_Info_NB_r14_1, + 1, /* Single element */ + &asn_SPC_PRS_Info_NB_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/PRS-Info-NB-r14.h b/asn.1/lpp_generated/PRS-Info-NB-r14.h similarity index 78% rename from asn.1/generated/PRS-Info-NB-r14.h rename to asn.1/lpp_generated/PRS-Info-NB-r14.h index fa899b9d..092796ef 100644 --- a/asn.1/generated/PRS-Info-NB-r14.h +++ b/asn.1/lpp_generated/PRS-Info-NB-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _PRS_Info_NB_r14_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_PRS_Info_NB_r14_constr_1; } #endif -/* Referred external types */ -#include "NPRS-Info-r14.h" - #endif /* _PRS_Info_NB_r14_H_ */ #include diff --git a/asn.1/lpp_generated/PRS-Info.c b/asn.1/lpp_generated/PRS-Info.c new file mode 100644 index 00000000..3fed9f1e --- /dev/null +++ b/asn.1/lpp_generated/PRS-Info.c @@ -0,0 +1,1390 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PRS-Info.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_po2_r9_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 2UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po4_r9_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 4UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po8_r9_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po16_r9_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 16UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po32_v1420_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 32UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po64_v1420_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 64UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po128_v1420_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 128UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po256_v1420_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 256UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po512_v1420_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 512UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_po1024_v1420_constraint_19(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 1024UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_NativeInteger_constraint_45(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nb2_r14_constraint_43(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nb4_r14_constraint_43(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size == 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_prsID_r14_constraint_31(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_add_numDL_Frames_r14_constraint_31(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 160L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_prs_ConfigurationIndex_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prs_Bandwidth_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_numDL_Frames_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po2_r9_constr_20 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po4_r9_constr_21 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po8_r9_constr_22 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po16_r9_constr_23 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po32_v1420_constr_25 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 32, 32 } /* (SIZE(32..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po64_v1420_constr_26 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 64, 64 } /* (SIZE(64..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po128_v1420_constr_27 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po256_v1420_constr_28 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 256, 256 } /* (SIZE(256..256)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po512_v1420_constr_29 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 512, 512 } /* (SIZE(512..512)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_po1024_v1420_constr_30 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 1024, 1024 } /* (SIZE(1024..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prs_MutingInfo_r9_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prsOccGroupLen_r14_constr_34 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 6 } /* (0..6,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_46 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nb4_r14_constr_45 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nb2_r14_constr_44 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nb4_r14_constr_45 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prsHoppingInfo_r14_constr_43 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_prsID_r14_constr_32 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_add_numDL_Frames_r14_constr_33 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 1, 160 } /* (1..160) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_prs_ConfigurationIndex_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_prs_Bandwidth_value2enum_2[] = { + { 0, 2, "n6" }, + { 1, 3, "n15" }, + { 2, 3, "n25" }, + { 3, 3, "n50" }, + { 4, 3, "n75" }, + { 5, 4, "n100" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_prs_Bandwidth_enum2value_2[] = { + 5, /* n100(5) */ + 1, /* n15(1) */ + 2, /* n25(2) */ + 3, /* n50(3) */ + 0, /* n6(0) */ + 4 /* n75(4) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_prs_Bandwidth_specs_2 = { + asn_MAP_prs_Bandwidth_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_prs_Bandwidth_enum2value_2, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 7, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_prs_Bandwidth_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prs_Bandwidth_2 = { + "prs-Bandwidth", + "prs-Bandwidth", + &asn_OP_NativeEnumerated, + asn_DEF_prs_Bandwidth_tags_2, + sizeof(asn_DEF_prs_Bandwidth_tags_2) + /sizeof(asn_DEF_prs_Bandwidth_tags_2[0]) - 1, /* 1 */ + asn_DEF_prs_Bandwidth_tags_2, /* Same as above */ + sizeof(asn_DEF_prs_Bandwidth_tags_2) + /sizeof(asn_DEF_prs_Bandwidth_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prs_Bandwidth_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_prs_Bandwidth_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_numDL_Frames_value2enum_11[] = { + { 0, 4, "sf-1" }, + { 1, 4, "sf-2" }, + { 2, 4, "sf-4" }, + { 3, 4, "sf-6" }, + { 4, 12, "sf-add-v1420" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_numDL_Frames_enum2value_11[] = { + 0, /* sf-1(0) */ + 1, /* sf-2(1) */ + 2, /* sf-4(2) */ + 3, /* sf-6(3) */ + 4 /* sf-add-v1420(4) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_numDL_Frames_specs_11 = { + asn_MAP_numDL_Frames_value2enum_11, /* "tag" => N; sorted by tag */ + asn_MAP_numDL_Frames_enum2value_11, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_numDL_Frames_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_numDL_Frames_11 = { + "numDL-Frames", + "numDL-Frames", + &asn_OP_NativeEnumerated, + asn_DEF_numDL_Frames_tags_11, + sizeof(asn_DEF_numDL_Frames_tags_11) + /sizeof(asn_DEF_numDL_Frames_tags_11[0]) - 1, /* 1 */ + asn_DEF_numDL_Frames_tags_11, /* Same as above */ + sizeof(asn_DEF_numDL_Frames_tags_11) + /sizeof(asn_DEF_numDL_Frames_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_numDL_Frames_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_numDL_Frames_specs_11 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_prs_MutingInfo_r9_19[] = { + { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po2_r9), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po2_r9_constr_20, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po2_r9_constraint_19 + }, + 0, 0, /* No default value */ + "po2-r9" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po4_r9), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po4_r9_constr_21, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po4_r9_constraint_19 + }, + 0, 0, /* No default value */ + "po4-r9" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po8_r9), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po8_r9_constr_22, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po8_r9_constraint_19 + }, + 0, 0, /* No default value */ + "po8-r9" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po16_r9), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po16_r9_constr_23, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po16_r9_constraint_19 + }, + 0, 0, /* No default value */ + "po16-r9" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po32_v1420), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po32_v1420_constr_25, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po32_v1420_constraint_19 + }, + 0, 0, /* No default value */ + "po32-v1420" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po64_v1420), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po64_v1420_constr_26, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po64_v1420_constraint_19 + }, + 0, 0, /* No default value */ + "po64-v1420" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po128_v1420), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po128_v1420_constr_27, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po128_v1420_constraint_19 + }, + 0, 0, /* No default value */ + "po128-v1420" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po256_v1420), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po256_v1420_constr_28, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po256_v1420_constraint_19 + }, + 0, 0, /* No default value */ + "po256-v1420" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po512_v1420), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po512_v1420_constr_29, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po512_v1420_constraint_19 + }, + 0, 0, /* No default value */ + "po512-v1420" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__prs_MutingInfo_r9, choice.po1024_v1420), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_po1024_v1420_constr_30, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_po1024_v1420_constraint_19 + }, + 0, 0, /* No default value */ + "po1024-v1420" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_prs_MutingInfo_r9_tag2el_19[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* po2-r9 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* po4-r9 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* po8-r9 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* po16-r9 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* po32-v1420 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* po64-v1420 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* po128-v1420 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* po256-v1420 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* po512-v1420 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* po1024-v1420 */ +}; +static asn_CHOICE_specifics_t asn_SPC_prs_MutingInfo_r9_specs_19 = { + sizeof(struct PRS_Info__prs_MutingInfo_r9), + offsetof(struct PRS_Info__prs_MutingInfo_r9, _asn_ctx), + offsetof(struct PRS_Info__prs_MutingInfo_r9, present), + sizeof(((struct PRS_Info__prs_MutingInfo_r9 *)0)->present), + asn_MAP_prs_MutingInfo_r9_tag2el_19, + 10, /* Count of tags in the map */ + 0, 0, + 4 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prs_MutingInfo_r9_19 = { + "prs-MutingInfo-r9", + "prs-MutingInfo-r9", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prs_MutingInfo_r9_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_prs_MutingInfo_r9_19, + 10, /* Elements count */ + &asn_SPC_prs_MutingInfo_r9_specs_19 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_prsOccGroupLen_r14_value2enum_34[] = { + { 0, 2, "g2" }, + { 1, 2, "g4" }, + { 2, 2, "g8" }, + { 3, 3, "g16" }, + { 4, 3, "g32" }, + { 5, 3, "g64" }, + { 6, 4, "g128" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_prsOccGroupLen_r14_enum2value_34[] = { + 6, /* g128(6) */ + 3, /* g16(3) */ + 0, /* g2(0) */ + 4, /* g32(4) */ + 1, /* g4(1) */ + 5, /* g64(5) */ + 2 /* g8(2) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_prsOccGroupLen_r14_specs_34 = { + asn_MAP_prsOccGroupLen_r14_value2enum_34, /* "tag" => N; sorted by tag */ + asn_MAP_prsOccGroupLen_r14_enum2value_34, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 8, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_prsOccGroupLen_r14_tags_34[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prsOccGroupLen_r14_34 = { + "prsOccGroupLen-r14", + "prsOccGroupLen-r14", + &asn_OP_NativeEnumerated, + asn_DEF_prsOccGroupLen_r14_tags_34, + sizeof(asn_DEF_prsOccGroupLen_r14_tags_34) + /sizeof(asn_DEF_prsOccGroupLen_r14_tags_34[0]) - 1, /* 1 */ + asn_DEF_prsOccGroupLen_r14_tags_34, /* Same as above */ + sizeof(asn_DEF_prsOccGroupLen_r14_tags_34) + /sizeof(asn_DEF_prsOccGroupLen_r14_tags_34[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prsOccGroupLen_r14_constr_34, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_prsOccGroupLen_r14_specs_34 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nb4_r14_45[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_46, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_NativeInteger_constraint_45 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_nb4_r14_tags_45[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_nb4_r14_specs_45 = { + sizeof(struct PRS_Info__ext1__prsHoppingInfo_r14__nb4_r14), + offsetof(struct PRS_Info__ext1__prsHoppingInfo_r14__nb4_r14, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nb4_r14_45 = { + "nb4-r14", + "nb4-r14", + &asn_OP_SEQUENCE_OF, + asn_DEF_nb4_r14_tags_45, + sizeof(asn_DEF_nb4_r14_tags_45) + /sizeof(asn_DEF_nb4_r14_tags_45[0]) - 1, /* 1 */ + asn_DEF_nb4_r14_tags_45, /* Same as above */ + sizeof(asn_DEF_nb4_r14_tags_45) + /sizeof(asn_DEF_nb4_r14_tags_45[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nb4_r14_constr_45, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_nb4_r14_45, + 1, /* Single element */ + &asn_SPC_nb4_r14_specs_45 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_prsHoppingInfo_r14_43[] = { + { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__ext1__prsHoppingInfo_r14, choice.nb2_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nb2_r14_constr_44, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nb2_r14_constraint_43 + }, + 0, 0, /* No default value */ + "nb2-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_Info__ext1__prsHoppingInfo_r14, choice.nb4_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_nb4_r14_45, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nb4_r14_constr_45, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nb4_r14_constraint_43 + }, + 0, 0, /* No default value */ + "nb4-r14" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_prsHoppingInfo_r14_tag2el_43[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nb2-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nb4-r14 */ +}; +static asn_CHOICE_specifics_t asn_SPC_prsHoppingInfo_r14_specs_43 = { + sizeof(struct PRS_Info__ext1__prsHoppingInfo_r14), + offsetof(struct PRS_Info__ext1__prsHoppingInfo_r14, _asn_ctx), + offsetof(struct PRS_Info__ext1__prsHoppingInfo_r14, present), + sizeof(((struct PRS_Info__ext1__prsHoppingInfo_r14 *)0)->present), + asn_MAP_prsHoppingInfo_r14_tag2el_43, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prsHoppingInfo_r14_43 = { + "prsHoppingInfo-r14", + "prsHoppingInfo-r14", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prsHoppingInfo_r14_constr_43, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_prsHoppingInfo_r14_43, + 2, /* Elements count */ + &asn_SPC_prsHoppingInfo_r14_specs_43 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_31[] = { + { ATF_POINTER, 4, offsetof(struct PRS_Info__ext1, prsID_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_prsID_r14_constr_32, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_prsID_r14_constraint_31 + }, + 0, 0, /* No default value */ + "prsID-r14" + }, + { ATF_POINTER, 3, offsetof(struct PRS_Info__ext1, add_numDL_Frames_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_add_numDL_Frames_r14_constr_33, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_add_numDL_Frames_r14_constraint_31 + }, + 0, 0, /* No default value */ + "add-numDL-Frames-r14" + }, + { ATF_POINTER, 2, offsetof(struct PRS_Info__ext1, prsOccGroupLen_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_prsOccGroupLen_r14_34, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prsOccGroupLen-r14" + }, + { ATF_POINTER, 1, offsetof(struct PRS_Info__ext1, prsHoppingInfo_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_prsHoppingInfo_r14_43, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prsHoppingInfo-r14" + }, +}; +static const int asn_MAP_ext1_oms_31[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_31[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_31[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* prsID-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* add-numDL-Frames-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* prsOccGroupLen-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* prsHoppingInfo-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_31 = { + sizeof(struct PRS_Info__ext1), + offsetof(struct PRS_Info__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_31, + 4, /* Count of tags in the map */ + asn_MAP_ext1_oms_31, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_31 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_31, + sizeof(asn_DEF_ext1_tags_31) + /sizeof(asn_DEF_ext1_tags_31[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_31, /* Same as above */ + sizeof(asn_DEF_ext1_tags_31) + /sizeof(asn_DEF_ext1_tags_31[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_31, + 4, /* Elements count */ + &asn_SPC_ext1_specs_31 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_PRS_Info_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PRS_Info, prs_Bandwidth), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_prs_Bandwidth_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-Bandwidth" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_Info, prs_ConfigurationIndex), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_prs_ConfigurationIndex_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_prs_ConfigurationIndex_constraint_1 + }, + 0, 0, /* No default value */ + "prs-ConfigurationIndex" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_Info, numDL_Frames), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_numDL_Frames_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "numDL-Frames" + }, + { ATF_POINTER, 2, offsetof(struct PRS_Info, prs_MutingInfo_r9), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_prs_MutingInfo_r9_19, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-MutingInfo-r9" + }, + { ATF_POINTER, 1, offsetof(struct PRS_Info, ext1), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext1_31, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_PRS_Info_oms_1[] = { 3, 4 }; +static const ber_tlv_tag_t asn_DEF_PRS_Info_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PRS_Info_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* prs-Bandwidth */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* prs-ConfigurationIndex */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* numDL-Frames */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* prs-MutingInfo-r9 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PRS_Info_specs_1 = { + sizeof(struct PRS_Info), + offsetof(struct PRS_Info, _asn_ctx), + asn_MAP_PRS_Info_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_PRS_Info_oms_1, /* Optional members */ + 0, 2, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PRS_Info = { + "PRS-Info", + "PRS-Info", + &asn_OP_SEQUENCE, + asn_DEF_PRS_Info_tags_1, + sizeof(asn_DEF_PRS_Info_tags_1) + /sizeof(asn_DEF_PRS_Info_tags_1[0]), /* 1 */ + asn_DEF_PRS_Info_tags_1, /* Same as above */ + sizeof(asn_DEF_PRS_Info_tags_1) + /sizeof(asn_DEF_PRS_Info_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PRS_Info_1, + 5, /* Elements count */ + &asn_SPC_PRS_Info_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/PRS-Info.h b/asn.1/lpp_generated/PRS-Info.h similarity index 92% rename from asn.1/generated/PRS-Info.h rename to asn.1/lpp_generated/PRS-Info.h index bb4ac606..8c55dae5 100644 --- a/asn.1/generated/PRS-Info.h +++ b/asn.1/lpp_generated/PRS-Info.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _PRS_Info_H_ @@ -110,9 +110,9 @@ typedef struct PRS_Info { asn_struct_ctx_t _asn_ctx; } *prs_MutingInfo_r9; struct PRS_Info__ext1 { - long *prsID_r14 /* OPTIONAL */; - long *add_numDL_Frames_r14 /* OPTIONAL */; - long *prsOccGroupLen_r14 /* OPTIONAL */; + long *prsID_r14; /* OPTIONAL */ + long *add_numDL_Frames_r14; /* OPTIONAL */ + long *prsOccGroupLen_r14; /* OPTIONAL */ struct PRS_Info__ext1__prsHoppingInfo_r14 { PRS_Info__ext1__prsHoppingInfo_r14_PR present; union PRS_Info__ext1__prsHoppingInfo_r14_u { diff --git a/asn.1/lpp_generated/PRS-ProcessingCapabilityOutsideMGinPPWperType-r17.c b/asn.1/lpp_generated/PRS-ProcessingCapabilityOutsideMGinPPWperType-r17.c new file mode 100644 index 00000000..4c61d16d --- /dev/null +++ b/asn.1/lpp_generated/PRS-ProcessingCapabilityOutsideMGinPPWperType-r17.c @@ -0,0 +1,1406 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PRS-ProcessingCapabilityOutsideMGinPPWperType-r17.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prsProcessingType_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ppw_dl_PRS_BufferType_r17_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ppw_durationOfPRS_ProcessingSymbolsN_r17_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 17 } /* (0..17) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ppw_durationOfPRS_ProcessingSymbolsT_r17_constr_30 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 12 } /* (0..12) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ppw_durationOfPRS_ProcessingSymbolsN2_r17_constr_45 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ppw_durationOfPRS_ProcessingSymbolsT2_r17_constr_57 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs15_r17_constr_63 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs30_r17_constr_75 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs60_r17_constr_87 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs120_r17_constr_99 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_fr1_constr_115 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_fr2_constr_123 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ppw_maxNumOfDL_Bandwidth_r17_constr_114 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_prsProcessingType_r17_value2enum_2[] = { + { 0, 6, "type1A" }, + { 1, 6, "type1B" }, + { 2, 5, "type2" } +}; +static const unsigned int asn_MAP_prsProcessingType_r17_enum2value_2[] = { + 0, /* type1A(0) */ + 1, /* type1B(1) */ + 2 /* type2(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_prsProcessingType_r17_specs_2 = { + asn_MAP_prsProcessingType_r17_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_prsProcessingType_r17_enum2value_2, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_prsProcessingType_r17_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prsProcessingType_r17_2 = { + "prsProcessingType-r17", + "prsProcessingType-r17", + &asn_OP_NativeEnumerated, + asn_DEF_prsProcessingType_r17_tags_2, + sizeof(asn_DEF_prsProcessingType_r17_tags_2) + /sizeof(asn_DEF_prsProcessingType_r17_tags_2[0]) - 1, /* 1 */ + asn_DEF_prsProcessingType_r17_tags_2, /* Same as above */ + sizeof(asn_DEF_prsProcessingType_r17_tags_2) + /sizeof(asn_DEF_prsProcessingType_r17_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prsProcessingType_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_prsProcessingType_r17_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_ppw_dl_PRS_BufferType_r17_value2enum_6[] = { + { 0, 5, "type1" }, + { 1, 5, "type2" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_ppw_dl_PRS_BufferType_r17_enum2value_6[] = { + 0, /* type1(0) */ + 1 /* type2(1) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ppw_dl_PRS_BufferType_r17_specs_6 = { + asn_MAP_ppw_dl_PRS_BufferType_r17_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_ppw_dl_PRS_BufferType_r17_enum2value_6, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ppw_dl_PRS_BufferType_r17_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ppw_dl_PRS_BufferType_r17_6 = { + "ppw-dl-PRS-BufferType-r17", + "ppw-dl-PRS-BufferType-r17", + &asn_OP_NativeEnumerated, + asn_DEF_ppw_dl_PRS_BufferType_r17_tags_6, + sizeof(asn_DEF_ppw_dl_PRS_BufferType_r17_tags_6) + /sizeof(asn_DEF_ppw_dl_PRS_BufferType_r17_tags_6[0]) - 1, /* 1 */ + asn_DEF_ppw_dl_PRS_BufferType_r17_tags_6, /* Same as above */ + sizeof(asn_DEF_ppw_dl_PRS_BufferType_r17_tags_6) + /sizeof(asn_DEF_ppw_dl_PRS_BufferType_r17_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ppw_dl_PRS_BufferType_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ppw_dl_PRS_BufferType_r17_specs_6 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_ppw_durationOfPRS_ProcessingSymbolsN_r17_value2enum_11[] = { + { 0, 8, "msDot125" }, + { 1, 7, "msDot25" }, + { 2, 6, "msDot5" }, + { 3, 3, "ms1" }, + { 4, 3, "ms2" }, + { 5, 3, "ms4" }, + { 6, 3, "ms6" }, + { 7, 3, "ms8" }, + { 8, 4, "ms12" }, + { 9, 4, "ms16" }, + { 10, 4, "ms20" }, + { 11, 4, "ms25" }, + { 12, 4, "ms30" }, + { 13, 4, "ms32" }, + { 14, 4, "ms35" }, + { 15, 4, "ms40" }, + { 16, 4, "ms45" }, + { 17, 4, "ms50" } +}; +static const unsigned int asn_MAP_ppw_durationOfPRS_ProcessingSymbolsN_r17_enum2value_11[] = { + 3, /* ms1(3) */ + 8, /* ms12(8) */ + 9, /* ms16(9) */ + 4, /* ms2(4) */ + 10, /* ms20(10) */ + 11, /* ms25(11) */ + 12, /* ms30(12) */ + 13, /* ms32(13) */ + 14, /* ms35(14) */ + 5, /* ms4(5) */ + 15, /* ms40(15) */ + 16, /* ms45(16) */ + 17, /* ms50(17) */ + 6, /* ms6(6) */ + 7, /* ms8(7) */ + 0, /* msDot125(0) */ + 1, /* msDot25(1) */ + 2 /* msDot5(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ppw_durationOfPRS_ProcessingSymbolsN_r17_specs_11 = { + asn_MAP_ppw_durationOfPRS_ProcessingSymbolsN_r17_value2enum_11, /* "tag" => N; sorted by tag */ + asn_MAP_ppw_durationOfPRS_ProcessingSymbolsN_r17_enum2value_11, /* N => "tag"; sorted by N */ + 18, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN_r17_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN_r17_11 = { + "ppw-durationOfPRS-ProcessingSymbolsN-r17", + "ppw-durationOfPRS-ProcessingSymbolsN-r17", + &asn_OP_NativeEnumerated, + asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN_r17_tags_11, + sizeof(asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN_r17_tags_11) + /sizeof(asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN_r17_tags_11[0]) - 1, /* 1 */ + asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN_r17_tags_11, /* Same as above */ + sizeof(asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN_r17_tags_11) + /sizeof(asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN_r17_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ppw_durationOfPRS_ProcessingSymbolsN_r17_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ppw_durationOfPRS_ProcessingSymbolsN_r17_specs_11 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_ppw_durationOfPRS_ProcessingSymbolsT_r17_value2enum_30[] = { + { 0, 3, "ms1" }, + { 1, 3, "ms2" }, + { 2, 3, "ms4" }, + { 3, 3, "ms8" }, + { 4, 4, "ms16" }, + { 5, 4, "ms20" }, + { 6, 4, "ms30" }, + { 7, 4, "ms40" }, + { 8, 4, "ms80" }, + { 9, 5, "ms160" }, + { 10, 5, "ms320" }, + { 11, 5, "ms640" }, + { 12, 6, "ms1280" } +}; +static const unsigned int asn_MAP_ppw_durationOfPRS_ProcessingSymbolsT_r17_enum2value_30[] = { + 0, /* ms1(0) */ + 12, /* ms1280(12) */ + 4, /* ms16(4) */ + 9, /* ms160(9) */ + 1, /* ms2(1) */ + 5, /* ms20(5) */ + 6, /* ms30(6) */ + 10, /* ms320(10) */ + 2, /* ms4(2) */ + 7, /* ms40(7) */ + 11, /* ms640(11) */ + 3, /* ms8(3) */ + 8 /* ms80(8) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ppw_durationOfPRS_ProcessingSymbolsT_r17_specs_30 = { + asn_MAP_ppw_durationOfPRS_ProcessingSymbolsT_r17_value2enum_30, /* "tag" => N; sorted by tag */ + asn_MAP_ppw_durationOfPRS_ProcessingSymbolsT_r17_enum2value_30, /* N => "tag"; sorted by N */ + 13, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT_r17_tags_30[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT_r17_30 = { + "ppw-durationOfPRS-ProcessingSymbolsT-r17", + "ppw-durationOfPRS-ProcessingSymbolsT-r17", + &asn_OP_NativeEnumerated, + asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT_r17_tags_30, + sizeof(asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT_r17_tags_30) + /sizeof(asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT_r17_tags_30[0]) - 1, /* 1 */ + asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT_r17_tags_30, /* Same as above */ + sizeof(asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT_r17_tags_30) + /sizeof(asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT_r17_tags_30[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ppw_durationOfPRS_ProcessingSymbolsT_r17_constr_30, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ppw_durationOfPRS_ProcessingSymbolsT_r17_specs_30 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ppw_durationOfPRS_Processing1_r17_10[] = { + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17, ppw_durationOfPRS_ProcessingSymbolsN_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN_r17_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ppw-durationOfPRS-ProcessingSymbolsN-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17, ppw_durationOfPRS_ProcessingSymbolsT_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT_r17_30, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ppw-durationOfPRS-ProcessingSymbolsT-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_ppw_durationOfPRS_Processing1_r17_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ppw_durationOfPRS_Processing1_r17_tag2el_10[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ppw-durationOfPRS-ProcessingSymbolsN-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ppw-durationOfPRS-ProcessingSymbolsT-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ppw_durationOfPRS_Processing1_r17_specs_10 = { + sizeof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17), + offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17, _asn_ctx), + asn_MAP_ppw_durationOfPRS_Processing1_r17_tag2el_10, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ppw_durationOfPRS_Processing1_r17_10 = { + "ppw-durationOfPRS-Processing1-r17", + "ppw-durationOfPRS-Processing1-r17", + &asn_OP_SEQUENCE, + asn_DEF_ppw_durationOfPRS_Processing1_r17_tags_10, + sizeof(asn_DEF_ppw_durationOfPRS_Processing1_r17_tags_10) + /sizeof(asn_DEF_ppw_durationOfPRS_Processing1_r17_tags_10[0]) - 1, /* 1 */ + asn_DEF_ppw_durationOfPRS_Processing1_r17_tags_10, /* Same as above */ + sizeof(asn_DEF_ppw_durationOfPRS_Processing1_r17_tags_10) + /sizeof(asn_DEF_ppw_durationOfPRS_Processing1_r17_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ppw_durationOfPRS_Processing1_r17_10, + 2, /* Elements count */ + &asn_SPC_ppw_durationOfPRS_Processing1_r17_specs_10 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_ppw_durationOfPRS_ProcessingSymbolsN2_r17_value2enum_45[] = { + { 0, 8, "msDot125" }, + { 1, 7, "msDot25" }, + { 2, 6, "msDot5" }, + { 3, 3, "ms1" }, + { 4, 3, "ms2" }, + { 5, 3, "ms3" }, + { 6, 3, "ms4" }, + { 7, 3, "ms5" }, + { 8, 3, "ms6" }, + { 9, 3, "ms8" }, + { 10, 4, "ms12" } +}; +static const unsigned int asn_MAP_ppw_durationOfPRS_ProcessingSymbolsN2_r17_enum2value_45[] = { + 3, /* ms1(3) */ + 10, /* ms12(10) */ + 4, /* ms2(4) */ + 5, /* ms3(5) */ + 6, /* ms4(6) */ + 7, /* ms5(7) */ + 8, /* ms6(8) */ + 9, /* ms8(9) */ + 0, /* msDot125(0) */ + 1, /* msDot25(1) */ + 2 /* msDot5(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ppw_durationOfPRS_ProcessingSymbolsN2_r17_specs_45 = { + asn_MAP_ppw_durationOfPRS_ProcessingSymbolsN2_r17_value2enum_45, /* "tag" => N; sorted by tag */ + asn_MAP_ppw_durationOfPRS_ProcessingSymbolsN2_r17_enum2value_45, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN2_r17_tags_45[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN2_r17_45 = { + "ppw-durationOfPRS-ProcessingSymbolsN2-r17", + "ppw-durationOfPRS-ProcessingSymbolsN2-r17", + &asn_OP_NativeEnumerated, + asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN2_r17_tags_45, + sizeof(asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN2_r17_tags_45) + /sizeof(asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN2_r17_tags_45[0]) - 1, /* 1 */ + asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN2_r17_tags_45, /* Same as above */ + sizeof(asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN2_r17_tags_45) + /sizeof(asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN2_r17_tags_45[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ppw_durationOfPRS_ProcessingSymbolsN2_r17_constr_45, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ppw_durationOfPRS_ProcessingSymbolsN2_r17_specs_45 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_ppw_durationOfPRS_ProcessingSymbolsT2_r17_value2enum_57[] = { + { 0, 3, "ms4" }, + { 1, 3, "ms5" }, + { 2, 3, "ms6" }, + { 3, 3, "ms8" } +}; +static const unsigned int asn_MAP_ppw_durationOfPRS_ProcessingSymbolsT2_r17_enum2value_57[] = { + 0, /* ms4(0) */ + 1, /* ms5(1) */ + 2, /* ms6(2) */ + 3 /* ms8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ppw_durationOfPRS_ProcessingSymbolsT2_r17_specs_57 = { + asn_MAP_ppw_durationOfPRS_ProcessingSymbolsT2_r17_value2enum_57, /* "tag" => N; sorted by tag */ + asn_MAP_ppw_durationOfPRS_ProcessingSymbolsT2_r17_enum2value_57, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT2_r17_tags_57[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT2_r17_57 = { + "ppw-durationOfPRS-ProcessingSymbolsT2-r17", + "ppw-durationOfPRS-ProcessingSymbolsT2-r17", + &asn_OP_NativeEnumerated, + asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT2_r17_tags_57, + sizeof(asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT2_r17_tags_57) + /sizeof(asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT2_r17_tags_57[0]) - 1, /* 1 */ + asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT2_r17_tags_57, /* Same as above */ + sizeof(asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT2_r17_tags_57) + /sizeof(asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT2_r17_tags_57[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ppw_durationOfPRS_ProcessingSymbolsT2_r17_constr_57, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ppw_durationOfPRS_ProcessingSymbolsT2_r17_specs_57 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ppw_durationOfPRS_Processing2_r17_44[] = { + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17, ppw_durationOfPRS_ProcessingSymbolsN2_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN2_r17_45, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ppw-durationOfPRS-ProcessingSymbolsN2-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17, ppw_durationOfPRS_ProcessingSymbolsT2_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT2_r17_57, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ppw-durationOfPRS-ProcessingSymbolsT2-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_ppw_durationOfPRS_Processing2_r17_tags_44[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ppw_durationOfPRS_Processing2_r17_tag2el_44[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ppw-durationOfPRS-ProcessingSymbolsN2-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ppw-durationOfPRS-ProcessingSymbolsT2-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ppw_durationOfPRS_Processing2_r17_specs_44 = { + sizeof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17), + offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17, _asn_ctx), + asn_MAP_ppw_durationOfPRS_Processing2_r17_tag2el_44, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ppw_durationOfPRS_Processing2_r17_44 = { + "ppw-durationOfPRS-Processing2-r17", + "ppw-durationOfPRS-Processing2-r17", + &asn_OP_SEQUENCE, + asn_DEF_ppw_durationOfPRS_Processing2_r17_tags_44, + sizeof(asn_DEF_ppw_durationOfPRS_Processing2_r17_tags_44) + /sizeof(asn_DEF_ppw_durationOfPRS_Processing2_r17_tags_44[0]) - 1, /* 1 */ + asn_DEF_ppw_durationOfPRS_Processing2_r17_tags_44, /* Same as above */ + sizeof(asn_DEF_ppw_durationOfPRS_Processing2_r17_tags_44) + /sizeof(asn_DEF_ppw_durationOfPRS_Processing2_r17_tags_44[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ppw_durationOfPRS_Processing2_r17_44, + 2, /* Elements count */ + &asn_SPC_ppw_durationOfPRS_Processing2_r17_specs_44 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs15_r17_value2enum_63[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs15_r17_enum2value_63[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs15_r17_specs_63 = { + asn_MAP_scs15_r17_value2enum_63, /* "tag" => N; sorted by tag */ + asn_MAP_scs15_r17_enum2value_63, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs15_r17_tags_63[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs15_r17_63 = { + "scs15-r17", + "scs15-r17", + &asn_OP_NativeEnumerated, + asn_DEF_scs15_r17_tags_63, + sizeof(asn_DEF_scs15_r17_tags_63) + /sizeof(asn_DEF_scs15_r17_tags_63[0]) - 1, /* 1 */ + asn_DEF_scs15_r17_tags_63, /* Same as above */ + sizeof(asn_DEF_scs15_r17_tags_63) + /sizeof(asn_DEF_scs15_r17_tags_63[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs15_r17_constr_63, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs15_r17_specs_63 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs30_r17_value2enum_75[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs30_r17_enum2value_75[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs30_r17_specs_75 = { + asn_MAP_scs30_r17_value2enum_75, /* "tag" => N; sorted by tag */ + asn_MAP_scs30_r17_enum2value_75, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs30_r17_tags_75[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs30_r17_75 = { + "scs30-r17", + "scs30-r17", + &asn_OP_NativeEnumerated, + asn_DEF_scs30_r17_tags_75, + sizeof(asn_DEF_scs30_r17_tags_75) + /sizeof(asn_DEF_scs30_r17_tags_75[0]) - 1, /* 1 */ + asn_DEF_scs30_r17_tags_75, /* Same as above */ + sizeof(asn_DEF_scs30_r17_tags_75) + /sizeof(asn_DEF_scs30_r17_tags_75[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs30_r17_constr_75, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs30_r17_specs_75 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs60_r17_value2enum_87[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs60_r17_enum2value_87[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs60_r17_specs_87 = { + asn_MAP_scs60_r17_value2enum_87, /* "tag" => N; sorted by tag */ + asn_MAP_scs60_r17_enum2value_87, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs60_r17_tags_87[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs60_r17_87 = { + "scs60-r17", + "scs60-r17", + &asn_OP_NativeEnumerated, + asn_DEF_scs60_r17_tags_87, + sizeof(asn_DEF_scs60_r17_tags_87) + /sizeof(asn_DEF_scs60_r17_tags_87[0]) - 1, /* 1 */ + asn_DEF_scs60_r17_tags_87, /* Same as above */ + sizeof(asn_DEF_scs60_r17_tags_87) + /sizeof(asn_DEF_scs60_r17_tags_87[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs60_r17_constr_87, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs60_r17_specs_87 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs120_r17_value2enum_99[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs120_r17_enum2value_99[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs120_r17_specs_99 = { + asn_MAP_scs120_r17_value2enum_99, /* "tag" => N; sorted by tag */ + asn_MAP_scs120_r17_enum2value_99, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs120_r17_tags_99[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs120_r17_99 = { + "scs120-r17", + "scs120-r17", + &asn_OP_NativeEnumerated, + asn_DEF_scs120_r17_tags_99, + sizeof(asn_DEF_scs120_r17_tags_99) + /sizeof(asn_DEF_scs120_r17_tags_99[0]) - 1, /* 1 */ + asn_DEF_scs120_r17_tags_99, /* Same as above */ + sizeof(asn_DEF_scs120_r17_tags_99) + /sizeof(asn_DEF_scs120_r17_tags_99[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs120_r17_constr_99, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs120_r17_specs_99 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17_62[] = { + { ATF_POINTER, 4, offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17, scs15_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs15_r17_63, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs15-r17" + }, + { ATF_POINTER, 3, offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17, scs30_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs30_r17_75, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs30-r17" + }, + { ATF_POINTER, 2, offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17, scs60_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs60_r17_87, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs60-r17" + }, + { ATF_POINTER, 1, offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17, scs120_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs120_r17_99, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs120-r17" + }, +}; +static const int asn_MAP_ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17_oms_62[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17_tags_62[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17_tag2el_62[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* scs15-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* scs30-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* scs60-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* scs120-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17_specs_62 = { + sizeof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17), + offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17, _asn_ctx), + asn_MAP_ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17_tag2el_62, + 4, /* Count of tags in the map */ + asn_MAP_ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17_oms_62, /* Optional members */ + 4, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17_62 = { + "ppw-maxNumOfDL-PRS-ResProcessedPerSlot-r17", + "ppw-maxNumOfDL-PRS-ResProcessedPerSlot-r17", + &asn_OP_SEQUENCE, + asn_DEF_ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17_tags_62, + sizeof(asn_DEF_ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17_tags_62) + /sizeof(asn_DEF_ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17_tags_62[0]) - 1, /* 1 */ + asn_DEF_ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17_tags_62, /* Same as above */ + sizeof(asn_DEF_ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17_tags_62) + /sizeof(asn_DEF_ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17_tags_62[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17_62, + 4, /* Elements count */ + &asn_SPC_ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17_specs_62 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_fr1_value2enum_115[] = { + { 0, 4, "mhz5" }, + { 1, 5, "mhz10" }, + { 2, 5, "mhz20" }, + { 3, 5, "mhz40" }, + { 4, 5, "mhz50" }, + { 5, 5, "mhz80" }, + { 6, 6, "mhz100" } +}; +static const unsigned int asn_MAP_fr1_enum2value_115[] = { + 1, /* mhz10(1) */ + 6, /* mhz100(6) */ + 2, /* mhz20(2) */ + 3, /* mhz40(3) */ + 0, /* mhz5(0) */ + 4, /* mhz50(4) */ + 5 /* mhz80(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_fr1_specs_115 = { + asn_MAP_fr1_value2enum_115, /* "tag" => N; sorted by tag */ + asn_MAP_fr1_enum2value_115, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_fr1_tags_115[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fr1_115 = { + "fr1", + "fr1", + &asn_OP_NativeEnumerated, + asn_DEF_fr1_tags_115, + sizeof(asn_DEF_fr1_tags_115) + /sizeof(asn_DEF_fr1_tags_115[0]) - 1, /* 1 */ + asn_DEF_fr1_tags_115, /* Same as above */ + sizeof(asn_DEF_fr1_tags_115) + /sizeof(asn_DEF_fr1_tags_115[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_fr1_constr_115, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_fr1_specs_115 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_fr2_value2enum_123[] = { + { 0, 5, "mhz50" }, + { 1, 6, "mhz100" }, + { 2, 6, "mhz200" }, + { 3, 6, "mhz400" } +}; +static const unsigned int asn_MAP_fr2_enum2value_123[] = { + 1, /* mhz100(1) */ + 2, /* mhz200(2) */ + 3, /* mhz400(3) */ + 0 /* mhz50(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_fr2_specs_123 = { + asn_MAP_fr2_value2enum_123, /* "tag" => N; sorted by tag */ + asn_MAP_fr2_enum2value_123, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_fr2_tags_123[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fr2_123 = { + "fr2", + "fr2", + &asn_OP_NativeEnumerated, + asn_DEF_fr2_tags_123, + sizeof(asn_DEF_fr2_tags_123) + /sizeof(asn_DEF_fr2_tags_123[0]) - 1, /* 1 */ + asn_DEF_fr2_tags_123, /* Same as above */ + sizeof(asn_DEF_fr2_tags_123) + /sizeof(asn_DEF_fr2_tags_123[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_fr2_constr_123, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_fr2_specs_123 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ppw_maxNumOfDL_Bandwidth_r17_114[] = { + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17, choice.fr1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_fr1_115, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fr1" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17, choice.fr2), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_fr2_123, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fr2" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_ppw_maxNumOfDL_Bandwidth_r17_tag2el_114[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fr1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* fr2 */ +}; +static asn_CHOICE_specifics_t asn_SPC_ppw_maxNumOfDL_Bandwidth_r17_specs_114 = { + sizeof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17), + offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17, _asn_ctx), + offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17, present), + sizeof(((struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17 *)0)->present), + asn_MAP_ppw_maxNumOfDL_Bandwidth_r17_tag2el_114, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ppw_maxNumOfDL_Bandwidth_r17_114 = { + "ppw-maxNumOfDL-Bandwidth-r17", + "ppw-maxNumOfDL-Bandwidth-r17", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ppw_maxNumOfDL_Bandwidth_r17_constr_114, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_ppw_maxNumOfDL_Bandwidth_r17_114, + 2, /* Elements count */ + &asn_SPC_ppw_maxNumOfDL_Bandwidth_r17_specs_114 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_113[] = { + { ATF_POINTER, 1, offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1, ppw_maxNumOfDL_Bandwidth_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_ppw_maxNumOfDL_Bandwidth_r17_114, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ppw-maxNumOfDL-Bandwidth-r17" + }, +}; +static const int asn_MAP_ext1_oms_113[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_113[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_113[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ppw-maxNumOfDL-Bandwidth-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_113 = { + sizeof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1), + offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_113, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_113, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_113 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_113, + sizeof(asn_DEF_ext1_tags_113) + /sizeof(asn_DEF_ext1_tags_113[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_113, /* Same as above */ + sizeof(asn_DEF_ext1_tags_113) + /sizeof(asn_DEF_ext1_tags_113[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_113, + 1, /* Elements count */ + &asn_SPC_ext1_specs_113 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17, prsProcessingType_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_prsProcessingType_r17_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prsProcessingType-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17, ppw_dl_PRS_BufferType_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ppw_dl_PRS_BufferType_r17_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ppw-dl-PRS-BufferType-r17" + }, + { ATF_POINTER, 2, offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17, ppw_durationOfPRS_Processing1_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ppw_durationOfPRS_Processing1_r17_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ppw-durationOfPRS-Processing1-r17" + }, + { ATF_POINTER, 1, offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17, ppw_durationOfPRS_Processing2_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ppw_durationOfPRS_Processing2_r17_44, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ppw-durationOfPRS-Processing2-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17, ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17_62, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ppw-maxNumOfDL-PRS-ResProcessedPerSlot-r17" + }, + { ATF_POINTER, 1, offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17, ext1), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext1_113, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_oms_1[] = { 2, 3, 5 }; +static const ber_tlv_tag_t asn_DEF_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* prsProcessingType-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ppw-dl-PRS-BufferType-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ppw-durationOfPRS-Processing1-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ppw-durationOfPRS-Processing2-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ppw-maxNumOfDL-PRS-ResProcessedPerSlot-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_specs_1 = { + sizeof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17), + offsetof(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17, _asn_ctx), + asn_MAP_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_oms_1, /* Optional members */ + 2, 1, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17 = { + "PRS-ProcessingCapabilityOutsideMGinPPWperType-r17", + "PRS-ProcessingCapabilityOutsideMGinPPWperType-r17", + &asn_OP_SEQUENCE, + asn_DEF_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_tags_1, + sizeof(asn_DEF_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_tags_1) + /sizeof(asn_DEF_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_tags_1[0]), /* 1 */ + asn_DEF_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_tags_1) + /sizeof(asn_DEF_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_1, + 6, /* Elements count */ + &asn_SPC_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/PRS-ProcessingCapabilityOutsideMGinPPWperType-r17.h b/asn.1/lpp_generated/PRS-ProcessingCapabilityOutsideMGinPPWperType-r17.h new file mode 100644 index 00000000..72d9d0a6 --- /dev/null +++ b/asn.1/lpp_generated/PRS-ProcessingCapabilityOutsideMGinPPWperType-r17.h @@ -0,0 +1,240 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_H_ +#define _PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__prsProcessingType_r17 { + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__prsProcessingType_r17_type1A = 0, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__prsProcessingType_r17_type1B = 1, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__prsProcessingType_r17_type2 = 2 +} e_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__prsProcessingType_r17; +typedef enum PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_dl_PRS_BufferType_r17 { + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_dl_PRS_BufferType_r17_type1 = 0, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_dl_PRS_BufferType_r17_type2 = 1 + /* + * Enumeration is extensible + */ +} e_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_dl_PRS_BufferType_r17; +typedef enum PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17 { + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17_msDot125 = 0, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17_msDot25 = 1, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17_msDot5 = 2, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17_ms1 = 3, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17_ms2 = 4, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17_ms4 = 5, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17_ms6 = 6, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17_ms8 = 7, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17_ms12 = 8, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17_ms16 = 9, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17_ms20 = 10, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17_ms25 = 11, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17_ms30 = 12, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17_ms32 = 13, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17_ms35 = 14, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17_ms40 = 15, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17_ms45 = 16, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17_ms50 = 17 +} e_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsN_r17; +typedef enum PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsT_r17 { + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsT_r17_ms1 = 0, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsT_r17_ms2 = 1, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsT_r17_ms4 = 2, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsT_r17_ms8 = 3, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsT_r17_ms16 = 4, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsT_r17_ms20 = 5, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsT_r17_ms30 = 6, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsT_r17_ms40 = 7, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsT_r17_ms80 = 8, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsT_r17_ms160 = 9, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsT_r17_ms320 = 10, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsT_r17_ms640 = 11, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsT_r17_ms1280 = 12 +} e_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17__ppw_durationOfPRS_ProcessingSymbolsT_r17; +typedef enum PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17__ppw_durationOfPRS_ProcessingSymbolsN2_r17 { + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17__ppw_durationOfPRS_ProcessingSymbolsN2_r17_msDot125 = 0, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17__ppw_durationOfPRS_ProcessingSymbolsN2_r17_msDot25 = 1, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17__ppw_durationOfPRS_ProcessingSymbolsN2_r17_msDot5 = 2, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17__ppw_durationOfPRS_ProcessingSymbolsN2_r17_ms1 = 3, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17__ppw_durationOfPRS_ProcessingSymbolsN2_r17_ms2 = 4, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17__ppw_durationOfPRS_ProcessingSymbolsN2_r17_ms3 = 5, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17__ppw_durationOfPRS_ProcessingSymbolsN2_r17_ms4 = 6, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17__ppw_durationOfPRS_ProcessingSymbolsN2_r17_ms5 = 7, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17__ppw_durationOfPRS_ProcessingSymbolsN2_r17_ms6 = 8, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17__ppw_durationOfPRS_ProcessingSymbolsN2_r17_ms8 = 9, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17__ppw_durationOfPRS_ProcessingSymbolsN2_r17_ms12 = 10 +} e_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17__ppw_durationOfPRS_ProcessingSymbolsN2_r17; +typedef enum PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17__ppw_durationOfPRS_ProcessingSymbolsT2_r17 { + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17__ppw_durationOfPRS_ProcessingSymbolsT2_r17_ms4 = 0, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17__ppw_durationOfPRS_ProcessingSymbolsT2_r17_ms5 = 1, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17__ppw_durationOfPRS_ProcessingSymbolsT2_r17_ms6 = 2, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17__ppw_durationOfPRS_ProcessingSymbolsT2_r17_ms8 = 3 +} e_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17__ppw_durationOfPRS_ProcessingSymbolsT2_r17; +typedef enum PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs15_r17 { + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs15_r17_n1 = 0, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs15_r17_n2 = 1, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs15_r17_n4 = 2, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs15_r17_n6 = 3, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs15_r17_n8 = 4, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs15_r17_n12 = 5, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs15_r17_n16 = 6, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs15_r17_n24 = 7, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs15_r17_n32 = 8, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs15_r17_n48 = 9, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs15_r17_n64 = 10 +} e_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs15_r17; +typedef enum PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs30_r17 { + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs30_r17_n1 = 0, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs30_r17_n2 = 1, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs30_r17_n4 = 2, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs30_r17_n6 = 3, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs30_r17_n8 = 4, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs30_r17_n12 = 5, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs30_r17_n16 = 6, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs30_r17_n24 = 7, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs30_r17_n32 = 8, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs30_r17_n48 = 9, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs30_r17_n64 = 10 +} e_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs30_r17; +typedef enum PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs60_r17 { + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs60_r17_n1 = 0, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs60_r17_n2 = 1, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs60_r17_n4 = 2, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs60_r17_n6 = 3, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs60_r17_n8 = 4, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs60_r17_n12 = 5, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs60_r17_n16 = 6, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs60_r17_n24 = 7, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs60_r17_n32 = 8, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs60_r17_n48 = 9, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs60_r17_n64 = 10 +} e_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs60_r17; +typedef enum PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs120_r17 { + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs120_r17_n1 = 0, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs120_r17_n2 = 1, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs120_r17_n4 = 2, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs120_r17_n6 = 3, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs120_r17_n8 = 4, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs120_r17_n12 = 5, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs120_r17_n16 = 6, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs120_r17_n24 = 7, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs120_r17_n32 = 8, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs120_r17_n48 = 9, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs120_r17_n64 = 10 +} e_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17__scs120_r17; +typedef enum PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17_PR { + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17_PR_NOTHING, /* No components present */ + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17_PR_fr1, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17_PR_fr2 +} PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17_PR; +typedef enum PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17__fr1 { + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17__fr1_mhz5 = 0, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17__fr1_mhz10 = 1, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17__fr1_mhz20 = 2, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17__fr1_mhz40 = 3, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17__fr1_mhz50 = 4, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17__fr1_mhz80 = 5, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17__fr1_mhz100 = 6 +} e_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17__fr1; +typedef enum PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17__fr2 { + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17__fr2_mhz50 = 0, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17__fr2_mhz100 = 1, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17__fr2_mhz200 = 2, + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17__fr2_mhz400 = 3 +} e_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17__fr2; + +/* PRS-ProcessingCapabilityOutsideMGinPPWperType-r17 */ +typedef struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17 { + long prsProcessingType_r17; + long ppw_dl_PRS_BufferType_r17; + struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing1_r17 { + long ppw_durationOfPRS_ProcessingSymbolsN_r17; + long ppw_durationOfPRS_ProcessingSymbolsT_r17; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ppw_durationOfPRS_Processing1_r17; + struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_durationOfPRS_Processing2_r17 { + long ppw_durationOfPRS_ProcessingSymbolsN2_r17; + long ppw_durationOfPRS_ProcessingSymbolsT2_r17; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ppw_durationOfPRS_Processing2_r17; + struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17 { + long *scs15_r17; /* OPTIONAL */ + long *scs30_r17; /* OPTIONAL */ + long *scs60_r17; /* OPTIONAL */ + long *scs120_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } ppw_maxNumOfDL_PRS_ResProcessedPerSlot_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1 { + struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17 { + PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17_PR present; + union PRS_ProcessingCapabilityOutsideMGinPPWperType_r17__ext1__ppw_maxNumOfDL_Bandwidth_r17_u { + long fr1; + long fr2; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ppw_maxNumOfDL_Bandwidth_r17; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_prsProcessingType_r17_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_ppw_dl_PRS_BufferType_r17_6; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN_r17_11; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT_r17_30; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_ppw_durationOfPRS_ProcessingSymbolsN2_r17_45; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_ppw_durationOfPRS_ProcessingSymbolsT2_r17_57; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs15_r17_63; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs30_r17_75; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs60_r17_87; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs120_r17_99; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_fr1_115; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_fr2_123; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_1[6]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PRS_ProcessingCapabilityOutsideMGinPPWperType_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/PRS-ProcessingCapabilityPerBand-r16.c b/asn.1/lpp_generated/PRS-ProcessingCapabilityPerBand-r16.c new file mode 100644 index 00000000..fba654e3 --- /dev/null +++ b/asn.1/lpp_generated/PRS-ProcessingCapabilityPerBand-r16.c @@ -0,0 +1,4993 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PRS-ProcessingCapabilityPerBand-r16.h" + +#include "PRS-ProcessingCapabilityOutsideMGinPPWperType-r17.h" +#include "PRS-BWA-TwoContiguousIntrabandInMG-r18.h" +#include "PRS-BWA-ThreeContiguousIntrabandInMG-r18.h" +#include "DL-PRS-MeasurementWithRxFH-RRC-Connected-r18.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_prs_ProcessingCapabilityOutsideMGinPPW_r17_constraint_110(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_fr1_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_fr2_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportedBandwidthPRS_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_BufferType_r16_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_durationOfPRS_ProcessingSymbols_r16_constr_23 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 17 } /* (0..17) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_durationOfPRS_ProcessingSymbolsInEveryTms_r16_constr_42 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs15_r16_constr_55 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 8 } /* (0..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs30_r16_constr_65 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 8 } /* (0..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs60_r16_constr_75 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 8 } /* (0..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs120_r16_constr_85 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 8 } /* (0..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs15_v1690_constr_97 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs30_v1690_constr_100 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs60_v1690_constr_103 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs120_v1690_constr_106 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17_constr_111 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prs_ProcessingWindowType1A_r17_constr_113 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prs_ProcessingWindowType1B_r17_constr_117 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prs_ProcessingWindowType2_r17_constr_121 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prs_ProcessingCapabilityOutsideMGinPPW_r17_constr_125 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_BufferType_RRC_Inactive_r17_constr_127 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_durationOfPRS_ProcessingSymbols_r17_constr_132 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 17 } /* (0..17) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_durationOfPRS_ProcessingSymbolsInEveryTms_r17_constr_151 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs15_r17_constr_164 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs30_r17_constr_176 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs60_r17_constr_188 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs120_r17_constr_200 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportedLowerRxBeamSweepingFactor_FR2_r17_constr_213 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_prs_ProcessingCapabilityOutsideMGinPPW_r17_constr_125 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17_constr_219 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_prs_MeasurementWithoutMG_r17_constr_222 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs15_r18_constr_229 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs30_r18_constr_241 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs60_r18_constr_253 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs120_r18_constr_265 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs15_r18_constr_279 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs30_r18_constr_291 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs60_r18_constr_303 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs120_r18_constr_315 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs15_r18_constr_329 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs30_r18_constr_341 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs60_r18_constr_353 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_scs120_r18_constr_365 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18_constr_382 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18_constr_384 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18_constr_386 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dl_PRS_MeasurementWithRxFH_RRC_Idle_r18_constr_388 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18_constr_390 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18_constr_392 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfPRS_BWA_WithTwoPFL_Combination_r18_constr_394 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfPRS_MeasurementRRC_Idle_r18_constr_397 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_fr1_value2enum_4[] = { + { 0, 4, "mhz5" }, + { 1, 5, "mhz10" }, + { 2, 5, "mhz20" }, + { 3, 5, "mhz40" }, + { 4, 5, "mhz50" }, + { 5, 5, "mhz80" }, + { 6, 6, "mhz100" } +}; +static const unsigned int asn_MAP_fr1_enum2value_4[] = { + 1, /* mhz10(1) */ + 6, /* mhz100(6) */ + 2, /* mhz20(2) */ + 3, /* mhz40(3) */ + 0, /* mhz5(0) */ + 4, /* mhz50(4) */ + 5 /* mhz80(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_fr1_specs_4 = { + asn_MAP_fr1_value2enum_4, /* "tag" => N; sorted by tag */ + asn_MAP_fr1_enum2value_4, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_fr1_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fr1_4 = { + "fr1", + "fr1", + &asn_OP_NativeEnumerated, + asn_DEF_fr1_tags_4, + sizeof(asn_DEF_fr1_tags_4) + /sizeof(asn_DEF_fr1_tags_4[0]) - 1, /* 1 */ + asn_DEF_fr1_tags_4, /* Same as above */ + sizeof(asn_DEF_fr1_tags_4) + /sizeof(asn_DEF_fr1_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_fr1_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_fr1_specs_4 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_fr2_value2enum_12[] = { + { 0, 5, "mhz50" }, + { 1, 6, "mhz100" }, + { 2, 6, "mhz200" }, + { 3, 6, "mhz400" } +}; +static const unsigned int asn_MAP_fr2_enum2value_12[] = { + 1, /* mhz100(1) */ + 2, /* mhz200(2) */ + 3, /* mhz400(3) */ + 0 /* mhz50(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_fr2_specs_12 = { + asn_MAP_fr2_value2enum_12, /* "tag" => N; sorted by tag */ + asn_MAP_fr2_enum2value_12, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_fr2_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fr2_12 = { + "fr2", + "fr2", + &asn_OP_NativeEnumerated, + asn_DEF_fr2_tags_12, + sizeof(asn_DEF_fr2_tags_12) + /sizeof(asn_DEF_fr2_tags_12[0]) - 1, /* 1 */ + asn_DEF_fr2_tags_12, /* Same as above */ + sizeof(asn_DEF_fr2_tags_12) + /sizeof(asn_DEF_fr2_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_fr2_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_fr2_specs_12 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_supportedBandwidthPRS_r16_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16, choice.fr1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_fr1_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fr1" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16, choice.fr2), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_fr2_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fr2" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_supportedBandwidthPRS_r16_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fr1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* fr2 */ +}; +static asn_CHOICE_specifics_t asn_SPC_supportedBandwidthPRS_r16_specs_3 = { + sizeof(struct PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16), + offsetof(struct PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16, _asn_ctx), + offsetof(struct PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16, present), + sizeof(((struct PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16 *)0)->present), + asn_MAP_supportedBandwidthPRS_r16_tag2el_3, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportedBandwidthPRS_r16_3 = { + "supportedBandwidthPRS-r16", + "supportedBandwidthPRS-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportedBandwidthPRS_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_supportedBandwidthPRS_r16_3, + 2, /* Elements count */ + &asn_SPC_supportedBandwidthPRS_r16_specs_3 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_BufferType_r16_value2enum_18[] = { + { 0, 5, "type1" }, + { 1, 5, "type2" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_dl_PRS_BufferType_r16_enum2value_18[] = { + 0, /* type1(0) */ + 1 /* type2(1) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_BufferType_r16_specs_18 = { + asn_MAP_dl_PRS_BufferType_r16_value2enum_18, /* "tag" => N; sorted by tag */ + asn_MAP_dl_PRS_BufferType_r16_enum2value_18, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_BufferType_r16_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_BufferType_r16_18 = { + "dl-PRS-BufferType-r16", + "dl-PRS-BufferType-r16", + &asn_OP_NativeEnumerated, + asn_DEF_dl_PRS_BufferType_r16_tags_18, + sizeof(asn_DEF_dl_PRS_BufferType_r16_tags_18) + /sizeof(asn_DEF_dl_PRS_BufferType_r16_tags_18[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_BufferType_r16_tags_18, /* Same as above */ + sizeof(asn_DEF_dl_PRS_BufferType_r16_tags_18) + /sizeof(asn_DEF_dl_PRS_BufferType_r16_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_BufferType_r16_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_PRS_BufferType_r16_specs_18 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_durationOfPRS_ProcessingSymbols_r16_value2enum_23[] = { + { 0, 7, "nDot125" }, + { 1, 6, "nDot25" }, + { 2, 5, "nDot5" }, + { 3, 2, "n1" }, + { 4, 2, "n2" }, + { 5, 2, "n4" }, + { 6, 2, "n6" }, + { 7, 2, "n8" }, + { 8, 3, "n12" }, + { 9, 3, "n16" }, + { 10, 3, "n20" }, + { 11, 3, "n25" }, + { 12, 3, "n30" }, + { 13, 3, "n32" }, + { 14, 3, "n35" }, + { 15, 3, "n40" }, + { 16, 3, "n45" }, + { 17, 3, "n50" } +}; +static const unsigned int asn_MAP_durationOfPRS_ProcessingSymbols_r16_enum2value_23[] = { + 3, /* n1(3) */ + 8, /* n12(8) */ + 9, /* n16(9) */ + 4, /* n2(4) */ + 10, /* n20(10) */ + 11, /* n25(11) */ + 12, /* n30(12) */ + 13, /* n32(13) */ + 14, /* n35(14) */ + 5, /* n4(5) */ + 15, /* n40(15) */ + 16, /* n45(16) */ + 17, /* n50(17) */ + 6, /* n6(6) */ + 7, /* n8(7) */ + 0, /* nDot125(0) */ + 1, /* nDot25(1) */ + 2 /* nDot5(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_durationOfPRS_ProcessingSymbols_r16_specs_23 = { + asn_MAP_durationOfPRS_ProcessingSymbols_r16_value2enum_23, /* "tag" => N; sorted by tag */ + asn_MAP_durationOfPRS_ProcessingSymbols_r16_enum2value_23, /* N => "tag"; sorted by N */ + 18, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_durationOfPRS_ProcessingSymbols_r16_tags_23[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_durationOfPRS_ProcessingSymbols_r16_23 = { + "durationOfPRS-ProcessingSymbols-r16", + "durationOfPRS-ProcessingSymbols-r16", + &asn_OP_NativeEnumerated, + asn_DEF_durationOfPRS_ProcessingSymbols_r16_tags_23, + sizeof(asn_DEF_durationOfPRS_ProcessingSymbols_r16_tags_23) + /sizeof(asn_DEF_durationOfPRS_ProcessingSymbols_r16_tags_23[0]) - 1, /* 1 */ + asn_DEF_durationOfPRS_ProcessingSymbols_r16_tags_23, /* Same as above */ + sizeof(asn_DEF_durationOfPRS_ProcessingSymbols_r16_tags_23) + /sizeof(asn_DEF_durationOfPRS_ProcessingSymbols_r16_tags_23[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_durationOfPRS_ProcessingSymbols_r16_constr_23, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_durationOfPRS_ProcessingSymbols_r16_specs_23 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_durationOfPRS_ProcessingSymbolsInEveryTms_r16_value2enum_42[] = { + { 0, 2, "n8" }, + { 1, 3, "n16" }, + { 2, 3, "n20" }, + { 3, 3, "n30" }, + { 4, 3, "n40" }, + { 5, 3, "n80" }, + { 6, 4, "n160" }, + { 7, 4, "n320" }, + { 8, 4, "n640" }, + { 9, 5, "n1280" } +}; +static const unsigned int asn_MAP_durationOfPRS_ProcessingSymbolsInEveryTms_r16_enum2value_42[] = { + 9, /* n1280(9) */ + 1, /* n16(1) */ + 6, /* n160(6) */ + 2, /* n20(2) */ + 3, /* n30(3) */ + 7, /* n320(7) */ + 4, /* n40(4) */ + 8, /* n640(8) */ + 0, /* n8(0) */ + 5 /* n80(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_durationOfPRS_ProcessingSymbolsInEveryTms_r16_specs_42 = { + asn_MAP_durationOfPRS_ProcessingSymbolsInEveryTms_r16_value2enum_42, /* "tag" => N; sorted by tag */ + asn_MAP_durationOfPRS_ProcessingSymbolsInEveryTms_r16_enum2value_42, /* N => "tag"; sorted by N */ + 10, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r16_tags_42[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r16_42 = { + "durationOfPRS-ProcessingSymbolsInEveryTms-r16", + "durationOfPRS-ProcessingSymbolsInEveryTms-r16", + &asn_OP_NativeEnumerated, + asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r16_tags_42, + sizeof(asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r16_tags_42) + /sizeof(asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r16_tags_42[0]) - 1, /* 1 */ + asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r16_tags_42, /* Same as above */ + sizeof(asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r16_tags_42) + /sizeof(asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r16_tags_42[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_durationOfPRS_ProcessingSymbolsInEveryTms_r16_constr_42, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_durationOfPRS_ProcessingSymbolsInEveryTms_r16_specs_42 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_durationOfPRS_Processing_r16_22[] = { + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16, durationOfPRS_ProcessingSymbols_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_durationOfPRS_ProcessingSymbols_r16_23, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "durationOfPRS-ProcessingSymbols-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16, durationOfPRS_ProcessingSymbolsInEveryTms_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r16_42, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "durationOfPRS-ProcessingSymbolsInEveryTms-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_durationOfPRS_Processing_r16_tags_22[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_durationOfPRS_Processing_r16_tag2el_22[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* durationOfPRS-ProcessingSymbols-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* durationOfPRS-ProcessingSymbolsInEveryTms-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_durationOfPRS_Processing_r16_specs_22 = { + sizeof(struct PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16), + offsetof(struct PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16, _asn_ctx), + asn_MAP_durationOfPRS_Processing_r16_tag2el_22, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_durationOfPRS_Processing_r16_22 = { + "durationOfPRS-Processing-r16", + "durationOfPRS-Processing-r16", + &asn_OP_SEQUENCE, + asn_DEF_durationOfPRS_Processing_r16_tags_22, + sizeof(asn_DEF_durationOfPRS_Processing_r16_tags_22) + /sizeof(asn_DEF_durationOfPRS_Processing_r16_tags_22[0]) - 1, /* 1 */ + asn_DEF_durationOfPRS_Processing_r16_tags_22, /* Same as above */ + sizeof(asn_DEF_durationOfPRS_Processing_r16_tags_22) + /sizeof(asn_DEF_durationOfPRS_Processing_r16_tags_22[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_durationOfPRS_Processing_r16_22, + 2, /* Elements count */ + &asn_SPC_durationOfPRS_Processing_r16_specs_22 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs15_r16_value2enum_55[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n24" }, + { 6, 3, "n32" }, + { 7, 3, "n48" }, + { 8, 3, "n64" } +}; +static const unsigned int asn_MAP_scs15_r16_enum2value_55[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n24(5) */ + 6, /* n32(6) */ + 2, /* n4(2) */ + 7, /* n48(7) */ + 8, /* n64(8) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs15_r16_specs_55 = { + asn_MAP_scs15_r16_value2enum_55, /* "tag" => N; sorted by tag */ + asn_MAP_scs15_r16_enum2value_55, /* N => "tag"; sorted by N */ + 9, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs15_r16_tags_55[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs15_r16_55 = { + "scs15-r16", + "scs15-r16", + &asn_OP_NativeEnumerated, + asn_DEF_scs15_r16_tags_55, + sizeof(asn_DEF_scs15_r16_tags_55) + /sizeof(asn_DEF_scs15_r16_tags_55[0]) - 1, /* 1 */ + asn_DEF_scs15_r16_tags_55, /* Same as above */ + sizeof(asn_DEF_scs15_r16_tags_55) + /sizeof(asn_DEF_scs15_r16_tags_55[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs15_r16_constr_55, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs15_r16_specs_55 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs30_r16_value2enum_65[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n24" }, + { 6, 3, "n32" }, + { 7, 3, "n48" }, + { 8, 3, "n64" } +}; +static const unsigned int asn_MAP_scs30_r16_enum2value_65[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n24(5) */ + 6, /* n32(6) */ + 2, /* n4(2) */ + 7, /* n48(7) */ + 8, /* n64(8) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs30_r16_specs_65 = { + asn_MAP_scs30_r16_value2enum_65, /* "tag" => N; sorted by tag */ + asn_MAP_scs30_r16_enum2value_65, /* N => "tag"; sorted by N */ + 9, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs30_r16_tags_65[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs30_r16_65 = { + "scs30-r16", + "scs30-r16", + &asn_OP_NativeEnumerated, + asn_DEF_scs30_r16_tags_65, + sizeof(asn_DEF_scs30_r16_tags_65) + /sizeof(asn_DEF_scs30_r16_tags_65[0]) - 1, /* 1 */ + asn_DEF_scs30_r16_tags_65, /* Same as above */ + sizeof(asn_DEF_scs30_r16_tags_65) + /sizeof(asn_DEF_scs30_r16_tags_65[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs30_r16_constr_65, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs30_r16_specs_65 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs60_r16_value2enum_75[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n24" }, + { 6, 3, "n32" }, + { 7, 3, "n48" }, + { 8, 3, "n64" } +}; +static const unsigned int asn_MAP_scs60_r16_enum2value_75[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n24(5) */ + 6, /* n32(6) */ + 2, /* n4(2) */ + 7, /* n48(7) */ + 8, /* n64(8) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs60_r16_specs_75 = { + asn_MAP_scs60_r16_value2enum_75, /* "tag" => N; sorted by tag */ + asn_MAP_scs60_r16_enum2value_75, /* N => "tag"; sorted by N */ + 9, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs60_r16_tags_75[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs60_r16_75 = { + "scs60-r16", + "scs60-r16", + &asn_OP_NativeEnumerated, + asn_DEF_scs60_r16_tags_75, + sizeof(asn_DEF_scs60_r16_tags_75) + /sizeof(asn_DEF_scs60_r16_tags_75[0]) - 1, /* 1 */ + asn_DEF_scs60_r16_tags_75, /* Same as above */ + sizeof(asn_DEF_scs60_r16_tags_75) + /sizeof(asn_DEF_scs60_r16_tags_75[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs60_r16_constr_75, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs60_r16_specs_75 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs120_r16_value2enum_85[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n24" }, + { 6, 3, "n32" }, + { 7, 3, "n48" }, + { 8, 3, "n64" } +}; +static const unsigned int asn_MAP_scs120_r16_enum2value_85[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n24(5) */ + 6, /* n32(6) */ + 2, /* n4(2) */ + 7, /* n48(7) */ + 8, /* n64(8) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs120_r16_specs_85 = { + asn_MAP_scs120_r16_value2enum_85, /* "tag" => N; sorted by tag */ + asn_MAP_scs120_r16_enum2value_85, /* N => "tag"; sorted by N */ + 9, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs120_r16_tags_85[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs120_r16_85 = { + "scs120-r16", + "scs120-r16", + &asn_OP_NativeEnumerated, + asn_DEF_scs120_r16_tags_85, + sizeof(asn_DEF_scs120_r16_tags_85) + /sizeof(asn_DEF_scs120_r16_tags_85[0]) - 1, /* 1 */ + asn_DEF_scs120_r16_tags_85, /* Same as above */ + sizeof(asn_DEF_scs120_r16_tags_85) + /sizeof(asn_DEF_scs120_r16_tags_85[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs120_r16_constr_85, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs120_r16_specs_85 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs15_v1690_value2enum_97[] = { + { 0, 2, "n6" }, + { 1, 3, "n12" } +}; +static const unsigned int asn_MAP_scs15_v1690_enum2value_97[] = { + 1, /* n12(1) */ + 0 /* n6(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs15_v1690_specs_97 = { + asn_MAP_scs15_v1690_value2enum_97, /* "tag" => N; sorted by tag */ + asn_MAP_scs15_v1690_enum2value_97, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs15_v1690_tags_97[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs15_v1690_97 = { + "scs15-v1690", + "scs15-v1690", + &asn_OP_NativeEnumerated, + asn_DEF_scs15_v1690_tags_97, + sizeof(asn_DEF_scs15_v1690_tags_97) + /sizeof(asn_DEF_scs15_v1690_tags_97[0]) - 1, /* 1 */ + asn_DEF_scs15_v1690_tags_97, /* Same as above */ + sizeof(asn_DEF_scs15_v1690_tags_97) + /sizeof(asn_DEF_scs15_v1690_tags_97[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs15_v1690_constr_97, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs15_v1690_specs_97 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs30_v1690_value2enum_100[] = { + { 0, 2, "n6" }, + { 1, 3, "n12" } +}; +static const unsigned int asn_MAP_scs30_v1690_enum2value_100[] = { + 1, /* n12(1) */ + 0 /* n6(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs30_v1690_specs_100 = { + asn_MAP_scs30_v1690_value2enum_100, /* "tag" => N; sorted by tag */ + asn_MAP_scs30_v1690_enum2value_100, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs30_v1690_tags_100[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs30_v1690_100 = { + "scs30-v1690", + "scs30-v1690", + &asn_OP_NativeEnumerated, + asn_DEF_scs30_v1690_tags_100, + sizeof(asn_DEF_scs30_v1690_tags_100) + /sizeof(asn_DEF_scs30_v1690_tags_100[0]) - 1, /* 1 */ + asn_DEF_scs30_v1690_tags_100, /* Same as above */ + sizeof(asn_DEF_scs30_v1690_tags_100) + /sizeof(asn_DEF_scs30_v1690_tags_100[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs30_v1690_constr_100, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs30_v1690_specs_100 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs60_v1690_value2enum_103[] = { + { 0, 2, "n6" }, + { 1, 3, "n12" } +}; +static const unsigned int asn_MAP_scs60_v1690_enum2value_103[] = { + 1, /* n12(1) */ + 0 /* n6(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs60_v1690_specs_103 = { + asn_MAP_scs60_v1690_value2enum_103, /* "tag" => N; sorted by tag */ + asn_MAP_scs60_v1690_enum2value_103, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs60_v1690_tags_103[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs60_v1690_103 = { + "scs60-v1690", + "scs60-v1690", + &asn_OP_NativeEnumerated, + asn_DEF_scs60_v1690_tags_103, + sizeof(asn_DEF_scs60_v1690_tags_103) + /sizeof(asn_DEF_scs60_v1690_tags_103[0]) - 1, /* 1 */ + asn_DEF_scs60_v1690_tags_103, /* Same as above */ + sizeof(asn_DEF_scs60_v1690_tags_103) + /sizeof(asn_DEF_scs60_v1690_tags_103[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs60_v1690_constr_103, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs60_v1690_specs_103 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs120_v1690_value2enum_106[] = { + { 0, 2, "n6" }, + { 1, 3, "n12" } +}; +static const unsigned int asn_MAP_scs120_v1690_enum2value_106[] = { + 1, /* n12(1) */ + 0 /* n6(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs120_v1690_specs_106 = { + asn_MAP_scs120_v1690_value2enum_106, /* "tag" => N; sorted by tag */ + asn_MAP_scs120_v1690_enum2value_106, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs120_v1690_tags_106[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs120_v1690_106 = { + "scs120-v1690", + "scs120-v1690", + &asn_OP_NativeEnumerated, + asn_DEF_scs120_v1690_tags_106, + sizeof(asn_DEF_scs120_v1690_tags_106) + /sizeof(asn_DEF_scs120_v1690_tags_106[0]) - 1, /* 1 */ + asn_DEF_scs120_v1690_tags_106, /* Same as above */ + sizeof(asn_DEF_scs120_v1690_tags_106) + /sizeof(asn_DEF_scs120_v1690_tags_106[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs120_v1690_constr_106, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs120_v1690_specs_106 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_96[] = { + { ATF_POINTER, 4, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1, scs15_v1690), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs15_v1690_97, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs15-v1690" + }, + { ATF_POINTER, 3, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1, scs30_v1690), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs30_v1690_100, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs30-v1690" + }, + { ATF_POINTER, 2, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1, scs60_v1690), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs60_v1690_103, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs60-v1690" + }, + { ATF_POINTER, 1, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1, scs120_v1690), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs120_v1690_106, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs120-v1690" + }, +}; +static const int asn_MAP_ext1_oms_96[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_96[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_96[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* scs15-v1690 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* scs30-v1690 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* scs60-v1690 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* scs120-v1690 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_96 = { + sizeof(struct PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1), + offsetof(struct PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_96, + 4, /* Count of tags in the map */ + asn_MAP_ext1_oms_96, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_96 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_96, + sizeof(asn_DEF_ext1_tags_96) + /sizeof(asn_DEF_ext1_tags_96[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_96, /* Same as above */ + sizeof(asn_DEF_ext1_tags_96) + /sizeof(asn_DEF_ext1_tags_96[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_96, + 4, /* Elements count */ + &asn_SPC_ext1_specs_96 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_maxNumOfDL_PRS_ResProcessedPerSlot_r16_54[] = { + { ATF_POINTER, 5, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16, scs15_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs15_r16_55, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs15-r16" + }, + { ATF_POINTER, 4, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16, scs30_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs30_r16_65, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs30-r16" + }, + { ATF_POINTER, 3, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16, scs60_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs60_r16_75, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs60-r16" + }, + { ATF_POINTER, 2, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16, scs120_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs120_r16_85, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs120-r16" + }, + { ATF_POINTER, 1, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext1_96, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_maxNumOfDL_PRS_ResProcessedPerSlot_r16_oms_54[] = { 0, 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_maxNumOfDL_PRS_ResProcessedPerSlot_r16_tags_54[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_maxNumOfDL_PRS_ResProcessedPerSlot_r16_tag2el_54[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* scs15-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* scs30-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* scs60-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* scs120-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext1 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_maxNumOfDL_PRS_ResProcessedPerSlot_r16_specs_54 = { + sizeof(struct PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16), + offsetof(struct PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16, _asn_ctx), + asn_MAP_maxNumOfDL_PRS_ResProcessedPerSlot_r16_tag2el_54, + 5, /* Count of tags in the map */ + asn_MAP_maxNumOfDL_PRS_ResProcessedPerSlot_r16_oms_54, /* Optional members */ + 4, 1, /* Root/Additions */ + 4, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfDL_PRS_ResProcessedPerSlot_r16_54 = { + "maxNumOfDL-PRS-ResProcessedPerSlot-r16", + "maxNumOfDL-PRS-ResProcessedPerSlot-r16", + &asn_OP_SEQUENCE, + asn_DEF_maxNumOfDL_PRS_ResProcessedPerSlot_r16_tags_54, + sizeof(asn_DEF_maxNumOfDL_PRS_ResProcessedPerSlot_r16_tags_54) + /sizeof(asn_DEF_maxNumOfDL_PRS_ResProcessedPerSlot_r16_tags_54[0]) - 1, /* 1 */ + asn_DEF_maxNumOfDL_PRS_ResProcessedPerSlot_r16_tags_54, /* Same as above */ + sizeof(asn_DEF_maxNumOfDL_PRS_ResProcessedPerSlot_r16_tags_54) + /sizeof(asn_DEF_maxNumOfDL_PRS_ResProcessedPerSlot_r16_tags_54[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_maxNumOfDL_PRS_ResProcessedPerSlot_r16_54, + 5, /* Elements count */ + &asn_SPC_maxNumOfDL_PRS_ResProcessedPerSlot_r16_specs_54 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17_value2enum_111[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17_enum2value_111[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17_specs_111 = { + asn_MAP_supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17_value2enum_111, /* "tag" => N; sorted by tag */ + asn_MAP_supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17_enum2value_111, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17_tags_111[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17_111 = { + "supportedDL-PRS-ProcessingSamples-RRC-CONNECTED-r17", + "supportedDL-PRS-ProcessingSamples-RRC-CONNECTED-r17", + &asn_OP_NativeEnumerated, + asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17_tags_111, + sizeof(asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17_tags_111) + /sizeof(asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17_tags_111[0]) - 1, /* 1 */ + asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17_tags_111, /* Same as above */ + sizeof(asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17_tags_111) + /sizeof(asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17_tags_111[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17_constr_111, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17_specs_111 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_prs_ProcessingWindowType1A_r17_value2enum_113[] = { + { 0, 7, "option1" }, + { 1, 7, "option2" }, + { 2, 7, "option3" } +}; +static const unsigned int asn_MAP_prs_ProcessingWindowType1A_r17_enum2value_113[] = { + 0, /* option1(0) */ + 1, /* option2(1) */ + 2 /* option3(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_prs_ProcessingWindowType1A_r17_specs_113 = { + asn_MAP_prs_ProcessingWindowType1A_r17_value2enum_113, /* "tag" => N; sorted by tag */ + asn_MAP_prs_ProcessingWindowType1A_r17_enum2value_113, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_prs_ProcessingWindowType1A_r17_tags_113[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prs_ProcessingWindowType1A_r17_113 = { + "prs-ProcessingWindowType1A-r17", + "prs-ProcessingWindowType1A-r17", + &asn_OP_NativeEnumerated, + asn_DEF_prs_ProcessingWindowType1A_r17_tags_113, + sizeof(asn_DEF_prs_ProcessingWindowType1A_r17_tags_113) + /sizeof(asn_DEF_prs_ProcessingWindowType1A_r17_tags_113[0]) - 1, /* 1 */ + asn_DEF_prs_ProcessingWindowType1A_r17_tags_113, /* Same as above */ + sizeof(asn_DEF_prs_ProcessingWindowType1A_r17_tags_113) + /sizeof(asn_DEF_prs_ProcessingWindowType1A_r17_tags_113[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prs_ProcessingWindowType1A_r17_constr_113, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_prs_ProcessingWindowType1A_r17_specs_113 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_prs_ProcessingWindowType1B_r17_value2enum_117[] = { + { 0, 7, "option1" }, + { 1, 7, "option2" }, + { 2, 7, "option3" } +}; +static const unsigned int asn_MAP_prs_ProcessingWindowType1B_r17_enum2value_117[] = { + 0, /* option1(0) */ + 1, /* option2(1) */ + 2 /* option3(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_prs_ProcessingWindowType1B_r17_specs_117 = { + asn_MAP_prs_ProcessingWindowType1B_r17_value2enum_117, /* "tag" => N; sorted by tag */ + asn_MAP_prs_ProcessingWindowType1B_r17_enum2value_117, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_prs_ProcessingWindowType1B_r17_tags_117[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prs_ProcessingWindowType1B_r17_117 = { + "prs-ProcessingWindowType1B-r17", + "prs-ProcessingWindowType1B-r17", + &asn_OP_NativeEnumerated, + asn_DEF_prs_ProcessingWindowType1B_r17_tags_117, + sizeof(asn_DEF_prs_ProcessingWindowType1B_r17_tags_117) + /sizeof(asn_DEF_prs_ProcessingWindowType1B_r17_tags_117[0]) - 1, /* 1 */ + asn_DEF_prs_ProcessingWindowType1B_r17_tags_117, /* Same as above */ + sizeof(asn_DEF_prs_ProcessingWindowType1B_r17_tags_117) + /sizeof(asn_DEF_prs_ProcessingWindowType1B_r17_tags_117[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prs_ProcessingWindowType1B_r17_constr_117, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_prs_ProcessingWindowType1B_r17_specs_117 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_prs_ProcessingWindowType2_r17_value2enum_121[] = { + { 0, 7, "option1" }, + { 1, 7, "option2" }, + { 2, 7, "option3" } +}; +static const unsigned int asn_MAP_prs_ProcessingWindowType2_r17_enum2value_121[] = { + 0, /* option1(0) */ + 1, /* option2(1) */ + 2 /* option3(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_prs_ProcessingWindowType2_r17_specs_121 = { + asn_MAP_prs_ProcessingWindowType2_r17_value2enum_121, /* "tag" => N; sorted by tag */ + asn_MAP_prs_ProcessingWindowType2_r17_enum2value_121, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_prs_ProcessingWindowType2_r17_tags_121[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prs_ProcessingWindowType2_r17_121 = { + "prs-ProcessingWindowType2-r17", + "prs-ProcessingWindowType2-r17", + &asn_OP_NativeEnumerated, + asn_DEF_prs_ProcessingWindowType2_r17_tags_121, + sizeof(asn_DEF_prs_ProcessingWindowType2_r17_tags_121) + /sizeof(asn_DEF_prs_ProcessingWindowType2_r17_tags_121[0]) - 1, /* 1 */ + asn_DEF_prs_ProcessingWindowType2_r17_tags_121, /* Same as above */ + sizeof(asn_DEF_prs_ProcessingWindowType2_r17_tags_121) + /sizeof(asn_DEF_prs_ProcessingWindowType2_r17_tags_121[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prs_ProcessingWindowType2_r17_constr_121, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_prs_ProcessingWindowType2_r17_specs_121 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_prs_ProcessingCapabilityOutsideMGinPPW_r17_125[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_PRS_ProcessingCapabilityOutsideMGinPPWperType_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_prs_ProcessingCapabilityOutsideMGinPPW_r17_tags_125[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_prs_ProcessingCapabilityOutsideMGinPPW_r17_specs_125 = { + sizeof(struct PRS_ProcessingCapabilityPerBand_r16__ext1__prs_ProcessingCapabilityOutsideMGinPPW_r17), + offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext1__prs_ProcessingCapabilityOutsideMGinPPW_r17, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prs_ProcessingCapabilityOutsideMGinPPW_r17_125 = { + "prs-ProcessingCapabilityOutsideMGinPPW-r17", + "prs-ProcessingCapabilityOutsideMGinPPW-r17", + &asn_OP_SEQUENCE_OF, + asn_DEF_prs_ProcessingCapabilityOutsideMGinPPW_r17_tags_125, + sizeof(asn_DEF_prs_ProcessingCapabilityOutsideMGinPPW_r17_tags_125) + /sizeof(asn_DEF_prs_ProcessingCapabilityOutsideMGinPPW_r17_tags_125[0]) - 1, /* 1 */ + asn_DEF_prs_ProcessingCapabilityOutsideMGinPPW_r17_tags_125, /* Same as above */ + sizeof(asn_DEF_prs_ProcessingCapabilityOutsideMGinPPW_r17_tags_125) + /sizeof(asn_DEF_prs_ProcessingCapabilityOutsideMGinPPW_r17_tags_125[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prs_ProcessingCapabilityOutsideMGinPPW_r17_constr_125, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_prs_ProcessingCapabilityOutsideMGinPPW_r17_125, + 1, /* Single element */ + &asn_SPC_prs_ProcessingCapabilityOutsideMGinPPW_r17_specs_125 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_BufferType_RRC_Inactive_r17_value2enum_127[] = { + { 0, 5, "type1" }, + { 1, 5, "type2" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_dl_PRS_BufferType_RRC_Inactive_r17_enum2value_127[] = { + 0, /* type1(0) */ + 1 /* type2(1) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_BufferType_RRC_Inactive_r17_specs_127 = { + asn_MAP_dl_PRS_BufferType_RRC_Inactive_r17_value2enum_127, /* "tag" => N; sorted by tag */ + asn_MAP_dl_PRS_BufferType_RRC_Inactive_r17_enum2value_127, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_BufferType_RRC_Inactive_r17_tags_127[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_BufferType_RRC_Inactive_r17_127 = { + "dl-PRS-BufferType-RRC-Inactive-r17", + "dl-PRS-BufferType-RRC-Inactive-r17", + &asn_OP_NativeEnumerated, + asn_DEF_dl_PRS_BufferType_RRC_Inactive_r17_tags_127, + sizeof(asn_DEF_dl_PRS_BufferType_RRC_Inactive_r17_tags_127) + /sizeof(asn_DEF_dl_PRS_BufferType_RRC_Inactive_r17_tags_127[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_BufferType_RRC_Inactive_r17_tags_127, /* Same as above */ + sizeof(asn_DEF_dl_PRS_BufferType_RRC_Inactive_r17_tags_127) + /sizeof(asn_DEF_dl_PRS_BufferType_RRC_Inactive_r17_tags_127[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_BufferType_RRC_Inactive_r17_constr_127, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_PRS_BufferType_RRC_Inactive_r17_specs_127 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_durationOfPRS_ProcessingSymbols_r17_value2enum_132[] = { + { 0, 7, "nDot125" }, + { 1, 6, "nDot25" }, + { 2, 5, "nDot5" }, + { 3, 2, "n1" }, + { 4, 2, "n2" }, + { 5, 2, "n4" }, + { 6, 2, "n6" }, + { 7, 2, "n8" }, + { 8, 3, "n12" }, + { 9, 3, "n16" }, + { 10, 3, "n20" }, + { 11, 3, "n25" }, + { 12, 3, "n30" }, + { 13, 3, "n32" }, + { 14, 3, "n35" }, + { 15, 3, "n40" }, + { 16, 3, "n45" }, + { 17, 3, "n50" } +}; +static const unsigned int asn_MAP_durationOfPRS_ProcessingSymbols_r17_enum2value_132[] = { + 3, /* n1(3) */ + 8, /* n12(8) */ + 9, /* n16(9) */ + 4, /* n2(4) */ + 10, /* n20(10) */ + 11, /* n25(11) */ + 12, /* n30(12) */ + 13, /* n32(13) */ + 14, /* n35(14) */ + 5, /* n4(5) */ + 15, /* n40(15) */ + 16, /* n45(16) */ + 17, /* n50(17) */ + 6, /* n6(6) */ + 7, /* n8(7) */ + 0, /* nDot125(0) */ + 1, /* nDot25(1) */ + 2 /* nDot5(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_durationOfPRS_ProcessingSymbols_r17_specs_132 = { + asn_MAP_durationOfPRS_ProcessingSymbols_r17_value2enum_132, /* "tag" => N; sorted by tag */ + asn_MAP_durationOfPRS_ProcessingSymbols_r17_enum2value_132, /* N => "tag"; sorted by N */ + 18, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_durationOfPRS_ProcessingSymbols_r17_tags_132[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_durationOfPRS_ProcessingSymbols_r17_132 = { + "durationOfPRS-ProcessingSymbols-r17", + "durationOfPRS-ProcessingSymbols-r17", + &asn_OP_NativeEnumerated, + asn_DEF_durationOfPRS_ProcessingSymbols_r17_tags_132, + sizeof(asn_DEF_durationOfPRS_ProcessingSymbols_r17_tags_132) + /sizeof(asn_DEF_durationOfPRS_ProcessingSymbols_r17_tags_132[0]) - 1, /* 1 */ + asn_DEF_durationOfPRS_ProcessingSymbols_r17_tags_132, /* Same as above */ + sizeof(asn_DEF_durationOfPRS_ProcessingSymbols_r17_tags_132) + /sizeof(asn_DEF_durationOfPRS_ProcessingSymbols_r17_tags_132[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_durationOfPRS_ProcessingSymbols_r17_constr_132, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_durationOfPRS_ProcessingSymbols_r17_specs_132 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_durationOfPRS_ProcessingSymbolsInEveryTms_r17_value2enum_151[] = { + { 0, 2, "n8" }, + { 1, 3, "n16" }, + { 2, 3, "n20" }, + { 3, 3, "n30" }, + { 4, 3, "n40" }, + { 5, 3, "n80" }, + { 6, 4, "n160" }, + { 7, 4, "n320" }, + { 8, 4, "n640" }, + { 9, 5, "n1280" } +}; +static const unsigned int asn_MAP_durationOfPRS_ProcessingSymbolsInEveryTms_r17_enum2value_151[] = { + 9, /* n1280(9) */ + 1, /* n16(1) */ + 6, /* n160(6) */ + 2, /* n20(2) */ + 3, /* n30(3) */ + 7, /* n320(7) */ + 4, /* n40(4) */ + 8, /* n640(8) */ + 0, /* n8(0) */ + 5 /* n80(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_durationOfPRS_ProcessingSymbolsInEveryTms_r17_specs_151 = { + asn_MAP_durationOfPRS_ProcessingSymbolsInEveryTms_r17_value2enum_151, /* "tag" => N; sorted by tag */ + asn_MAP_durationOfPRS_ProcessingSymbolsInEveryTms_r17_enum2value_151, /* N => "tag"; sorted by N */ + 10, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r17_tags_151[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r17_151 = { + "durationOfPRS-ProcessingSymbolsInEveryTms-r17", + "durationOfPRS-ProcessingSymbolsInEveryTms-r17", + &asn_OP_NativeEnumerated, + asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r17_tags_151, + sizeof(asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r17_tags_151) + /sizeof(asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r17_tags_151[0]) - 1, /* 1 */ + asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r17_tags_151, /* Same as above */ + sizeof(asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r17_tags_151) + /sizeof(asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r17_tags_151[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_durationOfPRS_ProcessingSymbolsInEveryTms_r17_constr_151, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_durationOfPRS_ProcessingSymbolsInEveryTms_r17_specs_151 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_durationOfPRS_Processing_RRC_Inactive_r17_131[] = { + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17, durationOfPRS_ProcessingSymbols_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_durationOfPRS_ProcessingSymbols_r17_132, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "durationOfPRS-ProcessingSymbols-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17, durationOfPRS_ProcessingSymbolsInEveryTms_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r17_151, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "durationOfPRS-ProcessingSymbolsInEveryTms-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_durationOfPRS_Processing_RRC_Inactive_r17_tags_131[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_durationOfPRS_Processing_RRC_Inactive_r17_tag2el_131[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* durationOfPRS-ProcessingSymbols-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* durationOfPRS-ProcessingSymbolsInEveryTms-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_durationOfPRS_Processing_RRC_Inactive_r17_specs_131 = { + sizeof(struct PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17), + offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17, _asn_ctx), + asn_MAP_durationOfPRS_Processing_RRC_Inactive_r17_tag2el_131, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_durationOfPRS_Processing_RRC_Inactive_r17_131 = { + "durationOfPRS-Processing-RRC-Inactive-r17", + "durationOfPRS-Processing-RRC-Inactive-r17", + &asn_OP_SEQUENCE, + asn_DEF_durationOfPRS_Processing_RRC_Inactive_r17_tags_131, + sizeof(asn_DEF_durationOfPRS_Processing_RRC_Inactive_r17_tags_131) + /sizeof(asn_DEF_durationOfPRS_Processing_RRC_Inactive_r17_tags_131[0]) - 1, /* 1 */ + asn_DEF_durationOfPRS_Processing_RRC_Inactive_r17_tags_131, /* Same as above */ + sizeof(asn_DEF_durationOfPRS_Processing_RRC_Inactive_r17_tags_131) + /sizeof(asn_DEF_durationOfPRS_Processing_RRC_Inactive_r17_tags_131[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_durationOfPRS_Processing_RRC_Inactive_r17_131, + 2, /* Elements count */ + &asn_SPC_durationOfPRS_Processing_RRC_Inactive_r17_specs_131 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs15_r17_value2enum_164[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs15_r17_enum2value_164[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs15_r17_specs_164 = { + asn_MAP_scs15_r17_value2enum_164, /* "tag" => N; sorted by tag */ + asn_MAP_scs15_r17_enum2value_164, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs15_r17_tags_164[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs15_r17_164 = { + "scs15-r17", + "scs15-r17", + &asn_OP_NativeEnumerated, + asn_DEF_scs15_r17_tags_164, + sizeof(asn_DEF_scs15_r17_tags_164) + /sizeof(asn_DEF_scs15_r17_tags_164[0]) - 1, /* 1 */ + asn_DEF_scs15_r17_tags_164, /* Same as above */ + sizeof(asn_DEF_scs15_r17_tags_164) + /sizeof(asn_DEF_scs15_r17_tags_164[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs15_r17_constr_164, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs15_r17_specs_164 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs30_r17_value2enum_176[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs30_r17_enum2value_176[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs30_r17_specs_176 = { + asn_MAP_scs30_r17_value2enum_176, /* "tag" => N; sorted by tag */ + asn_MAP_scs30_r17_enum2value_176, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs30_r17_tags_176[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs30_r17_176 = { + "scs30-r17", + "scs30-r17", + &asn_OP_NativeEnumerated, + asn_DEF_scs30_r17_tags_176, + sizeof(asn_DEF_scs30_r17_tags_176) + /sizeof(asn_DEF_scs30_r17_tags_176[0]) - 1, /* 1 */ + asn_DEF_scs30_r17_tags_176, /* Same as above */ + sizeof(asn_DEF_scs30_r17_tags_176) + /sizeof(asn_DEF_scs30_r17_tags_176[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs30_r17_constr_176, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs30_r17_specs_176 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs60_r17_value2enum_188[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs60_r17_enum2value_188[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs60_r17_specs_188 = { + asn_MAP_scs60_r17_value2enum_188, /* "tag" => N; sorted by tag */ + asn_MAP_scs60_r17_enum2value_188, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs60_r17_tags_188[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs60_r17_188 = { + "scs60-r17", + "scs60-r17", + &asn_OP_NativeEnumerated, + asn_DEF_scs60_r17_tags_188, + sizeof(asn_DEF_scs60_r17_tags_188) + /sizeof(asn_DEF_scs60_r17_tags_188[0]) - 1, /* 1 */ + asn_DEF_scs60_r17_tags_188, /* Same as above */ + sizeof(asn_DEF_scs60_r17_tags_188) + /sizeof(asn_DEF_scs60_r17_tags_188[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs60_r17_constr_188, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs60_r17_specs_188 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs120_r17_value2enum_200[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs120_r17_enum2value_200[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs120_r17_specs_200 = { + asn_MAP_scs120_r17_value2enum_200, /* "tag" => N; sorted by tag */ + asn_MAP_scs120_r17_enum2value_200, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs120_r17_tags_200[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs120_r17_200 = { + "scs120-r17", + "scs120-r17", + &asn_OP_NativeEnumerated, + asn_DEF_scs120_r17_tags_200, + sizeof(asn_DEF_scs120_r17_tags_200) + /sizeof(asn_DEF_scs120_r17_tags_200[0]) - 1, /* 1 */ + asn_DEF_scs120_r17_tags_200, /* Same as above */ + sizeof(asn_DEF_scs120_r17_tags_200) + /sizeof(asn_DEF_scs120_r17_tags_200[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs120_r17_constr_200, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs120_r17_specs_200 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17_163[] = { + { ATF_POINTER, 4, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17, scs15_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs15_r17_164, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs15-r17" + }, + { ATF_POINTER, 3, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17, scs30_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs30_r17_176, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs30-r17" + }, + { ATF_POINTER, 2, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17, scs60_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs60_r17_188, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs60-r17" + }, + { ATF_POINTER, 1, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17, scs120_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs120_r17_200, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs120-r17" + }, +}; +static const int asn_MAP_maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17_oms_163[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17_tags_163[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17_tag2el_163[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* scs15-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* scs30-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* scs60-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* scs120-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17_specs_163 = { + sizeof(struct PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17), + offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17, _asn_ctx), + asn_MAP_maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17_tag2el_163, + 4, /* Count of tags in the map */ + asn_MAP_maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17_oms_163, /* Optional members */ + 4, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17_163 = { + "maxNumOfDL-PRS-ResProcessedPerSlot-RRC-Inactive-r17", + "maxNumOfDL-PRS-ResProcessedPerSlot-RRC-Inactive-r17", + &asn_OP_SEQUENCE, + asn_DEF_maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17_tags_163, + sizeof(asn_DEF_maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17_tags_163) + /sizeof(asn_DEF_maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17_tags_163[0]) - 1, /* 1 */ + asn_DEF_maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17_tags_163, /* Same as above */ + sizeof(asn_DEF_maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17_tags_163) + /sizeof(asn_DEF_maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17_tags_163[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17_163, + 4, /* Elements count */ + &asn_SPC_maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17_specs_163 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportedLowerRxBeamSweepingFactor_FR2_r17_value2enum_213[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" } +}; +static const unsigned int asn_MAP_supportedLowerRxBeamSweepingFactor_FR2_r17_enum2value_213[] = { + 0, /* n1(0) */ + 1, /* n2(1) */ + 2, /* n4(2) */ + 3 /* n6(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportedLowerRxBeamSweepingFactor_FR2_r17_specs_213 = { + asn_MAP_supportedLowerRxBeamSweepingFactor_FR2_r17_value2enum_213, /* "tag" => N; sorted by tag */ + asn_MAP_supportedLowerRxBeamSweepingFactor_FR2_r17_enum2value_213, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportedLowerRxBeamSweepingFactor_FR2_r17_tags_213[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportedLowerRxBeamSweepingFactor_FR2_r17_213 = { + "supportedLowerRxBeamSweepingFactor-FR2-r17", + "supportedLowerRxBeamSweepingFactor-FR2-r17", + &asn_OP_NativeEnumerated, + asn_DEF_supportedLowerRxBeamSweepingFactor_FR2_r17_tags_213, + sizeof(asn_DEF_supportedLowerRxBeamSweepingFactor_FR2_r17_tags_213) + /sizeof(asn_DEF_supportedLowerRxBeamSweepingFactor_FR2_r17_tags_213[0]) - 1, /* 1 */ + asn_DEF_supportedLowerRxBeamSweepingFactor_FR2_r17_tags_213, /* Same as above */ + sizeof(asn_DEF_supportedLowerRxBeamSweepingFactor_FR2_r17_tags_213) + /sizeof(asn_DEF_supportedLowerRxBeamSweepingFactor_FR2_r17_tags_213[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportedLowerRxBeamSweepingFactor_FR2_r17_constr_213, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportedLowerRxBeamSweepingFactor_FR2_r17_specs_213 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_110[] = { + { ATF_POINTER, 9, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext1, supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17_111, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportedDL-PRS-ProcessingSamples-RRC-CONNECTED-r17" + }, + { ATF_POINTER, 8, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext1, prs_ProcessingWindowType1A_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_prs_ProcessingWindowType1A_r17_113, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-ProcessingWindowType1A-r17" + }, + { ATF_POINTER, 7, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext1, prs_ProcessingWindowType1B_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_prs_ProcessingWindowType1B_r17_117, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-ProcessingWindowType1B-r17" + }, + { ATF_POINTER, 6, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext1, prs_ProcessingWindowType2_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_prs_ProcessingWindowType2_r17_121, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-ProcessingWindowType2-r17" + }, + { ATF_POINTER, 5, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext1, prs_ProcessingCapabilityOutsideMGinPPW_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_prs_ProcessingCapabilityOutsideMGinPPW_r17_125, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_prs_ProcessingCapabilityOutsideMGinPPW_r17_constr_125, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_prs_ProcessingCapabilityOutsideMGinPPW_r17_constraint_110 + }, + 0, 0, /* No default value */ + "prs-ProcessingCapabilityOutsideMGinPPW-r17" + }, + { ATF_POINTER, 4, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext1, dl_PRS_BufferType_RRC_Inactive_r17), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_PRS_BufferType_RRC_Inactive_r17_127, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-BufferType-RRC-Inactive-r17" + }, + { ATF_POINTER, 3, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext1, durationOfPRS_Processing_RRC_Inactive_r17), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_durationOfPRS_Processing_RRC_Inactive_r17_131, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "durationOfPRS-Processing-RRC-Inactive-r17" + }, + { ATF_POINTER, 2, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext1, maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17_163, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfDL-PRS-ResProcessedPerSlot-RRC-Inactive-r17" + }, + { ATF_POINTER, 1, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext1, supportedLowerRxBeamSweepingFactor_FR2_r17), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportedLowerRxBeamSweepingFactor_FR2_r17_213, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportedLowerRxBeamSweepingFactor-FR2-r17" + }, +}; +static const int asn_MAP_ext1_oms_110[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_110[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_110[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* supportedDL-PRS-ProcessingSamples-RRC-CONNECTED-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* prs-ProcessingWindowType1A-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* prs-ProcessingWindowType1B-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* prs-ProcessingWindowType2-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* prs-ProcessingCapabilityOutsideMGinPPW-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* dl-PRS-BufferType-RRC-Inactive-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* durationOfPRS-Processing-RRC-Inactive-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* maxNumOfDL-PRS-ResProcessedPerSlot-RRC-Inactive-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* supportedLowerRxBeamSweepingFactor-FR2-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_110 = { + sizeof(struct PRS_ProcessingCapabilityPerBand_r16__ext1), + offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_110, + 9, /* Count of tags in the map */ + asn_MAP_ext1_oms_110, /* Optional members */ + 9, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_110 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_110, + sizeof(asn_DEF_ext1_tags_110) + /sizeof(asn_DEF_ext1_tags_110[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_110, /* Same as above */ + sizeof(asn_DEF_ext1_tags_110) + /sizeof(asn_DEF_ext1_tags_110[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_110, + 9, /* Elements count */ + &asn_SPC_ext1_specs_110 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17_value2enum_219[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17_enum2value_219[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17_specs_219 = { + asn_MAP_supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17_value2enum_219, /* "tag" => N; sorted by tag */ + asn_MAP_supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17_enum2value_219, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17_tags_219[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17_219 = { + "supportedDL-PRS-ProcessingSamples-RRC-Inactive-r17", + "supportedDL-PRS-ProcessingSamples-RRC-Inactive-r17", + &asn_OP_NativeEnumerated, + asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17_tags_219, + sizeof(asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17_tags_219) + /sizeof(asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17_tags_219[0]) - 1, /* 1 */ + asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17_tags_219, /* Same as above */ + sizeof(asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17_tags_219) + /sizeof(asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17_tags_219[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17_constr_219, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17_specs_219 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_218[] = { + { ATF_POINTER, 1, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext2, supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17_219, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportedDL-PRS-ProcessingSamples-RRC-Inactive-r17" + }, +}; +static const int asn_MAP_ext2_oms_218[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_218[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_218[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* supportedDL-PRS-ProcessingSamples-RRC-Inactive-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_218 = { + sizeof(struct PRS_ProcessingCapabilityPerBand_r16__ext2), + offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_218, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_218, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_218 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_218, + sizeof(asn_DEF_ext2_tags_218) + /sizeof(asn_DEF_ext2_tags_218[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_218, /* Same as above */ + sizeof(asn_DEF_ext2_tags_218) + /sizeof(asn_DEF_ext2_tags_218[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_218, + 1, /* Elements count */ + &asn_SPC_ext2_specs_218 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_prs_MeasurementWithoutMG_r17_value2enum_222[] = { + { 0, 2, "cp" }, + { 1, 11, "symbolDot25" }, + { 2, 10, "symbolDot5" }, + { 3, 8, "slotDot5" } +}; +static const unsigned int asn_MAP_prs_MeasurementWithoutMG_r17_enum2value_222[] = { + 0, /* cp(0) */ + 3, /* slotDot5(3) */ + 1, /* symbolDot25(1) */ + 2 /* symbolDot5(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_prs_MeasurementWithoutMG_r17_specs_222 = { + asn_MAP_prs_MeasurementWithoutMG_r17_value2enum_222, /* "tag" => N; sorted by tag */ + asn_MAP_prs_MeasurementWithoutMG_r17_enum2value_222, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_prs_MeasurementWithoutMG_r17_tags_222[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_prs_MeasurementWithoutMG_r17_222 = { + "prs-MeasurementWithoutMG-r17", + "prs-MeasurementWithoutMG-r17", + &asn_OP_NativeEnumerated, + asn_DEF_prs_MeasurementWithoutMG_r17_tags_222, + sizeof(asn_DEF_prs_MeasurementWithoutMG_r17_tags_222) + /sizeof(asn_DEF_prs_MeasurementWithoutMG_r17_tags_222[0]) - 1, /* 1 */ + asn_DEF_prs_MeasurementWithoutMG_r17_tags_222, /* Same as above */ + sizeof(asn_DEF_prs_MeasurementWithoutMG_r17_tags_222) + /sizeof(asn_DEF_prs_MeasurementWithoutMG_r17_tags_222[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_prs_MeasurementWithoutMG_r17_constr_222, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_prs_MeasurementWithoutMG_r17_specs_222 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_221[] = { + { ATF_POINTER, 1, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext3, prs_MeasurementWithoutMG_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_prs_MeasurementWithoutMG_r17_222, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-MeasurementWithoutMG-r17" + }, +}; +static const int asn_MAP_ext3_oms_221[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_221[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_221[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* prs-MeasurementWithoutMG-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_221 = { + sizeof(struct PRS_ProcessingCapabilityPerBand_r16__ext3), + offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_221, + 1, /* Count of tags in the map */ + asn_MAP_ext3_oms_221, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_221 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_221, + sizeof(asn_DEF_ext3_tags_221) + /sizeof(asn_DEF_ext3_tags_221[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_221, /* Same as above */ + sizeof(asn_DEF_ext3_tags_221) + /sizeof(asn_DEF_ext3_tags_221[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_221, + 1, /* Elements count */ + &asn_SPC_ext3_specs_221 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs15_r18_value2enum_229[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs15_r18_enum2value_229[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs15_r18_specs_229 = { + asn_MAP_scs15_r18_value2enum_229, /* "tag" => N; sorted by tag */ + asn_MAP_scs15_r18_enum2value_229, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs15_r18_tags_229[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs15_r18_229 = { + "scs15-r18", + "scs15-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs15_r18_tags_229, + sizeof(asn_DEF_scs15_r18_tags_229) + /sizeof(asn_DEF_scs15_r18_tags_229[0]) - 1, /* 1 */ + asn_DEF_scs15_r18_tags_229, /* Same as above */ + sizeof(asn_DEF_scs15_r18_tags_229) + /sizeof(asn_DEF_scs15_r18_tags_229[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs15_r18_constr_229, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs15_r18_specs_229 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs30_r18_value2enum_241[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs30_r18_enum2value_241[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs30_r18_specs_241 = { + asn_MAP_scs30_r18_value2enum_241, /* "tag" => N; sorted by tag */ + asn_MAP_scs30_r18_enum2value_241, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs30_r18_tags_241[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs30_r18_241 = { + "scs30-r18", + "scs30-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs30_r18_tags_241, + sizeof(asn_DEF_scs30_r18_tags_241) + /sizeof(asn_DEF_scs30_r18_tags_241[0]) - 1, /* 1 */ + asn_DEF_scs30_r18_tags_241, /* Same as above */ + sizeof(asn_DEF_scs30_r18_tags_241) + /sizeof(asn_DEF_scs30_r18_tags_241[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs30_r18_constr_241, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs30_r18_specs_241 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs60_r18_value2enum_253[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs60_r18_enum2value_253[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs60_r18_specs_253 = { + asn_MAP_scs60_r18_value2enum_253, /* "tag" => N; sorted by tag */ + asn_MAP_scs60_r18_enum2value_253, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs60_r18_tags_253[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs60_r18_253 = { + "scs60-r18", + "scs60-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs60_r18_tags_253, + sizeof(asn_DEF_scs60_r18_tags_253) + /sizeof(asn_DEF_scs60_r18_tags_253[0]) - 1, /* 1 */ + asn_DEF_scs60_r18_tags_253, /* Same as above */ + sizeof(asn_DEF_scs60_r18_tags_253) + /sizeof(asn_DEF_scs60_r18_tags_253[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs60_r18_constr_253, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs60_r18_specs_253 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs120_r18_value2enum_265[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs120_r18_enum2value_265[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs120_r18_specs_265 = { + asn_MAP_scs120_r18_value2enum_265, /* "tag" => N; sorted by tag */ + asn_MAP_scs120_r18_enum2value_265, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs120_r18_tags_265[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs120_r18_265 = { + "scs120-r18", + "scs120-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs120_r18_tags_265, + sizeof(asn_DEF_scs120_r18_tags_265) + /sizeof(asn_DEF_scs120_r18_tags_265[0]) - 1, /* 1 */ + asn_DEF_scs120_r18_tags_265, /* Same as above */ + sizeof(asn_DEF_scs120_r18_tags_265) + /sizeof(asn_DEF_scs120_r18_tags_265[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs120_r18_constr_265, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs120_r18_specs_265 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18_228[] = { + { ATF_POINTER, 4, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18, scs15_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs15_r18_229, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs15-r18" + }, + { ATF_POINTER, 3, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18, scs30_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs30_r18_241, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs30-r18" + }, + { ATF_POINTER, 2, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18, scs60_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs60_r18_253, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs60-r18" + }, + { ATF_POINTER, 1, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18, scs120_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs120_r18_265, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs120-r18" + }, +}; +static const int asn_MAP_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18_oms_228[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18_tags_228[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18_tag2el_228[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* scs15-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* scs30-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* scs60-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* scs120-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18_specs_228 = { + sizeof(struct PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18), + offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18, _asn_ctx), + asn_MAP_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18_tag2el_228, + 4, /* Count of tags in the map */ + asn_MAP_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18_oms_228, /* Optional members */ + 4, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18_228 = { + "maxNumOfOneSymbolPRS-ResProcessedPerSlot-RRC-Inactive-r18", + "maxNumOfOneSymbolPRS-ResProcessedPerSlot-RRC-Inactive-r18", + &asn_OP_SEQUENCE, + asn_DEF_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18_tags_228, + sizeof(asn_DEF_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18_tags_228) + /sizeof(asn_DEF_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18_tags_228[0]) - 1, /* 1 */ + asn_DEF_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18_tags_228, /* Same as above */ + sizeof(asn_DEF_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18_tags_228) + /sizeof(asn_DEF_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18_tags_228[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18_228, + 4, /* Elements count */ + &asn_SPC_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18_specs_228 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs15_r18_value2enum_279[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs15_r18_enum2value_279[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs15_r18_specs_279 = { + asn_MAP_scs15_r18_value2enum_279, /* "tag" => N; sorted by tag */ + asn_MAP_scs15_r18_enum2value_279, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs15_r18_tags_279[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs15_r18_279 = { + "scs15-r18", + "scs15-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs15_r18_tags_279, + sizeof(asn_DEF_scs15_r18_tags_279) + /sizeof(asn_DEF_scs15_r18_tags_279[0]) - 1, /* 1 */ + asn_DEF_scs15_r18_tags_279, /* Same as above */ + sizeof(asn_DEF_scs15_r18_tags_279) + /sizeof(asn_DEF_scs15_r18_tags_279[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs15_r18_constr_279, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs15_r18_specs_279 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs30_r18_value2enum_291[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs30_r18_enum2value_291[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs30_r18_specs_291 = { + asn_MAP_scs30_r18_value2enum_291, /* "tag" => N; sorted by tag */ + asn_MAP_scs30_r18_enum2value_291, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs30_r18_tags_291[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs30_r18_291 = { + "scs30-r18", + "scs30-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs30_r18_tags_291, + sizeof(asn_DEF_scs30_r18_tags_291) + /sizeof(asn_DEF_scs30_r18_tags_291[0]) - 1, /* 1 */ + asn_DEF_scs30_r18_tags_291, /* Same as above */ + sizeof(asn_DEF_scs30_r18_tags_291) + /sizeof(asn_DEF_scs30_r18_tags_291[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs30_r18_constr_291, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs30_r18_specs_291 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs60_r18_value2enum_303[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs60_r18_enum2value_303[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs60_r18_specs_303 = { + asn_MAP_scs60_r18_value2enum_303, /* "tag" => N; sorted by tag */ + asn_MAP_scs60_r18_enum2value_303, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs60_r18_tags_303[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs60_r18_303 = { + "scs60-r18", + "scs60-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs60_r18_tags_303, + sizeof(asn_DEF_scs60_r18_tags_303) + /sizeof(asn_DEF_scs60_r18_tags_303[0]) - 1, /* 1 */ + asn_DEF_scs60_r18_tags_303, /* Same as above */ + sizeof(asn_DEF_scs60_r18_tags_303) + /sizeof(asn_DEF_scs60_r18_tags_303[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs60_r18_constr_303, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs60_r18_specs_303 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs120_r18_value2enum_315[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs120_r18_enum2value_315[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs120_r18_specs_315 = { + asn_MAP_scs120_r18_value2enum_315, /* "tag" => N; sorted by tag */ + asn_MAP_scs120_r18_enum2value_315, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs120_r18_tags_315[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs120_r18_315 = { + "scs120-r18", + "scs120-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs120_r18_tags_315, + sizeof(asn_DEF_scs120_r18_tags_315) + /sizeof(asn_DEF_scs120_r18_tags_315[0]) - 1, /* 1 */ + asn_DEF_scs120_r18_tags_315, /* Same as above */ + sizeof(asn_DEF_scs120_r18_tags_315) + /sizeof(asn_DEF_scs120_r18_tags_315[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs120_r18_constr_315, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs120_r18_specs_315 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18_278[] = { + { ATF_POINTER, 4, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18, scs15_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs15_r18_279, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs15-r18" + }, + { ATF_POINTER, 3, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18, scs30_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs30_r18_291, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs30-r18" + }, + { ATF_POINTER, 2, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18, scs60_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs60_r18_303, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs60-r18" + }, + { ATF_POINTER, 1, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18, scs120_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs120_r18_315, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs120-r18" + }, +}; +static const int asn_MAP_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18_oms_278[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18_tags_278[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18_tag2el_278[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* scs15-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* scs30-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* scs60-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* scs120-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18_specs_278 = { + sizeof(struct PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18), + offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18, _asn_ctx), + asn_MAP_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18_tag2el_278, + 4, /* Count of tags in the map */ + asn_MAP_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18_oms_278, /* Optional members */ + 4, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18_278 = { + "maxNumOfOneSymbolPRS-ResProcessedPerSlot-RRC-Connected-r18", + "maxNumOfOneSymbolPRS-ResProcessedPerSlot-RRC-Connected-r18", + &asn_OP_SEQUENCE, + asn_DEF_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18_tags_278, + sizeof(asn_DEF_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18_tags_278) + /sizeof(asn_DEF_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18_tags_278[0]) - 1, /* 1 */ + asn_DEF_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18_tags_278, /* Same as above */ + sizeof(asn_DEF_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18_tags_278) + /sizeof(asn_DEF_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18_tags_278[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18_278, + 4, /* Elements count */ + &asn_SPC_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18_specs_278 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs15_r18_value2enum_329[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs15_r18_enum2value_329[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs15_r18_specs_329 = { + asn_MAP_scs15_r18_value2enum_329, /* "tag" => N; sorted by tag */ + asn_MAP_scs15_r18_enum2value_329, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs15_r18_tags_329[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs15_r18_329 = { + "scs15-r18", + "scs15-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs15_r18_tags_329, + sizeof(asn_DEF_scs15_r18_tags_329) + /sizeof(asn_DEF_scs15_r18_tags_329[0]) - 1, /* 1 */ + asn_DEF_scs15_r18_tags_329, /* Same as above */ + sizeof(asn_DEF_scs15_r18_tags_329) + /sizeof(asn_DEF_scs15_r18_tags_329[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs15_r18_constr_329, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs15_r18_specs_329 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs30_r18_value2enum_341[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs30_r18_enum2value_341[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs30_r18_specs_341 = { + asn_MAP_scs30_r18_value2enum_341, /* "tag" => N; sorted by tag */ + asn_MAP_scs30_r18_enum2value_341, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs30_r18_tags_341[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs30_r18_341 = { + "scs30-r18", + "scs30-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs30_r18_tags_341, + sizeof(asn_DEF_scs30_r18_tags_341) + /sizeof(asn_DEF_scs30_r18_tags_341[0]) - 1, /* 1 */ + asn_DEF_scs30_r18_tags_341, /* Same as above */ + sizeof(asn_DEF_scs30_r18_tags_341) + /sizeof(asn_DEF_scs30_r18_tags_341[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs30_r18_constr_341, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs30_r18_specs_341 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs60_r18_value2enum_353[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs60_r18_enum2value_353[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs60_r18_specs_353 = { + asn_MAP_scs60_r18_value2enum_353, /* "tag" => N; sorted by tag */ + asn_MAP_scs60_r18_enum2value_353, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs60_r18_tags_353[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs60_r18_353 = { + "scs60-r18", + "scs60-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs60_r18_tags_353, + sizeof(asn_DEF_scs60_r18_tags_353) + /sizeof(asn_DEF_scs60_r18_tags_353[0]) - 1, /* 1 */ + asn_DEF_scs60_r18_tags_353, /* Same as above */ + sizeof(asn_DEF_scs60_r18_tags_353) + /sizeof(asn_DEF_scs60_r18_tags_353[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs60_r18_constr_353, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs60_r18_specs_353 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_scs120_r18_value2enum_365[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n6" }, + { 4, 2, "n8" }, + { 5, 3, "n12" }, + { 6, 3, "n16" }, + { 7, 3, "n24" }, + { 8, 3, "n32" }, + { 9, 3, "n48" }, + { 10, 3, "n64" } +}; +static const unsigned int asn_MAP_scs120_r18_enum2value_365[] = { + 0, /* n1(0) */ + 5, /* n12(5) */ + 6, /* n16(6) */ + 1, /* n2(1) */ + 7, /* n24(7) */ + 8, /* n32(8) */ + 2, /* n4(2) */ + 9, /* n48(9) */ + 3, /* n6(3) */ + 10, /* n64(10) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_scs120_r18_specs_365 = { + asn_MAP_scs120_r18_value2enum_365, /* "tag" => N; sorted by tag */ + asn_MAP_scs120_r18_enum2value_365, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_scs120_r18_tags_365[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_scs120_r18_365 = { + "scs120-r18", + "scs120-r18", + &asn_OP_NativeEnumerated, + asn_DEF_scs120_r18_tags_365, + sizeof(asn_DEF_scs120_r18_tags_365) + /sizeof(asn_DEF_scs120_r18_tags_365[0]) - 1, /* 1 */ + asn_DEF_scs120_r18_tags_365, /* Same as above */ + sizeof(asn_DEF_scs120_r18_tags_365) + /sizeof(asn_DEF_scs120_r18_tags_365[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_scs120_r18_constr_365, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_scs120_r18_specs_365 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18_328[] = { + { ATF_POINTER, 4, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18, scs15_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs15_r18_329, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs15-r18" + }, + { ATF_POINTER, 3, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18, scs30_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs30_r18_341, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs30-r18" + }, + { ATF_POINTER, 2, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18, scs60_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs60_r18_353, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs60-r18" + }, + { ATF_POINTER, 1, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18, scs120_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_scs120_r18_365, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scs120-r18" + }, +}; +static const int asn_MAP_ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18_oms_328[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18_tags_328[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18_tag2el_328[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* scs15-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* scs30-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* scs60-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* scs120-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18_specs_328 = { + sizeof(struct PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18), + offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18, _asn_ctx), + asn_MAP_ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18_tag2el_328, + 4, /* Count of tags in the map */ + asn_MAP_ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18_oms_328, /* Optional members */ + 4, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18_328 = { + "ppw-maxNumOfOneSymbolPRS-ResProcessedPerSlot-r18", + "ppw-maxNumOfOneSymbolPRS-ResProcessedPerSlot-r18", + &asn_OP_SEQUENCE, + asn_DEF_ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18_tags_328, + sizeof(asn_DEF_ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18_tags_328) + /sizeof(asn_DEF_ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18_tags_328[0]) - 1, /* 1 */ + asn_DEF_ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18_tags_328, /* Same as above */ + sizeof(asn_DEF_ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18_tags_328) + /sizeof(asn_DEF_ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18_tags_328[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18_328, + 4, /* Elements count */ + &asn_SPC_ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18_specs_328 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18_value2enum_382[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18_enum2value_382[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18_specs_382 = { + asn_MAP_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18_value2enum_382, /* "tag" => N; sorted by tag */ + asn_MAP_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18_enum2value_382, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18_tags_382[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18_382 = { + "reducedNumOfSampleInMeasurementWithPRS-BWA-RRC-Connected-r18", + "reducedNumOfSampleInMeasurementWithPRS-BWA-RRC-Connected-r18", + &asn_OP_NativeEnumerated, + asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18_tags_382, + sizeof(asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18_tags_382) + /sizeof(asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18_tags_382[0]) - 1, /* 1 */ + asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18_tags_382, /* Same as above */ + sizeof(asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18_tags_382) + /sizeof(asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18_tags_382[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18_constr_382, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18_specs_382 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18_value2enum_384[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18_enum2value_384[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18_specs_384 = { + asn_MAP_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18_value2enum_384, /* "tag" => N; sorted by tag */ + asn_MAP_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18_enum2value_384, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18_tags_384[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18_384 = { + "reducedNumOfSampleInMeasurementWithPRS-BWA-RRC-IdleAndInactive-r18", + "reducedNumOfSampleInMeasurementWithPRS-BWA-RRC-IdleAndInactive-r18", + &asn_OP_NativeEnumerated, + asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18_tags_384, + sizeof(asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18_tags_384) + /sizeof(asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18_tags_384[0]) - 1, /* 1 */ + asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18_tags_384, /* Same as above */ + sizeof(asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18_tags_384) + /sizeof(asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18_tags_384[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18_constr_384, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18_specs_384 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18_value2enum_386[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18_enum2value_386[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18_specs_386 = { + asn_MAP_dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18_value2enum_386, /* "tag" => N; sorted by tag */ + asn_MAP_dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18_enum2value_386, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18_tags_386[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18_386 = { + "dl-PRS-MeasurementWithRxFH-RRC-Inactive-r18", + "dl-PRS-MeasurementWithRxFH-RRC-Inactive-r18", + &asn_OP_NativeEnumerated, + asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18_tags_386, + sizeof(asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18_tags_386) + /sizeof(asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18_tags_386[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18_tags_386, /* Same as above */ + sizeof(asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18_tags_386) + /sizeof(asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18_tags_386[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18_constr_386, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18_specs_386 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dl_PRS_MeasurementWithRxFH_RRC_Idle_r18_value2enum_388[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_dl_PRS_MeasurementWithRxFH_RRC_Idle_r18_enum2value_388[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dl_PRS_MeasurementWithRxFH_RRC_Idle_r18_specs_388 = { + asn_MAP_dl_PRS_MeasurementWithRxFH_RRC_Idle_r18_value2enum_388, /* "tag" => N; sorted by tag */ + asn_MAP_dl_PRS_MeasurementWithRxFH_RRC_Idle_r18_enum2value_388, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Idle_r18_tags_388[] = { + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Idle_r18_388 = { + "dl-PRS-MeasurementWithRxFH-RRC-Idle-r18", + "dl-PRS-MeasurementWithRxFH-RRC-Idle-r18", + &asn_OP_NativeEnumerated, + asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Idle_r18_tags_388, + sizeof(asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Idle_r18_tags_388) + /sizeof(asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Idle_r18_tags_388[0]) - 1, /* 1 */ + asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Idle_r18_tags_388, /* Same as above */ + sizeof(asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Idle_r18_tags_388) + /sizeof(asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Idle_r18_tags_388[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dl_PRS_MeasurementWithRxFH_RRC_Idle_r18_constr_388, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dl_PRS_MeasurementWithRxFH_RRC_Idle_r18_specs_388 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18_value2enum_390[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18_enum2value_390[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18_specs_390 = { + asn_MAP_reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18_value2enum_390, /* "tag" => N; sorted by tag */ + asn_MAP_reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18_enum2value_390, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18_tags_390[] = { + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18_390 = { + "reducedNumOfSampleForMeasurementWithFH-RRC-Connected-r18", + "reducedNumOfSampleForMeasurementWithFH-RRC-Connected-r18", + &asn_OP_NativeEnumerated, + asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18_tags_390, + sizeof(asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18_tags_390) + /sizeof(asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18_tags_390[0]) - 1, /* 1 */ + asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18_tags_390, /* Same as above */ + sizeof(asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18_tags_390) + /sizeof(asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18_tags_390[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18_constr_390, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18_specs_390 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18_value2enum_392[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18_enum2value_392[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18_specs_392 = { + asn_MAP_reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18_value2enum_392, /* "tag" => N; sorted by tag */ + asn_MAP_reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18_enum2value_392, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18_tags_392[] = { + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18_392 = { + "reducedNumOfSampleForMeasurementWithFH-RRC-IdleAndInactive-r18", + "reducedNumOfSampleForMeasurementWithFH-RRC-IdleAndInactive-r18", + &asn_OP_NativeEnumerated, + asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18_tags_392, + sizeof(asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18_tags_392) + /sizeof(asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18_tags_392[0]) - 1, /* 1 */ + asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18_tags_392, /* Same as above */ + sizeof(asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18_tags_392) + /sizeof(asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18_tags_392[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18_constr_392, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18_specs_392 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfPRS_BWA_WithTwoPFL_Combination_r18_value2enum_394[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfPRS_BWA_WithTwoPFL_Combination_r18_enum2value_394[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfPRS_BWA_WithTwoPFL_Combination_r18_specs_394 = { + asn_MAP_supportOfPRS_BWA_WithTwoPFL_Combination_r18_value2enum_394, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfPRS_BWA_WithTwoPFL_Combination_r18_enum2value_394, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfPRS_BWA_WithTwoPFL_Combination_r18_tags_394[] = { + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfPRS_BWA_WithTwoPFL_Combination_r18_394 = { + "supportOfPRS-BWA-WithTwoPFL-Combination-r18", + "supportOfPRS-BWA-WithTwoPFL-Combination-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfPRS_BWA_WithTwoPFL_Combination_r18_tags_394, + sizeof(asn_DEF_supportOfPRS_BWA_WithTwoPFL_Combination_r18_tags_394) + /sizeof(asn_DEF_supportOfPRS_BWA_WithTwoPFL_Combination_r18_tags_394[0]) - 1, /* 1 */ + asn_DEF_supportOfPRS_BWA_WithTwoPFL_Combination_r18_tags_394, /* Same as above */ + sizeof(asn_DEF_supportOfPRS_BWA_WithTwoPFL_Combination_r18_tags_394) + /sizeof(asn_DEF_supportOfPRS_BWA_WithTwoPFL_Combination_r18_tags_394[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfPRS_BWA_WithTwoPFL_Combination_r18_constr_394, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfPRS_BWA_WithTwoPFL_Combination_r18_specs_394 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfPRS_MeasurementRRC_Idle_r18_value2enum_397[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfPRS_MeasurementRRC_Idle_r18_enum2value_397[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfPRS_MeasurementRRC_Idle_r18_specs_397 = { + asn_MAP_supportOfPRS_MeasurementRRC_Idle_r18_value2enum_397, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfPRS_MeasurementRRC_Idle_r18_enum2value_397, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfPRS_MeasurementRRC_Idle_r18_tags_397[] = { + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfPRS_MeasurementRRC_Idle_r18_397 = { + "supportOfPRS-MeasurementRRC-Idle-r18", + "supportOfPRS-MeasurementRRC-Idle-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfPRS_MeasurementRRC_Idle_r18_tags_397, + sizeof(asn_DEF_supportOfPRS_MeasurementRRC_Idle_r18_tags_397) + /sizeof(asn_DEF_supportOfPRS_MeasurementRRC_Idle_r18_tags_397[0]) - 1, /* 1 */ + asn_DEF_supportOfPRS_MeasurementRRC_Idle_r18_tags_397, /* Same as above */ + sizeof(asn_DEF_supportOfPRS_MeasurementRRC_Idle_r18_tags_397) + /sizeof(asn_DEF_supportOfPRS_MeasurementRRC_Idle_r18_tags_397[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfPRS_MeasurementRRC_Idle_r18_constr_397, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfPRS_MeasurementRRC_Idle_r18_specs_397 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext4_227[] = { + { ATF_POINTER, 16, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4, maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18_228, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfOneSymbolPRS-ResProcessedPerSlot-RRC-Inactive-r18" + }, + { ATF_POINTER, 15, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4, maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18_278, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfOneSymbolPRS-ResProcessedPerSlot-RRC-Connected-r18" + }, + { ATF_POINTER, 14, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4, ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18_328, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ppw-maxNumOfOneSymbolPRS-ResProcessedPerSlot-r18" + }, + { ATF_POINTER, 13, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4, prs_BWA_TwoContiguousIntrabandInMG_RRC_Connected_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PRS_BWA_TwoContiguousIntrabandInMG_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-BWA-TwoContiguousIntrabandInMG-RRC-Connected-r18" + }, + { ATF_POINTER, 12, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4, prs_BWA_ThreeContiguousIntrabandInMG_RRC_Connected_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PRS_BWA_ThreeContiguousIntrabandInMG_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-BWA-ThreeContiguousIntrabandInMG-RRC-Connected-r18" + }, + { ATF_POINTER, 11, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4, prs_BWA_TwoContiguousIntrabandInMG_RRC_IdleAndInactive_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PRS_BWA_TwoContiguousIntrabandInMG_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-BWA-TwoContiguousIntrabandInMG-RRC-IdleAndInactive-r18" + }, + { ATF_POINTER, 10, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4, prs_BWA_ThreeContiguousIntrabandInMG_RRC_IdleAndInactive_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PRS_BWA_ThreeContiguousIntrabandInMG_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prs-BWA-ThreeContiguousIntrabandInMG-RRC-IdleAndInactive-r18" + }, + { ATF_POINTER, 9, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4, reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18_382, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reducedNumOfSampleInMeasurementWithPRS-BWA-RRC-Connected-r18" + }, + { ATF_POINTER, 8, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4, reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18_384, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reducedNumOfSampleInMeasurementWithPRS-BWA-RRC-IdleAndInactive-r18" + }, + { ATF_POINTER, 7, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4, dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18_386, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-MeasurementWithRxFH-RRC-Inactive-r18" + }, + { ATF_POINTER, 6, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4, dl_PRS_MeasurementWithRxFH_RRC_Idle_r18), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Idle_r18_388, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-MeasurementWithRxFH-RRC-Idle-r18" + }, + { ATF_POINTER, 5, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4, reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18_390, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reducedNumOfSampleForMeasurementWithFH-RRC-Connected-r18" + }, + { ATF_POINTER, 4, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4, reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18_392, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reducedNumOfSampleForMeasurementWithFH-RRC-IdleAndInactive-r18" + }, + { ATF_POINTER, 3, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4, supportOfPRS_BWA_WithTwoPFL_Combination_r18), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfPRS_BWA_WithTwoPFL_Combination_r18_394, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfPRS-BWA-WithTwoPFL-Combination-r18" + }, + { ATF_POINTER, 2, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4, dl_PRS_MeasurementWithRxFH_RRC_Connected_r18), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DL_PRS_MeasurementWithRxFH_RRC_Connected_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-MeasurementWithRxFH-RRC-Connected-r18" + }, + { ATF_POINTER, 1, offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4, supportOfPRS_MeasurementRRC_Idle_r18), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfPRS_MeasurementRRC_Idle_r18_397, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfPRS-MeasurementRRC-Idle-r18" + }, +}; +static const int asn_MAP_ext4_oms_227[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; +static const ber_tlv_tag_t asn_DEF_ext4_tags_227[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext4_tag2el_227[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxNumOfOneSymbolPRS-ResProcessedPerSlot-RRC-Inactive-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxNumOfOneSymbolPRS-ResProcessedPerSlot-RRC-Connected-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ppw-maxNumOfOneSymbolPRS-ResProcessedPerSlot-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* prs-BWA-TwoContiguousIntrabandInMG-RRC-Connected-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* prs-BWA-ThreeContiguousIntrabandInMG-RRC-Connected-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* prs-BWA-TwoContiguousIntrabandInMG-RRC-IdleAndInactive-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* prs-BWA-ThreeContiguousIntrabandInMG-RRC-IdleAndInactive-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* reducedNumOfSampleInMeasurementWithPRS-BWA-RRC-Connected-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* reducedNumOfSampleInMeasurementWithPRS-BWA-RRC-IdleAndInactive-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* dl-PRS-MeasurementWithRxFH-RRC-Inactive-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* dl-PRS-MeasurementWithRxFH-RRC-Idle-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* reducedNumOfSampleForMeasurementWithFH-RRC-Connected-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* reducedNumOfSampleForMeasurementWithFH-RRC-IdleAndInactive-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* supportOfPRS-BWA-WithTwoPFL-Combination-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* dl-PRS-MeasurementWithRxFH-RRC-Connected-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 } /* supportOfPRS-MeasurementRRC-Idle-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext4_specs_227 = { + sizeof(struct PRS_ProcessingCapabilityPerBand_r16__ext4), + offsetof(struct PRS_ProcessingCapabilityPerBand_r16__ext4, _asn_ctx), + asn_MAP_ext4_tag2el_227, + 16, /* Count of tags in the map */ + asn_MAP_ext4_oms_227, /* Optional members */ + 16, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext4_227 = { + "ext4", + "ext4", + &asn_OP_SEQUENCE, + asn_DEF_ext4_tags_227, + sizeof(asn_DEF_ext4_tags_227) + /sizeof(asn_DEF_ext4_tags_227[0]) - 1, /* 1 */ + asn_DEF_ext4_tags_227, /* Same as above */ + sizeof(asn_DEF_ext4_tags_227) + /sizeof(asn_DEF_ext4_tags_227[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext4_227, + 16, /* Elements count */ + &asn_SPC_ext4_specs_227 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_PRS_ProcessingCapabilityPerBand_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityPerBand_r16, freqBandIndicatorNR_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FreqBandIndicatorNR_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "freqBandIndicatorNR-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityPerBand_r16, supportedBandwidthPRS_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_supportedBandwidthPRS_r16_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportedBandwidthPRS-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityPerBand_r16, dl_PRS_BufferType_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dl_PRS_BufferType_r16_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dl-PRS-BufferType-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityPerBand_r16, durationOfPRS_Processing_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_durationOfPRS_Processing_r16_22, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "durationOfPRS-Processing-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct PRS_ProcessingCapabilityPerBand_r16, maxNumOfDL_PRS_ResProcessedPerSlot_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_maxNumOfDL_PRS_ResProcessedPerSlot_r16_54, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfDL-PRS-ResProcessedPerSlot-r16" + }, + { ATF_POINTER, 4, offsetof(struct PRS_ProcessingCapabilityPerBand_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext1_110, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 3, offsetof(struct PRS_ProcessingCapabilityPerBand_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext2_218, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 2, offsetof(struct PRS_ProcessingCapabilityPerBand_r16, ext3), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_ext3_221, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, + { ATF_POINTER, 1, offsetof(struct PRS_ProcessingCapabilityPerBand_r16, ext4), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + 0, + &asn_DEF_ext4_227, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext4" + }, +}; +static const int asn_MAP_PRS_ProcessingCapabilityPerBand_r16_oms_1[] = { 5, 6, 7, 8 }; +static const ber_tlv_tag_t asn_DEF_PRS_ProcessingCapabilityPerBand_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PRS_ProcessingCapabilityPerBand_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* freqBandIndicatorNR-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* supportedBandwidthPRS-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dl-PRS-BufferType-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* durationOfPRS-Processing-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* maxNumOfDL-PRS-ResProcessedPerSlot-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ext3 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* ext4 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PRS_ProcessingCapabilityPerBand_r16_specs_1 = { + sizeof(struct PRS_ProcessingCapabilityPerBand_r16), + offsetof(struct PRS_ProcessingCapabilityPerBand_r16, _asn_ctx), + asn_MAP_PRS_ProcessingCapabilityPerBand_r16_tag2el_1, + 9, /* Count of tags in the map */ + asn_MAP_PRS_ProcessingCapabilityPerBand_r16_oms_1, /* Optional members */ + 0, 4, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PRS_ProcessingCapabilityPerBand_r16 = { + "PRS-ProcessingCapabilityPerBand-r16", + "PRS-ProcessingCapabilityPerBand-r16", + &asn_OP_SEQUENCE, + asn_DEF_PRS_ProcessingCapabilityPerBand_r16_tags_1, + sizeof(asn_DEF_PRS_ProcessingCapabilityPerBand_r16_tags_1) + /sizeof(asn_DEF_PRS_ProcessingCapabilityPerBand_r16_tags_1[0]), /* 1 */ + asn_DEF_PRS_ProcessingCapabilityPerBand_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_PRS_ProcessingCapabilityPerBand_r16_tags_1) + /sizeof(asn_DEF_PRS_ProcessingCapabilityPerBand_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PRS_ProcessingCapabilityPerBand_r16_1, + 9, /* Elements count */ + &asn_SPC_PRS_ProcessingCapabilityPerBand_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/PRS-ProcessingCapabilityPerBand-r16.h b/asn.1/lpp_generated/PRS-ProcessingCapabilityPerBand-r16.h new file mode 100644 index 00000000..f71917e6 --- /dev/null +++ b/asn.1/lpp_generated/PRS-ProcessingCapabilityPerBand-r16.h @@ -0,0 +1,686 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _PRS_ProcessingCapabilityPerBand_r16_H_ +#define _PRS_ProcessingCapabilityPerBand_r16_H_ + + +#include + +/* Including external dependencies */ +#include "FreqBandIndicatorNR-r16.h" +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16_PR { + PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16_PR_NOTHING, /* No components present */ + PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16_PR_fr1, + PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16_PR_fr2 + /* Extensions may appear below */ + +} PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16_PR; +typedef enum PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16__fr1 { + PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16__fr1_mhz5 = 0, + PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16__fr1_mhz10 = 1, + PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16__fr1_mhz20 = 2, + PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16__fr1_mhz40 = 3, + PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16__fr1_mhz50 = 4, + PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16__fr1_mhz80 = 5, + PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16__fr1_mhz100 = 6 +} e_PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16__fr1; +typedef enum PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16__fr2 { + PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16__fr2_mhz50 = 0, + PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16__fr2_mhz100 = 1, + PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16__fr2_mhz200 = 2, + PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16__fr2_mhz400 = 3 +} e_PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16__fr2; +typedef enum PRS_ProcessingCapabilityPerBand_r16__dl_PRS_BufferType_r16 { + PRS_ProcessingCapabilityPerBand_r16__dl_PRS_BufferType_r16_type1 = 0, + PRS_ProcessingCapabilityPerBand_r16__dl_PRS_BufferType_r16_type2 = 1 + /* + * Enumeration is extensible + */ +} e_PRS_ProcessingCapabilityPerBand_r16__dl_PRS_BufferType_r16; +typedef enum PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16 { + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16_nDot125 = 0, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16_nDot25 = 1, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16_nDot5 = 2, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16_n1 = 3, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16_n2 = 4, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16_n4 = 5, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16_n6 = 6, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16_n8 = 7, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16_n12 = 8, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16_n16 = 9, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16_n20 = 10, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16_n25 = 11, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16_n30 = 12, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16_n32 = 13, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16_n35 = 14, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16_n40 = 15, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16_n45 = 16, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16_n50 = 17 +} e_PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbols_r16; +typedef enum PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbolsInEveryTms_r16 { + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbolsInEveryTms_r16_n8 = 0, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbolsInEveryTms_r16_n16 = 1, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbolsInEveryTms_r16_n20 = 2, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbolsInEveryTms_r16_n30 = 3, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbolsInEveryTms_r16_n40 = 4, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbolsInEveryTms_r16_n80 = 5, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbolsInEveryTms_r16_n160 = 6, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbolsInEveryTms_r16_n320 = 7, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbolsInEveryTms_r16_n640 = 8, + PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbolsInEveryTms_r16_n1280 = 9 +} e_PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16__durationOfPRS_ProcessingSymbolsInEveryTms_r16; +typedef enum PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs15_r16 { + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs15_r16_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs15_r16_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs15_r16_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs15_r16_n8 = 3, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs15_r16_n16 = 4, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs15_r16_n24 = 5, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs15_r16_n32 = 6, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs15_r16_n48 = 7, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs15_r16_n64 = 8 +} e_PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs15_r16; +typedef enum PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs30_r16 { + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs30_r16_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs30_r16_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs30_r16_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs30_r16_n8 = 3, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs30_r16_n16 = 4, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs30_r16_n24 = 5, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs30_r16_n32 = 6, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs30_r16_n48 = 7, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs30_r16_n64 = 8 +} e_PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs30_r16; +typedef enum PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs60_r16 { + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs60_r16_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs60_r16_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs60_r16_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs60_r16_n8 = 3, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs60_r16_n16 = 4, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs60_r16_n24 = 5, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs60_r16_n32 = 6, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs60_r16_n48 = 7, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs60_r16_n64 = 8 +} e_PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs60_r16; +typedef enum PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs120_r16 { + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs120_r16_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs120_r16_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs120_r16_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs120_r16_n8 = 3, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs120_r16_n16 = 4, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs120_r16_n24 = 5, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs120_r16_n32 = 6, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs120_r16_n48 = 7, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs120_r16_n64 = 8 +} e_PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__scs120_r16; +typedef enum PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1__scs15_v1690 { + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1__scs15_v1690_n6 = 0, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1__scs15_v1690_n12 = 1 +} e_PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1__scs15_v1690; +typedef enum PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1__scs30_v1690 { + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1__scs30_v1690_n6 = 0, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1__scs30_v1690_n12 = 1 +} e_PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1__scs30_v1690; +typedef enum PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1__scs60_v1690 { + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1__scs60_v1690_n6 = 0, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1__scs60_v1690_n12 = 1 +} e_PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1__scs60_v1690; +typedef enum PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1__scs120_v1690 { + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1__scs120_v1690_n6 = 0, + PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1__scs120_v1690_n12 = 1 +} e_PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1__scs120_v1690; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext1__supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17 { + PRS_ProcessingCapabilityPerBand_r16__ext1__supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17_supported = 0 +} e_PRS_ProcessingCapabilityPerBand_r16__ext1__supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext1__prs_ProcessingWindowType1A_r17 { + PRS_ProcessingCapabilityPerBand_r16__ext1__prs_ProcessingWindowType1A_r17_option1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext1__prs_ProcessingWindowType1A_r17_option2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext1__prs_ProcessingWindowType1A_r17_option3 = 2 +} e_PRS_ProcessingCapabilityPerBand_r16__ext1__prs_ProcessingWindowType1A_r17; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext1__prs_ProcessingWindowType1B_r17 { + PRS_ProcessingCapabilityPerBand_r16__ext1__prs_ProcessingWindowType1B_r17_option1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext1__prs_ProcessingWindowType1B_r17_option2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext1__prs_ProcessingWindowType1B_r17_option3 = 2 +} e_PRS_ProcessingCapabilityPerBand_r16__ext1__prs_ProcessingWindowType1B_r17; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext1__prs_ProcessingWindowType2_r17 { + PRS_ProcessingCapabilityPerBand_r16__ext1__prs_ProcessingWindowType2_r17_option1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext1__prs_ProcessingWindowType2_r17_option2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext1__prs_ProcessingWindowType2_r17_option3 = 2 +} e_PRS_ProcessingCapabilityPerBand_r16__ext1__prs_ProcessingWindowType2_r17; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext1__dl_PRS_BufferType_RRC_Inactive_r17 { + PRS_ProcessingCapabilityPerBand_r16__ext1__dl_PRS_BufferType_RRC_Inactive_r17_type1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext1__dl_PRS_BufferType_RRC_Inactive_r17_type2 = 1 + /* + * Enumeration is extensible + */ +} e_PRS_ProcessingCapabilityPerBand_r16__ext1__dl_PRS_BufferType_RRC_Inactive_r17; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17 { + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17_nDot125 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17_nDot25 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17_nDot5 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17_n1 = 3, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17_n2 = 4, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17_n4 = 5, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17_n6 = 6, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17_n8 = 7, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17_n12 = 8, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17_n16 = 9, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17_n20 = 10, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17_n25 = 11, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17_n30 = 12, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17_n32 = 13, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17_n35 = 14, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17_n40 = 15, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17_n45 = 16, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17_n50 = 17 +} e_PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbols_r17; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbolsInEveryTms_r17 { + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbolsInEveryTms_r17_n8 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbolsInEveryTms_r17_n16 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbolsInEveryTms_r17_n20 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbolsInEveryTms_r17_n30 = 3, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbolsInEveryTms_r17_n40 = 4, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbolsInEveryTms_r17_n80 = 5, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbolsInEveryTms_r17_n160 = 6, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbolsInEveryTms_r17_n320 = 7, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbolsInEveryTms_r17_n640 = 8, + PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbolsInEveryTms_r17_n1280 = 9 +} e_PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17__durationOfPRS_ProcessingSymbolsInEveryTms_r17; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs15_r17 { + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs15_r17_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs15_r17_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs15_r17_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs15_r17_n6 = 3, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs15_r17_n8 = 4, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs15_r17_n12 = 5, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs15_r17_n16 = 6, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs15_r17_n24 = 7, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs15_r17_n32 = 8, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs15_r17_n48 = 9, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs15_r17_n64 = 10 +} e_PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs15_r17; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs30_r17 { + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs30_r17_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs30_r17_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs30_r17_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs30_r17_n6 = 3, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs30_r17_n8 = 4, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs30_r17_n12 = 5, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs30_r17_n16 = 6, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs30_r17_n24 = 7, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs30_r17_n32 = 8, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs30_r17_n48 = 9, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs30_r17_n64 = 10 +} e_PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs30_r17; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs60_r17 { + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs60_r17_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs60_r17_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs60_r17_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs60_r17_n6 = 3, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs60_r17_n8 = 4, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs60_r17_n12 = 5, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs60_r17_n16 = 6, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs60_r17_n24 = 7, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs60_r17_n32 = 8, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs60_r17_n48 = 9, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs60_r17_n64 = 10 +} e_PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs60_r17; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs120_r17 { + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs120_r17_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs120_r17_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs120_r17_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs120_r17_n6 = 3, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs120_r17_n8 = 4, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs120_r17_n12 = 5, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs120_r17_n16 = 6, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs120_r17_n24 = 7, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs120_r17_n32 = 8, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs120_r17_n48 = 9, + PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs120_r17_n64 = 10 +} e_PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17__scs120_r17; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext1__supportedLowerRxBeamSweepingFactor_FR2_r17 { + PRS_ProcessingCapabilityPerBand_r16__ext1__supportedLowerRxBeamSweepingFactor_FR2_r17_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext1__supportedLowerRxBeamSweepingFactor_FR2_r17_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext1__supportedLowerRxBeamSweepingFactor_FR2_r17_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext1__supportedLowerRxBeamSweepingFactor_FR2_r17_n6 = 3 +} e_PRS_ProcessingCapabilityPerBand_r16__ext1__supportedLowerRxBeamSweepingFactor_FR2_r17; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext2__supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17 { + PRS_ProcessingCapabilityPerBand_r16__ext2__supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17_supported = 0 +} e_PRS_ProcessingCapabilityPerBand_r16__ext2__supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext3__prs_MeasurementWithoutMG_r17 { + PRS_ProcessingCapabilityPerBand_r16__ext3__prs_MeasurementWithoutMG_r17_cp = 0, + PRS_ProcessingCapabilityPerBand_r16__ext3__prs_MeasurementWithoutMG_r17_symbolDot25 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext3__prs_MeasurementWithoutMG_r17_symbolDot5 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext3__prs_MeasurementWithoutMG_r17_slotDot5 = 3 +} e_PRS_ProcessingCapabilityPerBand_r16__ext3__prs_MeasurementWithoutMG_r17; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs15_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs15_r18_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs15_r18_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs15_r18_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs15_r18_n6 = 3, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs15_r18_n8 = 4, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs15_r18_n12 = 5, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs15_r18_n16 = 6, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs15_r18_n24 = 7, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs15_r18_n32 = 8, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs15_r18_n48 = 9, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs15_r18_n64 = 10 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs15_r18; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs30_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs30_r18_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs30_r18_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs30_r18_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs30_r18_n6 = 3, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs30_r18_n8 = 4, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs30_r18_n12 = 5, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs30_r18_n16 = 6, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs30_r18_n24 = 7, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs30_r18_n32 = 8, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs30_r18_n48 = 9, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs30_r18_n64 = 10 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs30_r18; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs60_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs60_r18_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs60_r18_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs60_r18_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs60_r18_n6 = 3, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs60_r18_n8 = 4, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs60_r18_n12 = 5, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs60_r18_n16 = 6, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs60_r18_n24 = 7, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs60_r18_n32 = 8, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs60_r18_n48 = 9, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs60_r18_n64 = 10 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs60_r18; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs120_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs120_r18_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs120_r18_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs120_r18_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs120_r18_n6 = 3, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs120_r18_n8 = 4, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs120_r18_n12 = 5, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs120_r18_n16 = 6, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs120_r18_n24 = 7, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs120_r18_n32 = 8, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs120_r18_n48 = 9, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs120_r18_n64 = 10 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18__scs120_r18; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs15_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs15_r18_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs15_r18_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs15_r18_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs15_r18_n6 = 3, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs15_r18_n8 = 4, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs15_r18_n12 = 5, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs15_r18_n16 = 6, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs15_r18_n24 = 7, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs15_r18_n32 = 8, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs15_r18_n48 = 9, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs15_r18_n64 = 10 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs15_r18; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs30_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs30_r18_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs30_r18_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs30_r18_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs30_r18_n6 = 3, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs30_r18_n8 = 4, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs30_r18_n12 = 5, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs30_r18_n16 = 6, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs30_r18_n24 = 7, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs30_r18_n32 = 8, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs30_r18_n48 = 9, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs30_r18_n64 = 10 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs30_r18; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs60_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs60_r18_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs60_r18_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs60_r18_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs60_r18_n6 = 3, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs60_r18_n8 = 4, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs60_r18_n12 = 5, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs60_r18_n16 = 6, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs60_r18_n24 = 7, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs60_r18_n32 = 8, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs60_r18_n48 = 9, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs60_r18_n64 = 10 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs60_r18; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs120_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs120_r18_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs120_r18_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs120_r18_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs120_r18_n6 = 3, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs120_r18_n8 = 4, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs120_r18_n12 = 5, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs120_r18_n16 = 6, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs120_r18_n24 = 7, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs120_r18_n32 = 8, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs120_r18_n48 = 9, + PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs120_r18_n64 = 10 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18__scs120_r18; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs15_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs15_r18_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs15_r18_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs15_r18_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs15_r18_n6 = 3, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs15_r18_n8 = 4, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs15_r18_n12 = 5, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs15_r18_n16 = 6, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs15_r18_n24 = 7, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs15_r18_n32 = 8, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs15_r18_n48 = 9, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs15_r18_n64 = 10 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs15_r18; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs30_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs30_r18_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs30_r18_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs30_r18_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs30_r18_n6 = 3, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs30_r18_n8 = 4, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs30_r18_n12 = 5, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs30_r18_n16 = 6, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs30_r18_n24 = 7, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs30_r18_n32 = 8, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs30_r18_n48 = 9, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs30_r18_n64 = 10 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs30_r18; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs60_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs60_r18_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs60_r18_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs60_r18_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs60_r18_n6 = 3, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs60_r18_n8 = 4, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs60_r18_n12 = 5, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs60_r18_n16 = 6, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs60_r18_n24 = 7, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs60_r18_n32 = 8, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs60_r18_n48 = 9, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs60_r18_n64 = 10 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs60_r18; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs120_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs120_r18_n1 = 0, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs120_r18_n2 = 1, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs120_r18_n4 = 2, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs120_r18_n6 = 3, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs120_r18_n8 = 4, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs120_r18_n12 = 5, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs120_r18_n16 = 6, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs120_r18_n24 = 7, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs120_r18_n32 = 8, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs120_r18_n48 = 9, + PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs120_r18_n64 = 10 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18__scs120_r18; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18_supported = 0 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18_supported = 0 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18_supported = 0 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__dl_PRS_MeasurementWithRxFH_RRC_Idle_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__dl_PRS_MeasurementWithRxFH_RRC_Idle_r18_supported = 0 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__dl_PRS_MeasurementWithRxFH_RRC_Idle_r18; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18_supported = 0 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18_supported = 0 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__supportOfPRS_BWA_WithTwoPFL_Combination_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__supportOfPRS_BWA_WithTwoPFL_Combination_r18_supported = 0 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__supportOfPRS_BWA_WithTwoPFL_Combination_r18; +typedef enum PRS_ProcessingCapabilityPerBand_r16__ext4__supportOfPRS_MeasurementRRC_Idle_r18 { + PRS_ProcessingCapabilityPerBand_r16__ext4__supportOfPRS_MeasurementRRC_Idle_r18_supported = 0 +} e_PRS_ProcessingCapabilityPerBand_r16__ext4__supportOfPRS_MeasurementRRC_Idle_r18; + +/* Forward declarations */ +struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17; +struct PRS_BWA_TwoContiguousIntrabandInMG_r18; +struct PRS_BWA_ThreeContiguousIntrabandInMG_r18; +struct DL_PRS_MeasurementWithRxFH_RRC_Connected_r18; + +/* PRS-ProcessingCapabilityPerBand-r16 */ +typedef struct PRS_ProcessingCapabilityPerBand_r16 { + FreqBandIndicatorNR_r16_t freqBandIndicatorNR_r16; + struct PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16 { + PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16_PR present; + union PRS_ProcessingCapabilityPerBand_r16__supportedBandwidthPRS_r16_u { + long fr1; + long fr2; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } supportedBandwidthPRS_r16; + long dl_PRS_BufferType_r16; + struct PRS_ProcessingCapabilityPerBand_r16__durationOfPRS_Processing_r16 { + long durationOfPRS_ProcessingSymbols_r16; + long durationOfPRS_ProcessingSymbolsInEveryTms_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } durationOfPRS_Processing_r16; + struct PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16 { + long *scs15_r16; /* OPTIONAL */ + long *scs30_r16; /* OPTIONAL */ + long *scs60_r16; /* OPTIONAL */ + long *scs120_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct PRS_ProcessingCapabilityPerBand_r16__maxNumOfDL_PRS_ResProcessedPerSlot_r16__ext1 { + long *scs15_v1690; /* OPTIONAL */ + long *scs30_v1690; /* OPTIONAL */ + long *scs60_v1690; /* OPTIONAL */ + long *scs120_v1690; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } maxNumOfDL_PRS_ResProcessedPerSlot_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct PRS_ProcessingCapabilityPerBand_r16__ext1 { + long *supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17; /* OPTIONAL */ + long *prs_ProcessingWindowType1A_r17; /* OPTIONAL */ + long *prs_ProcessingWindowType1B_r17; /* OPTIONAL */ + long *prs_ProcessingWindowType2_r17; /* OPTIONAL */ + struct PRS_ProcessingCapabilityPerBand_r16__ext1__prs_ProcessingCapabilityOutsideMGinPPW_r17 { + A_SEQUENCE_OF(struct PRS_ProcessingCapabilityOutsideMGinPPWperType_r17) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *prs_ProcessingCapabilityOutsideMGinPPW_r17; + long *dl_PRS_BufferType_RRC_Inactive_r17; /* OPTIONAL */ + struct PRS_ProcessingCapabilityPerBand_r16__ext1__durationOfPRS_Processing_RRC_Inactive_r17 { + long durationOfPRS_ProcessingSymbols_r17; + long durationOfPRS_ProcessingSymbolsInEveryTms_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *durationOfPRS_Processing_RRC_Inactive_r17; + struct PRS_ProcessingCapabilityPerBand_r16__ext1__maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17 { + long *scs15_r17; /* OPTIONAL */ + long *scs30_r17; /* OPTIONAL */ + long *scs60_r17; /* OPTIONAL */ + long *scs120_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *maxNumOfDL_PRS_ResProcessedPerSlot_RRC_Inactive_r17; + long *supportedLowerRxBeamSweepingFactor_FR2_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct PRS_ProcessingCapabilityPerBand_r16__ext2 { + long *supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct PRS_ProcessingCapabilityPerBand_r16__ext3 { + long *prs_MeasurementWithoutMG_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + struct PRS_ProcessingCapabilityPerBand_r16__ext4 { + struct PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18 { + long *scs15_r18; /* OPTIONAL */ + long *scs30_r18; /* OPTIONAL */ + long *scs60_r18; /* OPTIONAL */ + long *scs120_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Inactive_r18; + struct PRS_ProcessingCapabilityPerBand_r16__ext4__maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18 { + long *scs15_r18; /* OPTIONAL */ + long *scs30_r18; /* OPTIONAL */ + long *scs60_r18; /* OPTIONAL */ + long *scs120_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *maxNumOfOneSymbolPRS_ResProcessedPerSlot_RRC_Connected_r18; + struct PRS_ProcessingCapabilityPerBand_r16__ext4__ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18 { + long *scs15_r18; /* OPTIONAL */ + long *scs30_r18; /* OPTIONAL */ + long *scs60_r18; /* OPTIONAL */ + long *scs120_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ppw_maxNumOfOneSymbolPRS_ResProcessedPerSlot_r18; + struct PRS_BWA_TwoContiguousIntrabandInMG_r18 *prs_BWA_TwoContiguousIntrabandInMG_RRC_Connected_r18; /* OPTIONAL */ + struct PRS_BWA_ThreeContiguousIntrabandInMG_r18 *prs_BWA_ThreeContiguousIntrabandInMG_RRC_Connected_r18; /* OPTIONAL */ + struct PRS_BWA_TwoContiguousIntrabandInMG_r18 *prs_BWA_TwoContiguousIntrabandInMG_RRC_IdleAndInactive_r18; /* OPTIONAL */ + struct PRS_BWA_ThreeContiguousIntrabandInMG_r18 *prs_BWA_ThreeContiguousIntrabandInMG_RRC_IdleAndInactive_r18; /* OPTIONAL */ + long *reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18; /* OPTIONAL */ + long *reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18; /* OPTIONAL */ + long *dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18; /* OPTIONAL */ + long *dl_PRS_MeasurementWithRxFH_RRC_Idle_r18; /* OPTIONAL */ + long *reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18; /* OPTIONAL */ + long *reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18; /* OPTIONAL */ + long *supportOfPRS_BWA_WithTwoPFL_Combination_r18; /* OPTIONAL */ + struct DL_PRS_MeasurementWithRxFH_RRC_Connected_r18 *dl_PRS_MeasurementWithRxFH_RRC_Connected_r18; /* OPTIONAL */ + long *supportOfPRS_MeasurementRRC_Idle_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext4; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PRS_ProcessingCapabilityPerBand_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_fr1_4; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_fr2_12; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_dl_PRS_BufferType_r16_18; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_durationOfPRS_ProcessingSymbols_r16_23; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r16_42; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs15_r16_55; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs30_r16_65; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs60_r16_75; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs120_r16_85; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs15_v1690_97; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs30_v1690_100; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs60_v1690_103; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs120_v1690_106; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_CONNECTED_r17_111; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_prs_ProcessingWindowType1A_r17_113; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_prs_ProcessingWindowType1B_r17_117; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_prs_ProcessingWindowType2_r17_121; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_dl_PRS_BufferType_RRC_Inactive_r17_127; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_durationOfPRS_ProcessingSymbols_r17_132; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_durationOfPRS_ProcessingSymbolsInEveryTms_r17_151; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs15_r17_164; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs30_r17_176; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs60_r17_188; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs120_r17_200; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportedLowerRxBeamSweepingFactor_FR2_r17_213; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportedDL_PRS_ProcessingSamples_RRC_Inactive_r17_219; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_prs_MeasurementWithoutMG_r17_222; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs15_r18_229; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs30_r18_241; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs60_r18_253; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs120_r18_265; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs15_r18_279; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs30_r18_291; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs60_r18_303; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs120_r18_315; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs15_r18_329; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs30_r18_341; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs60_r18_353; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_scs120_r18_365; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_Connected_r18_382; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_reducedNumOfSampleInMeasurementWithPRS_BWA_RRC_IdleAndInactive_r18_384; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Inactive_r18_386; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_dl_PRS_MeasurementWithRxFH_RRC_Idle_r18_388; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_Connected_r18_390; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_reducedNumOfSampleForMeasurementWithFH_RRC_IdleAndInactive_r18_392; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfPRS_BWA_WithTwoPFL_Combination_r18_394; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfPRS_MeasurementRRC_Idle_r18_397; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_PRS_ProcessingCapabilityPerBand_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_PRS_ProcessingCapabilityPerBand_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_PRS_ProcessingCapabilityPerBand_r16_1[9]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PRS_ProcessingCapabilityPerBand_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/PeriodicAssistanceDataControlParameters-r15.c b/asn.1/lpp_generated/PeriodicAssistanceDataControlParameters-r15.c new file mode 100644 index 00000000..c1c465a2 --- /dev/null +++ b/asn.1/lpp_generated/PeriodicAssistanceDataControlParameters-r15.c @@ -0,0 +1,147 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PeriodicAssistanceDataControlParameters-r15.h" + +static asn_TYPE_member_t asn_MBR_ext1_4[] = { + { ATF_POINTER, 1, offsetof(struct PeriodicAssistanceDataControlParameters_r15__ext1, updateCapabilities_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UpdateCapabilities_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "updateCapabilities-r15" + }, +}; +static const int asn_MAP_ext1_oms_4[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* updateCapabilities-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { + sizeof(struct PeriodicAssistanceDataControlParameters_r15__ext1), + offsetof(struct PeriodicAssistanceDataControlParameters_r15__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_4, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_4, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_4 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_4, + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_4, /* Same as above */ + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_4, + 1, /* Elements count */ + &asn_SPC_ext1_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_PeriodicAssistanceDataControlParameters_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PeriodicAssistanceDataControlParameters_r15, periodicSessionID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PeriodicSessionID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "periodicSessionID-r15" + }, + { ATF_POINTER, 1, offsetof(struct PeriodicAssistanceDataControlParameters_r15, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_PeriodicAssistanceDataControlParameters_r15_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_PeriodicAssistanceDataControlParameters_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PeriodicAssistanceDataControlParameters_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* periodicSessionID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PeriodicAssistanceDataControlParameters_r15_specs_1 = { + sizeof(struct PeriodicAssistanceDataControlParameters_r15), + offsetof(struct PeriodicAssistanceDataControlParameters_r15, _asn_ctx), + asn_MAP_PeriodicAssistanceDataControlParameters_r15_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_PeriodicAssistanceDataControlParameters_r15_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PeriodicAssistanceDataControlParameters_r15 = { + "PeriodicAssistanceDataControlParameters-r15", + "PeriodicAssistanceDataControlParameters-r15", + &asn_OP_SEQUENCE, + asn_DEF_PeriodicAssistanceDataControlParameters_r15_tags_1, + sizeof(asn_DEF_PeriodicAssistanceDataControlParameters_r15_tags_1) + /sizeof(asn_DEF_PeriodicAssistanceDataControlParameters_r15_tags_1[0]), /* 1 */ + asn_DEF_PeriodicAssistanceDataControlParameters_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_PeriodicAssistanceDataControlParameters_r15_tags_1) + /sizeof(asn_DEF_PeriodicAssistanceDataControlParameters_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PeriodicAssistanceDataControlParameters_r15_1, + 2, /* Elements count */ + &asn_SPC_PeriodicAssistanceDataControlParameters_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/PeriodicAssistanceDataControlParameters-r15.h b/asn.1/lpp_generated/PeriodicAssistanceDataControlParameters-r15.h similarity index 80% rename from asn.1/generated/PeriodicAssistanceDataControlParameters-r15.h rename to asn.1/lpp_generated/PeriodicAssistanceDataControlParameters-r15.h index c3a7ffe0..f329d5f3 100644 --- a/asn.1/generated/PeriodicAssistanceDataControlParameters-r15.h +++ b/asn.1/lpp_generated/PeriodicAssistanceDataControlParameters-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _PeriodicAssistanceDataControlParameters_r15_H_ @@ -28,7 +28,7 @@ typedef struct PeriodicAssistanceDataControlParameters_r15 { * possible extensions are below. */ struct PeriodicAssistanceDataControlParameters_r15__ext1 { - UpdateCapabilities_r15_t *updateCapabilities_r15 /* OPTIONAL */; + UpdateCapabilities_r15_t *updateCapabilities_r15; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/PeriodicSessionID-r15.c b/asn.1/lpp_generated/PeriodicSessionID-r15.c new file mode 100644 index 00000000..71f2a7f9 --- /dev/null +++ b/asn.1/lpp_generated/PeriodicSessionID-r15.c @@ -0,0 +1,174 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PeriodicSessionID-r15.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_periodicSessionNumber_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_periodicSessionInitiator_r15_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_periodicSessionNumber_r15_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_periodicSessionInitiator_r15_value2enum_2[] = { + { 0, 14, "locationServer" }, + { 1, 12, "targetDevice" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_periodicSessionInitiator_r15_enum2value_2[] = { + 0, /* locationServer(0) */ + 1 /* targetDevice(1) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_periodicSessionInitiator_r15_specs_2 = { + asn_MAP_periodicSessionInitiator_r15_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_periodicSessionInitiator_r15_enum2value_2, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_periodicSessionInitiator_r15_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_periodicSessionInitiator_r15_2 = { + "periodicSessionInitiator-r15", + "periodicSessionInitiator-r15", + &asn_OP_NativeEnumerated, + asn_DEF_periodicSessionInitiator_r15_tags_2, + sizeof(asn_DEF_periodicSessionInitiator_r15_tags_2) + /sizeof(asn_DEF_periodicSessionInitiator_r15_tags_2[0]) - 1, /* 1 */ + asn_DEF_periodicSessionInitiator_r15_tags_2, /* Same as above */ + sizeof(asn_DEF_periodicSessionInitiator_r15_tags_2) + /sizeof(asn_DEF_periodicSessionInitiator_r15_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_periodicSessionInitiator_r15_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_periodicSessionInitiator_r15_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_PeriodicSessionID_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PeriodicSessionID_r15, periodicSessionInitiator_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_periodicSessionInitiator_r15_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "periodicSessionInitiator-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct PeriodicSessionID_r15, periodicSessionNumber_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_periodicSessionNumber_r15_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_periodicSessionNumber_r15_constraint_1 + }, + 0, 0, /* No default value */ + "periodicSessionNumber-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_PeriodicSessionID_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PeriodicSessionID_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* periodicSessionInitiator-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* periodicSessionNumber-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PeriodicSessionID_r15_specs_1 = { + sizeof(struct PeriodicSessionID_r15), + offsetof(struct PeriodicSessionID_r15, _asn_ctx), + asn_MAP_PeriodicSessionID_r15_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PeriodicSessionID_r15 = { + "PeriodicSessionID-r15", + "PeriodicSessionID-r15", + &asn_OP_SEQUENCE, + asn_DEF_PeriodicSessionID_r15_tags_1, + sizeof(asn_DEF_PeriodicSessionID_r15_tags_1) + /sizeof(asn_DEF_PeriodicSessionID_r15_tags_1[0]), /* 1 */ + asn_DEF_PeriodicSessionID_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_PeriodicSessionID_r15_tags_1) + /sizeof(asn_DEF_PeriodicSessionID_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PeriodicSessionID_r15_1, + 2, /* Elements count */ + &asn_SPC_PeriodicSessionID_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/PeriodicSessionID-r15.h b/asn.1/lpp_generated/PeriodicSessionID-r15.h similarity index 85% rename from asn.1/generated/PeriodicSessionID-r15.h rename to asn.1/lpp_generated/PeriodicSessionID-r15.h index c40c1e0f..f953231b 100644 --- a/asn.1/generated/PeriodicSessionID-r15.h +++ b/asn.1/lpp_generated/PeriodicSessionID-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _PeriodicSessionID_r15_H_ diff --git a/asn.1/generated/PeriodicalReportingCriteria.c b/asn.1/lpp_generated/PeriodicalReportingCriteria.c similarity index 75% rename from asn.1/generated/PeriodicalReportingCriteria.c rename to asn.1/lpp_generated/PeriodicalReportingCriteria.c index 40ad2b4f..ce622f27 100644 --- a/asn.1/generated/PeriodicalReportingCriteria.c +++ b/asn.1/lpp_generated/PeriodicalReportingCriteria.c @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #include "PeriodicalReportingCriteria.h" @@ -15,16 +15,20 @@ * This type is implemented using NativeEnumerated, * so here we adjust the DEF accordingly. */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) static asn_per_constraints_t asn_PER_type_reportingAmount_constr_2 CC_NOTUSED = { { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) static asn_per_constraints_t asn_PER_type_reportingInterval_constr_11 CC_NOTUSED = { { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ static int asn_DFL_2_cmp_7(const void *sptr) { const long *st = sptr; @@ -91,7 +95,15 @@ asn_TYPE_descriptor_t asn_DEF_reportingAmount_2 = { asn_DEF_reportingAmount_tags_2, /* Same as above */ sizeof(asn_DEF_reportingAmount_tags_2) /sizeof(asn_DEF_reportingAmount_tags_2[0]), /* 2 */ - { 0, &asn_PER_type_reportingAmount_constr_2, NativeEnumerated_constraint }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_reportingAmount_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, 0, 0, /* Defined elsewhere */ &asn_SPC_reportingAmount_specs_2 /* Additional specs */ }; @@ -144,7 +156,15 @@ asn_TYPE_descriptor_t asn_DEF_reportingInterval_11 = { asn_DEF_reportingInterval_tags_11, /* Same as above */ sizeof(asn_DEF_reportingInterval_tags_11) /sizeof(asn_DEF_reportingInterval_tags_11[0]), /* 2 */ - { 0, &asn_PER_type_reportingInterval_constr_11, NativeEnumerated_constraint }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_reportingInterval_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, 0, 0, /* Defined elsewhere */ &asn_SPC_reportingInterval_specs_11 /* Additional specs */ }; @@ -155,7 +175,15 @@ asn_TYPE_member_t asn_MBR_PeriodicalReportingCriteria_1[] = { -1, /* IMPLICIT tag at current level */ &asn_DEF_reportingAmount_2, 0, - { 0, 0, 0 }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, &asn_DFL_2_cmp_7, /* Compare DEFAULT 7 */ &asn_DFL_2_set_7, /* Set DEFAULT 7 */ "reportingAmount" @@ -165,7 +193,15 @@ asn_TYPE_member_t asn_MBR_PeriodicalReportingCriteria_1[] = { -1, /* IMPLICIT tag at current level */ &asn_DEF_reportingInterval_11, 0, - { 0, 0, 0 }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, 0, 0, /* No default value */ "reportingInterval" }, @@ -197,7 +233,15 @@ asn_TYPE_descriptor_t asn_DEF_PeriodicalReportingCriteria = { asn_DEF_PeriodicalReportingCriteria_tags_1, /* Same as above */ sizeof(asn_DEF_PeriodicalReportingCriteria_tags_1) /sizeof(asn_DEF_PeriodicalReportingCriteria_tags_1[0]), /* 1 */ - { 0, 0, SEQUENCE_constraint }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, asn_MBR_PeriodicalReportingCriteria_1, 2, /* Elements count */ &asn_SPC_PeriodicalReportingCriteria_specs_1 /* Additional specs */ diff --git a/asn.1/generated/PeriodicalReportingCriteria.h b/asn.1/lpp_generated/PeriodicalReportingCriteria.h similarity index 89% rename from asn.1/generated/PeriodicalReportingCriteria.h rename to asn.1/lpp_generated/PeriodicalReportingCriteria.h index f6d7326f..bbb89c52 100644 --- a/asn.1/generated/PeriodicalReportingCriteria.h +++ b/asn.1/lpp_generated/PeriodicalReportingCriteria.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _PeriodicalReportingCriteria_H_ @@ -45,7 +45,7 @@ typedef enum PeriodicalReportingCriteria__reportingInterval { /* PeriodicalReportingCriteria */ typedef struct PeriodicalReportingCriteria { - long *reportingAmount /* DEFAULT 7 */; + long *reportingAmount; /* DEFAULT 7 */ long reportingInterval; /* Context for parsing across buffer boundaries */ diff --git a/asn.1/lpp_generated/PhysicalReferenceStationInfo-r15.c b/asn.1/lpp_generated/PhysicalReferenceStationInfo-r15.c new file mode 100644 index 00000000..61c7c9ea --- /dev/null +++ b/asn.1/lpp_generated/PhysicalReferenceStationInfo-r15.c @@ -0,0 +1,255 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PhysicalReferenceStationInfo-r15.h" + +#include "AntennaReferencePointUnc-r15.h" +static int +memb_physical_ARP_ECEF_X_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(asn_INTEGER2long(st, &value)) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value too large (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if((value >= -137438953472L && value <= 137438953471L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_physical_ARP_ECEF_Y_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(asn_INTEGER2long(st, &value)) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value too large (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if((value >= -137438953472L && value <= 137438953471L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_physical_ARP_ECEF_Z_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(asn_INTEGER2long(st, &value)) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value too large (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if((value >= -137438953472L && value <= 137438953471L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_physical_ARP_ECEF_X_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 38, -1, -137438953472, 137438953471 } /* (-137438953472..137438953471) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_physical_ARP_ECEF_Y_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 38, -1, -137438953472, 137438953471 } /* (-137438953472..137438953471) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_physical_ARP_ECEF_Z_r15_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 38, -1, -137438953472, 137438953471 } /* (-137438953472..137438953471) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_PhysicalReferenceStationInfo_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PhysicalReferenceStationInfo_r15, physicalReferenceStationID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceStationID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "physicalReferenceStationID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct PhysicalReferenceStationInfo_r15, physical_ARP_ECEF_X_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_INTEGER, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_physical_ARP_ECEF_X_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_physical_ARP_ECEF_X_r15_constraint_1 + }, + 0, 0, /* No default value */ + "physical-ARP-ECEF-X-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct PhysicalReferenceStationInfo_r15, physical_ARP_ECEF_Y_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_INTEGER, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_physical_ARP_ECEF_Y_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_physical_ARP_ECEF_Y_r15_constraint_1 + }, + 0, 0, /* No default value */ + "physical-ARP-ECEF-Y-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct PhysicalReferenceStationInfo_r15, physical_ARP_ECEF_Z_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_INTEGER, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_physical_ARP_ECEF_Z_r15_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_physical_ARP_ECEF_Z_r15_constraint_1 + }, + 0, 0, /* No default value */ + "physical-ARP-ECEF-Z-r15" + }, + { ATF_POINTER, 1, offsetof(struct PhysicalReferenceStationInfo_r15, physical_ARP_unc_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AntennaReferencePointUnc_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "physical-ARP-unc-r15" + }, +}; +static const int asn_MAP_PhysicalReferenceStationInfo_r15_oms_1[] = { 4 }; +static const ber_tlv_tag_t asn_DEF_PhysicalReferenceStationInfo_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PhysicalReferenceStationInfo_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physicalReferenceStationID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* physical-ARP-ECEF-X-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* physical-ARP-ECEF-Y-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* physical-ARP-ECEF-Z-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* physical-ARP-unc-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PhysicalReferenceStationInfo_r15_specs_1 = { + sizeof(struct PhysicalReferenceStationInfo_r15), + offsetof(struct PhysicalReferenceStationInfo_r15, _asn_ctx), + asn_MAP_PhysicalReferenceStationInfo_r15_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_PhysicalReferenceStationInfo_r15_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PhysicalReferenceStationInfo_r15 = { + "PhysicalReferenceStationInfo-r15", + "PhysicalReferenceStationInfo-r15", + &asn_OP_SEQUENCE, + asn_DEF_PhysicalReferenceStationInfo_r15_tags_1, + sizeof(asn_DEF_PhysicalReferenceStationInfo_r15_tags_1) + /sizeof(asn_DEF_PhysicalReferenceStationInfo_r15_tags_1[0]), /* 1 */ + asn_DEF_PhysicalReferenceStationInfo_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_PhysicalReferenceStationInfo_r15_tags_1) + /sizeof(asn_DEF_PhysicalReferenceStationInfo_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PhysicalReferenceStationInfo_r15_1, + 5, /* Elements count */ + &asn_SPC_PhysicalReferenceStationInfo_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/PhysicalReferenceStationInfo-r15.h b/asn.1/lpp_generated/PhysicalReferenceStationInfo-r15.h similarity index 79% rename from asn.1/generated/PhysicalReferenceStationInfo-r15.h rename to asn.1/lpp_generated/PhysicalReferenceStationInfo-r15.h index ccac48a3..4808cbe6 100644 --- a/asn.1/generated/PhysicalReferenceStationInfo-r15.h +++ b/asn.1/lpp_generated/PhysicalReferenceStationInfo-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _PhysicalReferenceStationInfo_r15_H_ @@ -29,7 +29,7 @@ typedef struct PhysicalReferenceStationInfo_r15 { INTEGER_t physical_ARP_ECEF_X_r15; INTEGER_t physical_ARP_ECEF_Y_r15; INTEGER_t physical_ARP_ECEF_Z_r15; - struct AntennaReferencePointUnc_r15 *physical_ARP_unc_r15 /* OPTIONAL */; + struct AntennaReferencePointUnc_r15 *physical_ARP_unc_r15; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -48,8 +48,5 @@ extern asn_TYPE_member_t asn_MBR_PhysicalReferenceStationInfo_r15_1[5]; } #endif -/* Referred external types */ -#include "AntennaReferencePointUnc-r15.h" - #endif /* _PhysicalReferenceStationInfo_r15_H_ */ #include diff --git a/asn.1/lpp_generated/Polygon.c b/asn.1/lpp_generated/Polygon.c new file mode 100644 index 00000000..d692906d --- /dev/null +++ b/asn.1/lpp_generated/Polygon.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Polygon.h" + +#include "PolygonPoints.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Polygon_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 3, 15 } /* (SIZE(3..15)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Polygon_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_PolygonPoints, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_Polygon_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_Polygon_specs_1 = { + sizeof(struct Polygon), + offsetof(struct Polygon, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_Polygon = { + "Polygon", + "Polygon", + &asn_OP_SEQUENCE_OF, + asn_DEF_Polygon_tags_1, + sizeof(asn_DEF_Polygon_tags_1) + /sizeof(asn_DEF_Polygon_tags_1[0]), /* 1 */ + asn_DEF_Polygon_tags_1, /* Same as above */ + sizeof(asn_DEF_Polygon_tags_1) + /sizeof(asn_DEF_Polygon_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Polygon_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_Polygon_1, + 1, /* Single element */ + &asn_SPC_Polygon_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Polygon.h b/asn.1/lpp_generated/Polygon.h similarity index 77% rename from asn.1/generated/Polygon.h rename to asn.1/lpp_generated/Polygon.h index f45e3643..4420870f 100644 --- a/asn.1/generated/Polygon.h +++ b/asn.1/lpp_generated/Polygon.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Polygon_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_Polygon_constr_1; } #endif -/* Referred external types */ -#include "PolygonPoints.h" - #endif /* _Polygon_H_ */ #include diff --git a/asn.1/lpp_generated/PolygonPoints.c b/asn.1/lpp_generated/PolygonPoints.c new file mode 100644 index 00000000..7192f70c --- /dev/null +++ b/asn.1/lpp_generated/PolygonPoints.c @@ -0,0 +1,222 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PolygonPoints.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_degreesLatitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_degreesLongitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_latitudeSign_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLatitude_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_degreesLongitude_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_latitudeSign_value2enum_2[] = { + { 0, 5, "north" }, + { 1, 5, "south" } +}; +static const unsigned int asn_MAP_latitudeSign_enum2value_2[] = { + 0, /* north(0) */ + 1 /* south(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_latitudeSign_specs_2 = { + asn_MAP_latitudeSign_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_latitudeSign_enum2value_2, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_latitudeSign_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_latitudeSign_2 = { + "latitudeSign", + "latitudeSign", + &asn_OP_NativeEnumerated, + asn_DEF_latitudeSign_tags_2, + sizeof(asn_DEF_latitudeSign_tags_2) + /sizeof(asn_DEF_latitudeSign_tags_2[0]) - 1, /* 1 */ + asn_DEF_latitudeSign_tags_2, /* Same as above */ + sizeof(asn_DEF_latitudeSign_tags_2) + /sizeof(asn_DEF_latitudeSign_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_latitudeSign_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_latitudeSign_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_PolygonPoints_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PolygonPoints, latitudeSign), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_latitudeSign_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "latitudeSign" + }, + { ATF_NOFLAGS, 0, offsetof(struct PolygonPoints, degreesLatitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLatitude_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLatitude_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLatitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct PolygonPoints, degreesLongitude), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_degreesLongitude_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_degreesLongitude_constraint_1 + }, + 0, 0, /* No default value */ + "degreesLongitude" + }, +}; +static const ber_tlv_tag_t asn_DEF_PolygonPoints_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PolygonPoints_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeSign */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* degreesLatitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* degreesLongitude */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PolygonPoints_specs_1 = { + sizeof(struct PolygonPoints), + offsetof(struct PolygonPoints, _asn_ctx), + asn_MAP_PolygonPoints_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PolygonPoints = { + "PolygonPoints", + "PolygonPoints", + &asn_OP_SEQUENCE, + asn_DEF_PolygonPoints_tags_1, + sizeof(asn_DEF_PolygonPoints_tags_1) + /sizeof(asn_DEF_PolygonPoints_tags_1[0]), /* 1 */ + asn_DEF_PolygonPoints_tags_1, /* Same as above */ + sizeof(asn_DEF_PolygonPoints_tags_1) + /sizeof(asn_DEF_PolygonPoints_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PolygonPoints_1, + 3, /* Elements count */ + &asn_SPC_PolygonPoints_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/PolygonPoints.h b/asn.1/lpp_generated/PolygonPoints.h similarity index 81% rename from asn.1/generated/PolygonPoints.h rename to asn.1/lpp_generated/PolygonPoints.h index 01c52187..517e32e4 100644 --- a/asn.1/generated/PolygonPoints.h +++ b/asn.1/lpp_generated/PolygonPoints.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _PolygonPoints_H_ diff --git a/asn.1/lpp_generated/PosSRS-BWA-IndependentCA-RRC-Connected-r18.c b/asn.1/lpp_generated/PosSRS-BWA-IndependentCA-RRC-Connected-r18.c new file mode 100644 index 00000000..0746322e --- /dev/null +++ b/asn.1/lpp_generated/PosSRS-BWA-IndependentCA-RRC-Connected-r18.c @@ -0,0 +1,1216 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PosSRS-BWA-IndependentCA-RRC-Connected-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_numOfCarriersIntraBandContiguous_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedBW_TwoCarriersFR1_r18_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedBW_TwoCarriersFR2_r18_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedBW_ThreeCarriersFR1_r18_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedBW_ThreeCarriersFR2_r18_constr_24 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedResourceSet_r18_constr_33 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedResourcePeriodic_r18_constr_40 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedResourceAperiodic_r18_constr_48 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedResourceSemi_r18_constr_57 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedResourcePeriodicPerSlot_r18_constr_66 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedResourceAperiodicPerSlot_r18_constr_77 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedResourceSemiPerSlot_r18_constr_89 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfSameSRS_PowerReduction_r18_constr_101 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_guardPeriod_r18_constr_103 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_numOfCarriersIntraBandContiguous_r18_value2enum_2[] = { + { 0, 3, "two" }, + { 1, 5, "three" }, + { 2, 11, "twoandthree" } +}; +static const unsigned int asn_MAP_numOfCarriersIntraBandContiguous_r18_enum2value_2[] = { + 1, /* three(1) */ + 0, /* two(0) */ + 2 /* twoandthree(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_numOfCarriersIntraBandContiguous_r18_specs_2 = { + asn_MAP_numOfCarriersIntraBandContiguous_r18_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_numOfCarriersIntraBandContiguous_r18_enum2value_2, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_numOfCarriersIntraBandContiguous_r18_2 = { + "numOfCarriersIntraBandContiguous-r18", + "numOfCarriersIntraBandContiguous-r18", + &asn_OP_NativeEnumerated, + asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2, + sizeof(asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2) + /sizeof(asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2[0]) - 1, /* 1 */ + asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2, /* Same as above */ + sizeof(asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2) + /sizeof(asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_numOfCarriersIntraBandContiguous_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_numOfCarriersIntraBandContiguous_r18_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedBW_TwoCarriersFR1_r18_value2enum_6[] = { + { 0, 5, "mhz80" }, + { 1, 6, "mhz100" }, + { 2, 6, "mhz160" }, + { 3, 6, "mhz200" } +}; +static const unsigned int asn_MAP_maximumAggregatedBW_TwoCarriersFR1_r18_enum2value_6[] = { + 1, /* mhz100(1) */ + 2, /* mhz160(2) */ + 3, /* mhz200(3) */ + 0 /* mhz80(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedBW_TwoCarriersFR1_r18_specs_6 = { + asn_MAP_maximumAggregatedBW_TwoCarriersFR1_r18_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedBW_TwoCarriersFR1_r18_enum2value_6, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_6 = { + "maximumAggregatedBW-TwoCarriersFR1-r18", + "maximumAggregatedBW-TwoCarriersFR1-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6, + sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6) + /sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6) + /sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedBW_TwoCarriersFR1_r18_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedBW_TwoCarriersFR1_r18_specs_6 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedBW_TwoCarriersFR2_r18_value2enum_11[] = { + { 0, 5, "mhz50" }, + { 1, 6, "mhz100" }, + { 2, 6, "mhz200" }, + { 3, 6, "mhz400" }, + { 4, 6, "mhz600" }, + { 5, 6, "mhz800" } +}; +static const unsigned int asn_MAP_maximumAggregatedBW_TwoCarriersFR2_r18_enum2value_11[] = { + 1, /* mhz100(1) */ + 2, /* mhz200(2) */ + 3, /* mhz400(3) */ + 0, /* mhz50(0) */ + 4, /* mhz600(4) */ + 5 /* mhz800(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedBW_TwoCarriersFR2_r18_specs_11 = { + asn_MAP_maximumAggregatedBW_TwoCarriersFR2_r18_value2enum_11, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedBW_TwoCarriersFR2_r18_enum2value_11, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_11 = { + "maximumAggregatedBW-TwoCarriersFR2-r18", + "maximumAggregatedBW-TwoCarriersFR2-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11, + sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11) + /sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11) + /sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedBW_TwoCarriersFR2_r18_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedBW_TwoCarriersFR2_r18_specs_11 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedBW_ThreeCarriersFR1_r18_value2enum_18[] = { + { 0, 5, "mhz80" }, + { 1, 6, "mhz100" }, + { 2, 6, "mhz160" }, + { 3, 6, "mhz200" }, + { 4, 6, "mhz300" } +}; +static const unsigned int asn_MAP_maximumAggregatedBW_ThreeCarriersFR1_r18_enum2value_18[] = { + 1, /* mhz100(1) */ + 2, /* mhz160(2) */ + 3, /* mhz200(3) */ + 4, /* mhz300(4) */ + 0 /* mhz80(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedBW_ThreeCarriersFR1_r18_specs_18 = { + asn_MAP_maximumAggregatedBW_ThreeCarriersFR1_r18_value2enum_18, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedBW_ThreeCarriersFR1_r18_enum2value_18, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_18 = { + "maximumAggregatedBW-ThreeCarriersFR1-r18", + "maximumAggregatedBW-ThreeCarriersFR1-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18, + sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18) + /sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18) + /sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedBW_ThreeCarriersFR1_r18_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedBW_ThreeCarriersFR1_r18_specs_18 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedBW_ThreeCarriersFR2_r18_value2enum_24[] = { + { 0, 5, "mhz50" }, + { 1, 6, "mhz100" }, + { 2, 6, "mhz200" }, + { 3, 6, "mhz400" }, + { 4, 6, "mhz600" }, + { 5, 6, "mhz800" }, + { 6, 7, "mhz1000" }, + { 7, 7, "mhz1200" } +}; +static const unsigned int asn_MAP_maximumAggregatedBW_ThreeCarriersFR2_r18_enum2value_24[] = { + 1, /* mhz100(1) */ + 6, /* mhz1000(6) */ + 7, /* mhz1200(7) */ + 2, /* mhz200(2) */ + 3, /* mhz400(3) */ + 0, /* mhz50(0) */ + 4, /* mhz600(4) */ + 5 /* mhz800(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedBW_ThreeCarriersFR2_r18_specs_24 = { + asn_MAP_maximumAggregatedBW_ThreeCarriersFR2_r18_value2enum_24, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedBW_ThreeCarriersFR2_r18_enum2value_24, /* N => "tag"; sorted by N */ + 8, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_24 = { + "maximumAggregatedBW-ThreeCarriersFR2-r18", + "maximumAggregatedBW-ThreeCarriersFR2-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24, + sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24) + /sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24) + /sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedBW_ThreeCarriersFR2_r18_constr_24, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedBW_ThreeCarriersFR2_r18_specs_24 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedResourceSet_r18_value2enum_33[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n12" }, + { 5, 3, "n16" } +}; +static const unsigned int asn_MAP_maximumAggregatedResourceSet_r18_enum2value_33[] = { + 0, /* n1(0) */ + 4, /* n12(4) */ + 5, /* n16(5) */ + 1, /* n2(1) */ + 2, /* n4(2) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedResourceSet_r18_specs_33 = { + asn_MAP_maximumAggregatedResourceSet_r18_value2enum_33, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedResourceSet_r18_enum2value_33, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedResourceSet_r18_tags_33[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceSet_r18_33 = { + "maximumAggregatedResourceSet-r18", + "maximumAggregatedResourceSet-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedResourceSet_r18_tags_33, + sizeof(asn_DEF_maximumAggregatedResourceSet_r18_tags_33) + /sizeof(asn_DEF_maximumAggregatedResourceSet_r18_tags_33[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedResourceSet_r18_tags_33, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedResourceSet_r18_tags_33) + /sizeof(asn_DEF_maximumAggregatedResourceSet_r18_tags_33[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedResourceSet_r18_constr_33, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedResourceSet_r18_specs_33 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedResourcePeriodic_r18_value2enum_40[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n32" }, + { 6, 3, "n64" } +}; +static const unsigned int asn_MAP_maximumAggregatedResourcePeriodic_r18_enum2value_40[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n32(5) */ + 2, /* n4(2) */ + 6, /* n64(6) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedResourcePeriodic_r18_specs_40 = { + asn_MAP_maximumAggregatedResourcePeriodic_r18_value2enum_40, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedResourcePeriodic_r18_enum2value_40, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourcePeriodic_r18_40 = { + "maximumAggregatedResourcePeriodic-r18", + "maximumAggregatedResourcePeriodic-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40, + sizeof(asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40) + /sizeof(asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40) + /sizeof(asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedResourcePeriodic_r18_constr_40, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedResourcePeriodic_r18_specs_40 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedResourceAperiodic_r18_value2enum_48[] = { + { 0, 2, "n0" }, + { 1, 2, "n1" }, + { 2, 2, "n2" }, + { 3, 2, "n4" }, + { 4, 2, "n8" }, + { 5, 3, "n16" }, + { 6, 3, "n32" }, + { 7, 3, "n64" } +}; +static const unsigned int asn_MAP_maximumAggregatedResourceAperiodic_r18_enum2value_48[] = { + 0, /* n0(0) */ + 1, /* n1(1) */ + 5, /* n16(5) */ + 2, /* n2(2) */ + 6, /* n32(6) */ + 3, /* n4(3) */ + 7, /* n64(7) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedResourceAperiodic_r18_specs_48 = { + asn_MAP_maximumAggregatedResourceAperiodic_r18_value2enum_48, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedResourceAperiodic_r18_enum2value_48, /* N => "tag"; sorted by N */ + 8, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedResourceAperiodic_r18_tags_48[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceAperiodic_r18_48 = { + "maximumAggregatedResourceAperiodic-r18", + "maximumAggregatedResourceAperiodic-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedResourceAperiodic_r18_tags_48, + sizeof(asn_DEF_maximumAggregatedResourceAperiodic_r18_tags_48) + /sizeof(asn_DEF_maximumAggregatedResourceAperiodic_r18_tags_48[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedResourceAperiodic_r18_tags_48, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedResourceAperiodic_r18_tags_48) + /sizeof(asn_DEF_maximumAggregatedResourceAperiodic_r18_tags_48[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedResourceAperiodic_r18_constr_48, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedResourceAperiodic_r18_specs_48 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedResourceSemi_r18_value2enum_57[] = { + { 0, 2, "n0" }, + { 1, 2, "n1" }, + { 2, 2, "n2" }, + { 3, 2, "n4" }, + { 4, 2, "n8" }, + { 5, 3, "n16" }, + { 6, 3, "n32" }, + { 7, 3, "n64" } +}; +static const unsigned int asn_MAP_maximumAggregatedResourceSemi_r18_enum2value_57[] = { + 0, /* n0(0) */ + 1, /* n1(1) */ + 5, /* n16(5) */ + 2, /* n2(2) */ + 6, /* n32(6) */ + 3, /* n4(3) */ + 7, /* n64(7) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedResourceSemi_r18_specs_57 = { + asn_MAP_maximumAggregatedResourceSemi_r18_value2enum_57, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedResourceSemi_r18_enum2value_57, /* N => "tag"; sorted by N */ + 8, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedResourceSemi_r18_tags_57[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceSemi_r18_57 = { + "maximumAggregatedResourceSemi-r18", + "maximumAggregatedResourceSemi-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedResourceSemi_r18_tags_57, + sizeof(asn_DEF_maximumAggregatedResourceSemi_r18_tags_57) + /sizeof(asn_DEF_maximumAggregatedResourceSemi_r18_tags_57[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedResourceSemi_r18_tags_57, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedResourceSemi_r18_tags_57) + /sizeof(asn_DEF_maximumAggregatedResourceSemi_r18_tags_57[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedResourceSemi_r18_constr_57, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedResourceSemi_r18_specs_57 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedResourcePeriodicPerSlot_r18_value2enum_66[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n3" }, + { 3, 2, "n4" }, + { 4, 2, "n5" }, + { 5, 2, "n6" }, + { 6, 2, "n8" }, + { 7, 3, "n10" }, + { 8, 3, "n12" }, + { 9, 3, "n14" } +}; +static const unsigned int asn_MAP_maximumAggregatedResourcePeriodicPerSlot_r18_enum2value_66[] = { + 0, /* n1(0) */ + 7, /* n10(7) */ + 8, /* n12(8) */ + 9, /* n14(9) */ + 1, /* n2(1) */ + 2, /* n3(2) */ + 3, /* n4(3) */ + 4, /* n5(4) */ + 5, /* n6(5) */ + 6 /* n8(6) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedResourcePeriodicPerSlot_r18_specs_66 = { + asn_MAP_maximumAggregatedResourcePeriodicPerSlot_r18_value2enum_66, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedResourcePeriodicPerSlot_r18_enum2value_66, /* N => "tag"; sorted by N */ + 10, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_66[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_66 = { + "maximumAggregatedResourcePeriodicPerSlot-r18", + "maximumAggregatedResourcePeriodicPerSlot-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_66, + sizeof(asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_66) + /sizeof(asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_66[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_66, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_66) + /sizeof(asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_66[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedResourcePeriodicPerSlot_r18_constr_66, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedResourcePeriodicPerSlot_r18_specs_66 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedResourceAperiodicPerSlot_r18_value2enum_77[] = { + { 0, 2, "n0" }, + { 1, 2, "n1" }, + { 2, 2, "n2" }, + { 3, 2, "n3" }, + { 4, 2, "n4" }, + { 5, 2, "n5" }, + { 6, 2, "n6" }, + { 7, 2, "n8" }, + { 8, 3, "n10" }, + { 9, 3, "n12" }, + { 10, 3, "n14" } +}; +static const unsigned int asn_MAP_maximumAggregatedResourceAperiodicPerSlot_r18_enum2value_77[] = { + 0, /* n0(0) */ + 1, /* n1(1) */ + 8, /* n10(8) */ + 9, /* n12(9) */ + 10, /* n14(10) */ + 2, /* n2(2) */ + 3, /* n3(3) */ + 4, /* n4(4) */ + 5, /* n5(5) */ + 6, /* n6(6) */ + 7 /* n8(7) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedResourceAperiodicPerSlot_r18_specs_77 = { + asn_MAP_maximumAggregatedResourceAperiodicPerSlot_r18_value2enum_77, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedResourceAperiodicPerSlot_r18_enum2value_77, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_tags_77[] = { + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_77 = { + "maximumAggregatedResourceAperiodicPerSlot-r18", + "maximumAggregatedResourceAperiodicPerSlot-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_tags_77, + sizeof(asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_tags_77) + /sizeof(asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_tags_77[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_tags_77, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_tags_77) + /sizeof(asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_tags_77[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedResourceAperiodicPerSlot_r18_constr_77, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedResourceAperiodicPerSlot_r18_specs_77 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedResourceSemiPerSlot_r18_value2enum_89[] = { + { 0, 2, "n0" }, + { 1, 2, "n1" }, + { 2, 2, "n2" }, + { 3, 2, "n3" }, + { 4, 2, "n4" }, + { 5, 2, "n5" }, + { 6, 2, "n6" }, + { 7, 2, "n8" }, + { 8, 3, "n10" }, + { 9, 3, "n12" }, + { 10, 3, "n14" } +}; +static const unsigned int asn_MAP_maximumAggregatedResourceSemiPerSlot_r18_enum2value_89[] = { + 0, /* n0(0) */ + 1, /* n1(1) */ + 8, /* n10(8) */ + 9, /* n12(9) */ + 10, /* n14(10) */ + 2, /* n2(2) */ + 3, /* n3(3) */ + 4, /* n4(4) */ + 5, /* n5(5) */ + 6, /* n6(6) */ + 7 /* n8(7) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedResourceSemiPerSlot_r18_specs_89 = { + asn_MAP_maximumAggregatedResourceSemiPerSlot_r18_value2enum_89, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedResourceSemiPerSlot_r18_enum2value_89, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_89[] = { + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_89 = { + "maximumAggregatedResourceSemiPerSlot-r18", + "maximumAggregatedResourceSemiPerSlot-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_89, + sizeof(asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_89) + /sizeof(asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_89[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_89, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_89) + /sizeof(asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_89[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedResourceSemiPerSlot_r18_constr_89, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedResourceSemiPerSlot_r18_specs_89 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfSameSRS_PowerReduction_r18_value2enum_101[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfSameSRS_PowerReduction_r18_enum2value_101[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfSameSRS_PowerReduction_r18_specs_101 = { + asn_MAP_supportOfSameSRS_PowerReduction_r18_value2enum_101, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfSameSRS_PowerReduction_r18_enum2value_101, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_101[] = { + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfSameSRS_PowerReduction_r18_101 = { + "supportOfSameSRS-PowerReduction-r18", + "supportOfSameSRS-PowerReduction-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_101, + sizeof(asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_101) + /sizeof(asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_101[0]) - 1, /* 1 */ + asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_101, /* Same as above */ + sizeof(asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_101) + /sizeof(asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_101[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfSameSRS_PowerReduction_r18_constr_101, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfSameSRS_PowerReduction_r18_specs_101 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_guardPeriod_r18_value2enum_103[] = { + { 0, 3, "ms0" }, + { 1, 4, "ms30" }, + { 2, 5, "ms100" }, + { 3, 5, "ms140" }, + { 4, 5, "ms200" } +}; +static const unsigned int asn_MAP_guardPeriod_r18_enum2value_103[] = { + 0, /* ms0(0) */ + 2, /* ms100(2) */ + 3, /* ms140(3) */ + 4, /* ms200(4) */ + 1 /* ms30(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_guardPeriod_r18_specs_103 = { + asn_MAP_guardPeriod_r18_value2enum_103, /* "tag" => N; sorted by tag */ + asn_MAP_guardPeriod_r18_enum2value_103, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_guardPeriod_r18_tags_103[] = { + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_guardPeriod_r18_103 = { + "guardPeriod-r18", + "guardPeriod-r18", + &asn_OP_NativeEnumerated, + asn_DEF_guardPeriod_r18_tags_103, + sizeof(asn_DEF_guardPeriod_r18_tags_103) + /sizeof(asn_DEF_guardPeriod_r18_tags_103[0]) - 1, /* 1 */ + asn_DEF_guardPeriod_r18_tags_103, /* Same as above */ + sizeof(asn_DEF_guardPeriod_r18_tags_103) + /sizeof(asn_DEF_guardPeriod_r18_tags_103[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_guardPeriod_r18_constr_103, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_guardPeriod_r18_specs_103 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_PosSRS_BWA_IndependentCA_RRC_Connected_r18_1[] = { + { ATF_POINTER, 14, offsetof(struct PosSRS_BWA_IndependentCA_RRC_Connected_r18, numOfCarriersIntraBandContiguous_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_numOfCarriersIntraBandContiguous_r18_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "numOfCarriersIntraBandContiguous-r18" + }, + { ATF_POINTER, 13, offsetof(struct PosSRS_BWA_IndependentCA_RRC_Connected_r18, maximumAggregatedBW_TwoCarriersFR1_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedBW-TwoCarriersFR1-r18" + }, + { ATF_POINTER, 12, offsetof(struct PosSRS_BWA_IndependentCA_RRC_Connected_r18, maximumAggregatedBW_TwoCarriersFR2_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedBW-TwoCarriersFR2-r18" + }, + { ATF_POINTER, 11, offsetof(struct PosSRS_BWA_IndependentCA_RRC_Connected_r18, maximumAggregatedBW_ThreeCarriersFR1_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedBW-ThreeCarriersFR1-r18" + }, + { ATF_POINTER, 10, offsetof(struct PosSRS_BWA_IndependentCA_RRC_Connected_r18, maximumAggregatedBW_ThreeCarriersFR2_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_24, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedBW-ThreeCarriersFR2-r18" + }, + { ATF_POINTER, 9, offsetof(struct PosSRS_BWA_IndependentCA_RRC_Connected_r18, maximumAggregatedResourceSet_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedResourceSet_r18_33, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedResourceSet-r18" + }, + { ATF_POINTER, 8, offsetof(struct PosSRS_BWA_IndependentCA_RRC_Connected_r18, maximumAggregatedResourcePeriodic_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedResourcePeriodic_r18_40, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedResourcePeriodic-r18" + }, + { ATF_POINTER, 7, offsetof(struct PosSRS_BWA_IndependentCA_RRC_Connected_r18, maximumAggregatedResourceAperiodic_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedResourceAperiodic_r18_48, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedResourceAperiodic-r18" + }, + { ATF_POINTER, 6, offsetof(struct PosSRS_BWA_IndependentCA_RRC_Connected_r18, maximumAggregatedResourceSemi_r18), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedResourceSemi_r18_57, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedResourceSemi-r18" + }, + { ATF_POINTER, 5, offsetof(struct PosSRS_BWA_IndependentCA_RRC_Connected_r18, maximumAggregatedResourcePeriodicPerSlot_r18), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_66, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedResourcePeriodicPerSlot-r18" + }, + { ATF_POINTER, 4, offsetof(struct PosSRS_BWA_IndependentCA_RRC_Connected_r18, maximumAggregatedResourceAperiodicPerSlot_r18), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_77, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedResourceAperiodicPerSlot-r18" + }, + { ATF_POINTER, 3, offsetof(struct PosSRS_BWA_IndependentCA_RRC_Connected_r18, maximumAggregatedResourceSemiPerSlot_r18), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_89, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedResourceSemiPerSlot-r18" + }, + { ATF_POINTER, 2, offsetof(struct PosSRS_BWA_IndependentCA_RRC_Connected_r18, supportOfSameSRS_PowerReduction_r18), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfSameSRS_PowerReduction_r18_101, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfSameSRS-PowerReduction-r18" + }, + { ATF_POINTER, 1, offsetof(struct PosSRS_BWA_IndependentCA_RRC_Connected_r18, guardPeriod_r18), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_guardPeriod_r18_103, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "guardPeriod-r18" + }, +}; +static const int asn_MAP_PosSRS_BWA_IndependentCA_RRC_Connected_r18_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static const ber_tlv_tag_t asn_DEF_PosSRS_BWA_IndependentCA_RRC_Connected_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PosSRS_BWA_IndependentCA_RRC_Connected_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* numOfCarriersIntraBandContiguous-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maximumAggregatedBW-TwoCarriersFR1-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* maximumAggregatedBW-TwoCarriersFR2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* maximumAggregatedBW-ThreeCarriersFR1-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* maximumAggregatedBW-ThreeCarriersFR2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* maximumAggregatedResourceSet-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* maximumAggregatedResourcePeriodic-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* maximumAggregatedResourceAperiodic-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* maximumAggregatedResourceSemi-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* maximumAggregatedResourcePeriodicPerSlot-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* maximumAggregatedResourceAperiodicPerSlot-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* maximumAggregatedResourceSemiPerSlot-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* supportOfSameSRS-PowerReduction-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 } /* guardPeriod-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PosSRS_BWA_IndependentCA_RRC_Connected_r18_specs_1 = { + sizeof(struct PosSRS_BWA_IndependentCA_RRC_Connected_r18), + offsetof(struct PosSRS_BWA_IndependentCA_RRC_Connected_r18, _asn_ctx), + asn_MAP_PosSRS_BWA_IndependentCA_RRC_Connected_r18_tag2el_1, + 14, /* Count of tags in the map */ + asn_MAP_PosSRS_BWA_IndependentCA_RRC_Connected_r18_oms_1, /* Optional members */ + 14, 0, /* Root/Additions */ + 14, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PosSRS_BWA_IndependentCA_RRC_Connected_r18 = { + "PosSRS-BWA-IndependentCA-RRC-Connected-r18", + "PosSRS-BWA-IndependentCA-RRC-Connected-r18", + &asn_OP_SEQUENCE, + asn_DEF_PosSRS_BWA_IndependentCA_RRC_Connected_r18_tags_1, + sizeof(asn_DEF_PosSRS_BWA_IndependentCA_RRC_Connected_r18_tags_1) + /sizeof(asn_DEF_PosSRS_BWA_IndependentCA_RRC_Connected_r18_tags_1[0]), /* 1 */ + asn_DEF_PosSRS_BWA_IndependentCA_RRC_Connected_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_PosSRS_BWA_IndependentCA_RRC_Connected_r18_tags_1) + /sizeof(asn_DEF_PosSRS_BWA_IndependentCA_RRC_Connected_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PosSRS_BWA_IndependentCA_RRC_Connected_r18_1, + 14, /* Elements count */ + &asn_SPC_PosSRS_BWA_IndependentCA_RRC_Connected_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/PosSRS-BWA-IndependentCA-RRC-Connected-r18.h b/asn.1/lpp_generated/PosSRS-BWA-IndependentCA-RRC-Connected-r18.h new file mode 100644 index 00000000..5ef25866 --- /dev/null +++ b/asn.1/lpp_generated/PosSRS-BWA-IndependentCA-RRC-Connected-r18.h @@ -0,0 +1,194 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _PosSRS_BWA_IndependentCA_RRC_Connected_r18_H_ +#define _PosSRS_BWA_IndependentCA_RRC_Connected_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PosSRS_BWA_IndependentCA_RRC_Connected_r18__numOfCarriersIntraBandContiguous_r18 { + PosSRS_BWA_IndependentCA_RRC_Connected_r18__numOfCarriersIntraBandContiguous_r18_two = 0, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__numOfCarriersIntraBandContiguous_r18_three = 1, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__numOfCarriersIntraBandContiguous_r18_twoandthree = 2 +} e_PosSRS_BWA_IndependentCA_RRC_Connected_r18__numOfCarriersIntraBandContiguous_r18; +typedef enum PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR1_r18 { + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR1_r18_mhz80 = 0, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR1_r18_mhz100 = 1, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR1_r18_mhz160 = 2, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR1_r18_mhz200 = 3 +} e_PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR1_r18; +typedef enum PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR2_r18 { + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR2_r18_mhz50 = 0, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR2_r18_mhz100 = 1, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR2_r18_mhz200 = 2, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR2_r18_mhz400 = 3, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR2_r18_mhz600 = 4, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR2_r18_mhz800 = 5 +} e_PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR2_r18; +typedef enum PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR1_r18 { + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR1_r18_mhz80 = 0, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR1_r18_mhz100 = 1, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR1_r18_mhz160 = 2, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR1_r18_mhz200 = 3, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR1_r18_mhz300 = 4 +} e_PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR1_r18; +typedef enum PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18 { + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz50 = 0, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz100 = 1, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz200 = 2, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz400 = 3, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz600 = 4, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz800 = 5, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz1000 = 6, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz1200 = 7 +} e_PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18; +typedef enum PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSet_r18 { + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSet_r18_n1 = 0, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSet_r18_n2 = 1, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSet_r18_n4 = 2, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSet_r18_n8 = 3, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSet_r18_n12 = 4, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSet_r18_n16 = 5 +} e_PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSet_r18; +typedef enum PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodic_r18 { + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodic_r18_n1 = 0, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodic_r18_n2 = 1, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodic_r18_n4 = 2, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodic_r18_n8 = 3, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodic_r18_n16 = 4, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodic_r18_n32 = 5, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodic_r18_n64 = 6 +} e_PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodic_r18; +typedef enum PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18 { + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18_n0 = 0, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18_n1 = 1, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18_n2 = 2, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18_n4 = 3, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18_n8 = 4, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18_n16 = 5, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18_n32 = 6, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18_n64 = 7 +} e_PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18; +typedef enum PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18 { + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18_n0 = 0, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18_n1 = 1, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18_n2 = 2, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18_n4 = 3, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18_n8 = 4, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18_n16 = 5, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18_n32 = 6, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18_n64 = 7 +} e_PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18; +typedef enum PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18 { + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n1 = 0, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n2 = 1, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n3 = 2, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n4 = 3, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n5 = 4, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n6 = 5, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n8 = 6, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n10 = 7, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n12 = 8, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n14 = 9 +} e_PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18; +typedef enum PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18 { + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n0 = 0, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n1 = 1, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n2 = 2, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n3 = 3, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n4 = 4, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n5 = 5, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n6 = 6, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n8 = 7, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n10 = 8, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n12 = 9, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n14 = 10 +} e_PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18; +typedef enum PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18 { + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n0 = 0, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n1 = 1, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n2 = 2, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n3 = 3, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n4 = 4, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n5 = 5, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n6 = 6, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n8 = 7, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n10 = 8, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n12 = 9, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n14 = 10 +} e_PosSRS_BWA_IndependentCA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18; +typedef enum PosSRS_BWA_IndependentCA_RRC_Connected_r18__supportOfSameSRS_PowerReduction_r18 { + PosSRS_BWA_IndependentCA_RRC_Connected_r18__supportOfSameSRS_PowerReduction_r18_supported = 0 +} e_PosSRS_BWA_IndependentCA_RRC_Connected_r18__supportOfSameSRS_PowerReduction_r18; +typedef enum PosSRS_BWA_IndependentCA_RRC_Connected_r18__guardPeriod_r18 { + PosSRS_BWA_IndependentCA_RRC_Connected_r18__guardPeriod_r18_ms0 = 0, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__guardPeriod_r18_ms30 = 1, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__guardPeriod_r18_ms100 = 2, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__guardPeriod_r18_ms140 = 3, + PosSRS_BWA_IndependentCA_RRC_Connected_r18__guardPeriod_r18_ms200 = 4 +} e_PosSRS_BWA_IndependentCA_RRC_Connected_r18__guardPeriod_r18; + +/* PosSRS-BWA-IndependentCA-RRC-Connected-r18 */ +typedef struct PosSRS_BWA_IndependentCA_RRC_Connected_r18 { + long *numOfCarriersIntraBandContiguous_r18; /* OPTIONAL */ + long *maximumAggregatedBW_TwoCarriersFR1_r18; /* OPTIONAL */ + long *maximumAggregatedBW_TwoCarriersFR2_r18; /* OPTIONAL */ + long *maximumAggregatedBW_ThreeCarriersFR1_r18; /* OPTIONAL */ + long *maximumAggregatedBW_ThreeCarriersFR2_r18; /* OPTIONAL */ + long *maximumAggregatedResourceSet_r18; /* OPTIONAL */ + long *maximumAggregatedResourcePeriodic_r18; /* OPTIONAL */ + long *maximumAggregatedResourceAperiodic_r18; /* OPTIONAL */ + long *maximumAggregatedResourceSemi_r18; /* OPTIONAL */ + long *maximumAggregatedResourcePeriodicPerSlot_r18; /* OPTIONAL */ + long *maximumAggregatedResourceAperiodicPerSlot_r18; /* OPTIONAL */ + long *maximumAggregatedResourceSemiPerSlot_r18; /* OPTIONAL */ + long *supportOfSameSRS_PowerReduction_r18; /* OPTIONAL */ + long *guardPeriod_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PosSRS_BWA_IndependentCA_RRC_Connected_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_numOfCarriersIntraBandContiguous_r18_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_6; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_11; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_18; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_24; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceSet_r18_33; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourcePeriodic_r18_40; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceAperiodic_r18_48; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceSemi_r18_57; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_66; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_77; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_89; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfSameSRS_PowerReduction_r18_101; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_guardPeriod_r18_103; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_PosSRS_BWA_IndependentCA_RRC_Connected_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_PosSRS_BWA_IndependentCA_RRC_Connected_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_PosSRS_BWA_IndependentCA_RRC_Connected_r18_1[14]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PosSRS_BWA_IndependentCA_RRC_Connected_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/PosSRS-BWA-RRC-Connected-r18.c b/asn.1/lpp_generated/PosSRS-BWA-RRC-Connected-r18.c new file mode 100644 index 00000000..487319fa --- /dev/null +++ b/asn.1/lpp_generated/PosSRS-BWA-RRC-Connected-r18.c @@ -0,0 +1,1136 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PosSRS-BWA-RRC-Connected-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_numOfCarriersIntraBandContiguous_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedBW_TwoCarriersFR1_r18_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedBW_TwoCarriersFR2_r18_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedBW_ThreeCarriersFR1_r18_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedBW_ThreeCarriersFR2_r18_constr_24 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedResourceSet_r18_constr_33 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedResourcePeriodic_r18_constr_40 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedResourceAperiodic_r18_constr_48 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedResourceSemi_r18_constr_57 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedResourcePeriodicPerSlot_r18_constr_66 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedResourceAperiodicPerSlot_r18_constr_77 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedResourceSemiPerSlot_r18_constr_89 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfSameSRS_PowerReduction_r18_constr_101 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_numOfCarriersIntraBandContiguous_r18_value2enum_2[] = { + { 0, 3, "two" }, + { 1, 5, "three" }, + { 2, 11, "twoandthree" } +}; +static const unsigned int asn_MAP_numOfCarriersIntraBandContiguous_r18_enum2value_2[] = { + 1, /* three(1) */ + 0, /* two(0) */ + 2 /* twoandthree(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_numOfCarriersIntraBandContiguous_r18_specs_2 = { + asn_MAP_numOfCarriersIntraBandContiguous_r18_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_numOfCarriersIntraBandContiguous_r18_enum2value_2, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_numOfCarriersIntraBandContiguous_r18_2 = { + "numOfCarriersIntraBandContiguous-r18", + "numOfCarriersIntraBandContiguous-r18", + &asn_OP_NativeEnumerated, + asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2, + sizeof(asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2) + /sizeof(asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2[0]) - 1, /* 1 */ + asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2, /* Same as above */ + sizeof(asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2) + /sizeof(asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_numOfCarriersIntraBandContiguous_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_numOfCarriersIntraBandContiguous_r18_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedBW_TwoCarriersFR1_r18_value2enum_6[] = { + { 0, 5, "mhz80" }, + { 1, 6, "mhz100" }, + { 2, 6, "mhz160" }, + { 3, 6, "mhz200" } +}; +static const unsigned int asn_MAP_maximumAggregatedBW_TwoCarriersFR1_r18_enum2value_6[] = { + 1, /* mhz100(1) */ + 2, /* mhz160(2) */ + 3, /* mhz200(3) */ + 0 /* mhz80(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedBW_TwoCarriersFR1_r18_specs_6 = { + asn_MAP_maximumAggregatedBW_TwoCarriersFR1_r18_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedBW_TwoCarriersFR1_r18_enum2value_6, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_6 = { + "maximumAggregatedBW-TwoCarriersFR1-r18", + "maximumAggregatedBW-TwoCarriersFR1-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6, + sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6) + /sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6) + /sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedBW_TwoCarriersFR1_r18_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedBW_TwoCarriersFR1_r18_specs_6 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedBW_TwoCarriersFR2_r18_value2enum_11[] = { + { 0, 5, "mhz50" }, + { 1, 6, "mhz100" }, + { 2, 6, "mhz200" }, + { 3, 6, "mhz400" }, + { 4, 6, "mhz600" }, + { 5, 6, "mhz800" } +}; +static const unsigned int asn_MAP_maximumAggregatedBW_TwoCarriersFR2_r18_enum2value_11[] = { + 1, /* mhz100(1) */ + 2, /* mhz200(2) */ + 3, /* mhz400(3) */ + 0, /* mhz50(0) */ + 4, /* mhz600(4) */ + 5 /* mhz800(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedBW_TwoCarriersFR2_r18_specs_11 = { + asn_MAP_maximumAggregatedBW_TwoCarriersFR2_r18_value2enum_11, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedBW_TwoCarriersFR2_r18_enum2value_11, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_11 = { + "maximumAggregatedBW-TwoCarriersFR2-r18", + "maximumAggregatedBW-TwoCarriersFR2-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11, + sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11) + /sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11) + /sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedBW_TwoCarriersFR2_r18_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedBW_TwoCarriersFR2_r18_specs_11 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedBW_ThreeCarriersFR1_r18_value2enum_18[] = { + { 0, 5, "mhz80" }, + { 1, 6, "mhz100" }, + { 2, 6, "mhz160" }, + { 3, 6, "mhz200" }, + { 4, 6, "mhz300" } +}; +static const unsigned int asn_MAP_maximumAggregatedBW_ThreeCarriersFR1_r18_enum2value_18[] = { + 1, /* mhz100(1) */ + 2, /* mhz160(2) */ + 3, /* mhz200(3) */ + 4, /* mhz300(4) */ + 0 /* mhz80(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedBW_ThreeCarriersFR1_r18_specs_18 = { + asn_MAP_maximumAggregatedBW_ThreeCarriersFR1_r18_value2enum_18, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedBW_ThreeCarriersFR1_r18_enum2value_18, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_18 = { + "maximumAggregatedBW-ThreeCarriersFR1-r18", + "maximumAggregatedBW-ThreeCarriersFR1-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18, + sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18) + /sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18) + /sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedBW_ThreeCarriersFR1_r18_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedBW_ThreeCarriersFR1_r18_specs_18 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedBW_ThreeCarriersFR2_r18_value2enum_24[] = { + { 0, 5, "mhz50" }, + { 1, 6, "mhz100" }, + { 2, 6, "mhz200" }, + { 3, 6, "mhz400" }, + { 4, 6, "mhz600" }, + { 5, 6, "mhz800" }, + { 6, 7, "mhz1000" }, + { 7, 7, "mhz1200" } +}; +static const unsigned int asn_MAP_maximumAggregatedBW_ThreeCarriersFR2_r18_enum2value_24[] = { + 1, /* mhz100(1) */ + 6, /* mhz1000(6) */ + 7, /* mhz1200(7) */ + 2, /* mhz200(2) */ + 3, /* mhz400(3) */ + 0, /* mhz50(0) */ + 4, /* mhz600(4) */ + 5 /* mhz800(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedBW_ThreeCarriersFR2_r18_specs_24 = { + asn_MAP_maximumAggregatedBW_ThreeCarriersFR2_r18_value2enum_24, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedBW_ThreeCarriersFR2_r18_enum2value_24, /* N => "tag"; sorted by N */ + 8, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_24 = { + "maximumAggregatedBW-ThreeCarriersFR2-r18", + "maximumAggregatedBW-ThreeCarriersFR2-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24, + sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24) + /sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24) + /sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedBW_ThreeCarriersFR2_r18_constr_24, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedBW_ThreeCarriersFR2_r18_specs_24 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedResourceSet_r18_value2enum_33[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n12" }, + { 5, 3, "n16" } +}; +static const unsigned int asn_MAP_maximumAggregatedResourceSet_r18_enum2value_33[] = { + 0, /* n1(0) */ + 4, /* n12(4) */ + 5, /* n16(5) */ + 1, /* n2(1) */ + 2, /* n4(2) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedResourceSet_r18_specs_33 = { + asn_MAP_maximumAggregatedResourceSet_r18_value2enum_33, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedResourceSet_r18_enum2value_33, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedResourceSet_r18_tags_33[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceSet_r18_33 = { + "maximumAggregatedResourceSet-r18", + "maximumAggregatedResourceSet-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedResourceSet_r18_tags_33, + sizeof(asn_DEF_maximumAggregatedResourceSet_r18_tags_33) + /sizeof(asn_DEF_maximumAggregatedResourceSet_r18_tags_33[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedResourceSet_r18_tags_33, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedResourceSet_r18_tags_33) + /sizeof(asn_DEF_maximumAggregatedResourceSet_r18_tags_33[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedResourceSet_r18_constr_33, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedResourceSet_r18_specs_33 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedResourcePeriodic_r18_value2enum_40[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n32" }, + { 6, 3, "n64" } +}; +static const unsigned int asn_MAP_maximumAggregatedResourcePeriodic_r18_enum2value_40[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n32(5) */ + 2, /* n4(2) */ + 6, /* n64(6) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedResourcePeriodic_r18_specs_40 = { + asn_MAP_maximumAggregatedResourcePeriodic_r18_value2enum_40, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedResourcePeriodic_r18_enum2value_40, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourcePeriodic_r18_40 = { + "maximumAggregatedResourcePeriodic-r18", + "maximumAggregatedResourcePeriodic-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40, + sizeof(asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40) + /sizeof(asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40) + /sizeof(asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedResourcePeriodic_r18_constr_40, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedResourcePeriodic_r18_specs_40 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedResourceAperiodic_r18_value2enum_48[] = { + { 0, 2, "n0" }, + { 1, 2, "n1" }, + { 2, 2, "n2" }, + { 3, 2, "n4" }, + { 4, 2, "n8" }, + { 5, 3, "n16" }, + { 6, 3, "n32" }, + { 7, 3, "n64" } +}; +static const unsigned int asn_MAP_maximumAggregatedResourceAperiodic_r18_enum2value_48[] = { + 0, /* n0(0) */ + 1, /* n1(1) */ + 5, /* n16(5) */ + 2, /* n2(2) */ + 6, /* n32(6) */ + 3, /* n4(3) */ + 7, /* n64(7) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedResourceAperiodic_r18_specs_48 = { + asn_MAP_maximumAggregatedResourceAperiodic_r18_value2enum_48, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedResourceAperiodic_r18_enum2value_48, /* N => "tag"; sorted by N */ + 8, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedResourceAperiodic_r18_tags_48[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceAperiodic_r18_48 = { + "maximumAggregatedResourceAperiodic-r18", + "maximumAggregatedResourceAperiodic-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedResourceAperiodic_r18_tags_48, + sizeof(asn_DEF_maximumAggregatedResourceAperiodic_r18_tags_48) + /sizeof(asn_DEF_maximumAggregatedResourceAperiodic_r18_tags_48[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedResourceAperiodic_r18_tags_48, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedResourceAperiodic_r18_tags_48) + /sizeof(asn_DEF_maximumAggregatedResourceAperiodic_r18_tags_48[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedResourceAperiodic_r18_constr_48, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedResourceAperiodic_r18_specs_48 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedResourceSemi_r18_value2enum_57[] = { + { 0, 2, "n0" }, + { 1, 2, "n1" }, + { 2, 2, "n2" }, + { 3, 2, "n4" }, + { 4, 2, "n8" }, + { 5, 3, "n16" }, + { 6, 3, "n32" }, + { 7, 3, "n64" } +}; +static const unsigned int asn_MAP_maximumAggregatedResourceSemi_r18_enum2value_57[] = { + 0, /* n0(0) */ + 1, /* n1(1) */ + 5, /* n16(5) */ + 2, /* n2(2) */ + 6, /* n32(6) */ + 3, /* n4(3) */ + 7, /* n64(7) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedResourceSemi_r18_specs_57 = { + asn_MAP_maximumAggregatedResourceSemi_r18_value2enum_57, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedResourceSemi_r18_enum2value_57, /* N => "tag"; sorted by N */ + 8, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedResourceSemi_r18_tags_57[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceSemi_r18_57 = { + "maximumAggregatedResourceSemi-r18", + "maximumAggregatedResourceSemi-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedResourceSemi_r18_tags_57, + sizeof(asn_DEF_maximumAggregatedResourceSemi_r18_tags_57) + /sizeof(asn_DEF_maximumAggregatedResourceSemi_r18_tags_57[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedResourceSemi_r18_tags_57, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedResourceSemi_r18_tags_57) + /sizeof(asn_DEF_maximumAggregatedResourceSemi_r18_tags_57[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedResourceSemi_r18_constr_57, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedResourceSemi_r18_specs_57 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedResourcePeriodicPerSlot_r18_value2enum_66[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n3" }, + { 3, 2, "n4" }, + { 4, 2, "n5" }, + { 5, 2, "n6" }, + { 6, 2, "n8" }, + { 7, 3, "n10" }, + { 8, 3, "n12" }, + { 9, 3, "n14" } +}; +static const unsigned int asn_MAP_maximumAggregatedResourcePeriodicPerSlot_r18_enum2value_66[] = { + 0, /* n1(0) */ + 7, /* n10(7) */ + 8, /* n12(8) */ + 9, /* n14(9) */ + 1, /* n2(1) */ + 2, /* n3(2) */ + 3, /* n4(3) */ + 4, /* n5(4) */ + 5, /* n6(5) */ + 6 /* n8(6) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedResourcePeriodicPerSlot_r18_specs_66 = { + asn_MAP_maximumAggregatedResourcePeriodicPerSlot_r18_value2enum_66, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedResourcePeriodicPerSlot_r18_enum2value_66, /* N => "tag"; sorted by N */ + 10, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_66[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_66 = { + "maximumAggregatedResourcePeriodicPerSlot-r18", + "maximumAggregatedResourcePeriodicPerSlot-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_66, + sizeof(asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_66) + /sizeof(asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_66[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_66, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_66) + /sizeof(asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_66[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedResourcePeriodicPerSlot_r18_constr_66, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedResourcePeriodicPerSlot_r18_specs_66 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedResourceAperiodicPerSlot_r18_value2enum_77[] = { + { 0, 2, "n0" }, + { 1, 2, "n1" }, + { 2, 2, "n2" }, + { 3, 2, "n3" }, + { 4, 2, "n4" }, + { 5, 2, "n5" }, + { 6, 2, "n6" }, + { 7, 2, "n8" }, + { 8, 3, "n10" }, + { 9, 3, "n12" }, + { 10, 3, "n14" } +}; +static const unsigned int asn_MAP_maximumAggregatedResourceAperiodicPerSlot_r18_enum2value_77[] = { + 0, /* n0(0) */ + 1, /* n1(1) */ + 8, /* n10(8) */ + 9, /* n12(9) */ + 10, /* n14(10) */ + 2, /* n2(2) */ + 3, /* n3(3) */ + 4, /* n4(4) */ + 5, /* n5(5) */ + 6, /* n6(6) */ + 7 /* n8(7) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedResourceAperiodicPerSlot_r18_specs_77 = { + asn_MAP_maximumAggregatedResourceAperiodicPerSlot_r18_value2enum_77, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedResourceAperiodicPerSlot_r18_enum2value_77, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_tags_77[] = { + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_77 = { + "maximumAggregatedResourceAperiodicPerSlot-r18", + "maximumAggregatedResourceAperiodicPerSlot-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_tags_77, + sizeof(asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_tags_77) + /sizeof(asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_tags_77[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_tags_77, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_tags_77) + /sizeof(asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_tags_77[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedResourceAperiodicPerSlot_r18_constr_77, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedResourceAperiodicPerSlot_r18_specs_77 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedResourceSemiPerSlot_r18_value2enum_89[] = { + { 0, 2, "n0" }, + { 1, 2, "n1" }, + { 2, 2, "n2" }, + { 3, 2, "n3" }, + { 4, 2, "n4" }, + { 5, 2, "n5" }, + { 6, 2, "n6" }, + { 7, 2, "n8" }, + { 8, 3, "n10" }, + { 9, 3, "n12" }, + { 10, 3, "n14" } +}; +static const unsigned int asn_MAP_maximumAggregatedResourceSemiPerSlot_r18_enum2value_89[] = { + 0, /* n0(0) */ + 1, /* n1(1) */ + 8, /* n10(8) */ + 9, /* n12(9) */ + 10, /* n14(10) */ + 2, /* n2(2) */ + 3, /* n3(3) */ + 4, /* n4(4) */ + 5, /* n5(5) */ + 6, /* n6(6) */ + 7 /* n8(7) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedResourceSemiPerSlot_r18_specs_89 = { + asn_MAP_maximumAggregatedResourceSemiPerSlot_r18_value2enum_89, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedResourceSemiPerSlot_r18_enum2value_89, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_89[] = { + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_89 = { + "maximumAggregatedResourceSemiPerSlot-r18", + "maximumAggregatedResourceSemiPerSlot-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_89, + sizeof(asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_89) + /sizeof(asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_89[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_89, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_89) + /sizeof(asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_89[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedResourceSemiPerSlot_r18_constr_89, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedResourceSemiPerSlot_r18_specs_89 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfSameSRS_PowerReduction_r18_value2enum_101[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfSameSRS_PowerReduction_r18_enum2value_101[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfSameSRS_PowerReduction_r18_specs_101 = { + asn_MAP_supportOfSameSRS_PowerReduction_r18_value2enum_101, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfSameSRS_PowerReduction_r18_enum2value_101, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_101[] = { + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfSameSRS_PowerReduction_r18_101 = { + "supportOfSameSRS-PowerReduction-r18", + "supportOfSameSRS-PowerReduction-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_101, + sizeof(asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_101) + /sizeof(asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_101[0]) - 1, /* 1 */ + asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_101, /* Same as above */ + sizeof(asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_101) + /sizeof(asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_101[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfSameSRS_PowerReduction_r18_constr_101, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfSameSRS_PowerReduction_r18_specs_101 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_PosSRS_BWA_RRC_Connected_r18_1[] = { + { ATF_POINTER, 13, offsetof(struct PosSRS_BWA_RRC_Connected_r18, numOfCarriersIntraBandContiguous_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_numOfCarriersIntraBandContiguous_r18_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "numOfCarriersIntraBandContiguous-r18" + }, + { ATF_POINTER, 12, offsetof(struct PosSRS_BWA_RRC_Connected_r18, maximumAggregatedBW_TwoCarriersFR1_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedBW-TwoCarriersFR1-r18" + }, + { ATF_POINTER, 11, offsetof(struct PosSRS_BWA_RRC_Connected_r18, maximumAggregatedBW_TwoCarriersFR2_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedBW-TwoCarriersFR2-r18" + }, + { ATF_POINTER, 10, offsetof(struct PosSRS_BWA_RRC_Connected_r18, maximumAggregatedBW_ThreeCarriersFR1_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedBW-ThreeCarriersFR1-r18" + }, + { ATF_POINTER, 9, offsetof(struct PosSRS_BWA_RRC_Connected_r18, maximumAggregatedBW_ThreeCarriersFR2_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_24, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedBW-ThreeCarriersFR2-r18" + }, + { ATF_POINTER, 8, offsetof(struct PosSRS_BWA_RRC_Connected_r18, maximumAggregatedResourceSet_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedResourceSet_r18_33, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedResourceSet-r18" + }, + { ATF_POINTER, 7, offsetof(struct PosSRS_BWA_RRC_Connected_r18, maximumAggregatedResourcePeriodic_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedResourcePeriodic_r18_40, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedResourcePeriodic-r18" + }, + { ATF_POINTER, 6, offsetof(struct PosSRS_BWA_RRC_Connected_r18, maximumAggregatedResourceAperiodic_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedResourceAperiodic_r18_48, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedResourceAperiodic-r18" + }, + { ATF_POINTER, 5, offsetof(struct PosSRS_BWA_RRC_Connected_r18, maximumAggregatedResourceSemi_r18), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedResourceSemi_r18_57, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedResourceSemi-r18" + }, + { ATF_POINTER, 4, offsetof(struct PosSRS_BWA_RRC_Connected_r18, maximumAggregatedResourcePeriodicPerSlot_r18), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_66, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedResourcePeriodicPerSlot-r18" + }, + { ATF_POINTER, 3, offsetof(struct PosSRS_BWA_RRC_Connected_r18, maximumAggregatedResourceAperiodicPerSlot_r18), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_77, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedResourceAperiodicPerSlot-r18" + }, + { ATF_POINTER, 2, offsetof(struct PosSRS_BWA_RRC_Connected_r18, maximumAggregatedResourceSemiPerSlot_r18), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_89, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedResourceSemiPerSlot-r18" + }, + { ATF_POINTER, 1, offsetof(struct PosSRS_BWA_RRC_Connected_r18, supportOfSameSRS_PowerReduction_r18), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfSameSRS_PowerReduction_r18_101, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfSameSRS-PowerReduction-r18" + }, +}; +static const int asn_MAP_PosSRS_BWA_RRC_Connected_r18_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static const ber_tlv_tag_t asn_DEF_PosSRS_BWA_RRC_Connected_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PosSRS_BWA_RRC_Connected_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* numOfCarriersIntraBandContiguous-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maximumAggregatedBW-TwoCarriersFR1-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* maximumAggregatedBW-TwoCarriersFR2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* maximumAggregatedBW-ThreeCarriersFR1-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* maximumAggregatedBW-ThreeCarriersFR2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* maximumAggregatedResourceSet-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* maximumAggregatedResourcePeriodic-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* maximumAggregatedResourceAperiodic-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* maximumAggregatedResourceSemi-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* maximumAggregatedResourcePeriodicPerSlot-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* maximumAggregatedResourceAperiodicPerSlot-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* maximumAggregatedResourceSemiPerSlot-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 } /* supportOfSameSRS-PowerReduction-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PosSRS_BWA_RRC_Connected_r18_specs_1 = { + sizeof(struct PosSRS_BWA_RRC_Connected_r18), + offsetof(struct PosSRS_BWA_RRC_Connected_r18, _asn_ctx), + asn_MAP_PosSRS_BWA_RRC_Connected_r18_tag2el_1, + 13, /* Count of tags in the map */ + asn_MAP_PosSRS_BWA_RRC_Connected_r18_oms_1, /* Optional members */ + 13, 0, /* Root/Additions */ + 13, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PosSRS_BWA_RRC_Connected_r18 = { + "PosSRS-BWA-RRC-Connected-r18", + "PosSRS-BWA-RRC-Connected-r18", + &asn_OP_SEQUENCE, + asn_DEF_PosSRS_BWA_RRC_Connected_r18_tags_1, + sizeof(asn_DEF_PosSRS_BWA_RRC_Connected_r18_tags_1) + /sizeof(asn_DEF_PosSRS_BWA_RRC_Connected_r18_tags_1[0]), /* 1 */ + asn_DEF_PosSRS_BWA_RRC_Connected_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_PosSRS_BWA_RRC_Connected_r18_tags_1) + /sizeof(asn_DEF_PosSRS_BWA_RRC_Connected_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PosSRS_BWA_RRC_Connected_r18_1, + 13, /* Elements count */ + &asn_SPC_PosSRS_BWA_RRC_Connected_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/PosSRS-BWA-RRC-Connected-r18.h b/asn.1/lpp_generated/PosSRS-BWA-RRC-Connected-r18.h new file mode 100644 index 00000000..9fed0c92 --- /dev/null +++ b/asn.1/lpp_generated/PosSRS-BWA-RRC-Connected-r18.h @@ -0,0 +1,185 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _PosSRS_BWA_RRC_Connected_r18_H_ +#define _PosSRS_BWA_RRC_Connected_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PosSRS_BWA_RRC_Connected_r18__numOfCarriersIntraBandContiguous_r18 { + PosSRS_BWA_RRC_Connected_r18__numOfCarriersIntraBandContiguous_r18_two = 0, + PosSRS_BWA_RRC_Connected_r18__numOfCarriersIntraBandContiguous_r18_three = 1, + PosSRS_BWA_RRC_Connected_r18__numOfCarriersIntraBandContiguous_r18_twoandthree = 2 +} e_PosSRS_BWA_RRC_Connected_r18__numOfCarriersIntraBandContiguous_r18; +typedef enum PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR1_r18 { + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR1_r18_mhz80 = 0, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR1_r18_mhz100 = 1, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR1_r18_mhz160 = 2, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR1_r18_mhz200 = 3 +} e_PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR1_r18; +typedef enum PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR2_r18 { + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR2_r18_mhz50 = 0, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR2_r18_mhz100 = 1, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR2_r18_mhz200 = 2, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR2_r18_mhz400 = 3, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR2_r18_mhz600 = 4, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR2_r18_mhz800 = 5 +} e_PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_TwoCarriersFR2_r18; +typedef enum PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR1_r18 { + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR1_r18_mhz80 = 0, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR1_r18_mhz100 = 1, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR1_r18_mhz160 = 2, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR1_r18_mhz200 = 3, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR1_r18_mhz300 = 4 +} e_PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR1_r18; +typedef enum PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18 { + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz50 = 0, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz100 = 1, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz200 = 2, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz400 = 3, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz600 = 4, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz800 = 5, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz1000 = 6, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz1200 = 7 +} e_PosSRS_BWA_RRC_Connected_r18__maximumAggregatedBW_ThreeCarriersFR2_r18; +typedef enum PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSet_r18 { + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSet_r18_n1 = 0, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSet_r18_n2 = 1, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSet_r18_n4 = 2, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSet_r18_n8 = 3, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSet_r18_n12 = 4, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSet_r18_n16 = 5 +} e_PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSet_r18; +typedef enum PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodic_r18 { + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodic_r18_n1 = 0, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodic_r18_n2 = 1, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodic_r18_n4 = 2, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodic_r18_n8 = 3, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodic_r18_n16 = 4, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodic_r18_n32 = 5, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodic_r18_n64 = 6 +} e_PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodic_r18; +typedef enum PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18 { + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18_n0 = 0, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18_n1 = 1, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18_n2 = 2, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18_n4 = 3, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18_n8 = 4, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18_n16 = 5, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18_n32 = 6, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18_n64 = 7 +} e_PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodic_r18; +typedef enum PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18 { + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18_n0 = 0, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18_n1 = 1, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18_n2 = 2, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18_n4 = 3, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18_n8 = 4, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18_n16 = 5, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18_n32 = 6, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18_n64 = 7 +} e_PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemi_r18; +typedef enum PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18 { + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n1 = 0, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n2 = 1, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n3 = 2, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n4 = 3, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n5 = 4, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n6 = 5, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n8 = 6, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n10 = 7, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n12 = 8, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n14 = 9 +} e_PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourcePeriodicPerSlot_r18; +typedef enum PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18 { + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n0 = 0, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n1 = 1, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n2 = 2, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n3 = 3, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n4 = 4, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n5 = 5, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n6 = 6, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n8 = 7, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n10 = 8, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n12 = 9, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18_n14 = 10 +} e_PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceAperiodicPerSlot_r18; +typedef enum PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18 { + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n0 = 0, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n1 = 1, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n2 = 2, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n3 = 3, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n4 = 4, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n5 = 5, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n6 = 6, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n8 = 7, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n10 = 8, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n12 = 9, + PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18_n14 = 10 +} e_PosSRS_BWA_RRC_Connected_r18__maximumAggregatedResourceSemiPerSlot_r18; +typedef enum PosSRS_BWA_RRC_Connected_r18__supportOfSameSRS_PowerReduction_r18 { + PosSRS_BWA_RRC_Connected_r18__supportOfSameSRS_PowerReduction_r18_supported = 0 +} e_PosSRS_BWA_RRC_Connected_r18__supportOfSameSRS_PowerReduction_r18; + +/* PosSRS-BWA-RRC-Connected-r18 */ +typedef struct PosSRS_BWA_RRC_Connected_r18 { + long *numOfCarriersIntraBandContiguous_r18; /* OPTIONAL */ + long *maximumAggregatedBW_TwoCarriersFR1_r18; /* OPTIONAL */ + long *maximumAggregatedBW_TwoCarriersFR2_r18; /* OPTIONAL */ + long *maximumAggregatedBW_ThreeCarriersFR1_r18; /* OPTIONAL */ + long *maximumAggregatedBW_ThreeCarriersFR2_r18; /* OPTIONAL */ + long *maximumAggregatedResourceSet_r18; /* OPTIONAL */ + long *maximumAggregatedResourcePeriodic_r18; /* OPTIONAL */ + long *maximumAggregatedResourceAperiodic_r18; /* OPTIONAL */ + long *maximumAggregatedResourceSemi_r18; /* OPTIONAL */ + long *maximumAggregatedResourcePeriodicPerSlot_r18; /* OPTIONAL */ + long *maximumAggregatedResourceAperiodicPerSlot_r18; /* OPTIONAL */ + long *maximumAggregatedResourceSemiPerSlot_r18; /* OPTIONAL */ + long *supportOfSameSRS_PowerReduction_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PosSRS_BWA_RRC_Connected_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_numOfCarriersIntraBandContiguous_r18_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_6; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_11; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_18; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_24; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceSet_r18_33; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourcePeriodic_r18_40; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceAperiodic_r18_48; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceSemi_r18_57; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_66; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceAperiodicPerSlot_r18_77; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_89; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfSameSRS_PowerReduction_r18_101; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_PosSRS_BWA_RRC_Connected_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_PosSRS_BWA_RRC_Connected_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_PosSRS_BWA_RRC_Connected_r18_1[13]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PosSRS_BWA_RRC_Connected_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/PosSRS-BWA-RRC-Inactive-r18.c b/asn.1/lpp_generated/PosSRS-BWA-RRC-Inactive-r18.c new file mode 100644 index 00000000..56d849d6 --- /dev/null +++ b/asn.1/lpp_generated/PosSRS-BWA-RRC-Inactive-r18.c @@ -0,0 +1,1038 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PosSRS-BWA-RRC-Inactive-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_numOfCarriersIntraBandContiguous_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedBW_TwoCarriersFR1_r18_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedBW_TwoCarriersFR2_r18_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedBW_ThreeCarriersFR1_r18_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedBW_ThreeCarriersFR2_r18_constr_24 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedResourceSet_r18_constr_33 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedResourcePeriodic_r18_constr_40 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedResourceSemi_r18_constr_48 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedResourcePeriodicPerSlot_r18_constr_57 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumAggregatedResourceSemiPerSlot_r18_constr_68 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportOfSameSRS_PowerReduction_r18_constr_80 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_guardPerid_r18_constr_82 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_numOfCarriersIntraBandContiguous_r18_value2enum_2[] = { + { 0, 3, "two" }, + { 1, 5, "three" }, + { 2, 11, "twoandthree" } +}; +static const unsigned int asn_MAP_numOfCarriersIntraBandContiguous_r18_enum2value_2[] = { + 1, /* three(1) */ + 0, /* two(0) */ + 2 /* twoandthree(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_numOfCarriersIntraBandContiguous_r18_specs_2 = { + asn_MAP_numOfCarriersIntraBandContiguous_r18_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_numOfCarriersIntraBandContiguous_r18_enum2value_2, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_numOfCarriersIntraBandContiguous_r18_2 = { + "numOfCarriersIntraBandContiguous-r18", + "numOfCarriersIntraBandContiguous-r18", + &asn_OP_NativeEnumerated, + asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2, + sizeof(asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2) + /sizeof(asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2[0]) - 1, /* 1 */ + asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2, /* Same as above */ + sizeof(asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2) + /sizeof(asn_DEF_numOfCarriersIntraBandContiguous_r18_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_numOfCarriersIntraBandContiguous_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_numOfCarriersIntraBandContiguous_r18_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedBW_TwoCarriersFR1_r18_value2enum_6[] = { + { 0, 5, "mhz80" }, + { 1, 6, "mhz100" }, + { 2, 6, "mhz160" }, + { 3, 6, "mhz200" } +}; +static const unsigned int asn_MAP_maximumAggregatedBW_TwoCarriersFR1_r18_enum2value_6[] = { + 1, /* mhz100(1) */ + 2, /* mhz160(2) */ + 3, /* mhz200(3) */ + 0 /* mhz80(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedBW_TwoCarriersFR1_r18_specs_6 = { + asn_MAP_maximumAggregatedBW_TwoCarriersFR1_r18_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedBW_TwoCarriersFR1_r18_enum2value_6, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_6 = { + "maximumAggregatedBW-TwoCarriersFR1-r18", + "maximumAggregatedBW-TwoCarriersFR1-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6, + sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6) + /sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6) + /sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedBW_TwoCarriersFR1_r18_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedBW_TwoCarriersFR1_r18_specs_6 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedBW_TwoCarriersFR2_r18_value2enum_11[] = { + { 0, 5, "mhz50" }, + { 1, 6, "mhz100" }, + { 2, 6, "mhz200" }, + { 3, 6, "mhz400" }, + { 4, 6, "mhz600" }, + { 5, 6, "mhz800" } +}; +static const unsigned int asn_MAP_maximumAggregatedBW_TwoCarriersFR2_r18_enum2value_11[] = { + 1, /* mhz100(1) */ + 2, /* mhz200(2) */ + 3, /* mhz400(3) */ + 0, /* mhz50(0) */ + 4, /* mhz600(4) */ + 5 /* mhz800(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedBW_TwoCarriersFR2_r18_specs_11 = { + asn_MAP_maximumAggregatedBW_TwoCarriersFR2_r18_value2enum_11, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedBW_TwoCarriersFR2_r18_enum2value_11, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_11 = { + "maximumAggregatedBW-TwoCarriersFR2-r18", + "maximumAggregatedBW-TwoCarriersFR2-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11, + sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11) + /sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11) + /sizeof(asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedBW_TwoCarriersFR2_r18_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedBW_TwoCarriersFR2_r18_specs_11 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedBW_ThreeCarriersFR1_r18_value2enum_18[] = { + { 0, 5, "mhz80" }, + { 1, 6, "mhz100" }, + { 2, 6, "mhz160" }, + { 3, 6, "mhz200" }, + { 4, 6, "mhz300" } +}; +static const unsigned int asn_MAP_maximumAggregatedBW_ThreeCarriersFR1_r18_enum2value_18[] = { + 1, /* mhz100(1) */ + 2, /* mhz160(2) */ + 3, /* mhz200(3) */ + 4, /* mhz300(4) */ + 0 /* mhz80(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedBW_ThreeCarriersFR1_r18_specs_18 = { + asn_MAP_maximumAggregatedBW_ThreeCarriersFR1_r18_value2enum_18, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedBW_ThreeCarriersFR1_r18_enum2value_18, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_18 = { + "maximumAggregatedBW-ThreeCarriersFR1-r18", + "maximumAggregatedBW-ThreeCarriersFR1-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18, + sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18) + /sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18) + /sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedBW_ThreeCarriersFR1_r18_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedBW_ThreeCarriersFR1_r18_specs_18 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedBW_ThreeCarriersFR2_r18_value2enum_24[] = { + { 0, 5, "mhz50" }, + { 1, 6, "mhz100" }, + { 2, 6, "mhz200" }, + { 3, 6, "mhz400" }, + { 4, 6, "mhz600" }, + { 5, 6, "mhz800" }, + { 6, 7, "mhz1000" }, + { 7, 7, "mhz1200" } +}; +static const unsigned int asn_MAP_maximumAggregatedBW_ThreeCarriersFR2_r18_enum2value_24[] = { + 1, /* mhz100(1) */ + 6, /* mhz1000(6) */ + 7, /* mhz1200(7) */ + 2, /* mhz200(2) */ + 3, /* mhz400(3) */ + 0, /* mhz50(0) */ + 4, /* mhz600(4) */ + 5 /* mhz800(5) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedBW_ThreeCarriersFR2_r18_specs_24 = { + asn_MAP_maximumAggregatedBW_ThreeCarriersFR2_r18_value2enum_24, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedBW_ThreeCarriersFR2_r18_enum2value_24, /* N => "tag"; sorted by N */ + 8, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_24 = { + "maximumAggregatedBW-ThreeCarriersFR2-r18", + "maximumAggregatedBW-ThreeCarriersFR2-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24, + sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24) + /sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24) + /sizeof(asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_tags_24[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedBW_ThreeCarriersFR2_r18_constr_24, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedBW_ThreeCarriersFR2_r18_specs_24 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedResourceSet_r18_value2enum_33[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n12" }, + { 5, 3, "n16" } +}; +static const unsigned int asn_MAP_maximumAggregatedResourceSet_r18_enum2value_33[] = { + 0, /* n1(0) */ + 4, /* n12(4) */ + 5, /* n16(5) */ + 1, /* n2(1) */ + 2, /* n4(2) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedResourceSet_r18_specs_33 = { + asn_MAP_maximumAggregatedResourceSet_r18_value2enum_33, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedResourceSet_r18_enum2value_33, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedResourceSet_r18_tags_33[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceSet_r18_33 = { + "maximumAggregatedResourceSet-r18", + "maximumAggregatedResourceSet-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedResourceSet_r18_tags_33, + sizeof(asn_DEF_maximumAggregatedResourceSet_r18_tags_33) + /sizeof(asn_DEF_maximumAggregatedResourceSet_r18_tags_33[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedResourceSet_r18_tags_33, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedResourceSet_r18_tags_33) + /sizeof(asn_DEF_maximumAggregatedResourceSet_r18_tags_33[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedResourceSet_r18_constr_33, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedResourceSet_r18_specs_33 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedResourcePeriodic_r18_value2enum_40[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n32" }, + { 6, 3, "n64" } +}; +static const unsigned int asn_MAP_maximumAggregatedResourcePeriodic_r18_enum2value_40[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n32(5) */ + 2, /* n4(2) */ + 6, /* n64(6) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedResourcePeriodic_r18_specs_40 = { + asn_MAP_maximumAggregatedResourcePeriodic_r18_value2enum_40, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedResourcePeriodic_r18_enum2value_40, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourcePeriodic_r18_40 = { + "maximumAggregatedResourcePeriodic-r18", + "maximumAggregatedResourcePeriodic-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40, + sizeof(asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40) + /sizeof(asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40) + /sizeof(asn_DEF_maximumAggregatedResourcePeriodic_r18_tags_40[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedResourcePeriodic_r18_constr_40, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedResourcePeriodic_r18_specs_40 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedResourceSemi_r18_value2enum_48[] = { + { 0, 2, "n0" }, + { 1, 2, "n1" }, + { 2, 2, "n2" }, + { 3, 2, "n4" }, + { 4, 2, "n8" }, + { 5, 3, "n16" }, + { 6, 3, "n32" }, + { 7, 3, "n64" } +}; +static const unsigned int asn_MAP_maximumAggregatedResourceSemi_r18_enum2value_48[] = { + 0, /* n0(0) */ + 1, /* n1(1) */ + 5, /* n16(5) */ + 2, /* n2(2) */ + 6, /* n32(6) */ + 3, /* n4(3) */ + 7, /* n64(7) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedResourceSemi_r18_specs_48 = { + asn_MAP_maximumAggregatedResourceSemi_r18_value2enum_48, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedResourceSemi_r18_enum2value_48, /* N => "tag"; sorted by N */ + 8, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedResourceSemi_r18_tags_48[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceSemi_r18_48 = { + "maximumAggregatedResourceSemi-r18", + "maximumAggregatedResourceSemi-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedResourceSemi_r18_tags_48, + sizeof(asn_DEF_maximumAggregatedResourceSemi_r18_tags_48) + /sizeof(asn_DEF_maximumAggregatedResourceSemi_r18_tags_48[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedResourceSemi_r18_tags_48, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedResourceSemi_r18_tags_48) + /sizeof(asn_DEF_maximumAggregatedResourceSemi_r18_tags_48[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedResourceSemi_r18_constr_48, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedResourceSemi_r18_specs_48 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedResourcePeriodicPerSlot_r18_value2enum_57[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n3" }, + { 3, 2, "n4" }, + { 4, 2, "n5" }, + { 5, 2, "n6" }, + { 6, 2, "n8" }, + { 7, 3, "n10" }, + { 8, 3, "n12" }, + { 9, 3, "n14" } +}; +static const unsigned int asn_MAP_maximumAggregatedResourcePeriodicPerSlot_r18_enum2value_57[] = { + 0, /* n1(0) */ + 7, /* n10(7) */ + 8, /* n12(8) */ + 9, /* n14(9) */ + 1, /* n2(1) */ + 2, /* n3(2) */ + 3, /* n4(3) */ + 4, /* n5(4) */ + 5, /* n6(5) */ + 6 /* n8(6) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedResourcePeriodicPerSlot_r18_specs_57 = { + asn_MAP_maximumAggregatedResourcePeriodicPerSlot_r18_value2enum_57, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedResourcePeriodicPerSlot_r18_enum2value_57, /* N => "tag"; sorted by N */ + 10, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_57[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_57 = { + "maximumAggregatedResourcePeriodicPerSlot-r18", + "maximumAggregatedResourcePeriodicPerSlot-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_57, + sizeof(asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_57) + /sizeof(asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_57[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_57, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_57) + /sizeof(asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_tags_57[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedResourcePeriodicPerSlot_r18_constr_57, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedResourcePeriodicPerSlot_r18_specs_57 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumAggregatedResourceSemiPerSlot_r18_value2enum_68[] = { + { 0, 2, "n0" }, + { 1, 2, "n1" }, + { 2, 2, "n2" }, + { 3, 2, "n3" }, + { 4, 2, "n4" }, + { 5, 2, "n5" }, + { 6, 2, "n6" }, + { 7, 2, "n8" }, + { 8, 3, "n10" }, + { 9, 3, "n12" }, + { 10, 3, "n14" } +}; +static const unsigned int asn_MAP_maximumAggregatedResourceSemiPerSlot_r18_enum2value_68[] = { + 0, /* n0(0) */ + 1, /* n1(1) */ + 8, /* n10(8) */ + 9, /* n12(9) */ + 10, /* n14(10) */ + 2, /* n2(2) */ + 3, /* n3(3) */ + 4, /* n4(4) */ + 5, /* n5(5) */ + 6, /* n6(6) */ + 7 /* n8(7) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumAggregatedResourceSemiPerSlot_r18_specs_68 = { + asn_MAP_maximumAggregatedResourceSemiPerSlot_r18_value2enum_68, /* "tag" => N; sorted by tag */ + asn_MAP_maximumAggregatedResourceSemiPerSlot_r18_enum2value_68, /* N => "tag"; sorted by N */ + 11, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_68[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_68 = { + "maximumAggregatedResourceSemiPerSlot-r18", + "maximumAggregatedResourceSemiPerSlot-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_68, + sizeof(asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_68) + /sizeof(asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_68[0]) - 1, /* 1 */ + asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_68, /* Same as above */ + sizeof(asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_68) + /sizeof(asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_tags_68[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumAggregatedResourceSemiPerSlot_r18_constr_68, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumAggregatedResourceSemiPerSlot_r18_specs_68 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_supportOfSameSRS_PowerReduction_r18_value2enum_80[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_supportOfSameSRS_PowerReduction_r18_enum2value_80[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_supportOfSameSRS_PowerReduction_r18_specs_80 = { + asn_MAP_supportOfSameSRS_PowerReduction_r18_value2enum_80, /* "tag" => N; sorted by tag */ + asn_MAP_supportOfSameSRS_PowerReduction_r18_enum2value_80, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_80[] = { + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportOfSameSRS_PowerReduction_r18_80 = { + "supportOfSameSRS-PowerReduction-r18", + "supportOfSameSRS-PowerReduction-r18", + &asn_OP_NativeEnumerated, + asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_80, + sizeof(asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_80) + /sizeof(asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_80[0]) - 1, /* 1 */ + asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_80, /* Same as above */ + sizeof(asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_80) + /sizeof(asn_DEF_supportOfSameSRS_PowerReduction_r18_tags_80[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportOfSameSRS_PowerReduction_r18_constr_80, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_supportOfSameSRS_PowerReduction_r18_specs_80 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_guardPerid_r18_value2enum_82[] = { + { 0, 3, "ms0" }, + { 1, 4, "ms30" }, + { 2, 5, "ms100" }, + { 3, 5, "ms140" }, + { 4, 5, "ms200" } +}; +static const unsigned int asn_MAP_guardPerid_r18_enum2value_82[] = { + 0, /* ms0(0) */ + 2, /* ms100(2) */ + 3, /* ms140(3) */ + 4, /* ms200(4) */ + 1 /* ms30(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_guardPerid_r18_specs_82 = { + asn_MAP_guardPerid_r18_value2enum_82, /* "tag" => N; sorted by tag */ + asn_MAP_guardPerid_r18_enum2value_82, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_guardPerid_r18_tags_82[] = { + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_guardPerid_r18_82 = { + "guardPerid-r18", + "guardPerid-r18", + &asn_OP_NativeEnumerated, + asn_DEF_guardPerid_r18_tags_82, + sizeof(asn_DEF_guardPerid_r18_tags_82) + /sizeof(asn_DEF_guardPerid_r18_tags_82[0]) - 1, /* 1 */ + asn_DEF_guardPerid_r18_tags_82, /* Same as above */ + sizeof(asn_DEF_guardPerid_r18_tags_82) + /sizeof(asn_DEF_guardPerid_r18_tags_82[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_guardPerid_r18_constr_82, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_guardPerid_r18_specs_82 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_PosSRS_BWA_RRC_Inactive_r18_1[] = { + { ATF_POINTER, 12, offsetof(struct PosSRS_BWA_RRC_Inactive_r18, numOfCarriersIntraBandContiguous_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_numOfCarriersIntraBandContiguous_r18_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "numOfCarriersIntraBandContiguous-r18" + }, + { ATF_POINTER, 11, offsetof(struct PosSRS_BWA_RRC_Inactive_r18, maximumAggregatedBW_TwoCarriersFR1_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedBW-TwoCarriersFR1-r18" + }, + { ATF_POINTER, 10, offsetof(struct PosSRS_BWA_RRC_Inactive_r18, maximumAggregatedBW_TwoCarriersFR2_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedBW-TwoCarriersFR2-r18" + }, + { ATF_POINTER, 9, offsetof(struct PosSRS_BWA_RRC_Inactive_r18, maximumAggregatedBW_ThreeCarriersFR1_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedBW-ThreeCarriersFR1-r18" + }, + { ATF_POINTER, 8, offsetof(struct PosSRS_BWA_RRC_Inactive_r18, maximumAggregatedBW_ThreeCarriersFR2_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_24, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedBW-ThreeCarriersFR2-r18" + }, + { ATF_POINTER, 7, offsetof(struct PosSRS_BWA_RRC_Inactive_r18, maximumAggregatedResourceSet_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedResourceSet_r18_33, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedResourceSet-r18" + }, + { ATF_POINTER, 6, offsetof(struct PosSRS_BWA_RRC_Inactive_r18, maximumAggregatedResourcePeriodic_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedResourcePeriodic_r18_40, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedResourcePeriodic-r18" + }, + { ATF_POINTER, 5, offsetof(struct PosSRS_BWA_RRC_Inactive_r18, maximumAggregatedResourceSemi_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedResourceSemi_r18_48, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedResourceSemi-r18" + }, + { ATF_POINTER, 4, offsetof(struct PosSRS_BWA_RRC_Inactive_r18, maximumAggregatedResourcePeriodicPerSlot_r18), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_57, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedResourcePeriodicPerSlot-r18" + }, + { ATF_POINTER, 3, offsetof(struct PosSRS_BWA_RRC_Inactive_r18, maximumAggregatedResourceSemiPerSlot_r18), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_68, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumAggregatedResourceSemiPerSlot-r18" + }, + { ATF_POINTER, 2, offsetof(struct PosSRS_BWA_RRC_Inactive_r18, supportOfSameSRS_PowerReduction_r18), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_supportOfSameSRS_PowerReduction_r18_80, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportOfSameSRS-PowerReduction-r18" + }, + { ATF_POINTER, 1, offsetof(struct PosSRS_BWA_RRC_Inactive_r18, guardPerid_r18), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_guardPerid_r18_82, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "guardPerid-r18" + }, +}; +static const int asn_MAP_PosSRS_BWA_RRC_Inactive_r18_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static const ber_tlv_tag_t asn_DEF_PosSRS_BWA_RRC_Inactive_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PosSRS_BWA_RRC_Inactive_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* numOfCarriersIntraBandContiguous-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maximumAggregatedBW-TwoCarriersFR1-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* maximumAggregatedBW-TwoCarriersFR2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* maximumAggregatedBW-ThreeCarriersFR1-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* maximumAggregatedBW-ThreeCarriersFR2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* maximumAggregatedResourceSet-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* maximumAggregatedResourcePeriodic-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* maximumAggregatedResourceSemi-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* maximumAggregatedResourcePeriodicPerSlot-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* maximumAggregatedResourceSemiPerSlot-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* supportOfSameSRS-PowerReduction-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* guardPerid-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PosSRS_BWA_RRC_Inactive_r18_specs_1 = { + sizeof(struct PosSRS_BWA_RRC_Inactive_r18), + offsetof(struct PosSRS_BWA_RRC_Inactive_r18, _asn_ctx), + asn_MAP_PosSRS_BWA_RRC_Inactive_r18_tag2el_1, + 12, /* Count of tags in the map */ + asn_MAP_PosSRS_BWA_RRC_Inactive_r18_oms_1, /* Optional members */ + 12, 0, /* Root/Additions */ + 12, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PosSRS_BWA_RRC_Inactive_r18 = { + "PosSRS-BWA-RRC-Inactive-r18", + "PosSRS-BWA-RRC-Inactive-r18", + &asn_OP_SEQUENCE, + asn_DEF_PosSRS_BWA_RRC_Inactive_r18_tags_1, + sizeof(asn_DEF_PosSRS_BWA_RRC_Inactive_r18_tags_1) + /sizeof(asn_DEF_PosSRS_BWA_RRC_Inactive_r18_tags_1[0]), /* 1 */ + asn_DEF_PosSRS_BWA_RRC_Inactive_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_PosSRS_BWA_RRC_Inactive_r18_tags_1) + /sizeof(asn_DEF_PosSRS_BWA_RRC_Inactive_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PosSRS_BWA_RRC_Inactive_r18_1, + 12, /* Elements count */ + &asn_SPC_PosSRS_BWA_RRC_Inactive_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/PosSRS-BWA-RRC-Inactive-r18.h b/asn.1/lpp_generated/PosSRS-BWA-RRC-Inactive-r18.h new file mode 100644 index 00000000..cbbd33cc --- /dev/null +++ b/asn.1/lpp_generated/PosSRS-BWA-RRC-Inactive-r18.h @@ -0,0 +1,167 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _PosSRS_BWA_RRC_Inactive_r18_H_ +#define _PosSRS_BWA_RRC_Inactive_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PosSRS_BWA_RRC_Inactive_r18__numOfCarriersIntraBandContiguous_r18 { + PosSRS_BWA_RRC_Inactive_r18__numOfCarriersIntraBandContiguous_r18_two = 0, + PosSRS_BWA_RRC_Inactive_r18__numOfCarriersIntraBandContiguous_r18_three = 1, + PosSRS_BWA_RRC_Inactive_r18__numOfCarriersIntraBandContiguous_r18_twoandthree = 2 +} e_PosSRS_BWA_RRC_Inactive_r18__numOfCarriersIntraBandContiguous_r18; +typedef enum PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_TwoCarriersFR1_r18 { + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_TwoCarriersFR1_r18_mhz80 = 0, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_TwoCarriersFR1_r18_mhz100 = 1, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_TwoCarriersFR1_r18_mhz160 = 2, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_TwoCarriersFR1_r18_mhz200 = 3 +} e_PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_TwoCarriersFR1_r18; +typedef enum PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_TwoCarriersFR2_r18 { + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_TwoCarriersFR2_r18_mhz50 = 0, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_TwoCarriersFR2_r18_mhz100 = 1, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_TwoCarriersFR2_r18_mhz200 = 2, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_TwoCarriersFR2_r18_mhz400 = 3, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_TwoCarriersFR2_r18_mhz600 = 4, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_TwoCarriersFR2_r18_mhz800 = 5 +} e_PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_TwoCarriersFR2_r18; +typedef enum PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_ThreeCarriersFR1_r18 { + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_ThreeCarriersFR1_r18_mhz80 = 0, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_ThreeCarriersFR1_r18_mhz100 = 1, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_ThreeCarriersFR1_r18_mhz160 = 2, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_ThreeCarriersFR1_r18_mhz200 = 3, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_ThreeCarriersFR1_r18_mhz300 = 4 +} e_PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_ThreeCarriersFR1_r18; +typedef enum PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_ThreeCarriersFR2_r18 { + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz50 = 0, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz100 = 1, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz200 = 2, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz400 = 3, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz600 = 4, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz800 = 5, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz1000 = 6, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_ThreeCarriersFR2_r18_mhz1200 = 7 +} e_PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedBW_ThreeCarriersFR2_r18; +typedef enum PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSet_r18 { + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSet_r18_n1 = 0, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSet_r18_n2 = 1, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSet_r18_n4 = 2, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSet_r18_n8 = 3, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSet_r18_n12 = 4, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSet_r18_n16 = 5 +} e_PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSet_r18; +typedef enum PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodic_r18 { + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodic_r18_n1 = 0, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodic_r18_n2 = 1, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodic_r18_n4 = 2, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodic_r18_n8 = 3, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodic_r18_n16 = 4, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodic_r18_n32 = 5, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodic_r18_n64 = 6 +} e_PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodic_r18; +typedef enum PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemi_r18 { + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemi_r18_n0 = 0, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemi_r18_n1 = 1, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemi_r18_n2 = 2, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemi_r18_n4 = 3, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemi_r18_n8 = 4, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemi_r18_n16 = 5, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemi_r18_n32 = 6, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemi_r18_n64 = 7 +} e_PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemi_r18; +typedef enum PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodicPerSlot_r18 { + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n1 = 0, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n2 = 1, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n3 = 2, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n4 = 3, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n5 = 4, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n6 = 5, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n8 = 6, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n10 = 7, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n12 = 8, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodicPerSlot_r18_n14 = 9 +} e_PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourcePeriodicPerSlot_r18; +typedef enum PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemiPerSlot_r18 { + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemiPerSlot_r18_n0 = 0, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemiPerSlot_r18_n1 = 1, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemiPerSlot_r18_n2 = 2, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemiPerSlot_r18_n3 = 3, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemiPerSlot_r18_n4 = 4, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemiPerSlot_r18_n5 = 5, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemiPerSlot_r18_n6 = 6, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemiPerSlot_r18_n8 = 7, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemiPerSlot_r18_n10 = 8, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemiPerSlot_r18_n12 = 9, + PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemiPerSlot_r18_n14 = 10 +} e_PosSRS_BWA_RRC_Inactive_r18__maximumAggregatedResourceSemiPerSlot_r18; +typedef enum PosSRS_BWA_RRC_Inactive_r18__supportOfSameSRS_PowerReduction_r18 { + PosSRS_BWA_RRC_Inactive_r18__supportOfSameSRS_PowerReduction_r18_supported = 0 +} e_PosSRS_BWA_RRC_Inactive_r18__supportOfSameSRS_PowerReduction_r18; +typedef enum PosSRS_BWA_RRC_Inactive_r18__guardPerid_r18 { + PosSRS_BWA_RRC_Inactive_r18__guardPerid_r18_ms0 = 0, + PosSRS_BWA_RRC_Inactive_r18__guardPerid_r18_ms30 = 1, + PosSRS_BWA_RRC_Inactive_r18__guardPerid_r18_ms100 = 2, + PosSRS_BWA_RRC_Inactive_r18__guardPerid_r18_ms140 = 3, + PosSRS_BWA_RRC_Inactive_r18__guardPerid_r18_ms200 = 4 +} e_PosSRS_BWA_RRC_Inactive_r18__guardPerid_r18; + +/* PosSRS-BWA-RRC-Inactive-r18 */ +typedef struct PosSRS_BWA_RRC_Inactive_r18 { + long *numOfCarriersIntraBandContiguous_r18; /* OPTIONAL */ + long *maximumAggregatedBW_TwoCarriersFR1_r18; /* OPTIONAL */ + long *maximumAggregatedBW_TwoCarriersFR2_r18; /* OPTIONAL */ + long *maximumAggregatedBW_ThreeCarriersFR1_r18; /* OPTIONAL */ + long *maximumAggregatedBW_ThreeCarriersFR2_r18; /* OPTIONAL */ + long *maximumAggregatedResourceSet_r18; /* OPTIONAL */ + long *maximumAggregatedResourcePeriodic_r18; /* OPTIONAL */ + long *maximumAggregatedResourceSemi_r18; /* OPTIONAL */ + long *maximumAggregatedResourcePeriodicPerSlot_r18; /* OPTIONAL */ + long *maximumAggregatedResourceSemiPerSlot_r18; /* OPTIONAL */ + long *supportOfSameSRS_PowerReduction_r18; /* OPTIONAL */ + long *guardPerid_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PosSRS_BWA_RRC_Inactive_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_numOfCarriersIntraBandContiguous_r18_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_TwoCarriersFR1_r18_6; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_TwoCarriersFR2_r18_11; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_ThreeCarriersFR1_r18_18; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedBW_ThreeCarriersFR2_r18_24; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceSet_r18_33; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourcePeriodic_r18_40; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceSemi_r18_48; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourcePeriodicPerSlot_r18_57; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumAggregatedResourceSemiPerSlot_r18_68; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_supportOfSameSRS_PowerReduction_r18_80; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_guardPerid_r18_82; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_PosSRS_BWA_RRC_Inactive_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_PosSRS_BWA_RRC_Inactive_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_PosSRS_BWA_RRC_Inactive_r18_1[12]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PosSRS_BWA_RRC_Inactive_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/PosSRS-RRC-Inactive-InInitialUL-BWP-r17.c b/asn.1/lpp_generated/PosSRS-RRC-Inactive-InInitialUL-BWP-r17.c new file mode 100644 index 00000000..d4be2e85 --- /dev/null +++ b/asn.1/lpp_generated/PosSRS-RRC-Inactive-InInitialUL-BWP-r17.c @@ -0,0 +1,654 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PosSRS-RRC-Inactive-InInitialUL-BWP-r17.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumOfSRSposResourceSets_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumOfPeriodicSRSposResources_r17_constr_28 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumOfPeriodicSRSposResourcesPerSlot_r17_constr_36 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dummy1_constr_47 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_dummy2_constr_55 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_maxNumOfSRSposResourceSets_r17_value2enum_2[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n12" }, + { 5, 3, "n16" } +}; +static const unsigned int asn_MAP_maxNumOfSRSposResourceSets_r17_enum2value_2[] = { + 0, /* n1(0) */ + 4, /* n12(4) */ + 5, /* n16(5) */ + 1, /* n2(1) */ + 2, /* n4(2) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumOfSRSposResourceSets_r17_specs_2 = { + asn_MAP_maxNumOfSRSposResourceSets_r17_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumOfSRSposResourceSets_r17_enum2value_2, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumOfSRSposResourceSets_r17_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfSRSposResourceSets_r17_2 = { + "maxNumOfSRSposResourceSets-r17", + "maxNumOfSRSposResourceSets-r17", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumOfSRSposResourceSets_r17_tags_2, + sizeof(asn_DEF_maxNumOfSRSposResourceSets_r17_tags_2) + /sizeof(asn_DEF_maxNumOfSRSposResourceSets_r17_tags_2[0]) - 1, /* 1 */ + asn_DEF_maxNumOfSRSposResourceSets_r17_tags_2, /* Same as above */ + sizeof(asn_DEF_maxNumOfSRSposResourceSets_r17_tags_2) + /sizeof(asn_DEF_maxNumOfSRSposResourceSets_r17_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumOfSRSposResourceSets_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumOfSRSposResourceSets_r17_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_value2enum_9[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n32" }, + { 6, 3, "n64" } +}; +static const unsigned int asn_MAP_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_enum2value_9[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n32(5) */ + 2, /* n4(2) */ + 6, /* n64(6) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_specs_9 = { + asn_MAP_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_value2enum_9, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_enum2value_9, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_9 = { + "maxNumOfPeriodicAndSemiPersistentSRSposResources-r17", + "maxNumOfPeriodicAndSemiPersistentSRSposResources-r17", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_tags_9, + sizeof(asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_tags_9) + /sizeof(asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_tags_9[0]) - 1, /* 1 */ + asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_tags_9, /* Same as above */ + sizeof(asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_tags_9) + /sizeof(asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_specs_9 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_value2enum_17[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n3" }, + { 3, 2, "n4" }, + { 4, 2, "n5" }, + { 5, 2, "n6" }, + { 6, 2, "n8" }, + { 7, 3, "n10" }, + { 8, 3, "n12" }, + { 9, 3, "n14" } +}; +static const unsigned int asn_MAP_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_enum2value_17[] = { + 0, /* n1(0) */ + 7, /* n10(7) */ + 8, /* n12(8) */ + 9, /* n14(9) */ + 1, /* n2(1) */ + 2, /* n3(2) */ + 3, /* n4(3) */ + 4, /* n5(4) */ + 5, /* n6(5) */ + 6 /* n8(6) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_specs_17 = { + asn_MAP_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_value2enum_17, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_enum2value_17, /* N => "tag"; sorted by N */ + 10, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_17 = { + "maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot-r17", + "maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot-r17", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_tags_17, + sizeof(asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_tags_17) + /sizeof(asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_tags_17[0]) - 1, /* 1 */ + asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_tags_17, /* Same as above */ + sizeof(asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_tags_17) + /sizeof(asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_specs_17 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNumOfPeriodicSRSposResources_r17_value2enum_28[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n32" }, + { 6, 3, "n64" } +}; +static const unsigned int asn_MAP_maxNumOfPeriodicSRSposResources_r17_enum2value_28[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n32(5) */ + 2, /* n4(2) */ + 6, /* n64(6) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumOfPeriodicSRSposResources_r17_specs_28 = { + asn_MAP_maxNumOfPeriodicSRSposResources_r17_value2enum_28, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumOfPeriodicSRSposResources_r17_enum2value_28, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumOfPeriodicSRSposResources_r17_tags_28[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfPeriodicSRSposResources_r17_28 = { + "maxNumOfPeriodicSRSposResources-r17", + "maxNumOfPeriodicSRSposResources-r17", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumOfPeriodicSRSposResources_r17_tags_28, + sizeof(asn_DEF_maxNumOfPeriodicSRSposResources_r17_tags_28) + /sizeof(asn_DEF_maxNumOfPeriodicSRSposResources_r17_tags_28[0]) - 1, /* 1 */ + asn_DEF_maxNumOfPeriodicSRSposResources_r17_tags_28, /* Same as above */ + sizeof(asn_DEF_maxNumOfPeriodicSRSposResources_r17_tags_28) + /sizeof(asn_DEF_maxNumOfPeriodicSRSposResources_r17_tags_28[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumOfPeriodicSRSposResources_r17_constr_28, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumOfPeriodicSRSposResources_r17_specs_28 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNumOfPeriodicSRSposResourcesPerSlot_r17_value2enum_36[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n3" }, + { 3, 2, "n4" }, + { 4, 2, "n5" }, + { 5, 2, "n6" }, + { 6, 2, "n8" }, + { 7, 3, "n10" }, + { 8, 3, "n12" }, + { 9, 3, "n14" } +}; +static const unsigned int asn_MAP_maxNumOfPeriodicSRSposResourcesPerSlot_r17_enum2value_36[] = { + 0, /* n1(0) */ + 7, /* n10(7) */ + 8, /* n12(8) */ + 9, /* n14(9) */ + 1, /* n2(1) */ + 2, /* n3(2) */ + 3, /* n4(3) */ + 4, /* n5(4) */ + 5, /* n6(5) */ + 6 /* n8(6) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumOfPeriodicSRSposResourcesPerSlot_r17_specs_36 = { + asn_MAP_maxNumOfPeriodicSRSposResourcesPerSlot_r17_value2enum_36, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumOfPeriodicSRSposResourcesPerSlot_r17_enum2value_36, /* N => "tag"; sorted by N */ + 10, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_tags_36[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_36 = { + "maxNumOfPeriodicSRSposResourcesPerSlot-r17", + "maxNumOfPeriodicSRSposResourcesPerSlot-r17", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_tags_36, + sizeof(asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_tags_36) + /sizeof(asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_tags_36[0]) - 1, /* 1 */ + asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_tags_36, /* Same as above */ + sizeof(asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_tags_36) + /sizeof(asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_tags_36[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumOfPeriodicSRSposResourcesPerSlot_r17_constr_36, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumOfPeriodicSRSposResourcesPerSlot_r17_specs_36 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dummy1_value2enum_47[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n32" }, + { 6, 3, "n64" } +}; +static const unsigned int asn_MAP_dummy1_enum2value_47[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n32(5) */ + 2, /* n4(2) */ + 6, /* n64(6) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dummy1_specs_47 = { + asn_MAP_dummy1_value2enum_47, /* "tag" => N; sorted by tag */ + asn_MAP_dummy1_enum2value_47, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dummy1_tags_47[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dummy1_47 = { + "dummy1", + "dummy1", + &asn_OP_NativeEnumerated, + asn_DEF_dummy1_tags_47, + sizeof(asn_DEF_dummy1_tags_47) + /sizeof(asn_DEF_dummy1_tags_47[0]) - 1, /* 1 */ + asn_DEF_dummy1_tags_47, /* Same as above */ + sizeof(asn_DEF_dummy1_tags_47) + /sizeof(asn_DEF_dummy1_tags_47[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dummy1_constr_47, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dummy1_specs_47 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_dummy2_value2enum_55[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n3" }, + { 3, 2, "n4" }, + { 4, 2, "n5" }, + { 5, 2, "n6" }, + { 6, 2, "n8" }, + { 7, 3, "n10" }, + { 8, 3, "n12" }, + { 9, 3, "n14" } +}; +static const unsigned int asn_MAP_dummy2_enum2value_55[] = { + 0, /* n1(0) */ + 7, /* n10(7) */ + 8, /* n12(8) */ + 9, /* n14(9) */ + 1, /* n2(1) */ + 2, /* n3(2) */ + 3, /* n4(3) */ + 4, /* n5(4) */ + 5, /* n6(5) */ + 6 /* n8(6) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_dummy2_specs_55 = { + asn_MAP_dummy2_value2enum_55, /* "tag" => N; sorted by tag */ + asn_MAP_dummy2_enum2value_55, /* N => "tag"; sorted by N */ + 10, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_dummy2_tags_55[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_dummy2_55 = { + "dummy2", + "dummy2", + &asn_OP_NativeEnumerated, + asn_DEF_dummy2_tags_55, + sizeof(asn_DEF_dummy2_tags_55) + /sizeof(asn_DEF_dummy2_tags_55[0]) - 1, /* 1 */ + asn_DEF_dummy2_tags_55, /* Same as above */ + sizeof(asn_DEF_dummy2_tags_55) + /sizeof(asn_DEF_dummy2_tags_55[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_dummy2_constr_55, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_dummy2_specs_55 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_PosSRS_RRC_Inactive_InInitialUL_BWP_r17_1[] = { + { ATF_POINTER, 7, offsetof(struct PosSRS_RRC_Inactive_InInitialUL_BWP_r17, maxNumOfSRSposResourceSets_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumOfSRSposResourceSets_r17_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfSRSposResourceSets-r17" + }, + { ATF_POINTER, 6, offsetof(struct PosSRS_RRC_Inactive_InInitialUL_BWP_r17, maxNumOfPeriodicAndSemiPersistentSRSposResources_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfPeriodicAndSemiPersistentSRSposResources-r17" + }, + { ATF_POINTER, 5, offsetof(struct PosSRS_RRC_Inactive_InInitialUL_BWP_r17, maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot-r17" + }, + { ATF_POINTER, 4, offsetof(struct PosSRS_RRC_Inactive_InInitialUL_BWP_r17, maxNumOfPeriodicSRSposResources_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumOfPeriodicSRSposResources_r17_28, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfPeriodicSRSposResources-r17" + }, + { ATF_POINTER, 3, offsetof(struct PosSRS_RRC_Inactive_InInitialUL_BWP_r17, maxNumOfPeriodicSRSposResourcesPerSlot_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_36, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfPeriodicSRSposResourcesPerSlot-r17" + }, + { ATF_POINTER, 2, offsetof(struct PosSRS_RRC_Inactive_InInitialUL_BWP_r17, dummy1), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dummy1_47, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dummy1" + }, + { ATF_POINTER, 1, offsetof(struct PosSRS_RRC_Inactive_InInitialUL_BWP_r17, dummy2), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_dummy2_55, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dummy2" + }, +}; +static const int asn_MAP_PosSRS_RRC_Inactive_InInitialUL_BWP_r17_oms_1[] = { 0, 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_PosSRS_RRC_Inactive_InInitialUL_BWP_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PosSRS_RRC_Inactive_InInitialUL_BWP_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxNumOfSRSposResourceSets-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxNumOfPeriodicAndSemiPersistentSRSposResources-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* maxNumOfPeriodicSRSposResources-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* maxNumOfPeriodicSRSposResourcesPerSlot-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* dummy1 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* dummy2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PosSRS_RRC_Inactive_InInitialUL_BWP_r17_specs_1 = { + sizeof(struct PosSRS_RRC_Inactive_InInitialUL_BWP_r17), + offsetof(struct PosSRS_RRC_Inactive_InInitialUL_BWP_r17, _asn_ctx), + asn_MAP_PosSRS_RRC_Inactive_InInitialUL_BWP_r17_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_PosSRS_RRC_Inactive_InInitialUL_BWP_r17_oms_1, /* Optional members */ + 7, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PosSRS_RRC_Inactive_InInitialUL_BWP_r17 = { + "PosSRS-RRC-Inactive-InInitialUL-BWP-r17", + "PosSRS-RRC-Inactive-InInitialUL-BWP-r17", + &asn_OP_SEQUENCE, + asn_DEF_PosSRS_RRC_Inactive_InInitialUL_BWP_r17_tags_1, + sizeof(asn_DEF_PosSRS_RRC_Inactive_InInitialUL_BWP_r17_tags_1) + /sizeof(asn_DEF_PosSRS_RRC_Inactive_InInitialUL_BWP_r17_tags_1[0]), /* 1 */ + asn_DEF_PosSRS_RRC_Inactive_InInitialUL_BWP_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_PosSRS_RRC_Inactive_InInitialUL_BWP_r17_tags_1) + /sizeof(asn_DEF_PosSRS_RRC_Inactive_InInitialUL_BWP_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PosSRS_RRC_Inactive_InInitialUL_BWP_r17_1, + 7, /* Elements count */ + &asn_SPC_PosSRS_RRC_Inactive_InInitialUL_BWP_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/PosSRS-RRC-Inactive-InInitialUL-BWP-r17.h b/asn.1/lpp_generated/PosSRS-RRC-Inactive-InInitialUL-BWP-r17.h new file mode 100644 index 00000000..cf6d43fb --- /dev/null +++ b/asn.1/lpp_generated/PosSRS-RRC-Inactive-InInitialUL-BWP-r17.h @@ -0,0 +1,130 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _PosSRS_RRC_Inactive_InInitialUL_BWP_r17_H_ +#define _PosSRS_RRC_Inactive_InInitialUL_BWP_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSRSposResourceSets_r17 { + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSRSposResourceSets_r17_n1 = 0, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSRSposResourceSets_r17_n2 = 1, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSRSposResourceSets_r17_n4 = 2, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSRSposResourceSets_r17_n8 = 3, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSRSposResourceSets_r17_n12 = 4, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSRSposResourceSets_r17_n16 = 5 +} e_PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSRSposResourceSets_r17; +typedef enum PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResources_r17 { + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_n1 = 0, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_n2 = 1, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_n4 = 2, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_n8 = 3, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_n16 = 4, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_n32 = 5, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_n64 = 6 +} e_PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResources_r17; +typedef enum PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17 { + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n1 = 0, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n2 = 1, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n3 = 2, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n4 = 3, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n5 = 4, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n6 = 5, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n8 = 6, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n10 = 7, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n12 = 8, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n14 = 9 +} e_PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17; +typedef enum PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResources_r17 { + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResources_r17_n1 = 0, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResources_r17_n2 = 1, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResources_r17_n4 = 2, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResources_r17_n8 = 3, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResources_r17_n16 = 4, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResources_r17_n32 = 5, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResources_r17_n64 = 6 +} e_PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResources_r17; +typedef enum PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17 { + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n1 = 0, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n2 = 1, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n3 = 2, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n4 = 3, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n5 = 4, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n6 = 5, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n8 = 6, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n10 = 7, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n12 = 8, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n14 = 9 +} e_PosSRS_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17; +typedef enum PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy1 { + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy1_n1 = 0, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy1_n2 = 1, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy1_n4 = 2, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy1_n8 = 3, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy1_n16 = 4, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy1_n32 = 5, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy1_n64 = 6 +} e_PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy1; +typedef enum PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy2 { + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy2_n1 = 0, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy2_n2 = 1, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy2_n3 = 2, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy2_n4 = 3, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy2_n5 = 4, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy2_n6 = 5, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy2_n8 = 6, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy2_n10 = 7, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy2_n12 = 8, + PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy2_n14 = 9 +} e_PosSRS_RRC_Inactive_InInitialUL_BWP_r17__dummy2; + +/* PosSRS-RRC-Inactive-InInitialUL-BWP-r17 */ +typedef struct PosSRS_RRC_Inactive_InInitialUL_BWP_r17 { + long *maxNumOfSRSposResourceSets_r17; /* OPTIONAL */ + long *maxNumOfPeriodicAndSemiPersistentSRSposResources_r17; /* OPTIONAL */ + long *maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17; /* OPTIONAL */ + long *maxNumOfPeriodicSRSposResources_r17; /* OPTIONAL */ + long *maxNumOfPeriodicSRSposResourcesPerSlot_r17; /* OPTIONAL */ + long *dummy1; /* OPTIONAL */ + long *dummy2; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PosSRS_RRC_Inactive_InInitialUL_BWP_r17_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumOfSRSposResourceSets_r17_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_9; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_17; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumOfPeriodicSRSposResources_r17_28; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_36; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_dummy1_47; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_dummy2_55; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_PosSRS_RRC_Inactive_InInitialUL_BWP_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_PosSRS_RRC_Inactive_InInitialUL_BWP_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_PosSRS_RRC_Inactive_InInitialUL_BWP_r17_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PosSRS_RRC_Inactive_InInitialUL_BWP_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/PosSRS-RRC-Inactive-OutsideInitialUL-BWP-r17.c b/asn.1/lpp_generated/PosSRS-RRC-Inactive-OutsideInitialUL-BWP-r17.c new file mode 100644 index 00000000..694856fe --- /dev/null +++ b/asn.1/lpp_generated/PosSRS-RRC-Inactive-OutsideInitialUL-BWP-r17.c @@ -0,0 +1,1128 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PosSRS-RRC-Inactive-OutsideInitialUL-BWP-r17.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 14 } /* (0..14) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumOfSRSposResourceSets_r17_constr_23 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumOfPeriodicSRSposResources_r17_constr_30 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumOfPeriodicSRSposResourcesPerSlot_r17_constr_38 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_differentNumerologyBetweenSRSposAndInitialBWP_r17_constr_49 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_srsPosWithoutRestrictionOnBWP_r17_constr_51 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_constr_53 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_constr_61 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_differentCenterFreqBetweenSRSposAndInitialBWP_r17_constr_72 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumOfSemiPersistentSRSposResources_r17_constr_74 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_constr_82 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_switchingTimeSRS_TX_OtherTX_r17_constr_93 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_value2enum_2[] = { + { 0, 4, "mhz5" }, + { 1, 5, "mhz10" }, + { 2, 5, "mhz15" }, + { 3, 5, "mhz20" }, + { 4, 5, "mhz25" }, + { 5, 5, "mhz30" }, + { 6, 5, "mhz35" }, + { 7, 5, "mhz40" }, + { 8, 5, "mhz45" }, + { 9, 5, "mhz50" }, + { 10, 5, "mhz60" }, + { 11, 5, "mhz70" }, + { 12, 5, "mhz80" }, + { 13, 5, "mhz90" }, + { 14, 6, "mhz100" } +}; +static const unsigned int asn_MAP_maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_enum2value_2[] = { + 1, /* mhz10(1) */ + 14, /* mhz100(14) */ + 2, /* mhz15(2) */ + 3, /* mhz20(3) */ + 4, /* mhz25(4) */ + 5, /* mhz30(5) */ + 6, /* mhz35(6) */ + 7, /* mhz40(7) */ + 8, /* mhz45(8) */ + 0, /* mhz5(0) */ + 9, /* mhz50(9) */ + 10, /* mhz60(10) */ + 11, /* mhz70(11) */ + 12, /* mhz80(12) */ + 13 /* mhz90(13) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_specs_2 = { + asn_MAP_maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_enum2value_2, /* N => "tag"; sorted by N */ + 15, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_2 = { + "maxSRSposBandwidthForEachSCS-withinCC-FR1-r17", + "maxSRSposBandwidthForEachSCS-withinCC-FR1-r17", + &asn_OP_NativeEnumerated, + asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_tags_2, + sizeof(asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_tags_2) + /sizeof(asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_tags_2[0]) - 1, /* 1 */ + asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_tags_2, /* Same as above */ + sizeof(asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_tags_2) + /sizeof(asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_value2enum_18[] = { + { 0, 5, "mhz50" }, + { 1, 6, "mhz100" }, + { 2, 6, "mhz200" }, + { 3, 6, "mhz400" } +}; +static const unsigned int asn_MAP_maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_enum2value_18[] = { + 1, /* mhz100(1) */ + 2, /* mhz200(2) */ + 3, /* mhz400(3) */ + 0 /* mhz50(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_specs_18 = { + asn_MAP_maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_value2enum_18, /* "tag" => N; sorted by tag */ + asn_MAP_maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_enum2value_18, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_18 = { + "maxSRSposBandwidthForEachSCS-withinCC-FR2-r17", + "maxSRSposBandwidthForEachSCS-withinCC-FR2-r17", + &asn_OP_NativeEnumerated, + asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_tags_18, + sizeof(asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_tags_18) + /sizeof(asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_tags_18[0]) - 1, /* 1 */ + asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_tags_18, /* Same as above */ + sizeof(asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_tags_18) + /sizeof(asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_specs_18 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNumOfSRSposResourceSets_r17_value2enum_23[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n12" }, + { 5, 3, "n16" } +}; +static const unsigned int asn_MAP_maxNumOfSRSposResourceSets_r17_enum2value_23[] = { + 0, /* n1(0) */ + 4, /* n12(4) */ + 5, /* n16(5) */ + 1, /* n2(1) */ + 2, /* n4(2) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumOfSRSposResourceSets_r17_specs_23 = { + asn_MAP_maxNumOfSRSposResourceSets_r17_value2enum_23, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumOfSRSposResourceSets_r17_enum2value_23, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumOfSRSposResourceSets_r17_tags_23[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfSRSposResourceSets_r17_23 = { + "maxNumOfSRSposResourceSets-r17", + "maxNumOfSRSposResourceSets-r17", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumOfSRSposResourceSets_r17_tags_23, + sizeof(asn_DEF_maxNumOfSRSposResourceSets_r17_tags_23) + /sizeof(asn_DEF_maxNumOfSRSposResourceSets_r17_tags_23[0]) - 1, /* 1 */ + asn_DEF_maxNumOfSRSposResourceSets_r17_tags_23, /* Same as above */ + sizeof(asn_DEF_maxNumOfSRSposResourceSets_r17_tags_23) + /sizeof(asn_DEF_maxNumOfSRSposResourceSets_r17_tags_23[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumOfSRSposResourceSets_r17_constr_23, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumOfSRSposResourceSets_r17_specs_23 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNumOfPeriodicSRSposResources_r17_value2enum_30[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n32" }, + { 6, 3, "n64" } +}; +static const unsigned int asn_MAP_maxNumOfPeriodicSRSposResources_r17_enum2value_30[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n32(5) */ + 2, /* n4(2) */ + 6, /* n64(6) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumOfPeriodicSRSposResources_r17_specs_30 = { + asn_MAP_maxNumOfPeriodicSRSposResources_r17_value2enum_30, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumOfPeriodicSRSposResources_r17_enum2value_30, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumOfPeriodicSRSposResources_r17_tags_30[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfPeriodicSRSposResources_r17_30 = { + "maxNumOfPeriodicSRSposResources-r17", + "maxNumOfPeriodicSRSposResources-r17", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumOfPeriodicSRSposResources_r17_tags_30, + sizeof(asn_DEF_maxNumOfPeriodicSRSposResources_r17_tags_30) + /sizeof(asn_DEF_maxNumOfPeriodicSRSposResources_r17_tags_30[0]) - 1, /* 1 */ + asn_DEF_maxNumOfPeriodicSRSposResources_r17_tags_30, /* Same as above */ + sizeof(asn_DEF_maxNumOfPeriodicSRSposResources_r17_tags_30) + /sizeof(asn_DEF_maxNumOfPeriodicSRSposResources_r17_tags_30[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumOfPeriodicSRSposResources_r17_constr_30, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumOfPeriodicSRSposResources_r17_specs_30 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNumOfPeriodicSRSposResourcesPerSlot_r17_value2enum_38[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n3" }, + { 3, 2, "n4" }, + { 4, 2, "n5" }, + { 5, 2, "n6" }, + { 6, 2, "n8" }, + { 7, 3, "n10" }, + { 8, 3, "n12" }, + { 9, 3, "n14" } +}; +static const unsigned int asn_MAP_maxNumOfPeriodicSRSposResourcesPerSlot_r17_enum2value_38[] = { + 0, /* n1(0) */ + 7, /* n10(7) */ + 8, /* n12(8) */ + 9, /* n14(9) */ + 1, /* n2(1) */ + 2, /* n3(2) */ + 3, /* n4(3) */ + 4, /* n5(4) */ + 5, /* n6(5) */ + 6 /* n8(6) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumOfPeriodicSRSposResourcesPerSlot_r17_specs_38 = { + asn_MAP_maxNumOfPeriodicSRSposResourcesPerSlot_r17_value2enum_38, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumOfPeriodicSRSposResourcesPerSlot_r17_enum2value_38, /* N => "tag"; sorted by N */ + 10, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_tags_38[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_38 = { + "maxNumOfPeriodicSRSposResourcesPerSlot-r17", + "maxNumOfPeriodicSRSposResourcesPerSlot-r17", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_tags_38, + sizeof(asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_tags_38) + /sizeof(asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_tags_38[0]) - 1, /* 1 */ + asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_tags_38, /* Same as above */ + sizeof(asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_tags_38) + /sizeof(asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_tags_38[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumOfPeriodicSRSposResourcesPerSlot_r17_constr_38, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumOfPeriodicSRSposResourcesPerSlot_r17_specs_38 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_differentNumerologyBetweenSRSposAndInitialBWP_r17_value2enum_49[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_differentNumerologyBetweenSRSposAndInitialBWP_r17_enum2value_49[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_differentNumerologyBetweenSRSposAndInitialBWP_r17_specs_49 = { + asn_MAP_differentNumerologyBetweenSRSposAndInitialBWP_r17_value2enum_49, /* "tag" => N; sorted by tag */ + asn_MAP_differentNumerologyBetweenSRSposAndInitialBWP_r17_enum2value_49, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_differentNumerologyBetweenSRSposAndInitialBWP_r17_tags_49[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_differentNumerologyBetweenSRSposAndInitialBWP_r17_49 = { + "differentNumerologyBetweenSRSposAndInitialBWP-r17", + "differentNumerologyBetweenSRSposAndInitialBWP-r17", + &asn_OP_NativeEnumerated, + asn_DEF_differentNumerologyBetweenSRSposAndInitialBWP_r17_tags_49, + sizeof(asn_DEF_differentNumerologyBetweenSRSposAndInitialBWP_r17_tags_49) + /sizeof(asn_DEF_differentNumerologyBetweenSRSposAndInitialBWP_r17_tags_49[0]) - 1, /* 1 */ + asn_DEF_differentNumerologyBetweenSRSposAndInitialBWP_r17_tags_49, /* Same as above */ + sizeof(asn_DEF_differentNumerologyBetweenSRSposAndInitialBWP_r17_tags_49) + /sizeof(asn_DEF_differentNumerologyBetweenSRSposAndInitialBWP_r17_tags_49[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_differentNumerologyBetweenSRSposAndInitialBWP_r17_constr_49, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_differentNumerologyBetweenSRSposAndInitialBWP_r17_specs_49 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_srsPosWithoutRestrictionOnBWP_r17_value2enum_51[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_srsPosWithoutRestrictionOnBWP_r17_enum2value_51[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_srsPosWithoutRestrictionOnBWP_r17_specs_51 = { + asn_MAP_srsPosWithoutRestrictionOnBWP_r17_value2enum_51, /* "tag" => N; sorted by tag */ + asn_MAP_srsPosWithoutRestrictionOnBWP_r17_enum2value_51, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_srsPosWithoutRestrictionOnBWP_r17_tags_51[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_srsPosWithoutRestrictionOnBWP_r17_51 = { + "srsPosWithoutRestrictionOnBWP-r17", + "srsPosWithoutRestrictionOnBWP-r17", + &asn_OP_NativeEnumerated, + asn_DEF_srsPosWithoutRestrictionOnBWP_r17_tags_51, + sizeof(asn_DEF_srsPosWithoutRestrictionOnBWP_r17_tags_51) + /sizeof(asn_DEF_srsPosWithoutRestrictionOnBWP_r17_tags_51[0]) - 1, /* 1 */ + asn_DEF_srsPosWithoutRestrictionOnBWP_r17_tags_51, /* Same as above */ + sizeof(asn_DEF_srsPosWithoutRestrictionOnBWP_r17_tags_51) + /sizeof(asn_DEF_srsPosWithoutRestrictionOnBWP_r17_tags_51[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_srsPosWithoutRestrictionOnBWP_r17_constr_51, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_srsPosWithoutRestrictionOnBWP_r17_specs_51 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_value2enum_53[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n32" }, + { 6, 3, "n64" } +}; +static const unsigned int asn_MAP_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_enum2value_53[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n32(5) */ + 2, /* n4(2) */ + 6, /* n64(6) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_specs_53 = { + asn_MAP_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_value2enum_53, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_enum2value_53, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_tags_53[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_53 = { + "maxNumOfPeriodicAndSemiPersistentSRSposResources-r17", + "maxNumOfPeriodicAndSemiPersistentSRSposResources-r17", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_tags_53, + sizeof(asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_tags_53) + /sizeof(asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_tags_53[0]) - 1, /* 1 */ + asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_tags_53, /* Same as above */ + sizeof(asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_tags_53) + /sizeof(asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_tags_53[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_constr_53, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_specs_53 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_value2enum_61[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n3" }, + { 3, 2, "n4" }, + { 4, 2, "n5" }, + { 5, 2, "n6" }, + { 6, 2, "n8" }, + { 7, 3, "n10" }, + { 8, 3, "n12" }, + { 9, 3, "n14" } +}; +static const unsigned int asn_MAP_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_enum2value_61[] = { + 0, /* n1(0) */ + 7, /* n10(7) */ + 8, /* n12(8) */ + 9, /* n14(9) */ + 1, /* n2(1) */ + 2, /* n3(2) */ + 3, /* n4(3) */ + 4, /* n5(4) */ + 5, /* n6(5) */ + 6 /* n8(6) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_specs_61 = { + asn_MAP_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_value2enum_61, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_enum2value_61, /* N => "tag"; sorted by N */ + 10, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_tags_61[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_61 = { + "maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot-r17", + "maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot-r17", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_tags_61, + sizeof(asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_tags_61) + /sizeof(asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_tags_61[0]) - 1, /* 1 */ + asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_tags_61, /* Same as above */ + sizeof(asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_tags_61) + /sizeof(asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_tags_61[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_constr_61, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_specs_61 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_differentCenterFreqBetweenSRSposAndInitialBWP_r17_value2enum_72[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_differentCenterFreqBetweenSRSposAndInitialBWP_r17_enum2value_72[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_differentCenterFreqBetweenSRSposAndInitialBWP_r17_specs_72 = { + asn_MAP_differentCenterFreqBetweenSRSposAndInitialBWP_r17_value2enum_72, /* "tag" => N; sorted by tag */ + asn_MAP_differentCenterFreqBetweenSRSposAndInitialBWP_r17_enum2value_72, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_differentCenterFreqBetweenSRSposAndInitialBWP_r17_tags_72[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_differentCenterFreqBetweenSRSposAndInitialBWP_r17_72 = { + "differentCenterFreqBetweenSRSposAndInitialBWP-r17", + "differentCenterFreqBetweenSRSposAndInitialBWP-r17", + &asn_OP_NativeEnumerated, + asn_DEF_differentCenterFreqBetweenSRSposAndInitialBWP_r17_tags_72, + sizeof(asn_DEF_differentCenterFreqBetweenSRSposAndInitialBWP_r17_tags_72) + /sizeof(asn_DEF_differentCenterFreqBetweenSRSposAndInitialBWP_r17_tags_72[0]) - 1, /* 1 */ + asn_DEF_differentCenterFreqBetweenSRSposAndInitialBWP_r17_tags_72, /* Same as above */ + sizeof(asn_DEF_differentCenterFreqBetweenSRSposAndInitialBWP_r17_tags_72) + /sizeof(asn_DEF_differentCenterFreqBetweenSRSposAndInitialBWP_r17_tags_72[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_differentCenterFreqBetweenSRSposAndInitialBWP_r17_constr_72, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_differentCenterFreqBetweenSRSposAndInitialBWP_r17_specs_72 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNumOfSemiPersistentSRSposResources_r17_value2enum_74[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n32" }, + { 6, 3, "n64" } +}; +static const unsigned int asn_MAP_maxNumOfSemiPersistentSRSposResources_r17_enum2value_74[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n32(5) */ + 2, /* n4(2) */ + 6, /* n64(6) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumOfSemiPersistentSRSposResources_r17_specs_74 = { + asn_MAP_maxNumOfSemiPersistentSRSposResources_r17_value2enum_74, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumOfSemiPersistentSRSposResources_r17_enum2value_74, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_tags_74[] = { + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_74 = { + "maxNumOfSemiPersistentSRSposResources-r17", + "maxNumOfSemiPersistentSRSposResources-r17", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_tags_74, + sizeof(asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_tags_74) + /sizeof(asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_tags_74[0]) - 1, /* 1 */ + asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_tags_74, /* Same as above */ + sizeof(asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_tags_74) + /sizeof(asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_tags_74[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumOfSemiPersistentSRSposResources_r17_constr_74, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumOfSemiPersistentSRSposResources_r17_specs_74 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_value2enum_82[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n3" }, + { 3, 2, "n4" }, + { 4, 2, "n5" }, + { 5, 2, "n6" }, + { 6, 2, "n8" }, + { 7, 3, "n10" }, + { 8, 3, "n12" }, + { 9, 3, "n14" } +}; +static const unsigned int asn_MAP_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_enum2value_82[] = { + 0, /* n1(0) */ + 7, /* n10(7) */ + 8, /* n12(8) */ + 9, /* n14(9) */ + 1, /* n2(1) */ + 2, /* n3(2) */ + 3, /* n4(3) */ + 4, /* n5(4) */ + 5, /* n6(5) */ + 6 /* n8(6) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_specs_82 = { + asn_MAP_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_value2enum_82, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_enum2value_82, /* N => "tag"; sorted by N */ + 10, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_tags_82[] = { + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_82 = { + "maxNumOfSemiPersistentSRSposResourcesPerSlot-r17", + "maxNumOfSemiPersistentSRSposResourcesPerSlot-r17", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_tags_82, + sizeof(asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_tags_82) + /sizeof(asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_tags_82[0]) - 1, /* 1 */ + asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_tags_82, /* Same as above */ + sizeof(asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_tags_82) + /sizeof(asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_tags_82[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_constr_82, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_specs_82 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_switchingTimeSRS_TX_OtherTX_r17_value2enum_93[] = { + { 0, 5, "us100" }, + { 1, 5, "us140" }, + { 2, 5, "us200" }, + { 3, 5, "us300" }, + { 4, 5, "us500" } +}; +static const unsigned int asn_MAP_switchingTimeSRS_TX_OtherTX_r17_enum2value_93[] = { + 0, /* us100(0) */ + 1, /* us140(1) */ + 2, /* us200(2) */ + 3, /* us300(3) */ + 4 /* us500(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_switchingTimeSRS_TX_OtherTX_r17_specs_93 = { + asn_MAP_switchingTimeSRS_TX_OtherTX_r17_value2enum_93, /* "tag" => N; sorted by tag */ + asn_MAP_switchingTimeSRS_TX_OtherTX_r17_enum2value_93, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_switchingTimeSRS_TX_OtherTX_r17_tags_93[] = { + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_switchingTimeSRS_TX_OtherTX_r17_93 = { + "switchingTimeSRS-TX-OtherTX-r17", + "switchingTimeSRS-TX-OtherTX-r17", + &asn_OP_NativeEnumerated, + asn_DEF_switchingTimeSRS_TX_OtherTX_r17_tags_93, + sizeof(asn_DEF_switchingTimeSRS_TX_OtherTX_r17_tags_93) + /sizeof(asn_DEF_switchingTimeSRS_TX_OtherTX_r17_tags_93[0]) - 1, /* 1 */ + asn_DEF_switchingTimeSRS_TX_OtherTX_r17_tags_93, /* Same as above */ + sizeof(asn_DEF_switchingTimeSRS_TX_OtherTX_r17_tags_93) + /sizeof(asn_DEF_switchingTimeSRS_TX_OtherTX_r17_tags_93[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_switchingTimeSRS_TX_OtherTX_r17_constr_93, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_switchingTimeSRS_TX_OtherTX_r17_specs_93 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_1[] = { + { ATF_POINTER, 13, offsetof(struct PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17, maxSRSposBandwidthForEachSCS_withinCC_FR1_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxSRSposBandwidthForEachSCS-withinCC-FR1-r17" + }, + { ATF_POINTER, 12, offsetof(struct PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17, maxSRSposBandwidthForEachSCS_withinCC_FR2_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxSRSposBandwidthForEachSCS-withinCC-FR2-r17" + }, + { ATF_POINTER, 11, offsetof(struct PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17, maxNumOfSRSposResourceSets_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumOfSRSposResourceSets_r17_23, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfSRSposResourceSets-r17" + }, + { ATF_POINTER, 10, offsetof(struct PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17, maxNumOfPeriodicSRSposResources_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumOfPeriodicSRSposResources_r17_30, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfPeriodicSRSposResources-r17" + }, + { ATF_POINTER, 9, offsetof(struct PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17, maxNumOfPeriodicSRSposResourcesPerSlot_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_38, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfPeriodicSRSposResourcesPerSlot-r17" + }, + { ATF_POINTER, 8, offsetof(struct PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17, differentNumerologyBetweenSRSposAndInitialBWP_r17), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_differentNumerologyBetweenSRSposAndInitialBWP_r17_49, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "differentNumerologyBetweenSRSposAndInitialBWP-r17" + }, + { ATF_POINTER, 7, offsetof(struct PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17, srsPosWithoutRestrictionOnBWP_r17), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_srsPosWithoutRestrictionOnBWP_r17_51, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "srsPosWithoutRestrictionOnBWP-r17" + }, + { ATF_POINTER, 6, offsetof(struct PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17, maxNumOfPeriodicAndSemiPersistentSRSposResources_r17), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_53, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfPeriodicAndSemiPersistentSRSposResources-r17" + }, + { ATF_POINTER, 5, offsetof(struct PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17, maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_61, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot-r17" + }, + { ATF_POINTER, 4, offsetof(struct PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17, differentCenterFreqBetweenSRSposAndInitialBWP_r17), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_differentCenterFreqBetweenSRSposAndInitialBWP_r17_72, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "differentCenterFreqBetweenSRSposAndInitialBWP-r17" + }, + { ATF_POINTER, 3, offsetof(struct PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17, maxNumOfSemiPersistentSRSposResources_r17), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_74, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfSemiPersistentSRSposResources-r17" + }, + { ATF_POINTER, 2, offsetof(struct PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17, maxNumOfSemiPersistentSRSposResourcesPerSlot_r17), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_82, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfSemiPersistentSRSposResourcesPerSlot-r17" + }, + { ATF_POINTER, 1, offsetof(struct PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17, switchingTimeSRS_TX_OtherTX_r17), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_switchingTimeSRS_TX_OtherTX_r17_93, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "switchingTimeSRS-TX-OtherTX-r17" + }, +}; +static const int asn_MAP_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static const ber_tlv_tag_t asn_DEF_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxSRSposBandwidthForEachSCS-withinCC-FR1-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxSRSposBandwidthForEachSCS-withinCC-FR2-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* maxNumOfSRSposResourceSets-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* maxNumOfPeriodicSRSposResources-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* maxNumOfPeriodicSRSposResourcesPerSlot-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* differentNumerologyBetweenSRSposAndInitialBWP-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* srsPosWithoutRestrictionOnBWP-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* maxNumOfPeriodicAndSemiPersistentSRSposResources-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* differentCenterFreqBetweenSRSposAndInitialBWP-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* maxNumOfSemiPersistentSRSposResources-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* maxNumOfSemiPersistentSRSposResourcesPerSlot-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 } /* switchingTimeSRS-TX-OtherTX-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_specs_1 = { + sizeof(struct PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17), + offsetof(struct PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17, _asn_ctx), + asn_MAP_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_tag2el_1, + 13, /* Count of tags in the map */ + asn_MAP_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_oms_1, /* Optional members */ + 13, 0, /* Root/Additions */ + 13, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17 = { + "PosSRS-RRC-Inactive-OutsideInitialUL-BWP-r17", + "PosSRS-RRC-Inactive-OutsideInitialUL-BWP-r17", + &asn_OP_SEQUENCE, + asn_DEF_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_tags_1, + sizeof(asn_DEF_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_tags_1) + /sizeof(asn_DEF_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_tags_1[0]), /* 1 */ + asn_DEF_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_tags_1) + /sizeof(asn_DEF_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_1, + 13, /* Elements count */ + &asn_SPC_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/PosSRS-RRC-Inactive-OutsideInitialUL-BWP-r17.h b/asn.1/lpp_generated/PosSRS-RRC-Inactive-OutsideInitialUL-BWP-r17.h new file mode 100644 index 00000000..39c24fdb --- /dev/null +++ b/asn.1/lpp_generated/PosSRS-RRC-Inactive-OutsideInitialUL-BWP-r17.h @@ -0,0 +1,181 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_H_ +#define _PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR1_r17 { + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_mhz5 = 0, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_mhz10 = 1, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_mhz15 = 2, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_mhz20 = 3, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_mhz25 = 4, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_mhz30 = 5, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_mhz35 = 6, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_mhz40 = 7, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_mhz45 = 8, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_mhz50 = 9, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_mhz60 = 10, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_mhz70 = 11, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_mhz80 = 12, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_mhz90 = 13, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_mhz100 = 14 +} e_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR1_r17; +typedef enum PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR2_r17 { + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_mhz50 = 0, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_mhz100 = 1, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_mhz200 = 2, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_mhz400 = 3 +} e_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxSRSposBandwidthForEachSCS_withinCC_FR2_r17; +typedef enum PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSRSposResourceSets_r17 { + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSRSposResourceSets_r17_n1 = 0, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSRSposResourceSets_r17_n2 = 1, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSRSposResourceSets_r17_n4 = 2, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSRSposResourceSets_r17_n8 = 3, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSRSposResourceSets_r17_n12 = 4, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSRSposResourceSets_r17_n16 = 5 +} e_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSRSposResourceSets_r17; +typedef enum PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResources_r17 { + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResources_r17_n1 = 0, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResources_r17_n2 = 1, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResources_r17_n4 = 2, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResources_r17_n8 = 3, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResources_r17_n16 = 4, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResources_r17_n32 = 5, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResources_r17_n64 = 6 +} e_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResources_r17; +typedef enum PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17 { + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n1 = 0, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n2 = 1, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n3 = 2, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n4 = 3, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n5 = 4, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n6 = 5, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n8 = 6, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n10 = 7, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n12 = 8, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17_n14 = 9 +} e_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicSRSposResourcesPerSlot_r17; +typedef enum PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__differentNumerologyBetweenSRSposAndInitialBWP_r17 { + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__differentNumerologyBetweenSRSposAndInitialBWP_r17_supported = 0 +} e_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__differentNumerologyBetweenSRSposAndInitialBWP_r17; +typedef enum PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__srsPosWithoutRestrictionOnBWP_r17 { + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__srsPosWithoutRestrictionOnBWP_r17_supported = 0 +} e_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__srsPosWithoutRestrictionOnBWP_r17; +typedef enum PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResources_r17 { + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_n1 = 0, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_n2 = 1, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_n4 = 2, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_n8 = 3, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_n16 = 4, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_n32 = 5, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_n64 = 6 +} e_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResources_r17; +typedef enum PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17 { + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n1 = 0, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n2 = 1, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n3 = 2, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n4 = 3, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n5 = 4, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n6 = 5, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n8 = 6, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n10 = 7, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n12 = 8, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_n14 = 9 +} e_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17; +typedef enum PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__differentCenterFreqBetweenSRSposAndInitialBWP_r17 { + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__differentCenterFreqBetweenSRSposAndInitialBWP_r17_supported = 0 +} e_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__differentCenterFreqBetweenSRSposAndInitialBWP_r17; +typedef enum PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResources_r17 { + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResources_r17_n1 = 0, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResources_r17_n2 = 1, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResources_r17_n4 = 2, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResources_r17_n8 = 3, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResources_r17_n16 = 4, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResources_r17_n32 = 5, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResources_r17_n64 = 6 +} e_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResources_r17; +typedef enum PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17 { + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n1 = 0, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n2 = 1, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n3 = 2, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n4 = 3, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n5 = 4, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n6 = 5, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n8 = 6, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n10 = 7, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n12 = 8, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n14 = 9 +} e_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17; +typedef enum PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__switchingTimeSRS_TX_OtherTX_r17 { + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__switchingTimeSRS_TX_OtherTX_r17_us100 = 0, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__switchingTimeSRS_TX_OtherTX_r17_us140 = 1, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__switchingTimeSRS_TX_OtherTX_r17_us200 = 2, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__switchingTimeSRS_TX_OtherTX_r17_us300 = 3, + PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__switchingTimeSRS_TX_OtherTX_r17_us500 = 4 +} e_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17__switchingTimeSRS_TX_OtherTX_r17; + +/* PosSRS-RRC-Inactive-OutsideInitialUL-BWP-r17 */ +typedef struct PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17 { + long *maxSRSposBandwidthForEachSCS_withinCC_FR1_r17; /* OPTIONAL */ + long *maxSRSposBandwidthForEachSCS_withinCC_FR2_r17; /* OPTIONAL */ + long *maxNumOfSRSposResourceSets_r17; /* OPTIONAL */ + long *maxNumOfPeriodicSRSposResources_r17; /* OPTIONAL */ + long *maxNumOfPeriodicSRSposResourcesPerSlot_r17; /* OPTIONAL */ + long *differentNumerologyBetweenSRSposAndInitialBWP_r17; /* OPTIONAL */ + long *srsPosWithoutRestrictionOnBWP_r17; /* OPTIONAL */ + long *maxNumOfPeriodicAndSemiPersistentSRSposResources_r17; /* OPTIONAL */ + long *maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17; /* OPTIONAL */ + long *differentCenterFreqBetweenSRSposAndInitialBWP_r17; /* OPTIONAL */ + long *maxNumOfSemiPersistentSRSposResources_r17; /* OPTIONAL */ + long *maxNumOfSemiPersistentSRSposResourcesPerSlot_r17; /* OPTIONAL */ + long *switchingTimeSRS_TX_OtherTX_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR1_r17_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxSRSposBandwidthForEachSCS_withinCC_FR2_r17_18; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumOfSRSposResourceSets_r17_23; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumOfPeriodicSRSposResources_r17_30; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumOfPeriodicSRSposResourcesPerSlot_r17_38; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_differentNumerologyBetweenSRSposAndInitialBWP_r17_49; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_srsPosWithoutRestrictionOnBWP_r17_51; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResources_r17_53; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot_r17_61; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_differentCenterFreqBetweenSRSposAndInitialBWP_r17_72; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_74; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_82; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_switchingTimeSRS_TX_OtherTX_r17_93; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_1[13]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/PosSRS-SP-RRC-Inactive-InInitialUL-BWP-r17.c b/asn.1/lpp_generated/PosSRS-SP-RRC-Inactive-InInitialUL-BWP-r17.c new file mode 100644 index 00000000..9fc9de7a --- /dev/null +++ b/asn.1/lpp_generated/PosSRS-SP-RRC-Inactive-InInitialUL-BWP-r17.c @@ -0,0 +1,224 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PosSRS-SP-RRC-Inactive-InInitialUL-BWP-r17.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumOfSemiPersistentSRSposResources_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_maxNumOfSemiPersistentSRSposResources_r17_value2enum_2[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n32" }, + { 6, 3, "n64" } +}; +static const unsigned int asn_MAP_maxNumOfSemiPersistentSRSposResources_r17_enum2value_2[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n32(5) */ + 2, /* n4(2) */ + 6, /* n64(6) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumOfSemiPersistentSRSposResources_r17_specs_2 = { + asn_MAP_maxNumOfSemiPersistentSRSposResources_r17_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumOfSemiPersistentSRSposResources_r17_enum2value_2, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_2 = { + "maxNumOfSemiPersistentSRSposResources-r17", + "maxNumOfSemiPersistentSRSposResources-r17", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_tags_2, + sizeof(asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_tags_2) + /sizeof(asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_tags_2[0]) - 1, /* 1 */ + asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_tags_2, /* Same as above */ + sizeof(asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_tags_2) + /sizeof(asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumOfSemiPersistentSRSposResources_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumOfSemiPersistentSRSposResources_r17_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_value2enum_10[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n3" }, + { 3, 2, "n4" }, + { 4, 2, "n5" }, + { 5, 2, "n6" }, + { 6, 2, "n8" }, + { 7, 3, "n10" }, + { 8, 3, "n12" }, + { 9, 3, "n14" } +}; +static const unsigned int asn_MAP_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_enum2value_10[] = { + 0, /* n1(0) */ + 7, /* n10(7) */ + 8, /* n12(8) */ + 9, /* n14(9) */ + 1, /* n2(1) */ + 2, /* n3(2) */ + 3, /* n4(3) */ + 4, /* n5(4) */ + 5, /* n6(5) */ + 6 /* n8(6) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_specs_10 = { + asn_MAP_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_value2enum_10, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_enum2value_10, /* N => "tag"; sorted by N */ + 10, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_10 = { + "maxNumOfSemiPersistentSRSposResourcesPerSlot-r17", + "maxNumOfSemiPersistentSRSposResourcesPerSlot-r17", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_tags_10, + sizeof(asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_tags_10) + /sizeof(asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_tags_10[0]) - 1, /* 1 */ + asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_tags_10, /* Same as above */ + sizeof(asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_tags_10) + /sizeof(asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_specs_10 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_1[] = { + { ATF_POINTER, 2, offsetof(struct PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17, maxNumOfSemiPersistentSRSposResources_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfSemiPersistentSRSposResources-r17" + }, + { ATF_POINTER, 1, offsetof(struct PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17, maxNumOfSemiPersistentSRSposResourcesPerSlot_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumOfSemiPersistentSRSposResourcesPerSlot-r17" + }, +}; +static const int asn_MAP_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxNumOfSemiPersistentSRSposResources-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* maxNumOfSemiPersistentSRSposResourcesPerSlot-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_specs_1 = { + sizeof(struct PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17), + offsetof(struct PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17, _asn_ctx), + asn_MAP_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17 = { + "PosSRS-SP-RRC-Inactive-InInitialUL-BWP-r17", + "PosSRS-SP-RRC-Inactive-InInitialUL-BWP-r17", + &asn_OP_SEQUENCE, + asn_DEF_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_tags_1, + sizeof(asn_DEF_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_tags_1) + /sizeof(asn_DEF_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_tags_1[0]), /* 1 */ + asn_DEF_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_tags_1) + /sizeof(asn_DEF_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_1, + 2, /* Elements count */ + &asn_SPC_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/PosSRS-SP-RRC-Inactive-InInitialUL-BWP-r17.h b/asn.1/lpp_generated/PosSRS-SP-RRC-Inactive-InInitialUL-BWP-r17.h new file mode 100644 index 00000000..e8874f19 --- /dev/null +++ b/asn.1/lpp_generated/PosSRS-SP-RRC-Inactive-InInitialUL-BWP-r17.h @@ -0,0 +1,70 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_H_ +#define _PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResources_r17 { + PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResources_r17_n1 = 0, + PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResources_r17_n2 = 1, + PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResources_r17_n4 = 2, + PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResources_r17_n8 = 3, + PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResources_r17_n16 = 4, + PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResources_r17_n32 = 5, + PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResources_r17_n64 = 6 +} e_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResources_r17; +typedef enum PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17 { + PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n1 = 0, + PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n2 = 1, + PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n3 = 2, + PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n4 = 3, + PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n5 = 4, + PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n6 = 5, + PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n8 = 6, + PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n10 = 7, + PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n12 = 8, + PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_n14 = 9 +} e_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17__maxNumOfSemiPersistentSRSposResourcesPerSlot_r17; + +/* PosSRS-SP-RRC-Inactive-InInitialUL-BWP-r17 */ +typedef struct PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17 { + long *maxNumOfSemiPersistentSRSposResources_r17; /* OPTIONAL */ + long *maxNumOfSemiPersistentSRSposResourcesPerSlot_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumOfSemiPersistentSRSposResources_r17_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumOfSemiPersistentSRSposResourcesPerSlot_r17_10; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/PosSRS-TxFrequencyHoppingRRC-Connected-r18.c b/asn.1/lpp_generated/PosSRS-TxFrequencyHoppingRRC-Connected-r18.c new file mode 100644 index 00000000..86cdf318 --- /dev/null +++ b/asn.1/lpp_generated/PosSRS-TxFrequencyHoppingRRC-Connected-r18.c @@ -0,0 +1,850 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PosSRS-TxFrequencyHoppingRRC-Connected-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumSRS_BandwidthAcrossAllHopsFR1_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumSRS_BandwidthAcrossAllHopsFR2_r18_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumTxFH_Hops_r18_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_rf_TxRetunTimeFR1_r18_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_rf_TxRetunTimeFR2_r18_constr_21 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_switchTimeBetweenActiveBWP_FrequencyHop_r18_constr_25 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_numOfOverlappingPRB_r18_constr_31 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumSRS_ResourcePeriodic_r18_constr_36 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumSRS_ResourceAperiodic_r18_constr_44 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumSRS_ResourceSemipersistent_r18_constr_53 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_maximumSRS_BandwidthAcrossAllHopsFR1_r18_value2enum_2[] = { + { 0, 5, "mhz40" }, + { 1, 5, "mhz50" }, + { 2, 5, "mhz80" }, + { 3, 6, "mhz100" } +}; +static const unsigned int asn_MAP_maximumSRS_BandwidthAcrossAllHopsFR1_r18_enum2value_2[] = { + 3, /* mhz100(3) */ + 0, /* mhz40(0) */ + 1, /* mhz50(1) */ + 2 /* mhz80(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumSRS_BandwidthAcrossAllHopsFR1_r18_specs_2 = { + asn_MAP_maximumSRS_BandwidthAcrossAllHopsFR1_r18_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_maximumSRS_BandwidthAcrossAllHopsFR1_r18_enum2value_2, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_2 = { + "maximumSRS-BandwidthAcrossAllHopsFR1-r18", + "maximumSRS-BandwidthAcrossAllHopsFR1-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_tags_2, + sizeof(asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_tags_2) + /sizeof(asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_tags_2[0]) - 1, /* 1 */ + asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_tags_2, /* Same as above */ + sizeof(asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_tags_2) + /sizeof(asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumSRS_BandwidthAcrossAllHopsFR1_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumSRS_BandwidthAcrossAllHopsFR1_r18_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumSRS_BandwidthAcrossAllHopsFR2_r18_value2enum_7[] = { + { 0, 6, "mhz100" }, + { 1, 6, "mhz200" }, + { 2, 6, "mhz400" } +}; +static const unsigned int asn_MAP_maximumSRS_BandwidthAcrossAllHopsFR2_r18_enum2value_7[] = { + 0, /* mhz100(0) */ + 1, /* mhz200(1) */ + 2 /* mhz400(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumSRS_BandwidthAcrossAllHopsFR2_r18_specs_7 = { + asn_MAP_maximumSRS_BandwidthAcrossAllHopsFR2_r18_value2enum_7, /* "tag" => N; sorted by tag */ + asn_MAP_maximumSRS_BandwidthAcrossAllHopsFR2_r18_enum2value_7, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_7 = { + "maximumSRS-BandwidthAcrossAllHopsFR2-r18", + "maximumSRS-BandwidthAcrossAllHopsFR2-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_tags_7, + sizeof(asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_tags_7) + /sizeof(asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_tags_7[0]) - 1, /* 1 */ + asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_tags_7, /* Same as above */ + sizeof(asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_tags_7) + /sizeof(asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumSRS_BandwidthAcrossAllHopsFR2_r18_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumSRS_BandwidthAcrossAllHopsFR2_r18_specs_7 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumTxFH_Hops_r18_value2enum_11[] = { + { 0, 2, "n2" }, + { 1, 2, "n3" }, + { 2, 2, "n4" }, + { 3, 2, "n5" }, + { 4, 2, "n6" } +}; +static const unsigned int asn_MAP_maximumTxFH_Hops_r18_enum2value_11[] = { + 0, /* n2(0) */ + 1, /* n3(1) */ + 2, /* n4(2) */ + 3, /* n5(3) */ + 4 /* n6(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumTxFH_Hops_r18_specs_11 = { + asn_MAP_maximumTxFH_Hops_r18_value2enum_11, /* "tag" => N; sorted by tag */ + asn_MAP_maximumTxFH_Hops_r18_enum2value_11, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumTxFH_Hops_r18_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumTxFH_Hops_r18_11 = { + "maximumTxFH-Hops-r18", + "maximumTxFH-Hops-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumTxFH_Hops_r18_tags_11, + sizeof(asn_DEF_maximumTxFH_Hops_r18_tags_11) + /sizeof(asn_DEF_maximumTxFH_Hops_r18_tags_11[0]) - 1, /* 1 */ + asn_DEF_maximumTxFH_Hops_r18_tags_11, /* Same as above */ + sizeof(asn_DEF_maximumTxFH_Hops_r18_tags_11) + /sizeof(asn_DEF_maximumTxFH_Hops_r18_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumTxFH_Hops_r18_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumTxFH_Hops_r18_specs_11 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_rf_TxRetunTimeFR1_r18_value2enum_17[] = { + { 0, 3, "n70" }, + { 1, 4, "n140" }, + { 2, 4, "n210" } +}; +static const unsigned int asn_MAP_rf_TxRetunTimeFR1_r18_enum2value_17[] = { + 1, /* n140(1) */ + 2, /* n210(2) */ + 0 /* n70(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_rf_TxRetunTimeFR1_r18_specs_17 = { + asn_MAP_rf_TxRetunTimeFR1_r18_value2enum_17, /* "tag" => N; sorted by tag */ + asn_MAP_rf_TxRetunTimeFR1_r18_enum2value_17, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_rf_TxRetunTimeFR1_r18_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_rf_TxRetunTimeFR1_r18_17 = { + "rf-TxRetunTimeFR1-r18", + "rf-TxRetunTimeFR1-r18", + &asn_OP_NativeEnumerated, + asn_DEF_rf_TxRetunTimeFR1_r18_tags_17, + sizeof(asn_DEF_rf_TxRetunTimeFR1_r18_tags_17) + /sizeof(asn_DEF_rf_TxRetunTimeFR1_r18_tags_17[0]) - 1, /* 1 */ + asn_DEF_rf_TxRetunTimeFR1_r18_tags_17, /* Same as above */ + sizeof(asn_DEF_rf_TxRetunTimeFR1_r18_tags_17) + /sizeof(asn_DEF_rf_TxRetunTimeFR1_r18_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_rf_TxRetunTimeFR1_r18_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_rf_TxRetunTimeFR1_r18_specs_17 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_rf_TxRetunTimeFR2_r18_value2enum_21[] = { + { 0, 3, "n35" }, + { 1, 3, "n70" }, + { 2, 4, "n140" } +}; +static const unsigned int asn_MAP_rf_TxRetunTimeFR2_r18_enum2value_21[] = { + 2, /* n140(2) */ + 0, /* n35(0) */ + 1 /* n70(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_rf_TxRetunTimeFR2_r18_specs_21 = { + asn_MAP_rf_TxRetunTimeFR2_r18_value2enum_21, /* "tag" => N; sorted by tag */ + asn_MAP_rf_TxRetunTimeFR2_r18_enum2value_21, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_rf_TxRetunTimeFR2_r18_tags_21[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_rf_TxRetunTimeFR2_r18_21 = { + "rf-TxRetunTimeFR2-r18", + "rf-TxRetunTimeFR2-r18", + &asn_OP_NativeEnumerated, + asn_DEF_rf_TxRetunTimeFR2_r18_tags_21, + sizeof(asn_DEF_rf_TxRetunTimeFR2_r18_tags_21) + /sizeof(asn_DEF_rf_TxRetunTimeFR2_r18_tags_21[0]) - 1, /* 1 */ + asn_DEF_rf_TxRetunTimeFR2_r18_tags_21, /* Same as above */ + sizeof(asn_DEF_rf_TxRetunTimeFR2_r18_tags_21) + /sizeof(asn_DEF_rf_TxRetunTimeFR2_r18_tags_21[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_rf_TxRetunTimeFR2_r18_constr_21, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_rf_TxRetunTimeFR2_r18_specs_21 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_switchTimeBetweenActiveBWP_FrequencyHop_r18_value2enum_25[] = { + { 0, 4, "n100" }, + { 1, 4, "n140" }, + { 2, 4, "n200" }, + { 3, 4, "n300" }, + { 4, 4, "n500" } +}; +static const unsigned int asn_MAP_switchTimeBetweenActiveBWP_FrequencyHop_r18_enum2value_25[] = { + 0, /* n100(0) */ + 1, /* n140(1) */ + 2, /* n200(2) */ + 3, /* n300(3) */ + 4 /* n500(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_switchTimeBetweenActiveBWP_FrequencyHop_r18_specs_25 = { + asn_MAP_switchTimeBetweenActiveBWP_FrequencyHop_r18_value2enum_25, /* "tag" => N; sorted by tag */ + asn_MAP_switchTimeBetweenActiveBWP_FrequencyHop_r18_enum2value_25, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_tags_25[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_25 = { + "switchTimeBetweenActiveBWP-FrequencyHop-r18", + "switchTimeBetweenActiveBWP-FrequencyHop-r18", + &asn_OP_NativeEnumerated, + asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_tags_25, + sizeof(asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_tags_25) + /sizeof(asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_tags_25[0]) - 1, /* 1 */ + asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_tags_25, /* Same as above */ + sizeof(asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_tags_25) + /sizeof(asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_tags_25[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_switchTimeBetweenActiveBWP_FrequencyHop_r18_constr_25, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_switchTimeBetweenActiveBWP_FrequencyHop_r18_specs_25 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_numOfOverlappingPRB_r18_value2enum_31[] = { + { 0, 2, "n0" }, + { 1, 2, "n1" }, + { 2, 2, "n2" }, + { 3, 2, "n4" } +}; +static const unsigned int asn_MAP_numOfOverlappingPRB_r18_enum2value_31[] = { + 0, /* n0(0) */ + 1, /* n1(1) */ + 2, /* n2(2) */ + 3 /* n4(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_numOfOverlappingPRB_r18_specs_31 = { + asn_MAP_numOfOverlappingPRB_r18_value2enum_31, /* "tag" => N; sorted by tag */ + asn_MAP_numOfOverlappingPRB_r18_enum2value_31, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_numOfOverlappingPRB_r18_tags_31[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_numOfOverlappingPRB_r18_31 = { + "numOfOverlappingPRB-r18", + "numOfOverlappingPRB-r18", + &asn_OP_NativeEnumerated, + asn_DEF_numOfOverlappingPRB_r18_tags_31, + sizeof(asn_DEF_numOfOverlappingPRB_r18_tags_31) + /sizeof(asn_DEF_numOfOverlappingPRB_r18_tags_31[0]) - 1, /* 1 */ + asn_DEF_numOfOverlappingPRB_r18_tags_31, /* Same as above */ + sizeof(asn_DEF_numOfOverlappingPRB_r18_tags_31) + /sizeof(asn_DEF_numOfOverlappingPRB_r18_tags_31[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_numOfOverlappingPRB_r18_constr_31, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_numOfOverlappingPRB_r18_specs_31 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumSRS_ResourcePeriodic_r18_value2enum_36[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n32" }, + { 6, 3, "n64" } +}; +static const unsigned int asn_MAP_maximumSRS_ResourcePeriodic_r18_enum2value_36[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n32(5) */ + 2, /* n4(2) */ + 6, /* n64(6) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumSRS_ResourcePeriodic_r18_specs_36 = { + asn_MAP_maximumSRS_ResourcePeriodic_r18_value2enum_36, /* "tag" => N; sorted by tag */ + asn_MAP_maximumSRS_ResourcePeriodic_r18_enum2value_36, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumSRS_ResourcePeriodic_r18_tags_36[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumSRS_ResourcePeriodic_r18_36 = { + "maximumSRS-ResourcePeriodic-r18", + "maximumSRS-ResourcePeriodic-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumSRS_ResourcePeriodic_r18_tags_36, + sizeof(asn_DEF_maximumSRS_ResourcePeriodic_r18_tags_36) + /sizeof(asn_DEF_maximumSRS_ResourcePeriodic_r18_tags_36[0]) - 1, /* 1 */ + asn_DEF_maximumSRS_ResourcePeriodic_r18_tags_36, /* Same as above */ + sizeof(asn_DEF_maximumSRS_ResourcePeriodic_r18_tags_36) + /sizeof(asn_DEF_maximumSRS_ResourcePeriodic_r18_tags_36[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumSRS_ResourcePeriodic_r18_constr_36, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumSRS_ResourcePeriodic_r18_specs_36 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumSRS_ResourceAperiodic_r18_value2enum_44[] = { + { 0, 2, "n0" }, + { 1, 2, "n1" }, + { 2, 2, "n2" }, + { 3, 2, "n4" }, + { 4, 2, "n8" }, + { 5, 3, "n16" }, + { 6, 3, "n32" }, + { 7, 3, "n64" } +}; +static const unsigned int asn_MAP_maximumSRS_ResourceAperiodic_r18_enum2value_44[] = { + 0, /* n0(0) */ + 1, /* n1(1) */ + 5, /* n16(5) */ + 2, /* n2(2) */ + 6, /* n32(6) */ + 3, /* n4(3) */ + 7, /* n64(7) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumSRS_ResourceAperiodic_r18_specs_44 = { + asn_MAP_maximumSRS_ResourceAperiodic_r18_value2enum_44, /* "tag" => N; sorted by tag */ + asn_MAP_maximumSRS_ResourceAperiodic_r18_enum2value_44, /* N => "tag"; sorted by N */ + 8, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumSRS_ResourceAperiodic_r18_tags_44[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumSRS_ResourceAperiodic_r18_44 = { + "maximumSRS-ResourceAperiodic-r18", + "maximumSRS-ResourceAperiodic-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumSRS_ResourceAperiodic_r18_tags_44, + sizeof(asn_DEF_maximumSRS_ResourceAperiodic_r18_tags_44) + /sizeof(asn_DEF_maximumSRS_ResourceAperiodic_r18_tags_44[0]) - 1, /* 1 */ + asn_DEF_maximumSRS_ResourceAperiodic_r18_tags_44, /* Same as above */ + sizeof(asn_DEF_maximumSRS_ResourceAperiodic_r18_tags_44) + /sizeof(asn_DEF_maximumSRS_ResourceAperiodic_r18_tags_44[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumSRS_ResourceAperiodic_r18_constr_44, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumSRS_ResourceAperiodic_r18_specs_44 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumSRS_ResourceSemipersistent_r18_value2enum_53[] = { + { 0, 2, "n0" }, + { 1, 2, "n1" }, + { 2, 2, "n2" }, + { 3, 2, "n4" }, + { 4, 2, "n8" }, + { 5, 3, "n16" }, + { 6, 3, "n32" }, + { 7, 3, "n64" } +}; +static const unsigned int asn_MAP_maximumSRS_ResourceSemipersistent_r18_enum2value_53[] = { + 0, /* n0(0) */ + 1, /* n1(1) */ + 5, /* n16(5) */ + 2, /* n2(2) */ + 6, /* n32(6) */ + 3, /* n4(3) */ + 7, /* n64(7) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumSRS_ResourceSemipersistent_r18_specs_53 = { + asn_MAP_maximumSRS_ResourceSemipersistent_r18_value2enum_53, /* "tag" => N; sorted by tag */ + asn_MAP_maximumSRS_ResourceSemipersistent_r18_enum2value_53, /* N => "tag"; sorted by N */ + 8, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumSRS_ResourceSemipersistent_r18_tags_53[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumSRS_ResourceSemipersistent_r18_53 = { + "maximumSRS-ResourceSemipersistent-r18", + "maximumSRS-ResourceSemipersistent-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumSRS_ResourceSemipersistent_r18_tags_53, + sizeof(asn_DEF_maximumSRS_ResourceSemipersistent_r18_tags_53) + /sizeof(asn_DEF_maximumSRS_ResourceSemipersistent_r18_tags_53[0]) - 1, /* 1 */ + asn_DEF_maximumSRS_ResourceSemipersistent_r18_tags_53, /* Same as above */ + sizeof(asn_DEF_maximumSRS_ResourceSemipersistent_r18_tags_53) + /sizeof(asn_DEF_maximumSRS_ResourceSemipersistent_r18_tags_53[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumSRS_ResourceSemipersistent_r18_constr_53, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumSRS_ResourceSemipersistent_r18_specs_53 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_PosSRS_TxFrequencyHoppingRRC_Connected_r18_1[] = { + { ATF_POINTER, 10, offsetof(struct PosSRS_TxFrequencyHoppingRRC_Connected_r18, maximumSRS_BandwidthAcrossAllHopsFR1_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumSRS-BandwidthAcrossAllHopsFR1-r18" + }, + { ATF_POINTER, 9, offsetof(struct PosSRS_TxFrequencyHoppingRRC_Connected_r18, maximumSRS_BandwidthAcrossAllHopsFR2_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumSRS-BandwidthAcrossAllHopsFR2-r18" + }, + { ATF_POINTER, 8, offsetof(struct PosSRS_TxFrequencyHoppingRRC_Connected_r18, maximumTxFH_Hops_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumTxFH_Hops_r18_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumTxFH-Hops-r18" + }, + { ATF_POINTER, 7, offsetof(struct PosSRS_TxFrequencyHoppingRRC_Connected_r18, rf_TxRetunTimeFR1_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_rf_TxRetunTimeFR1_r18_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rf-TxRetunTimeFR1-r18" + }, + { ATF_POINTER, 6, offsetof(struct PosSRS_TxFrequencyHoppingRRC_Connected_r18, rf_TxRetunTimeFR2_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_rf_TxRetunTimeFR2_r18_21, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rf-TxRetunTimeFR2-r18" + }, + { ATF_POINTER, 5, offsetof(struct PosSRS_TxFrequencyHoppingRRC_Connected_r18, switchTimeBetweenActiveBWP_FrequencyHop_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_25, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "switchTimeBetweenActiveBWP-FrequencyHop-r18" + }, + { ATF_POINTER, 4, offsetof(struct PosSRS_TxFrequencyHoppingRRC_Connected_r18, numOfOverlappingPRB_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_numOfOverlappingPRB_r18_31, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "numOfOverlappingPRB-r18" + }, + { ATF_POINTER, 3, offsetof(struct PosSRS_TxFrequencyHoppingRRC_Connected_r18, maximumSRS_ResourcePeriodic_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumSRS_ResourcePeriodic_r18_36, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumSRS-ResourcePeriodic-r18" + }, + { ATF_POINTER, 2, offsetof(struct PosSRS_TxFrequencyHoppingRRC_Connected_r18, maximumSRS_ResourceAperiodic_r18), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumSRS_ResourceAperiodic_r18_44, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumSRS-ResourceAperiodic-r18" + }, + { ATF_POINTER, 1, offsetof(struct PosSRS_TxFrequencyHoppingRRC_Connected_r18, maximumSRS_ResourceSemipersistent_r18), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumSRS_ResourceSemipersistent_r18_53, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumSRS-ResourceSemipersistent-r18" + }, +}; +static const int asn_MAP_PosSRS_TxFrequencyHoppingRRC_Connected_r18_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; +static const ber_tlv_tag_t asn_DEF_PosSRS_TxFrequencyHoppingRRC_Connected_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PosSRS_TxFrequencyHoppingRRC_Connected_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maximumSRS-BandwidthAcrossAllHopsFR1-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maximumSRS-BandwidthAcrossAllHopsFR2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* maximumTxFH-Hops-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* rf-TxRetunTimeFR1-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rf-TxRetunTimeFR2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* switchTimeBetweenActiveBWP-FrequencyHop-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* numOfOverlappingPRB-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* maximumSRS-ResourcePeriodic-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* maximumSRS-ResourceAperiodic-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* maximumSRS-ResourceSemipersistent-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PosSRS_TxFrequencyHoppingRRC_Connected_r18_specs_1 = { + sizeof(struct PosSRS_TxFrequencyHoppingRRC_Connected_r18), + offsetof(struct PosSRS_TxFrequencyHoppingRRC_Connected_r18, _asn_ctx), + asn_MAP_PosSRS_TxFrequencyHoppingRRC_Connected_r18_tag2el_1, + 10, /* Count of tags in the map */ + asn_MAP_PosSRS_TxFrequencyHoppingRRC_Connected_r18_oms_1, /* Optional members */ + 10, 0, /* Root/Additions */ + 10, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PosSRS_TxFrequencyHoppingRRC_Connected_r18 = { + "PosSRS-TxFrequencyHoppingRRC-Connected-r18", + "PosSRS-TxFrequencyHoppingRRC-Connected-r18", + &asn_OP_SEQUENCE, + asn_DEF_PosSRS_TxFrequencyHoppingRRC_Connected_r18_tags_1, + sizeof(asn_DEF_PosSRS_TxFrequencyHoppingRRC_Connected_r18_tags_1) + /sizeof(asn_DEF_PosSRS_TxFrequencyHoppingRRC_Connected_r18_tags_1[0]), /* 1 */ + asn_DEF_PosSRS_TxFrequencyHoppingRRC_Connected_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_PosSRS_TxFrequencyHoppingRRC_Connected_r18_tags_1) + /sizeof(asn_DEF_PosSRS_TxFrequencyHoppingRRC_Connected_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PosSRS_TxFrequencyHoppingRRC_Connected_r18_1, + 10, /* Elements count */ + &asn_SPC_PosSRS_TxFrequencyHoppingRRC_Connected_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/PosSRS-TxFrequencyHoppingRRC-Connected-r18.h b/asn.1/lpp_generated/PosSRS-TxFrequencyHoppingRRC-Connected-r18.h new file mode 100644 index 00000000..0a8d3adb --- /dev/null +++ b/asn.1/lpp_generated/PosSRS-TxFrequencyHoppingRRC-Connected-r18.h @@ -0,0 +1,135 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _PosSRS_TxFrequencyHoppingRRC_Connected_r18_H_ +#define _PosSRS_TxFrequencyHoppingRRC_Connected_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_BandwidthAcrossAllHopsFR1_r18 { + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_BandwidthAcrossAllHopsFR1_r18_mhz40 = 0, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_BandwidthAcrossAllHopsFR1_r18_mhz50 = 1, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_BandwidthAcrossAllHopsFR1_r18_mhz80 = 2, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_BandwidthAcrossAllHopsFR1_r18_mhz100 = 3 +} e_PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_BandwidthAcrossAllHopsFR1_r18; +typedef enum PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_BandwidthAcrossAllHopsFR2_r18 { + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_BandwidthAcrossAllHopsFR2_r18_mhz100 = 0, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_BandwidthAcrossAllHopsFR2_r18_mhz200 = 1, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_BandwidthAcrossAllHopsFR2_r18_mhz400 = 2 +} e_PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_BandwidthAcrossAllHopsFR2_r18; +typedef enum PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumTxFH_Hops_r18 { + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumTxFH_Hops_r18_n2 = 0, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumTxFH_Hops_r18_n3 = 1, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumTxFH_Hops_r18_n4 = 2, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumTxFH_Hops_r18_n5 = 3, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumTxFH_Hops_r18_n6 = 4 +} e_PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumTxFH_Hops_r18; +typedef enum PosSRS_TxFrequencyHoppingRRC_Connected_r18__rf_TxRetunTimeFR1_r18 { + PosSRS_TxFrequencyHoppingRRC_Connected_r18__rf_TxRetunTimeFR1_r18_n70 = 0, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__rf_TxRetunTimeFR1_r18_n140 = 1, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__rf_TxRetunTimeFR1_r18_n210 = 2 +} e_PosSRS_TxFrequencyHoppingRRC_Connected_r18__rf_TxRetunTimeFR1_r18; +typedef enum PosSRS_TxFrequencyHoppingRRC_Connected_r18__rf_TxRetunTimeFR2_r18 { + PosSRS_TxFrequencyHoppingRRC_Connected_r18__rf_TxRetunTimeFR2_r18_n35 = 0, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__rf_TxRetunTimeFR2_r18_n70 = 1, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__rf_TxRetunTimeFR2_r18_n140 = 2 +} e_PosSRS_TxFrequencyHoppingRRC_Connected_r18__rf_TxRetunTimeFR2_r18; +typedef enum PosSRS_TxFrequencyHoppingRRC_Connected_r18__switchTimeBetweenActiveBWP_FrequencyHop_r18 { + PosSRS_TxFrequencyHoppingRRC_Connected_r18__switchTimeBetweenActiveBWP_FrequencyHop_r18_n100 = 0, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__switchTimeBetweenActiveBWP_FrequencyHop_r18_n140 = 1, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__switchTimeBetweenActiveBWP_FrequencyHop_r18_n200 = 2, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__switchTimeBetweenActiveBWP_FrequencyHop_r18_n300 = 3, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__switchTimeBetweenActiveBWP_FrequencyHop_r18_n500 = 4 +} e_PosSRS_TxFrequencyHoppingRRC_Connected_r18__switchTimeBetweenActiveBWP_FrequencyHop_r18; +typedef enum PosSRS_TxFrequencyHoppingRRC_Connected_r18__numOfOverlappingPRB_r18 { + PosSRS_TxFrequencyHoppingRRC_Connected_r18__numOfOverlappingPRB_r18_n0 = 0, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__numOfOverlappingPRB_r18_n1 = 1, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__numOfOverlappingPRB_r18_n2 = 2, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__numOfOverlappingPRB_r18_n4 = 3 +} e_PosSRS_TxFrequencyHoppingRRC_Connected_r18__numOfOverlappingPRB_r18; +typedef enum PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourcePeriodic_r18 { + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourcePeriodic_r18_n1 = 0, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourcePeriodic_r18_n2 = 1, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourcePeriodic_r18_n4 = 2, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourcePeriodic_r18_n8 = 3, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourcePeriodic_r18_n16 = 4, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourcePeriodic_r18_n32 = 5, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourcePeriodic_r18_n64 = 6 +} e_PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourcePeriodic_r18; +typedef enum PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceAperiodic_r18 { + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceAperiodic_r18_n0 = 0, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceAperiodic_r18_n1 = 1, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceAperiodic_r18_n2 = 2, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceAperiodic_r18_n4 = 3, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceAperiodic_r18_n8 = 4, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceAperiodic_r18_n16 = 5, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceAperiodic_r18_n32 = 6, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceAperiodic_r18_n64 = 7 +} e_PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceAperiodic_r18; +typedef enum PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceSemipersistent_r18 { + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceSemipersistent_r18_n0 = 0, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceSemipersistent_r18_n1 = 1, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceSemipersistent_r18_n2 = 2, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceSemipersistent_r18_n4 = 3, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceSemipersistent_r18_n8 = 4, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceSemipersistent_r18_n16 = 5, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceSemipersistent_r18_n32 = 6, + PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceSemipersistent_r18_n64 = 7 +} e_PosSRS_TxFrequencyHoppingRRC_Connected_r18__maximumSRS_ResourceSemipersistent_r18; + +/* PosSRS-TxFrequencyHoppingRRC-Connected-r18 */ +typedef struct PosSRS_TxFrequencyHoppingRRC_Connected_r18 { + long *maximumSRS_BandwidthAcrossAllHopsFR1_r18; /* OPTIONAL */ + long *maximumSRS_BandwidthAcrossAllHopsFR2_r18; /* OPTIONAL */ + long *maximumTxFH_Hops_r18; /* OPTIONAL */ + long *rf_TxRetunTimeFR1_r18; /* OPTIONAL */ + long *rf_TxRetunTimeFR2_r18; /* OPTIONAL */ + long *switchTimeBetweenActiveBWP_FrequencyHop_r18; /* OPTIONAL */ + long *numOfOverlappingPRB_r18; /* OPTIONAL */ + long *maximumSRS_ResourcePeriodic_r18; /* OPTIONAL */ + long *maximumSRS_ResourceAperiodic_r18; /* OPTIONAL */ + long *maximumSRS_ResourceSemipersistent_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PosSRS_TxFrequencyHoppingRRC_Connected_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_7; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumTxFH_Hops_r18_11; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_rf_TxRetunTimeFR1_r18_17; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_rf_TxRetunTimeFR2_r18_21; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_25; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_numOfOverlappingPRB_r18_31; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumSRS_ResourcePeriodic_r18_36; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumSRS_ResourceAperiodic_r18_44; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumSRS_ResourceSemipersistent_r18_53; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_PosSRS_TxFrequencyHoppingRRC_Connected_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_PosSRS_TxFrequencyHoppingRRC_Connected_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_PosSRS_TxFrequencyHoppingRRC_Connected_r18_1[10]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PosSRS_TxFrequencyHoppingRRC_Connected_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/PosSRS-TxFrequencyHoppingRRC-Inactive-r18.c b/asn.1/lpp_generated/PosSRS-TxFrequencyHoppingRRC-Inactive-r18.c new file mode 100644 index 00000000..019e4461 --- /dev/null +++ b/asn.1/lpp_generated/PosSRS-TxFrequencyHoppingRRC-Inactive-r18.c @@ -0,0 +1,764 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PosSRS-TxFrequencyHoppingRRC-Inactive-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumSRS_BandwidthAcrossAllHopsFR1_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumSRS_BandwidthAcrossAllHopsFR2_r18_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumTxFH_Hops_r18_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_rf_TxRetunTimeFR1_r18_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_rf_TxRetunTimeFR2_r18_constr_21 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_switchTimeBetweenActiveBWP_FrequencyHop_r18_constr_25 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_numOfOverlappingPRB_r18_constr_31 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumSRS_ResourcePeriodic_r18_constr_36 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maximumSRS_ResourceSemipersistent_r18_constr_44 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_maximumSRS_BandwidthAcrossAllHopsFR1_r18_value2enum_2[] = { + { 0, 5, "mhz40" }, + { 1, 5, "mhz50" }, + { 2, 5, "mhz80" }, + { 3, 6, "mhz100" } +}; +static const unsigned int asn_MAP_maximumSRS_BandwidthAcrossAllHopsFR1_r18_enum2value_2[] = { + 3, /* mhz100(3) */ + 0, /* mhz40(0) */ + 1, /* mhz50(1) */ + 2 /* mhz80(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumSRS_BandwidthAcrossAllHopsFR1_r18_specs_2 = { + asn_MAP_maximumSRS_BandwidthAcrossAllHopsFR1_r18_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_maximumSRS_BandwidthAcrossAllHopsFR1_r18_enum2value_2, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_2 = { + "maximumSRS-BandwidthAcrossAllHopsFR1-r18", + "maximumSRS-BandwidthAcrossAllHopsFR1-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_tags_2, + sizeof(asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_tags_2) + /sizeof(asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_tags_2[0]) - 1, /* 1 */ + asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_tags_2, /* Same as above */ + sizeof(asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_tags_2) + /sizeof(asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumSRS_BandwidthAcrossAllHopsFR1_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumSRS_BandwidthAcrossAllHopsFR1_r18_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumSRS_BandwidthAcrossAllHopsFR2_r18_value2enum_7[] = { + { 0, 6, "mhz100" }, + { 1, 6, "mhz200" }, + { 2, 6, "mhz400" } +}; +static const unsigned int asn_MAP_maximumSRS_BandwidthAcrossAllHopsFR2_r18_enum2value_7[] = { + 0, /* mhz100(0) */ + 1, /* mhz200(1) */ + 2 /* mhz400(2) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumSRS_BandwidthAcrossAllHopsFR2_r18_specs_7 = { + asn_MAP_maximumSRS_BandwidthAcrossAllHopsFR2_r18_value2enum_7, /* "tag" => N; sorted by tag */ + asn_MAP_maximumSRS_BandwidthAcrossAllHopsFR2_r18_enum2value_7, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_7 = { + "maximumSRS-BandwidthAcrossAllHopsFR2-r18", + "maximumSRS-BandwidthAcrossAllHopsFR2-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_tags_7, + sizeof(asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_tags_7) + /sizeof(asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_tags_7[0]) - 1, /* 1 */ + asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_tags_7, /* Same as above */ + sizeof(asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_tags_7) + /sizeof(asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumSRS_BandwidthAcrossAllHopsFR2_r18_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumSRS_BandwidthAcrossAllHopsFR2_r18_specs_7 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumTxFH_Hops_r18_value2enum_11[] = { + { 0, 2, "n2" }, + { 1, 2, "n3" }, + { 2, 2, "n4" }, + { 3, 2, "n5" }, + { 4, 2, "n6" } +}; +static const unsigned int asn_MAP_maximumTxFH_Hops_r18_enum2value_11[] = { + 0, /* n2(0) */ + 1, /* n3(1) */ + 2, /* n4(2) */ + 3, /* n5(3) */ + 4 /* n6(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumTxFH_Hops_r18_specs_11 = { + asn_MAP_maximumTxFH_Hops_r18_value2enum_11, /* "tag" => N; sorted by tag */ + asn_MAP_maximumTxFH_Hops_r18_enum2value_11, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumTxFH_Hops_r18_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumTxFH_Hops_r18_11 = { + "maximumTxFH-Hops-r18", + "maximumTxFH-Hops-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumTxFH_Hops_r18_tags_11, + sizeof(asn_DEF_maximumTxFH_Hops_r18_tags_11) + /sizeof(asn_DEF_maximumTxFH_Hops_r18_tags_11[0]) - 1, /* 1 */ + asn_DEF_maximumTxFH_Hops_r18_tags_11, /* Same as above */ + sizeof(asn_DEF_maximumTxFH_Hops_r18_tags_11) + /sizeof(asn_DEF_maximumTxFH_Hops_r18_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumTxFH_Hops_r18_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumTxFH_Hops_r18_specs_11 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_rf_TxRetunTimeFR1_r18_value2enum_17[] = { + { 0, 3, "n70" }, + { 1, 4, "n140" }, + { 2, 4, "n210" } +}; +static const unsigned int asn_MAP_rf_TxRetunTimeFR1_r18_enum2value_17[] = { + 1, /* n140(1) */ + 2, /* n210(2) */ + 0 /* n70(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_rf_TxRetunTimeFR1_r18_specs_17 = { + asn_MAP_rf_TxRetunTimeFR1_r18_value2enum_17, /* "tag" => N; sorted by tag */ + asn_MAP_rf_TxRetunTimeFR1_r18_enum2value_17, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_rf_TxRetunTimeFR1_r18_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_rf_TxRetunTimeFR1_r18_17 = { + "rf-TxRetunTimeFR1-r18", + "rf-TxRetunTimeFR1-r18", + &asn_OP_NativeEnumerated, + asn_DEF_rf_TxRetunTimeFR1_r18_tags_17, + sizeof(asn_DEF_rf_TxRetunTimeFR1_r18_tags_17) + /sizeof(asn_DEF_rf_TxRetunTimeFR1_r18_tags_17[0]) - 1, /* 1 */ + asn_DEF_rf_TxRetunTimeFR1_r18_tags_17, /* Same as above */ + sizeof(asn_DEF_rf_TxRetunTimeFR1_r18_tags_17) + /sizeof(asn_DEF_rf_TxRetunTimeFR1_r18_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_rf_TxRetunTimeFR1_r18_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_rf_TxRetunTimeFR1_r18_specs_17 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_rf_TxRetunTimeFR2_r18_value2enum_21[] = { + { 0, 3, "n35" }, + { 1, 3, "n70" }, + { 2, 4, "n140" } +}; +static const unsigned int asn_MAP_rf_TxRetunTimeFR2_r18_enum2value_21[] = { + 2, /* n140(2) */ + 0, /* n35(0) */ + 1 /* n70(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_rf_TxRetunTimeFR2_r18_specs_21 = { + asn_MAP_rf_TxRetunTimeFR2_r18_value2enum_21, /* "tag" => N; sorted by tag */ + asn_MAP_rf_TxRetunTimeFR2_r18_enum2value_21, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_rf_TxRetunTimeFR2_r18_tags_21[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_rf_TxRetunTimeFR2_r18_21 = { + "rf-TxRetunTimeFR2-r18", + "rf-TxRetunTimeFR2-r18", + &asn_OP_NativeEnumerated, + asn_DEF_rf_TxRetunTimeFR2_r18_tags_21, + sizeof(asn_DEF_rf_TxRetunTimeFR2_r18_tags_21) + /sizeof(asn_DEF_rf_TxRetunTimeFR2_r18_tags_21[0]) - 1, /* 1 */ + asn_DEF_rf_TxRetunTimeFR2_r18_tags_21, /* Same as above */ + sizeof(asn_DEF_rf_TxRetunTimeFR2_r18_tags_21) + /sizeof(asn_DEF_rf_TxRetunTimeFR2_r18_tags_21[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_rf_TxRetunTimeFR2_r18_constr_21, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_rf_TxRetunTimeFR2_r18_specs_21 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_switchTimeBetweenActiveBWP_FrequencyHop_r18_value2enum_25[] = { + { 0, 4, "n100" }, + { 1, 4, "n140" }, + { 2, 4, "n200" }, + { 3, 4, "n300" }, + { 4, 4, "n500" } +}; +static const unsigned int asn_MAP_switchTimeBetweenActiveBWP_FrequencyHop_r18_enum2value_25[] = { + 0, /* n100(0) */ + 1, /* n140(1) */ + 2, /* n200(2) */ + 3, /* n300(3) */ + 4 /* n500(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_switchTimeBetweenActiveBWP_FrequencyHop_r18_specs_25 = { + asn_MAP_switchTimeBetweenActiveBWP_FrequencyHop_r18_value2enum_25, /* "tag" => N; sorted by tag */ + asn_MAP_switchTimeBetweenActiveBWP_FrequencyHop_r18_enum2value_25, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_tags_25[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_25 = { + "switchTimeBetweenActiveBWP-FrequencyHop-r18", + "switchTimeBetweenActiveBWP-FrequencyHop-r18", + &asn_OP_NativeEnumerated, + asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_tags_25, + sizeof(asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_tags_25) + /sizeof(asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_tags_25[0]) - 1, /* 1 */ + asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_tags_25, /* Same as above */ + sizeof(asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_tags_25) + /sizeof(asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_tags_25[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_switchTimeBetweenActiveBWP_FrequencyHop_r18_constr_25, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_switchTimeBetweenActiveBWP_FrequencyHop_r18_specs_25 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_numOfOverlappingPRB_r18_value2enum_31[] = { + { 0, 2, "n0" }, + { 1, 2, "n1" }, + { 2, 2, "n2" }, + { 3, 2, "n4" } +}; +static const unsigned int asn_MAP_numOfOverlappingPRB_r18_enum2value_31[] = { + 0, /* n0(0) */ + 1, /* n1(1) */ + 2, /* n2(2) */ + 3 /* n4(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_numOfOverlappingPRB_r18_specs_31 = { + asn_MAP_numOfOverlappingPRB_r18_value2enum_31, /* "tag" => N; sorted by tag */ + asn_MAP_numOfOverlappingPRB_r18_enum2value_31, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_numOfOverlappingPRB_r18_tags_31[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_numOfOverlappingPRB_r18_31 = { + "numOfOverlappingPRB-r18", + "numOfOverlappingPRB-r18", + &asn_OP_NativeEnumerated, + asn_DEF_numOfOverlappingPRB_r18_tags_31, + sizeof(asn_DEF_numOfOverlappingPRB_r18_tags_31) + /sizeof(asn_DEF_numOfOverlappingPRB_r18_tags_31[0]) - 1, /* 1 */ + asn_DEF_numOfOverlappingPRB_r18_tags_31, /* Same as above */ + sizeof(asn_DEF_numOfOverlappingPRB_r18_tags_31) + /sizeof(asn_DEF_numOfOverlappingPRB_r18_tags_31[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_numOfOverlappingPRB_r18_constr_31, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_numOfOverlappingPRB_r18_specs_31 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumSRS_ResourcePeriodic_r18_value2enum_36[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n32" }, + { 6, 3, "n64" } +}; +static const unsigned int asn_MAP_maximumSRS_ResourcePeriodic_r18_enum2value_36[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n32(5) */ + 2, /* n4(2) */ + 6, /* n64(6) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumSRS_ResourcePeriodic_r18_specs_36 = { + asn_MAP_maximumSRS_ResourcePeriodic_r18_value2enum_36, /* "tag" => N; sorted by tag */ + asn_MAP_maximumSRS_ResourcePeriodic_r18_enum2value_36, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumSRS_ResourcePeriodic_r18_tags_36[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumSRS_ResourcePeriodic_r18_36 = { + "maximumSRS-ResourcePeriodic-r18", + "maximumSRS-ResourcePeriodic-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumSRS_ResourcePeriodic_r18_tags_36, + sizeof(asn_DEF_maximumSRS_ResourcePeriodic_r18_tags_36) + /sizeof(asn_DEF_maximumSRS_ResourcePeriodic_r18_tags_36[0]) - 1, /* 1 */ + asn_DEF_maximumSRS_ResourcePeriodic_r18_tags_36, /* Same as above */ + sizeof(asn_DEF_maximumSRS_ResourcePeriodic_r18_tags_36) + /sizeof(asn_DEF_maximumSRS_ResourcePeriodic_r18_tags_36[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumSRS_ResourcePeriodic_r18_constr_36, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumSRS_ResourcePeriodic_r18_specs_36 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maximumSRS_ResourceSemipersistent_r18_value2enum_44[] = { + { 0, 2, "n0" }, + { 1, 2, "n1" }, + { 2, 2, "n2" }, + { 3, 2, "n4" }, + { 4, 2, "n8" }, + { 5, 3, "n16" }, + { 6, 3, "n32" }, + { 7, 3, "n64" } +}; +static const unsigned int asn_MAP_maximumSRS_ResourceSemipersistent_r18_enum2value_44[] = { + 0, /* n0(0) */ + 1, /* n1(1) */ + 5, /* n16(5) */ + 2, /* n2(2) */ + 6, /* n32(6) */ + 3, /* n4(3) */ + 7, /* n64(7) */ + 4 /* n8(4) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maximumSRS_ResourceSemipersistent_r18_specs_44 = { + asn_MAP_maximumSRS_ResourceSemipersistent_r18_value2enum_44, /* "tag" => N; sorted by tag */ + asn_MAP_maximumSRS_ResourceSemipersistent_r18_enum2value_44, /* N => "tag"; sorted by N */ + 8, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maximumSRS_ResourceSemipersistent_r18_tags_44[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maximumSRS_ResourceSemipersistent_r18_44 = { + "maximumSRS-ResourceSemipersistent-r18", + "maximumSRS-ResourceSemipersistent-r18", + &asn_OP_NativeEnumerated, + asn_DEF_maximumSRS_ResourceSemipersistent_r18_tags_44, + sizeof(asn_DEF_maximumSRS_ResourceSemipersistent_r18_tags_44) + /sizeof(asn_DEF_maximumSRS_ResourceSemipersistent_r18_tags_44[0]) - 1, /* 1 */ + asn_DEF_maximumSRS_ResourceSemipersistent_r18_tags_44, /* Same as above */ + sizeof(asn_DEF_maximumSRS_ResourceSemipersistent_r18_tags_44) + /sizeof(asn_DEF_maximumSRS_ResourceSemipersistent_r18_tags_44[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maximumSRS_ResourceSemipersistent_r18_constr_44, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maximumSRS_ResourceSemipersistent_r18_specs_44 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_PosSRS_TxFrequencyHoppingRRC_Inactive_r18_1[] = { + { ATF_POINTER, 9, offsetof(struct PosSRS_TxFrequencyHoppingRRC_Inactive_r18, maximumSRS_BandwidthAcrossAllHopsFR1_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumSRS-BandwidthAcrossAllHopsFR1-r18" + }, + { ATF_POINTER, 8, offsetof(struct PosSRS_TxFrequencyHoppingRRC_Inactive_r18, maximumSRS_BandwidthAcrossAllHopsFR2_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumSRS-BandwidthAcrossAllHopsFR2-r18" + }, + { ATF_POINTER, 7, offsetof(struct PosSRS_TxFrequencyHoppingRRC_Inactive_r18, maximumTxFH_Hops_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumTxFH_Hops_r18_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumTxFH-Hops-r18" + }, + { ATF_POINTER, 6, offsetof(struct PosSRS_TxFrequencyHoppingRRC_Inactive_r18, rf_TxRetunTimeFR1_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_rf_TxRetunTimeFR1_r18_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rf-TxRetunTimeFR1-r18" + }, + { ATF_POINTER, 5, offsetof(struct PosSRS_TxFrequencyHoppingRRC_Inactive_r18, rf_TxRetunTimeFR2_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_rf_TxRetunTimeFR2_r18_21, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rf-TxRetunTimeFR2-r18" + }, + { ATF_POINTER, 4, offsetof(struct PosSRS_TxFrequencyHoppingRRC_Inactive_r18, switchTimeBetweenActiveBWP_FrequencyHop_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_25, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "switchTimeBetweenActiveBWP-FrequencyHop-r18" + }, + { ATF_POINTER, 3, offsetof(struct PosSRS_TxFrequencyHoppingRRC_Inactive_r18, numOfOverlappingPRB_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_numOfOverlappingPRB_r18_31, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "numOfOverlappingPRB-r18" + }, + { ATF_POINTER, 2, offsetof(struct PosSRS_TxFrequencyHoppingRRC_Inactive_r18, maximumSRS_ResourcePeriodic_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumSRS_ResourcePeriodic_r18_36, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumSRS-ResourcePeriodic-r18" + }, + { ATF_POINTER, 1, offsetof(struct PosSRS_TxFrequencyHoppingRRC_Inactive_r18, maximumSRS_ResourceSemipersistent_r18), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maximumSRS_ResourceSemipersistent_r18_44, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maximumSRS-ResourceSemipersistent-r18" + }, +}; +static const int asn_MAP_PosSRS_TxFrequencyHoppingRRC_Inactive_r18_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 }; +static const ber_tlv_tag_t asn_DEF_PosSRS_TxFrequencyHoppingRRC_Inactive_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PosSRS_TxFrequencyHoppingRRC_Inactive_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maximumSRS-BandwidthAcrossAllHopsFR1-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maximumSRS-BandwidthAcrossAllHopsFR2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* maximumTxFH-Hops-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* rf-TxRetunTimeFR1-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rf-TxRetunTimeFR2-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* switchTimeBetweenActiveBWP-FrequencyHop-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* numOfOverlappingPRB-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* maximumSRS-ResourcePeriodic-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* maximumSRS-ResourceSemipersistent-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PosSRS_TxFrequencyHoppingRRC_Inactive_r18_specs_1 = { + sizeof(struct PosSRS_TxFrequencyHoppingRRC_Inactive_r18), + offsetof(struct PosSRS_TxFrequencyHoppingRRC_Inactive_r18, _asn_ctx), + asn_MAP_PosSRS_TxFrequencyHoppingRRC_Inactive_r18_tag2el_1, + 9, /* Count of tags in the map */ + asn_MAP_PosSRS_TxFrequencyHoppingRRC_Inactive_r18_oms_1, /* Optional members */ + 9, 0, /* Root/Additions */ + 9, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PosSRS_TxFrequencyHoppingRRC_Inactive_r18 = { + "PosSRS-TxFrequencyHoppingRRC-Inactive-r18", + "PosSRS-TxFrequencyHoppingRRC-Inactive-r18", + &asn_OP_SEQUENCE, + asn_DEF_PosSRS_TxFrequencyHoppingRRC_Inactive_r18_tags_1, + sizeof(asn_DEF_PosSRS_TxFrequencyHoppingRRC_Inactive_r18_tags_1) + /sizeof(asn_DEF_PosSRS_TxFrequencyHoppingRRC_Inactive_r18_tags_1[0]), /* 1 */ + asn_DEF_PosSRS_TxFrequencyHoppingRRC_Inactive_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_PosSRS_TxFrequencyHoppingRRC_Inactive_r18_tags_1) + /sizeof(asn_DEF_PosSRS_TxFrequencyHoppingRRC_Inactive_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PosSRS_TxFrequencyHoppingRRC_Inactive_r18_1, + 9, /* Elements count */ + &asn_SPC_PosSRS_TxFrequencyHoppingRRC_Inactive_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/PosSRS-TxFrequencyHoppingRRC-Inactive-r18.h b/asn.1/lpp_generated/PosSRS-TxFrequencyHoppingRRC-Inactive-r18.h new file mode 100644 index 00000000..e45c2eef --- /dev/null +++ b/asn.1/lpp_generated/PosSRS-TxFrequencyHoppingRRC-Inactive-r18.h @@ -0,0 +1,123 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _PosSRS_TxFrequencyHoppingRRC_Inactive_r18_H_ +#define _PosSRS_TxFrequencyHoppingRRC_Inactive_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_BandwidthAcrossAllHopsFR1_r18 { + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_BandwidthAcrossAllHopsFR1_r18_mhz40 = 0, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_BandwidthAcrossAllHopsFR1_r18_mhz50 = 1, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_BandwidthAcrossAllHopsFR1_r18_mhz80 = 2, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_BandwidthAcrossAllHopsFR1_r18_mhz100 = 3 +} e_PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_BandwidthAcrossAllHopsFR1_r18; +typedef enum PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_BandwidthAcrossAllHopsFR2_r18 { + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_BandwidthAcrossAllHopsFR2_r18_mhz100 = 0, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_BandwidthAcrossAllHopsFR2_r18_mhz200 = 1, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_BandwidthAcrossAllHopsFR2_r18_mhz400 = 2 +} e_PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_BandwidthAcrossAllHopsFR2_r18; +typedef enum PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumTxFH_Hops_r18 { + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumTxFH_Hops_r18_n2 = 0, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumTxFH_Hops_r18_n3 = 1, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumTxFH_Hops_r18_n4 = 2, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumTxFH_Hops_r18_n5 = 3, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumTxFH_Hops_r18_n6 = 4 +} e_PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumTxFH_Hops_r18; +typedef enum PosSRS_TxFrequencyHoppingRRC_Inactive_r18__rf_TxRetunTimeFR1_r18 { + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__rf_TxRetunTimeFR1_r18_n70 = 0, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__rf_TxRetunTimeFR1_r18_n140 = 1, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__rf_TxRetunTimeFR1_r18_n210 = 2 +} e_PosSRS_TxFrequencyHoppingRRC_Inactive_r18__rf_TxRetunTimeFR1_r18; +typedef enum PosSRS_TxFrequencyHoppingRRC_Inactive_r18__rf_TxRetunTimeFR2_r18 { + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__rf_TxRetunTimeFR2_r18_n35 = 0, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__rf_TxRetunTimeFR2_r18_n70 = 1, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__rf_TxRetunTimeFR2_r18_n140 = 2 +} e_PosSRS_TxFrequencyHoppingRRC_Inactive_r18__rf_TxRetunTimeFR2_r18; +typedef enum PosSRS_TxFrequencyHoppingRRC_Inactive_r18__switchTimeBetweenActiveBWP_FrequencyHop_r18 { + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__switchTimeBetweenActiveBWP_FrequencyHop_r18_n100 = 0, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__switchTimeBetweenActiveBWP_FrequencyHop_r18_n140 = 1, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__switchTimeBetweenActiveBWP_FrequencyHop_r18_n200 = 2, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__switchTimeBetweenActiveBWP_FrequencyHop_r18_n300 = 3, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__switchTimeBetweenActiveBWP_FrequencyHop_r18_n500 = 4 +} e_PosSRS_TxFrequencyHoppingRRC_Inactive_r18__switchTimeBetweenActiveBWP_FrequencyHop_r18; +typedef enum PosSRS_TxFrequencyHoppingRRC_Inactive_r18__numOfOverlappingPRB_r18 { + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__numOfOverlappingPRB_r18_n0 = 0, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__numOfOverlappingPRB_r18_n1 = 1, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__numOfOverlappingPRB_r18_n2 = 2, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__numOfOverlappingPRB_r18_n4 = 3 +} e_PosSRS_TxFrequencyHoppingRRC_Inactive_r18__numOfOverlappingPRB_r18; +typedef enum PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_ResourcePeriodic_r18 { + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_ResourcePeriodic_r18_n1 = 0, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_ResourcePeriodic_r18_n2 = 1, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_ResourcePeriodic_r18_n4 = 2, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_ResourcePeriodic_r18_n8 = 3, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_ResourcePeriodic_r18_n16 = 4, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_ResourcePeriodic_r18_n32 = 5, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_ResourcePeriodic_r18_n64 = 6 +} e_PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_ResourcePeriodic_r18; +typedef enum PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_ResourceSemipersistent_r18 { + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_ResourceSemipersistent_r18_n0 = 0, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_ResourceSemipersistent_r18_n1 = 1, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_ResourceSemipersistent_r18_n2 = 2, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_ResourceSemipersistent_r18_n4 = 3, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_ResourceSemipersistent_r18_n8 = 4, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_ResourceSemipersistent_r18_n16 = 5, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_ResourceSemipersistent_r18_n32 = 6, + PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_ResourceSemipersistent_r18_n64 = 7 +} e_PosSRS_TxFrequencyHoppingRRC_Inactive_r18__maximumSRS_ResourceSemipersistent_r18; + +/* PosSRS-TxFrequencyHoppingRRC-Inactive-r18 */ +typedef struct PosSRS_TxFrequencyHoppingRRC_Inactive_r18 { + long *maximumSRS_BandwidthAcrossAllHopsFR1_r18; /* OPTIONAL */ + long *maximumSRS_BandwidthAcrossAllHopsFR2_r18; /* OPTIONAL */ + long *maximumTxFH_Hops_r18; /* OPTIONAL */ + long *rf_TxRetunTimeFR1_r18; /* OPTIONAL */ + long *rf_TxRetunTimeFR2_r18; /* OPTIONAL */ + long *switchTimeBetweenActiveBWP_FrequencyHop_r18; /* OPTIONAL */ + long *numOfOverlappingPRB_r18; /* OPTIONAL */ + long *maximumSRS_ResourcePeriodic_r18; /* OPTIONAL */ + long *maximumSRS_ResourceSemipersistent_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PosSRS_TxFrequencyHoppingRRC_Inactive_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR1_r18_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumSRS_BandwidthAcrossAllHopsFR2_r18_7; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumTxFH_Hops_r18_11; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_rf_TxRetunTimeFR1_r18_17; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_rf_TxRetunTimeFR2_r18_21; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_switchTimeBetweenActiveBWP_FrequencyHop_r18_25; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_numOfOverlappingPRB_r18_31; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumSRS_ResourcePeriodic_r18_36; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maximumSRS_ResourceSemipersistent_r18_44; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_PosSRS_TxFrequencyHoppingRRC_Inactive_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_PosSRS_TxFrequencyHoppingRRC_Inactive_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_PosSRS_TxFrequencyHoppingRRC_Inactive_r18_1[9]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PosSRS_TxFrequencyHoppingRRC_Inactive_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/PositioningModes.c b/asn.1/lpp_generated/PositioningModes.c new file mode 100644 index 00000000..60fe4ab2 --- /dev/null +++ b/asn.1/lpp_generated/PositioningModes.c @@ -0,0 +1,104 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PositioningModes.h" + +static int +memb_posModes_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_posModes_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_PositioningModes_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PositioningModes, posModes), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_posModes_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_posModes_constraint_1 + }, + 0, 0, /* No default value */ + "posModes" + }, +}; +static const ber_tlv_tag_t asn_DEF_PositioningModes_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PositioningModes_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* posModes */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PositioningModes_specs_1 = { + sizeof(struct PositioningModes), + offsetof(struct PositioningModes, _asn_ctx), + asn_MAP_PositioningModes_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PositioningModes = { + "PositioningModes", + "PositioningModes", + &asn_OP_SEQUENCE, + asn_DEF_PositioningModes_tags_1, + sizeof(asn_DEF_PositioningModes_tags_1) + /sizeof(asn_DEF_PositioningModes_tags_1[0]), /* 1 */ + asn_DEF_PositioningModes_tags_1, /* Same as above */ + sizeof(asn_DEF_PositioningModes_tags_1) + /sizeof(asn_DEF_PositioningModes_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PositioningModes_1, + 1, /* Elements count */ + &asn_SPC_PositioningModes_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/PositioningModes.h b/asn.1/lpp_generated/PositioningModes.h similarity index 81% rename from asn.1/generated/PositioningModes.h rename to asn.1/lpp_generated/PositioningModes.h index 2cabd383..282c6256 100644 --- a/asn.1/generated/PositioningModes.h +++ b/asn.1/lpp_generated/PositioningModes.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _PositioningModes_H_ diff --git a/asn.1/lpp_generated/PressureValidityArea-v1520.c b/asn.1/lpp_generated/PressureValidityArea-v1520.c new file mode 100644 index 00000000..006ccb14 --- /dev/null +++ b/asn.1/lpp_generated/PressureValidityArea-v1520.c @@ -0,0 +1,166 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PressureValidityArea-v1520.h" + +static int +memb_validityAreaWidth_v1520_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 128L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_validityAreaHeight_v1520_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 128L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_validityAreaWidth_v1520_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 128 } /* (1..128) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_validityAreaHeight_v1520_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 128 } /* (1..128) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_PressureValidityArea_v1520_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PressureValidityArea_v1520, centerPoint_v1520), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ellipsoid_Point, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "centerPoint-v1520" + }, + { ATF_NOFLAGS, 0, offsetof(struct PressureValidityArea_v1520, validityAreaWidth_v1520), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_validityAreaWidth_v1520_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_validityAreaWidth_v1520_constraint_1 + }, + 0, 0, /* No default value */ + "validityAreaWidth-v1520" + }, + { ATF_NOFLAGS, 0, offsetof(struct PressureValidityArea_v1520, validityAreaHeight_v1520), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_validityAreaHeight_v1520_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_validityAreaHeight_v1520_constraint_1 + }, + 0, 0, /* No default value */ + "validityAreaHeight-v1520" + }, +}; +static const ber_tlv_tag_t asn_DEF_PressureValidityArea_v1520_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PressureValidityArea_v1520_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* centerPoint-v1520 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* validityAreaWidth-v1520 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* validityAreaHeight-v1520 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PressureValidityArea_v1520_specs_1 = { + sizeof(struct PressureValidityArea_v1520), + offsetof(struct PressureValidityArea_v1520, _asn_ctx), + asn_MAP_PressureValidityArea_v1520_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PressureValidityArea_v1520 = { + "PressureValidityArea-v1520", + "PressureValidityArea-v1520", + &asn_OP_SEQUENCE, + asn_DEF_PressureValidityArea_v1520_tags_1, + sizeof(asn_DEF_PressureValidityArea_v1520_tags_1) + /sizeof(asn_DEF_PressureValidityArea_v1520_tags_1[0]), /* 1 */ + asn_DEF_PressureValidityArea_v1520_tags_1, /* Same as above */ + sizeof(asn_DEF_PressureValidityArea_v1520_tags_1) + /sizeof(asn_DEF_PressureValidityArea_v1520_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PressureValidityArea_v1520_1, + 3, /* Elements count */ + &asn_SPC_PressureValidityArea_v1520_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/PressureValidityArea-v1520.h b/asn.1/lpp_generated/PressureValidityArea-v1520.h similarity index 81% rename from asn.1/generated/PressureValidityArea-v1520.h rename to asn.1/lpp_generated/PressureValidityArea-v1520.h index f38aa909..69355976 100644 --- a/asn.1/generated/PressureValidityArea-v1520.h +++ b/asn.1/lpp_generated/PressureValidityArea-v1520.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _PressureValidityArea_v1520_H_ diff --git a/asn.1/lpp_generated/PressureValidityPeriod-v1520.c b/asn.1/lpp_generated/PressureValidityPeriod-v1520.c new file mode 100644 index 00000000..b479d217 --- /dev/null +++ b/asn.1/lpp_generated/PressureValidityPeriod-v1520.c @@ -0,0 +1,168 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "PressureValidityPeriod-v1520.h" + +static int +memb_beginTimeAlt_v1520_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2881L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_duration_v1520_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 2881L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_beginTimeAlt_v1520_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 2881 } /* (0..2881) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_duration_v1520_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 1, 2881 } /* (1..2881) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_PressureValidityPeriod_v1520_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PressureValidityPeriod_v1520, beginTime_v1520), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SystemTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "beginTime-v1520" + }, + { ATF_POINTER, 1, offsetof(struct PressureValidityPeriod_v1520, beginTimeAlt_v1520), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_beginTimeAlt_v1520_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_beginTimeAlt_v1520_constraint_1 + }, + 0, 0, /* No default value */ + "beginTimeAlt-v1520" + }, + { ATF_NOFLAGS, 0, offsetof(struct PressureValidityPeriod_v1520, duration_v1520), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_duration_v1520_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_duration_v1520_constraint_1 + }, + 0, 0, /* No default value */ + "duration-v1520" + }, +}; +static const int asn_MAP_PressureValidityPeriod_v1520_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_PressureValidityPeriod_v1520_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PressureValidityPeriod_v1520_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* beginTime-v1520 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* beginTimeAlt-v1520 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* duration-v1520 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PressureValidityPeriod_v1520_specs_1 = { + sizeof(struct PressureValidityPeriod_v1520), + offsetof(struct PressureValidityPeriod_v1520, _asn_ctx), + asn_MAP_PressureValidityPeriod_v1520_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_PressureValidityPeriod_v1520_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PressureValidityPeriod_v1520 = { + "PressureValidityPeriod-v1520", + "PressureValidityPeriod-v1520", + &asn_OP_SEQUENCE, + asn_DEF_PressureValidityPeriod_v1520_tags_1, + sizeof(asn_DEF_PressureValidityPeriod_v1520_tags_1) + /sizeof(asn_DEF_PressureValidityPeriod_v1520_tags_1[0]), /* 1 */ + asn_DEF_PressureValidityPeriod_v1520_tags_1, /* Same as above */ + sizeof(asn_DEF_PressureValidityPeriod_v1520_tags_1) + /sizeof(asn_DEF_PressureValidityPeriod_v1520_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PressureValidityPeriod_v1520_1, + 3, /* Elements count */ + &asn_SPC_PressureValidityPeriod_v1520_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/PressureValidityPeriod-v1520.h b/asn.1/lpp_generated/PressureValidityPeriod-v1520.h similarity index 78% rename from asn.1/generated/PressureValidityPeriod-v1520.h rename to asn.1/lpp_generated/PressureValidityPeriod-v1520.h index d6c57803..20b15f19 100644 --- a/asn.1/generated/PressureValidityPeriod-v1520.h +++ b/asn.1/lpp_generated/PressureValidityPeriod-v1520.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _PressureValidityPeriod_v1520_H_ @@ -23,7 +23,7 @@ extern "C" { /* PressureValidityPeriod-v1520 */ typedef struct PressureValidityPeriod_v1520 { GNSS_SystemTime_t beginTime_v1520; - long *beginTimeAlt_v1520 /* OPTIONAL */; + long *beginTimeAlt_v1520; /* OPTIONAL */ long duration_v1520; /* * This type is extensible, diff --git a/asn.1/lpp_generated/ProvideAssistanceData-r9-IEs.c b/asn.1/lpp_generated/ProvideAssistanceData-r9-IEs.c new file mode 100644 index 00000000..f37131d2 --- /dev/null +++ b/asn.1/lpp_generated/ProvideAssistanceData-r9-IEs.c @@ -0,0 +1,442 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ProvideAssistanceData-r9-IEs.h" + +#include "CommonIEsProvideAssistanceData.h" +#include "A-GNSS-ProvideAssistanceData.h" +#include "OTDOA-ProvideAssistanceData.h" +#include "EPDU-Sequence.h" +#include "Sensor-ProvideAssistanceData-r14.h" +#include "TBS-ProvideAssistanceData-r14.h" +#include "WLAN-ProvideAssistanceData-r14.h" +#include "NR-Multi-RTT-ProvideAssistanceData-r16.h" +#include "NR-DL-AoD-ProvideAssistanceData-r16.h" +#include "NR-DL-TDOA-ProvideAssistanceData-r16.h" +#include "BT-ProvideAssistanceData-r18.h" +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 3, offsetof(struct ProvideAssistanceData_r9_IEs__ext1, sensor_ProvideAssistanceData_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Sensor_ProvideAssistanceData_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensor-ProvideAssistanceData-r14" + }, + { ATF_POINTER, 2, offsetof(struct ProvideAssistanceData_r9_IEs__ext1, tbs_ProvideAssistanceData_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TBS_ProvideAssistanceData_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tbs-ProvideAssistanceData-r14" + }, + { ATF_POINTER, 1, offsetof(struct ProvideAssistanceData_r9_IEs__ext1, wlan_ProvideAssistanceData_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WLAN_ProvideAssistanceData_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wlan-ProvideAssistanceData-r14" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-ProvideAssistanceData-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tbs-ProvideAssistanceData-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* wlan-ProvideAssistanceData-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct ProvideAssistanceData_r9_IEs__ext1), + offsetof(struct ProvideAssistanceData_r9_IEs__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 3, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 3, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_11[] = { + { ATF_POINTER, 3, offsetof(struct ProvideAssistanceData_r9_IEs__ext2, nr_Multi_RTT_ProvideAssistanceData_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_Multi_RTT_ProvideAssistanceData_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-Multi-RTT-ProvideAssistanceData-r16" + }, + { ATF_POINTER, 2, offsetof(struct ProvideAssistanceData_r9_IEs__ext2, nr_DL_AoD_ProvideAssistanceData_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_AoD_ProvideAssistanceData_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-ProvideAssistanceData-r16" + }, + { ATF_POINTER, 1, offsetof(struct ProvideAssistanceData_r9_IEs__ext2, nr_DL_TDOA_ProvideAssistanceData_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_TDOA_ProvideAssistanceData_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-ProvideAssistanceData-r16" + }, +}; +static const int asn_MAP_ext2_oms_11[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-Multi-RTT-ProvideAssistanceData-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-AoD-ProvideAssistanceData-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-DL-TDOA-ProvideAssistanceData-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_11 = { + sizeof(struct ProvideAssistanceData_r9_IEs__ext2), + offsetof(struct ProvideAssistanceData_r9_IEs__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_11, + 3, /* Count of tags in the map */ + asn_MAP_ext2_oms_11, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_11 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_11, + sizeof(asn_DEF_ext2_tags_11) + /sizeof(asn_DEF_ext2_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_11, /* Same as above */ + sizeof(asn_DEF_ext2_tags_11) + /sizeof(asn_DEF_ext2_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_11, + 3, /* Elements count */ + &asn_SPC_ext2_specs_11 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_15[] = { + { ATF_POINTER, 1, offsetof(struct ProvideAssistanceData_r9_IEs__ext3, bt_ProvideAssistanceData_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BT_ProvideAssistanceData_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-ProvideAssistanceData-r18" + }, +}; +static const int asn_MAP_ext3_oms_15[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_15[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* bt-ProvideAssistanceData-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_15 = { + sizeof(struct ProvideAssistanceData_r9_IEs__ext3), + offsetof(struct ProvideAssistanceData_r9_IEs__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_15, + 1, /* Count of tags in the map */ + asn_MAP_ext3_oms_15, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_15 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_15, + sizeof(asn_DEF_ext3_tags_15) + /sizeof(asn_DEF_ext3_tags_15[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_15, /* Same as above */ + sizeof(asn_DEF_ext3_tags_15) + /sizeof(asn_DEF_ext3_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_15, + 1, /* Elements count */ + &asn_SPC_ext3_specs_15 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ProvideAssistanceData_r9_IEs_1[] = { + { ATF_POINTER, 7, offsetof(struct ProvideAssistanceData_r9_IEs, commonIEsProvideAssistanceData), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CommonIEsProvideAssistanceData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "commonIEsProvideAssistanceData" + }, + { ATF_POINTER, 6, offsetof(struct ProvideAssistanceData_r9_IEs, a_gnss_ProvideAssistanceData), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_A_GNSS_ProvideAssistanceData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "a-gnss-ProvideAssistanceData" + }, + { ATF_POINTER, 5, offsetof(struct ProvideAssistanceData_r9_IEs, otdoa_ProvideAssistanceData), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OTDOA_ProvideAssistanceData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "otdoa-ProvideAssistanceData" + }, + { ATF_POINTER, 4, offsetof(struct ProvideAssistanceData_r9_IEs, epdu_Provide_Assistance_Data), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EPDU_Sequence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epdu-Provide-Assistance-Data" + }, + { ATF_POINTER, 3, offsetof(struct ProvideAssistanceData_r9_IEs, ext1), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 2, offsetof(struct ProvideAssistanceData_r9_IEs, ext2), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext2_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 1, offsetof(struct ProvideAssistanceData_r9_IEs, ext3), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext3_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, +}; +static const int asn_MAP_ProvideAssistanceData_r9_IEs_oms_1[] = { 0, 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_ProvideAssistanceData_r9_IEs_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ProvideAssistanceData_r9_IEs_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* commonIEsProvideAssistanceData */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* a-gnss-ProvideAssistanceData */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* otdoa-ProvideAssistanceData */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* epdu-Provide-Assistance-Data */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext3 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ProvideAssistanceData_r9_IEs_specs_1 = { + sizeof(struct ProvideAssistanceData_r9_IEs), + offsetof(struct ProvideAssistanceData_r9_IEs, _asn_ctx), + asn_MAP_ProvideAssistanceData_r9_IEs_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_ProvideAssistanceData_r9_IEs_oms_1, /* Optional members */ + 4, 3, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ProvideAssistanceData_r9_IEs = { + "ProvideAssistanceData-r9-IEs", + "ProvideAssistanceData-r9-IEs", + &asn_OP_SEQUENCE, + asn_DEF_ProvideAssistanceData_r9_IEs_tags_1, + sizeof(asn_DEF_ProvideAssistanceData_r9_IEs_tags_1) + /sizeof(asn_DEF_ProvideAssistanceData_r9_IEs_tags_1[0]), /* 1 */ + asn_DEF_ProvideAssistanceData_r9_IEs_tags_1, /* Same as above */ + sizeof(asn_DEF_ProvideAssistanceData_r9_IEs_tags_1) + /sizeof(asn_DEF_ProvideAssistanceData_r9_IEs_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ProvideAssistanceData_r9_IEs_1, + 7, /* Elements count */ + &asn_SPC_ProvideAssistanceData_r9_IEs_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/ProvideAssistanceData-r9-IEs.h b/asn.1/lpp_generated/ProvideAssistanceData-r9-IEs.h new file mode 100644 index 00000000..aa9fc1db --- /dev/null +++ b/asn.1/lpp_generated/ProvideAssistanceData-r9-IEs.h @@ -0,0 +1,81 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _ProvideAssistanceData_r9_IEs_H_ +#define _ProvideAssistanceData_r9_IEs_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CommonIEsProvideAssistanceData; +struct A_GNSS_ProvideAssistanceData; +struct OTDOA_ProvideAssistanceData; +struct EPDU_Sequence; +struct Sensor_ProvideAssistanceData_r14; +struct TBS_ProvideAssistanceData_r14; +struct WLAN_ProvideAssistanceData_r14; +struct NR_Multi_RTT_ProvideAssistanceData_r16; +struct NR_DL_AoD_ProvideAssistanceData_r16; +struct NR_DL_TDOA_ProvideAssistanceData_r16; +struct BT_ProvideAssistanceData_r18; + +/* ProvideAssistanceData-r9-IEs */ +typedef struct ProvideAssistanceData_r9_IEs { + struct CommonIEsProvideAssistanceData *commonIEsProvideAssistanceData; /* OPTIONAL */ + struct A_GNSS_ProvideAssistanceData *a_gnss_ProvideAssistanceData; /* OPTIONAL */ + struct OTDOA_ProvideAssistanceData *otdoa_ProvideAssistanceData; /* OPTIONAL */ + struct EPDU_Sequence *epdu_Provide_Assistance_Data; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct ProvideAssistanceData_r9_IEs__ext1 { + struct Sensor_ProvideAssistanceData_r14 *sensor_ProvideAssistanceData_r14; /* OPTIONAL */ + struct TBS_ProvideAssistanceData_r14 *tbs_ProvideAssistanceData_r14; /* OPTIONAL */ + struct WLAN_ProvideAssistanceData_r14 *wlan_ProvideAssistanceData_r14; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct ProvideAssistanceData_r9_IEs__ext2 { + struct NR_Multi_RTT_ProvideAssistanceData_r16 *nr_Multi_RTT_ProvideAssistanceData_r16; /* OPTIONAL */ + struct NR_DL_AoD_ProvideAssistanceData_r16 *nr_DL_AoD_ProvideAssistanceData_r16; /* OPTIONAL */ + struct NR_DL_TDOA_ProvideAssistanceData_r16 *nr_DL_TDOA_ProvideAssistanceData_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct ProvideAssistanceData_r9_IEs__ext3 { + struct BT_ProvideAssistanceData_r18 *bt_ProvideAssistanceData_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ProvideAssistanceData_r9_IEs_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ProvideAssistanceData_r9_IEs; +extern asn_SEQUENCE_specifics_t asn_SPC_ProvideAssistanceData_r9_IEs_specs_1; +extern asn_TYPE_member_t asn_MBR_ProvideAssistanceData_r9_IEs_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ProvideAssistanceData_r9_IEs_H_ */ +#include diff --git a/asn.1/lpp_generated/ProvideAssistanceData.c b/asn.1/lpp_generated/ProvideAssistanceData.c new file mode 100644 index 00000000..a5167e30 --- /dev/null +++ b/asn.1/lpp_generated/ProvideAssistanceData.c @@ -0,0 +1,298 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ProvideAssistanceData.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_c1_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_criticalExtensions_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_c1_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct ProvideAssistanceData__criticalExtensions__c1, choice.provideAssistanceData_r9), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ProvideAssistanceData_r9_IEs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "provideAssistanceData-r9" + }, + { ATF_NOFLAGS, 0, offsetof(struct ProvideAssistanceData__criticalExtensions__c1, choice.spare3), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare3" + }, + { ATF_NOFLAGS, 0, offsetof(struct ProvideAssistanceData__criticalExtensions__c1, choice.spare2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare2" + }, + { ATF_NOFLAGS, 0, offsetof(struct ProvideAssistanceData__criticalExtensions__c1, choice.spare1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare1" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_c1_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* provideAssistanceData-r9 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* spare3 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* spare2 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* spare1 */ +}; +static asn_CHOICE_specifics_t asn_SPC_c1_specs_3 = { + sizeof(struct ProvideAssistanceData__criticalExtensions__c1), + offsetof(struct ProvideAssistanceData__criticalExtensions__c1, _asn_ctx), + offsetof(struct ProvideAssistanceData__criticalExtensions__c1, present), + sizeof(((struct ProvideAssistanceData__criticalExtensions__c1 *)0)->present), + asn_MAP_c1_tag2el_3, + 4, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_c1_3 = { + "c1", + "c1", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_c1_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_c1_3, + 4, /* Elements count */ + &asn_SPC_c1_specs_3 /* Additional specs */ +}; + +static const ber_tlv_tag_t asn_DEF_criticalExtensionsFuture_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SEQUENCE_specifics_t asn_SPC_criticalExtensionsFuture_specs_8 = { + sizeof(struct ProvideAssistanceData__criticalExtensions__criticalExtensionsFuture), + offsetof(struct ProvideAssistanceData__criticalExtensions__criticalExtensionsFuture, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_criticalExtensionsFuture_8 = { + "criticalExtensionsFuture", + "criticalExtensionsFuture", + &asn_OP_SEQUENCE, + asn_DEF_criticalExtensionsFuture_tags_8, + sizeof(asn_DEF_criticalExtensionsFuture_tags_8) + /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]) - 1, /* 1 */ + asn_DEF_criticalExtensionsFuture_tags_8, /* Same as above */ + sizeof(asn_DEF_criticalExtensionsFuture_tags_8) + /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_criticalExtensionsFuture_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_criticalExtensions_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct ProvideAssistanceData__criticalExtensions, choice.c1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_c1_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "c1" + }, + { ATF_NOFLAGS, 0, offsetof(struct ProvideAssistanceData__criticalExtensions, choice.criticalExtensionsFuture), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_criticalExtensionsFuture_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "criticalExtensionsFuture" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_criticalExtensions_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* c1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* criticalExtensionsFuture */ +}; +static asn_CHOICE_specifics_t asn_SPC_criticalExtensions_specs_2 = { + sizeof(struct ProvideAssistanceData__criticalExtensions), + offsetof(struct ProvideAssistanceData__criticalExtensions, _asn_ctx), + offsetof(struct ProvideAssistanceData__criticalExtensions, present), + sizeof(((struct ProvideAssistanceData__criticalExtensions *)0)->present), + asn_MAP_criticalExtensions_tag2el_2, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_criticalExtensions_2 = { + "criticalExtensions", + "criticalExtensions", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_criticalExtensions_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_criticalExtensions_2, + 2, /* Elements count */ + &asn_SPC_criticalExtensions_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ProvideAssistanceData_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ProvideAssistanceData, criticalExtensions), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_criticalExtensions_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "criticalExtensions" + }, +}; +static const ber_tlv_tag_t asn_DEF_ProvideAssistanceData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ProvideAssistanceData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* criticalExtensions */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ProvideAssistanceData_specs_1 = { + sizeof(struct ProvideAssistanceData), + offsetof(struct ProvideAssistanceData, _asn_ctx), + asn_MAP_ProvideAssistanceData_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ProvideAssistanceData = { + "ProvideAssistanceData", + "ProvideAssistanceData", + &asn_OP_SEQUENCE, + asn_DEF_ProvideAssistanceData_tags_1, + sizeof(asn_DEF_ProvideAssistanceData_tags_1) + /sizeof(asn_DEF_ProvideAssistanceData_tags_1[0]), /* 1 */ + asn_DEF_ProvideAssistanceData_tags_1, /* Same as above */ + sizeof(asn_DEF_ProvideAssistanceData_tags_1) + /sizeof(asn_DEF_ProvideAssistanceData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ProvideAssistanceData_1, + 1, /* Elements count */ + &asn_SPC_ProvideAssistanceData_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ProvideAssistanceData.h b/asn.1/lpp_generated/ProvideAssistanceData.h similarity index 91% rename from asn.1/generated/ProvideAssistanceData.h rename to asn.1/lpp_generated/ProvideAssistanceData.h index 104d1c3b..b59c6e3f 100644 --- a/asn.1/generated/ProvideAssistanceData.h +++ b/asn.1/lpp_generated/ProvideAssistanceData.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _ProvideAssistanceData_H_ diff --git a/asn.1/lpp_generated/ProvideCapabilities-r9-IEs.c b/asn.1/lpp_generated/ProvideCapabilities-r9-IEs.c new file mode 100644 index 00000000..33226ecb --- /dev/null +++ b/asn.1/lpp_generated/ProvideCapabilities-r9-IEs.c @@ -0,0 +1,438 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ProvideCapabilities-r9-IEs.h" + +#include "CommonIEsProvideCapabilities.h" +#include "A-GNSS-ProvideCapabilities.h" +#include "OTDOA-ProvideCapabilities.h" +#include "ECID-ProvideCapabilities.h" +#include "EPDU-Sequence.h" +#include "Sensor-ProvideCapabilities-r13.h" +#include "TBS-ProvideCapabilities-r13.h" +#include "WLAN-ProvideCapabilities-r13.h" +#include "BT-ProvideCapabilities-r13.h" +#include "NR-ECID-ProvideCapabilities-r16.h" +#include "NR-Multi-RTT-ProvideCapabilities-r16.h" +#include "NR-DL-AoD-ProvideCapabilities-r16.h" +#include "NR-DL-TDOA-ProvideCapabilities-r16.h" +#include "NR-UL-ProvideCapabilities-r16.h" +static asn_TYPE_member_t asn_MBR_ext1_8[] = { + { ATF_POINTER, 4, offsetof(struct ProvideCapabilities_r9_IEs__ext1, sensor_ProvideCapabilities_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Sensor_ProvideCapabilities_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensor-ProvideCapabilities-r13" + }, + { ATF_POINTER, 3, offsetof(struct ProvideCapabilities_r9_IEs__ext1, tbs_ProvideCapabilities_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TBS_ProvideCapabilities_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tbs-ProvideCapabilities-r13" + }, + { ATF_POINTER, 2, offsetof(struct ProvideCapabilities_r9_IEs__ext1, wlan_ProvideCapabilities_r13), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WLAN_ProvideCapabilities_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wlan-ProvideCapabilities-r13" + }, + { ATF_POINTER, 1, offsetof(struct ProvideCapabilities_r9_IEs__ext1, bt_ProvideCapabilities_r13), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BT_ProvideCapabilities_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-ProvideCapabilities-r13" + }, +}; +static const int asn_MAP_ext1_oms_8[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-ProvideCapabilities-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tbs-ProvideCapabilities-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* wlan-ProvideCapabilities-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* bt-ProvideCapabilities-r13 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { + sizeof(struct ProvideCapabilities_r9_IEs__ext1), + offsetof(struct ProvideCapabilities_r9_IEs__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_8, + 4, /* Count of tags in the map */ + asn_MAP_ext1_oms_8, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_8 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_8, + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_8, /* Same as above */ + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_8, + 4, /* Elements count */ + &asn_SPC_ext1_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_13[] = { + { ATF_POINTER, 5, offsetof(struct ProvideCapabilities_r9_IEs__ext2, nr_ECID_ProvideCapabilities_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_ECID_ProvideCapabilities_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ECID-ProvideCapabilities-r16" + }, + { ATF_POINTER, 4, offsetof(struct ProvideCapabilities_r9_IEs__ext2, nr_Multi_RTT_ProvideCapabilities_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_Multi_RTT_ProvideCapabilities_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-Multi-RTT-ProvideCapabilities-r16" + }, + { ATF_POINTER, 3, offsetof(struct ProvideCapabilities_r9_IEs__ext2, nr_DL_AoD_ProvideCapabilities_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_AoD_ProvideCapabilities_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-ProvideCapabilities-r16" + }, + { ATF_POINTER, 2, offsetof(struct ProvideCapabilities_r9_IEs__ext2, nr_DL_TDOA_ProvideCapabilities_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_TDOA_ProvideCapabilities_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-ProvideCapabilities-r16" + }, + { ATF_POINTER, 1, offsetof(struct ProvideCapabilities_r9_IEs__ext2, nr_UL_ProvideCapabilities_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_UL_ProvideCapabilities_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UL-ProvideCapabilities-r16" + }, +}; +static const int asn_MAP_ext2_oms_13[] = { 0, 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_13[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-ECID-ProvideCapabilities-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-Multi-RTT-ProvideCapabilities-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-AoD-ProvideCapabilities-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-DL-TDOA-ProvideCapabilities-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* nr-UL-ProvideCapabilities-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_13 = { + sizeof(struct ProvideCapabilities_r9_IEs__ext2), + offsetof(struct ProvideCapabilities_r9_IEs__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_13, + 5, /* Count of tags in the map */ + asn_MAP_ext2_oms_13, /* Optional members */ + 5, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_13 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_13, + sizeof(asn_DEF_ext2_tags_13) + /sizeof(asn_DEF_ext2_tags_13[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_13, /* Same as above */ + sizeof(asn_DEF_ext2_tags_13) + /sizeof(asn_DEF_ext2_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_13, + 5, /* Elements count */ + &asn_SPC_ext2_specs_13 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ProvideCapabilities_r9_IEs_1[] = { + { ATF_POINTER, 7, offsetof(struct ProvideCapabilities_r9_IEs, commonIEsProvideCapabilities), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CommonIEsProvideCapabilities, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "commonIEsProvideCapabilities" + }, + { ATF_POINTER, 6, offsetof(struct ProvideCapabilities_r9_IEs, a_gnss_ProvideCapabilities), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_A_GNSS_ProvideCapabilities, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "a-gnss-ProvideCapabilities" + }, + { ATF_POINTER, 5, offsetof(struct ProvideCapabilities_r9_IEs, otdoa_ProvideCapabilities), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OTDOA_ProvideCapabilities, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "otdoa-ProvideCapabilities" + }, + { ATF_POINTER, 4, offsetof(struct ProvideCapabilities_r9_IEs, ecid_ProvideCapabilities), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ECID_ProvideCapabilities, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ecid-ProvideCapabilities" + }, + { ATF_POINTER, 3, offsetof(struct ProvideCapabilities_r9_IEs, epdu_ProvideCapabilities), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EPDU_Sequence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epdu-ProvideCapabilities" + }, + { ATF_POINTER, 2, offsetof(struct ProvideCapabilities_r9_IEs, ext1), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext1_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct ProvideCapabilities_r9_IEs, ext2), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext2_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_ProvideCapabilities_r9_IEs_oms_1[] = { 0, 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_ProvideCapabilities_r9_IEs_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ProvideCapabilities_r9_IEs_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* commonIEsProvideCapabilities */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* a-gnss-ProvideCapabilities */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* otdoa-ProvideCapabilities */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ecid-ProvideCapabilities */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* epdu-ProvideCapabilities */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ProvideCapabilities_r9_IEs_specs_1 = { + sizeof(struct ProvideCapabilities_r9_IEs), + offsetof(struct ProvideCapabilities_r9_IEs, _asn_ctx), + asn_MAP_ProvideCapabilities_r9_IEs_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_ProvideCapabilities_r9_IEs_oms_1, /* Optional members */ + 5, 2, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ProvideCapabilities_r9_IEs = { + "ProvideCapabilities-r9-IEs", + "ProvideCapabilities-r9-IEs", + &asn_OP_SEQUENCE, + asn_DEF_ProvideCapabilities_r9_IEs_tags_1, + sizeof(asn_DEF_ProvideCapabilities_r9_IEs_tags_1) + /sizeof(asn_DEF_ProvideCapabilities_r9_IEs_tags_1[0]), /* 1 */ + asn_DEF_ProvideCapabilities_r9_IEs_tags_1, /* Same as above */ + sizeof(asn_DEF_ProvideCapabilities_r9_IEs_tags_1) + /sizeof(asn_DEF_ProvideCapabilities_r9_IEs_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ProvideCapabilities_r9_IEs_1, + 7, /* Elements count */ + &asn_SPC_ProvideCapabilities_r9_IEs_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/ProvideCapabilities-r9-IEs.h b/asn.1/lpp_generated/ProvideCapabilities-r9-IEs.h new file mode 100644 index 00000000..c9a306ac --- /dev/null +++ b/asn.1/lpp_generated/ProvideCapabilities-r9-IEs.h @@ -0,0 +1,82 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _ProvideCapabilities_r9_IEs_H_ +#define _ProvideCapabilities_r9_IEs_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CommonIEsProvideCapabilities; +struct A_GNSS_ProvideCapabilities; +struct OTDOA_ProvideCapabilities; +struct ECID_ProvideCapabilities; +struct EPDU_Sequence; +struct Sensor_ProvideCapabilities_r13; +struct TBS_ProvideCapabilities_r13; +struct WLAN_ProvideCapabilities_r13; +struct BT_ProvideCapabilities_r13; +struct NR_ECID_ProvideCapabilities_r16; +struct NR_Multi_RTT_ProvideCapabilities_r16; +struct NR_DL_AoD_ProvideCapabilities_r16; +struct NR_DL_TDOA_ProvideCapabilities_r16; +struct NR_UL_ProvideCapabilities_r16; + +/* ProvideCapabilities-r9-IEs */ +typedef struct ProvideCapabilities_r9_IEs { + struct CommonIEsProvideCapabilities *commonIEsProvideCapabilities; /* OPTIONAL */ + struct A_GNSS_ProvideCapabilities *a_gnss_ProvideCapabilities; /* OPTIONAL */ + struct OTDOA_ProvideCapabilities *otdoa_ProvideCapabilities; /* OPTIONAL */ + struct ECID_ProvideCapabilities *ecid_ProvideCapabilities; /* OPTIONAL */ + struct EPDU_Sequence *epdu_ProvideCapabilities; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct ProvideCapabilities_r9_IEs__ext1 { + struct Sensor_ProvideCapabilities_r13 *sensor_ProvideCapabilities_r13; /* OPTIONAL */ + struct TBS_ProvideCapabilities_r13 *tbs_ProvideCapabilities_r13; /* OPTIONAL */ + struct WLAN_ProvideCapabilities_r13 *wlan_ProvideCapabilities_r13; /* OPTIONAL */ + struct BT_ProvideCapabilities_r13 *bt_ProvideCapabilities_r13; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct ProvideCapabilities_r9_IEs__ext2 { + struct NR_ECID_ProvideCapabilities_r16 *nr_ECID_ProvideCapabilities_r16; /* OPTIONAL */ + struct NR_Multi_RTT_ProvideCapabilities_r16 *nr_Multi_RTT_ProvideCapabilities_r16; /* OPTIONAL */ + struct NR_DL_AoD_ProvideCapabilities_r16 *nr_DL_AoD_ProvideCapabilities_r16; /* OPTIONAL */ + struct NR_DL_TDOA_ProvideCapabilities_r16 *nr_DL_TDOA_ProvideCapabilities_r16; /* OPTIONAL */ + struct NR_UL_ProvideCapabilities_r16 *nr_UL_ProvideCapabilities_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ProvideCapabilities_r9_IEs_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ProvideCapabilities_r9_IEs; +extern asn_SEQUENCE_specifics_t asn_SPC_ProvideCapabilities_r9_IEs_specs_1; +extern asn_TYPE_member_t asn_MBR_ProvideCapabilities_r9_IEs_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ProvideCapabilities_r9_IEs_H_ */ +#include diff --git a/asn.1/lpp_generated/ProvideCapabilities.c b/asn.1/lpp_generated/ProvideCapabilities.c new file mode 100644 index 00000000..6336e658 --- /dev/null +++ b/asn.1/lpp_generated/ProvideCapabilities.c @@ -0,0 +1,298 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ProvideCapabilities.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_c1_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_criticalExtensions_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_c1_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct ProvideCapabilities__criticalExtensions__c1, choice.provideCapabilities_r9), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ProvideCapabilities_r9_IEs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "provideCapabilities-r9" + }, + { ATF_NOFLAGS, 0, offsetof(struct ProvideCapabilities__criticalExtensions__c1, choice.spare3), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare3" + }, + { ATF_NOFLAGS, 0, offsetof(struct ProvideCapabilities__criticalExtensions__c1, choice.spare2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare2" + }, + { ATF_NOFLAGS, 0, offsetof(struct ProvideCapabilities__criticalExtensions__c1, choice.spare1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare1" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_c1_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* provideCapabilities-r9 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* spare3 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* spare2 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* spare1 */ +}; +static asn_CHOICE_specifics_t asn_SPC_c1_specs_3 = { + sizeof(struct ProvideCapabilities__criticalExtensions__c1), + offsetof(struct ProvideCapabilities__criticalExtensions__c1, _asn_ctx), + offsetof(struct ProvideCapabilities__criticalExtensions__c1, present), + sizeof(((struct ProvideCapabilities__criticalExtensions__c1 *)0)->present), + asn_MAP_c1_tag2el_3, + 4, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_c1_3 = { + "c1", + "c1", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_c1_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_c1_3, + 4, /* Elements count */ + &asn_SPC_c1_specs_3 /* Additional specs */ +}; + +static const ber_tlv_tag_t asn_DEF_criticalExtensionsFuture_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SEQUENCE_specifics_t asn_SPC_criticalExtensionsFuture_specs_8 = { + sizeof(struct ProvideCapabilities__criticalExtensions__criticalExtensionsFuture), + offsetof(struct ProvideCapabilities__criticalExtensions__criticalExtensionsFuture, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_criticalExtensionsFuture_8 = { + "criticalExtensionsFuture", + "criticalExtensionsFuture", + &asn_OP_SEQUENCE, + asn_DEF_criticalExtensionsFuture_tags_8, + sizeof(asn_DEF_criticalExtensionsFuture_tags_8) + /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]) - 1, /* 1 */ + asn_DEF_criticalExtensionsFuture_tags_8, /* Same as above */ + sizeof(asn_DEF_criticalExtensionsFuture_tags_8) + /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_criticalExtensionsFuture_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_criticalExtensions_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct ProvideCapabilities__criticalExtensions, choice.c1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_c1_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "c1" + }, + { ATF_NOFLAGS, 0, offsetof(struct ProvideCapabilities__criticalExtensions, choice.criticalExtensionsFuture), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_criticalExtensionsFuture_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "criticalExtensionsFuture" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_criticalExtensions_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* c1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* criticalExtensionsFuture */ +}; +static asn_CHOICE_specifics_t asn_SPC_criticalExtensions_specs_2 = { + sizeof(struct ProvideCapabilities__criticalExtensions), + offsetof(struct ProvideCapabilities__criticalExtensions, _asn_ctx), + offsetof(struct ProvideCapabilities__criticalExtensions, present), + sizeof(((struct ProvideCapabilities__criticalExtensions *)0)->present), + asn_MAP_criticalExtensions_tag2el_2, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_criticalExtensions_2 = { + "criticalExtensions", + "criticalExtensions", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_criticalExtensions_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_criticalExtensions_2, + 2, /* Elements count */ + &asn_SPC_criticalExtensions_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ProvideCapabilities_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ProvideCapabilities, criticalExtensions), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_criticalExtensions_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "criticalExtensions" + }, +}; +static const ber_tlv_tag_t asn_DEF_ProvideCapabilities_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ProvideCapabilities_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* criticalExtensions */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ProvideCapabilities_specs_1 = { + sizeof(struct ProvideCapabilities), + offsetof(struct ProvideCapabilities, _asn_ctx), + asn_MAP_ProvideCapabilities_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ProvideCapabilities = { + "ProvideCapabilities", + "ProvideCapabilities", + &asn_OP_SEQUENCE, + asn_DEF_ProvideCapabilities_tags_1, + sizeof(asn_DEF_ProvideCapabilities_tags_1) + /sizeof(asn_DEF_ProvideCapabilities_tags_1[0]), /* 1 */ + asn_DEF_ProvideCapabilities_tags_1, /* Same as above */ + sizeof(asn_DEF_ProvideCapabilities_tags_1) + /sizeof(asn_DEF_ProvideCapabilities_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ProvideCapabilities_1, + 1, /* Elements count */ + &asn_SPC_ProvideCapabilities_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ProvideCapabilities.h b/asn.1/lpp_generated/ProvideCapabilities.h similarity index 90% rename from asn.1/generated/ProvideCapabilities.h rename to asn.1/lpp_generated/ProvideCapabilities.h index 18e65d81..c0170ea4 100644 --- a/asn.1/generated/ProvideCapabilities.h +++ b/asn.1/lpp_generated/ProvideCapabilities.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _ProvideCapabilities_H_ diff --git a/asn.1/lpp_generated/ProvideLocationInformation-r9-IEs.c b/asn.1/lpp_generated/ProvideLocationInformation-r9-IEs.c new file mode 100644 index 00000000..903ba120 --- /dev/null +++ b/asn.1/lpp_generated/ProvideLocationInformation-r9-IEs.c @@ -0,0 +1,419 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ProvideLocationInformation-r9-IEs.h" + +#include "CommonIEsProvideLocationInformation.h" +#include "A-GNSS-ProvideLocationInformation.h" +#include "OTDOA-ProvideLocationInformation.h" +#include "ECID-ProvideLocationInformation.h" +#include "EPDU-Sequence.h" +#include "Sensor-ProvideLocationInformation-r13.h" +#include "TBS-ProvideLocationInformation-r13.h" +#include "WLAN-ProvideLocationInformation-r13.h" +#include "BT-ProvideLocationInformation-r13.h" +#include "NR-ECID-ProvideLocationInformation-r16.h" +#include "NR-Multi-RTT-ProvideLocationInformation-r16.h" +#include "NR-DL-AoD-ProvideLocationInformation-r16.h" +#include "NR-DL-TDOA-ProvideLocationInformation-r16.h" +static asn_TYPE_member_t asn_MBR_ext1_8[] = { + { ATF_POINTER, 4, offsetof(struct ProvideLocationInformation_r9_IEs__ext1, sensor_ProvideLocationInformation_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Sensor_ProvideLocationInformation_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensor-ProvideLocationInformation-r13" + }, + { ATF_POINTER, 3, offsetof(struct ProvideLocationInformation_r9_IEs__ext1, tbs_ProvideLocationInformation_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TBS_ProvideLocationInformation_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tbs-ProvideLocationInformation-r13" + }, + { ATF_POINTER, 2, offsetof(struct ProvideLocationInformation_r9_IEs__ext1, wlan_ProvideLocationInformation_r13), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WLAN_ProvideLocationInformation_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wlan-ProvideLocationInformation-r13" + }, + { ATF_POINTER, 1, offsetof(struct ProvideLocationInformation_r9_IEs__ext1, bt_ProvideLocationInformation_r13), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BT_ProvideLocationInformation_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-ProvideLocationInformation-r13" + }, +}; +static const int asn_MAP_ext1_oms_8[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-ProvideLocationInformation-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tbs-ProvideLocationInformation-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* wlan-ProvideLocationInformation-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* bt-ProvideLocationInformation-r13 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { + sizeof(struct ProvideLocationInformation_r9_IEs__ext1), + offsetof(struct ProvideLocationInformation_r9_IEs__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_8, + 4, /* Count of tags in the map */ + asn_MAP_ext1_oms_8, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_8 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_8, + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_8, /* Same as above */ + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_8, + 4, /* Elements count */ + &asn_SPC_ext1_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_13[] = { + { ATF_POINTER, 4, offsetof(struct ProvideLocationInformation_r9_IEs__ext2, nr_ECID_ProvideLocationInformation_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_ECID_ProvideLocationInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ECID-ProvideLocationInformation-r16" + }, + { ATF_POINTER, 3, offsetof(struct ProvideLocationInformation_r9_IEs__ext2, nr_Multi_RTT_ProvideLocationInformation_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_Multi_RTT_ProvideLocationInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-Multi-RTT-ProvideLocationInformation-r16" + }, + { ATF_POINTER, 2, offsetof(struct ProvideLocationInformation_r9_IEs__ext2, nr_DL_AoD_ProvideLocationInformation_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_AoD_ProvideLocationInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-ProvideLocationInformation-r16" + }, + { ATF_POINTER, 1, offsetof(struct ProvideLocationInformation_r9_IEs__ext2, nr_DL_TDOA_ProvideLocationInformation_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_TDOA_ProvideLocationInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-ProvideLocationInformation-r16" + }, +}; +static const int asn_MAP_ext2_oms_13[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_13[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-ECID-ProvideLocationInformation-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-Multi-RTT-ProvideLocationInformation-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-AoD-ProvideLocationInformation-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* nr-DL-TDOA-ProvideLocationInformation-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_13 = { + sizeof(struct ProvideLocationInformation_r9_IEs__ext2), + offsetof(struct ProvideLocationInformation_r9_IEs__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_13, + 4, /* Count of tags in the map */ + asn_MAP_ext2_oms_13, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_13 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_13, + sizeof(asn_DEF_ext2_tags_13) + /sizeof(asn_DEF_ext2_tags_13[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_13, /* Same as above */ + sizeof(asn_DEF_ext2_tags_13) + /sizeof(asn_DEF_ext2_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_13, + 4, /* Elements count */ + &asn_SPC_ext2_specs_13 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ProvideLocationInformation_r9_IEs_1[] = { + { ATF_POINTER, 7, offsetof(struct ProvideLocationInformation_r9_IEs, commonIEsProvideLocationInformation), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CommonIEsProvideLocationInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "commonIEsProvideLocationInformation" + }, + { ATF_POINTER, 6, offsetof(struct ProvideLocationInformation_r9_IEs, a_gnss_ProvideLocationInformation), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_A_GNSS_ProvideLocationInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "a-gnss-ProvideLocationInformation" + }, + { ATF_POINTER, 5, offsetof(struct ProvideLocationInformation_r9_IEs, otdoa_ProvideLocationInformation), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OTDOA_ProvideLocationInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "otdoa-ProvideLocationInformation" + }, + { ATF_POINTER, 4, offsetof(struct ProvideLocationInformation_r9_IEs, ecid_ProvideLocationInformation), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ECID_ProvideLocationInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ecid-ProvideLocationInformation" + }, + { ATF_POINTER, 3, offsetof(struct ProvideLocationInformation_r9_IEs, epdu_ProvideLocationInformation), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EPDU_Sequence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epdu-ProvideLocationInformation" + }, + { ATF_POINTER, 2, offsetof(struct ProvideLocationInformation_r9_IEs, ext1), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext1_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct ProvideLocationInformation_r9_IEs, ext2), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext2_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_ProvideLocationInformation_r9_IEs_oms_1[] = { 0, 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_ProvideLocationInformation_r9_IEs_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ProvideLocationInformation_r9_IEs_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* commonIEsProvideLocationInformation */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* a-gnss-ProvideLocationInformation */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* otdoa-ProvideLocationInformation */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ecid-ProvideLocationInformation */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* epdu-ProvideLocationInformation */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ProvideLocationInformation_r9_IEs_specs_1 = { + sizeof(struct ProvideLocationInformation_r9_IEs), + offsetof(struct ProvideLocationInformation_r9_IEs, _asn_ctx), + asn_MAP_ProvideLocationInformation_r9_IEs_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_ProvideLocationInformation_r9_IEs_oms_1, /* Optional members */ + 5, 2, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ProvideLocationInformation_r9_IEs = { + "ProvideLocationInformation-r9-IEs", + "ProvideLocationInformation-r9-IEs", + &asn_OP_SEQUENCE, + asn_DEF_ProvideLocationInformation_r9_IEs_tags_1, + sizeof(asn_DEF_ProvideLocationInformation_r9_IEs_tags_1) + /sizeof(asn_DEF_ProvideLocationInformation_r9_IEs_tags_1[0]), /* 1 */ + asn_DEF_ProvideLocationInformation_r9_IEs_tags_1, /* Same as above */ + sizeof(asn_DEF_ProvideLocationInformation_r9_IEs_tags_1) + /sizeof(asn_DEF_ProvideLocationInformation_r9_IEs_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ProvideLocationInformation_r9_IEs_1, + 7, /* Elements count */ + &asn_SPC_ProvideLocationInformation_r9_IEs_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/ProvideLocationInformation-r9-IEs.h b/asn.1/lpp_generated/ProvideLocationInformation-r9-IEs.h new file mode 100644 index 00000000..622ff0a8 --- /dev/null +++ b/asn.1/lpp_generated/ProvideLocationInformation-r9-IEs.h @@ -0,0 +1,80 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _ProvideLocationInformation_r9_IEs_H_ +#define _ProvideLocationInformation_r9_IEs_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CommonIEsProvideLocationInformation; +struct A_GNSS_ProvideLocationInformation; +struct OTDOA_ProvideLocationInformation; +struct ECID_ProvideLocationInformation; +struct EPDU_Sequence; +struct Sensor_ProvideLocationInformation_r13; +struct TBS_ProvideLocationInformation_r13; +struct WLAN_ProvideLocationInformation_r13; +struct BT_ProvideLocationInformation_r13; +struct NR_ECID_ProvideLocationInformation_r16; +struct NR_Multi_RTT_ProvideLocationInformation_r16; +struct NR_DL_AoD_ProvideLocationInformation_r16; +struct NR_DL_TDOA_ProvideLocationInformation_r16; + +/* ProvideLocationInformation-r9-IEs */ +typedef struct ProvideLocationInformation_r9_IEs { + struct CommonIEsProvideLocationInformation *commonIEsProvideLocationInformation; /* OPTIONAL */ + struct A_GNSS_ProvideLocationInformation *a_gnss_ProvideLocationInformation; /* OPTIONAL */ + struct OTDOA_ProvideLocationInformation *otdoa_ProvideLocationInformation; /* OPTIONAL */ + struct ECID_ProvideLocationInformation *ecid_ProvideLocationInformation; /* OPTIONAL */ + struct EPDU_Sequence *epdu_ProvideLocationInformation; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct ProvideLocationInformation_r9_IEs__ext1 { + struct Sensor_ProvideLocationInformation_r13 *sensor_ProvideLocationInformation_r13; /* OPTIONAL */ + struct TBS_ProvideLocationInformation_r13 *tbs_ProvideLocationInformation_r13; /* OPTIONAL */ + struct WLAN_ProvideLocationInformation_r13 *wlan_ProvideLocationInformation_r13; /* OPTIONAL */ + struct BT_ProvideLocationInformation_r13 *bt_ProvideLocationInformation_r13; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct ProvideLocationInformation_r9_IEs__ext2 { + struct NR_ECID_ProvideLocationInformation_r16 *nr_ECID_ProvideLocationInformation_r16; /* OPTIONAL */ + struct NR_Multi_RTT_ProvideLocationInformation_r16 *nr_Multi_RTT_ProvideLocationInformation_r16; /* OPTIONAL */ + struct NR_DL_AoD_ProvideLocationInformation_r16 *nr_DL_AoD_ProvideLocationInformation_r16; /* OPTIONAL */ + struct NR_DL_TDOA_ProvideLocationInformation_r16 *nr_DL_TDOA_ProvideLocationInformation_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ProvideLocationInformation_r9_IEs_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ProvideLocationInformation_r9_IEs; +extern asn_SEQUENCE_specifics_t asn_SPC_ProvideLocationInformation_r9_IEs_specs_1; +extern asn_TYPE_member_t asn_MBR_ProvideLocationInformation_r9_IEs_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ProvideLocationInformation_r9_IEs_H_ */ +#include diff --git a/asn.1/lpp_generated/ProvideLocationInformation.c b/asn.1/lpp_generated/ProvideLocationInformation.c new file mode 100644 index 00000000..26a8cc75 --- /dev/null +++ b/asn.1/lpp_generated/ProvideLocationInformation.c @@ -0,0 +1,298 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ProvideLocationInformation.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_c1_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_criticalExtensions_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_c1_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct ProvideLocationInformation__criticalExtensions__c1, choice.provideLocationInformation_r9), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ProvideLocationInformation_r9_IEs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "provideLocationInformation-r9" + }, + { ATF_NOFLAGS, 0, offsetof(struct ProvideLocationInformation__criticalExtensions__c1, choice.spare3), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare3" + }, + { ATF_NOFLAGS, 0, offsetof(struct ProvideLocationInformation__criticalExtensions__c1, choice.spare2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare2" + }, + { ATF_NOFLAGS, 0, offsetof(struct ProvideLocationInformation__criticalExtensions__c1, choice.spare1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare1" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_c1_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* provideLocationInformation-r9 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* spare3 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* spare2 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* spare1 */ +}; +static asn_CHOICE_specifics_t asn_SPC_c1_specs_3 = { + sizeof(struct ProvideLocationInformation__criticalExtensions__c1), + offsetof(struct ProvideLocationInformation__criticalExtensions__c1, _asn_ctx), + offsetof(struct ProvideLocationInformation__criticalExtensions__c1, present), + sizeof(((struct ProvideLocationInformation__criticalExtensions__c1 *)0)->present), + asn_MAP_c1_tag2el_3, + 4, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_c1_3 = { + "c1", + "c1", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_c1_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_c1_3, + 4, /* Elements count */ + &asn_SPC_c1_specs_3 /* Additional specs */ +}; + +static const ber_tlv_tag_t asn_DEF_criticalExtensionsFuture_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SEQUENCE_specifics_t asn_SPC_criticalExtensionsFuture_specs_8 = { + sizeof(struct ProvideLocationInformation__criticalExtensions__criticalExtensionsFuture), + offsetof(struct ProvideLocationInformation__criticalExtensions__criticalExtensionsFuture, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_criticalExtensionsFuture_8 = { + "criticalExtensionsFuture", + "criticalExtensionsFuture", + &asn_OP_SEQUENCE, + asn_DEF_criticalExtensionsFuture_tags_8, + sizeof(asn_DEF_criticalExtensionsFuture_tags_8) + /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]) - 1, /* 1 */ + asn_DEF_criticalExtensionsFuture_tags_8, /* Same as above */ + sizeof(asn_DEF_criticalExtensionsFuture_tags_8) + /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_criticalExtensionsFuture_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_criticalExtensions_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct ProvideLocationInformation__criticalExtensions, choice.c1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_c1_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "c1" + }, + { ATF_NOFLAGS, 0, offsetof(struct ProvideLocationInformation__criticalExtensions, choice.criticalExtensionsFuture), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_criticalExtensionsFuture_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "criticalExtensionsFuture" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_criticalExtensions_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* c1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* criticalExtensionsFuture */ +}; +static asn_CHOICE_specifics_t asn_SPC_criticalExtensions_specs_2 = { + sizeof(struct ProvideLocationInformation__criticalExtensions), + offsetof(struct ProvideLocationInformation__criticalExtensions, _asn_ctx), + offsetof(struct ProvideLocationInformation__criticalExtensions, present), + sizeof(((struct ProvideLocationInformation__criticalExtensions *)0)->present), + asn_MAP_criticalExtensions_tag2el_2, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_criticalExtensions_2 = { + "criticalExtensions", + "criticalExtensions", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_criticalExtensions_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_criticalExtensions_2, + 2, /* Elements count */ + &asn_SPC_criticalExtensions_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ProvideLocationInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ProvideLocationInformation, criticalExtensions), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_criticalExtensions_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "criticalExtensions" + }, +}; +static const ber_tlv_tag_t asn_DEF_ProvideLocationInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ProvideLocationInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* criticalExtensions */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ProvideLocationInformation_specs_1 = { + sizeof(struct ProvideLocationInformation), + offsetof(struct ProvideLocationInformation, _asn_ctx), + asn_MAP_ProvideLocationInformation_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ProvideLocationInformation = { + "ProvideLocationInformation", + "ProvideLocationInformation", + &asn_OP_SEQUENCE, + asn_DEF_ProvideLocationInformation_tags_1, + sizeof(asn_DEF_ProvideLocationInformation_tags_1) + /sizeof(asn_DEF_ProvideLocationInformation_tags_1[0]), /* 1 */ + asn_DEF_ProvideLocationInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_ProvideLocationInformation_tags_1) + /sizeof(asn_DEF_ProvideLocationInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ProvideLocationInformation_1, + 1, /* Elements count */ + &asn_SPC_ProvideLocationInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ProvideLocationInformation.h b/asn.1/lpp_generated/ProvideLocationInformation.h similarity index 91% rename from asn.1/generated/ProvideLocationInformation.h rename to asn.1/lpp_generated/ProvideLocationInformation.h index f806229f..0f81508b 100644 --- a/asn.1/generated/ProvideLocationInformation.h +++ b/asn.1/lpp_generated/ProvideLocationInformation.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _ProvideLocationInformation_H_ diff --git a/asn.1/lpp_generated/QoS.c b/asn.1/lpp_generated/QoS.c new file mode 100644 index 00000000..298957da --- /dev/null +++ b/asn.1/lpp_generated/QoS.c @@ -0,0 +1,322 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "QoS.h" + +#include "HorizontalAccuracy.h" +#include "VerticalAccuracy.h" +#include "ResponseTime.h" +#include "ResponseTimeNB-r14.h" +#include "HorizontalAccuracyExt-r15.h" +#include "VerticalAccuracyExt-r15.h" +static asn_TYPE_member_t asn_MBR_ext1_8[] = { + { ATF_POINTER, 1, offsetof(struct QoS__ext1, responseTimeNB_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ResponseTimeNB_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "responseTimeNB-r14" + }, +}; +static const int asn_MAP_ext1_oms_8[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* responseTimeNB-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { + sizeof(struct QoS__ext1), + offsetof(struct QoS__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_8, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_8, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_8 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_8, + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_8, /* Same as above */ + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_8, + 1, /* Elements count */ + &asn_SPC_ext1_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_10[] = { + { ATF_POINTER, 2, offsetof(struct QoS__ext2, horizontalAccuracyExt_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HorizontalAccuracyExt_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horizontalAccuracyExt-r15" + }, + { ATF_POINTER, 1, offsetof(struct QoS__ext2, verticalAccuracyExt_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VerticalAccuracyExt_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalAccuracyExt-r15" + }, +}; +static const int asn_MAP_ext2_oms_10[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_10[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horizontalAccuracyExt-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* verticalAccuracyExt-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_10 = { + sizeof(struct QoS__ext2), + offsetof(struct QoS__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_10, + 2, /* Count of tags in the map */ + asn_MAP_ext2_oms_10, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_10 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_10, + sizeof(asn_DEF_ext2_tags_10) + /sizeof(asn_DEF_ext2_tags_10[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_10, /* Same as above */ + sizeof(asn_DEF_ext2_tags_10) + /sizeof(asn_DEF_ext2_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_10, + 2, /* Elements count */ + &asn_SPC_ext2_specs_10 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_QoS_1[] = { + { ATF_POINTER, 1, offsetof(struct QoS, horizontalAccuracy), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HorizontalAccuracy, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horizontalAccuracy" + }, + { ATF_NOFLAGS, 0, offsetof(struct QoS, verticalCoordinateRequest), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalCoordinateRequest" + }, + { ATF_POINTER, 2, offsetof(struct QoS, verticalAccuracy), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VerticalAccuracy, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalAccuracy" + }, + { ATF_POINTER, 1, offsetof(struct QoS, responseTime), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ResponseTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "responseTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct QoS, velocityRequest), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "velocityRequest" + }, + { ATF_POINTER, 2, offsetof(struct QoS, ext1), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext1_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct QoS, ext2), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext2_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_QoS_oms_1[] = { 0, 2, 3, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_QoS_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_QoS_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horizontalAccuracy */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* verticalCoordinateRequest */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* verticalAccuracy */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* responseTime */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* velocityRequest */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_QoS_specs_1 = { + sizeof(struct QoS), + offsetof(struct QoS, _asn_ctx), + asn_MAP_QoS_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_QoS_oms_1, /* Optional members */ + 3, 2, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_QoS = { + "QoS", + "QoS", + &asn_OP_SEQUENCE, + asn_DEF_QoS_tags_1, + sizeof(asn_DEF_QoS_tags_1) + /sizeof(asn_DEF_QoS_tags_1[0]), /* 1 */ + asn_DEF_QoS_tags_1, /* Same as above */ + sizeof(asn_DEF_QoS_tags_1) + /sizeof(asn_DEF_QoS_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_QoS_1, + 7, /* Elements count */ + &asn_SPC_QoS_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/QoS.h b/asn.1/lpp_generated/QoS.h new file mode 100644 index 00000000..ec8c6a2a --- /dev/null +++ b/asn.1/lpp_generated/QoS.h @@ -0,0 +1,69 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _QoS_H_ +#define _QoS_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct HorizontalAccuracy; +struct VerticalAccuracy; +struct ResponseTime; +struct ResponseTimeNB_r14; +struct HorizontalAccuracyExt_r15; +struct VerticalAccuracyExt_r15; + +/* QoS */ +typedef struct QoS { + struct HorizontalAccuracy *horizontalAccuracy; /* OPTIONAL */ + BOOLEAN_t verticalCoordinateRequest; + struct VerticalAccuracy *verticalAccuracy; /* OPTIONAL */ + struct ResponseTime *responseTime; /* OPTIONAL */ + BOOLEAN_t velocityRequest; + /* + * This type is extensible, + * possible extensions are below. + */ + struct QoS__ext1 { + struct ResponseTimeNB_r14 *responseTimeNB_r14; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct QoS__ext2 { + struct HorizontalAccuracyExt_r15 *horizontalAccuracyExt_r15; /* OPTIONAL */ + struct VerticalAccuracyExt_r15 *verticalAccuracyExt_r15; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} QoS_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_QoS; +extern asn_SEQUENCE_specifics_t asn_SPC_QoS_specs_1; +extern asn_TYPE_member_t asn_MBR_QoS_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _QoS_H_ */ +#include diff --git a/asn.1/lpp_generated/RAC-OrbitalErrorComponents-r17.c b/asn.1/lpp_generated/RAC-OrbitalErrorComponents-r17.c new file mode 100644 index 00000000..0ffd2ca4 --- /dev/null +++ b/asn.1/lpp_generated/RAC-OrbitalErrorComponents-r17.c @@ -0,0 +1,198 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RAC-OrbitalErrorComponents-r17.h" + +static int +memb_radial_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_alongTrack_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_crossTrack_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_radial_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_alongTrack_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_crossTrack_r17_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_RAC_OrbitalErrorComponents_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RAC_OrbitalErrorComponents_r17, radial_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_radial_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_radial_r17_constraint_1 + }, + 0, 0, /* No default value */ + "radial-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct RAC_OrbitalErrorComponents_r17, alongTrack_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_alongTrack_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_alongTrack_r17_constraint_1 + }, + 0, 0, /* No default value */ + "alongTrack-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct RAC_OrbitalErrorComponents_r17, crossTrack_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_crossTrack_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_crossTrack_r17_constraint_1 + }, + 0, 0, /* No default value */ + "crossTrack-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_RAC_OrbitalErrorComponents_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RAC_OrbitalErrorComponents_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* radial-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* alongTrack-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* crossTrack-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RAC_OrbitalErrorComponents_r17_specs_1 = { + sizeof(struct RAC_OrbitalErrorComponents_r17), + offsetof(struct RAC_OrbitalErrorComponents_r17, _asn_ctx), + asn_MAP_RAC_OrbitalErrorComponents_r17_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RAC_OrbitalErrorComponents_r17 = { + "RAC-OrbitalErrorComponents-r17", + "RAC-OrbitalErrorComponents-r17", + &asn_OP_SEQUENCE, + asn_DEF_RAC_OrbitalErrorComponents_r17_tags_1, + sizeof(asn_DEF_RAC_OrbitalErrorComponents_r17_tags_1) + /sizeof(asn_DEF_RAC_OrbitalErrorComponents_r17_tags_1[0]), /* 1 */ + asn_DEF_RAC_OrbitalErrorComponents_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_RAC_OrbitalErrorComponents_r17_tags_1) + /sizeof(asn_DEF_RAC_OrbitalErrorComponents_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RAC_OrbitalErrorComponents_r17_1, + 3, /* Elements count */ + &asn_SPC_RAC_OrbitalErrorComponents_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/RAC-OrbitalErrorComponents-r17.h b/asn.1/lpp_generated/RAC-OrbitalErrorComponents-r17.h new file mode 100644 index 00000000..7119240b --- /dev/null +++ b/asn.1/lpp_generated/RAC-OrbitalErrorComponents-r17.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _RAC_OrbitalErrorComponents_r17_H_ +#define _RAC_OrbitalErrorComponents_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* RAC-OrbitalErrorComponents-r17 */ +typedef struct RAC_OrbitalErrorComponents_r17 { + long radial_r17; + long alongTrack_r17; + long crossTrack_r17; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RAC_OrbitalErrorComponents_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RAC_OrbitalErrorComponents_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_RAC_OrbitalErrorComponents_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_RAC_OrbitalErrorComponents_r17_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _RAC_OrbitalErrorComponents_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/RTD-InfoElement-r16.c b/asn.1/lpp_generated/RTD-InfoElement-r16.c new file mode 100644 index 00000000..d05e2a2e --- /dev/null +++ b/asn.1/lpp_generated/RTD-InfoElement-r16.c @@ -0,0 +1,303 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RTD-InfoElement-r16.h" + +#include "NCGI-r15.h" +#include "NR-IntegrityRTD-InfoBounds-r18.h" +static int +memb_dl_PRS_ID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_subframeOffset_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1966079L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ID_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_subframeOffset_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, 0, 1966079 } /* (0..1966079) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_9[] = { + { ATF_POINTER, 1, offsetof(struct RTD_InfoElement_r16__ext1, nr_IntegrityRTD_InfoBounds_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_IntegrityRTD_InfoBounds_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-IntegrityRTD-InfoBounds-r18" + }, +}; +static const int asn_MAP_ext1_oms_9[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_9[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* nr-IntegrityRTD-InfoBounds-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_9 = { + sizeof(struct RTD_InfoElement_r16__ext1), + offsetof(struct RTD_InfoElement_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_9, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_9, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_9 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_9, + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_9, /* Same as above */ + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_9, + 1, /* Elements count */ + &asn_SPC_ext1_specs_9 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_RTD_InfoElement_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RTD_InfoElement_r16, dl_PRS_ID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ID_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ID_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ID-r16" + }, + { ATF_POINTER, 3, offsetof(struct RTD_InfoElement_r16, nr_PhysCellID_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r16" + }, + { ATF_POINTER, 2, offsetof(struct RTD_InfoElement_r16, nr_CellGlobalID_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-CellGlobalID-r16" + }, + { ATF_POINTER, 1, offsetof(struct RTD_InfoElement_r16, nr_ARFCN_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ARFCN-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RTD_InfoElement_r16, subframeOffset_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_subframeOffset_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_subframeOffset_r16_constraint_1 + }, + 0, 0, /* No default value */ + "subframeOffset-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RTD_InfoElement_r16, rtd_Quality_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimingQuality_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rtd-Quality-r16" + }, + { ATF_POINTER, 1, offsetof(struct RTD_InfoElement_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext1_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_RTD_InfoElement_r16_oms_1[] = { 1, 2, 3, 6 }; +static const ber_tlv_tag_t asn_DEF_RTD_InfoElement_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RTD_InfoElement_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PhysCellID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-CellGlobalID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-ARFCN-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* subframeOffset-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* rtd-Quality-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RTD_InfoElement_r16_specs_1 = { + sizeof(struct RTD_InfoElement_r16), + offsetof(struct RTD_InfoElement_r16, _asn_ctx), + asn_MAP_RTD_InfoElement_r16_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_RTD_InfoElement_r16_oms_1, /* Optional members */ + 3, 1, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RTD_InfoElement_r16 = { + "RTD-InfoElement-r16", + "RTD-InfoElement-r16", + &asn_OP_SEQUENCE, + asn_DEF_RTD_InfoElement_r16_tags_1, + sizeof(asn_DEF_RTD_InfoElement_r16_tags_1) + /sizeof(asn_DEF_RTD_InfoElement_r16_tags_1[0]), /* 1 */ + asn_DEF_RTD_InfoElement_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_RTD_InfoElement_r16_tags_1) + /sizeof(asn_DEF_RTD_InfoElement_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RTD_InfoElement_r16_1, + 7, /* Elements count */ + &asn_SPC_RTD_InfoElement_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/RTD-InfoElement-r16.h b/asn.1/lpp_generated/RTD-InfoElement-r16.h new file mode 100644 index 00000000..8ebb4ead --- /dev/null +++ b/asn.1/lpp_generated/RTD-InfoElement-r16.h @@ -0,0 +1,62 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _RTD_InfoElement_r16_H_ +#define _RTD_InfoElement_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include "NR-PhysCellID-r16.h" +#include "ARFCN-ValueNR-r15.h" +#include "NR-TimingQuality-r16.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NCGI_r15; +struct NR_IntegrityRTD_InfoBounds_r18; + +/* RTD-InfoElement-r16 */ +typedef struct RTD_InfoElement_r16 { + long dl_PRS_ID_r16; + NR_PhysCellID_r16_t *nr_PhysCellID_r16; /* OPTIONAL */ + struct NCGI_r15 *nr_CellGlobalID_r16; /* OPTIONAL */ + ARFCN_ValueNR_r15_t *nr_ARFCN_r16; /* OPTIONAL */ + long subframeOffset_r16; + NR_TimingQuality_r16_t rtd_Quality_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct RTD_InfoElement_r16__ext1 { + struct NR_IntegrityRTD_InfoBounds_r18 *nr_IntegrityRTD_InfoBounds_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RTD_InfoElement_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RTD_InfoElement_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_RTD_InfoElement_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_RTD_InfoElement_r16_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _RTD_InfoElement_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/RTD-InfoList-r16.c b/asn.1/lpp_generated/RTD-InfoList-r16.c new file mode 100644 index 00000000..cebb851d --- /dev/null +++ b/asn.1/lpp_generated/RTD-InfoList-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RTD-InfoList-r16.h" + +#include "RTD-InfoListPerFreqLayer-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RTD_InfoList_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_RTD_InfoList_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_RTD_InfoListPerFreqLayer_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_RTD_InfoList_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_RTD_InfoList_r16_specs_1 = { + sizeof(struct RTD_InfoList_r16), + offsetof(struct RTD_InfoList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_RTD_InfoList_r16 = { + "RTD-InfoList-r16", + "RTD-InfoList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_RTD_InfoList_r16_tags_1, + sizeof(asn_DEF_RTD_InfoList_r16_tags_1) + /sizeof(asn_DEF_RTD_InfoList_r16_tags_1[0]), /* 1 */ + asn_DEF_RTD_InfoList_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_RTD_InfoList_r16_tags_1) + /sizeof(asn_DEF_RTD_InfoList_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RTD_InfoList_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_RTD_InfoList_r16_1, + 1, /* Single element */ + &asn_SPC_RTD_InfoList_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/RTD-InfoList-r16.h b/asn.1/lpp_generated/RTD-InfoList-r16.h similarity index 79% rename from asn.1/generated/RTD-InfoList-r16.h rename to asn.1/lpp_generated/RTD-InfoList-r16.h index e393d58b..5abb29d2 100644 --- a/asn.1/generated/RTD-InfoList-r16.h +++ b/asn.1/lpp_generated/RTD-InfoList-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _RTD_InfoList_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_RTD_InfoList_r16_constr_1; } #endif -/* Referred external types */ -#include "RTD-InfoListPerFreqLayer-r16.h" - #endif /* _RTD_InfoList_r16_H_ */ #include diff --git a/asn.1/lpp_generated/RTD-InfoListPerFreqLayer-r16.c b/asn.1/lpp_generated/RTD-InfoListPerFreqLayer-r16.c new file mode 100644 index 00000000..35263675 --- /dev/null +++ b/asn.1/lpp_generated/RTD-InfoListPerFreqLayer-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RTD-InfoListPerFreqLayer-r16.h" + +#include "RTD-InfoElement-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RTD_InfoListPerFreqLayer_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_RTD_InfoListPerFreqLayer_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_RTD_InfoElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_RTD_InfoListPerFreqLayer_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_RTD_InfoListPerFreqLayer_r16_specs_1 = { + sizeof(struct RTD_InfoListPerFreqLayer_r16), + offsetof(struct RTD_InfoListPerFreqLayer_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_RTD_InfoListPerFreqLayer_r16 = { + "RTD-InfoListPerFreqLayer-r16", + "RTD-InfoListPerFreqLayer-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_RTD_InfoListPerFreqLayer_r16_tags_1, + sizeof(asn_DEF_RTD_InfoListPerFreqLayer_r16_tags_1) + /sizeof(asn_DEF_RTD_InfoListPerFreqLayer_r16_tags_1[0]), /* 1 */ + asn_DEF_RTD_InfoListPerFreqLayer_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_RTD_InfoListPerFreqLayer_r16_tags_1) + /sizeof(asn_DEF_RTD_InfoListPerFreqLayer_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RTD_InfoListPerFreqLayer_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_RTD_InfoListPerFreqLayer_r16_1, + 1, /* Single element */ + &asn_SPC_RTD_InfoListPerFreqLayer_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/RTD-InfoListPerFreqLayer-r16.h b/asn.1/lpp_generated/RTD-InfoListPerFreqLayer-r16.h similarity index 81% rename from asn.1/generated/RTD-InfoListPerFreqLayer-r16.h rename to asn.1/lpp_generated/RTD-InfoListPerFreqLayer-r16.h index 06f3011f..79080e14 100644 --- a/asn.1/generated/RTD-InfoListPerFreqLayer-r16.h +++ b/asn.1/lpp_generated/RTD-InfoListPerFreqLayer-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _RTD_InfoListPerFreqLayer_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_RTD_InfoListPerFreqLayer_r16_constr_1; } #endif -/* Referred external types */ -#include "RTD-InfoElement-r16.h" - #endif /* _RTD_InfoListPerFreqLayer_r16_H_ */ #include diff --git a/asn.1/lpp_generated/RTK-CorrectionDifferencesElement-r15.c b/asn.1/lpp_generated/RTK-CorrectionDifferencesElement-r15.c new file mode 100644 index 00000000..dcae1b11 --- /dev/null +++ b/asn.1/lpp_generated/RTK-CorrectionDifferencesElement-r15.c @@ -0,0 +1,102 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RTK-CorrectionDifferencesElement-r15.h" + +asn_TYPE_member_t asn_MBR_RTK_CorrectionDifferencesElement_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RTK_CorrectionDifferencesElement_r15, epochTime_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SystemTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epochTime-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct RTK_CorrectionDifferencesElement_r15, auxiliary_referenceStationID_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ReferenceStationID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "auxiliary-referenceStationID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct RTK_CorrectionDifferencesElement_r15, geometric_ionospheric_corrections_differences_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Geometric_Ionospheric_Corrections_Differences_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "geometric-ionospheric-corrections-differences-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_RTK_CorrectionDifferencesElement_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RTK_CorrectionDifferencesElement_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* epochTime-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* auxiliary-referenceStationID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* geometric-ionospheric-corrections-differences-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RTK_CorrectionDifferencesElement_r15_specs_1 = { + sizeof(struct RTK_CorrectionDifferencesElement_r15), + offsetof(struct RTK_CorrectionDifferencesElement_r15, _asn_ctx), + asn_MAP_RTK_CorrectionDifferencesElement_r15_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RTK_CorrectionDifferencesElement_r15 = { + "RTK-CorrectionDifferencesElement-r15", + "RTK-CorrectionDifferencesElement-r15", + &asn_OP_SEQUENCE, + asn_DEF_RTK_CorrectionDifferencesElement_r15_tags_1, + sizeof(asn_DEF_RTK_CorrectionDifferencesElement_r15_tags_1) + /sizeof(asn_DEF_RTK_CorrectionDifferencesElement_r15_tags_1[0]), /* 1 */ + asn_DEF_RTK_CorrectionDifferencesElement_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_RTK_CorrectionDifferencesElement_r15_tags_1) + /sizeof(asn_DEF_RTK_CorrectionDifferencesElement_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RTK_CorrectionDifferencesElement_r15_1, + 3, /* Elements count */ + &asn_SPC_RTK_CorrectionDifferencesElement_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/RTK-CorrectionDifferencesElement-r15.h b/asn.1/lpp_generated/RTK-CorrectionDifferencesElement-r15.h similarity index 84% rename from asn.1/generated/RTK-CorrectionDifferencesElement-r15.h rename to asn.1/lpp_generated/RTK-CorrectionDifferencesElement-r15.h index edce0494..2032361b 100644 --- a/asn.1/generated/RTK-CorrectionDifferencesElement-r15.h +++ b/asn.1/lpp_generated/RTK-CorrectionDifferencesElement-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _RTK_CorrectionDifferencesElement_r15_H_ diff --git a/asn.1/lpp_generated/RTK-CorrectionDifferencesList-r15.c b/asn.1/lpp_generated/RTK-CorrectionDifferencesList-r15.c new file mode 100644 index 00000000..a5ec4368 --- /dev/null +++ b/asn.1/lpp_generated/RTK-CorrectionDifferencesList-r15.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RTK-CorrectionDifferencesList-r15.h" + +#include "RTK-CorrectionDifferencesElement-r15.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RTK_CorrectionDifferencesList_r15_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_RTK_CorrectionDifferencesList_r15_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_RTK_CorrectionDifferencesElement_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_RTK_CorrectionDifferencesList_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_RTK_CorrectionDifferencesList_r15_specs_1 = { + sizeof(struct RTK_CorrectionDifferencesList_r15), + offsetof(struct RTK_CorrectionDifferencesList_r15, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_RTK_CorrectionDifferencesList_r15 = { + "RTK-CorrectionDifferencesList-r15", + "RTK-CorrectionDifferencesList-r15", + &asn_OP_SEQUENCE_OF, + asn_DEF_RTK_CorrectionDifferencesList_r15_tags_1, + sizeof(asn_DEF_RTK_CorrectionDifferencesList_r15_tags_1) + /sizeof(asn_DEF_RTK_CorrectionDifferencesList_r15_tags_1[0]), /* 1 */ + asn_DEF_RTK_CorrectionDifferencesList_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_RTK_CorrectionDifferencesList_r15_tags_1) + /sizeof(asn_DEF_RTK_CorrectionDifferencesList_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RTK_CorrectionDifferencesList_r15_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_RTK_CorrectionDifferencesList_r15_1, + 1, /* Single element */ + &asn_SPC_RTK_CorrectionDifferencesList_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/RTK-CorrectionDifferencesList-r15.h b/asn.1/lpp_generated/RTK-CorrectionDifferencesList-r15.h similarity index 82% rename from asn.1/generated/RTK-CorrectionDifferencesList-r15.h rename to asn.1/lpp_generated/RTK-CorrectionDifferencesList-r15.h index b5c40925..fa79d85b 100644 --- a/asn.1/generated/RTK-CorrectionDifferencesList-r15.h +++ b/asn.1/lpp_generated/RTK-CorrectionDifferencesList-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _RTK_CorrectionDifferencesList_r15_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_RTK_CorrectionDifferencesList_r15_cons } #endif -/* Referred external types */ -#include "RTK-CorrectionDifferencesElement-r15.h" - #endif /* _RTK_CorrectionDifferencesList_r15_H_ */ #include diff --git a/asn.1/lpp_generated/RTK-Residuals-Element-r15.c b/asn.1/lpp_generated/RTK-Residuals-Element-r15.c new file mode 100644 index 00000000..c7c58b6c --- /dev/null +++ b/asn.1/lpp_generated/RTK-Residuals-Element-r15.c @@ -0,0 +1,316 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RTK-Residuals-Element-r15.h" + +static int +memb_s_oc_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_s_od_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_s_oh_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_s_lc_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_s_ld_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_s_oc_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_s_od_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_s_oh_r15_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_s_lc_r15_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_s_ld_r15_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_RTK_Residuals_Element_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RTK_Residuals_Element_r15, svID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct RTK_Residuals_Element_r15, s_oc_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_s_oc_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_s_oc_r15_constraint_1 + }, + 0, 0, /* No default value */ + "s-oc-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct RTK_Residuals_Element_r15, s_od_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_s_od_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_s_od_r15_constraint_1 + }, + 0, 0, /* No default value */ + "s-od-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct RTK_Residuals_Element_r15, s_oh_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_s_oh_r15_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_s_oh_r15_constraint_1 + }, + 0, 0, /* No default value */ + "s-oh-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct RTK_Residuals_Element_r15, s_lc_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_s_lc_r15_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_s_lc_r15_constraint_1 + }, + 0, 0, /* No default value */ + "s-lc-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct RTK_Residuals_Element_r15, s_ld_r15), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_s_ld_r15_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_s_ld_r15_constraint_1 + }, + 0, 0, /* No default value */ + "s-ld-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_RTK_Residuals_Element_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RTK_Residuals_Element_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* s-oc-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* s-od-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* s-oh-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* s-lc-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* s-ld-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RTK_Residuals_Element_r15_specs_1 = { + sizeof(struct RTK_Residuals_Element_r15), + offsetof(struct RTK_Residuals_Element_r15, _asn_ctx), + asn_MAP_RTK_Residuals_Element_r15_tag2el_1, + 6, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RTK_Residuals_Element_r15 = { + "RTK-Residuals-Element-r15", + "RTK-Residuals-Element-r15", + &asn_OP_SEQUENCE, + asn_DEF_RTK_Residuals_Element_r15_tags_1, + sizeof(asn_DEF_RTK_Residuals_Element_r15_tags_1) + /sizeof(asn_DEF_RTK_Residuals_Element_r15_tags_1[0]), /* 1 */ + asn_DEF_RTK_Residuals_Element_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_RTK_Residuals_Element_r15_tags_1) + /sizeof(asn_DEF_RTK_Residuals_Element_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RTK_Residuals_Element_r15_1, + 6, /* Elements count */ + &asn_SPC_RTK_Residuals_Element_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/RTK-Residuals-Element-r15.h b/asn.1/lpp_generated/RTK-Residuals-Element-r15.h similarity index 80% rename from asn.1/generated/RTK-Residuals-Element-r15.h rename to asn.1/lpp_generated/RTK-Residuals-Element-r15.h index 2fda3a60..f8992d59 100644 --- a/asn.1/generated/RTK-Residuals-Element-r15.h +++ b/asn.1/lpp_generated/RTK-Residuals-Element-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _RTK_Residuals_Element_r15_H_ diff --git a/asn.1/lpp_generated/RTK-Residuals-List-r15.c b/asn.1/lpp_generated/RTK-Residuals-List-r15.c new file mode 100644 index 00000000..9a5e0c78 --- /dev/null +++ b/asn.1/lpp_generated/RTK-Residuals-List-r15.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RTK-Residuals-List-r15.h" + +#include "RTK-Residuals-Element-r15.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RTK_Residuals_List_r15_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_RTK_Residuals_List_r15_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_RTK_Residuals_Element_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_RTK_Residuals_List_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_RTK_Residuals_List_r15_specs_1 = { + sizeof(struct RTK_Residuals_List_r15), + offsetof(struct RTK_Residuals_List_r15, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_RTK_Residuals_List_r15 = { + "RTK-Residuals-List-r15", + "RTK-Residuals-List-r15", + &asn_OP_SEQUENCE_OF, + asn_DEF_RTK_Residuals_List_r15_tags_1, + sizeof(asn_DEF_RTK_Residuals_List_r15_tags_1) + /sizeof(asn_DEF_RTK_Residuals_List_r15_tags_1[0]), /* 1 */ + asn_DEF_RTK_Residuals_List_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_RTK_Residuals_List_r15_tags_1) + /sizeof(asn_DEF_RTK_Residuals_List_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RTK_Residuals_List_r15_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_RTK_Residuals_List_r15_1, + 1, /* Single element */ + &asn_SPC_RTK_Residuals_List_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/RTK-Residuals-List-r15.h b/asn.1/lpp_generated/RTK-Residuals-List-r15.h similarity index 80% rename from asn.1/generated/RTK-Residuals-List-r15.h rename to asn.1/lpp_generated/RTK-Residuals-List-r15.h index 4dc3603f..8ef0a525 100644 --- a/asn.1/generated/RTK-Residuals-List-r15.h +++ b/asn.1/lpp_generated/RTK-Residuals-List-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _RTK_Residuals_List_r15_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_RTK_Residuals_List_r15_constr_1; } #endif -/* Referred external types */ -#include "RTK-Residuals-Element-r15.h" - #endif /* _RTK_Residuals_List_r15_H_ */ #include diff --git a/asn.1/lpp_generated/ReferencePoint-r16.c b/asn.1/lpp_generated/ReferencePoint-r16.c new file mode 100644 index 00000000..b8b4670b --- /dev/null +++ b/asn.1/lpp_generated/ReferencePoint-r16.c @@ -0,0 +1,164 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ReferencePoint-r16.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_referencePointGeographicLocation_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_referencePointGeographicLocation_r16_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct ReferencePoint_r16__referencePointGeographicLocation_r16, choice.location3D_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "location3D-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct ReferencePoint_r16__referencePointGeographicLocation_r16, choice.ha_location3D_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ha-location3D-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct ReferencePoint_r16__referencePointGeographicLocation_r16, choice.localOrigin_v1800), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocalOrigin_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "localOrigin-v1800" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_referencePointGeographicLocation_r16_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* location3D-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ha-location3D-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* localOrigin-v1800 */ +}; +static asn_CHOICE_specifics_t asn_SPC_referencePointGeographicLocation_r16_specs_2 = { + sizeof(struct ReferencePoint_r16__referencePointGeographicLocation_r16), + offsetof(struct ReferencePoint_r16__referencePointGeographicLocation_r16, _asn_ctx), + offsetof(struct ReferencePoint_r16__referencePointGeographicLocation_r16, present), + sizeof(((struct ReferencePoint_r16__referencePointGeographicLocation_r16 *)0)->present), + asn_MAP_referencePointGeographicLocation_r16_tag2el_2, + 3, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_referencePointGeographicLocation_r16_2 = { + "referencePointGeographicLocation-r16", + "referencePointGeographicLocation-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_referencePointGeographicLocation_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_referencePointGeographicLocation_r16_2, + 3, /* Elements count */ + &asn_SPC_referencePointGeographicLocation_r16_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ReferencePoint_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ReferencePoint_r16, referencePointGeographicLocation_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_referencePointGeographicLocation_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referencePointGeographicLocation-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_ReferencePoint_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ReferencePoint_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* referencePointGeographicLocation-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ReferencePoint_r16_specs_1 = { + sizeof(struct ReferencePoint_r16), + offsetof(struct ReferencePoint_r16, _asn_ctx), + asn_MAP_ReferencePoint_r16_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ReferencePoint_r16 = { + "ReferencePoint-r16", + "ReferencePoint-r16", + &asn_OP_SEQUENCE, + asn_DEF_ReferencePoint_r16_tags_1, + sizeof(asn_DEF_ReferencePoint_r16_tags_1) + /sizeof(asn_DEF_ReferencePoint_r16_tags_1[0]), /* 1 */ + asn_DEF_ReferencePoint_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_ReferencePoint_r16_tags_1) + /sizeof(asn_DEF_ReferencePoint_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ReferencePoint_r16_1, + 1, /* Elements count */ + &asn_SPC_ReferencePoint_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ReferencePoint-r16.h b/asn.1/lpp_generated/ReferencePoint-r16.h similarity index 83% rename from asn.1/generated/ReferencePoint-r16.h rename to asn.1/lpp_generated/ReferencePoint-r16.h index 07d1fb63..4c07db27 100644 --- a/asn.1/generated/ReferencePoint-r16.h +++ b/asn.1/lpp_generated/ReferencePoint-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _ReferencePoint_r16_H_ @@ -14,6 +14,7 @@ /* Including external dependencies */ #include "EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.h" #include "HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15.h" +#include "LocalOrigin-r18.h" #include #include @@ -25,9 +26,9 @@ extern "C" { typedef enum ReferencePoint_r16__referencePointGeographicLocation_r16_PR { ReferencePoint_r16__referencePointGeographicLocation_r16_PR_NOTHING, /* No components present */ ReferencePoint_r16__referencePointGeographicLocation_r16_PR_location3D_r16, - ReferencePoint_r16__referencePointGeographicLocation_r16_PR_ha_location3D_r16 + ReferencePoint_r16__referencePointGeographicLocation_r16_PR_ha_location3D_r16, /* Extensions may appear below */ - + ReferencePoint_r16__referencePointGeographicLocation_r16_PR_localOrigin_v1800 } ReferencePoint_r16__referencePointGeographicLocation_r16_PR; /* ReferencePoint-r16 */ @@ -41,6 +42,7 @@ typedef struct ReferencePoint_r16 { * This type is extensible, * possible extensions are below. */ + LocalOrigin_r18_t localOrigin_v1800; } choice; /* Context for parsing across buffer boundaries */ diff --git a/asn.1/lpp_generated/ReferenceStationList-r16.c b/asn.1/lpp_generated/ReferenceStationList-r16.c new file mode 100644 index 00000000..1c6b1757 --- /dev/null +++ b/asn.1/lpp_generated/ReferenceStationList-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ReferenceStationList-r16.h" + +#include "GNSS-ReferenceStationID-r15.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ReferenceStationList_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_ReferenceStationList_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GNSS_ReferenceStationID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_ReferenceStationList_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_ReferenceStationList_r16_specs_1 = { + sizeof(struct ReferenceStationList_r16), + offsetof(struct ReferenceStationList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_ReferenceStationList_r16 = { + "ReferenceStationList-r16", + "ReferenceStationList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_ReferenceStationList_r16_tags_1, + sizeof(asn_DEF_ReferenceStationList_r16_tags_1) + /sizeof(asn_DEF_ReferenceStationList_r16_tags_1[0]), /* 1 */ + asn_DEF_ReferenceStationList_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_ReferenceStationList_r16_tags_1) + /sizeof(asn_DEF_ReferenceStationList_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ReferenceStationList_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_ReferenceStationList_r16_1, + 1, /* Single element */ + &asn_SPC_ReferenceStationList_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ReferenceStationList-r16.h b/asn.1/lpp_generated/ReferenceStationList-r16.h similarity index 80% rename from asn.1/generated/ReferenceStationList-r16.h rename to asn.1/lpp_generated/ReferenceStationList-r16.h index 5d1cd4ad..46e1ab0c 100644 --- a/asn.1/generated/ReferenceStationList-r16.h +++ b/asn.1/lpp_generated/ReferenceStationList-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _ReferenceStationList_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_ReferenceStationList_r16_constr_1; } #endif -/* Referred external types */ -#include "GNSS-ReferenceStationID-r15.h" - #endif /* _ReferenceStationList_r16_H_ */ #include diff --git a/asn.1/lpp_generated/ReferenceTRP-RTD-Info-r16.c b/asn.1/lpp_generated/ReferenceTRP-RTD-Info-r16.c new file mode 100644 index 00000000..cc28e4eb --- /dev/null +++ b/asn.1/lpp_generated/ReferenceTRP-RTD-Info-r16.c @@ -0,0 +1,310 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ReferenceTRP-RTD-Info-r16.h" + +#include "NCGI-r15.h" +#include "NR-TimingQuality-r16.h" +static int +memb_systemFrameNumber_r16_constraint_6(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 10UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dl_PRS_ID_Ref_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_systemFrameNumber_r16_constr_7 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_refTime_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ID_Ref_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_refTime_r16_6[] = { + { ATF_NOFLAGS, 0, offsetof(struct ReferenceTRP_RTD_Info_r16__refTime_r16, choice.systemFrameNumber_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_systemFrameNumber_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_systemFrameNumber_r16_constraint_6 + }, + 0, 0, /* No default value */ + "systemFrameNumber-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct ReferenceTRP_RTD_Info_r16__refTime_r16, choice.utc_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTCTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utc-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_refTime_r16_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* systemFrameNumber-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* utc-r16 */ +}; +static asn_CHOICE_specifics_t asn_SPC_refTime_r16_specs_6 = { + sizeof(struct ReferenceTRP_RTD_Info_r16__refTime_r16), + offsetof(struct ReferenceTRP_RTD_Info_r16__refTime_r16, _asn_ctx), + offsetof(struct ReferenceTRP_RTD_Info_r16__refTime_r16, present), + sizeof(((struct ReferenceTRP_RTD_Info_r16__refTime_r16 *)0)->present), + asn_MAP_refTime_r16_tag2el_6, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_refTime_r16_6 = { + "refTime-r16", + "refTime-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_refTime_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_refTime_r16_6, + 2, /* Elements count */ + &asn_SPC_refTime_r16_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ReferenceTRP_RTD_Info_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ReferenceTRP_RTD_Info_r16, dl_PRS_ID_Ref_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ID_Ref_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ID_Ref_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ID-Ref-r16" + }, + { ATF_POINTER, 3, offsetof(struct ReferenceTRP_RTD_Info_r16, nr_PhysCellID_Ref_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-Ref-r16" + }, + { ATF_POINTER, 2, offsetof(struct ReferenceTRP_RTD_Info_r16, nr_CellGlobalID_Ref_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-CellGlobalID-Ref-r16" + }, + { ATF_POINTER, 1, offsetof(struct ReferenceTRP_RTD_Info_r16, nr_ARFCN_Ref_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ARFCN-Ref-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct ReferenceTRP_RTD_Info_r16, refTime_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_refTime_r16_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "refTime-r16" + }, + { ATF_POINTER, 1, offsetof(struct ReferenceTRP_RTD_Info_r16, rtd_RefQuality_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_TimingQuality_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rtd-RefQuality-r16" + }, +}; +static const int asn_MAP_ReferenceTRP_RTD_Info_r16_oms_1[] = { 1, 2, 3, 5 }; +static const ber_tlv_tag_t asn_DEF_ReferenceTRP_RTD_Info_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ReferenceTRP_RTD_Info_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ID-Ref-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PhysCellID-Ref-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-CellGlobalID-Ref-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-ARFCN-Ref-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* refTime-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* rtd-RefQuality-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ReferenceTRP_RTD_Info_r16_specs_1 = { + sizeof(struct ReferenceTRP_RTD_Info_r16), + offsetof(struct ReferenceTRP_RTD_Info_r16, _asn_ctx), + asn_MAP_ReferenceTRP_RTD_Info_r16_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_ReferenceTRP_RTD_Info_r16_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ReferenceTRP_RTD_Info_r16 = { + "ReferenceTRP-RTD-Info-r16", + "ReferenceTRP-RTD-Info-r16", + &asn_OP_SEQUENCE, + asn_DEF_ReferenceTRP_RTD_Info_r16_tags_1, + sizeof(asn_DEF_ReferenceTRP_RTD_Info_r16_tags_1) + /sizeof(asn_DEF_ReferenceTRP_RTD_Info_r16_tags_1[0]), /* 1 */ + asn_DEF_ReferenceTRP_RTD_Info_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_ReferenceTRP_RTD_Info_r16_tags_1) + /sizeof(asn_DEF_ReferenceTRP_RTD_Info_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ReferenceTRP_RTD_Info_r16_1, + 6, /* Elements count */ + &asn_SPC_ReferenceTRP_RTD_Info_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/ReferenceTRP-RTD-Info-r16.h b/asn.1/lpp_generated/ReferenceTRP-RTD-Info-r16.h new file mode 100644 index 00000000..71fed830 --- /dev/null +++ b/asn.1/lpp_generated/ReferenceTRP-RTD-Info-r16.h @@ -0,0 +1,80 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _ReferenceTRP_RTD_Info_r16_H_ +#define _ReferenceTRP_RTD_Info_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include "NR-PhysCellID-r16.h" +#include "ARFCN-ValueNR-r15.h" +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum ReferenceTRP_RTD_Info_r16__refTime_r16_PR { + ReferenceTRP_RTD_Info_r16__refTime_r16_PR_NOTHING, /* No components present */ + ReferenceTRP_RTD_Info_r16__refTime_r16_PR_systemFrameNumber_r16, + ReferenceTRP_RTD_Info_r16__refTime_r16_PR_utc_r16 + /* Extensions may appear below */ + +} ReferenceTRP_RTD_Info_r16__refTime_r16_PR; + +/* Forward declarations */ +struct NCGI_r15; +struct NR_TimingQuality_r16; + +/* ReferenceTRP-RTD-Info-r16 */ +typedef struct ReferenceTRP_RTD_Info_r16 { + long dl_PRS_ID_Ref_r16; + NR_PhysCellID_r16_t *nr_PhysCellID_Ref_r16; /* OPTIONAL */ + struct NCGI_r15 *nr_CellGlobalID_Ref_r16; /* OPTIONAL */ + ARFCN_ValueNR_r15_t *nr_ARFCN_Ref_r16; /* OPTIONAL */ + struct ReferenceTRP_RTD_Info_r16__refTime_r16 { + ReferenceTRP_RTD_Info_r16__refTime_r16_PR present; + union ReferenceTRP_RTD_Info_r16__refTime_r16_u { + BIT_STRING_t systemFrameNumber_r16; + UTCTime_t utc_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } refTime_r16; + struct NR_TimingQuality_r16 *rtd_RefQuality_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ReferenceTRP_RTD_Info_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ReferenceTRP_RTD_Info_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_ReferenceTRP_RTD_Info_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_ReferenceTRP_RTD_Info_r16_1[6]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ReferenceTRP_RTD_Info_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/RegionIgpElement-r16.c b/asn.1/lpp_generated/RegionIgpElement-r16.c new file mode 100644 index 00000000..fa7e101c --- /dev/null +++ b/asn.1/lpp_generated/RegionIgpElement-r16.c @@ -0,0 +1,1598 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RegionIgpElement-r16.h" + +static int +memb_regionID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givei1_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givd1_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givei2_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givd2_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givei3_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givd3_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givei4_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givd4_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givei5_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givd5_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givei6_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givd6_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givei7_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givd7_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givei8_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givd8_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givei9_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givd9_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givei10_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givd10_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givei11_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givd11_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givei12_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givd12_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givei13_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givd13_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givei14_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givd14_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givei15_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_givd15_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_regionID_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givei1_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givd1_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givei2_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givd2_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givei3_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givd3_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givei4_r16_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givd4_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givei5_r16_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givd5_r16_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givei6_r16_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givd6_r16_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givei7_r16_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givd7_r16_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givei8_r16_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givd8_r16_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givei9_r16_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givd9_r16_constr_20 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givei10_r16_constr_21 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givd10_r16_constr_22 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givei11_r16_constr_23 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givd11_r16_constr_24 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givei12_r16_constr_25 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givd12_r16_constr_26 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givei13_r16_constr_27 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givd13_r16_constr_28 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givei14_r16_constr_29 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givd14_r16_constr_30 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givei15_r16_constr_31 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_givd15_r16_constr_32 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_RegionIgpElement_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, regionID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_regionID_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_regionID_r16_constraint_1 + }, + 0, 0, /* No default value */ + "regionID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei1_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givei1_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givei1_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givei1-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd1_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givd1_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givd1_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givd1-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei2_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givei2_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givei2_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givei2-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd2_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givd2_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givd2_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givd2-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei3_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givei3_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givei3_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givei3-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd3_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givd3_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givd3_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givd3-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei4_r16), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givei4_r16_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givei4_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givei4-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd4_r16), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givd4_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givd4_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givd4-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei5_r16), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givei5_r16_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givei5_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givei5-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd5_r16), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givd5_r16_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givd5_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givd5-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei6_r16), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givei6_r16_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givei6_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givei6-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd6_r16), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givd6_r16_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givd6_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givd6-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei7_r16), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givei7_r16_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givei7_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givei7-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd7_r16), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givd7_r16_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givd7_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givd7-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei8_r16), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givei8_r16_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givei8_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givei8-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd8_r16), + (ASN_TAG_CLASS_CONTEXT | (16 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givd8_r16_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givd8_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givd8-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei9_r16), + (ASN_TAG_CLASS_CONTEXT | (17 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givei9_r16_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givei9_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givei9-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd9_r16), + (ASN_TAG_CLASS_CONTEXT | (18 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givd9_r16_constr_20, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givd9_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givd9-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei10_r16), + (ASN_TAG_CLASS_CONTEXT | (19 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givei10_r16_constr_21, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givei10_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givei10-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd10_r16), + (ASN_TAG_CLASS_CONTEXT | (20 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givd10_r16_constr_22, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givd10_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givd10-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei11_r16), + (ASN_TAG_CLASS_CONTEXT | (21 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givei11_r16_constr_23, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givei11_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givei11-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd11_r16), + (ASN_TAG_CLASS_CONTEXT | (22 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givd11_r16_constr_24, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givd11_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givd11-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei12_r16), + (ASN_TAG_CLASS_CONTEXT | (23 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givei12_r16_constr_25, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givei12_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givei12-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd12_r16), + (ASN_TAG_CLASS_CONTEXT | (24 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givd12_r16_constr_26, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givd12_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givd12-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei13_r16), + (ASN_TAG_CLASS_CONTEXT | (25 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givei13_r16_constr_27, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givei13_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givei13-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd13_r16), + (ASN_TAG_CLASS_CONTEXT | (26 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givd13_r16_constr_28, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givd13_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givd13-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei14_r16), + (ASN_TAG_CLASS_CONTEXT | (27 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givei14_r16_constr_29, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givei14_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givei14-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd14_r16), + (ASN_TAG_CLASS_CONTEXT | (28 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givd14_r16_constr_30, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givd14_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givd14-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givei15_r16), + (ASN_TAG_CLASS_CONTEXT | (29 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givei15_r16_constr_31, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givei15_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givei15-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RegionIgpElement_r16, givd15_r16), + (ASN_TAG_CLASS_CONTEXT | (30 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_givd15_r16_constr_32, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_givd15_r16_constraint_1 + }, + 0, 0, /* No default value */ + "givd15-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_RegionIgpElement_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RegionIgpElement_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* regionID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* givei1-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* givd1-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* givei2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* givd2-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* givei3-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* givd3-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* givei4-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* givd4-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* givei5-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* givd5-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* givei6-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* givd6-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* givei7-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* givd7-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* givei8-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 }, /* givd8-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (17 << 2)), 17, 0, 0 }, /* givei9-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (18 << 2)), 18, 0, 0 }, /* givd9-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (19 << 2)), 19, 0, 0 }, /* givei10-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (20 << 2)), 20, 0, 0 }, /* givd10-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (21 << 2)), 21, 0, 0 }, /* givei11-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (22 << 2)), 22, 0, 0 }, /* givd11-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (23 << 2)), 23, 0, 0 }, /* givei12-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (24 << 2)), 24, 0, 0 }, /* givd12-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (25 << 2)), 25, 0, 0 }, /* givei13-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (26 << 2)), 26, 0, 0 }, /* givd13-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (27 << 2)), 27, 0, 0 }, /* givei14-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (28 << 2)), 28, 0, 0 }, /* givd14-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (29 << 2)), 29, 0, 0 }, /* givei15-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (30 << 2)), 30, 0, 0 } /* givd15-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RegionIgpElement_r16_specs_1 = { + sizeof(struct RegionIgpElement_r16), + offsetof(struct RegionIgpElement_r16, _asn_ctx), + asn_MAP_RegionIgpElement_r16_tag2el_1, + 31, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 31, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RegionIgpElement_r16 = { + "RegionIgpElement-r16", + "RegionIgpElement-r16", + &asn_OP_SEQUENCE, + asn_DEF_RegionIgpElement_r16_tags_1, + sizeof(asn_DEF_RegionIgpElement_r16_tags_1) + /sizeof(asn_DEF_RegionIgpElement_r16_tags_1[0]), /* 1 */ + asn_DEF_RegionIgpElement_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_RegionIgpElement_r16_tags_1) + /sizeof(asn_DEF_RegionIgpElement_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RegionIgpElement_r16_1, + 31, /* Elements count */ + &asn_SPC_RegionIgpElement_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/RegionIgpElement-r16.h b/asn.1/lpp_generated/RegionIgpElement-r16.h similarity index 85% rename from asn.1/generated/RegionIgpElement-r16.h rename to asn.1/lpp_generated/RegionIgpElement-r16.h index 63b58bc8..2704db7e 100644 --- a/asn.1/generated/RegionIgpElement-r16.h +++ b/asn.1/lpp_generated/RegionIgpElement-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _RegionIgpElement_r16_H_ diff --git a/asn.1/lpp_generated/RegionIgpList-r16.c b/asn.1/lpp_generated/RegionIgpList-r16.c new file mode 100644 index 00000000..7628782d --- /dev/null +++ b/asn.1/lpp_generated/RegionIgpList-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RegionIgpList-r16.h" + +#include "RegionIgpElement-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RegionIgpList_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_RegionIgpList_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_RegionIgpElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_RegionIgpList_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_RegionIgpList_r16_specs_1 = { + sizeof(struct RegionIgpList_r16), + offsetof(struct RegionIgpList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_RegionIgpList_r16 = { + "RegionIgpList-r16", + "RegionIgpList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_RegionIgpList_r16_tags_1, + sizeof(asn_DEF_RegionIgpList_r16_tags_1) + /sizeof(asn_DEF_RegionIgpList_r16_tags_1[0]), /* 1 */ + asn_DEF_RegionIgpList_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_RegionIgpList_r16_tags_1) + /sizeof(asn_DEF_RegionIgpList_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RegionIgpList_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_RegionIgpList_r16_1, + 1, /* Single element */ + &asn_SPC_RegionIgpList_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/RegionIgpList-r16.h b/asn.1/lpp_generated/RegionIgpList-r16.h similarity index 79% rename from asn.1/generated/RegionIgpList-r16.h rename to asn.1/lpp_generated/RegionIgpList-r16.h index 4016fc17..fb872abb 100644 --- a/asn.1/generated/RegionIgpList-r16.h +++ b/asn.1/lpp_generated/RegionIgpList-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _RegionIgpList_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_RegionIgpList_r16_constr_1; } #endif -/* Referred external types */ -#include "RegionIgpElement-r16.h" - #endif /* _RegionIgpList_r16_H_ */ #include diff --git a/asn.1/lpp_generated/RelativeCartesianLocation-r18.c b/asn.1/lpp_generated/RelativeCartesianLocation-r18.c new file mode 100644 index 00000000..57b19dde --- /dev/null +++ b/asn.1/lpp_generated/RelativeCartesianLocation-r18.c @@ -0,0 +1,203 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RelativeCartesianLocation-r18.h" + +#include "LocationUncertainty-r16.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cartesianCoordinatesUnits_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cartesianCoordinatesUnits_r18_value2enum_2[] = { + { 0, 2, "mm" }, + { 1, 2, "cm" }, + { 2, 2, "dm" }, + { 3, 1, "m" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cartesianCoordinatesUnits_r18_enum2value_2[] = { + 1, /* cm(1) */ + 2, /* dm(2) */ + 3, /* m(3) */ + 0 /* mm(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cartesianCoordinatesUnits_r18_specs_2 = { + asn_MAP_cartesianCoordinatesUnits_r18_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cartesianCoordinatesUnits_r18_enum2value_2, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cartesianCoordinatesUnits_r18_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cartesianCoordinatesUnits_r18_2 = { + "cartesianCoordinatesUnits-r18", + "cartesianCoordinatesUnits-r18", + &asn_OP_NativeEnumerated, + asn_DEF_cartesianCoordinatesUnits_r18_tags_2, + sizeof(asn_DEF_cartesianCoordinatesUnits_r18_tags_2) + /sizeof(asn_DEF_cartesianCoordinatesUnits_r18_tags_2[0]) - 1, /* 1 */ + asn_DEF_cartesianCoordinatesUnits_r18_tags_2, /* Same as above */ + sizeof(asn_DEF_cartesianCoordinatesUnits_r18_tags_2) + /sizeof(asn_DEF_cartesianCoordinatesUnits_r18_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cartesianCoordinatesUnits_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cartesianCoordinatesUnits_r18_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_RelativeCartesianLocation_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RelativeCartesianLocation_r18, cartesianCoordinatesUnits_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cartesianCoordinatesUnits_r18_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cartesianCoordinatesUnits-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct RelativeCartesianLocation_r18, x_value_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_X_Value_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "x-value-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct RelativeCartesianLocation_r18, y_value_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Y_Value_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "y-value-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct RelativeCartesianLocation_r18, z_value_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Z_Value_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "z-value-r18" + }, + { ATF_POINTER, 1, offsetof(struct RelativeCartesianLocation_r18, locationUnc_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationUncertainty_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationUnc-r18" + }, +}; +static const int asn_MAP_RelativeCartesianLocation_r18_oms_1[] = { 4 }; +static const ber_tlv_tag_t asn_DEF_RelativeCartesianLocation_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RelativeCartesianLocation_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cartesianCoordinatesUnits-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* x-value-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* y-value-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* z-value-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* locationUnc-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RelativeCartesianLocation_r18_specs_1 = { + sizeof(struct RelativeCartesianLocation_r18), + offsetof(struct RelativeCartesianLocation_r18, _asn_ctx), + asn_MAP_RelativeCartesianLocation_r18_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_RelativeCartesianLocation_r18_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RelativeCartesianLocation_r18 = { + "RelativeCartesianLocation-r18", + "RelativeCartesianLocation-r18", + &asn_OP_SEQUENCE, + asn_DEF_RelativeCartesianLocation_r18_tags_1, + sizeof(asn_DEF_RelativeCartesianLocation_r18_tags_1) + /sizeof(asn_DEF_RelativeCartesianLocation_r18_tags_1[0]), /* 1 */ + asn_DEF_RelativeCartesianLocation_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_RelativeCartesianLocation_r18_tags_1) + /sizeof(asn_DEF_RelativeCartesianLocation_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RelativeCartesianLocation_r18_1, + 5, /* Elements count */ + &asn_SPC_RelativeCartesianLocation_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/RelativeCartesianLocation-r18.h b/asn.1/lpp_generated/RelativeCartesianLocation-r18.h new file mode 100644 index 00000000..f0df5da2 --- /dev/null +++ b/asn.1/lpp_generated/RelativeCartesianLocation-r18.h @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _RelativeCartesianLocation_r18_H_ +#define _RelativeCartesianLocation_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include "X-Value-r18.h" +#include "Y-Value-r18.h" +#include "Z-Value-r18.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum RelativeCartesianLocation_r18__cartesianCoordinatesUnits_r18 { + RelativeCartesianLocation_r18__cartesianCoordinatesUnits_r18_mm = 0, + RelativeCartesianLocation_r18__cartesianCoordinatesUnits_r18_cm = 1, + RelativeCartesianLocation_r18__cartesianCoordinatesUnits_r18_dm = 2, + RelativeCartesianLocation_r18__cartesianCoordinatesUnits_r18_m = 3 + /* + * Enumeration is extensible + */ +} e_RelativeCartesianLocation_r18__cartesianCoordinatesUnits_r18; + +/* Forward declarations */ +struct LocationUncertainty_r16; + +/* RelativeCartesianLocation-r18 */ +typedef struct RelativeCartesianLocation_r18 { + long cartesianCoordinatesUnits_r18; + X_Value_r18_t x_value_r18; + Y_Value_r18_t y_value_r18; + Z_Value_r18_t z_value_r18; + struct LocationUncertainty_r16 *locationUnc_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RelativeCartesianLocation_r18_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_cartesianCoordinatesUnits_r18_2; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_RelativeCartesianLocation_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_RelativeCartesianLocation_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_RelativeCartesianLocation_r18_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _RelativeCartesianLocation_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/RelativeLocation-r16.c b/asn.1/lpp_generated/RelativeLocation-r16.c new file mode 100644 index 00000000..8cb679ed --- /dev/null +++ b/asn.1/lpp_generated/RelativeLocation-r16.c @@ -0,0 +1,281 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RelativeLocation-r16.h" + +#include "LocationUncertainty-r16.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_milli_arc_second_units_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_height_units_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_milli_arc_second_units_r16_value2enum_2[] = { + { 0, 7, "mas0-03" }, + { 1, 6, "mas0-3" }, + { 2, 4, "mas3" }, + { 3, 5, "mas30" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_milli_arc_second_units_r16_enum2value_2[] = { + 0, /* mas0-03(0) */ + 1, /* mas0-3(1) */ + 2, /* mas3(2) */ + 3 /* mas30(3) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_milli_arc_second_units_r16_specs_2 = { + asn_MAP_milli_arc_second_units_r16_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_milli_arc_second_units_r16_enum2value_2, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_milli_arc_second_units_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_milli_arc_second_units_r16_2 = { + "milli-arc-second-units-r16", + "milli-arc-second-units-r16", + &asn_OP_NativeEnumerated, + asn_DEF_milli_arc_second_units_r16_tags_2, + sizeof(asn_DEF_milli_arc_second_units_r16_tags_2) + /sizeof(asn_DEF_milli_arc_second_units_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_milli_arc_second_units_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_milli_arc_second_units_r16_tags_2) + /sizeof(asn_DEF_milli_arc_second_units_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_milli_arc_second_units_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_milli_arc_second_units_r16_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_height_units_r16_value2enum_8[] = { + { 0, 2, "mm" }, + { 1, 2, "cm" }, + { 2, 1, "m" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_height_units_r16_enum2value_8[] = { + 1, /* cm(1) */ + 2, /* m(2) */ + 0 /* mm(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_height_units_r16_specs_8 = { + asn_MAP_height_units_r16_value2enum_8, /* "tag" => N; sorted by tag */ + asn_MAP_height_units_r16_enum2value_8, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 4, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_height_units_r16_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_height_units_r16_8 = { + "height-units-r16", + "height-units-r16", + &asn_OP_NativeEnumerated, + asn_DEF_height_units_r16_tags_8, + sizeof(asn_DEF_height_units_r16_tags_8) + /sizeof(asn_DEF_height_units_r16_tags_8[0]) - 1, /* 1 */ + asn_DEF_height_units_r16_tags_8, /* Same as above */ + sizeof(asn_DEF_height_units_r16_tags_8) + /sizeof(asn_DEF_height_units_r16_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_height_units_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_height_units_r16_specs_8 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_RelativeLocation_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RelativeLocation_r16, milli_arc_second_units_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_milli_arc_second_units_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "milli-arc-second-units-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RelativeLocation_r16, height_units_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_height_units_r16_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "height-units-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RelativeLocation_r16, delta_latitude_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Delta_Latitude_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "delta-latitude-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RelativeLocation_r16, delta_longitude_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Delta_Longitude_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "delta-longitude-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RelativeLocation_r16, delta_height_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Delta_Height_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "delta-height-r16" + }, + { ATF_POINTER, 1, offsetof(struct RelativeLocation_r16, locationUNC_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationUncertainty_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationUNC-r16" + }, +}; +static const int asn_MAP_RelativeLocation_r16_oms_1[] = { 5 }; +static const ber_tlv_tag_t asn_DEF_RelativeLocation_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RelativeLocation_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* milli-arc-second-units-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* height-units-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* delta-latitude-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* delta-longitude-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* delta-height-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* locationUNC-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RelativeLocation_r16_specs_1 = { + sizeof(struct RelativeLocation_r16), + offsetof(struct RelativeLocation_r16, _asn_ctx), + asn_MAP_RelativeLocation_r16_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_RelativeLocation_r16_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RelativeLocation_r16 = { + "RelativeLocation-r16", + "RelativeLocation-r16", + &asn_OP_SEQUENCE, + asn_DEF_RelativeLocation_r16_tags_1, + sizeof(asn_DEF_RelativeLocation_r16_tags_1) + /sizeof(asn_DEF_RelativeLocation_r16_tags_1[0]), /* 1 */ + asn_DEF_RelativeLocation_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_RelativeLocation_r16_tags_1) + /sizeof(asn_DEF_RelativeLocation_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RelativeLocation_r16_1, + 6, /* Elements count */ + &asn_SPC_RelativeLocation_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/RelativeLocation-r16.h b/asn.1/lpp_generated/RelativeLocation-r16.h similarity index 87% rename from asn.1/generated/RelativeLocation-r16.h rename to asn.1/lpp_generated/RelativeLocation-r16.h index fdbb06f9..126128d3 100644 --- a/asn.1/generated/RelativeLocation-r16.h +++ b/asn.1/lpp_generated/RelativeLocation-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _RelativeLocation_r16_H_ @@ -51,7 +51,7 @@ typedef struct RelativeLocation_r16 { Delta_Latitude_r16_t delta_latitude_r16; Delta_Longitude_r16_t delta_longitude_r16; Delta_Height_r16_t delta_height_r16; - struct LocationUncertainty_r16 *locationUNC_r16 /* OPTIONAL */; + struct LocationUncertainty_r16 *locationUNC_r16; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -72,8 +72,5 @@ extern asn_TYPE_member_t asn_MBR_RelativeLocation_r16_1[6]; } #endif -/* Referred external types */ -#include "LocationUncertainty-r16.h" - #endif /* _RelativeLocation_r16_H_ */ #include diff --git a/asn.1/lpp_generated/RelativeLocationElement-r16.c b/asn.1/lpp_generated/RelativeLocationElement-r16.c new file mode 100644 index 00000000..e36eb3b8 --- /dev/null +++ b/asn.1/lpp_generated/RelativeLocationElement-r16.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RelativeLocationElement-r16.h" + +static int +memb_deltaLatitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -512L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_deltaLongitude_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_deltaLatitude_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_deltaLongitude_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_RelativeLocationElement_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RelativeLocationElement_r16, deltaLatitude_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_deltaLatitude_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_deltaLatitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "deltaLatitude-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct RelativeLocationElement_r16, deltaLongitude_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_deltaLongitude_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_deltaLongitude_r16_constraint_1 + }, + 0, 0, /* No default value */ + "deltaLongitude-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_RelativeLocationElement_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RelativeLocationElement_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* deltaLatitude-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* deltaLongitude-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RelativeLocationElement_r16_specs_1 = { + sizeof(struct RelativeLocationElement_r16), + offsetof(struct RelativeLocationElement_r16, _asn_ctx), + asn_MAP_RelativeLocationElement_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RelativeLocationElement_r16 = { + "RelativeLocationElement-r16", + "RelativeLocationElement-r16", + &asn_OP_SEQUENCE, + asn_DEF_RelativeLocationElement_r16_tags_1, + sizeof(asn_DEF_RelativeLocationElement_r16_tags_1) + /sizeof(asn_DEF_RelativeLocationElement_r16_tags_1[0]), /* 1 */ + asn_DEF_RelativeLocationElement_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_RelativeLocationElement_r16_tags_1) + /sizeof(asn_DEF_RelativeLocationElement_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RelativeLocationElement_r16_1, + 2, /* Elements count */ + &asn_SPC_RelativeLocationElement_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/RelativeLocationElement-r16.h b/asn.1/lpp_generated/RelativeLocationElement-r16.h new file mode 100644 index 00000000..9dc56c82 --- /dev/null +++ b/asn.1/lpp_generated/RelativeLocationElement-r16.h @@ -0,0 +1,45 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _RelativeLocationElement_r16_H_ +#define _RelativeLocationElement_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* RelativeLocationElement-r16 */ +typedef struct RelativeLocationElement_r16 { + long deltaLatitude_r16; + long deltaLongitude_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RelativeLocationElement_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RelativeLocationElement_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_RelativeLocationElement_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_RelativeLocationElement_r16_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _RelativeLocationElement_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/ReportingDuration.c b/asn.1/lpp_generated/ReportingDuration.c new file mode 100644 index 00000000..c94732eb --- /dev/null +++ b/asn.1/lpp_generated/ReportingDuration.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ReportingDuration.h" + +int +ReportingDuration_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ReportingDuration_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_ReportingDuration_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ReportingDuration = { + "ReportingDuration", + "ReportingDuration", + &asn_OP_NativeInteger, + asn_DEF_ReportingDuration_tags_1, + sizeof(asn_DEF_ReportingDuration_tags_1) + /sizeof(asn_DEF_ReportingDuration_tags_1[0]), /* 1 */ + asn_DEF_ReportingDuration_tags_1, /* Same as above */ + sizeof(asn_DEF_ReportingDuration_tags_1) + /sizeof(asn_DEF_ReportingDuration_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ReportingDuration_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + ReportingDuration_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/lpp_generated/ReportingDuration.h b/asn.1/lpp_generated/ReportingDuration.h new file mode 100644 index 00000000..b15360f6 --- /dev/null +++ b/asn.1/lpp_generated/ReportingDuration.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _ReportingDuration_H_ +#define _ReportingDuration_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* ReportingDuration */ +typedef long ReportingDuration_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_ReportingDuration_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_ReportingDuration; +asn_struct_free_f ReportingDuration_free; +asn_constr_check_f ReportingDuration_constraint; +xer_type_decoder_f ReportingDuration_decode_xer; +xer_type_encoder_f ReportingDuration_encode_xer; +jer_type_encoder_f ReportingDuration_encode_jer; +per_type_decoder_f ReportingDuration_decode_uper; +per_type_encoder_f ReportingDuration_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ReportingDuration_H_ */ +#include diff --git a/asn.1/lpp_generated/ReqNavListInfo.c b/asn.1/lpp_generated/ReqNavListInfo.c new file mode 100644 index 00000000..68d88b52 --- /dev/null +++ b/asn.1/lpp_generated/ReqNavListInfo.c @@ -0,0 +1,410 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ReqNavListInfo.h" + +static int +memb_NativeInteger_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 8L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_NativeInteger_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 8L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_svReqList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 64UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_clockModelID_PrefList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 8UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_orbitModelID_PrefList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 8UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_clockModelID_PrefList_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_orbitModelID_PrefList_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_svReqList_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 64, 64 } /* (SIZE(64..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_clockModelID_PrefList_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_orbitModelID_PrefList_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_clockModelID_PrefList_3[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_NativeInteger_constraint_3 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_clockModelID_PrefList_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_clockModelID_PrefList_specs_3 = { + sizeof(struct ReqNavListInfo__clockModelID_PrefList), + offsetof(struct ReqNavListInfo__clockModelID_PrefList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_clockModelID_PrefList_3 = { + "clockModelID-PrefList", + "clockModelID-PrefList", + &asn_OP_SEQUENCE_OF, + asn_DEF_clockModelID_PrefList_tags_3, + sizeof(asn_DEF_clockModelID_PrefList_tags_3) + /sizeof(asn_DEF_clockModelID_PrefList_tags_3[0]) - 1, /* 1 */ + asn_DEF_clockModelID_PrefList_tags_3, /* Same as above */ + sizeof(asn_DEF_clockModelID_PrefList_tags_3) + /sizeof(asn_DEF_clockModelID_PrefList_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_clockModelID_PrefList_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_clockModelID_PrefList_3, + 1, /* Single element */ + &asn_SPC_clockModelID_PrefList_specs_3 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_orbitModelID_PrefList_5[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_NativeInteger_constraint_5 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_orbitModelID_PrefList_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_orbitModelID_PrefList_specs_5 = { + sizeof(struct ReqNavListInfo__orbitModelID_PrefList), + offsetof(struct ReqNavListInfo__orbitModelID_PrefList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_orbitModelID_PrefList_5 = { + "orbitModelID-PrefList", + "orbitModelID-PrefList", + &asn_OP_SEQUENCE_OF, + asn_DEF_orbitModelID_PrefList_tags_5, + sizeof(asn_DEF_orbitModelID_PrefList_tags_5) + /sizeof(asn_DEF_orbitModelID_PrefList_tags_5[0]) - 1, /* 1 */ + asn_DEF_orbitModelID_PrefList_tags_5, /* Same as above */ + sizeof(asn_DEF_orbitModelID_PrefList_tags_5) + /sizeof(asn_DEF_orbitModelID_PrefList_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_orbitModelID_PrefList_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_orbitModelID_PrefList_5, + 1, /* Single element */ + &asn_SPC_orbitModelID_PrefList_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ReqNavListInfo_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ReqNavListInfo, svReqList), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_svReqList_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_svReqList_constraint_1 + }, + 0, 0, /* No default value */ + "svReqList" + }, + { ATF_POINTER, 3, offsetof(struct ReqNavListInfo, clockModelID_PrefList), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_clockModelID_PrefList_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_clockModelID_PrefList_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_clockModelID_PrefList_constraint_1 + }, + 0, 0, /* No default value */ + "clockModelID-PrefList" + }, + { ATF_POINTER, 2, offsetof(struct ReqNavListInfo, orbitModelID_PrefList), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_orbitModelID_PrefList_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_orbitModelID_PrefList_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_orbitModelID_PrefList_constraint_1 + }, + 0, 0, /* No default value */ + "orbitModelID-PrefList" + }, + { ATF_POINTER, 1, offsetof(struct ReqNavListInfo, addNavparamReq), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "addNavparamReq" + }, +}; +static const int asn_MAP_ReqNavListInfo_oms_1[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ReqNavListInfo_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ReqNavListInfo_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svReqList */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* clockModelID-PrefList */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* orbitModelID-PrefList */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* addNavparamReq */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ReqNavListInfo_specs_1 = { + sizeof(struct ReqNavListInfo), + offsetof(struct ReqNavListInfo, _asn_ctx), + asn_MAP_ReqNavListInfo_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_ReqNavListInfo_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ReqNavListInfo = { + "ReqNavListInfo", + "ReqNavListInfo", + &asn_OP_SEQUENCE, + asn_DEF_ReqNavListInfo_tags_1, + sizeof(asn_DEF_ReqNavListInfo_tags_1) + /sizeof(asn_DEF_ReqNavListInfo_tags_1[0]), /* 1 */ + asn_DEF_ReqNavListInfo_tags_1, /* Same as above */ + sizeof(asn_DEF_ReqNavListInfo_tags_1) + /sizeof(asn_DEF_ReqNavListInfo_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ReqNavListInfo_1, + 4, /* Elements count */ + &asn_SPC_ReqNavListInfo_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ReqNavListInfo.h b/asn.1/lpp_generated/ReqNavListInfo.h similarity index 82% rename from asn.1/generated/ReqNavListInfo.h rename to asn.1/lpp_generated/ReqNavListInfo.h index 3d08b7b0..aa7c4da7 100644 --- a/asn.1/generated/ReqNavListInfo.h +++ b/asn.1/lpp_generated/ReqNavListInfo.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _ReqNavListInfo_H_ @@ -38,7 +38,7 @@ typedef struct ReqNavListInfo { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *orbitModelID_PrefList; - BOOLEAN_t *addNavparamReq /* OPTIONAL */; + BOOLEAN_t *addNavparamReq; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/RequestAssistanceData-r9-IEs.c b/asn.1/lpp_generated/RequestAssistanceData-r9-IEs.c new file mode 100644 index 00000000..cafe1721 --- /dev/null +++ b/asn.1/lpp_generated/RequestAssistanceData-r9-IEs.c @@ -0,0 +1,442 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RequestAssistanceData-r9-IEs.h" + +#include "CommonIEsRequestAssistanceData.h" +#include "A-GNSS-RequestAssistanceData.h" +#include "OTDOA-RequestAssistanceData.h" +#include "EPDU-Sequence.h" +#include "Sensor-RequestAssistanceData-r14.h" +#include "TBS-RequestAssistanceData-r14.h" +#include "WLAN-RequestAssistanceData-r14.h" +#include "NR-Multi-RTT-RequestAssistanceData-r16.h" +#include "NR-DL-AoD-RequestAssistanceData-r16.h" +#include "NR-DL-TDOA-RequestAssistanceData-r16.h" +#include "BT-RequestAssistanceData-r18.h" +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 3, offsetof(struct RequestAssistanceData_r9_IEs__ext1, sensor_RequestAssistanceData_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Sensor_RequestAssistanceData_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensor-RequestAssistanceData-r14" + }, + { ATF_POINTER, 2, offsetof(struct RequestAssistanceData_r9_IEs__ext1, tbs_RequestAssistanceData_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TBS_RequestAssistanceData_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tbs-RequestAssistanceData-r14" + }, + { ATF_POINTER, 1, offsetof(struct RequestAssistanceData_r9_IEs__ext1, wlan_RequestAssistanceData_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WLAN_RequestAssistanceData_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wlan-RequestAssistanceData-r14" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-RequestAssistanceData-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tbs-RequestAssistanceData-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* wlan-RequestAssistanceData-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct RequestAssistanceData_r9_IEs__ext1), + offsetof(struct RequestAssistanceData_r9_IEs__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 3, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 3, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_11[] = { + { ATF_POINTER, 3, offsetof(struct RequestAssistanceData_r9_IEs__ext2, nr_Multi_RTT_RequestAssistanceData_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_Multi_RTT_RequestAssistanceData_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-Multi-RTT-RequestAssistanceData-r16" + }, + { ATF_POINTER, 2, offsetof(struct RequestAssistanceData_r9_IEs__ext2, nr_DL_AoD_RequestAssistanceData_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_AoD_RequestAssistanceData_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-RequestAssistanceData-r16" + }, + { ATF_POINTER, 1, offsetof(struct RequestAssistanceData_r9_IEs__ext2, nr_DL_TDOA_RequestAssistanceData_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_TDOA_RequestAssistanceData_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-RequestAssistanceData-r16" + }, +}; +static const int asn_MAP_ext2_oms_11[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-Multi-RTT-RequestAssistanceData-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-DL-AoD-RequestAssistanceData-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* nr-DL-TDOA-RequestAssistanceData-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_11 = { + sizeof(struct RequestAssistanceData_r9_IEs__ext2), + offsetof(struct RequestAssistanceData_r9_IEs__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_11, + 3, /* Count of tags in the map */ + asn_MAP_ext2_oms_11, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_11 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_11, + sizeof(asn_DEF_ext2_tags_11) + /sizeof(asn_DEF_ext2_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_11, /* Same as above */ + sizeof(asn_DEF_ext2_tags_11) + /sizeof(asn_DEF_ext2_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_11, + 3, /* Elements count */ + &asn_SPC_ext2_specs_11 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_15[] = { + { ATF_POINTER, 1, offsetof(struct RequestAssistanceData_r9_IEs__ext3, bt_RequestAssistanceData_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BT_RequestAssistanceData_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-RequestAssistanceData-r18" + }, +}; +static const int asn_MAP_ext3_oms_15[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_15[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* bt-RequestAssistanceData-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_15 = { + sizeof(struct RequestAssistanceData_r9_IEs__ext3), + offsetof(struct RequestAssistanceData_r9_IEs__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_15, + 1, /* Count of tags in the map */ + asn_MAP_ext3_oms_15, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_15 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_15, + sizeof(asn_DEF_ext3_tags_15) + /sizeof(asn_DEF_ext3_tags_15[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_15, /* Same as above */ + sizeof(asn_DEF_ext3_tags_15) + /sizeof(asn_DEF_ext3_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_15, + 1, /* Elements count */ + &asn_SPC_ext3_specs_15 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_RequestAssistanceData_r9_IEs_1[] = { + { ATF_POINTER, 7, offsetof(struct RequestAssistanceData_r9_IEs, commonIEsRequestAssistanceData), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CommonIEsRequestAssistanceData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "commonIEsRequestAssistanceData" + }, + { ATF_POINTER, 6, offsetof(struct RequestAssistanceData_r9_IEs, a_gnss_RequestAssistanceData), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_A_GNSS_RequestAssistanceData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "a-gnss-RequestAssistanceData" + }, + { ATF_POINTER, 5, offsetof(struct RequestAssistanceData_r9_IEs, otdoa_RequestAssistanceData), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OTDOA_RequestAssistanceData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "otdoa-RequestAssistanceData" + }, + { ATF_POINTER, 4, offsetof(struct RequestAssistanceData_r9_IEs, epdu_RequestAssistanceData), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EPDU_Sequence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epdu-RequestAssistanceData" + }, + { ATF_POINTER, 3, offsetof(struct RequestAssistanceData_r9_IEs, ext1), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 2, offsetof(struct RequestAssistanceData_r9_IEs, ext2), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext2_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 1, offsetof(struct RequestAssistanceData_r9_IEs, ext3), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext3_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, +}; +static const int asn_MAP_RequestAssistanceData_r9_IEs_oms_1[] = { 0, 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_RequestAssistanceData_r9_IEs_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RequestAssistanceData_r9_IEs_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* commonIEsRequestAssistanceData */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* a-gnss-RequestAssistanceData */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* otdoa-RequestAssistanceData */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* epdu-RequestAssistanceData */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext3 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RequestAssistanceData_r9_IEs_specs_1 = { + sizeof(struct RequestAssistanceData_r9_IEs), + offsetof(struct RequestAssistanceData_r9_IEs, _asn_ctx), + asn_MAP_RequestAssistanceData_r9_IEs_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_RequestAssistanceData_r9_IEs_oms_1, /* Optional members */ + 4, 3, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RequestAssistanceData_r9_IEs = { + "RequestAssistanceData-r9-IEs", + "RequestAssistanceData-r9-IEs", + &asn_OP_SEQUENCE, + asn_DEF_RequestAssistanceData_r9_IEs_tags_1, + sizeof(asn_DEF_RequestAssistanceData_r9_IEs_tags_1) + /sizeof(asn_DEF_RequestAssistanceData_r9_IEs_tags_1[0]), /* 1 */ + asn_DEF_RequestAssistanceData_r9_IEs_tags_1, /* Same as above */ + sizeof(asn_DEF_RequestAssistanceData_r9_IEs_tags_1) + /sizeof(asn_DEF_RequestAssistanceData_r9_IEs_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RequestAssistanceData_r9_IEs_1, + 7, /* Elements count */ + &asn_SPC_RequestAssistanceData_r9_IEs_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/RequestAssistanceData-r9-IEs.h b/asn.1/lpp_generated/RequestAssistanceData-r9-IEs.h new file mode 100644 index 00000000..5680856a --- /dev/null +++ b/asn.1/lpp_generated/RequestAssistanceData-r9-IEs.h @@ -0,0 +1,81 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _RequestAssistanceData_r9_IEs_H_ +#define _RequestAssistanceData_r9_IEs_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CommonIEsRequestAssistanceData; +struct A_GNSS_RequestAssistanceData; +struct OTDOA_RequestAssistanceData; +struct EPDU_Sequence; +struct Sensor_RequestAssistanceData_r14; +struct TBS_RequestAssistanceData_r14; +struct WLAN_RequestAssistanceData_r14; +struct NR_Multi_RTT_RequestAssistanceData_r16; +struct NR_DL_AoD_RequestAssistanceData_r16; +struct NR_DL_TDOA_RequestAssistanceData_r16; +struct BT_RequestAssistanceData_r18; + +/* RequestAssistanceData-r9-IEs */ +typedef struct RequestAssistanceData_r9_IEs { + struct CommonIEsRequestAssistanceData *commonIEsRequestAssistanceData; /* OPTIONAL */ + struct A_GNSS_RequestAssistanceData *a_gnss_RequestAssistanceData; /* OPTIONAL */ + struct OTDOA_RequestAssistanceData *otdoa_RequestAssistanceData; /* OPTIONAL */ + struct EPDU_Sequence *epdu_RequestAssistanceData; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct RequestAssistanceData_r9_IEs__ext1 { + struct Sensor_RequestAssistanceData_r14 *sensor_RequestAssistanceData_r14; /* OPTIONAL */ + struct TBS_RequestAssistanceData_r14 *tbs_RequestAssistanceData_r14; /* OPTIONAL */ + struct WLAN_RequestAssistanceData_r14 *wlan_RequestAssistanceData_r14; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct RequestAssistanceData_r9_IEs__ext2 { + struct NR_Multi_RTT_RequestAssistanceData_r16 *nr_Multi_RTT_RequestAssistanceData_r16; /* OPTIONAL */ + struct NR_DL_AoD_RequestAssistanceData_r16 *nr_DL_AoD_RequestAssistanceData_r16; /* OPTIONAL */ + struct NR_DL_TDOA_RequestAssistanceData_r16 *nr_DL_TDOA_RequestAssistanceData_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct RequestAssistanceData_r9_IEs__ext3 { + struct BT_RequestAssistanceData_r18 *bt_RequestAssistanceData_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RequestAssistanceData_r9_IEs_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RequestAssistanceData_r9_IEs; +extern asn_SEQUENCE_specifics_t asn_SPC_RequestAssistanceData_r9_IEs_specs_1; +extern asn_TYPE_member_t asn_MBR_RequestAssistanceData_r9_IEs_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _RequestAssistanceData_r9_IEs_H_ */ +#include diff --git a/asn.1/lpp_generated/RequestAssistanceData.c b/asn.1/lpp_generated/RequestAssistanceData.c new file mode 100644 index 00000000..c74aabc6 --- /dev/null +++ b/asn.1/lpp_generated/RequestAssistanceData.c @@ -0,0 +1,298 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RequestAssistanceData.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_c1_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_criticalExtensions_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_c1_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct RequestAssistanceData__criticalExtensions__c1, choice.requestAssistanceData_r9), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RequestAssistanceData_r9_IEs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "requestAssistanceData-r9" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestAssistanceData__criticalExtensions__c1, choice.spare3), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare3" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestAssistanceData__criticalExtensions__c1, choice.spare2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare2" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestAssistanceData__criticalExtensions__c1, choice.spare1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare1" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_c1_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* requestAssistanceData-r9 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* spare3 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* spare2 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* spare1 */ +}; +static asn_CHOICE_specifics_t asn_SPC_c1_specs_3 = { + sizeof(struct RequestAssistanceData__criticalExtensions__c1), + offsetof(struct RequestAssistanceData__criticalExtensions__c1, _asn_ctx), + offsetof(struct RequestAssistanceData__criticalExtensions__c1, present), + sizeof(((struct RequestAssistanceData__criticalExtensions__c1 *)0)->present), + asn_MAP_c1_tag2el_3, + 4, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_c1_3 = { + "c1", + "c1", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_c1_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_c1_3, + 4, /* Elements count */ + &asn_SPC_c1_specs_3 /* Additional specs */ +}; + +static const ber_tlv_tag_t asn_DEF_criticalExtensionsFuture_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SEQUENCE_specifics_t asn_SPC_criticalExtensionsFuture_specs_8 = { + sizeof(struct RequestAssistanceData__criticalExtensions__criticalExtensionsFuture), + offsetof(struct RequestAssistanceData__criticalExtensions__criticalExtensionsFuture, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_criticalExtensionsFuture_8 = { + "criticalExtensionsFuture", + "criticalExtensionsFuture", + &asn_OP_SEQUENCE, + asn_DEF_criticalExtensionsFuture_tags_8, + sizeof(asn_DEF_criticalExtensionsFuture_tags_8) + /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]) - 1, /* 1 */ + asn_DEF_criticalExtensionsFuture_tags_8, /* Same as above */ + sizeof(asn_DEF_criticalExtensionsFuture_tags_8) + /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_criticalExtensionsFuture_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_criticalExtensions_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct RequestAssistanceData__criticalExtensions, choice.c1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_c1_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "c1" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestAssistanceData__criticalExtensions, choice.criticalExtensionsFuture), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_criticalExtensionsFuture_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "criticalExtensionsFuture" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_criticalExtensions_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* c1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* criticalExtensionsFuture */ +}; +static asn_CHOICE_specifics_t asn_SPC_criticalExtensions_specs_2 = { + sizeof(struct RequestAssistanceData__criticalExtensions), + offsetof(struct RequestAssistanceData__criticalExtensions, _asn_ctx), + offsetof(struct RequestAssistanceData__criticalExtensions, present), + sizeof(((struct RequestAssistanceData__criticalExtensions *)0)->present), + asn_MAP_criticalExtensions_tag2el_2, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_criticalExtensions_2 = { + "criticalExtensions", + "criticalExtensions", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_criticalExtensions_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_criticalExtensions_2, + 2, /* Elements count */ + &asn_SPC_criticalExtensions_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_RequestAssistanceData_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RequestAssistanceData, criticalExtensions), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_criticalExtensions_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "criticalExtensions" + }, +}; +static const ber_tlv_tag_t asn_DEF_RequestAssistanceData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RequestAssistanceData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* criticalExtensions */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RequestAssistanceData_specs_1 = { + sizeof(struct RequestAssistanceData), + offsetof(struct RequestAssistanceData, _asn_ctx), + asn_MAP_RequestAssistanceData_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RequestAssistanceData = { + "RequestAssistanceData", + "RequestAssistanceData", + &asn_OP_SEQUENCE, + asn_DEF_RequestAssistanceData_tags_1, + sizeof(asn_DEF_RequestAssistanceData_tags_1) + /sizeof(asn_DEF_RequestAssistanceData_tags_1[0]), /* 1 */ + asn_DEF_RequestAssistanceData_tags_1, /* Same as above */ + sizeof(asn_DEF_RequestAssistanceData_tags_1) + /sizeof(asn_DEF_RequestAssistanceData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RequestAssistanceData_1, + 1, /* Elements count */ + &asn_SPC_RequestAssistanceData_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/RequestAssistanceData.h b/asn.1/lpp_generated/RequestAssistanceData.h similarity index 91% rename from asn.1/generated/RequestAssistanceData.h rename to asn.1/lpp_generated/RequestAssistanceData.h index 7e938f03..daf2f8ac 100644 --- a/asn.1/generated/RequestAssistanceData.h +++ b/asn.1/lpp_generated/RequestAssistanceData.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _RequestAssistanceData_H_ diff --git a/asn.1/lpp_generated/RequestCapabilities-r9-IEs.c b/asn.1/lpp_generated/RequestCapabilities-r9-IEs.c new file mode 100644 index 00000000..d4ce0cb4 --- /dev/null +++ b/asn.1/lpp_generated/RequestCapabilities-r9-IEs.c @@ -0,0 +1,438 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RequestCapabilities-r9-IEs.h" + +#include "CommonIEsRequestCapabilities.h" +#include "A-GNSS-RequestCapabilities.h" +#include "OTDOA-RequestCapabilities.h" +#include "ECID-RequestCapabilities.h" +#include "EPDU-Sequence.h" +#include "Sensor-RequestCapabilities-r13.h" +#include "TBS-RequestCapabilities-r13.h" +#include "WLAN-RequestCapabilities-r13.h" +#include "BT-RequestCapabilities-r13.h" +#include "NR-ECID-RequestCapabilities-r16.h" +#include "NR-Multi-RTT-RequestCapabilities-r16.h" +#include "NR-DL-AoD-RequestCapabilities-r16.h" +#include "NR-DL-TDOA-RequestCapabilities-r16.h" +#include "NR-UL-RequestCapabilities-r16.h" +static asn_TYPE_member_t asn_MBR_ext1_8[] = { + { ATF_POINTER, 4, offsetof(struct RequestCapabilities_r9_IEs__ext1, sensor_RequestCapabilities_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Sensor_RequestCapabilities_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensor-RequestCapabilities-r13" + }, + { ATF_POINTER, 3, offsetof(struct RequestCapabilities_r9_IEs__ext1, tbs_RequestCapabilities_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TBS_RequestCapabilities_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tbs-RequestCapabilities-r13" + }, + { ATF_POINTER, 2, offsetof(struct RequestCapabilities_r9_IEs__ext1, wlan_RequestCapabilities_r13), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WLAN_RequestCapabilities_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wlan-RequestCapabilities-r13" + }, + { ATF_POINTER, 1, offsetof(struct RequestCapabilities_r9_IEs__ext1, bt_RequestCapabilities_r13), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BT_RequestCapabilities_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-RequestCapabilities-r13" + }, +}; +static const int asn_MAP_ext1_oms_8[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-RequestCapabilities-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tbs-RequestCapabilities-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* wlan-RequestCapabilities-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* bt-RequestCapabilities-r13 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { + sizeof(struct RequestCapabilities_r9_IEs__ext1), + offsetof(struct RequestCapabilities_r9_IEs__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_8, + 4, /* Count of tags in the map */ + asn_MAP_ext1_oms_8, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_8 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_8, + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_8, /* Same as above */ + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_8, + 4, /* Elements count */ + &asn_SPC_ext1_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_13[] = { + { ATF_POINTER, 5, offsetof(struct RequestCapabilities_r9_IEs__ext2, nr_ECID_RequestCapabilities_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_ECID_RequestCapabilities_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ECID-RequestCapabilities-r16" + }, + { ATF_POINTER, 4, offsetof(struct RequestCapabilities_r9_IEs__ext2, nr_Multi_RTT_RequestCapabilities_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_Multi_RTT_RequestCapabilities_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-Multi-RTT-RequestCapabilities-r16" + }, + { ATF_POINTER, 3, offsetof(struct RequestCapabilities_r9_IEs__ext2, nr_DL_AoD_RequestCapabilities_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_AoD_RequestCapabilities_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-RequestCapabilities-r16" + }, + { ATF_POINTER, 2, offsetof(struct RequestCapabilities_r9_IEs__ext2, nr_DL_TDOA_RequestCapabilities_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_TDOA_RequestCapabilities_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-RequestCapabilities-r16" + }, + { ATF_POINTER, 1, offsetof(struct RequestCapabilities_r9_IEs__ext2, nr_UL_RequestCapabilities_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_UL_RequestCapabilities_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-UL-RequestCapabilities-r16" + }, +}; +static const int asn_MAP_ext2_oms_13[] = { 0, 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_13[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-ECID-RequestCapabilities-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-Multi-RTT-RequestCapabilities-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-AoD-RequestCapabilities-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-DL-TDOA-RequestCapabilities-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* nr-UL-RequestCapabilities-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_13 = { + sizeof(struct RequestCapabilities_r9_IEs__ext2), + offsetof(struct RequestCapabilities_r9_IEs__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_13, + 5, /* Count of tags in the map */ + asn_MAP_ext2_oms_13, /* Optional members */ + 5, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_13 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_13, + sizeof(asn_DEF_ext2_tags_13) + /sizeof(asn_DEF_ext2_tags_13[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_13, /* Same as above */ + sizeof(asn_DEF_ext2_tags_13) + /sizeof(asn_DEF_ext2_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_13, + 5, /* Elements count */ + &asn_SPC_ext2_specs_13 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_RequestCapabilities_r9_IEs_1[] = { + { ATF_POINTER, 7, offsetof(struct RequestCapabilities_r9_IEs, commonIEsRequestCapabilities), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CommonIEsRequestCapabilities, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "commonIEsRequestCapabilities" + }, + { ATF_POINTER, 6, offsetof(struct RequestCapabilities_r9_IEs, a_gnss_RequestCapabilities), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_A_GNSS_RequestCapabilities, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "a-gnss-RequestCapabilities" + }, + { ATF_POINTER, 5, offsetof(struct RequestCapabilities_r9_IEs, otdoa_RequestCapabilities), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OTDOA_RequestCapabilities, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "otdoa-RequestCapabilities" + }, + { ATF_POINTER, 4, offsetof(struct RequestCapabilities_r9_IEs, ecid_RequestCapabilities), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ECID_RequestCapabilities, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ecid-RequestCapabilities" + }, + { ATF_POINTER, 3, offsetof(struct RequestCapabilities_r9_IEs, epdu_RequestCapabilities), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EPDU_Sequence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epdu-RequestCapabilities" + }, + { ATF_POINTER, 2, offsetof(struct RequestCapabilities_r9_IEs, ext1), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext1_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct RequestCapabilities_r9_IEs, ext2), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext2_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_RequestCapabilities_r9_IEs_oms_1[] = { 0, 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_RequestCapabilities_r9_IEs_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RequestCapabilities_r9_IEs_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* commonIEsRequestCapabilities */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* a-gnss-RequestCapabilities */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* otdoa-RequestCapabilities */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ecid-RequestCapabilities */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* epdu-RequestCapabilities */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RequestCapabilities_r9_IEs_specs_1 = { + sizeof(struct RequestCapabilities_r9_IEs), + offsetof(struct RequestCapabilities_r9_IEs, _asn_ctx), + asn_MAP_RequestCapabilities_r9_IEs_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_RequestCapabilities_r9_IEs_oms_1, /* Optional members */ + 5, 2, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RequestCapabilities_r9_IEs = { + "RequestCapabilities-r9-IEs", + "RequestCapabilities-r9-IEs", + &asn_OP_SEQUENCE, + asn_DEF_RequestCapabilities_r9_IEs_tags_1, + sizeof(asn_DEF_RequestCapabilities_r9_IEs_tags_1) + /sizeof(asn_DEF_RequestCapabilities_r9_IEs_tags_1[0]), /* 1 */ + asn_DEF_RequestCapabilities_r9_IEs_tags_1, /* Same as above */ + sizeof(asn_DEF_RequestCapabilities_r9_IEs_tags_1) + /sizeof(asn_DEF_RequestCapabilities_r9_IEs_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RequestCapabilities_r9_IEs_1, + 7, /* Elements count */ + &asn_SPC_RequestCapabilities_r9_IEs_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/RequestCapabilities-r9-IEs.h b/asn.1/lpp_generated/RequestCapabilities-r9-IEs.h new file mode 100644 index 00000000..b1388bd8 --- /dev/null +++ b/asn.1/lpp_generated/RequestCapabilities-r9-IEs.h @@ -0,0 +1,82 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _RequestCapabilities_r9_IEs_H_ +#define _RequestCapabilities_r9_IEs_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CommonIEsRequestCapabilities; +struct A_GNSS_RequestCapabilities; +struct OTDOA_RequestCapabilities; +struct ECID_RequestCapabilities; +struct EPDU_Sequence; +struct Sensor_RequestCapabilities_r13; +struct TBS_RequestCapabilities_r13; +struct WLAN_RequestCapabilities_r13; +struct BT_RequestCapabilities_r13; +struct NR_ECID_RequestCapabilities_r16; +struct NR_Multi_RTT_RequestCapabilities_r16; +struct NR_DL_AoD_RequestCapabilities_r16; +struct NR_DL_TDOA_RequestCapabilities_r16; +struct NR_UL_RequestCapabilities_r16; + +/* RequestCapabilities-r9-IEs */ +typedef struct RequestCapabilities_r9_IEs { + struct CommonIEsRequestCapabilities *commonIEsRequestCapabilities; /* OPTIONAL */ + struct A_GNSS_RequestCapabilities *a_gnss_RequestCapabilities; /* OPTIONAL */ + struct OTDOA_RequestCapabilities *otdoa_RequestCapabilities; /* OPTIONAL */ + struct ECID_RequestCapabilities *ecid_RequestCapabilities; /* OPTIONAL */ + struct EPDU_Sequence *epdu_RequestCapabilities; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct RequestCapabilities_r9_IEs__ext1 { + struct Sensor_RequestCapabilities_r13 *sensor_RequestCapabilities_r13; /* OPTIONAL */ + struct TBS_RequestCapabilities_r13 *tbs_RequestCapabilities_r13; /* OPTIONAL */ + struct WLAN_RequestCapabilities_r13 *wlan_RequestCapabilities_r13; /* OPTIONAL */ + struct BT_RequestCapabilities_r13 *bt_RequestCapabilities_r13; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct RequestCapabilities_r9_IEs__ext2 { + struct NR_ECID_RequestCapabilities_r16 *nr_ECID_RequestCapabilities_r16; /* OPTIONAL */ + struct NR_Multi_RTT_RequestCapabilities_r16 *nr_Multi_RTT_RequestCapabilities_r16; /* OPTIONAL */ + struct NR_DL_AoD_RequestCapabilities_r16 *nr_DL_AoD_RequestCapabilities_r16; /* OPTIONAL */ + struct NR_DL_TDOA_RequestCapabilities_r16 *nr_DL_TDOA_RequestCapabilities_r16; /* OPTIONAL */ + struct NR_UL_RequestCapabilities_r16 *nr_UL_RequestCapabilities_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RequestCapabilities_r9_IEs_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RequestCapabilities_r9_IEs; +extern asn_SEQUENCE_specifics_t asn_SPC_RequestCapabilities_r9_IEs_specs_1; +extern asn_TYPE_member_t asn_MBR_RequestCapabilities_r9_IEs_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _RequestCapabilities_r9_IEs_H_ */ +#include diff --git a/asn.1/lpp_generated/RequestCapabilities.c b/asn.1/lpp_generated/RequestCapabilities.c new file mode 100644 index 00000000..0d0c5d57 --- /dev/null +++ b/asn.1/lpp_generated/RequestCapabilities.c @@ -0,0 +1,298 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RequestCapabilities.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_c1_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_criticalExtensions_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_c1_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct RequestCapabilities__criticalExtensions__c1, choice.requestCapabilities_r9), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RequestCapabilities_r9_IEs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "requestCapabilities-r9" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestCapabilities__criticalExtensions__c1, choice.spare3), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare3" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestCapabilities__criticalExtensions__c1, choice.spare2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare2" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestCapabilities__criticalExtensions__c1, choice.spare1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare1" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_c1_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* requestCapabilities-r9 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* spare3 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* spare2 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* spare1 */ +}; +static asn_CHOICE_specifics_t asn_SPC_c1_specs_3 = { + sizeof(struct RequestCapabilities__criticalExtensions__c1), + offsetof(struct RequestCapabilities__criticalExtensions__c1, _asn_ctx), + offsetof(struct RequestCapabilities__criticalExtensions__c1, present), + sizeof(((struct RequestCapabilities__criticalExtensions__c1 *)0)->present), + asn_MAP_c1_tag2el_3, + 4, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_c1_3 = { + "c1", + "c1", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_c1_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_c1_3, + 4, /* Elements count */ + &asn_SPC_c1_specs_3 /* Additional specs */ +}; + +static const ber_tlv_tag_t asn_DEF_criticalExtensionsFuture_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SEQUENCE_specifics_t asn_SPC_criticalExtensionsFuture_specs_8 = { + sizeof(struct RequestCapabilities__criticalExtensions__criticalExtensionsFuture), + offsetof(struct RequestCapabilities__criticalExtensions__criticalExtensionsFuture, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_criticalExtensionsFuture_8 = { + "criticalExtensionsFuture", + "criticalExtensionsFuture", + &asn_OP_SEQUENCE, + asn_DEF_criticalExtensionsFuture_tags_8, + sizeof(asn_DEF_criticalExtensionsFuture_tags_8) + /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]) - 1, /* 1 */ + asn_DEF_criticalExtensionsFuture_tags_8, /* Same as above */ + sizeof(asn_DEF_criticalExtensionsFuture_tags_8) + /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_criticalExtensionsFuture_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_criticalExtensions_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct RequestCapabilities__criticalExtensions, choice.c1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_c1_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "c1" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestCapabilities__criticalExtensions, choice.criticalExtensionsFuture), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_criticalExtensionsFuture_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "criticalExtensionsFuture" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_criticalExtensions_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* c1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* criticalExtensionsFuture */ +}; +static asn_CHOICE_specifics_t asn_SPC_criticalExtensions_specs_2 = { + sizeof(struct RequestCapabilities__criticalExtensions), + offsetof(struct RequestCapabilities__criticalExtensions, _asn_ctx), + offsetof(struct RequestCapabilities__criticalExtensions, present), + sizeof(((struct RequestCapabilities__criticalExtensions *)0)->present), + asn_MAP_criticalExtensions_tag2el_2, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_criticalExtensions_2 = { + "criticalExtensions", + "criticalExtensions", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_criticalExtensions_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_criticalExtensions_2, + 2, /* Elements count */ + &asn_SPC_criticalExtensions_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_RequestCapabilities_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RequestCapabilities, criticalExtensions), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_criticalExtensions_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "criticalExtensions" + }, +}; +static const ber_tlv_tag_t asn_DEF_RequestCapabilities_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RequestCapabilities_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* criticalExtensions */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RequestCapabilities_specs_1 = { + sizeof(struct RequestCapabilities), + offsetof(struct RequestCapabilities, _asn_ctx), + asn_MAP_RequestCapabilities_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RequestCapabilities = { + "RequestCapabilities", + "RequestCapabilities", + &asn_OP_SEQUENCE, + asn_DEF_RequestCapabilities_tags_1, + sizeof(asn_DEF_RequestCapabilities_tags_1) + /sizeof(asn_DEF_RequestCapabilities_tags_1[0]), /* 1 */ + asn_DEF_RequestCapabilities_tags_1, /* Same as above */ + sizeof(asn_DEF_RequestCapabilities_tags_1) + /sizeof(asn_DEF_RequestCapabilities_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RequestCapabilities_1, + 1, /* Elements count */ + &asn_SPC_RequestCapabilities_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/RequestCapabilities.h b/asn.1/lpp_generated/RequestCapabilities.h similarity index 90% rename from asn.1/generated/RequestCapabilities.h rename to asn.1/lpp_generated/RequestCapabilities.h index aa20a8ca..6ab224d6 100644 --- a/asn.1/generated/RequestCapabilities.h +++ b/asn.1/lpp_generated/RequestCapabilities.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _RequestCapabilities_H_ diff --git a/asn.1/lpp_generated/RequestLocationInformation-r9-IEs.c b/asn.1/lpp_generated/RequestLocationInformation-r9-IEs.c new file mode 100644 index 00000000..2635247b --- /dev/null +++ b/asn.1/lpp_generated/RequestLocationInformation-r9-IEs.c @@ -0,0 +1,419 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RequestLocationInformation-r9-IEs.h" + +#include "CommonIEsRequestLocationInformation.h" +#include "A-GNSS-RequestLocationInformation.h" +#include "OTDOA-RequestLocationInformation.h" +#include "ECID-RequestLocationInformation.h" +#include "EPDU-Sequence.h" +#include "Sensor-RequestLocationInformation-r13.h" +#include "TBS-RequestLocationInformation-r13.h" +#include "WLAN-RequestLocationInformation-r13.h" +#include "BT-RequestLocationInformation-r13.h" +#include "NR-ECID-RequestLocationInformation-r16.h" +#include "NR-Multi-RTT-RequestLocationInformation-r16.h" +#include "NR-DL-AoD-RequestLocationInformation-r16.h" +#include "NR-DL-TDOA-RequestLocationInformation-r16.h" +static asn_TYPE_member_t asn_MBR_ext1_8[] = { + { ATF_POINTER, 4, offsetof(struct RequestLocationInformation_r9_IEs__ext1, sensor_RequestLocationInformation_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Sensor_RequestLocationInformation_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensor-RequestLocationInformation-r13" + }, + { ATF_POINTER, 3, offsetof(struct RequestLocationInformation_r9_IEs__ext1, tbs_RequestLocationInformation_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TBS_RequestLocationInformation_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tbs-RequestLocationInformation-r13" + }, + { ATF_POINTER, 2, offsetof(struct RequestLocationInformation_r9_IEs__ext1, wlan_RequestLocationInformation_r13), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WLAN_RequestLocationInformation_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wlan-RequestLocationInformation-r13" + }, + { ATF_POINTER, 1, offsetof(struct RequestLocationInformation_r9_IEs__ext1, bt_RequestLocationInformation_r13), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BT_RequestLocationInformation_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bt-RequestLocationInformation-r13" + }, +}; +static const int asn_MAP_ext1_oms_8[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-RequestLocationInformation-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tbs-RequestLocationInformation-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* wlan-RequestLocationInformation-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* bt-RequestLocationInformation-r13 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { + sizeof(struct RequestLocationInformation_r9_IEs__ext1), + offsetof(struct RequestLocationInformation_r9_IEs__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_8, + 4, /* Count of tags in the map */ + asn_MAP_ext1_oms_8, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_8 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_8, + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_8, /* Same as above */ + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_8, + 4, /* Elements count */ + &asn_SPC_ext1_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_13[] = { + { ATF_POINTER, 4, offsetof(struct RequestLocationInformation_r9_IEs__ext2, nr_ECID_RequestLocationInformation_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_ECID_RequestLocationInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ECID-RequestLocationInformation-r16" + }, + { ATF_POINTER, 3, offsetof(struct RequestLocationInformation_r9_IEs__ext2, nr_Multi_RTT_RequestLocationInformation_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_Multi_RTT_RequestLocationInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-Multi-RTT-RequestLocationInformation-r16" + }, + { ATF_POINTER, 2, offsetof(struct RequestLocationInformation_r9_IEs__ext2, nr_DL_AoD_RequestLocationInformation_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_AoD_RequestLocationInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-AoD-RequestLocationInformation-r16" + }, + { ATF_POINTER, 1, offsetof(struct RequestLocationInformation_r9_IEs__ext2, nr_DL_TDOA_RequestLocationInformation_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_DL_TDOA_RequestLocationInformation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-DL-TDOA-RequestLocationInformation-r16" + }, +}; +static const int asn_MAP_ext2_oms_13[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_13[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-ECID-RequestLocationInformation-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-Multi-RTT-RequestLocationInformation-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-DL-AoD-RequestLocationInformation-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* nr-DL-TDOA-RequestLocationInformation-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_13 = { + sizeof(struct RequestLocationInformation_r9_IEs__ext2), + offsetof(struct RequestLocationInformation_r9_IEs__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_13, + 4, /* Count of tags in the map */ + asn_MAP_ext2_oms_13, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_13 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_13, + sizeof(asn_DEF_ext2_tags_13) + /sizeof(asn_DEF_ext2_tags_13[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_13, /* Same as above */ + sizeof(asn_DEF_ext2_tags_13) + /sizeof(asn_DEF_ext2_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_13, + 4, /* Elements count */ + &asn_SPC_ext2_specs_13 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_RequestLocationInformation_r9_IEs_1[] = { + { ATF_POINTER, 7, offsetof(struct RequestLocationInformation_r9_IEs, commonIEsRequestLocationInformation), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CommonIEsRequestLocationInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "commonIEsRequestLocationInformation" + }, + { ATF_POINTER, 6, offsetof(struct RequestLocationInformation_r9_IEs, a_gnss_RequestLocationInformation), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_A_GNSS_RequestLocationInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "a-gnss-RequestLocationInformation" + }, + { ATF_POINTER, 5, offsetof(struct RequestLocationInformation_r9_IEs, otdoa_RequestLocationInformation), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OTDOA_RequestLocationInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "otdoa-RequestLocationInformation" + }, + { ATF_POINTER, 4, offsetof(struct RequestLocationInformation_r9_IEs, ecid_RequestLocationInformation), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ECID_RequestLocationInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ecid-RequestLocationInformation" + }, + { ATF_POINTER, 3, offsetof(struct RequestLocationInformation_r9_IEs, epdu_RequestLocationInformation), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EPDU_Sequence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "epdu-RequestLocationInformation" + }, + { ATF_POINTER, 2, offsetof(struct RequestLocationInformation_r9_IEs, ext1), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext1_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct RequestLocationInformation_r9_IEs, ext2), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext2_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_RequestLocationInformation_r9_IEs_oms_1[] = { 0, 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_RequestLocationInformation_r9_IEs_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RequestLocationInformation_r9_IEs_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* commonIEsRequestLocationInformation */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* a-gnss-RequestLocationInformation */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* otdoa-RequestLocationInformation */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ecid-RequestLocationInformation */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* epdu-RequestLocationInformation */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RequestLocationInformation_r9_IEs_specs_1 = { + sizeof(struct RequestLocationInformation_r9_IEs), + offsetof(struct RequestLocationInformation_r9_IEs, _asn_ctx), + asn_MAP_RequestLocationInformation_r9_IEs_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_RequestLocationInformation_r9_IEs_oms_1, /* Optional members */ + 5, 2, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RequestLocationInformation_r9_IEs = { + "RequestLocationInformation-r9-IEs", + "RequestLocationInformation-r9-IEs", + &asn_OP_SEQUENCE, + asn_DEF_RequestLocationInformation_r9_IEs_tags_1, + sizeof(asn_DEF_RequestLocationInformation_r9_IEs_tags_1) + /sizeof(asn_DEF_RequestLocationInformation_r9_IEs_tags_1[0]), /* 1 */ + asn_DEF_RequestLocationInformation_r9_IEs_tags_1, /* Same as above */ + sizeof(asn_DEF_RequestLocationInformation_r9_IEs_tags_1) + /sizeof(asn_DEF_RequestLocationInformation_r9_IEs_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RequestLocationInformation_r9_IEs_1, + 7, /* Elements count */ + &asn_SPC_RequestLocationInformation_r9_IEs_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/RequestLocationInformation-r9-IEs.h b/asn.1/lpp_generated/RequestLocationInformation-r9-IEs.h new file mode 100644 index 00000000..ffb92462 --- /dev/null +++ b/asn.1/lpp_generated/RequestLocationInformation-r9-IEs.h @@ -0,0 +1,80 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _RequestLocationInformation_r9_IEs_H_ +#define _RequestLocationInformation_r9_IEs_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CommonIEsRequestLocationInformation; +struct A_GNSS_RequestLocationInformation; +struct OTDOA_RequestLocationInformation; +struct ECID_RequestLocationInformation; +struct EPDU_Sequence; +struct Sensor_RequestLocationInformation_r13; +struct TBS_RequestLocationInformation_r13; +struct WLAN_RequestLocationInformation_r13; +struct BT_RequestLocationInformation_r13; +struct NR_ECID_RequestLocationInformation_r16; +struct NR_Multi_RTT_RequestLocationInformation_r16; +struct NR_DL_AoD_RequestLocationInformation_r16; +struct NR_DL_TDOA_RequestLocationInformation_r16; + +/* RequestLocationInformation-r9-IEs */ +typedef struct RequestLocationInformation_r9_IEs { + struct CommonIEsRequestLocationInformation *commonIEsRequestLocationInformation; /* OPTIONAL */ + struct A_GNSS_RequestLocationInformation *a_gnss_RequestLocationInformation; /* OPTIONAL */ + struct OTDOA_RequestLocationInformation *otdoa_RequestLocationInformation; /* OPTIONAL */ + struct ECID_RequestLocationInformation *ecid_RequestLocationInformation; /* OPTIONAL */ + struct EPDU_Sequence *epdu_RequestLocationInformation; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct RequestLocationInformation_r9_IEs__ext1 { + struct Sensor_RequestLocationInformation_r13 *sensor_RequestLocationInformation_r13; /* OPTIONAL */ + struct TBS_RequestLocationInformation_r13 *tbs_RequestLocationInformation_r13; /* OPTIONAL */ + struct WLAN_RequestLocationInformation_r13 *wlan_RequestLocationInformation_r13; /* OPTIONAL */ + struct BT_RequestLocationInformation_r13 *bt_RequestLocationInformation_r13; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct RequestLocationInformation_r9_IEs__ext2 { + struct NR_ECID_RequestLocationInformation_r16 *nr_ECID_RequestLocationInformation_r16; /* OPTIONAL */ + struct NR_Multi_RTT_RequestLocationInformation_r16 *nr_Multi_RTT_RequestLocationInformation_r16; /* OPTIONAL */ + struct NR_DL_AoD_RequestLocationInformation_r16 *nr_DL_AoD_RequestLocationInformation_r16; /* OPTIONAL */ + struct NR_DL_TDOA_RequestLocationInformation_r16 *nr_DL_TDOA_RequestLocationInformation_r16; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RequestLocationInformation_r9_IEs_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RequestLocationInformation_r9_IEs; +extern asn_SEQUENCE_specifics_t asn_SPC_RequestLocationInformation_r9_IEs_specs_1; +extern asn_TYPE_member_t asn_MBR_RequestLocationInformation_r9_IEs_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _RequestLocationInformation_r9_IEs_H_ */ +#include diff --git a/asn.1/lpp_generated/RequestLocationInformation.c b/asn.1/lpp_generated/RequestLocationInformation.c new file mode 100644 index 00000000..93e0c4da --- /dev/null +++ b/asn.1/lpp_generated/RequestLocationInformation.c @@ -0,0 +1,298 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RequestLocationInformation.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_c1_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_criticalExtensions_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_c1_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct RequestLocationInformation__criticalExtensions__c1, choice.requestLocationInformation_r9), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RequestLocationInformation_r9_IEs, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "requestLocationInformation-r9" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestLocationInformation__criticalExtensions__c1, choice.spare3), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare3" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestLocationInformation__criticalExtensions__c1, choice.spare2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare2" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestLocationInformation__criticalExtensions__c1, choice.spare1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spare1" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_c1_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* requestLocationInformation-r9 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* spare3 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* spare2 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* spare1 */ +}; +static asn_CHOICE_specifics_t asn_SPC_c1_specs_3 = { + sizeof(struct RequestLocationInformation__criticalExtensions__c1), + offsetof(struct RequestLocationInformation__criticalExtensions__c1, _asn_ctx), + offsetof(struct RequestLocationInformation__criticalExtensions__c1, present), + sizeof(((struct RequestLocationInformation__criticalExtensions__c1 *)0)->present), + asn_MAP_c1_tag2el_3, + 4, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_c1_3 = { + "c1", + "c1", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_c1_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_c1_3, + 4, /* Elements count */ + &asn_SPC_c1_specs_3 /* Additional specs */ +}; + +static const ber_tlv_tag_t asn_DEF_criticalExtensionsFuture_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SEQUENCE_specifics_t asn_SPC_criticalExtensionsFuture_specs_8 = { + sizeof(struct RequestLocationInformation__criticalExtensions__criticalExtensionsFuture), + offsetof(struct RequestLocationInformation__criticalExtensions__criticalExtensionsFuture, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_criticalExtensionsFuture_8 = { + "criticalExtensionsFuture", + "criticalExtensionsFuture", + &asn_OP_SEQUENCE, + asn_DEF_criticalExtensionsFuture_tags_8, + sizeof(asn_DEF_criticalExtensionsFuture_tags_8) + /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]) - 1, /* 1 */ + asn_DEF_criticalExtensionsFuture_tags_8, /* Same as above */ + sizeof(asn_DEF_criticalExtensionsFuture_tags_8) + /sizeof(asn_DEF_criticalExtensionsFuture_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_criticalExtensionsFuture_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_criticalExtensions_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct RequestLocationInformation__criticalExtensions, choice.c1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_c1_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "c1" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestLocationInformation__criticalExtensions, choice.criticalExtensionsFuture), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_criticalExtensionsFuture_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "criticalExtensionsFuture" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_criticalExtensions_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* c1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* criticalExtensionsFuture */ +}; +static asn_CHOICE_specifics_t asn_SPC_criticalExtensions_specs_2 = { + sizeof(struct RequestLocationInformation__criticalExtensions), + offsetof(struct RequestLocationInformation__criticalExtensions, _asn_ctx), + offsetof(struct RequestLocationInformation__criticalExtensions, present), + sizeof(((struct RequestLocationInformation__criticalExtensions *)0)->present), + asn_MAP_criticalExtensions_tag2el_2, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_criticalExtensions_2 = { + "criticalExtensions", + "criticalExtensions", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_criticalExtensions_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_criticalExtensions_2, + 2, /* Elements count */ + &asn_SPC_criticalExtensions_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_RequestLocationInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RequestLocationInformation, criticalExtensions), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_criticalExtensions_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "criticalExtensions" + }, +}; +static const ber_tlv_tag_t asn_DEF_RequestLocationInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RequestLocationInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* criticalExtensions */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RequestLocationInformation_specs_1 = { + sizeof(struct RequestLocationInformation), + offsetof(struct RequestLocationInformation, _asn_ctx), + asn_MAP_RequestLocationInformation_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RequestLocationInformation = { + "RequestLocationInformation", + "RequestLocationInformation", + &asn_OP_SEQUENCE, + asn_DEF_RequestLocationInformation_tags_1, + sizeof(asn_DEF_RequestLocationInformation_tags_1) + /sizeof(asn_DEF_RequestLocationInformation_tags_1[0]), /* 1 */ + asn_DEF_RequestLocationInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_RequestLocationInformation_tags_1) + /sizeof(asn_DEF_RequestLocationInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RequestLocationInformation_1, + 1, /* Elements count */ + &asn_SPC_RequestLocationInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/RequestLocationInformation.h b/asn.1/lpp_generated/RequestLocationInformation.h similarity index 91% rename from asn.1/generated/RequestLocationInformation.h rename to asn.1/lpp_generated/RequestLocationInformation.h index 80d77749..4e2c167d 100644 --- a/asn.1/generated/RequestLocationInformation.h +++ b/asn.1/lpp_generated/RequestLocationInformation.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _RequestLocationInformation_H_ diff --git a/asn.1/lpp_generated/ResponseTime.c b/asn.1/lpp_generated/ResponseTime.c new file mode 100644 index 00000000..405117c9 --- /dev/null +++ b/asn.1/lpp_generated/ResponseTime.c @@ -0,0 +1,348 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ResponseTime.h" + +static int +memb_responseTimeEarlyFix_r12_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 128L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_time_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 128L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_responseTimeEarlyFix_r12_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 128 } /* (1..128) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_unit_r15_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_time_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 128 } /* (1..128) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_4[] = { + { ATF_POINTER, 1, offsetof(struct ResponseTime__ext1, responseTimeEarlyFix_r12), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_responseTimeEarlyFix_r12_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_responseTimeEarlyFix_r12_constraint_4 + }, + 0, 0, /* No default value */ + "responseTimeEarlyFix-r12" + }, +}; +static const int asn_MAP_ext1_oms_4[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* responseTimeEarlyFix-r12 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { + sizeof(struct ResponseTime__ext1), + offsetof(struct ResponseTime__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_4, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_4, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_4 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_4, + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_4, /* Same as above */ + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_4, + 1, /* Elements count */ + &asn_SPC_ext1_specs_4 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_unit_r15_value2enum_7[] = { + { 0, 11, "ten-seconds" }, + { 1, 23, "ten-milli-seconds-v1700" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_unit_r15_enum2value_7[] = { + 1, /* ten-milli-seconds-v1700(1) */ + 0 /* ten-seconds(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_unit_r15_specs_7 = { + asn_MAP_unit_r15_value2enum_7, /* "tag" => N; sorted by tag */ + asn_MAP_unit_r15_enum2value_7, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_unit_r15_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_unit_r15_7 = { + "unit-r15", + "unit-r15", + &asn_OP_NativeEnumerated, + asn_DEF_unit_r15_tags_7, + sizeof(asn_DEF_unit_r15_tags_7) + /sizeof(asn_DEF_unit_r15_tags_7[0]) - 1, /* 1 */ + asn_DEF_unit_r15_tags_7, /* Same as above */ + sizeof(asn_DEF_unit_r15_tags_7) + /sizeof(asn_DEF_unit_r15_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_unit_r15_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_unit_r15_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_6[] = { + { ATF_POINTER, 1, offsetof(struct ResponseTime__ext2, unit_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_unit_r15_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "unit-r15" + }, +}; +static const int asn_MAP_ext2_oms_6[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* unit-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_6 = { + sizeof(struct ResponseTime__ext2), + offsetof(struct ResponseTime__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_6, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_6, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_6 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_6, + sizeof(asn_DEF_ext2_tags_6) + /sizeof(asn_DEF_ext2_tags_6[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_6, /* Same as above */ + sizeof(asn_DEF_ext2_tags_6) + /sizeof(asn_DEF_ext2_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_6, + 1, /* Elements count */ + &asn_SPC_ext2_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ResponseTime_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ResponseTime, time), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_time_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_time_constraint_1 + }, + 0, 0, /* No default value */ + "time" + }, + { ATF_POINTER, 2, offsetof(struct ResponseTime, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct ResponseTime, ext2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext2_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_ResponseTime_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ResponseTime_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ResponseTime_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* time */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ResponseTime_specs_1 = { + sizeof(struct ResponseTime), + offsetof(struct ResponseTime, _asn_ctx), + asn_MAP_ResponseTime_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_ResponseTime_oms_1, /* Optional members */ + 0, 2, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ResponseTime = { + "ResponseTime", + "ResponseTime", + &asn_OP_SEQUENCE, + asn_DEF_ResponseTime_tags_1, + sizeof(asn_DEF_ResponseTime_tags_1) + /sizeof(asn_DEF_ResponseTime_tags_1[0]), /* 1 */ + asn_DEF_ResponseTime_tags_1, /* Same as above */ + sizeof(asn_DEF_ResponseTime_tags_1) + /sizeof(asn_DEF_ResponseTime_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ResponseTime_1, + 3, /* Elements count */ + &asn_SPC_ResponseTime_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ResponseTime.h b/asn.1/lpp_generated/ResponseTime.h similarity index 75% rename from asn.1/generated/ResponseTime.h rename to asn.1/lpp_generated/ResponseTime.h index ed7f7573..b21cd383 100644 --- a/asn.1/generated/ResponseTime.h +++ b/asn.1/lpp_generated/ResponseTime.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _ResponseTime_H_ @@ -22,10 +22,11 @@ extern "C" { /* Dependencies */ typedef enum ResponseTime__ext2__unit_r15 { - ResponseTime__ext2__unit_r15_ten_seconds = 0 + ResponseTime__ext2__unit_r15_ten_seconds = 0, /* * Enumeration is extensible */ + ResponseTime__ext2__unit_r15_ten_milli_seconds_v1700 = 1 } e_ResponseTime__ext2__unit_r15; /* ResponseTime */ @@ -36,13 +37,13 @@ typedef struct ResponseTime { * possible extensions are below. */ struct ResponseTime__ext1 { - long *responseTimeEarlyFix_r12 /* OPTIONAL */; + long *responseTimeEarlyFix_r12; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *ext1; struct ResponseTime__ext2 { - long *unit_r15 /* OPTIONAL */; + long *unit_r15; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/ResponseTimeNB-r14.c b/asn.1/lpp_generated/ResponseTimeNB-r14.c new file mode 100644 index 00000000..c0385dec --- /dev/null +++ b/asn.1/lpp_generated/ResponseTimeNB-r14.c @@ -0,0 +1,285 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ResponseTimeNB-r14.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_timeNB_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 512L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_responseTimeEarlyFixNB_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 512L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_unitNB_r15_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_timeNB_r14_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 1, 512 } /* (1..512) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_responseTimeEarlyFixNB_r14_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 1, 512 } /* (1..512) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_unitNB_r15_value2enum_6[] = { + { 0, 11, "ten-seconds" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_unitNB_r15_enum2value_6[] = { + 0 /* ten-seconds(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_unitNB_r15_specs_6 = { + asn_MAP_unitNB_r15_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_unitNB_r15_enum2value_6, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_unitNB_r15_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_unitNB_r15_6 = { + "unitNB-r15", + "unitNB-r15", + &asn_OP_NativeEnumerated, + asn_DEF_unitNB_r15_tags_6, + sizeof(asn_DEF_unitNB_r15_tags_6) + /sizeof(asn_DEF_unitNB_r15_tags_6[0]) - 1, /* 1 */ + asn_DEF_unitNB_r15_tags_6, /* Same as above */ + sizeof(asn_DEF_unitNB_r15_tags_6) + /sizeof(asn_DEF_unitNB_r15_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_unitNB_r15_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_unitNB_r15_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_POINTER, 1, offsetof(struct ResponseTimeNB_r14__ext1, unitNB_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_unitNB_r15_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "unitNB-r15" + }, +}; +static const int asn_MAP_ext1_oms_5[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* unitNB-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct ResponseTimeNB_r14__ext1), + offsetof(struct ResponseTimeNB_r14__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_5, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 1, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ResponseTimeNB_r14_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ResponseTimeNB_r14, timeNB_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_timeNB_r14_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_timeNB_r14_constraint_1 + }, + 0, 0, /* No default value */ + "timeNB-r14" + }, + { ATF_POINTER, 2, offsetof(struct ResponseTimeNB_r14, responseTimeEarlyFixNB_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_responseTimeEarlyFixNB_r14_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_responseTimeEarlyFixNB_r14_constraint_1 + }, + 0, 0, /* No default value */ + "responseTimeEarlyFixNB-r14" + }, + { ATF_POINTER, 1, offsetof(struct ResponseTimeNB_r14, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_ResponseTimeNB_r14_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ResponseTimeNB_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ResponseTimeNB_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* timeNB-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* responseTimeEarlyFixNB-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ResponseTimeNB_r14_specs_1 = { + sizeof(struct ResponseTimeNB_r14), + offsetof(struct ResponseTimeNB_r14, _asn_ctx), + asn_MAP_ResponseTimeNB_r14_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_ResponseTimeNB_r14_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ResponseTimeNB_r14 = { + "ResponseTimeNB-r14", + "ResponseTimeNB-r14", + &asn_OP_SEQUENCE, + asn_DEF_ResponseTimeNB_r14_tags_1, + sizeof(asn_DEF_ResponseTimeNB_r14_tags_1) + /sizeof(asn_DEF_ResponseTimeNB_r14_tags_1[0]), /* 1 */ + asn_DEF_ResponseTimeNB_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_ResponseTimeNB_r14_tags_1) + /sizeof(asn_DEF_ResponseTimeNB_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ResponseTimeNB_r14_1, + 3, /* Elements count */ + &asn_SPC_ResponseTimeNB_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ResponseTimeNB-r14.h b/asn.1/lpp_generated/ResponseTimeNB-r14.h similarity index 80% rename from asn.1/generated/ResponseTimeNB-r14.h rename to asn.1/lpp_generated/ResponseTimeNB-r14.h index 8cbf65ab..eae48ad3 100644 --- a/asn.1/generated/ResponseTimeNB-r14.h +++ b/asn.1/lpp_generated/ResponseTimeNB-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _ResponseTimeNB_r14_H_ @@ -31,13 +31,13 @@ typedef enum ResponseTimeNB_r14__ext1__unitNB_r15 { /* ResponseTimeNB-r14 */ typedef struct ResponseTimeNB_r14 { long timeNB_r14; - long *responseTimeEarlyFixNB_r14 /* OPTIONAL */; + long *responseTimeEarlyFixNB_r14; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. */ struct ResponseTimeNB_r14__ext1 { - long *unitNB_r15 /* OPTIONAL */; + long *unitNB_r15; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/ResultsPerCSI-RS-Index-r16.c b/asn.1/lpp_generated/ResultsPerCSI-RS-Index-r16.c new file mode 100644 index 00000000..27fbbbbd --- /dev/null +++ b/asn.1/lpp_generated/ResultsPerCSI-RS-Index-r16.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ResultsPerCSI-RS-Index-r16.h" + +static int +memb_csi_RS_Index_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 95L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_csi_RS_Index_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 95 } /* (0..95) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_ResultsPerCSI_RS_Index_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ResultsPerCSI_RS_Index_r16, csi_RS_Index_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_csi_RS_Index_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_csi_RS_Index_r16_constraint_1 + }, + 0, 0, /* No default value */ + "csi-RS-Index-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct ResultsPerCSI_RS_Index_r16, csi_RS_Results_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MeasQuantityResults_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "csi-RS-Results-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_ResultsPerCSI_RS_Index_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ResultsPerCSI_RS_Index_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* csi-RS-Index-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* csi-RS-Results-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ResultsPerCSI_RS_Index_r16_specs_1 = { + sizeof(struct ResultsPerCSI_RS_Index_r16), + offsetof(struct ResultsPerCSI_RS_Index_r16, _asn_ctx), + asn_MAP_ResultsPerCSI_RS_Index_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ResultsPerCSI_RS_Index_r16 = { + "ResultsPerCSI-RS-Index-r16", + "ResultsPerCSI-RS-Index-r16", + &asn_OP_SEQUENCE, + asn_DEF_ResultsPerCSI_RS_Index_r16_tags_1, + sizeof(asn_DEF_ResultsPerCSI_RS_Index_r16_tags_1) + /sizeof(asn_DEF_ResultsPerCSI_RS_Index_r16_tags_1[0]), /* 1 */ + asn_DEF_ResultsPerCSI_RS_Index_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_ResultsPerCSI_RS_Index_r16_tags_1) + /sizeof(asn_DEF_ResultsPerCSI_RS_Index_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ResultsPerCSI_RS_Index_r16_1, + 2, /* Elements count */ + &asn_SPC_ResultsPerCSI_RS_Index_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/ResultsPerCSI-RS-Index-r16.h b/asn.1/lpp_generated/ResultsPerCSI-RS-Index-r16.h new file mode 100644 index 00000000..a9ecef23 --- /dev/null +++ b/asn.1/lpp_generated/ResultsPerCSI-RS-Index-r16.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _ResultsPerCSI_RS_Index_r16_H_ +#define _ResultsPerCSI_RS_Index_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include "MeasQuantityResults-r16.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* ResultsPerCSI-RS-Index-r16 */ +typedef struct ResultsPerCSI_RS_Index_r16 { + long csi_RS_Index_r16; + MeasQuantityResults_r16_t csi_RS_Results_r16; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ResultsPerCSI_RS_Index_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ResultsPerCSI_RS_Index_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_ResultsPerCSI_RS_Index_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_ResultsPerCSI_RS_Index_r16_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ResultsPerCSI_RS_Index_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/ResultsPerCSI-RS-IndexList-r16.c b/asn.1/lpp_generated/ResultsPerCSI-RS-IndexList-r16.c new file mode 100644 index 00000000..13c0e857 --- /dev/null +++ b/asn.1/lpp_generated/ResultsPerCSI-RS-IndexList-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ResultsPerCSI-RS-IndexList-r16.h" + +#include "ResultsPerCSI-RS-Index-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ResultsPerCSI_RS_IndexList_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_ResultsPerCSI_RS_IndexList_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_ResultsPerCSI_RS_Index_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_ResultsPerCSI_RS_IndexList_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_ResultsPerCSI_RS_IndexList_r16_specs_1 = { + sizeof(struct ResultsPerCSI_RS_IndexList_r16), + offsetof(struct ResultsPerCSI_RS_IndexList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_ResultsPerCSI_RS_IndexList_r16 = { + "ResultsPerCSI-RS-IndexList-r16", + "ResultsPerCSI-RS-IndexList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_ResultsPerCSI_RS_IndexList_r16_tags_1, + sizeof(asn_DEF_ResultsPerCSI_RS_IndexList_r16_tags_1) + /sizeof(asn_DEF_ResultsPerCSI_RS_IndexList_r16_tags_1[0]), /* 1 */ + asn_DEF_ResultsPerCSI_RS_IndexList_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_ResultsPerCSI_RS_IndexList_r16_tags_1) + /sizeof(asn_DEF_ResultsPerCSI_RS_IndexList_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ResultsPerCSI_RS_IndexList_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_ResultsPerCSI_RS_IndexList_r16_1, + 1, /* Single element */ + &asn_SPC_ResultsPerCSI_RS_IndexList_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ResultsPerCSI-RS-IndexList-r16.h b/asn.1/lpp_generated/ResultsPerCSI-RS-IndexList-r16.h similarity index 81% rename from asn.1/generated/ResultsPerCSI-RS-IndexList-r16.h rename to asn.1/lpp_generated/ResultsPerCSI-RS-IndexList-r16.h index 48a4e0c5..40ac96f9 100644 --- a/asn.1/generated/ResultsPerCSI-RS-IndexList-r16.h +++ b/asn.1/lpp_generated/ResultsPerCSI-RS-IndexList-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _ResultsPerCSI_RS_IndexList_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_ResultsPerCSI_RS_IndexList_r16_constr_ } #endif -/* Referred external types */ -#include "ResultsPerCSI-RS-Index-r16.h" - #endif /* _ResultsPerCSI_RS_IndexList_r16_H_ */ #include diff --git a/asn.1/lpp_generated/ResultsPerSSB-Index-r16.c b/asn.1/lpp_generated/ResultsPerSSB-Index-r16.c new file mode 100644 index 00000000..bba9bfaa --- /dev/null +++ b/asn.1/lpp_generated/ResultsPerSSB-Index-r16.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ResultsPerSSB-Index-r16.h" + +static int +memb_ssb_Index_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ssb_Index_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_ResultsPerSSB_Index_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ResultsPerSSB_Index_r16, ssb_Index_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ssb_Index_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ssb_Index_r16_constraint_1 + }, + 0, 0, /* No default value */ + "ssb-Index-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct ResultsPerSSB_Index_r16, ssb_Results_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MeasQuantityResults_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssb-Results-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_ResultsPerSSB_Index_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ResultsPerSSB_Index_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ssb-Index-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ssb-Results-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ResultsPerSSB_Index_r16_specs_1 = { + sizeof(struct ResultsPerSSB_Index_r16), + offsetof(struct ResultsPerSSB_Index_r16, _asn_ctx), + asn_MAP_ResultsPerSSB_Index_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ResultsPerSSB_Index_r16 = { + "ResultsPerSSB-Index-r16", + "ResultsPerSSB-Index-r16", + &asn_OP_SEQUENCE, + asn_DEF_ResultsPerSSB_Index_r16_tags_1, + sizeof(asn_DEF_ResultsPerSSB_Index_r16_tags_1) + /sizeof(asn_DEF_ResultsPerSSB_Index_r16_tags_1[0]), /* 1 */ + asn_DEF_ResultsPerSSB_Index_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_ResultsPerSSB_Index_r16_tags_1) + /sizeof(asn_DEF_ResultsPerSSB_Index_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ResultsPerSSB_Index_r16_1, + 2, /* Elements count */ + &asn_SPC_ResultsPerSSB_Index_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/ResultsPerSSB-Index-r16.h b/asn.1/lpp_generated/ResultsPerSSB-Index-r16.h new file mode 100644 index 00000000..cf9c6783 --- /dev/null +++ b/asn.1/lpp_generated/ResultsPerSSB-Index-r16.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _ResultsPerSSB_Index_r16_H_ +#define _ResultsPerSSB_Index_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include "MeasQuantityResults-r16.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* ResultsPerSSB-Index-r16 */ +typedef struct ResultsPerSSB_Index_r16 { + long ssb_Index_r16; + MeasQuantityResults_r16_t ssb_Results_r16; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ResultsPerSSB_Index_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ResultsPerSSB_Index_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_ResultsPerSSB_Index_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_ResultsPerSSB_Index_r16_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ResultsPerSSB_Index_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/ResultsPerSSB-IndexList-r16.c b/asn.1/lpp_generated/ResultsPerSSB-IndexList-r16.c new file mode 100644 index 00000000..00d7c6fb --- /dev/null +++ b/asn.1/lpp_generated/ResultsPerSSB-IndexList-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ResultsPerSSB-IndexList-r16.h" + +#include "ResultsPerSSB-Index-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ResultsPerSSB_IndexList_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_ResultsPerSSB_IndexList_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_ResultsPerSSB_Index_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_ResultsPerSSB_IndexList_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_ResultsPerSSB_IndexList_r16_specs_1 = { + sizeof(struct ResultsPerSSB_IndexList_r16), + offsetof(struct ResultsPerSSB_IndexList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_ResultsPerSSB_IndexList_r16 = { + "ResultsPerSSB-IndexList-r16", + "ResultsPerSSB-IndexList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_ResultsPerSSB_IndexList_r16_tags_1, + sizeof(asn_DEF_ResultsPerSSB_IndexList_r16_tags_1) + /sizeof(asn_DEF_ResultsPerSSB_IndexList_r16_tags_1[0]), /* 1 */ + asn_DEF_ResultsPerSSB_IndexList_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_ResultsPerSSB_IndexList_r16_tags_1) + /sizeof(asn_DEF_ResultsPerSSB_IndexList_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ResultsPerSSB_IndexList_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_ResultsPerSSB_IndexList_r16_1, + 1, /* Single element */ + &asn_SPC_ResultsPerSSB_IndexList_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ResultsPerSSB-IndexList-r16.h b/asn.1/lpp_generated/ResultsPerSSB-IndexList-r16.h similarity index 81% rename from asn.1/generated/ResultsPerSSB-IndexList-r16.h rename to asn.1/lpp_generated/ResultsPerSSB-IndexList-r16.h index c5477be3..e5b9d34c 100644 --- a/asn.1/generated/ResultsPerSSB-IndexList-r16.h +++ b/asn.1/lpp_generated/ResultsPerSSB-IndexList-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _ResultsPerSSB_IndexList_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_ResultsPerSSB_IndexList_r16_constr_1; } #endif -/* Referred external types */ -#include "ResultsPerSSB-Index-r16.h" - #endif /* _ResultsPerSSB_IndexList_r16_H_ */ #include diff --git a/asn.1/lpp_generated/RxTxTEG-TimingErrorMargin-r17.c b/asn.1/lpp_generated/RxTxTEG-TimingErrorMargin-r17.c new file mode 100644 index 00000000..3efb3ce5 --- /dev/null +++ b/asn.1/lpp_generated/RxTxTEG-TimingErrorMargin-r17.c @@ -0,0 +1,91 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "RxTxTEG-TimingErrorMargin-r17.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RxTxTEG_TimingErrorMargin_r17_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_RxTxTEG_TimingErrorMargin_r17_value2enum_1[] = { + { 0, 5, "tc0-5" }, + { 1, 3, "tc1" }, + { 2, 3, "tc2" }, + { 3, 3, "tc4" }, + { 4, 3, "tc8" }, + { 5, 4, "tc12" }, + { 6, 4, "tc16" }, + { 7, 4, "tc20" }, + { 8, 4, "tc24" }, + { 9, 4, "tc32" }, + { 10, 4, "tc40" }, + { 11, 4, "tc48" }, + { 12, 4, "tc64" }, + { 13, 4, "tc80" }, + { 14, 4, "tc96" }, + { 15, 5, "tc128" } +}; +static const unsigned int asn_MAP_RxTxTEG_TimingErrorMargin_r17_enum2value_1[] = { + 0, /* tc0-5(0) */ + 1, /* tc1(1) */ + 5, /* tc12(5) */ + 15, /* tc128(15) */ + 6, /* tc16(6) */ + 2, /* tc2(2) */ + 7, /* tc20(7) */ + 8, /* tc24(8) */ + 9, /* tc32(9) */ + 3, /* tc4(3) */ + 10, /* tc40(10) */ + 11, /* tc48(11) */ + 12, /* tc64(12) */ + 4, /* tc8(4) */ + 13, /* tc80(13) */ + 14 /* tc96(14) */ +}; +const asn_INTEGER_specifics_t asn_SPC_RxTxTEG_TimingErrorMargin_r17_specs_1 = { + asn_MAP_RxTxTEG_TimingErrorMargin_r17_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_RxTxTEG_TimingErrorMargin_r17_enum2value_1, /* N => "tag"; sorted by N */ + 16, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_RxTxTEG_TimingErrorMargin_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RxTxTEG_TimingErrorMargin_r17 = { + "RxTxTEG-TimingErrorMargin-r17", + "RxTxTEG-TimingErrorMargin-r17", + &asn_OP_NativeEnumerated, + asn_DEF_RxTxTEG_TimingErrorMargin_r17_tags_1, + sizeof(asn_DEF_RxTxTEG_TimingErrorMargin_r17_tags_1) + /sizeof(asn_DEF_RxTxTEG_TimingErrorMargin_r17_tags_1[0]), /* 1 */ + asn_DEF_RxTxTEG_TimingErrorMargin_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_RxTxTEG_TimingErrorMargin_r17_tags_1) + /sizeof(asn_DEF_RxTxTEG_TimingErrorMargin_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RxTxTEG_TimingErrorMargin_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_RxTxTEG_TimingErrorMargin_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/RxTxTEG-TimingErrorMargin-r17.h b/asn.1/lpp_generated/RxTxTEG-TimingErrorMargin-r17.h new file mode 100644 index 00000000..cca1e6aa --- /dev/null +++ b/asn.1/lpp_generated/RxTxTEG-TimingErrorMargin-r17.h @@ -0,0 +1,61 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _RxTxTEG_TimingErrorMargin_r17_H_ +#define _RxTxTEG_TimingErrorMargin_r17_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum RxTxTEG_TimingErrorMargin_r17 { + RxTxTEG_TimingErrorMargin_r17_tc0_5 = 0, + RxTxTEG_TimingErrorMargin_r17_tc1 = 1, + RxTxTEG_TimingErrorMargin_r17_tc2 = 2, + RxTxTEG_TimingErrorMargin_r17_tc4 = 3, + RxTxTEG_TimingErrorMargin_r17_tc8 = 4, + RxTxTEG_TimingErrorMargin_r17_tc12 = 5, + RxTxTEG_TimingErrorMargin_r17_tc16 = 6, + RxTxTEG_TimingErrorMargin_r17_tc20 = 7, + RxTxTEG_TimingErrorMargin_r17_tc24 = 8, + RxTxTEG_TimingErrorMargin_r17_tc32 = 9, + RxTxTEG_TimingErrorMargin_r17_tc40 = 10, + RxTxTEG_TimingErrorMargin_r17_tc48 = 11, + RxTxTEG_TimingErrorMargin_r17_tc64 = 12, + RxTxTEG_TimingErrorMargin_r17_tc80 = 13, + RxTxTEG_TimingErrorMargin_r17_tc96 = 14, + RxTxTEG_TimingErrorMargin_r17_tc128 = 15 +} e_RxTxTEG_TimingErrorMargin_r17; + +/* RxTxTEG-TimingErrorMargin-r17 */ +typedef long RxTxTEG_TimingErrorMargin_r17_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_RxTxTEG_TimingErrorMargin_r17_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_RxTxTEG_TimingErrorMargin_r17; +extern const asn_INTEGER_specifics_t asn_SPC_RxTxTEG_TimingErrorMargin_r17_specs_1; +asn_struct_free_f RxTxTEG_TimingErrorMargin_r17_free; +asn_constr_check_f RxTxTEG_TimingErrorMargin_r17_constraint; +xer_type_decoder_f RxTxTEG_TimingErrorMargin_r17_decode_xer; +xer_type_encoder_f RxTxTEG_TimingErrorMargin_r17_encode_xer; +jer_type_encoder_f RxTxTEG_TimingErrorMargin_r17_encode_jer; +per_type_decoder_f RxTxTEG_TimingErrorMargin_r17_decode_uper; +per_type_encoder_f RxTxTEG_TimingErrorMargin_r17_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _RxTxTEG_TimingErrorMargin_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/SBAS-ClockModel.c b/asn.1/lpp_generated/SBAS-ClockModel.c new file mode 100644 index 00000000..405bc555 --- /dev/null +++ b/asn.1/lpp_generated/SBAS-ClockModel.c @@ -0,0 +1,198 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SBAS-ClockModel.h" + +static int +memb_sbasTo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 5399L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbasAgfo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2048L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sbasAgf1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasTo_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, 0, 5399 } /* (0..5399) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasAgfo_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbasAgf1_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SBAS_ClockModel_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SBAS_ClockModel, sbasTo), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasTo_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasTo_constraint_1 + }, + 0, 0, /* No default value */ + "sbasTo" + }, + { ATF_NOFLAGS, 0, offsetof(struct SBAS_ClockModel, sbasAgfo), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasAgfo_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasAgfo_constraint_1 + }, + 0, 0, /* No default value */ + "sbasAgfo" + }, + { ATF_NOFLAGS, 0, offsetof(struct SBAS_ClockModel, sbasAgf1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbasAgf1_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbasAgf1_constraint_1 + }, + 0, 0, /* No default value */ + "sbasAgf1" + }, +}; +static const ber_tlv_tag_t asn_DEF_SBAS_ClockModel_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SBAS_ClockModel_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sbasTo */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sbasAgfo */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* sbasAgf1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SBAS_ClockModel_specs_1 = { + sizeof(struct SBAS_ClockModel), + offsetof(struct SBAS_ClockModel, _asn_ctx), + asn_MAP_SBAS_ClockModel_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SBAS_ClockModel = { + "SBAS-ClockModel", + "SBAS-ClockModel", + &asn_OP_SEQUENCE, + asn_DEF_SBAS_ClockModel_tags_1, + sizeof(asn_DEF_SBAS_ClockModel_tags_1) + /sizeof(asn_DEF_SBAS_ClockModel_tags_1[0]), /* 1 */ + asn_DEF_SBAS_ClockModel_tags_1, /* Same as above */ + sizeof(asn_DEF_SBAS_ClockModel_tags_1) + /sizeof(asn_DEF_SBAS_ClockModel_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SBAS_ClockModel_1, + 3, /* Elements count */ + &asn_SPC_SBAS_ClockModel_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SBAS-ClockModel.h b/asn.1/lpp_generated/SBAS-ClockModel.h similarity index 78% rename from asn.1/generated/SBAS-ClockModel.h rename to asn.1/lpp_generated/SBAS-ClockModel.h index 335f283f..9cbac53f 100644 --- a/asn.1/generated/SBAS-ClockModel.h +++ b/asn.1/lpp_generated/SBAS-ClockModel.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SBAS_ClockModel_H_ diff --git a/asn.1/lpp_generated/SBAS-ID.c b/asn.1/lpp_generated/SBAS-ID.c new file mode 100644 index 00000000..9888fc0f --- /dev/null +++ b/asn.1/lpp_generated/SBAS-ID.c @@ -0,0 +1,128 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SBAS-ID.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_sbas_id_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_sbas_id_value2enum_2[] = { + { 0, 4, "waas" }, + { 1, 5, "egnos" }, + { 2, 4, "msas" }, + { 3, 5, "gagan" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_sbas_id_enum2value_2[] = { + 1, /* egnos(1) */ + 3, /* gagan(3) */ + 2, /* msas(2) */ + 0 /* waas(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_sbas_id_specs_2 = { + asn_MAP_sbas_id_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_sbas_id_enum2value_2, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_sbas_id_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_sbas_id_2 = { + "sbas-id", + "sbas-id", + &asn_OP_NativeEnumerated, + asn_DEF_sbas_id_tags_2, + sizeof(asn_DEF_sbas_id_tags_2) + /sizeof(asn_DEF_sbas_id_tags_2[0]) - 1, /* 1 */ + asn_DEF_sbas_id_tags_2, /* Same as above */ + sizeof(asn_DEF_sbas_id_tags_2) + /sizeof(asn_DEF_sbas_id_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_sbas_id_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_sbas_id_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_SBAS_ID_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SBAS_ID, sbas_id), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_sbas_id_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sbas-id" + }, +}; +static const ber_tlv_tag_t asn_DEF_SBAS_ID_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SBAS_ID_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* sbas-id */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SBAS_ID_specs_1 = { + sizeof(struct SBAS_ID), + offsetof(struct SBAS_ID, _asn_ctx), + asn_MAP_SBAS_ID_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SBAS_ID = { + "SBAS-ID", + "SBAS-ID", + &asn_OP_SEQUENCE, + asn_DEF_SBAS_ID_tags_1, + sizeof(asn_DEF_SBAS_ID_tags_1) + /sizeof(asn_DEF_SBAS_ID_tags_1[0]), /* 1 */ + asn_DEF_SBAS_ID_tags_1, /* Same as above */ + sizeof(asn_DEF_SBAS_ID_tags_1) + /sizeof(asn_DEF_SBAS_ID_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SBAS_ID_1, + 1, /* Elements count */ + &asn_SPC_SBAS_ID_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SBAS-ID.h b/asn.1/lpp_generated/SBAS-ID.h similarity index 81% rename from asn.1/generated/SBAS-ID.h rename to asn.1/lpp_generated/SBAS-ID.h index 0a92d97e..2d114287 100644 --- a/asn.1/generated/SBAS-ID.h +++ b/asn.1/lpp_generated/SBAS-ID.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SBAS_ID_H_ diff --git a/asn.1/lpp_generated/SBAS-IDs.c b/asn.1/lpp_generated/SBAS-IDs.c new file mode 100644 index 00000000..2c2febfc --- /dev/null +++ b/asn.1/lpp_generated/SBAS-IDs.c @@ -0,0 +1,104 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SBAS-IDs.h" + +static int +memb_sbas_IDs_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sbas_IDs_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SBAS_IDs_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SBAS_IDs, sbas_IDs), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sbas_IDs_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sbas_IDs_constraint_1 + }, + 0, 0, /* No default value */ + "sbas-IDs" + }, +}; +static const ber_tlv_tag_t asn_DEF_SBAS_IDs_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SBAS_IDs_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* sbas-IDs */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SBAS_IDs_specs_1 = { + sizeof(struct SBAS_IDs), + offsetof(struct SBAS_IDs, _asn_ctx), + asn_MAP_SBAS_IDs_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SBAS_IDs = { + "SBAS-IDs", + "SBAS-IDs", + &asn_OP_SEQUENCE, + asn_DEF_SBAS_IDs_tags_1, + sizeof(asn_DEF_SBAS_IDs_tags_1) + /sizeof(asn_DEF_SBAS_IDs_tags_1[0]), /* 1 */ + asn_DEF_SBAS_IDs_tags_1, /* Same as above */ + sizeof(asn_DEF_SBAS_IDs_tags_1) + /sizeof(asn_DEF_SBAS_IDs_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SBAS_IDs_1, + 1, /* Elements count */ + &asn_SPC_SBAS_IDs_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SBAS-IDs.h b/asn.1/lpp_generated/SBAS-IDs.h similarity index 80% rename from asn.1/generated/SBAS-IDs.h rename to asn.1/lpp_generated/SBAS-IDs.h index e17aa639..61a35205 100644 --- a/asn.1/generated/SBAS-IDs.h +++ b/asn.1/lpp_generated/SBAS-IDs.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SBAS_IDs_H_ diff --git a/asn.1/lpp_generated/SFN-r15.c b/asn.1/lpp_generated/SFN-r15.c new file mode 100644 index 00000000..e01e3e98 --- /dev/null +++ b/asn.1/lpp_generated/SFN-r15.c @@ -0,0 +1,162 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SFN-r15.h" + +static int +memb_sfn_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 10UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_hyperSFN_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 10UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sfn_r15_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_hyperSFN_r15_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 10, 10 } /* (SIZE(10..10)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SFN_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SFN_r15, sfn_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sfn_r15_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sfn_r15_constraint_1 + }, + 0, 0, /* No default value */ + "sfn-r15" + }, + { ATF_POINTER, 1, offsetof(struct SFN_r15, hyperSFN_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_hyperSFN_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_hyperSFN_r15_constraint_1 + }, + 0, 0, /* No default value */ + "hyperSFN-r15" + }, +}; +static const int asn_MAP_SFN_r15_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_SFN_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SFN_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sfn-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* hyperSFN-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SFN_r15_specs_1 = { + sizeof(struct SFN_r15), + offsetof(struct SFN_r15, _asn_ctx), + asn_MAP_SFN_r15_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_SFN_r15_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SFN_r15 = { + "SFN-r15", + "SFN-r15", + &asn_OP_SEQUENCE, + asn_DEF_SFN_r15_tags_1, + sizeof(asn_DEF_SFN_r15_tags_1) + /sizeof(asn_DEF_SFN_r15_tags_1[0]), /* 1 */ + asn_DEF_SFN_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_SFN_r15_tags_1) + /sizeof(asn_DEF_SFN_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SFN_r15_1, + 2, /* Elements count */ + &asn_SPC_SFN_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SFN-r15.h b/asn.1/lpp_generated/SFN-r15.h new file mode 100644 index 00000000..f747f79c --- /dev/null +++ b/asn.1/lpp_generated/SFN-r15.h @@ -0,0 +1,45 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SFN_r15_H_ +#define _SFN_r15_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* SFN-r15 */ +typedef struct SFN_r15 { + BIT_STRING_t sfn_r15; + BIT_STRING_t *hyperSFN_r15; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SFN_r15_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SFN_r15; +extern asn_SEQUENCE_specifics_t asn_SPC_SFN_r15_specs_1; +extern asn_TYPE_member_t asn_MBR_SFN_r15_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SFN_r15_H_ */ +#include diff --git a/asn.1/lpp_generated/SRS-CapabilityPerBand-r16.c b/asn.1/lpp_generated/SRS-CapabilityPerBand-r16.c new file mode 100644 index 00000000..69b16fb7 --- /dev/null +++ b/asn.1/lpp_generated/SRS-CapabilityPerBand-r16.c @@ -0,0 +1,837 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SRS-CapabilityPerBand-r16.h" + +#include "OLPC-SRS-Pos-r16.h" +#include "SpatialRelationsSRS-Pos-r16.h" +#include "PosSRS-RRC-Inactive-InInitialUL-BWP-r17.h" +#include "PosSRS-RRC-Inactive-OutsideInitialUL-BWP-r17.h" +#include "PosSRS-SP-RRC-Inactive-InInitialUL-BWP-r17.h" +#include "PosSRS-TxFrequencyHoppingRRC-Connected-r18.h" +#include "PosSRS-TxFrequencyHoppingRRC-Inactive-r18.h" +#include "PosSRS-BWA-RRC-Inactive-r18.h" +#include "PosSRS-BWA-RRC-Connected-r18.h" +#include "PosSRS-BWA-IndependentCA-RRC-Connected-r18.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18_constr_20 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_posSRS_TxFH_WithTimeWindow_r18_constr_24 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_6[] = { + { ATF_POINTER, 4, offsetof(struct SRS_CapabilityPerBand_r16__ext1, posSRS_RRC_Inactive_InInitialUL_BWP_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosSRS_RRC_Inactive_InInitialUL_BWP_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posSRS-RRC-Inactive-InInitialUL-BWP-r17" + }, + { ATF_POINTER, 3, offsetof(struct SRS_CapabilityPerBand_r16__ext1, posSRS_RRC_Inactive_OutsideInitialUL_BWP_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posSRS-RRC-Inactive-OutsideInitialUL-BWP-r17" + }, + { ATF_POINTER, 2, offsetof(struct SRS_CapabilityPerBand_r16__ext1, olpc_SRS_PosRRC_Inactive_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OLPC_SRS_Pos_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "olpc-SRS-PosRRC-Inactive-r17" + }, + { ATF_POINTER, 1, offsetof(struct SRS_CapabilityPerBand_r16__ext1, spatialRelationsSRS_PosRRC_Inactive_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpatialRelationsSRS_Pos_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spatialRelationsSRS-PosRRC-Inactive-r17" + }, +}; +static const int asn_MAP_ext1_oms_6[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* posSRS-RRC-Inactive-InInitialUL-BWP-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* posSRS-RRC-Inactive-OutsideInitialUL-BWP-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* olpc-SRS-PosRRC-Inactive-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* spatialRelationsSRS-PosRRC-Inactive-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = { + sizeof(struct SRS_CapabilityPerBand_r16__ext1), + offsetof(struct SRS_CapabilityPerBand_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_6, + 4, /* Count of tags in the map */ + asn_MAP_ext1_oms_6, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_6 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_6, + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_6, /* Same as above */ + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_6, + 4, /* Elements count */ + &asn_SPC_ext1_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_11[] = { + { ATF_POINTER, 1, offsetof(struct SRS_CapabilityPerBand_r16__ext2, posSRS_SP_RRC_Inactive_InInitialUL_BWP_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posSRS-SP-RRC-Inactive-InInitialUL-BWP-r17" + }, +}; +static const int asn_MAP_ext2_oms_11[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* posSRS-SP-RRC-Inactive-InInitialUL-BWP-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_11 = { + sizeof(struct SRS_CapabilityPerBand_r16__ext2), + offsetof(struct SRS_CapabilityPerBand_r16__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_11, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_11, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_11 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_11, + sizeof(asn_DEF_ext2_tags_11) + /sizeof(asn_DEF_ext2_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_11, /* Same as above */ + sizeof(asn_DEF_ext2_tags_11) + /sizeof(asn_DEF_ext2_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_11, + 1, /* Elements count */ + &asn_SPC_ext2_specs_11 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18_value2enum_14[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18_enum2value_14[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18_specs_14 = { + asn_MAP_posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18_value2enum_14, /* "tag" => N; sorted by tag */ + asn_MAP_posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18_enum2value_14, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18_tags_14[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18_14 = { + "posSRS-Preconfigured-RRC-InactiveInitialUL-BWP-r18", + "posSRS-Preconfigured-RRC-InactiveInitialUL-BWP-r18", + &asn_OP_NativeEnumerated, + asn_DEF_posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18_tags_14, + sizeof(asn_DEF_posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18_tags_14) + /sizeof(asn_DEF_posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18_tags_14[0]) - 1, /* 1 */ + asn_DEF_posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18_tags_14, /* Same as above */ + sizeof(asn_DEF_posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18_tags_14) + /sizeof(asn_DEF_posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18_tags_14[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18_specs_14 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18_value2enum_16[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18_enum2value_16[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18_specs_16 = { + asn_MAP_posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18_value2enum_16, /* "tag" => N; sorted by tag */ + asn_MAP_posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18_enum2value_16, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18_tags_16[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18_16 = { + "posSRS-Preconfigured-RRC-InactiveOutsideInitialUL-BWP-r18", + "posSRS-Preconfigured-RRC-InactiveOutsideInitialUL-BWP-r18", + &asn_OP_NativeEnumerated, + asn_DEF_posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18_tags_16, + sizeof(asn_DEF_posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18_tags_16) + /sizeof(asn_DEF_posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18_tags_16[0]) - 1, /* 1 */ + asn_DEF_posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18_tags_16, /* Same as above */ + sizeof(asn_DEF_posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18_tags_16) + /sizeof(asn_DEF_posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18_tags_16[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18_specs_16 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18_value2enum_18[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18_enum2value_18[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18_specs_18 = { + asn_MAP_posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18_value2enum_18, /* "tag" => N; sorted by tag */ + asn_MAP_posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18_enum2value_18, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18_18 = { + "posSRS-ValidityAreaRRC-InactiveInitialUL-BWP-r18", + "posSRS-ValidityAreaRRC-InactiveInitialUL-BWP-r18", + &asn_OP_NativeEnumerated, + asn_DEF_posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18_tags_18, + sizeof(asn_DEF_posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18_tags_18) + /sizeof(asn_DEF_posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18_tags_18[0]) - 1, /* 1 */ + asn_DEF_posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18_tags_18, /* Same as above */ + sizeof(asn_DEF_posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18_tags_18) + /sizeof(asn_DEF_posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18_specs_18 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18_value2enum_20[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18_enum2value_20[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18_specs_20 = { + asn_MAP_posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18_value2enum_20, /* "tag" => N; sorted by tag */ + asn_MAP_posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18_enum2value_20, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18_tags_20[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18_20 = { + "posSRS-ValidityAreaRRC-InactiveOutsideInitialUL-BWP-r18", + "posSRS-ValidityAreaRRC-InactiveOutsideInitialUL-BWP-r18", + &asn_OP_NativeEnumerated, + asn_DEF_posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18_tags_20, + sizeof(asn_DEF_posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18_tags_20) + /sizeof(asn_DEF_posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18_tags_20[0]) - 1, /* 1 */ + asn_DEF_posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18_tags_20, /* Same as above */ + sizeof(asn_DEF_posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18_tags_20) + /sizeof(asn_DEF_posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18_tags_20[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18_constr_20, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18_specs_20 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_posSRS_TxFH_WithTimeWindow_r18_value2enum_24[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_posSRS_TxFH_WithTimeWindow_r18_enum2value_24[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_posSRS_TxFH_WithTimeWindow_r18_specs_24 = { + asn_MAP_posSRS_TxFH_WithTimeWindow_r18_value2enum_24, /* "tag" => N; sorted by tag */ + asn_MAP_posSRS_TxFH_WithTimeWindow_r18_enum2value_24, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_posSRS_TxFH_WithTimeWindow_r18_tags_24[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_posSRS_TxFH_WithTimeWindow_r18_24 = { + "posSRS-TxFH-WithTimeWindow-r18", + "posSRS-TxFH-WithTimeWindow-r18", + &asn_OP_NativeEnumerated, + asn_DEF_posSRS_TxFH_WithTimeWindow_r18_tags_24, + sizeof(asn_DEF_posSRS_TxFH_WithTimeWindow_r18_tags_24) + /sizeof(asn_DEF_posSRS_TxFH_WithTimeWindow_r18_tags_24[0]) - 1, /* 1 */ + asn_DEF_posSRS_TxFH_WithTimeWindow_r18_tags_24, /* Same as above */ + sizeof(asn_DEF_posSRS_TxFH_WithTimeWindow_r18_tags_24) + /sizeof(asn_DEF_posSRS_TxFH_WithTimeWindow_r18_tags_24[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_posSRS_TxFH_WithTimeWindow_r18_constr_24, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_posSRS_TxFH_WithTimeWindow_r18_specs_24 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_13[] = { + { ATF_POINTER, 10, offsetof(struct SRS_CapabilityPerBand_r16__ext3, posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18_14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posSRS-Preconfigured-RRC-InactiveInitialUL-BWP-r18" + }, + { ATF_POINTER, 9, offsetof(struct SRS_CapabilityPerBand_r16__ext3, posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18_16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posSRS-Preconfigured-RRC-InactiveOutsideInitialUL-BWP-r18" + }, + { ATF_POINTER, 8, offsetof(struct SRS_CapabilityPerBand_r16__ext3, posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posSRS-ValidityAreaRRC-InactiveInitialUL-BWP-r18" + }, + { ATF_POINTER, 7, offsetof(struct SRS_CapabilityPerBand_r16__ext3, posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18_20, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posSRS-ValidityAreaRRC-InactiveOutsideInitialUL-BWP-r18" + }, + { ATF_POINTER, 6, offsetof(struct SRS_CapabilityPerBand_r16__ext3, posSRS_TxFH_RRC_Connected_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosSRS_TxFrequencyHoppingRRC_Connected_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posSRS-TxFH-RRC-Connected-r18" + }, + { ATF_POINTER, 5, offsetof(struct SRS_CapabilityPerBand_r16__ext3, posSRS_TxFH_RRC_Inactive_r18), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosSRS_TxFrequencyHoppingRRC_Inactive_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posSRS-TxFH-RRC-Inactive-r18" + }, + { ATF_POINTER, 4, offsetof(struct SRS_CapabilityPerBand_r16__ext3, posSRS_TxFH_WithTimeWindow_r18), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_posSRS_TxFH_WithTimeWindow_r18_24, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posSRS-TxFH-WithTimeWindow-r18" + }, + { ATF_POINTER, 3, offsetof(struct SRS_CapabilityPerBand_r16__ext3, posSRS_BWA_RRC_Inactive_r18), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosSRS_BWA_RRC_Inactive_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posSRS-BWA-RRC-Inactive-r18" + }, + { ATF_POINTER, 2, offsetof(struct SRS_CapabilityPerBand_r16__ext3, posSRS_BWA_RRC_Connected_r18), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosSRS_BWA_RRC_Connected_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posSRS-BWA-RRC-Connected-r18" + }, + { ATF_POINTER, 1, offsetof(struct SRS_CapabilityPerBand_r16__ext3, posSRS_BWA_IndependentCA_RRC_Connected_r18), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosSRS_BWA_IndependentCA_RRC_Connected_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posSRS-BWA-IndependentCA-RRC-Connected-r18" + }, +}; +static const int asn_MAP_ext3_oms_13[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_13[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* posSRS-Preconfigured-RRC-InactiveInitialUL-BWP-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* posSRS-Preconfigured-RRC-InactiveOutsideInitialUL-BWP-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* posSRS-ValidityAreaRRC-InactiveInitialUL-BWP-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* posSRS-ValidityAreaRRC-InactiveOutsideInitialUL-BWP-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* posSRS-TxFH-RRC-Connected-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* posSRS-TxFH-RRC-Inactive-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* posSRS-TxFH-WithTimeWindow-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* posSRS-BWA-RRC-Inactive-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* posSRS-BWA-RRC-Connected-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* posSRS-BWA-IndependentCA-RRC-Connected-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_13 = { + sizeof(struct SRS_CapabilityPerBand_r16__ext3), + offsetof(struct SRS_CapabilityPerBand_r16__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_13, + 10, /* Count of tags in the map */ + asn_MAP_ext3_oms_13, /* Optional members */ + 10, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_13 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_13, + sizeof(asn_DEF_ext3_tags_13) + /sizeof(asn_DEF_ext3_tags_13[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_13, /* Same as above */ + sizeof(asn_DEF_ext3_tags_13) + /sizeof(asn_DEF_ext3_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_13, + 10, /* Elements count */ + &asn_SPC_ext3_specs_13 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_SRS_CapabilityPerBand_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SRS_CapabilityPerBand_r16, freqBandIndicatorNR_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FreqBandIndicatorNR_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "freqBandIndicatorNR-r16" + }, + { ATF_POINTER, 5, offsetof(struct SRS_CapabilityPerBand_r16, olpc_SRS_Pos_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OLPC_SRS_Pos_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "olpc-SRS-Pos-r16" + }, + { ATF_POINTER, 4, offsetof(struct SRS_CapabilityPerBand_r16, spatialRelationsSRS_Pos_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpatialRelationsSRS_Pos_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spatialRelationsSRS-Pos-r16" + }, + { ATF_POINTER, 3, offsetof(struct SRS_CapabilityPerBand_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext1_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 2, offsetof(struct SRS_CapabilityPerBand_r16, ext2), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext2_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 1, offsetof(struct SRS_CapabilityPerBand_r16, ext3), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + 0, + &asn_DEF_ext3_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, +}; +static const int asn_MAP_SRS_CapabilityPerBand_r16_oms_1[] = { 1, 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_SRS_CapabilityPerBand_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SRS_CapabilityPerBand_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* freqBandIndicatorNR-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* olpc-SRS-Pos-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* spatialRelationsSRS-Pos-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ext3 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SRS_CapabilityPerBand_r16_specs_1 = { + sizeof(struct SRS_CapabilityPerBand_r16), + offsetof(struct SRS_CapabilityPerBand_r16, _asn_ctx), + asn_MAP_SRS_CapabilityPerBand_r16_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_SRS_CapabilityPerBand_r16_oms_1, /* Optional members */ + 2, 3, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SRS_CapabilityPerBand_r16 = { + "SRS-CapabilityPerBand-r16", + "SRS-CapabilityPerBand-r16", + &asn_OP_SEQUENCE, + asn_DEF_SRS_CapabilityPerBand_r16_tags_1, + sizeof(asn_DEF_SRS_CapabilityPerBand_r16_tags_1) + /sizeof(asn_DEF_SRS_CapabilityPerBand_r16_tags_1[0]), /* 1 */ + asn_DEF_SRS_CapabilityPerBand_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_SRS_CapabilityPerBand_r16_tags_1) + /sizeof(asn_DEF_SRS_CapabilityPerBand_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SRS_CapabilityPerBand_r16_1, + 6, /* Elements count */ + &asn_SPC_SRS_CapabilityPerBand_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SRS-CapabilityPerBand-r16.h b/asn.1/lpp_generated/SRS-CapabilityPerBand-r16.h new file mode 100644 index 00000000..d8c83935 --- /dev/null +++ b/asn.1/lpp_generated/SRS-CapabilityPerBand-r16.h @@ -0,0 +1,111 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SRS_CapabilityPerBand_r16_H_ +#define _SRS_CapabilityPerBand_r16_H_ + + +#include + +/* Including external dependencies */ +#include "FreqBandIndicatorNR-r16.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum SRS_CapabilityPerBand_r16__ext3__posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18 { + SRS_CapabilityPerBand_r16__ext3__posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18_supported = 0 +} e_SRS_CapabilityPerBand_r16__ext3__posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18; +typedef enum SRS_CapabilityPerBand_r16__ext3__posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18 { + SRS_CapabilityPerBand_r16__ext3__posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18_supported = 0 +} e_SRS_CapabilityPerBand_r16__ext3__posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18; +typedef enum SRS_CapabilityPerBand_r16__ext3__posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18 { + SRS_CapabilityPerBand_r16__ext3__posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18_supported = 0 +} e_SRS_CapabilityPerBand_r16__ext3__posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18; +typedef enum SRS_CapabilityPerBand_r16__ext3__posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18 { + SRS_CapabilityPerBand_r16__ext3__posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18_supported = 0 +} e_SRS_CapabilityPerBand_r16__ext3__posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18; +typedef enum SRS_CapabilityPerBand_r16__ext3__posSRS_TxFH_WithTimeWindow_r18 { + SRS_CapabilityPerBand_r16__ext3__posSRS_TxFH_WithTimeWindow_r18_supported = 0 +} e_SRS_CapabilityPerBand_r16__ext3__posSRS_TxFH_WithTimeWindow_r18; + +/* Forward declarations */ +struct OLPC_SRS_Pos_r16; +struct SpatialRelationsSRS_Pos_r16; +struct PosSRS_RRC_Inactive_InInitialUL_BWP_r17; +struct PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17; +struct PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17; +struct PosSRS_TxFrequencyHoppingRRC_Connected_r18; +struct PosSRS_TxFrequencyHoppingRRC_Inactive_r18; +struct PosSRS_BWA_RRC_Inactive_r18; +struct PosSRS_BWA_RRC_Connected_r18; +struct PosSRS_BWA_IndependentCA_RRC_Connected_r18; + +/* SRS-CapabilityPerBand-r16 */ +typedef struct SRS_CapabilityPerBand_r16 { + FreqBandIndicatorNR_r16_t freqBandIndicatorNR_r16; + struct OLPC_SRS_Pos_r16 *olpc_SRS_Pos_r16; /* OPTIONAL */ + struct SpatialRelationsSRS_Pos_r16 *spatialRelationsSRS_Pos_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct SRS_CapabilityPerBand_r16__ext1 { + struct PosSRS_RRC_Inactive_InInitialUL_BWP_r17 *posSRS_RRC_Inactive_InInitialUL_BWP_r17; /* OPTIONAL */ + struct PosSRS_RRC_Inactive_OutsideInitialUL_BWP_r17 *posSRS_RRC_Inactive_OutsideInitialUL_BWP_r17; /* OPTIONAL */ + struct OLPC_SRS_Pos_r16 *olpc_SRS_PosRRC_Inactive_r17; /* OPTIONAL */ + struct SpatialRelationsSRS_Pos_r16 *spatialRelationsSRS_PosRRC_Inactive_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct SRS_CapabilityPerBand_r16__ext2 { + struct PosSRS_SP_RRC_Inactive_InInitialUL_BWP_r17 *posSRS_SP_RRC_Inactive_InInitialUL_BWP_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + struct SRS_CapabilityPerBand_r16__ext3 { + long *posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18; /* OPTIONAL */ + long *posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18; /* OPTIONAL */ + long *posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18; /* OPTIONAL */ + long *posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18; /* OPTIONAL */ + struct PosSRS_TxFrequencyHoppingRRC_Connected_r18 *posSRS_TxFH_RRC_Connected_r18; /* OPTIONAL */ + struct PosSRS_TxFrequencyHoppingRRC_Inactive_r18 *posSRS_TxFH_RRC_Inactive_r18; /* OPTIONAL */ + long *posSRS_TxFH_WithTimeWindow_r18; /* OPTIONAL */ + struct PosSRS_BWA_RRC_Inactive_r18 *posSRS_BWA_RRC_Inactive_r18; /* OPTIONAL */ + struct PosSRS_BWA_RRC_Connected_r18 *posSRS_BWA_RRC_Connected_r18; /* OPTIONAL */ + struct PosSRS_BWA_IndependentCA_RRC_Connected_r18 *posSRS_BWA_IndependentCA_RRC_Connected_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext3; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SRS_CapabilityPerBand_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_posSRS_Preconfigured_RRC_InactiveInitialUL_BWP_r18_14; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_posSRS_Preconfigured_RRC_InactiveOutsideInitialUL_BWP_r18_16; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_posSRS_ValidityAreaRRC_InactiveInitialUL_BWP_r18_18; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_posSRS_ValidityAreaRRC_InactiveOutsideInitialUL_BWP_r18_20; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_posSRS_TxFH_WithTimeWindow_r18_24; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_SRS_CapabilityPerBand_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_SRS_CapabilityPerBand_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_SRS_CapabilityPerBand_r16_1[6]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SRS_CapabilityPerBand_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/SRS-PosResourcesPerBand-r16.c b/asn.1/lpp_generated/SRS-PosResourcesPerBand-r16.c new file mode 100644 index 00000000..1ef6d1db --- /dev/null +++ b/asn.1/lpp_generated/SRS-PosResourcesPerBand-r16.c @@ -0,0 +1,486 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SRS-PosResourcesPerBand-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumberSRS_PosResourceSetsPerBWP_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumberSRS_PosResourcesPerBWP_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumberPeriodicSRS_PosResourcesPerBWP_r16_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumberAP_SRS_PosResourcesPerBWP_r16_constr_26 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_maxNumberSP_SRS_PosResourcesPerBWP_r16_constr_34 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_maxNumberSRS_PosResourceSetsPerBWP_r16_value2enum_3[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n12" }, + { 5, 3, "n16" } +}; +static const unsigned int asn_MAP_maxNumberSRS_PosResourceSetsPerBWP_r16_enum2value_3[] = { + 0, /* n1(0) */ + 4, /* n12(4) */ + 5, /* n16(5) */ + 1, /* n2(1) */ + 2, /* n4(2) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumberSRS_PosResourceSetsPerBWP_r16_specs_3 = { + asn_MAP_maxNumberSRS_PosResourceSetsPerBWP_r16_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumberSRS_PosResourceSetsPerBWP_r16_enum2value_3, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumberSRS_PosResourceSetsPerBWP_r16_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumberSRS_PosResourceSetsPerBWP_r16_3 = { + "maxNumberSRS-PosResourceSetsPerBWP-r16", + "maxNumberSRS-PosResourceSetsPerBWP-r16", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumberSRS_PosResourceSetsPerBWP_r16_tags_3, + sizeof(asn_DEF_maxNumberSRS_PosResourceSetsPerBWP_r16_tags_3) + /sizeof(asn_DEF_maxNumberSRS_PosResourceSetsPerBWP_r16_tags_3[0]) - 1, /* 1 */ + asn_DEF_maxNumberSRS_PosResourceSetsPerBWP_r16_tags_3, /* Same as above */ + sizeof(asn_DEF_maxNumberSRS_PosResourceSetsPerBWP_r16_tags_3) + /sizeof(asn_DEF_maxNumberSRS_PosResourceSetsPerBWP_r16_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumberSRS_PosResourceSetsPerBWP_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumberSRS_PosResourceSetsPerBWP_r16_specs_3 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNumberSRS_PosResourcesPerBWP_r16_value2enum_10[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n32" }, + { 6, 3, "n64" } +}; +static const unsigned int asn_MAP_maxNumberSRS_PosResourcesPerBWP_r16_enum2value_10[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n32(5) */ + 2, /* n4(2) */ + 6, /* n64(6) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumberSRS_PosResourcesPerBWP_r16_specs_10 = { + asn_MAP_maxNumberSRS_PosResourcesPerBWP_r16_value2enum_10, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumberSRS_PosResourcesPerBWP_r16_enum2value_10, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumberSRS_PosResourcesPerBWP_r16_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumberSRS_PosResourcesPerBWP_r16_10 = { + "maxNumberSRS-PosResourcesPerBWP-r16", + "maxNumberSRS-PosResourcesPerBWP-r16", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumberSRS_PosResourcesPerBWP_r16_tags_10, + sizeof(asn_DEF_maxNumberSRS_PosResourcesPerBWP_r16_tags_10) + /sizeof(asn_DEF_maxNumberSRS_PosResourcesPerBWP_r16_tags_10[0]) - 1, /* 1 */ + asn_DEF_maxNumberSRS_PosResourcesPerBWP_r16_tags_10, /* Same as above */ + sizeof(asn_DEF_maxNumberSRS_PosResourcesPerBWP_r16_tags_10) + /sizeof(asn_DEF_maxNumberSRS_PosResourcesPerBWP_r16_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumberSRS_PosResourcesPerBWP_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumberSRS_PosResourcesPerBWP_r16_specs_10 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNumberPeriodicSRS_PosResourcesPerBWP_r16_value2enum_18[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n32" }, + { 6, 3, "n64" } +}; +static const unsigned int asn_MAP_maxNumberPeriodicSRS_PosResourcesPerBWP_r16_enum2value_18[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n32(5) */ + 2, /* n4(2) */ + 6, /* n64(6) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumberPeriodicSRS_PosResourcesPerBWP_r16_specs_18 = { + asn_MAP_maxNumberPeriodicSRS_PosResourcesPerBWP_r16_value2enum_18, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumberPeriodicSRS_PosResourcesPerBWP_r16_enum2value_18, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumberPeriodicSRS_PosResourcesPerBWP_r16_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumberPeriodicSRS_PosResourcesPerBWP_r16_18 = { + "maxNumberPeriodicSRS-PosResourcesPerBWP-r16", + "maxNumberPeriodicSRS-PosResourcesPerBWP-r16", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumberPeriodicSRS_PosResourcesPerBWP_r16_tags_18, + sizeof(asn_DEF_maxNumberPeriodicSRS_PosResourcesPerBWP_r16_tags_18) + /sizeof(asn_DEF_maxNumberPeriodicSRS_PosResourcesPerBWP_r16_tags_18[0]) - 1, /* 1 */ + asn_DEF_maxNumberPeriodicSRS_PosResourcesPerBWP_r16_tags_18, /* Same as above */ + sizeof(asn_DEF_maxNumberPeriodicSRS_PosResourcesPerBWP_r16_tags_18) + /sizeof(asn_DEF_maxNumberPeriodicSRS_PosResourcesPerBWP_r16_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumberPeriodicSRS_PosResourcesPerBWP_r16_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumberPeriodicSRS_PosResourcesPerBWP_r16_specs_18 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNumberAP_SRS_PosResourcesPerBWP_r16_value2enum_26[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n32" }, + { 6, 3, "n64" } +}; +static const unsigned int asn_MAP_maxNumberAP_SRS_PosResourcesPerBWP_r16_enum2value_26[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n32(5) */ + 2, /* n4(2) */ + 6, /* n64(6) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumberAP_SRS_PosResourcesPerBWP_r16_specs_26 = { + asn_MAP_maxNumberAP_SRS_PosResourcesPerBWP_r16_value2enum_26, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumberAP_SRS_PosResourcesPerBWP_r16_enum2value_26, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumberAP_SRS_PosResourcesPerBWP_r16_tags_26[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumberAP_SRS_PosResourcesPerBWP_r16_26 = { + "maxNumberAP-SRS-PosResourcesPerBWP-r16", + "maxNumberAP-SRS-PosResourcesPerBWP-r16", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumberAP_SRS_PosResourcesPerBWP_r16_tags_26, + sizeof(asn_DEF_maxNumberAP_SRS_PosResourcesPerBWP_r16_tags_26) + /sizeof(asn_DEF_maxNumberAP_SRS_PosResourcesPerBWP_r16_tags_26[0]) - 1, /* 1 */ + asn_DEF_maxNumberAP_SRS_PosResourcesPerBWP_r16_tags_26, /* Same as above */ + sizeof(asn_DEF_maxNumberAP_SRS_PosResourcesPerBWP_r16_tags_26) + /sizeof(asn_DEF_maxNumberAP_SRS_PosResourcesPerBWP_r16_tags_26[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumberAP_SRS_PosResourcesPerBWP_r16_constr_26, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumberAP_SRS_PosResourcesPerBWP_r16_specs_26 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_maxNumberSP_SRS_PosResourcesPerBWP_r16_value2enum_34[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n4" }, + { 3, 2, "n8" }, + { 4, 3, "n16" }, + { 5, 3, "n32" }, + { 6, 3, "n64" } +}; +static const unsigned int asn_MAP_maxNumberSP_SRS_PosResourcesPerBWP_r16_enum2value_34[] = { + 0, /* n1(0) */ + 4, /* n16(4) */ + 1, /* n2(1) */ + 5, /* n32(5) */ + 2, /* n4(2) */ + 6, /* n64(6) */ + 3 /* n8(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_maxNumberSP_SRS_PosResourcesPerBWP_r16_specs_34 = { + asn_MAP_maxNumberSP_SRS_PosResourcesPerBWP_r16_value2enum_34, /* "tag" => N; sorted by tag */ + asn_MAP_maxNumberSP_SRS_PosResourcesPerBWP_r16_enum2value_34, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_maxNumberSP_SRS_PosResourcesPerBWP_r16_tags_34[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_maxNumberSP_SRS_PosResourcesPerBWP_r16_34 = { + "maxNumberSP-SRS-PosResourcesPerBWP-r16", + "maxNumberSP-SRS-PosResourcesPerBWP-r16", + &asn_OP_NativeEnumerated, + asn_DEF_maxNumberSP_SRS_PosResourcesPerBWP_r16_tags_34, + sizeof(asn_DEF_maxNumberSP_SRS_PosResourcesPerBWP_r16_tags_34) + /sizeof(asn_DEF_maxNumberSP_SRS_PosResourcesPerBWP_r16_tags_34[0]) - 1, /* 1 */ + asn_DEF_maxNumberSP_SRS_PosResourcesPerBWP_r16_tags_34, /* Same as above */ + sizeof(asn_DEF_maxNumberSP_SRS_PosResourcesPerBWP_r16_tags_34) + /sizeof(asn_DEF_maxNumberSP_SRS_PosResourcesPerBWP_r16_tags_34[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_maxNumberSP_SRS_PosResourcesPerBWP_r16_constr_34, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_maxNumberSP_SRS_PosResourcesPerBWP_r16_specs_34 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_SRS_PosResourcesPerBand_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SRS_PosResourcesPerBand_r16, freqBandIndicatorNR_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FreqBandIndicatorNR_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "freqBandIndicatorNR-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct SRS_PosResourcesPerBand_r16, maxNumberSRS_PosResourceSetsPerBWP_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumberSRS_PosResourceSetsPerBWP_r16_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumberSRS-PosResourceSetsPerBWP-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct SRS_PosResourcesPerBand_r16, maxNumberSRS_PosResourcesPerBWP_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumberSRS_PosResourcesPerBWP_r16_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumberSRS-PosResourcesPerBWP-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct SRS_PosResourcesPerBand_r16, maxNumberPeriodicSRS_PosResourcesPerBWP_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumberPeriodicSRS_PosResourcesPerBWP_r16_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumberPeriodicSRS-PosResourcesPerBWP-r16" + }, + { ATF_POINTER, 2, offsetof(struct SRS_PosResourcesPerBand_r16, maxNumberAP_SRS_PosResourcesPerBWP_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumberAP_SRS_PosResourcesPerBWP_r16_26, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumberAP-SRS-PosResourcesPerBWP-r16" + }, + { ATF_POINTER, 1, offsetof(struct SRS_PosResourcesPerBand_r16, maxNumberSP_SRS_PosResourcesPerBWP_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_maxNumberSP_SRS_PosResourcesPerBWP_r16_34, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "maxNumberSP-SRS-PosResourcesPerBWP-r16" + }, +}; +static const int asn_MAP_SRS_PosResourcesPerBand_r16_oms_1[] = { 4, 5 }; +static const ber_tlv_tag_t asn_DEF_SRS_PosResourcesPerBand_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SRS_PosResourcesPerBand_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* freqBandIndicatorNR-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxNumberSRS-PosResourceSetsPerBWP-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* maxNumberSRS-PosResourcesPerBWP-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* maxNumberPeriodicSRS-PosResourcesPerBWP-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* maxNumberAP-SRS-PosResourcesPerBWP-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* maxNumberSP-SRS-PosResourcesPerBWP-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SRS_PosResourcesPerBand_r16_specs_1 = { + sizeof(struct SRS_PosResourcesPerBand_r16), + offsetof(struct SRS_PosResourcesPerBand_r16, _asn_ctx), + asn_MAP_SRS_PosResourcesPerBand_r16_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_SRS_PosResourcesPerBand_r16_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SRS_PosResourcesPerBand_r16 = { + "SRS-PosResourcesPerBand-r16", + "SRS-PosResourcesPerBand-r16", + &asn_OP_SEQUENCE, + asn_DEF_SRS_PosResourcesPerBand_r16_tags_1, + sizeof(asn_DEF_SRS_PosResourcesPerBand_r16_tags_1) + /sizeof(asn_DEF_SRS_PosResourcesPerBand_r16_tags_1[0]), /* 1 */ + asn_DEF_SRS_PosResourcesPerBand_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_SRS_PosResourcesPerBand_r16_tags_1) + /sizeof(asn_DEF_SRS_PosResourcesPerBand_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SRS_PosResourcesPerBand_r16_1, + 6, /* Elements count */ + &asn_SPC_SRS_PosResourcesPerBand_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SRS-PosResourcesPerBand-r16.h b/asn.1/lpp_generated/SRS-PosResourcesPerBand-r16.h new file mode 100644 index 00000000..e49b5385 --- /dev/null +++ b/asn.1/lpp_generated/SRS-PosResourcesPerBand-r16.h @@ -0,0 +1,101 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SRS_PosResourcesPerBand_r16_H_ +#define _SRS_PosResourcesPerBand_r16_H_ + + +#include + +/* Including external dependencies */ +#include "FreqBandIndicatorNR-r16.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum SRS_PosResourcesPerBand_r16__maxNumberSRS_PosResourceSetsPerBWP_r16 { + SRS_PosResourcesPerBand_r16__maxNumberSRS_PosResourceSetsPerBWP_r16_n1 = 0, + SRS_PosResourcesPerBand_r16__maxNumberSRS_PosResourceSetsPerBWP_r16_n2 = 1, + SRS_PosResourcesPerBand_r16__maxNumberSRS_PosResourceSetsPerBWP_r16_n4 = 2, + SRS_PosResourcesPerBand_r16__maxNumberSRS_PosResourceSetsPerBWP_r16_n8 = 3, + SRS_PosResourcesPerBand_r16__maxNumberSRS_PosResourceSetsPerBWP_r16_n12 = 4, + SRS_PosResourcesPerBand_r16__maxNumberSRS_PosResourceSetsPerBWP_r16_n16 = 5 +} e_SRS_PosResourcesPerBand_r16__maxNumberSRS_PosResourceSetsPerBWP_r16; +typedef enum SRS_PosResourcesPerBand_r16__maxNumberSRS_PosResourcesPerBWP_r16 { + SRS_PosResourcesPerBand_r16__maxNumberSRS_PosResourcesPerBWP_r16_n1 = 0, + SRS_PosResourcesPerBand_r16__maxNumberSRS_PosResourcesPerBWP_r16_n2 = 1, + SRS_PosResourcesPerBand_r16__maxNumberSRS_PosResourcesPerBWP_r16_n4 = 2, + SRS_PosResourcesPerBand_r16__maxNumberSRS_PosResourcesPerBWP_r16_n8 = 3, + SRS_PosResourcesPerBand_r16__maxNumberSRS_PosResourcesPerBWP_r16_n16 = 4, + SRS_PosResourcesPerBand_r16__maxNumberSRS_PosResourcesPerBWP_r16_n32 = 5, + SRS_PosResourcesPerBand_r16__maxNumberSRS_PosResourcesPerBWP_r16_n64 = 6 +} e_SRS_PosResourcesPerBand_r16__maxNumberSRS_PosResourcesPerBWP_r16; +typedef enum SRS_PosResourcesPerBand_r16__maxNumberPeriodicSRS_PosResourcesPerBWP_r16 { + SRS_PosResourcesPerBand_r16__maxNumberPeriodicSRS_PosResourcesPerBWP_r16_n1 = 0, + SRS_PosResourcesPerBand_r16__maxNumberPeriodicSRS_PosResourcesPerBWP_r16_n2 = 1, + SRS_PosResourcesPerBand_r16__maxNumberPeriodicSRS_PosResourcesPerBWP_r16_n4 = 2, + SRS_PosResourcesPerBand_r16__maxNumberPeriodicSRS_PosResourcesPerBWP_r16_n8 = 3, + SRS_PosResourcesPerBand_r16__maxNumberPeriodicSRS_PosResourcesPerBWP_r16_n16 = 4, + SRS_PosResourcesPerBand_r16__maxNumberPeriodicSRS_PosResourcesPerBWP_r16_n32 = 5, + SRS_PosResourcesPerBand_r16__maxNumberPeriodicSRS_PosResourcesPerBWP_r16_n64 = 6 +} e_SRS_PosResourcesPerBand_r16__maxNumberPeriodicSRS_PosResourcesPerBWP_r16; +typedef enum SRS_PosResourcesPerBand_r16__maxNumberAP_SRS_PosResourcesPerBWP_r16 { + SRS_PosResourcesPerBand_r16__maxNumberAP_SRS_PosResourcesPerBWP_r16_n1 = 0, + SRS_PosResourcesPerBand_r16__maxNumberAP_SRS_PosResourcesPerBWP_r16_n2 = 1, + SRS_PosResourcesPerBand_r16__maxNumberAP_SRS_PosResourcesPerBWP_r16_n4 = 2, + SRS_PosResourcesPerBand_r16__maxNumberAP_SRS_PosResourcesPerBWP_r16_n8 = 3, + SRS_PosResourcesPerBand_r16__maxNumberAP_SRS_PosResourcesPerBWP_r16_n16 = 4, + SRS_PosResourcesPerBand_r16__maxNumberAP_SRS_PosResourcesPerBWP_r16_n32 = 5, + SRS_PosResourcesPerBand_r16__maxNumberAP_SRS_PosResourcesPerBWP_r16_n64 = 6 +} e_SRS_PosResourcesPerBand_r16__maxNumberAP_SRS_PosResourcesPerBWP_r16; +typedef enum SRS_PosResourcesPerBand_r16__maxNumberSP_SRS_PosResourcesPerBWP_r16 { + SRS_PosResourcesPerBand_r16__maxNumberSP_SRS_PosResourcesPerBWP_r16_n1 = 0, + SRS_PosResourcesPerBand_r16__maxNumberSP_SRS_PosResourcesPerBWP_r16_n2 = 1, + SRS_PosResourcesPerBand_r16__maxNumberSP_SRS_PosResourcesPerBWP_r16_n4 = 2, + SRS_PosResourcesPerBand_r16__maxNumberSP_SRS_PosResourcesPerBWP_r16_n8 = 3, + SRS_PosResourcesPerBand_r16__maxNumberSP_SRS_PosResourcesPerBWP_r16_n16 = 4, + SRS_PosResourcesPerBand_r16__maxNumberSP_SRS_PosResourcesPerBWP_r16_n32 = 5, + SRS_PosResourcesPerBand_r16__maxNumberSP_SRS_PosResourcesPerBWP_r16_n64 = 6 +} e_SRS_PosResourcesPerBand_r16__maxNumberSP_SRS_PosResourcesPerBWP_r16; + +/* SRS-PosResourcesPerBand-r16 */ +typedef struct SRS_PosResourcesPerBand_r16 { + FreqBandIndicatorNR_r16_t freqBandIndicatorNR_r16; + long maxNumberSRS_PosResourceSetsPerBWP_r16; + long maxNumberSRS_PosResourcesPerBWP_r16; + long maxNumberPeriodicSRS_PosResourcesPerBWP_r16; + long *maxNumberAP_SRS_PosResourcesPerBWP_r16; /* OPTIONAL */ + long *maxNumberSP_SRS_PosResourcesPerBWP_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SRS_PosResourcesPerBand_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumberSRS_PosResourceSetsPerBWP_r16_3; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumberSRS_PosResourcesPerBWP_r16_10; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumberPeriodicSRS_PosResourcesPerBWP_r16_18; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumberAP_SRS_PosResourcesPerBWP_r16_26; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_maxNumberSP_SRS_PosResourcesPerBWP_r16_34; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_SRS_PosResourcesPerBand_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_SRS_PosResourcesPerBand_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_SRS_PosResourcesPerBand_r16_1[6]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SRS_PosResourcesPerBand_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/SSR-ClockCorrectionList-r15.c b/asn.1/lpp_generated/SSR-ClockCorrectionList-r15.c new file mode 100644 index 00000000..e750eae4 --- /dev/null +++ b/asn.1/lpp_generated/SSR-ClockCorrectionList-r15.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-ClockCorrectionList-r15.h" + +#include "SSR-ClockCorrectionSatelliteElement-r15.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SSR_ClockCorrectionList_r15_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SSR_ClockCorrectionList_r15_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SSR_ClockCorrectionSatelliteElement_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SSR_ClockCorrectionList_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SSR_ClockCorrectionList_r15_specs_1 = { + sizeof(struct SSR_ClockCorrectionList_r15), + offsetof(struct SSR_ClockCorrectionList_r15, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_ClockCorrectionList_r15 = { + "SSR-ClockCorrectionList-r15", + "SSR-ClockCorrectionList-r15", + &asn_OP_SEQUENCE_OF, + asn_DEF_SSR_ClockCorrectionList_r15_tags_1, + sizeof(asn_DEF_SSR_ClockCorrectionList_r15_tags_1) + /sizeof(asn_DEF_SSR_ClockCorrectionList_r15_tags_1[0]), /* 1 */ + asn_DEF_SSR_ClockCorrectionList_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_ClockCorrectionList_r15_tags_1) + /sizeof(asn_DEF_SSR_ClockCorrectionList_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SSR_ClockCorrectionList_r15_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SSR_ClockCorrectionList_r15_1, + 1, /* Single element */ + &asn_SPC_SSR_ClockCorrectionList_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SSR-ClockCorrectionList-r15.h b/asn.1/lpp_generated/SSR-ClockCorrectionList-r15.h similarity index 81% rename from asn.1/generated/SSR-ClockCorrectionList-r15.h rename to asn.1/lpp_generated/SSR-ClockCorrectionList-r15.h index 5c909b23..f5d29005 100644 --- a/asn.1/generated/SSR-ClockCorrectionList-r15.h +++ b/asn.1/lpp_generated/SSR-ClockCorrectionList-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SSR_ClockCorrectionList_r15_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_SSR_ClockCorrectionList_r15_constr_1; } #endif -/* Referred external types */ -#include "SSR-ClockCorrectionSatelliteElement-r15.h" - #endif /* _SSR_ClockCorrectionList_r15_H_ */ #include diff --git a/asn.1/lpp_generated/SSR-ClockCorrectionSatelliteElement-r15.c b/asn.1/lpp_generated/SSR-ClockCorrectionSatelliteElement-r15.c new file mode 100644 index 00000000..f26f2b44 --- /dev/null +++ b/asn.1/lpp_generated/SSR-ClockCorrectionSatelliteElement-r15.c @@ -0,0 +1,298 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-ClockCorrectionSatelliteElement-r15.h" + +#include "SSR-IntegrityClockBounds-r17.h" +static int +memb_delta_Clock_C0_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2097152L && value <= 2097151L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_delta_Clock_C1_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1048576L && value <= 1048575L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_delta_Clock_C2_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -67108864L && value <= 67108863L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_delta_Clock_C0_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, -2097152, 2097151 } /* (-2097152..2097151) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_delta_Clock_C1_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_delta_Clock_C2_r15_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 27, -1, -67108864, 67108863 } /* (-67108864..67108863) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 1, offsetof(struct SSR_ClockCorrectionSatelliteElement_r15__ext1, ssr_IntegrityClockBounds_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SSR_IntegrityClockBounds_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-IntegrityClockBounds-r17" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ssr-IntegrityClockBounds-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct SSR_ClockCorrectionSatelliteElement_r15__ext1), + offsetof(struct SSR_ClockCorrectionSatelliteElement_r15__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 1, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_SSR_ClockCorrectionSatelliteElement_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SSR_ClockCorrectionSatelliteElement_r15, svID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_ClockCorrectionSatelliteElement_r15, delta_Clock_C0_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_delta_Clock_C0_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_delta_Clock_C0_r15_constraint_1 + }, + 0, 0, /* No default value */ + "delta-Clock-C0-r15" + }, + { ATF_POINTER, 3, offsetof(struct SSR_ClockCorrectionSatelliteElement_r15, delta_Clock_C1_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_delta_Clock_C1_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_delta_Clock_C1_r15_constraint_1 + }, + 0, 0, /* No default value */ + "delta-Clock-C1-r15" + }, + { ATF_POINTER, 2, offsetof(struct SSR_ClockCorrectionSatelliteElement_r15, delta_Clock_C2_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_delta_Clock_C2_r15_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_delta_Clock_C2_r15_constraint_1 + }, + 0, 0, /* No default value */ + "delta-Clock-C2-r15" + }, + { ATF_POINTER, 1, offsetof(struct SSR_ClockCorrectionSatelliteElement_r15, ext1), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_SSR_ClockCorrectionSatelliteElement_r15_oms_1[] = { 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_SSR_ClockCorrectionSatelliteElement_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SSR_ClockCorrectionSatelliteElement_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* delta-Clock-C0-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* delta-Clock-C1-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* delta-Clock-C2-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SSR_ClockCorrectionSatelliteElement_r15_specs_1 = { + sizeof(struct SSR_ClockCorrectionSatelliteElement_r15), + offsetof(struct SSR_ClockCorrectionSatelliteElement_r15, _asn_ctx), + asn_MAP_SSR_ClockCorrectionSatelliteElement_r15_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_SSR_ClockCorrectionSatelliteElement_r15_oms_1, /* Optional members */ + 2, 1, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_ClockCorrectionSatelliteElement_r15 = { + "SSR-ClockCorrectionSatelliteElement-r15", + "SSR-ClockCorrectionSatelliteElement-r15", + &asn_OP_SEQUENCE, + asn_DEF_SSR_ClockCorrectionSatelliteElement_r15_tags_1, + sizeof(asn_DEF_SSR_ClockCorrectionSatelliteElement_r15_tags_1) + /sizeof(asn_DEF_SSR_ClockCorrectionSatelliteElement_r15_tags_1[0]), /* 1 */ + asn_DEF_SSR_ClockCorrectionSatelliteElement_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_ClockCorrectionSatelliteElement_r15_tags_1) + /sizeof(asn_DEF_SSR_ClockCorrectionSatelliteElement_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SSR_ClockCorrectionSatelliteElement_r15_1, + 5, /* Elements count */ + &asn_SPC_SSR_ClockCorrectionSatelliteElement_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SSR-ClockCorrectionSatelliteElement-r15.h b/asn.1/lpp_generated/SSR-ClockCorrectionSatelliteElement-r15.h new file mode 100644 index 00000000..60595b71 --- /dev/null +++ b/asn.1/lpp_generated/SSR-ClockCorrectionSatelliteElement-r15.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SSR_ClockCorrectionSatelliteElement_r15_H_ +#define _SSR_ClockCorrectionSatelliteElement_r15_H_ + + +#include + +/* Including external dependencies */ +#include "SV-ID.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SSR_IntegrityClockBounds_r17; + +/* SSR-ClockCorrectionSatelliteElement-r15 */ +typedef struct SSR_ClockCorrectionSatelliteElement_r15 { + SV_ID_t svID_r15; + long delta_Clock_C0_r15; + long *delta_Clock_C1_r15; /* OPTIONAL */ + long *delta_Clock_C2_r15; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct SSR_ClockCorrectionSatelliteElement_r15__ext1 { + struct SSR_IntegrityClockBounds_r17 *ssr_IntegrityClockBounds_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SSR_ClockCorrectionSatelliteElement_r15_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SSR_ClockCorrectionSatelliteElement_r15; +extern asn_SEQUENCE_specifics_t asn_SPC_SSR_ClockCorrectionSatelliteElement_r15_specs_1; +extern asn_TYPE_member_t asn_MBR_SSR_ClockCorrectionSatelliteElement_r15_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SSR_ClockCorrectionSatelliteElement_r15_H_ */ +#include diff --git a/asn.1/lpp_generated/SSR-CodeBiasSatElement-r15.c b/asn.1/lpp_generated/SSR-CodeBiasSatElement-r15.c new file mode 100644 index 00000000..812a01e3 --- /dev/null +++ b/asn.1/lpp_generated/SSR-CodeBiasSatElement-r15.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-CodeBiasSatElement-r15.h" + +asn_TYPE_member_t asn_MBR_SSR_CodeBiasSatElement_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SSR_CodeBiasSatElement_r15, svID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_CodeBiasSatElement_r15, ssr_CodeBiasSignalList_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SSR_CodeBiasSignalList_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-CodeBiasSignalList-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_SSR_CodeBiasSatElement_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SSR_CodeBiasSatElement_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ssr-CodeBiasSignalList-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SSR_CodeBiasSatElement_r15_specs_1 = { + sizeof(struct SSR_CodeBiasSatElement_r15), + offsetof(struct SSR_CodeBiasSatElement_r15, _asn_ctx), + asn_MAP_SSR_CodeBiasSatElement_r15_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_CodeBiasSatElement_r15 = { + "SSR-CodeBiasSatElement-r15", + "SSR-CodeBiasSatElement-r15", + &asn_OP_SEQUENCE, + asn_DEF_SSR_CodeBiasSatElement_r15_tags_1, + sizeof(asn_DEF_SSR_CodeBiasSatElement_r15_tags_1) + /sizeof(asn_DEF_SSR_CodeBiasSatElement_r15_tags_1[0]), /* 1 */ + asn_DEF_SSR_CodeBiasSatElement_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_CodeBiasSatElement_r15_tags_1) + /sizeof(asn_DEF_SSR_CodeBiasSatElement_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SSR_CodeBiasSatElement_r15_1, + 2, /* Elements count */ + &asn_SPC_SSR_CodeBiasSatElement_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SSR-CodeBiasSatElement-r15.h b/asn.1/lpp_generated/SSR-CodeBiasSatElement-r15.h similarity index 80% rename from asn.1/generated/SSR-CodeBiasSatElement-r15.h rename to asn.1/lpp_generated/SSR-CodeBiasSatElement-r15.h index 753ca1b3..c82f9a67 100644 --- a/asn.1/generated/SSR-CodeBiasSatElement-r15.h +++ b/asn.1/lpp_generated/SSR-CodeBiasSatElement-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SSR_CodeBiasSatElement_r15_H_ diff --git a/asn.1/lpp_generated/SSR-CodeBiasSatList-r15.c b/asn.1/lpp_generated/SSR-CodeBiasSatList-r15.c new file mode 100644 index 00000000..29520682 --- /dev/null +++ b/asn.1/lpp_generated/SSR-CodeBiasSatList-r15.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-CodeBiasSatList-r15.h" + +#include "SSR-CodeBiasSatElement-r15.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SSR_CodeBiasSatList_r15_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SSR_CodeBiasSatList_r15_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SSR_CodeBiasSatElement_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SSR_CodeBiasSatList_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SSR_CodeBiasSatList_r15_specs_1 = { + sizeof(struct SSR_CodeBiasSatList_r15), + offsetof(struct SSR_CodeBiasSatList_r15, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_CodeBiasSatList_r15 = { + "SSR-CodeBiasSatList-r15", + "SSR-CodeBiasSatList-r15", + &asn_OP_SEQUENCE_OF, + asn_DEF_SSR_CodeBiasSatList_r15_tags_1, + sizeof(asn_DEF_SSR_CodeBiasSatList_r15_tags_1) + /sizeof(asn_DEF_SSR_CodeBiasSatList_r15_tags_1[0]), /* 1 */ + asn_DEF_SSR_CodeBiasSatList_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_CodeBiasSatList_r15_tags_1) + /sizeof(asn_DEF_SSR_CodeBiasSatList_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SSR_CodeBiasSatList_r15_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SSR_CodeBiasSatList_r15_1, + 1, /* Single element */ + &asn_SPC_SSR_CodeBiasSatList_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SSR-CodeBiasSatList-r15.h b/asn.1/lpp_generated/SSR-CodeBiasSatList-r15.h similarity index 80% rename from asn.1/generated/SSR-CodeBiasSatList-r15.h rename to asn.1/lpp_generated/SSR-CodeBiasSatList-r15.h index cf7fd247..d6224a63 100644 --- a/asn.1/generated/SSR-CodeBiasSatList-r15.h +++ b/asn.1/lpp_generated/SSR-CodeBiasSatList-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SSR_CodeBiasSatList_r15_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_SSR_CodeBiasSatList_r15_constr_1; } #endif -/* Referred external types */ -#include "SSR-CodeBiasSatElement-r15.h" - #endif /* _SSR_CodeBiasSatList_r15_H_ */ #include diff --git a/asn.1/lpp_generated/SSR-CodeBiasSignalElement-r15.c b/asn.1/lpp_generated/SSR-CodeBiasSignalElement-r15.c new file mode 100644 index 00000000..0653aba1 --- /dev/null +++ b/asn.1/lpp_generated/SSR-CodeBiasSignalElement-r15.c @@ -0,0 +1,198 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-CodeBiasSignalElement-r15.h" + +#include "SSR-IntegrityCodeBiasBounds-r17.h" +static int +memb_codeBias_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8192L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_codeBias_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_POINTER, 1, offsetof(struct SSR_CodeBiasSignalElement_r15__ext1, ssr_IntegrityCodeBiasBounds_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SSR_IntegrityCodeBiasBounds_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-IntegrityCodeBiasBounds-r17" + }, +}; +static const int asn_MAP_ext1_oms_5[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ssr-IntegrityCodeBiasBounds-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct SSR_CodeBiasSignalElement_r15__ext1), + offsetof(struct SSR_CodeBiasSignalElement_r15__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_5, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 1, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_SSR_CodeBiasSignalElement_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SSR_CodeBiasSignalElement_r15, signal_and_tracking_mode_ID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "signal-and-tracking-mode-ID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_CodeBiasSignalElement_r15, codeBias_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_codeBias_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_codeBias_r15_constraint_1 + }, + 0, 0, /* No default value */ + "codeBias-r15" + }, + { ATF_POINTER, 1, offsetof(struct SSR_CodeBiasSignalElement_r15, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_SSR_CodeBiasSignalElement_r15_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_SSR_CodeBiasSignalElement_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SSR_CodeBiasSignalElement_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* signal-and-tracking-mode-ID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* codeBias-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SSR_CodeBiasSignalElement_r15_specs_1 = { + sizeof(struct SSR_CodeBiasSignalElement_r15), + offsetof(struct SSR_CodeBiasSignalElement_r15, _asn_ctx), + asn_MAP_SSR_CodeBiasSignalElement_r15_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_SSR_CodeBiasSignalElement_r15_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_CodeBiasSignalElement_r15 = { + "SSR-CodeBiasSignalElement-r15", + "SSR-CodeBiasSignalElement-r15", + &asn_OP_SEQUENCE, + asn_DEF_SSR_CodeBiasSignalElement_r15_tags_1, + sizeof(asn_DEF_SSR_CodeBiasSignalElement_r15_tags_1) + /sizeof(asn_DEF_SSR_CodeBiasSignalElement_r15_tags_1[0]), /* 1 */ + asn_DEF_SSR_CodeBiasSignalElement_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_CodeBiasSignalElement_r15_tags_1) + /sizeof(asn_DEF_SSR_CodeBiasSignalElement_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SSR_CodeBiasSignalElement_r15_1, + 3, /* Elements count */ + &asn_SPC_SSR_CodeBiasSignalElement_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SSR-CodeBiasSignalElement-r15.h b/asn.1/lpp_generated/SSR-CodeBiasSignalElement-r15.h new file mode 100644 index 00000000..17863588 --- /dev/null +++ b/asn.1/lpp_generated/SSR-CodeBiasSignalElement-r15.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SSR_CodeBiasSignalElement_r15_H_ +#define _SSR_CodeBiasSignalElement_r15_H_ + + +#include + +/* Including external dependencies */ +#include "GNSS-SignalID.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SSR_IntegrityCodeBiasBounds_r17; + +/* SSR-CodeBiasSignalElement-r15 */ +typedef struct SSR_CodeBiasSignalElement_r15 { + GNSS_SignalID_t signal_and_tracking_mode_ID_r15; + long codeBias_r15; + /* + * This type is extensible, + * possible extensions are below. + */ + struct SSR_CodeBiasSignalElement_r15__ext1 { + struct SSR_IntegrityCodeBiasBounds_r17 *ssr_IntegrityCodeBiasBounds_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SSR_CodeBiasSignalElement_r15_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SSR_CodeBiasSignalElement_r15; +extern asn_SEQUENCE_specifics_t asn_SPC_SSR_CodeBiasSignalElement_r15_specs_1; +extern asn_TYPE_member_t asn_MBR_SSR_CodeBiasSignalElement_r15_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SSR_CodeBiasSignalElement_r15_H_ */ +#include diff --git a/asn.1/lpp_generated/SSR-CodeBiasSignalList-r15.c b/asn.1/lpp_generated/SSR-CodeBiasSignalList-r15.c new file mode 100644 index 00000000..aaf8cc4e --- /dev/null +++ b/asn.1/lpp_generated/SSR-CodeBiasSignalList-r15.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-CodeBiasSignalList-r15.h" + +#include "SSR-CodeBiasSignalElement-r15.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SSR_CodeBiasSignalList_r15_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SSR_CodeBiasSignalList_r15_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SSR_CodeBiasSignalElement_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SSR_CodeBiasSignalList_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SSR_CodeBiasSignalList_r15_specs_1 = { + sizeof(struct SSR_CodeBiasSignalList_r15), + offsetof(struct SSR_CodeBiasSignalList_r15, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_CodeBiasSignalList_r15 = { + "SSR-CodeBiasSignalList-r15", + "SSR-CodeBiasSignalList-r15", + &asn_OP_SEQUENCE_OF, + asn_DEF_SSR_CodeBiasSignalList_r15_tags_1, + sizeof(asn_DEF_SSR_CodeBiasSignalList_r15_tags_1) + /sizeof(asn_DEF_SSR_CodeBiasSignalList_r15_tags_1[0]), /* 1 */ + asn_DEF_SSR_CodeBiasSignalList_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_CodeBiasSignalList_r15_tags_1) + /sizeof(asn_DEF_SSR_CodeBiasSignalList_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SSR_CodeBiasSignalList_r15_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SSR_CodeBiasSignalList_r15_1, + 1, /* Single element */ + &asn_SPC_SSR_CodeBiasSignalList_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SSR-CodeBiasSignalList-r15.h b/asn.1/lpp_generated/SSR-CodeBiasSignalList-r15.h similarity index 81% rename from asn.1/generated/SSR-CodeBiasSignalList-r15.h rename to asn.1/lpp_generated/SSR-CodeBiasSignalList-r15.h index 119d8733..359124a9 100644 --- a/asn.1/generated/SSR-CodeBiasSignalList-r15.h +++ b/asn.1/lpp_generated/SSR-CodeBiasSignalList-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SSR_CodeBiasSignalList_r15_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_SSR_CodeBiasSignalList_r15_constr_1; } #endif -/* Referred external types */ -#include "SSR-CodeBiasSignalElement-r15.h" - #endif /* _SSR_CodeBiasSignalList_r15_H_ */ #include diff --git a/asn.1/lpp_generated/SSR-GriddedCorrectionIntegrityParameters-r17.c b/asn.1/lpp_generated/SSR-GriddedCorrectionIntegrityParameters-r17.c new file mode 100644 index 00000000..c2930696 --- /dev/null +++ b/asn.1/lpp_generated/SSR-GriddedCorrectionIntegrityParameters-r17.c @@ -0,0 +1,250 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-GriddedCorrectionIntegrityParameters-r17.h" + +static int +memb_probOnsetTroposphereFault_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_meanTroposphereFaultDuration_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 256L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_troposphereRangeErrorCorrelationTime_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_troposphereRangeRateErrorCorrelationTime_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_probOnsetTroposphereFault_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanTroposphereFaultDuration_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (1..256) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_troposphereRangeErrorCorrelationTime_r17_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 1, 255 } /* (1..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_troposphereRangeRateErrorCorrelationTime_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 1, 255 } /* (1..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SSR_GriddedCorrectionIntegrityParameters_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SSR_GriddedCorrectionIntegrityParameters_r17, probOnsetTroposphereFault_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_probOnsetTroposphereFault_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_probOnsetTroposphereFault_r17_constraint_1 + }, + 0, 0, /* No default value */ + "probOnsetTroposphereFault-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_GriddedCorrectionIntegrityParameters_r17, meanTroposphereFaultDuration_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanTroposphereFaultDuration_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanTroposphereFaultDuration_r17_constraint_1 + }, + 0, 0, /* No default value */ + "meanTroposphereFaultDuration-r17" + }, + { ATF_POINTER, 2, offsetof(struct SSR_GriddedCorrectionIntegrityParameters_r17, troposphereRangeErrorCorrelationTime_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_troposphereRangeErrorCorrelationTime_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_troposphereRangeErrorCorrelationTime_r17_constraint_1 + }, + 0, 0, /* No default value */ + "troposphereRangeErrorCorrelationTime-r17" + }, + { ATF_POINTER, 1, offsetof(struct SSR_GriddedCorrectionIntegrityParameters_r17, troposphereRangeRateErrorCorrelationTime_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_troposphereRangeRateErrorCorrelationTime_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_troposphereRangeRateErrorCorrelationTime_r17_constraint_1 + }, + 0, 0, /* No default value */ + "troposphereRangeRateErrorCorrelationTime-r17" + }, +}; +static const int asn_MAP_SSR_GriddedCorrectionIntegrityParameters_r17_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_SSR_GriddedCorrectionIntegrityParameters_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SSR_GriddedCorrectionIntegrityParameters_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* probOnsetTroposphereFault-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* meanTroposphereFaultDuration-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* troposphereRangeErrorCorrelationTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* troposphereRangeRateErrorCorrelationTime-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SSR_GriddedCorrectionIntegrityParameters_r17_specs_1 = { + sizeof(struct SSR_GriddedCorrectionIntegrityParameters_r17), + offsetof(struct SSR_GriddedCorrectionIntegrityParameters_r17, _asn_ctx), + asn_MAP_SSR_GriddedCorrectionIntegrityParameters_r17_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_SSR_GriddedCorrectionIntegrityParameters_r17_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_GriddedCorrectionIntegrityParameters_r17 = { + "SSR-GriddedCorrectionIntegrityParameters-r17", + "SSR-GriddedCorrectionIntegrityParameters-r17", + &asn_OP_SEQUENCE, + asn_DEF_SSR_GriddedCorrectionIntegrityParameters_r17_tags_1, + sizeof(asn_DEF_SSR_GriddedCorrectionIntegrityParameters_r17_tags_1) + /sizeof(asn_DEF_SSR_GriddedCorrectionIntegrityParameters_r17_tags_1[0]), /* 1 */ + asn_DEF_SSR_GriddedCorrectionIntegrityParameters_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_GriddedCorrectionIntegrityParameters_r17_tags_1) + /sizeof(asn_DEF_SSR_GriddedCorrectionIntegrityParameters_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SSR_GriddedCorrectionIntegrityParameters_r17_1, + 4, /* Elements count */ + &asn_SPC_SSR_GriddedCorrectionIntegrityParameters_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SSR-GriddedCorrectionIntegrityParameters-r17.h b/asn.1/lpp_generated/SSR-GriddedCorrectionIntegrityParameters-r17.h new file mode 100644 index 00000000..a8d23c6f --- /dev/null +++ b/asn.1/lpp_generated/SSR-GriddedCorrectionIntegrityParameters-r17.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SSR_GriddedCorrectionIntegrityParameters_r17_H_ +#define _SSR_GriddedCorrectionIntegrityParameters_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* SSR-GriddedCorrectionIntegrityParameters-r17 */ +typedef struct SSR_GriddedCorrectionIntegrityParameters_r17 { + long probOnsetTroposphereFault_r17; + long meanTroposphereFaultDuration_r17; + long *troposphereRangeErrorCorrelationTime_r17; /* OPTIONAL */ + long *troposphereRangeRateErrorCorrelationTime_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SSR_GriddedCorrectionIntegrityParameters_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SSR_GriddedCorrectionIntegrityParameters_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_SSR_GriddedCorrectionIntegrityParameters_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_SSR_GriddedCorrectionIntegrityParameters_r17_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SSR_GriddedCorrectionIntegrityParameters_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/SSR-IntegrityClockBounds-r17.c b/asn.1/lpp_generated/SSR-IntegrityClockBounds-r17.c new file mode 100644 index 00000000..0e73f13f --- /dev/null +++ b/asn.1/lpp_generated/SSR-IntegrityClockBounds-r17.c @@ -0,0 +1,248 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-IntegrityClockBounds-r17.h" + +static int +memb_meanClock_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stdDevClock_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_meanClockRate_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stdDevClockRate_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanClock_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stdDevClock_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanClockRate_r17_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stdDevClockRate_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SSR_IntegrityClockBounds_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SSR_IntegrityClockBounds_r17, meanClock_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanClock_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanClock_r17_constraint_1 + }, + 0, 0, /* No default value */ + "meanClock-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_IntegrityClockBounds_r17, stdDevClock_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stdDevClock_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stdDevClock_r17_constraint_1 + }, + 0, 0, /* No default value */ + "stdDevClock-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_IntegrityClockBounds_r17, meanClockRate_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanClockRate_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanClockRate_r17_constraint_1 + }, + 0, 0, /* No default value */ + "meanClockRate-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_IntegrityClockBounds_r17, stdDevClockRate_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stdDevClockRate_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stdDevClockRate_r17_constraint_1 + }, + 0, 0, /* No default value */ + "stdDevClockRate-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_SSR_IntegrityClockBounds_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SSR_IntegrityClockBounds_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* meanClock-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* stdDevClock-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* meanClockRate-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* stdDevClockRate-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SSR_IntegrityClockBounds_r17_specs_1 = { + sizeof(struct SSR_IntegrityClockBounds_r17), + offsetof(struct SSR_IntegrityClockBounds_r17, _asn_ctx), + asn_MAP_SSR_IntegrityClockBounds_r17_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_IntegrityClockBounds_r17 = { + "SSR-IntegrityClockBounds-r17", + "SSR-IntegrityClockBounds-r17", + &asn_OP_SEQUENCE, + asn_DEF_SSR_IntegrityClockBounds_r17_tags_1, + sizeof(asn_DEF_SSR_IntegrityClockBounds_r17_tags_1) + /sizeof(asn_DEF_SSR_IntegrityClockBounds_r17_tags_1[0]), /* 1 */ + asn_DEF_SSR_IntegrityClockBounds_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_IntegrityClockBounds_r17_tags_1) + /sizeof(asn_DEF_SSR_IntegrityClockBounds_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SSR_IntegrityClockBounds_r17_1, + 4, /* Elements count */ + &asn_SPC_SSR_IntegrityClockBounds_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SSR-IntegrityClockBounds-r17.h b/asn.1/lpp_generated/SSR-IntegrityClockBounds-r17.h new file mode 100644 index 00000000..c45cef86 --- /dev/null +++ b/asn.1/lpp_generated/SSR-IntegrityClockBounds-r17.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SSR_IntegrityClockBounds_r17_H_ +#define _SSR_IntegrityClockBounds_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* SSR-IntegrityClockBounds-r17 */ +typedef struct SSR_IntegrityClockBounds_r17 { + long meanClock_r17; + long stdDevClock_r17; + long meanClockRate_r17; + long stdDevClockRate_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SSR_IntegrityClockBounds_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SSR_IntegrityClockBounds_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_SSR_IntegrityClockBounds_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_SSR_IntegrityClockBounds_r17_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SSR_IntegrityClockBounds_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/SSR-IntegrityCodeBiasBounds-r17.c b/asn.1/lpp_generated/SSR-IntegrityCodeBiasBounds-r17.c new file mode 100644 index 00000000..8dcceca9 --- /dev/null +++ b/asn.1/lpp_generated/SSR-IntegrityCodeBiasBounds-r17.c @@ -0,0 +1,248 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-IntegrityCodeBiasBounds-r17.h" + +static int +memb_meanCodeBias_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stdDevCodeBias_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_meanCodeBiasRate_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stdDevCodeBiasRate_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanCodeBias_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stdDevCodeBias_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanCodeBiasRate_r17_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stdDevCodeBiasRate_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SSR_IntegrityCodeBiasBounds_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SSR_IntegrityCodeBiasBounds_r17, meanCodeBias_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanCodeBias_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanCodeBias_r17_constraint_1 + }, + 0, 0, /* No default value */ + "meanCodeBias-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_IntegrityCodeBiasBounds_r17, stdDevCodeBias_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stdDevCodeBias_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stdDevCodeBias_r17_constraint_1 + }, + 0, 0, /* No default value */ + "stdDevCodeBias-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_IntegrityCodeBiasBounds_r17, meanCodeBiasRate_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanCodeBiasRate_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanCodeBiasRate_r17_constraint_1 + }, + 0, 0, /* No default value */ + "meanCodeBiasRate-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_IntegrityCodeBiasBounds_r17, stdDevCodeBiasRate_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stdDevCodeBiasRate_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stdDevCodeBiasRate_r17_constraint_1 + }, + 0, 0, /* No default value */ + "stdDevCodeBiasRate-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_SSR_IntegrityCodeBiasBounds_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SSR_IntegrityCodeBiasBounds_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* meanCodeBias-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* stdDevCodeBias-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* meanCodeBiasRate-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* stdDevCodeBiasRate-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SSR_IntegrityCodeBiasBounds_r17_specs_1 = { + sizeof(struct SSR_IntegrityCodeBiasBounds_r17), + offsetof(struct SSR_IntegrityCodeBiasBounds_r17, _asn_ctx), + asn_MAP_SSR_IntegrityCodeBiasBounds_r17_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_IntegrityCodeBiasBounds_r17 = { + "SSR-IntegrityCodeBiasBounds-r17", + "SSR-IntegrityCodeBiasBounds-r17", + &asn_OP_SEQUENCE, + asn_DEF_SSR_IntegrityCodeBiasBounds_r17_tags_1, + sizeof(asn_DEF_SSR_IntegrityCodeBiasBounds_r17_tags_1) + /sizeof(asn_DEF_SSR_IntegrityCodeBiasBounds_r17_tags_1[0]), /* 1 */ + asn_DEF_SSR_IntegrityCodeBiasBounds_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_IntegrityCodeBiasBounds_r17_tags_1) + /sizeof(asn_DEF_SSR_IntegrityCodeBiasBounds_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SSR_IntegrityCodeBiasBounds_r17_1, + 4, /* Elements count */ + &asn_SPC_SSR_IntegrityCodeBiasBounds_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SSR-IntegrityCodeBiasBounds-r17.h b/asn.1/lpp_generated/SSR-IntegrityCodeBiasBounds-r17.h new file mode 100644 index 00000000..033c493b --- /dev/null +++ b/asn.1/lpp_generated/SSR-IntegrityCodeBiasBounds-r17.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SSR_IntegrityCodeBiasBounds_r17_H_ +#define _SSR_IntegrityCodeBiasBounds_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* SSR-IntegrityCodeBiasBounds-r17 */ +typedef struct SSR_IntegrityCodeBiasBounds_r17 { + long meanCodeBias_r17; + long stdDevCodeBias_r17; + long meanCodeBiasRate_r17; + long stdDevCodeBiasRate_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SSR_IntegrityCodeBiasBounds_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SSR_IntegrityCodeBiasBounds_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_SSR_IntegrityCodeBiasBounds_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_SSR_IntegrityCodeBiasBounds_r17_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SSR_IntegrityCodeBiasBounds_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/SSR-IntegrityOrbitBounds-r17.c b/asn.1/lpp_generated/SSR-IntegrityOrbitBounds-r17.c new file mode 100644 index 00000000..d7355100 --- /dev/null +++ b/asn.1/lpp_generated/SSR-IntegrityOrbitBounds-r17.c @@ -0,0 +1,120 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-IntegrityOrbitBounds-r17.h" + +asn_TYPE_member_t asn_MBR_SSR_IntegrityOrbitBounds_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SSR_IntegrityOrbitBounds_r17, meanOrbitError_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RAC_OrbitalErrorComponents_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "meanOrbitError-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_IntegrityOrbitBounds_r17, stdDevOrbitError_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RAC_OrbitalErrorComponents_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stdDevOrbitError-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_IntegrityOrbitBounds_r17, meanOrbitRateError_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RAC_OrbitalErrorComponents_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "meanOrbitRateError-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_IntegrityOrbitBounds_r17, stdDevOrbitRateError_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RAC_OrbitalErrorComponents_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stdDevOrbitRateError-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_SSR_IntegrityOrbitBounds_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SSR_IntegrityOrbitBounds_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* meanOrbitError-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* stdDevOrbitError-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* meanOrbitRateError-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* stdDevOrbitRateError-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SSR_IntegrityOrbitBounds_r17_specs_1 = { + sizeof(struct SSR_IntegrityOrbitBounds_r17), + offsetof(struct SSR_IntegrityOrbitBounds_r17, _asn_ctx), + asn_MAP_SSR_IntegrityOrbitBounds_r17_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_IntegrityOrbitBounds_r17 = { + "SSR-IntegrityOrbitBounds-r17", + "SSR-IntegrityOrbitBounds-r17", + &asn_OP_SEQUENCE, + asn_DEF_SSR_IntegrityOrbitBounds_r17_tags_1, + sizeof(asn_DEF_SSR_IntegrityOrbitBounds_r17_tags_1) + /sizeof(asn_DEF_SSR_IntegrityOrbitBounds_r17_tags_1[0]), /* 1 */ + asn_DEF_SSR_IntegrityOrbitBounds_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_IntegrityOrbitBounds_r17_tags_1) + /sizeof(asn_DEF_SSR_IntegrityOrbitBounds_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SSR_IntegrityOrbitBounds_r17_1, + 4, /* Elements count */ + &asn_SPC_SSR_IntegrityOrbitBounds_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SSR-IntegrityOrbitBounds-r17.h b/asn.1/lpp_generated/SSR-IntegrityOrbitBounds-r17.h new file mode 100644 index 00000000..c7a000c0 --- /dev/null +++ b/asn.1/lpp_generated/SSR-IntegrityOrbitBounds-r17.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SSR_IntegrityOrbitBounds_r17_H_ +#define _SSR_IntegrityOrbitBounds_r17_H_ + + +#include + +/* Including external dependencies */ +#include "RAC-OrbitalErrorComponents-r17.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* SSR-IntegrityOrbitBounds-r17 */ +typedef struct SSR_IntegrityOrbitBounds_r17 { + RAC_OrbitalErrorComponents_r17_t meanOrbitError_r17; + RAC_OrbitalErrorComponents_r17_t stdDevOrbitError_r17; + RAC_OrbitalErrorComponents_r17_t meanOrbitRateError_r17; + RAC_OrbitalErrorComponents_r17_t stdDevOrbitRateError_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SSR_IntegrityOrbitBounds_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SSR_IntegrityOrbitBounds_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_SSR_IntegrityOrbitBounds_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_SSR_IntegrityOrbitBounds_r17_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SSR_IntegrityOrbitBounds_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/SSR-IntegrityPhaseBiasBounds-r17.c b/asn.1/lpp_generated/SSR-IntegrityPhaseBiasBounds-r17.c new file mode 100644 index 00000000..1c97262e --- /dev/null +++ b/asn.1/lpp_generated/SSR-IntegrityPhaseBiasBounds-r17.c @@ -0,0 +1,248 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-IntegrityPhaseBiasBounds-r17.h" + +static int +memb_meanPhaseBias_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stdDevPhaseBias_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_meanPhaseBiasRate_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stdDevPhaseBiasRate_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanPhaseBias_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stdDevPhaseBias_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanPhaseBiasRate_r17_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stdDevPhaseBiasRate_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SSR_IntegrityPhaseBiasBounds_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SSR_IntegrityPhaseBiasBounds_r17, meanPhaseBias_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanPhaseBias_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanPhaseBias_r17_constraint_1 + }, + 0, 0, /* No default value */ + "meanPhaseBias-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_IntegrityPhaseBiasBounds_r17, stdDevPhaseBias_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stdDevPhaseBias_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stdDevPhaseBias_r17_constraint_1 + }, + 0, 0, /* No default value */ + "stdDevPhaseBias-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_IntegrityPhaseBiasBounds_r17, meanPhaseBiasRate_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanPhaseBiasRate_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanPhaseBiasRate_r17_constraint_1 + }, + 0, 0, /* No default value */ + "meanPhaseBiasRate-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_IntegrityPhaseBiasBounds_r17, stdDevPhaseBiasRate_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stdDevPhaseBiasRate_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stdDevPhaseBiasRate_r17_constraint_1 + }, + 0, 0, /* No default value */ + "stdDevPhaseBiasRate-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_SSR_IntegrityPhaseBiasBounds_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SSR_IntegrityPhaseBiasBounds_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* meanPhaseBias-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* stdDevPhaseBias-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* meanPhaseBiasRate-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* stdDevPhaseBiasRate-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SSR_IntegrityPhaseBiasBounds_r17_specs_1 = { + sizeof(struct SSR_IntegrityPhaseBiasBounds_r17), + offsetof(struct SSR_IntegrityPhaseBiasBounds_r17, _asn_ctx), + asn_MAP_SSR_IntegrityPhaseBiasBounds_r17_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_IntegrityPhaseBiasBounds_r17 = { + "SSR-IntegrityPhaseBiasBounds-r17", + "SSR-IntegrityPhaseBiasBounds-r17", + &asn_OP_SEQUENCE, + asn_DEF_SSR_IntegrityPhaseBiasBounds_r17_tags_1, + sizeof(asn_DEF_SSR_IntegrityPhaseBiasBounds_r17_tags_1) + /sizeof(asn_DEF_SSR_IntegrityPhaseBiasBounds_r17_tags_1[0]), /* 1 */ + asn_DEF_SSR_IntegrityPhaseBiasBounds_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_IntegrityPhaseBiasBounds_r17_tags_1) + /sizeof(asn_DEF_SSR_IntegrityPhaseBiasBounds_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SSR_IntegrityPhaseBiasBounds_r17_1, + 4, /* Elements count */ + &asn_SPC_SSR_IntegrityPhaseBiasBounds_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SSR-IntegrityPhaseBiasBounds-r17.h b/asn.1/lpp_generated/SSR-IntegrityPhaseBiasBounds-r17.h new file mode 100644 index 00000000..bd4a06e8 --- /dev/null +++ b/asn.1/lpp_generated/SSR-IntegrityPhaseBiasBounds-r17.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SSR_IntegrityPhaseBiasBounds_r17_H_ +#define _SSR_IntegrityPhaseBiasBounds_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* SSR-IntegrityPhaseBiasBounds-r17 */ +typedef struct SSR_IntegrityPhaseBiasBounds_r17 { + long meanPhaseBias_r17; + long stdDevPhaseBias_r17; + long meanPhaseBiasRate_r17; + long stdDevPhaseBiasRate_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SSR_IntegrityPhaseBiasBounds_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SSR_IntegrityPhaseBiasBounds_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_SSR_IntegrityPhaseBiasBounds_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_SSR_IntegrityPhaseBiasBounds_r17_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SSR_IntegrityPhaseBiasBounds_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/SSR-OrbitCorrectionList-r15.c b/asn.1/lpp_generated/SSR-OrbitCorrectionList-r15.c new file mode 100644 index 00000000..bc4305ee --- /dev/null +++ b/asn.1/lpp_generated/SSR-OrbitCorrectionList-r15.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-OrbitCorrectionList-r15.h" + +#include "SSR-OrbitCorrectionSatelliteElement-r15.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SSR_OrbitCorrectionList_r15_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SSR_OrbitCorrectionList_r15_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SSR_OrbitCorrectionList_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SSR_OrbitCorrectionList_r15_specs_1 = { + sizeof(struct SSR_OrbitCorrectionList_r15), + offsetof(struct SSR_OrbitCorrectionList_r15, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_OrbitCorrectionList_r15 = { + "SSR-OrbitCorrectionList-r15", + "SSR-OrbitCorrectionList-r15", + &asn_OP_SEQUENCE_OF, + asn_DEF_SSR_OrbitCorrectionList_r15_tags_1, + sizeof(asn_DEF_SSR_OrbitCorrectionList_r15_tags_1) + /sizeof(asn_DEF_SSR_OrbitCorrectionList_r15_tags_1[0]), /* 1 */ + asn_DEF_SSR_OrbitCorrectionList_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_OrbitCorrectionList_r15_tags_1) + /sizeof(asn_DEF_SSR_OrbitCorrectionList_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SSR_OrbitCorrectionList_r15_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SSR_OrbitCorrectionList_r15_1, + 1, /* Single element */ + &asn_SPC_SSR_OrbitCorrectionList_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SSR-OrbitCorrectionList-r15.h b/asn.1/lpp_generated/SSR-OrbitCorrectionList-r15.h similarity index 81% rename from asn.1/generated/SSR-OrbitCorrectionList-r15.h rename to asn.1/lpp_generated/SSR-OrbitCorrectionList-r15.h index 36c1a5de..fb201455 100644 --- a/asn.1/generated/SSR-OrbitCorrectionList-r15.h +++ b/asn.1/lpp_generated/SSR-OrbitCorrectionList-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SSR_OrbitCorrectionList_r15_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_SSR_OrbitCorrectionList_r15_constr_1; } #endif -/* Referred external types */ -#include "SSR-OrbitCorrectionSatelliteElement-r15.h" - #endif /* _SSR_OrbitCorrectionList_r15_H_ */ #include diff --git a/asn.1/lpp_generated/SSR-OrbitCorrectionSatelliteElement-r15.c b/asn.1/lpp_generated/SSR-OrbitCorrectionSatelliteElement-r15.c new file mode 100644 index 00000000..a4476f94 --- /dev/null +++ b/asn.1/lpp_generated/SSR-OrbitCorrectionSatelliteElement-r15.c @@ -0,0 +1,504 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-OrbitCorrectionSatelliteElement-r15.h" + +#include "SSR-IntegrityOrbitBounds-r17.h" +static int +memb_iod_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 11UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_delta_radial_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2097152L && value <= 2097151L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_delta_AlongTrack_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -524288L && value <= 524287L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_delta_CrossTrack_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -524288L && value <= 524287L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dot_delta_radial_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1048576L && value <= 1048575L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dot_delta_AlongTrack_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -262144L && value <= 262143L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dot_delta_CrossTrack_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -262144L && value <= 262143L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_iod_r15_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 11, 11 } /* (SIZE(11..11)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_delta_radial_r15_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, -2097152, 2097151 } /* (-2097152..2097151) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_delta_AlongTrack_r15_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 20, -1, -524288, 524287 } /* (-524288..524287) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_delta_CrossTrack_r15_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 20, -1, -524288, 524287 } /* (-524288..524287) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dot_delta_radial_r15_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dot_delta_AlongTrack_r15_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 19, -1, -262144, 262143 } /* (-262144..262143) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dot_delta_CrossTrack_r15_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 19, -1, -262144, 262143 } /* (-262144..262143) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_11[] = { + { ATF_POINTER, 1, offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15__ext1, ssr_IntegrityOrbitBounds_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SSR_IntegrityOrbitBounds_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-IntegrityOrbitBounds-r17" + }, +}; +static const int asn_MAP_ext1_oms_11[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ssr-IntegrityOrbitBounds-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_11 = { + sizeof(struct SSR_OrbitCorrectionSatelliteElement_r15__ext1), + offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_11, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_11, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_11 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_11, + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_11, /* Same as above */ + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_11, + 1, /* Elements count */ + &asn_SPC_ext1_specs_11 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_SSR_OrbitCorrectionSatelliteElement_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15, svID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15, iod_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_iod_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_iod_r15_constraint_1 + }, + 0, 0, /* No default value */ + "iod-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15, delta_radial_r15), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_delta_radial_r15_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_delta_radial_r15_constraint_1 + }, + 0, 0, /* No default value */ + "delta-radial-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15, delta_AlongTrack_r15), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_delta_AlongTrack_r15_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_delta_AlongTrack_r15_constraint_1 + }, + 0, 0, /* No default value */ + "delta-AlongTrack-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15, delta_CrossTrack_r15), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_delta_CrossTrack_r15_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_delta_CrossTrack_r15_constraint_1 + }, + 0, 0, /* No default value */ + "delta-CrossTrack-r15" + }, + { ATF_POINTER, 4, offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15, dot_delta_radial_r15), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dot_delta_radial_r15_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dot_delta_radial_r15_constraint_1 + }, + 0, 0, /* No default value */ + "dot-delta-radial-r15" + }, + { ATF_POINTER, 3, offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15, dot_delta_AlongTrack_r15), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dot_delta_AlongTrack_r15_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dot_delta_AlongTrack_r15_constraint_1 + }, + 0, 0, /* No default value */ + "dot-delta-AlongTrack-r15" + }, + { ATF_POINTER, 2, offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15, dot_delta_CrossTrack_r15), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dot_delta_CrossTrack_r15_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dot_delta_CrossTrack_r15_constraint_1 + }, + 0, 0, /* No default value */ + "dot-delta-CrossTrack-r15" + }, + { ATF_POINTER, 1, offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15, ext1), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + 0, + &asn_DEF_ext1_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_SSR_OrbitCorrectionSatelliteElement_r15_oms_1[] = { 5, 6, 7, 8 }; +static const ber_tlv_tag_t asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SSR_OrbitCorrectionSatelliteElement_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* iod-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* delta-radial-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* delta-AlongTrack-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* delta-CrossTrack-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* dot-delta-radial-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* dot-delta-AlongTrack-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* dot-delta-CrossTrack-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SSR_OrbitCorrectionSatelliteElement_r15_specs_1 = { + sizeof(struct SSR_OrbitCorrectionSatelliteElement_r15), + offsetof(struct SSR_OrbitCorrectionSatelliteElement_r15, _asn_ctx), + asn_MAP_SSR_OrbitCorrectionSatelliteElement_r15_tag2el_1, + 9, /* Count of tags in the map */ + asn_MAP_SSR_OrbitCorrectionSatelliteElement_r15_oms_1, /* Optional members */ + 3, 1, /* Root/Additions */ + 8, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15 = { + "SSR-OrbitCorrectionSatelliteElement-r15", + "SSR-OrbitCorrectionSatelliteElement-r15", + &asn_OP_SEQUENCE, + asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15_tags_1, + sizeof(asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15_tags_1) + /sizeof(asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15_tags_1[0]), /* 1 */ + asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15_tags_1) + /sizeof(asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SSR_OrbitCorrectionSatelliteElement_r15_1, + 9, /* Elements count */ + &asn_SPC_SSR_OrbitCorrectionSatelliteElement_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SSR-OrbitCorrectionSatelliteElement-r15.h b/asn.1/lpp_generated/SSR-OrbitCorrectionSatelliteElement-r15.h new file mode 100644 index 00000000..aaa1e394 --- /dev/null +++ b/asn.1/lpp_generated/SSR-OrbitCorrectionSatelliteElement-r15.h @@ -0,0 +1,62 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SSR_OrbitCorrectionSatelliteElement_r15_H_ +#define _SSR_OrbitCorrectionSatelliteElement_r15_H_ + + +#include + +/* Including external dependencies */ +#include "SV-ID.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SSR_IntegrityOrbitBounds_r17; + +/* SSR-OrbitCorrectionSatelliteElement-r15 */ +typedef struct SSR_OrbitCorrectionSatelliteElement_r15 { + SV_ID_t svID_r15; + BIT_STRING_t iod_r15; + long delta_radial_r15; + long delta_AlongTrack_r15; + long delta_CrossTrack_r15; + long *dot_delta_radial_r15; /* OPTIONAL */ + long *dot_delta_AlongTrack_r15; /* OPTIONAL */ + long *dot_delta_CrossTrack_r15; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct SSR_OrbitCorrectionSatelliteElement_r15__ext1 { + struct SSR_IntegrityOrbitBounds_r17 *ssr_IntegrityOrbitBounds_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SSR_OrbitCorrectionSatelliteElement_r15_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SSR_OrbitCorrectionSatelliteElement_r15; +extern asn_SEQUENCE_specifics_t asn_SPC_SSR_OrbitCorrectionSatelliteElement_r15_specs_1; +extern asn_TYPE_member_t asn_MBR_SSR_OrbitCorrectionSatelliteElement_r15_1[9]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SSR_OrbitCorrectionSatelliteElement_r15_H_ */ +#include diff --git a/asn.1/lpp_generated/SSR-PhaseBiasSatElement-r16.c b/asn.1/lpp_generated/SSR-PhaseBiasSatElement-r16.c new file mode 100644 index 00000000..8a1ca48d --- /dev/null +++ b/asn.1/lpp_generated/SSR-PhaseBiasSatElement-r16.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-PhaseBiasSatElement-r16.h" + +asn_TYPE_member_t asn_MBR_SSR_PhaseBiasSatElement_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SSR_PhaseBiasSatElement_r16, svID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_PhaseBiasSatElement_r16, ssr_PhaseBiasSignalList_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SSR_PhaseBiasSignalList_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-PhaseBiasSignalList-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_SSR_PhaseBiasSatElement_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SSR_PhaseBiasSatElement_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ssr-PhaseBiasSignalList-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SSR_PhaseBiasSatElement_r16_specs_1 = { + sizeof(struct SSR_PhaseBiasSatElement_r16), + offsetof(struct SSR_PhaseBiasSatElement_r16, _asn_ctx), + asn_MAP_SSR_PhaseBiasSatElement_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_PhaseBiasSatElement_r16 = { + "SSR-PhaseBiasSatElement-r16", + "SSR-PhaseBiasSatElement-r16", + &asn_OP_SEQUENCE, + asn_DEF_SSR_PhaseBiasSatElement_r16_tags_1, + sizeof(asn_DEF_SSR_PhaseBiasSatElement_r16_tags_1) + /sizeof(asn_DEF_SSR_PhaseBiasSatElement_r16_tags_1[0]), /* 1 */ + asn_DEF_SSR_PhaseBiasSatElement_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_PhaseBiasSatElement_r16_tags_1) + /sizeof(asn_DEF_SSR_PhaseBiasSatElement_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SSR_PhaseBiasSatElement_r16_1, + 2, /* Elements count */ + &asn_SPC_SSR_PhaseBiasSatElement_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SSR-PhaseBiasSatElement-r16.h b/asn.1/lpp_generated/SSR-PhaseBiasSatElement-r16.h similarity index 80% rename from asn.1/generated/SSR-PhaseBiasSatElement-r16.h rename to asn.1/lpp_generated/SSR-PhaseBiasSatElement-r16.h index 39f7683b..c91503f2 100644 --- a/asn.1/generated/SSR-PhaseBiasSatElement-r16.h +++ b/asn.1/lpp_generated/SSR-PhaseBiasSatElement-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SSR_PhaseBiasSatElement_r16_H_ diff --git a/asn.1/lpp_generated/SSR-PhaseBiasSatList-r16.c b/asn.1/lpp_generated/SSR-PhaseBiasSatList-r16.c new file mode 100644 index 00000000..318f072d --- /dev/null +++ b/asn.1/lpp_generated/SSR-PhaseBiasSatList-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-PhaseBiasSatList-r16.h" + +#include "SSR-PhaseBiasSatElement-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SSR_PhaseBiasSatList_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SSR_PhaseBiasSatList_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SSR_PhaseBiasSatElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SSR_PhaseBiasSatList_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SSR_PhaseBiasSatList_r16_specs_1 = { + sizeof(struct SSR_PhaseBiasSatList_r16), + offsetof(struct SSR_PhaseBiasSatList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_PhaseBiasSatList_r16 = { + "SSR-PhaseBiasSatList-r16", + "SSR-PhaseBiasSatList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_SSR_PhaseBiasSatList_r16_tags_1, + sizeof(asn_DEF_SSR_PhaseBiasSatList_r16_tags_1) + /sizeof(asn_DEF_SSR_PhaseBiasSatList_r16_tags_1[0]), /* 1 */ + asn_DEF_SSR_PhaseBiasSatList_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_PhaseBiasSatList_r16_tags_1) + /sizeof(asn_DEF_SSR_PhaseBiasSatList_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SSR_PhaseBiasSatList_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SSR_PhaseBiasSatList_r16_1, + 1, /* Single element */ + &asn_SPC_SSR_PhaseBiasSatList_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SSR-PhaseBiasSatList-r16.h b/asn.1/lpp_generated/SSR-PhaseBiasSatList-r16.h similarity index 80% rename from asn.1/generated/SSR-PhaseBiasSatList-r16.h rename to asn.1/lpp_generated/SSR-PhaseBiasSatList-r16.h index 178b202b..4a25eb10 100644 --- a/asn.1/generated/SSR-PhaseBiasSatList-r16.h +++ b/asn.1/lpp_generated/SSR-PhaseBiasSatList-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SSR_PhaseBiasSatList_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_SSR_PhaseBiasSatList_r16_constr_1; } #endif -/* Referred external types */ -#include "SSR-PhaseBiasSatElement-r16.h" - #endif /* _SSR_PhaseBiasSatList_r16_H_ */ #include diff --git a/asn.1/lpp_generated/SSR-PhaseBiasSignalElement-r16.c b/asn.1/lpp_generated/SSR-PhaseBiasSignalElement-r16.c new file mode 100644 index 00000000..4ed86948 --- /dev/null +++ b/asn.1/lpp_generated/SSR-PhaseBiasSignalElement-r16.c @@ -0,0 +1,298 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-PhaseBiasSignalElement-r16.h" + +#include "SSR-IntegrityPhaseBiasBounds-r17.h" +static int +memb_phaseBias_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -16384L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_phaseDiscontinuityIndicator_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_phaseBiasIntegerIndicator_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_phaseBias_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_phaseDiscontinuityIndicator_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_phaseBiasIntegerIndicator_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 1, offsetof(struct SSR_PhaseBiasSignalElement_r16__ext1, ssr_IntegrityPhaseBiasBounds_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SSR_IntegrityPhaseBiasBounds_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-IntegrityPhaseBiasBounds-r17" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ssr-IntegrityPhaseBiasBounds-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct SSR_PhaseBiasSignalElement_r16__ext1), + offsetof(struct SSR_PhaseBiasSignalElement_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 1, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_SSR_PhaseBiasSignalElement_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SSR_PhaseBiasSignalElement_r16, signal_and_tracking_mode_ID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_SignalID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "signal-and-tracking-mode-ID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_PhaseBiasSignalElement_r16, phaseBias_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_phaseBias_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_phaseBias_r16_constraint_1 + }, + 0, 0, /* No default value */ + "phaseBias-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_PhaseBiasSignalElement_r16, phaseDiscontinuityIndicator_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_phaseDiscontinuityIndicator_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_phaseDiscontinuityIndicator_r16_constraint_1 + }, + 0, 0, /* No default value */ + "phaseDiscontinuityIndicator-r16" + }, + { ATF_POINTER, 2, offsetof(struct SSR_PhaseBiasSignalElement_r16, phaseBiasIntegerIndicator_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_phaseBiasIntegerIndicator_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_phaseBiasIntegerIndicator_r16_constraint_1 + }, + 0, 0, /* No default value */ + "phaseBiasIntegerIndicator-r16" + }, + { ATF_POINTER, 1, offsetof(struct SSR_PhaseBiasSignalElement_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_SSR_PhaseBiasSignalElement_r16_oms_1[] = { 3, 4 }; +static const ber_tlv_tag_t asn_DEF_SSR_PhaseBiasSignalElement_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SSR_PhaseBiasSignalElement_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* signal-and-tracking-mode-ID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* phaseBias-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* phaseDiscontinuityIndicator-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* phaseBiasIntegerIndicator-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SSR_PhaseBiasSignalElement_r16_specs_1 = { + sizeof(struct SSR_PhaseBiasSignalElement_r16), + offsetof(struct SSR_PhaseBiasSignalElement_r16, _asn_ctx), + asn_MAP_SSR_PhaseBiasSignalElement_r16_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_SSR_PhaseBiasSignalElement_r16_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_PhaseBiasSignalElement_r16 = { + "SSR-PhaseBiasSignalElement-r16", + "SSR-PhaseBiasSignalElement-r16", + &asn_OP_SEQUENCE, + asn_DEF_SSR_PhaseBiasSignalElement_r16_tags_1, + sizeof(asn_DEF_SSR_PhaseBiasSignalElement_r16_tags_1) + /sizeof(asn_DEF_SSR_PhaseBiasSignalElement_r16_tags_1[0]), /* 1 */ + asn_DEF_SSR_PhaseBiasSignalElement_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_PhaseBiasSignalElement_r16_tags_1) + /sizeof(asn_DEF_SSR_PhaseBiasSignalElement_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SSR_PhaseBiasSignalElement_r16_1, + 5, /* Elements count */ + &asn_SPC_SSR_PhaseBiasSignalElement_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SSR-PhaseBiasSignalElement-r16.h b/asn.1/lpp_generated/SSR-PhaseBiasSignalElement-r16.h new file mode 100644 index 00000000..a6f7dc25 --- /dev/null +++ b/asn.1/lpp_generated/SSR-PhaseBiasSignalElement-r16.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SSR_PhaseBiasSignalElement_r16_H_ +#define _SSR_PhaseBiasSignalElement_r16_H_ + + +#include + +/* Including external dependencies */ +#include "GNSS-SignalID.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SSR_IntegrityPhaseBiasBounds_r17; + +/* SSR-PhaseBiasSignalElement-r16 */ +typedef struct SSR_PhaseBiasSignalElement_r16 { + GNSS_SignalID_t signal_and_tracking_mode_ID_r16; + long phaseBias_r16; + long phaseDiscontinuityIndicator_r16; + long *phaseBiasIntegerIndicator_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct SSR_PhaseBiasSignalElement_r16__ext1 { + struct SSR_IntegrityPhaseBiasBounds_r17 *ssr_IntegrityPhaseBiasBounds_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SSR_PhaseBiasSignalElement_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SSR_PhaseBiasSignalElement_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_SSR_PhaseBiasSignalElement_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_SSR_PhaseBiasSignalElement_r16_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SSR_PhaseBiasSignalElement_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/SSR-PhaseBiasSignalList-r16.c b/asn.1/lpp_generated/SSR-PhaseBiasSignalList-r16.c new file mode 100644 index 00000000..dd2fabc6 --- /dev/null +++ b/asn.1/lpp_generated/SSR-PhaseBiasSignalList-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-PhaseBiasSignalList-r16.h" + +#include "SSR-PhaseBiasSignalElement-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SSR_PhaseBiasSignalList_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SSR_PhaseBiasSignalList_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SSR_PhaseBiasSignalElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SSR_PhaseBiasSignalList_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SSR_PhaseBiasSignalList_r16_specs_1 = { + sizeof(struct SSR_PhaseBiasSignalList_r16), + offsetof(struct SSR_PhaseBiasSignalList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_PhaseBiasSignalList_r16 = { + "SSR-PhaseBiasSignalList-r16", + "SSR-PhaseBiasSignalList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_SSR_PhaseBiasSignalList_r16_tags_1, + sizeof(asn_DEF_SSR_PhaseBiasSignalList_r16_tags_1) + /sizeof(asn_DEF_SSR_PhaseBiasSignalList_r16_tags_1[0]), /* 1 */ + asn_DEF_SSR_PhaseBiasSignalList_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_PhaseBiasSignalList_r16_tags_1) + /sizeof(asn_DEF_SSR_PhaseBiasSignalList_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SSR_PhaseBiasSignalList_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SSR_PhaseBiasSignalList_r16_1, + 1, /* Single element */ + &asn_SPC_SSR_PhaseBiasSignalList_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SSR-PhaseBiasSignalList-r16.h b/asn.1/lpp_generated/SSR-PhaseBiasSignalList-r16.h similarity index 81% rename from asn.1/generated/SSR-PhaseBiasSignalList-r16.h rename to asn.1/lpp_generated/SSR-PhaseBiasSignalList-r16.h index 14856bfe..cfab46fb 100644 --- a/asn.1/generated/SSR-PhaseBiasSignalList-r16.h +++ b/asn.1/lpp_generated/SSR-PhaseBiasSignalList-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SSR_PhaseBiasSignalList_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_SSR_PhaseBiasSignalList_r16_constr_1; } #endif -/* Referred external types */ -#include "SSR-PhaseBiasSignalElement-r16.h" - #endif /* _SSR_PhaseBiasSignalList_r16_H_ */ #include diff --git a/asn.1/lpp_generated/SSR-PhaseCenterVariationList-r18.c b/asn.1/lpp_generated/SSR-PhaseCenterVariationList-r18.c new file mode 100644 index 00000000..65b994c7 --- /dev/null +++ b/asn.1/lpp_generated/SSR-PhaseCenterVariationList-r18.c @@ -0,0 +1,99 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-PhaseCenterVariationList-r18.h" + +static int +memb_NativeInteger_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SSR_PhaseCenterVariationList_r18_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SSR_PhaseCenterVariationList_r18_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_NativeInteger_constraint_1 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SSR_PhaseCenterVariationList_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SSR_PhaseCenterVariationList_r18_specs_1 = { + sizeof(struct SSR_PhaseCenterVariationList_r18), + offsetof(struct SSR_PhaseCenterVariationList_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_PhaseCenterVariationList_r18 = { + "SSR-PhaseCenterVariationList-r18", + "SSR-PhaseCenterVariationList-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_SSR_PhaseCenterVariationList_r18_tags_1, + sizeof(asn_DEF_SSR_PhaseCenterVariationList_r18_tags_1) + /sizeof(asn_DEF_SSR_PhaseCenterVariationList_r18_tags_1[0]), /* 1 */ + asn_DEF_SSR_PhaseCenterVariationList_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_PhaseCenterVariationList_r18_tags_1) + /sizeof(asn_DEF_SSR_PhaseCenterVariationList_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SSR_PhaseCenterVariationList_r18_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SSR_PhaseCenterVariationList_r18_1, + 1, /* Single element */ + &asn_SPC_SSR_PhaseCenterVariationList_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SSR-PhaseCenterVariationList-r18.h b/asn.1/lpp_generated/SSR-PhaseCenterVariationList-r18.h new file mode 100644 index 00000000..b09b8361 --- /dev/null +++ b/asn.1/lpp_generated/SSR-PhaseCenterVariationList-r18.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SSR_PhaseCenterVariationList_r18_H_ +#define _SSR_PhaseCenterVariationList_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* SSR-PhaseCenterVariationList-r18 */ +typedef struct SSR_PhaseCenterVariationList_r18 { + A_SEQUENCE_OF(long) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SSR_PhaseCenterVariationList_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SSR_PhaseCenterVariationList_r18; +extern asn_SET_OF_specifics_t asn_SPC_SSR_PhaseCenterVariationList_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_SSR_PhaseCenterVariationList_r18_1[1]; +extern asn_per_constraints_t asn_PER_type_SSR_PhaseCenterVariationList_r18_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _SSR_PhaseCenterVariationList_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/SSR-SatellitePCV-Element-r18.c b/asn.1/lpp_generated/SSR-SatellitePCV-Element-r18.c new file mode 100644 index 00000000..a8a17a5c --- /dev/null +++ b/asn.1/lpp_generated/SSR-SatellitePCV-Element-r18.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-SatellitePCV-Element-r18.h" + +asn_TYPE_member_t asn_MBR_SSR_SatellitePCV_Element_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SSR_SatellitePCV_Element_r18, svID_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_SatellitePCV_Element_r18, ssr_SatellitePCV_FrequencyList_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SSR_SatellitePCV_FrequencyList_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ssr-SatellitePCV-FrequencyList-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_SSR_SatellitePCV_Element_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SSR_SatellitePCV_Element_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ssr-SatellitePCV-FrequencyList-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SSR_SatellitePCV_Element_r18_specs_1 = { + sizeof(struct SSR_SatellitePCV_Element_r18), + offsetof(struct SSR_SatellitePCV_Element_r18, _asn_ctx), + asn_MAP_SSR_SatellitePCV_Element_r18_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_SatellitePCV_Element_r18 = { + "SSR-SatellitePCV-Element-r18", + "SSR-SatellitePCV-Element-r18", + &asn_OP_SEQUENCE, + asn_DEF_SSR_SatellitePCV_Element_r18_tags_1, + sizeof(asn_DEF_SSR_SatellitePCV_Element_r18_tags_1) + /sizeof(asn_DEF_SSR_SatellitePCV_Element_r18_tags_1[0]), /* 1 */ + asn_DEF_SSR_SatellitePCV_Element_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_SatellitePCV_Element_r18_tags_1) + /sizeof(asn_DEF_SSR_SatellitePCV_Element_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SSR_SatellitePCV_Element_r18_1, + 2, /* Elements count */ + &asn_SPC_SSR_SatellitePCV_Element_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SSR-SatellitePCV-Element-r18.h b/asn.1/lpp_generated/SSR-SatellitePCV-Element-r18.h new file mode 100644 index 00000000..db7aa71e --- /dev/null +++ b/asn.1/lpp_generated/SSR-SatellitePCV-Element-r18.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SSR_SatellitePCV_Element_r18_H_ +#define _SSR_SatellitePCV_Element_r18_H_ + + +#include + +/* Including external dependencies */ +#include "SV-ID.h" +#include "SSR-SatellitePCV-FrequencyList-r18.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* SSR-SatellitePCV-Element-r18 */ +typedef struct SSR_SatellitePCV_Element_r18 { + SV_ID_t svID_r18; + SSR_SatellitePCV_FrequencyList_r18_t ssr_SatellitePCV_FrequencyList_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SSR_SatellitePCV_Element_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SSR_SatellitePCV_Element_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_SSR_SatellitePCV_Element_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_SSR_SatellitePCV_Element_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SSR_SatellitePCV_Element_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/SSR-SatellitePCV-FrequencyElement-r18.c b/asn.1/lpp_generated/SSR-SatellitePCV-FrequencyElement-r18.c new file mode 100644 index 00000000..06450c0a --- /dev/null +++ b/asn.1/lpp_generated/SSR-SatellitePCV-FrequencyElement-r18.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-SatellitePCV-FrequencyElement-r18.h" + +asn_TYPE_member_t asn_MBR_SSR_SatellitePCV_FrequencyElement_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SSR_SatellitePCV_FrequencyElement_r18, frequencyID_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_FrequencyID_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "frequencyID-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_SatellitePCV_FrequencyElement_r18, phaseCenterVariations_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SSR_PhaseCenterVariationList_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "phaseCenterVariations-r18" + }, +}; +static const ber_tlv_tag_t asn_DEF_SSR_SatellitePCV_FrequencyElement_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SSR_SatellitePCV_FrequencyElement_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* frequencyID-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* phaseCenterVariations-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SSR_SatellitePCV_FrequencyElement_r18_specs_1 = { + sizeof(struct SSR_SatellitePCV_FrequencyElement_r18), + offsetof(struct SSR_SatellitePCV_FrequencyElement_r18, _asn_ctx), + asn_MAP_SSR_SatellitePCV_FrequencyElement_r18_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_SatellitePCV_FrequencyElement_r18 = { + "SSR-SatellitePCV-FrequencyElement-r18", + "SSR-SatellitePCV-FrequencyElement-r18", + &asn_OP_SEQUENCE, + asn_DEF_SSR_SatellitePCV_FrequencyElement_r18_tags_1, + sizeof(asn_DEF_SSR_SatellitePCV_FrequencyElement_r18_tags_1) + /sizeof(asn_DEF_SSR_SatellitePCV_FrequencyElement_r18_tags_1[0]), /* 1 */ + asn_DEF_SSR_SatellitePCV_FrequencyElement_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_SatellitePCV_FrequencyElement_r18_tags_1) + /sizeof(asn_DEF_SSR_SatellitePCV_FrequencyElement_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SSR_SatellitePCV_FrequencyElement_r18_1, + 2, /* Elements count */ + &asn_SPC_SSR_SatellitePCV_FrequencyElement_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SSR-SatellitePCV-FrequencyElement-r18.h b/asn.1/lpp_generated/SSR-SatellitePCV-FrequencyElement-r18.h new file mode 100644 index 00000000..2aedf6e3 --- /dev/null +++ b/asn.1/lpp_generated/SSR-SatellitePCV-FrequencyElement-r18.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SSR_SatellitePCV_FrequencyElement_r18_H_ +#define _SSR_SatellitePCV_FrequencyElement_r18_H_ + + +#include + +/* Including external dependencies */ +#include "GNSS-FrequencyID-r15.h" +#include "SSR-PhaseCenterVariationList-r18.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* SSR-SatellitePCV-FrequencyElement-r18 */ +typedef struct SSR_SatellitePCV_FrequencyElement_r18 { + GNSS_FrequencyID_r15_t frequencyID_r18; + SSR_PhaseCenterVariationList_r18_t phaseCenterVariations_r18; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SSR_SatellitePCV_FrequencyElement_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SSR_SatellitePCV_FrequencyElement_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_SSR_SatellitePCV_FrequencyElement_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_SSR_SatellitePCV_FrequencyElement_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SSR_SatellitePCV_FrequencyElement_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/SSR-SatellitePCV-FrequencyList-r18.c b/asn.1/lpp_generated/SSR-SatellitePCV-FrequencyList-r18.c new file mode 100644 index 00000000..9ff77268 --- /dev/null +++ b/asn.1/lpp_generated/SSR-SatellitePCV-FrequencyList-r18.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-SatellitePCV-FrequencyList-r18.h" + +#include "SSR-SatellitePCV-FrequencyElement-r18.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SSR_SatellitePCV_FrequencyList_r18_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SSR_SatellitePCV_FrequencyList_r18_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SSR_SatellitePCV_FrequencyElement_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SSR_SatellitePCV_FrequencyList_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SSR_SatellitePCV_FrequencyList_r18_specs_1 = { + sizeof(struct SSR_SatellitePCV_FrequencyList_r18), + offsetof(struct SSR_SatellitePCV_FrequencyList_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_SatellitePCV_FrequencyList_r18 = { + "SSR-SatellitePCV-FrequencyList-r18", + "SSR-SatellitePCV-FrequencyList-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_SSR_SatellitePCV_FrequencyList_r18_tags_1, + sizeof(asn_DEF_SSR_SatellitePCV_FrequencyList_r18_tags_1) + /sizeof(asn_DEF_SSR_SatellitePCV_FrequencyList_r18_tags_1[0]), /* 1 */ + asn_DEF_SSR_SatellitePCV_FrequencyList_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_SatellitePCV_FrequencyList_r18_tags_1) + /sizeof(asn_DEF_SSR_SatellitePCV_FrequencyList_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SSR_SatellitePCV_FrequencyList_r18_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SSR_SatellitePCV_FrequencyList_r18_1, + 1, /* Single element */ + &asn_SPC_SSR_SatellitePCV_FrequencyList_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SSR-SatellitePCV-FrequencyList-r18.h b/asn.1/lpp_generated/SSR-SatellitePCV-FrequencyList-r18.h new file mode 100644 index 00000000..3b5ed5de --- /dev/null +++ b/asn.1/lpp_generated/SSR-SatellitePCV-FrequencyList-r18.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SSR_SatellitePCV_FrequencyList_r18_H_ +#define _SSR_SatellitePCV_FrequencyList_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SSR_SatellitePCV_FrequencyElement_r18; + +/* SSR-SatellitePCV-FrequencyList-r18 */ +typedef struct SSR_SatellitePCV_FrequencyList_r18 { + A_SEQUENCE_OF(struct SSR_SatellitePCV_FrequencyElement_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SSR_SatellitePCV_FrequencyList_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SSR_SatellitePCV_FrequencyList_r18; +extern asn_SET_OF_specifics_t asn_SPC_SSR_SatellitePCV_FrequencyList_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_SSR_SatellitePCV_FrequencyList_r18_1[1]; +extern asn_per_constraints_t asn_PER_type_SSR_SatellitePCV_FrequencyList_r18_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _SSR_SatellitePCV_FrequencyList_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/SSR-SatellitePCV-List-r18.c b/asn.1/lpp_generated/SSR-SatellitePCV-List-r18.c new file mode 100644 index 00000000..f5e0ac42 --- /dev/null +++ b/asn.1/lpp_generated/SSR-SatellitePCV-List-r18.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-SatellitePCV-List-r18.h" + +#include "SSR-SatellitePCV-Element-r18.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SSR_SatellitePCV_List_r18_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SSR_SatellitePCV_List_r18_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SSR_SatellitePCV_Element_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SSR_SatellitePCV_List_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SSR_SatellitePCV_List_r18_specs_1 = { + sizeof(struct SSR_SatellitePCV_List_r18), + offsetof(struct SSR_SatellitePCV_List_r18, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_SatellitePCV_List_r18 = { + "SSR-SatellitePCV-List-r18", + "SSR-SatellitePCV-List-r18", + &asn_OP_SEQUENCE_OF, + asn_DEF_SSR_SatellitePCV_List_r18_tags_1, + sizeof(asn_DEF_SSR_SatellitePCV_List_r18_tags_1) + /sizeof(asn_DEF_SSR_SatellitePCV_List_r18_tags_1[0]), /* 1 */ + asn_DEF_SSR_SatellitePCV_List_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_SatellitePCV_List_r18_tags_1) + /sizeof(asn_DEF_SSR_SatellitePCV_List_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SSR_SatellitePCV_List_r18_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SSR_SatellitePCV_List_r18_1, + 1, /* Single element */ + &asn_SPC_SSR_SatellitePCV_List_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SSR-SatellitePCV-List-r18.h b/asn.1/lpp_generated/SSR-SatellitePCV-List-r18.h new file mode 100644 index 00000000..60238453 --- /dev/null +++ b/asn.1/lpp_generated/SSR-SatellitePCV-List-r18.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SSR_SatellitePCV_List_r18_H_ +#define _SSR_SatellitePCV_List_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SSR_SatellitePCV_Element_r18; + +/* SSR-SatellitePCV-List-r18 */ +typedef struct SSR_SatellitePCV_List_r18 { + A_SEQUENCE_OF(struct SSR_SatellitePCV_Element_r18) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SSR_SatellitePCV_List_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SSR_SatellitePCV_List_r18; +extern asn_SET_OF_specifics_t asn_SPC_SSR_SatellitePCV_List_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_SSR_SatellitePCV_List_r18_1[1]; +extern asn_per_constraints_t asn_PER_type_SSR_SatellitePCV_List_r18_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _SSR_SatellitePCV_List_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/SSR-URA-SatElement-r16.c b/asn.1/lpp_generated/SSR-URA-SatElement-r16.c new file mode 100644 index 00000000..62a1f957 --- /dev/null +++ b/asn.1/lpp_generated/SSR-URA-SatElement-r16.c @@ -0,0 +1,122 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-URA-SatElement-r16.h" + +static int +memb_ssr_URA_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 6UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ssr_URA_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SSR_URA_SatElement_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SSR_URA_SatElement_r16, svID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct SSR_URA_SatElement_r16, ssr_URA_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ssr_URA_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ssr_URA_r16_constraint_1 + }, + 0, 0, /* No default value */ + "ssr-URA-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_SSR_URA_SatElement_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SSR_URA_SatElement_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ssr-URA-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SSR_URA_SatElement_r16_specs_1 = { + sizeof(struct SSR_URA_SatElement_r16), + offsetof(struct SSR_URA_SatElement_r16, _asn_ctx), + asn_MAP_SSR_URA_SatElement_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_URA_SatElement_r16 = { + "SSR-URA-SatElement-r16", + "SSR-URA-SatElement-r16", + &asn_OP_SEQUENCE, + asn_DEF_SSR_URA_SatElement_r16_tags_1, + sizeof(asn_DEF_SSR_URA_SatElement_r16_tags_1) + /sizeof(asn_DEF_SSR_URA_SatElement_r16_tags_1[0]), /* 1 */ + asn_DEF_SSR_URA_SatElement_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_URA_SatElement_r16_tags_1) + /sizeof(asn_DEF_SSR_URA_SatElement_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SSR_URA_SatElement_r16_1, + 2, /* Elements count */ + &asn_SPC_SSR_URA_SatElement_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SSR-URA-SatElement-r16.h b/asn.1/lpp_generated/SSR-URA-SatElement-r16.h similarity index 79% rename from asn.1/generated/SSR-URA-SatElement-r16.h rename to asn.1/lpp_generated/SSR-URA-SatElement-r16.h index 34133b4f..04fd855b 100644 --- a/asn.1/generated/SSR-URA-SatElement-r16.h +++ b/asn.1/lpp_generated/SSR-URA-SatElement-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SSR_URA_SatElement_r16_H_ diff --git a/asn.1/lpp_generated/SSR-URA-SatList-r16.c b/asn.1/lpp_generated/SSR-URA-SatList-r16.c new file mode 100644 index 00000000..32be5906 --- /dev/null +++ b/asn.1/lpp_generated/SSR-URA-SatList-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SSR-URA-SatList-r16.h" + +#include "SSR-URA-SatElement-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SSR_URA_SatList_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SSR_URA_SatList_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SSR_URA_SatElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SSR_URA_SatList_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SSR_URA_SatList_r16_specs_1 = { + sizeof(struct SSR_URA_SatList_r16), + offsetof(struct SSR_URA_SatList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SSR_URA_SatList_r16 = { + "SSR-URA-SatList-r16", + "SSR-URA-SatList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_SSR_URA_SatList_r16_tags_1, + sizeof(asn_DEF_SSR_URA_SatList_r16_tags_1) + /sizeof(asn_DEF_SSR_URA_SatList_r16_tags_1[0]), /* 1 */ + asn_DEF_SSR_URA_SatList_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_SSR_URA_SatList_r16_tags_1) + /sizeof(asn_DEF_SSR_URA_SatList_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SSR_URA_SatList_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SSR_URA_SatList_r16_1, + 1, /* Single element */ + &asn_SPC_SSR_URA_SatList_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SSR-URA-SatList-r16.h b/asn.1/lpp_generated/SSR-URA-SatList-r16.h similarity index 79% rename from asn.1/generated/SSR-URA-SatList-r16.h rename to asn.1/lpp_generated/SSR-URA-SatList-r16.h index 911aeda4..cc0a56f1 100644 --- a/asn.1/generated/SSR-URA-SatList-r16.h +++ b/asn.1/lpp_generated/SSR-URA-SatList-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SSR_URA_SatList_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_SSR_URA_SatList_r16_constr_1; } #endif -/* Referred external types */ -#include "SSR-URA-SatElement-r16.h" - #endif /* _SSR_URA_SatList_r16_H_ */ #include diff --git a/asn.1/lpp_generated/STEC-IntegrityErrorBounds-r17.c b/asn.1/lpp_generated/STEC-IntegrityErrorBounds-r17.c new file mode 100644 index 00000000..aa5e5931 --- /dev/null +++ b/asn.1/lpp_generated/STEC-IntegrityErrorBounds-r17.c @@ -0,0 +1,248 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "STEC-IntegrityErrorBounds-r17.h" + +static int +memb_meanIonosphere_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stdDevIonosphere_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_meanIonosphereRate_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stdDevIonosphereRate_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanIonosphere_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stdDevIonosphere_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanIonosphereRate_r17_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stdDevIonosphereRate_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_STEC_IntegrityErrorBounds_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct STEC_IntegrityErrorBounds_r17, meanIonosphere_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanIonosphere_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanIonosphere_r17_constraint_1 + }, + 0, 0, /* No default value */ + "meanIonosphere-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct STEC_IntegrityErrorBounds_r17, stdDevIonosphere_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stdDevIonosphere_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stdDevIonosphere_r17_constraint_1 + }, + 0, 0, /* No default value */ + "stdDevIonosphere-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct STEC_IntegrityErrorBounds_r17, meanIonosphereRate_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanIonosphereRate_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanIonosphereRate_r17_constraint_1 + }, + 0, 0, /* No default value */ + "meanIonosphereRate-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct STEC_IntegrityErrorBounds_r17, stdDevIonosphereRate_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stdDevIonosphereRate_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stdDevIonosphereRate_r17_constraint_1 + }, + 0, 0, /* No default value */ + "stdDevIonosphereRate-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_STEC_IntegrityErrorBounds_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_STEC_IntegrityErrorBounds_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* meanIonosphere-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* stdDevIonosphere-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* meanIonosphereRate-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* stdDevIonosphereRate-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_STEC_IntegrityErrorBounds_r17_specs_1 = { + sizeof(struct STEC_IntegrityErrorBounds_r17), + offsetof(struct STEC_IntegrityErrorBounds_r17, _asn_ctx), + asn_MAP_STEC_IntegrityErrorBounds_r17_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_STEC_IntegrityErrorBounds_r17 = { + "STEC-IntegrityErrorBounds-r17", + "STEC-IntegrityErrorBounds-r17", + &asn_OP_SEQUENCE, + asn_DEF_STEC_IntegrityErrorBounds_r17_tags_1, + sizeof(asn_DEF_STEC_IntegrityErrorBounds_r17_tags_1) + /sizeof(asn_DEF_STEC_IntegrityErrorBounds_r17_tags_1[0]), /* 1 */ + asn_DEF_STEC_IntegrityErrorBounds_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_STEC_IntegrityErrorBounds_r17_tags_1) + /sizeof(asn_DEF_STEC_IntegrityErrorBounds_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_STEC_IntegrityErrorBounds_r17_1, + 4, /* Elements count */ + &asn_SPC_STEC_IntegrityErrorBounds_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/STEC-IntegrityErrorBounds-r17.h b/asn.1/lpp_generated/STEC-IntegrityErrorBounds-r17.h new file mode 100644 index 00000000..6235720b --- /dev/null +++ b/asn.1/lpp_generated/STEC-IntegrityErrorBounds-r17.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _STEC_IntegrityErrorBounds_r17_H_ +#define _STEC_IntegrityErrorBounds_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* STEC-IntegrityErrorBounds-r17 */ +typedef struct STEC_IntegrityErrorBounds_r17 { + long meanIonosphere_r17; + long stdDevIonosphere_r17; + long meanIonosphereRate_r17; + long stdDevIonosphereRate_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} STEC_IntegrityErrorBounds_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_STEC_IntegrityErrorBounds_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_STEC_IntegrityErrorBounds_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_STEC_IntegrityErrorBounds_r17_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _STEC_IntegrityErrorBounds_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/STEC-IntegrityParameters-r17.c b/asn.1/lpp_generated/STEC-IntegrityParameters-r17.c new file mode 100644 index 00000000..96297c67 --- /dev/null +++ b/asn.1/lpp_generated/STEC-IntegrityParameters-r17.c @@ -0,0 +1,250 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "STEC-IntegrityParameters-r17.h" + +static int +memb_probOnsetIonoFault_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_meanIonoFaultDuration_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 256L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ionoRangeErrorCorrelationTime_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ionoRangeRateErrorCorrelationTime_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_probOnsetIonoFault_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanIonoFaultDuration_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (1..256) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ionoRangeErrorCorrelationTime_r17_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 1, 255 } /* (1..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ionoRangeRateErrorCorrelationTime_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 1, 255 } /* (1..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_STEC_IntegrityParameters_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct STEC_IntegrityParameters_r17, probOnsetIonoFault_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_probOnsetIonoFault_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_probOnsetIonoFault_r17_constraint_1 + }, + 0, 0, /* No default value */ + "probOnsetIonoFault-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct STEC_IntegrityParameters_r17, meanIonoFaultDuration_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanIonoFaultDuration_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanIonoFaultDuration_r17_constraint_1 + }, + 0, 0, /* No default value */ + "meanIonoFaultDuration-r17" + }, + { ATF_POINTER, 2, offsetof(struct STEC_IntegrityParameters_r17, ionoRangeErrorCorrelationTime_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ionoRangeErrorCorrelationTime_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ionoRangeErrorCorrelationTime_r17_constraint_1 + }, + 0, 0, /* No default value */ + "ionoRangeErrorCorrelationTime-r17" + }, + { ATF_POINTER, 1, offsetof(struct STEC_IntegrityParameters_r17, ionoRangeRateErrorCorrelationTime_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ionoRangeRateErrorCorrelationTime_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ionoRangeRateErrorCorrelationTime_r17_constraint_1 + }, + 0, 0, /* No default value */ + "ionoRangeRateErrorCorrelationTime-r17" + }, +}; +static const int asn_MAP_STEC_IntegrityParameters_r17_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_STEC_IntegrityParameters_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_STEC_IntegrityParameters_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* probOnsetIonoFault-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* meanIonoFaultDuration-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ionoRangeErrorCorrelationTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ionoRangeRateErrorCorrelationTime-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_STEC_IntegrityParameters_r17_specs_1 = { + sizeof(struct STEC_IntegrityParameters_r17), + offsetof(struct STEC_IntegrityParameters_r17, _asn_ctx), + asn_MAP_STEC_IntegrityParameters_r17_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_STEC_IntegrityParameters_r17_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_STEC_IntegrityParameters_r17 = { + "STEC-IntegrityParameters-r17", + "STEC-IntegrityParameters-r17", + &asn_OP_SEQUENCE, + asn_DEF_STEC_IntegrityParameters_r17_tags_1, + sizeof(asn_DEF_STEC_IntegrityParameters_r17_tags_1) + /sizeof(asn_DEF_STEC_IntegrityParameters_r17_tags_1[0]), /* 1 */ + asn_DEF_STEC_IntegrityParameters_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_STEC_IntegrityParameters_r17_tags_1) + /sizeof(asn_DEF_STEC_IntegrityParameters_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_STEC_IntegrityParameters_r17_1, + 4, /* Elements count */ + &asn_SPC_STEC_IntegrityParameters_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/STEC-IntegrityParameters-r17.h b/asn.1/lpp_generated/STEC-IntegrityParameters-r17.h new file mode 100644 index 00000000..8e5b6616 --- /dev/null +++ b/asn.1/lpp_generated/STEC-IntegrityParameters-r17.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _STEC_IntegrityParameters_r17_H_ +#define _STEC_IntegrityParameters_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* STEC-IntegrityParameters-r17 */ +typedef struct STEC_IntegrityParameters_r17 { + long probOnsetIonoFault_r17; + long meanIonoFaultDuration_r17; + long *ionoRangeErrorCorrelationTime_r17; /* OPTIONAL */ + long *ionoRangeRateErrorCorrelationTime_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} STEC_IntegrityParameters_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_STEC_IntegrityParameters_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_STEC_IntegrityParameters_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_STEC_IntegrityParameters_r17_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _STEC_IntegrityParameters_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/STEC-ResidualSatElement-r16.c b/asn.1/lpp_generated/STEC-ResidualSatElement-r16.c new file mode 100644 index 00000000..ddc0fd2c --- /dev/null +++ b/asn.1/lpp_generated/STEC-ResidualSatElement-r16.c @@ -0,0 +1,228 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "STEC-ResidualSatElement-r16.h" + +static int +memb_b7_r16_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -64L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_b16_r16_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_b7_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_b16_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_stecResidualCorrection_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_stecResidualCorrection_r16_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct STEC_ResidualSatElement_r16__stecResidualCorrection_r16, choice.b7_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_b7_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_b7_r16_constraint_3 + }, + 0, 0, /* No default value */ + "b7-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct STEC_ResidualSatElement_r16__stecResidualCorrection_r16, choice.b16_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_b16_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_b16_r16_constraint_3 + }, + 0, 0, /* No default value */ + "b16-r16" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_stecResidualCorrection_r16_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* b7-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* b16-r16 */ +}; +static asn_CHOICE_specifics_t asn_SPC_stecResidualCorrection_r16_specs_3 = { + sizeof(struct STEC_ResidualSatElement_r16__stecResidualCorrection_r16), + offsetof(struct STEC_ResidualSatElement_r16__stecResidualCorrection_r16, _asn_ctx), + offsetof(struct STEC_ResidualSatElement_r16__stecResidualCorrection_r16, present), + sizeof(((struct STEC_ResidualSatElement_r16__stecResidualCorrection_r16 *)0)->present), + asn_MAP_stecResidualCorrection_r16_tag2el_3, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_stecResidualCorrection_r16_3 = { + "stecResidualCorrection-r16", + "stecResidualCorrection-r16", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_stecResidualCorrection_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_stecResidualCorrection_r16_3, + 2, /* Elements count */ + &asn_SPC_stecResidualCorrection_r16_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_STEC_ResidualSatElement_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct STEC_ResidualSatElement_r16, svID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct STEC_ResidualSatElement_r16, stecResidualCorrection_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_stecResidualCorrection_r16_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stecResidualCorrection-r16" + }, +}; +static const ber_tlv_tag_t asn_DEF_STEC_ResidualSatElement_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_STEC_ResidualSatElement_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* stecResidualCorrection-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_STEC_ResidualSatElement_r16_specs_1 = { + sizeof(struct STEC_ResidualSatElement_r16), + offsetof(struct STEC_ResidualSatElement_r16, _asn_ctx), + asn_MAP_STEC_ResidualSatElement_r16_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_STEC_ResidualSatElement_r16 = { + "STEC-ResidualSatElement-r16", + "STEC-ResidualSatElement-r16", + &asn_OP_SEQUENCE, + asn_DEF_STEC_ResidualSatElement_r16_tags_1, + sizeof(asn_DEF_STEC_ResidualSatElement_r16_tags_1) + /sizeof(asn_DEF_STEC_ResidualSatElement_r16_tags_1[0]), /* 1 */ + asn_DEF_STEC_ResidualSatElement_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_STEC_ResidualSatElement_r16_tags_1) + /sizeof(asn_DEF_STEC_ResidualSatElement_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_STEC_ResidualSatElement_r16_1, + 2, /* Elements count */ + &asn_SPC_STEC_ResidualSatElement_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/STEC-ResidualSatElement-r16.h b/asn.1/lpp_generated/STEC-ResidualSatElement-r16.h similarity index 87% rename from asn.1/generated/STEC-ResidualSatElement-r16.h rename to asn.1/lpp_generated/STEC-ResidualSatElement-r16.h index 59666f0d..772740c7 100644 --- a/asn.1/generated/STEC-ResidualSatElement-r16.h +++ b/asn.1/lpp_generated/STEC-ResidualSatElement-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _STEC_ResidualSatElement_r16_H_ diff --git a/asn.1/lpp_generated/STEC-ResidualSatList-r16.c b/asn.1/lpp_generated/STEC-ResidualSatList-r16.c new file mode 100644 index 00000000..cc33a461 --- /dev/null +++ b/asn.1/lpp_generated/STEC-ResidualSatList-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "STEC-ResidualSatList-r16.h" + +#include "STEC-ResidualSatElement-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_STEC_ResidualSatList_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_STEC_ResidualSatList_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_STEC_ResidualSatElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_STEC_ResidualSatList_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_STEC_ResidualSatList_r16_specs_1 = { + sizeof(struct STEC_ResidualSatList_r16), + offsetof(struct STEC_ResidualSatList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_STEC_ResidualSatList_r16 = { + "STEC-ResidualSatList-r16", + "STEC-ResidualSatList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_STEC_ResidualSatList_r16_tags_1, + sizeof(asn_DEF_STEC_ResidualSatList_r16_tags_1) + /sizeof(asn_DEF_STEC_ResidualSatList_r16_tags_1[0]), /* 1 */ + asn_DEF_STEC_ResidualSatList_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_STEC_ResidualSatList_r16_tags_1) + /sizeof(asn_DEF_STEC_ResidualSatList_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_STEC_ResidualSatList_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_STEC_ResidualSatList_r16_1, + 1, /* Single element */ + &asn_SPC_STEC_ResidualSatList_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/STEC-ResidualSatList-r16.h b/asn.1/lpp_generated/STEC-ResidualSatList-r16.h similarity index 80% rename from asn.1/generated/STEC-ResidualSatList-r16.h rename to asn.1/lpp_generated/STEC-ResidualSatList-r16.h index a636cc3c..2bfb4fc1 100644 --- a/asn.1/generated/STEC-ResidualSatList-r16.h +++ b/asn.1/lpp_generated/STEC-ResidualSatList-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _STEC_ResidualSatList_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_STEC_ResidualSatList_r16_constr_1; } #endif -/* Referred external types */ -#include "STEC-ResidualSatElement-r16.h" - #endif /* _STEC_ResidualSatList_r16_H_ */ #include diff --git a/asn.1/lpp_generated/STEC-SatElement-r16.c b/asn.1/lpp_generated/STEC-SatElement-r16.c new file mode 100644 index 00000000..ffc85c9c --- /dev/null +++ b/asn.1/lpp_generated/STEC-SatElement-r16.c @@ -0,0 +1,404 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "STEC-SatElement-r16.h" + +#include "STEC-IntegrityErrorBounds-r17.h" +static int +memb_stecQualityIndicator_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 6UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stec_C00_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8192L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stec_C01_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2048L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stec_C10_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -2048L && value <= 2047L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stec_C11_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -512L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stecQualityIndicator_r16_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stec_C00_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stec_C01_r16_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stec_C10_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stec_C11_r16_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_9[] = { + { ATF_POINTER, 1, offsetof(struct STEC_SatElement_r16__ext1, stec_IntegrityErrorBounds_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_STEC_IntegrityErrorBounds_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stec-IntegrityErrorBounds-r17" + }, +}; +static const int asn_MAP_ext1_oms_9[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_9[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* stec-IntegrityErrorBounds-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_9 = { + sizeof(struct STEC_SatElement_r16__ext1), + offsetof(struct STEC_SatElement_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_9, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_9, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_9 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_9, + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_9, /* Same as above */ + sizeof(asn_DEF_ext1_tags_9) + /sizeof(asn_DEF_ext1_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_9, + 1, /* Elements count */ + &asn_SPC_ext1_specs_9 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_STEC_SatElement_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct STEC_SatElement_r16, svID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct STEC_SatElement_r16, stecQualityIndicator_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stecQualityIndicator_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stecQualityIndicator_r16_constraint_1 + }, + 0, 0, /* No default value */ + "stecQualityIndicator-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct STEC_SatElement_r16, stec_C00_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stec_C00_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stec_C00_r16_constraint_1 + }, + 0, 0, /* No default value */ + "stec-C00-r16" + }, + { ATF_POINTER, 4, offsetof(struct STEC_SatElement_r16, stec_C01_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stec_C01_r16_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stec_C01_r16_constraint_1 + }, + 0, 0, /* No default value */ + "stec-C01-r16" + }, + { ATF_POINTER, 3, offsetof(struct STEC_SatElement_r16, stec_C10_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stec_C10_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stec_C10_r16_constraint_1 + }, + 0, 0, /* No default value */ + "stec-C10-r16" + }, + { ATF_POINTER, 2, offsetof(struct STEC_SatElement_r16, stec_C11_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stec_C11_r16_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stec_C11_r16_constraint_1 + }, + 0, 0, /* No default value */ + "stec-C11-r16" + }, + { ATF_POINTER, 1, offsetof(struct STEC_SatElement_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_ext1_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_STEC_SatElement_r16_oms_1[] = { 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_STEC_SatElement_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_STEC_SatElement_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* stecQualityIndicator-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* stec-C00-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* stec-C01-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* stec-C10-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* stec-C11-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_STEC_SatElement_r16_specs_1 = { + sizeof(struct STEC_SatElement_r16), + offsetof(struct STEC_SatElement_r16, _asn_ctx), + asn_MAP_STEC_SatElement_r16_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_STEC_SatElement_r16_oms_1, /* Optional members */ + 3, 1, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_STEC_SatElement_r16 = { + "STEC-SatElement-r16", + "STEC-SatElement-r16", + &asn_OP_SEQUENCE, + asn_DEF_STEC_SatElement_r16_tags_1, + sizeof(asn_DEF_STEC_SatElement_r16_tags_1) + /sizeof(asn_DEF_STEC_SatElement_r16_tags_1[0]), /* 1 */ + asn_DEF_STEC_SatElement_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_STEC_SatElement_r16_tags_1) + /sizeof(asn_DEF_STEC_SatElement_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_STEC_SatElement_r16_1, + 7, /* Elements count */ + &asn_SPC_STEC_SatElement_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/STEC-SatElement-r16.h b/asn.1/lpp_generated/STEC-SatElement-r16.h new file mode 100644 index 00000000..ebd5bfd2 --- /dev/null +++ b/asn.1/lpp_generated/STEC-SatElement-r16.h @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _STEC_SatElement_r16_H_ +#define _STEC_SatElement_r16_H_ + + +#include + +/* Including external dependencies */ +#include "SV-ID.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct STEC_IntegrityErrorBounds_r17; + +/* STEC-SatElement-r16 */ +typedef struct STEC_SatElement_r16 { + SV_ID_t svID_r16; + BIT_STRING_t stecQualityIndicator_r16; + long stec_C00_r16; + long *stec_C01_r16; /* OPTIONAL */ + long *stec_C10_r16; /* OPTIONAL */ + long *stec_C11_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct STEC_SatElement_r16__ext1 { + struct STEC_IntegrityErrorBounds_r17 *stec_IntegrityErrorBounds_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} STEC_SatElement_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_STEC_SatElement_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_STEC_SatElement_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_STEC_SatElement_r16_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _STEC_SatElement_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/STEC-SatList-r16.c b/asn.1/lpp_generated/STEC-SatList-r16.c new file mode 100644 index 00000000..00432c09 --- /dev/null +++ b/asn.1/lpp_generated/STEC-SatList-r16.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "STEC-SatList-r16.h" + +#include "STEC-SatElement-r16.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_STEC_SatList_r16_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_STEC_SatList_r16_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_STEC_SatElement_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_STEC_SatList_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_STEC_SatList_r16_specs_1 = { + sizeof(struct STEC_SatList_r16), + offsetof(struct STEC_SatList_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_STEC_SatList_r16 = { + "STEC-SatList-r16", + "STEC-SatList-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_STEC_SatList_r16_tags_1, + sizeof(asn_DEF_STEC_SatList_r16_tags_1) + /sizeof(asn_DEF_STEC_SatList_r16_tags_1[0]), /* 1 */ + asn_DEF_STEC_SatList_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_STEC_SatList_r16_tags_1) + /sizeof(asn_DEF_STEC_SatList_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_STEC_SatList_r16_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_STEC_SatList_r16_1, + 1, /* Single element */ + &asn_SPC_STEC_SatList_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/STEC-SatList-r16.h b/asn.1/lpp_generated/STEC-SatList-r16.h similarity index 79% rename from asn.1/generated/STEC-SatList-r16.h rename to asn.1/lpp_generated/STEC-SatList-r16.h index f5e78542..8dcf5de1 100644 --- a/asn.1/generated/STEC-SatList-r16.h +++ b/asn.1/lpp_generated/STEC-SatList-r16.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _STEC_SatList_r16_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_STEC_SatList_r16_constr_1; } #endif -/* Referred external types */ -#include "STEC-SatElement-r16.h" - #endif /* _STEC_SatList_r16_H_ */ #include diff --git a/asn.1/lpp_generated/SV-ID.c b/asn.1/lpp_generated/SV-ID.c new file mode 100644 index 00000000..65e2c047 --- /dev/null +++ b/asn.1/lpp_generated/SV-ID.c @@ -0,0 +1,98 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SV-ID.h" + +static int +memb_satellite_id_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_satellite_id_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SV_ID_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SV_ID, satellite_id), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_satellite_id_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_satellite_id_constraint_1 + }, + 0, 0, /* No default value */ + "satellite-id" + }, +}; +static const ber_tlv_tag_t asn_DEF_SV_ID_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SV_ID_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* satellite-id */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SV_ID_specs_1 = { + sizeof(struct SV_ID), + offsetof(struct SV_ID, _asn_ctx), + asn_MAP_SV_ID_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SV_ID = { + "SV-ID", + "SV-ID", + &asn_OP_SEQUENCE, + asn_DEF_SV_ID_tags_1, + sizeof(asn_DEF_SV_ID_tags_1) + /sizeof(asn_DEF_SV_ID_tags_1[0]), /* 1 */ + asn_DEF_SV_ID_tags_1, /* Same as above */ + sizeof(asn_DEF_SV_ID_tags_1) + /sizeof(asn_DEF_SV_ID_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SV_ID_1, + 1, /* Elements count */ + &asn_SPC_SV_ID_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SV-ID.h b/asn.1/lpp_generated/SV-ID.h similarity index 75% rename from asn.1/generated/SV-ID.h rename to asn.1/lpp_generated/SV-ID.h index 1c00ab42..d601ea90 100644 --- a/asn.1/generated/SV-ID.h +++ b/asn.1/lpp_generated/SV-ID.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SV_ID_H_ diff --git a/asn.1/lpp_generated/SatListElement-r15.c b/asn.1/lpp_generated/SatListElement-r15.c new file mode 100644 index 00000000..0d673cf2 --- /dev/null +++ b/asn.1/lpp_generated/SatListElement-r15.c @@ -0,0 +1,122 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SatListElement-r15.h" + +static int +memb_iod_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 11UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_iod_r15_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 11, 11 } /* (SIZE(11..11)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SatListElement_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SatListElement_r15, svID_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct SatListElement_r15, iod_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_iod_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_iod_r15_constraint_1 + }, + 0, 0, /* No default value */ + "iod-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_SatListElement_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SatListElement_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iod-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SatListElement_r15_specs_1 = { + sizeof(struct SatListElement_r15), + offsetof(struct SatListElement_r15, _asn_ctx), + asn_MAP_SatListElement_r15_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SatListElement_r15 = { + "SatListElement-r15", + "SatListElement-r15", + &asn_OP_SEQUENCE, + asn_DEF_SatListElement_r15_tags_1, + sizeof(asn_DEF_SatListElement_r15_tags_1) + /sizeof(asn_DEF_SatListElement_r15_tags_1[0]), /* 1 */ + asn_DEF_SatListElement_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_SatListElement_r15_tags_1) + /sizeof(asn_DEF_SatListElement_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SatListElement_r15_1, + 2, /* Elements count */ + &asn_SPC_SatListElement_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SatListElement-r15.h b/asn.1/lpp_generated/SatListElement-r15.h similarity index 78% rename from asn.1/generated/SatListElement-r15.h rename to asn.1/lpp_generated/SatListElement-r15.h index 3dcacfd6..5c5a8c2e 100644 --- a/asn.1/generated/SatListElement-r15.h +++ b/asn.1/lpp_generated/SatListElement-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SatListElement_r15_H_ diff --git a/asn.1/lpp_generated/SatListRelatedDataElement.c b/asn.1/lpp_generated/SatListRelatedDataElement.c new file mode 100644 index 00000000..900b547b --- /dev/null +++ b/asn.1/lpp_generated/SatListRelatedDataElement.c @@ -0,0 +1,224 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SatListRelatedDataElement.h" + +static int +memb_iod_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 11UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_clockModelID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 8L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_orbitModelID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 8L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_iod_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 11, 11 } /* (SIZE(11..11)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_clockModelID_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_orbitModelID_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SatListRelatedDataElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SatListRelatedDataElement, svID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SV_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "svID" + }, + { ATF_NOFLAGS, 0, offsetof(struct SatListRelatedDataElement, iod), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_iod_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_iod_constraint_1 + }, + 0, 0, /* No default value */ + "iod" + }, + { ATF_POINTER, 2, offsetof(struct SatListRelatedDataElement, clockModelID), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_clockModelID_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_clockModelID_constraint_1 + }, + 0, 0, /* No default value */ + "clockModelID" + }, + { ATF_POINTER, 1, offsetof(struct SatListRelatedDataElement, orbitModelID), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_orbitModelID_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_orbitModelID_constraint_1 + }, + 0, 0, /* No default value */ + "orbitModelID" + }, +}; +static const int asn_MAP_SatListRelatedDataElement_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_SatListRelatedDataElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SatListRelatedDataElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* iod */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* clockModelID */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* orbitModelID */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SatListRelatedDataElement_specs_1 = { + sizeof(struct SatListRelatedDataElement), + offsetof(struct SatListRelatedDataElement, _asn_ctx), + asn_MAP_SatListRelatedDataElement_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_SatListRelatedDataElement_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SatListRelatedDataElement = { + "SatListRelatedDataElement", + "SatListRelatedDataElement", + &asn_OP_SEQUENCE, + asn_DEF_SatListRelatedDataElement_tags_1, + sizeof(asn_DEF_SatListRelatedDataElement_tags_1) + /sizeof(asn_DEF_SatListRelatedDataElement_tags_1[0]), /* 1 */ + asn_DEF_SatListRelatedDataElement_tags_1, /* Same as above */ + sizeof(asn_DEF_SatListRelatedDataElement_tags_1) + /sizeof(asn_DEF_SatListRelatedDataElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SatListRelatedDataElement_1, + 4, /* Elements count */ + &asn_SPC_SatListRelatedDataElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SatListRelatedDataElement.h b/asn.1/lpp_generated/SatListRelatedDataElement.h similarity index 75% rename from asn.1/generated/SatListRelatedDataElement.h rename to asn.1/lpp_generated/SatListRelatedDataElement.h index 983d92af..4299f270 100644 --- a/asn.1/generated/SatListRelatedDataElement.h +++ b/asn.1/lpp_generated/SatListRelatedDataElement.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SatListRelatedDataElement_H_ @@ -25,8 +25,8 @@ extern "C" { typedef struct SatListRelatedDataElement { SV_ID_t svID; BIT_STRING_t iod; - long *clockModelID /* OPTIONAL */; - long *orbitModelID /* OPTIONAL */; + long *clockModelID; /* OPTIONAL */ + long *orbitModelID; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/SatListRelatedDataList.c b/asn.1/lpp_generated/SatListRelatedDataList.c new file mode 100644 index 00000000..9f7dd59c --- /dev/null +++ b/asn.1/lpp_generated/SatListRelatedDataList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SatListRelatedDataList.h" + +#include "SatListRelatedDataElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SatListRelatedDataList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SatListRelatedDataList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SatListRelatedDataElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SatListRelatedDataList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SatListRelatedDataList_specs_1 = { + sizeof(struct SatListRelatedDataList), + offsetof(struct SatListRelatedDataList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SatListRelatedDataList = { + "SatListRelatedDataList", + "SatListRelatedDataList", + &asn_OP_SEQUENCE_OF, + asn_DEF_SatListRelatedDataList_tags_1, + sizeof(asn_DEF_SatListRelatedDataList_tags_1) + /sizeof(asn_DEF_SatListRelatedDataList_tags_1[0]), /* 1 */ + asn_DEF_SatListRelatedDataList_tags_1, /* Same as above */ + sizeof(asn_DEF_SatListRelatedDataList_tags_1) + /sizeof(asn_DEF_SatListRelatedDataList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SatListRelatedDataList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SatListRelatedDataList_1, + 1, /* Single element */ + &asn_SPC_SatListRelatedDataList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SatListRelatedDataList.h b/asn.1/lpp_generated/SatListRelatedDataList.h similarity index 80% rename from asn.1/generated/SatListRelatedDataList.h rename to asn.1/lpp_generated/SatListRelatedDataList.h index d9df3c74..7ea3e6b9 100644 --- a/asn.1/generated/SatListRelatedDataList.h +++ b/asn.1/lpp_generated/SatListRelatedDataList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SatListRelatedDataList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_SatListRelatedDataList_constr_1; } #endif -/* Referred external types */ -#include "SatListRelatedDataElement.h" - #endif /* _SatListRelatedDataList_H_ */ #include diff --git a/asn.1/lpp_generated/ScheduledLocationTime-r17.c b/asn.1/lpp_generated/ScheduledLocationTime-r17.c new file mode 100644 index 00000000..5f0f51c5 --- /dev/null +++ b/asn.1/lpp_generated/ScheduledLocationTime-r17.c @@ -0,0 +1,933 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ScheduledLocationTime-r17.h" + +#include "CellGlobalIdEUTRA-AndUTRA.h" +#include "NCGI-r15.h" +static int +memb_gnss_TOD_msec_r17_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3599999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_lte_PhysCellId_r17_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 503L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_lte_SystemFrameNumber_r17_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_scs15_r17_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_scs30_r17_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 19L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_scs60_r17_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 39L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_scs120_r17_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 79L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nr_SFN_r17_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_relativeTime_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1024L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_TOD_msec_r17_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, 0, 3599999 } /* (0..3599999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_lte_PhysCellId_r17_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_lte_SystemFrameNumber_r17_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_scs15_r17_constr_18 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_scs30_r17_constr_19 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_scs60_r17_constr_20 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 39 } /* (0..39) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_scs120_r17_constr_21 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 79 } /* (0..79) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nr_Slot_r17_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nr_SFN_r17_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_networkTime_r17_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_relativeTime_r17_constr_23 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (1..1024) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_gnssTime_r17_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct ScheduledLocationTime_r17__gnssTime_r17, gnss_TOD_msec_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_TOD_msec_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_TOD_msec_r17_constraint_3 + }, + 0, 0, /* No default value */ + "gnss-TOD-msec-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct ScheduledLocationTime_r17__gnssTime_r17, gnss_TimeID_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-TimeID-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_gnssTime_r17_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_gnssTime_r17_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-TOD-msec-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-TimeID-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_gnssTime_r17_specs_3 = { + sizeof(struct ScheduledLocationTime_r17__gnssTime_r17), + offsetof(struct ScheduledLocationTime_r17__gnssTime_r17, _asn_ctx), + asn_MAP_gnssTime_r17_tag2el_3, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_gnssTime_r17_3 = { + "gnssTime-r17", + "gnssTime-r17", + &asn_OP_SEQUENCE, + asn_DEF_gnssTime_r17_tags_3, + sizeof(asn_DEF_gnssTime_r17_tags_3) + /sizeof(asn_DEF_gnssTime_r17_tags_3[0]) - 1, /* 1 */ + asn_DEF_gnssTime_r17_tags_3, /* Same as above */ + sizeof(asn_DEF_gnssTime_r17_tags_3) + /sizeof(asn_DEF_gnssTime_r17_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_gnssTime_r17_3, + 2, /* Elements count */ + &asn_SPC_gnssTime_r17_specs_3 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_e_utraTime_r17_7[] = { + { ATF_NOFLAGS, 0, offsetof(struct ScheduledLocationTime_r17__networkTime_r17__e_utraTime_r17, lte_PhysCellId_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_lte_PhysCellId_r17_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_lte_PhysCellId_r17_constraint_7 + }, + 0, 0, /* No default value */ + "lte-PhysCellId-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct ScheduledLocationTime_r17__networkTime_r17__e_utraTime_r17, lte_ArfcnEUTRA_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueEUTRA, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lte-ArfcnEUTRA-r17" + }, + { ATF_POINTER, 1, offsetof(struct ScheduledLocationTime_r17__networkTime_r17__e_utraTime_r17, lte_CellGlobalId_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CellGlobalIdEUTRA_AndUTRA, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lte-CellGlobalId-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct ScheduledLocationTime_r17__networkTime_r17__e_utraTime_r17, lte_SystemFrameNumber_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_lte_SystemFrameNumber_r17_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_lte_SystemFrameNumber_r17_constraint_7 + }, + 0, 0, /* No default value */ + "lte-SystemFrameNumber-r17" + }, +}; +static const int asn_MAP_e_utraTime_r17_oms_7[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_e_utraTime_r17_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_e_utraTime_r17_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lte-PhysCellId-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* lte-ArfcnEUTRA-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* lte-CellGlobalId-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* lte-SystemFrameNumber-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_e_utraTime_r17_specs_7 = { + sizeof(struct ScheduledLocationTime_r17__networkTime_r17__e_utraTime_r17), + offsetof(struct ScheduledLocationTime_r17__networkTime_r17__e_utraTime_r17, _asn_ctx), + asn_MAP_e_utraTime_r17_tag2el_7, + 4, /* Count of tags in the map */ + asn_MAP_e_utraTime_r17_oms_7, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_e_utraTime_r17_7 = { + "e-utraTime-r17", + "e-utraTime-r17", + &asn_OP_SEQUENCE, + asn_DEF_e_utraTime_r17_tags_7, + sizeof(asn_DEF_e_utraTime_r17_tags_7) + /sizeof(asn_DEF_e_utraTime_r17_tags_7[0]) - 1, /* 1 */ + asn_DEF_e_utraTime_r17_tags_7, /* Same as above */ + sizeof(asn_DEF_e_utraTime_r17_tags_7) + /sizeof(asn_DEF_e_utraTime_r17_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_e_utraTime_r17_7, + 4, /* Elements count */ + &asn_SPC_e_utraTime_r17_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nr_Slot_r17_17[] = { + { ATF_NOFLAGS, 0, offsetof(struct ScheduledLocationTime_r17__networkTime_r17__nrTime_r17__nr_Slot_r17, choice.scs15_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_scs15_r17_constr_18, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_scs15_r17_constraint_17 + }, + 0, 0, /* No default value */ + "scs15-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct ScheduledLocationTime_r17__networkTime_r17__nrTime_r17__nr_Slot_r17, choice.scs30_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_scs30_r17_constr_19, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_scs30_r17_constraint_17 + }, + 0, 0, /* No default value */ + "scs30-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct ScheduledLocationTime_r17__networkTime_r17__nrTime_r17__nr_Slot_r17, choice.scs60_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_scs60_r17_constr_20, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_scs60_r17_constraint_17 + }, + 0, 0, /* No default value */ + "scs60-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct ScheduledLocationTime_r17__networkTime_r17__nrTime_r17__nr_Slot_r17, choice.scs120_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_scs120_r17_constr_21, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_scs120_r17_constraint_17 + }, + 0, 0, /* No default value */ + "scs120-r17" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_nr_Slot_r17_tag2el_17[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* scs15-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* scs30-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* scs60-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* scs120-r17 */ +}; +static asn_CHOICE_specifics_t asn_SPC_nr_Slot_r17_specs_17 = { + sizeof(struct ScheduledLocationTime_r17__networkTime_r17__nrTime_r17__nr_Slot_r17), + offsetof(struct ScheduledLocationTime_r17__networkTime_r17__nrTime_r17__nr_Slot_r17, _asn_ctx), + offsetof(struct ScheduledLocationTime_r17__networkTime_r17__nrTime_r17__nr_Slot_r17, present), + sizeof(((struct ScheduledLocationTime_r17__networkTime_r17__nrTime_r17__nr_Slot_r17 *)0)->present), + asn_MAP_nr_Slot_r17_tag2el_17, + 4, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nr_Slot_r17_17 = { + "nr-Slot-r17", + "nr-Slot-r17", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nr_Slot_r17_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_nr_Slot_r17_17, + 4, /* Elements count */ + &asn_SPC_nr_Slot_r17_specs_17 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_nrTime_r17_12[] = { + { ATF_NOFLAGS, 0, offsetof(struct ScheduledLocationTime_r17__networkTime_r17__nrTime_r17, nr_PhysCellID_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct ScheduledLocationTime_r17__networkTime_r17__nrTime_r17, nr_ARFCN_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ARFCN-r17" + }, + { ATF_POINTER, 1, offsetof(struct ScheduledLocationTime_r17__networkTime_r17__nrTime_r17, nr_CellGlobalID_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-CellGlobalID-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct ScheduledLocationTime_r17__networkTime_r17__nrTime_r17, nr_SFN_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nr_SFN_r17_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nr_SFN_r17_constraint_12 + }, + 0, 0, /* No default value */ + "nr-SFN-r17" + }, + { ATF_POINTER, 1, offsetof(struct ScheduledLocationTime_r17__networkTime_r17__nrTime_r17, nr_Slot_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_nr_Slot_r17_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-Slot-r17" + }, +}; +static const int asn_MAP_nrTime_r17_oms_12[] = { 2, 4 }; +static const ber_tlv_tag_t asn_DEF_nrTime_r17_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_nrTime_r17_tag2el_12[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nr-PhysCellID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-ARFCN-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-CellGlobalID-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-SFN-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* nr-Slot-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_nrTime_r17_specs_12 = { + sizeof(struct ScheduledLocationTime_r17__networkTime_r17__nrTime_r17), + offsetof(struct ScheduledLocationTime_r17__networkTime_r17__nrTime_r17, _asn_ctx), + asn_MAP_nrTime_r17_tag2el_12, + 5, /* Count of tags in the map */ + asn_MAP_nrTime_r17_oms_12, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nrTime_r17_12 = { + "nrTime-r17", + "nrTime-r17", + &asn_OP_SEQUENCE, + asn_DEF_nrTime_r17_tags_12, + sizeof(asn_DEF_nrTime_r17_tags_12) + /sizeof(asn_DEF_nrTime_r17_tags_12[0]) - 1, /* 1 */ + asn_DEF_nrTime_r17_tags_12, /* Same as above */ + sizeof(asn_DEF_nrTime_r17_tags_12) + /sizeof(asn_DEF_nrTime_r17_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_nrTime_r17_12, + 5, /* Elements count */ + &asn_SPC_nrTime_r17_specs_12 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_networkTime_r17_6[] = { + { ATF_NOFLAGS, 0, offsetof(struct ScheduledLocationTime_r17__networkTime_r17, choice.e_utraTime_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_e_utraTime_r17_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "e-utraTime-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct ScheduledLocationTime_r17__networkTime_r17, choice.nrTime_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_nrTime_r17_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nrTime-r17" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_networkTime_r17_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* e-utraTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nrTime-r17 */ +}; +static asn_CHOICE_specifics_t asn_SPC_networkTime_r17_specs_6 = { + sizeof(struct ScheduledLocationTime_r17__networkTime_r17), + offsetof(struct ScheduledLocationTime_r17__networkTime_r17, _asn_ctx), + offsetof(struct ScheduledLocationTime_r17__networkTime_r17, present), + sizeof(((struct ScheduledLocationTime_r17__networkTime_r17 *)0)->present), + asn_MAP_networkTime_r17_tag2el_6, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_networkTime_r17_6 = { + "networkTime-r17", + "networkTime-r17", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_networkTime_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_networkTime_r17_6, + 2, /* Elements count */ + &asn_SPC_networkTime_r17_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ScheduledLocationTime_r17_1[] = { + { ATF_POINTER, 4, offsetof(struct ScheduledLocationTime_r17, utcTime_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTCTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utcTime-r17" + }, + { ATF_POINTER, 3, offsetof(struct ScheduledLocationTime_r17, gnssTime_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_gnssTime_r17_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnssTime-r17" + }, + { ATF_POINTER, 2, offsetof(struct ScheduledLocationTime_r17, networkTime_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_networkTime_r17_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "networkTime-r17" + }, + { ATF_POINTER, 1, offsetof(struct ScheduledLocationTime_r17, relativeTime_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_relativeTime_r17_constr_23, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_relativeTime_r17_constraint_1 + }, + 0, 0, /* No default value */ + "relativeTime-r17" + }, +}; +static const int asn_MAP_ScheduledLocationTime_r17_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ScheduledLocationTime_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ScheduledLocationTime_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utcTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnssTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* networkTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* relativeTime-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ScheduledLocationTime_r17_specs_1 = { + sizeof(struct ScheduledLocationTime_r17), + offsetof(struct ScheduledLocationTime_r17, _asn_ctx), + asn_MAP_ScheduledLocationTime_r17_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_ScheduledLocationTime_r17_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ScheduledLocationTime_r17 = { + "ScheduledLocationTime-r17", + "ScheduledLocationTime-r17", + &asn_OP_SEQUENCE, + asn_DEF_ScheduledLocationTime_r17_tags_1, + sizeof(asn_DEF_ScheduledLocationTime_r17_tags_1) + /sizeof(asn_DEF_ScheduledLocationTime_r17_tags_1[0]), /* 1 */ + asn_DEF_ScheduledLocationTime_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_ScheduledLocationTime_r17_tags_1) + /sizeof(asn_DEF_ScheduledLocationTime_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ScheduledLocationTime_r17_1, + 4, /* Elements count */ + &asn_SPC_ScheduledLocationTime_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/ScheduledLocationTime-r17.h b/asn.1/lpp_generated/ScheduledLocationTime-r17.h new file mode 100644 index 00000000..31ff2e0b --- /dev/null +++ b/asn.1/lpp_generated/ScheduledLocationTime-r17.h @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _ScheduledLocationTime_r17_H_ +#define _ScheduledLocationTime_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include "GNSS-ID.h" +#include +#include "ARFCN-ValueEUTRA.h" +#include "NR-PhysCellID-r16.h" +#include "ARFCN-ValueNR-r15.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum ScheduledLocationTime_r17__networkTime_r17_PR { + ScheduledLocationTime_r17__networkTime_r17_PR_NOTHING, /* No components present */ + ScheduledLocationTime_r17__networkTime_r17_PR_e_utraTime_r17, + ScheduledLocationTime_r17__networkTime_r17_PR_nrTime_r17 + /* Extensions may appear below */ + +} ScheduledLocationTime_r17__networkTime_r17_PR; +typedef enum ScheduledLocationTime_r17__networkTime_r17__nrTime_r17__nr_Slot_r17_PR { + ScheduledLocationTime_r17__networkTime_r17__nrTime_r17__nr_Slot_r17_PR_NOTHING, /* No components present */ + ScheduledLocationTime_r17__networkTime_r17__nrTime_r17__nr_Slot_r17_PR_scs15_r17, + ScheduledLocationTime_r17__networkTime_r17__nrTime_r17__nr_Slot_r17_PR_scs30_r17, + ScheduledLocationTime_r17__networkTime_r17__nrTime_r17__nr_Slot_r17_PR_scs60_r17, + ScheduledLocationTime_r17__networkTime_r17__nrTime_r17__nr_Slot_r17_PR_scs120_r17 +} ScheduledLocationTime_r17__networkTime_r17__nrTime_r17__nr_Slot_r17_PR; + +/* Forward declarations */ +struct CellGlobalIdEUTRA_AndUTRA; +struct NCGI_r15; + +/* ScheduledLocationTime-r17 */ +typedef struct ScheduledLocationTime_r17 { + UTCTime_t *utcTime_r17; /* OPTIONAL */ + struct ScheduledLocationTime_r17__gnssTime_r17 { + long gnss_TOD_msec_r17; + GNSS_ID_t gnss_TimeID_r17; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *gnssTime_r17; + struct ScheduledLocationTime_r17__networkTime_r17 { + ScheduledLocationTime_r17__networkTime_r17_PR present; + union ScheduledLocationTime_r17__networkTime_r17_u { + struct ScheduledLocationTime_r17__networkTime_r17__e_utraTime_r17 { + long lte_PhysCellId_r17; + ARFCN_ValueEUTRA_t lte_ArfcnEUTRA_r17; + struct CellGlobalIdEUTRA_AndUTRA *lte_CellGlobalId_r17; /* OPTIONAL */ + long lte_SystemFrameNumber_r17; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } e_utraTime_r17; + struct ScheduledLocationTime_r17__networkTime_r17__nrTime_r17 { + NR_PhysCellID_r16_t nr_PhysCellID_r17; + ARFCN_ValueNR_r15_t nr_ARFCN_r17; + struct NCGI_r15 *nr_CellGlobalID_r17; /* OPTIONAL */ + long nr_SFN_r17; + struct ScheduledLocationTime_r17__networkTime_r17__nrTime_r17__nr_Slot_r17 { + ScheduledLocationTime_r17__networkTime_r17__nrTime_r17__nr_Slot_r17_PR present; + union ScheduledLocationTime_r17__networkTime_r17__nrTime_r17__nr_Slot_r17_u { + long scs15_r17; + long scs30_r17; + long scs60_r17; + long scs120_r17; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *nr_Slot_r17; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } nrTime_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *networkTime_r17; + long *relativeTime_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ScheduledLocationTime_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ScheduledLocationTime_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_ScheduledLocationTime_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_ScheduledLocationTime_r17_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ScheduledLocationTime_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/ScheduledLocationTimeSupport-r17.c b/asn.1/lpp_generated/ScheduledLocationTimeSupport-r17.c new file mode 100644 index 00000000..1bbd2d2a --- /dev/null +++ b/asn.1/lpp_generated/ScheduledLocationTimeSupport-r17.c @@ -0,0 +1,357 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ScheduledLocationTimeSupport-r17.h" + +#include "GNSS-ID-Bitmap.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_utcTime_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_e_utraTime_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_nrTime_r17_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_relativeTime_r17_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_utcTime_r17_value2enum_2[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_utcTime_r17_enum2value_2[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_utcTime_r17_specs_2 = { + asn_MAP_utcTime_r17_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_utcTime_r17_enum2value_2, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_utcTime_r17_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_utcTime_r17_2 = { + "utcTime-r17", + "utcTime-r17", + &asn_OP_NativeEnumerated, + asn_DEF_utcTime_r17_tags_2, + sizeof(asn_DEF_utcTime_r17_tags_2) + /sizeof(asn_DEF_utcTime_r17_tags_2[0]) - 1, /* 1 */ + asn_DEF_utcTime_r17_tags_2, /* Same as above */ + sizeof(asn_DEF_utcTime_r17_tags_2) + /sizeof(asn_DEF_utcTime_r17_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_utcTime_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_utcTime_r17_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_e_utraTime_r17_value2enum_5[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_e_utraTime_r17_enum2value_5[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_e_utraTime_r17_specs_5 = { + asn_MAP_e_utraTime_r17_value2enum_5, /* "tag" => N; sorted by tag */ + asn_MAP_e_utraTime_r17_enum2value_5, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_e_utraTime_r17_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_e_utraTime_r17_5 = { + "e-utraTime-r17", + "e-utraTime-r17", + &asn_OP_NativeEnumerated, + asn_DEF_e_utraTime_r17_tags_5, + sizeof(asn_DEF_e_utraTime_r17_tags_5) + /sizeof(asn_DEF_e_utraTime_r17_tags_5[0]) - 1, /* 1 */ + asn_DEF_e_utraTime_r17_tags_5, /* Same as above */ + sizeof(asn_DEF_e_utraTime_r17_tags_5) + /sizeof(asn_DEF_e_utraTime_r17_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_e_utraTime_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_e_utraTime_r17_specs_5 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_nrTime_r17_value2enum_7[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_nrTime_r17_enum2value_7[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_nrTime_r17_specs_7 = { + asn_MAP_nrTime_r17_value2enum_7, /* "tag" => N; sorted by tag */ + asn_MAP_nrTime_r17_enum2value_7, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_nrTime_r17_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_nrTime_r17_7 = { + "nrTime-r17", + "nrTime-r17", + &asn_OP_NativeEnumerated, + asn_DEF_nrTime_r17_tags_7, + sizeof(asn_DEF_nrTime_r17_tags_7) + /sizeof(asn_DEF_nrTime_r17_tags_7[0]) - 1, /* 1 */ + asn_DEF_nrTime_r17_tags_7, /* Same as above */ + sizeof(asn_DEF_nrTime_r17_tags_7) + /sizeof(asn_DEF_nrTime_r17_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_nrTime_r17_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_nrTime_r17_specs_7 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_relativeTime_r17_value2enum_9[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_relativeTime_r17_enum2value_9[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_relativeTime_r17_specs_9 = { + asn_MAP_relativeTime_r17_value2enum_9, /* "tag" => N; sorted by tag */ + asn_MAP_relativeTime_r17_enum2value_9, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_relativeTime_r17_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_relativeTime_r17_9 = { + "relativeTime-r17", + "relativeTime-r17", + &asn_OP_NativeEnumerated, + asn_DEF_relativeTime_r17_tags_9, + sizeof(asn_DEF_relativeTime_r17_tags_9) + /sizeof(asn_DEF_relativeTime_r17_tags_9[0]) - 1, /* 1 */ + asn_DEF_relativeTime_r17_tags_9, /* Same as above */ + sizeof(asn_DEF_relativeTime_r17_tags_9) + /sizeof(asn_DEF_relativeTime_r17_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_relativeTime_r17_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_relativeTime_r17_specs_9 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ScheduledLocationTimeSupport_r17_1[] = { + { ATF_POINTER, 5, offsetof(struct ScheduledLocationTimeSupport_r17, utcTime_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_utcTime_r17_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utcTime-r17" + }, + { ATF_POINTER, 4, offsetof(struct ScheduledLocationTimeSupport_r17, gnssTime_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ID_Bitmap, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnssTime-r17" + }, + { ATF_POINTER, 3, offsetof(struct ScheduledLocationTimeSupport_r17, e_utraTime_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_e_utraTime_r17_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "e-utraTime-r17" + }, + { ATF_POINTER, 2, offsetof(struct ScheduledLocationTimeSupport_r17, nrTime_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_nrTime_r17_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nrTime-r17" + }, + { ATF_POINTER, 1, offsetof(struct ScheduledLocationTimeSupport_r17, relativeTime_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_relativeTime_r17_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "relativeTime-r17" + }, +}; +static const int asn_MAP_ScheduledLocationTimeSupport_r17_oms_1[] = { 0, 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_ScheduledLocationTimeSupport_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ScheduledLocationTimeSupport_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utcTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnssTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* e-utraTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nrTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* relativeTime-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ScheduledLocationTimeSupport_r17_specs_1 = { + sizeof(struct ScheduledLocationTimeSupport_r17), + offsetof(struct ScheduledLocationTimeSupport_r17, _asn_ctx), + asn_MAP_ScheduledLocationTimeSupport_r17_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_ScheduledLocationTimeSupport_r17_oms_1, /* Optional members */ + 5, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ScheduledLocationTimeSupport_r17 = { + "ScheduledLocationTimeSupport-r17", + "ScheduledLocationTimeSupport-r17", + &asn_OP_SEQUENCE, + asn_DEF_ScheduledLocationTimeSupport_r17_tags_1, + sizeof(asn_DEF_ScheduledLocationTimeSupport_r17_tags_1) + /sizeof(asn_DEF_ScheduledLocationTimeSupport_r17_tags_1[0]), /* 1 */ + asn_DEF_ScheduledLocationTimeSupport_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_ScheduledLocationTimeSupport_r17_tags_1) + /sizeof(asn_DEF_ScheduledLocationTimeSupport_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ScheduledLocationTimeSupport_r17_1, + 5, /* Elements count */ + &asn_SPC_ScheduledLocationTimeSupport_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/ScheduledLocationTimeSupport-r17.h b/asn.1/lpp_generated/ScheduledLocationTimeSupport-r17.h new file mode 100644 index 00000000..c875c04d --- /dev/null +++ b/asn.1/lpp_generated/ScheduledLocationTimeSupport-r17.h @@ -0,0 +1,69 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _ScheduledLocationTimeSupport_r17_H_ +#define _ScheduledLocationTimeSupport_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum ScheduledLocationTimeSupport_r17__utcTime_r17 { + ScheduledLocationTimeSupport_r17__utcTime_r17_supported = 0 +} e_ScheduledLocationTimeSupport_r17__utcTime_r17; +typedef enum ScheduledLocationTimeSupport_r17__e_utraTime_r17 { + ScheduledLocationTimeSupport_r17__e_utraTime_r17_supported = 0 +} e_ScheduledLocationTimeSupport_r17__e_utraTime_r17; +typedef enum ScheduledLocationTimeSupport_r17__nrTime_r17 { + ScheduledLocationTimeSupport_r17__nrTime_r17_supported = 0 +} e_ScheduledLocationTimeSupport_r17__nrTime_r17; +typedef enum ScheduledLocationTimeSupport_r17__relativeTime_r17 { + ScheduledLocationTimeSupport_r17__relativeTime_r17_supported = 0 +} e_ScheduledLocationTimeSupport_r17__relativeTime_r17; + +/* Forward declarations */ +struct GNSS_ID_Bitmap; + +/* ScheduledLocationTimeSupport-r17 */ +typedef struct ScheduledLocationTimeSupport_r17 { + long *utcTime_r17; /* OPTIONAL */ + struct GNSS_ID_Bitmap *gnssTime_r17; /* OPTIONAL */ + long *e_utraTime_r17; /* OPTIONAL */ + long *nrTime_r17; /* OPTIONAL */ + long *relativeTime_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ScheduledLocationTimeSupport_r17_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_utcTime_r17_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_e_utraTime_r17_5; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_nrTime_r17_7; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_relativeTime_r17_9; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_ScheduledLocationTimeSupport_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_ScheduledLocationTimeSupport_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_ScheduledLocationTimeSupport_r17_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ScheduledLocationTimeSupport_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/ScheduledLocationTimeSupportPerMode-r17.c b/asn.1/lpp_generated/ScheduledLocationTimeSupportPerMode-r17.c new file mode 100644 index 00000000..a67d736e --- /dev/null +++ b/asn.1/lpp_generated/ScheduledLocationTimeSupportPerMode-r17.c @@ -0,0 +1,218 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "ScheduledLocationTimeSupportPerMode-r17.h" + +#include "PositioningModes.h" +static asn_TYPE_member_t asn_MBR_gnssTime_r17_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct ScheduledLocationTimeSupportPerMode_r17__gnssTime_r17, posModes_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningModes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posModes-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct ScheduledLocationTimeSupportPerMode_r17__gnssTime_r17, gnss_TimeIDs_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSS_ID_Bitmap, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnss-TimeIDs-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_gnssTime_r17_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_gnssTime_r17_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* posModes-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gnss-TimeIDs-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_gnssTime_r17_specs_3 = { + sizeof(struct ScheduledLocationTimeSupportPerMode_r17__gnssTime_r17), + offsetof(struct ScheduledLocationTimeSupportPerMode_r17__gnssTime_r17, _asn_ctx), + asn_MAP_gnssTime_r17_tag2el_3, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_gnssTime_r17_3 = { + "gnssTime-r17", + "gnssTime-r17", + &asn_OP_SEQUENCE, + asn_DEF_gnssTime_r17_tags_3, + sizeof(asn_DEF_gnssTime_r17_tags_3) + /sizeof(asn_DEF_gnssTime_r17_tags_3[0]) - 1, /* 1 */ + asn_DEF_gnssTime_r17_tags_3, /* Same as above */ + sizeof(asn_DEF_gnssTime_r17_tags_3) + /sizeof(asn_DEF_gnssTime_r17_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_gnssTime_r17_3, + 2, /* Elements count */ + &asn_SPC_gnssTime_r17_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ScheduledLocationTimeSupportPerMode_r17_1[] = { + { ATF_POINTER, 5, offsetof(struct ScheduledLocationTimeSupportPerMode_r17, utcTime_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningModes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utcTime-r17" + }, + { ATF_POINTER, 4, offsetof(struct ScheduledLocationTimeSupportPerMode_r17, gnssTime_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_gnssTime_r17_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnssTime-r17" + }, + { ATF_POINTER, 3, offsetof(struct ScheduledLocationTimeSupportPerMode_r17, e_utraTime_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningModes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "e-utraTime-r17" + }, + { ATF_POINTER, 2, offsetof(struct ScheduledLocationTimeSupportPerMode_r17, nrTime_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningModes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nrTime-r17" + }, + { ATF_POINTER, 1, offsetof(struct ScheduledLocationTimeSupportPerMode_r17, relativeTime_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningModes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "relativeTime-r17" + }, +}; +static const int asn_MAP_ScheduledLocationTimeSupportPerMode_r17_oms_1[] = { 0, 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_ScheduledLocationTimeSupportPerMode_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ScheduledLocationTimeSupportPerMode_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utcTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnssTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* e-utraTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nrTime-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* relativeTime-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ScheduledLocationTimeSupportPerMode_r17_specs_1 = { + sizeof(struct ScheduledLocationTimeSupportPerMode_r17), + offsetof(struct ScheduledLocationTimeSupportPerMode_r17, _asn_ctx), + asn_MAP_ScheduledLocationTimeSupportPerMode_r17_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_ScheduledLocationTimeSupportPerMode_r17_oms_1, /* Optional members */ + 5, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ScheduledLocationTimeSupportPerMode_r17 = { + "ScheduledLocationTimeSupportPerMode-r17", + "ScheduledLocationTimeSupportPerMode-r17", + &asn_OP_SEQUENCE, + asn_DEF_ScheduledLocationTimeSupportPerMode_r17_tags_1, + sizeof(asn_DEF_ScheduledLocationTimeSupportPerMode_r17_tags_1) + /sizeof(asn_DEF_ScheduledLocationTimeSupportPerMode_r17_tags_1[0]), /* 1 */ + asn_DEF_ScheduledLocationTimeSupportPerMode_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_ScheduledLocationTimeSupportPerMode_r17_tags_1) + /sizeof(asn_DEF_ScheduledLocationTimeSupportPerMode_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ScheduledLocationTimeSupportPerMode_r17_1, + 5, /* Elements count */ + &asn_SPC_ScheduledLocationTimeSupportPerMode_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/ScheduledLocationTimeSupportPerMode-r17.h b/asn.1/lpp_generated/ScheduledLocationTimeSupportPerMode-r17.h new file mode 100644 index 00000000..d387e1bb --- /dev/null +++ b/asn.1/lpp_generated/ScheduledLocationTimeSupportPerMode-r17.h @@ -0,0 +1,58 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _ScheduledLocationTimeSupportPerMode_r17_H_ +#define _ScheduledLocationTimeSupportPerMode_r17_H_ + + +#include + +/* Including external dependencies */ +#include "PositioningModes.h" +#include "GNSS-ID-Bitmap.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct PositioningModes; + +/* ScheduledLocationTimeSupportPerMode-r17 */ +typedef struct ScheduledLocationTimeSupportPerMode_r17 { + struct PositioningModes *utcTime_r17; /* OPTIONAL */ + struct ScheduledLocationTimeSupportPerMode_r17__gnssTime_r17 { + PositioningModes_t posModes_r17; + GNSS_ID_Bitmap_t gnss_TimeIDs_r17; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *gnssTime_r17; + struct PositioningModes *e_utraTime_r17; /* OPTIONAL */ + struct PositioningModes *nrTime_r17; /* OPTIONAL */ + struct PositioningModes *relativeTime_r17; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ScheduledLocationTimeSupportPerMode_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ScheduledLocationTimeSupportPerMode_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_ScheduledLocationTimeSupportPerMode_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_ScheduledLocationTimeSupportPerMode_r17_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ScheduledLocationTimeSupportPerMode_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/SegmentationInfo-r14.c b/asn.1/lpp_generated/SegmentationInfo-r14.c new file mode 100644 index 00000000..afcc5aae --- /dev/null +++ b/asn.1/lpp_generated/SegmentationInfo-r14.c @@ -0,0 +1,63 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SegmentationInfo-r14.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SegmentationInfo_r14_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_SegmentationInfo_r14_value2enum_1[] = { + { 0, 14, "noMoreMessages" }, + { 1, 20, "moreMessagesOnTheWay" } +}; +static const unsigned int asn_MAP_SegmentationInfo_r14_enum2value_1[] = { + 1, /* moreMessagesOnTheWay(1) */ + 0 /* noMoreMessages(0) */ +}; +const asn_INTEGER_specifics_t asn_SPC_SegmentationInfo_r14_specs_1 = { + asn_MAP_SegmentationInfo_r14_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_SegmentationInfo_r14_enum2value_1, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_SegmentationInfo_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SegmentationInfo_r14 = { + "SegmentationInfo-r14", + "SegmentationInfo-r14", + &asn_OP_NativeEnumerated, + asn_DEF_SegmentationInfo_r14_tags_1, + sizeof(asn_DEF_SegmentationInfo_r14_tags_1) + /sizeof(asn_DEF_SegmentationInfo_r14_tags_1[0]), /* 1 */ + asn_DEF_SegmentationInfo_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_SegmentationInfo_r14_tags_1) + /sizeof(asn_DEF_SegmentationInfo_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SegmentationInfo_r14_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_SegmentationInfo_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SegmentationInfo-r14.h b/asn.1/lpp_generated/SegmentationInfo-r14.h similarity index 78% rename from asn.1/generated/SegmentationInfo-r14.h rename to asn.1/lpp_generated/SegmentationInfo-r14.h index 7945746e..95a818ed 100644 --- a/asn.1/generated/SegmentationInfo-r14.h +++ b/asn.1/lpp_generated/SegmentationInfo-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SegmentationInfo_r14_H_ @@ -32,12 +32,10 @@ extern asn_per_constraints_t asn_PER_type_SegmentationInfo_r14_constr_1; extern asn_TYPE_descriptor_t asn_DEF_SegmentationInfo_r14; extern const asn_INTEGER_specifics_t asn_SPC_SegmentationInfo_r14_specs_1; asn_struct_free_f SegmentationInfo_r14_free; -asn_struct_print_f SegmentationInfo_r14_print; asn_constr_check_f SegmentationInfo_r14_constraint; -ber_type_decoder_f SegmentationInfo_r14_decode_ber; -der_type_encoder_f SegmentationInfo_r14_encode_der; xer_type_decoder_f SegmentationInfo_r14_decode_xer; xer_type_encoder_f SegmentationInfo_r14_encode_xer; +jer_type_encoder_f SegmentationInfo_r14_encode_jer; per_type_decoder_f SegmentationInfo_r14_decode_uper; per_type_encoder_f SegmentationInfo_r14_encode_uper; diff --git a/asn.1/lpp_generated/Sensor-AssistanceDataList-r14.c b/asn.1/lpp_generated/Sensor-AssistanceDataList-r14.c new file mode 100644 index 00000000..749f9017 --- /dev/null +++ b/asn.1/lpp_generated/Sensor-AssistanceDataList-r14.c @@ -0,0 +1,538 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Sensor-AssistanceDataList-r14.h" + +#include "EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.h" +static int +memb_referencePressureRate_v1520_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gN_pressure_v1520_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gE_pressure_v1520_constraint_11(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refPressure_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -20000L && value <= 10000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refTemperature_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -64L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_referencePressureRate_v1520_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gN_pressure_v1520_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gE_pressure_v1520_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refPressure_r14_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, -20000, 10000 } /* (-20000..10000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refTemperature_r14_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_period_v1520_7[] = { + { ATF_NOFLAGS, 0, offsetof(struct Sensor_AssistanceDataList_r14__ext1__period_v1520, pressureValidityPeriod_v1520), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PressureValidityPeriod_v1520, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pressureValidityPeriod-v1520" + }, + { ATF_POINTER, 1, offsetof(struct Sensor_AssistanceDataList_r14__ext1__period_v1520, referencePressureRate_v1520), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_referencePressureRate_v1520_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_referencePressureRate_v1520_constraint_7 + }, + 0, 0, /* No default value */ + "referencePressureRate-v1520" + }, +}; +static const int asn_MAP_period_v1520_oms_7[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_period_v1520_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_period_v1520_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pressureValidityPeriod-v1520 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* referencePressureRate-v1520 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_period_v1520_specs_7 = { + sizeof(struct Sensor_AssistanceDataList_r14__ext1__period_v1520), + offsetof(struct Sensor_AssistanceDataList_r14__ext1__period_v1520, _asn_ctx), + asn_MAP_period_v1520_tag2el_7, + 2, /* Count of tags in the map */ + asn_MAP_period_v1520_oms_7, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_period_v1520_7 = { + "period-v1520", + "period-v1520", + &asn_OP_SEQUENCE, + asn_DEF_period_v1520_tags_7, + sizeof(asn_DEF_period_v1520_tags_7) + /sizeof(asn_DEF_period_v1520_tags_7[0]) - 1, /* 1 */ + asn_DEF_period_v1520_tags_7, /* Same as above */ + sizeof(asn_DEF_period_v1520_tags_7) + /sizeof(asn_DEF_period_v1520_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_period_v1520_7, + 2, /* Elements count */ + &asn_SPC_period_v1520_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_area_v1520_11[] = { + { ATF_NOFLAGS, 0, offsetof(struct Sensor_AssistanceDataList_r14__ext1__area_v1520, pressureValidityArea_v1520), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PressureValidityArea_v1520, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pressureValidityArea-v1520" + }, + { ATF_POINTER, 2, offsetof(struct Sensor_AssistanceDataList_r14__ext1__area_v1520, gN_pressure_v1520), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gN_pressure_v1520_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gN_pressure_v1520_constraint_11 + }, + 0, 0, /* No default value */ + "gN-pressure-v1520" + }, + { ATF_POINTER, 1, offsetof(struct Sensor_AssistanceDataList_r14__ext1__area_v1520, gE_pressure_v1520), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gE_pressure_v1520_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gE_pressure_v1520_constraint_11 + }, + 0, 0, /* No default value */ + "gE-pressure-v1520" + }, +}; +static const int asn_MAP_area_v1520_oms_11[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_area_v1520_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_area_v1520_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pressureValidityArea-v1520 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gN-pressure-v1520 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gE-pressure-v1520 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_area_v1520_specs_11 = { + sizeof(struct Sensor_AssistanceDataList_r14__ext1__area_v1520), + offsetof(struct Sensor_AssistanceDataList_r14__ext1__area_v1520, _asn_ctx), + asn_MAP_area_v1520_tag2el_11, + 3, /* Count of tags in the map */ + asn_MAP_area_v1520_oms_11, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_area_v1520_11 = { + "area-v1520", + "area-v1520", + &asn_OP_SEQUENCE, + asn_DEF_area_v1520_tags_11, + sizeof(asn_DEF_area_v1520_tags_11) + /sizeof(asn_DEF_area_v1520_tags_11[0]) - 1, /* 1 */ + asn_DEF_area_v1520_tags_11, /* Same as above */ + sizeof(asn_DEF_area_v1520_tags_11) + /sizeof(asn_DEF_area_v1520_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_area_v1520_11, + 3, /* Elements count */ + &asn_SPC_area_v1520_specs_11 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_6[] = { + { ATF_POINTER, 2, offsetof(struct Sensor_AssistanceDataList_r14__ext1, period_v1520), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_period_v1520_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "period-v1520" + }, + { ATF_POINTER, 1, offsetof(struct Sensor_AssistanceDataList_r14__ext1, area_v1520), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_area_v1520_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "area-v1520" + }, +}; +static const int asn_MAP_ext1_oms_6[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* period-v1520 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* area-v1520 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = { + sizeof(struct Sensor_AssistanceDataList_r14__ext1), + offsetof(struct Sensor_AssistanceDataList_r14__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_6, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_6, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_6 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_6, + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_6, /* Same as above */ + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_6, + 2, /* Elements count */ + &asn_SPC_ext1_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_Sensor_AssistanceDataList_r14_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Sensor_AssistanceDataList_r14, refPressure_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refPressure_r14_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refPressure_r14_constraint_1 + }, + 0, 0, /* No default value */ + "refPressure-r14" + }, + { ATF_POINTER, 3, offsetof(struct Sensor_AssistanceDataList_r14, refPosition_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "refPosition-r14" + }, + { ATF_POINTER, 2, offsetof(struct Sensor_AssistanceDataList_r14, refTemperature_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refTemperature_r14_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refTemperature_r14_constraint_1 + }, + 0, 0, /* No default value */ + "refTemperature-r14" + }, + { ATF_POINTER, 1, offsetof(struct Sensor_AssistanceDataList_r14, ext1), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext1_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_Sensor_AssistanceDataList_r14_oms_1[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_Sensor_AssistanceDataList_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Sensor_AssistanceDataList_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refPressure-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refPosition-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* refTemperature-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Sensor_AssistanceDataList_r14_specs_1 = { + sizeof(struct Sensor_AssistanceDataList_r14), + offsetof(struct Sensor_AssistanceDataList_r14, _asn_ctx), + asn_MAP_Sensor_AssistanceDataList_r14_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_Sensor_AssistanceDataList_r14_oms_1, /* Optional members */ + 2, 1, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Sensor_AssistanceDataList_r14 = { + "Sensor-AssistanceDataList-r14", + "Sensor-AssistanceDataList-r14", + &asn_OP_SEQUENCE, + asn_DEF_Sensor_AssistanceDataList_r14_tags_1, + sizeof(asn_DEF_Sensor_AssistanceDataList_r14_tags_1) + /sizeof(asn_DEF_Sensor_AssistanceDataList_r14_tags_1[0]), /* 1 */ + asn_DEF_Sensor_AssistanceDataList_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_Sensor_AssistanceDataList_r14_tags_1) + /sizeof(asn_DEF_Sensor_AssistanceDataList_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Sensor_AssistanceDataList_r14_1, + 4, /* Elements count */ + &asn_SPC_Sensor_AssistanceDataList_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Sensor-AssistanceDataList-r14.h b/asn.1/lpp_generated/Sensor-AssistanceDataList-r14.h similarity index 80% rename from asn.1/generated/Sensor-AssistanceDataList-r14.h rename to asn.1/lpp_generated/Sensor-AssistanceDataList-r14.h index a96cdc86..674b9d20 100644 --- a/asn.1/generated/Sensor-AssistanceDataList-r14.h +++ b/asn.1/lpp_generated/Sensor-AssistanceDataList-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Sensor_AssistanceDataList_r14_H_ @@ -27,8 +27,8 @@ struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid; /* Sensor-AssistanceDataList-r14 */ typedef struct Sensor_AssistanceDataList_r14 { long refPressure_r14; - struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid *refPosition_r14 /* OPTIONAL */; - long *refTemperature_r14 /* OPTIONAL */; + struct EllipsoidPointWithAltitudeAndUncertaintyEllipsoid *refPosition_r14; /* OPTIONAL */ + long *refTemperature_r14; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -36,7 +36,7 @@ typedef struct Sensor_AssistanceDataList_r14 { struct Sensor_AssistanceDataList_r14__ext1 { struct Sensor_AssistanceDataList_r14__ext1__period_v1520 { PressureValidityPeriod_v1520_t pressureValidityPeriod_v1520; - long *referencePressureRate_v1520 /* OPTIONAL */; + long *referencePressureRate_v1520; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -47,8 +47,8 @@ typedef struct Sensor_AssistanceDataList_r14 { } *period_v1520; struct Sensor_AssistanceDataList_r14__ext1__area_v1520 { PressureValidityArea_v1520_t pressureValidityArea_v1520; - long *gN_pressure_v1520 /* OPTIONAL */; - long *gE_pressure_v1520 /* OPTIONAL */; + long *gN_pressure_v1520; /* OPTIONAL */ + long *gE_pressure_v1520; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -75,8 +75,5 @@ extern asn_TYPE_member_t asn_MBR_Sensor_AssistanceDataList_r14_1[4]; } #endif -/* Referred external types */ -#include "EllipsoidPointWithAltitudeAndUncertaintyEllipsoid.h" - #endif /* _Sensor_AssistanceDataList_r14_H_ */ #include diff --git a/asn.1/lpp_generated/Sensor-AssistanceDataSupportList-r14.c b/asn.1/lpp_generated/Sensor-AssistanceDataSupportList-r14.c new file mode 100644 index 00000000..277bce4f --- /dev/null +++ b/asn.1/lpp_generated/Sensor-AssistanceDataSupportList-r14.c @@ -0,0 +1,255 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Sensor-AssistanceDataSupportList-r14.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_validityPeriodSupported_v1520_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_validityAreaSupported_v1520_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_validityPeriodSupported_v1520_value2enum_4[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_validityPeriodSupported_v1520_enum2value_4[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_validityPeriodSupported_v1520_specs_4 = { + asn_MAP_validityPeriodSupported_v1520_value2enum_4, /* "tag" => N; sorted by tag */ + asn_MAP_validityPeriodSupported_v1520_enum2value_4, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_validityPeriodSupported_v1520_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_validityPeriodSupported_v1520_4 = { + "validityPeriodSupported-v1520", + "validityPeriodSupported-v1520", + &asn_OP_NativeEnumerated, + asn_DEF_validityPeriodSupported_v1520_tags_4, + sizeof(asn_DEF_validityPeriodSupported_v1520_tags_4) + /sizeof(asn_DEF_validityPeriodSupported_v1520_tags_4[0]) - 1, /* 1 */ + asn_DEF_validityPeriodSupported_v1520_tags_4, /* Same as above */ + sizeof(asn_DEF_validityPeriodSupported_v1520_tags_4) + /sizeof(asn_DEF_validityPeriodSupported_v1520_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_validityPeriodSupported_v1520_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_validityPeriodSupported_v1520_specs_4 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_validityAreaSupported_v1520_value2enum_6[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_validityAreaSupported_v1520_enum2value_6[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_validityAreaSupported_v1520_specs_6 = { + asn_MAP_validityAreaSupported_v1520_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_validityAreaSupported_v1520_enum2value_6, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_validityAreaSupported_v1520_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_validityAreaSupported_v1520_6 = { + "validityAreaSupported-v1520", + "validityAreaSupported-v1520", + &asn_OP_NativeEnumerated, + asn_DEF_validityAreaSupported_v1520_tags_6, + sizeof(asn_DEF_validityAreaSupported_v1520_tags_6) + /sizeof(asn_DEF_validityAreaSupported_v1520_tags_6[0]) - 1, /* 1 */ + asn_DEF_validityAreaSupported_v1520_tags_6, /* Same as above */ + sizeof(asn_DEF_validityAreaSupported_v1520_tags_6) + /sizeof(asn_DEF_validityAreaSupported_v1520_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_validityAreaSupported_v1520_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_validityAreaSupported_v1520_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_3[] = { + { ATF_POINTER, 2, offsetof(struct Sensor_AssistanceDataSupportList_r14__ext1, validityPeriodSupported_v1520), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_validityPeriodSupported_v1520_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "validityPeriodSupported-v1520" + }, + { ATF_POINTER, 1, offsetof(struct Sensor_AssistanceDataSupportList_r14__ext1, validityAreaSupported_v1520), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_validityAreaSupported_v1520_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "validityAreaSupported-v1520" + }, +}; +static const int asn_MAP_ext1_oms_3[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* validityPeriodSupported-v1520 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* validityAreaSupported-v1520 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_3 = { + sizeof(struct Sensor_AssistanceDataSupportList_r14__ext1), + offsetof(struct Sensor_AssistanceDataSupportList_r14__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_3, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_3, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_3 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_3, + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_3, /* Same as above */ + sizeof(asn_DEF_ext1_tags_3) + /sizeof(asn_DEF_ext1_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_3, + 2, /* Elements count */ + &asn_SPC_ext1_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_Sensor_AssistanceDataSupportList_r14_1[] = { + { ATF_POINTER, 1, offsetof(struct Sensor_AssistanceDataSupportList_r14, ext1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_ext1_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_Sensor_AssistanceDataSupportList_r14_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_Sensor_AssistanceDataSupportList_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Sensor_AssistanceDataSupportList_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Sensor_AssistanceDataSupportList_r14_specs_1 = { + sizeof(struct Sensor_AssistanceDataSupportList_r14), + offsetof(struct Sensor_AssistanceDataSupportList_r14, _asn_ctx), + asn_MAP_Sensor_AssistanceDataSupportList_r14_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_Sensor_AssistanceDataSupportList_r14_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Sensor_AssistanceDataSupportList_r14 = { + "Sensor-AssistanceDataSupportList-r14", + "Sensor-AssistanceDataSupportList-r14", + &asn_OP_SEQUENCE, + asn_DEF_Sensor_AssistanceDataSupportList_r14_tags_1, + sizeof(asn_DEF_Sensor_AssistanceDataSupportList_r14_tags_1) + /sizeof(asn_DEF_Sensor_AssistanceDataSupportList_r14_tags_1[0]), /* 1 */ + asn_DEF_Sensor_AssistanceDataSupportList_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_Sensor_AssistanceDataSupportList_r14_tags_1) + /sizeof(asn_DEF_Sensor_AssistanceDataSupportList_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Sensor_AssistanceDataSupportList_r14_1, + 1, /* Elements count */ + &asn_SPC_Sensor_AssistanceDataSupportList_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Sensor-AssistanceDataSupportList-r14.h b/asn.1/lpp_generated/Sensor-AssistanceDataSupportList-r14.h similarity index 84% rename from asn.1/generated/Sensor-AssistanceDataSupportList-r14.h rename to asn.1/lpp_generated/Sensor-AssistanceDataSupportList-r14.h index 19a69148..0bc96021 100644 --- a/asn.1/generated/Sensor-AssistanceDataSupportList-r14.h +++ b/asn.1/lpp_generated/Sensor-AssistanceDataSupportList-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Sensor_AssistanceDataSupportList_r14_H_ @@ -34,8 +34,8 @@ typedef struct Sensor_AssistanceDataSupportList_r14 { * possible extensions are below. */ struct Sensor_AssistanceDataSupportList_r14__ext1 { - long *validityPeriodSupported_v1520 /* OPTIONAL */; - long *validityAreaSupported_v1520 /* OPTIONAL */; + long *validityPeriodSupported_v1520; /* OPTIONAL */ + long *validityAreaSupported_v1520; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/Sensor-Error-r13.c b/asn.1/lpp_generated/Sensor-Error-r13.c new file mode 100644 index 00000000..1e3ae4e4 --- /dev/null +++ b/asn.1/lpp_generated/Sensor-Error-r13.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Sensor-Error-r13.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Sensor_Error_r13_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Sensor_Error_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Sensor_Error_r13, choice.locationServerErrorCauses_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Sensor_LocationServerErrorCauses_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationServerErrorCauses-r13" + }, + { ATF_NOFLAGS, 0, offsetof(struct Sensor_Error_r13, choice.targetDeviceErrorCauses_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Sensor_TargetDeviceErrorCauses_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "targetDeviceErrorCauses-r13" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_Sensor_Error_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses-r13 */ +}; +asn_CHOICE_specifics_t asn_SPC_Sensor_Error_r13_specs_1 = { + sizeof(struct Sensor_Error_r13), + offsetof(struct Sensor_Error_r13, _asn_ctx), + offsetof(struct Sensor_Error_r13, present), + sizeof(((struct Sensor_Error_r13 *)0)->present), + asn_MAP_Sensor_Error_r13_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_Sensor_Error_r13 = { + "Sensor-Error-r13", + "Sensor-Error-r13", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Sensor_Error_r13_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_Sensor_Error_r13_1, + 2, /* Elements count */ + &asn_SPC_Sensor_Error_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Sensor-Error-r13.h b/asn.1/lpp_generated/Sensor-Error-r13.h similarity index 85% rename from asn.1/generated/Sensor-Error-r13.h rename to asn.1/lpp_generated/Sensor-Error-r13.h index 9bfac0fb..4fb5bc87 100644 --- a/asn.1/generated/Sensor-Error-r13.h +++ b/asn.1/lpp_generated/Sensor-Error-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Sensor_Error_r13_H_ diff --git a/asn.1/lpp_generated/Sensor-LocationServerErrorCauses-r13.c b/asn.1/lpp_generated/Sensor-LocationServerErrorCauses-r13.c new file mode 100644 index 00000000..32fe43a0 --- /dev/null +++ b/asn.1/lpp_generated/Sensor-LocationServerErrorCauses-r13.c @@ -0,0 +1,126 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Sensor-LocationServerErrorCauses-r13.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_r13_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_r13_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 40, "assistanceDataNotSupportedByServer-v1420" }, + { 2, 61, "assistanceDataSupportedButCurrentlyNotAvailableByServer-v1420" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_r13_enum2value_2[] = { + 1, /* assistanceDataNotSupportedByServer-v1420(1) */ + 2, /* assistanceDataSupportedButCurrentlyNotAvailableByServer-v1420(2) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_r13_specs_2 = { + asn_MAP_cause_r13_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_r13_enum2value_2, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_r13_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_r13_2 = { + "cause-r13", + "cause-r13", + &asn_OP_NativeEnumerated, + asn_DEF_cause_r13_tags_2, + sizeof(asn_DEF_cause_r13_tags_2) + /sizeof(asn_DEF_cause_r13_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_r13_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_r13_tags_2) + /sizeof(asn_DEF_cause_r13_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_r13_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_r13_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_Sensor_LocationServerErrorCauses_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Sensor_LocationServerErrorCauses_r13, cause_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_r13_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause-r13" + }, +}; +static const ber_tlv_tag_t asn_DEF_Sensor_LocationServerErrorCauses_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Sensor_LocationServerErrorCauses_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause-r13 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Sensor_LocationServerErrorCauses_r13_specs_1 = { + sizeof(struct Sensor_LocationServerErrorCauses_r13), + offsetof(struct Sensor_LocationServerErrorCauses_r13, _asn_ctx), + asn_MAP_Sensor_LocationServerErrorCauses_r13_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Sensor_LocationServerErrorCauses_r13 = { + "Sensor-LocationServerErrorCauses-r13", + "Sensor-LocationServerErrorCauses-r13", + &asn_OP_SEQUENCE, + asn_DEF_Sensor_LocationServerErrorCauses_r13_tags_1, + sizeof(asn_DEF_Sensor_LocationServerErrorCauses_r13_tags_1) + /sizeof(asn_DEF_Sensor_LocationServerErrorCauses_r13_tags_1[0]), /* 1 */ + asn_DEF_Sensor_LocationServerErrorCauses_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_Sensor_LocationServerErrorCauses_r13_tags_1) + /sizeof(asn_DEF_Sensor_LocationServerErrorCauses_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Sensor_LocationServerErrorCauses_r13_1, + 1, /* Elements count */ + &asn_SPC_Sensor_LocationServerErrorCauses_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Sensor-LocationServerErrorCauses-r13.h b/asn.1/lpp_generated/Sensor-LocationServerErrorCauses-r13.h similarity index 86% rename from asn.1/generated/Sensor-LocationServerErrorCauses-r13.h rename to asn.1/lpp_generated/Sensor-LocationServerErrorCauses-r13.h index ec525cb4..6e09c97c 100644 --- a/asn.1/generated/Sensor-LocationServerErrorCauses-r13.h +++ b/asn.1/lpp_generated/Sensor-LocationServerErrorCauses-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Sensor_LocationServerErrorCauses_r13_H_ diff --git a/asn.1/lpp_generated/Sensor-MeasurementInformation-r13.c b/asn.1/lpp_generated/Sensor-MeasurementInformation-r13.c new file mode 100644 index 00000000..830a2d3a --- /dev/null +++ b/asn.1/lpp_generated/Sensor-MeasurementInformation-r13.c @@ -0,0 +1,449 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Sensor-MeasurementInformation-r13.h" + +static int +memb_range_r14_constraint_6(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_confidence_r14_constraint_6(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_adjustment_r16_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -5000L && value <= 5000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncompensatedBarometricPressure_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 30000L && value <= 115000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_range_r14_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1000 } /* (0..1000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_confidence_r14_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 100 } /* (1..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_adjustment_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, -5000, 5000 } /* (-5000..5000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncompensatedBarometricPressure_r13_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 30000, 115000 } /* (30000..115000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_uncertainty_r14_6[] = { + { ATF_NOFLAGS, 0, offsetof(struct Sensor_MeasurementInformation_r13__ext1__uncertainty_r14, range_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_range_r14_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_range_r14_constraint_6 + }, + 0, 0, /* No default value */ + "range-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct Sensor_MeasurementInformation_r13__ext1__uncertainty_r14, confidence_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_confidence_r14_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_confidence_r14_constraint_6 + }, + 0, 0, /* No default value */ + "confidence-r14" + }, +}; +static const ber_tlv_tag_t asn_DEF_uncertainty_r14_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_uncertainty_r14_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* range-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_uncertainty_r14_specs_6 = { + sizeof(struct Sensor_MeasurementInformation_r13__ext1__uncertainty_r14), + offsetof(struct Sensor_MeasurementInformation_r13__ext1__uncertainty_r14, _asn_ctx), + asn_MAP_uncertainty_r14_tag2el_6, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_uncertainty_r14_6 = { + "uncertainty-r14", + "uncertainty-r14", + &asn_OP_SEQUENCE, + asn_DEF_uncertainty_r14_tags_6, + sizeof(asn_DEF_uncertainty_r14_tags_6) + /sizeof(asn_DEF_uncertainty_r14_tags_6[0]) - 1, /* 1 */ + asn_DEF_uncertainty_r14_tags_6, /* Same as above */ + sizeof(asn_DEF_uncertainty_r14_tags_6) + /sizeof(asn_DEF_uncertainty_r14_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_uncertainty_r14_6, + 2, /* Elements count */ + &asn_SPC_uncertainty_r14_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_POINTER, 1, offsetof(struct Sensor_MeasurementInformation_r13__ext1, uncertainty_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_uncertainty_r14_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "uncertainty-r14" + }, +}; +static const int asn_MAP_ext1_oms_5[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* uncertainty-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct Sensor_MeasurementInformation_r13__ext1), + offsetof(struct Sensor_MeasurementInformation_r13__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_5, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 1, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_9[] = { + { ATF_POINTER, 1, offsetof(struct Sensor_MeasurementInformation_r13__ext2, adjustment_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_adjustment_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_adjustment_r16_constraint_9 + }, + 0, 0, /* No default value */ + "adjustment-r16" + }, +}; +static const int asn_MAP_ext2_oms_9[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_9[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* adjustment-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_9 = { + sizeof(struct Sensor_MeasurementInformation_r13__ext2), + offsetof(struct Sensor_MeasurementInformation_r13__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_9, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_9, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_9 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_9, + sizeof(asn_DEF_ext2_tags_9) + /sizeof(asn_DEF_ext2_tags_9[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_9, /* Same as above */ + sizeof(asn_DEF_ext2_tags_9) + /sizeof(asn_DEF_ext2_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_9, + 1, /* Elements count */ + &asn_SPC_ext2_specs_9 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_Sensor_MeasurementInformation_r13_1[] = { + { ATF_POINTER, 4, offsetof(struct Sensor_MeasurementInformation_r13, measurementReferenceTime_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTCTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "measurementReferenceTime-r13" + }, + { ATF_POINTER, 3, offsetof(struct Sensor_MeasurementInformation_r13, uncompensatedBarometricPressure_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncompensatedBarometricPressure_r13_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncompensatedBarometricPressure_r13_constraint_1 + }, + 0, 0, /* No default value */ + "uncompensatedBarometricPressure-r13" + }, + { ATF_POINTER, 2, offsetof(struct Sensor_MeasurementInformation_r13, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct Sensor_MeasurementInformation_r13, ext2), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext2_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_Sensor_MeasurementInformation_r13_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_Sensor_MeasurementInformation_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Sensor_MeasurementInformation_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* measurementReferenceTime-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uncompensatedBarometricPressure-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Sensor_MeasurementInformation_r13_specs_1 = { + sizeof(struct Sensor_MeasurementInformation_r13), + offsetof(struct Sensor_MeasurementInformation_r13, _asn_ctx), + asn_MAP_Sensor_MeasurementInformation_r13_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_Sensor_MeasurementInformation_r13_oms_1, /* Optional members */ + 2, 2, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Sensor_MeasurementInformation_r13 = { + "Sensor-MeasurementInformation-r13", + "Sensor-MeasurementInformation-r13", + &asn_OP_SEQUENCE, + asn_DEF_Sensor_MeasurementInformation_r13_tags_1, + sizeof(asn_DEF_Sensor_MeasurementInformation_r13_tags_1) + /sizeof(asn_DEF_Sensor_MeasurementInformation_r13_tags_1[0]), /* 1 */ + asn_DEF_Sensor_MeasurementInformation_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_Sensor_MeasurementInformation_r13_tags_1) + /sizeof(asn_DEF_Sensor_MeasurementInformation_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Sensor_MeasurementInformation_r13_1, + 4, /* Elements count */ + &asn_SPC_Sensor_MeasurementInformation_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Sensor-MeasurementInformation-r13.h b/asn.1/lpp_generated/Sensor-MeasurementInformation-r13.h similarity index 79% rename from asn.1/generated/Sensor-MeasurementInformation-r13.h rename to asn.1/lpp_generated/Sensor-MeasurementInformation-r13.h index dfacc4d6..8e176d3a 100644 --- a/asn.1/generated/Sensor-MeasurementInformation-r13.h +++ b/asn.1/lpp_generated/Sensor-MeasurementInformation-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Sensor_MeasurementInformation_r13_H_ @@ -22,8 +22,8 @@ extern "C" { /* Sensor-MeasurementInformation-r13 */ typedef struct Sensor_MeasurementInformation_r13 { - UTCTime_t *measurementReferenceTime_r13 /* OPTIONAL */; - long *uncompensatedBarometricPressure_r13 /* OPTIONAL */; + UTCTime_t *measurementReferenceTime_r13; /* OPTIONAL */ + long *uncompensatedBarometricPressure_r13; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -41,7 +41,7 @@ typedef struct Sensor_MeasurementInformation_r13 { asn_struct_ctx_t _asn_ctx; } *ext1; struct Sensor_MeasurementInformation_r13__ext2 { - long *adjustment_r16 /* OPTIONAL */; + long *adjustment_r16; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/Sensor-MotionInformation-r15.c b/asn.1/lpp_generated/Sensor-MotionInformation-r15.c new file mode 100644 index 00000000..238cb4ac --- /dev/null +++ b/asn.1/lpp_generated/Sensor-MotionInformation-r15.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Sensor-MotionInformation-r15.h" + +asn_TYPE_member_t asn_MBR_Sensor_MotionInformation_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Sensor_MotionInformation_r15, refTime_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_DisplacementTimeStamp_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "refTime-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct Sensor_MotionInformation_r15, displacementInfoList_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DisplacementInfoList_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "displacementInfoList-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_Sensor_MotionInformation_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Sensor_MotionInformation_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refTime-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* displacementInfoList-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Sensor_MotionInformation_r15_specs_1 = { + sizeof(struct Sensor_MotionInformation_r15), + offsetof(struct Sensor_MotionInformation_r15, _asn_ctx), + asn_MAP_Sensor_MotionInformation_r15_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Sensor_MotionInformation_r15 = { + "Sensor-MotionInformation-r15", + "Sensor-MotionInformation-r15", + &asn_OP_SEQUENCE, + asn_DEF_Sensor_MotionInformation_r15_tags_1, + sizeof(asn_DEF_Sensor_MotionInformation_r15_tags_1) + /sizeof(asn_DEF_Sensor_MotionInformation_r15_tags_1[0]), /* 1 */ + asn_DEF_Sensor_MotionInformation_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_Sensor_MotionInformation_r15_tags_1) + /sizeof(asn_DEF_Sensor_MotionInformation_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Sensor_MotionInformation_r15_1, + 2, /* Elements count */ + &asn_SPC_Sensor_MotionInformation_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Sensor-MotionInformation-r15.h b/asn.1/lpp_generated/Sensor-MotionInformation-r15.h similarity index 81% rename from asn.1/generated/Sensor-MotionInformation-r15.h rename to asn.1/lpp_generated/Sensor-MotionInformation-r15.h index b886b7a3..df9737ec 100644 --- a/asn.1/generated/Sensor-MotionInformation-r15.h +++ b/asn.1/lpp_generated/Sensor-MotionInformation-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Sensor_MotionInformation_r15_H_ diff --git a/asn.1/lpp_generated/Sensor-ProvideAssistanceData-r14.c b/asn.1/lpp_generated/Sensor-ProvideAssistanceData-r14.c new file mode 100644 index 00000000..45717de8 --- /dev/null +++ b/asn.1/lpp_generated/Sensor-ProvideAssistanceData-r14.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Sensor-ProvideAssistanceData-r14.h" + +#include "Sensor-AssistanceDataList-r14.h" +#include "Sensor-Error-r13.h" +asn_TYPE_member_t asn_MBR_Sensor_ProvideAssistanceData_r14_1[] = { + { ATF_POINTER, 2, offsetof(struct Sensor_ProvideAssistanceData_r14, sensor_AssistanceDataList_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Sensor_AssistanceDataList_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensor-AssistanceDataList-r14" + }, + { ATF_POINTER, 1, offsetof(struct Sensor_ProvideAssistanceData_r14, sensor_Error_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_Sensor_Error_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensor-Error-r14" + }, +}; +static const int asn_MAP_Sensor_ProvideAssistanceData_r14_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_Sensor_ProvideAssistanceData_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Sensor_ProvideAssistanceData_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-AssistanceDataList-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* sensor-Error-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Sensor_ProvideAssistanceData_r14_specs_1 = { + sizeof(struct Sensor_ProvideAssistanceData_r14), + offsetof(struct Sensor_ProvideAssistanceData_r14, _asn_ctx), + asn_MAP_Sensor_ProvideAssistanceData_r14_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_Sensor_ProvideAssistanceData_r14_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Sensor_ProvideAssistanceData_r14 = { + "Sensor-ProvideAssistanceData-r14", + "Sensor-ProvideAssistanceData-r14", + &asn_OP_SEQUENCE, + asn_DEF_Sensor_ProvideAssistanceData_r14_tags_1, + sizeof(asn_DEF_Sensor_ProvideAssistanceData_r14_tags_1) + /sizeof(asn_DEF_Sensor_ProvideAssistanceData_r14_tags_1[0]), /* 1 */ + asn_DEF_Sensor_ProvideAssistanceData_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_Sensor_ProvideAssistanceData_r14_tags_1) + /sizeof(asn_DEF_Sensor_ProvideAssistanceData_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Sensor_ProvideAssistanceData_r14_1, + 2, /* Elements count */ + &asn_SPC_Sensor_ProvideAssistanceData_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Sensor-ProvideAssistanceData-r14.h b/asn.1/lpp_generated/Sensor-ProvideAssistanceData-r14.h similarity index 75% rename from asn.1/generated/Sensor-ProvideAssistanceData-r14.h rename to asn.1/lpp_generated/Sensor-ProvideAssistanceData-r14.h index f07abab6..91d73b8b 100644 --- a/asn.1/generated/Sensor-ProvideAssistanceData-r14.h +++ b/asn.1/lpp_generated/Sensor-ProvideAssistanceData-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Sensor_ProvideAssistanceData_r14_H_ @@ -24,8 +24,8 @@ struct Sensor_Error_r13; /* Sensor-ProvideAssistanceData-r14 */ typedef struct Sensor_ProvideAssistanceData_r14 { - struct Sensor_AssistanceDataList_r14 *sensor_AssistanceDataList_r14 /* OPTIONAL */; - struct Sensor_Error_r13 *sensor_Error_r14 /* OPTIONAL */; + struct Sensor_AssistanceDataList_r14 *sensor_AssistanceDataList_r14; /* OPTIONAL */ + struct Sensor_Error_r13 *sensor_Error_r14; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -44,9 +44,5 @@ extern asn_TYPE_member_t asn_MBR_Sensor_ProvideAssistanceData_r14_1[2]; } #endif -/* Referred external types */ -#include "Sensor-AssistanceDataList-r14.h" -#include "Sensor-Error-r13.h" - #endif /* _Sensor_ProvideAssistanceData_r14_H_ */ #include diff --git a/asn.1/lpp_generated/Sensor-ProvideCapabilities-r13.c b/asn.1/lpp_generated/Sensor-ProvideCapabilities-r13.c new file mode 100644 index 00000000..40b93a32 --- /dev/null +++ b/asn.1/lpp_generated/Sensor-ProvideCapabilities-r13.c @@ -0,0 +1,623 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Sensor-ProvideCapabilities-r13.h" + +#include "Sensor-AssistanceDataSupportList-r14.h" +#include "PositioningModes.h" +#include "ScheduledLocationTimeSupportPerMode-r17.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_sensor_Modes_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_idleStateForMeasurements_r14_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_sensor_MotionInformationSup_r15_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_adjustmentSupported_r16_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sensor_Modes_r13_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_idleStateForMeasurements_r14_value2enum_10[] = { + { 0, 8, "required" } +}; +static const unsigned int asn_MAP_idleStateForMeasurements_r14_enum2value_10[] = { + 0 /* required(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_idleStateForMeasurements_r14_specs_10 = { + asn_MAP_idleStateForMeasurements_r14_value2enum_10, /* "tag" => N; sorted by tag */ + asn_MAP_idleStateForMeasurements_r14_enum2value_10, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_idleStateForMeasurements_r14_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_idleStateForMeasurements_r14_10 = { + "idleStateForMeasurements-r14", + "idleStateForMeasurements-r14", + &asn_OP_NativeEnumerated, + asn_DEF_idleStateForMeasurements_r14_tags_10, + sizeof(asn_DEF_idleStateForMeasurements_r14_tags_10) + /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_10[0]) - 1, /* 1 */ + asn_DEF_idleStateForMeasurements_r14_tags_10, /* Same as above */ + sizeof(asn_DEF_idleStateForMeasurements_r14_tags_10) + /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_idleStateForMeasurements_r14_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_idleStateForMeasurements_r14_specs_10 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 3, offsetof(struct Sensor_ProvideCapabilities_r13__ext1, sensor_AssistanceDataSupportList_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Sensor_AssistanceDataSupportList_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensor-AssistanceDataSupportList-r14" + }, + { ATF_POINTER, 2, offsetof(struct Sensor_ProvideCapabilities_r13__ext1, periodicalReportingSupported_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningModes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "periodicalReportingSupported-r14" + }, + { ATF_POINTER, 1, offsetof(struct Sensor_ProvideCapabilities_r13__ext1, idleStateForMeasurements_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_idleStateForMeasurements_r14_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "idleStateForMeasurements-r14" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-AssistanceDataSupportList-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* periodicalReportingSupported-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* idleStateForMeasurements-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct Sensor_ProvideCapabilities_r13__ext1), + offsetof(struct Sensor_ProvideCapabilities_r13__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 3, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 3, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_sensor_MotionInformationSup_r15_value2enum_13[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_sensor_MotionInformationSup_r15_enum2value_13[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_sensor_MotionInformationSup_r15_specs_13 = { + asn_MAP_sensor_MotionInformationSup_r15_value2enum_13, /* "tag" => N; sorted by tag */ + asn_MAP_sensor_MotionInformationSup_r15_enum2value_13, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_sensor_MotionInformationSup_r15_tags_13[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_sensor_MotionInformationSup_r15_13 = { + "sensor-MotionInformationSup-r15", + "sensor-MotionInformationSup-r15", + &asn_OP_NativeEnumerated, + asn_DEF_sensor_MotionInformationSup_r15_tags_13, + sizeof(asn_DEF_sensor_MotionInformationSup_r15_tags_13) + /sizeof(asn_DEF_sensor_MotionInformationSup_r15_tags_13[0]) - 1, /* 1 */ + asn_DEF_sensor_MotionInformationSup_r15_tags_13, /* Same as above */ + sizeof(asn_DEF_sensor_MotionInformationSup_r15_tags_13) + /sizeof(asn_DEF_sensor_MotionInformationSup_r15_tags_13[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_sensor_MotionInformationSup_r15_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_sensor_MotionInformationSup_r15_specs_13 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_12[] = { + { ATF_POINTER, 1, offsetof(struct Sensor_ProvideCapabilities_r13__ext2, sensor_MotionInformationSup_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_sensor_MotionInformationSup_r15_13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensor-MotionInformationSup-r15" + }, +}; +static const int asn_MAP_ext2_oms_12[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_12[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* sensor-MotionInformationSup-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_12 = { + sizeof(struct Sensor_ProvideCapabilities_r13__ext2), + offsetof(struct Sensor_ProvideCapabilities_r13__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_12, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_12, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_12 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_12, + sizeof(asn_DEF_ext2_tags_12) + /sizeof(asn_DEF_ext2_tags_12[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_12, /* Same as above */ + sizeof(asn_DEF_ext2_tags_12) + /sizeof(asn_DEF_ext2_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_12, + 1, /* Elements count */ + &asn_SPC_ext2_specs_12 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_adjustmentSupported_r16_value2enum_16[] = { + { 0, 4, "true" } +}; +static const unsigned int asn_MAP_adjustmentSupported_r16_enum2value_16[] = { + 0 /* true(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_adjustmentSupported_r16_specs_16 = { + asn_MAP_adjustmentSupported_r16_value2enum_16, /* "tag" => N; sorted by tag */ + asn_MAP_adjustmentSupported_r16_enum2value_16, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_adjustmentSupported_r16_tags_16[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_adjustmentSupported_r16_16 = { + "adjustmentSupported-r16", + "adjustmentSupported-r16", + &asn_OP_NativeEnumerated, + asn_DEF_adjustmentSupported_r16_tags_16, + sizeof(asn_DEF_adjustmentSupported_r16_tags_16) + /sizeof(asn_DEF_adjustmentSupported_r16_tags_16[0]) - 1, /* 1 */ + asn_DEF_adjustmentSupported_r16_tags_16, /* Same as above */ + sizeof(asn_DEF_adjustmentSupported_r16_tags_16) + /sizeof(asn_DEF_adjustmentSupported_r16_tags_16[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_adjustmentSupported_r16_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_adjustmentSupported_r16_specs_16 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_15[] = { + { ATF_POINTER, 1, offsetof(struct Sensor_ProvideCapabilities_r13__ext3, adjustmentSupported_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_adjustmentSupported_r16_16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "adjustmentSupported-r16" + }, +}; +static const int asn_MAP_ext3_oms_15[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_15[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* adjustmentSupported-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_15 = { + sizeof(struct Sensor_ProvideCapabilities_r13__ext3), + offsetof(struct Sensor_ProvideCapabilities_r13__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_15, + 1, /* Count of tags in the map */ + asn_MAP_ext3_oms_15, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_15 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_15, + sizeof(asn_DEF_ext3_tags_15) + /sizeof(asn_DEF_ext3_tags_15[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_15, /* Same as above */ + sizeof(asn_DEF_ext3_tags_15) + /sizeof(asn_DEF_ext3_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_15, + 1, /* Elements count */ + &asn_SPC_ext3_specs_15 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext4_18[] = { + { ATF_POINTER, 1, offsetof(struct Sensor_ProvideCapabilities_r13__ext4, scheduledLocationRequestSupported_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ScheduledLocationTimeSupportPerMode_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scheduledLocationRequestSupported-r17" + }, +}; +static const int asn_MAP_ext4_oms_18[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext4_tags_18[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext4_tag2el_18[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* scheduledLocationRequestSupported-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext4_specs_18 = { + sizeof(struct Sensor_ProvideCapabilities_r13__ext4), + offsetof(struct Sensor_ProvideCapabilities_r13__ext4, _asn_ctx), + asn_MAP_ext4_tag2el_18, + 1, /* Count of tags in the map */ + asn_MAP_ext4_oms_18, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext4_18 = { + "ext4", + "ext4", + &asn_OP_SEQUENCE, + asn_DEF_ext4_tags_18, + sizeof(asn_DEF_ext4_tags_18) + /sizeof(asn_DEF_ext4_tags_18[0]) - 1, /* 1 */ + asn_DEF_ext4_tags_18, /* Same as above */ + sizeof(asn_DEF_ext4_tags_18) + /sizeof(asn_DEF_ext4_tags_18[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext4_18, + 1, /* Elements count */ + &asn_SPC_ext4_specs_18 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_Sensor_ProvideCapabilities_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Sensor_ProvideCapabilities_r13, sensor_Modes_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sensor_Modes_r13_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sensor_Modes_r13_constraint_1 + }, + 0, 0, /* No default value */ + "sensor-Modes-r13" + }, + { ATF_POINTER, 4, offsetof(struct Sensor_ProvideCapabilities_r13, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 3, offsetof(struct Sensor_ProvideCapabilities_r13, ext2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext2_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 2, offsetof(struct Sensor_ProvideCapabilities_r13, ext3), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext3_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, + { ATF_POINTER, 1, offsetof(struct Sensor_ProvideCapabilities_r13, ext4), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + 0, + &asn_DEF_ext4_18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext4" + }, +}; +static const int asn_MAP_Sensor_ProvideCapabilities_r13_oms_1[] = { 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_Sensor_ProvideCapabilities_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Sensor_ProvideCapabilities_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-Modes-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ext3 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext4 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Sensor_ProvideCapabilities_r13_specs_1 = { + sizeof(struct Sensor_ProvideCapabilities_r13), + offsetof(struct Sensor_ProvideCapabilities_r13, _asn_ctx), + asn_MAP_Sensor_ProvideCapabilities_r13_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_Sensor_ProvideCapabilities_r13_oms_1, /* Optional members */ + 0, 4, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Sensor_ProvideCapabilities_r13 = { + "Sensor-ProvideCapabilities-r13", + "Sensor-ProvideCapabilities-r13", + &asn_OP_SEQUENCE, + asn_DEF_Sensor_ProvideCapabilities_r13_tags_1, + sizeof(asn_DEF_Sensor_ProvideCapabilities_r13_tags_1) + /sizeof(asn_DEF_Sensor_ProvideCapabilities_r13_tags_1[0]), /* 1 */ + asn_DEF_Sensor_ProvideCapabilities_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_Sensor_ProvideCapabilities_r13_tags_1) + /sizeof(asn_DEF_Sensor_ProvideCapabilities_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Sensor_ProvideCapabilities_r13_1, + 5, /* Elements count */ + &asn_SPC_Sensor_ProvideCapabilities_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Sensor-ProvideCapabilities-r13.h b/asn.1/lpp_generated/Sensor-ProvideCapabilities-r13.h similarity index 78% rename from asn.1/generated/Sensor-ProvideCapabilities-r13.h rename to asn.1/lpp_generated/Sensor-ProvideCapabilities-r13.h index 76640d19..137c3b15 100644 --- a/asn.1/generated/Sensor-ProvideCapabilities-r13.h +++ b/asn.1/lpp_generated/Sensor-ProvideCapabilities-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Sensor_ProvideCapabilities_r13_H_ @@ -39,6 +39,7 @@ typedef enum Sensor_ProvideCapabilities_r13__ext3__adjustmentSupported_r16 { /* Forward declarations */ struct Sensor_AssistanceDataSupportList_r14; struct PositioningModes; +struct ScheduledLocationTimeSupportPerMode_r17; /* Sensor-ProvideCapabilities-r13 */ typedef struct Sensor_ProvideCapabilities_r13 { @@ -48,25 +49,31 @@ typedef struct Sensor_ProvideCapabilities_r13 { * possible extensions are below. */ struct Sensor_ProvideCapabilities_r13__ext1 { - struct Sensor_AssistanceDataSupportList_r14 *sensor_AssistanceDataSupportList_r14 /* OPTIONAL */; - struct PositioningModes *periodicalReportingSupported_r14 /* OPTIONAL */; - long *idleStateForMeasurements_r14 /* OPTIONAL */; + struct Sensor_AssistanceDataSupportList_r14 *sensor_AssistanceDataSupportList_r14; /* OPTIONAL */ + struct PositioningModes *periodicalReportingSupported_r14; /* OPTIONAL */ + long *idleStateForMeasurements_r14; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *ext1; struct Sensor_ProvideCapabilities_r13__ext2 { - long *sensor_MotionInformationSup_r15 /* OPTIONAL */; + long *sensor_MotionInformationSup_r15; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *ext2; struct Sensor_ProvideCapabilities_r13__ext3 { - long *adjustmentSupported_r16 /* OPTIONAL */; + long *adjustmentSupported_r16; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *ext3; + struct Sensor_ProvideCapabilities_r13__ext4 { + struct ScheduledLocationTimeSupportPerMode_r17 *scheduledLocationRequestSupported_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext4; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -78,15 +85,11 @@ typedef struct Sensor_ProvideCapabilities_r13 { /* extern asn_TYPE_descriptor_t asn_DEF_adjustmentSupported_r16_16; // (Use -fall-defs-global to expose) */ extern asn_TYPE_descriptor_t asn_DEF_Sensor_ProvideCapabilities_r13; extern asn_SEQUENCE_specifics_t asn_SPC_Sensor_ProvideCapabilities_r13_specs_1; -extern asn_TYPE_member_t asn_MBR_Sensor_ProvideCapabilities_r13_1[4]; +extern asn_TYPE_member_t asn_MBR_Sensor_ProvideCapabilities_r13_1[5]; #ifdef __cplusplus } #endif -/* Referred external types */ -#include "Sensor-AssistanceDataSupportList-r14.h" -#include "PositioningModes.h" - #endif /* _Sensor_ProvideCapabilities_r13_H_ */ #include diff --git a/asn.1/lpp_generated/Sensor-ProvideLocationInformation-r13.c b/asn.1/lpp_generated/Sensor-ProvideLocationInformation-r13.c new file mode 100644 index 00000000..6cc75af8 --- /dev/null +++ b/asn.1/lpp_generated/Sensor-ProvideLocationInformation-r13.c @@ -0,0 +1,168 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Sensor-ProvideLocationInformation-r13.h" + +#include "Sensor-MeasurementInformation-r13.h" +#include "Sensor-Error-r13.h" +#include "Sensor-MotionInformation-r15.h" +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_POINTER, 1, offsetof(struct Sensor_ProvideLocationInformation_r13__ext1, sensor_MotionInformation_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Sensor_MotionInformation_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensor-MotionInformation-r15" + }, +}; +static const int asn_MAP_ext1_oms_5[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* sensor-MotionInformation-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct Sensor_ProvideLocationInformation_r13__ext1), + offsetof(struct Sensor_ProvideLocationInformation_r13__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_5, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 1, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_Sensor_ProvideLocationInformation_r13_1[] = { + { ATF_POINTER, 3, offsetof(struct Sensor_ProvideLocationInformation_r13, sensor_MeasurementInformation_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Sensor_MeasurementInformation_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensor-MeasurementInformation-r13" + }, + { ATF_POINTER, 2, offsetof(struct Sensor_ProvideLocationInformation_r13, sensor_Error_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_Sensor_Error_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensor-Error-r13" + }, + { ATF_POINTER, 1, offsetof(struct Sensor_ProvideLocationInformation_r13, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_Sensor_ProvideLocationInformation_r13_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_Sensor_ProvideLocationInformation_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Sensor_ProvideLocationInformation_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensor-MeasurementInformation-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sensor-Error-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Sensor_ProvideLocationInformation_r13_specs_1 = { + sizeof(struct Sensor_ProvideLocationInformation_r13), + offsetof(struct Sensor_ProvideLocationInformation_r13, _asn_ctx), + asn_MAP_Sensor_ProvideLocationInformation_r13_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_Sensor_ProvideLocationInformation_r13_oms_1, /* Optional members */ + 2, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Sensor_ProvideLocationInformation_r13 = { + "Sensor-ProvideLocationInformation-r13", + "Sensor-ProvideLocationInformation-r13", + &asn_OP_SEQUENCE, + asn_DEF_Sensor_ProvideLocationInformation_r13_tags_1, + sizeof(asn_DEF_Sensor_ProvideLocationInformation_r13_tags_1) + /sizeof(asn_DEF_Sensor_ProvideLocationInformation_r13_tags_1[0]), /* 1 */ + asn_DEF_Sensor_ProvideLocationInformation_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_Sensor_ProvideLocationInformation_r13_tags_1) + /sizeof(asn_DEF_Sensor_ProvideLocationInformation_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Sensor_ProvideLocationInformation_r13_1, + 3, /* Elements count */ + &asn_SPC_Sensor_ProvideLocationInformation_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Sensor-ProvideLocationInformation-r13.h b/asn.1/lpp_generated/Sensor-ProvideLocationInformation-r13.h similarity index 76% rename from asn.1/generated/Sensor-ProvideLocationInformation-r13.h rename to asn.1/lpp_generated/Sensor-ProvideLocationInformation-r13.h index 191a0632..b77076a3 100644 --- a/asn.1/generated/Sensor-ProvideLocationInformation-r13.h +++ b/asn.1/lpp_generated/Sensor-ProvideLocationInformation-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Sensor_ProvideLocationInformation_r13_H_ @@ -25,14 +25,14 @@ struct Sensor_MotionInformation_r15; /* Sensor-ProvideLocationInformation-r13 */ typedef struct Sensor_ProvideLocationInformation_r13 { - struct Sensor_MeasurementInformation_r13 *sensor_MeasurementInformation_r13 /* OPTIONAL */; - struct Sensor_Error_r13 *sensor_Error_r13 /* OPTIONAL */; + struct Sensor_MeasurementInformation_r13 *sensor_MeasurementInformation_r13; /* OPTIONAL */ + struct Sensor_Error_r13 *sensor_Error_r13; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. */ struct Sensor_ProvideLocationInformation_r13__ext1 { - struct Sensor_MotionInformation_r15 *sensor_MotionInformation_r15 /* OPTIONAL */; + struct Sensor_MotionInformation_r15 *sensor_MotionInformation_r15; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -51,10 +51,5 @@ extern asn_TYPE_member_t asn_MBR_Sensor_ProvideLocationInformation_r13_1[3]; } #endif -/* Referred external types */ -#include "Sensor-MeasurementInformation-r13.h" -#include "Sensor-Error-r13.h" -#include "Sensor-MotionInformation-r15.h" - #endif /* _Sensor_ProvideLocationInformation_r13_H_ */ #include diff --git a/asn.1/lpp_generated/Sensor-RequestAssistanceData-r14.c b/asn.1/lpp_generated/Sensor-RequestAssistanceData-r14.c new file mode 100644 index 00000000..c0aa6697 --- /dev/null +++ b/asn.1/lpp_generated/Sensor-RequestAssistanceData-r14.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Sensor-RequestAssistanceData-r14.h" + +static const ber_tlv_tag_t asn_DEF_Sensor_RequestAssistanceData_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_Sensor_RequestAssistanceData_r14_specs_1 = { + sizeof(struct Sensor_RequestAssistanceData_r14), + offsetof(struct Sensor_RequestAssistanceData_r14, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Sensor_RequestAssistanceData_r14 = { + "Sensor-RequestAssistanceData-r14", + "Sensor-RequestAssistanceData-r14", + &asn_OP_SEQUENCE, + asn_DEF_Sensor_RequestAssistanceData_r14_tags_1, + sizeof(asn_DEF_Sensor_RequestAssistanceData_r14_tags_1) + /sizeof(asn_DEF_Sensor_RequestAssistanceData_r14_tags_1[0]), /* 1 */ + asn_DEF_Sensor_RequestAssistanceData_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_Sensor_RequestAssistanceData_r14_tags_1) + /sizeof(asn_DEF_Sensor_RequestAssistanceData_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_Sensor_RequestAssistanceData_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Sensor-RequestAssistanceData-r14.h b/asn.1/lpp_generated/Sensor-RequestAssistanceData-r14.h similarity index 78% rename from asn.1/generated/Sensor-RequestAssistanceData-r14.h rename to asn.1/lpp_generated/Sensor-RequestAssistanceData-r14.h index 50cbe271..a6ed18eb 100644 --- a/asn.1/generated/Sensor-RequestAssistanceData-r14.h +++ b/asn.1/lpp_generated/Sensor-RequestAssistanceData-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Sensor_RequestAssistanceData_r14_H_ diff --git a/asn.1/lpp_generated/Sensor-RequestCapabilities-r13.c b/asn.1/lpp_generated/Sensor-RequestCapabilities-r13.c new file mode 100644 index 00000000..b6a0e34f --- /dev/null +++ b/asn.1/lpp_generated/Sensor-RequestCapabilities-r13.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Sensor-RequestCapabilities-r13.h" + +static const ber_tlv_tag_t asn_DEF_Sensor_RequestCapabilities_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_Sensor_RequestCapabilities_r13_specs_1 = { + sizeof(struct Sensor_RequestCapabilities_r13), + offsetof(struct Sensor_RequestCapabilities_r13, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Sensor_RequestCapabilities_r13 = { + "Sensor-RequestCapabilities-r13", + "Sensor-RequestCapabilities-r13", + &asn_OP_SEQUENCE, + asn_DEF_Sensor_RequestCapabilities_r13_tags_1, + sizeof(asn_DEF_Sensor_RequestCapabilities_r13_tags_1) + /sizeof(asn_DEF_Sensor_RequestCapabilities_r13_tags_1[0]), /* 1 */ + asn_DEF_Sensor_RequestCapabilities_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_Sensor_RequestCapabilities_r13_tags_1) + /sizeof(asn_DEF_Sensor_RequestCapabilities_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_Sensor_RequestCapabilities_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Sensor-RequestCapabilities-r13.h b/asn.1/lpp_generated/Sensor-RequestCapabilities-r13.h similarity index 77% rename from asn.1/generated/Sensor-RequestCapabilities-r13.h rename to asn.1/lpp_generated/Sensor-RequestCapabilities-r13.h index 2adb3265..29d1bc6a 100644 --- a/asn.1/generated/Sensor-RequestCapabilities-r13.h +++ b/asn.1/lpp_generated/Sensor-RequestCapabilities-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Sensor_RequestCapabilities_r13_H_ diff --git a/asn.1/lpp_generated/Sensor-RequestLocationInformation-r13.c b/asn.1/lpp_generated/Sensor-RequestLocationInformation-r13.c new file mode 100644 index 00000000..31d58a4b --- /dev/null +++ b/asn.1/lpp_generated/Sensor-RequestLocationInformation-r13.c @@ -0,0 +1,305 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Sensor-RequestLocationInformation-r13.h" + +static asn_TYPE_member_t asn_MBR_ext1_4[] = { + { ATF_POINTER, 1, offsetof(struct Sensor_RequestLocationInformation_r13__ext1, assistanceAvailability_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "assistanceAvailability-r14" + }, +}; +static const int asn_MAP_ext1_oms_4[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* assistanceAvailability-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { + sizeof(struct Sensor_RequestLocationInformation_r13__ext1), + offsetof(struct Sensor_RequestLocationInformation_r13__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_4, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_4, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_4 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_4, + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_4, /* Same as above */ + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_4, + 1, /* Elements count */ + &asn_SPC_ext1_specs_4 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_6[] = { + { ATF_POINTER, 1, offsetof(struct Sensor_RequestLocationInformation_r13__ext2, sensor_MotionInformationReq_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensor-MotionInformationReq-r15" + }, +}; +static const int asn_MAP_ext2_oms_6[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* sensor-MotionInformationReq-r15 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_6 = { + sizeof(struct Sensor_RequestLocationInformation_r13__ext2), + offsetof(struct Sensor_RequestLocationInformation_r13__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_6, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_6, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_6 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_6, + sizeof(asn_DEF_ext2_tags_6) + /sizeof(asn_DEF_ext2_tags_6[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_6, /* Same as above */ + sizeof(asn_DEF_ext2_tags_6) + /sizeof(asn_DEF_ext2_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_6, + 1, /* Elements count */ + &asn_SPC_ext2_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext3_8[] = { + { ATF_POINTER, 1, offsetof(struct Sensor_RequestLocationInformation_r13__ext3, adjustmentReq_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "adjustmentReq-r16" + }, +}; +static const int asn_MAP_ext3_oms_8[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext3_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext3_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* adjustmentReq-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext3_specs_8 = { + sizeof(struct Sensor_RequestLocationInformation_r13__ext3), + offsetof(struct Sensor_RequestLocationInformation_r13__ext3, _asn_ctx), + asn_MAP_ext3_tag2el_8, + 1, /* Count of tags in the map */ + asn_MAP_ext3_oms_8, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext3_8 = { + "ext3", + "ext3", + &asn_OP_SEQUENCE, + asn_DEF_ext3_tags_8, + sizeof(asn_DEF_ext3_tags_8) + /sizeof(asn_DEF_ext3_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext3_tags_8, /* Same as above */ + sizeof(asn_DEF_ext3_tags_8) + /sizeof(asn_DEF_ext3_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext3_8, + 1, /* Elements count */ + &asn_SPC_ext3_specs_8 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_Sensor_RequestLocationInformation_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Sensor_RequestLocationInformation_r13, uncompensatedBarometricPressureReq_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "uncompensatedBarometricPressureReq-r13" + }, + { ATF_POINTER, 3, offsetof(struct Sensor_RequestLocationInformation_r13, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 2, offsetof(struct Sensor_RequestLocationInformation_r13, ext2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext2_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, + { ATF_POINTER, 1, offsetof(struct Sensor_RequestLocationInformation_r13, ext3), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext3_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext3" + }, +}; +static const int asn_MAP_Sensor_RequestLocationInformation_r13_oms_1[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_Sensor_RequestLocationInformation_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Sensor_RequestLocationInformation_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* uncompensatedBarometricPressureReq-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ext2 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext3 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Sensor_RequestLocationInformation_r13_specs_1 = { + sizeof(struct Sensor_RequestLocationInformation_r13), + offsetof(struct Sensor_RequestLocationInformation_r13, _asn_ctx), + asn_MAP_Sensor_RequestLocationInformation_r13_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_Sensor_RequestLocationInformation_r13_oms_1, /* Optional members */ + 0, 3, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Sensor_RequestLocationInformation_r13 = { + "Sensor-RequestLocationInformation-r13", + "Sensor-RequestLocationInformation-r13", + &asn_OP_SEQUENCE, + asn_DEF_Sensor_RequestLocationInformation_r13_tags_1, + sizeof(asn_DEF_Sensor_RequestLocationInformation_r13_tags_1) + /sizeof(asn_DEF_Sensor_RequestLocationInformation_r13_tags_1[0]), /* 1 */ + asn_DEF_Sensor_RequestLocationInformation_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_Sensor_RequestLocationInformation_r13_tags_1) + /sizeof(asn_DEF_Sensor_RequestLocationInformation_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Sensor_RequestLocationInformation_r13_1, + 4, /* Elements count */ + &asn_SPC_Sensor_RequestLocationInformation_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Sensor-RequestLocationInformation-r13.h b/asn.1/lpp_generated/Sensor-RequestLocationInformation-r13.h similarity index 78% rename from asn.1/generated/Sensor-RequestLocationInformation-r13.h rename to asn.1/lpp_generated/Sensor-RequestLocationInformation-r13.h index 57a00483..ebd29880 100644 --- a/asn.1/generated/Sensor-RequestLocationInformation-r13.h +++ b/asn.1/lpp_generated/Sensor-RequestLocationInformation-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Sensor_RequestLocationInformation_r13_H_ @@ -27,19 +27,19 @@ typedef struct Sensor_RequestLocationInformation_r13 { * possible extensions are below. */ struct Sensor_RequestLocationInformation_r13__ext1 { - BOOLEAN_t *assistanceAvailability_r14 /* OPTIONAL */; + BOOLEAN_t *assistanceAvailability_r14; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *ext1; struct Sensor_RequestLocationInformation_r13__ext2 { - BOOLEAN_t *sensor_MotionInformationReq_r15 /* OPTIONAL */; + BOOLEAN_t *sensor_MotionInformationReq_r15; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *ext2; struct Sensor_RequestLocationInformation_r13__ext3 { - BOOLEAN_t *adjustmentReq_r16 /* OPTIONAL */; + BOOLEAN_t *adjustmentReq_r16; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/Sensor-TargetDeviceErrorCauses-r13.c b/asn.1/lpp_generated/Sensor-TargetDeviceErrorCauses-r13.c new file mode 100644 index 00000000..dcbf4fc8 --- /dev/null +++ b/asn.1/lpp_generated/Sensor-TargetDeviceErrorCauses-r13.c @@ -0,0 +1,124 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Sensor-TargetDeviceErrorCauses-r13.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_r13_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_r13_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 27, "assistanceDataMissing-v1420" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_r13_enum2value_2[] = { + 1, /* assistanceDataMissing-v1420(1) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_r13_specs_2 = { + asn_MAP_cause_r13_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_r13_enum2value_2, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_r13_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_r13_2 = { + "cause-r13", + "cause-r13", + &asn_OP_NativeEnumerated, + asn_DEF_cause_r13_tags_2, + sizeof(asn_DEF_cause_r13_tags_2) + /sizeof(asn_DEF_cause_r13_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_r13_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_r13_tags_2) + /sizeof(asn_DEF_cause_r13_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_r13_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_r13_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_Sensor_TargetDeviceErrorCauses_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Sensor_TargetDeviceErrorCauses_r13, cause_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_r13_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause-r13" + }, +}; +static const ber_tlv_tag_t asn_DEF_Sensor_TargetDeviceErrorCauses_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Sensor_TargetDeviceErrorCauses_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause-r13 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Sensor_TargetDeviceErrorCauses_r13_specs_1 = { + sizeof(struct Sensor_TargetDeviceErrorCauses_r13), + offsetof(struct Sensor_TargetDeviceErrorCauses_r13, _asn_ctx), + asn_MAP_Sensor_TargetDeviceErrorCauses_r13_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Sensor_TargetDeviceErrorCauses_r13 = { + "Sensor-TargetDeviceErrorCauses-r13", + "Sensor-TargetDeviceErrorCauses-r13", + &asn_OP_SEQUENCE, + asn_DEF_Sensor_TargetDeviceErrorCauses_r13_tags_1, + sizeof(asn_DEF_Sensor_TargetDeviceErrorCauses_r13_tags_1) + /sizeof(asn_DEF_Sensor_TargetDeviceErrorCauses_r13_tags_1[0]), /* 1 */ + asn_DEF_Sensor_TargetDeviceErrorCauses_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_Sensor_TargetDeviceErrorCauses_r13_tags_1) + /sizeof(asn_DEF_Sensor_TargetDeviceErrorCauses_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Sensor_TargetDeviceErrorCauses_r13_1, + 1, /* Elements count */ + &asn_SPC_Sensor_TargetDeviceErrorCauses_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Sensor-TargetDeviceErrorCauses-r13.h b/asn.1/lpp_generated/Sensor-TargetDeviceErrorCauses-r13.h similarity index 85% rename from asn.1/generated/Sensor-TargetDeviceErrorCauses-r13.h rename to asn.1/lpp_generated/Sensor-TargetDeviceErrorCauses-r13.h index 880d2095..154cbde0 100644 --- a/asn.1/generated/Sensor-TargetDeviceErrorCauses-r13.h +++ b/asn.1/lpp_generated/Sensor-TargetDeviceErrorCauses-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Sensor_TargetDeviceErrorCauses_r13_H_ diff --git a/asn.1/lpp_generated/SequenceNumber.c b/asn.1/lpp_generated/SequenceNumber.c new file mode 100644 index 00000000..22b05779 --- /dev/null +++ b/asn.1/lpp_generated/SequenceNumber.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SequenceNumber.h" + +int +SequenceNumber_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SequenceNumber_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_SequenceNumber_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SequenceNumber = { + "SequenceNumber", + "SequenceNumber", + &asn_OP_NativeInteger, + asn_DEF_SequenceNumber_tags_1, + sizeof(asn_DEF_SequenceNumber_tags_1) + /sizeof(asn_DEF_SequenceNumber_tags_1[0]), /* 1 */ + asn_DEF_SequenceNumber_tags_1, /* Same as above */ + sizeof(asn_DEF_SequenceNumber_tags_1) + /sizeof(asn_DEF_SequenceNumber_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SequenceNumber_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SequenceNumber_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/lpp_generated/SequenceNumber.h b/asn.1/lpp_generated/SequenceNumber.h new file mode 100644 index 00000000..a1de14cc --- /dev/null +++ b/asn.1/lpp_generated/SequenceNumber.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SequenceNumber_H_ +#define _SequenceNumber_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* SequenceNumber */ +typedef long SequenceNumber_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_SequenceNumber_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_SequenceNumber; +asn_struct_free_f SequenceNumber_free; +asn_constr_check_f SequenceNumber_constraint; +xer_type_decoder_f SequenceNumber_decode_xer; +xer_type_encoder_f SequenceNumber_encode_xer; +jer_type_encoder_f SequenceNumber_encode_jer; +per_type_decoder_f SequenceNumber_decode_uper; +per_type_encoder_f SequenceNumber_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _SequenceNumber_H_ */ +#include diff --git a/asn.1/lpp_generated/SpatialDelta-r18.c b/asn.1/lpp_generated/SpatialDelta-r18.c new file mode 100644 index 00000000..b4571839 --- /dev/null +++ b/asn.1/lpp_generated/SpatialDelta-r18.c @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SpatialDelta-r18.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SpatialDelta_r18_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 8 } /* (0..8) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_SpatialDelta_r18_value2enum_1[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n3" }, + { 3, 2, "n4" }, + { 4, 2, "n5" }, + { 5, 3, "n10" }, + { 6, 3, "n20" }, + { 7, 3, "n50" }, + { 8, 4, "n100" } +}; +static const unsigned int asn_MAP_SpatialDelta_r18_enum2value_1[] = { + 0, /* n1(0) */ + 5, /* n10(5) */ + 8, /* n100(8) */ + 1, /* n2(1) */ + 6, /* n20(6) */ + 2, /* n3(2) */ + 3, /* n4(3) */ + 4, /* n5(4) */ + 7 /* n50(7) */ +}; +const asn_INTEGER_specifics_t asn_SPC_SpatialDelta_r18_specs_1 = { + asn_MAP_SpatialDelta_r18_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_SpatialDelta_r18_enum2value_1, /* N => "tag"; sorted by N */ + 9, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_SpatialDelta_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SpatialDelta_r18 = { + "SpatialDelta-r18", + "SpatialDelta-r18", + &asn_OP_NativeEnumerated, + asn_DEF_SpatialDelta_r18_tags_1, + sizeof(asn_DEF_SpatialDelta_r18_tags_1) + /sizeof(asn_DEF_SpatialDelta_r18_tags_1[0]), /* 1 */ + asn_DEF_SpatialDelta_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_SpatialDelta_r18_tags_1) + /sizeof(asn_DEF_SpatialDelta_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SpatialDelta_r18_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_SpatialDelta_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SpatialDelta-r18.h b/asn.1/lpp_generated/SpatialDelta-r18.h new file mode 100644 index 00000000..c0f06d04 --- /dev/null +++ b/asn.1/lpp_generated/SpatialDelta-r18.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SpatialDelta_r18_H_ +#define _SpatialDelta_r18_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum SpatialDelta_r18 { + SpatialDelta_r18_n1 = 0, + SpatialDelta_r18_n2 = 1, + SpatialDelta_r18_n3 = 2, + SpatialDelta_r18_n4 = 3, + SpatialDelta_r18_n5 = 4, + SpatialDelta_r18_n10 = 5, + SpatialDelta_r18_n20 = 6, + SpatialDelta_r18_n50 = 7, + SpatialDelta_r18_n100 = 8 +} e_SpatialDelta_r18; + +/* SpatialDelta-r18 */ +typedef long SpatialDelta_r18_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_SpatialDelta_r18_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_SpatialDelta_r18; +extern const asn_INTEGER_specifics_t asn_SPC_SpatialDelta_r18_specs_1; +asn_struct_free_f SpatialDelta_r18_free; +asn_constr_check_f SpatialDelta_r18_constraint; +xer_type_decoder_f SpatialDelta_r18_decode_xer; +xer_type_encoder_f SpatialDelta_r18_encode_xer; +jer_type_encoder_f SpatialDelta_r18_encode_jer; +per_type_decoder_f SpatialDelta_r18_decode_uper; +per_type_encoder_f SpatialDelta_r18_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _SpatialDelta_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/SpatialRelationsSRS-Pos-r16.c b/asn.1/lpp_generated/SpatialRelationsSRS-Pos-r16.c new file mode 100644 index 00000000..5f738a79 --- /dev/null +++ b/asn.1/lpp_generated/SpatialRelationsSRS-Pos-r16.c @@ -0,0 +1,482 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SpatialRelationsSRS-Pos-r16.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_spatialRelation_SRS_PosBasedOnSSB_Serving_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_spatialRelation_SRS_PosBasedOnPRS_Serving_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_spatialRelation_SRS_PosBasedOnSRS_r16_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_spatialRelation_SRS_PosBasedOnSSB_Neigh_r16_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_spatialRelation_SRS_PosBasedOnPRS_Neigh_r16_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_spatialRelation_SRS_PosBasedOnSSB_Serving_r16_value2enum_2[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_spatialRelation_SRS_PosBasedOnSSB_Serving_r16_enum2value_2[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_spatialRelation_SRS_PosBasedOnSSB_Serving_r16_specs_2 = { + asn_MAP_spatialRelation_SRS_PosBasedOnSSB_Serving_r16_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_spatialRelation_SRS_PosBasedOnSSB_Serving_r16_enum2value_2, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Serving_r16_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Serving_r16_2 = { + "spatialRelation-SRS-PosBasedOnSSB-Serving-r16", + "spatialRelation-SRS-PosBasedOnSSB-Serving-r16", + &asn_OP_NativeEnumerated, + asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Serving_r16_tags_2, + sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Serving_r16_tags_2) + /sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Serving_r16_tags_2[0]) - 1, /* 1 */ + asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Serving_r16_tags_2, /* Same as above */ + sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Serving_r16_tags_2) + /sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Serving_r16_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_spatialRelation_SRS_PosBasedOnSSB_Serving_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_spatialRelation_SRS_PosBasedOnSSB_Serving_r16_specs_2 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16_value2enum_4[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16_enum2value_4[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16_specs_4 = { + asn_MAP_spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16_value2enum_4, /* "tag" => N; sorted by tag */ + asn_MAP_spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16_enum2value_4, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16_4 = { + "spatialRelation-SRS-PosBasedOnCSI-RS-Serving-r16", + "spatialRelation-SRS-PosBasedOnCSI-RS-Serving-r16", + &asn_OP_NativeEnumerated, + asn_DEF_spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16_tags_4, + sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16_tags_4) + /sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16_tags_4[0]) - 1, /* 1 */ + asn_DEF_spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16_tags_4, /* Same as above */ + sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16_tags_4) + /sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16_specs_4 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_spatialRelation_SRS_PosBasedOnPRS_Serving_r16_value2enum_6[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_spatialRelation_SRS_PosBasedOnPRS_Serving_r16_enum2value_6[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_spatialRelation_SRS_PosBasedOnPRS_Serving_r16_specs_6 = { + asn_MAP_spatialRelation_SRS_PosBasedOnPRS_Serving_r16_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_spatialRelation_SRS_PosBasedOnPRS_Serving_r16_enum2value_6, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Serving_r16_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Serving_r16_6 = { + "spatialRelation-SRS-PosBasedOnPRS-Serving-r16", + "spatialRelation-SRS-PosBasedOnPRS-Serving-r16", + &asn_OP_NativeEnumerated, + asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Serving_r16_tags_6, + sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Serving_r16_tags_6) + /sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Serving_r16_tags_6[0]) - 1, /* 1 */ + asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Serving_r16_tags_6, /* Same as above */ + sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Serving_r16_tags_6) + /sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Serving_r16_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_spatialRelation_SRS_PosBasedOnPRS_Serving_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_spatialRelation_SRS_PosBasedOnPRS_Serving_r16_specs_6 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_spatialRelation_SRS_PosBasedOnSRS_r16_value2enum_8[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_spatialRelation_SRS_PosBasedOnSRS_r16_enum2value_8[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_spatialRelation_SRS_PosBasedOnSRS_r16_specs_8 = { + asn_MAP_spatialRelation_SRS_PosBasedOnSRS_r16_value2enum_8, /* "tag" => N; sorted by tag */ + asn_MAP_spatialRelation_SRS_PosBasedOnSRS_r16_enum2value_8, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_spatialRelation_SRS_PosBasedOnSRS_r16_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_spatialRelation_SRS_PosBasedOnSRS_r16_8 = { + "spatialRelation-SRS-PosBasedOnSRS-r16", + "spatialRelation-SRS-PosBasedOnSRS-r16", + &asn_OP_NativeEnumerated, + asn_DEF_spatialRelation_SRS_PosBasedOnSRS_r16_tags_8, + sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnSRS_r16_tags_8) + /sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnSRS_r16_tags_8[0]) - 1, /* 1 */ + asn_DEF_spatialRelation_SRS_PosBasedOnSRS_r16_tags_8, /* Same as above */ + sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnSRS_r16_tags_8) + /sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnSRS_r16_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_spatialRelation_SRS_PosBasedOnSRS_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_spatialRelation_SRS_PosBasedOnSRS_r16_specs_8 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_spatialRelation_SRS_PosBasedOnSSB_Neigh_r16_value2enum_10[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_spatialRelation_SRS_PosBasedOnSSB_Neigh_r16_enum2value_10[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_spatialRelation_SRS_PosBasedOnSSB_Neigh_r16_specs_10 = { + asn_MAP_spatialRelation_SRS_PosBasedOnSSB_Neigh_r16_value2enum_10, /* "tag" => N; sorted by tag */ + asn_MAP_spatialRelation_SRS_PosBasedOnSSB_Neigh_r16_enum2value_10, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Neigh_r16_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Neigh_r16_10 = { + "spatialRelation-SRS-PosBasedOnSSB-Neigh-r16", + "spatialRelation-SRS-PosBasedOnSSB-Neigh-r16", + &asn_OP_NativeEnumerated, + asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Neigh_r16_tags_10, + sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Neigh_r16_tags_10) + /sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Neigh_r16_tags_10[0]) - 1, /* 1 */ + asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Neigh_r16_tags_10, /* Same as above */ + sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Neigh_r16_tags_10) + /sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Neigh_r16_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_spatialRelation_SRS_PosBasedOnSSB_Neigh_r16_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_spatialRelation_SRS_PosBasedOnSSB_Neigh_r16_specs_10 /* Additional specs */ +}; + +static const asn_INTEGER_enum_map_t asn_MAP_spatialRelation_SRS_PosBasedOnPRS_Neigh_r16_value2enum_12[] = { + { 0, 9, "supported" } +}; +static const unsigned int asn_MAP_spatialRelation_SRS_PosBasedOnPRS_Neigh_r16_enum2value_12[] = { + 0 /* supported(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_spatialRelation_SRS_PosBasedOnPRS_Neigh_r16_specs_12 = { + asn_MAP_spatialRelation_SRS_PosBasedOnPRS_Neigh_r16_value2enum_12, /* "tag" => N; sorted by tag */ + asn_MAP_spatialRelation_SRS_PosBasedOnPRS_Neigh_r16_enum2value_12, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Neigh_r16_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Neigh_r16_12 = { + "spatialRelation-SRS-PosBasedOnPRS-Neigh-r16", + "spatialRelation-SRS-PosBasedOnPRS-Neigh-r16", + &asn_OP_NativeEnumerated, + asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Neigh_r16_tags_12, + sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Neigh_r16_tags_12) + /sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Neigh_r16_tags_12[0]) - 1, /* 1 */ + asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Neigh_r16_tags_12, /* Same as above */ + sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Neigh_r16_tags_12) + /sizeof(asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Neigh_r16_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_spatialRelation_SRS_PosBasedOnPRS_Neigh_r16_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_spatialRelation_SRS_PosBasedOnPRS_Neigh_r16_specs_12 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_SpatialRelationsSRS_Pos_r16_1[] = { + { ATF_POINTER, 6, offsetof(struct SpatialRelationsSRS_Pos_r16, spatialRelation_SRS_PosBasedOnSSB_Serving_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Serving_r16_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spatialRelation-SRS-PosBasedOnSSB-Serving-r16" + }, + { ATF_POINTER, 5, offsetof(struct SpatialRelationsSRS_Pos_r16, spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spatialRelation-SRS-PosBasedOnCSI-RS-Serving-r16" + }, + { ATF_POINTER, 4, offsetof(struct SpatialRelationsSRS_Pos_r16, spatialRelation_SRS_PosBasedOnPRS_Serving_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Serving_r16_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spatialRelation-SRS-PosBasedOnPRS-Serving-r16" + }, + { ATF_POINTER, 3, offsetof(struct SpatialRelationsSRS_Pos_r16, spatialRelation_SRS_PosBasedOnSRS_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_spatialRelation_SRS_PosBasedOnSRS_r16_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spatialRelation-SRS-PosBasedOnSRS-r16" + }, + { ATF_POINTER, 2, offsetof(struct SpatialRelationsSRS_Pos_r16, spatialRelation_SRS_PosBasedOnSSB_Neigh_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Neigh_r16_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spatialRelation-SRS-PosBasedOnSSB-Neigh-r16" + }, + { ATF_POINTER, 1, offsetof(struct SpatialRelationsSRS_Pos_r16, spatialRelation_SRS_PosBasedOnPRS_Neigh_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Neigh_r16_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "spatialRelation-SRS-PosBasedOnPRS-Neigh-r16" + }, +}; +static const int asn_MAP_SpatialRelationsSRS_Pos_r16_oms_1[] = { 0, 1, 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_SpatialRelationsSRS_Pos_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SpatialRelationsSRS_Pos_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* spatialRelation-SRS-PosBasedOnSSB-Serving-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* spatialRelation-SRS-PosBasedOnCSI-RS-Serving-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* spatialRelation-SRS-PosBasedOnPRS-Serving-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* spatialRelation-SRS-PosBasedOnSRS-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* spatialRelation-SRS-PosBasedOnSSB-Neigh-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* spatialRelation-SRS-PosBasedOnPRS-Neigh-r16 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SpatialRelationsSRS_Pos_r16_specs_1 = { + sizeof(struct SpatialRelationsSRS_Pos_r16), + offsetof(struct SpatialRelationsSRS_Pos_r16, _asn_ctx), + asn_MAP_SpatialRelationsSRS_Pos_r16_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_SpatialRelationsSRS_Pos_r16_oms_1, /* Optional members */ + 6, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SpatialRelationsSRS_Pos_r16 = { + "SpatialRelationsSRS-Pos-r16", + "SpatialRelationsSRS-Pos-r16", + &asn_OP_SEQUENCE, + asn_DEF_SpatialRelationsSRS_Pos_r16_tags_1, + sizeof(asn_DEF_SpatialRelationsSRS_Pos_r16_tags_1) + /sizeof(asn_DEF_SpatialRelationsSRS_Pos_r16_tags_1[0]), /* 1 */ + asn_DEF_SpatialRelationsSRS_Pos_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_SpatialRelationsSRS_Pos_r16_tags_1) + /sizeof(asn_DEF_SpatialRelationsSRS_Pos_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SpatialRelationsSRS_Pos_r16_1, + 6, /* Elements count */ + &asn_SPC_SpatialRelationsSRS_Pos_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SpatialRelationsSRS-Pos-r16.h b/asn.1/lpp_generated/SpatialRelationsSRS-Pos-r16.h new file mode 100644 index 00000000..5482a492 --- /dev/null +++ b/asn.1/lpp_generated/SpatialRelationsSRS-Pos-r16.h @@ -0,0 +1,75 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SpatialRelationsSRS_Pos_r16_H_ +#define _SpatialRelationsSRS_Pos_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum SpatialRelationsSRS_Pos_r16__spatialRelation_SRS_PosBasedOnSSB_Serving_r16 { + SpatialRelationsSRS_Pos_r16__spatialRelation_SRS_PosBasedOnSSB_Serving_r16_supported = 0 +} e_SpatialRelationsSRS_Pos_r16__spatialRelation_SRS_PosBasedOnSSB_Serving_r16; +typedef enum SpatialRelationsSRS_Pos_r16__spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16 { + SpatialRelationsSRS_Pos_r16__spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16_supported = 0 +} e_SpatialRelationsSRS_Pos_r16__spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16; +typedef enum SpatialRelationsSRS_Pos_r16__spatialRelation_SRS_PosBasedOnPRS_Serving_r16 { + SpatialRelationsSRS_Pos_r16__spatialRelation_SRS_PosBasedOnPRS_Serving_r16_supported = 0 +} e_SpatialRelationsSRS_Pos_r16__spatialRelation_SRS_PosBasedOnPRS_Serving_r16; +typedef enum SpatialRelationsSRS_Pos_r16__spatialRelation_SRS_PosBasedOnSRS_r16 { + SpatialRelationsSRS_Pos_r16__spatialRelation_SRS_PosBasedOnSRS_r16_supported = 0 +} e_SpatialRelationsSRS_Pos_r16__spatialRelation_SRS_PosBasedOnSRS_r16; +typedef enum SpatialRelationsSRS_Pos_r16__spatialRelation_SRS_PosBasedOnSSB_Neigh_r16 { + SpatialRelationsSRS_Pos_r16__spatialRelation_SRS_PosBasedOnSSB_Neigh_r16_supported = 0 +} e_SpatialRelationsSRS_Pos_r16__spatialRelation_SRS_PosBasedOnSSB_Neigh_r16; +typedef enum SpatialRelationsSRS_Pos_r16__spatialRelation_SRS_PosBasedOnPRS_Neigh_r16 { + SpatialRelationsSRS_Pos_r16__spatialRelation_SRS_PosBasedOnPRS_Neigh_r16_supported = 0 +} e_SpatialRelationsSRS_Pos_r16__spatialRelation_SRS_PosBasedOnPRS_Neigh_r16; + +/* SpatialRelationsSRS-Pos-r16 */ +typedef struct SpatialRelationsSRS_Pos_r16 { + long *spatialRelation_SRS_PosBasedOnSSB_Serving_r16; /* OPTIONAL */ + long *spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16; /* OPTIONAL */ + long *spatialRelation_SRS_PosBasedOnPRS_Serving_r16; /* OPTIONAL */ + long *spatialRelation_SRS_PosBasedOnSRS_r16; /* OPTIONAL */ + long *spatialRelation_SRS_PosBasedOnSSB_Neigh_r16; /* OPTIONAL */ + long *spatialRelation_SRS_PosBasedOnPRS_Neigh_r16; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SpatialRelationsSRS_Pos_r16_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Serving_r16_2; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_spatialRelation_SRS_PosBasedOnCSI_RS_Serving_r16_4; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Serving_r16_6; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_spatialRelation_SRS_PosBasedOnSRS_r16_8; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_spatialRelation_SRS_PosBasedOnSSB_Neigh_r16_10; // (Use -fall-defs-global to expose) */ +/* extern asn_TYPE_descriptor_t asn_DEF_spatialRelation_SRS_PosBasedOnPRS_Neigh_r16_12; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_SpatialRelationsSRS_Pos_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_SpatialRelationsSRS_Pos_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_SpatialRelationsSRS_Pos_r16_1[6]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SpatialRelationsSRS_Pos_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/StandardClockModelElement.c b/asn.1/lpp_generated/StandardClockModelElement.c new file mode 100644 index 00000000..34471996 --- /dev/null +++ b/asn.1/lpp_generated/StandardClockModelElement.c @@ -0,0 +1,400 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "StandardClockModelElement.h" + +static int +memb_stanClockToc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stanClockAF2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32L && value <= 31L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stanClockAF1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1048576L && value <= 1048575L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stanClockAF0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1073741824L && value <= 1073741823L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stanClockTgd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -512L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sisa_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stanModelID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stanClockToc_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stanClockAF2_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, -32, 31 } /* (-32..31) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stanClockAF1_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stanClockAF0_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 31, -1, -1073741824, 1073741823 } /* (-1073741824..1073741823) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stanClockTgd_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sisa_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stanModelID_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_StandardClockModelElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct StandardClockModelElement, stanClockToc), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stanClockToc_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stanClockToc_constraint_1 + }, + 0, 0, /* No default value */ + "stanClockToc" + }, + { ATF_NOFLAGS, 0, offsetof(struct StandardClockModelElement, stanClockAF2), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stanClockAF2_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stanClockAF2_constraint_1 + }, + 0, 0, /* No default value */ + "stanClockAF2" + }, + { ATF_NOFLAGS, 0, offsetof(struct StandardClockModelElement, stanClockAF1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stanClockAF1_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stanClockAF1_constraint_1 + }, + 0, 0, /* No default value */ + "stanClockAF1" + }, + { ATF_NOFLAGS, 0, offsetof(struct StandardClockModelElement, stanClockAF0), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stanClockAF0_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stanClockAF0_constraint_1 + }, + 0, 0, /* No default value */ + "stanClockAF0" + }, + { ATF_POINTER, 1, offsetof(struct StandardClockModelElement, stanClockTgd), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stanClockTgd_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stanClockTgd_constraint_1 + }, + 0, 0, /* No default value */ + "stanClockTgd" + }, + { ATF_NOFLAGS, 0, offsetof(struct StandardClockModelElement, sisa), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sisa_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sisa_constraint_1 + }, + 0, 0, /* No default value */ + "sisa" + }, + { ATF_POINTER, 1, offsetof(struct StandardClockModelElement, stanModelID), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stanModelID_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stanModelID_constraint_1 + }, + 0, 0, /* No default value */ + "stanModelID" + }, +}; +static const int asn_MAP_StandardClockModelElement_oms_1[] = { 4, 6 }; +static const ber_tlv_tag_t asn_DEF_StandardClockModelElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_StandardClockModelElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* stanClockToc */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* stanClockAF2 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* stanClockAF1 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* stanClockAF0 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* stanClockTgd */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* sisa */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* stanModelID */ +}; +asn_SEQUENCE_specifics_t asn_SPC_StandardClockModelElement_specs_1 = { + sizeof(struct StandardClockModelElement), + offsetof(struct StandardClockModelElement, _asn_ctx), + asn_MAP_StandardClockModelElement_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_StandardClockModelElement_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_StandardClockModelElement = { + "StandardClockModelElement", + "StandardClockModelElement", + &asn_OP_SEQUENCE, + asn_DEF_StandardClockModelElement_tags_1, + sizeof(asn_DEF_StandardClockModelElement_tags_1) + /sizeof(asn_DEF_StandardClockModelElement_tags_1[0]), /* 1 */ + asn_DEF_StandardClockModelElement_tags_1, /* Same as above */ + sizeof(asn_DEF_StandardClockModelElement_tags_1) + /sizeof(asn_DEF_StandardClockModelElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_StandardClockModelElement_1, + 7, /* Elements count */ + &asn_SPC_StandardClockModelElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/StandardClockModelElement.h b/asn.1/lpp_generated/StandardClockModelElement.h similarity index 76% rename from asn.1/generated/StandardClockModelElement.h rename to asn.1/lpp_generated/StandardClockModelElement.h index 91e90f7c..8818a582 100644 --- a/asn.1/generated/StandardClockModelElement.h +++ b/asn.1/lpp_generated/StandardClockModelElement.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _StandardClockModelElement_H_ @@ -25,9 +25,9 @@ typedef struct StandardClockModelElement { long stanClockAF2; long stanClockAF1; long stanClockAF0; - long *stanClockTgd /* OPTIONAL */; + long *stanClockTgd; /* OPTIONAL */ long sisa; - long *stanModelID /* OPTIONAL */; + long *stanModelID; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/StandardClockModelList.c b/asn.1/lpp_generated/StandardClockModelList.c new file mode 100644 index 00000000..8c55e3fe --- /dev/null +++ b/asn.1/lpp_generated/StandardClockModelList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "StandardClockModelList.h" + +#include "StandardClockModelElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_StandardClockModelList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_StandardClockModelList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_StandardClockModelElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_StandardClockModelList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_StandardClockModelList_specs_1 = { + sizeof(struct StandardClockModelList), + offsetof(struct StandardClockModelList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_StandardClockModelList = { + "StandardClockModelList", + "StandardClockModelList", + &asn_OP_SEQUENCE_OF, + asn_DEF_StandardClockModelList_tags_1, + sizeof(asn_DEF_StandardClockModelList_tags_1) + /sizeof(asn_DEF_StandardClockModelList_tags_1[0]), /* 1 */ + asn_DEF_StandardClockModelList_tags_1, /* Same as above */ + sizeof(asn_DEF_StandardClockModelList_tags_1) + /sizeof(asn_DEF_StandardClockModelList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_StandardClockModelList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_StandardClockModelList_1, + 1, /* Single element */ + &asn_SPC_StandardClockModelList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/StandardClockModelList.h b/asn.1/lpp_generated/StandardClockModelList.h similarity index 80% rename from asn.1/generated/StandardClockModelList.h rename to asn.1/lpp_generated/StandardClockModelList.h index 31379538..3fd19066 100644 --- a/asn.1/generated/StandardClockModelList.h +++ b/asn.1/lpp_generated/StandardClockModelList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _StandardClockModelList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_StandardClockModelList_constr_1; } #endif -/* Referred external types */ -#include "StandardClockModelElement.h" - #endif /* _StandardClockModelList_H_ */ #include diff --git a/asn.1/lpp_generated/StoredNavListInfo.c b/asn.1/lpp_generated/StoredNavListInfo.c new file mode 100644 index 00000000..b60952d8 --- /dev/null +++ b/asn.1/lpp_generated/StoredNavListInfo.c @@ -0,0 +1,219 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "StoredNavListInfo.h" + +#include "SatListRelatedDataList.h" +static int +memb_gnss_WeekOrDay_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gnss_Toe_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_t_toeLimit_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_WeekOrDay_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_Toe_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_t_toeLimit_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_StoredNavListInfo_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct StoredNavListInfo, gnss_WeekOrDay), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_WeekOrDay_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_WeekOrDay_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-WeekOrDay" + }, + { ATF_NOFLAGS, 0, offsetof(struct StoredNavListInfo, gnss_Toe), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_Toe_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_Toe_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-Toe" + }, + { ATF_NOFLAGS, 0, offsetof(struct StoredNavListInfo, t_toeLimit), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_t_toeLimit_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_t_toeLimit_constraint_1 + }, + 0, 0, /* No default value */ + "t-toeLimit" + }, + { ATF_POINTER, 1, offsetof(struct StoredNavListInfo, satListRelatedDataList), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SatListRelatedDataList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "satListRelatedDataList" + }, +}; +static const int asn_MAP_StoredNavListInfo_oms_1[] = { 3 }; +static const ber_tlv_tag_t asn_DEF_StoredNavListInfo_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_StoredNavListInfo_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-WeekOrDay */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-Toe */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* t-toeLimit */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* satListRelatedDataList */ +}; +asn_SEQUENCE_specifics_t asn_SPC_StoredNavListInfo_specs_1 = { + sizeof(struct StoredNavListInfo), + offsetof(struct StoredNavListInfo, _asn_ctx), + asn_MAP_StoredNavListInfo_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_StoredNavListInfo_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_StoredNavListInfo = { + "StoredNavListInfo", + "StoredNavListInfo", + &asn_OP_SEQUENCE, + asn_DEF_StoredNavListInfo_tags_1, + sizeof(asn_DEF_StoredNavListInfo_tags_1) + /sizeof(asn_DEF_StoredNavListInfo_tags_1[0]), /* 1 */ + asn_DEF_StoredNavListInfo_tags_1, /* Same as above */ + sizeof(asn_DEF_StoredNavListInfo_tags_1) + /sizeof(asn_DEF_StoredNavListInfo_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_StoredNavListInfo_1, + 4, /* Elements count */ + &asn_SPC_StoredNavListInfo_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/StoredNavListInfo.h b/asn.1/lpp_generated/StoredNavListInfo.h similarity index 75% rename from asn.1/generated/StoredNavListInfo.h rename to asn.1/lpp_generated/StoredNavListInfo.h index 94d315b5..bed528aa 100644 --- a/asn.1/generated/StoredNavListInfo.h +++ b/asn.1/lpp_generated/StoredNavListInfo.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _StoredNavListInfo_H_ @@ -27,7 +27,7 @@ typedef struct StoredNavListInfo { long gnss_WeekOrDay; long gnss_Toe; long t_toeLimit; - struct SatListRelatedDataList *satListRelatedDataList /* OPTIONAL */; + struct SatListRelatedDataList *satListRelatedDataList; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -46,8 +46,5 @@ extern asn_TYPE_member_t asn_MBR_StoredNavListInfo_1[4]; } #endif -/* Referred external types */ -#include "SatListRelatedDataList.h" - #endif /* _StoredNavListInfo_H_ */ #include diff --git a/asn.1/lpp_generated/SupportedBandEUTRA-v9a0.c b/asn.1/lpp_generated/SupportedBandEUTRA-v9a0.c new file mode 100644 index 00000000..82dd9044 --- /dev/null +++ b/asn.1/lpp_generated/SupportedBandEUTRA-v9a0.c @@ -0,0 +1,100 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SupportedBandEUTRA-v9a0.h" + +static int +memb_bandEUTRA_v9a0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 65L && value <= 256L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bandEUTRA_v9a0_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 65, 256 } /* (65..256) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SupportedBandEUTRA_v9a0_1[] = { + { ATF_POINTER, 1, offsetof(struct SupportedBandEUTRA_v9a0, bandEUTRA_v9a0), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bandEUTRA_v9a0_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bandEUTRA_v9a0_constraint_1 + }, + 0, 0, /* No default value */ + "bandEUTRA-v9a0" + }, +}; +static const int asn_MAP_SupportedBandEUTRA_v9a0_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_SupportedBandEUTRA_v9a0_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SupportedBandEUTRA_v9a0_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* bandEUTRA-v9a0 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SupportedBandEUTRA_v9a0_specs_1 = { + sizeof(struct SupportedBandEUTRA_v9a0), + offsetof(struct SupportedBandEUTRA_v9a0, _asn_ctx), + asn_MAP_SupportedBandEUTRA_v9a0_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_SupportedBandEUTRA_v9a0_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SupportedBandEUTRA_v9a0 = { + "SupportedBandEUTRA-v9a0", + "SupportedBandEUTRA-v9a0", + &asn_OP_SEQUENCE, + asn_DEF_SupportedBandEUTRA_v9a0_tags_1, + sizeof(asn_DEF_SupportedBandEUTRA_v9a0_tags_1) + /sizeof(asn_DEF_SupportedBandEUTRA_v9a0_tags_1[0]), /* 1 */ + asn_DEF_SupportedBandEUTRA_v9a0_tags_1, /* Same as above */ + sizeof(asn_DEF_SupportedBandEUTRA_v9a0_tags_1) + /sizeof(asn_DEF_SupportedBandEUTRA_v9a0_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SupportedBandEUTRA_v9a0_1, + 1, /* Elements count */ + &asn_SPC_SupportedBandEUTRA_v9a0_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/SupportedBandEUTRA-v9a0.h b/asn.1/lpp_generated/SupportedBandEUTRA-v9a0.h new file mode 100644 index 00000000..6c8104a5 --- /dev/null +++ b/asn.1/lpp_generated/SupportedBandEUTRA-v9a0.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _SupportedBandEUTRA_v9a0_H_ +#define _SupportedBandEUTRA_v9a0_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* SupportedBandEUTRA-v9a0 */ +typedef struct SupportedBandEUTRA_v9a0 { + long *bandEUTRA_v9a0; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SupportedBandEUTRA_v9a0_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SupportedBandEUTRA_v9a0; +extern asn_SEQUENCE_specifics_t asn_SPC_SupportedBandEUTRA_v9a0_specs_1; +extern asn_TYPE_member_t asn_MBR_SupportedBandEUTRA_v9a0_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SupportedBandEUTRA_v9a0_H_ */ +#include diff --git a/asn.1/lpp_generated/SupportedBandEUTRA.c b/asn.1/lpp_generated/SupportedBandEUTRA.c new file mode 100644 index 00000000..4cf2b56b --- /dev/null +++ b/asn.1/lpp_generated/SupportedBandEUTRA.c @@ -0,0 +1,98 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SupportedBandEUTRA.h" + +static int +memb_bandEUTRA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 64L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bandEUTRA_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (1..64) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SupportedBandEUTRA_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SupportedBandEUTRA, bandEUTRA), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bandEUTRA_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bandEUTRA_constraint_1 + }, + 0, 0, /* No default value */ + "bandEUTRA" + }, +}; +static const ber_tlv_tag_t asn_DEF_SupportedBandEUTRA_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SupportedBandEUTRA_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* bandEUTRA */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SupportedBandEUTRA_specs_1 = { + sizeof(struct SupportedBandEUTRA), + offsetof(struct SupportedBandEUTRA, _asn_ctx), + asn_MAP_SupportedBandEUTRA_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SupportedBandEUTRA = { + "SupportedBandEUTRA", + "SupportedBandEUTRA", + &asn_OP_SEQUENCE, + asn_DEF_SupportedBandEUTRA_tags_1, + sizeof(asn_DEF_SupportedBandEUTRA_tags_1) + /sizeof(asn_DEF_SupportedBandEUTRA_tags_1[0]), /* 1 */ + asn_DEF_SupportedBandEUTRA_tags_1, /* Same as above */ + sizeof(asn_DEF_SupportedBandEUTRA_tags_1) + /sizeof(asn_DEF_SupportedBandEUTRA_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SupportedBandEUTRA_1, + 1, /* Elements count */ + &asn_SPC_SupportedBandEUTRA_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SupportedBandEUTRA.h b/asn.1/lpp_generated/SupportedBandEUTRA.h similarity index 76% rename from asn.1/generated/SupportedBandEUTRA.h rename to asn.1/lpp_generated/SupportedBandEUTRA.h index b3df1132..a01031f1 100644 --- a/asn.1/generated/SupportedBandEUTRA.h +++ b/asn.1/lpp_generated/SupportedBandEUTRA.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SupportedBandEUTRA_H_ diff --git a/asn.1/lpp_generated/SupportedChannels-11a-r14.c b/asn.1/lpp_generated/SupportedChannels-11a-r14.c new file mode 100644 index 00000000..151d7f40 --- /dev/null +++ b/asn.1/lpp_generated/SupportedChannels-11a-r14.c @@ -0,0 +1,336 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SupportedChannels-11a-r14.h" + +asn_TYPE_member_t asn_MBR_SupportedChannels_11a_r14_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch34_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch34-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch36_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch36-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch38_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch38-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch40_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch40-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch42_r14), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch42-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch44_r14), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch44-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch46_r14), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch46-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch48_r14), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch48-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch52_r14), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch52-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch56_r14), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch56-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch60_r14), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch60-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch64_r14), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch64-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch149_r14), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch149-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch153_r14), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch153-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch157_r14), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch157-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11a_r14, ch161_r14), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch161-r14" + }, +}; +static const ber_tlv_tag_t asn_DEF_SupportedChannels_11a_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SupportedChannels_11a_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ch34-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ch36-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ch38-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ch40-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ch42-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ch44-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ch46-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ch48-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ch52-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* ch56-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* ch60-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* ch64-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ch149-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* ch153-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* ch157-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 } /* ch161-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SupportedChannels_11a_r14_specs_1 = { + sizeof(struct SupportedChannels_11a_r14), + offsetof(struct SupportedChannels_11a_r14, _asn_ctx), + asn_MAP_SupportedChannels_11a_r14_tag2el_1, + 16, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SupportedChannels_11a_r14 = { + "SupportedChannels-11a-r14", + "SupportedChannels-11a-r14", + &asn_OP_SEQUENCE, + asn_DEF_SupportedChannels_11a_r14_tags_1, + sizeof(asn_DEF_SupportedChannels_11a_r14_tags_1) + /sizeof(asn_DEF_SupportedChannels_11a_r14_tags_1[0]), /* 1 */ + asn_DEF_SupportedChannels_11a_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_SupportedChannels_11a_r14_tags_1) + /sizeof(asn_DEF_SupportedChannels_11a_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SupportedChannels_11a_r14_1, + 16, /* Elements count */ + &asn_SPC_SupportedChannels_11a_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SupportedChannels-11a-r14.h b/asn.1/lpp_generated/SupportedChannels-11a-r14.h similarity index 82% rename from asn.1/generated/SupportedChannels-11a-r14.h rename to asn.1/lpp_generated/SupportedChannels-11a-r14.h index 7646a1ed..e898b58c 100644 --- a/asn.1/generated/SupportedChannels-11a-r14.h +++ b/asn.1/lpp_generated/SupportedChannels-11a-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SupportedChannels_11a_r14_H_ diff --git a/asn.1/lpp_generated/SupportedChannels-11bg-r14.c b/asn.1/lpp_generated/SupportedChannels-11bg-r14.c new file mode 100644 index 00000000..5d64f02f --- /dev/null +++ b/asn.1/lpp_generated/SupportedChannels-11bg-r14.c @@ -0,0 +1,300 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "SupportedChannels-11bg-r14.h" + +asn_TYPE_member_t asn_MBR_SupportedChannels_11bg_r14_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch1_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch1-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch2_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch2-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch3_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch3-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch4_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch4-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch5_r14), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch5-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch6_r14), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch6-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch7_r14), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch7-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch8_r14), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch8-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch9_r14), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch9-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch10_r14), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch10-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch11_r14), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch11-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch12_r14), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch12-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch13_r14), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch13-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedChannels_11bg_r14, ch14_r14), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch14-r14" + }, +}; +static const ber_tlv_tag_t asn_DEF_SupportedChannels_11bg_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SupportedChannels_11bg_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ch1-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ch2-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ch3-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ch4-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ch5-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ch6-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ch7-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ch8-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ch9-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* ch10-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* ch11-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* ch12-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ch13-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 } /* ch14-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SupportedChannels_11bg_r14_specs_1 = { + sizeof(struct SupportedChannels_11bg_r14), + offsetof(struct SupportedChannels_11bg_r14, _asn_ctx), + asn_MAP_SupportedChannels_11bg_r14_tag2el_1, + 14, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SupportedChannels_11bg_r14 = { + "SupportedChannels-11bg-r14", + "SupportedChannels-11bg-r14", + &asn_OP_SEQUENCE, + asn_DEF_SupportedChannels_11bg_r14_tags_1, + sizeof(asn_DEF_SupportedChannels_11bg_r14_tags_1) + /sizeof(asn_DEF_SupportedChannels_11bg_r14_tags_1[0]), /* 1 */ + asn_DEF_SupportedChannels_11bg_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_SupportedChannels_11bg_r14_tags_1) + /sizeof(asn_DEF_SupportedChannels_11bg_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SupportedChannels_11bg_r14_1, + 14, /* Elements count */ + &asn_SPC_SupportedChannels_11bg_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SupportedChannels-11bg-r14.h b/asn.1/lpp_generated/SupportedChannels-11bg-r14.h similarity index 82% rename from asn.1/generated/SupportedChannels-11bg-r14.h rename to asn.1/lpp_generated/SupportedChannels-11bg-r14.h index 7faa1e7c..36ff54b6 100644 --- a/asn.1/generated/SupportedChannels-11bg-r14.h +++ b/asn.1/lpp_generated/SupportedChannels-11bg-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _SupportedChannels_11bg_r14_H_ diff --git a/asn.1/lpp_generated/TBS-AssistanceDataList-r14.c b/asn.1/lpp_generated/TBS-AssistanceDataList-r14.c new file mode 100644 index 00000000..77bd1b4e --- /dev/null +++ b/asn.1/lpp_generated/TBS-AssistanceDataList-r14.c @@ -0,0 +1,69 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "TBS-AssistanceDataList-r14.h" + +#include "MBS-AssistanceDataList-r14.h" +asn_TYPE_member_t asn_MBR_TBS_AssistanceDataList_r14_1[] = { + { ATF_POINTER, 1, offsetof(struct TBS_AssistanceDataList_r14, mbs_AssistanceDataList_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MBS_AssistanceDataList_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mbs-AssistanceDataList-r14" + }, +}; +static const int asn_MAP_TBS_AssistanceDataList_r14_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_TBS_AssistanceDataList_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TBS_AssistanceDataList_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* mbs-AssistanceDataList-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TBS_AssistanceDataList_r14_specs_1 = { + sizeof(struct TBS_AssistanceDataList_r14), + offsetof(struct TBS_AssistanceDataList_r14, _asn_ctx), + asn_MAP_TBS_AssistanceDataList_r14_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_TBS_AssistanceDataList_r14_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TBS_AssistanceDataList_r14 = { + "TBS-AssistanceDataList-r14", + "TBS-AssistanceDataList-r14", + &asn_OP_SEQUENCE, + asn_DEF_TBS_AssistanceDataList_r14_tags_1, + sizeof(asn_DEF_TBS_AssistanceDataList_r14_tags_1) + /sizeof(asn_DEF_TBS_AssistanceDataList_r14_tags_1[0]), /* 1 */ + asn_DEF_TBS_AssistanceDataList_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_TBS_AssistanceDataList_r14_tags_1) + /sizeof(asn_DEF_TBS_AssistanceDataList_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TBS_AssistanceDataList_r14_1, + 1, /* Elements count */ + &asn_SPC_TBS_AssistanceDataList_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/TBS-AssistanceDataList-r14.h b/asn.1/lpp_generated/TBS-AssistanceDataList-r14.h new file mode 100644 index 00000000..1d0ae2b3 --- /dev/null +++ b/asn.1/lpp_generated/TBS-AssistanceDataList-r14.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _TBS_AssistanceDataList_r14_H_ +#define _TBS_AssistanceDataList_r14_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct MBS_AssistanceDataList_r14; + +/* TBS-AssistanceDataList-r14 */ +typedef struct TBS_AssistanceDataList_r14 { + struct MBS_AssistanceDataList_r14 *mbs_AssistanceDataList_r14; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} TBS_AssistanceDataList_r14_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_TBS_AssistanceDataList_r14; +extern asn_SEQUENCE_specifics_t asn_SPC_TBS_AssistanceDataList_r14_specs_1; +extern asn_TYPE_member_t asn_MBR_TBS_AssistanceDataList_r14_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _TBS_AssistanceDataList_r14_H_ */ +#include diff --git a/asn.1/lpp_generated/TBS-Error-r13.c b/asn.1/lpp_generated/TBS-Error-r13.c new file mode 100644 index 00000000..342ff68d --- /dev/null +++ b/asn.1/lpp_generated/TBS-Error-r13.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "TBS-Error-r13.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TBS_Error_r13_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_TBS_Error_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct TBS_Error_r13, choice.locationServerErrorCauses_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TBS_LocationServerErrorCauses_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationServerErrorCauses-r13" + }, + { ATF_NOFLAGS, 0, offsetof(struct TBS_Error_r13, choice.targetDeviceErrorCauses_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TBS_TargetDeviceErrorCauses_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "targetDeviceErrorCauses-r13" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_TBS_Error_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses-r13 */ +}; +asn_CHOICE_specifics_t asn_SPC_TBS_Error_r13_specs_1 = { + sizeof(struct TBS_Error_r13), + offsetof(struct TBS_Error_r13, _asn_ctx), + offsetof(struct TBS_Error_r13, present), + sizeof(((struct TBS_Error_r13 *)0)->present), + asn_MAP_TBS_Error_r13_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_TBS_Error_r13 = { + "TBS-Error-r13", + "TBS-Error-r13", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TBS_Error_r13_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_TBS_Error_r13_1, + 2, /* Elements count */ + &asn_SPC_TBS_Error_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/TBS-Error-r13.h b/asn.1/lpp_generated/TBS-Error-r13.h similarity index 84% rename from asn.1/generated/TBS-Error-r13.h rename to asn.1/lpp_generated/TBS-Error-r13.h index b887e7be..77daff7a 100644 --- a/asn.1/generated/TBS-Error-r13.h +++ b/asn.1/lpp_generated/TBS-Error-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _TBS_Error_r13_H_ diff --git a/asn.1/lpp_generated/TBS-LocationServerErrorCauses-r13.c b/asn.1/lpp_generated/TBS-LocationServerErrorCauses-r13.c new file mode 100644 index 00000000..f2fd8894 --- /dev/null +++ b/asn.1/lpp_generated/TBS-LocationServerErrorCauses-r13.c @@ -0,0 +1,126 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "TBS-LocationServerErrorCauses-r13.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_r13_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_r13_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 40, "assistanceDataNotSupportedByServer-v1420" }, + { 2, 61, "assistanceDataSupportedButCurrentlyNotAvailableByServer-v1420" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_r13_enum2value_2[] = { + 1, /* assistanceDataNotSupportedByServer-v1420(1) */ + 2, /* assistanceDataSupportedButCurrentlyNotAvailableByServer-v1420(2) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_r13_specs_2 = { + asn_MAP_cause_r13_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_r13_enum2value_2, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_r13_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_r13_2 = { + "cause-r13", + "cause-r13", + &asn_OP_NativeEnumerated, + asn_DEF_cause_r13_tags_2, + sizeof(asn_DEF_cause_r13_tags_2) + /sizeof(asn_DEF_cause_r13_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_r13_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_r13_tags_2) + /sizeof(asn_DEF_cause_r13_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_r13_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_r13_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_TBS_LocationServerErrorCauses_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct TBS_LocationServerErrorCauses_r13, cause_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_r13_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause-r13" + }, +}; +static const ber_tlv_tag_t asn_DEF_TBS_LocationServerErrorCauses_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TBS_LocationServerErrorCauses_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause-r13 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TBS_LocationServerErrorCauses_r13_specs_1 = { + sizeof(struct TBS_LocationServerErrorCauses_r13), + offsetof(struct TBS_LocationServerErrorCauses_r13, _asn_ctx), + asn_MAP_TBS_LocationServerErrorCauses_r13_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TBS_LocationServerErrorCauses_r13 = { + "TBS-LocationServerErrorCauses-r13", + "TBS-LocationServerErrorCauses-r13", + &asn_OP_SEQUENCE, + asn_DEF_TBS_LocationServerErrorCauses_r13_tags_1, + sizeof(asn_DEF_TBS_LocationServerErrorCauses_r13_tags_1) + /sizeof(asn_DEF_TBS_LocationServerErrorCauses_r13_tags_1[0]), /* 1 */ + asn_DEF_TBS_LocationServerErrorCauses_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_TBS_LocationServerErrorCauses_r13_tags_1) + /sizeof(asn_DEF_TBS_LocationServerErrorCauses_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TBS_LocationServerErrorCauses_r13_1, + 1, /* Elements count */ + &asn_SPC_TBS_LocationServerErrorCauses_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/TBS-LocationServerErrorCauses-r13.h b/asn.1/lpp_generated/TBS-LocationServerErrorCauses-r13.h similarity index 86% rename from asn.1/generated/TBS-LocationServerErrorCauses-r13.h rename to asn.1/lpp_generated/TBS-LocationServerErrorCauses-r13.h index a9c62c3e..6ebdce0b 100644 --- a/asn.1/generated/TBS-LocationServerErrorCauses-r13.h +++ b/asn.1/lpp_generated/TBS-LocationServerErrorCauses-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _TBS_LocationServerErrorCauses_r13_H_ diff --git a/asn.1/lpp_generated/TBS-MeasurementInformation-r13.c b/asn.1/lpp_generated/TBS-MeasurementInformation-r13.c new file mode 100644 index 00000000..bca78b35 --- /dev/null +++ b/asn.1/lpp_generated/TBS-MeasurementInformation-r13.c @@ -0,0 +1,87 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "TBS-MeasurementInformation-r13.h" + +#include "MBS-BeaconMeasList-r13.h" +asn_TYPE_member_t asn_MBR_TBS_MeasurementInformation_r13_1[] = { + { ATF_POINTER, 2, offsetof(struct TBS_MeasurementInformation_r13, measurementReferenceTime_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTCTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "measurementReferenceTime-r13" + }, + { ATF_POINTER, 1, offsetof(struct TBS_MeasurementInformation_r13, mbs_SgnMeasList_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MBS_BeaconMeasList_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mbs-SgnMeasList-r13" + }, +}; +static const int asn_MAP_TBS_MeasurementInformation_r13_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_TBS_MeasurementInformation_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TBS_MeasurementInformation_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* measurementReferenceTime-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* mbs-SgnMeasList-r13 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TBS_MeasurementInformation_r13_specs_1 = { + sizeof(struct TBS_MeasurementInformation_r13), + offsetof(struct TBS_MeasurementInformation_r13, _asn_ctx), + asn_MAP_TBS_MeasurementInformation_r13_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_TBS_MeasurementInformation_r13_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TBS_MeasurementInformation_r13 = { + "TBS-MeasurementInformation-r13", + "TBS-MeasurementInformation-r13", + &asn_OP_SEQUENCE, + asn_DEF_TBS_MeasurementInformation_r13_tags_1, + sizeof(asn_DEF_TBS_MeasurementInformation_r13_tags_1) + /sizeof(asn_DEF_TBS_MeasurementInformation_r13_tags_1[0]), /* 1 */ + asn_DEF_TBS_MeasurementInformation_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_TBS_MeasurementInformation_r13_tags_1) + /sizeof(asn_DEF_TBS_MeasurementInformation_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TBS_MeasurementInformation_r13_1, + 2, /* Elements count */ + &asn_SPC_TBS_MeasurementInformation_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/TBS-MeasurementInformation-r13.h b/asn.1/lpp_generated/TBS-MeasurementInformation-r13.h new file mode 100644 index 00000000..417db3fe --- /dev/null +++ b/asn.1/lpp_generated/TBS-MeasurementInformation-r13.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _TBS_MeasurementInformation_r13_H_ +#define _TBS_MeasurementInformation_r13_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct MBS_BeaconMeasList_r13; + +/* TBS-MeasurementInformation-r13 */ +typedef struct TBS_MeasurementInformation_r13 { + UTCTime_t *measurementReferenceTime_r13; /* OPTIONAL */ + struct MBS_BeaconMeasList_r13 *mbs_SgnMeasList_r13; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} TBS_MeasurementInformation_r13_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_TBS_MeasurementInformation_r13; +extern asn_SEQUENCE_specifics_t asn_SPC_TBS_MeasurementInformation_r13_specs_1; +extern asn_TYPE_member_t asn_MBR_TBS_MeasurementInformation_r13_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _TBS_MeasurementInformation_r13_H_ */ +#include diff --git a/asn.1/lpp_generated/TBS-ProvideAssistanceData-r14.c b/asn.1/lpp_generated/TBS-ProvideAssistanceData-r14.c new file mode 100644 index 00000000..b8c32e0b --- /dev/null +++ b/asn.1/lpp_generated/TBS-ProvideAssistanceData-r14.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "TBS-ProvideAssistanceData-r14.h" + +#include "TBS-AssistanceDataList-r14.h" +#include "TBS-Error-r13.h" +asn_TYPE_member_t asn_MBR_TBS_ProvideAssistanceData_r14_1[] = { + { ATF_POINTER, 2, offsetof(struct TBS_ProvideAssistanceData_r14, tbs_AssistanceDataList_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TBS_AssistanceDataList_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tbs-AssistanceDataList-r14" + }, + { ATF_POINTER, 1, offsetof(struct TBS_ProvideAssistanceData_r14, tbs_Error_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_TBS_Error_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tbs-Error-r14" + }, +}; +static const int asn_MAP_TBS_ProvideAssistanceData_r14_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_TBS_ProvideAssistanceData_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TBS_ProvideAssistanceData_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tbs-AssistanceDataList-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tbs-Error-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TBS_ProvideAssistanceData_r14_specs_1 = { + sizeof(struct TBS_ProvideAssistanceData_r14), + offsetof(struct TBS_ProvideAssistanceData_r14, _asn_ctx), + asn_MAP_TBS_ProvideAssistanceData_r14_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_TBS_ProvideAssistanceData_r14_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TBS_ProvideAssistanceData_r14 = { + "TBS-ProvideAssistanceData-r14", + "TBS-ProvideAssistanceData-r14", + &asn_OP_SEQUENCE, + asn_DEF_TBS_ProvideAssistanceData_r14_tags_1, + sizeof(asn_DEF_TBS_ProvideAssistanceData_r14_tags_1) + /sizeof(asn_DEF_TBS_ProvideAssistanceData_r14_tags_1[0]), /* 1 */ + asn_DEF_TBS_ProvideAssistanceData_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_TBS_ProvideAssistanceData_r14_tags_1) + /sizeof(asn_DEF_TBS_ProvideAssistanceData_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TBS_ProvideAssistanceData_r14_1, + 2, /* Elements count */ + &asn_SPC_TBS_ProvideAssistanceData_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/TBS-ProvideAssistanceData-r14.h b/asn.1/lpp_generated/TBS-ProvideAssistanceData-r14.h new file mode 100644 index 00000000..819635ce --- /dev/null +++ b/asn.1/lpp_generated/TBS-ProvideAssistanceData-r14.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _TBS_ProvideAssistanceData_r14_H_ +#define _TBS_ProvideAssistanceData_r14_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct TBS_AssistanceDataList_r14; +struct TBS_Error_r13; + +/* TBS-ProvideAssistanceData-r14 */ +typedef struct TBS_ProvideAssistanceData_r14 { + struct TBS_AssistanceDataList_r14 *tbs_AssistanceDataList_r14; /* OPTIONAL */ + struct TBS_Error_r13 *tbs_Error_r14; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} TBS_ProvideAssistanceData_r14_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_TBS_ProvideAssistanceData_r14; +extern asn_SEQUENCE_specifics_t asn_SPC_TBS_ProvideAssistanceData_r14_specs_1; +extern asn_TYPE_member_t asn_MBR_TBS_ProvideAssistanceData_r14_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _TBS_ProvideAssistanceData_r14_H_ */ +#include diff --git a/asn.1/lpp_generated/TBS-ProvideCapabilities-r13.c b/asn.1/lpp_generated/TBS-ProvideCapabilities-r13.c new file mode 100644 index 00000000..aa136757 --- /dev/null +++ b/asn.1/lpp_generated/TBS-ProvideCapabilities-r13.c @@ -0,0 +1,413 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "TBS-ProvideCapabilities-r13.h" + +#include "MBS-AssistanceDataSupportList-r14.h" +#include "PositioningModes.h" +#include "ScheduledLocationTimeSupportPerMode-r17.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_mbs_ConfigSupport_r14_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_tbs_Modes_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_mbs_IdleStateForMeasurements_r14_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_mbs_ConfigSupport_r14_constr_10 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tbs_Modes_r13_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_mbs_IdleStateForMeasurements_r14_value2enum_15[] = { + { 0, 8, "required" } +}; +static const unsigned int asn_MAP_mbs_IdleStateForMeasurements_r14_enum2value_15[] = { + 0 /* required(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_mbs_IdleStateForMeasurements_r14_specs_15 = { + asn_MAP_mbs_IdleStateForMeasurements_r14_value2enum_15, /* "tag" => N; sorted by tag */ + asn_MAP_mbs_IdleStateForMeasurements_r14_enum2value_15, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_mbs_IdleStateForMeasurements_r14_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_mbs_IdleStateForMeasurements_r14_15 = { + "mbs-IdleStateForMeasurements-r14", + "mbs-IdleStateForMeasurements-r14", + &asn_OP_NativeEnumerated, + asn_DEF_mbs_IdleStateForMeasurements_r14_tags_15, + sizeof(asn_DEF_mbs_IdleStateForMeasurements_r14_tags_15) + /sizeof(asn_DEF_mbs_IdleStateForMeasurements_r14_tags_15[0]) - 1, /* 1 */ + asn_DEF_mbs_IdleStateForMeasurements_r14_tags_15, /* Same as above */ + sizeof(asn_DEF_mbs_IdleStateForMeasurements_r14_tags_15) + /sizeof(asn_DEF_mbs_IdleStateForMeasurements_r14_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_mbs_IdleStateForMeasurements_r14_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_mbs_IdleStateForMeasurements_r14_specs_15 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_7[] = { + { ATF_POINTER, 4, offsetof(struct TBS_ProvideCapabilities_r13__ext1, mbs_AssistanceDataSupportList_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MBS_AssistanceDataSupportList_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mbs-AssistanceDataSupportList-r14" + }, + { ATF_POINTER, 3, offsetof(struct TBS_ProvideCapabilities_r13__ext1, periodicalReportingSupported_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningModes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "periodicalReportingSupported-r14" + }, + { ATF_POINTER, 2, offsetof(struct TBS_ProvideCapabilities_r13__ext1, mbs_ConfigSupport_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_mbs_ConfigSupport_r14_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_mbs_ConfigSupport_r14_constraint_7 + }, + 0, 0, /* No default value */ + "mbs-ConfigSupport-r14" + }, + { ATF_POINTER, 1, offsetof(struct TBS_ProvideCapabilities_r13__ext1, mbs_IdleStateForMeasurements_r14), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_mbs_IdleStateForMeasurements_r14_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mbs-IdleStateForMeasurements-r14" + }, +}; +static const int asn_MAP_ext1_oms_7[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mbs-AssistanceDataSupportList-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* periodicalReportingSupported-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* mbs-ConfigSupport-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* mbs-IdleStateForMeasurements-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_7 = { + sizeof(struct TBS_ProvideCapabilities_r13__ext1), + offsetof(struct TBS_ProvideCapabilities_r13__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_7, + 4, /* Count of tags in the map */ + asn_MAP_ext1_oms_7, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_7 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_7, + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_7, /* Same as above */ + sizeof(asn_DEF_ext1_tags_7) + /sizeof(asn_DEF_ext1_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_7, + 4, /* Elements count */ + &asn_SPC_ext1_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_17[] = { + { ATF_POINTER, 1, offsetof(struct TBS_ProvideCapabilities_r13__ext2, scheduledLocationRequestSupported_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ScheduledLocationTimeSupportPerMode_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scheduledLocationRequestSupported-r17" + }, +}; +static const int asn_MAP_ext2_oms_17[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_17[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* scheduledLocationRequestSupported-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_17 = { + sizeof(struct TBS_ProvideCapabilities_r13__ext2), + offsetof(struct TBS_ProvideCapabilities_r13__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_17, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_17, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_17 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_17, + sizeof(asn_DEF_ext2_tags_17) + /sizeof(asn_DEF_ext2_tags_17[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_17, /* Same as above */ + sizeof(asn_DEF_ext2_tags_17) + /sizeof(asn_DEF_ext2_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_17, + 1, /* Elements count */ + &asn_SPC_ext2_specs_17 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_TBS_ProvideCapabilities_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct TBS_ProvideCapabilities_r13, tbs_Modes_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tbs_Modes_r13_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tbs_Modes_r13_constraint_1 + }, + 0, 0, /* No default value */ + "tbs-Modes-r13" + }, + { ATF_POINTER, 2, offsetof(struct TBS_ProvideCapabilities_r13, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct TBS_ProvideCapabilities_r13, ext2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext2_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_TBS_ProvideCapabilities_r13_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_TBS_ProvideCapabilities_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TBS_ProvideCapabilities_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tbs-Modes-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TBS_ProvideCapabilities_r13_specs_1 = { + sizeof(struct TBS_ProvideCapabilities_r13), + offsetof(struct TBS_ProvideCapabilities_r13, _asn_ctx), + asn_MAP_TBS_ProvideCapabilities_r13_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_TBS_ProvideCapabilities_r13_oms_1, /* Optional members */ + 0, 2, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TBS_ProvideCapabilities_r13 = { + "TBS-ProvideCapabilities-r13", + "TBS-ProvideCapabilities-r13", + &asn_OP_SEQUENCE, + asn_DEF_TBS_ProvideCapabilities_r13_tags_1, + sizeof(asn_DEF_TBS_ProvideCapabilities_r13_tags_1) + /sizeof(asn_DEF_TBS_ProvideCapabilities_r13_tags_1[0]), /* 1 */ + asn_DEF_TBS_ProvideCapabilities_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_TBS_ProvideCapabilities_r13_tags_1) + /sizeof(asn_DEF_TBS_ProvideCapabilities_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TBS_ProvideCapabilities_r13_1, + 3, /* Elements count */ + &asn_SPC_TBS_ProvideCapabilities_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/TBS-ProvideCapabilities-r13.h b/asn.1/lpp_generated/TBS-ProvideCapabilities-r13.h new file mode 100644 index 00000000..7632fc76 --- /dev/null +++ b/asn.1/lpp_generated/TBS-ProvideCapabilities-r13.h @@ -0,0 +1,82 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _TBS_ProvideCapabilities_r13_H_ +#define _TBS_ProvideCapabilities_r13_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum TBS_ProvideCapabilities_r13__tbs_Modes_r13 { + TBS_ProvideCapabilities_r13__tbs_Modes_r13_standalone = 0, + TBS_ProvideCapabilities_r13__tbs_Modes_r13_ue_assisted = 1, + TBS_ProvideCapabilities_r13__tbs_Modes_r13_ue_based = 2 +} e_TBS_ProvideCapabilities_r13__tbs_Modes_r13; +typedef enum TBS_ProvideCapabilities_r13__ext1__mbs_ConfigSupport_r14 { + TBS_ProvideCapabilities_r13__ext1__mbs_ConfigSupport_r14_tb1 = 0, + TBS_ProvideCapabilities_r13__ext1__mbs_ConfigSupport_r14_tb2 = 1, + TBS_ProvideCapabilities_r13__ext1__mbs_ConfigSupport_r14_tb3 = 2, + TBS_ProvideCapabilities_r13__ext1__mbs_ConfigSupport_r14_tb4 = 3 +} e_TBS_ProvideCapabilities_r13__ext1__mbs_ConfigSupport_r14; +typedef enum TBS_ProvideCapabilities_r13__ext1__mbs_IdleStateForMeasurements_r14 { + TBS_ProvideCapabilities_r13__ext1__mbs_IdleStateForMeasurements_r14_required = 0 +} e_TBS_ProvideCapabilities_r13__ext1__mbs_IdleStateForMeasurements_r14; + +/* Forward declarations */ +struct MBS_AssistanceDataSupportList_r14; +struct PositioningModes; +struct ScheduledLocationTimeSupportPerMode_r17; + +/* TBS-ProvideCapabilities-r13 */ +typedef struct TBS_ProvideCapabilities_r13 { + BIT_STRING_t tbs_Modes_r13; + /* + * This type is extensible, + * possible extensions are below. + */ + struct TBS_ProvideCapabilities_r13__ext1 { + struct MBS_AssistanceDataSupportList_r14 *mbs_AssistanceDataSupportList_r14; /* OPTIONAL */ + struct PositioningModes *periodicalReportingSupported_r14; /* OPTIONAL */ + BIT_STRING_t *mbs_ConfigSupport_r14; /* OPTIONAL */ + long *mbs_IdleStateForMeasurements_r14; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + struct TBS_ProvideCapabilities_r13__ext2 { + struct ScheduledLocationTimeSupportPerMode_r17 *scheduledLocationRequestSupported_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} TBS_ProvideCapabilities_r13_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_mbs_IdleStateForMeasurements_r14_15; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_TBS_ProvideCapabilities_r13; +extern asn_SEQUENCE_specifics_t asn_SPC_TBS_ProvideCapabilities_r13_specs_1; +extern asn_TYPE_member_t asn_MBR_TBS_ProvideCapabilities_r13_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _TBS_ProvideCapabilities_r13_H_ */ +#include diff --git a/asn.1/lpp_generated/TBS-ProvideLocationInformation-r13.c b/asn.1/lpp_generated/TBS-ProvideLocationInformation-r13.c new file mode 100644 index 00000000..bc4059d7 --- /dev/null +++ b/asn.1/lpp_generated/TBS-ProvideLocationInformation-r13.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "TBS-ProvideLocationInformation-r13.h" + +#include "TBS-MeasurementInformation-r13.h" +#include "TBS-Error-r13.h" +asn_TYPE_member_t asn_MBR_TBS_ProvideLocationInformation_r13_1[] = { + { ATF_POINTER, 2, offsetof(struct TBS_ProvideLocationInformation_r13, tbs_MeasurementInformation_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TBS_MeasurementInformation_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tbs-MeasurementInformation-r13" + }, + { ATF_POINTER, 1, offsetof(struct TBS_ProvideLocationInformation_r13, tbs_Error_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_TBS_Error_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tbs-Error-r13" + }, +}; +static const int asn_MAP_TBS_ProvideLocationInformation_r13_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_TBS_ProvideLocationInformation_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TBS_ProvideLocationInformation_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tbs-MeasurementInformation-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tbs-Error-r13 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TBS_ProvideLocationInformation_r13_specs_1 = { + sizeof(struct TBS_ProvideLocationInformation_r13), + offsetof(struct TBS_ProvideLocationInformation_r13, _asn_ctx), + asn_MAP_TBS_ProvideLocationInformation_r13_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_TBS_ProvideLocationInformation_r13_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TBS_ProvideLocationInformation_r13 = { + "TBS-ProvideLocationInformation-r13", + "TBS-ProvideLocationInformation-r13", + &asn_OP_SEQUENCE, + asn_DEF_TBS_ProvideLocationInformation_r13_tags_1, + sizeof(asn_DEF_TBS_ProvideLocationInformation_r13_tags_1) + /sizeof(asn_DEF_TBS_ProvideLocationInformation_r13_tags_1[0]), /* 1 */ + asn_DEF_TBS_ProvideLocationInformation_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_TBS_ProvideLocationInformation_r13_tags_1) + /sizeof(asn_DEF_TBS_ProvideLocationInformation_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TBS_ProvideLocationInformation_r13_1, + 2, /* Elements count */ + &asn_SPC_TBS_ProvideLocationInformation_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/TBS-ProvideLocationInformation-r13.h b/asn.1/lpp_generated/TBS-ProvideLocationInformation-r13.h similarity index 76% rename from asn.1/generated/TBS-ProvideLocationInformation-r13.h rename to asn.1/lpp_generated/TBS-ProvideLocationInformation-r13.h index 9aa09354..9d572b3f 100644 --- a/asn.1/generated/TBS-ProvideLocationInformation-r13.h +++ b/asn.1/lpp_generated/TBS-ProvideLocationInformation-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _TBS_ProvideLocationInformation_r13_H_ @@ -24,8 +24,8 @@ struct TBS_Error_r13; /* TBS-ProvideLocationInformation-r13 */ typedef struct TBS_ProvideLocationInformation_r13 { - struct TBS_MeasurementInformation_r13 *tbs_MeasurementInformation_r13 /* OPTIONAL */; - struct TBS_Error_r13 *tbs_Error_r13 /* OPTIONAL */; + struct TBS_MeasurementInformation_r13 *tbs_MeasurementInformation_r13; /* OPTIONAL */ + struct TBS_Error_r13 *tbs_Error_r13; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -44,9 +44,5 @@ extern asn_TYPE_member_t asn_MBR_TBS_ProvideLocationInformation_r13_1[2]; } #endif -/* Referred external types */ -#include "TBS-MeasurementInformation-r13.h" -#include "TBS-Error-r13.h" - #endif /* _TBS_ProvideLocationInformation_r13_H_ */ #include diff --git a/asn.1/lpp_generated/TBS-RequestAssistanceData-r14.c b/asn.1/lpp_generated/TBS-RequestAssistanceData-r14.c new file mode 100644 index 00000000..5322637f --- /dev/null +++ b/asn.1/lpp_generated/TBS-RequestAssistanceData-r14.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "TBS-RequestAssistanceData-r14.h" + +asn_TYPE_member_t asn_MBR_TBS_RequestAssistanceData_r14_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct TBS_RequestAssistanceData_r14, mbs_AlmanacAssistanceDataReq_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mbs-AlmanacAssistanceDataReq-r14" + }, + { ATF_NOFLAGS, 0, offsetof(struct TBS_RequestAssistanceData_r14, mbs_AcquisitionAssistanceDataReq_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mbs-AcquisitionAssistanceDataReq-r14" + }, +}; +static const ber_tlv_tag_t asn_DEF_TBS_RequestAssistanceData_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TBS_RequestAssistanceData_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mbs-AlmanacAssistanceDataReq-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* mbs-AcquisitionAssistanceDataReq-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TBS_RequestAssistanceData_r14_specs_1 = { + sizeof(struct TBS_RequestAssistanceData_r14), + offsetof(struct TBS_RequestAssistanceData_r14, _asn_ctx), + asn_MAP_TBS_RequestAssistanceData_r14_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TBS_RequestAssistanceData_r14 = { + "TBS-RequestAssistanceData-r14", + "TBS-RequestAssistanceData-r14", + &asn_OP_SEQUENCE, + asn_DEF_TBS_RequestAssistanceData_r14_tags_1, + sizeof(asn_DEF_TBS_RequestAssistanceData_r14_tags_1) + /sizeof(asn_DEF_TBS_RequestAssistanceData_r14_tags_1[0]), /* 1 */ + asn_DEF_TBS_RequestAssistanceData_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_TBS_RequestAssistanceData_r14_tags_1) + /sizeof(asn_DEF_TBS_RequestAssistanceData_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TBS_RequestAssistanceData_r14_1, + 2, /* Elements count */ + &asn_SPC_TBS_RequestAssistanceData_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/TBS-RequestAssistanceData-r14.h b/asn.1/lpp_generated/TBS-RequestAssistanceData-r14.h similarity index 80% rename from asn.1/generated/TBS-RequestAssistanceData-r14.h rename to asn.1/lpp_generated/TBS-RequestAssistanceData-r14.h index 41fc3c06..1c573536 100644 --- a/asn.1/generated/TBS-RequestAssistanceData-r14.h +++ b/asn.1/lpp_generated/TBS-RequestAssistanceData-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _TBS_RequestAssistanceData_r14_H_ diff --git a/asn.1/lpp_generated/TBS-RequestCapabilities-r13.c b/asn.1/lpp_generated/TBS-RequestCapabilities-r13.c new file mode 100644 index 00000000..d47c05ce --- /dev/null +++ b/asn.1/lpp_generated/TBS-RequestCapabilities-r13.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "TBS-RequestCapabilities-r13.h" + +static const ber_tlv_tag_t asn_DEF_TBS_RequestCapabilities_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_TBS_RequestCapabilities_r13_specs_1 = { + sizeof(struct TBS_RequestCapabilities_r13), + offsetof(struct TBS_RequestCapabilities_r13, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TBS_RequestCapabilities_r13 = { + "TBS-RequestCapabilities-r13", + "TBS-RequestCapabilities-r13", + &asn_OP_SEQUENCE, + asn_DEF_TBS_RequestCapabilities_r13_tags_1, + sizeof(asn_DEF_TBS_RequestCapabilities_r13_tags_1) + /sizeof(asn_DEF_TBS_RequestCapabilities_r13_tags_1[0]), /* 1 */ + asn_DEF_TBS_RequestCapabilities_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_TBS_RequestCapabilities_r13_tags_1) + /sizeof(asn_DEF_TBS_RequestCapabilities_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_TBS_RequestCapabilities_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/TBS-RequestCapabilities-r13.h b/asn.1/lpp_generated/TBS-RequestCapabilities-r13.h similarity index 77% rename from asn.1/generated/TBS-RequestCapabilities-r13.h rename to asn.1/lpp_generated/TBS-RequestCapabilities-r13.h index 03e8eb3a..80733cb8 100644 --- a/asn.1/generated/TBS-RequestCapabilities-r13.h +++ b/asn.1/lpp_generated/TBS-RequestCapabilities-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _TBS_RequestCapabilities_r13_H_ diff --git a/asn.1/lpp_generated/TBS-RequestLocationInformation-r13.c b/asn.1/lpp_generated/TBS-RequestLocationInformation-r13.c new file mode 100644 index 00000000..4783f138 --- /dev/null +++ b/asn.1/lpp_generated/TBS-RequestLocationInformation-r13.c @@ -0,0 +1,203 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "TBS-RequestLocationInformation-r13.h" + +static int +memb_mbsRequestedMeasurements_r14_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_mbsRequestedMeasurements_r14_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_4[] = { + { ATF_POINTER, 2, offsetof(struct TBS_RequestLocationInformation_r13__ext1, mbsAssistanceAvailability_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mbsAssistanceAvailability-r14" + }, + { ATF_POINTER, 1, offsetof(struct TBS_RequestLocationInformation_r13__ext1, mbsRequestedMeasurements_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_mbsRequestedMeasurements_r14_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_mbsRequestedMeasurements_r14_constraint_4 + }, + 0, 0, /* No default value */ + "mbsRequestedMeasurements-r14" + }, +}; +static const int asn_MAP_ext1_oms_4[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mbsAssistanceAvailability-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* mbsRequestedMeasurements-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_4 = { + sizeof(struct TBS_RequestLocationInformation_r13__ext1), + offsetof(struct TBS_RequestLocationInformation_r13__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_4, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_4, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_4 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_4, + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_4, /* Same as above */ + sizeof(asn_DEF_ext1_tags_4) + /sizeof(asn_DEF_ext1_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_4, + 2, /* Elements count */ + &asn_SPC_ext1_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_TBS_RequestLocationInformation_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct TBS_RequestLocationInformation_r13, mbsSgnMeasListReq_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mbsSgnMeasListReq-r13" + }, + { ATF_POINTER, 1, offsetof(struct TBS_RequestLocationInformation_r13, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_TBS_RequestLocationInformation_r13_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_TBS_RequestLocationInformation_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TBS_RequestLocationInformation_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mbsSgnMeasListReq-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TBS_RequestLocationInformation_r13_specs_1 = { + sizeof(struct TBS_RequestLocationInformation_r13), + offsetof(struct TBS_RequestLocationInformation_r13, _asn_ctx), + asn_MAP_TBS_RequestLocationInformation_r13_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_TBS_RequestLocationInformation_r13_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TBS_RequestLocationInformation_r13 = { + "TBS-RequestLocationInformation-r13", + "TBS-RequestLocationInformation-r13", + &asn_OP_SEQUENCE, + asn_DEF_TBS_RequestLocationInformation_r13_tags_1, + sizeof(asn_DEF_TBS_RequestLocationInformation_r13_tags_1) + /sizeof(asn_DEF_TBS_RequestLocationInformation_r13_tags_1[0]), /* 1 */ + asn_DEF_TBS_RequestLocationInformation_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_TBS_RequestLocationInformation_r13_tags_1) + /sizeof(asn_DEF_TBS_RequestLocationInformation_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TBS_RequestLocationInformation_r13_1, + 2, /* Elements count */ + &asn_SPC_TBS_RequestLocationInformation_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/TBS-RequestLocationInformation-r13.h b/asn.1/lpp_generated/TBS-RequestLocationInformation-r13.h similarity index 79% rename from asn.1/generated/TBS-RequestLocationInformation-r13.h rename to asn.1/lpp_generated/TBS-RequestLocationInformation-r13.h index ab454de5..4b3b3b17 100644 --- a/asn.1/generated/TBS-RequestLocationInformation-r13.h +++ b/asn.1/lpp_generated/TBS-RequestLocationInformation-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _TBS_RequestLocationInformation_r13_H_ @@ -33,8 +33,8 @@ typedef struct TBS_RequestLocationInformation_r13 { * possible extensions are below. */ struct TBS_RequestLocationInformation_r13__ext1 { - BOOLEAN_t *mbsAssistanceAvailability_r14 /* OPTIONAL */; - BIT_STRING_t *mbsRequestedMeasurements_r14 /* OPTIONAL */; + BOOLEAN_t *mbsAssistanceAvailability_r14; /* OPTIONAL */ + BIT_STRING_t *mbsRequestedMeasurements_r14; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/TBS-TargetDeviceErrorCauses-r13.c b/asn.1/lpp_generated/TBS-TargetDeviceErrorCauses-r13.c new file mode 100644 index 00000000..eded3dd8 --- /dev/null +++ b/asn.1/lpp_generated/TBS-TargetDeviceErrorCauses-r13.c @@ -0,0 +1,126 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "TBS-TargetDeviceErrorCauses-r13.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_r13_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_r13_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 36, "thereWereNotEnoughMBSBeaconsReceived" }, + { 2, 27, "assistanceDataMissing-v1420" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_r13_enum2value_2[] = { + 2, /* assistanceDataMissing-v1420(2) */ + 1, /* thereWereNotEnoughMBSBeaconsReceived(1) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_r13_specs_2 = { + asn_MAP_cause_r13_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_r13_enum2value_2, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_r13_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_r13_2 = { + "cause-r13", + "cause-r13", + &asn_OP_NativeEnumerated, + asn_DEF_cause_r13_tags_2, + sizeof(asn_DEF_cause_r13_tags_2) + /sizeof(asn_DEF_cause_r13_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_r13_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_r13_tags_2) + /sizeof(asn_DEF_cause_r13_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_r13_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_r13_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_TBS_TargetDeviceErrorCauses_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct TBS_TargetDeviceErrorCauses_r13, cause_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_r13_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause-r13" + }, +}; +static const ber_tlv_tag_t asn_DEF_TBS_TargetDeviceErrorCauses_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TBS_TargetDeviceErrorCauses_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cause-r13 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TBS_TargetDeviceErrorCauses_r13_specs_1 = { + sizeof(struct TBS_TargetDeviceErrorCauses_r13), + offsetof(struct TBS_TargetDeviceErrorCauses_r13, _asn_ctx), + asn_MAP_TBS_TargetDeviceErrorCauses_r13_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TBS_TargetDeviceErrorCauses_r13 = { + "TBS-TargetDeviceErrorCauses-r13", + "TBS-TargetDeviceErrorCauses-r13", + &asn_OP_SEQUENCE, + asn_DEF_TBS_TargetDeviceErrorCauses_r13_tags_1, + sizeof(asn_DEF_TBS_TargetDeviceErrorCauses_r13_tags_1) + /sizeof(asn_DEF_TBS_TargetDeviceErrorCauses_r13_tags_1[0]), /* 1 */ + asn_DEF_TBS_TargetDeviceErrorCauses_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_TBS_TargetDeviceErrorCauses_r13_tags_1) + /sizeof(asn_DEF_TBS_TargetDeviceErrorCauses_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TBS_TargetDeviceErrorCauses_r13_1, + 1, /* Elements count */ + &asn_SPC_TBS_TargetDeviceErrorCauses_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/TBS-TargetDeviceErrorCauses-r13.h b/asn.1/lpp_generated/TBS-TargetDeviceErrorCauses-r13.h similarity index 85% rename from asn.1/generated/TBS-TargetDeviceErrorCauses-r13.h rename to asn.1/lpp_generated/TBS-TargetDeviceErrorCauses-r13.h index 6500e54e..c0b07464 100644 --- a/asn.1/generated/TBS-TargetDeviceErrorCauses-r13.h +++ b/asn.1/lpp_generated/TBS-TargetDeviceErrorCauses-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _TBS_TargetDeviceErrorCauses_r13_H_ diff --git a/asn.1/lpp_generated/TDD-Config-v1520.c b/asn.1/lpp_generated/TDD-Config-v1520.c new file mode 100644 index 00000000..2134c084 --- /dev/null +++ b/asn.1/lpp_generated/TDD-Config-v1520.c @@ -0,0 +1,132 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "TDD-Config-v1520.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_subframeAssignment_v1520_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_subframeAssignment_v1520_value2enum_2[] = { + { 0, 3, "sa0" }, + { 1, 3, "sa1" }, + { 2, 3, "sa2" }, + { 3, 3, "sa3" }, + { 4, 3, "sa4" }, + { 5, 3, "sa5" }, + { 6, 3, "sa6" } +}; +static const unsigned int asn_MAP_subframeAssignment_v1520_enum2value_2[] = { + 0, /* sa0(0) */ + 1, /* sa1(1) */ + 2, /* sa2(2) */ + 3, /* sa3(3) */ + 4, /* sa4(4) */ + 5, /* sa5(5) */ + 6 /* sa6(6) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_subframeAssignment_v1520_specs_2 = { + asn_MAP_subframeAssignment_v1520_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_subframeAssignment_v1520_enum2value_2, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_subframeAssignment_v1520_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_subframeAssignment_v1520_2 = { + "subframeAssignment-v1520", + "subframeAssignment-v1520", + &asn_OP_NativeEnumerated, + asn_DEF_subframeAssignment_v1520_tags_2, + sizeof(asn_DEF_subframeAssignment_v1520_tags_2) + /sizeof(asn_DEF_subframeAssignment_v1520_tags_2[0]) - 1, /* 1 */ + asn_DEF_subframeAssignment_v1520_tags_2, /* Same as above */ + sizeof(asn_DEF_subframeAssignment_v1520_tags_2) + /sizeof(asn_DEF_subframeAssignment_v1520_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_subframeAssignment_v1520_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_subframeAssignment_v1520_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_TDD_Config_v1520_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct TDD_Config_v1520, subframeAssignment_v1520), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_subframeAssignment_v1520_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "subframeAssignment-v1520" + }, +}; +static const ber_tlv_tag_t asn_DEF_TDD_Config_v1520_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TDD_Config_v1520_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* subframeAssignment-v1520 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TDD_Config_v1520_specs_1 = { + sizeof(struct TDD_Config_v1520), + offsetof(struct TDD_Config_v1520, _asn_ctx), + asn_MAP_TDD_Config_v1520_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TDD_Config_v1520 = { + "TDD-Config-v1520", + "TDD-Config-v1520", + &asn_OP_SEQUENCE, + asn_DEF_TDD_Config_v1520_tags_1, + sizeof(asn_DEF_TDD_Config_v1520_tags_1) + /sizeof(asn_DEF_TDD_Config_v1520_tags_1[0]), /* 1 */ + asn_DEF_TDD_Config_v1520_tags_1, /* Same as above */ + sizeof(asn_DEF_TDD_Config_v1520_tags_1) + /sizeof(asn_DEF_TDD_Config_v1520_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TDD_Config_v1520_1, + 1, /* Elements count */ + &asn_SPC_TDD_Config_v1520_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/TDD-Config-v1520.h b/asn.1/lpp_generated/TDD-Config-v1520.h similarity index 85% rename from asn.1/generated/TDD-Config-v1520.h rename to asn.1/lpp_generated/TDD-Config-v1520.h index 8da14b4d..a3d25446 100644 --- a/asn.1/generated/TDD-Config-v1520.h +++ b/asn.1/lpp_generated/TDD-Config-v1520.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _TDD_Config_v1520_H_ diff --git a/asn.1/lpp_generated/TEG-TimingErrorMargin-r17.c b/asn.1/lpp_generated/TEG-TimingErrorMargin-r17.c new file mode 100644 index 00000000..98a06c8a --- /dev/null +++ b/asn.1/lpp_generated/TEG-TimingErrorMargin-r17.c @@ -0,0 +1,91 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "TEG-TimingErrorMargin-r17.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TEG_TimingErrorMargin_r17_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_TEG_TimingErrorMargin_r17_value2enum_1[] = { + { 0, 3, "tc0" }, + { 1, 3, "tc2" }, + { 2, 3, "tc4" }, + { 3, 3, "tc6" }, + { 4, 3, "tc8" }, + { 5, 4, "tc12" }, + { 6, 4, "tc16" }, + { 7, 4, "tc20" }, + { 8, 4, "tc24" }, + { 9, 4, "tc32" }, + { 10, 4, "tc40" }, + { 11, 4, "tc48" }, + { 12, 4, "tc56" }, + { 13, 4, "tc64" }, + { 14, 4, "tc72" }, + { 15, 4, "tc80" } +}; +static const unsigned int asn_MAP_TEG_TimingErrorMargin_r17_enum2value_1[] = { + 0, /* tc0(0) */ + 5, /* tc12(5) */ + 6, /* tc16(6) */ + 1, /* tc2(1) */ + 7, /* tc20(7) */ + 8, /* tc24(8) */ + 9, /* tc32(9) */ + 2, /* tc4(2) */ + 10, /* tc40(10) */ + 11, /* tc48(11) */ + 12, /* tc56(12) */ + 3, /* tc6(3) */ + 13, /* tc64(13) */ + 14, /* tc72(14) */ + 4, /* tc8(4) */ + 15 /* tc80(15) */ +}; +const asn_INTEGER_specifics_t asn_SPC_TEG_TimingErrorMargin_r17_specs_1 = { + asn_MAP_TEG_TimingErrorMargin_r17_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_TEG_TimingErrorMargin_r17_enum2value_1, /* N => "tag"; sorted by N */ + 16, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_TEG_TimingErrorMargin_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TEG_TimingErrorMargin_r17 = { + "TEG-TimingErrorMargin-r17", + "TEG-TimingErrorMargin-r17", + &asn_OP_NativeEnumerated, + asn_DEF_TEG_TimingErrorMargin_r17_tags_1, + sizeof(asn_DEF_TEG_TimingErrorMargin_r17_tags_1) + /sizeof(asn_DEF_TEG_TimingErrorMargin_r17_tags_1[0]), /* 1 */ + asn_DEF_TEG_TimingErrorMargin_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_TEG_TimingErrorMargin_r17_tags_1) + /sizeof(asn_DEF_TEG_TimingErrorMargin_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TEG_TimingErrorMargin_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_TEG_TimingErrorMargin_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/TEG-TimingErrorMargin-r17.h b/asn.1/lpp_generated/TEG-TimingErrorMargin-r17.h new file mode 100644 index 00000000..57ccb02c --- /dev/null +++ b/asn.1/lpp_generated/TEG-TimingErrorMargin-r17.h @@ -0,0 +1,61 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _TEG_TimingErrorMargin_r17_H_ +#define _TEG_TimingErrorMargin_r17_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum TEG_TimingErrorMargin_r17 { + TEG_TimingErrorMargin_r17_tc0 = 0, + TEG_TimingErrorMargin_r17_tc2 = 1, + TEG_TimingErrorMargin_r17_tc4 = 2, + TEG_TimingErrorMargin_r17_tc6 = 3, + TEG_TimingErrorMargin_r17_tc8 = 4, + TEG_TimingErrorMargin_r17_tc12 = 5, + TEG_TimingErrorMargin_r17_tc16 = 6, + TEG_TimingErrorMargin_r17_tc20 = 7, + TEG_TimingErrorMargin_r17_tc24 = 8, + TEG_TimingErrorMargin_r17_tc32 = 9, + TEG_TimingErrorMargin_r17_tc40 = 10, + TEG_TimingErrorMargin_r17_tc48 = 11, + TEG_TimingErrorMargin_r17_tc56 = 12, + TEG_TimingErrorMargin_r17_tc64 = 13, + TEG_TimingErrorMargin_r17_tc72 = 14, + TEG_TimingErrorMargin_r17_tc80 = 15 +} e_TEG_TimingErrorMargin_r17; + +/* TEG-TimingErrorMargin-r17 */ +typedef long TEG_TimingErrorMargin_r17_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_TEG_TimingErrorMargin_r17_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_TEG_TimingErrorMargin_r17; +extern const asn_INTEGER_specifics_t asn_SPC_TEG_TimingErrorMargin_r17_specs_1; +asn_struct_free_f TEG_TimingErrorMargin_r17_free; +asn_constr_check_f TEG_TimingErrorMargin_r17_constraint; +xer_type_decoder_f TEG_TimingErrorMargin_r17_decode_xer; +xer_type_encoder_f TEG_TimingErrorMargin_r17_encode_xer; +jer_type_encoder_f TEG_TimingErrorMargin_r17_encode_jer; +per_type_decoder_f TEG_TimingErrorMargin_r17_decode_uper; +per_type_encoder_f TEG_TimingErrorMargin_r17_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _TEG_TimingErrorMargin_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/TRP-LocationInfoElement-r16.c b/asn.1/lpp_generated/TRP-LocationInfoElement-r16.c new file mode 100644 index 00000000..ac543beb --- /dev/null +++ b/asn.1/lpp_generated/TRP-LocationInfoElement-r16.c @@ -0,0 +1,435 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "TRP-LocationInfoElement-r16.h" + +#include "NCGI-r15.h" +#include "RelativeLocation-r16.h" +#include "DL-PRS-ResourceSets-TRP-Element-r16.h" +#include "RelativeCartesianLocation-r18.h" +#include "NR-IntegrityLocationBounds-r18.h" +static int +memb_dl_PRS_ID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_associated_DL_PRS_ID_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_trp_DL_PRS_ResourceSets_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 2UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_trp_DL_PRS_ResourceSets_r16_constr_8 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dl_PRS_ID_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_associated_DL_PRS_ID_r16_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_trp_DL_PRS_ResourceSets_r16_constr_8 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_trp_DL_PRS_ResourceSets_r16_8[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_DL_PRS_ResourceSets_TRP_Element_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_trp_DL_PRS_ResourceSets_r16_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_trp_DL_PRS_ResourceSets_r16_specs_8 = { + sizeof(struct TRP_LocationInfoElement_r16__trp_DL_PRS_ResourceSets_r16), + offsetof(struct TRP_LocationInfoElement_r16__trp_DL_PRS_ResourceSets_r16, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_trp_DL_PRS_ResourceSets_r16_8 = { + "trp-DL-PRS-ResourceSets-r16", + "trp-DL-PRS-ResourceSets-r16", + &asn_OP_SEQUENCE_OF, + asn_DEF_trp_DL_PRS_ResourceSets_r16_tags_8, + sizeof(asn_DEF_trp_DL_PRS_ResourceSets_r16_tags_8) + /sizeof(asn_DEF_trp_DL_PRS_ResourceSets_r16_tags_8[0]) - 1, /* 1 */ + asn_DEF_trp_DL_PRS_ResourceSets_r16_tags_8, /* Same as above */ + sizeof(asn_DEF_trp_DL_PRS_ResourceSets_r16_tags_8) + /sizeof(asn_DEF_trp_DL_PRS_ResourceSets_r16_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_trp_DL_PRS_ResourceSets_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_trp_DL_PRS_ResourceSets_r16_8, + 1, /* Single element */ + &asn_SPC_trp_DL_PRS_ResourceSets_r16_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_11[] = { + { ATF_POINTER, 2, offsetof(struct TRP_LocationInfoElement_r16__ext1, trp_LocationCartesian_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RelativeCartesianLocation_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "trp-LocationCartesian-r18" + }, + { ATF_POINTER, 1, offsetof(struct TRP_LocationInfoElement_r16__ext1, nr_IntegrityTRP_LocationBounds_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_IntegrityLocationBounds_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-IntegrityTRP-LocationBounds-r18" + }, +}; +static const int asn_MAP_ext1_oms_11[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_11[] = { + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_11[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* trp-LocationCartesian-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nr-IntegrityTRP-LocationBounds-r18 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_11 = { + sizeof(struct TRP_LocationInfoElement_r16__ext1), + offsetof(struct TRP_LocationInfoElement_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_11, + 2, /* Count of tags in the map */ + asn_MAP_ext1_oms_11, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_11 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_11, + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_11, /* Same as above */ + sizeof(asn_DEF_ext1_tags_11) + /sizeof(asn_DEF_ext1_tags_11[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_11, + 2, /* Elements count */ + &asn_SPC_ext1_specs_11 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_TRP_LocationInfoElement_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct TRP_LocationInfoElement_r16, dl_PRS_ID_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dl_PRS_ID_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_dl_PRS_ID_r16_constraint_1 + }, + 0, 0, /* No default value */ + "dl-PRS-ID-r16" + }, + { ATF_POINTER, 7, offsetof(struct TRP_LocationInfoElement_r16, nr_PhysCellID_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NR_PhysCellID_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-PhysCellID-r16" + }, + { ATF_POINTER, 6, offsetof(struct TRP_LocationInfoElement_r16, nr_CellGlobalID_r16), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NCGI_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-CellGlobalID-r16" + }, + { ATF_POINTER, 5, offsetof(struct TRP_LocationInfoElement_r16, nr_ARFCN_r16), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ARFCN_ValueNR_r15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nr-ARFCN-r16" + }, + { ATF_POINTER, 4, offsetof(struct TRP_LocationInfoElement_r16, associated_DL_PRS_ID_r16), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_associated_DL_PRS_ID_r16_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_associated_DL_PRS_ID_r16_constraint_1 + }, + 0, 0, /* No default value */ + "associated-DL-PRS-ID-r16" + }, + { ATF_POINTER, 3, offsetof(struct TRP_LocationInfoElement_r16, trp_Location_r16), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RelativeLocation_r16, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "trp-Location-r16" + }, + { ATF_POINTER, 2, offsetof(struct TRP_LocationInfoElement_r16, trp_DL_PRS_ResourceSets_r16), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_trp_DL_PRS_ResourceSets_r16_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_trp_DL_PRS_ResourceSets_r16_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_trp_DL_PRS_ResourceSets_r16_constraint_1 + }, + 0, 0, /* No default value */ + "trp-DL-PRS-ResourceSets-r16" + }, + { ATF_POINTER, 1, offsetof(struct TRP_LocationInfoElement_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + 0, + &asn_DEF_ext1_11, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_TRP_LocationInfoElement_r16_oms_1[] = { 1, 2, 3, 4, 5, 6, 7 }; +static const ber_tlv_tag_t asn_DEF_TRP_LocationInfoElement_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TRP_LocationInfoElement_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-PRS-ID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nr-PhysCellID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nr-CellGlobalID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nr-ARFCN-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* associated-DL-PRS-ID-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* trp-Location-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* trp-DL-PRS-ResourceSets-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TRP_LocationInfoElement_r16_specs_1 = { + sizeof(struct TRP_LocationInfoElement_r16), + offsetof(struct TRP_LocationInfoElement_r16, _asn_ctx), + asn_MAP_TRP_LocationInfoElement_r16_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_TRP_LocationInfoElement_r16_oms_1, /* Optional members */ + 6, 1, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TRP_LocationInfoElement_r16 = { + "TRP-LocationInfoElement-r16", + "TRP-LocationInfoElement-r16", + &asn_OP_SEQUENCE, + asn_DEF_TRP_LocationInfoElement_r16_tags_1, + sizeof(asn_DEF_TRP_LocationInfoElement_r16_tags_1) + /sizeof(asn_DEF_TRP_LocationInfoElement_r16_tags_1[0]), /* 1 */ + asn_DEF_TRP_LocationInfoElement_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_TRP_LocationInfoElement_r16_tags_1) + /sizeof(asn_DEF_TRP_LocationInfoElement_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TRP_LocationInfoElement_r16_1, + 8, /* Elements count */ + &asn_SPC_TRP_LocationInfoElement_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/TRP-LocationInfoElement-r16.h b/asn.1/lpp_generated/TRP-LocationInfoElement-r16.h new file mode 100644 index 00000000..5f771ab7 --- /dev/null +++ b/asn.1/lpp_generated/TRP-LocationInfoElement-r16.h @@ -0,0 +1,73 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _TRP_LocationInfoElement_r16_H_ +#define _TRP_LocationInfoElement_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include "NR-PhysCellID-r16.h" +#include "ARFCN-ValueNR-r15.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct NCGI_r15; +struct RelativeLocation_r16; +struct DL_PRS_ResourceSets_TRP_Element_r16; +struct RelativeCartesianLocation_r18; +struct NR_IntegrityLocationBounds_r18; + +/* TRP-LocationInfoElement-r16 */ +typedef struct TRP_LocationInfoElement_r16 { + long dl_PRS_ID_r16; + NR_PhysCellID_r16_t *nr_PhysCellID_r16; /* OPTIONAL */ + struct NCGI_r15 *nr_CellGlobalID_r16; /* OPTIONAL */ + ARFCN_ValueNR_r15_t *nr_ARFCN_r16; /* OPTIONAL */ + long *associated_DL_PRS_ID_r16; /* OPTIONAL */ + struct RelativeLocation_r16 *trp_Location_r16; /* OPTIONAL */ + struct TRP_LocationInfoElement_r16__trp_DL_PRS_ResourceSets_r16 { + A_SEQUENCE_OF(struct DL_PRS_ResourceSets_TRP_Element_r16) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *trp_DL_PRS_ResourceSets_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct TRP_LocationInfoElement_r16__ext1 { + struct RelativeCartesianLocation_r18 *trp_LocationCartesian_r18; /* OPTIONAL */ + struct NR_IntegrityLocationBounds_r18 *nr_IntegrityTRP_LocationBounds_r18; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} TRP_LocationInfoElement_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_TRP_LocationInfoElement_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_TRP_LocationInfoElement_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_TRP_LocationInfoElement_r16_1[8]; + +#ifdef __cplusplus +} +#endif + +#endif /* _TRP_LocationInfoElement_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/TargetIntegrityRisk-r17.c b/asn.1/lpp_generated/TargetIntegrityRisk-r17.c new file mode 100644 index 00000000..b2c910bc --- /dev/null +++ b/asn.1/lpp_generated/TargetIntegrityRisk-r17.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "TargetIntegrityRisk-r17.h" + +int +TargetIntegrityRisk_r17_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 10L && value <= 90L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TargetIntegrityRisk_r17_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 10, 90 } /* (10..90) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_TargetIntegrityRisk_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TargetIntegrityRisk_r17 = { + "TargetIntegrityRisk-r17", + "TargetIntegrityRisk-r17", + &asn_OP_NativeInteger, + asn_DEF_TargetIntegrityRisk_r17_tags_1, + sizeof(asn_DEF_TargetIntegrityRisk_r17_tags_1) + /sizeof(asn_DEF_TargetIntegrityRisk_r17_tags_1[0]), /* 1 */ + asn_DEF_TargetIntegrityRisk_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_TargetIntegrityRisk_r17_tags_1) + /sizeof(asn_DEF_TargetIntegrityRisk_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TargetIntegrityRisk_r17_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + TargetIntegrityRisk_r17_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/lpp_generated/TargetIntegrityRisk-r17.h b/asn.1/lpp_generated/TargetIntegrityRisk-r17.h new file mode 100644 index 00000000..6c063756 --- /dev/null +++ b/asn.1/lpp_generated/TargetIntegrityRisk-r17.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _TargetIntegrityRisk_r17_H_ +#define _TargetIntegrityRisk_r17_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* TargetIntegrityRisk-r17 */ +typedef long TargetIntegrityRisk_r17_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_TargetIntegrityRisk_r17_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_TargetIntegrityRisk_r17; +asn_struct_free_f TargetIntegrityRisk_r17_free; +asn_constr_check_f TargetIntegrityRisk_r17_constraint; +xer_type_decoder_f TargetIntegrityRisk_r17_decode_xer; +xer_type_encoder_f TargetIntegrityRisk_r17_encode_xer; +jer_type_encoder_f TargetIntegrityRisk_r17_encode_jer; +per_type_decoder_f TargetIntegrityRisk_r17_decode_uper; +per_type_encoder_f TargetIntegrityRisk_r17_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _TargetIntegrityRisk_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/TransactionNumber.c b/asn.1/lpp_generated/TransactionNumber.c new file mode 100644 index 00000000..d41206ee --- /dev/null +++ b/asn.1/lpp_generated/TransactionNumber.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "TransactionNumber.h" + +int +TransactionNumber_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TransactionNumber_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_TransactionNumber_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TransactionNumber = { + "TransactionNumber", + "TransactionNumber", + &asn_OP_NativeInteger, + asn_DEF_TransactionNumber_tags_1, + sizeof(asn_DEF_TransactionNumber_tags_1) + /sizeof(asn_DEF_TransactionNumber_tags_1[0]), /* 1 */ + asn_DEF_TransactionNumber_tags_1, /* Same as above */ + sizeof(asn_DEF_TransactionNumber_tags_1) + /sizeof(asn_DEF_TransactionNumber_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TransactionNumber_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + TransactionNumber_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/lpp_generated/TransactionNumber.h b/asn.1/lpp_generated/TransactionNumber.h new file mode 100644 index 00000000..2638e135 --- /dev/null +++ b/asn.1/lpp_generated/TransactionNumber.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _TransactionNumber_H_ +#define _TransactionNumber_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* TransactionNumber */ +typedef long TransactionNumber_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_TransactionNumber_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_TransactionNumber; +asn_struct_free_f TransactionNumber_free; +asn_constr_check_f TransactionNumber_constraint; +xer_type_decoder_f TransactionNumber_decode_xer; +xer_type_encoder_f TransactionNumber_encode_xer; +jer_type_encoder_f TransactionNumber_encode_jer; +per_type_decoder_f TransactionNumber_decode_uper; +per_type_encoder_f TransactionNumber_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _TransactionNumber_H_ */ +#include diff --git a/asn.1/lpp_generated/TriggeredReportingCriteria.c b/asn.1/lpp_generated/TriggeredReportingCriteria.c new file mode 100644 index 00000000..3fd54194 --- /dev/null +++ b/asn.1/lpp_generated/TriggeredReportingCriteria.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "TriggeredReportingCriteria.h" + +asn_TYPE_member_t asn_MBR_TriggeredReportingCriteria_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct TriggeredReportingCriteria, cellChange), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellChange" + }, + { ATF_NOFLAGS, 0, offsetof(struct TriggeredReportingCriteria, reportingDuration), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReportingDuration, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reportingDuration" + }, +}; +static const ber_tlv_tag_t asn_DEF_TriggeredReportingCriteria_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TriggeredReportingCriteria_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellChange */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* reportingDuration */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TriggeredReportingCriteria_specs_1 = { + sizeof(struct TriggeredReportingCriteria), + offsetof(struct TriggeredReportingCriteria, _asn_ctx), + asn_MAP_TriggeredReportingCriteria_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TriggeredReportingCriteria = { + "TriggeredReportingCriteria", + "TriggeredReportingCriteria", + &asn_OP_SEQUENCE, + asn_DEF_TriggeredReportingCriteria_tags_1, + sizeof(asn_DEF_TriggeredReportingCriteria_tags_1) + /sizeof(asn_DEF_TriggeredReportingCriteria_tags_1[0]), /* 1 */ + asn_DEF_TriggeredReportingCriteria_tags_1, /* Same as above */ + sizeof(asn_DEF_TriggeredReportingCriteria_tags_1) + /sizeof(asn_DEF_TriggeredReportingCriteria_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TriggeredReportingCriteria_1, + 2, /* Elements count */ + &asn_SPC_TriggeredReportingCriteria_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/TriggeredReportingCriteria.h b/asn.1/lpp_generated/TriggeredReportingCriteria.h similarity index 80% rename from asn.1/generated/TriggeredReportingCriteria.h rename to asn.1/lpp_generated/TriggeredReportingCriteria.h index 11ac54a0..3afa4f09 100644 --- a/asn.1/generated/TriggeredReportingCriteria.h +++ b/asn.1/lpp_generated/TriggeredReportingCriteria.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _TriggeredReportingCriteria_H_ diff --git a/asn.1/lpp_generated/TropoDelayIntegrityErrorBounds-r17.c b/asn.1/lpp_generated/TropoDelayIntegrityErrorBounds-r17.c new file mode 100644 index 00000000..6d9447cc --- /dev/null +++ b/asn.1/lpp_generated/TropoDelayIntegrityErrorBounds-r17.c @@ -0,0 +1,448 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "TropoDelayIntegrityErrorBounds-r17.h" + +static int +memb_meanTroposphereVerticalHydroStaticDelay_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stdDevTroposphereVerticalHydroStaticDelay_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_meanTroposphereVerticalWetDelay_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stdDevTroposphereVerticalWetDelay_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_meanTroposphereVerticalHydroStaticDelayRate_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stdDevTroposphereVerticalHydroStaticDelayRate_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_meanTroposphereVerticalWetDelayRate_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stdDevTroposphereVerticalWetDelayRate_r17_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanTroposphereVerticalHydroStaticDelay_r17_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stdDevTroposphereVerticalHydroStaticDelay_r17_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanTroposphereVerticalWetDelay_r17_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stdDevTroposphereVerticalWetDelay_r17_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanTroposphereVerticalHydroStaticDelayRate_r17_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stdDevTroposphereVerticalHydroStaticDelayRate_r17_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_meanTroposphereVerticalWetDelayRate_r17_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stdDevTroposphereVerticalWetDelayRate_r17_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_TropoDelayIntegrityErrorBounds_r17_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct TropoDelayIntegrityErrorBounds_r17, meanTroposphereVerticalHydroStaticDelay_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanTroposphereVerticalHydroStaticDelay_r17_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanTroposphereVerticalHydroStaticDelay_r17_constraint_1 + }, + 0, 0, /* No default value */ + "meanTroposphereVerticalHydroStaticDelay-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct TropoDelayIntegrityErrorBounds_r17, stdDevTroposphereVerticalHydroStaticDelay_r17), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stdDevTroposphereVerticalHydroStaticDelay_r17_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stdDevTroposphereVerticalHydroStaticDelay_r17_constraint_1 + }, + 0, 0, /* No default value */ + "stdDevTroposphereVerticalHydroStaticDelay-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct TropoDelayIntegrityErrorBounds_r17, meanTroposphereVerticalWetDelay_r17), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanTroposphereVerticalWetDelay_r17_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanTroposphereVerticalWetDelay_r17_constraint_1 + }, + 0, 0, /* No default value */ + "meanTroposphereVerticalWetDelay-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct TropoDelayIntegrityErrorBounds_r17, stdDevTroposphereVerticalWetDelay_r17), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stdDevTroposphereVerticalWetDelay_r17_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stdDevTroposphereVerticalWetDelay_r17_constraint_1 + }, + 0, 0, /* No default value */ + "stdDevTroposphereVerticalWetDelay-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct TropoDelayIntegrityErrorBounds_r17, meanTroposphereVerticalHydroStaticDelayRate_r17), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanTroposphereVerticalHydroStaticDelayRate_r17_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanTroposphereVerticalHydroStaticDelayRate_r17_constraint_1 + }, + 0, 0, /* No default value */ + "meanTroposphereVerticalHydroStaticDelayRate-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct TropoDelayIntegrityErrorBounds_r17, stdDevTroposphereVerticalHydroStaticDelayRate_r17), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stdDevTroposphereVerticalHydroStaticDelayRate_r17_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stdDevTroposphereVerticalHydroStaticDelayRate_r17_constraint_1 + }, + 0, 0, /* No default value */ + "stdDevTroposphereVerticalHydroStaticDelayRate-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct TropoDelayIntegrityErrorBounds_r17, meanTroposphereVerticalWetDelayRate_r17), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_meanTroposphereVerticalWetDelayRate_r17_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_meanTroposphereVerticalWetDelayRate_r17_constraint_1 + }, + 0, 0, /* No default value */ + "meanTroposphereVerticalWetDelayRate-r17" + }, + { ATF_NOFLAGS, 0, offsetof(struct TropoDelayIntegrityErrorBounds_r17, stdDevTroposphereVerticalWetDelayRate_r17), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stdDevTroposphereVerticalWetDelayRate_r17_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stdDevTroposphereVerticalWetDelayRate_r17_constraint_1 + }, + 0, 0, /* No default value */ + "stdDevTroposphereVerticalWetDelayRate-r17" + }, +}; +static const ber_tlv_tag_t asn_DEF_TropoDelayIntegrityErrorBounds_r17_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TropoDelayIntegrityErrorBounds_r17_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* meanTroposphereVerticalHydroStaticDelay-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* stdDevTroposphereVerticalHydroStaticDelay-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* meanTroposphereVerticalWetDelay-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* stdDevTroposphereVerticalWetDelay-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* meanTroposphereVerticalHydroStaticDelayRate-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* stdDevTroposphereVerticalHydroStaticDelayRate-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* meanTroposphereVerticalWetDelayRate-r17 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* stdDevTroposphereVerticalWetDelayRate-r17 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TropoDelayIntegrityErrorBounds_r17_specs_1 = { + sizeof(struct TropoDelayIntegrityErrorBounds_r17), + offsetof(struct TropoDelayIntegrityErrorBounds_r17, _asn_ctx), + asn_MAP_TropoDelayIntegrityErrorBounds_r17_tag2el_1, + 8, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 8, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TropoDelayIntegrityErrorBounds_r17 = { + "TropoDelayIntegrityErrorBounds-r17", + "TropoDelayIntegrityErrorBounds-r17", + &asn_OP_SEQUENCE, + asn_DEF_TropoDelayIntegrityErrorBounds_r17_tags_1, + sizeof(asn_DEF_TropoDelayIntegrityErrorBounds_r17_tags_1) + /sizeof(asn_DEF_TropoDelayIntegrityErrorBounds_r17_tags_1[0]), /* 1 */ + asn_DEF_TropoDelayIntegrityErrorBounds_r17_tags_1, /* Same as above */ + sizeof(asn_DEF_TropoDelayIntegrityErrorBounds_r17_tags_1) + /sizeof(asn_DEF_TropoDelayIntegrityErrorBounds_r17_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TropoDelayIntegrityErrorBounds_r17_1, + 8, /* Elements count */ + &asn_SPC_TropoDelayIntegrityErrorBounds_r17_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/TropoDelayIntegrityErrorBounds-r17.h b/asn.1/lpp_generated/TropoDelayIntegrityErrorBounds-r17.h new file mode 100644 index 00000000..c5026029 --- /dev/null +++ b/asn.1/lpp_generated/TropoDelayIntegrityErrorBounds-r17.h @@ -0,0 +1,51 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _TropoDelayIntegrityErrorBounds_r17_H_ +#define _TropoDelayIntegrityErrorBounds_r17_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* TropoDelayIntegrityErrorBounds-r17 */ +typedef struct TropoDelayIntegrityErrorBounds_r17 { + long meanTroposphereVerticalHydroStaticDelay_r17; + long stdDevTroposphereVerticalHydroStaticDelay_r17; + long meanTroposphereVerticalWetDelay_r17; + long stdDevTroposphereVerticalWetDelay_r17; + long meanTroposphereVerticalHydroStaticDelayRate_r17; + long stdDevTroposphereVerticalHydroStaticDelayRate_r17; + long meanTroposphereVerticalWetDelayRate_r17; + long stdDevTroposphereVerticalWetDelayRate_r17; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} TropoDelayIntegrityErrorBounds_r17_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_TropoDelayIntegrityErrorBounds_r17; +extern asn_SEQUENCE_specifics_t asn_SPC_TropoDelayIntegrityErrorBounds_r17_specs_1; +extern asn_TYPE_member_t asn_MBR_TropoDelayIntegrityErrorBounds_r17_1[8]; + +#ifdef __cplusplus +} +#endif + +#endif /* _TropoDelayIntegrityErrorBounds_r17_H_ */ +#include diff --git a/asn.1/lpp_generated/TropospericDelayCorrection-r16.c b/asn.1/lpp_generated/TropospericDelayCorrection-r16.c new file mode 100644 index 00000000..df6a1322 --- /dev/null +++ b/asn.1/lpp_generated/TropospericDelayCorrection-r16.c @@ -0,0 +1,230 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "TropospericDelayCorrection-r16.h" + +#include "TropoDelayIntegrityErrorBounds-r17.h" +static int +memb_tropoHydroStaticVerticalDelay_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -256L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_tropoWetVerticalDelay_r16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tropoHydroStaticVerticalDelay_r16_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, -256, 255 } /* (-256..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tropoWetVerticalDelay_r16_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_5[] = { + { ATF_POINTER, 1, offsetof(struct TropospericDelayCorrection_r16__ext1, tropoDelayIntegrityErrorBounds_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TropoDelayIntegrityErrorBounds_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tropoDelayIntegrityErrorBounds-r17" + }, +}; +static const int asn_MAP_ext1_oms_5[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* tropoDelayIntegrityErrorBounds-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = { + sizeof(struct TropospericDelayCorrection_r16__ext1), + offsetof(struct TropospericDelayCorrection_r16__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_5, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_5, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_5 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_5, + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_5, /* Same as above */ + sizeof(asn_DEF_ext1_tags_5) + /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_5, + 1, /* Elements count */ + &asn_SPC_ext1_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_TropospericDelayCorrection_r16_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct TropospericDelayCorrection_r16, tropoHydroStaticVerticalDelay_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tropoHydroStaticVerticalDelay_r16_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tropoHydroStaticVerticalDelay_r16_constraint_1 + }, + 0, 0, /* No default value */ + "tropoHydroStaticVerticalDelay-r16" + }, + { ATF_NOFLAGS, 0, offsetof(struct TropospericDelayCorrection_r16, tropoWetVerticalDelay_r16), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tropoWetVerticalDelay_r16_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tropoWetVerticalDelay_r16_constraint_1 + }, + 0, 0, /* No default value */ + "tropoWetVerticalDelay-r16" + }, + { ATF_POINTER, 1, offsetof(struct TropospericDelayCorrection_r16, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_TropospericDelayCorrection_r16_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_TropospericDelayCorrection_r16_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TropospericDelayCorrection_r16_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tropoHydroStaticVerticalDelay-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tropoWetVerticalDelay-r16 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TropospericDelayCorrection_r16_specs_1 = { + sizeof(struct TropospericDelayCorrection_r16), + offsetof(struct TropospericDelayCorrection_r16, _asn_ctx), + asn_MAP_TropospericDelayCorrection_r16_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_TropospericDelayCorrection_r16_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TropospericDelayCorrection_r16 = { + "TropospericDelayCorrection-r16", + "TropospericDelayCorrection-r16", + &asn_OP_SEQUENCE, + asn_DEF_TropospericDelayCorrection_r16_tags_1, + sizeof(asn_DEF_TropospericDelayCorrection_r16_tags_1) + /sizeof(asn_DEF_TropospericDelayCorrection_r16_tags_1[0]), /* 1 */ + asn_DEF_TropospericDelayCorrection_r16_tags_1, /* Same as above */ + sizeof(asn_DEF_TropospericDelayCorrection_r16_tags_1) + /sizeof(asn_DEF_TropospericDelayCorrection_r16_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TropospericDelayCorrection_r16_1, + 3, /* Elements count */ + &asn_SPC_TropospericDelayCorrection_r16_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/TropospericDelayCorrection-r16.h b/asn.1/lpp_generated/TropospericDelayCorrection-r16.h new file mode 100644 index 00000000..e68a6a95 --- /dev/null +++ b/asn.1/lpp_generated/TropospericDelayCorrection-r16.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _TropospericDelayCorrection_r16_H_ +#define _TropospericDelayCorrection_r16_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct TropoDelayIntegrityErrorBounds_r17; + +/* TropospericDelayCorrection-r16 */ +typedef struct TropospericDelayCorrection_r16 { + long tropoHydroStaticVerticalDelay_r16; + long tropoWetVerticalDelay_r16; + /* + * This type is extensible, + * possible extensions are below. + */ + struct TropospericDelayCorrection_r16__ext1 { + struct TropoDelayIntegrityErrorBounds_r17 *tropoDelayIntegrityErrorBounds_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext1; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} TropospericDelayCorrection_r16_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_TropospericDelayCorrection_r16; +extern asn_SEQUENCE_specifics_t asn_SPC_TropospericDelayCorrection_r16_specs_1; +extern asn_TYPE_member_t asn_MBR_TropospericDelayCorrection_r16_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _TropospericDelayCorrection_r16_H_ */ +#include diff --git a/asn.1/lpp_generated/UTC-ModelSet1.c b/asn.1/lpp_generated/UTC-ModelSet1.c new file mode 100644 index 00000000..8cd841ac --- /dev/null +++ b/asn.1/lpp_generated/UTC-ModelSet1.c @@ -0,0 +1,448 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "UTC-ModelSet1.h" + +static int +memb_gnss_Utc_A1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gnss_Utc_A0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gnss_Utc_Tot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gnss_Utc_WNt_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gnss_Utc_DeltaTls_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gnss_Utc_WNlsf_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gnss_Utc_DN_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gnss_Utc_DeltaTlsf_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_Utc_A1_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_Utc_A0_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_Utc_Tot_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_Utc_WNt_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_Utc_DeltaTls_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_Utc_WNlsf_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_Utc_DN_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gnss_Utc_DeltaTlsf_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_UTC_ModelSet1_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet1, gnss_Utc_A1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_Utc_A1_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_Utc_A1_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-Utc-A1" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet1, gnss_Utc_A0), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_Utc_A0_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_Utc_A0_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-Utc-A0" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet1, gnss_Utc_Tot), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_Utc_Tot_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_Utc_Tot_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-Utc-Tot" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet1, gnss_Utc_WNt), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_Utc_WNt_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_Utc_WNt_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-Utc-WNt" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet1, gnss_Utc_DeltaTls), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_Utc_DeltaTls_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_Utc_DeltaTls_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-Utc-DeltaTls" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet1, gnss_Utc_WNlsf), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_Utc_WNlsf_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_Utc_WNlsf_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-Utc-WNlsf" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet1, gnss_Utc_DN), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_Utc_DN_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_Utc_DN_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-Utc-DN" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet1, gnss_Utc_DeltaTlsf), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gnss_Utc_DeltaTlsf_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gnss_Utc_DeltaTlsf_constraint_1 + }, + 0, 0, /* No default value */ + "gnss-Utc-DeltaTlsf" + }, +}; +static const ber_tlv_tag_t asn_DEF_UTC_ModelSet1_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_UTC_ModelSet1_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnss-Utc-A1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gnss-Utc-A0 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnss-Utc-Tot */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gnss-Utc-WNt */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnss-Utc-DeltaTls */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gnss-Utc-WNlsf */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnss-Utc-DN */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* gnss-Utc-DeltaTlsf */ +}; +asn_SEQUENCE_specifics_t asn_SPC_UTC_ModelSet1_specs_1 = { + sizeof(struct UTC_ModelSet1), + offsetof(struct UTC_ModelSet1, _asn_ctx), + asn_MAP_UTC_ModelSet1_tag2el_1, + 8, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 8, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_UTC_ModelSet1 = { + "UTC-ModelSet1", + "UTC-ModelSet1", + &asn_OP_SEQUENCE, + asn_DEF_UTC_ModelSet1_tags_1, + sizeof(asn_DEF_UTC_ModelSet1_tags_1) + /sizeof(asn_DEF_UTC_ModelSet1_tags_1[0]), /* 1 */ + asn_DEF_UTC_ModelSet1_tags_1, /* Same as above */ + sizeof(asn_DEF_UTC_ModelSet1_tags_1) + /sizeof(asn_DEF_UTC_ModelSet1_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_UTC_ModelSet1_1, + 8, /* Elements count */ + &asn_SPC_UTC_ModelSet1_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/UTC-ModelSet1.h b/asn.1/lpp_generated/UTC-ModelSet1.h similarity index 80% rename from asn.1/generated/UTC-ModelSet1.h rename to asn.1/lpp_generated/UTC-ModelSet1.h index 5d9b6d7c..05d65288 100644 --- a/asn.1/generated/UTC-ModelSet1.h +++ b/asn.1/lpp_generated/UTC-ModelSet1.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _UTC_ModelSet1_H_ diff --git a/asn.1/lpp_generated/UTC-ModelSet2.c b/asn.1/lpp_generated/UTC-ModelSet2.c new file mode 100644 index 00000000..d77ba64d --- /dev/null +++ b/asn.1/lpp_generated/UTC-ModelSet2.c @@ -0,0 +1,617 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "UTC-ModelSet2.h" + +static int +memb_utcWNlsf_ext_r16_constraint_12(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 256L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcA0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcA1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -4096L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcA2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -64L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcDeltaTls_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcTot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcWNot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcWNlsf_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcDN_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 4UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcDeltaTlsf_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcWNlsf_ext_r16_constr_13 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, 256, 8191 } /* (256..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcA0_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcA1_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, -4096, 4095 } /* (-4096..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcA2_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcDeltaTls_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcTot_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcWNot_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, 0, 8191 } /* (0..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcWNlsf_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcDN_constr_9 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcDeltaTlsf_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_12[] = { + { ATF_POINTER, 1, offsetof(struct UTC_ModelSet2__ext1, utcWNlsf_ext_r16), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcWNlsf_ext_r16_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcWNlsf_ext_r16_constraint_12 + }, + 0, 0, /* No default value */ + "utcWNlsf-ext-r16" + }, +}; +static const int asn_MAP_ext1_oms_12[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_12[] = { + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_12[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* utcWNlsf-ext-r16 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_12 = { + sizeof(struct UTC_ModelSet2__ext1), + offsetof(struct UTC_ModelSet2__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_12, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_12, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_12 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_12, + sizeof(asn_DEF_ext1_tags_12) + /sizeof(asn_DEF_ext1_tags_12[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_12, /* Same as above */ + sizeof(asn_DEF_ext1_tags_12) + /sizeof(asn_DEF_ext1_tags_12[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_12, + 1, /* Elements count */ + &asn_SPC_ext1_specs_12 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_UTC_ModelSet2_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet2, utcA0), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcA0_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcA0_constraint_1 + }, + 0, 0, /* No default value */ + "utcA0" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet2, utcA1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcA1_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcA1_constraint_1 + }, + 0, 0, /* No default value */ + "utcA1" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet2, utcA2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcA2_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcA2_constraint_1 + }, + 0, 0, /* No default value */ + "utcA2" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet2, utcDeltaTls), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcDeltaTls_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcDeltaTls_constraint_1 + }, + 0, 0, /* No default value */ + "utcDeltaTls" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet2, utcTot), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcTot_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcTot_constraint_1 + }, + 0, 0, /* No default value */ + "utcTot" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet2, utcWNot), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcWNot_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcWNot_constraint_1 + }, + 0, 0, /* No default value */ + "utcWNot" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet2, utcWNlsf), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcWNlsf_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcWNlsf_constraint_1 + }, + 0, 0, /* No default value */ + "utcWNlsf" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet2, utcDN), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcDN_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcDN_constraint_1 + }, + 0, 0, /* No default value */ + "utcDN" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet2, utcDeltaTlsf), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcDeltaTlsf_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcDeltaTlsf_constraint_1 + }, + 0, 0, /* No default value */ + "utcDeltaTlsf" + }, + { ATF_POINTER, 1, offsetof(struct UTC_ModelSet2, ext1), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + 0, + &asn_DEF_ext1_12, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_UTC_ModelSet2_oms_1[] = { 9 }; +static const ber_tlv_tag_t asn_DEF_UTC_ModelSet2_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_UTC_ModelSet2_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utcA0 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* utcA1 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* utcA2 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* utcDeltaTls */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* utcTot */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* utcWNot */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* utcWNlsf */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* utcDN */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* utcDeltaTlsf */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_UTC_ModelSet2_specs_1 = { + sizeof(struct UTC_ModelSet2), + offsetof(struct UTC_ModelSet2, _asn_ctx), + asn_MAP_UTC_ModelSet2_tag2el_1, + 10, /* Count of tags in the map */ + asn_MAP_UTC_ModelSet2_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 9, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_UTC_ModelSet2 = { + "UTC-ModelSet2", + "UTC-ModelSet2", + &asn_OP_SEQUENCE, + asn_DEF_UTC_ModelSet2_tags_1, + sizeof(asn_DEF_UTC_ModelSet2_tags_1) + /sizeof(asn_DEF_UTC_ModelSet2_tags_1[0]), /* 1 */ + asn_DEF_UTC_ModelSet2_tags_1, /* Same as above */ + sizeof(asn_DEF_UTC_ModelSet2_tags_1) + /sizeof(asn_DEF_UTC_ModelSet2_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_UTC_ModelSet2_1, + 10, /* Elements count */ + &asn_SPC_UTC_ModelSet2_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/UTC-ModelSet2.h b/asn.1/lpp_generated/UTC-ModelSet2.h similarity index 79% rename from asn.1/generated/UTC-ModelSet2.h rename to asn.1/lpp_generated/UTC-ModelSet2.h index 5fc1c122..09ddbc95 100644 --- a/asn.1/generated/UTC-ModelSet2.h +++ b/asn.1/lpp_generated/UTC-ModelSet2.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _UTC_ModelSet2_H_ @@ -36,7 +36,7 @@ typedef struct UTC_ModelSet2 { * possible extensions are below. */ struct UTC_ModelSet2__ext1 { - long *utcWNlsf_ext_r16 /* OPTIONAL */; + long *utcWNlsf_ext_r16; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/UTC-ModelSet3.c b/asn.1/lpp_generated/UTC-ModelSet3.c new file mode 100644 index 00000000..fc270dbe --- /dev/null +++ b/asn.1/lpp_generated/UTC-ModelSet3.c @@ -0,0 +1,306 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "UTC-ModelSet3.h" + +static int +memb_nA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1461L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_tauC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_b1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_b2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -512L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_kp_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 2UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nA_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 1, 1461 } /* (1..1461) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tauC_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_b1_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_b2_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_kp_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_UTC_ModelSet3_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet3, nA), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nA_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nA_constraint_1 + }, + 0, 0, /* No default value */ + "nA" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet3, tauC), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tauC_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tauC_constraint_1 + }, + 0, 0, /* No default value */ + "tauC" + }, + { ATF_POINTER, 3, offsetof(struct UTC_ModelSet3, b1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_b1_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_b1_constraint_1 + }, + 0, 0, /* No default value */ + "b1" + }, + { ATF_POINTER, 2, offsetof(struct UTC_ModelSet3, b2), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_b2_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_b2_constraint_1 + }, + 0, 0, /* No default value */ + "b2" + }, + { ATF_POINTER, 1, offsetof(struct UTC_ModelSet3, kp), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_kp_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_kp_constraint_1 + }, + 0, 0, /* No default value */ + "kp" + }, +}; +static const int asn_MAP_UTC_ModelSet3_oms_1[] = { 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_UTC_ModelSet3_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_UTC_ModelSet3_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nA */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tauC */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* b1 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* b2 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* kp */ +}; +asn_SEQUENCE_specifics_t asn_SPC_UTC_ModelSet3_specs_1 = { + sizeof(struct UTC_ModelSet3), + offsetof(struct UTC_ModelSet3, _asn_ctx), + asn_MAP_UTC_ModelSet3_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_UTC_ModelSet3_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_UTC_ModelSet3 = { + "UTC-ModelSet3", + "UTC-ModelSet3", + &asn_OP_SEQUENCE, + asn_DEF_UTC_ModelSet3_tags_1, + sizeof(asn_DEF_UTC_ModelSet3_tags_1) + /sizeof(asn_DEF_UTC_ModelSet3_tags_1[0]), /* 1 */ + asn_DEF_UTC_ModelSet3_tags_1, /* Same as above */ + sizeof(asn_DEF_UTC_ModelSet3_tags_1) + /sizeof(asn_DEF_UTC_ModelSet3_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_UTC_ModelSet3_1, + 5, /* Elements count */ + &asn_SPC_UTC_ModelSet3_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/UTC-ModelSet3.h b/asn.1/lpp_generated/UTC-ModelSet3.h new file mode 100644 index 00000000..1c0c9047 --- /dev/null +++ b/asn.1/lpp_generated/UTC-ModelSet3.h @@ -0,0 +1,49 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _UTC_ModelSet3_H_ +#define _UTC_ModelSet3_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* UTC-ModelSet3 */ +typedef struct UTC_ModelSet3 { + long nA; + long tauC; + long *b1; /* OPTIONAL */ + long *b2; /* OPTIONAL */ + BIT_STRING_t *kp; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} UTC_ModelSet3_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_UTC_ModelSet3; +extern asn_SEQUENCE_specifics_t asn_SPC_UTC_ModelSet3_specs_1; +extern asn_TYPE_member_t asn_MBR_UTC_ModelSet3_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _UTC_ModelSet3_H_ */ +#include diff --git a/asn.1/lpp_generated/UTC-ModelSet4.c b/asn.1/lpp_generated/UTC-ModelSet4.c new file mode 100644 index 00000000..464acce5 --- /dev/null +++ b/asn.1/lpp_generated/UTC-ModelSet4.c @@ -0,0 +1,498 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "UTC-ModelSet4.h" + +static int +memb_utcA1wnt_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcA0wnt_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcTot_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcWNt_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcDeltaTls_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcWNlsf_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcDN_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcDeltaTlsf_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcStandardID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcA1wnt_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcA0wnt_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcTot_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcWNt_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcDeltaTls_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcWNlsf_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcDN_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcDeltaTlsf_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcStandardID_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_UTC_ModelSet4_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet4, utcA1wnt), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcA1wnt_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcA1wnt_constraint_1 + }, + 0, 0, /* No default value */ + "utcA1wnt" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet4, utcA0wnt), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcA0wnt_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcA0wnt_constraint_1 + }, + 0, 0, /* No default value */ + "utcA0wnt" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet4, utcTot), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcTot_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcTot_constraint_1 + }, + 0, 0, /* No default value */ + "utcTot" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet4, utcWNt), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcWNt_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcWNt_constraint_1 + }, + 0, 0, /* No default value */ + "utcWNt" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet4, utcDeltaTls), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcDeltaTls_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcDeltaTls_constraint_1 + }, + 0, 0, /* No default value */ + "utcDeltaTls" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet4, utcWNlsf), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcWNlsf_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcWNlsf_constraint_1 + }, + 0, 0, /* No default value */ + "utcWNlsf" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet4, utcDN), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcDN_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcDN_constraint_1 + }, + 0, 0, /* No default value */ + "utcDN" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet4, utcDeltaTlsf), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcDeltaTlsf_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcDeltaTlsf_constraint_1 + }, + 0, 0, /* No default value */ + "utcDeltaTlsf" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet4, utcStandardID), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcStandardID_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcStandardID_constraint_1 + }, + 0, 0, /* No default value */ + "utcStandardID" + }, +}; +static const ber_tlv_tag_t asn_DEF_UTC_ModelSet4_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_UTC_ModelSet4_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utcA1wnt */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* utcA0wnt */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* utcTot */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* utcWNt */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* utcDeltaTls */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* utcWNlsf */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* utcDN */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* utcDeltaTlsf */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* utcStandardID */ +}; +asn_SEQUENCE_specifics_t asn_SPC_UTC_ModelSet4_specs_1 = { + sizeof(struct UTC_ModelSet4), + offsetof(struct UTC_ModelSet4, _asn_ctx), + asn_MAP_UTC_ModelSet4_tag2el_1, + 9, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 9, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_UTC_ModelSet4 = { + "UTC-ModelSet4", + "UTC-ModelSet4", + &asn_OP_SEQUENCE, + asn_DEF_UTC_ModelSet4_tags_1, + sizeof(asn_DEF_UTC_ModelSet4_tags_1) + /sizeof(asn_DEF_UTC_ModelSet4_tags_1[0]), /* 1 */ + asn_DEF_UTC_ModelSet4_tags_1, /* Same as above */ + sizeof(asn_DEF_UTC_ModelSet4_tags_1) + /sizeof(asn_DEF_UTC_ModelSet4_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_UTC_ModelSet4_1, + 9, /* Elements count */ + &asn_SPC_UTC_ModelSet4_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/UTC-ModelSet4.h b/asn.1/lpp_generated/UTC-ModelSet4.h similarity index 79% rename from asn.1/generated/UTC-ModelSet4.h rename to asn.1/lpp_generated/UTC-ModelSet4.h index 6d4b2b4a..8e1c19df 100644 --- a/asn.1/generated/UTC-ModelSet4.h +++ b/asn.1/lpp_generated/UTC-ModelSet4.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _UTC_ModelSet4_H_ diff --git a/asn.1/lpp_generated/UTC-ModelSet5-r12.c b/asn.1/lpp_generated/UTC-ModelSet5-r12.c new file mode 100644 index 00000000..04c7237e --- /dev/null +++ b/asn.1/lpp_generated/UTC-ModelSet5-r12.c @@ -0,0 +1,348 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "UTC-ModelSet5-r12.h" + +static int +memb_utcA0_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= (-2147483647L - 1) && value <= 2147483647L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcA1_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcDeltaTls_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcWNlsf_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcDN_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcDeltaTlsf_r12_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -128L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcA0_r12_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcA1_r12_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcDeltaTls_r12_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcWNlsf_r12_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcDN_r12_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcDeltaTlsf_r12_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_UTC_ModelSet5_r12_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet5_r12, utcA0_r12), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcA0_r12_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcA0_r12_constraint_1 + }, + 0, 0, /* No default value */ + "utcA0-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet5_r12, utcA1_r12), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcA1_r12_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcA1_r12_constraint_1 + }, + 0, 0, /* No default value */ + "utcA1-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet5_r12, utcDeltaTls_r12), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcDeltaTls_r12_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcDeltaTls_r12_constraint_1 + }, + 0, 0, /* No default value */ + "utcDeltaTls-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet5_r12, utcWNlsf_r12), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcWNlsf_r12_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcWNlsf_r12_constraint_1 + }, + 0, 0, /* No default value */ + "utcWNlsf-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet5_r12, utcDN_r12), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcDN_r12_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcDN_r12_constraint_1 + }, + 0, 0, /* No default value */ + "utcDN-r12" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_ModelSet5_r12, utcDeltaTlsf_r12), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcDeltaTlsf_r12_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcDeltaTlsf_r12_constraint_1 + }, + 0, 0, /* No default value */ + "utcDeltaTlsf-r12" + }, +}; +static const ber_tlv_tag_t asn_DEF_UTC_ModelSet5_r12_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_UTC_ModelSet5_r12_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utcA0-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* utcA1-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* utcDeltaTls-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* utcWNlsf-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* utcDN-r12 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* utcDeltaTlsf-r12 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_UTC_ModelSet5_r12_specs_1 = { + sizeof(struct UTC_ModelSet5_r12), + offsetof(struct UTC_ModelSet5_r12, _asn_ctx), + asn_MAP_UTC_ModelSet5_r12_tag2el_1, + 6, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_UTC_ModelSet5_r12 = { + "UTC-ModelSet5-r12", + "UTC-ModelSet5-r12", + &asn_OP_SEQUENCE, + asn_DEF_UTC_ModelSet5_r12_tags_1, + sizeof(asn_DEF_UTC_ModelSet5_r12_tags_1) + /sizeof(asn_DEF_UTC_ModelSet5_r12_tags_1[0]), /* 1 */ + asn_DEF_UTC_ModelSet5_r12_tags_1, /* Same as above */ + sizeof(asn_DEF_UTC_ModelSet5_r12_tags_1) + /sizeof(asn_DEF_UTC_ModelSet5_r12_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_UTC_ModelSet5_r12_1, + 6, /* Elements count */ + &asn_SPC_UTC_ModelSet5_r12_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/UTC-ModelSet5-r12.h b/asn.1/lpp_generated/UTC-ModelSet5-r12.h similarity index 79% rename from asn.1/generated/UTC-ModelSet5-r12.h rename to asn.1/lpp_generated/UTC-ModelSet5-r12.h index 69dd2d45..be7c6fb3 100644 --- a/asn.1/generated/UTC-ModelSet5-r12.h +++ b/asn.1/lpp_generated/UTC-ModelSet5-r12.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _UTC_ModelSet5_r12_H_ diff --git a/asn.1/lpp_generated/UTC-Time-r15.c b/asn.1/lpp_generated/UTC-Time-r15.c new file mode 100644 index 00000000..54d7fd48 --- /dev/null +++ b/asn.1/lpp_generated/UTC-Time-r15.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "UTC-Time-r15.h" + +static int +memb_utcTime_ms_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcTime_ms_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_UTC_Time_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTC_Time_r15, utcTime_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTCTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utcTime-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTC_Time_r15, utcTime_ms_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcTime_ms_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcTime_ms_r15_constraint_1 + }, + 0, 0, /* No default value */ + "utcTime-ms-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_UTC_Time_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_UTC_Time_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utcTime-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* utcTime-ms-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_UTC_Time_r15_specs_1 = { + sizeof(struct UTC_Time_r15), + offsetof(struct UTC_Time_r15, _asn_ctx), + asn_MAP_UTC_Time_r15_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_UTC_Time_r15 = { + "UTC-Time-r15", + "UTC-Time-r15", + &asn_OP_SEQUENCE, + asn_DEF_UTC_Time_r15_tags_1, + sizeof(asn_DEF_UTC_Time_r15_tags_1) + /sizeof(asn_DEF_UTC_Time_r15_tags_1[0]), /* 1 */ + asn_DEF_UTC_Time_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_UTC_Time_r15_tags_1) + /sizeof(asn_DEF_UTC_Time_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_UTC_Time_r15_1, + 2, /* Elements count */ + &asn_SPC_UTC_Time_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/UTC-Time-r15.h b/asn.1/lpp_generated/UTC-Time-r15.h similarity index 77% rename from asn.1/generated/UTC-Time-r15.h rename to asn.1/lpp_generated/UTC-Time-r15.h index 28ff05fd..ff6f199d 100644 --- a/asn.1/generated/UTC-Time-r15.h +++ b/asn.1/lpp_generated/UTC-Time-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _UTC_Time_r15_H_ diff --git a/asn.1/lpp_generated/UpdateCapabilities-r15.c b/asn.1/lpp_generated/UpdateCapabilities-r15.c new file mode 100644 index 00000000..4d853186 --- /dev/null +++ b/asn.1/lpp_generated/UpdateCapabilities-r15.c @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "UpdateCapabilities-r15.h" + +int +UpdateCapabilities_r15_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using BIT_STRING, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_UpdateCapabilities_r15_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_UpdateCapabilities_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_UpdateCapabilities_r15 = { + "UpdateCapabilities-r15", + "UpdateCapabilities-r15", + &asn_OP_BIT_STRING, + asn_DEF_UpdateCapabilities_r15_tags_1, + sizeof(asn_DEF_UpdateCapabilities_r15_tags_1) + /sizeof(asn_DEF_UpdateCapabilities_r15_tags_1[0]), /* 1 */ + asn_DEF_UpdateCapabilities_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_UpdateCapabilities_r15_tags_1) + /sizeof(asn_DEF_UpdateCapabilities_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_UpdateCapabilities_r15_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + UpdateCapabilities_r15_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/asn.1/generated/UpdateCapabilities-r15.h b/asn.1/lpp_generated/UpdateCapabilities-r15.h similarity index 76% rename from asn.1/generated/UpdateCapabilities-r15.h rename to asn.1/lpp_generated/UpdateCapabilities-r15.h index 8ef8217e..70199f1a 100644 --- a/asn.1/generated/UpdateCapabilities-r15.h +++ b/asn.1/lpp_generated/UpdateCapabilities-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _UpdateCapabilities_r15_H_ @@ -30,12 +30,10 @@ typedef BIT_STRING_t UpdateCapabilities_r15_t; extern asn_per_constraints_t asn_PER_type_UpdateCapabilities_r15_constr_1; extern asn_TYPE_descriptor_t asn_DEF_UpdateCapabilities_r15; asn_struct_free_f UpdateCapabilities_r15_free; -asn_struct_print_f UpdateCapabilities_r15_print; asn_constr_check_f UpdateCapabilities_r15_constraint; -ber_type_decoder_f UpdateCapabilities_r15_decode_ber; -der_type_encoder_f UpdateCapabilities_r15_encode_der; xer_type_decoder_f UpdateCapabilities_r15_decode_xer; xer_type_encoder_f UpdateCapabilities_r15_encode_xer; +jer_type_encoder_f UpdateCapabilities_r15_encode_jer; per_type_decoder_f UpdateCapabilities_r15_decode_uper; per_type_encoder_f UpdateCapabilities_r15_encode_uper; diff --git a/asn.1/lpp_generated/Velocity.c b/asn.1/lpp_generated/Velocity.c new file mode 100644 index 00000000..2e4e8544 --- /dev/null +++ b/asn.1/lpp_generated/Velocity.c @@ -0,0 +1,124 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Velocity.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Velocity_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Velocity_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Velocity, choice.horizontalVelocity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HorizontalVelocity, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horizontalVelocity" + }, + { ATF_NOFLAGS, 0, offsetof(struct Velocity, choice.horizontalWithVerticalVelocity), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HorizontalWithVerticalVelocity, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horizontalWithVerticalVelocity" + }, + { ATF_NOFLAGS, 0, offsetof(struct Velocity, choice.horizontalVelocityWithUncertainty), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HorizontalVelocityWithUncertainty, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horizontalVelocityWithUncertainty" + }, + { ATF_NOFLAGS, 0, offsetof(struct Velocity, choice.horizontalWithVerticalVelocityAndUncertainty), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HorizontalWithVerticalVelocityAndUncertainty, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horizontalWithVerticalVelocityAndUncertainty" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_Velocity_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horizontalVelocity */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horizontalWithVerticalVelocity */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* horizontalVelocityWithUncertainty */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* horizontalWithVerticalVelocityAndUncertainty */ +}; +asn_CHOICE_specifics_t asn_SPC_Velocity_specs_1 = { + sizeof(struct Velocity), + offsetof(struct Velocity, _asn_ctx), + offsetof(struct Velocity, present), + sizeof(((struct Velocity *)0)->present), + asn_MAP_Velocity_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, + 4 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_Velocity = { + "Velocity", + "Velocity", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Velocity_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_Velocity_1, + 4, /* Elements count */ + &asn_SPC_Velocity_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Velocity.h b/asn.1/lpp_generated/Velocity.h similarity index 86% rename from asn.1/generated/Velocity.h rename to asn.1/lpp_generated/Velocity.h index b7871281..ea4f9fa6 100644 --- a/asn.1/generated/Velocity.h +++ b/asn.1/lpp_generated/Velocity.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _Velocity_H_ diff --git a/asn.1/lpp_generated/VelocityTypes.c b/asn.1/lpp_generated/VelocityTypes.c new file mode 100644 index 00000000..358a31e0 --- /dev/null +++ b/asn.1/lpp_generated/VelocityTypes.c @@ -0,0 +1,120 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "VelocityTypes.h" + +asn_TYPE_member_t asn_MBR_VelocityTypes_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VelocityTypes, horizontalVelocity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horizontalVelocity" + }, + { ATF_NOFLAGS, 0, offsetof(struct VelocityTypes, horizontalWithVerticalVelocity), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horizontalWithVerticalVelocity" + }, + { ATF_NOFLAGS, 0, offsetof(struct VelocityTypes, horizontalVelocityWithUncertainty), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horizontalVelocityWithUncertainty" + }, + { ATF_NOFLAGS, 0, offsetof(struct VelocityTypes, horizontalWithVerticalVelocityAndUncertainty), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horizontalWithVerticalVelocityAndUncertainty" + }, +}; +static const ber_tlv_tag_t asn_DEF_VelocityTypes_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VelocityTypes_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horizontalVelocity */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horizontalWithVerticalVelocity */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* horizontalVelocityWithUncertainty */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* horizontalWithVerticalVelocityAndUncertainty */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VelocityTypes_specs_1 = { + sizeof(struct VelocityTypes), + offsetof(struct VelocityTypes, _asn_ctx), + asn_MAP_VelocityTypes_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_VelocityTypes = { + "VelocityTypes", + "VelocityTypes", + &asn_OP_SEQUENCE, + asn_DEF_VelocityTypes_tags_1, + sizeof(asn_DEF_VelocityTypes_tags_1) + /sizeof(asn_DEF_VelocityTypes_tags_1[0]), /* 1 */ + asn_DEF_VelocityTypes_tags_1, /* Same as above */ + sizeof(asn_DEF_VelocityTypes_tags_1) + /sizeof(asn_DEF_VelocityTypes_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VelocityTypes_1, + 4, /* Elements count */ + &asn_SPC_VelocityTypes_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/VelocityTypes.h b/asn.1/lpp_generated/VelocityTypes.h similarity index 79% rename from asn.1/generated/VelocityTypes.h rename to asn.1/lpp_generated/VelocityTypes.h index e6c961de..e758c172 100644 --- a/asn.1/generated/VelocityTypes.h +++ b/asn.1/lpp_generated/VelocityTypes.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _VelocityTypes_H_ diff --git a/asn.1/lpp_generated/VerticalAccuracy.c b/asn.1/lpp_generated/VerticalAccuracy.c new file mode 100644 index 00000000..0f14276e --- /dev/null +++ b/asn.1/lpp_generated/VerticalAccuracy.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "VerticalAccuracy.h" + +static int +memb_accuracy_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_confidence_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_accuracy_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_confidence_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_VerticalAccuracy_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VerticalAccuracy, accuracy), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_accuracy_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_accuracy_constraint_1 + }, + 0, 0, /* No default value */ + "accuracy" + }, + { ATF_NOFLAGS, 0, offsetof(struct VerticalAccuracy, confidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_confidence_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_confidence_constraint_1 + }, + 0, 0, /* No default value */ + "confidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_VerticalAccuracy_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VerticalAccuracy_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* accuracy */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VerticalAccuracy_specs_1 = { + sizeof(struct VerticalAccuracy), + offsetof(struct VerticalAccuracy, _asn_ctx), + asn_MAP_VerticalAccuracy_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_VerticalAccuracy = { + "VerticalAccuracy", + "VerticalAccuracy", + &asn_OP_SEQUENCE, + asn_DEF_VerticalAccuracy_tags_1, + sizeof(asn_DEF_VerticalAccuracy_tags_1) + /sizeof(asn_DEF_VerticalAccuracy_tags_1[0]), /* 1 */ + asn_DEF_VerticalAccuracy_tags_1, /* Same as above */ + sizeof(asn_DEF_VerticalAccuracy_tags_1) + /sizeof(asn_DEF_VerticalAccuracy_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VerticalAccuracy_1, + 2, /* Elements count */ + &asn_SPC_VerticalAccuracy_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/VerticalAccuracy.h b/asn.1/lpp_generated/VerticalAccuracy.h similarity index 78% rename from asn.1/generated/VerticalAccuracy.h rename to asn.1/lpp_generated/VerticalAccuracy.h index f773e127..b353793c 100644 --- a/asn.1/generated/VerticalAccuracy.h +++ b/asn.1/lpp_generated/VerticalAccuracy.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _VerticalAccuracy_H_ diff --git a/asn.1/lpp_generated/VerticalAccuracyExt-r15.c b/asn.1/lpp_generated/VerticalAccuracyExt-r15.c new file mode 100644 index 00000000..140ed0c9 --- /dev/null +++ b/asn.1/lpp_generated/VerticalAccuracyExt-r15.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "VerticalAccuracyExt-r15.h" + +static int +memb_accuracyExt_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_confidence_r15_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_accuracyExt_r15_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_confidence_r15_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_VerticalAccuracyExt_r15_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VerticalAccuracyExt_r15, accuracyExt_r15), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_accuracyExt_r15_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_accuracyExt_r15_constraint_1 + }, + 0, 0, /* No default value */ + "accuracyExt-r15" + }, + { ATF_NOFLAGS, 0, offsetof(struct VerticalAccuracyExt_r15, confidence_r15), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_confidence_r15_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_confidence_r15_constraint_1 + }, + 0, 0, /* No default value */ + "confidence-r15" + }, +}; +static const ber_tlv_tag_t asn_DEF_VerticalAccuracyExt_r15_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VerticalAccuracyExt_r15_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* accuracyExt-r15 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence-r15 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VerticalAccuracyExt_r15_specs_1 = { + sizeof(struct VerticalAccuracyExt_r15), + offsetof(struct VerticalAccuracyExt_r15, _asn_ctx), + asn_MAP_VerticalAccuracyExt_r15_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_VerticalAccuracyExt_r15 = { + "VerticalAccuracyExt-r15", + "VerticalAccuracyExt-r15", + &asn_OP_SEQUENCE, + asn_DEF_VerticalAccuracyExt_r15_tags_1, + sizeof(asn_DEF_VerticalAccuracyExt_r15_tags_1) + /sizeof(asn_DEF_VerticalAccuracyExt_r15_tags_1[0]), /* 1 */ + asn_DEF_VerticalAccuracyExt_r15_tags_1, /* Same as above */ + sizeof(asn_DEF_VerticalAccuracyExt_r15_tags_1) + /sizeof(asn_DEF_VerticalAccuracyExt_r15_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VerticalAccuracyExt_r15_1, + 2, /* Elements count */ + &asn_SPC_VerticalAccuracyExt_r15_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/VerticalAccuracyExt-r15.h b/asn.1/lpp_generated/VerticalAccuracyExt-r15.h similarity index 79% rename from asn.1/generated/VerticalAccuracyExt-r15.h rename to asn.1/lpp_generated/VerticalAccuracyExt-r15.h index afc4f484..982f818e 100644 --- a/asn.1/generated/VerticalAccuracyExt-r15.h +++ b/asn.1/lpp_generated/VerticalAccuracyExt-r15.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _VerticalAccuracyExt_r15_H_ diff --git a/asn.1/lpp_generated/VerticalGridPoints-r18.c b/asn.1/lpp_generated/VerticalGridPoints-r18.c new file mode 100644 index 00000000..7c4834c1 --- /dev/null +++ b/asn.1/lpp_generated/VerticalGridPoints-r18.c @@ -0,0 +1,204 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "VerticalGridPoints-r18.h" + +static int +memb_referenceAltitudeCoarse_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -50L && value <= 900L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_numberOfStepsDown_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 3L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_referenceAltitudeCoarse_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, -50, 900 } /* (-50..900) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_numberOfStepsDown_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (1..3) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_VerticalGridPoints_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VerticalGridPoints_r18, referenceAltitudeCoarse_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_referenceAltitudeCoarse_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_referenceAltitudeCoarse_r18_constraint_1 + }, + 0, 0, /* No default value */ + "referenceAltitudeCoarse-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct VerticalGridPoints_r18, numberOfStepsDown_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_numberOfStepsDown_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_numberOfStepsDown_r18_constraint_1 + }, + 0, 0, /* No default value */ + "numberOfStepsDown-r18" + }, + { ATF_NOFLAGS, 0, offsetof(struct VerticalGridPoints_r18, stepDown_r18), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpatialDelta_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stepDown-r18" + }, + { ATF_POINTER, 2, offsetof(struct VerticalGridPoints_r18, upperValidityDeltaAltitude_r18), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpatialDelta_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "upperValidityDeltaAltitude-r18" + }, + { ATF_POINTER, 1, offsetof(struct VerticalGridPoints_r18, lowerValidityDeltaAltitude_r18), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpatialDelta_r18, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lowerValidityDeltaAltitude-r18" + }, +}; +static const int asn_MAP_VerticalGridPoints_r18_oms_1[] = { 3, 4 }; +static const ber_tlv_tag_t asn_DEF_VerticalGridPoints_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VerticalGridPoints_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceAltitudeCoarse-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* numberOfStepsDown-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* stepDown-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* upperValidityDeltaAltitude-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* lowerValidityDeltaAltitude-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VerticalGridPoints_r18_specs_1 = { + sizeof(struct VerticalGridPoints_r18), + offsetof(struct VerticalGridPoints_r18, _asn_ctx), + asn_MAP_VerticalGridPoints_r18_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_VerticalGridPoints_r18_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_VerticalGridPoints_r18 = { + "VerticalGridPoints-r18", + "VerticalGridPoints-r18", + &asn_OP_SEQUENCE, + asn_DEF_VerticalGridPoints_r18_tags_1, + sizeof(asn_DEF_VerticalGridPoints_r18_tags_1) + /sizeof(asn_DEF_VerticalGridPoints_r18_tags_1[0]), /* 1 */ + asn_DEF_VerticalGridPoints_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_VerticalGridPoints_r18_tags_1) + /sizeof(asn_DEF_VerticalGridPoints_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VerticalGridPoints_r18_1, + 5, /* Elements count */ + &asn_SPC_VerticalGridPoints_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/VerticalGridPoints-r18.h b/asn.1/lpp_generated/VerticalGridPoints-r18.h new file mode 100644 index 00000000..e16c6b84 --- /dev/null +++ b/asn.1/lpp_generated/VerticalGridPoints-r18.h @@ -0,0 +1,49 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _VerticalGridPoints_r18_H_ +#define _VerticalGridPoints_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include "SpatialDelta-r18.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* VerticalGridPoints-r18 */ +typedef struct VerticalGridPoints_r18 { + long referenceAltitudeCoarse_r18; + long numberOfStepsDown_r18; + SpatialDelta_r18_t stepDown_r18; + SpatialDelta_r18_t *upperValidityDeltaAltitude_r18; /* OPTIONAL */ + SpatialDelta_r18_t *lowerValidityDeltaAltitude_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VerticalGridPoints_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VerticalGridPoints_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_VerticalGridPoints_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_VerticalGridPoints_r18_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _VerticalGridPoints_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/WLAN-AP-Data-r14.c b/asn.1/lpp_generated/WLAN-AP-Data-r14.c new file mode 100644 index 00000000..c64120cc --- /dev/null +++ b/asn.1/lpp_generated/WLAN-AP-Data-r14.c @@ -0,0 +1,87 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "WLAN-AP-Data-r14.h" + +#include "WLAN-AP-Location-r14.h" +asn_TYPE_member_t asn_MBR_WLAN_AP_Data_r14_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct WLAN_AP_Data_r14, wlan_AP_Identifier_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WLAN_AP_Identifier_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wlan-AP-Identifier-r14" + }, + { ATF_POINTER, 1, offsetof(struct WLAN_AP_Data_r14, wlan_AP_Location_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WLAN_AP_Location_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wlan-AP-Location-r14" + }, +}; +static const int asn_MAP_WLAN_AP_Data_r14_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_WLAN_AP_Data_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WLAN_AP_Data_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wlan-AP-Identifier-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* wlan-AP-Location-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WLAN_AP_Data_r14_specs_1 = { + sizeof(struct WLAN_AP_Data_r14), + offsetof(struct WLAN_AP_Data_r14, _asn_ctx), + asn_MAP_WLAN_AP_Data_r14_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_WLAN_AP_Data_r14_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WLAN_AP_Data_r14 = { + "WLAN-AP-Data-r14", + "WLAN-AP-Data-r14", + &asn_OP_SEQUENCE, + asn_DEF_WLAN_AP_Data_r14_tags_1, + sizeof(asn_DEF_WLAN_AP_Data_r14_tags_1) + /sizeof(asn_DEF_WLAN_AP_Data_r14_tags_1[0]), /* 1 */ + asn_DEF_WLAN_AP_Data_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_WLAN_AP_Data_r14_tags_1) + /sizeof(asn_DEF_WLAN_AP_Data_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WLAN_AP_Data_r14_1, + 2, /* Elements count */ + &asn_SPC_WLAN_AP_Data_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/WLAN-AP-Data-r14.h b/asn.1/lpp_generated/WLAN-AP-Data-r14.h similarity index 75% rename from asn.1/generated/WLAN-AP-Data-r14.h rename to asn.1/lpp_generated/WLAN-AP-Data-r14.h index 0c0241d4..6122b379 100644 --- a/asn.1/generated/WLAN-AP-Data-r14.h +++ b/asn.1/lpp_generated/WLAN-AP-Data-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _WLAN_AP_Data_r14_H_ @@ -25,7 +25,7 @@ struct WLAN_AP_Location_r14; /* WLAN-AP-Data-r14 */ typedef struct WLAN_AP_Data_r14 { WLAN_AP_Identifier_r13_t wlan_AP_Identifier_r14; - struct WLAN_AP_Location_r14 *wlan_AP_Location_r14 /* OPTIONAL */; + struct WLAN_AP_Location_r14 *wlan_AP_Location_r14; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -44,8 +44,5 @@ extern asn_TYPE_member_t asn_MBR_WLAN_AP_Data_r14_1[2]; } #endif -/* Referred external types */ -#include "WLAN-AP-Location-r14.h" - #endif /* _WLAN_AP_Data_r14_H_ */ #include diff --git a/asn.1/lpp_generated/WLAN-AP-Identifier-r13.c b/asn.1/lpp_generated/WLAN-AP-Identifier-r13.c new file mode 100644 index 00000000..c91c1fde --- /dev/null +++ b/asn.1/lpp_generated/WLAN-AP-Identifier-r13.c @@ -0,0 +1,152 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "WLAN-AP-Identifier-r13.h" + +static int +memb_bssid_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size == 6UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ssid_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size >= 1UL && size <= 32UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bssid_r13_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ssid_r13_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_WLAN_AP_Identifier_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct WLAN_AP_Identifier_r13, bssid_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OCTET_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bssid_r13_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bssid_r13_constraint_1 + }, + 0, 0, /* No default value */ + "bssid-r13" + }, + { ATF_POINTER, 1, offsetof(struct WLAN_AP_Identifier_r13, ssid_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OCTET_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ssid_r13_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ssid_r13_constraint_1 + }, + 0, 0, /* No default value */ + "ssid-r13" + }, +}; +static const int asn_MAP_WLAN_AP_Identifier_r13_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_WLAN_AP_Identifier_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WLAN_AP_Identifier_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bssid-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ssid-r13 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WLAN_AP_Identifier_r13_specs_1 = { + sizeof(struct WLAN_AP_Identifier_r13), + offsetof(struct WLAN_AP_Identifier_r13, _asn_ctx), + asn_MAP_WLAN_AP_Identifier_r13_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_WLAN_AP_Identifier_r13_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WLAN_AP_Identifier_r13 = { + "WLAN-AP-Identifier-r13", + "WLAN-AP-Identifier-r13", + &asn_OP_SEQUENCE, + asn_DEF_WLAN_AP_Identifier_r13_tags_1, + sizeof(asn_DEF_WLAN_AP_Identifier_r13_tags_1) + /sizeof(asn_DEF_WLAN_AP_Identifier_r13_tags_1[0]), /* 1 */ + asn_DEF_WLAN_AP_Identifier_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_WLAN_AP_Identifier_r13_tags_1) + /sizeof(asn_DEF_WLAN_AP_Identifier_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WLAN_AP_Identifier_r13_1, + 2, /* Elements count */ + &asn_SPC_WLAN_AP_Identifier_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/WLAN-AP-Identifier-r13.h b/asn.1/lpp_generated/WLAN-AP-Identifier-r13.h similarity index 76% rename from asn.1/generated/WLAN-AP-Identifier-r13.h rename to asn.1/lpp_generated/WLAN-AP-Identifier-r13.h index b3a6ffa7..2773d4e9 100644 --- a/asn.1/generated/WLAN-AP-Identifier-r13.h +++ b/asn.1/lpp_generated/WLAN-AP-Identifier-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _WLAN_AP_Identifier_r13_H_ @@ -22,7 +22,7 @@ extern "C" { /* WLAN-AP-Identifier-r13 */ typedef struct WLAN_AP_Identifier_r13 { OCTET_STRING_t bssid_r13; - OCTET_STRING_t *ssid_r13 /* OPTIONAL */; + OCTET_STRING_t *ssid_r13; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/WLAN-AP-Location-r14.c b/asn.1/lpp_generated/WLAN-AP-Location-r14.c new file mode 100644 index 00000000..38976b79 --- /dev/null +++ b/asn.1/lpp_generated/WLAN-AP-Location-r14.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "WLAN-AP-Location-r14.h" + +asn_TYPE_member_t asn_MBR_WLAN_AP_Location_r14_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct WLAN_AP_Location_r14, locationDataLCI_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationDataLCI_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationDataLCI-r14" + }, +}; +static const ber_tlv_tag_t asn_DEF_WLAN_AP_Location_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WLAN_AP_Location_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* locationDataLCI-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WLAN_AP_Location_r14_specs_1 = { + sizeof(struct WLAN_AP_Location_r14), + offsetof(struct WLAN_AP_Location_r14, _asn_ctx), + asn_MAP_WLAN_AP_Location_r14_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WLAN_AP_Location_r14 = { + "WLAN-AP-Location-r14", + "WLAN-AP-Location-r14", + &asn_OP_SEQUENCE, + asn_DEF_WLAN_AP_Location_r14_tags_1, + sizeof(asn_DEF_WLAN_AP_Location_r14_tags_1) + /sizeof(asn_DEF_WLAN_AP_Location_r14_tags_1[0]), /* 1 */ + asn_DEF_WLAN_AP_Location_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_WLAN_AP_Location_r14_tags_1) + /sizeof(asn_DEF_WLAN_AP_Location_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WLAN_AP_Location_r14_1, + 1, /* Elements count */ + &asn_SPC_WLAN_AP_Location_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/WLAN-AP-Location-r14.h b/asn.1/lpp_generated/WLAN-AP-Location-r14.h similarity index 78% rename from asn.1/generated/WLAN-AP-Location-r14.h rename to asn.1/lpp_generated/WLAN-AP-Location-r14.h index ad0f5f09..ddca1c41 100644 --- a/asn.1/generated/WLAN-AP-Location-r14.h +++ b/asn.1/lpp_generated/WLAN-AP-Location-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _WLAN_AP_Location_r14_H_ diff --git a/asn.1/lpp_generated/WLAN-DataSet-r14.c b/asn.1/lpp_generated/WLAN-DataSet-r14.c new file mode 100644 index 00000000..cd549b8d --- /dev/null +++ b/asn.1/lpp_generated/WLAN-DataSet-r14.c @@ -0,0 +1,200 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "WLAN-DataSet-r14.h" + +#include "SupportedChannels-11a-r14.h" +#include "SupportedChannels-11bg-r14.h" +#include "WLAN-AP-Data-r14.h" +static int +memb_wlan_AP_List_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 128UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_wlan_AP_List_r14_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 7, 7, 1, 128 } /* (SIZE(1..128)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_wlan_AP_List_r14_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 7, 7, 1, 128 } /* (SIZE(1..128)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_wlan_AP_List_r14_2[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_WLAN_AP_Data_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_wlan_AP_List_r14_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_wlan_AP_List_r14_specs_2 = { + sizeof(struct WLAN_DataSet_r14__wlan_AP_List_r14), + offsetof(struct WLAN_DataSet_r14__wlan_AP_List_r14, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_wlan_AP_List_r14_2 = { + "wlan-AP-List-r14", + "wlan-AP-List-r14", + &asn_OP_SEQUENCE_OF, + asn_DEF_wlan_AP_List_r14_tags_2, + sizeof(asn_DEF_wlan_AP_List_r14_tags_2) + /sizeof(asn_DEF_wlan_AP_List_r14_tags_2[0]) - 1, /* 1 */ + asn_DEF_wlan_AP_List_r14_tags_2, /* Same as above */ + sizeof(asn_DEF_wlan_AP_List_r14_tags_2) + /sizeof(asn_DEF_wlan_AP_List_r14_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_wlan_AP_List_r14_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_wlan_AP_List_r14_2, + 1, /* Single element */ + &asn_SPC_wlan_AP_List_r14_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_WLAN_DataSet_r14_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct WLAN_DataSet_r14, wlan_AP_List_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_wlan_AP_List_r14_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_wlan_AP_List_r14_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_wlan_AP_List_r14_constraint_1 + }, + 0, 0, /* No default value */ + "wlan-AP-List-r14" + }, + { ATF_POINTER, 2, offsetof(struct WLAN_DataSet_r14, supportedChannels_11a_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SupportedChannels_11a_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportedChannels-11a-r14" + }, + { ATF_POINTER, 1, offsetof(struct WLAN_DataSet_r14, supportedChannels_11bg_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SupportedChannels_11bg_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportedChannels-11bg-r14" + }, +}; +static const int asn_MAP_WLAN_DataSet_r14_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_WLAN_DataSet_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WLAN_DataSet_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wlan-AP-List-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* supportedChannels-11a-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* supportedChannels-11bg-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WLAN_DataSet_r14_specs_1 = { + sizeof(struct WLAN_DataSet_r14), + offsetof(struct WLAN_DataSet_r14, _asn_ctx), + asn_MAP_WLAN_DataSet_r14_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_WLAN_DataSet_r14_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WLAN_DataSet_r14 = { + "WLAN-DataSet-r14", + "WLAN-DataSet-r14", + &asn_OP_SEQUENCE, + asn_DEF_WLAN_DataSet_r14_tags_1, + sizeof(asn_DEF_WLAN_DataSet_r14_tags_1) + /sizeof(asn_DEF_WLAN_DataSet_r14_tags_1[0]), /* 1 */ + asn_DEF_WLAN_DataSet_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_WLAN_DataSet_r14_tags_1) + /sizeof(asn_DEF_WLAN_DataSet_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WLAN_DataSet_r14_1, + 3, /* Elements count */ + &asn_SPC_WLAN_DataSet_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/WLAN-DataSet-r14.h b/asn.1/lpp_generated/WLAN-DataSet-r14.h new file mode 100644 index 00000000..43f5ab1a --- /dev/null +++ b/asn.1/lpp_generated/WLAN-DataSet-r14.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _WLAN_DataSet_r14_H_ +#define _WLAN_DataSet_r14_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SupportedChannels_11a_r14; +struct SupportedChannels_11bg_r14; +struct WLAN_AP_Data_r14; + +/* WLAN-DataSet-r14 */ +typedef struct WLAN_DataSet_r14 { + struct WLAN_DataSet_r14__wlan_AP_List_r14 { + A_SEQUENCE_OF(struct WLAN_AP_Data_r14) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } wlan_AP_List_r14; + struct SupportedChannels_11a_r14 *supportedChannels_11a_r14; /* OPTIONAL */ + struct SupportedChannels_11bg_r14 *supportedChannels_11bg_r14; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} WLAN_DataSet_r14_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_WLAN_DataSet_r14; +extern asn_SEQUENCE_specifics_t asn_SPC_WLAN_DataSet_r14_specs_1; +extern asn_TYPE_member_t asn_MBR_WLAN_DataSet_r14_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _WLAN_DataSet_r14_H_ */ +#include diff --git a/asn.1/lpp_generated/WLAN-Error-r13.c b/asn.1/lpp_generated/WLAN-Error-r13.c new file mode 100644 index 00000000..9b3bd573 --- /dev/null +++ b/asn.1/lpp_generated/WLAN-Error-r13.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "WLAN-Error-r13.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_WLAN_Error_r13_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_WLAN_Error_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct WLAN_Error_r13, choice.locationServerErrorCauses_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WLAN_LocationServerErrorCauses_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationServerErrorCauses-r13" + }, + { ATF_NOFLAGS, 0, offsetof(struct WLAN_Error_r13, choice.targetDeviceErrorCauses_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WLAN_TargetDeviceErrorCauses_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "targetDeviceErrorCauses-r13" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_WLAN_Error_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationServerErrorCauses-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* targetDeviceErrorCauses-r13 */ +}; +asn_CHOICE_specifics_t asn_SPC_WLAN_Error_r13_specs_1 = { + sizeof(struct WLAN_Error_r13), + offsetof(struct WLAN_Error_r13, _asn_ctx), + offsetof(struct WLAN_Error_r13, present), + sizeof(((struct WLAN_Error_r13 *)0)->present), + asn_MAP_WLAN_Error_r13_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_WLAN_Error_r13 = { + "WLAN-Error-r13", + "WLAN-Error-r13", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_WLAN_Error_r13_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_WLAN_Error_r13_1, + 2, /* Elements count */ + &asn_SPC_WLAN_Error_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/WLAN-Error-r13.h b/asn.1/lpp_generated/WLAN-Error-r13.h similarity index 85% rename from asn.1/generated/WLAN-Error-r13.h rename to asn.1/lpp_generated/WLAN-Error-r13.h index bd07433b..bee6d7c4 100644 --- a/asn.1/generated/WLAN-Error-r13.h +++ b/asn.1/lpp_generated/WLAN-Error-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _WLAN_Error_r13_H_ diff --git a/asn.1/lpp_generated/WLAN-LocationServerErrorCauses-r13.c b/asn.1/lpp_generated/WLAN-LocationServerErrorCauses-r13.c new file mode 100644 index 00000000..1105c11b --- /dev/null +++ b/asn.1/lpp_generated/WLAN-LocationServerErrorCauses-r13.c @@ -0,0 +1,207 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "WLAN-LocationServerErrorCauses-r13.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_r13_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_r13_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 29, "requestedADNotAvailable-v1420" }, + { 2, 32, "notAllrequestedADAvailable-v1420" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_r13_enum2value_2[] = { + 2, /* notAllrequestedADAvailable-v1420(2) */ + 1, /* requestedADNotAvailable-v1420(1) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_r13_specs_2 = { + asn_MAP_cause_r13_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_r13_enum2value_2, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_r13_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_r13_2 = { + "cause-r13", + "cause-r13", + &asn_OP_NativeEnumerated, + asn_DEF_cause_r13_tags_2, + sizeof(asn_DEF_cause_r13_tags_2) + /sizeof(asn_DEF_cause_r13_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_r13_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_r13_tags_2) + /sizeof(asn_DEF_cause_r13_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_r13_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_r13_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_8[] = { + { ATF_POINTER, 1, offsetof(struct WLAN_LocationServerErrorCauses_r13__ext1, apLocationDataUnavailable_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "apLocationDataUnavailable-r14" + }, +}; +static const int asn_MAP_ext1_oms_8[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* apLocationDataUnavailable-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_8 = { + sizeof(struct WLAN_LocationServerErrorCauses_r13__ext1), + offsetof(struct WLAN_LocationServerErrorCauses_r13__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_8, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_8, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_8 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_8, + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_8, /* Same as above */ + sizeof(asn_DEF_ext1_tags_8) + /sizeof(asn_DEF_ext1_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_8, + 1, /* Elements count */ + &asn_SPC_ext1_specs_8 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_WLAN_LocationServerErrorCauses_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct WLAN_LocationServerErrorCauses_r13, cause_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_r13_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause-r13" + }, + { ATF_POINTER, 1, offsetof(struct WLAN_LocationServerErrorCauses_r13, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_WLAN_LocationServerErrorCauses_r13_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_WLAN_LocationServerErrorCauses_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WLAN_LocationServerErrorCauses_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WLAN_LocationServerErrorCauses_r13_specs_1 = { + sizeof(struct WLAN_LocationServerErrorCauses_r13), + offsetof(struct WLAN_LocationServerErrorCauses_r13, _asn_ctx), + asn_MAP_WLAN_LocationServerErrorCauses_r13_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_WLAN_LocationServerErrorCauses_r13_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WLAN_LocationServerErrorCauses_r13 = { + "WLAN-LocationServerErrorCauses-r13", + "WLAN-LocationServerErrorCauses-r13", + &asn_OP_SEQUENCE, + asn_DEF_WLAN_LocationServerErrorCauses_r13_tags_1, + sizeof(asn_DEF_WLAN_LocationServerErrorCauses_r13_tags_1) + /sizeof(asn_DEF_WLAN_LocationServerErrorCauses_r13_tags_1[0]), /* 1 */ + asn_DEF_WLAN_LocationServerErrorCauses_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_WLAN_LocationServerErrorCauses_r13_tags_1) + /sizeof(asn_DEF_WLAN_LocationServerErrorCauses_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WLAN_LocationServerErrorCauses_r13_1, + 2, /* Elements count */ + &asn_SPC_WLAN_LocationServerErrorCauses_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/WLAN-LocationServerErrorCauses-r13.h b/asn.1/lpp_generated/WLAN-LocationServerErrorCauses-r13.h similarity index 84% rename from asn.1/generated/WLAN-LocationServerErrorCauses-r13.h rename to asn.1/lpp_generated/WLAN-LocationServerErrorCauses-r13.h index d98f99b3..ca66bbcf 100644 --- a/asn.1/generated/WLAN-LocationServerErrorCauses-r13.h +++ b/asn.1/lpp_generated/WLAN-LocationServerErrorCauses-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _WLAN_LocationServerErrorCauses_r13_H_ @@ -38,7 +38,7 @@ typedef struct WLAN_LocationServerErrorCauses_r13 { * possible extensions are below. */ struct WLAN_LocationServerErrorCauses_r13__ext1 { - NULL_t *apLocationDataUnavailable_r14 /* OPTIONAL */; + NULL_t *apLocationDataUnavailable_r14; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/WLAN-MeasurementElement-r13.c b/asn.1/lpp_generated/WLAN-MeasurementElement-r13.c new file mode 100644 index 00000000..881c6833 --- /dev/null +++ b/asn.1/lpp_generated/WLAN-MeasurementElement-r13.c @@ -0,0 +1,205 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "WLAN-MeasurementElement-r13.h" + +#include "WLAN-RTT-r13.h" +static int +memb_rssi_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -127L && value <= 128L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_apChannelFrequency_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 256L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rssi_r13_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -127, 128 } /* (-127..128) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_apChannelFrequency_r13_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 256 } /* (0..256) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_WLAN_MeasurementElement_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct WLAN_MeasurementElement_r13, wlan_AP_Identifier_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WLAN_AP_Identifier_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wlan-AP-Identifier-r13" + }, + { ATF_POINTER, 4, offsetof(struct WLAN_MeasurementElement_r13, rssi_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rssi_r13_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rssi_r13_constraint_1 + }, + 0, 0, /* No default value */ + "rssi-r13" + }, + { ATF_POINTER, 3, offsetof(struct WLAN_MeasurementElement_r13, rtt_r13), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WLAN_RTT_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rtt-r13" + }, + { ATF_POINTER, 2, offsetof(struct WLAN_MeasurementElement_r13, apChannelFrequency_r13), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_apChannelFrequency_r13_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_apChannelFrequency_r13_constraint_1 + }, + 0, 0, /* No default value */ + "apChannelFrequency-r13" + }, + { ATF_POINTER, 1, offsetof(struct WLAN_MeasurementElement_r13, servingFlag_r13), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "servingFlag-r13" + }, +}; +static const int asn_MAP_WLAN_MeasurementElement_r13_oms_1[] = { 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_WLAN_MeasurementElement_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WLAN_MeasurementElement_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wlan-AP-Identifier-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* rssi-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* rtt-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* apChannelFrequency-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* servingFlag-r13 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WLAN_MeasurementElement_r13_specs_1 = { + sizeof(struct WLAN_MeasurementElement_r13), + offsetof(struct WLAN_MeasurementElement_r13, _asn_ctx), + asn_MAP_WLAN_MeasurementElement_r13_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_WLAN_MeasurementElement_r13_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WLAN_MeasurementElement_r13 = { + "WLAN-MeasurementElement-r13", + "WLAN-MeasurementElement-r13", + &asn_OP_SEQUENCE, + asn_DEF_WLAN_MeasurementElement_r13_tags_1, + sizeof(asn_DEF_WLAN_MeasurementElement_r13_tags_1) + /sizeof(asn_DEF_WLAN_MeasurementElement_r13_tags_1[0]), /* 1 */ + asn_DEF_WLAN_MeasurementElement_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_WLAN_MeasurementElement_r13_tags_1) + /sizeof(asn_DEF_WLAN_MeasurementElement_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WLAN_MeasurementElement_r13_1, + 5, /* Elements count */ + &asn_SPC_WLAN_MeasurementElement_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/WLAN-MeasurementElement-r13.h b/asn.1/lpp_generated/WLAN-MeasurementElement-r13.h new file mode 100644 index 00000000..83b848aa --- /dev/null +++ b/asn.1/lpp_generated/WLAN-MeasurementElement-r13.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _WLAN_MeasurementElement_r13_H_ +#define _WLAN_MeasurementElement_r13_H_ + + +#include + +/* Including external dependencies */ +#include "WLAN-AP-Identifier-r13.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct WLAN_RTT_r13; + +/* WLAN-MeasurementElement-r13 */ +typedef struct WLAN_MeasurementElement_r13 { + WLAN_AP_Identifier_r13_t wlan_AP_Identifier_r13; + long *rssi_r13; /* OPTIONAL */ + struct WLAN_RTT_r13 *rtt_r13; /* OPTIONAL */ + long *apChannelFrequency_r13; /* OPTIONAL */ + BOOLEAN_t *servingFlag_r13; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} WLAN_MeasurementElement_r13_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_WLAN_MeasurementElement_r13; +extern asn_SEQUENCE_specifics_t asn_SPC_WLAN_MeasurementElement_r13_specs_1; +extern asn_TYPE_member_t asn_MBR_WLAN_MeasurementElement_r13_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _WLAN_MeasurementElement_r13_H_ */ +#include diff --git a/asn.1/lpp_generated/WLAN-MeasurementInformation-r13.c b/asn.1/lpp_generated/WLAN-MeasurementInformation-r13.c new file mode 100644 index 00000000..192499ae --- /dev/null +++ b/asn.1/lpp_generated/WLAN-MeasurementInformation-r13.c @@ -0,0 +1,87 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "WLAN-MeasurementInformation-r13.h" + +#include "WLAN-MeasurementList-r13.h" +asn_TYPE_member_t asn_MBR_WLAN_MeasurementInformation_r13_1[] = { + { ATF_POINTER, 2, offsetof(struct WLAN_MeasurementInformation_r13, measurementReferenceTime_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTCTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "measurementReferenceTime-r13" + }, + { ATF_POINTER, 1, offsetof(struct WLAN_MeasurementInformation_r13, wlan_MeasurementList_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WLAN_MeasurementList_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wlan-MeasurementList-r13" + }, +}; +static const int asn_MAP_WLAN_MeasurementInformation_r13_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_WLAN_MeasurementInformation_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WLAN_MeasurementInformation_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* measurementReferenceTime-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* wlan-MeasurementList-r13 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WLAN_MeasurementInformation_r13_specs_1 = { + sizeof(struct WLAN_MeasurementInformation_r13), + offsetof(struct WLAN_MeasurementInformation_r13, _asn_ctx), + asn_MAP_WLAN_MeasurementInformation_r13_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_WLAN_MeasurementInformation_r13_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WLAN_MeasurementInformation_r13 = { + "WLAN-MeasurementInformation-r13", + "WLAN-MeasurementInformation-r13", + &asn_OP_SEQUENCE, + asn_DEF_WLAN_MeasurementInformation_r13_tags_1, + sizeof(asn_DEF_WLAN_MeasurementInformation_r13_tags_1) + /sizeof(asn_DEF_WLAN_MeasurementInformation_r13_tags_1[0]), /* 1 */ + asn_DEF_WLAN_MeasurementInformation_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_WLAN_MeasurementInformation_r13_tags_1) + /sizeof(asn_DEF_WLAN_MeasurementInformation_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WLAN_MeasurementInformation_r13_1, + 2, /* Elements count */ + &asn_SPC_WLAN_MeasurementInformation_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/WLAN-MeasurementInformation-r13.h b/asn.1/lpp_generated/WLAN-MeasurementInformation-r13.h new file mode 100644 index 00000000..085c466f --- /dev/null +++ b/asn.1/lpp_generated/WLAN-MeasurementInformation-r13.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _WLAN_MeasurementInformation_r13_H_ +#define _WLAN_MeasurementInformation_r13_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct WLAN_MeasurementList_r13; + +/* WLAN-MeasurementInformation-r13 */ +typedef struct WLAN_MeasurementInformation_r13 { + UTCTime_t *measurementReferenceTime_r13; /* OPTIONAL */ + struct WLAN_MeasurementList_r13 *wlan_MeasurementList_r13; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} WLAN_MeasurementInformation_r13_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_WLAN_MeasurementInformation_r13; +extern asn_SEQUENCE_specifics_t asn_SPC_WLAN_MeasurementInformation_r13_specs_1; +extern asn_TYPE_member_t asn_MBR_WLAN_MeasurementInformation_r13_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _WLAN_MeasurementInformation_r13_H_ */ +#include diff --git a/asn.1/lpp_generated/WLAN-MeasurementList-r13.c b/asn.1/lpp_generated/WLAN-MeasurementList-r13.c new file mode 100644 index 00000000..dcda70f6 --- /dev/null +++ b/asn.1/lpp_generated/WLAN-MeasurementList-r13.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "WLAN-MeasurementList-r13.h" + +#include "WLAN-MeasurementElement-r13.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_WLAN_MeasurementList_r13_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_WLAN_MeasurementList_r13_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_WLAN_MeasurementElement_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_WLAN_MeasurementList_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_WLAN_MeasurementList_r13_specs_1 = { + sizeof(struct WLAN_MeasurementList_r13), + offsetof(struct WLAN_MeasurementList_r13, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_WLAN_MeasurementList_r13 = { + "WLAN-MeasurementList-r13", + "WLAN-MeasurementList-r13", + &asn_OP_SEQUENCE_OF, + asn_DEF_WLAN_MeasurementList_r13_tags_1, + sizeof(asn_DEF_WLAN_MeasurementList_r13_tags_1) + /sizeof(asn_DEF_WLAN_MeasurementList_r13_tags_1[0]), /* 1 */ + asn_DEF_WLAN_MeasurementList_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_WLAN_MeasurementList_r13_tags_1) + /sizeof(asn_DEF_WLAN_MeasurementList_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_WLAN_MeasurementList_r13_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_WLAN_MeasurementList_r13_1, + 1, /* Single element */ + &asn_SPC_WLAN_MeasurementList_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/WLAN-MeasurementList-r13.h b/asn.1/lpp_generated/WLAN-MeasurementList-r13.h similarity index 80% rename from asn.1/generated/WLAN-MeasurementList-r13.h rename to asn.1/lpp_generated/WLAN-MeasurementList-r13.h index 04748c3e..40efe0ab 100644 --- a/asn.1/generated/WLAN-MeasurementList-r13.h +++ b/asn.1/lpp_generated/WLAN-MeasurementList-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _WLAN_MeasurementList_r13_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_WLAN_MeasurementList_r13_constr_1; } #endif -/* Referred external types */ -#include "WLAN-MeasurementElement-r13.h" - #endif /* _WLAN_MeasurementList_r13_H_ */ #include diff --git a/asn.1/lpp_generated/WLAN-ProvideAssistanceData-r14.c b/asn.1/lpp_generated/WLAN-ProvideAssistanceData-r14.c new file mode 100644 index 00000000..47ca0597 --- /dev/null +++ b/asn.1/lpp_generated/WLAN-ProvideAssistanceData-r14.c @@ -0,0 +1,181 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "WLAN-ProvideAssistanceData-r14.h" + +#include "WLAN-Error-r13.h" +#include "WLAN-DataSet-r14.h" +static int +memb_wlan_DataSet_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 8UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_wlan_DataSet_r14_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_wlan_DataSet_r14_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_wlan_DataSet_r14_2[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_WLAN_DataSet_r14, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_wlan_DataSet_r14_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_wlan_DataSet_r14_specs_2 = { + sizeof(struct WLAN_ProvideAssistanceData_r14__wlan_DataSet_r14), + offsetof(struct WLAN_ProvideAssistanceData_r14__wlan_DataSet_r14, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_wlan_DataSet_r14_2 = { + "wlan-DataSet-r14", + "wlan-DataSet-r14", + &asn_OP_SEQUENCE_OF, + asn_DEF_wlan_DataSet_r14_tags_2, + sizeof(asn_DEF_wlan_DataSet_r14_tags_2) + /sizeof(asn_DEF_wlan_DataSet_r14_tags_2[0]) - 1, /* 1 */ + asn_DEF_wlan_DataSet_r14_tags_2, /* Same as above */ + sizeof(asn_DEF_wlan_DataSet_r14_tags_2) + /sizeof(asn_DEF_wlan_DataSet_r14_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_wlan_DataSet_r14_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_wlan_DataSet_r14_2, + 1, /* Single element */ + &asn_SPC_wlan_DataSet_r14_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_WLAN_ProvideAssistanceData_r14_1[] = { + { ATF_POINTER, 2, offsetof(struct WLAN_ProvideAssistanceData_r14, wlan_DataSet_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_wlan_DataSet_r14_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_wlan_DataSet_r14_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_wlan_DataSet_r14_constraint_1 + }, + 0, 0, /* No default value */ + "wlan-DataSet-r14" + }, + { ATF_POINTER, 1, offsetof(struct WLAN_ProvideAssistanceData_r14, wlan_Error_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_WLAN_Error_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wlan-Error-r14" + }, +}; +static const int asn_MAP_WLAN_ProvideAssistanceData_r14_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_WLAN_ProvideAssistanceData_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WLAN_ProvideAssistanceData_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wlan-DataSet-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* wlan-Error-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WLAN_ProvideAssistanceData_r14_specs_1 = { + sizeof(struct WLAN_ProvideAssistanceData_r14), + offsetof(struct WLAN_ProvideAssistanceData_r14, _asn_ctx), + asn_MAP_WLAN_ProvideAssistanceData_r14_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_WLAN_ProvideAssistanceData_r14_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WLAN_ProvideAssistanceData_r14 = { + "WLAN-ProvideAssistanceData-r14", + "WLAN-ProvideAssistanceData-r14", + &asn_OP_SEQUENCE, + asn_DEF_WLAN_ProvideAssistanceData_r14_tags_1, + sizeof(asn_DEF_WLAN_ProvideAssistanceData_r14_tags_1) + /sizeof(asn_DEF_WLAN_ProvideAssistanceData_r14_tags_1[0]), /* 1 */ + asn_DEF_WLAN_ProvideAssistanceData_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_WLAN_ProvideAssistanceData_r14_tags_1) + /sizeof(asn_DEF_WLAN_ProvideAssistanceData_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WLAN_ProvideAssistanceData_r14_1, + 2, /* Elements count */ + &asn_SPC_WLAN_ProvideAssistanceData_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/WLAN-ProvideAssistanceData-r14.h b/asn.1/lpp_generated/WLAN-ProvideAssistanceData-r14.h similarity index 80% rename from asn.1/generated/WLAN-ProvideAssistanceData-r14.h rename to asn.1/lpp_generated/WLAN-ProvideAssistanceData-r14.h index d1c09777..b67dea20 100644 --- a/asn.1/generated/WLAN-ProvideAssistanceData-r14.h +++ b/asn.1/lpp_generated/WLAN-ProvideAssistanceData-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _WLAN_ProvideAssistanceData_r14_H_ @@ -32,7 +32,7 @@ typedef struct WLAN_ProvideAssistanceData_r14 { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *wlan_DataSet_r14; - struct WLAN_Error_r13 *wlan_Error_r14 /* OPTIONAL */; + struct WLAN_Error_r13 *wlan_Error_r14; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -51,9 +51,5 @@ extern asn_TYPE_member_t asn_MBR_WLAN_ProvideAssistanceData_r14_1[2]; } #endif -/* Referred external types */ -#include "WLAN-Error-r13.h" -#include "WLAN-DataSet-r14.h" - #endif /* _WLAN_ProvideAssistanceData_r14_H_ */ #include diff --git a/asn.1/lpp_generated/WLAN-ProvideCapabilities-r13.c b/asn.1/lpp_generated/WLAN-ProvideCapabilities-r13.c new file mode 100644 index 00000000..02570714 --- /dev/null +++ b/asn.1/lpp_generated/WLAN-ProvideCapabilities-r13.c @@ -0,0 +1,450 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "WLAN-ProvideCapabilities-r13.h" + +#include "PositioningModes.h" +#include "ScheduledLocationTimeSupportPerMode-r17.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_wlan_AP_AD_Supported_r14_constraint_10(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_wlan_Modes_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_wlan_MeasSupported_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_idleStateForMeasurements_r14_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_wlan_AP_AD_Supported_r14_constr_11 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_wlan_Modes_r13_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_wlan_MeasSupported_r13_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_idleStateForMeasurements_r14_value2enum_15[] = { + { 0, 8, "required" } +}; +static const unsigned int asn_MAP_idleStateForMeasurements_r14_enum2value_15[] = { + 0 /* required(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_idleStateForMeasurements_r14_specs_15 = { + asn_MAP_idleStateForMeasurements_r14_value2enum_15, /* "tag" => N; sorted by tag */ + asn_MAP_idleStateForMeasurements_r14_enum2value_15, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_idleStateForMeasurements_r14_tags_15[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_idleStateForMeasurements_r14_15 = { + "idleStateForMeasurements-r14", + "idleStateForMeasurements-r14", + &asn_OP_NativeEnumerated, + asn_DEF_idleStateForMeasurements_r14_tags_15, + sizeof(asn_DEF_idleStateForMeasurements_r14_tags_15) + /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_15[0]) - 1, /* 1 */ + asn_DEF_idleStateForMeasurements_r14_tags_15, /* Same as above */ + sizeof(asn_DEF_idleStateForMeasurements_r14_tags_15) + /sizeof(asn_DEF_idleStateForMeasurements_r14_tags_15[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_idleStateForMeasurements_r14_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_idleStateForMeasurements_r14_specs_15 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext1_10[] = { + { ATF_POINTER, 3, offsetof(struct WLAN_ProvideCapabilities_r13__ext1, wlan_AP_AD_Supported_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_wlan_AP_AD_Supported_r14_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_wlan_AP_AD_Supported_r14_constraint_10 + }, + 0, 0, /* No default value */ + "wlan-AP-AD-Supported-r14" + }, + { ATF_POINTER, 2, offsetof(struct WLAN_ProvideCapabilities_r13__ext1, periodicalReportingSupported_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningModes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "periodicalReportingSupported-r14" + }, + { ATF_POINTER, 1, offsetof(struct WLAN_ProvideCapabilities_r13__ext1, idleStateForMeasurements_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_idleStateForMeasurements_r14_15, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "idleStateForMeasurements-r14" + }, +}; +static const int asn_MAP_ext1_oms_10[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_10[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_10[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wlan-AP-AD-Supported-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* periodicalReportingSupported-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* idleStateForMeasurements-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_10 = { + sizeof(struct WLAN_ProvideCapabilities_r13__ext1), + offsetof(struct WLAN_ProvideCapabilities_r13__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_10, + 3, /* Count of tags in the map */ + asn_MAP_ext1_oms_10, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_10 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_10, + sizeof(asn_DEF_ext1_tags_10) + /sizeof(asn_DEF_ext1_tags_10[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_10, /* Same as above */ + sizeof(asn_DEF_ext1_tags_10) + /sizeof(asn_DEF_ext1_tags_10[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_10, + 3, /* Elements count */ + &asn_SPC_ext1_specs_10 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_ext2_17[] = { + { ATF_POINTER, 1, offsetof(struct WLAN_ProvideCapabilities_r13__ext2, scheduledLocationRequestSupported_r17), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ScheduledLocationTimeSupportPerMode_r17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "scheduledLocationRequestSupported-r17" + }, +}; +static const int asn_MAP_ext2_oms_17[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext2_tags_17[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext2_tag2el_17[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* scheduledLocationRequestSupported-r17 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext2_specs_17 = { + sizeof(struct WLAN_ProvideCapabilities_r13__ext2), + offsetof(struct WLAN_ProvideCapabilities_r13__ext2, _asn_ctx), + asn_MAP_ext2_tag2el_17, + 1, /* Count of tags in the map */ + asn_MAP_ext2_oms_17, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext2_17 = { + "ext2", + "ext2", + &asn_OP_SEQUENCE, + asn_DEF_ext2_tags_17, + sizeof(asn_DEF_ext2_tags_17) + /sizeof(asn_DEF_ext2_tags_17[0]) - 1, /* 1 */ + asn_DEF_ext2_tags_17, /* Same as above */ + sizeof(asn_DEF_ext2_tags_17) + /sizeof(asn_DEF_ext2_tags_17[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext2_17, + 1, /* Elements count */ + &asn_SPC_ext2_specs_17 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_WLAN_ProvideCapabilities_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct WLAN_ProvideCapabilities_r13, wlan_Modes_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_wlan_Modes_r13_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_wlan_Modes_r13_constraint_1 + }, + 0, 0, /* No default value */ + "wlan-Modes-r13" + }, + { ATF_NOFLAGS, 0, offsetof(struct WLAN_ProvideCapabilities_r13, wlan_MeasSupported_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_wlan_MeasSupported_r13_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_wlan_MeasSupported_r13_constraint_1 + }, + 0, 0, /* No default value */ + "wlan-MeasSupported-r13" + }, + { ATF_POINTER, 2, offsetof(struct WLAN_ProvideCapabilities_r13, ext1), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ext1_10, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, + { ATF_POINTER, 1, offsetof(struct WLAN_ProvideCapabilities_r13, ext2), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_ext2_17, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext2" + }, +}; +static const int asn_MAP_WLAN_ProvideCapabilities_r13_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_WLAN_ProvideCapabilities_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WLAN_ProvideCapabilities_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wlan-Modes-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* wlan-MeasSupported-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ext1 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext2 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WLAN_ProvideCapabilities_r13_specs_1 = { + sizeof(struct WLAN_ProvideCapabilities_r13), + offsetof(struct WLAN_ProvideCapabilities_r13, _asn_ctx), + asn_MAP_WLAN_ProvideCapabilities_r13_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_WLAN_ProvideCapabilities_r13_oms_1, /* Optional members */ + 0, 2, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WLAN_ProvideCapabilities_r13 = { + "WLAN-ProvideCapabilities-r13", + "WLAN-ProvideCapabilities-r13", + &asn_OP_SEQUENCE, + asn_DEF_WLAN_ProvideCapabilities_r13_tags_1, + sizeof(asn_DEF_WLAN_ProvideCapabilities_r13_tags_1) + /sizeof(asn_DEF_WLAN_ProvideCapabilities_r13_tags_1[0]), /* 1 */ + asn_DEF_WLAN_ProvideCapabilities_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_WLAN_ProvideCapabilities_r13_tags_1) + /sizeof(asn_DEF_WLAN_ProvideCapabilities_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WLAN_ProvideCapabilities_r13_1, + 4, /* Elements count */ + &asn_SPC_WLAN_ProvideCapabilities_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/WLAN-ProvideCapabilities-r13.h b/asn.1/lpp_generated/WLAN-ProvideCapabilities-r13.h similarity index 77% rename from asn.1/generated/WLAN-ProvideCapabilities-r13.h rename to asn.1/lpp_generated/WLAN-ProvideCapabilities-r13.h index 425f30c9..50bcbe6f 100644 --- a/asn.1/generated/WLAN-ProvideCapabilities-r13.h +++ b/asn.1/lpp_generated/WLAN-ProvideCapabilities-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _WLAN_ProvideCapabilities_r13_H_ @@ -40,6 +40,7 @@ typedef enum WLAN_ProvideCapabilities_r13__ext1__idleStateForMeasurements_r14 { /* Forward declarations */ struct PositioningModes; +struct ScheduledLocationTimeSupportPerMode_r17; /* WLAN-ProvideCapabilities-r13 */ typedef struct WLAN_ProvideCapabilities_r13 { @@ -50,13 +51,19 @@ typedef struct WLAN_ProvideCapabilities_r13 { * possible extensions are below. */ struct WLAN_ProvideCapabilities_r13__ext1 { - BIT_STRING_t *wlan_AP_AD_Supported_r14 /* OPTIONAL */; - struct PositioningModes *periodicalReportingSupported_r14 /* OPTIONAL */; - long *idleStateForMeasurements_r14 /* OPTIONAL */; + BIT_STRING_t *wlan_AP_AD_Supported_r14; /* OPTIONAL */ + struct PositioningModes *periodicalReportingSupported_r14; /* OPTIONAL */ + long *idleStateForMeasurements_r14; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *ext1; + struct WLAN_ProvideCapabilities_r13__ext2 { + struct ScheduledLocationTimeSupportPerMode_r17 *scheduledLocationRequestSupported_r17; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *ext2; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -66,14 +73,11 @@ typedef struct WLAN_ProvideCapabilities_r13 { /* extern asn_TYPE_descriptor_t asn_DEF_idleStateForMeasurements_r14_15; // (Use -fall-defs-global to expose) */ extern asn_TYPE_descriptor_t asn_DEF_WLAN_ProvideCapabilities_r13; extern asn_SEQUENCE_specifics_t asn_SPC_WLAN_ProvideCapabilities_r13_specs_1; -extern asn_TYPE_member_t asn_MBR_WLAN_ProvideCapabilities_r13_1[3]; +extern asn_TYPE_member_t asn_MBR_WLAN_ProvideCapabilities_r13_1[4]; #ifdef __cplusplus } #endif -/* Referred external types */ -#include "PositioningModes.h" - #endif /* _WLAN_ProvideCapabilities_r13_H_ */ #include diff --git a/asn.1/lpp_generated/WLAN-ProvideLocationInformation-r13.c b/asn.1/lpp_generated/WLAN-ProvideLocationInformation-r13.c new file mode 100644 index 00000000..8d90bf97 --- /dev/null +++ b/asn.1/lpp_generated/WLAN-ProvideLocationInformation-r13.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "WLAN-ProvideLocationInformation-r13.h" + +#include "WLAN-MeasurementInformation-r13.h" +#include "WLAN-Error-r13.h" +asn_TYPE_member_t asn_MBR_WLAN_ProvideLocationInformation_r13_1[] = { + { ATF_POINTER, 2, offsetof(struct WLAN_ProvideLocationInformation_r13, wlan_MeasurementInformation_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WLAN_MeasurementInformation_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wlan-MeasurementInformation-r13" + }, + { ATF_POINTER, 1, offsetof(struct WLAN_ProvideLocationInformation_r13, wlan_Error_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_WLAN_Error_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wlan-Error-r13" + }, +}; +static const int asn_MAP_WLAN_ProvideLocationInformation_r13_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_WLAN_ProvideLocationInformation_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WLAN_ProvideLocationInformation_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wlan-MeasurementInformation-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* wlan-Error-r13 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WLAN_ProvideLocationInformation_r13_specs_1 = { + sizeof(struct WLAN_ProvideLocationInformation_r13), + offsetof(struct WLAN_ProvideLocationInformation_r13, _asn_ctx), + asn_MAP_WLAN_ProvideLocationInformation_r13_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_WLAN_ProvideLocationInformation_r13_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WLAN_ProvideLocationInformation_r13 = { + "WLAN-ProvideLocationInformation-r13", + "WLAN-ProvideLocationInformation-r13", + &asn_OP_SEQUENCE, + asn_DEF_WLAN_ProvideLocationInformation_r13_tags_1, + sizeof(asn_DEF_WLAN_ProvideLocationInformation_r13_tags_1) + /sizeof(asn_DEF_WLAN_ProvideLocationInformation_r13_tags_1[0]), /* 1 */ + asn_DEF_WLAN_ProvideLocationInformation_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_WLAN_ProvideLocationInformation_r13_tags_1) + /sizeof(asn_DEF_WLAN_ProvideLocationInformation_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WLAN_ProvideLocationInformation_r13_1, + 2, /* Elements count */ + &asn_SPC_WLAN_ProvideLocationInformation_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/WLAN-ProvideLocationInformation-r13.h b/asn.1/lpp_generated/WLAN-ProvideLocationInformation-r13.h similarity index 76% rename from asn.1/generated/WLAN-ProvideLocationInformation-r13.h rename to asn.1/lpp_generated/WLAN-ProvideLocationInformation-r13.h index 4628977e..b3f06807 100644 --- a/asn.1/generated/WLAN-ProvideLocationInformation-r13.h +++ b/asn.1/lpp_generated/WLAN-ProvideLocationInformation-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _WLAN_ProvideLocationInformation_r13_H_ @@ -24,8 +24,8 @@ struct WLAN_Error_r13; /* WLAN-ProvideLocationInformation-r13 */ typedef struct WLAN_ProvideLocationInformation_r13 { - struct WLAN_MeasurementInformation_r13 *wlan_MeasurementInformation_r13 /* OPTIONAL */; - struct WLAN_Error_r13 *wlan_Error_r13 /* OPTIONAL */; + struct WLAN_MeasurementInformation_r13 *wlan_MeasurementInformation_r13; /* OPTIONAL */ + struct WLAN_Error_r13 *wlan_Error_r13; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -44,9 +44,5 @@ extern asn_TYPE_member_t asn_MBR_WLAN_ProvideLocationInformation_r13_1[2]; } #endif -/* Referred external types */ -#include "WLAN-MeasurementInformation-r13.h" -#include "WLAN-Error-r13.h" - #endif /* _WLAN_ProvideLocationInformation_r13_H_ */ #include diff --git a/asn.1/lpp_generated/WLAN-RTT-r13.c b/asn.1/lpp_generated/WLAN-RTT-r13.c new file mode 100644 index 00000000..8c743678 --- /dev/null +++ b/asn.1/lpp_generated/WLAN-RTT-r13.c @@ -0,0 +1,232 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "WLAN-RTT-r13.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_rttValue_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16777215L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_rttAccuracy_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_rttUnits_r13_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rttValue_r13_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rttAccuracy_r13_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_rttUnits_r13_value2enum_3[] = { + { 0, 12, "microseconds" }, + { 1, 21, "hundredsofnanoseconds" }, + { 2, 17, "tensofnanoseconds" }, + { 3, 11, "nanoseconds" }, + { 4, 19, "tenthsofnanoseconds" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_rttUnits_r13_enum2value_3[] = { + 1, /* hundredsofnanoseconds(1) */ + 0, /* microseconds(0) */ + 3, /* nanoseconds(3) */ + 2, /* tensofnanoseconds(2) */ + 4 /* tenthsofnanoseconds(4) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_rttUnits_r13_specs_3 = { + asn_MAP_rttUnits_r13_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_rttUnits_r13_enum2value_3, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 6, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_rttUnits_r13_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_rttUnits_r13_3 = { + "rttUnits-r13", + "rttUnits-r13", + &asn_OP_NativeEnumerated, + asn_DEF_rttUnits_r13_tags_3, + sizeof(asn_DEF_rttUnits_r13_tags_3) + /sizeof(asn_DEF_rttUnits_r13_tags_3[0]) - 1, /* 1 */ + asn_DEF_rttUnits_r13_tags_3, /* Same as above */ + sizeof(asn_DEF_rttUnits_r13_tags_3) + /sizeof(asn_DEF_rttUnits_r13_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_rttUnits_r13_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_rttUnits_r13_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_WLAN_RTT_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct WLAN_RTT_r13, rttValue_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rttValue_r13_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rttValue_r13_constraint_1 + }, + 0, 0, /* No default value */ + "rttValue-r13" + }, + { ATF_NOFLAGS, 0, offsetof(struct WLAN_RTT_r13, rttUnits_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_rttUnits_r13_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rttUnits-r13" + }, + { ATF_POINTER, 1, offsetof(struct WLAN_RTT_r13, rttAccuracy_r13), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rttAccuracy_r13_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rttAccuracy_r13_constraint_1 + }, + 0, 0, /* No default value */ + "rttAccuracy-r13" + }, +}; +static const int asn_MAP_WLAN_RTT_r13_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_WLAN_RTT_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WLAN_RTT_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rttValue-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* rttUnits-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* rttAccuracy-r13 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WLAN_RTT_r13_specs_1 = { + sizeof(struct WLAN_RTT_r13), + offsetof(struct WLAN_RTT_r13, _asn_ctx), + asn_MAP_WLAN_RTT_r13_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_WLAN_RTT_r13_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WLAN_RTT_r13 = { + "WLAN-RTT-r13", + "WLAN-RTT-r13", + &asn_OP_SEQUENCE, + asn_DEF_WLAN_RTT_r13_tags_1, + sizeof(asn_DEF_WLAN_RTT_r13_tags_1) + /sizeof(asn_DEF_WLAN_RTT_r13_tags_1[0]), /* 1 */ + asn_DEF_WLAN_RTT_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_WLAN_RTT_r13_tags_1) + /sizeof(asn_DEF_WLAN_RTT_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WLAN_RTT_r13_1, + 3, /* Elements count */ + &asn_SPC_WLAN_RTT_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/WLAN-RTT-r13.h b/asn.1/lpp_generated/WLAN-RTT-r13.h similarity index 82% rename from asn.1/generated/WLAN-RTT-r13.h rename to asn.1/lpp_generated/WLAN-RTT-r13.h index a4fdfb27..3d3c3502 100644 --- a/asn.1/generated/WLAN-RTT-r13.h +++ b/asn.1/lpp_generated/WLAN-RTT-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _WLAN_RTT_r13_H_ @@ -36,7 +36,7 @@ typedef enum WLAN_RTT_r13__rttUnits_r13 { typedef struct WLAN_RTT_r13 { long rttValue_r13; long rttUnits_r13; - long *rttAccuracy_r13 /* OPTIONAL */; + long *rttAccuracy_r13; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/WLAN-RequestAssistanceData-r14.c b/asn.1/lpp_generated/WLAN-RequestAssistanceData-r14.c new file mode 100644 index 00000000..e61290a1 --- /dev/null +++ b/asn.1/lpp_generated/WLAN-RequestAssistanceData-r14.c @@ -0,0 +1,329 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "WLAN-RequestAssistanceData-r14.h" + +#include "WLAN-AP-Identifier-r13.h" +static int +memb_requestedAD_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_visibleAPs_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 32UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_wlan_AP_StoredData_r14_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 2048UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_visibleAPs_r14_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_wlan_AP_StoredData_r14_constr_7 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 11, 11, 1, 2048 } /* (SIZE(1..2048)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_requestedAD_r14_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_visibleAPs_r14_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_wlan_AP_StoredData_r14_constr_7 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 11, 11, 1, 2048 } /* (SIZE(1..2048)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_visibleAPs_r14_5[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_WLAN_AP_Identifier_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_visibleAPs_r14_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_visibleAPs_r14_specs_5 = { + sizeof(struct WLAN_RequestAssistanceData_r14__visibleAPs_r14), + offsetof(struct WLAN_RequestAssistanceData_r14__visibleAPs_r14, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_visibleAPs_r14_5 = { + "visibleAPs-r14", + "visibleAPs-r14", + &asn_OP_SEQUENCE_OF, + asn_DEF_visibleAPs_r14_tags_5, + sizeof(asn_DEF_visibleAPs_r14_tags_5) + /sizeof(asn_DEF_visibleAPs_r14_tags_5[0]) - 1, /* 1 */ + asn_DEF_visibleAPs_r14_tags_5, /* Same as above */ + sizeof(asn_DEF_visibleAPs_r14_tags_5) + /sizeof(asn_DEF_visibleAPs_r14_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_visibleAPs_r14_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_visibleAPs_r14_5, + 1, /* Single element */ + &asn_SPC_visibleAPs_r14_specs_5 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_wlan_AP_StoredData_r14_7[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_WLAN_AP_Identifier_r13, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_wlan_AP_StoredData_r14_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_wlan_AP_StoredData_r14_specs_7 = { + sizeof(struct WLAN_RequestAssistanceData_r14__wlan_AP_StoredData_r14), + offsetof(struct WLAN_RequestAssistanceData_r14__wlan_AP_StoredData_r14, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_wlan_AP_StoredData_r14_7 = { + "wlan-AP-StoredData-r14", + "wlan-AP-StoredData-r14", + &asn_OP_SEQUENCE_OF, + asn_DEF_wlan_AP_StoredData_r14_tags_7, + sizeof(asn_DEF_wlan_AP_StoredData_r14_tags_7) + /sizeof(asn_DEF_wlan_AP_StoredData_r14_tags_7[0]) - 1, /* 1 */ + asn_DEF_wlan_AP_StoredData_r14_tags_7, /* Same as above */ + sizeof(asn_DEF_wlan_AP_StoredData_r14_tags_7) + /sizeof(asn_DEF_wlan_AP_StoredData_r14_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_wlan_AP_StoredData_r14_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_wlan_AP_StoredData_r14_7, + 1, /* Single element */ + &asn_SPC_wlan_AP_StoredData_r14_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_WLAN_RequestAssistanceData_r14_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct WLAN_RequestAssistanceData_r14, requestedAD_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_requestedAD_r14_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_requestedAD_r14_constraint_1 + }, + 0, 0, /* No default value */ + "requestedAD-r14" + }, + { ATF_POINTER, 2, offsetof(struct WLAN_RequestAssistanceData_r14, visibleAPs_r14), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_visibleAPs_r14_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_visibleAPs_r14_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_visibleAPs_r14_constraint_1 + }, + 0, 0, /* No default value */ + "visibleAPs-r14" + }, + { ATF_POINTER, 1, offsetof(struct WLAN_RequestAssistanceData_r14, wlan_AP_StoredData_r14), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_wlan_AP_StoredData_r14_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_wlan_AP_StoredData_r14_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_wlan_AP_StoredData_r14_constraint_1 + }, + 0, 0, /* No default value */ + "wlan-AP-StoredData-r14" + }, +}; +static const int asn_MAP_WLAN_RequestAssistanceData_r14_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_WLAN_RequestAssistanceData_r14_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WLAN_RequestAssistanceData_r14_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* requestedAD-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* visibleAPs-r14 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* wlan-AP-StoredData-r14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WLAN_RequestAssistanceData_r14_specs_1 = { + sizeof(struct WLAN_RequestAssistanceData_r14), + offsetof(struct WLAN_RequestAssistanceData_r14, _asn_ctx), + asn_MAP_WLAN_RequestAssistanceData_r14_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_WLAN_RequestAssistanceData_r14_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WLAN_RequestAssistanceData_r14 = { + "WLAN-RequestAssistanceData-r14", + "WLAN-RequestAssistanceData-r14", + &asn_OP_SEQUENCE, + asn_DEF_WLAN_RequestAssistanceData_r14_tags_1, + sizeof(asn_DEF_WLAN_RequestAssistanceData_r14_tags_1) + /sizeof(asn_DEF_WLAN_RequestAssistanceData_r14_tags_1[0]), /* 1 */ + asn_DEF_WLAN_RequestAssistanceData_r14_tags_1, /* Same as above */ + sizeof(asn_DEF_WLAN_RequestAssistanceData_r14_tags_1) + /sizeof(asn_DEF_WLAN_RequestAssistanceData_r14_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WLAN_RequestAssistanceData_r14_1, + 3, /* Elements count */ + &asn_SPC_WLAN_RequestAssistanceData_r14_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/WLAN-RequestAssistanceData-r14.h b/asn.1/lpp_generated/WLAN-RequestAssistanceData-r14.h similarity index 88% rename from asn.1/generated/WLAN-RequestAssistanceData-r14.h rename to asn.1/lpp_generated/WLAN-RequestAssistanceData-r14.h index 864f5db5..94caa011 100644 --- a/asn.1/generated/WLAN-RequestAssistanceData-r14.h +++ b/asn.1/lpp_generated/WLAN-RequestAssistanceData-r14.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _WLAN_RequestAssistanceData_r14_H_ @@ -63,8 +63,5 @@ extern asn_TYPE_member_t asn_MBR_WLAN_RequestAssistanceData_r14_1[3]; } #endif -/* Referred external types */ -#include "WLAN-AP-Identifier-r13.h" - #endif /* _WLAN_RequestAssistanceData_r14_H_ */ #include diff --git a/asn.1/lpp_generated/WLAN-RequestCapabilities-r13.c b/asn.1/lpp_generated/WLAN-RequestCapabilities-r13.c new file mode 100644 index 00000000..bb38d03d --- /dev/null +++ b/asn.1/lpp_generated/WLAN-RequestCapabilities-r13.c @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "WLAN-RequestCapabilities-r13.h" + +static const ber_tlv_tag_t asn_DEF_WLAN_RequestCapabilities_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SEQUENCE_specifics_t asn_SPC_WLAN_RequestCapabilities_r13_specs_1 = { + sizeof(struct WLAN_RequestCapabilities_r13), + offsetof(struct WLAN_RequestCapabilities_r13, _asn_ctx), + 0, /* No top level tags */ + 0, /* No tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 0, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WLAN_RequestCapabilities_r13 = { + "WLAN-RequestCapabilities-r13", + "WLAN-RequestCapabilities-r13", + &asn_OP_SEQUENCE, + asn_DEF_WLAN_RequestCapabilities_r13_tags_1, + sizeof(asn_DEF_WLAN_RequestCapabilities_r13_tags_1) + /sizeof(asn_DEF_WLAN_RequestCapabilities_r13_tags_1[0]), /* 1 */ + asn_DEF_WLAN_RequestCapabilities_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_WLAN_RequestCapabilities_r13_tags_1) + /sizeof(asn_DEF_WLAN_RequestCapabilities_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + 0, 0, /* No members */ + &asn_SPC_WLAN_RequestCapabilities_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/WLAN-RequestCapabilities-r13.h b/asn.1/lpp_generated/WLAN-RequestCapabilities-r13.h similarity index 77% rename from asn.1/generated/WLAN-RequestCapabilities-r13.h rename to asn.1/lpp_generated/WLAN-RequestCapabilities-r13.h index 6af11bd2..eb07230f 100644 --- a/asn.1/generated/WLAN-RequestCapabilities-r13.h +++ b/asn.1/lpp_generated/WLAN-RequestCapabilities-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _WLAN_RequestCapabilities_r13_H_ diff --git a/asn.1/lpp_generated/WLAN-RequestLocationInformation-r13.c b/asn.1/lpp_generated/WLAN-RequestLocationInformation-r13.c new file mode 100644 index 00000000..4f803d17 --- /dev/null +++ b/asn.1/lpp_generated/WLAN-RequestLocationInformation-r13.c @@ -0,0 +1,185 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "WLAN-RequestLocationInformation-r13.h" + +static int +memb_requestedMeasurements_r13_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_requestedMeasurements_r13_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ext1_6[] = { + { ATF_POINTER, 1, offsetof(struct WLAN_RequestLocationInformation_r13__ext1, assistanceAvailability_r14), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "assistanceAvailability-r14" + }, +}; +static const int asn_MAP_ext1_oms_6[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* assistanceAvailability-r14 */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = { + sizeof(struct WLAN_RequestLocationInformation_r13__ext1), + offsetof(struct WLAN_RequestLocationInformation_r13__ext1, _asn_ctx), + asn_MAP_ext1_tag2el_6, + 1, /* Count of tags in the map */ + asn_MAP_ext1_oms_6, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ext1_6 = { + "ext1", + "ext1", + &asn_OP_SEQUENCE, + asn_DEF_ext1_tags_6, + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */ + asn_DEF_ext1_tags_6, /* Same as above */ + sizeof(asn_DEF_ext1_tags_6) + /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ext1_6, + 1, /* Elements count */ + &asn_SPC_ext1_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_WLAN_RequestLocationInformation_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct WLAN_RequestLocationInformation_r13, requestedMeasurements_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_requestedMeasurements_r13_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_requestedMeasurements_r13_constraint_1 + }, + 0, 0, /* No default value */ + "requestedMeasurements-r13" + }, + { ATF_POINTER, 1, offsetof(struct WLAN_RequestLocationInformation_r13, ext1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_ext1_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ext1" + }, +}; +static const int asn_MAP_WLAN_RequestLocationInformation_r13_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_WLAN_RequestLocationInformation_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WLAN_RequestLocationInformation_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* requestedMeasurements-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WLAN_RequestLocationInformation_r13_specs_1 = { + sizeof(struct WLAN_RequestLocationInformation_r13), + offsetof(struct WLAN_RequestLocationInformation_r13, _asn_ctx), + asn_MAP_WLAN_RequestLocationInformation_r13_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_WLAN_RequestLocationInformation_r13_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WLAN_RequestLocationInformation_r13 = { + "WLAN-RequestLocationInformation-r13", + "WLAN-RequestLocationInformation-r13", + &asn_OP_SEQUENCE, + asn_DEF_WLAN_RequestLocationInformation_r13_tags_1, + sizeof(asn_DEF_WLAN_RequestLocationInformation_r13_tags_1) + /sizeof(asn_DEF_WLAN_RequestLocationInformation_r13_tags_1[0]), /* 1 */ + asn_DEF_WLAN_RequestLocationInformation_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_WLAN_RequestLocationInformation_r13_tags_1) + /sizeof(asn_DEF_WLAN_RequestLocationInformation_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WLAN_RequestLocationInformation_r13_1, + 2, /* Elements count */ + &asn_SPC_WLAN_RequestLocationInformation_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/WLAN-RequestLocationInformation-r13.h b/asn.1/lpp_generated/WLAN-RequestLocationInformation-r13.h similarity index 83% rename from asn.1/generated/WLAN-RequestLocationInformation-r13.h rename to asn.1/lpp_generated/WLAN-RequestLocationInformation-r13.h index 3e78583c..4985432d 100644 --- a/asn.1/generated/WLAN-RequestLocationInformation-r13.h +++ b/asn.1/lpp_generated/WLAN-RequestLocationInformation-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _WLAN_RequestLocationInformation_r13_H_ @@ -34,7 +34,7 @@ typedef struct WLAN_RequestLocationInformation_r13 { * possible extensions are below. */ struct WLAN_RequestLocationInformation_r13__ext1 { - BOOLEAN_t *assistanceAvailability_r14 /* OPTIONAL */; + BOOLEAN_t *assistanceAvailability_r14; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/lpp_generated/WLAN-TargetDeviceErrorCauses-r13.c b/asn.1/lpp_generated/WLAN-TargetDeviceErrorCauses-r13.c new file mode 100644 index 00000000..adc1af70 --- /dev/null +++ b/asn.1/lpp_generated/WLAN-TargetDeviceErrorCauses-r13.c @@ -0,0 +1,164 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "WLAN-TargetDeviceErrorCauses-r13.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_cause_r13_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_cause_r13_value2enum_2[] = { + { 0, 9, "undefined" }, + { 1, 33, "requestedMeasurementsNotAvailable" }, + { 2, 35, "notAllrequestedMeasurementsPossible" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_cause_r13_enum2value_2[] = { + 2, /* notAllrequestedMeasurementsPossible(2) */ + 1, /* requestedMeasurementsNotAvailable(1) */ + 0 /* undefined(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_cause_r13_specs_2 = { + asn_MAP_cause_r13_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_cause_r13_enum2value_2, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 4, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_cause_r13_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cause_r13_2 = { + "cause-r13", + "cause-r13", + &asn_OP_NativeEnumerated, + asn_DEF_cause_r13_tags_2, + sizeof(asn_DEF_cause_r13_tags_2) + /sizeof(asn_DEF_cause_r13_tags_2[0]) - 1, /* 1 */ + asn_DEF_cause_r13_tags_2, /* Same as above */ + sizeof(asn_DEF_cause_r13_tags_2) + /sizeof(asn_DEF_cause_r13_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_cause_r13_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_cause_r13_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_WLAN_TargetDeviceErrorCauses_r13_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct WLAN_TargetDeviceErrorCauses_r13, cause_r13), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_cause_r13_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cause-r13" + }, + { ATF_POINTER, 2, offsetof(struct WLAN_TargetDeviceErrorCauses_r13, wlan_AP_RSSI_MeasurementNotPossible_r13), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wlan-AP-RSSI-MeasurementNotPossible-r13" + }, + { ATF_POINTER, 1, offsetof(struct WLAN_TargetDeviceErrorCauses_r13, wlan_AP_RTT_MeasurementNotPossible_r13), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wlan-AP-RTT-MeasurementNotPossible-r13" + }, +}; +static const int asn_MAP_WLAN_TargetDeviceErrorCauses_r13_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_WLAN_TargetDeviceErrorCauses_r13_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WLAN_TargetDeviceErrorCauses_r13_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* wlan-AP-RSSI-MeasurementNotPossible-r13 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* wlan-AP-RTT-MeasurementNotPossible-r13 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WLAN_TargetDeviceErrorCauses_r13_specs_1 = { + sizeof(struct WLAN_TargetDeviceErrorCauses_r13), + offsetof(struct WLAN_TargetDeviceErrorCauses_r13, _asn_ctx), + asn_MAP_WLAN_TargetDeviceErrorCauses_r13_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_WLAN_TargetDeviceErrorCauses_r13_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WLAN_TargetDeviceErrorCauses_r13 = { + "WLAN-TargetDeviceErrorCauses-r13", + "WLAN-TargetDeviceErrorCauses-r13", + &asn_OP_SEQUENCE, + asn_DEF_WLAN_TargetDeviceErrorCauses_r13_tags_1, + sizeof(asn_DEF_WLAN_TargetDeviceErrorCauses_r13_tags_1) + /sizeof(asn_DEF_WLAN_TargetDeviceErrorCauses_r13_tags_1[0]), /* 1 */ + asn_DEF_WLAN_TargetDeviceErrorCauses_r13_tags_1, /* Same as above */ + sizeof(asn_DEF_WLAN_TargetDeviceErrorCauses_r13_tags_1) + /sizeof(asn_DEF_WLAN_TargetDeviceErrorCauses_r13_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WLAN_TargetDeviceErrorCauses_r13_1, + 3, /* Elements count */ + &asn_SPC_WLAN_TargetDeviceErrorCauses_r13_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/WLAN-TargetDeviceErrorCauses-r13.h b/asn.1/lpp_generated/WLAN-TargetDeviceErrorCauses-r13.h similarity index 80% rename from asn.1/generated/WLAN-TargetDeviceErrorCauses-r13.h rename to asn.1/lpp_generated/WLAN-TargetDeviceErrorCauses-r13.h index 7745bfad..bc5ff116 100644 --- a/asn.1/generated/WLAN-TargetDeviceErrorCauses-r13.h +++ b/asn.1/lpp_generated/WLAN-TargetDeviceErrorCauses-r13.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "LPP-PDU-Definitions" - * found in "/home/martin/repos/LPP-Client/asn/LPP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` */ #ifndef _WLAN_TargetDeviceErrorCauses_r13_H_ @@ -33,8 +33,8 @@ typedef enum WLAN_TargetDeviceErrorCauses_r13__cause_r13 { /* WLAN-TargetDeviceErrorCauses-r13 */ typedef struct WLAN_TargetDeviceErrorCauses_r13 { long cause_r13; - NULL_t *wlan_AP_RSSI_MeasurementNotPossible_r13 /* OPTIONAL */; - NULL_t *wlan_AP_RTT_MeasurementNotPossible_r13 /* OPTIONAL */; + NULL_t *wlan_AP_RSSI_MeasurementNotPossible_r13; /* OPTIONAL */ + NULL_t *wlan_AP_RTT_MeasurementNotPossible_r13; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/lpp_generated/X-Value-r18.c b/asn.1/lpp_generated/X-Value-r18.c new file mode 100644 index 00000000..9b1e686a --- /dev/null +++ b/asn.1/lpp_generated/X-Value-r18.c @@ -0,0 +1,150 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "X-Value-r18.h" + +static int +memb_delta_x_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_coarse_delta_x_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_delta_x_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_coarse_delta_x_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_X_Value_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct X_Value_r18, delta_x_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_delta_x_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_delta_x_r18_constraint_1 + }, + 0, 0, /* No default value */ + "delta-x-r18" + }, + { ATF_POINTER, 1, offsetof(struct X_Value_r18, coarse_delta_x_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_coarse_delta_x_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_coarse_delta_x_r18_constraint_1 + }, + 0, 0, /* No default value */ + "coarse-delta-x-r18" + }, +}; +static const int asn_MAP_X_Value_r18_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_X_Value_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_X_Value_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* delta-x-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* coarse-delta-x-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_X_Value_r18_specs_1 = { + sizeof(struct X_Value_r18), + offsetof(struct X_Value_r18, _asn_ctx), + asn_MAP_X_Value_r18_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_X_Value_r18_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_X_Value_r18 = { + "X-Value-r18", + "X-Value-r18", + &asn_OP_SEQUENCE, + asn_DEF_X_Value_r18_tags_1, + sizeof(asn_DEF_X_Value_r18_tags_1) + /sizeof(asn_DEF_X_Value_r18_tags_1[0]), /* 1 */ + asn_DEF_X_Value_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_X_Value_r18_tags_1) + /sizeof(asn_DEF_X_Value_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_X_Value_r18_1, + 2, /* Elements count */ + &asn_SPC_X_Value_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/X-Value-r18.h b/asn.1/lpp_generated/X-Value-r18.h new file mode 100644 index 00000000..7ac55ae4 --- /dev/null +++ b/asn.1/lpp_generated/X-Value-r18.h @@ -0,0 +1,45 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _X_Value_r18_H_ +#define _X_Value_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* X-Value-r18 */ +typedef struct X_Value_r18 { + long delta_x_r18; + long *coarse_delta_x_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} X_Value_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_X_Value_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_X_Value_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_X_Value_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _X_Value_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/Y-Value-r18.c b/asn.1/lpp_generated/Y-Value-r18.c new file mode 100644 index 00000000..b6dec3c7 --- /dev/null +++ b/asn.1/lpp_generated/Y-Value-r18.c @@ -0,0 +1,150 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Y-Value-r18.h" + +static int +memb_delta_y_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_coarse_delta_y_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_delta_y_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_coarse_delta_y_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Y_Value_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Y_Value_r18, delta_y_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_delta_y_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_delta_y_r18_constraint_1 + }, + 0, 0, /* No default value */ + "delta-y-r18" + }, + { ATF_POINTER, 1, offsetof(struct Y_Value_r18, coarse_delta_y_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_coarse_delta_y_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_coarse_delta_y_r18_constraint_1 + }, + 0, 0, /* No default value */ + "coarse-delta-y-r18" + }, +}; +static const int asn_MAP_Y_Value_r18_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_Y_Value_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Y_Value_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* delta-y-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* coarse-delta-y-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Y_Value_r18_specs_1 = { + sizeof(struct Y_Value_r18), + offsetof(struct Y_Value_r18, _asn_ctx), + asn_MAP_Y_Value_r18_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_Y_Value_r18_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Y_Value_r18 = { + "Y-Value-r18", + "Y-Value-r18", + &asn_OP_SEQUENCE, + asn_DEF_Y_Value_r18_tags_1, + sizeof(asn_DEF_Y_Value_r18_tags_1) + /sizeof(asn_DEF_Y_Value_r18_tags_1[0]), /* 1 */ + asn_DEF_Y_Value_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_Y_Value_r18_tags_1) + /sizeof(asn_DEF_Y_Value_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Y_Value_r18_1, + 2, /* Elements count */ + &asn_SPC_Y_Value_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/Y-Value-r18.h b/asn.1/lpp_generated/Y-Value-r18.h new file mode 100644 index 00000000..0e8ad18b --- /dev/null +++ b/asn.1/lpp_generated/Y-Value-r18.h @@ -0,0 +1,45 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _Y_Value_r18_H_ +#define _Y_Value_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Y-Value-r18 */ +typedef struct Y_Value_r18 { + long delta_y_r18; + long *coarse_delta_y_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Y_Value_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Y_Value_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_Y_Value_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_Y_Value_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Y_Value_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/Z-Value-r18.c b/asn.1/lpp_generated/Z-Value-r18.c new file mode 100644 index 00000000..701a0546 --- /dev/null +++ b/asn.1/lpp_generated/Z-Value-r18.c @@ -0,0 +1,150 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#include "Z-Value-r18.h" + +static int +memb_delta_z_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -1024L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_coarse_delta_z_r18_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_delta_z_r18_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_coarse_delta_z_r18_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Z_Value_r18_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Z_Value_r18, delta_z_r18), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_delta_z_r18_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_delta_z_r18_constraint_1 + }, + 0, 0, /* No default value */ + "delta-z-r18" + }, + { ATF_POINTER, 1, offsetof(struct Z_Value_r18, coarse_delta_z_r18), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_coarse_delta_z_r18_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_coarse_delta_z_r18_constraint_1 + }, + 0, 0, /* No default value */ + "coarse-delta-z-r18" + }, +}; +static const int asn_MAP_Z_Value_r18_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_Z_Value_r18_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Z_Value_r18_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* delta-z-r18 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* coarse-delta-z-r18 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Z_Value_r18_specs_1 = { + sizeof(struct Z_Value_r18), + offsetof(struct Z_Value_r18, _asn_ctx), + asn_MAP_Z_Value_r18_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_Z_Value_r18_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Z_Value_r18 = { + "Z-Value-r18", + "Z-Value-r18", + &asn_OP_SEQUENCE, + asn_DEF_Z_Value_r18_tags_1, + sizeof(asn_DEF_Z_Value_r18_tags_1) + /sizeof(asn_DEF_Z_Value_r18_tags_1[0]), /* 1 */ + asn_DEF_Z_Value_r18_tags_1, /* Same as above */ + sizeof(asn_DEF_Z_Value_r18_tags_1) + /sizeof(asn_DEF_Z_Value_r18_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Z_Value_r18_1, + 2, /* Elements count */ + &asn_SPC_Z_Value_r18_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/lpp_generated/Z-Value-r18.h b/asn.1/lpp_generated/Z-Value-r18.h new file mode 100644 index 00000000..4d2bb6db --- /dev/null +++ b/asn.1/lpp_generated/Z-Value-r18.h @@ -0,0 +1,45 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "LPP-PDU-Definitions" + * found in "src/LPP-PDU-Definitions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D lpp_generated/ -S empty_skeleton/` + */ + +#ifndef _Z_Value_r18_H_ +#define _Z_Value_r18_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Z-Value-r18 */ +typedef struct Z_Value_r18 { + long delta_z_r18; + long *coarse_delta_z_r18; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Z_Value_r18_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Z_Value_r18; +extern asn_SEQUENCE_specifics_t asn_SPC_Z_Value_r18_specs_1; +extern asn_TYPE_member_t asn_MBR_Z_Value_r18_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Z_Value_r18_H_ */ +#include diff --git a/asn.1/lpp_generated/asn_config.h b/asn.1/lpp_generated/asn_config.h new file mode 100644 index 00000000..764c38e2 --- /dev/null +++ b/asn.1/lpp_generated/asn_config.h @@ -0,0 +1,7 @@ +// Generated automatically. Don't edit manually! + +#define ASN_DISABLE_BER_SUPPORT 1 +#define ASN_DISABLE_OER_SUPPORT 1 +#define ASN_DISABLE_APER_SUPPORT 1 +#define ASN_DISABLE_PRINT_SUPPORT 1 +#define ASN_DISABLE_RFILL_SUPPORT 1 diff --git a/asn.1/lpp_generated/asn_constant.h b/asn.1/lpp_generated/asn_constant.h new file mode 100644 index 00000000..346ae3a0 --- /dev/null +++ b/asn.1/lpp_generated/asn_constant.h @@ -0,0 +1,105 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + */ + +#ifndef _ASN_CONSTANT_H +#define _ASN_CONSTANT_H + +#ifdef __cplusplus +extern "C" { +#endif + +#define min_val_SequenceNumber (0) +#define max_val_SequenceNumber (255) +#define min_val_TransactionNumber (0) +#define max_val_TransactionNumber (255) +#define min_val_ARFCN_ValueEUTRA (0) +#define max_val_ARFCN_ValueEUTRA (65535) +#define min_val_ARFCN_ValueEUTRA_v9a0 (65536) +#define max_val_ARFCN_ValueEUTRA_v9a0 (262143) +#define min_val_ARFCN_ValueEUTRA_r14 (0) +#define max_val_ARFCN_ValueEUTRA_r14 (262143) +#define min_val_ARFCN_ValueNR_r15 (0) +#define max_val_ARFCN_ValueNR_r15 (3279165) +#define min_val_ARFCN_ValueUTRA (0) +#define max_val_ARFCN_ValueUTRA (16383) +#define maxEPDU (16) +#define min_val_EPDU_ID (1) +#define max_val_EPDU_ID (256) +#define min_val_FreqBandIndicatorNR_r16 (1) +#define max_val_FreqBandIndicatorNR_r16 (1024) +#define min_val_NR_PhysCellID_r16 (0) +#define max_val_NR_PhysCellID_r16 (1007) +#define min_val_ReportingDuration (0) +#define max_val_ReportingDuration (255) +#define min_val_TargetIntegrityRisk_r17 (10) +#define max_val_TargetIntegrityRisk_r17 (90) +#define min_val_NR_DL_PRS_ResourceID_r16 (0) +#define max_val_NR_DL_PRS_ResourceID_r16 (63) +#define min_val_NR_DL_PRS_ResourceSetID_r16 (0) +#define max_val_NR_DL_PRS_ResourceSetID_r16 (7) +#define maxAddPRSconfig_r14 (2) +#define maxAvailNarrowBands_Minus1_r14 (15) +#define maxFreqLayers (3) +#define maxCarrier_r14 (5) +#define maxCells_r14 (72) +#define maxPaths_r14 (2) +#define maxBands (64) +#define maxFBI (64) +#define maxFBI_Plus1 (65) +#define maxFBI2 (256) +#define maxEARFCN (65535) +#define maxEARFCN_Plus1 (65536) +#define maxEARFCN2 (262143) +#define maxMBS_r14 (64) +#define maxWLAN_AP_r13 (64) +#define maxKnownAPs_r14 (2048) +#define maxVisibleAPs_r14 (32) +#define maxWLAN_AP_r14 (128) +#define maxWLAN_DataSets_r14 (8) +#define maxBT_Beacon_r13 (32) +#define maxBT_BeaconAntElt_r18 (74) +#define maxBT_BeaconAD_r18 (64) +#define nrMaxBands_r16 (1024) +#define nrMaxFreqLayers_r16 (4) +#define nrMaxFreqLayers_1_r16 (3) +#define nrMaxNumDL_PRS_ResourcesPerSet_1_r16 (63) +#define nrMaxNumDL_PRS_ResourceSetsPerTRP_1_r16 (7) +#define nrMaxResourceIDs_r16 (64) +#define nrMaxResourceOffsetValue_1_r16 (511) +#define nrMaxResourcesPerSet_r16 (64) +#define nrMaxSetsPerTrpPerFreqLayer_r16 (2) +#define nrMaxSetsPerTrpPerFreqLayer_1_r16 (1) +#define nrMaxTRPs_r16 (256) +#define nrMaxTRPsPerFreq_r16 (64) +#define nrMaxTRPsPerFreq_1_r16 (63) +#define maxSimultaneousBands_r16 (4) +#define maxBandComb_r16 (1024) +#define nrMaxConfiguredBands_r16 (16) +#define maxNumOfRxTEGs_r17 (32) +#define maxNumOfRxTEGs_1_r17 (31) +#define maxNumOfTxTEGs_1_r17 (7) +#define maxTxTEG_Sets_r17 (256) +#define maxNumOfRxTxTEGs_1_r17 (255) +#define maxNumOfTRP_TxTEGs_1_r17 (7) +#define maxNumOfSRS_PosResources_r17 (64) +#define maxNumOfSRS_PosResources_1_r17 (63) +#define maxNumResourcesPerAngle_r17 (24) +#define maxNumPrioResources_r17 (24) +#define maxAddMeasTDOA_r17 (31) +#define maxAddMeasAoD_r17 (23) +#define maxAddMeasRTT_r17 (31) +#define maxOD_DL_PRS_Configs_r17 (8) +#define maxCellIDsPerArea_r17 (256) +#define maxNrOfAreas_r17 (16) +#define maxMeasInstances_r17 (32) +#define nrMaxNumPRS_BandWidthAggregation_r18 (256) +#define nrNumOfSamples_r18 (4) +#define nrNumOfSamples_1_r18 (3) + + +#ifdef __cplusplus +} +#endif + +#endif /* _ASN_CONSTANT_H */ diff --git a/asn.1/skeleton/ANY.c b/asn.1/skeleton/ANY.c new file mode 100644 index 00000000..3cbe1e27 --- /dev/null +++ b/asn.1/skeleton/ANY.c @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2004-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_OCTET_STRING_specifics_t asn_SPC_ANY_specs = { + sizeof(ANY_t), + offsetof(ANY_t, _asn_ctx), + ASN_OSUBV_ANY +}; +asn_TYPE_operation_t asn_OP_ANY = { + OCTET_STRING_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + OCTET_STRING_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + OCTET_STRING_compare, + OCTET_STRING_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OCTET_STRING_decode_ber, + OCTET_STRING_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + OCTET_STRING_decode_xer_hex, + ANY_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + OCTET_STRING_decode_jer_hex, + ANY_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, + 0, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + ANY_decode_uper, + ANY_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + ANY_decode_aper, + ANY_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + 0, /* Random fill is not defined for ANY type */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_ANY = { + "ANY", + "ANY", + &asn_OP_ANY, + 0, 0, 0, 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + asn_generic_no_constraint + }, /* No constraints */ + 0, 0, /* No members */ + &asn_SPC_ANY_specs, +}; diff --git a/asn.1/skeleton/ANY.h b/asn.1/skeleton/ANY.h new file mode 100644 index 00000000..6434aab7 --- /dev/null +++ b/asn.1/skeleton/ANY.h @@ -0,0 +1,86 @@ +/*- + * Copyright (c) 2004-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef ASN_TYPE_ANY_H +#define ASN_TYPE_ANY_H + +#include /* Implemented via OCTET STRING type */ + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct ANY { + uint8_t *buf; /* BER-encoded ANY contents */ + int size; /* Size of the above buffer */ + + asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */ +} ANY_t; + +extern asn_TYPE_descriptor_t asn_DEF_ANY; +extern asn_TYPE_operation_t asn_OP_ANY; +extern asn_OCTET_STRING_specifics_t asn_SPC_ANY_specs; + +#define ANY_free OCTET_STRING_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +#define ANY_print OCTET_STRING_print +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define ANY_compare OCTET_STRING_compare +#define ANY_copy OCTET_STRING_copy + +#define ANY_constraint asn_generic_no_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define ANY_decode_ber OCTET_STRING_decode_ber +#define ANY_encode_der OCTET_STRING_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#define ANY_decode_xer OCTET_STRING_decode_xer_hex +xer_type_encoder_f ANY_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +jer_type_decoder_f ANY_decode_jer; +jer_type_encoder_f ANY_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +per_type_decoder_f ANY_decode_uper; +per_type_encoder_f ANY_encode_uper; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +per_type_decoder_f ANY_decode_aper; +per_type_encoder_f ANY_encode_aper; +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +/****************************** + * Handy conversion routines. * + ******************************/ + +/* Convert another ASN.1 type into the ANY. This implies DER encoding. */ +int ANY_fromType(ANY_t *, asn_TYPE_descriptor_t *td, void *struct_ptr); +ANY_t *ANY_new_fromType(asn_TYPE_descriptor_t *td, void *struct_ptr); +#if !defined(ASN_DISABLE_APER_SUPPORT) +int ANY_fromType_aper(ANY_t *st, asn_TYPE_descriptor_t *td, void *sptr); +ANY_t *ANY_new_fromType_aper(asn_TYPE_descriptor_t *td, void *sptr); +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +/* Convert the contents of the ANY type into the specified type. */ +int ANY_to_type(ANY_t *, asn_TYPE_descriptor_t *td, void **struct_ptr); +#if !defined(ASN_DISABLE_APER_SUPPORT) +int ANY_to_type_aper(ANY_t *, asn_TYPE_descriptor_t *td, void **struct_ptr); +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#define ANY_fromBuf(s, buf, size) OCTET_STRING_fromBuf((s), (buf), (size)) +#define ANY_new_fromBuf(buf, size) OCTET_STRING_new_fromBuf( \ + &asn_DEF_ANY, (buf), (size)) + +#ifdef __cplusplus +} +#endif + +#endif /* ASN_TYPE_ANY_H */ diff --git a/asn.1/skeleton/ANY_aper.c b/asn.1/skeleton/ANY_aper.c new file mode 100644 index 00000000..91d72776 --- /dev/null +++ b/asn.1/skeleton/ANY_aper.c @@ -0,0 +1,190 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +#undef RETURN +#define RETURN(_code) \ + do { \ + asn_dec_rval_t tmprval; \ + tmprval.code = _code; \ + tmprval.consumed = consumed_myself; \ + return tmprval; \ + } while(0) + +int +ANY_fromType_aper(ANY_t *st, asn_TYPE_descriptor_t *td, void *sptr) { + uint8_t *buffer = NULL; + ssize_t erval; + + if(!st || !td) { + errno = EINVAL; + return -1; + } + + if(!sptr) { + if(st->buf) FREEMEM(st->buf); + st->size = 0; + return 0; + } + + erval = aper_encode_to_new_buffer(td, td->encoding_constraints.per_constraints, sptr, (void**)&buffer); + + if(erval == -1) { + if(buffer) FREEMEM(buffer); + return -1; + } + assert((size_t)erval > 0); + + if(st->buf) FREEMEM(st->buf); + st->buf = buffer; + st->size = erval; + + return 0; +} + +ANY_t * +ANY_new_fromType_aper(asn_TYPE_descriptor_t *td, void *sptr) { + ANY_t tmp; + ANY_t *st; + + if(!td || !sptr) { + errno = EINVAL; + return 0; + } + + memset(&tmp, 0, sizeof(tmp)); + + if(ANY_fromType_aper(&tmp, td, sptr)) return 0; + + st = (ANY_t *)CALLOC(1, sizeof(ANY_t)); + if(st) { + *st = tmp; + return st; + } else { + FREEMEM(tmp.buf); + return 0; + } +} + +int +ANY_to_type_aper(ANY_t *st, asn_TYPE_descriptor_t *td, void **struct_ptr) { + asn_dec_rval_t rval; + void *newst = 0; + + if(!st || !td || !struct_ptr) { + errno = EINVAL; + return -1; + } + + if(st->buf == 0) { + /* Nothing to convert, make it empty. */ + *struct_ptr = (void *)0; + return 0; + } + + rval = aper_decode(0, td, (void **)&newst, st->buf, st->size, 0, 0); + if(rval.code == RC_OK) { + *struct_ptr = newst; + return 0; + } else { + /* Remove possibly partially decoded data. */ + ASN_STRUCT_FREE(*td, newst); + return -1; + } +} + +asn_dec_rval_t +ANY_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, + asn_per_data_t *pd) { + const asn_OCTET_STRING_specifics_t *specs = + td->specifics ? (const asn_OCTET_STRING_specifics_t *)td->specifics + : &asn_SPC_ANY_specs; + size_t consumed_myself = 0; + int repeat; + ANY_t *st = (ANY_t *)*sptr; + + (void)opt_codec_ctx; + (void)constraints; + + /* + * Allocate the structure. + */ + if(!st) { + st = (ANY_t *)(*sptr = CALLOC(1, specs->struct_size)); + if(!st) RETURN(RC_FAIL); + } + + ASN_DEBUG("APER Decoding ANY type"); + + st->size = 0; + do { + ssize_t raw_len; + ssize_t len_bytes; + ssize_t len_bits; + void *p; + int ret; + + /* Get the PER length */ + raw_len = aper_get_length(pd, -1, -1, 0, &repeat); + if(raw_len < 0) RETURN(RC_WMORE); + if(raw_len == 0 && st->buf) break; + + ASN_DEBUG("Got PER length len %" ASN_PRI_SIZE ", %s (%s)", raw_len, + repeat ? "repeat" : "once", td->name); + len_bytes = raw_len; + len_bits = len_bytes * 8; + + p = REALLOC(st->buf, st->size + len_bytes + 1); + if(!p) RETURN(RC_FAIL); + st->buf = (uint8_t *)p; + + ret = per_get_many_bits(pd, &st->buf[st->size], 0, len_bits); + if(ret < 0) RETURN(RC_WMORE); + consumed_myself += len_bits; + st->size += len_bytes; + } while(repeat); + st->buf[st->size] = 0; /* nul-terminate */ + + RETURN(RC_OK); +} + +asn_enc_rval_t +ANY_encode_aper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, const void *sptr, + asn_per_outp_t *po) { + const ANY_t *st = (const ANY_t *)sptr; + asn_enc_rval_t er = {0, 0, 0}; + const uint8_t *buf; + size_t size; + int ret; + + (void)constraints; + + if(!st || (!st->buf && st->size)) ASN__ENCODE_FAILED; + + buf = st->buf; + size = st->size; + do { + int need_eom = 0; + ssize_t may_save = aper_put_length(po, -1, -1, size, &need_eom); + if(may_save < 0) ASN__ENCODE_FAILED; + + ret = per_put_many_bits(po, buf, may_save * 8); + if(ret) ASN__ENCODE_FAILED; + + buf += may_save; + size -= may_save; + assert(!(may_save & 0x07) || !size); + if(need_eom && aper_put_length(po, -1, -1, 0, NULL)) + ASN__ENCODE_FAILED; /* End of Message length */ + } while(size); + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/ANY_ber.c b/asn.1/skeleton/ANY_ber.c new file mode 100644 index 00000000..2ebe45bd --- /dev/null +++ b/asn.1/skeleton/ANY_ber.c @@ -0,0 +1,116 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +struct _callback_arg { + uint8_t *buffer; + size_t offset; + size_t size; +}; + +static int ANY__consume_bytes(const void *buffer, size_t size, void *key) { + struct _callback_arg *arg = (struct _callback_arg *)key; + + if((arg->offset + size) >= arg->size) { + size_t nsize = (arg->size ? arg->size << 2 : 16) + size; + void *p = REALLOC(arg->buffer, nsize); + if(!p) return -1; + arg->buffer = (uint8_t *)p; + arg->size = nsize; + } + + memcpy(arg->buffer + arg->offset, buffer, size); + arg->offset += size; + assert(arg->offset < arg->size); + + return 0; +} + +int +ANY_fromType(ANY_t *st, asn_TYPE_descriptor_t *td, void *sptr) { + struct _callback_arg arg; + asn_enc_rval_t erval = {0,0,0}; + + if(!st || !td) { + errno = EINVAL; + return -1; + } + + if(!sptr) { + if(st->buf) FREEMEM(st->buf); + st->size = 0; + return 0; + } + + arg.offset = arg.size = 0; + arg.buffer = 0; + + erval = der_encode(td, sptr, ANY__consume_bytes, &arg); + if(erval.encoded == -1) { + if(arg.buffer) FREEMEM(arg.buffer); + return -1; + } + assert((size_t)erval.encoded == arg.offset); + + if(st->buf) FREEMEM(st->buf); + st->buf = arg.buffer; + st->size = arg.offset; + + return 0; +} + +ANY_t * +ANY_new_fromType(asn_TYPE_descriptor_t *td, void *sptr) { + ANY_t tmp; + ANY_t *st; + + if(!td || !sptr) { + errno = EINVAL; + return 0; + } + + memset(&tmp, 0, sizeof(tmp)); + + if(ANY_fromType(&tmp, td, sptr)) return 0; + + st = (ANY_t *)CALLOC(1, sizeof(ANY_t)); + if(st) { + *st = tmp; + return st; + } else { + FREEMEM(tmp.buf); + return 0; + } +} + +int +ANY_to_type(ANY_t *st, asn_TYPE_descriptor_t *td, void **struct_ptr) { + asn_dec_rval_t rval; + void *newst = 0; + + if(!st || !td || !struct_ptr) { + errno = EINVAL; + return -1; + } + + if(st->buf == 0) { + /* Nothing to convert, make it empty. */ + *struct_ptr = (void *)0; + return 0; + } + + rval = ber_decode(0, td, (void **)&newst, st->buf, st->size); + if(rval.code == RC_OK) { + *struct_ptr = newst; + return 0; + } else { + /* Remove possibly partially decoded data. */ + ASN_STRUCT_FREE(*td, newst); + return -1; + } +} diff --git a/asn.1/skeleton/ANY_jer.c b/asn.1/skeleton/ANY_jer.c new file mode 100644 index 00000000..a86db9c7 --- /dev/null +++ b/asn.1/skeleton/ANY_jer.c @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_enc_rval_t +ANY_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + enum jer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, + void *app_key) { + ASN__ENCODE_FAILED; + + /* Dump as binary */ + return OCTET_STRING_encode_jer(td, sptr, ilevel, flags, cb, app_key); +} diff --git a/asn.1/skeleton/ANY_uper.c b/asn.1/skeleton/ANY_uper.c new file mode 100644 index 00000000..65f1519b --- /dev/null +++ b/asn.1/skeleton/ANY_uper.c @@ -0,0 +1,108 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +#undef RETURN +#define RETURN(_code) \ + do { \ + asn_dec_rval_t tmprval; \ + tmprval.code = _code; \ + tmprval.consumed = consumed_myself; \ + return tmprval; \ + } while(0) + +asn_dec_rval_t +ANY_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, + asn_per_data_t *pd) { + const asn_OCTET_STRING_specifics_t *specs = + td->specifics ? (const asn_OCTET_STRING_specifics_t *)td->specifics + : &asn_SPC_ANY_specs; + size_t consumed_myself = 0; + int repeat; + ANY_t *st = (ANY_t *)*sptr; + + (void)opt_codec_ctx; + (void)constraints; + + /* + * Allocate the structure. + */ + if(!st) { + st = (ANY_t *)(*sptr = CALLOC(1, specs->struct_size)); + if(!st) RETURN(RC_FAIL); + } + + ASN_DEBUG("UPER Decoding ANY type"); + + st->size = 0; + do { + ssize_t raw_len; + ssize_t len_bytes; + ssize_t len_bits; + void *p; + int ret; + + /* Get the PER length */ + raw_len = uper_get_length(pd, -1, 0, &repeat); + if(raw_len < 0) RETURN(RC_WMORE); + if(raw_len == 0 && st->buf) break; + + ASN_DEBUG("Got PER length len %" ASN_PRI_SIZE ", %s (%s)", raw_len, + repeat ? "repeat" : "once", td->name); + len_bytes = raw_len; + len_bits = len_bytes * 8; + + p = REALLOC(st->buf, st->size + len_bytes + 1); + if(!p) RETURN(RC_FAIL); + st->buf = (uint8_t *)p; + + ret = per_get_many_bits(pd, &st->buf[st->size], 0, len_bits); + if(ret < 0) RETURN(RC_WMORE); + consumed_myself += len_bits; + st->size += len_bytes; + } while(repeat); + st->buf[st->size] = 0; /* nul-terminate */ + + RETURN(RC_OK); +} + +asn_enc_rval_t +ANY_encode_uper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, const void *sptr, + asn_per_outp_t *po) { + const ANY_t *st = (const ANY_t *)sptr; + asn_enc_rval_t er = {0, 0, 0}; + const uint8_t *buf; + size_t size; + int ret; + + (void)constraints; + + if(!st || (!st->buf && st->size)) ASN__ENCODE_FAILED; + + buf = st->buf; + size = st->size; + do { + int need_eom = 0; + ssize_t may_save = uper_put_length(po, size, &need_eom); + if(may_save < 0) ASN__ENCODE_FAILED; + + ret = per_put_many_bits(po, buf, may_save * 8); + if(ret) ASN__ENCODE_FAILED; + + buf += may_save; + size -= may_save; + assert(!(may_save & 0x07) || !size); + if(need_eom && uper_put_length(po, 0, 0)) + ASN__ENCODE_FAILED; /* End of Message length */ + } while(size); + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/ANY_xer.c b/asn.1/skeleton/ANY_xer.c new file mode 100644 index 00000000..112c2132 --- /dev/null +++ b/asn.1/skeleton/ANY_xer.c @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_enc_rval_t +ANY_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, + void *app_key) { + if(flags & XER_F_CANONICAL) { + /* + * Canonical XER-encoding of ANY type is not supported. + */ + ASN__ENCODE_FAILED; + } + + /* Dump as binary */ + return OCTET_STRING_encode_xer(td, sptr, ilevel, flags, cb, app_key); +} diff --git a/asn.1/skeleton/BIT_STRING.c b/asn.1/skeleton/BIT_STRING.c new file mode 100644 index 00000000..208ac14c --- /dev/null +++ b/asn.1/skeleton/BIT_STRING.c @@ -0,0 +1,250 @@ +/*- + * Copyright (c) 2003, 2004 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * BIT STRING basic type description. + */ +static const ber_tlv_tag_t asn_DEF_BIT_STRING_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_OCTET_STRING_specifics_t asn_SPC_BIT_STRING_specs = { + sizeof(BIT_STRING_t), + offsetof(BIT_STRING_t, _asn_ctx), + ASN_OSUBV_BIT +}; +asn_TYPE_operation_t asn_OP_BIT_STRING = { + OCTET_STRING_free, /* Implemented in terms of OCTET STRING */ +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + BIT_STRING_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + BIT_STRING_compare, + BIT_STRING_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_der, /* Implemented in terms of OCTET STRING */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + OCTET_STRING_decode_xer_binary, + BIT_STRING_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + OCTET_STRING_decode_jer_hex, + BIT_STRING_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + BIT_STRING_decode_oer, + BIT_STRING_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + BIT_STRING_decode_uper, /* Unaligned PER decoder */ + BIT_STRING_encode_uper, /* Unaligned PER encoder */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, /* Aligned PER decoder */ + OCTET_STRING_encode_aper, /* Aligned PER encoder */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + BIT_STRING_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_BIT_STRING = { + "BIT STRING", + "BIT_STRING", + &asn_OP_BIT_STRING, + asn_DEF_BIT_STRING_tags, + sizeof(asn_DEF_BIT_STRING_tags) + / sizeof(asn_DEF_BIT_STRING_tags[0]), + asn_DEF_BIT_STRING_tags, /* Same as above */ + sizeof(asn_DEF_BIT_STRING_tags) + / sizeof(asn_DEF_BIT_STRING_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + BIT_STRING_constraint + }, + 0, 0, /* No members */ + &asn_SPC_BIT_STRING_specs +}; + +/* + * BIT STRING generic constraint. + */ +int +BIT_STRING_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + + if(st && st->buf) { + if((st->size == 0 && st->bits_unused) + || st->bits_unused < 0 || st->bits_unused > 7) { + ASN__CTFAIL(app_key, td, sptr, + "%s: invalid padding byte (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + return 0; +} + +/* + * Non-destructively remove the trailing 0-bits from the given bit string. + */ +const BIT_STRING_t * +BIT_STRING__compactify(const BIT_STRING_t *st, BIT_STRING_t *tmp) { + const uint8_t *b; + union { + const uint8_t *c_buf; + uint8_t *nc_buf; + } unconst; + + if(st->size == 0) { + assert(st->bits_unused == 0); + return st; + } else { + for(b = &st->buf[st->size - 1]; b > st->buf && *b == 0; b--) { + ; + } + /* b points to the last byte which may contain data */ + if(*b) { + int unused = 7; + uint8_t v = *b; + v &= -(int8_t)v; + if(v & 0x0F) unused -= 4; + if(v & 0x33) unused -= 2; + if(v & 0x55) unused -= 1; + tmp->size = b-st->buf + 1; + tmp->bits_unused = unused; + } else { + tmp->size = b-st->buf; + tmp->bits_unused = 0; + } + + assert(b >= st->buf); + } + + unconst.c_buf = st->buf; + tmp->buf = unconst.nc_buf; + return tmp; +} + +/* + * Lexicographically compare the common prefix of both strings, + * and if it is the same return -1 for the smallest string. + */ +int +BIT_STRING_compare(const asn_TYPE_descriptor_t *td, const void *aptr, + const void *bptr) { + /* + * Remove information about trailing bits, since + * X.680 (08/2015) #22.7 "ensure that different semantics are not" + * "associated with [values that differ only in] the trailing 0 bits." + */ + BIT_STRING_t compact_a, compact_b; + const BIT_STRING_t *a = BIT_STRING__compactify(aptr, &compact_a); + const BIT_STRING_t *b = BIT_STRING__compactify(bptr, &compact_b); + const asn_OCTET_STRING_specifics_t *specs = td->specifics; + + (void)specs; + assert(specs && specs->subvariant == ASN_OSUBV_BIT); + + if(a && b) { + size_t common_prefix_size = a->size <= b->size ? a->size : b->size; + int ret = memcmp(a->buf, b->buf, common_prefix_size); + if(ret == 0) { + /* Figure out which string with equal prefixes is longer. */ + if(a->size < b->size) { + return -1; + } else if(a->size > b->size) { + return 1; + } else { + /* Figure out how many unused bits */ + if(a->bits_unused > b->bits_unused) { + return -1; + } else if(a->bits_unused < b->bits_unused) { + return 1; + } else { + return 0; + } + } + } else { + return ret; + } + } else if(!a && !b) { + return 0; + } else if(!a) { + return -1; + } else { + return 1; + } +} + +int +BIT_STRING_copy(const asn_TYPE_descriptor_t *td, void **aptr, + const void *bptr) { + const asn_OCTET_STRING_specifics_t *specs = td->specifics; + BIT_STRING_t *a = (BIT_STRING_t *)*aptr; + const BIT_STRING_t *b = (const BIT_STRING_t *)bptr; + + if(!b) { + if(a) { + FREEMEM(a->buf); + FREEMEM(a); + *aptr = 0; + } + return 0; + } + + if(!a) { + a = *aptr = CALLOC(1, specs->struct_size); + if(!a) return -1; + } + + uint8_t* buf = MALLOC(b->size + 1); + if(!buf) return -1; + memcpy(buf, b->buf, b->size); + buf[b->size] = 0; + + FREEMEM(a->buf); + a->buf = buf; + a->size = b->size; + a->bits_unused = b->bits_unused; + + return 0; +} diff --git a/asn.1/skeleton/BIT_STRING.h b/asn.1/skeleton/BIT_STRING.h new file mode 100644 index 00000000..0b71feb7 --- /dev/null +++ b/asn.1/skeleton/BIT_STRING.h @@ -0,0 +1,77 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _BIT_STRING_H_ +#define _BIT_STRING_H_ + +#include /* Some help from OCTET STRING */ + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct BIT_STRING_s { + uint8_t *buf; /* BIT STRING body */ + size_t size; /* Size of the above buffer */ + + int bits_unused;/* Unused trailing bits in the last octet (0..7) */ + + asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */ +} BIT_STRING_t; + +extern asn_TYPE_descriptor_t asn_DEF_BIT_STRING; +extern asn_TYPE_operation_t asn_OP_BIT_STRING; +extern asn_OCTET_STRING_specifics_t asn_SPC_BIT_STRING_specs; + +#define BIT_STRING_free OCTET_STRING_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +asn_struct_print_f BIT_STRING_print; /* Human-readable output */ +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +asn_struct_compare_f BIT_STRING_compare; +asn_struct_copy_f BIT_STRING_copy; + +asn_constr_check_f BIT_STRING_constraint; + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define BIT_STRING_decode_ber OCTET_STRING_decode_ber +#define BIT_STRING_encode_der OCTET_STRING_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#define BIT_STRING_decode_xer OCTET_STRING_decode_xer_binary +xer_type_encoder_f BIT_STRING_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +#define BIT_STRING_decode_jer OCTET_STRING_decode_jer_binary +jer_type_encoder_f BIT_STRING_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +oer_type_decoder_f BIT_STRING_decode_oer; +oer_type_encoder_f BIT_STRING_encode_oer; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +per_type_decoder_f BIT_STRING_decode_uper; +per_type_encoder_f BIT_STRING_encode_uper; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define BIT_STRING_decode_aper OCTET_STRING_decode_aper +#define BIT_STRING_encode_aper OCTET_STRING_encode_aper +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +asn_random_fill_f BIT_STRING_random_fill; +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +const BIT_STRING_t *BIT_STRING__compactify(const BIT_STRING_t *st, BIT_STRING_t *tmp); + +#ifdef __cplusplus +} +#endif + +#endif /* _BIT_STRING_H_ */ diff --git a/asn.1/skeleton/BIT_STRING_jer.c b/asn.1/skeleton/BIT_STRING_jer.c new file mode 100644 index 00000000..e530df97 --- /dev/null +++ b/asn.1/skeleton/BIT_STRING_jer.c @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_enc_rval_t +BIT_STRING_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_enc_rval_t er = {0, 0, 0}; + const char * const h2c = "0123456789ABCDEF"; + char scratch[16 * 3 + 4]; + char *p = scratch; + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + uint8_t *buf; + uint8_t *end; + + (void)ilevel; + (void)flags; + + if(!st || !st->buf) + ASN__ENCODE_FAILED; + + er.encoded = 0; + + buf = st->buf; + end = buf + st->size - 1; /* Last byte is special */ + + /* + * Hex dump + */ + *p++ = '"'; + for(int i = 0; buf < end; buf++, i++) { + if(!(i % 16) && (i || st->size > 16)) { + ASN__CALLBACK(scratch, p-scratch); + p = scratch; + } + *p++ = h2c[*buf >> 4]; + *p++ = h2c[*buf & 0x0F]; + } + + ASN__CALLBACK(scratch, p - scratch); + p = scratch; + + if(buf == end) { + int ubits = st->bits_unused; + uint8_t v = *buf & (0xff << ubits); + *p++ = h2c[v >> 4]; + *p++ = h2c[v & 0x0F]; + ASN__CALLBACK(scratch, p - scratch); + p = scratch; + } + *p++ = '"'; + ASN__CALLBACK(scratch, p - scratch); + + ASN__ENCODED_OK(er); +cb_failed: + ASN__ENCODE_FAILED; +} diff --git a/asn.1/skeleton/BIT_STRING_oer.c b/asn.1/skeleton/BIT_STRING_oer.c new file mode 100644 index 00000000..95c95589 --- /dev/null +++ b/asn.1/skeleton/BIT_STRING_oer.c @@ -0,0 +1,168 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_dec_rval_t +BIT_STRING_decode_oer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, void **sptr, + const void *ptr, size_t size) { + BIT_STRING_t *st = (BIT_STRING_t *)*sptr; + const asn_oer_constraints_t *cts = + constraints ? constraints : td->encoding_constraints.oer_constraints; + ssize_t ct_size = cts ? cts->size : -1; + asn_dec_rval_t rval = {RC_OK, 0}; + size_t expected_length = 0; + + (void)opt_codec_ctx; + + if(!st) { + st = (BIT_STRING_t *)(*sptr = CALLOC(1, sizeof(*st))); + if(!st) ASN__DECODE_FAILED; + } + + if(ct_size >= 0) { + expected_length = (ct_size + 7) >> 3; + st->bits_unused = (8 - (ct_size & 7)) & 7; + } else { + /* + * X.696 (08/2015) #13.3.1 + * Encode length determinant as _number of octets_, but only + * if upper bound is not equal to lower bound. + */ + ssize_t len_len = oer_fetch_length(ptr, size, &expected_length); + if(len_len > 0) { + ptr = (const char *)ptr + len_len; + size -= len_len; + } else if(len_len == 0) { + ASN__DECODE_STARVED; + } else if(len_len < 0) { + ASN__DECODE_FAILED; + } + + if(expected_length < 1) { + ASN__DECODE_FAILED; + } else if(expected_length > size) { + ASN__DECODE_STARVED; + } + + st->bits_unused = ((const uint8_t *)ptr)[0]; + if(st->bits_unused & ~7) { + ASN_DEBUG("%s: unused bits outside of 0..7 range", td->name); + ASN__DECODE_FAILED; + } + ptr = (const char *)ptr + 1; + size--; + expected_length--; + rval.consumed = len_len + 1; + } + + if(size < expected_length) { + ASN__DECODE_STARVED; + } else { + uint8_t *buf = MALLOC(expected_length + 1); + if(buf == NULL) { + ASN__DECODE_FAILED; + } else { + memcpy(buf, ptr, expected_length); + buf[expected_length] = '\0'; + } + FREEMEM(st->buf); + st->buf = buf; + st->size = expected_length; + if(expected_length > 0) { + buf[expected_length - 1] &= (0xff << st->bits_unused); + } + + rval.consumed += expected_length; + return rval; + } +} + +/* + * Encode as Canonical OER. + */ +asn_enc_rval_t +BIT_STRING_encode_oer(const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, + const void *sptr, asn_app_consume_bytes_f *cb, + void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + asn_enc_rval_t erval = {0, 0, 0}; + const asn_oer_constraints_t *cts = + constraints ? constraints : td->encoding_constraints.oer_constraints; + ssize_t ct_size = cts ? cts->size : -1; + size_t trailing_zeros = 0; + int fix_last_byte = 0; + + if(!st) ASN__ENCODE_FAILED; + + if(st->bits_unused & ~7) { + ASN_DEBUG("BIT STRING unused bits %d out of 0..7 range", + st->bits_unused); + ASN__ENCODE_FAILED; + } + if(st->bits_unused && !(st->size && st->buf)) { + ASN_DEBUG("BIT STRING %s size 0 can't support unused bits %d", td->name, + st->bits_unused); + ASN__ENCODE_FAILED; + } + + if(ct_size >= 0) { + size_t ct_bytes = (ct_size + 7) >> 3; + if(st->size > ct_bytes) { + ASN_DEBUG("More bits in BIT STRING %s (%" ASN_PRI_SSIZE ") than constrained %" ASN_PRI_SSIZE "", + td->name, 8 * st->size - st->bits_unused, ct_size); + ASN__ENCODE_FAILED; + } + trailing_zeros = ct_bytes - st->size; /* Allow larger constraint */ + } else { + uint8_t ub = st->bits_unused & 7; + ssize_t len_len = oer_serialize_length(1 + st->size, cb, app_key); + if(len_len < 0) ASN__ENCODE_FAILED; + if(cb(&ub, 1, app_key) < 0) { + ASN__ENCODE_FAILED; + } + erval.encoded += len_len + 1; + } + + if(st->bits_unused) { + if(st->buf[st->size - 1] & (0xff << st->bits_unused)) { + fix_last_byte = 1; + } + } + + if(cb(st->buf, st->size - fix_last_byte, app_key) < 0) { + ASN__ENCODE_FAILED; + } + + if(fix_last_byte) { + uint8_t b = st->buf[st->size - 1] & (0xff << st->bits_unused); + if(cb(&b, 1, app_key) < 0) { + ASN__ENCODE_FAILED; + } + } + + erval.encoded += st->size; + + if(trailing_zeros) { + static uint8_t zeros[16]; + while(trailing_zeros > 0) { + int ret; + if(trailing_zeros < sizeof(zeros)) { + ret = cb(zeros, trailing_zeros, app_key); + erval.encoded += trailing_zeros; + } else { + ret = cb(zeros, sizeof(zeros), app_key); + erval.encoded += sizeof(zeros); + } + if(ret < 0) ASN__ENCODE_FAILED; + } + } + + return erval; +} diff --git a/asn.1/skeleton/BIT_STRING_print.c b/asn.1/skeleton/BIT_STRING_print.c new file mode 100644 index 00000000..bab1ea52 --- /dev/null +++ b/asn.1/skeleton/BIT_STRING_print.c @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * BIT STRING specific contents printer. + */ +int +BIT_STRING_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + asn_app_consume_bytes_f *cb, void *app_key) { + const char * const h2c = "0123456789ABCDEF"; + char scratch[64]; + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + uint8_t *buf; + uint8_t *end; + char *p = scratch; + + (void)td; /* Unused argument */ + + if(!st || !st->buf) + return (cb("", 8, app_key) < 0) ? -1 : 0; + + ilevel++; + buf = st->buf; + end = buf + st->size; + + /* + * Hexadecimal dump. + */ + for(; buf < end; buf++) { + if((buf - st->buf) % 16 == 0 && (st->size > 16) + && buf != st->buf) { + _i_INDENT(1); + /* Dump the string */ + if(cb(scratch, p - scratch, app_key) < 0) return -1; + p = scratch; + } + *p++ = h2c[*buf >> 4]; + *p++ = h2c[*buf & 0x0F]; + *p++ = 0x20; + } + + if(p > scratch) { + p--; /* Eat the tailing space */ + + if((st->size > 16)) { + _i_INDENT(1); + } + + /* Dump the incomplete 16-bytes row */ + if(cb(scratch, p - scratch, app_key) < 0) + return -1; + } + + if(st->bits_unused) { + int ret = snprintf(scratch, sizeof(scratch), " (%d bit%s unused)", + st->bits_unused, st->bits_unused == 1 ? "" : "s"); + assert(ret > 0 && ret < (ssize_t)sizeof(scratch)); + if(ret > 0 && ret < (ssize_t)sizeof(scratch) + && cb(scratch, ret, app_key) < 0) + return -1; + } + + return 0; +} diff --git a/asn.1/skeleton/BIT_STRING_rfill.c b/asn.1/skeleton/BIT_STRING_rfill.c new file mode 100644 index 00000000..a6e6a954 --- /dev/null +++ b/asn.1/skeleton/BIT_STRING_rfill.c @@ -0,0 +1,124 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_random_fill_result_t +BIT_STRING_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, + const asn_encoding_constraints_t *constraints, + size_t max_length) { + const asn_OCTET_STRING_specifics_t *specs = + td->specifics ? (const asn_OCTET_STRING_specifics_t *)td->specifics + : &asn_SPC_BIT_STRING_specs; + asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; + asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; + asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; + static unsigned lengths[] = {0, 1, 2, 3, 4, 8, + 126, 127, 128, 16383, 16384, 16385, + 65534, 65535, 65536, 65537}; + uint8_t *buf; + uint8_t *bend; + uint8_t *b; + size_t rnd_bits, rnd_len; + BIT_STRING_t *st; + + if(max_length == 0) return result_skipped; + + switch(specs->subvariant) { + case ASN_OSUBV_ANY: + return result_failed; + case ASN_OSUBV_BIT: + break; + default: + break; + } + + /* Figure out how far we should go */ + rnd_bits = lengths[asn_random_between( + 0, sizeof(lengths) / sizeof(lengths[0]) - 1)]; +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + if(!constraints || !constraints->per_constraints) + constraints = &td->encoding_constraints; + if(constraints->per_constraints) { + const asn_per_constraint_t *pc = &constraints->per_constraints->size; + if(pc->flags & APC_CONSTRAINED) { + long suggested_upper_bound = pc->upper_bound < (ssize_t)max_length + ? pc->upper_bound + : (ssize_t)max_length; + if(max_length < (size_t)pc->lower_bound) { + return result_skipped; + } + if(pc->flags & APC_EXTENSIBLE) { + switch(asn_random_between(0, 5)) { + case 0: + if(pc->lower_bound > 0) { + rnd_bits = pc->lower_bound - 1; + break; + } + /* Fall through */ + case 1: + rnd_bits = pc->upper_bound + 1; + break; + case 2: + /* Keep rnd_bits from the table */ + if(rnd_bits < max_length) { + break; + } + /* Fall through */ + default: + rnd_bits = asn_random_between(pc->lower_bound, + suggested_upper_bound); + } + } else { + rnd_bits = + asn_random_between(pc->lower_bound, suggested_upper_bound); + } + } else { + rnd_bits = asn_random_between(0, max_length - 1); + } + } else { +#else + if(!constraints) constraints = &td->encoding_constraints; + { +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + if(rnd_bits >= max_length) { + rnd_bits = asn_random_between(0, max_length - 1); + } + } + + rnd_len = (rnd_bits + 7) / 8; + buf = CALLOC(1, rnd_len + 1); + if(!buf) return result_failed; + + bend = &buf[rnd_len]; + + for(b = buf; b < bend; b++) { + *(uint8_t *)b = asn_random_between(0, 255); + } + *b = 0; /* Zero-terminate just in case. */ + + if(*sptr) { + st = *sptr; + FREEMEM(st->buf); + } else { + st = (BIT_STRING_t *)(*sptr = CALLOC(1, specs->struct_size)); + if(!st) { + FREEMEM(buf); + return result_failed; + } + } + + st->buf = buf; + st->size = rnd_len; + st->bits_unused = (8 - (rnd_bits & 0x7)) & 0x7; + if(st->bits_unused) { + assert(st->size > 0); + st->buf[st->size-1] &= 0xff << st->bits_unused; + } + + result_ok.length = st->size; + return result_ok; +} diff --git a/asn.1/skeleton/BIT_STRING_uper.c b/asn.1/skeleton/BIT_STRING_uper.c new file mode 100644 index 00000000..425379b7 --- /dev/null +++ b/asn.1/skeleton/BIT_STRING_uper.c @@ -0,0 +1,244 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +#undef RETURN +#define RETURN(_code) \ + do { \ + asn_dec_rval_t tmprval; \ + tmprval.code = _code; \ + tmprval.consumed = consumed_myself; \ + return tmprval; \ + } while(0) + +static asn_per_constraint_t asn_DEF_BIT_STRING_constraint_size = { + APC_SEMI_CONSTRAINED, -1, -1, 0, 0}; + +asn_dec_rval_t +BIT_STRING_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, + asn_per_data_t *pd) { + const asn_OCTET_STRING_specifics_t *specs = td->specifics + ? (const asn_OCTET_STRING_specifics_t *)td->specifics + : &asn_SPC_BIT_STRING_specs; + const asn_per_constraints_t *pc = + constraints ? constraints : td->encoding_constraints.per_constraints; + const asn_per_constraint_t *csiz; + asn_dec_rval_t rval = { RC_OK, 0 }; + BIT_STRING_t *st = (BIT_STRING_t *)*sptr; + ssize_t consumed_myself = 0; + int repeat; + + (void)opt_codec_ctx; + + if(pc) { + csiz = &pc->size; + } else { + csiz = &asn_DEF_BIT_STRING_constraint_size; + } + + if(specs->subvariant != ASN_OSUBV_BIT) { + ASN_DEBUG("Subvariant %d is not BIT OSUBV_BIT", specs->subvariant); + RETURN(RC_FAIL); + } + + /* + * Allocate the string. + */ + if(!st) { + st = (BIT_STRING_t *)(*sptr = CALLOC(1, specs->struct_size)); + if(!st) RETURN(RC_FAIL); + } + + ASN_DEBUG("PER Decoding %s size %"ASN_PRIdMAX" .. %"ASN_PRIdMAX" bits %d", + csiz->flags & APC_EXTENSIBLE ? "extensible" : "non-extensible", + csiz->lower_bound, csiz->upper_bound, csiz->effective_bits); + + if(csiz->flags & APC_EXTENSIBLE) { + int inext = per_get_few_bits(pd, 1); + if(inext < 0) RETURN(RC_WMORE); + if(inext) { + csiz = &asn_DEF_BIT_STRING_constraint_size; + } + } + + if(csiz->effective_bits >= 0) { + FREEMEM(st->buf); + st->size = (csiz->upper_bound + 7) >> 3; + st->buf = (uint8_t *)MALLOC(st->size + 1); + if(!st->buf) { st->size = 0; RETURN(RC_FAIL); } + } + + /* X.691, #16.5: zero-length encoding */ + /* X.691, #16.6: short fixed length encoding (up to 2 octets) */ + /* X.691, #16.7: long fixed length encoding (up to 64K octets) */ + if(csiz->effective_bits == 0) { + int ret; + ASN_DEBUG("Encoding BIT STRING size %"ASN_PRIdMAX"", csiz->upper_bound); + ret = per_get_many_bits(pd, st->buf, 0, csiz->upper_bound); + if(ret < 0) RETURN(RC_WMORE); + consumed_myself += csiz->upper_bound; + st->buf[st->size] = 0; + st->bits_unused = (8 - (csiz->upper_bound & 0x7)) & 0x7; + RETURN(RC_OK); + } + + st->size = 0; + do { + ssize_t raw_len; + ssize_t len_bytes; + ssize_t len_bits; + void *p; + int ret; + + /* Get the PER length */ + raw_len = uper_get_length(pd, csiz->effective_bits, csiz->lower_bound, + &repeat); + if(raw_len < 0) RETURN(RC_WMORE); + if(raw_len == 0 && st->buf) break; + + ASN_DEBUG("Got PER length eb %ld, len %ld, %s (%s)", + (long)csiz->effective_bits, (long)raw_len, + repeat ? "repeat" : "once", td->name); + len_bits = raw_len; + len_bytes = (len_bits + 7) >> 3; + if(len_bits & 0x7) st->bits_unused = 8 - (len_bits & 0x7); + /* len_bits be multiple of 16K if repeat is set */ + p = REALLOC(st->buf, st->size + len_bytes + 1); + if(!p) RETURN(RC_FAIL); + st->buf = (uint8_t *)p; + + ret = per_get_many_bits(pd, &st->buf[st->size], 0, len_bits); + if(ret < 0) RETURN(RC_WMORE); + st->size += len_bytes; + } while(repeat); + st->buf[st->size] = 0; /* nul-terminate */ + + return rval; +} + +asn_enc_rval_t +BIT_STRING_encode_uper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + const asn_OCTET_STRING_specifics_t *specs = + td->specifics ? (const asn_OCTET_STRING_specifics_t *)td->specifics + : &asn_SPC_BIT_STRING_specs; + const asn_per_constraints_t *pc = + constraints ? constraints : td->encoding_constraints.per_constraints; + const asn_per_constraint_t *csiz; + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + BIT_STRING_t compact_bstr; /* Do not modify this directly! */ + asn_enc_rval_t er = { 0, 0, 0 }; + int inext = 0; /* Lies not within extension root */ + size_t size_in_bits; + const uint8_t *buf; + int ret; + int ct_extensible; + + if(!st || (!st->buf && st->size)) + ASN__ENCODE_FAILED; + + if(specs->subvariant == ASN_OSUBV_BIT) { + if((st->size == 0 && st->bits_unused) || (st->bits_unused & ~7)) + ASN__ENCODE_FAILED; + } else { + ASN__ENCODE_FAILED; + } + + if(pc) { + csiz = &pc->size; + } else { + csiz = &asn_DEF_BIT_STRING_constraint_size; + } + ct_extensible = csiz->flags & APC_EXTENSIBLE; + + /* Figure out the size without the trailing bits */ + st = BIT_STRING__compactify(st, &compact_bstr); + size_in_bits = 8 * st->size - st->bits_unused; + + ASN_DEBUG( + "Encoding %s into %" ASN_PRI_SIZE " bits" + " (%"ASN_PRIdMAX"..%"ASN_PRIdMAX", effective %d)%s", + td->name, size_in_bits, csiz->lower_bound, csiz->upper_bound, + csiz->effective_bits, ct_extensible ? " EXT" : ""); + + /* Figure out whether size lies within PER visible constraint */ + + if(csiz->effective_bits >= 0) { + if((ssize_t)size_in_bits > csiz->upper_bound) { + if(ct_extensible) { + csiz = &asn_DEF_BIT_STRING_constraint_size; + inext = 1; + } else { + ASN__ENCODE_FAILED; + } + } + } else { + inext = 0; + } + + if(ct_extensible) { + /* Declare whether length is [not] within extension root */ + if(per_put_few_bits(po, inext, 1)) + ASN__ENCODE_FAILED; + } + + if(csiz->effective_bits >= 0 && !inext) { + int add_trailer = (ssize_t)size_in_bits < csiz->lower_bound; + ASN_DEBUG( + "Encoding %" ASN_PRI_SIZE " bytes (%"ASN_PRIdMAX"), length (in %d bits) trailer %d; actual " + "value %" ASN_PRI_SSIZE "", + st->size, size_in_bits - csiz->lower_bound, csiz->effective_bits, + add_trailer, + add_trailer ? 0 : (ssize_t)size_in_bits - (ssize_t)csiz->lower_bound); + ret = per_put_few_bits( + po, add_trailer ? 0 : (ssize_t)size_in_bits - csiz->lower_bound, + csiz->effective_bits); + if(ret) ASN__ENCODE_FAILED; + ret = per_put_many_bits(po, st->buf, size_in_bits); + if(ret) ASN__ENCODE_FAILED; + if(add_trailer) { + static const uint8_t zeros[16]; + size_t trailing_zero_bits = csiz->lower_bound - size_in_bits; + while(trailing_zero_bits > 0) { + if(trailing_zero_bits > 8 * sizeof(zeros)) { + ret = per_put_many_bits(po, zeros, 8 * sizeof(zeros)); + trailing_zero_bits -= 8 * sizeof(zeros); + } else { + ret = per_put_many_bits(po, zeros, trailing_zero_bits); + trailing_zero_bits = 0; + } + if(ret) ASN__ENCODE_FAILED; + } + } + ASN__ENCODED_OK(er); + } + + ASN_DEBUG("Encoding %" ASN_PRI_SIZE " bytes", st->size); + + buf = st->buf; + do { + int need_eom = 0; + ssize_t maySave = uper_put_length(po, size_in_bits, &need_eom); + if(maySave < 0) ASN__ENCODE_FAILED; + + ASN_DEBUG("Encoding %" ASN_PRI_SSIZE " of %" ASN_PRI_SIZE "", maySave, size_in_bits); + + ret = per_put_many_bits(po, buf, maySave); + if(ret) ASN__ENCODE_FAILED; + + buf += maySave >> 3; + size_in_bits -= maySave; + assert(!(maySave & 0x07) || !size_in_bits); + if(need_eom && uper_put_length(po, 0, 0)) + ASN__ENCODE_FAILED; /* End of Message length */ + } while(size_in_bits); + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/BIT_STRING_xer.c b/asn.1/skeleton/BIT_STRING_xer.c new file mode 100644 index 00000000..67d5cb8d --- /dev/null +++ b/asn.1/skeleton/BIT_STRING_xer.c @@ -0,0 +1,70 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +static const char *_bit_pattern[16] = { + "0000", "0001", "0010", "0011", "0100", "0101", "0110", "0111", + "1000", "1001", "1010", "1011", "1100", "1101", "1110", "1111" +}; + +asn_enc_rval_t +BIT_STRING_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_enc_rval_t er = {0, 0, 0}; + char scratch[128]; + char *p = scratch; + char *scend = scratch + (sizeof(scratch) - 10); + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + int xcan = (flags & XER_F_CANONICAL); + uint8_t *buf; + uint8_t *end; + + if(!st || !st->buf) + ASN__ENCODE_FAILED; + + er.encoded = 0; + + buf = st->buf; + end = buf + st->size - 1; /* Last byte is special */ + + /* + * Binary dump + */ + for(; buf < end; buf++) { + int v = *buf; + int nline = xcan?0:(((buf - st->buf) % 8) == 0); + if(p >= scend || nline) { + ASN__CALLBACK(scratch, p - scratch); + p = scratch; + if(nline) ASN__TEXT_INDENT(1, ilevel); + } + memcpy(p + 0, _bit_pattern[v >> 4], 4); + memcpy(p + 4, _bit_pattern[v & 0x0f], 4); + p += 8; + } + + if(!xcan && ((buf - st->buf) % 8) == 0) + ASN__TEXT_INDENT(1, ilevel); + ASN__CALLBACK(scratch, p - scratch); + p = scratch; + + if(buf == end) { + int v = *buf; + int ubits = st->bits_unused; + int i; + for(i = 7; i >= ubits; i--) + *p++ = (v & (1 << i)) ? 0x31 : 0x30; + ASN__CALLBACK(scratch, p - scratch); + } + + if(!xcan) ASN__TEXT_INDENT(1, ilevel - 1); + + ASN__ENCODED_OK(er); +cb_failed: + ASN__ENCODE_FAILED; +} diff --git a/asn.1/skeleton/BMPString.c b/asn.1/skeleton/BMPString.c new file mode 100644 index 00000000..177d37df --- /dev/null +++ b/asn.1/skeleton/BMPString.c @@ -0,0 +1,170 @@ +/*- + * Copyright (c) 2003, 2004 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * BMPString basic type description. + */ +static const ber_tlv_tag_t asn_DEF_BMPString_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (30 << 2)), /* [UNIVERSAL 30] IMPLICIT ...*/ + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ +}; +asn_OCTET_STRING_specifics_t asn_SPC_BMPString_specs = { + sizeof(BMPString_t), + offsetof(BMPString_t, _asn_ctx), + ASN_OSUBV_U16 /* 16-bits character */ +}; +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_DEF_BMPString_per_constraints = { + { APC_CONSTRAINED, 16, 16, 0, 65535 }, + { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 }, + 0, 0 +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_operation_t asn_OP_BMPString = { + OCTET_STRING_free, /* Implemented in terms of OCTET STRING */ +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + BMPString_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + OCTET_STRING_compare, + OCTET_STRING_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OCTET_STRING_decode_ber, + OCTET_STRING_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + BMPString_decode_xer, /* Convert from UTF-8 */ + BMPString_encode_xer, /* Convert to UTF-8 */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + BMPString_decode_jer, /* Convert to UTF-8 */ + BMPString_encode_jer, /* Convert to UTF-8 */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + OCTET_STRING_decode_oer, + OCTET_STRING_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OCTET_STRING_decode_uper, + OCTET_STRING_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, + OCTET_STRING_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + OCTET_STRING_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_BMPString = { + "BMPString", + "BMPString", + &asn_OP_BMPString, + asn_DEF_BMPString_tags, + sizeof(asn_DEF_BMPString_tags) + / sizeof(asn_DEF_BMPString_tags[0]) - 1, + asn_DEF_BMPString_tags, + sizeof(asn_DEF_BMPString_tags) + / sizeof(asn_DEF_BMPString_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_DEF_BMPString_per_constraints, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + BMPString_constraint + }, + 0, 0, /* No members */ + &asn_SPC_BMPString_specs +}; + +int +BMPString_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BMPString_t *st = (const BMPString_t *)sptr; + + if(st && st->buf) { + if(st->size & 1) { + ASN__CTFAIL(app_key, td, sptr, + "%s: invalid size %" ASN_PRI_SIZE " not divisible by 2 (%s:%d)", + td->name, st->size, __FILE__, __LINE__); + return -1; + } + } else { + ASN__CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)", td->name, + __FILE__, __LINE__); + return -1; + } + + return 0; +} + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) || !defined(ASN_DISABLE_XER_SUPPORT) +/* + * BMPString specific contents printer. + */ +ssize_t +BMPString__dump(const BMPString_t *st, + asn_app_consume_bytes_f *cb, void *app_key) { + char scratch[128]; /* Scratchpad buffer */ + char *p = scratch; + ssize_t wrote = 0; + uint8_t *ch; + uint8_t *end; + + ch = st->buf; + end = (st->buf + st->size); + for(end--; ch < end; ch += 2) { + uint16_t wc = (ch[0] << 8) | ch[1]; /* 2 bytes */ + if(sizeof(scratch) - (p - scratch) < 3) { + wrote += p - scratch; + if(cb(scratch, p - scratch, app_key) < 0) + return -1; + p = scratch; + } + if(wc < 0x80) { + *p++ = (char)wc; + } else if(wc < 0x800) { + *p++ = 0xc0 | ((wc >> 6)); + *p++ = 0x80 | ((wc & 0x3f)); + } else { + *p++ = 0xe0 | ((wc >> 12)); + *p++ = 0x80 | ((wc >> 6) & 0x3f); + *p++ = 0x80 | ((wc & 0x3f)); + } + } + + wrote += p - scratch; + if(cb(scratch, p - scratch, app_key) < 0) + return -1; + + return wrote; +} +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) || !defined(ASN_DISABLE_XER_SUPPORT) */ diff --git a/asn.1/skeleton/BMPString.h b/asn.1/skeleton/BMPString.h new file mode 100644 index 00000000..3b32cf3c --- /dev/null +++ b/asn.1/skeleton/BMPString.h @@ -0,0 +1,67 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _BMPString_H_ +#define _BMPString_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef OCTET_STRING_t BMPString_t; /* Implemented via OCTET STRING */ + +extern asn_TYPE_descriptor_t asn_DEF_BMPString; +extern asn_TYPE_operation_t asn_OP_BMPString; +extern asn_OCTET_STRING_specifics_t asn_SPC_BMPString_specs; + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) || !defined(ASN_DISABLE_XER_SUPPORT) +ssize_t BMPString__dump(const BMPString_t *st, asn_app_consume_bytes_f *cb, void *app_key); +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) || !defined(ASN_DISABLE_XER_SUPPORT) */ + +#define BMPString_free OCTET_STRING_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +asn_struct_print_f BMPString_print; /* Human-readable output */ +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define BMPString_compare OCTET_STRING_compare +#define BMPString_copy OCTET_STRING_copy + +asn_constr_check_f BMPString_constraint; + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define BMPString_decode_ber OCTET_STRING_decode_ber +#define BMPString_encode_der OCTET_STRING_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +xer_type_decoder_f BMPString_decode_xer; +xer_type_encoder_f BMPString_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +jer_type_decoder_f BMPString_decode_jer; +jer_type_encoder_f BMPString_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#define BMPString_decode_uper OCTET_STRING_decode_uper +#define BMPString_encode_uper OCTET_STRING_encode_uper +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define BMPString_decode_aper OCTET_STRING_decode_aper +#define BMPString_encode_aper OCTET_STRING_encode_aper +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +#define BMPString_random_fill OCTET_STRING_random_fill +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* _BMPString_H_ */ diff --git a/asn.1/skeleton/BMPString_jer.c b/asn.1/skeleton/BMPString_jer.c new file mode 100644 index 00000000..6231cc86 --- /dev/null +++ b/asn.1/skeleton/BMPString_jer.c @@ -0,0 +1,99 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_dec_rval_t +BMPString_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const void *buf_ptr, size_t size) { + asn_dec_rval_t rc; + + rc = OCTET_STRING_decode_jer_utf8(opt_codec_ctx, td, sptr, buf_ptr, size); + if(rc.code == RC_OK) { + /* + * Now we have a whole string in UTF-8 format. + * Convert it into UCS-2. + */ + uint32_t *wcs; + size_t wcs_len; + UTF8String_t *st; + + assert(*sptr); + st = (UTF8String_t *)*sptr; + assert(st->buf); + wcs_len = UTF8String_to_wcs(st, 0, 0); + + wcs = (uint32_t *)MALLOC(4 * (wcs_len + 1)); + if(wcs == 0 || UTF8String_to_wcs(st, wcs, wcs_len) != wcs_len) { + rc.code = RC_FAIL; + rc.consumed = 0; + return rc; + } else { + wcs[wcs_len] = 0; /* nul-terminate */ + } + + if(1) { + /* Swap byte order and trim encoding to 2 bytes */ + uint32_t *wc = wcs; + uint32_t *wc_end = wcs + wcs_len; + uint16_t *dstwc = (uint16_t *)wcs; + for(; wc < wc_end; wc++, dstwc++) { + uint32_t wch = *wc; + if(wch > 0xffff) { + FREEMEM(wcs); + rc.code = RC_FAIL; + rc.consumed = 0; + return rc; + } + *((uint8_t *)dstwc + 0) = wch >> 8; + *((uint8_t *)dstwc + 1) = wch; + } + dstwc = (uint16_t *)REALLOC(wcs, 2 * (wcs_len + 1)); + if(!dstwc) { + FREEMEM(wcs); + rc.code = RC_FAIL; + rc.consumed = 0; + return rc; + } else { + dstwc[wcs_len] = 0; /* nul-terminate */ + wcs = (uint32_t *)(void *)dstwc; /* Alignment OK */ + } + } + + FREEMEM(st->buf); + st->buf = (uint8_t *)wcs; + st->size = 2 * wcs_len; + } + return rc; +} + +asn_enc_rval_t +BMPString_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const BMPString_t *st = (const BMPString_t *)sptr; + asn_enc_rval_t er = {0,0,0}; + ssize_t ro_encoded = 0; + + (void)ilevel; + (void)flags; + + if(!st || !st->buf) + ASN__ENCODE_FAILED; + + ASN__CALLBACK("\"", 1); + ro_encoded = BMPString__dump(st, cb, app_key); + if(ro_encoded < 0) goto cb_failed; + er.encoded += ro_encoded; + ASN__CALLBACK("\"", 1); + + ASN__ENCODED_OK(er); + +cb_failed: + ASN__ENCODE_FAILED; +} diff --git a/asn.1/skeleton/BMPString_print.c b/asn.1/skeleton/BMPString_print.c new file mode 100644 index 00000000..8763e527 --- /dev/null +++ b/asn.1/skeleton/BMPString_print.c @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +int +BMPString_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + asn_app_consume_bytes_f *cb, void *app_key) { + const BMPString_t *st = (const BMPString_t *)sptr; + + (void)td; /* Unused argument */ + (void)ilevel; /* Unused argument */ + + if(!st || !st->buf) + return (cb("", 8, app_key) < 0) ? -1 : 0; + + if(BMPString__dump(st, cb, app_key) < 0) + return -1; + + return 0; +} diff --git a/asn.1/skeleton/BMPString_xer.c b/asn.1/skeleton/BMPString_xer.c new file mode 100644 index 00000000..d70b7371 --- /dev/null +++ b/asn.1/skeleton/BMPString_xer.c @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_dec_rval_t +BMPString_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, size_t size) { + asn_dec_rval_t rc; + + rc = OCTET_STRING_decode_xer_utf8(opt_codec_ctx, td, sptr, opt_mname, + buf_ptr, size); + if(rc.code == RC_OK) { + /* + * Now we have a whole string in UTF-8 format. + * Convert it into UCS-2. + */ + uint32_t *wcs; + size_t wcs_len; + UTF8String_t *st; + + assert(*sptr); + st = (UTF8String_t *)*sptr; + assert(st->buf); + wcs_len = UTF8String_to_wcs(st, 0, 0); + + wcs = (uint32_t *)MALLOC(4 * (wcs_len + 1)); + if(wcs == 0 || UTF8String_to_wcs(st, wcs, wcs_len) != wcs_len) { + rc.code = RC_FAIL; + rc.consumed = 0; + return rc; + } else { + wcs[wcs_len] = 0; /* nul-terminate */ + } + + if(1) { + /* Swap byte order and trim encoding to 2 bytes */ + uint32_t *wc = wcs; + uint32_t *wc_end = wcs + wcs_len; + uint16_t *dstwc = (uint16_t *)wcs; + for(; wc < wc_end; wc++, dstwc++) { + uint32_t wch = *wc; + if(wch > 0xffff) { + FREEMEM(wcs); + rc.code = RC_FAIL; + rc.consumed = 0; + return rc; + } + *((uint8_t *)dstwc + 0) = wch >> 8; + *((uint8_t *)dstwc + 1) = wch; + } + dstwc = (uint16_t *)REALLOC(wcs, 2 * (wcs_len + 1)); + if(!dstwc) { + FREEMEM(wcs); + rc.code = RC_FAIL; + rc.consumed = 0; + return rc; + } else { + dstwc[wcs_len] = 0; /* nul-terminate */ + wcs = (uint32_t *)(void *)dstwc; /* Alignment OK */ + } + } + + FREEMEM(st->buf); + st->buf = (uint8_t *)wcs; + st->size = 2 * wcs_len; + } + return rc; +} + +asn_enc_rval_t +BMPString_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const BMPString_t *st = (const BMPString_t *)sptr; + asn_enc_rval_t er = {0,0,0}; + + (void)ilevel; + (void)flags; + + if(!st || !st->buf) + ASN__ENCODE_FAILED; + + er.encoded = BMPString__dump(st, cb, app_key); + if(er.encoded < 0) ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/BOOLEAN.c b/asn.1/skeleton/BOOLEAN.c new file mode 100644 index 00000000..7075f095 --- /dev/null +++ b/asn.1/skeleton/BOOLEAN.c @@ -0,0 +1,157 @@ +/*- + * Copyright (c) 2003, 2005 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * BOOLEAN basic type description. + */ +static const ber_tlv_tag_t asn_DEF_BOOLEAN_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)) +}; +asn_TYPE_operation_t asn_OP_BOOLEAN = { + BOOLEAN_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + BOOLEAN_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + BOOLEAN_compare, + BOOLEAN_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + BOOLEAN_decode_ber, + BOOLEAN_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + BOOLEAN_decode_xer, + BOOLEAN_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + BOOLEAN_decode_jer, + BOOLEAN_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + BOOLEAN_decode_oer, + BOOLEAN_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + BOOLEAN_decode_uper, /* Unaligned PER decoder */ + BOOLEAN_encode_uper, /* Unaligned PER encoder */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + BOOLEAN_decode_aper, /* Aligned PER decoder */ + BOOLEAN_encode_aper, /* Aligned PER encoder */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + BOOLEAN_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_BOOLEAN = { + "BOOLEAN", + "BOOLEAN", + &asn_OP_BOOLEAN, + asn_DEF_BOOLEAN_tags, + sizeof(asn_DEF_BOOLEAN_tags) / sizeof(asn_DEF_BOOLEAN_tags[0]), + asn_DEF_BOOLEAN_tags, /* Same as above */ + sizeof(asn_DEF_BOOLEAN_tags) / sizeof(asn_DEF_BOOLEAN_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + asn_generic_no_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + +void +BOOLEAN_free(const asn_TYPE_descriptor_t *td, void *ptr, + enum asn_struct_free_method method) { + if(td && ptr) { + switch(method) { + case ASFM_FREE_EVERYTHING: + FREEMEM(ptr); + break; + case ASFM_FREE_UNDERLYING: + break; + case ASFM_FREE_UNDERLYING_AND_RESET: + memset(ptr, 0, sizeof(BOOLEAN_t)); + break; + } + } +} + +int +BOOLEAN_compare(const asn_TYPE_descriptor_t *td, const void *aptr, + const void *bptr) { + const BOOLEAN_t *a = aptr; + const BOOLEAN_t *b = bptr; + + (void)td; + + if(a && b) { + if(!*a == !*b) { /* TRUE can be encoded by any non-zero byte. */ + return 0; + } else if(!*a) { + return -1; + } else { + return 1; + } + } else if(!a) { + return -1; + } else { + return 1; + } +} + +int +BOOLEAN_copy(const asn_TYPE_descriptor_t *td, void **aptr, + const void *bptr) { + BOOLEAN_t *a = *aptr; + const BOOLEAN_t *b = bptr; + + (void)td; + + if(!b) { + if(a) { + FREEMEM(a); + *aptr = 0; + } + return 0; + } + + if(!a) { + a = *aptr = MALLOC(sizeof(BOOLEAN_t)); + if(!a) return -1; + } + + *a = *b; + + return 0; +} diff --git a/asn.1/skeleton/BOOLEAN.h b/asn.1/skeleton/BOOLEAN.h new file mode 100644 index 00000000..8b9b496b --- /dev/null +++ b/asn.1/skeleton/BOOLEAN.h @@ -0,0 +1,72 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _BOOLEAN_H_ +#define _BOOLEAN_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * The underlying integer may contain various values, but everything + * non-zero is capped to 0xff by the DER encoder. The BER decoder may + * yield non-zero values different from 1, beware. + */ +typedef unsigned BOOLEAN_t; + +extern asn_TYPE_descriptor_t asn_DEF_BOOLEAN; +extern asn_TYPE_operation_t asn_OP_BOOLEAN; + +asn_struct_free_f BOOLEAN_free; + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +asn_struct_print_f BOOLEAN_print; +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +asn_struct_compare_f BOOLEAN_compare; +asn_struct_copy_f BOOLEAN_copy; + +#define BOOLEAN_constraint asn_generic_no_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +ber_type_decoder_f BOOLEAN_decode_ber; +der_type_encoder_f BOOLEAN_encode_der; +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +xer_type_decoder_f BOOLEAN_decode_xer; +xer_type_encoder_f BOOLEAN_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +jer_type_decoder_f BOOLEAN_decode_jer; +jer_type_encoder_f BOOLEAN_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +oer_type_decoder_f BOOLEAN_decode_oer; +oer_type_encoder_f BOOLEAN_encode_oer; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +per_type_decoder_f BOOLEAN_decode_uper; +per_type_encoder_f BOOLEAN_encode_uper; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +per_type_decoder_f BOOLEAN_decode_aper; +per_type_encoder_f BOOLEAN_encode_aper; +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +asn_random_fill_f BOOLEAN_random_fill; +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* _BOOLEAN_H_ */ diff --git a/asn.1/skeleton/BOOLEAN_aper.c b/asn.1/skeleton/BOOLEAN_aper.c new file mode 100644 index 00000000..d697cf57 --- /dev/null +++ b/asn.1/skeleton/BOOLEAN_aper.c @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_dec_rval_t +BOOLEAN_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) { + asn_dec_rval_t rv; + BOOLEAN_t *st = (BOOLEAN_t *)*sptr; + + (void)opt_codec_ctx; + (void)constraints; + (void)td; + + if(!st) { + st = (BOOLEAN_t *)(*sptr = MALLOC(sizeof(*st))); + if(!st) ASN__DECODE_FAILED; + } + + /* + * Extract a single bit + */ + switch(per_get_few_bits(pd, 1)) { + case 1: + *st = 1; + break; + case 0: + *st = 0; + break; + case -1: + default: + ASN__DECODE_STARVED; + } + + ASN_DEBUG("%s decoded as %s", td->name, *st ? "TRUE" : "FALSE"); + + rv.code = RC_OK; + rv.consumed = 1; + return rv; +} + +asn_enc_rval_t +BOOLEAN_encode_aper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + const BOOLEAN_t *st = (const BOOLEAN_t *)sptr; + asn_enc_rval_t er = { 0, 0, 0 }; + + (void)constraints; + + if(!st) ASN__ENCODE_FAILED; + + if(per_put_few_bits(po, *st ? 1 : 0, 1)) + ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/BOOLEAN_ber.c b/asn.1/skeleton/BOOLEAN_ber.c new file mode 100644 index 00000000..176a4a4b --- /dev/null +++ b/asn.1/skeleton/BOOLEAN_ber.c @@ -0,0 +1,104 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Decode BOOLEAN type. + */ +asn_dec_rval_t +BOOLEAN_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **bool_value, + const void *buf_ptr, size_t size, int tag_mode) { + BOOLEAN_t *st = (BOOLEAN_t *)*bool_value; + asn_dec_rval_t rval; + ber_tlv_len_t length; + ber_tlv_len_t lidx; + + if(st == NULL) { + st = (BOOLEAN_t *)(*bool_value = CALLOC(1, sizeof(*st))); + if(st == NULL) { + rval.code = RC_FAIL; + rval.consumed = 0; + return rval; + } + } + + ASN_DEBUG("Decoding %s as BOOLEAN (tm=%d)", + td->name, tag_mode); + + /* + * Check tags. + */ + rval = ber_check_tags(opt_codec_ctx, td, 0, buf_ptr, size, + tag_mode, 0, &length, 0); + if(rval.code != RC_OK) + return rval; + + ASN_DEBUG("Boolean length is %d bytes", (int)length); + + buf_ptr = ((const char *)buf_ptr) + rval.consumed; + size -= rval.consumed; + if(length > (ber_tlv_len_t)size) { + rval.code = RC_WMORE; + rval.consumed = 0; + return rval; + } + + /* + * Compute boolean value. + */ + for(*st = 0, lidx = 0; + (lidx < length) && *st == 0; lidx++) { + /* + * Very simple approach: read bytes until the end or + * value is already TRUE. + * BOOLEAN is not supposed to contain meaningful data anyway. + */ + *st |= ((const uint8_t *)buf_ptr)[lidx]; + } + + rval.code = RC_OK; + rval.consumed += length; + + ASN_DEBUG("Took %ld/%ld bytes to encode %s, value=%d", + (long)rval.consumed, (long)length, + td->name, *st); + + return rval; +} + +asn_enc_rval_t +BOOLEAN_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, + int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, + void *app_key) { + asn_enc_rval_t erval = {0,0,0}; + const BOOLEAN_t *st = (const BOOLEAN_t *)sptr; + + erval.encoded = der_write_tags(td, 1, tag_mode, 0, tag, cb, app_key); + if(erval.encoded == -1) { + erval.failed_type = td; + erval.structure_ptr = sptr; + return erval; + } + + if(cb) { + uint8_t bool_value; + + bool_value = *st ? 0xff : 0; /* 0xff mandated by DER */ + + if(cb(&bool_value, 1, app_key) < 0) { + erval.encoded = -1; + erval.failed_type = td; + erval.structure_ptr = sptr; + return erval; + } + } + + erval.encoded += 1; + + ASN__ENCODED_OK(erval); +} diff --git a/asn.1/skeleton/BOOLEAN_jer.c b/asn.1/skeleton/BOOLEAN_jer.c new file mode 100644 index 00000000..46f9ff4d --- /dev/null +++ b/asn.1/skeleton/BOOLEAN_jer.c @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include +#include + +/* + * Decode the chunk of JSON text encoding INTEGER. + */ +static enum jer_pbd_rval +BOOLEAN__jer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, + const void *chunk_buf, size_t chunk_size) { + BOOLEAN_t *st = (BOOLEAN_t *)sptr; + const char *p = (const char *)chunk_buf; + + (void)td; + (void)chunk_size; + + if(p[0] == 't' /* 'true' */) { + *st = 1; + return JPBD_BODY_CONSUMED; + } else if (p[0] == 'f' /* 'false' */) { + *st = 0; + return JPBD_BODY_CONSUMED; + } else { + return JPBD_BROKEN_ENCODING; + } +} + + +asn_dec_rval_t +BOOLEAN_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const void *buf_ptr, size_t size) { + return jer_decode_primitive(opt_codec_ctx, td, + sptr, sizeof(BOOLEAN_t), buf_ptr, size, + BOOLEAN__jer_body_decode); +} + + +asn_enc_rval_t +BOOLEAN_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const BOOLEAN_t *st = (const BOOLEAN_t *)sptr; + asn_enc_rval_t er = {0, 0, 0}; + + (void)ilevel; + (void)flags; + + if(!st) ASN__ENCODE_FAILED; + + if(*st) { + ASN__CALLBACK("true", 4); + } else { + ASN__CALLBACK("false", 5); + } + + ASN__ENCODED_OK(er); +cb_failed: + ASN__ENCODE_FAILED; +} diff --git a/asn.1/skeleton/BOOLEAN_oer.c b/asn.1/skeleton/BOOLEAN_oer.c new file mode 100644 index 00000000..0e92e602 --- /dev/null +++ b/asn.1/skeleton/BOOLEAN_oer.c @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Encode as Canonical OER. + */ +asn_enc_rval_t +BOOLEAN_encode_oer(const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, const void *sptr, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_enc_rval_t er = { 1, 0, 0 }; + const BOOLEAN_t *st = sptr; + uint8_t bool_value = *st ? 0xff : 0; /* 0xff mandated by OER */ + + (void)td; + (void)constraints; /* Constraints are unused in OER */ + + if(cb(&bool_value, 1, app_key) < 0) { + ASN__ENCODE_FAILED; + } else { + ASN__ENCODED_OK(er); + } +} + +asn_dec_rval_t +BOOLEAN_decode_oer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, void **sptr, + const void *ptr, size_t size) { + asn_dec_rval_t ok = {RC_OK, 1}; + BOOLEAN_t *st; + + (void)opt_codec_ctx; + (void)td; + (void)constraints; /* Constraints are unused in OER */ + + if(size < 1) { + ASN__DECODE_STARVED; + } + + if(!(st = *sptr)) { + st = (BOOLEAN_t *)(*sptr = CALLOC(1, sizeof(*st))); + if(!st) ASN__DECODE_FAILED; + } + + *st = *(const uint8_t *)ptr; + + return ok; +} diff --git a/asn.1/skeleton/BOOLEAN_print.c b/asn.1/skeleton/BOOLEAN_print.c new file mode 100644 index 00000000..23aaadea --- /dev/null +++ b/asn.1/skeleton/BOOLEAN_print.c @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +int +BOOLEAN_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + asn_app_consume_bytes_f *cb, void *app_key) { + const BOOLEAN_t *st = (const BOOLEAN_t *)sptr; + const char *buf; + size_t buflen; + + (void)td; /* Unused argument */ + (void)ilevel; /* Unused argument */ + + if(st) { + if(*st) { + buf = "TRUE"; + buflen = 4; + } else { + buf = "FALSE"; + buflen = 5; + } + } else { + buf = ""; + buflen = 8; + } + + return (cb(buf, buflen, app_key) < 0) ? -1 : 0; +} diff --git a/asn.1/skeleton/BOOLEAN_rfill.c b/asn.1/skeleton/BOOLEAN_rfill.c new file mode 100644 index 00000000..5ec628bb --- /dev/null +++ b/asn.1/skeleton/BOOLEAN_rfill.c @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_random_fill_result_t +BOOLEAN_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, + const asn_encoding_constraints_t *constraints, + size_t max_length) { + asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; + asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; + asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; + BOOLEAN_t *st = *sptr; + + if(max_length == 0) return result_skipped; + + if(st == NULL) { + st = (BOOLEAN_t *)(*sptr = CALLOC(1, sizeof(*st))); + if(st == NULL) { + return result_failed; + } + } + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + if(!constraints || !constraints->per_constraints) + constraints = &td->encoding_constraints; + if(constraints->per_constraints) { + const asn_per_constraint_t *pc = &constraints->per_constraints->value; + if(pc->flags & APC_CONSTRAINED) { + *st = asn_random_between(pc->lower_bound, pc->upper_bound); + return result_ok; + } + } +#else + if(!constraints) constraints = &td->encoding_constraints; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + + /* Simulate booleans that are sloppily set and biased. */ + switch(asn_random_between(0, 7)) { + case 0: + case 1: + case 2: + *st = 0; break; + case 3: *st = -1; break; + case 4: *st = 1; break; + case 5: *st = INT_MIN; break; + case 6: *st = INT_MAX; break; + default: + *st = asn_random_between(INT_MIN, INT_MAX); + break; + } + return result_ok; +} diff --git a/asn.1/skeleton/BOOLEAN_uper.c b/asn.1/skeleton/BOOLEAN_uper.c new file mode 100644 index 00000000..8181ec9c --- /dev/null +++ b/asn.1/skeleton/BOOLEAN_uper.c @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_dec_rval_t +BOOLEAN_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, + asn_per_data_t *pd) { + asn_dec_rval_t rv; + BOOLEAN_t *st = (BOOLEAN_t *)*sptr; + + (void)opt_codec_ctx; + (void)td; + (void)constraints; + + if(!st) { + st = (BOOLEAN_t *)(*sptr = MALLOC(sizeof(*st))); + if(!st) ASN__DECODE_FAILED; + } + + /* + * Extract a single bit + */ + switch(per_get_few_bits(pd, 1)) { + case 1: *st = 1; break; + case 0: *st = 0; break; + case -1: default: ASN__DECODE_STARVED; + } + + ASN_DEBUG("%s decoded as %s", td->name, *st ? "TRUE" : "FALSE"); + + rv.code = RC_OK; + rv.consumed = 1; + return rv; +} + + +asn_enc_rval_t +BOOLEAN_encode_uper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, const void *sptr, + asn_per_outp_t *po) { + const BOOLEAN_t *st = (const BOOLEAN_t *)sptr; + asn_enc_rval_t er = { 0, 0, 0 }; + + (void)constraints; + + if(!st) ASN__ENCODE_FAILED; + + if(per_put_few_bits(po, *st ? 1 : 0, 1)) + ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/BOOLEAN_xer.c b/asn.1/skeleton/BOOLEAN_xer.c new file mode 100644 index 00000000..7e9d8f85 --- /dev/null +++ b/asn.1/skeleton/BOOLEAN_xer.c @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include +#include + +/* + * Decode the chunk of XML text encoding INTEGER. + */ +static enum xer_pbd_rval +BOOLEAN__xer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, + const void *chunk_buf, size_t chunk_size) { + BOOLEAN_t *st = (BOOLEAN_t *)sptr; + const char *p = (const char *)chunk_buf; + + (void)td; + + if(chunk_size && p[0] == 0x3c /* '<' */) { + switch(xer_check_tag(chunk_buf, chunk_size, "false")) { + case XCT_BOTH: + /* "" */ + *st = 0; + break; + case XCT_UNKNOWN_BO: + if(xer_check_tag(chunk_buf, chunk_size, "true") != XCT_BOTH) + return XPBD_BROKEN_ENCODING; + /* "" */ + *st = 1; /* Or 0xff as in DER?.. */ + break; + default: + return XPBD_BROKEN_ENCODING; + } + return XPBD_BODY_CONSUMED; + } else { + return XPBD_BROKEN_ENCODING; + } +} + + +asn_dec_rval_t +BOOLEAN_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, size_t size) { + return xer_decode_primitive(opt_codec_ctx, td, + sptr, sizeof(BOOLEAN_t), opt_mname, buf_ptr, size, + BOOLEAN__xer_body_decode); +} + +asn_enc_rval_t +BOOLEAN_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const BOOLEAN_t *st = (const BOOLEAN_t *)sptr; + asn_enc_rval_t er = {0, 0, 0}; + + (void)ilevel; + (void)flags; + + if(!st) ASN__ENCODE_FAILED; + + if(*st) { + ASN__CALLBACK("", 7); + } else { + ASN__CALLBACK("", 8); + } + + ASN__ENCODED_OK(er); +cb_failed: + ASN__ENCODE_FAILED; +} diff --git a/asn.1/skeleton/ENUMERATED.c b/asn.1/skeleton/ENUMERATED.c new file mode 100644 index 00000000..97bc9b1e --- /dev/null +++ b/asn.1/skeleton/ENUMERATED.c @@ -0,0 +1,92 @@ +/*- + * Copyright (c) 2003, 2005, 2006 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * ENUMERATED basic type description. + */ +static const ber_tlv_tag_t asn_DEF_ENUMERATED_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_operation_t asn_OP_ENUMERATED = { + ASN__PRIMITIVE_TYPE_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + INTEGER_print, /* Implemented in terms of INTEGER */ +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + INTEGER_compare, /* Implemented in terms of INTEGER */ + INTEGER_copy, /* Implemented in terms of INTEGER */ +#if !defined(ASN_DISABLE_BER_SUPPORT) + ber_decode_primitive, + INTEGER_encode_der, /* Implemented in terms of INTEGER */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + INTEGER_decode_xer, /* This is temporary! */ + INTEGER_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + ENUMERATED_decode_jer, + INTEGER_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + ENUMERATED_decode_oer, + ENUMERATED_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + ENUMERATED_decode_uper, /* Unaligned PER decoder */ + ENUMERATED_encode_uper, /* Unaligned PER encoder */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + ENUMERATED_decode_aper, /* Aligned PER decoder */ + ENUMERATED_encode_aper, /* Aligned PER encoder */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + ENUMERATED_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_ENUMERATED = { + "ENUMERATED", + "ENUMERATED", + &asn_OP_ENUMERATED, + asn_DEF_ENUMERATED_tags, + sizeof(asn_DEF_ENUMERATED_tags) / sizeof(asn_DEF_ENUMERATED_tags[0]), + asn_DEF_ENUMERATED_tags, /* Same as above */ + sizeof(asn_DEF_ENUMERATED_tags) / sizeof(asn_DEF_ENUMERATED_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + asn_generic_no_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; diff --git a/asn.1/skeleton/ENUMERATED.h b/asn.1/skeleton/ENUMERATED.h new file mode 100644 index 00000000..b1519030 --- /dev/null +++ b/asn.1/skeleton/ENUMERATED.h @@ -0,0 +1,67 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _ENUMERATED_H_ +#define _ENUMERATED_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef INTEGER_t ENUMERATED_t; /* Implemented via INTEGER */ + +extern asn_TYPE_descriptor_t asn_DEF_ENUMERATED; +extern asn_TYPE_operation_t asn_OP_ENUMERATED; + +#define ENUMERATED_free ASN__PRIMITIVE_TYPE_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +#define ENUMERATED_print INTEGER_print +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define ENUMERATED_compare INTEGER_compare +#define ENUMERATED_copy INTEGER_copy + +#define ENUMERATED_constraint asn_generic_no_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define ENUMERATED_decode_ber ber_decode_primitive +#define ENUMERATED_encode_der INTEGER_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#define ENUMERATED_decode_xer INTEGER_decode_xer +#define ENUMERATED_encode_xer INTEGER_encode_xer +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +jer_type_decoder_f ENUMERATED_decode_jer; +#define ENUMERATED_encode_jer INTEGER_encode_jer +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +oer_type_decoder_f ENUMERATED_decode_oer; +oer_type_encoder_f ENUMERATED_encode_oer; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +per_type_decoder_f ENUMERATED_decode_uper; +per_type_encoder_f ENUMERATED_encode_uper; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +per_type_decoder_f ENUMERATED_decode_aper; +per_type_encoder_f ENUMERATED_encode_aper; +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +#define ENUMERATED_random_fill INTEGER_random_fill +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* _ENUMERATED_H_ */ diff --git a/asn.1/skeleton/ENUMERATED_aper.c b/asn.1/skeleton/ENUMERATED_aper.c new file mode 100644 index 00000000..58911a40 --- /dev/null +++ b/asn.1/skeleton/ENUMERATED_aper.c @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_dec_rval_t +ENUMERATED_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) { + asn_dec_rval_t rval; + ENUMERATED_t *st = (ENUMERATED_t *)*sptr; + long value; + void *vptr = &value; + + if(!st) { + st = (ENUMERATED_t *)(*sptr = CALLOC(1, sizeof(*st))); + if(!st) ASN__DECODE_FAILED; + } + + rval = NativeEnumerated_decode_aper(opt_codec_ctx, td, constraints, + (void **)&vptr, pd); + if(rval.code == RC_OK) + if(asn_long2INTEGER(st, value)) + rval.code = RC_FAIL; + return rval; +} + +asn_enc_rval_t +ENUMERATED_encode_aper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + const ENUMERATED_t *st = (const ENUMERATED_t *)sptr; + long value; + + if(asn_INTEGER2long(st, &value)) + ASN__ENCODE_FAILED; + + return NativeEnumerated_encode_aper(td, constraints, &value, po); +} diff --git a/asn.1/skeleton/ENUMERATED_jer.c b/asn.1/skeleton/ENUMERATED_jer.c new file mode 100644 index 00000000..0a7305ef --- /dev/null +++ b/asn.1/skeleton/ENUMERATED_jer.c @@ -0,0 +1,125 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +struct e2v_key { + const char *start; + const char *stop; + const asn_INTEGER_enum_map_t *vemap; + const unsigned int *evmap; +}; +static int +ENUMERATED__jer_compar_enum2value(const void *kp, const void *am) { + const struct e2v_key *key = (const struct e2v_key *)kp; + const asn_INTEGER_enum_map_t *el = (const asn_INTEGER_enum_map_t *)am; + const char *ptr, *end, *name; + + /* Remap the element (sort by different criterion) */ + el = key->vemap + key->evmap[el - key->vemap]; + + /* Compare strings */ + for(ptr = key->start, end = key->stop, name = el->enum_name; + ptr < end; ptr++, name++) { + if(*ptr != *name || !*name) + return *(const unsigned char *)ptr - *(const unsigned char *)name; + } + return name[0] ? -1 : 0; +} + +static const asn_INTEGER_enum_map_t * +ENUMERATED_jer_map_enum2value(const asn_INTEGER_specifics_t *specs, const char *lstart, + const char *lstop) { + const asn_INTEGER_enum_map_t *el_found; + int count = specs ? specs->map_count : 0; + struct e2v_key key; + const char *lp; + + if(!count) return NULL; + + /* Guaranteed: assert(lstart < lstop); */ + /* Figure out the tag name */ + for(lstart++, lp = lstart; lp < lstop; lp++) { + switch(*lp) { + case 9: case 10: case 11: case 12: case 13: case 32: /* WSP */ + case 0x22: /* '"' */ + break; + default: + continue; + } + break; + } + if(lp == lstop) return NULL; /* No tag found */ + lstop = lp; + + key.start = lstart; + key.stop = lstop; + key.vemap = specs->value2enum; + key.evmap = specs->enum2value; + el_found = (asn_INTEGER_enum_map_t *)bsearch(&key, + specs->value2enum, count, sizeof(specs->value2enum[0]), + ENUMERATED__jer_compar_enum2value); + if(el_found) { + /* Remap enum2value into value2enum */ + el_found = key.vemap + key.evmap[el_found - key.vemap]; + } + return el_found; +} + +static enum jer_pbd_rval +ENUMERATED__jer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, + const void *chunk_buf, size_t chunk_size) { + INTEGER_t *st = (INTEGER_t *)sptr; + intmax_t dec_value; + const char *lp; + const char *lstart = (const char *)chunk_buf; + const char *lstop = lstart + chunk_size; + int decoded = 0; + + for (lp = lstart; lp < lstop; ++lp) { + if (*lp == 0x22 /* '"' */) { + const asn_INTEGER_enum_map_t *el; + el = ENUMERATED_jer_map_enum2value( + (const asn_INTEGER_specifics_t *) + td->specifics, lstart, lstop); + if(el) { + ASN_DEBUG("Found \"%s\" => %ld", + el->enum_name, el->nat_value); + dec_value = el->nat_value; + decoded = 1; + lp = lstop - 1; + continue; + } + ASN_DEBUG("Unknown identifier for ENUMERATED"); + } else { + continue; + } + } + + if (!decoded) { + return JPBD_BROKEN_ENCODING;; + } + + /* + * Convert the result of parsing of enumeration into a BER representation. + */ + if(asn_imax2INTEGER(st, dec_value)) { + ASN_DEBUG("ENUMERATED decode %s conversion failed", td->name); + return JPBD_SYSTEM_FAILURE; + } + + return JPBD_BODY_CONSUMED; +} + +asn_dec_rval_t +ENUMERATED_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const void *buf_ptr, size_t size) { + return jer_decode_primitive(opt_codec_ctx, td, + sptr, sizeof(INTEGER_t), + buf_ptr, size, ENUMERATED__jer_body_decode); +} diff --git a/asn.1/skeleton/ENUMERATED_oer.c b/asn.1/skeleton/ENUMERATED_oer.c new file mode 100644 index 00000000..2ccf1842 --- /dev/null +++ b/asn.1/skeleton/ENUMERATED_oer.c @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_dec_rval_t +ENUMERATED_decode_oer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, void **sptr, + const void *ptr, size_t size) { + asn_dec_rval_t rval; + ENUMERATED_t *st = (ENUMERATED_t *)*sptr; + long value; + void *vptr = &value; + + if(!st) { + st = (ENUMERATED_t *)(*sptr = CALLOC(1, sizeof(*st))); + if(!st) ASN__DECODE_FAILED; + } + + rval = NativeEnumerated_decode_oer(opt_codec_ctx, td, constraints, + (void **)&vptr, ptr, size); + if(rval.code == RC_OK) { + if(asn_long2INTEGER(st, value)) { + rval.code = RC_FAIL; + } + } + return rval; +} + +asn_enc_rval_t +ENUMERATED_encode_oer(const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, + const void *sptr, asn_app_consume_bytes_f *cb, + void *app_key) { + const ENUMERATED_t *st = sptr; + long value; + + if(asn_INTEGER2long(st, &value)) { + ASN__ENCODE_FAILED; + } + + return NativeEnumerated_encode_oer(td, constraints, &value, cb, app_key); +} diff --git a/asn.1/skeleton/ENUMERATED_uper.c b/asn.1/skeleton/ENUMERATED_uper.c new file mode 100644 index 00000000..8fef9bdd --- /dev/null +++ b/asn.1/skeleton/ENUMERATED_uper.c @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_dec_rval_t +ENUMERATED_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, + asn_per_data_t *pd) { + asn_dec_rval_t rval; + ENUMERATED_t *st = (ENUMERATED_t *)*sptr; + long value; + void *vptr = &value; + + if(!st) { + st = (ENUMERATED_t *)(*sptr = CALLOC(1, sizeof(*st))); + if(!st) ASN__DECODE_FAILED; + } + + rval = NativeEnumerated_decode_uper(opt_codec_ctx, td, constraints, + (void **)&vptr, pd); + if(rval.code == RC_OK) { + if(asn_long2INTEGER(st, value)) { + rval.code = RC_FAIL; + } + } + return rval; +} + +asn_enc_rval_t +ENUMERATED_encode_uper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + const ENUMERATED_t *st = (const ENUMERATED_t *)sptr; + long value; + + if(asn_INTEGER2long(st, &value)) { + ASN__ENCODE_FAILED; + } + + return NativeEnumerated_encode_uper(td, constraints, &value, po); +} diff --git a/asn.1/skeleton/GeneralString.c b/asn.1/skeleton/GeneralString.c new file mode 100644 index 00000000..fe77e64f --- /dev/null +++ b/asn.1/skeleton/GeneralString.c @@ -0,0 +1,94 @@ +/*- + * Copyright (c) 2003 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * GeneralString basic type description. + */ +static const ber_tlv_tag_t asn_DEF_GeneralString_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (27 << 2)), /* [UNIVERSAL 27] IMPLICIT ...*/ + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ +}; +asn_TYPE_operation_t asn_OP_GeneralString = { + OCTET_STRING_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + OCTET_STRING_print, /* non-ascii string */ +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + OCTET_STRING_compare, + OCTET_STRING_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + OCTET_STRING_decode_xer_hex, + OCTET_STRING_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + OCTET_STRING_decode_jer_hex, + OCTET_STRING_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + OCTET_STRING_decode_oer, + OCTET_STRING_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OCTET_STRING_decode_uper, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + OCTET_STRING_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_GeneralString = { + "GeneralString", + "GeneralString", + &asn_OP_GeneralString, + asn_DEF_GeneralString_tags, + sizeof(asn_DEF_GeneralString_tags) + / sizeof(asn_DEF_GeneralString_tags[0]) - 1, + asn_DEF_GeneralString_tags, + sizeof(asn_DEF_GeneralString_tags) + / sizeof(asn_DEF_GeneralString_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + asn_generic_unknown_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; diff --git a/asn.1/skeleton/GeneralString.h b/asn.1/skeleton/GeneralString.h new file mode 100644 index 00000000..2815245c --- /dev/null +++ b/asn.1/skeleton/GeneralString.h @@ -0,0 +1,58 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _GeneralString_H_ +#define _GeneralString_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef OCTET_STRING_t GeneralString_t; /* Implemented via OCTET STRING */ + +extern asn_TYPE_descriptor_t asn_DEF_GeneralString; +extern asn_TYPE_operation_t asn_OP_GeneralString; + +#define GeneralString_free OCTET_STRING_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +#define GeneralString_print OCTET_STRING_print +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define GeneralString_compare OCTET_STRING_compare +#define GeneralString_copy OCTET_STRING_copy + +#define GeneralString_constraint asn_generic_unknown_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define GeneralString_decode_ber OCTET_STRING_decode_ber +#define GeneralString_encode_der OCTET_STRING_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#define GeneralString_decode_xer OCTET_STRING_decode_xer_hex +#define GeneralString_encode_xer OCTET_STRING_encode_xer +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +#define GeneralString_decode_jer OCTET_STRING_decode_jer_hex +#define GeneralString_encode_jer OCTET_STRING_encode_jer +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#define GeneralString_decode_uper OCTET_STRING_decode_uper +#define GeneralString_encode_uper OCTET_STRING_encode_uper +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define GeneralString_decode_aper OCTET_STRING_decode_aper +#define GeneralString_encode_aper OCTET_STRING_encode_aper +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* _GeneralString_H_ */ diff --git a/asn.1/skeleton/GeneralizedTime.c b/asn.1/skeleton/GeneralizedTime.c new file mode 100644 index 00000000..e4e25626 --- /dev/null +++ b/asn.1/skeleton/GeneralizedTime.c @@ -0,0 +1,748 @@ +/*- + * Copyright (c) 2003-2019 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#define _POSIX_PTHREAD_SEMANTICS /* for Sun */ +#ifndef _REENTRANT +#define _REENTRANT /* for Sun */ +#endif +#define __EXTENSIONS__ /* for Sun */ +#ifndef _BSD_SOURCE +#define _BSD_SOURCE /* for timegm(3) */ +#endif +#include +#include + +#ifdef __CYGWIN__ +#include "/usr/include/time.h" +#else +#include +#endif /* __CYGWIN__ */ + +#include + +#if defined(_WIN32) +#pragma message( "PLEASE STOP AND READ!") +#pragma message( " localtime_r is implemented via localtime(), which may be not thread-safe.") +#pragma message( " gmtime_r is implemented via gmtime(), which may be not thread-safe.") +#pragma message( " ") +#pragma message( " You must fix the code by inserting appropriate locking") +#pragma message( " if you want to use asn_GT2time() or asn_UT2time().") +#pragma message( "PLEASE STOP AND READ!") + +static struct tm *localtime_r(const time_t *tloc, struct tm *result) { + struct tm *tm; + if((tm = localtime(tloc))) + return memcpy(result, tm, sizeof(struct tm)); + return 0; +} + +static struct tm *gmtime_r(const time_t *tloc, struct tm *result) { + struct tm *tm; + if((tm = gmtime(tloc))) + return memcpy(result, tm, sizeof(struct tm)); + return 0; +} + +#define tzset() _tzset() +#define putenv(c) _putenv(c) +#define _EMULATE_TIMEGM + +#endif /* _WIN32 */ + +#if defined(sun) || defined(__sun) || defined(__solaris__) +#define _EMULATE_TIMEGM +#endif + +/* + * Where to look for offset from GMT, Phase I. + * Several platforms are known. + */ +#if defined(__FreeBSD__) || defined(__OpenBSD__) \ + || (defined(__GNUC__) && defined(__APPLE_CC__)) \ + || (defined __GLIBC__ && __GLIBC__ >= 2) +#undef HAVE_TM_GMTOFF +#define HAVE_TM_GMTOFF +#endif /* BSDs and newer glibc */ + +/* + * Where to look for offset from GMT, Phase II. + */ +#ifdef HAVE_TM_GMTOFF +#define GMTOFF(tm) ((tm).tm_gmtoff) +#else /* HAVE_TM_GMTOFF */ +#define GMTOFF(tm) (_timezone) +#endif /* HAVE_TM_GMTOFF */ + +#if defined(_WIN32) +#pragma message( "PLEASE STOP AND READ!") +#pragma message( " timegm() is implemented via getenv(\"TZ\")/setenv(\"TZ\"), which may be not thread-safe.") +#pragma message( " ") +#pragma message( " You must fix the code by inserting appropriate locking") +#pragma message( " if you want to use asn_GT2time() or asn_UT2time().") +#pragma message( "PLEASE STOP AND READ!") +#else +#if (defined(_EMULATE_TIMEGM) || !defined(HAVE_TM_GMTOFF)) +#warning "PLEASE STOP AND READ!" +#warning " timegm() is implemented via getenv(\"TZ\")/setenv(\"TZ\"), which may be not thread-safe." +#warning " " +#warning " You must fix the code by inserting appropriate locking" +#warning " if you want to use asn_GT2time() or asn_UT2time()." +#warning "PLEASE STOP AND READ!" +#endif /* _EMULATE_TIMEGM */ +#endif + +/* + * Override our GMTOFF decision for other known platforms. + */ +#ifdef __CYGWIN__ +#undef GMTOFF +static long GMTOFF(struct tm a){ + struct tm *lt; + time_t local_time, gmt_time; + long zone; + + tzset(); + gmt_time = time (NULL); + + lt = gmtime(&gmt_time); + + local_time = mktime(lt); + return (gmt_time - local_time); +} +#define _EMULATE_TIMEGM + +#endif /* __CYGWIN__ */ + +#define ATZVARS do { \ + char tzoldbuf[64]; \ + char *tzold +#define ATZSAVETZ do { \ + tzold = getenv("TZ"); \ + if(tzold) { \ + size_t tzlen = strlen(tzold); \ + if(tzlen < sizeof(tzoldbuf)) { \ + tzold = memcpy(tzoldbuf, tzold, tzlen + 1); \ + } else { \ + char *dupptr = tzold; \ + tzold = MALLOC(tzlen + 1); \ + if(tzold) memcpy(tzold, dupptr, tzlen + 1); \ + } \ + setenv("TZ", "UTC", 1); \ + } \ + tzset(); \ +} while(0) +#define ATZOLDTZ do { \ + if (tzold) { \ + setenv("TZ", tzold, 1); \ + *tzoldbuf = 0; \ + if(tzold != tzoldbuf) \ + FREEMEM(tzold); \ + } else { \ + unsetenv("TZ"); \ + } \ + tzset(); \ +} while(0); } while(0); + +#ifndef HAVE_TIMEGM +#ifdef _EMULATE_TIMEGM +#include +static time_t timegm(struct tm *tm) { + time_t tloc; + ATZVARS; + ATZSAVETZ; + tloc = mktime(tm); + ATZOLDTZ; + return tloc; +} +#endif /* _EMULATE_TIMEGM */ +#endif + + +#ifndef ASN___INTERNAL_TEST_MODE + +/* + * GeneralizedTime basic type description. + */ +static const ber_tlv_tag_t asn_DEF_GeneralizedTime_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (24 << 2)), /* [UNIVERSAL 24] IMPLICIT ...*/ + (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), /* [UNIVERSAL 26] IMPLICIT ...*/ + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ +}; +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_DEF_GeneralizedTime_per_constraints = { + { APC_CONSTRAINED, 7, 7, 0x20, 0x7e }, /* Value */ + { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 }, /* Size */ + 0, 0 +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_operation_t asn_OP_GeneralizedTime = { + OCTET_STRING_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + GeneralizedTime_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + GeneralizedTime_compare, + GeneralizedTime_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ + GeneralizedTime_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + OCTET_STRING_decode_xer_utf8, + GeneralizedTime_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + OCTET_STRING_decode_jer_utf8, + GeneralizedTime_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + OCTET_STRING_decode_oer, + OCTET_STRING_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OCTET_STRING_decode_uper, + OCTET_STRING_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, + OCTET_STRING_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + GeneralizedTime_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_GeneralizedTime = { + "GeneralizedTime", + "GeneralizedTime", + &asn_OP_GeneralizedTime, + asn_DEF_GeneralizedTime_tags, + sizeof(asn_DEF_GeneralizedTime_tags) + / sizeof(asn_DEF_GeneralizedTime_tags[0]) - 2, + asn_DEF_GeneralizedTime_tags, + sizeof(asn_DEF_GeneralizedTime_tags) + / sizeof(asn_DEF_GeneralizedTime_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_DEF_GeneralizedTime_per_constraints, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + GeneralizedTime_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + +#endif /* ASN___INTERNAL_TEST_MODE */ + +/* + * Check that the time looks like the time. + */ +int +GeneralizedTime_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, + void *app_key) { + const GeneralizedTime_t *st = (const GeneralizedTime_t *)sptr; + time_t tloc; + + errno = EPERM; /* Just an unlikely error code */ + tloc = asn_GT2time(st, 0, 0); + if(tloc == -1 && errno != EPERM) { + ASN__CTFAIL(app_key, td, sptr, + "%s: Invalid time format: %s (%s:%d)", + td->name, strerror(errno), __FILE__, __LINE__); + return -1; + } + + return 0; +} + +time_t +asn_GT2time(const GeneralizedTime_t *st, struct tm *ret_tm, int as_gmt) { + return asn_GT2time_frac(st, 0, 0, ret_tm, as_gmt); +} + +time_t +asn_GT2time_prec(const GeneralizedTime_t *st, int *frac_value, int frac_digits, struct tm *ret_tm, int as_gmt) { + time_t tloc; + int fv, fd = 0; + + if(frac_value) + tloc = asn_GT2time_frac(st, &fv, &fd, ret_tm, as_gmt); + else + return asn_GT2time_frac(st, 0, 0, ret_tm, as_gmt); + if(fd == 0 || frac_digits <= 0) { + *frac_value = 0; + } else { + while(fd > frac_digits) + fv /= 10, fd--; + while(fd < frac_digits) { + if(fv < INT_MAX / 10) { + fv *= 10; + fd++; + } else { + /* Too long precision request */ + fv = 0; + break; + } + } + + *frac_value = fv; + } + + return tloc; +} + +time_t +asn_GT2time_frac(const GeneralizedTime_t *st, int *frac_value, int *frac_digits, struct tm *ret_tm, int as_gmt) { + struct tm tm_s; + uint8_t *buf; + uint8_t *end; + int gmtoff_h = 0; + int gmtoff_m = 0; + int gmtoff = 0; /* h + m */ + int offset_specified = 0; + int fvalue = 0; + int fdigits = 0; + time_t tloc; + + if(!st || !st->buf) { + errno = EINVAL; + return -1; + } else { + buf = st->buf; + end = buf + st->size; + } + + if(st->size < 10) { + errno = EINVAL; + return -1; + } + + /* + * Decode first 10 bytes: "AAAAMMJJhh" + */ + memset(&tm_s, 0, sizeof(tm_s)); +#undef B2F +#undef B2T +#define B2F(var) do { \ + unsigned ch = *buf; \ + if(ch < 0x30 || ch > 0x39) { \ + errno = EINVAL; \ + return -1; \ + } else { \ + var = var * 10 + (ch - 0x30); \ + buf++; \ + } \ + } while(0) +#define B2T(var) B2F(tm_s.var) + + B2T(tm_year); /* 1: A */ + B2T(tm_year); /* 2: A */ + B2T(tm_year); /* 3: A */ + B2T(tm_year); /* 4: A */ + B2T(tm_mon); /* 5: M */ + B2T(tm_mon); /* 6: M */ + B2T(tm_mday); /* 7: J */ + B2T(tm_mday); /* 8: J */ + B2T(tm_hour); /* 9: h */ + B2T(tm_hour); /* 0: h */ + + if(buf == end) goto local_finish; + + /* + * Parse [mm[ss[(.|,)ffff]]] + * ^^ + */ + switch(*buf) { + case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: + case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: + tm_s.tm_min = (*buf++) - 0x30; + if(buf == end) { errno = EINVAL; return -1; } + B2T(tm_min); + break; + case 0x2B: case 0x2D: /* +, - */ + goto offset; + case 0x5A: /* Z */ + goto utc_finish; + default: + errno = EINVAL; + return -1; + } + + if(buf == end) goto local_finish; + + /* + * Parse [mm[ss[(.|,)ffff]]] + * ^^ + */ + switch(*buf) { + case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: + case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: + tm_s.tm_sec = (*buf++) - 0x30; + if(buf == end) { errno = EINVAL; return -1; } + B2T(tm_sec); + break; + case 0x2B: case 0x2D: /* +, - */ + goto offset; + case 0x5A: /* Z */ + goto utc_finish; + default: + errno = EINVAL; + return -1; + } + + if(buf == end) goto local_finish; + + /* + * Parse [mm[ss[(.|,)ffff]]] + * ^ ^ + */ + switch(*buf) { + case 0x2C: case 0x2E: /* (.|,) */ + /* + * Process fractions of seconds. + */ + for(buf++; buf < end; buf++) { + int v = *buf; + /* GCC 4.x is being too smart without volatile */ + switch(v) { + case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: + case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: + if(fvalue < INT_MAX/10) { + fvalue = fvalue * 10 + (v - 0x30); + fdigits++; + } else { + /* Not enough precision, ignore */ + } + continue; + default: + break; + } + break; + } + } + + if(buf == end) goto local_finish; + + switch(*buf) { + case 0x2B: case 0x2D: /* +, - */ + goto offset; + case 0x5A: /* Z */ + goto utc_finish; + default: + errno = EINVAL; + return -1; + } + + +offset: + + if(end - buf < 3) { + errno = EINVAL; + return -1; + } + buf++; + B2F(gmtoff_h); + B2F(gmtoff_h); + if(buf[-3] == 0x2D) /* Negative */ + gmtoff = -1; + else + gmtoff = 1; + + if((end - buf) == 2) { + B2F(gmtoff_m); + B2F(gmtoff_m); + } else if(end != buf) { + errno = EINVAL; + return -1; + } + + gmtoff = gmtoff * (3600 * gmtoff_h + 60 * gmtoff_m); + + /* Fall through */ +utc_finish: + + offset_specified = 1; + + /* Fall through */ +local_finish: + + /* + * Validation. + */ + if((tm_s.tm_mon > 12 || tm_s.tm_mon < 1) + || (tm_s.tm_mday > 31 || tm_s.tm_mday < 1) + || (tm_s.tm_hour > 23) + || (tm_s.tm_sec > 60) + ) { + errno = EINVAL; + return -1; + } + + /* Canonicalize */ + tm_s.tm_mon -= 1; /* 0 - 11 */ + tm_s.tm_year -= 1900; + tm_s.tm_isdst = -1; + + tm_s.tm_sec -= gmtoff; + + /*** AT THIS POINT tm_s is either GMT or local (unknown) ****/ + + if(offset_specified) { + tloc = timegm(&tm_s); + } else { + /* + * Without an offset (or "Z"), + * we can only guess that it is a local zone. + * Interpret it in this fashion. + */ + tloc = mktime(&tm_s); + } + if(tloc == -1) { + errno = EINVAL; + return -1; + } + + if(ret_tm) { + if(as_gmt) { + if(offset_specified) { + *ret_tm = tm_s; + } else { + if(gmtime_r(&tloc, ret_tm) == 0) { + errno = EINVAL; + return -1; + } + } + } else { + if(localtime_r(&tloc, ret_tm) == 0) { + errno = EINVAL; + return -1; + } + } + } + + /* Fractions of seconds */ + if(frac_value) *frac_value = fvalue; + if(frac_digits) *frac_digits = fdigits; + + return tloc; +} + +GeneralizedTime_t * +asn_time2GT(GeneralizedTime_t *opt_gt, const struct tm *tm, int force_gmt) { + return asn_time2GT_frac(opt_gt, tm, 0, 0, force_gmt); +} + +GeneralizedTime_t * +asn_time2GT_frac(GeneralizedTime_t *opt_gt, const struct tm *tm, int frac_value, int frac_digits, int force_gmt) { + struct tm tm_s; + long gmtoff = 0; + const unsigned int buf_size = + 4 + 2 + 2 /* yyyymmdd */ + + 2 + 2 + 2 /* hhmmss */ + + 1 + 9 /* .fffffffff */ + + 1 + 4 /* +hhmm */ + + 1 /* '\0' */ + ; + char *buf = NULL; + char *p = NULL; + int size = 0; + + /* Check arguments */ + if(!tm) { + errno = EINVAL; + return 0; + } + + /* Pre-allocate a buffer of sufficient yet small length */ + buf = (char *)MALLOC(buf_size); + if(!buf) return 0; + + gmtoff = GMTOFF(*tm); + + if(force_gmt && gmtoff) { + tm_s = *tm; + tm_s.tm_sec -= gmtoff; + timegm(&tm_s); /* Fix the time */ + tm = &tm_s; +#ifdef HAVE_TM_GMTOFF + assert(!GMTOFF(tm_s)); /* Will fix itself */ +#else /* !HAVE_TM_GMTOFF */ + gmtoff = 0; +#endif + } + + size = snprintf(buf, buf_size, "%04d%02d%02d%02d%02d%02d", + tm->tm_year + 1900, + tm->tm_mon + 1, + tm->tm_mday, + tm->tm_hour, + tm->tm_min, + tm->tm_sec + ); + if(size != 14) { + /* Could be assert(size == 14); */ + FREEMEM(buf); + errno = EINVAL; + return 0; + } + + p = buf + size; + + /* + * Deal with fractions. + */ + if(frac_value > 0 && frac_digits > 0) { + char *end = p + 1 + 9; /* '.' + maximum 9 digits */ + char *z = p; + long fbase; + *z++ = '.'; + + /* Place bounds on precision */ + while(frac_digits-- > 9) + frac_value /= 10; + + /* emulate fbase = pow(10, frac_digits) */ + for(fbase = 1; frac_digits--;) + fbase *= 10; + + do { + int digit = frac_value / fbase; + if(digit > 9) { z = 0; break; } + *z++ = digit + 0x30; + frac_value %= fbase; + fbase /= 10; + } while(fbase > 0 && frac_value > 0 && z < end); + if(z) { + for(--z; *z == 0x30; --z); /* Strip zeroes */ + p = z + (*z != '.'); + size = p - buf; + } + } + + if(force_gmt) { + *p++ = 0x5a; /* "Z" */ + *p++ = 0; + size++; + } else { + int ret; + gmtoff %= 86400; + ret = snprintf(p, buf_size - size, "%+03ld%02ld", + gmtoff / 3600, labs(gmtoff % 3600) / 60); + if(ret != 5) { + FREEMEM(buf); + errno = EINVAL; + return 0; + } + size += ret; + } + + if(opt_gt) { + if(opt_gt->buf) + FREEMEM(opt_gt->buf); + } else { + opt_gt = (GeneralizedTime_t *)CALLOC(1, sizeof *opt_gt); + if(!opt_gt) { FREEMEM(buf); return 0; } + } + + opt_gt->buf = (unsigned char *)buf; + opt_gt->size = size; + + return opt_gt; +} + +int +GeneralizedTime_compare(const asn_TYPE_descriptor_t *td, const void *aptr, + const void *bptr) { + const GeneralizedTime_t *a = aptr; + const GeneralizedTime_t *b = bptr; + + (void)td; + + if(a && b) { + int afrac_value, afrac_digits; + int bfrac_value, bfrac_digits; + int aerr, berr; + time_t at, bt; + + errno = EPERM; + at = asn_GT2time_frac(a, &afrac_value, &afrac_digits, 0, 0); + aerr = errno; + errno = EPERM; + bt = asn_GT2time_frac(b, &bfrac_value, &bfrac_digits, 0, 0); + berr = errno; + + if(at == -1 && aerr != EPERM) { + if(bt == -1 && berr != EPERM) { + return OCTET_STRING_compare(td, aptr, bptr); + } else { + return -1; + } + } else if(bt == -1 && berr != EPERM) { + return 1; + } else { + /* Both values are valid. */ + } + + if(at < bt) { + return -1; + } else if(at > bt) { + return 1; + } else if(afrac_digits == bfrac_digits) { + if(afrac_value == bfrac_value) { + return 0; + } + if(afrac_value < bfrac_value) { + return -1; + } else { + return 1; + } + } else if(afrac_digits == 0) { + return -1; + } else if(bfrac_digits == 0) { + return 1; + } else { + double afrac = (double)afrac_value / afrac_digits; + double bfrac = (double)bfrac_value / bfrac_digits; + if(afrac < bfrac) { + return -1; + } else if(afrac > bfrac) { + return 1; + } else { + return 0; + } + } + } else if(!a && !b) { + return 0; + } else if(!a) { + return -1; + } else { + return 1; + } + +} diff --git a/asn.1/skeleton/GeneralizedTime.h b/asn.1/skeleton/GeneralizedTime.h new file mode 100644 index 00000000..8a00738d --- /dev/null +++ b/asn.1/skeleton/GeneralizedTime.h @@ -0,0 +1,104 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _GeneralizedTime_H_ +#define _GeneralizedTime_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef OCTET_STRING_t GeneralizedTime_t; /* Implemented via OCTET STRING */ + +extern asn_TYPE_descriptor_t asn_DEF_GeneralizedTime; +extern asn_TYPE_operation_t asn_OP_GeneralizedTime; + +#define GeneralizedTime_free OCTET_STRING_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +asn_struct_print_f GeneralizedTime_print; +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +asn_struct_compare_f GeneralizedTime_compare; +#define GeneralizedTime_copy OCTET_STRING_copy + +asn_constr_check_f GeneralizedTime_constraint; + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define GeneralizedTime_decode_ber OCTET_STRING_decode_ber +der_type_encoder_f GeneralizedTime_encode_der; +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#define GeneralizedTime_decode_xer OCTET_STRING_decode_xer_utf8 +xer_type_encoder_f GeneralizedTime_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +#define GeneralizedTime_decode_jer OCTET_STRING_decode_jer_utf8 +jer_type_encoder_f GeneralizedTime_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#define GeneralizedTime_decode_uper OCTET_STRING_decode_uper +#define GeneralizedTime_encode_uper OCTET_STRING_encode_uper +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define GeneralizedTime_decode_aper OCTET_STRING_decode_aper +#define GeneralizedTime_encode_aper OCTET_STRING_encode_aper +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +asn_random_fill_f GeneralizedTime_random_fill; +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +/*********************** + * Some handy helpers. * + ***********************/ + +struct tm; /* */ + +/* + * Convert a GeneralizedTime structure into time_t + * and optionally into struct tm. + * If as_gmt is given, the resulting _optional_tm4fill will have a GMT zone, + * instead of default local one. + * On error returns -1 and errno set to EINVAL + */ +time_t asn_GT2time(const GeneralizedTime_t *, struct tm *_optional_tm4fill, + int as_gmt); + +/* A version of the above function also returning the fractions of seconds */ +time_t asn_GT2time_frac(const GeneralizedTime_t *, + int *frac_value, int *frac_digits, /* (value / (10 ^ digits)) */ + struct tm *_optional_tm4fill, int as_gmt); + +/* + * Another version returning fractions with defined precision + * For example, parsing of the time ending with ".1" seconds + * with frac_digits=3 (msec) would yield frac_value = 100. + */ +time_t asn_GT2time_prec(const GeneralizedTime_t *, + int *frac_value, int frac_digits, + struct tm *_optional_tm4fill, int as_gmt); + +/* + * Convert a struct tm into GeneralizedTime. + * If _optional_gt is not given, this function will try to allocate one. + * If force_gmt is given, the resulting GeneralizedTime will be forced + * into a GMT time zone (encoding ends with a "Z"). + * On error, this function returns 0 and sets errno. + */ +GeneralizedTime_t *asn_time2GT(GeneralizedTime_t *_optional_gt, + const struct tm *, int force_gmt); +GeneralizedTime_t *asn_time2GT_frac(GeneralizedTime_t *_optional_gt, + const struct tm *, int frac_value, int frac_digits, int force_gmt); + +#ifdef __cplusplus +} +#endif + +#endif /* _GeneralizedTime_H_ */ diff --git a/asn.1/skeleton/GeneralizedTime_ber.c b/asn.1/skeleton/GeneralizedTime_ber.c new file mode 100644 index 00000000..e093cb94 --- /dev/null +++ b/asn.1/skeleton/GeneralizedTime_ber.c @@ -0,0 +1,45 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +#ifdef __CYGWIN__ +#include "/usr/include/time.h" +#else +#include +#endif /* __CYGWIN__ */ + +asn_enc_rval_t +GeneralizedTime_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, + int tag_mode, ber_tlv_tag_t tag, + asn_app_consume_bytes_f *cb, void *app_key) { + GeneralizedTime_t *st; + asn_enc_rval_t erval = {0,0,0}; + int fv, fd; /* seconds fraction value and number of digits */ + struct tm tm; + time_t tloc; + + /* + * Encode as a canonical DER. + */ + errno = EPERM; + tloc = asn_GT2time_frac((const GeneralizedTime_t *)sptr, &fv, &fd, &tm, + 1); /* Recognize time */ + if(tloc == -1 && errno != EPERM) { + /* Failed to recognize time. Fail completely. */ + ASN__ENCODE_FAILED; + } + + st = asn_time2GT_frac(0, &tm, fv, fd, 1); /* Save time canonically */ + if(!st) ASN__ENCODE_FAILED; /* Memory allocation failure. */ + + erval = OCTET_STRING_encode_der(td, st, tag_mode, tag, cb, app_key); + + ASN_STRUCT_FREE(*td, st); + + return erval; +} diff --git a/asn.1/skeleton/GeneralizedTime_jer.c b/asn.1/skeleton/GeneralizedTime_jer.c new file mode 100644 index 00000000..ceb6563d --- /dev/null +++ b/asn.1/skeleton/GeneralizedTime_jer.c @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +#ifdef __CYGWIN__ +#include "/usr/include/time.h" +#else +#include +#endif /* __CYGWIN__ */ + +#include + +#if !defined(ASN___INTERNAL_TEST_MODE) +asn_enc_rval_t +GeneralizedTime_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + GeneralizedTime_t *gt; + asn_enc_rval_t rv; + int fv, fd; /* fractional parts */ + struct tm tm; + + errno = EPERM; + if(asn_GT2time_frac((const GeneralizedTime_t *)sptr, + &fv, &fd, &tm, 1) == -1 + && errno != EPERM) + ASN__ENCODE_FAILED; + + gt = asn_time2GT_frac(0, &tm, fv, fd, 1); + if(!gt) ASN__ENCODE_FAILED; + + rv = OCTET_STRING_encode_jer_utf8(td, sptr, ilevel, flags, + cb, app_key); + ASN_STRUCT_FREE(asn_DEF_GeneralizedTime, gt); + return rv; +} +#endif /* !defined(ASN___INTERNAL_TEST_MODE) */ diff --git a/asn.1/skeleton/GeneralizedTime_print.c b/asn.1/skeleton/GeneralizedTime_print.c new file mode 100644 index 00000000..fa9dff8f --- /dev/null +++ b/asn.1/skeleton/GeneralizedTime_print.c @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +#ifdef __CYGWIN__ +#include "/usr/include/time.h" +#else +#include +#endif /* __CYGWIN__ */ + +int +GeneralizedTime_print(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { + const GeneralizedTime_t *st = (const GeneralizedTime_t *)sptr; + + (void)td; /* Unused argument */ + (void)ilevel; /* Unused argument */ + + if(st && st->buf) { + char buf[32]; + struct tm tm; + int ret; + + errno = EPERM; + if(asn_GT2time(st, &tm, 1) == -1 && errno != EPERM) + return (cb("", 11, app_key) < 0) ? -1 : 0; + + ret = snprintf(buf, sizeof(buf), + "%04d-%02d-%02d %02d:%02d:%02d (GMT)", + tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, + tm.tm_hour, tm.tm_min, tm.tm_sec); + assert(ret > 0 && ret < (int)sizeof(buf)); + return (cb(buf, ret, app_key) < 0) ? -1 : 0; + } else { + return (cb("", 8, app_key) < 0) ? -1 : 0; + } +} diff --git a/asn.1/skeleton/GeneralizedTime_rfill.c b/asn.1/skeleton/GeneralizedTime_rfill.c new file mode 100644 index 00000000..51b6bcd9 --- /dev/null +++ b/asn.1/skeleton/GeneralizedTime_rfill.c @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_random_fill_result_t +GeneralizedTime_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, + const asn_encoding_constraints_t *constraints, + size_t max_length) { + asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; + asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; + asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; + static const char *values[] = { + "19700101000000", "19700101000000-0000", "19700101000000+0000", + "19700101000000Z", "19700101000000.3Z", "19821106210623.3", + "19821106210629.3Z", "19691106210827.3-0500", "19821106210629.456", + }; + size_t rnd = asn_random_between(0, sizeof(values)/sizeof(values[0])-1); + + (void)constraints; + + if(max_length < sizeof("yyyymmddhhmmss") && !*sptr) { + return result_skipped; + } + + if(*sptr) { + if(OCTET_STRING_fromBuf(*sptr, values[rnd], -1) != 0) { + if(!sptr) return result_failed; + } + } else { + *sptr = OCTET_STRING_new_fromBuf(td, values[rnd], -1); + if(!sptr) return result_failed; + } + + return result_ok; +} diff --git a/asn.1/skeleton/GeneralizedTime_xer.c b/asn.1/skeleton/GeneralizedTime_xer.c new file mode 100644 index 00000000..99dc3abc --- /dev/null +++ b/asn.1/skeleton/GeneralizedTime_xer.c @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +#ifdef __CYGWIN__ +#include "/usr/include/time.h" +#else +#include +#endif /* __CYGWIN__ */ + +#include + +#if !defined(ASN___INTERNAL_TEST_MODE) +asn_enc_rval_t +GeneralizedTime_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + if(flags & XER_F_CANONICAL) { + GeneralizedTime_t *gt; + asn_enc_rval_t rv; + int fv, fd; /* fractional parts */ + struct tm tm; + + errno = EPERM; + if(asn_GT2time_frac((const GeneralizedTime_t *)sptr, + &fv, &fd, &tm, 1) == -1 + && errno != EPERM) + ASN__ENCODE_FAILED; + + gt = asn_time2GT_frac(0, &tm, fv, fd, 1); + if(!gt) ASN__ENCODE_FAILED; + + rv = OCTET_STRING_encode_xer_utf8(td, sptr, ilevel, flags, + cb, app_key); + ASN_STRUCT_FREE(asn_DEF_GeneralizedTime, gt); + return rv; + } else { + return OCTET_STRING_encode_xer_utf8(td, sptr, ilevel, flags, + cb, app_key); + } +} +#endif /* !defined(ASN___INTERNAL_TEST_MODE) */ diff --git a/asn.1/skeleton/GraphicString.c b/asn.1/skeleton/GraphicString.c new file mode 100644 index 00000000..0f2fc39b --- /dev/null +++ b/asn.1/skeleton/GraphicString.c @@ -0,0 +1,94 @@ +/*- + * Copyright (c) 2003 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * GraphicString basic type description. + */ +static const ber_tlv_tag_t asn_DEF_GraphicString_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (25 << 2)), /* [UNIVERSAL 25] IMPLICIT ...*/ + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ +}; +asn_TYPE_operation_t asn_OP_GraphicString = { + OCTET_STRING_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + OCTET_STRING_print, /* non-ascii string */ +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + OCTET_STRING_compare, + OCTET_STRING_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + OCTET_STRING_decode_xer_hex, + OCTET_STRING_encode_xer, /* Can't expect it to be ASCII/UTF8 */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + OCTET_STRING_decode_jer_hex, + OCTET_STRING_encode_jer, /* Can't expect it to be ASCII/UTF8 */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + OCTET_STRING_decode_oer, + OCTET_STRING_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OCTET_STRING_decode_uper, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + OCTET_STRING_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_GraphicString = { + "GraphicString", + "GraphicString", + &asn_OP_GraphicString, + asn_DEF_GraphicString_tags, + sizeof(asn_DEF_GraphicString_tags) + / sizeof(asn_DEF_GraphicString_tags[0]) - 1, + asn_DEF_GraphicString_tags, + sizeof(asn_DEF_GraphicString_tags) + / sizeof(asn_DEF_GraphicString_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + asn_generic_unknown_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; diff --git a/asn.1/skeleton/GraphicString.h b/asn.1/skeleton/GraphicString.h new file mode 100644 index 00000000..9368e507 --- /dev/null +++ b/asn.1/skeleton/GraphicString.h @@ -0,0 +1,58 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _GraphicString_H_ +#define _GraphicString_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef OCTET_STRING_t GraphicString_t; /* Implemented via OCTET STRING */ + +extern asn_TYPE_descriptor_t asn_DEF_GraphicString; +extern asn_TYPE_operation_t asn_OP_GraphicString; + +#define GraphicString_free OCTET_STRING_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +#define GraphicString_print OCTET_STRING_print +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define GraphicString_compare OCTET_STRING_compare +#define GraphicString_copy OCTET_STRING_copy + +#define GraphicString_constraint asn_generic_unknown_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define GraphicString_decode_ber OCTET_STRING_decode_ber +#define GraphicString_encode_der OCTET_STRING_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#define GraphicString_decode_xer OCTET_STRING_decode_xer_hex +#define GraphicString_encode_xer OCTET_STRING_encode_xer +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +#define GraphicString_decode_jer OCTET_STRING_decode_jer +#define GraphicString_encode_jer OCTET_STRING_encode_jer +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#define GraphicString_decode_uper OCTET_STRING_decode_uper +#define GraphicString_encode_uper OCTET_STRING_encode_uper +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define GraphicString_decode_aper OCTET_STRING_decode_aper +#define GraphicString_encode_aper OCTET_STRING_encode_aper +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* _GraphicString_H_ */ diff --git a/asn.1/skeleton/IA5String.c b/asn.1/skeleton/IA5String.c new file mode 100644 index 00000000..5266f891 --- /dev/null +++ b/asn.1/skeleton/IA5String.c @@ -0,0 +1,136 @@ +/*- + * Copyright (c) 2003 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * IA5String basic type description. + */ +static const ber_tlv_tag_t asn_DEF_IA5String_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), /* [UNIVERSAL 22] IMPLICIT ...*/ + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ +}; +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_DEF_IA5String_per_constraints = { + { APC_CONSTRAINED, 7, 7, 0, 0x7f }, /* Value */ + { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 }, /* Size */ + 0, 0 +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_operation_t asn_OP_IA5String = { + OCTET_STRING_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + OCTET_STRING_print_utf8, /* ASCII subset */ +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + OCTET_STRING_compare, + OCTET_STRING_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + OCTET_STRING_decode_xer_utf8, + OCTET_STRING_encode_xer_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + OCTET_STRING_decode_jer_utf8, + OCTET_STRING_encode_jer_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + OCTET_STRING_decode_oer, + OCTET_STRING_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OCTET_STRING_decode_uper, + OCTET_STRING_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, + OCTET_STRING_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + OCTET_STRING_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_IA5String = { + "IA5String", + "IA5String", + &asn_OP_IA5String, + asn_DEF_IA5String_tags, + sizeof(asn_DEF_IA5String_tags) + / sizeof(asn_DEF_IA5String_tags[0]) - 1, + asn_DEF_IA5String_tags, + sizeof(asn_DEF_IA5String_tags) + / sizeof(asn_DEF_IA5String_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_DEF_IA5String_per_constraints, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + IA5String_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + +int +IA5String_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const IA5String_t *st = (const IA5String_t *)sptr; + + if(st && st->buf) { + uint8_t *buf = st->buf; + uint8_t *end = buf + st->size; + /* + * IA5String is generally equivalent to 7bit ASCII. + * ISO/ITU-T T.50, 1963. + */ + for(; buf < end; buf++) { + if(*buf > 0x7F) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value byte %ld out of range: " + "%d > 127 (%s:%d)", + td->name, + (long)((buf - st->buf) + 1), + *buf, + __FILE__, __LINE__); + return -1; + } + } + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + return 0; +} + diff --git a/asn.1/skeleton/IA5String.h b/asn.1/skeleton/IA5String.h new file mode 100644 index 00000000..0a408a52 --- /dev/null +++ b/asn.1/skeleton/IA5String.h @@ -0,0 +1,61 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _IA5String_H_ +#define _IA5String_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef OCTET_STRING_t IA5String_t; /* Implemented via OCTET STRING */ + +/* + * IA5String ASN.1 type definition. + */ +extern asn_TYPE_descriptor_t asn_DEF_IA5String; +extern asn_TYPE_operation_t asn_OP_IA5String; + +#define IA5String_free OCTET_STRING_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +#define IA5String_print OCTET_STRING_print_utf8 +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define IA5String_compare OCTET_STRING_compare +#define IA5String_copy OCTET_STRING_copy + +asn_constr_check_f IA5String_constraint; + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define IA5String_decode_ber OCTET_STRING_decode_ber +#define IA5String_encode_der OCTET_STRING_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#define IA5String_decode_xer OCTET_STRING_decode_xer_utf8 +#define IA5String_encode_xer OCTET_STRING_encode_xer_utf8 +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +#define IA5String_decode_jer OCTET_STRING_decode_jer_utf8 +#define IA5String_encode_jer OCTET_STRING_encode_jer_utf8 +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#define IA5String_decode_uper OCTET_STRING_decode_uper +#define IA5String_encode_uper OCTET_STRING_encode_uper +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define IA5String_decode_aper OCTET_STRING_decode_aper +#define IA5String_encode_aper OCTET_STRING_encode_aper +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* _IA5String_H_ */ diff --git a/asn.1/skeleton/INTEGER.c b/asn.1/skeleton/INTEGER.c new file mode 100644 index 00000000..e81cfb28 --- /dev/null +++ b/asn.1/skeleton/INTEGER.c @@ -0,0 +1,805 @@ +/* + * Copyright (c) 2003-2019 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include +#include + +/* + * INTEGER basic type description. + */ +static const ber_tlv_tag_t asn_DEF_INTEGER_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_operation_t asn_OP_INTEGER = { + INTEGER_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + INTEGER_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + INTEGER_compare, + INTEGER_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + ber_decode_primitive, + INTEGER_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + INTEGER_decode_xer, + INTEGER_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + INTEGER_decode_jer, + INTEGER_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + INTEGER_decode_oer, /* OER decoder */ + INTEGER_encode_oer, /* Canonical OER encoder */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + INTEGER_decode_uper, /* Unaligned PER decoder */ + INTEGER_encode_uper, /* Unaligned PER encoder */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + INTEGER_decode_aper, /* Aligned PER decoder */ + INTEGER_encode_aper, /* Aligned PER encoder */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + INTEGER_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ +0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_INTEGER = { + "INTEGER", + "INTEGER", + &asn_OP_INTEGER, + asn_DEF_INTEGER_tags, + sizeof(asn_DEF_INTEGER_tags) / sizeof(asn_DEF_INTEGER_tags[0]), + asn_DEF_INTEGER_tags, /* Same as above */ + sizeof(asn_DEF_INTEGER_tags) / sizeof(asn_DEF_INTEGER_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + asn_generic_no_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + +/* + * INTEGER specific human-readable output. + */ +ssize_t +INTEGER__dump(const asn_TYPE_descriptor_t *td, const INTEGER_t *st, asn_app_consume_bytes_f *cb, void *app_key, int plainOrXER) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + char scratch[32]; + uint8_t *buf = st->buf; + uint8_t *buf_end = st->buf + st->size; + intmax_t value = 0; + ssize_t wrote = 0; + char *p = NULL; + int ret = -1; + + if(specs && specs->field_unsigned) + ret = asn_INTEGER2umax(st, (uintmax_t *)&value); + else + ret = asn_INTEGER2imax(st, &value); + + /* Simple case: the integer size is small */ + if(ret == 0) { + const asn_INTEGER_enum_map_t *el; + el = (value >= 0 || !specs || !specs->field_unsigned) + ? INTEGER_map_value2enum(specs, value) : 0; + if(el) { + if(plainOrXER == 0) + return asn__format_to_callback(cb, app_key, + "%" ASN_PRIdMAX " (%s)", value, el->enum_name); + else + return asn__format_to_callback(cb, app_key, + "<%s/>", el->enum_name); + } else if(plainOrXER && specs && specs->strict_enumeration) { + ASN_DEBUG("ASN.1 forbids dealing with " + "unknown value of ENUMERATED type"); + errno = EPERM; + return -1; + } else { + return asn__format_to_callback(cb, app_key, + (specs && specs->field_unsigned) + ? "%" ASN_PRIuMAX + : "%" ASN_PRIdMAX, + value); + } + } else if(plainOrXER && specs && specs->strict_enumeration) { + /* + * Here and earlier, we cannot encode the ENUMERATED values + * if there is no corresponding identifier. + */ + ASN_DEBUG("ASN.1 forbids dealing with " + "unknown value of ENUMERATED type"); + errno = EPERM; + return -1; + } + + /* Output in the long xx:yy:zz... format */ + /* TODO: replace with generic algorithm (Knuth TAOCP Vol 2, 4.3.1) */ + for(p = scratch; buf < buf_end; buf++) { + const char * const h2c = "0123456789ABCDEF"; + if((p - scratch) >= (ssize_t)(sizeof(scratch) - 4)) { + /* Flush buffer */ + if(cb(scratch, p - scratch, app_key) < 0) + return -1; + wrote += p - scratch; + p = scratch; + } + *p++ = h2c[*buf >> 4]; + *p++ = h2c[*buf & 0x0F]; + *p++ = 0x3a; /* ":" */ + } + if(p != scratch) + p--; /* Remove the last ":" */ + + wrote += p - scratch; + return (cb(scratch, p - scratch, app_key) < 0) ? -1 : wrote; +} + +static int +INTEGER__compar_value2enum(const void *kp, const void *am) { + long a = *(const long *)kp; + const asn_INTEGER_enum_map_t *el = (const asn_INTEGER_enum_map_t *)am; + long b = el->nat_value; + if(a < b) return -1; + else if(a == b) return 0; + else return 1; +} + +const asn_INTEGER_enum_map_t * +INTEGER_map_value2enum(const asn_INTEGER_specifics_t *specs, long value) { + int count = specs ? specs->map_count : 0; + if(!count) return 0; + return (asn_INTEGER_enum_map_t *)bsearch(&value, specs->value2enum, + count, sizeof(specs->value2enum[0]), + INTEGER__compar_value2enum); +} + +static intmax_t +asn__integer_convert(const uint8_t *b, const uint8_t *end) { + uintmax_t value; + + /* Perform the sign initialization */ + /* Actually value = -(*b >> 7); gains nothing, yet unreadable! */ + if((*b >> 7)) { + value = (uintmax_t)(-1); + } else { + value = 0; + } + + /* Conversion engine */ + for(; b < end; b++) { + value = (value << 8) | *b; + } + + return value; +} + +int +asn_INTEGER2imax(const INTEGER_t *iptr, intmax_t *lptr) { + uint8_t *b, *end; + size_t size = 0; + + /* Sanity checking */ + if(!iptr || !iptr->buf || !lptr) { + errno = EINVAL; + return -1; + } + + /* Cache the begin/end of the buffer */ + b = iptr->buf; /* Start of the INTEGER buffer */ + size = iptr->size; + end = b + size; /* Where to stop */ + + if(size > sizeof(intmax_t)) { + uint8_t *end1 = end - 1; + /* + * Slightly more advanced processing, + * able to process INTEGERs with >sizeof(intmax_t) bytes + * when the actual value is small, e.g. for intmax_t == int32_t + * (0x0000000000abcdef INTEGER would yield a fine 0x00abcdef int32_t) + */ + /* Skip out the insignificant leading bytes */ + for(; b < end1; b++) { + switch(*b) { + case 0x00: if((b[1] & 0x80) == 0) continue; break; + case 0xff: if((b[1] & 0x80) != 0) continue; break; + } + break; + } + + size = end - b; + if(size > sizeof(intmax_t)) { + /* Still cannot fit the sizeof(intmax_t) */ + errno = ERANGE; + return -1; + } + } + + /* Shortcut processing of a corner case */ + if(end == b) { + *lptr = 0; + return 0; + } + + *lptr = asn__integer_convert(b, end); + return 0; +} + +/* FIXME: negative INTEGER values are silently interpreted as large unsigned ones. */ +int +asn_INTEGER2umax(const INTEGER_t *iptr, uintmax_t *lptr) { + uint8_t *b, *end; + uintmax_t value; + size_t size; + + if(!iptr || !iptr->buf || !lptr) { + errno = EINVAL; + return -1; + } + + b = iptr->buf; + size = iptr->size; + end = b + size; + + /* If all extra leading bytes are zeroes, ignore them */ + for(; size > sizeof(value); b++, size--) { + if(*b) { + /* Value won't fit into uintmax_t */ + errno = ERANGE; + return -1; + } + } + + /* Conversion engine */ + for(value = 0; b < end; b++) + value = (value << 8) | *b; + + *lptr = value; + return 0; +} + +int +asn_umax2INTEGER(INTEGER_t *st, uintmax_t value) { + uint8_t *buf; + uint8_t *end; + uint8_t *b; + int shr; + + if(value <= ((~(uintmax_t)0) >> 1)) { + return asn_imax2INTEGER(st, value); + } + + buf = (uint8_t *)MALLOC(1 + sizeof(value)); + if(!buf) return -1; + + end = buf + (sizeof(value) + 1); + buf[0] = 0; /* INTEGERs are signed. 0-byte indicates positive. */ + for(b = buf + 1, shr = (sizeof(value) - 1) * 8; b < end; shr -= 8, b++) + *b = (uint8_t)(value >> shr); + + if(st->buf) FREEMEM(st->buf); + st->buf = buf; + st->size = 1 + sizeof(value); + + return 0; +} + +int +asn_imax2INTEGER(INTEGER_t *st, intmax_t value) { + uint8_t *buf, *bp; + volatile uint8_t *p; + volatile uint8_t *pstart; + volatile uint8_t *pend1; + int littleEndian = 1; /* Run-time detection */ + volatile int add; + + if(!st) { + errno = EINVAL; + return -1; + } + + buf = (uint8_t *)(long *)MALLOC(sizeof(value)); + if(!buf) return -1; + + if(*(char *)&littleEndian) { + pstart = (uint8_t *)&value + sizeof(value) - 1; + pend1 = (uint8_t *)&value; + add = -1; + } else { + pstart = (uint8_t *)&value; + pend1 = pstart + sizeof(value) - 1; + add = 1; + } + + /* + * If the contents octet consists of more than one octet, + * then bits of the first octet and bit 8 of the second octet: + * a) shall not all be ones; and + * b) shall not all be zero. + */ + for(p = pstart; p != pend1; p += add) { + switch(*p) { + case 0x00: if((*(p+add) & 0x80) == 0) + continue; + break; + case 0xff: if((*(p+add) & 0x80)) + continue; + break; + } + break; + } + /* Copy the integer body */ + for(bp = buf, pend1 += add; p != pend1; p += add) + *bp++ = *p; + + if(st->buf) FREEMEM(st->buf); + st->buf = buf; + st->size = bp - buf; + + return 0; +} + +int +asn_INTEGER2long(const INTEGER_t *iptr, long *l) { + intmax_t v; + if(asn_INTEGER2imax(iptr, &v) == 0) { + if(v < LONG_MIN || v > LONG_MAX) { + errno = ERANGE; + return -1; + } + *l = v; + return 0; + } else { + return -1; + } +} + +int +asn_INTEGER2ulong(const INTEGER_t *iptr, unsigned long *l) { + uintmax_t v; + if(asn_INTEGER2umax(iptr, &v) == 0) { + if(v > ULONG_MAX) { + errno = ERANGE; + return -1; + } + *l = v; + return 0; + } else { + return -1; + } +} + +int +asn_long2INTEGER(INTEGER_t *st, long value) { + return asn_imax2INTEGER(st, value); +} + +int +asn_ulong2INTEGER(INTEGER_t *st, unsigned long value) { + return asn_imax2INTEGER(st, value); +} + +int asn_INTEGER2int64(const INTEGER_t *st, int64_t *value) { + intmax_t v; + if(asn_INTEGER2imax(st, &v) == 0) { + if(v < INT64_MIN || v > INT64_MAX) { + errno = ERANGE; + return -1; + } + *value = v; + return 0; + } else { + return -1; + } +} + +int asn_INTEGER2uint64(const INTEGER_t *st, uint64_t *value) { + uintmax_t v; + if(asn_INTEGER2umax(st, &v) == 0) { + if(v > UINT64_MAX) { + errno = ERANGE; + return -1; + } + *value = v; + return 0; + } else { + return -1; + } +} + +int +asn_uint642INTEGER(INTEGER_t *st, uint64_t value) { + uint8_t *buf; + uint8_t *end; + uint8_t *b; + int shr; + + if(value <= INT64_MAX) + return asn_int642INTEGER(st, value); + + buf = (uint8_t *)MALLOC(1 + sizeof(value)); + if(!buf) return -1; + + end = buf + (sizeof(value) + 1); + buf[0] = 0; + for(b = buf + 1, shr = (sizeof(value)-1)*8; b < end; shr -= 8, b++) + *b = (uint8_t)(value >> shr); + + if(st->buf) FREEMEM(st->buf); + st->buf = buf; + st->size = 1 + sizeof(value); + + return 0; +} + +int +asn_int642INTEGER(INTEGER_t *st, int64_t value) { + uint8_t *buf, *bp; + volatile uint8_t *p; + volatile uint8_t *pstart; + volatile uint8_t *pend1; + int littleEndian = 1; /* Run-time detection */ + volatile int add; + + if(!st) { + errno = EINVAL; + return -1; + } + + buf = (uint8_t *)MALLOC(sizeof(value)); + if(!buf) return -1; + + if(*(char *)&littleEndian) { + pstart = (uint8_t *)&value + sizeof(value) - 1; + pend1 = (uint8_t *)&value; + add = -1; + } else { + pstart = (uint8_t *)&value; + pend1 = pstart + sizeof(value) - 1; + add = 1; + } + + /* + * If the contents octet consists of more than one octet, + * then bits of the first octet and bit 8 of the second octet: + * a) shall not all be ones; and + * b) shall not all be zero. + */ + for(p = pstart; p != pend1; p += add) { + switch(*p) { + case 0x00: if((*(p+add) & 0x80) == 0) + continue; + break; + case 0xff: if((*(p+add) & 0x80)) + continue; + break; + } + break; + } + /* Copy the integer body */ + for(pstart = p, bp = buf, pend1 += add; p != pend1; p += add) + *bp++ = *p; + + if(st->buf) FREEMEM(st->buf); + st->buf = buf; + st->size = bp - buf; + + return 0; +} + +/* + * Parse the number in the given string until the given *end position, + * returning the position after the last parsed character back using the + * same (*end) pointer. + * WARNING: This behavior is different from the standard strtol/strtoimax(3). + */ +enum asn_strtox_result_e +asn_strtoimax_lim(const char *str, const char **end, intmax_t *intp) { + int sign = 1; + intmax_t value; + + const intmax_t asn1_intmax_max = ((~(uintmax_t)0) >> 1); + const intmax_t upper_boundary = asn1_intmax_max / 10; + intmax_t last_digit_max = asn1_intmax_max % 10; + + if(str >= *end) return ASN_STRTOX_ERROR_INVAL; + + switch(*str) { + case '-': + last_digit_max++; + sign = -1; + /* FALL THROUGH */ + case '+': + str++; + if(str >= *end) { + *end = str; + return ASN_STRTOX_EXPECT_MORE; + } + } + + for(value = 0; str < (*end); str++) { + if(*str >= 0x30 && *str <= 0x39) { + int d = *str - '0'; + if(value < upper_boundary) { + value = value * 10 + d; + } else if(value == upper_boundary) { + if(d <= last_digit_max) { + if(sign > 0) { + value = value * 10 + d; + } else { + sign = 1; + value = -value * 10 - d; + } + str += 1; + if(str < *end) { + // If digits continue, we're guaranteed out of range. + *end = str; + if(*str >= 0x30 && *str <= 0x39) { + return ASN_STRTOX_ERROR_RANGE; + } else { + *intp = sign * value; + return ASN_STRTOX_EXTRA_DATA; + } + } + break; + } else { + *end = str; + return ASN_STRTOX_ERROR_RANGE; + } + } else { + *end = str; + return ASN_STRTOX_ERROR_RANGE; + } + } else { + *end = str; + *intp = sign * value; + return ASN_STRTOX_EXTRA_DATA; + } + } + + *end = str; + *intp = sign * value; + return ASN_STRTOX_OK; +} + +/* + * Parse the number in the given string until the given *end position, + * returning the position after the last parsed character back using the + * same (*end) pointer. + * WARNING: This behavior is different from the standard strtoul/strtoumax(3). + */ +enum asn_strtox_result_e +asn_strtoumax_lim(const char *str, const char **end, uintmax_t *uintp) { + uintmax_t value; + + const uintmax_t asn1_uintmax_max = ((~(uintmax_t)0)); + const uintmax_t upper_boundary = asn1_uintmax_max / 10; + uintmax_t last_digit_max = asn1_uintmax_max % 10; + + if(str >= *end) return ASN_STRTOX_ERROR_INVAL; + + switch(*str) { + case '-': + return ASN_STRTOX_ERROR_INVAL; + case '+': + str++; + if(str >= *end) { + *end = str; + return ASN_STRTOX_EXPECT_MORE; + } + } + + for(value = 0; str < (*end); str++) { + if(*str >= 0x30 && *str <= 0x39) { + unsigned int d = *str - '0'; + if(value < upper_boundary) { + value = value * 10 + d; + } else if(value == upper_boundary) { + if(d <= last_digit_max) { + value = value * 10 + d; + str += 1; + if(str < *end) { + // If digits continue, we're guaranteed out of range. + *end = str; + if(*str >= 0x30 && *str <= 0x39) { + return ASN_STRTOX_ERROR_RANGE; + } else { + *uintp = value; + return ASN_STRTOX_EXTRA_DATA; + } + } + break; + } else { + *end = str; + return ASN_STRTOX_ERROR_RANGE; + } + } else { + *end = str; + return ASN_STRTOX_ERROR_RANGE; + } + } else { + *end = str; + *uintp = value; + return ASN_STRTOX_EXTRA_DATA; + } + } + + *end = str; + *uintp = value; + return ASN_STRTOX_OK; +} + +enum asn_strtox_result_e +asn_strtol_lim(const char *str, const char **end, long *lp) { + intmax_t value; + switch(asn_strtoimax_lim(str, end, &value)) { + case ASN_STRTOX_ERROR_RANGE: + return ASN_STRTOX_ERROR_RANGE; + case ASN_STRTOX_ERROR_INVAL: + return ASN_STRTOX_ERROR_INVAL; + case ASN_STRTOX_EXPECT_MORE: + return ASN_STRTOX_EXPECT_MORE; + case ASN_STRTOX_OK: + if(value >= LONG_MIN && value <= LONG_MAX) { + *lp = value; + return ASN_STRTOX_OK; + } else { + return ASN_STRTOX_ERROR_RANGE; + } + case ASN_STRTOX_EXTRA_DATA: + if(value >= LONG_MIN && value <= LONG_MAX) { + *lp = value; + return ASN_STRTOX_EXTRA_DATA; + } else { + return ASN_STRTOX_ERROR_RANGE; + } + } + + assert(!"Unreachable"); + return ASN_STRTOX_ERROR_INVAL; +} + +enum asn_strtox_result_e +asn_strtoul_lim(const char *str, const char **end, unsigned long *ulp) { + uintmax_t value; + switch(asn_strtoumax_lim(str, end, &value)) { + case ASN_STRTOX_ERROR_RANGE: + return ASN_STRTOX_ERROR_RANGE; + case ASN_STRTOX_ERROR_INVAL: + return ASN_STRTOX_ERROR_INVAL; + case ASN_STRTOX_EXPECT_MORE: + return ASN_STRTOX_EXPECT_MORE; + case ASN_STRTOX_OK: + if(value <= ULONG_MAX) { + *ulp = value; + return ASN_STRTOX_OK; + } else { + return ASN_STRTOX_ERROR_RANGE; + } + case ASN_STRTOX_EXTRA_DATA: + if(value <= ULONG_MAX) { + *ulp = value; + return ASN_STRTOX_EXTRA_DATA; + } else { + return ASN_STRTOX_ERROR_RANGE; + } + } + + assert(!"Unreachable"); + return ASN_STRTOX_ERROR_INVAL; +} + +int +INTEGER_compare(const asn_TYPE_descriptor_t *td, const void *aptr, + const void *bptr) { + const INTEGER_t *a = aptr; + const INTEGER_t *b = bptr; + + (void)td; + + if(a && b) { + if(a->size && b->size) { + int sign_a = (a->buf[0] & 0x80) ? -1 : 1; + int sign_b = (b->buf[0] & 0x80) ? -1 : 1; + + if(sign_a < sign_b) return -1; + if(sign_a > sign_b) return 1; + + /* The shortest integer wins, unless comparing negatives */ + if(a->size < b->size) { + return -1 * sign_a; + } else if(a->size > b->size) { + return 1 * sign_b; + } + + return sign_a * memcmp(a->buf, b->buf, a->size); + } else if(a->size) { + int sign = (a->buf[0] & 0x80) ? -1 : 1; + return (1) * sign; + } else if(b->size) { + int sign = (a->buf[0] & 0x80) ? -1 : 1; + return (-1) * sign; + } else { + return 0; + } + } else if(!a && !b) { + return 0; + } else if(!a) { + return -1; + } else { + return 1; + } + +} + +int +INTEGER_copy(const asn_TYPE_descriptor_t *td, void **aptr, + const void *bptr) { + (void)td; + INTEGER_t *a = *aptr; + const INTEGER_t *b = bptr; + + if(!b) { + if(a) { + FREEMEM(a->buf); + FREEMEM(a); + *aptr = 0; + } + return 0; + } + + if(!a) { + a = *aptr = CALLOC(1, sizeof(*a)); + if(!a) return -1; + } + + if(b->size) { + uint8_t* buf = MALLOC(b->size); + if(!buf) return -1; + memcpy(buf, b->buf, b->size); + FREEMEM(a->buf); + a->buf = buf; + a->size = b->size; + } else { + FREEMEM(a->buf); + a->buf = 0; + a->size = 0; + } + + return 0; +} diff --git a/asn.1/skeleton/INTEGER.h b/asn.1/skeleton/INTEGER.h new file mode 100644 index 00000000..5fa1c7b8 --- /dev/null +++ b/asn.1/skeleton/INTEGER.h @@ -0,0 +1,143 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _INTEGER_H_ +#define _INTEGER_H_ + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef ASN__PRIMITIVE_TYPE_t INTEGER_t; + +extern asn_TYPE_descriptor_t asn_DEF_INTEGER; +extern asn_TYPE_operation_t asn_OP_INTEGER; + +/* Map with to integer value association */ +typedef struct asn_INTEGER_enum_map_s { + long nat_value; /* associated native integer value */ + size_t enum_len; /* strlen("tag") */ + const char *enum_name; /* "tag" */ +} asn_INTEGER_enum_map_t; + +/* This type describes an enumeration for INTEGER and ENUMERATED types */ +typedef struct asn_INTEGER_specifics_s { + const asn_INTEGER_enum_map_t *value2enum; /* N -> "tag"; sorted by N */ + const unsigned int *enum2value; /* "tag" => N; sorted by tag */ + int map_count; /* Elements in either map */ + int extension; /* This map is extensible */ + int strict_enumeration; /* Enumeration set is fixed */ + int field_width; /* Size of native integer */ + int field_unsigned; /* Signed=0, unsigned=1 */ +} asn_INTEGER_specifics_t; + +ssize_t INTEGER__dump(const asn_TYPE_descriptor_t *td, + const INTEGER_t *st, + asn_app_consume_bytes_f *cb, + void *app_key, int plainOrXER); + +#define INTEGER_free ASN__PRIMITIVE_TYPE_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +asn_struct_print_f INTEGER_print; +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +asn_struct_compare_f INTEGER_compare; +asn_struct_copy_f INTEGER_copy; + +#define INTEGER_constraint asn_generic_no_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define INTEGER_decode_ber ber_decode_primitive +der_type_encoder_f INTEGER_encode_der; +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +xer_type_decoder_f INTEGER_decode_xer; +xer_type_encoder_f INTEGER_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +jer_type_decoder_f INTEGER_decode_jer; +jer_type_encoder_f INTEGER_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +oer_type_decoder_f INTEGER_decode_oer; +oer_type_encoder_f INTEGER_encode_oer; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +per_type_decoder_f INTEGER_decode_uper; +per_type_encoder_f INTEGER_encode_uper; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +per_type_decoder_f INTEGER_decode_aper; +per_type_encoder_f INTEGER_encode_aper; +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +asn_random_fill_f INTEGER_random_fill; +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +/*********************************** + * Some handy conversion routines. * + ***********************************/ + +/* + * Natiwe size-independent conversion of native integers to/from INTEGER. + * (l_size) is in bytes. + * Returns 0 if it was possible to convert, -1 otherwise. + * -1/EINVAL: Mandatory argument missing + * -1/ERANGE: Value encoded is out of range for long representation + * -1/ENOMEM: Memory allocation failed (in asn_*2INTEGER()). + */ +int asn_INTEGER2imax(const INTEGER_t *i, intmax_t *l); +int asn_INTEGER2umax(const INTEGER_t *i, uintmax_t *l); +int asn_imax2INTEGER(INTEGER_t *i, intmax_t l); +int asn_umax2INTEGER(INTEGER_t *i, uintmax_t l); + +/* + * Size-specific conversion helpers. + */ +int asn_INTEGER2long(const INTEGER_t *i, long *l); +int asn_INTEGER2ulong(const INTEGER_t *i, unsigned long *l); +int asn_long2INTEGER(INTEGER_t *i, long l); +int asn_ulong2INTEGER(INTEGER_t *i, unsigned long l); +int asn_INTEGER2int64(const INTEGER_t *i, int64_t *l); +int asn_INTEGER2uint64(const INTEGER_t *i, uint64_t *l); +int asn_int642INTEGER(INTEGER_t *i, int64_t l); +int asn_uint642INTEGER(INTEGER_t *i, uint64_t l); + +/* A version of strtol/strtoimax(3) with nicer error reporting. */ +enum asn_strtox_result_e { + ASN_STRTOX_ERROR_RANGE = -3, /* Input outside of supported numeric range */ + ASN_STRTOX_ERROR_INVAL = -2, /* Invalid data encountered (e.g., "+-") */ + ASN_STRTOX_EXPECT_MORE = -1, /* More data expected (e.g. "+") */ + ASN_STRTOX_OK = 0, /* Conversion succeeded, number ends at (*end) */ + ASN_STRTOX_EXTRA_DATA = 1 /* Conversion succeeded, but the string has extra stuff */ +}; +enum asn_strtox_result_e asn_strtol_lim(const char *str, const char **end, + long *l); +enum asn_strtox_result_e asn_strtoul_lim(const char *str, const char **end, + unsigned long *l); +enum asn_strtox_result_e asn_strtoimax_lim(const char *str, const char **end, + intmax_t *l); +enum asn_strtox_result_e asn_strtoumax_lim(const char *str, const char **end, + uintmax_t *l); + +/* + * Convert the integer value into the corresponding enumeration map entry. + */ +const asn_INTEGER_enum_map_t *INTEGER_map_value2enum( + const asn_INTEGER_specifics_t *specs, long value); + +#ifdef __cplusplus +} +#endif + +#endif /* _INTEGER_H_ */ diff --git a/asn.1/skeleton/INTEGER_aper.c b/asn.1/skeleton/INTEGER_aper.c new file mode 100644 index 00000000..2bfa96fb --- /dev/null +++ b/asn.1/skeleton/INTEGER_aper.c @@ -0,0 +1,308 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_dec_rval_t +INTEGER_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) { + const asn_INTEGER_specifics_t *specs = (const asn_INTEGER_specifics_t *)td->specifics; + asn_dec_rval_t rval = { RC_OK, 0 }; + INTEGER_t *st = (INTEGER_t *)*sptr; + const asn_per_constraint_t *ct; + int repeat; + + (void)opt_codec_ctx; + + if(!st) { + st = (INTEGER_t *)(*sptr = CALLOC(1, sizeof(*st))); + if(!st) ASN__DECODE_FAILED; + } + + if(!constraints) constraints = td->encoding_constraints.per_constraints; + ct = constraints ? &constraints->value : 0; + + if(ct && ct->flags & APC_EXTENSIBLE) { + int inext = per_get_few_bits(pd, 1); + if(inext < 0) ASN__DECODE_STARVED; + if(inext) ct = 0; + } + + FREEMEM(st->buf); + st->buf = 0; + st->size = 0; + if(ct) { + if(ct->flags & APC_SEMI_CONSTRAINED) { + st->buf = (uint8_t *)CALLOC(1, 2); + if(!st->buf) ASN__DECODE_FAILED; + st->size = 1; + } else if(ct->flags & APC_CONSTRAINED && ct->range_bits >= 0) { + size_t size = (ct->range_bits + 7) >> 3; + st->buf = (uint8_t *)MALLOC(1 + size + 1); + if(!st->buf) ASN__DECODE_FAILED; + st->size = size; + } + } + + /* X.691, #12.2.2 */ + if(ct && ct->flags != APC_UNCONSTRAINED) { + /* #10.5.6 */ + ASN_DEBUG("Integer with range %d bits", ct->range_bits); + if(ct->range_bits >= 0) { + if (ct->range_bits > 16) { + int max_range_bytes = (ct->range_bits >> 3) + + (((ct->range_bits % 8) > 0) ? 1 : 0); + int length = 0, i; + intmax_t value = 0; + + for (i = 1; ; i++) { + int upper = 1 << i; + if (upper >= max_range_bytes) + break; + } + ASN_DEBUG("Can encode %d (%d bytes) in %d bits", ct->range_bits, + max_range_bytes, i); + + if ((length = per_get_few_bits(pd, i)) < 0) + ASN__DECODE_FAILED; + + /* X.691 #12.2.6 length determinant + lb (1) */ + length += 1; + ASN_DEBUG("Got length %d", length); + if (aper_get_align(pd) != 0) + ASN__DECODE_FAILED; + while (length--) { + int buf = per_get_few_bits(pd, 8); + if (buf < 0) + ASN__DECODE_FAILED; + value += (((intmax_t)buf) << (8 * length)); + } + + value += ct->lower_bound; + if((specs && specs->field_unsigned) + ? asn_umax2INTEGER(st, (uintmax_t)value) + : asn_imax2INTEGER(st, value)) + ASN__DECODE_FAILED; + ASN_DEBUG("Got value %"ASN_PRIdMAX" + low %"ASN_PRIdMAX"", + value, (intmax_t)ct->lower_bound); + } else { + intmax_t value = 0; + if (ct->range_bits < 8) { + value = per_get_few_bits(pd, ct->range_bits); + if(value < 0) ASN__DECODE_STARVED; + } else if (ct->range_bits == 8) { + if (aper_get_align(pd) < 0) + ASN__DECODE_FAILED; + value = per_get_few_bits(pd, ct->range_bits); + if(value < 0) ASN__DECODE_STARVED; + } else { + /* Align */ + if (aper_get_align(pd) < 0) + ASN__DECODE_FAILED; + value = per_get_few_bits(pd, 16); + if(value < 0) ASN__DECODE_STARVED; + } + value += ct->lower_bound; + if((specs && specs->field_unsigned) + ? asn_umax2INTEGER(st, (uintmax_t)value) + : asn_imax2INTEGER(st, value)) + ASN__DECODE_FAILED; + ASN_DEBUG("Got value %"ASN_PRIdMAX" + low %"ASN_PRIdMAX"", + value, (intmax_t)ct->lower_bound); + } + return rval; + } else { + ASN__DECODE_FAILED; + } + } else { + ASN_DEBUG("Decoding unconstrained integer %s", td->name); + } + + /* X.691, #12.2.3, #12.2.4 */ + do { + ssize_t len; + void *p; + int ret; + + /* Get the PER length */ + len = aper_get_length(pd, -1, -1, -1, &repeat); + if(len < 0) ASN__DECODE_STARVED; + + p = REALLOC(st->buf, st->size + len + 1); + if(!p) ASN__DECODE_FAILED; + st->buf = (uint8_t *)p; + + ret = per_get_many_bits(pd, &st->buf[st->size], 0, 8 * len); + if(ret < 0) ASN__DECODE_STARVED; + st->size += len; + } while(repeat); + st->buf[st->size] = 0; /* JIC */ + + /* #12.2.3 */ + if(ct && ct->lower_bound) { + /* + * TODO: replace by in-place arithmetics. + */ + long value; + if(asn_INTEGER2long(st, &value)) + ASN__DECODE_FAILED; + if(asn_long2INTEGER(st, value + ct->lower_bound)) + ASN__DECODE_FAILED; + } + + return rval; +} + +asn_enc_rval_t +INTEGER_encode_aper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + const asn_INTEGER_specifics_t *specs = (const asn_INTEGER_specifics_t *)td->specifics; + asn_enc_rval_t er = {0,0,0}; + const INTEGER_t *st = (const INTEGER_t *)sptr; + const uint8_t *buf; + const uint8_t *end; + const asn_per_constraint_t *ct; + intmax_t value = 0; + + if(!st || st->size == 0) ASN__ENCODE_FAILED; + + if(!constraints) constraints = td->encoding_constraints.per_constraints; + ct = constraints ? &constraints->value : 0; + + er.encoded = 0; + + if(ct) { + int inext = 0; + if(specs && specs->field_unsigned) { + uintmax_t uval; + if(asn_INTEGER2umax(st, &uval)) + ASN__ENCODE_FAILED; + /* Check proper range */ + if(ct->flags & APC_SEMI_CONSTRAINED) { + if(uval < (uintmax_t)ct->lower_bound) + inext = 1; + } else if(ct->range_bits >= 0) { + if(uval < (uintmax_t)ct->lower_bound + || uval > (uintmax_t)ct->upper_bound) + inext = 1; + } + ASN_DEBUG("Value %"ASN_PRIdMAX" (%02x/%"ASN_PRI_SIZE") lb %"ASN_PRIdMAX" ub %"ASN_PRIdMAX" %s", + uval, st->buf[0], st->size, + (intmax_t)ct->lower_bound, + (intmax_t)ct->upper_bound, + inext ? "ext" : "fix"); + value = uval; + } else { + if(asn_INTEGER2imax(st, &value)) ASN__ENCODE_FAILED; + /* Check proper range */ + if(ct->flags & APC_SEMI_CONSTRAINED) { + if(value < ct->lower_bound) + inext = 1; + } else if(ct->range_bits >= 0) { + if(value < ct->lower_bound + || value > ct->upper_bound) + inext = 1; + } + ASN_DEBUG("Value %"ASN_PRIdMAX" (%02x/%"ASN_PRI_SIZE") lb %"ASN_PRIdMAX" ub %"ASN_PRIdMAX" %s", + value, st->buf[0], st->size, + (intmax_t)ct->lower_bound, + (intmax_t)ct->upper_bound, + inext ? "ext" : "fix"); + } + if(ct->flags & APC_EXTENSIBLE) { + if(per_put_few_bits(po, inext, 1)) + ASN__ENCODE_FAILED; + if(inext) ct = 0; + } else if(inext) { + ASN__ENCODE_FAILED; + } + } + + /* X.691, #12.2.2 */ + if(ct && ct->range_bits >= 0) { + uintmax_t v; + + /* #10.5.6 */ + ASN_DEBUG("Encoding integer %"ASN_PRIdMAX" (%"ASN_PRIdMAX") with range %d bits", + value, (intmax_t)(value - ct->lower_bound), + ct->range_bits); + + v = value - ct->lower_bound; + + /* #12 <= 8 -> alignment ? */ + int range = ct->upper_bound - ct->lower_bound + 1; + if (ct->range_bits < 8 || (ct->range_bits == 8 && range < 256)) { + if(per_put_few_bits(po, 0x00 | v, ct->range_bits)) + ASN__ENCODE_FAILED; + } else if (ct->range_bits == 8) { + if(aper_put_align(po) < 0) + ASN__ENCODE_FAILED; + if(per_put_few_bits(po, 0x00 | v, ct->range_bits)) + ASN__ENCODE_FAILED; + } else if (ct->range_bits <= 16) { + /* Consume the bytes to align on octet */ + if(aper_put_align(po) < 0) + ASN__ENCODE_FAILED; + if(per_put_few_bits(po, 0x0000 | v, 16)) + ASN__ENCODE_FAILED; + } else { + /* TODO: extend to >64 bits */ + int64_t v64 = v; + int i, j; + int max_range_bytes = (ct->range_bits >> 3) + + (((ct->range_bits % 8) > 0) ? 1 : 0); + + for (i = 1; ; i++) { + int upper = 1 << i; + if (upper >= max_range_bytes) + break; + } + + for (j = sizeof(int64_t) -1; j != 0; j--) { + int64_t val; + val = v64 >> (j * 8); + if (val != 0) + break; + } + + /* Putting length in the minimum number of bits ex: 5 = 3bits */ + if (per_put_few_bits(po, j, i)) + ASN__ENCODE_FAILED; + + /* Consume the bits to align on octet */ + if (aper_put_align(po) < 0) + ASN__ENCODE_FAILED; + /* Put the value */ + for (i = 0; i <= j; i++) { + if(per_put_few_bits(po, (v64 >> (8 * (j - i))) & 0xff, 8)) + ASN__ENCODE_FAILED; + } + } + ASN__ENCODED_OK(er); + } + + if(ct && ct->lower_bound) { + ASN_DEBUG("Adjust lower bound to %"ASN_PRIdMAX"", (intmax_t)ct->lower_bound); + /* TODO: adjust lower bound */ + ASN__ENCODE_FAILED; + } + + for(buf = st->buf, end = st->buf + st->size; buf < end;) { + int need_eom = 0; + ssize_t mayEncode = aper_put_length(po, -1, -1, end - buf, &need_eom); + if(mayEncode < 0) + ASN__ENCODE_FAILED; + if(per_put_many_bits(po, buf, 8 * mayEncode)) + ASN__ENCODE_FAILED; + buf += mayEncode; + if(need_eom && (aper_put_length(po, -1, -1, 0, NULL) < 0)) + ASN__ENCODE_FAILED; + } + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/INTEGER_ber.c b/asn.1/skeleton/INTEGER_ber.c new file mode 100644 index 00000000..57bfe1e1 --- /dev/null +++ b/asn.1/skeleton/INTEGER_ber.c @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Encode INTEGER type using DER. + */ +asn_enc_rval_t +INTEGER_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, + int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, + void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + asn_enc_rval_t rval; + INTEGER_t effective_integer; + + ASN_DEBUG("%s %s as INTEGER (tm=%d)", + cb?"Encoding":"Estimating", td->name, tag_mode); + + /* + * Canonicalize integer in the buffer. + * (Remove too long sign extension, remove some first 0x00 bytes) + */ + if(st->buf) { + uint8_t *buf = st->buf; + uint8_t *end1 = buf + st->size - 1; + int shift; + + /* Compute the number of superfluous leading bytes */ + for(; buf < end1; buf++) { + /* + * If the contents octets of an integer value encoding + * consist of more than one octet, then the bits of the + * first octet and bit 8 of the second octet: + * a) shall not all be ones; and + * b) shall not all be zero. + */ + switch(*buf) { + case 0x00: + if((buf[1] & 0x80) == 0) continue; + break; + case 0xff: + if((buf[1] & 0x80)) continue; + break; + } + break; + } + + /* Remove leading superfluous bytes from the integer */ + shift = buf - st->buf; + if(shift) { + union { + const uint8_t *c_buf; + uint8_t *nc_buf; + } unconst; + unconst.c_buf = st->buf; + effective_integer.buf = unconst.nc_buf + shift; + effective_integer.size = st->size - shift; + + st = &effective_integer; + } + } + + rval = der_encode_primitive(td, st, tag_mode, tag, cb, app_key); + if(rval.structure_ptr == &effective_integer) { + rval.structure_ptr = sptr; + } + return rval; +} diff --git a/asn.1/skeleton/INTEGER_jer.c b/asn.1/skeleton/INTEGER_jer.c new file mode 100644 index 00000000..053d9d68 --- /dev/null +++ b/asn.1/skeleton/INTEGER_jer.c @@ -0,0 +1,209 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +struct je2v_key { + const char *start; + const char *stop; + const asn_INTEGER_enum_map_t *vemap; + const unsigned int *evmap; +}; + +static int +INTEGER_jer_st_prealloc(INTEGER_t *st, int min_size) { + void *p = MALLOC(min_size + 1); + if(p) { + void *b = st->buf; + st->size = 0; + st->buf = p; + FREEMEM(b); + return 0; + } else { + return -1; + } +} +/* + * Decode the chunk of JSON text encoding INTEGER. + */ +static enum jer_pbd_rval +INTEGER__jer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, + const void *chunk_buf, size_t chunk_size) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + INTEGER_t *st = (INTEGER_t *)sptr; + intmax_t dec_value; + const char *lp; + const char *lstart = (const char *)chunk_buf; + const char *lstop = lstart + chunk_size; + enum { + ST_LEADSPACE, + ST_WAITDIGITS, + ST_DIGITS, + ST_ZERO, + ST_DIGITS_TRAILSPACE, + ST_UNEXPECTED + } state = ST_LEADSPACE; + const char *dec_value_start = 0; /* INVARIANT: always !0 in ST_DIGITS */ + const char *dec_value_end = 0; + + if(chunk_size) + ASN_DEBUG("INTEGER body %ld 0x%2x..0x%2x", + (long)chunk_size, *lstart, lstop[-1]); + + if(INTEGER_jer_st_prealloc(st, (chunk_size/3) + 1)) + return JPBD_SYSTEM_FAILURE; + + /* + * We may have received a tag here. It will be processed inline. + * Use strtoul()-like code and serialize the result. + */ + for(lp = lstart; lp < lstop; lp++) { + int lv = *lp; + switch(lv) { + case 0x09: case 0x0a: case 0x0d: case 0x20: + switch(state) { + case ST_LEADSPACE: + case ST_DIGITS_TRAILSPACE: + continue; + case ST_DIGITS: + case ST_ZERO: + dec_value_end = lp; + state = ST_DIGITS_TRAILSPACE; + continue; + default: + break; + } + break; + case 0x2d: /* '-' */ + if(state == ST_LEADSPACE) { + dec_value = 0; + dec_value_start = lp; + state = ST_WAITDIGITS; + continue; + } + break; + case 0x30: /* 0 */ + switch(state) { + case ST_DIGITS: continue; + case ST_LEADSPACE: + case ST_WAITDIGITS: + dec_value = 0; + dec_value_start = lp; + state = ST_ZERO; + continue; + case ST_ZERO: /* forbidden leading zero */ + return JPBD_BROKEN_ENCODING; + default: + break; + } + break; + /* [1-9] */ + case 0x31: case 0x32: case 0x33: case 0x34: + case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: + switch(state) { + case ST_DIGITS: continue; + case ST_LEADSPACE: + dec_value = 0; + dec_value_start = lp; + /* FALL THROUGH */ + case ST_WAITDIGITS: + state = ST_DIGITS; + continue; + case ST_ZERO: /* forbidden leading zero */ + return JPBD_BROKEN_ENCODING; + default: + break; + } + break; + } + + /* Found extra non-numeric stuff */ + ASN_DEBUG("INTEGER :: Found non-numeric 0x%2x at %ld", + lv, (long)(lp - lstart)); + state = ST_UNEXPECTED; + break; + } + + switch(state) { + case ST_DIGITS: + case ST_ZERO: + dec_value_end = lstop; + /* FALL THROUGH */ + case ST_DIGITS_TRAILSPACE: + /* The last symbol encountered was a digit. */ + switch(asn_strtoimax_lim(dec_value_start, &dec_value_end, &dec_value)) { + case ASN_STRTOX_OK: + if(specs && specs->field_unsigned && (uintmax_t) dec_value <= ULONG_MAX) { + break; + } else if(dec_value >= LONG_MIN && dec_value <= LONG_MAX) { + break; + } else { + /* + * We model INTEGER on long for JER, + * to avoid rewriting all the tests at once. + */ + ASN_DEBUG("INTEGER exceeds long range"); + } + /* Fall through */ + case ASN_STRTOX_ERROR_RANGE: + ASN_DEBUG("INTEGER decode %s hit range limit", td->name); + return JPBD_DECODER_LIMIT; + case ASN_STRTOX_ERROR_INVAL: + case ASN_STRTOX_EXPECT_MORE: + case ASN_STRTOX_EXTRA_DATA: + return JPBD_BROKEN_ENCODING; + } + break; + case ST_LEADSPACE: + /* Content not found */ + return JPBD_NOT_BODY_IGNORE; + case ST_WAITDIGITS: + case ST_UNEXPECTED: + ASN_DEBUG("INTEGER: No useful digits (state %d)", state); + return JPBD_BROKEN_ENCODING; /* No digits */ + } + + /* + * Convert the result of parsing of enumeration or a straight + * decimal value into a BER representation. + */ + if(asn_imax2INTEGER(st, dec_value)) { + ASN_DEBUG("INTEGER decode %s conversion failed", td->name); + return JPBD_SYSTEM_FAILURE; + } + + return JPBD_BODY_CONSUMED; +} + +asn_dec_rval_t +INTEGER_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const void *buf_ptr, size_t size) { + return jer_decode_primitive(opt_codec_ctx, td, + sptr, sizeof(INTEGER_t), + buf_ptr, size, INTEGER__jer_body_decode); +} + + +asn_enc_rval_t +INTEGER_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + asn_enc_rval_t er = {0,0,0}; + + (void)ilevel; + (void)flags; + + if(!st || !st->buf) + ASN__ENCODE_FAILED; + + er.encoded = INTEGER__dump(td, st, cb, app_key, 1); + if(er.encoded < 0) ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/INTEGER_oer.c b/asn.1/skeleton/INTEGER_oer.c new file mode 100644 index 00000000..19f276d5 --- /dev/null +++ b/asn.1/skeleton/INTEGER_oer.c @@ -0,0 +1,174 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_dec_rval_t +INTEGER_decode_oer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, void **sptr, + const void *ptr, size_t size) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + asn_dec_rval_t rval = {RC_OK, 0}; + INTEGER_t *st = (INTEGER_t *)*sptr; + struct asn_oer_constraint_number_s ct = {0, 0}; + size_t req_bytes; + + (void)opt_codec_ctx; + (void)specs; + + if(!st) { + st = (INTEGER_t *)(*sptr = CALLOC(1, sizeof(*st))); + if(!st) ASN__DECODE_FAILED; + } + + FREEMEM(st->buf); + st->buf = 0; + st->size = 0; + + if(!constraints) constraints = td->encoding_constraints.oer_constraints; + if(constraints) ct = constraints->value; + + if(ct.width) { + req_bytes = ct.width; + } else { + /* No lower bound and no upper bound, effectively */ + + ssize_t consumed = oer_fetch_length(ptr, size, &req_bytes); + if(consumed == 0) { + ASN__DECODE_STARVED; + } else if(consumed == -1) { + ASN__DECODE_FAILED; + } + rval.consumed += consumed; + ptr = (const char *)ptr + consumed; + size -= consumed; + } + + if(req_bytes > size) { + ASN__DECODE_STARVED; + } + + if(ct.positive) { + /* X.969 08/2015 10.2(a) */ + unsigned msb; /* Most significant bit */ + size_t useful_size; + + /* Check most significant bit */ + msb = *(const uint8_t *)ptr >> 7; /* yields 0 or 1 */ + useful_size = msb + req_bytes; + st->buf = (uint8_t *)MALLOC(useful_size + 1); + if(!st->buf) { + ASN__DECODE_FAILED; + } + + /* + * Record a large unsigned in a way not to confuse it + * with signed value. + */ + st->buf[0] = '\0'; + memcpy(st->buf + msb, ptr, req_bytes); + st->buf[useful_size] = '\0'; /* Just in case, 0-terminate */ + st->size = useful_size; + + rval.consumed += req_bytes; + return rval; + } else { + /* X.969 08/2015 10.2(b) */ + st->buf = (uint8_t *)MALLOC(req_bytes + 1); + if(!st->buf) { + ASN__DECODE_FAILED; + } + + memcpy(st->buf, ptr, req_bytes); + st->buf[req_bytes] = '\0'; /* Just in case, 0-terminate */ + st->size = req_bytes; + + rval.consumed += req_bytes; + return rval; + } +} + +/* + * Encode as Canonical OER. + */ +asn_enc_rval_t +INTEGER_encode_oer(const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, const void *sptr, + asn_app_consume_bytes_f *cb, void *app_key) { + const INTEGER_t *st = sptr; + asn_enc_rval_t er = {0,0,0}; + struct asn_oer_constraint_number_s ct = {0, 0}; + const uint8_t *buf; + const uint8_t *end; + size_t useful_bytes; + size_t req_bytes = 0; + int sign = 0; + + if(!st || st->size == 0) ASN__ENCODE_FAILED; + + if(!constraints) constraints = td->encoding_constraints.oer_constraints; + if(constraints) ct = constraints->value; + + er.encoded = 0; + + buf = st->buf; + end = buf + st->size; + + sign = (buf && buf < end) ? buf[0] & 0x80 : 0; + + /* Ignore 9 leading zeroes or ones */ + if(ct.positive) { + if(sign) { + /* The value given is a signed value. Can't proceed. */ + ASN__ENCODE_FAILED; + } + /* Remove leading zeros. */ + for(; buf + 1 < end; buf++) { + if(buf[0] != 0x0) break; + } + } else { + for(; buf + 1 < end; buf++) { + if(buf[0] == 0x0 && (buf[1] & 0x80) == 0) { + continue; + } else if(buf[0] == 0xff && (buf[1] & 0x80) != 0) { + continue; + } + break; + } + } + + useful_bytes = end - buf; + if(ct.width) { + req_bytes = ct.width; + } else { + ssize_t r = oer_serialize_length(useful_bytes, cb, app_key); + if(r < 0) { + ASN__ENCODE_FAILED; + } + er.encoded += r; + req_bytes = useful_bytes; + } + + if(req_bytes < useful_bytes) { + ASN__ENCODE_FAILED; + } + + er.encoded += req_bytes; + + for(; req_bytes > useful_bytes; req_bytes--) { + if(cb(sign?"\xff":"\0", 1, app_key) < 0) { + ASN__ENCODE_FAILED; + } + } + + if(cb(buf, useful_bytes, app_key) < 0) { + ASN__ENCODE_FAILED; + } + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/INTEGER_print.c b/asn.1/skeleton/INTEGER_print.c new file mode 100644 index 00000000..2d37dee0 --- /dev/null +++ b/asn.1/skeleton/INTEGER_print.c @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * INTEGER specific human-readable output. + */ +int +INTEGER_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + asn_app_consume_bytes_f *cb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + ssize_t ret; + + (void)ilevel; + + if(!st || !st->buf) + ret = cb("", 8, app_key); + else + ret = INTEGER__dump(td, st, cb, app_key, 0); + + return (ret < 0) ? -1 : 0; +} diff --git a/asn.1/skeleton/INTEGER_rfill.c b/asn.1/skeleton/INTEGER_rfill.c new file mode 100644 index 00000000..fab00238 --- /dev/null +++ b/asn.1/skeleton/INTEGER_rfill.c @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_random_fill_result_t +INTEGER_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, + const asn_encoding_constraints_t *constraints, + size_t max_length) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; + asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; + asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; + INTEGER_t *st = *sptr; + const asn_INTEGER_enum_map_t *emap; + size_t emap_len; + intmax_t value; + int find_inside_map; + + if(max_length == 0) return result_skipped; + + if(st == NULL) { + st = (INTEGER_t *)CALLOC(1, sizeof(*st)); + if(st == NULL) { + return result_failed; + } + } + + if(specs) { + emap = specs->value2enum; + emap_len = specs->map_count; + if(specs->strict_enumeration) { + find_inside_map = emap_len > 0; + } else { + find_inside_map = emap_len ? asn_random_between(0, 1) : 0; + } + } else { + emap = 0; + emap_len = 0; + find_inside_map = 0; + } + + if(find_inside_map) { + assert(emap_len > 0); + value = emap[asn_random_between(0, emap_len - 1)].nat_value; + } else { + static const long variants[] = { + -65536, -65535, -65534, -32769, -32768, -32767, -16385, -16384, + -16383, -257, -256, -255, -254, -129, -128, -127, + -126, -1, 0, 1, 126, 127, 128, 129, + 254, 255, 256, 257, 16383, 16384, 16385, 32767, + 32768, 32769, 65534, 65535, 65536, 65537}; + if(specs && specs->field_unsigned) { + assert(variants[18] == 0); + value = variants[asn_random_between( + 18, sizeof(variants) / sizeof(variants[0]) - 1)]; + } else { + value = variants[asn_random_between( + 0, sizeof(variants) / sizeof(variants[0]) - 1)]; + } + + if(!constraints) constraints = &td->encoding_constraints; +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + const asn_per_constraints_t *ct; + + ct = constraints ? constraints->per_constraints : 0; + if(ct && (ct->value.flags & APC_CONSTRAINED)) { + if(value < ct->value.lower_bound || value > ct->value.upper_bound) { + value = asn_random_between(ct->value.lower_bound, + ct->value.upper_bound); + } + } +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + } + + if(asn_imax2INTEGER(st, value)) { + if(st == *sptr) { + ASN_STRUCT_RESET(*td, st); + } else { + ASN_STRUCT_FREE(*td, st); + } + return result_failed; + } else { + *sptr = st; + result_ok.length = st->size; + return result_ok; + } +} diff --git a/asn.1/skeleton/INTEGER_uper.c b/asn.1/skeleton/INTEGER_uper.c new file mode 100644 index 00000000..f8eb0ab0 --- /dev/null +++ b/asn.1/skeleton/INTEGER_uper.c @@ -0,0 +1,236 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_dec_rval_t +INTEGER_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, + asn_per_data_t *pd) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + asn_dec_rval_t rval = { RC_OK, 0 }; + INTEGER_t *st = (INTEGER_t *)*sptr; + const asn_per_constraint_t *ct; + int repeat; + + (void)opt_codec_ctx; + + if(!st) { + st = (INTEGER_t *)(*sptr = CALLOC(1, sizeof(*st))); + if(!st) ASN__DECODE_FAILED; + } + + if(!constraints) constraints = td->encoding_constraints.per_constraints; + ct = constraints ? &constraints->value : 0; + + if(ct && ct->flags & APC_EXTENSIBLE) { + int inext = per_get_few_bits(pd, 1); + if(inext < 0) ASN__DECODE_STARVED; + if(inext) ct = 0; + } + + FREEMEM(st->buf); + st->buf = 0; + st->size = 0; + if(ct) { + if(ct->flags & APC_SEMI_CONSTRAINED) { + st->buf = (uint8_t *)CALLOC(1, 2); + if(!st->buf) ASN__DECODE_FAILED; + st->size = 1; + } else if(ct->flags & APC_CONSTRAINED && ct->range_bits >= 0) { + size_t size = (ct->range_bits + 7) >> 3; + st->buf = (uint8_t *)MALLOC(1 + size + 1); + if(!st->buf) ASN__DECODE_FAILED; + st->size = size; + } + } + + /* X.691-2008/11, #13.2.2, constrained whole number */ + if(ct && ct->flags != APC_UNCONSTRAINED) { + /* #11.5.6 */ + ASN_DEBUG("Integer with range %d bits", ct->range_bits); + if(ct->range_bits >= 0) { + if((size_t)ct->range_bits > 8 * sizeof(uintmax_t)) + ASN__DECODE_FAILED; + + if(specs && specs->field_unsigned) { + uintmax_t uvalue = 0; + if(uper_get_constrained_whole_number(pd, + &uvalue, ct->range_bits)) + ASN__DECODE_STARVED; + ASN_DEBUG("Got value %"ASN_PRIuMAX" + low %"ASN_PRIdMAX"", + uvalue, ct->lower_bound); + uvalue += ct->lower_bound; + if(asn_umax2INTEGER(st, uvalue)) + ASN__DECODE_FAILED; + } else { + uintmax_t uvalue = 0; + intmax_t svalue; + if(uper_get_constrained_whole_number(pd, + &uvalue, ct->range_bits)) + ASN__DECODE_STARVED; + ASN_DEBUG("Got value %"ASN_PRIuMAX" + low %"ASN_PRIdMAX"", + uvalue, ct->lower_bound); + if(per_imax_range_unrebase(uvalue, ct->lower_bound, + ct->upper_bound, &svalue) + || asn_imax2INTEGER(st, svalue)) { + ASN__DECODE_FAILED; + } + } + return rval; + } + } else { + ASN_DEBUG("Decoding unconstrained integer %s", td->name); + } + + /* X.691, #12.2.3, #12.2.4 */ + do { + ssize_t len = 0; + void *p = NULL; + int ret = 0; + + /* Get the PER length */ + len = uper_get_length(pd, -1, 0, &repeat); + if(len < 0) ASN__DECODE_STARVED; + + p = REALLOC(st->buf, st->size + len + 1); + if(!p) ASN__DECODE_FAILED; + st->buf = (uint8_t *)p; + + ret = per_get_many_bits(pd, &st->buf[st->size], 0, 8 * len); + if(ret < 0) ASN__DECODE_STARVED; + st->size += len; + } while(repeat); + st->buf[st->size] = 0; /* JIC */ + + /* #12.2.3 */ + if(ct && ct->lower_bound) { + /* + * TODO: replace by in-place arithmetic. + */ + long value = 0; + if(asn_INTEGER2long(st, &value)) + ASN__DECODE_FAILED; + if(asn_imax2INTEGER(st, value + ct->lower_bound)) + ASN__DECODE_FAILED; + } + + return rval; +} + +asn_enc_rval_t +INTEGER_encode_uper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, const void *sptr, + asn_per_outp_t *po) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + asn_enc_rval_t er = {0,0,0}; + const INTEGER_t *st = (const INTEGER_t *)sptr; + const uint8_t *buf; + const uint8_t *end; + const asn_per_constraint_t *ct; + union { + intmax_t s; + uintmax_t u; + } value; + + if(!st || st->size == 0) ASN__ENCODE_FAILED; + + if(!constraints) constraints = td->encoding_constraints.per_constraints; + ct = constraints ? &constraints->value : 0; + + er.encoded = 0; + + if(ct) { + int inext = 0; + if(specs && specs->field_unsigned) { + if(asn_INTEGER2umax(st, &value.u)) + ASN__ENCODE_FAILED; + /* Check proper range */ + if(ct->flags & APC_SEMI_CONSTRAINED) { + if(value.u < (uintmax_t)ct->lower_bound) + inext = 1; + } else if(ct->range_bits >= 0) { + if(value.u < (uintmax_t)ct->lower_bound + || value.u > (uintmax_t)ct->upper_bound) + inext = 1; + } + ASN_DEBUG("Value %"ASN_PRIuMAX" (%02x/%" ASN_PRI_SIZE ") lb %"ASN_PRIuMAX" ub %"ASN_PRIuMAX" %s", + value.u, st->buf[0], st->size, + (uintmax_t)ct->lower_bound, (uintmax_t)ct->upper_bound, + inext ? "ext" : "fix"); + } else { + if(asn_INTEGER2imax(st, &value.s)) + ASN__ENCODE_FAILED; + /* Check proper range */ + if(ct->flags & APC_SEMI_CONSTRAINED) { + if(value.s < ct->lower_bound) + inext = 1; + } else if(ct->range_bits >= 0) { + if(value.s < ct->lower_bound + || value.s > ct->upper_bound) + inext = 1; + } + ASN_DEBUG("Value %"ASN_PRIdMAX" (%02x/%" ASN_PRI_SIZE ") lb %"ASN_PRIdMAX" ub %"ASN_PRIdMAX" %s", + value.s, st->buf[0], st->size, + ct->lower_bound, ct->upper_bound, + inext ? "ext" : "fix"); + } + if(ct->flags & APC_EXTENSIBLE) { + if(per_put_few_bits(po, inext, 1)) + ASN__ENCODE_FAILED; + if(inext) ct = 0; + } else if(inext) { + ASN__ENCODE_FAILED; + } + } + + /* X.691-11/2008, #13.2.2, test if constrained whole number */ + if(ct && ct->range_bits >= 0) { + uintmax_t v; + /* #11.5.6 -> #11.3 */ + if(specs && specs->field_unsigned) { + if(((uintmax_t)ct->lower_bound > (uintmax_t)(ct->upper_bound) + || (value.u < (uintmax_t)ct->lower_bound)) + || (value.u > (uintmax_t)ct->upper_bound)) { + ASN_DEBUG("Value %"ASN_PRIuMAX" to-be-encoded is outside the bounds [%"ASN_PRIuMAX", %"ASN_PRIuMAX"]!", + value.u, (uintmax_t)ct->lower_bound, (uintmax_t)ct->upper_bound); + ASN__ENCODE_FAILED; + } + v = value.u - (uintmax_t)ct->lower_bound; + } else { + if(per_imax_range_rebase(value.s, ct->lower_bound, ct->upper_bound, &v)) { + ASN__ENCODE_FAILED; + } + } + ASN_DEBUG("Encoding integer %"ASN_PRIuMAX" with range %d bits", + v, ct->range_bits); + if(uper_put_constrained_whole_number_u(po, v, ct->range_bits)) + ASN__ENCODE_FAILED; + ASN__ENCODED_OK(er); + } + + if(ct && ct->lower_bound) { + ASN_DEBUG("Adjust lower bound to %"ASN_PRIdMAX"", ct->lower_bound); + /* TODO: adjust lower bound */ + ASN__ENCODE_FAILED; + } + + for(buf = st->buf, end = st->buf + st->size; buf < end;) { + int need_eom = 0; + ssize_t mayEncode = uper_put_length(po, end - buf, &need_eom); + if(mayEncode < 0) + ASN__ENCODE_FAILED; + if(per_put_many_bits(po, buf, 8 * mayEncode)) + ASN__ENCODE_FAILED; + buf += mayEncode; + if(need_eom && uper_put_length(po, 0, 0)) ASN__ENCODE_FAILED; + } + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/INTEGER_xer.c b/asn.1/skeleton/INTEGER_xer.c new file mode 100644 index 00000000..4f21c86a --- /dev/null +++ b/asn.1/skeleton/INTEGER_xer.c @@ -0,0 +1,351 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +struct e2v_key { + const char *start; + const char *stop; + const asn_INTEGER_enum_map_t *vemap; + const unsigned int *evmap; +}; +static int +INTEGER__compar_enum2value(const void *kp, const void *am) { + const struct e2v_key *key = (const struct e2v_key *)kp; + const asn_INTEGER_enum_map_t *el = (const asn_INTEGER_enum_map_t *)am; + const char *ptr, *end, *name; + + /* Remap the element (sort by different criterion) */ + el = key->vemap + key->evmap[el - key->vemap]; + + /* Compare strings */ + for(ptr = key->start, end = key->stop, name = el->enum_name; + ptr < end; ptr++, name++) { + if(*ptr != *name || !*name) + return *(const unsigned char *)ptr - *(const unsigned char *)name; + } + return name[0] ? -1 : 0; +} + +static const asn_INTEGER_enum_map_t * +INTEGER_map_enum2value(const asn_INTEGER_specifics_t *specs, const char *lstart, + const char *lstop) { + const asn_INTEGER_enum_map_t *el_found; + int count = specs ? specs->map_count : 0; + struct e2v_key key; + const char *lp; + + if(!count) return NULL; + + /* Guaranteed: assert(lstart < lstop); */ + /* Figure out the tag name */ + for(lstart++, lp = lstart; lp < lstop; lp++) { + switch(*lp) { + case 9: case 10: case 11: case 12: case 13: case 32: /* WSP */ + case 0x2f: /* '/' */ case 0x3e: /* '>' */ + break; + default: + continue; + } + break; + } + if(lp == lstop) return NULL; /* No tag found */ + lstop = lp; + + key.start = lstart; + key.stop = lstop; + key.vemap = specs->value2enum; + key.evmap = specs->enum2value; + el_found = (asn_INTEGER_enum_map_t *)bsearch(&key, + specs->value2enum, count, sizeof(specs->value2enum[0]), + INTEGER__compar_enum2value); + if(el_found) { + /* Remap enum2value into value2enum */ + el_found = key.vemap + key.evmap[el_found - key.vemap]; + } + return el_found; +} + +static int +INTEGER_st_prealloc(INTEGER_t *st, int min_size) { + void *p = MALLOC(min_size + 1); + if(p) { + void *b = st->buf; + st->size = 0; + st->buf = p; + FREEMEM(b); + return 0; + } else { + return -1; + } +} + +/* + * Decode the chunk of XML text encoding INTEGER. + */ +static enum xer_pbd_rval +INTEGER__xer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, + const void *chunk_buf, size_t chunk_size) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + INTEGER_t *st = (INTEGER_t *)sptr; + intmax_t dec_value; + intmax_t hex_value = 0; + const char *lp; + const char *lstart = (const char *)chunk_buf; + const char *lstop = lstart + chunk_size; + enum { + ST_LEADSPACE, + ST_SKIPSPHEX, + ST_WAITDIGITS, + ST_DIGITS, + ST_DIGITS_TRAILSPACE, + ST_HEXDIGIT1, + ST_HEXDIGIT2, + ST_HEXDIGITS_TRAILSPACE, + ST_HEXCOLON, + ST_END_ENUM, + ST_UNEXPECTED + } state = ST_LEADSPACE; + const char *dec_value_start = 0; /* INVARIANT: always !0 in ST_DIGITS */ + const char *dec_value_end = 0; + + if(chunk_size) + ASN_DEBUG("INTEGER body %ld 0x%2x..0x%2x", + (long)chunk_size, *lstart, lstop[-1]); + + if(INTEGER_st_prealloc(st, (chunk_size/3) + 1)) + return XPBD_SYSTEM_FAILURE; + + /* + * We may have received a tag here. It will be processed inline. + * Use strtoul()-like code and serialize the result. + */ + for(lp = lstart; lp < lstop; lp++) { + int lv = *lp; + switch(lv) { + case 0x09: case 0x0a: case 0x0d: case 0x20: + switch(state) { + case ST_LEADSPACE: + case ST_DIGITS_TRAILSPACE: + case ST_HEXDIGITS_TRAILSPACE: + case ST_SKIPSPHEX: + continue; + case ST_DIGITS: + dec_value_end = lp; + state = ST_DIGITS_TRAILSPACE; + continue; + case ST_HEXCOLON: + state = ST_HEXDIGITS_TRAILSPACE; + continue; + default: + break; + } + break; + case 0x2d: /* '-' */ + if(state == ST_LEADSPACE) { + dec_value = 0; + dec_value_start = lp; + state = ST_WAITDIGITS; + continue; + } + break; + case 0x2b: /* '+' */ + if(state == ST_LEADSPACE) { + dec_value = 0; + dec_value_start = lp; + state = ST_WAITDIGITS; + continue; + } + break; + case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: + case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: + switch(state) { + case ST_DIGITS: continue; + case ST_SKIPSPHEX: /* Fall through */ + case ST_HEXDIGIT1: + hex_value = (lv - 0x30) << 4; + state = ST_HEXDIGIT2; + continue; + case ST_HEXDIGIT2: + hex_value += (lv - 0x30); + state = ST_HEXCOLON; + st->buf[st->size++] = (uint8_t)hex_value; + continue; + case ST_HEXCOLON: + return XPBD_BROKEN_ENCODING; + case ST_LEADSPACE: + dec_value = 0; + dec_value_start = lp; + /* FALL THROUGH */ + case ST_WAITDIGITS: + state = ST_DIGITS; + continue; + default: + break; + } + break; + case 0x3c: /* '<', start of XML encoded enumeration */ + if(state == ST_LEADSPACE) { + const asn_INTEGER_enum_map_t *el; + el = INTEGER_map_enum2value( + (const asn_INTEGER_specifics_t *) + td->specifics, lstart, lstop); + if(el) { + ASN_DEBUG("Found \"%s\" => %ld", + el->enum_name, el->nat_value); + dec_value = el->nat_value; + state = ST_END_ENUM; + lp = lstop - 1; + continue; + } + ASN_DEBUG("Unknown identifier for INTEGER"); + } + return XPBD_BROKEN_ENCODING; + case 0x3a: /* ':' */ + if(state == ST_HEXCOLON) { + /* This colon is expected */ + state = ST_HEXDIGIT1; + continue; + } else if(state == ST_DIGITS) { + /* The colon here means that we have + * decoded the first two hexadecimal + * places as a decimal value. + * Switch decoding mode. */ + ASN_DEBUG("INTEGER re-evaluate as hex form"); + state = ST_SKIPSPHEX; + dec_value_start = 0; + lp = lstart - 1; + continue; + } else { + ASN_DEBUG("state %d at %ld", state, (long)(lp - lstart)); + break; + } + /* [A-Fa-f] */ + case 0x41:case 0x42:case 0x43:case 0x44:case 0x45:case 0x46: + case 0x61:case 0x62:case 0x63:case 0x64:case 0x65:case 0x66: + switch(state) { + case ST_SKIPSPHEX: + case ST_LEADSPACE: /* Fall through */ + case ST_HEXDIGIT1: + hex_value = lv - ((lv < 0x61) ? 0x41 : 0x61); + hex_value += 10; + hex_value <<= 4; + state = ST_HEXDIGIT2; + continue; + case ST_HEXDIGIT2: + hex_value += lv - ((lv < 0x61) ? 0x41 : 0x61); + hex_value += 10; + st->buf[st->size++] = (uint8_t)hex_value; + state = ST_HEXCOLON; + continue; + case ST_DIGITS: + ASN_DEBUG("INTEGER re-evaluate as hex form"); + state = ST_SKIPSPHEX; + dec_value_start = 0; + lp = lstart - 1; + continue; + default: + break; + } + break; + } + + /* Found extra non-numeric stuff */ + ASN_DEBUG("INTEGER :: Found non-numeric 0x%2x at %ld", + lv, (long)(lp - lstart)); + state = ST_UNEXPECTED; + break; + } + + switch(state) { + case ST_END_ENUM: + /* Got a complete and valid enumeration encoded as a tag. */ + break; + case ST_DIGITS: + dec_value_end = lstop; + /* FALL THROUGH */ + case ST_DIGITS_TRAILSPACE: + /* The last symbol encountered was a digit. */ + switch(asn_strtoimax_lim(dec_value_start, &dec_value_end, &dec_value)) { + case ASN_STRTOX_OK: + if(specs && specs->field_unsigned && (uintmax_t) dec_value <= ULONG_MAX) { + break; + } else if(dec_value >= LONG_MIN && dec_value <= LONG_MAX) { + break; + } else { + /* + * We model INTEGER on long for XER, + * to avoid rewriting all the tests at once. + */ + ASN_DEBUG("INTEGER exceeds long range"); + } + /* Fall through */ + case ASN_STRTOX_ERROR_RANGE: + ASN_DEBUG("INTEGER decode %s hit range limit", td->name); + return XPBD_DECODER_LIMIT; + case ASN_STRTOX_ERROR_INVAL: + case ASN_STRTOX_EXPECT_MORE: + case ASN_STRTOX_EXTRA_DATA: + return XPBD_BROKEN_ENCODING; + } + break; + case ST_HEXCOLON: + case ST_HEXDIGITS_TRAILSPACE: + st->buf[st->size] = 0; /* Just in case termination */ + return XPBD_BODY_CONSUMED; + case ST_HEXDIGIT1: + case ST_HEXDIGIT2: + case ST_SKIPSPHEX: + return XPBD_BROKEN_ENCODING; + case ST_LEADSPACE: + /* Content not found */ + return XPBD_NOT_BODY_IGNORE; + case ST_WAITDIGITS: + case ST_UNEXPECTED: + ASN_DEBUG("INTEGER: No useful digits (state %d)", state); + return XPBD_BROKEN_ENCODING; /* No digits */ + } + + /* + * Convert the result of parsing of enumeration or a straight + * decimal value into a BER representation. + */ + if(asn_imax2INTEGER(st, dec_value)) { + ASN_DEBUG("INTEGER decode %s conversion failed", td->name); + return XPBD_SYSTEM_FAILURE; + } + + return XPBD_BODY_CONSUMED; +} + +asn_dec_rval_t +INTEGER_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, size_t size) { + return xer_decode_primitive(opt_codec_ctx, td, + sptr, sizeof(INTEGER_t), opt_mname, + buf_ptr, size, INTEGER__xer_body_decode); +} + +asn_enc_rval_t +INTEGER_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + asn_enc_rval_t er = {0,0,0}; + + (void)ilevel; + (void)flags; + + if(!st || !st->buf) + ASN__ENCODE_FAILED; + + er.encoded = INTEGER__dump(td, st, cb, app_key, 1); + if(er.encoded < 0) ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/ISO646String.c b/asn.1/skeleton/ISO646String.c new file mode 100644 index 00000000..b5eeb78f --- /dev/null +++ b/asn.1/skeleton/ISO646String.c @@ -0,0 +1,101 @@ +/*- + * Copyright (c) 2003, 2004 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * ISO646String basic type description. + */ +static const ber_tlv_tag_t asn_DEF_ISO646String_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), /* [UNIVERSAL 26] IMPLICIT ...*/ + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ +}; +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_DEF_ISO646String_per_constraints = { + { APC_CONSTRAINED, 7, 7, 0x20, 0x7e }, /* Value */ + { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 }, /* Size */ + 0, 0 +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_operation_t asn_OP_ISO646String = { + OCTET_STRING_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + OCTET_STRING_print_utf8, /* ASCII subset */ +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + OCTET_STRING_compare, + OCTET_STRING_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + OCTET_STRING_decode_xer_utf8, + OCTET_STRING_encode_xer_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + OCTET_STRING_decode_jer_utf8, + OCTET_STRING_encode_jer_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + OCTET_STRING_decode_oer, + OCTET_STRING_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OCTET_STRING_decode_uper, + OCTET_STRING_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, + OCTET_STRING_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + OCTET_STRING_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_ISO646String = { + "ISO646String", + "ISO646String", + &asn_OP_ISO646String, + asn_DEF_ISO646String_tags, + sizeof(asn_DEF_ISO646String_tags) + / sizeof(asn_DEF_ISO646String_tags[0]) - 1, + asn_DEF_ISO646String_tags, + sizeof(asn_DEF_ISO646String_tags) + / sizeof(asn_DEF_ISO646String_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_DEF_ISO646String_per_constraints, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + ISO646String_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; diff --git a/asn.1/skeleton/ISO646String.h b/asn.1/skeleton/ISO646String.h new file mode 100644 index 00000000..76382d71 --- /dev/null +++ b/asn.1/skeleton/ISO646String.h @@ -0,0 +1,68 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _ISO646String_H_ +#define _ISO646String_H_ + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef VisibleString_t ISO646String_t; /* Implemented using VisibleString */ + +extern asn_TYPE_descriptor_t asn_DEF_ISO646String; +extern asn_TYPE_operation_t asn_OP_ISO646String; + +#define ISO646String_free OCTET_STRING_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +#define ISO646String_print OCTET_STRING_print_utf8 +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define ISO646String_compare OCTET_STRING_compare +#define ISO646String_copy OCTET_STRING_copy + +#define ISO646String_constraint VisibleString_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define ISO646String_decode_ber OCTET_STRING_decode_ber +#define ISO646String_encode_der OCTET_STRING_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#define ISO646String_decode_xer OCTET_STRING_decode_xer_utf8 +#define ISO646String_encode_xer OCTET_STRING_encode_xer_utf8 +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +#define ISO646String_decode_jer OCTET_STRING_decode_jer_utf8 +#define ISO646String_encode_jer OCTET_STRING_encode_jer_utf8 +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +#define ISO646String_decode_oer OCTET_STRING_decode_oer +#define ISO646String_encode_oer OCTET_STRING_encode_oer +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#define ISO646String_decode_uper OCTET_STRING_decode_uper +#define ISO646String_encode_uper OCTET_STRING_encode_uper +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define ISO646String_decode_aper OCTET_STRING_decode_aper +#define ISO646String_encode_aper OCTET_STRING_encode_aper +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +#define ISO646String_random_fill OCTET_STRING_random_fill +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* _ISO646String_H_ */ diff --git a/asn.1/skeleton/NULL.c b/asn.1/skeleton/NULL.c new file mode 100644 index 00000000..37292914 --- /dev/null +++ b/asn.1/skeleton/NULL.c @@ -0,0 +1,128 @@ +/*- + * Copyright (c) 2003, 2005 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * NULL basic type description. + */ +static const ber_tlv_tag_t asn_DEF_NULL_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)) +}; +asn_TYPE_operation_t asn_OP_NULL = { + NULL_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + NULL_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + NULL_compare, + NULL_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + NULL_decode_ber, + NULL_encode_der, /* Special handling of DER encoding */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + NULL_decode_xer, + NULL_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + NULL_decode_jer, + NULL_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + NULL_decode_oer, + NULL_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + NULL_decode_uper, /* Unaligned PER decoder */ + NULL_encode_uper, /* Unaligned PER encoder */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + NULL_decode_aper, /* Aligned PER decoder */ + NULL_encode_aper, /* Aligned PER encoder */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + NULL_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_NULL = { + "NULL", + "NULL", + &asn_OP_NULL, + asn_DEF_NULL_tags, + sizeof(asn_DEF_NULL_tags) / sizeof(asn_DEF_NULL_tags[0]), + asn_DEF_NULL_tags, /* Same as above */ + sizeof(asn_DEF_NULL_tags) / sizeof(asn_DEF_NULL_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + asn_generic_no_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + +void +NULL_free(const asn_TYPE_descriptor_t *td, void *ptr, + enum asn_struct_free_method method) { + if(td && ptr) { + switch(method) { + case ASFM_FREE_EVERYTHING: + FREEMEM(ptr); + break; + case ASFM_FREE_UNDERLYING: + break; + case ASFM_FREE_UNDERLYING_AND_RESET: + memset(ptr, 0, sizeof(NULL_t)); + break; + } + } +} + +int +NULL_compare(const asn_TYPE_descriptor_t *td, const void *a, const void *b) { + (void)td; + (void)a; + (void)b; + return 0; +} + +int +NULL_copy(const asn_TYPE_descriptor_t *td, void **a, const void *b) { + (void)td; + + if(b && !*a) { + *a = CALLOC(1, sizeof(NULL_t)); + if (!*a) return -1; + } + + return 0; +} diff --git a/asn.1/skeleton/NULL.h b/asn.1/skeleton/NULL.h new file mode 100644 index 00000000..ca9d6fab --- /dev/null +++ b/asn.1/skeleton/NULL.h @@ -0,0 +1,71 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef ASN_TYPE_NULL_H +#define ASN_TYPE_NULL_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * The value of the NULL type is meaningless. + * Use the BOOLEAN type if you need to carry true/false semantics. + */ +typedef int NULL_t; + +extern asn_TYPE_descriptor_t asn_DEF_NULL; +extern asn_TYPE_operation_t asn_OP_NULL; + +asn_struct_free_f NULL_free; + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +asn_struct_print_f NULL_print; +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +asn_struct_compare_f NULL_compare; +asn_struct_copy_f NULL_copy; + +#define NULL_constraint asn_generic_no_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +ber_type_decoder_f NULL_decode_ber; +der_type_encoder_f NULL_encode_der; +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +xer_type_decoder_f NULL_decode_xer; +xer_type_encoder_f NULL_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +jer_type_decoder_f NULL_decode_jer; +jer_type_encoder_f NULL_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +oer_type_decoder_f NULL_decode_oer; +oer_type_encoder_f NULL_encode_oer; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +per_type_decoder_f NULL_decode_uper; +per_type_encoder_f NULL_encode_uper; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +per_type_decoder_f NULL_decode_aper; +per_type_encoder_f NULL_encode_aper; +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +asn_random_fill_f NULL_random_fill; +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* NULL_H */ diff --git a/asn.1/skeleton/NULL_aper.c b/asn.1/skeleton/NULL_aper.c new file mode 100644 index 00000000..5176880b --- /dev/null +++ b/asn.1/skeleton/NULL_aper.c @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_dec_rval_t +NULL_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) { + asn_dec_rval_t rv = {RC_OK, 0}; + + (void)opt_codec_ctx; + (void)td; + (void)constraints; + (void)pd; + + if(!*sptr) { + *sptr = MALLOC(sizeof(NULL_t)); + if(*sptr) { + *(NULL_t *)*sptr = 0; + } else { + ASN__DECODE_FAILED; + } + } + + /* + * NULL type does not have content octets. + */ + + rv.code = RC_OK; + rv.consumed = 0; + return rv; +} + + +asn_enc_rval_t +NULL_encode_aper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + asn_enc_rval_t er = {0,0,0}; + + (void)td; + (void)constraints; + (void)sptr; + (void)po; + + er.encoded = 0; + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/NULL_ber.c b/asn.1/skeleton/NULL_ber.c new file mode 100644 index 00000000..38c85c92 --- /dev/null +++ b/asn.1/skeleton/NULL_ber.c @@ -0,0 +1,63 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Decode NULL type. + */ +asn_dec_rval_t +NULL_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **bool_value, + const void *buf_ptr, size_t size, int tag_mode) { + NULL_t *st = (NULL_t *)*bool_value; + asn_dec_rval_t rval; + ber_tlv_len_t length; + + if(st == NULL) { + st = (NULL_t *)(*bool_value = CALLOC(1, sizeof(*st))); + if(st == NULL) { + rval.code = RC_FAIL; + rval.consumed = 0; + return rval; + } + } + + ASN_DEBUG("Decoding %s as NULL (tm=%d)", td->name, tag_mode); + + /* + * Check tags. + */ + rval = ber_check_tags(opt_codec_ctx, td, 0, buf_ptr, size, tag_mode, 0, + &length, 0); + if(rval.code != RC_OK) { + return rval; + } + + // X.690-201508, #8.8.2, length shall be zero. + if(length != 0) { + ASN_DEBUG("Decoding %s as NULL failed: too much data", td->name); + rval.code = RC_FAIL; + rval.consumed = 0; + return rval; + } + + return rval; +} + +asn_enc_rval_t +NULL_encode_der(const asn_TYPE_descriptor_t *td, const void *ptr, int tag_mode, + ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { + asn_enc_rval_t erval = {0,0,0}; + + erval.encoded = der_write_tags(td, 0, tag_mode, 0, tag, cb, app_key); + if(erval.encoded == -1) { + erval.failed_type = td; + erval.structure_ptr = ptr; + } + + ASN__ENCODED_OK(erval); +} diff --git a/asn.1/skeleton/NULL_jer.c b/asn.1/skeleton/NULL_jer.c new file mode 100644 index 00000000..0f5f2783 --- /dev/null +++ b/asn.1/skeleton/NULL_jer.c @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_enc_rval_t +NULL_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + enum jer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, + void *app_key) { + asn_enc_rval_t er = {0,0,0}; + + (void)td; + (void)sptr; + (void)ilevel; + (void)flags; + + ASN__CALLBACK("null", 4); + ASN__ENCODED_OK(er); + +cb_failed: + ASN__ENCODE_FAILED; +} + + +static enum jer_pbd_rval +NULL__jer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, + const void *chunk_buf, size_t chunk_size) { + + (void)td; + (void)sptr; + + const char *p = (const char *)chunk_buf; + + if(chunk_size && p[0] == 'n' /* 'null' */) { + return JPBD_BODY_CONSUMED; + } else { + return JPBD_BROKEN_ENCODING; + } +} + +asn_dec_rval_t +NULL_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const void *buf_ptr, size_t size) { + return jer_decode_primitive(opt_codec_ctx, td, + sptr, sizeof(NULL_t), buf_ptr, size, + NULL__jer_body_decode); +} diff --git a/asn.1/skeleton/NULL_oer.c b/asn.1/skeleton/NULL_oer.c new file mode 100644 index 00000000..29abaa24 --- /dev/null +++ b/asn.1/skeleton/NULL_oer.c @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_dec_rval_t +NULL_decode_oer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, void **sptr, + const void *ptr, size_t size) { + asn_dec_rval_t rv = {RC_OK, 0}; + (void)opt_codec_ctx; + (void)td; + (void)constraints; + (void)ptr; + (void)size; + + if(!*sptr) { + *sptr = MALLOC(sizeof(NULL_t)); + if(*sptr) { + *(NULL_t *)*sptr = 0; + } else { + ASN__DECODE_FAILED; + } + } + + return rv; +} + +asn_enc_rval_t +NULL_encode_oer(const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, const void *sptr, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_enc_rval_t er = {0,0,0}; + + (void)td; + (void)sptr; + (void)constraints; + (void)cb; + (void)app_key; + + er.encoded = 0; /* Encoding in 0 bytes. */ + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/NULL_print.c b/asn.1/skeleton/NULL_print.c new file mode 100644 index 00000000..52fcc0e2 --- /dev/null +++ b/asn.1/skeleton/NULL_print.c @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +int +NULL_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + asn_app_consume_bytes_f *cb, void *app_key) { + (void)td; /* Unused argument */ + (void)ilevel; /* Unused argument */ + + if(sptr) { + return (cb("", 9, app_key) < 0) ? -1 : 0; + } else { + return (cb("", 8, app_key) < 0) ? -1 : 0; + } +} diff --git a/asn.1/skeleton/NULL_rfill.c b/asn.1/skeleton/NULL_rfill.c new file mode 100644 index 00000000..f1b60ce4 --- /dev/null +++ b/asn.1/skeleton/NULL_rfill.c @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_random_fill_result_t +NULL_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, + const asn_encoding_constraints_t *constr, + size_t max_length) { + asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; + asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; + asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; + NULL_t *st = *sptr; + + (void)td; + (void)constr; + + if(max_length == 0) return result_skipped; + + if(st == NULL) { + st = (NULL_t *)(*sptr = CALLOC(1, sizeof(*st))); + if(st == NULL) { + return result_failed; + } + } + + return result_ok; +} diff --git a/asn.1/skeleton/NULL_uper.c b/asn.1/skeleton/NULL_uper.c new file mode 100644 index 00000000..c871a487 --- /dev/null +++ b/asn.1/skeleton/NULL_uper.c @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_dec_rval_t +NULL_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, + asn_per_data_t *pd) { + asn_dec_rval_t rv; + + (void)opt_codec_ctx; + (void)td; + (void)constraints; + (void)pd; + + if(!*sptr) { + *sptr = MALLOC(sizeof(NULL_t)); + if(*sptr) { + *(NULL_t *)*sptr = 0; + } else { + ASN__DECODE_FAILED; + } + } + + /* + * NULL type does not have content octets. + */ + + rv.code = RC_OK; + rv.consumed = 0; + return rv; +} + +asn_enc_rval_t +NULL_encode_uper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, const void *sptr, + asn_per_outp_t *po) { + asn_enc_rval_t er = {0,0,0}; + + (void)td; + (void)constraints; + (void)sptr; + (void)po; + + er.encoded = 0; + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/NULL_xer.c b/asn.1/skeleton/NULL_xer.c new file mode 100644 index 00000000..5a6e4b94 --- /dev/null +++ b/asn.1/skeleton/NULL_xer.c @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_enc_rval_t +NULL_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, + void *app_key) { + asn_enc_rval_t er = {0,0,0}; + + (void)td; + (void)sptr; + (void)ilevel; + (void)flags; + (void)cb; + (void)app_key; + + /* XMLNullValue is empty */ + er.encoded = 0; + ASN__ENCODED_OK(er); +} + + +static enum xer_pbd_rval +NULL__xer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, + const void *chunk_buf, size_t chunk_size) { + (void)td; + (void)sptr; + (void)chunk_buf; /* Going to be empty according to the rules below. */ + + /* + * There must be no content in self-terminating tag. + */ + if(chunk_size) + return XPBD_BROKEN_ENCODING; + else + return XPBD_BODY_CONSUMED; +} + +asn_dec_rval_t +NULL_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, size_t size) { + return xer_decode_primitive(opt_codec_ctx, td, + sptr, sizeof(NULL_t), opt_mname, buf_ptr, size, + NULL__xer_body_decode); +} diff --git a/asn.1/skeleton/NativeEnumerated.c b/asn.1/skeleton/NativeEnumerated.c new file mode 100644 index 00000000..148cb8fb --- /dev/null +++ b/asn.1/skeleton/NativeEnumerated.c @@ -0,0 +1,111 @@ +/*- + * Copyright (c) 2004, 2007 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +/* + * Read the NativeInteger.h for the explanation wrt. differences between + * INTEGER and NativeInteger. + * Basically, both are decoders and encoders of ASN.1 INTEGER type, but this + * implementation deals with the standard (machine-specific) representation + * of them instead of using the platform-independent buffer. + */ +#include +#include + +/* + * NativeEnumerated basic type description. + */ +static const ber_tlv_tag_t asn_DEF_NativeEnumerated_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_operation_t asn_OP_NativeEnumerated = { + NativeInteger_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + NativeInteger_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + NativeInteger_compare, + NativeInteger_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + NativeInteger_decode_ber, + NativeInteger_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + NativeInteger_decode_xer, + NativeEnumerated_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + NativeEnumerated_decode_jer, + NativeEnumerated_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + NativeEnumerated_decode_oer, + NativeEnumerated_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + NativeEnumerated_decode_uper, + NativeEnumerated_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + NativeEnumerated_decode_aper, + NativeEnumerated_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + NativeEnumerated_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_NativeEnumerated = { + "ENUMERATED", /* The ASN.1 type is still ENUMERATED */ + "ENUMERATED", + &asn_OP_NativeEnumerated, + asn_DEF_NativeEnumerated_tags, + sizeof(asn_DEF_NativeEnumerated_tags) / sizeof(asn_DEF_NativeEnumerated_tags[0]), + asn_DEF_NativeEnumerated_tags, /* Same as above */ + sizeof(asn_DEF_NativeEnumerated_tags) / sizeof(asn_DEF_NativeEnumerated_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + asn_generic_no_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +int +NativeEnumerated__compar_value2enum(const void *ap, const void *bp) { + const asn_INTEGER_enum_map_t *a = ap; + const asn_INTEGER_enum_map_t *b = bp; + if(a->nat_value == b->nat_value) + return 0; + if(a->nat_value < b->nat_value) + return -1; + return 1; +} +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ diff --git a/asn.1/skeleton/NativeEnumerated.h b/asn.1/skeleton/NativeEnumerated.h new file mode 100644 index 00000000..8c045e52 --- /dev/null +++ b/asn.1/skeleton/NativeEnumerated.h @@ -0,0 +1,79 @@ +/* + * Copyright (c) 2004-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +/* + * This type differs from the standard ENUMERATED in that it is modelled using + * the fixed machine type (long, int, short), so it can hold only values of + * limited length. There is no type (i.e., NativeEnumerated_t, any integer type + * will do). + * This type may be used when integer range is limited by subtype constraints. + */ +#ifndef _NativeEnumerated_H_ +#define _NativeEnumerated_H_ + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +extern asn_TYPE_descriptor_t asn_DEF_NativeEnumerated; +extern asn_TYPE_operation_t asn_OP_NativeEnumerated; + +#define NativeEnumerated_free NativeInteger_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +#define NativeEnumerated_print NativeInteger_print +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define NativeEnumerated_compare NativeInteger_compare +#define NativeEnumerated_copy NativeInteger_copy + +#define NativeEnumerated_constraint asn_generic_no_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define NativeEnumerated_decode_ber NativeInteger_decode_ber +#define NativeEnumerated_encode_der NativeInteger_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#define NativeEnumerated_decode_xer NativeInteger_decode_xer +xer_type_encoder_f NativeEnumerated_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +jer_type_decoder_f NativeEnumerated_decode_jer; +jer_type_encoder_f NativeEnumerated_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +oer_type_decoder_f NativeEnumerated_decode_oer; +oer_type_encoder_f NativeEnumerated_encode_oer; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +per_type_decoder_f NativeEnumerated_decode_uper; +per_type_encoder_f NativeEnumerated_encode_uper; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +per_type_decoder_f NativeEnumerated_decode_aper; +per_type_encoder_f NativeEnumerated_encode_aper; +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +#define NativeEnumerated_random_fill NativeInteger_random_fill +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +int NativeEnumerated__compar_value2enum( + const void *ap, + const void *bp); +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* _NativeEnumerated_H_ */ diff --git a/asn.1/skeleton/NativeEnumerated_aper.c b/asn.1/skeleton/NativeEnumerated_aper.c new file mode 100644 index 00000000..bd205b1b --- /dev/null +++ b/asn.1/skeleton/NativeEnumerated_aper.c @@ -0,0 +1,155 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_dec_rval_t +NativeEnumerated_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + void **sptr, asn_per_data_t *pd) { + const asn_INTEGER_specifics_t *specs = (const asn_INTEGER_specifics_t *)td->specifics; + asn_dec_rval_t rval = { RC_OK, 0 }; + long *native = (long *)*sptr; + const asn_per_constraint_t *ct; + long value; + + (void)opt_codec_ctx; + + if(constraints) ct = &constraints->value; + else if(td->encoding_constraints.per_constraints) + ct = &td->encoding_constraints.per_constraints->value; + else ASN__DECODE_FAILED; /* Mandatory! */ + if(!specs) ASN__DECODE_FAILED; + + if(!native) { + native = (long *)(*sptr = CALLOC(1, sizeof(*native))); + if(!native) ASN__DECODE_FAILED; + } + + ASN_DEBUG("Decoding %s as NativeEnumerated", td->name); + + if(ct->flags & APC_EXTENSIBLE) { + int inext = per_get_few_bits(pd, 1); + if(inext < 0) ASN__DECODE_STARVED; + if(inext) ct = 0; + } + + /* Deal with APER padding */ + if(ct && ct->upper_bound >= 255) { + int padding = 0; + padding = (8 - (pd->moved % 8)) % 8; + ASN_DEBUG("For NativeEnumerated %s,offset = %zu Padding bits = %d", + td->name, pd->moved, padding); + ASN_DEBUG("For NativeEnumerated %s, upper bound = %llu", + td->name, (unsigned long long)ct->upper_bound); + if(padding > 0) + per_get_few_bits(pd, padding); + } + + if(ct && ct->range_bits >= 0) { + value = per_get_few_bits(pd, ct->range_bits); + if(value < 0) ASN__DECODE_STARVED; + if(value >= (specs->extension + ? specs->extension - 1 : specs->map_count)) + ASN__DECODE_FAILED; + } else { + if(!specs->extension) + ASN__DECODE_FAILED; + /* + * X.691, #10.6: normally small non-negative whole number; + */ + + /* XXX handle indefinite index length > 64k */ + value = aper_get_nsnnwn(pd); + if(value < 0) ASN__DECODE_STARVED; + value += specs->extension - 1; + //if(value >= specs->map_count) + // ASN__DECODE_FAILED; + if(value >= specs->map_count) { + ASN_DEBUG("Decoded unknown index value %s = %ld", td->name, value); + /* unknown index. Workaround => set the first enumeration value */ + *native = specs->value2enum[0].nat_value; + return rval; + } + } + + *native = specs->value2enum[value].nat_value; + ASN_DEBUG("Decoded %s = %ld", td->name, *native); + + return rval; +} + +asn_enc_rval_t +NativeEnumerated_encode_aper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + const asn_INTEGER_specifics_t *specs = (const asn_INTEGER_specifics_t *)td->specifics; + asn_enc_rval_t er = {0,0,0}; + long native, value; + const asn_per_constraint_t *ct; + int inext = 0, range_bits = 1; + asn_INTEGER_enum_map_t key; + asn_INTEGER_enum_map_t *kf; + + if(!sptr) ASN__ENCODE_FAILED; + if(!specs) ASN__ENCODE_FAILED; + + if(constraints) ct = &constraints->value; + else if(td->encoding_constraints.per_constraints) + ct = &td->encoding_constraints.per_constraints->value; + else ASN__ENCODE_FAILED; /* Mandatory! */ + + ASN_DEBUG("Encoding %s as NativeEnumerated", td->name); + + er.encoded = 0; + + native = *(const long *)sptr; + if(native < 0) ASN__ENCODE_FAILED; + + key.nat_value = native; + kf = bsearch(&key, specs->value2enum, specs->map_count, + sizeof(key), NativeEnumerated__compar_value2enum); + if(!kf) { + ASN_DEBUG("No element corresponds to %ld", native); + ASN__ENCODE_FAILED; + } + value = kf - specs->value2enum; + + if(ct->range_bits >= 0) { + int cmpWith = specs->extension + ? specs->extension - 1 : specs->map_count; + if(value >= cmpWith) + inext = 1; + } + if(ct->flags & APC_EXTENSIBLE) { + if(per_put_few_bits(po, inext, 1)) + ASN__ENCODE_FAILED; + if(inext) range_bits = 0; + } else if(inext) { + ASN__ENCODE_FAILED; + } + + if(range_bits && ct && ct->range_bits >= 0) { + if(per_put_few_bits(po, value, ct->range_bits)) + ASN__ENCODE_FAILED; + ASN__ENCODED_OK(er); + } + + if(!specs->extension) + ASN__ENCODE_FAILED; + + /* + * X.691, #10.6: normally small non-negative whole number; + */ + ASN_DEBUG("value = %ld, ext = %d, inext = %d, res = %ld", + value, specs->extension, inext, + value - (inext ? (specs->extension - 1) : 0)); + if(aper_put_nsnnwn(po, value - (inext ? (specs->extension - 1) : 0))) + ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/NativeEnumerated_jer.c b/asn.1/skeleton/NativeEnumerated_jer.c new file mode 100644 index 00000000..b76b061a --- /dev/null +++ b/asn.1/skeleton/NativeEnumerated_jer.c @@ -0,0 +1,79 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Decode the chunk of JSON text encoding ENUMERATED. + */ +asn_dec_rval_t +NativeEnumerated_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const void *buf_ptr, size_t size) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + asn_dec_rval_t rval; + INTEGER_t st; + void *st_ptr = (void *)&st; + long *native = (long *)*sptr; + + if(!native) { + native = (long *)(*sptr = CALLOC(1, sizeof(*native))); + if(!native) ASN__DECODE_FAILED; + } + + memset(&st, 0, sizeof(st)); + rval = ENUMERATED_decode_jer(opt_codec_ctx, td, &st_ptr, buf_ptr, size); + if(rval.code == RC_OK) { + long l; + if((specs&&specs->field_unsigned) + ? asn_INTEGER2ulong(&st, (unsigned long *)&l) /* sic */ + : asn_INTEGER2long(&st, &l)) { + rval.code = RC_FAIL; + rval.consumed = 0; + } else { + *native = l; + } + } else { + /* + * Cannot restart from the middle; + * there is no place to save state in the native type. + * Request a continuation from the very beginning. + */ + rval.consumed = 0; + } + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &st); + return rval; +} + +asn_enc_rval_t +NativeEnumerated_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + asn_enc_rval_t er = {0,0,0}; + const long *native = (const long *)sptr; + const asn_INTEGER_enum_map_t *el; + + (void)ilevel; + (void)flags; + + if(!native) ASN__ENCODE_FAILED; + + el = INTEGER_map_value2enum(specs, *native); + if(el) { + er.encoded = + asn__format_to_callback(cb, app_key, "\"%s\"", el->enum_name); + if(er.encoded < 0) ASN__ENCODE_FAILED; + ASN__ENCODED_OK(er); + } else { + ASN_DEBUG( + "ASN.1 forbids dealing with " + "unknown value of ENUMERATED type"); + ASN__ENCODE_FAILED; + } +} diff --git a/asn.1/skeleton/NativeEnumerated_oer.c b/asn.1/skeleton/NativeEnumerated_oer.c new file mode 100644 index 00000000..52dbcb86 --- /dev/null +++ b/asn.1/skeleton/NativeEnumerated_oer.c @@ -0,0 +1,144 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +static long +asn__nativeenumerated_convert(const uint8_t *b, const uint8_t *end) { + unsigned long value; + + /* Perform the sign initialization */ + /* Actually value = -(*b >> 7); gains nothing, yet unreadable! */ + if((*b >> 7)) { + value = (unsigned long)(-1); + } else { + value = 0; + } + + /* Conversion engine */ + for(; b < end; b++) { + value = (value << 8) | *b; + } + + return value; +} + +asn_dec_rval_t +NativeEnumerated_decode_oer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, + void **nint_ptr, const void *ptr, size_t size) { + asn_dec_rval_t rval = {RC_OK, 0}; + long *native = (long *)*nint_ptr; + const uint8_t *b = ptr; + + (void)opt_codec_ctx; + (void)constraints; + + if(size < 1) { + ASN__DECODE_STARVED; + } + + if((*b & 0x80) == 0) { + /* + * X.696 (08/2015) #11.2 Short form for Enumerated. + */ + if(!native) { + native = (long *)(*nint_ptr = CALLOC(1, sizeof(*native))); + if(!native) ASN__DECODE_FAILED; + } + + *native = *b; + rval.consumed = 1; + } else { + /* + * X.696 (08/2015) #11.4 Long form for Enumerated. + */ + size_t length = *b & 0x7f; + const uint8_t *bend; + long value; + + if(length < 1 || length > sizeof(*native)) { + ASN__DECODE_FAILED; + } + if((1 + length) > size) { + ASN__DECODE_STARVED; + } + b++; + bend = b + length; + + value = asn__nativeenumerated_convert(b, bend); + if(value < 0) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + if(specs && specs->field_unsigned) { + ASN__DECODE_FAILED; + } + } + + if(!native) { + native = (long *)(*nint_ptr = CALLOC(1, sizeof(*native))); + if(!native) ASN__DECODE_FAILED; + } + + *native = value; + + rval.consumed = (1 + length); + } + + return rval; +} + +/* + * Encode as Canonical OER. + */ +asn_enc_rval_t +NativeEnumerated_encode_oer(const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, + const void *sptr, asn_app_consume_bytes_f *cb, + void *app_key) { + asn_enc_rval_t er = {0,0,0}; + long native; + + (void)constraints; + + if(!sptr) ASN__ENCODE_FAILED; + + native = *(const long *)sptr; + + if(native >= 0 && native <= 127) { + /* #11.2 Short form */ + uint8_t b = native; + er.encoded = 1; + if(cb(&b, er.encoded, app_key) < 0) { + ASN__ENCODE_FAILED; + } + ASN__ENCODED_OK(er); + } else { + /* #11.2 Long form */ + uint8_t buf[1 + sizeof(native)]; + uint8_t *b = &buf[sizeof(native)]; /* Last addressable */ + long final_pattern = -1 * (native < 0); + + for(;;) { + *b-- = native; + native >>= 8; + if(native == final_pattern) { + if(final_pattern) { + if((b[1] & 0x80)) break; + } else { + if(!(b[1] & 0x80)) break; + } + } + } + *b = 0x80 | (&buf[sizeof(native)] - b); + er.encoded = 1 + (&buf[sizeof(native)] - b); + if(cb(b, er.encoded, app_key) < 0) { + ASN__ENCODE_FAILED; + } + ASN__ENCODED_OK(er); + } +} diff --git a/asn.1/skeleton/NativeEnumerated_uper.c b/asn.1/skeleton/NativeEnumerated_uper.c new file mode 100644 index 00000000..e2f932a2 --- /dev/null +++ b/asn.1/skeleton/NativeEnumerated_uper.c @@ -0,0 +1,135 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_dec_rval_t +NativeEnumerated_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + void **sptr, asn_per_data_t *pd) { + const asn_INTEGER_specifics_t *specs = td->specifics; + asn_dec_rval_t rval = { RC_OK, 0 }; + long *native = (long *)*sptr; + const asn_per_constraint_t *ct; + long value; + + (void)opt_codec_ctx; + + if(constraints) ct = &constraints->value; + else if(td->encoding_constraints.per_constraints) + ct = &td->encoding_constraints.per_constraints->value; + else ASN__DECODE_FAILED; /* Mandatory! */ + if(!specs) ASN__DECODE_FAILED; + + if(!native) { + native = (long *)(*sptr = CALLOC(1, sizeof(*native))); + if(!native) ASN__DECODE_FAILED; + } + + ASN_DEBUG("Decoding %s as NativeEnumerated", td->name); + + if(ct->flags & APC_EXTENSIBLE) { + int inext = per_get_few_bits(pd, 1); + if(inext < 0) ASN__DECODE_STARVED; + if(inext) ct = 0; + } + + if(ct && ct->range_bits >= 0) { + value = per_get_few_bits(pd, ct->range_bits); + if(value < 0) ASN__DECODE_STARVED; + if(value >= (specs->extension + ? specs->extension - 1 : specs->map_count)) + ASN__DECODE_FAILED; + } else { + if(!specs->extension) + ASN__DECODE_FAILED; + /* + * X.691, #10.6: normally small non-negative whole number; + */ + value = uper_get_nsnnwn(pd); + if(value < 0) ASN__DECODE_STARVED; + value += specs->extension - 1; + if(value >= specs->map_count) + ASN__DECODE_FAILED; + } + + *native = specs->value2enum[value].nat_value; + ASN_DEBUG("Decoded %s = %ld", td->name, *native); + + return rval; +} + +asn_enc_rval_t +NativeEnumerated_encode_uper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + asn_enc_rval_t er = {0,0,0}; + long native, value; + const asn_per_constraint_t *ct; + int inext = 0; + asn_INTEGER_enum_map_t key; + const asn_INTEGER_enum_map_t *kf; + + if(!sptr) ASN__ENCODE_FAILED; + if(!specs) ASN__ENCODE_FAILED; + + if(constraints) ct = &constraints->value; + else if(td->encoding_constraints.per_constraints) + ct = &td->encoding_constraints.per_constraints->value; + else ASN__ENCODE_FAILED; /* Mandatory! */ + + ASN_DEBUG("Encoding %s as NativeEnumerated", td->name); + + er.encoded = 0; + + native = *(const long *)sptr; + + key.nat_value = native; + kf = bsearch(&key, specs->value2enum, specs->map_count, + sizeof(key), NativeEnumerated__compar_value2enum); + if(!kf) { + ASN_DEBUG("No element corresponds to %ld", native); + ASN__ENCODE_FAILED; + } + value = kf - specs->value2enum; + + if(ct->range_bits >= 0) { + int cmpWith = specs->extension + ? specs->extension - 1 : specs->map_count; + if(value >= cmpWith) + inext = 1; + } + if(ct->flags & APC_EXTENSIBLE) { + if(per_put_few_bits(po, inext, 1)) + ASN__ENCODE_FAILED; + if(inext) ct = 0; + } else if(inext) { + ASN__ENCODE_FAILED; + } + + if(ct && ct->range_bits >= 0) { + if(per_put_few_bits(po, value, ct->range_bits)) + ASN__ENCODE_FAILED; + ASN__ENCODED_OK(er); + } + + if(!specs->extension) + ASN__ENCODE_FAILED; + + /* + * X.691, #10.6: normally small non-negative whole number; + */ + ASN_DEBUG("value = %ld, ext = %d, inext = %d, res = %ld", + value, specs->extension, inext, + value - (inext ? (specs->extension - 1) : 0)); + if(uper_put_nsnnwn(po, value - (inext ? (specs->extension - 1) : 0))) + ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/NativeEnumerated_xer.c b/asn.1/skeleton/NativeEnumerated_xer.c new file mode 100644 index 00000000..e8d6d0de --- /dev/null +++ b/asn.1/skeleton/NativeEnumerated_xer.c @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_enc_rval_t +NativeEnumerated_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + asn_enc_rval_t er = {0,0,0}; + const long *native = (const long *)sptr; + const asn_INTEGER_enum_map_t *el; + + (void)ilevel; + (void)flags; + + if(!native) ASN__ENCODE_FAILED; + + el = INTEGER_map_value2enum(specs, *native); + if(el) { + er.encoded = + asn__format_to_callback(cb, app_key, "<%s/>", el->enum_name); + if(er.encoded < 0) ASN__ENCODE_FAILED; + ASN__ENCODED_OK(er); + } else { + ASN_DEBUG( + "ASN.1 forbids dealing with " + "unknown value of ENUMERATED type"); + ASN__ENCODE_FAILED; + } +} diff --git a/asn.1/skeleton/NativeInteger.c b/asn.1/skeleton/NativeInteger.c new file mode 100644 index 00000000..8957b65c --- /dev/null +++ b/asn.1/skeleton/NativeInteger.c @@ -0,0 +1,182 @@ +/*- + * Copyright (c) 2004, 2005, 2006 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +/* + * Read the NativeInteger.h for the explanation wrt. differences between + * INTEGER and NativeInteger. + * Basically, both are decoders and encoders of ASN.1 INTEGER type, but this + * implementation deals with the standard (machine-specific) representation + * of them instead of using the platform-independent buffer. + */ +#include +#include + +/* + * NativeInteger basic type description. + */ +static const ber_tlv_tag_t asn_DEF_NativeInteger_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_operation_t asn_OP_NativeInteger = { + NativeInteger_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + NativeInteger_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + NativeInteger_compare, + NativeInteger_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + NativeInteger_decode_ber, + NativeInteger_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + NativeInteger_decode_xer, + NativeInteger_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + NativeInteger_decode_jer, + NativeInteger_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + NativeInteger_decode_oer, /* OER decoder */ + NativeInteger_encode_oer, /* Canonical OER encoder */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + NativeInteger_decode_uper, /* Unaligned PER decoder */ + NativeInteger_encode_uper, /* Unaligned PER encoder */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + NativeInteger_decode_aper, /* Aligned PER decoder */ + NativeInteger_encode_aper, /* Aligned PER encoder */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + NativeInteger_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_NativeInteger = { + "INTEGER", /* The ASN.1 type is still INTEGER */ + "INTEGER", + &asn_OP_NativeInteger, + asn_DEF_NativeInteger_tags, + sizeof(asn_DEF_NativeInteger_tags) / sizeof(asn_DEF_NativeInteger_tags[0]), + asn_DEF_NativeInteger_tags, /* Same as above */ + sizeof(asn_DEF_NativeInteger_tags) / sizeof(asn_DEF_NativeInteger_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + asn_generic_no_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + +void +NativeInteger_free(const asn_TYPE_descriptor_t *td, void *ptr, + enum asn_struct_free_method method) { + if(!td || !ptr) + return; + + ASN_DEBUG("Freeing %s as INTEGER (%d, %p, Native)", + td->name, method, ptr); + + switch(method) { + case ASFM_FREE_EVERYTHING: + FREEMEM(ptr); + break; + case ASFM_FREE_UNDERLYING: + break; + case ASFM_FREE_UNDERLYING_AND_RESET: + memset(ptr, 0, sizeof(long)); + break; + } +} + +int +NativeInteger_compare(const asn_TYPE_descriptor_t *td, const void *aptr, const void *bptr) { + (void)td; + + if(aptr && bptr) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + if(specs && specs->field_unsigned) { + const unsigned long *a = aptr; + const unsigned long *b = bptr; + if(*a < *b) { + return -1; + } else if(*a > *b) { + return 1; + } else { + return 0; + } + } else { + const long *a = aptr; + const long *b = bptr; + if(*a < *b) { + return -1; + } else if(*a > *b) { + return 1; + } else { + return 0; + } + } + } else if(!aptr) { + return -1; + } else { + return 1; + } +} + +int +NativeInteger_copy(const asn_TYPE_descriptor_t *td, void **aptr, const void *bptr) { + unsigned long *a = *aptr; + const unsigned long *b = bptr; + + (void)td; + + /* Check if source has data */ + if(!b) { + /* Clear destination */ + if(a) { + FREEMEM(a); + *aptr = 0; + } + return 0; + } + + if(!a) { + a = *aptr = MALLOC(sizeof(*a)); + if(!a) return -1; + } + + *a = *b; + + return 0; +} diff --git a/asn.1/skeleton/NativeInteger.h b/asn.1/skeleton/NativeInteger.h new file mode 100644 index 00000000..352926b4 --- /dev/null +++ b/asn.1/skeleton/NativeInteger.h @@ -0,0 +1,73 @@ +/*- + * Copyright (c) 2004-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +/* + * This type differs from the standard INTEGER in that it is modelled using + * the fixed machine type (long, int, short), so it can hold only values of + * limited length. There is no type (i.e., NativeInteger_t, any integer type + * will do). + * This type may be used when integer range is limited by subtype constraints. + */ +#ifndef _NativeInteger_H_ +#define _NativeInteger_H_ + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +extern asn_TYPE_descriptor_t asn_DEF_NativeInteger; +extern asn_TYPE_operation_t asn_OP_NativeInteger; + +asn_struct_free_f NativeInteger_free; + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +asn_struct_print_f NativeInteger_print; +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +asn_struct_compare_f NativeInteger_compare; +asn_struct_copy_f NativeInteger_copy; + +#define NativeInteger_constraint asn_generic_no_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +ber_type_decoder_f NativeInteger_decode_ber; +der_type_encoder_f NativeInteger_encode_der; +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +xer_type_decoder_f NativeInteger_decode_xer; +xer_type_encoder_f NativeInteger_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +jer_type_decoder_f NativeInteger_decode_jer; +jer_type_encoder_f NativeInteger_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +oer_type_decoder_f NativeInteger_decode_oer; +oer_type_encoder_f NativeInteger_encode_oer; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +per_type_decoder_f NativeInteger_decode_uper; +per_type_encoder_f NativeInteger_encode_uper; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +per_type_decoder_f NativeInteger_decode_aper; +per_type_encoder_f NativeInteger_encode_aper; +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +asn_random_fill_f NativeInteger_random_fill; +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* _NativeInteger_H_ */ diff --git a/asn.1/skeleton/NativeInteger_aper.c b/asn.1/skeleton/NativeInteger_aper.c new file mode 100644 index 00000000..1d13070a --- /dev/null +++ b/asn.1/skeleton/NativeInteger_aper.c @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_dec_rval_t +NativeInteger_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) { + + const asn_INTEGER_specifics_t *specs = (const asn_INTEGER_specifics_t *)td->specifics; + asn_dec_rval_t rval; + long *native = (long *)*sptr; + INTEGER_t tmpint; + void *tmpintptr = &tmpint; + + (void)opt_codec_ctx; + ASN_DEBUG("Decoding NativeInteger %s (APER)", td->name); + + if(!native) { + native = (long *)(*sptr = CALLOC(1, sizeof(*native))); + if(!native) ASN__DECODE_FAILED; + } + + memset(&tmpint, 0, sizeof tmpint); + rval = INTEGER_decode_aper(opt_codec_ctx, td, constraints, + &tmpintptr, pd); + if(rval.code == RC_OK) { + if((specs&&specs->field_unsigned) + ? asn_INTEGER2ulong(&tmpint, (unsigned long *)native) + : asn_INTEGER2long(&tmpint, native)) + rval.code = RC_FAIL; + else + ASN_DEBUG("NativeInteger %s got value %ld", + td->name, *native); + } + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &tmpint); + + return rval; +} + +asn_enc_rval_t +NativeInteger_encode_aper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + + const asn_INTEGER_specifics_t *specs = (const asn_INTEGER_specifics_t *)td->specifics; + asn_enc_rval_t er = {0,0,0}; + long native; + INTEGER_t tmpint; + + if(!sptr) ASN__ENCODE_FAILED; + + native = *(const long *)sptr; + + ASN_DEBUG("Encoding NativeInteger %s %ld (APER)", td->name, native); + + memset(&tmpint, 0, sizeof(tmpint)); + if((specs&&specs->field_unsigned) + ? asn_ulong2INTEGER(&tmpint, (unsigned long)native) + : asn_long2INTEGER(&tmpint, native)) + ASN__ENCODE_FAILED; + er = INTEGER_encode_aper(td, constraints, &tmpint, po); + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &tmpint); + return er; +} diff --git a/asn.1/skeleton/NativeInteger_ber.c b/asn.1/skeleton/NativeInteger_ber.c new file mode 100644 index 00000000..ed683625 --- /dev/null +++ b/asn.1/skeleton/NativeInteger_ber.c @@ -0,0 +1,130 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +/* + * Decode INTEGER type. + */ +asn_dec_rval_t +NativeInteger_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **nint_ptr, + const void *buf_ptr, size_t size, int tag_mode) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + long *native = (long *)*nint_ptr; + asn_dec_rval_t rval; + ber_tlv_len_t length; + + /* + * If the structure is not there, allocate it. + */ + if(native == NULL) { + native = (long *)(*nint_ptr = CALLOC(1, sizeof(*native))); + if(native == NULL) { + rval.code = RC_FAIL; + rval.consumed = 0; + return rval; + } + } + + ASN_DEBUG("Decoding %s as INTEGER (tm=%d)", + td->name, tag_mode); + + /* + * Check tags. + */ + rval = ber_check_tags(opt_codec_ctx, td, 0, buf_ptr, size, + tag_mode, 0, &length, 0); + if(rval.code != RC_OK) + return rval; + + ASN_DEBUG("%s length is %d bytes", td->name, (int)length); + + /* + * Make sure we have this length. + */ + buf_ptr = ((const char *)buf_ptr) + rval.consumed; + size -= rval.consumed; + if(length > (ber_tlv_len_t)size) { + rval.code = RC_WMORE; + rval.consumed = 0; + return rval; + } + + /* + * ASN.1 encoded INTEGER: buf_ptr, length + * Fill the native, at the same time checking for overflow. + * If overflow occurred, return with RC_FAIL. + */ + { + INTEGER_t tmp; + union { + const void *constbuf; + void *nonconstbuf; + } unconst_buf; + long l; + + unconst_buf.constbuf = buf_ptr; + tmp.buf = (uint8_t *)unconst_buf.nonconstbuf; + tmp.size = length; + + if((specs&&specs->field_unsigned) + ? asn_INTEGER2ulong(&tmp, (unsigned long *)&l) /* sic */ + : asn_INTEGER2long(&tmp, &l)) { + rval.code = RC_FAIL; + rval.consumed = 0; + return rval; + } + + *native = l; + } + + rval.code = RC_OK; + rval.consumed += length; + + ASN_DEBUG("Took %ld/%ld bytes to encode %s (%ld)", + (long)rval.consumed, (long)length, td->name, (long)*native); + + return rval; +} + +/* + * Encode the NativeInteger using the standard INTEGER type DER encoder. + */ +asn_enc_rval_t +NativeInteger_encode_der(const asn_TYPE_descriptor_t *sd, const void *ptr, + int tag_mode, ber_tlv_tag_t tag, + asn_app_consume_bytes_f *cb, void *app_key) { + unsigned long native = *(const unsigned long *)ptr; /* Disable sign ext. */ + asn_enc_rval_t erval = {0,0,0}; + INTEGER_t tmp; + +#ifdef WORDS_BIGENDIAN /* Opportunistic optimization */ + + tmp.buf = (uint8_t *)&native; + tmp.size = sizeof(native); + +#else /* Works even if WORDS_BIGENDIAN is not set where should've been */ + uint8_t buf[sizeof(native)]; + uint8_t *p; + + /* Prepare a fake INTEGER */ + for(p = buf + sizeof(buf) - 1; p >= buf; p--, native >>= 8) + *p = (uint8_t)native; + + tmp.buf = buf; + tmp.size = sizeof(buf); +#endif /* WORDS_BIGENDIAN */ + + /* Encode fake INTEGER */ + erval = INTEGER_encode_der(sd, &tmp, tag_mode, tag, cb, app_key); + if(erval.structure_ptr == &tmp) { + erval.structure_ptr = ptr; + } + return erval; +} diff --git a/asn.1/skeleton/NativeInteger_jer.c b/asn.1/skeleton/NativeInteger_jer.c new file mode 100644 index 00000000..e7d2f4a3 --- /dev/null +++ b/asn.1/skeleton/NativeInteger_jer.c @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Decode the chunk of JSON text encoding INTEGER. + */ +asn_dec_rval_t +NativeInteger_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const void *buf_ptr, + size_t size) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + asn_dec_rval_t rval; + INTEGER_t st; + void *st_ptr = (void *)&st; + long *native = (long *)*sptr; + + if(!native) { + native = (long *)(*sptr = CALLOC(1, sizeof(*native))); + if(!native) ASN__DECODE_FAILED; + } + + memset(&st, 0, sizeof(st)); + rval = INTEGER_decode_jer(opt_codec_ctx, td, &st_ptr, buf_ptr, size); + if(rval.code == RC_OK) { + long l; + if((specs&&specs->field_unsigned) + ? asn_INTEGER2ulong(&st, (unsigned long *)&l) /* sic */ + : asn_INTEGER2long(&st, &l)) { + rval.code = RC_FAIL; + rval.consumed = 0; + } else { + *native = l; + } + } else { + /* + * Cannot restart from the middle; + * there is no place to save state in the native type. + * Request a continuation from the very beginning. + */ + rval.consumed = 0; + } + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &st); + return rval; +} + +asn_enc_rval_t +NativeInteger_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + char scratch[32]; /* Enough for 64-bit int */ + asn_enc_rval_t er = {0,0,0}; + const long *native = (const long *)sptr; + + (void)ilevel; + (void)flags; + + if(!native) ASN__ENCODE_FAILED; + + er.encoded = snprintf(scratch, sizeof(scratch), + (specs && specs->field_unsigned) + ? "%lu" : "%ld", *native); + if(er.encoded <= 0 || (size_t)er.encoded >= sizeof(scratch) + || cb(scratch, er.encoded, app_key) < 0) + ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/NativeInteger_oer.c b/asn.1/skeleton/NativeInteger_oer.c new file mode 100644 index 00000000..4e900462 --- /dev/null +++ b/asn.1/skeleton/NativeInteger_oer.c @@ -0,0 +1,94 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_dec_rval_t +NativeInteger_decode_oer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, + void **nint_ptr, const void *ptr, size_t size) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + asn_dec_rval_t rval = {RC_OK, 0}; + long *native = (long *)*nint_ptr; + INTEGER_t tmpint; + INTEGER_t *tmpintptr = &tmpint; + + memset(&tmpint, 0, sizeof(tmpint)); + + if(!native) { + native = (long *)(*nint_ptr = CALLOC(1, sizeof(*native))); + if(!native) ASN__DECODE_FAILED; + } + + /* + * OPTIMIZATION: Encode directly rather than passing through INTEGER. + * Saves a memory allocation. + */ + rval = INTEGER_decode_oer(opt_codec_ctx, td, constraints, + (void **)&tmpintptr, ptr, size); + if(rval.code != RC_OK) { + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &tmpint); + return rval; + } + + if(specs && specs->field_unsigned) { + unsigned long ul; + int ok = asn_INTEGER2ulong(&tmpint, &ul) == 0; + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &tmpint); + if(ok) { + *native = ul; + } else { + rval.code = RC_FAIL; + return rval; + } + } else { + long l; + int ok = asn_INTEGER2long(&tmpint, &l) == 0; + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &tmpint); + if(ok) { + *native = l; + } else { + rval.code = RC_FAIL; + return rval; + } + } + + return rval; +} + +/* + * Encode as Canonical OER. + */ +asn_enc_rval_t +NativeInteger_encode_oer(const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, + const void *sptr, asn_app_consume_bytes_f *cb, + void *app_key) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + INTEGER_t tmpint; + long native; + + if(!sptr) ASN__ENCODE_FAILED; + + native = *(const long *)sptr; + memset(&tmpint, 0, sizeof(tmpint)); + + ASN_DEBUG("Encoding %s %ld as NativeInteger", td ? td->name : "", native); + + if((specs && specs->field_unsigned) ? asn_ulong2INTEGER(&tmpint, native) + : asn_long2INTEGER(&tmpint, native)) { + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &tmpint); + ASN__ENCODE_FAILED; + } else { + asn_enc_rval_t er = + INTEGER_encode_oer(td, constraints, &tmpint, cb, app_key); + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &tmpint); + return er; + } +} diff --git a/asn.1/skeleton/NativeInteger_print.c b/asn.1/skeleton/NativeInteger_print.c new file mode 100644 index 00000000..0602e0d2 --- /dev/null +++ b/asn.1/skeleton/NativeInteger_print.c @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * INTEGER specific human-readable output. + */ +int +NativeInteger_print(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + const long *native = (const long *)sptr; + char scratch[32]; /* Enough for 64-bit int */ + int ret; + + (void)td; /* Unused argument */ + (void)ilevel; /* Unused argument */ + + if(native) { + long value = *native; + ret = snprintf(scratch, sizeof(scratch), + (specs && specs->field_unsigned) ? "%lu" : "%ld", value); + assert(ret > 0 && (size_t)ret < sizeof(scratch)); + if(cb(scratch, ret, app_key) < 0) return -1; + if(specs && (value >= 0 || !specs->field_unsigned)) { + const asn_INTEGER_enum_map_t *el = + INTEGER_map_value2enum(specs, value); + if(el) { + if(cb(" (", 2, app_key) < 0) return -1; + if(cb(el->enum_name, el->enum_len, app_key) < 0) return -1; + if(cb(")", 1, app_key) < 0) return -1; + } + } + return 0; + } else { + return (cb("", 8, app_key) < 0) ? -1 : 0; + } +} diff --git a/asn.1/skeleton/NativeInteger_rfill.c b/asn.1/skeleton/NativeInteger_rfill.c new file mode 100644 index 00000000..fddd1496 --- /dev/null +++ b/asn.1/skeleton/NativeInteger_rfill.c @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_random_fill_result_t +NativeInteger_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, + const asn_encoding_constraints_t *constraints, + size_t max_length) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; + asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; + asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; + long *st = *sptr; + const asn_INTEGER_enum_map_t *emap; + size_t emap_len; + intmax_t value; + int find_inside_map; + + if(max_length == 0) return result_skipped; + + if(st == NULL) { + st = (long *)CALLOC(1, sizeof(*st)); + if(st == NULL) { + return result_failed; + } + } + + if(specs) { + emap = specs->value2enum; + emap_len = specs->map_count; + if(specs->strict_enumeration) { + find_inside_map = emap_len > 0; + } else { + find_inside_map = emap_len ? asn_random_between(0, 1) : 0; + } + } else { + emap = 0; + emap_len = 0; + find_inside_map = 0; + } + + if(find_inside_map) { + assert(emap_len > 0); + value = emap[asn_random_between(0, emap_len - 1)].nat_value; + } else { + static const long variants[] = { + -65536, -65535, -65534, -32769, -32768, -32767, -16385, -16384, + -16383, -257, -256, -255, -254, -129, -128, -127, + -126, -1, 0, 1, 126, 127, 128, 129, + 254, 255, 256, 257, 16383, 16384, 16385, 32767, + 32768, 32769, 65534, 65535, 65536, 65537}; + if(specs && specs->field_unsigned) { + assert(variants[18] == 0); + value = variants[asn_random_between( + 18, sizeof(variants) / sizeof(variants[0]) - 1)]; + } else { + value = variants[asn_random_between( + 0, sizeof(variants) / sizeof(variants[0]) - 1)]; + } + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + if(!constraints || !constraints->per_constraints) + constraints = &td->encoding_constraints; + + const asn_per_constraints_t *ct; + + ct = constraints ? constraints->per_constraints : 0; + if(ct && (ct->value.flags & APC_CONSTRAINED)) { + if(value < ct->value.lower_bound || value > ct->value.upper_bound) { + value = asn_random_between(ct->value.lower_bound, + ct->value.upper_bound); + } + } +#else + if(!constraints) constraints = &td->encoding_constraints; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + } + + *sptr = st; + *st = value; + return result_ok; +} diff --git a/asn.1/skeleton/NativeInteger_uper.c b/asn.1/skeleton/NativeInteger_uper.c new file mode 100644 index 00000000..4fc4ba17 --- /dev/null +++ b/asn.1/skeleton/NativeInteger_uper.c @@ -0,0 +1,70 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_dec_rval_t +NativeInteger_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, + asn_per_data_t *pd) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + asn_dec_rval_t rval; + long *native = (long *)*sptr; + INTEGER_t tmpint; + void *tmpintptr = &tmpint; + + (void)opt_codec_ctx; + ASN_DEBUG("Decoding NativeInteger %s (UPER)", td->name); + + if(!native) { + native = (long *)(*sptr = CALLOC(1, sizeof(*native))); + if(!native) ASN__DECODE_FAILED; + } + + memset(&tmpint, 0, sizeof tmpint); + rval = INTEGER_decode_uper(opt_codec_ctx, td, constraints, + &tmpintptr, pd); + if(rval.code == RC_OK) { + if((specs&&specs->field_unsigned) + ? asn_INTEGER2ulong(&tmpint, (unsigned long *)native) + : asn_INTEGER2long(&tmpint, native)) + rval.code = RC_FAIL; + else + ASN_DEBUG("NativeInteger %s got value %ld", + td->name, *native); + } + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &tmpint); + + return rval; +} + +asn_enc_rval_t +NativeInteger_encode_uper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + asn_enc_rval_t er = {0,0,0}; + long native; + INTEGER_t tmpint; + + if(!sptr) ASN__ENCODE_FAILED; + + native = *(const long *)sptr; + + ASN_DEBUG("Encoding NativeInteger %s %ld (UPER)", td->name, native); + + memset(&tmpint, 0, sizeof(tmpint)); + if((specs&&specs->field_unsigned) + ? asn_ulong2INTEGER(&tmpint, native) + : asn_long2INTEGER(&tmpint, native)) + ASN__ENCODE_FAILED; + er = INTEGER_encode_uper(td, constraints, &tmpint, po); + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &tmpint); + return er; +} diff --git a/asn.1/skeleton/NativeInteger_xer.c b/asn.1/skeleton/NativeInteger_xer.c new file mode 100644 index 00000000..18ec59af --- /dev/null +++ b/asn.1/skeleton/NativeInteger_xer.c @@ -0,0 +1,78 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Decode the chunk of XML text encoding INTEGER. + */ +asn_dec_rval_t +NativeInteger_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, + size_t size) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + asn_dec_rval_t rval; + INTEGER_t st; + void *st_ptr = (void *)&st; + long *native = (long *)*sptr; + + if(!native) { + native = (long *)(*sptr = CALLOC(1, sizeof(*native))); + if(!native) ASN__DECODE_FAILED; + } + + memset(&st, 0, sizeof(st)); + rval = INTEGER_decode_xer(opt_codec_ctx, td, &st_ptr, + opt_mname, buf_ptr, size); + if(rval.code == RC_OK) { + long l; + if((specs&&specs->field_unsigned) + ? asn_INTEGER2ulong(&st, (unsigned long *)&l) /* sic */ + : asn_INTEGER2long(&st, &l)) { + rval.code = RC_FAIL; + rval.consumed = 0; + } else { + *native = l; + } + } else { + /* + * Cannot restart from the middle; + * there is no place to save state in the native type. + * Request a continuation from the very beginning. + */ + rval.consumed = 0; + } + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &st); + return rval; +} + + +asn_enc_rval_t +NativeInteger_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + char scratch[32]; /* Enough for 64-bit int */ + asn_enc_rval_t er = {0,0,0}; + const long *native = (const long *)sptr; + + (void)ilevel; + (void)flags; + + if(!native) ASN__ENCODE_FAILED; + + er.encoded = snprintf(scratch, sizeof(scratch), + (specs && specs->field_unsigned) + ? "%lu" : "%ld", *native); + if(er.encoded <= 0 || (size_t)er.encoded >= sizeof(scratch) + || cb(scratch, er.encoded, app_key) < 0) + ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/NativeReal.c b/asn.1/skeleton/NativeReal.c new file mode 100644 index 00000000..f1b24597 --- /dev/null +++ b/asn.1/skeleton/NativeReal.c @@ -0,0 +1,250 @@ +/*- + * Copyright (c) 2004-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +/* + * Read the NativeReal.h for the explanation wrt. differences between + * REAL and NativeReal. + * Basically, both are decoders and encoders of ASN.1 REAL type, but this + * implementation deals with the standard (machine-specific) representation + * of them instead of using the platform-independent buffer. + */ +#include +#include +#include +#include + +#if defined(__clang__) +/* + * isnan() is defined using generic selections and won't compile in + * strict C89 mode because of too fancy system's standard library. + * However, prior to C11 the math had a perfectly working isnan() + * in the math library. + * Disable generic selection warning so we can test C89 mode with newer libc. + */ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wc11-extensions" +static int asn_isnan(double d) { + return isnan(d); +} +#pragma clang diagnostic pop +#else +#define asn_isnan(v) isnan(v) +#endif /* generic selections */ + +/* + * NativeReal basic type description. + */ +static const ber_tlv_tag_t asn_DEF_NativeReal_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) +}; +asn_TYPE_operation_t asn_OP_NativeReal = { + NativeReal_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + NativeReal_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + NativeReal_compare, + NativeReal_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + NativeReal_decode_ber, + NativeReal_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + NativeReal_decode_xer, + NativeReal_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + NativeReal_decode_jer, + NativeReal_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + NativeReal_decode_oer, + NativeReal_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + NativeReal_decode_uper, + NativeReal_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + NativeReal_decode_aper, + NativeReal_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + NativeReal_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_NativeReal = { + "REAL", /* The ASN.1 type is still REAL */ + "REAL", + &asn_OP_NativeReal, + asn_DEF_NativeReal_tags, + sizeof(asn_DEF_NativeReal_tags) / sizeof(asn_DEF_NativeReal_tags[0]), + asn_DEF_NativeReal_tags, /* Same as above */ + sizeof(asn_DEF_NativeReal_tags) / sizeof(asn_DEF_NativeReal_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + asn_generic_no_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + +int +NativeReal_compare(const asn_TYPE_descriptor_t *td, const void *aptr, + const void *bptr) { + + if(aptr && bptr) { + double a = NativeReal__get_double(td, aptr); + double b = NativeReal__get_double(td, bptr); + + /* NaN sorted above everything else */ + if(asn_isnan(a)) { + if(asn_isnan(b)) { + return 0; + } else { + return -1; + } + } else if(asn_isnan(b)) { + return 1; + } + /* Value comparison. */ + if(a < b) { + return -1; + } else if(a > b) { + return 1; + } else { + return 0; + } + } else if(!aptr) { + return -1; + } else { + return 1; + } +} + +int +NativeReal_copy(const asn_TYPE_descriptor_t *td, void **aptr, + const void *bptr) { + size_t float_size = NativeReal__float_size(td); + void *a = *aptr; + const void *b = bptr; + + if(!b) { + if(a) { + FREEMEM(a); + *aptr = 0; + } + return 0; + } + + if(!a) { + a = *aptr = MALLOC(float_size); + if(!a) return -1; + } + + if(float_size == sizeof(float)) { + *(float *)a = *(const float *)b; + } else { + *(double *)a = *(const double *)b; + } + + return 0; +} + +void +NativeReal_free(const asn_TYPE_descriptor_t *td, void *ptr, + enum asn_struct_free_method method) { + if(!td || !ptr) + return; + + ASN_DEBUG("Freeing %s as REAL (%d, %p, Native)", + td->name, method, ptr); + + switch(method) { + case ASFM_FREE_EVERYTHING: + FREEMEM(ptr); + break; + case ASFM_FREE_UNDERLYING: + break; + case ASFM_FREE_UNDERLYING_AND_RESET: { + const asn_NativeReal_specifics_t *specs; + size_t float_size; + specs = (const asn_NativeReal_specifics_t *)td->specifics; + float_size = specs ? specs->float_size : sizeof(double); + memset(ptr, 0, float_size); + } break; + } +} + +/* + * Local helper functions. + */ + +size_t +NativeReal__float_size(const asn_TYPE_descriptor_t *td) { + const asn_NativeReal_specifics_t *specs = + (const asn_NativeReal_specifics_t *)td->specifics; + return specs ? specs->float_size : sizeof(double); +} + +double +NativeReal__get_double(const asn_TYPE_descriptor_t *td, const void *ptr) { + size_t float_size = NativeReal__float_size(td); + if(float_size == sizeof(float)) { + return *(const float *)ptr; + } else { + return *(const double *)ptr; + } +} + +ssize_t /* Returns -1 or float size. */ +NativeReal__set(const asn_TYPE_descriptor_t *td, void **sptr, double d) { + size_t float_size = NativeReal__float_size(td); + void *native; + + if(!(native = *sptr)) { + native = (*sptr = CALLOC(1, float_size)); + if(!native) { + return -1; + } + } + + if(float_size == sizeof(float)) { + if(asn_double2float(d, (float *)native)) { + return -1; + } + } else { + *(double *)native = d; + } + + return float_size; +} + diff --git a/asn.1/skeleton/NativeReal.h b/asn.1/skeleton/NativeReal.h new file mode 100644 index 00000000..2007fbde --- /dev/null +++ b/asn.1/skeleton/NativeReal.h @@ -0,0 +1,81 @@ +/*- + * Copyright (c) 2004-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +/* + * This type differs from the standard REAL in that it is modelled using + * the fixed machine type (double), so it can hold only values of + * limited precision. There is no explicit type (i.e., NativeReal_t). + * Use of this type is normally enabled by -fnative-types. + */ +#ifndef ASN_TYPE_NativeReal_H +#define ASN_TYPE_NativeReal_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct asn_NativeReal_specifics_s { + unsigned float_size; /* sizeof(float) or sizeof(double) */ +} asn_NativeReal_specifics_t; + +extern asn_TYPE_descriptor_t asn_DEF_NativeReal; +extern asn_TYPE_operation_t asn_OP_NativeReal; + +size_t NativeReal__float_size(const asn_TYPE_descriptor_t *td); +double NativeReal__get_double(const asn_TYPE_descriptor_t *td, + const void *ptr); +ssize_t NativeReal__set(const asn_TYPE_descriptor_t *td, void **sptr, + double d); + +asn_struct_free_f NativeReal_free; + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +asn_struct_print_f NativeReal_print; +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +asn_struct_compare_f NativeReal_compare; +asn_struct_copy_f NativeReal_copy; + +#define NativeReal_constraint asn_generic_no_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +ber_type_decoder_f NativeReal_decode_ber; +der_type_encoder_f NativeReal_encode_der; +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +xer_type_decoder_f NativeReal_decode_xer; +xer_type_encoder_f NativeReal_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +jer_type_decoder_f NativeReal_decode_jer; +jer_type_encoder_f NativeReal_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +oer_type_decoder_f NativeReal_decode_oer; +oer_type_encoder_f NativeReal_encode_oer; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +per_type_decoder_f NativeReal_decode_uper; +per_type_encoder_f NativeReal_encode_uper; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +per_type_decoder_f NativeReal_decode_aper; +per_type_encoder_f NativeReal_encode_aper; +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +asn_random_fill_f NativeReal_random_fill; +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* ASN_TYPE_NativeReal_H */ diff --git a/asn.1/skeleton/NativeReal_aper.c b/asn.1/skeleton/NativeReal_aper.c new file mode 100644 index 00000000..27f0f1d4 --- /dev/null +++ b/asn.1/skeleton/NativeReal_aper.c @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include +#include + +asn_dec_rval_t +NativeReal_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + void **dbl_ptr, asn_per_data_t *pd) { + double *Dbl = (double *)*dbl_ptr; + asn_dec_rval_t rval; + REAL_t tmp; + void *ptmp = &tmp; + int ret; + + (void)constraints; + + /* + * If the structure is not there, allocate it. + */ + if(Dbl == NULL) { + *dbl_ptr = CALLOC(1, sizeof(*Dbl)); + Dbl = (double *)*dbl_ptr; + if(Dbl == NULL) + ASN__DECODE_FAILED; + } + + memset(&tmp, 0, sizeof(tmp)); + rval = OCTET_STRING_decode_aper(opt_codec_ctx, td, NULL, + &ptmp, pd); + if(rval.code != RC_OK) { + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_REAL, &tmp); + return rval; + } + + ret = asn_REAL2double(&tmp, Dbl); + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_REAL, &tmp); + if(ret) ASN__DECODE_FAILED; + + return rval; +} + +asn_enc_rval_t +NativeReal_encode_aper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + double Dbl = *(const double *)sptr; + asn_enc_rval_t erval = {0,0,0}; + REAL_t tmp; + + (void)constraints; + + /* Prepare a temporary clean structure */ + memset(&tmp, 0, sizeof(tmp)); + + if(asn_double2REAL(&tmp, Dbl)) + ASN__ENCODE_FAILED; + + /* Encode a DER REAL */ + erval = OCTET_STRING_encode_aper(td, NULL, &tmp, po); + if(erval.encoded == -1) + erval.structure_ptr = sptr; + + /* Free possibly allocated members of the temporary structure */ + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_REAL, &tmp); + + return erval; +} diff --git a/asn.1/skeleton/NativeReal_ber.c b/asn.1/skeleton/NativeReal_ber.c new file mode 100644 index 00000000..923c3df4 --- /dev/null +++ b/asn.1/skeleton/NativeReal_ber.c @@ -0,0 +1,120 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +/* + * Decode REAL type. + */ +asn_dec_rval_t +NativeReal_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const void *buf_ptr, size_t size, int tag_mode) { + asn_dec_rval_t rval; + ber_tlv_len_t length; + + ASN_DEBUG("Decoding %s as REAL (tm=%d)", td->name, tag_mode); + + /* + * Check tags. + */ + rval = ber_check_tags(opt_codec_ctx, td, 0, buf_ptr, size, tag_mode, 0, + &length, 0); + if(rval.code != RC_OK) return rval; + assert(length >= 0); /* Ensured by ber_check_tags */ + + ASN_DEBUG("%s length is %d bytes", td->name, (int)length); + + /* + * Make sure we have this length. + */ + buf_ptr = ((const char *)buf_ptr) + rval.consumed; + size -= rval.consumed; + if(length > (ber_tlv_len_t)size) { + rval.code = RC_WMORE; + rval.consumed = 0; + return rval; + } + + /* + * ASN.1 encoded REAL: buf_ptr, length + * Fill the Dbl, at the same time checking for overflow. + * If overflow occurred, return with RC_FAIL. + */ + { + uint8_t scratch[24]; /* Longer than %.16f in decimal */ + REAL_t tmp; + double d; + int ret; + + if((size_t)length < sizeof(scratch)) { + tmp.buf = scratch; + tmp.size = length; + } else { + /* This rarely happens: impractically long value */ + tmp.buf = CALLOC(1, length + 1); + tmp.size = length; + if(!tmp.buf) { + rval.code = RC_FAIL; + rval.consumed = 0; + return rval; + } + } + + memcpy(tmp.buf, buf_ptr, length); + tmp.buf[length] = '\0'; + + ret = asn_REAL2double(&tmp, &d); + if(tmp.buf != scratch) FREEMEM(tmp.buf); + if(ret) { + rval.code = RC_FAIL; + rval.consumed = 0; + return rval; + } + + if(NativeReal__set(td, sptr, d) < 0) + ASN__DECODE_FAILED; + } + + rval.code = RC_OK; + rval.consumed += length; + + ASN_DEBUG("Took %ld/%ld bytes to encode %s", (long)rval.consumed, + (long)length, td->name); + + return rval; +} + +/* + * Encode the NativeReal using the standard REAL type DER encoder. + */ +asn_enc_rval_t +NativeReal_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, + int tag_mode, ber_tlv_tag_t tag, + asn_app_consume_bytes_f *cb, void *app_key) { + double d = NativeReal__get_double(td, sptr); + asn_enc_rval_t erval = {0,0,0}; + REAL_t tmp; + + /* Prepare a temporary clean structure */ + memset(&tmp, 0, sizeof(tmp)); + + if(asn_double2REAL(&tmp, d)) + ASN__ENCODE_FAILED; + + /* Encode a fake REAL */ + erval = der_encode_primitive(td, &tmp, tag_mode, tag, cb, app_key); + if(erval.encoded == -1) { + assert(erval.structure_ptr == &tmp); + erval.structure_ptr = sptr; + } + + /* Free possibly allocated members of the temporary structure */ + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_REAL, &tmp); + + return erval; +} diff --git a/asn.1/skeleton/NativeReal_jer.c b/asn.1/skeleton/NativeReal_jer.c new file mode 100644 index 00000000..100db75f --- /dev/null +++ b/asn.1/skeleton/NativeReal_jer.c @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +/* + * Decode the chunk of JSON text encoding REAL. + */ +asn_dec_rval_t +NativeReal_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const void *buf_ptr, size_t size) { + asn_dec_rval_t rval; + REAL_t st = { 0, 0 }; + REAL_t *stp = &st; + + rval = REAL_decode_jer(opt_codec_ctx, td, (void **)&stp, buf_ptr, size); + if(rval.code == RC_OK) { + double d; + if(asn_REAL2double(&st, &d) || NativeReal__set(td, sptr, d) < 0) { + rval.code = RC_FAIL; + rval.consumed = 0; + } + } else { + /* Convert all errors into RC_FAIL */ + rval.consumed = 0; + } + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_REAL, &st); + return rval; +} + +asn_enc_rval_t + NativeReal_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_enc_rval_t er = {0,0,0}; + double native; + REAL_t tmpreal; + + (void)ilevel; + + native = NativeReal__get_double(td, sptr); + memset(&tmpreal, 0, sizeof(tmpreal)); + if(asn_double2REAL(&tmpreal, native)) + ASN__ENCODE_FAILED; + + er = REAL_encode_jer(td, &tmpreal, ilevel, flags, cb, app_key); + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_REAL, &tmpreal); + return er; +} diff --git a/asn.1/skeleton/NativeReal_oer.c b/asn.1/skeleton/NativeReal_oer.c new file mode 100644 index 00000000..66c33192 --- /dev/null +++ b/asn.1/skeleton/NativeReal_oer.c @@ -0,0 +1,228 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +/* + * Swap bytes from/to network, if local is little-endian. + * Unused endianness sections are likely removed at compile phase. + */ +static void +NativeReal__network_swap(size_t float_size, const void *srcp, uint8_t *dst) { + const uint8_t *src = srcp; + double test = -0.0; + int float_big_endian = *(const char *)&test != 0; + /* In lieu of static_assert(sizeof(double) == 8) */ + static const char sizeof_double_is_8_a[sizeof(double)-7] CC_NOTUSED; + static const char sizeof_double_is_8_b[9-sizeof(double)] CC_NOTUSED; + /* In lieu of static_assert(sizeof(sizeof) == 4) */ + static const char sizeof_float_is_4_a[sizeof(float)-3] CC_NOTUSED; + static const char sizeof_float_is_4_b[5-sizeof(float)] CC_NOTUSED; + + switch(float_size) { + case sizeof(double): + assert(sizeof(double) == 8); + if(float_big_endian) { + dst[0] = src[0]; + dst[1] = src[1]; + dst[2] = src[2]; + dst[3] = src[3]; + dst[4] = src[4]; + dst[5] = src[5]; + dst[6] = src[6]; + dst[7] = src[7]; + } else { + dst[0] = src[7]; + dst[1] = src[6]; + dst[2] = src[5]; + dst[3] = src[4]; + dst[4] = src[3]; + dst[5] = src[2]; + dst[6] = src[1]; + dst[7] = src[0]; + } + return; + case sizeof(float): + assert(sizeof(float) == 4); + if(float_big_endian) { + dst[0] = src[0]; + dst[1] = src[1]; + dst[2] = src[2]; + dst[3] = src[3]; + } else { + dst[0] = src[3]; + dst[1] = src[2]; + dst[2] = src[1]; + dst[3] = src[0]; + } + return; + } +} + +/* + * Encode as Canonical OER. + */ +asn_enc_rval_t +NativeReal_encode_oer(const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, + const void *sptr, asn_app_consume_bytes_f *cb, + void *app_key) { + asn_enc_rval_t er = {0, 0, 0}; + + if(!constraints) constraints = td->encoding_constraints.oer_constraints; + if(constraints && constraints->value.width != 0) { + /* X.696 IEEE 754 binary32 and binary64 encoding */ + uint8_t scratch[sizeof(double)]; + const asn_NativeReal_specifics_t *specs = + (const asn_NativeReal_specifics_t *)td->specifics; + size_t wire_size = constraints->value.width; + + if(specs ? (wire_size == specs->float_size) + : (wire_size == sizeof(double))) { + /* + * Our representation matches the wire, modulo endianness. + * That was the whole point of compact encoding! + */ + } else { + assert((wire_size == sizeof(double)) + || (specs && specs->float_size == wire_size)); + ASN__ENCODE_FAILED; + } + + /* + * The X.696 standard doesn't specify endianness, neither is IEEE 754. + * So we assume the network format is big endian. + */ + NativeReal__network_swap(wire_size, sptr, scratch); + if(cb(scratch, wire_size, app_key) < 0) { + ASN__ENCODE_FAILED; + } else { + er.encoded = wire_size; + ASN__ENCODED_OK(er); + } + } else { + double d = NativeReal__get_double(td, sptr); + ssize_t len_len; + REAL_t tmp; + + /* Prepare a temporary clean structure */ + memset(&tmp, 0, sizeof(tmp)); + + if(asn_double2REAL(&tmp, d)) { + ASN__ENCODE_FAILED; + } + + /* Encode a fake REAL */ + len_len = oer_serialize_length(tmp.size, cb, app_key); + if(len_len < 0 || cb(tmp.buf, tmp.size, app_key) < 0) { + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_REAL, &tmp); + ASN__ENCODE_FAILED; + } else { + er.encoded = len_len + tmp.size; + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_REAL, &tmp); + ASN__ENCODED_OK(er); + } + } +} + +asn_dec_rval_t +NativeReal_decode_oer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, void **sptr, + const void *ptr, size_t size) { + asn_dec_rval_t ok = {RC_OK, 0}; + double d; + ssize_t len_len; + size_t real_body_len; + + (void)opt_codec_ctx; + + if(!constraints) constraints = td->encoding_constraints.oer_constraints; + if(constraints && constraints->value.width != 0) { + /* X.696 IEEE 754 binary32 and binary64 encoding */ + uint8_t scratch[sizeof(double)]; + size_t wire_size = constraints->value.width; + + if(size < wire_size) + ASN__DECODE_STARVED; + + /* + * The X.696 standard doesn't specify endianness, neither is IEEE 754. + * So we assume the network format is big endian. + */ + NativeReal__network_swap(wire_size, ptr, scratch); + + + switch(wire_size) { + case sizeof(double): + { + double tmp; + memcpy(&tmp, scratch, sizeof(double)); + if(NativeReal__set(td, sptr, tmp) < 0) + ASN__DECODE_FAILED; + } + break; + case sizeof(float): + { + float tmp; + memcpy(&tmp, scratch, sizeof(float)); + if(NativeReal__set(td, sptr, tmp) < 0) + ASN__DECODE_FAILED; + } + break; + default: + ASN__DECODE_FAILED; + } + + ok.consumed = wire_size; + return ok; + } + + len_len = oer_fetch_length(ptr, size, &real_body_len); + if(len_len < 0) ASN__DECODE_FAILED; + if(len_len == 0) ASN__DECODE_STARVED; + + ptr = (const char *)ptr + len_len; + size -= len_len; + + if(real_body_len > size) ASN__DECODE_STARVED; + + { + uint8_t scratch[24]; /* Longer than %.16f in decimal */ + REAL_t tmp; + int ret; + + if(real_body_len < sizeof(scratch)) { + tmp.buf = scratch; + tmp.size = real_body_len; + } else { + /* This rarely happens: impractically long value */ + tmp.buf = CALLOC(1, real_body_len + 1); + tmp.size = real_body_len; + if(!tmp.buf) { + ASN__DECODE_FAILED; + } + } + + memcpy(tmp.buf, ptr, real_body_len); + tmp.buf[real_body_len] = '\0'; + + ret = asn_REAL2double(&tmp, &d); + if(tmp.buf != scratch) FREEMEM(tmp.buf); + if(ret) { + ASN_DEBUG("REAL decoded in %" ASN_PRI_SIZE " bytes, but can't convert t double", + real_body_len); + ASN__DECODE_FAILED; + } + } + + if(NativeReal__set(td, sptr, d) < 0) + ASN__DECODE_FAILED; + + ok.consumed = len_len + real_body_len; + return ok; +} diff --git a/asn.1/skeleton/NativeReal_print.c b/asn.1/skeleton/NativeReal_print.c new file mode 100644 index 00000000..19146969 --- /dev/null +++ b/asn.1/skeleton/NativeReal_print.c @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +/* + * REAL specific human-readable output. + */ +int +NativeReal_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + asn_app_consume_bytes_f *cb, void *app_key) { + (void)ilevel; /* Unused argument */ + + if(sptr) { + double d = NativeReal__get_double(td, sptr); + return (REAL__dump(d, 0, cb, app_key) < 0) ? -1 : 0; + } else { + return (cb("", 8, app_key) < 0) ? -1 : 0; + } +} diff --git a/asn.1/skeleton/NativeReal_rfill.c b/asn.1/skeleton/NativeReal_rfill.c new file mode 100644 index 00000000..04153eae --- /dev/null +++ b/asn.1/skeleton/NativeReal_rfill.c @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include +#include + +asn_random_fill_result_t +NativeReal_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, + const asn_encoding_constraints_t *constraints, + size_t max_length) { + asn_random_fill_result_t result_ok = {ARFILL_OK, 0}; + asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; + asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; +#ifndef INFINITY +#define INFINITY (1.0/0.0) +#endif +#ifndef NAN +#define NAN (0.0/0.0) +#endif + static const double double_values[] = { + -M_E, M_E, -M_PI, M_PI, /* Better precision than with floats */ + -1E+308, 1E+308, + /* 2^51 */ + -2251799813685248.0, 2251799813685248.0, + /* 2^52 */ + -4503599627370496.0, 4503599627370496.0, + /* 2^100 */ + -1267650600228229401496703205376.0, 1267650600228229401496703205376.0, + -DBL_MIN, DBL_MIN, + -DBL_MAX, DBL_MAX, +#ifdef DBL_TRUE_MIN + -DBL_TRUE_MIN, DBL_TRUE_MIN +#endif + }; + static const float float_values[] = { + 0, -0.0, -1, 1, -M_E, M_E, -3.14, 3.14, -M_PI, M_PI, -255, 255, + -FLT_MIN, FLT_MIN, + -FLT_MAX, FLT_MAX, +#ifdef FLT_TRUE_MIN + -FLT_TRUE_MIN, FLT_TRUE_MIN, +#endif + INFINITY, -INFINITY, NAN + }; + ssize_t float_set_size = NativeReal__float_size(td); + const size_t n_doubles = sizeof(double_values) / sizeof(double_values[0]); + const size_t n_floats = sizeof(float_values) / sizeof(float_values[0]); + double d; + + (void)constraints; + + if(max_length == 0) return result_skipped; + + if(float_set_size == sizeof(double) && asn_random_between(0, 1) == 0) { + d = double_values[asn_random_between(0, n_doubles - 1)]; + } else { + d = float_values[asn_random_between(0, n_floats - 1)]; + } + + if(NativeReal__set(td, sptr, d) < 0) { + return result_failed; + } + + result_ok.length = float_set_size; + return result_ok; +} diff --git a/asn.1/skeleton/NativeReal_uper.c b/asn.1/skeleton/NativeReal_uper.c new file mode 100644 index 00000000..78fc242d --- /dev/null +++ b/asn.1/skeleton/NativeReal_uper.c @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include +#include + +/* + * Decode REAL type using PER. + */ +asn_dec_rval_t +NativeReal_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, + asn_per_data_t *pd) { + asn_dec_rval_t rval; + double d; + REAL_t tmp; + void *ptmp = &tmp; + int ret; + + (void)constraints; + + memset(&tmp, 0, sizeof(tmp)); + rval = OCTET_STRING_decode_uper(opt_codec_ctx, &asn_DEF_REAL, + NULL, &ptmp, pd); + if(rval.code != RC_OK) { + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_REAL, &tmp); + return rval; + } + + ret = asn_REAL2double(&tmp, &d); + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_REAL, &tmp); + if(ret) ASN__DECODE_FAILED; + + if(NativeReal__set(td, sptr, d) < 0 ) + ASN__DECODE_FAILED; + + return rval; +} + +/* + * Encode the NativeReal using the OCTET STRING PER encoder. + */ +asn_enc_rval_t +NativeReal_encode_uper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + double d = NativeReal__get_double(td, sptr); + asn_enc_rval_t erval = {0,0,0}; + REAL_t tmp; + + (void)constraints; + + /* Prepare a temporary clean structure */ + memset(&tmp, 0, sizeof(tmp)); + + if(asn_double2REAL(&tmp, d)) + ASN__ENCODE_FAILED; + + /* Encode a DER REAL */ + erval = OCTET_STRING_encode_uper(&asn_DEF_REAL, NULL, &tmp, po); + if(erval.encoded == -1) + erval.structure_ptr = sptr; + + /* Free possibly allocated members of the temporary structure */ + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_REAL, &tmp); + + return erval; +} diff --git a/asn.1/skeleton/NativeReal_xer.c b/asn.1/skeleton/NativeReal_xer.c new file mode 100644 index 00000000..21cbe662 --- /dev/null +++ b/asn.1/skeleton/NativeReal_xer.c @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +/* + * Decode the chunk of XML text encoding REAL. + */ +asn_dec_rval_t +NativeReal_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, size_t size) { + asn_dec_rval_t rval; + REAL_t st = { 0, 0 }; + REAL_t *stp = &st; + + rval = REAL_decode_xer(opt_codec_ctx, td, (void **)&stp, opt_mname, + buf_ptr, size); + if(rval.code == RC_OK) { + double d; + if(asn_REAL2double(&st, &d) || NativeReal__set(td, sptr, d) < 0) { + rval.code = RC_FAIL; + rval.consumed = 0; + } + } else { + /* Convert all errors into RC_FAIL */ + rval.consumed = 0; + } + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_REAL, &st); + return rval; +} + +asn_enc_rval_t +NativeReal_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + double d = NativeReal__get_double(td, sptr); + asn_enc_rval_t er = {0,0,0}; + + (void)ilevel; + + er.encoded = REAL__dump(d, flags & XER_F_CANONICAL, cb, app_key); + if(er.encoded < 0) ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/NumericString.c b/asn.1/skeleton/NumericString.c new file mode 100644 index 00000000..a80eaca7 --- /dev/null +++ b/asn.1/skeleton/NumericString.c @@ -0,0 +1,160 @@ +/*- + * Copyright (c) 2003, 2006 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * NumericString basic type description. + */ +static const ber_tlv_tag_t asn_DEF_NumericString_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (18 << 2)), /* [UNIVERSAL 18] IMPLICIT ...*/ + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ +}; +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static int asn_DEF_NumericString_v2c(unsigned int value) { + switch(value) { + case 0x20: return 0; + case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: + case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: + return value - (0x30 - 1); + } + return -1; +} +static int asn_DEF_NumericString_c2v(unsigned int code) { + if(code > 0) { + if(code <= 10) + return code + (0x30 - 1); + else + return -1; + } else { + return 0x20; + } +} +static asn_per_constraints_t asn_DEF_NumericString_per_constraints = { + { APC_CONSTRAINED, 4, 4, 0x20, 0x39 }, /* Value */ + { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 }, /* Size */ + asn_DEF_NumericString_v2c, + asn_DEF_NumericString_c2v +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_operation_t asn_OP_NumericString = { + OCTET_STRING_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + OCTET_STRING_print_utf8, /* ASCII subset */ +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + OCTET_STRING_compare, + OCTET_STRING_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + OCTET_STRING_decode_xer_utf8, + OCTET_STRING_encode_xer_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + OCTET_STRING_decode_jer_utf8, + OCTET_STRING_encode_jer_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + OCTET_STRING_decode_oer, + OCTET_STRING_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OCTET_STRING_decode_uper, + OCTET_STRING_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, + OCTET_STRING_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + OCTET_STRING_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_NumericString = { + "NumericString", + "NumericString", + &asn_OP_NumericString, + asn_DEF_NumericString_tags, + sizeof(asn_DEF_NumericString_tags) + / sizeof(asn_DEF_NumericString_tags[0]) - 1, + asn_DEF_NumericString_tags, + sizeof(asn_DEF_NumericString_tags) + / sizeof(asn_DEF_NumericString_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_DEF_NumericString_per_constraints, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NumericString_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + +int +NumericString_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const NumericString_t *st = (const NumericString_t *)sptr; + + if(st && st->buf) { + uint8_t *buf = st->buf; + uint8_t *end = buf + st->size; + + /* + * Check the alphabet of the NumericString. + * ASN.1:1984 (X.409) + */ + for(; buf < end; buf++) { + switch(*buf) { + case 0x20: + case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: + case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: + continue; + } + ASN__CTFAIL(app_key, td, sptr, + "%s: value byte %ld (%d) " + "not in NumericString alphabet (%s:%d)", + td->name, + (long)((buf - st->buf) + 1), + *buf, + __FILE__, __LINE__); + return -1; + } + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + return 0; +} diff --git a/asn.1/skeleton/NumericString.h b/asn.1/skeleton/NumericString.h new file mode 100644 index 00000000..c0c12101 --- /dev/null +++ b/asn.1/skeleton/NumericString.h @@ -0,0 +1,67 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _NumericString_H_ +#define _NumericString_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef OCTET_STRING_t NumericString_t; /* Implemented via OCTET STRING */ + +extern asn_TYPE_descriptor_t asn_DEF_NumericString; +extern asn_TYPE_operation_t asn_OP_NumericString; + +#define NumericString_free OCTET_STRING_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +#define NumericString_print OCTET_STRING_print_utf8 +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define NumericString_compare OCTET_STRING_compare +#define NumericString_copy OCTET_STRING_copy + +asn_constr_check_f NumericString_constraint; + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define NumericString_decode_ber OCTET_STRING_decode_ber +#define NumericString_encode_der OCTET_STRING_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#define NumericString_decode_xer OCTET_STRING_decode_xer_utf8 +#define NumericString_encode_xer OCTET_STRING_encode_xer_utf8 +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +#define NumericString_decode_jer OCTET_STRING_decode_jer_utf8 +#define NumericString_encode_jer OCTET_STRING_encode_jer_utf8 +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +#define NumericString_decode_oer OCTET_STRING_decode_oer +#define NumericString_encode_oer OCTET_STRING_encode_oer +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#define NumericString_decode_uper OCTET_STRING_decode_uper +#define NumericString_encode_uper OCTET_STRING_encode_uper +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define NumericString_decode_aper OCTET_STRING_decode_aper +#define NumericString_encode_aper OCTET_STRING_encode_aper +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +#define NumericString_random_fill OCTET_STRING_random_fill +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* _NumericString_H_ */ diff --git a/asn.1/skeleton/OBJECT_IDENTIFIER.c b/asn.1/skeleton/OBJECT_IDENTIFIER.c new file mode 100644 index 00000000..c5ab38ea --- /dev/null +++ b/asn.1/skeleton/OBJECT_IDENTIFIER.c @@ -0,0 +1,535 @@ +/*- + * Copyright (c) 2003, 2004 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include +#include +#include /* for CHAR_BIT */ +#include +#include + +/* + * OBJECT IDENTIFIER basic type description. + */ +static const ber_tlv_tag_t asn_DEF_OBJECT_IDENTIFIER_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)) +}; +asn_TYPE_operation_t asn_OP_OBJECT_IDENTIFIER = { + ASN__PRIMITIVE_TYPE_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + OBJECT_IDENTIFIER_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + OCTET_STRING_compare, /* Implemented in terms of a string comparison */ + OCTET_STRING_copy, /* Implemented in terms of a string copy */ +#if !defined(ASN_DISABLE_BER_SUPPORT) + ber_decode_primitive, + der_encode_primitive, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + OBJECT_IDENTIFIER_decode_xer, + OBJECT_IDENTIFIER_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + OBJECT_IDENTIFIER_decode_jer, + OBJECT_IDENTIFIER_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + OBJECT_IDENTIFIER_decode_oer, + OBJECT_IDENTIFIER_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OCTET_STRING_decode_uper, + OCTET_STRING_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, + OCTET_STRING_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + OBJECT_IDENTIFIER_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_OBJECT_IDENTIFIER = { + "OBJECT IDENTIFIER", + "OBJECT_IDENTIFIER", + &asn_OP_OBJECT_IDENTIFIER, + asn_DEF_OBJECT_IDENTIFIER_tags, + sizeof(asn_DEF_OBJECT_IDENTIFIER_tags) + / sizeof(asn_DEF_OBJECT_IDENTIFIER_tags[0]), + asn_DEF_OBJECT_IDENTIFIER_tags, /* Same as above */ + sizeof(asn_DEF_OBJECT_IDENTIFIER_tags) + / sizeof(asn_DEF_OBJECT_IDENTIFIER_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + OBJECT_IDENTIFIER_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + +int +OBJECT_IDENTIFIER_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, + void *app_key) { + const OBJECT_IDENTIFIER_t *st = (const OBJECT_IDENTIFIER_t *)sptr; + + if(st && st->buf) { + if(st->size < 1) { + ASN__CTFAIL(app_key, td, sptr, + "%s: at least one numerical value " + "expected (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + return 0; +} + +static ssize_t +OBJECT_IDENTIFIER_get_first_arcs(const uint8_t *arcbuf, size_t arcbuf_len, + asn_oid_arc_t *arc0, asn_oid_arc_t *arc1) { + asn_oid_arc_t value; + + ssize_t rd = OBJECT_IDENTIFIER_get_single_arc(arcbuf, arcbuf_len, &value); + if(rd <= 0) return rd; + + if(value >= 80) { + *arc0 = 2; + *arc1 = value - 80; + } else if(value >= 40) { + *arc0 = 1; + *arc1 = value - 40; + } else { + *arc0 = 0; + *arc1 = value; + } + + return rd; +} + +ssize_t +OBJECT_IDENTIFIER_get_single_arc(const uint8_t *arcbuf, size_t arcbuf_len, + asn_oid_arc_t *ret_value) { + const uint8_t *b = arcbuf; + const uint8_t *arcend = arcbuf + arcbuf_len; /* End of arc */ + + if(arcbuf == arcend) { + return 0; + } else { + asn_oid_arc_t accum; + asn_oid_arc_t upper_limit = (ASN_OID_ARC_MAX >> 7); + /* When the value reaches "upper_limit", it can take */ + /* at most one more digit. If it exceeds "upper_limit" */ + /* but there are more digits - it's an Overflow condition */ + /* Gather all bits into the accumulator */ + for(accum = 0; b < arcend; b++) { + accum = (accum << 7) | (*b & ~0x80); + if((*b & 0x80) == 0) { // no more digits + if(accum <= ASN_OID_ARC_MAX) { + *ret_value = accum; + return 1 + (b - arcbuf); + } else { + errno = ERANGE; /* Overflow */ + return -1; + } + } else { // to make sure we aren't wrapping around + if(accum > upper_limit) { + errno = ERANGE; /* Overflow */ + return -1; + } + } + } + errno = EINVAL; + return -1; + } + +} + +ssize_t +OBJECT_IDENTIFIER__dump_body(const OBJECT_IDENTIFIER_t *st, + asn_app_consume_bytes_f *cb, void *app_key) { + char scratch[32]; + asn_oid_arc_t arc0 = 0; + asn_oid_arc_t arc1 = 0; + size_t produced = 0; + size_t off = 0; + ssize_t rd; + int ret; + + rd = OBJECT_IDENTIFIER_get_first_arcs(st->buf, st->size, &arc0, &arc1); + if(rd <= 0) { + return -1; + } + + ret = snprintf(scratch, sizeof(scratch), "%"PRIu32".%"PRIu32, arc0, arc1); + if(ret >= (ssize_t)sizeof(scratch)) { + return -1; + } + produced += ret; + if(cb(scratch, ret, app_key) < 0) + return -1; + + for(off = rd; ; ) { + asn_oid_arc_t arc; + rd = OBJECT_IDENTIFIER_get_single_arc(st->buf + off, st->size - off, + &arc); + if(rd < 0) { + return -1; + } else if(rd == 0) { + /* No more arcs. */ + break; + } else { + off += rd; + assert(off <= st->size); + ret = snprintf(scratch, sizeof(scratch), ".%" PRIu32, arc); + if(ret >= (ssize_t)sizeof(scratch)) { + return -1; + } + produced += ret; + if(cb(scratch, ret, app_key) < 0) return -1; + } + } + + if(off != st->size) { + ASN_DEBUG("Could not scan to the end of Object Identifier"); + return -1; + } + + return produced; +} + +ssize_t +OBJECT_IDENTIFIER_get_arcs(const OBJECT_IDENTIFIER_t *st, asn_oid_arc_t *arcs, + size_t arc_slots) { + asn_oid_arc_t arc0 = 0; + asn_oid_arc_t arc1 = 0; + size_t num_arcs = 0; + size_t off; + ssize_t rd; + + if(!st || !st->buf) { + errno = EINVAL; + return -1; + } + + rd = OBJECT_IDENTIFIER_get_first_arcs(st->buf, st->size, &arc0, &arc1); + if(rd <= 0) { + return -1; + } + num_arcs = 2; + switch(arc_slots) { + default: + case 2: + arcs[1] = arc1; + /* Fall through */ + case 1: + arcs[0] = arc0; + /* Fall through */ + case 0: + break; + } + + for(off = rd; ; ) { + asn_oid_arc_t arc; + rd = OBJECT_IDENTIFIER_get_single_arc(st->buf + off, st->size - off, + &arc); + if(rd < 0) { + return -1; + } else if(rd == 0) { + /* No more arcs. */ + break; + } else { + off += rd; + if(num_arcs < arc_slots) { + arcs[num_arcs] = arc; + } + num_arcs++; + } + } + + if(off != st->size) { + return -1; + } + + return num_arcs; +} + + +/* + * Save the single value as an object identifier arc. + */ +ssize_t +OBJECT_IDENTIFIER_set_single_arc(uint8_t *arcbuf, size_t arcbuf_len, + asn_oid_arc_t value) { + /* + * The following conditions must hold: + * assert(arcbuf); + */ + uint8_t scratch[((sizeof(value) * CHAR_BIT + 6) / 7)]; + uint8_t *scratch_end = &scratch[sizeof(scratch)-1]; + uint8_t *b; + size_t result_len; + uint8_t mask; + + for(b = scratch_end, mask = 0; ; mask = 0x80, b--) { + *b = mask | (value & 0x7f); + value >>= 7; + if(!value) { + break; + } + } + + result_len = (scratch_end - b) + 1; + + if(result_len > arcbuf_len) { + return -1; + } + + memcpy(arcbuf, b, result_len); + + return result_len; +} + +int +OBJECT_IDENTIFIER_set_arcs(OBJECT_IDENTIFIER_t *st, const asn_oid_arc_t *arcs, + size_t arc_slots) { + uint8_t *buf; + uint8_t *bp; + ssize_t wrote; + asn_oid_arc_t arc0; + asn_oid_arc_t arc1; + size_t size; + size_t i; + + if(!st || !arcs || arc_slots < 2) { + errno = EINVAL; + return -1; + } + + arc0 = arcs[0]; + arc1 = arcs[1]; + + if(arc0 <= 1) { + if(arc1 >= 40) { + /* 8.19.4: At most 39 subsequent values (including 0) */ + errno = ERANGE; + return -1; + } + } else if(arc0 == 2) { + if(arc1 > ASN_OID_ARC_MAX - 80) { + errno = ERANGE; + return -1; + } + } else if(arc0 > 2) { + /* 8.19.4: Only three values are allocated from the root node */ + errno = ERANGE; + return -1; + } + + /* + * After above tests it is known that the value of arc0 is completely + * trustworthy (0..2). However, the arc1's value is still meaningless. + */ + + /* + * Roughly estimate the maximum size necessary to encode these arcs. + * This estimation implicitly takes in account the following facts, + * that cancel each other: + * * the first two arcs are encoded in a single value. + * * the first value may require more space (+1 byte) + * * the value of the first arc which is in range (0..2) + */ + size = ((sizeof(asn_oid_arc_t) * CHAR_BIT + 6) / 7) * arc_slots; + bp = buf = (uint8_t *)MALLOC(size + 1); + if(!buf) { + /* ENOMEM */ + return -1; + } + + wrote = OBJECT_IDENTIFIER_set_single_arc(bp, size, arc0 * 40 + arc1); + if(wrote <= 0) { + FREEMEM(buf); + return -1; + } + assert((size_t)wrote <= size); + bp += wrote; + size -= wrote; + + for(i = 2; i < arc_slots; i++) { + wrote = OBJECT_IDENTIFIER_set_single_arc(bp, size, arcs[i]); + if(wrote <= 0) { + FREEMEM(buf); + return -1; + } + assert((size_t)wrote <= size); + bp += wrote; + size -= wrote; + } + + /* + * Replace buffer. + */ + st->size = bp - buf; + bp = st->buf; + st->buf = buf; + st->buf[st->size] = '\0'; + if(bp) FREEMEM(bp); + + return 0; +} + +ssize_t +OBJECT_IDENTIFIER_parse_arcs(const char *oid_text, ssize_t oid_txt_length, + asn_oid_arc_t *arcs, size_t arcs_count, + const char **opt_oid_text_end) { + size_t num_arcs = 0; + const char *oid_end; + enum { + ST_LEADSPACE, + ST_TAILSPACE, + ST_AFTERVALUE, /* Next character ought to be '.' or a space */ + ST_WAITDIGITS /* Next character is expected to be a digit */ + } state = ST_LEADSPACE; + + if(!oid_text || oid_txt_length < -1 || (arcs_count && !arcs)) { + if(opt_oid_text_end) *opt_oid_text_end = oid_text; + errno = EINVAL; + return -1; + } + + if(oid_txt_length == -1) + oid_txt_length = strlen(oid_text); + +#define _OID_CAPTURE_ARC(oid_text, oid_end) \ + do { \ + const char *endp = oid_end; \ + unsigned long value; \ + switch(asn_strtoul_lim(oid_text, &endp, &value)) { \ + case ASN_STRTOX_EXTRA_DATA: \ + case ASN_STRTOX_OK: \ + if(value <= ASN_OID_ARC_MAX) { \ + if(num_arcs < arcs_count) arcs[num_arcs] = value; \ + num_arcs++; \ + oid_text = endp - 1; \ + break; \ + } \ + /* Fall through */ \ + case ASN_STRTOX_ERROR_RANGE: \ + if(opt_oid_text_end) *opt_oid_text_end = oid_text; \ + errno = ERANGE; \ + return -1; \ + case ASN_STRTOX_ERROR_INVAL: \ + case ASN_STRTOX_EXPECT_MORE: \ + if(opt_oid_text_end) *opt_oid_text_end = oid_text; \ + errno = EINVAL; \ + return -1; \ + } \ + } while(0) + + for(oid_end = oid_text + oid_txt_length; oid_text broken OID */ + return -1; + case ST_LEADSPACE: + case ST_WAITDIGITS: + _OID_CAPTURE_ARC(oid_text, oid_end); + state = ST_AFTERVALUE; + continue; + } + break; + default: + /* Unexpected symbols */ + state = ST_WAITDIGITS; + break; + } /* switch() */ + break; + } /* for() */ + + + if(opt_oid_text_end) *opt_oid_text_end = oid_text; + + /* Finalize last arc */ + switch(state) { + case ST_LEADSPACE: + return 0; /* No OID found in input data */ + case ST_WAITDIGITS: + errno = EINVAL; /* Broken OID */ + return -1; + case ST_AFTERVALUE: + case ST_TAILSPACE: + return num_arcs; + } + + errno = EINVAL; /* Broken OID */ + return -1; +} diff --git a/asn.1/skeleton/OBJECT_IDENTIFIER.h b/asn.1/skeleton/OBJECT_IDENTIFIER.h new file mode 100644 index 00000000..cef8c6cd --- /dev/null +++ b/asn.1/skeleton/OBJECT_IDENTIFIER.h @@ -0,0 +1,186 @@ +/* + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _OBJECT_IDENTIFIER_H_ +#define _OBJECT_IDENTIFIER_H_ + +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef uint32_t asn_oid_arc_t; +#define ASN_OID_ARC_MAX (~((asn_oid_arc_t)0)) + +typedef ASN__PRIMITIVE_TYPE_t OBJECT_IDENTIFIER_t; + +extern asn_TYPE_descriptor_t asn_DEF_OBJECT_IDENTIFIER; +extern asn_TYPE_operation_t asn_OP_OBJECT_IDENTIFIER; + +ssize_t OBJECT_IDENTIFIER__dump_body(const OBJECT_IDENTIFIER_t *st, + asn_app_consume_bytes_f *cb, + void *app_key); + +#define OBJECT_IDENTIFIER_free ASN__PRIMITIVE_TYPE_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +asn_struct_print_f OBJECT_IDENTIFIER_print; +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define OBJECT_IDENTIFIER_compare OCTET_STRING_compare +#define OBJECT_IDENTIFIER_copy OCTET_STRING_copy + +asn_constr_check_f OBJECT_IDENTIFIER_constraint; + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define OBJECT_IDENTIFIER_decode_ber ber_decode_primitive +#define OBJECT_IDENTIFIER_encode_der der_encode_primitive +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +xer_type_decoder_f OBJECT_IDENTIFIER_decode_xer; +xer_type_encoder_f OBJECT_IDENTIFIER_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +jer_type_decoder_f OBJECT_IDENTIFIER_decode_jer; +jer_type_encoder_f OBJECT_IDENTIFIER_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +#define OBJECT_IDENTIFIER_decode_oer oer_decode_primitive +#define OBJECT_IDENTIFIER_encode_oer oer_encode_primitive +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#define OBJECT_IDENTIFIER_decode_uper OCTET_STRING_decode_uper +#define OBJECT_IDENTIFIER_encode_uper OCTET_STRING_encode_uper +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define OBJECT_IDENTIFIER_decode_aper OCTET_STRING_decode_aper +#define OBJECT_IDENTIFIER_encode_aper OCTET_STRING_encode_aper +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +asn_random_fill_f OBJECT_IDENTIFIER_random_fill; +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +/********************************** + * Some handy conversion routines * + **********************************/ + +/* + * This function fills an (arcs) array with OBJECT IDENTIFIER arcs + * up to specified (arc_slots) elements. + * + * EXAMPLE: + * void print_arcs(OBJECT_IDENTIFIER_t *oid) { + * asn_oid_arc_t fixed_arcs[10]; // Try with fixed space first + * asn_oid_arc_t *arcs = fixed_arcs; + * size_t arc_slots = sizeof(fixed_arcs)/sizeof(fixed_arcs[0]); // 10 + * ssize_t count; // Real number of arcs. + * int i; + * + * count = OBJECT_IDENTIFIER_get_arcs(oid, arcs, arc_slots); + * // If necessary, reallocate arcs array and try again. + * if(count > arc_slots) { + * arc_slots = count; + * arcs = malloc(sizeof(asn_oid_arc_t) * arc_slots); + * if(!arcs) return; + * count = OBJECT_IDENTIFIER_get_arcs(oid, arcs, arc_slots); + * assert(count == arc_slots); + * } + * + * // Print the contents of the arcs array. + * for(i = 0; i < count; i++) + * printf("%"PRIu32"\n", arcs[i]); + * + * // Avoid memory leak. + * if(arcs != fixed_arcs) free(arcs); + * } + * + * RETURN VALUES: + * -1/EINVAL: Invalid arguments (oid is missing) + * -1/ERANGE: One or more arcs have value out of array cell type range. + * >=0: Number of arcs contained in the OBJECT IDENTIFIER + * + * WARNING: The function always returns the actual number of arcs, + * even if there is no sufficient (arc_slots) provided. + */ +ssize_t OBJECT_IDENTIFIER_get_arcs(const OBJECT_IDENTIFIER_t *oid, + asn_oid_arc_t *arcs, size_t arc_slots); + +/* + * This functions initializes the OBJECT IDENTIFIER object with + * the given set of arcs. + * The minimum of two arcs must be present; some restrictions apply. + * RETURN VALUES: + * -1/EINVAL: Invalid arguments + * -1/ERANGE: The first two arcs do not conform to ASN.1 restrictions. + * -1/ENOMEM: Memory allocation failed + * 0: The object was initialized with new arcs. + */ +int OBJECT_IDENTIFIER_set_arcs(OBJECT_IDENTIFIER_t *oid, + const asn_oid_arc_t *arcs, size_t arcs_count); + + +/* + * Parse the OBJECT IDENTIFIER textual representation ("1.3.6.1.4.1.9363"). + * No arc can exceed the (0..ASN_OID_ARC_MAX, which is the same as UINT32_MAX). + * This function is not specific to OBJECT IDENTIFIER, it may be used to parse + * the RELATIVE-OID data, or any other data consisting of dot-separated + * series of numeric values. + * + * If (oid_txt_length == -1), the strlen() will be invoked to determine the + * size of the (oid_text) string. + * + * After return, the optional (opt_oid_text_end) is set to the character after + * the last parsed one. (opt_oid_text_end) is never less than (oid_text). + * + * RETURN VALUES: + * -1: Parse error. + * >= 0: Number of arcs contained in the OBJECT IDENTIFIER. + * + * WARNING: The function always returns the real number of arcs, + * even if there is no sufficient (arc_slots) provided. + * This is useful for (arc_slots) value estimation. + */ +ssize_t OBJECT_IDENTIFIER_parse_arcs(const char *oid_text, + ssize_t oid_txt_length, + asn_oid_arc_t *arcs, size_t arcs_count, + const char **opt_oid_text_end); + +/* + * Internal functions. + * Used by RELATIVE-OID implementation in particular. + */ + +/* + * Retrieve a single arc of size from the (arcbuf) buffer. + * RETURN VALUES: + * -1: Failed to retrieve the value from the (arcbuf). + * >0: Number of bytes consumed from the (arcbuf), <= (arcbuf_len). + */ +ssize_t OBJECT_IDENTIFIER_get_single_arc(const uint8_t *arcbuf, + size_t arcbuf_len, + asn_oid_arc_t *ret_value); + +/* + * Write the unterminated arc value into the (arcbuf) which has the size at + * least (arcbuf_len). + * RETURN VALUES: + * -1: (arcbuf_len) size is not sufficient to write the value. + * : Number of bytes appended to the arcbuf (<= arcbuf_len). + */ +ssize_t OBJECT_IDENTIFIER_set_single_arc(uint8_t *arcbuf, size_t arcbuf_len, + asn_oid_arc_t arc_value); + +#ifdef __cplusplus +} +#endif + +#endif /* _OBJECT_IDENTIFIER_H_ */ diff --git a/asn.1/skeleton/OBJECT_IDENTIFIER_jer.c b/asn.1/skeleton/OBJECT_IDENTIFIER_jer.c new file mode 100644 index 00000000..1b0cde7c --- /dev/null +++ b/asn.1/skeleton/OBJECT_IDENTIFIER_jer.c @@ -0,0 +1,107 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +#define CQUOTE 0x22 + +static enum jer_pbd_rval +OBJECT_IDENTIFIER__jer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, + const void *chunk_buf, size_t chunk_size) { + OBJECT_IDENTIFIER_t *st = (OBJECT_IDENTIFIER_t *)sptr; + const char *chunk_end = (const char *)chunk_buf + chunk_size; + const char *p = (const char *)chunk_buf; + const char *endptr; + asn_oid_arc_t s_arcs[10]; + asn_oid_arc_t *arcs = s_arcs; + ssize_t num_arcs; + ssize_t ret; + + (void)td; + + /* Strip quotes */ + for (; p < chunk_end; ++p) { + if (*p == CQUOTE) { + ++p; + break; + } + } + --chunk_end; + for (; chunk_end >= p; --chunk_end) { + if (*chunk_end == CQUOTE) + break; + } + if (chunk_end - p < 0) + return JPBD_BROKEN_ENCODING; + chunk_size = chunk_end - p; + chunk_buf = p; + + num_arcs = OBJECT_IDENTIFIER_parse_arcs( + (const char *)chunk_buf, chunk_size, arcs, + sizeof(s_arcs) / sizeof(s_arcs[0]), &endptr); + if(num_arcs < 0) { + /* Expecting more than zero arcs */ + return JPBD_BROKEN_ENCODING; + } else if(num_arcs == 0) { + return JPBD_NOT_BODY_IGNORE; + } + (void)chunk_end; + assert(endptr == chunk_end); + + if((size_t)num_arcs > sizeof(s_arcs)/sizeof(s_arcs[0])) { + arcs = (asn_oid_arc_t *)MALLOC(num_arcs * sizeof(asn_oid_arc_t)); + if(!arcs) return JPBD_SYSTEM_FAILURE; + ret = OBJECT_IDENTIFIER_parse_arcs((const char *)chunk_buf, chunk_size, + arcs, num_arcs, &endptr); + if(ret != num_arcs) + return JPBD_SYSTEM_FAILURE; /* assert?.. */ + } + + /* + * Convert arcs into BER representation. + */ + ret = OBJECT_IDENTIFIER_set_arcs(st, arcs, num_arcs); + if(arcs != s_arcs) FREEMEM(arcs); + + return ret ? JPBD_SYSTEM_FAILURE : JPBD_BODY_CONSUMED; +} + +asn_dec_rval_t +OBJECT_IDENTIFIER_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const void *buf_ptr, + size_t size) { + return jer_decode_primitive(opt_codec_ctx, td, + sptr, sizeof(OBJECT_IDENTIFIER_t), + buf_ptr, size, OBJECT_IDENTIFIER__jer_body_decode); +} + +asn_enc_rval_t +OBJECT_IDENTIFIER_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const OBJECT_IDENTIFIER_t *st = (const OBJECT_IDENTIFIER_t *)sptr; + asn_enc_rval_t er = {0,0,0}; + ssize_t oid_encoded = 0; + + (void)ilevel; + (void)flags; + + if(!st || !st->buf) { + ASN__ENCODE_FAILED; + } + + ASN__CALLBACK("\"", 1); + oid_encoded = OBJECT_IDENTIFIER__dump_body(st, cb, app_key); + if(oid_encoded < 0) goto cb_failed; + er.encoded += oid_encoded; + ASN__CALLBACK("\"", 1); + + ASN__ENCODED_OK(er); + +cb_failed: + ASN__ENCODE_FAILED; +} diff --git a/asn.1/skeleton/OBJECT_IDENTIFIER_print.c b/asn.1/skeleton/OBJECT_IDENTIFIER_print.c new file mode 100644 index 00000000..b0c3a9e8 --- /dev/null +++ b/asn.1/skeleton/OBJECT_IDENTIFIER_print.c @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +int +OBJECT_IDENTIFIER_print(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, asn_app_consume_bytes_f *cb, + void *app_key) { + const OBJECT_IDENTIFIER_t *st = (const OBJECT_IDENTIFIER_t *)sptr; + + (void)td; /* Unused argument */ + (void)ilevel; /* Unused argument */ + + if(!st || !st->buf) + return (cb("", 8, app_key) < 0) ? -1 : 0; + + /* Dump preamble */ + if(cb("{ ", 2, app_key) < 0) + return -1; + + if(OBJECT_IDENTIFIER__dump_body(st, cb, app_key) < 0) { + return -1; + } + + return (cb(" }", 2, app_key) < 0) ? -1 : 0; +} diff --git a/asn.1/skeleton/OBJECT_IDENTIFIER_rfill.c b/asn.1/skeleton/OBJECT_IDENTIFIER_rfill.c new file mode 100644 index 00000000..55093c8e --- /dev/null +++ b/asn.1/skeleton/OBJECT_IDENTIFIER_rfill.c @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Generate values from the list of interesting values, or just a random + * value up to the upper limit. + */ +static asn_oid_arc_t +OBJECT_IDENTIFIER__biased_random_arc(asn_oid_arc_t upper_bound) { + const asn_oid_arc_t values[] = {0, 1, 127, 128, 129, 254, 255, 256}; + size_t idx; + + switch(asn_random_between(0, 2)) { + case 0: + idx = asn_random_between(0, sizeof(values) / sizeof(values[0]) - 1); + if(values[idx] < upper_bound) { + return values[idx]; + } + /* Fall through */ + case 1: + return asn_random_between(0, upper_bound); + case 2: + default: + return upper_bound; + } +} + +asn_random_fill_result_t +OBJECT_IDENTIFIER_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, + const asn_encoding_constraints_t *constraints, + size_t max_length) { + asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; + asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; + asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; + OBJECT_IDENTIFIER_t *st; + asn_oid_arc_t arcs[5]; + size_t arcs_len = asn_random_between(2, 5); + size_t i; + + (void)constraints; + + if(max_length < arcs_len) return result_skipped; + + if(*sptr) { + st = *sptr; + } else { + st = CALLOC(1, sizeof(*st)); + } + + arcs[0] = asn_random_between(0, 2); + arcs[1] = OBJECT_IDENTIFIER__biased_random_arc( + arcs[0] <= 1 ? 39 : (ASN_OID_ARC_MAX - 80)); + for(i = 2; i < arcs_len; i++) { + arcs[i] = OBJECT_IDENTIFIER__biased_random_arc(ASN_OID_ARC_MAX); + } + + if(OBJECT_IDENTIFIER_set_arcs(st, arcs, arcs_len)) { + if(st != *sptr) { + ASN_STRUCT_FREE(*td, st); + } + return result_failed; + } + + *sptr = st; + + result_ok.length = st->size; + return result_ok; +} diff --git a/asn.1/skeleton/OBJECT_IDENTIFIER_xer.c b/asn.1/skeleton/OBJECT_IDENTIFIER_xer.c new file mode 100644 index 00000000..706e51a9 --- /dev/null +++ b/asn.1/skeleton/OBJECT_IDENTIFIER_xer.c @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +static enum xer_pbd_rval +OBJECT_IDENTIFIER__xer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, + const void *chunk_buf, size_t chunk_size) { + OBJECT_IDENTIFIER_t *st = (OBJECT_IDENTIFIER_t *)sptr; + const char *chunk_end = (const char *)chunk_buf + chunk_size; + const char *endptr; + asn_oid_arc_t s_arcs[10]; + asn_oid_arc_t *arcs = s_arcs; + ssize_t num_arcs; + ssize_t ret; + + (void)td; + + num_arcs = OBJECT_IDENTIFIER_parse_arcs( + (const char *)chunk_buf, chunk_size, arcs, + sizeof(s_arcs) / sizeof(s_arcs[0]), &endptr); + if(num_arcs < 0) { + /* Expecting more than zero arcs */ + return XPBD_BROKEN_ENCODING; + } else if(num_arcs == 0) { + return XPBD_NOT_BODY_IGNORE; + } + (void)chunk_end; + assert(endptr == chunk_end); + + if((size_t)num_arcs > sizeof(s_arcs)/sizeof(s_arcs[0])) { + arcs = (asn_oid_arc_t *)MALLOC(num_arcs * sizeof(asn_oid_arc_t)); + if(!arcs) return XPBD_SYSTEM_FAILURE; + ret = OBJECT_IDENTIFIER_parse_arcs((const char *)chunk_buf, chunk_size, + arcs, num_arcs, &endptr); + if(ret != num_arcs) + return XPBD_SYSTEM_FAILURE; /* assert?.. */ + } + + /* + * Convert arcs into BER representation. + */ + ret = OBJECT_IDENTIFIER_set_arcs(st, arcs, num_arcs); + if(arcs != s_arcs) FREEMEM(arcs); + + return ret ? XPBD_SYSTEM_FAILURE : XPBD_BODY_CONSUMED; +} + +asn_dec_rval_t +OBJECT_IDENTIFIER_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, + size_t size) { + return xer_decode_primitive(opt_codec_ctx, td, + sptr, sizeof(OBJECT_IDENTIFIER_t), opt_mname, + buf_ptr, size, OBJECT_IDENTIFIER__xer_body_decode); +} + +asn_enc_rval_t +OBJECT_IDENTIFIER_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const OBJECT_IDENTIFIER_t *st = (const OBJECT_IDENTIFIER_t *)sptr; + asn_enc_rval_t er = {0,0,0}; + + (void)ilevel; + (void)flags; + + if(!st || !st->buf) { + ASN__ENCODE_FAILED; + } + + er.encoded = OBJECT_IDENTIFIER__dump_body(st, cb, app_key); + if(er.encoded < 0) ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/OCTET_STRING.c b/asn.1/skeleton/OCTET_STRING.c new file mode 100644 index 00000000..fc983b4e --- /dev/null +++ b/asn.1/skeleton/OCTET_STRING.c @@ -0,0 +1,423 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +/* + * OCTET STRING basic type description. + */ +static const ber_tlv_tag_t asn_DEF_OCTET_STRING_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) +}; +asn_OCTET_STRING_specifics_t asn_SPC_OCTET_STRING_specs = { + sizeof(OCTET_STRING_t), + offsetof(OCTET_STRING_t, _asn_ctx), + ASN_OSUBV_STR +}; +asn_TYPE_operation_t asn_OP_OCTET_STRING = { + OCTET_STRING_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + OCTET_STRING_print, /* OCTET STRING generally means a non-ascii sequence */ +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + OCTET_STRING_compare, + OCTET_STRING_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OCTET_STRING_decode_ber, + OCTET_STRING_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + OCTET_STRING_decode_xer_hex, + OCTET_STRING_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + OCTET_STRING_decode_jer_hex, + OCTET_STRING_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + OCTET_STRING_decode_oer, + OCTET_STRING_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OCTET_STRING_decode_uper, /* Unaligned PER decoder */ + OCTET_STRING_encode_uper, /* Unaligned PER encoder */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, /* Aligned PER decoder */ + OCTET_STRING_encode_aper, /* Aligned PER encoder */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + OCTET_STRING_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_OCTET_STRING = { + "OCTET STRING", /* Canonical name */ + "OCTET_STRING", /* XML tag name */ + &asn_OP_OCTET_STRING, + asn_DEF_OCTET_STRING_tags, + sizeof(asn_DEF_OCTET_STRING_tags) + / sizeof(asn_DEF_OCTET_STRING_tags[0]), + asn_DEF_OCTET_STRING_tags, /* Same as above */ + sizeof(asn_DEF_OCTET_STRING_tags) + / sizeof(asn_DEF_OCTET_STRING_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + asn_generic_no_constraint + }, + 0, 0, /* No members */ + &asn_SPC_OCTET_STRING_specs +}; + +void +OCTET_STRING_free(const asn_TYPE_descriptor_t *td, void *sptr, + enum asn_struct_free_method method) { + OCTET_STRING_t *st = (OCTET_STRING_t *)sptr; + + if(!td || !st) + return; + + ASN_DEBUG("Freeing %s as OCTET STRING", td->name); + + if(st->buf) { + FREEMEM(st->buf); + st->buf = 0; + } + +#if !defined(ASN_DISABLE_BER_SUPPORT) + const asn_OCTET_STRING_specifics_t *specs; + asn_struct_ctx_t *ctx; + + specs = td->specifics + ? (const asn_OCTET_STRING_specifics_t *)td->specifics + : &asn_SPC_OCTET_STRING_specs; + ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + + /* + * Remove decode-time stack. + */ + struct _stack *stck; + stck = (struct _stack *)ctx->ptr; + if(stck) { + while(stck->tail) { + struct _stack_el *sel = stck->tail; + stck->tail = sel->prev; + FREEMEM(sel); + } + FREEMEM(stck); + } +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + + switch(method) { + case ASFM_FREE_EVERYTHING: + FREEMEM(sptr); + break; + case ASFM_FREE_UNDERLYING: + break; + case ASFM_FREE_UNDERLYING_AND_RESET: + memset(sptr, 0, + td->specifics + ? ((const asn_OCTET_STRING_specifics_t *)(td->specifics)) + ->struct_size + : sizeof(OCTET_STRING_t)); + break; + } +} + +/* + * Conversion routines. + */ +int +OCTET_STRING_fromBuf(OCTET_STRING_t *st, const char *str, int len) { + void *buf; + + if(st == 0 || (str == 0 && len)) { + errno = EINVAL; + return -1; + } + + /* + * Clear the OCTET STRING. + */ + if(str == NULL) { + FREEMEM(st->buf); + st->buf = 0; + st->size = 0; + return 0; + } + + /* Determine the original string size, if not explicitly given */ + if(len < 0) + len = strlen(str); + + /* Allocate and fill the memory */ + buf = MALLOC(len + 1); + if(buf == NULL) + return -1; + + memcpy(buf, str, len); + ((uint8_t *)buf)[len] = '\0'; /* Couldn't use memcpy(len+1)! */ + FREEMEM(st->buf); + st->buf = (uint8_t *)buf; + st->size = len; + + return 0; +} + +OCTET_STRING_t * +OCTET_STRING_new_fromBuf(const asn_TYPE_descriptor_t *td, const char *str, + int len) { + const asn_OCTET_STRING_specifics_t *specs = + td->specifics ? (const asn_OCTET_STRING_specifics_t *)td->specifics + : &asn_SPC_OCTET_STRING_specs; + OCTET_STRING_t *st; + + st = (OCTET_STRING_t *)CALLOC(1, specs->struct_size); + if(st && str && OCTET_STRING_fromBuf(st, str, len)) { + FREEMEM(st); + st = NULL; + } + + return st; +} + +/* + * Lexicographically compare the common prefix of both strings, + * and if it is the same return -1 for the smallest string. + */ +int +OCTET_STRING_compare(const asn_TYPE_descriptor_t *td, const void *aptr, + const void *bptr) { + const asn_OCTET_STRING_specifics_t *specs = td->specifics; + const OCTET_STRING_t *a = aptr; + const OCTET_STRING_t *b = bptr; + + (void)specs; + assert(!specs || specs->subvariant != ASN_OSUBV_BIT); + + if(a && b) { + size_t common_prefix_size = a->size <= b->size ? a->size : b->size; + int ret = memcmp(a->buf, b->buf, common_prefix_size); + if(ret == 0) { + /* Figure out which string with equal prefixes is longer. */ + if(a->size < b->size) { + return -1; + } else if(a->size > b->size) { + return 1; + } else { + return 0; + } + } else { + return ret < 0 ? -1 : 1; + } + } else if(!a && !b) { + return 0; + } else if(!a) { + return -1; + } else { + return 1; + } + +} + +int +OCTET_STRING_copy(const asn_TYPE_descriptor_t *td, void **aptr, + const void *bptr) { + const asn_OCTET_STRING_specifics_t *specs = + td->specifics ? (const asn_OCTET_STRING_specifics_t *)td->specifics + : &asn_SPC_OCTET_STRING_specs; + OCTET_STRING_t *a = *aptr; + const OCTET_STRING_t *b = bptr; + + if(!b) { + if(a) { + FREEMEM(a->buf); + a->buf = 0; + a->size = 0; + FREEMEM(a); + } + *aptr = 0; + return 0; + } + + if(!a) { + a = *aptr = (OCTET_STRING_t *)CALLOC(1, specs->struct_size); + if(!a) return -1; + } + + void *buf = MALLOC(b->size + 1); + if(!buf) return -1; + memcpy(buf, b->buf, b->size); + ((uint8_t *)buf)[b->size] = '\0'; + + FREEMEM(a->buf); + a->buf = (uint8_t *)buf; + a->size = b->size; + + return 0; +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +int +OCTET_STRING_per_get_characters(asn_per_data_t *po, uint8_t *buf, + size_t units, unsigned int bpc, unsigned int unit_bits, + long lb, long ub, const asn_per_constraints_t *pc) { + uint8_t *end = buf + units * bpc; + + ASN_DEBUG("Expanding %d characters into (%ld..%ld):%d", + (int)units, lb, ub, unit_bits); + + /* X.691: 27.5.4 */ + if((unsigned long)ub <= ((unsigned long)2 << (unit_bits - 1))) { + /* Decode without translation */ + lb = 0; + } else if(pc && pc->code2value) { + if(unit_bits > 16) + return 1; /* FATAL: can't have constrained + * UniversalString with more than + * 16 million code points */ + for(; buf < end; buf += bpc) { + int value; + int code = per_get_few_bits(po, unit_bits); + if(code < 0) return -1; /* WMORE */ + value = pc->code2value(code); + if(value < 0) { + ASN_DEBUG("Code %d (0x%02x) is" + " not in map (%ld..%ld)", + code, code, lb, ub); + return 1; /* FATAL */ + } + switch(bpc) { + case 1: *buf = value; break; + case 2: buf[0] = value >> 8; buf[1] = value; break; + case 4: buf[0] = value >> 24; buf[1] = value >> 16; + buf[2] = value >> 8; buf[3] = value; break; + } + } + return 0; + } + + /* Shortcut the no-op copying to the aligned structure */ + if(lb == 0 && (unit_bits == 8 * bpc)) { + return per_get_many_bits(po, buf, 0, unit_bits * units); + } + + for(; buf < end; buf += bpc) { + int32_t code = per_get_few_bits(po, unit_bits); + int32_t ch = code + lb; + if(code < 0) return -1; /* WMORE */ + if(ch > ub) { + ASN_DEBUG("Code %d is out of range (%ld..%ld)", + ch, lb, ub); + return 1; /* FATAL */ + } + switch(bpc) { + case 1: *buf = ch; break; + case 2: buf[0] = ch >> 8; buf[1] = ch; break; + case 4: buf[0] = ch >> 24; buf[1] = ch >> 16; + buf[2] = ch >> 8; buf[3] = ch; break; + } + } + + return 0; +} + +int +OCTET_STRING_per_put_characters(asn_per_outp_t *po, const uint8_t *buf, + size_t units, unsigned int bpc, unsigned int unit_bits, + long lb, long ub, const asn_per_constraints_t *pc) { + const uint8_t *end = buf + units * bpc; + + ASN_DEBUG("Squeezing %d characters into (%ld..%ld):%d (%d bpc)", + (int)units, lb, ub, unit_bits, bpc); + + /* X.691: 27.5.4 */ + if((unsigned long)ub <= ((unsigned long)2 << (unit_bits - 1))) { + /* Encode as is */ + lb = 0; + } else if(pc && pc->value2code) { + for(; buf < end; buf += bpc) { + int code; + uint32_t value; + switch(bpc) { + case 1: value = *(const uint8_t *)buf; break; + case 2: value = (buf[0] << 8) | buf[1]; break; + case 4: value = (buf[0] << 24) | (buf[1] << 16) + | (buf[2] << 8) | buf[3]; break; + default: return -1; + } + code = pc->value2code(value); + if(code < 0) { + ASN_DEBUG("Character %d (0x%02x) is" + " not in map (%ld..%ld)", + *buf, *buf, lb, ub); + return -1; + } + if(per_put_few_bits(po, code, unit_bits)) + return -1; + } + } + + /* Shortcut the no-op copying to the aligned structure */ + if(lb == 0 && (unit_bits == 8 * bpc)) { + return per_put_many_bits(po, buf, unit_bits * units); + } + + for(ub -= lb; buf < end; buf += bpc) { + int ch; + uint32_t value; + switch(bpc) { + case 1: + value = *(const uint8_t *)buf; + break; + case 2: + value = (buf[0] << 8) | buf[1]; + break; + case 4: + value = (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]; + break; + default: + return -1; + } + ch = value - lb; + if(ch < 0 || ch > ub) { + ASN_DEBUG("Character %d (0x%02x) is out of range (%ld..%ld)", *buf, + value, lb, ub + lb); + return -1; + } + if(per_put_few_bits(po, ch, unit_bits)) return -1; + } + + return 0; +} +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ diff --git a/asn.1/skeleton/OCTET_STRING.h b/asn.1/skeleton/OCTET_STRING.h new file mode 100644 index 00000000..1340865d --- /dev/null +++ b/asn.1/skeleton/OCTET_STRING.h @@ -0,0 +1,168 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _OCTET_STRING_H_ +#define _OCTET_STRING_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct OCTET_STRING { + uint8_t *buf; /* Buffer with consecutive OCTET_STRING bits */ + size_t size; /* Size of the buffer */ + + asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */ +} OCTET_STRING_t; + +extern asn_TYPE_descriptor_t asn_DEF_OCTET_STRING; +extern asn_TYPE_operation_t asn_OP_OCTET_STRING; + +asn_struct_free_f OCTET_STRING_free; + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +asn_struct_print_f OCTET_STRING_print; +asn_struct_print_f OCTET_STRING_print_utf8; +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +asn_struct_compare_f OCTET_STRING_compare; +asn_struct_copy_f OCTET_STRING_copy; + +#define OCTET_STRING_constraint asn_generic_no_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +ber_type_decoder_f OCTET_STRING_decode_ber; +der_type_encoder_f OCTET_STRING_encode_der; +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +xer_type_decoder_f OCTET_STRING_decode_xer_hex; /* Hexadecimal */ +xer_type_decoder_f OCTET_STRING_decode_xer_binary; /* 01010111010 */ +xer_type_decoder_f OCTET_STRING_decode_xer_utf8; /* ASCII/UTF-8 */ +xer_type_encoder_f OCTET_STRING_encode_xer; +xer_type_encoder_f OCTET_STRING_encode_xer_utf8; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +jer_type_decoder_f OCTET_STRING_decode_jer_hex; /* Hexadecimal */ +jer_type_decoder_f OCTET_STRING_decode_jer_utf8; /* ASCII/UTF-8 */ +jer_type_encoder_f OCTET_STRING_encode_jer; +jer_type_encoder_f OCTET_STRING_encode_jer_utf8; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +oer_type_decoder_f OCTET_STRING_decode_oer; +oer_type_encoder_f OCTET_STRING_encode_oer; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +per_type_decoder_f OCTET_STRING_decode_uper; +per_type_encoder_f OCTET_STRING_encode_uper; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +per_type_decoder_f OCTET_STRING_decode_aper; +per_type_encoder_f OCTET_STRING_encode_aper; +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +asn_random_fill_f OCTET_STRING_random_fill; +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +int OCTET_STRING_per_get_characters( + asn_per_data_t *po, + uint8_t *buf, + size_t units, + unsigned int bpc, + unsigned int unit_bits, + long lb, + long ub, + const asn_per_constraints_t *pc); + +int OCTET_STRING_per_put_characters( + asn_per_outp_t *po, + const uint8_t *buf, + size_t units, + unsigned int bpc, + unsigned int unit_bits, + long lb, + long ub, + const asn_per_constraints_t *pc); +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +/****************************** + * Handy conversion routines. * + ******************************/ + +/* + * This function clears the previous value of the OCTET STRING (if any) + * and then allocates a new memory with the specified content (str/size). + * If size = -1, the size of the original string will be determined + * using strlen(str). + * If str equals to NULL, the function will silently clear the + * current contents of the OCTET STRING. + * Returns 0 if it was possible to perform operation, -1 otherwise. + */ +int OCTET_STRING_fromBuf(OCTET_STRING_t *s, const char *str, int size); + +/* Handy conversion from the C string into the OCTET STRING. */ +#define OCTET_STRING_fromString(s, str) OCTET_STRING_fromBuf(s, str, -1) + +/* + * Allocate and fill the new OCTET STRING and return a pointer to the newly + * allocated object. NULL is permitted in str: the function will just allocate + * empty OCTET STRING. + */ +OCTET_STRING_t *OCTET_STRING_new_fromBuf(const asn_TYPE_descriptor_t *td, + const char *str, int size); + +/**************************** + * Internally useful stuff. * + ****************************/ + +typedef struct asn_OCTET_STRING_specifics_s { + /* + * Target structure description. + */ + unsigned struct_size; /* Size of the structure */ + unsigned ctx_offset; /* Offset of the asn_struct_ctx_t member */ + + enum asn_OS_Subvariant { + ASN_OSUBV_ANY, /* The open type (ANY) */ + ASN_OSUBV_BIT, /* BIT STRING */ + ASN_OSUBV_STR, /* String types, not {BMP,Universal}String */ + ASN_OSUBV_U16, /* 16-bit character (BMPString) */ + ASN_OSUBV_U32 /* 32-bit character (UniversalString) */ + } subvariant; +} asn_OCTET_STRING_specifics_t; + +extern asn_OCTET_STRING_specifics_t asn_SPC_OCTET_STRING_specs; + +size_t OCTET_STRING_random_length_constrained( + const asn_TYPE_descriptor_t *, const asn_encoding_constraints_t *, + size_t max_length); + +#if !defined(ASN_DISABLE_BER_SUPPORT) +struct _stack_el { + ber_tlv_len_t left; /* What's left to read (or -1) */ + ber_tlv_len_t got; /* What was actually processed */ + unsigned cont_level; /* Depth of subcontainment */ + int want_nulls; /* Want null "end of content" octets? */ + int bits_chopped; /* Flag in BIT STRING mode */ + ber_tlv_tag_t tag; /* For debugging purposes */ + struct _stack_el *prev; + struct _stack_el *next; +}; +struct _stack { + struct _stack_el *tail; + struct _stack_el *cur_ptr; +}; +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* _OCTET_STRING_H_ */ diff --git a/asn.1/skeleton/OCTET_STRING_aper.c b/asn.1/skeleton/OCTET_STRING_aper.c new file mode 100644 index 00000000..26013831 --- /dev/null +++ b/asn.1/skeleton/OCTET_STRING_aper.c @@ -0,0 +1,413 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include /* for .bits_unused member */ + +#undef RETURN +#define RETURN(_code) do {\ + asn_dec_rval_t tmprval;\ + tmprval.code = _code;\ + tmprval.consumed = consumed_myself;\ + return tmprval;\ + } while(0) + +static asn_per_constraints_t asn_DEF_OCTET_STRING_constraints = { + { APC_CONSTRAINED, 8, 8, 0, 255 }, + { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 }, + 0, 0 +}; + +asn_dec_rval_t +OCTET_STRING_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + void **sptr, asn_per_data_t *pd) { + + const asn_OCTET_STRING_specifics_t *specs = td->specifics + ? (const asn_OCTET_STRING_specifics_t *)td->specifics + : &asn_SPC_OCTET_STRING_specs; + const asn_per_constraints_t *pc = constraints + ? constraints + : td->encoding_constraints.per_constraints; + const asn_per_constraint_t *cval; + const asn_per_constraint_t *csiz; + asn_dec_rval_t rval = { RC_OK, 0 }; + BIT_STRING_t *st = (BIT_STRING_t *)*sptr; + ssize_t consumed_myself = 0; + int repeat; + enum { + OS__BPC_BIT = 0, + OS__BPC_CHAR = 1, + OS__BPC_U16 = 2, + OS__BPC_U32 = 4 + } bpc; /* Bytes per character */ + unsigned int unit_bits; + unsigned int canonical_unit_bits; + + (void)opt_codec_ctx; + + if(pc) { + cval = &pc->value; + csiz = &pc->size; + } else { + cval = &asn_DEF_OCTET_STRING_constraints.value; + csiz = &asn_DEF_OCTET_STRING_constraints.size; + } + + switch(specs->subvariant) { + default: +/* + case ASN_OSUBV_ANY: + ASN_DEBUG("Unrecognized subvariant %d", specs->subvariant); + RETURN(RC_FAIL); +*/ + case ASN_OSUBV_BIT: + canonical_unit_bits = unit_bits = 1; + bpc = OS__BPC_BIT; + break; + case ASN_OSUBV_ANY: + case ASN_OSUBV_STR: + canonical_unit_bits = unit_bits = 8; +/* + if(cval->flags & APC_CONSTRAINED) + unit_bits = cval->range_bits; +*/ + bpc = OS__BPC_CHAR; + break; + case ASN_OSUBV_U16: + canonical_unit_bits = unit_bits = 16; + if(cval->flags & APC_CONSTRAINED) + unit_bits = cval->range_bits; + bpc = OS__BPC_U16; + break; + case ASN_OSUBV_U32: + canonical_unit_bits = unit_bits = 32; + if(cval->flags & APC_CONSTRAINED) + unit_bits = cval->range_bits; + bpc = OS__BPC_U32; + break; + } + + /* + * Allocate the string. + */ + if(!st) { + st = (BIT_STRING_t *)(*sptr = CALLOC(1, specs->struct_size)); + if(!st) RETURN(RC_FAIL); + } + + ASN_DEBUG("PER Decoding %s size %lld .. %lld bits %d", + csiz->flags & APC_EXTENSIBLE ? "extensible" : "non-extensible", + (long long int)csiz->lower_bound, (long long int)csiz->upper_bound, + csiz->effective_bits); + + if(csiz->flags & APC_EXTENSIBLE) { + int inext = per_get_few_bits(pd, 1); + if(inext < 0) RETURN(RC_WMORE); + if(inext) { + csiz = &asn_DEF_OCTET_STRING_constraints.size; + cval = &asn_DEF_OCTET_STRING_constraints.value; + unit_bits = canonical_unit_bits; + } + } + + if(csiz->effective_bits >= 0) { + FREEMEM(st->buf); + if(bpc) { + st->size = csiz->upper_bound * bpc; + } else { + st->size = (csiz->upper_bound + 7) >> 3; + } + st->buf = (uint8_t *)MALLOC(st->size + 1); + if(!st->buf) { st->size = 0; RETURN(RC_FAIL); } + } + + /* X.691, #16.5: zero-length encoding */ + /* X.691, #16.6: short fixed length encoding (up to 2 octets) */ + /* X.691, #16.7: long fixed length encoding (up to 64K octets) */ + if(csiz->effective_bits == 0) { + int ret; + /* X.691 #16 NOTE 1 for fixed length (<= 16 bits) strings */ + if (st->size > 2 || csiz->range_bits != 0) { + if (aper_get_align(pd) < 0) + RETURN(RC_FAIL); + } + if(bpc) { + ASN_DEBUG("Decoding OCTET STRING size %lld", + (long long int)csiz->upper_bound); + ret = OCTET_STRING_per_get_characters(pd, st->buf, + csiz->upper_bound, + bpc, unit_bits, + cval->lower_bound, + cval->upper_bound, + pc); + if(ret > 0) RETURN(RC_FAIL); + } else { + ASN_DEBUG("Decoding BIT STRING size %lld", + (long long int)csiz->upper_bound); + ret = per_get_many_bits(pd, st->buf, 0, + unit_bits * csiz->upper_bound); + } + if(ret < 0) RETURN(RC_WMORE); + consumed_myself += unit_bits * csiz->upper_bound; + st->buf[st->size] = 0; + if(bpc == 0) { + int ubs = (csiz->upper_bound & 0x7); + st->bits_unused = ubs ? 8 - ubs : 0; + } + RETURN(RC_OK); + } + + st->size = 0; + do { + ssize_t raw_len; + ssize_t len_bytes; + ssize_t len_bits; + void *p; + int ret; + + repeat = 0; + /* Get the PER length */ + if (csiz->upper_bound - csiz->lower_bound == 0) + /* Indefinite length case */ + raw_len = aper_get_length(pd, -1, -1, csiz->effective_bits, &repeat); + else + raw_len = aper_get_length(pd, csiz->lower_bound, csiz->upper_bound, + csiz->effective_bits, &repeat); + if(raw_len < 0) RETURN(RC_WMORE); + + ASN_DEBUG("Got PER length eb %ld, len %ld, %s (%s)", + (long)csiz->effective_bits, (long)raw_len, + repeat ? "repeat" : "once", td->name); + + /* X.691 #16 NOTE 1 for fixed length (<=16 bits) strings */ + if ((raw_len > 2) || (csiz->upper_bound > 2) || (csiz->range_bits != 0)) + { + if (aper_get_align(pd) < 0) + RETURN(RC_FAIL); + } + + if(bpc) { + len_bytes = raw_len * bpc; + len_bits = len_bytes * unit_bits; + } else { + len_bits = raw_len; + len_bytes = (len_bits + 7) >> 3; + if(len_bits & 0x7) + st->bits_unused = 8 - (len_bits & 0x7); + /* len_bits be multiple of 16K if repeat is set */ + } + p = REALLOC(st->buf, st->size + len_bytes + 1); + if(!p) RETURN(RC_FAIL); + st->buf = (uint8_t *)p; + + if(bpc) { + ret = OCTET_STRING_per_get_characters(pd, + &st->buf[st->size], + raw_len, bpc, + unit_bits, + cval->lower_bound, + cval->upper_bound, + pc); + if(ret > 0) RETURN(RC_FAIL); + } else { + ret = per_get_many_bits(pd, &st->buf[st->size], + 0, len_bits); + } + if(ret < 0) RETURN(RC_WMORE); + st->size += len_bytes; + } while(repeat); + st->buf[st->size] = 0; /* nul-terminate */ + + return rval; +} + +asn_enc_rval_t +OCTET_STRING_encode_aper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + + const asn_OCTET_STRING_specifics_t *specs = td->specifics + ? (const asn_OCTET_STRING_specifics_t *)td->specifics + : &asn_SPC_OCTET_STRING_specs; + const asn_per_constraints_t *pc = constraints + ? constraints + : td->encoding_constraints.per_constraints; + const asn_per_constraint_t *cval; + const asn_per_constraint_t *csiz; + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + asn_enc_rval_t er = { 0, 0, 0 }; + int inext = 0; /* Lies not within extension root */ + unsigned int unit_bits; + unsigned int canonical_unit_bits; + unsigned int sizeinunits; + const uint8_t *buf; + int ret; + enum { + OS__BPC_BIT = 0, + OS__BPC_CHAR = 1, + OS__BPC_U16 = 2, + OS__BPC_U32 = 4 + } bpc; /* Bytes per character */ + int ct_extensible; + + if(!st || (!st->buf && st->size)) + ASN__ENCODE_FAILED; + + if(pc) { + cval = &pc->value; + csiz = &pc->size; + } else { + cval = &asn_DEF_OCTET_STRING_constraints.value; + csiz = &asn_DEF_OCTET_STRING_constraints.size; + } + ct_extensible = csiz->flags & APC_EXTENSIBLE; + + switch(specs->subvariant) { + default: +/* + case ASN_OSUBV_ANY: + ASN__ENCODE_FAILED; +*/ + case ASN_OSUBV_BIT: + canonical_unit_bits = unit_bits = 1; + bpc = OS__BPC_BIT; + sizeinunits = st->size * 8 - (st->bits_unused & 0x07); + ASN_DEBUG("BIT STRING of %d bytes", + sizeinunits); + break; + case ASN_OSUBV_ANY: + case ASN_OSUBV_STR: + canonical_unit_bits = unit_bits = 8; +/* + if(cval->flags & APC_CONSTRAINED) + unit_bits = 8; +*/ + bpc = OS__BPC_CHAR; + sizeinunits = st->size; + break; + case ASN_OSUBV_U16: + canonical_unit_bits = unit_bits = 16; + if(cval->flags & APC_CONSTRAINED) + unit_bits = cval->range_bits; + bpc = OS__BPC_U16; + sizeinunits = st->size / 2; + break; + case ASN_OSUBV_U32: + canonical_unit_bits = unit_bits = 32; + if(cval->flags & APC_CONSTRAINED) + unit_bits = cval->range_bits; + bpc = OS__BPC_U32; + sizeinunits = st->size / 4; + break; + } + + ASN_DEBUG("Encoding %s into %d units of %d bits" + " (%lld..%lld, effective %d)%s", + td->name, sizeinunits, unit_bits, + (long long int)csiz->lower_bound, + (long long int)csiz->upper_bound, + csiz->effective_bits, ct_extensible ? " EXT" : ""); + + /* Figure out wheter size lies within PER visible constraint */ + + if(csiz->effective_bits >= 0) { + if((int)sizeinunits < csiz->lower_bound + || (int)sizeinunits > csiz->upper_bound) { + if(ct_extensible) { + cval = &asn_DEF_OCTET_STRING_constraints.value; + csiz = &asn_DEF_OCTET_STRING_constraints.size; + unit_bits = canonical_unit_bits; + inext = 1; + } else + ASN__ENCODE_FAILED; + } + } else { + inext = 0; + } + + if(ct_extensible) { + /* Declare whether length is [not] within extension root */ + if(per_put_few_bits(po, inext, 1)) + ASN__ENCODE_FAILED; + } + + /* X.691, #16.5: zero-length encoding */ + /* X.691, #16.6: short fixed length encoding (up to 2 octets) */ + /* X.691, #16.7: long fixed length encoding (up to 64K octets) */ + if(csiz->effective_bits >= 0) { + ASN_DEBUG("Encoding %zu bytes (%lld), length in %d bits", + st->size, (long long int)(sizeinunits - csiz->lower_bound), + csiz->effective_bits); + if (csiz->effective_bits > 0) { + ret = aper_put_length(po, csiz->lower_bound, csiz->upper_bound, + sizeinunits - csiz->lower_bound, NULL); + if(ret < 0) ASN__ENCODE_FAILED; + } + if (csiz->effective_bits > 0 || (st->size > 2) + || (csiz->upper_bound > (2 * 8 / unit_bits)) + || (csiz->range_bits != 0)) + { /* X.691 #16 NOTE 1 for fixed length (<=16 bits) strings*/ + if (aper_put_align(po) < 0) + ASN__ENCODE_FAILED; + } + if(bpc) { + ret = OCTET_STRING_per_put_characters(po, st->buf, + sizeinunits, + bpc, unit_bits, + cval->lower_bound, + cval->upper_bound, + pc); + } else { + ret = per_put_many_bits(po, st->buf, + sizeinunits * unit_bits); + } + if(ret) ASN__ENCODE_FAILED; + ASN__ENCODED_OK(er); + } + + ASN_DEBUG("Encoding %zu bytes", st->size); + + if(sizeinunits == 0) { + if(aper_put_length(po, -1, -1, 0, NULL) < 0) + ASN__ENCODE_FAILED; + ASN__ENCODED_OK(er); + } + + buf = st->buf; + while(sizeinunits) { + int need_eom = 0; + ssize_t maySave = aper_put_length(po, -1, -1, sizeinunits, &need_eom); + + if(maySave < 0) ASN__ENCODE_FAILED; + + ASN_DEBUG("Encoding %ld of %ld", + (long)maySave, (long)sizeinunits); + + if(bpc) { + ret = OCTET_STRING_per_put_characters(po, buf, maySave, + bpc, unit_bits, + cval->lower_bound, + cval->upper_bound, + pc); + } else { + ret = per_put_many_bits(po, buf, maySave * unit_bits); + } + if(ret) ASN__ENCODE_FAILED; + + if(bpc) + buf += maySave * bpc; + else + buf += maySave >> 3; + sizeinunits -= maySave; + assert(!(maySave & 0x07) || !sizeinunits); + if(need_eom && (aper_put_length(po, -1, -1, 0, NULL) < 0)) + ASN__ENCODE_FAILED; /* End of Message length */ + } + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/OCTET_STRING_ber.c b/asn.1/skeleton/OCTET_STRING_ber.c new file mode 100644 index 00000000..9530eaed --- /dev/null +++ b/asn.1/skeleton/OCTET_STRING_ber.c @@ -0,0 +1,525 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include /* for .bits_unused member */ + +#undef _CH_PHASE +#define _CH_PHASE(ctx, inc) do {\ + if(ctx->phase == 0)\ + ctx->context = 0;\ + ctx->phase += inc;\ + } while(0) + +#undef NEXT_PHASE +#define NEXT_PHASE(ctx) _CH_PHASE(ctx, +1) +#undef PREV_PHASE +#define PREV_PHASE(ctx) _CH_PHASE(ctx, -1) + +#undef ADVANCE +#define ADVANCE(num_bytes) do {\ + size_t num = (num_bytes);\ + buf_ptr = ((const char *)buf_ptr) + num;\ + size -= num;\ + consumed_myself += num;\ + } while(0) + +#undef RETURN +#define RETURN(_code) do {\ + asn_dec_rval_t tmprval;\ + tmprval.code = _code;\ + tmprval.consumed = consumed_myself;\ + return tmprval;\ + } while(0) + +#undef APPEND +#define APPEND(bufptr, bufsize) do {\ + size_t _bs = (bufsize); /* Append size */\ + size_t _ns = ctx->context; /* Allocated now */\ + size_t _es = st->size + _bs; /* Expected size */\ + /* int is really a typeof(st->size): */\ + if((int)_es < 0) RETURN(RC_FAIL);\ + if(_ns <= _es) {\ + void *ptr;\ + /* Be nice and round to the memory allocator */\ + do { _ns = _ns ? _ns << 1 : 16; }\ + while(_ns <= _es);\ + /* int is really a typeof(st->size): */\ + if((int)_ns < 0) RETURN(RC_FAIL);\ + ptr = REALLOC(st->buf, _ns);\ + if(ptr) {\ + st->buf = (uint8_t *)ptr;\ + ctx->context = _ns;\ + } else {\ + RETURN(RC_FAIL);\ + }\ + ASN_DEBUG("Reallocating into %ld", (long)_ns);\ + }\ + memcpy(st->buf + st->size, bufptr, _bs);\ + /* Convenient nul-termination */\ + st->buf[_es] = '\0';\ + st->size = _es;\ + } while(0) + +/* + * The main reason why ASN.1 is still alive is that too much time and effort + * is necessary for learning it more or less adequately, thus creating a gut + * necessity to demonstrate that acquired skill everywhere afterwards. + * No, I am not going to explain what the following stuff is. + */ +static struct _stack_el * +OS__add_stack_el(struct _stack *st) { + struct _stack_el *nel; + + /* + * Reuse the old stack frame or allocate a new one. + */ + if(st->cur_ptr && st->cur_ptr->next) { + nel = st->cur_ptr->next; + nel->bits_chopped = 0; + nel->got = 0; + /* Retain the nel->cont_level, it's correct. */ + } else { + nel = (struct _stack_el *)CALLOC(1, sizeof(struct _stack_el)); + if(nel == NULL) + return NULL; + + if(st->tail) { + /* Increase a subcontainment depth */ + nel->cont_level = st->tail->cont_level + 1; + st->tail->next = nel; + } + nel->prev = st->tail; + st->tail = nel; + } + + st->cur_ptr = nel; + + return nel; +} + +static struct _stack * +_new_stack(void) { + return (struct _stack *)CALLOC(1, sizeof(struct _stack)); +} + +/* + * Decode OCTET STRING type. + */ +asn_dec_rval_t +OCTET_STRING_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const void *buf_ptr, size_t size, int tag_mode) { + const asn_OCTET_STRING_specifics_t *specs = td->specifics + ? (const asn_OCTET_STRING_specifics_t *)td->specifics + : &asn_SPC_OCTET_STRING_specs; + BIT_STRING_t *st = (BIT_STRING_t *)*sptr; + asn_dec_rval_t rval; + asn_struct_ctx_t *ctx; + ssize_t consumed_myself = 0; + struct _stack *stck; /* Expectations stack structure */ + struct _stack_el *sel = 0; /* Stack element */ + int tlv_constr; + enum asn_OS_Subvariant type_variant = specs->subvariant; + + ASN_DEBUG("Decoding %s as %s (frame %ld)", + td->name, + (type_variant == ASN_OSUBV_STR) ? + "OCTET STRING" : "OS-SpecialCase", + (long)size); + + /* + * Create the string if does not exist. + */ + if(st == NULL) { + st = (BIT_STRING_t *)(*sptr = CALLOC(1, specs->struct_size)); + if(st == NULL) RETURN(RC_FAIL); + } + + /* Restore parsing context */ + ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + + switch(ctx->phase) { + case 0: + /* + * Check tags. + */ + rval = ber_check_tags(opt_codec_ctx, td, ctx, + buf_ptr, size, tag_mode, -1, + &ctx->left, &tlv_constr); + if(rval.code != RC_OK) + return rval; + + if(tlv_constr) { + /* + * Complex operation, requires stack of expectations. + */ + ctx->ptr = _new_stack(); + if(!ctx->ptr) { + RETURN(RC_FAIL); + } + } else { + /* + * Jump into stackless primitive decoding. + */ + _CH_PHASE(ctx, 3); + if(type_variant == ASN_OSUBV_ANY && tag_mode != 1) + APPEND(buf_ptr, rval.consumed); + ADVANCE(rval.consumed); + goto phase3; + } + + NEXT_PHASE(ctx); + /* Fall through */ + case 1: + phase1: + /* + * Fill the stack with expectations. + */ + stck = (struct _stack *)ctx->ptr; + sel = stck->cur_ptr; + do { + ber_tlv_tag_t tlv_tag; + ber_tlv_len_t tlv_len; + ber_tlv_tag_t expected_tag; + ssize_t tl, ll, tlvl; + /* This one works even if (sel->left == -1) */ + size_t Left = ((!sel||(size_t)sel->left >= size) + ?size:(size_t)sel->left); + + + ASN_DEBUG("%p, s->l=%ld, s->wn=%ld, s->g=%ld\n", (void *)sel, + (long)(sel?sel->left:0), + (long)(sel?sel->want_nulls:0), + (long)(sel?sel->got:0) + ); + if(sel && sel->left <= 0 && sel->want_nulls == 0) { + if(sel->prev) { + struct _stack_el *prev = sel->prev; + if(prev->left != -1) { + if(prev->left < sel->got) + RETURN(RC_FAIL); + prev->left -= sel->got; + } + prev->got += sel->got; + sel = stck->cur_ptr = prev; + if(!sel) break; + tlv_constr = 1; + continue; + } else { + sel = stck->cur_ptr = 0; + break; /* Nothing to wait */ + } + } + + tl = ber_fetch_tag(buf_ptr, Left, &tlv_tag); + ASN_DEBUG("fetch tag(size=%ld,L=%ld), %sstack, left=%ld, wn=%ld, tl=%ld", + (long)size, (long)Left, sel?"":"!", + (long)(sel?sel->left:0), + (long)(sel?sel->want_nulls:0), + (long)tl); + switch(tl) { + case -1: RETURN(RC_FAIL); + case 0: RETURN(RC_WMORE); + } + + tlv_constr = BER_TLV_CONSTRUCTED(buf_ptr); + + ll = ber_fetch_length(tlv_constr, + (const char *)buf_ptr + tl,Left - tl,&tlv_len); + ASN_DEBUG("Got tag=%s, tc=%d, left=%ld, tl=%ld, len=%ld, ll=%ld", + ber_tlv_tag_string(tlv_tag), tlv_constr, + (long)Left, (long)tl, (long)tlv_len, (long)ll); + switch(ll) { + case -1: RETURN(RC_FAIL); + case 0: RETURN(RC_WMORE); + } + + if(sel && sel->want_nulls + && ((const uint8_t *)buf_ptr)[0] == 0 + && ((const uint8_t *)buf_ptr)[1] == 0) + { + ASN_DEBUG("Eat EOC; wn=%d--", sel->want_nulls); + + if(type_variant == ASN_OSUBV_ANY + && (tag_mode != 1 || sel->cont_level)) + APPEND("\0\0", 2); + + ADVANCE(2); + sel->got += 2; + if(sel->left != -1) { + sel->left -= 2; /* assert(sel->left >= 2) */ + } + + sel->want_nulls--; + if(sel->want_nulls == 0) { + /* Move to the next expectation */ + sel->left = 0; + tlv_constr = 1; + } + + continue; + } + + /* + * Set up expected tags, + * depending on ASN.1 type being decoded. + */ + switch(type_variant) { + case ASN_OSUBV_BIT: + /* X.690: 8.6.4.1, NOTE 2 */ + /* Fall through */ + case ASN_OSUBV_STR: + default: + if(sel) { + unsigned level = sel->cont_level; + if(level < td->all_tags_count) { + expected_tag = td->all_tags[level]; + break; + } else if(td->all_tags_count) { + expected_tag = td->all_tags + [td->all_tags_count - 1]; + break; + } + /* else, Fall through */ + } + /* Fall through */ + case ASN_OSUBV_ANY: + expected_tag = tlv_tag; + break; + } + + if(tlv_tag != expected_tag) { + char buf[2][32]; + ber_tlv_tag_snprint(tlv_tag, + buf[0], sizeof(buf[0])); + ber_tlv_tag_snprint(td->tags[td->tags_count-1], + buf[1], sizeof(buf[1])); + ASN_DEBUG("Tag does not match expectation: %s != %s", + buf[0], buf[1]); + RETURN(RC_FAIL); + } + + tlvl = tl + ll; /* Combined length of T and L encoding */ + if((tlv_len + tlvl) < 0) { + /* tlv_len value is too big */ + ASN_DEBUG("TLV encoding + length (%ld) is too big", + (long)tlv_len); + RETURN(RC_FAIL); + } + + /* + * Append a new expectation. + */ + sel = OS__add_stack_el(stck); + if(!sel) RETURN(RC_FAIL); + + sel->tag = tlv_tag; + + sel->want_nulls = (tlv_len==-1); + if(sel->prev && sel->prev->left != -1) { + /* Check that the parent frame is big enough */ + if(sel->prev->left < tlvl + (tlv_len==-1?0:tlv_len)) + RETURN(RC_FAIL); + if(tlv_len == -1) + sel->left = sel->prev->left - tlvl; + else + sel->left = tlv_len; + } else { + sel->left = tlv_len; + } + if(type_variant == ASN_OSUBV_ANY + && (tag_mode != 1 || sel->cont_level)) + APPEND(buf_ptr, tlvl); + sel->got += tlvl; + ADVANCE(tlvl); + + ASN_DEBUG("+EXPECT2 got=%ld left=%ld, wn=%d, clvl=%u", + (long)sel->got, (long)sel->left, + sel->want_nulls, sel->cont_level); + + } while(tlv_constr); + if(sel == NULL) { + /* Finished operation, "phase out" */ + ASN_DEBUG("Phase out"); + _CH_PHASE(ctx, +3); + break; + } + + NEXT_PHASE(ctx); + /* Fall through */ + case 2: + stck = (struct _stack *)ctx->ptr; + sel = stck->cur_ptr; + ASN_DEBUG("Phase 2: Need %ld bytes, size=%ld, alrg=%ld, wn=%d", + (long)sel->left, (long)size, (long)sel->got, + sel->want_nulls); + { + ber_tlv_len_t len; + + assert(sel->left >= 0); + + len = ((ber_tlv_len_t)size < sel->left) + ? (ber_tlv_len_t)size : sel->left; + if(len > 0) { + if(type_variant == ASN_OSUBV_BIT + && sel->bits_chopped == 0) { + /* Put the unused-bits-octet away */ + st->bits_unused = *(const uint8_t *)buf_ptr; + APPEND(((const char *)buf_ptr+1), (len - 1)); + sel->bits_chopped = 1; + } else { + APPEND(buf_ptr, len); + } + ADVANCE(len); + sel->left -= len; + sel->got += len; + } + + if(sel->left) { + ASN_DEBUG("OS left %ld, size = %ld, wn=%d\n", + (long)sel->left, (long)size, sel->want_nulls); + RETURN(RC_WMORE); + } + + PREV_PHASE(ctx); + goto phase1; + } + break; + case 3: + phase3: + /* + * Primitive form, no stack required. + */ + assert(ctx->left >= 0); + + if(size < (size_t)ctx->left) { + if(!size) RETURN(RC_WMORE); + if(type_variant == ASN_OSUBV_BIT && !ctx->context) { + st->bits_unused = *(const uint8_t *)buf_ptr; + ctx->left--; + ADVANCE(1); + } + APPEND(buf_ptr, size); + assert(ctx->context > 0); + ctx->left -= size; + ADVANCE(size); + RETURN(RC_WMORE); + } else { + if(type_variant == ASN_OSUBV_BIT + && !ctx->context && ctx->left) { + st->bits_unused = *(const uint8_t *)buf_ptr; + ctx->left--; + ADVANCE(1); + } + APPEND(buf_ptr, ctx->left); + ADVANCE(ctx->left); + ctx->left = 0; + + NEXT_PHASE(ctx); + } + break; + } + + if(sel) { + ASN_DEBUG("3sel p=%p, wn=%d, l=%ld, g=%ld, size=%ld", + (void *)sel->prev, sel->want_nulls, + (long)sel->left, (long)sel->got, (long)size); + if(sel->prev || sel->want_nulls > 1 || sel->left > 0) { + RETURN(RC_WMORE); + } + } + + /* + * BIT STRING-specific processing. + */ + if(type_variant == ASN_OSUBV_BIT) { + if(st->size) { + if(st->bits_unused < 0 || st->bits_unused > 7) { + RETURN(RC_FAIL); + } + /* Finalize BIT STRING: zero out unused bits. */ + st->buf[st->size-1] &= 0xff << st->bits_unused; + } else { + if(st->bits_unused) { + RETURN(RC_FAIL); + } + } + } + + ASN_DEBUG("Took %ld bytes to encode %s: [%s]:%ld", + (long)consumed_myself, td->name, + (type_variant == ASN_OSUBV_STR) ? (char *)st->buf : "", + (long)st->size); + + + RETURN(RC_OK); +} + +/* + * Encode OCTET STRING type using DER. + */ +asn_enc_rval_t +OCTET_STRING_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, + int tag_mode, ber_tlv_tag_t tag, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_enc_rval_t er = { 0, 0, 0 }; + const asn_OCTET_STRING_specifics_t *specs = td->specifics + ? (const asn_OCTET_STRING_specifics_t *)td->specifics + : &asn_SPC_OCTET_STRING_specs; + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + enum asn_OS_Subvariant type_variant = specs->subvariant; + int fix_last_byte = 0; + + ASN_DEBUG("%s %s as OCTET STRING", + cb?"Estimating":"Encoding", td->name); + + /* + * Write tags. + */ + if(type_variant != ASN_OSUBV_ANY || tag_mode == 1) { + er.encoded = der_write_tags(td, + (type_variant == ASN_OSUBV_BIT) + st->size, + tag_mode, type_variant == ASN_OSUBV_ANY, tag, + cb, app_key); + if(er.encoded == -1) { + er.failed_type = td; + er.structure_ptr = sptr; + return er; + } + } else { + /* Disallow: [] IMPLICIT ANY */ + assert(type_variant != ASN_OSUBV_ANY || tag_mode != -1); + er.encoded = 0; + } + + if(!cb) { + er.encoded += (type_variant == ASN_OSUBV_BIT) + st->size; + ASN__ENCODED_OK(er); + } + + /* + * Prepare to deal with the last octet of BIT STRING. + */ + if(type_variant == ASN_OSUBV_BIT) { + uint8_t b = st->bits_unused & 0x07; + if(b && st->size) fix_last_byte = 1; + ASN__CALLBACK(&b, 1); + } + + /* Invoke callback for the main part of the buffer */ + ASN__CALLBACK(st->buf, st->size - fix_last_byte); + + /* The last octet should be stripped off the unused bits */ + if(fix_last_byte) { + uint8_t b = st->buf[st->size-1] & (0xff << st->bits_unused); + ASN__CALLBACK(&b, 1); + } + + ASN__ENCODED_OK(er); +cb_failed: + ASN__ENCODE_FAILED; +} diff --git a/asn.1/skeleton/OCTET_STRING_jer.c b/asn.1/skeleton/OCTET_STRING_jer.c new file mode 100644 index 00000000..82ba8ff1 --- /dev/null +++ b/asn.1/skeleton/OCTET_STRING_jer.c @@ -0,0 +1,575 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include /* for .bits_unused member */ + +asn_enc_rval_t +OCTET_STRING_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const char * const h2c = "0123456789ABCDEF"; + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + asn_enc_rval_t er = { 0, 0, 0 }; + char scratch[16 * 3 + 4]; + char *p = scratch; + uint8_t *buf; + uint8_t *end; + size_t i; + + (void)ilevel; + (void)flags; + + if(!st || (!st->buf && st->size)) + ASN__ENCODE_FAILED; + + er.encoded = 0; + + /* + * Dump the contents of the buffer in hexadecimal. + */ + buf = st->buf; + end = buf + st->size; + ASN__CALLBACK("\"", 1); + for(i = 0; buf < end; buf++, i++) { + if(!(i % 16) && (i || st->size > 16)) { + ASN__CALLBACK(scratch, p-scratch); + p = scratch; + } + *p++ = h2c[(*buf >> 4) & 0x0F]; + *p++ = h2c[*buf & 0x0F]; + } + if(p - scratch) { + ASN__CALLBACK(scratch, p-scratch); /* Dump the rest */ + } + ASN__CALLBACK("\"", 1); + + ASN__ENCODED_OK(er); +cb_failed: + ASN__ENCODE_FAILED; +} + +static const struct OCTET_STRING__jer_escape_table_s { + const char *string; + int size; +} OCTET_STRING__jer_escape_table[] = { +#define OSXBT(s) { "\\"s"", sizeof(s) + 1 - 1 } +#define OSXUT(s) { "\\u00"s"", sizeof(s) + 4 - 1 } + OSXUT("00"), /* NULL */ + OSXUT("01"), /* Start of header */ + OSXUT("02"), /* Start of text */ + OSXUT("03"), /* End of text */ + OSXUT("04"), /* End of transmission */ + OSXUT("05"), /* Enquiry */ + OSXUT("06"), /* Ack */ + OSXUT("07"), /* Bell */ + OSXBT("b"), /* \b */ + OSXBT("t"), /* \t */ + OSXBT("n"), /* \n */ + OSXUT("0b"), /* Vertical tab */ + OSXBT("f"), /* \f */ + OSXBT("r"), /* \r */ + OSXUT("0e"), /* Shift out */ + OSXUT("0f"), /* Shift in */ + OSXUT("10"), /* Data link escape */ + OSXUT("11"), /* Device control 1 */ + OSXUT("12"), /* Device control 2 */ + OSXUT("13"), /* Device control 3 */ + OSXUT("14"), /* Device control 4 */ + OSXUT("15"), /* Negative ack */ + OSXUT("16"), /* Synchronous idle */ + OSXUT("17"), /* End of transmission block */ + OSXUT("18"), /* Cancel */ + OSXUT("19"), /* End of medium */ + OSXUT("1a"), /* Substitute */ + OSXUT("1b"), /* Escape */ + OSXUT("1c"), /* File separator */ + OSXUT("1d"), /* Group separator */ + OSXUT("1e"), /* Record separator */ + OSXUT("1f"), /* Unit separator */ + { 0, 0 }, /* " " */ + { 0, 0 }, /* ! */ + OSXBT("\""), /* \" */ + { 0, 0 }, /* # */ + { 0, 0 }, /* $ */ + { 0, 0 }, /* % */ + { 0, 0 }, /* & */ + { 0, 0 }, /* ' */ + {0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, /* ()*+,-./ */ + {0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, /* 01234567 */ + {0,0},{0,0},{0,0},{0,0}, /* 89:; */ + { 0, 0 }, /* < */ + { 0, 0 }, /* = */ + { 0, 0 }, /* > */ + { 0, 0 }, /* ? */ + { 0, 0 }, /* @ */ + {0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, /* ABCDEFGH */ + {0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, /* IJKLMNOP */ + {0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, /* QRSTUVWX */ + {0,0},{0,0}, /* YZ */ + { 0, 0 }, /* [ */ + OSXBT("\\"), /* \\ */ +}; + +static int +OS__check_escaped_control_char(const void *buf, int size) { + size_t i; + /* + * Inefficient algorithm which translates the escape sequences + * defined above into characters. Returns -1 if not found. + * TODO: replace by a faster algorithm (bsearch(), hash or + * nested table lookups). + */ + for(i = 0; i < 32 /* Don't spend time on the bottom half */; i++) { + const struct OCTET_STRING__jer_escape_table_s *el; + el = &OCTET_STRING__jer_escape_table[i]; + if(el->size == size && memcmp(buf, el->string, size) == 0) + return i; + } + return -1; +} + +static int +OCTET_STRING__handle_control_chars(void *struct_ptr, const void *chunk_buf, size_t chunk_size) { + /* + * This might be one of the escape sequences + * for control characters. Check it out. + * #11.15.5 + */ + int control_char = OS__check_escaped_control_char(chunk_buf,chunk_size); + if(control_char >= 0) { + OCTET_STRING_t *st = (OCTET_STRING_t *)struct_ptr; + void *p = REALLOC(st->buf, st->size + 2); + if(p) { + st->buf = (uint8_t *)p; + st->buf[st->size++] = control_char; + st->buf[st->size] = '\0'; /* nul-termination */ + return 0; + } + } + + return -1; /* No, it's not */ +} + +asn_enc_rval_t +OCTET_STRING_encode_jer_utf8(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + asn_enc_rval_t er = { 0, 0, 0 }; + uint8_t *buf, *end; + uint8_t *ss; /* Sequence start */ + ssize_t encoded_len = 0; + + (void)ilevel; /* Unused argument */ + (void)flags; /* Unused argument */ + + if(!st || (!st->buf && st->size)) + ASN__ENCODE_FAILED; + + buf = st->buf; + end = buf + st->size; + ASN__CALLBACK("\"", 1); + for(ss = buf; buf < end; buf++) { + unsigned int ch = *buf; + int s_len; /* Special encoding sequence length */ + + /* + * Escape certain characters + */ + if(ch < sizeof(OCTET_STRING__jer_escape_table) + / sizeof(OCTET_STRING__jer_escape_table[0]) + && (s_len = OCTET_STRING__jer_escape_table[ch].size)) { + if(((buf - ss) && cb(ss, buf - ss, app_key) < 0) + || cb(OCTET_STRING__jer_escape_table[ch].string, s_len, app_key) < 0) + ASN__ENCODE_FAILED; + encoded_len += (buf - ss) + s_len; + ss = buf + 1; + } + } + + encoded_len += (buf - ss); + if((buf - ss) && cb(ss, buf - ss, app_key) < 0) + goto cb_failed; + + er.encoded += encoded_len; + + ASN__CALLBACK("\"", 1); + ASN__ENCODED_OK(er); + +cb_failed: + ASN__ENCODE_FAILED; +} + +#define CQUOTE 0x22 + +/* + * Convert from hexadecimal format (cstring): "AB CD EF" + */ +static ssize_t OCTET_STRING__convert_hexadecimal(void *sptr, const void *chunk_buf, size_t chunk_size, int have_more) { + OCTET_STRING_t *st = (OCTET_STRING_t *)sptr; + const char *chunk_stop = (const char *)chunk_buf; + const char *p = chunk_stop; + const char *pend = p + chunk_size; + unsigned int clv = 0; + int half = 0; /* Half bit */ + uint8_t *buf; + + /* Strip quotes */ + for (; p < pend; ++p) { + if (*p == CQUOTE) { + ++p; + break; + } + } + --pend; + for (; pend >= p; --pend) { + if (*pend == CQUOTE) + break; + } + if (pend - p < 0) return -1; + chunk_size = pend - p; + + /* Reallocate buffer according to high cap estimation */ + size_t new_size = st->size + (chunk_size + 1) / 2; + void *nptr = REALLOC(st->buf, new_size + 1); + if(!nptr) return -1; + st->buf = (uint8_t *)nptr; + buf = st->buf + st->size; + + /* + * If something like " a b c " appears here, the " a b":3 will be + * converted, and the rest skipped. That is, unless buf_size is greater + * than chunk_size, then it'll be equivalent to "ABC0". + */ + for(; p < pend; p++) { + int ch = *(const unsigned char *)p; + switch(ch) { + case 0x09: case 0x0a: case 0x0c: case 0x0d: + case 0x20: + /* Ignore whitespace */ + continue; + case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: /*01234*/ + case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: /*56789*/ + clv = (clv << 4) + (ch - 0x30); + break; + case 0x41: case 0x42: case 0x43: /* ABC */ + case 0x44: case 0x45: case 0x46: /* DEF */ + clv = (clv << 4) + (ch - 0x41 + 10); + break; + case 0x61: case 0x62: case 0x63: /* abc */ + case 0x64: case 0x65: case 0x66: /* def */ + clv = (clv << 4) + (ch - 0x61 + 10); + break; + default: + *buf = 0; /* JIC */ + return -1; + } + if(half++) { + half = 0; + *buf++ = clv; + chunk_stop = p + 1; + } + } + + /* + * Check partial decoding. + */ + if(half) { + if(have_more) { + /* + * Partial specification is fine, + * because no more more PJER_TEXT data is available. + */ + *buf++ = clv << 4; + chunk_stop = p; + } + } else { + ++p; + chunk_stop = p; + } + + st->size = buf - st->buf; /* Adjust the buffer size */ + assert(st->size <= new_size); + st->buf[st->size] = 0; /* Courtesy termination */ + + return (chunk_stop - (const char *)chunk_buf); /* Converted size */ +} + +/* + * Something like strtod(), but with stricter rules. + */ +static int +OS__strtoent(const char *buf, const char *end, int32_t *ret_value) { + const int32_t last_unicode_codepoint = 0x10ffff; + int32_t val = 0; + const char *p; + + for(p = buf; p < end; p++) { + int ch = *p; + + switch(ch) { + case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: /*01234*/ + case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: /*56789*/ + val = val * 16 + (ch - 0x30); + break; + case 0x41: case 0x42: case 0x43: /* ABC */ + case 0x44: case 0x45: case 0x46: /* DEF */ + val = val * 16 + (ch - 0x41 + 10); + break; + case 0x61: case 0x62: case 0x63: /* abc */ + case 0x64: case 0x65: case 0x66: /* def */ + val = val * 16 + (ch - 0x61 + 10); + break; + default: + return -1; /* Character set error */ + } + + /* Value exceeds the Unicode range. */ + if(val > last_unicode_codepoint) { + return -1; + } + } + + *ret_value = val; + return (p - buf); +} + +/* + * Convert from the plain UTF-8 format + */ +static ssize_t +OCTET_STRING__convert_entrefs(void *sptr, const void *chunk_buf, + size_t chunk_size, int have_more) { + OCTET_STRING_t *st = (OCTET_STRING_t *)sptr; + const char *p = (const char *)chunk_buf; + const char *pend = p + chunk_size; + uint8_t *buf; + + /* Strip quotes */ + for(; p < pend; ++p) { + if (*p == CQUOTE) { + ++p; + break; + } + } + --pend; + for(; pend >= p; --pend) { + if (*pend == CQUOTE) + break; + } + if(pend - p < 0) + return -1; + + /* Reallocate buffer */ + size_t new_size = st->size + (pend - p); + void *nptr = REALLOC(st->buf, new_size + 1); + if(!nptr) return -1; + st->buf = (uint8_t *)nptr; + buf = st->buf + st->size; + + /* + * Convert into the octet string. + */ + for(; p < pend; p++) { + int ch = *(const unsigned char *)p; + int len; /* Length of the rest of the chunk */ + + if(ch != 0x5c /* '\' */) { + *buf++ = ch; + continue; /* That was easy... */ + } + + /* + * Process entity reference. + */ + len = chunk_size - (p - (const char *)chunk_buf); + if(len == 1 /* "\" */) goto want_more; + switch(p[1]) { + case 0x75: /* 'u' */ + ; + const char *pval; /* Pointer to start of digits */ + int32_t val = 0; /* Entity reference value */ + + if(len - 6 < 0) goto want_more; + pval = p + 2; + len = OS__strtoent(pval, pval + 4, &val); + if(len == -1) { + /* Invalid charset. Just copy verbatim. */ + *buf++ = ch; + continue; + } + if(!len) goto want_more; + p += (pval - p) + len - 1; /* Advance past entref */ + + if(val < 0x80) { + *buf++ = (char)val; + } else if(val < 0x800) { + *buf++ = 0xc0 | ((val >> 6)); + *buf++ = 0x80 | ((val & 0x3f)); + } else if(val < 0x10000) { + *buf++ = 0xe0 | ((val >> 12)); + *buf++ = 0x80 | ((val >> 6) & 0x3f); + *buf++ = 0x80 | ((val & 0x3f)); + } else if(val < 0x200000) { + *buf++ = 0xf0 | ((val >> 18)); + *buf++ = 0x80 | ((val >> 12) & 0x3f); + *buf++ = 0x80 | ((val >> 6) & 0x3f); + *buf++ = 0x80 | ((val & 0x3f)); + } else if(val < 0x4000000) { + *buf++ = 0xf8 | ((val >> 24)); + *buf++ = 0x80 | ((val >> 18) & 0x3f); + *buf++ = 0x80 | ((val >> 12) & 0x3f); + *buf++ = 0x80 | ((val >> 6) & 0x3f); + *buf++ = 0x80 | ((val & 0x3f)); + } else { + *buf++ = 0xfc | ((val >> 30) & 0x1); + *buf++ = 0x80 | ((val >> 24) & 0x3f); + *buf++ = 0x80 | ((val >> 18) & 0x3f); + *buf++ = 0x80 | ((val >> 12) & 0x3f); + *buf++ = 0x80 | ((val >> 6) & 0x3f); + *buf++ = 0x80 | ((val & 0x3f)); + } + break; + case 0x22: /* " */ + *buf++ = 0x22; + ++p; + break; + case 0x5c: /* \ */ + *buf++ = 0x5c; + ++p; + break; + case 0x62: /* b */ + *buf++ = 0x08; + ++p; + break; + case 0x66: /* f */ + *buf++ = 0x0c; + ++p; + break; + case 0x6e: /* n */ + *buf++ = 0x0a; + ++p; + break; + case 0x72: /* r */ + *buf++ = 0x0d; + ++p; + break; + case 0x74: /* t */ + *buf++ = 0x09; + ++p; + break; + default: + /* Unsupported entity reference */ + *buf++ = ch; + ++p; + continue; + } + continue; + want_more: + if(have_more) { + /* + * We know that no more data (of the same type) + * is coming. Copy the rest verbatim. + */ + *buf++ = ch; + continue; + } + chunk_size = (p - (const char *)chunk_buf); + /* Processing stalled: need more data */ + break; + } + + st->size = buf - st->buf; + assert(st->size <= new_size); + st->buf[st->size] = 0; /* Courtesy termination */ + + return chunk_size; /* Converted in full */ +} + +/* + * Decode OCTET STRING from the JSON element's value. + */ +static asn_dec_rval_t +OCTET_STRING__decode_jer( + const asn_codec_ctx_t *opt_codec_ctx, const asn_TYPE_descriptor_t *td, + void **sptr, const void *buf_ptr, size_t size, + int (*opt_unexpected_tag_decoder)(void *struct_ptr, const void *chunk_buf, + size_t chunk_size), + ssize_t (*body_receiver)(void *struct_ptr, const void *chunk_buf, + size_t chunk_size, int have_more)) { + OCTET_STRING_t *st = (OCTET_STRING_t *)*sptr; + const asn_OCTET_STRING_specifics_t *specs = td->specifics + ? (const asn_OCTET_STRING_specifics_t *)td->specifics + : &asn_SPC_OCTET_STRING_specs; + asn_struct_ctx_t *ctx; /* Per-structure parser context */ + asn_dec_rval_t rval; /* Return value from the decoder */ + int st_allocated; + + /* + * Create the string if does not exist. + */ + if(!st) { + st = (OCTET_STRING_t *)CALLOC(1, specs->struct_size); + *sptr = (void *)st; + if(!st) goto sta_failed; + st_allocated = 1; + } else { + st_allocated = 0; + } + if(!st->buf) { + /* This is separate from above section */ + st->buf = (uint8_t *)CALLOC(1, 1); + if(!st->buf) { + if(st_allocated) { + *sptr = 0; + goto stb_failed; + } else { + goto sta_failed; + } + } + } + + /* Restore parsing context */ + ctx = (asn_struct_ctx_t *)(((char *)*sptr) + specs->ctx_offset); + + return jer_decode_general(opt_codec_ctx, ctx, *sptr, + buf_ptr, size, + opt_unexpected_tag_decoder, + body_receiver); + +stb_failed: + FREEMEM(st); +sta_failed: + rval.code = RC_FAIL; + rval.consumed = 0; + return rval; +} + +/* + * Decode OCTET STRING from the hexadecimal data. + */ +asn_dec_rval_t +OCTET_STRING_decode_jer_hex(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const void *buf_ptr, size_t size) { + return OCTET_STRING__decode_jer(opt_codec_ctx, td, sptr, + buf_ptr, size, 0, + OCTET_STRING__convert_hexadecimal); +} + +/* + * Decode OCTET STRING from the string (ASCII/UTF-8) data. + */ +asn_dec_rval_t +OCTET_STRING_decode_jer_utf8(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const void *buf_ptr, size_t size) { + return OCTET_STRING__decode_jer(opt_codec_ctx, td, sptr, + buf_ptr, size, + OCTET_STRING__handle_control_chars, + OCTET_STRING__convert_entrefs); +} diff --git a/asn.1/skeleton/OCTET_STRING_oer.c b/asn.1/skeleton/OCTET_STRING_oer.c new file mode 100644 index 00000000..e69d0a6a --- /dev/null +++ b/asn.1/skeleton/OCTET_STRING_oer.c @@ -0,0 +1,166 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_dec_rval_t +OCTET_STRING_decode_oer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, void **sptr, + const void *ptr, size_t size) { + const asn_OCTET_STRING_specifics_t *specs = + td->specifics ? (const asn_OCTET_STRING_specifics_t *)td->specifics + : &asn_SPC_OCTET_STRING_specs; + OCTET_STRING_t *st = (OCTET_STRING_t *)*sptr; + const asn_oer_constraints_t *cts = + constraints ? constraints : td->encoding_constraints.oer_constraints; + ssize_t ct_size = cts ? cts->size : -1; + asn_dec_rval_t rval = {RC_OK, 0}; + size_t expected_length = 0; + + size_t unit_bytes; + switch(specs->subvariant) { + default: + case ASN_OSUBV_BIT: + ASN_DEBUG("Invalid use of OCTET STRING to decode BIT STRING"); + ASN__DECODE_FAILED; + case ASN_OSUBV_ANY: + /* Fall through */ + case ASN_OSUBV_STR: + unit_bytes = 1; + break; + case ASN_OSUBV_U16: + unit_bytes = 2; + break; + case ASN_OSUBV_U32: + unit_bytes = 4; + break; + } + + (void)opt_codec_ctx; + + if(!st) { + st = (OCTET_STRING_t *)(*sptr = CALLOC(1, specs->struct_size)); + if(!st) ASN__DECODE_FAILED; + } + + if(ct_size >= 0) { + expected_length = unit_bytes * ct_size; + } else { + /* + * X.696 (08/2015) #27.2 + * Encode length determinant as _number of octets_, but only + * if upper bound is not equal to lower bound. + */ + ssize_t len_len = oer_fetch_length(ptr, size, &expected_length); + if(len_len > 0) { + rval.consumed = len_len; + ptr = (const char *)ptr + len_len; + size -= len_len; + } else if(len_len == 0) { + ASN__DECODE_STARVED; + } else if(len_len < 0) { + ASN__DECODE_FAILED; + } + + if(expected_length % unit_bytes != 0) { + ASN_DEBUG( + "Data size %" ASN_PRI_SIZE " bytes is not consistent with multiplier %" ASN_PRI_SIZE "", + expected_length, unit_bytes); + ASN__DECODE_FAILED; + } + } + + if(size < expected_length) { + ASN__DECODE_STARVED; + } else { + uint8_t *buf = MALLOC(expected_length + 1); + if(buf == NULL) { + ASN__DECODE_FAILED; + } else { + memcpy(buf, ptr, expected_length); + buf[expected_length] = '\0'; + } + FREEMEM(st->buf); + st->buf = buf; + st->size = expected_length; + + rval.consumed += expected_length; + return rval; + } +} + +/* + * Encode as Canonical OER. + */ +asn_enc_rval_t +OCTET_STRING_encode_oer(const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, + const void *sptr, asn_app_consume_bytes_f *cb, + void *app_key) { + const asn_OCTET_STRING_specifics_t *specs = + td->specifics ? (const asn_OCTET_STRING_specifics_t *)td->specifics + : &asn_SPC_OCTET_STRING_specs; + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + const asn_oer_constraints_t *cts = + constraints ? constraints : td->encoding_constraints.oer_constraints; + ssize_t ct_size = cts ? cts->size : -1; + asn_enc_rval_t er = {0, 0, 0}; + + if(!st) ASN__ENCODE_FAILED; + + ASN_DEBUG("Encoding %s %" ASN_PRI_SIZE " as OCTET STRING", td ? td->name : "", st->size); + + if(ct_size >= 0) { + /* + * Check that available data matches the constraint + */ + size_t unit_bytes; + switch(specs->subvariant) { + default: + case ASN_OSUBV_BIT: + ASN_DEBUG("Invalid use of OCTET STRING to encode BIT STRING"); + ASN__ENCODE_FAILED; + case ASN_OSUBV_ANY: + /* Fall through */ + case ASN_OSUBV_STR: + unit_bytes = 1; + break; + case ASN_OSUBV_U16: + unit_bytes = 2; + break; + case ASN_OSUBV_U32: + unit_bytes = 4; + break; + } + + if(st->size != unit_bytes * (size_t)ct_size) { + ASN_DEBUG( + "Trying to encode %s (%" ASN_PRI_SIZE " bytes) which doesn't fit SIZE " + "constraint (%" ASN_PRI_SIZE ")", + td->name, st->size, ct_size); + ASN__ENCODE_FAILED; + } + } else { + /* + * X.696 (08/2015) #27.2 + * Encode length determinant as _number of octets_, but only + * if upper bound is not equal to lower bound. + */ + ssize_t ret = oer_serialize_length(st->size, cb, app_key); + if(ret < 0) { + ASN__ENCODE_FAILED; + } + er.encoded += ret; + } + + er.encoded += st->size; + if(cb(st->buf, st->size, app_key) < 0) { + ASN__ENCODE_FAILED; + } else { + ASN__ENCODED_OK(er); + } +} diff --git a/asn.1/skeleton/OCTET_STRING_print.c b/asn.1/skeleton/OCTET_STRING_print.c new file mode 100644 index 00000000..6daa33e9 --- /dev/null +++ b/asn.1/skeleton/OCTET_STRING_print.c @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +int +OCTET_STRING_print(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { + const char * const h2c = "0123456789ABCDEF"; + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + char scratch[16 * 3 + 4]; + char *p = scratch; + uint8_t *buf; + uint8_t *end; + size_t i; + + (void)td; /* Unused argument */ + + if(!st || (!st->buf && st->size)) + return (cb("", 8, app_key) < 0) ? -1 : 0; + + /* + * Dump the contents of the buffer in hexadecimal. + */ + buf = st->buf; + end = (buf == NULL)? NULL : buf + st->size; + for(i = 0; buf < end; buf++, i++) { + if(!(i % 16) && (i || st->size > 16)) { + if(cb(scratch, p - scratch, app_key) < 0) + return -1; + _i_INDENT(1); + p = scratch; + } + *p++ = h2c[(*buf >> 4) & 0x0F]; + *p++ = h2c[*buf & 0x0F]; + *p++ = 0x20; + } + + if(p > scratch) { + p--; /* Remove the tail space */ + if(cb(scratch, p - scratch, app_key) < 0) + return -1; + } + + return 0; +} + +int +OCTET_STRING_print_utf8(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, asn_app_consume_bytes_f *cb, + void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + + (void)td; /* Unused argument */ + (void)ilevel; /* Unused argument */ + + if(st && (st->buf || !st->size)) { + return (cb(st->buf, st->size, app_key) < 0) ? -1 : 0; + } else { + return (cb("", 8, app_key) < 0) ? -1 : 0; + } +} diff --git a/asn.1/skeleton/OCTET_STRING_rfill.c b/asn.1/skeleton/OCTET_STRING_rfill.c new file mode 100644 index 00000000..5c8b0648 --- /dev/null +++ b/asn.1/skeleton/OCTET_STRING_rfill.c @@ -0,0 +1,209 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Biased function for randomizing character values around their limits. + */ +static uint32_t +OCTET_STRING__random_char(unsigned long lb, unsigned long ub) { + assert(lb <= ub); + switch(asn_random_between(0, 16)) { + case 0: + if(lb < ub) return lb + 1; + /* Fall through */ + case 1: + return lb; + case 2: + if(lb < ub) return ub - 1; + /* Fall through */ + case 3: + return ub; + default: + return asn_random_between(lb, ub); + } +} + +asn_random_fill_result_t +OCTET_STRING_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, + const asn_encoding_constraints_t *constraints, + size_t max_length) { + const asn_OCTET_STRING_specifics_t *specs = td->specifics + ? (const asn_OCTET_STRING_specifics_t *)td->specifics + : &asn_SPC_OCTET_STRING_specs; + asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; + asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; + asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; + unsigned int unit_bytes = 1; + unsigned long clb = 0; /* Lower bound on char */ + unsigned long cub = 255; /* Higher bound on char value */ + uint8_t *buf; + uint8_t *bend; + uint8_t *b; + size_t rnd_len; + OCTET_STRING_t *st; + + if(max_length == 0 && !*sptr) return result_skipped; + + switch(specs->subvariant) { + default: + case ASN_OSUBV_ANY: + return result_failed; + case ASN_OSUBV_BIT: + /* Handled by BIT_STRING itself. */ + return result_failed; + case ASN_OSUBV_STR: + unit_bytes = 1; + clb = 0; + cub = 255; + break; + case ASN_OSUBV_U16: + unit_bytes = 2; + clb = 0; + cub = 65535; + break; + case ASN_OSUBV_U32: + unit_bytes = 4; + clb = 0; + cub = 0x10FFFF; + break; + } + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + if(!constraints || !constraints->per_constraints) + constraints = &td->encoding_constraints; + if(constraints->per_constraints) { + const asn_per_constraint_t *pc = &constraints->per_constraints->value; + if(pc->flags & APC_SEMI_CONSTRAINED) { + clb = pc->lower_bound; + } else if(pc->flags & APC_CONSTRAINED) { + clb = pc->lower_bound; + cub = pc->upper_bound; + } + } +#else + if(!constraints) constraints = &td->encoding_constraints; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + + rnd_len = + OCTET_STRING_random_length_constrained(td, constraints, max_length); + + buf = CALLOC(unit_bytes, rnd_len + 1); + if(!buf) return result_failed; + + bend = &buf[unit_bytes * rnd_len]; + + switch(unit_bytes) { + case 1: + for(b = buf; b < bend; b += unit_bytes) { + *(uint8_t *)b = OCTET_STRING__random_char(clb, cub); + } + *(uint8_t *)b = 0; + break; + case 2: + for(b = buf; b < bend; b += unit_bytes) { + uint32_t code = OCTET_STRING__random_char(clb, cub); + b[0] = code >> 8; + b[1] = code; + } + *(uint16_t *)b = 0; + break; + case 4: + for(b = buf; b < bend; b += unit_bytes) { + uint32_t code = OCTET_STRING__random_char(clb, cub); + b[0] = code >> 24; + b[1] = code >> 16; + b[2] = code >> 8; + b[3] = code; + } + *(uint32_t *)b = 0; + break; + } + + if(*sptr) { + st = *sptr; + FREEMEM(st->buf); + } else { + st = (OCTET_STRING_t *)(*sptr = CALLOC(1, specs->struct_size)); + if(!st) { + FREEMEM(buf); + return result_failed; + } + } + + st->buf = buf; + st->size = unit_bytes * rnd_len; + + result_ok.length = st->size; + return result_ok; +} + +size_t +OCTET_STRING_random_length_constrained( + const asn_TYPE_descriptor_t *td, + const asn_encoding_constraints_t *constraints, size_t max_length) { + const unsigned lengths[] = {0, 1, 2, 3, 4, 8, + 126, 127, 128, 16383, 16384, 16385, + 65534, 65535, 65536, 65537}; + size_t rnd_len; + + /* Figure out how far we should go */ + rnd_len = lengths[asn_random_between( + 0, sizeof(lengths) / sizeof(lengths[0]) - 1)]; + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + if(!constraints || !constraints->per_constraints) + constraints = &td->encoding_constraints; + if(constraints->per_constraints) { + const asn_per_constraint_t *pc = &constraints->per_constraints->size; + if(pc->flags & APC_CONSTRAINED) { + long suggested_upper_bound = pc->upper_bound < (ssize_t)max_length + ? pc->upper_bound + : (ssize_t)max_length; + if(max_length <= (size_t)pc->lower_bound) { + return pc->lower_bound; + } + if(pc->flags & APC_EXTENSIBLE) { + switch(asn_random_between(0, 5)) { + case 0: + if(pc->lower_bound > 0) { + rnd_len = pc->lower_bound - 1; + break; + } + /* Fall through */ + case 1: + rnd_len = pc->upper_bound + 1; + break; + case 2: + /* Keep rnd_len from the table */ + if(rnd_len <= max_length) { + break; + } + /* Fall through */ + default: + rnd_len = asn_random_between(pc->lower_bound, + suggested_upper_bound); + } + } else { + rnd_len = + asn_random_between(pc->lower_bound, suggested_upper_bound); + } + } else { + rnd_len = asn_random_between(0, max_length); + } + } else { +#else + if(!constraints) constraints = &td->encoding_constraints; + { +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + if(rnd_len > max_length) { + rnd_len = asn_random_between(0, max_length); + } + } + + return rnd_len; +} diff --git a/asn.1/skeleton/OCTET_STRING_uper.c b/asn.1/skeleton/OCTET_STRING_uper.c new file mode 100644 index 00000000..f5528cd9 --- /dev/null +++ b/asn.1/skeleton/OCTET_STRING_uper.c @@ -0,0 +1,319 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include /* for .bits_unused member */ + +#undef RETURN +#define RETURN(_code) do {\ + asn_dec_rval_t tmprval;\ + tmprval.code = _code;\ + tmprval.consumed = consumed_myself;\ + return tmprval;\ + } while(0) + +static asn_per_constraints_t asn_DEF_OCTET_STRING_constraints = { + { APC_CONSTRAINED, 8, 8, 0, 255 }, + { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 }, + 0, 0 +}; + +asn_dec_rval_t +OCTET_STRING_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, + asn_per_data_t *pd) { + const asn_OCTET_STRING_specifics_t *specs = td->specifics + ? (const asn_OCTET_STRING_specifics_t *)td->specifics + : &asn_SPC_OCTET_STRING_specs; + const asn_per_constraints_t *pc = + constraints ? constraints : td->encoding_constraints.per_constraints; + const asn_per_constraint_t *cval; + const asn_per_constraint_t *csiz; + asn_dec_rval_t rval = { RC_OK, 0 }; + OCTET_STRING_t *st = (OCTET_STRING_t *)*sptr; + ssize_t consumed_myself = 0; + int repeat; + enum { + OS__BPC_CHAR = 1, + OS__BPC_U16 = 2, + OS__BPC_U32 = 4 + } bpc; /* Bytes per character */ + unsigned int unit_bits; + unsigned int canonical_unit_bits; + + (void)opt_codec_ctx; + + if(pc) { + cval = &pc->value; + csiz = &pc->size; + } else { + cval = &asn_DEF_OCTET_STRING_constraints.value; + csiz = &asn_DEF_OCTET_STRING_constraints.size; + } + + switch(specs->subvariant) { + default: + case ASN_OSUBV_ANY: + case ASN_OSUBV_BIT: + ASN_DEBUG("Unrecognized subvariant %d", specs->subvariant); + RETURN(RC_FAIL); + break; + case ASN_OSUBV_STR: + canonical_unit_bits = unit_bits = 8; + if(cval->flags & APC_CONSTRAINED) + unit_bits = cval->range_bits; + bpc = OS__BPC_CHAR; + break; + case ASN_OSUBV_U16: + canonical_unit_bits = unit_bits = 16; + if(cval->flags & APC_CONSTRAINED) + unit_bits = cval->range_bits; + bpc = OS__BPC_U16; + break; + case ASN_OSUBV_U32: + canonical_unit_bits = unit_bits = 32; + if(cval->flags & APC_CONSTRAINED) + unit_bits = cval->range_bits; + bpc = OS__BPC_U32; + break; + } + + /* + * Allocate the string. + */ + if(!st) { + st = (OCTET_STRING_t *)(*sptr = CALLOC(1, specs->struct_size)); + if(!st) RETURN(RC_FAIL); + } + + ASN_DEBUG("PER Decoding %s size %"ASN_PRIdMAX" .. %"ASN_PRIdMAX" bits %d", + csiz->flags & APC_EXTENSIBLE ? "extensible" : "non-extensible", + csiz->lower_bound, csiz->upper_bound, csiz->effective_bits); + + if(csiz->flags & APC_EXTENSIBLE) { + int inext = per_get_few_bits(pd, 1); + if(inext < 0) RETURN(RC_WMORE); + if(inext) { + csiz = &asn_DEF_OCTET_STRING_constraints.size; + unit_bits = canonical_unit_bits; + } + } + + if(csiz->effective_bits >= 0) { + FREEMEM(st->buf); + if(bpc) { + st->size = csiz->upper_bound * bpc; + } else { + st->size = (csiz->upper_bound + 7) >> 3; + } + st->buf = (uint8_t *)MALLOC(st->size + 1); + if(!st->buf) { st->size = 0; RETURN(RC_FAIL); } + } + + /* X.691, #16.5: zero-length encoding */ + /* X.691, #16.6: short fixed length encoding (up to 2 octets) */ + /* X.691, #16.7: long fixed length encoding (up to 64K octets) */ + if(csiz->effective_bits == 0) { + int ret; + if(bpc) { + ASN_DEBUG("Encoding OCTET STRING size %"ASN_PRIdMAX"", + csiz->upper_bound); + ret = OCTET_STRING_per_get_characters(pd, st->buf, + csiz->upper_bound, + bpc, unit_bits, + cval->lower_bound, + cval->upper_bound, + pc); + if(ret > 0) RETURN(RC_FAIL); + } else { + ASN_DEBUG("Encoding BIT STRING size %"ASN_PRIdMAX"", + csiz->upper_bound); + ret = per_get_many_bits(pd, st->buf, 0, + unit_bits * csiz->upper_bound); + } + if(ret < 0) RETURN(RC_WMORE); + consumed_myself += unit_bits * csiz->upper_bound; + st->buf[st->size] = 0; + RETURN(RC_OK); + } + + st->size = 0; + do { + ssize_t raw_len; + ssize_t len_bytes; + void *p; + int ret; + + /* Get the PER length */ + raw_len = uper_get_length(pd, csiz->effective_bits, csiz->lower_bound, + &repeat); + if(raw_len < 0) RETURN(RC_WMORE); + if(raw_len == 0 && st->buf) break; + + ASN_DEBUG("Got PER length eb %ld, len %ld, %s (%s)", + (long)csiz->effective_bits, (long)raw_len, + repeat ? "repeat" : "once", td->name); + len_bytes = raw_len * bpc; + p = REALLOC(st->buf, st->size + len_bytes + 1); + if(!p) RETURN(RC_FAIL); + st->buf = (uint8_t *)p; + + ret = OCTET_STRING_per_get_characters(pd, &st->buf[st->size], raw_len, + bpc, unit_bits, cval->lower_bound, + cval->upper_bound, pc); + if(ret > 0) RETURN(RC_FAIL); + if(ret < 0) RETURN(RC_WMORE); + st->size += len_bytes; + } while(repeat); + st->buf[st->size] = 0; /* nul-terminate */ + + return rval; +} + +asn_enc_rval_t +OCTET_STRING_encode_uper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + const asn_OCTET_STRING_specifics_t *specs = td->specifics + ? (const asn_OCTET_STRING_specifics_t *)td->specifics + : &asn_SPC_OCTET_STRING_specs; + const asn_per_constraints_t *pc = constraints + ? constraints + : td->encoding_constraints.per_constraints; + const asn_per_constraint_t *cval; + const asn_per_constraint_t *csiz; + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + asn_enc_rval_t er = { 0, 0, 0 }; + int inext = 0; /* Lies not within extension root */ + unsigned int unit_bits; + unsigned int canonical_unit_bits; + size_t size_in_units; + const uint8_t *buf; + int ret; + enum { + OS__BPC_CHAR = 1, + OS__BPC_U16 = 2, + OS__BPC_U32 = 4 + } bpc; /* Bytes per character */ + int ct_extensible; + + if(!st || (!st->buf && st->size)) + ASN__ENCODE_FAILED; + + if(pc) { + cval = &pc->value; + csiz = &pc->size; + } else { + cval = &asn_DEF_OCTET_STRING_constraints.value; + csiz = &asn_DEF_OCTET_STRING_constraints.size; + } + ct_extensible = csiz->flags & APC_EXTENSIBLE; + + switch(specs->subvariant) { + default: + case ASN_OSUBV_ANY: + case ASN_OSUBV_BIT: + ASN__ENCODE_FAILED; + case ASN_OSUBV_STR: + canonical_unit_bits = unit_bits = 8; + if(cval->flags & APC_CONSTRAINED) + unit_bits = cval->range_bits; + bpc = OS__BPC_CHAR; + size_in_units = st->size; + break; + case ASN_OSUBV_U16: + canonical_unit_bits = unit_bits = 16; + if(cval->flags & APC_CONSTRAINED) + unit_bits = cval->range_bits; + bpc = OS__BPC_U16; + size_in_units = st->size >> 1; + if(st->size & 1) { + ASN_DEBUG("%s string size is not modulo 2", td->name); + ASN__ENCODE_FAILED; + } + break; + case ASN_OSUBV_U32: + canonical_unit_bits = unit_bits = 32; + if(cval->flags & APC_CONSTRAINED) + unit_bits = cval->range_bits; + bpc = OS__BPC_U32; + size_in_units = st->size >> 2; + if(st->size & 3) { + ASN_DEBUG("%s string size is not modulo 4", td->name); + ASN__ENCODE_FAILED; + } + break; + } + + ASN_DEBUG("Encoding %s into %" ASN_PRI_SIZE " units of %d bits" + " (%"ASN_PRIdMAX"..%"ASN_PRIdMAX", effective %d)%s", + td->name, size_in_units, unit_bits, + csiz->lower_bound, csiz->upper_bound, + csiz->effective_bits, ct_extensible ? " EXT" : ""); + + /* Figure out whether size lies within PER visible constraint */ + + if(csiz->effective_bits >= 0) { + if((ssize_t)size_in_units < csiz->lower_bound + || (ssize_t)size_in_units > csiz->upper_bound) { + if(ct_extensible) { + csiz = &asn_DEF_OCTET_STRING_constraints.size; + unit_bits = canonical_unit_bits; + inext = 1; + } else { + ASN__ENCODE_FAILED; + } + } + } else { + inext = 0; + } + + if(ct_extensible) { + /* Declare whether length is [not] within extension root */ + if(per_put_few_bits(po, inext, 1)) + ASN__ENCODE_FAILED; + } + + if(csiz->effective_bits >= 0 && !inext) { + ASN_DEBUG("Encoding %" ASN_PRI_SIZE " bytes (%"ASN_PRIdMAX"), length in %d bits", st->size, + size_in_units - csiz->lower_bound, csiz->effective_bits); + ret = per_put_few_bits(po, size_in_units - csiz->lower_bound, + csiz->effective_bits); + if(ret) ASN__ENCODE_FAILED; + ret = OCTET_STRING_per_put_characters(po, st->buf, size_in_units, bpc, + unit_bits, cval->lower_bound, + cval->upper_bound, pc); + if(ret) ASN__ENCODE_FAILED; + ASN__ENCODED_OK(er); + } + + ASN_DEBUG("Encoding %" ASN_PRI_SIZE " bytes", st->size); + + buf = st->buf; + ASN_DEBUG("Encoding %" ASN_PRI_SIZE " in units", size_in_units); + do { + int need_eom = 0; + ssize_t may_save = uper_put_length(po, size_in_units, &need_eom); + if(may_save < 0) ASN__ENCODE_FAILED; + + ASN_DEBUG("Encoding %" ASN_PRI_SSIZE " of %" ASN_PRI_SIZE "%s", may_save, size_in_units, + need_eom ? ",+EOM" : ""); + + ret = OCTET_STRING_per_put_characters(po, buf, may_save, bpc, unit_bits, + cval->lower_bound, + cval->upper_bound, pc); + if(ret) ASN__ENCODE_FAILED; + + buf += may_save * bpc; + size_in_units -= may_save; + assert(!(may_save & 0x07) || !size_in_units); + if(need_eom && uper_put_length(po, 0, 0)) + ASN__ENCODE_FAILED; /* End of Message length */ + } while(size_in_units); + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/OCTET_STRING_xer.c b/asn.1/skeleton/OCTET_STRING_xer.c new file mode 100644 index 00000000..490f362a --- /dev/null +++ b/asn.1/skeleton/OCTET_STRING_xer.c @@ -0,0 +1,627 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include /* for .bits_unused member */ + +asn_enc_rval_t +OCTET_STRING_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const char * const h2c = "0123456789ABCDEF"; + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + asn_enc_rval_t er = { 0, 0, 0 }; + char scratch[16 * 3 + 4]; + char *p = scratch; + uint8_t *buf; + uint8_t *end; + size_t i; + + if(!st || (!st->buf && st->size)) + ASN__ENCODE_FAILED; + + er.encoded = 0; + + /* + * Dump the contents of the buffer in hexadecimal. + */ + buf = st->buf; + end = buf + st->size; + if(flags & XER_F_CANONICAL) { + char *scend = scratch + (sizeof(scratch) - 2); + for(; buf < end; buf++) { + if(p >= scend) { + ASN__CALLBACK(scratch, p - scratch); + p = scratch; + } + *p++ = h2c[(*buf >> 4) & 0x0F]; + *p++ = h2c[*buf & 0x0F]; + } + + ASN__CALLBACK(scratch, p-scratch); /* Dump the rest */ + } else { + for(i = 0; buf < end; buf++, i++) { + if(!(i % 16) && (i || st->size > 16)) { + ASN__CALLBACK(scratch, p-scratch); + p = scratch; + ASN__TEXT_INDENT(1, ilevel); + } + *p++ = h2c[(*buf >> 4) & 0x0F]; + *p++ = h2c[*buf & 0x0F]; + *p++ = 0x20; + } + if(p - scratch) { + p--; /* Remove the tail space */ + ASN__CALLBACK(scratch, p-scratch); /* Dump the rest */ + if(st->size > 16) + ASN__TEXT_INDENT(1, ilevel-1); + } + } + + ASN__ENCODED_OK(er); +cb_failed: + ASN__ENCODE_FAILED; +} + +static const struct OCTET_STRING__xer_escape_table_s { + const char *string; + int size; +} OCTET_STRING__xer_escape_table[] = { +#define OSXET(s) { s, sizeof(s) - 1 } + OSXET("\074\156\165\154\057\076"), /* */ + OSXET("\074\163\157\150\057\076"), /* */ + OSXET("\074\163\164\170\057\076"), /* */ + OSXET("\074\145\164\170\057\076"), /* */ + OSXET("\074\145\157\164\057\076"), /* */ + OSXET("\074\145\156\161\057\076"), /* */ + OSXET("\074\141\143\153\057\076"), /* */ + OSXET("\074\142\145\154\057\076"), /* */ + OSXET("\074\142\163\057\076"), /* */ + OSXET("\011"), /* \t */ + OSXET("\012"), /* \n */ + OSXET("\074\166\164\057\076"), /* */ + OSXET("\074\146\146\057\076"), /* */ + OSXET("\015"), /* \r */ + OSXET("\074\163\157\057\076"), /* */ + OSXET("\074\163\151\057\076"), /* */ + OSXET("\074\144\154\145\057\076"), /* */ + OSXET("\074\144\143\061\057\076"), /* */ + OSXET("\074\144\143\062\057\076"), /* */ + OSXET("\074\144\143\063\057\076"), /* */ + OSXET("\074\144\143\064\057\076"), /* */ + OSXET("\074\156\141\153\057\076"), /* */ + OSXET("\074\163\171\156\057\076"), /* */ + OSXET("\074\145\164\142\057\076"), /* */ + OSXET("\074\143\141\156\057\076"), /* */ + OSXET("\074\145\155\057\076"), /* */ + OSXET("\074\163\165\142\057\076"), /* */ + OSXET("\074\145\163\143\057\076"), /* */ + OSXET("\074\151\163\064\057\076"), /* */ + OSXET("\074\151\163\063\057\076"), /* */ + OSXET("\074\151\163\062\057\076"), /* */ + OSXET("\074\151\163\061\057\076"), /* */ + { 0, 0 }, /* " " */ + { 0, 0 }, /* ! */ + { 0, 0 }, /* \" */ + { 0, 0 }, /* # */ + { 0, 0 }, /* $ */ + { 0, 0 }, /* % */ + OSXET("\046\141\155\160\073"), /* & */ + { 0, 0 }, /* ' */ + {0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, /* ()*+,-./ */ + {0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, /* 01234567 */ + {0,0},{0,0},{0,0},{0,0}, /* 89:; */ + OSXET("\046\154\164\073"), /* < */ + { 0, 0 }, /* = */ + OSXET("\046\147\164\073"), /* > */ +}; + +static int +OS__check_escaped_control_char(const void *buf, int size) { + size_t i; + /* + * Inefficient algorithm which translates the escape sequences + * defined above into characters. Returns -1 if not found. + * TODO: replace by a faster algorithm (bsearch(), hash or + * nested table lookups). + */ + for(i = 0; i < 32 /* Don't spend time on the bottom half */; i++) { + const struct OCTET_STRING__xer_escape_table_s *el; + el = &OCTET_STRING__xer_escape_table[i]; + if(el->size == size && memcmp(buf, el->string, size) == 0) + return i; + } + return -1; +} + +static int +OCTET_STRING__handle_control_chars(void *struct_ptr, const void *chunk_buf, size_t chunk_size) { + /* + * This might be one of the escape sequences + * for control characters. Check it out. + * #11.15.5 + */ + int control_char = OS__check_escaped_control_char(chunk_buf,chunk_size); + if(control_char >= 0) { + OCTET_STRING_t *st = (OCTET_STRING_t *)struct_ptr; + void *p = REALLOC(st->buf, st->size + 2); + if(p) { + st->buf = (uint8_t *)p; + st->buf[st->size++] = control_char; + st->buf[st->size] = '\0'; /* nul-termination */ + return 0; + } + } + + return -1; /* No, it's not */ +} + +asn_enc_rval_t +OCTET_STRING_encode_xer_utf8(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + asn_enc_rval_t er = { 0, 0, 0 }; + uint8_t *buf, *end; + uint8_t *ss; /* Sequence start */ + ssize_t encoded_len = 0; + + (void)ilevel; /* Unused argument */ + (void)flags; /* Unused argument */ + + if(!st || (!st->buf && st->size)) + ASN__ENCODE_FAILED; + + buf = st->buf; + end = buf + st->size; + for(ss = buf; buf < end; buf++) { + unsigned int ch = *buf; + int s_len; /* Special encoding sequence length */ + + /* + * Escape certain characters: X.680/11.15 + */ + if(ch < sizeof(OCTET_STRING__xer_escape_table) + / sizeof(OCTET_STRING__xer_escape_table[0]) + && (s_len = OCTET_STRING__xer_escape_table[ch].size)) { + if(((buf - ss) && cb(ss, buf - ss, app_key) < 0) + || cb(OCTET_STRING__xer_escape_table[ch].string, s_len, app_key) < 0) + ASN__ENCODE_FAILED; + encoded_len += (buf - ss) + s_len; + ss = buf + 1; + } + } + + encoded_len += (buf - ss); + if((buf - ss) && cb(ss, buf - ss, app_key) < 0) + ASN__ENCODE_FAILED; + + er.encoded = encoded_len; + ASN__ENCODED_OK(er); +} + +/* + * Convert from hexadecimal format (cstring): "AB CD EF" + */ +static ssize_t OCTET_STRING__convert_hexadecimal(void *sptr, const void *chunk_buf, size_t chunk_size, int have_more) { + OCTET_STRING_t *st = (OCTET_STRING_t *)sptr; + const char *chunk_stop = (const char *)chunk_buf; + const char *p = chunk_stop; + const char *pend = p + chunk_size; + unsigned int clv = 0; + int half = 0; /* Half bit */ + uint8_t *buf; + + /* Reallocate buffer according to high cap estimation */ + size_t new_size = st->size + (chunk_size + 1) / 2; + void *nptr = REALLOC(st->buf, new_size + 1); + if(!nptr) return -1; + st->buf = (uint8_t *)nptr; + buf = st->buf + st->size; + + /* + * If something like " a b c " appears here, the " a b":3 will be + * converted, and the rest skipped. That is, unless buf_size is greater + * than chunk_size, then it'll be equivalent to "ABC0". + */ + for(; p < pend; p++) { + int ch = *(const unsigned char *)p; + switch(ch) { + case 0x09: case 0x0a: case 0x0c: case 0x0d: + case 0x20: + /* Ignore whitespace */ + continue; + case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: /*01234*/ + case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: /*56789*/ + clv = (clv << 4) + (ch - 0x30); + break; + case 0x41: case 0x42: case 0x43: /* ABC */ + case 0x44: case 0x45: case 0x46: /* DEF */ + clv = (clv << 4) + (ch - 0x41 + 10); + break; + case 0x61: case 0x62: case 0x63: /* abc */ + case 0x64: case 0x65: case 0x66: /* def */ + clv = (clv << 4) + (ch - 0x61 + 10); + break; + default: + *buf = 0; /* JIC */ + return -1; + } + if(half++) { + half = 0; + *buf++ = clv; + chunk_stop = p + 1; + } + } + + /* + * Check partial decoding. + */ + if(half) { + if(have_more) { + /* + * Partial specification is fine, + * because no more more PXER_TEXT data is available. + */ + *buf++ = clv << 4; + chunk_stop = p; + } + } else { + chunk_stop = p; + } + + st->size = buf - st->buf; /* Adjust the buffer size */ + assert(st->size <= new_size); + st->buf[st->size] = 0; /* Courtesy termination */ + + return (chunk_stop - (const char *)chunk_buf); /* Converted size */ +} + +/* + * Convert from binary format: "00101011101" + */ +static ssize_t OCTET_STRING__convert_binary(void *sptr, const void *chunk_buf, size_t chunk_size, int have_more) { + BIT_STRING_t *st = (BIT_STRING_t *)sptr; + const char *p = (const char *)chunk_buf; + const char *pend = (p == NULL)? NULL : p + chunk_size; + int bits_unused = st->bits_unused & 0x7; + uint8_t *buf; + + /* Reallocate buffer according to high cap estimation */ + size_t new_size = st->size + (chunk_size + 7) / 8; + void *nptr = REALLOC(st->buf, new_size + 1); + if(!nptr) return -1; + st->buf = (uint8_t *)nptr; + buf = st->buf + st->size; + + (void)have_more; + + if(bits_unused == 0) + bits_unused = 8; + else if(st->size) + buf--; + + /* + * Convert series of 0 and 1 into the octet string. + */ + for(; p < pend; p++) { + int ch = *(const unsigned char *)p; + switch(ch) { + case 0x09: case 0x0a: case 0x0c: case 0x0d: + case 0x20: + /* Ignore whitespace */ + break; + case 0x30: + case 0x31: + if(bits_unused-- <= 0) { + *++buf = 0; /* Clean the cell */ + bits_unused = 7; + } + *buf |= (ch&1) << bits_unused; + break; + default: + st->bits_unused = bits_unused; + return -1; + } + } + + if(bits_unused == 8) { + st->size = buf - st->buf; + st->bits_unused = 0; + } else { + st->size = buf - st->buf + 1; + st->bits_unused = bits_unused; + } + + assert(st->size <= new_size); + st->buf[st->size] = 0; /* Courtesy termination */ + + return chunk_size; /* Converted in full */ +} + +/* + * Something like strtod(), but with stricter rules. + */ +static int +OS__strtoent(int base, const char *buf, const char *end, int32_t *ret_value) { + const int32_t last_unicode_codepoint = 0x10ffff; + int32_t val = 0; + const char *p; + + for(p = buf; p < end; p++) { + int ch = *p; + + switch(ch) { + case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: /*01234*/ + case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: /*56789*/ + val = val * base + (ch - 0x30); + break; + case 0x41: case 0x42: case 0x43: /* ABC */ + case 0x44: case 0x45: case 0x46: /* DEF */ + val = val * base + (ch - 0x41 + 10); + break; + case 0x61: case 0x62: case 0x63: /* abc */ + case 0x64: case 0x65: case 0x66: /* def */ + val = val * base + (ch - 0x61 + 10); + break; + case 0x3b: /* ';' */ + *ret_value = val; + return (p - buf) + 1; + default: + return -1; /* Character set error */ + } + + /* Value exceeds the Unicode range. */ + if(val > last_unicode_codepoint) { + return -1; + } + } + + *ret_value = -1; + return (p - buf); +} + +/* + * Convert from the plain UTF-8 format, expanding entity references: "2 < 3" + */ +static ssize_t +OCTET_STRING__convert_entrefs(void *sptr, const void *chunk_buf, + size_t chunk_size, int have_more) { + OCTET_STRING_t *st = (OCTET_STRING_t *)sptr; + const char *p = (const char *)chunk_buf; + const char *pend = p + chunk_size; + uint8_t *buf; + + /* Reallocate buffer */ + size_t new_size = st->size + chunk_size; + void *nptr = REALLOC(st->buf, new_size + 1); + if(!nptr) return -1; + st->buf = (uint8_t *)nptr; + buf = st->buf + st->size; + + /* + * Convert series of 0 and 1 into the octet string. + */ + for(; p < pend; p++) { + int ch = *(const unsigned char *)p; + int len; /* Length of the rest of the chunk */ + + if(ch != 0x26 /* '&' */) { + *buf++ = ch; + continue; /* That was easy... */ + } + + /* + * Process entity reference. + */ + len = chunk_size - (p - (const char *)chunk_buf); + if(len == 1 /* "&" */) goto want_more; + if(p[1] == 0x23 /* '#' */) { + const char *pval; /* Pointer to start of digits */ + int32_t val = 0; /* Entity reference value */ + int base; + + if(len == 2 /* "&#" */) goto want_more; + if(p[2] == 0x78 /* 'x' */) + pval = p + 3, base = 16; + else + pval = p + 2, base = 10; + len = OS__strtoent(base, pval, p + len, &val); + if(len == -1) { + /* Invalid charset. Just copy verbatim. */ + *buf++ = ch; + continue; + } + if(!len || pval[len-1] != 0x3b) goto want_more; + assert(val > 0); + p += (pval - p) + len - 1; /* Advance past entref */ + + if(val < 0x80) { + *buf++ = (char)val; + } else if(val < 0x800) { + *buf++ = 0xc0 | ((val >> 6)); + *buf++ = 0x80 | ((val & 0x3f)); + } else if(val < 0x10000) { + *buf++ = 0xe0 | ((val >> 12)); + *buf++ = 0x80 | ((val >> 6) & 0x3f); + *buf++ = 0x80 | ((val & 0x3f)); + } else if(val < 0x200000) { + *buf++ = 0xf0 | ((val >> 18)); + *buf++ = 0x80 | ((val >> 12) & 0x3f); + *buf++ = 0x80 | ((val >> 6) & 0x3f); + *buf++ = 0x80 | ((val & 0x3f)); + } else if(val < 0x4000000) { + *buf++ = 0xf8 | ((val >> 24)); + *buf++ = 0x80 | ((val >> 18) & 0x3f); + *buf++ = 0x80 | ((val >> 12) & 0x3f); + *buf++ = 0x80 | ((val >> 6) & 0x3f); + *buf++ = 0x80 | ((val & 0x3f)); + } else { + *buf++ = 0xfc | ((val >> 30) & 0x1); + *buf++ = 0x80 | ((val >> 24) & 0x3f); + *buf++ = 0x80 | ((val >> 18) & 0x3f); + *buf++ = 0x80 | ((val >> 12) & 0x3f); + *buf++ = 0x80 | ((val >> 6) & 0x3f); + *buf++ = 0x80 | ((val & 0x3f)); + } + } else { + /* + * Ugly, limited parsing of & > < + */ + char *sc = (char *)memchr(p, 0x3b, len > 5 ? 5 : len); + if(!sc) goto want_more; + if((sc - p) == 4 + && p[1] == 0x61 /* 'a' */ + && p[2] == 0x6d /* 'm' */ + && p[3] == 0x70 /* 'p' */) { + *buf++ = 0x26; + p = sc; + continue; + } + if((sc - p) == 3) { + if(p[1] == 0x6c) { + *buf = 0x3c; /* '<' */ + } else if(p[1] == 0x67) { + *buf = 0x3e; /* '>' */ + } else { + /* Unsupported entity reference */ + *buf++ = ch; + continue; + } + if(p[2] != 0x74) { + /* Unsupported entity reference */ + *buf++ = ch; + continue; + } + buf++; + p = sc; + continue; + } + /* Unsupported entity reference */ + *buf++ = ch; + } + + continue; + want_more: + if(have_more) { + /* + * We know that no more data (of the same type) + * is coming. Copy the rest verbatim. + */ + *buf++ = ch; + continue; + } + chunk_size = (p - (const char *)chunk_buf); + /* Processing stalled: need more data */ + break; + } + + st->size = buf - st->buf; + assert(st->size <= new_size); + st->buf[st->size] = 0; /* Courtesy termination */ + + return chunk_size; /* Converted in full */ +} + +/* + * Decode OCTET STRING from the XML element's body. + */ +static asn_dec_rval_t +OCTET_STRING__decode_xer( + const asn_codec_ctx_t *opt_codec_ctx, const asn_TYPE_descriptor_t *td, + void **sptr, const char *opt_mname, const void *buf_ptr, size_t size, + int (*opt_unexpected_tag_decoder)(void *struct_ptr, const void *chunk_buf, + size_t chunk_size), + ssize_t (*body_receiver)(void *struct_ptr, const void *chunk_buf, + size_t chunk_size, int have_more)) { + OCTET_STRING_t *st = (OCTET_STRING_t *)*sptr; + const asn_OCTET_STRING_specifics_t *specs = td->specifics + ? (const asn_OCTET_STRING_specifics_t *)td->specifics + : &asn_SPC_OCTET_STRING_specs; + const char *xml_tag = opt_mname ? opt_mname : td->xml_tag; + asn_struct_ctx_t *ctx; /* Per-structure parser context */ + asn_dec_rval_t rval; /* Return value from the decoder */ + int st_allocated; + + /* + * Create the string if does not exist. + */ + if(!st) { + st = (OCTET_STRING_t *)CALLOC(1, specs->struct_size); + *sptr = (void *)st; + if(!st) goto sta_failed; + st_allocated = 1; + } else { + st_allocated = 0; + } + if(!st->buf) { + /* This is separate from above section */ + st->buf = (uint8_t *)CALLOC(1, 1); + if(!st->buf) { + if(st_allocated) { + *sptr = 0; + goto stb_failed; + } else { + goto sta_failed; + } + } + } + + /* Restore parsing context */ + ctx = (asn_struct_ctx_t *)(((char *)*sptr) + specs->ctx_offset); + + return xer_decode_general(opt_codec_ctx, ctx, *sptr, xml_tag, + buf_ptr, size, + opt_unexpected_tag_decoder, + body_receiver); + +stb_failed: + FREEMEM(st); +sta_failed: + rval.code = RC_FAIL; + rval.consumed = 0; + return rval; +} + +/* + * Decode OCTET STRING from the hexadecimal data. + */ +asn_dec_rval_t +OCTET_STRING_decode_xer_hex(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, + size_t size) { + return OCTET_STRING__decode_xer(opt_codec_ctx, td, sptr, opt_mname, + buf_ptr, size, 0, + OCTET_STRING__convert_hexadecimal); +} + +/* + * Decode OCTET STRING from the binary (0/1) data. + */ +asn_dec_rval_t +OCTET_STRING_decode_xer_binary(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, + size_t size) { + return OCTET_STRING__decode_xer(opt_codec_ctx, td, sptr, opt_mname, + buf_ptr, size, 0, + OCTET_STRING__convert_binary); +} + +/* + * Decode OCTET STRING from the string (ASCII/UTF-8) data. + */ +asn_dec_rval_t +OCTET_STRING_decode_xer_utf8(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, + size_t size) { + return OCTET_STRING__decode_xer(opt_codec_ctx, td, sptr, opt_mname, + buf_ptr, size, + OCTET_STRING__handle_control_chars, + OCTET_STRING__convert_entrefs); +} diff --git a/asn.1/skeleton/OPEN_TYPE.c b/asn.1/skeleton/OPEN_TYPE.c new file mode 100644 index 00000000..75f9b958 --- /dev/null +++ b/asn.1/skeleton/OPEN_TYPE.c @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_TYPE_operation_t asn_OP_OPEN_TYPE = { + OPEN_TYPE_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + OPEN_TYPE_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + OPEN_TYPE_compare, + OPEN_TYPE_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OPEN_TYPE_decode_ber, + OPEN_TYPE_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + OPEN_TYPE_decode_xer, + OPEN_TYPE_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + OPEN_TYPE_decode_jer, + OPEN_TYPE_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + OPEN_TYPE_decode_oer, + OPEN_TYPE_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OPEN_TYPE_decode_uper, + OPEN_TYPE_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OPEN_TYPE_decode_aper, + OPEN_TYPE_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + 0, /* Random fill is not supported for open type */ +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; diff --git a/asn.1/skeleton/OPEN_TYPE.h b/asn.1/skeleton/OPEN_TYPE.h new file mode 100644 index 00000000..c4b5d1b8 --- /dev/null +++ b/asn.1/skeleton/OPEN_TYPE.h @@ -0,0 +1,128 @@ +/*- + * Copyright (c) 2017-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef ASN_OPEN_TYPE_H +#define ASN_OPEN_TYPE_H + +#include +///////////#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Decode an Open Type which is potentially constraiend + * by the other members of the parent structure. + */ + +#undef ADVANCE +#define ADVANCE(num_bytes) \ + do { \ + size_t num = num_bytes; \ + ptr = ((const char *)ptr) + num; \ + size -= num; \ + consumed_myself += num; \ + } while(0) + +#define OPEN_TYPE_free CHOICE_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +#define OPEN_TYPE_print CHOICE_print +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define OPEN_TYPE_compare CHOICE_compare +#define OPEN_TYPE_copy CHOICE_copy + +#define OPEN_TYPE_constraint CHOICE_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +asn_dec_rval_t OPEN_TYPE_ber_get( + const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *parent_type, + void *parent_structure, + const asn_TYPE_member_t *element, + const void *ptr, size_t size); +#define OPEN_TYPE_decode_ber NULL +#define OPEN_TYPE_encode_der CHOICE_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +asn_dec_rval_t OPEN_TYPE_xer_get( + const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *parent_type, + void *parent_structure, + const asn_TYPE_member_t *element, + const void *ptr, size_t size); +#define OPEN_TYPE_decode_xer NULL +#define OPEN_TYPE_encode_xer CHOICE_encode_xer +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +asn_dec_rval_t OPEN_TYPE_jer_get( + const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *parent_type, + void *parent_structure, + const asn_TYPE_member_t *element, + const void *ptr, size_t size); +#define OPEN_TYPE_decode_jer NULL +#define OPEN_TYPE_encode_jer CHOICE_encode_jer +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +asn_dec_rval_t OPEN_TYPE_oer_get( + const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *parent_type, + void *parent_structure, + asn_TYPE_member_t *element, const void *ptr, + size_t size); +#define OPEN_TYPE_decode_oer NULL +asn_enc_rval_t OPEN_TYPE_encode_oer( + const asn_TYPE_descriptor_t *type_descriptor, + const asn_oer_constraints_t *constraints, const void *struct_ptr, + asn_app_consume_bytes_f *consume_bytes_cb, void *app_key); +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +asn_dec_rval_t OPEN_TYPE_uper_get( + const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *parent_type, + void *parent_structure, + const asn_TYPE_member_t *element, + asn_per_data_t *pd); +#define OPEN_TYPE_decode_uper NULL +asn_enc_rval_t OPEN_TYPE_encode_uper( + const asn_TYPE_descriptor_t *type_descriptor, + const asn_per_constraints_t *constraints, const void *struct_ptr, + asn_per_outp_t *per_output); +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +asn_dec_rval_t OPEN_TYPE_aper_get( + const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *parent_type, + void *parent_structure, + const asn_TYPE_member_t *element, + asn_per_data_t *pd); +#define OPEN_TYPE_decode_aper NULL +asn_enc_rval_t OPEN_TYPE_encode_aper( + const asn_TYPE_descriptor_t *type_descriptor, + const asn_per_constraints_t *constraints, const void *struct_ptr, + asn_per_outp_t *per_output); + +int OPEN_TYPE_aper_is_unknown_type( + const asn_TYPE_descriptor_t *td, + void *sptr, + const asn_TYPE_member_t *elm); + +asn_dec_rval_t OPEN_TYPE_aper_unknown_type_discard_bytes( + asn_per_data_t *pd); +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +extern asn_TYPE_operation_t asn_OP_OPEN_TYPE; + +#ifdef __cplusplus +} +#endif + +#endif /* ASN_OPEN_TYPE_H */ diff --git a/asn.1/skeleton/OPEN_TYPE_aper.c b/asn.1/skeleton/OPEN_TYPE_aper.c new file mode 100644 index 00000000..78799ff6 --- /dev/null +++ b/asn.1/skeleton/OPEN_TYPE_aper.c @@ -0,0 +1,174 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include +#include + +asn_dec_rval_t +OPEN_TYPE_aper_get(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void *sptr, + const asn_TYPE_member_t *elm, asn_per_data_t *pd) { + asn_type_selector_result_t selected; + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + void *inner_value; + asn_dec_rval_t rv; + + if(!(elm->flags & ATF_OPEN_TYPE)) { + ASN__DECODE_FAILED; + } + + if(!elm->type_selector) { + ASN_DEBUG("Type selector is not defined for Open Type %s->%s->%s", + td->name, elm->name, elm->type->name); + ASN__DECODE_FAILED; + } + + selected = elm->type_selector(td, sptr); + if(!selected.presence_index) { + ASN__DECODE_FAILED; + } + + /* Fetch the pointer to this member */ + assert(elm->flags == ATF_OPEN_TYPE); + if(elm->flags & ATF_POINTER) { + memb_ptr2 = (void **)((char *)sptr + elm->memb_offset); + } else { + memb_ptr = (char *)sptr + elm->memb_offset; + memb_ptr2 = &memb_ptr; + } + if(*memb_ptr2 != NULL) { + /* Make sure we reset the structure first before encoding */ + if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, 0) + != 0) { + ASN__DECODE_FAILED; + } + } + + inner_value = + (char *)*memb_ptr2 + + elm->type->elements[selected.presence_index - 1].memb_offset; + + rv = aper_open_type_get(opt_codec_ctx, selected.type_descriptor, + elm->type->elements[selected.presence_index - 1].encoding_constraints.per_constraints, + &inner_value, pd); + switch(rv.code) { + case RC_OK: + if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, + selected.presence_index) + == 0) { + break; + } else { + rv.code = RC_FAIL; + } + /* Fall through */ + case RC_WMORE: + case RC_FAIL: + if(*memb_ptr2) { + if(elm->flags & ATF_POINTER) { + ASN_STRUCT_FREE(*selected.type_descriptor, inner_value); + *memb_ptr2 = NULL; + } else { + ASN_STRUCT_RESET(*selected.type_descriptor, + inner_value); + } + } + } + return rv; +} + +asn_enc_rval_t +OPEN_TYPE_encode_aper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + const void *memb_ptr; /* Pointer to the member */ + asn_TYPE_member_t *elm; /* CHOICE's element */ + asn_enc_rval_t er = {0,0,0}; + unsigned present; + + (void)constraints; + + present = CHOICE_variant_get_presence(td, sptr); + if(present == 0 || present > td->elements_count) { + ASN__ENCODE_FAILED; + } else { + present--; + } + + ASN_DEBUG("Encoding %s OPEN TYPE element %d", td->name, present); + + elm = &td->elements[present]; + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr = + *(const void *const *)((const char *)sptr + elm->memb_offset); + if(!memb_ptr) ASN__ENCODE_FAILED; + } else { + memb_ptr = (const char *)sptr + elm->memb_offset; + } + + if(aper_open_type_put(elm->type, elm->encoding_constraints.per_constraints, memb_ptr, po) < 0) { + ASN__ENCODE_FAILED; + } + + er.encoded = 0; + ASN__ENCODED_OK(er); +} + + +int OPEN_TYPE_aper_is_unknown_type(const asn_TYPE_descriptor_t *td, void *sptr, const asn_TYPE_member_t *elm) { + asn_type_selector_result_t selected; + + if(!elm->type_selector) { + return 1; + } + else { + selected = elm->type_selector(td, sptr); + if(!selected.presence_index) { + return 1; + } + } + return 0; +} + +asn_dec_rval_t +OPEN_TYPE_aper_unknown_type_discard_bytes (asn_per_data_t *pd) { +#define ASN_DUMMY_BYTES 256 + unsigned char dummy[ASN_DUMMY_BYTES], *dummy_ptr = NULL; + ssize_t bytes; + int repeat; + asn_dec_rval_t rv; + + rv.consumed = 0; + rv.code = RC_FAIL; + + do { + bytes = aper_get_length(pd, -1, -1, -1, &repeat); + if (bytes > 10 * ASN_DUMMY_BYTES) + { + return rv; + } + else if (bytes > ASN_DUMMY_BYTES) + { + dummy_ptr = CALLOC(1, bytes); + if (!dummy_ptr) + return rv; + } + + per_get_many_bits(pd, (dummy_ptr ? dummy_ptr : dummy), 0, bytes << 3); + + if (dummy_ptr) + { + FREEMEM(dummy_ptr); + dummy_ptr = NULL; + } + } while (repeat); + + rv.code = RC_OK; + return rv; +#undef ASN_DUMMY_BYTES +} diff --git a/asn.1/skeleton/OPEN_TYPE_ber.c b/asn.1/skeleton/OPEN_TYPE_ber.c new file mode 100644 index 00000000..7d894807 --- /dev/null +++ b/asn.1/skeleton/OPEN_TYPE_ber.c @@ -0,0 +1,90 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_dec_rval_t +OPEN_TYPE_ber_get(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void *sptr, + const asn_TYPE_member_t *elm, const void *ptr, size_t size) { + size_t consumed_myself = 0; + asn_type_selector_result_t selected; + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + void *inner_value; + asn_dec_rval_t rv; + + if(!(elm->flags & ATF_OPEN_TYPE)) { + ASN__DECODE_FAILED; + } + + if(!elm->type_selector) { + ASN_DEBUG("Type selector is not defined for Open Type %s->%s->%s", + td->name, elm->name, elm->type->name); + ASN__DECODE_FAILED; + } + + selected = elm->type_selector(td, sptr); + if(!selected.presence_index) { + ASN__DECODE_FAILED; + } + + /* Fetch the pointer to this member */ + if(elm->flags & ATF_POINTER) { + memb_ptr2 = (void **)((char *)sptr + elm->memb_offset); + } else { + memb_ptr = (char *)sptr + elm->memb_offset; + memb_ptr2 = &memb_ptr; + } + if(*memb_ptr2 != NULL) { + /* Make sure we reset the structure first before encoding */ + if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, 0) != 0) { + ASN__DECODE_FAILED; + } + } + + inner_value = + (char *)*memb_ptr2 + + elm->type->elements[selected.presence_index - 1].memb_offset; + + ASN_DEBUG("presence %d\n", selected.presence_index); + + rv = selected.type_descriptor->op->ber_decoder( + opt_codec_ctx, selected.type_descriptor, &inner_value, ptr, size, + elm->tag_mode); + ADVANCE(rv.consumed); + rv.consumed = 0; + switch(rv.code) { + case RC_OK: + if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, + selected.presence_index) + == 0) { + rv.code = RC_OK; + rv.consumed = consumed_myself; + return rv; + } else { + /* Oh, now a full-blown failure failure */ + } + /* Fall through */ + case RC_FAIL: + rv.consumed = consumed_myself; + /* Fall through */ + case RC_WMORE: + break; + } + + if(*memb_ptr2) { + if(elm->flags & ATF_POINTER) { + ASN_STRUCT_FREE(*selected.type_descriptor, inner_value); + *memb_ptr2 = NULL; + } else { + ASN_STRUCT_RESET(*selected.type_descriptor, + inner_value); + } + } + return rv; +} diff --git a/asn.1/skeleton/OPEN_TYPE_jer.c b/asn.1/skeleton/OPEN_TYPE_jer.c new file mode 100644 index 00000000..79649762 --- /dev/null +++ b/asn.1/skeleton/OPEN_TYPE_jer.c @@ -0,0 +1,178 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_dec_rval_t +OPEN_TYPE_jer_get(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void *sptr, + const asn_TYPE_member_t *elm, const void *ptr, size_t size) { + size_t consumed_myself = 0; + asn_type_selector_result_t selected; + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + void *inner_value; + asn_dec_rval_t rv; + + int jer_context = 0; + ssize_t ch_size; + pjer_chunk_type_e ch_type; + + if(!(elm->flags & ATF_OPEN_TYPE)) { + ASN__DECODE_FAILED; + } + + if(!elm->type_selector) { + ASN_DEBUG("Type selector is not defined for Open Type %s->%s->%s", + td->name, elm->name, elm->type->name); + ASN__DECODE_FAILED; + } + + selected = elm->type_selector(td, sptr); + if(!selected.presence_index) { + ASN__DECODE_FAILED; + } + + /* Fetch the pointer to this member */ + assert(elm->flags == ATF_OPEN_TYPE); + if(elm->flags & ATF_POINTER) { + memb_ptr2 = (void **)((char *)sptr + elm->memb_offset); + } else { + memb_ptr = (char *)sptr + elm->memb_offset; + memb_ptr2 = &memb_ptr; + } + if(*memb_ptr2 != NULL) { + /* Make sure we reset the structure first before encoding */ + if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, 0) + != 0) { + ASN__DECODE_FAILED; + } + } + + /* + * Confirm wrapper. + */ + for(;;) { + ch_size = jer_next_token(&jer_context, ptr, size, &ch_type); + if(ch_size < 0) { + ASN__DECODE_FAILED; + } else { + switch(ch_type) { + case PJER_WMORE: + ASN__DECODE_STARVED; + case PJER_TEXT: + case PJER_DLM: + ADVANCE(ch_size); + continue; + case PJER_KEY: + default: + break; + } + break; + } + + } + + /* + * Wrapper value confirmed. + */ + switch(jer_check_sym(ptr, ch_size, NULL)) { + case JCK_UNKNOWN: + ADVANCE(ch_size); + break; + case JCK_BROKEN: + default: + ASN__DECODE_FAILED; + } + + + /* Skip colon */ + ch_size = jer_next_token(&jer_context, ptr, size, &ch_type); + if(ch_size < 0 || ch_type != PJER_TEXT) { + ASN__DECODE_FAILED; + } else { + ADVANCE(ch_size); + } + + inner_value = + (char *)*memb_ptr2 + + elm->type->elements[selected.presence_index - 1].memb_offset; + + rv = selected.type_descriptor->op->jer_decoder( + opt_codec_ctx, selected.type_descriptor, &inner_value, ptr, size); + ADVANCE(rv.consumed); + rv.consumed = 0; + switch(rv.code) { + case RC_OK: + if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, + selected.presence_index) + == 0) { + break; + } else { + rv.code = RC_FAIL; + } + /* Fall through */ + case RC_FAIL: + /* Point to a best position where failure occurred */ + rv.consumed = consumed_myself; + /* Fall through */ + case RC_WMORE: + /* Wrt. rv.consumed==0: + * In case a genuine RC_WMORE, the whole Open Type decoding + * will have to be restarted. + */ + if(*memb_ptr2) { + if(elm->flags & ATF_POINTER) { + ASN_STRUCT_FREE(*selected.type_descriptor, inner_value); + *memb_ptr2 = NULL; + } else { + ASN_STRUCT_RESET(*selected.type_descriptor, + inner_value); + } + } + return rv; + } + + + /* + * Finalize wrapper. + */ + for(;;) { + ch_size = jer_next_token(&jer_context, ptr, size, &ch_type); + if(ch_size < 0) { + ASN__DECODE_FAILED; + } else { + switch(ch_type) { + case PJER_WMORE: + ASN__DECODE_STARVED; + case PJER_TEXT: + ADVANCE(ch_size); + continue; + default: + break; + } + break; + } + } + + /* + * Wrapper value confirmed. + */ + switch(jer_check_sym(ptr, ch_size, NULL)) { + case JCK_KEY: + case JCK_OEND: + ADVANCE(ch_size); + break; + case JCK_BROKEN: + default: + ASN__DECODE_FAILED; + } + + rv.consumed += consumed_myself; + + return rv; +} diff --git a/asn.1/skeleton/OPEN_TYPE_oer.c b/asn.1/skeleton/OPEN_TYPE_oer.c new file mode 100644 index 00000000..d21bbade --- /dev/null +++ b/asn.1/skeleton/OPEN_TYPE_oer.c @@ -0,0 +1,138 @@ +/* + * Copyright (c) 2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_dec_rval_t +OPEN_TYPE_oer_get(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void *sptr, + asn_TYPE_member_t *elm, const void *ptr, size_t size) { + asn_type_selector_result_t selected; + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + void *inner_value; + asn_dec_rval_t rv; + size_t ot_ret; + + + if(!(elm->flags & ATF_OPEN_TYPE)) { + ASN__DECODE_FAILED; + } + + if(!elm->type_selector) { + ASN_DEBUG("Type selector is not defined for Open Type %s->%s->%s", + td->name, elm->name, elm->type->name); + ASN__DECODE_FAILED; + } + + selected = elm->type_selector(td, sptr); + if(!selected.presence_index) { + ASN__DECODE_FAILED; + } + + /* Fetch the pointer to this member */ + if(elm->flags & ATF_POINTER) { + memb_ptr2 = (void **)((char *)sptr + elm->memb_offset); + } else { + memb_ptr = (char *)sptr + elm->memb_offset; + memb_ptr2 = &memb_ptr; + } + if(*memb_ptr2 != NULL) { + /* Make sure we reset the structure first before encoding */ + if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, 0) != 0) { + ASN__DECODE_FAILED; + } + } + + inner_value = + (char *)*memb_ptr2 + + elm->type->elements[selected.presence_index - 1].memb_offset; + + ot_ret = oer_open_type_get(opt_codec_ctx, selected.type_descriptor, NULL, + &inner_value, ptr, size); + switch(ot_ret) { + default: + if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, + selected.presence_index) + == 0) { + rv.code = RC_OK; + rv.consumed = ot_ret; + return rv; + } else { + /* Oh, now a full-blown failure failure */ + } + /* Fall through */ + case -1: + rv.code = RC_FAIL; + rv.consumed = ot_ret; + break; + case 0: + rv.code = RC_WMORE; + rv.consumed = 0; + break; + } + + if(*memb_ptr2) { + const asn_CHOICE_specifics_t *specs = + selected.type_descriptor->specifics; + if(elm->flags & ATF_POINTER) { + ASN_STRUCT_FREE(*selected.type_descriptor, inner_value); + *memb_ptr2 = NULL; + } else { + ASN_STRUCT_FREE_CONTENTS_ONLY(*selected.type_descriptor, + inner_value); + memset(*memb_ptr2, 0, specs->struct_size); + } + } + return rv; +} + +asn_enc_rval_t +OPEN_TYPE_encode_oer(const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, const void *sptr, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_TYPE_member_t *elm; + unsigned present; + const void *memb_ptr; + ssize_t encoded; + asn_enc_rval_t er = {0, 0, 0}; + + (void)constraints; + + if(!sptr) ASN__ENCODE_FAILED; + + present = CHOICE_variant_get_presence(td, sptr); + if(present == 0 || present > td->elements_count) { + ASN__ENCODE_FAILED; + } else { + present--; + } + + ASN_DEBUG("Encoding %s OPEN TYPE element %d", td->name, present); + + elm = &td->elements[present]; + if(elm->flags & ATF_POINTER) { + memb_ptr = + *(const void *const *)((const char *)sptr + elm->memb_offset); + if(memb_ptr == 0) { + /* Mandatory element absent */ + ASN__ENCODE_FAILED; + } + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + } + + if((encoded = oer_open_type_put(elm->type, + elm->encoding_constraints.oer_constraints, + memb_ptr, cb, app_key)) < 0) { + ASN__ENCODE_FAILED; + } + + er.encoded = encoded; + ASN__ENCODED_OK(er); + + return er; +} diff --git a/asn.1/skeleton/OPEN_TYPE_uper.c b/asn.1/skeleton/OPEN_TYPE_uper.c new file mode 100644 index 00000000..7fe37833 --- /dev/null +++ b/asn.1/skeleton/OPEN_TYPE_uper.c @@ -0,0 +1,122 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include +#include + +asn_dec_rval_t +OPEN_TYPE_uper_get(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void *sptr, + const asn_TYPE_member_t *elm, asn_per_data_t *pd) { + asn_type_selector_result_t selected; + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + void *inner_value; + asn_dec_rval_t rv; + + if(!(elm->flags & ATF_OPEN_TYPE)) { + ASN__DECODE_FAILED; + } + + if(!elm->type_selector) { + ASN_DEBUG("Type selector is not defined for Open Type %s->%s->%s", + td->name, elm->name, elm->type->name); + ASN__DECODE_FAILED; + } + + selected = elm->type_selector(td, sptr); + if(!selected.presence_index) { + ASN__DECODE_FAILED; + } + + /* Fetch the pointer to this member */ + assert(elm->flags == ATF_OPEN_TYPE); + if(elm->flags & ATF_POINTER) { + memb_ptr2 = (void **)((char *)sptr + elm->memb_offset); + } else { + memb_ptr = (char *)sptr + elm->memb_offset; + memb_ptr2 = &memb_ptr; + } + if(*memb_ptr2 != NULL) { + /* Make sure we reset the structure first before encoding */ + if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, 0) + != 0) { + ASN__DECODE_FAILED; + } + } + + inner_value = + (char *)*memb_ptr2 + + elm->type->elements[selected.presence_index - 1].memb_offset; + + rv = uper_open_type_get(opt_codec_ctx, selected.type_descriptor, + elm->type->elements[selected.presence_index - 1].encoding_constraints.per_constraints, + &inner_value, pd); + switch(rv.code) { + case RC_OK: + if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, + selected.presence_index) + == 0) { + break; + } else { + rv.code = RC_FAIL; + } + /* Fall through */ + case RC_WMORE: + case RC_FAIL: + if(*memb_ptr2) { + if(elm->flags & ATF_POINTER) { + ASN_STRUCT_FREE(*selected.type_descriptor, inner_value); + *memb_ptr2 = NULL; + } else { + ASN_STRUCT_RESET(*selected.type_descriptor, + inner_value); + } + } + } + return rv; +} + +asn_enc_rval_t +OPEN_TYPE_encode_uper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + const void *memb_ptr; /* Pointer to the member */ + asn_TYPE_member_t *elm; /* CHOICE's element */ + asn_enc_rval_t er = {0,0,0}; + unsigned present; + + (void)constraints; + + present = CHOICE_variant_get_presence(td, sptr); + if(present == 0 || present > td->elements_count) { + ASN__ENCODE_FAILED; + } else { + present--; + } + + ASN_DEBUG("Encoding %s OPEN TYPE element %d", td->name, present); + + elm = &td->elements[present]; + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr = + *(const void *const *)((const char *)sptr + elm->memb_offset); + if(!memb_ptr) ASN__ENCODE_FAILED; + } else { + memb_ptr = (const char *)sptr + elm->memb_offset; + } + + if(uper_open_type_put(elm->type, + elm->encoding_constraints.per_constraints, + memb_ptr, po) < 0) { + ASN__ENCODE_FAILED; + } + + er.encoded = 0; + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/OPEN_TYPE_xer.c b/asn.1/skeleton/OPEN_TYPE_xer.c new file mode 100644 index 00000000..fc38562e --- /dev/null +++ b/asn.1/skeleton/OPEN_TYPE_xer.c @@ -0,0 +1,166 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_dec_rval_t +OPEN_TYPE_xer_get(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void *sptr, + const asn_TYPE_member_t *elm, const void *ptr, size_t size) { + size_t consumed_myself = 0; + asn_type_selector_result_t selected; + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + void *inner_value; + asn_dec_rval_t rv; + + int xer_context = 0; + ssize_t ch_size; + pxer_chunk_type_e ch_type; + + if(!(elm->flags & ATF_OPEN_TYPE)) { + ASN__DECODE_FAILED; + } + + if(!elm->type_selector) { + ASN_DEBUG("Type selector is not defined for Open Type %s->%s->%s", + td->name, elm->name, elm->type->name); + ASN__DECODE_FAILED; + } + + selected = elm->type_selector(td, sptr); + if(!selected.presence_index) { + ASN__DECODE_FAILED; + } + + /* Fetch the pointer to this member */ + assert(elm->flags == ATF_OPEN_TYPE); + if(elm->flags & ATF_POINTER) { + memb_ptr2 = (void **)((char *)sptr + elm->memb_offset); + } else { + memb_ptr = (char *)sptr + elm->memb_offset; + memb_ptr2 = &memb_ptr; + } + if(*memb_ptr2 != NULL) { + /* Make sure we reset the structure first before encoding */ + if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, 0) + != 0) { + ASN__DECODE_FAILED; + } + } + + /* + * Confirm wrapper. + */ + for(;;) { + ch_size = xer_next_token(&xer_context, ptr, size, &ch_type); + if(ch_size < 0) { + ASN__DECODE_FAILED; + } else { + switch(ch_type) { + case PXER_WMORE: + ASN__DECODE_STARVED; + case PXER_COMMENT: + case PXER_TEXT: + ADVANCE(ch_size); + continue; + case PXER_TAG: + break; + } + break; + } + } + + /* + * Wrapper value confirmed. + */ + switch(xer_check_tag(ptr, ch_size, elm->name)) { + case XCT_OPENING: + ADVANCE(ch_size); + break; + case XCT_BROKEN: + default: + ASN__DECODE_FAILED; + } + + inner_value = + (char *)*memb_ptr2 + + elm->type->elements[selected.presence_index - 1].memb_offset; + + rv = selected.type_descriptor->op->xer_decoder( + opt_codec_ctx, selected.type_descriptor, &inner_value, NULL, ptr, size); + ADVANCE(rv.consumed); + rv.consumed = 0; + switch(rv.code) { + case RC_OK: + if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, + selected.presence_index) + == 0) { + break; + } else { + rv.code = RC_FAIL; + } + /* Fall through */ + case RC_FAIL: + /* Point to a best position where failure occurred */ + rv.consumed = consumed_myself; + /* Fall through */ + case RC_WMORE: + /* Wrt. rv.consumed==0: + * In case a genuine RC_WMORE, the whole Open Type decoding + * will have to be restarted. + */ + if(*memb_ptr2) { + if(elm->flags & ATF_POINTER) { + ASN_STRUCT_FREE(*selected.type_descriptor, inner_value); + *memb_ptr2 = NULL; + } else { + ASN_STRUCT_RESET(*selected.type_descriptor, + inner_value); + } + } + return rv; + } + + /* + * Finalize wrapper. + */ + for(;;) { + ch_size = xer_next_token(&xer_context, ptr, size, &ch_type); + if(ch_size < 0) { + ASN__DECODE_FAILED; + } else { + switch(ch_type) { + case PXER_WMORE: + ASN__DECODE_STARVED; + case PXER_COMMENT: + case PXER_TEXT: + ADVANCE(ch_size); + continue; + case PXER_TAG: + break; + } + break; + } + } + + /* + * Wrapper value confirmed. + */ + switch(xer_check_tag(ptr, ch_size, elm->name)) { + case XCT_CLOSING: + ADVANCE(ch_size); + break; + case XCT_BROKEN: + default: + ASN__DECODE_FAILED; + } + + rv.consumed += consumed_myself; + + return rv; +} diff --git a/asn.1/skeleton/ObjectDescriptor.c b/asn.1/skeleton/ObjectDescriptor.c new file mode 100644 index 00000000..4b3560af --- /dev/null +++ b/asn.1/skeleton/ObjectDescriptor.c @@ -0,0 +1,94 @@ +/*- + * Copyright (c) 2003, 2004 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * ObjectDescriptor basic type description. + */ +static const ber_tlv_tag_t asn_DEF_ObjectDescriptor_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (7 << 2)), /* [UNIVERSAL 7] IMPLICIT ... */ + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ +}; +asn_TYPE_operation_t asn_OP_ObjectDescriptor = { + OCTET_STRING_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + OCTET_STRING_print_utf8, /* Treat as ASCII subset (it's not) */ +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + OCTET_STRING_compare, + OCTET_STRING_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + OCTET_STRING_decode_xer_utf8, + OCTET_STRING_encode_xer_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + OCTET_STRING_decode_jer_utf8, + OCTET_STRING_encode_jer_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, + 0, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OCTET_STRING_decode_uper, + OCTET_STRING_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, + OCTET_STRING_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + 0, /* Not supported for ObjectDescriptor */ +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_ObjectDescriptor = { + "ObjectDescriptor", + "ObjectDescriptor", + &asn_OP_ObjectDescriptor, + asn_DEF_ObjectDescriptor_tags, + sizeof(asn_DEF_ObjectDescriptor_tags) + / sizeof(asn_DEF_ObjectDescriptor_tags[0]) - 1, + asn_DEF_ObjectDescriptor_tags, + sizeof(asn_DEF_ObjectDescriptor_tags) + / sizeof(asn_DEF_ObjectDescriptor_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + asn_generic_unknown_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; diff --git a/asn.1/skeleton/ObjectDescriptor.h b/asn.1/skeleton/ObjectDescriptor.h new file mode 100644 index 00000000..b70c0cba --- /dev/null +++ b/asn.1/skeleton/ObjectDescriptor.h @@ -0,0 +1,55 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _ObjectDescriptor_H_ +#define _ObjectDescriptor_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef GraphicString_t ObjectDescriptor_t; /* Implemented via GraphicString */ + +extern asn_TYPE_descriptor_t asn_DEF_ObjectDescriptor; +extern asn_TYPE_operation_t asn_OP_ObjectDescriptor; + +#define ObjectDescriptor_free OCTET_STRING_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +#define ObjectDescriptor_print OCTET_STRING_print_utf8 +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define ObjectDescriptor_constraint asn_generic_unknown_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define ObjectDescriptor_decode_ber OCTET_STRING_decode_ber +#define ObjectDescriptor_encode_der OCTET_STRING_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#define ObjectDescriptor_decode_xer OCTET_STRING_decode_xer_utf8 +#define ObjectDescriptor_encode_xer OCTET_STRING_encode_xer_utf8 +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +#define ObjectDescriptor_decode_jer OCTET_STRING_decode_jer_utf8 +#define ObjectDescriptor_encode_jer OCTET_STRING_encode_jer_utf8 +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#define ObjectDescriptor_decode_uper OCTET_STRING_decode_uper +#define ObjectDescriptor_encode_uper OCTET_STRING_encode_uper +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define ObjectDescriptor_decode_aper OCTET_STRING_decode_aper +#define ObjectDescriptor_encode_aper OCTET_STRING_encode_aper +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* _ObjectDescriptor_H_ */ diff --git a/asn.1/skeleton/PrintableString.c b/asn.1/skeleton/PrintableString.c new file mode 100644 index 00000000..da4dabc7 --- /dev/null +++ b/asn.1/skeleton/PrintableString.c @@ -0,0 +1,168 @@ +/*- + * Copyright (c) 2003, 2004, 2006 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * ASN.1:1984 (X.409) + */ +static const int _PrintableString_alphabet[256] = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */ + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */ + 1, 0, 0, 0, 0, 0, 0, 2, 3, 4, 0, 5, 6, 7, 8, 9, /* . '() +,-./ */ +10,11,12,13,14,15,16,17,18,19,20, 0, 0,21, 0,22, /* 0123456789: = ? */ + 0,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37, /* ABCDEFGHIJKLMNO */ +38,39,40,41,42,43,44,45,46,47,48, 0, 0, 0, 0, 0, /* PQRSTUVWXYZ */ + 0,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63, /* abcdefghijklmno */ +64,65,66,67,68,69,70,71,72,73,74, 0, 0, 0, 0, 0, /* pqrstuvwxyz */ +}; +static const int _PrintableString_code2value[74] = { +32,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54, +55,56,57,58,61,63,65,66,67,68,69,70,71,72,73,74, +75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90, +97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112, +113,114,115,116,117,118,119,120,121,122}; + +/* + * PrintableString basic type description. + */ +static const ber_tlv_tag_t asn_DEF_PrintableString_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (19 << 2)), /* [UNIVERSAL 19] IMPLICIT ...*/ + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ +}; +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static int asn_DEF_PrintableString_v2c(unsigned int value) { + return _PrintableString_alphabet[value > 255 ? 0 : value] - 1; +} +static int asn_DEF_PrintableString_c2v(unsigned int code) { + if(code < 74) + return _PrintableString_code2value[code]; + return -1; +} +static asn_per_constraints_t asn_DEF_PrintableString_per_constraints = { + { APC_CONSTRAINED, 4, 4, 0x20, 0x39 }, /* Value */ + { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 }, /* Size */ + asn_DEF_PrintableString_v2c, + asn_DEF_PrintableString_c2v +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_operation_t asn_OP_PrintableString = { + OCTET_STRING_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + OCTET_STRING_print_utf8, /* ASCII subset */ +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + OCTET_STRING_compare, + OCTET_STRING_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + OCTET_STRING_decode_xer_utf8, + OCTET_STRING_encode_xer_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + OCTET_STRING_decode_jer_utf8, + OCTET_STRING_encode_jer_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + OCTET_STRING_decode_oer, + OCTET_STRING_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OCTET_STRING_decode_uper, + OCTET_STRING_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, + OCTET_STRING_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + OCTET_STRING_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_PrintableString = { + "PrintableString", + "PrintableString", + &asn_OP_PrintableString, + asn_DEF_PrintableString_tags, + sizeof(asn_DEF_PrintableString_tags) + / sizeof(asn_DEF_PrintableString_tags[0]) - 1, + asn_DEF_PrintableString_tags, + sizeof(asn_DEF_PrintableString_tags) + / sizeof(asn_DEF_PrintableString_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_DEF_PrintableString_per_constraints, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + PrintableString_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + +int +PrintableString_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, + void *app_key) { + const PrintableString_t *st = (const PrintableString_t *)sptr; + + if(st && st->buf) { + uint8_t *buf = st->buf; + uint8_t *end = buf + st->size; + + /* + * Check the alphabet of the PrintableString. + * ASN.1:1984 (X.409) + */ + for(; buf < end; buf++) { + if(!_PrintableString_alphabet[*buf]) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value byte %ld (%d) " + "not in PrintableString alphabet " + "(%s:%d)", + td->name, + (long)((buf - st->buf) + 1), + *buf, + __FILE__, __LINE__); + return -1; + } + } + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + return 0; +} diff --git a/asn.1/skeleton/PrintableString.h b/asn.1/skeleton/PrintableString.h new file mode 100644 index 00000000..aa37f39a --- /dev/null +++ b/asn.1/skeleton/PrintableString.h @@ -0,0 +1,58 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _PrintableString_H_ +#define _PrintableString_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef OCTET_STRING_t PrintableString_t; /* Implemented via OCTET STRING */ + +extern asn_TYPE_descriptor_t asn_DEF_PrintableString; +extern asn_TYPE_operation_t asn_OP_PrintableString; + +#define PrintableString_free OCTET_STRING_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +#define PrintableString_print OCTET_STRING_print_utf8 +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define PrintableString_compare OCTET_STRING_compare +#define PrintableString_copy OCTET_STRING_copy + +asn_constr_check_f PrintableString_constraint; + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define PrintableString_decode_ber OCTET_STRING_decode_ber +#define PrintableString_encode_der OCTET_STRING_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#define PrintableString_decode_xer OCTET_STRING_decode_xer_utf8 +#define PrintableString_encode_xer OCTET_STRING_encode_xer_utf8 +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +#define PrintableString_decode_jer OCTET_STRING_decode_jer_utf8 +#define PrintableString_encode_jer OCTET_STRING_encode_jer_utf8 +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#define PrintableString_decode_uper OCTET_STRING_decode_uper +#define PrintableString_encode_uper OCTET_STRING_encode_uper +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define PrintableString_decode_aper OCTET_STRING_decode_aper +#define PrintableString_encode_aper OCTET_STRING_encode_aper +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* _PrintableString_H_ */ diff --git a/asn.1/skeleton/REAL.c b/asn.1/skeleton/REAL.c new file mode 100644 index 00000000..5ff83e44 --- /dev/null +++ b/asn.1/skeleton/REAL.c @@ -0,0 +1,772 @@ +/*- + * Copyright (c) 2004-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include /* for strtod(3) */ +#include +#include + +#undef INT_MAX +#define INT_MAX ((int)(((unsigned int)-1) >> 1)) + +struct specialRealValue_s specialRealValue[] = { +#define SRV_SET(foo, val) { (char *)foo, sizeof(foo) - 1, val } + SRV_SET("", 0), + SRV_SET("", -1), + SRV_SET("", 1), +#undef SRV_SET +}; + +#if defined(__clang__) +/* + * isnan() is defined using generic selections and won't compile in + * strict C89 mode because of too fancy system's standard library. + * However, prior to C11 the math had a perfectly working isnan() + * in the math library. + * Disable generic selection warning so we can test C89 mode with newer libc. + */ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wc11-extensions" +static int asn_isnan(double d) { + return isnan(d); +} +static int asn_isfinite(double d) { +#ifdef isfinite + return isfinite(d); /* ISO C99 */ +#else + return finite(d); /* Deprecated on Mac OS X 10.9 */ +#endif +} +#pragma clang diagnostic pop +#else /* !clang */ +#define asn_isnan(v) isnan(v) +#ifdef isfinite +#define asn_isfinite(d) isfinite(d) /* ISO C99 */ +#else +#define asn_isfinite(d) finite(d) /* Deprecated on Mac OS X 10.9 */ +#endif +#endif /* clang */ + +/* + * REAL basic type description. + */ +static const ber_tlv_tag_t asn_DEF_REAL_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) +}; +asn_TYPE_operation_t asn_OP_REAL = { + ASN__PRIMITIVE_TYPE_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + REAL_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + REAL_compare, + REAL_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + ber_decode_primitive, + der_encode_primitive, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + REAL_decode_xer, + REAL_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + REAL_decode_jer, + REAL_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + REAL_decode_oer, + REAL_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + REAL_decode_uper, + REAL_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + REAL_decode_aper, + REAL_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + REAL_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_REAL = { + "REAL", + "REAL", + &asn_OP_REAL, + asn_DEF_REAL_tags, + sizeof(asn_DEF_REAL_tags) / sizeof(asn_DEF_REAL_tags[0]), + asn_DEF_REAL_tags, /* Same as above */ + sizeof(asn_DEF_REAL_tags) / sizeof(asn_DEF_REAL_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + asn_generic_no_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + +ssize_t +REAL__dump(double d, int canonical, asn_app_consume_bytes_f *cb, void *app_key) { + char local_buf[64]; + char *buf = local_buf; + ssize_t buflen = sizeof(local_buf); + ssize_t ret; + + /* + * Check whether it is a special value. + */ + /* fpclassify(3) is not portable yet */ + if(asn_isnan(d)) { + buf = specialRealValue[SRV__NOT_A_NUMBER].string; + buflen = specialRealValue[SRV__NOT_A_NUMBER].length; + return (cb(buf, buflen, app_key) < 0) ? -1 : buflen; + } else if(!asn_isfinite(d)) { + if(copysign(1.0, d) < 0.0) { + buf = specialRealValue[SRV__MINUS_INFINITY].string; + buflen = specialRealValue[SRV__MINUS_INFINITY].length; + } else { + buf = specialRealValue[SRV__PLUS_INFINITY].string; + buflen = specialRealValue[SRV__PLUS_INFINITY].length; + } + return (cb(buf, buflen, app_key) < 0) ? -1 : buflen; + } else if(ilogb(d) <= -INT_MAX) { + if(copysign(1.0, d) < 0.0) { + buf = "-0"; + buflen = 2; + } else { + buf = "0"; + buflen = 1; + } + return (cb(buf, buflen, app_key) < 0) ? -1 : buflen; + } + + /* + * Use the libc's double printing, hopefully they got it right. + */ + do { + ret = snprintf(buf, + buflen, + canonical ? "%.17E" /* Precise */ : "%.15f" /* Pleasant*/, + d); + if(ret < 0) { + /* There are some old broken APIs. */ + buflen <<= 1; + if(buflen > 4096) { + /* Should be plenty. */ + if(buf != local_buf) FREEMEM(buf); + return -1; + } + } else if(ret >= buflen) { + buflen = ret + 1; + } else { + buflen = ret; + break; + } + if(buf != local_buf) FREEMEM(buf); + buf = (char *)MALLOC(buflen); + if(!buf) return -1; + } while(1); + + if(canonical) { + /* + * Transform the "[-]d.dddE+-dd" output into "[-]d.dddE[-]d" + * Check that snprintf() constructed the output correctly. + */ + char *dot; + char *end = buf + buflen; + char *last_zero; + char *first_zero_in_run; + char *s; + + enum { + LZSTATE_NOTHING, + LZSTATE_ZEROES + } lz_state = LZSTATE_NOTHING; + + dot = (buf[0] == 0x2d /* '-' */) ? (buf + 2) : (buf + 1); + if(*dot >= 0x30) { + if(buf != local_buf) FREEMEM(buf); + errno = EINVAL; + return -1; /* Not a dot, really */ + } + *dot = 0x2e; /* Replace possible comma */ + + for(first_zero_in_run = last_zero = s = dot + 2; s < end; s++) { + switch(*s) { + case 0x45: /* 'E' */ + if(lz_state == LZSTATE_ZEROES) last_zero = first_zero_in_run; + break; + case 0x30: /* '0' */ + if(lz_state == LZSTATE_NOTHING) first_zero_in_run = s; + lz_state = LZSTATE_ZEROES; + continue; + default: + lz_state = LZSTATE_NOTHING; + continue; + } + break; + } + + if(s == end) { + if(buf != local_buf) FREEMEM(buf); + errno = EINVAL; + return -1; /* No promised E */ + } + + assert(*s == 0x45); + { + int sign; + char *E = s; + char *expptr = ++E; + + s = expptr; + + if(*expptr == 0x2b /* '+' */) { + /* Skip the "+" */ + buflen -= 1; + sign = 0; + } else { + sign = 1; + s++; + } + expptr++; + if(expptr > end) { + if(buf != local_buf) FREEMEM(buf); + errno = EINVAL; + return -1; + } + if(*expptr == 0x30) { + buflen--; + expptr++; + } + if(lz_state == LZSTATE_ZEROES) { + *last_zero = 0x45; /* E */ + buflen -= s - (last_zero + 1); + s = last_zero + 1; + if(sign) { + *s++ = 0x2d /* '-' */; + buflen++; + } + } + for(; expptr <= end; s++, expptr++) + *s = *expptr; + } + } else { + /* + * Remove trailing zeros. + */ + char *end = buf + buflen; + char *last_zero = end; + int stoplooking = 0; + char *z; + for(z = end - 1; z > buf; z--) { + switch(*z) { + case 0x30: + if(!stoplooking) + last_zero = z; + continue; + case 0x31: case 0x32: case 0x33: case 0x34: + case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: + stoplooking = 1; + continue; + default: /* Catch dot and other separators */ + /* + * Replace possible comma (which may even + * be not a comma at all: locale-defined). + */ + *z = 0x2e; + if(last_zero == z + 1) { /* leave x.0 */ + last_zero++; + } + buflen = last_zero - buf; + *last_zero = '\0'; + break; + } + break; + } + } + + ret = cb(buf, buflen, app_key); + if(buf != local_buf) FREEMEM(buf); + return (ret < 0) ? -1 : buflen; +} + +int +REAL_compare(const asn_TYPE_descriptor_t *td, const void *aptr, + const void *bptr) { + const REAL_t *a = aptr; + const REAL_t *b = bptr; + + (void)td; + + if(a && b) { + double adbl, bdbl; + int ra, rb; + ra = asn_REAL2double(a, &adbl); + rb = asn_REAL2double(b, &bdbl); + if(ra == 0 && rb == 0) { + if(asn_isnan(adbl)) { + if(asn_isnan(bdbl)) { + return 0; + } else { + return -1; + } + } else if(asn_isnan(bdbl)) { + return 1; + } + /* Value comparison. */ + if(adbl < bdbl) { + return -1; + } else if(adbl > bdbl) { + return 1; + } else { + return 0; + } + } else if(ra) { + return -1; + } else { + return 1; + } + } else if(!a) { + return -1; + } else { + return 1; + } +} + +int +REAL_copy(const asn_TYPE_descriptor_t *td, void **aptr, + const void *bptr) { + REAL_t *a = *aptr; + const REAL_t *b = bptr; + + (void)td; + + if(!b) { + if(a) { + FREEMEM(a->buf); + FREEMEM(a); + *aptr = 0; + } + return 0; + } + + if(!a) { + a = *aptr = CALLOC(1, sizeof(*a)); + if(!a) return -1; + } + + if(b->size) { + uint8_t* buf = (uint8_t*)MALLOC(b->size); + if(!buf) return -1; + memcpy(buf, b->buf, b->size); + + FREEMEM(a->buf); + a->buf = buf; + a->size = b->size; + } + + return 0; +} + +int +asn_REAL2double(const REAL_t *st, double *dbl_value) { + unsigned int octv; + + if(!st || !st->buf) { + errno = EINVAL; + return -1; + } + + if(st->size == 0) { + *dbl_value = 0; + return 0; + } + + octv = st->buf[0]; /* unsigned byte */ + + switch(octv & 0xC0) { + case 0x40: /* X.690: 8.5.6 a) => 8.5.9 */ + /* "SpecialRealValue" */ + + /* Be liberal in what you accept... + * http://en.wikipedia.org/wiki/Robustness_principle + if(st->size != 1) ... + */ + + switch(st->buf[0]) { + case 0x40: /* 01000000: PLUS-INFINITY */ + *dbl_value = INFINITY; + return 0; + case 0x41: /* 01000001: MINUS-INFINITY */ + *dbl_value = - INFINITY; + return 0; + case 0x42: /* 01000010: NOT-A-NUMBER */ + *dbl_value = NAN; + return 0; + case 0x43: /* 01000011: minus zero */ + *dbl_value = -0.0; + return 0; + } + + errno = EINVAL; + return -1; + case 0x00: { /* X.690: 8.5.7 */ + /* + * Decimal. NR{1,2,3} format from ISO 6093. + * NR1: [ ]*[+-]?[0-9]+ + * NR2: [ ]*[+-]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+) + * NR3: [ ]*[+-]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)[Ee][+-]?[0-9]+ + */ + double d; + char *source = 0; + char *endptr; + int used_malloc = 0; + + if(octv == 0 || (octv & 0x3C)) { + /* Remaining values of bits 6 to 1 are Reserved. */ + errno = EINVAL; + return -1; + } + + /* 1. By contract, an input buffer should be '\0'-terminated. + * OCTET STRING decoder ensures that, as is asn_double2REAL(). + * 2. ISO 6093 specifies COMMA as a possible decimal separator. + * However, strtod() can't always deal with COMMA. + * So her we fix both by reallocating, copying and fixing. + */ + if(st->buf[st->size] != '\0' || memchr(st->buf, ',', st->size)) { + const uint8_t *p, *end; + char *b; + + b = source = (char *)MALLOC(st->size + 1); + if(!source) return -1; + used_malloc = 1; + + /* Copy without the first byte and with 0-termination */ + for(p = st->buf + 1, end = st->buf + st->size; + p < end; b++, p++) + *b = (*p == ',') ? '.' : *p; + *b = '\0'; + } else { + source = (char *)&st->buf[1]; + } + + endptr = source; + d = strtod(source, &endptr); + if(*endptr != '\0') { + /* Format is not consistent with ISO 6093 */ + if(used_malloc) FREEMEM(source); + errno = EINVAL; + return -1; + } + if(used_malloc) FREEMEM(source); + if(asn_isfinite(d)) { + *dbl_value = d; + return 0; + } else { + errno = ERANGE; + return -1; + } + } + } + + /* + * Binary representation. + */ + { + double m; + int32_t expval; /* exponent value */ + unsigned int elen; /* exponent value length, in octets */ + int scaleF; + int baseF; + uint8_t *ptr; + uint8_t *end; + int sign; + + switch((octv & 0x30) >> 4) { + case 0x00: baseF = 1; break; /* base 2 */ + case 0x01: baseF = 3; break; /* base 8 */ + case 0x02: baseF = 4; break; /* base 16 */ + default: + /* Reserved field, can't parse now. */ + errno = EINVAL; + return -1; + } + + sign = (octv & 0x40); /* bit 7 */ + scaleF = (octv & 0x0C) >> 2; /* bits 4 to 3 */ + + if(st->size <= 1 + (octv & 0x03)) { + errno = EINVAL; + return -1; + } + + elen = (octv & 0x03); /* bits 2 to 1; 8.5.6.4 */ + if(elen == 0x03) { /* bits 2 to 1 = 11; 8.5.6.4, case d) */ + elen = st->buf[1]; /* unsigned binary number */ + if(elen == 0 || st->size <= (2 + elen)) { + errno = EINVAL; + return -1; + } + /* FIXME: verify constraints of case d) */ + ptr = &st->buf[2]; + } else { + ptr = &st->buf[1]; + } + + /* Fetch the multibyte exponent */ + expval = (int)(*(int8_t *)ptr); + if(elen >= sizeof(expval)-1) { + errno = ERANGE; + return -1; + } + end = ptr + elen + 1; + for(ptr++; ptr < end; ptr++) + expval = (expval * 256) + *ptr; + + m = 0.0; /* Initial mantissa value */ + + /* Okay, the exponent is here. Now, what about mantissa? */ + end = st->buf + st->size; + for(; ptr < end; ptr++) + m = ldexp(m, 8) + *ptr; + + if(0) + ASN_DEBUG("m=%.10f, scF=%d, bF=%d, expval=%d, ldexp()=%f, ldexp()=%f\n", + m, scaleF, baseF, expval, + ldexp(m, expval * baseF + scaleF), + ldexp(m, scaleF) * pow(pow(2, baseF), expval) + ); + + /* + * (S * N * 2^F) * B^E + * Essentially: + m = ldexp(m, scaleF) * pow(pow(2, baseF), expval); + */ + m = ldexp(m, expval * baseF + scaleF); + if(asn_isfinite(m)) { + *dbl_value = sign ? -m : m; + } else { + errno = ERANGE; + return -1; + } + + } /* if(binary_format) */ + + return 0; +} + +/* + * Assume IEEE 754 floating point: standard 64 bit double. + * [1 bit sign] [11 bits exponent] [52 bits mantissa] + */ +int +asn_double2REAL(REAL_t *st, double dbl_value) { + double test = -0.0; + int float_big_endian = *(const char *)&test != 0; + uint8_t buf[16]; /* More than enough for 8-byte dbl_value */ + uint8_t dscr[sizeof(dbl_value)]; /* double value scratch pad */ + /* Assertion guards: won't even compile, if unexpected double size */ + char assertion_buffer1[9 - sizeof(dbl_value)] CC_NOTUSED; + char assertion_buffer2[sizeof(dbl_value) - 7] CC_NOTUSED; + uint8_t *ptr = buf; + uint8_t *mstop; /* Last byte of mantissa */ + unsigned int mval; /* Value of the last byte of mantissa */ + unsigned int bmsign; /* binary mask with sign */ + unsigned int buflen; + unsigned int accum; + int expval; + + if(!st) { + errno = EINVAL; + return -1; + } + + /* + * ilogb(+-0) returns -INT_MAX or INT_MIN (platform-dependent) + * ilogb(+-inf) returns INT_MAX, logb(+-inf) returns +inf + * ilogb(NaN) returns INT_MIN or INT_MAX (platform-dependent) + */ + expval = ilogb(dbl_value); + if(expval <= -INT_MAX /* Also catches +-0 and maybe isnan() */ + || expval == INT_MAX /* catches isfin() and maybe isnan() */ + ) { + if(!st->buf || st->size < 2) { + ptr = (uint8_t *)MALLOC(2); + if(!ptr) return -1; + if(st->buf) FREEMEM(st->buf); + st->buf = ptr; + } + /* fpclassify(3) is not portable yet */ + if(asn_isnan(dbl_value)) { + st->buf[0] = 0x42; /* NaN */ + st->buf[1] = 0; + st->size = 1; + } else if(!asn_isfinite(dbl_value)) { + if(copysign(1.0, dbl_value) < 0.0) { + st->buf[0] = 0x41; /* MINUS-INFINITY */ + } else { + st->buf[0] = 0x40; /* PLUS-INFINITY */ + } + st->buf[1] = 0; + st->size = 1; + } else { + if(copysign(1.0, dbl_value) >= 0.0) { + /* no content octets: positive zero */ + st->buf[0] = 0; /* JIC */ + st->size = 0; + } else { + /* Negative zero. #8.5.3, 8.5.9 */ + st->buf[0] = 0x43; + st->buf[1] = 0; + st->size = 1; + } + } + return 0; + } + + if(float_big_endian) { + uint8_t *s = ((uint8_t *)&dbl_value) + 1; + uint8_t *end = ((uint8_t *)&dbl_value) + sizeof(double); + uint8_t *d; + + bmsign = 0x80 | ((s[-1] >> 1) & 0x40); /* binary mask & - */ + for(mstop = d = dscr; s < end; d++, s++) { + *d = *s; + if(*d) mstop = d; + } + } else { + uint8_t *s = ((uint8_t *)&dbl_value) + sizeof(dbl_value) - 2; + uint8_t *start = ((uint8_t *)&dbl_value); + uint8_t *d; + + bmsign = 0x80 | ((s[1] >> 1) & 0x40); /* binary mask & - */ + for(mstop = d = dscr; s >= start; d++, s--) { + *d = *s; + if(*d) mstop = d; + } + } + + /* Remove parts of the exponent, leave mantissa and explicit 1. */ + dscr[0] = 0x10 | (dscr[0] & 0x0f); + + /* Adjust exponent in a very unobvious way */ + expval -= 8 * ((mstop - dscr) + 1) - 4; + + /* This loop ensures DER conformance by forcing mantissa odd: 11.3.1 */ + mval = *mstop; + if(mval && !(mval & 1)) { + int shift_count = 1; + int ishift; + uint8_t *mptr; + + /* + * Figure out what needs to be done to make mantissa odd. + */ + if(!(mval & 0x0f)) /* Speed-up a little */ + shift_count = 4; + while(((mval >> shift_count) & 1) == 0) + shift_count++; + + ishift = 8 - shift_count; + accum = 0; + + /* Go over the buffer, shifting it shift_count bits right. */ + for(mptr = dscr; mptr <= mstop; mptr++) { + mval = *mptr; + *mptr = accum | (mval >> shift_count); + accum = mval << ishift; + } + + /* Adjust exponent appropriately. */ + expval += shift_count; + } + + if(expval < 0) { + if((expval >> 7) == -1) { + *ptr++ = bmsign | 0x00; + *ptr++ = expval; + } else if((expval >> 15) == -1) { + *ptr++ = bmsign | 0x01; + *ptr++ = expval >> 8; + *ptr++ = expval; + } else { + *ptr++ = bmsign | 0x02; + *ptr++ = expval >> 16; + *ptr++ = expval >> 8; + *ptr++ = expval; + } + } else if(expval <= 0x7f) { + *ptr++ = bmsign | 0x00; + *ptr++ = expval; + } else if(expval <= 0x7fff) { + *ptr++ = bmsign | 0x01; + *ptr++ = expval >> 8; + *ptr++ = expval; + } else { + assert(expval <= 0x7fffff); + *ptr++ = bmsign | 0x02; + *ptr++ = expval >> 16; + *ptr++ = expval >> 8; + *ptr++ = expval; + } + + buflen = (mstop - dscr) + 1; + memcpy(ptr, dscr, buflen); + ptr += buflen; + buflen = ptr - buf; + + ptr = (uint8_t *)MALLOC(buflen + 1); + if(!ptr) return -1; + + memcpy(ptr, buf, buflen); + buf[buflen] = 0; /* JIC */ + + if(st->buf) FREEMEM(st->buf); + st->buf = ptr; + st->size = buflen; + + return 0; +} + +int CC_ATTR_NO_SANITIZE("float-cast-overflow") +asn_double2float(double d, float *outcome) { + float f = d; + + *outcome = f; + + if(asn_isfinite(d) == asn_isfinite(f)) { + return 0; + } else { + return -1; + } +} diff --git a/asn.1/skeleton/REAL.h b/asn.1/skeleton/REAL.h new file mode 100644 index 00000000..2aa470ed --- /dev/null +++ b/asn.1/skeleton/REAL.h @@ -0,0 +1,124 @@ +/*- + * Copyright (c) 2004-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef ASN_TYPE_REAL_H +#define ASN_TYPE_REAL_H + +#include +#include + +#define _ISOC99_SOURCE /* For ilogb() and quiet NAN */ +#ifndef _BSD_SOURCE +#define _BSD_SOURCE /* To reintroduce finite(3) */ +#endif +#if defined(__alpha) +#include /* For INFINITY */ +#endif +#include + +#if !(defined(NAN) || defined(INFINITY)) +static volatile double real_zero CC_NOTUSED = 0.0; +#endif +#ifndef NAN +#define NAN (0.0/0.0) +#endif +#ifndef INFINITY +#define INFINITY (1.0/0.0) +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum specialRealValue { + SRV__NOT_A_NUMBER, + SRV__MINUS_INFINITY, + SRV__PLUS_INFINITY +} specialRealValue_e; +extern struct specialRealValue_s { + char *string; + size_t length; + long dv; +} specialRealValue[3]; + +typedef ASN__PRIMITIVE_TYPE_t REAL_t; + +extern asn_TYPE_descriptor_t asn_DEF_REAL; +extern asn_TYPE_operation_t asn_OP_REAL; + +#define REAL_free ASN__PRIMITIVE_TYPE_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +asn_struct_print_f REAL_print; +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +asn_struct_compare_f REAL_compare; +asn_struct_copy_f REAL_copy; + +#define REAL_constraint asn_generic_no_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define REAL_decode_ber ber_decode_primitive +#define REAL_encode_der der_encode_primitive +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +xer_type_decoder_f REAL_decode_xer; +xer_type_encoder_f REAL_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +jer_type_decoder_f REAL_decode_jer; +jer_type_encoder_f REAL_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +oer_type_decoder_f REAL_decode_oer; +oer_type_encoder_f REAL_encode_oer; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +per_type_decoder_f REAL_decode_uper; +per_type_encoder_f REAL_encode_uper; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +per_type_decoder_f REAL_decode_aper; +per_type_encoder_f REAL_encode_aper; +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +asn_random_fill_f REAL_random_fill; +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +/*********************************** + * Some handy conversion routines. * + ***********************************/ + +ssize_t REAL__dump(double d, int canonical, asn_app_consume_bytes_f *cb, void *app_key); + +/* + * Convert between native double type and REAL representation (DER). + * RETURN VALUES: + * 0: Value converted successfully + * -1: An error occurred while converting the value: invalid format. + */ +int asn_REAL2double(const REAL_t *real_ptr, double *d); +int asn_double2REAL(REAL_t *real_ptr, double d); + +/* + * Downcast double to float while checking that no overflow occurs. + * This allows stricter control of the input data. + * RETURN VALUES: + * 0: The conversion was successful (perhaps with a loss of precision) + * -1: The conversion created overflow into infinities. + * The (outcome) is ALWAYS set to a value you'd expect from the + * standard silent float to double conversion behavior. + */ +int asn_double2float(double d, float *outcome); + +#ifdef __cplusplus +} +#endif + +#endif /* ASN_TYPE_REAL_H */ diff --git a/asn.1/skeleton/REAL_aper.c b/asn.1/skeleton/REAL_aper.c new file mode 100644 index 00000000..98812756 --- /dev/null +++ b/asn.1/skeleton/REAL_aper.c @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_dec_rval_t +REAL_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + void **sptr, asn_per_data_t *pd) { + (void)constraints; /* No PER visible constraints */ + return OCTET_STRING_decode_aper(opt_codec_ctx, td, 0, sptr, pd); +} + +asn_enc_rval_t +REAL_encode_aper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + (void)constraints; /* No PER visible constraints */ + return OCTET_STRING_encode_aper(td, 0, sptr, po); +} diff --git a/asn.1/skeleton/REAL_jer.c b/asn.1/skeleton/REAL_jer.c new file mode 100644 index 00000000..fbf4c29c --- /dev/null +++ b/asn.1/skeleton/REAL_jer.c @@ -0,0 +1,330 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +struct specialRealValue_s specialRealValue_jer[] = { +#define SRV_SET(foo, val) { (char *)foo, sizeof(foo) - 1, val } + SRV_SET("\"NaN\"", 0), + SRV_SET("\"-INF\"", -1), + SRV_SET("\"INF\"", 1), + SRV_SET("\"-0\"", 2), +#undef SRV_SET +}; + +#if defined(__clang__) +/* + * isnan() is defined using generic selections and won't compile in + * strict C89 mode because of too fancy system's standard library. + * However, prior to C11 the math had a perfectly working isnan() + * in the math library. + * Disable generic selection warning so we can test C89 mode with newer libc. + */ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wc11-extensions" +static int asn_isnan(double d) { + return isnan(d); +} +static int asn_isfinite(double d) { +#ifdef isfinite + return isfinite(d); /* ISO C99 */ +#else + return finite(d); /* Deprecated on Mac OS X 10.9 */ +#endif +} +#pragma clang diagnostic pop +#else /* !clang */ +#define asn_isnan(v) isnan(v) +#ifdef isfinite +#define asn_isfinite(d) isfinite(d) /* ISO C99 */ +#else +#define asn_isfinite(d) finite(d) /* Deprecated on Mac OS X 10.9 */ +#endif +#endif /* clang */ + +static ssize_t +REAL__jer_dump(double d, int canonical, asn_app_consume_bytes_f *cb, void *app_key) { + char local_buf[64]; + char *buf = local_buf; + ssize_t buflen = sizeof(local_buf); + ssize_t ret; + + /* + * Check whether it is a special value. + */ + /* fpclassify(3) is not portable yet */ + if(asn_isnan(d)) { + buf = specialRealValue_jer[SRV__NOT_A_NUMBER].string; + buflen = specialRealValue_jer[SRV__NOT_A_NUMBER].length; + return (cb(buf, buflen, app_key) < 0) ? -1 : buflen; + } else if(!asn_isfinite(d)) { + if(copysign(1.0, d) < 0.0) { + buf = specialRealValue_jer[SRV__MINUS_INFINITY].string; + buflen = specialRealValue_jer[SRV__MINUS_INFINITY].length; + } else { + buf = specialRealValue_jer[SRV__PLUS_INFINITY].string; + buflen = specialRealValue_jer[SRV__PLUS_INFINITY].length; + } + return (cb(buf, buflen, app_key) < 0) ? -1 : buflen; + } else if(ilogb(d) <= -INT_MAX) { + if(copysign(1.0, d) < 0.0) { + buf = "\"-0\""; + buflen = 4; + } else { + buf = "0"; + buflen = 1; + } + return (cb(buf, buflen, app_key) < 0) ? -1 : buflen; + } + + /* + * Use the libc's double printing, hopefully they got it right. + */ + do { + ret = snprintf(buf, + buflen, + canonical ? "%.17E" /* Precise */ : "%.15f" /* Pleasant*/, + d); + if(ret < 0) { + /* There are some old broken APIs. */ + buflen <<= 1; + if(buflen > 4096) { + /* Should be plenty. */ + if(buf != local_buf) FREEMEM(buf); + return -1; + } + } else if(ret >= buflen) { + buflen = ret + 1; + } else { + buflen = ret; + break; + } + if(buf != local_buf) FREEMEM(buf); + buf = (char *)MALLOC(buflen); + if(!buf) return -1; + } while(1); + + if(canonical) { + /* + * Transform the "[-]d.dddE+-dd" output into "[-]d.dddE[-]d" + * Check that snprintf() constructed the output correctly. + */ + char *dot; + char *end = buf + buflen; + char *last_zero; + char *first_zero_in_run; + char *s; + + enum { + LZSTATE_NOTHING, + LZSTATE_ZEROES + } lz_state = LZSTATE_NOTHING; + + dot = (buf[0] == 0x2d /* '-' */) ? (buf + 2) : (buf + 1); + if(*dot >= 0x30) { + if(buf != local_buf) FREEMEM(buf); + errno = EINVAL; + return -1; /* Not a dot, really */ + } + *dot = 0x2e; /* Replace possible comma */ + + for(first_zero_in_run = last_zero = s = dot + 2; s < end; s++) { + switch(*s) { + case 0x45: /* 'E' */ + if(lz_state == LZSTATE_ZEROES) last_zero = first_zero_in_run; + break; + case 0x30: /* '0' */ + if(lz_state == LZSTATE_NOTHING) first_zero_in_run = s; + lz_state = LZSTATE_ZEROES; + continue; + default: + lz_state = LZSTATE_NOTHING; + continue; + } + break; + } + + if(s == end) { + if(buf != local_buf) FREEMEM(buf); + errno = EINVAL; + return -1; /* No promised E */ + } + + assert(*s == 0x45); + { + int sign; + char *E = s; + char *expptr = ++E; + + s = expptr; + + if(*expptr == 0x2b /* '+' */) { + /* Skip the "+" */ + buflen -= 1; + sign = 0; + } else { + sign = 1; + s++; + } + expptr++; + if(expptr > end) { + if(buf != local_buf) FREEMEM(buf); + errno = EINVAL; + return -1; + } + if(*expptr == 0x30) { + buflen--; + expptr++; + } + if(lz_state == LZSTATE_ZEROES) { + *last_zero = 0x45; /* E */ + buflen -= s - (last_zero + 1); + s = last_zero + 1; + if(sign) { + *s++ = 0x2d /* '-' */; + buflen++; + } + } + for(; expptr <= end; s++, expptr++) + *s = *expptr; + } + } else { + /* + * Remove trailing zeros. + */ + char *end = buf + buflen; + char *last_zero = end; + int stoplooking = 0; + char *z; + for(z = end - 1; z > buf; z--) { + switch(*z) { + case 0x30: + if(!stoplooking) + last_zero = z; + continue; + case 0x31: case 0x32: case 0x33: case 0x34: + case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: + stoplooking = 1; + continue; + default: /* Catch dot and other separators */ + /* + * Replace possible comma (which may even + * be not a comma at all: locale-defined). + */ + *z = 0x2e; + if(last_zero == z + 1) { /* leave x.0 */ + last_zero++; + } + buflen = last_zero - buf; + *last_zero = '\0'; + break; + } + break; + } + } + + ret = cb(buf, buflen, app_key); + if(buf != local_buf) FREEMEM(buf); + return (ret < 0) ? -1 : buflen; +} + +asn_enc_rval_t +REAL_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + enum jer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, + void *app_key) { + const REAL_t *st = (const REAL_t *)sptr; + asn_enc_rval_t er = {0,0,0}; + double d; + + (void)ilevel; + + if(!st || !st->buf || asn_REAL2double(st, &d)) + ASN__ENCODE_FAILED; + + er.encoded = REAL__jer_dump(d, flags, cb, app_key); + if(er.encoded < 0) ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(er); +} + +/* + * Decode the chunk of JSON text encoding REAL. + */ +static enum jer_pbd_rval +REAL__jer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, + const void *chunk_buf, size_t chunk_size) { + REAL_t *st = (REAL_t *)sptr; + double value; + const char *jerdata = (const char *)chunk_buf; + char *endptr = 0; + char *b; + + (void)td; + + if(!chunk_size) return JPBD_BROKEN_ENCODING; + + /* + * Decode an JSONSpecialRealValue: "-INF", etc. + */ + if(jerdata[0] == 0x22 /* '"' */) { + size_t i; + for(i = 0; i < sizeof(specialRealValue_jer) / sizeof(specialRealValue_jer[0]); i++) { + struct specialRealValue_s *srv = &specialRealValue_jer[i]; + double dv; + + if(srv->length != chunk_size + || memcmp(srv->string, chunk_buf, chunk_size)) + continue; + + /* + * It could've been done using + * (double)srv->dv / real_zero, + * but it summons fp exception on some platforms. + */ + switch(srv->dv) { + case -1: dv = - INFINITY; break; + case 0: dv = NAN; break; + case 1: dv = INFINITY; break; + case 2: dv = -0.0; break; + default: return JPBD_SYSTEM_FAILURE; + } + + if(asn_double2REAL(st, dv)) + return JPBD_SYSTEM_FAILURE; + + return JPBD_BODY_CONSUMED; + } + ASN_DEBUG("Unknown JSONSpecialRealValue"); + return JPBD_BROKEN_ENCODING; + } + + /* + * Copy chunk into the nul-terminated string, and run strtod. + */ + b = (char *)MALLOC(chunk_size + 1); + if(!b) return JPBD_SYSTEM_FAILURE; + memcpy(b, chunk_buf, chunk_size); + b[chunk_size] = 0; /* nul-terminate */ + + value = strtod(b, &endptr); + FREEMEM(b); + if(endptr == b) return JPBD_BROKEN_ENCODING; + + if(asn_double2REAL(st, value)) + return JPBD_SYSTEM_FAILURE; + + return JPBD_BODY_CONSUMED; +} + +asn_dec_rval_t +REAL_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const void *buf_ptr, size_t size) { + return jer_decode_primitive(opt_codec_ctx, td, sptr, sizeof(REAL_t), + buf_ptr, size, REAL__jer_body_decode); +} + diff --git a/asn.1/skeleton/REAL_oer.c b/asn.1/skeleton/REAL_oer.c new file mode 100644 index 00000000..679abd90 --- /dev/null +++ b/asn.1/skeleton/REAL_oer.c @@ -0,0 +1,89 @@ +/* + * Copyright (c) 2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Encode as Canonical OER + */ +asn_enc_rval_t +REAL_encode_oer(const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, const void *sptr, + asn_app_consume_bytes_f *cb, void *app_key) { + const REAL_t *st = sptr; + asn_enc_rval_t er = {0,0,0}; + ssize_t len_len; + + if(!st || !st->buf || !td) + ASN__ENCODE_FAILED; + + if(!constraints) constraints = td->encoding_constraints.oer_constraints; + if(constraints && constraints->value.width != 0) { + /* If we're constrained to a narrow float/double representation, we + * shouldn't have ended up using REAL. Expecting NativeReal. */ + ASN__ENCODE_FAILED; + } + + /* Encode a fake REAL */ + len_len = oer_serialize_length(st->size, cb, app_key); + if(len_len < 0 || cb(st->buf, st->size, app_key) < 0) { + ASN__ENCODE_FAILED; + } else { + er.encoded = len_len + st->size; + ASN__ENCODED_OK(er); + } +} + +asn_dec_rval_t +REAL_decode_oer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, void **sptr, + const void *ptr, size_t size) { + asn_dec_rval_t ok = {RC_OK, 0}; + REAL_t *st; + uint8_t *buf; + ssize_t len_len; + size_t real_body_len; + + (void)opt_codec_ctx; + + if(!constraints) constraints = td->encoding_constraints.oer_constraints; + if(constraints && constraints->value.width != 0) { + /* If we're constrained to a narrow float/double representation, we + * shouldn't have ended up using REAL. Expecting NativeReal. */ + ASN__DECODE_FAILED; + } + + len_len = oer_fetch_length(ptr, size, &real_body_len); + if(len_len < 0) ASN__DECODE_FAILED; + if(len_len == 0) ASN__DECODE_STARVED; + + ptr = (const char *)ptr + len_len; + size -= len_len; + + if(real_body_len > size) ASN__DECODE_STARVED; + + buf = CALLOC(1, real_body_len + 1); + if(!buf) ASN__DECODE_FAILED; + + if(!(st = *sptr)) { + st = (*sptr = CALLOC(1, sizeof(REAL_t))); + if(!st) { + FREEMEM(buf); + ASN__DECODE_FAILED; + } + } else { + FREEMEM(st->buf); + } + + memcpy(buf, ptr, real_body_len); + buf[real_body_len] = '\0'; + + st->buf = buf; + st->size = real_body_len; + + ok.consumed = len_len + real_body_len; + return ok; +} diff --git a/asn.1/skeleton/REAL_print.c b/asn.1/skeleton/REAL_print.c new file mode 100644 index 00000000..01daa971 --- /dev/null +++ b/asn.1/skeleton/REAL_print.c @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +int +REAL_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + asn_app_consume_bytes_f *cb, void *app_key) { + const REAL_t *st = (const REAL_t *)sptr; + ssize_t ret; + double d; + + (void)td; /* Unused argument */ + (void)ilevel; /* Unused argument */ + + if(!st || !st->buf) + ret = cb("", 8, app_key); + else if(asn_REAL2double(st, &d)) + ret = cb("", 7, app_key); + else + ret = REAL__dump(d, 0, cb, app_key); + + return (ret < 0) ? -1 : 0; +} diff --git a/asn.1/skeleton/REAL_rfill.c b/asn.1/skeleton/REAL_rfill.c new file mode 100644 index 00000000..733aafd4 --- /dev/null +++ b/asn.1/skeleton/REAL_rfill.c @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include +#include + +asn_random_fill_result_t +REAL_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, + const asn_encoding_constraints_t *constraints, + size_t max_length) { + asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; + asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; + asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; + static const double values[] = { + 0, -0.0, -1, 1, -M_E, M_E, -3.14, 3.14, -M_PI, M_PI, -255, 255, + /* 2^51 */ + -2251799813685248.0, 2251799813685248.0, + /* 2^52 */ + -4503599627370496.0, 4503599627370496.0, + /* 2^100 */ + -1267650600228229401496703205376.0, 1267650600228229401496703205376.0, + -FLT_MIN, FLT_MIN, + -FLT_MAX, FLT_MAX, + -DBL_MIN, DBL_MIN, + -DBL_MAX, DBL_MAX, +#ifdef FLT_TRUE_MIN + -FLT_TRUE_MIN, FLT_TRUE_MIN, +#endif +#ifdef DBL_TRUE_MIN + -DBL_TRUE_MIN, DBL_TRUE_MIN, +#endif + INFINITY, -INFINITY, NAN}; + REAL_t *st; + double d; + + (void)constraints; + + if(max_length == 0) return result_skipped; + + d = values[asn_random_between(0, sizeof(values) / sizeof(values[0]) - 1)]; + + if(*sptr) { + st = *sptr; + } else { + st = (REAL_t*)(*sptr = CALLOC(1, sizeof(REAL_t))); + if(!st) { + return result_failed; + } + } + + if(asn_double2REAL(st, d)) { + if(st == *sptr) { + ASN_STRUCT_RESET(*td, st); + } else { + ASN_STRUCT_FREE(*td, st); + } + return result_failed; + } + + result_ok.length = st->size; + return result_ok; +} diff --git a/asn.1/skeleton/REAL_uper.c b/asn.1/skeleton/REAL_uper.c new file mode 100644 index 00000000..d55da9fb --- /dev/null +++ b/asn.1/skeleton/REAL_uper.c @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_dec_rval_t +REAL_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, + asn_per_data_t *pd) { + (void)constraints; /* No PER visible constraints */ + return OCTET_STRING_decode_uper(opt_codec_ctx, td, 0, sptr, pd); +} + +asn_enc_rval_t +REAL_encode_uper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, const void *sptr, + asn_per_outp_t *po) { + (void)constraints; /* No PER visible constraints */ + return OCTET_STRING_encode_uper(td, 0, sptr, po); +} diff --git a/asn.1/skeleton/REAL_xer.c b/asn.1/skeleton/REAL_xer.c new file mode 100644 index 00000000..8342ec26 --- /dev/null +++ b/asn.1/skeleton/REAL_xer.c @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_enc_rval_t +REAL_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, + void *app_key) { + const REAL_t *st = (const REAL_t *)sptr; + asn_enc_rval_t er = {0,0,0}; + double d; + + (void)ilevel; + + if(!st || !st->buf || asn_REAL2double(st, &d)) + ASN__ENCODE_FAILED; + + er.encoded = REAL__dump(d, flags & XER_F_CANONICAL, cb, app_key); + if(er.encoded < 0) ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(er); +} + +/* + * Decode the chunk of XML text encoding REAL. + */ +static enum xer_pbd_rval +REAL__xer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, + const void *chunk_buf, size_t chunk_size) { + REAL_t *st = (REAL_t *)sptr; + double value; + const char *xerdata = (const char *)chunk_buf; + char *endptr = 0; + char *b; + + (void)td; + + if(!chunk_size) return XPBD_BROKEN_ENCODING; + + /* + * Decode an XMLSpecialRealValue: , etc. + */ + if(xerdata[0] == 0x3c /* '<' */) { + size_t i; + for(i = 0; i < sizeof(specialRealValue) / sizeof(specialRealValue[0]); i++) { + struct specialRealValue_s *srv = &specialRealValue[i]; + double dv; + + if(srv->length != chunk_size + || memcmp(srv->string, chunk_buf, chunk_size)) + continue; + + /* + * It could've been done using + * (double)srv->dv / real_zero, + * but it summons fp exception on some platforms. + */ + switch(srv->dv) { + case -1: dv = - INFINITY; break; + case 0: dv = NAN; break; + case 1: dv = INFINITY; break; + default: return XPBD_SYSTEM_FAILURE; + } + + if(asn_double2REAL(st, dv)) + return XPBD_SYSTEM_FAILURE; + + return XPBD_BODY_CONSUMED; + } + ASN_DEBUG("Unknown XMLSpecialRealValue"); + return XPBD_BROKEN_ENCODING; + } + + /* + * Copy chunk into the nul-terminated string, and run strtod. + */ + b = (char *)MALLOC(chunk_size + 1); + if(!b) return XPBD_SYSTEM_FAILURE; + memcpy(b, chunk_buf, chunk_size); + b[chunk_size] = 0; /* nul-terminate */ + + value = strtod(b, &endptr); + FREEMEM(b); + if(endptr == b) return XPBD_BROKEN_ENCODING; + + if(asn_double2REAL(st, value)) + return XPBD_SYSTEM_FAILURE; + + return XPBD_BODY_CONSUMED; +} + +asn_dec_rval_t +REAL_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, size_t size) { + return xer_decode_primitive(opt_codec_ctx, td, + sptr, sizeof(REAL_t), opt_mname, + buf_ptr, size, REAL__xer_body_decode); +} diff --git a/asn.1/skeleton/RELATIVE-OID.c b/asn.1/skeleton/RELATIVE-OID.c new file mode 100644 index 00000000..d9bcbac6 --- /dev/null +++ b/asn.1/skeleton/RELATIVE-OID.c @@ -0,0 +1,217 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include /* for CHAR_BIT */ +#include + +/* + * RELATIVE-OID basic type description. + */ +static const ber_tlv_tag_t asn_DEF_RELATIVE_OID_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (13 << 2)) +}; +asn_TYPE_operation_t asn_OP_RELATIVE_OID = { + ASN__PRIMITIVE_TYPE_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + RELATIVE_OID_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + OCTET_STRING_compare, /* Implemented in terms of opaque comparison */ + OCTET_STRING_copy, /* Implemented in terms of opaque copy */ +#if !defined(ASN_DISABLE_BER_SUPPORT) + ber_decode_primitive, + der_encode_primitive, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + RELATIVE_OID_decode_xer, + RELATIVE_OID_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + RELATIVE_OID_decode_jer, + RELATIVE_OID_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + RELATIVE_OID_decode_oer, + RELATIVE_OID_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OCTET_STRING_decode_uper, + OCTET_STRING_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, + OCTET_STRING_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + RELATIVE_OID_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_RELATIVE_OID = { + "RELATIVE-OID", + "RELATIVE_OID", + &asn_OP_RELATIVE_OID, + asn_DEF_RELATIVE_OID_tags, + sizeof(asn_DEF_RELATIVE_OID_tags) + / sizeof(asn_DEF_RELATIVE_OID_tags[0]), + asn_DEF_RELATIVE_OID_tags, /* Same as above */ + sizeof(asn_DEF_RELATIVE_OID_tags) + / sizeof(asn_DEF_RELATIVE_OID_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + asn_generic_no_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + +ssize_t +RELATIVE_OID__dump_body(const RELATIVE_OID_t *st, asn_app_consume_bytes_f *cb, void *app_key) { + char scratch[32]; + size_t produced = 0; + size_t off = 0; + + for(;;) { + asn_oid_arc_t arc; + ssize_t rd = OBJECT_IDENTIFIER_get_single_arc(st->buf + off, + st->size - off, &arc); + if(rd < 0) { + return -1; + } else if(rd == 0) { + /* No more arcs. */ + break; + } else { + int ret = snprintf(scratch, sizeof(scratch), "%s%" PRIu32, + off ? "." : "", arc); + if(ret >= (ssize_t)sizeof(scratch)) { + return -1; + } + produced += ret; + off += rd; + assert(off <= st->size); + if(cb(scratch, ret, app_key) < 0) return -1; + } + } + + if(off != st->size) { + ASN_DEBUG("Could not scan to the end of Object Identifier"); + return -1; + } + + return produced; +} + +ssize_t +RELATIVE_OID_get_arcs(const RELATIVE_OID_t *st, asn_oid_arc_t *arcs, + size_t arcs_count) { + size_t num_arcs = 0; + size_t off; + + if(!st || !st->buf) { + errno = EINVAL; + return -1; + } + + for(off = 0;;) { + asn_oid_arc_t arc; + ssize_t rd = OBJECT_IDENTIFIER_get_single_arc(st->buf + off, + st->size - off, &arc); + if(rd < 0) { + return -1; + } else if(rd == 0) { + /* No more arcs. */ + break; + } else { + off += rd; + if(num_arcs < arcs_count) { + arcs[num_arcs] = arc; + } + num_arcs++; + } + } + + if(off != st->size) { + return -1; + } + + return num_arcs; +} + +int +RELATIVE_OID_set_arcs(RELATIVE_OID_t *st, const asn_oid_arc_t *arcs, + size_t arcs_count) { + uint8_t *buf; + uint8_t *bp; + size_t size; + size_t i; + + if(!st || !arcs) { + errno = EINVAL; + return -1; + } + + /* + * Roughly estimate the maximum size necessary to encode these arcs. + */ + size = ((sizeof(asn_oid_arc_t) * CHAR_BIT + 6) / 7) * arcs_count; + bp = buf = (uint8_t *)MALLOC(size + 1); + if(!buf) { + /* ENOMEM */ + return -1; + } + + /* + * Encode the arcs. + */ + for(i = 0; i < arcs_count; i++) { + ssize_t wrote = OBJECT_IDENTIFIER_set_single_arc(bp, size, arcs[i]); + if(wrote <= 0) { + FREEMEM(buf); + return -1; + } + assert((size_t)wrote <= size); + bp += wrote; + size -= wrote; + } + + /* + * Replace buffer. + */ + st->size = bp - buf; + bp = st->buf; + st->buf = buf; + st->buf[st->size] = '\0'; + if(bp) FREEMEM(bp); + + return 0; +} diff --git a/asn.1/skeleton/RELATIVE-OID.h b/asn.1/skeleton/RELATIVE-OID.h new file mode 100644 index 00000000..4246feae --- /dev/null +++ b/asn.1/skeleton/RELATIVE-OID.h @@ -0,0 +1,87 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _RELATIVE_OID_H_ +#define _RELATIVE_OID_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Implemented via OBJECT IDENTIFIER */ +typedef OBJECT_IDENTIFIER_t RELATIVE_OID_t; + +extern asn_TYPE_descriptor_t asn_DEF_RELATIVE_OID; +extern asn_TYPE_operation_t asn_OP_RELATIVE_OID; + +ssize_t RELATIVE_OID__dump_body(const RELATIVE_OID_t *st, + asn_app_consume_bytes_f *cb, + void *app_key); + +#define RELATIVE_OID_free ASN__PRIMITIVE_TYPE_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +asn_struct_print_f RELATIVE_OID_print; +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define RELATIVE_OID_compare OCTET_STRING_compare +#define RELATIVE_OID_copy OCTET_STRING_copy + +#define RELATIVE_OID_constraint asn_generic_no_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define RELATIVE_OID_decode_ber ber_decode_primitive +#define RELATIVE_OID_encode_der der_encode_primitive +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +xer_type_decoder_f RELATIVE_OID_decode_xer; +xer_type_encoder_f RELATIVE_OID_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +jer_type_decoder_f RELATIVE_OID_decode_jer; +jer_type_encoder_f RELATIVE_OID_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +#define RELATIVE_OID_decode_oer oer_decode_primitive +#define RELATIVE_OID_encode_oer oer_encode_primitive +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#define RELATIVE_OID_decode_uper OCTET_STRING_decode_uper +#define RELATIVE_OID_encode_uper OCTET_STRING_encode_uper +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define RELATIVE_OID_decode_aper OCTET_STRING_decode_aper +#define RELATIVE_OID_encode_aper OCTET_STRING_encode_aper +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +asn_random_fill_result_t +RELATIVE_OID_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, + const asn_encoding_constraints_t *constraints, + size_t max_length); +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +/********************************** + * Some handy conversion routines * + **********************************/ + +/* See OBJECT_IDENTIFIER_get_arcs() function in OBJECT_IDENTIFIER.h */ +ssize_t RELATIVE_OID_get_arcs(const RELATIVE_OID_t *, asn_oid_arc_t *arcs, + size_t arcs_count); + +/* See OBJECT_IDENTIFIER_set_arcs() function in OBJECT_IDENTIFIER.h */ +int RELATIVE_OID_set_arcs(RELATIVE_OID_t *, const asn_oid_arc_t *arcs, + size_t arcs_count); + +#ifdef __cplusplus +} +#endif + +#endif /* _RELATIVE_OID_H_ */ diff --git a/asn.1/skeleton/RELATIVE-OID_jer.c b/asn.1/skeleton/RELATIVE-OID_jer.c new file mode 100644 index 00000000..8abafeb8 --- /dev/null +++ b/asn.1/skeleton/RELATIVE-OID_jer.c @@ -0,0 +1,105 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +#define CQUOTE 0x22 + +static enum jer_pbd_rval +RELATIVE_OID__jer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, + const void *chunk_buf, size_t chunk_size) { + RELATIVE_OID_t *st = (RELATIVE_OID_t *)sptr; + const char *chunk_end = (const char *)chunk_buf + chunk_size; + const char* p = (const char*)chunk_buf; + const char *endptr; + asn_oid_arc_t s_arcs[6]; + asn_oid_arc_t *arcs = s_arcs; + ssize_t num_arcs; + int ret; + + (void)td; + + /* Strip quotes */ + for (; p < chunk_end; ++p) { + if (*p == CQUOTE) { + ++p; + break; + } + } + --chunk_end; + for (; chunk_end >= p; --chunk_end) { + if (*chunk_end == CQUOTE) + break; + } + if (chunk_end - p < 0) + return JPBD_BROKEN_ENCODING; + chunk_size = chunk_end - p; + chunk_buf = p; + + num_arcs = OBJECT_IDENTIFIER_parse_arcs( + (const char *)chunk_buf, chunk_size, arcs, + sizeof(s_arcs) / sizeof(s_arcs[0]), &endptr); + if(num_arcs < 0) { + /* Expecting at least one arc arcs */ + return JPBD_BROKEN_ENCODING; + } else if(num_arcs == 0) { + return JPBD_NOT_BODY_IGNORE; + } + assert(endptr == chunk_end); + + if((size_t)num_arcs > sizeof(s_arcs) / sizeof(s_arcs[0])) { + arcs = (asn_oid_arc_t *)MALLOC(num_arcs * sizeof(arcs[0])); + if(!arcs) return JPBD_SYSTEM_FAILURE; + ret = OBJECT_IDENTIFIER_parse_arcs((const char *)chunk_buf, chunk_size, + arcs, num_arcs, &endptr); + if(ret != num_arcs) { + return JPBD_SYSTEM_FAILURE; /* assert?.. */ + } + } + + /* + * Convert arcs into BER representation. + */ + ret = RELATIVE_OID_set_arcs(st, arcs, num_arcs); + if(arcs != s_arcs) FREEMEM(arcs); + + return ret ? JPBD_SYSTEM_FAILURE : JPBD_BODY_CONSUMED; +} + +asn_dec_rval_t +RELATIVE_OID_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const void *buf_ptr, size_t size) { + return jer_decode_primitive(opt_codec_ctx, td, + sptr, sizeof(RELATIVE_OID_t), + buf_ptr, size, RELATIVE_OID__jer_body_decode); +} + +asn_enc_rval_t +RELATIVE_OID_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const RELATIVE_OID_t *st = (const RELATIVE_OID_t *)sptr; + asn_enc_rval_t er = {0,0,0}; + ssize_t ro_encoded = 0; + + (void)ilevel; /* Unused argument */ + (void)flags; /* Unused argument */ + + if(!st || !st->buf) + ASN__ENCODE_FAILED; + + ASN__CALLBACK("\"", 1); + ro_encoded = RELATIVE_OID__dump_body(st, cb, app_key); + if(ro_encoded < 0) goto cb_failed; + er.encoded += ro_encoded; + ASN__CALLBACK("\"", 1); + + ASN__ENCODED_OK(er); + +cb_failed: + ASN__ENCODE_FAILED; +} diff --git a/asn.1/skeleton/RELATIVE-OID_print.c b/asn.1/skeleton/RELATIVE-OID_print.c new file mode 100644 index 00000000..b570d695 --- /dev/null +++ b/asn.1/skeleton/RELATIVE-OID_print.c @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +int +RELATIVE_OID_print(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { + const RELATIVE_OID_t *st = (const RELATIVE_OID_t *)sptr; + + (void)td; /* Unused argument */ + (void)ilevel; /* Unused argument */ + + if(!st || !st->buf) + return (cb("", 8, app_key) < 0) ? -1 : 0; + + /* Dump preamble */ + if(cb("{ ", 2, app_key) < 0) + return -1; + + if(RELATIVE_OID__dump_body(st, cb, app_key) < 0) + return -1; + + return (cb(" }", 2, app_key) < 0) ? -1 : 0; +} diff --git a/asn.1/skeleton/RELATIVE-OID_rfill.c b/asn.1/skeleton/RELATIVE-OID_rfill.c new file mode 100644 index 00000000..dde30b6d --- /dev/null +++ b/asn.1/skeleton/RELATIVE-OID_rfill.c @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Generate values from the list of interesting values, or just a random value. + */ +static asn_oid_arc_t +RELATIVE_OID__biased_random_arc(void) { + static const uint16_t values[] = {0, 1, 127, 128, 129, 254, 255, 256}; + + switch(asn_random_between(0, 2)) { + case 0: + return values[asn_random_between( + 0, sizeof(values) / sizeof(values[0]) - 1)]; + case 1: + return asn_random_between(0, UINT_MAX); + case 2: + default: + return UINT_MAX; + } +} + +asn_random_fill_result_t +RELATIVE_OID_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, + const asn_encoding_constraints_t *constraints, + size_t max_length) { + asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; + asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; + asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; + RELATIVE_OID_t *st; + const int min_arcs = 1; /* A minimum of 1 arc is required */ + asn_oid_arc_t arcs[3]; + size_t arcs_len = + asn_random_between(min_arcs, sizeof(arcs) / sizeof(arcs[0])); + size_t i; + + (void)constraints; + + if(max_length < arcs_len) return result_skipped; + + if(*sptr) { + st = *sptr; + } else { + st = CALLOC(1, sizeof(*st)); + } + + for(i = 0; i < arcs_len; i++) { + arcs[i] = RELATIVE_OID__biased_random_arc(); + } + + if(RELATIVE_OID_set_arcs(st, arcs, arcs_len)) { + if(st != *sptr) { + ASN_STRUCT_FREE(*td, st); + } + return result_failed; + } + + *sptr = st; + + result_ok.length = st->size; + return result_ok; +} diff --git a/asn.1/skeleton/RELATIVE-OID_xer.c b/asn.1/skeleton/RELATIVE-OID_xer.c new file mode 100644 index 00000000..de9fcac9 --- /dev/null +++ b/asn.1/skeleton/RELATIVE-OID_xer.c @@ -0,0 +1,79 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +static enum xer_pbd_rval +RELATIVE_OID__xer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, + const void *chunk_buf, size_t chunk_size) { + RELATIVE_OID_t *st = (RELATIVE_OID_t *)sptr; + const char *chunk_end __attribute__((unused)) = (const char *)chunk_buf + chunk_size; + const char *endptr; + asn_oid_arc_t s_arcs[6]; + asn_oid_arc_t *arcs = s_arcs; + ssize_t num_arcs; + int ret; + + (void)td; + + num_arcs = OBJECT_IDENTIFIER_parse_arcs( + (const char *)chunk_buf, chunk_size, arcs, + sizeof(s_arcs) / sizeof(s_arcs[0]), &endptr); + if(num_arcs < 0) { + /* Expecting at least one arc arcs */ + return XPBD_BROKEN_ENCODING; + } else if(num_arcs == 0) { + return XPBD_NOT_BODY_IGNORE; + } + assert(endptr == chunk_end); + + if((size_t)num_arcs > sizeof(s_arcs) / sizeof(s_arcs[0])) { + arcs = (asn_oid_arc_t *)MALLOC(num_arcs * sizeof(arcs[0])); + if(!arcs) return XPBD_SYSTEM_FAILURE; + ret = OBJECT_IDENTIFIER_parse_arcs((const char *)chunk_buf, chunk_size, + arcs, num_arcs, &endptr); + if(ret != num_arcs) { + return XPBD_SYSTEM_FAILURE; /* assert?.. */ + } + } + + /* + * Convert arcs into BER representation. + */ + ret = RELATIVE_OID_set_arcs(st, arcs, num_arcs); + if(arcs != s_arcs) FREEMEM(arcs); + + return ret ? XPBD_SYSTEM_FAILURE : XPBD_BODY_CONSUMED; +} + +asn_dec_rval_t +RELATIVE_OID_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, + size_t size) { + return xer_decode_primitive(opt_codec_ctx, td, + sptr, sizeof(RELATIVE_OID_t), opt_mname, + buf_ptr, size, RELATIVE_OID__xer_body_decode); +} + +asn_enc_rval_t +RELATIVE_OID_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const RELATIVE_OID_t *st = (const RELATIVE_OID_t *)sptr; + asn_enc_rval_t er = {0,0,0}; + + (void)ilevel; /* Unused argument */ + (void)flags; /* Unused argument */ + + if(!st || !st->buf) + ASN__ENCODE_FAILED; + + er.encoded = RELATIVE_OID__dump_body(st, cb, app_key); + if(er.encoded < 0) ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/T61String.c b/asn.1/skeleton/T61String.c new file mode 100644 index 00000000..a29f0cba --- /dev/null +++ b/asn.1/skeleton/T61String.c @@ -0,0 +1,95 @@ +/*- + * Copyright (c) 2003 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * T61String basic type description. + */ +static const ber_tlv_tag_t asn_DEF_T61String_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (20 << 2)), /* [UNIVERSAL 20] IMPLICIT ...*/ + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ +}; +asn_TYPE_operation_t asn_OP_T61String = { + OCTET_STRING_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + OCTET_STRING_print, /* non-ascii string */ +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + OCTET_STRING_compare, + OCTET_STRING_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + OCTET_STRING_decode_xer_hex, + OCTET_STRING_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + OCTET_STRING_decode_jer_hex, + OCTET_STRING_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + OCTET_STRING_decode_oer, + OCTET_STRING_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OCTET_STRING_decode_uper, + OCTET_STRING_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, + OCTET_STRING_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + OCTET_STRING_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_T61String = { + "T61String", + "T61String", + &asn_OP_T61String, + asn_DEF_T61String_tags, + sizeof(asn_DEF_T61String_tags) + / sizeof(asn_DEF_T61String_tags[0]) - 1, + asn_DEF_T61String_tags, + sizeof(asn_DEF_T61String_tags) + / sizeof(asn_DEF_T61String_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + asn_generic_unknown_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/skeleton/T61String.h b/asn.1/skeleton/T61String.h new file mode 100644 index 00000000..640b1f55 --- /dev/null +++ b/asn.1/skeleton/T61String.h @@ -0,0 +1,58 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _T61String_H_ +#define _T61String_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef OCTET_STRING_t T61String_t; /* Implemented via OCTET STRING */ + +extern asn_TYPE_descriptor_t asn_DEF_T61String; +extern asn_TYPE_operation_t asn_OP_T61String; + +#define T61String_free OCTET_STRING_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +#define T61String_print OCTET_STRING_print +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define T61String_compare OCTET_STRING_compare +#define T61String_copy OCTET_STRING_copy + +#define T61String_constraint asn_generic_unknown_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define T61String_decode_ber OCTET_STRING_decode_ber +#define T61String_encode_der OCTET_STRING_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#define T61String_decode_xer OCTET_STRING_decode_xer_hex +#define T61String_encode_xer OCTET_STRING_encode_xer +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +#define T61String_decode_jer OCTET_STRING_decode_jer_hex +#define T61String_encode_jer OCTET_STRING_encode_jer +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#define T61String_decode_uper OCTET_STRING_decode_uper +#define T61String_encode_uper OCTET_STRING_encode_uper +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define T61String_decode_aper OCTET_STRING_decode_aper +#define T61String_encode_aper OCTET_STRING_encode_aper +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* _T61String_H_ */ diff --git a/asn.1/skeleton/TeletexString.c b/asn.1/skeleton/TeletexString.c new file mode 100644 index 00000000..25fa6967 --- /dev/null +++ b/asn.1/skeleton/TeletexString.c @@ -0,0 +1,231 @@ +/*- + * Copyright (c) 2003, 2006 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * TeletexString basic type description. + */ +static const ber_tlv_tag_t asn_DEF_TeletexString_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (20 << 2)), /* [UNIVERSAL 20] IMPLICIT ...*/ + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), /* ... OCTET STRING */ +}; +asn_TYPE_operation_t asn_OP_TeletexString = { + OCTET_STRING_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + OCTET_STRING_print, /* non-ascii string */ +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + OCTET_STRING_compare, + OCTET_STRING_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + OCTET_STRING_decode_xer_hex, + OCTET_STRING_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + OCTET_STRING_decode_jer_hex, + OCTET_STRING_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + OCTET_STRING_decode_oer, + OCTET_STRING_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OCTET_STRING_decode_uper, + OCTET_STRING_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, + OCTET_STRING_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + OCTET_STRING_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_TeletexString = { + "TeletexString", + "TeletexString", + &asn_OP_TeletexString, + asn_DEF_TeletexString_tags, + sizeof(asn_DEF_TeletexString_tags) + / sizeof(asn_DEF_TeletexString_tags[0]) - 1, + asn_DEF_TeletexString_tags, + sizeof(asn_DEF_TeletexString_tags) + / sizeof(asn_DEF_TeletexString_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + asn_generic_unknown_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + +/* + * Here is a formal attempt at creating a mapping from TeletexString + * (T61String) of the latest ASN.1 standard (X.680:2002) into the Unicode + * character set. -- Lev Walkin + * + * The first thing to keep in mind is that TeletexString (T61String) + * is defined in ASN.1, and is not really a T.61 string. + * The T.61 standard is withdrawn by ITU-T and is no longer an authoritative + * reference. See http://www.itu.int/rec/T-REC-T.61 + * + * The X.680 specifies TeletexString (T61String) as a combination of the + * character sets specified by the registration numbers listed in + * ISO International Register of Coded Character Sets to be used with + * Escape Sequences (ISO-2375): + * 6, 87, 102, 103, 106, 107, 126, 144, 150, 153, 156, 164, 165, 168, + * plus SPACE and DELETE characters. + * In addition to that, the X.680 Table 6 NOTE 2 allows using register entries + * 6 and 156 instead of 102 and 103. + * + * The ISO Register itself is available at http://www.itscj.ipsj.or.jp/ISO-IR/ + * + * #6 is ASCII. http://www.itscj.ipsj.or.jp/ISO-IR/006.pdf + * Escapes into: + * G0: ESC 2/8 4/2 ("(B") + * G1: ESC 2/9 4/2 (")B") + * The range is [0x21 .. 0x7e]. Conversion into Unicode + * is simple, because it has one-to-one correspondence. + * #87 is a "Japanese Graphic Character Set for Information Interchange". + * Is a multiple-byte set of 6877 characters. + * The character set is JIS X 0208-1983 (originally JIS C 6226-1983). + * Escapes into: + * G0: ESC 2/4 4/2 ("$B") + * G1: ESC 2/4 2/9 4/2 ("$)B") + * G2: ESC 2/4 2/10 4/2 ("$*B") + * G3: ESC 2/4 2/11 4/2 ("$+B") + * #102 is "Teletex Primary Set of Graphic Characters" and is almost ASCII. + * Escapes into: + * G0: ESC 2/8 7/5 ("(u") + * G1: ESC 2/9 7/5 (")u") + * G2: ESC 2/10 7/5 ("*u") + * G3: ESC 2/11 7/5 ("+u") + * It is almost identical to ASCII, except for ASCII position for '$' + * (DOLLAR SIGN) is filled with '¤' (CURRENCY SIGN), which is U+00A4. + * Also, ASCII positions for '`', '\', '^', '{', '}', '~' are marked + * as "should not be used". + * #103 is a supplementary set of characters used in combination with #102. + * Escapes into: + * G0: ESC 2/8 7/6 ("(v") + * G1: ESC 2/9 7/6 (")v") + * G2: ESC 2/10 7/6 ("*v") + * G3: ESC 2/11 7/6 ("+v") + * Some characters in that character set are combining characters, + * which can only be restrictively used with certain basic Latin letters. + * It can be thought of as a subset of #156 with the exception of 4/12 + * which is UNDERLINE in #103 and absent in #156. + * #106 is a primary set of control functions, used in combination with #107. + * Escapes into: + * C0: ESC 2/1 4/5 ("!E") + * This set is so short I can list it here: + * 0x08 BS BACKSPACE -- same as Unicode + * 0x0a LF LINE FEED -- same as Unicode + * 0x0c FF FORM FEED -- same as Unicode + * 0x0d CR CARRIAGE RETURN -- same as Unicode + * 0x0e LS1 LOCKING SHIFT ONE + * 0x0f LS0 LOCKING SHIFT ZERO + * 0x19 SS2 SINGLE SHIFT TWO + * 0x1a SUB SUBSTITUTE CHARACTER + * 0x1b ESC ESCAPE -- same as Unicode + * 0x1d SS3 SINGLE SHIFT THREE + * The LS1 and LS0 are two magical functions which, respectively, invoke + * the currently designated G1 or G0 set into positions 2/1 to 7/14 + * The SS2 and SS3, respectively, invoke one character of the + * currently designated set G2 and G3. + * The SUB is wholly equivalent to U+001a (SUBSTITUTE) + * #107 is a supplementary set of control functions, used with #106. + * Escapes into: + * C1: ESC 2/2 4/8 ('"H') + * This set contains three special control codes: + * 0x8b PLD PARTIAL LINE DOWN -- similar to + * 0x8c PLU PARTIAL LINE UP -- sumilar to + * 0x9b CSI CONTROL SEQUENCE INTRODUCER + * This set is so out of world we can probably safely ignore it. + * #126 is a "Right-hand Part of the Latin/Greek Alphabet". + * Comprises of 90 characters, including accented letters. + * Escapes into: + * G1: ESC 2/13 4/6 ("-F") + * G2: ESC 2/14 4/6 (".F") + * G3: ESC 2/15 4/6 ("/F") + * Note: This Registration is a subset of ISO-IR 227. + * #144 is a "Cyrillic part of the Latin/Cyrillic Alphabet". + * Comprises of 95 characters. + * Escapes into: + * G1: ESC 2/13 4/12 ("-L") + * G2: ESC 2/14 4/12 (".L") + * G3: ESC 2/15 4/12 ("/L") + * #150 is a "Greek Primary Set of Graphic Characters". + * Comprises of 94 characters. + * Escapes into: + * G0: ESC 2/8 2/1 4/0 ("(!@") + * G1: ESC 2/9 2/1 4/0 (")!@") + * G2: ESC 2/10 2/1 4/0 ("*!@") + * G3: ESC 2/11 2/1 4/0 ("+!@") + * #153 is a "Basic Cyrillic Character Set for 8-bit codes". + * Comprises of 68 characters. + * Escapes into: + * G1: ESC 2/13 4/15 ("-O") + * G2: ESC 2/14 4/15 (".O") + * G3: ESC 2/15 4/15 ("/O") + * #156 is a "Supplementary Set of ISO/IEC 6937:1992" for use with #6 + * Comprises of 87 characters. + * Escapes into: + * G1: ESC 2/13 5/2 ("-R") + * G2: ESC 2/14 5/2 (".R") + * G3: ESC 2/15 5/2 ("/R") + * #164 is a "Hebrew Supplementary Set of Graphic Characters" + * Comprises of 27 characters. + * Escapes into: + * G1: ESC 2/13 5/3 ("-S") + * G2: ESC 2/14 5/3 (".S") + * G3: ESC 2/15 5/3 ("/S") + * #165 is a set of "Codes of the Chinese graphic character set" + * Is a multiple-byte set of 8446 characters. + * Escapes into: + * G0: ESC 2/4 2/8 4/5 ("$(E") + * G1: ESC 2/4 2/9 4/5 ("$)E") + * G2: ESC 2/4 2/10 4/5 ("$*E") + * G3: ESC 2/4 2/11 4/5 ("$+E") + * #168 is a "Japanese Graphic Character Set for Information Interchange" + * A multiple-byte set of 6879 characters updated from #87. + * Escapes into: + * G0: ESC 2/6 4/0 ESC 2/4 4/2 ("&@" "$B") + * G1: ESC 2/6 4/0 ESC 2/4 2/9 4/2 ("&@" "$)B") + * G2: ESC 2/6 4/0 ESC 2/4 2/10 4/2 ("&@" "$*B") + * G3: ESC 2/6 4/0 ESC 2/4 2/11 4/2 ("&@" "$+B") + */ + diff --git a/asn.1/skeleton/TeletexString.h b/asn.1/skeleton/TeletexString.h new file mode 100644 index 00000000..e8ec0313 --- /dev/null +++ b/asn.1/skeleton/TeletexString.h @@ -0,0 +1,58 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _TeletexString_H_ +#define _TeletexString_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef OCTET_STRING_t TeletexString_t; /* Implemented via OCTET STRING */ + +extern asn_TYPE_descriptor_t asn_DEF_TeletexString; +extern asn_TYPE_operation_t asn_OP_TeletexString; + +#define TeletexString_free OCTET_STRING_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +#define TeletexString_print OCTET_STRING_print +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define TeletexString_compare OCTET_STRING_compare +#define TeletexString_copy OCTET_STRING_copy + +#define TeletexString_constraint asn_generic_unknown_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define TeletexString_decode_ber OCTET_STRING_decode_ber +#define TeletexString_encode_der OCTET_STRING_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#define TeletexString_decode_xer OCTET_STRING_decode_xer_hex +#define TeletexString_encode_xer OCTET_STRING_encode_xer +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +#define TeletexString_decode_jer OCTET_STRING_decode_jer_hex +#define TeletexString_encode_jer OCTET_STRING_encode_jer +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#define TeletexString_decode_uper OCTET_STRING_decode_uper +#define TeletexString_encode_uper OCTET_STRING_encode_uper +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define TeletexString_decode_aper OCTET_STRING_decode_aper +#define TeletexString_encode_aper OCTET_STRING_encode_aper +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* _TeletexString_H_ */ diff --git a/asn.1/skeleton/UTCTime.c b/asn.1/skeleton/UTCTime.c new file mode 100644 index 00000000..0ab547da --- /dev/null +++ b/asn.1/skeleton/UTCTime.c @@ -0,0 +1,223 @@ +/*- + * Copyright (c) 2003, 2004 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include +#include + +#ifdef __CYGWIN__ +#include "/usr/include/time.h" +#else +#include +#endif /* __CYGWIN__ */ + +#ifndef ASN___INTERNAL_TEST_MODE + +/* + * UTCTime basic type description. + */ +static const ber_tlv_tag_t asn_DEF_UTCTime_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (23 << 2)), /* [UNIVERSAL 23] IMPLICIT ...*/ + (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), /* [UNIVERSAL 26] IMPLICIT ...*/ + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ +}; +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_DEF_UTCTime_constraints = { + { APC_CONSTRAINED, 7, 7, 0x20, 0x7e }, /* Value */ + { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 }, /* Size */ + 0, 0 +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_operation_t asn_OP_UTCTime = { + OCTET_STRING_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + UTCTime_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + UTCTime_compare, + UTCTime_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_der, /* Implemented in terms of OCTET STRING */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + OCTET_STRING_decode_xer_utf8, + UTCTime_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + OCTET_STRING_decode_jer_utf8, + UTCTime_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + OCTET_STRING_decode_oer, + OCTET_STRING_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OCTET_STRING_decode_uper, + OCTET_STRING_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, + OCTET_STRING_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + UTCTime_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_UTCTime = { + "UTCTime", + "UTCTime", + &asn_OP_UTCTime, + asn_DEF_UTCTime_tags, + sizeof(asn_DEF_UTCTime_tags) + / sizeof(asn_DEF_UTCTime_tags[0]) - 2, + asn_DEF_UTCTime_tags, + sizeof(asn_DEF_UTCTime_tags) + / sizeof(asn_DEF_UTCTime_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_DEF_UTCTime_constraints, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + UTCTime_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + +#endif /* ASN___INTERNAL_TEST_MODE */ + +/* + * Check that the time looks like the time. + */ +int +UTCTime_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const UTCTime_t *st = (const UTCTime_t *)sptr; + time_t tloc; + + errno = EPERM; /* Just an unlikely error code */ + tloc = asn_UT2time(st, 0, 0); + if(tloc == -1 && errno != EPERM) { + ASN__CTFAIL(app_key, td, sptr, "%s: Invalid time format: %s (%s:%d)", + td->name, strerror(errno), __FILE__, __LINE__); + return -1; + } + + return 0; +} + +time_t +asn_UT2time(const UTCTime_t *st, struct tm *_tm, int as_gmt) { + char buf[24]; /* "AAMMJJhhmmss+hhmm" + cushion */ + GeneralizedTime_t gt; + + if(!st || !st->buf + || st->size < 11 || st->size >= ((int)sizeof(buf) - 2)) { + errno = EINVAL; + return -1; + } + + gt.buf = (unsigned char *)buf; + gt.size = st->size + 2; + memcpy(gt.buf + 2, st->buf, st->size); + if(st->buf[0] > 0x35) { + /* 19xx */ + gt.buf[0] = 0x31; + gt.buf[1] = 0x39; + } else { + /* 20xx */ + gt.buf[0] = 0x32; + gt.buf[1] = 0x30; + } + + return asn_GT2time(>, _tm, as_gmt); +} + +UTCTime_t * +asn_time2UT(UTCTime_t *opt_ut, const struct tm *tm, int force_gmt) { + GeneralizedTime_t *gt = (GeneralizedTime_t *)opt_ut; + + gt = asn_time2GT(gt, tm, force_gmt); + if(gt == 0) return 0; + + assert(gt->size >= 2); + gt->size -= 2; + memmove(gt->buf, gt->buf + 2, gt->size + 1); + + return (UTCTime_t *)gt; +} + +int +UTCTime_compare(const asn_TYPE_descriptor_t *td, const void *aptr, + const void *bptr) { + const GeneralizedTime_t *a = aptr; + const GeneralizedTime_t *b = bptr; + + (void)td; + + if(a && b) { + time_t at, bt; + int aerr, berr; + + errno = EPERM; + at = asn_UT2time(a, 0, 0); + aerr = errno; + errno = EPERM; + bt = asn_UT2time(b, 0, 0); + berr = errno; + + if(at == -1 && aerr != EPERM) { + if(bt == -1 && berr != EPERM) { + return OCTET_STRING_compare(td, aptr, bptr); + } else { + return -1; + } + } else if(bt == -1 && berr != EPERM) { + return 1; + } else { + /* Both values are valid. */ + } + + if(at < bt) { + return -1; + } else if(at > bt) { + return 1; + } else { + return 0; + } + } else if(!a && !b) { + return 0; + } else if(!a) { + return -1; + } else { + return 1; + } +} + diff --git a/asn.1/skeleton/UTCTime.h b/asn.1/skeleton/UTCTime.h new file mode 100644 index 00000000..bdcf1a92 --- /dev/null +++ b/asn.1/skeleton/UTCTime.h @@ -0,0 +1,74 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _UTCTime_H_ +#define _UTCTime_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef OCTET_STRING_t UTCTime_t; /* Implemented via OCTET STRING */ + +extern asn_TYPE_descriptor_t asn_DEF_UTCTime; +extern asn_TYPE_operation_t asn_OP_UTCTime; + +#define UTCTime_free OCTET_STRING_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +asn_struct_print_f UTCTime_print; +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +asn_struct_compare_f UTCTime_compare; +#define UTCTime_copy OCTET_STRING_copy + +asn_constr_check_f UTCTime_constraint; + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define UTCTime_decode_ber OCTET_STRING_decode_ber +#define UTCTime_encode_der OCTET_STRING_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#define UTCTime_decode_xer OCTET_STRING_decode_xer_utf8 +xer_type_encoder_f UTCTime_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +#define UTCTime_decode_jer OCTET_STRING_decode_jer_utf8 +jer_type_encoder_f UTCTime_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#define UTCTime_decode_uper OCTET_STRING_decode_uper +#define UTCTime_encode_uper OCTET_STRING_encode_uper +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define UTCTime_decode_aper OCTET_STRING_decode_aper +#define UTCTime_encode_aper OCTET_STRING_encode_aper +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +asn_random_fill_f UTCTime_random_fill; +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +/*********************** + * Some handy helpers. * + ***********************/ + +struct tm; /* */ + +/* See asn_GT2time() in GeneralizedTime.h */ +time_t asn_UT2time(const UTCTime_t *, struct tm *_optional_tm4fill, int as_gmt); + +/* See asn_time2GT() in GeneralizedTime.h */ +UTCTime_t *asn_time2UT(UTCTime_t *__opt_ut, const struct tm *, int force_gmt); + +#ifdef __cplusplus +} +#endif + +#endif /* _UTCTime_H_ */ diff --git a/asn.1/skeleton/UTCTime_jer.c b/asn.1/skeleton/UTCTime_jer.c new file mode 100644 index 00000000..d0001c10 --- /dev/null +++ b/asn.1/skeleton/UTCTime_jer.c @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +#ifdef __CYGWIN__ +#include "/usr/include/time.h" +#else +#include +#endif /* __CYGWIN__ */ + +#if !defined(ASN___INTERNAL_TEST_MODE) + +asn_enc_rval_t +UTCTime_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_enc_rval_t rv; + UTCTime_t *ut; + struct tm tm; + + errno = EPERM; + if(asn_UT2time((const UTCTime_t *)sptr, &tm, 1) == -1 + && errno != EPERM) + ASN__ENCODE_FAILED; + + /* Fractions are not allowed in UTCTime */ + ut = asn_time2UT(0, &tm, 1); + if(!ut) ASN__ENCODE_FAILED; + + rv = OCTET_STRING_encode_jer_utf8(td, sptr, ilevel, flags, + cb, app_key); + OCTET_STRING_free(&asn_DEF_UTCTime, ut, 0); + return rv; +} + +#endif /* !defined(ASN___INTERNAL_TEST_MODE) */ diff --git a/asn.1/skeleton/UTCTime_print.c b/asn.1/skeleton/UTCTime_print.c new file mode 100644 index 00000000..82ba11bf --- /dev/null +++ b/asn.1/skeleton/UTCTime_print.c @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +#ifdef __CYGWIN__ +#include "/usr/include/time.h" +#else +#include +#endif /* __CYGWIN__ */ + +int +UTCTime_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + asn_app_consume_bytes_f *cb, void *app_key) { + const UTCTime_t *st = (const UTCTime_t *)sptr; + + (void)td; /* Unused argument */ + (void)ilevel; /* Unused argument */ + + if(st && st->buf) { + char buf[32]; + struct tm tm; + int ret; + + errno = EPERM; + if(asn_UT2time(st, &tm, 1) == -1 && errno != EPERM) + return (cb("", 11, app_key) < 0) ? -1 : 0; + + ret = snprintf(buf, sizeof(buf), + "%04d-%02d-%02d %02d:%02d:%02d (UTC)", + tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, + tm.tm_hour, tm.tm_min, tm.tm_sec); + assert(ret > 0 && ret < (int)sizeof(buf)); + return (cb(buf, ret, app_key) < 0) ? -1 : 0; + } else { + return (cb("", 8, app_key) < 0) ? -1 : 0; + } +} diff --git a/asn.1/skeleton/UTCTime_rfill.c b/asn.1/skeleton/UTCTime_rfill.c new file mode 100644 index 00000000..d7d30f76 --- /dev/null +++ b/asn.1/skeleton/UTCTime_rfill.c @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_random_fill_result_t +UTCTime_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, + const asn_encoding_constraints_t *constraints, + size_t max_length) { + asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; + asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; + asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; + static const char *values[] = { + "700101000000", "700101000000-0000", "700101000000+0000", + "700101000000Z", "821106210623", "691106210827-0500", + "821106210629Z", + }; + size_t rnd = asn_random_between(0, sizeof(values)/sizeof(values[0])-1); + + (void)constraints; + + if(max_length < sizeof("yymmddhhmmss") && !*sptr) { + return result_skipped; + } + + if(*sptr) { + if(OCTET_STRING_fromBuf(*sptr, values[rnd], -1) != 0) { + if(!sptr) return result_failed; + } + } else { + *sptr = OCTET_STRING_new_fromBuf(td, values[rnd], -1); + if(!sptr) return result_failed; + } + + return result_ok; +} diff --git a/asn.1/skeleton/UTCTime_xer.c b/asn.1/skeleton/UTCTime_xer.c new file mode 100644 index 00000000..5da894da --- /dev/null +++ b/asn.1/skeleton/UTCTime_xer.c @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +#ifdef __CYGWIN__ +#include "/usr/include/time.h" +#else +#include +#endif /* __CYGWIN__ */ + +#if !defined(ASN___INTERNAL_TEST_MODE) + +asn_enc_rval_t +UTCTime_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + if(flags & XER_F_CANONICAL) { + asn_enc_rval_t rv; + UTCTime_t *ut; + struct tm tm; + + errno = EPERM; + if(asn_UT2time((const UTCTime_t *)sptr, &tm, 1) == -1 + && errno != EPERM) + ASN__ENCODE_FAILED; + + /* Fractions are not allowed in UTCTime */ + ut = asn_time2UT(0, &tm, 1); + if(!ut) ASN__ENCODE_FAILED; + + rv = OCTET_STRING_encode_xer_utf8(td, sptr, ilevel, flags, + cb, app_key); + OCTET_STRING_free(&asn_DEF_UTCTime, ut, 0); + return rv; + } else { + return OCTET_STRING_encode_xer_utf8(td, sptr, ilevel, flags, + cb, app_key); + } +} + +#endif /* !defined(ASN___INTERNAL_TEST_MODE) */ diff --git a/asn.1/skeleton/UTF8String.c b/asn.1/skeleton/UTF8String.c new file mode 100644 index 00000000..bb627d98 --- /dev/null +++ b/asn.1/skeleton/UTF8String.c @@ -0,0 +1,227 @@ +/*- + * Copyright (c) 2003, 2004, 2006 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * UTF8String basic type description. + */ +static const ber_tlv_tag_t asn_DEF_UTF8String_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), /* [UNIVERSAL 12] IMPLICIT ...*/ + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), /* ... OCTET STRING */ +}; +asn_TYPE_operation_t asn_OP_UTF8String = { + OCTET_STRING_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + UTF8String_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + OCTET_STRING_compare, + OCTET_STRING_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + OCTET_STRING_decode_xer_utf8, + OCTET_STRING_encode_xer_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + OCTET_STRING_decode_jer_utf8, + OCTET_STRING_encode_jer_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + OCTET_STRING_decode_oer, + OCTET_STRING_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OCTET_STRING_decode_uper, + OCTET_STRING_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, + OCTET_STRING_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + UTF8String_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_UTF8String = { + "UTF8String", + "UTF8String", + &asn_OP_UTF8String, + asn_DEF_UTF8String_tags, + sizeof(asn_DEF_UTF8String_tags) + / sizeof(asn_DEF_UTF8String_tags[0]) - 1, + asn_DEF_UTF8String_tags, + sizeof(asn_DEF_UTF8String_tags) + / sizeof(asn_DEF_UTF8String_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + UTF8String_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + +/* + * This is the table of length expectations. + * The second half of this table is only applicable to the long sequences. + */ +static const int UTF8String_ht[2][16] = { + { /* 0x0 ... 0x7 */ + /* 0000..0111 */ + 1, 1, 1, 1, 1, 1, 1, 1, + /* 1000..1011(0), 1100..1101(2), 1110(3), 1111(-1) */ + 0, 0, 0, 0, 2, 2, 3, -1 }, + { /* 0xF0 .. 0xF7 */ + /* 11110000..11110111 */ + 4, 4, 4, 4, 4, 4, 4, 4, + 5, 5, 5, 5, 6, 6, -1, -1 } +}; +static const int32_t UTF8String_mv[7] = { 0, 0, + 0x00000080, + 0x00000800, + 0x00010000, + 0x00200000, + 0x04000000 +}; + +/* Internal aliases for return codes */ +#define U8E_TRUNC -1 /* UTF-8 sequence truncated */ +#define U8E_ILLSTART -2 /* Illegal UTF-8 sequence start */ +#define U8E_NOTCONT -3 /* Continuation expectation failed */ +#define U8E_NOTMIN -4 /* Not minimal length encoding */ +#define U8E_EINVAL -5 /* Invalid arguments */ + +int +UTF8String_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + ssize_t len = UTF8String_length((const UTF8String_t *)sptr); + switch(len) { + case U8E_EINVAL: + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given", td->name); + break; + case U8E_TRUNC: + ASN__CTFAIL(app_key, td, sptr, + "%s: truncated UTF-8 sequence (%s:%d)", + td->name, __FILE__, __LINE__); + break; + case U8E_ILLSTART: + ASN__CTFAIL(app_key, td, sptr, + "%s: UTF-8 illegal start of encoding (%s:%d)", + td->name, __FILE__, __LINE__); + break; + case U8E_NOTCONT: + ASN__CTFAIL(app_key, td, sptr, + "%s: UTF-8 not continuation (%s:%d)", + td->name, __FILE__, __LINE__); + break; + case U8E_NOTMIN: + ASN__CTFAIL(app_key, td, sptr, + "%s: UTF-8 not minimal sequence (%s:%d)", + td->name, __FILE__, __LINE__); + break; + } + return (len < 0) ? -1 : 0; +} + +static ssize_t +UTF8String__process(const UTF8String_t *st, uint32_t *dst, size_t dstlen) { + size_t length = 0; + uint8_t *buf = (st == NULL)? NULL : st->buf; + uint8_t *end = (buf == NULL)? NULL : buf + st->size; + uint32_t *dstend = (dst == NULL)? NULL : dst + dstlen; + + for(length = 0; buf < end; length++) { + int ch = *buf; + uint8_t *cend; + int32_t value; + int want; + + /* Compute the sequence length */ + want = UTF8String_ht[0][ch >> 4]; + switch(want) { + case -1: + /* Second half of the table, long sequence */ + want = UTF8String_ht[1][ch & 0x0F]; + if(want != -1) break; + /* Fall through */ + case 0: + return U8E_ILLSTART; + } + + /* assert(want >= 1 && want <= 6) */ + + /* Check character sequence length */ + if(buf + want > end) return U8E_TRUNC; + + value = ch & (0xff >> want); + cend = buf + want; + for(buf++; buf < cend; buf++) { + ch = *buf; + if(ch < 0x80 || ch > 0xbf) return U8E_NOTCONT; + value = (value << 6) | (ch & 0x3F); + } + if(value < UTF8String_mv[want]) + return U8E_NOTMIN; + if(dst < dstend) + *dst++ = value; /* Record value */ + } + + if(dst < dstend) *dst = 0; /* zero-terminate */ + + return length; +} + + +ssize_t +UTF8String_length(const UTF8String_t *st) { + if(st && st->buf) { + return UTF8String__process(st, 0, 0); + } else { + return U8E_EINVAL; + } +} + +size_t +UTF8String_to_wcs(const UTF8String_t *st, uint32_t *dst, size_t dstlen) { + if(st && st->buf) { + ssize_t ret = UTF8String__process(st, dst, dstlen); + return (ret < 0) ? 0 : ret; + } else { + return 0; + } +} + diff --git a/asn.1/skeleton/UTF8String.h b/asn.1/skeleton/UTF8String.h new file mode 100644 index 00000000..e1fefeee --- /dev/null +++ b/asn.1/skeleton/UTF8String.h @@ -0,0 +1,86 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _UTF8String_H_ +#define _UTF8String_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef OCTET_STRING_t UTF8String_t; /* Implemented via OCTET STRING */ + +extern asn_TYPE_descriptor_t asn_DEF_UTF8String; +extern asn_TYPE_operation_t asn_OP_UTF8String; + +#define UTF8String_free OCTET_STRING_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +asn_struct_print_f UTF8String_print; +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define UTF8String_compare OCTET_STRING_compare +#define UTF8String_copy OCTET_STRING_copy + +asn_constr_check_f UTF8String_constraint; + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define UTF8String_decode_ber OCTET_STRING_decode_ber +#define UTF8String_encode_der OCTET_STRING_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#define UTF8String_decode_xer OCTET_STRING_decode_xer_utf8 +#define UTF8String_encode_xer OCTET_STRING_encode_xer_utf8 +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +#define UTF8String_decode_jer OCTET_STRING_decode_jer_utf8 +#define UTF8String_encode_jer OCTET_STRING_encode_jer_utf8 +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#define UTF8String_decode_uper OCTET_STRING_decode_uper +#define UTF8String_encode_uper OCTET_STRING_encode_uper +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define UTF8String_decode_aper OCTET_STRING_decode_aper +#define UTF8String_encode_aper OCTET_STRING_encode_aper +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +asn_random_fill_f UTF8String_random_fill; +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +/* + * Returns length of the given UTF-8 string in characters, + * or a negative error code: + * -1: UTF-8 sequence truncated + * -2: Illegal UTF-8 sequence start + * -3: Continuation expectation failed + * -4: Not minimal length encoding + * -5: Invalid arguments + */ +ssize_t UTF8String_length(const UTF8String_t *st); + +/* + * Convert the UTF-8 string into a sequence of wide characters. + * Returns the number of characters necessary. + * Returned value might be greater than dstlen. + * In case of conversion error, 0 is returned. + * + * If st points to a valid UTF-8 string, calling + * UTF8String_to_wcs(st, 0, 0); + * is equivalent to + * UTF8String_length(const UTF8String_t *st); + */ +size_t UTF8String_to_wcs(const UTF8String_t *st, uint32_t *dst, size_t dstlen); + +#ifdef __cplusplus +} +#endif + +#endif /* _UTF8String_H_ */ diff --git a/asn.1/skeleton/UTF8String_print.c b/asn.1/skeleton/UTF8String_print.c new file mode 100644 index 00000000..fdf7925d --- /dev/null +++ b/asn.1/skeleton/UTF8String_print.c @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +int +UTF8String_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + asn_app_consume_bytes_f *cb, void *app_key) { + const UTF8String_t *st = (const UTF8String_t *)sptr; + + (void)td; /* Unused argument */ + (void)ilevel; /* Unused argument */ + + if(st && st->buf) { + return (cb(st->buf, st->size, app_key) < 0) ? -1 : 0; + } else { + return (cb("", 8, app_key) < 0) ? -1 : 0; + } +} diff --git a/asn.1/skeleton/UTF8String_rfill.c b/asn.1/skeleton/UTF8String_rfill.c new file mode 100644 index 00000000..e50b67b2 --- /dev/null +++ b/asn.1/skeleton/UTF8String_rfill.c @@ -0,0 +1,96 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Biased function for randomizing UTF-8 sequences. + */ +static size_t +UTF8String__random_char(uint8_t *b, size_t size) { + static const struct rnd_value { + const char *value; + size_t size; + } values[] = {{"\0", 1}, + {"\x01", 1}, + {"\x7f", 1}, + {"\xc2\xa2", 2}, + {"\xe2\x82\xac", 3}, + {"\xf0\x90\x8d\x88", 4}, + {"\xf4\x8f\xbf\xbf", 4}}; + + const struct rnd_value *v; + size_t max_idx = 0; + + switch(size) { + case 0: + assert(size != 0); + return 0; + case 1: + max_idx = 2; + break; + case 2: + max_idx = 3; + break; + default: + case 4: + max_idx = sizeof(values) / sizeof(values[0]) - 1; + break; + } + + v = &values[asn_random_between(0, max_idx)]; + memcpy(b, v->value, v->size); + return v->size; +} + +asn_random_fill_result_t +UTF8String_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, + const asn_encoding_constraints_t *constraints, + size_t max_length) { + asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; + asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; + asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; + uint8_t *buf; + uint8_t *bend; + uint8_t *b; + size_t rnd_len; + size_t idx; + UTF8String_t *st; + + if(max_length == 0 && !*sptr) return result_skipped; + + /* Figure out how far we should go */ + rnd_len = OCTET_STRING_random_length_constrained(td, constraints, + max_length / 4); + + buf = CALLOC(4, rnd_len + 1); + if(!buf) return result_failed; + + bend = &buf[4 * rnd_len]; + + for(b = buf, idx = 0; idx < rnd_len; idx++) { + b += UTF8String__random_char(b, (bend - b)); + } + *(uint8_t *)b = 0; + + if(*sptr) { + st = *sptr; + FREEMEM(st->buf); + } else { + st = (OCTET_STRING_t *)(*sptr = CALLOC(1, sizeof(UTF8String_t))); + if(!st) { + FREEMEM(buf); + return result_failed; + } + } + + st->buf = buf; + st->size = b - buf; + + assert(UTF8String_length(st) == (ssize_t)rnd_len); + + return result_ok; +} diff --git a/asn.1/skeleton/UniversalString.c b/asn.1/skeleton/UniversalString.c new file mode 100644 index 00000000..4246e1b3 --- /dev/null +++ b/asn.1/skeleton/UniversalString.c @@ -0,0 +1,187 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * UniversalString basic type description. + */ +static const ber_tlv_tag_t asn_DEF_UniversalString_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (28 << 2)), /* [UNIVERSAL 28] IMPLICIT ...*/ + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ +}; +asn_OCTET_STRING_specifics_t asn_SPC_UniversalString_specs = { + sizeof(UniversalString_t), + offsetof(UniversalString_t, _asn_ctx), + ASN_OSUBV_U32 /* 32-bits character */ +}; +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_DEF_UniversalString_per_constraints = { + { APC_CONSTRAINED, 32, 32, 0, 2147483647 }, + { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 }, + 0, 0 +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_operation_t asn_OP_UniversalString = { + OCTET_STRING_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + UniversalString_print, /* Convert into UTF8 and print */ +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + OCTET_STRING_compare, + OCTET_STRING_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OCTET_STRING_decode_ber, + OCTET_STRING_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + UniversalString_decode_xer, /* Convert from UTF-8 */ + UniversalString_encode_xer, /* Convert into UTF-8 */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + UniversalString_decode_jer, /* Convert from UTF-8 */ + UniversalString_encode_jer, /* Convert into UTF-8 */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + OCTET_STRING_decode_oer, + OCTET_STRING_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OCTET_STRING_decode_uper, + OCTET_STRING_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, + OCTET_STRING_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + OCTET_STRING_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_UniversalString = { + "UniversalString", + "UniversalString", + &asn_OP_UniversalString, + asn_DEF_UniversalString_tags, + sizeof(asn_DEF_UniversalString_tags) + / sizeof(asn_DEF_UniversalString_tags[0]) - 1, + asn_DEF_UniversalString_tags, + sizeof(asn_DEF_UniversalString_tags) + / sizeof(asn_DEF_UniversalString_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_DEF_UniversalString_per_constraints, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + UniversalString_constraint + }, + 0, 0, /* No members */ + &asn_SPC_UniversalString_specs +}; + +int +UniversalString_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, + void *app_key) { + const UniversalString_t *st = (const UniversalString_t *)sptr; + + if(st && st->buf) { + if(st->size % 4) { + ASN__CTFAIL(app_key, td, sptr, + "%s: invalid size %" ASN_PRI_SIZE " not divisible by 4 (%s:%d)", + td->name, st->size, __FILE__, __LINE__); + return -1; + } + } else { + ASN__CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)", td->name, + __FILE__, __LINE__); + return -1; + } + + return 0; +} + +ssize_t +UniversalString__dump(const UniversalString_t *st, + asn_app_consume_bytes_f *cb, void *app_key) { + char scratch[128]; /* Scratchpad buffer */ + char *p = scratch; + ssize_t wrote = 0; + uint8_t *ch; + uint8_t *end; + + ch = st->buf; + end = (st->buf + st->size); + for(end -= 3; ch < end; ch += 4) { + uint32_t wc = (ch[0] << 24) + | (ch[1] << 16) + | (ch[2] << 8) + | ch[3]; /* 4 bytes */ + if(sizeof(scratch) - (p - scratch) < 6) { + wrote += p - scratch; + if(cb(scratch, p - scratch, app_key) < 0) + return -1; + p = scratch; + } + if(wc < 0x80) { + *p++ = (char)wc; + } else if(wc < 0x800) { + *p++ = 0xc0 | ((wc >> 6)); + *p++ = 0x80 | ((wc & 0x3f)); + } else if(wc < 0x10000) { + *p++ = 0xe0 | ((wc >> 12)); + *p++ = 0x80 | ((wc >> 6) & 0x3f); + *p++ = 0x80 | ((wc & 0x3f)); + } else if(wc < 0x200000) { + *p++ = 0xf0 | ((wc >> 18)); + *p++ = 0x80 | ((wc >> 12) & 0x3f); + *p++ = 0x80 | ((wc >> 6) & 0x3f); + *p++ = 0x80 | ((wc & 0x3f)); + } else if(wc < 0x4000000) { + *p++ = 0xf8 | ((wc >> 24)); + *p++ = 0x80 | ((wc >> 18) & 0x3f); + *p++ = 0x80 | ((wc >> 12) & 0x3f); + *p++ = 0x80 | ((wc >> 6) & 0x3f); + *p++ = 0x80 | ((wc & 0x3f)); + } else { + *p++ = 0xfc | ((wc >> 30) & 0x1); + *p++ = 0x80 | ((wc >> 24) & 0x3f); + *p++ = 0x80 | ((wc >> 18) & 0x3f); + *p++ = 0x80 | ((wc >> 12) & 0x3f); + *p++ = 0x80 | ((wc >> 6) & 0x3f); + *p++ = 0x80 | ((wc & 0x3f)); + } + } + + wrote += p - scratch; + if(cb(scratch, p - scratch, app_key) < 0) + return -1; + + return wrote; +} diff --git a/asn.1/skeleton/UniversalString.h b/asn.1/skeleton/UniversalString.h new file mode 100644 index 00000000..3bddfbfb --- /dev/null +++ b/asn.1/skeleton/UniversalString.h @@ -0,0 +1,63 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _UniversalString_H_ +#define _UniversalString_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef OCTET_STRING_t UniversalString_t; /* Implemented via OCTET STRING */ + +extern asn_TYPE_descriptor_t asn_DEF_UniversalString; +extern asn_TYPE_operation_t asn_OP_UniversalString; +extern asn_OCTET_STRING_specifics_t asn_SPC_UniversalString_specs; + +#define UniversalString_free OCTET_STRING_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +asn_struct_print_f UniversalString_print; /* Human-readable output */ +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define UniversalString_compare OCTET_STRING_compare +#define UniversalString_copy OCTET_STRING_copy + +asn_constr_check_f UniversalString_constraint; + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define UniversalString_decode_ber OCTET_STRING_decode_ber +#define UniversalString_encode_der OCTET_STRING_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +xer_type_decoder_f UniversalString_decode_xer; +xer_type_encoder_f UniversalString_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +jer_type_decoder_f UniversalString_decode_jer; +jer_type_encoder_f UniversalString_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#define UniversalString_decode_uper OCTET_STRING_decode_uper +#define UniversalString_encode_uper OCTET_STRING_encode_uper +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define UniversalString_decode_aper OCTET_STRING_decode_aper +#define UniversalString_encode_aper OCTET_STRING_encode_aper +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +ssize_t UniversalString__dump(const UniversalString_t *st, + asn_app_consume_bytes_f *cb, + void *app_key); + +#ifdef __cplusplus +} +#endif + +#endif /* _UniversalString_H_ */ diff --git a/asn.1/skeleton/UniversalString_jer.c b/asn.1/skeleton/UniversalString_jer.c new file mode 100644 index 00000000..c1dcf188 --- /dev/null +++ b/asn.1/skeleton/UniversalString_jer.c @@ -0,0 +1,88 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_dec_rval_t +UniversalString_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const void *buf_ptr, size_t size) { + asn_dec_rval_t rc; + + rc = OCTET_STRING_decode_jer_utf8(opt_codec_ctx, td, sptr, buf_ptr, size); + if(rc.code == RC_OK) { + /* + * Now we have a whole string in UTF-8 format. + * Convert it into UCS-4. + */ + uint32_t *wcs; + size_t wcs_len; + UTF8String_t *st; +#ifndef WORDS_BIGENDIAN + int little_endian = 1; +#endif + + assert(*sptr); + st = (UTF8String_t *)*sptr; + assert(st->buf); + wcs_len = UTF8String_to_wcs(st, 0, 0); + + wcs = (uint32_t *)MALLOC(4 * (wcs_len + 1)); + if(wcs == 0 || UTF8String_to_wcs(st, wcs, wcs_len) != wcs_len) { + rc.code = RC_FAIL; + rc.consumed = 0; + return rc; + } else { + wcs[wcs_len] = 0; /* nul-terminate */ + } + +#ifndef WORDS_BIGENDIAN + if(*(char *)&little_endian) { + /* Swap byte order in encoding */ + uint32_t *wc = wcs; + uint32_t *wc_end = wcs + wcs_len; + for(; wc < wc_end; wc++) { + /* *wc = htonl(*wc); */ + uint32_t wch = *wc; + *((uint8_t *)wc + 0) = wch >> 24; + *((uint8_t *)wc + 1) = wch >> 16; + *((uint8_t *)wc + 2) = wch >> 8; + *((uint8_t *)wc + 3) = wch; + } + } +#endif /* WORDS_BIGENDIAN */ + + FREEMEM(st->buf); + st->buf = (uint8_t *)wcs; + st->size = 4 * wcs_len; + } + return rc; +} + +asn_enc_rval_t +UniversalString_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const UniversalString_t *st = (const UniversalString_t *)sptr; + asn_enc_rval_t er = {0,0,0}; + ssize_t ro_encoded = 0; + + (void)ilevel; + (void)flags; + + if(!st || !st->buf) + ASN__ENCODE_FAILED; + + ASN__CALLBACK("\"", 1); + ro_encoded = UniversalString__dump(st, cb, app_key); + if(ro_encoded < 0) goto cb_failed; + er.encoded += ro_encoded; + ASN__CALLBACK("\"", 1); + +cb_failed: + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/UniversalString_print.c b/asn.1/skeleton/UniversalString_print.c new file mode 100644 index 00000000..4ae6861e --- /dev/null +++ b/asn.1/skeleton/UniversalString_print.c @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +int +UniversalString_print(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { + const UniversalString_t *st = (const UniversalString_t *)sptr; + + (void)td; /* Unused argument */ + (void)ilevel; /* Unused argument */ + + if(!st || !st->buf) return (cb("", 8, app_key) < 0) ? -1 : 0; + + if(UniversalString__dump(st, cb, app_key) < 0) + return -1; + + return 0; +} diff --git a/asn.1/skeleton/UniversalString_xer.c b/asn.1/skeleton/UniversalString_xer.c new file mode 100644 index 00000000..ef7fe7be --- /dev/null +++ b/asn.1/skeleton/UniversalString_xer.c @@ -0,0 +1,85 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_dec_rval_t +UniversalString_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, + size_t size) { + asn_dec_rval_t rc; + + rc = OCTET_STRING_decode_xer_utf8(opt_codec_ctx, td, sptr, opt_mname, + buf_ptr, size); + if(rc.code == RC_OK) { + /* + * Now we have a whole string in UTF-8 format. + * Convert it into UCS-4. + */ + uint32_t *wcs; + size_t wcs_len; + UTF8String_t *st; +#ifndef WORDS_BIGENDIAN + int little_endian = 1; +#endif + + assert(*sptr); + st = (UTF8String_t *)*sptr; + assert(st->buf); + wcs_len = UTF8String_to_wcs(st, 0, 0); + + wcs = (uint32_t *)MALLOC(4 * (wcs_len + 1)); + if(wcs == 0 || UTF8String_to_wcs(st, wcs, wcs_len) != wcs_len) { + rc.code = RC_FAIL; + rc.consumed = 0; + return rc; + } else { + wcs[wcs_len] = 0; /* nul-terminate */ + } + +#ifndef WORDS_BIGENDIAN + if(*(char *)&little_endian) { + /* Swap byte order in encoding */ + uint32_t *wc = wcs; + uint32_t *wc_end = wcs + wcs_len; + for(; wc < wc_end; wc++) { + /* *wc = htonl(*wc); */ + uint32_t wch = *wc; + *((uint8_t *)wc + 0) = wch >> 24; + *((uint8_t *)wc + 1) = wch >> 16; + *((uint8_t *)wc + 2) = wch >> 8; + *((uint8_t *)wc + 3) = wch; + } + } +#endif /* WORDS_BIGENDIAN */ + + FREEMEM(st->buf); + st->buf = (uint8_t *)wcs; + st->size = 4 * wcs_len; + } + return rc; +} + +asn_enc_rval_t +UniversalString_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const UniversalString_t *st = (const UniversalString_t *)sptr; + asn_enc_rval_t er = {0,0,0}; + + (void)ilevel; + (void)flags; + + if(!st || !st->buf) + ASN__ENCODE_FAILED; + + er.encoded = UniversalString__dump(st, cb, app_key); + if(er.encoded < 0) ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/VideotexString.c b/asn.1/skeleton/VideotexString.c new file mode 100644 index 00000000..0a5a1570 --- /dev/null +++ b/asn.1/skeleton/VideotexString.c @@ -0,0 +1,94 @@ +/*- + * Copyright (c) 2003 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * VideotexString basic type description. + */ +static const ber_tlv_tag_t asn_DEF_VideotexString_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (21 << 2)), /* [UNIVERSAL 21] IMPLICIT */ + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ +}; +asn_TYPE_operation_t asn_OP_VideotexString = { + OCTET_STRING_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + OCTET_STRING_print, /* non-ascii string */ +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + OCTET_STRING_compare, + OCTET_STRING_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + OCTET_STRING_decode_xer_hex, + OCTET_STRING_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + OCTET_STRING_decode_jer_hex, + OCTET_STRING_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + OCTET_STRING_decode_oer, + OCTET_STRING_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OCTET_STRING_decode_uper, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + OCTET_STRING_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_VideotexString = { + "VideotexString", + "VideotexString", + &asn_OP_VideotexString, + asn_DEF_VideotexString_tags, + sizeof(asn_DEF_VideotexString_tags) + / sizeof(asn_DEF_VideotexString_tags[0]) - 1, + asn_DEF_VideotexString_tags, + sizeof(asn_DEF_VideotexString_tags) + / sizeof(asn_DEF_VideotexString_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + asn_generic_unknown_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; diff --git a/asn.1/skeleton/VideotexString.h b/asn.1/skeleton/VideotexString.h new file mode 100644 index 00000000..ea991dfc --- /dev/null +++ b/asn.1/skeleton/VideotexString.h @@ -0,0 +1,58 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _VideotexString_H_ +#define _VideotexString_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef OCTET_STRING_t VideotexString_t; /* Implemented via OCTET STRING */ + +extern asn_TYPE_descriptor_t asn_DEF_VideotexString; +extern asn_TYPE_operation_t asn_OP_VideotexString; + +#define VideotexString_free OCTET_STRING_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +#define VideotexString_print OCTET_STRING_print +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define VideotexString_compare OCTET_STRING_compare +#define VideotexString_copy OCTET_STRING_copy + +#define VideotexString_constraint asn_generic_unknown_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define VideotexString_decode_ber OCTET_STRING_decode_ber +#define VideotexString_encode_der OCTET_STRING_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#define VideotexString_decode_xer OCTET_STRING_decode_xer_hex +#define VideotexString_encode_xer OCTET_STRING_encode_xer +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +#define VideotexString_decode_jer OCTET_STRING_decode_jer_hex +#define VideotexString_encode_jer OCTET_STRING_encode_jer +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#define VideotexString_decode_uper OCTET_STRING_decode_uper +#define VideotexString_encode_uper OCTET_STRING_encode_uper +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define VideotexString_decode_aper OCTET_STRING_decode_aper +#define VideotexString_encode_aper OCTET_STRING_encode_aper +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* _VideotexString_H_ */ diff --git a/asn.1/skeleton/VisibleString.c b/asn.1/skeleton/VisibleString.c new file mode 100644 index 00000000..f583b620 --- /dev/null +++ b/asn.1/skeleton/VisibleString.c @@ -0,0 +1,138 @@ +/*- + * Copyright (c) 2003, 2006 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * VisibleString basic type description. + */ +static const ber_tlv_tag_t asn_DEF_VisibleString_tags[] = { + (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), /* [UNIVERSAL 26] IMPLICIT ...*/ + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ +}; +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_DEF_VisibleString_constraints = { + { APC_CONSTRAINED, 7, 7, 0x20, 0x7e }, /* Value */ + { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 }, /* Size */ + 0, 0 +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_operation_t asn_OP_VisibleString = { + OCTET_STRING_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + OCTET_STRING_print_utf8, /* ASCII subset */ +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + OCTET_STRING_compare, + OCTET_STRING_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ + OCTET_STRING_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + OCTET_STRING_decode_xer_utf8, + OCTET_STRING_encode_xer_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + OCTET_STRING_decode_jer_utf8, + OCTET_STRING_encode_jer_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + OCTET_STRING_decode_oer, + OCTET_STRING_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + OCTET_STRING_decode_uper, + OCTET_STRING_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + OCTET_STRING_decode_aper, + OCTET_STRING_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + OCTET_STRING_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; +asn_TYPE_descriptor_t asn_DEF_VisibleString = { + "VisibleString", + "VisibleString", + &asn_OP_VisibleString, + asn_DEF_VisibleString_tags, + sizeof(asn_DEF_VisibleString_tags) + / sizeof(asn_DEF_VisibleString_tags[0]) - 1, + asn_DEF_VisibleString_tags, + sizeof(asn_DEF_VisibleString_tags) + / sizeof(asn_DEF_VisibleString_tags[0]), + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_DEF_VisibleString_constraints, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + VisibleString_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + +int +VisibleString_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const VisibleString_t *st = (const VisibleString_t *)sptr; + + if(st && st->buf) { + uint8_t *buf = st->buf; + uint8_t *end = buf + st->size; + + /* + * Check the alphabet of the VisibleString. + * ISO646, ISOReg#6 + * The alphabet is a subset of ASCII between the space + * and "~" (tilde). + */ + for(; buf < end; buf++) { + if(*buf < 0x20 || *buf > 0x7e) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value byte %ld (%d) " + "not in VisibleString alphabet (%s:%d)", + td->name, + (long)((buf - st->buf) + 1), + *buf, + __FILE__, __LINE__); + return -1; + } + } + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + return 0; +} diff --git a/asn.1/skeleton/VisibleString.h b/asn.1/skeleton/VisibleString.h new file mode 100644 index 00000000..013f12f0 --- /dev/null +++ b/asn.1/skeleton/VisibleString.h @@ -0,0 +1,58 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _VisibleString_H_ +#define _VisibleString_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef OCTET_STRING_t VisibleString_t; /* Implemented via OCTET STRING */ + +extern asn_TYPE_descriptor_t asn_DEF_VisibleString; +extern asn_TYPE_operation_t asn_OP_VisibleString; + +#define VisibleString_free OCTET_STRING_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +#define VisibleString_print OCTET_STRING_print +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +#define VisibleString_compare OCTET_STRING_compare +#define VisibleString_copy OCTET_STRING_copy + +asn_constr_check_f VisibleString_constraint; + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define VisibleString_decode_ber OCTET_STRING_decode_ber +#define VisibleString_encode_der OCTET_STRING_encode_der +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#define VisibleString_decode_xer OCTET_STRING_decode_xer_hex +#define VisibleString_encode_xer OCTET_STRING_encode_xer +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +#define VisibleString_decode_jer OCTET_STRING_decode_jer_hex +#define VisibleString_encode_jer OCTET_STRING_encode_jer +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#define VisibleString_decode_uper OCTET_STRING_decode_uper +#define VisibleString_encode_uper OCTET_STRING_encode_uper +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define VisibleString_decode_aper OCTET_STRING_decode_aper +#define VisibleString_encode_aper OCTET_STRING_encode_aper +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* _VisibleString_H_ */ diff --git a/asn.1/skeleton/aper_decoder.c b/asn.1/skeleton/aper_decoder.c new file mode 100644 index 00000000..0637b6a5 --- /dev/null +++ b/asn.1/skeleton/aper_decoder.c @@ -0,0 +1,91 @@ +#include +#include +#include + +asn_dec_rval_t +aper_decode_complete(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const void *buffer, size_t size) { + asn_dec_rval_t rval; + + rval = aper_decode(opt_codec_ctx, td, sptr, buffer, size, 0, 0); + if(rval.consumed) { + /* + * We've always given 8-aligned data, + * so convert bits to integral bytes. + */ + rval.consumed += 7; + rval.consumed >>= 3; + } else if(rval.code == RC_OK) { + if(size) { + if(((const uint8_t *)buffer)[0] == 0) { + rval.consumed = 1; /* 1 byte */ + } else { + ASN_DEBUG("Expecting single zeroed byte"); + rval.code = RC_FAIL; + } + } else { + /* Must contain at least 8 bits. */ + rval.code = RC_WMORE; + } + } + + return rval; +} + +asn_dec_rval_t +aper_decode(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, const void *buffer, + size_t size, int skip_bits, int unused_bits) { + asn_codec_ctx_t s_codec_ctx; + asn_dec_rval_t rval; + asn_per_data_t pd; + + if(skip_bits < 0 || skip_bits > 7 + || unused_bits < 0 || unused_bits > 7 + || (unused_bits > 0 && !size)) + ASN__DECODE_FAILED; + + /* + * Stack checker requires that the codec context + * must be allocated on the stack. + */ + if(opt_codec_ctx) { + if(opt_codec_ctx->max_stack_size) { + s_codec_ctx = *opt_codec_ctx; + opt_codec_ctx = &s_codec_ctx; + } + } else { + /* If context is not given, be security-conscious anyway */ + memset(&s_codec_ctx, 0, sizeof(s_codec_ctx)); + s_codec_ctx.max_stack_size = ASN__DEFAULT_STACK_MAX; + opt_codec_ctx = &s_codec_ctx; + } + + /* Fill in the position indicator */ + memset(&pd, 0, sizeof(pd)); + pd.buffer = (const uint8_t *)buffer; + pd.nboff = skip_bits; + pd.nbits = 8 * size - unused_bits; /* 8 is CHAR_BIT from */ + if(pd.nboff > pd.nbits) + ASN__DECODE_FAILED; + + /* + * Invoke type-specific decoder. + */ + if(!td->op->aper_decoder) + ASN__DECODE_FAILED; /* PER is not compiled in */ + rval = td->op->aper_decoder(opt_codec_ctx, td, 0, sptr, &pd); + if(rval.code == RC_OK) { + /* Return the number of consumed bits */ + rval.consumed = ((pd.buffer - (const uint8_t *)buffer) << 3) + + pd.nboff - skip_bits; + ASN_DEBUG("PER decoding consumed %zu, counted %zu", + rval.consumed, pd.moved); + assert(rval.consumed == pd.moved); + } else { + /* PER codec is not a restartable */ + rval.consumed = 0; + } + return rval; +} diff --git a/asn.1/skeleton/aper_decoder.h b/asn.1/skeleton/aper_decoder.h new file mode 100644 index 00000000..10352c71 --- /dev/null +++ b/asn.1/skeleton/aper_decoder.h @@ -0,0 +1,47 @@ +/*- + * Copyright (c) 2005-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _APER_DECODER_H_ +#define _APER_DECODER_H_ + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +struct asn_TYPE_descriptor_s; /* Forward declaration */ + +/* + * Aligned PER decoder of a "complete encoding" as per X.691#10.1. + * On success, this call always returns (.consumed >= 1), in BITS, as per X.691#10.1.3. + */ +asn_dec_rval_t aper_decode_complete( + const struct asn_codec_ctx_s *opt_codec_ctx, + const struct asn_TYPE_descriptor_s *type_descriptor, /* Type to decode */ + void **struct_ptr, /* Pointer to a target structure's pointer */ + const void *buffer, /* Data to be decoded */ + size_t size /* Size of data buffer */ + ); + +/* + * Aligned PER decoder of any ASN.1 type. May be invoked by the application. + * WARNING: This call returns the number of BITS read from the stream. Beware. + */ +asn_dec_rval_t aper_decode( + const struct asn_codec_ctx_s *opt_codec_ctx, + const struct asn_TYPE_descriptor_s *type_descriptor, /* Type to decode */ + void **struct_ptr, /* Pointer to a target structure's pointer */ + const void *buffer, /* Data to be decoded */ + size_t size, /* Size of data buffer */ + int skip_bits, /* Number of unused leading bits, 0..7 */ + int unused_bits /* Number of unused tailing bits, 0..7 */ + ); + +#ifdef __cplusplus +} +#endif + +#endif /* _APER_DECODER_H_ */ diff --git a/asn.1/skeleton/aper_encoder.c b/asn.1/skeleton/aper_encoder.c new file mode 100644 index 00000000..d9b1c1df --- /dev/null +++ b/asn.1/skeleton/aper_encoder.c @@ -0,0 +1,129 @@ +#include +#include +#include + +/* + * Argument type and callback necessary for aper_encode_to_buffer(). + */ +typedef struct enc_to_buf_arg { + void *buffer; + size_t left; +} enc_to_buf_arg; +static int encode_to_buffer_cb(const void *buffer, size_t size, void *key) { + enc_to_buf_arg *arg = (enc_to_buf_arg *)key; + + if(arg->left < size) + return -1; /* Data exceeds the available buffer size */ + + memcpy(arg->buffer, buffer, size); + arg->buffer = ((char *)arg->buffer) + size; + arg->left -= size; + + return 0; +} + +asn_enc_rval_t +aper_encode_to_buffer(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, void *buffer, size_t buffer_size) { + enc_to_buf_arg key; + + key.buffer = buffer; + key.left = buffer_size; + + if(td) ASN_DEBUG("Encoding \"%s\" using ALIGNED PER", td->name); + + return aper_encode(td, constraints, sptr, encode_to_buffer_cb, &key); +} + +ssize_t +aper_encode_to_new_buffer(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, void **buffer_r) { + asn_enc_rval_t er = {0,0,0}; + enc_dyn_arg key; + + memset(&key, 0, sizeof(key)); + + er = aper_encode(td, constraints, sptr, encode_dyn_cb, &key); + switch(er.encoded) { + case -1: + FREEMEM(key.buffer); + return -1; + case 0: + FREEMEM(key.buffer); + key.buffer = MALLOC(1); + if(key.buffer) { + *(char *)key.buffer = '\0'; + *buffer_r = key.buffer; + return 1; + } else { + return -1; + } + default: + *buffer_r = key.buffer; + ASN_DEBUG("Complete encoded in %ld bits", (long)er.encoded); + return ((er.encoded + 7) >> 3); + } +} + +/* + * Internally useful functions. + */ + +/* Flush partially filled buffer */ +static int +_aper_encode_flush_outp(asn_per_outp_t *po) { + uint8_t *buf; + + if(po->nboff == 0 && po->buffer == po->tmpspace) + return 0; + + buf = po->buffer + (po->nboff >> 3); + /* Make sure we account for the last, partially filled */ + if(po->nboff & 0x07) { + buf[0] &= 0xff << (8 - (po->nboff & 0x07)); + buf++; + } + + if (po->output) { + return po->output(po->tmpspace, buf - po->tmpspace, po->op_key); + } + return 0; +} + +asn_enc_rval_t +aper_encode(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_app_consume_bytes_f *cb, void *app_key) { + asn_per_outp_t po; + asn_enc_rval_t er = {0,0,0}; + + /* + * Invoke type-specific encoder. + */ + if(!td || !td->op->aper_encoder) + ASN__ENCODE_FAILED; /* PER is not compiled in */ + + po.buffer = po.tmpspace; + po.nboff = 0; + po.nbits = 8 * sizeof(po.tmpspace); + po.output = cb ? cb : ignore_output; + po.op_key = app_key; + po.flushed_bytes = 0; + + er = td->op->aper_encoder(td, constraints, sptr, &po); + if(er.encoded != -1) { + size_t bits_to_flush; + + bits_to_flush = ((po.buffer - po.tmpspace) << 3) + po.nboff; + + /* Set number of bits encoded to a firm value */ + er.encoded = (po.flushed_bytes << 3) + bits_to_flush; + + if(_aper_encode_flush_outp(&po)) + ASN__ENCODE_FAILED; + } + + return er; +} diff --git a/asn.1/skeleton/aper_encoder.h b/asn.1/skeleton/aper_encoder.h new file mode 100644 index 00000000..957b0bdb --- /dev/null +++ b/asn.1/skeleton/aper_encoder.h @@ -0,0 +1,63 @@ +/*- + * Copyright (c) 2006-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _APER_ENCODER_H_ +#define _APER_ENCODER_H_ + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +struct asn_TYPE_descriptor_s; /* Forward declaration */ + +/* + * Aligned PER encoder of any ASN.1 type. May be invoked by the application. + * WARNING: This function returns the number of encoded bits in the .encoded + * field of the return value. Use the following formula to convert to bytes: + * bytes = ((.encoded + 7) / 8) + */ +asn_enc_rval_t aper_encode( + const struct asn_TYPE_descriptor_s *type_descriptor, + const asn_per_constraints_t *constraints, + const void *struct_ptr, /* Structure to be encoded */ + asn_app_consume_bytes_f *consume_bytes_cb, /* Data collector */ + void *app_key /* Arbitrary callback argument */ +); + +/* + * A variant of aper_encode() which encodes data into the existing buffer + * WARNING: This function returns the number of encoded bits in the .encoded + * field of the return value. + */ +asn_enc_rval_t aper_encode_to_buffer( + const struct asn_TYPE_descriptor_s *type_descriptor, + const asn_per_constraints_t *constraints, + const void *struct_ptr, /* Structure to be encoded */ + void *buffer, /* Pre-allocated buffer */ + size_t buffer_size /* Initial buffer size (max) */ +); + +/* + * A variant of aper_encode_to_buffer() which allocates buffer itself. + * Returns the number of bytes in the buffer or -1 in case of failure. + * WARNING: This function produces a "Production of the complete encoding", + * with length of at least one octet. Contrast this to precise bit-packing + * encoding of aper_encode() and aper_encode_to_buffer(). + */ +ssize_t +aper_encode_to_new_buffer( + const struct asn_TYPE_descriptor_s *td, + const asn_per_constraints_t *constraints, + const void *sptr, + void **buffer_r +); + +#ifdef __cplusplus +} +#endif + +#endif /* _APER_ENCODER_H_ */ diff --git a/asn.1/skeleton/aper_opentype.c b/asn.1/skeleton/aper_opentype.c new file mode 100644 index 00000000..cdd5999b --- /dev/null +++ b/asn.1/skeleton/aper_opentype.c @@ -0,0 +1,149 @@ +/* + * Copyright (c) 2007 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include +#include + +static asn_dec_rval_t +aper_open_type_get_simple(const asn_codec_ctx_t *ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) { + asn_dec_rval_t rv; + ssize_t chunk_bytes; + int repeat; + uint8_t *buf = 0; + size_t bufLen = 0; + size_t bufSize = 0; + asn_per_data_t spd; + size_t padding; + + ASN__STACK_OVERFLOW_CHECK(ctx); + + ASN_DEBUG("Getting open type %s...", td->name); + + do { + chunk_bytes = aper_get_length(pd, -1, -1, -1, &repeat); + if(chunk_bytes < 0) { + FREEMEM(buf); + ASN__DECODE_STARVED; + } + if(bufLen + chunk_bytes > bufSize) { + void *ptr; + bufSize = chunk_bytes + (bufSize << 2); + ptr = REALLOC(buf, bufSize); + if(!ptr) { + FREEMEM(buf); + ASN__DECODE_FAILED; + } + buf = ptr; + } + if(per_get_many_bits(pd, buf + bufLen, 0, chunk_bytes << 3)) { + FREEMEM(buf); + ASN__DECODE_STARVED; + } + bufLen += chunk_bytes; + } while(repeat); + + ASN_DEBUG("Getting open type %s encoded in %ld bytes", td->name, + (long)bufLen); + + memset(&spd, 0, sizeof(spd)); + spd.buffer = buf; + spd.nbits = bufLen << 3; + + ASN_DEBUG_INDENT_ADD(+4); + rv = td->op->aper_decoder(ctx, td, constraints, sptr, &spd); + ASN_DEBUG_INDENT_ADD(-4); + + if(rv.code == RC_OK) { + /* Check padding validity */ + padding = spd.nbits - spd.nboff; + if (((padding > 0 && padding < 8) || + /* X.691#10.1.3 */ + (spd.nboff == 0 && spd.nbits == 8 && spd.buffer == buf)) && + per_get_few_bits(&spd, padding) == 0) { + /* Everything is cool */ + FREEMEM(buf); + return rv; + } + FREEMEM(buf); + if(padding >= 8) { + ASN_DEBUG("Too large padding %d in open type", (int)padding); + ASN__DECODE_FAILED; + } else { + ASN_DEBUG("No padding"); + } + } else { + FREEMEM(buf); + /* rv.code could be RC_WMORE, nonsense in this context */ + rv.code = RC_FAIL; /* Noone would give us more */ + } + + return rv; +} + +int +aper_open_type_put(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + void *buf; + void *bptr; + ssize_t size; + size_t toGo; + + ASN_DEBUG("Open type put %s ...", td->name); + + size = aper_encode_to_new_buffer(td, constraints, sptr, &buf); + if(size <= 0) return -1; + + for(bptr = buf, toGo = size; toGo;) { + int need_eom = 0; + ssize_t maySave = aper_put_length(po, -1, -1, toGo, &need_eom); + if(maySave < 0) break; + if(per_put_many_bits(po, bptr, maySave * 8)) break; + bptr = (char *)bptr + maySave; + toGo -= maySave; + if(need_eom && (aper_put_length(po, -1, -1, 0, NULL) < 0)) { + FREEMEM(buf); + return -1; + } + } + + FREEMEM(buf); + if(toGo) return -1; + + ASN_DEBUG("Open type put %s of length %zd + overhead (1byte?)", + td->name, size); + + return 0; +} + +asn_dec_rval_t +aper_open_type_get(const asn_codec_ctx_t *ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + void **sptr, asn_per_data_t *pd) { + + return aper_open_type_get_simple(ctx, td, constraints, sptr, pd); +} + +int +aper_open_type_skip(const asn_codec_ctx_t *ctx, asn_per_data_t *pd) { + asn_TYPE_descriptor_t s_td; + asn_dec_rval_t rv; + asn_TYPE_operation_t op_t; + + memset(&op_t, 0, sizeof(op_t)); + s_td.name = ""; + s_td.op = &op_t; + s_td.op->aper_decoder = uper_sot_suck; + + rv = aper_open_type_get(ctx, &s_td, 0, 0, pd); + if(rv.code != RC_OK) + return -1; + else + return 0; +} diff --git a/asn.1/skeleton/aper_opentype.h b/asn.1/skeleton/aper_opentype.h new file mode 100644 index 00000000..451b01c3 --- /dev/null +++ b/asn.1/skeleton/aper_opentype.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2007-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _APER_OPENTYPE_H_ +#define _APER_OPENTYPE_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +asn_dec_rval_t aper_open_type_get(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + void **sptr, asn_per_data_t *pd); + + +int aper_open_type_skip(const asn_codec_ctx_t *opt_codec_ctx, asn_per_data_t *pd); + +int aper_open_type_put(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po); + +#ifdef __cplusplus +} +#endif + +#endif /* _APER_OPENTYPE_H_ */ diff --git a/asn.1/skeleton/aper_support.c b/asn.1/skeleton/aper_support.c new file mode 100644 index 00000000..6731c1c7 --- /dev/null +++ b/asn.1/skeleton/aper_support.c @@ -0,0 +1,360 @@ +/* + * Copyright (c) 2005-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +int32_t +aper_get_align(asn_per_data_t *pd) { + + if(pd->nboff & 0x7) { + ASN_DEBUG("Aligning %ld bits", 8 - ((unsigned long)pd->nboff & 0x7)); + return per_get_few_bits(pd, 8 - (pd->nboff & 0x7)); + } + return 0; +} + +ssize_t +aper_get_length(asn_per_data_t *pd, ssize_t lb, ssize_t ub, + int ebits, int *repeat) { + int constrained = (lb >= 0) && (ub >= 0); + ssize_t value; + + *repeat = 0; + + if (constrained && ub < 65536) { + return aper_get_constrained_whole_number(pd, lb, ub); + } + + if (aper_get_align(pd) < 0) + return -1; + + if(ebits >= 0) return per_get_few_bits(pd, ebits); + + value = per_get_few_bits(pd, 8); + if(value < 0) return -1; + if((value & 128) == 0) /* #11.9.3.6 */ + return (value & 0x7F); + if((value & 64) == 0) { /* #11.9.3.7 */ + value = ((value & 63) << 8) | per_get_few_bits(pd, 8); + if(value < 0) return -1; + return value; + } + value &= 63; /* this is "m" from X.691, #11.9.3.8 */ + if(value < 1 || value > 4) + return -1; + *repeat = 1; + return (16384 * value); +} + +ssize_t +aper_get_nslength(asn_per_data_t *pd) { + ssize_t length; + + ASN_DEBUG("Getting normally small length"); + + if(per_get_few_bits(pd, 1) == 0) { + length = per_get_few_bits(pd, 6) + 1; + if(length <= 0) return -1; + ASN_DEBUG("l=%zd", length); + return length; + } else { + int repeat; + length = aper_get_length(pd, -1, -1, -1, &repeat); + if(length >= 0 && !repeat) return length; + return -1; /* Error, or do not support >16K extensions */ + } +} + +ssize_t +aper_get_nsnnwn(asn_per_data_t *pd) { + int b; + int length; + + ASN_DEBUG("getting nsnnwn"); + + b = per_get_few_bits(pd, 1); + if (b == -1) + return -1; + + /* X.691 2002 10.6.1 */ + if (b == 0) + return per_get_few_bits(pd, 6); + + if (aper_get_align(pd) < 0) + return -1; + + /* X.691 2002 10.6.2 */ + /* X.691 2002 10.9.3.5 */ + b = per_get_few_bits(pd, 1); + if (b == -1) + return -1; + + if (b == 1) { + /* other 10.9.3.x cases not handled, it's doubtful we reach them in practice */ + ASN_DEBUG("todo: X.691 2002 10.9.3.x"); + return -1; + } + + /* X.691 2002 10.9.3.6 */ + length = per_get_few_bits(pd, 7); + if (length > 4) { + /* todo */ + ASN_DEBUG("todo: X.691 2002 10.9.3.6 for length > 4"); + return -1; + } + ASN_DEBUG("length %d\n", length); + + /* todo: 0xffffffff will be seen as -1 and will lead to decoding failure */ + return per_get_few_bits(pd, length * 8); +} + +/* X.691 2002 10.5 - Decoding of a constrained whole number */ +long +aper_get_constrained_whole_number(asn_per_data_t *pd, long lb, long ub) { + assert(ub >= lb); + long range = ub - lb + 1; + int range_len; + int value_len; + long value; + + ASN_DEBUG("aper get constrained_whole_number with lb %ld and ub %ld", lb, ub); + + /* X.691 2002 10.5.4 */ + if (range == 1) + return lb; + + /* X.691 2002 10.5.7.1 - The bit-field case. */ + if (range <= 255) { + int bitfield_size = 8; + for (bitfield_size = 8; bitfield_size >= 2; bitfield_size--) + if ((range - 1) & (1 << (bitfield_size-1))) + break; + value = per_get_few_bits(pd, bitfield_size); + if (value < 0 || value >= range) + return -1; + return value + lb; + } + + /* X.691 2002 10.5.7.2 - The one-octet case. */ + if (range == 256) { + if (aper_get_align(pd)) + return -1; + value = per_get_few_bits(pd, 8); + if (value < 0 || value >= range) + return -1; + return value + lb; + } + + /* X.691 2002 10.5.7.3 - The two-octet case. */ + if (range <= 65536) { + if (aper_get_align(pd)) + return -1; + value = per_get_few_bits(pd, 16); + if (value < 0 || value >= range) + return -1; + return value + lb; + } + + /* X.691 2002 10.5.7.4 - The indefinite length case. */ + /* since we limit input to be 'long' we don't handle all numbers */ + /* and so length determinant is retrieved as X.691 2002 10.9.3.3 */ + /* number of bytes to store the range */ + for (range_len = 3; ; range_len++) { + long bits = ((long)1) << (8 * range_len); + if (range - 1 < bits) + break; + } + value_len = aper_get_constrained_whole_number(pd, 1, range_len); + if (value_len == -1) + return -1; + if (value_len > 4) { + ASN_DEBUG("todo: aper_get_constrained_whole_number: value_len > 4"); + return -1; + } + if (aper_get_align(pd)) + return -1; + value = per_get_few_bits(pd, value_len * 8); + if (value < 0 || value >= range) + return -1; + return value + lb; +} + +int aper_put_align(asn_per_outp_t *po) { + + if(po->nboff & 0x7) { + ASN_DEBUG("Aligning %ld bits", 8 - ((unsigned long)po->nboff & 0x7)); + if(per_put_few_bits(po, 0x00, (8 - (po->nboff & 0x7)))) + return -1; + } + return 0; +} + +ssize_t +aper_put_length(asn_per_outp_t *po, ssize_t lb, ssize_t ub, size_t n, int *need_eom) { + int constrained = (lb >= 0) && (ub >= 0); + int dummy = 0; + if(!need_eom) need_eom = &dummy; + + *need_eom = 0; + + + ASN_DEBUG("APER put length %zu with range (%zd..%zd)", n, lb, ub); + + /* X.691 2002 10.9.3.3 */ + if (constrained && ub < 65536) + return aper_put_constrained_whole_number(po, lb, ub, n + lb) ? -1 : (ssize_t)n; + + if (aper_put_align(po) < 0) + return -1; + + if(n <= 127) { /* #11.9.3.6 */ + return per_put_few_bits(po, n, 8) + ? -1 : (ssize_t)n; + } + else if(n < 16384) /* #11.9.3.7 */ + return per_put_few_bits(po, n|0x8000, 16) + ? -1 : (ssize_t)n; + + *need_eom = 0 == (n & 16383); + n >>= 14; + if(n > 4) { + *need_eom = 0; + n = 4; + } + + return per_put_few_bits(po, 0xC0 | n, 8) + ? -1 : (ssize_t)(n << 14); +} + + +int +aper_put_nslength(asn_per_outp_t *po, size_t length) { + + if(length <= 64) { + /* #11.9.3.4 */ + if(length == 0) return -1; + return per_put_few_bits(po, length-1, 7) ? -1 : 0; + } else { + if(aper_put_length(po, -1, -1, length, NULL) != (ssize_t)length) { + /* This might happen in case of >16K extensions */ + return -1; + } + } + + return 0; +} + +int +aper_put_nsnnwn(asn_per_outp_t *po, int number) { + int len; + + ASN_DEBUG("aper put nsnnwn %d", number); + + if (number <= 63) { + if (per_put_few_bits(po, 0, 1)) + return -1; + return per_put_few_bits(po, number, 6); + } + + if (per_put_few_bits(po, 1, 1)) + return -1; + + if (number < 256) { + len = 1; + } else if (number < 65536) { + len = 2; + } else { /* number > 64K */ + int i; + for (i = 3; ; i++) { + int bits = 1 << (8 * i); + if (number < bits) + break; + } + len = i; + } + + if (aper_put_align(po) < 0) + return -1; + + /* put the length which is a non-constrained whole number */ + if (len <= 127) { + if(per_put_few_bits(po, 0, 1)) + return -1; + if(per_put_few_bits(po, len, 7)) + return -1; + } else { + /* todo but not big problem, it's very doubtful that the + * number of bytes to encode 'number' will be > 127 + */ + return -1; + } + if(aper_put_align(po) < 0) /* Aligning on octet */ + return -1; + return per_put_few_bits(po, number, 8 * len); +} + +/* X.691 2002 10.5 - Encoding of a constrained whole number */ +int +aper_put_constrained_whole_number(asn_per_outp_t *po, long lb, long ub, long number) { + assert(ub >= lb); + long range = ub - lb + 1; + long value = number - lb; + int range_len; + int value_len; + + ASN_DEBUG("aper put constrained_whole_number %ld with lb %ld and ub %ld", number, lb, ub); + + if (number < lb || number > ub) + return -1; + + /* X.691 2002 10.5.4 */ + if (range == 1) + return 0; + + /* X.691 2002 10.5.7.1 - The bit-field case. */ + if (range <= 255) { + int bitfield_size = 8; + for (bitfield_size = 8; bitfield_size >= 2; bitfield_size--) + if ((range - 1) & (1 << (bitfield_size-1))) + break; + return per_put_few_bits(po, value, bitfield_size); + } + + /* X.691 2002 10.5.7.2 - The one-octet case. */ + if (range == 256) { + if (aper_put_align(po)) + return -1; + return per_put_few_bits(po, value, 8); + } + + /* X.691 2002 10.5.7.3 - The two-octet case. */ + if (range <= 65536) { + if (aper_put_align(po)) + return -1; + return per_put_few_bits(po, value, 16); + } + + /* X.691 2002 10.5.7.4 - The indefinite length case. */ + /* since we limit input to be 'long' we don't handle all numbers */ + /* and so length determinant is stored as X.691 2002 10.9.3.3 */ + /* number of bytes to store the range */ + for (range_len = 3; ; range_len++) { + int bits = 1 << (8 * range_len); + if (range - 1 < bits) + break; + } + /* number of bytes to store the value */ + for (value_len = 1; ; value_len++) { + long bits = ((long)1) << (8 * value_len); + if (value < bits) + break; + } + if (aper_put_constrained_whole_number(po, 1, range_len, value_len)) + return -1; + if (aper_put_align(po)) + return -1; + return per_put_few_bits(po, value, value_len * 8); +} diff --git a/asn.1/skeleton/aper_support.h b/asn.1/skeleton/aper_support.h new file mode 100644 index 00000000..62d37905 --- /dev/null +++ b/asn.1/skeleton/aper_support.h @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2005-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _APER_SUPPORT_H_ +#define _APER_SUPPORT_H_ + +#include /* Platform-specific types */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * X.691 (08/2015) #11.9 "General rules for encoding a length determinant" + * Get the length "n" from the Aligned PER stream. + */ +ssize_t aper_get_length(asn_per_data_t *pd, ssize_t lb, ssize_t ub, + int effective_bound_bits, int *repeat); + +/* + * Get the normally small length "n". + */ +ssize_t aper_get_nslength(asn_per_data_t *pd); + +/* + * Get the normally small non-negative whole number. + */ +ssize_t aper_get_nsnnwn(asn_per_data_t *pd); + +/* + * Get the constrained whole number. + */ +long aper_get_constrained_whole_number(asn_per_data_t *po, long lb, long ub); + +/* + * X.691 (08/2015) #11.9 "General rules for encoding a length determinant" + * Put the length "n" to the Aligned PER stream. + * If (opt_need_eom) is given, it will be set to 1 if final 0-n is needed. + * In that case, invoke aper_put_length(po, -1, -1, 0, NULL) after encoding the + * last block. + * This function returns the number of units which may be flushed + * in the next units saving iteration. + */ +ssize_t aper_put_length(asn_per_outp_t *po, ssize_t lb, ssize_t ub, size_t n, + int *opt_need_eom); + +/* Align the current bit position to octet bundary */ +int aper_put_align(asn_per_outp_t *po); +int32_t aper_get_align(asn_per_data_t *pd); + +/* + * Put the normally small length "n" to the Unaligned PER stream. + * Returns 0 or -1. + */ +int aper_put_nslength(asn_per_outp_t *po, size_t length); + +/* + * Put the normally small non-negative whole number. + */ +int aper_put_nsnnwn(asn_per_outp_t *po, int number); + +/* + * Put the constrained whole number. + */ +int aper_put_constrained_whole_number(asn_per_outp_t *po, long lb, long ub, long number); + +#ifdef __cplusplus +} +#endif + +#endif /* _APER_SUPPORT_H_ */ diff --git a/asn.1/generated/asn_SEQUENCE_OF.c b/asn.1/skeleton/asn_SEQUENCE_OF.c similarity index 100% rename from asn.1/generated/asn_SEQUENCE_OF.c rename to asn.1/skeleton/asn_SEQUENCE_OF.c diff --git a/asn.1/generated/asn_SEQUENCE_OF.h b/asn.1/skeleton/asn_SEQUENCE_OF.h similarity index 100% rename from asn.1/generated/asn_SEQUENCE_OF.h rename to asn.1/skeleton/asn_SEQUENCE_OF.h diff --git a/asn.1/generated/asn_SET_OF.c b/asn.1/skeleton/asn_SET_OF.c similarity index 100% rename from asn.1/generated/asn_SET_OF.c rename to asn.1/skeleton/asn_SET_OF.c diff --git a/asn.1/generated/asn_SET_OF.h b/asn.1/skeleton/asn_SET_OF.h similarity index 100% rename from asn.1/generated/asn_SET_OF.h rename to asn.1/skeleton/asn_SET_OF.h diff --git a/asn.1/skeleton/asn_application.c b/asn.1/skeleton/asn_application.c new file mode 100644 index 00000000..4309593d --- /dev/null +++ b/asn.1/skeleton/asn_application.c @@ -0,0 +1,556 @@ +/* + * Copyright (c) 2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +static asn_enc_rval_t asn_encode_internal(const asn_codec_ctx_t *opt_codec_ctx, + enum asn_transfer_syntax syntax, + const asn_TYPE_descriptor_t *td, + const void *sptr, + asn_app_consume_bytes_f *callback, + void *callback_key); + + +struct callback_count_bytes_key { + asn_app_consume_bytes_f *callback; + void *callback_key; + size_t computed_size; +}; + +/* + * Encoder which just counts bytes that come through it. + */ +static int +callback_count_bytes_cb(const void *data, size_t size, void *keyp) { + struct callback_count_bytes_key *key = keyp; + int ret; + + ret = key->callback(data, size, key->callback_key); + if(ret >= 0) { + key->computed_size += size; + } + + return ret; +} + +struct overrun_encoder_key { + void *buffer; + size_t buffer_size; + size_t computed_size; +}; + +struct dynamic_encoder_key { + void *buffer; + size_t buffer_size; + size_t computed_size; +}; + +struct callback_failure_catch_key { + asn_app_consume_bytes_f *callback; + void *callback_key; + int callback_failed; +}; + +/* + * Encoder which doesn't stop counting bytes + * even if it reaches the end of the buffer. + */ +static int +overrun_encoder_cb(const void *data, size_t size, void *keyp) { + struct overrun_encoder_key *key = keyp; + + if(key->computed_size + size > key->buffer_size) { + /* + * Avoid accident on the next call: + * stop adding bytes to the buffer. + */ + key->buffer_size = 0; + } else { + memcpy((char *)key->buffer + key->computed_size, data, size); + } + key->computed_size += size; + + return 0; +} + +/* + * Encoder which dynamically allocates output, and continues + * to count even if allocation failed. + */ +static int +dynamic_encoder_cb(const void *data, size_t size, void *keyp) { + struct dynamic_encoder_key *key = keyp; + + if(key->buffer) { + if(key->computed_size + size >= key->buffer_size) { + void *p; + size_t new_size = key->buffer_size; + + do { + new_size *= 2; + } while(new_size <= key->computed_size + size); + + p = REALLOC(key->buffer, new_size); + if(p) { + key->buffer = p; + key->buffer_size = new_size; + } else { + FREEMEM(key->buffer); + key->buffer = 0; + key->buffer_size = 0; + key->computed_size += size; + return 0; + } + } + memcpy((char *)key->buffer + key->computed_size, data, size); + } + + key->computed_size += size; + + return 0; +} + +/* + * Encoder which help convert the application level encoder failure into EIO. + */ +static int +callback_failure_catch_cb(const void *data, size_t size, void *keyp) { + struct callback_failure_catch_key *key = keyp; + int ret; + + ret = key->callback(data, size, key->callback_key); + if(ret < 0) { + key->callback_failed = 1; + } + + return ret; +} + +asn_enc_rval_t +asn_encode(const asn_codec_ctx_t *opt_codec_ctx, + enum asn_transfer_syntax syntax, const asn_TYPE_descriptor_t *td, + const void *sptr, asn_app_consume_bytes_f *callback, void *callback_key) { + struct callback_failure_catch_key cb_key; + asn_enc_rval_t er = {0,0,0}; + + if(!callback) { + errno = EINVAL; + ASN__ENCODE_FAILED; + } + + cb_key.callback = callback; + cb_key.callback_key = callback_key; + cb_key.callback_failed = 0; + + er = asn_encode_internal(opt_codec_ctx, syntax, td, sptr, + callback_failure_catch_cb, &cb_key); + if(cb_key.callback_failed) { + assert(er.encoded == -1); + assert(errno == EBADF); + errno = EIO; + } + + return er; +} + +asn_enc_rval_t +asn_encode_to_buffer(const asn_codec_ctx_t *opt_codec_ctx, + enum asn_transfer_syntax syntax, + const asn_TYPE_descriptor_t *td, const void *sptr, + void *buffer, size_t buffer_size) { + struct overrun_encoder_key buf_key; + asn_enc_rval_t er = {0,0,0}; + + if(buffer_size > 0 && !buffer) { + errno = EINVAL; + ASN__ENCODE_FAILED; + } + + buf_key.buffer = buffer; + buf_key.buffer_size = buffer_size; + buf_key.computed_size = 0; + + er = asn_encode_internal(opt_codec_ctx, syntax, td, sptr, + overrun_encoder_cb, &buf_key); + + if(er.encoded >= 0 && (size_t)er.encoded != buf_key.computed_size) { + ASN_DEBUG("asn_encode() returned %" ASN_PRI_SSIZE + " yet produced %" ASN_PRI_SIZE " bytes", + er.encoded, buf_key.computed_size); + assert(er.encoded < 0 || (size_t)er.encoded == buf_key.computed_size); + } + + return er; +} + +asn_encode_to_new_buffer_result_t +asn_encode_to_new_buffer(const asn_codec_ctx_t *opt_codec_ctx, + enum asn_transfer_syntax syntax, + const asn_TYPE_descriptor_t *td, const void *sptr) { + struct dynamic_encoder_key buf_key; + asn_encode_to_new_buffer_result_t res; + + buf_key.buffer_size = 16; + buf_key.buffer = MALLOC(buf_key.buffer_size); + buf_key.computed_size = 0; + + res.result = asn_encode_internal(opt_codec_ctx, syntax, td, sptr, + dynamic_encoder_cb, &buf_key); + + if(res.result.encoded >= 0 + && (size_t)res.result.encoded != buf_key.computed_size) { + ASN_DEBUG("asn_encode() returned %" ASN_PRI_SSIZE + " yet produced %" ASN_PRI_SIZE " bytes", + res.result.encoded, buf_key.computed_size); + assert(res.result.encoded < 0 + || (size_t)res.result.encoded == buf_key.computed_size); + } + + res.buffer = buf_key.buffer; + + /* 0-terminate just in case. */ + if(res.buffer) { + assert(buf_key.computed_size < buf_key.buffer_size); + ((char *)res.buffer)[buf_key.computed_size] = '\0'; + } + + return res; +} + +static asn_enc_rval_t +asn_encode_internal(const asn_codec_ctx_t *opt_codec_ctx, + enum asn_transfer_syntax syntax, + const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_consume_bytes_f *callback, void *callback_key) { + asn_enc_rval_t er = {0,0,0}; +#if !defined(ASN_DISABLE_XER_SUPPORT) + enum xer_encoder_flags_e xer_flags = XER_F_CANONICAL; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + enum jer_encoder_flags_e jer_flags = JER_F; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + + (void)opt_codec_ctx; /* Parameters are not checked on encode yet. */ + + if(!td || !sptr) { + errno = EINVAL; + ASN__ENCODE_FAILED; + } + + switch(syntax) { + case ATS_NONSTANDARD_PLAINTEXT: + if(td->op->print_struct) { + struct callback_count_bytes_key cb_key; + cb_key.callback = callback; + cb_key.callback_key = callback_key; + cb_key.computed_size = 0; + if(td->op->print_struct(td, sptr, 1, callback_count_bytes_cb, + &cb_key) + < 0 + || callback_count_bytes_cb("\n", 1, &cb_key) < 0) { + errno = EBADF; /* Structure has incorrect form. */ + er.encoded = -1; + er.failed_type = td; + er.structure_ptr = sptr; + } else { + er.encoded = cb_key.computed_size; + er.failed_type = 0; + er.structure_ptr = 0; + } + } else { + errno = ENOENT; /* Transfer syntax is not defined for this type. */ + ASN__ENCODE_FAILED; + } + break; + + case ATS_RANDOM: + errno = ENOENT; /* Randomization doesn't make sense on output. */ + ASN__ENCODE_FAILED; + +#if !defined(ASN_DISABLE_BER_SUPPORT) + case ATS_BER: + /* BER is a superset of DER. */ + /* Fall through. */ + case ATS_DER: + if(td->op->der_encoder) { + er = der_encode(td, sptr, callback, callback_key); + if(er.encoded == -1) { + if(er.failed_type && er.failed_type->op->der_encoder) { + errno = EBADF; /* Structure has incorrect form. */ + } else { + errno = ENOENT; /* DER is not defined for this type. */ + } + } + } else { + errno = ENOENT; /* Transfer syntax is not defined for this type. */ + ASN__ENCODE_FAILED; + } + break; + case ATS_CER: + errno = ENOENT; /* Transfer syntax is not defined for any type. */ + ASN__ENCODE_FAILED; +#else + case ATS_BER: + case ATS_DER: + case ATS_CER: + errno = ENOENT; /* BER is not defined. */ + ASN__ENCODE_FAILED; + +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) + case ATS_BASIC_OER: + /* CANONICAL-OER is a superset of BASIC-OER. */ + /* Fall through. */ + case ATS_CANONICAL_OER: + if(td->op->oer_encoder) { + er = oer_encode(td, sptr, callback, callback_key); + if(er.encoded == -1) { + if(er.failed_type && er.failed_type->op->oer_encoder) { + errno = EBADF; /* Structure has incorrect form. */ + } else { + errno = ENOENT; /* OER is not defined for this type. */ + } + } + } else { + errno = ENOENT; /* Transfer syntax is not defined for this type. */ + ASN__ENCODE_FAILED; + } + break; +#else + case ATS_BASIC_OER: + case ATS_CANONICAL_OER: + errno = ENOENT; /* OER is not defined. */ + ASN__ENCODE_FAILED; + break; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) + case ATS_UNALIGNED_BASIC_PER: + /* CANONICAL-UPER is a superset of BASIC-UPER. */ + /* Fall through. */ + case ATS_UNALIGNED_CANONICAL_PER: + if(td->op->uper_encoder) { + er = uper_encode(td, 0, sptr, callback, callback_key); + if(er.encoded == -1) { + if(er.failed_type && er.failed_type->op->uper_encoder) { + errno = EBADF; /* Structure has incorrect form. */ + } else { + errno = ENOENT; /* UPER is not defined for this type. */ + } + } else { + ASN_DEBUG("Complete encoded in %ld bits", (long)er.encoded); + if(er.encoded == 0) { + /* Enforce "Complete Encoding" of X.691 #11.1 */ + if(callback("\0", 1, callback_key) < 0) { + errno = EBADF; + ASN__ENCODE_FAILED; + } + er.encoded = 8; /* Exactly 8 zero bits is added. */ + } + /* Convert bits into bytes */ + er.encoded = (er.encoded + 7) >> 3; + } + } else { + errno = ENOENT; /* Transfer syntax is not defined for this type. */ + ASN__ENCODE_FAILED; + } + break; +#else + case ATS_UNALIGNED_BASIC_PER: + case ATS_UNALIGNED_CANONICAL_PER: + errno = ENOENT; /* UPER is not defined. */ + ASN__ENCODE_FAILED; + break; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + case ATS_ALIGNED_BASIC_PER: + /* CANONICAL-APER is a superset of BASIC-APER. */ + /* Fall through. */ + case ATS_ALIGNED_CANONICAL_PER: + if(td->op->aper_encoder) { + er = aper_encode(td, 0, sptr, callback, callback_key); + if(er.encoded == -1) { + if(er.failed_type && er.failed_type->op->aper_encoder) { + errno = EBADF; /* Structure has incorrect form. */ + } else { + errno = ENOENT; /* APER is not defined for this type. */ + } + } else { + ASN_DEBUG("Complete encoded in %ld bits", (long)er.encoded); + if(er.encoded == 0) { + /* Enforce "Complete Encoding" of X.691 #11.1 */ + if(callback("\0", 1, callback_key) < 0) { + errno = EBADF; + ASN__ENCODE_FAILED; + } + er.encoded = 8; /* Exactly 8 zero bits is added. */ + } + /* Convert bits into bytes */ + er.encoded = (er.encoded + 7) >> 3; + } + } else { + errno = ENOENT; /* Transfer syntax is not defined for this type. */ + ASN__ENCODE_FAILED; + } + break; +#else + case ATS_ALIGNED_BASIC_PER: + case ATS_ALIGNED_CANONICAL_PER: + errno = ENOENT; /* APER is not defined. */ + ASN__ENCODE_FAILED; + break; +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) + case ATS_BASIC_XER: + /* CANONICAL-XER is a superset of BASIC-XER. */ + xer_flags &= ~XER_F_CANONICAL; + xer_flags |= XER_F_BASIC; + /* Fall through. */ + case ATS_CANONICAL_XER: + if(td->op->xer_encoder) { + er = xer_encode(td, sptr, xer_flags, callback, callback_key); + if(er.encoded == -1) { + if(er.failed_type && er.failed_type->op->xer_encoder) { + errno = EBADF; /* Structure has incorrect form. */ + } else { + errno = ENOENT; /* XER is not defined for this type. */ + } + } + } else { + errno = ENOENT; /* Transfer syntax is not defined for this type. */ + ASN__ENCODE_FAILED; + } + break; +#else + case ATS_BASIC_XER: + case ATS_CANONICAL_XER: + errno = ENOENT; /* XER is not defined. */ + ASN__ENCODE_FAILED; + break; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) + case ATS_JER_MINIFIED: + /* Currently JER_F and JER_F_MINIFIED have opposite purposes + * so we just flip the flag. */ + jer_flags &= ~JER_F; + jer_flags |= JER_F_MINIFIED; + /* Fall through. */ + case ATS_JER: + if(td->op->jer_encoder) { + er = jer_encode(td, sptr, jer_flags, callback, callback_key); + if(er.encoded == -1) { + if(er.failed_type && er.failed_type->op->jer_encoder) { + errno = EBADF; /* Structure has incorrect form. */ + } else { + errno = ENOENT; /* JER is not defined for this type. */ + } + } + } else { + errno = ENOENT; /* Transfer syntax is not defined for this type. */ + ASN__ENCODE_FAILED; + } + break; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + default: + errno = ENOENT; + ASN__ENCODE_FAILED; + } + + return er; +} + +asn_dec_rval_t +asn_decode(const asn_codec_ctx_t *opt_codec_ctx, + enum asn_transfer_syntax syntax, const asn_TYPE_descriptor_t *td, + void **sptr, const void *buffer, size_t size) { + if(!td || !td->op || !sptr || (size && !buffer)) { + ASN__DECODE_FAILED; + } + + switch(syntax) { + case ATS_CER: + case ATS_NONSTANDARD_PLAINTEXT: + default: + errno = ENOENT; + ASN__DECODE_FAILED; + + case ATS_RANDOM: +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + if(!td->op->random_fill) { + ASN__DECODE_FAILED; + } else { + if(asn_random_fill(td, sptr, 16000) == 0) { + asn_dec_rval_t ret = {RC_OK, 0}; + return ret; + } else { + ASN__DECODE_FAILED; + } + } + break; +#else + errno = ENOENT; + ASN__DECODE_FAILED; +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + + case ATS_DER: + case ATS_BER: +#if !defined(ASN_DISABLE_BER_SUPPORT) + return ber_decode(opt_codec_ctx, td, sptr, buffer, size); +#else + errno = ENOENT; + ASN__DECODE_FAILED; +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + + case ATS_BASIC_OER: + case ATS_CANONICAL_OER: +#if !defined(ASN_DISABLE_OER_SUPPORT) + return oer_decode(opt_codec_ctx, td, sptr, buffer, size); +#else + errno = ENOENT; + ASN__DECODE_FAILED; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + + case ATS_UNALIGNED_BASIC_PER: + case ATS_UNALIGNED_CANONICAL_PER: +#if !defined(ASN_DISABLE_UPER_SUPPORT) + return uper_decode_complete(opt_codec_ctx, td, sptr, buffer, size); +#else + errno = ENOENT; + ASN__DECODE_FAILED; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ + + case ATS_ALIGNED_BASIC_PER: + case ATS_ALIGNED_CANONICAL_PER: +#if !defined(ASN_DISABLE_APER_SUPPORT) + return aper_decode_complete(opt_codec_ctx, td, sptr, buffer, size); +#else + errno = ENOENT; + ASN__DECODE_FAILED; +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + + case ATS_BASIC_XER: + case ATS_CANONICAL_XER: +#if !defined(ASN_DISABLE_XER_SUPPORT) + return xer_decode(opt_codec_ctx, td, sptr, buffer, size); +#else + errno = ENOENT; + ASN__DECODE_FAILED; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + + case ATS_JER: + case ATS_JER_MINIFIED: +#if !defined(ASN_DISABLE_JER_SUPPORT) + return jer_decode(opt_codec_ctx, td, sptr, buffer, size); +#else + errno = ENOENT; + ASN__DECODE_FAILED; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + } +} + diff --git a/asn.1/generated/asn_application.h b/asn.1/skeleton/asn_application.h similarity index 95% rename from asn.1/generated/asn_application.h rename to asn.1/skeleton/asn_application.h index 3ca9f138..355bc845 100644 --- a/asn.1/generated/asn_application.h +++ b/asn.1/skeleton/asn_application.h @@ -10,6 +10,7 @@ #include "asn_system.h" /* for platform-dependent types */ #include "asn_codecs.h" /* for ASN.1 codecs specifics */ +#include "asn_config.h" #ifdef __cplusplus extern "C" { @@ -24,7 +25,7 @@ enum asn_transfer_syntax { ATS_INVALID = 0, /* Plaintext output (not conforming to any standard), for debugging. */ ATS_NONSTANDARD_PLAINTEXT, - /* Returns a randomly generatede structure. */ + /* Returns a randomly generated structure. */ ATS_RANDOM, /* * X.690: @@ -51,13 +52,22 @@ enum asn_transfer_syntax { */ ATS_UNALIGNED_BASIC_PER, ATS_UNALIGNED_CANONICAL_PER, + ATS_ALIGNED_BASIC_PER, + ATS_ALIGNED_CANONICAL_PER, /* * X.693: * XER: XML Encoding Rules. * CANONICAL-XER is a more strict variant of BASIC-XER. */ ATS_BASIC_XER, - ATS_CANONICAL_XER + ATS_CANONICAL_XER, + /* + * X.697: + * JER: JSON Encoding Rules. + * MINIFIED produces a whitespace-free JSON. + */ + ATS_JER, + ATS_JER_MINIFIED, }; /* diff --git a/asn.1/generated/asn_bit_data.c b/asn.1/skeleton/asn_bit_data.c similarity index 100% rename from asn.1/generated/asn_bit_data.c rename to asn.1/skeleton/asn_bit_data.c diff --git a/asn.1/generated/asn_bit_data.h b/asn.1/skeleton/asn_bit_data.h similarity index 97% rename from asn.1/generated/asn_bit_data.h rename to asn.1/skeleton/asn_bit_data.h index 59de7af5..f14714bb 100644 --- a/asn.1/generated/asn_bit_data.h +++ b/asn.1/skeleton/asn_bit_data.h @@ -36,7 +36,7 @@ asn_bit_data_t *asn_bit_data_new_contiguous(const void *data, size_t size_bits); */ int32_t asn_get_few_bits(asn_bit_data_t *, int get_nbits); -/* Undo the immediately preceeding "get_few_bits" operation */ +/* Undo the immediately preceding "get_few_bits" operation */ void asn_get_undo(asn_bit_data_t *, int get_nbits); /* diff --git a/asn.1/generated/asn_codecs.h b/asn.1/skeleton/asn_codecs.h similarity index 100% rename from asn.1/generated/asn_codecs.h rename to asn.1/skeleton/asn_codecs.h diff --git a/asn.1/skeleton/asn_codecs_prim.c b/asn.1/skeleton/asn_codecs_prim.c new file mode 100644 index 00000000..f3fdbfd2 --- /dev/null +++ b/asn.1/skeleton/asn_codecs_prim.c @@ -0,0 +1,31 @@ +/*- + * Copyright (c) 2003, 2004 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +void +ASN__PRIMITIVE_TYPE_free(const asn_TYPE_descriptor_t *td, void *sptr, + enum asn_struct_free_method method) { + ASN__PRIMITIVE_TYPE_t *st = (ASN__PRIMITIVE_TYPE_t *)sptr; + + if(!td || !sptr) + return; + + ASN_DEBUG("Freeing %s as a primitive type", td->name); + + if(st->buf) + FREEMEM(st->buf); + + switch(method) { + case ASFM_FREE_EVERYTHING: + FREEMEM(sptr); + break; + case ASFM_FREE_UNDERLYING: + break; + case ASFM_FREE_UNDERLYING_AND_RESET: + memset(sptr, 0, sizeof(ASN__PRIMITIVE_TYPE_t)); + break; + } +} diff --git a/asn.1/skeleton/asn_codecs_prim.h b/asn.1/skeleton/asn_codecs_prim.h new file mode 100644 index 00000000..8647ab9f --- /dev/null +++ b/asn.1/skeleton/asn_codecs_prim.h @@ -0,0 +1,82 @@ +/*- + * Copyright (c) 2004-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef ASN_CODECS_PRIM_H +#define ASN_CODECS_PRIM_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct ASN__PRIMITIVE_TYPE_s { + uint8_t *buf; /* Buffer with consecutive primitive encoding bytes */ + size_t size; /* Size of the buffer */ +} ASN__PRIMITIVE_TYPE_t; /* Do not use this type directly! */ + +asn_struct_free_f ASN__PRIMITIVE_TYPE_free; + +#if !defined(ASN_DISABLE_BER_SUPPORT) +ber_type_decoder_f ber_decode_primitive; +der_type_encoder_f der_encode_primitive; +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +/* + * A callback specification for the xer_decode_primitive() function below. + */ +enum xer_pbd_rval { + XPBD_SYSTEM_FAILURE, /* System failure (memory shortage, etc) */ + XPBD_DECODER_LIMIT, /* Hit some decoder limitation or deficiency */ + XPBD_BROKEN_ENCODING, /* Encoding of a primitive body is broken */ + XPBD_NOT_BODY_IGNORE, /* Not a body format, but safe to ignore */ + XPBD_BODY_CONSUMED /* Body is recognized and consumed */ +}; +typedef enum xer_pbd_rval(xer_primitive_body_decoder_f)( + const asn_TYPE_descriptor_t *td, void *struct_ptr, const void *chunk_buf, + size_t chunk_size); + +/* + * Specific function to decode simple primitive types. + * Also see xer_decode_general() in xer_decoder.h + */ +asn_dec_rval_t xer_decode_primitive( + const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *type_descriptor, void **struct_ptr, + size_t struct_size, const char *opt_mname, const void *buf_ptr, size_t size, + xer_primitive_body_decoder_f *prim_body_decoder); +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +/* + * A callback specification for the jer_decode_primitive() function below. + */ +enum jer_pbd_rval { + JPBD_SYSTEM_FAILURE, /* System failure (memory shortage, etc) */ + JPBD_DECODER_LIMIT, /* Hit some decoder limitation or deficiency */ + JPBD_BROKEN_ENCODING, /* Encoding of a primitive body is broken */ + JPBD_NOT_BODY_IGNORE, /* Not a body format, but safe to ignore */ + JPBD_BODY_CONSUMED /* Body is recognized and consumed */ +}; +typedef enum jer_pbd_rval(jer_primitive_body_decoder_f)( + const asn_TYPE_descriptor_t *td, void *struct_ptr, const void *chunk_buf, + size_t chunk_size); + +/* + * Specific function to decode simple primitive types. + * Also see jer_decode_general() in jer_decoder.h + */ +asn_dec_rval_t jer_decode_primitive( + const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *type_descriptor, void **struct_ptr, + size_t struct_size, const void *buf_ptr, size_t size, + jer_primitive_body_decoder_f *prim_body_decoder); +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#ifdef __cplusplus +} +#endif + +#endif /* ASN_CODECS_PRIM_H */ diff --git a/asn.1/skeleton/asn_codecs_prim_ber.c b/asn.1/skeleton/asn_codecs_prim_ber.c new file mode 100644 index 00000000..c5c2cef6 --- /dev/null +++ b/asn.1/skeleton/asn_codecs_prim_ber.c @@ -0,0 +1,115 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Decode an always-primitive type. + */ +asn_dec_rval_t +ber_decode_primitive(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const void *buf_ptr, size_t size, int tag_mode) { + ASN__PRIMITIVE_TYPE_t *st = (ASN__PRIMITIVE_TYPE_t *)*sptr; + asn_dec_rval_t rval; + ber_tlv_len_t length = 0; /* =0 to avoid [incorrect] warning. */ + + /* + * If the structure is not there, allocate it. + */ + if(st == NULL) { + st = (ASN__PRIMITIVE_TYPE_t *)CALLOC(1, sizeof(*st)); + if(st == NULL) ASN__DECODE_FAILED; + *sptr = (void *)st; + } + + ASN_DEBUG("Decoding %s as plain primitive (tm=%d)", + td->name, tag_mode); + + /* + * Check tags and extract value length. + */ + rval = ber_check_tags(opt_codec_ctx, td, 0, buf_ptr, size, + tag_mode, 0, &length, 0); + if(rval.code != RC_OK) + return rval; + + ASN_DEBUG("%s length is %d bytes", td->name, (int)length); + + /* + * Make sure we have this length. + */ + buf_ptr = ((const char *)buf_ptr) + rval.consumed; + size -= rval.consumed; + if(length > (ber_tlv_len_t)size) { + rval.code = RC_WMORE; + rval.consumed = 0; + return rval; + } + + st->size = (int)length; + /* The following better be optimized away. */ + if(sizeof(st->size) != sizeof(length) + && (ber_tlv_len_t)st->size != length) { + st->size = 0; + ASN__DECODE_FAILED; + } + + st->buf = (uint8_t *)MALLOC(length + 1); + if(!st->buf) { + st->size = 0; + ASN__DECODE_FAILED; + } + + memcpy(st->buf, buf_ptr, length); + st->buf[length] = '\0'; /* Just in case */ + + rval.code = RC_OK; + rval.consumed += length; + + ASN_DEBUG("Took %ld/%ld bytes to encode %s", + (long)rval.consumed, + (long)length, td->name); + + return rval; +} + +/* + * Encode an always-primitive type using DER. + */ +asn_enc_rval_t +der_encode_primitive(const asn_TYPE_descriptor_t *td, const void *sptr, + int tag_mode, ber_tlv_tag_t tag, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_enc_rval_t erval = {0,0,0}; + const ASN__PRIMITIVE_TYPE_t *st = (const ASN__PRIMITIVE_TYPE_t *)sptr; + + ASN_DEBUG("%s %s as a primitive type (tm=%d)", + cb?"Encoding":"Estimating", td->name, tag_mode); + + erval.encoded = der_write_tags(td, st->size, tag_mode, 0, tag, + cb, app_key); + ASN_DEBUG("%s wrote tags %d", td->name, (int)erval.encoded); + if(erval.encoded == -1) { + erval.failed_type = td; + erval.structure_ptr = sptr; + return erval; + } + + if(cb && st->buf) { + if(cb(st->buf, st->size, app_key) < 0) { + erval.encoded = -1; + erval.failed_type = td; + erval.structure_ptr = sptr; + return erval; + } + } else { + assert(st->buf || st->size == 0); + } + + erval.encoded += st->size; + ASN__ENCODED_OK(erval); +} diff --git a/asn.1/skeleton/asn_codecs_prim_jer.c b/asn.1/skeleton/asn_codecs_prim_jer.c new file mode 100644 index 00000000..55e121b3 --- /dev/null +++ b/asn.1/skeleton/asn_codecs_prim_jer.c @@ -0,0 +1,183 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Local internal type passed around as an argument. + */ +struct jdp_arg_s { + const asn_TYPE_descriptor_t *type_descriptor; + void *struct_key; + jer_primitive_body_decoder_f *prim_body_decoder; + int decoded_something; + int want_more; +}; + +/* + * Since some kinds of primitive values can be encoded using value-specific + * tags (, , etc), the primitive decoder must + * be supplied with such tags to parse them as needed. + */ +static int +jer_decode__unexpected_tag(void *key, const void *chunk_buf, size_t chunk_size) { + struct jdp_arg_s *arg = (struct jdp_arg_s *)key; + enum jer_pbd_rval bret; + + /* + * The chunk_buf is guaranteed to start at '<'. + */ + assert(chunk_size && ((const char *)chunk_buf)[0] == 0x3c); + + /* + * Decoding was performed once already. Prohibit doing it again. + */ + if(arg->decoded_something) + return -1; + + bret = arg->prim_body_decoder(arg->type_descriptor, + arg->struct_key, chunk_buf, + chunk_size); + switch(bret) { + case JPBD_SYSTEM_FAILURE: + case JPBD_DECODER_LIMIT: + case JPBD_BROKEN_ENCODING: + break; + case JPBD_BODY_CONSUMED: + /* Tag decoded successfully */ + arg->decoded_something = 1; + /* Fall through */ + case JPBD_NOT_BODY_IGNORE: /* Safe to proceed further */ + return 0; + } + + return -1; +} + +static ssize_t +jer_decode__primitive_body(void *key, const void *chunk_buf, size_t chunk_size, int have_more) { + struct jdp_arg_s *arg = (struct jdp_arg_s *)key; + enum jer_pbd_rval bret; + size_t lead_wsp_size; + + if(arg->decoded_something) { + if(jer_whitespace_span(chunk_buf, chunk_size) == chunk_size) { + /* + * Example: + * "123 " + * ^- chunk_buf position. + */ + return chunk_size; + } + /* + * Decoding was done once already. Prohibit doing it again. + */ + return -1; + } + + if(!have_more) { + /* + * If we've received something like "1", we can't really + * tell whether it is really `1` or `123`, until we know + * that there is no more data coming. + * The have_more argument will be set to 1 once something + * like this is available to the caller of this callback: + * "1want_more = 1; + return -1; + } + + lead_wsp_size = jer_whitespace_span(chunk_buf, chunk_size); + chunk_buf = (chunk_buf == NULL)? NULL : ((const char *)chunk_buf + lead_wsp_size); + chunk_size -= lead_wsp_size; + + bret = arg->prim_body_decoder(arg->type_descriptor, + arg->struct_key, chunk_buf, + chunk_size); + switch(bret) { + case JPBD_SYSTEM_FAILURE: + case JPBD_DECODER_LIMIT: + case JPBD_BROKEN_ENCODING: + break; + case JPBD_BODY_CONSUMED: + /* Tag decoded successfully */ + arg->decoded_something = 1; + /* Fall through */ + case JPBD_NOT_BODY_IGNORE: /* Safe to proceed further */ + return lead_wsp_size + chunk_size; + } + + return -1; +} + +asn_dec_rval_t +jer_decode_primitive(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + size_t struct_size, + const void *buf_ptr, size_t size, + jer_primitive_body_decoder_f *prim_body_decoder) { + asn_struct_ctx_t s_ctx; + struct jdp_arg_s s_arg; + asn_dec_rval_t rc; + + /* + * Create the structure if does not exist. + */ + if(!*sptr) { + *sptr = CALLOC(1, struct_size); + if(!*sptr) ASN__DECODE_FAILED; + } + + memset(&s_ctx, 0, sizeof(s_ctx)); + s_arg.type_descriptor = td; + s_arg.struct_key = *sptr; + s_arg.prim_body_decoder = prim_body_decoder; + s_arg.decoded_something = 0; + s_arg.want_more = 0; + + rc = jer_decode_general(opt_codec_ctx, &s_ctx, &s_arg, + buf_ptr, size, + jer_decode__unexpected_tag, + jer_decode__primitive_body); + switch(rc.code) { + case RC_OK: + if(!s_arg.decoded_something) { + char ch; + ASN_DEBUG("Primitive body is not recognized, " + "supplying empty one"); + /* + * Decoding opportunity has come and gone. + * Where's the result? + * Try to feed with empty body, see if it eats it. + */ + if(prim_body_decoder(s_arg.type_descriptor, + s_arg.struct_key, &ch, 0) + != JPBD_BODY_CONSUMED) { + /* + * This decoder does not like empty stuff. + */ + ASN__DECODE_FAILED; + } + } + break; + case RC_WMORE: + /* + * Redo the whole thing later. + * We don't have a context to save intermediate parsing state. + */ + rc.consumed = 0; + break; + case RC_FAIL: + rc.consumed = 0; + if(s_arg.want_more) + rc.code = RC_WMORE; + else + ASN__DECODE_FAILED; + break; + } + return rc; +} diff --git a/asn.1/skeleton/asn_codecs_prim_xer.c b/asn.1/skeleton/asn_codecs_prim_xer.c new file mode 100644 index 00000000..70c91bc2 --- /dev/null +++ b/asn.1/skeleton/asn_codecs_prim_xer.c @@ -0,0 +1,184 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Local internal type passed around as an argument. + */ +struct xdp_arg_s { + const asn_TYPE_descriptor_t *type_descriptor; + void *struct_key; + xer_primitive_body_decoder_f *prim_body_decoder; + int decoded_something; + int want_more; +}; + +/* + * Since some kinds of primitive values can be encoded using value-specific + * tags (, , etc), the primitive decoder must + * be supplied with such tags to parse them as needed. + */ +static int +xer_decode__unexpected_tag(void *key, const void *chunk_buf, size_t chunk_size) { + struct xdp_arg_s *arg = (struct xdp_arg_s *)key; + enum xer_pbd_rval bret; + + /* + * The chunk_buf is guaranteed to start at '<'. + */ + assert(chunk_size && ((const char *)chunk_buf)[0] == 0x3c); + + /* + * Decoding was performed once already. Prohibit doing it again. + */ + if(arg->decoded_something) + return -1; + + bret = arg->prim_body_decoder(arg->type_descriptor, + arg->struct_key, chunk_buf, + chunk_size); + switch(bret) { + case XPBD_SYSTEM_FAILURE: + case XPBD_DECODER_LIMIT: + case XPBD_BROKEN_ENCODING: + break; + case XPBD_BODY_CONSUMED: + /* Tag decoded successfully */ + arg->decoded_something = 1; + /* Fall through */ + case XPBD_NOT_BODY_IGNORE: /* Safe to proceed further */ + return 0; + } + + return -1; +} + +static ssize_t +xer_decode__primitive_body(void *key, const void *chunk_buf, size_t chunk_size, int have_more) { + struct xdp_arg_s *arg = (struct xdp_arg_s *)key; + enum xer_pbd_rval bret; + size_t lead_wsp_size; + + if(arg->decoded_something) { + if(xer_whitespace_span(chunk_buf, chunk_size) == chunk_size) { + /* + * Example: + * "123 " + * ^- chunk_buf position. + */ + return chunk_size; + } + /* + * Decoding was done once already. Prohibit doing it again. + */ + return -1; + } + + if(!have_more) { + /* + * If we've received something like "1", we can't really + * tell whether it is really `1` or `123`, until we know + * that there is no more data coming. + * The have_more argument will be set to 1 once something + * like this is available to the caller of this callback: + * "1want_more = 1; + return -1; + } + + lead_wsp_size = xer_whitespace_span(chunk_buf, chunk_size); + chunk_buf = (chunk_buf == NULL)? NULL : ((const char *)chunk_buf + lead_wsp_size); + chunk_size -= lead_wsp_size; + + bret = arg->prim_body_decoder(arg->type_descriptor, + arg->struct_key, chunk_buf, + chunk_size); + switch(bret) { + case XPBD_SYSTEM_FAILURE: + case XPBD_DECODER_LIMIT: + case XPBD_BROKEN_ENCODING: + break; + case XPBD_BODY_CONSUMED: + /* Tag decoded successfully */ + arg->decoded_something = 1; + /* Fall through */ + case XPBD_NOT_BODY_IGNORE: /* Safe to proceed further */ + return lead_wsp_size + chunk_size; + } + + return -1; +} + +asn_dec_rval_t +xer_decode_primitive(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + size_t struct_size, const char *opt_mname, + const void *buf_ptr, size_t size, + xer_primitive_body_decoder_f *prim_body_decoder) { + const char *xml_tag = opt_mname ? opt_mname : td->xml_tag; + asn_struct_ctx_t s_ctx; + struct xdp_arg_s s_arg; + asn_dec_rval_t rc; + + /* + * Create the structure if does not exist. + */ + if(!*sptr) { + *sptr = CALLOC(1, struct_size); + if(!*sptr) ASN__DECODE_FAILED; + } + + memset(&s_ctx, 0, sizeof(s_ctx)); + s_arg.type_descriptor = td; + s_arg.struct_key = *sptr; + s_arg.prim_body_decoder = prim_body_decoder; + s_arg.decoded_something = 0; + s_arg.want_more = 0; + + rc = xer_decode_general(opt_codec_ctx, &s_ctx, &s_arg, + xml_tag, buf_ptr, size, + xer_decode__unexpected_tag, + xer_decode__primitive_body); + switch(rc.code) { + case RC_OK: + if(!s_arg.decoded_something) { + char ch; + ASN_DEBUG("Primitive body is not recognized, " + "supplying empty one"); + /* + * Decoding opportunity has come and gone. + * Where's the result? + * Try to feed with empty body, see if it eats it. + */ + if(prim_body_decoder(s_arg.type_descriptor, + s_arg.struct_key, &ch, 0) + != XPBD_BODY_CONSUMED) { + /* + * This decoder does not like empty stuff. + */ + ASN__DECODE_FAILED; + } + } + break; + case RC_WMORE: + /* + * Redo the whole thing later. + * We don't have a context to save intermediate parsing state. + */ + rc.consumed = 0; + break; + case RC_FAIL: + rc.consumed = 0; + if(s_arg.want_more) + rc.code = RC_WMORE; + else + ASN__DECODE_FAILED; + break; + } + return rc; +} diff --git a/asn.1/skeleton/asn_config.h b/asn.1/skeleton/asn_config.h new file mode 100644 index 00000000..3c2bc247 --- /dev/null +++ b/asn.1/skeleton/asn_config.h @@ -0,0 +1 @@ +// An empty stub for an automatically generated file. Don't edit manually! diff --git a/asn.1/generated/asn_internal.c b/asn.1/skeleton/asn_internal.c similarity index 92% rename from asn.1/generated/asn_internal.c rename to asn.1/skeleton/asn_internal.c index 91e537c4..1b282661 100644 --- a/asn.1/generated/asn_internal.c +++ b/asn.1/skeleton/asn_internal.c @@ -14,6 +14,7 @@ asn__format_to_callback(int (*cb)(const void *, size_t, void *key), void *key, va_start(args, fmt); wrote = vsnprintf(buf, buf_size, fmt, args); + va_end(args); if(wrote < (ssize_t)buf_size) { if(wrote < 0) { if(buf != scratch) FREEMEM(buf); @@ -25,7 +26,9 @@ asn__format_to_callback(int (*cb)(const void *, size_t, void *key), void *key, buf_size <<= 1; if(buf == scratch) { buf = MALLOC(buf_size); - if(!buf) return -1; + if(!buf) { + return -1; + } } else { void *p = REALLOC(buf, buf_size); if(!p) { diff --git a/asn.1/generated/asn_internal.h b/asn.1/skeleton/asn_internal.h similarity index 82% rename from asn.1/generated/asn_internal.h rename to asn.1/skeleton/asn_internal.h index 3e0cafa3..d6ce6198 100644 --- a/asn.1/generated/asn_internal.h +++ b/asn.1/skeleton/asn_internal.h @@ -7,7 +7,9 @@ */ #ifndef ASN_INTERNAL_H #define ASN_INTERNAL_H +#ifndef __EXTENSIONS__ #define __EXTENSIONS__ /* for Sun */ +#endif #include "asn_application.h" /* Application-visible API */ @@ -19,6 +21,15 @@ extern "C" { #endif +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#include +#include +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#include +#include +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + /* Environment version might be used to avoid running with the old library */ #define ASN1C_ENVIRONMENT_VERSION 923 /* Compile-time version */ int get_asn1c_environment_version(void); /* Run-time version */ @@ -49,7 +60,7 @@ int get_asn1c_environment_version(void); /* Run-time version */ #else /* !ASN_THREAD_SAFE */ #undef ASN_DEBUG_INDENT_ADD #undef asn_debug_indent -extern int asn_debug_indent; +int asn_debug_indent; #define ASN_DEBUG_INDENT_ADD(i) do { asn_debug_indent += i; } while(0) #endif /* ASN_THREAD_SAFE */ #define ASN_DEBUG(fmt, args...) do { \ @@ -125,7 +136,31 @@ asn__format_to_callback( /* * Check stack against overflow, if limit is set. */ + +/* Since GCC 13, AddressSanitizer started defaulting to +* ASAN_OPTIONS="detect_stack_use_after_return=1", which makes this check +* fail due to apparently jumping stack pointers. +* Hence, disable this check if building with ASan, as documented in: +* GCC: https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html +* Clang: https://clang.llvm.org/docs/AddressSanitizer.html#conditional-compilation-with-has-feature-address-sanitizer +*/ +#if defined(__SANITIZE_ADDRESS__) + #define ASN__SANITIZE_ENABLED 1 +#elif defined(__has_feature) +#if __has_feature(address_sanitizer) + #define ASN__SANITIZE_ENABLED 1 +#endif +#endif + #define ASN__DEFAULT_STACK_MAX (30000) + +#if defined(ASN__SANITIZE_ENABLED) || defined(ASN_DISABLE_STACK_OVERFLOW_CHECK) +static int CC_NOTUSED +ASN__STACK_OVERFLOW_CHECK(const asn_codec_ctx_t *ctx) { + (void)ctx; + return 0; +} +#else static int CC_NOTUSED ASN__STACK_OVERFLOW_CHECK(const asn_codec_ctx_t *ctx) { if(ctx && ctx->max_stack_size) { @@ -143,6 +178,7 @@ ASN__STACK_OVERFLOW_CHECK(const asn_codec_ctx_t *ctx) { } return 0; } +#endif #ifdef __cplusplus } diff --git a/asn.1/generated/asn_ioc.h b/asn.1/skeleton/asn_ioc.h similarity index 97% rename from asn.1/generated/asn_ioc.h rename to asn.1/skeleton/asn_ioc.h index d2fe3659..7de210ee 100644 --- a/asn.1/generated/asn_ioc.h +++ b/asn.1/skeleton/asn_ioc.h @@ -28,6 +28,7 @@ typedef struct asn_ioc_set_s { typedef struct asn_ioc_cell_s { const char *field_name; /* Is equal to corresponding column_name */ enum { + aioc__undefined = 0, aioc__value, aioc__type, aioc__open_type, diff --git a/asn.1/generated/asn_random_fill.c b/asn.1/skeleton/asn_random_fill.c similarity index 77% rename from asn.1/generated/asn_random_fill.c rename to asn.1/skeleton/asn_random_fill.c index 819cf700..4d14cbfd 100644 --- a/asn.1/generated/asn_random_fill.c +++ b/asn.1/skeleton/asn_random_fill.c @@ -6,6 +6,7 @@ #include #include #include +#include int asn_random_fill(const struct asn_TYPE_descriptor_s *td, void **struct_ptr, @@ -42,13 +43,23 @@ asn_random_between(intmax_t lb, intmax_t rb) { uintmax_t range = asn__intmax_range(lb, rb); uintmax_t value = 0; uintmax_t got_entropy = 0; + (void)intmax_max; + int max = 0xffffff; - assert(RAND_MAX > 0xffffff); /* Seen 7ffffffd! */ +#ifdef __WIN32__ + max = RAND_MAX-1; +#endif + + assert(RAND_MAX > max); /* Seen 7ffffffd! */ assert(range < intmax_max); for(; got_entropy < range;) { - got_entropy = (got_entropy << 24) | 0xffffff; - value = (value << 24) | (random() % 0xffffff); + got_entropy = (got_entropy << 24) | max; +#ifdef HAVE_RANDOM + value = (value << 24) | (random() % max); +#else + value = (value << 24) | (rand() % max); +#endif } return lb + (intmax_t)(value % (range + 1)); diff --git a/asn.1/generated/asn_random_fill.h b/asn.1/skeleton/asn_random_fill.h similarity index 100% rename from asn.1/generated/asn_random_fill.h rename to asn.1/skeleton/asn_random_fill.h diff --git a/asn.1/generated/asn_system.h b/asn.1/skeleton/asn_system.h similarity index 77% rename from asn.1/generated/asn_system.h rename to asn.1/skeleton/asn_system.h index fa8cf116..194f96a5 100644 --- a/asn.1/generated/asn_system.h +++ b/asn.1/skeleton/asn_system.h @@ -27,12 +27,15 @@ #include /* For LONG_MAX */ #include /* For va_start */ #include /* for offsetof and ptrdiff_t */ +#include /* for PRIdMAX */ #ifdef _WIN32 #include +#ifndef __MINGW32__ #define snprintf _snprintf #define vsnprintf _vsnprintf +#endif /* To avoid linking with ws2_32.lib, here's the definition of ntohl() */ #define sys_ntohl(l) ((((l) << 24) & 0xff000000) \ @@ -75,10 +78,24 @@ typedef unsigned int uint32_t; #else /* !defined(__vxworks) */ #include /* C99 specifies this file */ +#ifdef HAVE_ARPA_INET_H +#include /* for ntohl() */ +#define sys_ntohl(foo) ntohl(foo) +#else /* !_HAVE_ARPA_INET_H */ +#ifdef HAVE_NETINET_IN_H #include /* for ntohl() */ #define sys_ntohl(foo) ntohl(foo) +#else /* !_HAVE_NETINET_IN_H */ +/* Here's the definition of ntohl() */ +#define sys_ntohl(l) ((((l) << 24) & 0xff000000) \ + | (((l) << 8) & 0xff0000) \ + | (((l) >> 8) & 0xff00) \ + | ((l >> 24) & 0xff)) +#endif /* HAVE_NETINET_IN_H */ +#endif /* HAVE_ARPA_INET_H */ #endif /* defined(__vxworks) */ + #endif /* _WIN32 */ #if __GNUC__ >= 3 || defined(__clang__) @@ -86,11 +103,25 @@ typedef unsigned int uint32_t; #else #define CC_ATTRIBUTE(attr) #endif -#define CC_PRINTFLIKE(fmt, var) CC_ATTRIBUTE(format(printf, fmt, var)) +#if defined(__GNUC__) && ((__GNUC__ == 4 && __GNUC_MINOR__>= 4) || __GNUC__ > 4) +#define CC_PRINTFLIKE(fmt, var) CC_ATTRIBUTE(format(gnu_printf, fmt, var)) +#elif defined(__GNUC__) +#if defined(ANDROID) +#define CC_PRINTFLIKE(fmt, var) CC_ATTRIBUTE(__format__(__printf__, fmt, var)) +#else +#define CC_PRINTFLIKE(fmt, var) CC_ATTRIBUTE(format(printf, fmt, var)) +#endif +#else +#define CC_PRINTFLIKE(fmt, var) +#endif #define CC_NOTUSED CC_ATTRIBUTE(unused) #ifndef CC_ATTR_NO_SANITIZE +#if __GNUC__ < 8 +#define CC_ATTR_NO_SANITIZE(what) +#else #define CC_ATTR_NO_SANITIZE(what) CC_ATTRIBUTE(no_sanitize(what)) #endif +#endif /* Figure out if thread safety is requested */ #if !defined(ASN_THREAD_SAFE) && (defined(THREAD_SAFE) || defined(_REENTRANT)) @@ -135,9 +166,13 @@ typedef unsigned int uint32_t; #define ASN_PRI_SSIZE "zd" #define ASN_PRIuMAX PRIuMAX #define ASN_PRIdMAX PRIdMAX +#define ASN_PRIu64 PRIu64 +#define ASN_PRId64 PRId64 #else #define ASN_PRI_SIZE "lu" #define ASN_PRI_SSIZE "ld" +#define ASN_PRIu64 "llu" +#define ASN_PRId64 "lld" #if LLONG_MAX > LONG_MAX #define ASN_PRIuMAX "llu" #define ASN_PRIdMAX "lld" diff --git a/asn.1/generated/ber_decoder.c b/asn.1/skeleton/ber_decoder.c similarity index 100% rename from asn.1/generated/ber_decoder.c rename to asn.1/skeleton/ber_decoder.c diff --git a/asn.1/generated/ber_decoder.h b/asn.1/skeleton/ber_decoder.h similarity index 100% rename from asn.1/generated/ber_decoder.h rename to asn.1/skeleton/ber_decoder.h diff --git a/asn.1/generated/ber_tlv_length.c b/asn.1/skeleton/ber_tlv_length.c similarity index 99% rename from asn.1/generated/ber_tlv_length.c rename to asn.1/skeleton/ber_tlv_length.c index cfd46723..0a0deec1 100644 --- a/asn.1/generated/ber_tlv_length.c +++ b/asn.1/skeleton/ber_tlv_length.c @@ -123,7 +123,7 @@ ber_skip_length(const asn_codec_ctx_t *opt_codec_ctx, ptr = ((const char *)ptr) + tl + ll; size -= tl + ll; - } + } /* UNREACHABLE */ } diff --git a/asn.1/generated/ber_tlv_length.h b/asn.1/skeleton/ber_tlv_length.h similarity index 100% rename from asn.1/generated/ber_tlv_length.h rename to asn.1/skeleton/ber_tlv_length.h diff --git a/asn.1/generated/ber_tlv_tag.c b/asn.1/skeleton/ber_tlv_tag.c similarity index 98% rename from asn.1/generated/ber_tlv_tag.c rename to asn.1/skeleton/ber_tlv_tag.c index 4a7d732f..64ec14f0 100644 --- a/asn.1/generated/ber_tlv_tag.c +++ b/asn.1/skeleton/ber_tlv_tag.c @@ -42,7 +42,7 @@ ber_fetch_tag(const void *ptr, size_t size, ber_tlv_tag_t *tag_r) { */ if(val >> ((8 * sizeof(val)) - 9)) { /* - * We would not be able to accomodate + * We would not be able to accommodate * any more tag bits. */ return -1; diff --git a/asn.1/generated/ber_tlv_tag.h b/asn.1/skeleton/ber_tlv_tag.h similarity index 100% rename from asn.1/generated/ber_tlv_tag.h rename to asn.1/skeleton/ber_tlv_tag.h diff --git a/asn.1/skeleton/constr_CHOICE.c b/asn.1/skeleton/constr_CHOICE.c new file mode 100644 index 00000000..2a20583a --- /dev/null +++ b/asn.1/skeleton/constr_CHOICE.c @@ -0,0 +1,415 @@ +/* + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_TYPE_operation_t asn_OP_CHOICE = { + CHOICE_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + CHOICE_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + CHOICE_compare, + CHOICE_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + CHOICE_decode_ber, + CHOICE_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + CHOICE_decode_xer, + CHOICE_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + CHOICE_decode_jer, + CHOICE_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + CHOICE_decode_oer, + CHOICE_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + CHOICE_decode_uper, + CHOICE_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + CHOICE_decode_aper, + CHOICE_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + CHOICE_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + CHOICE_outmost_tag +}; + +ber_tlv_tag_t +CHOICE_outmost_tag(const asn_TYPE_descriptor_t *td, const void *ptr, int tag_mode, ber_tlv_tag_t tag) { + const asn_CHOICE_specifics_t *specs = (const asn_CHOICE_specifics_t *)td->specifics; + unsigned present; + + assert(tag_mode == 0); (void)tag_mode; + assert(tag == 0); (void)tag; + + /* + * Figure out which CHOICE element is encoded. + */ + present = _fetch_present_idx(ptr, specs->pres_offset, specs->pres_size); + + if(present > 0 && present <= td->elements_count) { + const asn_TYPE_member_t *elm = &td->elements[present-1]; + const void *memb_ptr; + + if(elm->flags & ATF_POINTER) { + memb_ptr = *(const void * const *) + ((const char *)ptr + elm->memb_offset); + } else { + memb_ptr = (const void *) + ((const char *)ptr + elm->memb_offset); + } + + return asn_TYPE_outmost_tag(elm->type, memb_ptr, + elm->tag_mode, elm->tag); + } else { + return (ber_tlv_tag_t)-1; + } +} + +/* + * See the definitions. + */ +static const void *_get_member_ptr(const asn_TYPE_descriptor_t *, + const void *sptr, asn_TYPE_member_t **elm, + unsigned *present); + +int +CHOICE_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const asn_CHOICE_specifics_t *specs = + (const asn_CHOICE_specifics_t *)td->specifics; + unsigned present; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* + * Figure out which CHOICE element is encoded. + */ + present = _fetch_present_idx(sptr, specs->pres_offset,specs->pres_size); + if(present > 0 && present <= td->elements_count) { + asn_TYPE_member_t *elm = &td->elements[present-1]; + const void *memb_ptr; + + if(elm->flags & ATF_POINTER) { + memb_ptr = *(const void * const *)((const char *)sptr + elm->memb_offset); + if(!memb_ptr) { + if(elm->optional) + return 0; + ASN__CTFAIL(app_key, td, sptr, + "%s: mandatory CHOICE element %s absent (%s:%d)", + td->name, elm->name, __FILE__, __LINE__); + return -1; + } + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + } + + if(elm->encoding_constraints.general_constraints) { + return elm->encoding_constraints.general_constraints(elm->type, memb_ptr, + ctfailcb, app_key); + } else { + return elm->type->encoding_constraints.general_constraints(elm->type, + memb_ptr, ctfailcb, app_key); + } + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: no CHOICE element given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +void +CHOICE_free(const asn_TYPE_descriptor_t *td, void *ptr, + enum asn_struct_free_method method) { + const asn_CHOICE_specifics_t *specs; + unsigned present; + + if(!td || !ptr) + return; + + specs = (const asn_CHOICE_specifics_t *)td->specifics; + + ASN_DEBUG("Freeing %s as CHOICE", td->name); + + /* + * Figure out which CHOICE element is encoded. + */ + present = _fetch_present_idx(ptr, specs->pres_offset, specs->pres_size); + + /* + * Free that element. + */ + if(present > 0 && present <= td->elements_count) { + asn_TYPE_member_t *elm = &td->elements[present-1]; + void *memb_ptr; + + if(elm->flags & ATF_POINTER) { + memb_ptr = *(void **)((char *)ptr + elm->memb_offset); + if(memb_ptr) + ASN_STRUCT_FREE(*elm->type, memb_ptr); + } else { + memb_ptr = (void *)((char *)ptr + elm->memb_offset); + ASN_STRUCT_FREE_CONTENTS_ONLY(*elm->type, memb_ptr); + } + } + + switch(method) { + case ASFM_FREE_EVERYTHING: + FREEMEM(ptr); + break; + case ASFM_FREE_UNDERLYING: + break; + case ASFM_FREE_UNDERLYING_AND_RESET: + memset(ptr, 0, specs->struct_size); + break; + } +} + + +/* + * The following functions functions offer protection against -fshort-enums, + * compatible with little- and big-endian machines. + * If assertion is triggered, either disable -fshort-enums, or add an entry + * here with the ->pres_size of your target stracture. + * Unless the target structure is packed, the ".present" member + * is guaranteed to be aligned properly. ASN.1 compiler itself does not + * produce packed code. + */ +unsigned +_fetch_present_idx(const void *struct_ptr, unsigned pres_offset, + unsigned pres_size) { + const void *present_ptr; + unsigned present; + + present_ptr = ((const char *)struct_ptr) + pres_offset; + + switch(pres_size) { + case sizeof(int): present = *(const unsigned int *)present_ptr; break; + case sizeof(short): present = *(const unsigned short *)present_ptr; break; + case sizeof(char): present = *(const unsigned char *)present_ptr; break; + default: + /* ANSI C mandates enum to be equivalent to integer */ + assert(pres_size != sizeof(int)); + return 0; /* If not aborted, pass back safe value */ + } + + return present; +} + +void +_set_present_idx(void *struct_ptr, unsigned pres_offset, unsigned pres_size, + unsigned present) { + void *present_ptr; + present_ptr = ((char *)struct_ptr) + pres_offset; + + switch(pres_size) { + case sizeof(int): *(unsigned int *)present_ptr = present; break; + case sizeof(short): *(unsigned short *)present_ptr = present; break; + case sizeof(char): *(unsigned char *)present_ptr = present; break; + default: + /* ANSI C mandates enum to be equivalent to integer */ + assert(pres_size != sizeof(int)); + } +} + +static const void * +_get_member_ptr(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_TYPE_member_t **elm_ptr, unsigned *present_out) { + const asn_CHOICE_specifics_t *specs = + (const asn_CHOICE_specifics_t *)td->specifics; + unsigned present; + + if(!sptr) { + *elm_ptr = NULL; + *present_out = 0; + return NULL; + } + + /* + * Figure out which CHOICE element is encoded. + */ + present = _fetch_present_idx(sptr, specs->pres_offset, specs->pres_size); + *present_out = present; + + /* + * The presence index is intentionally 1-based to avoid + * treating zeroed structure as a valid one. + */ + if(present > 0 && present <= td->elements_count) { + asn_TYPE_member_t *const elm = &td->elements[present - 1]; + const void *memb_ptr; + + if(elm->flags & ATF_POINTER) { + memb_ptr = + *(const void *const *)((const char *)sptr + elm->memb_offset); + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + } + *elm_ptr = elm; + return memb_ptr; + } else { + *elm_ptr = NULL; + return NULL; + } + +} + +int +CHOICE_compare(const asn_TYPE_descriptor_t *td, const void *aptr, const void *bptr) { + asn_TYPE_member_t *aelm; + asn_TYPE_member_t *belm; + unsigned apresent = 0; + unsigned bpresent = 0; + const void *amember = _get_member_ptr(td, aptr, &aelm, &apresent); + const void *bmember = _get_member_ptr(td, bptr, &belm, &bpresent); + + if(amember && bmember) { + if(apresent == bpresent) { + assert(aelm == belm); + return aelm->type->op->compare_struct(aelm->type, amember, bmember); + } else if(apresent < bpresent) { + return -1; + } else { + return 1; + } + } else if(!amember) { + return -1; + } else { + return 1; + } +} + +int +CHOICE_copy(const asn_TYPE_descriptor_t *td, void **aptr, const void *bptr) { + if(!td) return -1; + + void *st = *aptr; + const asn_CHOICE_specifics_t *specs = + (const asn_CHOICE_specifics_t *)td->specifics; + const asn_TYPE_member_t *elm; /* CHOICE's element */ + int present; + int ret; + void *amemb; + void **amembp; + const void *bmemb; + + if(!bptr) { + if(st) { + ASN_STRUCT_FREE(*td, st); + *aptr = NULL; + } + return 0; + } + + if(!st) { + st = *aptr = CALLOC(1, specs->struct_size); + if(!st) return -1; + } + + present = _fetch_present_idx(bptr, + specs->pres_offset, specs->pres_size); + + if(present <= 0 && (unsigned)present > td->elements_count) return -1; + --present; + + elm = &td->elements[present]; + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + amembp = (void **)((char *)st + elm->memb_offset); + bmemb = *(const void* const*)((const char*)bptr + elm->memb_offset); + } else { + amemb = (char *)st + elm->memb_offset; + amembp = &amemb; + bmemb = (const void*)((const char*)bptr + elm->memb_offset); + } + ret = elm->type->op->copy_struct(elm->type, amembp, bmemb); + if (ret != 0) return ret; + + _set_present_idx(st, + specs->pres_offset, + specs->pres_size, present + 1); + + return 0; +} + +/* + * Return the 1-based choice variant presence index. + * Returns 0 in case of error. + */ +unsigned +CHOICE_variant_get_presence(const asn_TYPE_descriptor_t *td, const void *sptr) { + const asn_CHOICE_specifics_t *specs = + (const asn_CHOICE_specifics_t *)td->specifics; + return _fetch_present_idx(sptr, specs->pres_offset, specs->pres_size); +} + +/* + * Sets or resets the 1-based choice variant presence index. + * In case a previous index is not zero, the currently selected structure + * member is freed and zeroed-out first. + * Returns 0 on success and -1 on error. + */ +int +CHOICE_variant_set_presence(const asn_TYPE_descriptor_t *td, void *sptr, + unsigned present) { + const asn_CHOICE_specifics_t *specs = + (const asn_CHOICE_specifics_t *)td->specifics; + unsigned old_present; + + if(!sptr) { + return -1; + } + + if(present > td->elements_count) + return -1; + + old_present = + _fetch_present_idx(sptr, specs->pres_offset, specs->pres_size); + if(present == old_present) + return 0; + + if(old_present != 0) { + assert(old_present <= td->elements_count); + ASN_STRUCT_RESET(*td, sptr); + } + + _set_present_idx(sptr, specs->pres_offset, specs->pres_size, present); + + return 0; +} diff --git a/asn.1/skeleton/constr_CHOICE.h b/asn.1/skeleton/constr_CHOICE.h new file mode 100644 index 00000000..1bec3cab --- /dev/null +++ b/asn.1/skeleton/constr_CHOICE.h @@ -0,0 +1,121 @@ +/* + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _CONSTR_CHOICE_H_ +#define _CONSTR_CHOICE_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct asn_CHOICE_specifics_s { + /* + * Target structure description. + */ + unsigned struct_size; /* Size of the target structure. */ + unsigned ctx_offset; /* Offset of the asn_codec_ctx_t member */ + unsigned pres_offset; /* Identifier of the present member */ + unsigned pres_size; /* Size of the identifier (enum) */ + + /* + * Tags to members mapping table. + */ + const asn_TYPE_tag2member_t *tag2el; + unsigned tag2el_count; + + /* Canonical ordering of CHOICE elements, for PER */ + const unsigned *to_canonical_order; + const unsigned *from_canonical_order; + + /* + * Extensions-related stuff. + */ + signed ext_start; /* First member of extensions, or -1 */ +} asn_CHOICE_specifics_t; + +/* + * A set specialized functions dealing with the CHOICE type. + */ +asn_struct_free_f CHOICE_free; + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +asn_struct_print_f CHOICE_print; +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +asn_struct_compare_f CHOICE_compare; +asn_struct_copy_f CHOICE_copy; + +asn_constr_check_f CHOICE_constraint; + +#if !defined(ASN_DISABLE_BER_SUPPORT) +ber_type_decoder_f CHOICE_decode_ber; +der_type_encoder_f CHOICE_encode_der; +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +xer_type_decoder_f CHOICE_decode_xer; +xer_type_encoder_f CHOICE_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +jer_type_decoder_f CHOICE_decode_jer; +jer_type_encoder_f CHOICE_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +oer_type_decoder_f CHOICE_decode_oer; +oer_type_encoder_f CHOICE_encode_oer; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +per_type_decoder_f CHOICE_decode_uper; +per_type_encoder_f CHOICE_encode_uper; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +per_type_decoder_f CHOICE_decode_aper; +per_type_encoder_f CHOICE_encode_aper; +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +asn_random_fill_f CHOICE_random_fill; +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +asn_outmost_tag_f CHOICE_outmost_tag; + +extern asn_TYPE_operation_t asn_OP_CHOICE; + +unsigned _fetch_present_idx( + const void *struct_ptr, + unsigned off, + unsigned size); + +void _set_present_idx( + void *sptr, + unsigned offset, + unsigned size, + unsigned present); + +/* + * Return the 1-based choice variant presence index. + * Returns 0 in case of error. + */ +unsigned CHOICE_variant_get_presence(const asn_TYPE_descriptor_t *td, + const void *structure_ptr); + +/* + * Sets or resets the 1-based choice variant presence index. + * In case a previous index is not zero, the currently selected structure + * member is freed and zeroed-out first. + * Returns 0 on success and -1 on error. + */ +int CHOICE_variant_set_presence(const asn_TYPE_descriptor_t *td, + void *structure_ptr, unsigned present); + +#ifdef __cplusplus +} +#endif + +#endif /* _CONSTR_CHOICE_H_ */ diff --git a/asn.1/skeleton/constr_CHOICE_aper.c b/asn.1/skeleton/constr_CHOICE_aper.c new file mode 100644 index 00000000..0f074233 --- /dev/null +++ b/asn.1/skeleton/constr_CHOICE_aper.c @@ -0,0 +1,179 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_dec_rval_t +CHOICE_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) { + const asn_CHOICE_specifics_t *specs = (const asn_CHOICE_specifics_t *)td->specifics; + asn_dec_rval_t rv; + const asn_per_constraint_t *ct = NULL; + asn_TYPE_member_t *elm = NULL; /* CHOICE's element */ + void *memb_ptr = NULL; + void **memb_ptr2 = NULL; + void *st = *sptr; + int value = 0; + + if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) + ASN__DECODE_FAILED; + + /* + * Create the target structure if it is not present already. + */ + if(!st) { + st = *sptr = CALLOC(1, specs->struct_size); + if(!st) ASN__DECODE_FAILED; + } + + if(constraints) ct = &constraints->value; + else if(td->encoding_constraints.per_constraints) + ct = &td->encoding_constraints.per_constraints->value; + else ct = 0; + + if(ct && ct->flags & APC_EXTENSIBLE) { + value = per_get_few_bits(pd, 1); + if(value < 0) ASN__DECODE_STARVED; + if(value) ct = 0; /* Not restricted */ + if((unsigned)value >= td->elements_count) + ASN__DECODE_FAILED; + } + + if(ct && ct->range_bits >= 0) { + value = per_get_few_bits(pd, ct->range_bits); + if(value < 0) ASN__DECODE_STARVED; + ASN_DEBUG("CHOICE %s got index %d in range %d", + td->name, value, ct->range_bits); + if(value > ct->upper_bound) + ASN__DECODE_FAILED; + } else { + if(specs->ext_start == -1) + ASN__DECODE_FAILED; + + if(specs && specs->tag2el_count > (unsigned)specs->ext_start) { + value = aper_get_nsnnwn(pd); /* extension elements range */ + if(value < 0) ASN__DECODE_STARVED; + value += specs->ext_start; + if((unsigned)value >= td->elements_count) + ASN__DECODE_FAILED; + } + } + + /* Adjust if canonical order is different from natural order */ + if(specs->from_canonical_order) + value = specs->from_canonical_order[value]; + + /* Set presence to be able to free it later */ + _set_present_idx(st, specs->pres_offset, specs->pres_size, value + 1); + + elm = &td->elements[value]; + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr2 = (void **)((char *)st + elm->memb_offset); + } else { + memb_ptr = (char *)st + elm->memb_offset; + memb_ptr2 = &memb_ptr; + } + ASN_DEBUG("Discovered CHOICE %s encodes %s", td->name, elm->name); + + if(ct && ct->range_bits >= 0) { + rv = elm->type->op->aper_decoder(opt_codec_ctx, elm->type, + elm->encoding_constraints.per_constraints, memb_ptr2, pd); + } else { + rv = aper_open_type_get(opt_codec_ctx, elm->type, + elm->encoding_constraints.per_constraints, memb_ptr2, pd); + } + + if(rv.code != RC_OK) + ASN_DEBUG("Failed to decode %s in %s (CHOICE) %d", + elm->name, td->name, rv.code); + return rv; +} + +asn_enc_rval_t +CHOICE_encode_aper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + const asn_CHOICE_specifics_t *specs = (const asn_CHOICE_specifics_t *)td->specifics; + const asn_TYPE_member_t *elm; /* CHOICE's element */ + const asn_per_constraint_t *ct; + const void *memb_ptr; + int present; + + if(!sptr) ASN__ENCODE_FAILED; + + ASN_DEBUG("Encoding %s as CHOICE using ALIGNED PER", td->name); + + if(constraints) ct = &constraints->value; + else if(td->encoding_constraints.per_constraints) + ct = &td->encoding_constraints.per_constraints->value; + else ct = 0; + + present = _fetch_present_idx(sptr, + specs->pres_offset, specs->pres_size); + + /* + * If the structure was not initialized properly, it cannot be encoded: + * can't deduce what to encode in the choice type. + */ + if(present <= 0 || (unsigned)present > td->elements_count) + ASN__ENCODE_FAILED; + else + present--; + + /* Adjust if canonical order is different from natural order */ + if(specs->to_canonical_order) + present = specs->to_canonical_order[present]; + + ASN_DEBUG("Encoding %s CHOICE element %d", td->name, present); + + if(ct && ct->range_bits >= 0) { + if(present < ct->lower_bound + || present > ct->upper_bound) { + if(ct->flags & APC_EXTENSIBLE) { + if(per_put_few_bits(po, 1, 1)) + ASN__ENCODE_FAILED; + } else { + ASN__ENCODE_FAILED; + } + ct = 0; + } + } + if(ct && ct->flags & APC_EXTENSIBLE) { + if(per_put_few_bits(po, 0, 1)) + ASN__ENCODE_FAILED; + } + + elm = &td->elements[present]; + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr = *(const void *const *)((const char *)sptr + elm->memb_offset); + if(!memb_ptr) ASN__ENCODE_FAILED; + } else { + memb_ptr = (const char *)sptr + elm->memb_offset; + } + + if(ct && ct->range_bits >= 0) { + if(per_put_few_bits(po, present, ct->range_bits)) + ASN__ENCODE_FAILED; + + return elm->type->op->aper_encoder(elm->type, elm->encoding_constraints.per_constraints, + memb_ptr, po); + } else { + asn_enc_rval_t rval = {0,0,0}; + if(specs->ext_start == -1) + ASN__ENCODE_FAILED; + if(aper_put_nsnnwn(po, present - specs->ext_start)) + ASN__ENCODE_FAILED; + if(aper_open_type_put(elm->type, elm->encoding_constraints.per_constraints, + memb_ptr, po)) + ASN__ENCODE_FAILED; + rval.encoded = 0; + ASN__ENCODED_OK(rval); + } +} diff --git a/asn.1/skeleton/constr_CHOICE_ber.c b/asn.1/skeleton/constr_CHOICE_ber.c new file mode 100644 index 00000000..7ad42c76 --- /dev/null +++ b/asn.1/skeleton/constr_CHOICE_ber.c @@ -0,0 +1,447 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Number of bytes left for this structure. + * (ctx->left) indicates the number of bytes _transferred_ for the structure. + * (size) contains the number of bytes in the buffer passed. + */ +#define LEFT ((size<(size_t)ctx->left)?size:(size_t)ctx->left) + +/* + * If the subprocessor function returns with an indication that it wants + * more data, it may well be a fatal decoding problem, because the + * size is constrained by the 's L, even if the buffer size allows + * reading more data. + * For example, consider the buffer containing the following TLVs: + * ... + * The TLV length clearly indicates that one byte is expected in V, but + * if the V processor returns with "want more data" even if the buffer + * contains way more data than the V processor have seen. + */ +#define SIZE_VIOLATION (ctx->left >= 0 && (size_t)ctx->left <= size) + +/* + * This macro "eats" the part of the buffer which is definitely "consumed", + * i.e. was correctly converted into local representation or rightfully skipped. + */ +#undef ADVANCE +#define ADVANCE(num_bytes) \ + do { \ + size_t num = num_bytes; \ + ptr = ((const char *)ptr) + num; \ + size -= num; \ + if(ctx->left >= 0) \ + ctx->left -= num; \ + consumed_myself += num; \ + } while(0) + +/* + * Switch to the next phase of parsing. + */ +#undef NEXT_PHASE +#define NEXT_PHASE(ctx) \ + do { \ + ctx->phase++; \ + ctx->step = 0; \ + } while(0) + +/* + * Return a standardized complex structure. + */ +#undef RETURN +#define RETURN(_code) \ + do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) + +/* + * Tags are canonically sorted in the tag to member table. + */ +static int +_search4tag(const void *ap, const void *bp) { + const asn_TYPE_tag2member_t *a = (const asn_TYPE_tag2member_t *)ap; + const asn_TYPE_tag2member_t *b = (const asn_TYPE_tag2member_t *)bp; + + int a_class = BER_TAG_CLASS(a->el_tag); + int b_class = BER_TAG_CLASS(b->el_tag); + + if(a_class == b_class) { + ber_tlv_tag_t a_value = BER_TAG_VALUE(a->el_tag); + ber_tlv_tag_t b_value = BER_TAG_VALUE(b->el_tag); + + if(a_value == b_value) + return 0; + else if(a_value < b_value) + return -1; + else + return 1; + } else if(a_class < b_class) { + return -1; + } else { + return 1; + } +} + +/* + * The decoder of the CHOICE type. + */ +asn_dec_rval_t +CHOICE_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **struct_ptr, + const void *ptr, size_t size, int tag_mode) { + /* + * Bring closer parts of structure description. + */ + const asn_CHOICE_specifics_t *specs = + (const asn_CHOICE_specifics_t *)td->specifics; + asn_TYPE_member_t *elements = td->elements; + + /* + * Parts of the structure being constructed. + */ + void *st = *struct_ptr; /* Target structure. */ + asn_struct_ctx_t *ctx; /* Decoder context */ + + ber_tlv_tag_t tlv_tag; /* T from TLV */ + ssize_t tag_len; /* Length of TLV's T */ + asn_dec_rval_t rval; /* Return code from subparsers */ + + ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ + + ASN_DEBUG("Decoding %s as CHOICE", td->name); + + /* + * Create the target structure if it is not present already. + */ + if(st == 0) { + st = *struct_ptr = CALLOC(1, specs->struct_size); + if(st == 0) { + RETURN(RC_FAIL); + } + } + + /* + * Restore parsing context. + */ + ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + + /* + * Start to parse where left previously + */ + switch(ctx->phase) { + case 0: + /* + * PHASE 0. + * Check that the set of tags associated with given structure + * perfectly fits our expectations. + */ + + if(tag_mode || td->tags_count) { + rval = ber_check_tags(opt_codec_ctx, td, ctx, ptr, size, + tag_mode, -1, &ctx->left, 0); + if(rval.code != RC_OK) { + ASN_DEBUG("%s tagging check failed: %d", + td->name, rval.code); + return rval; + } + + if(ctx->left >= 0) { + /* ?Subtracted below! */ + ctx->left += rval.consumed; + } + ADVANCE(rval.consumed); + } else { + ctx->left = -1; + } + + NEXT_PHASE(ctx); + + ASN_DEBUG("Structure consumes %ld bytes, buffer %ld", + (long)ctx->left, (long)size); + + /* Fall through */ + case 1: + /* + * Fetch the T from TLV. + */ + tag_len = ber_fetch_tag(ptr, LEFT, &tlv_tag); + ASN_DEBUG("In %s CHOICE tag length %d", td->name, (int)tag_len); + switch(tag_len) { + case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); + /* Fall through */ + case -1: RETURN(RC_FAIL); + } + + do { + const asn_TYPE_tag2member_t *t2m; + asn_TYPE_tag2member_t key; + + key.el_tag = tlv_tag; + t2m = (const asn_TYPE_tag2member_t *)bsearch(&key, + specs->tag2el, specs->tag2el_count, + sizeof(specs->tag2el[0]), _search4tag); + if(t2m) { + /* + * Found the element corresponding to the tag. + */ + NEXT_PHASE(ctx); + ctx->step = t2m->el_no; + break; + } else if(specs->ext_start == -1) { + ASN_DEBUG("Unexpected tag %s " + "in non-extensible CHOICE %s", + ber_tlv_tag_string(tlv_tag), td->name); + RETURN(RC_FAIL); + } else { + /* Skip this tag */ + ssize_t skip; + + ASN_DEBUG("Skipping unknown tag %s", + ber_tlv_tag_string(tlv_tag)); + + skip = ber_skip_length(opt_codec_ctx, + BER_TLV_CONSTRUCTED(ptr), + (const char *)ptr + tag_len, + LEFT - tag_len); + + switch(skip) { + case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); + /* Fall through */ + case -1: RETURN(RC_FAIL); + } + + ADVANCE(skip + tag_len); + RETURN(RC_OK); + } + } while(0); + + case 2: + /* + * PHASE 2. + * Read in the element. + */ + do { + asn_TYPE_member_t *elm;/* CHOICE's element */ + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + + elm = &elements[ctx->step]; + + /* + * Compute the position of the member inside a structure, + * and also a type of containment (it may be contained + * as pointer or using inline inclusion). + */ + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr2 = (void **)((char *)st + elm->memb_offset); + } else { + /* + * A pointer to a pointer + * holding the start of the structure + */ + memb_ptr = (char *)st + elm->memb_offset; + memb_ptr2 = &memb_ptr; + } + /* Set presence to be able to free it properly at any time */ + _set_present_idx(st, specs->pres_offset, + specs->pres_size, ctx->step + 1); + /* + * Invoke the member fetch routine according to member's type + */ + rval = elm->type->op->ber_decoder(opt_codec_ctx, elm->type, + memb_ptr2, ptr, LEFT, + elm->tag_mode); + switch(rval.code) { + case RC_OK: + break; + case RC_WMORE: /* More data expected */ + if(!SIZE_VIOLATION) { + ADVANCE(rval.consumed); + RETURN(RC_WMORE); + } + RETURN(RC_FAIL); + case RC_FAIL: /* Fatal error */ + RETURN(rval.code); + } /* switch(rval) */ + + ADVANCE(rval.consumed); + } while(0); + + NEXT_PHASE(ctx); + + /* Fall through */ + case 3: + ASN_DEBUG("CHOICE %s Leftover: %ld, size = %ld, tm=%d, tc=%d", + td->name, (long)ctx->left, (long)size, + tag_mode, td->tags_count); + + if(ctx->left > 0) { + /* + * The type must be fully decoded + * by the CHOICE member-specific decoder. + */ + RETURN(RC_FAIL); + } + + if(ctx->left == -1 + && !(tag_mode || td->tags_count)) { + /* + * This is an untagged CHOICE. + * It doesn't contain nothing + * except for the member itself, including all its tags. + * The decoding is completed. + */ + NEXT_PHASE(ctx); + break; + } + + /* + * Read in the "end of data chunks"'s. + */ + while(ctx->left < 0) { + ssize_t tl; + + tl = ber_fetch_tag(ptr, LEFT, &tlv_tag); + switch(tl) { + case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); + /* Fall through */ + case -1: RETURN(RC_FAIL); + } + + /* + * Expected <0><0>... + */ + if(((const uint8_t *)ptr)[0] == 0) { + if(LEFT < 2) { + if(SIZE_VIOLATION) + RETURN(RC_FAIL); + else + RETURN(RC_WMORE); + } else if(((const uint8_t *)ptr)[1] == 0) { + /* + * Correctly finished with <0><0>. + */ + ADVANCE(2); + ctx->left++; + continue; + } + } else { + ASN_DEBUG("Unexpected continuation in %s", + td->name); + RETURN(RC_FAIL); + } + + /* UNREACHABLE */ + } + + NEXT_PHASE(ctx); + case 4: + /* No meaningful work here */ + break; + } + + RETURN(RC_OK); +} + +asn_enc_rval_t +CHOICE_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, + int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, + void *app_key) { + const asn_CHOICE_specifics_t *specs = (const asn_CHOICE_specifics_t *)td->specifics; + asn_TYPE_member_t *elm; /* CHOICE element */ + asn_enc_rval_t erval = {0,0,0}; + const void *memb_ptr; + size_t computed_size = 0; + unsigned present; + + if(!sptr) ASN__ENCODE_FAILED; + + ASN_DEBUG("%s %s as CHOICE", + cb ? "Encoding" : "Estimating", td->name); + + present = _fetch_present_idx(sptr, + specs->pres_offset, specs->pres_size); + + /* + * If the structure was not initialized, it cannot be encoded: + * can't deduce what to encode in the choice type. + */ + if(present == 0 || present > td->elements_count) { + if(present == 0 && td->elements_count == 0) { + /* The CHOICE is empty?! */ + erval.encoded = 0; + ASN__ENCODED_OK(erval); + } + ASN__ENCODE_FAILED; + } + + /* + * Seek over the present member of the structure. + */ + elm = &td->elements[present-1]; + if(elm->flags & ATF_POINTER) { + memb_ptr = + *(const void *const *)((const char *)sptr + elm->memb_offset); + if(memb_ptr == 0) { + if(elm->optional) { + erval.encoded = 0; + ASN__ENCODED_OK(erval); + } + /* Mandatory element absent */ + ASN__ENCODE_FAILED; + } + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + } + + /* + * If the CHOICE itself is tagged EXPLICIT: + * T ::= [2] EXPLICIT CHOICE { ... } + * Then emit the appropriate tags. + */ + if(tag_mode == 1 || td->tags_count) { + /* + * For this, we need to pre-compute the member. + */ + ssize_t ret; + + /* Encode member with its tag */ + erval = elm->type->op->der_encoder(elm->type, memb_ptr, + elm->tag_mode, + elm->tag, 0, 0); + if(erval.encoded == -1) + return erval; + + /* Encode CHOICE with parent or my own tag */ + ret = der_write_tags(td, erval.encoded, tag_mode, 1, tag, + cb, app_key); + if(ret == -1) + ASN__ENCODE_FAILED; + computed_size += ret; + } + + /* + * Encode the single underlying member. + */ + erval = elm->type->op->der_encoder(elm->type, memb_ptr, + elm->tag_mode, elm->tag, + cb, app_key); + if(erval.encoded == -1) + return erval; + + ASN_DEBUG("Encoded CHOICE member in %ld bytes (+%ld)", + (long)erval.encoded, (long)computed_size); + + erval.encoded += computed_size; + + return erval; +} diff --git a/asn.1/skeleton/constr_CHOICE_jer.c b/asn.1/skeleton/constr_CHOICE_jer.c new file mode 100644 index 00000000..e6efe324 --- /dev/null +++ b/asn.1/skeleton/constr_CHOICE_jer.c @@ -0,0 +1,322 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Return a standardized complex structure. + */ +#undef RETURN +#define RETURN(_code) \ + do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) + +#undef JER_ADVANCE +#define JER_ADVANCE(num_bytes) \ + do { \ + size_t num = num_bytes; \ + buf_ptr = (const void *)(((const char *)buf_ptr) + num); \ + size -= num; \ + consumed_myself += num; \ + } while(0) + +/* + * Decode the JER (JSON) data. + */ +asn_dec_rval_t +CHOICE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **struct_ptr, + const void *buf_ptr, size_t size) { + /* + * Bring closer parts of structure description. + */ + const asn_CHOICE_specifics_t *specs = (const asn_CHOICE_specifics_t *)td->specifics; + + /* + * Parts of the structure being constructed. + */ + void *st = *struct_ptr; /* Target structure. */ + asn_struct_ctx_t *ctx; /* Decoder context */ + + asn_dec_rval_t rval; /* Return value of a decoder */ + ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ + size_t edx; /* Element index */ + + /* + * Create the target structure if it is not present already. + */ + if(st == 0) { + st = *struct_ptr = CALLOC(1, specs->struct_size); + if(st == 0) RETURN(RC_FAIL); + } + + /* + * Restore parsing context. + */ + ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + + /* + * Phases of JER/JSON processing: + * Phase 0: Check that the opening key matches our expectations. + * Phase 1: Processing body and reacting on closing token. + * Phase 2: Processing inner type. + * Phase 3: Only waiting for closing token. + * Phase 4: Skipping unknown extensions. + * Phase 5: PHASED OUT + */ + for(edx = ctx->step; ctx->phase <= 4;) { + pjer_chunk_type_e ch_type; /* JER chunk type */ + ssize_t ch_size; /* Chunk size */ + jer_check_sym_e scv; /* Tag check value */ + asn_TYPE_member_t *elm; + + /* + * Go inside the member. + */ + if(ctx->phase == 2) { + asn_dec_rval_t tmprval; + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + unsigned old_present __attribute__((unused)); + + elm = &td->elements[edx]; + + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr2 = (void **)((char *)st + + elm->memb_offset); + } else { + memb_ptr = (char *)st + elm->memb_offset; + memb_ptr2 = &memb_ptr; + } + + /* Start/Continue decoding the inner member */ + tmprval = elm->type->op->jer_decoder(opt_codec_ctx, + elm->type, memb_ptr2, + buf_ptr, size); + JER_ADVANCE(tmprval.consumed); + ASN_DEBUG("JER/CHOICE: itdf: [%s] code=%d", + elm->type->name, tmprval.code); + old_present = _fetch_present_idx(st, + specs->pres_offset, + specs->pres_size); + assert(old_present == 0 || old_present == edx + 1); + /* Record what we've got */ + _set_present_idx(st, + specs->pres_offset, + specs->pres_size, edx + 1); + if(tmprval.code != RC_OK) + RETURN(tmprval.code); + ctx->phase = 3; + /* Fall through */ + } + + /* + * Get the next part of the JSON stream. + */ + ch_size = jer_next_token(&ctx->context, buf_ptr, size, &ch_type); + if(ch_size == -1) { + RETURN(RC_FAIL); + } else { + switch(ch_type) { + case PJER_WMORE: + RETURN(RC_WMORE); + + case PJER_TEXT: /* Ignore free-standing text */ + JER_ADVANCE(ch_size); /* Skip silently */ + continue; + + case PJER_DLM: + case PJER_VALUE: + case PJER_KEY: + break; /* Check the rest down there */ + } + } + + scv = jer_check_sym(buf_ptr, ch_size, NULL); + ASN_DEBUG("JER/CHOICE checked [%c%c%c%c] of [%s], scv=%d", + ch_size>0?((const uint8_t *)buf_ptr)[0]:'?', + ch_size>1?((const uint8_t *)buf_ptr)[1]:'?', + ch_size>2?((const uint8_t *)buf_ptr)[2]:'?', + ch_size>3?((const uint8_t *)buf_ptr)[3]:'?', + td->name, scv); + + /* Skip the extensions section */ + if(ctx->phase == 4) { + ASN_DEBUG("skip_unknown(%d, %ld)", + scv, (long)ctx->left); + switch(jer_skip_unknown(scv, &ctx->left)) { + case -1: + ctx->phase = 5; + RETURN(RC_FAIL); + case 1: + ctx->phase = 3; + /* Fall through */ + case 0: + JER_ADVANCE(ch_size); + continue; + case 2: + ctx->phase = 3; + break; + } + } + + switch(scv) { + case JCK_OEND: + if(ctx->phase != 3) + break; + JER_ADVANCE(ch_size); + ctx->phase = 5; /* Phase out */ + RETURN(RC_OK); + + case JCK_COMMA: + JER_ADVANCE(ch_size); + continue; + + case JCK_OSTART: + if(ctx->phase == 0) { + JER_ADVANCE(ch_size); + ctx->phase = 1; /* Processing body phase */ + continue; + } + /* Fall through */ + case JCK_KEY: + case JCK_UNKNOWN: + + if(ctx->phase != 1) + break; /* Really unexpected */ + + /* + * Search which inner member corresponds to this key. + */ + for(edx = 0; edx < td->elements_count; edx++) { + elm = &td->elements[edx]; + scv = jer_check_sym(buf_ptr,ch_size,elm->name); + switch(scv) { + case JCK_KEY: + /* + * Process this member. + */ + ctx->step = edx; + ctx->phase = 2; + JER_ADVANCE(ch_size); /* skip key */ + /* skip colon */ + ch_size = jer_next_token(&ctx->context, buf_ptr, size, + &ch_type); + if(ch_size == -1) { + RETURN(RC_FAIL); + } else { + switch(ch_type) { + case PJER_WMORE: + RETURN(RC_WMORE); + case PJER_TEXT: + JER_ADVANCE(ch_size); + break; + default: + RETURN(RC_FAIL); + } + } + break; + case JCK_UNKNOWN: + continue; + default: + edx = td->elements_count; + break; /* Phase out */ + } + break; + } + if(edx != td->elements_count) + continue; + + /* It is expected extension */ + if(specs->ext_start != -1) { + ASN_DEBUG("Got anticipated extension"); + ctx->left = 1; + ctx->phase = 4; /* Skip ...'s */ + JER_ADVANCE(ch_size); + continue; + } + + /* Fall through */ + default: + break; + } + + ASN_DEBUG("Unexpected JSON token [%c%c%c%c] in CHOICE [%s]" + " (ph=%d)", + ch_size>0?((const uint8_t *)buf_ptr)[0]:'?', + ch_size>1?((const uint8_t *)buf_ptr)[1]:'?', + ch_size>2?((const uint8_t *)buf_ptr)[2]:'?', + ch_size>3?((const uint8_t *)buf_ptr)[3]:'?', + td->name, ctx->phase); + break; + } + + ctx->phase = 5; /* Phase out, just in case */ + RETURN(RC_FAIL); +} + +asn_enc_rval_t +CHOICE_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + enum jer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, + void *app_key) { + const asn_CHOICE_specifics_t *specs = + (const asn_CHOICE_specifics_t *)td->specifics; + asn_enc_rval_t er = {0,0,0}; + unsigned present = 0; + int jmin = (flags & JER_F_MINIFIED); + + if(!sptr) + ASN__ENCODE_FAILED; + + /* + * Figure out which CHOICE element is encoded. + */ + present = _fetch_present_idx(sptr, specs->pres_offset,specs->pres_size); + + if(present == 0 || present > td->elements_count) { + ASN__ENCODE_FAILED; + } else { + asn_enc_rval_t tmper = {0,0,0}; + asn_TYPE_member_t *elm = &td->elements[present-1]; + const void *memb_ptr = NULL; + const char *mname = elm->name; + unsigned int mlen = strlen(mname); + + if(elm->flags & ATF_POINTER) { + memb_ptr = + *(const void *const *)((const char *)sptr + elm->memb_offset); + if(!memb_ptr) ASN__ENCODE_FAILED; + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + } + + er.encoded = 0; + + ASN__CALLBACK("{",1); + if(!jmin) { + ASN__TEXT_INDENT(1, ilevel + 1); + ASN__CALLBACK3("\"", 1, mname, mlen, "\": ", 3); + } else { + ASN__CALLBACK3("\"", 1, mname, mlen, "\":", 2); + } + + tmper = elm->type->op->jer_encoder(elm->type, memb_ptr, + ilevel + 1, flags, cb, app_key); + if(tmper.encoded == -1) return tmper; + er.encoded += tmper.encoded; + + if(!jmin) ASN__TEXT_INDENT(1, ilevel); + ASN__CALLBACK("}", 1); + } + + ASN__ENCODED_OK(er); +cb_failed: + ASN__ENCODE_FAILED; +} diff --git a/asn.1/skeleton/constr_CHOICE_oer.c b/asn.1/skeleton/constr_CHOICE_oer.c new file mode 100644 index 00000000..bc71a01c --- /dev/null +++ b/asn.1/skeleton/constr_CHOICE_oer.c @@ -0,0 +1,375 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Return a standardized complex structure. + */ +#undef RETURN +#define RETURN(_code) \ + do { \ + asn_dec_rval_t rval; \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) + +#undef ADVANCE +#define ADVANCE(num_bytes) \ + do { \ + size_t num = num_bytes; \ + ptr = ((const char *)ptr) + num; \ + size -= num; \ + consumed_myself += num; \ + } while(0) + +/* + * Switch to the next phase of parsing. + */ +#undef NEXT_PHASE +#define NEXT_PHASE(ctx) \ + do { \ + ctx->phase++; \ + ctx->step = 0; \ + } while(0) +#undef SET_PHASE +#define SET_PHASE(ctx, value) \ + do { \ + ctx->phase = value; \ + ctx->step = 0; \ + } while(0) + +/* + * Tags are canonically sorted in the tag to member table. + */ +static int +_search4tag(const void *ap, const void *bp) { + const asn_TYPE_tag2member_t *a = (const asn_TYPE_tag2member_t *)ap; + const asn_TYPE_tag2member_t *b = (const asn_TYPE_tag2member_t *)bp; + + int a_class = BER_TAG_CLASS(a->el_tag); + int b_class = BER_TAG_CLASS(b->el_tag); + + if(a_class == b_class) { + ber_tlv_tag_t a_value = BER_TAG_VALUE(a->el_tag); + ber_tlv_tag_t b_value = BER_TAG_VALUE(b->el_tag); + + if(a_value == b_value) + return 0; + else if(a_value < b_value) + return -1; + else + return 1; + } else if(a_class < b_class) { + return -1; + } else { + return 1; + } +} + +/* + * X.696 (08/2015) #8.7 Encoding of tags + */ +static ssize_t +oer_fetch_tag(const void *ptr, size_t size, ber_tlv_tag_t *tag_r) { + ber_tlv_tag_t val; + ber_tlv_tag_t tclass; + size_t skipped; + + if(size == 0) + return 0; + + val = *(const uint8_t *)ptr; + tclass = (val >> 6); + if((val & 0x3F) != 0x3F) { + /* #8.7.1 */ + *tag_r = ((val & 0x3F) << 2) | tclass; + return 1; + } + + /* + * Each octet contains 7 bits of useful information. + * The MSB is 0 if it is the last octet of the tag. + */ + for(val = 0, ptr = ((const char *)ptr) + 1, skipped = 2; skipped <= size; + ptr = ((const char *)ptr) + 1, skipped++) { + unsigned int oct = *(const uint8_t *)ptr; + if(oct & 0x80) { + val = (val << 7) | (oct & 0x7F); + /* + * Make sure there are at least 9 bits spare + * at the MS side of a value. + */ + if(val >> ((8 * sizeof(val)) - 9)) { + /* + * We would not be able to accommodate + * any more tag bits. + */ + return -1; + } + } else { + val = (val << 7) | oct; + *tag_r = (val << 2) | tclass; + return skipped; + } + } + + return 0; /* Want more */ +} + +asn_dec_rval_t +CHOICE_decode_oer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, void **struct_ptr, + const void *ptr, size_t size) { + /* + * Bring closer parts of structure description. + */ + const asn_CHOICE_specifics_t *specs = + (const asn_CHOICE_specifics_t *)td->specifics; + asn_TYPE_member_t *elements = td->elements; + + /* + * Parts of the structure being constructed. + */ + void *st = *struct_ptr; /* Target structure. */ + asn_struct_ctx_t *ctx; /* Decoder context */ + + ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ + + (void)constraints; + + ASN_DEBUG("Decoding %s as CHOICE", td->name); + + /* + * Create the target structure if it is not present already. + */ + if(st == 0) { + st = *struct_ptr = CALLOC(1, specs->struct_size); + if(st == 0) { + RETURN(RC_FAIL); + } + } + + /* + * Restore parsing context. + */ + ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + switch(ctx->phase) { + case 0: { + /* + * Discover the tag. + */ + ber_tlv_tag_t tlv_tag; /* T from TLV */ + ssize_t tag_len; /* Length of TLV's T */ + + tag_len = oer_fetch_tag(ptr, size, &tlv_tag); + switch(tag_len) { + case 0: + ASN__DECODE_STARVED; + case -1: + ASN__DECODE_FAILED; + } + + do { + const asn_TYPE_tag2member_t *t2m; + asn_TYPE_tag2member_t key = {0, 0, 0, 0}; + key.el_tag = tlv_tag; + + t2m = (const asn_TYPE_tag2member_t *)bsearch( + &key, specs->tag2el, specs->tag2el_count, + sizeof(specs->tag2el[0]), _search4tag); + if(t2m) { + /* + * Found the element corresponding to the tag. + */ + NEXT_PHASE(ctx); + ctx->step = t2m->el_no; + break; + } else if(specs->ext_start == -1) { + ASN_DEBUG( + "Unexpected tag %s " + "in non-extensible CHOICE %s", + ber_tlv_tag_string(tlv_tag), td->name); + RETURN(RC_FAIL); + } else { + /* Skip open type extension */ + ASN_DEBUG( + "Not implemented skipping open type extension for tag %s", + ber_tlv_tag_string(tlv_tag)); + RETURN(RC_FAIL); + } + } while(0); + + + ADVANCE(tag_len); + } + /* Fall through */ + case 1: { + asn_TYPE_member_t *elm = &elements[ctx->step]; /* CHOICE's element */ + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + asn_dec_rval_t rval = {0,0}; + + /* + * Compute the position of the member inside a structure, + * and also a type of containment (it may be contained + * as pointer or using inline inclusion). + */ + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr2 = (void **)((char *)st + elm->memb_offset); + } else { + /* + * A pointer to a pointer + * holding the start of the structure + */ + memb_ptr = (char *)st + elm->memb_offset; + memb_ptr2 = &memb_ptr; + } + + /* Set presence to be able to free it properly at any time */ + (void)CHOICE_variant_set_presence(td, st, ctx->step + 1); + + if(specs->ext_start >= 0 && specs->ext_start <= ctx->step) { + ssize_t got = + oer_open_type_get(opt_codec_ctx, elm->type, + elm->encoding_constraints.oer_constraints, + memb_ptr2, ptr, size); + if(got < 0) ASN__DECODE_FAILED; + if(got == 0) ASN__DECODE_STARVED; + rval.code = RC_OK; + rval.consumed = got; + } else { + rval = elm->type->op->oer_decoder( + opt_codec_ctx, elm->type, + elm->encoding_constraints.oer_constraints, memb_ptr2, ptr, + size); + } + rval.consumed += consumed_myself; + switch(rval.code) { + case RC_OK: + NEXT_PHASE(ctx); + case RC_WMORE: + break; + case RC_FAIL: + SET_PHASE(ctx, 3); /* => 3 */ + } + return rval; + } + case 2: + /* Already decoded everything */ + RETURN(RC_OK); + case 3: + /* Failed to decode, after all */ + RETURN(RC_FAIL); + } + + RETURN(RC_FAIL); +} + +/* + * X.696 (08/2015) #8.7 Encoding of tags + */ +static ssize_t +oer_put_tag(ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { + uint8_t tclass = BER_TAG_CLASS(tag); + ber_tlv_tag_t tval = BER_TAG_VALUE(tag); + + if(tval < 0x3F) { + uint8_t b = (uint8_t)((tclass << 6) | tval); + if(cb(&b, 1, app_key) < 0) { + return -1; + } + return 1; + } else { + uint8_t buf[1 + 2 * sizeof(tval)]; + uint8_t *b = &buf[sizeof(buf)-1]; /* Last addressable */ + size_t encoded; + for(; ; tval >>= 7) { + if(tval >> 7) { + *b-- = 0x80 | (tval & 0x7f); + } else { + *b-- = tval & 0x7f; + break; + } + } + *b = (uint8_t)((tclass << 6) | 0x3F); + encoded = sizeof(buf) - (b - buf); + if(cb(b, encoded, app_key) < 0) { + return -1; + } + return encoded; + } + +} + +/* + * Encode as Canonical OER. + */ +asn_enc_rval_t +CHOICE_encode_oer(const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, const void *sptr, + asn_app_consume_bytes_f *cb, void *app_key) { + const asn_CHOICE_specifics_t *specs = + (const asn_CHOICE_specifics_t *)td->specifics; + asn_TYPE_member_t *elm; /* CHOICE element */ + unsigned present; + const void *memb_ptr; + ber_tlv_tag_t tag; + ssize_t tag_len; + asn_enc_rval_t er = {0, 0, 0}; + + (void)constraints; + + if(!sptr) ASN__ENCODE_FAILED; + + ASN_DEBUG("OER %s encoding as CHOICE", td->name); + + present = CHOICE_variant_get_presence(td, sptr); + if(present == 0 || present > td->elements_count) { + ASN_DEBUG("CHOICE %s member is not selected", td->name); + ASN__ENCODE_FAILED; + } + + elm = &td->elements[present-1]; + if(elm->flags & ATF_POINTER) { + memb_ptr = + *(const void *const *)((const char *)sptr + elm->memb_offset); + if(memb_ptr == 0) { + /* Mandatory element absent */ + ASN__ENCODE_FAILED; + } + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + } + + tag = asn_TYPE_outmost_tag(elm->type, memb_ptr, elm->tag_mode, elm->tag); + if(tag == 0) { + ASN__ENCODE_FAILED; + } + + tag_len = oer_put_tag(tag, cb, app_key); + if(tag_len < 0) { + ASN__ENCODE_FAILED; + } + + if(specs->ext_start >= 0 && (unsigned)specs->ext_start <= (present-1)) { + ssize_t encoded = oer_open_type_put(elm->type, + elm->encoding_constraints.oer_constraints, + memb_ptr, cb, app_key); + if(encoded < 0) ASN__ENCODE_FAILED; + er.encoded = tag_len + encoded; + } else { + er = elm->type->op->oer_encoder( + elm->type, elm->encoding_constraints.oer_constraints, memb_ptr, cb, + app_key); + if(er.encoded >= 0) er.encoded += tag_len; + } + + return er; +} diff --git a/asn.1/skeleton/constr_CHOICE_print.c b/asn.1/skeleton/constr_CHOICE_print.c new file mode 100644 index 00000000..a97202fc --- /dev/null +++ b/asn.1/skeleton/constr_CHOICE_print.c @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +int +CHOICE_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + asn_app_consume_bytes_f *cb, void *app_key) { + const asn_CHOICE_specifics_t *specs = (const asn_CHOICE_specifics_t *)td->specifics; + unsigned present; + + if(!sptr) return (cb("", 8, app_key) < 0) ? -1 : 0; + + /* + * Figure out which CHOICE element is encoded. + */ + present = _fetch_present_idx(sptr, specs->pres_offset,specs->pres_size); + + /* + * Print that element. + */ + if(present > 0 && present <= td->elements_count) { + asn_TYPE_member_t *elm = &td->elements[present-1]; + const void *memb_ptr; + + if(elm->flags & ATF_POINTER) { + memb_ptr = *(const void * const *)((const char *)sptr + elm->memb_offset); + if(!memb_ptr) return (cb("", 8, app_key) < 0) ? -1 : 0; + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + } + + /* Print member's name and stuff */ + if(0) { + if(cb(elm->name, strlen(elm->name), app_key) < 0 + || cb(": ", 2, app_key) < 0) + return -1; + } + + return elm->type->op->print_struct(elm->type, memb_ptr, ilevel, + cb, app_key); + } else { + return (cb("", 8, app_key) < 0) ? -1 : 0; + } +} diff --git a/asn.1/skeleton/constr_CHOICE_rfill.c b/asn.1/skeleton/constr_CHOICE_rfill.c new file mode 100644 index 00000000..fd0a1016 --- /dev/null +++ b/asn.1/skeleton/constr_CHOICE_rfill.c @@ -0,0 +1,60 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_random_fill_result_t +CHOICE_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, + const asn_encoding_constraints_t *constr, + size_t max_length) { + const asn_CHOICE_specifics_t *specs = + (const asn_CHOICE_specifics_t *)td->specifics; + asn_random_fill_result_t res; + asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; + asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; + const asn_TYPE_member_t *elm; + unsigned present; + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + void *st = *sptr; + + if(max_length == 0) return result_skipped; + + (void)constr; + + if(st == NULL) { + st = CALLOC(1, specs->struct_size); + if(st == NULL) { + return result_failed; + } + } + + present = asn_random_between(1, td->elements_count); + elm = &td->elements[present - 1]; + + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr2 = (void **)((char *)st + elm->memb_offset); + } else { + memb_ptr = (char *)st + elm->memb_offset; + memb_ptr2 = &memb_ptr; + } + + res = elm->type->op->random_fill(elm->type, memb_ptr2, + &elm->encoding_constraints, max_length); + _set_present_idx(st, specs->pres_offset, specs->pres_size, present); + if(res.code == ARFILL_OK) { + *sptr = st; + } else { + if(st == *sptr) { + ASN_STRUCT_RESET(*td, st); + } else { + ASN_STRUCT_FREE(*td, st); + } + } + + return res; +} diff --git a/asn.1/skeleton/constr_CHOICE_uper.c b/asn.1/skeleton/constr_CHOICE_uper.c new file mode 100644 index 00000000..4a191012 --- /dev/null +++ b/asn.1/skeleton/constr_CHOICE_uper.c @@ -0,0 +1,191 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_dec_rval_t +CHOICE_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, + asn_per_data_t *pd) { + const asn_CHOICE_specifics_t *specs = + (const asn_CHOICE_specifics_t *)td->specifics; + asn_dec_rval_t rv; + const asn_per_constraint_t *ct; + asn_TYPE_member_t *elm; /* CHOICE's element */ + void *memb_ptr; + void **memb_ptr2; + void *st = *sptr; + int value; + + if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) + ASN__DECODE_FAILED; + + /* + * Create the target structure if it is not present already. + */ + if(!st) { + st = *sptr = CALLOC(1, specs->struct_size); + if(!st) ASN__DECODE_FAILED; + } + + if(constraints) ct = &constraints->value; + else if(td->encoding_constraints.per_constraints) ct = &td->encoding_constraints.per_constraints->value; + else ct = 0; + + if(ct && ct->flags & APC_EXTENSIBLE) { + value = per_get_few_bits(pd, 1); + if(value < 0) ASN__DECODE_STARVED; + if(value) ct = 0; /* Not restricted */ + } + + if(ct && ct->range_bits >= 0) { + value = per_get_few_bits(pd, ct->range_bits); + if(value < 0) ASN__DECODE_STARVED; + ASN_DEBUG("CHOICE %s got index %d in range %d", + td->name, value, ct->range_bits); + if(value > ct->upper_bound) + ASN__DECODE_FAILED; + } else { + if(specs->ext_start == -1) + ASN__DECODE_FAILED; + value = uper_get_nsnnwn(pd); + if(value < 0) ASN__DECODE_STARVED; + value += specs->ext_start; + if((unsigned)value >= td->elements_count) + ASN__DECODE_FAILED; + } + + /* Adjust if canonical order is different from natural order */ + if(specs->from_canonical_order) { + ASN_DEBUG("CHOICE presence from wire %d", value); + value = specs->from_canonical_order[value]; + ASN_DEBUG("CHOICE presence index effective %d", value); + } + + /* Set presence to be able to free it later */ + _set_present_idx(st, specs->pres_offset, specs->pres_size, value + 1); + + elm = &td->elements[value]; + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr2 = (void **)((char *)st + elm->memb_offset); + } else { + memb_ptr = (char *)st + elm->memb_offset; + memb_ptr2 = &memb_ptr; + } + ASN_DEBUG("Discovered CHOICE %s encodes %s", td->name, elm->name); + + if(ct && ct->range_bits >= 0) { + rv = elm->type->op->uper_decoder(opt_codec_ctx, elm->type, + elm->encoding_constraints.per_constraints, + memb_ptr2, pd); + } else { + rv = uper_open_type_get(opt_codec_ctx, elm->type, + elm->encoding_constraints.per_constraints, + memb_ptr2, pd); + } + + if(rv.code != RC_OK) + ASN_DEBUG("Failed to decode %s in %s (CHOICE) %d", + elm->name, td->name, rv.code); + return rv; +} + +asn_enc_rval_t +CHOICE_encode_uper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, const void *sptr, + asn_per_outp_t *po) { + const asn_CHOICE_specifics_t *specs = (const asn_CHOICE_specifics_t *)td->specifics; + asn_TYPE_member_t *elm; /* CHOICE's element */ + const asn_per_constraint_t *ct; + const void *memb_ptr; + unsigned present; + int present_enc; + + if(!sptr) ASN__ENCODE_FAILED; + + ASN_DEBUG("Encoding %s as CHOICE", td->name); + + if(constraints) ct = &constraints->value; + else if(td->encoding_constraints.per_constraints) + ct = &td->encoding_constraints.per_constraints->value; + else ct = 0; + + present = _fetch_present_idx(sptr, specs->pres_offset, specs->pres_size); + + /* + * If the structure was not initialized properly, it cannot be encoded: + * can't deduce what to encode in the choice type. + */ + if(present == 0 || present > td->elements_count) + ASN__ENCODE_FAILED; + else + present--; + + ASN_DEBUG("Encoding %s CHOICE element %d", td->name, present); + + /* Adjust if canonical order is different from natural order */ + if(specs->to_canonical_order) + present_enc = specs->to_canonical_order[present]; + else + present_enc = present; + + if(ct && ct->range_bits >= 0) { + if(present_enc < ct->lower_bound + || present_enc > ct->upper_bound) { + if(ct->flags & APC_EXTENSIBLE) { + ASN_DEBUG( + "CHOICE member %d (enc %d) is an extension (%"ASN_PRIdMAX"..%"ASN_PRIdMAX")", + present, present_enc, ct->lower_bound, ct->upper_bound); + if(per_put_few_bits(po, 1, 1)) + ASN__ENCODE_FAILED; + } else { + ASN__ENCODE_FAILED; + } + ct = 0; + } + } + if(ct && ct->flags & APC_EXTENSIBLE) { + ASN_DEBUG("CHOICE member %d (enc %d) is not an extension (%"ASN_PRIdMAX"..%"ASN_PRIdMAX")", + present, present_enc, ct->lower_bound, ct->upper_bound); + if(per_put_few_bits(po, 0, 1)) + ASN__ENCODE_FAILED; + } + + + elm = &td->elements[present]; + ASN_DEBUG("CHOICE member \"%s\" %d (as %d)", elm->name, present, + present_enc); + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr = + *(const void *const *)((const char *)sptr + elm->memb_offset); + if(!memb_ptr) ASN__ENCODE_FAILED; + } else { + memb_ptr = (const char *)sptr + elm->memb_offset; + } + + if(ct && ct->range_bits >= 0) { + if(per_put_few_bits(po, present_enc, ct->range_bits)) + ASN__ENCODE_FAILED; + + return elm->type->op->uper_encoder( + elm->type, elm->encoding_constraints.per_constraints, memb_ptr, po); + } else { + asn_enc_rval_t rval = {0,0,0}; + if(specs->ext_start == -1) ASN__ENCODE_FAILED; + if(uper_put_nsnnwn(po, present_enc - specs->ext_start)) + ASN__ENCODE_FAILED; + if(uper_open_type_put(elm->type, + elm->encoding_constraints.per_constraints, + memb_ptr, po)) + ASN__ENCODE_FAILED; + rval.encoded = 0; + ASN__ENCODED_OK(rval); + } +} diff --git a/asn.1/skeleton/constr_CHOICE_xer.c b/asn.1/skeleton/constr_CHOICE_xer.c new file mode 100644 index 00000000..90ae02f3 --- /dev/null +++ b/asn.1/skeleton/constr_CHOICE_xer.c @@ -0,0 +1,316 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Return a standardized complex structure. + */ +#undef RETURN +#define RETURN(_code) \ + do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) + +#undef XER_ADVANCE +#define XER_ADVANCE(num_bytes) \ + do { \ + size_t num = num_bytes; \ + buf_ptr = (const void *)(((const char *)buf_ptr) + num); \ + size -= num; \ + consumed_myself += num; \ + } while(0) + +/* + * Decode the XER (XML) data. + */ +asn_dec_rval_t +CHOICE_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **struct_ptr, + const char *opt_mname, const void *buf_ptr, size_t size) { + /* + * Bring closer parts of structure description. + */ + const asn_CHOICE_specifics_t *specs = (const asn_CHOICE_specifics_t *)td->specifics; + const char *xml_tag = opt_mname ? opt_mname : td->xml_tag; + + /* + * Parts of the structure being constructed. + */ + void *st = *struct_ptr; /* Target structure. */ + asn_struct_ctx_t *ctx; /* Decoder context */ + + asn_dec_rval_t rval; /* Return value of a decoder */ + ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ + size_t edx; /* Element index */ + + /* + * Create the target structure if it is not present already. + */ + if(st == 0) { + st = *struct_ptr = CALLOC(1, specs->struct_size); + if(st == 0) RETURN(RC_FAIL); + } + + /* + * Restore parsing context. + */ + ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + if(ctx->phase == 0 && !*xml_tag) + ctx->phase = 1; /* Skip the outer tag checking phase */ + + /* + * Phases of XER/XML processing: + * Phase 0: Check that the opening tag matches our expectations. + * Phase 1: Processing body and reacting on closing tag. + * Phase 2: Processing inner type. + * Phase 3: Only waiting for closing tag. + * Phase 4: Skipping unknown extensions. + * Phase 5: PHASED OUT + */ + for(edx = ctx->step; ctx->phase <= 4;) { + pxer_chunk_type_e ch_type; /* XER chunk type */ + ssize_t ch_size; /* Chunk size */ + xer_check_tag_e tcv; /* Tag check value */ + asn_TYPE_member_t *elm; + + /* + * Go inside the member. + */ + if(ctx->phase == 2) { + asn_dec_rval_t tmprval; + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + unsigned old_present __attribute__((unused)); + + elm = &td->elements[edx]; + + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr2 = (void **)((char *)st + + elm->memb_offset); + } else { + memb_ptr = (char *)st + elm->memb_offset; + memb_ptr2 = &memb_ptr; + } + + /* Start/Continue decoding the inner member */ + tmprval = elm->type->op->xer_decoder(opt_codec_ctx, + elm->type, memb_ptr2, + elm->name, + buf_ptr, size); + XER_ADVANCE(tmprval.consumed); + ASN_DEBUG("XER/CHOICE: itdf: [%s] code=%d", + elm->type->name, tmprval.code); + old_present = _fetch_present_idx(st, + specs->pres_offset, + specs->pres_size); + assert(old_present == 0 || old_present == edx + 1); + /* Record what we've got */ + _set_present_idx(st, + specs->pres_offset, + specs->pres_size, edx + 1); + if(tmprval.code != RC_OK) + RETURN(tmprval.code); + ctx->phase = 3; + /* Fall through */ + } + + /* No need to wait for closing tag; special mode. */ + if(ctx->phase == 3 && !*xml_tag) { + ctx->phase = 5; /* Phase out */ + RETURN(RC_OK); + } + + /* + * Get the next part of the XML stream. + */ + ch_size = xer_next_token(&ctx->context, buf_ptr, size, &ch_type); + if(ch_size == -1) { + RETURN(RC_FAIL); + } else { + switch(ch_type) { + case PXER_WMORE: + RETURN(RC_WMORE); + case PXER_COMMENT: /* Got XML comment */ + case PXER_TEXT: /* Ignore free-standing text */ + XER_ADVANCE(ch_size); /* Skip silently */ + continue; + case PXER_TAG: + break; /* Check the rest down there */ + } + } + + tcv = xer_check_tag(buf_ptr, ch_size, xml_tag); + ASN_DEBUG("XER/CHOICE checked [%c%c%c%c] vs [%s], tcv=%d", + ch_size>0?((const uint8_t *)buf_ptr)[0]:'?', + ch_size>1?((const uint8_t *)buf_ptr)[1]:'?', + ch_size>2?((const uint8_t *)buf_ptr)[2]:'?', + ch_size>3?((const uint8_t *)buf_ptr)[3]:'?', + xml_tag, tcv); + + /* Skip the extensions section */ + if(ctx->phase == 4) { + ASN_DEBUG("skip_unknown(%d, %ld)", + tcv, (long)ctx->left); + switch(xer_skip_unknown(tcv, &ctx->left)) { + case -1: + ctx->phase = 5; + RETURN(RC_FAIL); + case 1: + ctx->phase = 3; + /* Fall through */ + case 0: + XER_ADVANCE(ch_size); + continue; + case 2: + ctx->phase = 3; + break; + } + } + + switch(tcv) { + case XCT_BOTH: + break; /* No CHOICE? */ + case XCT_CLOSING: + if(ctx->phase != 3) + break; + XER_ADVANCE(ch_size); + ctx->phase = 5; /* Phase out */ + RETURN(RC_OK); + case XCT_OPENING: + if(ctx->phase == 0) { + XER_ADVANCE(ch_size); + ctx->phase = 1; /* Processing body phase */ + continue; + } + /* Fall through */ + case XCT_UNKNOWN_OP: + case XCT_UNKNOWN_BO: + + if(ctx->phase != 1) + break; /* Really unexpected */ + + /* + * Search which inner member corresponds to this tag. + */ + for(edx = 0; edx < td->elements_count; edx++) { + elm = &td->elements[edx]; + tcv = xer_check_tag(buf_ptr,ch_size,elm->name); + switch(tcv) { + case XCT_BOTH: + case XCT_OPENING: + /* + * Process this member. + */ + ctx->step = edx; + ctx->phase = 2; + break; + case XCT_UNKNOWN_OP: + case XCT_UNKNOWN_BO: + continue; + default: + edx = td->elements_count; + break; /* Phase out */ + } + break; + } + if(edx != td->elements_count) + continue; + + /* It is expected extension */ + if(specs->ext_start != -1) { + ASN_DEBUG("Got anticipated extension"); + /* + * Check for (XCT_BOTH or XCT_UNKNOWN_BO) + * By using a mask. Only record a pure + * tags. + */ + if(tcv & XCT_CLOSING) { + /* Found without body */ + ctx->phase = 3; /* Terminating */ + } else { + ctx->left = 1; + ctx->phase = 4; /* Skip ...'s */ + } + XER_ADVANCE(ch_size); + continue; + } + + /* Fall through */ + default: + break; + } + + ASN_DEBUG("Unexpected XML tag [%c%c%c%c] in CHOICE [%s]" + " (ph=%d, tag=%s)", + ch_size>0?((const uint8_t *)buf_ptr)[0]:'?', + ch_size>1?((const uint8_t *)buf_ptr)[1]:'?', + ch_size>2?((const uint8_t *)buf_ptr)[2]:'?', + ch_size>3?((const uint8_t *)buf_ptr)[3]:'?', + td->name, ctx->phase, xml_tag); + break; + } + + ctx->phase = 5; /* Phase out, just in case */ + RETURN(RC_FAIL); +} + +asn_enc_rval_t +CHOICE_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, + void *app_key) { + const asn_CHOICE_specifics_t *specs = + (const asn_CHOICE_specifics_t *)td->specifics; + asn_enc_rval_t er = {0,0,0}; + unsigned present = 0; + + if(!sptr) + ASN__ENCODE_FAILED; + + /* + * Figure out which CHOICE element is encoded. + */ + present = _fetch_present_idx(sptr, specs->pres_offset,specs->pres_size); + + if(present == 0 || present > td->elements_count) { + ASN__ENCODE_FAILED; + } else { + asn_enc_rval_t tmper = {0,0,0}; + asn_TYPE_member_t *elm = &td->elements[present-1]; + const void *memb_ptr = NULL; + const char *mname = elm->name; + unsigned int mlen = strlen(mname); + + if(elm->flags & ATF_POINTER) { + memb_ptr = + *(const void *const *)((const char *)sptr + elm->memb_offset); + if(!memb_ptr) ASN__ENCODE_FAILED; + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + } + + er.encoded = 0; + + if(!(flags & XER_F_CANONICAL)) ASN__TEXT_INDENT(1, ilevel); + ASN__CALLBACK3("<", 1, mname, mlen, ">", 1); + + tmper = elm->type->op->xer_encoder(elm->type, memb_ptr, + ilevel + 1, flags, cb, app_key); + if(tmper.encoded == -1) return tmper; + er.encoded += tmper.encoded; + + ASN__CALLBACK3("", 1); + } + + if(!(flags & XER_F_CANONICAL)) ASN__TEXT_INDENT(1, ilevel - 1); + + ASN__ENCODED_OK(er); +cb_failed: + ASN__ENCODE_FAILED; +} diff --git a/asn.1/skeleton/constr_SEQUENCE.c b/asn.1/skeleton/constr_SEQUENCE.c new file mode 100644 index 00000000..a77b68fa --- /dev/null +++ b/asn.1/skeleton/constr_SEQUENCE.c @@ -0,0 +1,251 @@ +/* + * Copyright (c) 2003-2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_TYPE_operation_t asn_OP_SEQUENCE = { + SEQUENCE_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + SEQUENCE_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + SEQUENCE_compare, + SEQUENCE_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + SEQUENCE_decode_ber, + SEQUENCE_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + SEQUENCE_decode_jer, + SEQUENCE_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + SEQUENCE_decode_oer, + SEQUENCE_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + SEQUENCE_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; + +void +SEQUENCE_free(const asn_TYPE_descriptor_t *td, void *sptr, + enum asn_struct_free_method method) { + size_t edx; + const asn_SEQUENCE_specifics_t *specs; + asn_struct_ctx_t *ctx; /* Decoder context */ + + if(!td || !sptr) + return; + + specs = (const asn_SEQUENCE_specifics_t *)td->specifics; + + ASN_DEBUG("Freeing %s as SEQUENCE", td->name); + + for(edx = 0; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + void *memb_ptr; + if(elm->flags & ATF_POINTER) { + memb_ptr = *(void **)((char *)sptr + elm->memb_offset); + if(memb_ptr) + ASN_STRUCT_FREE(*elm->type, memb_ptr); + } else { + memb_ptr = (void *)((char *)sptr + elm->memb_offset); + ASN_STRUCT_FREE_CONTENTS_ONLY(*elm->type, memb_ptr); + } + } + + /* Clean parsing context */ + ctx = (asn_struct_ctx_t *)((char *)sptr + specs->ctx_offset); + FREEMEM(ctx->ptr); + + switch(method) { + case ASFM_FREE_EVERYTHING: + FREEMEM(sptr); + break; + case ASFM_FREE_UNDERLYING: + break; + case ASFM_FREE_UNDERLYING_AND_RESET: + memset( + sptr, 0, + ((const asn_SEQUENCE_specifics_t *)(td->specifics))->struct_size); + break; + } +} + +int +SEQUENCE_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t edx; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* + * Iterate over structure members and check their validity. + */ + for(edx = 0; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + const void *memb_ptr; + asn_constr_check_f *constr; + int ret; + + if(elm->flags & ATF_POINTER) { + memb_ptr = *(const void * const *)((const char *)sptr + elm->memb_offset); + if(!memb_ptr) { + if(elm->optional) + continue; + ASN__CTFAIL(app_key, td, sptr, + "%s: mandatory element %s absent (%s:%d)", + td->name, elm->name, __FILE__, __LINE__); + return -1; + } + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + } + + constr = elm->encoding_constraints.general_constraints; + if(!constr) + constr = elm->type->encoding_constraints.general_constraints; + + ret = constr(elm->type, memb_ptr, ctfailcb, app_key); + if(ret) return ret; + } + + return 0; +} + +int +SEQUENCE_compare(const asn_TYPE_descriptor_t *td, const void *aptr, + const void *bptr) { + size_t edx; + + for(edx = 0; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + const void *amemb; + const void *bmemb; + int ret; + + if(elm->flags & ATF_POINTER) { + amemb = + *(const void *const *)((const char *)aptr + elm->memb_offset); + bmemb = + *(const void *const *)((const char *)bptr + elm->memb_offset); + if(!amemb) { + if(!bmemb) continue; + if(elm->default_value_cmp + && elm->default_value_cmp(bmemb) == 0) { + /* A is absent, but B is present and equal to DEFAULT */ + continue; + } + return -1; + } else if(!bmemb) { + if(elm->default_value_cmp + && elm->default_value_cmp(amemb) == 0) { + /* B is absent, but A is present and equal to DEFAULT */ + continue; + } + return 1; + } + } else { + amemb = (const void *)((const char *)aptr + elm->memb_offset); + bmemb = (const void *)((const char *)bptr + elm->memb_offset); + } + + ret = elm->type->op->compare_struct(elm->type, amemb, bmemb); + if(ret != 0) return ret; + } + + return 0; +} + +int +SEQUENCE_copy(const asn_TYPE_descriptor_t *td, void **aptr, + const void *bptr) { + if(!td) return -1; + + const asn_SEQUENCE_specifics_t *specs = + (const asn_SEQUENCE_specifics_t *)td->specifics; + size_t edx; + void *st = *aptr; /* Target structure */ + + if(!bptr) { + if(st) { + SEQUENCE_free(td, st, 0); + *aptr = 0; + } + return 0; + } + + /* + * Create the target structure if it is not present already. + */ + if(st == 0) { + st = *aptr = CALLOC(1, specs->struct_size); + if(st == 0) return -1; + } + + for(edx = 0; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + void *amemb; + void **amembp; + const void *bmemb; + int ret; + + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + amembp = (void **)((char *)st + elm->memb_offset); + bmemb = *(const void* const*)((const char*)bptr + elm->memb_offset); + } else { + amemb = (char *)st + elm->memb_offset; + amembp = &amemb; + bmemb = (const void*)((const char*)bptr + elm->memb_offset); + } + + ret = elm->type->op->copy_struct(elm->type, amembp, bmemb); + if(ret != 0) return ret; + } + + return 0; +} diff --git a/asn.1/skeleton/constr_SEQUENCE.h b/asn.1/skeleton/constr_SEQUENCE.h new file mode 100644 index 00000000..a3f50d11 --- /dev/null +++ b/asn.1/skeleton/constr_SEQUENCE.h @@ -0,0 +1,97 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _CONSTR_SEQUENCE_H_ +#define _CONSTR_SEQUENCE_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct asn_SEQUENCE_specifics_s { + /* + * Target structure description. + */ + unsigned struct_size; /* Size of the target structure. */ + unsigned ctx_offset; /* Offset of the asn_struct_ctx_t member */ + + /* + * Tags to members mapping table (sorted). + */ + const asn_TYPE_tag2member_t *tag2el; + unsigned tag2el_count; + + /* + * Optional members of the extensions root (roms) or additions (aoms). + * Meaningful for PER. + */ + const int *oms; /* Optional MemberS */ + unsigned roms_count; /* Root optional members count */ + unsigned aoms_count; /* Additions optional members count */ + + /* + * Description of an extensions group. + * Root components are clustered at the beginning of the structure, + * whereas extensions are clustered at the end. -1 means not extensible. + */ + signed first_extension; /* First extension addition */ +} asn_SEQUENCE_specifics_t; + + +/* + * A set specialized functions dealing with the SEQUENCE type. + */ +asn_struct_free_f SEQUENCE_free; + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +asn_struct_print_f SEQUENCE_print; +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +asn_struct_compare_f SEQUENCE_compare; +asn_struct_copy_f SEQUENCE_copy; + +asn_constr_check_f SEQUENCE_constraint; + +#if !defined(ASN_DISABLE_BER_SUPPORT) +ber_type_decoder_f SEQUENCE_decode_ber; +der_type_encoder_f SEQUENCE_encode_der; +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +xer_type_decoder_f SEQUENCE_decode_xer; +xer_type_encoder_f SEQUENCE_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +jer_type_decoder_f SEQUENCE_decode_jer; +jer_type_encoder_f SEQUENCE_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +oer_type_decoder_f SEQUENCE_decode_oer; +oer_type_encoder_f SEQUENCE_encode_oer; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +per_type_decoder_f SEQUENCE_decode_uper; +per_type_encoder_f SEQUENCE_encode_uper; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +per_type_decoder_f SEQUENCE_decode_aper; +per_type_encoder_f SEQUENCE_encode_aper; +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +asn_random_fill_f SEQUENCE_random_fill; +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +extern asn_TYPE_operation_t asn_OP_SEQUENCE; + +#ifdef __cplusplus +} +#endif + +#endif /* _CONSTR_SEQUENCE_H_ */ diff --git a/asn.1/skeleton/constr_SEQUENCE_OF.c b/asn.1/skeleton/constr_SEQUENCE_OF.c new file mode 100644 index 00000000..6ec38885 --- /dev/null +++ b/asn.1/skeleton/constr_SEQUENCE_OF.c @@ -0,0 +1,95 @@ +/*- + * Copyright (c) 2003, 2004, 2006 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_TYPE_operation_t asn_OP_SEQUENCE_OF = { + SEQUENCE_OF_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + SEQUENCE_OF_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + SEQUENCE_OF_compare, + SEQUENCE_OF_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + SEQUENCE_OF_decode_ber, + SEQUENCE_OF_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + SEQUENCE_OF_decode_xer, + SEQUENCE_OF_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + SEQUENCE_OF_decode_jer, + SEQUENCE_OF_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + SEQUENCE_OF_decode_oer, /* Same as SET OF decoder. */ + SEQUENCE_OF_encode_oer, /* Same as SET OF encoder */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + SEQUENCE_OF_decode_uper, /* Same as SET OF decoder */ + SEQUENCE_OF_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + SEQUENCE_OF_decode_aper, + SEQUENCE_OF_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + SEQUENCE_OF_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; + +int +SEQUENCE_OF_compare(const asn_TYPE_descriptor_t *td, const void *aptr, + const void *bptr) { + const asn_anonymous_sequence_ *a = _A_CSEQUENCE_FROM_VOID(aptr); + const asn_anonymous_sequence_ *b = _A_CSEQUENCE_FROM_VOID(bptr); + ssize_t idx; + + if(a && b) { + ssize_t common_length = (a->count < b->count ? a->count : b->count); + for(idx = 0; idx < common_length; idx++) { + int ret = td->elements->type->op->compare_struct( + td->elements->type, a->array[idx], b->array[idx]); + if(ret) return ret; + } + + if(idx < b->count) /* more elements in b */ + return -1; /* a is shorter, so put it first */ + if(idx < a->count) return 1; + + } else if(!a) { + return -1; + } else if(!b) { + return 1; + } + + return 0; +} diff --git a/asn.1/skeleton/constr_SEQUENCE_OF.h b/asn.1/skeleton/constr_SEQUENCE_OF.h new file mode 100644 index 00000000..978ad8e2 --- /dev/null +++ b/asn.1/skeleton/constr_SEQUENCE_OF.h @@ -0,0 +1,69 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _CONSTR_SEQUENCE_OF_H_ +#define _CONSTR_SEQUENCE_OF_H_ + +#include +#include /* Implemented using SET OF */ + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * A set specialized functions dealing with the SEQUENCE OF type. + * Generally implemented using SET OF. + */ +#define SEQUENCE_OF_free SET_OF_free + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +#define SEQUENCE_OF_print SET_OF_print +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +asn_struct_compare_f SEQUENCE_OF_compare; +#define SEQUENCE_OF_copy SET_OF_copy + +#define SEQUENCE_OF_constraint SET_OF_constraint + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#define SEQUENCE_OF_decode_ber SET_OF_decode_ber +der_type_encoder_f SEQUENCE_OF_encode_der; +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#define SEQUENCE_OF_decode_xer SET_OF_decode_xer +xer_type_encoder_f SEQUENCE_OF_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +#define SEQUENCE_OF_decode_jer SET_OF_decode_jer +jer_type_encoder_f SEQUENCE_OF_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +#define SEQUENCE_OF_decode_oer SET_OF_decode_oer +#define SEQUENCE_OF_encode_oer SET_OF_encode_oer +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +#define SEQUENCE_OF_decode_uper SET_OF_decode_uper +per_type_encoder_f SEQUENCE_OF_encode_uper; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +#define SEQUENCE_OF_decode_aper SET_OF_decode_aper +per_type_encoder_f SEQUENCE_OF_encode_aper; +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +#define SEQUENCE_OF_random_fill SET_OF_random_fill +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +extern asn_TYPE_operation_t asn_OP_SEQUENCE_OF; + +#ifdef __cplusplus +} +#endif + +#endif /* _CONSTR_SET_OF_H_ */ diff --git a/asn.1/skeleton/constr_SEQUENCE_OF_aper.c b/asn.1/skeleton/constr_SEQUENCE_OF_aper.c new file mode 100644 index 00000000..ff3ae8bc --- /dev/null +++ b/asn.1/skeleton/constr_SEQUENCE_OF_aper.c @@ -0,0 +1,88 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_enc_rval_t +SEQUENCE_OF_encode_aper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + const asn_anonymous_sequence_ *list; + const asn_per_constraint_t *ct; + asn_enc_rval_t er = {0,0,0}; + asn_TYPE_member_t *elm = td->elements; + int seq; + + if(!sptr) ASN__ENCODE_FAILED; + list = _A_CSEQUENCE_FROM_VOID(sptr); + + er.encoded = 0; + + ASN_DEBUG("Encoding %s as SEQUENCE OF size (%d) using ALIGNED PER", td->name, list->count); + + if(constraints) ct = &constraints->size; + else if(td->encoding_constraints.per_constraints) + ct = &td->encoding_constraints.per_constraints->size; + else ct = 0; + + /* If extensible constraint, check if size is in root */ + if(ct) { + int not_in_root = (list->count < ct->lower_bound + || list->count > ct->upper_bound); + ASN_DEBUG("lb %lld ub %lld %s", + (long long int)ct->lower_bound, + (long long int)ct->upper_bound, + ct->flags & APC_EXTENSIBLE ? "ext" : "fix"); + if(ct->flags & APC_EXTENSIBLE) { + /* Declare whether size is in extension root */ + if(per_put_few_bits(po, not_in_root, 1)) + ASN__ENCODE_FAILED; + if(not_in_root) ct = 0; + } else if(not_in_root && ct->effective_bits >= 0) + ASN__ENCODE_FAILED; + } + + if(ct && ct->effective_bits >= 0) { + /* X.691, #19.5: No length determinant */ +/* + if(per_put_few_bits(po, list->count - ct->lower_bound, + ct->effective_bits)) + ASN__ENCODE_FAILED; +*/ + if (ct->lower_bound == ct->upper_bound && ct->upper_bound < 65536) { + /* No length determinant */ + } else if (aper_put_length(po, ct->lower_bound, ct->upper_bound, list->count - ct->lower_bound, 0) < 0) + ASN__ENCODE_FAILED; + } + + for(seq = -1; seq < list->count;) { + ssize_t mayEncode; + int need_eom = 0; + if(seq < 0) seq = 0; + if(ct && ct->effective_bits >= 0) { + mayEncode = list->count; + } else { + mayEncode = aper_put_length(po, -1, -1, list->count - seq, &need_eom); + if(mayEncode < 0) ASN__ENCODE_FAILED; + } + + while(mayEncode--) { + void *memb_ptr = list->array[seq++]; + if(!memb_ptr) ASN__ENCODE_FAILED; + er = elm->type->op->aper_encoder(elm->type, + elm->encoding_constraints.per_constraints, + memb_ptr, po); + if(er.encoded == -1) + ASN__ENCODE_FAILED; + } + + if(need_eom && (aper_put_length(po, -1, -1, 0, NULL) < 0)) + ASN__ENCODE_FAILED; /* End of Message length */ + } + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/constr_SEQUENCE_OF_ber.c b/asn.1/skeleton/constr_SEQUENCE_OF_ber.c new file mode 100644 index 00000000..178f8654 --- /dev/null +++ b/asn.1/skeleton/constr_SEQUENCE_OF_ber.c @@ -0,0 +1,88 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +/* + * The DER encoder of the SEQUENCE OF type. + */ +asn_enc_rval_t +SEQUENCE_OF_encode_der(const asn_TYPE_descriptor_t *td, const void *ptr, + int tag_mode, ber_tlv_tag_t tag, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_TYPE_member_t *elm = td->elements; + const asn_anonymous_sequence_ *list = _A_CSEQUENCE_FROM_VOID(ptr); + size_t computed_size = 0; + ssize_t encoding_size = 0; + asn_enc_rval_t erval = {0,0,0}; + int edx; + + ASN_DEBUG("Estimating size of SEQUENCE OF %s", td->name); + + /* + * Gather the length of the underlying members sequence. + */ + for(edx = 0; edx < list->count; edx++) { + void *memb_ptr = list->array[edx]; + if(!memb_ptr) continue; + erval = elm->type->op->der_encoder(elm->type, memb_ptr, + 0, elm->tag, + 0, 0); + if(erval.encoded == -1) + return erval; + computed_size += erval.encoded; + } + + /* + * Encode the TLV for the sequence itself. + */ + encoding_size = der_write_tags(td, computed_size, tag_mode, 1, tag, + cb, app_key); + if(encoding_size == -1) { + erval.encoded = -1; + erval.failed_type = td; + erval.structure_ptr = ptr; + return erval; + } + + computed_size += encoding_size; + if(!cb) { + erval.encoded = computed_size; + ASN__ENCODED_OK(erval); + } + + ASN_DEBUG("Encoding members of SEQUENCE OF %s", td->name); + + /* + * Encode all members. + */ + for(edx = 0; edx < list->count; edx++) { + void *memb_ptr = list->array[edx]; + if(!memb_ptr) continue; + erval = elm->type->op->der_encoder(elm->type, memb_ptr, + 0, elm->tag, + cb, app_key); + if(erval.encoded == -1) + return erval; + encoding_size += erval.encoded; + } + + if(computed_size != (size_t)encoding_size) { + /* + * Encoded size is not equal to the computed size. + */ + erval.encoded = -1; + erval.failed_type = td; + erval.structure_ptr = ptr; + } else { + erval.encoded = computed_size; + erval.structure_ptr = 0; + erval.failed_type = 0; + } + + return erval; +} diff --git a/asn.1/skeleton/constr_SEQUENCE_OF_jer.c b/asn.1/skeleton/constr_SEQUENCE_OF_jer.c new file mode 100644 index 00000000..b4bfdf42 --- /dev/null +++ b/asn.1/skeleton/constr_SEQUENCE_OF_jer.c @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_enc_rval_t +SEQUENCE_OF_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_enc_rval_t er = {0,0,0}; + const asn_SET_OF_specifics_t *specs = (const asn_SET_OF_specifics_t *)td->specifics; + const asn_TYPE_member_t *elm = td->elements; + const asn_anonymous_sequence_ *list = _A_CSEQUENCE_FROM_VOID(sptr); + int jmin = (flags & JER_F_MINIFIED); + int i; + + if(!sptr) ASN__ENCODE_FAILED; + + er.encoded = 0; + ASN__CALLBACK("[", 1); + + for(i = 0; i < list->count; i++) { + asn_enc_rval_t tmper = {0,0,0}; + void *memb_ptr = list->array[i]; + if(!memb_ptr) continue; + + if(!jmin) ASN__TEXT_INDENT(1, ilevel + 1); + tmper = elm->type->op->jer_encoder(elm->type, memb_ptr, ilevel + 1, + flags, cb, app_key); + if(tmper.encoded == -1) return tmper; + er.encoded += tmper.encoded; + if(tmper.encoded == 0 && specs->as_XMLValueList) { + const char *name = elm->type->xml_tag; + size_t len = strlen(name); + if(!jmin) ASN__TEXT_INDENT(1, ilevel + 1); + ASN__CALLBACK3("\"", 1, name, len, "\"", 1); + } + + if (i != list->count - 1) { + ASN__CALLBACK(",", 1); + } + } + + if(!jmin) ASN__TEXT_INDENT(1, ilevel); + ASN__CALLBACK("]", 1); + + ASN__ENCODED_OK(er); +cb_failed: + ASN__ENCODE_FAILED; +} diff --git a/asn.1/skeleton/constr_SEQUENCE_OF_uper.c b/asn.1/skeleton/constr_SEQUENCE_OF_uper.c new file mode 100644 index 00000000..31c28e4d --- /dev/null +++ b/asn.1/skeleton/constr_SEQUENCE_OF_uper.c @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_enc_rval_t +SEQUENCE_OF_encode_uper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + const asn_anonymous_sequence_ *list; + const asn_per_constraint_t *ct; + asn_enc_rval_t er = {0,0,0}; + const asn_TYPE_member_t *elm = td->elements; + size_t encoded_edx; + + if(!sptr) ASN__ENCODE_FAILED; + list = _A_CSEQUENCE_FROM_VOID(sptr); + + er.encoded = 0; + + ASN_DEBUG("Encoding %s as SEQUENCE OF (%d)", td->name, list->count); + + if(constraints) ct = &constraints->size; + else if(td->encoding_constraints.per_constraints) + ct = &td->encoding_constraints.per_constraints->size; + else ct = 0; + + /* If extensible constraint, check if size is in root */ + if(ct) { + int not_in_root = + (list->count < ct->lower_bound || list->count > ct->upper_bound); + ASN_DEBUG("lb %"ASN_PRIdMAX" ub %"ASN_PRIdMAX" %s", ct->lower_bound, ct->upper_bound, + ct->flags & APC_EXTENSIBLE ? "ext" : "fix"); + if(ct->flags & APC_EXTENSIBLE) { + /* Declare whether size is in extension root */ + if(per_put_few_bits(po, not_in_root, 1)) ASN__ENCODE_FAILED; + if(not_in_root) ct = 0; + } else if(not_in_root && ct->effective_bits >= 0) { + ASN__ENCODE_FAILED; + } + + } + + if(ct && ct->effective_bits >= 0) { + /* X.691, #19.5: No length determinant */ + if(per_put_few_bits(po, list->count - ct->lower_bound, + ct->effective_bits)) + ASN__ENCODE_FAILED; + } else if(list->count == 0) { + /* When the list is empty add only the length determinant + * X.691, #20.6 and #11.9.4.1 + */ + if (uper_put_length(po, 0, 0)) { + ASN__ENCODE_FAILED; + } + ASN__ENCODED_OK(er); + } + + for(encoded_edx = 0; (ssize_t)encoded_edx < list->count;) { + ssize_t may_encode; + size_t edx; + int need_eom = 0; + + if(ct && ct->effective_bits >= 0) { + may_encode = list->count; + } else { + may_encode = + uper_put_length(po, list->count - encoded_edx, &need_eom); + if(may_encode < 0) ASN__ENCODE_FAILED; + } + + for(edx = encoded_edx; edx < encoded_edx + may_encode; edx++) { + void *memb_ptr = list->array[edx]; + if(!memb_ptr) ASN__ENCODE_FAILED; + er = elm->type->op->uper_encoder( + elm->type, elm->encoding_constraints.per_constraints, memb_ptr, + po); + if(er.encoded == -1) ASN__ENCODE_FAILED; + } + + if(need_eom && uper_put_length(po, 0, 0)) + ASN__ENCODE_FAILED; /* End of Message length */ + + encoded_edx += may_encode; + } + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/constr_SEQUENCE_OF_xer.c b/asn.1/skeleton/constr_SEQUENCE_OF_xer.c new file mode 100644 index 00000000..7bd32367 --- /dev/null +++ b/asn.1/skeleton/constr_SEQUENCE_OF_xer.c @@ -0,0 +1,60 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +asn_enc_rval_t +SEQUENCE_OF_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_enc_rval_t er = {0,0,0}; + const asn_SET_OF_specifics_t *specs = (const asn_SET_OF_specifics_t *)td->specifics; + const asn_TYPE_member_t *elm = td->elements; + const asn_anonymous_sequence_ *list = _A_CSEQUENCE_FROM_VOID(sptr); + const char *mname = specs->as_XMLValueList + ? 0 + : ((*elm->name) ? elm->name : elm->type->xml_tag); + size_t mlen = mname ? strlen(mname) : 0; + int xcan = (flags & XER_F_CANONICAL); + int i; + + if(!sptr) ASN__ENCODE_FAILED; + + er.encoded = 0; + + for(i = 0; i < list->count; i++) { + asn_enc_rval_t tmper = {0,0,0}; + void *memb_ptr = list->array[i]; + if(!memb_ptr) continue; + + if(mname) { + if(!xcan) ASN__TEXT_INDENT(1, ilevel); + ASN__CALLBACK3("<", 1, mname, mlen, ">", 1); + } + + tmper = elm->type->op->xer_encoder(elm->type, memb_ptr, ilevel + 1, + flags, cb, app_key); + if(tmper.encoded == -1) return tmper; + er.encoded += tmper.encoded; + if(tmper.encoded == 0 && specs->as_XMLValueList) { + const char *name = elm->type->xml_tag; + size_t len = strlen(name); + if(!xcan) ASN__TEXT_INDENT(1, ilevel + 1); + ASN__CALLBACK3("<", 1, name, len, "/>", 2); + } + + if(mname) { + ASN__CALLBACK3("", 1); + } + } + + if(!xcan) ASN__TEXT_INDENT(1, ilevel - 1); + + ASN__ENCODED_OK(er); +cb_failed: + ASN__ENCODE_FAILED; +} diff --git a/asn.1/skeleton/constr_SEQUENCE_aper.c b/asn.1/skeleton/constr_SEQUENCE_aper.c new file mode 100644 index 00000000..895b6daf --- /dev/null +++ b/asn.1/skeleton/constr_SEQUENCE_aper.c @@ -0,0 +1,457 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include +#include + +/* + * Check whether we are inside the extensions group. + */ +#define IN_EXTENSION_GROUP(specs, memb_idx) \ + ((specs)->first_extension >= 0 \ + && (unsigned)(specs)->first_extension <= (memb_idx)) + +asn_dec_rval_t +SEQUENCE_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) { + const asn_SEQUENCE_specifics_t *specs = (const asn_SEQUENCE_specifics_t *)td->specifics; + void *st = *sptr; /* Target structure. */ + int extpresent; /* Extension additions are present */ + uint8_t *opres; /* Presence of optional root members */ + asn_per_data_t opmd; + asn_dec_rval_t rv; + size_t edx; + + (void)constraints; + + if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) + ASN__DECODE_FAILED; + + if(!st) { + st = *sptr = CALLOC(1, specs->struct_size); + if(!st) ASN__DECODE_FAILED; + } + + ASN_DEBUG("Decoding %s as SEQUENCE (APER)", td->name); + + /* Handle extensions */ + if(specs->first_extension < 0) { + extpresent = 0; + } else { + extpresent = per_get_few_bits(pd, 1); + if(extpresent < 0) ASN__DECODE_STARVED; + } + + /* Prepare a place and read-in the presence bitmap */ + memset(&opmd, 0, sizeof(opmd)); + if(specs->roms_count) { + opres = (uint8_t *)MALLOC(((specs->roms_count + 7) >> 3) + 1); + if(!opres) ASN__DECODE_FAILED; + /* Get the presence map */ + if(per_get_many_bits(pd, opres, 0, specs->roms_count)) { + FREEMEM(opres); + ASN__DECODE_STARVED; + } + opmd.buffer = opres; + opmd.nbits = specs->roms_count; + ASN_DEBUG("Read in presence bitmap for %s of %d bits (%x..)", + td->name, specs->roms_count, *opres); + } else { + opres = 0; + } + + /* + * Get the sequence ROOT elements. + */ + for(edx = 0; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ +#if 0 + int padding; +#endif + + if(IN_EXTENSION_GROUP(specs, edx)) + continue; + + /* Fetch the pointer to this member */ + if(elm->flags & ATF_POINTER) { + memb_ptr2 = (void **)((char *)st + elm->memb_offset); + } else { + memb_ptr = (char *)st + elm->memb_offset; + memb_ptr2 = &memb_ptr; + } +#if 0 + /* Get Padding */ + padding = (8 - (pd->moved % 8)) % 8; + if(padding > 0) + ASN_DEBUG("For element %s,offset= %ld Padding bits = %d", td->name, pd->moved, padding); +#if 0 /* old way of removing padding */ + per_get_few_bits(pd, padding); +#else /* Experimental fix proposed by @mhanna123 */ + if(edx != (td->elements_count-1)) + per_get_few_bits(pd, padding); + else { + if(specs->roms_count && (padding > 0)) + ASN_DEBUG(">>>>> not skipping padding of %d bits for element:%ld out of %d", padding, edx, td->elements_count); + else + per_get_few_bits(pd, padding); + } +#endif /* dealing with padding */ +#endif + /* Deal with optionality */ + if(elm->optional) { + int present = per_get_few_bits(&opmd, 1); + ASN_DEBUG("Member %s->%s is optional, p=%d (%d->%d)", + td->name, elm->name, present, + (int)opmd.nboff, (int)opmd.nbits); + if(present == 0) { + /* This element is not present */ + if(elm->default_value_set) { + /* Fill-in DEFAULT */ + if(elm->default_value_set(memb_ptr2)) { + FREEMEM(opres); + ASN__DECODE_FAILED; + } + ASN_DEBUG("Filled-in default"); + } + /* The member is just not present */ + continue; + } + /* Fall through */ + } + + /* Fetch the member from the stream */ + ASN_DEBUG("Decoding member \"%s\" in %s", elm->name, td->name); + + if(elm->flags & ATF_OPEN_TYPE) { + if (OPEN_TYPE_aper_is_unknown_type(td, st, elm)) { + rv = OPEN_TYPE_aper_unknown_type_discard_bytes(pd); + FREEMEM(opres); + return rv; + } + rv = OPEN_TYPE_aper_get(opt_codec_ctx, td, st, elm, pd); + } else { + rv = elm->type->op->aper_decoder(opt_codec_ctx, elm->type, + elm->encoding_constraints.per_constraints, + memb_ptr2, pd); + } + if(rv.code != RC_OK) { + ASN_DEBUG("Failed decode %s in %s", + elm->name, td->name); + FREEMEM(opres); + return rv; + } + } + + /* Optionality map is not needed anymore */ + FREEMEM(opres); + + /* + * Deal with extensions. + */ + if(extpresent) { + ssize_t bmlength; + uint8_t *epres; /* Presence of extension members */ + asn_per_data_t epmd; + + bmlength = aper_get_nslength(pd); + if(bmlength < 0) ASN__DECODE_STARVED; + + ASN_DEBUG("Extensions %" ASN_PRI_SSIZE " present in %s", bmlength, td->name); + + epres = (uint8_t *)MALLOC((bmlength + 15) >> 3); + if(!epres) ASN__DECODE_STARVED; + + /* Get the extensions map */ + if(per_get_many_bits(pd, epres, 0, bmlength)) + ASN__DECODE_STARVED; + + memset(&epmd, 0, sizeof(epmd)); + epmd.buffer = epres; + epmd.nbits = bmlength; + ASN_DEBUG("Read in extensions bitmap for %s of %zd bits (%x..)", + td->name, bmlength, *epres); + + /* Deal with padding */ + if (aper_get_align(pd) < 0) + ASN__DECODE_STARVED; + + /* Go over extensions and read them in */ + for(edx = specs->first_extension; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + int present; + + if(!IN_EXTENSION_GROUP(specs, edx)) { + ASN_DEBUG("%zu is not extension", edx); + continue; + } + + /* Fetch the pointer to this member */ + if(elm->flags & ATF_POINTER) { + memb_ptr2 = (void **)((char *)st + elm->memb_offset); + } else { + memb_ptr = (void *)((char *)st + elm->memb_offset); + memb_ptr2 = &memb_ptr; + } + + present = per_get_few_bits(&epmd, 1); + if(present <= 0) { + if(present < 0) break; /* No more extensions */ + continue; + } + + ASN_DEBUG("Decoding member %s in %s %p", elm->name, td->name, *memb_ptr2); + rv = aper_open_type_get(opt_codec_ctx, elm->type, + elm->encoding_constraints.per_constraints, + memb_ptr2, pd); + if(rv.code != RC_OK) { + FREEMEM(epres); + return rv; + } + } + + /* Skip over overflow extensions which aren't present + * in this system's version of the protocol */ + for(;;) { + ASN_DEBUG("Getting overflow extensions"); + switch(per_get_few_bits(&epmd, 1)) { + case -1: + break; + case 0: + continue; + default: + if(aper_open_type_skip(opt_codec_ctx, pd)) { + FREEMEM(epres); + ASN__DECODE_STARVED; + } + } + break; + } + + FREEMEM(epres); + } + + /* Fill DEFAULT members in extensions */ + for(edx = specs->roms_count; edx < specs->roms_count + + specs->aoms_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + void **memb_ptr2; /* Pointer to member pointer */ + + if(!elm->default_value_set) continue; + + /* Fetch the pointer to this member */ + if(elm->flags & ATF_POINTER) { + memb_ptr2 = (void **)((char *)st + elm->memb_offset); + if(*memb_ptr2) continue; + } else { + continue; /* Extensions are all optionals */ + } + + /* Set default value */ + if(elm->default_value_set(memb_ptr2)) { + ASN__DECODE_FAILED; + } + } + + rv.consumed = 0; + rv.code = RC_OK; + return rv; +} + +static int +SEQUENCE_handle_extensions_aper(const asn_TYPE_descriptor_t *td, + const void *sptr, + asn_per_outp_t *po1, asn_per_outp_t *po2) { + const asn_SEQUENCE_specifics_t *specs + = (const asn_SEQUENCE_specifics_t *)td->specifics; + int exts_present = 0; + int exts_count = 0; + size_t edx; + + if(specs->first_extension < 0) { + return 0; + } + + /* Find out which extensions are present */ + for(edx = specs->first_extension; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + const void *memb_ptr; /* Pointer to the member */ + const void * const *memb_ptr2; /* Pointer to that pointer */ + int present; + + if(!IN_EXTENSION_GROUP(specs, edx)) { + ASN_DEBUG("%s (@%zu) is not extension", elm->type->name, edx); + continue; + } + + /* Fetch the pointer to this member */ + if(elm->flags & ATF_POINTER) { + memb_ptr2 = (const void * const *)((const char *)sptr + elm->memb_offset); + present = (*memb_ptr2 != 0); + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + memb_ptr2 = &memb_ptr; + present = 1; + } + + ASN_DEBUG("checking %s (@%zu) present => %d", + elm->type->name, edx, present); + exts_count++; + exts_present += present; + + /* Encode as presence marker */ + if(po1 && per_put_few_bits(po1, present, 1)) + return -1; + /* Encode as open type field */ + if(po2 && present && aper_open_type_put(elm->type, + elm->encoding_constraints.per_constraints, + *memb_ptr2, po2)) + return -1; + + } + + return exts_present ? exts_count : 0; +} + +asn_enc_rval_t +SEQUENCE_encode_aper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po) { + const asn_SEQUENCE_specifics_t *specs + = (const asn_SEQUENCE_specifics_t *)td->specifics; + asn_enc_rval_t er = {0,0,0}; + int n_extensions; + size_t edx; + size_t i; + + (void)constraints; + + if(!sptr) + ASN__ENCODE_FAILED; + + er.encoded = 0; + + ASN_DEBUG("Encoding %s as SEQUENCE (APER)", td->name); + + /* + * X.691#18.1 Whether structure is extensible + * and whether to encode extensions + */ + if(specs->first_extension < 0) { + n_extensions = 0; /* There are no extensions to encode */ + } else { + n_extensions = SEQUENCE_handle_extensions_aper(td, sptr, 0, 0); + if(n_extensions < 0) ASN__ENCODE_FAILED; + if(per_put_few_bits(po, n_extensions ? 1 : 0, 1)) { + ASN__ENCODE_FAILED; + } + } + + /* Encode a presence bitmap */ + for(i = 0; i < specs->roms_count; i++) { + asn_TYPE_member_t *elm; + const void *memb_ptr; /* Pointer to the member */ + const void * const *memb_ptr2; /* Pointer to that pointer */ + int present; + + edx = specs->oms[i]; + elm = &td->elements[edx]; + + /* Fetch the pointer to this member */ + if(elm->flags & ATF_POINTER) { + memb_ptr2 = (const void * const *)((const char *)sptr + elm->memb_offset); + present = (*memb_ptr2 != 0); + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + memb_ptr2 = &memb_ptr; + present = 1; + } + + /* Eliminate default values */ + if(present && elm->default_value_cmp + && elm->default_value_cmp(*memb_ptr2) == 0) + present = 0; + + ASN_DEBUG("Element %s %s %s->%s is %s", + elm->flags & ATF_POINTER ? "ptr" : "inline", + elm->default_value_cmp ? "def" : "wtv", + td->name, elm->name, present ? "present" : "absent"); + if(per_put_few_bits(po, present, 1)) + ASN__ENCODE_FAILED; + } + + /* + * Encode the sequence ROOT elements. + */ + ASN_DEBUG("first_extension = %d, elements = %d", specs->first_extension, + td->elements_count); + for(edx = 0; + edx < ((specs->first_extension < 0) ? td->elements_count + : (size_t)specs->first_extension); + edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + const void *memb_ptr; /* Pointer to the member */ + const void * const *memb_ptr2; /* Pointer to that pointer */ + + if(IN_EXTENSION_GROUP(specs, edx)) + continue; + + ASN_DEBUG("About to encode %s", elm->type->name); + + /* Fetch the pointer to this member */ + if(elm->flags & ATF_POINTER) { + memb_ptr2 = (const void * const *)((const char *)sptr + elm->memb_offset); + if(!*memb_ptr2) { + ASN_DEBUG("Element %s %zu not present", + elm->name, edx); + if(elm->optional) + continue; + /* Mandatory element is missing */ + ASN__ENCODE_FAILED; + } + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + memb_ptr2 = &memb_ptr; + } + + /* Eliminate default values */ + if(elm->default_value_cmp && elm->default_value_cmp(*memb_ptr2) == 0) + continue; + + ASN_DEBUG("Encoding %s->%s", td->name, elm->name); + er = elm->type->op->aper_encoder(elm->type, + elm->encoding_constraints.per_constraints, + *memb_ptr2, po); + if(er.encoded == -1) + return er; + } + + /* No extensions to encode */ + if(!n_extensions) ASN__ENCODED_OK(er); + + ASN_DEBUG("Length of %d bit-map", n_extensions); + /* #18.8. Write down the presence bit-map length. */ + if(aper_put_nslength(po, n_extensions)) + ASN__ENCODE_FAILED; + + ASN_DEBUG("Bit-map of %d elements", n_extensions); + /* #18.7. Encoding the extensions presence bit-map. */ + /* TODO: act upon NOTE in #18.7 for canonical PER */ + if(SEQUENCE_handle_extensions_aper(td, sptr, po, 0) != n_extensions) + ASN__ENCODE_FAILED; + + ASN_DEBUG("Writing %d extensions", n_extensions); + /* #18.9. Encode extensions as open type fields. */ + if(SEQUENCE_handle_extensions_aper(td, sptr, 0, po) != n_extensions) + ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/constr_SEQUENCE_ber.c b/asn.1/skeleton/constr_SEQUENCE_ber.c new file mode 100644 index 00000000..e982172d --- /dev/null +++ b/asn.1/skeleton/constr_SEQUENCE_ber.c @@ -0,0 +1,612 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +/* + * Number of bytes left for this structure. + * (ctx->left) indicates the number of bytes _transferred_ for the structure. + * (size) contains the number of bytes in the buffer passed. + */ +#define LEFT ((size<(size_t)ctx->left)?size:(size_t)ctx->left) + +/* + * If the subprocessor function returns with an indication that it wants + * more data, it may well be a fatal decoding problem, because the + * size is constrained by the 's L, even if the buffer size allows + * reading more data. + * For example, consider the buffer containing the following TLVs: + * ... + * The TLV length clearly indicates that one byte is expected in V, but + * if the V processor returns with "want more data" even if the buffer + * contains way more data than the V processor have seen. + */ +#define SIZE_VIOLATION (ctx->left >= 0 && (size_t)ctx->left <= size) + +/* + * This macro "eats" the part of the buffer which is definitely "consumed", + * i.e. was correctly converted into local representation or rightfully skipped. + */ +#undef ADVANCE +#define ADVANCE(num_bytes) \ + do { \ + size_t num = num_bytes; \ + ptr = ((const char *)ptr) + num; \ + size -= num; \ + if(ctx->left >= 0) \ + ctx->left -= num; \ + consumed_myself += num; \ + } while(0) + +/* + * Switch to the next phase of parsing. + */ +#undef NEXT_PHASE +#define NEXT_PHASE(ctx) \ + do { \ + ctx->phase++; \ + ctx->step = 0; \ + } while(0) +#undef PHASE_OUT +#define PHASE_OUT(ctx) \ + do { \ + ctx->phase = 10; \ + } while(0) + +/* + * Return a standardized complex structure. + */ +#undef RETURN +#define RETURN(_code) \ + do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) + +/* + * Check whether we are inside the extensions group. + */ +#define IN_EXTENSION_GROUP(specs, memb_idx) \ + ((specs)->first_extension >= 0 \ + && (unsigned)(specs)->first_extension <= (memb_idx)) + +/* + * Tags are canonically sorted in the tag2element map. + */ +static int +_t2e_cmp(const void *ap, const void *bp) { + const asn_TYPE_tag2member_t *a = (const asn_TYPE_tag2member_t *)ap; + const asn_TYPE_tag2member_t *b = (const asn_TYPE_tag2member_t *)bp; + + int a_class = BER_TAG_CLASS(a->el_tag); + int b_class = BER_TAG_CLASS(b->el_tag); + + if(a_class == b_class) { + ber_tlv_tag_t a_value = BER_TAG_VALUE(a->el_tag); + ber_tlv_tag_t b_value = BER_TAG_VALUE(b->el_tag); + + if(a_value == b_value) { + if(a->el_no > b->el_no) + return 1; + /* + * Important: we do not check + * for a->el_no <= b->el_no! + */ + return 0; + } else if(a_value < b_value) + return -1; + else + return 1; + } else if(a_class < b_class) { + return -1; + } else { + return 1; + } +} + +/* + * The decoder of the SEQUENCE type. + */ +asn_dec_rval_t +SEQUENCE_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **struct_ptr, + const void *ptr, size_t size, int tag_mode) { + /* + * Bring closer parts of structure description. + */ + const asn_SEQUENCE_specifics_t *specs = (const asn_SEQUENCE_specifics_t *)td->specifics; + const asn_TYPE_member_t *elements = td->elements; + + /* + * Parts of the structure being constructed. + */ + void *st = *struct_ptr; /* Target structure. */ + asn_struct_ctx_t *ctx; /* Decoder context */ + + ber_tlv_tag_t tlv_tag; /* T from TLV */ + asn_dec_rval_t rval; /* Return code from subparsers */ + + ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ + size_t edx; /* SEQUENCE element's index */ + + ASN_DEBUG("Decoding %s as SEQUENCE", td->name); + + /* + * Create the target structure if it is not present already. + */ + if(st == 0) { + st = *struct_ptr = CALLOC(1, specs->struct_size); + if(st == 0) { + RETURN(RC_FAIL); + } + } + + /* + * Restore parsing context. + */ + ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + + /* + * Start to parse where left previously + */ + switch(ctx->phase) { + case 0: + /* + * PHASE 0. + * Check that the set of tags associated with given structure + * perfectly fits our expectations. + */ + + rval = ber_check_tags(opt_codec_ctx, td, ctx, ptr, size, + tag_mode, 1, &ctx->left, 0); + if(rval.code != RC_OK) { + ASN_DEBUG("%s tagging check failed: %d", + td->name, rval.code); + return rval; + } + + if(ctx->left >= 0) + ctx->left += rval.consumed; /* ?Subtracted below! */ + ADVANCE(rval.consumed); + + NEXT_PHASE(ctx); + + ASN_DEBUG("Structure consumes %ld bytes, buffer %ld", + (long)ctx->left, (long)size); + + /* Fall through */ + case 1: + /* + * PHASE 1. + * From the place where we've left it previously, + * try to decode the next member from the list of + * this structure's elements. + * (ctx->step) stores the member being processed + * between invocations and the microphase {0,1} of parsing + * that member: + * step = ( * 2 + ). + */ + for(edx = ((size_t)ctx->step >> 1); edx < td->elements_count; + edx++, ctx->step = (ctx->step & ~1) + 2) { + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + ssize_t tag_len; /* Length of TLV's T */ + size_t opt_edx_end; /* Next non-optional element */ + size_t n; + int use_bsearch; + + if(ctx->step & 1) + goto microphase2; + + /* + * MICROPHASE 1: Synchronize decoding. + */ + ASN_DEBUG("In %s SEQUENCE left %d, edx=%" ASN_PRI_SIZE " flags=%d" + " opt=%d ec=%d", + td->name, (int)ctx->left, edx, + elements[edx].flags, elements[edx].optional, + td->elements_count); + + if(ctx->left == 0 /* No more stuff is expected */ + && ( + /* Explicit OPTIONAL specification reaches the end */ + (edx + elements[edx].optional == td->elements_count) || + /* All extensions are optional */ + IN_EXTENSION_GROUP(specs, edx))) { + ASN_DEBUG("End of SEQUENCE %s", td->name); + /* + * Found the legitimate end of the structure. + */ + PHASE_OUT(ctx); + RETURN(RC_OK); + } + + /* + * Fetch the T from TLV. + */ + tag_len = ber_fetch_tag(ptr, LEFT, &tlv_tag); + ASN_DEBUG("Current tag in %s SEQUENCE for element %" ASN_PRI_SIZE " " + "(%s) is %s encoded in %d bytes, of frame %ld", + td->name, edx, elements[edx].name, + ber_tlv_tag_string(tlv_tag), (int)tag_len, (long)LEFT); + switch(tag_len) { + case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); + /* Fall through */ + case -1: RETURN(RC_FAIL); + } + + if(ctx->left < 0 && ((const uint8_t *)ptr)[0] == 0) { + if(LEFT < 2) { + if(SIZE_VIOLATION) { + RETURN(RC_FAIL); + } else { + RETURN(RC_WMORE); + } + } else if(((const uint8_t *)ptr)[1] == 0) { + ASN_DEBUG("edx = %" ASN_PRI_SIZE ", opt = %d, ec=%d", edx, + elements[edx].optional, td->elements_count); + if((edx + elements[edx].optional == td->elements_count) + || IN_EXTENSION_GROUP(specs, edx)) { + /* + * Yeah, baby! Found the terminator + * of the indefinite length structure. + */ + /* + * Proceed to the canonical + * finalization function. + * No advancing is necessary. + */ + goto phase3; + } + } + } + + /* + * Find the next available type with this tag. + */ + use_bsearch = 0; + opt_edx_end = edx + elements[edx].optional + 1; + if(opt_edx_end > td->elements_count) + opt_edx_end = td->elements_count; /* Cap */ + else if(opt_edx_end - edx > 8) { + /* Limit the scope of linear search... */ + opt_edx_end = edx + 8; + use_bsearch = 1; + /* ... and resort to bsearch() */ + } + for(n = edx; n < opt_edx_end; n++) { + if(BER_TAGS_EQUAL(tlv_tag, elements[n].tag)) { + /* + * Found element corresponding to the tag + * being looked at. + * Reposition over the right element. + */ + edx = n; + ctx->step = 1 + 2 * edx; /* Remember! */ + goto microphase2; + } else if(elements[n].flags & ATF_ANY_TYPE) { + /* + * This is the ANY type, which may bear + * any flag whatsoever. + */ + edx = n; + ctx->step = 1 + 2 * edx; /* Remember! */ + goto microphase2; + } else if(elements[n].tag == (ber_tlv_tag_t)-1) { + use_bsearch = 1; + break; + } + } + if(use_bsearch) { + /* + * Resort to a binary search over + * sorted array of tags. + */ + const asn_TYPE_tag2member_t *t2m; + asn_TYPE_tag2member_t key = {0, 0, 0, 0}; + key.el_tag = tlv_tag; + key.el_no = edx; + t2m = (const asn_TYPE_tag2member_t *)bsearch(&key, + specs->tag2el, specs->tag2el_count, + sizeof(specs->tag2el[0]), _t2e_cmp); + if(t2m) { + const asn_TYPE_tag2member_t *best = 0; + const asn_TYPE_tag2member_t *t2m_f, *t2m_l; + size_t edx_max = edx + elements[edx].optional; + /* + * Rewind to the first element with that tag, + * `cause bsearch() does not guarantee order. + */ + t2m_f = t2m + t2m->toff_first; + t2m_l = t2m + t2m->toff_last; + for(t2m = t2m_f; t2m <= t2m_l; t2m++) { + if(t2m->el_no > edx_max) break; + if(t2m->el_no < edx) continue; + best = t2m; + } + if(best) { + edx = best->el_no; + ctx->step = 1 + 2 * edx; + goto microphase2; + } + } + n = opt_edx_end; + } + if(n == opt_edx_end) { + /* + * If tag is unknown, it may be either + * an unknown (thus, incorrect) tag, + * or an extension (...), + * or an end of the indefinite-length structure. + */ + if(!IN_EXTENSION_GROUP(specs, + edx + elements[edx].optional)) { + ASN_DEBUG("Unexpected tag %s (at %" ASN_PRI_SIZE ")", + ber_tlv_tag_string(tlv_tag), edx); + ASN_DEBUG("Expected tag %s (%s)%s", + ber_tlv_tag_string(elements[edx].tag), + elements[edx].name, + elements[edx].optional ?" or alternatives":""); + RETURN(RC_FAIL); + } else { + /* Skip this tag */ + ssize_t skip; + edx += elements[edx].optional; + + ASN_DEBUG("Skipping unexpected %s (at %" ASN_PRI_SIZE ")", + ber_tlv_tag_string(tlv_tag), edx); + skip = ber_skip_length(opt_codec_ctx, + BER_TLV_CONSTRUCTED(ptr), + (const char *)ptr + tag_len, + LEFT - tag_len); + ASN_DEBUG("Skip length %d in %s", + (int)skip, td->name); + switch(skip) { + case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); + /* Fall through */ + case -1: RETURN(RC_FAIL); + } + + ADVANCE(skip + tag_len); + ctx->step -= 2; + edx--; + continue; /* Try again with the next tag */ + } + } + + /* + * MICROPHASE 2: Invoke the member-specific decoder. + */ + ctx->step |= 1; /* Confirm entering next microphase */ + microphase2: + ASN_DEBUG("Inside SEQUENCE %s MF2", td->name); + + /* + * Compute the position of the member inside a structure, + * and also a type of containment (it may be contained + * as pointer or using inline inclusion). + */ + if(elements[edx].flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr2 = (void **)((char *)st + elements[edx].memb_offset); + } else { + /* + * A pointer to a pointer + * holding the start of the structure + */ + memb_ptr = (char *)st + elements[edx].memb_offset; + memb_ptr2 = &memb_ptr; + } + /* + * Invoke the member fetch routine according to member's type + */ + if(elements[edx].flags & ATF_OPEN_TYPE) { + rval = OPEN_TYPE_ber_get(opt_codec_ctx, td, st, &elements[edx], ptr, LEFT); + } else { + rval = elements[edx].type->op->ber_decoder(opt_codec_ctx, + elements[edx].type, + memb_ptr2, ptr, LEFT, + elements[edx].tag_mode); + } + ASN_DEBUG("In %s SEQUENCE decoded %" ASN_PRI_SIZE " %s of %d " + "in %d bytes rval.code %d, size=%d", + td->name, edx, elements[edx].type->name, + (int)LEFT, (int)rval.consumed, rval.code, (int)size); + switch(rval.code) { + case RC_OK: + break; + case RC_WMORE: /* More data expected */ + if(!SIZE_VIOLATION) { + ADVANCE(rval.consumed); + RETURN(RC_WMORE); + } + ASN_DEBUG("Size violation (c->l=%ld <= s=%ld)", + (long)ctx->left, (long)size); + /* Fall through */ + case RC_FAIL: /* Fatal error */ + RETURN(RC_FAIL); + } /* switch(rval) */ + + ADVANCE(rval.consumed); + } /* for(all structure members) */ + + phase3: + ctx->phase = 3; + /* Fall through */ + case 3: /* 00 and other tags expected */ + case 4: /* only 00's expected */ + + ASN_DEBUG("SEQUENCE %s Leftover: %ld, size = %ld", + td->name, (long)ctx->left, (long)size); + + /* + * Skip everything until the end of the SEQUENCE. + */ + while(ctx->left) { + ssize_t tl, ll; + + tl = ber_fetch_tag(ptr, LEFT, &tlv_tag); + switch(tl) { + case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); + /* Fall through */ + case -1: RETURN(RC_FAIL); + } + + /* + * If expected <0><0>... + */ + if(ctx->left < 0 && ((const uint8_t *)ptr)[0] == 0) { + if(LEFT < 2) { + if(SIZE_VIOLATION) + RETURN(RC_FAIL); + else + RETURN(RC_WMORE); + } else if(((const uint8_t *)ptr)[1] == 0) { + /* + * Correctly finished with <0><0>. + */ + ADVANCE(2); + ctx->left++; + ctx->phase = 4; + continue; + } + } + + if(!IN_EXTENSION_GROUP(specs, td->elements_count) + || ctx->phase == 4) { + ASN_DEBUG("Unexpected continuation " + "of a non-extensible type " + "%s (SEQUENCE): %s", + td->name, + ber_tlv_tag_string(tlv_tag)); + RETURN(RC_FAIL); + } + + ll = ber_skip_length(opt_codec_ctx, + BER_TLV_CONSTRUCTED(ptr), + (const char *)ptr + tl, LEFT - tl); + switch(ll) { + case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); + /* Fall through */ + case -1: RETURN(RC_FAIL); + } + + ADVANCE(tl + ll); + } + + PHASE_OUT(ctx); + } + + RETURN(RC_OK); +} + + +/* + * The DER encoder of the SEQUENCE type. + */ +asn_enc_rval_t +SEQUENCE_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, + int tag_mode, ber_tlv_tag_t tag, + asn_app_consume_bytes_f *cb, void *app_key) { + size_t computed_size = 0; + asn_enc_rval_t erval = {0,0,0}; + ssize_t ret; + size_t edx; + + ASN_DEBUG("%s %s as SEQUENCE", + cb?"Encoding":"Estimating", td->name); + + /* + * Gather the length of the underlying members sequence. + */ + for(edx = 0; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + + const void *memb_ptr; /* Pointer to the member */ + const void *const *memb_ptr2; /* Pointer to that pointer */ + + if(elm->flags & ATF_POINTER) { + memb_ptr2 = + (const void *const *)((const char *)sptr + elm->memb_offset); + if(!*memb_ptr2) { + ASN_DEBUG("Element %s %" ASN_PRI_SIZE " not present", + elm->name, edx); + if(elm->optional) + continue; + /* Mandatory element is missing */ + ASN__ENCODE_FAILED; + } + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + memb_ptr2 = &memb_ptr; + } + + /* Eliminate default values */ + if(elm->default_value_cmp && elm->default_value_cmp(*memb_ptr2) == 0) + continue; + + erval = elm->type->op->der_encoder(elm->type, *memb_ptr2, + elm->tag_mode, elm->tag, + 0, 0); + if(erval.encoded == -1) + return erval; + computed_size += erval.encoded; + ASN_DEBUG("Member %" ASN_PRI_SIZE " %s estimated %ld bytes", + edx, elm->name, (long)erval.encoded); + } + + /* + * Encode the TLV for the sequence itself. + */ + ret = der_write_tags(td, computed_size, tag_mode, 1, tag, cb, app_key); + ASN_DEBUG("Wrote tags: %ld (+%ld)", (long)ret, (long)computed_size); + if(ret == -1) + ASN__ENCODE_FAILED; + erval.encoded = computed_size + ret; + + if(!cb) ASN__ENCODED_OK(erval); + + /* + * Encode all members. + */ + for(edx = 0; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + asn_enc_rval_t tmperval = {0,0,0}; + const void *memb_ptr; /* Pointer to the member */ + const void *const *memb_ptr2; /* Pointer to that pointer */ + + if(elm->flags & ATF_POINTER) { + memb_ptr2 = + (const void *const *)((const char *)sptr + elm->memb_offset); + if(!*memb_ptr2) continue; + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + memb_ptr2 = &memb_ptr; + } + + /* Eliminate default values */ + if(elm->default_value_cmp && elm->default_value_cmp(*memb_ptr2) == 0) + continue; + + tmperval = elm->type->op->der_encoder(elm->type, *memb_ptr2, + elm->tag_mode, elm->tag, cb, app_key); + if(tmperval.encoded == -1) + return tmperval; + computed_size -= tmperval.encoded; + ASN_DEBUG("Member %" ASN_PRI_SIZE " %s of SEQUENCE %s encoded in %ld bytes", + edx, elm->name, td->name, (long)tmperval.encoded); + } + + if(computed_size != 0) + /* + * Encoded size is not equal to the computed size. + */ + ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(erval); +} diff --git a/asn.1/skeleton/constr_SEQUENCE_jer.c b/asn.1/skeleton/constr_SEQUENCE_jer.c new file mode 100644 index 00000000..4d08adac --- /dev/null +++ b/asn.1/skeleton/constr_SEQUENCE_jer.c @@ -0,0 +1,375 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +/* + * Return a standardized complex structure. + */ +#undef RETURN +#define RETURN(_code) \ + do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) + +/* + * Check whether we are inside the extensions group. + */ +#define IN_EXTENSION_GROUP(specs, memb_idx) \ + ((specs)->first_extension >= 0 \ + && (unsigned)(specs)->first_extension <= (memb_idx)) + +#undef JER_ADVANCE +#define JER_ADVANCE(num_bytes) \ + do { \ + size_t num = (num_bytes); \ + ptr = ((const char *)ptr) + num; \ + size -= num; \ + consumed_myself += num; \ + } while(0) + +/* + * Decode the JER (JSON) data. + */ +asn_dec_rval_t +SEQUENCE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **struct_ptr, + const void *ptr, size_t size) { + /* + * Bring closer parts of structure description. + */ + const asn_SEQUENCE_specifics_t *specs + = (const asn_SEQUENCE_specifics_t *)td->specifics; + asn_TYPE_member_t *elements = td->elements; + + /* + * ... and parts of the structure being constructed. + */ + void *st = *struct_ptr; /* Target structure. */ + asn_struct_ctx_t *ctx; /* Decoder context */ + + asn_dec_rval_t rval; /* Return value from a decoder */ + ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ + ssize_t edx; /* Element index */ + + /* + * Create the target structure if it is not present already. + */ + if(st == 0) { + st = *struct_ptr = CALLOC(1, specs->struct_size); + if(st == 0) RETURN(RC_FAIL); + } + + /* + * Restore parsing context. + */ + ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + + /* + * Phases of JER/JSON processing: + * Phase 0: Check that the key matches our expectations. + * Phase 1: Processing body and reacting on closing token. + * Phase 2: Processing inner type. + * Phase 3: Skipping unknown extensions. + * Phase 4: PHASED OUT + */ + for(edx = ctx->step; ctx->phase <= 3;) { + pjer_chunk_type_e ch_type; /* JER chunk type */ + ssize_t ch_size; /* Chunk size */ + jer_check_sym_e scv; /* Tag check value */ + asn_TYPE_member_t *elm; + + + /* + * Go inside the inner member of a sequence. + */ + if(ctx->phase == 2) { + asn_dec_rval_t tmprval; + void *memb_ptr_dontuse; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + + elm = &td->elements[edx]; + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr2 = (void **)((char *)st + elm->memb_offset); + } else { + memb_ptr_dontuse = (char *)st + elm->memb_offset; + memb_ptr2 = &memb_ptr_dontuse; /* Only use of memb_ptr_dontuse */ + } + + if(elm->flags & ATF_OPEN_TYPE) { + tmprval = OPEN_TYPE_jer_get(opt_codec_ctx, td, st, elm, ptr, size); + } else { + /* Invoke the inner type decoder, m.b. multiple times */ + tmprval = elm->type->op->jer_decoder(opt_codec_ctx, + elm->type, memb_ptr2, + ptr, size); + } + JER_ADVANCE(tmprval.consumed); + if(tmprval.code != RC_OK) + RETURN(tmprval.code); + ctx->phase = 1; /* Back to body processing */ + ctx->step = ++edx; + ASN_DEBUG("JER/SEQUENCE phase => %d, step => %d", + ctx->phase, ctx->step); + /* Fall through */ + } + + /* + * Get the next part of the JSON stream. + */ + ch_size = jer_next_token(&ctx->context, ptr, size, + &ch_type); + if(ch_size == -1) { + RETURN(RC_FAIL); + } else { + switch(ch_type) { + case PJER_WMORE: + RETURN(RC_WMORE); + + case PJER_TEXT: /* Ignore free-standing text */ + JER_ADVANCE(ch_size); /* Skip silently */ + continue; + + case PJER_DLM: + case PJER_VALUE: + case PJER_KEY: + break; /* Check the rest down there */ + } + } + + scv = jer_check_sym(ptr, ch_size, NULL); + ASN_DEBUG("JER/SEQUENCE: scv = %d, ph=%d [%s]", + scv, ctx->phase, td->name); + + + /* Skip the extensions section */ + if(ctx->phase == 3) { + switch(jer_skip_unknown(scv, &ctx->left)) { + case -1: + ctx->phase = 4; + RETURN(RC_FAIL); + case 0: + JER_ADVANCE(ch_size); + continue; + case 1: + JER_ADVANCE(ch_size); + ctx->phase = 1; + continue; + case 2: + ctx->phase = 1; + break; + } + } + + switch(scv) { + case JCK_OEND: + if(ctx->phase == 0) break; + ctx->phase = 0; + + if(edx >= td->elements_count || + /* Explicit OPTIONAL specs reaches the end */ + (edx + elements[edx].optional == td->elements_count) || + /* All extensions are optional */ + IN_EXTENSION_GROUP(specs, edx)) { + JER_ADVANCE(ch_size); + JER_ADVANCE(jer_whitespace_span(ptr, size)); + ctx->phase = 4; /* Phase out */ + RETURN(RC_OK); + } else { + ASN_DEBUG("Premature end of JER SEQUENCE"); + RETURN(RC_FAIL); + } + case JCK_COMMA: + ADVANCE(ch_size); + continue; + /* Fall through */ + case JCK_OSTART: /* '{' */ + if(ctx->phase == 0) { + JER_ADVANCE(ch_size); + ctx->phase = 1; /* Processing body phase */ + continue; + } + + /* Fall through */ + case JCK_KEY: + case JCK_UNKNOWN: + ASN_DEBUG("JER/SEQUENCE: scv=%d, ph=%d, edx=%" ASN_PRI_SIZE "", + scv, ctx->phase, edx); + if(ctx->phase != 1) { + break; /* Really unexpected */ + } + + if (td->elements_count == 0) { + JER_ADVANCE(ch_size); + continue; + } + + if(edx < td->elements_count) { + /* + * We have to check which member is next. + */ + size_t n; + size_t edx_end = edx + elements[edx].optional + 1; + if(edx_end > td->elements_count) { + edx_end = td->elements_count; + } + + for(n = edx; n < edx_end; n++) { + elm = &td->elements[n]; + scv = jer_check_sym(ptr, ch_size, elm->name); + switch (scv) { + case JCK_KEY: + ctx->step = edx = n; + ctx->phase = 2; + + ADVANCE(ch_size); /* skip key */ + /* skip colon */ + ch_size = jer_next_token(&ctx->context, ptr, size, + &ch_type); + if(ch_size == -1) { + RETURN(RC_FAIL); + } else { + switch(ch_type) { + case PJER_WMORE: + RETURN(RC_WMORE); + case PJER_TEXT: + JER_ADVANCE(ch_size); + break; + default: + RETURN(RC_FAIL); + } + } + break; + case JCK_UNKNOWN: + continue; + default: + n = edx_end; + break; /* Phase out */ + } + break; + } + if(n != edx_end) + continue; + } else { + ASN_DEBUG("Out of defined members: %" ASN_PRI_SIZE "/%u", + edx, td->elements_count); + } + + /* It is expected extension */ + if(IN_EXTENSION_GROUP(specs, + edx + (edx < td->elements_count + ? elements[edx].optional : 0))) { + ASN_DEBUG("Got anticipated extension at %" ASN_PRI_SIZE "", + edx); + ctx->left = 1; + ctx->phase = 3; /* Skip ...'s */ + JER_ADVANCE(ch_size); + continue; + } + + /* Fall through */ + default: + break; + } + + ASN_DEBUG("Unexpected JSON key in SEQUENCE [%c%c%c%c%c%c]", + size>0?((const char *)ptr)[0]:'.', + size>1?((const char *)ptr)[1]:'.', + size>2?((const char *)ptr)[2]:'.', + size>3?((const char *)ptr)[3]:'.', + size>4?((const char *)ptr)[4]:'.', + size>5?((const char *)ptr)[5]:'.'); + break; + } + + ctx->phase = 4; /* "Phase out" on hard failure */ + RETURN(RC_FAIL); +} + + +asn_enc_rval_t SEQUENCE_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_enc_rval_t er = {0,0,0}; + int jmin = (flags & JER_F_MINIFIED); + asn_TYPE_descriptor_t *tmp_def_val_td = 0; + void *tmp_def_val = 0; + size_t edx; + + if(!sptr) ASN__ENCODE_FAILED; + + er.encoded = 0; + + int bAddComma = 0; + ASN__CALLBACK("{", 1); + for(edx = 0; edx < td->elements_count; edx++) { + asn_enc_rval_t tmper = {0,0,0}; + asn_TYPE_member_t *elm = &td->elements[edx]; + const void *memb_ptr; + const char *mname = elm->name; + unsigned int mlen = strlen(mname); + + if(elm->flags & ATF_POINTER) { + memb_ptr = + *(const void *const *)((const char *)sptr + elm->memb_offset); + if(!memb_ptr) { + assert(tmp_def_val == 0); + if(elm->default_value_set) { + if(elm->default_value_set(&tmp_def_val)) { + ASN__ENCODE_FAILED; + } else { + memb_ptr = tmp_def_val; + tmp_def_val_td = elm->type; + } + } else if(elm->optional) { + continue; + } else { + /* Mandatory element is missing */ + ASN__ENCODE_FAILED; + } + } + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + } + + if (bAddComma == 1) { + ASN__CALLBACK(",", 1); + bAddComma = 0; + } + + if(!jmin) { + ASN__TEXT_INDENT(1, ilevel + 1); + ASN__CALLBACK3("\"", 1, mname, mlen, "\": ", 3); + } else { + ASN__CALLBACK3("\"", 1, mname, mlen, "\":", 2); + } + + /* Print the member itself */ + tmper = elm->type->op->jer_encoder(elm->type, memb_ptr, ilevel + 1, + flags, cb, app_key); + if(tmp_def_val) { + ASN_STRUCT_FREE(*tmp_def_val_td, tmp_def_val); + tmp_def_val = 0; + } + if(tmper.encoded == -1) return tmper; + er.encoded += tmper.encoded; + if (edx != td->elements_count - 1) { + bAddComma = 1; + } + } + if(!jmin) ASN__TEXT_INDENT(1, ilevel); + ASN__CALLBACK("}", 1); + + + ASN__ENCODED_OK(er); +cb_failed: + if(tmp_def_val) ASN_STRUCT_FREE(*tmp_def_val_td, tmp_def_val); + ASN__ENCODE_FAILED; +} diff --git a/asn.1/skeleton/constr_SEQUENCE_oer.c b/asn.1/skeleton/constr_SEQUENCE_oer.c new file mode 100644 index 00000000..a3bdb7bd --- /dev/null +++ b/asn.1/skeleton/constr_SEQUENCE_oer.c @@ -0,0 +1,557 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include +#include + +/* + * This macro "eats" the part of the buffer which is definitely "consumed", + * i.e. was correctly converted into local representation or rightfully skipped. + */ +#undef ADVANCE +#define ADVANCE(num_bytes) \ + do { \ + size_t num = num_bytes; \ + ptr = ((const char *)ptr) + num; \ + size -= num; \ + consumed_myself += num; \ + } while(0) + +/* + * Switch to the next phase of parsing. + */ +#undef NEXT_PHASE +#undef PHASE_OUT +#define NEXT_PHASE(ctx) \ + do { \ + ctx->phase++; \ + ctx->step = 0; \ + } while(0) + +/* + * Check whether we are inside the extensions group. + */ +#define IN_EXTENSION_GROUP(specs, memb_idx) \ + ((specs)->first_extension >= 0 \ + && (unsigned)(specs)->first_extension <= (memb_idx)) + +#define IN_ROOT_GROUP_PRED(edx) \ + edx < (specs->first_extension < 0 ? td->elements_count \ + : (size_t)specs->first_extension) + +#define FOR_IN_ROOT_GROUP(edx) for(edx = 0; IN_ROOT_GROUP_PRED(edx); edx++) + +/* + * Return a standardized complex structure. + */ +#undef RETURN +#define RETURN(_code) do { \ + rval.code = _code; \ + rval.consumed = consumed_myself;\ + return rval; \ + } while(0) + +/* + * Return pointer to a member. + */ +static void ** +element_ptrptr(void *struct_ptr, asn_TYPE_member_t *elm, void **tmp_save_ptr) { + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + return (void **)((char *)struct_ptr + elm->memb_offset); + } else { + assert(tmp_save_ptr); + *tmp_save_ptr = (void *)((char *)struct_ptr + elm->memb_offset); + return tmp_save_ptr; + } +} + +static const void * +element_ptr(const void *struct_ptr, const asn_TYPE_member_t *elm) { + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + return *(const void *const *)((const char *)struct_ptr + + elm->memb_offset); + } else { + return (const void *)((const char *)struct_ptr + elm->memb_offset); + } +} + +asn_dec_rval_t +SEQUENCE_decode_oer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, void **struct_ptr, + const void *ptr, size_t size) { + const asn_SEQUENCE_specifics_t *specs = + (const asn_SEQUENCE_specifics_t *)td->specifics; + asn_dec_rval_t rval = {RC_OK, 0}; + void *st = *struct_ptr; /* Target structure */ + asn_struct_ctx_t *ctx; /* Decoder context */ + size_t consumed_myself = 0; /* Consumed bytes from ptr. */ + + (void)constraints; + + if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) + ASN__DECODE_FAILED; + + /* + * Create the target structure if it is not present already. + */ + if(st == 0) { + st = *struct_ptr = CALLOC(1, specs->struct_size); + if(st == 0) { + RETURN(RC_FAIL); + } + } + + /* + * Restore parsing context. + */ + ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + + /* + * Start to parse where left previously. + */ + switch(ctx->phase) { + case 0: { + /* + * Fetch preamble. + */ + asn_bit_data_t *preamble; + int has_extensions_bit = (specs->first_extension >= 0); + size_t preamble_bits = (has_extensions_bit + specs->roms_count); + size_t preamble_bytes = ((7 + preamble_bits) >> 3); + + ASN_DEBUG("OER SEQUENCE %s Decoding PHASE 0", td->name); + + ASN_DEBUG( + "Expecting preamble bits %" ASN_PRI_SIZE " for %s (including %d extension bits)", + preamble_bits, td->name, has_extensions_bit); + + if(preamble_bytes > size) { + ASN__DECODE_STARVED; + } + + preamble = asn_bit_data_new_contiguous(ptr, preamble_bits); + if(!preamble) { + RETURN(RC_FAIL); + } + preamble->nboff = has_extensions_bit; + ctx->ptr = preamble; + ADVANCE(preamble_bytes); + } + NEXT_PHASE(ctx); + /* FALL THROUGH */ + case 1: { + /* Decode components of the extension root */ + asn_bit_data_t *preamble = ctx->ptr; + size_t edx; + + ASN_DEBUG("OER SEQUENCE %s Decoding PHASE 1 (Root)", td->name); + + assert(preamble); + + for(edx = (ctx->step >> 1); IN_ROOT_GROUP_PRED(edx); + edx++, ctx->step = (ctx->step & ~1) + 2) { + asn_TYPE_member_t *elm = &td->elements[edx]; + + ASN_DEBUG("Decoding %s->%s", td->name, elm->name); + + assert(!IN_EXTENSION_GROUP(specs, edx)); + + if(ctx->step & 1) { + goto microphase2_decode_continues; + } + + + if(elm->optional) { + int32_t present = asn_get_few_bits(preamble, 1); + if(present < 0) { + ASN_DEBUG("Presence map ended prematurely: %d", present); + RETURN(RC_FAIL); + } else if(present == 0) { + if(elm->default_value_set) { + /* Fill-in DEFAULT */ + void *tmp; + if(elm->default_value_set( + element_ptrptr(st, elm, &tmp))) { + RETURN(RC_FAIL); + } + } + /* The member is not present. */ + continue; + } + /* Present OPTIONAL or DEFAULT component. */ + } + + /* + * MICROPHASE 2: Invoke the member-specific decoder. + */ + ctx->step |= 1; /* Confirm entering next microphase */ + microphase2_decode_continues: + if(elm->flags & ATF_OPEN_TYPE) { + rval = OPEN_TYPE_oer_get(opt_codec_ctx, td, st, elm, ptr, size); + } else { + void *save_memb_ptr; /* Temporary reference. */ + void **memb_ptr2; /* Pointer to a pointer to a memmber */ + + memb_ptr2 = element_ptrptr(st, elm, &save_memb_ptr); + + rval = elm->type->op->oer_decoder( + opt_codec_ctx, elm->type, + elm->encoding_constraints.oer_constraints, memb_ptr2, ptr, + size); + } + switch(rval.code) { + case RC_OK: + ADVANCE(rval.consumed); + break; + case RC_WMORE: + ASN_DEBUG("More bytes needed at element %s \"%s\"", td->name, + elm->name); + ADVANCE(rval.consumed); + RETURN(RC_WMORE); + case RC_FAIL: + ASN_DEBUG("Decoding failed at element %s \"%s\"", td->name, + elm->name); + RETURN(RC_FAIL); + } + } /* for(all root members) */ + + } + NEXT_PHASE(ctx); + /* FALL THROUGH */ + case 2: + assert(ctx->ptr); + { + /* Cleanup preamble. */ + asn_bit_data_t *preamble = ctx->ptr; + asn_bit_data_t *extadds; + int has_extensions_bit = (specs->first_extension >= 0); + int extensions_present = + has_extensions_bit + && (preamble->buffer == NULL + || (((const uint8_t *)preamble->buffer)[0] & 0x80)); + uint8_t unused_bits; + size_t len = 0; + ssize_t len_len; + + ASN_DEBUG("OER SEQUENCE %s Decoding PHASE 2", td->name); + + preamble->buffer = 0; /* Will do extensions_present==1 next time. */ + + if(!extensions_present) { + ctx->phase = 10; + RETURN(RC_OK); + } + + /* + * X.696 (08/2015) #16.1 (c), #16.4 + * Read in the extension addition presence bitmap. + */ + + len_len = oer_fetch_length(ptr, size, &len); + if(len_len > 0) { + ADVANCE(len_len); + } else if(len_len < 0) { + RETURN(RC_FAIL); + } else { + RETURN(RC_WMORE); + } + + if(len == 0) { + /* 16.4.1-2 */ + RETURN(RC_FAIL); + } else if(len > size) { + RETURN(RC_WMORE); + } + + /* Account for unused bits */ + unused_bits = 0x7 & *(const uint8_t *)ptr; + ADVANCE(1); + len--; + if(unused_bits && len == 0) { + RETURN(RC_FAIL); + } + + /* Get the extensions map */ + extadds = asn_bit_data_new_contiguous(ptr, len * 8 - unused_bits); + if(!extadds) { + RETURN(RC_FAIL); + } + FREEMEM(preamble); + ctx->ptr = extadds; + ADVANCE(len); + } + NEXT_PHASE(ctx); + ctx->step = + (specs->first_extension < 0 ? td->elements_count + : (size_t)specs->first_extension); + /* Fall through */ + case 3: + ASN_DEBUG("OER SEQUENCE %s Decoding PHASE 3 (Extensions)", td->name); + for(; ctx->step < (signed)td->elements_count; ctx->step++) { + asn_bit_data_t *extadds = ctx->ptr; + size_t edx = ctx->step; + asn_TYPE_member_t *elm = &td->elements[edx]; + void *tmp_memb_ptr; + void **memb_ptr2 = element_ptrptr(st, elm, &tmp_memb_ptr); + + switch(asn_get_few_bits(extadds, 1)) { + case -1: + /* + * Not every one of our extensions is known to the remote side. + * Continue filling in their defaults though. + */ + /* Fall through */ + case 0: + /* Fill-in DEFAULT */ + if(elm->default_value_set + && elm->default_value_set(memb_ptr2)) { + RETURN(RC_FAIL); + } + continue; + case 1: { + /* Read OER open type */ + ssize_t ot_size = + oer_open_type_get(opt_codec_ctx, elm->type, + elm->encoding_constraints.oer_constraints, + memb_ptr2, ptr, size); + assert(ot_size <= (ssize_t)size); + if(ot_size > 0) { + ADVANCE(ot_size); + } else if(ot_size < 0) { + RETURN(RC_FAIL); + } else { + /* Roll back open type parsing */ + asn_get_undo(extadds, 1); + RETURN(RC_WMORE); + } + break; + } + default: + RETURN(RC_FAIL); + } + } + + NEXT_PHASE(ctx); + /* Fall through */ + case 4: + ASN_DEBUG("OER SEQUENCE %s Decoding PHASE 4", td->name); + /* Read in the rest of Open Types while ignoring them */ + for(;;) { + asn_bit_data_t *extadds = ctx->ptr; + switch(asn_get_few_bits(extadds, 1)) { + case 0: + continue; + case 1: { + ssize_t skipped = oer_open_type_skip(ptr, size); + if(skipped > 0) { + ADVANCE(skipped); + } else if(skipped < 0) { + RETURN(RC_FAIL); + } else { + asn_get_undo(extadds, 1); + RETURN(RC_WMORE); + } + continue; + } + case -1: + /* No more Open Type encoded components */ + break; + default: + RETURN(RC_FAIL); + } + break; + } + } + + RETURN(RC_OK); +} + +/* + * Encode as Canonical OER. + */ +asn_enc_rval_t +SEQUENCE_encode_oer(const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, const void *sptr, + asn_app_consume_bytes_f *cb, void *app_key) { + const asn_SEQUENCE_specifics_t *specs = (const asn_SEQUENCE_specifics_t *)td->specifics; + size_t computed_size = 0; + int has_extensions_bit = (specs->first_extension >= 0); + size_t preamble_bits = (has_extensions_bit + specs->roms_count); + uint32_t has_extensions = 0; + size_t edx; + int ret; + + (void)constraints; + + if(preamble_bits) { + asn_bit_outp_t preamble; + + memset(&preamble, 0, sizeof(preamble)); + preamble.output = cb; + preamble.op_key = app_key; + + if(has_extensions_bit) { + for(edx = specs->first_extension; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + const void *memb_ptr = element_ptr(sptr, elm); + if(memb_ptr) { + if(elm->default_value_cmp + && elm->default_value_cmp(memb_ptr) == 0) { + /* Do not encode default values in extensions */ + } else { + has_extensions = 1; + break; + } + } + } + ret = asn_put_few_bits(&preamble, has_extensions, 1); + assert(ret == 0); + if(ret < 0) { + ASN__ENCODE_FAILED; + } + } + + /* + * Encode optional components bitmap. + */ + if(specs->roms_count) { + FOR_IN_ROOT_GROUP(edx) { + asn_TYPE_member_t *elm = &td->elements[edx]; + + if(IN_EXTENSION_GROUP(specs, edx)) break; + + if(elm->optional) { + const void *memb_ptr = element_ptr(sptr, elm); + uint32_t has_component = memb_ptr != NULL; + if(has_component && elm->default_value_cmp + && elm->default_value_cmp(memb_ptr) == 0) { + has_component = 0; + } + ret = asn_put_few_bits(&preamble, has_component, 1); + if(ret < 0) { + ASN__ENCODE_FAILED; + } + } + } + } + + asn_put_aligned_flush(&preamble); + computed_size += preamble.flushed_bytes; + } /* if(preamble_bits) */ + + /* + * Put root components and extensions root. + */ + for(edx = 0; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + asn_enc_rval_t er = {0,0,0}; + const void *memb_ptr; + + if(IN_EXTENSION_GROUP(specs, edx)) break; + + memb_ptr = element_ptr(sptr, elm); + if(memb_ptr) { + if(elm->default_value_cmp + && elm->default_value_cmp(memb_ptr) == 0) { + /* Skip default values in encoding */ + continue; + } + } else { + if(elm->optional) continue; + /* Mandatory element is missing */ + ASN__ENCODE_FAILED; + } + if(!elm->type->op->oer_encoder) { + ASN_DEBUG("OER encoder is not defined for type %s", elm->type->name); + ASN__ENCODE_FAILED; + } + er = elm->type->op->oer_encoder( + elm->type, elm->encoding_constraints.oer_constraints, memb_ptr, cb, + app_key); + if(er.encoded == -1) { + ASN_DEBUG("... while encoding %s member \"%s\"\n", td->name, + elm->name); + return er; + } + computed_size += er.encoded; + } + + /* + * Before encode extensions, encode extensions additions presence bitmap + # X.696 (08/2015) #16.4. + */ + if(has_extensions) { + asn_bit_outp_t extadds; + + /* Special case allowing us to use exactly one byte for #8.6 */ + size_t aoms_length_bits = specs->aoms_count; + size_t aoms_length_bytes = (7 + aoms_length_bits) >> 3; + uint8_t unused_bits = 0x07 & (8 - (aoms_length_bits & 0x07)); + + assert(1 + aoms_length_bytes <= 127); + + memset(&extadds, 0, sizeof(extadds)); + extadds.output = cb; + extadds.op_key = app_key; + + /* #8.6 length determinant */ + ret = asn_put_few_bits(&extadds, (1 + aoms_length_bytes), 8); + if(ret < 0) ASN__ENCODE_FAILED; + + /* Number of unused bytes, #16.4.2 */ + ret = asn_put_few_bits(&extadds, unused_bits, 8); + if(ret < 0) ASN__ENCODE_FAILED; + + /* Encode presence bitmap #16.4.3 */ + for(edx = specs->first_extension; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + const void *memb_ptr = element_ptr(sptr, elm); + if(memb_ptr && elm->default_value_cmp + && elm->default_value_cmp(memb_ptr) == 0) { + memb_ptr = 0; /* Do not encode default value. */ + } + ret |= asn_put_few_bits(&extadds, memb_ptr ? 1 : 0, 1); + } + if(ret < 0) ASN__ENCODE_FAILED; + + asn_put_aligned_flush(&extadds); + computed_size += extadds.flushed_bytes; + + /* Now, encode extensions */ + for(edx = specs->first_extension; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + const void *memb_ptr = element_ptr(sptr, elm); + + if(memb_ptr) { + if(elm->default_value_cmp + && elm->default_value_cmp(memb_ptr) == 0) { + /* Do not encode default value. */ + } else { + ssize_t wrote = oer_open_type_put( + elm->type, elm->encoding_constraints.oer_constraints, + memb_ptr, cb, app_key); + if(wrote == -1) { + ASN__ENCODE_FAILED; + } + computed_size += wrote; + } + } else if(!elm->optional) { + ASN__ENCODE_FAILED; + } + } + } /* if(has_extensions) */ + + + { + asn_enc_rval_t er = {0, 0, 0}; + er.encoded = computed_size; + ASN__ENCODED_OK(er); + } +} diff --git a/asn.1/skeleton/constr_SEQUENCE_print.c b/asn.1/skeleton/constr_SEQUENCE_print.c new file mode 100644 index 00000000..7f9e231a --- /dev/null +++ b/asn.1/skeleton/constr_SEQUENCE_print.c @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +int +SEQUENCE_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + asn_app_consume_bytes_f *cb, void *app_key) { + size_t edx; + int ret; + + if(!sptr) return (cb("", 8, app_key) < 0) ? -1 : 0; + + /* Dump preamble */ + if(cb(td->name, strlen(td->name), app_key) < 0 + || cb(" ::= {", 6, app_key) < 0) + return -1; + + for(edx = 0; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + const void *memb_ptr; + + if(elm->flags & ATF_POINTER) { + memb_ptr = *(const void * const *)((const char *)sptr + elm->memb_offset); + if(!memb_ptr) { + if(elm->optional) continue; + /* Print line */ + /* Fall through */ + } + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + } + + /* Indentation */ + _i_INDENT(1); + + /* Print the member's name and stuff */ + if(cb(elm->name, strlen(elm->name), app_key) < 0 + || cb(": ", 2, app_key) < 0) + return -1; + + /* Print the member itself */ + ret = elm->type->op->print_struct(elm->type, memb_ptr, ilevel + 1, + cb, app_key); + if(ret) return ret; + } + + ilevel--; + _i_INDENT(1); + + return (cb("}", 1, app_key) < 0) ? -1 : 0; +} diff --git a/asn.1/skeleton/constr_SEQUENCE_rfill.c b/asn.1/skeleton/constr_SEQUENCE_rfill.c new file mode 100644 index 00000000..b464f572 --- /dev/null +++ b/asn.1/skeleton/constr_SEQUENCE_rfill.c @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_random_fill_result_t +SEQUENCE_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, + const asn_encoding_constraints_t *constr, + size_t max_length) { + const asn_SEQUENCE_specifics_t *specs = + (const asn_SEQUENCE_specifics_t *)td->specifics; + asn_random_fill_result_t result_ok = {ARFILL_OK, 0}; + asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; + asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; + void *st = *sptr; + size_t edx; + + if(max_length == 0) return result_skipped; + + (void)constr; + + if(st == NULL) { + st = CALLOC(1, specs->struct_size); + if(st == NULL) { + return result_failed; + } + } + + for(edx = 0; edx < td->elements_count; edx++) { + const asn_TYPE_member_t *elm = &td->elements[edx]; + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + asn_random_fill_result_t tmpres; + + if(elm->optional && asn_random_between(0, 4) == 2) { + /* Sometimes decide not to fill the optional value */ + continue; + } + + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr2 = (void **)((char *)st + elm->memb_offset); + } else { + memb_ptr = (char *)st + elm->memb_offset; + memb_ptr2 = &memb_ptr; + } + + tmpres = elm->type->op->random_fill( + elm->type, memb_ptr2, &elm->encoding_constraints, + max_length > result_ok.length ? max_length - result_ok.length : 0); + switch(tmpres.code) { + case ARFILL_OK: + result_ok.length += tmpres.length; + continue; + case ARFILL_SKIPPED: + assert(!(elm->flags & ATF_POINTER) || *memb_ptr2 == NULL); + continue; + case ARFILL_FAILED: + if(st == *sptr) { + ASN_STRUCT_RESET(*td, st); + } else { + ASN_STRUCT_FREE(*td, st); + } + return tmpres; + } + } + + *sptr = st; + + return result_ok; +} diff --git a/asn.1/skeleton/constr_SEQUENCE_uper.c b/asn.1/skeleton/constr_SEQUENCE_uper.c new file mode 100644 index 00000000..b235f4de --- /dev/null +++ b/asn.1/skeleton/constr_SEQUENCE_uper.c @@ -0,0 +1,429 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include +#include + +/* + * Check whether we are inside the extensions group. + */ +#define IN_EXTENSION_GROUP(specs, memb_idx) \ + ((specs)->first_extension >= 0 \ + && (unsigned)(specs)->first_extension <= (memb_idx)) + +asn_dec_rval_t +SEQUENCE_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, + asn_per_data_t *pd) { + const asn_SEQUENCE_specifics_t *specs = (const asn_SEQUENCE_specifics_t *)td->specifics; + void *st = *sptr; /* Target structure. */ + int extpresent; /* Extension additions are present */ + uint8_t *opres; /* Presence of optional root members */ + asn_per_data_t opmd; + asn_dec_rval_t rv; + size_t edx; + + (void)constraints; + + if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) + ASN__DECODE_FAILED; + + if(!st) { + st = *sptr = CALLOC(1, specs->struct_size); + if(!st) ASN__DECODE_FAILED; + } + + ASN_DEBUG("Decoding %s as SEQUENCE (UPER)", td->name); + + /* Handle extensions */ + if(specs->first_extension < 0) { + extpresent = 0; + } else { + extpresent = per_get_few_bits(pd, 1); + if(extpresent < 0) ASN__DECODE_STARVED; + } + + /* Prepare a place and read-in the presence bitmap */ + memset(&opmd, 0, sizeof(opmd)); + if(specs->roms_count) { + opres = (uint8_t *)MALLOC(((specs->roms_count + 7) >> 3) + 1); + if(!opres) ASN__DECODE_FAILED; + /* Get the presence map */ + if(per_get_many_bits(pd, opres, 0, specs->roms_count)) { + FREEMEM(opres); + ASN__DECODE_STARVED; + } + opmd.buffer = opres; + opmd.nbits = specs->roms_count; + ASN_DEBUG("Read in presence bitmap for %s of %d bits (%x..)", + td->name, specs->roms_count, *opres); + } else { + opres = 0; + } + + /* + * Get the sequence ROOT elements. + */ + for(edx = 0; + edx < (specs->first_extension < 0 ? td->elements_count + : (size_t)specs->first_extension); + edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + + assert(!IN_EXTENSION_GROUP(specs, edx)); + + /* Fetch the pointer to this member */ + if(elm->flags & ATF_POINTER) { + memb_ptr2 = (void **)((char *)st + elm->memb_offset); + } else { + memb_ptr = (char *)st + elm->memb_offset; + memb_ptr2 = &memb_ptr; + } + + /* Deal with optionality */ + if(elm->optional) { + int present = per_get_few_bits(&opmd, 1); + ASN_DEBUG("Member %s->%s is optional, p=%d (%d->%d)", + td->name, elm->name, present, + (int)opmd.nboff, (int)opmd.nbits); + if(present == 0) { + /* This element is not present */ + if(elm->default_value_set) { + /* Fill-in DEFAULT */ + if(elm->default_value_set(memb_ptr2)) { + FREEMEM(opres); + ASN__DECODE_FAILED; + } + ASN_DEBUG("Filled-in default"); + } + /* The member is just not present */ + continue; + } + /* Fall through */ + } + + /* Fetch the member from the stream */ + ASN_DEBUG("Decoding member \"%s\" in %s", elm->name, td->name); + + if(elm->flags & ATF_OPEN_TYPE) { + rv = OPEN_TYPE_uper_get(opt_codec_ctx, td, st, elm, pd); + } else { + rv = elm->type->op->uper_decoder(opt_codec_ctx, elm->type, + elm->encoding_constraints.per_constraints, + memb_ptr2, pd); + } + if(rv.code != RC_OK) { + ASN_DEBUG("Failed decode %s in %s", + elm->name, td->name); + FREEMEM(opres); + return rv; + } + } + + /* Optionality map is not needed anymore */ + FREEMEM(opres); + + /* + * Deal with extensions. + */ + if(extpresent) { + ssize_t bmlength; + uint8_t *epres; /* Presence of extension members */ + asn_per_data_t epmd; + + bmlength = uper_get_nslength(pd); + if(bmlength < 0) ASN__DECODE_STARVED; + + ASN_DEBUG("Extensions %" ASN_PRI_SSIZE " present in %s", bmlength, td->name); + + epres = (uint8_t *)MALLOC((bmlength + 15) >> 3); + if(!epres) ASN__DECODE_STARVED; + + /* Get the extensions map */ + if(per_get_many_bits(pd, epres, 0, bmlength)) { + FREEMEM(epres); + ASN__DECODE_STARVED; + } + + memset(&epmd, 0, sizeof(epmd)); + epmd.buffer = epres; + epmd.nbits = bmlength; + ASN_DEBUG("Read in extensions bitmap for %s of %ld bits (%x..)", + td->name, (long)bmlength, *epres); + + /* Go over extensions and read them in */ + for(edx = specs->first_extension; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + int present; + + /* Fetch the pointer to this member */ + if(elm->flags & ATF_POINTER) { + memb_ptr2 = (void **)((char *)st + elm->memb_offset); + } else { + memb_ptr = (void *)((char *)st + elm->memb_offset); + memb_ptr2 = &memb_ptr; + } + + present = per_get_few_bits(&epmd, 1); + if(present <= 0) { + if(present < 0) break; /* No more extensions */ + continue; + } + + ASN_DEBUG("Decoding member %s in %s %p", elm->name, td->name, + *memb_ptr2); + rv = uper_open_type_get(opt_codec_ctx, elm->type, + elm->encoding_constraints.per_constraints, + memb_ptr2, pd); + if(rv.code != RC_OK) { + FREEMEM(epres); + return rv; + } + } + + /* Skip over overflow extensions which aren't present + * in this system's version of the protocol */ + for(;;) { + ASN_DEBUG("Getting overflow extensions"); + switch(per_get_few_bits(&epmd, 1)) { + case -1: break; + case 0: continue; + default: + if(uper_open_type_skip(opt_codec_ctx, pd)) { + FREEMEM(epres); + ASN__DECODE_STARVED; + } + ASN_DEBUG("Skipped overflow extension"); + continue; + } + break; + } + + FREEMEM(epres); + } + + if(specs->first_extension >= 0) { + unsigned i; + /* Fill DEFAULT members in extensions */ + for(i = specs->roms_count; i < specs->roms_count + specs->aoms_count; + i++) { + asn_TYPE_member_t *elm; + void **memb_ptr2; /* Pointer to member pointer */ + + edx = specs->oms[i]; + elm = &td->elements[edx]; + + if(!elm->default_value_set) continue; + + /* Fetch the pointer to this member */ + if(elm->flags & ATF_POINTER) { + memb_ptr2 = (void **)((char *)st + elm->memb_offset); + if(*memb_ptr2) continue; + } else { + continue; /* Extensions are all optionals */ + } + + /* Set default value */ + if(elm->default_value_set(memb_ptr2)) { + ASN__DECODE_FAILED; + } + } + } + + rv.consumed = 0; + rv.code = RC_OK; + return rv; +} + +static int +SEQUENCE__handle_extensions(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_per_outp_t *po1, asn_per_outp_t *po2) { + const asn_SEQUENCE_specifics_t *specs = + (const asn_SEQUENCE_specifics_t *)td->specifics; + int exts_present = 0; + int exts_count = 0; + size_t edx; + + if(specs->first_extension < 0) { + return 0; + } + + /* Find out which extensions are present */ + for(edx = specs->first_extension; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + const void *memb_ptr; /* Pointer to the member */ + const void *const *memb_ptr2; /* Pointer to that pointer */ + int present; + + /* Fetch the pointer to this member */ + if(elm->flags & ATF_POINTER) { + memb_ptr2 = + (const void *const *)((const char *)sptr + elm->memb_offset); + present = (*memb_ptr2 != 0); + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + memb_ptr2 = &memb_ptr; + present = 1; + } + + ASN_DEBUG("checking %s:%s (@%" ASN_PRI_SIZE ") present => %d", elm->name, + elm->type->name, edx, present); + exts_count++; + exts_present += present; + + /* Encode as presence marker */ + if(po1 && per_put_few_bits(po1, present, 1)) { + return -1; + } + /* Encode as open type field */ + if(po2 && present + && uper_open_type_put(elm->type, + elm->encoding_constraints.per_constraints, + *memb_ptr2, po2)) + return -1; + } + + return exts_present ? exts_count : 0; +} + +asn_enc_rval_t +SEQUENCE_encode_uper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, const void *sptr, + asn_per_outp_t *po) { + const asn_SEQUENCE_specifics_t *specs + = (const asn_SEQUENCE_specifics_t *)td->specifics; + asn_enc_rval_t er = {0,0,0}; + int n_extensions; + size_t edx; + size_t i; + + (void)constraints; + + if(!sptr) + ASN__ENCODE_FAILED; + + er.encoded = 0; + + ASN_DEBUG("Encoding %s as SEQUENCE (UPER)", td->name); + + /* + * X.691#18.1 Whether structure is extensible + * and whether to encode extensions + */ + if(specs->first_extension < 0) { + n_extensions = 0; /* There are no extensions to encode */ + } else { + n_extensions = SEQUENCE__handle_extensions(td, sptr, 0, 0); + if(n_extensions < 0) ASN__ENCODE_FAILED; + if(per_put_few_bits(po, n_extensions ? 1 : 0, 1)) { + ASN__ENCODE_FAILED; + } + } + + /* Encode a presence bitmap */ + for(i = 0; i < specs->roms_count; i++) { + asn_TYPE_member_t *elm; + const void *memb_ptr; /* Pointer to the member */ + const void *const *memb_ptr2; /* Pointer to that pointer */ + int present; + + edx = specs->oms[i]; + elm = &td->elements[edx]; + + /* Fetch the pointer to this member */ + if(elm->flags & ATF_POINTER) { + memb_ptr2 = + (const void *const *)((const char *)sptr + elm->memb_offset); + present = (*memb_ptr2 != 0); + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + memb_ptr2 = &memb_ptr; + present = 1; + } + + /* Eliminate default values */ + if(present && elm->default_value_cmp + && elm->default_value_cmp(*memb_ptr2) == 0) + present = 0; + + ASN_DEBUG("Element %s %s %s->%s is %s", + elm->flags & ATF_POINTER ? "ptr" : "inline", + elm->default_value_cmp ? "def" : "wtv", + td->name, elm->name, present ? "present" : "absent"); + if(per_put_few_bits(po, present, 1)) + ASN__ENCODE_FAILED; + } + + /* + * Encode the sequence ROOT elements. + */ + ASN_DEBUG("first_extension = %d, elements = %d", specs->first_extension, + td->elements_count); + for(edx = 0; + edx < ((specs->first_extension < 0) ? td->elements_count + : (size_t)specs->first_extension); + edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + const void *memb_ptr; /* Pointer to the member */ + const void *const *memb_ptr2; /* Pointer to that pointer */ + + ASN_DEBUG("About to encode %s", elm->type->name); + + /* Fetch the pointer to this member */ + if(elm->flags & ATF_POINTER) { + memb_ptr2 = + (const void *const *)((const char *)sptr + elm->memb_offset); + if(!*memb_ptr2) { + ASN_DEBUG("Element %s %" ASN_PRI_SIZE " not present", + elm->name, edx); + if(elm->optional) + continue; + /* Mandatory element is missing */ + ASN__ENCODE_FAILED; + } + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + memb_ptr2 = &memb_ptr; + } + + /* Eliminate default values */ + if(elm->default_value_cmp && elm->default_value_cmp(*memb_ptr2) == 0) + continue; + + ASN_DEBUG("Encoding %s->%s:%s", td->name, elm->name, elm->type->name); + er = elm->type->op->uper_encoder( + elm->type, elm->encoding_constraints.per_constraints, *memb_ptr2, + po); + if(er.encoded == -1) return er; + } + + /* No extensions to encode */ + if(!n_extensions) ASN__ENCODED_OK(er); + + ASN_DEBUG("Length of extensions %d bit-map", n_extensions); + /* #18.8. Write down the presence bit-map length. */ + if(uper_put_nslength(po, n_extensions)) + ASN__ENCODE_FAILED; + + ASN_DEBUG("Bit-map of %d elements", n_extensions); + /* #18.7. Encoding the extensions presence bit-map. */ + /* TODO: act upon NOTE in #18.7 for canonical PER */ + if(SEQUENCE__handle_extensions(td, sptr, po, 0) != n_extensions) + ASN__ENCODE_FAILED; + + ASN_DEBUG("Writing %d extensions", n_extensions); + /* #18.9. Encode extensions as open type fields. */ + if(SEQUENCE__handle_extensions(td, sptr, 0, po) != n_extensions) + ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/constr_SEQUENCE_xer.c b/asn.1/skeleton/constr_SEQUENCE_xer.c new file mode 100644 index 00000000..c6475f78 --- /dev/null +++ b/asn.1/skeleton/constr_SEQUENCE_xer.c @@ -0,0 +1,348 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +/* + * Return a standardized complex structure. + */ +#undef RETURN +#define RETURN(_code) \ + do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) + +/* + * Check whether we are inside the extensions group. + */ +#define IN_EXTENSION_GROUP(specs, memb_idx) \ + ((specs)->first_extension >= 0 \ + && (unsigned)(specs)->first_extension <= (memb_idx)) + +#undef XER_ADVANCE +#define XER_ADVANCE(num_bytes) \ + do { \ + size_t num = (num_bytes); \ + ptr = ((const char *)ptr) + num; \ + size -= num; \ + consumed_myself += num; \ + } while(0) + +/* + * Decode the XER (XML) data. + */ +asn_dec_rval_t +SEQUENCE_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **struct_ptr, + const char *opt_mname, const void *ptr, size_t size) { + /* + * Bring closer parts of structure description. + */ + const asn_SEQUENCE_specifics_t *specs + = (const asn_SEQUENCE_specifics_t *)td->specifics; + asn_TYPE_member_t *elements = td->elements; + const char *xml_tag = opt_mname ? opt_mname : td->xml_tag; + + /* + * ... and parts of the structure being constructed. + */ + void *st = *struct_ptr; /* Target structure. */ + asn_struct_ctx_t *ctx; /* Decoder context */ + + asn_dec_rval_t rval; /* Return value from a decoder */ + ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ + size_t edx; /* Element index */ + + /* + * Create the target structure if it is not present already. + */ + if(st == 0) { + st = *struct_ptr = CALLOC(1, specs->struct_size); + if(st == 0) RETURN(RC_FAIL); + } + + /* + * Restore parsing context. + */ + ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + + + /* + * Phases of XER/XML processing: + * Phase 0: Check that the opening tag matches our expectations. + * Phase 1: Processing body and reacting on closing tag. + * Phase 2: Processing inner type. + * Phase 3: Skipping unknown extensions. + * Phase 4: PHASED OUT + */ + for(edx = ctx->step; ctx->phase <= 3;) { + pxer_chunk_type_e ch_type; /* XER chunk type */ + ssize_t ch_size; /* Chunk size */ + xer_check_tag_e tcv; /* Tag check value */ + asn_TYPE_member_t *elm; + + /* + * Go inside the inner member of a sequence. + */ + if(ctx->phase == 2) { + asn_dec_rval_t tmprval; + void *memb_ptr_dontuse; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + + elm = &td->elements[edx]; + + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr2 = (void **)((char *)st + elm->memb_offset); + } else { + memb_ptr_dontuse = (char *)st + elm->memb_offset; + memb_ptr2 = &memb_ptr_dontuse; /* Only use of memb_ptr_dontuse */ + } + + if(elm->flags & ATF_OPEN_TYPE) { + tmprval = OPEN_TYPE_xer_get(opt_codec_ctx, td, st, elm, ptr, size); + } else { + /* Invoke the inner type decoder, m.b. multiple times */ + tmprval = elm->type->op->xer_decoder(opt_codec_ctx, + elm->type, memb_ptr2, elm->name, + ptr, size); + } + XER_ADVANCE(tmprval.consumed); + if(tmprval.code != RC_OK) + RETURN(tmprval.code); + ctx->phase = 1; /* Back to body processing */ + ctx->step = ++edx; + ASN_DEBUG("XER/SEQUENCE phase => %d, step => %d", + ctx->phase, ctx->step); + /* Fall through */ + } + + /* + * Get the next part of the XML stream. + */ + ch_size = xer_next_token(&ctx->context, ptr, size, + &ch_type); + if(ch_size == -1) { + RETURN(RC_FAIL); + } else { + switch(ch_type) { + case PXER_WMORE: + RETURN(RC_WMORE); + case PXER_COMMENT: /* Got XML comment */ + case PXER_TEXT: /* Ignore free-standing text */ + XER_ADVANCE(ch_size); /* Skip silently */ + continue; + case PXER_TAG: + break; /* Check the rest down there */ + } + } + + tcv = xer_check_tag(ptr, ch_size, xml_tag); + ASN_DEBUG("XER/SEQUENCE: tcv = %d, ph=%d [%s]", + tcv, ctx->phase, xml_tag); + + /* Skip the extensions section */ + if(ctx->phase == 3) { + switch(xer_skip_unknown(tcv, &ctx->left)) { + case -1: + ctx->phase = 4; + RETURN(RC_FAIL); + case 0: + XER_ADVANCE(ch_size); + continue; + case 1: + XER_ADVANCE(ch_size); + ctx->phase = 1; + continue; + case 2: + ctx->phase = 1; + break; + } + } + + switch(tcv) { + case XCT_CLOSING: + if(ctx->phase == 0) break; + ctx->phase = 0; + /* Fall through */ + case XCT_BOTH: + if(ctx->phase == 0) { + if(edx >= td->elements_count || + /* Explicit OPTIONAL specs reaches the end */ + (edx + elements[edx].optional == td->elements_count) || + /* All extensions are optional */ + IN_EXTENSION_GROUP(specs, edx)) { + XER_ADVANCE(ch_size); + ctx->phase = 4; /* Phase out */ + RETURN(RC_OK); + } else { + ASN_DEBUG("Premature end of XER SEQUENCE"); + RETURN(RC_FAIL); + } + } + /* Fall through */ + case XCT_OPENING: + if(ctx->phase == 0) { + XER_ADVANCE(ch_size); + ctx->phase = 1; /* Processing body phase */ + continue; + } + /* Fall through */ + case XCT_UNKNOWN_OP: + case XCT_UNKNOWN_BO: + + ASN_DEBUG("XER/SEQUENCE: tcv=%d, ph=%d, edx=%" ASN_PRI_SIZE "", + tcv, ctx->phase, edx); + if(ctx->phase != 1) { + break; /* Really unexpected */ + } + + if(edx < td->elements_count) { + /* + * Search which member corresponds to this tag. + */ + size_t n; + size_t edx_end = edx + elements[edx].optional + 1; + if(edx_end > td->elements_count) + edx_end = td->elements_count; + for(n = edx; n < edx_end; n++) { + elm = &td->elements[n]; + tcv = xer_check_tag(ptr, ch_size, elm->name); + switch(tcv) { + case XCT_BOTH: + case XCT_OPENING: + /* + * Process this member. + */ + ctx->step = edx = n; + ctx->phase = 2; + break; + case XCT_UNKNOWN_OP: + case XCT_UNKNOWN_BO: + continue; + default: + n = edx_end; + break; /* Phase out */ + } + break; + } + if(n != edx_end) + continue; + } else { + ASN_DEBUG("Out of defined members: %" ASN_PRI_SIZE "/%u", + edx, td->elements_count); + } + + /* It is expected extension */ + if(IN_EXTENSION_GROUP(specs, + edx + (edx < td->elements_count + ? elements[edx].optional : 0))) { + ASN_DEBUG("Got anticipated extension at %" ASN_PRI_SIZE "", + edx); + /* + * Check for (XCT_BOTH or XCT_UNKNOWN_BO) + * By using a mask. Only record a pure + * tags. + */ + if(tcv & XCT_CLOSING) { + /* Found without body */ + } else { + ctx->left = 1; + ctx->phase = 3; /* Skip ...'s */ + } + XER_ADVANCE(ch_size); + continue; + } + + /* Fall through */ + default: + break; + } + + ASN_DEBUG("Unexpected XML tag in SEQUENCE [%c%c%c%c%c%c]", + size>0?((const char *)ptr)[0]:'.', + size>1?((const char *)ptr)[1]:'.', + size>2?((const char *)ptr)[2]:'.', + size>3?((const char *)ptr)[3]:'.', + size>4?((const char *)ptr)[4]:'.', + size>5?((const char *)ptr)[5]:'.'); + break; + } + + ctx->phase = 4; /* "Phase out" on hard failure */ + RETURN(RC_FAIL); +} + +asn_enc_rval_t +SEQUENCE_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_enc_rval_t er = {0,0,0}; + int xcan = (flags & XER_F_CANONICAL); + asn_TYPE_descriptor_t *tmp_def_val_td = 0; + void *tmp_def_val = 0; + size_t edx; + + if(!sptr) ASN__ENCODE_FAILED; + + er.encoded = 0; + + for(edx = 0; edx < td->elements_count; edx++) { + asn_enc_rval_t tmper = {0,0,0}; + asn_TYPE_member_t *elm = &td->elements[edx]; + const void *memb_ptr; + const char *mname = elm->name; + unsigned int mlen = strlen(mname); + + if(elm->flags & ATF_POINTER) { + memb_ptr = + *(const void *const *)((const char *)sptr + elm->memb_offset); + if(!memb_ptr) { + assert(tmp_def_val == 0); + if(elm->default_value_set) { + if(elm->default_value_set(&tmp_def_val)) { + ASN__ENCODE_FAILED; + } else { + memb_ptr = tmp_def_val; + tmp_def_val_td = elm->type; + } + } else if(elm->optional) { + continue; + } else { + /* Mandatory element is missing */ + ASN__ENCODE_FAILED; + } + } + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + } + + if(!xcan) ASN__TEXT_INDENT(1, ilevel); + ASN__CALLBACK3("<", 1, mname, mlen, ">", 1); + + /* Print the member itself */ + tmper = elm->type->op->xer_encoder(elm->type, memb_ptr, ilevel + 1, + flags, cb, app_key); + if(tmp_def_val) { + ASN_STRUCT_FREE(*tmp_def_val_td, tmp_def_val); + tmp_def_val = 0; + } + if(tmper.encoded == -1) return tmper; + er.encoded += tmper.encoded; + + ASN__CALLBACK3("", 1); + } + + if(!xcan) ASN__TEXT_INDENT(1, ilevel - 1); + + ASN__ENCODED_OK(er); +cb_failed: + if(tmp_def_val) ASN_STRUCT_FREE(*tmp_def_val_td, tmp_def_val); + ASN__ENCODE_FAILED; +} diff --git a/asn.1/skeleton/constr_SET.c b/asn.1/skeleton/constr_SET.c new file mode 100644 index 00000000..1d9466ce --- /dev/null +++ b/asn.1/skeleton/constr_SET.c @@ -0,0 +1,269 @@ +/* + * Copyright (c) 2003-2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_TYPE_operation_t asn_OP_SET = { + SET_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + SET_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + SET_compare, + SET_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + SET_decode_ber, + SET_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + SET_decode_xer, + SET_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + SET_decode_jer, + SEQUENCE_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, /* SET_decode_oer */ + 0, /* SET_encode_oer */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + 0, /* SET_decode_uper */ + 0, /* SET_encode_uper */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + 0, /* SET_decode_aper */ + 0, /* SET_encode_aper */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + SET_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; + +int +_SET_is_populated(const asn_TYPE_descriptor_t *td, const void *st) { + const asn_SET_specifics_t *specs = (const asn_SET_specifics_t *)td->specifics; + size_t edx; + + /* + * Check that all mandatory elements are present. + */ + for(edx = 0; edx < td->elements_count; + edx += (8 * sizeof(specs->_mandatory_elements[0]))) { + unsigned int midx, pres, must; + + midx = edx/(8 * sizeof(specs->_mandatory_elements[0])); + pres = ((const unsigned int *)((const char *)st + + specs->pres_offset))[midx]; + must = sys_ntohl(specs->_mandatory_elements[midx]); + + if((pres & must) == must) { + /* + * Yes, everything seems to be in place. + */ + } else { + ASN_DEBUG("One or more mandatory elements " + "of a SET %s %d (%08x.%08x)=%08x " + "are not present", + td->name, + midx, + pres, + must, + (~(pres & must) & must) + ); + return 0; + } + } + + return 1; +} + +void +SET_free(const asn_TYPE_descriptor_t *td, void *ptr, + enum asn_struct_free_method method) { + size_t edx; + + if(!td || !ptr) + return; + + ASN_DEBUG("Freeing %s as SET", td->name); + + for(edx = 0; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + void *memb_ptr; + if(elm->flags & ATF_POINTER) { + memb_ptr = *(void **)((char *)ptr + elm->memb_offset); + if(memb_ptr) + ASN_STRUCT_FREE(*elm->type, memb_ptr); + } else { + memb_ptr = (void *)((char *)ptr + elm->memb_offset); + ASN_STRUCT_FREE_CONTENTS_ONLY(*elm->type, memb_ptr); + } + } + + switch(method) { + case ASFM_FREE_EVERYTHING: + FREEMEM(ptr); + break; + case ASFM_FREE_UNDERLYING: + break; + case ASFM_FREE_UNDERLYING_AND_RESET: + memset(ptr, 0, + ((const asn_SET_specifics_t *)(td->specifics))->struct_size); + break; + } +} + +int +SET_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t edx; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* + * Iterate over structure members and check their validity. + */ + for(edx = 0; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + const void *memb_ptr; + + if(elm->flags & ATF_POINTER) { + memb_ptr = *(const void * const *)((const char *)sptr + elm->memb_offset); + if(!memb_ptr) { + if(elm->optional) + continue; + ASN__CTFAIL(app_key, td, sptr, + "%s: mandatory element %s absent (%s:%d)", + td->name, elm->name, __FILE__, __LINE__); + return -1; + } + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + } + + if(elm->encoding_constraints.general_constraints) { + return elm->encoding_constraints.general_constraints( + elm->type, memb_ptr, ctfailcb, app_key); + } else { + return elm->type->encoding_constraints.general_constraints( + elm->type, memb_ptr, ctfailcb, app_key); + } + } + + return 0; +} + +int +SET_compare(const asn_TYPE_descriptor_t *td, const void *aptr, + const void *bptr) { + size_t edx; + + for(edx = 0; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + const void *amemb; + const void *bmemb; + int ret; + + if(elm->flags & ATF_POINTER) { + amemb = + *(const void *const *)((const char *)aptr + elm->memb_offset); + bmemb = + *(const void *const *)((const char *)bptr + elm->memb_offset); + if(!amemb) { + if(!bmemb) continue; + return -1; + } else if(!bmemb) { + return 1; + } + } else { + amemb = (const void *)((const char *)aptr + elm->memb_offset); + bmemb = (const void *)((const char *)bptr + elm->memb_offset); + } + + ret = elm->type->op->compare_struct(elm->type, amemb, bmemb); + if(ret != 0) return ret; + } + + return 0; +} + +int +SET_copy(const asn_TYPE_descriptor_t *td, void **aptr, + const void *bptr) { + if(!td) return -1; + + const asn_SET_specifics_t *specs = + (const asn_SET_specifics_t *)td->specifics; + size_t edx; + void *st = *aptr; /* Target structure */ + + if(!bptr) { + if(st) { + SET_free(td, st, ASFM_FREE_EVERYTHING); + *aptr = 0; + } + return 0; + } + + /* + * Create the target structure if it is not present already. + */ + if(st == 0) { + st = *aptr = CALLOC(1, specs->struct_size); + if(st == 0) return -1; + } + + for(edx = 0; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + void *amemb; + void **amembp; + const void *bmemb; + int ret; + + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + amembp = (void **)((char *)st + elm->memb_offset); + bmemb = *(const void* const*)((const char*)bptr + elm->memb_offset); + } else { + amemb = (char *)st + elm->memb_offset; + amembp = &amemb; + bmemb = (const void*)((const char*)bptr + elm->memb_offset); + } + + ret = elm->type->op->copy_struct(elm->type, amembp, bmemb); + if(ret != 0) return ret; + } + + return 0; +} diff --git a/asn.1/skeleton/constr_SET.h b/asn.1/skeleton/constr_SET.h new file mode 100644 index 00000000..9dd44757 --- /dev/null +++ b/asn.1/skeleton/constr_SET.h @@ -0,0 +1,115 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _CONSTR_SET_H_ +#define _CONSTR_SET_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + + +typedef struct asn_SET_specifics_s { + /* + * Target structure description. + */ + unsigned struct_size; /* Size of the target structure. */ + unsigned ctx_offset; /* Offset of the asn_struct_ctx_t member */ + unsigned pres_offset; /* Offset of _presence_map member */ + + /* + * Tags to members mapping table (sorted). + * Sometimes suitable for DER encoding (untagged CHOICE is present); + * if so, tag2el_count will be greater than td->elements_count. + */ + const asn_TYPE_tag2member_t *tag2el; + unsigned tag2el_count; + + /* + * Tags to members mapping table, second edition. + * Suitable for CANONICAL-XER encoding. + */ + const asn_TYPE_tag2member_t *tag2el_cxer; + unsigned tag2el_cxer_count; + + /* + * Extensions-related stuff. + */ + int extensible; /* Whether SET is extensible */ + const unsigned int *_mandatory_elements; /* Bitmask of mandatory ones */ +} asn_SET_specifics_t; + +/* + * A set specialized functions dealing with the SET type. + */ +asn_struct_free_f SET_free; + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +asn_struct_print_f SET_print; +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +asn_struct_compare_f SET_compare; +asn_struct_copy_f SET_copy; + +asn_constr_check_f SET_constraint; + +#if !defined(ASN_DISABLE_BER_SUPPORT) +ber_type_decoder_f SET_decode_ber; +der_type_encoder_f SET_encode_der; +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +xer_type_decoder_f SET_decode_xer; +xer_type_encoder_f SET_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +jer_type_decoder_f SET_decode_jer; +jer_type_encoder_f SEQUENCE_encode_jer; /* X.697 29. (2021) */ +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +per_type_decoder_f SET_decode_uper; +per_type_encoder_f SET_encode_uper; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +asn_random_fill_f SET_random_fill; +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +extern asn_TYPE_operation_t asn_OP_SET; + + +/* Check that all the mandatory members are present */ +int _SET_is_populated(const asn_TYPE_descriptor_t *td, const void *st); + +/*********************** + * Some handy helpers. * + ***********************/ + +/* + * Figure out whether the SET member indicated by PR_x has already been decoded. + * It is very simple bitfield test, despite its visual complexity. + */ +#define ASN_SET_ISPRESENT(set_ptr, PR_x) \ + ASN_SET_ISPRESENT2(&((set_ptr)->_presence_map), PR_x) +#define ASN_SET_ISPRESENT2(map_ptr, PR_x) \ + (((unsigned int *)(map_ptr)) \ + [(PR_x) / (8 * sizeof(unsigned int))] \ + & (1u << ((8 * sizeof(unsigned int)) - 1 \ + - ((PR_x) % (8 * sizeof(unsigned int)))))) + +#define ASN_SET_MKPRESENT(map_ptr, PR_x) \ + (((unsigned int *)(map_ptr)) \ + [(PR_x) / (8 * sizeof(unsigned int))] \ + |= (1u << ((8 * sizeof(unsigned int)) - 1 \ + - ((PR_x) % (8 * sizeof(unsigned int)))))) + +#ifdef __cplusplus +} +#endif + +#endif /* _CONSTR_SET_H_ */ diff --git a/asn.1/skeleton/constr_SET_OF.c b/asn.1/skeleton/constr_SET_OF.c new file mode 100644 index 00000000..f5cc3bac --- /dev/null +++ b/asn.1/skeleton/constr_SET_OF.c @@ -0,0 +1,429 @@ +/* + * Copyright (c) 2003-2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_TYPE_operation_t asn_OP_SET_OF = { + SET_OF_free, +#if !defined(ASN_DISABLE_PRINT_SUPPORT) + SET_OF_print, +#else + 0, +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + SET_OF_compare, + SET_OF_copy, +#if !defined(ASN_DISABLE_BER_SUPPORT) + SET_OF_decode_ber, + SET_OF_encode_der, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_XER_SUPPORT) + SET_OF_decode_xer, + SET_OF_encode_xer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + SET_OF_decode_jer, + SET_OF_encode_jer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) + SET_OF_decode_oer, + SET_OF_encode_oer, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + SET_OF_decode_uper, + SET_OF_encode_uper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + SET_OF_decode_aper, + SET_OF_encode_aper, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_RFILL_SUPPORT) + SET_OF_random_fill, +#else + 0, +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */ +}; + +/* Append bytes to the above structure */ +static int _el_addbytes(const void *buffer, size_t size, void *el_buf_ptr) { + struct _el_buffer *el_buf = (struct _el_buffer *)el_buf_ptr; + + if(el_buf->length + size > el_buf->allocated_size) { + size_t new_size = el_buf->allocated_size ? el_buf->allocated_size : 8; + void *p; + + do { + new_size <<= 2; + } while(el_buf->length + size > new_size); + + p = REALLOC(el_buf->buf, new_size); + if(p) { + el_buf->buf = p; + el_buf->allocated_size = new_size; + } else { + return -1; + } + } + + memcpy(el_buf->buf + el_buf->length, buffer, size); + + el_buf->length += size; + return 0; +} + +static void assert_unused_bits(const struct _el_buffer* p) { + if(p->length) { + assert((p->buf[p->length-1] & ~(0xff << p->bits_unused)) == 0); + } else { + assert(p->bits_unused == 0); + } +} + +static int _el_buf_cmp(const void *ap, const void *bp) { + const struct _el_buffer *a = (const struct _el_buffer *)ap; + const struct _el_buffer *b = (const struct _el_buffer *)bp; + size_t common_len; + int ret = 0; + + if(a->length < b->length) + common_len = a->length; + else + common_len = b->length; + + if (a->buf && b->buf) { + ret = memcmp(a->buf, b->buf, common_len); + } + if(ret == 0) { + if(a->length < b->length) + ret = -1; + else if(a->length > b->length) + ret = 1; + /* Ignore unused bits. */ + assert_unused_bits(a); + assert_unused_bits(b); + } + + return ret; +} + +void +SET_OF__encode_sorted_free(struct _el_buffer *el_buf, size_t count) { + size_t i; + + for(i = 0; i < count; i++) { + FREEMEM(el_buf[i].buf); + } + + FREEMEM(el_buf); +} + +struct _el_buffer * +SET_OF__encode_sorted(const asn_TYPE_member_t *elm, + const asn_anonymous_set_ *list, + enum SET_OF__encode_method method) { + struct _el_buffer *encoded_els; + int edx; + + encoded_els = + (struct _el_buffer *)CALLOC(list->count, sizeof(encoded_els[0])); + if(encoded_els == NULL) { + return NULL; + } + + /* + * Encode all members. + */ + for(edx = 0; edx < list->count; edx++) { + const void *memb_ptr = list->array[edx]; + struct _el_buffer *encoding_el = &encoded_els[edx]; + asn_enc_rval_t erval = {0,0,0}; + + if(!memb_ptr) break; + + /* + * Encode the member into the prepared space. + */ + switch(method) { +#if !defined(ASN_DISABLE_BER_SUPPORT) + case SOES_DER: + erval = elm->type->op->der_encoder(elm->type, memb_ptr, 0, elm->tag, + _el_addbytes, encoding_el); + break; +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) + case SOES_CUPER: + erval = uper_encode(elm->type, + elm->encoding_constraints.per_constraints, + memb_ptr, _el_addbytes, encoding_el); + if(erval.encoded != -1) { + size_t extra_bits = erval.encoded % 8; + assert(encoding_el->length == (size_t)(erval.encoded + 7) / 8); + encoding_el->bits_unused = (8 - extra_bits) & 0x7; + } + break; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) + case SOES_CAPER: + erval = aper_encode(elm->type, + elm->encoding_constraints.per_constraints, + memb_ptr, _el_addbytes, encoding_el); + if(erval.encoded != -1) { + size_t extra_bits = erval.encoded % 8; + assert(encoding_el->length == (size_t)(erval.encoded + 7) / 8); + encoding_el->bits_unused = (8 - extra_bits) & 0x7; + } + break; +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + + default: + assert(!"Unreachable"); + break; + } + if(erval.encoded < 0) break; + } + + if(edx == list->count) { + /* + * Sort the encoded elements according to their encoding. + */ + qsort(encoded_els, list->count, sizeof(encoded_els[0]), _el_buf_cmp); + + return encoded_els; + } else { + SET_OF__encode_sorted_free(encoded_els, edx); + return NULL; + } +} + +void +SET_OF_free(const asn_TYPE_descriptor_t *td, void *ptr, + enum asn_struct_free_method method) { + if(td && ptr) { + const asn_SET_OF_specifics_t *specs; + asn_TYPE_member_t *elm = td->elements; + asn_anonymous_set_ *list = _A_SET_FROM_VOID(ptr); + asn_struct_ctx_t *ctx; /* Decoder context */ + int i; + + /* + * Could not use set_of_empty() because of (*free) + * incompatibility. + */ + for(i = 0; i < list->count; i++) { + void *memb_ptr = list->array[i]; + if(memb_ptr) + ASN_STRUCT_FREE(*elm->type, memb_ptr); + } + list->count = 0; /* No meaningful elements left */ + + asn_set_empty(list); /* Remove (list->array) */ + + specs = (const asn_SET_OF_specifics_t *)td->specifics; + ctx = (asn_struct_ctx_t *)((char *)ptr + specs->ctx_offset); + if(ctx->ptr) { + ASN_STRUCT_FREE(*elm->type, ctx->ptr); + ctx->ptr = 0; + } + + switch(method) { + case ASFM_FREE_EVERYTHING: + FREEMEM(ptr); + break; + case ASFM_FREE_UNDERLYING: + break; + case ASFM_FREE_UNDERLYING_AND_RESET: + memset(ptr, 0, specs->struct_size); + break; + } + } +} + +int +SET_OF_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const asn_TYPE_member_t *elm = td->elements; + asn_constr_check_f *constr; + const asn_anonymous_set_ *list = _A_CSET_FROM_VOID(sptr); + int i; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + constr = elm->encoding_constraints.general_constraints; + if(!constr) constr = elm->type->encoding_constraints.general_constraints; + + /* + * Iterate over the members of an array. + * Validate each in turn, until one fails. + */ + for(i = 0; i < list->count; i++) { + const void *memb_ptr = list->array[i]; + int ret; + + if(!memb_ptr) continue; + + ret = constr(elm->type, memb_ptr, ctfailcb, app_key); + if(ret) return ret; + } + + return 0; +} + +struct comparable_ptr { + const asn_TYPE_descriptor_t *td; + const void *sptr; +}; + +static int +SET_OF__compare_cb(const void *aptr, const void *bptr) { + const struct comparable_ptr *a = aptr; + const struct comparable_ptr *b = bptr; + assert(a->td == b->td); + return a->td->op->compare_struct(a->td, a->sptr, b->sptr); +} + +int +SET_OF_compare(const asn_TYPE_descriptor_t *td, const void *aptr, + const void *bptr) { + const asn_anonymous_set_ *a = _A_CSET_FROM_VOID(aptr); + const asn_anonymous_set_ *b = _A_CSET_FROM_VOID(bptr); + + if(a && b) { + struct comparable_ptr *asorted; + struct comparable_ptr *bsorted; + ssize_t common_length; + ssize_t idx; + + if(a->count == 0) { + if(b->count) return -1; + return 0; + } else if(b->count == 0) { + return 1; + } + + asorted = MALLOC(a->count * sizeof(asorted[0])); + bsorted = MALLOC(b->count * sizeof(bsorted[0])); + if(!asorted || !bsorted) { + FREEMEM(asorted); + FREEMEM(bsorted); + return -1; + } + + for(idx = 0; idx < a->count; idx++) { + asorted[idx].td = td->elements->type; + asorted[idx].sptr = a->array[idx]; + } + + for(idx = 0; idx < b->count; idx++) { + bsorted[idx].td = td->elements->type; + bsorted[idx].sptr = b->array[idx]; + } + + qsort(asorted, a->count, sizeof(asorted[0]), SET_OF__compare_cb); + qsort(bsorted, b->count, sizeof(bsorted[0]), SET_OF__compare_cb); + + common_length = (a->count < b->count ? a->count : b->count); + for(idx = 0; idx < common_length; idx++) { + int ret = td->elements->type->op->compare_struct( + td->elements->type, asorted[idx].sptr, bsorted[idx].sptr); + if(ret) { + FREEMEM(asorted); + FREEMEM(bsorted); + return ret; + } + } + + FREEMEM(asorted); + FREEMEM(bsorted); + + if(idx < b->count) /* more elements in b */ + return -1; /* a is shorter, so put it first */ + if(idx < a->count) return 1; + } else if(!a) { + return -1; + } else if(!b) { + return 1; + } + + return 0; +} + +int +SET_OF_copy(const asn_TYPE_descriptor_t *td, void **aptr, + const void *bptr) { + if(!td) return -1; + + const asn_SET_OF_specifics_t *specs = + (const asn_SET_OF_specifics_t *)td->specifics; + void *st = *aptr; + + if(!bptr) { + if(*aptr) { + asn_set_empty(_A_SET_FROM_VOID(*aptr)); + *aptr = 0; + } + return 0; + } + + if(st == 0) { + st = *aptr = CALLOC(1, specs->struct_size); + if(st == 0) return -1; + } + + asn_anonymous_set_ *a = _A_SET_FROM_VOID(*aptr); + const asn_anonymous_set_ *b = _A_CSET_FROM_VOID(bptr); + + if(b->size) { + void *_new_arr; + _new_arr = REALLOC(a->array, b->size * sizeof(b->array[0])); + if(_new_arr) { + a->array = (void **)_new_arr; + a->size = b->size; + } else { + return -1; + } + a->count = b->count; + + for(int i = 0; i < b->count; i++) { + void *bmemb = b->array[i]; + if(bmemb) { + void *amemb = 0; + int ret; + ret = td->elements->type->op->copy_struct( + td->elements->type, + &amemb, bmemb); + if(ret != 0) return ret; + a->array[i] = amemb; + } else { + a->array[i] = 0; + } + } + } + + return 0; +} diff --git a/asn.1/skeleton/constr_SET_OF.h b/asn.1/skeleton/constr_SET_OF.h new file mode 100644 index 00000000..82ead586 --- /dev/null +++ b/asn.1/skeleton/constr_SET_OF.h @@ -0,0 +1,104 @@ +/*- + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef CONSTR_SET_OF_H +#define CONSTR_SET_OF_H + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct asn_SET_OF_specifics_s { + /* + * Target structure description. + */ + unsigned struct_size; /* Size of the target structure. */ + unsigned ctx_offset; /* Offset of the asn_struct_ctx_t member */ + + /* XER-specific stuff */ + int as_XMLValueList; /* The member type must be encoded like this */ +} asn_SET_OF_specifics_t; + +/* + * A set specialized functions dealing with the SET OF type. + */ +asn_struct_free_f SET_OF_free; + +#if !defined(ASN_DISABLE_PRINT_SUPPORT) +asn_struct_print_f SET_OF_print; +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ + +asn_struct_compare_f SET_OF_compare; +asn_struct_copy_f SET_OF_copy; + +asn_constr_check_f SET_OF_constraint; + +#if !defined(ASN_DISABLE_BER_SUPPORT) +ber_type_decoder_f SET_OF_decode_ber; +der_type_encoder_f SET_OF_encode_der; +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +xer_type_decoder_f SET_OF_decode_xer; +xer_type_encoder_f SET_OF_encode_xer; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +jer_type_decoder_f SET_OF_decode_jer; +jer_type_encoder_f SET_OF_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +oer_type_decoder_f SET_OF_decode_oer; +oer_type_encoder_f SET_OF_encode_oer; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) +per_type_decoder_f SET_OF_decode_uper; +per_type_encoder_f SET_OF_encode_uper; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +#if !defined(ASN_DISABLE_APER_SUPPORT) +per_type_decoder_f SET_OF_decode_aper; +per_type_encoder_f SET_OF_encode_aper; +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +asn_random_fill_f SET_OF_random_fill; +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +extern asn_TYPE_operation_t asn_OP_SET_OF; + +/* + * Internally visible buffer holding a single encoded element. + */ +struct _el_buffer { + uint8_t *buf; + size_t length; + size_t allocated_size; + unsigned bits_unused; +}; + +enum SET_OF__encode_method { + SOES_DER, /* Distinguished Encoding Rules */ + SOES_CUPER, /* Canonical Unaligned Packed Encoding Rules */ + SOES_CAPER /* Canonical Aligned Packed Encoding Rules */ +}; + +struct _el_buffer * SET_OF__encode_sorted( + const asn_TYPE_member_t *elm, + const asn_anonymous_set_ *list, + enum SET_OF__encode_method method); + +void SET_OF__encode_sorted_free( + struct _el_buffer *el_buf, + size_t count); + +#ifdef __cplusplus +} +#endif + +#endif /* CONSTR_SET_OF_H */ diff --git a/asn.1/skeleton/constr_SET_OF_aper.c b/asn.1/skeleton/constr_SET_OF_aper.c new file mode 100644 index 00000000..f959b173 --- /dev/null +++ b/asn.1/skeleton/constr_SET_OF_aper.c @@ -0,0 +1,185 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_enc_rval_t +SET_OF_encode_aper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, const void *sptr, + asn_per_outp_t *po) { + const asn_anonymous_set_ *list; + const asn_per_constraint_t *ct; + const asn_TYPE_member_t *elm = td->elements; + struct _el_buffer *encoded_els; + asn_enc_rval_t er = {0,0,0}; + int seq; + + if(!sptr) ASN__ENCODE_FAILED; + + list = _A_CSET_FROM_VOID(sptr); + + er.encoded = 0; + + ASN_DEBUG("Encoding %s as SET OF (%d)", td->name, list->count); + + if(constraints) ct = &constraints->size; + else if(td->encoding_constraints.per_constraints) + ct = &td->encoding_constraints.per_constraints->size; + else ct = 0; + + /* If extensible constraint, check if size is in root */ + if(ct) { + int not_in_root = + (list->count < ct->lower_bound || list->count > ct->upper_bound); + ASN_DEBUG("lb %lld ub %lld %s", + (long long int)ct->lower_bound, + (long long int)ct->upper_bound, + ct->flags & APC_EXTENSIBLE ? "ext" : "fix"); + if(ct->flags & APC_EXTENSIBLE) { + /* Declare whether size is in extension root */ + if(per_put_few_bits(po, not_in_root, 1)) ASN__ENCODE_FAILED; + if(not_in_root) ct = 0; + } else if(not_in_root && ct->effective_bits >= 0) { + ASN__ENCODE_FAILED; + } + + } + + if(ct && ct->effective_bits >= 0) { + /* X.691, #19.5: No length determinant */ + /*if(per_put_few_bits(po, list->count - ct->lower_bound, + ct->effective_bits)) + ASN__ENCODE_FAILED;*/ + + if (aper_put_length(po, ct->lower_bound, ct->upper_bound, list->count - ct->lower_bound, 0) < 0) { + ASN__ENCODE_FAILED; + } + } + + /* + * Canonical PER #22.1 mandates dynamic sorting of the SET OF elements + * according to their encodings. Build an array of the encoded elements. + */ + encoded_els = SET_OF__encode_sorted(elm, list, SOES_CAPER); + + for(seq = 0; seq < list->count;) { + ssize_t may_encode; + int need_eom = 0; + if(ct && ct->effective_bits >= 0) { + may_encode = list->count; + } else { + may_encode = + aper_put_length(po, -1, -1, list->count - seq, &need_eom); + if(may_encode < 0) ASN__ENCODE_FAILED; + } + + while(may_encode--) { + const struct _el_buffer *el = &encoded_els[seq++]; + if(asn_put_many_bits(po, el->buf, + (8 * el->length) - el->bits_unused) < 0) { + break; + } + } + if(need_eom && (aper_put_length(po, -1, -1, 0, NULL) < 0)) + ASN__ENCODE_FAILED; /* End of Message length */ + } + + SET_OF__encode_sorted_free(encoded_els, list->count); + + ASN__ENCODED_OK(er); +} + +asn_dec_rval_t +SET_OF_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) { + asn_dec_rval_t rv = {RC_OK, 0}; + const asn_SET_OF_specifics_t *specs = (const asn_SET_OF_specifics_t *)td->specifics; + const asn_TYPE_member_t *elm = td->elements; /* Single one */ + void *st = *sptr; + asn_anonymous_set_ *list; + const asn_per_constraint_t *ct; + int repeat = 0; + ssize_t nelems; + + if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) + ASN__DECODE_FAILED; + + /* + * Create the target structure if it is not present already. + */ + if(!st) { + st = *sptr = CALLOC(1, specs->struct_size); + if(!st) ASN__DECODE_FAILED; + } + list = _A_SET_FROM_VOID(st); + + /* Figure out which constraints to use */ + if(constraints) ct = &constraints->size; + else if(td->encoding_constraints.per_constraints) + ct = &td->encoding_constraints.per_constraints->size; + else ct = 0; + + if(ct && ct->flags & APC_EXTENSIBLE) { + int value = per_get_few_bits(pd, 1); + if(value < 0) ASN__DECODE_STARVED; + if(value) ct = 0; /* Not restricted! */ + } + + if(ct && ct->upper_bound >= 1 && ct->upper_bound <= 65535 + && ct->upper_bound == ct->lower_bound) { + /* X.691, #19.5: No length determinant */ + nelems = ct->upper_bound; + ASN_DEBUG("Preparing to fetch %ld elements from %s", + (long)nelems, td->name); + } else { + nelems = -1; + } + + do { + int i; + if(nelems < 0) { + if (ct) + nelems = aper_get_length(pd, ct->lower_bound, ct->upper_bound, + ct->effective_bits, &repeat); + else + nelems = aper_get_length(pd, -1, -1, -1, &repeat); + ASN_DEBUG("Got to decode %d elements (eff %d)", + (int)nelems, (int)(ct ? ct->effective_bits : -1)); + if(nelems < 0) ASN__DECODE_STARVED; + } + + for(i = 0; i < nelems; i++) { + void *ptr = 0; + ASN_DEBUG("SET OF %s decoding", elm->type->name); + rv = elm->type->op->aper_decoder(opt_codec_ctx, elm->type, + elm->encoding_constraints.per_constraints, &ptr, pd); + ASN_DEBUG("%s SET OF %s decoded %d, %p", + td->name, elm->type->name, rv.code, ptr); + if(rv.code == RC_OK) { + if(ASN_SET_ADD(list, ptr) == 0) + continue; + ASN_DEBUG("Failed to add element into %s", + td->name); + /* Fall through */ + rv.code = RC_FAIL; + } else { + ASN_DEBUG("Failed decoding %s of %s (SET OF)", + elm->type->name, td->name); + } + if(ptr) ASN_STRUCT_FREE(*elm->type, ptr); + return rv; + } + + nelems = -1; /* Allow uper_get_length() */ + } while(repeat); + + ASN_DEBUG("Decoded %s as SET OF", td->name); + + rv.code = RC_OK; + rv.consumed = 0; + return rv; +} diff --git a/asn.1/skeleton/constr_SET_OF_ber.c b/asn.1/skeleton/constr_SET_OF_ber.c new file mode 100644 index 00000000..4187e299 --- /dev/null +++ b/asn.1/skeleton/constr_SET_OF_ber.c @@ -0,0 +1,355 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +/* + * Number of bytes left for this structure. + * (ctx->left) indicates the number of bytes _transferred_ for the structure. + * (size) contains the number of bytes in the buffer passed. + */ +#define LEFT ((size<(size_t)ctx->left)?size:(size_t)ctx->left) + +/* + * If the subprocessor function returns with an indication that it wants + * more data, it may well be a fatal decoding problem, because the + * size is constrained by the 's L, even if the buffer size allows + * reading more data. + * For example, consider the buffer containing the following TLVs: + * ... + * The TLV length clearly indicates that one byte is expected in V, but + * if the V processor returns with "want more data" even if the buffer + * contains way more data than the V processor have seen. + */ +#define SIZE_VIOLATION (ctx->left >= 0 && (size_t)ctx->left <= size) + +/* + * This macro "eats" the part of the buffer which is definitely "consumed", + * i.e. was correctly converted into local representation or rightfully skipped. + */ +#undef ADVANCE +#define ADVANCE(num_bytes) \ + do { \ + size_t num = num_bytes; \ + ptr = ((const char *)ptr) + num; \ + size -= num; \ + if(ctx->left >= 0) \ + ctx->left -= num; \ + consumed_myself += num; \ + } while(0) + +/* + * Switch to the next phase of parsing. + */ +#undef NEXT_PHASE +#define NEXT_PHASE(ctx) \ + do { \ + ctx->phase++; \ + ctx->step = 0; \ + } while(0) +#undef PHASE_OUT +#define PHASE_OUT(ctx) \ + do { \ + ctx->phase = 10; \ + } while(0) + +/* + * Return a standardized complex structure. + */ +#undef RETURN +#define RETURN(_code) \ + do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) + +/* + * The decoder of the SET OF type. + */ +asn_dec_rval_t +SET_OF_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **struct_ptr, + const void *ptr, size_t size, int tag_mode) { + /* + * Bring closer parts of structure description. + */ + const asn_SET_OF_specifics_t *specs = (const asn_SET_OF_specifics_t *)td->specifics; + const asn_TYPE_member_t *elm = td->elements; /* Single one */ + + /* + * Parts of the structure being constructed. + */ + void *st = *struct_ptr; /* Target structure. */ + asn_struct_ctx_t *ctx; /* Decoder context */ + + ber_tlv_tag_t tlv_tag; /* T from TLV */ + asn_dec_rval_t rval; /* Return code from subparsers */ + + ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ + + ASN_DEBUG("Decoding %s as SET OF", td->name); + + /* + * Create the target structure if it is not present already. + */ + if(st == 0) { + st = *struct_ptr = CALLOC(1, specs->struct_size); + if(st == 0) { + RETURN(RC_FAIL); + } + } + + /* + * Restore parsing context. + */ + ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + + /* + * Start to parse where left previously + */ + switch(ctx->phase) { + case 0: + /* + * PHASE 0. + * Check that the set of tags associated with given structure + * perfectly fits our expectations. + */ + + rval = ber_check_tags(opt_codec_ctx, td, ctx, ptr, size, + tag_mode, 1, &ctx->left, 0); + if(rval.code != RC_OK) { + ASN_DEBUG("%s tagging check failed: %d", + td->name, rval.code); + return rval; + } + + if(ctx->left >= 0) + ctx->left += rval.consumed; /* ?Subtracted below! */ + ADVANCE(rval.consumed); + + ASN_DEBUG("Structure consumes %ld bytes, " + "buffer %ld", (long)ctx->left, (long)size); + + NEXT_PHASE(ctx); + /* Fall through */ + case 1: + /* + * PHASE 1. + * From the place where we've left it previously, + * try to decode the next item. + */ + for(;; ctx->step = 0) { + ssize_t tag_len; /* Length of TLV's T */ + + if(ctx->step & 1) + goto microphase2; + + /* + * MICROPHASE 1: Synchronize decoding. + */ + + if(ctx->left == 0) { + ASN_DEBUG("End of SET OF %s", td->name); + /* + * No more things to decode. + * Exit out of here. + */ + PHASE_OUT(ctx); + RETURN(RC_OK); + } + + /* + * Fetch the T from TLV. + */ + tag_len = ber_fetch_tag(ptr, LEFT, &tlv_tag); + switch(tag_len) { + case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); + /* Fall through */ + case -1: RETURN(RC_FAIL); + } + + if(ctx->left < 0 && ((const uint8_t *)ptr)[0] == 0) { + if(LEFT < 2) { + if(SIZE_VIOLATION) + RETURN(RC_FAIL); + else + RETURN(RC_WMORE); + } else if(((const uint8_t *)ptr)[1] == 0) { + /* + * Found the terminator of the + * indefinite length structure. + */ + break; + } + } + + /* Outmost tag may be unknown and cannot be fetched/compared */ + if(elm->tag != (ber_tlv_tag_t)-1) { + if(BER_TAGS_EQUAL(tlv_tag, elm->tag)) { + /* + * The new list member of expected type has arrived. + */ + } else { + ASN_DEBUG("Unexpected tag %s fixed SET OF %s", + ber_tlv_tag_string(tlv_tag), td->name); + ASN_DEBUG("%s SET OF has tag %s", + td->name, ber_tlv_tag_string(elm->tag)); + RETURN(RC_FAIL); + } + } + + /* + * MICROPHASE 2: Invoke the member-specific decoder. + */ + ctx->step |= 1; /* Confirm entering next microphase */ + microphase2: + + /* + * Invoke the member fetch routine according to member's type + */ + rval = elm->type->op->ber_decoder(opt_codec_ctx, + elm->type, &ctx->ptr, + ptr, LEFT, 0); + ASN_DEBUG("In %s SET OF %s code %d consumed %d", + td->name, elm->type->name, + rval.code, (int)rval.consumed); + switch(rval.code) { + case RC_OK: + { + asn_anonymous_set_ *list = _A_SET_FROM_VOID(st); + if(ASN_SET_ADD(list, ctx->ptr) != 0) + RETURN(RC_FAIL); + else + ctx->ptr = 0; + } + break; + case RC_WMORE: /* More data expected */ + if(!SIZE_VIOLATION) { + ADVANCE(rval.consumed); + RETURN(RC_WMORE); + } + /* Fall through */ + case RC_FAIL: /* Fatal error */ + ASN_STRUCT_FREE(*elm->type, ctx->ptr); + ctx->ptr = 0; + RETURN(RC_FAIL); + } /* switch(rval) */ + + ADVANCE(rval.consumed); + } /* for(all list members) */ + + NEXT_PHASE(ctx); + case 2: + /* + * Read in all "end of content" TLVs. + */ + while(ctx->left < 0) { + if(LEFT < 2) { + if(LEFT > 0 && ((const char *)ptr)[0] != 0) { + /* Unexpected tag */ + RETURN(RC_FAIL); + } else { + RETURN(RC_WMORE); + } + } + if(((const char *)ptr)[0] == 0 + && ((const char *)ptr)[1] == 0) { + ADVANCE(2); + ctx->left++; + } else { + RETURN(RC_FAIL); + } + } + + PHASE_OUT(ctx); + } + + RETURN(RC_OK); +} + +/* + * The DER encoder of the SET OF type. + */ +asn_enc_rval_t +SET_OF_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, + int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, + void *app_key) { + const asn_TYPE_member_t *elm = td->elements; + const asn_anonymous_set_ *list = _A_CSET_FROM_VOID(sptr); + size_t computed_size = 0; + ssize_t encoding_size = 0; + struct _el_buffer *encoded_els; + int edx; + + ASN_DEBUG("Estimating size for SET OF %s", td->name); + + /* + * Gather the length of the underlying members sequence. + */ + for(edx = 0; edx < list->count; edx++) { + void *memb_ptr = list->array[edx]; + asn_enc_rval_t erval = {0,0,0}; + + if(!memb_ptr) ASN__ENCODE_FAILED; + + erval = + elm->type->op->der_encoder(elm->type, memb_ptr, 0, elm->tag, 0, 0); + if(erval.encoded == -1) return erval; + computed_size += erval.encoded; + } + + /* + * Encode the TLV for the sequence itself. + */ + encoding_size = + der_write_tags(td, computed_size, tag_mode, 1, tag, cb, app_key); + if(encoding_size < 0) { + ASN__ENCODE_FAILED; + } + computed_size += encoding_size; + + if(!cb || list->count == 0) { + asn_enc_rval_t erval = {0,0,0}; + erval.encoded = computed_size; + ASN__ENCODED_OK(erval); + } + + ASN_DEBUG("Encoding members of %s SET OF", td->name); + + /* + * DER mandates dynamic sorting of the SET OF elements + * according to their encodings. Build an array of the + * encoded elements. + */ + encoded_els = SET_OF__encode_sorted(elm, list, SOES_DER); + + /* + * Report encoded elements to the application. + * Dispose of temporary sorted members table. + */ + for(edx = 0; edx < list->count; edx++) { + struct _el_buffer *encoded_el = &encoded_els[edx]; + /* Report encoded chunks to the application */ + if(cb(encoded_el->buf, encoded_el->length, app_key) < 0) { + break; + } else { + encoding_size += encoded_el->length; + } + } + + SET_OF__encode_sorted_free(encoded_els, list->count); + + if(edx == list->count) { + asn_enc_rval_t erval = {0,0,0}; + assert(computed_size == (size_t)encoding_size); + erval.encoded = computed_size; + ASN__ENCODED_OK(erval); + } else { + ASN__ENCODE_FAILED; + } +} diff --git a/asn.1/skeleton/constr_SET_OF_jer.c b/asn.1/skeleton/constr_SET_OF_jer.c new file mode 100644 index 00000000..1245b701 --- /dev/null +++ b/asn.1/skeleton/constr_SET_OF_jer.c @@ -0,0 +1,220 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Return a standardized complex structure. + */ +#undef RETURN +#define RETURN(_code) \ + do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) + +#undef JER_ADVANCE +#define JER_ADVANCE(num_bytes) \ + do { \ + size_t num = num_bytes; \ + buf_ptr = ((const char *)buf_ptr) + num; \ + size -= num; \ + consumed_myself += num; \ + } while(0) + +/* + * Decode the JER (JSON) data. + */ +asn_dec_rval_t +SET_OF_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **struct_ptr, + const void *buf_ptr, size_t size) { + /* + * Bring closer parts of structure description. + */ + const asn_SET_OF_specifics_t *specs = (const asn_SET_OF_specifics_t *)td->specifics; + const asn_TYPE_member_t *element = td->elements; + + /* + * ... and parts of the structure being constructed. + */ + void *st = *struct_ptr; /* Target structure. */ + asn_struct_ctx_t *ctx; /* Decoder context */ + + asn_dec_rval_t rval = {RC_OK, 0}; /* Return value from a decoder */ + ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ + + /* + * Create the target structure if it is not present already. + */ + if(st == 0) { + st = *struct_ptr = CALLOC(1, specs->struct_size); + if(st == 0) RETURN(RC_FAIL); + } + + /* + * Restore parsing context. + */ + ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + + /* + * Phases of JER/JSON processing: + * Phase 0: Check that the opening tag matches our expectations. + * Phase 1: Processing body and reacting on closing token. + * Phase 2: Processing inner type. + */ + for(; ctx->phase <= 2;) { + pjer_chunk_type_e ch_type; /* JER chunk type */ + ssize_t ch_size; /* Chunk size */ + jer_check_sym_e scv; /* Tag check value */ + + /* + * Go inside the inner member of a set. + */ + if(ctx->phase == 2) { + asn_dec_rval_t tmprval = {RC_OK, 0}; + + /* Invoke the inner type decoder, m.b. multiple times */ + ASN_DEBUG("JER/SET OF element [%s]", + (*element->name) ? element->name : element->type->xml_tag); + tmprval = element->type->op->jer_decoder(opt_codec_ctx, + element->type, + &ctx->ptr, + buf_ptr, size); + if(tmprval.code == RC_OK) { + asn_anonymous_set_ *list = _A_SET_FROM_VOID(st); + if(ASN_SET_ADD(list, ctx->ptr) != 0) + RETURN(RC_FAIL); + ctx->ptr = 0; + JER_ADVANCE(tmprval.consumed); + } else { + JER_ADVANCE(tmprval.consumed); + RETURN(tmprval.code); + } + + ctx->phase = 1; /* Back to body processing */ + ASN_DEBUG("JER/SET OF phase => %d", ctx->phase); + /* Fall through */ + } + + /* + * Get the next part of the JSON stream. + */ + ch_size = jer_next_token(&ctx->context, + buf_ptr, size, &ch_type); + if(ch_size == -1) { + RETURN(RC_FAIL); + } else { + switch(ch_type) { + case PJER_WMORE: + RETURN(RC_WMORE); + case PJER_TEXT: + JER_ADVANCE(ch_size); + continue; + + case PJER_DLM: + case PJER_VALUE: + case PJER_KEY: + break; /* Check the rest down there */ + } + } + + scv = jer_check_sym(buf_ptr, ch_size, NULL); + ASN_DEBUG("JER/SET OF: scv = %d, ph=%d t=%s", + scv, ctx->phase, td->name); + switch(scv) { + case JCK_AEND: + if(ctx->phase == 0) break; + ctx->phase = 0; + + if(ctx->phase == 0) { + /* No more things to decode */ + JER_ADVANCE(ch_size); + ctx->phase = 3; /* Phase out */ + RETURN(RC_OK); + } + /* Fall through */ + case JCK_OEND: + case JCK_KEY: + case JCK_COMMA: + case JCK_ASTART: + if(ctx->phase == 0) { + JER_ADVANCE(ch_size); + ctx->phase = 1; /* Processing body phase */ + continue; + } + /* Fall through */ + case JCK_UNKNOWN: + case JCK_OSTART: + ASN_DEBUG("JER/SET OF: scv=%d, ph=%d", scv, ctx->phase); + if(ctx->phase == 1) { + /* + * Process a single possible member. + */ + ctx->phase = 2; + continue; + } + /* Fall through */ + default: + break; + } + + ASN_DEBUG("Unexpected JSON key in SET OF"); + break; + } + + ctx->phase = 3; /* "Phase out" on hard failure */ + RETURN(RC_FAIL); +} + +asn_enc_rval_t +SET_OF_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + enum jer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, + void *app_key) { + asn_enc_rval_t er = {0,0,0}; + const asn_SET_OF_specifics_t *specs = (const asn_SET_OF_specifics_t *)td->specifics; + const asn_TYPE_member_t *elm = td->elements; + const asn_anonymous_set_ *list = _A_CSET_FROM_VOID(sptr); + int jmin = (flags & JER_F_MINIFIED); + int i; + + if(!sptr) ASN__ENCODE_FAILED; + + er.encoded = 0; + ASN__CALLBACK("[", 1); + + for(i = 0; i < list->count; i++) { + asn_enc_rval_t tmper = {0,0,0}; + + void *memb_ptr = list->array[i]; + if(!memb_ptr) continue; + + if(!jmin) ASN__TEXT_INDENT(1, ilevel + 1); + tmper = elm->type->op->jer_encoder(elm->type, memb_ptr, + ilevel + (specs->as_XMLValueList != 2), + flags, cb, app_key); + if(tmper.encoded == -1) return tmper; + er.encoded += tmper.encoded; + if(tmper.encoded == 0 && specs->as_XMLValueList) { + const char *name = elm->type->xml_tag; + size_t len = strlen(name); + ASN__CALLBACK3("\"", 1, name, len, "\"", 1); + } + if (i != list->count - 1) { + ASN__CALLBACK(",", 1); + } + } + + if(!jmin) ASN__TEXT_INDENT(1, ilevel); + ASN__CALLBACK("]", 1); + + goto cleanup; +cb_failed: + ASN__ENCODE_FAILED; +cleanup: + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/constr_SET_OF_oer.c b/asn.1/skeleton/constr_SET_OF_oer.c new file mode 100644 index 00000000..a0f0140d --- /dev/null +++ b/asn.1/skeleton/constr_SET_OF_oer.c @@ -0,0 +1,281 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include +#include + +/* + * This macro "eats" the part of the buffer which is definitely "consumed", + * i.e. was correctly converted into local representation or rightfully skipped. + */ +#undef ADVANCE +#define ADVANCE(num_bytes) \ + do { \ + size_t num = num_bytes; \ + ptr = ((const char *)ptr) + num; \ + size -= num; \ + consumed_myself += num; \ + } while(0) + +/* + * Switch to the next phase of parsing. + */ +#undef NEXT_PHASE +#define NEXT_PHASE(ctx) \ + do { \ + ctx->phase++; \ + ctx->step = 0; \ + } while(0) +#undef SET_PHASE +#define SET_PHASE(ctx, value) \ + do { \ + ctx->phase = value; \ + ctx->step = 0; \ + } while(0) + +/* + * Return a standardized complex structure. + */ +#undef RETURN +#define RETURN(_code) \ + do { \ + asn_dec_rval_t _rval; \ + _rval.code = _code; \ + _rval.consumed = consumed_myself; \ + return _rval; \ + } while(0) + +/* + * The SEQUENCE OF and SET OF values utilize a "quantity field". + * It is is a pointless combination of #8.6 (length determinant, capable + * of encoding tiny and huge numbers in the shortest possible number of octets) + * and the variable sized integer. What could have been encoded by #8.6 alone + * is required to be encoded by #8.6 followed by that number of unsigned octets. + * This doesn't make too much sense. It seems that the original version of OER + * standard have been using the unconstrained unsigned integer as a quantity + * field, and this legacy have gone through ISO/ITU-T standardization process. + */ +static ssize_t +oer_fetch_quantity(const void *ptr, size_t size, size_t *qty_r) { + const uint8_t *b; + const uint8_t *bend; + size_t len = 0; + size_t qty; + + ssize_t len_len = oer_fetch_length(ptr, size, &len); + if(len_len <= 0) { + *qty_r = 0; + return len_len; + } + + if((len_len + len) > size) { + *qty_r = 0; + return 0; + } + + b = (const uint8_t *)ptr + len_len; + bend = b + len; + + /* Skip the leading 0-bytes */ + for(; b < bend && *b == 0; b++) { + } + + if((bend - b) > (ssize_t)sizeof(size_t)) { + /* Length is not representable by the native size_t type */ + *qty_r = 0; + return -1; + } + + for(qty = 0; b < bend; b++) { + qty = (qty << 8) + *b; + } + + if(qty > RSIZE_MAX) { /* A bit of C11 validation */ + *qty_r = 0; + return -1; + } + + *qty_r = qty; + assert((size_t)len_len + len == (size_t)(bend - (const uint8_t *)ptr)); + return len_len + len; +} + +asn_dec_rval_t +SET_OF_decode_oer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, void **struct_ptr, + const void *ptr, size_t size) { + const asn_SET_OF_specifics_t *specs = (const asn_SET_OF_specifics_t *)td->specifics; + asn_dec_rval_t rval = {RC_OK, 0}; + void *st = *struct_ptr; /* Target structure */ + asn_struct_ctx_t *ctx; /* Decoder context */ + size_t consumed_myself = 0; /* Consumed bytes from ptr. */ + + (void)constraints; + + if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) + ASN__DECODE_FAILED; + + /* + * Create the target structure if it is not present already. + */ + if(st == 0) { + st = *struct_ptr = CALLOC(1, specs->struct_size); + if(st == 0) { + RETURN(RC_FAIL); + } + } + + /* + * Restore parsing context. + */ + ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + + /* + * Start to parse where left previously. + */ + switch(ctx->phase) { + case 0: { + /* + * Fetch number of elements to decode. + */ + size_t length = 0; + size_t len_size = oer_fetch_quantity(ptr, size, &length); + switch(len_size) { + case 0: + RETURN(RC_WMORE); + case -1: + RETURN(RC_FAIL); + default: + ADVANCE(len_size); + ctx->left = length; + } + } + NEXT_PHASE(ctx); + /* FALL THROUGH */ + case 1: { + /* Decode components of the extension root */ + asn_TYPE_member_t *elm = td->elements; + asn_anonymous_set_ *list = _A_SET_FROM_VOID(st); + const void *base_ptr = ptr; + ber_tlv_len_t base_ctx_left = ctx->left; + + assert(td->elements_count == 1); + + ASN_DEBUG("OER SET OF %s Decoding PHASE 1", td->name); + + for(; ctx->left > 0; ctx->left--) { + asn_dec_rval_t rv = elm->type->op->oer_decoder( + opt_codec_ctx, elm->type, + elm->encoding_constraints.oer_constraints, &ctx->ptr, ptr, + size); + ADVANCE(rv.consumed); + switch(rv.code) { + case RC_OK: + if(ASN_SET_ADD(list, ctx->ptr) != 0) { + RETURN(RC_FAIL); + } else { + ctx->ptr = 0; + /* + * This check is to avoid compression bomb with + * specs like SEQUENCE/SET OF NULL which don't + * consume data at all. + */ + if(rv.consumed == 0 && base_ptr == ptr + && (base_ctx_left - ctx->left) > 200) { + ASN__DECODE_FAILED; + } + break; + } + case RC_WMORE: + RETURN(RC_WMORE); + case RC_FAIL: + ASN_STRUCT_FREE(*elm->type, ctx->ptr); + ctx->ptr = 0; + SET_PHASE(ctx, 3); + RETURN(RC_FAIL); + } + } + /* Decoded decently. */ + NEXT_PHASE(ctx); + } + /* Fall through */ + case 2: + /* Ignore fully decoded */ + assert(ctx->left == 0); + RETURN(RC_OK); + case 3: + /* Failed to decode. */ + RETURN(RC_FAIL); + } + + return rval; +} + +static ssize_t +oer_put_quantity(size_t qty, asn_app_consume_bytes_f *cb, void *app_key) { + uint8_t buf[1 + sizeof(size_t)]; + uint8_t *b = &buf[sizeof(size_t)]; /* Last addressable */ + size_t encoded; + + do { + *b-- = qty; + qty >>= 8; + } while(qty); + + *b = sizeof(buf) - (b-buf) - 1; + encoded = sizeof(buf) - (b-buf); + if(cb(b, encoded, app_key) < 0) + return -1; + return encoded; +} + +/* + * Encode as Canonical OER. + */ +asn_enc_rval_t +SET_OF_encode_oer(const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, const void *sptr, + asn_app_consume_bytes_f *cb, void *app_key) { + const asn_TYPE_member_t *elm; + const asn_anonymous_set_ *list; + size_t computed_size = 0; + ssize_t qty_len; + int n; + + (void)constraints; + + if(!sptr) ASN__ENCODE_FAILED; + + elm = td->elements; + list = _A_CSET_FROM_VOID(sptr); + + qty_len = oer_put_quantity(list->count, cb, app_key); + if(qty_len < 0) { + ASN__ENCODE_FAILED; + } + computed_size += qty_len; + + for(n = 0; n < list->count; n++) { + void *memb_ptr = list->array[n]; + asn_enc_rval_t er = {0,0,0}; + er = elm->type->op->oer_encoder( + elm->type, elm->encoding_constraints.oer_constraints, memb_ptr, cb, + app_key); + if(er.encoded < 0) { + return er; + } else { + computed_size += er.encoded; + } + } + + { + asn_enc_rval_t erval = {0,0,0}; + erval.encoded = computed_size; + ASN__ENCODED_OK(erval); + } +} diff --git a/asn.1/skeleton/constr_SET_OF_print.c b/asn.1/skeleton/constr_SET_OF_print.c new file mode 100644 index 00000000..748dba76 --- /dev/null +++ b/asn.1/skeleton/constr_SET_OF_print.c @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +int +SET_OF_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_TYPE_member_t *elm = td->elements; + const asn_anonymous_set_ *list = _A_CSET_FROM_VOID(sptr); + int ret; + int i; + + if(!sptr) return (cb("", 8, app_key) < 0) ? -1 : 0; + + /* Dump preamble */ + if(cb(td->name, strlen(td->name), app_key) < 0 + || cb(" ::= {", 6, app_key) < 0) + return -1; + + for(i = 0; i < list->count; i++) { + const void *memb_ptr = list->array[i]; + if(!memb_ptr) continue; + + _i_INDENT(1); + + ret = elm->type->op->print_struct(elm->type, memb_ptr, + ilevel + 1, cb, app_key); + if(ret) return ret; + } + + ilevel--; + _i_INDENT(1); + + return (cb("}", 1, app_key) < 0) ? -1 : 0; +} diff --git a/asn.1/skeleton/constr_SET_OF_rfill.c b/asn.1/skeleton/constr_SET_OF_rfill.c new file mode 100644 index 00000000..9b2ac5ed --- /dev/null +++ b/asn.1/skeleton/constr_SET_OF_rfill.c @@ -0,0 +1,152 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_random_fill_result_t +SET_OF_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, + const asn_encoding_constraints_t *constraints, + size_t max_length) { + const asn_SET_OF_specifics_t *specs = + (const asn_SET_OF_specifics_t *)td->specifics; + asn_random_fill_result_t res_ok = {ARFILL_OK, 0}; + asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; + asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; + const asn_TYPE_member_t *elm = td->elements; + void *st = *sptr; + long max_elements = 5; + long slb = 0; /* Lower size bound */ + long sub = 0; /* Upper size bound */ + size_t rnd_len; + + if(max_length == 0) return result_skipped; + + if(st == NULL) { + st = (*sptr = CALLOC(1, specs->struct_size)); + if(st == NULL) { + return result_failed; + } + } + + switch(asn_random_between(0, 6)) { + case 0: max_elements = 0; break; + case 1: max_elements = 1; break; + case 2: max_elements = 5; break; + case 3: max_elements = max_length; break; + case 4: max_elements = max_length / 2; break; + case 5: max_elements = max_length / 4; break; + default: break; + } + sub = slb + max_elements; + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + if(!constraints || !constraints->per_constraints) + constraints = &td->encoding_constraints; + if(constraints->per_constraints) { + const asn_per_constraint_t *pc = &constraints->per_constraints->size; + if(pc->flags & APC_SEMI_CONSTRAINED) { + slb = pc->lower_bound; + sub = pc->lower_bound + max_elements; + } else if(pc->flags & APC_CONSTRAINED) { + slb = pc->lower_bound; + sub = pc->upper_bound; + if(sub - slb > max_elements) sub = slb + max_elements; + } + } +#else + if(!constraints) constraints = &td->encoding_constraints; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + + /* Bias towards edges of allowed space */ + switch(asn_random_between(-1, 4)) { + default: + case -1: +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + /* Prepare lengths somewhat outside of constrained range. */ + if(constraints->per_constraints + && (constraints->per_constraints->size.flags & APC_EXTENSIBLE)) { + switch(asn_random_between(0, 5)) { + default: + case 0: + rnd_len = 0; + break; + case 1: + if(slb > 0) { + rnd_len = slb - 1; + } else { + rnd_len = 0; + } + break; + case 2: + rnd_len = asn_random_between(0, slb); + break; + case 3: + if(sub < (ssize_t)max_length) { + rnd_len = sub + 1; + } else { + rnd_len = max_length; + } + break; + case 4: + if(sub < (ssize_t)max_length) { + rnd_len = asn_random_between(sub + 1, max_length); + } else { + rnd_len = max_length; + } + break; + case 5: + rnd_len = max_length; + break; + } + break; + } +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + /* Fall through */ + case 0: + rnd_len = asn_random_between(slb, sub); + break; + case 1: + if(slb < sub) { + rnd_len = asn_random_between(slb + 1, sub); + break; + } + /* Fall through */ + case 2: + rnd_len = asn_random_between(slb, slb); + break; + case 3: + if(slb < sub) { + rnd_len = asn_random_between(slb, sub - 1); + break; + } + /* Fall through */ + case 4: + rnd_len = asn_random_between(sub, sub); + break; + } + + for(; rnd_len > 0; rnd_len--) { + asn_anonymous_set_ *list = _A_SET_FROM_VOID(st); + void *ptr = 0; + asn_random_fill_result_t tmpres = elm->type->op->random_fill( + elm->type, &ptr, &elm->encoding_constraints, + (max_length > res_ok.length ? max_length - res_ok.length : 0) + / rnd_len); + switch(tmpres.code) { + case ARFILL_OK: + ASN_SET_ADD(list, ptr); + res_ok.length += tmpres.length; + break; + case ARFILL_SKIPPED: + break; + case ARFILL_FAILED: + assert(ptr == 0); + return tmpres; + } + } + + return res_ok; +} diff --git a/asn.1/skeleton/constr_SET_OF_uper.c b/asn.1/skeleton/constr_SET_OF_uper.c new file mode 100644 index 00000000..b090e405 --- /dev/null +++ b/asn.1/skeleton/constr_SET_OF_uper.c @@ -0,0 +1,201 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_dec_rval_t +SET_OF_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, + asn_per_data_t *pd) { + asn_dec_rval_t rv = {RC_OK, 0}; + const asn_SET_OF_specifics_t *specs = (const asn_SET_OF_specifics_t *)td->specifics; + const asn_TYPE_member_t *elm = td->elements; /* Single one */ + void *st = *sptr; + asn_anonymous_set_ *list; + const asn_per_constraint_t *ct; + int repeat = 0; + ssize_t nelems; + + if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) + ASN__DECODE_FAILED; + + /* + * Create the target structure if it is not present already. + */ + if(!st) { + st = *sptr = CALLOC(1, specs->struct_size); + if(!st) ASN__DECODE_FAILED; + } + list = _A_SET_FROM_VOID(st); + + /* Figure out which constraints to use */ + if(constraints) ct = &constraints->size; + else if(td->encoding_constraints.per_constraints) + ct = &td->encoding_constraints.per_constraints->size; + else ct = 0; + + if(ct && ct->flags & APC_EXTENSIBLE) { + int value = per_get_few_bits(pd, 1); + if(value < 0) ASN__DECODE_STARVED; + if(value) ct = 0; /* Not restricted! */ + } + + if(ct && ct->effective_bits >= 0) { + /* X.691, #19.5: No length determinant */ + nelems = per_get_few_bits(pd, ct->effective_bits); + ASN_DEBUG("Preparing to fetch %ld+%"ASN_PRIdMAX" elements from %s", + (long)nelems, ct->lower_bound, td->name); + if(nelems < 0) ASN__DECODE_STARVED; + nelems += ct->lower_bound; + } else { + nelems = -1; + } + + do { + int i; + if(nelems < 0) { + nelems = uper_get_length(pd, -1, 0, &repeat); + ASN_DEBUG("Got to decode %" ASN_PRI_SSIZE " elements (eff %d)", + nelems, (int)(ct ? ct->effective_bits : -1)); + if(nelems < 0) ASN__DECODE_STARVED; + } + + for(i = 0; i < nelems; i++) { + void *ptr = 0; + ASN_DEBUG("SET OF %s decoding", elm->type->name); + rv = elm->type->op->uper_decoder(opt_codec_ctx, elm->type, + elm->encoding_constraints.per_constraints, + &ptr, pd); + ASN_DEBUG("%s SET OF %s decoded %d, %p", + td->name, elm->type->name, rv.code, ptr); + if(rv.code == RC_OK) { + if(ASN_SET_ADD(list, ptr) == 0) { + if(rv.consumed == 0 && nelems > 200) { + /* Protect from SET OF NULL compression bombs. */ + ASN__DECODE_FAILED; + } + continue; + } + ASN_DEBUG("Failed to add element into %s", + td->name); + /* Fall through */ + rv.code = RC_FAIL; + } else { + ASN_DEBUG("Failed decoding %s of %s (SET OF)", + elm->type->name, td->name); + } + if(ptr) ASN_STRUCT_FREE(*elm->type, ptr); + return rv; + } + + nelems = -1; /* Allow uper_get_length() */ + } while(repeat); + + ASN_DEBUG("Decoded %s as SET OF", td->name); + + rv.code = RC_OK; + rv.consumed = 0; + return rv; +} + +asn_enc_rval_t +SET_OF_encode_uper(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, const void *sptr, + asn_per_outp_t *po) { + const asn_anonymous_set_ *list; + const asn_per_constraint_t *ct; + const asn_TYPE_member_t *elm = td->elements; + struct _el_buffer *encoded_els; + asn_enc_rval_t er = {0,0,0}; + size_t encoded_edx; + + if(!sptr) ASN__ENCODE_FAILED; + + list = _A_CSET_FROM_VOID(sptr); + + er.encoded = 0; + + ASN_DEBUG("Encoding %s as SEQUENCE OF (%d)", td->name, list->count); + + if(constraints) ct = &constraints->size; + else if(td->encoding_constraints.per_constraints) + ct = &td->encoding_constraints.per_constraints->size; + else ct = 0; + + /* If extensible constraint, check if size is in root */ + if(ct) { + int not_in_root = + (list->count < ct->lower_bound || list->count > ct->upper_bound); + ASN_DEBUG("lb %"ASN_PRIdMAX" ub %"ASN_PRIdMAX" %s", ct->lower_bound, ct->upper_bound, + ct->flags & APC_EXTENSIBLE ? "ext" : "fix"); + if(ct->flags & APC_EXTENSIBLE) { + /* Declare whether size is in extension root */ + if(per_put_few_bits(po, not_in_root, 1)) ASN__ENCODE_FAILED; + if(not_in_root) ct = 0; + } else if(not_in_root && ct->effective_bits >= 0) { + ASN__ENCODE_FAILED; + } + + } + + if(ct && ct->effective_bits >= 0) { + /* X.691, #19.5: No length determinant */ + if(per_put_few_bits(po, list->count - ct->lower_bound, + ct->effective_bits)) + ASN__ENCODE_FAILED; + } else if(list->count == 0) { + /* When the list is empty add only the length determinant + * X.691, #20.6 and #11.9.4.1 + */ + if (uper_put_length(po, 0, 0)) { + ASN__ENCODE_FAILED; + } + ASN__ENCODED_OK(er); + } + + + /* + * Canonical UPER #22.1 mandates dynamic sorting of the SET OF elements + * according to their encodings. Build an array of the encoded elements. + */ + encoded_els = SET_OF__encode_sorted(elm, list, SOES_CUPER); + + for(encoded_edx = 0; (ssize_t)encoded_edx < list->count;) { + ssize_t may_encode; + size_t edx; + int need_eom = 0; + + if(ct && ct->effective_bits >= 0) { + may_encode = list->count; + } else { + may_encode = + uper_put_length(po, list->count - encoded_edx, &need_eom); + if(may_encode < 0) ASN__ENCODE_FAILED; + } + + for(edx = encoded_edx; edx < encoded_edx + may_encode; edx++) { + const struct _el_buffer *el = &encoded_els[edx]; + if(asn_put_many_bits(po, el->buf, + (8 * el->length) - el->bits_unused) < 0) { + break; + } + } + + if(need_eom && uper_put_length(po, 0, 0)) + ASN__ENCODE_FAILED; /* End of Message length */ + + encoded_edx += may_encode; + } + + SET_OF__encode_sorted_free(encoded_els, list->count); + + if((ssize_t)encoded_edx == list->count) { + ASN__ENCODED_OK(er); + } else { + ASN__ENCODE_FAILED; + } +} diff --git a/asn.1/skeleton/constr_SET_OF_xer.c b/asn.1/skeleton/constr_SET_OF_xer.c new file mode 100644 index 00000000..1d97e5be --- /dev/null +++ b/asn.1/skeleton/constr_SET_OF_xer.c @@ -0,0 +1,314 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Return a standardized complex structure. + */ +#undef RETURN +#define RETURN(_code) \ + do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) + +#undef XER_ADVANCE +#define XER_ADVANCE(num_bytes) \ + do { \ + size_t num = num_bytes; \ + buf_ptr = ((const char *)buf_ptr) + num; \ + size -= num; \ + consumed_myself += num; \ + } while(0) + +/* + * Decode the XER (XML) data. + */ +asn_dec_rval_t +SET_OF_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **struct_ptr, + const char *opt_mname, const void *buf_ptr, size_t size) { + /* + * Bring closer parts of structure description. + */ + const asn_SET_OF_specifics_t *specs = (const asn_SET_OF_specifics_t *)td->specifics; + const asn_TYPE_member_t *element = td->elements; + const char *elm_tag; + const char *xml_tag = opt_mname ? opt_mname : td->xml_tag; + + /* + * ... and parts of the structure being constructed. + */ + void *st = *struct_ptr; /* Target structure. */ + asn_struct_ctx_t *ctx; /* Decoder context */ + + asn_dec_rval_t rval = {RC_OK, 0}; /* Return value from a decoder */ + ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ + + /* + * Create the target structure if it is not present already. + */ + if(st == 0) { + st = *struct_ptr = CALLOC(1, specs->struct_size); + if(st == 0) RETURN(RC_FAIL); + } + + /* Which tag is expected for the downstream */ + if(specs->as_XMLValueList) { + elm_tag = (specs->as_XMLValueList == 1) ? 0 : ""; + } else { + elm_tag = (*element->name) + ? element->name : element->type->xml_tag; + } + + /* + * Restore parsing context. + */ + ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + + /* + * Phases of XER/XML processing: + * Phase 0: Check that the opening tag matches our expectations. + * Phase 1: Processing body and reacting on closing tag. + * Phase 2: Processing inner type. + */ + for(; ctx->phase <= 2;) { + pxer_chunk_type_e ch_type; /* XER chunk type */ + ssize_t ch_size; /* Chunk size */ + xer_check_tag_e tcv; /* Tag check value */ + + /* + * Go inside the inner member of a set. + */ + if(ctx->phase == 2) { + asn_dec_rval_t tmprval = {RC_OK, 0}; + + /* Invoke the inner type decoder, m.b. multiple times */ + ASN_DEBUG("XER/SET OF element [%s]", elm_tag); + tmprval = element->type->op->xer_decoder(opt_codec_ctx, + element->type, + &ctx->ptr, elm_tag, + buf_ptr, size); + if(tmprval.code == RC_OK) { + asn_anonymous_set_ *list = _A_SET_FROM_VOID(st); + if(ASN_SET_ADD(list, ctx->ptr) != 0) + RETURN(RC_FAIL); + ctx->ptr = 0; + XER_ADVANCE(tmprval.consumed); + } else { + XER_ADVANCE(tmprval.consumed); + RETURN(tmprval.code); + } + ctx->phase = 1; /* Back to body processing */ + ASN_DEBUG("XER/SET OF phase => %d", ctx->phase); + /* Fall through */ + } + + /* + * Get the next part of the XML stream. + */ + ch_size = xer_next_token(&ctx->context, + buf_ptr, size, &ch_type); + if(ch_size == -1) { + RETURN(RC_FAIL); + } else { + switch(ch_type) { + case PXER_WMORE: + RETURN(RC_WMORE); + case PXER_COMMENT: /* Got XML comment */ + case PXER_TEXT: /* Ignore free-standing text */ + XER_ADVANCE(ch_size); /* Skip silently */ + continue; + case PXER_TAG: + break; /* Check the rest down there */ + } + } + + tcv = xer_check_tag(buf_ptr, ch_size, xml_tag); + ASN_DEBUG("XER/SET OF: tcv = %d, ph=%d t=%s", + tcv, ctx->phase, xml_tag); + switch(tcv) { + case XCT_CLOSING: + if(ctx->phase == 0) break; + ctx->phase = 0; + /* Fall through */ + case XCT_BOTH: + if(ctx->phase == 0) { + /* No more things to decode */ + XER_ADVANCE(ch_size); + ctx->phase = 3; /* Phase out */ + RETURN(RC_OK); + } + /* Fall through */ + case XCT_OPENING: + if(ctx->phase == 0) { + XER_ADVANCE(ch_size); + ctx->phase = 1; /* Processing body phase */ + continue; + } + /* Fall through */ + case XCT_UNKNOWN_OP: + case XCT_UNKNOWN_BO: + + ASN_DEBUG("XER/SET OF: tcv=%d, ph=%d", tcv, ctx->phase); + if(ctx->phase == 1) { + /* + * Process a single possible member. + */ + ctx->phase = 2; + continue; + } + /* Fall through */ + default: + break; + } + + ASN_DEBUG("Unexpected XML tag in SET OF"); + break; + } + + ctx->phase = 3; /* "Phase out" on hard failure */ + RETURN(RC_FAIL); +} + +typedef struct xer_tmp_enc_s { + void *buffer; + size_t offset; + size_t size; +} xer_tmp_enc_t; + +static int +SET_OF_encode_xer_callback(const void *buffer, size_t size, void *key) { + xer_tmp_enc_t *t = (xer_tmp_enc_t *)key; + if(t->offset + size >= t->size) { + size_t newsize = (t->size << 2) + size; + void *p = REALLOC(t->buffer, newsize); + if(!p) return -1; + t->buffer = p; + t->size = newsize; + } + memcpy((char *)t->buffer + t->offset, buffer, size); + t->offset += size; + return 0; +} + +static int +SET_OF_xer_order(const void *aptr, const void *bptr) { + const xer_tmp_enc_t *a = (const xer_tmp_enc_t *)aptr; + const xer_tmp_enc_t *b = (const xer_tmp_enc_t *)bptr; + size_t minlen = a->offset; + int ret; + if(b->offset < minlen) minlen = b->offset; + /* Well-formed UTF-8 has this nice lexicographical property... */ + ret = memcmp(a->buffer, b->buffer, minlen); + if(ret != 0) return ret; + if(a->offset == b->offset) + return 0; + if(a->offset == minlen) + return -1; + return 1; +} + +asn_enc_rval_t +SET_OF_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, + void *app_key) { + asn_enc_rval_t er = {0,0,0}; + const asn_SET_OF_specifics_t *specs = (const asn_SET_OF_specifics_t *)td->specifics; + const asn_TYPE_member_t *elm = td->elements; + const asn_anonymous_set_ *list = _A_CSET_FROM_VOID(sptr); + const char *mname = specs->as_XMLValueList + ? 0 : ((*elm->name) ? elm->name : elm->type->xml_tag); + size_t mlen = mname ? strlen(mname) : 0; + int xcan = (flags & XER_F_CANONICAL); + xer_tmp_enc_t *encs = 0; + size_t encs_count = 0; + void *original_app_key = app_key; + asn_app_consume_bytes_f *original_cb = cb; + int i; + + if(!sptr) ASN__ENCODE_FAILED; + + if(xcan) { + encs = (xer_tmp_enc_t *)MALLOC(list->count * sizeof(encs[0])); + if(!encs) ASN__ENCODE_FAILED; + cb = SET_OF_encode_xer_callback; + } + + er.encoded = 0; + + for(i = 0; i < list->count; i++) { + asn_enc_rval_t tmper = {0,0,0}; + + void *memb_ptr = list->array[i]; + if(!memb_ptr) continue; + + if(encs) { + memset(&encs[encs_count], 0, sizeof(encs[0])); + app_key = &encs[encs_count]; + encs_count++; + } + + if(mname) { + if(!xcan) ASN__TEXT_INDENT(1, ilevel); + ASN__CALLBACK3("<", 1, mname, mlen, ">", 1); + } + + if(!xcan && specs->as_XMLValueList == 1) + ASN__TEXT_INDENT(1, ilevel + 1); + tmper = elm->type->op->xer_encoder(elm->type, memb_ptr, + ilevel + (specs->as_XMLValueList != 2), + flags, cb, app_key); + if(tmper.encoded == -1) return tmper; + er.encoded += tmper.encoded; + if(tmper.encoded == 0 && specs->as_XMLValueList) { + const char *name = elm->type->xml_tag; + size_t len = strlen(name); + ASN__CALLBACK3("<", 1, name, len, "/>", 2); + } + + if(mname) { + ASN__CALLBACK3("", 1); + } + + } + + if(!xcan) ASN__TEXT_INDENT(1, ilevel - 1); + + if(encs) { + xer_tmp_enc_t *enc = encs; + xer_tmp_enc_t *end = encs + encs_count; + ssize_t control_size = 0; + + er.encoded = 0; + cb = original_cb; + app_key = original_app_key; + qsort(encs, encs_count, sizeof(encs[0]), SET_OF_xer_order); + + for(; enc < end; enc++) { + ASN__CALLBACK(enc->buffer, enc->offset); + FREEMEM(enc->buffer); + enc->buffer = 0; + control_size += enc->offset; + } + assert(control_size == er.encoded); + } + + goto cleanup; +cb_failed: + ASN__ENCODE_FAILED; +cleanup: + if(encs) { + size_t n; + for(n = 0; n < encs_count; n++) { + FREEMEM(encs[n].buffer); + } + FREEMEM(encs); + } + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/constr_SET_ber.c b/asn.1/skeleton/constr_SET_ber.c new file mode 100644 index 00000000..5532f28d --- /dev/null +++ b/asn.1/skeleton/constr_SET_ber.c @@ -0,0 +1,576 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Number of bytes left for this structure. + * (ctx->left) indicates the number of bytes _transferred_ for the structure. + * (size) contains the number of bytes in the buffer passed. + */ +#define LEFT ((size<(size_t)ctx->left)?size:(size_t)ctx->left) + +/* + * If the subprocessor function returns with an indication that it wants + * more data, it may well be a fatal decoding problem, because the + * size is constrained by the 's L, even if the buffer size allows + * reading more data. + * For example, consider the buffer containing the following TLVs: + * ... + * The TLV length clearly indicates that one byte is expected in V, but + * if the V processor returns with "want more data" even if the buffer + * contains way more data than the V processor have seen. + */ +#define SIZE_VIOLATION (ctx->left >= 0 && (size_t)ctx->left <= size) + +/* + * This macro "eats" the part of the buffer which is definitely "consumed", + * i.e. was correctly converted into local representation or rightfully skipped. + */ +#undef ADVANCE +#define ADVANCE(num_bytes) \ + do { \ + size_t num = num_bytes; \ + ptr = ((const char *)ptr) + num; \ + size -= num; \ + if(ctx->left >= 0) \ + ctx->left -= num; \ + consumed_myself += num; \ + } while(0) + +/* + * Switch to the next phase of parsing. + */ +#undef NEXT_PHASE +#define NEXT_PHASE(ctx) \ + do { \ + ctx->phase++; \ + ctx->step = 0; \ + } while(0) + +/* + * Return a standardized complex structure. + */ +#undef RETURN +#define RETURN(_code) \ + do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) + +/* + * Tags are canonically sorted in the tag2element map. + */ +static int +_t2e_cmp(const void *ap, const void *bp) { + const asn_TYPE_tag2member_t *a = (const asn_TYPE_tag2member_t *)ap; + const asn_TYPE_tag2member_t *b = (const asn_TYPE_tag2member_t *)bp; + + int a_class = BER_TAG_CLASS(a->el_tag); + int b_class = BER_TAG_CLASS(b->el_tag); + + if(a_class == b_class) { + ber_tlv_tag_t a_value = BER_TAG_VALUE(a->el_tag); + ber_tlv_tag_t b_value = BER_TAG_VALUE(b->el_tag); + + if(a_value == b_value) + return 0; + else if(a_value < b_value) + return -1; + else + return 1; + } else if(a_class < b_class) { + return -1; + } else { + return 1; + } +} + +/* + * The decoder of the SET type. + */ +asn_dec_rval_t +SET_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **struct_ptr, + const void *ptr, size_t size, int tag_mode) { + /* + * Bring closer parts of structure description. + */ + const asn_SET_specifics_t *specs = (const asn_SET_specifics_t *)td->specifics; + const asn_TYPE_member_t *elements = td->elements; + + /* + * Parts of the structure being constructed. + */ + void *st = *struct_ptr; /* Target structure. */ + asn_struct_ctx_t *ctx; /* Decoder context */ + + ber_tlv_tag_t tlv_tag; /* T from TLV */ + asn_dec_rval_t rval; /* Return code from subparsers */ + + ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ + size_t edx; /* SET element's index */ + + ASN_DEBUG("Decoding %s as SET", td->name); + + if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) + ASN__DECODE_FAILED; + + /* + * Create the target structure if it is not present already. + */ + if(st == 0) { + st = *struct_ptr = CALLOC(1, specs->struct_size); + if(st == 0) { + RETURN(RC_FAIL); + } + } + + /* + * Restore parsing context. + */ + ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + + /* + * Start to parse where left previously + */ + switch(ctx->phase) { + case 0: + /* + * PHASE 0. + * Check that the set of tags associated with given structure + * perfectly fits our expectations. + */ + + rval = ber_check_tags(opt_codec_ctx, td, ctx, ptr, size, + tag_mode, 1, &ctx->left, 0); + if(rval.code != RC_OK) { + ASN_DEBUG("%s tagging check failed: %d", + td->name, rval.code); + return rval; + } + + if(ctx->left >= 0) + ctx->left += rval.consumed; /* ?Subtracted below! */ + ADVANCE(rval.consumed); + + NEXT_PHASE(ctx); + + ASN_DEBUG("Structure advertised %ld bytes, " + "buffer contains %ld", (long)ctx->left, (long)size); + + /* Fall through */ + case 1: + /* + * PHASE 1. + * From the place where we've left it previously, + * try to decode the next member from the list of + * this structure's elements. + * Note that elements in BER may arrive out of + * order, yet DER mandates that they shall arrive in the + * canonical order of their tags. So, there is a room + * for optimization. + */ + for(;; ctx->step = 0) { + const asn_TYPE_tag2member_t *t2m; + asn_TYPE_tag2member_t key; + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + ssize_t tag_len; /* Length of TLV's T */ + + if(ctx->step & 1) { + edx = ctx->step >> 1; + goto microphase2; + } + + /* + * MICROPHASE 1: Synchronize decoding. + */ + + if(ctx->left == 0) + /* + * No more things to decode. + * Exit out of here and check whether all mandatory + * elements have been received (in the next phase). + */ + break; + + /* + * Fetch the T from TLV. + */ + tag_len = ber_fetch_tag(ptr, LEFT, &tlv_tag); + switch(tag_len) { + case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); + /* Fall through */ + case -1: RETURN(RC_FAIL); + } + + if(ctx->left < 0 && ((const uint8_t *)ptr)[0] == 0) { + if(LEFT < 2) { + if(SIZE_VIOLATION) + RETURN(RC_FAIL); + else + RETURN(RC_WMORE); + } else if(((const uint8_t *)ptr)[1] == 0) { + /* + * Found the terminator of the + * indefinite length structure. + * Invoke the generic finalization function. + */ + goto phase3; + } + } + + key.el_tag = tlv_tag; + t2m = (const asn_TYPE_tag2member_t *)bsearch(&key, + specs->tag2el, + specs->tag2el_count, + sizeof(specs->tag2el[0]), + _t2e_cmp); + if(t2m) { + /* + * Found the element corresponding to the tag. + */ + edx = t2m->el_no; + ctx->step = (edx << 1) + 1; + ASN_DEBUG("Got tag %s (%s), edx %" ASN_PRI_SSIZE "", + ber_tlv_tag_string(tlv_tag), td->name, edx); + } else if(specs->extensible == 0) { + ASN_DEBUG("Unexpected tag %s " + "in non-extensible SET %s", + ber_tlv_tag_string(tlv_tag), td->name); + RETURN(RC_FAIL); + } else { + /* Skip this tag */ + ssize_t skip; + + ASN_DEBUG("Skipping unknown tag %s", + ber_tlv_tag_string(tlv_tag)); + + skip = ber_skip_length(opt_codec_ctx, + BER_TLV_CONSTRUCTED(ptr), + (const char *)ptr + tag_len, + LEFT - tag_len); + + switch(skip) { + case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); + /* Fall through */ + case -1: RETURN(RC_FAIL); + } + + ADVANCE(skip + tag_len); + continue; /* Try again with the next tag */ + } + + /* + * MICROPHASE 2: Invoke the member-specific decoder. + */ + microphase2: + + /* + * Check for duplications: must not overwrite + * already decoded elements. + */ + if(ASN_SET_ISPRESENT2((char *)st + specs->pres_offset, edx)) { + ASN_DEBUG("SET %s: Duplicate element %s (%" ASN_PRI_SSIZE ")", + td->name, elements[edx].name, edx); + RETURN(RC_FAIL); + } + + /* + * Compute the position of the member inside a structure, + * and also a type of containment (it may be contained + * as pointer or using inline inclusion). + */ + if(elements[edx].flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr2 = (void **)((char *)st + elements[edx].memb_offset); + } else { + /* + * A pointer to a pointer + * holding the start of the structure + */ + memb_ptr = (char *)st + elements[edx].memb_offset; + memb_ptr2 = &memb_ptr; + } + /* + * Invoke the member fetch routine according to member's type + */ + rval = elements[edx].type->op->ber_decoder(opt_codec_ctx, + elements[edx].type, + memb_ptr2, ptr, LEFT, + elements[edx].tag_mode); + switch(rval.code) { + case RC_OK: + ASN_SET_MKPRESENT((char *)st + specs->pres_offset, edx); + break; + case RC_WMORE: /* More data expected */ + if(!SIZE_VIOLATION) { + ADVANCE(rval.consumed); + RETURN(RC_WMORE); + } + /* Fall through */ + case RC_FAIL: /* Fatal error */ + RETURN(RC_FAIL); + } /* switch(rval) */ + + ADVANCE(rval.consumed); + } /* for(all structure members) */ + + phase3: + ctx->phase = 3; + /* Fall through */ + case 3: + case 4: /* Only 00 is expected */ + ASN_DEBUG("SET %s Leftover: %ld, size = %ld", + td->name, (long)ctx->left, (long)size); + + /* + * Skip everything until the end of the SET. + */ + while(ctx->left) { + ssize_t tl, ll; + + tl = ber_fetch_tag(ptr, LEFT, &tlv_tag); + switch(tl) { + case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); + /* Fall through */ + case -1: RETURN(RC_FAIL); + } + + /* + * If expected <0><0>... + */ + if(ctx->left < 0 + && ((const uint8_t *)ptr)[0] == 0) { + if(LEFT < 2) { + if(SIZE_VIOLATION) + RETURN(RC_FAIL); + else + RETURN(RC_WMORE); + } else if(((const uint8_t *)ptr)[1] == 0) { + /* + * Correctly finished with <0><0>. + */ + ADVANCE(2); + ctx->left++; + ctx->phase = 4; + continue; + } + } + + if(specs->extensible == 0 || ctx->phase == 4) { + ASN_DEBUG("Unexpected continuation " + "of a non-extensible type %s " + "(ptr=%02x)", + td->name, *(const uint8_t *)ptr); + RETURN(RC_FAIL); + } + + ll = ber_skip_length(opt_codec_ctx, + BER_TLV_CONSTRUCTED(ptr), + (const char *)ptr + tl, LEFT - tl); + switch(ll) { + case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); + /* Fall through */ + case -1: RETURN(RC_FAIL); + } + + ADVANCE(tl + ll); + } + + ctx->phase = 5; + /* Fall through */ + case 5: + /* Check that all mandatory elements are present. */ + if(!_SET_is_populated(td, st)) + RETURN(RC_FAIL); + + NEXT_PHASE(ctx); + } + + RETURN(RC_OK); +} + +/* + * The DER encoder of the SET type. + */ +asn_enc_rval_t +SET_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, int tag_mode, + ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { + const asn_SET_specifics_t *specs = (const asn_SET_specifics_t *)td->specifics; + size_t computed_size = 0; + asn_enc_rval_t er; + int t2m_build_own = (specs->tag2el_count != td->elements_count); + const asn_TYPE_tag2member_t *t2m; + asn_TYPE_tag2member_t *t2m_build; + size_t t2m_count; + ssize_t ret; + size_t edx; + + /* + * Use existing, or build our own tags map. + */ + if(t2m_build_own) { + t2m_build = (asn_TYPE_tag2member_t *)CALLOC(td->elements_count, + sizeof(t2m_build[0])); + if(!t2m_build) ASN__ENCODE_FAILED; + t2m_count = 0; + } else { + t2m_build = NULL; + /* + * There is no untagged CHOICE in this SET. + * Employ existing table. + */ + } + + /* + * Gather the length of the underlying members sequence. + */ + for(edx = 0; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + asn_enc_rval_t tmper; + const void *memb_ptr_dontuse; /* Pointer to the member */ + const void *const *memb_ptr2; /* Pointer to that pointer */ + + /* + * Compute the length of the encoding of this member. + */ + if(elm->flags & ATF_POINTER) { + memb_ptr2 = + (const void *const *)((const char *)sptr + elm->memb_offset); + if(!*memb_ptr2) { + if(!elm->optional) { + /* Mandatory elements missing */ + FREEMEM(t2m_build); + ASN__ENCODE_FAILED; + } + if(t2m_build) { + t2m_build[t2m_count].el_no = edx; + t2m_build[t2m_count].el_tag = 0; + t2m_count++; + } + continue; + } + } else { + memb_ptr_dontuse = + (const void *)((const char *)sptr + elm->memb_offset); + memb_ptr2 = &memb_ptr_dontuse; /* Only use of memb_ptr_dontuse */ + } + + /* Eliminate default values */ + if(elm->default_value_cmp && elm->default_value_cmp(*memb_ptr2) == 0) { + if(t2m_build) { + t2m_build[t2m_count].el_no = edx; + t2m_build[t2m_count].el_tag = 0; + t2m_count++; + } + continue; + } + + tmper = elm->type->op->der_encoder(elm->type, *memb_ptr2, + elm->tag_mode, elm->tag, + 0, 0); + if(tmper.encoded == -1) + return tmper; + computed_size += tmper.encoded; + + /* + * Remember the outmost tag of this member. + */ + if(t2m_build) { + t2m_build[t2m_count].el_no = edx; + t2m_build[t2m_count].el_tag = asn_TYPE_outmost_tag( + elm->type, *memb_ptr2, elm->tag_mode, elm->tag); + t2m_count++; + } else { + /* + * No dynamic sorting is necessary. + */ + } + } + + /* + * Finalize order of the components. + */ + if(t2m_build) { + /* + * Sort the underlying members according to their + * canonical tags order. DER encoding mandates it. + */ + qsort(t2m_build, t2m_count, sizeof(specs->tag2el[0]), _t2e_cmp); + t2m = t2m_build; + } else { + /* + * Tags are already sorted by the compiler. + */ + t2m = specs->tag2el; + t2m_count = specs->tag2el_count; + } + assert(t2m_count == td->elements_count); + + /* + * Encode the TLV for the sequence itself. + */ + ret = der_write_tags(td, computed_size, tag_mode, 1, tag, cb, app_key); + if(ret == -1) { + FREEMEM(t2m_build); + ASN__ENCODE_FAILED; + } + er.encoded = computed_size + ret; + + if(!cb) { + FREEMEM(t2m_build); + ASN__ENCODED_OK(er); + } + + /* + * Encode all members. + */ + for(edx = 0; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm; + asn_enc_rval_t tmper; + + const void *memb_ptr_dontuse; /* Pointer to the member */ + const void *const *memb_ptr2; /* Pointer to that pointer */ + + /* Encode according to the tag order */ + elm = &td->elements[t2m[edx].el_no]; + + if(elm->flags & ATF_POINTER) { + memb_ptr2 = + (const void *const *)((const char *)sptr + elm->memb_offset); + if(!*memb_ptr2) continue; + } else { + memb_ptr_dontuse = + (const void *)((const char *)sptr + elm->memb_offset); + memb_ptr2 = &memb_ptr_dontuse; /* Only use of memb_ptr_dontuse */ + } + + /* Eliminate default values */ + if(elm->default_value_cmp && elm->default_value_cmp(*memb_ptr2) == 0) + continue; + + tmper = elm->type->op->der_encoder(elm->type, *memb_ptr2, + elm->tag_mode, elm->tag, + cb, app_key); + if(tmper.encoded == -1) + return tmper; + computed_size -= tmper.encoded; + } + + if(computed_size != 0) { + /* + * Encoded size is not equal to the computed size. + */ + FREEMEM(t2m_build); + ASN__ENCODE_FAILED; + } + + FREEMEM(t2m_build); + ASN__ENCODED_OK(er); +} diff --git a/asn.1/skeleton/constr_SET_jer.c b/asn.1/skeleton/constr_SET_jer.c new file mode 100644 index 00000000..7782b0b3 --- /dev/null +++ b/asn.1/skeleton/constr_SET_jer.c @@ -0,0 +1,284 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Return a standardized complex structure. + */ +#undef RETURN +#define RETURN(_code) \ + do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) + +/* + * Check whether we are inside the extensions group. + */ +#define IN_EXTENSION_GROUP(specs, memb_idx) \ + ((specs)->first_extension >= 0 \ + && (unsigned)(specs)->first_extension <= (memb_idx)) + +#undef JER_ADVANCE +#define JER_ADVANCE(num_bytes) \ + do { \ + size_t num = (num_bytes); \ + ptr = ((const char *)ptr) + num; \ + size -= num; \ + consumed_myself += num; \ + } while(0) + +/* + * Decode the JER (JSON) data. + */ +asn_dec_rval_t +SET_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **struct_ptr, + const void *ptr, size_t size) { + /* + * Bring closer parts of structure description. + */ + const asn_SET_specifics_t *specs + = (const asn_SET_specifics_t *)td->specifics; + asn_TYPE_member_t *elements = td->elements; + + /* + * ... and parts of the structure being constructed. + */ + void *st = *struct_ptr; /* Target structure. */ + asn_struct_ctx_t *ctx; /* Decoder context */ + + asn_dec_rval_t rval; /* Return value from a decoder */ + ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ + ssize_t edx; /* Element index */ + + /* + * Create the target structure if it is not present already. + */ + if(st == 0) { + st = *struct_ptr = CALLOC(1, specs->struct_size); + if(st == 0) RETURN(RC_FAIL); + } + + /* + * Restore parsing context. + */ + ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + + + /* + * Phases of JER/JSON processing: + * Phase 0: Check that the key matches our expectations. + * Phase 1: Processing body and reacting on closing key. + * Phase 2: Processing inner type. + * Phase 3: Skipping unknown extensions. + * Phase 4: PHASED OUT + */ + for(edx = ctx->step; ctx->phase <= 3;) { + pjer_chunk_type_e ch_type; /* JER chunk type */ + ssize_t ch_size; /* Chunk size */ + jer_check_sym_e scv; /* Tag check value */ + asn_TYPE_member_t *elm; + + + /* + * Go inside the inner member of a sequence. + */ + if(ctx->phase == 2) { + asn_dec_rval_t tmprval; + void *memb_ptr_dontuse; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + + if(ASN_SET_ISPRESENT2((char *)st + specs->pres_offset, + edx)) { + ASN_DEBUG("SET %s: Duplicate element %s (%" ASN_PRI_SSIZE ")", + td->name, elements[edx].name, edx); + RETURN(RC_FAIL); + } + + elm = &elements[edx]; + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr2 = (void **)((char *)st + elm->memb_offset); + } else { + memb_ptr_dontuse = (char *)st + elm->memb_offset; + memb_ptr2 = &memb_ptr_dontuse; /* Only use of memb_ptr_dontuse */ + } + + /* Invoke the inner type decoder, m.b. multiple times */ + tmprval = elm->type->op->jer_decoder(opt_codec_ctx, + elm->type, memb_ptr2, + ptr, size); + JER_ADVANCE(tmprval.consumed); + if(tmprval.code != RC_OK) + RETURN(tmprval.code); + ctx->phase = 1; /* Back to body processing */ + ASN_SET_MKPRESENT((char *)st + specs->pres_offset, edx); + ASN_DEBUG("JER/SET phase => %d", ctx->phase); + /* Fall through */ + } + + /* + * Get the next part of the JSON stream. + */ + ch_size = jer_next_token(&ctx->context, ptr, size, + &ch_type); + if(ch_size == -1) { + RETURN(RC_FAIL); + } else { + switch(ch_type) { + case PJER_WMORE: + RETURN(RC_WMORE); + + case PJER_TEXT: /* Ignore free-standing text */ + JER_ADVANCE(ch_size); /* Skip silently */ + continue; + + case PJER_DLM: + case PJER_VALUE: /* Ignore free-standing text */ + case PJER_KEY: + break; /* Check the rest down there */ + } + } + + scv = jer_check_sym(ptr, ch_size, NULL); + ASN_DEBUG("JER/SET: scv = %d, ph=%d [%s]", + scv, ctx->phase, td->name); + + + /* Skip the extensions section */ + if(ctx->phase == 3) { + switch(jer_skip_unknown(scv, &ctx->left)) { + case -1: + ctx->phase = 4; + RETURN(RC_FAIL); + case 0: + JER_ADVANCE(ch_size); + continue; + case 1: + JER_ADVANCE(ch_size); + ctx->phase = 1; + continue; + case 2: + ctx->phase = 1; + break; + } + } + + switch(scv) { + case JCK_OEND: + if(ctx->phase == 0) break; + ctx->phase = 0; + + if(_SET_is_populated(td, st)) { + JER_ADVANCE(ch_size); + JER_ADVANCE(jer_whitespace_span(ptr, size)); + ctx->phase = 4; /* Phase out */ + RETURN(RC_OK); + } else { + ASN_DEBUG("Premature end of JER SET"); + RETURN(RC_FAIL); + } + + case JCK_COMMA: + JER_ADVANCE(ch_size); + continue; + + case JCK_OSTART: + if(ctx->phase == 0) { + JER_ADVANCE(ch_size); + ctx->phase = 1; /* Processing body phase */ + continue; + } + + /* Fall through */ + case JCK_KEY: + case JCK_UNKNOWN: + ASN_DEBUG("JER/SET: scv=%d, ph=%d, edx=%" ASN_PRI_SIZE "", + scv, ctx->phase, edx); + if(ctx->phase != 1) { + break; /* Really unexpected */ + } + + if (td->elements_count == 0) { + JER_ADVANCE(ch_size); + continue; + } + + if(edx < td->elements_count) { + /* + * We have to check which member is next. + */ + for(edx = 0; edx < td->elements_count; edx++) { + elm = &elements[edx]; + scv = jer_check_sym(ptr, ch_size, elm->name); + switch (scv) { + case JCK_KEY: + ctx->step = edx; + ctx->phase = 2; + + JER_ADVANCE(ch_size); /* skip key */ + /* skip colon */ + ch_size = jer_next_token(&ctx->context, ptr, size, + &ch_type); + if(ch_size == -1) { + RETURN(RC_FAIL); + } else { + switch(ch_type) { + case PJER_WMORE: + RETURN(RC_WMORE); + case PJER_TEXT: + JER_ADVANCE(ch_size); + break; + default: + RETURN(RC_FAIL); + } + } + break; + case JCK_UNKNOWN: + continue; + default: + edx = td->elements_count; + break; /* Phase out */ + } + break; + } + if(edx != td->elements_count) + continue; + } else { + ASN_DEBUG("Out of defined members: %" ASN_PRI_SIZE "/%u", + edx, td->elements_count); + } + + /* It is expected extension */ + if(specs->extensible) { + ASN_DEBUG("Got anticipated extension"); + ctx->left = 1; + ctx->phase = 3; /* Skip ...'s */ + JER_ADVANCE(ch_size); + continue; + } + + /* Fall through */ + default: + break; + } + + ASN_DEBUG("Unexpected JSON key in SET [%c%c%c%c%c%c]", + size>0?((const char *)ptr)[0]:'.', + size>1?((const char *)ptr)[1]:'.', + size>2?((const char *)ptr)[2]:'.', + size>3?((const char *)ptr)[3]:'.', + size>4?((const char *)ptr)[4]:'.', + size>5?((const char *)ptr)[5]:'.'); + break; + } + + ctx->phase = 4; /* "Phase out" on hard failure */ + RETURN(RC_FAIL); +} diff --git a/asn.1/skeleton/constr_SET_print.c b/asn.1/skeleton/constr_SET_print.c new file mode 100644 index 00000000..b3b28212 --- /dev/null +++ b/asn.1/skeleton/constr_SET_print.c @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +int +SET_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + asn_app_consume_bytes_f *cb, void *app_key) { + size_t edx; + int ret; + + if(!sptr) return (cb("", 8, app_key) < 0) ? -1 : 0; + + /* Dump preamble */ + if(cb(td->name, strlen(td->name), app_key) < 0 + || cb(" ::= {", 6, app_key) < 0) + return -1; + + for(edx = 0; edx < td->elements_count; edx++) { + asn_TYPE_member_t *elm = &td->elements[edx]; + const void *memb_ptr; + + if(elm->flags & ATF_POINTER) { + memb_ptr = *(const void * const *)((const char *)sptr + elm->memb_offset); + if(!memb_ptr) { + if(elm->optional) continue; + /* Print line */ + /* Fall through */ + } + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + } + + _i_INDENT(1); + + /* Print the member's name and stuff */ + if(cb(elm->name, strlen(elm->name), app_key) < 0 + || cb(": ", 2, app_key) < 0) + return -1; + + /* Print the member itself */ + ret = elm->type->op->print_struct(elm->type, memb_ptr, ilevel + 1, + cb, app_key); + if(ret) return ret; + } + + ilevel--; + _i_INDENT(1); + + return (cb("}", 1, app_key) < 0) ? -1 : 0; +} diff --git a/asn.1/skeleton/constr_SET_rfill.c b/asn.1/skeleton/constr_SET_rfill.c new file mode 100644 index 00000000..d033c69d --- /dev/null +++ b/asn.1/skeleton/constr_SET_rfill.c @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +asn_random_fill_result_t +SET_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, + const asn_encoding_constraints_t *constr, + size_t max_length) { + const asn_SET_specifics_t *specs = + (const asn_SET_specifics_t *)td->specifics; + asn_random_fill_result_t result_ok = {ARFILL_OK, 0}; + asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; + asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; + void *st = *sptr; + size_t edx; + + if(max_length == 0) return result_skipped; + + (void)constr; + + if(st == NULL) { + st = CALLOC(1, specs->struct_size); + if(st == NULL) { + return result_failed; + } + } + + for(edx = 0; edx < td->elements_count; edx++) { + const asn_TYPE_member_t *elm = &td->elements[edx]; + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + asn_random_fill_result_t tmpres; + + if(elm->optional && asn_random_between(0, 4) == 2) { + /* Sometimes decide not to fill the optional value */ + continue; + } + + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr2 = (void **)((char *)st + elm->memb_offset); + } else { + memb_ptr = (char *)st + elm->memb_offset; + memb_ptr2 = &memb_ptr; + } + + tmpres = elm->type->op->random_fill( + elm->type, memb_ptr2, &elm->encoding_constraints, + max_length > result_ok.length ? max_length - result_ok.length : 0); + switch(tmpres.code) { + case ARFILL_OK: + result_ok.length += tmpres.length; + continue; + case ARFILL_SKIPPED: + assert(!(elm->flags & ATF_POINTER) || *memb_ptr2 == NULL); + continue; + case ARFILL_FAILED: + if(st == *sptr) { + ASN_STRUCT_RESET(*td, st); + } else { + ASN_STRUCT_FREE(*td, st); + } + return tmpres; + } + } + + *sptr = st; + + return result_ok; +} diff --git a/asn.1/skeleton/constr_SET_xer.c b/asn.1/skeleton/constr_SET_xer.c new file mode 100644 index 00000000..4e513f95 --- /dev/null +++ b/asn.1/skeleton/constr_SET_xer.c @@ -0,0 +1,309 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * Return a standardized complex structure. + */ +#undef RETURN +#define RETURN(_code) \ + do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) + +#undef XER_ADVANCE +#define XER_ADVANCE(num_bytes) \ + do { \ + size_t num = num_bytes; \ + buf_ptr = ((const char *)buf_ptr) + num; \ + size -= num; \ + consumed_myself += num; \ + } while(0) + +/* + * Decode the XER (XML) data. + */ +asn_dec_rval_t +SET_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **struct_ptr, + const char *opt_mname, const void *buf_ptr, size_t size) { + /* + * Bring closer parts of structure description. + */ + const asn_SET_specifics_t *specs = (const asn_SET_specifics_t *)td->specifics; + const asn_TYPE_member_t *elements = td->elements; + const char *xml_tag = opt_mname ? opt_mname : td->xml_tag; + + /* + * ... and parts of the structure being constructed. + */ + void *st = *struct_ptr; /* Target structure. */ + asn_struct_ctx_t *ctx; /* Decoder context */ + + asn_dec_rval_t rval; /* Return value from a decoder */ + ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ + size_t edx; /* Element index */ + + /* + * Create the target structure if it is not present already. + */ + if(st == 0) { + st = *struct_ptr = CALLOC(1, specs->struct_size); + if(st == 0) RETURN(RC_FAIL); + } + + /* + * Restore parsing context. + */ + ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + + /* + * Phases of XER/XML processing: + * Phase 0: Check that the opening tag matches our expectations. + * Phase 1: Processing body and reacting on closing tag. + * Phase 2: Processing inner type. + * Phase 3: Skipping unknown extensions. + * Phase 4: PHASED OUT + */ + for(edx = ctx->step; ctx->phase <= 3;) { + pxer_chunk_type_e ch_type; /* XER chunk type */ + ssize_t ch_size; /* Chunk size */ + xer_check_tag_e tcv; /* Tag check value */ + const asn_TYPE_member_t *elm; + + /* + * Go inside the inner member of a set. + */ + if(ctx->phase == 2) { + asn_dec_rval_t tmprval; + void *memb_ptr_dontuse; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + + if(ASN_SET_ISPRESENT2((char *)st + specs->pres_offset, + edx)) { + ASN_DEBUG("SET %s: Duplicate element %s (%" ASN_PRI_SSIZE ")", + td->name, elements[edx].name, edx); + RETURN(RC_FAIL); + } + + elm = &elements[edx]; + + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr2 = (void **)((char *)st + elm->memb_offset); + } else { + memb_ptr_dontuse = (char *)st + elm->memb_offset; + memb_ptr2 = &memb_ptr_dontuse; /* Only use of memb_ptr_dontuse */ + } + + /* Invoke the inner type decoder, m.b. multiple times */ + tmprval = elm->type->op->xer_decoder(opt_codec_ctx, + elm->type, memb_ptr2, elm->name, + buf_ptr, size); + XER_ADVANCE(tmprval.consumed); + if(tmprval.code != RC_OK) + RETURN(tmprval.code); + ctx->phase = 1; /* Back to body processing */ + ASN_SET_MKPRESENT((char *)st + specs->pres_offset, edx); + ASN_DEBUG("XER/SET phase => %d", ctx->phase); + /* Fall through */ + } + + /* + * Get the next part of the XML stream. + */ + ch_size = xer_next_token(&ctx->context, + buf_ptr, size, &ch_type); + if(ch_size == -1) { + RETURN(RC_FAIL); + } else { + switch(ch_type) { + case PXER_WMORE: + RETURN(RC_WMORE); + case PXER_COMMENT: /* Got XML comment */ + case PXER_TEXT: /* Ignore free-standing text */ + XER_ADVANCE(ch_size); /* Skip silently */ + continue; + case PXER_TAG: + break; /* Check the rest down there */ + } + } + + tcv = xer_check_tag(buf_ptr, ch_size, xml_tag); + ASN_DEBUG("XER/SET: tcv = %d, ph=%d", tcv, ctx->phase); + + /* Skip the extensions section */ + if(ctx->phase == 3) { + switch(xer_skip_unknown(tcv, &ctx->left)) { + case -1: + ctx->phase = 4; + RETURN(RC_FAIL); + case 1: + ctx->phase = 1; + /* Fall through */ + case 0: + XER_ADVANCE(ch_size); + continue; + case 2: + ctx->phase = 1; + break; + } + } + + switch(tcv) { + case XCT_CLOSING: + if(ctx->phase == 0) break; + ctx->phase = 0; + /* Fall through */ + case XCT_BOTH: + if(ctx->phase == 0) { + if(_SET_is_populated(td, st)) { + XER_ADVANCE(ch_size); + ctx->phase = 4; /* Phase out */ + RETURN(RC_OK); + } else { + ASN_DEBUG("Premature end of XER SET"); + RETURN(RC_FAIL); + } + } + /* Fall through */ + case XCT_OPENING: + if(ctx->phase == 0) { + XER_ADVANCE(ch_size); + ctx->phase = 1; /* Processing body phase */ + continue; + } + /* Fall through */ + case XCT_UNKNOWN_OP: + case XCT_UNKNOWN_BO: + + ASN_DEBUG("XER/SET: tcv=%d, ph=%d", tcv, ctx->phase); + if(ctx->phase != 1) + break; /* Really unexpected */ + + /* + * Search which member corresponds to this tag. + */ + for(edx = 0; edx < td->elements_count; edx++) { + switch(xer_check_tag(buf_ptr, ch_size, + elements[edx].name)) { + case XCT_BOTH: + case XCT_OPENING: + /* + * Process this member. + */ + ctx->step = edx; + ctx->phase = 2; + break; + case XCT_UNKNOWN_OP: + case XCT_UNKNOWN_BO: + continue; + default: + edx = td->elements_count; + break; /* Phase out */ + } + break; + } + if(edx != td->elements_count) + continue; + + /* It is expected extension */ + if(specs->extensible) { + ASN_DEBUG("Got anticipated extension"); + /* + * Check for (XCT_BOTH or XCT_UNKNOWN_BO) + * By using a mask. Only record a pure + * tags. + */ + if(tcv & XCT_CLOSING) { + /* Found without body */ + } else { + ctx->left = 1; + ctx->phase = 3; /* Skip ...'s */ + } + XER_ADVANCE(ch_size); + continue; + } + + /* Fall through */ + default: + break; + } + + ASN_DEBUG("Unexpected XML tag in SET, expected \"%s\"", + xml_tag); + break; + } + + ctx->phase = 4; /* "Phase out" on hard failure */ + RETURN(RC_FAIL); +} + +asn_enc_rval_t +SET_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, + void *app_key) { + const asn_SET_specifics_t *specs = (const asn_SET_specifics_t *)td->specifics; + asn_enc_rval_t er; + int xcan = (flags & XER_F_CANONICAL); + const asn_TYPE_tag2member_t *t2m = specs->tag2el_cxer; + size_t t2m_count = specs->tag2el_cxer_count; + size_t edx; + + if(!sptr) + ASN__ENCODE_FAILED; + + assert(t2m_count == td->elements_count); + + er.encoded = 0; + + for(edx = 0; edx < t2m_count; edx++) { + asn_enc_rval_t tmper; + asn_TYPE_member_t *elm; + const void *memb_ptr; + const char *mname; + size_t mlen; + + elm = &td->elements[t2m[edx].el_no]; + mname = elm->name; + mlen = strlen(elm->name); + + if(elm->flags & ATF_POINTER) { + memb_ptr = + *(const void *const *)((const char *)sptr + elm->memb_offset); + if(!memb_ptr) { + if(elm->optional) + continue; + /* Mandatory element missing */ + ASN__ENCODE_FAILED; + } + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + } + + if(!xcan) + ASN__TEXT_INDENT(1, ilevel); + ASN__CALLBACK3("<", 1, mname, mlen, ">", 1); + + /* Print the member itself */ + tmper = elm->type->op->xer_encoder(elm->type, memb_ptr, + ilevel + 1, flags, + cb, app_key); + if(tmper.encoded == -1) return tmper; + er.encoded += tmper.encoded; + + ASN__CALLBACK3("", 1); + } + + if(!xcan) ASN__TEXT_INDENT(1, ilevel - 1); + + ASN__ENCODED_OK(er); +cb_failed: + ASN__ENCODE_FAILED; +} diff --git a/asn.1/generated/constr_TYPE.c b/asn.1/skeleton/constr_TYPE.c similarity index 77% rename from asn.1/generated/constr_TYPE.c rename to asn.1/skeleton/constr_TYPE.c index aefaefdb..5f0212b8 100644 --- a/asn.1/generated/constr_TYPE.c +++ b/asn.1/skeleton/constr_TYPE.c @@ -9,7 +9,7 @@ /* * Version of the ASN.1 infrastructure shipped with compiler. */ -int get_asn1c_environment_version() { return ASN1C_ENVIRONMENT_VERSION; } +int get_asn1c_environment_version(void) { return ASN1C_ENVIRONMENT_VERSION; } static asn_app_consume_bytes_f _print2fp; @@ -54,6 +54,26 @@ asn_fprint(FILE *stream, const asn_TYPE_descriptor_t *td, return fflush(stream); } +/* + * Copy a structuture. + */ +int +asn_copy(const asn_TYPE_descriptor_t *td, + void **struct_dst, const void *struct_src) { + + if(!td || !struct_dst || !struct_src) { + errno = EINVAL; + return -1; + } + + if(!td->op) { + errno = ENOSYS; + return -1; + } + + return td->op->copy_struct(td, struct_dst, struct_src); +} + /* Dump the data into the specified stdio stream */ static int _print2fp(const void *buffer, size_t size, void *app_key) { @@ -70,7 +90,7 @@ _print2fp(const void *buffer, size_t size, void *app_key) { * Some compilers do not support variable args macros. * This function is a replacement of ASN_DEBUG() macro. */ -void ASN_DEBUG_f(const char *fmt, ...); +void CC_PRINTFLIKE(1, 2) ASN_DEBUG_f(const char *fmt, ...); void ASN_DEBUG_f(const char *fmt, ...) { va_list ap; va_start(ap, fmt); diff --git a/asn.1/skeleton/constr_TYPE.h b/asn.1/skeleton/constr_TYPE.h new file mode 100644 index 00000000..b64d5b5e --- /dev/null +++ b/asn.1/skeleton/constr_TYPE.h @@ -0,0 +1,320 @@ +/* + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +/* + * This file contains the declaration structure called "ASN.1 Type Definition", + * which holds all information necessary for encoding and decoding routines. + * This structure even contains pointer to these encoding and decoding routines + * for each defined ASN.1 type. + */ +#ifndef _CONSTR_TYPE_H_ +#define _CONSTR_TYPE_H_ + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +struct asn_TYPE_descriptor_s; /* Forward declaration */ +struct asn_TYPE_member_s; /* Forward declaration */ + +/* + * This type provides the context information for various ASN.1 routines, + * primarily ones doing decoding. A member _asn_ctx of this type must be + * included into certain target language's structures, such as compound types. + */ +typedef struct asn_struct_ctx_s { + short phase; /* Decoding phase */ + short step; /* Elementary step of a phase */ + int context; /* Other context information */ + void *ptr; /* Decoder-specific stuff (stack elements) */ + ber_tlv_len_t left; /* Number of bytes left, -1 for indefinite */ +} asn_struct_ctx_t; + +#if !defined(ASN_DISABLE_BER_SUPPORT) +#include /* Basic Encoding Rules decoder */ +#include /* Distinguished Encoding Rules encoder */ +#else +typedef void (ber_type_decoder_f)(void); +typedef void (der_type_encoder_f)(void); +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ + +#if !defined(ASN_DISABLE_XER_SUPPORT) +#include /* Decoder of XER (XML, text) */ +#include /* Encoder into XER (XML, text) */ +#else +typedef void (xer_type_decoder_f)(void); +typedef void (xer_type_encoder_f)(void); +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ + +#if !defined(ASN_DISABLE_JER_SUPPORT) +#include /* Decoder of JER (JSON, text) */ +#include /* Encoder into JER (JSON, text) */ +#else +typedef void (jer_type_decoder_f)(void); +typedef void (jer_type_encoder_f)(void); +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +#include /* Packet Encoding Rules decoder */ +#include /* Packet Encoding Rules encoder */ +#else +typedef void (per_type_decoder_f)(void); +typedef void (per_type_encoder_f)(void); +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + +#include /* Subtype constraints support */ + +#if !defined(ASN_DISABLE_RFILL_SUPPORT) +#include /* Random structures support */ +#else +typedef void (asn_random_fill_f)(void); +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + +#if !defined(ASN_DISABLE_OER_SUPPORT) +#include /* Octet Encoding Rules encoder */ +#include /* Octet Encoding Rules encoder */ +#else +typedef void (oer_type_decoder_f)(void); +typedef void (oer_type_encoder_f)(void); +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + +/* + * Free the structure according to its specification. + * Use one of ASN_STRUCT_{FREE,RESET,CONTENTS_ONLY} macros instead. + * Do not use directly. + */ +enum asn_struct_free_method { + ASFM_FREE_EVERYTHING, /* free(struct_ptr) and underlying members */ + ASFM_FREE_UNDERLYING, /* free underlying members */ + ASFM_FREE_UNDERLYING_AND_RESET /* FREE_UNDERLYING + memset(0) */ +}; +typedef void (asn_struct_free_f)( + const struct asn_TYPE_descriptor_s *type_descriptor, + void *struct_ptr, enum asn_struct_free_method); + +/* + * Free the structure including freeing the memory pointed to by ptr itself. + */ +#define ASN_STRUCT_FREE(asn_DEF, ptr) \ + (asn_DEF).op->free_struct(&(asn_DEF), (ptr), ASFM_FREE_EVERYTHING) + +/* + * Free the memory used by the members of the structure without freeing the + * the structure pointer itself. + * ZERO-OUT the structure to the safe clean state. + * (Retaining the pointer may be useful in case the structure is allocated + * statically or arranged on the stack, yet its elements are dynamic.) + */ +#define ASN_STRUCT_RESET(asn_DEF, ptr) \ + (asn_DEF).op->free_struct(&(asn_DEF), (ptr), ASFM_FREE_UNDERLYING_AND_RESET) + +/* + * Free memory used by the members of the structure without freeing + * the structure pointer itself. + * (Retaining the pointer may be useful in case the structure is allocated + * statically or arranged on the stack, yet its elements are dynamic.) + * AVOID using it in the application code; + * Use a safer ASN_STRUCT_RESET() instead. + */ +#define ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF, ptr) \ + (asn_DEF).op->free_struct(&(asn_DEF), (ptr), ASFM_FREE_UNDERLYING) + +/* + * Print the structure according to its specification. + */ +typedef int(asn_struct_print_f)( + const struct asn_TYPE_descriptor_s *type_descriptor, + const void *struct_ptr, + int level, /* Indentation level */ + asn_app_consume_bytes_f *callback, void *app_key); + +/* + * Compare two structs between each other. + * Returns <0 if struct_A is "smaller" than struct_B, >0 if "greater", + * and =0 if "equal to", for some type-specific, stable definition of + * "smaller", "greater" and "equal to". + */ +typedef int (asn_struct_compare_f)( + const struct asn_TYPE_descriptor_s *type_descriptor, + const void *struct_A, + const void *struct_B); + +/* + * Copies struct B into struct A. + * Allocates memory for struct A, if necessary. + */ +typedef int (asn_struct_copy_f)( + const struct asn_TYPE_descriptor_s *type_descriptor, + void **struct_A, + const void *struct_B + ); + +/* + * Return the outmost tag of the type. + * If the type is untagged CHOICE, the dynamic operation is performed. + * NOTE: This function pointer type is only useful internally. + * Do not use it in your application. + */ +typedef ber_tlv_tag_t (asn_outmost_tag_f)( + const struct asn_TYPE_descriptor_s *type_descriptor, + const void *struct_ptr, int tag_mode, ber_tlv_tag_t tag); +/* The instance of the above function type; used internally. */ +asn_outmost_tag_f asn_TYPE_outmost_tag; + +/* + * Fetch the desired type of the Open Type based on the + * Information Object Set driven constraints. + */ +typedef struct asn_type_selector_result_s { + const struct asn_TYPE_descriptor_s *type_descriptor; /* Type encoded. */ + unsigned presence_index; /* Associated choice variant. */ +} asn_type_selector_result_t; +typedef asn_type_selector_result_t(asn_type_selector_f)( + const struct asn_TYPE_descriptor_s *parent_type_descriptor, + const void *parent_structure_ptr); + +/* + * Generalized functions for dealing with the speciic type. + * May be directly invoked by applications. + */ +typedef struct asn_TYPE_operation_s { + asn_struct_free_f *free_struct; /* Free the structure */ + asn_struct_print_f *print_struct; /* Human readable output */ + asn_struct_compare_f *compare_struct; /* Compare two structures */ + asn_struct_copy_f *copy_struct; /* Copy method */ + ber_type_decoder_f *ber_decoder; /* Generic BER decoder */ + der_type_encoder_f *der_encoder; /* Canonical DER encoder */ + xer_type_decoder_f *xer_decoder; /* Generic XER decoder */ + xer_type_encoder_f *xer_encoder; /* [Canonical] XER encoder */ + jer_type_decoder_f *jer_decoder; /* Generic JER encoder */ + jer_type_encoder_f *jer_encoder; /* Generic JER encoder */ + oer_type_decoder_f *oer_decoder; /* Generic OER decoder */ + oer_type_encoder_f *oer_encoder; /* Canonical OER encoder */ + per_type_decoder_f *uper_decoder; /* Unaligned PER decoder */ + per_type_encoder_f *uper_encoder; /* Unaligned PER encoder */ + per_type_decoder_f *aper_decoder; /* Aligned PER decoder */ + per_type_encoder_f *aper_encoder; /* Aligned PER encoder */ + asn_random_fill_f *random_fill; /* Initialize with a random value */ + asn_outmost_tag_f *outmost_tag; /* */ +} asn_TYPE_operation_t; + +/* + * A constraints tuple specifying both the OER and PER constraints. + */ +typedef struct asn_encoding_constraints_s { +#if !defined(ASN_DISABLE_OER_SUPPORT) + const struct asn_oer_constraints_s *oer_constraints; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + const struct asn_per_constraints_s *per_constraints; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + asn_constr_check_f *general_constraints; +} asn_encoding_constraints_t; + +/* + * The definitive description of the destination language's structure. + */ +typedef struct asn_TYPE_descriptor_s { + const char *name; /* A name of the ASN.1 type. "" in some cases. */ + const char *xml_tag; /* Name used in XML tag */ + + /* + * Generalized functions for dealing with the specific type. + * May be directly invoked by applications. + */ + asn_TYPE_operation_t *op; + + /*********************************************************************** + * Internally useful members. Not to be used by applications directly. * + **********************************************************************/ + + /* + * Tags that are expected to occur. + */ + const ber_tlv_tag_t *tags; /* Effective tags sequence for this type */ + unsigned tags_count; /* Number of tags which are expected */ + const ber_tlv_tag_t *all_tags; /* Every tag for BER/containment */ + unsigned all_tags_count; /* Number of tags */ + + /* OER, PER, and general constraints */ + asn_encoding_constraints_t encoding_constraints; + + /* + * An ASN.1 production type members (members of SEQUENCE, SET, CHOICE). + */ + struct asn_TYPE_member_s *elements; + unsigned elements_count; + + /* + * Additional information describing the type, used by appropriate + * functions above. + */ + const void *specifics; +} asn_TYPE_descriptor_t; + +/* + * This type describes an element of the constructed type, + * i.e. SEQUENCE, SET, CHOICE, etc. + */ + enum asn_TYPE_flags_e { + ATF_NOFLAGS, + ATF_POINTER = 0x01, /* Represented by the pointer */ + ATF_OPEN_TYPE = 0x02, /* Open Type */ + ATF_ANY_TYPE = 0x04 /* ANY type (deprecated!) */ + }; +typedef struct asn_TYPE_member_s { + enum asn_TYPE_flags_e flags; /* Element's presentation flags */ + unsigned optional; /* Following optional members, including current */ + unsigned memb_offset; /* Offset of the element */ + ber_tlv_tag_t tag; /* Outmost (most immediate) tag */ + int tag_mode; /* IMPLICIT/no/EXPLICIT tag at current level */ + asn_TYPE_descriptor_t *type; /* Member type descriptor */ + asn_type_selector_f *type_selector; /* IoS runtime type selector */ + asn_encoding_constraints_t encoding_constraints; + int (*default_value_cmp)(const void *sptr); /* Compare DEFAULT */ + int (*default_value_set)(void **sptr); /* Set DEFAULT */ + const char *name; /* ASN.1 identifier of the element */ +} asn_TYPE_member_t; + +/* + * BER tag to element number mapping. + */ +typedef struct asn_TYPE_tag2member_s { + ber_tlv_tag_t el_tag; /* Outmost tag of the member */ + unsigned el_no; /* Index of the associated member, base 0 */ + int toff_first; /* First occurrence of the el_tag, relative */ + int toff_last; /* Last occurrence of the el_tag, relative */ +} asn_TYPE_tag2member_t; + +/* + * This function prints out the contents of the target language's structure + * (struct_ptr) into the file pointer (stream) in human readable form. + * RETURN VALUES: + * 0: The structure is printed. + * -1: Problem dumping the structure. + * (See also xer_fprint() in xer_encoder.h) + */ +int asn_fprint(FILE *stream, /* Destination stream descriptor */ + const asn_TYPE_descriptor_t *td, /* ASN.1 type descriptor */ + const void *struct_ptr); /* Structure to be printed */ + +/* + * Copies a source structure (struct_src) into destination structure + * (struct_dst). Allocates memory for the destination structure, if necessary. + * RETURN VALUES: + * 0: Copy OK. + * -1: Problem copying the structure. + */ +int asn_copy(const asn_TYPE_descriptor_t *td, /* ASN.1 type descriptor */ + void **struct_dst, /* Structure to be populated */ + const void *struct_src); /* Structure to be copied */ + +#ifdef __cplusplus +} +#endif + +#endif /* _CONSTR_TYPE_H_ */ diff --git a/asn.1/generated/constraints.c b/asn.1/skeleton/constraints.c similarity index 99% rename from asn.1/generated/constraints.c rename to asn.1/skeleton/constraints.c index df3c6c19..72137cc5 100644 --- a/asn.1/generated/constraints.c +++ b/asn.1/skeleton/constraints.c @@ -35,6 +35,7 @@ struct errbufDesc { }; static void +CC_PRINTFLIKE(4, 5) _asn_i_ctfailcb(void *key, const asn_TYPE_descriptor_t *td, const void *sptr, const char *fmt, ...) { struct errbufDesc *arg = key; diff --git a/asn.1/generated/constraints.h b/asn.1/skeleton/constraints.h similarity index 98% rename from asn.1/generated/constraints.h rename to asn.1/skeleton/constraints.h index 0bd86a96..0c093fa8 100644 --- a/asn.1/generated/constraints.h +++ b/asn.1/skeleton/constraints.h @@ -6,6 +6,7 @@ #define ASN1_CONSTRAINTS_VALIDATOR_H #include /* Platform-dependent types */ +#include #ifdef __cplusplus extern "C" { diff --git a/asn.1/generated/der_encoder.c b/asn.1/skeleton/der_encoder.c similarity index 100% rename from asn.1/generated/der_encoder.c rename to asn.1/skeleton/der_encoder.c diff --git a/asn.1/generated/der_encoder.h b/asn.1/skeleton/der_encoder.h similarity index 100% rename from asn.1/generated/der_encoder.h rename to asn.1/skeleton/der_encoder.h diff --git a/asn.1/skeleton/jer_decoder.c b/asn.1/skeleton/jer_decoder.c new file mode 100644 index 00000000..dd8566aa --- /dev/null +++ b/asn.1/skeleton/jer_decoder.c @@ -0,0 +1,314 @@ +/* + * Copyright (c) 2004-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include /* JER/JSON parsing support */ + + +/* + * Decode the jer encoding of a given type. + */ +asn_dec_rval_t +jer_decode(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **struct_ptr, + const void *buffer, size_t size) { + asn_codec_ctx_t s_codec_ctx; + + /* + * Stack checker requires that the codec context + * must be allocated on the stack. + */ + if(opt_codec_ctx) { + if(opt_codec_ctx->max_stack_size) { + s_codec_ctx = *opt_codec_ctx; + opt_codec_ctx = &s_codec_ctx; + } + } else { + /* If context is not given, be security-conscious anyway */ + memset(&s_codec_ctx, 0, sizeof(s_codec_ctx)); + s_codec_ctx.max_stack_size = ASN__DEFAULT_STACK_MAX; + opt_codec_ctx = &s_codec_ctx; + } + + /* + * Invoke type-specific decoder. + */ + return td->op->jer_decoder(opt_codec_ctx, td, struct_ptr, buffer, size); +} + + + +struct jer__cb_arg { + pjson_chunk_type_e chunk_type; + size_t chunk_size; + const void *chunk_buf; + int callback_not_invoked; +}; + +static int +jer__token_cb(pjson_chunk_type_e type, const void *_chunk_data, size_t _chunk_size, void *key) { + struct jer__cb_arg *arg = (struct jer__cb_arg *)key; + arg->chunk_type = type; + arg->chunk_size = _chunk_size; + arg->chunk_buf = _chunk_data; + arg->callback_not_invoked = 0; + return -1; /* Terminate the JSON parsing */ +} + +/* + * Fetch the next token from the JER/JSON stream. + */ +ssize_t +jer_next_token(int *stateContext, const void *buffer, size_t size, pjer_chunk_type_e *ch_type) { + struct jer__cb_arg arg; + int new_stateContext = *stateContext; + ssize_t ret; + + arg.callback_not_invoked = 1; + ret = pjson_parse(&new_stateContext, buffer, size, jer__token_cb, &arg); + if(ret < 0) return -1; + if(arg.callback_not_invoked) { + assert(ret == 0); /* No data was consumed */ + *ch_type = PJER_WMORE; + return 0; /* Try again with more data */ + } else { + assert(arg.chunk_size); + assert(arg.chunk_buf == buffer); + } + + /* + * Translate the JSON chunk types into more convenient ones. + */ + switch(arg.chunk_type) { + case PJSON_TEXT: + *ch_type = PJER_TEXT; + break; + case PJSON_KEY: + *ch_type = PJER_WMORE; + break; + case PJSON_DLM: + *ch_type = PJER_DLM; + break; + case PJSON_KEY_END: + *ch_type = PJER_KEY; + break; + case PJSON_VALUE_END: + *ch_type = PJER_VALUE; + break; + default: + return 0; /* Want more */ + } + + *stateContext = new_stateContext; + return arg.chunk_size; +} + +#define LCBRAC 0x7b /* '{' */ +#define RCBRAC 0x7d /* '}' */ +#define CQUOTE 0x22 /* '"' */ +#define CCOMMA 0x2c /* ',' */ +#define LSBRAC 0x5b /* '[' */ +#define RSBRAC 0x5d /* ']' */ + +jer_check_sym_e +jer_check_sym(const void *buf_ptr, int size, const char *need_key) { + const char *buf = (const char *)buf_ptr; + const char *end; + + if(!need_key) { /* expected data end */ + switch(buf[size-1]) { + case LCBRAC: + return JCK_OSTART; + case RCBRAC: + return JCK_OEND; + case LSBRAC: + return JCK_ASTART; + case RSBRAC: + return JCK_AEND; + case CCOMMA: + return JCK_COMMA; + default: + return JCK_UNKNOWN; + } + } + + if(size < 2 || + (buf[0] != CQUOTE || buf[size-1] != CQUOTE)) { + if(size >= 2) + ASN_DEBUG("Broken JSON key: \"%c...%c\"", + buf[0], buf[size - 1]); + return JCK_BROKEN; + } + + buf++; /* advance past first quote */ + size -= 2; /* strip quotes */ + + /* + * Determine the key name. + */ + for(end = buf + size; buf < end; buf++, need_key++) { + int b = *buf, n = *need_key; + if(b != n) { + if(n == 0) { + switch(b) { + case 0x09: case 0x0a: case 0x0c: case 0x0d: + case 0x20: + /* "abc def": accept whitespace */ + return JCK_KEY; + } + } + return JCK_UNKNOWN; + } + if(b == 0) + return JCK_BROKEN; /* Embedded 0 in buf?! */ + } + if(*need_key) + return JCK_UNKNOWN; + + return JCK_KEY; +} + + +#undef ADVANCE +#define ADVANCE(num_bytes) do { \ + size_t num = (num_bytes); \ + buf_ptr = ((const char *)buf_ptr) + num; \ + size -= num; \ + consumed_myself += num; \ + } while(0) + +#undef RETURN +#define RETURN(_code) do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + if(rval.code != RC_OK) \ + ASN_DEBUG("Failed with %d", rval.code); \ + return rval; \ + } while(0) + +#define JER_GOT_BODY(chunk_buf, chunk_size, size) do { \ + ssize_t converted_size = body_receiver \ + (struct_key, chunk_buf, chunk_size, \ + (size_t)chunk_size <= size); \ + if(converted_size == -1) RETURN(RC_FAIL); \ + if(converted_size == 0 \ + && size == (size_t)chunk_size) \ + RETURN(RC_WMORE); \ + chunk_size = converted_size; \ + } while(0) +#define JER_GOT_EMPTY() do { \ + if(body_receiver(struct_key, 0, 0, size > 0) == -1) \ + RETURN(RC_FAIL); \ + } while(0) + +/* + * Generalized function for decoding the primitive values. + */ +asn_dec_rval_t +jer_decode_general(const asn_codec_ctx_t *opt_codec_ctx, + asn_struct_ctx_t *ctx, /* Type decoder context */ + void *struct_key, + const void *buf_ptr, size_t size, + int (*opt_unexpected_key_decoder) + (void *struct_key, const void *chunk_buf, size_t chunk_size), + ssize_t (*body_receiver) + (void *struct_key, const void *chunk_buf, size_t chunk_size, + int have_more) + ) { + + asn_dec_rval_t rval; + ssize_t consumed_myself = 0; + + (void)opt_codec_ctx; + (void)opt_unexpected_key_decoder; + + /* + * Phases of jer/JSON processing: + * Phase 0: Check that the opening key matches our expectations. + * Phase 1: Processing body and reacting on closing token. + */ + if(ctx->phase > 1) RETURN(RC_FAIL); + for(;;) { + pjer_chunk_type_e ch_type; /* jer chunk type */ + ssize_t ch_size; /* Chunk size */ + + /* + * Get the next part of the JSON stream. + */ + ch_size = jer_next_token(&ctx->context, buf_ptr, size, + &ch_type); + if(ch_size == -1) { + RETURN(RC_FAIL); + } else { + switch(ch_type) { + case PJER_WMORE: + RETURN(RC_WMORE); + case PJER_TEXT: + ADVANCE(ch_size); + continue; + case PJER_VALUE: + JER_GOT_BODY(buf_ptr, ch_size, size); + ADVANCE(ch_size); + ADVANCE(jer_whitespace_span(buf_ptr, size)); /* skip whitespace */ + ch_size = 1; + case PJER_KEY: + case PJER_DLM: + break; /* Check the rest down there */ + } + } + + ctx->phase = 2; /* Phase out */ + RETURN(RC_OK); + + break; /* Dark and mysterious things have just happened */ + } + + RETURN(RC_FAIL); +} + + +size_t +jer_whitespace_span(const void *chunk_buf, size_t chunk_size) { + const char *p = (const char *)chunk_buf; + const char *pend = (p == NULL)? NULL : p + chunk_size; + + for(; p < pend; p++) { + switch(*p) { + /* X.693, #8.1.4 + * HORISONTAL TAB (9) + * LINE FEED (10) + * CARRIAGE RETURN (13) + * SPACE (32) + */ + case 0x09: case 0x0a: case 0x0d: case 0x20: + continue; + default: + break; + } + break; + } + return (p - (const char *)chunk_buf); +} + +/* + * This is a vastly simplified, non-validating JSON tree skipper. [TODO] + */ +int +jer_skip_unknown(jer_check_sym_e scv, ber_tlv_len_t *depth) { + assert(*depth > 0); + switch(scv) { + case JCK_KEY: + ++(*depth); + return 0; + case JCK_COMMA: + case JCK_OEND: + case JCK_UNKNOWN: + if(--(*depth) == 0) + return (scv == JCK_OEND) ? 2 : 1; + return 0; + default: + return -1; + } +} diff --git a/asn.1/skeleton/jer_decoder.h b/asn.1/skeleton/jer_decoder.h new file mode 100644 index 00000000..550cf64f --- /dev/null +++ b/asn.1/skeleton/jer_decoder.h @@ -0,0 +1,106 @@ +/*- + * Copyright (c) 2004-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _JER_DECODER_H_ +#define _JER_DECODER_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +struct asn_TYPE_descriptor_s; /* Forward declaration */ + +/* + * The JER decoder of any ASN.1 type. May be invoked by the application. + * Decodes CANONICAL-JER and BASIC-JER. + */ +asn_dec_rval_t jer_decode( + const struct asn_codec_ctx_s *opt_codec_ctx, + const struct asn_TYPE_descriptor_s *type_descriptor, + void **struct_ptr, /* Pointer to a target structure's pointer */ + const void *buffer, /* Data to be decoded */ + size_t size /* Size of data buffer */ +); + +/* + * Type of the type-specific JER decoder function. + */ +typedef asn_dec_rval_t(jer_type_decoder_f)( + const asn_codec_ctx_t *opt_codec_ctx, + const struct asn_TYPE_descriptor_s *type_descriptor, void **struct_ptr, + const void *buf_ptr, size_t size); + +/******************************* + * INTERNALLY USEFUL FUNCTIONS * + *******************************/ + +/* + * Generalized function for decoding the primitive values. + * Used by more specialized functions, such as OCTET_STRING_decode_jer_utf8 + * and others. This function should not be used by applications, as its API + * is subject to changes. + */ +asn_dec_rval_t jer_decode_general( + const asn_codec_ctx_t *opt_codec_ctx, + asn_struct_ctx_t *ctx, /* Type decoder context */ + void *struct_key, /* Treated as opaque pointer */ + const void *buf_ptr, size_t size, + int (*opt_unexpected_tag_decoder)(void *struct_key, const void *chunk_buf, + size_t chunk_size), + ssize_t (*body_receiver)(void *struct_key, const void *chunk_buf, + size_t chunk_size, int have_more)); + + +/* + * Fetch the next JER (JSON) token from the stream. + * The function returns the number of bytes occupied by the chunk type, + * returned in the _ch_type. The _ch_type is only set (and valid) when + * the return value is >= 0. + */ +typedef enum pjer_chunk_type { + PJER_WMORE, /* Chunk type is not clear, more data expected. */ + PJER_TEXT, /* General data */ + PJER_KEY, /* Complete JSON key */ + PJER_VALUE, /* Complete JSON value */ + PJER_DLM /* JSON delimiter */ + } pjer_chunk_type_e; +ssize_t jer_next_token(int *stateContext, + const void *buffer, size_t size, pjer_chunk_type_e *_ch_type); + +/* + * This function checks the buffer for the current token or + * against the key name expected to occur. + */ +typedef enum jer_check_sym { + JCK_BROKEN, /* Something is broken */ + JCK_UNKNOWN, /* Key or delimiter is unknown */ + JCK_KEY, /* Key is OK */ + JCK_COMMA, /* Delimiter is ',' */ + JCK_OSTART, /* Delimiter is '{' */ + JCK_OEND, /* Delimiter is '}' */ + JCK_ASTART, /* Delimiter is '[' */ + JCK_AEND /* Delimiter is ']' */ +} jer_check_sym_e; +jer_check_sym_e jer_check_sym(const void *buf_ptr, int size, + const char *need_key); + +/* + * Get the number of bytes consisting entirely of JER whitespace characters. + * RETURN VALUES: + * >=0: Number of whitespace characters in the string. + */ +size_t jer_whitespace_span(const void *chunk_buf, size_t chunk_size); + +/* + * Skip the series of anticipated extensions. + */ +int jer_skip_unknown(jer_check_sym_e scv, ber_tlv_len_t *depth); + +#ifdef __cplusplus +} +#endif + +#endif /* _JER_DECODER_H_ */ diff --git a/asn.1/skeleton/jer_encoder.c b/asn.1/skeleton/jer_encoder.c new file mode 100644 index 00000000..634ab09d --- /dev/null +++ b/asn.1/skeleton/jer_encoder.c @@ -0,0 +1,58 @@ +/*- + * Copyright (c) 2003, 2004 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +/* + * The JER encoder of any type. May be invoked by the application. + */ +asn_enc_rval_t +jer_encode(const asn_TYPE_descriptor_t *td, const void *sptr, + enum jer_encoder_flags_e jer_flags, asn_app_consume_bytes_f *cb, + void *app_key) { + asn_enc_rval_t er = {0, 0, 0}; + asn_enc_rval_t tmper; + + if(!td || !sptr) goto cb_failed; + + tmper = td->op->jer_encoder(td, sptr, 0, jer_flags, cb, app_key); + if(tmper.encoded == -1) return tmper; + er.encoded += tmper.encoded; + + ASN__ENCODED_OK(er); +cb_failed: + ASN__ENCODE_FAILED; +} + +/* + * This is a helper function for jer_fprint, which directs all incoming data + * into the provided file descriptor. + */ +static int +jer__print2fp(const void *buffer, size_t size, void *app_key) { + FILE *stream = (FILE *)app_key; + + if(fwrite(buffer, 1, size, stream) != size) + return -1; + + return 0; +} + +int +jer_fprint(FILE *stream, const asn_TYPE_descriptor_t *td, const void *sptr) { + asn_enc_rval_t er = {0,0,0}; + + if(!stream) stream = stdout; + if(!td || !sptr) + return -1; + + er = jer_encode(td, sptr, JER_F, jer__print2fp, stream); + if(er.encoded == -1) + return -1; + + return fflush(stream); +} + diff --git a/asn.1/skeleton/jer_encoder.h b/asn.1/skeleton/jer_encoder.h new file mode 100644 index 00000000..cf8b9d26 --- /dev/null +++ b/asn.1/skeleton/jer_encoder.h @@ -0,0 +1,85 @@ +/*- + * Copyright (c) 2004-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _JER_ENCODER_H_ +#define _JER_ENCODER_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +struct asn_TYPE_descriptor_s; /* Forward declaration */ + +/* + * Flags used by the jer_encode() and (*jer_type_encoder_f), defined below + */ +enum jer_encoder_flags_e { + /* Mode of encoding */ + JER_F = 0x01, /* JER (pretty-printing) */ + JER_F_MINIFIED = 0x02, /* JER (minified) */ +}; + +/* + * The JER encoder of any type. May be invoked by the application. + * Produces JER output. + */ +asn_enc_rval_t jer_encode(const struct asn_TYPE_descriptor_s *type_descriptor, + const void *struct_ptr, /* Structure to be encoded */ + enum jer_encoder_flags_e jer_flags, + asn_app_consume_bytes_f *consume_bytes_cb, + void *app_key /* Arbitrary callback argument */ +); + +/* + * The variant of the above function which dumps the JER + * output into the chosen file pointer. + * RETURN VALUES: + * 0: The structure is printed. + * -1: Problem printing the structure. + * WARNING: No sensible errno value is returned. + */ +int jer_fprint(FILE *stream, const struct asn_TYPE_descriptor_s *td, + const void *struct_ptr); + +/* + * A helper function that uses JER encoding/decoding to verify that: + * - Both structures encode into the same JER. + * - Both resulting JER byte streams can be decoded back. + * - Both decoded structures encode into the same JER (round-trip). + * All of this verifies equivalence between structures and a round-trip. + * ARGUMENTS: + * (opt_debug_stream) - If specified, prints ongoing details. + */ +enum jer_equivalence_e { + JEQ_SUCCESS, /* The only completely positive return value */ + JEQ_FAILURE, /* General failure */ + JEQ_ENCODE1_FAILED, /* First structure JER encoding failed */ + JEQ_ENCODE2_FAILED, /* Second structure JER encoding failed */ + JEQ_DIFFERENT, /* Structures encoded into different JER */ + JEQ_DECODE_FAILED, /* Decode of the JER data failed */ + JEQ_ROUND_TRIP_FAILED /* Bad round-trip */ +}; +enum jer_equivalence_e jer_equivalent( + const struct asn_TYPE_descriptor_s *type_descriptor, const void *struct1, + const void *struct2, FILE *opt_debug_stream); + +/* + * Type of the generic JER encoder. + */ +typedef asn_enc_rval_t(jer_type_encoder_f)( + const struct asn_TYPE_descriptor_s *type_descriptor, + const void *struct_ptr, /* Structure to be encoded */ + int ilevel, /* Level of indentation */ + enum jer_encoder_flags_e jer_flags, + asn_app_consume_bytes_f *consume_bytes_cb, /* Callback */ + void *app_key /* Arbitrary callback argument */ +); + +#ifdef __cplusplus +} +#endif + +#endif /* _JER_ENCODER_H_ */ diff --git a/asn.1/skeleton/jer_support.c b/asn.1/skeleton/jer_support.c new file mode 100644 index 00000000..b8f1d584 --- /dev/null +++ b/asn.1/skeleton/jer_support.c @@ -0,0 +1,278 @@ +/* + * Copyright (c) 2003, 2004 X/IO Labs, xiolabs.com. + * Copyright (c) 2003, 2004, 2005 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* Parser states */ +typedef enum { + ST_TEXT, + ST_KEY, + ST_KEY_BODY, + ST_COLON, + ST_VALUE, + ST_VALUE_BODY, + ST_ARRAY_VALUE, + ST_ARRAY_VALUE_BODY, + ST_END +} pstate_e; + +static const int _charclass[256] = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, /* 01234567 89 + */ + 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, /* ABCDEFG HIJKLMNO */ + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, /* PQRSTUVW XYZ */ + 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, /* abcdefg hijklmno */ + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0 /* pqrstuvw xyz */ +}; +#define WHITESPACE(c) (_charclass[(unsigned char)(c)] == 1) +#define ALNUM(c) (_charclass[(unsigned char)(c)] >= 2) +#define ALPHA(c) (_charclass[(unsigned char)(c)] == 3) + +/* Aliases for characters, ASCII/UTF-8 */ +#define CCOLON 0x3a /* ':' */ +#define LCBRAC 0x7b /* '{' */ +#define RCBRAC 0x7d /* '}' */ +#define CQUOTE 0x22 /* '"' */ +#define LSBRAC 0x5b /* '[' */ +#define RSBRAC 0x5d /* ']' */ +#define CCOMMA 0x2c /* ',' */ + +/* Invoke token callback */ +#define TOKEN_CB_CALL(type, _ns, _current_too, _final) \ + do { \ + int _ret; \ + pstate_e ns = _ns; \ + ssize_t _sz = (p - chunk_start) + _current_too; \ + if(!_sz) { \ + /* Shortcut */ \ + state = _ns; \ + break; \ + } \ + _ret = cb(type, chunk_start, _sz, key); \ + if(_ret < _sz) { \ + if(_current_too && _ret == -1) state = ns; \ + goto finish; \ + } \ + chunk_start = p + _current_too; \ + state = ns; \ + } while(0) + +#define TOKEN_CB(_type, _ns, _current_too) \ + TOKEN_CB_CALL(_type, _ns, _current_too, 0) + +#define PJSON_KEY_FINAL_CHUNK_TYPE PJSON_KEY_END +#define PJSON_VALUE_FINAL_CHUNK_TYPE PJSON_VALUE_END + +#define TOKEN_CB_FINAL(_type, _ns, _current_too) \ + TOKEN_CB_CALL(_type##_FINAL_CHUNK_TYPE, _ns, _current_too, 1) + +/* + * Parser itself + */ +ssize_t +pjson_parse(int *stateContext, const void *jsonbuf, size_t size, + pjson_callback_f *cb, void *key) { + pstate_e state = (pstate_e)*stateContext; + const char *chunk_start = (const char *)jsonbuf; + const char *p = chunk_start; + const char *end = p + size; + + int include = 0; + int in_string = 0; + int escaped = 0; + + for(; p < end; p++) { + int C = *(const unsigned char *)p; + switch(state) { + case ST_TEXT: + /* + * Initial state: we're in the middle of some text, + * or just have started. + */ + + if(C == CQUOTE && !escaped) { /* " */ + in_string = !in_string; + break; + } else { + if (C == '\\') { + escaped = !escaped; + break; + } else { + escaped = 0; + } + } + + if (!in_string) { + switch(C) { + case LCBRAC: + /* We're now in an object */ + TOKEN_CB(PJSON_DLM, ST_KEY, 1); + break; + case LSBRAC: + /* We're now in an array */ + TOKEN_CB(PJSON_DLM, ST_ARRAY_VALUE, 1); + break; + + case RSBRAC: + include = !(p - chunk_start); + TOKEN_CB_FINAL(PJSON_VALUE, ST_TEXT, include); + break; + case RCBRAC: + include = !(p - chunk_start); + TOKEN_CB_FINAL(PJSON_VALUE, ST_TEXT, include); + break; + case CCOMMA: + TOKEN_CB_FINAL(PJSON_VALUE, ST_TEXT, 0); + break; + default: + break; + } + } + break; + + case ST_KEY: /* Looking for key */ + switch(C) { + case RCBRAC: /* Empty object { } */ + TOKEN_CB_FINAL(PJSON_VALUE, ST_TEXT, 1); + break; + case CQUOTE: /* Key start */ + TOKEN_CB(PJSON_TEXT, ST_KEY_BODY, 0); + break; + default: + break; + } + break; + + case ST_KEY_BODY: /* Inside key */ + switch(C) { + case CQUOTE: /* Key end */ + TOKEN_CB_FINAL(PJSON_KEY, ST_COLON, 1); + break; + default: + break; + } + break; + + case ST_COLON: /* Looking for colon */ + switch(C) { + case CCOLON: + state = ST_VALUE; + break; + default: + break; + } + break; + + case ST_VALUE: /* Looking for value */ + if (WHITESPACE(C)) { + break; + } else { + switch(C) { + case CCOMMA: + TOKEN_CB(PJSON_DLM, ST_KEY, 1); + break; + case RCBRAC: + TOKEN_CB(PJSON_DLM, ST_END, 1); + break; + case RSBRAC: + TOKEN_CB_FINAL(PJSON_VALUE, ST_TEXT, 1); + break; + default: + TOKEN_CB(PJSON_TEXT, ST_VALUE_BODY, 0); + break; + } + } + break; + + case ST_VALUE_BODY: /* Inside value */ + switch(C) { + case RCBRAC: + TOKEN_CB_FINAL(PJSON_VALUE, ST_END, 0); + break; + case CCOMMA: + include = !(p - chunk_start); + TOKEN_CB_FINAL(PJSON_VALUE, ST_KEY, include); + break; + default: + break; + } + break; + + case ST_ARRAY_VALUE: /* Looking for array value */ + if (WHITESPACE(C)) { + break; + } else { + switch(C) { + case LCBRAC: + TOKEN_CB(PJSON_DLM, ST_ARRAY_VALUE, 1); + break; + case CCOMMA: + TOKEN_CB(PJSON_DLM, ST_ARRAY_VALUE, 1); + break; + case LSBRAC: + TOKEN_CB(PJSON_DLM, ST_ARRAY_VALUE, 1); + break; + case RSBRAC: + TOKEN_CB(PJSON_DLM, ST_END, 1); + break; + default: + TOKEN_CB(PJSON_TEXT, ST_ARRAY_VALUE_BODY, 0); + break; + } + } + break; + + case ST_ARRAY_VALUE_BODY: /* Inside array value */ + switch(C) { + case RSBRAC: + include = !(p - chunk_start); + TOKEN_CB_FINAL(PJSON_VALUE, ST_TEXT, include); + break; + case CCOMMA: + include = !(p - chunk_start); + if (!include) { + TOKEN_CB_FINAL(PJSON_VALUE, ST_ARRAY_VALUE, 0); + } else { + TOKEN_CB(PJSON_DLM, ST_ARRAY_VALUE, 0); + } + break; + default: + break; + } + break; + + case ST_END: /* End */ + switch (C) { + case RCBRAC: + TOKEN_CB_FINAL(PJSON_VALUE, ST_TEXT, 1); + break; + default: + break; + } + break; + } /* switch(*ptr) */ + } /* for() */ + + /* + * Flush the partially processed chunk, state permitting. + */ + if(p - chunk_start) { + switch (state) { + case ST_TEXT: + TOKEN_CB_FINAL(PJSON_VALUE, state, 0); + break; + default: + break; + } + } + +finish: + *stateContext = (int)state; + return chunk_start - (const char *)jsonbuf; +} diff --git a/asn.1/skeleton/jer_support.h b/asn.1/skeleton/jer_support.h new file mode 100644 index 00000000..556f99e4 --- /dev/null +++ b/asn.1/skeleton/jer_support.h @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2003, 2004 X/IO Labs, xiolabs.com. + * Copyright (c) 2003-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _JER_SUPPORT_H_ +#define _JER_SUPPORT_H_ + +#include /* Platform-specific types */ + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Types of data transferred to the application. + */ +typedef enum { + PJSON_TEXT, + PJSON_KEY, + PJSON_VALUE, + PJSON_DLM, + /* + * The following chunk types are reported if the chunk + * terminates the specified JSON element. + */ + PJSON_KEY_END, /* Key ended */ + PJSON_VALUE_END /* Value ended */ +} pjson_chunk_type_e; + +/* + * Callback function that is called by the parser when parsed data is + * available. The _opaque is the pointer to a field containing opaque user + * data specified in pxml_create() call. The chunk type is _type and the text + * data is the piece of buffer identified by _bufid (as supplied to + * pxml_feed() call) starting at offset _offset and of _size bytes size. + * The chunk is NOT '\0'-terminated. + */ +typedef int (pjson_callback_f)(pjson_chunk_type_e _type, + const void *_chunk_data, size_t _chunk_size, void *_key); + +/* + * Parse the given buffer as it were a chunk of XML data. + * Invoke the specified callback each time the meaningful data is found. + * This function returns number of bytes consumed from the buffer. + * It will always be lesser than or equal to the specified _size. + * The next invocation of this function must account the difference. + */ +ssize_t pjson_parse(int *_stateContext, const void *_buf, size_t _size, + pjson_callback_f *cb, void *_key); + +#ifdef __cplusplus +} +#endif + +#endif /* _JER_SUPPORT_H_ */ diff --git a/asn.1/skeleton/oer_decoder.c b/asn.1/skeleton/oer_decoder.c new file mode 100644 index 00000000..07017382 --- /dev/null +++ b/asn.1/skeleton/oer_decoder.c @@ -0,0 +1,152 @@ +/* + * Copyright (c) 2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * The OER decoder of any type. + */ +asn_dec_rval_t +oer_decode(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *type_descriptor, void **struct_ptr, + const void *ptr, size_t size) { + asn_codec_ctx_t s_codec_ctx; + + /* + * Stack checker requires that the codec context + * must be allocated on the stack. + */ + if(opt_codec_ctx) { + if(opt_codec_ctx->max_stack_size) { + s_codec_ctx = *opt_codec_ctx; + opt_codec_ctx = &s_codec_ctx; + } + } else { + /* If context is not given, be security-conscious anyway */ + memset(&s_codec_ctx, 0, sizeof(s_codec_ctx)); + s_codec_ctx.max_stack_size = ASN__DEFAULT_STACK_MAX; + opt_codec_ctx = &s_codec_ctx; + } + + /* + * Invoke type-specific decoder. + */ + return type_descriptor->op->oer_decoder(opt_codec_ctx, type_descriptor, 0, + struct_ptr, /* Pointer to the destination structure */ + ptr, size /* Buffer and its size */ + ); +} + +/* + * Open Type is encoded as a length (#8.6) followed by that number of bytes. + * Since we're just skipping, reading the length would be enough. + */ +ssize_t +oer_open_type_skip(const void *bufptr, size_t size) { + size_t len = 0; + return oer_fetch_length(bufptr, size, &len); +} + +/* + * Read the Open Type (X.696 (08/2015), #30). + * RETURN VALUES: + * 0: More data expected than bufptr contains. + * -1: Fatal error deciphering length. + * >0: Number of bytes used from bufptr. + */ +ssize_t +oer_open_type_get(const asn_codec_ctx_t *opt_codec_ctx, + const struct asn_TYPE_descriptor_s *td, + const asn_oer_constraints_t *constraints, void **struct_ptr, + const void *bufptr, size_t size) { + asn_dec_rval_t dr; + size_t container_len = 0; + ssize_t len_len; + enum asn_struct_free_method dispose_method = + (*struct_ptr) ? ASFM_FREE_UNDERLYING_AND_RESET : ASFM_FREE_EVERYTHING; + + /* Get the size of a length determinant */ + len_len = oer_fetch_length(bufptr, size, &container_len); + if(len_len <= 0) { + return len_len; /* Error or more data expected */ + } + + /* + * len_len can't be bigger than size, but size without len_len + * should be bigger or equal to container length + */ + if(size - len_len < container_len) { + /* More data is expected */ + return 0; + } + + dr = td->op->oer_decoder(opt_codec_ctx, td, constraints, struct_ptr, + (const uint8_t *)bufptr + len_len, container_len); + if(dr.code == RC_OK) { + return len_len + container_len; + } else { + /* Even if RC_WMORE, we can't get more data into a closed container. */ + td->op->free_struct(td, *struct_ptr, dispose_method); + *struct_ptr = NULL; + return -1; + } +} + + +asn_dec_rval_t +oer_decode_primitive(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, void **sptr, + const void *ptr, size_t size) { + ASN__PRIMITIVE_TYPE_t *st = (ASN__PRIMITIVE_TYPE_t *)*sptr; + asn_dec_rval_t rval = {RC_OK, 0}; + size_t expected_length = 0; + ssize_t len_len; + + (void)td; + (void)opt_codec_ctx; + (void)constraints; + + if(!st) { + st = (ASN__PRIMITIVE_TYPE_t *)(*sptr = CALLOC( + 1, sizeof(ASN__PRIMITIVE_TYPE_t))); + if(!st) ASN__DECODE_FAILED; + } + + + /* + * X.696 (08/2015) #27.2 + * Encode length determinant as _number of octets_, but only + * if upper bound is not equal to lower bound. + */ + len_len = oer_fetch_length(ptr, size, &expected_length); + if(len_len > 0) { + rval.consumed = len_len; + ptr = (const char *)ptr + len_len; + size -= len_len; + } else if(len_len == 0) { + ASN__DECODE_STARVED; + } else if(len_len < 0) { + ASN__DECODE_FAILED; + } + + if(size < expected_length) { + ASN__DECODE_STARVED; + } else { + uint8_t *buf = MALLOC(expected_length + 1); + if(buf == NULL) { + ASN__DECODE_FAILED; + } else { + memcpy(buf, ptr, expected_length); + buf[expected_length] = '\0'; + } + FREEMEM(st->buf); + st->buf = buf; + st->size = expected_length; + + rval.consumed += expected_length; + return rval; + } +} diff --git a/asn.1/skeleton/oer_decoder.h b/asn.1/skeleton/oer_decoder.h new file mode 100644 index 00000000..40992e94 --- /dev/null +++ b/asn.1/skeleton/oer_decoder.h @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef OER_DECODER_H +#define OER_DECODER_H + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +struct asn_TYPE_descriptor_s; /* Forward declaration */ +struct asn_codec_ctx_s; /* Forward declaration */ + +/* + * The Octet Encoding Rules (OER, X.696 08/2015) decoder for any given type. + * This function may be invoked directly by the application. + * Parses CANONICAL-OER and BASIC-OER. + */ +asn_dec_rval_t oer_decode(const struct asn_codec_ctx_s *opt_codec_ctx, + const struct asn_TYPE_descriptor_s *type_descriptor, + void **struct_ptr, /* Pointer to a target structure's pointer */ + const void *buffer, /* Data to be decoded */ + size_t size /* Size of that buffer */ + ); + +/* + * Type of generic function which decodes the byte stream into the structure. + */ +typedef asn_dec_rval_t(oer_type_decoder_f)( + const struct asn_codec_ctx_s *opt_codec_ctx, + const struct asn_TYPE_descriptor_s *type_descriptor, + const asn_oer_constraints_t *constraints, + void **struct_ptr, + const void *buf_ptr, + size_t size); + +/* + * Swallow the Open Type (X.696 (08/2015), #30) into /dev/null. + * RETURN VALUES: + * -1: Fatal error deciphering length. + * 0: More data expected than bufptr contains. + * >0: Number of bytes used from bufptr. + */ +ssize_t oer_open_type_skip(const void *bufptr, size_t size); + +/* + * Read the Open Type (X.696 (08/2015), #30). + * RETURN VALUES: + * 0: More data expected than bufptr contains. + * -1: Fatal error deciphering length. + * >0: Number of bytes used from bufptr. + */ +ssize_t oer_open_type_get(const asn_codec_ctx_t *opt_codec_ctx, + const struct asn_TYPE_descriptor_s *td, + const asn_oer_constraints_t *constraints, + void **struct_ptr, const void *bufptr, size_t size); + +/* + * Length-prefixed buffer decoding for primitive types. + */ +oer_type_decoder_f oer_decode_primitive; + + +#ifdef __cplusplus +} +#endif + +#endif /* OER_DECODER_H */ diff --git a/asn.1/skeleton/oer_encoder.c b/asn.1/skeleton/oer_encoder.c new file mode 100644 index 00000000..a284cc2f --- /dev/null +++ b/asn.1/skeleton/oer_encoder.c @@ -0,0 +1,141 @@ +/* + * Copyright (c) 2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +/* + * The OER encoder of any type. + */ +asn_enc_rval_t +oer_encode(const asn_TYPE_descriptor_t *type_descriptor, const void *struct_ptr, + asn_app_consume_bytes_f *consume_bytes, void *app_key) { + ASN_DEBUG("OER encoder invoked for %s", type_descriptor->name); + + /* + * Invoke type-specific encoder. + */ + return type_descriptor->op->oer_encoder( + type_descriptor, 0, + struct_ptr, /* Pointer to the destination structure */ + consume_bytes, app_key); +} + +/* + * Argument type and callback necessary for oer_encode_to_buffer(). + */ +typedef struct enc_to_buf_arg { + void *buffer; + size_t left; +} enc_to_buf_arg; +static int +encode_to_buffer_cb(const void *buffer, size_t size, void *key) { + enc_to_buf_arg *arg = (enc_to_buf_arg *)key; + + if(arg->left < size) return -1; /* Data exceeds the available buffer size */ + + memcpy(arg->buffer, buffer, size); + arg->buffer = ((char *)arg->buffer) + size; + arg->left -= size; + + return 0; +} + +/* + * A variant of the oer_encode() which encodes the data into the provided buffer + */ +asn_enc_rval_t +oer_encode_to_buffer(const asn_TYPE_descriptor_t *type_descriptor, + const asn_oer_constraints_t *constraints, + const void *struct_ptr, /* Structure to be encoded */ + void *buffer, /* Pre-allocated buffer */ + size_t buffer_size /* Initial buffer size (maximum) */ +) { + enc_to_buf_arg arg; + asn_enc_rval_t ec; + + arg.buffer = buffer; + arg.left = buffer_size; + + if(type_descriptor->op->oer_encoder == NULL) { + ec.encoded = -1; + ec.failed_type = type_descriptor; + ec.structure_ptr = struct_ptr; + ASN_DEBUG("OER encoder is not defined for %s", + type_descriptor->name); + } else { + ec = type_descriptor->op->oer_encoder( + type_descriptor, constraints, + struct_ptr, /* Pointer to the destination structure */ + encode_to_buffer_cb, &arg); + if(ec.encoded != -1) { + assert(ec.encoded == (ssize_t)(buffer_size - arg.left)); + /* Return the encoded contents size */ + } + } + return ec; +} + +asn_enc_rval_t +oer_encode_primitive(const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, const void *sptr, + asn_app_consume_bytes_f *cb, void *app_key) { + const ASN__PRIMITIVE_TYPE_t *st = (const ASN__PRIMITIVE_TYPE_t *)sptr; + asn_enc_rval_t er = {0, 0, 0}; + ssize_t ret; + + (void)constraints; + + if(!st) ASN__ENCODE_FAILED; + + ASN_DEBUG("Encoding %s (%" ASN_PRI_SIZE " bytes)", td ? td->name : "", st->size); + + /* + * X.696 (08/2015) #27.2 + */ + ret = oer_serialize_length(st->size, cb, app_key); + if(ret < 0) { + ASN__ENCODE_FAILED; + } + er.encoded += ret; + + er.encoded += st->size; + if(cb(st->buf, st->size, app_key) < 0) { + ASN__ENCODE_FAILED; + } else { + ASN__ENCODED_OK(er); + } +} + +static int +oer__count_bytes(const void *buffer, size_t size, void *bytes_ptr) { + size_t *bytes = bytes_ptr; + (void)buffer; + *bytes += size; + return 0; +} + +ssize_t +oer_open_type_put(const asn_TYPE_descriptor_t *td, + const asn_oer_constraints_t *constraints, const void *sptr, + asn_app_consume_bytes_f *cb, void *app_key) { + size_t serialized_byte_count = 0; + asn_enc_rval_t er = {0,0,0}; + ssize_t len_len; + + er = td->op->oer_encoder(td, constraints, sptr, oer__count_bytes, + &serialized_byte_count); + if(er.encoded < 0) return -1; + assert(serialized_byte_count == (size_t)er.encoded); + + len_len = oer_serialize_length(serialized_byte_count, cb, app_key); + if(len_len == -1) return -1; + + er = td->op->oer_encoder(td, constraints, sptr, cb, app_key); + if(er.encoded < 0) return -1; + assert(serialized_byte_count == (size_t)er.encoded); + + return len_len + er.encoded; +} + diff --git a/asn.1/skeleton/oer_encoder.h b/asn.1/skeleton/oer_encoder.h new file mode 100644 index 00000000..6a7b6812 --- /dev/null +++ b/asn.1/skeleton/oer_encoder.h @@ -0,0 +1,70 @@ +/* + * Copyright (c) 2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef OER_ENCODER_H +#define OER_ENCODER_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +struct asn_TYPE_descriptor_s; /* Forward declaration */ + +/* + * The Octet Encoding Rules (OER, X.696 08/2015) encoder for any type. + * This function may be invoked directly by the application. + * Produces CANONICAL-OER output compatible with CANONICAL-OER + * and BASIC-OER decoders. + */ +asn_enc_rval_t oer_encode(const struct asn_TYPE_descriptor_s *type_descriptor, + const void *struct_ptr, /* Structure to be encoded */ + asn_app_consume_bytes_f *consume_bytes_cb, + void *app_key /* Arbitrary callback argument */ +); + +/* A variant of oer_encode() which encodes data into the pre-allocated buffer */ +asn_enc_rval_t oer_encode_to_buffer( + const struct asn_TYPE_descriptor_s *type_descriptor, + const asn_oer_constraints_t *constraints, + const void *struct_ptr, /* Structure to be encoded */ + void *buffer, /* Pre-allocated buffer */ + size_t buffer_size /* Initial buffer size (maximum) */ +); + +/* + * Type of the generic OER encoder. + */ +typedef asn_enc_rval_t(oer_type_encoder_f)( + const struct asn_TYPE_descriptor_s *type_descriptor, + const asn_oer_constraints_t *constraints, + const void *struct_ptr, /* Structure to be encoded */ + asn_app_consume_bytes_f *consume_bytes_cb, /* Callback */ + void *app_key /* Arbitrary callback argument */ +); + +/* + * Write out the Open Type (X.696 (08/2015), #30). + * RETURN VALUES: + * -1: Fatal error encoding the type. + * >0: Number of bytes serialized. + */ +ssize_t oer_open_type_put(const struct asn_TYPE_descriptor_s *td, + const asn_oer_constraints_t *constraints, + const void *struct_ptr, + asn_app_consume_bytes_f *consume_bytes_cb, + void *app_key); + + +/* + * Length-prefixed buffer encoding for primitive types. + */ +oer_type_encoder_f oer_encode_primitive; + +#ifdef __cplusplus +} +#endif + +#endif /* OER_ENCODER_H */ diff --git a/asn.1/skeleton/oer_support.c b/asn.1/skeleton/oer_support.c new file mode 100644 index 00000000..b15a3bc9 --- /dev/null +++ b/asn.1/skeleton/oer_support.c @@ -0,0 +1,122 @@ +/* + * Copyright (c) 2017 Lev Walkin . + * All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include + +#include + +/* + * Fetch the length determinant (X.696 08/2015, #8.6) into *len_r. + * RETURN VALUES: + * 0: More data expected than bufptr contains. + * -1: Fatal error deciphering length. + * >0: Number of bytes used from bufptr. + */ +ssize_t +oer_fetch_length(const void *bufptr, size_t size, size_t *len_r) { + uint8_t first_byte; + size_t len_len; /* Length of the length determinant */ + const uint8_t *b; + const uint8_t *bend; + size_t len; + + if(size == 0) { + *len_r = 0; + return 0; + } + + first_byte = *(const uint8_t *)bufptr; + if((first_byte & 0x80) == 0) { /* Short form */ + *len_r = first_byte; /* 0..127 */ + return 1; + } + + len_len = (first_byte & 0x7f); + if((1 + len_len) > size) { + *len_r = 0; + return 0; + } + + b = (const uint8_t *)bufptr + 1; + bend = b + len_len; + + for(; b < bend && *b == 0; b++) { + /* Skip the leading 0-bytes */ + } + + if((bend - b) > (ssize_t)sizeof(size_t)) { + /* Length is not representable by the native size_t type */ + *len_r = 0; + return -1; + } + + for(len = 0; b < bend; b++) { + len = (len << 8) + *b; + } + + if(len > RSIZE_MAX) { /* A bit of C11 validation */ + *len_r = 0; + return -1; + } + + *len_r = len; + assert(len_len + 1 == (size_t)(bend - (const uint8_t *)bufptr)); + return len_len + 1; +} + + +/* + * Serialize OER length. Returns the number of bytes serialized + * or -1 if a given callback returned with negative result. + */ +ssize_t +oer_serialize_length(size_t length, asn_app_consume_bytes_f *cb, + void *app_key) { + uint8_t scratch[1 + sizeof(length)]; + uint8_t *sp = scratch; + int littleEndian = 1; /* Run-time detection */ + const uint8_t *pstart; + const uint8_t *pend; + const uint8_t *p; + int add; + + if(length <= 127) { + uint8_t b = length; + if(cb(&b, 1, app_key) < 0) { + return -1; + } + return 1; + } + + if(*(char *)&littleEndian) { + pstart = (const uint8_t *)&length + sizeof(length) - 1; + pend = (const uint8_t *)&length; + add = -1; + } else { + pstart = (const uint8_t *)&length; + pend = pstart + sizeof(length); + add = 1; + } + + for(p = pstart; p != pend; p += add) { + /* Skip leading zeros. */ + if(*p) break; + } + + for(sp = scratch + 1; ; p += add) { + *sp++ = *p; + if(p == pend) break; + } + assert((sp - scratch) - 1 <= 0x7f); + scratch[0] = 0x80 + ((sp - scratch) - 1); + + if(cb(scratch, sp - scratch, app_key) < 0) { + return -1; + } + + return sp - scratch; +} + diff --git a/asn.1/skeleton/oer_support.h b/asn.1/skeleton/oer_support.h new file mode 100644 index 00000000..dbc9b5fc --- /dev/null +++ b/asn.1/skeleton/oer_support.h @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef OER_SUPPORT_H +#define OER_SUPPORT_H + +#include /* Platform-specific types */ + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Pre-computed OER constraints. + */ +typedef struct asn_oer_constraint_number_s { + unsigned width; /* ±8,4,2,1 fixed bytes */ + unsigned positive; /* 1 for unsigned number, 0 for signed */ +} asn_oer_constraint_number_t; +typedef struct asn_oer_constraints_s { + asn_oer_constraint_number_t value; + ssize_t size; /* -1 (no constraint) or >= 0 */ +} asn_oer_constraints_t; + + +/* + * Fetch the length determinant (X.696 (08/2015), #8.6) into *len_r. + * RETURN VALUES: + * 0: More data expected than bufptr contains. + * -1: Fatal error deciphering length. + * >0: Number of bytes used from bufptr. + */ +ssize_t oer_fetch_length(const void *bufptr, size_t size, size_t *len_r); + +/* + * Serialize OER length. Returns the number of bytes serialized + * or -1 if a given callback returned with negative result. + */ +ssize_t oer_serialize_length(size_t length, asn_app_consume_bytes_f *cb, void *app_key); + + +#ifdef __cplusplus +} +#endif + +#endif /* OER_SUPPORT_H */ diff --git a/asn.1/skeleton/per_decoder.c b/asn.1/skeleton/per_decoder.c new file mode 100644 index 00000000..42b92cac --- /dev/null +++ b/asn.1/skeleton/per_decoder.c @@ -0,0 +1,5 @@ +#include +#include +#include + +// Absolutely nothing diff --git a/asn.1/skeleton/per_decoder.h b/asn.1/skeleton/per_decoder.h new file mode 100644 index 00000000..3cc0c6bf --- /dev/null +++ b/asn.1/skeleton/per_decoder.h @@ -0,0 +1,30 @@ +/*- + * Copyright (c) 2005-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _PER_DECODER_H_ +#define _PER_DECODER_H_ + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +struct asn_TYPE_descriptor_s; /* Forward declaration */ + +/* + * Type of the type-specific PER decoder function. + */ +typedef asn_dec_rval_t(per_type_decoder_f)( + const asn_codec_ctx_t *opt_codec_ctx, + const struct asn_TYPE_descriptor_s *type_descriptor, + const asn_per_constraints_t *constraints, void **struct_ptr, + asn_per_data_t *per_data); + +#ifdef __cplusplus +} +#endif + +#endif /* _PER_DECODER_H_ */ diff --git a/asn.1/skeleton/per_encoder.c b/asn.1/skeleton/per_encoder.c new file mode 100644 index 00000000..01ab70b0 --- /dev/null +++ b/asn.1/skeleton/per_encoder.c @@ -0,0 +1,35 @@ +#include +#include + +int +ignore_output(const void *data, size_t size, void *app_key) { + (void)data; + (void)size; + (void)app_key; + return 0; +} + +int +encode_dyn_cb(const void *buffer, size_t size, void *key) { + enc_dyn_arg *arg = key; + if(arg->length + size >= arg->allocated) { + size_t new_size = arg->allocated ? arg->allocated : 8; + void *p; + + do { + new_size <<= 2; + } while(arg->length + size >= new_size); + + p = REALLOC(arg->buffer, new_size); + if(!p) { + FREEMEM(arg->buffer); + memset(arg, 0, sizeof(*arg)); + return -1; + } + arg->buffer = p; + arg->allocated = new_size; + } + memcpy(((char *)arg->buffer) + arg->length, buffer, size); + arg->length += size; + return 0; +} diff --git a/asn.1/skeleton/per_encoder.h b/asn.1/skeleton/per_encoder.h new file mode 100644 index 00000000..8bb07717 --- /dev/null +++ b/asn.1/skeleton/per_encoder.h @@ -0,0 +1,38 @@ +/*- + * Copyright (c) 2006-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _PER_ENCODER_H_ +#define _PER_ENCODER_H_ + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +struct asn_TYPE_descriptor_s; /* Forward declaration */ + +/* + * Type of the generic PER encoder function. + */ +typedef asn_enc_rval_t(per_type_encoder_f)( + const struct asn_TYPE_descriptor_s *type_descriptor, + const asn_per_constraints_t *constraints, const void *struct_ptr, + asn_per_outp_t *per_output); + +int ignore_output(const void *data, size_t size, void *app_key); + +typedef struct enc_dyn_arg { + void *buffer; + size_t length; + size_t allocated; +} enc_dyn_arg; +int encode_dyn_cb(const void *buffer, size_t size, void *key); + +#ifdef __cplusplus +} +#endif + +#endif /* _PER_ENCODER_H_ */ diff --git a/asn.1/skeleton/per_opentype.c b/asn.1/skeleton/per_opentype.c new file mode 100644 index 00000000..5620c5bb --- /dev/null +++ b/asn.1/skeleton/per_opentype.c @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2007 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include + +/* + * Internal functions. + */ + +asn_dec_rval_t +uper_sot_suck(const asn_codec_ctx_t *ctx, const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, + asn_per_data_t *pd) { + asn_dec_rval_t rv; + + (void)ctx; + (void)td; + (void)constraints; + (void)sptr; + + while(per_get_few_bits(pd, 1) >= 0); + + rv.code = RC_OK; + rv.consumed = pd->moved; + + return rv; +} diff --git a/asn.1/skeleton/per_opentype.h b/asn.1/skeleton/per_opentype.h new file mode 100644 index 00000000..fc378556 --- /dev/null +++ b/asn.1/skeleton/per_opentype.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2007-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _PER_OPENTYPE_H_ +#define _PER_OPENTYPE_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +asn_dec_rval_t uper_sot_suck( + const asn_codec_ctx_t *, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + void **sptr, asn_per_data_t *pd); + +#ifdef __cplusplus +} +#endif + +#endif /* _PER_OPENTYPE_H_ */ diff --git a/asn.1/skeleton/per_support.c b/asn.1/skeleton/per_support.c new file mode 100644 index 00000000..62d343c7 --- /dev/null +++ b/asn.1/skeleton/per_support.c @@ -0,0 +1,9 @@ +/* + * Copyright (c) 2005-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +// Absolutely nothing diff --git a/asn.1/skeleton/per_support.h b/asn.1/skeleton/per_support.h new file mode 100644 index 00000000..b3056a21 --- /dev/null +++ b/asn.1/skeleton/per_support.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2005-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _PER_SUPPORT_H_ +#define _PER_SUPPORT_H_ + +#include /* Platform-specific types */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Pre-computed PER constraints. + */ +typedef struct asn_per_constraint_s { + enum asn_per_constraint_flags { + APC_UNCONSTRAINED = 0x0, /* No PER visible constraints */ + APC_SEMI_CONSTRAINED = 0x1, /* Constrained at "lb" */ + APC_CONSTRAINED = 0x2, /* Fully constrained */ + APC_EXTENSIBLE = 0x4 /* May have extension */ + } flags; + int range_bits; /* Full number of bits in the range */ + int effective_bits; /* Effective bits */ + intmax_t lower_bound; /* "lb" value */ + intmax_t upper_bound; /* "ub" value */ +} asn_per_constraint_t; +typedef struct asn_per_constraints_s { + asn_per_constraint_t value; + asn_per_constraint_t size; + int (*value2code)(unsigned int value); + int (*code2value)(unsigned int code); +} asn_per_constraints_t; + +/* Temporary compatibility layer. Will get removed. */ +typedef struct asn_bit_data_s asn_per_data_t; +#define per_get_few_bits(data, bits) asn_get_few_bits(data, bits) +#define per_get_undo(data, bits) asn_get_undo(data, bits) +#define per_get_many_bits(data, dst, align, bits) \ + asn_get_many_bits(data, dst, align, bits) + +/* Temporary compatibility layer. Will get removed. */ +typedef struct asn_bit_outp_s asn_per_outp_t; +#define per_put_few_bits(out, bits, obits) asn_put_few_bits(out, bits, obits) +#define per_put_many_bits(out, src, nbits) asn_put_many_bits(out, src, nbits) +#define per_put_aligned_flush(out) asn_put_aligned_flush(out) + +#ifdef __cplusplus +} +#endif + +#endif /* _PER_SUPPORT_H_ */ diff --git a/asn.1/skeleton/uper_decoder.c b/asn.1/skeleton/uper_decoder.c new file mode 100644 index 00000000..a88e95cf --- /dev/null +++ b/asn.1/skeleton/uper_decoder.c @@ -0,0 +1,96 @@ +#include +#include +#include + +/* + * Decode a "Production of a complete encoding", X.691#10.1. + * The complete encoding contains at least one byte, and is an integral + * multiple of 8 bytes. + */ +asn_dec_rval_t +uper_decode_complete(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const void *buffer, size_t size) { + asn_dec_rval_t rval; + + rval = uper_decode(opt_codec_ctx, td, sptr, buffer, size, 0, 0); + if(rval.consumed) { + /* + * We've always given 8-aligned data, + * so convert bits to integral bytes. + */ + rval.consumed += 7; + rval.consumed >>= 3; + } else if(rval.code == RC_OK) { + if(size) { + if(((const uint8_t *)buffer)[0] == 0) { + rval.consumed = 1; /* 1 byte */ + } else { + ASN_DEBUG("Expecting single zeroed byte"); + rval.code = RC_FAIL; + } + } else { + /* Must contain at least 8 bits. */ + rval.code = RC_WMORE; + } + } + + return rval; +} + +asn_dec_rval_t +uper_decode(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, const void *buffer, + size_t size, int skip_bits, int unused_bits) { + asn_codec_ctx_t s_codec_ctx; + asn_dec_rval_t rval; + asn_per_data_t pd; + + if(skip_bits < 0 || skip_bits > 7 + || unused_bits < 0 || unused_bits > 7 + || (unused_bits > 0 && !size)) + ASN__DECODE_FAILED; + + /* + * Stack checker requires that the codec context + * must be allocated on the stack. + */ + if(opt_codec_ctx) { + if(opt_codec_ctx->max_stack_size) { + s_codec_ctx = *opt_codec_ctx; + opt_codec_ctx = &s_codec_ctx; + } + } else { + /* If context is not given, be security-conscious anyway */ + memset(&s_codec_ctx, 0, sizeof(s_codec_ctx)); + s_codec_ctx.max_stack_size = ASN__DEFAULT_STACK_MAX; + opt_codec_ctx = &s_codec_ctx; + } + + /* Fill in the position indicator */ + memset(&pd, 0, sizeof(pd)); + pd.buffer = (const uint8_t *)buffer; + pd.nboff = skip_bits; + pd.nbits = 8 * size - unused_bits; /* 8 is CHAR_BIT from */ + if(pd.nboff > pd.nbits) + ASN__DECODE_FAILED; + + /* + * Invoke type-specific decoder. + */ + if(!td->op->uper_decoder) + ASN__DECODE_FAILED; /* PER is not compiled in */ + rval = td->op->uper_decoder(opt_codec_ctx, td, 0, sptr, &pd); + if(rval.code == RC_OK) { + /* Return the number of consumed bits */ + rval.consumed = ((pd.buffer - (const uint8_t *)buffer) << 3) + + pd.nboff - skip_bits; + ASN_DEBUG("PER decoding consumed %ld, counted %ld", + (long)rval.consumed, (long)pd.moved); + assert(rval.consumed == pd.moved); + } else { + /* PER codec is not a restartable */ + rval.consumed = 0; + } + return rval; +} diff --git a/asn.1/skeleton/uper_decoder.h b/asn.1/skeleton/uper_decoder.h new file mode 100644 index 00000000..ded85156 --- /dev/null +++ b/asn.1/skeleton/uper_decoder.h @@ -0,0 +1,47 @@ +/*- + * Copyright (c) 2005-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _UPER_DECODER_H_ +#define _UPER_DECODER_H_ + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +struct asn_TYPE_descriptor_s; /* Forward declaration */ + +/* + * Unaligned PER decoder of a "complete encoding" as per X.691 (08/2015) #11.1. + * On success, this call always returns (.consumed >= 1), as per #11.1.3. + */ +asn_dec_rval_t uper_decode_complete( + const struct asn_codec_ctx_s *opt_codec_ctx, + const struct asn_TYPE_descriptor_s *type_descriptor, /* Type to decode */ + void **struct_ptr, /* Pointer to a target structure's pointer */ + const void *buffer, /* Data to be decoded */ + size_t size /* Size of data buffer */ +); + +/* + * Unaligned PER decoder of any ASN.1 type. May be invoked by the application. + * WARNING: This call returns the number of BITS read from the stream. Beware. + */ +asn_dec_rval_t uper_decode( + const struct asn_codec_ctx_s *opt_codec_ctx, + const struct asn_TYPE_descriptor_s *type_descriptor, /* Type to decode */ + void **struct_ptr, /* Pointer to a target structure's pointer */ + const void *buffer, /* Data to be decoded */ + size_t size, /* Size of the input data buffer, in bytes */ + int skip_bits, /* Number of unused leading bits, 0..7 */ + int unused_bits /* Number of unused tailing bits, 0..7 */ +); + +#ifdef __cplusplus +} +#endif + +#endif /* _UPER_DECODER_H_ */ diff --git a/asn.1/skeleton/uper_encoder.c b/asn.1/skeleton/uper_encoder.c new file mode 100644 index 00000000..4c1d24a6 --- /dev/null +++ b/asn.1/skeleton/uper_encoder.c @@ -0,0 +1,127 @@ +#include +#include +#include + +static int _uper_encode_flush_outp(asn_per_outp_t *po); + +asn_enc_rval_t +uper_encode(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, const void *sptr, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_per_outp_t po; + asn_enc_rval_t er = {0,0,0}; + + /* + * Invoke type-specific encoder. + */ + if(!td || !td->op->uper_encoder) + ASN__ENCODE_FAILED; /* PER is not compiled in */ + + po.buffer = po.tmpspace; + po.nboff = 0; + po.nbits = 8 * sizeof(po.tmpspace); + po.output = cb ? cb : ignore_output; + po.op_key = app_key; + po.flushed_bytes = 0; + + er = td->op->uper_encoder(td, constraints, sptr, &po); + if(er.encoded != -1) { + size_t bits_to_flush; + + bits_to_flush = ((po.buffer - po.tmpspace) << 3) + po.nboff; + + /* Set number of bits encoded to a firm value */ + er.encoded = (po.flushed_bytes << 3) + bits_to_flush; + + if(_uper_encode_flush_outp(&po)) ASN__ENCODE_FAILED; + } + + return er; +} + +/* + * Argument type and callback necessary for uper_encode_to_buffer(). + */ +typedef struct enc_to_buf_arg { + void *buffer; + size_t left; +} enc_to_buf_arg; +static int encode_to_buffer_cb(const void *buffer, size_t size, void *key) { + enc_to_buf_arg *arg = (enc_to_buf_arg *)key; + + if(arg->left < size) + return -1; /* Data exceeds the available buffer size */ + + memcpy(arg->buffer, buffer, size); + arg->buffer = ((char *)arg->buffer) + size; + arg->left -= size; + + return 0; +} + +asn_enc_rval_t +uper_encode_to_buffer(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, void *buffer, size_t buffer_size) { + enc_to_buf_arg key; + + key.buffer = buffer; + key.left = buffer_size; + + if(td) ASN_DEBUG("Encoding \"%s\" using UNALIGNED PER", td->name); + + return uper_encode(td, constraints, sptr, encode_to_buffer_cb, &key); +} + +ssize_t +uper_encode_to_new_buffer(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, void **buffer_r) { + asn_enc_rval_t er = {0,0,0}; + enc_dyn_arg key; + + memset(&key, 0, sizeof(key)); + + er = uper_encode(td, constraints, sptr, encode_dyn_cb, &key); + switch(er.encoded) { + case -1: + FREEMEM(key.buffer); + return -1; + case 0: + FREEMEM(key.buffer); + key.buffer = MALLOC(1); + if(key.buffer) { + *(char *)key.buffer = '\0'; + *buffer_r = key.buffer; + return 1; + } else { + return -1; + } + default: + *buffer_r = key.buffer; + ASN_DEBUG("Complete encoded in %ld bits", (long)er.encoded); + return ((er.encoded + 7) >> 3); + } +} + +/* + * Internally useful functions. + */ + +/* Flush partially filled buffer */ +static int +_uper_encode_flush_outp(asn_per_outp_t *po) { + uint8_t *buf; + + if(po->nboff == 0 && po->buffer == po->tmpspace) + return 0; + + buf = po->buffer + (po->nboff >> 3); + /* Make sure we account for the last, partially filled */ + if(po->nboff & 0x07) { + buf[0] &= 0xff << (8 - (po->nboff & 0x07)); + buf++; + } + + return po->output(po->tmpspace, buf - po->tmpspace, po->op_key); +} diff --git a/asn.1/skeleton/uper_encoder.h b/asn.1/skeleton/uper_encoder.h new file mode 100644 index 00000000..8f73980c --- /dev/null +++ b/asn.1/skeleton/uper_encoder.h @@ -0,0 +1,62 @@ +/*- + * Copyright (c) 2006-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _UPER_ENCODER_H_ +#define _UPER_ENCODER_H_ + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +struct asn_TYPE_descriptor_s; /* Forward declaration */ + +/* + * Unaligned PER encoder of any ASN.1 type. May be invoked by the application. + * WARNING: This function returns the number of encoded bits in the .encoded + * field of the return value. Use the following formula to convert to bytes: + * bytes = ((.encoded + 7) / 8) + */ +asn_enc_rval_t uper_encode( + const struct asn_TYPE_descriptor_s *type_descriptor, + const asn_per_constraints_t *constraints, + const void *struct_ptr, /* Structure to be encoded */ + asn_app_consume_bytes_f *consume_bytes_cb, /* Data collector */ + void *app_key /* Arbitrary callback argument */ +); + +/* + * A variant of uper_encode() which encodes data into the existing buffer + * WARNING: This function returns the number of encoded bits in the .encoded + * field of the return value. + */ +asn_enc_rval_t uper_encode_to_buffer( + const struct asn_TYPE_descriptor_s *type_descriptor, + const asn_per_constraints_t *constraints, + const void *struct_ptr, /* Structure to be encoded */ + void *buffer, /* Pre-allocated buffer */ + size_t buffer_size /* Initial buffer size (max) */ +); + +/* + * A variant of uper_encode_to_buffer() which allocates buffer itself. + * Returns the number of bytes in the buffer or -1 in case of failure. + * WARNING: This function produces a "Production of the complete encoding", + * with length of at least one octet. Contrast this to precise bit-packing + * encoding of uper_encode() and uper_encode_to_buffer(). + */ +ssize_t uper_encode_to_new_buffer( + const struct asn_TYPE_descriptor_s *type_descriptor, + const asn_per_constraints_t *constraints, + const void *struct_ptr, /* Structure to be encoded */ + void **buffer_r /* Buffer allocated and returned */ +); + +#ifdef __cplusplus +} +#endif + +#endif /* _UPER_ENCODER_H_ */ diff --git a/asn.1/skeleton/uper_opentype.c b/asn.1/skeleton/uper_opentype.c new file mode 100644 index 00000000..17ee0641 --- /dev/null +++ b/asn.1/skeleton/uper_opentype.c @@ -0,0 +1,372 @@ +/* + * Copyright (c) 2007 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include +#include + +typedef struct uper_ugot_key { + asn_per_data_t oldpd; /* Old per data source */ + size_t unclaimed; + size_t ot_moved; /* Number of bits moved by OT processing */ + int repeat; +} uper_ugot_key; + +static int uper_ugot_refill(asn_per_data_t *pd); +static int per_skip_bits(asn_per_data_t *pd, int skip_nbits); + +/* + * Encode an "open type field". + * #10.1, #10.2 + */ +int +uper_open_type_put(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, const void *sptr, + asn_per_outp_t *po) { + void *buf; + void *bptr; + ssize_t size; + + ASN_DEBUG("Open type put %s ...", td->name); + + size = uper_encode_to_new_buffer(td, constraints, sptr, &buf); + if(size <= 0) return -1; + + ASN_DEBUG("Open type put %s of length %" ASN_PRI_SSIZE " + overhead (1byte?)", td->name, + size); + + bptr = buf; + do { + int need_eom = 0; + ssize_t may_save = uper_put_length(po, size, &need_eom); + ASN_DEBUG("Prepending length %" ASN_PRI_SSIZE + " to %s and allowing to save %" ASN_PRI_SSIZE, + size, td->name, may_save); + if(may_save < 0) break; + if(per_put_many_bits(po, bptr, may_save * 8)) break; + bptr = (char *)bptr + may_save; + size -= may_save; + if(need_eom && uper_put_length(po, 0, 0)) { + FREEMEM(buf); + return -1; + } + } while(size); + + FREEMEM(buf); + if(size) return -1; + + return 0; +} + +static asn_dec_rval_t +uper_open_type_get_simple(const asn_codec_ctx_t *ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, + asn_per_data_t *pd) { + asn_dec_rval_t rv; + ssize_t chunk_bytes; + int repeat; + uint8_t *buf = 0; + size_t bufLen = 0; + size_t bufSize = 0; + asn_per_data_t spd; + size_t padding; + + ASN__STACK_OVERFLOW_CHECK(ctx); + + ASN_DEBUG("Getting open type %s...", td->name); + + do { + chunk_bytes = uper_get_length(pd, -1, 0, &repeat); + if(chunk_bytes < 0) { + FREEMEM(buf); + ASN__DECODE_STARVED; + } + if(bufLen + chunk_bytes > bufSize) { + void *ptr; + bufSize = chunk_bytes + (bufSize << 2); + ptr = REALLOC(buf, bufSize); + if(!ptr) { + FREEMEM(buf); + ASN__DECODE_FAILED; + } + buf = ptr; + } + if(per_get_many_bits(pd, (buf == NULL)? NULL : buf + bufLen, 0, chunk_bytes << 3)) { + FREEMEM(buf); + ASN__DECODE_STARVED; + } + bufLen += chunk_bytes; + } while(repeat); + + ASN_DEBUG("Getting open type %s encoded in %ld bytes", td->name, + (long)bufLen); + + memset(&spd, 0, sizeof(spd)); + spd.buffer = buf; + spd.nbits = bufLen << 3; + + ASN_DEBUG_INDENT_ADD(+4); + rv = td->op->uper_decoder(ctx, td, constraints, sptr, &spd); + ASN_DEBUG_INDENT_ADD(-4); + + if(rv.code == RC_OK) { + /* Check padding validity */ + padding = spd.nbits - spd.nboff; + if (((padding > 0 && padding < 8) || + /* X.691#10.1.3 */ + (spd.nboff == 0 && spd.nbits == 8 && spd.buffer == buf)) && + per_get_few_bits(&spd, padding) == 0) { + /* Everything is cool */ + FREEMEM(buf); + return rv; + } + FREEMEM(buf); + if(padding >= 8) { + ASN_DEBUG("Too large padding %d in open type", (int)padding); + ASN__DECODE_FAILED; + } else { + ASN_DEBUG("No padding"); + } + } else { + FREEMEM(buf); + /* rv.code could be RC_WMORE, nonsense in this context */ + rv.code = RC_FAIL; /* No one would give us more */ + } + + return rv; +} + +static asn_dec_rval_t CC_NOTUSED +uper_open_type_get_complex(const asn_codec_ctx_t *ctx, + const asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, void **sptr, + asn_per_data_t *pd) { + uper_ugot_key arg; + asn_dec_rval_t rv; + ssize_t padding; + + ASN__STACK_OVERFLOW_CHECK(ctx); + + ASN_DEBUG("Getting open type %s from %s", td->name, + asn_bit_data_string(pd)); + arg.oldpd = *pd; + arg.unclaimed = 0; + arg.ot_moved = 0; + arg.repeat = 1; + pd->refill = uper_ugot_refill; + pd->refill_key = &arg; + pd->nbits = pd->nboff; /* 0 good bits at this point, will refill */ + pd->moved = 0; /* This now counts the open type size in bits */ + + ASN_DEBUG_INDENT_ADD(+4); + rv = td->op->uper_decoder(ctx, td, constraints, sptr, pd); + ASN_DEBUG_INDENT_ADD(-4); + +#define UPDRESTOREPD do { \ + /* buffer and nboff are valid, preserve them. */ \ + pd->nbits = arg.oldpd.nbits - (pd->moved - arg.ot_moved); \ + pd->moved = arg.oldpd.moved + (pd->moved - arg.ot_moved); \ + pd->refill = arg.oldpd.refill; \ + pd->refill_key = arg.oldpd.refill_key; \ + } while(0) + + if(rv.code != RC_OK) { + UPDRESTOREPD; + return rv; + } + + ASN_DEBUG("OpenType %s pd%s old%s unclaimed=%d, repeat=%d", td->name, + asn_bit_data_string(pd), + asn_bit_data_string(&arg.oldpd), + (int)arg.unclaimed, (int)arg.repeat); + + padding = pd->moved % 8; + if(padding) { + int32_t pvalue; + if(padding > 7) { + ASN_DEBUG("Too large padding %d in open type", + (int)padding); + rv.code = RC_FAIL; + UPDRESTOREPD; + return rv; + } + padding = 8 - padding; + ASN_DEBUG("Getting padding of %d bits", (int)padding); + pvalue = per_get_few_bits(pd, padding); + switch(pvalue) { + case -1: + ASN_DEBUG("Padding skip failed"); + UPDRESTOREPD; + ASN__DECODE_STARVED; + case 0: break; + default: + ASN_DEBUG("Non-blank padding (%d bits 0x%02x)", + (int)padding, (int)pvalue); + UPDRESTOREPD; + ASN__DECODE_FAILED; + } + } + if(pd->nboff != pd->nbits) { + ASN_DEBUG("Open type %s overhead pd%s old%s", td->name, + asn_bit_data_string(pd), asn_bit_data_string(&arg.oldpd)); + if(1) { + UPDRESTOREPD; + ASN__DECODE_FAILED; + } else { + arg.unclaimed += pd->nbits - pd->nboff; + } + } + + /* Adjust pd back so it points to original data */ + UPDRESTOREPD; + + /* Skip data not consumed by the decoder */ + if(arg.unclaimed) { + ASN_DEBUG("Getting unclaimed %d", (int)arg.unclaimed); + switch(per_skip_bits(pd, arg.unclaimed)) { + case -1: + ASN_DEBUG("Claim of %d failed", (int)arg.unclaimed); + ASN__DECODE_STARVED; + case 0: + ASN_DEBUG("Got claim of %d", (int)arg.unclaimed); + break; + default: + /* Padding must be blank */ + ASN_DEBUG("Non-blank unconsumed padding"); + ASN__DECODE_FAILED; + } + arg.unclaimed = 0; + } + + if(arg.repeat) { + ASN_DEBUG("Not consumed the whole thing"); + rv.code = RC_FAIL; + return rv; + } + + return rv; +} + + +asn_dec_rval_t +uper_open_type_get(const asn_codec_ctx_t *ctx, const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, void **sptr, + asn_per_data_t *pd) { + return uper_open_type_get_simple(ctx, td, constraints, sptr, pd); +} + +int +uper_open_type_skip(const asn_codec_ctx_t *ctx, asn_per_data_t *pd) { + asn_TYPE_descriptor_t s_td; + asn_TYPE_operation_t s_op; + asn_dec_rval_t rv; + + s_td.name = ""; + s_td.op = &s_op; + s_op.uper_decoder = uper_sot_suck; + + rv = uper_open_type_get(ctx, &s_td, 0, 0, pd); + if(rv.code != RC_OK) + return -1; + else + return 0; +} + +/* + * Internal functions. + */ + +static int +uper_ugot_refill(asn_per_data_t *pd) { + uper_ugot_key *arg = pd->refill_key; + ssize_t next_chunk_bytes, next_chunk_bits; + ssize_t avail; + + asn_per_data_t *oldpd = &arg->oldpd; + + ASN_DEBUG("REFILLING pd->moved=%ld, oldpd->moved=%ld", + (long)pd->moved, (long)oldpd->moved); + + /* Advance our position to where pd is */ + oldpd->buffer = pd->buffer; + oldpd->nboff = pd->nboff; + oldpd->nbits -= pd->moved - arg->ot_moved; + oldpd->moved += pd->moved - arg->ot_moved; + arg->ot_moved = pd->moved; + + if(arg->unclaimed) { + /* Refill the container */ + if(per_get_few_bits(oldpd, 1)) + return -1; + if(oldpd->nboff == 0) { + assert(0); + return -1; + } + pd->buffer = oldpd->buffer; + pd->nboff = oldpd->nboff - 1; + pd->nbits = oldpd->nbits; + ASN_DEBUG("UNCLAIMED <- return from (pd->moved=%ld)", + (long)pd->moved); + return 0; + } + + if(!arg->repeat) { + ASN_DEBUG("Want more but refill doesn't have it"); + return -1; + } + + next_chunk_bytes = uper_get_length(oldpd, -1, 0, &arg->repeat); + ASN_DEBUG("Open type LENGTH %ld bytes at off %ld, repeat %ld", + (long)next_chunk_bytes, (long)oldpd->moved, (long)arg->repeat); + if(next_chunk_bytes < 0) return -1; + if(next_chunk_bytes == 0) { + pd->refill = 0; /* No more refills, naturally */ + assert(!arg->repeat); /* Implementation guarantee */ + } + next_chunk_bits = next_chunk_bytes << 3; + avail = oldpd->nbits - oldpd->nboff; + if(avail >= next_chunk_bits) { + pd->nbits = oldpd->nboff + next_chunk_bits; + arg->unclaimed = 0; + ASN_DEBUG("!+Parent frame %ld bits, alloting %ld [%ld..%ld] (%ld)", + (long)next_chunk_bits, (long)oldpd->moved, + (long)oldpd->nboff, (long)oldpd->nbits, + (long)(oldpd->nbits - oldpd->nboff)); + } else { + pd->nbits = oldpd->nbits; + arg->unclaimed = next_chunk_bits - avail; + ASN_DEBUG("!-Parent frame %ld, require %ld, will claim %ld", + (long)avail, (long)next_chunk_bits, + (long)arg->unclaimed); + } + pd->buffer = oldpd->buffer; + pd->nboff = oldpd->nboff; + ASN_DEBUG("Refilled pd%s old%s", + asn_bit_data_string(pd), asn_bit_data_string(oldpd)); + return 0; +} + +static int +per_skip_bits(asn_per_data_t *pd, int skip_nbits) { + int hasNonZeroBits = 0; + while(skip_nbits > 0) { + int skip; + + /* per_get_few_bits() is more efficient when nbits <= 24 */ + if(skip_nbits < 24) + skip = skip_nbits; + else + skip = 24; + skip_nbits -= skip; + + switch(per_get_few_bits(pd, skip)) { + case -1: return -1; /* Starving */ + case 0: continue; /* Skipped empty space */ + default: hasNonZeroBits = 1; continue; + } + } + return hasNonZeroBits; +} diff --git a/asn.1/skeleton/uper_opentype.h b/asn.1/skeleton/uper_opentype.h new file mode 100644 index 00000000..3a248225 --- /dev/null +++ b/asn.1/skeleton/uper_opentype.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2007-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _UPER_OPENTYPE_H_ +#define _UPER_OPENTYPE_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +asn_dec_rval_t uper_open_type_get(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + void **sptr, asn_per_data_t *pd); + +int uper_open_type_skip(const asn_codec_ctx_t *opt_codec_ctx, + asn_per_data_t *pd); + +/* + * X.691 (2015/08), #11.2 + * Returns -1 if error is encountered. 0 if all OK. + */ +int uper_open_type_put(const asn_TYPE_descriptor_t *td, + const asn_per_constraints_t *constraints, + const void *sptr, asn_per_outp_t *po); + +#ifdef __cplusplus +} +#endif + +#endif /* _UPER_OPENTYPE_H_ */ diff --git a/asn.1/skeleton/uper_support.c b/asn.1/skeleton/uper_support.c new file mode 100644 index 00000000..ce8adc5e --- /dev/null +++ b/asn.1/skeleton/uper_support.c @@ -0,0 +1,311 @@ +/* + * Copyright (c) 2005-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +/* + * X.691-201508 #10.9 General rules for encoding a length determinant. + * Get the optionally constrained length "n" from the stream. + */ +ssize_t +uper_get_length(asn_per_data_t *pd, int ebits, size_t lower_bound, + int *repeat) { + ssize_t value; + + *repeat = 0; + + /* #11.9.4.1 Encoding if constrained (according to effective bits) */ + if(ebits >= 0 && ebits <= 16) { + value = per_get_few_bits(pd, ebits); + if(value >= 0) value += lower_bound; + return value; + } + + value = per_get_few_bits(pd, 8); + if((value & 0x80) == 0) { /* #11.9.3.6 */ + return (value & 0x7F); + } else if((value & 0x40) == 0) { /* #11.9.3.7 */ + /* bit 8 ... set to 1 and bit 7 ... set to zero */ + value = ((value & 0x3f) << 8) | per_get_few_bits(pd, 8); + return value; /* potential -1 from per_get_few_bits passes through. */ + } else if(value < 0) { + ASN_DEBUG("END of stream reached for PER"); + return -1; + } + value &= 0x3f; /* this is "m" from X.691, #11.9.3.8 */ + if(value < 1 || value > 4) { + return -1; /* Prohibited by #11.9.3.8 */ + } + *repeat = 1; + return (16384 * value); +} + +/* + * Get the normally small length "n". + * This procedure used to decode length of extensions bit-maps + * for SET and SEQUENCE types. + */ +ssize_t +uper_get_nslength(asn_per_data_t *pd) { + ssize_t length; + + ASN_DEBUG("Getting normally small length"); + + if(per_get_few_bits(pd, 1) == 0) { + length = per_get_few_bits(pd, 6) + 1; + if(length <= 0) return -1; + ASN_DEBUG("l=%d", (int)length); + return length; + } else { + int repeat; + length = uper_get_length(pd, -1, 0, &repeat); + if(length >= 0 && !repeat) return length; + return -1; /* Error, or do not support >16K extensions */ + } +} + +/* + * Get the normally small non-negative whole number. + * X.691, #10.6 + */ +ssize_t +uper_get_nsnnwn(asn_per_data_t *pd) { + ssize_t value; + + value = per_get_few_bits(pd, 7); + if(value & 64) { /* implicit (value < 0) */ + value &= 63; + value <<= 2; + value |= per_get_few_bits(pd, 2); + if(value & 128) /* implicit (value < 0) */ + return -1; + if(value == 0) + return 0; + if(value >= 3) + return -1; + value = per_get_few_bits(pd, 8 * value); + return value; + } + + return value; +} + +/* + * X.691-11/2008, #11.6 + * Encoding of a normally small non-negative whole number + */ +int +uper_put_nsnnwn(asn_per_outp_t *po, int n) { + int bytes; + + if(n <= 63) { + if(n < 0) return -1; + return per_put_few_bits(po, n, 7); + } + if(n < 256) + bytes = 1; + else if(n < 65536) + bytes = 2; + else if(n < 256 * 65536) + bytes = 3; + else + return -1; /* This is not a "normally small" value */ + if(per_put_few_bits(po, bytes, 8)) + return -1; + + return per_put_few_bits(po, n, 8 * bytes); +} + + +/* X.691-2008/11, #11.5.6 -> #11.3 */ +int uper_get_constrained_whole_number(asn_per_data_t *pd, uintmax_t *out_value, int nbits) { + uintmax_t lhalf; /* Lower half of the number*/ + intmax_t half; + + if(nbits <= 31) { + half = per_get_few_bits(pd, nbits); + if(half < 0) return -1; + *out_value = half; + return 0; + } + + if((size_t)nbits > 8 * sizeof(*out_value)) + return -1; /* RANGE */ + + half = per_get_few_bits(pd, 31); + if(half < 0) return -1; + + if(uper_get_constrained_whole_number(pd, &lhalf, nbits - 31)) + return -1; + + *out_value = ((uintmax_t)half << (nbits - 31)) | lhalf; + return 0; +} + + +/* X.691-2008/11, #11.5.6 -> #11.3 */ +int +uper_put_constrained_whole_number_u(asn_per_outp_t *po, uintmax_t v, + int nbits) { + if(nbits <= 31) { + return per_put_few_bits(po, v, nbits); + } else { + /* Put higher portion first, followed by lower 31-bit */ + if(uper_put_constrained_whole_number_u(po, v >> 31, nbits - 31)) + return -1; + return per_put_few_bits(po, v, 31); + } +} + +/* + * X.691 (08/2015) #11.9 "General rules for encoding a length determinant" + * Put the length "n" (or part of it) into the stream. + */ +ssize_t +uper_put_length(asn_per_outp_t *po, size_t length, int *need_eom) { + int dummy = 0; + if(!need_eom) need_eom = &dummy; + + if(length <= 127) { /* #11.9.3.6 */ + *need_eom = 0; + return per_put_few_bits(po, length, 8) + ? -1 : (ssize_t)length; + } else if(length < 16384) { /* #10.9.3.7 */ + *need_eom = 0; + return per_put_few_bits(po, length|0x8000, 16) + ? -1 : (ssize_t)length; + } + + *need_eom = 0 == (length & 16383); + length >>= 14; + if(length > 4) { + *need_eom = 0; + length = 4; + } + + return per_put_few_bits(po, 0xC0 | length, 8) + ? -1 : (ssize_t)(length << 14); + +} + + +/* + * Put the normally small length "n" into the stream. + * This procedure used to encode length of extensions bit-maps + * for SET and SEQUENCE types. + */ +int +uper_put_nslength(asn_per_outp_t *po, size_t length) { + if(length <= 64) { + /* #11.9.3.4 */ + if(length == 0) return -1; + return per_put_few_bits(po, length - 1, 7) ? -1 : 0; + } else { + int need_eom = 0; + if(uper_put_length(po, length, &need_eom) != (ssize_t)length + || need_eom) { + /* This might happen in case of >16K extensions */ + return -1; + } + } + + return 0; +} + +static int +per__imax_range(intmax_t lb, intmax_t ub, uintmax_t *range_r) { + uintmax_t bounds_range; + if((ub < 0) == (lb < 0)) { + bounds_range = ub - lb; + } else if(lb < 0) { + assert(ub >= 0); + bounds_range = 1 + ((uintmax_t)ub + (uintmax_t)-(lb + 1)); + } else { + assert(!"Unreachable"); + return -1; + } + *range_r = bounds_range; + return 0; +} + +int +per_imax_range_rebase(intmax_t v, intmax_t lb, intmax_t ub, uintmax_t *output) { + uintmax_t range; + + assert(lb <= ub); + + if(v < lb || v > ub || per__imax_range(lb, ub, &range) < 0) { + /* Range error. */ + return -1; + } + + /* + * Fundamentally what we're doing is returning (v-lb). + * However, this triggers undefined behavior when the word width + * of signed (v) is the same as the size of unsigned (*output). + * In practice, it triggers the UndefinedSanitizer. Therefore we shall + * compute the ranges accurately to avoid C's undefined behavior. + */ + if((v < 0) == (lb < 0)) { + *output = v-lb; + return 0; + } else if(v < 0) { + uintmax_t rebased = 1 + (uintmax_t)-(v+1) + (uintmax_t)lb; + assert(rebased <= range); /* By construction */ + *output = rebased; + return 0; + } else if(lb < 0) { + uintmax_t rebased = 1 + (uintmax_t)-(lb+1) + (uintmax_t)v; + assert(rebased <= range); /* By construction */ + *output = rebased; + return 0; + } else { + assert(!"Unreachable"); + return -1; + } +} + +int +per_long_range_rebase(long v, intmax_t lb, intmax_t ub, unsigned long *output) { + uintmax_t tmp = *output; + int rc = per_imax_range_rebase((intmax_t)v, lb, ub, &tmp); + *output = tmp; + return rc; +} + +int +per_imax_range_unrebase(uintmax_t inp, intmax_t lb, intmax_t ub, intmax_t *outp) { + uintmax_t range; + + if(per__imax_range(lb, ub, &range) != 0) { + return -1; + } + + if(inp > range) { + /* + * We can encode something in the given number of bits that technically + * exceeds the range. This is an avenue for security errors, + * so we don't allow that. + */ + return -1; + } + + if(inp <= INTMAX_MAX) { + *outp = (intmax_t)inp + lb; + } else { + *outp = (lb + INTMAX_MAX + 1) + (intmax_t)((inp - INTMAX_MAX) - 1); + } + + return 0; +} + +int +per_long_range_unrebase(unsigned long inp, intmax_t lb, intmax_t ub, long *outp) { + intmax_t tmp = *outp; + int rc = per_imax_range_unrebase((uintmax_t)inp, lb, ub, &tmp); + *outp = tmp; + return rc; +} diff --git a/asn.1/skeleton/uper_support.h b/asn.1/skeleton/uper_support.h new file mode 100644 index 00000000..6c9d4ea7 --- /dev/null +++ b/asn.1/skeleton/uper_support.h @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2005-2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#ifndef _UPER_SUPPORT_H_ +#define _UPER_SUPPORT_H_ + +#include /* Platform-specific types */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * X.691 (08/2015) #11.9 "General rules for encoding a length determinant" + * Get the length "n" from the Unaligned PER stream. + */ +ssize_t uper_get_length(asn_per_data_t *pd, int effective_bound_bits, + size_t lower_bound, int *repeat); + +/* + * Get the normally small length "n". + */ +ssize_t uper_get_nslength(asn_per_data_t *pd); + +/* + * Get the normally small non-negative whole number. + */ +ssize_t uper_get_nsnnwn(asn_per_data_t *pd); + +/* X.691-2008/11, #11.5.6 */ +int uper_get_constrained_whole_number(asn_per_data_t *pd, uintmax_t *v, int nbits); + +/* + * Rebase the given value as an offset into the range specified by the + * lower bound (lb) and upper bound (ub). + * RETURN VALUES: + * -1: Conversion failed due to range problems. + * 0: Conversion was successful. + */ +int per_long_range_rebase(long, intmax_t lb, intmax_t ub, unsigned long *output); +int per_imax_range_rebase(intmax_t v, intmax_t lb, intmax_t ub, uintmax_t *output); +/* The inverse operation: restores the value by the offset and its bounds. */ +int per_long_range_unrebase(unsigned long inp, intmax_t lb, intmax_t ub, long *outp); +int per_imax_range_unrebase(uintmax_t inp, intmax_t lb, intmax_t ub, intmax_t *outp); + +/* X.691-2008/11, #11.5 */ +int uper_put_constrained_whole_number_u(asn_per_outp_t *po, uintmax_t v, int nbits); + +/* + * X.691 (08/2015) #11.9 "General rules for encoding a length determinant" + * Put the length "whole_length" to the Unaligned PER stream. + * If (opt_need_eom) is given, it will be set to 1 if final 0-length is needed. + * In that case, invoke uper_put_length(po, 0, 0) after encoding the last block. + * This function returns the number of units which may be flushed + * in the next units saving iteration. + */ +ssize_t uper_put_length(asn_per_outp_t *po, size_t whole_length, + int *opt_need_eom); + +/* + * Put the normally small length "n" to the Unaligned PER stream. + * Returns 0 or -1. + */ +int uper_put_nslength(asn_per_outp_t *po, size_t length); + +/* + * Put the normally small non-negative whole number. + */ +int uper_put_nsnnwn(asn_per_outp_t *po, int n); + +#ifdef __cplusplus +} +#endif + +#endif /* _UPER_SUPPORT_H_ */ diff --git a/asn.1/generated/xer_decoder.c b/asn.1/skeleton/xer_decoder.c similarity index 99% rename from asn.1/generated/xer_decoder.c rename to asn.1/skeleton/xer_decoder.c index 5b87703a..2a14557a 100644 --- a/asn.1/generated/xer_decoder.c +++ b/asn.1/skeleton/xer_decoder.c @@ -323,7 +323,7 @@ xer_decode_general(const asn_codec_ctx_t *opt_codec_ctx, size_t xer_whitespace_span(const void *chunk_buf, size_t chunk_size) { const char *p = (const char *)chunk_buf; - const char *pend = p + chunk_size; + const char *pend = (p == NULL)? NULL : p + chunk_size; for(; p < pend; p++) { switch(*p) { diff --git a/asn.1/generated/xer_decoder.h b/asn.1/skeleton/xer_decoder.h similarity index 100% rename from asn.1/generated/xer_decoder.h rename to asn.1/skeleton/xer_decoder.h diff --git a/asn.1/generated/xer_encoder.c b/asn.1/skeleton/xer_encoder.c similarity index 99% rename from asn.1/generated/xer_encoder.c rename to asn.1/skeleton/xer_encoder.c index dff3c44e..4177ede5 100644 --- a/asn.1/generated/xer_encoder.c +++ b/asn.1/skeleton/xer_encoder.c @@ -53,7 +53,7 @@ xer__print2fp(const void *buffer, size_t size, void *app_key) { int xer_fprint(FILE *stream, const asn_TYPE_descriptor_t *td, const void *sptr) { - asn_enc_rval_t er; + asn_enc_rval_t er = {0,0,0}; if(!stream) stream = stdout; if(!td || !sptr) diff --git a/asn.1/generated/xer_encoder.h b/asn.1/skeleton/xer_encoder.h similarity index 97% rename from asn.1/generated/xer_encoder.h rename to asn.1/skeleton/xer_encoder.h index 9d75922c..6cfc505f 100644 --- a/asn.1/generated/xer_encoder.h +++ b/asn.1/skeleton/xer_encoder.h @@ -54,7 +54,7 @@ int xer_fprint(FILE *stream, const struct asn_TYPE_descriptor_s *td, enum xer_equivalence_e { XEQ_SUCCESS, /* The only completely positive return value */ XEQ_FAILURE, /* General failure */ - XEQ_ENCODE1_FAILED, /* First sructure XER encoding failed */ + XEQ_ENCODE1_FAILED, /* First structure XER encoding failed */ XEQ_ENCODE2_FAILED, /* Second structure XER encoding failed */ XEQ_DIFFERENT, /* Structures encoded into different XER */ XEQ_DECODE_FAILED, /* Decode of the XER data failed */ diff --git a/asn.1/generated/xer_support.c b/asn.1/skeleton/xer_support.c similarity index 100% rename from asn.1/generated/xer_support.c rename to asn.1/skeleton/xer_support.c diff --git a/asn.1/generated/xer_support.h b/asn.1/skeleton/xer_support.h similarity index 92% rename from asn.1/generated/xer_support.h rename to asn.1/skeleton/xer_support.h index c3a36e72..2c3f369b 100644 --- a/asn.1/generated/xer_support.h +++ b/asn.1/skeleton/xer_support.h @@ -40,8 +40,8 @@ typedef int (pxml_callback_f)(pxml_chunk_type_e _type, /* * Parse the given buffer as it were a chunk of XML data. - * Invoke the specified callback each time the meaninful data is found. - * This function returns number of bytes consumed from the bufer. + * Invoke the specified callback each time the meaningful data is found. + * This function returns number of bytes consumed from the buffer. * It will always be lesser than or equal to the specified _size. * The next invocation of this function must account the difference. */ diff --git a/asn.1/src/LPP-PDU-Definitions.asn b/asn.1/src/LPP-PDU-Definitions.asn new file mode 100644 index 00000000..bb33fe1e --- /dev/null +++ b/asn.1/src/LPP-PDU-Definitions.asn @@ -0,0 +1,9607 @@ +LPP-PDU-Definitions DEFINITIONS AUTOMATIC TAGS ::= BEGIN + +LPP-Message ::= SEQUENCE { + transactionID LPP-TransactionID OPTIONAL, -- Need ON + endTransaction BOOLEAN, + sequenceNumber SequenceNumber OPTIONAL, -- Need ON + acknowledgement Acknowledgement OPTIONAL, -- Need ON + lpp-MessageBody LPP-MessageBody OPTIONAL -- Need ON +} + +SequenceNumber ::= INTEGER (0..255) + +Acknowledgement ::= SEQUENCE { + ackRequested BOOLEAN, + ackIndicator SequenceNumber OPTIONAL +} + +LPP-MessageBody ::= CHOICE { + c1 CHOICE { + requestCapabilities RequestCapabilities, + provideCapabilities ProvideCapabilities, + requestAssistanceData RequestAssistanceData, + provideAssistanceData ProvideAssistanceData, + requestLocationInformation RequestLocationInformation, + provideLocationInformation ProvideLocationInformation, + abort Abort, + error Error, + spare7 NULL, + spare6 NULL, + spare5 NULL, + spare4 NULL, + spare3 NULL, + spare2 NULL, + spare1 NULL, + spare0 NULL + }, + messageClassExtension SEQUENCE {} +} + +LPP-TransactionID ::= SEQUENCE { + initiator Initiator, + transactionNumber TransactionNumber, + ... +} + +Initiator ::= ENUMERATED { + locationServer, + targetDevice, + ... + } + +TransactionNumber ::= INTEGER (0..255) + +RequestCapabilities ::= SEQUENCE { + criticalExtensions CHOICE { + c1 CHOICE { + requestCapabilities-r9 RequestCapabilities-r9-IEs, + spare3 NULL, + spare2 NULL, + spare1 NULL + }, + criticalExtensionsFuture SEQUENCE {} + } +} + +RequestCapabilities-r9-IEs ::= SEQUENCE { + commonIEsRequestCapabilities CommonIEsRequestCapabilities OPTIONAL, -- Need ON + a-gnss-RequestCapabilities A-GNSS-RequestCapabilities OPTIONAL, -- Need ON + otdoa-RequestCapabilities OTDOA-RequestCapabilities OPTIONAL, -- Need ON + ecid-RequestCapabilities ECID-RequestCapabilities OPTIONAL, -- Need ON + epdu-RequestCapabilities EPDU-Sequence OPTIONAL, -- Need ON + ..., + [[ + sensor-RequestCapabilities-r13 Sensor-RequestCapabilities-r13 OPTIONAL, -- Need ON + tbs-RequestCapabilities-r13 TBS-RequestCapabilities-r13 OPTIONAL, -- Need ON + wlan-RequestCapabilities-r13 WLAN-RequestCapabilities-r13 OPTIONAL, -- Need ON + bt-RequestCapabilities-r13 BT-RequestCapabilities-r13 OPTIONAL -- Need ON + ]], + [[ + nr-ECID-RequestCapabilities-r16 NR-ECID-RequestCapabilities-r16 OPTIONAL, -- Need ON + nr-Multi-RTT-RequestCapabilities-r16 NR-Multi-RTT-RequestCapabilities-r16 OPTIONAL, -- Need ON + nr-DL-AoD-RequestCapabilities-r16 NR-DL-AoD-RequestCapabilities-r16 OPTIONAL, -- Need ON + nr-DL-TDOA-RequestCapabilities-r16 NR-DL-TDOA-RequestCapabilities-r16 OPTIONAL, -- Need ON + nr-UL-RequestCapabilities-r16 NR-UL-RequestCapabilities-r16 OPTIONAL -- Need ON + ]] +} + +ProvideCapabilities ::= SEQUENCE { + criticalExtensions CHOICE { + c1 CHOICE { + provideCapabilities-r9 ProvideCapabilities-r9-IEs, + spare3 NULL, + spare2 NULL, + spare1 NULL + }, + criticalExtensionsFuture SEQUENCE {} + } +} + +ProvideCapabilities-r9-IEs ::= SEQUENCE { + commonIEsProvideCapabilities CommonIEsProvideCapabilities OPTIONAL, + a-gnss-ProvideCapabilities A-GNSS-ProvideCapabilities OPTIONAL, + otdoa-ProvideCapabilities OTDOA-ProvideCapabilities OPTIONAL, + ecid-ProvideCapabilities ECID-ProvideCapabilities OPTIONAL, + epdu-ProvideCapabilities EPDU-Sequence OPTIONAL, + ..., + [[ + sensor-ProvideCapabilities-r13 Sensor-ProvideCapabilities-r13 OPTIONAL, + tbs-ProvideCapabilities-r13 TBS-ProvideCapabilities-r13 OPTIONAL, + wlan-ProvideCapabilities-r13 WLAN-ProvideCapabilities-r13 OPTIONAL, + bt-ProvideCapabilities-r13 BT-ProvideCapabilities-r13 OPTIONAL + ]], + [[ + nr-ECID-ProvideCapabilities-r16 NR-ECID-ProvideCapabilities-r16 OPTIONAL, + nr-Multi-RTT-ProvideCapabilities-r16 NR-Multi-RTT-ProvideCapabilities-r16 OPTIONAL, + nr-DL-AoD-ProvideCapabilities-r16 NR-DL-AoD-ProvideCapabilities-r16 OPTIONAL, + nr-DL-TDOA-ProvideCapabilities-r16 NR-DL-TDOA-ProvideCapabilities-r16 OPTIONAL, + nr-UL-ProvideCapabilities-r16 NR-UL-ProvideCapabilities-r16 OPTIONAL + ]] +} + +RequestAssistanceData ::= SEQUENCE { + criticalExtensions CHOICE { + c1 CHOICE { + requestAssistanceData-r9 RequestAssistanceData-r9-IEs, + spare3 NULL, + spare2 NULL, + spare1 NULL + }, + criticalExtensionsFuture SEQUENCE {} + } +} + +RequestAssistanceData-r9-IEs ::= SEQUENCE { + commonIEsRequestAssistanceData CommonIEsRequestAssistanceData OPTIONAL, + a-gnss-RequestAssistanceData A-GNSS-RequestAssistanceData OPTIONAL, + otdoa-RequestAssistanceData OTDOA-RequestAssistanceData OPTIONAL, + epdu-RequestAssistanceData EPDU-Sequence OPTIONAL, + ..., + [[ + sensor-RequestAssistanceData-r14 Sensor-RequestAssistanceData-r14 OPTIONAL, + tbs-RequestAssistanceData-r14 TBS-RequestAssistanceData-r14 OPTIONAL, + wlan-RequestAssistanceData-r14 WLAN-RequestAssistanceData-r14 OPTIONAL + ]], + [[ + nr-Multi-RTT-RequestAssistanceData-r16 NR-Multi-RTT-RequestAssistanceData-r16 OPTIONAL, + nr-DL-AoD-RequestAssistanceData-r16 NR-DL-AoD-RequestAssistanceData-r16 OPTIONAL, + nr-DL-TDOA-RequestAssistanceData-r16 NR-DL-TDOA-RequestAssistanceData-r16 OPTIONAL + ]], + [[ + bt-RequestAssistanceData-r18 BT-RequestAssistanceData-r18 OPTIONAL + ]] +} + +ProvideAssistanceData ::= SEQUENCE { + criticalExtensions CHOICE { + c1 CHOICE { + provideAssistanceData-r9 ProvideAssistanceData-r9-IEs, + spare3 NULL, + spare2 NULL, + spare1 NULL + }, + criticalExtensionsFuture SEQUENCE {} + } +} + +ProvideAssistanceData-r9-IEs ::= SEQUENCE { + commonIEsProvideAssistanceData CommonIEsProvideAssistanceData OPTIONAL, -- Need ON + a-gnss-ProvideAssistanceData A-GNSS-ProvideAssistanceData OPTIONAL, -- Need ON + otdoa-ProvideAssistanceData OTDOA-ProvideAssistanceData OPTIONAL, -- Need ON + epdu-Provide-Assistance-Data EPDU-Sequence OPTIONAL, -- Need ON + ..., + [[ + sensor-ProvideAssistanceData-r14 Sensor-ProvideAssistanceData-r14 OPTIONAL, -- Need ON + tbs-ProvideAssistanceData-r14 TBS-ProvideAssistanceData-r14 OPTIONAL, -- Need ON + wlan-ProvideAssistanceData-r14 WLAN-ProvideAssistanceData-r14 OPTIONAL -- Need ON + ]], + [[ + nr-Multi-RTT-ProvideAssistanceData-r16 NR-Multi-RTT-ProvideAssistanceData-r16 OPTIONAL, -- Need ON + nr-DL-AoD-ProvideAssistanceData-r16 NR-DL-AoD-ProvideAssistanceData-r16 OPTIONAL, -- Need ON + nr-DL-TDOA-ProvideAssistanceData-r16 NR-DL-TDOA-ProvideAssistanceData-r16 OPTIONAL -- Need ON + ]], + [[ + bt-ProvideAssistanceData-r18 BT-ProvideAssistanceData-r18 OPTIONAL -- Need ON + ]] +} + +RequestLocationInformation ::= SEQUENCE { + criticalExtensions CHOICE { + c1 CHOICE { + requestLocationInformation-r9 RequestLocationInformation-r9-IEs, + spare3 NULL, + spare2 NULL, + spare1 NULL + }, + criticalExtensionsFuture SEQUENCE {} + } +} + +RequestLocationInformation-r9-IEs ::= SEQUENCE { + commonIEsRequestLocationInformation CommonIEsRequestLocationInformation OPTIONAL, -- Need ON + a-gnss-RequestLocationInformation A-GNSS-RequestLocationInformation OPTIONAL, -- Need ON + otdoa-RequestLocationInformation OTDOA-RequestLocationInformation OPTIONAL, -- Need ON + ecid-RequestLocationInformation ECID-RequestLocationInformation OPTIONAL, -- Need ON + epdu-RequestLocationInformation EPDU-Sequence OPTIONAL, -- Need ON + ..., + [[ + sensor-RequestLocationInformation-r13 Sensor-RequestLocationInformation-r13 OPTIONAL, -- Need ON + tbs-RequestLocationInformation-r13 TBS-RequestLocationInformation-r13 OPTIONAL, -- Need ON + wlan-RequestLocationInformation-r13 WLAN-RequestLocationInformation-r13 OPTIONAL, -- Need ON + bt-RequestLocationInformation-r13 BT-RequestLocationInformation-r13 OPTIONAL -- Need ON + ]], + [[ + nr-ECID-RequestLocationInformation-r16 NR-ECID-RequestLocationInformation-r16 OPTIONAL, -- Need ON + nr-Multi-RTT-RequestLocationInformation-r16 NR-Multi-RTT-RequestLocationInformation-r16 OPTIONAL, -- Need ON + nr-DL-AoD-RequestLocationInformation-r16 NR-DL-AoD-RequestLocationInformation-r16 OPTIONAL, -- Need ON + nr-DL-TDOA-RequestLocationInformation-r16 NR-DL-TDOA-RequestLocationInformation-r16 OPTIONAL -- Need ON + ]] +} + +ProvideLocationInformation ::= SEQUENCE { + criticalExtensions CHOICE { + c1 CHOICE { + provideLocationInformation-r9 ProvideLocationInformation-r9-IEs, + spare3 NULL, + spare2 NULL, + spare1 NULL + }, + criticalExtensionsFuture SEQUENCE {} + } +} + +ProvideLocationInformation-r9-IEs ::= SEQUENCE { + commonIEsProvideLocationInformation CommonIEsProvideLocationInformation OPTIONAL, + a-gnss-ProvideLocationInformation A-GNSS-ProvideLocationInformation OPTIONAL, + otdoa-ProvideLocationInformation OTDOA-ProvideLocationInformation OPTIONAL, + ecid-ProvideLocationInformation ECID-ProvideLocationInformation OPTIONAL, + epdu-ProvideLocationInformation EPDU-Sequence OPTIONAL, + ..., + [[ + sensor-ProvideLocationInformation-r13 Sensor-ProvideLocationInformation-r13 OPTIONAL, + tbs-ProvideLocationInformation-r13 TBS-ProvideLocationInformation-r13 OPTIONAL, + wlan-ProvideLocationInformation-r13 WLAN-ProvideLocationInformation-r13 OPTIONAL, + bt-ProvideLocationInformation-r13 BT-ProvideLocationInformation-r13 OPTIONAL + ]], + [[ + nr-ECID-ProvideLocationInformation-r16 NR-ECID-ProvideLocationInformation-r16 OPTIONAL, + nr-Multi-RTT-ProvideLocationInformation-r16 NR-Multi-RTT-ProvideLocationInformation-r16 OPTIONAL, + nr-DL-AoD-ProvideLocationInformation-r16 NR-DL-AoD-ProvideLocationInformation-r16 OPTIONAL, + nr-DL-TDOA-ProvideLocationInformation-r16 NR-DL-TDOA-ProvideLocationInformation-r16 OPTIONAL + ]] +} + +Abort ::= SEQUENCE { + criticalExtensions CHOICE { + c1 CHOICE { + abort-r9 Abort-r9-IEs, + spare3 NULL, + spare2 NULL, + spare1 NULL + }, + criticalExtensionsFuture SEQUENCE {} + } +} + +Abort-r9-IEs ::= SEQUENCE { + commonIEsAbort CommonIEsAbort OPTIONAL, -- Need ON + ..., + epdu-Abort EPDU-Sequence OPTIONAL -- Need ON +} + +Error ::= CHOICE { + error-r9 Error-r9-IEs, + criticalExtensionsFuture SEQUENCE {} +} + +Error-r9-IEs ::= SEQUENCE { + commonIEsError CommonIEsError OPTIONAL, -- Need ON + ..., + epdu-Error EPDU-Sequence OPTIONAL -- Need ON +} + +AccessTypes ::= SEQUENCE { + accessTypes BIT STRING { + eutra (0), + utra (1), + gsm (2), + nb-iot (3), + nr-v1510 (4) + } (SIZE (1..8)), + ... +} + +ARFCN-ValueEUTRA ::= INTEGER (0..maxEARFCN) + +ARFCN-ValueEUTRA-v9a0 ::= INTEGER (maxEARFCN-Plus1..maxEARFCN2) + +ARFCN-ValueEUTRA-r14 ::= INTEGER (0..maxEARFCN2) + +ARFCN-ValueNR-r15 ::= INTEGER (0..3279165) + +ARFCN-ValueUTRA ::= INTEGER (0..16383) + +CarrierFreq-NB-r14 ::= SEQUENCE { + carrierFreq-r14 ARFCN-ValueEUTRA-r14, + carrierFreqOffset-r14 CarrierFreqOffsetNB-r14 OPTIONAL, + ... +} + +CarrierFreqOffsetNB-r14 ::= ENUMERATED { + v-10, + v-9, + v-8, + v-7, + v-6, + v-5, + v-4, + v-3, + v-2, + v-1, + v-0dot5, + v0, + v1, + v2, + v3, + v4, + v5, + v6, + v7, + v8, + v9 + } + +CellGlobalIdEUTRA-AndUTRA ::= SEQUENCE { + plmn-Identity SEQUENCE { + mcc SEQUENCE (SIZE (3)) OF INTEGER (0..9), + mnc SEQUENCE (SIZE (2..3)) OF INTEGER (0..9) + }, + cellIdentity CHOICE { + eutra BIT STRING (SIZE (28)), + utra BIT STRING (SIZE (32)) + }, + ... +} + +CellGlobalIdGERAN ::= SEQUENCE { + plmn-Identity SEQUENCE { + mcc SEQUENCE (SIZE (3)) OF INTEGER (0..9), + mnc SEQUENCE (SIZE (2..3)) OF INTEGER (0..9) + }, + locationAreaCode BIT STRING (SIZE (16)), + cellIdentity BIT STRING (SIZE (16)), + ... +} + +ECGI ::= SEQUENCE { + mcc SEQUENCE (SIZE (3)) OF INTEGER (0..9), + mnc SEQUENCE (SIZE (2..3)) OF INTEGER (0..9), + cellidentity BIT STRING (SIZE (28)) +} + +Ellipsoid-Point ::= SEQUENCE { + latitudeSign ENUMERATED { + north, + south + }, + degreesLatitude INTEGER (0..8388607), -- 23 bit field + degreesLongitude INTEGER (-8388608..8388607) -- 24 bit field +} + +Ellipsoid-PointWithUncertaintyCircle ::= SEQUENCE { + latitudeSign ENUMERATED { + north, + south + }, + degreesLatitude INTEGER (0..8388607), -- 23 bit field + degreesLongitude INTEGER (-8388608..8388607), -- 24 bit field + uncertainty INTEGER (0..127) +} + +EllipsoidPointWithUncertaintyEllipse ::= SEQUENCE { + latitudeSign ENUMERATED { + north, + south + }, + degreesLatitude INTEGER (0..8388607), -- 23 bit field + degreesLongitude INTEGER (-8388608..8388607), -- 24 bit field + uncertaintySemiMajor INTEGER (0..127), + uncertaintySemiMinor INTEGER (0..127), + orientationMajorAxis INTEGER (0..179), + confidence INTEGER (0..100) +} + +EllipsoidPointWithAltitude ::= SEQUENCE { + latitudeSign ENUMERATED { + north, + south + }, + degreesLatitude INTEGER (0..8388607), -- 23 bit field + degreesLongitude INTEGER (-8388608..8388607), -- 24 bit field + altitudeDirection ENUMERATED { + height, + depth + }, + altitude INTEGER (0..32767) -- 15 bit field +} + +EllipsoidPointWithAltitudeAndUncertaintyEllipsoid ::= SEQUENCE { + latitudeSign ENUMERATED { + north, + south + }, + degreesLatitude INTEGER (0..8388607), -- 23 bit field + degreesLongitude INTEGER (-8388608..8388607), -- 24 bit field + altitudeDirection ENUMERATED { + height, + depth + }, + altitude INTEGER (0..32767), -- 15 bit field + uncertaintySemiMajor INTEGER (0..127), + uncertaintySemiMinor INTEGER (0..127), + orientationMajorAxis INTEGER (0..179), + uncertaintyAltitude INTEGER (0..127), + confidence INTEGER (0..100) +} + +EllipsoidArc ::= SEQUENCE { + latitudeSign ENUMERATED { + north, + south + }, + degreesLatitude INTEGER (0..8388607), -- 23 bit field + degreesLongitude INTEGER (-8388608..8388607), -- 24 bit field + innerRadius INTEGER (0..65535), -- 16 bit field, + uncertaintyRadius INTEGER (0..127), + offsetAngle INTEGER (0..179), + includedAngle INTEGER (0..179), + confidence INTEGER (0..100) +} + +EPDU-Sequence ::= SEQUENCE (SIZE (1..maxEPDU)) OF EPDU + +maxEPDU INTEGER ::= 16 + +EPDU ::= SEQUENCE { + ePDU-Identifier EPDU-Identifier, + ePDU-Body EPDU-Body +} + +EPDU-Identifier ::= SEQUENCE { + ePDU-ID EPDU-ID, + ePDU-Name EPDU-Name OPTIONAL, + ... +} + +EPDU-ID ::= INTEGER (1..256) + +EPDU-Name ::= VisibleString (SIZE (1..32)) + +EPDU-Body ::= OCTET STRING + +FreqBandIndicatorNR-r16 ::= INTEGER (1..1024) + +HA-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-r16 ::= SEQUENCE { + degreesLatitude-r16 INTEGER (-2147483648..2147483647), + degreesLongitude-r16 INTEGER (-2147483648..2147483647), + altitude-r16 INTEGER (-64000..1280000), + uncertaintySemiMajor-r16 INTEGER (0..255), + uncertaintySemiMinor-r16 INTEGER (0..255), + orientationMajorAxis-r16 INTEGER (0..179), + horizontalConfidence-r16 INTEGER (0..100), + uncertaintyAltitude-r16 INTEGER (0..255), + verticalConfidence-r16 INTEGER (0..100), + ha-HorizontalExtendedRangeUsed-r16 BOOLEAN, + ha-VerticalExtendedRangeUsed-r16 BOOLEAN +} + +HA-EllipsoidPointWithScalableUncertaintyEllipse-r16 ::= SEQUENCE { + degreesLatitude-r16 INTEGER (-2147483648..2147483647), + degreesLongitude-r16 INTEGER (-2147483648..2147483647), + uncertaintySemiMajor-r16 INTEGER (0..255), + uncertaintySemiMinor-r16 INTEGER (0..255), + orientationMajorAxis-r16 INTEGER (0..179), + confidence-r16 INTEGER (0..100), + ha-ExtendedUncertaintyRangeUsed-r16 BOOLEAN +} + +HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15 ::= SEQUENCE { + degreesLatitude-r15 INTEGER (-2147483648..2147483647), + degreesLongitude-r15 INTEGER (-2147483648..2147483647), + uncertaintySemiMajor-r15 INTEGER (0..255), + uncertaintySemiMinor-r15 INTEGER (0..255), + orientationMajorAxis-r15 INTEGER (0..179), + confidence-r15 INTEGER (0..100) +} + +HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15 ::= SEQUENCE { + degreesLatitude-r15 INTEGER (-2147483648..2147483647), + degreesLongitude-r15 INTEGER (-2147483648..2147483647), + altitude-r15 INTEGER (-64000..1280000), + uncertaintySemiMajor-r15 INTEGER (0..255), + uncertaintySemiMinor-r15 INTEGER (0..255), + orientationMajorAxis-r15 INTEGER (0..179), + horizontalConfidence-r15 INTEGER (0..100), + uncertaintyAltitude-r15 INTEGER (0..255), + verticalConfidence-r15 INTEGER (0..100) +} + +HorizontalVelocity ::= SEQUENCE { + bearing INTEGER (0..359), + horizontalSpeed INTEGER (0..2047) +} + +HorizontalWithVerticalVelocity ::= SEQUENCE { + bearing INTEGER (0..359), + horizontalSpeed INTEGER (0..2047), + verticalDirection ENUMERATED { + upward, + downward + }, + verticalSpeed INTEGER (0..255) +} + +HorizontalVelocityWithUncertainty ::= SEQUENCE { + bearing INTEGER (0..359), + horizontalSpeed INTEGER (0..2047), + uncertaintySpeed INTEGER (0..255) +} + +HorizontalWithVerticalVelocityAndUncertainty ::= SEQUENCE { + bearing INTEGER (0..359), + horizontalSpeed INTEGER (0..2047), + verticalDirection ENUMERATED { + upward, + downward + }, + verticalSpeed INTEGER (0..255), + horizontalUncertaintySpeed INTEGER (0..255), + verticalUncertaintySpeed INTEGER (0..255) +} + +Local2dPointWithUncertaintyEllipse-r18 ::= SEQUENCE { + localOrigin-r18 ReferencePoint-r16, + cartesianCoordinatesUnits-r18 ENUMERATED { + mm, + cm, + dm, + m, + ... + }, + x-value-r18 X-Value-r18, + y-value-r18 Y-Value-r18, + uncertaintySemiMajor-r18 INTEGER (0..127), + uncertaintySemiMinor-r18 INTEGER (0..127), + orientationMajorAxis-r18 INTEGER (0..179), + confidence-r18 INTEGER (0..100) +} + +Local3dPointWithUncertaintyEllipsoid-r18 ::= SEQUENCE { + localOrigin-r18 ReferencePoint-r16, + cartesianCoordinatesUnits-r18 ENUMERATED { + mm, + cm, + dm, + m, + ... + }, + x-value-r18 X-Value-r18, + y-value-r18 Y-Value-r18, + z-value-r18 Z-Value-r18, + uncertaintySemiMajor-r18 INTEGER (0..127), + uncertaintySemiMinor-r18 INTEGER (0..127), + orientationMajorAxis-r18 INTEGER (0..179), + uncertaintyAltitude-r18 INTEGER (0..127), + confidence-r18 INTEGER (0..100) +} + +LocationCoordinateTypes ::= SEQUENCE { + ellipsoidPoint BOOLEAN, + ellipsoidPointWithUncertaintyCircle BOOLEAN, + ellipsoidPointWithUncertaintyEllipse BOOLEAN, + polygon BOOLEAN, + ellipsoidPointWithAltitude BOOLEAN, + ellipsoidPointWithAltitudeAndUncertaintyEllipsoid BOOLEAN, + ellipsoidArc BOOLEAN, + ..., + [[ + highAccuracyEllipsoidPointWithUncertaintyEllipse-r15 BOOLEAN OPTIONAL, -- Need ON + highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15 BOOLEAN OPTIONAL -- Need ON + ]], + [[ + ha-EllipsoidPointWithScalableUncertaintyEllipse-r16 BOOLEAN OPTIONAL, -- Need ON + ha-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-r16 BOOLEAN OPTIONAL -- Need ON + ]], + [[ + local2dPointWithUncertaintyEllipse-r18 BOOLEAN OPTIONAL, -- Need ON + local3dPointWithUncertaintyEllipsoid-r18 BOOLEAN OPTIONAL -- Need ON + ]] +} + +NCGI-r15 ::= SEQUENCE { + mcc-r15 SEQUENCE (SIZE (3)) OF INTEGER (0..9), + mnc-r15 SEQUENCE (SIZE (2..3)) OF INTEGER (0..9), + nr-cellidentity-r15 BIT STRING (SIZE (36)) +} + +NR-PhysCellID-r16 ::= INTEGER (0..1007) + +PeriodicAssistanceDataControlParameters-r15 ::= SEQUENCE { + periodicSessionID-r15 PeriodicSessionID-r15, + ..., + [[ + updateCapabilities-r15 UpdateCapabilities-r15 OPTIONAL -- Need ON + ]] +} + +PeriodicSessionID-r15 ::= SEQUENCE { + periodicSessionInitiator-r15 ENUMERATED { + locationServer, + targetDevice, + ... + }, + periodicSessionNumber-r15 INTEGER (0..255), + ... +} + +UpdateCapabilities-r15 ::= BIT STRING {primaryCellID-r15 (0)} (SIZE (1..8)) + +Polygon ::= SEQUENCE (SIZE (3..15)) OF PolygonPoints + +PolygonPoints ::= SEQUENCE { + latitudeSign ENUMERATED { + north, + south + }, + degreesLatitude INTEGER (0..8388607), -- 23 bit field + degreesLongitude INTEGER (-8388608..8388607) -- 24 bit field +} + +PositioningModes ::= SEQUENCE { + posModes BIT STRING { + standalone (0), + ue-based (1), + ue-assisted (2) + } (SIZE (1..8)), + ... +} + +ScheduledLocationTimeSupport-r17 ::= SEQUENCE { + utcTime-r17 ENUMERATED {supported} OPTIONAL, + gnssTime-r17 GNSS-ID-Bitmap OPTIONAL, + e-utraTime-r17 ENUMERATED {supported} OPTIONAL, + nrTime-r17 ENUMERATED {supported} OPTIONAL, + relativeTime-r17 ENUMERATED {supported} OPTIONAL, + ... +} + +ScheduledLocationTimeSupportPerMode-r17 ::= SEQUENCE { + utcTime-r17 PositioningModes OPTIONAL, + gnssTime-r17 SEQUENCE { + posModes-r17 PositioningModes, + gnss-TimeIDs-r17 GNSS-ID-Bitmap + } OPTIONAL, + e-utraTime-r17 PositioningModes OPTIONAL, + nrTime-r17 PositioningModes OPTIONAL, + relativeTime-r17 PositioningModes OPTIONAL, + ... +} + +SegmentationInfo-r14 ::= ENUMERATED { + noMoreMessages, + moreMessagesOnTheWay + } + +VelocityTypes ::= SEQUENCE { + horizontalVelocity BOOLEAN, + horizontalWithVerticalVelocity BOOLEAN, + horizontalVelocityWithUncertainty BOOLEAN, + horizontalWithVerticalVelocityAndUncertainty BOOLEAN, + ... +} + +CommonIEsRequestCapabilities ::= SEQUENCE { + ..., + [[ + lpp-message-segmentation-req-r14 BIT STRING { + serverToTarget (0), + targetToServer (1) + } OPTIONAL -- Need ON + ]], + [[ + remoteUE-IndicationReq-r18 ENUMERATED {true} OPTIONAL -- Cond NR + ]] +} + +CommonIEsProvideCapabilities ::= SEQUENCE { + ..., + [[ + segmentationInfo-r14 SegmentationInfo-r14 OPTIONAL, -- Cond Segmentation + lpp-message-segmentation-r14 BIT STRING { + serverToTarget (0), + targetToServer (1) + } OPTIONAL + ]], + [[ + remoteUE-Indication-r18 BOOLEAN OPTIONAL, -- Cond NR + locationEstimateAndMeasurementReporting-r18 ENUMERATED {supported} OPTIONAL + ]] +} + +CommonIEsRequestAssistanceData ::= SEQUENCE { + primaryCellID ECGI OPTIONAL, -- Cond EUTRA + ..., + [[ + segmentationInfo-r14 SegmentationInfo-r14 OPTIONAL -- Cond Segmentation + ]], + [[ + periodicAssistanceDataReq-r15 PeriodicAssistanceDataControlParameters-r15 OPTIONAL, -- Cond PerADreq + primaryCellID-r15 NCGI-r15 OPTIONAL -- Cond NR + ]] +} + +CommonIEsProvideAssistanceData ::= SEQUENCE { + ..., + [[ + segmentationInfo-r14 SegmentationInfo-r14 OPTIONAL -- Need ON + ]], + [[ + periodicAssistanceData-r15 PeriodicAssistanceDataControlParameters-r15 OPTIONAL -- Cond PerAD + ]] +} + +CommonIEsRequestLocationInformation ::= SEQUENCE { + locationInformationType LocationInformationType, + triggeredReporting TriggeredReportingCriteria OPTIONAL, -- Cond ECID + periodicalReporting PeriodicalReportingCriteria OPTIONAL, -- Need ON + additionalInformation AdditionalInformation OPTIONAL, -- Need ON + qos QoS OPTIONAL, -- Need ON + environment Environment OPTIONAL, -- Need ON + locationCoordinateTypes LocationCoordinateTypes OPTIONAL, -- Need ON + velocityTypes VelocityTypes OPTIONAL, -- Need ON + ..., + [[ + messageSizeLimitNB-r14 MessageSizeLimitNB-r14 OPTIONAL -- Need ON + ]], + [[ + segmentationInfo-r14 SegmentationInfo-r14 OPTIONAL -- Need ON + ]], + [[ + scheduledLocationTime-r17 ScheduledLocationTime-r17 OPTIONAL, -- Need ON + targetIntegrityRisk-r17 TargetIntegrityRisk-r17 OPTIONAL -- Need ON + ]] +} + +LocationInformationType ::= ENUMERATED { + locationEstimateRequired, + locationMeasurementsRequired, + locationEstimatePreferred, + locationMeasurementsPreferred, + ..., + locationEstimateAndMeasurementsRequired-r18 + } + +PeriodicalReportingCriteria ::= SEQUENCE { + reportingAmount ENUMERATED { + ra1, + ra2, + ra4, + ra8, + ra16, + ra32, + ra64, + ra-Infinity + } DEFAULT ra-Infinity, + reportingInterval ENUMERATED { + noPeriodicalReporting, + ri0-25, + ri0-5, + ri1, + ri2, + ri4, + ri8, + ri16, + ri32, + ri64 + } +} + +TriggeredReportingCriteria ::= SEQUENCE { + cellChange BOOLEAN, + reportingDuration ReportingDuration, + ... +} + +ReportingDuration ::= INTEGER (0..255) + +AdditionalInformation ::= ENUMERATED { + onlyReturnInformationRequested, + mayReturnAdditionalInformation, + ... + } + +QoS ::= SEQUENCE { + horizontalAccuracy HorizontalAccuracy OPTIONAL, -- Need ON + verticalCoordinateRequest BOOLEAN, + verticalAccuracy VerticalAccuracy OPTIONAL, -- Need ON + responseTime ResponseTime OPTIONAL, -- Need ON + velocityRequest BOOLEAN, + ..., + [[ + responseTimeNB-r14 ResponseTimeNB-r14 OPTIONAL -- Need ON + ]], + [[ + horizontalAccuracyExt-r15 HorizontalAccuracyExt-r15 OPTIONAL, -- Need ON + verticalAccuracyExt-r15 VerticalAccuracyExt-r15 OPTIONAL -- Need ON + ]] +} + +HorizontalAccuracy ::= SEQUENCE { + accuracy INTEGER (0..127), + confidence INTEGER (0..100), + ... +} + +VerticalAccuracy ::= SEQUENCE { + accuracy INTEGER (0..127), + confidence INTEGER (0..100), + ... +} + +HorizontalAccuracyExt-r15 ::= SEQUENCE { + accuracyExt-r15 INTEGER (0..255), + confidence-r15 INTEGER (0..100), + ... +} + +VerticalAccuracyExt-r15 ::= SEQUENCE { + accuracyExt-r15 INTEGER (0..255), + confidence-r15 INTEGER (0..100), + ... +} + +ResponseTime ::= SEQUENCE { + time INTEGER (1..128), + ..., + [[ + responseTimeEarlyFix-r12 INTEGER (1..128) OPTIONAL -- Need ON + ]], + [[ + unit-r15 ENUMERATED { + ten-seconds, + ..., + ten-milli-seconds-v1700 + } OPTIONAL -- Need ON + ]] +} + +ResponseTimeNB-r14 ::= SEQUENCE { + timeNB-r14 INTEGER (1..512), + responseTimeEarlyFixNB-r14 INTEGER (1..512) OPTIONAL, -- Need ON + ..., + [[ + unitNB-r15 ENUMERATED { + ten-seconds, + ... + } OPTIONAL -- Need ON + ]] +} + +Environment ::= ENUMERATED { + badArea, + notBadArea, + mixedArea, + ... + } + +MessageSizeLimitNB-r14 ::= SEQUENCE { + measurementLimit-r14 INTEGER (1..512) OPTIONAL, -- Need ON + ... +} + +ScheduledLocationTime-r17 ::= SEQUENCE { + utcTime-r17 UTCTime OPTIONAL, -- Need ON + gnssTime-r17 SEQUENCE { + gnss-TOD-msec-r17 INTEGER (0..3599999), + gnss-TimeID-r17 GNSS-ID + } OPTIONAL, -- Need ON + networkTime-r17 CHOICE { + e-utraTime-r17 SEQUENCE { + lte-PhysCellId-r17 INTEGER (0..503), + lte-ArfcnEUTRA-r17 ARFCN-ValueEUTRA, + lte-CellGlobalId-r17 CellGlobalIdEUTRA-AndUTRA OPTIONAL, -- Need ON + lte-SystemFrameNumber-r17 INTEGER (0..1023) + }, + nrTime-r17 SEQUENCE { + nr-PhysCellID-r17 NR-PhysCellID-r16, + nr-ARFCN-r17 ARFCN-ValueNR-r15, + nr-CellGlobalID-r17 NCGI-r15 OPTIONAL, -- Need ON + nr-SFN-r17 INTEGER (0..1023), + nr-Slot-r17 CHOICE { + scs15-r17 INTEGER (0..9), + scs30-r17 INTEGER (0..19), + scs60-r17 INTEGER (0..39), + scs120-r17 INTEGER (0..79) + } OPTIONAL -- Need ON + }, + ... + } OPTIONAL, -- Need ON + relativeTime-r17 INTEGER (1..1024) OPTIONAL -- Need ON +} + +TargetIntegrityRisk-r17 ::= INTEGER (10..90) + +CommonIEsProvideLocationInformation ::= SEQUENCE { + locationEstimate LocationCoordinates OPTIONAL, + velocityEstimate Velocity OPTIONAL, + locationError LocationError OPTIONAL, + ..., + [[ + earlyFixReport-r12 EarlyFixReport-r12 OPTIONAL + ]], + [[ + locationSource-r13 LocationSource-r13 OPTIONAL, + locationTimestamp-r13 UTCTime OPTIONAL + ]], + [[ + segmentationInfo-r14 SegmentationInfo-r14 OPTIONAL -- Cond Segmentation + ]], + [[ + integrityInfo-r17 IntegrityInfo-r17 OPTIONAL + ]] +} + +LocationCoordinates ::= CHOICE { + ellipsoidPoint Ellipsoid-Point, + ellipsoidPointWithUncertaintyCircle Ellipsoid-PointWithUncertaintyCircle, + ellipsoidPointWithUncertaintyEllipse EllipsoidPointWithUncertaintyEllipse, + polygon Polygon, + ellipsoidPointWithAltitude EllipsoidPointWithAltitude, + ellipsoidPointWithAltitudeAndUncertaintyEllipsoid EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, + ellipsoidArc EllipsoidArc, + ..., + highAccuracyEllipsoidPointWithUncertaintyEllipse-v1510 HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15, + highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-v1510 HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15, + ha-EllipsoidPointWithScalableUncertaintyEllipse-v1680 HA-EllipsoidPointWithScalableUncertaintyEllipse-r16, + ha-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-v1680 HA-EllipsoidPointWithAltitudeAndScalableUncertaintyEllipsoid-r16, + local2dPointWithUncertaintyEllipse-v1800 Local2dPointWithUncertaintyEllipse-r18, + local3dPointWithUncertaintyEllipsoid-v1800 Local3dPointWithUncertaintyEllipsoid-r18 +} + +Velocity ::= CHOICE { + horizontalVelocity HorizontalVelocity, + horizontalWithVerticalVelocity HorizontalWithVerticalVelocity, + horizontalVelocityWithUncertainty HorizontalVelocityWithUncertainty, + horizontalWithVerticalVelocityAndUncertainty HorizontalWithVerticalVelocityAndUncertainty, + ... +} + +LocationError ::= SEQUENCE { + locationfailurecause LocationFailureCause, + ... +} + +LocationFailureCause ::= ENUMERATED { + undefined, + requestedMethodNotSupported, + positionMethodFailure, + periodicLocationMeasurementsNotAvailable, + ... + } + +EarlyFixReport-r12 ::= ENUMERATED { + noMoreMessages, + moreMessagesOnTheWay + } + +LocationSource-r13 ::= BIT STRING { + a-gnss (0), + wlan (1), + bt (2), + tbs (3), + sensor (4), + ha-gnss-v1510 (5), + motion-sensor-v1550 (6), + dl-tdoa-r16 (7), + dl-aod-r16 (8) + } (SIZE (1..16)) + +IntegrityInfo-r17 ::= SEQUENCE { + horizontalProtectionLevel-r17 INTEGER (0..50000), + verticalProtectionLevel-r17 INTEGER (0..50000) OPTIONAL, + achievableTargetIntegrityRisk-r17 INTEGER (10..90) OPTIONAL, + ... +} + +CommonIEsAbort ::= SEQUENCE { + abortCause ENUMERATED { + undefined, + stopPeriodicReporting, + targetDeviceAbort, + networkAbort, + ..., + stopPeriodicAssistanceDataDelivery-v1510 + } +} + +CommonIEsError ::= SEQUENCE { + errorCause ENUMERATED { + undefined, + lppMessageHeaderError, + lppMessageBodyError, + epduError, + incorrectDataValue, + ..., + lppSegmentationError-v1450 + } +} + +AreaID-CellList-r17 ::= SEQUENCE (SIZE (1..maxCellIDsPerArea-r17)) OF NR-Cell-IDs-r17 + +NR-Cell-IDs-r17 ::= SEQUENCE { + nr-CellGlobalID-r17 NCGI-r15 OPTIONAL, -- Need ON + nr-PhysCellID-r17 NR-PhysCellID-r16 OPTIONAL, -- Need ON + nr-ARFCN-r17 ARFCN-ValueNR-r15 OPTIONAL, -- Need ON + ... +} + +DL-PRS-ID-Info-r16 ::= SEQUENCE { + dl-PRS-ID-r16 INTEGER (0..255), + nr-DL-PRS-ResourceID-List-r16 SEQUENCE (SIZE (1..nrMaxResourceIDs-r16)) OF NR-DL-PRS-ResourceID-r16 OPTIONAL, -- Need ON + nr-DL-PRS-ResourceSetID-r16 NR-DL-PRS-ResourceSetID-r16 OPTIONAL -- Need ON +} + +LCS-GCS-TranslationParameter-r16 ::= SEQUENCE { + alpha-r16 INTEGER (0..359), + alpha-fine-r16 INTEGER (0..9) OPTIONAL, -- Cond AzElFine + beta-r16 INTEGER (0..359), + beta-fine-r16 INTEGER (0..9) OPTIONAL, -- Cond AzElFine + gamma-r16 INTEGER (0..359), + gamma-fine-r16 INTEGER (0..9) OPTIONAL, -- Cond AzElFine + ... +} + +LocalOrigin-r18 ::= SEQUENCE { + coordinateID-r18 VisibleString (SIZE (1..256)), + point-r18 Ellipsoid-Point OPTIONAL, + ... +} + +LOS-NLOS-Indicator-r17 ::= SEQUENCE { + indicator-r17 CHOICE { + soft-r17 INTEGER (0..10), + hard-r17 BOOLEAN + }, + ... +} + +LOS-NLOS-IndicatorGranularity1-r17 ::= ENUMERATED { + trpspecific, + resourcespecific + } + +LOS-NLOS-IndicatorGranularity2-r17 ::= ENUMERATED { + trpspecific, + resourcespecific, + both + } + +LOS-NLOS-IndicatorType1-r17 ::= ENUMERATED { + hardvalue, + softvalue + } + +LOS-NLOS-IndicatorType2-r17 ::= ENUMERATED { + hardvalue, + hardAndsoftvalue + } + +NR-AdditionalPathList-r16 ::= SEQUENCE (SIZE (1..2)) OF NR-AdditionalPath-r16 + +NR-AdditionalPathListExt-r17 ::= SEQUENCE (SIZE (1..8)) OF NR-AdditionalPath-r16 + +NR-AdditionalPath-r16 ::= SEQUENCE { + nr-RelativeTimeDifference-r16 CHOICE { + k0-r16 INTEGER (0..16351), + k1-r16 INTEGER (0..8176), + k2-r16 INTEGER (0..4088), + k3-r16 INTEGER (0..2044), + k4-r16 INTEGER (0..1022), + k5-r16 INTEGER (0..511), + ..., + kMinus6-r18 INTEGER (0..1046401), + kMinus5-r18 INTEGER (0..523201), + kMinus4-r18 INTEGER (0..261601), + kMinus3-r18 INTEGER (0..130801), + kMinus2-r18 INTEGER (0..65401), + kMinus1-r18 INTEGER (0..32701) + }, + nr-PathQuality-r16 NR-TimingQuality-r16 OPTIONAL, + ..., + [[ + nr-DL-PRS-RSRPP-r17 INTEGER (0..126) OPTIONAL + ]] +} + +NR-AggregatedDL-PRS-ResourceSetID-Element-r18 ::= SEQUENCE { + dl-PRS-ID-r18 INTEGER (0..255), + nr-DL-PRS-ResourceSetID-r18 NR-DL-PRS-ResourceSetID-r16, + ... +} + +NR-DL-PRS-AssistanceData-r16 ::= SEQUENCE { + nr-DL-PRS-ReferenceInfo-r16 DL-PRS-ID-Info-r16, + nr-DL-PRS-AssistanceDataList-r16 SEQUENCE (SIZE (1..nrMaxFreqLayers-r16)) OF NR-DL-PRS-AssistanceDataPerFreq-r16, + nr-SSB-Config-r16 SEQUENCE (SIZE (1..nrMaxTRPs-r16)) OF NR-SSB-Config-r16 OPTIONAL, -- Need ON + ..., + [[ + nr-DL-PRS-AggregationInfo-r18 NR-DL-PRS-AggregationInfo-r18 OPTIONAL -- Need ON + ]] +} + +NR-DL-PRS-AssistanceDataPerFreq-r16 ::= SEQUENCE { + nr-DL-PRS-PositioningFrequencyLayer-r16 NR-DL-PRS-PositioningFrequencyLayer-r16, + nr-DL-PRS-AssistanceDataPerFreq-r16 SEQUENCE (SIZE (1..nrMaxTRPsPerFreq-r16)) OF NR-DL-PRS-AssistanceDataPerTRP-r16, + ... +} + +NR-DL-PRS-AssistanceDataPerTRP-r16 ::= SEQUENCE { + dl-PRS-ID-r16 INTEGER (0..255), + nr-PhysCellID-r16 NR-PhysCellID-r16 OPTIONAL, -- Need ON + nr-CellGlobalID-r16 NCGI-r15 OPTIONAL, -- Need ON + nr-ARFCN-r16 ARFCN-ValueNR-r15 OPTIONAL, -- Need ON + nr-DL-PRS-SFN0-Offset-r16 NR-DL-PRS-SFN0-Offset-r16, + nr-DL-PRS-ExpectedRSTD-r16 INTEGER (-3841..3841), + nr-DL-PRS-ExpectedRSTD-Uncertainty-r16 INTEGER (0..246), + nr-DL-PRS-Info-r16 NR-DL-PRS-Info-r16, + ..., + [[ + prs-OnlyTP-r16 ENUMERATED {true} OPTIONAL -- Need ON + ]], + [[ + nr-DL-PRS-ExpectedAoD-or-AoA-r17 NR-DL-PRS-ExpectedAoD-or-AoA-r17 OPTIONAL -- Need ON + ]] +} + +NR-DL-PRS-PositioningFrequencyLayer-r16 ::= SEQUENCE { + dl-PRS-SubcarrierSpacing-r16 ENUMERATED { + kHz15, + kHz30, + kHz60, + kHz120, + ... + }, + dl-PRS-ResourceBandwidth-r16 INTEGER (1..63), + dl-PRS-StartPRB-r16 INTEGER (0..2176), + dl-PRS-PointA-r16 ARFCN-ValueNR-r15, + dl-PRS-CombSizeN-r16 ENUMERATED { + n2, + n4, + n6, + n12, + ... + }, + dl-PRS-CyclicPrefix-r16 ENUMERATED { + normal, + extended, + ... + }, + ... +} + +NR-DL-PRS-SFN0-Offset-r16 ::= SEQUENCE { + sfn-Offset-r16 INTEGER (0..1023), + integerSubframeOffset-r16 INTEGER (0..9), + ... +} + +NR-DL-PRS-ExpectedAoD-or-AoA-r17 ::= CHOICE { + expectedAoD-r17 SEQUENCE { + expectedDL-AzimuthAoD-r17 INTEGER (0..359), + expectedDL-AzimuthAoD-Unc-r17 INTEGER (0..60) OPTIONAL, -- Need OP + expectedDL-ZenithAoD-r17 INTEGER (0..180), + expectedDL-ZenithAoD-Unc-r17 INTEGER (0..30) OPTIONAL -- Need OP + }, + expectedAoA-r17 SEQUENCE { + expectedDL-AzimuthAoA-r17 INTEGER (0..359), + expectedDL-AzimuthAoA-Unc-r17 INTEGER (0..60) OPTIONAL, -- Need OP + expectedDL-ZenithAoA-r17 INTEGER (0..180), + expectedDL-ZenithAoA-Unc-r17 INTEGER (0..30) OPTIONAL -- Need OP + } +} + +NR-DL-PRS-AggregationInfo-r18 ::= SEQUENCE (SIZE (1..nrMaxNumPRS-BandWidthAggregation-r18)) OF NR-linkedDL-PRS-ResourceSetID-PRS-AggregationList-r18 + +NR-linkedDL-PRS-ResourceSetID-PRS-AggregationList-r18 ::= SEQUENCE (SIZE (2..3)) OF NR-DL-PRS-AggregationElement-r18 + +NR-DL-PRS-AggregationElement-r18 ::= SEQUENCE { + nr-DL-PRS-FrequencyLayerIndex-r18 INTEGER (0..nrMaxFreqLayers-1-r16), + nr-DL-PRS-TRP-Index-r18 INTEGER (0..nrMaxTRPsPerFreq-1-r16), + nr-DL-PRS-ResourceSetIndex-r18 INTEGER (0..nrMaxSetsPerTrpPerFreqLayer-1-r16) +} + +NR-DL-PRS-BeamInfo-r16 ::= SEQUENCE (SIZE (1..nrMaxFreqLayers-r16)) OF NR-DL-PRS-BeamInfoPerFreqLayer-r16 + +NR-DL-PRS-BeamInfoPerFreqLayer-r16 ::= SEQUENCE (SIZE (1..nrMaxTRPsPerFreq-r16)) OF NR-DL-PRS-BeamInfoPerTRP-r16 + +NR-DL-PRS-BeamInfoPerTRP-r16 ::= SEQUENCE { + dl-PRS-ID-r16 INTEGER (0..255), + nr-PhysCellID-r16 NR-PhysCellID-r16 OPTIONAL, -- Need ON + nr-CellGlobalID-r16 NCGI-r15 OPTIONAL, -- Need ON + nr-ARFCN-r16 ARFCN-ValueNR-r15 OPTIONAL, -- Need ON + associated-DL-PRS-ID-r16 INTEGER (0..255) OPTIONAL, -- Need OP + lcs-GCS-TranslationParameter-r16 LCS-GCS-TranslationParameter-r16 OPTIONAL, -- Need OP + dl-PRS-BeamInfoSet-r16 DL-PRS-BeamInfoSet-r16 OPTIONAL, -- Need OP + ... +} + +DL-PRS-BeamInfoSet-r16 ::= SEQUENCE (SIZE (1..nrMaxSetsPerTrpPerFreqLayer-r16)) OF DL-PRS-BeamInfoResourceSet-r16 + +DL-PRS-BeamInfoResourceSet-r16 ::= SEQUENCE (SIZE (1..nrMaxResourcesPerSet-r16)) OF DL-PRS-BeamInfoElement-r16 + +DL-PRS-BeamInfoElement-r16 ::= SEQUENCE { + dl-PRS-Azimuth-r16 INTEGER (0..359), + dl-PRS-Azimuth-fine-r16 INTEGER (0..9) OPTIONAL, -- Need ON + dl-PRS-Elevation-r16 INTEGER (0..180) OPTIONAL, -- Need ON + dl-PRS-Elevation-fine-r16 INTEGER (0..9) OPTIONAL, -- Need ON + ..., + [[ + nr-IntegrityBeamInfoBounds-r18 NR-IntegrityBeamInfoBounds-r18 OPTIONAL -- Need OP + ]] +} + +NR-IntegrityBeamInfoBounds-r18 ::= SEQUENCE { + meanAzimuth-r18 INTEGER (0..255), + stdDevAzimuth-r18 INTEGER (0..255), + meanElevation-r18 INTEGER (0..255), + stdDevElevation-r18 INTEGER (0..255), + ... +} + +NR-DL-PRS-ExpectedLOS-NLOS-Assistance-r17 ::= SEQUENCE (SIZE (1..nrMaxFreqLayers-r16)) OF NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerFreqLayer-r17 + +NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerFreqLayer-r17 ::= SEQUENCE (SIZE (1..nrMaxTRPsPerFreq-r16)) OF NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerTRP-r17 + +NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerTRP-r17 ::= SEQUENCE { + dl-PRS-ID-r17 INTEGER (0..255), + nr-PhysCellID-r17 NR-PhysCellID-r16 OPTIONAL, -- Need ON + nr-CellGlobalID-r17 NCGI-r15 OPTIONAL, -- Need ON + nr-ARFCN-r17 ARFCN-ValueNR-r15 OPTIONAL, -- Need ON + nr-los-nlos-indicator-r17 CHOICE { + perTrp-r17 LOS-NLOS-Indicator-r17, + perResource-r17 SEQUENCE (SIZE (1..nrMaxSetsPerTrpPerFreqLayer-r16)) OF NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerResource-r17 + }, + ... +} + +NR-DL-PRS-ExpectedLOS-NLOS-AssistancePerResource-r17 ::= SEQUENCE (SIZE (1..nrMaxResourcesPerSet-r16)) OF LOS-NLOS-Indicator-r17 + +NR-DL-PRS-Info-r16 ::= SEQUENCE { + nr-DL-PRS-ResourceSetList-r16 SEQUENCE (SIZE (1..nrMaxSetsPerTrpPerFreqLayer-r16)) OF NR-DL-PRS-ResourceSet-r16, + ... +} + +NR-DL-PRS-ResourceSet-r16 ::= SEQUENCE { + nr-DL-PRS-ResourceSetID-r16 NR-DL-PRS-ResourceSetID-r16, + dl-PRS-Periodicity-and-ResourceSetSlotOffset-r16 NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16, + dl-PRS-ResourceRepetitionFactor-r16 ENUMERATED { + n2, + n4, + n6, + n8, + n16, + n32, + ... + } OPTIONAL, -- Need OP + dl-PRS-ResourceTimeGap-r16 ENUMERATED { + s1, + s2, + s4, + s8, + s16, + s32, + ... + } OPTIONAL, -- Cond Rep + dl-PRS-NumSymbols-r16 ENUMERATED { + n2, + n4, + n6, + n12, + ..., + n1-v1800 + }, + dl-PRS-MutingOption1-r16 DL-PRS-MutingOption1-r16 OPTIONAL, -- Need OP + dl-PRS-MutingOption2-r16 DL-PRS-MutingOption2-r16 OPTIONAL, -- Need OP + dl-PRS-ResourcePower-r16 INTEGER (-60..50), + dl-PRS-ResourceList-r16 SEQUENCE (SIZE (1..nrMaxResourcesPerSet-r16)) OF NR-DL-PRS-Resource-r16, + ... +} + +DL-PRS-MutingOption1-r16 ::= SEQUENCE { + dl-prs-MutingBitRepetitionFactor-r16 ENUMERATED { + n1, + n2, + n4, + n8, + ... + } OPTIONAL, -- Need OP + nr-option1-muting-r16 NR-MutingPattern-r16, + ... +} + +DL-PRS-MutingOption2-r16 ::= SEQUENCE { + nr-option2-muting-r16 NR-MutingPattern-r16, + ... +} + +NR-MutingPattern-r16 ::= CHOICE { + po2-r16 BIT STRING (SIZE (2)), + po4-r16 BIT STRING (SIZE (4)), + po6-r16 BIT STRING (SIZE (6)), + po8-r16 BIT STRING (SIZE (8)), + po16-r16 BIT STRING (SIZE (16)), + po32-r16 BIT STRING (SIZE (32)), + ... +} + +NR-DL-PRS-Resource-r16 ::= SEQUENCE { + nr-DL-PRS-ResourceID-r16 NR-DL-PRS-ResourceID-r16, + dl-PRS-SequenceID-r16 INTEGER (0..4095), + dl-PRS-CombSizeN-AndReOffset-r16 CHOICE { + n2-r16 INTEGER (0..1), + n4-r16 INTEGER (0..3), + n6-r16 INTEGER (0..5), + n12-r16 INTEGER (0..11), + ... + }, + dl-PRS-ResourceSlotOffset-r16 INTEGER (0..nrMaxResourceOffsetValue-1-r16), + dl-PRS-ResourceSymbolOffset-r16 INTEGER (0..12), + dl-PRS-QCL-Info-r16 DL-PRS-QCL-Info-r16 OPTIONAL, --Need ON + ..., + [[ + dl-PRS-ResourcePrioritySubset-r17 DL-PRS-ResourcePrioritySubset-r17 OPTIONAL -- Need ON + ]], + [[ + dl-PRS-ResourceSymbolOffset-v1800 INTEGER (13) OPTIONAL -- Need OR + ]] +} + +DL-PRS-QCL-Info-r16 ::= CHOICE { + ssb-r16 SEQUENCE { + pci-r16 NR-PhysCellID-r16, + ssb-Index-r16 INTEGER (0..63), + rs-Type-r16 ENUMERATED { + typeC, + typeD, + typeC-plus-typeD + } + }, + dl-PRS-r16 SEQUENCE { + qcl-DL-PRS-ResourceID-r16 NR-DL-PRS-ResourceID-r16, + qcl-DL-PRS-ResourceSetID-r16 NR-DL-PRS-ResourceSetID-r16 + } +} + +NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16 ::= CHOICE { + scs15-r16 CHOICE { + n4-r16 INTEGER (0..3), + n5-r16 INTEGER (0..4), + n8-r16 INTEGER (0..7), + n10-r16 INTEGER (0..9), + n16-r16 INTEGER (0..15), + n20-r16 INTEGER (0..19), + n32-r16 INTEGER (0..31), + n40-r16 INTEGER (0..39), + n64-r16 INTEGER (0..63), + n80-r16 INTEGER (0..79), + n160-r16 INTEGER (0..159), + n320-r16 INTEGER (0..319), + n640-r16 INTEGER (0..639), + n1280-r16 INTEGER (0..1279), + n2560-r16 INTEGER (0..2559), + n5120-r16 INTEGER (0..5119), + n10240-r16 INTEGER (0..10239), + ... + }, + scs30-r16 CHOICE { + n8-r16 INTEGER (0..7), + n10-r16 INTEGER (0..9), + n16-r16 INTEGER (0..15), + n20-r16 INTEGER (0..19), + n32-r16 INTEGER (0..31), + n40-r16 INTEGER (0..39), + n64-r16 INTEGER (0..63), + n80-r16 INTEGER (0..79), + n128-r16 INTEGER (0..127), + n160-r16 INTEGER (0..159), + n320-r16 INTEGER (0..319), + n640-r16 INTEGER (0..639), + n1280-r16 INTEGER (0..1279), + n2560-r16 INTEGER (0..2559), + n5120-r16 INTEGER (0..5119), + n10240-r16 INTEGER (0..10239), + n20480-r16 INTEGER (0..20479), + ... + }, + scs60-r16 CHOICE { + n16-r16 INTEGER (0..15), + n20-r16 INTEGER (0..19), + n32-r16 INTEGER (0..31), + n40-r16 INTEGER (0..39), + n64-r16 INTEGER (0..63), + n80-r16 INTEGER (0..79), + n128-r16 INTEGER (0..127), + n160-r16 INTEGER (0..159), + n256-r16 INTEGER (0..255), + n320-r16 INTEGER (0..319), + n640-r16 INTEGER (0..639), + n1280-r16 INTEGER (0..1279), + n2560-r16 INTEGER (0..2559), + n5120-r16 INTEGER (0..5119), + n10240-r16 INTEGER (0..10239), + n20480-r16 INTEGER (0..20479), + n40960-r16 INTEGER (0..40959), + ... + }, + scs120-r16 CHOICE { + n32-r16 INTEGER (0..31), + n40-r16 INTEGER (0..39), + n64-r16 INTEGER (0..63), + n80-r16 INTEGER (0..79), + n128-r16 INTEGER (0..127), + n160-r16 INTEGER (0..159), + n256-r16 INTEGER (0..255), + n320-r16 INTEGER (0..319), + n512-r16 INTEGER (0..511), + n640-r16 INTEGER (0..639), + n1280-r16 INTEGER (0..1279), + n2560-r16 INTEGER (0..2559), + n5120-r16 INTEGER (0..5119), + n10240-r16 INTEGER (0..10239), + n20480-r16 INTEGER (0..20479), + n40960-r16 INTEGER (0..40959), + n81920-r16 INTEGER (0..81919), + ... + }, + ... +} + +DL-PRS-ResourcePrioritySubset-r17 ::= SEQUENCE (SIZE (1..maxNumPrioResources-r17)) OF NR-DL-PRSResourcePriorityItem-r17 + +NR-DL-PRSResourcePriorityItem-r17 ::= SEQUENCE { + nr-DL-PRS-PrioResourceSetID-r17 NR-DL-PRS-ResourceSetID-r16 OPTIONAL, -- Cond NotSame + nr-DL-PRS-PrioResourceID-r17 NR-DL-PRS-ResourceID-r16, + ... +} + +NR-DL-PRS-MeasurementTimeWindowsConfig-r18 ::= SEQUENCE (SIZE (1..2)) OF NR-DL-PRS-MeasurementTimeWindowsConfigElement-r18 + +NR-DL-PRS-MeasurementTimeWindowsConfigElement-r18 ::= SEQUENCE { + nr-StartSFN-TimeWindow-r18 INTEGER (0..1023), + nr-PeriodicityAndSlotOffsetTimeWindow-r18 NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16 OPTIONAL, -- Need ON + nr-SymbolOffsetTimeWindow-r18 INTEGER (0..13) OPTIONAL, -- Need ON + nr-DurationTimeWindow-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + ... + }, + nr-SelectedDL-PRS-FrequencyLayerIndex-r18 INTEGER (0..nrMaxFreqLayers-1-r16), + nr-SelectedDL-PRS-IndexListPerFreq-r18 SEQUENCE (SIZE (1..nrMaxTRPsPerFreq-r16)) OF NR-SelectedDL-PRS-IndexPerTRP-r18 OPTIONAL, --Need OP + ... +} + +NR-SelectedDL-PRS-IndexPerTRP-r18 ::= SEQUENCE { + nr-SelectedTRP-Index-r18 INTEGER (0..nrMaxTRPsPerFreq-1-r16), + dl-SelectedPRS-ResourceSetIndexList-r18 SEQUENCE (SIZE (1..nrMaxSetsPerTrpPerFreqLayer-r16)) OF INTEGER (0..nrMaxSetsPerTrpPerFreqLayer-1-r16) OPTIONAL, --Need OP + ... +} + +NR-DL-PRS-ProcessingCapability-r16 ::= SEQUENCE { + prs-ProcessingCapabilityBandList-r16 SEQUENCE (SIZE (1..nrMaxBands-r16)) OF PRS-ProcessingCapabilityPerBand-r16, + maxSupportedFreqLayers-r16 INTEGER (1..4), + simulLTE-NR-PRS-r16 ENUMERATED {supported} OPTIONAL, + ..., + [[ + dummy ENUMERATED { + m1, + m2, + ... + } OPTIONAL + ]] +} + +PRS-ProcessingCapabilityPerBand-r16 ::= SEQUENCE { + freqBandIndicatorNR-r16 FreqBandIndicatorNR-r16, + supportedBandwidthPRS-r16 CHOICE { + fr1 ENUMERATED { + mhz5, + mhz10, + mhz20, + mhz40, + mhz50, + mhz80, + mhz100 + }, + fr2 ENUMERATED { + mhz50, + mhz100, + mhz200, + mhz400 + }, + ... + }, + dl-PRS-BufferType-r16 ENUMERATED { + type1, + type2, + ... + }, + durationOfPRS-Processing-r16 SEQUENCE { + durationOfPRS-ProcessingSymbols-r16 ENUMERATED { + nDot125, + nDot25, + nDot5, + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n20, + n25, + n30, + n32, + n35, + n40, + n45, + n50 + }, + durationOfPRS-ProcessingSymbolsInEveryTms-r16 ENUMERATED { + n8, + n16, + n20, + n30, + n40, + n80, + n160, + n320, + n640, + n1280 + }, + ... + }, + maxNumOfDL-PRS-ResProcessedPerSlot-r16 SEQUENCE { + scs15-r16 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs30-r16 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs60-r16 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs120-r16 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + ..., + [[ + scs15-v1690 ENUMERATED { + n6, + n12 + } OPTIONAL, + scs30-v1690 ENUMERATED { + n6, + n12 + } OPTIONAL, + scs60-v1690 ENUMERATED { + n6, + n12 + } OPTIONAL, + scs120-v1690 ENUMERATED { + n6, + n12 + } OPTIONAL + ]] + }, + ..., + [[ + supportedDL-PRS-ProcessingSamples-RRC-CONNECTED-r17 ENUMERATED {supported} OPTIONAL, + prs-ProcessingWindowType1A-r17 ENUMERATED { + option1, + option2, + option3 + } OPTIONAL, + prs-ProcessingWindowType1B-r17 ENUMERATED { + option1, + option2, + option3 + } OPTIONAL, + prs-ProcessingWindowType2-r17 ENUMERATED { + option1, + option2, + option3 + } OPTIONAL, + prs-ProcessingCapabilityOutsideMGinPPW-r17 SEQUENCE (SIZE (1..3)) OF PRS-ProcessingCapabilityOutsideMGinPPWperType-r17 OPTIONAL, + dl-PRS-BufferType-RRC-Inactive-r17 ENUMERATED { + type1, + type2, + ... + } OPTIONAL, + durationOfPRS-Processing-RRC-Inactive-r17 SEQUENCE { + durationOfPRS-ProcessingSymbols-r17 ENUMERATED { + nDot125, + nDot25, + nDot5, + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n20, + n25, + n30, + n32, + n35, + n40, + n45, + n50 + }, + durationOfPRS-ProcessingSymbolsInEveryTms-r17 ENUMERATED { + n8, + n16, + n20, + n30, + n40, + n80, + n160, + n320, + n640, + n1280 + }, + ... + } OPTIONAL, + maxNumOfDL-PRS-ResProcessedPerSlot-RRC-Inactive-r17 SEQUENCE { + scs15-r17 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs30-r17 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs60-r17 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs120-r17 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + ... + } OPTIONAL, + supportedLowerRxBeamSweepingFactor-FR2-r17 ENUMERATED { + n1, + n2, + n4, + n6 + } OPTIONAL + ]], + [[ + supportedDL-PRS-ProcessingSamples-RRC-Inactive-r17 ENUMERATED {supported} OPTIONAL + ]], + [[ + prs-MeasurementWithoutMG-r17 ENUMERATED { + cp, + symbolDot25, + symbolDot5, + slotDot5 + } OPTIONAL + ]], + [[ + maxNumOfOneSymbolPRS-ResProcessedPerSlot-RRC-Inactive-r18 SEQUENCE { + scs15-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs30-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs60-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs120-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + ... + } OPTIONAL, + maxNumOfOneSymbolPRS-ResProcessedPerSlot-RRC-Connected-r18 SEQUENCE { + scs15-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs30-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs60-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs120-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + ... + } OPTIONAL, + ppw-maxNumOfOneSymbolPRS-ResProcessedPerSlot-r18 SEQUENCE { + scs15-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs30-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs60-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs120-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + ... + } OPTIONAL, + prs-BWA-TwoContiguousIntrabandInMG-RRC-Connected-r18 PRS-BWA-TwoContiguousIntrabandInMG-r18 OPTIONAL, + prs-BWA-ThreeContiguousIntrabandInMG-RRC-Connected-r18 PRS-BWA-ThreeContiguousIntrabandInMG-r18 OPTIONAL, + prs-BWA-TwoContiguousIntrabandInMG-RRC-IdleAndInactive-r18 PRS-BWA-TwoContiguousIntrabandInMG-r18 OPTIONAL, + prs-BWA-ThreeContiguousIntrabandInMG-RRC-IdleAndInactive-r18 PRS-BWA-ThreeContiguousIntrabandInMG-r18 OPTIONAL, + reducedNumOfSampleInMeasurementWithPRS-BWA-RRC-Connected-r18 ENUMERATED {supported} OPTIONAL, + reducedNumOfSampleInMeasurementWithPRS-BWA-RRC-IdleAndInactive-r18 ENUMERATED {supported} OPTIONAL, + dl-PRS-MeasurementWithRxFH-RRC-Inactive-r18 ENUMERATED {supported} OPTIONAL, + dl-PRS-MeasurementWithRxFH-RRC-Idle-r18 ENUMERATED {supported} OPTIONAL, + reducedNumOfSampleForMeasurementWithFH-RRC-Connected-r18 ENUMERATED {supported} OPTIONAL, + reducedNumOfSampleForMeasurementWithFH-RRC-IdleAndInactive-r18 ENUMERATED {supported} OPTIONAL, + supportOfPRS-BWA-WithTwoPFL-Combination-r18 ENUMERATED {supported} OPTIONAL, + dl-PRS-MeasurementWithRxFH-RRC-Connected-r18 DL-PRS-MeasurementWithRxFH-RRC-Connected-r18 OPTIONAL, + supportOfPRS-MeasurementRRC-Idle-r18 ENUMERATED {supported} OPTIONAL + ]] +} + +PRS-ProcessingCapabilityOutsideMGinPPWperType-r17 ::= SEQUENCE { + prsProcessingType-r17 ENUMERATED { + type1A, + type1B, + type2 + }, + ppw-dl-PRS-BufferType-r17 ENUMERATED { + type1, + type2, + ... + }, + ppw-durationOfPRS-Processing1-r17 SEQUENCE { + ppw-durationOfPRS-ProcessingSymbolsN-r17 ENUMERATED { + msDot125, + msDot25, + msDot5, + ms1, + ms2, + ms4, + ms6, + ms8, + ms12, + ms16, + ms20, + ms25, + ms30, + ms32, + ms35, + ms40, + ms45, + ms50 + }, + ppw-durationOfPRS-ProcessingSymbolsT-r17 ENUMERATED { + ms1, + ms2, + ms4, + ms8, + ms16, + ms20, + ms30, + ms40, + ms80, + ms160, + ms320, + ms640, + ms1280 + } + } OPTIONAL, + ppw-durationOfPRS-Processing2-r17 SEQUENCE { + ppw-durationOfPRS-ProcessingSymbolsN2-r17 ENUMERATED { + msDot125, + msDot25, + msDot5, + ms1, + ms2, + ms3, + ms4, + ms5, + ms6, + ms8, + ms12 + }, + ppw-durationOfPRS-ProcessingSymbolsT2-r17 ENUMERATED { + ms4, + ms5, + ms6, + ms8 + } + } OPTIONAL, + ppw-maxNumOfDL-PRS-ResProcessedPerSlot-r17 SEQUENCE { + scs15-r17 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs30-r17 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs60-r17 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs120-r17 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + ... + }, + ..., + [[ + ppw-maxNumOfDL-Bandwidth-r17 CHOICE { + fr1 ENUMERATED { + mhz5, + mhz10, + mhz20, + mhz40, + mhz50, + mhz80, + mhz100 + }, + fr2 ENUMERATED { + mhz50, + mhz100, + mhz200, + mhz400 + } + } OPTIONAL + ]] +} + +PRS-BWA-TwoContiguousIntrabandInMG-r18 ::= SEQUENCE { + maximumOfTwoAggregatedDL-PRS-Bandwidth-FR1-r18 ENUMERATED { + mhz10, + mhz20, + mhz40, + mhz50, + mhz80, + mhz100, + mhz160, + mhz200 + } OPTIONAL, + maximumOfTwoAggregatedDL-PRS-Bandwidth-FR2-r18 ENUMERATED { + mhz100, + mhz200, + mhz400, + mhz800 + } OPTIONAL, + maximumOfDL-PRS-BandwidthPerPFL-FR1-r18 ENUMERATED { + mhz5, + mhz10, + mhz20, + mhz40, + mhz50, + mhz80, + mhz100 + } OPTIONAL, + maximumOfDL-PRS-BandwidthPerPFL-FR2-r18 ENUMERATED { + mhz50, + mhz100, + mhz200, + mhz400 + } OPTIONAL, + dl-PRS-BufferTypeOfBWA-r18 ENUMERATED { + type1, + type2 + }, + prs-durationOfTwoPRS-BWA-Processing-r18 SEQUENCE { + prs-durationOfTwoPRS-BWA-ProcessingSymbolsN-r18 ENUMERATED { + msDot125, + msDot25, + msDot5, + ms1, + ms2, + ms4, + ms6, + ms8, + ms12, + ms16, + ms20, + ms25, + ms30, + ms32, + ms35, + ms40, + ms45, + ms50 + }, + prs-durationOfTwoPRS-BWA-ProcessingSymbolsT-r18 ENUMERATED { + ms8, + ms16, + ms20, + ms30, + ms40, + ms80, + ms160, + ms320, + ms640, + ms1280 + } + } OPTIONAL, + maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR1-r18 SEQUENCE { + scs15-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs30-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs60-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL + }, + maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR2-r18 SEQUENCE { + scs60-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs120-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL + } +} + +PRS-BWA-ThreeContiguousIntrabandInMG-r18 ::= SEQUENCE { + maximumOfThreeAggregatedDL-PRS-Bandwidth-FR1-r18 ENUMERATED { + mhz15, + mhz20, + mhz30, + mhz40, + mhz50, + mhz60, + mhz80, + mhz100, + mhz120, + mhz140, + mhz150, + mhz180, + mhz200, + mhz240, + mhz300 + } OPTIONAL, + maximumOfThreeAggregatedDL-PRS-Bandwidth-FR2-r18 ENUMERATED { + mhz150, + mhz200, + mhz300, + mhz400, + mhz600, + mhz800, + mhz1000, + mhz1200 + } OPTIONAL, + maximumOfDL-PRS-BandwidthPerPFL-FR1-r18 ENUMERATED { + mhz5, + mhz10, + mhz20, + mhz40, + mhz50, + mhz80, + mhz100 + } OPTIONAL, + maximumOfDL-PRS-BandwidthPerPFL-FR2-r18 ENUMERATED { + mhz50, + mhz100, + mhz200, + mhz400 + } OPTIONAL, + dl-PRS-BufferTypeOfBWA-r18 ENUMERATED { + type1, + type2 + }, + prs-durationOfThreePRS-BWA-Processing-r18 SEQUENCE { + prs-durationOfThreePRS-BWA-ProcessingSymbolsN-r18 ENUMERATED { + msDot125, + msDot25, + msDot5, + ms1, + ms2, + ms4, + ms6, + ms8, + ms12, + ms16, + ms20, + ms25, + ms30, + ms32, + ms35, + ms40, + ms45, + ms50 + }, + prs-durationOfThreePRS-BWA-ProcessingSymbolsT-r18 ENUMERATED { + ms8, + ms16, + ms20, + ms30, + ms40, + ms80, + ms160, + ms320, + ms640, + ms1280 + } + } OPTIONAL, + maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR1-r18 SEQUENCE { + scs15-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs30-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs60-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL + }, + maxNumOfAggregatedDL-PRS-ResourcePerSlot-FR2-r18 SEQUENCE { + scs60-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL, + scs120-r18 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n48, + n64 + } OPTIONAL + } +} + +DL-PRS-MeasurementWithRxFH-RRC-Connected-r18 ::= SEQUENCE { + maximumPRS-BandwidthAcrossAllHopsFR1-r18 ENUMERATED { + mhz40, + mhz50, + mhz80, + mhz100 + } OPTIONAL, + maximumPRS-BandwidthAcrossAllHopsFR2-r18 ENUMERATED { + mhz100, + mhz200, + mhz400 + } OPTIONAL, + maximumFH-Hops-r18 ENUMERATED { + n2, + n3, + n4, + n5, + n6 + } OPTIONAL, + processingDuration-r18 SEQUENCE { + processingPRS-SymbolsDurationN3-r18 ENUMERATED { + msDot125, + msDot25, + msDot5, + ms1, + ms2, + ms4, + ms6, + ms8, + ms12, + ms16, + ms20, + ms25, + ms30, + ms32, + ms35, + ms40, + ms45, + ms50 + }, + processingDurationT3-r18 ENUMERATED { + ms8, + ms16, + ms20, + ms30, + ms40, + ms80, + ms160, + ms320, + ms640, + ms1280 + } + } OPTIONAL, + rf-RxRetunTimeFR1-r18 ENUMERATED { + n70, + n140, + n210 + } OPTIONAL, + rf-RxRetunTimeFR2-r18 ENUMERATED { + n35, + n70, + n140 + } OPTIONAL, + numOfOverlappingPRB-r18 ENUMERATED { + n0, + n1, + n2, + n4 + } OPTIONAL, + ... +} + +NR-DL-PRS-QCL-ProcessingCapability-r16 ::= SEQUENCE { + dl-PRS-QCL-ProcessingCapabilityBandList-r16 SEQUENCE (SIZE (1..nrMaxBands-r16)) OF DL-PRS-QCL-ProcessingCapabilityPerBand-r16, + ... +} + +DL-PRS-QCL-ProcessingCapabilityPerBand-r16 ::= SEQUENCE { + freqBandIndicatorNR-r16 FreqBandIndicatorNR-r16, + ssb-FromNeighCellAsQCL-r16 ENUMERATED {supported} OPTIONAL, + prs-FromServNeighCellAsQCL-r16 ENUMERATED {supported} OPTIONAL, + ... +} + +NR-DL-PRS-ResourceID-r16 ::= INTEGER (0..nrMaxNumDL-PRS-ResourcesPerSet-1-r16) + +NR-DL-PRS-ResourcesCapability-r16 ::= SEQUENCE { + maxNrOfDL-PRS-ResourceSetPerTrpPerFrequencyLayer-r16 INTEGER (1..2), + maxNrOfTRP-AcrossFreqs-r16 ENUMERATED { + n4, + n6, + n12, + n16, + n32, + n64, + n128, + n256, + ..., + n24-v1690 + }, + maxNrOfPosLayer-r16 INTEGER (1..4), + dl-PRS-ResourcesCapabilityBandList-r16 SEQUENCE (SIZE (1..nrMaxBands-r16)) OF DL-PRS-ResourcesCapabilityPerBand-r16, + dl-PRS-ResourcesBandCombinationList-r16 DL-PRS-ResourcesBandCombinationList-r16, + ... +} + +DL-PRS-ResourcesCapabilityPerBand-r16 ::= SEQUENCE { + freqBandIndicatorNR-r16 FreqBandIndicatorNR-r16, + maxNrOfDL-PRS-ResourcesPerResourceSet-r16 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n32, + n64, + ... + }, + maxNrOfDL-PRS-ResourcesPerPositioningFrequencylayer-r16 ENUMERATED { + n6, + n24, + n32, + n64, + n96, + n128, + n256, + n512, + n1024, + ... + }, + ... +} + +DL-PRS-ResourcesBandCombinationList-r16 ::= SEQUENCE (SIZE (1..maxBandComb-r16)) OF DL-PRS-ResourcesBandCombination-r16 + +DL-PRS-ResourcesBandCombination-r16 ::= SEQUENCE { + bandList-r16 SEQUENCE (SIZE (1..maxSimultaneousBands-r16)) OF FreqBandIndicatorNR-r16, + maxNrOfDL-PRS-ResourcesAcrossAllFL-TRP-ResourceSet-r16 CHOICE { + fr1-Only-r16 ENUMERATED { + n6, + n24, + n64, + n128, + n192, + n256, + n512, + n1024, + n2048 + }, + fr2-Only-r16 ENUMERATED { + n24, + n64, + n96, + n128, + n192, + n256, + n512, + n1024, + n2048 + }, + fr1-FR2Mix-r16 SEQUENCE { + fr1-r16 ENUMERATED { + n6, + n24, + n64, + n96, + n128, + n192, + n256, + n512, + n1024, + n2048 + }, + fr2-r16 ENUMERATED { + n24, + n64, + n96, + n128, + n192, + n256, + n512, + n1024, + n2048 + }, + ... + }, + ... + }, + ... +} + +NR-DL-PRS-ResourceSetID-r16 ::= INTEGER (0..nrMaxNumDL-PRS-ResourceSetsPerTRP-1-r16) + +NR-DL-PRS-TRP-TEG-Info-r17 ::= SEQUENCE (SIZE (1..nrMaxFreqLayers-r16)) OF NR-DL-PRS-TRP-TEG-InfoPerFreqLayer-r17 + +NR-DL-PRS-TRP-TEG-InfoPerFreqLayer-r17 ::= SEQUENCE (SIZE (1..nrMaxTRPsPerFreq-r16)) OF NR-DL-PRS-TRP-TEG-InfoPerTRP-r17 + +NR-DL-PRS-TRP-TEG-InfoPerTRP-r17 ::= SEQUENCE { + dl-PRS-ID-r17 INTEGER (0..255), + nr-PhysCellID-r17 NR-PhysCellID-r16 OPTIONAL, -- Need ON + nr-CellGlobalID-r17 NCGI-r15 OPTIONAL, -- Need ON + nr-ARFCN-r17 ARFCN-ValueNR-r15 OPTIONAL, -- Need ON + dl-PRS-TEG-InfoSet-r17 SEQUENCE (SIZE (1..nrMaxSetsPerTrpPerFreqLayer-r16)) OF DL-PRS-TEG-InfoPerResourceSet-r17, + ..., + [[ + nr-TRP-TxTEG-TimingErrorMargin-r17 TEG-TimingErrorMargin-r17 OPTIONAL -- Need ON + ]] +} + +DL-PRS-TEG-InfoPerResourceSet-r17 ::= SEQUENCE (SIZE (1..nrMaxResourcesPerSet-r16)) OF DL-PRS-TEG-InfoElement-r17 + +DL-PRS-TEG-InfoElement-r17 ::= SEQUENCE { + dl-prs-trp-Tx-TEG-ID-r17 INTEGER (0..maxNumOfTRP-TxTEGs-1-r17), + ... +} + +NR-IntegrityRiskParameters-r18 ::= SEQUENCE { + nr-ProbOnsetTRP-Fault-r18 INTEGER (0..255), + nr-MeanTRP-FaultDuration-r18 INTEGER (1..3600), + ... +} + +NR-IntegrityServiceAlert-r18 ::= SEQUENCE (SIZE (1..nrMaxFreqLayers-r16)) OF NR-TRP-IntegrityServiceAlertPerFreqLayer-r18 + +NR-TRP-IntegrityServiceAlertPerFreqLayer-r18 ::= SEQUENCE (SIZE (1..nrMaxTRPsPerFreq-r16)) OF NR-TRP-IntegrityServiceAlertElement-r18 + +NR-TRP-IntegrityServiceAlertElement-r18 ::= SEQUENCE { + dl-PRS-ID-r18 INTEGER (0..255), + nr-PhysCellID-r18 NR-PhysCellID-r16 OPTIONAL, -- Need ON + nr-CellGlobalID-r18 NCGI-r15 OPTIONAL, -- Need ON + nr-ARFCN-r18 ARFCN-ValueNR-r15 OPTIONAL, -- Need ON + rtd-DoNotUse-r18 BOOLEAN OPTIONAL, -- Need OR + trp-LocationDoNotUse-r18 BOOLEAN OPTIONAL, -- Need OR + beamInfo-DoNotUse-r18 BOOLEAN OPTIONAL, -- Need OR + beamAntennaInfo-DoNotUse-r18 BOOLEAN OPTIONAL, -- Need OR + ... +} + +NR-IntegrityServiceParameters-r18 ::= SEQUENCE { + ir-Minimum-r18 INTEGER (0..255), + ir-Maximum-r18 INTEGER (0..255), + ... +} + +NR-On-Demand-DL-PRS-Configurations-r17 ::= SEQUENCE { + on-demand-dl-prs-configuration-list-r17 SEQUENCE (SIZE (1..maxOD-DL-PRS-Configs-r17)) OF On-Demand-DL-PRS-Configuration-r17, + ..., + [[ + onDemandDL-PRS-AggregationList-r18 SEQUENCE (SIZE (1..maxOD-DL-PRS-Configs-r17)) OF OnDemandDL-PRS-AggregationInfo-r18 OPTIONAL -- Need OR + ]] +} + +On-Demand-DL-PRS-Configuration-r17 ::= SEQUENCE { + dl-prs-configuration-id-r17 DL-PRS-Configuration-ID-r17, + nr-DL-PRS-PositioningFrequencyLayer-r17 NR-DL-PRS-PositioningFrequencyLayer-r16, + nr-DL-PRS-Info-r17 NR-DL-PRS-Info-r16, + ... +} + +DL-PRS-Configuration-ID-r17 ::= SEQUENCE { + nr-dl-prs-configuration-id-r17 INTEGER (1..maxOD-DL-PRS-Configs-r17), + ... +} + +OnDemandDL-PRS-AggregationInfo-r18 ::= SEQUENCE (SIZE (2..3)) OF DL-PRS-Configuration-ID-r17 + +NR-On-Demand-DL-PRS-Information-r17 ::= SEQUENCE (SIZE (1..nrMaxFreqLayers-r16)) OF NR-On-Demand-DL-PRS-PerFreqLayer-r17 + +NR-On-Demand-DL-PRS-PerFreqLayer-r17 ::= SEQUENCE { + dl-prs-FrequencyRangeReq-r17 ENUMERATED { + fr1, + fr2, + ... + }, + dl-prs-ResourceSetPeriodicityReq-r17 ENUMERATED { + p4, + p5, + p8, + p10, + p16, + p20, + p32, + p40, + p64, + p80, + p160, + p320, + p640, + p1280, + p2560, + p5120, + p10240, + p20480, + p40960, + p81920, + ..., + p128-v1760, + p256-v1760, + p512-v1760 + } OPTIONAL, + dl-prs-ResourceBandwidthReq-r17 INTEGER (1..63) OPTIONAL, + dl-prs-ResourceRepetitionFactorReq-r17 ENUMERATED { + n2, + n4, + n6, + n8, + n16, + n32, + ... + } OPTIONAL, + dl-prs-NumSymbolsReq-r17 ENUMERATED { + n2, + n4, + n6, + n12, + ..., + n1-v1800 + } OPTIONAL, + dl-prs-CombSizeN-Req-r17 ENUMERATED { + n2, + n4, + n6, + n12, + ... + } OPTIONAL, + dl-prs-QCL-InformationReqTRPlist-r17 DL-PRS-QCL-InformationReqTRPlist-r17 OPTIONAL, + ... +} + +DL-PRS-QCL-InformationReqTRPlist-r17 ::= SEQUENCE (SIZE (1..nrMaxTRPsPerFreq-r16)) OF DL-PRS-QCL-InformationReqPerTRP-r17 + +DL-PRS-QCL-InformationReqPerTRP-r17 ::= SEQUENCE { + dl-PRS-ID-r17 INTEGER (0..255), + nr-PhysCellID-r17 NR-PhysCellID-r16 OPTIONAL, + nr-CellGlobalID-r17 NCGI-r15 OPTIONAL, + nr-ARFCN-r17 ARFCN-ValueNR-r15 OPTIONAL, + dl-prs-QCL-InformationReqSet-r17 SEQUENCE (SIZE (1..nrMaxSetsPerTrpPerFreqLayer-r16)) OF DL-PRS-QCL-InfoReq-r17, + ... +} + +DL-PRS-QCL-InfoReq-r17 ::= SEQUENCE { + nr-DL-PRS-ResourceSetID-r17 NR-DL-PRS-ResourceSetID-r16, + dl-prs-QCL-InformationReq-r17 CHOICE { + dl-prs-QCL-InfoRecPerResourceSet-r17 DL-PRS-QCL-Info-r16, + dl-prs-QCL-Info-requested-r17 NULL + }, + ..., + [[ + dl-prs-QCL-InfoRecPerResource-r17 SEQUENCE (SIZE (1..nrMaxResourcesPerSet-r16)) OF DL-PRS-QCL-Info-r16 OPTIONAL + ]] +} + +NR-On-Demand-DL-PRS-Request-r17 ::= SEQUENCE { + dl-prs-StartTime-and-Duration-r17 DL-PRS-StartTime-and-Duration-r17 OPTIONAL, + nr-on-demand-DL-PRS-Information-r17 NR-On-Demand-DL-PRS-Information-r17 OPTIONAL, + dl-prs-configuration-id-PrefList-r17 SEQUENCE (SIZE (1..maxOD-DL-PRS-Configs-r17)) OF DL-PRS-Configuration-ID-r17 OPTIONAL, + ..., + [[ + dl-PRS-AggregationID-PrefList-r18 SEQUENCE (SIZE (1..maxOD-DL-PRS-Configs-r17)) OF INTEGER (1..maxOD-DL-PRS-Configs-r17) OPTIONAL, + nr-OnDemandDL-PRS-AggregationReqList-r18 SEQUENCE (SIZE (1..maxOD-DL-PRS-Configs-r17)) OF NR-OnDemandDL-PRS-AggregationReqElement-r18 OPTIONAL + ]] +} + +DL-PRS-StartTime-and-Duration-r17 ::= SEQUENCE { + dl-prs-start-time-r17 INTEGER (1..1024) OPTIONAL, + dl-prs-duration-r17 SEQUENCE { + seconds-r17 INTEGER (0..59) OPTIONAL, + minutes-r17 INTEGER (0..59) OPTIONAL, + hours-r17 INTEGER (0..23) OPTIONAL, + ... + } OPTIONAL, + ... +} + +NR-OnDemandDL-PRS-AggregationReqElement-r18 ::= SEQUENCE (SIZE (2..3)) OF INTEGER (1..nrMaxFreqLayers-r16) + +NR-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17 ::= SEQUENCE (SIZE (1..maxOD-DL-PRS-Configs-r17)) OF DL-PRS-Configuration-ID-r17 + +NR-On-Demand-DL-PRS-Support-r17 ::= SEQUENCE { + nr-on-demand-DL-PRS-InformationSup-r17 ENUMERATED {supported} OPTIONAL, + nr-on-demand-DL-PRS-ConfigurationsSup-r17 ENUMERATED {supported} OPTIONAL, + ... +} + +NR-PeriodicAssistData-r18 ::= SEQUENCE { + nr-PeriodicPRU-DL-Info-r18 NR-PeriodicControlParam-r18 OPTIONAL, -- Need ON + ... +} + +NR-PeriodicAssistDataReq-r18 ::= SEQUENCE { + nr-PeriodicPRU-DL-InfoReq-r18 NR-PeriodicControlParam-r18 OPTIONAL, -- Cond pPRU + ... +} + +NR-PeriodicControlParam-r18 ::= SEQUENCE { + deliveryAmount-r18 INTEGER (1..32), + deliveryInterval-r18 INTEGER (4..81920), + ... +} + +NR-PositionCalculationAssistance-r16 ::= SEQUENCE { + nr-TRP-LocationInfo-r16 NR-TRP-LocationInfo-r16 OPTIONAL, -- Need ON + nr-DL-PRS-BeamInfo-r16 NR-DL-PRS-BeamInfo-r16 OPTIONAL, -- Need ON + nr-RTD-Info-r16 NR-RTD-Info-r16 OPTIONAL, -- Need ON + ..., + [[ + nr-TRP-BeamAntennaInfo-r17 NR-TRP-BeamAntennaInfo-r17 OPTIONAL, -- Need ON + nr-DL-PRS-Expected-LOS-NLOS-Assistance-r17 NR-DL-PRS-ExpectedLOS-NLOS-Assistance-r17 OPTIONAL, -- Need ON + nr-DL-PRS-TRP-TEG-Info-r17 NR-DL-PRS-TRP-TEG-Info-r17 OPTIONAL -- Need ON + ]], + [[ + nr-IntegrityServiceParameters-r18 NR-IntegrityServiceParameters-r18 OPTIONAL, -- Need OR + nr-IntegrityServiceAlert-r18 NR-IntegrityServiceAlert-r18 OPTIONAL, -- Need OR + nr-IntegrityRiskParameters-r18 NR-IntegrityRiskParameters-r18 OPTIONAL, -- Need OR + nr-IntegrityParametersTRP-LocationInfo-r18 NR-IntegrityParametersTRP-LocationInfo-r18 OPTIONAL, -- Cond Integrity1 + nr-IntegrityParametersDL-PRS-BeamInfo-r18 NR-IntegrityParametersDL-PRS-BeamInfo-r18 OPTIONAL, -- Cond Integrity2 + nr-IntegrityParametersRTD-Info-r18 NR-IntegrityParametersRTD-Info-r18 OPTIONAL, -- Cond Integrity3 + nr-IntegrityParametersTRP-BeamAntennaInfo-r18 NR-IntegrityParametersTRP-BeamAntennaInfo-r18 OPTIONAL, -- Cond Integrity4 + nr-PRU-DL-Info-r18 NR-PRU-DL-Info-r18 OPTIONAL -- Need ON + ]] +} + +NR-IntegrityParametersTRP-LocationInfo-r18 ::= SEQUENCE { + trp-ErrorCorrelationTime-r18 INTEGER (0..255), + ... +} + +NR-IntegrityParametersDL-PRS-BeamInfo-r18 ::= SEQUENCE { + dl-PRS-BeamInfoErrorCorrelationTime-r18 INTEGER (0..255), + ... +} + +NR-IntegrityParametersRTD-Info-r18 ::= SEQUENCE { + rtd-ErrorCorrelationTime-r18 INTEGER (0..255), + ... +} + +NR-IntegrityParametersTRP-BeamAntennaInfo-r18 ::= SEQUENCE { + trp-BeamAntennaInfoErrorCorrelationTime-r18 INTEGER (0..255), + ... +} + +NR-PRU-DL-Info-r18 ::= SEQUENCE { + nr-PRU-LocationInfo-r18 LocationCoordinates OPTIONAL, -- Need ON + nr-PRU-DL-TDOA-MeasInfo-r18 NR-DL-TDOA-SignalMeasurementInformation-r16 OPTIONAL, -- Need ON + nr-PRU-DL-AoD-MeasInfo-r18 NR-DL-AoD-SignalMeasurementInformation-r16 OPTIONAL, -- Need ON + nr-PRU-RSCP-MeasInfo-r18 NR-PRU-RSCP-MeasurementInformation-r18 OPTIONAL, -- Need ON + ... +} + +NR-PRU-RSCP-MeasurementInformation-r18 ::= SEQUENCE (SIZE (1..nrMaxTRPs-r16)) OF NR-PRU-RSCP-MeasElement-r18 + +NR-PRU-RSCP-MeasElement-r18 ::= SEQUENCE { + dl-PRS-ID-r18 INTEGER (0..255), + nr-PhysCellID-r18 NR-PhysCellID-r16 OPTIONAL, -- Need ON + nr-CellGlobalID-r18 NCGI-r15 OPTIONAL, -- Need ON + nr-ARFCN-r18 ARFCN-ValueNR-r15 OPTIONAL, -- Need ON + nr-DL-PRS-ResourceID-r18 NR-DL-PRS-ResourceID-r16 OPTIONAL, -- Need ON + nr-DL-PRS-ResourceSetID-r18 NR-DL-PRS-ResourceSetID-r16 OPTIONAL, -- Need ON + nr-TimeStamp-r18 NR-TimeStamp-r16, + nr-los-nlos-Indicator-r18 CHOICE { + perTRP LOS-NLOS-Indicator-r17, + perResource LOS-NLOS-Indicator-r17 + } OPTIONAL, -- Need ON + nr-RSCP-r18 INTEGER (0..3599) OPTIONAL, -- Need ON + nr-PhaseQuality-r18 NR-PhaseQuality-r18 OPTIONAL, -- Need ON + nr-PRU-RSCP-AddSampleMeasurements-r18 SEQUENCE (SIZE (1..nrNumOfSamples-1-r18)) OF NR-RSCP-AdditionalMeasurements-r18 OPTIONAL, -- Need ON + nr-PRU-RSCP-AdditionalMeasurements-r18 NR-PRU-RSCP-AdditionalMeasurements-r18 OPTIONAL, -- Need ON + ... +} + +NR-PRU-RSCP-AdditionalMeasurements-r18 ::= SEQUENCE (SIZE (1..3)) OF NR-PRU-RSCP-AdditionalMeasurementElement-r18 + +NR-PRU-RSCP-AdditionalMeasurementElement-r18 ::= SEQUENCE { + nr-DL-PRS-ResourceID-r18 NR-DL-PRS-ResourceID-r16 OPTIONAL, -- Need ON + nr-DL-PRS-ResourceSetID-r18 NR-DL-PRS-ResourceSetID-r16 OPTIONAL, -- Need ON + nr-PRU-RSCP-AdditionalMeasurementsList-r18 SEQUENCE (SIZE (1..nrNumOfSamples-r18)) OF NR-RSCP-AdditionalMeasurements-r18 OPTIONAL, -- Need ON + ... +} + +NR-RTD-Info-r16 ::= SEQUENCE { + referenceTRP-RTD-Info-r16 ReferenceTRP-RTD-Info-r16, + rtd-InfoList-r16 RTD-InfoList-r16, + ... +} + +ReferenceTRP-RTD-Info-r16 ::= SEQUENCE { + dl-PRS-ID-Ref-r16 INTEGER (0..255), + nr-PhysCellID-Ref-r16 NR-PhysCellID-r16 OPTIONAL, -- Need ON + nr-CellGlobalID-Ref-r16 NCGI-r15 OPTIONAL, -- Need ON + nr-ARFCN-Ref-r16 ARFCN-ValueNR-r15 OPTIONAL, -- Need ON + refTime-r16 CHOICE { + systemFrameNumber-r16 BIT STRING (SIZE (10)), + utc-r16 UTCTime, + ... + }, + rtd-RefQuality-r16 NR-TimingQuality-r16 OPTIONAL, -- Need ON + ... +} + +RTD-InfoList-r16 ::= SEQUENCE (SIZE (1..nrMaxFreqLayers-r16)) OF RTD-InfoListPerFreqLayer-r16 + +RTD-InfoListPerFreqLayer-r16 ::= SEQUENCE (SIZE (1..nrMaxTRPsPerFreq-r16)) OF RTD-InfoElement-r16 + +RTD-InfoElement-r16 ::= SEQUENCE { + dl-PRS-ID-r16 INTEGER (0..255), + nr-PhysCellID-r16 NR-PhysCellID-r16 OPTIONAL, -- Need ON + nr-CellGlobalID-r16 NCGI-r15 OPTIONAL, -- Need ON + nr-ARFCN-r16 ARFCN-ValueNR-r15 OPTIONAL, -- Need ON + subframeOffset-r16 INTEGER (0..1966079), + rtd-Quality-r16 NR-TimingQuality-r16, + ..., + [[ + nr-IntegrityRTD-InfoBounds-r18 NR-IntegrityRTD-InfoBounds-r18 OPTIONAL -- Need OR + ]] +} + +NR-IntegrityRTD-InfoBounds-r18 ::= SEQUENCE { + resolution-r18 ENUMERATED { + mdot1, + m1, + m10, + m30, + ... + }, + meanRTD-r18 INTEGER (0..255), + stdDevRTD-r18 INTEGER (0..31), + ... +} + +NR-SelectedDL-PRS-IndexList-r16 ::= SEQUENCE (SIZE (1..nrMaxFreqLayers-r16)) OF NR-SelectedDL-PRS-PerFreq-r16 + +NR-SelectedDL-PRS-PerFreq-r16 ::= SEQUENCE { + nr-SelectedDL-PRS-FrequencyLayerIndex-r16 INTEGER (0..nrMaxFreqLayers-1-r16), + nr-SelectedDL-PRS-IndexListPerFreq-r16 SEQUENCE (SIZE (1..nrMaxTRPsPerFreq-r16)) OF NR-SelectedDL-PRS-IndexPerTRP-r16 OPTIONAL, --Need OP + ... +} + +NR-SelectedDL-PRS-IndexPerTRP-r16 ::= SEQUENCE { + nr-SelectedTRP-Index-r16 INTEGER (0..nrMaxTRPsPerFreq-1-r16), + dl-SelectedPRS-ResourceSetIndexList-r16 SEQUENCE (SIZE (1..nrMaxSetsPerTrpPerFreqLayer-r16)) OF DL-SelectedPRS-ResourceSetIndex-r16 OPTIONAL, --Need OP + ... +} + +DL-SelectedPRS-ResourceSetIndex-r16 ::= SEQUENCE { + nr-DL-SelectedPRS-ResourceSetIndex-r16 INTEGER (0..nrMaxSetsPerTrpPerFreqLayer-1-r16), + dl-SelectedPRS-ResourceIndexList-r16 SEQUENCE (SIZE (1..nrMaxResourcesPerSet-r16)) OF DL-SelectedPRS-ResourceIndex-r16 OPTIONAL --Need OP +} + +DL-SelectedPRS-ResourceIndex-r16 ::= SEQUENCE { + nr-DL-SelectedPRS-ResourceIdIndex-r16 INTEGER (0..nrMaxNumDL-PRS-ResourcesPerSet-1-r16), + ... +} + +NR-SSB-Config-r16 ::= SEQUENCE { + nr-PhysCellID-r16 NR-PhysCellID-r16, + nr-ARFCN-r16 ARFCN-ValueNR-r15, + ss-PBCH-BlockPower-r16 INTEGER (-60..50), + halfFrameIndex-r16 INTEGER (0..1), + ssb-periodicity-r16 ENUMERATED { + ms5, + ms10, + ms20, + ms40, + ms80, + ms160, + ... + }, + ssb-PositionsInBurst-r16 CHOICE { + shortBitmap-r16 BIT STRING (SIZE (4)), + mediumBitmap-r16 BIT STRING (SIZE (8)), + longBitmap-r16 BIT STRING (SIZE (64)) + } OPTIONAL, --Need OR + ssb-SubcarrierSpacing-r16 ENUMERATED { + kHz15, + kHz30, + kHz60, + kHz120, + kHz240, + ... + }, + sfn-SSB-Offset-r16 INTEGER (0..15), + ... +} + +NR-TimeStamp-r16 ::= SEQUENCE { + dl-PRS-ID-r16 INTEGER (0..255), + nr-PhysCellID-r16 NR-PhysCellID-r16 OPTIONAL, -- Need ON + nr-CellGlobalID-r16 NCGI-r15 OPTIONAL, -- Need ON + nr-ARFCN-r16 ARFCN-ValueNR-r15 OPTIONAL, -- Need ON + nr-SFN-r16 INTEGER (0..1023), + nr-Slot-r16 CHOICE { + scs15-r16 INTEGER (0..9), + scs30-r16 INTEGER (0..19), + scs60-r16 INTEGER (0..39), + scs120-r16 INTEGER (0..79) + }, + ..., + [[ + nr-Symbol-r18 INTEGER (0..13) OPTIONAL -- Need ON + ]] +} + +NR-TimingQuality-r16 ::= SEQUENCE { + timingQualityValue-r16 INTEGER (0..31), + timingQualityResolution-r16 ENUMERATED { + mdot1, + m1, + m10, + m30, + ... + }, + ... +} + +NR-TRP-BeamAntennaInfo-r17 ::= SEQUENCE (SIZE (1..nrMaxFreqLayers-r16)) OF NR-TRP-BeamAntennaInfoPerFreqLayer-r17 + +NR-TRP-BeamAntennaInfoPerFreqLayer-r17 ::= SEQUENCE (SIZE (1..nrMaxTRPsPerFreq-r16)) OF NR-TRP-BeamAntennaInfoPerTRP-r17 + +NR-TRP-BeamAntennaInfoPerTRP-r17 ::= SEQUENCE { + dl-PRS-ID-r17 INTEGER (0..255), + nr-PhysCellID-r17 NR-PhysCellID-r16 OPTIONAL, -- Need ON + nr-CellGlobalID-r17 NCGI-r15 OPTIONAL, -- Need ON + nr-ARFCN-r17 ARFCN-ValueNR-r15 OPTIONAL, -- Need ON + associated-DL-PRS-ID-r17 INTEGER (0..255) OPTIONAL, -- Need OP + lcs-GCS-TranslationParameter-r17 LCS-GCS-TranslationParameter-r16 OPTIONAL, -- Need OP + nr-TRP-BeamAntennaAngles-r17 NR-TRP-BeamAntennaAngles-r17 OPTIONAL, -- Need OP + ... +} + +NR-TRP-BeamAntennaAngles-r17 ::= SEQUENCE (SIZE (1..3600)) OF NR-TRP-BeamAntennaInfoAzimuthElevation-r17 + +NR-TRP-BeamAntennaInfoAzimuthElevation-r17 ::= SEQUENCE { + azimuth-r17 INTEGER (0..359) OPTIONAL, -- Cond Az + azimuth-fine-r17 INTEGER (0..9) OPTIONAL, -- Cond AzOpt + elevationList-r17 SEQUENCE (SIZE (1..1801)) OF ElevationElement-R17, + ... +} + +ElevationElement-R17 ::= SEQUENCE { + elevation-r17 INTEGER (0..180) OPTIONAL, -- Cond El + elevation-fine-r17 INTEGER (0..9) OPTIONAL, -- Cond ElOpt + beamPowerList-r17 SEQUENCE (SIZE (2..maxNumResourcesPerAngle-r17)) OF BeamPowerElement-r17, + ... +} + +BeamPowerElement-r17 ::= SEQUENCE { + nr-dl-prs-ResourceSetID-r17 NR-DL-PRS-ResourceSetID-r16 OPTIONAL, -- Need OP + nr-dl-prs-ResourceID-r17 NR-DL-PRS-ResourceID-r16, + nr-dl-prs-RelativePower-r17 INTEGER (0..30), + nr-dl-prs-RelativePowerFine-r17 INTEGER (0..9) OPTIONAL, -- Need ON + ..., + [[ + nr-IntegrityBeamPowerBounds-r18 NR-IntegrityBeamPowerBounds-r18 OPTIONAL -- Need OP + ]] +} + +NR-IntegrityBeamPowerBounds-r18 ::= SEQUENCE { + meanBeamPower-r18 INTEGER (0..127), + stdDevBeamPower-r18 INTEGER (0..127), + ... +} + +NR-TRP-LocationInfo-r16 ::= SEQUENCE (SIZE (1..nrMaxFreqLayers-r16)) OF NR-TRP-LocationInfoPerFreqLayer-r16 + +NR-TRP-LocationInfoPerFreqLayer-r16 ::= SEQUENCE { + referencePoint-r16 ReferencePoint-r16 OPTIONAL, -- Cond NotSameAsPrev + trp-LocationInfoList-r16 SEQUENCE (SIZE (1..nrMaxTRPsPerFreq-r16)) OF TRP-LocationInfoElement-r16, + ... +} + +TRP-LocationInfoElement-r16 ::= SEQUENCE { + dl-PRS-ID-r16 INTEGER (0..255), + nr-PhysCellID-r16 NR-PhysCellID-r16 OPTIONAL, -- Need ON + nr-CellGlobalID-r16 NCGI-r15 OPTIONAL, -- Need ON + nr-ARFCN-r16 ARFCN-ValueNR-r15 OPTIONAL, -- Need ON + associated-DL-PRS-ID-r16 INTEGER (0..255) OPTIONAL, -- Need OP + trp-Location-r16 RelativeLocation-r16 OPTIONAL, -- Need OP + trp-DL-PRS-ResourceSets-r16 SEQUENCE (SIZE (1..nrMaxSetsPerTrpPerFreqLayer-r16)) OF DL-PRS-ResourceSets-TRP-Element-r16 OPTIONAL, -- Need OP + ..., + [[ + trp-LocationCartesian-r18 RelativeCartesianLocation-r18 OPTIONAL, -- Need OP + nr-IntegrityTRP-LocationBounds-r18 NR-IntegrityLocationBounds-r18 OPTIONAL -- Need OR + ]] +} + +DL-PRS-ResourceSets-TRP-Element-r16 ::= SEQUENCE { + dl-PRS-ResourceSetARP-r16 RelativeLocation-r16 OPTIONAL, -- Need OP + dl-PRS-Resource-ARP-List-r16 SEQUENCE (SIZE (1..nrMaxResourcesPerSet-r16)) OF DL-PRS-Resource-ARP-Element-r16 OPTIONAL, -- Need OP + ..., + [[ + dl-PRS-ResourceSetARP-Cartesian-r18 RelativeCartesianLocation-r18 OPTIONAL, -- Need OP + nr-IntegrityDL-PRS-ResourceSetARP-LocationBounds-r18 NR-IntegrityLocationBounds-r18 OPTIONAL -- Need OR + ]] +} + +DL-PRS-Resource-ARP-Element-r16 ::= SEQUENCE { + dl-PRS-Resource-ARP-location-r16 RelativeLocation-r16 OPTIONAL, -- Need OP + ..., + [[ + dl-PRS-Resource-ARP-locationCartesian-r18 RelativeCartesianLocation-r18 OPTIONAL, -- Need OP + nr-IntegrityDL-PRS-ResourceARP-LocationBounds-r18 NR-IntegrityLocationBounds-r18 OPTIONAL -- Need OR + ]] +} + +NR-IntegrityLocationBounds-r18 ::= SEQUENCE { + units-r18 ENUMERATED { + mm, + cm, + m, + ... + }, + meanLocationErrorBound-r18 SEQUENCE { + horizontal-r18 INTEGER (0..255), + vertical-r18 INTEGER (0..255) + }, + stdDevLocationErrorBound-r18 SEQUENCE { + horizontal-r18 INTEGER (0..255), + vertical-r18 INTEGER (0..255) + }, + ... +} + +NR-UE-TEG-Capability-r17 ::= SEQUENCE { + nr-UE-TEG-ID-CapabilityBandList-r17 SEQUENCE (SIZE (1..nrMaxBands-r16)) OF NR-UE-TEG-ID-CapabilityPerBand-r17 OPTIONAL, + ... +} + +NR-UE-TEG-ID-CapabilityPerBand-r17 ::= SEQUENCE { + freqBandIndicatorNR-r17 FreqBandIndicatorNR-r16, + nr-UE-RxTEG-ID-MaxSupport-r17 ENUMERATED { + n1, + n2, + n3, + n4, + n6, + n8 + } OPTIONAL, + nr-UE-TxTEG-ID-MaxSupport-r17 ENUMERATED { + n1, + n2, + n3, + n4, + n6, + n8 + } OPTIONAL, + nr-UE-RxTxTEG-ID-MaxSupport-r17 ENUMERATED { + n1, + n2, + n4, + n6, + n8, + n12, + n16, + n24, + n32, + n36, + n48, + n64 + } OPTIONAL, + measureSameDL-PRS-ResourceWithDifferentRxTEGs-r17 ENUMERATED { + n2, + n3, + n4, + n6, + n8 + } OPTIONAL, + measureSameDL-PRS-ResourceWithDifferentRxTEGsSimul-r17 ENUMERATED { + n1, + n2, + n3, + n4, + n6, + n8 + } OPTIONAL, + ... +} + +NR-UL-SRS-Capability-r16 ::= SEQUENCE { + srs-CapabilityBandList-r16 SEQUENCE (SIZE (1..nrMaxBands-r16)) OF SRS-CapabilityPerBand-r16, + srs-PosResourceConfigCA-BandList-r16 SEQUENCE (SIZE (1..nrMaxConfiguredBands-r16)) OF SRS-PosResourcesPerBand-r16 OPTIONAL, + maxNumberSRS-PosPathLossEstimateAllServingCells-r16 ENUMERATED { + n1, + n4, + n8, + n16 + } OPTIONAL, + maxNumberSRS-PosSpatialRelationsAllServingCells-r16 ENUMERATED { + n0, + n1, + n2, + n4, + n8, + n16 + } OPTIONAL, + ... +} + +SRS-CapabilityPerBand-r16 ::= SEQUENCE { + freqBandIndicatorNR-r16 FreqBandIndicatorNR-r16, + olpc-SRS-Pos-r16 OLPC-SRS-Pos-r16 OPTIONAL, + spatialRelationsSRS-Pos-r16 SpatialRelationsSRS-Pos-r16 OPTIONAL, + ..., + [[ + posSRS-RRC-Inactive-InInitialUL-BWP-r17 PosSRS-RRC-Inactive-InInitialUL-BWP-r17 OPTIONAL, + posSRS-RRC-Inactive-OutsideInitialUL-BWP-r17 PosSRS-RRC-Inactive-OutsideInitialUL-BWP-r17 OPTIONAL, + olpc-SRS-PosRRC-Inactive-r17 OLPC-SRS-Pos-r16 OPTIONAL, + spatialRelationsSRS-PosRRC-Inactive-r17 SpatialRelationsSRS-Pos-r16 OPTIONAL + ]], + [[ + posSRS-SP-RRC-Inactive-InInitialUL-BWP-r17 PosSRS-SP-RRC-Inactive-InInitialUL-BWP-r17 OPTIONAL + ]], + [[ + posSRS-Preconfigured-RRC-InactiveInitialUL-BWP-r18 ENUMERATED {supported} OPTIONAL, + posSRS-Preconfigured-RRC-InactiveOutsideInitialUL-BWP-r18 ENUMERATED {supported} OPTIONAL, + posSRS-ValidityAreaRRC-InactiveInitialUL-BWP-r18 ENUMERATED {supported} OPTIONAL, + posSRS-ValidityAreaRRC-InactiveOutsideInitialUL-BWP-r18 ENUMERATED {supported} OPTIONAL, + posSRS-TxFH-RRC-Connected-r18 PosSRS-TxFrequencyHoppingRRC-Connected-r18 OPTIONAL, + posSRS-TxFH-RRC-Inactive-r18 PosSRS-TxFrequencyHoppingRRC-Inactive-r18 OPTIONAL, + posSRS-TxFH-WithTimeWindow-r18 ENUMERATED {supported} OPTIONAL, + posSRS-BWA-RRC-Inactive-r18 PosSRS-BWA-RRC-Inactive-r18 OPTIONAL, + posSRS-BWA-RRC-Connected-r18 PosSRS-BWA-RRC-Connected-r18 OPTIONAL, + posSRS-BWA-IndependentCA-RRC-Connected-r18 PosSRS-BWA-IndependentCA-RRC-Connected-r18 OPTIONAL + ]] +} + +OLPC-SRS-Pos-r16 ::= SEQUENCE { + olpc-SRS-PosBasedOnPRS-Serving-r16 ENUMERATED {supported} OPTIONAL, + olpc-SRS-PosBasedOnSSB-Neigh-r16 ENUMERATED {supported} OPTIONAL, + olpc-SRS-PosBasedOnPRS-Neigh-r16 ENUMERATED {supported} OPTIONAL, + maxNumberPathLossEstimatePerServing-r16 ENUMERATED { + n1, + n4, + n8, + n16 + } OPTIONAL, + ... +} + +SpatialRelationsSRS-Pos-r16 ::= SEQUENCE { + spatialRelation-SRS-PosBasedOnSSB-Serving-r16 ENUMERATED {supported} OPTIONAL, + spatialRelation-SRS-PosBasedOnCSI-RS-Serving-r16 ENUMERATED {supported} OPTIONAL, + spatialRelation-SRS-PosBasedOnPRS-Serving-r16 ENUMERATED {supported} OPTIONAL, + spatialRelation-SRS-PosBasedOnSRS-r16 ENUMERATED {supported} OPTIONAL, + spatialRelation-SRS-PosBasedOnSSB-Neigh-r16 ENUMERATED {supported} OPTIONAL, + spatialRelation-SRS-PosBasedOnPRS-Neigh-r16 ENUMERATED {supported} OPTIONAL, + ... +} + +SRS-PosResourcesPerBand-r16 ::= SEQUENCE { + freqBandIndicatorNR-r16 FreqBandIndicatorNR-r16, + maxNumberSRS-PosResourceSetsPerBWP-r16 ENUMERATED { + n1, + n2, + n4, + n8, + n12, + n16 + }, + maxNumberSRS-PosResourcesPerBWP-r16 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n32, + n64 + }, + maxNumberPeriodicSRS-PosResourcesPerBWP-r16 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n32, + n64 + }, + maxNumberAP-SRS-PosResourcesPerBWP-r16 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + maxNumberSP-SRS-PosResourcesPerBWP-r16 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + ... +} + +PosSRS-RRC-Inactive-InInitialUL-BWP-r17 ::= SEQUENCE { + maxNumOfSRSposResourceSets-r17 ENUMERATED { + n1, + n2, + n4, + n8, + n12, + n16 + } OPTIONAL, + maxNumOfPeriodicAndSemiPersistentSRSposResources-r17 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot-r17 ENUMERATED { + n1, + n2, + n3, + n4, + n5, + n6, + n8, + n10, + n12, + n14 + } OPTIONAL, + maxNumOfPeriodicSRSposResources-r17 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + maxNumOfPeriodicSRSposResourcesPerSlot-r17 ENUMERATED { + n1, + n2, + n3, + n4, + n5, + n6, + n8, + n10, + n12, + n14 + } OPTIONAL, + dummy1 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + dummy2 ENUMERATED { + n1, + n2, + n3, + n4, + n5, + n6, + n8, + n10, + n12, + n14 + } OPTIONAL, + ... +} + +PosSRS-RRC-Inactive-OutsideInitialUL-BWP-r17 ::= SEQUENCE { + maxSRSposBandwidthForEachSCS-withinCC-FR1-r17 ENUMERATED { + mhz5, + mhz10, + mhz15, + mhz20, + mhz25, + mhz30, + mhz35, + mhz40, + mhz45, + mhz50, + mhz60, + mhz70, + mhz80, + mhz90, + mhz100 + } OPTIONAL, + maxSRSposBandwidthForEachSCS-withinCC-FR2-r17 ENUMERATED { + mhz50, + mhz100, + mhz200, + mhz400 + } OPTIONAL, + maxNumOfSRSposResourceSets-r17 ENUMERATED { + n1, + n2, + n4, + n8, + n12, + n16 + } OPTIONAL, + maxNumOfPeriodicSRSposResources-r17 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + maxNumOfPeriodicSRSposResourcesPerSlot-r17 ENUMERATED { + n1, + n2, + n3, + n4, + n5, + n6, + n8, + n10, + n12, + n14 + } OPTIONAL, + differentNumerologyBetweenSRSposAndInitialBWP-r17 ENUMERATED {supported} OPTIONAL, + srsPosWithoutRestrictionOnBWP-r17 ENUMERATED {supported} OPTIONAL, + maxNumOfPeriodicAndSemiPersistentSRSposResources-r17 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + maxNumOfPeriodicAndSemiPersistentSRSposResourcesPerSlot-r17 ENUMERATED { + n1, + n2, + n3, + n4, + n5, + n6, + n8, + n10, + n12, + n14 + } OPTIONAL, + differentCenterFreqBetweenSRSposAndInitialBWP-r17 ENUMERATED {supported} OPTIONAL, + maxNumOfSemiPersistentSRSposResources-r17 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + maxNumOfSemiPersistentSRSposResourcesPerSlot-r17 ENUMERATED { + n1, + n2, + n3, + n4, + n5, + n6, + n8, + n10, + n12, + n14 + } OPTIONAL, + switchingTimeSRS-TX-OtherTX-r17 ENUMERATED { + us100, + us140, + us200, + us300, + us500 + } OPTIONAL, + ... +} + +PosSRS-SP-RRC-Inactive-InInitialUL-BWP-r17 ::= SEQUENCE { + maxNumOfSemiPersistentSRSposResources-r17 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + maxNumOfSemiPersistentSRSposResourcesPerSlot-r17 ENUMERATED { + n1, + n2, + n3, + n4, + n5, + n6, + n8, + n10, + n12, + n14 + } OPTIONAL, + ... +} + +PosSRS-TxFrequencyHoppingRRC-Connected-r18 ::= SEQUENCE { + maximumSRS-BandwidthAcrossAllHopsFR1-r18 ENUMERATED { + mhz40, + mhz50, + mhz80, + mhz100 + } OPTIONAL, + maximumSRS-BandwidthAcrossAllHopsFR2-r18 ENUMERATED { + mhz100, + mhz200, + mhz400 + } OPTIONAL, + maximumTxFH-Hops-r18 ENUMERATED { + n2, + n3, + n4, + n5, + n6 + } OPTIONAL, + rf-TxRetunTimeFR1-r18 ENUMERATED { + n70, + n140, + n210 + } OPTIONAL, + rf-TxRetunTimeFR2-r18 ENUMERATED { + n35, + n70, + n140 + } OPTIONAL, + switchTimeBetweenActiveBWP-FrequencyHop-r18 ENUMERATED { + n100, + n140, + n200, + n300, + n500 + } OPTIONAL, + numOfOverlappingPRB-r18 ENUMERATED { + n0, + n1, + n2, + n4 + } OPTIONAL, + maximumSRS-ResourcePeriodic-r18 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + maximumSRS-ResourceAperiodic-r18 ENUMERATED { + n0, + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + maximumSRS-ResourceSemipersistent-r18 ENUMERATED { + n0, + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + ... +} + +PosSRS-TxFrequencyHoppingRRC-Inactive-r18 ::= SEQUENCE { + maximumSRS-BandwidthAcrossAllHopsFR1-r18 ENUMERATED { + mhz40, + mhz50, + mhz80, + mhz100 + } OPTIONAL, + maximumSRS-BandwidthAcrossAllHopsFR2-r18 ENUMERATED { + mhz100, + mhz200, + mhz400 + } OPTIONAL, + maximumTxFH-Hops-r18 ENUMERATED { + n2, + n3, + n4, + n5, + n6 + } OPTIONAL, + rf-TxRetunTimeFR1-r18 ENUMERATED { + n70, + n140, + n210 + } OPTIONAL, + rf-TxRetunTimeFR2-r18 ENUMERATED { + n35, + n70, + n140 + } OPTIONAL, + switchTimeBetweenActiveBWP-FrequencyHop-r18 ENUMERATED { + n100, + n140, + n200, + n300, + n500 + } OPTIONAL, + numOfOverlappingPRB-r18 ENUMERATED { + n0, + n1, + n2, + n4 + } OPTIONAL, + maximumSRS-ResourcePeriodic-r18 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + maximumSRS-ResourceSemipersistent-r18 ENUMERATED { + n0, + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + ... +} + +PosSRS-BWA-RRC-Connected-r18 ::= SEQUENCE { + numOfCarriersIntraBandContiguous-r18 ENUMERATED { + two, + three, + twoandthree + } OPTIONAL, + maximumAggregatedBW-TwoCarriersFR1-r18 ENUMERATED { + mhz80, + mhz100, + mhz160, + mhz200 + } OPTIONAL, + maximumAggregatedBW-TwoCarriersFR2-r18 ENUMERATED { + mhz50, + mhz100, + mhz200, + mhz400, + mhz600, + mhz800 + } OPTIONAL, + maximumAggregatedBW-ThreeCarriersFR1-r18 ENUMERATED { + mhz80, + mhz100, + mhz160, + mhz200, + mhz300 + } OPTIONAL, + maximumAggregatedBW-ThreeCarriersFR2-r18 ENUMERATED { + mhz50, + mhz100, + mhz200, + mhz400, + mhz600, + mhz800, + mhz1000, + mhz1200 + } OPTIONAL, + maximumAggregatedResourceSet-r18 ENUMERATED { + n1, + n2, + n4, + n8, + n12, + n16 + } OPTIONAL, + maximumAggregatedResourcePeriodic-r18 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + maximumAggregatedResourceAperiodic-r18 ENUMERATED { + n0, + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + maximumAggregatedResourceSemi-r18 ENUMERATED { + n0, + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + maximumAggregatedResourcePeriodicPerSlot-r18 ENUMERATED { + n1, + n2, + n3, + n4, + n5, + n6, + n8, + n10, + n12, + n14 + } OPTIONAL, + maximumAggregatedResourceAperiodicPerSlot-r18 ENUMERATED { + n0, + n1, + n2, + n3, + n4, + n5, + n6, + n8, + n10, + n12, + n14 + } OPTIONAL, + maximumAggregatedResourceSemiPerSlot-r18 ENUMERATED { + n0, + n1, + n2, + n3, + n4, + n5, + n6, + n8, + n10, + n12, + n14 + } OPTIONAL, + supportOfSameSRS-PowerReduction-r18 ENUMERATED {supported} OPTIONAL, + ... +} + +PosSRS-BWA-IndependentCA-RRC-Connected-r18 ::= SEQUENCE { + numOfCarriersIntraBandContiguous-r18 ENUMERATED { + two, + three, + twoandthree + } OPTIONAL, + maximumAggregatedBW-TwoCarriersFR1-r18 ENUMERATED { + mhz80, + mhz100, + mhz160, + mhz200 + } OPTIONAL, + maximumAggregatedBW-TwoCarriersFR2-r18 ENUMERATED { + mhz50, + mhz100, + mhz200, + mhz400, + mhz600, + mhz800 + } OPTIONAL, + maximumAggregatedBW-ThreeCarriersFR1-r18 ENUMERATED { + mhz80, + mhz100, + mhz160, + mhz200, + mhz300 + } OPTIONAL, + maximumAggregatedBW-ThreeCarriersFR2-r18 ENUMERATED { + mhz50, + mhz100, + mhz200, + mhz400, + mhz600, + mhz800, + mhz1000, + mhz1200 + } OPTIONAL, + maximumAggregatedResourceSet-r18 ENUMERATED { + n1, + n2, + n4, + n8, + n12, + n16 + } OPTIONAL, + maximumAggregatedResourcePeriodic-r18 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + maximumAggregatedResourceAperiodic-r18 ENUMERATED { + n0, + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + maximumAggregatedResourceSemi-r18 ENUMERATED { + n0, + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + maximumAggregatedResourcePeriodicPerSlot-r18 ENUMERATED { + n1, + n2, + n3, + n4, + n5, + n6, + n8, + n10, + n12, + n14 + } OPTIONAL, + maximumAggregatedResourceAperiodicPerSlot-r18 ENUMERATED { + n0, + n1, + n2, + n3, + n4, + n5, + n6, + n8, + n10, + n12, + n14 + } OPTIONAL, + maximumAggregatedResourceSemiPerSlot-r18 ENUMERATED { + n0, + n1, + n2, + n3, + n4, + n5, + n6, + n8, + n10, + n12, + n14 + } OPTIONAL, + supportOfSameSRS-PowerReduction-r18 ENUMERATED {supported} OPTIONAL, + guardPeriod-r18 ENUMERATED { + ms0, + ms30, + ms100, + ms140, + ms200 + } OPTIONAL, + ... +} + +PosSRS-BWA-RRC-Inactive-r18 ::= SEQUENCE { + numOfCarriersIntraBandContiguous-r18 ENUMERATED { + two, + three, + twoandthree + } OPTIONAL, + maximumAggregatedBW-TwoCarriersFR1-r18 ENUMERATED { + mhz80, + mhz100, + mhz160, + mhz200 + } OPTIONAL, + maximumAggregatedBW-TwoCarriersFR2-r18 ENUMERATED { + mhz50, + mhz100, + mhz200, + mhz400, + mhz600, + mhz800 + } OPTIONAL, + maximumAggregatedBW-ThreeCarriersFR1-r18 ENUMERATED { + mhz80, + mhz100, + mhz160, + mhz200, + mhz300 + } OPTIONAL, + maximumAggregatedBW-ThreeCarriersFR2-r18 ENUMERATED { + mhz50, + mhz100, + mhz200, + mhz400, + mhz600, + mhz800, + mhz1000, + mhz1200 + } OPTIONAL, + maximumAggregatedResourceSet-r18 ENUMERATED { + n1, + n2, + n4, + n8, + n12, + n16 + } OPTIONAL, + maximumAggregatedResourcePeriodic-r18 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + maximumAggregatedResourceSemi-r18 ENUMERATED { + n0, + n1, + n2, + n4, + n8, + n16, + n32, + n64 + } OPTIONAL, + maximumAggregatedResourcePeriodicPerSlot-r18 ENUMERATED { + n1, + n2, + n3, + n4, + n5, + n6, + n8, + n10, + n12, + n14 + } OPTIONAL, + maximumAggregatedResourceSemiPerSlot-r18 ENUMERATED { + n0, + n1, + n2, + n3, + n4, + n5, + n6, + n8, + n10, + n12, + n14 + } OPTIONAL, + supportOfSameSRS-PowerReduction-r18 ENUMERATED {supported} OPTIONAL, + guardPerid-r18 ENUMERATED { + ms0, + ms30, + ms100, + ms140, + ms200 + } OPTIONAL, + ... +} + +NR-PhaseQuality-r18 ::= SEQUENCE { + phaseQualityIndex-r18 INTEGER (0..179), + phaseQualityResolution-r18 ENUMERATED { + mdot1, + m1, + ... + }, + ... +} + +ReferencePoint-r16 ::= SEQUENCE { + referencePointGeographicLocation-r16 CHOICE { + location3D-r16 EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, + ha-location3D-r16 HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15, + ..., + localOrigin-v1800 LocalOrigin-r18 + }, + ... +} + +RelativeCartesianLocation-r18 ::= SEQUENCE { + cartesianCoordinatesUnits-r18 ENUMERATED { + mm, + cm, + dm, + m, + ... + }, + x-value-r18 X-Value-r18, + y-value-r18 Y-Value-r18, + z-value-r18 Z-Value-r18, + locationUnc-r18 LocationUncertainty-r16 OPTIONAL, -- Need OP + ... +} + +X-Value-r18 ::= SEQUENCE { + delta-x-r18 INTEGER (-1024..1023), + coarse-delta-x-r18 INTEGER (0..4095) OPTIONAL, -- Need OP + ... +} + +Y-Value-r18 ::= SEQUENCE { + delta-y-r18 INTEGER (-1024..1023), + coarse-delta-y-r18 INTEGER (0..4095) OPTIONAL, -- Need OP + ... +} + +Z-Value-r18 ::= SEQUENCE { + delta-z-r18 INTEGER (-1024..1023), + coarse-delta-z-r18 INTEGER (0..4095) OPTIONAL, -- Need OP + ... +} + +RelativeLocation-r16 ::= SEQUENCE { + milli-arc-second-units-r16 ENUMERATED { + mas0-03, + mas0-3, + mas3, + mas30, + ... + }, + height-units-r16 ENUMERATED { + mm, + cm, + m, + ... + }, + delta-latitude-r16 Delta-Latitude-r16, + delta-longitude-r16 Delta-Longitude-r16, + delta-height-r16 Delta-Height-r16, + locationUNC-r16 LocationUncertainty-r16 OPTIONAL, -- Need OP + ... +} + +Delta-Latitude-r16 ::= SEQUENCE { + delta-Latitude-r16 INTEGER (-1024..1023), + coarse-delta-Latitude-r16 INTEGER (0..4095) OPTIONAL, -- Need OP + ... +} + +Delta-Longitude-r16 ::= SEQUENCE { + delta-Longitude-r16 INTEGER (-1024..1023), + coarse-delta-Longitude-r16 INTEGER (0..4095) OPTIONAL, -- Need OP + ... +} + +Delta-Height-r16 ::= SEQUENCE { + delta-Height-r16 INTEGER (-1024..1023), + coarse-delta-Height-r16 INTEGER (0..4095) OPTIONAL, -- Need OP + ... +} + +LocationUncertainty-r16 ::= SEQUENCE { + horizontalUncertainty-r16 INTEGER (0..255), + horizontalConfidence-r16 INTEGER (0..100), + verticalUncertainty-r16 INTEGER (0..255), + verticalConfidence-r16 INTEGER (0..100) +} + +TEG-TimingErrorMargin-r17 ::= ENUMERATED { + tc0, + tc2, + tc4, + tc6, + tc8, + tc12, + tc16, + tc20, + tc24, + tc32, + tc40, + tc48, + tc56, + tc64, + tc72, + tc80 + } + +RxTxTEG-TimingErrorMargin-r17 ::= ENUMERATED { + tc0-5, + tc1, + tc2, + tc4, + tc8, + tc12, + tc16, + tc20, + tc24, + tc32, + tc40, + tc48, + tc64, + tc80, + tc96, + tc128 + } + +OTDOA-ProvideAssistanceData ::= SEQUENCE { + otdoa-ReferenceCellInfo OTDOA-ReferenceCellInfo OPTIONAL, -- Need ON + otdoa-NeighbourCellInfo OTDOA-NeighbourCellInfoList OPTIONAL, -- Need ON + otdoa-Error OTDOA-Error OPTIONAL, -- Need ON + ..., + [[ + otdoa-ReferenceCellInfoNB-r14 OTDOA-ReferenceCellInfoNB-r14 OPTIONAL, -- Need ON + otdoa-NeighbourCellInfoNB-r14 OTDOA-NeighbourCellInfoListNB-r14 OPTIONAL -- Need ON + ]] +} + +OTDOA-ReferenceCellInfo ::= SEQUENCE { + physCellId INTEGER (0..503), + cellGlobalId ECGI OPTIONAL, -- Need ON + earfcnRef ARFCN-ValueEUTRA OPTIONAL, -- Cond NotSameAsServ0 + antennaPortConfig ENUMERATED { + ports1-or-2, + ports4, + ... + } OPTIONAL, -- Cond NotSameAsServ1 + cpLength ENUMERATED { + normal, + extended, + ... + }, + prsInfo PRS-Info OPTIONAL, -- Cond PRS + ..., + [[ + earfcnRef-v9a0 ARFCN-ValueEUTRA-v9a0 OPTIONAL -- Cond NotSameAsServ2 + ]], + [[ + tpId-r14 INTEGER (0..4095) OPTIONAL, -- Need ON + cpLengthCRS-r14 ENUMERATED { + normal, + extended, + ... + } OPTIONAL, -- Cond CRS + sameMBSFNconfigRef-r14 BOOLEAN OPTIONAL, -- Need ON + dlBandwidth-r14 ENUMERATED { + n6, + n15, + n25, + n50, + n75, + n100 + } OPTIONAL, -- Cond NotSameAsServ3 + addPRSconfigRef-r14 SEQUENCE (SIZE (1..maxAddPRSconfig-r14)) OF PRS-Info OPTIONAL -- Need ON + ]], + [[ + nr-LTE-SFN-Offset-r15 INTEGER (0..1023) OPTIONAL -- Cond NR + ]], + [[ + tdd-config-v1520 TDD-Config-v1520 OPTIONAL, -- Need ON + nr-LTE-fineTiming-Offset-r15 INTEGER (0..19) OPTIONAL -- Cond FineOffset + ]] +} + +maxAddPRSconfig-r14 INTEGER ::= 2 + +PRS-Info ::= SEQUENCE { + prs-Bandwidth ENUMERATED { + n6, + n15, + n25, + n50, + n75, + n100, + ... + }, + prs-ConfigurationIndex INTEGER (0..4095), + numDL-Frames ENUMERATED { + sf-1, + sf-2, + sf-4, + sf-6, + ..., + sf-add-v1420 + }, + ..., + prs-MutingInfo-r9 CHOICE { + po2-r9 BIT STRING (SIZE (2)), + po4-r9 BIT STRING (SIZE (4)), + po8-r9 BIT STRING (SIZE (8)), + po16-r9 BIT STRING (SIZE (16)), + ..., + po32-v1420 BIT STRING (SIZE (32)), + po64-v1420 BIT STRING (SIZE (64)), + po128-v1420 BIT STRING (SIZE (128)), + po256-v1420 BIT STRING (SIZE (256)), + po512-v1420 BIT STRING (SIZE (512)), + po1024-v1420 BIT STRING (SIZE (1024)) + } OPTIONAL, -- Need OP + [[ + prsID-r14 INTEGER (0..4095) OPTIONAL, -- Need ON + add-numDL-Frames-r14 INTEGER (1..160) OPTIONAL, -- Cond sf-add + prsOccGroupLen-r14 ENUMERATED { + g2, + g4, + g8, + g16, + g32, + g64, + g128, + ... + } OPTIONAL, -- Cond Occ-Grp + prsHoppingInfo-r14 CHOICE { + nb2-r14 INTEGER (0..maxAvailNarrowBands-Minus1-r14), + nb4-r14 SEQUENCE (SIZE (3)) OF INTEGER (0..maxAvailNarrowBands-Minus1-r14) + } OPTIONAL -- Cond PRS-FH + ]] +} + +maxAvailNarrowBands-Minus1-r14 INTEGER ::= 15 -- Maximum number of narrowbands minus 1 + +TDD-Config-v1520 ::= SEQUENCE { + subframeAssignment-v1520 ENUMERATED { + sa0, + sa1, + sa2, + sa3, + sa4, + sa5, + sa6 + }, + ... +} + +OTDOA-NeighbourCellInfoList ::= SEQUENCE (SIZE (1..maxFreqLayers)) OF OTDOA-NeighbourFreqInfo + +OTDOA-NeighbourFreqInfo ::= SEQUENCE (SIZE (1..24)) OF OTDOA-NeighbourCellInfoElement + +OTDOA-NeighbourCellInfoElement ::= SEQUENCE { + physCellId INTEGER (0..503), + cellGlobalId ECGI OPTIONAL, -- Need ON + earfcn ARFCN-ValueEUTRA OPTIONAL, -- Cond NotSameAsRef0 + cpLength ENUMERATED { + normal, + extended, + ... + } OPTIONAL, -- Cond NotSameAsRef1 + prsInfo PRS-Info OPTIONAL, -- Cond NotSameAsRef2 + antennaPortConfig ENUMERATED { + ports-1-or-2, + ports-4, + ... + } OPTIONAL, -- Cond NotsameAsRef3 + slotNumberOffset INTEGER (0..19) OPTIONAL, -- Cond NotSameAsRef4 + prs-SubframeOffset INTEGER (0..1279) OPTIONAL, -- Cond InterFreq + expectedRSTD INTEGER (0..16383), + expectedRSTD-Uncertainty INTEGER (0..1023), + ..., + [[ + earfcn-v9a0 ARFCN-ValueEUTRA-v9a0 OPTIONAL -- Cond NotSameAsRef5 + ]], + [[ + tpId-r14 INTEGER (0..4095) OPTIONAL, -- Need ON + prs-only-tp-r14 ENUMERATED {true} OPTIONAL, -- Cond TBS + cpLengthCRS-r14 ENUMERATED { + normal, + extended, + ... + } OPTIONAL, -- Cond CRS + sameMBSFNconfigNeighbour-r14 BOOLEAN OPTIONAL, -- Need ON + dlBandwidth-r14 ENUMERATED { + n6, + n15, + n25, + n50, + n75, + n100 + } OPTIONAL, -- Cond NotSameAsRef6 + addPRSconfigNeighbour-r14 SEQUENCE (SIZE (1..maxAddPRSconfig-r14)) OF Add-PRSconfigNeighbourElement-r14 OPTIONAL -- Need ON + ]], + [[ + tdd-config-v1520 TDD-Config-v1520 OPTIONAL -- Need ON + ]] +} + +Add-PRSconfigNeighbourElement-r14 ::= SEQUENCE { + add-prsInfo-r14 PRS-Info OPTIONAL, -- Cond NotSameAsRef7 + ... +} + +maxFreqLayers INTEGER ::= 3 + +OTDOA-ReferenceCellInfoNB-r14 ::= SEQUENCE { + physCellIdNB-r14 INTEGER (0..503) OPTIONAL, -- Cond NoPRS-AD1 + cellGlobalIdNB-r14 ECGI OPTIONAL, -- Cond NoPRS-AD2 + carrierFreqRef-r14 CarrierFreq-NB-r14 OPTIONAL, -- Cond NotSameAsServ1 + earfcn-r14 ARFCN-ValueEUTRA-r14 OPTIONAL, -- Cond Inband + eutra-NumCRS-Ports-r14 ENUMERATED { + ports1-or-2, + ports4 + } OPTIONAL, -- Cond NoPRS-AD3 + otdoa-SIB1-NB-repetitions-r14 ENUMERATED { + r4, + r8, + r16 + } OPTIONAL, -- Cond NotSameAsServ2 + nprsInfo-r14 PRS-Info-NB-r14 OPTIONAL, -- Cond NPRS-Type1 + ..., + [[ + nprsInfo-Type2-v1470 PRS-Info-NB-r14 OPTIONAL -- Cond NPRS-Type2 + ]], + [[ + tdd-config-r15 TDD-Config-v1520 OPTIONAL -- Need ON + ]] +} + +PRS-Info-NB-r14 ::= SEQUENCE (SIZE (1..maxCarrier-r14)) OF NPRS-Info-r14 + +NPRS-Info-r14 ::= SEQUENCE { + operationModeInfoNPRS-r14 ENUMERATED { + inband, + standalone + }, + nprs-carrier-r14 CarrierFreq-NB-r14 OPTIONAL, -- Cond Standalone/Guardband + nprsSequenceInfo-r14 INTEGER (0..174) OPTIONAL, -- Cond Inband + nprsID-r14 INTEGER (0..4095) OPTIONAL, -- Cond NPRS-ID + partA-r14 SEQUENCE { + nprsBitmap-r14 CHOICE { + subframePattern10-r14 BIT STRING (SIZE (10)), + subframePattern40-r14 BIT STRING (SIZE (40)) + }, + nprs-MutingInfoA-r14 CHOICE { + po2-r14 BIT STRING (SIZE (2)), + po4-r14 BIT STRING (SIZE (4)), + po8-r14 BIT STRING (SIZE (8)), + po16-r14 BIT STRING (SIZE (16)), + ... + } OPTIONAL, -- Cond MutingA + ... + } OPTIONAL, -- Cond PartA + partB-r14 SEQUENCE { + nprs-Period-r14 ENUMERATED { + ms160, + ms320, + ms640, + ms1280, + ..., + ms2560-v1510 + }, + nprs-startSF-r14 ENUMERATED { + zero, + one-eighth, + two-eighths, + three-eighths, + four-eighths, + five-eighths, + six-eighths, + seven-eighths, + ... + }, + nprs-NumSF-r14 ENUMERATED { + sf10, + sf20, + sf40, + sf80, + sf160, + sf320, + sf640, + sf1280, + ..., + sf2560-v1510 + }, + nprs-MutingInfoB-r14 CHOICE { + po2-r14 BIT STRING (SIZE (2)), + po4-r14 BIT STRING (SIZE (4)), + po8-r14 BIT STRING (SIZE (8)), + po16-r14 BIT STRING (SIZE (16)), + ... + } OPTIONAL, -- Cond MutingB + ..., + [[ + sib1-SF-TDD-r15 ENUMERATED { + sf0, + sf4, + sf0and5 + } OPTIONAL -- Cond SIB1-TDD + ]] + } OPTIONAL, -- Cond PartB + ..., + [[ + partA-TDD-r15 SEQUENCE { + nprsBitmap-r15 CHOICE { + subframePattern10-TDD-r15 BIT STRING (SIZE (8)), + subframePattern40-TDD-r15 BIT STRING (SIZE (32)), + ... + }, + nprs-MutingInfoA-r15 CHOICE { + po2-r15 BIT STRING (SIZE (2)), + po4-r15 BIT STRING (SIZE (4)), + po8-r15 BIT STRING (SIZE (8)), + po16-r15 BIT STRING (SIZE (16)), + ... + } OPTIONAL, -- Cond MutingA + ... + } OPTIONAL -- Cond PartA-TDD + ]] +} + +maxCarrier-r14 INTEGER ::= 5 + +OTDOA-NeighbourCellInfoListNB-r14 ::= SEQUENCE (SIZE (1..maxCells-r14)) OF OTDOA-NeighbourCellInfoNB-r14 + +OTDOA-NeighbourCellInfoNB-r14 ::= SEQUENCE { + physCellIdNB-r14 INTEGER (0..503) OPTIONAL, -- Cond NoPRS-AD1 + cellGlobalIdNB-r14 ECGI OPTIONAL, -- Cond NoPRS-AD2 + carrierFreq-r14 CarrierFreq-NB-r14 OPTIONAL, -- Cond NotSameAsRef1 + earfcn-r14 ARFCN-ValueEUTRA-r14 OPTIONAL, -- Cond Inband + eutra-NumCRS-Ports-r14 ENUMERATED { + ports-1-or-2, + ports-4, + ... + } OPTIONAL, -- Cond NotsameAsRef2 + otdoa-SIB1-NB-repetitions-r14 ENUMERATED { + r4, + r8, + r16 + } OPTIONAL, -- Cond NotSameAsRef3 + nprsInfo-r14 PRS-Info-NB-r14 OPTIONAL, -- Cond NotsameAsRef4 + nprs-slotNumberOffset-r14 INTEGER (0..19) OPTIONAL, -- Cond NotsameAsRef5 + nprs-SFN-Offset-r14 INTEGER (0..63) OPTIONAL, -- Cond NotsameAsRef6 + nprs-SubframeOffset-r14 INTEGER (0..1279) OPTIONAL, -- Need OP + expectedRSTD-r14 INTEGER (0..16383) OPTIONAL, -- Cond NoPRS-AD3 + expectedRSTD-Uncertainty-r14 INTEGER (0..1023) OPTIONAL, -- Cond NoPRS-AD3 + prsNeighbourCellIndex-r14 INTEGER (1..72) OPTIONAL, -- Cond PRS-AD + ..., + [[ + nprsInfo-Type2-v1470 PRS-Info-NB-r14 OPTIONAL -- Cond NotSameAsRef4 + ]], + [[ + tdd-config-r15 TDD-Config-v1520 OPTIONAL -- Need ON + ]] +} + +maxCells-r14 INTEGER ::= 72 + +OTDOA-RequestAssistanceData ::= SEQUENCE { + physCellId INTEGER (0..503), + ..., + [[ + adType-r14 BIT STRING { + prs (0), + nprs (1) + } (SIZE (1..8)) OPTIONAL + ]], + [[ + nrPhysCellId-r15 INTEGER (0..1007) OPTIONAL + ]] +} + +OTDOA-ProvideLocationInformation ::= SEQUENCE { + otdoaSignalMeasurementInformation OTDOA-SignalMeasurementInformation OPTIONAL, + otdoa-Error OTDOA-Error OPTIONAL, + ..., + [[ + otdoaSignalMeasurementInformation-NB-r14 OTDOA-SignalMeasurementInformation-NB-r14 OPTIONAL + ]] +} + +OTDOA-SignalMeasurementInformation ::= SEQUENCE { + systemFrameNumber BIT STRING (SIZE (10)), + physCellIdRef INTEGER (0..503), + cellGlobalIdRef ECGI OPTIONAL, + earfcnRef ARFCN-ValueEUTRA OPTIONAL, -- Cond NotSameAsRef0 + referenceQuality OTDOA-MeasQuality OPTIONAL, + neighbourMeasurementList NeighbourMeasurementList, + ..., + [[ + earfcnRef-v9a0 ARFCN-ValueEUTRA-v9a0 OPTIONAL -- Cond NotSameAsRef1 + ]], + [[ + tpIdRef-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer0 + prsIdRef-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer1 + additionalPathsRef-r14 AdditionalPathList-r14 OPTIONAL, + nprsIdRef-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer2 + carrierFreqOffsetNB-Ref-r14 CarrierFreqOffsetNB-r14 OPTIONAL, -- Cond NB-IoT + hyperSFN-r14 BIT STRING (SIZE (10)) OPTIONAL -- Cond H-SFN + ]], + [[ + motionTimeSource-r15 MotionTimeSource-r15 OPTIONAL + ]] +} + +NeighbourMeasurementList ::= SEQUENCE (SIZE (1..24)) OF NeighbourMeasurementElement + +NeighbourMeasurementElement ::= SEQUENCE { + physCellIdNeighbour INTEGER (0..503), + cellGlobalIdNeighbour ECGI OPTIONAL, + earfcnNeighbour ARFCN-ValueEUTRA OPTIONAL, -- Cond NotSameAsRef2 + rstd INTEGER (0..12711), + rstd-Quality OTDOA-MeasQuality, + ..., + [[ + earfcnNeighbour-v9a0 ARFCN-ValueEUTRA-v9a0 OPTIONAL -- Cond NotSameAsRef3 + ]], + [[ + tpIdNeighbour-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer0 + prsIdNeighbour-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer1 + delta-rstd-r14 INTEGER (0..5) OPTIONAL, + additionalPathsNeighbour-r14 AdditionalPathList-r14 OPTIONAL, + nprsIdNeighbour-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer2 + carrierFreqOffsetNB-Neighbour-r14 CarrierFreqOffsetNB-r14 OPTIONAL + -- Cond NB-IoT + ]], + [[ + delta-SFN-r15 INTEGER (-8192..8191) OPTIONAL + ]] +} + +AdditionalPathList-r14 ::= SEQUENCE (SIZE (1..maxPaths-r14)) OF AdditionalPath-r14 + +maxPaths-r14 INTEGER ::= 2 + +MotionTimeSource-r15 ::= SEQUENCE { + timeSource-r15 ENUMERATED { + servingCell, + referenceCell, + gnss, + mixed, + other, + none, + ... + } +} + +OTDOA-SignalMeasurementInformation-NB-r14 ::= SEQUENCE { + systemFrameNumber-r14 BIT STRING (SIZE (10)), + physCellIdRef-r14 INTEGER (0..503), + cellGlobalIdRef-r14 ECGI OPTIONAL, + earfcnRef-r14 ARFCN-ValueEUTRA-r14 OPTIONAL, -- Cond NotSameAsRef0 + referenceQuality-r14 OTDOA-MeasQuality OPTIONAL, + neighbourMeasurementList-r14 NeighbourMeasurementList-NB-r14, + tpIdRef-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer0 + prsIdRef-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer1 + additionalPathsRef-r14 AdditionalPathList-r14 OPTIONAL, + nprsIdRef-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer2 + carrierFreqOffsetNB-Ref-r14 CarrierFreqOffsetNB-r14 OPTIONAL, -- Cond NB-IoT + hyperSFN-r14 BIT STRING (SIZE (10)) OPTIONAL, -- Cond H-SFN + ... +} + +NeighbourMeasurementList-NB-r14 ::= SEQUENCE (SIZE (1..24)) OF NeighbourMeasurementElement-NB-r14 + +NeighbourMeasurementElement-NB-r14 ::= SEQUENCE { + physCellIdNeighbour-r14 INTEGER (0..503), + cellGlobalIdNeighbour-r14 ECGI OPTIONAL, + earfcnNeighbour-r14 ARFCN-ValueEUTRA-r14 OPTIONAL, -- Cond NotSameAsRef2 + rstd-r14 INTEGER (0..12711), + rstd-Quality-r14 OTDOA-MeasQuality, + tpIdNeighbour-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer0 + prsIdNeighbour-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer1 + delta-rstd-r14 INTEGER (0..5) OPTIONAL, + additionalPathsNeighbour-r14 AdditionalPathList-r14 OPTIONAL, + nprsIdNeighbour-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer2 + carrierFreqOffsetNB-Neighbour-r14 CarrierFreqOffsetNB-r14 OPTIONAL, -- Cond NB-IoT + ... +} + +OTDOA-MeasQuality ::= SEQUENCE { + error-Resolution BIT STRING (SIZE (2)), + error-Value BIT STRING (SIZE (5)), + error-NumSamples BIT STRING (SIZE (3)) OPTIONAL, + ... +} + +AdditionalPath-r14 ::= SEQUENCE { + relativeTimeDifference-r14 INTEGER (-256..255), + path-Quality-r14 OTDOA-MeasQuality OPTIONAL, + ... +} + +OTDOA-RequestLocationInformation ::= SEQUENCE { + assistanceAvailability BOOLEAN, + ..., + [[ + multipathRSTD-r14 ENUMERATED {requested} OPTIONAL, -- Need ON + maxNoOfRSTDmeas-r14 INTEGER (1..32) OPTIONAL -- Need ON + ]], + [[ + motionMeasurements-r15 ENUMERATED {requested} OPTIONAL -- Need ON + ]] +} + +OTDOA-ProvideCapabilities ::= SEQUENCE { + otdoa-Mode BIT STRING { + ue-assisted (0), + ue-assisted-NB-r14 (1), + ue-assisted-NB-TDD-r15 (2) + } (SIZE (1..8)), + ..., + supportedBandListEUTRA SEQUENCE (SIZE (1..maxBands)) OF SupportedBandEUTRA OPTIONAL, + supportedBandListEUTRA-v9a0 SEQUENCE (SIZE (1..maxBands)) OF SupportedBandEUTRA-v9a0 OPTIONAL, + interFreqRSTDmeasurement-r10 ENUMERATED {supported} OPTIONAL, + additionalNeighbourCellInfoList-r10 ENUMERATED {supported} OPTIONAL, + prs-id-r14 ENUMERATED {supported} OPTIONAL, + tp-separation-via-muting-r14 ENUMERATED {supported} OPTIONAL, + additional-prs-config-r14 ENUMERATED {supported} OPTIONAL, + prs-based-tbs-r14 ENUMERATED {supported} OPTIONAL, + additionalPathsReport-r14 ENUMERATED {supported} OPTIONAL, + densePrsConfig-r14 ENUMERATED {supported} OPTIONAL, + maxSupportedPrsBandwidth-r14 ENUMERATED { + n6, + n15, + n25, + n50, + n75, + n100, + ... + } OPTIONAL, + prsOccGroup-r14 ENUMERATED {supported} OPTIONAL, + prsFrequencyHopping-r14 ENUMERATED {supported} OPTIONAL, + maxSupportedPrsConfigs-r14 ENUMERATED { + c2, + c3 + } OPTIONAL, + periodicalReporting-r14 ENUMERATED {supported} OPTIONAL, + multiPrbNprs-r14 ENUMERATED {supported} OPTIONAL, + idleStateForMeasurements-r14 ENUMERATED {required} OPTIONAL, + numberOfRXantennas-r14 ENUMERATED { + rx1, + ... + } OPTIONAL, + motionMeasurements-r15 ENUMERATED {supported} OPTIONAL, + interRAT-RSTDmeasurement-r15 ENUMERATED {supported} OPTIONAL, + scheduledLocationRequestSupported-r17 ScheduledLocationTimeSupport-r17 OPTIONAL +} + +maxBands INTEGER ::= 64 + +SupportedBandEUTRA ::= SEQUENCE { + bandEUTRA INTEGER (1..maxFBI) +} + +SupportedBandEUTRA-v9a0 ::= SEQUENCE { + bandEUTRA-v9a0 INTEGER (maxFBI-Plus1..maxFBI2) OPTIONAL +} + +maxFBI INTEGER ::= 64 -- Maximum value of frequency band indicator + +maxFBI-Plus1 INTEGER ::= 65 -- lowest value extended FBI range + +maxFBI2 INTEGER ::= 256 -- highest value extended FBI range + +OTDOA-RequestCapabilities ::= SEQUENCE {...} + +OTDOA-Error ::= CHOICE { + locationServerErrorCauses OTDOA-LocationServerErrorCauses, + targetDeviceErrorCauses OTDOA-TargetDeviceErrorCauses, + ... +} + +OTDOA-LocationServerErrorCauses ::= SEQUENCE { + cause ENUMERATED { + undefined, + assistanceDataNotSupportedByServer, + assistanceDataSupportedButCurrentlyNotAvailableByServer, + ... + }, + ... +} + +OTDOA-TargetDeviceErrorCauses ::= SEQUENCE { + cause ENUMERATED { + undefined, + assistance-data-missing, + unableToMeasureReferenceCell, + unableToMeasureAnyNeighbourCell, + attemptedButUnableToMeasureSomeNeighbourCells, + ... + }, + ... +} + +A-GNSS-ProvideAssistanceData ::= SEQUENCE { + gnss-CommonAssistData GNSS-CommonAssistData OPTIONAL, -- Need ON + gnss-GenericAssistData GNSS-GenericAssistData OPTIONAL, -- Need ON + gnss-Error A-GNSS-Error OPTIONAL, -- Need ON + ..., + [[ + gnss-PeriodicAssistData-r15 GNSS-PeriodicAssistData-r15 OPTIONAL -- Cond CtrTrans + ]] +} + +GNSS-CommonAssistData ::= SEQUENCE { + gnss-ReferenceTime GNSS-ReferenceTime OPTIONAL, -- Need ON + gnss-ReferenceLocation GNSS-ReferenceLocation OPTIONAL, -- Need ON + gnss-IonosphericModel GNSS-IonosphericModel OPTIONAL, -- Need ON + gnss-EarthOrientationParameters GNSS-EarthOrientationParameters OPTIONAL, -- Need ON + ..., + [[ + gnss-RTK-ReferenceStationInfo-r15 GNSS-RTK-ReferenceStationInfo-r15 OPTIONAL, -- Need ON + gnss-RTK-CommonObservationInfo-r15 GNSS-RTK-CommonObservationInfo-r15 OPTIONAL, -- Cond RTK + gnss-RTK-AuxiliaryStationData-r15 GNSS-RTK-AuxiliaryStationData-r15 OPTIONAL -- Need ON + ]], + [[ + gnss-SSR-CorrectionPoints-r16 GNSS-SSR-CorrectionPoints-r16 OPTIONAL -- Need ON + ]], + [[ + gnss-Integrity-ServiceParameters-r17 GNSS-Integrity-ServiceParameters-r17 OPTIONAL, -- Need ON + gnss-Integrity-ServiceAlert-r17 GNSS-Integrity-ServiceAlert-r17 OPTIONAL -- Need OR + ]], + [[ + gnss-los-nlos-GridPoints-r18 GNSS-LOS-NLOS-GridPoints-r18 OPTIONAL, -- Need ON + gnss-SSR-IOD-Update-r18 GNSS-SSR-IOD-Update-r18 OPTIONAL -- Need OR + ]] +} + +GNSS-GenericAssistData ::= SEQUENCE (SIZE (1..16)) OF GNSS-GenericAssistDataElement + +GNSS-GenericAssistDataElement ::= SEQUENCE { + gnss-ID GNSS-ID, + sbas-ID SBAS-ID OPTIONAL, -- Cond GNSS-ID-SBAS + gnss-TimeModels GNSS-TimeModelList OPTIONAL, -- Need ON + gnss-DifferentialCorrections GNSS-DifferentialCorrections OPTIONAL, -- Need ON + gnss-NavigationModel GNSS-NavigationModel OPTIONAL, -- Need ON + gnss-RealTimeIntegrity GNSS-RealTimeIntegrity OPTIONAL, -- Need ON + gnss-DataBitAssistance GNSS-DataBitAssistance OPTIONAL, -- Need ON + gnss-AcquisitionAssistance GNSS-AcquisitionAssistance OPTIONAL, -- Need ON + gnss-Almanac GNSS-Almanac OPTIONAL, -- Need ON + gnss-UTC-Model GNSS-UTC-Model OPTIONAL, -- Need ON + gnss-AuxiliaryInformation GNSS-AuxiliaryInformation OPTIONAL, -- Need ON + ..., + [[ + bds-DifferentialCorrections-r12 BDS-DifferentialCorrections-r12 OPTIONAL, -- Cond GNSS-ID-BDS + bds-GridModel-r12 BDS-GridModelParameter-r12 OPTIONAL -- Cond GNSS-ID-BDS + ]], + [[ + gnss-RTK-Observations-r15 GNSS-RTK-Observations-r15 OPTIONAL, -- Need ON + glo-RTK-BiasInformation-r15 GLO-RTK-BiasInformation-r15 OPTIONAL, -- Cond GNSS-ID-GLO + gnss-RTK-MAC-CorrectionDifferences-r15 GNSS-RTK-MAC-CorrectionDifferences-r15 OPTIONAL, -- Need ON + gnss-RTK-Residuals-r15 GNSS-RTK-Residuals-r15 OPTIONAL, -- Need ON + gnss-RTK-FKP-Gradients-r15 GNSS-RTK-FKP-Gradients-r15 OPTIONAL, -- Need ON + gnss-SSR-OrbitCorrections-r15 GNSS-SSR-OrbitCorrections-r15 OPTIONAL, -- Need ON + gnss-SSR-ClockCorrections-r15 GNSS-SSR-ClockCorrections-r15 OPTIONAL, -- Need ON + gnss-SSR-CodeBias-r15 GNSS-SSR-CodeBias-r15 OPTIONAL -- Need ON + ]], + [[ + gnss-SSR-URA-r16 GNSS-SSR-URA-r16 OPTIONAL, -- Need ON + gnss-SSR-PhaseBias-r16 GNSS-SSR-PhaseBias-r16 OPTIONAL, -- Need ON + gnss-SSR-STEC-Correction-r16 GNSS-SSR-STEC-Correction-r16 OPTIONAL, -- Need ON + gnss-SSR-GriddedCorrection-r16 GNSS-SSR-GriddedCorrection-r16 OPTIONAL, -- Need ON + navic-DifferentialCorrections-r16 NavIC-DifferentialCorrections-r16 OPTIONAL, -- Cond GNSS-ID-NavIC + navic-GridModel-r16 NavIC-GridModelParameter-r16 OPTIONAL -- Cond GNSS-ID-NavIC + ]], + [[ + gnss-SSR-OrbitCorrectionsSet2-r17 GNSS-SSR-OrbitCorrectionsSet2-r17 OPTIONAL, -- Need ON + gnss-SSR-ClockCorrectionsSet2-r17 GNSS-SSR-ClockCorrectionsSet2-r17 OPTIONAL, -- Need ON + gnss-SSR-URA-Set2-r17 GNSS-SSR-URA-Set2-r17 OPTIONAL -- Need ON + ]], + [[ + gnss-LOS-NLOS-GriddedIndications-r18 GNSS-LOS-NLOS-GriddedIndications-r18 OPTIONAL, -- Need ON + gnss-SSR-SatellitePCVResiduals-r18 GNSS-SSR-SatellitePCVResiduals-r18 OPTIONAL -- Need ON + ]] +} + +GNSS-PeriodicAssistData-r15 ::= SEQUENCE { + gnss-RTK-PeriodicObservations-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON + glo-RTK-PeriodicBiasInformation-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON + gnss-RTK-MAC-PeriodicCorrectionDifferences-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON + gnss-RTK-PeriodicResiduals-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON + gnss-RTK-FKP-PeriodicGradients-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON + gnss-SSR-PeriodicOrbitCorrections-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON + gnss-SSR-PeriodicClockCorrections-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON + gnss-SSR-PeriodicCodeBias-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON + ..., + [[ + gnss-SSR-PeriodicURA-r16 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON + gnss-SSR-PeriodicPhaseBias-r16 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON + gnss-SSR-PeriodicSTEC-Correction-r16 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON + gnss-SSR-PeriodicGriddedCorrection-r16 GNSS-PeriodicControlParam-r15 OPTIONAL -- Need ON + ]], + [[ + gnss-Integrity-PeriodicServiceAlert-r17 GNSS-PeriodicControlParam-r15 OPTIONAL -- Need ON + ]], + [[ + gnss-SSR-PeriodicOrbitCorrectionsSet2-r17 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON + gnss-SSR-PeriodicClockCorrectionsSet2-r17 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON + gnss-SSR-PeriodicURA-Set2-r17 GNSS-PeriodicControlParam-r15 OPTIONAL -- Need ON + ]], + [[ + gnss-SSR-PeriodicIOD-Update-r18 GNSS-PeriodicControlParam-r15 OPTIONAL -- Need OR + ]] +} + +GNSS-ReferenceTime ::= SEQUENCE { + gnss-SystemTime GNSS-SystemTime, + referenceTimeUnc INTEGER (0..127) OPTIONAL, -- Cond noFTA + gnss-ReferenceTimeForCells SEQUENCE (SIZE (1..16)) OF GNSS-ReferenceTimeForOneCell OPTIONAL, -- Need ON + ... +} + +GNSS-ReferenceTimeForOneCell ::= SEQUENCE { + networkTime NetworkTime, + referenceTimeUnc INTEGER (0..127), + bsAlign ENUMERATED {true} OPTIONAL, + ... +} + +GNSS-SystemTime ::= SEQUENCE { + gnss-TimeID GNSS-ID, + gnss-DayNumber INTEGER (0..32767), + gnss-TimeOfDay INTEGER (0..86399), + gnss-TimeOfDayFrac-msec INTEGER (0..999) OPTIONAL, -- Need ON + notificationOfLeapSecond BIT STRING (SIZE (2)) OPTIONAL, -- Cond gnss-TimeID-glonass + gps-TOW-Assist GPS-TOW-Assist OPTIONAL, -- Cond gnss-TimeID-gps + ... +} + +GPS-TOW-Assist ::= SEQUENCE (SIZE (1..64)) OF GPS-TOW-AssistElement + +GPS-TOW-AssistElement ::= SEQUENCE { + satelliteID INTEGER (1..64), + tlmWord INTEGER (0..16383), + antiSpoof INTEGER (0..1), + alert INTEGER (0..1), + tlmRsvdBits INTEGER (0..3), + ... +} + +NetworkTime ::= SEQUENCE { + secondsFromFrameStructureStart INTEGER (0..12533), + fractionalSecondsFromFrameStructureStart INTEGER (0..3999999), + frameDrift INTEGER (-64..63) OPTIONAL, -- Cond GNSSsynch + cellID CHOICE { + eUTRA SEQUENCE { + physCellId INTEGER (0..503), + cellGlobalIdEUTRA CellGlobalIdEUTRA-AndUTRA OPTIONAL, -- Need ON + earfcn ARFCN-ValueEUTRA, + ..., + [[ + earfcn-v9a0 ARFCN-ValueEUTRA-v9a0 OPTIONAL -- Cond EARFCN-max + ]] + }, + uTRA SEQUENCE { + mode CHOICE { + fdd SEQUENCE { + primary-CPICH-Info INTEGER (0..511), + ... + }, + tdd SEQUENCE { + cellParameters INTEGER (0..127), + ... + } + }, + cellGlobalIdUTRA CellGlobalIdEUTRA-AndUTRA OPTIONAL, -- Need ON + uarfcn ARFCN-ValueUTRA, + ... + }, + gSM SEQUENCE { + bcchCarrier INTEGER (0..1023), + bsic INTEGER (0..63), + cellGlobalIdGERAN CellGlobalIdGERAN OPTIONAL, -- Need ON + ... + }, + ..., + nBIoT-r14 SEQUENCE { + nbPhysCellId-r14 INTEGER (0..503), + nbCellGlobalId-r14 ECGI OPTIONAL, -- Need ON + nbCarrierFreq-r14 CarrierFreq-NB-r14, + ... + }, + nr-r15 SEQUENCE { + nrPhysCellId-r15 INTEGER (0..1007), + nrCellGlobalID-r15 NCGI-r15 OPTIONAL, -- Need ON + nrARFCN-r15 ARFCN-ValueNR-r15, + ... + } + }, + ... +} + +GNSS-ReferenceLocation ::= SEQUENCE { + threeDlocation EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, + ... +} + +GNSS-IonosphericModel ::= SEQUENCE { + klobucharModel KlobucharModelParameter OPTIONAL, -- Need ON + neQuickModel NeQuickModelParameter OPTIONAL, -- Need ON + ..., + [[ + klobucharModel2-r16 KlobucharModel2Parameter-r16 OPTIONAL -- Need ON + ]] +} + +KlobucharModelParameter ::= SEQUENCE { + dataID BIT STRING (SIZE (2)), + alfa0 INTEGER (-128..127), + alfa1 INTEGER (-128..127), + alfa2 INTEGER (-128..127), + alfa3 INTEGER (-128..127), + beta0 INTEGER (-128..127), + beta1 INTEGER (-128..127), + beta2 INTEGER (-128..127), + beta3 INTEGER (-128..127), + ... +} + +KlobucharModel2Parameter-r16 ::= SEQUENCE { + alfa1-r16 INTEGER (0..1023), + alfa2-r16 INTEGER (-128..127), + alfa3-r16 INTEGER (0..255), + alfa4-r16 INTEGER (0..255), + alfa5-r16 INTEGER (0..255), + alfa6-r16 INTEGER (-128..127), + alfa7-r16 INTEGER (-128..127), + alfa8-r16 INTEGER (-128..127), + alfa9-r16 INTEGER (-128..127), + ... +} + +NeQuickModelParameter ::= SEQUENCE { + ai0 INTEGER (0..2047), + ai1 INTEGER (-1024..1023), + ai2 INTEGER (-8192..8191), + ionoStormFlag1 INTEGER (0..1) OPTIONAL, -- Need OP + ionoStormFlag2 INTEGER (0..1) OPTIONAL, -- Need OP + ionoStormFlag3 INTEGER (0..1) OPTIONAL, -- Need OP + ionoStormFlag4 INTEGER (0..1) OPTIONAL, -- Need OP + ionoStormFlag5 INTEGER (0..1) OPTIONAL, -- Need OP + ... +} + +GNSS-EarthOrientationParameters ::= SEQUENCE { + teop INTEGER (0..65535), + pmX INTEGER (-1048576..1048575), + pmXdot INTEGER (-16384..16383), + pmY INTEGER (-1048576..1048575), + pmYdot INTEGER (-16384..16383), + deltaUT1 INTEGER (-1073741824..1073741823), + deltaUT1dot INTEGER (-262144..262143), + ... +} + +GNSS-RTK-ReferenceStationInfo-r15 ::= SEQUENCE { + referenceStationID-r15 GNSS-ReferenceStationID-r15, + referenceStationIndicator-r15 ENUMERATED { + physical, + non-physical + }, + antenna-reference-point-ECEF-X-r15 INTEGER (-137438953472..137438953471), + antenna-reference-point-ECEF-Y-r15 INTEGER (-137438953472..137438953471), + antenna-reference-point-ECEF-Z-r15 INTEGER (-137438953472..137438953471), + antennaHeight-r15 INTEGER (0..65535) OPTIONAL, -- Need ON + antennaDescription-r15 AntennaDescription-r15 OPTIONAL, -- Need ON + antenna-reference-point-unc-r15 AntennaReferencePointUnc-r15 OPTIONAL, -- Need ON + physical-reference-station-info-r15 PhysicalReferenceStationInfo-r15 OPTIONAL, -- Cond NP + ..., + [[ + equalIntegerAmbiguityLevel-r16 EqualIntegerAmbiguityLevel-r16 OPTIONAL -- Need ON + ]] +} + +AntennaDescription-r15 ::= SEQUENCE { + antennaDescriptor-r15 VisibleString (SIZE (1..256)), + antennaSetUpID-r15 ENUMERATED {non-zero} OPTIONAL, -- Need OP + ... +} + +AntennaReferencePointUnc-r15 ::= SEQUENCE { + uncertainty-X-r15 INTEGER (0..255), + confidence-X-r15 INTEGER (0..100), + uncertainty-Y-r15 INTEGER (0..255), + confidence-Y-r15 INTEGER (0..100), + uncertainty-Z-r15 INTEGER (0..255), + confidence-Z-r15 INTEGER (0..100), + ... +} + +PhysicalReferenceStationInfo-r15 ::= SEQUENCE { + physicalReferenceStationID-r15 GNSS-ReferenceStationID-r15, + physical-ARP-ECEF-X-r15 INTEGER (-137438953472..137438953471), + physical-ARP-ECEF-Y-r15 INTEGER (-137438953472..137438953471), + physical-ARP-ECEF-Z-r15 INTEGER (-137438953472..137438953471), + physical-ARP-unc-r15 AntennaReferencePointUnc-r15 OPTIONAL, -- Need ON + ... +} + +EqualIntegerAmbiguityLevel-r16 ::= CHOICE { + allReferenceStations-r16 NULL, + referenceStationList-r16 ReferenceStationList-r16 +} + +ReferenceStationList-r16 ::= SEQUENCE (SIZE (1..16)) OF GNSS-ReferenceStationID-r15 + +GNSS-RTK-CommonObservationInfo-r15 ::= SEQUENCE { + referenceStationID-r15 GNSS-ReferenceStationID-r15, + clockSteeringIndicator-r15 INTEGER (0..3), + externalClockIndicator-r15 INTEGER (0..3), + smoothingIndicator-r15 BIT STRING (SIZE (1)), + smoothingInterval-r15 BIT STRING (SIZE (3)), + ... +} + +GNSS-RTK-AuxiliaryStationData-r15 ::= SEQUENCE { + networkID-r15 GNSS-NetworkID-r15, + subNetworkID-r15 GNSS-SubNetworkID-r15 OPTIONAL, -- Need ON + master-referenceStationID-r15 GNSS-ReferenceStationID-r15, + auxiliaryStationList-r15 AuxiliaryStationList-r15, + ... +} + +AuxiliaryStationList-r15 ::= SEQUENCE (SIZE (1..32)) OF AuxiliaryStationElement-r15 + +AuxiliaryStationElement-r15 ::= SEQUENCE { + aux-referenceStationID-r15 GNSS-ReferenceStationID-r15, + aux-master-delta-latitude-r15 INTEGER (-524288..524287), + aux-master-delta-longitude-r15 INTEGER (-1048576..1048575), + aux-master-delta-height-r15 INTEGER (-4194304..4194303), + aux-ARP-unc-r15 Aux-ARP-Unc-r15 OPTIONAL, -- Need ON + ... +} + +Aux-ARP-Unc-r15 ::= SEQUENCE { + horizontalUncertainty-r15 INTEGER (0..255), + horizontalConfidence-r15 INTEGER (0..100), + verticalUncertainty-r15 INTEGER (0..255) OPTIONAL, -- Need ON + verticalConfidence-r15 INTEGER (0..100) OPTIONAL, -- Need ON + ... +} + +GNSS-SSR-CorrectionPoints-r16 ::= SEQUENCE { + correctionPointSetID-r16 INTEGER (0..16383), + correctionPoints-r16 CHOICE { + listOfCorrectionPoints-r16 GNSS-SSR-ListOfCorrectionPoints-r16, + arrayOfCorrectionPoints-r16 GNSS-SSR-ArrayOfCorrectionPoints-r16 + }, + ... +} + +GNSS-SSR-ListOfCorrectionPoints-r16 ::= SEQUENCE { + referencePointLatitude-r16 INTEGER (-16384..16383), + referencePointLongitude-r16 INTEGER (-32768..32767), + relativeLocationsList-r16 SEQUENCE (SIZE (0..63)) OF RelativeLocationElement-r16, + ... +} + +RelativeLocationElement-r16 ::= SEQUENCE { + deltaLatitude-r16 INTEGER (-512..511), + deltaLongitude-r16 INTEGER (-1024..1023), + ... +} + +GNSS-SSR-ArrayOfCorrectionPoints-r16 ::= SEQUENCE { + referencePointLatitude-r16 INTEGER (-16384..16383), + referencePointLongitude-r16 INTEGER (-32768..32767), + numberOfStepsLatitude-r16 INTEGER (0..63), + numberOfStepsLongitude-r16 INTEGER (0..63), + stepOfLatitude-r16 INTEGER (1..511), + stepOfLongitude-r16 INTEGER (1..1023), + bitmaskOfGrids-r16 BIT STRING (SIZE (64)) OPTIONAL, -- Need OP + ... +} + +GNSS-Integrity-ServiceParameters-r17 ::= SEQUENCE { + irMinimum-r17 INTEGER (0..255), + irMaximum-r17 INTEGER (0..255), + ... +} + +GNSS-Integrity-ServiceAlert-r17 ::= SEQUENCE { + ionosphereDoNotUse-r17 BOOLEAN, + troposphereDoNotUse-r17 BOOLEAN, + ... +} + +GNSS-LOS-NLOS-GridPoints-r18 ::= SEQUENCE { + gridPointsSetID-r18 INTEGER (0..16383), + horizontalGridPoints-r18 ArrayOfGridPoints-r18, + referenceAltitudeFine-r18 INTEGER (0..9) OPTIONAL, -- Need OP + verticalGridPoints-r18 VerticalGridPoints-r18 OPTIONAL, -- Cond 3D + ... +} + +ArrayOfGridPoints-r18 ::= SEQUENCE { + referencePointLatitude-r18 INTEGER (-16777216..16777215), + referencePointLongitude-r18 INTEGER (-33554432..33554431), + numberOfStepsSouth-r18 INTEGER (0..255), + numberOfStepsEast-r18 INTEGER (0..255), + stepSouth-r18 SpatialDelta-r18, + stepEast-r18 SpatialDelta-r18, + bitmaskOfGrids-r18 CHOICE { + bog16-r18 BIT STRING (SIZE (16)), + bog64-r18 BIT STRING (SIZE (64)), + bog256-r18 BIT STRING (SIZE (256)), + ... + } OPTIONAL, -- Need OP + ... +} + +VerticalGridPoints-r18 ::= SEQUENCE { + referenceAltitudeCoarse-r18 INTEGER (-50..900), + numberOfStepsDown-r18 INTEGER (1..3), + stepDown-r18 SpatialDelta-r18, + upperValidityDeltaAltitude-r18 SpatialDelta-r18 OPTIONAL, -- Need OP + lowerValidityDeltaAltitude-r18 SpatialDelta-r18 OPTIONAL, -- Need OP + ... +} + +SpatialDelta-r18 ::= ENUMERATED { + n1, + n2, + n3, + n4, + n5, + n10, + n20, + n50, + n100 + } + +GNSS-SSR-IOD-Update-r18 ::= SEQUENCE { + epochTime-r18 GNSS-SystemTime, + ssrUpdateInterval-r18 INTEGER (0..15), + iod-ssr-r18 INTEGER (0..15), + iod-ssr-PCVResiduals-r18 INTEGER (0..64), + ... +} + +GNSS-TimeModelList ::= SEQUENCE (SIZE (1..15)) OF GNSS-TimeModelElement + +GNSS-TimeModelElement ::= SEQUENCE { + gnss-TimeModelRefTime INTEGER (0..65535), + tA0 INTEGER (-67108864..67108863), + tA1 INTEGER (-4096..4095) OPTIONAL, -- Need ON + tA2 INTEGER (-64..63) OPTIONAL, -- Need ON + gnss-TO-ID INTEGER (1..15), + weekNumber INTEGER (0..8191) OPTIONAL, -- Need ON + deltaT INTEGER (-128..127) OPTIONAL, -- Need ON + ... +} + +GNSS-DifferentialCorrections ::= SEQUENCE { + dgnss-RefTime INTEGER (0..3599), + dgnss-SgnTypeList DGNSS-SgnTypeList, + ... +} + +DGNSS-SgnTypeList ::= SEQUENCE (SIZE (1..3)) OF DGNSS-SgnTypeElement + +DGNSS-SgnTypeElement ::= SEQUENCE { + gnss-SignalID GNSS-SignalID, + gnss-StatusHealth INTEGER (0..7), + dgnss-SatList DGNSS-SatList, + ... +} + +DGNSS-SatList ::= SEQUENCE (SIZE (1..64)) OF DGNSS-CorrectionsElement + +DGNSS-CorrectionsElement ::= SEQUENCE { + svID SV-ID, + iod BIT STRING (SIZE (11)), + udre INTEGER (0..3), + pseudoRangeCor INTEGER (-2047..2047), + rangeRateCor INTEGER (-127..127), + udreGrowthRate INTEGER (0..7) OPTIONAL, -- Need ON + udreValidityTime INTEGER (0..7) OPTIONAL, -- Need ON + ... +} + +GNSS-NavigationModel ::= SEQUENCE { + nonBroadcastIndFlag INTEGER (0..1), + gnss-SatelliteList GNSS-NavModelSatelliteList, + ... +} + +GNSS-NavModelSatelliteList ::= SEQUENCE (SIZE (1..64)) OF GNSS-NavModelSatelliteElement + +GNSS-NavModelSatelliteElement ::= SEQUENCE { + svID SV-ID, + svHealth BIT STRING (SIZE (8)), + iod BIT STRING (SIZE (11)), + gnss-ClockModel GNSS-ClockModel, + gnss-OrbitModel GNSS-OrbitModel, + ..., + [[ + svHealthExt-v1240 BIT STRING (SIZE (4)) OPTIONAL -- Need ON + ]] +} + +GNSS-ClockModel ::= CHOICE { + standardClockModelList StandardClockModelList, -- Model-1 + nav-ClockModel NAV-ClockModel, -- Model-2 + cnav-ClockModel CNAV-ClockModel, -- Model-3 + glonass-ClockModel GLONASS-ClockModel, -- Model-4 + sbas-ClockModel SBAS-ClockModel, -- Model-5 + ..., + bds-ClockModel-r12 BDS-ClockModel-r12, -- Model-6 + bds-ClockModel2-r16 BDS-ClockModel2-r16, -- Model-7 + navic-ClockModel-r16 NavIC-ClockModel-r16 -- Model-8 +} + +GNSS-OrbitModel ::= CHOICE { + keplerianSet NavModelKeplerianSet, -- Model-1 + nav-KeplerianSet NavModelNAV-KeplerianSet, -- Model-2 + cnav-KeplerianSet NavModelCNAV-KeplerianSet, -- Model-3 + glonass-ECEF NavModel-GLONASS-ECEF, -- Model-4 + sbas-ECEF NavModel-SBAS-ECEF, -- Model-5 + ..., + bds-KeplerianSet-r12 NavModel-BDS-KeplerianSet-r12, -- Model-6 + bds-KeplerianSet2-r16 NavModel-BDS-KeplerianSet2-r16, -- Model-7 + navic-KeplerianSet-r16 NavModel-NavIC-KeplerianSet-r16 -- Model-8 +} + +StandardClockModelList ::= SEQUENCE (SIZE (1..2)) OF StandardClockModelElement + +StandardClockModelElement ::= SEQUENCE { + stanClockToc INTEGER (0..16383), + stanClockAF2 INTEGER (-32..31), + stanClockAF1 INTEGER (-1048576..1048575), + stanClockAF0 INTEGER (-1073741824..1073741823), + stanClockTgd INTEGER (-512..511) OPTIONAL, -- Need ON + sisa INTEGER (0..255), + stanModelID INTEGER (0..1) OPTIONAL, -- Need ON + ... +} + +NAV-ClockModel ::= SEQUENCE { + navToc INTEGER (0..37799), + navaf2 INTEGER (-128..127), + navaf1 INTEGER (-32768..32767), + navaf0 INTEGER (-2097152..2097151), + navTgd INTEGER (-128..127), + ... +} + +CNAV-ClockModel ::= SEQUENCE { + cnavToc INTEGER (0..2015), + cnavTop INTEGER (0..2015), + cnavURA0 INTEGER (-16..15), + cnavURA1 INTEGER (0..7), + cnavURA2 INTEGER (0..7), + cnavAf2 INTEGER (-512..511), + cnavAf1 INTEGER (-524288..524287), + cnavAf0 INTEGER (-33554432..33554431), + cnavTgd INTEGER (-4096..4095), + cnavISCl1cp INTEGER (-4096..4095) OPTIONAL, -- Need ON + cnavISCl1cd INTEGER (-4096..4095) OPTIONAL, -- Need ON + cnavISCl1ca INTEGER (-4096..4095) OPTIONAL, -- Need ON + cnavISCl2c INTEGER (-4096..4095) OPTIONAL, -- Need ON + cnavISCl5i5 INTEGER (-4096..4095) OPTIONAL, -- Need ON + cnavISCl5q5 INTEGER (-4096..4095) OPTIONAL, -- Need ON + ... +} + +GLONASS-ClockModel ::= SEQUENCE { + gloTau INTEGER (-2097152..2097151), + gloGamma INTEGER (-1024..1023), + gloDeltaTau INTEGER (-16..15) OPTIONAL, -- Need ON + ... +} + +SBAS-ClockModel ::= SEQUENCE { + sbasTo INTEGER (0..5399), + sbasAgfo INTEGER (-2048..2047), + sbasAgf1 INTEGER (-128..127), + ... +} + +BDS-ClockModel-r12 ::= SEQUENCE { + bdsAODC-r12 INTEGER (0..31), + bdsToc-r12 INTEGER (0..131071), + bdsA0-r12 INTEGER (-8388608..8388607), + bdsA1-r12 INTEGER (-2097152..2097151), + bdsA2-r12 INTEGER (-1024..1023), + bdsTgd1-r12 INTEGER (-512..511), + ..., + [[ + bdsTgd2-r16 INTEGER (-512..511) OPTIONAL -- Need ON + ]] +} + +BDS-ClockModel2-r16 ::= SEQUENCE { + bdsToc-r16 INTEGER (0..2047), + bdsA0-r16 INTEGER (-16777216..16777215), + bdsA1-r16 INTEGER (-2097152..2097151), + bdsA2-r16 INTEGER (-1024..1023), + bdsTgdB1Cp-r16 INTEGER (-2048..2047), + bdsIscB1Cd-r16 INTEGER (-2048..2047), + ..., + [[ + bdsTgdB2ap-r17 INTEGER (-2048..2047) OPTIONAL, -- Need ON + bdsIscB2ad-r17 INTEGER (-2048..2047) OPTIONAL -- Need ON + ]] +} + +NavIC-ClockModel-r16 ::= SEQUENCE { + navic-Toc-r16 INTEGER (0..65535), + navic-af2-r16 INTEGER (-128..127), + navic-af1-r16 INTEGER (-32768..32767), + navic-af0-r16 INTEGER (-2097152..2097151), + navic-Tgd-r16 INTEGER (-128..127), + ... +} + +NavModelKeplerianSet ::= SEQUENCE { + keplerToe INTEGER (0..16383), + keplerW INTEGER (-2147483648..2147483647), + keplerDeltaN INTEGER (-32768..32767), + keplerM0 INTEGER (-2147483648..2147483647), + keplerOmegaDot INTEGER (-8388608..8388607), + keplerE INTEGER (0..4294967295), + keplerIDot INTEGER (-8192..8191), + keplerAPowerHalf INTEGER (0..4294967295), + keplerI0 INTEGER (-2147483648..2147483647), + keplerOmega0 INTEGER (-2147483648..2147483647), + keplerCrs INTEGER (-32768..32767), + keplerCis INTEGER (-32768..32767), + keplerCus INTEGER (-32768..32767), + keplerCrc INTEGER (-32768..32767), + keplerCic INTEGER (-32768..32767), + keplerCuc INTEGER (-32768..32767), + ... +} + +NavModelNAV-KeplerianSet ::= SEQUENCE { + navURA INTEGER (0..15), + navFitFlag INTEGER (0..1), + navToe INTEGER (0..37799), + navOmega INTEGER (-2147483648..2147483647), + navDeltaN INTEGER (-32768..32767), + navM0 INTEGER (-2147483648..2147483647), + navOmegaADot INTEGER (-8388608..8388607), + navE INTEGER (0..4294967295), + navIDot INTEGER (-8192..8191), + navAPowerHalf INTEGER (0..4294967295), + navI0 INTEGER (-2147483648..2147483647), + navOmegaA0 INTEGER (-2147483648..2147483647), + navCrs INTEGER (-32768..32767), + navCis INTEGER (-32768..32767), + navCus INTEGER (-32768..32767), + navCrc INTEGER (-32768..32767), + navCic INTEGER (-32768..32767), + navCuc INTEGER (-32768..32767), + addNAVparam SEQUENCE { + ephemCodeOnL2 INTEGER (0..3), + ephemL2Pflag INTEGER (0..1), + ephemSF1Rsvd SEQUENCE { + reserved1 INTEGER (0..8388607), -- 23-bit field + reserved2 INTEGER (0..16777215), -- 24-bit field + reserved3 INTEGER (0..16777215), -- 24-bit field + reserved4 INTEGER (0..65535) -- 16-bit field + }, + ephemAODA INTEGER (0..31) + } OPTIONAL, -- Need ON + ... +} + +NavModelCNAV-KeplerianSet ::= SEQUENCE { + cnavTop INTEGER (0..2015), + cnavURAindex INTEGER (-16..15), + cnavDeltaA INTEGER (-33554432..33554431), + cnavAdot INTEGER (-16777216..16777215), + cnavDeltaNo INTEGER (-65536..65535), + cnavDeltaNoDot INTEGER (-4194304..4194303), + cnavMo INTEGER (-4294967296..4294967295), + cnavE INTEGER (0..8589934591), + cnavOmega INTEGER (-4294967296..4294967295), + cnavOMEGA0 INTEGER (-4294967296..4294967295), + cnavDeltaOmegaDot INTEGER (-65536..65535), + cnavIo INTEGER (-4294967296..4294967295), + cnavIoDot INTEGER (-16384..16383), + cnavCis INTEGER (-32768..32767), + cnavCic INTEGER (-32768..32767), + cnavCrs INTEGER (-8388608..8388607), + cnavCrc INTEGER (-8388608..8388607), + cnavCus INTEGER (-1048576..1048575), + cnavCuc INTEGER (-1048576..1048575), + ... +} + +NavModel-GLONASS-ECEF ::= SEQUENCE { + gloEn INTEGER (0..31), + gloP1 BIT STRING (SIZE (2)), + gloP2 BOOLEAN, + gloM INTEGER (0..3), + gloX INTEGER (-67108864..67108863), + gloXdot INTEGER (-8388608..8388607), + gloXdotdot INTEGER (-16..15), + gloY INTEGER (-67108864..67108863), + gloYdot INTEGER (-8388608..8388607), + gloYdotdot INTEGER (-16..15), + gloZ INTEGER (-67108864..67108863), + gloZdot INTEGER (-8388608..8388607), + gloZdotdot INTEGER (-16..15), + ... +} + +NavModel-SBAS-ECEF ::= SEQUENCE { + sbasTo INTEGER (0..5399) OPTIONAL, -- Cond ClockModel + sbasAccuracy BIT STRING (SIZE (4)), + sbasXg INTEGER (-536870912..536870911), + sbasYg INTEGER (-536870912..536870911), + sbasZg INTEGER (-16777216..16777215), + sbasXgDot INTEGER (-65536..65535), + sbasYgDot INTEGER (-65536..65535), + sbasZgDot INTEGER (-131072..131071), + sbasXgDotDot INTEGER (-512..511), + sbagYgDotDot INTEGER (-512..511), + sbasZgDotDot INTEGER (-512..511), + ... +} + +NavModel-BDS-KeplerianSet-r12 ::= SEQUENCE { + bdsAODE-r12 INTEGER (0..31), + bdsURAI-r12 INTEGER (0..15), + bdsToe-r12 INTEGER (0..131071), + bdsAPowerHalf-r12 INTEGER (0..4294967295), + bdsE-r12 INTEGER (0..4294967295), + bdsW-r12 INTEGER (-2147483648..2147483647), + bdsDeltaN-r12 INTEGER (-32768..32767), + bdsM0-r12 INTEGER (-2147483648..2147483647), + bdsOmega0-r12 INTEGER (-2147483648..2147483647), + bdsOmegaDot-r12 INTEGER (-8388608..8388607), + bdsI0-r12 INTEGER (-2147483648..2147483647), + bdsIDot-r12 INTEGER (-8192..8191), + bdsCuc-r12 INTEGER (-131072..131071), + bdsCus-r12 INTEGER (-131072..131071), + bdsCrc-r12 INTEGER (-131072..131071), + bdsCrs-r12 INTEGER (-131072..131071), + bdsCic-r12 INTEGER (-131072..131071), + bdsCis-r12 INTEGER (-131072..131071), + ... +} + +NavModel-BDS-KeplerianSet2-r16 ::= SEQUENCE { + bdsIODE-r16 INTEGER (0..255), + bdsToe-r16 INTEGER (0..2047), + bdsDeltaA-r16 INTEGER (-33554432..33554431), + bdsAdot-r16 INTEGER (-16777216..16777216), + bdsDeltaN0-r16 INTEGER (-65536..65535), + bdsDeltaN0dot-r16 INTEGER (-4194304..4194303), + bdsM0-r16 INTEGER (-4294967296..4294967295), + bdsE-r16 INTEGER (0..8589934591), + bdsOmega-r16 INTEGER (-4294967296..4294967295), + bdsOmega0-r16 INTEGER (-4294967296..4294967295), + bdsI0-r16 INTEGER (-4294967296..4294967295), + bdsOmegaDot-r16 INTEGER (-262144..262143), + bdsI0Dot-r16 INTEGER (-16384..16383), + bdsCuc-r16 INTEGER (-1048576..1048575), + bdsCus-r16 INTEGER (-1048576..1048575), + bdsCrc-r16 INTEGER (-8388608..8388607), + bdsCrs-r16 INTEGER (-8388608..8388607), + bdsCic-r16 INTEGER (-32768..32767), + bdsCis-r16 INTEGER (-32768..32767), + ... +} + +NavModel-NavIC-KeplerianSet-r16 ::= SEQUENCE { + navic-Toe-r16 INTEGER (0..65536), + navic-URAI-r16 INTEGER (0..15), + navic-W-r16 INTEGER (-2147483648..2147483647), + navic-DeltaN-r16 INTEGER (-2097152..2097151), + navic-M0-r16 INTEGER (-2147483648..2147483647), + navic-OmegaDot-r16 INTEGER (-2147483648..2147483647), + navic-E-r16 INTEGER (0..4294967295), + navic-IDot-r16 INTEGER (-8192..8191), + navic-APowerHalf-r16 INTEGER (0..4294967295), + navic-I0-r16 INTEGER (-2147483648..2147483647), + navic-Omega0-r16 INTEGER (-2147483648..2147483647), + navic-Crs-r16 INTEGER (-32768..32767), + navic-Cis-r16 INTEGER (-32768..32767), + navic-Cus-r16 INTEGER (-32768..32767), + navic-Crc-r16 INTEGER (-32768..32767), + navic-Cic-r16 INTEGER (-32768..32767), + navic-Cuc-r16 INTEGER (-32768..32767), + ... +} + +GNSS-RealTimeIntegrity ::= SEQUENCE { + gnss-BadSignalList GNSS-BadSignalList, + ... +} + +GNSS-BadSignalList ::= SEQUENCE (SIZE (1..64)) OF BadSignalElement + +BadSignalElement ::= SEQUENCE { + badSVID SV-ID, + badSignalID GNSS-SignalIDs OPTIONAL, -- Need OP + ... +} + +GNSS-DataBitAssistance ::= SEQUENCE { + gnss-TOD INTEGER (0..3599), + gnss-TODfrac INTEGER (0..999) OPTIONAL, -- Need ON + gnss-DataBitsSatList GNSS-DataBitsSatList, + ... +} + +GNSS-DataBitsSatList ::= SEQUENCE (SIZE (1..64)) OF GNSS-DataBitsSatElement + +GNSS-DataBitsSatElement ::= SEQUENCE { + svID SV-ID, + gnss-DataBitsSgnList GNSS-DataBitsSgnList, + ... +} + +GNSS-DataBitsSgnList ::= SEQUENCE (SIZE (1..8)) OF GNSS-DataBitsSgnElement + +GNSS-DataBitsSgnElement ::= SEQUENCE { + gnss-SignalType GNSS-SignalID, + gnss-DataBits BIT STRING (SIZE (1..1024)), + ... +} + +GNSS-AcquisitionAssistance ::= SEQUENCE { + gnss-SignalID GNSS-SignalID, + gnss-AcquisitionAssistList GNSS-AcquisitionAssistList, + ..., + confidence-r10 INTEGER (0..100) OPTIONAL -- Need ON +} + +GNSS-AcquisitionAssistList ::= SEQUENCE (SIZE (1..64)) OF GNSS-AcquisitionAssistElement + +GNSS-AcquisitionAssistElement ::= SEQUENCE { + svID SV-ID, + doppler0 INTEGER (-2048..2047), + doppler1 INTEGER (0..63), + dopplerUncertainty INTEGER (0..4), + codePhase INTEGER (0..1022), + intCodePhase INTEGER (0..127), + codePhaseSearchWindow INTEGER (0..31), + azimuth INTEGER (0..511), + elevation INTEGER (0..127), + ..., + codePhase1023 BOOLEAN OPTIONAL, -- Need OP + dopplerUncertaintyExt-r10 ENUMERATED { + d60, + d80, + d100, + d120, + noInformation, + ... + } OPTIONAL -- Need ON +} + +GNSS-Almanac ::= SEQUENCE { + weekNumber INTEGER (0..255) OPTIONAL, -- Need ON + toa INTEGER (0..255) OPTIONAL, -- Need ON + ioda INTEGER (0..3) OPTIONAL, -- Need ON + completeAlmanacProvided BOOLEAN, + gnss-AlmanacList GNSS-AlmanacList, + ..., + [[ + toa-ext-v1240 INTEGER (256..1023) OPTIONAL, -- Need ON + ioda-ext-v1240 INTEGER (4..15) OPTIONAL -- Need ON + ]], + [[ + weekNumber-ext-r16 INTEGER (256..8191) OPTIONAL, -- Need ON + toa-ext2-r16 INTEGER (256..65535) OPTIONAL -- Need ON + ]] +} + +GNSS-AlmanacList ::= SEQUENCE (SIZE (1..64)) OF GNSS-AlmanacElement + +GNSS-AlmanacElement ::= CHOICE { + keplerianAlmanacSet AlmanacKeplerianSet, -- Model-1 + keplerianNAV-Almanac AlmanacNAV-KeplerianSet, -- Model-2 + keplerianReducedAlmanac AlmanacReducedKeplerianSet, -- Model-3 + keplerianMidiAlmanac AlmanacMidiAlmanacSet, -- Model-4 + keplerianGLONASS AlmanacGLONASS-AlmanacSet, -- Model-5 + ecef-SBAS-Almanac AlmanacECEF-SBAS-AlmanacSet, -- Model-6 + ..., + keplerianBDS-Almanac-r12 AlmanacBDS-AlmanacSet-r12, -- Model-7 + keplerianNavIC-Almanac-r16 AlmanacNavIC-AlmanacSet-r16 -- Model-8 +} + +AlmanacKeplerianSet ::= SEQUENCE { + svID SV-ID, + kepAlmanacE INTEGER (0..2047), + kepAlmanacDeltaI INTEGER (-1024..1023), + kepAlmanacOmegaDot INTEGER (-1024..1023), + kepSV-StatusINAV BIT STRING (SIZE (4)), + kepSV-StatusFNAV BIT STRING (SIZE (2)) OPTIONAL, -- Need ON + kepAlmanacAPowerHalf INTEGER (-4096..4095), + kepAlmanacOmega0 INTEGER (-32768..32767), + kepAlmanacW INTEGER (-32768..32767), + kepAlmanacM0 INTEGER (-32768..32767), + kepAlmanacAF0 INTEGER (-32768..32767), + kepAlmanacAF1 INTEGER (-4096..4095), + ... +} + +AlmanacNAV-KeplerianSet ::= SEQUENCE { + svID SV-ID, + navAlmE INTEGER (0..65535), + navAlmDeltaI INTEGER (-32768..32767), + navAlmOMEGADOT INTEGER (-32768..32767), + navAlmSVHealth INTEGER (0..255), + navAlmSqrtA INTEGER (0..16777215), + navAlmOMEGAo INTEGER (-8388608..8388607), + navAlmOmega INTEGER (-8388608..8388607), + navAlmMo INTEGER (-8388608..8388607), + navAlmaf0 INTEGER (-1024..1023), + navAlmaf1 INTEGER (-1024..1023), + ... +} + +AlmanacReducedKeplerianSet ::= SEQUENCE { + svID SV-ID, + redAlmDeltaA INTEGER (-128..127), + redAlmOmega0 INTEGER (-64..63), + redAlmPhi0 INTEGER (-64..63), + redAlmL1Health BOOLEAN, + redAlmL2Health BOOLEAN, + redAlmL5Health BOOLEAN, + ... +} + +AlmanacMidiAlmanacSet ::= SEQUENCE { + svID SV-ID, + midiAlmE INTEGER (0..2047), + midiAlmDeltaI INTEGER (-1024..1023), + midiAlmOmegaDot INTEGER (-1024..1023), + midiAlmSqrtA INTEGER (0..131071), + midiAlmOmega0 INTEGER (-32768..32767), + midiAlmOmega INTEGER (-32768..32767), + midiAlmMo INTEGER (-32768..32767), + midiAlmaf0 INTEGER (-1024..1023), + midiAlmaf1 INTEGER (-512..511), + midiAlmL1Health BOOLEAN, + midiAlmL2Health BOOLEAN, + midiAlmL5Health BOOLEAN, + ... +} + +AlmanacGLONASS-AlmanacSet ::= SEQUENCE { + gloAlm-NA INTEGER (1..1461), + gloAlmnA INTEGER (1..24), + gloAlmHA INTEGER (0..31), + gloAlmLambdaA INTEGER (-1048576..1048575), + gloAlmtlambdaA INTEGER (0..2097151), + gloAlmDeltaIa INTEGER (-131072..131071), + gloAlmDeltaTA INTEGER (-2097152..2097151), + gloAlmDeltaTdotA INTEGER (-64..63), + gloAlmEpsilonA INTEGER (0..32767), + gloAlmOmegaA INTEGER (-32768..32767), + gloAlmTauA INTEGER (-512..511), + gloAlmCA INTEGER (0..1), + gloAlmMA BIT STRING (SIZE (2)) OPTIONAL, -- Need ON + ... +} + +AlmanacECEF-SBAS-AlmanacSet ::= SEQUENCE { + sbasAlmDataID INTEGER (0..3), + svID SV-ID, + sbasAlmHealth BIT STRING (SIZE (8)), + sbasAlmXg INTEGER (-16384..16383), + sbasAlmYg INTEGER (-16384..16383), + sbasAlmZg INTEGER (-256..255), + sbasAlmXgdot INTEGER (-4..3), + sbasAlmYgDot INTEGER (-4..3), + sbasAlmZgDot INTEGER (-8..7), + sbasAlmTo INTEGER (0..2047), + ... +} + +AlmanacBDS-AlmanacSet-r12 ::= SEQUENCE { + svID SV-ID, + bdsAlmToa-r12 INTEGER (0..255) OPTIONAL, -- Cond NotSameForAllSV + bdsAlmSqrtA-r12 INTEGER (0..16777215), + bdsAlmE-r12 INTEGER (0..131071), + bdsAlmW-r12 INTEGER (-8388608..8388607), + bdsAlmM0-r12 INTEGER (-8388608..8388607), + bdsAlmOmega0-r12 INTEGER (-8388608..8388607), + bdsAlmOmegaDot-r12 INTEGER (-65536..65535), + bdsAlmDeltaI-r12 INTEGER (-32768..32767), + bdsAlmA0-r12 INTEGER (-1024..1023), + bdsAlmA1-r12 INTEGER (-1024..1023), + bdsSvHealth-r12 BIT STRING (SIZE (9)) OPTIONAL, -- Cond SV-ID + ... +} + +AlmanacNavIC-AlmanacSet-r16 ::= SEQUENCE { + svID-r16 SV-ID, + navic-AlmToa-r16 INTEGER (0..65535) OPTIONAL, -- Cond NotSameForAllSV + navic-AlmE-r16 INTEGER (0..65535), + navic-AlmOMEGADOT-r16 INTEGER (-32768..32767), + navic-AlmSqrtA-r16 INTEGER (0..16777215), + navic-AlmOMEGAo-r16 INTEGER (-8388608..8388607), + navic-AlmOmega-r16 INTEGER (-8388608..8388607), + navic-AlmMo-r16 INTEGER (-8388608..8388607), + navic-Almaf0-r16 INTEGER (-1024..1023), + navic-Almaf1-r16 INTEGER (-1024..1023), + ... +} + +GNSS-UTC-Model ::= CHOICE { + utcModel1 UTC-ModelSet1, -- Model-1 + utcModel2 UTC-ModelSet2, -- Model-2 + utcModel3 UTC-ModelSet3, -- Model-3 + utcModel4 UTC-ModelSet4, -- Model-4 + ..., + utcModel5-r12 UTC-ModelSet5-r12 -- Model-5 +} + +UTC-ModelSet1 ::= SEQUENCE { + gnss-Utc-A1 INTEGER (-8388608..8388607), + gnss-Utc-A0 INTEGER (-2147483648..2147483647), + gnss-Utc-Tot INTEGER (0..255), + gnss-Utc-WNt INTEGER (0..255), + gnss-Utc-DeltaTls INTEGER (-128..127), + gnss-Utc-WNlsf INTEGER (0..255), + gnss-Utc-DN INTEGER (-128..127), + gnss-Utc-DeltaTlsf INTEGER (-128..127), + ... +} + +UTC-ModelSet2 ::= SEQUENCE { + utcA0 INTEGER (-32768..32767), + utcA1 INTEGER (-4096..4095), + utcA2 INTEGER (-64..63), + utcDeltaTls INTEGER (-128..127), + utcTot INTEGER (0..65535), + utcWNot INTEGER (0..8191), + utcWNlsf INTEGER (0..255), + utcDN BIT STRING (SIZE (4)), + utcDeltaTlsf INTEGER (-128..127), + ..., + [[ + utcWNlsf-ext-r16 INTEGER (256..8191) OPTIONAL -- Need ON + ]] +} + +UTC-ModelSet3 ::= SEQUENCE { + nA INTEGER (1..1461), + tauC INTEGER (-2147483648..2147483647), + b1 INTEGER (-1024..1023) OPTIONAL, -- Cond GLONASS-M + b2 INTEGER (-512..511) OPTIONAL, -- Cond GLONASS-M + kp BIT STRING (SIZE (2)) OPTIONAL, -- Cond GLONASS-M + ... +} + +UTC-ModelSet4 ::= SEQUENCE { + utcA1wnt INTEGER (-8388608..8388607), + utcA0wnt INTEGER (-2147483648..2147483647), + utcTot INTEGER (0..255), + utcWNt INTEGER (0..255), + utcDeltaTls INTEGER (-128..127), + utcWNlsf INTEGER (0..255), + utcDN INTEGER (-128..127), + utcDeltaTlsf INTEGER (-128..127), + utcStandardID INTEGER (0..7), + ... +} + +UTC-ModelSet5-r12 ::= SEQUENCE { + utcA0-r12 INTEGER (-2147483648..2147483647), + utcA1-r12 INTEGER (-8388608..8388607), + utcDeltaTls-r12 INTEGER (-128..127), + utcWNlsf-r12 INTEGER (0..255), + utcDN-r12 INTEGER (0..255), + utcDeltaTlsf-r12 INTEGER (-128..127), + ... +} + +GNSS-AuxiliaryInformation ::= CHOICE { + gnss-ID-GPS GNSS-ID-GPS, + gnss-ID-GLONASS GNSS-ID-GLONASS, + ..., + [[ + gnss-ID-BDS-r16 GNSS-ID-BDS-r16 + ]] +} + +GNSS-ID-GPS ::= SEQUENCE (SIZE (1..64)) OF GNSS-ID-GPS-SatElement + +GNSS-ID-GPS-SatElement ::= SEQUENCE { + svID SV-ID, + signalsAvailable GNSS-SignalIDs, + ... +} + +GNSS-ID-GLONASS ::= SEQUENCE (SIZE (1..64)) OF GNSS-ID-GLONASS-SatElement + +GNSS-ID-GLONASS-SatElement ::= SEQUENCE { + svID SV-ID, + signalsAvailable GNSS-SignalIDs, + channelNumber INTEGER (-7..13) OPTIONAL, -- Cond FDMA + ... +} + +GNSS-ID-BDS-r16 ::= SEQUENCE (SIZE (1..64)) OF GNSS-ID-BDS-SatElement-r16 + +GNSS-ID-BDS-SatElement-r16 ::= SEQUENCE { + svID-r16 SV-ID, + satType-r16 INTEGER (0..3), + ... +} + +BDS-DifferentialCorrections-r12 ::= SEQUENCE { + dbds-RefTime-r12 INTEGER (0..3599), + bds-SgnTypeList-r12 BDS-SgnTypeList-r12, + ... +} + +BDS-SgnTypeList-r12 ::= SEQUENCE (SIZE (1..3)) OF BDS-SgnTypeElement-r12 + +BDS-SgnTypeElement-r12 ::= SEQUENCE { + gnss-SignalID GNSS-SignalID OPTIONAL, -- Need ON + dbds-CorrectionList-r12 DBDS-CorrectionList-r12, + ... +} + +DBDS-CorrectionList-r12 ::= SEQUENCE (SIZE (1..64)) OF DBDS-CorrectionElement-r12 + +DBDS-CorrectionElement-r12 ::= SEQUENCE { + svID SV-ID, + bds-UDREI-r12 INTEGER (0..15), + bds-RURAI-r12 INTEGER (0..15), + bds-ECC-DeltaT-r12 INTEGER (-4096..4095), + ... +} + +BDS-GridModelParameter-r12 ::= SEQUENCE { + bds-RefTime-r12 INTEGER (0..3599), + gridIonList-r12 GridIonList-r12, + ... +} + +GridIonList-r12 ::= SEQUENCE (SIZE (1..320)) OF GridIonElement-r12 + +GridIonElement-r12 ::= SEQUENCE { + igp-ID-r12 INTEGER (1..320), + dt-r12 INTEGER (0..511), + givei-r12 INTEGER (0..15), + ... +} + +GNSS-RTK-Observations-r15 ::= SEQUENCE { + epochTime-r15 GNSS-SystemTime, + gnss-ObservationList-r15 GNSS-ObservationList-r15, + ... +} + +GNSS-ObservationList-r15 ::= SEQUENCE (SIZE (1..64)) OF GNSS-RTK-SatelliteDataElement-r15 + +GNSS-RTK-SatelliteDataElement-r15 ::= SEQUENCE { + svID-r15 SV-ID, + integer-ms-r15 INTEGER (0..254) OPTIONAL, -- Need ON + rough-range-r15 INTEGER (0..1023), + rough-phase-range-rate-r15 INTEGER (-8192..8191) OPTIONAL, -- Need ON + gnss-rtk-SatelliteSignalDataList-r15 GNSS-RTK-SatelliteSignalDataList-r15, + ... +} + +GNSS-RTK-SatelliteSignalDataList-r15 ::= SEQUENCE (SIZE (1..24)) OF GNSS-RTK-SatelliteSignalDataElement-r15 + +GNSS-RTK-SatelliteSignalDataElement-r15 ::= SEQUENCE { + gnss-SignalID-r15 GNSS-SignalID, + fine-PseudoRange-r15 INTEGER (-524288..524287), + fine-PhaseRange-r15 INTEGER (-8388608..8388607), + lockTimeIndicator-r15 INTEGER (0..1023), + halfCycleAmbiguityIndicator-r15 BIT STRING (SIZE (1)), + carrier-to-noise-ratio-r15 INTEGER (0..1023) OPTIONAL, -- Need ON + fine-PhaseRangeRate-r15 INTEGER (-16384..16383) OPTIONAL, -- Need ON + ... +} + +GLO-RTK-BiasInformation-r15 ::= SEQUENCE { + referenceStationID-r15 GNSS-ReferenceStationID-r15, + cpbIndicator-r15 BIT STRING (SIZE (1)), + l1-ca-cpBias-r15 INTEGER (-32768..32767) OPTIONAL, -- Need ON + l1-p-cpBias-r15 INTEGER (-32768..32767) OPTIONAL, -- Need ON + l2-ca-cpBias-r15 INTEGER (-32768..32767) OPTIONAL, -- Need ON + l2-p-cpBias-r15 INTEGER (-32768..32767) OPTIONAL, -- Need ON + ... +} + +GNSS-RTK-MAC-CorrectionDifferences-r15 ::= SEQUENCE { + networkID-r15 GNSS-NetworkID-r15, + subNetworkID-r15 GNSS-SubNetworkID-r15 OPTIONAL, -- Need ON + master-ReferenceStationID-r15 GNSS-ReferenceStationID-r15, + l1-r15 GNSS-FrequencyID-r15 OPTIONAL, -- Need OP + l2-r15 GNSS-FrequencyID-r15 OPTIONAL, -- Need OP + rtkCorrectionDifferencesList-r15 RTK-CorrectionDifferencesList-r15, + ... +} + +RTK-CorrectionDifferencesList-r15 ::= SEQUENCE (SIZE (1..32)) OF RTK-CorrectionDifferencesElement-r15 + +RTK-CorrectionDifferencesElement-r15 ::= SEQUENCE { + epochTime-r15 GNSS-SystemTime, + auxiliary-referenceStationID-r15 GNSS-ReferenceStationID-r15, + geometric-ionospheric-corrections-differences-r15 Geometric-Ionospheric-Corrections-Differences-r15, + ... +} + +Geometric-Ionospheric-Corrections-Differences-r15 ::= SEQUENCE (SIZE (1..64)) OF Geometric-Ionospheric-Corrections-Differences-Element-r15 + +Geometric-Ionospheric-Corrections-Differences-Element-r15 ::= SEQUENCE { + svID-r15 SV-ID, + ambiguityStatusFlag-r15 INTEGER (0..3), + non-synch-count-r15 INTEGER (0..7), + geometricCarrierPhaseCorrectionDifference-r15 INTEGER (-65536..65535), + iod-r15 BIT STRING (SIZE (11)), + ionosphericCarrierPhaseCorrectionDifference-r15 INTEGER (-65536..65535), + ... +} + +GNSS-RTK-Residuals-r15 ::= SEQUENCE { + epochTime-r15 GNSS-SystemTime, + referenceStationID-r15 GNSS-ReferenceStationID-r15, + n-Refs-r15 INTEGER (0..127), + l1-r15 GNSS-FrequencyID-r15 OPTIONAL, -- Need OP + l2-r15 GNSS-FrequencyID-r15 OPTIONAL, -- Need OP + rtk-residuals-list-r15 RTK-Residuals-List-r15, + ... +} + +RTK-Residuals-List-r15 ::= SEQUENCE (SIZE (1..64)) OF RTK-Residuals-Element-r15 + +RTK-Residuals-Element-r15 ::= SEQUENCE { + svID-r15 SV-ID, + s-oc-r15 INTEGER (0..255), + s-od-r15 INTEGER (0..511), + s-oh-r15 INTEGER (0..63), + s-lc-r15 INTEGER (0..1023), + s-ld-r15 INTEGER (0..1023), + ... +} + +GNSS-RTK-FKP-Gradients-r15 ::= SEQUENCE { + referenceStationID-r15 GNSS-ReferenceStationID-r15, + epochTime-r15 GNSS-SystemTime, + l1-r15 GNSS-FrequencyID-r15 OPTIONAL, -- Need OP + l2-r15 GNSS-FrequencyID-r15 OPTIONAL, -- Need OP + fkp-gradients-list-r15 FKP-Gradients-List-r15, + ... +} + +FKP-Gradients-List-r15 ::= SEQUENCE (SIZE (1..64)) OF FKP-Gradients-Element-r15 + +FKP-Gradients-Element-r15 ::= SEQUENCE { + svID-r15 SV-ID, + iod-r15 BIT STRING (SIZE (11)), + north-geometric-gradient-r15 INTEGER (-2048..2047), + east-geometric-gradient-r15 INTEGER (-2048..2047), + north-ionospheric-gradient-r15 INTEGER (-8192..8191), + east-ionospheric-gradient-r15 INTEGER (-8192..8191), + ... +} + +GNSS-SSR-OrbitCorrections-r15 ::= SEQUENCE { + epochTime-r15 GNSS-SystemTime, + ssrUpdateInterval-r15 INTEGER (0..15), + satelliteReferenceDatum-r15 ENUMERATED { + itrf, + regional, + ... + }, + iod-ssr-r15 INTEGER (0..15), + ssr-OrbitCorrectionList-r15 SSR-OrbitCorrectionList-r15, + ..., + [[ + orbit-IntegrityParameters-r17 ORBIT-IntegrityParameters-r17 OPTIONAL -- Need OR + ]] +} + +SSR-OrbitCorrectionList-r15 ::= SEQUENCE (SIZE (1..64)) OF SSR-OrbitCorrectionSatelliteElement-r15 + +SSR-OrbitCorrectionSatelliteElement-r15 ::= SEQUENCE { + svID-r15 SV-ID, + iod-r15 BIT STRING (SIZE (11)), + delta-radial-r15 INTEGER (-2097152..2097151), + delta-AlongTrack-r15 INTEGER (-524288..524287), + delta-CrossTrack-r15 INTEGER (-524288..524287), + dot-delta-radial-r15 INTEGER (-1048576..1048575) OPTIONAL, -- Need ON + dot-delta-AlongTrack-r15 INTEGER (-262144..262143) OPTIONAL, -- Need ON + dot-delta-CrossTrack-r15 INTEGER (-262144..262143) OPTIONAL, -- Need ON + ..., + [[ + ssr-IntegrityOrbitBounds-r17 SSR-IntegrityOrbitBounds-r17 OPTIONAL -- Cond Integrity1 + ]] +} + +ORBIT-IntegrityParameters-r17 ::= SEQUENCE { + probOnsetConstFault-r17 INTEGER (0..255), + meanConstFaultDuration-r17 INTEGER (1..3600), + probOnsetSatFault-r17 INTEGER (0..255), + meanSatFaultDuration-r17 INTEGER (1..3600), + orbitRangeErrorCorrelationTime-r17 INTEGER (0..255) OPTIONAL, -- Need OR + orbitRangeRateErrorCorrelationTime-r17 INTEGER (0..255) OPTIONAL, -- Cond Integrity2 + ... +} + +SSR-IntegrityOrbitBounds-r17 ::= SEQUENCE { + meanOrbitError-r17 RAC-OrbitalErrorComponents-r17, + stdDevOrbitError-r17 RAC-OrbitalErrorComponents-r17, + meanOrbitRateError-r17 RAC-OrbitalErrorComponents-r17, + stdDevOrbitRateError-r17 RAC-OrbitalErrorComponents-r17, + ... +} + +RAC-OrbitalErrorComponents-r17 ::= SEQUENCE { + radial-r17 INTEGER (0..255), + alongTrack-r17 INTEGER (0..255), + crossTrack-r17 INTEGER (0..255) +} + +GNSS-SSR-ClockCorrections-r15 ::= SEQUENCE { + epochTime-r15 GNSS-SystemTime, + ssrUpdateInterval-r15 INTEGER (0..15), + iod-ssr-r15 INTEGER (0..15), + ssr-ClockCorrectionList-r15 SSR-ClockCorrectionList-r15, + ..., + [[ + clock-IntegrityParameters-r17 CLOCK-IntegrityParameters-r17 OPTIONAL -- Need OR + ]] +} + +SSR-ClockCorrectionList-r15 ::= SEQUENCE (SIZE (1..64)) OF SSR-ClockCorrectionSatelliteElement-r15 + +SSR-ClockCorrectionSatelliteElement-r15 ::= SEQUENCE { + svID-r15 SV-ID, + delta-Clock-C0-r15 INTEGER (-2097152..2097151), + delta-Clock-C1-r15 INTEGER (-1048576..1048575) OPTIONAL, -- Need ON + delta-Clock-C2-r15 INTEGER (-67108864..67108863) OPTIONAL, -- Need ON + ..., + [[ + ssr-IntegrityClockBounds-r17 SSR-IntegrityClockBounds-r17 OPTIONAL -- Need OR + ]] +} + +CLOCK-IntegrityParameters-r17 ::= SEQUENCE { + clockRangeErrorCorrelationTime-r17 INTEGER (0..255), + clockRangeRateErrorCorrelationTime-r17 INTEGER (0..255), + ... +} + +SSR-IntegrityClockBounds-r17 ::= SEQUENCE { + meanClock-r17 INTEGER (0..255), + stdDevClock-r17 INTEGER (0..255), + meanClockRate-r17 INTEGER (0..255), + stdDevClockRate-r17 INTEGER (0..255), + ... +} + +GNSS-SSR-CodeBias-r15 ::= SEQUENCE { + epochTime-r15 GNSS-SystemTime, + ssrUpdateInterval-r15 INTEGER (0..15), + iod-ssr-r15 INTEGER (0..15), + ssr-CodeBiasSatList-r15 SSR-CodeBiasSatList-r15, + ... +} + +SSR-CodeBiasSatList-r15 ::= SEQUENCE (SIZE (1..64)) OF SSR-CodeBiasSatElement-r15 + +SSR-CodeBiasSatElement-r15 ::= SEQUENCE { + svID-r15 SV-ID, + ssr-CodeBiasSignalList-r15 SSR-CodeBiasSignalList-r15, + ... +} + +SSR-CodeBiasSignalList-r15 ::= SEQUENCE (SIZE (1..16)) OF SSR-CodeBiasSignalElement-r15 + +SSR-CodeBiasSignalElement-r15 ::= SEQUENCE { + signal-and-tracking-mode-ID-r15 GNSS-SignalID, + codeBias-r15 INTEGER (-8192..8191), + ..., + [[ + ssr-IntegrityCodeBiasBounds-r17 SSR-IntegrityCodeBiasBounds-r17 OPTIONAL -- Need OR + ]] +} + +SSR-IntegrityCodeBiasBounds-r17 ::= SEQUENCE { + meanCodeBias-r17 INTEGER (0..255), + stdDevCodeBias-r17 INTEGER (0..255), + meanCodeBiasRate-r17 INTEGER (0..255), + stdDevCodeBiasRate-r17 INTEGER (0..255), + ... +} + +GNSS-SSR-URA-r16 ::= SEQUENCE { + epochTime-r16 GNSS-SystemTime, + ssrUpdateInterval-r16 INTEGER (0..15), + iod-ssr-r16 INTEGER (0..15), + ssr-URA-SatList-r16 SSR-URA-SatList-r16, + ... +} + +SSR-URA-SatList-r16 ::= SEQUENCE (SIZE (1..64)) OF SSR-URA-SatElement-r16 + +SSR-URA-SatElement-r16 ::= SEQUENCE { + svID-r16 SV-ID, + ssr-URA-r16 BIT STRING (SIZE (6)), + ... +} + +GNSS-SSR-PhaseBias-r16 ::= SEQUENCE { + epochTime-r16 GNSS-SystemTime, + ssrUpdateInterval-r16 INTEGER (0..15), + iod-ssr-r16 INTEGER (0..15), + ssr-PhaseBiasSatList-r16 SSR-PhaseBiasSatList-r16, + ... +} + +SSR-PhaseBiasSatList-r16 ::= SEQUENCE (SIZE (1..64)) OF SSR-PhaseBiasSatElement-r16 + +SSR-PhaseBiasSatElement-r16 ::= SEQUENCE { + svID-r16 SV-ID, + ssr-PhaseBiasSignalList-r16 SSR-PhaseBiasSignalList-r16, + ... +} + +SSR-PhaseBiasSignalList-r16 ::= SEQUENCE (SIZE (1..16)) OF SSR-PhaseBiasSignalElement-r16 + +SSR-PhaseBiasSignalElement-r16 ::= SEQUENCE { + signal-and-tracking-mode-ID-r16 GNSS-SignalID, + phaseBias-r16 INTEGER (-16384..16383), + phaseDiscontinuityIndicator-r16 INTEGER (0..3), + phaseBiasIntegerIndicator-r16 INTEGER (0..3) OPTIONAL, -- Need OP + ..., + [[ + ssr-IntegrityPhaseBiasBounds-r17 SSR-IntegrityPhaseBiasBounds-r17 OPTIONAL -- Need OR + ]] +} + +SSR-IntegrityPhaseBiasBounds-r17 ::= SEQUENCE { + meanPhaseBias-r17 INTEGER (0..255), + stdDevPhaseBias-r17 INTEGER (0..255), + meanPhaseBiasRate-r17 INTEGER (0..255), + stdDevPhaseBiasRate-r17 INTEGER (0..255), + ... +} + +GNSS-SSR-STEC-Correction-r16 ::= SEQUENCE { + epochTime-r16 GNSS-SystemTime, + ssrUpdateInterval-r16 INTEGER (0..15), + iod-ssr-r16 INTEGER (0..15), + correctionPointSetID-r16 INTEGER (0..16383), + stec-SatList-r16 STEC-SatList-r16, + ..., + [[ + stec-IntegrityParameters-r17 STEC-IntegrityParameters-r17 OPTIONAL -- Need OR + ]] +} + +STEC-SatList-r16 ::= SEQUENCE (SIZE (1..64)) OF STEC-SatElement-r16 + +STEC-SatElement-r16 ::= SEQUENCE { + svID-r16 SV-ID, + stecQualityIndicator-r16 BIT STRING (SIZE (6)), + stec-C00-r16 INTEGER (-8192..8191), + stec-C01-r16 INTEGER (-2048..2047) OPTIONAL, -- Need ON + stec-C10-r16 INTEGER (-2048..2047) OPTIONAL, -- Need ON + stec-C11-r16 INTEGER (-512..511) OPTIONAL, -- Need ON + ..., + [[ + stec-IntegrityErrorBounds-r17 STEC-IntegrityErrorBounds-r17 OPTIONAL -- Cond Integrity1 + ]] +} + +STEC-IntegrityParameters-r17 ::= SEQUENCE { + probOnsetIonoFault-r17 INTEGER (0..255), + meanIonoFaultDuration-r17 INTEGER (1..256), + ionoRangeErrorCorrelationTime-r17 INTEGER (1..255) OPTIONAL, -- Need OR + ionoRangeRateErrorCorrelationTime-r17 INTEGER (1..255) OPTIONAL, -- Cond Integrity 2 + ... +} + +STEC-IntegrityErrorBounds-r17 ::= SEQUENCE { + meanIonosphere-r17 INTEGER (0..255), + stdDevIonosphere-r17 INTEGER (0..255), + meanIonosphereRate-r17 INTEGER (0..255), + stdDevIonosphereRate-r17 INTEGER (0..255), + ... +} + +GNSS-SSR-GriddedCorrection-r16 ::= SEQUENCE { + epochTime-r16 GNSS-SystemTime, + ssrUpdateInterval-r16 INTEGER (0..15), + iod-ssr-r16 INTEGER (0..15), + troposphericDelayQualityIndicator-r16 BIT STRING (SIZE (6)) OPTIONAL, -- Cond Tropo + correctionPointSetID-r16 INTEGER (0..16383), + gridList-r16 GridList-r16, + ..., + [[ + ssr-GriddedCorrectionIntegrityParameters-r17 SSR-GriddedCorrectionIntegrityParameters-r17 OPTIONAL -- Need OR + ]] +} + +GridList-r16 ::= SEQUENCE (SIZE (1..64)) OF GridElement-r16 + +GridElement-r16 ::= SEQUENCE { + tropospericDelayCorrection-r16 TropospericDelayCorrection-r16 OPTIONAL, -- Need ON + stec-ResidualSatList-r16 STEC-ResidualSatList-r16 OPTIONAL, -- Need ON + ... +} + +TropospericDelayCorrection-r16 ::= SEQUENCE { + tropoHydroStaticVerticalDelay-r16 INTEGER (-256..255), + tropoWetVerticalDelay-r16 INTEGER (-128..127), + ..., + [[ + tropoDelayIntegrityErrorBounds-r17 TropoDelayIntegrityErrorBounds-r17 OPTIONAL -- Cond Integrity1 + ]] +} + +STEC-ResidualSatList-r16 ::= SEQUENCE (SIZE (1..64)) OF STEC-ResidualSatElement-r16 + +STEC-ResidualSatElement-r16 ::= SEQUENCE { + svID-r16 SV-ID, + stecResidualCorrection-r16 CHOICE { + b7-r16 INTEGER (-64..63), + b16-r16 INTEGER (-32768..32767) + }, + ... +} + +SSR-GriddedCorrectionIntegrityParameters-r17 ::= SEQUENCE { + probOnsetTroposphereFault-r17 INTEGER (0..255), + meanTroposphereFaultDuration-r17 INTEGER (1..256), + troposphereRangeErrorCorrelationTime-r17 INTEGER (1..255) OPTIONAL, -- Need OR + troposphereRangeRateErrorCorrelationTime-r17 INTEGER (1..255) OPTIONAL, -- Cond Integrity2 + ... +} + +TropoDelayIntegrityErrorBounds-r17 ::= SEQUENCE { + meanTroposphereVerticalHydroStaticDelay-r17 INTEGER (0..255), + stdDevTroposphereVerticalHydroStaticDelay-r17 INTEGER (0..255), + meanTroposphereVerticalWetDelay-r17 INTEGER (0..255), + stdDevTroposphereVerticalWetDelay-r17 INTEGER (0..255), + meanTroposphereVerticalHydroStaticDelayRate-r17 INTEGER (0..255), + stdDevTroposphereVerticalHydroStaticDelayRate-r17 INTEGER (0..255), + meanTroposphereVerticalWetDelayRate-r17 INTEGER (0..255), + stdDevTroposphereVerticalWetDelayRate-r17 INTEGER (0..255), + ... +} + +NavIC-DifferentialCorrections-r16 ::= SEQUENCE { + navic-RefTOWC-r16 INTEGER (0..50400), + navic-CorrectionListAutoNav-r16 NavIC-CorrectionListAutoNav-r16, + ... +} + +NavIC-CorrectionListAutoNav-r16 ::= SEQUENCE (SIZE (1..64)) OF NavIC-CorrectionElementAutoNav-r16 + +NavIC-CorrectionElementAutoNav-r16 ::= SEQUENCE { + svID SV-ID, + navic-Tod-r16 INTEGER (0..65535), + navic-iodec-r16 INTEGER (0..255), + navic-UDRAI-r16 INTEGER (-16..15), + navic-UDRArateI-r16 INTEGER (-16..15), + navic-EDC-r16 NavIC-EDC-r16, + navic-CDC-r16 NavIC-CDC-r16, + ... +} + +NavIC-EDC-r16 ::= SEQUENCE { + navic-AlphaEDC-r16 INTEGER (-8192..8191), + navic-BetaEDC-r16 INTEGER (-8192..8191), + navic-GammaEDC-r16 INTEGER (-16384..16383), + navic-AoIcorrection-r16 INTEGER (-2048..2047), + navic-AoRAcorrection-r16 INTEGER (-2048..2047), + navic-SemiMajorcorrection-r16 INTEGER (-2048..2047), + ... +} + +NavIC-CDC-r16 ::= SEQUENCE { + navic-ClockBiasCorrection-r16 INTEGER (-4096..4095), + navic-ClockDriftCorrection-r16 INTEGER (-128..127), + ... +} + +NavIC-GridModelParameter-r16 ::= SEQUENCE { + navic-RefTOWC-r16 INTEGER (0..50400), + regionMasked-r16 INTEGER (0..1023), + regionIgpList-r16 RegionIgpList-r16, + ... +} + +RegionIgpList-r16 ::= SEQUENCE (SIZE (1..16)) OF RegionIgpElement-r16 + +RegionIgpElement-r16 ::= SEQUENCE { + regionID-r16 INTEGER (0..15), + givei1-r16 INTEGER (0..15), + givd1-r16 INTEGER (0..511), + givei2-r16 INTEGER (0..15), + givd2-r16 INTEGER (0..511), + givei3-r16 INTEGER (0..15), + givd3-r16 INTEGER (0..511), + givei4-r16 INTEGER (0..15), + givd4-r16 INTEGER (0..511), + givei5-r16 INTEGER (0..15), + givd5-r16 INTEGER (0..511), + givei6-r16 INTEGER (0..15), + givd6-r16 INTEGER (0..511), + givei7-r16 INTEGER (0..15), + givd7-r16 INTEGER (0..511), + givei8-r16 INTEGER (0..15), + givd8-r16 INTEGER (0..511), + givei9-r16 INTEGER (0..15), + givd9-r16 INTEGER (0..511), + givei10-r16 INTEGER (0..15), + givd10-r16 INTEGER (0..511), + givei11-r16 INTEGER (0..15), + givd11-r16 INTEGER (0..511), + givei12-r16 INTEGER (0..15), + givd12-r16 INTEGER (0..511), + givei13-r16 INTEGER (0..15), + givd13-r16 INTEGER (0..511), + givei14-r16 INTEGER (0..15), + givd14-r16 INTEGER (0..511), + givei15-r16 INTEGER (0..15), + givd15-r16 INTEGER (0..511), + ... +} + +GNSS-SSR-OrbitCorrectionsSet2-r17 ::= SEQUENCE { + refEph-r17 ENUMERATED { + b1c, + ... + }, + gnss-SSR-OrbitCorrections-r17 GNSS-SSR-OrbitCorrections-r15, + ... +} + +GNSS-SSR-ClockCorrectionsSet2-r17 ::= SEQUENCE { + refEph-r17 ENUMERATED { + b1c, + ... + }, + gnss-SSR-ClockCorrections-r17 GNSS-SSR-ClockCorrections-r15, + ... +} + +GNSS-SSR-URA-Set2-r17 ::= SEQUENCE { + refEph-r17 ENUMERATED { + b1c, + ... + }, + gnss-SSR-URA-r17 GNSS-SSR-URA-r16, + ... +} + +GNSS-LOS-NLOS-GriddedIndications-r18 ::= SEQUENCE { + gridPointsSetID-r18 INTEGER (0..16383), + expirationTime-r18 UTCTime OPTIONAL, -- Need ON + gridList-r18 GridList-r18, + ... +} + +GridList-r18 ::= SEQUENCE (SIZE (1..1024)) OF GridElement-r18 + +GridElement-r18 ::= SEQUENCE { + gnss-LOS-InfoList-r18 GNSS-LOS-InfoList-r18 OPTIONAL, -- Need ON + ... +} + +GNSS-LOS-InfoList-r18 ::= SEQUENCE (SIZE (1..64)) OF GNSS-LOS-InfoElement-r18 + +GNSS-LOS-InfoElement-r18 ::= SEQUENCE { + svID-r18 SV-ID, + los-r18 ENUMERATED { + true, + false, + uncertain + }, + ... +} + +GNSS-SSR-SatellitePCVResiduals-r18 ::= SEQUENCE { + iod-ssr-PCVResiduals-r18 INTEGER (0..64), + ssr-SatellitePCV-List-r18 SSR-SatellitePCV-List-r18, + ... +} + +SSR-SatellitePCV-List-r18 ::= SEQUENCE (SIZE (1..64)) OF SSR-SatellitePCV-Element-r18 + +SSR-SatellitePCV-Element-r18 ::= SEQUENCE { + svID-r18 SV-ID, + ssr-SatellitePCV-FrequencyList-r18 SSR-SatellitePCV-FrequencyList-r18, + ... +} + +SSR-SatellitePCV-FrequencyList-r18 ::= SEQUENCE (SIZE (1..8)) OF SSR-SatellitePCV-FrequencyElement-r18 + +SSR-SatellitePCV-FrequencyElement-r18 ::= SEQUENCE { + frequencyID-r18 GNSS-FrequencyID-r15, + phaseCenterVariations-r18 SSR-PhaseCenterVariationList-r18, + ... +} + +SSR-PhaseCenterVariationList-r18 ::= SEQUENCE (SIZE (1..32)) OF INTEGER (-1024..1023) + +A-GNSS-RequestAssistanceData ::= SEQUENCE { + gnss-CommonAssistDataReq GNSS-CommonAssistDataReq OPTIONAL, -- Cond CommonADReq + gnss-GenericAssistDataReq GNSS-GenericAssistDataReq OPTIONAL, -- Cond GenADReq + ..., + [[ + gnss-PeriodicAssistDataReq-r15 GNSS-PeriodicAssistDataReq-r15 OPTIONAL -- Cond PerADReq + ]] +} + +GNSS-CommonAssistDataReq ::= SEQUENCE { + gnss-ReferenceTimeReq GNSS-ReferenceTimeReq OPTIONAL, -- Cond RefTim eReq + gnss-ReferenceLocationReq GNSS-ReferenceLocationReq OPTIONAL, -- Cond RefLocReq + gnss-IonosphericModelReq GNSS-IonosphericModelReq OPTIONAL, -- Cond IonoModReq + gnss-EarthOrientationParametersReq GNSS-EarthOrientationParametersReq OPTIONAL, -- Cond EOPReq + ..., + [[ + gnss-RTK-ReferenceStationInfoReq-r15 GNSS-RTK-ReferenceStationInfoReq-r15 OPTIONAL, -- Cond ARPReq + gnss-RTK-AuxiliaryStationDataReq-r15 GNSS-RTK-AuxiliaryStationDataReq-r15 OPTIONAL -- Cond AuxARPReq + ]], + [[ + gnss-SSR-CorrectionPointsReq-r16 GNSS-SSR-CorrectionPointsReq-r16 OPTIONAL -- Cond PointsReq + ]], + [[ + gnss-Integrity-ServiceParametersReq-r17 GNSS-Integrity-ServiceParametersReq-r17 OPTIONAL, -- Cond IntServiceReq + gnss-Integrity-ServiceAlertReq-r17 GNSS-Integrity-ServiceAlertReq-r17 OPTIONAL -- Cond IntAlertReq + ]], + [[ + gnss-SSR-IOD-UpdateReq-r18 GNSS-SSR-IOD-UpdateReq-r18 OPTIONAL -- Cond IODUpdateReq + ]] +} + +GNSS-GenericAssistDataReq ::= SEQUENCE (SIZE (1..16)) OF GNSS-GenericAssistDataReqElement + +GNSS-GenericAssistDataReqElement ::= SEQUENCE { + gnss-ID GNSS-ID, + sbas-ID SBAS-ID OPTIONAL, -- Cond GNSS-ID-SBAS + gnss-TimeModelsReq GNSS-TimeModelListReq OPTIONAL, -- Cond TimeModReq + gnss-DifferentialCorrectionsReq GNSS-DifferentialCorrectionsReq OPTIONAL, -- Cond DGNSS-Req + gnss-NavigationModelReq GNSS-NavigationModelReq OPTIONAL, -- Cond NavModReq + gnss-RealTimeIntegrityReq GNSS-RealTimeIntegrityReq OPTIONAL, -- Cond RTIReq + gnss-DataBitAssistanceReq GNSS-DataBitAssistanceReq OPTIONAL, -- Cond DataBitsReq + gnss-AcquisitionAssistanceReq GNSS-AcquisitionAssistanceReq OPTIONAL, -- Cond AcquAssistReq + gnss-AlmanacReq GNSS-AlmanacReq OPTIONAL, -- Cond AlmanacReq + gnss-UTCModelReq GNSS-UTC-ModelReq OPTIONAL, -- Cond UTCModReq + gnss-AuxiliaryInformationReq GNSS-AuxiliaryInformationReq OPTIONAL, -- Cond AuxInfoReq + ..., + [[ + bds-DifferentialCorrectionsReq-r12 BDS-DifferentialCorrectionsReq-r12 OPTIONAL, -- Cond DBDS-Req + bds-GridModelReq-r12 BDS-GridModelReq-r12 OPTIONAL -- Cond BDS-GridModReq + ]], + [[ + gnss-RTK-ObservationsReq-r15 GNSS-RTK-ObservationsReq-r15 OPTIONAL, -- Cond RTK-OSR-Req + glo-RTK-BiasInformationReq-r15 GLO-RTK-BiasInformationReq-r15 OPTIONAL, -- Cond GLO-CPB-Req + gnss-RTK-MAC-CorrectionDifferencesReq-r15 GNSS-RTK-MAC-CorrectionDifferencesReq-r15 OPTIONAL, -- Cond MAC-Req + gnss-RTK-ResidualsReq-r15 GNSS-RTK-ResidualsReq-r15 OPTIONAL, -- Cond Res-Req + gnss-RTK-FKP-GradientsReq-r15 GNSS-RTK-FKP-GradientsReq-r15 OPTIONAL, -- Cond FKP-Req + gnss-SSR-OrbitCorrectionsReq-r15 GNSS-SSR-OrbitCorrectionsReq-r15 OPTIONAL, -- Cond OC-Req + gnss-SSR-ClockCorrectionsReq-r15 GNSS-SSR-ClockCorrectionsReq-r15 OPTIONAL, -- Cond CC-Req + gnss-SSR-CodeBiasReq-r15 GNSS-SSR-CodeBiasReq-r15 OPTIONAL -- Cond CB-Req + ]], + [[ + gnss-SSR-URA-Req-r16 GNSS-SSR-URA-Req-r16 OPTIONAL, -- Cond URA-Req + gnss-SSR-PhaseBiasReq-r16 GNSS-SSR-PhaseBiasReq-r16 OPTIONAL, -- Cond PB-Req + gnss-SSR-STEC-CorrectionReq-r16 GNSS-SSR-STEC-CorrectionReq-r16 OPTIONAL, -- Cond STEC-Req + gnss-SSR-GriddedCorrectionReq-r16 GNSS-SSR-GriddedCorrectionReq-r16 OPTIONAL, -- Cond Grid-Req + navic-DifferentialCorrectionsReq-r16 NavIC-DifferentialCorrectionsReq-r16 OPTIONAL, -- Cond DNavIC-Req + navic-GridModelReq-r16 NavIC-GridModelReq-r16 OPTIONAL -- Cond NavIC-GridModReq + ]], + [[ + gnss-SSR-OrbitCorrectionsSet2Req-r17 GNSS-SSR-OrbitCorrectionsSet2Req-r17 OPTIONAL, -- Cond OC2-Req + gnss-SSR-ClockCorrectionsSet2Req-r17 GNSS-SSR-ClockCorrectionsSet2Req-r17 OPTIONAL, -- Cond CC2-Req + gnss-SSR-URA-Set2Req-r17 GNSS-SSR-URA-Set2Req-r17 OPTIONAL -- Cond URA2-Req + ]], + [[ + gnss-LOS-NLOS-GriddedIndicationsReq-r18 GNSS-LOS-NLOS-GriddedIndicationsReq-r18 OPTIONAL, -- Cond LOS-GridReq + gnss-SSR-SatellitePCVResidualsReq-r18 GNSS-SSR-SatellitePCVResidualsReq-r18 OPTIONAL -- Cond SatPCV-Req + ]] +} + +GNSS-PeriodicAssistDataReq-r15 ::= SEQUENCE { + gnss-RTK-PeriodicObservationsReq-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pOSR + glo-RTK-PeriodicBiasInformationReq-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pCPB + gnss-RTK-MAC-PeriodicCorrectionDifferencesReq-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pMAC + gnss-RTK-PeriodicResidualsReq-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pRes + gnss-RTK-FKP-PeriodicGradientsReq-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pFKP + gnss-SSR-PeriodicOrbitCorrectionsReq-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pOC + gnss-SSR-PeriodicClockCorrectionsReq-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pCC + gnss-SSR-PeriodicCodeBiasReq-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pCB + ..., + [[ + gnss-SSR-PeriodicURA-Req-r16 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pURA + gnss-SSR-PeriodicPhaseBiasReq-r16 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pPB + gnss-SSR-PeriodicSTEC-CorrectionReq-r16 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pSTEC + gnss-SSR-PeriodicGriddedCorrectionReq-r16 GNSS-PeriodicControlParam-r15 OPTIONAL -- Cond pGrid + ]], + [[ + gnss-Integrity-PeriodicServiceAlertReq-r17 GNSS-PeriodicControlParam-r15 OPTIONAL -- Cond pDNU + ]], + [[ + gnss-SSR-PeriodicOrbitCorrectionsSet2Req-r17 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pOC2 + gnss-SSR-PeriodicClockCorrectionsSet2Req-r17 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pCC2 + gnss-SSR-PeriodicURA-Set2Req-r17 GNSS-PeriodicControlParam-r15 OPTIONAL -- Cond pURA2 + ]], + [[ + gnss-SSR-PeriodicIOD-UpdateReq-r18 GNSS-PeriodicControlParam-r15 OPTIONAL -- Cond pPCV + ]] +} + +GNSS-ReferenceTimeReq ::= SEQUENCE { + gnss-TimeReqPrefList SEQUENCE (SIZE (1..8)) OF GNSS-ID, + gps-TOW-assistReq BOOLEAN OPTIONAL, -- Cond gps + notOfLeapSecReq BOOLEAN OPTIONAL, -- Cond glonass + ... +} + +GNSS-ReferenceLocationReq ::= SEQUENCE {...} + +GNSS-IonosphericModelReq ::= SEQUENCE { + klobucharModelReq BIT STRING (SIZE (2)) OPTIONAL, -- Cond klobuchar + neQuickModelReq NULL OPTIONAL, -- Cond nequick + ..., + [[ + klobucharModel2Req-r16 NULL OPTIONAL -- Cond klobuchar 2 + ]] +} + +GNSS-EarthOrientationParametersReq ::= SEQUENCE {...} + +GNSS-RTK-ReferenceStationInfoReq-r15 ::= SEQUENCE { + antennaDescriptionReq-r15 BOOLEAN, + antennaHeightReq-r15 BOOLEAN, + physicalReferenceStationReq-r15 BOOLEAN, + stationID-r15 GNSS-ReferenceStationID-r15 OPTIONAL, + ... +} + +GNSS-RTK-AuxiliaryStationDataReq-r15 ::= SEQUENCE { + master-referenceStationID-r15 GNSS-ReferenceStationID-r15 OPTIONAL, + ... +} + +GNSS-SSR-CorrectionPointsReq-r16 ::= SEQUENCE { + correctionPointSetID-Req-r16 INTEGER (0..16383) OPTIONAL, + ... +} + +GNSS-Integrity-ServiceParametersReq-r17 ::= SEQUENCE {...} + +GNSS-Integrity-ServiceAlertReq-r17 ::= SEQUENCE {...} + +GNSS-SSR-IOD-UpdateReq-r18 ::= SEQUENCE {...} + +GNSS-TimeModelListReq ::= SEQUENCE (SIZE (1..15)) OF GNSS-TimeModelElementReq + +GNSS-TimeModelElementReq ::= SEQUENCE { + gnss-TO-IDsReq INTEGER (1..15), + deltaTreq BOOLEAN, + ... +} + +GNSS-DifferentialCorrectionsReq ::= SEQUENCE { + dgnss-SignalsReq GNSS-SignalIDs, + dgnss-ValidityTimeReq BOOLEAN, + ... +} + +GNSS-NavigationModelReq ::= CHOICE { + storedNavList StoredNavListInfo, + reqNavList ReqNavListInfo, + ... +} + +StoredNavListInfo ::= SEQUENCE { + gnss-WeekOrDay INTEGER (0..4095), + gnss-Toe INTEGER (0..255), + t-toeLimit INTEGER (0..15), + satListRelatedDataList SatListRelatedDataList OPTIONAL, + ... +} + +SatListRelatedDataList ::= SEQUENCE (SIZE (1..64)) OF SatListRelatedDataElement + +SatListRelatedDataElement ::= SEQUENCE { + svID SV-ID, + iod BIT STRING (SIZE (11)), + clockModelID INTEGER (1..8) OPTIONAL, + orbitModelID INTEGER (1..8) OPTIONAL, + ... +} + +ReqNavListInfo ::= SEQUENCE { + svReqList BIT STRING (SIZE (64)), + clockModelID-PrefList SEQUENCE (SIZE (1..8)) OF INTEGER (1..8) OPTIONAL, + orbitModelID-PrefList SEQUENCE (SIZE (1..8)) OF INTEGER (1..8) OPTIONAL, + addNavparamReq BOOLEAN OPTIONAL, -- Cond orbitModelID-2 + ... +} + +GNSS-RealTimeIntegrityReq ::= SEQUENCE {...} + +GNSS-DataBitAssistanceReq ::= SEQUENCE { + gnss-TOD-Req INTEGER (0..3599), + gnss-TOD-FracReq INTEGER (0..999) OPTIONAL, + dataBitInterval INTEGER (0..15), + gnss-SignalType GNSS-SignalIDs, + gnss-DataBitsReq GNSS-DataBitsReqSatList OPTIONAL, + ... +} + +GNSS-DataBitsReqSatList ::= SEQUENCE (SIZE (1..64)) OF GNSS-DataBitsReqSatElement + +GNSS-DataBitsReqSatElement ::= SEQUENCE { + svID SV-ID, + ... +} + +GNSS-AcquisitionAssistanceReq ::= SEQUENCE { + gnss-SignalID-Req GNSS-SignalID, + ... +} + +GNSS-AlmanacReq ::= SEQUENCE { + modelID INTEGER (1..8) OPTIONAL, + ... +} + +GNSS-UTC-ModelReq ::= SEQUENCE { + modelID INTEGER (1..8) OPTIONAL, + ... +} + +GNSS-AuxiliaryInformationReq ::= SEQUENCE {...} + +BDS-DifferentialCorrectionsReq-r12 ::= SEQUENCE { + dgnss-SignalsReq GNSS-SignalIDs, + ... +} + +BDS-GridModelReq-r12 ::= SEQUENCE {...} + +GNSS-RTK-ObservationsReq-r15 ::= SEQUENCE { + gnss-RTK-SignalsReq-r15 GNSS-SignalIDs, + gnss-RTK-Integer-ms-Req-r15 BOOLEAN, + gnss-RTK-PhaseRangeRateReq-r15 BOOLEAN, + gnss-RTK-CNR-Req-r15 BOOLEAN, + stationID-r15 GNSS-ReferenceStationID-r15 OPTIONAL, + ... +} + +GLO-RTK-BiasInformationReq-r15 ::= SEQUENCE { + stationID-r15 GNSS-ReferenceStationID-r15 OPTIONAL, + ... +} + +GNSS-RTK-MAC-CorrectionDifferencesReq-r15 ::= SEQUENCE { + master-ReferenceStationID-r15 GNSS-ReferenceStationID-r15 OPTIONAL, + aux-ReferenceStationList-r15 AUX-ReferenceStationList-r15 OPTIONAL, + linkCombinations-PrefList-r15 GNSS-Link-CombinationsList-r15 OPTIONAL, + ... +} + +AUX-ReferenceStationList-r15 ::= SEQUENCE (SIZE (1..32)) OF AUX-ReferenceStationID-Element-r15 + +AUX-ReferenceStationID-Element-r15 ::= SEQUENCE { + aux-stationID-r15 GNSS-ReferenceStationID-r15, + ... +} + +GNSS-RTK-ResidualsReq-r15 ::= SEQUENCE { + stationID-r15 GNSS-ReferenceStationID-r15 OPTIONAL, + linkCombinations-PrefList-r15 GNSS-Link-CombinationsList-r15 OPTIONAL, + ... +} + +GNSS-RTK-FKP-GradientsReq-r15 ::= SEQUENCE { + stationID-r15 GNSS-ReferenceStationID-r15 OPTIONAL, + linkCombinations-PrefList-r15 GNSS-Link-CombinationsList-r15 OPTIONAL, + ... +} + +GNSS-SSR-OrbitCorrectionsReq-r15 ::= SEQUENCE { + storedNavList-r15 GNSS-NavListInfo-r15 OPTIONAL, + ..., + [[ + orbit-IntegrityReq-r17 BIT STRING {correlationTimeReq (0)} (SIZE (1..8)) OPTIONAL + ]] +} + +GNSS-SSR-ClockCorrectionsReq-r15 ::= SEQUENCE { + storedNavList-r15 GNSS-NavListInfo-r15 OPTIONAL, + ..., + [[ + clock-IntegrityParametersReq-r17 ENUMERATED {true} OPTIONAL, + ssr-IntegrityClockBoundsReq-r17 ENUMERATED {true} OPTIONAL + ]] +} + +GNSS-SSR-CodeBiasReq-r15 ::= SEQUENCE { + signal-and-tracking-mode-ID-Map-r15 GNSS-SignalIDs, + storedNavList-r15 GNSS-NavListInfo-r15 OPTIONAL, + ..., + [[ + ssr-IntegrityCodeBiasBoundsReq-r17 ENUMERATED {requested} OPTIONAL + ]] +} + +GNSS-SSR-URA-Req-r16 ::= SEQUENCE {...} + +GNSS-SSR-PhaseBiasReq-r16 ::= SEQUENCE { + signal-and-tracking-mode-ID-Map-r16 GNSS-SignalIDs, + storedNavList-r16 GNSS-NavListInfo-r15 OPTIONAL, + ..., + [[ + ssr-IntegrityPhaseBiasBoundsReq-r17 ENUMERATED {requested} OPTIONAL + ]] +} + +GNSS-SSR-STEC-CorrectionReq-r16 ::= SEQUENCE { + ..., + [[ + stec-IntegrityReq-r17 BIT STRING {correlationTimeReq (0)} (SIZE (1..8)) OPTIONAL + ]] +} + +GNSS-SSR-GriddedCorrectionReq-r16 ::= SEQUENCE { + ..., + [[ + griddedCorrectionIntegrityReq-r17 ENUMERATED {requested} OPTIONAL + ]] +} + +NavIC-DifferentialCorrectionsReq-r16 ::= SEQUENCE { + dgnss-SignalsReq-r16 GNSS-SignalIDs, + ... +} + +NavIC-GridModelReq-r16 ::= SEQUENCE {...} + +GNSS-SSR-OrbitCorrectionsSet2Req-r17 ::= SEQUENCE { + refEphReq-r17 ENUMERATED { + b1c, + ... + }, + gnss-SSR-OrbitCorrectionsSet2Req-r17 GNSS-SSR-OrbitCorrectionsReq-r15 OPTIONAL, -- Cond OC2-Req + ... +} + +GNSS-SSR-ClockCorrectionsSet2Req-r17 ::= SEQUENCE { + refEphReq-r17 ENUMERATED { + b1c, + ... + }, + gnss-SSR-ClockCorrectionsSet2Req-r17 GNSS-SSR-ClockCorrectionsReq-r15 OPTIONAL, -- Cond CC2-Req + ... +} + +GNSS-SSR-URA-Set2Req-r17 ::= SEQUENCE { + refEphReq-r17 ENUMERATED { + b1c, + ... + }, + ... +} + +GNSS-LOS-NLOS-GriddedIndicationsReq-r18 ::= SEQUENCE { + gridPointsSetID-Req-r18 INTEGER (0..16383) OPTIONAL, + relativeLocationInfo-r18 CHOICE { + inside-r18 ENUMERATED { + upper-left, + upper-right, + lower-left, + lower-right, + ... + }, + outside-r18 ENUMERATED { + north, + west, + south, + east, + above, + below, + ... + } + } OPTIONAL, -- Cond Relative + verticalGridType-r18 ENUMERATED { + ground-level, + threeD + }, + referenceAltitudeFine-r18 INTEGER (0..9) OPTIONAL, + referenceAltitudeCoarse-r18 INTEGER (-50..900) OPTIONAL, + ... +} + +GNSS-SSR-SatellitePCVResidualsReq-r18 ::= SEQUENCE {...} + +A-GNSS-ProvideLocationInformation ::= SEQUENCE { + gnss-SignalMeasurementInformation GNSS-SignalMeasurementInformation OPTIONAL, + gnss-LocationInformation GNSS-LocationInformation OPTIONAL, + gnss-Error A-GNSS-Error OPTIONAL, + ... +} + +GNSS-SignalMeasurementInformation ::= SEQUENCE { + measurementReferenceTime MeasurementReferenceTime, + gnss-MeasurementList GNSS-MeasurementList, + ... +} + +MeasurementReferenceTime ::= SEQUENCE { + gnss-TOD-msec INTEGER (0..3599999), + gnss-TOD-frac INTEGER (0..3999) OPTIONAL, + gnss-TOD-unc INTEGER (0..127) OPTIONAL, + gnss-TimeID GNSS-ID, + networkTime CHOICE { + eUTRA SEQUENCE { + physCellId INTEGER (0..503), + cellGlobalId CellGlobalIdEUTRA-AndUTRA OPTIONAL, + systemFrameNumber BIT STRING (SIZE (10)), + ... + }, + uTRA SEQUENCE { + mode CHOICE { + fdd SEQUENCE { + primary-CPICH-Info INTEGER (0..511), + ... + }, + tdd SEQUENCE { + cellParameters INTEGER (0..127), + ... + } + }, + cellGlobalId CellGlobalIdEUTRA-AndUTRA OPTIONAL, + referenceSystemFrameNumber INTEGER (0..4095), + ... + }, + gSM SEQUENCE { + bcchCarrier INTEGER (0..1023), + bsic INTEGER (0..63), + cellGlobalId CellGlobalIdGERAN OPTIONAL, + referenceFrame SEQUENCE { + referenceFN INTEGER (0..65535), + referenceFNMSB INTEGER (0..63) OPTIONAL, + ... + }, + deltaGNSS-TOD INTEGER (0..127) OPTIONAL, + ... + }, + ..., + nbIoT-r14 SEQUENCE { + nbPhysCellId-r14 INTEGER (0..503), + nbCellGlobalId-r14 ECGI OPTIONAL, + sfn-r14 BIT STRING (SIZE (10)), + hyperSFN-r14 BIT STRING (SIZE (10)) OPTIONAL, + ... + }, + nr-r15 SEQUENCE { + nrPhysCellId-r15 INTEGER (0..1007), + nrCellGlobalID-r15 NCGI-r15 OPTIONAL, + nr-sfn-r15 BIT STRING (SIZE (10)), + ... + } + } OPTIONAL, + ... +} + +GNSS-MeasurementList ::= SEQUENCE (SIZE (1..16)) OF GNSS-MeasurementForOneGNSS + +GNSS-MeasurementForOneGNSS ::= SEQUENCE { + gnss-ID GNSS-ID, + gnss-SgnMeasList GNSS-SgnMeasList, + ... +} + +GNSS-SgnMeasList ::= SEQUENCE (SIZE (1..8)) OF GNSS-SgnMeasElement + +GNSS-SgnMeasElement ::= SEQUENCE { + gnss-SignalID GNSS-SignalID, + gnss-CodePhaseAmbiguity INTEGER (0..127) OPTIONAL, + gnss-SatMeasList GNSS-SatMeasList, + ... +} + +GNSS-SatMeasList ::= SEQUENCE (SIZE (1..64)) OF GNSS-SatMeasElement + +GNSS-SatMeasElement ::= SEQUENCE { + svID SV-ID, + cNo INTEGER (0..63), + mpathDet ENUMERATED { + notMeasured (0), + low (1), + medium (2), + high (3), + ... + }, + carrierQualityInd INTEGER (0..3) OPTIONAL, + codePhase INTEGER (0..2097151), + integerCodePhase INTEGER (0..127) OPTIONAL, + codePhaseRMSError INTEGER (0..63), + doppler INTEGER (-32768..32767) OPTIONAL, + adr INTEGER (0..33554431) OPTIONAL, + ..., + [[ + adrMSB-r15 INTEGER (0..15) OPTIONAL, + adrSign-r15 ENUMERATED { + positive, + negative + } OPTIONAL, + adrRMSerror-r15 INTEGER (0..127) OPTIONAL, + delta-codePhase-r15 INTEGER (0..7) OPTIONAL + ]] +} + +GNSS-LocationInformation ::= SEQUENCE { + measurementReferenceTime MeasurementReferenceTime, + agnss-List GNSS-ID-Bitmap, + ..., + [[ + ha-GNSS-Metrics-r17 HA-GNSS-Metrics-r17 OPTIONAL + ]] +} + +HA-GNSS-Metrics-r17 ::= SEQUENCE { + nrOfUsedSatellites-r17 INTEGER (0..64), + hdopi-r17 INTEGER (1..256) OPTIONAL, + pdopi-r17 INTEGER (1..256) OPTIONAL, + age-r17 INTEGER (0..99) OPTIONAL, + fixType-r17 ENUMERATED { + carrier-phase-float, + carrier-phase-fix, + ... + } OPTIONAL, + ... +} + +A-GNSS-RequestLocationInformation ::= SEQUENCE { + gnss-PositioningInstructions GNSS-PositioningInstructions, + ... +} + +GNSS-PositioningInstructions ::= SEQUENCE { + gnss-Methods GNSS-ID-Bitmap, + fineTimeAssistanceMeasReq BOOLEAN, + adrMeasReq BOOLEAN, + multiFreqMeasReq BOOLEAN, + assistanceAvailability BOOLEAN, + ..., + [[ + ha-GNSS-Req-r15 ENUMERATED {true} OPTIONAL -- Cond UEB + ]], + [[ + ha-GNSS-MetricsReq-r17 ENUMERATED {true} OPTIONAL -- Cond UEB + ]] +} + +A-GNSS-ProvideCapabilities ::= SEQUENCE { + gnss-SupportList GNSS-SupportList OPTIONAL, + assistanceDataSupportList AssistanceDataSupportList OPTIONAL, + locationCoordinateTypes LocationCoordinateTypes OPTIONAL, + velocityTypes VelocityTypes OPTIONAL, + ..., + [[ + periodicalReportingNotSupported-r14 PositioningModes OPTIONAL, + idleStateForMeasurements-r14 ENUMERATED {required} OPTIONAL + ]], + [[ + periodicAssistanceData-r15 BIT STRING { + solicited (0), + unsolicited (1) + } (SIZE (1..8)) OPTIONAL + ]], + [[ + scheduledLocationRequestSupported-r17 ScheduledLocationTimeSupportPerMode-r17 OPTIONAL + ]] +} + +GNSS-SupportList ::= SEQUENCE (SIZE (1..16)) OF GNSS-SupportElement + +GNSS-SupportElement ::= SEQUENCE { + gnss-ID GNSS-ID, + sbas-IDs SBAS-IDs OPTIONAL, -- Cond GNSS-ID-SBAS + agnss-Modes PositioningModes, + gnss-Signals GNSS-SignalIDs, + fta-MeasSupport SEQUENCE { + cellTime AccessTypes, + mode PositioningModes, + ... + } OPTIONAL, -- Cond fta + adr-Support BOOLEAN, + velocityMeasurementSupport BOOLEAN, + ..., + [[ + adrEnhancementsSupport-r15 ENUMERATED {true} OPTIONAL, + ha-gnss-Modes-r15 PositioningModes OPTIONAL + ]], + [[ + ha-gnss-MetricsSupport-r17 ENUMERATED {true} OPTIONAL + ]] +} + +AssistanceDataSupportList ::= SEQUENCE { + gnss-CommonAssistanceDataSupport GNSS-CommonAssistanceDataSupport, + gnss-GenericAssistanceDataSupport GNSS-GenericAssistanceDataSupport, + ... +} + +GNSS-CommonAssistanceDataSupport ::= SEQUENCE { + gnss-ReferenceTimeSupport GNSS-ReferenceTimeSupport OPTIONAL, -- Cond RefTimeSup + gnss-ReferenceLocationSupport GNSS-ReferenceLocationSupport OPTIONAL, -- Cond RefLocSup + gnss-IonosphericModelSupport GNSS-IonosphericModelSupport OPTIONAL, -- Cond IonoModSup + gnss-EarthOrientationParametersSupport GNSS-EarthOrientationParametersSupport OPTIONAL, -- Cond EOPSup + ..., + [[ + gnss-RTK-ReferenceStationInfoSupport-r15 GNSS-RTK-ReferenceStationInfoSupport-r15 OPTIONAL, -- Cond ARPSup + gnss-RTK-AuxiliaryStationDataSupport-r15 GNSS-RTK-AuxiliaryStationDataSupport-r15 OPTIONAL -- Cond AuxARPSup + ]], + [[ + gnss-Integrity-ServiceParametersSupport-r17 GNSS-Integrity-ServiceParametersSupport-r17 OPTIONAL, -- Cond IntServiceSup + gnss-Integrity-ServiceAlertSupport-r17 GNSS-Integrity-ServiceAlertSupport-r17 OPTIONAL -- Cond IntAlertSup + ]], + [[ + gnss-SSR-IOD-UpdateSupport-r18 GNSS-SSR-IOD-UpdateSupport-r18 OPTIONAL -- Cond IODUpdateSup + ]] +} + +GNSS-ReferenceTimeSupport ::= SEQUENCE { + gnss-SystemTime GNSS-ID-Bitmap, + fta-Support AccessTypes OPTIONAL, -- Cond fta + ... +} + +GNSS-ReferenceLocationSupport ::= SEQUENCE {...} + +GNSS-IonosphericModelSupport ::= SEQUENCE { + ionoModel BIT STRING { + klobuchar (0), + neQuick (1), + klobuchar2-r16 (2) + } (SIZE (1..8)), + ... +} + +GNSS-EarthOrientationParametersSupport ::= SEQUENCE {...} + +GNSS-RTK-ReferenceStationInfoSupport-r15 ::= SEQUENCE {...} + +GNSS-RTK-AuxiliaryStationDataSupport-r15 ::= SEQUENCE {...} + +GNSS-Integrity-ServiceParametersSupport-r17 ::= SEQUENCE {...} + +GNSS-Integrity-ServiceAlertSupport-r17 ::= SEQUENCE {...} + +GNSS-SSR-IOD-UpdateSupport-r18 ::= SEQUENCE {...} + +GNSS-GenericAssistanceDataSupport ::= SEQUENCE (SIZE (1..16)) OF GNSS-GenericAssistDataSupportElement + +GNSS-GenericAssistDataSupportElement ::= SEQUENCE { + gnss-ID GNSS-ID, + sbas-ID SBAS-ID OPTIONAL, -- Cond GNSS-ID-SBAS + gnss-TimeModelsSupport GNSS-TimeModelListSupport OPTIONAL, -- Cond TimeModSup + gnss-DifferentialCorrectionsSupport GNSS-DifferentialCorrectionsSupport OPTIONAL, -- Cond DGNSS-Sup + gnss-NavigationModelSupport GNSS-NavigationModelSupport OPTIONAL, -- Cond NavModSup + gnss-RealTimeIntegritySupport GNSS-RealTimeIntegritySupport OPTIONAL, -- Cond RTISup + gnss-DataBitAssistanceSupport GNSS-DataBitAssistanceSupport OPTIONAL, -- Cond DataBitsSup + gnss-AcquisitionAssistanceSupport GNSS-AcquisitionAssistanceSupport OPTIONAL, -- Cond AcquAssistSup + gnss-AlmanacSupport GNSS-AlmanacSupport OPTIONAL, -- Cond AlmanacSup + gnss-UTC-ModelSupport GNSS-UTC-ModelSupport OPTIONAL, -- Cond UTCModSup + gnss-AuxiliaryInformationSupport GNSS-AuxiliaryInformationSupport OPTIONAL, -- Cond AuxInfoSup + ..., + [[ + bds-DifferentialCorrectionsSupport-r12 BDS-DifferentialCorrectionsSupport-r12 OPTIONAL, -- Cond DBDS-Sup + bds-GridModelSupport-r12 BDS-GridModelSupport-r12 OPTIONAL -- Cond BDS-GridModSup + ]], + [[ + gnss-RTK-ObservationsSupport-r15 GNSS-RTK-ObservationsSupport-r15 OPTIONAL, -- Cond RTK-OSR-Sup + glo-RTK-BiasInformationSupport-r15 GLO-RTK-BiasInformationSupport-r15 OPTIONAL, -- Cond GLO-CPB-Sup + gnss-RTK-MAC-CorrectionDifferencesSupport-r15 GNSS-RTK-MAC-CorrectionDifferencesSupport-r15 OPTIONAL, -- Cond MAC-Sup + gnss-RTK-ResidualsSupport-r15 GNSS-RTK-ResidualsSupport-r15 OPTIONAL, -- Cond Res-Sup + gnss-RTK-FKP-GradientsSupport-r15 GNSS-RTK-FKP-GradientsSupport-r15 OPTIONAL, -- Cond FKP-Sup + gnss-SSR-OrbitCorrectionsSupport-r15 GNSS-SSR-OrbitCorrectionsSupport-r15 OPTIONAL, -- Cond OC-Sup + gnss-SSR-ClockCorrectionsSupport-r15 GNSS-SSR-ClockCorrectionsSupport-r15 OPTIONAL, -- Cond CC-Sup + gnss-SSR-CodeBiasSupport-r15 GNSS-SSR-CodeBiasSupport-r15 OPTIONAL -- Cond CB-Sup + ]], + [[ + gnss-SSR-URA-Support-r16 GNSS-SSR-URA-Support-r16 OPTIONAL, -- Cond URA-Sup + gnss-SSR-PhaseBiasSupport-r16 GNSS-SSR-PhaseBiasSupport-r16 OPTIONAL, -- Cond PB-Sup + gnss-SSR-STEC-CorrectionSupport-r16 GNSS-SSR-STEC-CorrectionSupport-r16 OPTIONAL, -- Cond STEC-Sup + gnss-SSR-GriddedCorrectionSupport-r16 GNSS-SSR-GriddedCorrectionSupport-r16 OPTIONAL, -- Cond Grid-Sup + navic-DifferentialCorrectionsSupport-r16 NavIC-DifferentialCorrectionsSupport-r16 OPTIONAL, -- Cond DNavIC-Sup + navic-GridModelSupport-r16 NavIC-GridModelSupport-r16 OPTIONAL -- Cond NavIC-GridModSup + ]], + [[ + gnss-SSR-OrbitCorrectionsSet2Support-r17 GNSS-SSR-OrbitCorrectionsSet2Support-r17 OPTIONAL, -- Cond OC2-Sup + gnss-SSR-ClockCorrectionsSet2Support-r17 GNSS-SSR-ClockCorrectionsSet2Support-r17 OPTIONAL, -- Cond CC2-Sup + gnss-SSR-URA-Set2Support-r17 GNSS-SSR-URA-Set2Support-r17 OPTIONAL -- Cond URA2-Sup + ]], + [[ + gnss-LOS-NLOS-GriddedIndicationsSupport-r18 GNSS-LOS-NLOS-GriddedIndicationsSupport-r18 OPTIONAL, -- Cond LOS-NLOS-Grid-Sup + gnss-SSR-SatellitePCVResidualsSupport-r18 GNSS-SSR-SatellitePCVResidualsSupport-r18 OPTIONAL -- Cond SatPCV-Sup + ]] +} + +GNSS-TimeModelListSupport ::= SEQUENCE {...} + +GNSS-DifferentialCorrectionsSupport ::= SEQUENCE { + gnssSignalIDs GNSS-SignalIDs, + dgnss-ValidityTimeSup BOOLEAN, + ... +} + +GNSS-NavigationModelSupport ::= SEQUENCE { + clockModel BIT STRING { + model-1 (0), + model-2 (1), + model-3 (2), + model-4 (3), + model-5 (4), + model-6 (5), + model-7-r16 (6), + model-8-r16 (7) + } (SIZE (1..8)) OPTIONAL, + orbitModel BIT STRING { + model-1 (0), + model-2 (1), + model-3 (2), + model-4 (3), + model-5 (4), + model-6 (5), + model-7-r16 (6), + model-8-r16 (7) + } (SIZE (1..8)) OPTIONAL, + ... +} + +GNSS-RealTimeIntegritySupport ::= SEQUENCE {...} + +GNSS-DataBitAssistanceSupport ::= SEQUENCE {...} + +GNSS-AcquisitionAssistanceSupport ::= SEQUENCE { + ..., + confidenceSupport-r10 ENUMERATED {true} OPTIONAL, + dopplerUncertaintyExtSupport-r10 ENUMERATED {true} OPTIONAL +} + +GNSS-AlmanacSupport ::= SEQUENCE { + almanacModel BIT STRING { + model-1 (0), + model-2 (1), + model-3 (2), + model-4 (3), + model-5 (4), + model-6 (5), + model-7 (6) + } (SIZE (1..8)) OPTIONAL, + ... +} + +GNSS-UTC-ModelSupport ::= SEQUENCE { + utc-Model BIT STRING { + model-1 (0), + model-2 (1), + model-3 (2), + model-4 (3), + model-5 (4) + } (SIZE (1..8)) OPTIONAL, + ... +} + +GNSS-AuxiliaryInformationSupport ::= SEQUENCE {...} + +BDS-DifferentialCorrectionsSupport-r12 ::= SEQUENCE { + gnssSignalIDs GNSS-SignalIDs, + ... +} + +BDS-GridModelSupport-r12 ::= SEQUENCE {...} + +GNSS-RTK-ObservationsSupport-r15 ::= SEQUENCE { + gnssSignalIDs-r15 GNSS-SignalIDs, + ... +} + +GLO-RTK-BiasInformationSupport-r15 ::= SEQUENCE {...} + +GNSS-RTK-MAC-CorrectionDifferencesSupport-r15 ::= SEQUENCE { + link-combinations-support-r15 GNSS-Link-CombinationsList-r15, + ... +} + +GNSS-RTK-ResidualsSupport-r15 ::= SEQUENCE { + link-combinations-support-r15 GNSS-Link-CombinationsList-r15, + ... +} + +GNSS-RTK-FKP-GradientsSupport-r15 ::= SEQUENCE { + link-combinations-support-r15 GNSS-Link-CombinationsList-r15, + ... +} + +GNSS-SSR-OrbitCorrectionsSupport-r15 ::= SEQUENCE { + ..., + [[ + orbit-IntegritySup-r17 BIT STRING {correlationTimeSup (0)} (SIZE (1..8)) OPTIONAL + ]] +} + +GNSS-SSR-ClockCorrectionsSupport-r15 ::= SEQUENCE { + ..., + [[ + clock-IntegrityParameterSupport-r17 ENUMERATED {supported} OPTIONAL, + ssr-IntegrityClockBoundsSupport-r17 ENUMERATED {supported} OPTIONAL + ]] +} + +GNSS-SSR-CodeBiasSupport-r15 ::= SEQUENCE { + signal-and-tracking-mode-ID-Sup-r15 GNSS-SignalIDs, + ..., + [[ + ssr-IntegrityCodeBiasBoundsSup-r17 ENUMERATED {supported} OPTIONAL + ]] +} + +GNSS-SSR-URA-Support-r16 ::= SEQUENCE {...} + +GNSS-SSR-PhaseBiasSupport-r16 ::= SEQUENCE { + signal-and-tracking-mode-ID-Sup-r16 GNSS-SignalIDs, + ..., + [[ + ssr-IntegrityPhaseBiasBoundsSup-r17 ENUMERATED {supported} OPTIONAL + ]] +} + +GNSS-SSR-STEC-CorrectionSupport-r16 ::= SEQUENCE { + ..., + [[ + stec-IntegritySup-r17 BIT STRING {correlationTimeSup (0)} (SIZE (1..8)) OPTIONAL + ]] +} + +GNSS-SSR-GriddedCorrectionSupport-r16 ::= SEQUENCE { + ..., + [[ + griddedCorrectionIntegritySup-r17 ENUMERATED {supported} OPTIONAL + ]] +} + +NavIC-DifferentialCorrectionsSupport-r16 ::= SEQUENCE { + gnssSignalIDs-r16 GNSS-SignalIDs, + ... +} + +NavIC-GridModelSupport-r16 ::= SEQUENCE {...} + +GNSS-SSR-OrbitCorrectionsSet2Support-r17 ::= SEQUENCE {...} + +GNSS-SSR-ClockCorrectionsSet2Support-r17 ::= SEQUENCE {...} + +GNSS-SSR-URA-Set2Support-r17 ::= SEQUENCE {...} + +GNSS-LOS-NLOS-GriddedIndicationsSupport-r18 ::= SEQUENCE {...} + +GNSS-SSR-SatellitePCVResidualsSupport-r18 ::= SEQUENCE {...} + +A-GNSS-RequestCapabilities ::= SEQUENCE { + gnss-SupportListReq BOOLEAN, + assistanceDataSupportListReq BOOLEAN, + locationVelocityTypesReq BOOLEAN, + ... +} + +A-GNSS-Error ::= CHOICE { + locationServerErrorCauses GNSS-LocationServerErrorCauses, + targetDeviceErrorCauses GNSS-TargetDeviceErrorCauses, + ... +} + +GNSS-LocationServerErrorCauses ::= SEQUENCE { + cause ENUMERATED { + undefined, + undeliveredAssistanceDataIsNotSupportedByServer, + undeliveredAssistanceDataIsSupportedButCurrentlyNotAvailableByServer, + undeliveredAssistanceDataIsPartlyNotSupportedAndPartlyNotAvailableByServer, + ..., + unconfirmedPeriodicAssistanceDataIsNotSupported-v1510, + unconfirmedPeriodicAssistanceDataIsSupportedButCurrentlyNotAvailable-v1510, + unconfirmedPeriodicAssistanceDataIsPartlyNotSupportedAndPartlyNotAvailable-v1510, + undeliveredPeriodicAssistanceDataIsCurrentlyNotAvailable-v1510 + }, + ... +} + +GNSS-TargetDeviceErrorCauses ::= SEQUENCE { + cause ENUMERATED { + undefined, + thereWereNotEnoughSatellitesReceived, + assistanceDataMissing, + notAllRequestedMeasurementsPossible, + ... + }, + fineTimeAssistanceMeasurementsNotPossible NULL OPTIONAL, + adrMeasurementsNotPossible NULL OPTIONAL, + multiFrequencyMeasurementsNotPossible NULL OPTIONAL, + ..., + [[ + remoteUE-Indication-r18 ENUMERATED {true} OPTIONAL -- Cond NR + ]] +} + +GNSS-FrequencyID-r15 ::= SEQUENCE { + gnss-FrequencyID-r15 INTEGER (0..7), + ... +} + +GNSS-ID ::= SEQUENCE { + gnss-id ENUMERATED { + gps, + sbas, + qzss, + galileo, + glonass, + ..., + bds, + navic-v1610 + }, + ... +} + +GNSS-ID-Bitmap ::= SEQUENCE { + gnss-ids BIT STRING { + gps (0), + sbas (1), + qzss (2), + galileo (3), + glonass (4), + bds (5), + navic-v1610 (6) + } (SIZE (1..16)), + ... +} + +GNSS-Link-CombinationsList-r15 ::= SEQUENCE (SIZE (1..8)) OF GNSS-Link-Combinations-r15 + +GNSS-Link-Combinations-r15 ::= SEQUENCE { + l1-r15 GNSS-FrequencyID-r15, + l2-r15 GNSS-FrequencyID-r15, + ... +} + +GNSS-NavListInfo-r15 ::= SEQUENCE (SIZE (1..64)) OF SatListElement-r15 + +SatListElement-r15 ::= SEQUENCE { + svID-r15 SV-ID, + iod-r15 BIT STRING (SIZE (11)), + ... +} + +GNSS-NetworkID-r15 ::= SEQUENCE { + networkID-r15 INTEGER (0..255), + ... +} + +GNSS-PeriodicControlParam-r15 ::= SEQUENCE { + deliveryAmount-r15 INTEGER (1..32), + deliveryInterval-r15 INTEGER (1..64), + ... +} + +GNSS-ReferenceStationID-r15 ::= SEQUENCE { + referenceStationID-r15 INTEGER (0..65535), + providerName-r15 VisibleString (SIZE (1..32)) OPTIONAL, -- Need ON + ... +} + +GNSS-SignalID ::= SEQUENCE { + gnss-SignalID INTEGER (0..7), + ..., + [[ + gnss-SignalID-Ext-r15 INTEGER (8..23) OPTIONAL -- Need ON + ]] +} + +GNSS-SignalIDs ::= SEQUENCE { + gnss-SignalIDs BIT STRING (SIZE (8)), + ..., + [[ + gnss-SignalIDs-Ext-r15 BIT STRING (SIZE (16)) OPTIONAL -- Need ON + ]] +} + +GNSS-SubNetworkID-r15 ::= SEQUENCE { + subNetworkID-r15 INTEGER (0..15), + ... +} + +SBAS-ID ::= SEQUENCE { + sbas-id ENUMERATED { + waas, + egnos, + msas, + gagan, + ... + }, + ... +} + +SBAS-IDs ::= SEQUENCE { + sbas-IDs BIT STRING { + waas (0), + egnos (1), + msas (2), + gagan (3) + } (SIZE (1..8)), + ... +} + +SV-ID ::= SEQUENCE { + satellite-id INTEGER (0..63), + ... +} + +ECID-ProvideLocationInformation ::= SEQUENCE { + ecid-SignalMeasurementInformation ECID-SignalMeasurementInformation OPTIONAL, + ecid-Error ECID-Error OPTIONAL, + ... +} + +ECID-SignalMeasurementInformation ::= SEQUENCE { + primaryCellMeasuredResults MeasuredResultsElement OPTIONAL, + measuredResultsList MeasuredResultsList, + ... +} + +MeasuredResultsList ::= SEQUENCE (SIZE (1..32)) OF MeasuredResultsElement + +MeasuredResultsElement ::= SEQUENCE { + physCellId INTEGER (0..503), + cellGlobalId CellGlobalIdEUTRA-AndUTRA OPTIONAL, + arfcnEUTRA ARFCN-ValueEUTRA, + systemFrameNumber BIT STRING (SIZE (10)) OPTIONAL, + rsrp-Result INTEGER (0..97) OPTIONAL, + rsrq-Result INTEGER (0..34) OPTIONAL, + ue-RxTxTimeDiff INTEGER (0..4095) OPTIONAL, + ..., + [[ + arfcnEUTRA-v9a0 ARFCN-ValueEUTRA-v9a0 OPTIONAL -- Cond EARFCN-max + ]], + [[ + nrsrp-Result-r14 INTEGER (0..113) OPTIONAL, + nrsrq-Result-r14 INTEGER (0..74) OPTIONAL, + carrierFreqOffsetNB-r14 CarrierFreqOffsetNB-r14 OPTIONAL, -- Cond NB-IoT + hyperSFN-r14 BIT STRING (SIZE (10)) OPTIONAL + ]], + [[ + rsrp-Result-v1470 INTEGER (-17..-1) OPTIONAL, + rsrq-Result-v1470 INTEGER (-30..46) OPTIONAL + ]] +} + +ECID-RequestLocationInformation ::= SEQUENCE { + requestedMeasurements BIT STRING { + rsrpReq (0), + rsrqReq (1), + ueRxTxReq (2), + nrsrpReq-r14 (3), + nrsrqReq-r14 (4) + } (SIZE (1..8)), + ... +} + +ECID-ProvideCapabilities ::= SEQUENCE { + ecid-MeasSupported BIT STRING { + rsrpSup (0), + rsrqSup (1), + ueRxTxSup (2), + nrsrpSup-r14 (3), + nrsrqSup-r14 (4) + } (SIZE (1..8)), + ..., + [[ + ueRxTxSupTDD-r13 ENUMERATED {true} OPTIONAL + ]], + [[ + periodicalReporting-r14 ENUMERATED {supported} OPTIONAL, + triggeredReporting-r14 ENUMERATED {supported} OPTIONAL, + idleStateForMeasurements-r14 ENUMERATED {required} OPTIONAL + ]], + [[ + scheduledLocationRequestSupported-r17 ScheduledLocationTimeSupport-r17 OPTIONAL + ]] +} + +ECID-RequestCapabilities ::= SEQUENCE {...} + +ECID-Error ::= CHOICE { + locationServerErrorCauses ECID-LocationServerErrorCauses, + targetDeviceErrorCauses ECID-TargetDeviceErrorCauses, + ... +} + +ECID-LocationServerErrorCauses ::= SEQUENCE { + cause ENUMERATED { + undefined, + ... + }, + ... +} + +ECID-TargetDeviceErrorCauses ::= SEQUENCE { + cause ENUMERATED { + undefined, + requestedMeasurementNotAvailable, + notAllrequestedMeasurementsPossible, + ... + }, + rsrpMeasurementNotPossible NULL OPTIONAL, + rsrqMeasurementNotPossible NULL OPTIONAL, + ueRxTxMeasurementNotPossible NULL OPTIONAL, + ..., + [[ + nrsrpMeasurementNotPossible-r14 NULL OPTIONAL, + nrsrqMeasurementNotPossible-r14 NULL OPTIONAL + ]] +} + +TBS-ProvideLocationInformation-r13 ::= SEQUENCE { + tbs-MeasurementInformation-r13 TBS-MeasurementInformation-r13 OPTIONAL, + tbs-Error-r13 TBS-Error-r13 OPTIONAL, + ... +} + +TBS-MeasurementInformation-r13 ::= SEQUENCE { + measurementReferenceTime-r13 UTCTime OPTIONAL, + mbs-SgnMeasList-r13 MBS-BeaconMeasList-r13 OPTIONAL, -- Cond MBS + ... +} + +MBS-BeaconMeasList-r13 ::= SEQUENCE (SIZE (1..64)) OF MBS-BeaconMeasElement-r13 + +MBS-BeaconMeasElement-r13 ::= SEQUENCE { + transmitterID-r13 INTEGER (0..32767), + codePhase-r13 INTEGER (0..2097151), + codePhaseRMSError-r13 INTEGER (0..63), + ..., + [[ + rssi-r14 INTEGER (-130..-30) OPTIONAL + ]] +} + +TBS-RequestLocationInformation-r13 ::= SEQUENCE { + mbsSgnMeasListReq-r13 BOOLEAN, + ..., + [[ + mbsAssistanceAvailability-r14 BOOLEAN OPTIONAL, -- Need ON + mbsRequestedMeasurements-r14 BIT STRING {rssi (0)} (SIZE (1..8)) OPTIONAL -- Need ON + ]] +} + +TBS-ProvideCapabilities-r13 ::= SEQUENCE { + tbs-Modes-r13 BIT STRING { + standalone (0), + ue-assisted (1), + ue-based (2) + } (SIZE (1..8)), + ..., + [[ + mbs-AssistanceDataSupportList-r14 MBS-AssistanceDataSupportList-r14 OPTIONAL, + periodicalReportingSupported-r14 PositioningModes OPTIONAL, + mbs-ConfigSupport-r14 BIT STRING { + tb1 (0), + tb2 (1), + tb3 (2), + tb4 (3) + } (SIZE (1..8)) OPTIONAL, + mbs-IdleStateForMeasurements-r14 ENUMERATED {required} OPTIONAL + ]], + [[ + scheduledLocationRequestSupported-r17 ScheduledLocationTimeSupportPerMode-r17 OPTIONAL + ]] +} + +MBS-AssistanceDataSupportList-r14 ::= SEQUENCE { + mbs-AcquisitionAssistanceDataSupport-r14 BOOLEAN, + mbs-AlmanacAssistanceDataSupport-r14 BOOLEAN, + ... +} + +TBS-RequestCapabilities-r13 ::= SEQUENCE {...} + +TBS-Error-r13 ::= CHOICE { + locationServerErrorCauses-r13 TBS-LocationServerErrorCauses-r13, + targetDeviceErrorCauses-r13 TBS-TargetDeviceErrorCauses-r13, + ... +} + +TBS-LocationServerErrorCauses-r13 ::= SEQUENCE { + cause-r13 ENUMERATED { + undefined, + ..., + assistanceDataNotSupportedByServer-v1420, + assistanceDataSupportedButCurrentlyNotAvailableByServer-v1420 + }, + ... +} + +TBS-TargetDeviceErrorCauses-r13 ::= SEQUENCE { + cause-r13 ENUMERATED { + undefined, + thereWereNotEnoughMBSBeaconsReceived, + ..., + assistanceDataMissing-v1420 + }, + ... +} + +TBS-ProvideAssistanceData-r14 ::= SEQUENCE { + tbs-AssistanceDataList-r14 TBS-AssistanceDataList-r14 OPTIONAL, -- Need ON + tbs-Error-r14 TBS-Error-r13 OPTIONAL, -- Need ON + ... +} + +TBS-AssistanceDataList-r14 ::= SEQUENCE { + mbs-AssistanceDataList-r14 MBS-AssistanceDataList-r14 OPTIONAL, -- Need ON + ... +} + +MBS-AssistanceDataList-r14 ::= SEQUENCE (SIZE (1..maxMBS-r14)) OF MBS-AssistanceDataElement-r14 + +MBS-AssistanceDataElement-r14 ::= SEQUENCE { + mbs-AlmanacAssistance-r14 MBS-AlmanacAssistance-r14 OPTIONAL, -- Need ON + mbs-AcquisitionAssistance-r14 MBS-AcquisitionAssistance-r14 OPTIONAL, -- Need ON + ... +} + +MBS-AlmanacAssistance-r14 ::= SEQUENCE { + transmitterID-r14 INTEGER (0..32767), + transmitterLatitude-r14 BIT STRING (SIZE (26)), + transmitterLongitude-r14 BIT STRING (SIZE (27)), + transmitterAltitude-r14 BIT STRING (SIZE (15)), + timeCorrection-r14 INTEGER (0..25) OPTIONAL, -- Need ON + ... +} + +MBS-AcquisitionAssistance-r14 ::= SEQUENCE { + transmitterID-r14 INTEGER (0..32767) OPTIONAL, -- Need ON + mbsConfiguration-r14 ENUMERATED { + tb1, + tb2, + tb3, + tb4, + ... + } OPTIONAL, -- Need ON + pnCodeIndex-r14 INTEGER (1..128) OPTIONAL, -- Need ON + freq-r14 INTEGER (919750000..927250000) OPTIONAL, -- Need ON + ... +} + +TBS-RequestAssistanceData-r14 ::= SEQUENCE { + mbs-AlmanacAssistanceDataReq-r14 BOOLEAN, + mbs-AcquisitionAssistanceDataReq-r14 BOOLEAN, + ... +} + +Sensor-ProvideLocationInformation-r13 ::= SEQUENCE { + sensor-MeasurementInformation-r13 Sensor-MeasurementInformation-r13 OPTIONAL, + sensor-Error-r13 Sensor-Error-r13 OPTIONAL, + ..., + [[ + sensor-MotionInformation-r15 Sensor-MotionInformation-r15 OPTIONAL + ]] +} + +Sensor-MeasurementInformation-r13 ::= SEQUENCE { + measurementReferenceTime-r13 UTCTime OPTIONAL, + uncompensatedBarometricPressure-r13 INTEGER (30000..115000) OPTIONAL, -- Cond Barometer + ..., + [[ + uncertainty-r14 SEQUENCE { + range-r14 INTEGER (0..1000), + confidence-r14 INTEGER (1..100) + } OPTIONAL + ]], + [[ + adjustment-r16 INTEGER (-5000..5000) OPTIONAL + ]] +} + +Sensor-MotionInformation-r15 ::= SEQUENCE { + refTime-r15 DisplacementTimeStamp-r15, + displacementInfoList-r15 DisplacementInfoList-r15, + ... +} + +DisplacementInfoList-r15 ::= SEQUENCE (SIZE (1..128)) OF DisplacementInfoListElement-r15 + +DisplacementInfoListElement-r15 ::= SEQUENCE { + deltaTimeStamp-r15 DeltaTime-r15, + displacement-r15 Displacement-r15 OPTIONAL, + ... +} + +DisplacementTimeStamp-r15 ::= CHOICE { + utcTime-r15 UTC-Time-r15, + gnssTime-r15 MeasurementReferenceTime, + systemFrameNumber-r15 SFN-r15, + measurementSFN-r15 INTEGER (-8192..9214), + ... +} + +DeltaTime-r15 ::= CHOICE { + deltaTimeSec-r15 INTEGER (1..16384), + deltaTimeSFN-r15 INTEGER (1..4096), + ... +} + +SFN-r15 ::= SEQUENCE { + sfn-r15 BIT STRING (SIZE (10)), + hyperSFN-r15 BIT STRING (SIZE (10)) OPTIONAL, + ... +} + +Displacement-r15 ::= SEQUENCE { + bearing-r15 INTEGER (0..3599), + bearingUncConfidence-r15 INTEGER (0..100) OPTIONAL, + bearingRef-r15 ENUMERATED { + geographicNorth, + magneticNorth, + local + }, + horizontalDistance-r15 INTEGER (0..8191), + horizontalDistanceUnc-r15 INTEGER (0..255) OPTIONAL, + horizontalUncConfidence-r15 INTEGER (0..100) OPTIONAL, + verticalDirection-r15 ENUMERATED { + upward, + downward + } OPTIONAL, + verticalDistance-r15 INTEGER (0..8191) OPTIONAL, + verticalDistanceUnc-r15 INTEGER (0..255) OPTIONAL, + verticalUncConfidence-r15 INTEGER (0..100) OPTIONAL, + ... +} + +UTC-Time-r15 ::= SEQUENCE { + utcTime-r15 UTCTime, + utcTime-ms-r15 INTEGER (0..999), + ... +} + +Sensor-RequestLocationInformation-r13 ::= SEQUENCE { + uncompensatedBarometricPressureReq-r13 BOOLEAN, + ..., + [[ + assistanceAvailability-r14 BOOLEAN OPTIONAL -- Need ON + ]], + [[ + sensor-MotionInformationReq-r15 BOOLEAN OPTIONAL -- Need ON + ]], + [[ + adjustmentReq-r16 BOOLEAN OPTIONAL -- Need ON + ]] +} + +Sensor-ProvideCapabilities-r13 ::= SEQUENCE { + sensor-Modes-r13 BIT STRING { + standalone (0), + ue-assisted (1), + ue-based (2) + } (SIZE (1..8)), + ..., + [[ + sensor-AssistanceDataSupportList-r14 Sensor-AssistanceDataSupportList-r14 OPTIONAL, + periodicalReportingSupported-r14 PositioningModes OPTIONAL, + idleStateForMeasurements-r14 ENUMERATED {required} OPTIONAL + ]], + [[ + sensor-MotionInformationSup-r15 ENUMERATED {true} OPTIONAL + ]], + [[ + adjustmentSupported-r16 ENUMERATED {true} OPTIONAL + ]], + [[ + scheduledLocationRequestSupported-r17 ScheduledLocationTimeSupportPerMode-r17 OPTIONAL + ]] +} + +Sensor-AssistanceDataSupportList-r14 ::= SEQUENCE { + ..., + [[ + validityPeriodSupported-v1520 ENUMERATED {true} OPTIONAL, + validityAreaSupported-v1520 ENUMERATED {true} OPTIONAL + ]] +} + +Sensor-RequestCapabilities-r13 ::= SEQUENCE {...} + +Sensor-Error-r13 ::= CHOICE { + locationServerErrorCauses-r13 Sensor-LocationServerErrorCauses-r13, + targetDeviceErrorCauses-r13 Sensor-TargetDeviceErrorCauses-r13, + ... +} + +Sensor-LocationServerErrorCauses-r13 ::= SEQUENCE { + cause-r13 ENUMERATED { + undefined, + ..., + assistanceDataNotSupportedByServer-v1420, + assistanceDataSupportedButCurrentlyNotAvailableByServer-v1420 + }, + ... +} + +Sensor-TargetDeviceErrorCauses-r13 ::= SEQUENCE { + cause-r13 ENUMERATED { + undefined, + ..., + assistanceDataMissing-v1420 + }, + ... +} + +Sensor-ProvideAssistanceData-r14 ::= SEQUENCE { + sensor-AssistanceDataList-r14 Sensor-AssistanceDataList-r14 OPTIONAL, -- Need ON + sensor-Error-r14 Sensor-Error-r13 OPTIONAL, -- Need ON + ... +} + +Sensor-AssistanceDataList-r14 ::= SEQUENCE { + refPressure-r14 INTEGER (-20000..10000), + refPosition-r14 EllipsoidPointWithAltitudeAndUncertaintyEllipsoid OPTIONAL, -- Need ON + refTemperature-r14 INTEGER (-64..63) OPTIONAL, -- Need ON + ..., + [[ + period-v1520 SEQUENCE { + pressureValidityPeriod-v1520 PressureValidityPeriod-v1520, + referencePressureRate-v1520 INTEGER (-128..127) OPTIONAL, -- Need ON + ... + } OPTIONAL, -- Need ON + area-v1520 SEQUENCE { + pressureValidityArea-v1520 PressureValidityArea-v1520, + gN-pressure-v1520 INTEGER (-1024..1023) OPTIONAL, -- Need ON + gE-pressure-v1520 INTEGER (-1024..1023) OPTIONAL, -- Need ON + ... + } OPTIONAL -- Need ON + ]] +} + +PressureValidityArea-v1520 ::= SEQUENCE { + centerPoint-v1520 Ellipsoid-Point, + validityAreaWidth-v1520 INTEGER (1..128), + validityAreaHeight-v1520 INTEGER (1..128), + ... +} + +PressureValidityPeriod-v1520 ::= SEQUENCE { + beginTime-v1520 GNSS-SystemTime, + beginTimeAlt-v1520 INTEGER (0..2881) OPTIONAL, -- Need ON + duration-v1520 INTEGER (1..2881), + ... +} + +Sensor-RequestAssistanceData-r14 ::= SEQUENCE {...} + +WLAN-ProvideLocationInformation-r13 ::= SEQUENCE { + wlan-MeasurementInformation-r13 WLAN-MeasurementInformation-r13 OPTIONAL, + wlan-Error-r13 WLAN-Error-r13 OPTIONAL, + ... +} + +WLAN-MeasurementInformation-r13 ::= SEQUENCE { + measurementReferenceTime-r13 UTCTime OPTIONAL, + wlan-MeasurementList-r13 WLAN-MeasurementList-r13 OPTIONAL, + ... +} + +WLAN-MeasurementList-r13 ::= SEQUENCE (SIZE (1..maxWLAN-AP-r13)) OF WLAN-MeasurementElement-r13 + +WLAN-MeasurementElement-r13 ::= SEQUENCE { + wlan-AP-Identifier-r13 WLAN-AP-Identifier-r13, + rssi-r13 INTEGER (-127..128) OPTIONAL, + rtt-r13 WLAN-RTT-r13 OPTIONAL, + apChannelFrequency-r13 INTEGER (0..256) OPTIONAL, + servingFlag-r13 BOOLEAN OPTIONAL, + ... +} + +WLAN-AP-Identifier-r13 ::= SEQUENCE { + bssid-r13 OCTET STRING (SIZE (6)), + ssid-r13 OCTET STRING (SIZE (1..32)) OPTIONAL, + ... +} + +WLAN-RTT-r13 ::= SEQUENCE { + rttValue-r13 INTEGER (0..16777215), + rttUnits-r13 ENUMERATED { + microseconds, + hundredsofnanoseconds, + tensofnanoseconds, + nanoseconds, + tenthsofnanoseconds, + ... + }, + rttAccuracy-r13 INTEGER (0..255) OPTIONAL, + ... +} + +WLAN-RequestLocationInformation-r13 ::= SEQUENCE { + requestedMeasurements-r13 BIT STRING { + rssi (0), + rtt (1) + } (SIZE (1..8)), + ..., + [[ + assistanceAvailability-r14 BOOLEAN OPTIONAL -- Need ON + ]] +} + +WLAN-ProvideCapabilities-r13 ::= SEQUENCE { + wlan-Modes-r13 BIT STRING { + standalone (0), + ue-assisted (1), + ue-based (2) + } (SIZE (1..8)), + wlan-MeasSupported-r13 BIT STRING { + rssi-r13 (0), + rtt-r13 (1) + } (SIZE (1..8)), + ..., + [[ + wlan-AP-AD-Supported-r14 BIT STRING { + ap-identifier (0), + ap-location (1) + } (SIZE (1..8)) OPTIONAL, + periodicalReportingSupported-r14 PositioningModes OPTIONAL, + idleStateForMeasurements-r14 ENUMERATED {required} OPTIONAL + ]], + [[ + scheduledLocationRequestSupported-r17 ScheduledLocationTimeSupportPerMode-r17 OPTIONAL + ]] +} + +WLAN-RequestCapabilities-r13 ::= SEQUENCE {...} + +WLAN-Error-r13 ::= CHOICE { + locationServerErrorCauses-r13 WLAN-LocationServerErrorCauses-r13, + targetDeviceErrorCauses-r13 WLAN-TargetDeviceErrorCauses-r13, + ... +} + +WLAN-LocationServerErrorCauses-r13 ::= SEQUENCE { + cause-r13 ENUMERATED { + undefined, + ..., + requestedADNotAvailable-v1420, + notAllrequestedADAvailable-v1420 + }, + ..., + [[ + apLocationDataUnavailable-r14 NULL OPTIONAL -- Need ON + ]] +} + +WLAN-TargetDeviceErrorCauses-r13 ::= SEQUENCE { + cause-r13 ENUMERATED { + undefined, + requestedMeasurementsNotAvailable, + notAllrequestedMeasurementsPossible, + ... + }, + wlan-AP-RSSI-MeasurementNotPossible-r13 NULL OPTIONAL, + wlan-AP-RTT-MeasurementNotPossible-r13 NULL OPTIONAL, + ... +} + +WLAN-ProvideAssistanceData-r14 ::= SEQUENCE { + wlan-DataSet-r14 SEQUENCE (SIZE (1..maxWLAN-DataSets-r14)) OF WLAN-DataSet-r14 OPTIONAL, -- Need ON + wlan-Error-r14 WLAN-Error-r13 OPTIONAL, -- Need ON + ... +} + +WLAN-DataSet-r14 ::= SEQUENCE { + wlan-AP-List-r14 SEQUENCE (SIZE (1..maxWLAN-AP-r14)) OF WLAN-AP-Data-r14, + supportedChannels-11a-r14 SupportedChannels-11a-r14 OPTIONAL, -- Need ON + supportedChannels-11bg-r14 SupportedChannels-11bg-r14 OPTIONAL, -- Need ON + ... +} + +SupportedChannels-11a-r14 ::= SEQUENCE { + ch34-r14 BOOLEAN, + ch36-r14 BOOLEAN, + ch38-r14 BOOLEAN, + ch40-r14 BOOLEAN, + ch42-r14 BOOLEAN, + ch44-r14 BOOLEAN, + ch46-r14 BOOLEAN, + ch48-r14 BOOLEAN, + ch52-r14 BOOLEAN, + ch56-r14 BOOLEAN, + ch60-r14 BOOLEAN, + ch64-r14 BOOLEAN, + ch149-r14 BOOLEAN, + ch153-r14 BOOLEAN, + ch157-r14 BOOLEAN, + ch161-r14 BOOLEAN +} + +SupportedChannels-11bg-r14 ::= SEQUENCE { + ch1-r14 BOOLEAN, + ch2-r14 BOOLEAN, + ch3-r14 BOOLEAN, + ch4-r14 BOOLEAN, + ch5-r14 BOOLEAN, + ch6-r14 BOOLEAN, + ch7-r14 BOOLEAN, + ch8-r14 BOOLEAN, + ch9-r14 BOOLEAN, + ch10-r14 BOOLEAN, + ch11-r14 BOOLEAN, + ch12-r14 BOOLEAN, + ch13-r14 BOOLEAN, + ch14-r14 BOOLEAN +} + +WLAN-AP-Data-r14 ::= SEQUENCE { + wlan-AP-Identifier-r14 WLAN-AP-Identifier-r13, + wlan-AP-Location-r14 WLAN-AP-Location-r14 OPTIONAL, -- Need ON + ... +} + +WLAN-AP-Location-r14 ::= SEQUENCE { + locationDataLCI-r14 LocationDataLCI-r14, + ... +} + +LocationDataLCI-r14 ::= SEQUENCE { + latitudeUncertainty-r14 BIT STRING (SIZE (6)), + latitude-r14 BIT STRING (SIZE (34)), + longitudeUncertainty-r14 BIT STRING (SIZE (6)), + longitude-r14 BIT STRING (SIZE (34)), + altitudeUncertainty-r14 BIT STRING (SIZE (6)) OPTIONAL, -- Need ON + altitude-r14 BIT STRING (SIZE (30)) OPTIONAL, -- Need ON + datum-r14 BIT STRING (SIZE (8)), + ... +} + +WLAN-RequestAssistanceData-r14 ::= SEQUENCE { + requestedAD-r14 BIT STRING { + ap-identifier (0), + ap-location (1) + } (SIZE (1..8)), + visibleAPs-r14 SEQUENCE (SIZE (1..maxVisibleAPs-r14)) OF WLAN-AP-Identifier-r13 OPTIONAL, + wlan-AP-StoredData-r14 SEQUENCE (SIZE (1..maxKnownAPs-r14)) OF WLAN-AP-Identifier-r13 OPTIONAL, + ... +} + +BT-ProvideLocationInformation-r13 ::= SEQUENCE { + bt-MeasurementInformation-r13 BT-MeasurementInformation-r13 OPTIONAL, + bt-Error-r13 BT-Error-r13 OPTIONAL, + ..., + [[ + bt-AoA-Config-r18 BT-AoA-Config-r18 OPTIONAL + ]] +} + +BT-AoA-Config-r18 ::= SEQUENCE { + bt-Addr-r18 BIT STRING (SIZE (48)), + cte-Status-r18 ENUMERATED {enabled} OPTIONAL, + primaryAdvInterval-r18 INTEGER (32..16777) OPTIONAL, + secondAdvInterval-r18 INTEGER (6..65535) OPTIONAL, + tx-Power-r18 INTEGER (-127..20) OPTIONAL, + cte-Length-r18 INTEGER (2..20) OPTIONAL, + cte-Count-r18 INTEGER (1..16) OPTIONAL, + tx-PHY-M2-r18 ENUMERATED {m2} OPTIONAL, + ... +} + +BT-MeasurementInformation-r13 ::= SEQUENCE { + measurementReferenceTime-r13 UTCTime OPTIONAL, + bt-MeasurementList-r13 BT-MeasurementList-r13 OPTIONAL, + ..., + [[ + bt-MeasurementList-r18 BT-MeasurementList-r18 OPTIONAL + ]] +} + +BT-MeasurementList-r13 ::= SEQUENCE (SIZE (1..maxBT-Beacon-r13)) OF BT-MeasurementElement-r13 + +BT-MeasurementElement-r13 ::= SEQUENCE { + btAddr-r13 BIT STRING (SIZE (48)), + rssi-r13 INTEGER (-128..127) OPTIONAL, + ... +} + +BT-MeasurementList-r18 ::= SEQUENCE (SIZE (1..maxBT-Beacon-r13)) OF BT-MeasurementElement-r18 + +BT-MeasurementElement-r18 ::= SEQUENCE { + btAddr-r18 BIT STRING (SIZE (48)), + bt-azimuth-r18 INTEGER (0..359), + bt-elevation-r18 INTEGER (0..180) OPTIONAL, + rssi-r18 INTEGER (-128..127) OPTIONAL, + ... +} + +BT-RequestLocationInformation-r13 ::= SEQUENCE { + requestedMeasurements-r13 BIT STRING { + rssi (0), + aod-v1800 (1) + } (SIZE (1..8)), + ..., + [[ + bt-requestedAoA-Config-r18 BIT STRING { + aoa-advConfig (0), + aoa-cteConfig (1) + } (SIZE (1..8)) OPTIONAL, -- Need ON + bt-suggestedAoA-Config-r18 BT-SuggestedAoA-Config-r18 OPTIONAL -- Need ON + ]] +} + +BT-SuggestedAoA-Config-r18 ::= SEQUENCE { + cte-Status-r18 ENUMERATED { + enabled, + disabled + } OPTIONAL, -- Need ON + primaryAdvInterval-r18 INTEGER (32..16777) OPTIONAL, -- Need ON + secondAdvInterval-r18 INTEGER (6..65535) OPTIONAL, -- Need ON + tx-Power-r18 INTEGER (-127..20) OPTIONAL, -- Need ON + cte-Length-r18 INTEGER (2..20) OPTIONAL, -- Need ON + cte-Count-r18 INTEGER (1..16) OPTIONAL, -- Need ON + tx-PHY-M2-r18 ENUMERATED {m2} OPTIONAL, -- Need ON + ... +} + +BT-ProvideCapabilities-r13 ::= SEQUENCE { + bt-Modes-r13 BIT STRING { + standalone (0), + ue-assisted (1), + ue-based-v1810 (2) + } (SIZE (1..8)), + bt-MeasSupported-r13 BIT STRING { + rssi-r13 (0), + aod-v1800 (1) + } (SIZE (1..8)), + ..., + [[ + idleStateForMeasurements-r14 ENUMERATED {required} OPTIONAL, + periodicalReportingSupported-r14 PositioningModes OPTIONAL + ]], + [[ + scheduledLocationRequestSupported-r17 ScheduledLocationTimeSupportPerMode-r17 OPTIONAL + ]], + [[ + bt-AoA-r18 ENUMERATED { + request-only, + suggestion + } OPTIONAL + ]] +} + +BT-RequestCapabilities-r13 ::= SEQUENCE {...} + +BT-Error-r13 ::= CHOICE { + locationServerErrorCauses-r13 BT-LocationServerErrorCauses-r13, + targetDeviceErrorCauses-r13 BT-TargetDeviceErrorCauses-r13, + ... +} + +BT-LocationServerErrorCauses-r13 ::= SEQUENCE { + cause-r13 ENUMERATED { + undefined, + ..., + assistanceDataNotSupportedByServer-v1810, + assistanceDataSupportedButCurrentlyNotAvailableByServer-v1810, + notAllrequestedAssistanceDataAvailableByServer-v1810 + }, + ... +} + +BT-TargetDeviceErrorCauses-r13 ::= SEQUENCE { + cause-r13 ENUMERATED { + undefined, + requestedMeasurementsNotAvailable, + notAllrequestedMeasurementsPossible, + ..., + assistanceDataMissing-v1810 + }, + bt-Beacon-rssiMeasurementNotPossible-r13 NULL OPTIONAL, + ... +} + +BT-ProvideAssistanceData-r18 ::= SEQUENCE { + bt-BeaconInfo-r18 BT-BeaconInfo-r18, + bt-Error-r18 BT-Error-r13 OPTIONAL, -- Need ON + ... +} + +BT-BeaconInfo-r18 ::= SEQUENCE { + referencePoint-r18 ReferencePoint-r16, + bt-BeaconInfoList-r18 SEQUENCE (SIZE (1..maxBT-BeaconAD-r18)) OF BT-BeaconInfoElement-r18, + ... +} + +BT-BeaconInfoElement-r18 ::= SEQUENCE { + bt-Addr-r18 BIT STRING (SIZE (48)), + bt-BeaconLocation-r18 RelativeLocation-r16 OPTIONAL, -- Need OP + bt-LCS-GCS-TranslationParameter-r18 LCS-GCS-TranslationParameter-r16 OPTIONAL, -- Cond NotSameAsPrev1 + bt-antArrayConfig-r18 BT-AntArrayConfig-r18 OPTIONAL, -- Cond NotSameAsPrev2 + bt-antElementList-r18 SEQUENCE (SIZE (2..maxBT-BeaconAntElt-r18)) OF BT-AntElement-r18 OPTIONAL, -- Cond NotSameA sPrev3 + bt-antSwitchingPattern-r18 SEQUENCE (SIZE (2..maxBT-BeaconAntElt-r18)) OF BT-AntSwitchElement-r18 OPTIONAL, -- Cond NotSameAsPrev4 + bt-AoD-TransmConfig-r18 BT-AoD-TransmConfig-r18 OPTIONAL, -- Cond NotSameAsPrev5 + ... +} + +BT-AntArrayConfig-r18 ::= CHOICE { + bt-UniformLinearArray-r18 BT-UniformLinearArray-r18, + bt-UniformRectangularArray-r18 BT-UniformRectangularArray-r18, + bt-UniformCircularArray-r18 BT-UniformCircularArray-r18, + bt-GenericArray-r18 BT-GenericArray-r18 +} + +BT-AntElement-r18 ::= SEQUENCE { + polarization-r18 ENUMERATED { + m45, + zero, + p45, + p90, + circ + }, + ... +} + +BT-AntSwitchElement-r18 ::= SEQUENCE { + antElementIndexShort-r18 INTEGER (1..16), + antElementIndexOffset-r18 ENUMERATED { + o16, + o32, + o48, + o64 + } OPTIONAL, -- Need OP + ... +} + +BT-AoD-TransmConfig-r18 ::= SEQUENCE { + primaryAdvInterval-r18 INTEGER (32..16777), + secondAdvInterval-r18 INTEGER (6..65535), + cte-Length-r18 INTEGER (2..20), + cte-Count-r18 INTEGER (1..16), + cte-Type2us-r18 NULL OPTIONAL, -- Need OP + tx-PHY-M2-r18 NULL OPTIONAL, -- Need OP + ... +} + +BT-UniformLinearArray-r18 ::= SEQUENCE { + bt-NoElements-r18 INTEGER (2..maxBT-BeaconAntElt-r18), + bt-InterElementDist-r18 INTEGER (30..130) +} + +BT-UniformRectangularArray-r18 ::= SEQUENCE { + bt-NoElementsY-r18 INTEGER (1..maxBT-BeaconAntElt-r18), + bt-NoElementsZ-r18 INTEGER (1..maxBT-BeaconAntElt-r18), + bt-InterElementDistY-r18 INTEGER (30..135), + bt-InterElementDistZ-r18 INTEGER (30..135) +} + +BT-UniformCircularArray-r18 ::= SEQUENCE { + bt-NoElements-r18 INTEGER (2..maxBT-BeaconAntElt-r18), + bt-InterElementDist-r18 INTEGER (30..130) +} + +BT-GenericArray-r18 ::= SEQUENCE (SIZE (2..maxBT-BeaconAntElt-r18)) OF BT-ULA-GenericAntElement-r18 + +BT-ULA-GenericAntElement-r18 ::= SEQUENCE { + deltaY-r18 INTEGER (-135..135) OPTIONAL, -- Need OP + deltaX-r18 INTEGER (-135..135) OPTIONAL, -- Need OP + deltaZ-r18 INTEGER (-135..135) OPTIONAL -- Need OP +} + +BT-RequestAssistanceData-r18 ::= SEQUENCE { + requestedAD-r18 BIT STRING { + beacon-location (0), + beacon-antConfig (1), + beacon-transmConfig (2) + } (SIZE (1..8)), + ... +} + +NR-UL-ProvideCapabilities-r16 ::= SEQUENCE { + nr-UL-SRS-Capability-r16 NR-UL-SRS-Capability-r16, + ..., + [[ + nr-UE-TEG-Capability-r17 NR-UE-TEG-Capability-r17 OPTIONAL + ]] +} + +NR-UL-RequestCapabilities-r16 ::= SEQUENCE {...} + +NR-ECID-ProvideLocationInformation-r16 ::= SEQUENCE { + nr-ECID-SignalMeasurementInformation-r16 NR-ECID-SignalMeasurementInformation-r16 OPTIONAL, + nr-ECID-Error-r16 NR-ECID-Error-r16 OPTIONAL, + ... +} + +NR-ECID-SignalMeasurementInformation-r16 ::= SEQUENCE { + nr-PrimaryCellMeasuredResults-r16 NR-MeasuredResultsElement-r16, + nr-MeasuredResultsList-r16 NR-MeasuredResultsList-r16 OPTIONAL, + ... +} + +NR-MeasuredResultsList-r16 ::= SEQUENCE (SIZE (1..32)) OF NR-MeasuredResultsElement-r16 + +NR-MeasuredResultsElement-r16 ::= SEQUENCE { + nr-PhysCellID-r16 NR-PhysCellID-r16, + nr-ARFCN-r16 CHOICE { + ssb-ARFCN-r16 ARFCN-ValueNR-r15, + csi-RS-pointA-r16 ARFCN-ValueNR-r15 + }, + nr-CellGlobalID-r16 NCGI-r15 OPTIONAL, + systemFrameNumber-r16 BIT STRING (SIZE (10)) OPTIONAL, + resultsSSB-Cell-r16 MeasQuantityResults-r16 OPTIONAL, + resultsCSI-RS-Cell-r16 MeasQuantityResults-r16 OPTIONAL, + resultsSSB-Indexes-r16 ResultsPerSSB-IndexList-r16 OPTIONAL, + resultsCSI-RS-Indexes-r16 ResultsPerCSI-RS-IndexList-r16 OPTIONAL, + ... +} + +MeasQuantityResults-r16 ::= SEQUENCE { + nr-RSRP-r16 INTEGER (0..127) OPTIONAL, + nr-RSRQ-r16 INTEGER (0..127) OPTIONAL +} + +ResultsPerSSB-IndexList-r16 ::= SEQUENCE (SIZE (1..64)) OF ResultsPerSSB-Index-r16 + +ResultsPerSSB-Index-r16 ::= SEQUENCE { + ssb-Index-r16 INTEGER (0..63), + ssb-Results-r16 MeasQuantityResults-r16 +} + +ResultsPerCSI-RS-IndexList-r16 ::= SEQUENCE (SIZE (1..64)) OF ResultsPerCSI-RS-Index-r16 + +ResultsPerCSI-RS-Index-r16 ::= SEQUENCE { + csi-RS-Index-r16 INTEGER (0..95), + csi-RS-Results-r16 MeasQuantityResults-r16 +} + +NR-ECID-RequestLocationInformation-r16 ::= SEQUENCE { + requestedMeasurements-r16 BIT STRING { + ssrsrpReq (0), + ssrsrqReq (1), + csirsrpReq (2), + csirsrqReq (3) + } (SIZE (1..8)), + ... +} + +NR-ECID-ProvideCapabilities-r16 ::= SEQUENCE { + nr-ECID-MeasSupported-r16 BIT STRING { + ssrsrpSup (0), + ssrsrqSup (1), + csirsrpSup (2), + csirsrqSup (3) + } (SIZE (1..8)), + periodicalReporting-r16 ENUMERATED {supported} OPTIONAL, + triggeredReporting-r16 ENUMERATED {supported} OPTIONAL, + ..., + [[ + ten-ms-unit-ResponseTime-r17 ENUMERATED {supported} OPTIONAL, + scheduledLocationRequestSupported-r17 ScheduledLocationTimeSupport-r17 OPTIONAL + ]] +} + +NR-ECID-RequestCapabilities-r16 ::= SEQUENCE {...} + +NR-ECID-Error-r16 ::= CHOICE { + locationServerErrorCauses-r16 NR-ECID-LocationServerErrorCauses-r16, + targetDeviceErrorCauses-r16 NR-ECID-TargetDeviceErrorCauses-r16, + ... +} + +NR-ECID-LocationServerErrorCauses-r16 ::= SEQUENCE { + cause-r16 ENUMERATED { + undefined, + ... + }, + ... +} + +NR-ECID-TargetDeviceErrorCauses-r16 ::= SEQUENCE { + cause-r16 ENUMERATED { + undefined, + requestedMeasurementNotAvailable, + notAllrequestedMeasurementsPossible, + ... + }, + ss-RSRPMeasurementNotPossible-r16 NULL OPTIONAL, + ss-RSRQMeasurementNotPossible-r16 NULL OPTIONAL, + csi-RSRPMeasurementNotPossible-r16 NULL OPTIONAL, + csi-RSRQMeasurementNotPossible-r16 NULL OPTIONAL, + ..., + [[ + remoteUE-Indication-r18 ENUMERATED {true} OPTIONAL -- Cond NR + ]] +} + +NR-DL-TDOA-ProvideAssistanceData-r16 ::= SEQUENCE { + nr-DL-PRS-AssistanceData-r16 NR-DL-PRS-AssistanceData-r16 OPTIONAL, -- Need ON + nr-SelectedDL-PRS-IndexList-r16 NR-SelectedDL-PRS-IndexList-r16 OPTIONAL, -- Need ON + nr-PositionCalculationAssistance-r16 NR-PositionCalculationAssistance-r16 OPTIONAL, -- Cond UEB + nr-DL-TDOA-Error-r16 NR-DL-TDOA-Error-r16 OPTIONAL, -- Need ON + ..., + [[ + nr-On-Demand-DL-PRS-Configurations-r17 NR-On-Demand-DL-PRS-Configurations-r17 OPTIONAL, -- Need ON + nr-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17 NR-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17 OPTIONAL, -- Need ON + assistanceDataValidityArea-r17 AreaID-CellList-r17 OPTIONAL -- Need ON + ]], + [[ + nr-PeriodicAssistData-r18 NR-PeriodicAssistData-r18 OPTIONAL -- Cond CtrTrans + ]] +} + +NR-DL-TDOA-RequestAssistanceData-r16 ::= SEQUENCE { + nr-PhysCellID-r16 NR-PhysCellID-r16 OPTIONAL, + nr-AdType-r16 BIT STRING { + dl-prs (0), + posCalc (1) + } (SIZE (1..8)), + ..., + [[ + nr-PosCalcAssistanceRequest-r17 BIT STRING { + trpLoc (0), + beamInfo (1), + rtdInfo (2), + losNlosInfo (3), + trpTEG-Info (4), + nr-IntegrityBounds-r18 (5), + pruInfo-r18 (6) + } (SIZE (1..8)) OPTIONAL, + nr-on-demand-DL-PRS-Request-r17 NR-On-Demand-DL-PRS-Request-r17 OPTIONAL, + nr-DL-PRS-ExpectedAoD-or-AoA-Request-r17 ENUMERATED { + eAoD, + eAoA + } OPTIONAL, + pre-configured-AssistanceDataRequest-r17 ENUMERATED {true} OPTIONAL + ]], + [[ + nr-PeriodicAssistDataReq-r18 NR-PeriodicAssistDataReq-r18 OPTIONAL, -- Cond PerADReq + nr-IntegrityAssistanceRequest-r18 BIT STRING { + serviceParameters (0), + serviceAlert (1), + riskParameters (2), + integrityParaTRP-Loc (3), + integrityParaBeamInfo (4), + integrityParaRTD-Info (5) + } (SIZE (1..8)) OPTIONAL + ]] +} + +NR-DL-TDOA-ProvideLocationInformation-r16 ::= SEQUENCE { + nr-DL-TDOA-SignalMeasurementInformation-r16 NR-DL-TDOA-SignalMeasurementInformation-r16 OPTIONAL, + nr-dl-tdoa-LocationInformation-r16 NR-DL-TDOA-LocationInformation-r16 OPTIONAL, + nr-DL-TDOA-Error-r16 NR-DL-TDOA-Error-r16 OPTIONAL, + ..., + [[ + nr-DL-TDOA-SignalMeasurementInstances-r17 SEQUENCE (SIZE (1..maxMeasInstances-r17)) OF NR-DL-TDOA-SignalMeasurementInformation-r16 OPTIONAL, -- Cond batchUEA + nr-DL-TDOA-LocationInformationInstances-r17 SEQUENCE (SIZE (1..maxMeasInstances-r17)) OF NR-DL-TDOA-LocationInformation-r16 OPTIONAL -- Cond batchUEB + ]] +} + +NR-DL-TDOA-SignalMeasurementInformation-r16 ::= SEQUENCE { + dl-PRS-ReferenceInfo-r16 DL-PRS-ID-Info-r16, + nr-DL-TDOA-MeasList-r16 NR-DL-TDOA-MeasList-r16, + ..., + [[ + nr-UE-RxTEG-TimingErrorMargin-r17 TEG-TimingErrorMargin-r17 OPTIONAL -- Cond UERxTEG + ]] +} + +NR-DL-TDOA-MeasList-r16 ::= SEQUENCE (SIZE (1..nrMaxTRPs-r16)) OF NR-DL-TDOA-MeasElement-r16 + +NR-DL-TDOA-MeasElement-r16 ::= SEQUENCE { + dl-PRS-ID-r16 INTEGER (0..255), + nr-PhysCellID-r16 NR-PhysCellID-r16 OPTIONAL, + nr-CellGlobalID-r16 NCGI-r15 OPTIONAL, + nr-ARFCN-r16 ARFCN-ValueNR-r15 OPTIONAL, + nr-DL-PRS-ResourceID-r16 NR-DL-PRS-ResourceID-r16 OPTIONAL, + nr-DL-PRS-ResourceSetID-r16 NR-DL-PRS-ResourceSetID-r16 OPTIONAL, + nr-TimeStamp-r16 NR-TimeStamp-r16, + nr-RSTD-r16 CHOICE { + k0-r16 INTEGER (0..1970049), + k1-r16 INTEGER (0..985025), + k2-r16 INTEGER (0..492513), + k3-r16 INTEGER (0..246257), + k4-r16 INTEGER (0..123129), + k5-r16 INTEGER (0..61565), + ..., + kMinus6-r18 INTEGER (0..126083073), + kMinus5-r18 INTEGER (0..63041537), + kMinus4-r18 INTEGER (0..31520769), + kMinus3-r18 INTEGER (0..15760385), + kMinus2-r18 INTEGER (0..7880193), + kMinus1-r18 INTEGER (0..3940097) + }, + nr-AdditionalPathList-r16 NR-AdditionalPathList-r16 OPTIONAL, + nr-TimingQuality-r16 NR-TimingQuality-r16, + nr-DL-PRS-RSRP-Result-r16 INTEGER (0..126) OPTIONAL, + nr-DL-TDOA-AdditionalMeasurements-r16 NR-DL-TDOA-AdditionalMeasurements-r16 OPTIONAL, + ..., + [[ + nr-UE-Rx-TEG-ID-r17 INTEGER (0..maxNumOfRxTEGs-1-r17) OPTIONAL, + nr-DL-PRS-FirstPathRSRP-Result-r17 INTEGER (0..126) OPTIONAL, + nr-los-nlos-Indicator-r17 CHOICE { + perTRP-r17 LOS-NLOS-Indicator-r17, + perResource-r17 LOS-NLOS-Indicator-r17 + } OPTIONAL, + nr-AdditionalPathListExt-r17 NR-AdditionalPathListExt-r17 OPTIONAL, + nr-DL-TDOA-AdditionalMeasurementsExt-r17 NR-DL-TDOA-AdditionalMeasurementsExt-r17 OPTIONAL + ]], + [[ + nr-RSTD-BasedOnAggregatedResources-r18 ENUMERATED {true} OPTIONAL, + nr-AggregatedDL-PRS-ResourceSetID-List-r18 SEQUENCE (SIZE (2..3)) OF NR-AggregatedDL-PRS-ResourceSetID-Element-r18 OPTIONAL, + nr-RSCPD-r18 INTEGER (0..61565) OPTIONAL, + nr-PhaseQuality-r18 NR-PhaseQuality-r18 OPTIONAL, + nr-RSCPD-AddMeasurementSamples-r18 SEQUENCE (SIZE (1..nrNumOfSamples-1-r18)) OF NR-RSCPD-AdditionalMeasurementSamplesElement-r18 OPTIONAL, + nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18 ENUMERATED { + singleHop, + multipleHop + } OPTIONAL + ]] +} + +NR-DL-TDOA-AdditionalMeasurements-r16 ::= SEQUENCE (SIZE (1..3)) OF NR-DL-TDOA-AdditionalMeasurementElement-r16 + +NR-DL-TDOA-AdditionalMeasurementsExt-r17 ::= SEQUENCE (SIZE (1..maxAddMeasTDOA-r17)) OF NR-DL-TDOA-AdditionalMeasurementElement-r16 + +NR-DL-TDOA-AdditionalMeasurementElement-r16 ::= SEQUENCE { + nr-DL-PRS-ResourceID-r16 NR-DL-PRS-ResourceID-r16 OPTIONAL, + nr-DL-PRS-ResourceSetID-r16 NR-DL-PRS-ResourceSetID-r16 OPTIONAL, + nr-TimeStamp-r16 NR-TimeStamp-r16, + nr-RSTD-ResultDiff-r16 CHOICE { + k0-r16 INTEGER (0..8191), + k1-r16 INTEGER (0..4095), + k2-r16 INTEGER (0..2047), + k3-r16 INTEGER (0..1023), + k4-r16 INTEGER (0..511), + k5-r16 INTEGER (0..255), + ..., + kMinus6-r18 INTEGER (0..524224), + kMinus5-r18 INTEGER (0..262112), + kMinus4-r18 INTEGER (0..131056), + kMinus3-r18 INTEGER (0..65528), + kMinus2-r18 INTEGER (0..32764), + kMinus1-r18 INTEGER (0..16382) + }, + nr-TimingQuality-r16 NR-TimingQuality-r16, + nr-DL-PRS-RSRP-ResultDiff-r16 INTEGER (0..61) OPTIONAL, + nr-AdditionalPathList-r16 NR-AdditionalPathList-r16 OPTIONAL, + ..., + [[ + nr-UE-Rx-TEG-ID-r17 INTEGER (0..maxNumOfRxTEGs-1-r17) OPTIONAL, + nr-DL-PRS-FirstPathRSRP-ResultDiff-r17 INTEGER (0..61) OPTIONAL, + nr-los-nlos-IndicatorPerResource-r17 LOS-NLOS-Indicator-r17 OPTIONAL, + nr-AdditionalPathListExt-r17 NR-AdditionalPathListExt-r17 OPTIONAL + ]], + [[ + nr-RSTD-BasedOnAggregatedResources-r18 ENUMERATED {true} OPTIONAL, + nr-AggregatedDL-PRS-ResourceSetID-List-r18 SEQUENCE (SIZE (2..3)) OF NR-AggregatedDL-PRS-ResourceSetID-Element-r18 OPTIONAL, + nr-RSCPD-r18 INTEGER (0..3599) OPTIONAL, + nr-PhaseQuality-r18 NR-PhaseQuality-r18 OPTIONAL, + nr-RSCPD-AdditionalMeasurementsAddSamples-r18 SEQUENCE (SIZE (1..nrNumOfSamples-1-r18)) OF NR-RSCPD-AdditionalMeasurementSamplesElement-r18 OPTIONAL, + nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18 ENUMERATED { + singleHop, + multipleHop + } OPTIONAL + ]] +} + +NR-RSCPD-AdditionalMeasurementSamplesElement-r18 ::= SEQUENCE { + nr-RSCPD-r18 INTEGER (0..3599) OPTIONAL, + nr-PhaseQuality-r18 NR-PhaseQuality-r18 OPTIONAL, + nr-TimeStamp-r18 NR-TimeStamp-r16 OPTIONAL, + ... +} + +NR-DL-TDOA-LocationInformation-r16 ::= SEQUENCE { + measurementReferenceTime-r16 CHOICE { + systemFrameNumber-r16 NR-TimeStamp-r16, + utc-time-r16 UTCTime, + ... + } OPTIONAL, + ..., + [[ + locationCoordinates-r17 LocationCoordinates OPTIONAL, -- Cond batch1 + locationSource-r17 LocationSource-r13 OPTIONAL -- Cond batch2 + ]] +} + +NR-DL-TDOA-RequestLocationInformation-r16 ::= SEQUENCE { + nr-DL-PRS-RstdMeasurementInfoRequest-r16 ENUMERATED {true} OPTIONAL, -- Need ON + nr-RequestedMeasurements-r16 BIT STRING { + prsrsrpReq (0), + firstPathRsrpReq-r17 (1), + jointMeasurementsReq-r18 (2) + } (SIZE (1..8)), + nr-AssistanceAvailability-r16 BOOLEAN, + nr-DL-TDOA-ReportConfig-r16 NR-DL-TDOA-ReportConfig-r16 OPTIONAL, -- Need ON + additionalPaths-r16 ENUMERATED {requested} OPTIONAL, -- Need ON + ..., + [[ + nr-UE-RxTEG-Request-r17 ENUMERATED {requested} OPTIONAL, -- Need ON + nr-los-nlos-IndicatorRequest-r17 SEQUENCE { + type-r17 LOS-NLOS-IndicatorType1-r17, + granularity-r17 LOS-NLOS-IndicatorGranularity1-r17, + ... + } OPTIONAL, -- Need ON + additionalPathsExt-r17 ENUMERATED {requested} OPTIONAL, -- Need ON + additionalPathsDL-PRS-RSRP-Request-r17 ENUMERATED {requested} OPTIONAL, -- Need ON + multiMeasInSameReport-r17 ENUMERATED {requested} OPTIONAL -- Need ON + ]], + [[ + nr-DL-PRS-JointMeasurementRequestedPFL-List-r18 SEQUENCE (SIZE (2..3)) OF INTEGER (0..nrMaxFreqLayers-1-r16) OPTIONAL, -- Need ON + nr-DL-PRS-RxHoppingRequest-r18 SEQUENCE { + nr-DL-PRS-RxHoppingTotalBandwidth-r18 CHOICE { + fr1 ENUMERATED { + mhz40, + mhz50, + mhz80, + mhz100 + }, + fr2 ENUMERATED { + mhz100, + mhz200, + mhz400 + } + } OPTIONAL -- Need ON + } OPTIONAL, -- Need ON + nr-DL-PRS-RSCPD-Request-r18 ENUMERATED {requested} OPTIONAL -- Need ON + ]] +} + +NR-DL-TDOA-ReportConfig-r16 ::= SEQUENCE { + maxDL-PRS-RSTD-MeasurementsPerTRP-Pair-r16 INTEGER (1..4) OPTIONAL, -- Need ON + timingReportingGranularityFactor-r16 INTEGER (0..5) OPTIONAL, -- Need ON + ..., + [[ + measureSameDL-PRS-ResourceWithDifferentRxTEGs-r17 ENUMERATED { + n0, + n2, + n3, + n4, + n6, + n8, + ... + } OPTIONAL, -- Need ON + reducedDL-PRS-ProcessingSamples-r17 ENUMERATED { + requested, + ... + } OPTIONAL, -- Need ON + lowerRxBeamSweepingFactor-FR2-r17 ENUMERATED {requested} OPTIONAL -- Need ON + ]], + [[ + timingReportingGranularityFactorExt-r18 INTEGER (-6..-1) OPTIONAL, -- Need ON + nr-DL-PRS-MeasurementTimeWindowsConfig-r18 NR-DL-PRS-MeasurementTimeWindowsConfig-r18 OPTIONAL -- Need ON + ]] +} + +NR-DL-TDOA-ProvideCapabilities-r16 ::= SEQUENCE { + nr-DL-TDOA-Mode-r16 PositioningModes, + nr-DL-TDOA-PRS-Capability-r16 NR-DL-PRS-ResourcesCapability-r16, + nr-DL-TDOA-MeasurementCapability-r16 NR-DL-TDOA-MeasurementCapability-r16, + nr-DL-PRS-QCL-ProcessingCapability-r16 NR-DL-PRS-QCL-ProcessingCapability-r16, + nr-DL-PRS-ProcessingCapability-r16 NR-DL-PRS-ProcessingCapability-r16, + additionalPathsReport-r16 ENUMERATED {supported} OPTIONAL, + periodicalReporting-r16 PositioningModes OPTIONAL, + ..., + [[ + ten-ms-unit-ResponseTime-r17 PositioningModes OPTIONAL, + nr-PosCalcAssistanceSupport-r17 BIT STRING { + trpLocSup (0), + beamInfoSup (1), + rtdInfoSup (2), + trpTEG-InfoSup (3), + nr-IntegritySup-r18 (4), + pruInfoSup-r18 (5) + } (SIZE (1..8)) OPTIONAL, + nr-los-nlos-AssistanceDataSupport-r17 SEQUENCE { + type-r17 LOS-NLOS-IndicatorType2-r17, + granularity-r17 LOS-NLOS-IndicatorGranularity2-r17, + ... + } OPTIONAL, + nr-DL-PRS-ExpectedAoD-or-AoA-Sup-r17 BIT STRING { + eAoD (0), + eAoA (1) + } (SIZE (1..8)) OPTIONAL, + nr-DL-TDOA-On-Demand-DL-PRS-Support-r17 NR-On-Demand-DL-PRS-Support-r17 OPTIONAL, + nr-los-nlos-IndicatorSupport-r17 SEQUENCE { + type-r17 LOS-NLOS-IndicatorType2-r17, + granularity-r17 LOS-NLOS-IndicatorGranularity2-r17, + ... + } OPTIONAL, + additionalPathsExtSupport-r17 ENUMERATED { + n4, + n6, + n8 + } OPTIONAL, + scheduledLocationRequestSupported-r17 ScheduledLocationTimeSupportPerMode-r17 OPTIONAL, + nr-dl-prs-AssistanceDataValidity-r17 SEQUENCE { + area-validity-r17 INTEGER (1..maxNrOfAreas-r17) OPTIONAL, + ... + } OPTIONAL, + multiMeasInSameMeasReport-r17 ENUMERATED {supported} OPTIONAL, + mg-ActivationRequest-r17 ENUMERATED {supported} OPTIONAL + ]], + [[ + posMeasGapSupport-r17 ENUMERATED {supported} OPTIONAL + ]], + [[ + multiLocationEstimateInSameMeasReport-r17 ENUMERATED {supported} OPTIONAL + ]], + [[ + locationCoordinateTypes-r18 LocationCoordinateTypes OPTIONAL, + symbolTimeStampSupport-r18 ENUMERATED {supported} OPTIONAL, + periodicAssistanceData-r18 BIT STRING { + solicited (0), + unsolicited (1) + } (SIZE (1..8)) OPTIONAL, + nr-IntegrityAssistanceSupport-r18 BIT STRING { + serviceParametersSup (0), + serviceAlertSup (1), + riskParametersSup (2), + integrityParaTRP-LocSup (3), + integrityParaBeamInfoSup (4), + integrityParaRTD-InfoSup (5) + } (SIZE (1..8)) OPTIONAL, + nr-DL-TDOA-OnDemandPRS-ForBWA-Support-r18 ENUMERATED {supported} OPTIONAL + ]] +} + +NR-DL-TDOA-MeasurementCapability-r16 ::= SEQUENCE { + dl-RSTD-MeasurementPerPairOfTRP-FR1-r16 INTEGER (1..4), + dl-RSTD-MeasurementPerPairOfTRP-FR2-r16 INTEGER (1..4), + supportOfDL-PRS-RSRP-MeasFR1-r16 ENUMERATED {supported} OPTIONAL, + supportOfDL-PRS-RSRP-MeasFR2-r16 ENUMERATED {supported} OPTIONAL, + ..., + [[ + nr-UE-TEG-Capability-r17 NR-UE-TEG-Capability-r17 OPTIONAL, + dl-tdoa-MeasCapabilityBandList-r17 SEQUENCE (SIZE (1..nrMaxBands-r16)) OF DL-TDOA-MeasCapabilityPerBand-r17 OPTIONAL + ]] +} + +DL-TDOA-MeasCapabilityPerBand-r17 ::= SEQUENCE { + freqBandIndicatorNR-r17 FreqBandIndicatorNR-r16, + supportOfDL-PRS-FirstPathRSRP-r17 ENUMERATED {supported} OPTIONAL, + dl-PRS-MeasRRC-Inactive-r17 ENUMERATED {supported} OPTIONAL, + ..., + [[ + supportOfDL-PRS-BWA-RRC-Connected-r18 ENUMERATED {supported} OPTIONAL, + supportOfDL-PRS-BWA-RRC-Inactive-r18 ENUMERATED {supported} OPTIONAL, + supportOfDL-PRS-BWA-RRC-Idle-r18 ENUMERATED {supported} OPTIONAL, + nr-DL-PRS-RSCPD-ReportingRRC-Connected-r18 ENUMERATED {supported} OPTIONAL, + assocSingleRSTD-WithUpToNsampleRSCPD-r18 ENUMERATED {supported} OPTIONAL, + nr-DL-PRS-RSCPD-MeasurementRRC-Idle-r18 ENUMERATED {supported} OPTIONAL, + supportOfLegacyMeasurementInTimeWindow-r18 ENUMERATED {supported} OPTIONAL, + supportOfRSCPD-MeasurementInTimeWindow-r18 ENUMERATED {supported} OPTIONAL, + supportOfUE-basedCarrierPhasePositioning-r18 ENUMERATED {supported} OPTIONAL, + supportOfSymbolTimeStampForRSCPD-r18 ENUMERATED {supported} OPTIONAL, + supportOfFinerTimingReportGranularityForPRS-Meas-r18 ENUMERATED { + minus1, + minus2, + minus3, + minus4, + minus5, + minus6 + } OPTIONAL + ]] +} + +NR-DL-TDOA-RequestCapabilities-r16 ::= SEQUENCE {...} + +NR-DL-TDOA-Error-r16 ::= CHOICE { + locationServerErrorCauses-r16 NR-DL-TDOA-LocationServerErrorCauses-r16, + targetDeviceErrorCauses-r16 NR-DL-TDOA-TargetDeviceErrorCauses-r16, + ... +} + +NR-DL-TDOA-LocationServerErrorCauses-r16 ::= SEQUENCE { + cause-r16 ENUMERATED { + undefined, + assistanceDataNotSupportedByServer, + assistanceDataSupportedButCurrentlyNotAvailableByServer, + notProvidedAssistanceDataNotSupportedByServer, + ..., + on-demand-dl-prs-NotSupportedByServer-v1700, + on-demand-dl-prs-SupportedButCurrentlyNotAvailableByServer-v1700 + }, + ... +} + +NR-DL-TDOA-TargetDeviceErrorCauses-r16 ::= SEQUENCE { + cause-r16 ENUMERATED { + undefined, + assistance-data-missing, + unableToMeasureAnyTRP, + attemptedButUnableToMeasureSomeNeighbourTRPs, + thereWereNotEnoughSignalsReceivedForUeBasedDL-TDOA, + locationCalculationAssistanceDataMissing, + ... + }, + ..., + [[ + remoteUE-Indication-r18 ENUMERATED {true} OPTIONAL -- Cond NR + ]] +} + +NR-DL-AoD-ProvideAssistanceData-r16 ::= SEQUENCE { + nr-DL-PRS-AssistanceData-r16 NR-DL-PRS-AssistanceData-r16 OPTIONAL, -- Need ON + nr-SelectedDL-PRS-IndexList-r16 NR-SelectedDL-PRS-IndexList-r16 OPTIONAL, -- Need ON + nr-PositionCalculationAssistance-r16 NR-PositionCalculationAssistance-r16 OPTIONAL, -- Cond UEB + nr-DL-AoD-Error-r16 NR-DL-AoD-Error-r16 OPTIONAL, -- Need ON + ..., + [[ + nr-DL-PRS-BeamInfo-r17 NR-DL-PRS-BeamInfo-r16 OPTIONAL, -- Cond UEA + nr-On-Demand-DL-PRS-Configurations-r17 NR-On-Demand-DL-PRS-Configurations-r17 OPTIONAL, -- Need ON + nr-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17 NR-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17 OPTIONAL, -- Need ON + assistanceDataValidityArea-r17 AreaID-CellList-r17 OPTIONAL -- Need ON + ]] +} + +NR-DL-AoD-RequestAssistanceData-r16 ::= SEQUENCE { + nr-PhysCellID-r16 NR-PhysCellID-r16 OPTIONAL, + nr-AdType-r16 BIT STRING { + dl-prs (0), + posCalc (1) + } (SIZE (1..8)), + ..., + [[ + nr-PosCalcAssistanceRequest-r17 BIT STRING { + trpLoc (0), + beamInfo (1), + rtdInfo (2), + beamAntInfo (3), + losNlosInfo (4), + nr-IntegrityBounds-r18 (5) + } (SIZE (1..8)) OPTIONAL, + nr-DL-PRS-ExpectedAoD-or-AoA-Request-r17 ENUMERATED { + eAoD, + eAoA + } OPTIONAL, + nr-DL-PRS-BeamInfoRequest-r17 ENUMERATED {requested} OPTIONAL, + nr-on-demand-DL-PRS-Request-r17 NR-On-Demand-DL-PRS-Request-r17 OPTIONAL, + pre-configured-AssistanceDataRequest-r17 ENUMERATED {true} OPTIONAL, + nr-IntegrityAssistanceRequest-r18 BIT STRING { + serviceParameters (0), + serviceAlert (1), + riskParameters (2), + integrityParaTRP-Loc (3), + integrityParaBeamInfo (4), + integrityParaRTD-Info (5), + integrityBeamAntInfo (6) + } (SIZE (1..8)) OPTIONAL + ]] +} + +NR-DL-AoD-ProvideLocationInformation-r16 ::= SEQUENCE { + nr-DL-AoD-SignalMeasurementInformation-r16 NR-DL-AoD-SignalMeasurementInformation-r16 OPTIONAL, + nr-dl-AoD-LocationInformation-r16 NR-DL-AoD-LocationInformation-r16 OPTIONAL, + nr-DL-AoD-Error-r16 NR-DL-AoD-Error-r16 OPTIONAL, + ..., + [[ + nr-DL-AoD-SignalMeasurementInstances-r17 SEQUENCE (SIZE (1..maxMeasInstances-r17)) OF NR-DL-AoD-SignalMeasurementInformation-r16 OPTIONAL, -- Cond batchUEA + nr-DL-AoD-LocationInformationInstances-r17 SEQUENCE (SIZE (1..maxMeasInstances-r17)) OF NR-DL-AoD-LocationInformation-r16 OPTIONAL -- Cond batchUEB + ]] +} + +NR-DL-AoD-SignalMeasurementInformation-r16 ::= SEQUENCE { + nr-DL-AoD-MeasList-r16 NR-DL-AoD-MeasList-r16, + ... +} + +NR-DL-AoD-MeasList-r16 ::= SEQUENCE (SIZE (1..nrMaxTRPs-r16)) OF NR-DL-AoD-MeasElement-r16 + +NR-DL-AoD-MeasElement-r16 ::= SEQUENCE { + dl-PRS-ID-r16 INTEGER (0..255), + nr-PhysCellID-r16 NR-PhysCellID-r16 OPTIONAL, + nr-CellGlobalID-r16 NCGI-r15 OPTIONAL, + nr-ARFCN-r16 ARFCN-ValueNR-r15 OPTIONAL, + nr-DL-PRS-ResourceID-r16 NR-DL-PRS-ResourceID-r16 OPTIONAL, + nr-DL-PRS-ResourceSetID-r16 NR-DL-PRS-ResourceSetID-r16 OPTIONAL, + nr-TimeStamp-r16 NR-TimeStamp-r16, + nr-DL-PRS-RSRP-Result-r16 INTEGER (0..126), + nr-DL-PRS-RxBeamIndex-r16 INTEGER (1..8) OPTIONAL, + nr-DL-AoD-AdditionalMeasurements-r16 NR-DL-AoD-AdditionalMeasurements-r16 OPTIONAL, + ..., + [[ + nr-DL-PRS-FirstPathRSRP-Result-r17 INTEGER (0..126) OPTIONAL, + nr-los-nlos-Indicator-r17 CHOICE { + perTRP-r17 LOS-NLOS-Indicator-r17, + perResource-r17 LOS-NLOS-Indicator-r17 + } OPTIONAL, + nr-DL-AoD-AdditionalMeasurementsExt-r17 NR-DL-AoD-AdditionalMeasurementsExt-r17 OPTIONAL + ]] +} + +NR-DL-AoD-AdditionalMeasurements-r16 ::= SEQUENCE (SIZE (1..7)) OF NR-DL-AoD-AdditionalMeasurementElement-r16 + +NR-DL-AoD-AdditionalMeasurementsExt-r17 ::= SEQUENCE (SIZE (1..maxAddMeasAoD-r17)) OF NR-DL-AoD-AdditionalMeasurementElement-r17 + +NR-DL-AoD-AdditionalMeasurementElement-r16 ::= SEQUENCE { + nr-DL-PRS-ResourceID-r16 NR-DL-PRS-ResourceID-r16 OPTIONAL, + nr-DL-PRS-ResourceSetID-r16 NR-DL-PRS-ResourceSetID-r16 OPTIONAL, + nr-TimeStamp-r16 NR-TimeStamp-r16, + nr-DL-PRS-RSRP-ResultDiff-r16 INTEGER (0..30), + nr-DL-PRS-RxBeamIndex-r16 INTEGER (1..8) OPTIONAL, + ... +} + +NR-DL-AoD-AdditionalMeasurementElement-r17 ::= SEQUENCE { + nr-DL-PRS-ResourceID-r17 NR-DL-PRS-ResourceID-r16 OPTIONAL, + nr-DL-PRS-ResourceSetID-r17 NR-DL-PRS-ResourceSetID-r16 OPTIONAL, + nr-TimeStamp-r17 NR-TimeStamp-r16, + nr-DL-PRS-RSRP-ResultDiff-r17 INTEGER (0..30) OPTIONAL, -- Cond rsrp + nr-DL-PRS-RxBeamIndex-r17 INTEGER (1..8) OPTIONAL, + nr-DL-PRS-FirstPathRSRP-ResultDiff-r17 INTEGER (0..61) OPTIONAL, -- Cond rsrpp + nr-los-nlos-IndicatorPerResource-r17 LOS-NLOS-Indicator-r17 OPTIONAL, + ... +} + +NR-DL-AoD-LocationInformation-r16 ::= SEQUENCE { + measurementReferenceTime-r16 CHOICE { + sfn-time-r16 NR-TimeStamp-r16, + utc-time-r16 UTCTime, + ... + } OPTIONAL, + ..., + [[ + locationCoordinates-r17 LocationCoordinates OPTIONAL, -- Cond batch1 + locationSource-r17 LocationSource-r13 OPTIONAL -- Cond batch2 + ]] +} + +NR-DL-AoD-RequestLocationInformation-r16 ::= SEQUENCE { + nr-AssistanceAvailability-r16 BOOLEAN, + nr-DL-AoD-ReportConfig-r16 NR-DL-AoD-ReportConfig-r16, + ..., + [[ + multiMeasInSameReport-r17 ENUMERATED {requested} OPTIONAL -- Need ON + ]], + [[ + nr-DL-PRS-RxHoppingRequest-r18 ENUMERATED {requested} OPTIONAL, -- Need ON + nr-DL-PRS-RxHoppingTotalBandwidth-r18 CHOICE { + fr1 ENUMERATED { + mhz40, + mhz50, + mhz80, + mhz100 + }, + fr2 ENUMERATED { + mhz100, + mhz200, + mhz400 + } + } OPTIONAL -- Need ON + ]] +} + +NR-DL-AoD-ReportConfig-r16 ::= SEQUENCE { + maxDL-PRS-RSRP-MeasurementsPerTRP-r16 INTEGER (1..8) OPTIONAL, -- Need ON + ..., + [[ + maxDL-PRS-RSRP-MeasurementsPerTRP-r17 INTEGER (9..24) OPTIONAL, -- Need ON + maxDL-PRS-RSRPP-MeasurementsPerTRP-r17 INTEGER (1..24) OPTIONAL, -- Need ON + nr-los-nlos-IndicatorRequest-r17 SEQUENCE { + type-r17 LOS-NLOS-IndicatorType1-r17, + granularity-r17 LOS-NLOS-IndicatorGranularity1-r17, + ... + } OPTIONAL, -- Need ON + reducedDL-PRS-ProcessingSamples-r17 ENUMERATED { + requested, + ... + } OPTIONAL, -- Need ON + lowerRxBeamSweepingFactor-FR2-r17 ENUMERATED {requested} OPTIONAL -- Need ON + ]], + [[ + nr-DL-PRS-MeasurementTimeWindowsConfig-r18 NR-DL-PRS-MeasurementTimeWindowsConfig-r18 OPTIONAL -- Need ON + ]] +} + +NR-DL-AoD-ProvideCapabilities-r16 ::= SEQUENCE { + nr-DL-AoD-Mode-r16 PositioningModes, + nr-DL-AoD-PRS-Capability-r16 NR-DL-PRS-ResourcesCapability-r16, + nr-DL-AoD-MeasurementCapability-r16 NR-DL-AoD-MeasurementCapability-r16, + nr-DL-PRS-QCL-ProcessingCapability-r16 NR-DL-PRS-QCL-ProcessingCapability-r16, + nr-DL-PRS-ProcessingCapability-r16 NR-DL-PRS-ProcessingCapability-r16, + periodicalReporting-r16 PositioningModes OPTIONAL, + ..., + [[ + ten-ms-unit-ResponseTime-r17 PositioningModes OPTIONAL, + nr-PosCalcAssistanceSupport-r17 BIT STRING { + trpLocSup (0), + beamInfoSup (1), + rtdInfoSup (2), + beamAntInfoSup (3), + nr-IntegrityBoundsSup-r18 (4) + } (SIZE (1..8)) OPTIONAL, + nr-los-nlos-AssistanceDataSupport-r17 SEQUENCE { + type-r17 LOS-NLOS-IndicatorType2-r17, + granularity-r17 LOS-NLOS-IndicatorGranularity2-r17, + ... + } OPTIONAL, + nr-DL-PRS-ExpectedAoD-or-AoA-Sup-r17 BIT STRING { + eAoD (0), + eAoA (1) + } (SIZE (1..8)) OPTIONAL, + dl-PRS-ResourcePrioritySubset-Sup-r17 ENUMERATED { + sameSet, + differentSet, + sameOrDifferentSet + } OPTIONAL, + nr-DL-PRS-BeamInfoSup-r17 ENUMERATED {supported} OPTIONAL, + nr-DL-AoD-On-Demand-DL-PRS-Support-r17 NR-On-Demand-DL-PRS-Support-r17 OPTIONAL, + nr-los-nlos-IndicatorSupport-r17 SEQUENCE { + type-r17 LOS-NLOS-IndicatorType2-r17, + granularity-r17 LOS-NLOS-IndicatorGranularity2-r17, + ... + } OPTIONAL, + scheduledLocationRequestSupported-r17 ScheduledLocationTimeSupportPerMode-r17 OPTIONAL, + nr-dl-prs-AssistanceDataValidity-r17 SEQUENCE { + area-validity-r17 INTEGER (1..maxNrOfAreas-r17) OPTIONAL, + ... + } OPTIONAL, + multiMeasInSameMeasReport-r17 ENUMERATED {supported} OPTIONAL, + mg-ActivationRequest-r17 ENUMERATED {supported} OPTIONAL + ]], + [[ + posMeasGapSupport-r17 ENUMERATED {supported} OPTIONAL + ]], + [[ + multiLocationEstimateInSameMeasReport-r17 ENUMERATED {supported} OPTIONAL + ]], + [[ + locationCoordinateTypes-r18 LocationCoordinateTypes OPTIONAL, + nr-IntegrityAssistanceSupport-r18 BIT STRING { + serviceParametersSup (0), + serviceAlertSup (1), + riskParametersSup (2), + integrityParaTRP-LocSup (3), + integrityParaBeamInfoSup (4), + integrityParaRTD-InfoSup (5), + integrityBeamAntInfoSup (6) + } (SIZE (1..8)) OPTIONAL, + nr-DL-AoD-OnDemandPRS-ForBWA-Support-r18 ENUMERATED {supported} OPTIONAL + ]] +} + +NR-DL-AoD-MeasurementCapability-r16 ::= SEQUENCE { + maxDL-PRS-RSRP-MeasurementFR1-r16 INTEGER (1..8), + maxDL-PRS-RSRP-MeasurementFR2-r16 INTEGER (1..8), + dl-AoD-MeasCapabilityBandList-r16 SEQUENCE (SIZE (1..nrMaxBands-r16)) OF DL-AoD-MeasCapabilityPerBand-r16, + ..., + [[ + maxDL-PRS-RSRP-MeasurementFR1-v1730 ENUMERATED { + n16, + n24 + } OPTIONAL, + maxDL-PRS-RSRP-MeasurementFR2-v1730 ENUMERATED { + n16, + n24 + } OPTIONAL + ]] +} + +DL-AoD-MeasCapabilityPerBand-r16 ::= SEQUENCE { + freqBandIndicatorNR-r16 FreqBandIndicatorNR-r16, + simul-NR-DL-AoD-DL-TDOA-r16 ENUMERATED {supported} OPTIONAL, + simul-NR-DL-AoD-Multi-RTT-r16 ENUMERATED {supported} OPTIONAL, + ..., + [[ + maxDL-PRS-FirstPathRSRP-MeasPerTRP-r17 ENUMERATED { + n1, + n2, + n4, + n8, + n16, + n24 + } OPTIONAL, + dl-PRS-MeasRRC-Inactive-r17 ENUMERATED {supported} OPTIONAL + ]], + [[ + supportOfLegacyMeasurementInTimeWindow-r18 ENUMERATED {supported} OPTIONAL + ]] +} + +NR-DL-AoD-RequestCapabilities-r16 ::= SEQUENCE {...} + +NR-DL-AoD-Error-r16 ::= CHOICE { + locationServerErrorCauses-r16 NR-DL-AoD-LocationServerErrorCauses-r16, + targetDeviceErrorCauses-r16 NR-DL-AoD-TargetDeviceErrorCauses-r16, + ... +} + +NR-DL-AoD-LocationServerErrorCauses-r16 ::= SEQUENCE { + cause-r16 ENUMERATED { + undefined, + assistanceDataNotSupportedByServer, + assistanceDataSupportedButCurrentlyNotAvailableByServer, + notProvidedAssistanceDataNotSupportedByServer, + ..., + on-demand-dl-prs-NotSupportedByServer-v1700, + on-demand-dl-prs-SupportedButCurrentlyNotAvailableByServer-v1700 + }, + ... +} + +NR-DL-AoD-TargetDeviceErrorCauses-r16 ::= SEQUENCE { + cause-r16 ENUMERATED { + undefined, + assistance-data-missing, + unableToMeasureAnyTRP, + attemptedButUnableToMeasureSomeNeighbourTRPs, + thereWereNotEnoughSignalsReceivedForUeBasedDL-AoD, + locationCalculationAssistanceDataMissing, + ... + }, + ..., + [[ + remoteUE-Indication-r18 ENUMERATED {true} OPTIONAL -- Cond NR + ]] +} + +NR-Multi-RTT-ProvideAssistanceData-r16 ::= SEQUENCE { + nr-DL-PRS-AssistanceData-r16 NR-DL-PRS-AssistanceData-r16 OPTIONAL, -- Need ON + nr-SelectedDL-PRS-IndexList-r16 NR-SelectedDL-PRS-IndexList-r16 OPTIONAL, -- Need ON + nr-Multi-RTT-Error-r16 NR-Multi-RTT-Error-r16 OPTIONAL, -- Need ON + ..., + [[ + nr-On-Demand-DL-PRS-Configurations-r17 NR-On-Demand-DL-PRS-Configurations-r17 OPTIONAL, -- Need ON + nr-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17 NR-On-Demand-DL-PRS-Configurations-Selected-IndexList-r17 OPTIONAL, -- Need ON + assistanceDataValidityArea-r17 AreaID-CellList-r17 OPTIONAL -- Need ON + ]] +} + +NR-Multi-RTT-RequestAssistanceData-r16 ::= SEQUENCE { + nr-PhysCellID-r16 NR-PhysCellID-r16 OPTIONAL, + nr-AdType-r16 BIT STRING { + dl-prs (0), + ul-srs (1) + } (SIZE (1..8)), + ..., + [[ + nr-on-demand-DL-PRS-Request-r17 NR-On-Demand-DL-PRS-Request-r17 OPTIONAL, + nr-DL-PRS-ExpectedAoD-or-AoA-Request-r17 ENUMERATED { + eAoD, + eAoA + } OPTIONAL, + pre-configured-AssistanceDataRequest-r17 ENUMERATED {true} OPTIONAL + ]] +} + +NR-Multi-RTT-ProvideLocationInformation-r16 ::= SEQUENCE { + nr-Multi-RTT-SignalMeasurementInformation-r16 NR-Multi-RTT-SignalMeasurementInformation-r16 OPTIONAL, + nr-Multi-RTT-Error-r16 NR-Multi-RTT-Error-r16 OPTIONAL, + ..., + [[ + nr-Multi-RTT-SignalMeasurementInstances-r17 SEQUENCE (SIZE (1..maxMeasInstances-r17)) OF NR-Multi-RTT-SignalMeasurementInformation-r16 OPTIONAL --Cond batchUEA + ]] +} + +NR-Multi-RTT-SignalMeasurementInformation-r16 ::= SEQUENCE { + nr-Multi-RTT-MeasList-r16 NR-Multi-RTT-MeasList-r16, + nr-NTA-Offset-r16 ENUMERATED { + nTA1, + nTA2, + nTA3, + nTA4, + ... + } OPTIONAL, + ..., + [[ + nr-SRS-TxTEG-Set-r17 SEQUENCE (SIZE (1..maxTxTEG-Sets-r17)) OF NR-SRS-TxTEG-Element-r17 OPTIONAL + -- Cond Case2-3 + ]], + [[ + nr-UE-RxTEG-TimingErrorMargin-r17 TEG-TimingErrorMargin-r17 OPTIONAL, -- Cond TEGCase3 + nr-UE-TxTEG-TimingErrorMargin-r17 TEG-TimingErrorMargin-r17 OPTIONAL, -- Cond TEGCase2-3 + nr-UE-RxTxTEG-TimingErrorMargin-r17 RxTxTEG-TimingErrorMargin-r17 OPTIONAL -- Cond TEGCase1-2 + ]] +} + +NR-Multi-RTT-MeasList-r16 ::= SEQUENCE (SIZE (1..nrMaxTRPs-r16)) OF NR-Multi-RTT-MeasElement-r16 + +NR-Multi-RTT-MeasElement-r16 ::= SEQUENCE { + dl-PRS-ID-r16 INTEGER (0..255), + nr-PhysCellID-r16 NR-PhysCellID-r16 OPTIONAL, + nr-CellGlobalID-r16 NCGI-r15 OPTIONAL, + nr-ARFCN-r16 ARFCN-ValueNR-r15 OPTIONAL, + nr-DL-PRS-ResourceID-r16 NR-DL-PRS-ResourceID-r16 OPTIONAL, + nr-DL-PRS-ResourceSetID-r16 NR-DL-PRS-ResourceSetID-r16 OPTIONAL, + nr-UE-RxTxTimeDiff-r16 CHOICE { + k0-r16 INTEGER (0..1970049), + k1-r16 INTEGER (0..985025), + k2-r16 INTEGER (0..492513), + k3-r16 INTEGER (0..246257), + k4-r16 INTEGER (0..123129), + k5-r16 INTEGER (0..61565), + ..., + kMinus6-r18 INTEGER (0..126083073), + kMinus5-r18 INTEGER (0..63041537), + kMinus4-r18 INTEGER (0..31520769), + kMinus3-r18 INTEGER (0..15760385), + kMinus2-r18 INTEGER (0..7880193), + kMinus1-r18 INTEGER (0..3940097) + }, + nr-AdditionalPathList-r16 NR-AdditionalPathList-r16 OPTIONAL, + nr-TimeStamp-r16 NR-TimeStamp-r16, + nr-TimingQuality-r16 NR-TimingQuality-r16, + nr-DL-PRS-RSRP-Result-r16 INTEGER (0..126) OPTIONAL, + nr-Multi-RTT-AdditionalMeasurements-r16 NR-Multi-RTT-AdditionalMeasurements-r16 OPTIONAL, + ..., + [[ + nr-UE-RxTx-TEG-Info-r17 NR-UE-RxTx-TEG-Info-r17 OPTIONAL, + nr-DL-PRS-FirstPathRSRP-Result-r17 INTEGER (0..126) OPTIONAL, + nr-los-nlos-Indicator-r17 CHOICE { + perTRP-r17 LOS-NLOS-Indicator-r17, + perResource-r17 LOS-NLOS-Indicator-r17 + } OPTIONAL, + nr-AdditionalPathListExt-r17 NR-AdditionalPathListExt-r17 OPTIONAL, + nr-Multi-RTT-AdditionalMeasurementsExt-r17 NR-Multi-RTT-AdditionalMeasurementsExt-r17 OPTIONAL + ]], + [[ + nr-UE-RxTxTimeDiffBasedOnAggregatedResources-r18 ENUMERATED {true} OPTIONAL, + nr-AggregatedDL-PRS-ResourceSetID-List-r18 SEQUENCE (SIZE (2..3)) OF NR-AggregatedDL-PRS-ResourceSetID-Element-r18 OPTIONAL, + nr-RSCP-r18 INTEGER (0..3599) OPTIONAL, + nr-PhaseQuality-r18 NR-PhaseQuality-r18 OPTIONAL, + nr-RSCP-AddSampleMeasurements-r18 SEQUENCE (SIZE (1..nrNumOfSamples-1-r18)) OF NR-RSCP-AdditionalMeasurements-r18 OPTIONAL, + nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18 ENUMERATED { + singleHop, + multipleHop + } OPTIONAL, + nr-NTN-UE-RxTxMeasurements-r18 NR-NTN-UE-RxTxMeasurements-r18 OPTIONAL + ]] +} + +NR-Multi-RTT-AdditionalMeasurements-r16 ::= SEQUENCE (SIZE (1..3)) OF NR-Multi-RTT-AdditionalMeasurementElement-r16 + +NR-Multi-RTT-AdditionalMeasurementsExt-r17 ::= SEQUENCE (SIZE (1..maxAddMeasRTT-r17)) OF NR-Multi-RTT-AdditionalMeasurementElement-r16 + +NR-Multi-RTT-AdditionalMeasurementElement-r16 ::= SEQUENCE { + nr-DL-PRS-ResourceID-r16 NR-DL-PRS-ResourceID-r16 OPTIONAL, + nr-DL-PRS-ResourceSetID-r16 NR-DL-PRS-ResourceSetID-r16 OPTIONAL, + nr-DL-PRS-RSRP-ResultDiff-r16 INTEGER (0..61) OPTIONAL, + nr-UE-RxTxTimeDiffAdditional-r16 CHOICE { + k0-r16 INTEGER (0..8191), + k1-r16 INTEGER (0..4095), + k2-r16 INTEGER (0..2047), + k3-r16 INTEGER (0..1023), + k4-r16 INTEGER (0..511), + k5-r16 INTEGER (0..255), + ..., + kMinus6-r18 INTEGER (0..524224), + kMinus5-r18 INTEGER (0..262112), + kMinus4-r18 INTEGER (0..131056), + kMinus3-r18 INTEGER (0..65528), + kMinus2-r18 INTEGER (0..32764), + kMinus1-r18 INTEGER (0..16382) + }, + nr-TimingQuality-r16 NR-TimingQuality-r16, + nr-AdditionalPathList-r16 NR-AdditionalPathList-r16 OPTIONAL, + nr-TimeStamp-r16 NR-TimeStamp-r16, + ..., + [[ + nr-UE-RxTx-TEG-Info-r17 NR-UE-RxTx-TEG-Info-r17 OPTIONAL, + nr-DL-PRS-FirstPathRSRP-ResultDiff-r17 INTEGER (0..61) OPTIONAL, + nr-los-nlos-IndicatorPerResource-r17 LOS-NLOS-Indicator-r17 OPTIONAL, + nr-AdditionalPathListExt-r17 NR-AdditionalPathListExt-r17 OPTIONAL + ]], + [[ + nr-UE-RxTxTimeDiffBasedOnAggregatedResources-r18 ENUMERATED {true} OPTIONAL, + nr-AggregatedDL-PRS-ResourceSetID-List-r18 SEQUENCE (SIZE (2..3)) OF NR-AggregatedDL-PRS-ResourceSetID-Element-r18 OPTIONAL, + nr-RSCP-r18 INTEGER (0..3599) OPTIONAL, + nr-PhaseQuality-r18 NR-PhaseQuality-r18 OPTIONAL, + nr-RSCP-AdditionalMeasurementsAddSample-r18 SEQUENCE (SIZE (1..nrNumOfSamples-1-r18)) OF NR-RSCP-AdditionalMeasurements-r18 OPTIONAL, + nr-ReportDL-PRS-MeasBasedOnSingleOrMultiHopRx-r18 ENUMERATED { + singleHop, + multipleHop + } OPTIONAL, + nr-NTN-UE-RxTxMeasurements-r18 NR-NTN-UE-RxTxMeasurements-r18 OPTIONAL + ]] +} + +NR-SRS-TxTEG-Element-r17 ::= SEQUENCE { + nr-TimeStamp-r17 NR-TimeStamp-r16 OPTIONAL, -- Need OP + nr-UE-Tx-TEG-ID-r17 INTEGER (0..maxNumOfTxTEGs-1-r17), + carrierFreq-r17 SEQUENCE { + absoluteFrequencyPointA-r17 ARFCN-ValueNR-r15, + offsetToPointA-r17 INTEGER (0..2199) + } OPTIONAL, + srs-PosResourceList-r17 SEQUENCE (SIZE (1..maxNumOfSRS-PosResources-r17)) OF INTEGER (0..maxNumOfSRS-PosResources-1-r17), + ... +} + +NR-UE-RxTx-TEG-Info-r17 ::= CHOICE { + case1-r17 SEQUENCE { + nr-UE-RxTx-TEG-ID-r17 INTEGER (0..maxNumOfRxTxTEGs-1-r17) + }, + case2-r17 SEQUENCE { + nr-UE-RxTx-TEG-ID-r17 INTEGER (0..maxNumOfRxTxTEGs-1-r17), + nr-UE-Tx-TEG-Index-r17 INTEGER (1..maxTxTEG-Sets-r17) + }, + case3-r17 SEQUENCE { + nr-UE-Rx-TEG-ID-r17 INTEGER (0..maxNumOfRxTEGs-1-r17), + nr-UE-Tx-TEG-Index-r17 INTEGER (1..maxTxTEG-Sets-r17) + }, + ... +} + +NR-RSCP-AdditionalMeasurements-r18 ::= SEQUENCE { + nr-RSCP-r18 INTEGER (0..3599) OPTIONAL, + nr-PhaseQuality-r18 NR-PhaseQuality-r18 OPTIONAL, + nr-TimeStamp-r18 NR-TimeStamp-r16 OPTIONAL, + ... +} + +NR-NTN-UE-RxTxMeasurements-r18 ::= SEQUENCE { + nr-NTN-UE-RxTxTimeDiffSubframeOffset-r18 INTEGER (0..542), + nr-NTN-DL-TimingDrift-r18 INTEGER (-265..265) +} + +NR-Multi-RTT-RequestLocationInformation-r16 ::= SEQUENCE { + nr-UE-RxTxTimeDiffMeasurementInfoRequest-r16 ENUMERATED {true} OPTIONAL, -- Need ON + nr-RequestedMeasurements-r16 BIT STRING { + prsrsrpReq (0), + firstPathRsrpReq-r17 (1), + jointMeasurementsReq-r18 (2) + } (SIZE (1..8)), + nr-AssistanceAvailability-r16 BOOLEAN, + nr-Multi-RTT-ReportConfig-r16 NR-Multi-RTT-ReportConfig-r16, + additionalPaths-r16 ENUMERATED {requested} OPTIONAL, -- Need ON + ..., + [[ + nr-UE-RxTxTEG-Request-r17 ENUMERATED { + case1, + case2, + case3, + ... + } OPTIONAL, -- Need ON + measureSameDL-PRS-ResourceWithDifferentRxTxTEGs-r17 ENUMERATED { + n0, + n2, + n3, + n4, + n6, + n8, + ... + } OPTIONAL, -- Need ON + measureSameDL-PRS-ResourceWithDifferentRxTEGs-r17 ENUMERATED { + n0, + n2, + n3, + n4, + n6, + n8, + ... + } OPTIONAL, -- Need ON + reducedDL-PRS-ProcessingSamples-r17 ENUMERATED { + requested, + ... + } OPTIONAL, -- Need ON + nr-los-nlos-IndicatorRequest-r17 SEQUENCE { + type-r17 LOS-NLOS-IndicatorType1-r17, + granularity-r17 LOS-NLOS-IndicatorGranularity1-r17, + ... + } OPTIONAL, -- Need ON + additionalPathsExt-r17 ENUMERATED {requested} OPTIONAL, -- Need ON + additionalPathsDL-PRS-RSRP-Request-r17 ENUMERATED {requested} OPTIONAL, -- Need ON + multiMeasInSameReport-r17 ENUMERATED {requested} OPTIONAL, -- Need ON + lowerRxBeamSweepingFactor-FR2-r17 ENUMERATED {requested} OPTIONAL -- Need ON + ]], + [[ + nr-DL-PRS-RxHoppingRequest-r18 SEQUENCE { + nr-DL-PRS-RxHoppingTotalBandwidth-r18 CHOICE { + fr1 ENUMERATED { + mhz40, + mhz50, + mhz80, + mhz100 + }, + fr2 ENUMERATED { + mhz100, + mhz200, + mhz400 + } + } OPTIONAL -- Need ON + } OPTIONAL, -- Need ON + timingReportingGranularityFactorExt-r18 INTEGER (-6..-1) OPTIONAL, -- Need ON + nr-DL-PRS-JointMeasurementRequestedPFL-List-r18 SEQUENCE (SIZE (2..3)) OF INTEGER (0..nrMaxFreqLayers-1-r16) OPTIONAL, -- Need ON + nr-DL-PRS-RSCP-Request-r18 ENUMERATED {requested} OPTIONAL, -- Need ON + nr-DL-PRS-MeasurementTimeWindowsConfig-r18 NR-DL-PRS-MeasurementTimeWindowsConfig-r18 OPTIONAL -- Need ON + ]] +} + +NR-Multi-RTT-ReportConfig-r16 ::= SEQUENCE { + maxDL-PRS-RxTxTimeDiffMeasPerTRP-r16 INTEGER (1..4) OPTIONAL, -- Need ON + timingReportingGranularityFactor-r16 INTEGER (0..5) OPTIONAL -- Need ON +} + +NR-Multi-RTT-ProvideCapabilities-r16 ::= SEQUENCE { + nr-Multi-RTT-PRS-Capability-r16 NR-DL-PRS-ResourcesCapability-r16, + nr-Multi-RTT-MeasurementCapability-r16 NR-Multi-RTT-MeasurementCapability-r16, + nr-DL-PRS-QCL-ProcessingCapability-r16 NR-DL-PRS-QCL-ProcessingCapability-r16, + nr-DL-PRS-ProcessingCapability-r16 NR-DL-PRS-ProcessingCapability-r16, + nr-UL-SRS-Capability-r16 NR-UL-SRS-Capability-r16, + additionalPathsReport-r16 ENUMERATED {supported} OPTIONAL, + periodicalReporting-r16 ENUMERATED {supported} OPTIONAL, + ..., + [[ + ten-ms-unit-ResponseTime-r17 ENUMERATED {supported} OPTIONAL, + nr-DL-PRS-ExpectedAoD-or-AoA-Sup-r17 BIT STRING { + eAoD (0), + eAoA (1) + } (SIZE (1..8)) OPTIONAL, + nr-Multi-RTT-On-Demand-DL-PRS-Support-r17 NR-On-Demand-DL-PRS-Support-r17 OPTIONAL, + nr-UE-RxTx-TEG-ID-ReportingSupport-r17 BIT STRING { + case1 (0), + case2 (1), + case3 (2) + } (SIZE (1..8)) OPTIONAL, + nr-los-nlos-IndicatorSupport-r17 SEQUENCE { + type-r17 LOS-NLOS-IndicatorType2-r17, + granularity-r17 LOS-NLOS-IndicatorGranularity2-r17, + ... + } OPTIONAL, + additionalPathsExtSupport-r17 ENUMERATED { + n4, + n6, + n8 + } OPTIONAL, + scheduledLocationRequestSupported-r17 ScheduledLocationTimeSupport-r17 OPTIONAL, + nr-dl-prs-AssistanceDataValidity-r17 SEQUENCE { + area-validity-r17 INTEGER (1..maxNrOfAreas-r17) OPTIONAL, + ... + } OPTIONAL, + multiMeasInSameMeasReport-r17 ENUMERATED {supported} OPTIONAL, + mg-ActivationRequest-r17 ENUMERATED {supported} OPTIONAL + ]], + [[ + posMeasGapSupport-r17 ENUMERATED {supported} OPTIONAL + ]], + [[ + symbolTimeStampSupport-r18 ENUMERATED {supported} OPTIONAL, + nr-MultiRTT-OnDemandPRS-ForBWA-Support-r18 ENUMERATED {supported} OPTIONAL + ]] +} + +NR-Multi-RTT-MeasurementCapability-r16 ::= SEQUENCE { + maxNrOfRx-TX-MeasFR1-r16 INTEGER (1..4) OPTIONAL, + maxNrOfRx-TX-MeasFR2-r16 INTEGER (1..4) OPTIONAL, + supportOfRSRP-MeasFR1-r16 ENUMERATED {supported} OPTIONAL, + supportOfRSRP-MeasFR2-r16 ENUMERATED {supported} OPTIONAL, + srs-AssocPRS-MultiLayersFR1-r16 ENUMERATED {supported} OPTIONAL, + srs-AssocPRS-MultiLayersFR2-r16 ENUMERATED {supported} OPTIONAL, + ..., + [[ + nr-UE-TEG-Capability-r17 NR-UE-TEG-Capability-r17 OPTIONAL, + multi-RTT-MeasCapabilityBandList-r17 SEQUENCE (SIZE (1..nrMaxBands-r16)) OF Multi-RTT-MeasCapabilityPerBand-r17 OPTIONAL + ]] +} + +Multi-RTT-MeasCapabilityPerBand-r17 ::= SEQUENCE { + freqBandIndicatorNR-r17 FreqBandIndicatorNR-r16, + supportOfDL-PRS-FirstPathRSRP-r17 ENUMERATED {supported} OPTIONAL, + dl-PRS-MeasRRC-Inactive-r17 ENUMERATED {supported} OPTIONAL, + ..., + [[ + supportOfDL-PRS-BWA-RRC-Connected-r18 ENUMERATED {supported} OPTIONAL, + supportOfDL-PRS-BWA-RRC-Inactive-r18 ENUMERATED {supported} OPTIONAL, + nr-NTN-MeasAndReport-r18 ENUMERATED {supported} OPTIONAL, + nr-DL-PRS-RSCP-ReportingRRC-Connected-r18 ENUMERATED {supported} OPTIONAL, + nr-DL-PRS-RSCP-ReportingRRC-Inactive-r18 ENUMERATED {supported} OPTIONAL, + supportOfLegacyMeasurementInTimeWindow-r18 ENUMERATED {supported} OPTIONAL, + assocSingleRx-Tx-WithUpToNsampleRSCP-r18 ENUMERATED {supported} OPTIONAL, + supportOfRSCP-MeasurementInTimeWindow-r18 ENUMERATED {supported} OPTIONAL, + supportOfSymbolTimeStampForRSCP-r18 ENUMERATED {supported} OPTIONAL, + supportOfFinerTimingReportGranularityForPRS-Meas-r18 ENUMERATED { + minus1, + minus2, + minus3, + minus4, + minus5, + minus6 + } OPTIONAL + ]] +} + +NR-Multi-RTT-RequestCapabilities-r16 ::= SEQUENCE {...} + +NR-Multi-RTT-Error-r16 ::= CHOICE { + locationServerErrorCauses-r16 NR-Multi-RTT-LocationServerErrorCauses-r16, + targetDeviceErrorCauses-r16 NR-Multi-RTT-TargetDeviceErrorCauses-r16, + ... +} + +NR-Multi-RTT-LocationServerErrorCauses-r16 ::= SEQUENCE { + cause-r16 ENUMERATED { + undefined, + assistanceDataNotSupportedByServer, + assistanceDataSupportedButCurrentlyNotAvailableByServer, + ..., + on-demand-dl-prs-NotSupportedByServer-v1700, + on-demand-dl-prs-SupportedButCurrentlyNotAvailableByServer-v1700 + }, + ... +} + +NR-Multi-RTT-TargetDeviceErrorCauses-r16 ::= SEQUENCE { + cause-r16 ENUMERATED { + undefined, + dl-assistance-data-missing, + unableToMeasureAnyTRP, + attemptedButUnableToMeasureSomeNeighbourTRPs, + ul-srs-configuration-missing, + unableToTransmit-ul-srs, + ... + }, + ..., + [[ + remoteUE-Indication-r18 ENUMERATED {true} OPTIONAL -- Cond NR + ]] +} + +maxEARFCN INTEGER ::= 65535 -- Maximum value of EUTRA carrier frequency + +maxEARFCN-Plus1 INTEGER ::= 65536 -- Lowest value extended EARFCN range + +maxEARFCN2 INTEGER ::= 262143 -- Highest value extended EARFCN range + +maxMBS-r14 INTEGER ::= 64 + +maxWLAN-AP-r13 INTEGER ::= 64 + +maxKnownAPs-r14 INTEGER ::= 2048 + +maxVisibleAPs-r14 INTEGER ::= 32 + +maxWLAN-AP-r14 INTEGER ::= 128 + +maxWLAN-DataSets-r14 INTEGER ::= 8 + +maxBT-Beacon-r13 INTEGER ::= 32 + +maxBT-BeaconAntElt-r18 INTEGER ::= 74 + +maxBT-BeaconAD-r18 INTEGER ::= 64 + +nrMaxBands-r16 INTEGER ::= 1024 -- Maximum number of supported bands in + -- UE capability. + +nrMaxFreqLayers-r16 INTEGER ::= 4 -- Max freq layers + +nrMaxFreqLayers-1-r16 INTEGER ::= 3 + +nrMaxNumDL-PRS-ResourcesPerSet-1-r16 INTEGER ::= 63 + +nrMaxNumDL-PRS-ResourceSetsPerTRP-1-r16 INTEGER ::= 7 + +nrMaxResourceIDs-r16 INTEGER ::= 64 -- Max Resource IDs + +nrMaxResourceOffsetValue-1-r16 INTEGER ::= 511 + +nrMaxResourcesPerSet-r16 INTEGER ::= 64 -- Maximum resources for one set + +nrMaxSetsPerTrpPerFreqLayer-r16 INTEGER ::= 2 -- Maximum resource sets for one TRP + +nrMaxSetsPerTrpPerFreqLayer-1-r16 INTEGER ::= 1 + +nrMaxTRPs-r16 INTEGER ::= 256 -- Max TRPs per UE + +nrMaxTRPsPerFreq-r16 INTEGER ::= 64 -- Max TRPs per freq layers + +nrMaxTRPsPerFreq-1-r16 INTEGER ::= 63 + +maxSimultaneousBands-r16 INTEGER ::= 4 -- Maximum number of simultaneously + -- measured bands + +maxBandComb-r16 INTEGER ::= 1024 + +nrMaxConfiguredBands-r16 INTEGER ::= 16 + +maxNumOfRxTEGs-r17 INTEGER ::= 32 + +maxNumOfRxTEGs-1-r17 INTEGER ::= 31 + +maxNumOfTxTEGs-1-r17 INTEGER ::= 7 + +maxTxTEG-Sets-r17 INTEGER ::= 256 -- Maximum applicable number is 64 + +maxNumOfRxTxTEGs-1-r17 INTEGER ::= 255 + +maxNumOfTRP-TxTEGs-1-r17 INTEGER ::= 7 + +maxNumOfSRS-PosResources-r17 INTEGER ::= 64 + +maxNumOfSRS-PosResources-1-r17 INTEGER ::= 63 + +maxNumResourcesPerAngle-r17 INTEGER ::= 24 + +maxNumPrioResources-r17 INTEGER ::= 24 + +maxAddMeasTDOA-r17 INTEGER ::= 31 + +maxAddMeasAoD-r17 INTEGER ::= 23 + +maxAddMeasRTT-r17 INTEGER ::= 31 + +maxOD-DL-PRS-Configs-r17 INTEGER ::= 8 + +maxCellIDsPerArea-r17 INTEGER ::= 256 + +maxNrOfAreas-r17 INTEGER ::= 16 + +maxMeasInstances-r17 INTEGER ::= 32 + +nrMaxNumPRS-BandWidthAggregation-r18 INTEGER ::= 256 -- Max number of DL-PRS bandwidth + -- aggregation configurations that a + -- location server can provide to a UE + +nrNumOfSamples-r18 INTEGER ::= 4 -- NSample of RSCP/RSCPD + +nrNumOfSamples-1-r18 INTEGER ::= 3 + +END \ No newline at end of file diff --git a/asn.1/src/LPP.asn b/asn.1/src/LPP.asn deleted file mode 100644 index 7b48fb08..00000000 --- a/asn.1/src/LPP.asn +++ /dev/null @@ -1,5427 +0,0 @@ -LPP-PDU-Definitions { -itu-t (0) identified-organization (4) etsi (0) mobileDomain (0) -eps-Access (21) modules (3) lpp (7) version1 (1) lpp-PDU-Definitions (1) } - -DEFINITIONS AUTOMATIC TAGS ::= - -BEGIN - -xFFS INTEGER ::= 1 - -LPP-Message ::= SEQUENCE { - transactionID LPP-TransactionID OPTIONAL, -- Need ON - endTransaction BOOLEAN, - sequenceNumber SequenceNumber OPTIONAL, -- Need ON - acknowledgement Acknowledgement OPTIONAL, -- Need ON - lpp-MessageBody LPP-MessageBody OPTIONAL -- Need ON -} - -SequenceNumber ::= INTEGER (0..255) - -Acknowledgement ::= SEQUENCE { - ackRequested BOOLEAN, - ackIndicator SequenceNumber OPTIONAL -} - - -LPP-MessageBody ::= CHOICE { - c1 CHOICE { - requestCapabilities RequestCapabilities, - provideCapabilities ProvideCapabilities, - requestAssistanceData RequestAssistanceData, - provideAssistanceData ProvideAssistanceData, - requestLocationInformation RequestLocationInformation, - provideLocationInformation ProvideLocationInformation, - abort Abort, - error Error, - spare7 NULL, spare6 NULL, spare5 NULL, spare4 NULL, - spare3 NULL, spare2 NULL, spare1 NULL, spare0 NULL - }, - messageClassExtension SEQUENCE {} -} - - -LPP-TransactionID ::= SEQUENCE { - initiator Initiator, - transactionNumber TransactionNumber, - ... -} - -Initiator ::= ENUMERATED { - locationServer, - targetDevice, - ... -} - -TransactionNumber ::= INTEGER (0..255) - - -RequestCapabilities ::= SEQUENCE { - criticalExtensions CHOICE { - c1 CHOICE { - requestCapabilities-r9 RequestCapabilities-r9-IEs, - spare3 NULL, spare2 NULL, spare1 NULL - }, - criticalExtensionsFuture SEQUENCE {} - } -} - -RequestCapabilities-r9-IEs ::= SEQUENCE { - commonIEsRequestCapabilities CommonIEsRequestCapabilities OPTIONAL, -- Need ON - a-gnss-RequestCapabilities A-GNSS-RequestCapabilities OPTIONAL, -- Need ON - otdoa-RequestCapabilities OTDOA-RequestCapabilities OPTIONAL, -- Need ON - ecid-RequestCapabilities ECID-RequestCapabilities OPTIONAL, -- Need ON - epdu-RequestCapabilities EPDU-Sequence OPTIONAL, -- Need ON - ..., - [[ sensor-RequestCapabilities-r13 Sensor-RequestCapabilities-r13 OPTIONAL, -- Need ON - tbs-RequestCapabilities-r13 TBS-RequestCapabilities-r13 OPTIONAL, -- Need ON - wlan-RequestCapabilities-r13 WLAN-RequestCapabilities-r13 OPTIONAL, -- Need ON - bt-RequestCapabilities-r13 BT-RequestCapabilities-r13 OPTIONAL -- Need ON - ]], - [[ nr-ECID-RequestCapabilities-r16 NR-ECID-RequestCapabilities-r16 OPTIONAL, -- Need ON - nr-Multi-RTT-RequestCapabilities-r16 - NR-Multi-RTT-RequestCapabilities-r16 - OPTIONAL, -- Need ON - nr-DL-AoD-RequestCapabilities-r16 - NR-DL-AoD-RequestCapabilities-r16 OPTIONAL, -- Need ON - nr-DL-TDOA-RequestCapabilities-r16 - NR-DL-TDOA-RequestCapabilities-r16 OPTIONAL, -- Need ON - nr-UL-RequestCapabilities-r16 NR-UL-RequestCapabilities-r16 OPTIONAL -- Need ON - ]] -} - - -ProvideCapabilities ::= SEQUENCE { - criticalExtensions CHOICE { - c1 CHOICE { - provideCapabilities-r9 ProvideCapabilities-r9-IEs, - spare3 NULL, spare2 NULL, spare1 NULL - }, - criticalExtensionsFuture SEQUENCE {} - } -} - - - -ProvideCapabilities-r9-IEs ::= SEQUENCE { - commonIEsProvideCapabilities CommonIEsProvideCapabilities OPTIONAL, - a-gnss-ProvideCapabilities A-GNSS-ProvideCapabilities OPTIONAL, - otdoa-ProvideCapabilities OTDOA-ProvideCapabilities OPTIONAL, - ecid-ProvideCapabilities ECID-ProvideCapabilities OPTIONAL, - epdu-ProvideCapabilities EPDU-Sequence OPTIONAL, - ..., - [[ sensor-ProvideCapabilities-r13 Sensor-ProvideCapabilities-r13 OPTIONAL, - tbs-ProvideCapabilities-r13 TBS-ProvideCapabilities-r13 OPTIONAL, - wlan-ProvideCapabilities-r13 WLAN-ProvideCapabilities-r13 OPTIONAL, - bt-ProvideCapabilities-r13 BT-ProvideCapabilities-r13 OPTIONAL - ]], - [[ nr-ECID-ProvideCapabilities-r16 NR-ECID-ProvideCapabilities-r16 OPTIONAL, - nr-Multi-RTT-ProvideCapabilities-r16 - NR-Multi-RTT-ProvideCapabilities-r16 OPTIONAL, - nr-DL-AoD-ProvideCapabilities-r16 - NR-DL-AoD-ProvideCapabilities-r16 OPTIONAL, - nr-DL-TDOA-ProvideCapabilities-r16 - NR-DL-TDOA-ProvideCapabilities-r16 OPTIONAL, - nr-UL-ProvideCapabilities-r16 NR-UL-ProvideCapabilities-r16 OPTIONAL - ]] -} - - -RequestAssistanceData ::= SEQUENCE { - criticalExtensions CHOICE { - c1 CHOICE { - requestAssistanceData-r9 RequestAssistanceData-r9-IEs, - spare3 NULL, spare2 NULL, spare1 NULL - }, - criticalExtensionsFuture SEQUENCE {} - } -} - -RequestAssistanceData-r9-IEs ::= SEQUENCE { - commonIEsRequestAssistanceData CommonIEsRequestAssistanceData OPTIONAL, - a-gnss-RequestAssistanceData A-GNSS-RequestAssistanceData OPTIONAL, - otdoa-RequestAssistanceData OTDOA-RequestAssistanceData OPTIONAL, - epdu-RequestAssistanceData EPDU-Sequence OPTIONAL, - ..., - [[ sensor-RequestAssistanceData-r14 - Sensor-RequestAssistanceData-r14 OPTIONAL, - tbs-RequestAssistanceData-r14 TBS-RequestAssistanceData-r14 OPTIONAL, - wlan-RequestAssistanceData-r14 WLAN-RequestAssistanceData-r14 OPTIONAL - ]], - [[ nr-Multi-RTT-RequestAssistanceData-r16 NR-Multi-RTT-RequestAssistanceData-r16 OPTIONAL, - nr-DL-AoD-RequestAssistanceData-r16 NR-DL-AoD-RequestAssistanceData-r16 OPTIONAL, - nr-DL-TDOA-RequestAssistanceData-r16 NR-DL-TDOA-RequestAssistanceData-r16 OPTIONAL - ]] -} - - -ProvideAssistanceData ::= SEQUENCE { - criticalExtensions CHOICE { - c1 CHOICE { - provideAssistanceData-r9 ProvideAssistanceData-r9-IEs, - spare3 NULL, spare2 NULL, spare1 NULL - }, - criticalExtensionsFuture SEQUENCE {} - } -} - -ProvideAssistanceData-r9-IEs ::= SEQUENCE { - commonIEsProvideAssistanceData CommonIEsProvideAssistanceData OPTIONAL, -- Need ON - a-gnss-ProvideAssistanceData A-GNSS-ProvideAssistanceData OPTIONAL, -- Need ON - otdoa-ProvideAssistanceData OTDOA-ProvideAssistanceData OPTIONAL, -- Need ON - epdu-Provide-Assistance-Data EPDU-Sequence OPTIONAL, -- Need ON - ..., - [[ - sensor-ProvideAssistanceData-r14 Sensor-ProvideAssistanceData-r14 OPTIONAL, -- Need ON - tbs-ProvideAssistanceData-r14 TBS-ProvideAssistanceData-r14 OPTIONAL, -- Need ON - wlan-ProvideAssistanceData-r14 WLAN-ProvideAssistanceData-r14 OPTIONAL -- Need ON - ]], - [[ nr-Multi-RTT-ProvideAssistanceData-r16 - NR-Multi-RTT-ProvideAssistanceData-r16 - OPTIONAL, -- Need ON - nr-DL-AoD-ProvideAssistanceData-r16 - NR-DL-AoD-ProvideAssistanceData-r16 OPTIONAL, -- Need ON - nr-DL-TDOA-ProvideAssistanceData-r16 - NR-DL-TDOA-ProvideAssistanceData-r16 - OPTIONAL -- Need ON - ]] -} - - -RequestLocationInformation ::= SEQUENCE { - criticalExtensions CHOICE { - c1 CHOICE { - requestLocationInformation-r9 RequestLocationInformation-r9-IEs, - spare3 NULL, spare2 NULL, spare1 NULL - }, - criticalExtensionsFuture SEQUENCE {} - } -} - -RequestLocationInformation-r9-IEs ::= SEQUENCE { - commonIEsRequestLocationInformation - CommonIEsRequestLocationInformation OPTIONAL, -- Need ON - a-gnss-RequestLocationInformation A-GNSS-RequestLocationInformation OPTIONAL, -- Need ON - otdoa-RequestLocationInformation OTDOA-RequestLocationInformation OPTIONAL, -- Need ON - ecid-RequestLocationInformation ECID-RequestLocationInformation OPTIONAL, -- Need ON - epdu-RequestLocationInformation EPDU-Sequence OPTIONAL, -- Need ON - ..., - [[ - sensor-RequestLocationInformation-r13 - Sensor-RequestLocationInformation-r13 - OPTIONAL, -- Need ON - tbs-RequestLocationInformation-r13 TBS-RequestLocationInformation-r13 OPTIONAL, -- Need ON - wlan-RequestLocationInformation-r13 WLAN-RequestLocationInformation-r13 OPTIONAL, -- Need ON - bt-RequestLocationInformation-r13 BT-RequestLocationInformation-r13 OPTIONAL -- Need ON - ]], - [[ nr-ECID-RequestLocationInformation-r16 - NR-ECID-RequestLocationInformation-r16 - OPTIONAL, -- Need ON - nr-Multi-RTT-RequestLocationInformation-r16 - NR-Multi-RTT-RequestLocationInformation-r16 - OPTIONAL, -- Need ON - nr-DL-AoD-RequestLocationInformation-r16 - NR-DL-AoD-RequestLocationInformation-r16 - OPTIONAL, -- Need ON - nr-DL-TDOA-RequestLocationInformation-r16 - NR-DL-TDOA-RequestLocationInformation-r16 - OPTIONAL -- Need ON - ]] -} - - -ProvideLocationInformation ::= SEQUENCE { - criticalExtensions CHOICE { - c1 CHOICE { - provideLocationInformation-r9 ProvideLocationInformation-r9-IEs, - spare3 NULL, spare2 NULL, spare1 NULL - }, - criticalExtensionsFuture SEQUENCE {} - } -} - -ProvideLocationInformation-r9-IEs ::= SEQUENCE { - commonIEsProvideLocationInformation - CommonIEsProvideLocationInformation OPTIONAL, - a-gnss-ProvideLocationInformation A-GNSS-ProvideLocationInformation OPTIONAL, - otdoa-ProvideLocationInformation OTDOA-ProvideLocationInformation OPTIONAL, - ecid-ProvideLocationInformation ECID-ProvideLocationInformation OPTIONAL, - epdu-ProvideLocationInformation EPDU-Sequence OPTIONAL, - ..., - [[ - sensor-ProvideLocationInformation-r13 - Sensor-ProvideLocationInformation-r13 - OPTIONAL, - tbs-ProvideLocationInformation-r13 TBS-ProvideLocationInformation-r13 OPTIONAL, - wlan-ProvideLocationInformation-r13 WLAN-ProvideLocationInformation-r13 OPTIONAL, - bt-ProvideLocationInformation-r13 BT-ProvideLocationInformation-r13 OPTIONAL - ]], - [[ nr-ECID-ProvideLocationInformation-r16 - NR-ECID-ProvideLocationInformation-r16 OPTIONAL, - nr-Multi-RTT-ProvideLocationInformation-r16 - NR-Multi-RTT-ProvideLocationInformation-r16 OPTIONAL, - nr-DL-AoD-ProvideLocationInformation-r16 - NR-DL-AoD-ProvideLocationInformation-r16 OPTIONAL, - nr-DL-TDOA-ProvideLocationInformation-r16 - NR-DL-TDOA-ProvideLocationInformation-r16 OPTIONAL - ]] -} - - -Abort ::= SEQUENCE { - criticalExtensions CHOICE { - c1 CHOICE { - abort-r9 Abort-r9-IEs, - spare3 NULL, spare2 NULL, spare1 NULL - }, - criticalExtensionsFuture SEQUENCE {} - } -} - -Abort-r9-IEs ::= SEQUENCE { - commonIEsAbort CommonIEsAbort OPTIONAL, -- Need ON - ..., - epdu-Abort EPDU-Sequence OPTIONAL -- Need ON -} - - -Error ::= CHOICE { - error-r9 Error-r9-IEs, - criticalExtensionsFuture SEQUENCE {} -} - -Error-r9-IEs ::= SEQUENCE { - commonIEsError CommonIEsError OPTIONAL, -- Need ON - ..., - epdu-Error EPDU-Sequence OPTIONAL -- Need ON -} - -AccessTypes ::= SEQUENCE { - accessTypes BIT STRING { eutra (0), - utra (1), - gsm (2), - nb-iot (3), - nr-v1510 (4) } (SIZE (1..8)), - ... -} - - -ARFCN-ValueEUTRA ::= INTEGER (0..maxEARFCN) - -ARFCN-ValueEUTRA-v9a0 ::= INTEGER (maxEARFCN-Plus1..maxEARFCN2) - -ARFCN-ValueEUTRA-r14 ::= INTEGER (0..maxEARFCN2) - -maxEARFCN INTEGER ::= 65535 -- Maximum value of EUTRA carrier frequency - -maxEARFCN-Plus1 INTEGER ::= 65536 -- Lowest value extended EARFCN range - -maxEARFCN2 INTEGER ::= 262143 -- Highest value extended EARFCN range - - -ARFCN-ValueNR-r15 ::= INTEGER (0..3279165) - - -ARFCN-ValueUTRA ::= INTEGER (0..16383) - - -CarrierFreq-NB-r14 ::= SEQUENCE { - carrierFreq-r14 ARFCN-ValueEUTRA-r14, - carrierFreqOffset-r14 CarrierFreqOffsetNB-r14 OPTIONAL, - ... -} - - -CarrierFreqOffsetNB-r14 ::= ENUMERATED { - v-10, v-9, v-8, v-7, v-6, v-5, v-4, v-3, v-2, v-1, v-0dot5, - v0, v1, v2, v3, v4, v5, v6, v7, v8, v9 - } - - -CellGlobalIdEUTRA-AndUTRA ::= SEQUENCE { - plmn-Identity SEQUENCE { - mcc SEQUENCE (SIZE (3)) OF INTEGER (0..9), - mnc SEQUENCE (SIZE (2..3)) OF INTEGER (0..9) - }, - cellIdentity CHOICE { - eutra BIT STRING (SIZE (28)), - utra BIT STRING (SIZE (32)) - }, - ... -} - - -CellGlobalIdGERAN ::= SEQUENCE { - plmn-Identity SEQUENCE { - mcc SEQUENCE (SIZE (3)) OF INTEGER (0..9), - mnc SEQUENCE (SIZE (2..3)) OF INTEGER (0..9) - }, - locationAreaCode BIT STRING (SIZE (16)), - cellIdentity BIT STRING (SIZE (16)), - ... -} - - -ECGI ::= SEQUENCE { - mcc SEQUENCE (SIZE (3)) OF INTEGER (0..9), - mnc SEQUENCE (SIZE (2..3)) OF INTEGER (0..9), - cellidentity BIT STRING (SIZE (28)) -} - - -Ellipsoid-Point ::= SEQUENCE { - latitudeSign ENUMERATED {north, south}, - degreesLatitude INTEGER (0..8388607), -- 23 bit field - degreesLongitude INTEGER (-8388608..8388607) -- 24 bit field -} - - -Ellipsoid-PointWithUncertaintyCircle ::= SEQUENCE { - latitudeSign ENUMERATED {north, south}, - degreesLatitude INTEGER (0..8388607), -- 23 bit field - degreesLongitude INTEGER (-8388608..8388607), -- 24 bit field - uncertainty INTEGER (0..127) -} - - -EllipsoidPointWithUncertaintyEllipse ::= SEQUENCE { - latitudeSign ENUMERATED {north, south}, - degreesLatitude INTEGER (0..8388607), -- 23 bit field - degreesLongitude INTEGER (-8388608..8388607), -- 24 bit field - uncertaintySemiMajor INTEGER (0..127), - uncertaintySemiMinor INTEGER (0..127), - orientationMajorAxis INTEGER (0..179), - confidence INTEGER (0..100) -} - - -EllipsoidPointWithAltitude ::= SEQUENCE { - latitudeSign ENUMERATED {north, south}, - degreesLatitude INTEGER (0..8388607), -- 23 bit field - degreesLongitude INTEGER (-8388608..8388607), -- 24 bit field - altitudeDirection ENUMERATED {height, depth}, - altitude INTEGER (0..32767) -- 15 bit field -} - - -EllipsoidPointWithAltitudeAndUncertaintyEllipsoid ::= SEQUENCE { - latitudeSign ENUMERATED {north, south}, - degreesLatitude INTEGER (0..8388607), -- 23 bit field - degreesLongitude INTEGER (-8388608..8388607), -- 24 bit field - altitudeDirection ENUMERATED {height, depth}, - altitude INTEGER (0..32767), -- 15 bit field - uncertaintySemiMajor INTEGER (0..127), - uncertaintySemiMinor INTEGER (0..127), - orientationMajorAxis INTEGER (0..179), - uncertaintyAltitude INTEGER (0..127), - confidence INTEGER (0..100) -} - - -EllipsoidArc ::= SEQUENCE { - latitudeSign ENUMERATED {north, south}, - degreesLatitude INTEGER (0..8388607), -- 23 bit field - degreesLongitude INTEGER (-8388608..8388607), -- 24 bit field - innerRadius INTEGER (0..65535), -- 16 bit field, - uncertaintyRadius INTEGER (0..127), - offsetAngle INTEGER (0..179), - includedAngle INTEGER (0..179), - confidence INTEGER (0..100) -} - - -EPDU-Sequence ::= SEQUENCE (SIZE (1..maxEPDU)) OF EPDU - -maxEPDU INTEGER ::= 16 - -EPDU ::= SEQUENCE { - ePDU-Identifier EPDU-Identifier, - ePDU-Body EPDU-Body -} - -EPDU-Identifier ::= SEQUENCE { - ePDU-ID EPDU-ID, - ePDU-Name EPDU-Name OPTIONAL, - ... -} - -EPDU-ID ::= INTEGER (1..256) - -EPDU-Name ::= VisibleString (SIZE (1..32)) - -EPDU-Body ::= OCTET STRING - - -HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15 ::= SEQUENCE { - degreesLatitude-r15 INTEGER(-2147483648..2147483647), - degreesLongitude-r15 INTEGER(-2147483648..2147483647), - uncertaintySemiMajor-r15 INTEGER (0..255), - uncertaintySemiMinor-r15 INTEGER (0..255), - orientationMajorAxis-r15 INTEGER (0..179), - confidence-r15 INTEGER (0..100) -} - - -HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15 ::= SEQUENCE { - degreesLatitude-r15 INTEGER(-2147483648..2147483647), - degreesLongitude-r15 INTEGER(-2147483648..2147483647), - altitude-r15 INTEGER(-64000..1280000), - uncertaintySemiMajor-r15 INTEGER (0..255), - uncertaintySemiMinor-r15 INTEGER (0..255), - orientationMajorAxis-r15 INTEGER (0..179), - horizontalConfidence-r15 INTEGER (0..100), - uncertaintyAltitude-r15 INTEGER (0..255), - verticalConfidence-r15 INTEGER (0..100) -} - - -HorizontalVelocity ::= SEQUENCE { - bearing INTEGER(0..359), - horizontalSpeed INTEGER(0..2047) -} - - -HorizontalWithVerticalVelocity ::= SEQUENCE { - bearing INTEGER(0..359), - horizontalSpeed INTEGER(0..2047), - verticalDirection ENUMERATED{upward, downward}, - verticalSpeed INTEGER(0..255) -} - - -HorizontalVelocityWithUncertainty ::= SEQUENCE { - bearing INTEGER(0..359), - horizontalSpeed INTEGER(0..2047), - uncertaintySpeed INTEGER(0..255) -} - - -HorizontalWithVerticalVelocityAndUncertainty ::= SEQUENCE { - bearing INTEGER(0..359), - horizontalSpeed INTEGER(0..2047), - verticalDirection ENUMERATED{upward, downward}, - verticalSpeed INTEGER(0..255), - horizontalUncertaintySpeed INTEGER(0..255), - verticalUncertaintySpeed INTEGER(0..255) -} - - -LocationCoordinateTypes ::= SEQUENCE { - ellipsoidPoint BOOLEAN, - ellipsoidPointWithUncertaintyCircle BOOLEAN, - ellipsoidPointWithUncertaintyEllipse BOOLEAN, - polygon BOOLEAN, - ellipsoidPointWithAltitude BOOLEAN, - ellipsoidPointWithAltitudeAndUncertaintyEllipsoid BOOLEAN, - ellipsoidArc BOOLEAN, - ..., - [[ - highAccuracyEllipsoidPointWithUncertaintyEllipse-r15 BOOLEAN OPTIONAL, - highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15 BOOLEAN OPTIONAL - ]] -} - - -NCGI-r15 ::= SEQUENCE { - mcc-r15 SEQUENCE (SIZE (3)) OF INTEGER (0..9), - mnc-r15 SEQUENCE (SIZE (2..3)) OF INTEGER (0..9), - nr-cellidentity-r15 BIT STRING (SIZE (36)) -} - -NR-PhysCellId-r16 ::= SEQUENCE { - physCellId-r16 INTEGER(0..1007) -} - -PeriodicAssistanceDataControlParameters-r15 ::= SEQUENCE { - periodicSessionID-r15 PeriodicSessionID-r15, - ..., - [[ - updateCapabilities-r15 UpdateCapabilities-r15 OPTIONAL - ]] -} - -PeriodicSessionID-r15 ::= SEQUENCE { - periodicSessionInitiator-r15 ENUMERATED { locationServer, targetDevice, ... }, - periodicSessionNumber-r15 INTEGER (0..255), - ... -} - -UpdateCapabilities-r15 ::= BIT STRING {primaryCellID-r15 (0)} (SIZE(1..8)) - - -Polygon ::= SEQUENCE (SIZE (3..15)) OF PolygonPoints - -PolygonPoints ::= SEQUENCE { - latitudeSign ENUMERATED {north, south}, - degreesLatitude INTEGER (0..8388607), -- 23 bit field - degreesLongitude INTEGER (-8388608..8388607) -- 24 bit field -} - - -PositioningModes ::= SEQUENCE { - posModes BIT STRING { standalone (0), - ue-based (1), - ue-assisted (2) - } (SIZE (1..8)), - ... -} - - -SegmentationInfo-r14 ::= ENUMERATED { noMoreMessages, moreMessagesOnTheWay } - - -VelocityTypes ::= SEQUENCE { - horizontalVelocity BOOLEAN, - horizontalWithVerticalVelocity BOOLEAN, - horizontalVelocityWithUncertainty BOOLEAN, - horizontalWithVerticalVelocityAndUncertainty BOOLEAN, - ... -} - - -CommonIEsRequestCapabilities ::= SEQUENCE { - ..., - [[ - lpp-message-segmentation-req-r14 BIT STRING { serverToTarget (0), - targetToServer (1) } OPTIONAL -- Need ON - ]] -} - - -CommonIEsProvideCapabilities ::= SEQUENCE { - ..., - [[ - segmentationInfo-r14 SegmentationInfo-r14 OPTIONAL, -- Cond Segmentation - lpp-message-segmentation-r14 BIT STRING { serverToTarget (0), - targetToServer (1) } OPTIONAL - ]] -} - - -CommonIEsRequestAssistanceData ::= SEQUENCE { - primaryCellID ECGI OPTIONAL, -- Cond EUTRA - ..., - [[ - segmentationInfo-r14 SegmentationInfo-r14 OPTIONAL -- Cond Segmentation - ]], - [[ - periodicAssistanceDataReq-r15 - PeriodicAssistanceDataControlParameters-r15 - OPTIONAL, -- Cond PerADreq - primaryCellID-r15 NCGI-r15 OPTIONAL -- Cond NR - ]] -} - - -CommonIEsProvideAssistanceData ::= SEQUENCE { - ..., - [[ - segmentationInfo-r14 SegmentationInfo-r14 OPTIONAL -- Need ON - ]], - [[ - periodicAssistanceData-r15 PeriodicAssistanceDataControlParameters-r15 - OPTIONAL -- Cond PerAD - ]] -} - - -CommonIEsRequestLocationInformation ::= SEQUENCE { - locationInformationType LocationInformationType, - triggeredReporting TriggeredReportingCriteria OPTIONAL, -- Cond ECID - periodicalReporting PeriodicalReportingCriteria OPTIONAL, -- Need ON - additionalInformation AdditionalInformation OPTIONAL, -- Need ON - qos QoS OPTIONAL, -- Need ON - environment Environment OPTIONAL, -- Need ON - locationCoordinateTypes LocationCoordinateTypes OPTIONAL, -- Need ON - velocityTypes VelocityTypes OPTIONAL, -- Need ON - ..., - [[ - messageSizeLimitNB-r14 MessageSizeLimitNB-r14 OPTIONAL -- Need ON - ]], - [[ - segmentationInfo-r14 SegmentationInfo-r14 OPTIONAL -- Need ON - ]] -} - -LocationInformationType ::= ENUMERATED { - locationEstimateRequired, - locationMeasurementsRequired, - locationEstimatePreferred, - locationMeasurementsPreferred, - ... -} - -PeriodicalReportingCriteria ::= SEQUENCE { - reportingAmount ENUMERATED { - ra1, ra2, ra4, ra8, ra16, ra32, - ra64, ra-Infinity - } DEFAULT ra-Infinity, - reportingInterval ENUMERATED { - noPeriodicalReporting, ri0-25, - ri0-5, ri1, ri2, ri4, ri8, ri16, ri32, ri64 - } -} - -TriggeredReportingCriteria ::= SEQUENCE { - cellChange BOOLEAN, - reportingDuration ReportingDuration, - ... -} - -ReportingDuration ::= INTEGER (0..255) - -AdditionalInformation ::= ENUMERATED { - onlyReturnInformationRequested, - mayReturnAditionalInformation, - ... -} - -QoS ::= SEQUENCE { - horizontalAccuracy HorizontalAccuracy OPTIONAL, -- Need ON - verticalCoordinateRequest BOOLEAN, - verticalAccuracy VerticalAccuracy OPTIONAL, -- Need ON - responseTime ResponseTime OPTIONAL, -- Need ON - velocityRequest BOOLEAN, - ..., - [[ responseTimeNB-r14 ResponseTimeNB-r14 OPTIONAL -- Need ON - ]], - [[ horizontalAccuracyExt-r15 HorizontalAccuracyExt-r15 OPTIONAL, -- Need ON - verticalAccuracyExt-r15 VerticalAccuracyExt-r15 OPTIONAL -- Need ON - ]] -} - -HorizontalAccuracy ::= SEQUENCE { - accuracy INTEGER(0..127), - confidence INTEGER(0..100), - ... -} - -VerticalAccuracy ::= SEQUENCE { - accuracy INTEGER(0..127), - confidence INTEGER(0..100), - ... -} - -HorizontalAccuracyExt-r15 ::= SEQUENCE { - accuracyExt-r15 INTEGER(0..255), - confidence-r15 INTEGER(0..100), - ... -} - -VerticalAccuracyExt-r15 ::= SEQUENCE { - accuracyExt-r15 INTEGER(0..255), - confidence-r15 INTEGER(0..100), - ... -} - -ResponseTime ::= SEQUENCE { - time INTEGER (1..128), - ..., - [[ responseTimeEarlyFix-r12 INTEGER (1..128) OPTIONAL -- Need ON - ]], - [[ unit-r15 ENUMERATED { ten-seconds, ... } OPTIONAL -- Need ON - ]] -} - -ResponseTimeNB-r14 ::= SEQUENCE { - timeNB-r14 INTEGER (1..512), - responseTimeEarlyFixNB-r14 INTEGER (1..512) OPTIONAL, -- Need ON - ..., - [[ unitNB-r15 ENUMERATED { ten-seconds, ... } OPTIONAL -- Need ON - ]] -} - -Environment ::= ENUMERATED { - badArea, - notBadArea, - mixedArea, - ... -} - -MessageSizeLimitNB-r14 ::= SEQUENCE { - measurementLimit-r14 INTEGER (1..512) OPTIONAL, -- Need ON - ... -} - - -CommonIEsProvideLocationInformation ::= SEQUENCE { - locationEstimate LocationCoordinates OPTIONAL, - velocityEstimate Velocity OPTIONAL, - locationError LocationError OPTIONAL, - ..., - [[ earlyFixReport-r12 EarlyFixReport-r12 OPTIONAL - ]], - [[ locationSource-r13 LocationSource-r13 OPTIONAL, - locationTimestamp-r13 UTCTime OPTIONAL - ]], - [[ - segmentationInfo-r14 SegmentationInfo-r14 OPTIONAL -- Cond Segmentation - ]] -} - -LocationCoordinates ::= CHOICE { - ellipsoidPoint Ellipsoid-Point, - ellipsoidPointWithUncertaintyCircle Ellipsoid-PointWithUncertaintyCircle, - ellipsoidPointWithUncertaintyEllipse EllipsoidPointWithUncertaintyEllipse, - polygon Polygon, - ellipsoidPointWithAltitude EllipsoidPointWithAltitude, - ellipsoidPointWithAltitudeAndUncertaintyEllipsoid - EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, - ellipsoidArc EllipsoidArc, - ..., - highAccuracyEllipsoidPointWithUncertaintyEllipse-v1510 - HighAccuracyEllipsoidPointWithUncertaintyEllipse-r15, - highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-v1510 - HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15 -} - -Velocity ::= CHOICE { - horizontalVelocity HorizontalVelocity, - horizontalWithVerticalVelocity HorizontalWithVerticalVelocity, - horizontalVelocityWithUncertainty HorizontalVelocityWithUncertainty, - horizontalWithVerticalVelocityAndUncertainty - HorizontalWithVerticalVelocityAndUncertainty, - ... -} - -LocationError ::= SEQUENCE { - locationfailurecause LocationFailureCause, - ... -} - -LocationFailureCause ::= ENUMERATED { - undefined, - requestedMethodNotSupported, - positionMethodFailure, - periodicLocationMeasurementsNotAvailable, - ... -} - -EarlyFixReport-r12 ::= ENUMERATED { - noMoreMessages, - moreMessagesOnTheWay -} - -LocationSource-r13 ::= BIT STRING { a-gnss (0), - wlan (1), - bt (2), - tbs (3), - sensor (4), - ha-gnss-v1510 (5), - motion-sensor-v1550 (6) } (SIZE(1..16)) - - -CommonIEsAbort ::= SEQUENCE { - abortCause ENUMERATED { - undefined, - stopPeriodicReporting, - targetDeviceAbort, - networkAbort, - ..., - stopPeriodicAssistanceDataDelivery-v1510 - } -} - - -CommonIEsError ::= SEQUENCE { - errorCause ENUMERATED { - undefined, - lppMessageHeaderError, - lppMessageBodyError, - epduError, - incorrectDataValue, - ..., - lppSegmentationError-v1450 - } -} - - -NR-AdditionalPath-r16 ::= SEQUENCE { - nr-relativeTimeDifference-r16 INTEGER (xFFS),--FFS to be decided in RAN4 - nr-path-Quality-r16 OTDOA-MeasQuality OPTIONAL, - ... -} - - -NR-DL-PRS-Config-r16 ::= SEQUENCE { - - nr-DL-PRS-ResourceSetList-r16 SEQUENCE (SIZE (1..nrMaxSetsPerTrp)) OF NR-DL-PRS-ResourceSet-r16, - nr-DL-PRS-SFN0-Offset-r16 SEQUENCE { - sfn-Offset-r16 INTEGER (0..1023), - integerSubframeOffset-r16 INTEGER (0..9) OPTIONAL -- Need OP - } OPTIONAL, - ... -} - -NR-DL-PRS-ResourceSet-r16 ::= SEQUENCE { - nr-DL-PRS-ResourceSetID-r16 NR-DL-PRS-ResourceSetID-r16, - dl-PRS-Periodicity-and-ResourceSetSlotOffset-r16-r16 NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16, - - dl-PRS-ResourceRepetitionFactor-r16 ENUMERATED {n1, n2, n4, n6, n8, n16, n32, ...}, - dl-PRS-ResourceTimeGap-r16 ENUMERATED {s1, s2, s4, s8, s16, s32, ...}, - dl-PRS-ResourceList-r16 SEQUENCE (SIZE (1..nrMaxResourcesPerSet)) OF NR-DL-PRS-Resource-r16, - dl-PRS-NumSymbols-r16 ENUMERATED {n2, n4, n6, n12, ...}, - dl-PRS-MutingPatternList-r16 SEQUENCE { - mutingOption1-r16 SEQUENCE { - mutingPattern-r16 MutingPattern-r16, - dl-PRS-MutingBitRepetitionFactor-r16 ENUMERATED {n1, n2, n4, n8, ...} OPTIONAL --Need OR - }, - mutingOption2-r16 SEQUENCE { - mutingPattern-r16 MutingPattern-r16 - } - }, - dl-PRS-ResourcePower-r16 INTEGER (-60..50), - ... -} - -NR-DL-PRS-Resource-r16 ::= SEQUENCE { - nr-DL-PRS-ResourceID-r16 NR-DL-PRS-ResourceID-r16, - dl-PRS-SequenceId-r16 INTEGER (0.. 4095), - dl-PRS-ReOffset-r16 CHOICE { - n2-r16 INTEGER (0..1), - n4-r16 INTEGER (0..3), - n6-r16 INTEGER (0..5), - n12-r16 INTEGER (0..11) - }, - dl-PRS-ResourceSlotOffset-r16 INTEGER (0..nrMaxResourceOffsetValue-1), - dl-PRS-ResourceSymbolOffset-r16 INTEGER (0..12), - dl-PRS-QCL-Info-r16 DL-PRS-QCL-Info-r16 OPTIONAL, - ... -} - -MutingPattern-r16 ::= CHOICE { - po2-r16 BIT STRING (SIZE(2)), - po4-r16 BIT STRING (SIZE(4)), - po6-r16 BIT STRING (SIZE(6)), - po8-r16 BIT STRING (SIZE(8)), - po16-r16 BIT STRING (SIZE(16)), - po32-r16 BIT STRING (SIZE(32)), - ... -} - -DL-PRS-QCL-Info-r16 ::= CHOICE { - ssb-r16 SEQUENCE { - pci-r16 NR-PhysCellId-r16, - ssb-Index-r16 INTEGER (0..63), - rs-Type-r16 ENUMERATED {typeC, typeD, typeC-plus-typeD} - }, - dl-PRS-r16 SEQUENCE { - qcl-dl-PRS-ResourceId-r16 NR-DL-PRS-ResourceID-r16, - qcl-dl-PRS-ResourceSetId-r16 NR-DL-PRS-ResourceSetID-r16 - } -} - -NR-DL-PRS-Periodicity-and-ResourceSetSlotOffset-r16 ::= CHOICE { - scs15-r16 CHOICE { - n4-r16 INTEGER (0..3), - n5-r16 INTEGER (0..4), - n8-r16 INTEGER (0..7), - n10-r16 INTEGER (0..9), - n16-r16 INTEGER (0..15), - n20-r16 INTEGER (0..19), - n32-r16 INTEGER (0..31), - n40-r16 INTEGER (0..39), - n64-r16 INTEGER (0..63), - n80-r16 INTEGER (0..79), - n160-r16 INTEGER (0..159), - n320-r16 INTEGER (0..319), - n640-r16 INTEGER (0..639), - n1280-r16 INTEGER (0..1279), - n2560-r16 INTEGER (0..2559), - n5120-r16 INTEGER (0..5119), - n10240-r16 INTEGER (0..10239), - ...}, - scs30-r16 CHOICE { - n8-r16 INTEGER (0..7), - n10-r16 INTEGER (0..9), - n16-r16 INTEGER (0..15), - n20-r16 INTEGER (0..19), - n32-r16 INTEGER (0..31), - n40-r16 INTEGER (0..39), - n64-r16 INTEGER (0..63), - n80-r16 INTEGER (0..79), - n128-r16 INTEGER (0..127), - n160-r16 INTEGER (0..159), - n320-r16 INTEGER (0..319), - n640-r16 INTEGER (0..639), - n1280-r16 INTEGER (0..1279), - n2560-r16 INTEGER (0..2559), - n5120-r16 INTEGER (0..5119), - n10240-r16 INTEGER (0..10239), - n20480-r16 INTEGER (0..20479), - ...}, - scs60-r16 CHOICE { - n16-r16 INTEGER (0..15), - n20-r16 INTEGER (0..19), - n32-r16 INTEGER (0..31), - n40-r16 INTEGER (0..39), - n64-r16 INTEGER (0..63), - n80-r16 INTEGER (0..79), - n128-r16 INTEGER (0..127), - n160-r16 INTEGER (0..159), - n256-r16 INTEGER (0..255), - n320-r16 INTEGER (0..319), - n640-r16 INTEGER (0..639), - n1280-r16 INTEGER (0..1279), - n2560-r16 INTEGER (0..2559), - n5120-r16 INTEGER (0..5119), - n10240-r16 INTEGER (0..10239), - n20480-r16 INTEGER (0..20479), - n40960-r16 INTEGER (0..40959), - ...}, - scs120-r16 CHOICE { - n32-r16 INTEGER (0..31), - n40-r16 INTEGER (0..39), - n64-r16 INTEGER (0..63), - n80-r16 INTEGER (0..79), - n128-r16 INTEGER (0..127), - n160-r16 INTEGER (0..159), - n256-r16 INTEGER (0..255), - n320-r16 INTEGER (0..319), - n512-r16 INTEGER (0..511), - n640-r16 INTEGER (0..639), - n1280-r16 INTEGER (0..1279), - n2560-r16 INTEGER (0..2559), - n5120-r16 INTEGER (0..5119), - n10240-r16 INTEGER (0..10239), - n20480-r16 INTEGER (0..20479), - n40960-r16 INTEGER (0..40959), - n81920-r16 INTEGER (0..81919), - ...}, - ... -} - -NR-DL-PRS-ResourceID-r16 ::= INTEGER (0.. nrMaxNumDL-PRS-ResourcesPerSet-1) - -NR-DL-PRS-ResourceSetID-r16 ::= INTEGER (0.. nrMaxNumDL-PRS-ResourceSetsPerTRP-1) - -nrMaxNumDL-PRS-ResourcesPerSet-1 INTEGER ::= 63 - -nrMaxNumDL-PRS-ResourceSetsPerTRP-1 INTEGER ::= 7 - -nrMaxResourceOffsetValue-1 INTEGER ::= 511 -nrMaxResourcesPerSet INTEGER ::= 64 -- Maximum resources can be configured for one set -nrMaxSetsPerTrp INTEGER ::= 2 -- Maximum resources set can be configured for one TRP - - -TRP-ID-r16 ::= SEQUENCE { - dl-PRS-ID-r16 INTEGER (0..255) OPTIONAL, - nr-PhysCellId-r16 NR-PhysCellId-r16 OPTIONAL, - nr-CellGlobalId-r16 NCGI-r15 OPTIONAL, -- Need ON - nrARFCNRef-r16 ARFCN-ValueNR-r15 OPTIONAL -- Cond NotSameAsRefServ0 -} - -NR-SSB-Config-r16 ::= SEQUENCE { - trp-ID-r16 TRP-ID-r16, - ss-PBCH-BlockPower-r16 INTEGER (-60..50), - halfFrameIndex-r16 INTEGER (0..1), - ssb-Periodicity-r16 ENUMERATED { ms5, ms10, ms20, ms40, ms80, ms160, ...}, - ssb-PositionsInBurst-r16 CHOICE { - shortBitmap-r16 BIT STRING (SIZE (4)), - mediumBitmap-r16 BIT STRING (SIZE (8)), - longBitmap-r16 BIT STRING (SIZE (64)) - } OPTIONAL, --Need OR - ssbSubcarrierSpacing-r16 ENUMERATED {kHz15, kHz30, kHz60, kHz120, kHz240, ...}, - sfn-SSB-Offset-r16 INTEGER (0..15), - smtc-r16 SEQUENCE { - periodicityAndOffset-r16 CHOICE { - sf5 INTEGER (0..4), - sf10 INTEGER (0..9), - sf20 INTEGER (0..19), - sf40 INTEGER (0..39), - sf80 INTEGER (0..79), - sf160 INTEGER (0..159) - }, - duration-r16 ENUMERATED { sf1, sf2, sf3, sf4, sf5, ... } - } -} - -NR-SelectedDL-PRS-PerFreq-r16 ::= SEQUENCE { - nr-SelectedDL-PRS-FrequencyLayerIndex-r16 INTEGER (0..nrMaxFreqLayers-1), - nr-SelectedDL-PRS-IndexListPerFreq-r16 SEQUENCE (SIZE (1..nrMaxTRPsPerFreq)) OF NR-Selected-DL-PRS-IndexPerTRP-r16 OPTIONAL, --Need ON - ... -} - -NR-Selected-DL-PRS-IndexPerTRP-r16 ::= SEQUENCE { - nr-SelectedTRP-Index-r16 INTEGER (0..nrMaxTRPsPerFreq-1) , - dl-SelectedPRS-ResourceSetIndexList-r16 SEQUENCE (SIZE (1..nrMaxSetsPerTrp)) OF DL-Selected-PRS-ResourceSetIndex-r16 OPTIONAL, --Need ON - ... -} - -DL-Selected-PRS-ResourceSetIndex-r16 ::= SEQUENCE { - nr-DL-SelectedPRS-ResourceSetIndex-r16 INTEGER (0..nrMaxSetsPerTrp-1) , - dl-SelectedPRS-ResourceIndexList-r16 SEQUENCE (SIZE (1..nrMaxResourcesPerSet)) OF DL-SelectedPRS-ResourceIndex-r16 OPTIONAL --Need ON -} - -DL-SelectedPRS-ResourceIndex-r16 ::= SEQUENCE { - nr-dl-SelectedPRS-ResourceIdIndex-r16 INTEGER (0.. nrMaxNumDL-PRS-ResourcesPerSet-1), -... -} - -nrMaxFreqLayers INTEGER ::= 4 -- Max freq layers -nrMaxFreqLayers-1 INTEGER ::= 3 -nrMaxTRPsPerFreq INTEGER ::= 64 -- Max TRPs per freq layers -nrMaxTRPsPerFreq-1 INTEGER ::= 63 -nrMaxSetsPerTrp-1 INTEGER ::= 1 - - -NR-PositionCalculationAssistanceData-r16 ::= SEQUENCE { - nr-trp-LocationInfo-r16 NR-TRP-LocationInfo-r16 OPTIONAL, -- Need ON - nr-dl-prs-BeamInfo-r16 NR-DL-PRS-BeamInfo-r16 OPTIONAL, -- Need ON - nr-rtd-Info-r16 NR-RTD-Info-r16 OPTIONAL, -- Need ON - ... -} - -NR-TRP-LocationInfo-r16 ::= SEQUENCE (SIZE (1..4)) OF NR-TRP-LocationInfoPerFreqLayer-r16 - -NR-TRP-LocationInfoPerFreqLayer-r16 ::= SEQUENCE { - referencePoint-r16 ReferencePoint-r16 OPTIONAL, -- Cond NotSameAsPrev - trp-LocationInfoList-r16 SEQUENCE (SIZE (1..64)) OF TRP-LocationInfoElement-r16, - ... -} - -TRP-LocationInfoElement-r16 ::= SEQUENCE { - trp-id-r16 TRP-ID-r16, - trp-Location-r16 RelativeLocation-r16 OPTIONAL, -- Need OP - trp-DL-PRS-ResourceSets-r16 SEQUENCE (SIZE(1..2)) OF - DL-PRS-ResourceSets-TRP-Element-r16 OPTIONAL, -- Need OP - ... -} - -DL-PRS-ResourceSets-TRP-Element-r16 ::= SEQUENCE { - dl-PRS-ResourceSetARP-r16 RelativeLocation-r16 OPTIONAL, -- Need OP - dl-PRS-Resource-ARP-List-r16 SEQUENCE (SIZE(1..64)) OF - DL-PRS-Resource-ARP-Element-r16 OPTIONAL, -- Need OP - ... -} - -DL-PRS-Resource-ARP-Element-r16 ::= SEQUENCE { - dl-PRS-Resource-ARP-location-r16 RelativeLocation-r16 OPTIONAL, -- Need OP - ... -} - - -ReferencePoint-r16 ::= SEQUENCE { - referencePointGeographicLocation-r16 CHOICE { - location3D-r16 EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, - ha-location3D-r16 HighAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid-r15, - ... - }, - ... -} - - -RelativeLocation-r16 ::= SEQUENCE { - milli-arc-second-units-r16 ENUMERATED { mas0-03, mas0-3, mas3, mas30, ...}, - height-units-r16 ENUMERATED {mm, cm, m, ...}, - delta-latitude-r16 Delta-Latitude-r16, - delta-longitude-r16 Delta-Longitude-r16, - delta-height-r16 Delta-Height-r16, - locationUNC-r16 LocationUncertainty-r16 OPTIONAL, -- Need OP - ... -} - -Delta-Latitude-r16 ::= SEQUENCE { - delta-Latitude-r16 INTEGER (-1024..1023), - coarse-delta-Latitude-r16 INTEGER (0..4095) OPTIONAL, -- Need OP - ... -} - -Delta-Longitude-r16 ::= SEQUENCE { - delta-Longitude-r16 INTEGER (-1024..1023), - coarse-delta-Longitude-r16 INTEGER (0..4095) OPTIONAL, -- Need OP - ... -} - -Delta-Height-r16 ::= SEQUENCE { - delta-Height-r16 INTEGER (-1024..1023), - coarse-delta-Height-r16 INTEGER (0..4095) OPTIONAL, -- Need OP - ... -} - -LocationUncertainty-r16 ::= SEQUENCE { - horizontalUncertainty-r15 INTEGER (0..255), - horizontalConfidence-r15 INTEGER (0..100), - verticalUncertainty-r15 INTEGER (0..255), - verticalConfidence-r15 INTEGER (0..100) -} - - -NR-DL-PRS-BeamInfoPerFreqLayer-r16 ::= SEQUENCE (SIZE (1..64)) OF NR-DL-PRS-BeamInfo-r16 - -NR-DL-PRS-BeamInfo-r16 ::= SEQUENCE { - trp-id-r16 TRP-ID-r16, - lcs-gcs-translation-parameter-r16 LCS-GCS-Translation-Parameter-r16 OPTIONAL, -- Need OP - dl-prs-BeamInfoSet-r16 DL-PRS-BeamInfoSet-r16, - ... -} - -DL-PRS-BeamInfoSet-r16 ::= SEQUENCE (SIZE(1..2)) OF DL-PRS-BeamInfoResourceSet-r16 - -DL-PRS-BeamInfoResourceSet-r16 ::= SEQUENCE (SIZE(1..64)) OF DL-PRS-BeamInfoElement-r16 - -DL-PRS-BeamInfoElement-r16 ::= SEQUENCE { - dl-PRS-Azimuth-r16 INTEGER (0..3599), - dl-PRS-Elevation-r16 INTEGER (0..1800) OPTIONAL, -- Need ON - ... -} - -LCS-GCS-Translation-Parameter-r16 ::= SEQUENCE { - alpha-r16 INTEGER (0..3599), - beta-r16 INTEGER (0..3599), - gamma-r16 INTEGER (0..3599), - ... -} - - -NR-RTD-Info-r16 ::= SEQUENCE { - referenceTRP-RTD-Info-r16 ReferenceTRP-RTD-Info-r16, - rtd-InfoList-r16 RTD-InfoList-r16, - ... -} - -ReferenceTRP-RTD-Info-r16 ::= SEQUENCE { - ref-trp-id-r16 TRP-ID-r16, - refTime-r16 CHOICE { - systemFrameNumber-r16 BIT STRING (SIZE (10)), - utc-r16 UTCTime, - ... - }, - rtd-RefQuality-r16 NR-TimingMeasQuality-r16 OPTIONAL, -- Need ON - ... -} - -RTD-InfoList-r16 ::= SEQUENCE (SIZE (1..4)) OF RTD-InfoListPerFreqLayer-r16 - -RTD-InfoListPerFreqLayer-r16 ::= SEQUENCE (SIZE(1..63)) OF RTD-InfoElement-r16 - -RTD-InfoElement-r16 ::= SEQUENCE { - trp-id-r16 TRP-ID-r16, - subframeOffset-r16 INTEGER (0..1966079), - rtd-Quality-r16 NR-TimingMeasQuality-r16, - ... -} - - -NR-DL-PRS-AssistanceData-r16 ::= SEQUENCE { - nr-DL-PRS-ReferenceInfo-r16 DL-PRS-IdInfo-r16 OPTIONAL, -- Need ON - nr-DL-PRS-AssistanceDataList-r16 SEQUENCE (SIZE (1..nrMaxFreqLayers)) OF NR-DL-PRS-AssistanceDataPerFreq-r16, - nr-SSB-Config-r16 SEQUENCE (SIZE (0..255)) OF NR-SSB-Config-r16, - ... -} - -NR-DL-PRS-AssistanceDataPerFreq-r16 ::= SEQUENCE { - nr-DL-PRS-AssistanceDataPerFreq SEQUENCE (SIZE (1..nrMaxTRPsPerFreq)) OF NR-DL-PRS-AssistanceDataPerTRP-r16, - nr-DL-PRS-PositioningFrequencyLayer-r16 NR-DL-PRS-PositioningFrequencyLayer-r16 OPTIONAL, --Need ON - ... -} - -NR-DL-PRS-AssistanceDataPerTRP-r16 ::= SEQUENCE { - nr-DL-PRS-expectedRSTD-r16 INTEGER (-3841..3841), - nr-DL-PRS-expectedRSTD-uncerainty-r16 INTEGER (-246..246), - trp-ID-r16 TRP-ID-r16 OPTIONAL, - nr-DL-PRS-Config-r16 NR-DL-PRS-Config-r16, - ... -} - -NR-DL-PRS-PositioningFrequencyLayer-r16 ::= SEQUENCE { - dl-PRS-SubcarrierSpacing-r16 ENUMERATED {kHz15, kHz30, kHz60, kHz120, ...}, - dl-PRS-ResourceBandwidth-r16 INTEGER (1..63), - dl-PRS-StartPRB-r16 INTEGER(0..2176), - dl-PRS-PointA-r16 ARFCN-ValueNR-r15, - dl-PRS-CombSizeN-r16 ENUMERATED {n2, n4, n6, n12, ...}, - dl-PRS-CyclicPrefix-r16 ENUMERATED {normal, extended, ...}, - ... -} - -nrMaxResourceIDs INTEGER ::= 64 -- Max ResourceIDs - - -DL-PRS-IdInfo-r16 ::= SEQUENCE { - trp-ID-r16 TRP-ID-r16 OPTIONAL, - nr-DL-PRS-ResourceID-List-r16 SEQUENCE (SIZE (1..nrMaxResourceIDs)) OF NR-DL-PRS-ResourceID-r16 OPTIONAL, - nr-DL-PRS-ResourceSetID-r16 NR-DL-PRS-ResourceSetID-r16 OPTIONAL -} - - -NR-TimingMeasQuality-r16 ::= SEQUENCE { - timingMeasQualityValue-r16 INTEGER (0..31), - timingMeasQualityResolution-r16 ENUMERATED {mdot1, m1, m10, m30, ...}, - ... -} - - -NR-TimeStamp-r16 ::= SEQUENCE { - trp-ID-r16 TRP-ID-r16 OPTIONAL,-- Cond NotSameAsRefServ0 - nr-SFN-r16 INTEGER (0..1023), - nr-Slot-r16 CHOICE { - scs15 INTEGER (0..9), - scs30 INTEGER (0..19), - scs60 INTEGER (0..39), - scs120 INTEGER (0..79) - }, - ... -} - - -NR-DL-PRS-MeasCapability-r16 ::= SEQUENCE { - supportedBandListNR-r16 SEQUENCE (SIZE (1..nrMaxBands-r16)) OF SupportedBandNR-r16 OPTIONAL, --- not in RAN1 list - maxNumDL-PRS-Resources-r16 INTEGER, -- FFS on the definition - numDL-PRS-RSRPMeasurementsPerTRP-r16 INTEGER (1..xFFS), -- FFS 3? - numPositioningFrequencyLayers-r16 INTEGER (1..xFFS), -- FFS - numTrpPerPositioningFrequencyLayer-r16 INTEGER (1..xFFS), -- FFS - numDL-PRS-ResourceSetsPerTRP-r16 INTEGER (1..xFFS), -- FFS - numDL-PRS-ResourcesPerSet-r16 INTEGER (1..xFFS), -- FFS - totalNum-DL-PRS-Resources-r16 INTEGER (1..xFFS), -- FFS - ... -} - -SupportedBandNR-r16 ::= SEQUENCE { - freqBandIndicatorNR-r16 INTEGER (1..1024) -} - -nrMaxBands-r16 INTEGER ::= 1024 -- Maximum number of supported bands in UE capability. - - -NR-UL-SRS-MeasCapability-r16 ::= SEQUENCE { - --FFS -} - - -OTDOA-ProvideAssistanceData ::= SEQUENCE { - otdoa-ReferenceCellInfo OTDOA-ReferenceCellInfo OPTIONAL, -- Need ON - otdoa-NeighbourCellInfo OTDOA-NeighbourCellInfoList OPTIONAL, -- Need ON - otdoa-Error OTDOA-Error OPTIONAL, -- Need ON - ..., - [[ - otdoa-ReferenceCellInfoNB-r14 OTDOA-ReferenceCellInfoNB-r14 OPTIONAL, -- Need ON - otdoa-NeighbourCellInfoNB-r14 OTDOA-NeighbourCellInfoListNB-r14 OPTIONAL -- Need ON - ]] -} - - -OTDOA-ReferenceCellInfo ::= SEQUENCE { - physCellId INTEGER (0..503), - cellGlobalId ECGI OPTIONAL, -- Need ON - earfcnRef ARFCN-ValueEUTRA OPTIONAL, -- Cond NotSameAsServ0 - antennaPortConfig ENUMERATED {ports1-or-2, ports4, ... } - OPTIONAL, -- Cond NotSameAsServ1 - cpLength ENUMERATED { normal, extended, ... }, - prsInfo PRS-Info OPTIONAL, -- Cond PRS - ..., - [[ earfcnRef-v9a0 ARFCN-ValueEUTRA-v9a0 OPTIONAL -- Cond NotSameAsServ2 - ]], - [[ tpId-r14 INTEGER (0..4095) OPTIONAL, -- Need ON - cpLengthCRS-r14 ENUMERATED { normal, extended, ... } - OPTIONAL, -- Cond CRS - sameMBSFNconfigRef-r14 BOOLEAN OPTIONAL, -- Need ON - dlBandwidth-r14 ENUMERATED {n6, n15, n25, n50, n75, n100} - OPTIONAL, -- Cond NotSameAsServ3 - addPRSconfigRef-r14 SEQUENCE (SIZE (1..maxAddPRSconfig-r14)) OF PRS-Info - OPTIONAL -- Need ON - ]], - [[ - nr-LTE-SFN-Offset-r15 INTEGER (0..1023) OPTIONAL -- Cond NR - ]], - [[ - tdd-config-v1520 TDD-Config-v1520 OPTIONAL, -- Need ON - nr-LTE-fineTiming-Offset-r15 INTEGER (0..19) OPTIONAL -- Cond FineOffset - ]] -} - -maxAddPRSconfig-r14 INTEGER ::= 2 - - -PRS-Info ::= SEQUENCE { - prs-Bandwidth ENUMERATED { n6, n15, n25, n50, n75, n100, ... }, - prs-ConfigurationIndex INTEGER (0..4095), - numDL-Frames ENUMERATED {sf-1, sf-2, sf-4, sf-6, ..., sf-add-v1420}, - ..., - prs-MutingInfo-r9 CHOICE { - po2-r9 BIT STRING (SIZE(2)), - po4-r9 BIT STRING (SIZE(4)), - po8-r9 BIT STRING (SIZE(8)), - po16-r9 BIT STRING (SIZE(16)), - ..., - po32-v1420 BIT STRING (SIZE(32)), - po64-v1420 BIT STRING (SIZE(64)), - po128-v1420 BIT STRING (SIZE(128)), - po256-v1420 BIT STRING (SIZE(256)), - po512-v1420 BIT STRING (SIZE(512)), - po1024-v1420 BIT STRING (SIZE(1024)) - } OPTIONAL, -- Need OP - [[ prsID-r14 INTEGER (0..4095) OPTIONAL, -- Need ON - add-numDL-Frames-r14 INTEGER (1..160) OPTIONAL, -- Cond sf-add - prsOccGroupLen-r14 ENUMERATED {g2, g4, g8, g16, g32, g64, g128,... } - OPTIONAL, -- Cond Occ-Grp - prsHoppingInfo-r14 CHOICE { - nb2-r14 INTEGER (0.. maxAvailNarrowBands-Minus1-r14), - nb4-r14 SEQUENCE (SIZE (3)) - OF INTEGER (0.. maxAvailNarrowBands-Minus1-r14) - } OPTIONAL -- Cond PRS-FH - ]] -} - -maxAvailNarrowBands-Minus1-r14 INTEGER ::= 15 -- Maximum number of narrowbands minus 1 - - -TDD-Config-v1520 ::= SEQUENCE { - subframeAssignment-v1520 ENUMERATED { sa0, sa1, sa2, sa3, sa4, sa5, sa6 }, - ... -} - - -OTDOA-NeighbourCellInfoList ::= SEQUENCE (SIZE (1..maxFreqLayers)) OF OTDOA-NeighbourFreqInfo -OTDOA-NeighbourFreqInfo ::= SEQUENCE (SIZE (1..24)) OF OTDOA-NeighbourCellInfoElement - -OTDOA-NeighbourCellInfoElement ::= SEQUENCE { - physCellId INTEGER (0..503), - cellGlobalId ECGI OPTIONAL, -- Need ON - earfcn ARFCN-ValueEUTRA OPTIONAL, -- Cond NotSameAsRef0 - cpLength ENUMERATED {normal, extended, ...} - OPTIONAL, -- Cond NotSameAsRef1 - prsInfo PRS-Info OPTIONAL, -- Cond NotSameAsRef2 - antennaPortConfig ENUMERATED {ports-1-or-2, ports-4, ...} - OPTIONAL, -- Cond NotsameAsRef3 - slotNumberOffset INTEGER (0..19) OPTIONAL, -- Cond NotSameAsRef4 - prs-SubframeOffset INTEGER (0..1279) OPTIONAL, -- Cond InterFreq - expectedRSTD INTEGER (0..16383), - expectedRSTD-Uncertainty INTEGER (0..1023), - ..., - [[ earfcn-v9a0 ARFCN-ValueEUTRA-v9a0 OPTIONAL -- Cond NotSameAsRef5 - ]], - [[ tpId-r14 INTEGER (0..4095) OPTIONAL, -- Need ON - prs-only-tp-r14 ENUMERATED { true } OPTIONAL, -- Cond TBS - cpLengthCRS-r14 ENUMERATED { normal, extended, ... } - OPTIONAL, -- Cond CRS - sameMBSFNconfigNeighbour-r14 BOOLEAN OPTIONAL, -- Need ON - dlBandwidth-r14 ENUMERATED {n6, n15, n25, n50, n75, n100} - OPTIONAL, -- Cond NotSameAsRef6 - addPRSconfigNeighbour-r14 SEQUENCE (SIZE (1..maxAddPRSconfig-r14)) OF - Add-PRSconfigNeighbourElement-r14 - OPTIONAL -- Need ON - ]], - [[ - tdd-config-v1520 TDD-Config-v1520 OPTIONAL -- Need ON - ]] -} - -Add-PRSconfigNeighbourElement-r14 ::= SEQUENCE { - add-prsInfo-r14 PRS-Info OPTIONAL, -- Cond NotSameAsRef7 - ... -} - -maxFreqLayers INTEGER ::= 3 - - -OTDOA-ReferenceCellInfoNB-r14 ::= SEQUENCE { - physCellIdNB-r14 INTEGER (0..503) OPTIONAL, -- Cond NoPRS-AD1 - cellGlobalIdNB-r14 ECGI OPTIONAL, -- Cond NoPRS-AD2 - carrierFreqRef-r14 CarrierFreq-NB-r14 OPTIONAL, -- Cond NotSameAsServ1 - earfcn-r14 ARFCN-ValueEUTRA-r14 OPTIONAL, -- Cond Inband - eutra-NumCRS-Ports-r14 ENUMERATED {ports1-or-2, ports4} - OPTIONAL, -- Cond NoPRS-AD3 - otdoa-SIB1-NB-repetitions-r14 ENUMERATED { r4, r8, r16 } OPTIONAL, -- Cond NotSameAsServ2 - nprsInfo-r14 PRS-Info-NB-r14 OPTIONAL, -- Cond NPRS-Type1 - ..., - [[ - nprsInfo-Type2-v1470 PRS-Info-NB-r14 OPTIONAL -- Cond NPRS-Type2 - ]], - [[ tdd-config-r15 TDD-Config-v1520 OPTIONAL -- Need ON - ]] -} - - -PRS-Info-NB-r14 ::= SEQUENCE (SIZE (1..maxCarrier-r14)) OF NPRS-Info-r14 - -NPRS-Info-r14 ::= SEQUENCE { - operationModeInfoNPRS-r14 ENUMERATED { inband, standalone }, - nprs-carrier-r14 CarrierFreq-NB-r14 OPTIONAL, -- Cond Standalone/Guardband - nprsSequenceInfo-r14 INTEGER (0..174) OPTIONAL, -- Cond Inband - nprsID-r14 INTEGER (0..4095) OPTIONAL, -- Cond NPRS-ID - partA-r14 SEQUENCE { - nprsBitmap-r14 CHOICE { - subframePattern10-r14 BIT STRING (SIZE (10)), - subframePattern40-r14 BIT STRING (SIZE (40)) - }, - nprs-MutingInfoA-r14 CHOICE { - po2-r14 BIT STRING (SIZE(2)), - po4-r14 BIT STRING (SIZE(4)), - po8-r14 BIT STRING (SIZE(8)), - po16-r14 BIT STRING (SIZE(16)), - ... - } OPTIONAL, -- Cond MutingA - ... - } OPTIONAL, -- Cond PartA - partB-r14 SEQUENCE { - nprs-Period-r14 ENUMERATED { ms160, ms320, ms640, ms1280, ... , ms2560-v1510}, - nprs-startSF-r14 ENUMERATED { zero, one-eighth, two-eighths, three-eighths, - four-eighths, five-eighths, six-eighths, - seven-eighths, ...}, - nprs-NumSF-r14 ENUMERATED { sf10, sf20, sf40, sf80, sf160, sf320, - sf640, sf1280, ... , sf2560-v1510}, - nprs-MutingInfoB-r14 CHOICE { - po2-r14 BIT STRING (SIZE(2)), - po4-r14 BIT STRING (SIZE(4)), - po8-r14 BIT STRING (SIZE(8)), - po16-r14 BIT STRING (SIZE(16)), - ... - } OPTIONAL, -- Cond MutingB - ..., - [[ sib1-SF-TDD-r15 ENUMERATED {sf0, sf4, sf0and5} OPTIONAL -- Cond SIB1-TDD - ]] - } OPTIONAL, -- Cond PartB - ..., - [[ - partA-TDD-r15 SEQUENCE { - nprsBitmap-r15 CHOICE { - subframePattern10-TDD-r15 BIT STRING (SIZE (8)), - subframePattern40-TDD-r15 BIT STRING (SIZE (32)), - ... - }, - nprs-MutingInfoA-r15 CHOICE { - po2-r15 BIT STRING (SIZE(2)), - po4-r15 BIT STRING (SIZE(4)), - po8-r15 BIT STRING (SIZE(8)), - po16-r15 BIT STRING (SIZE(16)), - ... - } OPTIONAL, -- Cond MutingA - ... - } OPTIONAL -- Cond PartA-TDD - ]] -} - -maxCarrier-r14 INTEGER ::= 5 - - -OTDOA-NeighbourCellInfoListNB-r14 ::= SEQUENCE (SIZE (1..maxCells-r14)) OF - OTDOA-NeighbourCellInfoNB-r14 - -OTDOA-NeighbourCellInfoNB-r14 ::= SEQUENCE { - physCellIdNB-r14 INTEGER (0..503) OPTIONAL, -- Cond NoPRS-AD1 - cellGlobalIdNB-r14 ECGI OPTIONAL, -- Cond NoPRS-AD2 - carrierFreq-r14 CarrierFreq-NB-r14 OPTIONAL, -- Cond NotSameAsRef1 - earfcn-r14 ARFCN-ValueEUTRA-r14 OPTIONAL, -- Cond Inband - eutra-NumCRS-Ports-r14 ENUMERATED {ports-1-or-2, ports-4, ...} - OPTIONAL, -- Cond NotsameAsRef2 - otdoa-SIB1-NB-repetitions-r14 ENUMERATED { r4, r8, r16 } - OPTIONAL, -- Cond NotSameAsRef3 - nprsInfo-r14 PRS-Info-NB-r14 OPTIONAL, -- Cond NotsameAsRef4 - nprs-slotNumberOffset-r14 INTEGER (0..19) OPTIONAL, -- Cond NotsameAsRef5 - nprs-SFN-Offset-r14 INTEGER (0..63) OPTIONAL, -- Cond NotsameAsRef6 - nprs-SubframeOffset-r14 INTEGER (0..1279) OPTIONAL, -- Need OP - expectedRSTD-r14 INTEGER (0..16383) OPTIONAL, -- Cond NoPRS-AD3 - expectedRSTD-Uncertainty-r14 INTEGER (0..1023) OPTIONAL, -- Cond NoPRS-AD3 - prsNeighbourCellIndex-r14 INTEGER (1..72) OPTIONAL, -- Cond PRS-AD - ..., - [[ - nprsInfo-Type2-v1470 PRS-Info-NB-r14 OPTIONAL -- Cond NotSameAsRef4 - ]], - [[ tdd-config-r15 TDD-Config-v1520 OPTIONAL -- Need ON - ]] -} - -maxCells-r14 INTEGER ::= 72 - - -OTDOA-RequestAssistanceData ::= SEQUENCE { - physCellId INTEGER (0..503), - ..., - [[ - adType-r14 BIT STRING { prs (0), nprs (1) } (SIZE (1..8)) OPTIONAL - ]], - [[ - nrPhysCellId-r15 INTEGER (0..1007) OPTIONAL - ]] -} - - -OTDOA-ProvideLocationInformation ::= SEQUENCE { - otdoaSignalMeasurementInformation OTDOA-SignalMeasurementInformation OPTIONAL, - otdoa-Error OTDOA-Error OPTIONAL, - ..., - [[ - otdoaSignalMeasurementInformation-NB-r14 OTDOA-SignalMeasurementInformation-NB-r14 - OPTIONAL - ]] -} - - -OTDOA-SignalMeasurementInformation ::= SEQUENCE { - systemFrameNumber BIT STRING (SIZE (10)), - physCellIdRef INTEGER (0..503), - cellGlobalIdRef ECGI OPTIONAL, - earfcnRef ARFCN-ValueEUTRA OPTIONAL, -- Cond NotSameAsRef0 - referenceQuality OTDOA-MeasQuality OPTIONAL, - neighbourMeasurementList NeighbourMeasurementList, - ..., - [[ earfcnRef-v9a0 ARFCN-ValueEUTRA-v9a0 OPTIONAL -- Cond NotSameAsRef1 - ]], - [[ tpIdRef-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer0 - prsIdRef-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer1 - additionalPathsRef-r14 - AdditionalPathList-r14 OPTIONAL, - nprsIdRef-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer2 - carrierFreqOffsetNB-Ref-r14 - CarrierFreqOffsetNB-r14 OPTIONAL, -- Cond NB-IoT - hyperSFN-r14 BIT STRING (SIZE (10)) OPTIONAL -- Cond H-SFN - ]], - [[ - motionTimeSource-r15 MotionTimeSource-r15 OPTIONAL - ]] -} - -NeighbourMeasurementList ::= SEQUENCE (SIZE(1..24)) OF NeighbourMeasurementElement - -NeighbourMeasurementElement ::= SEQUENCE { - physCellIdNeighbour INTEGER (0..503), - cellGlobalIdNeighbour ECGI OPTIONAL, - earfcnNeighbour ARFCN-ValueEUTRA OPTIONAL, -- Cond NotSameAsRef2 - rstd INTEGER (0..12711), - rstd-Quality OTDOA-MeasQuality, - ..., - [[ earfcnNeighbour-v9a0 ARFCN-ValueEUTRA-v9a0 OPTIONAL -- Cond NotSameAsRef3 - ]], - [[ tpIdNeighbour-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer0 - prsIdNeighbour-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer1 - delta-rstd-r14 INTEGER (0..5) OPTIONAL, - additionalPathsNeighbour-r14 - AdditionalPathList-r14 OPTIONAL, - nprsIdNeighbour-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer2 - carrierFreqOffsetNB-Neighbour-r14 - CarrierFreqOffsetNB-r14 OPTIONAL -- Cond NB-IoT - ]], - [[ - delta-SFN-r15 INTEGER (-8192..8191) OPTIONAL - ]] -} - -AdditionalPathList-r14 ::= SEQUENCE (SIZE(1..maxPaths-r14)) OF AdditionalPath-r14 - -maxPaths-r14 INTEGER ::= 2 - -MotionTimeSource-r15 ::= SEQUENCE { - timeSource-r15 ENUMERATED {servingCell, referenceCell, gnss, mixed, - other, none, ...} -} - - -OTDOA-SignalMeasurementInformation-NB-r14 ::= SEQUENCE { - systemFrameNumber-r14 BIT STRING (SIZE (10)), - physCellIdRef-r14 INTEGER (0..503), - cellGlobalIdRef-r14 ECGI OPTIONAL, - earfcnRef-r14 ARFCN-ValueEUTRA-r14 OPTIONAL, -- Cond NotSameAsRef0 - referenceQuality-r14 OTDOA-MeasQuality OPTIONAL, - neighbourMeasurementList-r14 NeighbourMeasurementList-NB-r14, - tpIdRef-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer0 - prsIdRef-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer1 - additionalPathsRef-r14 AdditionalPathList-r14 OPTIONAL, - nprsIdRef-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer2 - carrierFreqOffsetNB-Ref-r14 CarrierFreqOffsetNB-r14 OPTIONAL, -- Cond NB-IoT - hyperSFN-r14 BIT STRING (SIZE (10)) OPTIONAL, -- Cond H-SFN - ... -} - -NeighbourMeasurementList-NB-r14 ::= SEQUENCE (SIZE(1..24)) OF NeighbourMeasurementElement-NB-r14 - -NeighbourMeasurementElement-NB-r14 ::= SEQUENCE { - physCellIdNeighbour-r14 INTEGER (0..503), - cellGlobalIdNeighbour-r14 ECGI OPTIONAL, - earfcnNeighbour-r14 ARFCN-ValueEUTRA-r14 OPTIONAL, -- Cond NotSameAsRef2 - rstd-r14 INTEGER (0..12711), - rstd-Quality-r14 OTDOA-MeasQuality, - tpIdNeighbour-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer0 - prsIdNeighbour-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer1 - delta-rstd-r14 INTEGER (0..5) OPTIONAL, - additionalPathsNeighbour-r14 - AdditionalPathList-r14 OPTIONAL, - nprsIdNeighbour-r14 INTEGER (0..4095) OPTIONAL, -- Cond ProvidedByServer2 - carrierFreqOffsetNB-Neighbour-r14 - CarrierFreqOffsetNB-r14 OPTIONAL, -- Cond NB-IoT - ... -} - - -OTDOA-MeasQuality ::= SEQUENCE { - error-Resolution BIT STRING (SIZE (2)), - error-Value BIT STRING (SIZE (5)), - error-NumSamples BIT STRING (SIZE (3)) OPTIONAL, - ... -} - - -AdditionalPath-r14 ::= SEQUENCE { - relativeTimeDifference-r14 INTEGER (-256..255), - path-Quality-r14 OTDOA-MeasQuality OPTIONAL, - ... -} - - -OTDOA-RequestLocationInformation ::= SEQUENCE { - assistanceAvailability BOOLEAN, - ..., - [[ - multipathRSTD-r14 ENUMERATED { requested } OPTIONAL, -- Need ON - maxNoOfRSTDmeas-r14 INTEGER (1..32) OPTIONAL -- Need ON - ]], - [[ - motionMeasurements-r15 ENUMERATED { requested } OPTIONAL -- Need ON - ]] -} - - -OTDOA-ProvideCapabilities ::= SEQUENCE { - otdoa-Mode BIT STRING { ue-assisted (0), - ue-assisted-NB-r14 (1), - ue-assisted-NB-TDD-r15 (2) } (SIZE (1..8)), - ..., - supportedBandListEUTRA SEQUENCE (SIZE (1..maxBands)) OF SupportedBandEUTRA OPTIONAL, - supportedBandListEUTRA-v9a0 SEQUENCE (SIZE (1..maxBands)) OF SupportedBandEUTRA-v9a0 - OPTIONAL, - interFreqRSTDmeasurement-r10 ENUMERATED { supported } OPTIONAL, - additionalNeighbourCellInfoList-r10 ENUMERATED { supported } OPTIONAL, - prs-id-r14 ENUMERATED { supported } OPTIONAL, - tp-separation-via-muting-r14 ENUMERATED { supported } OPTIONAL, - additional-prs-config-r14 ENUMERATED { supported } OPTIONAL, - prs-based-tbs-r14 ENUMERATED { supported } OPTIONAL, - additionalPathsReport-r14 ENUMERATED { supported } OPTIONAL, - densePrsConfig-r14 ENUMERATED { supported } OPTIONAL, - maxSupportedPrsBandwidth-r14 ENUMERATED { n6, n15, n25, n50, n75, n100, ...} OPTIONAL, - prsOccGroup-r14 ENUMERATED { supported } OPTIONAL, - prsFrequencyHopping-r14 ENUMERATED { supported } OPTIONAL, - maxSupportedPrsConfigs-r14 ENUMERATED { c2, c3 } OPTIONAL, - periodicalReporting-r14 ENUMERATED { supported } OPTIONAL, - multiPrbNprs-r14 ENUMERATED { supported } OPTIONAL, - idleStateForMeasurements-r14 ENUMERATED { required } OPTIONAL, - numberOfRXantennas-r14 ENUMERATED { rx1, ... } OPTIONAL, - motionMeasurements-r15 ENUMERATED { supported } OPTIONAL, - interRAT-RSTDmeasurement-r15 ENUMERATED { supported } OPTIONAL -} - -maxBands INTEGER ::= 64 - -SupportedBandEUTRA ::= SEQUENCE { - bandEUTRA INTEGER (1..maxFBI) -} - -SupportedBandEUTRA-v9a0 ::= SEQUENCE { - bandEUTRA-v9a0 INTEGER (maxFBI-Plus1..maxFBI2) OPTIONAL -} - -maxFBI INTEGER ::= 64 -- Maximum value of frequency band indicator -maxFBI-Plus1 INTEGER ::= 65 -- lowest value extended FBI range -maxFBI2 INTEGER ::= 256 -- highest value extended FBI range - - -OTDOA-RequestCapabilities ::= SEQUENCE { - ... -} - - -OTDOA-Error ::= CHOICE { - locationServerErrorCauses OTDOA-LocationServerErrorCauses, - targetDeviceErrorCauses OTDOA-TargetDeviceErrorCauses, - ... -} - - -OTDOA-LocationServerErrorCauses ::= SEQUENCE { - cause ENUMERATED { undefined, - assistanceDataNotSupportedByServer, - assistanceDataSupportedButCurrentlyNotAvailableByServer, - ... - }, - ... -} - - -OTDOA-TargetDeviceErrorCauses ::= SEQUENCE { - cause ENUMERATED { undefined, - assistance-data-missing, - unableToMeasureReferenceCell, - unableToMeasureAnyNeighbourCell, - attemptedButUnableToMeasureSomeNeighbourCells, - ... - }, - ... -} - - -A-GNSS-ProvideAssistanceData ::= SEQUENCE { - gnss-CommonAssistData GNSS-CommonAssistData OPTIONAL, -- Need ON - gnss-GenericAssistData GNSS-GenericAssistData OPTIONAL, -- Need ON - gnss-Error A-GNSS-Error OPTIONAL, -- Need ON - ..., - [[ - gnss-PeriodicAssistData-r15 GNSS-PeriodicAssistData-r15 OPTIONAL -- Cond CtrTrans - ]] -} - - -GNSS-CommonAssistData ::= SEQUENCE { - gnss-ReferenceTime GNSS-ReferenceTime OPTIONAL, -- Need ON - gnss-ReferenceLocation GNSS-ReferenceLocation OPTIONAL, -- Need ON - gnss-IonosphericModel GNSS-IonosphericModel OPTIONAL, -- Need ON - gnss-EarthOrientationParameters GNSS-EarthOrientationParameters OPTIONAL, -- Need ON - ..., - [[ - gnss-RTK-ReferenceStationInfo-r15 - GNSS-RTK-ReferenceStationInfo-r15 OPTIONAL, -- Need ON - gnss-RTK-CommonObservationInfo-r15 - GNSS-RTK-CommonObservationInfo-r15 OPTIONAL, -- Cond RTK - gnss-RTK-AuxiliaryStationData-r15 - GNSS-RTK-AuxiliaryStationData-r15 OPTIONAL -- Need ON - ]], - [[ - gnss-SSR-CorrectionPoints-r16 - GNSS-SSR-CorrectionPoints-r16 OPTIONAL -- Need ON - ]] -} - - -GNSS-GenericAssistData ::= SEQUENCE (SIZE (1..16)) OF GNSS-GenericAssistDataElement - -GNSS-GenericAssistDataElement ::= SEQUENCE { - gnss-ID GNSS-ID, - sbas-ID SBAS-ID OPTIONAL, -- Cond GNSS-ID-SBAS - gnss-TimeModels GNSS-TimeModelList OPTIONAL, -- Need ON - gnss-DifferentialCorrections GNSS-DifferentialCorrections OPTIONAL, -- Need ON - gnss-NavigationModel GNSS-NavigationModel OPTIONAL, -- Need ON - gnss-RealTimeIntegrity GNSS-RealTimeIntegrity OPTIONAL, -- Need ON - gnss-DataBitAssistance GNSS-DataBitAssistance OPTIONAL, -- Need ON - gnss-AcquisitionAssistance GNSS-AcquisitionAssistance OPTIONAL, -- Need ON - gnss-Almanac GNSS-Almanac OPTIONAL, -- Need ON - gnss-UTC-Model GNSS-UTC-Model OPTIONAL, -- Need ON - gnss-AuxiliaryInformation GNSS-AuxiliaryInformation OPTIONAL, -- Need ON - ..., - [[ - bds-DifferentialCorrections-r12 - BDS-DifferentialCorrections-r12 OPTIONAL, -- Cond GNSS-ID-BDS - bds-GridModel-r12 BDS-GridModelParameter-r12 OPTIONAL -- Cond GNSS-ID-BDS - ]], - [[ - gnss-RTK-Observations-r15 GNSS-RTK-Observations-r15 OPTIONAL, -- Need ON - glo-RTK-BiasInformation-r15 GLO-RTK-BiasInformation-r15 OPTIONAL, -- Cond GNSS-ID-GLO - gnss-RTK-MAC-CorrectionDifferences-r15 - GNSS-RTK-MAC-CorrectionDifferences-r15 - OPTIONAL, -- Need ON - gnss-RTK-Residuals-r15 GNSS-RTK-Residuals-r15 OPTIONAL, -- Need ON - gnss-RTK-FKP-Gradients-r15 GNSS-RTK-FKP-Gradients-r15 OPTIONAL, -- Need ON - gnss-SSR-OrbitCorrections-r15 - GNSS-SSR-OrbitCorrections-r15 OPTIONAL, -- Need ON - gnss-SSR-ClockCorrections-r15 - GNSS-SSR-ClockCorrections-r15 OPTIONAL, -- Need ON - gnss-SSR-CodeBias-r15 GNSS-SSR-CodeBias-r15 OPTIONAL -- Need ON - ]], - [[ - gnss-SSR-URA-r16 GNSS-SSR-URA-r16 OPTIONAL, -- Need ON - gnss-SSR-PhaseBias-r16 GNSS-SSR-PhaseBias-r16 OPTIONAL, -- Need ON - gnss-SSR-STEC-Correction-r16 GNSS-SSR-STEC-Correction-r16 OPTIONAL, -- Need ON - gnss-SSR-GriddedCorrection-r16 GNSS-SSR-GriddedCorrection-r16 OPTIONAL, -- Need ON - navic-DifferentialCorrections-r16 NavIC-DifferentialCorrections-r16 - OPTIONAL, -- Cond GNSS-ID-NavIC - navic-GridModel-r16 NavIC-GridModelParameter-r16 - OPTIONAL -- Cond GNSS-ID-NavIC - ]] -} - - -GNSS-PeriodicAssistData-r15 ::= SEQUENCE { - gnss-RTK-PeriodicObservations-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON - glo-RTK-PeriodicBiasInformation-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON - gnss-RTK-MAC-PeriodicCorrectionDifferences-r15 - GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON - gnss-RTK-PeriodicResiduals-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON - gnss-RTK-FKP-PeriodicGradients-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON - gnss-SSR-PeriodicOrbitCorrections-r15 - GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON - gnss-SSR-PeriodicClockCorrections-r15 - GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON - gnss-SSR-PeriodicCodeBias-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON - ..., - [[ - gnss-SSR-PeriodicURA-r16 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON - gnss-SSR-PeriodicPhaseBias-r16 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON - gnss-SSR-PeriodicSTEC-Correction-r16 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Need ON - gnss-SSR-PeriodicGriddedCorrection-r16 GNSS-PeriodicControlParam-r15 OPTIONAL -- Need ON - ]] -} - - -GNSS-ReferenceTime ::= SEQUENCE { - gnss-SystemTime GNSS-SystemTime, - referenceTimeUnc INTEGER (0..127) OPTIONAL, -- Cond noFTA - gnss-ReferenceTimeForCells SEQUENCE (SIZE (1..16)) OF - GNSS-ReferenceTimeForOneCell OPTIONAL, -- Need ON - ... -} - -GNSS-ReferenceTimeForOneCell ::= SEQUENCE { - networkTime NetworkTime, - referenceTimeUnc INTEGER (0..127), - bsAlign ENUMERATED {true} OPTIONAL, - ... -} - - -GNSS-SystemTime ::= SEQUENCE { - gnss-TimeID GNSS-ID, - gnss-DayNumber INTEGER (0..32767), - gnss-TimeOfDay INTEGER (0..86399), - gnss-TimeOfDayFrac-msec INTEGER (0..999) OPTIONAL, -- Need ON - notificationOfLeapSecond BIT STRING (SIZE(2)) OPTIONAL, -- Cond gnss-TimeID-glonass - gps-TOW-Assist GPS-TOW-Assist OPTIONAL, -- Cond gnss-TimeID-gps - ... -} - - -GPS-TOW-Assist ::= SEQUENCE (SIZE(1..64)) OF GPS-TOW-AssistElement - -GPS-TOW-AssistElement ::= SEQUENCE { - satelliteID INTEGER (1..64), - tlmWord INTEGER (0..16383), - antiSpoof INTEGER (0..1), - alert INTEGER (0..1), - tlmRsvdBits INTEGER (0..3), - ... -} - - -NetworkTime ::= SEQUENCE { - secondsFromFrameStructureStart INTEGER(0..12533), - fractionalSecondsFromFrameStructureStart INTEGER(0..3999999), - frameDrift INTEGER (-64..63) OPTIONAL, -- Cond GNSSsynch - cellID CHOICE { - eUTRA SEQUENCE { - physCellId INTEGER (0..503), - cellGlobalIdEUTRA CellGlobalIdEUTRA-AndUTRA OPTIONAL, -- Need ON - earfcn ARFCN-ValueEUTRA, - ..., - [[ earfcn-v9a0 ARFCN-ValueEUTRA-v9a0 OPTIONAL -- Cond EARFCN-max - ]] - }, - uTRA SEQUENCE { - mode CHOICE { - fdd SEQUENCE { - primary-CPICH-Info INTEGER (0..511), - ... - }, - tdd SEQUENCE { - cellParameters INTEGER (0..127), - ... - } - }, - cellGlobalIdUTRA CellGlobalIdEUTRA-AndUTRA OPTIONAL, -- Need ON - uarfcn ARFCN-ValueUTRA, - ... - }, - gSM SEQUENCE { - bcchCarrier INTEGER (0..1023), - bsic INTEGER (0..63), - cellGlobalIdGERAN CellGlobalIdGERAN OPTIONAL, -- Need ON - ... - }, - ..., - nBIoT-r14 SEQUENCE { - nbPhysCellId-r14 INTEGER (0..503), - nbCellGlobalId-r14 ECGI OPTIONAL, -- Need ON - nbCarrierFreq-r14 CarrierFreq-NB-r14, - ... - }, - nr-r15 SEQUENCE { - nrPhysCellId-r15 INTEGER (0..1007), - nrCellGlobalID-r15 NCGI-r15 OPTIONAL, -- Need ON - nrARFCN-r15 ARFCN-ValueNR-r15, - ... - } - }, - ... -} - - -GNSS-ReferenceLocation ::= SEQUENCE { - threeDlocation EllipsoidPointWithAltitudeAndUncertaintyEllipsoid, - ... -} - - -GNSS-IonosphericModel ::= SEQUENCE { - klobucharModel KlobucharModelParameter OPTIONAL, -- Need ON - neQuickModel NeQuickModelParameter OPTIONAL, -- Need ON - ..., - [[ klobucharModel2-r16 KlobucharModel2Parameter-r16 OPTIONAL -- Need ON - ]] - -} - - -KlobucharModelParameter ::= SEQUENCE { - dataID BIT STRING (SIZE (2)), - alfa0 INTEGER (-128..127), - alfa1 INTEGER (-128..127), - alfa2 INTEGER (-128..127), - alfa3 INTEGER (-128..127), - beta0 INTEGER (-128..127), - beta1 INTEGER (-128..127), - beta2 INTEGER (-128..127), - beta3 INTEGER (-128..127), - ... -} - - -KlobucharModel2Parameter-r16 ::= SEQUENCE { - alfa1-r16 INTEGER (0..1023), - alfa2-r16 INTEGER (-128..127), - alfa3-r16 INTEGER (0..255), - alfa4-r16 INTEGER (0..255), - alfa5-r16 INTEGER (0..255), - alfa6-r16 INTEGER (-128..127), - alfa7-r16 INTEGER (-128..127), - alfa8-r16 INTEGER (-128..127), - alfa9-r16 INTEGER (-128..127), - ... -} - - -NeQuickModelParameter ::= SEQUENCE { - ai0 INTEGER (0..2047), - ai1 INTEGER (-1024..1023), - ai2 INTEGER (-8192..8191), - ionoStormFlag1 INTEGER (0..1) OPTIONAL, -- Need OP - ionoStormFlag2 INTEGER (0..1) OPTIONAL, -- Need OP - ionoStormFlag3 INTEGER (0..1) OPTIONAL, -- Need OP - ionoStormFlag4 INTEGER (0..1) OPTIONAL, -- Need OP - ionoStormFlag5 INTEGER (0..1) OPTIONAL, -- Need OP - ... -} - - -GNSS-EarthOrientationParameters ::= SEQUENCE { - teop INTEGER (0..65535), - pmX INTEGER (-1048576..1048575), - pmXdot INTEGER (-16384..16383), - pmY INTEGER (-1048576..1048575), - pmYdot INTEGER (-16384..16383), - deltaUT1 INTEGER (-1073741824..1073741823), - deltaUT1dot INTEGER (-262144..262143), - ... -} - - -GNSS-RTK-ReferenceStationInfo-r15 ::= SEQUENCE { - referenceStationID-r15 GNSS-ReferenceStationID-r15, - referenceStationIndicator-r15 ENUMERATED {physical, non-physical}, - antenna-reference-point-ECEF-X-r15 INTEGER (-137438953472..137438953471), - antenna-reference-point-ECEF-Y-r15 INTEGER (-137438953472..137438953471), - antenna-reference-point-ECEF-Z-r15 INTEGER (-137438953472..137438953471), - antennaHeight-r15 INTEGER (0..65535) OPTIONAL, -- Need ON - antennaDescription-r15 AntennaDescription-r15 OPTIONAL, -- Need ON - antenna-reference-point-unc-r15 AntennaReferencePointUnc-r15 OPTIONAL, -- Need ON - physical-reference-station-info-r15 PhysicalReferenceStationInfo-r15 OPTIONAL, -- Cond NP - ..., - [[ - equalIntegerAmbiguityLevel-r16 EqualIntegerAmbiguityLevel-r16 OPTIONAL -- Need ON - ]] -} - -AntennaDescription-r15 ::= SEQUENCE { - antennaDescriptor-r15 VisibleString (SIZE (1..256)), - antennaSetUpID-r15 ENUMERATED { non-zero } OPTIONAL, -- Need OP - ... -} - -AntennaReferencePointUnc-r15 ::= SEQUENCE { - uncertainty-X-r15 INTEGER (0..255), - confidence-X-r15 INTEGER (0..100), - uncertainty-Y-r15 INTEGER (0..255), - confidence-Y-r15 INTEGER (0..100), - uncertainty-Z-r15 INTEGER (0..255), - confidence-Z-r15 INTEGER (0..100), - ... -} - -PhysicalReferenceStationInfo-r15 ::= SEQUENCE { - physicalReferenceStationID-r15 GNSS-ReferenceStationID-r15, - physical-ARP-ECEF-X-r15 INTEGER (-137438953472..137438953471), - physical-ARP-ECEF-Y-r15 INTEGER (-137438953472..137438953471), - physical-ARP-ECEF-Z-r15 INTEGER (-137438953472..137438953471), - physical-ARP-unc-r15 AntennaReferencePointUnc-r15 OPTIONAL, -- Need ON - ... -} - -EqualIntegerAmbiguityLevel-r16 ::= CHOICE { - allReferenceStations-r16 NULL, - referenceStationList-r16 ReferenceStationList-r16 -} - -ReferenceStationList-r16 ::= SEQUENCE (SIZE(1..16)) OF GNSS-ReferenceStationID-r15 - - -GNSS-RTK-CommonObservationInfo-r15 ::= SEQUENCE { - referenceStationID-r15 GNSS-ReferenceStationID-r15, - clockSteeringIndicator-r15 INTEGER (0..3), - externalClockIndicator-r15 INTEGER (0..3), - smoothingIndicator-r15 BIT STRING (SIZE(1)), - smoothingInterval-r15 BIT STRING (SIZE(3)), - ... -} - - -GNSS-RTK-AuxiliaryStationData-r15 ::= SEQUENCE { - networkID-r15 GNSS-NetworkID-r15, - subNetworkID-r15 GNSS-SubNetworkID-r15 OPTIONAL, -- Need ON - master-referenceStationID-r15 GNSS-ReferenceStationID-r15, - auxiliaryStationList-r15 AuxiliaryStationList-r15, - ... -} - -AuxiliaryStationList-r15 ::= SEQUENCE (SIZE (1..32)) OF AuxiliaryStationElement-r15 - -AuxiliaryStationElement-r15 ::= SEQUENCE { - aux-referenceStationID-r15 GNSS-ReferenceStationID-r15, - aux-master-delta-latitude-r15 INTEGER (-524288..524287), - aux-master-delta-longitude-r15 INTEGER (-1048576..1048575), - aux-master-delta-height-r15 INTEGER (-4194304..4194303), - aux-ARP-unc-r15 Aux-ARP-Unc-r15 OPTIONAL, -- Need ON - ... -} - -Aux-ARP-Unc-r15 ::= SEQUENCE { - horizontalUncertainty-r15 INTEGER (0..255), - horizontalConfidence-r15 INTEGER (0..100), - verticalUncertainty-r15 INTEGER (0..255) OPTIONAL, -- Need ON - verticalConfidence-r15 INTEGER (0..100) OPTIONAL, -- Need ON - ... -} - - -GNSS-SSR-CorrectionPoints-r16 ::= SEQUENCE { - correctionPointSetID-r16 INTEGER (0..16383), - correctionPoints-r16 CHOICE { - listOfCorrectionPoints-r16 GNSS-SSR-ListOfCorrectionPoints-r16, - arrayOfCorrectionPoints-r16 GNSS-SSR-ArrayOfCorrectionPoints-r16 - }, - ... -} - -GNSS-SSR-ListOfCorrectionPoints-r16 ::= SEQUENCE { - referencePointLatitude-r16 INTEGER (-16384..16383), - referencePointLongitude-r16 INTEGER (-32768..32767), - relativeLocationsList-r16 SEQUENCE (SIZE (0..63)) OF RelativeLocation, - ... -} - -RelativeLocation ::= SEQUENCE { - deltaLatitude-r16 INTEGER (-512..511), - deltaLongitude-r16 INTEGER (-1024..1023), - ... -} - -GNSS-SSR-ArrayOfCorrectionPoints-r16 ::=SEQUENCE { - referencePointLatitude-r16 INTEGER (-16384..16383), - referencePointLongitude-r16 INTEGER (-32768..32767), - numberOfStepsLatitude-r16 INTEGER (0..63), - numberOfStepsLongitude-r16 INTEGER (0..63), - stepOfLatitude-r16 INTEGER (1..511), - stepOfLongitude-r16 INTEGER (1..1023), - bitmaskOfGrids-r16 BIT STRING (SIZE(64)) OPTIONAL, -- Need OP - ... -} - - -GNSS-TimeModelList ::= SEQUENCE (SIZE (1..15)) OF GNSS-TimeModelElement - -GNSS-TimeModelElement ::= SEQUENCE { - gnss-TimeModelRefTime INTEGER (0..65535), - tA0 INTEGER (-67108864..67108863), - tA1 INTEGER (-4096..4095) OPTIONAL, -- Need ON - tA2 INTEGER (-64..63) OPTIONAL, -- Need ON - gnss-TO-ID INTEGER (1..15), - weekNumber INTEGER (0..8191) OPTIONAL, -- Need ON - deltaT INTEGER (-128..127) OPTIONAL, -- Need ON - ... -} - - -GNSS-DifferentialCorrections ::= SEQUENCE { - dgnss-RefTime INTEGER (0..3599), - dgnss-SgnTypeList DGNSS-SgnTypeList, - ... -} - -DGNSS-SgnTypeList ::= SEQUENCE (SIZE (1..3)) OF DGNSS-SgnTypeElement - -DGNSS-SgnTypeElement ::= SEQUENCE { - gnss-SignalID GNSS-SignalID, - gnss-StatusHealth INTEGER (0..7), - dgnss-SatList DGNSS-SatList, - ... -} - -DGNSS-SatList ::= SEQUENCE (SIZE (1..64)) OF DGNSS-CorrectionsElement - -DGNSS-CorrectionsElement ::= SEQUENCE { - svID SV-ID, - iod BIT STRING (SIZE(11)), - udre INTEGER (0..3), - pseudoRangeCor INTEGER (-2047..2047), - rangeRateCor INTEGER (-127..127), - udreGrowthRate INTEGER (0..7) OPTIONAL, -- Need ON - udreValidityTime INTEGER (0..7) OPTIONAL, -- Need ON - ... -} - - -GNSS-NavigationModel ::= SEQUENCE { - nonBroadcastIndFlag INTEGER (0..1), - gnss-SatelliteList GNSS-NavModelSatelliteList, - ... -} - -GNSS-NavModelSatelliteList ::= SEQUENCE (SIZE(1..64)) OF GNSS-NavModelSatelliteElement - -GNSS-NavModelSatelliteElement ::= SEQUENCE { - svID SV-ID, - svHealth BIT STRING (SIZE(8)), - iod BIT STRING (SIZE(11)), - gnss-ClockModel GNSS-ClockModel, - gnss-OrbitModel GNSS-OrbitModel, - ..., - [[ svHealthExt-v1240 BIT STRING (SIZE(4)) OPTIONAL -- Need ON - ]] -} - -GNSS-ClockModel ::= CHOICE { - standardClockModelList StandardClockModelList, -- Model-1 - nav-ClockModel NAV-ClockModel, -- Model-2 - cnav-ClockModel CNAV-ClockModel, -- Model-3 - glonass-ClockModel GLONASS-ClockModel, -- Model-4 - sbas-ClockModel SBAS-ClockModel, -- Model-5 - ..., - bds-ClockModel-r12 BDS-ClockModel-r12, -- Model-6 - bds-ClockModel2-r16 BDS-ClockModel2-r16, -- Model-7 - navic-ClockModel-r16 NavIC-ClockModel-r16 -- Model-8 -} - -GNSS-OrbitModel ::= CHOICE { - keplerianSet NavModelKeplerianSet, -- Model-1 - nav-KeplerianSet NavModelNAV-KeplerianSet, -- Model-2 - cnav-KeplerianSet NavModelCNAV-KeplerianSet, -- Model-3 - glonass-ECEF NavModel-GLONASS-ECEF, -- Model-4 - sbas-ECEF NavModel-SBAS-ECEF, -- Model-5 - ..., - bds-KeplerianSet-r12 NavModel-BDS-KeplerianSet-r12, -- Model-6 - bds-KeplerianSet2-r16 NavModel-BDS-KeplerianSet2-r16, -- Model-7 - navic-KeplerianSet-r16 NavModelKeplerianSet -- Model-8 (NavModel-Navic-KeplerianSet-r16) -} - - -StandardClockModelList ::= SEQUENCE (SIZE(1..2)) OF StandardClockModelElement - -StandardClockModelElement ::= SEQUENCE { - stanClockToc INTEGER (0..16383), - stanClockAF2 INTEGER (-32..31), - stanClockAF1 INTEGER (-1048576..1048575), - stanClockAF0 INTEGER (-1073741824..1073741823), - stanClockTgd INTEGER (-512..511) OPTIONAL, -- Need ON - sisa INTEGER (0..255), - stanModelID INTEGER (0..1) OPTIONAL, -- Need ON - ... -} - - -NAV-ClockModel ::= SEQUENCE { - navToc INTEGER (0..37799), - navaf2 INTEGER (-128..127), - navaf1 INTEGER (-32768..32767), - navaf0 INTEGER (-2097152..2097151), - navTgd INTEGER (-128..127), - ... -} - - -CNAV-ClockModel ::= SEQUENCE { - cnavToc INTEGER (0..2015), - cnavTop INTEGER (0..2015), - cnavURA0 INTEGER (-16..15), - cnavURA1 INTEGER (0..7), - cnavURA2 INTEGER (0..7), - cnavAf2 INTEGER (-512..511), - cnavAf1 INTEGER (-524288..524287), - cnavAf0 INTEGER (-33554432..33554431), - cnavTgd INTEGER (-4096..4095), - cnavISCl1cp INTEGER (-4096..4095) OPTIONAL, -- Need ON - cnavISCl1cd INTEGER (-4096..4095) OPTIONAL, -- Need ON - cnavISCl1ca INTEGER (-4096..4095) OPTIONAL, -- Need ON - cnavISCl2c INTEGER (-4096..4095) OPTIONAL, -- Need ON - cnavISCl5i5 INTEGER (-4096..4095) OPTIONAL, -- Need ON - cnavISCl5q5 INTEGER (-4096..4095) OPTIONAL, -- Need ON - ... -} - - -GLONASS-ClockModel ::= SEQUENCE { - gloTau INTEGER (-2097152..2097151), - gloGamma INTEGER (-1024..1023), - gloDeltaTau INTEGER (-16..15) OPTIONAL, -- Need ON - ... -} - - -SBAS-ClockModel ::= SEQUENCE { - sbasTo INTEGER (0..5399), - sbasAgfo INTEGER (-2048..2047), - sbasAgf1 INTEGER (-128..127), - ... -} - - -BDS-ClockModel-r12 ::= SEQUENCE { - bdsAODC-r12 INTEGER (0..31), - bdsToc-r12 INTEGER (0..131071), - bdsA0-r12 INTEGER (-8388608..8388607), - bdsA1-r12 INTEGER (-2097152..2097151), - bdsA2-r12 INTEGER (-1024..1023), - bdsTgd1-r12 INTEGER (-512..511), - ... -} - -BDS-ClockModel2-r16 ::= SEQUENCE { - bdsToc-r16 INTEGER (0..2047), - bdsA0-r16 INTEGER (-16777216..16777215), - bdsA1-r16 INTEGER (-2097152..2097151), - bdsA2-r16 INTEGER (-1024..1023), - bdsTgdB1Cp-r16 INTEGER (-2048..2047), - bdsIscB1Cd-r16 INTEGER (-2048..2047), - ... -} - - -NavIC-ClockModel-r16 ::= SEQUENCE { - navic-Toc-r16 INTEGER (0..65535), - navic-af2-r16 INTEGER (-128..127), - navic-af1-r16 INTEGER (-32768..32767), - navic-af0-r16 INTEGER (-2097152..2097151), - navic-Tgd-r16 INTEGER (-128..127), - ... -} - - -NavModelKeplerianSet ::= SEQUENCE { - keplerToe INTEGER (0 .. 16383), - keplerW INTEGER (-2147483648..2147483647), - keplerDeltaN INTEGER (-32768..32767), - keplerM0 INTEGER (-2147483648..2147483647), - keplerOmegaDot INTEGER (-8388608.. 8388607), - keplerE INTEGER (0..4294967295), - keplerIDot INTEGER (-8192..8191), - keplerAPowerHalf INTEGER (0.. 4294967295), - keplerI0 INTEGER (-2147483648..2147483647), - keplerOmega0 INTEGER (-2147483648..2147483647), - keplerCrs INTEGER (-32768..32767), - keplerCis INTEGER (-32768..32767), - keplerCus INTEGER (-32768..32767), - keplerCrc INTEGER (-32768..32767), - keplerCic INTEGER (-32768..32767), - keplerCuc INTEGER (-32768..32767), - ... -} - - -NavModelNAV-KeplerianSet ::= SEQUENCE { - navURA INTEGER (0..15), - navFitFlag INTEGER (0..1), - navToe INTEGER (0..37799), - navOmega INTEGER (-2147483648..2147483647), - navDeltaN INTEGER (-32768..32767), - navM0 INTEGER (-2147483648..2147483647), - navOmegaADot INTEGER (-8388608..8388607), - navE INTEGER (0..4294967295), - navIDot INTEGER (-8192..8191), - navAPowerHalf INTEGER (0..4294967295), - navI0 INTEGER (-2147483648..2147483647), - navOmegaA0 INTEGER (-2147483648..2147483647), - navCrs INTEGER (-32768..32767), - navCis INTEGER (-32768..32767), - navCus INTEGER (-32768..32767), - navCrc INTEGER (-32768..32767), - navCic INTEGER (-32768..32767), - navCuc INTEGER (-32768..32767), - addNAVparam SEQUENCE { - ephemCodeOnL2 INTEGER (0..3), - ephemL2Pflag INTEGER (0..1), - ephemSF1Rsvd SEQUENCE { - reserved1 INTEGER (0..8388607), -- 23-bit field - reserved2 INTEGER (0..16777215), -- 24-bit field - reserved3 INTEGER (0..16777215), -- 24-bit field - reserved4 INTEGER (0..65535) -- 16-bit field - }, - ephemAODA INTEGER (0..31) - } OPTIONAL, -- Need ON - ... -} - - -NavModelCNAV-KeplerianSet ::= SEQUENCE { - cnavTop INTEGER (0..2015), - cnavURAindex INTEGER (-16..15), - cnavDeltaA INTEGER (-33554432..33554431), - cnavAdot INTEGER (-16777216..16777215), - cnavDeltaNo INTEGER (-65536..65535), - cnavDeltaNoDot INTEGER (-4194304..4194303), - cnavMo INTEGER (-4294967296..4294967295), - cnavE INTEGER (0..8589934591), - cnavOmega INTEGER (-4294967296..4294967295), - cnavOMEGA0 INTEGER (-4294967296..4294967295), - cnavDeltaOmegaDot INTEGER (-65536..65535), - cnavIo INTEGER (-4294967296..4294967295), - cnavIoDot INTEGER (-16384..16383), - cnavCis INTEGER (-32768..32767), - cnavCic INTEGER (-32768..32767), - cnavCrs INTEGER (-8388608..8388607), - cnavCrc INTEGER (-8388608..8388607), - cnavCus INTEGER (-1048576..1048575), - cnavCuc INTEGER (-1048576..1048575), - ... -} - - -NavModel-GLONASS-ECEF ::= SEQUENCE { - gloEn INTEGER (0..31), - gloP1 BIT STRING (SIZE(2)), - gloP2 BOOLEAN, - gloM INTEGER (0..3), - gloX INTEGER (-67108864..67108863), - gloXdot INTEGER (-8388608..8388607), - gloXdotdot INTEGER (-16..15), - gloY INTEGER (-67108864..67108863), - gloYdot INTEGER (-8388608..8388607), - gloYdotdot INTEGER (-16..15), - gloZ INTEGER (-67108864..67108863), - gloZdot INTEGER (-8388608..8388607), - gloZdotdot INTEGER (-16..15), - ... -} - - -NavModel-SBAS-ECEF ::= SEQUENCE { - sbasTo INTEGER (0..5399) OPTIONAL, -- Cond ClockModel - sbasAccuracy BIT STRING (SIZE(4)), - sbasXg INTEGER (-536870912..536870911), - sbasYg INTEGER (-536870912..536870911), - sbasZg INTEGER (-16777216..16777215), - sbasXgDot INTEGER (-65536..65535), - sbasYgDot INTEGER (-65536..65535), - sbasZgDot INTEGER (-131072..131071), - sbasXgDotDot INTEGER (-512..511), - sbagYgDotDot INTEGER (-512..511), - sbasZgDotDot INTEGER (-512..511), - ... -} - - -NavModel-BDS-KeplerianSet-r12 ::= SEQUENCE { - bdsAODE-r12 INTEGER (0..31), - bdsURAI-r12 INTEGER (0..15), - bdsToe-r12 INTEGER (0..131071), - bdsAPowerHalf-r12 INTEGER (0..4294967295), - bdsE-r12 INTEGER (0..4294967295), - bdsW-r12 INTEGER (-2147483648..2147483647), - bdsDeltaN-r12 INTEGER (-32768..32767), - bdsM0-r12 INTEGER (-2147483648..2147483647), - bdsOmega0-r12 INTEGER (-2147483648..2147483647), - bdsOmegaDot-r12 INTEGER (-8388608..8388607), - bdsI0-r12 INTEGER (-2147483648..2147483647), - bdsIDot-r12 INTEGER (-8192..8191), - bdsCuc-r12 INTEGER (-131072..131071), - bdsCus-r12 INTEGER (-131072..131071), - bdsCrc-r12 INTEGER (-131072..131071), - bdsCrs-r12 INTEGER (-131072..131071), - bdsCic-r12 INTEGER (-131072..131071), - bdsCis-r12 INTEGER (-131072..131071), - ... -} - - -NavModel-BDS-KeplerianSet2-r16 ::= SEQUENCE { - bdsIODE-r16 INTEGER (0..255), - bdsToe-r16 INTEGER (0..2047), - bdsDeltaA-r16 INTEGER (-33554432..33554431), - bdsAdot-r16 INTEGER (-16777216..16777216), - bdsDeltaN0-r16 INTEGER (-65536..65535), - bdsDeltaN0dot-r16 INTEGER (-4194304..4194303), - bdsM0-r16 INTEGER (-4294967296..4294967295), - bdsE-r16 INTEGER (0..8589934591), - bdsOmega-r16 INTEGER (-4294967296..4294967295), - bdsOmega0-r16 INTEGER (-4294967296..4294967295), - bdsI0-r16 INTEGER (-4294967296..4294967295), - bdsOmegaDot-r16 INTEGER (-262144..262143), - bdsI0Dot-r16 INTEGER (-16384..16383), - bdsCuc-r16 INTEGER (-1048576..1048575), - bdsCus-r16 INTEGER (-1048576..1048575), - bdsCrc-r16 INTEGER (-8388608..8388607), - bdsCrs-r16 INTEGER (-8388608..8388607), - bdsCic-r16 INTEGER (-32768..32767), - bdsCis-r16 INTEGER (-32768..32767), - ... -} - - -GNSS-RealTimeIntegrity ::= SEQUENCE { - gnss-BadSignalList GNSS-BadSignalList, - ... -} - -GNSS-BadSignalList ::= SEQUENCE (SIZE(1..64)) OF BadSignalElement - -BadSignalElement ::= SEQUENCE { - badSVID SV-ID, - badSignalID GNSS-SignalIDs OPTIONAL, -- Need OP - ... -} - - -GNSS-DataBitAssistance ::= SEQUENCE { - gnss-TOD INTEGER (0..3599), - gnss-TODfrac INTEGER (0..999) OPTIONAL, -- Need ON - gnss-DataBitsSatList GNSS-DataBitsSatList, - ... -} - -GNSS-DataBitsSatList ::= SEQUENCE (SIZE(1..64))OF GNSS-DataBitsSatElement - -GNSS-DataBitsSatElement ::= SEQUENCE { - svID SV-ID, - gnss-DataBitsSgnList GNSS-DataBitsSgnList, - ... -} - -GNSS-DataBitsSgnList ::= SEQUENCE (SIZE(1..8)) OF GNSS-DataBitsSgnElement - -GNSS-DataBitsSgnElement ::= SEQUENCE { - gnss-SignalType GNSS-SignalID, - gnss-DataBits BIT STRING (SIZE (1..1024)), - ... -} - - -GNSS-AcquisitionAssistance ::= SEQUENCE { - gnss-SignalID GNSS-SignalID, - gnss-AcquisitionAssistList GNSS-AcquisitionAssistList, - ..., - confidence-r10 INTEGER (0..100) OPTIONAL -- Need ON -} - -GNSS-AcquisitionAssistList ::= SEQUENCE (SIZE(1..64)) OF GNSS-AcquisitionAssistElement - -GNSS-AcquisitionAssistElement ::= SEQUENCE { - svID SV-ID, - doppler0 INTEGER (-2048..2047), - doppler1 INTEGER (0..63), - dopplerUncertainty INTEGER (0..4), - codePhase INTEGER (0..1022), - intCodePhase INTEGER (0..127), - codePhaseSearchWindow INTEGER (0..31), - azimuth INTEGER (0..511), - elevation INTEGER (0..127), - ..., - codePhase1023 BOOLEAN OPTIONAL, -- Need OP - dopplerUncertaintyExt-r10 ENUMERATED { d60, - d80, - d100, - d120, - noInformation, ... } OPTIONAL -- Need ON -} - - -GNSS-Almanac ::= SEQUENCE { - weekNumber INTEGER (0..255) OPTIONAL, -- Need ON - toa INTEGER (0..255) OPTIONAL, -- Need ON - ioda INTEGER (0..3) OPTIONAL, -- Need ON - completeAlmanacProvided BOOLEAN, - gnss-AlmanacList GNSS-AlmanacList, - ..., - [[ toa-ext-v1240 INTEGER (256..1023) OPTIONAL, -- Need ON - ioda-ext-v1240 INTEGER (4..15) OPTIONAL -- Need ON - ]], - [[ - weekNumber-ext-r16 INTEGER (256..8191) OPTIONAL, -- Need ON - toa-ext2-r16 INTEGER (256..65535) OPTIONAL -- Need ON - ]] -} - -GNSS-AlmanacList ::= SEQUENCE (SIZE(1..64)) OF GNSS-AlmanacElement - -GNSS-AlmanacElement ::= CHOICE { - keplerianAlmanacSet AlmanacKeplerianSet, -- Model-1 - keplerianNAV-Almanac AlmanacNAV-KeplerianSet, -- Model-2 - keplerianReducedAlmanac AlmanacReducedKeplerianSet, -- Model-3 - keplerianMidiAlmanac AlmanacMidiAlmanacSet, -- Model-4 - keplerianGLONASS AlmanacGLONASS-AlmanacSet, -- Model-5 - ecef-SBAS-Almanac AlmanacECEF-SBAS-AlmanacSet,-- Model-6 - ..., - keplerianBDS-Almanac-r12 AlmanacBDS-AlmanacSet-r12, -- Model-7 - keplerianNavIC-Almanac-r16 AlmanacNavIC-AlmanacSet-r16 -- Model-8 -} - - -AlmanacKeplerianSet ::= SEQUENCE { - svID SV-ID, - kepAlmanacE INTEGER (0..2047), - kepAlmanacDeltaI INTEGER (-1024..1023), - kepAlmanacOmegaDot INTEGER (-1024..1023), - kepSV-StatusINAV BIT STRING (SIZE (4)), - kepSV-StatusFNAV BIT STRING (SIZE (2)) OPTIONAL, -- Need ON - kepAlmanacAPowerHalf INTEGER (-4096..4095), - kepAlmanacOmega0 INTEGER (-32768..32767), - kepAlmanacW INTEGER (-32768..32767), - kepAlmanacM0 INTEGER (-32768..32767), - kepAlmanacAF0 INTEGER (-32768..32767), - kepAlmanacAF1 INTEGER (-4096..4095), - ... -} - - -AlmanacNAV-KeplerianSet ::= SEQUENCE { - svID SV-ID, - navAlmE INTEGER (0..65535), - navAlmDeltaI INTEGER (-32768..32767), - navAlmOMEGADOT INTEGER (-32768..32767), - navAlmSVHealth INTEGER (0..255), - navAlmSqrtA INTEGER (0..16777215), - navAlmOMEGAo INTEGER (-8388608..8388607), - navAlmOmega INTEGER (-8388608..8388607), - navAlmMo INTEGER (-8388608..8388607), - navAlmaf0 INTEGER (-1024..1023), - navAlmaf1 INTEGER (-1024..1023), - ... -} - - -AlmanacReducedKeplerianSet ::= SEQUENCE { - svID SV-ID, - redAlmDeltaA INTEGER (-128..127), - redAlmOmega0 INTEGER (-64..63), - redAlmPhi0 INTEGER (-64..63), - redAlmL1Health BOOLEAN, - redAlmL2Health BOOLEAN, - redAlmL5Health BOOLEAN, - ... -} - - -AlmanacMidiAlmanacSet ::= SEQUENCE { - svID SV-ID, - midiAlmE INTEGER (0..2047), - midiAlmDeltaI INTEGER (-1024..1023), - midiAlmOmegaDot INTEGER (-1024..1023), - midiAlmSqrtA INTEGER (0..131071), - midiAlmOmega0 INTEGER (-32768..32767), - midiAlmOmega INTEGER (-32768..32767), - midiAlmMo INTEGER (-32768..32767), - midiAlmaf0 INTEGER (-1024..1023), - midiAlmaf1 INTEGER (-512..511), - midiAlmL1Health BOOLEAN, - midiAlmL2Health BOOLEAN, - midiAlmL5Health BOOLEAN, - ... -} - - -AlmanacGLONASS-AlmanacSet ::= SEQUENCE { - gloAlm-NA INTEGER (1..1461), - gloAlmnA INTEGER (1..24), - gloAlmHA INTEGER (0..31), - gloAlmLambdaA INTEGER (-1048576..1048575), - gloAlmtlambdaA INTEGER (0..2097151), - gloAlmDeltaIa INTEGER (-131072..131071), - gloAlmDeltaTA INTEGER (-2097152..2097151), - gloAlmDeltaTdotA INTEGER (-64..63), - gloAlmEpsilonA INTEGER (0..32767), - gloAlmOmegaA INTEGER (-32768..32767), - gloAlmTauA INTEGER (-512..511), - gloAlmCA INTEGER (0..1), - gloAlmMA BIT STRING (SIZE(2)) OPTIONAL, -- Need ON - ... -} - - -AlmanacECEF-SBAS-AlmanacSet ::= SEQUENCE { - sbasAlmDataID INTEGER (0..3), - svID SV-ID, - sbasAlmHealth BIT STRING (SIZE(8)), - sbasAlmXg INTEGER (-16384..16383), - sbasAlmYg INTEGER (-16384..16383), - sbasAlmZg INTEGER (-256..255), - sbasAlmXgdot INTEGER (-4..3), - sbasAlmYgDot INTEGER (-4..3), - sbasAlmZgDot INTEGER (-8..7), - sbasAlmTo INTEGER (0..2047), - ... -} - - -AlmanacBDS-AlmanacSet-r12 ::= SEQUENCE { - svID SV-ID, - bdsAlmToa-r12 INTEGER (0..255) OPTIONAL, -- Cond NotSameForAllSV - bdsAlmSqrtA-r12 INTEGER (0..16777215), - bdsAlmE-r12 INTEGER (0..131071), - bdsAlmW-r12 INTEGER (-8388608..8388607), - bdsAlmM0-r12 INTEGER (-8388608..8388607), - bdsAlmOmega0-r12 INTEGER (-8388608..8388607), - bdsAlmOmegaDot-r12 INTEGER (-65536..65535), - bdsAlmDeltaI-r12 INTEGER (-32768..32767), - bdsAlmA0-r12 INTEGER (-1024..1023), - bdsAlmA1-r12 INTEGER (-1024..1023), - bdsSvHealth-r12 BIT STRING (SIZE(9)) OPTIONAL, -- Cond SV-ID - ... -} - - -AlmanacNavIC-AlmanacSet-r16 ::= SEQUENCE { - svID-r16 SV-ID, - navic-AlmToa-r16 INTEGER (0..65535) OPTIONAL, -- Cond NotSameForAllSV - navic-AlmE-r16 INTEGER (0..65535), - navic-AlmOMEGADOT-r16 INTEGER (-32768..32767), - navic-AlmSqrtA-r16 INTEGER (0..16777215), - navic-AlmOMEGAo-r16 INTEGER (-8388608..8388607), - navic-AlmOmega-r16 INTEGER (-8388608..8388607), - navic-AlmMo-r16 INTEGER (-8388608..8388607), - navic-Almaf0-r16 INTEGER (-1024..1023), - navic-Almaf1-r16 INTEGER (-1024..1023), - ... -} - - -GNSS-UTC-Model ::= CHOICE { - utcModel1 UTC-ModelSet1, -- Model-1 - utcModel2 UTC-ModelSet2, -- Model-2 - utcModel3 UTC-ModelSet3, -- Model-3 - utcModel4 UTC-ModelSet4, -- Model-4 - ..., - utcModel5-r12 UTC-ModelSet5-r12 -- Model-5 -} - - -UTC-ModelSet1 ::= SEQUENCE { - gnss-Utc-A1 INTEGER (-8388608..8388607), - gnss-Utc-A0 INTEGER (-2147483648..2147483647), - gnss-Utc-Tot INTEGER (0..255), - gnss-Utc-WNt INTEGER (0..255), - gnss-Utc-DeltaTls INTEGER (-128..127), - gnss-Utc-WNlsf INTEGER (0..255), - gnss-Utc-DN INTEGER (-128..127), - gnss-Utc-DeltaTlsf INTEGER (-128..127), - ... -} - - -UTC-ModelSet2 ::= SEQUENCE { - utcA0 INTEGER (-32768..32767), - utcA1 INTEGER (-4096..4095), - utcA2 INTEGER (-64..63), - utcDeltaTls INTEGER (-128..127), - utcTot INTEGER (0..65535), - utcWNot INTEGER (0..8191), - utcWNlsf INTEGER (0..255), - utcDN BIT STRING (SIZE(4)), - utcDeltaTlsf INTEGER (-128..127), - ..., - [[ - utcWNlsf-ext-r16 INTEGER (256..8191) OPTIONAL -- Need ON - ]] -} - - -UTC-ModelSet3 ::= SEQUENCE { - nA INTEGER (1..1461), - tauC INTEGER (-2147483648..2147483647), - b1 INTEGER (-1024..1023) OPTIONAL, -- Cond GLONASS-M - b2 INTEGER (-512..511) OPTIONAL, -- Cond GLONASS-M - kp BIT STRING (SIZE(2)) OPTIONAL, -- Cond GLONASS-M - ... -} - - -UTC-ModelSet4 ::= SEQUENCE { - utcA1wnt INTEGER (-8388608..8388607), - utcA0wnt INTEGER (-2147483648..2147483647), - utcTot INTEGER (0..255), - utcWNt INTEGER (0..255), - utcDeltaTls INTEGER (-128..127), - utcWNlsf INTEGER (0..255), - utcDN INTEGER (-128..127), - utcDeltaTlsf INTEGER (-128..127), - utcStandardID INTEGER (0..7), - ... -} - - -UTC-ModelSet5-r12 ::= SEQUENCE { - utcA0-r12 INTEGER (-2147483648..2147483647), - utcA1-r12 INTEGER (-8388608..8388607), - utcDeltaTls-r12 INTEGER (-128..127), - utcWNlsf-r12 INTEGER (0..255), - utcDN-r12 INTEGER (0..255), - utcDeltaTlsf-r12 INTEGER (-128..127), - ... -} - - -GNSS-AuxiliaryInformation ::= CHOICE { - gnss-ID-GPS GNSS-ID-GPS, - gnss-ID-GLONASS GNSS-ID-GLONASS, - ..., - [[ gnss-ID-BDS-r16 GNSS-ID-BDS-r16 - ]] -} - -GNSS-ID-GPS ::= SEQUENCE (SIZE(1..64)) OF GNSS-ID-GPS-SatElement - -GNSS-ID-GPS-SatElement ::= SEQUENCE { - svID SV-ID, - signalsAvailable GNSS-SignalIDs, - ... -} - -GNSS-ID-GLONASS ::= SEQUENCE (SIZE(1..64)) OF GNSS-ID-GLONASS-SatElement - -GNSS-ID-GLONASS-SatElement ::= SEQUENCE { - svID SV-ID, - signalsAvailable GNSS-SignalIDs, - channelNumber INTEGER (-7..13) OPTIONAL, -- Cond FDMA - ... -} - -GNSS-ID-BDS-r16 ::= SEQUENCE (SIZE(1..64)) OF GNSS-ID-BDS-SatElement-r16 - -GNSS-ID-BDS-SatElement-r16 ::= SEQUENCE { - svID-r16 SV-ID, - satType-r16 INTEGER (0..3), - ... -} - - -BDS-DifferentialCorrections-r12 ::= SEQUENCE { - dbds-RefTime-r12 INTEGER (0..3599), - bds-SgnTypeList-r12 BDS-SgnTypeList-r12, - ... -} - -BDS-SgnTypeList-r12 ::= SEQUENCE (SIZE (1..3)) OF BDS-SgnTypeElement-r12 - -BDS-SgnTypeElement-r12 ::= SEQUENCE { - gnss-SignalID GNSS-SignalID OPTIONAL, -- Need ON - dbds-CorrectionList-r12 DBDS-CorrectionList-r12, - ... -} - -DBDS-CorrectionList-r12 ::= SEQUENCE (SIZE (1..64)) OF DBDS-CorrectionElement-r12 - -DBDS-CorrectionElement-r12 ::= SEQUENCE { - svID SV-ID, - bds-UDREI-r12 INTEGER (0..15), - bds-RURAI-r12 INTEGER (0..15), - bds-ECC-DeltaT-r12 INTEGER (-4096..4095), - ... -} - - -BDS-GridModelParameter-r12 ::= SEQUENCE { - bds-RefTime-r12 INTEGER (0..3599), - gridIonList-r12 GridIonList-r12, - ... -} - -GridIonList-r12 ::= SEQUENCE (SIZE (1..320)) OF GridIonElement-r12 - -GridIonElement-r12 ::= SEQUENCE { - igp-ID-r12 INTEGER (1..320), - dt-r12 INTEGER (0..511), - givei-r12 INTEGER (0..15) , - ... -} - - -GNSS-RTK-Observations-r15 ::= SEQUENCE { - epochTime-r15 GNSS-SystemTime, - gnss-ObservationList-r15 GNSS-ObservationList-r15, - ... -} - -GNSS-ObservationList-r15 ::= SEQUENCE (SIZE(1..64)) OF GNSS-RTK-SatelliteDataElement-r15 - -GNSS-RTK-SatelliteDataElement-r15 ::= SEQUENCE{ - svID-r15 SV-ID, - integer-ms-r15 INTEGER (0..254) OPTIONAL, -- Need ON - rough-range-r15 INTEGER (0..1023), - rough-phase-range-rate-r15 INTEGER (-8192..8191) OPTIONAL, -- Need ON - gnss-rtk-SatelliteSignalDataList-r15 GNSS-RTK-SatelliteSignalDataList-r15, - ... -} - -GNSS-RTK-SatelliteSignalDataList-r15 ::= SEQUENCE (SIZE(1..24)) OF - GNSS-RTK-SatelliteSignalDataElement-r15 - - -GNSS-RTK-SatelliteSignalDataElement-r15 ::= SEQUENCE { - gnss-SignalID-r15 GNSS-SignalID, - fine-PseudoRange-r15 INTEGER (-524288..524287), - fine-PhaseRange-r15 INTEGER (-8388608..8388607), - lockTimeIndicator-r15 INTEGER (0..1023), - halfCycleAmbiguityIndicator-r15 BIT STRING (SIZE (1)), - carrier-to-noise-ratio-r15 INTEGER (0..1023) OPTIONAL, -- Need ON - fine-PhaseRangeRate-r15 INTEGER (-16384..16383) OPTIONAL, -- Need ON - ... -} - - -GLO-RTK-BiasInformation-r15 ::= SEQUENCE{ - referenceStationID-r15 GNSS-ReferenceStationID-r15, - cpbIndicator-r15 BIT STRING (SIZE(1)), - l1-ca-cpBias-r15 INTEGER (-32768..32767) OPTIONAL, -- Need ON - l1-p-cpBias-r15 INTEGER (-32768..32767) OPTIONAL, -- Need ON - l2-ca-cpBias-r15 INTEGER (-32768..32767) OPTIONAL, -- Need ON - l2-p-cpBias-r15 INTEGER (-32768..32767) OPTIONAL, -- Need ON - ... -} - - -GNSS-RTK-MAC-CorrectionDifferences-r15 ::= SEQUENCE { - networkID-r15 GNSS-NetworkID-r15, - subNetworkID-r15 GNSS-SubNetworkID-r15 OPTIONAL, -- Need ON - master-ReferenceStationID-r15 GNSS-ReferenceStationID-r15, - l1-r15 GNSS-FrequencyID-r15 OPTIONAL, -- Need OP - l2-r15 GNSS-FrequencyID-r15 OPTIONAL, -- Need OP - rtkCorrectionDifferencesList-r15 RTK-CorrectionDifferencesList-r15, - ... -} - -RTK-CorrectionDifferencesList-r15 ::= SEQUENCE (SIZE (1..32)) OF - RTK-CorrectionDifferencesElement-r15 - -RTK-CorrectionDifferencesElement-r15 ::= SEQUENCE { - epochTime-r15 GNSS-SystemTime, - auxiliary-referenceStationID-r15 GNSS-ReferenceStationID-r15, - geometric-ionospheric-corrections-differences-r15 - Geometric-Ionospheric-Corrections-Differences-r15, - ... -} - -Geometric-Ionospheric-Corrections-Differences-r15 ::= SEQUENCE (SIZE(1..64)) OF - Geometric-Ionospheric-Corrections-Differences-Element-r15 - -Geometric-Ionospheric-Corrections-Differences-Element-r15 ::= SEQUENCE { - svID-r15 SV-ID, - ambiguityStatusFlag-r15 INTEGER (0..3), - non-synch-count-r15 INTEGER (0..7), - geometricCarrierPhaseCorrectionDifference-r15 INTEGER (-65536..65535), - iod-r15 BIT STRING (SIZE(11)), - ionosphericCarrierPhaseCorrectionDifference-r15 INTEGER (-65536..65535), - ... -} - - -GNSS-RTK-Residuals-r15 ::= SEQUENCE { - epochTime-r15 GNSS-SystemTime, - referenceStationID-r15 GNSS-ReferenceStationID-r15, - n-Refs-r15 INTEGER (0..127), - l1-r15 GNSS-FrequencyID-r15 OPTIONAL, -- Need OP - l2-r15 GNSS-FrequencyID-r15 OPTIONAL, -- Need OP - rtk-residuals-list-r15 RTK-Residuals-List-r15, - ... -} - -RTK-Residuals-List-r15 ::= SEQUENCE (SIZE(1..64)) OF RTK-Residuals-Element-r15 - -RTK-Residuals-Element-r15 ::= SEQUENCE { - svID-r15 SV-ID, - s-oc-r15 INTEGER (0..255), - s-od-r15 INTEGER (0..511), - s-oh-r15 INTEGER (0..63), - s-lc-r15 INTEGER (0..1023), - s-ld-r15 INTEGER (0..1023), - ... -} - - -GNSS-RTK-FKP-Gradients-r15 ::= SEQUENCE { - referenceStationID-r15 GNSS-ReferenceStationID-r15, - epochTime-r15 GNSS-SystemTime, - l1-r15 GNSS-FrequencyID-r15 OPTIONAL, -- Need OP - l2-r15 GNSS-FrequencyID-r15 OPTIONAL, -- Need OP - fkp-gradients-list-r15 FKP-Gradients-List-r15, - ... -} - -FKP-Gradients-List-r15 ::= SEQUENCE (SIZE(1..64)) OF FKP-Gradients-Element-r15 - -FKP-Gradients-Element-r15 ::= SEQUENCE { - svID-r15 SV-ID, - iod-r15 BIT STRING (SIZE(11)), - north-geometric-gradient-r15 INTEGER (-2048..2047), - east-geometric-gradient-r15 INTEGER (-2048..2047), - north-ionospheric-gradient-r15 INTEGER (-8192..8191), - east-ionospheric-gradient-r15 INTEGER (-8192..8191), - ... -} - - -GNSS-SSR-OrbitCorrections-r15 ::= SEQUENCE { - epochTime-r15 GNSS-SystemTime, - ssrUpdateInterval-r15 INTEGER (0..15), - satelliteReferenceDatum-r15 ENUMERATED { itrf, regional, ... }, - iod-ssr-r15 INTEGER (0..15), - ssr-OrbitCorrectionList-r15 SSR-OrbitCorrectionList-r15, - ... -} - -SSR-OrbitCorrectionList-r15 ::= SEQUENCE (SIZE(1..64)) OF SSR-OrbitCorrectionSatelliteElement-r15 - -SSR-OrbitCorrectionSatelliteElement-r15 ::= SEQUENCE { - svID-r15 SV-ID, - iod-r15 BIT STRING (SIZE(11)), - delta-radial-r15 INTEGER (-2097152..2097151), - delta-AlongTrack-r15 INTEGER (-524288..524287), - delta-CrossTrack-r15 INTEGER (-524288..524287), - dot-delta-radial-r15 INTEGER (-1048576..1048575) OPTIONAL, - dot-delta-AlongTrack-r15 INTEGER (-262144..262143) OPTIONAL, - dot-delta-CrossTrack-r15 INTEGER (-262144..262143) OPTIONAL, - ... -} - - -GNSS-SSR-ClockCorrections-r15 ::= SEQUENCE { - epochTime-r15 GNSS-SystemTime, - ssrUpdateInterval-r15 INTEGER (0..15), - iod-ssr-r15 INTEGER (0..15), - ssr-ClockCorrectionList-r15 SSR-ClockCorrectionList-r15, - ... -} - -SSR-ClockCorrectionList-r15 ::= SEQUENCE (SIZE(1..64)) OF SSR-ClockCorrectionSatelliteElement-r15 - -SSR-ClockCorrectionSatelliteElement-r15 ::= SEQUENCE { - svID-r15 SV-ID, - delta-Clock-C0-r15 INTEGER (-2097152..2097151), - delta-Clock-C1-r15 INTEGER (-1048576..1048575) OPTIONAL, - delta-Clock-C2-r15 INTEGER (-67108864..67108863) OPTIONAL, - ... -} - - -GNSS-SSR-CodeBias-r15 ::= SEQUENCE { - epochTime-r15 GNSS-SystemTime, - ssrUpdateInterval-r15 INTEGER (0..15), - iod-ssr-r15 INTEGER (0..15), - ssr-CodeBiasSatList-r15 SSR-CodeBiasSatList-r15, - ... -} - -SSR-CodeBiasSatList-r15 ::= SEQUENCE (SIZE(1..64)) OF SSR-CodeBiasSatElement-r15 - -SSR-CodeBiasSatElement-r15 ::= SEQUENCE { - svID-r15 SV-ID, - ssr-CodeBiasSignalList-r15 SSR-CodeBiasSignalList-r15, - ... -} - -SSR-CodeBiasSignalList-r15 ::= SEQUENCE (SIZE(1..16)) OF SSR-CodeBiasSignalElement-r15 - -SSR-CodeBiasSignalElement-r15 ::= SEQUENCE { - signal-and-tracking-mode-ID-r15 GNSS-SignalID, - codeBias-r15 INTEGER (-8192..8191), - ... -} - - -GNSS-SSR-URA-r16 ::= SEQUENCE { - epochTime-r16 GNSS-SystemTime, - ssrUpdateInterval-r16 INTEGER (0..15), - iod-ssr-r16 INTEGER (0..15), - ssr-URA-SatList-r16 SSR-URA-SatList-r16, - ... -} - -SSR-URA-SatList-r16 ::= SEQUENCE (SIZE(1..64)) OF SSR-URA-SatElement-r16 - -SSR-URA-SatElement-r16 ::= SEQUENCE { - svID-r16 SV-ID, - ssr-URA-r16 BIT STRING (SIZE (6)), - ... -} - - -GNSS-SSR-PhaseBias-r16 ::= SEQUENCE { - epochTime-r16 GNSS-SystemTime, - ssrUpdateInterval-r16 INTEGER (0..15), - iod-ssr-r16 INTEGER (0..15), - ssr-PhaseBiasSatList-r16 SSR-PhaseBiasSatList-r16, - ... -} - -SSR-PhaseBiasSatList-r16 ::= SEQUENCE (SIZE(1..64)) OF SSR-PhaseBiasSatElement-r16 - -SSR-PhaseBiasSatElement-r16 ::= SEQUENCE { - svID-r16 SV-ID, - ssr-PhaseBiasSignalList-r16 SSR-PhaseBiasSignalList-r16, - ... -} - -SSR-PhaseBiasSignalList-r16 ::= SEQUENCE (SIZE(1..16)) OF SSR-PhaseBiasSignalElement-r16 - -SSR-PhaseBiasSignalElement-r16 ::= SEQUENCE { - signal-and-tracking-mode-ID-r16 GNSS-SignalID, - phaseBias-r16 INTEGER (-16384..16383), - phaseDiscontinuityIndicator-r16 INTEGER (0..3), - phaseBiasIntegerIndicator-r16 INTEGER (0..3) OPTIONAL, -- Need OP - ... -} - - -GNSS-SSR-STEC-Correction-r16 ::= SEQUENCE { - epochTime-r16 GNSS-SystemTime, - ssrUpdateInterval-r16 INTEGER (0..15), - iod-ssr-r16 INTEGER (0..15), - correctionPointSetID-r16 INTEGER (0..16383), - stec-SatList-r16 STEC-SatList-r16, - ... -} - -STEC-SatList-r16 ::= SEQUENCE (SIZE(1..64)) OF STEC-SatElement-r16 - -STEC-SatElement-r16 ::= SEQUENCE { - svID-r16 SV-ID, - stecQualityIndicator-r16 BIT STRING (SIZE(6)), - stec-C00-r16 INTEGER (-8192..8191), - stec-C01-r16 INTEGER (-2048..2047) OPTIONAL, - stec-C10-r16 INTEGER (-2048..2047) OPTIONAL, - stec-C11-r16 INTEGER (-512..511) OPTIONAL, - ... -} - - -GNSS-SSR-GriddedCorrection-r16 ::= SEQUENCE { - epochTime-r16 GNSS-SystemTime, - ssrUpdateInterval-r16 INTEGER (0..15), - iod-ssr-r16 INTEGER (0..15), - troposphericDelayQualityIndicator-r16 BIT STRING (SIZE(6)) OPTIONAL, -- Cond Tropo - correctionPointSetID-r16 INTEGER (0..16383), - gridList-r16 GridList-r16, - ... -} - -GridList-r16 ::= SEQUENCE (SIZE(1..64)) OF GridElement-r16 - -GridElement-r16 ::= SEQUENCE { - tropospericDelayCorrection-r16 TropospericDelayCorrection-r16 OPTIONAL, - stec-ResidualSatList-r16 STEC-ResidualSatList-r16 OPTIONAL, - ... -} - -TropospericDelayCorrection-r16 ::= SEQUENCE { - tropoHydroStaticVerticalDelay-r16 INTEGER (-256..255), - tropoWetVerticalDelay-r16 INTEGER (-128..127), - ... -} - -STEC-ResidualSatList-r16 ::= SEQUENCE (SIZE(1..64)) OF STEC-ResidualSatElement-r16 - -STEC-ResidualSatElement-r16 ::= SEQUENCE { - svID-r16 SV-ID, - stecResidualCorrection-r16 CHOICE { - b7-r16 INTEGER (-64..63), - b16-r16 INTEGER (-32768..32767) - }, - ... -} - - -NavIC-DifferentialCorrections-r16 ::= SEQUENCE { - navic-RefTOWC-r16 INTEGER (0..50400), - navic-CorrectionListAutoNav-r16 NavIC-CorrectionListAutoNav-r16, - ... -} - -NavIC-CorrectionListAutoNav-r16 ::= SEQUENCE (SIZE (1..64)) OF NavIC-CorrectionElementAutoNav-r16 - -NavIC-CorrectionElementAutoNav-r16 ::= SEQUENCE { - svID SV-ID, - navic-Tod-r16 INTEGER (0..65535), - navic-iodec-r16 INTEGER (0..255), - navic-UDRAI-r16 INTEGER (-16..15), - navic-UDRArateI-r16 INTEGER (-16..15), - navic-EDC-r16 NavIC-EDC-r16, - navic-CDC-r16 NavIC-CDC-r16, - ... -} - -NavIC-EDC-r16 ::= SEQUENCE { - navic-AlphaEDC-r16 INTEGER (-8192..8191), - navic-BetaEDC-r16 INTEGER (-8192..8191), - navic-GammaEDC-r16 INTEGER (-16384..16383), - navic-AoIcorrection-r16 INTEGER (-2048..2047), - navic-AoRAcorrection-r16 INTEGER (-2048..2047), - navic-SemiMajorcorrection-r16 INTEGER (-2048..2047), - ... -} - -NavIC-CDC-r16 ::= SEQUENCE { - navic-ClockBiasCorrection-r16 INTEGER (-4096..4095), - navic-ClockDriftCorrection-r16 INTEGER (-128..127), - ... -} - - -NavIC-GridModelParameter-r16 ::= SEQUENCE { - navic-RefTOWC-r16 INTEGER (0..50400), - regionMasked-r16 INTEGER (0..1023), - regionIgpList-r16 RegionIgpList-r16, - ... -} - -RegionIgpList-r16 ::= SEQUENCE (SIZE (1..16)) OF RegionIgpElement-r16 - -RegionIgpElement-r16 ::= SEQUENCE { - regionID-r16 INTEGER (0..15), - givei1-r16 INTEGER (0..15), - givd1-r16 INTEGER (0..511), - givei2-r16 INTEGER (0..15), - givd2-r16 INTEGER (0..511), - givei3-r16 INTEGER (0..15), - givd3-r16 INTEGER (0..511), - givei4-r16 INTEGER (0..15), - givd4-r16 INTEGER (0..511), - givei5-r16 INTEGER (0..15), - givd5-r16 INTEGER (0..511), - givei6-r16 INTEGER (0..15), - givd6-r16 INTEGER (0..511), - givei7-r16 INTEGER (0..15), - givd7-r16 INTEGER (0..511), - givei8-r16 INTEGER (0..15), - givd8-r16 INTEGER (0..511), - givei9-r16 INTEGER (0..15), - givd9-r16 INTEGER (0..511), - givei10-r16 INTEGER (0..15), - givd10-r16 INTEGER (0..511), - givei11-r16 INTEGER (0..15), - givd11-r16 INTEGER (0..511), - givei12-r16 INTEGER (0..15), - givd12-r16 INTEGER (0..511), - givei13-r16 INTEGER (0..15), - givd13-r16 INTEGER (0..511), - givei14-r16 INTEGER (0..15), - givd14-r16 INTEGER (0..511), - givei15-r16 INTEGER (0..15), - givd15-r16 INTEGER (0..511), - ... -} - - -A-GNSS-RequestAssistanceData ::= SEQUENCE { - gnss-CommonAssistDataReq GNSS-CommonAssistDataReq OPTIONAL, -- Cond CommonADReq - gnss-GenericAssistDataReq GNSS-GenericAssistDataReq OPTIONAL, -- Cond GenADReq - ..., - [[ - gnss-PeriodicAssistDataReq-r15 - GNSS-PeriodicAssistDataReq-r15 OPTIONAL -- Cond PerADReq - ]] -} - - -GNSS-CommonAssistDataReq ::= SEQUENCE { - gnss-ReferenceTimeReq GNSS-ReferenceTimeReq - OPTIONAL, -- Cond RefTimeReq - gnss-ReferenceLocationReq GNSS-ReferenceLocationReq - OPTIONAL, -- Cond RefLocReq - gnss-IonosphericModelReq GNSS-IonosphericModelReq - OPTIONAL, -- Cond IonoModReq - gnss-EarthOrientationParametersReq GNSS-EarthOrientationParametersReq - OPTIONAL, -- Cond EOPReq - ..., - [[ - gnss-RTK-ReferenceStationInfoReq-r15 - GNSS-RTK-ReferenceStationInfoReq-r15 - OPTIONAL, -- Cond ARPReq - gnss-RTK-AuxiliaryStationDataReq-r15 - GNSS-RTK-AuxiliaryStationDataReq-r15 - OPTIONAL -- Cond AuxARPReq - ]], - [[ - gnss-SSR-CorrectionPointsReq-r16 - GNSS-SSR-CorrectionPointsReq-r16 - OPTIONAL -- Cond PointsReq - ]] -} - - -GNSS-GenericAssistDataReq ::= SEQUENCE (SIZE (1..16)) OF GNSS-GenericAssistDataReqElement - -GNSS-GenericAssistDataReqElement ::= SEQUENCE { - gnss-ID GNSS-ID, - sbas-ID SBAS-ID OPTIONAL, -- Cond GNSS-ID-SBAS - gnss-TimeModelsReq GNSS-TimeModelListReq OPTIONAL, -- Cond TimeModReq - gnss-DifferentialCorrectionsReq GNSS-DifferentialCorrectionsReq OPTIONAL, -- Cond DGNSS-Req - gnss-NavigationModelReq GNSS-NavigationModelReq OPTIONAL, -- Cond NavModReq - gnss-RealTimeIntegrityReq GNSS-RealTimeIntegrityReq OPTIONAL, -- Cond RTIReq - gnss-DataBitAssistanceReq GNSS-DataBitAssistanceReq OPTIONAL, -- Cond DataBitsReq - gnss-AcquisitionAssistanceReq GNSS-AcquisitionAssistanceReq OPTIONAL, -- Cond AcquAssistReq - gnss-AlmanacReq GNSS-AlmanacReq OPTIONAL, -- Cond AlmanacReq - gnss-UTCModelReq GNSS-UTC-ModelReq OPTIONAL, -- Cond UTCModReq - gnss-AuxiliaryInformationReq GNSS-AuxiliaryInformationReq OPTIONAL, -- Cond AuxInfoReq - ..., - [[ - bds-DifferentialCorrectionsReq-r12 - BDS-DifferentialCorrectionsReq-r12 - OPTIONAL, -- Cond DBDS-Req - bds-GridModelReq-r12 BDS-GridModelReq-r12 OPTIONAL -- Cond BDS-GridModReq - ]], - [[ - gnss-RTK-ObservationsReq-r15 - GNSS-RTK-ObservationsReq-r15 OPTIONAL, -- Cond RTK-OSR-Req - glo-RTK-BiasInformationReq-r15 - GLO-RTK-BiasInformationReq-r15 OPTIONAL, -- Cond GLO-CPB-Req - gnss-RTK-MAC-CorrectionDifferencesReq-r15 - GNSS-RTK-MAC-CorrectionDifferencesReq-r15 - OPTIONAL, -- Cond MAC-Req - gnss-RTK-ResidualsReq-r15 GNSS-RTK-ResidualsReq-r15 OPTIONAL, -- Cond Res-Req - gnss-RTK-FKP-GradientsReq-r15 - GNSS-RTK-FKP-GradientsReq-r15 OPTIONAL, -- Cond FKP-Req - gnss-SSR-OrbitCorrectionsReq-r15 - GNSS-SSR-OrbitCorrectionsReq-r15 - OPTIONAL, -- Cond OC-Req - gnss-SSR-ClockCorrectionsReq-r15 - GNSS-SSR-ClockCorrectionsReq-r15 - OPTIONAL, -- Cond CC-Req - gnss-SSR-CodeBiasReq-r15 GNSS-SSR-CodeBiasReq-r15 OPTIONAL -- Cond CB-Req - ]], - [[ - gnss-SSR-URA-Req-r16 GNSS-SSR-URA-Req-r16 OPTIONAL, -- Cond URA-Req - gnss-SSR-PhaseBiasReq-r16 GNSS-SSR-PhaseBiasReq-r16 OPTIONAL, -- Cond PB-Req - gnss-SSR-STEC-CorrectionReq-r16 - GNSS-SSR-STEC-CorrectionReq-r16 OPTIONAL, -- Cond STEC-Req - gnss-SSR-GriddedCorrectionReq-r16 GNSS-SSR-GriddedCorrectionReq-r16 - OPTIONAL, -- Cond Grid-Req - navic-DifferentialCorrectionsReq-r16 - NavIC-DifferentialCorrectionsReq-r16 - OPTIONAL, -- Cond DNavIC-Req - navic-GridModelReq-r16 NavIC-GridModelReq-r16 OPTIONAL -- Cond NavIC-GridModReq - ]] -} - - -GNSS-PeriodicAssistDataReq-r15 ::= SEQUENCE { - gnss-RTK-PeriodicObservationsReq-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pOSR - glo-RTK-PeriodicBiasInformationReq-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pCPB - gnss-RTK-MAC-PeriodicCorrectionDifferencesReq-r15 - GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pMAC - gnss-RTK-PeriodicResidualsReq-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pRes - gnss-RTK-FKP-PeriodicGradientsReq-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pFKP - gnss-SSR-PeriodicOrbitCorrectionsReq-r15 - GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pOC - gnss-SSR-PeriodicClockCorrectionsReq-r15 - GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pCC - gnss-SSR-PeriodicCodeBiasReq-r15 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pCB - ..., - [[ - gnss-SSR-PeriodicURA-Req-r16 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pURA - gnss-SSR-PeriodicPhaseBiasReq-r16 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pPB - gnss-SSR-PeriodicSTEC-CorrectionReq-r16 GNSS-PeriodicControlParam-r15 OPTIONAL, -- Cond pSTEC - gnss-SSR-PeriodicGriddedCorrectionReq-r16 - GNSS-PeriodicControlParam-r15 OPTIONAL -- Cond pGrid - ]] -} - - -GNSS-ReferenceTimeReq ::= SEQUENCE { - gnss-TimeReqPrefList SEQUENCE (SIZE (1..8)) OF GNSS-ID, - gps-TOW-assistReq BOOLEAN OPTIONAL, -- Cond gps - notOfLeapSecReq BOOLEAN OPTIONAL, -- Cond glonass - ... -} - - -GNSS-ReferenceLocationReq ::= SEQUENCE { - ... -} - - -GNSS-IonosphericModelReq ::= SEQUENCE { - klobucharModelReq BIT STRING (SIZE(2)) OPTIONAL, -- Cond klobuchar - neQuickModelReq NULL OPTIONAL, -- Cond nequick - ..., - [[ klobucharModel2Req-r16 NULL OPTIONAL -- Cond klobuchar2 - ]] - -} - - -GNSS-EarthOrientationParametersReq ::= SEQUENCE { - ... -} - - -GNSS-RTK-ReferenceStationInfoReq-r15 ::= SEQUENCE { - antennaDescriptionReq-r15 BOOLEAN, - antennaHeightReq-r15 BOOLEAN, - physicalReferenceStationReq-r15 BOOLEAN, - stationID-r15 GNSS-ReferenceStationID-r15 OPTIONAL, - ... -} - - -GNSS-RTK-AuxiliaryStationDataReq-r15 ::= SEQUENCE { - master-referenceStationID-r15 GNSS-ReferenceStationID-r15 OPTIONAL, - ... -} - - -GNSS-SSR-CorrectionPointsReq-r16 ::= SEQUENCE { - correctionPointSetID-Req-r16 INTEGER (0..16383) OPTIONAL, - ... -} - - -GNSS-TimeModelListReq ::= SEQUENCE (SIZE(1..15)) OF GNSS-TimeModelElementReq - -GNSS-TimeModelElementReq ::= SEQUENCE { - gnss-TO-IDsReq INTEGER (1..15), - deltaTreq BOOLEAN, - ... -} - - -GNSS-DifferentialCorrectionsReq ::= SEQUENCE { - dgnss-SignalsReq GNSS-SignalIDs, - dgnss-ValidityTimeReq BOOLEAN, - ... -} - - -GNSS-NavigationModelReq ::= CHOICE { - storedNavList StoredNavListInfo, - reqNavList ReqNavListInfo, - ... -} - - -StoredNavListInfo ::= SEQUENCE { - gnss-WeekOrDay INTEGER (0..4095), - gnss-Toe INTEGER (0..255), - t-toeLimit INTEGER (0..15), - satListRelatedDataList SatListRelatedDataList OPTIONAL, - ... -} - -SatListRelatedDataList ::= SEQUENCE (SIZE (1..64)) OF SatListRelatedDataElement - -SatListRelatedDataElement ::= SEQUENCE { - svID SV-ID, - iod BIT STRING (SIZE(11)), - clockModelID INTEGER (1..8) OPTIONAL, - orbitModelID INTEGER (1..8) OPTIONAL, - ... -} - -ReqNavListInfo ::= SEQUENCE { - svReqList BIT STRING (SIZE (64)), - clockModelID-PrefList SEQUENCE (SIZE (1..8)) OF INTEGER (1..8) OPTIONAL, - orbitModelID-PrefList SEQUENCE (SIZE (1..8)) OF INTEGER (1..8) OPTIONAL, - addNavparamReq BOOLEAN OPTIONAL, -- Cond orbitModelID-2 - ... -} - - - -GNSS-RealTimeIntegrityReq ::= SEQUENCE { - ... -} - - -GNSS-DataBitAssistanceReq ::= SEQUENCE { - gnss-TOD-Req INTEGER (0..3599), - gnss-TOD-FracReq INTEGER (0..999) OPTIONAL, - dataBitInterval INTEGER (0..15), - gnss-SignalType GNSS-SignalIDs, - gnss-DataBitsReq GNSS-DataBitsReqSatList OPTIONAL, - ... -} - -GNSS-DataBitsReqSatList ::= SEQUENCE (SIZE(1..64)) OF GNSS-DataBitsReqSatElement - -GNSS-DataBitsReqSatElement ::= SEQUENCE { - svID SV-ID, - ... -} - - -GNSS-AcquisitionAssistanceReq ::= SEQUENCE { - gnss-SignalID-Req GNSS-SignalID, - ... -} - - -GNSS-AlmanacReq ::= SEQUENCE { - modelID INTEGER(1..8) OPTIONAL, - ... -} - - -GNSS-UTC-ModelReq ::= SEQUENCE { - modelID INTEGER(1..8) OPTIONAL, - ... -} - - -GNSS-AuxiliaryInformationReq ::= SEQUENCE { - ... -} - - -BDS-DifferentialCorrectionsReq-r12 ::= SEQUENCE { - dgnss-SignalsReq GNSS-SignalIDs, - ... -} - - -BDS-GridModelReq-r12 ::= SEQUENCE { - ... -} - - -GNSS-RTK-ObservationsReq-r15::= SEQUENCE { - gnss-RTK-SignalsReq-r15 GNSS-SignalIDs, - gnss-RTK-Integer-ms-Req-r15 BOOLEAN, - gnss-RTK-PhaseRangeRateReq-r15 BOOLEAN, - gnss-RTK-CNR-Req-r15 BOOLEAN, - stationID-r15 GNSS-ReferenceStationID-r15 OPTIONAL, - ... -} - - -GLO-RTK-BiasInformationReq-r15 ::= SEQUENCE { - stationID-r15 GNSS-ReferenceStationID-r15 OPTIONAL, - ... -} - - -GNSS-RTK-MAC-CorrectionDifferencesReq-r15 ::= SEQUENCE { - master-ReferenceStationID-r15 GNSS-ReferenceStationID-r15 OPTIONAL, - aux-ReferenceStationList-r15 AUX-ReferenceStationList-r15 OPTIONAL, - linkCombinations-PrefList-r15 GNSS-Link-CombinationsList-r15 OPTIONAL, - ... -} - -AUX-ReferenceStationList-r15 ::= SEQUENCE (SIZE (1..32)) OF AUX-ReferenceStationID-Element-r15 - -AUX-ReferenceStationID-Element-r15 ::= SEQUENCE { - aux-stationID-r15 GNSS-ReferenceStationID-r15, - ... -} - - -GNSS-RTK-ResidualsReq-r15 ::= SEQUENCE { - stationID-r15 GNSS-ReferenceStationID-r15 OPTIONAL, - linkCombinations-PrefList-r15 GNSS-Link-CombinationsList-r15 OPTIONAL, - ... -} - - -GNSS-RTK-FKP-GradientsReq-r15 ::= SEQUENCE { - stationID-r15 GNSS-ReferenceStationID-r15 OPTIONAL, - linkCombinations-PrefList-r15 GNSS-Link-CombinationsList-r15 OPTIONAL, - ... -} - - -GNSS-SSR-OrbitCorrectionsReq-r15 ::= SEQUENCE { - storedNavList-r15 GNSS-NavListInfo-r15 OPTIONAL, - ... -} - - -GNSS-SSR-ClockCorrectionsReq-r15 ::= SEQUENCE { - storedNavList-r15 GNSS-NavListInfo-r15 OPTIONAL, - ... -} - - -GNSS-SSR-CodeBiasReq-r15 ::= SEQUENCE { - signal-and-tracking-mode-ID-Map-r15 GNSS-SignalIDs, - storedNavList-r15 GNSS-NavListInfo-r15 OPTIONAL, - ... -} - - -GNSS-SSR-URA-Req-r16 ::= SEQUENCE { - ... -} - - -GNSS-SSR-PhaseBiasReq-r16 ::= SEQUENCE { - signal-and-tracking-mode-ID-Map-r16 GNSS-SignalIDs, - storedNavList-r16 GNSS-NavListInfo-r15 OPTIONAL, - ... -} - - -GNSS-SSR-STEC-CorrectionReq-r16 ::= SEQUENCE { - ... -} - - -GNSS-SSR-GriddedCorrectionReq-r16 ::= SEQUENCE { - ... -} - - -NavIC-DifferentialCorrectionsReq-r16 ::= SEQUENCE { - dgnss-SignalsReq-r16 GNSS-SignalIDs, - ... -} - - -NavIC-GridModelReq-r16 ::= SEQUENCE { - ... -} - - -A-GNSS-ProvideLocationInformation ::= SEQUENCE { - gnss-SignalMeasurementInformation GNSS-SignalMeasurementInformation OPTIONAL, - gnss-LocationInformation GNSS-LocationInformation OPTIONAL, - gnss-Error A-GNSS-Error OPTIONAL, - ... -} - - -GNSS-SignalMeasurementInformation ::= SEQUENCE { - measurementReferenceTime MeasurementReferenceTime, - gnss-MeasurementList GNSS-MeasurementList, - ... -} - - -MeasurementReferenceTime ::= SEQUENCE { - gnss-TOD-msec INTEGER (0..3599999), - gnss-TOD-frac INTEGER (0..3999) OPTIONAL, - gnss-TOD-unc INTEGER (0..127) OPTIONAL, - gnss-TimeID GNSS-ID, - networkTime CHOICE { - eUTRA SEQUENCE { - physCellId INTEGER (0..503), - cellGlobalId CellGlobalIdEUTRA-AndUTRA OPTIONAL, - systemFrameNumber BIT STRING (SIZE (10)), - ... - }, - uTRA SEQUENCE { - mode CHOICE { - fdd SEQUENCE { - primary-CPICH-Info INTEGER (0..511), - ... - }, - tdd SEQUENCE { - cellParameters INTEGER (0..127), - ... - } - }, - cellGlobalId CellGlobalIdEUTRA-AndUTRA OPTIONAL, - referenceSystemFrameNumber - INTEGER (0..4095), - ... - }, - gSM SEQUENCE { - bcchCarrier INTEGER (0..1023), - bsic INTEGER (0..63), - cellGlobalId CellGlobalIdGERAN OPTIONAL, - referenceFrame SEQUENCE { - referenceFN INTEGER (0..65535), - referenceFNMSB INTEGER (0..63) OPTIONAL, - ... - }, - deltaGNSS-TOD INTEGER (0 .. 127) OPTIONAL, - ... - }, - ..., - nbIoT-r14 - SEQUENCE { - nbPhysCellId-r14 INTEGER (0..503), - nbCellGlobalId-r14 ECGI OPTIONAL, - sfn-r14 BIT STRING (SIZE (10)), - hyperSFN-r14 BIT STRING (SIZE (10)) OPTIONAL, - ... - }, - nr-r15 SEQUENCE { - nrPhysCellId-r15 INTEGER (0..1007), - nrCellGlobalID-r15 NCGI-r15 OPTIONAL, - nr-sfn-r15 BIT STRING (SIZE (10)), - ... - } - } OPTIONAL, - ... -} - - -GNSS-MeasurementList ::= SEQUENCE (SIZE(1..16)) OF GNSS-MeasurementForOneGNSS - -GNSS-MeasurementForOneGNSS ::= SEQUENCE { - gnss-ID GNSS-ID, - gnss-SgnMeasList GNSS-SgnMeasList, - ... -} - -GNSS-SgnMeasList ::= SEQUENCE (SIZE(1..8)) OF GNSS-SgnMeasElement - -GNSS-SgnMeasElement ::= SEQUENCE { - gnss-SignalID GNSS-SignalID, - gnss-CodePhaseAmbiguity INTEGER (0..127) OPTIONAL, - gnss-SatMeasList GNSS-SatMeasList, - ... -} - -GNSS-SatMeasList ::= SEQUENCE (SIZE(1..64)) OF GNSS-SatMeasElement - -GNSS-SatMeasElement ::= SEQUENCE { - svID SV-ID, - cNo INTEGER (0..63), - mpathDet ENUMERATED {notMeasured (0), low (1), medium (2), high (3), ...}, - carrierQualityInd INTEGER (0..3) OPTIONAL, - codePhase INTEGER (0..2097151), - integerCodePhase INTEGER (0..127) OPTIONAL, - codePhaseRMSError INTEGER (0..63), - doppler INTEGER (-32768..32767) OPTIONAL, - adr INTEGER (0..33554431) OPTIONAL, - ..., - [[ - adrMSB-r15 INTEGER (0..15) OPTIONAL, - adrSign-r15 ENUMERATED {positive, negative} OPTIONAL, - adrRMSerror-r15 INTEGER (0..127) OPTIONAL, - delta-codePhase-r15 INTEGER (0..7) OPTIONAL - ]] -} - - -GNSS-LocationInformation ::= SEQUENCE { - measurementReferenceTime MeasurementReferenceTime, - agnss-List GNSS-ID-Bitmap, - ... -} - - -A-GNSS-RequestLocationInformation ::= SEQUENCE { - gnss-PositioningInstructions GNSS-PositioningInstructions, - ... -} - - -GNSS-PositioningInstructions ::= SEQUENCE { - gnss-Methods GNSS-ID-Bitmap, - fineTimeAssistanceMeasReq BOOLEAN, - adrMeasReq BOOLEAN, - multiFreqMeasReq BOOLEAN, - assistanceAvailability BOOLEAN, - ..., - [[ - ha-GNSS-Req-r15 ENUMERATED { true } OPTIONAL -- Cond UEB - ]] -} - - -A-GNSS-ProvideCapabilities ::= SEQUENCE { - gnss-SupportList GNSS-SupportList OPTIONAL, - assistanceDataSupportList AssistanceDataSupportList OPTIONAL, - locationCoordinateTypes LocationCoordinateTypes OPTIONAL, - velocityTypes VelocityTypes OPTIONAL, - ..., - [[ periodicalReportingNotSupported-r14 - PositioningModes OPTIONAL, - idleStateForMeasurements-r14 - ENUMERATED { required } OPTIONAL - ]], - [[ periodicAssistanceData-r15 - BIT STRING { solicited (0), - unsolicited (1) } (SIZE (1..8)) OPTIONAL - ]] -} - -GNSS-SupportList ::= SEQUENCE (SIZE(1..16)) OF GNSS-SupportElement - -GNSS-SupportElement ::= SEQUENCE { - gnss-ID GNSS-ID, - sbas-IDs SBAS-IDs OPTIONAL, -- Cond GNSS-ID-SBAS - agnss-Modes PositioningModes, - gnss-Signals GNSS-SignalIDs, - fta-MeasSupport SEQUENCE { - cellTime AccessTypes, - mode PositioningModes, - ... - } OPTIONAL, -- Cond fta - adr-Support BOOLEAN, - velocityMeasurementSupport BOOLEAN, - ..., - [[ - adrEnhancementsSupport-r15 ENUMERATED { true } OPTIONAL, - ha-gnss-Modes-r15 PositioningModes OPTIONAL - ]] -} - -AssistanceDataSupportList ::= SEQUENCE { - gnss-CommonAssistanceDataSupport GNSS-CommonAssistanceDataSupport, - gnss-GenericAssistanceDataSupport GNSS-GenericAssistanceDataSupport, - ... -} - - - -GNSS-CommonAssistanceDataSupport ::= SEQUENCE { - gnss-ReferenceTimeSupport GNSS-ReferenceTimeSupport - OPTIONAL, -- Cond RefTimeSup - gnss-ReferenceLocationSupport GNSS-ReferenceLocationSupport - OPTIONAL, -- Cond RefLocSup - gnss-IonosphericModelSupport GNSS-IonosphericModelSupport - OPTIONAL, -- Cond IonoModSup - gnss-EarthOrientationParametersSupport GNSS-EarthOrientationParametersSupport - OPTIONAL, -- Cond EOPSup - ..., - [[ - gnss-RTK-ReferenceStationInfoSupport-r15 - GNSS-RTK-ReferenceStationInfoSupport-r15 - OPTIONAL, -- Cond ARPSup - gnss-RTK-AuxiliaryStationDataSupport-r15 - GNSS-RTK-AuxiliaryStationDataSupport-r15 - OPTIONAL -- Cond AuxARPSup - ]] -} - - -GNSS-ReferenceTimeSupport ::= SEQUENCE { - gnss-SystemTime GNSS-ID-Bitmap, - fta-Support AccessTypes OPTIONAL, -- Cond fta - ... -} - - -GNSS-ReferenceLocationSupport ::= SEQUENCE { - ... -} - - -GNSS-IonosphericModelSupport ::= SEQUENCE { - ionoModel BIT STRING { klobuchar (0), - neQuick (1), - klobuchar2-r16 (2) } (SIZE (1..8)), - ... -} - - -GNSS-EarthOrientationParametersSupport ::= SEQUENCE { - ... -} - - -GNSS-RTK-ReferenceStationInfoSupport-r15 ::= SEQUENCE { - ... -} - - -GNSS-RTK-AuxiliaryStationDataSupport-r15 ::= SEQUENCE { - ... -} - - -GNSS-GenericAssistanceDataSupport ::= - SEQUENCE (SIZE (1..16)) OF GNSS-GenericAssistDataSupportElement - -GNSS-GenericAssistDataSupportElement ::= SEQUENCE { - gnss-ID GNSS-ID, - sbas-ID SBAS-ID OPTIONAL, -- Cond GNSSIDSBAS - gnss-TimeModelsSupport GNSS-TimeModelListSupport - OPTIONAL, -- Cond TimeModSup - gnss-DifferentialCorrectionsSupport GNSS-DifferentialCorrectionsSupport - OPTIONAL, -- Cond DGNSS-Sup - gnss-NavigationModelSupport GNSS-NavigationModelSupport - OPTIONAL, -- Cond NavModSup - gnss-RealTimeIntegritySupport GNSS-RealTimeIntegritySupport - OPTIONAL, -- Cond RTISup - gnss-DataBitAssistanceSupport GNSS-DataBitAssistanceSupport - OPTIONAL, -- Cond DataBitsSup - gnss-AcquisitionAssistanceSupport GNSS-AcquisitionAssistanceSupport - OPTIONAL, -- Cond AcquAssistSup - gnss-AlmanacSupport GNSS-AlmanacSupport - OPTIONAL, -- Cond AlmanacSup - gnss-UTC-ModelSupport GNSS-UTC-ModelSupport - OPTIONAL, -- Cond UTCModSup - gnss-AuxiliaryInformationSupport GNSS-AuxiliaryInformationSupport - OPTIONAL, -- Cond AuxInfoSup - ..., - [[ - bds-DifferentialCorrectionsSupport-r12 - BDS-DifferentialCorrectionsSupport-r12 - OPTIONAL, -- Cond DBDS-Sup - bds-GridModelSupport-r12 BDS-GridModelSupport-r12 - OPTIONAL -- Cond BDS-GridModSup - ]], - [[ - gnss-RTK-ObservationsSupport-r15 - GNSS-RTK-ObservationsSupport-r15 - OPTIONAL, -- Cond RTK-OSR-Sup - glo-RTK-BiasInformationSupport-r15 - GLO-RTK-BiasInformationSupport-r15 - OPTIONAL, -- Cond GLO-CPB-Sup - gnss-RTK-MAC-CorrectionDifferencesSupport-r15 - GNSS-RTK-MAC-CorrectionDifferencesSupport-r15 - OPTIONAL, -- Cond MAC-Sup - gnss-RTK-ResidualsSupport-r15 GNSS-RTK-ResidualsSupport-r15 - OPTIONAL, -- Cond Res-Sup - gnss-RTK-FKP-GradientsSupport-r15 - GNSS-RTK-FKP-GradientsSupport-r15 - OPTIONAL, -- Cond FKP-Sup - gnss-SSR-OrbitCorrectionsSupport-r15 - GNSS-SSR-OrbitCorrectionsSupport-r15 - OPTIONAL, -- Cond OC-Sup - gnss-SSR-ClockCorrectionsSupport-r15 - GNSS-SSR-ClockCorrectionsSupport-r15 - OPTIONAL, -- Cond CC-Sup - gnss-SSR-CodeBiasSupport-r15 GNSS-SSR-CodeBiasSupport-r15 - OPTIONAL -- Cond CB-Sup - ]], - [[ - gnss-SSR-URA-Support-r16 GNSS-SSR-URA-Support-r16 OPTIONAL, -- Cond URA-Sup - gnss-SSR-PhaseBiasSupport-r16 GNSS-SSR-PhaseBiasSupport-r16 - OPTIONAL, -- Cond PB-Sup - gnss-SSR-STEC-CorrectionSupport-r16 - GNSS-SSR-STEC-CorrectionSupport-r16 - OPTIONAL, -- Cond STEC-Sup - gnss-SSR-GriddedCorrectionSupport-r16 - GNSS-SSR-GriddedCorrectionSupport-r16 - OPTIONAL, -- Cond Grid-Sup - navic-DifferentialCorrectionsSupport-r16 - NavIC-DifferentialCorrectionsSupport-r16 - OPTIONAL, -- Cond DNavIC-Sup - navic-GridModelSupport-r16 NavIC-GridModelSupport-r16 - OPTIONAL -- Cond NavIC-GridModSup - ]] -} - - -GNSS-TimeModelListSupport ::= SEQUENCE { - ... -} - - -GNSS-DifferentialCorrectionsSupport ::= SEQUENCE { - gnssSignalIDs GNSS-SignalIDs, - dgnss-ValidityTimeSup BOOLEAN, - ... -} - - -GNSS-NavigationModelSupport ::= SEQUENCE { - clockModel BIT STRING { model-1 (0), - model-2 (1), - model-3 (2), - model-4 (3), - model-5 (4), - model-6 (5), - model-7-r16 (6), - model-8-r16 (7) } (SIZE (1..8)) OPTIONAL, - orbitModel BIT STRING { model-1 (0), - model-2 (1), - model-3 (2), - model-4 (3), - model-5 (4), - model-6 (5), - model-7-r16 (6), - model-8-r16 (7) } (SIZE (1..8)) OPTIONAL, - ... -} - - -GNSS-RealTimeIntegritySupport ::= SEQUENCE { - ... -} - - -GNSS-DataBitAssistanceSupport ::= SEQUENCE { - ... -} - - -GNSS-AcquisitionAssistanceSupport ::= SEQUENCE { - ..., - confidenceSupport-r10 ENUMERATED { true } OPTIONAL, - dopplerUncertaintyExtSupport-r10 ENUMERATED { true } OPTIONAL -} - - -GNSS-AlmanacSupport ::= SEQUENCE { - almanacModel BIT STRING { model-1 (0), - model-2 (1), - model-3 (2), - model-4 (3), - model-5 (4), - model-6 (5), - model-7 (6) } (SIZE (1..8)) OPTIONAL, - ... -} - - -GNSS-UTC-ModelSupport ::= SEQUENCE { - utc-Model BIT STRING { model-1 (0), - model-2 (1), - model-3 (2), - model-4 (3), - model-5 (4) } (SIZE (1..8)) OPTIONAL, - ... -} - - -GNSS-AuxiliaryInformationSupport ::= SEQUENCE { - ... -} - - -BDS-DifferentialCorrectionsSupport-r12 ::= SEQUENCE { - gnssSignalIDs GNSS-SignalIDs, - ... -} - - -BDS-GridModelSupport-r12 ::= SEQUENCE { - ... -} - - -GNSS-RTK-ObservationsSupport-r15 ::= SEQUENCE { - gnssSignalIDs-r15 GNSS-SignalIDs, - ... -} - - -GLO-RTK-BiasInformationSupport-r15 ::= SEQUENCE { - ... -} - - -GNSS-RTK-MAC-CorrectionDifferencesSupport-r15 ::= SEQUENCE { - link-combinations-support-r15 GNSS-Link-CombinationsList-r15, - ... -} - - -GNSS-RTK-ResidualsSupport-r15 ::= SEQUENCE { - link-combinations-support-r15 GNSS-Link-CombinationsList-r15, - ... -} - - -GNSS-RTK-FKP-GradientsSupport-r15 ::= SEQUENCE { - link-combinations-support-r15 GNSS-Link-CombinationsList-r15, - ... -} - - -GNSS-SSR-OrbitCorrectionsSupport-r15 ::= SEQUENCE { - ... -} - - -GNSS-SSR-ClockCorrectionsSupport-r15 ::= SEQUENCE { - ... -} - - -GNSS-SSR-CodeBiasSupport-r15 ::= SEQUENCE { - signal-and-tracking-mode-ID-Sup-r15 GNSS-SignalIDs, - ... -} - - -GNSS-SSR-URA-Support-r16 ::= SEQUENCE { - ... -} - - -GNSS-SSR-PhaseBiasSupport-r16 ::= SEQUENCE { - signal-and-tracking-mode-ID-Sup-r16 GNSS-SignalIDs, - ... -} - - -GNSS-SSR-STEC-CorrectionSupport-r16 ::= SEQUENCE { - ... -} - - -GNSS-SSR-GriddedCorrectionSupport-r16 ::= SEQUENCE { - ... -} - - -NavIC-DifferentialCorrectionsSupport-r16 ::= SEQUENCE { - gnssSignalIDs-r16 GNSS-SignalIDs, - ... -} - - -NavIC-GridModelSupport-r16 ::= SEQUENCE { - ... -} - - -A-GNSS-RequestCapabilities ::= SEQUENCE { - gnss-SupportListReq BOOLEAN, - assistanceDataSupportListReq BOOLEAN, - locationVelocityTypesReq BOOLEAN, - ... -} - - -A-GNSS-Error ::= CHOICE { - locationServerErrorCauses GNSS-LocationServerErrorCauses, - targetDeviceErrorCauses GNSS-TargetDeviceErrorCauses, - ... -} - - -GNSS-LocationServerErrorCauses ::= SEQUENCE { - cause ENUMERATED { - undefined, - undeliveredAssistanceDataIsNotSupportedByServer, - undeliveredAssistanceDataIsSupportedButCurrentlyNotAvailableByServer, undeliveredAssistanceDataIsPartlyNotSupportedAndPartlyNotAvailableByServer, - ..., - unconfirmedPeriodicAssistanceDataIsNotSupported-v1510, - unconfirmedPeriodicAssistanceDataIsSupportedButCurrentlyNotAvailable-v1510, - unconfirmedPeriodicAssistanceDataIsPartlyNotSupportedAndPartlyNotAvailable-v1510, - undeliveredPeriodicAssistanceDataIsCurrentlyNotAvailable-v1510 - }, - ... -} - - -GNSS-TargetDeviceErrorCauses ::= SEQUENCE { - cause ENUMERATED { undefined, - thereWereNotEnoughSatellitesReceived, - assistanceDataMissing, - notAllRequestedMeasurementsPossible, - ... - }, - fineTimeAssistanceMeasurementsNotPossible NULL OPTIONAL, - adrMeasurementsNotPossible NULL OPTIONAL, - multiFrequencyMeasurementsNotPossible NULL OPTIONAL, - ... -} - - -GNSS-FrequencyID-r15 ::= SEQUENCE { - gnss-FrequencyID-r15 INTEGER (0 .. 7), - ... -} - - -GNSS-ID ::= SEQUENCE { - gnss-id ENUMERATED{ gps, sbas, qzss, galileo, glonass, ..., bds, navic-v16xy }, - ... -} - - -GNSS-ID-Bitmap ::= SEQUENCE { - gnss-ids BIT STRING { gps (0), - sbas (1), - qzss (2), - galileo (3), - glonass (4), - bds (5), - navic-v16xy (6) } (SIZE (1..16)), - ... -} - - -GNSS-Link-CombinationsList-r15 ::= SEQUENCE (SIZE(1..8)) OF GNSS-Link-Combinations-r15 - -GNSS-Link-Combinations-r15 ::= SEQUENCE { - l1-r15 GNSS-FrequencyID-r15, - l2-r15 GNSS-FrequencyID-r15, - ... -} - - -GNSS-NavListInfo-r15 ::= SEQUENCE (SIZE (1..64)) OF SatListElement-r15 - -SatListElement-r15 ::= SEQUENCE { - svID-r15 SV-ID, - iod-r15 BIT STRING (SIZE(11)), - ... -} - - -GNSS-NetworkID-r15 ::= SEQUENCE { - networkID-r15 INTEGER (0..255), - ... -} - - -GNSS-PeriodicControlParam-r15 ::= SEQUENCE { - deliveryAmount-r15 INTEGER (1..32), - deliveryInterval-r15 INTEGER (1..64), - ... -} - - -GNSS-ReferenceStationID-r15 ::= SEQUENCE { - referenceStationID-r15 INTEGER (0..65535), - providerName-r15 VisibleString (SIZE (1..32)) OPTIONAL, - ... -} - - -GNSS-SignalID ::= SEQUENCE { - gnss-SignalID INTEGER (0 .. 7), - ..., - [[ - gnss-SignalID-Ext-r15 INTEGER (8..23) OPTIONAL - ]] -} - - -GNSS-SignalIDs ::= SEQUENCE { - gnss-SignalIDs BIT STRING (SIZE(8)), - ..., - [[ - gnss-SignalIDs-Ext-r15 BIT STRING (SIZE(16)) OPTIONAL - ]] -} - - -GNSS-SubNetworkID-r15 ::= SEQUENCE { - subNetworkID-r15 INTEGER (0..15), - ... -} - - -SBAS-ID ::= SEQUENCE { - sbas-id ENUMERATED { waas, egnos, msas, gagan, ...}, - ... -} - - -SBAS-IDs ::= SEQUENCE { - sbas-IDs BIT STRING { waas (0), - egnos (1), - msas (2), - gagan (3) } (SIZE (1..8)), - ... -} - - -SV-ID ::= SEQUENCE { - satellite-id INTEGER(0..63), - ... -} - - -ECID-ProvideLocationInformation ::= SEQUENCE { - ecid-SignalMeasurementInformation ECID-SignalMeasurementInformation OPTIONAL, - ecid-Error ECID-Error OPTIONAL, - ... -} - - -ECID-SignalMeasurementInformation ::= SEQUENCE { - primaryCellMeasuredResults MeasuredResultsElement OPTIONAL, - measuredResultsList MeasuredResultsList, - ... -} - -MeasuredResultsList ::= SEQUENCE (SIZE(1..32)) OF MeasuredResultsElement - -MeasuredResultsElement ::= SEQUENCE { - physCellId INTEGER (0..503), - cellGlobalId CellGlobalIdEUTRA-AndUTRA OPTIONAL, - arfcnEUTRA ARFCN-ValueEUTRA, - systemFrameNumber BIT STRING (SIZE (10)) OPTIONAL, - rsrp-Result INTEGER (0..97) OPTIONAL, - rsrq-Result INTEGER (0..34) OPTIONAL, - ue-RxTxTimeDiff INTEGER (0..4095) OPTIONAL, - ..., - [[ arfcnEUTRA-v9a0 ARFCN-ValueEUTRA-v9a0 OPTIONAL -- Cond EARFCN-max - ]], - [[ nrsrp-Result-r14 INTEGER (0..113) OPTIONAL, - nrsrq-Result-r14 INTEGER (0..74) OPTIONAL, - carrierFreqOffsetNB-r14 CarrierFreqOffsetNB-r14 OPTIONAL, -- Cond NB-IoT - hyperSFN-r14 BIT STRING (SIZE (10)) OPTIONAL - ]], - [[ - rsrp-Result-v1470 INTEGER (-17..-1) OPTIONAL, - rsrq-Result-v1470 INTEGER (-30..46) OPTIONAL - ]] -} - - -ECID-RequestLocationInformation ::= SEQUENCE { - requestedMeasurements BIT STRING { rsrpReq (0), - rsrqReq (1), - ueRxTxReq (2), - nrsrpReq-r14 (3), - nrsrqReq-r14 (4)} (SIZE(1..8)), - ... -} - - -ECID-ProvideCapabilities ::= SEQUENCE { - ecid-MeasSupported BIT STRING { rsrpSup (0), - rsrqSup (1), - ueRxTxSup (2), - nrsrpSup-r14 (3), - nrsrqSup-r14 (4)} (SIZE(1..8)), - ..., - [[ ueRxTxSupTDD-r13 ENUMERATED { true } OPTIONAL - ]], - [[ periodicalReporting-r14 ENUMERATED { supported } OPTIONAL, - triggeredReporting-r14 ENUMERATED { supported } OPTIONAL, - idleStateForMeasurements-r14 ENUMERATED { required } OPTIONAL - ]] -} - - -ECID-RequestCapabilities ::= SEQUENCE { - ... -} - - -ECID-Error ::= CHOICE { - locationServerErrorCauses ECID-LocationServerErrorCauses, - targetDeviceErrorCauses ECID-TargetDeviceErrorCauses, - ... -} - - -ECID-LocationServerErrorCauses ::= SEQUENCE { - cause ENUMERATED { undefined, - ... - }, - ... -} - - -ECID-TargetDeviceErrorCauses ::= SEQUENCE { - cause ENUMERATED { undefined, - requestedMeasurementNotAvailable, - notAllrequestedMeasurementsPossible, - ... - }, - rsrpMeasurementNotPossible NULL OPTIONAL, - rsrqMeasurementNotPossible NULL OPTIONAL, - ueRxTxMeasurementNotPossible NULL OPTIONAL, - ..., - [[ - nrsrpMeasurementNotPossible-r14 NULL OPTIONAL, - nrsrqMeasurementNotPossible-r14 NULL OPTIONAL - ]] -} - - -TBS-ProvideLocationInformation-r13 ::= SEQUENCE { - tbs-MeasurementInformation-r13 TBS-MeasurementInformation-r13 OPTIONAL, - tbs-Error-r13 TBS-Error-r13 OPTIONAL, - ... -} - - -TBS-MeasurementInformation-r13 ::= SEQUENCE { - measurementReferenceTime-r13 UTCTime OPTIONAL, - mbs-SgnMeasList-r13 MBS-BeaconMeasList-r13 OPTIONAL, -- Cond MBS - ... -} - - -MBS-BeaconMeasList-r13 ::= SEQUENCE (SIZE(1..64)) OF MBS-BeaconMeasElement-r13 - -MBS-BeaconMeasElement-r13 ::= SEQUENCE { - transmitterID-r13 INTEGER (0..32767), - codePhase-r13 INTEGER (0..2097151), - codePhaseRMSError-r13 INTEGER (0..63), - ..., - [[ rssi-r14 INTEGER (-130..-30) OPTIONAL - ]] -} - - -TBS-RequestLocationInformation-r13 ::= SEQUENCE { - mbsSgnMeasListReq-r13 BOOLEAN, - ..., - [[ mbsAssistanceAvailability-r14 BOOLEAN OPTIONAL, -- Need ON - mbsRequestedMeasurements-r14 BIT STRING { - rssi (0)} (SIZE(1..8)) OPTIONAL -- Need ON - ]] -} - - -TBS-ProvideCapabilities-r13 ::= SEQUENCE { - tbs-Modes-r13 BIT STRING { standalone (0), - ue-assisted (1), - ue-based (2)} (SIZE (1..8)), - ..., - [[ mbs-AssistanceDataSupportList-r14 MBS-AssistanceDataSupportList-r14 OPTIONAL, - periodicalReportingSupported-r14 PositioningModes OPTIONAL, - mbs-ConfigSupport-r14 BIT STRING { tb1 (0), - tb2 (1), - tb3 (2), - tb4 (3)} (SIZE (1..8)) OPTIONAL, - mbs-IdleStateForMeasurements-r14 ENUMERATED { required } OPTIONAL - ]] -} - - -MBS-AssistanceDataSupportList-r14 ::= SEQUENCE { - mbs-AcquisitionAssistanceDataSupport-r14 BOOLEAN, - mbs-AlmanacAssistanceDataSupport-r14 BOOLEAN, - ... -} - - -TBS-RequestCapabilities-r13 ::= SEQUENCE { - ... -} - - -TBS-Error-r13 ::= CHOICE { - locationServerErrorCauses-r13 TBS-LocationServerErrorCauses-r13, - targetDeviceErrorCauses-r13 TBS-TargetDeviceErrorCauses-r13, - ... -} - - -TBS-LocationServerErrorCauses-r13 ::= SEQUENCE { - cause-r13 ENUMERATED { undefined, - ..., - assistanceDataNotSupportedByServer-v1420, - assistanceDataSupportedButCurrentlyNotAvailableByServer-v1420 - }, - ... -} - - -TBS-TargetDeviceErrorCauses-r13 ::= SEQUENCE { - cause-r13 ENUMERATED { undefined, - thereWereNotEnoughMBSBeaconsReceived, - ..., - assistanceDataMissing-v1420 - }, - ... -} - - -TBS-ProvideAssistanceData-r14 ::= SEQUENCE { - tbs-AssistanceDataList-r14 TBS-AssistanceDataList-r14 OPTIONAL, -- Need ON - tbs-Error-r14 TBS-Error-r13 OPTIONAL, -- Need ON - ... -} - - -TBS-AssistanceDataList-r14 ::= SEQUENCE { - mbs-AssistanceDataList-r14 MBS-AssistanceDataList-r14 OPTIONAL, -- Need ON - ... -} - -MBS-AssistanceDataList-r14 ::= SEQUENCE (SIZE (1..maxMBS-r14)) OF MBS-AssistanceDataElement-r14 - -MBS-AssistanceDataElement-r14 ::= SEQUENCE { - mbs-AlmanacAssistance-r14 MBS-AlmanacAssistance-r14 OPTIONAL, -- Need ON - mbs-AcquisitionAssistance-r14 MBS-AcquisitionAssistance-r14 OPTIONAL, -- Need ON - ... -} - -maxMBS-r14 INTEGER ::= 64 - - -MBS-AlmanacAssistance-r14 ::= SEQUENCE { - transmitterID-r14 INTEGER (0..32767), - transmitterLatitude-r14 BIT STRING (SIZE (26)), - transmitterLongitude-r14 BIT STRING (SIZE (27)), - transmitterAltitude-r14 BIT STRING (SIZE (15)), - timeCorrection-r14 INTEGER (0..25) OPTIONAL, -- Need ON - ... -} - - -MBS-AcquisitionAssistance-r14 ::= SEQUENCE { - transmitterID-r14 INTEGER (0..32767) OPTIONAL, -- Need ON - mbsConfiguration-r14 ENUMERATED {tb1, tb2, tb3, tb4, ...} OPTIONAL, -- Need ON - pnCodeIndex-r14 INTEGER (1..128) OPTIONAL, -- Need ON - freq-r14 INTEGER (919750000..927250000) OPTIONAL, -- Need ON - ... -} - - -TBS-RequestAssistanceData-r14 ::= SEQUENCE { - mbs-AlmanacAssistanceDataReq-r14 BOOLEAN, - mbs-AcquisitionAssistanceDataReq-r14 BOOLEAN, - ... -} - - -Sensor-ProvideLocationInformation-r13 ::= SEQUENCE { - sensor-MeasurementInformation-r13 Sensor-MeasurementInformation-r13 OPTIONAL, - sensor-Error-r13 Sensor-Error-r13 OPTIONAL, - ..., - [[ - sensor-MotionInformation-r15 Sensor-MotionInformation-r15 OPTIONAL - ]] -} - - -Sensor-MeasurementInformation-r13 ::= SEQUENCE { - measurementReferenceTime-r13 UTCTime OPTIONAL, - uncompensatedBarometricPressure-r13 INTEGER (30000..115000) OPTIONAL, -- Cond Barometer - ..., - [[ - uncertainty-r14 SEQUENCE { - range-r14 INTEGER (0..1000), - confidence-r14 INTEGER (1..100) - } OPTIONAL - ]], - [[ adjustment-r16 INTEGER (-5000..5000) OPTIONAL - ]] -} - - -Sensor-MotionInformation-r15 ::= SEQUENCE { - refTime-r15 DisplacementTimeStamp-r15, - displacementInfoList-r15 DisplacementInfoList-r15, - ... -} - -DisplacementInfoList-r15 ::= SEQUENCE (SIZE (1..128)) OF DisplacementInfoListElement-r15 - -DisplacementInfoListElement-r15 ::= SEQUENCE { - deltaTimeStamp-r15 DeltaTime-r15, - displacement-r15 Displacement-r15 OPTIONAL, - ... -} - -DisplacementTimeStamp-r15 ::= CHOICE { - utcTime-r15 UTC-Time-r15, - gnssTime-r15 MeasurementReferenceTime, - systemFrameNumber-r15 SFN-r15, - measurementSFN-r15 INTEGER(-8192..9214), - ... -} - -DeltaTime-r15 ::= CHOICE { - deltaTimeSec-r15 INTEGER (1..16384), - deltaTimeSFN-r15 INTEGER (1..4096), - ... -} - -SFN-r15 ::= SEQUENCE { - sfn-r15 BIT STRING (SIZE (10)), - hyperSFN-r15 BIT STRING (SIZE (10)) OPTIONAL, - ... -} - -Displacement-r15 ::= SEQUENCE { - bearing-r15 INTEGER (0..3599), - bearingUncConfidence-r15 INTEGER (0..100) OPTIONAL, - bearingRef-r15 ENUMERATED { geographicNorth, magneticNorth, local }, - horizontalDistance-r15 INTEGER (0..8191), - horizontalDistanceUnc-r15 INTEGER (0..255) OPTIONAL, - horizontalUncConfidence-r15 INTEGER (0..100) OPTIONAL, - verticalDirection-r15 ENUMERATED{upward, downward} OPTIONAL, - verticalDistance-r15 INTEGER(0..8191) OPTIONAL, - verticalDistanceUnc-r15 INTEGER (0..255) OPTIONAL, - verticalUncConfidence-r15 INTEGER (0..100) OPTIONAL, - ... -} - -UTC-Time-r15 ::= SEQUENCE { - utcTime-r15 UTCTime, - utcTime-ms-r15 INTEGER (0..999), - ... -} - - -Sensor-RequestLocationInformation-r13 ::= SEQUENCE { - uncompensatedBarometricPressureReq-r13 BOOLEAN, - ..., - [[ assistanceAvailability-r14 BOOLEAN OPTIONAL -- Need ON - ]], - [[ sensor-MotionInformationReq-r15 BOOLEAN OPTIONAL -- Need ON - ]], - [[ adjustmentReq-r16 BOOLEAN OPTIONAL -- Need ON - ]] -} - - -Sensor-ProvideCapabilities-r13 ::= SEQUENCE { - sensor-Modes-r13 BIT STRING { standalone (0), - ue-assisted (1), - ue-based (2)} (SIZE (1..8)), - ..., - [[ sensor-AssistanceDataSupportList-r14 Sensor-AssistanceDataSupportList-r14 OPTIONAL, - periodicalReportingSupported-r14 PositioningModes OPTIONAL, - idleStateForMeasurements-r14 ENUMERATED { required } OPTIONAL - ]], - [[ sensor-MotionInformationSup-r15 ENUMERATED { true } OPTIONAL - ]], - [[ adjustmentSupported-r16 ENUMERATED { true } OPTIONAL - ]] -} - -Sensor-AssistanceDataSupportList-r14 ::= SEQUENCE { - ..., - [[ validityPeriodSupported-v1520 ENUMERATED { true } OPTIONAL, - validityAreaSupported-v1520 ENUMERATED { true } OPTIONAL - ]] -} - - -Sensor-RequestCapabilities-r13 ::= SEQUENCE { - ... -} - - -Sensor-Error-r13 ::= CHOICE { - locationServerErrorCauses-r13 Sensor-LocationServerErrorCauses-r13, - targetDeviceErrorCauses-r13 Sensor-TargetDeviceErrorCauses-r13, - ... -} - - -Sensor-LocationServerErrorCauses-r13 ::= SEQUENCE { - cause-r13 ENUMERATED { undefined, - ..., - assistanceDataNotSupportedByServer-v1420, - assistanceDataSupportedButCurrentlyNotAvailableByServer-v1420 - }, - ... -} - - -Sensor-TargetDeviceErrorCauses-r13 ::= SEQUENCE { - cause-r13 ENUMERATED { undefined, - ..., - assistanceDataMissing-v1420 - }, - ... -} - - -Sensor-ProvideAssistanceData-r14 ::= SEQUENCE { - sensor-AssistanceDataList-r14 Sensor-AssistanceDataList-r14 OPTIONAL, -- Need ON - sensor-Error-r14 Sensor-Error-r13 OPTIONAL, -- Need ON - ... -} - - -Sensor-AssistanceDataList-r14::= SEQUENCE { - refPressure-r14 INTEGER (-20000..10000), - refPosition-r14 EllipsoidPointWithAltitudeAndUncertaintyEllipsoid OPTIONAL, -- Need ON - refTemperature-r14 INTEGER (-64..63) OPTIONAL, -- Need ON - ..., - [[ - period-v1520 SEQUENCE { - pressureValidityPeriod-v1520 PressureValidityPeriod-v1520, - referencePressureRate-v1520 INTEGER (-128..127) OPTIONAL, -- Need ON - ... - } OPTIONAL, -- Need ON - area-v1520 SEQUENCE { - pressureValidityArea-v1520 PressureValidityArea-v1520, - gN-pressure-v1520 INTEGER (-1024..1023) OPTIONAL, -- Need ON - gE-pressure-v1520 INTEGER (-1024..1023) OPTIONAL, -- Need ON - ... - } OPTIONAL -- Need ON - ]] -} - -PressureValidityArea-v1520 ::= SEQUENCE { - centerPoint-v1520 Ellipsoid-Point, - validityAreaWidth-v1520 INTEGER (1..128), - validityAreaHeight-v1520 INTEGER (1..128), - ... -} - -PressureValidityPeriod-v1520 ::= SEQUENCE { - beginTime-v1520 GNSS-SystemTime, - beginTimeAlt-v1520 INTEGER (0..2881) OPTIONAL, -- Need ON - duration-v1520 INTEGER (1..2881), - ... -} - - -Sensor-RequestAssistanceData-r14 ::= SEQUENCE { - ... -} - - -WLAN-ProvideLocationInformation-r13 ::= SEQUENCE { - wlan-MeasurementInformation-r13 WLAN-MeasurementInformation-r13 OPTIONAL, - wlan-Error-r13 WLAN-Error-r13 OPTIONAL, - ... -} - - -WLAN-MeasurementInformation-r13 ::= SEQUENCE { - measurementReferenceTime-r13 UTCTime OPTIONAL, - wlan-MeasurementList-r13 WLAN-MeasurementList-r13 OPTIONAL, - ... -} - -WLAN-MeasurementList-r13 ::= SEQUENCE (SIZE(1..maxWLAN-AP-r13)) OF WLAN-MeasurementElement-r13 - -WLAN-MeasurementElement-r13 ::= SEQUENCE { - wlan-AP-Identifier-r13 WLAN-AP-Identifier-r13, - rssi-r13 INTEGER (-127..128) OPTIONAL, - rtt-r13 WLAN-RTT-r13 OPTIONAL, - apChannelFrequency-r13 INTEGER (0..256) OPTIONAL, - servingFlag-r13 BOOLEAN OPTIONAL, - ... -} - -WLAN-AP-Identifier-r13 ::= SEQUENCE { - bssid-r13 OCTET STRING (SIZE (6)), - ssid-r13 OCTET STRING (SIZE (1..32)) OPTIONAL, - ... -} - -WLAN-RTT-r13 ::= SEQUENCE { - rttValue-r13 INTEGER (0..16777215), - rttUnits-r13 ENUMERATED { microseconds, - hundredsofnanoseconds, - tensofnanoseconds, - nanoseconds, - tenthsofnanoseconds, - ... }, - rttAccuracy-r13 INTEGER (0..255) OPTIONAL, - ... -} - -maxWLAN-AP-r13 INTEGER ::= 64 - - -WLAN-RequestLocationInformation-r13 ::= SEQUENCE { - requestedMeasurements-r13 BIT STRING { - rssi (0), - rtt (1)} (SIZE(1..8)), - ..., - [[ assistanceAvailability-r14 BOOLEAN OPTIONAL -- Need ON - ]] -} - - -WLAN-ProvideCapabilities-r13 ::= SEQUENCE { - wlan-Modes-r13 BIT STRING { standalone (0), - ue-assisted (1), - ue-based (2)} (SIZE (1..8)), - wlan-MeasSupported-r13 BIT STRING { - rssi-r13 (0), - rtt-r13 (1)} (SIZE(1..8)), - ... , - [[ wlan-AP-AD-Supported-r14 - BIT STRING { ap-identifier (0), - ap-location (1)} (SIZE (1..8)) - OPTIONAL, - periodicalReportingSupported-r14 PositioningModes OPTIONAL, - idleStateForMeasurements-r14 - ENUMERATED { required } OPTIONAL - ]] -} - - -WLAN-RequestCapabilities-r13 ::= SEQUENCE { - ... -} - - -WLAN-Error-r13 ::= CHOICE { - locationServerErrorCauses-r13 WLAN-LocationServerErrorCauses-r13, - targetDeviceErrorCauses-r13 WLAN-TargetDeviceErrorCauses-r13, - ... -} - - -WLAN-LocationServerErrorCauses-r13 ::= SEQUENCE { - cause-r13 ENUMERATED {undefined, - ..., - requestedADNotAvailable-v1420, - notAllrequestedADAvailable-v1420 - }, - ..., - [[ apLocationDataUnavailable-r14 NULL OPTIONAL -- Need ON - ]] -} - - -WLAN-TargetDeviceErrorCauses-r13 ::= SEQUENCE { - cause-r13 ENUMERATED {undefined, - requestedMeasurementsNotAvailable, - notAllrequestedMeasurementsPossible, - ... - }, - wlan-AP-RSSI-MeasurementNotPossible-r13 NULL OPTIONAL, - wlan-AP-RTT-MeasurementNotPossible-r13 NULL OPTIONAL, - ... -} - - -WLAN-ProvideAssistanceData-r14 ::= SEQUENCE { - wlan-DataSet-r14 SEQUENCE (SIZE (1..maxWLAN-DataSets-r14)) OF WLAN-DataSet-r14 - OPTIONAL, -- Need ON - wlan-Error-r14 WLAN-Error-r13 OPTIONAL, -- Need ON - ... -} - -maxWLAN-DataSets-r14 INTEGER ::= 8 - - -WLAN-DataSet-r14 ::= SEQUENCE { - wlan-AP-List-r14 SEQUENCE (SIZE (1..maxWLAN-AP-r14)) OF WLAN-AP-Data-r14, - supportedChannels-11a-r14 SupportedChannels-11a-r14 OPTIONAL, -- Need ON - supportedChannels-11bg-r14 SupportedChannels-11bg-r14 OPTIONAL, -- Need ON - ... -} - -SupportedChannels-11a-r14 ::= SEQUENCE { - ch34-r14 BOOLEAN, - ch36-r14 BOOLEAN, - ch38-r14 BOOLEAN, - ch40-r14 BOOLEAN, - ch42-r14 BOOLEAN, - ch44-r14 BOOLEAN, - ch46-r14 BOOLEAN, - ch48-r14 BOOLEAN, - ch52-r14 BOOLEAN, - ch56-r14 BOOLEAN, - ch60-r14 BOOLEAN, - ch64-r14 BOOLEAN, - ch149-r14 BOOLEAN, - ch153-r14 BOOLEAN, - ch157-r14 BOOLEAN, - ch161-r14 BOOLEAN -} - -SupportedChannels-11bg-r14 ::= SEQUENCE { - ch1-r14 BOOLEAN, - ch2-r14 BOOLEAN, - ch3-r14 BOOLEAN, - ch4-r14 BOOLEAN, - ch5-r14 BOOLEAN, - ch6-r14 BOOLEAN, - ch7-r14 BOOLEAN, - ch8-r14 BOOLEAN, - ch9-r14 BOOLEAN, - ch10-r14 BOOLEAN, - ch11-r14 BOOLEAN, - ch12-r14 BOOLEAN, - ch13-r14 BOOLEAN, - ch14-r14 BOOLEAN -} - -maxWLAN-AP-r14 INTEGER ::= 128 - - - -WLAN-AP-Data-r14 ::= SEQUENCE { - wlan-AP-Identifier-r14 WLAN-AP-Identifier-r13, - wlan-AP-Location-r14 WLAN-AP-Location-r14 OPTIONAL, -- Need ON - ... -} - -WLAN-AP-Location-r14 ::= SEQUENCE { - locationDataLCI-r14 LocationDataLCI-r14, - ... -} - -LocationDataLCI-r14 ::= SEQUENCE { - latitudeUncertainty-r14 BIT STRING (SIZE (6)), - latitude-r14 BIT STRING (SIZE (34)), - longitudeUncertainty-r14 BIT STRING (SIZE (6)), - longitude-r14 BIT STRING (SIZE (34)), - altitudeUncertainty-r14 BIT STRING (SIZE (6)) OPTIONAL, -- Need ON - altitude-r14 BIT STRING (SIZE (30)) OPTIONAL, -- Need ON - datum-r14 BIT STRING (SIZE (8)), - ... -} - - -WLAN-RequestAssistanceData-r14 ::= SEQUENCE { - requestedAD-r14 BIT STRING { ap-identifier (0), - ap-location (1)} (SIZE (1..8)), - visibleAPs-r14 SEQUENCE (SIZE (1..maxVisibleAPs-r14)) OF WLAN-AP-Identifier-r13 OPTIONAL, - wlan-AP-StoredData-r14 SEQUENCE (SIZE (1..maxKnownAPs-r14)) OF WLAN-AP-Identifier-r13 OPTIONAL, - ... -} - -maxVisibleAPs-r14 INTEGER ::= 32 -maxKnownAPs-r14 INTEGER ::= 2048 - - -BT-ProvideLocationInformation-r13 ::= SEQUENCE { - bt-MeasurementInformation-r13 BT-MeasurementInformation-r13 OPTIONAL, - bt-Error-r13 BT-Error-r13 OPTIONAL, - ... -} - - -BT-MeasurementInformation-r13 ::= SEQUENCE { - measurementReferenceTime-r13 UTCTime OPTIONAL, - bt-MeasurementList-r13 BT-MeasurementList-r13 OPTIONAL, - ... -} - -BT-MeasurementList-r13 ::= SEQUENCE (SIZE(1..maxBT-Beacon-r13)) OF BT-MeasurementElement-r13 - - -BT-MeasurementElement-r13 ::= SEQUENCE { - btAddr-r13 BIT STRING (SIZE (48)), - rssi-r13 INTEGER (-128..127) OPTIONAL, - ... -} - -maxBT-Beacon-r13 INTEGER ::= 32 - - -BT-RequestLocationInformation-r13 ::= SEQUENCE { - requestedMeasurements-r13 BIT STRING { - rssi (0)} (SIZE(1..8)), - ... -} - - -BT-ProvideCapabilities-r13 ::= SEQUENCE { - bt-Modes-r13 BIT STRING { standalone (0), - ue-assisted (1)} (SIZE (1..8)), - bt-MeasSupported-r13 BIT STRING { rssi-r13 (0)} (SIZE (1..8)), - ..., - [[ - idleStateForMeasurements-r14 - ENUMERATED { required } OPTIONAL, - periodicalReportingSupported-r14 - PositioningModes OPTIONAL - ]] -} - - -BT-RequestCapabilities-r13 ::= SEQUENCE { - ... -} - - -BT-Error-r13 ::= CHOICE { - locationServerErrorCauses-r13 BT-LocationServerErrorCauses-r13, - targetDeviceErrorCauses-r13 BT-TargetDeviceErrorCauses-r13, - ... -} - - -BT-LocationServerErrorCauses-r13 ::= SEQUENCE { - cause-r13 ENUMERATED {undefined, ...}, - ... -} - - -BT-TargetDeviceErrorCauses-r13 ::= SEQUENCE { - cause-r13 ENUMERATED {undefined, - requestedMeasurementsNotAvailable, - notAllrequestedMeasurementsPossible, - ... - }, - bt-Beacon-rssiMeasurementNotPossible-r13 NULL OPTIONAL, - ... -} - - -NR-UL-ProvideCapabilities-r16 ::= SEQUENCE { - nr-UL-SRS-MeasCapability-r16 NR-UL-SRS-MeasCapability-r16, - ... -} - -NR-UL-RequestCapabilities-r16 ::= SEQUENCE { - ... -} - -NR-ECID-ProvideLocationInformation-r16 ::= SEQUENCE { - nr-ECID-SignalMeasurementInformation-r16 NR-ECID-SignalMeasurementInformation-r16 OPTIONAL, - nr-ECID-Error-r16 NR-ECID-Error-r16 OPTIONAL, - ... -} - - -NR-ECID-SignalMeasurementInformation-r16 ::= SEQUENCE { - nr-PrimaryCellMeasuredResults-r16 NR-MeasuredResultsElement-r16, - nr-MeasuredResultsList-r16 NR-MeasuredResultsList-r16 OPTIONAL, - ... -} - -NR-MeasuredResultsList-r16 ::= SEQUENCE (SIZE(1..32)) OF NR-MeasuredResultsElement-r16 - -NR-MeasuredResultsElement-r16 ::= SEQUENCE { - systemFrameNumber BIT STRING (SIZE (10)), - trp-ID-r16 TRP-ID-r16 OPTIONAL, - measResultNR-r16 SEQUENCE { - cellResults-r16 SEQUENCE{ - resultsSSB-Cell-r16 MeasQuantityResults-r16 OPTIONAL, - resultsCSI-RS-Cell-r16 MeasQuantityResults-r16 OPTIONAL - }, - rsIndexResults-r16 SEQUENCE{ - resultsSSB-Indexes-r16 ResultsPerSSB-IndexList-r16 OPTIONAL, - resultsCSI-RS-Indexes-r16 ResultsPerCSI-RS-IndexList-r16 OPTIONAL - } OPTIONAL - }, - ... -} - -MeasQuantityResults-r16 ::= SEQUENCE { - nr-RSRP-r16 INTEGER (0..127) OPTIONAL, - nr-RSRQ-r16 INTEGER (0..127) OPTIONAL -} - -ResultsPerSSB-IndexList-r16::= SEQUENCE (SIZE (1..64)) OF ResultsPerSSB-Index-r16 - -ResultsPerSSB-Index-r16 ::= SEQUENCE { - ssb-Index-r16 INTEGER (0..63), - ssb-Results-r16 MeasQuantityResults-r16 OPTIONAL -} - -ResultsPerCSI-RS-IndexList-r16::= SEQUENCE (SIZE (1..64)) OF ResultsPerCSI-RS-Index-r16 - -ResultsPerCSI-RS-Index-r16 ::= SEQUENCE { - csi-RS-Index-r16 INTEGER (0..95), - csi-RS-Results-r16 MeasQuantityResults-r16 OPTIONAL -} - - -NR-ECID-RequestLocationInformation-r16 ::= SEQUENCE { - requestedMeasurements-r16 BIT STRING { ssrsrpReq (0), - ssrsrqReq (1), - csirsrpReq (2), - csirsrqReq (3)} (SIZE(1..8)), - ... -} - - -NR-ECID-ProvideCapabilities-r16 ::= SEQUENCE { - nr-ECID-MeasSupported-r16 BIT STRING { ssrsrpSup (0), - ssrsrqSup (1), - csirsrpSup (2), - csirsrqSup (3)} (SIZE(1..8)), - periodicalReporting-r16 ENUMERATED { supported } OPTIONAL, - triggeredReporting-r16 ENUMERATED { supported } OPTIONAL, - ... -} - - -NR-ECID-RequestCapabilities-r16 ::= SEQUENCE { - ... -} - - -NR-ECID-Error-r16 ::= CHOICE { - locationServerErrorCauses-r16 NR-ECID-LocationServerErrorCauses-r16, - targetDeviceErrorCauses-r16 NR-ECID-TargetDeviceErrorCauses-r16, - ... -} - - -NR-ECID-LocationServerErrorCauses-r16 ::= SEQUENCE { - cause-r16 ENUMERATED {undefined, - ... - }, - ... -} - - -NR-ECID-TargetDeviceErrorCauses-r16 ::= SEQUENCE { - cause-r16 ENUMERATED { undefined, - requestedMeasurementNotAvailable, - notAllrequestedMeasurementsPossible, - ... - }, - ss-RSRPMeasurementNotPossible NULL OPTIONAL, - ss-RSRQMeasurementNotPossible NULL OPTIONAL, - csi-RSRPMeasurementNotPossible NULL OPTIONAL, - csi-RSRQMeasurementNotPossible NULL OPTIONAL, - ... -} - - -NR-DL-TDOA-ProvideAssistanceData-r16 ::= SEQUENCE { - nr-DL-PRS-AssistanceData-r16 NR-DL-PRS-AssistanceData-r16 OPTIONAL, -- Need ON - nr-SelectedDL-PRS-IndexList-r16 SEQUENCE (SIZE (1..nrMaxFreqLayers)) OF NR-SelectedDL-PRS-PerFreq-r16 OPTIONAL, -- Need ON - nr-PositionCalculationAssistanceData-r16 - NR-PositionCalculationAssistanceData-r16 - OPTIONAL, -- Cond UEB - nr-DL-TDOA-Error-r16 NR-DL-TDOA-Error-r16 OPTIONAL, -- Need ON - ... -} - - -NR-DL-TDOA-RequestAssistanceData-r16 ::= SEQUENCE { - nr-PhysCellId-r16 NR-PhysCellId-r16 OPTIONAL, - nr-AdType-r16 BIT STRING { dl-prs (0), - posCalc (1) } (SIZE (1..8)), - ... -} - - -NR-DL-TDOA-ProvideLocationInformation-r16 ::= SEQUENCE { - nr-DL-TDOA-SignalMeasurementInformation-r16 - NR-DL-TDOA-SignalMeasurementInformation-r16 OPTIONAL, - nr-dl-tdoa-LocationInformation-r16 NR-DL-TDOA-LocationInformation-r16 OPTIONAL, -- Cond UEB - nr-DL-TDOA-Error-r16 NR-DL-TDOA-Error-r16 OPTIONAL, - ... -} - - -NR-DL-TDOA-SignalMeasurementInformation-r16 ::= SEQUENCE { - dl-PRS-ReferenceInfo-r16 DL-PRS-IdInfo-r16, - nr-DL-TDOA-MeasList-r16 NR-DL-TDOA-MeasList-r16, - ... -} - -NR-DL-TDOA-MeasList-r16 ::= SEQUENCE (SIZE(1.. nrMaxTRPs)) OF NR-DL-TDOA-MeasElement-r16 - -NR-DL-TDOA-MeasElement-r16 ::= SEQUENCE { - trp-ID-r16 TRP-ID-r16 OPTIONAL, - nr-DL-PRS-ResourceID-r16 NR-DL-PRS-ResourceID-r16 OPTIONAL, - nr-DL-PRS-ResourceSetID-r16 NR-DL-PRS-ResourceSetID-r16 OPTIONAL, - nr-TimeStamp-r16 NR-TimeStamp-r16, - nr-RSTD-r16 INTEGER (0..xFFS), -- FFS on the value range - nr-AdditionalPathList-r16 NR-AdditionalPathList-r16 OPTIONAL, - nr-TimingMeasQuality-r16 NR-TimingMeasQuality-r16, - nr-PRS-RSRP-Result-r16 INTEGER (xFFS) OPTIONAL, -- FFS, value range to be decided in RAN4. - nr-DL-TDOA-AdditionalMeasurements-r16 NR-DL-TDOA-AdditionalMeasurements-r16, - ... -} -NR-DL-TDOA-AdditionalMeasurements-r16 ::= SEQUENCE (SIZE (1..3)) OF NR-DL-TDOA-AdditionalMeasurementElement-r16 - -NR-AdditionalPathList-r16 ::= SEQUENCE (SIZE(1..2)) OF NR-AdditionalPath-r16 - -NR-DL-TDOA-AdditionalMeasurementElement-r16 ::= SEQUENCE { - nr-DL-PRS-ResourceID-r16 NR-DL-PRS-ResourceID-r16 OPTIONAL, - nr-DL-PRS-ResourceSetID-r16 NR-DL-PRS-ResourceSetID-r16 OPTIONAL, - nr-TimeStamp-r16 NR-TimeStamp-r16, - nr-RSTD-ResultDiff-r16 INTEGER (0..xFFS), -- FFS on the value range to be decided in RAN4 - dl-PRS-RSRP-ResultDiff-r16 INTEGER (xFFS) OPTIONAL, -- FFS on the value range to be decided in RAN4 - nr-AdditionalPathList-r16 NR-AdditionalPathList-r16 OPTIONAL, -... -} - -nrMaxTRPs INTEGER ::= 256 -- Max TRPs per UE - - -NR-DL-TDOA-LocationInformation-r16 ::= SEQUENCE { - measurementReferenceTime-r16 CHOICE { - systemFrameNumber-r16 NR-TimeStamp-r16, - utc-time-r16 UTCTime, - ... - } OPTIONAL, - ... -} - - -NR-DL-TDOA-RequestLocationInformation-r16 ::= SEQUENCE { - nr-DL-PRS-RstdMeasurementInfoRequest-r16 ENUMERATED { true } OPTIONAL, -- Need ON - nr-RequestedMeasurements-r16 BIT STRING { prsrsrpReq (0) - } (SIZE(1..8)), - nr-AssistanceAvailability-r16 BOOLEAN, - nr-DL-TDOA-ReportConfig-r16 NR-DL-TDOA-ReportConfig-r16 OPTIONAL, -- Need ON - additionalPaths-r16 ENUMERATED { requested } OPTIONAL, -- Need ON - ... -} - -NR-DL-TDOA-ReportConfig-r16 ::= SEQUENCE { - maxDL-PRS-RSRP-MeasurementsPerTRP-r16 INTEGER (1..8) OPTIONAL, - maxDL-PRS-RSTD-MeasurementsPerTRPPair-r16 INTEGER (1..4) OPTIONAL, - timingReportingGranularityFactor-r16 INTEGER (xFFS) OPTIONAL -- FFS in RAN4 -} - - -NR-DL-TDOA-ProvideCapabilities-r16 ::= SEQUENCE { - nr-DL-TDOA-Mode-r16 PositioningModes, - nr-DL-TDOA-MeasCapability-r16 NR-DL-PRS-MeasCapability-r16 OPTIONAL, - nr-DL-TDOA-MeasSupported-r16 BIT STRING { prsrsrpSup (0)} (SIZE(1..8)), - additionalPathsReport-r16 ENUMERATED { supported } OPTIONAL, - periodicalReporting-r16 ENUMERATED { supported } OPTIONAL, -... -} - - -NR-DL-TDOA-RequestCapabilities-r16 ::= SEQUENCE { - ... -} - - -NR-DL-TDOA-Error-r16 ::= CHOICE { - locationServerErrorCauses-r16 NR-DL-TDOA-LocationServerErrorCauses-r16, - targetDeviceErrorCauses-r16 NR-DL-TDOA-TargetDeviceErrorCauses-r16, - ... -} - - -NR-DL-TDOA-LocationServerErrorCauses-r16 ::= SEQUENCE { - cause-r16 ENUMERATED { undefined, - assistanceDataNotSupportedByServer, - assistanceDataSupportedButCurrentlyNotAvailableByServer, - notProvidedAssistanceDataNotSupportedByServer, ... - }, - ... -} - - -NR-DL-TDOA-TargetDeviceErrorCauses-r16 ::= SEQUENCE { - cause-r16 ENUMERATED { undefined, - assistance-data-missing, - unableToMeasureAnyTRP, - attemptedButUnableToMeasureSomeNeighbourTRPs, - thereWereNotEnoughSignalsReceivedForUeBasedDL-TDOA, - locationCalculationAssistanceDataMissing, ... - }, - nr-PRS-RSRPMeasurementNotPossible-r16 NULL OPTIONAL, - nr-RSTDMeasurementNotPossible-r16 NULL OPTIONAL, - ... -} - - -NR-DL-AoD-ProvideAssistanceData-r16 ::= SEQUENCE { - nr-DL-PRS-AssistanceData-r16 NR-DL-PRS-AssistanceData-r16 OPTIONAL, -- Need ON - nr-SelectedDL-PRS-IndexList-r16 SEQUENCE (SIZE (1..nrMaxFreqLayers)) OF NR-SelectedDL-PRS-PerFreq-r16 OPTIONAL, -- Need ON - - nr-PositionCalculationAssistanceData-r16 - NR-PositionCalculationAssistanceData-r16 - OPTIONAL, -- Cond UEB - nr-DL-AoD-Error-r16 NR-DL-AoD-Error-r16 OPTIONAL, -- Need ON - ... -} - - -NR-DL-AoD-RequestAssistanceData-r16 ::= SEQUENCE { - nr-PhysCellId-r16 NR-PhysCellId-r16 OPTIONAL, - nr-AdType-r16 BIT STRING { dl-prs (0), posCalc (1) } (SIZE (1..8)), - ... -} - - -NR-DL-AoD-ProvideLocationInformation-r16 ::= SEQUENCE { - nr-DL-AoD-SignalMeasurementInformation-r16 - NR-DL-AoD-SignalMeasurementInformation-r16 OPTIONAL, - nr-dl-aod-LocationInformation-r16 NR-DL-AoD-LocationInformation-r16 OPTIONAL, -- Cond UEB - - nr-DL-AoD-Error-r16 NR-DL-AoD-Error-r16 OPTIONAL, - ... -} - - -NR-DL-AoD-SignalMeasurementInformation-r16 ::= SEQUENCE { - nr-DL-AoD-MeasList-r16 NR-DL-AoD-MeasList-r16, - ... -} -NR-DL-AoD-MeasList-r16 ::= SEQUENCE (SIZE(1..nrMaxTRPs)) OF NR-DL-AoD-MeasElement-r16 - -NR-DL-AoD-MeasElement-r16 ::= SEQUENCE { - trp-ID-r16 TRP-ID-r16 OPTIONAL, - nr-DL-PRS-ResourceID-r16 NR-DL-PRS-ResourceID-r16 OPTIONAL, - nr-DL-PRS-ResourceSetID-r16 NR-DL-PRS-ResourceSetID-r16 OPTIONAL, - nr-TimeStamp-r16 NR-TimeStamp-r16, - nr-PRS-RSRP-Result-r16 INTEGER (xFFS) OPTIONAL, -- Need RAN4 inputs on value range - nr-DL-PRS-RxBeamIndex-r16 INTEGER (1..8), - nr-TimingMeasQuality-r16 NR-TimingMeasQuality-r16, - nr-DL-Aod-AdditionalMeasurements-r16 NR-DL-AoD-AdditionalMeasurements-r16, - ... -} - -NR-DL-AoD-AdditionalMeasurements-r16 ::= SEQUENCE (SIZE (1..7)) OF NR-DL-AoD-AdditionalMeasurementElement-r16 - -NR-DL-AoD-AdditionalMeasurementElement-r16 ::= SEQUENCE { - nr-DL-PRS-ResourceID-r16 NR-DL-PRS-ResourceID-r16 OPTIONAL, - nr-DL-PRS-ResourceSetID-r16 NR-DL-PRS-ResourceSetID-r16 OPTIONAL, - nr-TimeStamp-r16 NR-TimeStamp-r16, - nr-PRS-RSRP-ResultDiff-r16 INTEGER (xFFS) OPTIONAL, -- Need RAN4 inputs on value range - nr-DL-PRS-RxBeamIndex-r16 INTEGER (1..8), - ... -} - - -NR-DL-AoD-LocationInformation-r16 ::= SEQUENCE { - measurementReferenceTime-r16 CHOICE { - sfn-time-r16 NR-TimeStamp-r16, - utc-time-r16 UTCTime, - ... - } OPTIONAL, - ... -} - - -NR-DL-AoD-RequestLocationInformation-r16 ::= SEQUENCE { - nr-AssistanceAvailability-r16 BOOLEAN, - nr-DL-AoD-ReportConfig-r16 NR-DL-AoD-ReportConfig-r16, - ... -} - -NR-DL-AoD-ReportConfig-r16 ::= SEQUENCE { - maxDL-PRS-RSRP-MeasurementsPerTRP-r16 INTEGER (1..8) OPTIONAL - -} - - -NR-DL-AoD-ProvideCapabilities-r16 ::= SEQUENCE { - nr-DL-TDOA-Mode-r16 PositioningModes, - periodicalReporting-r16 ENUMERATED { supported } OPTIONAL, - nr-DL-PRS-MeasCapability-r16 NR-DL-PRS-MeasCapability-r16 OPTIONAL, - ... -} - - -NR-DL-AoD-RequestCapabilities-r16 ::= SEQUENCE { - ... -} - - -NR-DL-AoD-Error-r16 ::= CHOICE { - locationServerErrorCauses-r16 NR-DL-AoD-LocationServerErrorCauses-r16, - targetDeviceErrorCauses-r16 NR-DL-AoD-TargetDeviceErrorCauses-r16, - ... -} - - -NR-DL-AoD-LocationServerErrorCauses-r16 ::= SEQUENCE { - cause-r16 ENUMERATED { undefined, - assistanceDataNotSupportedByServer, - assistanceDataSupportedButCurrentlyNotAvailableByServer, - notProvidedAssistanceDataNotSupportedByServer, - ... - }, - ... -} - - -NR-DL-AoD-TargetDeviceErrorCauses-r16 ::= SEQUENCE { - cause-r16 ENUMERATED { undefined, - assistance-data-missing, - unableToMeasureAnyTRP, - attemptedButUnableToMeasureSomeNeighbourTRPs, - thereWereNotEnoughSignalsReceivedForUeBasedDL-AoD, - locationCalculationAssistanceDataMissing, - ... - }, - nr-PRS-RSRPMeasurementNotPossible-r16 NULL OPTIONAL, - ... -} - - -NR-Multi-RTT-ProvideAssistanceData-r16 ::= SEQUENCE { - nr-DL-PRS-AssistanceData-r16 NR-DL-PRS-AssistanceData-r16 OPTIONAL, --Need ON - nr-SelectedDL-PRS-IndexList-r16 SEQUENCE (SIZE (1..nrMaxFreqLayers)) OF NR-SelectedDL-PRS-PerFreq-r16 OPTIONAL, -- Need ON - - nr-Multi-RTT-Error-r16 NR-Multi-RTT-Error-r16 OPTIONAL, -- Need ON - ... -} - - -NR-Multi-RTT-RequestAssistanceData-r16 ::= SEQUENCE { - nr-PhysCellId-r16 NR-PhysCellId-r16 OPTIONAL, - nr-AdType-r16 BIT STRING { dl-prs (0), ul-srs (1) } (SIZE (1..8)), - ... -} - - -NR-Multi-RTT-ProvideLocationInformation-r16 ::= SEQUENCE { - nr-Multi-RTT-SignalMeasurementInformation-r16 NR-Multi-RTT-SignalMeasurementInformation-r16 OPTIONAL, - nr-Multi-RTT-Error-r16 NR-Multi-RTT-Error-r16 OPTIONAL, - ... -} - - -NR-Multi-RTT-SignalMeasurementInformation-r16 ::= SEQUENCE { - nr-Multi-RTT-MeasList-r16 NR-Multi-RTT-MeasList-r16, - ... -} - -NR-Multi-RTT-MeasList-r16 ::= SEQUENCE (SIZE(1.. nrMaxTRPs)) OF NR-Multi-RTT-MeasElement-r16 - -NR-Multi-RTT-MeasElement-r16 ::= SEQUENCE { - trp-ID-r16 TRP-ID-r16 OPTIONAL, - nr-DL-PRS-ResourceID-r16 NR-DL-PRS-ResourceID-r16 OPTIONAL, - nr-DL-PRS-ResourceSetID-r16 NR-DL-PRS-ResourceSetID-r16 OPTIONAL, - nr-UE-RxTxTimeDiff-r16 INTEGER (0..xFFS) OPTIONAL, -- FFS on the value range to be decided in RAN4 - nr-AdditionalPathList-r16 NR-AdditionalPathList-r16 OPTIONAL, - nr-TimeStamp-r16 NR-TimeStamp-r16, - nr-TimingMeasQuality-r16 NR-TimingMeasQuality-r16, - nr-PRS-RSRP-Result-r16 INTEGER (xFFS) OPTIONAL, -- FFS, value range to be decided in RAN4. - nr-Multi-RTT-AdditionalMeasurements-r16 NR-Multi-RTT-AdditionalMeasurements-r16, - ... -} -NR-Multi-RTT-AdditionalMeasurements-r16 ::= SEQUENCE (SIZE (1..3)) OF NR-Multi-RTT-AdditionalMeasurementElement-r16 - -NR-Multi-RTT-AdditionalMeasurementElement-r16 ::= SEQUENCE { - nr-DL-PRS-ResourceID-r16 NR-DL-PRS-ResourceID-r16 OPTIONAL, - nr-DL-PRS-ResourceSetID-r16 NR-DL-PRS-ResourceSetID-r16 OPTIONAL, - nr-PRS-RSRP-ResultDiff-r16 INTEGER (xFFS) OPTIONAL, -- FFS, value range to be decided in RAN4. - nr-UE-RxTxTimeDiffAdditional-r16 INTEGER (0..xFFS) OPTIONAL, -- FFS on the value range - nr-AdditionalPathList-r16 NR-AdditionalPathList-r16 OPTIONAL, - nr-TimeStamp-r16 NR-TimeStamp-r16, - ... -} - - -NR-Multi-RTT-RequestLocationInformation-r16 ::= SEQUENCE { - nr-RequestedMeasurements-r16 BIT STRING { prsrsrpReq (0)} (SIZE(1..8)), - nr-AssistanceAvailability-r16 BOOLEAN, - nr-Multi-RTT-ReportConfig-r16 NR-Multi-RTT-ReportConfig-r16, - additionalPaths-r16 ENUMERATED { requested } OPTIONAL, -- Need ON - ... -} - -NR-Multi-RTT-ReportConfig-r16 ::= SEQUENCE { - maxDL-PRS-RSRP-MeasurementsPerTRP-r16 INTEGER (1..8) OPTIONAL, - maxDL-PRS-RxTxTimeDiffMeasPerTRP-r16 INTEGER (1..4) OPTIONAL, - timingReportingGranularityFactor-r16 INTEGER (xFFS) OPTIONAL -- FFS in RAN4 -} - - -NR-Multi-RTT-ProvideCapabilities-r16 ::= SEQUENCE { - nr-DL-PRS-MeasCapability-r16 NR-DL-PRS-MeasCapability-r16, - nr-UL-SRS-MeasCapability-r16 NR-UL-SRS-MeasCapability-r16, - nr-Multi-RTT-MeasSupported-r16 BIT STRING { prsrsrpSup (0)} (SIZE(1..8)), - additionalPathsReport-r16 ENUMERATED { supported } OPTIONAL, - periodicalReporting-r16 ENUMERATED { supported } OPTIONAL, - ... -} - -NR-Multi-RTT-RequestCapabilities-r16 ::= SEQUENCE { - ... -} - - -NR-Multi-RTT-Error-r16 ::= CHOICE { - locationServerErrorCauses-r16 NR-Multi-RTT-LocationServerErrorCauses-r16, - targetDeviceErrorCauses-r16 NR-Multi-RTT-TargetDeviceErrorCauses-r16, - ... -} - - -NR-Multi-RTT-LocationServerErrorCauses-r16 ::= SEQUENCE { - cause-r16 ENUMERATED { undefined, - assistanceDataNotSupportedByServer, - assistanceDataSupportedButCurrentlyNotAvailableByServer, - ... - }, - ... -} - - -NR-Multi-RTT-TargetDeviceErrorCauses-r16 ::= SEQUENCE { - cause-r16 ENUMERATED { undefined, - dl-assistance-data-missing, - unableToMeasureAnyTRP, - attemptedButUnableToMeasureSomeNeighbourTRPs, - ul-srs-configuration-missing, - unableToTransmit-ul-prs, - ... - }, - nr-PRS-RSRPMeasurementNotPossible-r16 NULL OPTIONAL, - nr-UERxTxMeasurementNotPossible-r16 NULL OPTIONAL, - ... -} - - -END diff --git a/asn.1/src/RRLP-Components.asn b/asn.1/src/RRLP-Components.asn deleted file mode 100644 index 04a6a7f7..00000000 --- a/asn.1/src/RRLP-Components.asn +++ /dev/null @@ -1,2366 +0,0 @@ --- RRLP-Components.asn --- $Id$ --- Taken from 3GPP TS 44.031 V9.2.0 (2010-03) --- http://www.3gpp.org/ftp/Specs/archive/44_series/44.031/44031-920.zip/44031-920.doc --- --- 4 Components --- 5 Elements of Components --- - -RRLP-Components --- { RRLP-Components } - -DEFINITIONS AUTOMATIC TAGS ::= - -BEGIN - ---IMPORTS --- Ext-GeographicalInformation, VelocityEstimate ---FROM --- MAP-LCS-DataTypes { --- ccitt identified-organization (4) etsi (0) mobileDomain (0) --- gsm-Network (1) modules (3) map-LCS-DataTypes (25) version5 (5)} --- --- ExtensionContainer ---FROM MAP-ExtensionDataTypes { --- ccitt identified-organization (4) etsi (0) mobileDomain (0) --- gsm-Network (1) modules (3) map-ExtensionDataTypes (21) version4 (4)} ---; - -VelocityEstimate ::= INTEGER -ExtensionContainer ::= INTEGER - -Ext-GeographicalInformation ::= OCTET STRING (SIZE (1..maxExt-GeographicalInformation)) -maxExt-GeographicalInformation INTEGER ::= 20 - --- Add here other ASN.1 definitions presented below --- in chapters 4 and 5. - --- Measurement Position request component -MsrPosition-Req ::= SEQUENCE { - positionInstruct PositionInstruct, - referenceAssistData ReferenceAssistData OPTIONAL, - msrAssistData MsrAssistData OPTIONAL, - systemInfoAssistData SystemInfoAssistData OPTIONAL, - gps-AssistData GPS-AssistData OPTIONAL, - extensionContainer ExtensionContainer OPTIONAL, - ..., - -- Release 98 extension element -rel98-MsrPosition-Req-extension Rel98-MsrPosition-Req-Extension OPTIONAL, - -- Release 5 extension element -rel5-MsrPosition-Req-extension Rel5-MsrPosition-Req-Extension OPTIONAL, - -- Release 7 extension element -rel7-MsrPosition-Req-extension Rel7-MsrPosition-Req-Extension OPTIONAL -} - - - --- Measurement Position response component -MsrPosition-Rsp ::= SEQUENCE { - multipleSets MultipleSets OPTIONAL, - referenceIdentity ReferenceIdentity OPTIONAL, - otd-MeasureInfo OTD-MeasureInfo OPTIONAL, - locationInfo LocationInfo OPTIONAL, - gps-MeasureInfo GPS-MeasureInfo OPTIONAL, - locationError LocationError OPTIONAL, - extensionContainer ExtensionContainer OPTIONAL, - ..., - -- Release extension here - rel-98-MsrPosition-Rsp-Extension - Rel-98-MsrPosition-Rsp-Extension OPTIONAL, - rel-5-MsrPosition-Rsp-Extension - Rel-5-MsrPosition-Rsp-Extension OPTIONAL, - -- When RRLP pseudo-segmentation is used, rel-5-MsrPosition-Rsp-Extension - -- and other possible future extensions should be the ones included in - -- the 2nd MsrPosition-Rsp component. - rel-7-MsrPosition-Rsp-Extension - Rel-7-MsrPosition-Rsp-Extension OPTIONAL -} - - --- Assistance Data component -AssistanceData ::= SEQUENCE { - referenceAssistData ReferenceAssistData OPTIONAL, - msrAssistData MsrAssistData OPTIONAL, - systemInfoAssistData SystemInfoAssistData OPTIONAL, - gps-AssistData GPS-AssistData OPTIONAL, - moreAssDataToBeSent MoreAssDataToBeSent OPTIONAL, -- If not present, interpret as only - -- Assistance Data component used to - -- deliver entire set of assistance - -- data. - extensionContainer ExtensionContainer OPTIONAL, - ..., - -- Release extension here - rel98-AssistanceData-Extension Rel98-AssistanceData-Extension OPTIONAL, - rel5-AssistanceData-Extension Rel5-AssistanceData-Extension OPTIONAL, - rel7-AssistanceData-Extension Rel7-AssistanceData-Extension OPTIONAL -} - - --- Protocol Error component -ProtocolError ::= SEQUENCE { - errorCause ErrorCodes, - extensionContainer ExtensionContainer OPTIONAL, - ..., - -- Release extensions here - rel-5-ProtocolError-Extension Rel-5-ProtocolError-Extension OPTIONAL -} - - --- Positioning Capability request component -PosCapability-Req ::= SEQUENCE { - extended-reference Extended-reference, - gANSSPositionMethods GANSSPositionMethods OPTIONAL, - extensionContainer ExtensionContainer OPTIONAL, - ... -} - - --- Positioning Capability response component -PosCapability-Rsp ::= SEQUENCE { - extended-reference Extended-reference, - posCapabilities PosCapabilities, - --- assistanceSupported shall be included if and only if any of the assistance data is supported - assistanceSupported AssistanceSupported OPTIONAL, - assistanceNeeded AssistanceNeeded OPTIONAL, - extensionContainer ExtensionContainer OPTIONAL, - ... -} - - --- add these defintions to RRLP-Components module --- Position instructions -PositionInstruct ::= SEQUENCE { - -- Method type - methodType MethodType, - positionMethod PositionMethod, - measureResponseTime MeasureResponseTime, - useMultipleSets UseMultipleSets, - environmentCharacter EnvironmentCharacter OPTIONAL -} - --- -MethodType ::= CHOICE { - msAssisted AccuracyOpt, -- accuracy is optional - msBased Accuracy, -- accuracy is mandatory - msBasedPref Accuracy, -- accuracy is mandatory - msAssistedPref Accuracy -- accuracy is mandatory -} - --- Accuracy of the location estimation -AccuracyOpt ::= SEQUENCE { - accuracy Accuracy OPTIONAL -} - - --- The values of this field are defined in 3GPP TS 23.032 (Uncertainty code) -Accuracy ::= INTEGER (0..127) - --- Position Method -PositionMethod ::= ENUMERATED { - eotd (0), - gps (1), - gpsOrEOTD (2) -} - --- Measurement request response time -MeasureResponseTime ::= INTEGER (0..7) - --- useMultiple Sets, FFS! -UseMultipleSets ::= ENUMERATED { - multipleSets (0), -- multiple sets are allowed - oneSet (1) -- sending of multiple is not allowed -} - --- Environment characterization -EnvironmentCharacter ::= ENUMERATED { - badArea (0), -- bad urban or suburban, heavy multipath and NLOS - notBadArea (1), -- light multipath and NLOS - mixedArea (2), -- not defined or mixed environment - ... -} - --- E-OTD reference BTS for Assitance data IE -ReferenceAssistData ::= SEQUENCE { - bcchCarrier BCCHCarrier, -- BCCH carrier - bsic BSIC, -- BSIC - timeSlotScheme TimeSlotScheme, -- Timeslot scheme - btsPosition BTSPosition OPTIONAL -} - --- ellipsoid point and --- ellipsoid point with altitude and uncertainty ellipsoid shapes are supported -BTSPosition ::= Ext-GeographicalInformation - --- RF channel number of BCCH -BCCHCarrier ::= INTEGER (0..1023) - --- Base station Identity Code -BSIC ::= INTEGER (0..63) - --- Timeslot scheme -TimeSlotScheme ::= ENUMERATED { - equalLength (0), - variousLength (1) -} - --- Time slot (modulo) -ModuloTimeSlot ::= INTEGER (0..3) - --- E-OTD measurement assistance data IE --- The total number of neighbors in this element (MsrAssistData) --- and in SystemInfoAssistData element (presented neighbors --- can be at a maximum 15!) -MsrAssistData ::= SEQUENCE { - msrAssistList SeqOfMsrAssistBTS -} -SeqOfMsrAssistBTS ::= SEQUENCE (SIZE(1..15)) OF MsrAssistBTS - -MsrAssistBTS ::= SEQUENCE { - bcchCarrier BCCHCarrier, -- BCCH carrier - bsic BSIC, -- BSIC - multiFrameOffset MultiFrameOffset, -- multiframe offset - timeSlotScheme TimeSlotScheme, -- Timeslot scheme - roughRTD RoughRTD, -- rough RTD value - - -- Location Calculation Assistance data is moved here - calcAssistanceBTS CalcAssistanceBTS OPTIONAL -} - --- Multiframe offset -MultiFrameOffset ::= INTEGER (0..51) --- The Multiframe Offset value 51 shall not be encoded by the transmitting entity and --- shall be treated by the receiving entity as 0. - --- Rough RTD value between one base station and reference BTS -RoughRTD ::= INTEGER (0..1250) --- The RoughRTD value 1250 shall not be encoded by the transmitting entity and shall --- be treated by the receiving entity as 0. - --- E-OTD Measurement assistance data for system information List IE --- The total number of base stations in this element (SystemInfoAssistData --- presented neighbors) and in MsrAssistData element can be at a maximum 15. -SystemInfoAssistData ::= SEQUENCE { - systemInfoAssistList SeqOfSystemInfoAssistBTS -} -SeqOfSystemInfoAssistBTS::= SEQUENCE (SIZE(1..32)) OF SystemInfoAssistBTS - --- whether n.th is present or not ? -SystemInfoAssistBTS ::= CHOICE { - notPresent NULL, - present AssistBTSData -} - --- Actual assistance data for system information base station -AssistBTSData ::= SEQUENCE { - bsic BSIC, -- BSIC - multiFrameOffset MultiFrameOffset, -- multiframe offset - timeSlotScheme TimeSlotScheme, -- Timeslot scheme - roughRTD RoughRTD, -- rough RTD value - - -- Location Calculation Assistance data - calcAssistanceBTS CalcAssistanceBTS OPTIONAL -} - --- E-OTD Location calculation assistance data, --- CalcAssistanceBTS element is optional not subfields -CalcAssistanceBTS ::= SEQUENCE { - fineRTD FineRTD, -- fine RTD value between base stations - referenceWGS84 ReferenceWGS84 -- reference coordinates -} - --- Coordinates of neighbour BTS, WGS-84 ellipsoid -ReferenceWGS84 ::= SEQUENCE { - relativeNorth RelDistance, -- relative distance (south negative) - relativeEast RelDistance, -- relative distance (west negative) - -- Relative Altitude is not always known - relativeAlt RelativeAlt OPTIONAL -- relative altitude -} - --- Fine RTD value between this BTS and the reference BTS -FineRTD ::= INTEGER (0..255) - --- Relative north/east distance -RelDistance ::= INTEGER (-200000..200000) - --- Relative altitude -RelativeAlt ::= INTEGER (-4000..4000) - --- Measure position response IEs --- Reference Identity --- Multiple sets -MultipleSets ::= SEQUENCE { - -- number of reference sets - nbrOfSets INTEGER (2..3), - - -- This field actually tells the number of reference BTSs - nbrOfReferenceBTSs INTEGER (1..3), - - -- This field is conditional and included optionally only if - -- nbrOfSets is 3 and number of reference BTSs is 2. - referenceRelation ReferenceRelation OPTIONAL -} - --- Relation between refence BTSs and sets -ReferenceRelation ::= ENUMERATED { - secondBTSThirdSet (0), -- 1st BTS related to 1st and 2nd sets - secondBTSSecondSet (1), -- 1st BTS related to 1st and 3rd sets - firstBTSFirstSet (2) -- 1st BTS related to 1st set -} - --- Reference BTS Identity, this element contains number of --- BTSs told nbrOfReferenceBTSs field in Multiple sets element) -ReferenceIdentity ::= SEQUENCE { - -- Reference BTS list - refBTSList SeqOfReferenceIdentityType -} -SeqOfReferenceIdentityType ::= SEQUENCE (SIZE(1..3)) OF ReferenceIdentityType - --- Cell identity -ReferenceIdentityType ::= CHOICE { - bsicAndCarrier BSICAndCarrier, -- BSIC and Carrier - ci CellID, -- Cell ID, LAC not needed - requestIndex RequestIndex, -- Index to Requested Neighbor List - systemInfoIndex SystemInfoIndex, -- Index to System info list, this type of ref. identity - -- shall not be used by the MS unless it has received - -- the SystemInfoAssistData from the SMLC for this cell. - ciAndLAC CellIDAndLAC -- CI and LAC -} - -BSICAndCarrier ::= SEQUENCE { - carrier BCCHCarrier, - bsic BSIC -} - -RequestIndex ::= INTEGER (1..16) - -SystemInfoIndex ::= INTEGER (1..32) - -CellIDAndLAC ::= SEQUENCE { - referenceLAC LAC, -- Location area code - referenceCI CellID -- Cell identity -} -CellID ::= INTEGER (0..65535) -LAC ::= INTEGER (0..65535) - --- OTD-MeasureInfo -OTD-MeasureInfo ::= SEQUENCE { - -- Measurement info elements, OTD-MsrElement is repeated number of times - -- told in nbrOfReferenceBTSs in MultipleSets, default value is 1 - otdMsrFirstSets OTD-MsrElementFirst, - - -- if more than one sets are present this element is repeated - -- NumberOfSets - 1 (-1 = first set) - otdMsrRestSets SeqOfOTD-MsrElementRest OPTIONAL -} - -SeqOfOTD-MsrElementRest ::= SEQUENCE (SIZE(1..2)) OF OTD-MsrElementRest - --- OTD measurent information for 1 set -OTD-MsrElementFirst ::= SEQUENCE { - refFrameNumber INTEGER (0..42431), -- Frame number modulo 42432 - referenceTimeSlot ModuloTimeSlot, - toaMeasurementsOfRef TOA-MeasurementsOfRef OPTIONAL, - stdResolution StdResolution, - taCorrection INTEGER (0..960) OPTIONAL, -- TA correction - - -- measured neighbors in OTD measurements - otd-FirstSetMsrs SeqOfOTD-FirstSetMsrs OPTIONAL -} -SeqOfOTD-FirstSetMsrs ::= SEQUENCE (SIZE(1..10)) OF OTD-FirstSetMsrs - --- OTD measurent information 2 and 3 sets if exist -OTD-MsrElementRest ::= SEQUENCE { - refFrameNumber INTEGER (0..42431), -- Frame number modulo 42432 - referenceTimeSlot ModuloTimeSlot, - toaMeasurementsOfRef TOA-MeasurementsOfRef OPTIONAL, - stdResolution StdResolution, - taCorrection INTEGER (0..960) OPTIONAL, -- TA correction - - -- measured neighbors in OTD measurements - otd-MsrsOfOtherSets SeqOfOTD-MsrsOfOtherSets OPTIONAL -} -SeqOfOTD-MsrsOfOtherSets ::= SEQUENCE (SIZE(1..10)) OF OTD-MsrsOfOtherSets - --- Standard deviation of the TOA measurements from the reference BTS -TOA-MeasurementsOfRef ::= SEQUENCE { - refQuality RefQuality, - numOfMeasurements NumOfMeasurements -} - -RefQuality ::= INTEGER (0..31) -- St Dev of TOA of reference as defined in annex -NumOfMeasurements ::= INTEGER (0..7) -- No. of measurements for RefQuality as defined in annex -StdResolution ::= INTEGER (0..3) -- Values of resolution are defined in annex - -OTD-FirstSetMsrs ::= OTD-MeasurementWithID - --- Neighbour info in OTD measurements 0-10 times in TD measurement info -OTD-MsrsOfOtherSets ::= CHOICE { - identityNotPresent OTD-Measurement, - identityPresent OTD-MeasurementWithID -} - --- For this OTD measurement identity is same as the identity of BTS --- in the first set with same sequence number -OTD-Measurement ::= SEQUENCE { - nborTimeSlot ModuloTimeSlot, - eotdQuality EOTDQuality, - otdValue OTDValue -} - --- This measurement contains the BTS identity and measurement -OTD-MeasurementWithID ::=SEQUENCE { - neighborIdentity NeighborIdentity, - nborTimeSlot ModuloTimeSlot, - eotdQuality EOTDQuality, - otdValue OTDValue -} - -EOTDQuality ::= SEQUENCE { - nbrOfMeasurements INTEGER (0..7), - stdOfEOTD INTEGER (0..31) -} - -NeighborIdentity ::= CHOICE { - bsicAndCarrier BSICAndCarrier, -- BSIC and Carrier - ci CellID, -- Cell ID, LAC not needed - multiFrameCarrier MultiFrameCarrier, -- MultiFrameOffest and BSIC - requestIndex RequestIndex, -- Index to Requested Neighbor List - systemInfoIndex SystemInfoIndex, -- Index to System info list, this type of neighbour - -- identity shall not be used by the MS unless it has - -- received the SystemInfoAssistData from the SMLC for - -- this cell. - ciAndLAC CellIDAndLAC -- CI and LAC -} - --- Multiframe and carrier -MultiFrameCarrier ::= SEQUENCE { - bcchCarrier BCCHCarrier, - multiFrameOffset MultiFrameOffset -} - --- OTD measurement value for neighbour -OTDValue ::= INTEGER (0..39999) - --- Location information IE -LocationInfo ::= SEQUENCE { - refFrame INTEGER (0..65535), -- Reference Frame number - -- If refFrame is within (42432..65535), it shall be ignored by the receiver - -- in that case the MS should provide GPS TOW if available - gpsTOW INTEGER (0..14399999) OPTIONAL, -- GPS TOW - fixType FixType, - -- Note that applicable range for refFrame is 0 - 42431 - -- Possible shapes carried in posEstimate are - -- ellipsoid point, - -- ellipsoid point with uncertainty circle - -- ellipsoid point with uncertainty ellipse - -- ellipsoid point with altitude and uncertainty ellipsoid - posEstimate Ext-GeographicalInformation -} - -FixType ::= INTEGER { - twoDFix (0), - threeDFix (1) -} (0..1) - --- GPS-Measurement information -GPS-MeasureInfo ::= SEQUENCE { - -- Measurement info elements - -- user has to make sure that in this element is number of elements - -- defined in reference BTS identity - gpsMsrSetList SeqOfGPS-MsrSetElement -} -SeqOfGPS-MsrSetElement ::= SEQUENCE (SIZE(1..3)) OF GPS-MsrSetElement - --- OTD measurent information 1-3 times in message -GPS-MsrSetElement ::= SEQUENCE { - refFrame INTEGER (0..65535) OPTIONAL, -- Reference Frame number - gpsTOW GPSTOW24b, -- GPS TOW - -- Note that applicable range for refFrame is 0 - 42431 - ---N_SAT can be read from number of elements of gps-msrList - - gps-msrList SeqOfGPS-MsrElement -} - --- 24 bit presentation for GPSTOW -GPSTOW24b ::= INTEGER (0..14399999) - --- measured elements in measurement parameters field -SeqOfGPS-MsrElement ::= SEQUENCE (SIZE(1..16)) OF GPS-MsrElement - -GPS-MsrElement ::= SEQUENCE { - satelliteID SatelliteID, -- Satellite identifier - cNo INTEGER (0..63), -- carrier noise ratio - doppler INTEGER (-32768..32767), -- doppler, mulltiply by 0.2 - wholeChips INTEGER (0..1022), -- whole value of the code phase measurement - fracChips INTEGER (0..1024), -- fractional value of the code phase measurement - -- a value of 1024 shall not be encoded by the sender - -- the receiver shall consider a value of 1024 to be - -- invalid data - mpathIndic MpathIndic, -- multipath indicator - pseuRangeRMSErr INTEGER (0..63) -- index -} - --- Multipath indicator -MpathIndic ::= ENUMERATED { - notMeasured (0), - low (1), - medium (2), - high (3) -} - --- Location error IE -LocationError ::= SEQUENCE { - locErrorReason LocErrorReason, - additionalAssistanceData AdditionalAssistanceData OPTIONAL, - ... -} - -LocErrorReason ::= ENUMERATED { - unDefined (0), - notEnoughBTSs (1), - notEnoughSats (2), - eotdLocCalAssDataMissing (3), - eotdAssDataMissing (4), - gpsLocCalAssDataMissing (5), - gpsAssDataMissing (6), - methodNotSupported (7), - notProcessed (8), - refBTSForGPSNotServingBTS (9), - refBTSForEOTDNotServingBTS (10), - ..., - notEnoughGANSSSats (11), - ganssAssDataMissing (12), - refBTSForGANSSNotServingBTS (13) -} - --- exception handling: --- an unrecognized value shall be treated the same as value 0 - - --- defines additional assistance data needed for any new location attempt --- MS shall retain any assistance data already received -AdditionalAssistanceData ::= SEQUENCE { - gpsAssistanceData GPSAssistanceData OPTIONAL, - extensionContainer ExtensionContainer OPTIONAL, - ..., - ganssAssistanceData GANSSAssistanceData OPTIONAL -} - - -GPSAssistanceData ::= OCTET STRING (SIZE (1..maxGPSAssistanceData)) --- GPSAssistanceData has identical structure and encoding to octets 3 to n of the --- GPS Assistance Data IE in 3GPP TS 49.031 - -maxGPSAssistanceData INTEGER ::= 40 - -GANSSAssistanceData ::= OCTET STRING (SIZE (1..maxGANSSAssistanceData)) --- GANSSAssistanceData has identical structure and encoding to octets 3 to n of the --- GANSS Assistance Data IE in 3GPP TS 49.031 - -maxGANSSAssistanceData INTEGER ::= 40 - --- Protocol Error Causes -ErrorCodes ::= ENUMERATED { - unDefined (0), -missingComponet (1), -incorrectData (2), -missingIEorComponentElement (3), -messageTooShort (4), -unknowReferenceNumber (5), -... -} - --- exception handling: --- an unrecognized value shall be treated the same as value 0 - --- GPS assistance data IE -GPS-AssistData ::= SEQUENCE { - controlHeader ControlHeader -} - --- More Assistance Data To Be Sent IE --- More Assistance Data Components On the Way indication for delivery of an entire set of assistance --- data in multiple Assistance Data components. - -MoreAssDataToBeSent ::= ENUMERATED { - noMoreMessages (0), -- This is the only or last Assistance Data message used to deliver - -- the entire set of assistance data. - moreMessagesOnTheWay (1) -- The SMLC will send more Assistance Data messages or a final RRLP - -- Measure Position Request message to deliver the - -- the entire set of assistance data. -} - --- Control header of the GPS assistance data -ControlHeader ::= SEQUENCE { - - -- Field type Present information - referenceTime ReferenceTime OPTIONAL, - refLocation RefLocation OPTIONAL, - dgpsCorrections DGPSCorrections OPTIONAL, - navigationModel NavigationModel OPTIONAL, - ionosphericModel IonosphericModel OPTIONAL, - utcModel UTCModel OPTIONAL, - almanac Almanac OPTIONAL, - acquisAssist AcquisAssist OPTIONAL, - realTimeIntegrity SeqOf-BadSatelliteSet OPTIONAL -} - -ReferenceTime ::= SEQUENCE { - gpsTime GPSTime, - gsmTime GSMTime OPTIONAL, - gpsTowAssist GPSTOWAssist OPTIONAL -} - --- GPS Time includes week number and time-of-week (TOW) -GPSTime ::= SEQUENCE { - gpsTOW23b GPSTOW23b, - gpsWeek GPSWeek -} - --- GPSTOW, range 0-604799.92, resolution 0.08 sec, 23-bit presentation -GPSTOW23b ::= INTEGER (0..7559999) - --- GPS week number -GPSWeek ::= INTEGER (0..1023) - --- GPSTOWAssist consists of TLM message, Anti-spoof flag, Alert flag, and 2 reserved bits in TLM Word --- for each visible satellite. --- N_SAT can be read from number of elements in GPSTOWAssist -GPSTOWAssist ::= SEQUENCE (SIZE(1..12)) OF GPSTOWAssistElement - -GPSTOWAssistElement ::= SEQUENCE { - satelliteID SatelliteID, - tlmWord TLMWord, - antiSpoof AntiSpoofFlag, - alert AlertFlag, - tlmRsvdBits TLMReservedBits -} - --- TLM Word, 14 bits -TLMWord ::= INTEGER (0..16383) - --- Anti-Spoof flag -AntiSpoofFlag ::= INTEGER (0..1) - --- Alert flag -AlertFlag ::= INTEGER (0..1) - --- Reserved bits in TLM word, MSB occurs earlier in TLM Word transmitted by satellite -TLMReservedBits ::= INTEGER (0..3) - -GSMTime ::= SEQUENCE { - bcchCarrier BCCHCarrier, -- BCCH carrier - bsic BSIC, -- BSIC - frameNumber FrameNumber, - timeSlot TimeSlot, - bitNumber BitNumber -} - --- Frame number -FrameNumber ::= INTEGER (0..2097151) - --- Time slot number -TimeSlot ::= INTEGER (0..7) - --- Bit number -BitNumber ::= INTEGER (0..156) - - --- Reference Location IE -RefLocation ::= SEQUENCE { - threeDLocation Ext-GeographicalInformation -} - --- DGPS Corrections IE -DGPSCorrections ::= SEQUENCE { - - gpsTOW INTEGER (0..604799), -- DGPS reference time - status INTEGER (0..7), - -- N_SAT can be read from number of elements of satList - satList SeqOfSatElement -} -SeqOfSatElement ::= SEQUENCE (SIZE (1..16)) OF SatElement - --- number of correction for satellites -SatElement ::= SEQUENCE { - satelliteID SatelliteID, - ---- Sequence number for ephemeris - iode INTEGER (0..239), - -- User Differential Range Error - udre INTEGER (0..3), - - -- Pseudo Range Correction, range is - -- -655.04 - +655.04, - pseudoRangeCor INTEGER (-2047..2047), - - -- Pseudo Range Rate Correction, range is - -- -4.064 - +4.064, - rangeRateCor INTEGER (-127..127), - --- Delta Pseudo Range Correction 2 - deltaPseudoRangeCor2 INTEGER (-127..127), -- This IE shall be ignored by the receiver and - -- set to zero by the sender - -- Delta Pseudo Range Correction 2 - deltaRangeRateCor2 INTEGER (-7..7), -- This IE shall be ignored by the receiver and - -- set to zero by the sender - -- Delta Pseudo Range Correction 3 - deltaPseudoRangeCor3 INTEGER (-127..127), -- This IE shall be ignored by the receiver and - -- set to zero by the sender - -- Delta Pseudo Range Correction 3 - deltaRangeRateCor3 INTEGER (-7..7) -- This IE shall be ignored by the receiver and - -- set to zero by the sender -} - -SatelliteID ::= INTEGER (0..63) -- identifies satellite - --- Navigation Model IE -NavigationModel ::= SEQUENCE { - navModelList SeqOfNavModelElement -} - --- navigation model satellite list -SeqOfNavModelElement ::= SEQUENCE (SIZE(1..16)) OF NavModelElement - -NavModelElement ::= SEQUENCE { - satelliteID SatelliteID, - satStatus SatStatus -- satellite status -} - --- the Status of the navigation model -SatStatus ::= CHOICE { - -- New satellite, new Navigation Model - newSatelliteAndModelUC UncompressedEphemeris, - - -- Existing satellite, Existing Navigation Model - oldSatelliteAndModel NULL, - - -- Existing satellite, new Navigation Model - newNaviModelUC UncompressedEphemeris, - ... -} - --- Uncompressed satellite emhemeris and clock corrections -UncompressedEphemeris ::= SEQUENCE { - ephemCodeOnL2 INTEGER (0..3), - ephemURA INTEGER (0..15), - ephemSVhealth INTEGER (0..63), - ephemIODC INTEGER (0..1023), - ephemL2Pflag INTEGER (0..1), - ephemSF1Rsvd EphemerisSubframe1Reserved, - ephemTgd INTEGER (-128..127), - ephemToc INTEGER (0..37799), - ephemAF2 INTEGER (-128..127), - ephemAF1 INTEGER (-32768..32767), - ephemAF0 INTEGER (-2097152..2097151), - ephemCrs INTEGER (-32768..32767), - ephemDeltaN INTEGER (-32768..32767), - ephemM0 INTEGER (-2147483648..2147483647), - ephemCuc INTEGER (-32768..32767), - ephemE INTEGER (0..4294967295), - ephemCus INTEGER (-32768..32767), - ephemAPowerHalf INTEGER (0..4294967295), - ephemToe INTEGER (0..37799), - ephemFitFlag INTEGER (0..1), - ephemAODA INTEGER (0..31), - ephemCic INTEGER (-32768..32767), - ephemOmegaA0 INTEGER (-2147483648..2147483647), - ephemCis INTEGER (-32768..32767), - ephemI0 INTEGER (-2147483648..2147483647), - ephemCrc INTEGER (-32768..32767), - ephemW INTEGER (-2147483648..2147483647), - ephemOmegaADot INTEGER (-8388608..8388607), - ephemIDot INTEGER (-8192..8191) -} - --- Reserved bits in subframe 1 of navigation message -EphemerisSubframe1Reserved ::= SEQUENCE { - reserved1 INTEGER (0..8388607), -- 23-bit field - reserved2 INTEGER (0..16777215), -- 24-bit field - reserved3 INTEGER (0..16777215), -- 24-bit field - reserved4 INTEGER (0..65535) -- 16-bit field -} - --- Ionospheric Model IE -IonosphericModel ::= SEQUENCE { - alfa0 INTEGER (-128..127), - alfa1 INTEGER (-128..127), - alfa2 INTEGER (-128..127), - alfa3 INTEGER (-128..127), - beta0 INTEGER (-128..127), - beta1 INTEGER (-128..127), - beta2 INTEGER (-128..127), - beta3 INTEGER (-128..127) -} - --- Universal Time Coordinate Model -UTCModel ::= SEQUENCE { - utcA1 INTEGER (-8388608..8388607), - utcA0 INTEGER (-2147483648..2147483647), - utcTot INTEGER (0..255), - utcWNt INTEGER (0..255), - utcDeltaTls INTEGER (-128..127), - utcWNlsf INTEGER (0..255), - utcDN INTEGER (-128..127), - utcDeltaTlsf INTEGER (-128..127) -} - --- Almanac, Long term model --- NOTE: These are parameters are subset of the ephemeris --- NOTE: But with reduced resolution and accuracy -Almanac ::= SEQUENCE { - alamanacWNa INTEGER (0..255), -- Once per message - - -- navigation model satellite list. - -- The size of almanacList is actually Nums_Sats_Total field - almanacList SeqOfAlmanacElement -} -SeqOfAlmanacElement ::= SEQUENCE (SIZE(1..64)) OF AlmanacElement - --- Almanac info once per satellite -AlmanacElement ::= SEQUENCE { - satelliteID SatelliteID, - almanacE INTEGER (0..65535), - alamanacToa INTEGER (0..255), - almanacKsii INTEGER (-32768..32767), - almanacOmegaDot INTEGER (-32768..32767), - almanacSVhealth INTEGER (0..255), - almanacAPowerHalf INTEGER (0..16777215), - almanacOmega0 INTEGER (-8388608..8388607), - almanacW INTEGER (-8388608..8388607), - almanacM0 INTEGER (-8388608..8388607), - almanacAF0 INTEGER (-1024..1023), - almanacAF1 INTEGER (-1024..1023) -} - --- Acquisition Assistance -AcquisAssist ::= SEQUENCE { - - -- Number of Satellites can be read from acquistList - timeRelation TimeRelation, - - -- Acquisition assistance list - -- The size of Number of Satellites is actually Number of Satellites field - acquisList SeqOfAcquisElement -} -SeqOfAcquisElement ::= SEQUENCE (SIZE(1..16)) OF AcquisElement - --- the relationship between GPS time and air-interface timing -TimeRelation ::= SEQUENCE { - -- - gpsTOW GPSTOW23b, -- 23b presentation - gsmTime GSMTime OPTIONAL -} - --- data occuring per number of satellites -AcquisElement ::= SEQUENCE { - svid SatelliteID, - - -- Doppler 0th order term, - -- -5120.0 - 5117.5 Hz (= -2048 - 2047 with 2.5 Hz resolution) - doppler0 INTEGER (-2048..2047), - addionalDoppler AddionalDopplerFields OPTIONAL, - codePhase INTEGER (0..1022), -- Code Phase - intCodePhase INTEGER (0..19), -- Integer Code Phase - gpsBitNumber INTEGER (0..3), -- GPS bit number - codePhaseSearchWindow INTEGER (0..15), -- Code Phase Search Window - addionalAngle AddionalAngleFields OPTIONAL -} - -AddionalDopplerFields ::= SEQUENCE { - -- Doppler 1st order term, -1.0 - +0.5 Hz/sec - -- (= -42 + (0 to 63) with 1/42 Hz/sec. resolution) - doppler1 INTEGER (0..63), - dopplerUncertainty INTEGER (0..7) - -- a sender shall not encode any DopplerUncertainty value in the range 5 to 7 - -- a receiver shall ignore any value between 5 and 7. -} - -AddionalAngleFields ::= SEQUENCE { - -- azimuth angle, 0 - 348.75 deg (= 0 - 31 with 11.25 deg resolution) - azimuth INTEGER (0..31), - -- elevation angle, 0 - 78.75 deg (= 0 - 7 with 11.25 deg resolution) - elevation INTEGER (0..7) -} - --- Real-Time Integrity --- number of bad satellites can be read from this element -SeqOf-BadSatelliteSet ::= SEQUENCE (SIZE(1..16)) OF SatelliteID - --- Extension Elements - --- Release 98 Extensions here -Rel98-MsrPosition-Req-Extension ::= SEQUENCE { - rel98-Ext-ExpOTD Rel98-Ext-ExpOTD OPTIONAL, -- ExpectedOTD extension - ..., - gpsTimeAssistanceMeasurementRequest NULL OPTIONAL, - gpsReferenceTimeUncertainty GPSReferenceTimeUncertainty OPTIONAL - --- Further R98 extensions here -} -Rel98-AssistanceData-Extension ::= SEQUENCE { - rel98-Ext-ExpOTD Rel98-Ext-ExpOTD OPTIONAL, -- ExpectedOTD extension - ..., - gpsTimeAssistanceMeasurementRequest NULL OPTIONAL, - gpsReferenceTimeUncertainty GPSReferenceTimeUncertainty OPTIONAL - --- Further R98 extensions here -} - --- Release 98 ExpOTD extension -Rel98-Ext-ExpOTD ::= SEQUENCE { --- If MsrAssistBTS is included in message, msrAssistData-R98-ExpOTD shall be included. - msrAssistData-R98-ExpOTD MsrAssistData-R98-ExpOTD OPTIONAL, - --- If SystemInfoAssistaData is included in message, systemInfoAssistData-R98-ExpOTD shall be --- included. - systemInfoAssistData-R98-ExpOTD SystemInfoAssistData-R98-ExpOTD OPTIONAL -} - --- MsrAssistData R98 extension -MsrAssistData-R98-ExpOTD ::= SEQUENCE { - msrAssistList-R98-ExpOTD SeqOfMsrAssistBTS-R98-ExpOTD -} - --- Indexes in SeqOfMsrAssistBTS-R98-ExpOTD refer to SeqOfMsrAssistBTS --- If the index exceeds the SegOfMsrAssistBTS range or if there is other --- inconsistencies between the BTS indices, the MS shall apply protocol --- error cause incorrectData -SeqOfMsrAssistBTS-R98-ExpOTD ::= SEQUENCE (SIZE(1..15)) OF MsrAssistBTS-R98-ExpOTD - --- This element completes MsrAssistBTS IE -MsrAssistBTS-R98-ExpOTD ::= SEQUENCE { - expectedOTD ExpectedOTD, - expOTDUncertainty ExpOTDUncertainty -} - --- SystemInfoAssistData R98 extension -SystemInfoAssistData-R98-ExpOTD ::= SEQUENCE { - systemInfoAssistListR98-ExpOTD SeqOfSystemInfoAssistBTS-R98-ExpOTD -} - --- SeqOfSystemInfoAssistBTS-R98-ExpOTD index refer to SeqOfSystemInfoAssistBTS --- If the index exceeds the SegOfSystemInfoAssistBTS range or if there is other --- inconsistencies between the BTS indices, the MS shall apply protocol --- error cause incorrectData -SeqOfSystemInfoAssistBTS-R98-ExpOTD ::= SEQUENCE (SIZE(1..32)) OF SystemInfoAssistBTS-R98-ExpOTD - --- whether n.th is present or not ? -SystemInfoAssistBTS-R98-ExpOTD ::= CHOICE { - notPresent NULL, - present AssistBTSData-R98-ExpOTD -} - --- This element completes AssistBTSData IE -AssistBTSData-R98-ExpOTD ::= SEQUENCE { - expectedOTD ExpectedOTD, - expOTDuncertainty ExpOTDUncertainty -- Uncertainty of expected OTD -} - --- Expected OTD value between nbor base station and reference BTS --- at MS's current estimated location. -ExpectedOTD ::= INTEGER (0..1250) --- The ExpectedOTD value 1250 shall not be encoded by the transmitting entity and --- shall be treated by the receiving entity as 0. --- Uncertainty of Exptected OTD in bits -ExpOTDUncertainty ::= INTEGER(0..7) - --- Release 98 extensions - -GPSReferenceTimeUncertainty ::= INTEGER (0 .. 127) -- Coding according to Annex - -GPSTimeAssistanceMeasurements ::= SEQUENCE { - referenceFrameMSB INTEGER (0 .. 63) OPTIONAL, -- MSB of frame number - gpsTowSubms INTEGER (0 .. 9999) OPTIONAL, -- in units of 100ns, for MS based AGPS - deltaTow INTEGER (0 .. 127) OPTIONAL, -- for MS assisted AGPS - gpsReferenceTimeUncertainty GPSReferenceTimeUncertainty OPTIONAL -} - -Rel-98-MsrPosition-Rsp-Extension ::= SEQUENCE { - - -- First extension to Release 98 - rel-98-Ext-MeasureInfo SEQUENCE { - otd-MeasureInfo-R98-Ext OTD-MeasureInfo-R98-Ext OPTIONAL - }, - ..., - timeAssistanceMeasurements GPSTimeAssistanceMeasurements OPTIONAL - -- Further R98 extensions here -} - --- This is an addition to OTD-MeasureInfo element defined in original message, --- If OTD-MeasureInfo is absent, or if one or more OTD-MsrElementRest are present --- OTD-MeasureInfo-R98-Ext shall be absent. --- OTD-MeasureInfo-R98-Ext -OTD-MeasureInfo-R98-Ext ::= SEQUENCE { - -- Measurement info elements - otdMsrFirstSets-R98-Ext OTD-MsrElementFirst-R98-Ext -} - --- OTD measurement information Ext for the first set only -OTD-MsrElementFirst-R98-Ext ::= SEQUENCE { - -- additional measured neighbors in OTD measurements - otd-FirstSetMsrs-R98-Ext SeqOfOTD-FirstSetMsrs-R98-Ext OPTIONAL -} -SeqOfOTD-FirstSetMsrs-R98-Ext ::= SEQUENCE (SIZE(1..5)) OF OTD-FirstSetMsrs - -Rel-5-MsrPosition-Rsp-Extension ::= SEQUENCE { - - extended-reference Extended-reference OPTIONAL, - -- The extended-reference shall be included by the MS if and only if previously - -- received from the SMLC in a Measure Position Request. When included, the value sent - -- by the MS shall equal the value received from the SMLC. - - -- extension to Release 5, for RRLP pseudo-segmentation here - otd-MeasureInfo-5-Ext OTD-MeasureInfo-5-Ext OPTIONAL, - ulPseudoSegInd UlPseudoSegInd OPTIONAL, -- Included when uplink RRLP - -- Pseudo-segmentation is used, not included when no uplink pseudo-segmentation is used - ... - -- Possibly more extensions for Release 5 here later -} - -Extended-reference ::= SEQUENCE { - smlc-code INTEGER (0..63), - transaction-ID INTEGER (0..262143) -} - -OTD-MeasureInfo-5-Ext ::= SeqOfOTD-MsrElementRest - -- if more than one measurement sets are present this element is repeated - -- NumberOfSets - 1 (-1 = first set) combined in OTD-MeasureInfo-5-Ext and - -- OTD-MeasureInfo (e.g. if NumberOfSets is 3, then one otdMsrRestSets may - -- be sent in OTD-MeasureInfo-5-Ext and one in OTD-MeasureInfo) - --- First part of Uplink RRLP Pseudo-segmentation indication, possibly more may be defined --- in the future for segmentation with more than two segments. -UlPseudoSegInd ::= ENUMERATED { - firstOfMany (0), - secondOfMany(1) -} - -Rel5-MsrPosition-Req-Extension ::= SEQUENCE { - extended-reference Extended-reference, - ... - -- Possibly more extensions for Release 5 here later -} - -Rel5-AssistanceData-Extension ::= SEQUENCE { - extended-reference Extended-reference, - ... - --- Possibly more extensions for Release 5 here later -} - -Rel-5-ProtocolError-Extension::= SEQUENCE { - extended-reference Extended-reference OPTIONAL, - -- The extended-reference shall be included by the MS if and only if previously - -- received from the SMLC. - -- When included, the value sent by the MS shall equal the value received from the SMLC. - ... - - -- Possibly more extensions for Release 5 here later -} - --- Release 7 Extensions here - -Rel7-MsrPosition-Req-Extension ::= SEQUENCE { - velocityRequested NULL OPTIONAL, - ganssPositionMethod GANSSPositioningMethod OPTIONAL, - ganss-AssistData GANSS-AssistData OPTIONAL, - ganssCarrierPhaseMeasurementRequest NULL OPTIONAL, - ganssTODGSMTimeAssociationMeasurementRequest NULL OPTIONAL, - requiredResponseTime RequiredResponseTime OPTIONAL, - add-GPS-AssistData Add-GPS-AssistData OPTIONAL, - ganssMultiFreqMeasurementRequest NULL OPTIONAL, - ... - -- Further Release 7 extentions here -} - --- additional satellite systems may be added in future versions of the protocol --- Bit 0 of GANSSPositioningMethod bit map shall not be the only one set to TRUE ('1') -GANSSPositioningMethod ::= BIT STRING { - gps (0), - galileo (1), - sbas (2), - modernizedGPS (3), - qzss (4), - glonass (5) } (SIZE (2..16)) - -GANSS-AssistData ::= SEQUENCE { - ganss-controlHeader GANSS-ControlHeader -} -GANSS-ControlHeader ::= SEQUENCE { - ganssCommonAssistData GANSSCommonAssistData OPTIONAL, - ganssGenericAssistDataList SeqOfGANSSGenericAssistDataElement OPTIONAL -} - --- GANSS Common Assistance Data Elements -GANSSCommonAssistData ::= SEQUENCE { - ganssReferenceTime GANSSReferenceTime OPTIONAL, - ganssRefLocation GANSSRefLocation OPTIONAL, - ganssIonosphericModel GANSSIonosphericModel OPTIONAL, - ... , - ganssAddIonosphericModel GANSSAddIonosphericModel OPTIONAL, - ganssEarthOrientParam GANSSEarthOrientParam OPTIONAL -} - --- List of GANSS Generic Assistance Data Elements, up to 8 GANSS -SeqOfGANSSGenericAssistDataElement ::= SEQUENCE (SIZE (1..8)) OF GANSSGenericAssistDataElement --- GANSS Generic Assistance Data Elements -GANSSGenericAssistDataElement ::= SEQUENCE { - ganssID INTEGER (0..7) OPTIONAL, -- Coding according to Annex - ganssTimeModel SeqOfGANSSTimeModel OPTIONAL, - ganssDiffCorrections GANSSDiffCorrections OPTIONAL, - ganssNavigationModel GANSSNavModel OPTIONAL, - ganssRealTimeIntegrity GANSSRealTimeIntegrity OPTIONAL, - ganssDataBitAssist GANSSDataBitAssist OPTIONAL, - ganssRefMeasurementAssist GANSSRefMeasurementAssist OPTIONAL, - ganssAlmanacModel GANSSAlmanacModel OPTIONAL, - ganssUTCModel GANSSUTCModel OPTIONAL, - ganssEphemerisExtension GANSSEphemerisExtension OPTIONAL, - ganssEphemerisExtCheck GANSSEphemerisExtensionCheck OPTIONAL, - ... , - sbasID INTEGER (0..7) OPTIONAL, -- Coding according to Annex - ganssAddUTCModel GANSSAddUTCModel OPTIONAL, - ganssAuxiliaryInfo GANSSAuxiliaryInformation OPTIONAL, - ganssDiffCorrectionsValidityPeriod GANSSDiffCorrectionsValidityPeriod OPTIONAL -} - --- GANSS COMMON ASSISTANCE DATA ELEMENTS - --- GANSS Reference Time IE -GANSSReferenceTime ::= SEQUENCE { - ganssRefTimeInfo GANSSRefTimeInfo, - ganssTOD-GSMTimeAssociation GANSSTOD-GSMTimeAssociation OPTIONAL -} - --- GANSS Reference Time includes GANSS TOD, GANSS Day, uncertainty -GANSSRefTimeInfo ::= SEQUENCE { - ganssDay INTEGER(0 .. 8191) OPTIONAL, - ganssTOD GANSSTOD, - ganssTODUncertainty GANSSTODUncertainty OPTIONAL, - ganssTimeID INTEGER (0 .. 7) OPTIONAL -} - --- GANSS TOD integer seconds -GANSSTOD ::= INTEGER (0 .. 86399) - --- GANSS TOD uncertainty -GANSSTODUncertainty ::= INTEGER (0 .. 127) -- Coding according to Annex - --- GANSS TOD-GSM Time association -GANSSTOD-GSMTimeAssociation ::= SEQUENCE { - bcchCarrier BCCHCarrier, -- BCCH carrier - bsic BSIC, -- BSIC - frameNumber FrameNumber, - timeSlot TimeSlot, - bitNumber BitNumber, - frameDrift FrameDrift OPTIONAL -} - --- Frame drift -FrameDrift ::= INTEGER(-64 .. 63) - --- GANSS Reference Location IE -GANSSRefLocation ::= SEQUENCE { - threeDLocation Ext-GeographicalInformation -} - --- GANSS Ionospheric Model IE --- GANSS Ionospheric Model consists of NeQuick model parameters and storm flags -GANSSIonosphericModel ::= SEQUENCE { - ganssIonoModel GANSSIonosphereModel, - ganssIonoStormFlags GANSSIonoStormFlags OPTIONAL, - ... -} - --- GANSS ionosphere model. Coding according to Annex -GANSSIonosphereModel ::= SEQUENCE { - ai0 INTEGER (0 .. 4095), - ai1 INTEGER (0 .. 4095), - ai2 INTEGER (0 .. 4095) -} - --- GANSS ionosphere storm flags -GANSSIonoStormFlags ::= SEQUENCE { - ionoStormFlag1 INTEGER (0 .. 1), - ionoStormFlag2 INTEGER (0 .. 1), - ionoStormFlag3 INTEGER (0 .. 1), - ionoStormFlag4 INTEGER (0 .. 1), - ionoStormFlag5 INTEGER (0 .. 1) -} - --- GANSS Additional Ionospheric Model IE --- GANSS Additional Ionospheric Model consists of Klobuchar model parameters -GANSSAddIonosphericModel ::= SEQUENCE { - dataID BIT STRING (SIZE (2)), -- Coding according to Annex - ionoModel IonosphericModel -} - --- GANSS Earth Orientation Paramaters IE -GANSSEarthOrientParam ::= SEQUENCE { - teop INTEGER (0..65535), - pmX INTEGER (-1048576..1048575), - pmXdot INTEGER (-16384..16383), - pmY INTEGER (-1048576..1048575), - pmYdot INTEGER (-16384..16383), - deltaUT1 INTEGER (-1073741824..1073741823), - deltaUT1dot INTEGER (-262144..262143) -} - --- GANSS GENERIC ASSISTANCE DATA ELEMENTS - --- GANSS Time Model IE consists of time offset and first and second order parameters to relate GNSS --- specific system time to selected time reference -SeqOfGANSSTimeModel ::= SEQUENCE (SIZE(1..7)) OF GANSSTimeModelElement - -GANSSTimeModelElement ::= SEQUENCE { - ganssTimeModelRefTime INTEGER(0 .. 65535), - tA0 TA0, - tA1 TA1 OPTIONAL, - tA2 TA2 OPTIONAL, - gnssTOID INTEGER (0 .. 7), -- coding according to annex - weekNumber INTEGER (0 .. 8191) OPTIONAL -} - --- GANSS time model parameter A0 -TA0 ::= INTEGER (-2147483648 .. 2147483647) - --- GANSS time model parameter A1 -TA1 ::= INTEGER (-8388608 .. 8388607) - --- GANSS time model parameter A2 -TA2 ::= INTEGER (-64 .. 63) - - --- DGANSS Corrections IE -GANSSDiffCorrections ::= SEQUENCE { - dganssRefTime INTEGER (0 .. 119), -- DGANSS reference time - - -- N_SGN_TYPE can be read from number of elements of sgnTypeList - sgnTypeList SeqOfSgnTypeElement -} - -SeqOfSgnTypeElement ::= SEQUENCE (SIZE (1..3)) OF SgnTypeElement -- max three signals per GNSS - --- DGANSS signal type element, once per GNSS signal type included in DGANSS -SgnTypeElement ::= SEQUENCE { - ganssSignalID GANSSSignalID, -- signal type identity - ganssStatusHealth INTEGER (0 .. 7), - -- N_SAT can be read from number of elements of dganssSgnList - dganssSgnList SeqOfDGANSSSgnElement -} - -GANSSSignalID ::= INTEGER (0 .. 7) -- Coding according to Annex -SeqOfDGANSSSgnElement ::= SEQUENCE (SIZE (1..16)) OF DGANSSSgnElement - --- number of correction for signals -DGANSSSgnElement ::= SEQUENCE { - svID SVID, -- Satellite identity - ---- Sequence number for GANSS Navigation Model that matches the DGANSS correction set - iod INTEGER (0 .. 1023), - - -- User Differential Range Error - udre INTEGER (0..3), - - -- Pseudo Range Correction, range is - -- -655.04 - +655.04, - pseudoRangeCor INTEGER (-2047..2047), - - -- Pseudo Range Rate Correction, range is - -- -4.064 - +4.064, - rangeRateCor INTEGER (-127..127) -} - -SVID ::= INTEGER (0 .. 63) -- Coding according to Annex - --- GANSS Navigation Model IE -GANSSNavModel ::= SEQUENCE { - nonBroadcastIndFlag INTEGER (0 .. 1), - ganssSatelliteList SeqOfGANSSSatelliteElement -} - -SeqOfGANSSSatelliteElement ::= SEQUENCE (SIZE(1..32)) OF GANSSSatelliteElement - -GANSSSatelliteElement ::= SEQUENCE { - svID SVID, - svHealth BIT STRING (SIZE(5)), -- Coding according to Annex - iod INTEGER (0 .. 1023), -- Coding according to Annex - ganssClockModel GANSSClockModel, - ganssOrbitModel GANSSOrbitModel, - ..., - svHealthMSB BIT STRING (SIZE(1)) OPTIONAL, -- Coding according to Annex - iodMSB INTEGER (0 .. 1) OPTIONAL -- Coding according to Annex -} - --- GANSS orbit model for the GNSS satellite according to the choice -GANSSOrbitModel ::= CHOICE { - keplerianSet NavModel-KeplerianSet, -- Model-1 - ... , - navKeplerianSet NavModel-NAVKeplerianSet, -- Model-2 - cnavKeplerianSet NavModel-CNAVKeplerianSet, -- Model-3 - glonassECEF NavModel-GLONASSecef, -- Model-4 - sbasECEF NavModel-SBASecef -- Model-5 -} - --- Navigation model in Keplerian parameters -NavModel-KeplerianSet ::= SEQUENCE { - keplerToe INTEGER (0 .. 16383), - keplerW INTEGER (-2147483648..2147483647), - keplerDeltaN INTEGER (-32768..32767), - keplerM0 INTEGER (-2147483648..2147483647), - keplerOmegaDot INTEGER (-8388608..8388607), - keplerE INTEGER (0..4294967295), - keplerIDot INTEGER (-8192..8191), - keplerAPowerHalf INTEGER (0.. 4294967295), - keplerI0 INTEGER (-2147483648..2147483647), - keplerOmega0 INTEGER (-2147483648..2147483647), - keplerCrs INTEGER (-32768..32767), - keplerCis INTEGER (-32768..32767), - keplerCus INTEGER (-32768..32767), - keplerCrc INTEGER (-32768..32767), - keplerCic INTEGER (-32768..32767), - keplerCuc INTEGER (-32768..32767) -} - -NavModel-NAVKeplerianSet ::= SEQUENCE { - navURA INTEGER (0..15), - navFitFlag INTEGER (0..1), - navToe INTEGER (0..37799), - navOmega INTEGER (-2147483648..2147483647), - navDeltaN INTEGER (-32768..32767), - navM0 INTEGER (-2147483648..2147483647), - navOmegaADot INTEGER (-8388608..8388607), - navE INTEGER (0..4294967295), - navIDot INTEGER (-8192..8191), - navAPowerHalf INTEGER (0..4294967295), - navI0 INTEGER (-2147483648..2147483647), - navOmegaA0 INTEGER (-2147483648..2147483647), - navCrs INTEGER (-32768..32767), - navCis INTEGER (-32768..32767), - navCus INTEGER (-32768..32767), - navCrc INTEGER (-32768..32767), - navCic INTEGER (-32768..32767), - navCuc INTEGER (-32768..32767) -} - -NavModel-CNAVKeplerianSet ::= SEQUENCE { - cnavTop INTEGER (0..2015), - cnavURAindex INTEGER (-16..15), - cnavDeltaA INTEGER (-33554432..33554431), - cnavAdot INTEGER (-16777216..16777215), - cnavDeltaNo INTEGER (-65536..65535), - cnavDeltaNoDot INTEGER (-4194304..4194303), - cnavMo INTEGER (-4294967296..4294967295), - cnavE INTEGER (0..8589934591), - cnavOmega INTEGER (-4294967296..4294967295), - cnavOMEGA0 INTEGER (-4294967296..4294967295), - cnavDeltaOmegaDot INTEGER (-65536..65535), - cnavIo INTEGER (-4294967296..4294967295), - cnavIoDot INTEGER (-16384..16383), - cnavCis INTEGER (-32768..32767), - cnavCic INTEGER (-32768..32767), - cnavCrs INTEGER (-8388608..8388607), - cnavCrc INTEGER (-8388608..8388607), - cnavCus INTEGER (-1048576..1048575), - cnavCuc INTEGER (-1048576..1048575) -} - -NavModel-GLONASSecef ::= SEQUENCE { - gloEn INTEGER (0..31), - gloP1 BIT STRING (SIZE(2)), - gloP2 BOOLEAN, - gloM INTEGER (0..3), - gloX INTEGER (-67108864..67108863), - gloXdot INTEGER (-8388608..8388607), - gloXdotdot INTEGER (-16..15), - gloY INTEGER (-67108864..67108863), - gloYdot INTEGER (-8388608..8388607), - gloYdotdot INTEGER (-16..15), - gloZ INTEGER (-67108864..67108863), - gloZdot INTEGER (-8388608..8388607), - gloZdotdot INTEGER (-16..15) -} - - -NavModel-SBASecef ::= SEQUENCE { - sbasTo INTEGER (0..5399) OPTIONAL, - sbasAccuracy BIT STRING (SIZE(4)), - sbasXg INTEGER (-536870912..536870911), - sbasYg INTEGER (-536870912..536870911), - sbasZg INTEGER (-16777216..16777215), - sbasXgDot INTEGER (-65536..65535), - sbasYgDot INTEGER (-65536..65535), - sbasZgDot INTEGER (-131072..131071), - sbasXgDotDot INTEGER (-512..511), - sbagYgDotDot INTEGER (-512..511), - sbasZgDotDot INTEGER (-512..511) -} - --- GANSS clock model for the GNSS satellite according to the choice -GANSSClockModel ::= CHOICE { - standardClockModelList SeqOfStandardClockModelElement, -- Model-1 - ... , - navClockModel NAVclockModel, -- Model-2 - cnavClockModel CNAVclockModel, -- Model-3 - glonassClockModel GLONASSclockModel, -- Model-4 - sbasClockModel SBASclockModel -- Model-5 -} - -SeqOfStandardClockModelElement ::= SEQUENCE (SIZE(1..2)) OF RRLP-StandardClockModelElement - -RRLP-StandardClockModelElement ::= SEQUENCE { - stanClockToc INTEGER (0 .. 16383), - stanClockAF2 INTEGER (-2048 .. 2047), - stanClockAF1 INTEGER (-131072 .. 131071), - stanClockAF0 INTEGER (-134217728 .. 134217727), - stanClockTgd INTEGER (-512 .. 511) OPTIONAL, - stanModelID INTEGER (0 .. 1) OPTIONAL, - ... -} - -NAVclockModel ::= SEQUENCE { - navToc INTEGER (0.. 37799), - navaf2 INTEGER (-128..127), - navaf1 INTEGER (-32768..32767), - navaf0 INTEGER (-2097152..2097151), - navTgd INTEGER (-128..127) -} - -CNAVclockModel ::= SEQUENCE { - cnavToc INTEGER (0..2015), - cnavTop INTEGER (0..2015), - cnavURA0 INTEGER (-16..15), - cnavURA1 INTEGER (0..7), - cnavURA2 INTEGER (0..7), - cnavAf2 INTEGER (-512..511), - cnavAf1 INTEGER (-524288..524287), - cnavAf0 INTEGER (-33554432..33554431), - cnavTgd INTEGER (-4096..4095), - cnavISCl1cp INTEGER (-4096..4095) OPTIONAL, - cnavISCl1cd INTEGER (-4096..4095) OPTIONAL, - cnavISCl1ca INTEGER (-4096..4095) OPTIONAL, - cnavISCl2c INTEGER (-4096..4095) OPTIONAL, - cnavISCl5i5 INTEGER (-4096..4095) OPTIONAL, - cnavISCl5q5 INTEGER (-4096..4095) OPTIONAL -} - -GLONASSclockModel ::= SEQUENCE { - gloTau INTEGER (-2097152..2097151), - gloGamma INTEGER (-1024..1023), - gloDeltaTau INTEGER (-16..15) OPTIONAL -} - -SBASclockModel ::= SEQUENCE { - sbasTo INTEGER (0..5399), - sbasAgfo INTEGER (-2048..2047), - sbasAgf1 INTEGER (-128..127) -} - --- GANSS Real-Time Integrity IE -GANSSRealTimeIntegrity ::= SEQUENCE { - -- list of satellites with bad signals - -- NBS can be read from number of elements in SeqOf-BadSignalSet - ganssBadSignalList SeqOfBadSignalElement -} - -SeqOfBadSignalElement ::= SEQUENCE (SIZE(1..16)) OF BadSignalElement - -BadSignalElement ::= SEQUENCE { - badSVID SVID, -- Coding according to Annex - badSignalID GANSSSignals OPTIONAL, -- Coding according to Annex - ... -} - --- GANSS Data Bit Assistance IE -GANSSDataBitAssist ::= SEQUENCE { - ganssTOD INTEGER (0 .. 59), - -- N_SAT can be read from number of elements in SeqOfGanssDataBitsElement - ganssDataBitsSatList SeqOfGanssDataBitsElement, - ... -} - -SeqOfGanssDataBitsElement ::= SEQUENCE (SIZE(1 .. 32))OF GanssDataBitsElement - -GanssDataBitsElement ::= SEQUENCE { - svID SVID, - -- N_SGN can be read from number of elements in Seq-OfGANSSDataBitsSgn - ganssDataBitsSgnList Seq-OfGANSSDataBitsSgn, - ... -} - -Seq-OfGANSSDataBitsSgn ::= SEQUENCE (SIZE(1..8)) OF GANSSDataBitsSgnElement - -GANSSDataBitsSgnElement ::= SEQUENCE { - ganssSignalType GANSSSignalID, - -- N_BIT can be read from number of elements in SeqOf-DataBits - ganssDataBits SeqOf-GANSSDataBits, - ... -} - -SeqOf-GANSSDataBits ::= SEQUENCE (SIZE(1 .. 1024)) OF GANSSDataBit -GANSSDataBit ::= INTEGER(0 .. 1) - --- GANSS Reference Measurement Assistance IE --- Code and Doppler assistance from the network. -GANSSRefMeasurementAssist ::= SEQUENCE { - ganssSignalID GANSSSignalID, -- Coding according to Annex - ganssRefMeasAssistList SeqOfGANSSRefMeasurementElement -} - -SeqOfGANSSRefMeasurementElement ::= SEQUENCE (SIZE(1 .. 16)) OF GANSSRefMeasurementElement - -GANSSRefMeasurementElement ::= SEQUENCE { - svID SVID, - -- Doppler 0th order term, - -- -1024 m/s to 1023.5 m/s with 0.5 m/s resolution) - doppler0 INTEGER (-2048 .. 2047), -- Coding according to Annex - additionalDoppler AdditionalDopplerFields OPTIONAL, - codePhase INTEGER (0 .. 1022), -- Code Phase in ms - intCodePhase INTEGER (0 .. 127), -- Integer Code Phase in ms - codePhaseSearchWindow INTEGER (0 .. 31), -- Code Phase Search Window, see Annex - additionalAngle AddionalAngleFields OPTIONAL, - ... -} - -AdditionalDopplerFields ::= SEQUENCE { - -- Doppler 1st order term, -0.2 - +0.1 m/s2 - -- ( = -42 + (0 to 63) with 1/210 m/s2 resolution) - doppler1 INTEGER (0..63), - dopplerUncertainty INTEGER (0..4) -} - --- GANSS Almanac Model IE -GANSSAlmanacModel ::= SEQUENCE { - weekNumber INTEGER (0 .. 255), - toa INTEGER (0 .. 255) OPTIONAL, - ioda INTEGER (0 .. 3) OPTIONAL, - ganssAlmanacList SeqOfGANSSAlmanacElement -} - - -SeqOfGANSSAlmanacElement ::= SEQUENCE (SIZE(1 .. 36)) OF GANSSAlmanacElement - --- GANSS Almanac Model -GANSSAlmanacElement ::= CHOICE { - keplerianAlmanacSet Almanac-KeplerianSet, -- Model-1 - ..., - keplerianNAVAlmanac Almanac-NAVKeplerianSet, -- Model-2 - keplerianReducedAlmanac Almanac-ReducedKeplerianSet, -- Model-3 - keplerianMidiAlmanac Almanac-MidiAlmanacSet, -- Model-4 - keplerianGLONASS Almanac-GlonassAlmanacSet, -- Model-5 - ecefSBASAlmanac Almanac-ECEFsbasAlmanacSet -- Model-6 -} - --- Almanac parameters according to Keplerian parameters -Almanac-KeplerianSet ::= SEQUENCE { - svID SVID, - kepAlmanacE INTEGER (0 .. 2047), - kepAlmanacDeltaI INTEGER (-1024 .. 1023), - kepAlmanacOmegaDot INTEGER (-1024 .. 1023), - kepSVHealth INTEGER (0 .. 15), -- Coding according to Annex - kepAlmanacAPowerHalf INTEGER (-65536 .. 65535), - kepAlmanacOmega0 INTEGER (-32768 .. 32767), - kepAlmanacW INTEGER (-32768 .. 32767), - kepAlmanacM0 INTEGER (-32768 .. 32767), - kepAlmanacAF0 INTEGER (-8192 .. 8191), - kepAlmanacAF1 INTEGER (-1024..1023) -} - -Almanac-NAVKeplerianSet ::= SEQUENCE { - svID SVID, - navAlmE INTEGER (0..65535), - navAlmDeltaI INTEGER (-32768..32767), - navAlmOMEGADOT INTEGER (-32768..32767), - navAlmSVHealth INTEGER (0..255), - navAlmSqrtA INTEGER (0..16777215), - navAlmOMEGAo INTEGER (-8388608..8388607), - navAlmOmega INTEGER (-8388608..8388607), - navAlmMo INTEGER (-8388608..8388607), - navAlmaf0 INTEGER (-1024..1023), - navAlmaf1 INTEGER (-1024..1023) -} - -Almanac-ReducedKeplerianSet ::= SEQUENCE { - svID SVID, - redAlmDeltaA INTEGER (-128..127), - redAlmOmega0 INTEGER (-64..63), - redAlmPhi0 INTEGER (-64..63), - redAlmL1Health BOOLEAN, - redAlmL2Health BOOLEAN, - redAlmL5Health BOOLEAN -} - -Almanac-MidiAlmanacSet ::= SEQUENCE { - svID SVID, - midiAlmE INTEGER (0..2047), - midiAlmDeltaI INTEGER (-1024..1023), - midiAlmOmegaDot INTEGER (-1024..1023), - midiAlmSqrtA INTEGER (0..131071), - midiAlmOmega0 INTEGER (-32768..32767), - midiAlmOmega INTEGER (-32768..32767), - midiAlmMo INTEGER (-32768..32767), - midiAlmaf0 INTEGER (-1024..1023), - midiAlmaf1 INTEGER (-512..511), - midiAlmL1Health BOOLEAN, - midiAlmL2Health BOOLEAN, - midiAlmL5Health BOOLEAN -} - -Almanac-GlonassAlmanacSet ::= SEQUENCE { - gloAlmNA INTEGER (1..1461), - gloAlmnA INTEGER (1..24), - gloAlmHA INTEGER (0..31), - gloAlmLambdaA INTEGER (-1048576..1048575), - gloAlmtlambdaA INTEGER (0..2097151), - gloAlmDeltaIa INTEGER (-131072..131071), - gloAlmDeltaTA INTEGER (-2097152..2097151), - gloAlmDeltaTdotA INTEGER (-64..63), - gloAlmEpsilonA INTEGER (0..32767), - gloAlmOmegaA INTEGER (-32768..32767), - gloAlmTauA INTEGER (-512..511), - gloAlmCA INTEGER (0..1), - gloAlmMA BIT STRING (SIZE(2)) OPTIONAL -} - -Almanac-ECEFsbasAlmanacSet ::= SEQUENCE { - sbasAlmDataID INTEGER (0..3), - svID SVID, - sbasAlmHealth BIT STRING (SIZE(8)), - sbasAlmXg INTEGER (-16384..16383), - sbasAlmYg INTEGER (-16384..16383), - sbasAlmZg INTEGER (-256..255), - sbasAlmXgdot INTEGER (-4..3), - sbasAlmYgDot INTEGER (-4..3), - sbasAlmZgDot INTEGER (-8..7), - sbasAlmTo INTEGER (0..2047) -} - --- GANSS Universal Time Coordinate Model (Model-1) -GANSSUTCModel ::= SEQUENCE { - ganssUtcA1 INTEGER (-8388608..8388607), - ganssUtcA0 INTEGER (-2147483648..2147483647), - ganssUtcTot INTEGER (0..255), - ganssUtcWNt INTEGER (0..255), - ganssUtcDeltaTls INTEGER (-128..127), - ganssUtcWNlsf INTEGER (0..255), - ganssUtcDN INTEGER (-128..127), - ganssUtcDeltaTlsf INTEGER (-128..127) -} - ---GANSS Ephemeris Extension -GANSSEphemerisExtension ::= SEQUENCE { - ganssEphemerisHeader GANSSEphemerisExtensionHeader OPTIONAL, - ganssReferenceSet SeqOfGANSSRefOrbit OPTIONAL, - ganssephemerisDeltasMatrix GANSSEphemerisDeltaMatrix OPTIONAL, -... -} - --- The ganssEphemerisHeader and the ganssReferenceSet are mandatory only once in the delivery of the --- GANSS Ephemeris Extension. The ganssReferenceSet shall include all healthy satellite vehicles --- at the time of message construction. - -GANSSEphemerisExtensionHeader ::= SEQUENCE { - timeAtEstimation GANSSEphemerisExtensionTime, - validityPeriod INTEGER(1..8), --- The validity period, represented in hours, is the validity period of each individual ephemeris --- delta payload - ephemerisExtensionDuration INTEGER(1..512), --- If the ephemerisExtensionDuration does not match the request duration made by the MS, the MS --- should regard the provided ephemerisExtensionDuration as the limit of the SMLC ephemeris --- extension capability at this time. -... -} - -GANSSEphemerisExtensionTime ::= SEQUENCE { - ganssEphExtDay INTEGER(0..8191), - ganssEphExtTOD GANSSTOD, -... -} - --- Reference Nav Model for Ephepmeris Extension -ReferenceNavModel ::= SEQUENCE { - keplerToe INTEGER (0..37799), - keplerW INTEGER (-2147483648..2147483647), - keplerDeltaN INTEGER (-32768..32767), - keplerM0 INTEGER (-2147483648..2147483647), - keplerOmegaDot INTEGER (-8388608..8388607), - keplerE INTEGER (0..4294967295), - keplerIDot INTEGER (-8192..8191), - keplerAPowerHalf INTEGER (0.. 4294967295), - keplerI0 INTEGER (-2147483648..2147483647), - keplerOmega0 INTEGER (-2147483648..2147483647), - keplerCrs INTEGER (-32768..32767), - keplerCis INTEGER (-32768..32767), - keplerCus INTEGER (-32768..32767), - keplerCrc INTEGER (-32768..32767), - keplerCic INTEGER (-32768..32767), - keplerCuc INTEGER (-32768..32767) -} - -SeqOfGANSSRefOrbit ::= SEQUENCE (SIZE(1..32)) OF GANSSReferenceOrbit ---The number of reference orbits can be read from number of elements in this sequence - -GANSSReferenceOrbit ::= SEQUENCE { - svID SVID, - ganssOrbitModel ReferenceNavModel, - ganssClockModel GANSSClockModel, -... -} - -GANSSEphemerisDeltaMatrix ::= SEQUENCE (SIZE(1 .. 128)) OF GANSSEphemerisDeltaEpoch - -GANSSEphemerisDeltaEpoch ::= SEQUENCE { - ganssDeltaEpochHeader GANSSDeltaEpochHeader OPTIONAL, - ganssDeltaElementList GANSSDeltaElementList, -... -} --- Each GANSSDeltaEpoch element contains a header and the delta values for a particular time window --- for all PRN's. - -GANSSDeltaEpochHeader ::= SEQUENCE { - validityPeriod INTEGER(1..8) OPTIONAL, - ephemerisDeltaSizes GANSSEphemerisDeltaBitSizes OPTIONAL, - ephemerisDeltaScales GANSSEphemerisDeltaScales OPTIONAL, -... -} --- In each of the GANSSDeltaEpochs, if the optional element, validityPeriod is not included, the --- value in GANSSEphemerisExtensionHeader shall be used. If the optional elements --- ephemerisDeltaSizes or ephemerisDeltaScales are not included, then the default ephemeris delta --- sizes and scales shall be used. The default sizes and scales are found in the annex in the --- table 55.11. - -GANSSDeltaElementList ::= SEQUENCE (SIZE(1 .. 32)) OF OCTET STRING(SIZE (1..49)) --- Each octet string element in GANSSDeltaElementList corresponds to one PRN within one epoch - --- Table 55.11 of the annex shows the organization of the delta ephemeris octet string. --- Decoding of each of the octet strings is accomplished by consulting the ephemerisDeltaSizes --- table to learn the length and order of each of the parameters in the ephemerisDelta payload. - --- Post decode scaling is accomplished by consulting the ephemerisDeltaScales table to learn the --- scale factors to apply to the terms in the delta ephemeris. - --- Ephemeris Delta Bit Sizes. - -GANSSEphemerisDeltaBitSizes ::= SEQUENCE { - --- This structure defines the order and sizes of the fields in the GANSSDeltaEpoch octet string --- seqNum and svID are the first two elements of each GANSS Ephemeris Delta Element Structure --- seqNum is always 7 bits, and svID is always 6 bits long and are thus not included in --- the GANSSEphemerisDeltaBitSizes table. The value of seqNum indicates the GANSSDeltaEpoch number - --- The Ephemeris delta element payload mimics the bitsize table, but also includes the svID and --- seqNum as the first two elements (in that order),in each block. - - bitsize-delta-omega INTEGER(1..32), - bitsize-delta-deltaN INTEGER(1..16), - bitsize-delta-m0 INTEGER(1..32), - bitsize-delta-omegadot INTEGER(1..24), - bitsize-delta-e INTEGER(1..32), - bitsize-delta-idot INTEGER(1..14), - bitsize-delta-sqrtA INTEGER(1..32), - bitsize-delta-i0 INTEGER(1..32), - bitsize-delta-omega0 INTEGER(1..32), - bitsize-delta-crs INTEGER(1..16), - bitsize-delta-cis INTEGER(1..16), - bitsize-delta-cus INTEGER(1..16), - bitsize-delta-crc INTEGER(1..16), - bitsize-delta-cic INTEGER(1..16), - bitsize-delta-cuc INTEGER(1..16), - bitsize-delta-tgd1 INTEGER(1..10), - bitsize-delta-tgd2 INTEGER(1..10), -... -} - -GANSSEphemerisDeltaScales ::= SEQUENCE { - - scale-delta-omega INTEGER(-16..15), - scale-delta-deltaN INTEGER(-16..15), - scale-delta-m0 INTEGER(-16..15), - scale-delta-omegadot INTEGER(-16..15), - scale-delta-e INTEGER(-16..15), - scale-delta-idot INTEGER(-16..15), - scale-delta-sqrtA INTEGER(-16..15), - scale-delta-i0 INTEGER(-16..15), - scale-delta-omega0 INTEGER(-16..15), - scale-delta-crs INTEGER(-16..15), - scale-delta-cis INTEGER(-16..15), - scale-delta-cus INTEGER(-16..15), - scale-delta-crc INTEGER(-16..15), - scale-delta-cic INTEGER(-16..15), - scale-delta-cuc INTEGER(-16..15), - scale-delta-tgd1 INTEGER(-16..15), - scale-delta-tgd2 INTEGER(-16..15), -... -} - --- GANSS Ephemeris Extension Check -GANSSEphemerisExtensionCheck ::= SEQUENCE { - ganssBeginTime GANSSEphemerisExtensionTime, - ganssEndTime GANSSEphemerisExtensionTime, - ganssSatEventsInfo GANSSSatEventsInfo, -... -} - -GANSSSatEventsInfo ::= SEQUENCE { - eventOccured BIT STRING (SIZE (64)), - futureEventNoted BIT STRING (SIZE (64)), -... -} --- If a bit is clear in the eventOccured field it indicates that no known errors have occured --- between the current time and the ganssBeginTime nor is a maneuver planned for the next sixty --- minutes. --- If a bit is set in the futureEventNoted field it indicates that a maneuver is planned during the --- time period between current time plus sixty minutes and the ganssEndTime --- GANSS Additional Universal Time Coordinate Model -GANSSAddUTCModel ::= CHOICE { - utcModel2 UTCmodelSet2, - utcModel3 UTCmodelSet3, - utcModel4 UTCmodelSet4, - ... -} - -UTCmodelSet2 ::= SEQUENCE { - utcA0 INTEGER (-32768..32767), - utcA1 INTEGER (-4096.. 4095), - utcA2 INTEGER (-64..63), - utcDeltaTls INTEGER (-128.. 127), - utcTot INTEGER (0..65535), - utcWNot INTEGER (0..8191), - utcWNlsf INTEGER (0..255), - utcDN BIT STRING (SIZE(4)), - utcDeltaTlsf INTEGER (-128..127) -} - -UTCmodelSet3 ::= SEQUENCE { - nA INTEGER (1..1461), - tauC INTEGER (-2147483648..2147483647), - b1 INTEGER (-1024..1023) OPTIONAL, - b2 INTEGER (-512..511) OPTIONAL, - kp BIT STRING (SIZE(2)) OPTIONAL -} - -UTCmodelSet4 ::= SEQUENCE { - utcA1wnt INTEGER (-8388608..8388607), - utcA0wnt INTEGER (-2147483648..2147483647), - utcTot INTEGER (0..255), - utcWNt INTEGER (0..255), - utcDeltaTls INTEGER (-128..127), - utcWNlsf INTEGER (0..255), - utcDN INTEGER (-128..127), - utcDeltaTlsf INTEGER (-128..127), - utcStandardID INTEGER (0..7) -- coding according to annex -} - --- GANSS Auxiliary Information -GANSSAuxiliaryInformation ::= CHOICE{ - ganssID1 GANSS-ID1, -- This choice may only be present if GANSS ID indicates Modernized GPS - ganssID3 GANSS-ID3, -- This choice may only be present if GANSS ID indicates GLONASS - ... -} - -GANSS-ID1 ::= SEQUENCE (SIZE(1..64)) OF GANSS-ID1-element - -GANSS-ID1-element ::= SEQUENCE { - svID SVID, - signalsAvailable GANSSSignals, - ... -} - -GANSS-ID3 ::= SEQUENCE (SIZE(1..64)) OF GANSS-ID3-element - -GANSS-ID3-element ::= SEQUENCE { - svID SVID, - signalsAvailable GANSSSignals, - channelNumber INTEGER (-7..13), - ... -} - --- DGANSS Corrections Validity Period: --- This element may only be included if GANSSDiffCorrections IE is included in --- GANSSGenericAssistDataElement element. --- GANSSDiffCorrectionsValidityPeriod shall contain the same number of elements as the --- SeqOfSgnTypeElement included in GANSSDiffCorrections IE -GANSSDiffCorrectionsValidityPeriod ::= SEQUENCE (SIZE (1..3)) OF DGANSSExtensionSgnTypeElement - -DGANSSExtensionSgnTypeElement ::= SEQUENCE { - ganssSignalID GANSSSignalID, -- signal type identity - dganssExtensionSgnList SeqOfDGANSSExtensionSgnElement -} - --- SeqOfDGANSSExtensionSgnElement shall contain the same number of elements as the --- SeqOfDGANSSSgnElement included in GANSSDiffCorrections IE -SeqOfDGANSSExtensionSgnElement ::= SEQUENCE (SIZE (1..16)) OF DGANSSExtensionSgnElement - -DGANSSExtensionSgnElement ::= SEQUENCE { - svID SVID, -- Satellite identity - udreGrowthRate INTEGER(0..7), -- coding according to annex - udreValidityTime INTEGER(0..7), -- coding according to annex - ... -} - ---Required Measurement Request Response Time, range is 1 to 128 seconds. -RequiredResponseTime ::= INTEGER (1..128) - --- Control header for additional GPS assistance data -Add-GPS-AssistData ::= SEQUENCE { - add-GPS-controlHeader Add-GPS-ControlHeader -} - -Add-GPS-ControlHeader ::= SEQUENCE { - gpsEphemerisExtension GPSEphemerisExtension OPTIONAL, - gpsEphemerisExtensionCheck GPSEphemerisExtensionCheck OPTIONAL, - ... , - dgpsCorrectionsValidityPeriod DGPSCorrectionsValidityPeriod OPTIONAL -} - -GPSClockModel ::= SEQUENCE { - af2 INTEGER (-128..127), - af1 INTEGER (-32768..32767), - af0 INTEGER (-2097152..2097151), - tgd INTEGER (-128..127) -} - ---GPS Ephemeris Extension -GPSEphemerisExtension ::= SEQUENCE { - gpsEphemerisHeader GPSEphemerisExtensionHeader OPTIONAL, - gpsReferenceSet SeqOfGPSRefOrbit OPTIONAL, - gpsephemerisDeltaMatrix GPSEphemerisDeltaMatrix OPTIONAL, -... -} - --- The gpsEphemerisHeader and the gpsReferenceSet are mandatory only once in the delivery of the --- GPS Ephemeris Extension. The gpsReferenceSet shall include all healthy satellite vehicles at the --- time of message construction - --- The SMLC is required to deliver the gpsReferenceSet for all healthy satellite vehicles --- at the time of message construction. - -GPSEphemerisExtensionHeader ::= SEQUENCE { - timeofEstimation GPSEphemerisExtensionTime, - validityPeriod INTEGER(1..8), --- The validity period, represented in hours is the validity period of each individual ephemeris --- delta payload - ephemerisExtensionDuration INTEGER(1..512), --- If the ephemerisExtensionDuration does not match the request duration made by the MS, the MS --- should regard the provided ephemerisExtensionDuration as the limit of the SMLC ephemeris --- extension capability at this time. -... -} - -GPSEphemerisExtensionTime ::= SEQUENCE { - gpsWeek GPSWeek, - gpsTOW INTEGER (0..604799), -... -} - -SeqOfGPSRefOrbit ::= SEQUENCE (SIZE(1..32)) OF GPSReferenceOrbit ---The number of reference orbits can be read from number of elements in this sequence - -GPSReferenceOrbit ::= SEQUENCE { - svID SVID, - gpsOrbitModel ReferenceNavModel, - gpsClockModel GPSClockModel, -... -} - -GPSEphemerisDeltaMatrix ::= SEQUENCE (SIZE(1 .. 128)) OF GPSEphemerisDeltaEpoch - -GPSEphemerisDeltaEpoch ::= SEQUENCE { - gpsDeltaEpochHeader GPSDeltaEpochHeader OPTIONAL, - gpsDeltaElementList GPSDeltaElementList, -... -} - --- Each GPSDeltaEpoch element contains a header and the delta values for a particular time window --- for all PRN's. -GPSDeltaEpochHeader ::= SEQUENCE { - validityPeriod INTEGER(1..8) OPTIONAL, - ephemerisDeltaSizes GPSEphemerisDeltaBitSizes OPTIONAL, - ephemerisDeltaScales GPSEphemerisDeltaScales OPTIONAL, -... -} - --- In each of the GPSDeltaEpochs, if the optional element validityPeriod is not included, --- the value in GPSEphemerisExtensionHeader shall be used. if the optional elements --- ephemerisDeltaSizes or ephemerisDeltaScales are not included, then the default ephemeris delta --- sizes and scales shall be used. The default sizes and scales are found in the annex in section --- A.29.m - -GPSDeltaElementList ::= SEQUENCE (SIZE(1 .. 32)) OF OCTET STRING(SIZE (1..47)) - --- Each octet string element in GPSDeltaElementList corresponds to one PRN within one epoch - --- Table A.29.m of the annex shows the organization of the delta ephemeris octet string. --- Decoding of each of the octet strings is accomplished by consulting the ephemerisDeltaSizes --- table to learn the length and order of each of the parameters in the ephemerisDelta payload - --- Post decode scaling is accomplished by consulting the ephemerisDeltaScales table to learn the. --- scale factors to apply to the terms in the delta ephemeris - --- Ephemeris Delta Bit Sizes. - -GPSEphemerisDeltaBitSizes ::= SEQUENCE { - --- This structure defines the order and sizes of the fields in the GPSsDeltaEpoch octet string --- seqNum and svID are the first two elements of each GPS Ephemeris Delta Element Structure --- seqNum is always 7 bits, and svID is always 5 bits long and are thus not included in --- the GPSEphemerisDeltaBitSizes table. seqNum indicates the GPSDeltaEpoch number. - --- The Ephemeris delta element payload mimics the bitsize table, but also includes the svID and --- seqNum as the first two elements (in that order),in each block. - - bitsize-delta-omega INTEGER(1..32), - bitsize-delta-deltaN INTEGER(1..16), - bitsize-delta-m0 INTEGER(1..32), - bitsize-delta-omegadot INTEGER(1..24), - bitsize-delta-e INTEGER(1..32), - bitsize-delta-idot INTEGER(1..14), - bitsize-delta-sqrtA INTEGER(1..32), - bitsize-delta-i0 INTEGER(1..32), - bitsize-delta-omega0 INTEGER(1..32), - bitsize-delta-crs INTEGER(1..16), - bitsize-delta-cis INTEGER(1..16), - bitsize-delta-cus INTEGER(1..16), - bitsize-delta-crc INTEGER(1..16), - bitsize-delta-cic INTEGER(1..16), - bitsize-delta-cuc INTEGER(1..16), - bitsize-delta-tgd INTEGER(1..10), -... -} - -GPSEphemerisDeltaScales ::= SEQUENCE { - scale-delta-omega INTEGER(-16..15), - scale-delta-deltaN INTEGER(-16..15), - scale-delta-m0 INTEGER(-16..15), - scale-delta-omegadot INTEGER(-16..15), - scale-delta-e INTEGER(-16..15), - scale-delta-idot INTEGER(-16..15), - scale-delta-sqrtA INTEGER(-16..15), - scale-delta-i0 INTEGER(-16..15), - scale-delta-omega0 INTEGER(-16..15), - scale-delta-crs INTEGER(-16..15), - scale-delta-cis INTEGER(-16..15), - scale-delta-cus INTEGER(-16..15), - scale-delta-crc INTEGER(-16..15), - scale-delta-cic INTEGER(-16..15), - scale-delta-cuc INTEGER(-16..15), - scale-delta-tgd INTEGER(-16..15), -... -} - -GPSEphemerisExtensionCheck ::= SEQUENCE { - gpsBeginTime GPSEphemerisExtensionTime, - gpsEndTime GPSEphemerisExtensionTime, - gpsSatEventsInfo GPSSatEventsInfo, -... -} - -GPSSatEventsInfo ::= SEQUENCE { - eventOccured BIT STRING (SIZE (32)), - futureEventNoted BIT STRING (SIZE (32)), -... -} --- If a bit is clear in the eventOccured field it indicates that no known errors have occured since --- the gpsBeginTime nor is a maneuver planned for the next sixty minutes. --- If a bit is set in the futureEventNoted field it indicates that a maneuver is planned during the --- time period between current time plus sixty minutes and gpsEndTime - --- DGPS Corrections Validity Period: --- This element may only be included if DGPSCorrections IE is included in ControlHeader element. --- DGPSCorrectionsValidityPeriod shall contain the same number of elements as the SeqOfSatElement --- included in DGPSCorrections IE -DGPSCorrectionsValidityPeriod ::= SEQUENCE (SIZE (1..16)) OF DGPSExtensionSatElement - -DGPSExtensionSatElement ::= SEQUENCE { - satelliteID SatelliteID, - udreGrowthRate INTEGER(0..7), -- coding according to annex - udreValidityTime INTEGER(0..7), -- coding according to annex - ... -} - -Rel-7-MsrPosition-Rsp-Extension ::= SEQUENCE { - - velEstimate VelocityEstimate OPTIONAL, - -- Horizontal Velocity - -- Horizontal with Vertical Velocity - -- Horizontal Velocity with Uncertainty - -- Horizontal with Vertical Velocity and Uncertainty - ganssLocationInfo GANSSLocationInfo OPTIONAL, - ganssMeasureInfo GANSSMeasureInfo OPTIONAL, - ... --- Further Release 7 extensions here -} - --- GANSS Location Information contains location estimate, time stamp with uncertainty --- and optionally Reference Frame field -GANSSLocationInfo ::= SEQUENCE { - referenceFrame ReferenceFrame OPTIONAL, -- Reference Frame Number - ganssTODm GANSSTODm OPTIONAL, -- GNSS TOD modulo - ganssTODFrac INTEGER (0 .. 16384) OPTIONAL, -- Coding according to Annex - -- a value of 16384 shall not be encoded by the sender - -- the receiver shall consider a value of 16384 to be invalid data - ganssTODUncertainty GANSSTODUncertainty OPTIONAL, -- Coding according to Annex - ganssTimeID INTEGER (0 .. 7) OPTIONAL, -- Coding according to Annex - fixType FixType, - posData PositionData, - stationaryIndication INTEGER(0 .. 1) OPTIONAL, -- '0' if moving or motion not - -- known - -- Possible shapes carried in posEstimate are - -- ellipsoid point, - -- ellipsoid point with uncertainty circle - -- ellipsoid point with uncertainty ellipse - -- ellipsoid point with altitude and uncertainty ellipsoid - posEstimate Ext-GeographicalInformation, - ... -} - -PositionData ::= BIT STRING { - e-otd (0), - gps (1), - galileo (2), - sbas (3), - modernizedGPS (4), - qzss (5), - glonass (6) } (SIZE (3..16)) - --- GANSS TOD modulo 1 hour -GANSSTODm ::= INTEGER (0 .. 3599999) - -ReferenceFrame ::= SEQUENCE { - referenceFN INTEGER (0 .. 65535), - -- Note that applicable range for referenceFN is 0 - 42431 - referenceFNMSB INTEGER (0 .. 63) OPTIONAL -- MSB of Reference Frame Number -} - --- GANSS Measurement Information -GANSSMeasureInfo ::= SEQUENCE { - -- Measurement info elements -ganssMsrSetList SeqOfGANSS-MsrSetElement -} -SeqOfGANSS-MsrSetElement ::= SEQUENCE (SIZE(1..3)) OF GANSS-MsrSetElement - --- GANSS measurement information 1-3 times in a message -GANSS-MsrSetElement ::= SEQUENCE { - referenceFrame ReferenceFrame OPTIONAL, -- Reference Frame Number - -- if ganssTODm is included, it is the GNSS specific system time of the GANSS reported - -- first in ganss-SgnTypeList. If GPS Measurement Information element is not included in - -- a Measure Position Response component, this field shall be present. - ganssTODm GANSSTODm OPTIONAL, -- GANSS TOD modulo 1 hour - deltaGANSSTOD INTEGER (0 .. 127) OPTIONAL, - ganssTODUncertainty GANSSTODUncertainty OPTIONAL, -- Coding according to Annex - --N_GANSS can be read from number of elements of SeqOfGANSS-MsrElement - ganss-MsrElementList SeqOfGANSS-MsrElement -} - -SeqOfGANSS-MsrElement ::= SEQUENCE (SIZE(1..8)) OF GANSS-MsrElement - -GANSS-MsrElement ::= SEQUENCE { - ganssID INTEGER (0..7) OPTIONAL, --Absence means Galileo - ganss-SgnTypeList SeqOfGANSS-SgnTypeElement -} - --- Measurements can be returned up to 8 different signal types --- N_SGN_TYPE can be read from number of elements of SeqOfGANSS-SgnTypeElement --- Reporting of multiple signal types as defined in A.2.2.4g -SeqOfGANSS-SgnTypeElement ::= SEQUENCE (SIZE(1..8)) OF GANSS-SgnTypeElement - -GANSS-SgnTypeElement ::= SEQUENCE { - ganssSignalID GANSSSignalID, -- Coding according to Annex - ganssCodePhaseAmbiguity INTEGER (0 .. 127) OPTIONAL, - --N_SGN can be read from number of elements of SeqOfGANSS-SgnElement - ganss-SgnList SeqOfGANSS-SgnElement, - ... -} - --- Up to 16 Measurements can be returned per signal type -SeqOfGANSS-SgnElement ::= SEQUENCE (SIZE(1..16)) OF GANSS-SgnElement - - -GANSS-SgnElement ::= SEQUENCE { - svID SVID, - cNo INTEGER (0 .. 63), - mpathDet MpathIndic, -- Coding according to Annex - carrierQualityInd INTEGER (0 .. 3) OPTIONAL, -- Coding according to Annex - codePhase INTEGER (0 .. 2097151), - integerCodePhase INTEGER (0 .. 127) OPTIONAL, - codePhaseRMSError INTEGER (0..63), -- Coding according to Annex - doppler INTEGER (-32768 .. 32767) OPTIONAL, - adr INTEGER (0 .. 33554431) OPTIONAL -} - -Rel7-AssistanceData-Extension ::= SEQUENCE { - ganss-AssistData GANSS-AssistData OPTIONAL, - ganssCarrierPhaseMeasurementRequest NULL OPTIONAL, - ganssTODGSMTimeAssociationMeasurementRequest NULL OPTIONAL, - add-GPS-AssistData Add-GPS-AssistData OPTIONAL, - ... --- Possibly more extensions for Release 7 here -} - --- Rel-7 Positioning Capability parameters here - -PosCapabilities ::= SEQUENCE { - --- nonGANSSpositionMethods shall be included if and only if any --- of the non-GANSS methods is supported. - nonGANSSpositionMethods NonGANSSPositionMethods OPTIONAL, - --- gANSSpositionMethods shall be included if and only if any of the GANSS methods is supported. - gANSSPositionMethods GANSSPositionMethods OPTIONAL, - --- multipleMeasurementSets shall be present if and only if 'multiple sets' is supported --- for any of the positioning methods - multipleMeasurementSets MultipleMeasurementSets OPTIONAL, - ... -} - -NonGANSSPositionMethods ::= BIT STRING { - msAssistedEOTD (0), - msBasedEOTD (1), - msAssistedGPS (2), -- If this bit is set, gpsAssistance in AssistanceSupported IE - -- shall be present - msBasedGPS (3), -- If this bit is set, gpsAssistance in AssistanceSupported IE - -- shall be present - - standaloneGPS (4) } (SIZE (1..16)) - -GANSSPositionMethods ::= SEQUENCE (SIZE(1..16)) OF GANSSPositionMethod - -GANSSPositionMethod ::= SEQUENCE { - ganssID INTEGER (0..7) OPTIONAL, --Absence means Galileo --- gANSSPositioningMethodTypes may be present for PosCapability-Req --- and shall be present for PosCapability-Rsp - gANSSPositioningMethodTypes GANSSPositioningMethodTypes OPTIONAL, - gANSSSignals GANSSSignals, - ... , --- sbasID shall be present if and only if ganssID indicates SBAS - sbasID SBASID OPTIONAL -} - -GANSSPositioningMethodTypes ::= BIT STRING { - msAssisted (0), -- If this bit is set, gANSSAssistanceSet in AssistanceSupported IE - -- shall be present. - msBased (1), -- If this bit is set, gANSSAssistanceSet in AssistanceSupported IE - -- shall be present. - standalone (2) } (SIZE (1..8)) - --- indicates MS support for particular GANSS signals and frequencies -GANSSSignals ::= BIT STRING { - signal1 (0), - signal2 (1), - signal3 (2), - signal4 (3), - signal5 (4), - signal6 (5), - signal7 (6), - signal8 (7) } (SIZE (1..8)) - -SBASID ::= BIT STRING { - waas (0), - egnos (1), - masas (2), - gagan (3) } (SIZE (1..8)) - --- indicates MS support of multiple measurement sets for MS assisted position methods -MultipleMeasurementSets ::= BIT STRING { - eotd (0), - gps (1), - ganss (2) } (SIZE (1..8)) - --- indicates MS support of different types of assistance data -AssistanceSupported ::= SEQUENCE { - gpsAssistance GPSAssistance OPTIONAL, - gANSSAssistanceSet GANSSAssistanceSet OPTIONAL, - ... , --- gANSSAdditionalAssistanceChoices shall be present if the MS supports other than native models - gANSSAdditionalAssistanceChoices GANSSAdditionalAssistanceChoices OPTIONAL -} - --- GPS assistance data supported -GPSAssistance ::= BIT STRING { - almanac (0), - uTCmodel (1), - ionosphericModel (2), - navigationmodel (3), - dGPScorrections (4), - referenceLocation (5), - referenceTime (6), - acquisitionAssistance (7), - realTimeIntegrity (8), - ephemerisExtension (9), - ephemerisExtensionCheck (10)} (SIZE (1..16)) - --- GANSS assistance data supported -GANSSAssistanceSet ::= SEQUENCE { - commonGANSSAssistance CommonGANSSAssistance, - specificGANSSAssistance SpecificGANSSAssistance, - ... -} - --- Common GANSS assistance data supported -CommonGANSSAssistance ::= BIT STRING { - referenceTime (0), - referenceLocation (1), - ionosphericModel (3), - addIonosphericModel (4), - earthOrientationParam (5) } (SIZE (1..8)) - -SpecificGANSSAssistance ::= SEQUENCE (SIZE(1..16)) OF GANSSAssistanceForOneGANSS - --- assistance data supported for a particular GANSS system -GANSSAssistanceForOneGANSS ::= SEQUENCE { - ganssID INTEGER (0..7) OPTIONAL, --Absence means Galileo - gANSSAssistance GANSSAssistance, - ... -} - --- specific GANSS assistance data supported -GANSSAssistance ::= BIT STRING { - realTimeIntegrity (0), - differentialCorrections (1), - almanac (2), - referenceMeasurementInformation (3), - navigationModel (4), - timeModelGNSS-UTC (5), - timeModelGNSS-GNSS (6), - databitassistance (7), - ephemerisExtension (8), - ephemerisExtensionCheck (9), - addUTCmodel (10), - auxiliaryInformation (11) } (SIZE (1..16)) - - -GANSSAdditionalAssistanceChoices ::= SEQUENCE (SIZE(1..16)) OF GANSSAdditionalAssistanceChoicesForOneGANSS - -GANSSAdditionalAssistanceChoicesForOneGANSS ::= SEQUENCE { - ganssID INTEGER (0..7) OPTIONAL, --Absence means Galileo - ganssClockModelChoice GANSSModelID OPTIONAL, - gannsOrbitModelChoice GANSSModelID OPTIONAL, - ganssAlmanacModelChoice GANSSModelID OPTIONAL, - ganssAdditionalUTCModelChoice GANSSModelID OPTIONAL, - ... -} - -GANSSModelID ::= BIT STRING { - model1 (0), - model2 (1), - model3 (2), - model4 (3), - model5 (4), - model6 (5), - model7 (6), - model8 (7) } (SIZE (1..8)) - - --- indicates assistance data that may be needed by the MS --- These elements are coded as defined in TS 49.031 with the exceptions defined in section A.8.2.3 -AssistanceNeeded ::= SEQUENCE { - gpsAssistanceData GPSAssistanceData OPTIONAL, - ganssAssistanceData GANSSAssistanceData OPTIONAL, - ... -} - -END diff --git a/asn.1/src/RRLP-Messages.asn b/asn.1/src/RRLP-Messages.asn deleted file mode 100644 index 7905afa4..00000000 --- a/asn.1/src/RRLP-Messages.asn +++ /dev/null @@ -1,40 +0,0 @@ --- RRLP-Messages.asn --- $Id$ --- Taken from 3GPP TS 44.031 V9.2.0 (2010-03) --- http://www.3gpp.org/ftp/Specs/archive/44_series/44.031/44031-920.zip/44031-920.doc --- --- 3.1 General Format of RRLP Message --- - -RRLP-Messages --- { RRLP-messages } - -DEFINITIONS AUTOMATIC TAGS ::= - -BEGIN - -IMPORTS - MsrPosition-Req, MsrPosition-Rsp, AssistanceData, - ProtocolError, PosCapability-Req, PosCapability-Rsp -FROM - RRLP-Components -- { RRLP-Components } -; - -PDU ::= SEQUENCE { - referenceNumber INTEGER (0..7), - component RRLP-Component -} - -RRLP-Component ::= CHOICE { - msrPositionReq MsrPosition-Req, - msrPositionRsp MsrPosition-Rsp, - assistanceData AssistanceData, - assistanceDataAck NULL, - protocolError ProtocolError, - ..., - posCapabilityReq PosCapability-Req, - posCapabilityRsp PosCapability-Rsp -} - -END - diff --git a/asn.1/src/SUPL-AUTH-REQ.asn b/asn.1/src/SUPL-AUTH-REQ.asn new file mode 100644 index 00000000..dc5503a1 --- /dev/null +++ b/asn.1/src/SUPL-AUTH-REQ.asn @@ -0,0 +1,23 @@ +-- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 +-- OMA-TS-ULP-V2_0-20100806-D +-- +-- 11.2.7 SUPL AUTH REQ +-- +SUPL-AUTH-REQ DEFINITIONS AUTOMATIC TAGS ::= BEGIN + +EXPORTS + SUPLAUTHREQ; + +IMPORTS + Ver + FROM ULP-Components + SETCapabilities + FROM SUPL-START; + +SUPLAUTHREQ ::= SEQUENCE { + ver Ver OPTIONAL, + sETCapabilities SETCapabilities OPTIONAL, + ... +} + +END \ No newline at end of file diff --git a/asn.1/src/SUPL-AUTH-RESP.asn b/asn.1/src/SUPL-AUTH-RESP.asn new file mode 100644 index 00000000..9cacec16 --- /dev/null +++ b/asn.1/src/SUPL-AUTH-RESP.asn @@ -0,0 +1,22 @@ +-- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 +-- OMA-TS-ULP-V2_0-20100806-D +-- +-- 11.2.8 SUPL AUTH RESP +-- +SUPL-AUTH-RESP DEFINITIONS AUTOMATIC TAGS ::= BEGIN + +EXPORTS + SUPLAUTHRESP; + +IMPORTS + SPCSETKey, SPCTID, SPCSETKeylifetime + FROM Ver2-ULP-Components; + +SUPLAUTHRESP ::= SEQUENCE { + sPCSETKey SPCSETKey, + sPCTID SPCTID, + sPCSETKeylifetime SPCSETKeylifetime OPTIONAL, + ... +} + +END diff --git a/asn.1/src/SUPL-END.asn b/asn.1/src/SUPL-END.asn new file mode 100644 index 00000000..95a8e4dd --- /dev/null +++ b/asn.1/src/SUPL-END.asn @@ -0,0 +1,26 @@ +-- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 +-- OMA-TS-ULP-V2_0-20100806-D +-- +-- 11.2.6 SUPL END +-- +SUPL-END DEFINITIONS AUTOMATIC TAGS ::= BEGIN + +EXPORTS + SUPLEND; + +IMPORTS + StatusCode, Position, Ver + FROM ULP-Components + Ver2-SUPL-END-extension + FROM ULP-Version-2-message-extensions; + +SUPLEND ::= SEQUENCE { + position Position OPTIONAL, + statusCode StatusCode OPTIONAL, + ver Ver OPTIONAL, + ..., + -- version 2 extension element + ver2-SUPL-END-extension Ver2-SUPL-END-extension OPTIONAL +} + +END \ No newline at end of file diff --git a/asn.1/src/SUPL-INIT.asn b/asn.1/src/SUPL-INIT.asn new file mode 100644 index 00000000..d12efe25 --- /dev/null +++ b/asn.1/src/SUPL-INIT.asn @@ -0,0 +1,84 @@ +-- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 +-- OMA-TS-ULP-V2_0-20100806-D +-- +-- 11.2.1 SUPL INIT +-- +SUPL-INIT DEFINITIONS AUTOMATIC TAGS ::= BEGIN + +EXPORTS + SUPLINIT, Notification; + +IMPORTS + SLPAddress, QoP, PosMethod + FROM ULP-Components + Ver2-SUPL-INIT-extension + FROM ULP-Version-2-message-extensions + Ver2-Notification-extension + FROM ULP-Version-2-parameter-extensions; + +SUPLINIT ::= SEQUENCE { + posMethod PosMethod, + notification Notification OPTIONAL, + sLPAddress SLPAddress OPTIONAL, + qoP QoP OPTIONAL, + sLPMode SLPMode, + mAC MAC OPTIONAL, -- included for backwards compatibility + keyIdentity KeyIdentity OPTIONAL, -- included for backwards compatibility + ..., + -- version 2 extension element + ver2-SUPL-INIT-extension Ver2-SUPL-INIT-extension OPTIONAL +} + +Notification ::= SEQUENCE { + notificationType NotificationType, + encodingType EncodingType OPTIONAL, + requestorId OCTET STRING (SIZE (1..maxReqLength)) OPTIONAL, + requestorIdType FormatIndicator OPTIONAL, + clientName OCTET STRING (SIZE (1..maxClientLength)) OPTIONAL, + clientNameType FormatIndicator OPTIONAL, + ..., + ver2-Notification-extension Ver2-Notification-extension OPTIONAL +} + +NotificationType ::= ENUMERATED { + noNotificationNoVerification (0), + notificationOnly (1), + notificationAndVerficationAllowedNA (2), + notificationAndVerficationDeniedNA (3), + privacyOverride (4), + ... + } + +EncodingType ::= ENUMERATED { + ucs2 (0), + gsmDefault (1), + utf8 (2), + ... + } + +maxReqLength INTEGER ::= 50 + +maxClientLength INTEGER ::= 50 + +FormatIndicator ::= ENUMERATED { + logicalName (0), + e-mailAddress (1), + msisdn (2), + url (3), + sipUrl (4), + min (5), + mdn (6), + iMSPublicidentity (7), + ... + } + +SLPMode ::= ENUMERATED { + proxy (0), + nonProxy (1) + } + +MAC ::= BIT STRING (SIZE (64)) -- empty placeholder required for SUPL 1.0 backwards compatibility + +KeyIdentity ::= BIT STRING (SIZE (128)) -- empty placeholder required for SUPL 1.0 backwards compatibility + +END \ No newline at end of file diff --git a/asn.1/src/SUPL-NOTIFY-RESPONSE.asn b/asn.1/src/SUPL-NOTIFY-RESPONSE.asn new file mode 100644 index 00000000..dac1beeb --- /dev/null +++ b/asn.1/src/SUPL-NOTIFY-RESPONSE.asn @@ -0,0 +1,22 @@ +-- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 +-- OMA-TS-ULP-V2_0-20100806-D +-- +-- 11.2.10 SUPL NOTIFY RESPONSE +-- +SUPL-NOTIFY-RESPONSE DEFINITIONS AUTOMATIC TAGS ::= BEGIN + +EXPORTS + Ver2-SUPLNOTIFYRESPONSE; + +Ver2-SUPLNOTIFYRESPONSE ::= SEQUENCE { + notificationResponse NotificationResponse OPTIONAL, + ... +} + +NotificationResponse ::= ENUMERATED { + allowed (0), + notAllowed (1), + ... + } + +END \ No newline at end of file diff --git a/asn.1/src/SUPL-NOTIFY.asn b/asn.1/src/SUPL-NOTIFY.asn new file mode 100644 index 00000000..1f5d0fdf --- /dev/null +++ b/asn.1/src/SUPL-NOTIFY.asn @@ -0,0 +1,20 @@ +-- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 +-- OMA-TS-ULP-V2_0-20100806-D +-- +-- 11.2.9 SUPL NOTIFY +-- +SUPL-NOTIFY DEFINITIONS AUTOMATIC TAGS ::= BEGIN + +EXPORTS + Ver2-SUPLNOTIFY; + +IMPORTS + Notification + FROM SUPL-INIT; + +Ver2-SUPLNOTIFY ::= SEQUENCE { + notification Notification, + ... +} + +END diff --git a/asn.1/src/SUPL-POS-INIT.asn b/asn.1/src/SUPL-POS-INIT.asn new file mode 100644 index 00000000..fa18e629 --- /dev/null +++ b/asn.1/src/SUPL-POS-INIT.asn @@ -0,0 +1,69 @@ +-- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 +-- OMA-TS-ULP-V2_0-20100806-D +-- +-- 11.2.4 SUPL POS INIT +-- +SUPL-POS-INIT DEFINITIONS AUTOMATIC TAGS ::= BEGIN + +EXPORTS + SUPLPOSINIT; + +IMPORTS + SUPLPOS + FROM SUPL-POS + SETCapabilities + FROM SUPL-START + LocationId, Position, Ver + FROM ULP-Components + Ver2-SUPL-POS-INIT-extension + FROM ULP-Version-2-message-extensions + Ver2-RequestedAssistData-extension + FROM ULP-Version-2-parameter-extensions; + +SUPLPOSINIT ::= SEQUENCE { + sETCapabilities SETCapabilities, + requestedAssistData RequestedAssistData OPTIONAL, + locationId LocationId, + position Position OPTIONAL, + sUPLPOS SUPLPOS OPTIONAL, + ver Ver OPTIONAL, + ..., + -- version 2 extension element + ver2-SUPL-POS-INIT-extension Ver2-SUPL-POS-INIT-extension OPTIONAL +} + +RequestedAssistData ::= SEQUENCE { + almanacRequested BOOLEAN, + utcModelRequested BOOLEAN, + ionosphericModelRequested BOOLEAN, + dgpsCorrectionsRequested BOOLEAN, + referenceLocationRequested BOOLEAN, -- Note: Used also for GANSS + referenceTimeRequested BOOLEAN, + acquisitionAssistanceRequested BOOLEAN, + realTimeIntegrityRequested BOOLEAN, + navigationModelRequested BOOLEAN, + navigationModelData SUPL-NavigationModel OPTIONAL, + ..., + ver2-RequestedAssistData-extension Ver2-RequestedAssistData-extension OPTIONAL +} + +SUPL-NavigationModel ::= SEQUENCE { + gpsWeek INTEGER (0..1023), + gpsToe INTEGER (0..167), + nSAT INTEGER (0..31), + toeLimit INTEGER (0..10), + satInfo SatelliteInfo OPTIONAL, + ... +} + +-- Further information on this fields can be found +-- in [3GPP RRLP]and [3GPP 49.031] +SatelliteInfo ::= SEQUENCE (SIZE (1..31)) OF SatelliteInfoElement + +SatelliteInfoElement ::= SEQUENCE { + satId INTEGER (0..63), + iODE INTEGER (0..255), + ... +} + +END \ No newline at end of file diff --git a/asn.1/src/SUPL-POS.asn b/asn.1/src/SUPL-POS.asn new file mode 100644 index 00000000..09209a19 --- /dev/null +++ b/asn.1/src/SUPL-POS.asn @@ -0,0 +1,35 @@ +-- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 +-- OMA-TS-ULP-V2_0-20100806-D +-- +-- 11.2.5 SUPL POS +-- +SUPL-POS DEFINITIONS AUTOMATIC TAGS ::= BEGIN + +EXPORTS + SUPLPOS; + +IMPORTS + ULP-Velocity + FROM ULP-Components + Ver2-SUPL-POS-extension + FROM ULP-Version-2-message-extensions + Ver2-PosPayLoad-extension + FROM ULP-Version-2-parameter-extensions; + +SUPLPOS ::= SEQUENCE { + posPayLoad PosPayLoad, + velocity ULP-Velocity OPTIONAL, + ..., + -- version 2 extension element + ver2-SUPL-POS-extension Ver2-SUPL-POS-extension OPTIONAL +} + +PosPayLoad ::= CHOICE { + tia801payload OCTET STRING (SIZE (1..8192)), + rrcPayload OCTET STRING (SIZE (1..8192)), + rrlpPayload OCTET STRING (SIZE (1..8192)), + ..., + ver2-PosPayLoad-extension Ver2-PosPayLoad-extension +} + +END \ No newline at end of file diff --git a/asn.1/src/SUPL-REPORT.asn b/asn.1/src/SUPL-REPORT.asn new file mode 100644 index 00000000..9e1bbfdb --- /dev/null +++ b/asn.1/src/SUPL-REPORT.asn @@ -0,0 +1,81 @@ +-- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 +-- OMA-TS-ULP-V2_0-20100806-D +-- +-- 11.2.14 SUPL REPORT +-- +SUPL-REPORT DEFINITIONS AUTOMATIC TAGS ::= BEGIN + +EXPORTS + Ver2-SUPLREPORT; + +IMPORTS + SETCapabilities + FROM SUPL-START + Position, PosMethod, SessionID, Ver + FROM ULP-Components + MultipleLocationIds, GNSSPosTechnology, GANSSSignals + FROM Ver2-ULP-Components + maxGANSS + FROM ULP-Version-2-parameter-extensions; + +Ver2-SUPLREPORT ::= SEQUENCE { + sessionList SessionList OPTIONAL, + sETCapabilities SETCapabilities OPTIONAL, + reportDataList ReportDataList OPTIONAL, + ver Ver OPTIONAL, + moreComponents NULL OPTIONAL, + ... +} + +SessionList ::= SEQUENCE SIZE (1..maxnumSessions) OF SessionInformation + +SessionInformation ::= SEQUENCE { + sessionID SessionID, + ... +} + +maxnumSessions INTEGER ::= 64 + +ReportDataList ::= SEQUENCE SIZE (1..1024) OF ReportData + +ReportData ::= SEQUENCE { + positionData SUPL-PositionData OPTIONAL, + multipleLocationIds MultipleLocationIds OPTIONAL, + resultCode ResultCode OPTIONAL, + timestamp TimeStamp OPTIONAL, + ... +} + +SUPL-PositionData ::= SEQUENCE { + position Position, + posMethod PosMethod OPTIONAL, + gnssPosTechnology GNSSPosTechnology OPTIONAL, + ganssSignalsInfo GANSSsignalsInfo OPTIONAL, + ... +} + +GANSSsignalsInfo ::= SEQUENCE SIZE (1..maxGANSS) OF GANSSSignalsDescription + +GANSSSignalsDescription ::= SEQUENCE { + ganssId INTEGER (0..15), -- coding according to parameter definition in section 10.10 + gANSSSignals GANSSSignals, + ... +} + +ResultCode ::= ENUMERATED { + outofradiocoverage (1), + noposition (2), + nomeasurement (3), + nopositionnomeasurement (4), + outofmemory (5), + outofmemoryintermediatereporting (6), + other (7), + ... + } + +TimeStamp ::= CHOICE { + absoluteTime UTCTime, + relativeTime INTEGER (0..31536000) +} -- relative time to when the SUPL REPORT message is sent in units of 1 sec, where 0 signifies "now" and n signifies n seconds in the past + +END \ No newline at end of file diff --git a/asn.1/src/SUPL-RESPONSE.asn b/asn.1/src/SUPL-RESPONSE.asn new file mode 100644 index 00000000..b18a4e2d --- /dev/null +++ b/asn.1/src/SUPL-RESPONSE.asn @@ -0,0 +1,35 @@ +-- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 +-- OMA-TS-ULP-V2_0-20100806-D +-- +-- 11.2.3 SUPL RESPONSE +-- +SUPL-RESPONSE DEFINITIONS AUTOMATIC TAGS ::= BEGIN + +EXPORTS + SUPLRESPONSE; + +IMPORTS + PosMethod, SLPAddress + FROM ULP-Components + Ver2-SUPL-RESPONSE-extension + FROM ULP-Version-2-message-extensions; + +SUPLRESPONSE ::= SEQUENCE { + posMethod PosMethod, + sLPAddress SLPAddress OPTIONAL, + sETAuthKey SETAuthKey OPTIONAL, -- included for backwards compatibility + keyIdentity4 KeyIdentity4 OPTIONAL, -- included for backwards compatibility + ..., + -- version 2 extension element + ver2-SUPL-RESPONSE-extension Ver2-SUPL-RESPONSE-extension OPTIONAL +} + +SETAuthKey ::= CHOICE { + shortKey BIT STRING (SIZE (128)), + longKey BIT STRING (SIZE (256)), + ... +} + +KeyIdentity4 ::= BIT STRING (SIZE (128)) + +END \ No newline at end of file diff --git a/asn.1/src/SUPL-SET-INIT.asn b/asn.1/src/SUPL-SET-INIT.asn new file mode 100644 index 00000000..64f26df7 --- /dev/null +++ b/asn.1/src/SUPL-SET-INIT.asn @@ -0,0 +1,24 @@ +-- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 +-- OMA-TS-ULP-V2_0-20100806-D +-- +-- 11.2.11 SUPL SET INIT +-- +SUPL-SET-INIT DEFINITIONS AUTOMATIC TAGS ::= BEGIN + +EXPORTS + Ver2-SUPLSETINIT; + +IMPORTS + SETId, QoP + FROM ULP-Components + ApplicationID + FROM Ver2-ULP-Components; + +Ver2-SUPLSETINIT ::= SEQUENCE { + targetSETID SETId, -- Target SETid identifies the target SET to be located + qoP QoP OPTIONAL, + applicationID ApplicationID OPTIONAL, + ... +} + +END \ No newline at end of file diff --git a/asn.1/src/SUPL-START.asn b/asn.1/src/SUPL-START.asn new file mode 100644 index 00000000..1775cdcd --- /dev/null +++ b/asn.1/src/SUPL-START.asn @@ -0,0 +1,64 @@ +-- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 +-- OMA-TS-ULP-V2_0-20100806-D +-- +-- 11.2.2 SUPL START +-- +SUPL-START DEFINITIONS AUTOMATIC TAGS ::= BEGIN + +EXPORTS + SUPLSTART, SETCapabilities; + +IMPORTS + LocationId, QoP + FROM ULP-Components + Ver2-SUPL-START-extension + FROM ULP-Version-2-message-extensions + Ver2-SETCapabilities-extension, Ver2-PosProtocol-extension, Ver2-PosTechnology-extension + FROM ULP-Version-2-parameter-extensions; + +SUPLSTART ::= SEQUENCE { + sETCapabilities SETCapabilities, + locationId LocationId, + qoP QoP OPTIONAL, + ..., + -- version 2 extension element + ver2-SUPL-START-extension Ver2-SUPL-START-extension OPTIONAL +} + +SETCapabilities ::= SEQUENCE { + posTechnology PosTechnology, + prefMethod PrefMethod, + posProtocol PosProtocol, + ..., + ver2-SETCapabilities-extension Ver2-SETCapabilities-extension OPTIONAL +} + +PosTechnology ::= SEQUENCE { + agpsSETassisted BOOLEAN, + agpsSETBased BOOLEAN, + autonomousGPS BOOLEAN, + aFLT BOOLEAN, + eCID BOOLEAN, + eOTD BOOLEAN, + oTDOA BOOLEAN, + ..., + ver2-PosTechnology-extension Ver2-PosTechnology-extension OPTIONAL +} + +PrefMethod ::= ENUMERATED { + agpsSETassistedPreferred, + agpsSETBasedPreferred, + noPreference + } + +-- To achieve compatibility with ULP V1.0 the names of the enumerations are +-- kept the same as in ULP V1.0. agps shall be interpreted as agnss. +PosProtocol ::= SEQUENCE { + tia801 BOOLEAN, + rrlp BOOLEAN, + rrc BOOLEAN, + ..., + ver2-PosProtocol-extension Ver2-PosProtocol-extension OPTIONAL +} + +END \ No newline at end of file diff --git a/asn.1/src/SUPL-TRIGGERED-RESPONSE.asn b/asn.1/src/SUPL-TRIGGERED-RESPONSE.asn new file mode 100644 index 00000000..20e1fef4 --- /dev/null +++ b/asn.1/src/SUPL-TRIGGERED-RESPONSE.asn @@ -0,0 +1,61 @@ +-- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 +-- OMA-TS-ULP-V2_0-20100806-D +-- +-- 11.2.13 SUPL TRIGGERED RESPONSE +-- +SUPL-TRIGGERED-RESPONSE DEFINITIONS AUTOMATIC TAGS ::= BEGIN + +EXPORTS + Ver2-SUPLTRIGGEREDRESPONSE; + +IMPORTS + PosMethod, SLPAddress + FROM ULP-Components + SupportedNetworkInformation, SPCSETKey, SPCTID, SPCSETKeylifetime, GNSSPosTechnology + FROM Ver2-ULP-Components + TriggerParams + FROM SUPL-TRIGGERED-START; + +Ver2-SUPLTRIGGEREDRESPONSE ::= SEQUENCE { + posMethod PosMethod, + triggerParams TriggerParams OPTIONAL, + sLPAddress SLPAddress OPTIONAL, + supportedNetworkInformation SupportedNetworkInformation OPTIONAL, + reportingMode ReportingMode OPTIONAL, + sPCSETKey SPCSETKey OPTIONAL, + sPCTID SPCTID OPTIONAL, + sPCSETKeylifetime SPCSETKeylifetime OPTIONAL, + gnssPosTechnology GNSSPosTechnology OPTIONAL, + ... +} + +ReportingMode ::= SEQUENCE { + repMode RepMode, + batchRepConditions BatchRepConditions OPTIONAL, -- only used for batch reporting + batchRepType BatchRepType OPTIONAL, -- only used for batch reporting + ... +} + +RepMode ::= ENUMERATED { + realtime (1), + quasirealtime (2), + batch (3), + ... + } + +BatchRepConditions ::= CHOICE { + num-interval INTEGER (1..1024), -- number of periodic fixes/measurements after which the batch report is sent to the SLP + num-minutes INTEGER (1..2048), -- number of minutes after which the batch report is sent to the SLP + endofsession NULL, -- if selected batch report is to be sent at the end of the session + ... +} + +BatchRepType ::= SEQUENCE { + reportPosition BOOLEAN, -- set to "true" if reporting of position is allowed + reportMeasurements BOOLEAN, -- set to "true" if reporting of measurements is allowed + intermediateReports BOOLEAN, -- set to "true" if the SET is allowed to send intermediate reports if it runs out of memory + discardOldest BOOLEAN OPTIONAL, -- set to "true" if the SET should discard the oldest positions or measurements of the batch report in order to save memory, set to "false" the SET should discard the latest positions or measurements + ... +} + +END \ No newline at end of file diff --git a/asn.1/src/SUPL-TRIGGERED-START.asn b/asn.1/src/SUPL-TRIGGERED-START.asn new file mode 100644 index 00000000..71511e26 --- /dev/null +++ b/asn.1/src/SUPL-TRIGGERED-START.asn @@ -0,0 +1,206 @@ +-- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 +-- OMA-TS-ULP-V2_0-20100806-D +-- +-- 11.2.12 SUPL TRIGGERED START +-- +SUPL-TRIGGERED-START DEFINITIONS AUTOMATIC TAGS ::= BEGIN + +EXPORTS + Ver2-SUPLTRIGGEREDSTART, TriggerType, TriggerParams, maxNumGeoArea, maxAreaId, maxAreaIdList; + +IMPORTS + LocationId, QoP, Ver, Position + FROM ULP-Components + MultipleLocationIds, CauseCode, ThirdParty, ApplicationID, ReportingCap, Coordinate, CircularArea, EllipticalArea, PolygonArea + FROM Ver2-ULP-Components + SETCapabilities + FROM SUPL-START; + +Ver2-SUPLTRIGGEREDSTART ::= SEQUENCE { + sETCapabilities SETCapabilities, + locationId LocationId, + ver Ver OPTIONAL, + qoP QoP OPTIONAL, + multipleLocationIds MultipleLocationIds OPTIONAL, + thirdParty ThirdParty OPTIONAL, + applicationID ApplicationID OPTIONAL, + triggerType TriggerType OPTIONAL, + triggerParams TriggerParams OPTIONAL, + position Position OPTIONAL, + reportingCap ReportingCap OPTIONAL, + causeCode CauseCode OPTIONAL, + ... +} + +TriggerType ::= ENUMERATED { + periodic (0), + areaEvent (1), + ... + } + +TriggerParams ::= CHOICE { + periodicParams PeriodicParams, + areaEventParams AreaEventParams, + ... +} + +PeriodicParams ::= SEQUENCE { + numberOfFixes INTEGER (1..8639999), + intervalBetweenFixes INTEGER (1..8639999), + startTime INTEGER (0..2678400) OPTIONAL, + ... +} + +-- intervalBetweenFixes and startTime are in seconds. +-- numberOfFixes * intervalBetweenFixes shall not exceed 8639999 +-- (100 days in seconds) for compatibility with OMA MLP and RLP +-- startTime is in relative time in units of seconds measured from "now" +-- a value of 0 signifies "now", a value of "startTime" signifies startTime +-- seconds from "now" +AreaEventParams ::= SEQUENCE { + areaEventType AreaEventType, + locationEstimate BOOLEAN, + repeatedReportingParams RepeatedReportingParams OPTIONAL, + startTime INTEGER (0..2678400) OPTIONAL, + stopTime INTEGER (0..11318399) OPTIONAL, + geographicTargetAreaList GeographicTargetAreaList OPTIONAL, + areaIdLists SEQUENCE (SIZE (1..maxAreaIdList)) OF AreaIdList OPTIONAL, + ... +} + +-- startTime and stopTime are in seconds. +-- startTime and stop Time are in relative time in units of seconds measured +-- from "now" +-- a value of 0 signifies "now" +-- stopTime must be > startTime +-- stopTime - startTime shall not exceed 8639999 +-- (100 days in seconds) for compatibility with OMA MLP and RLP +AreaEventType ::= ENUMERATED { + enteringArea (0), + insideArea (1), + outsideArea (2), + leavingArea (3), + ... + } + +RepeatedReportingParams ::= SEQUENCE { + minimumIntervalTime INTEGER (1..604800), -- time in seconds + maximumNumberOfReports INTEGER (1..1024), + ... +} + +GeographicTargetAreaList ::= SEQUENCE (SIZE (1..maxNumGeoArea)) OF GeographicTargetArea + +GeographicTargetArea ::= CHOICE { + circularArea CircularArea, + ellipticalArea EllipticalArea, + polygonArea PolygonArea, + ... +} + +AreaIdList ::= SEQUENCE { + areaIdSet AreaIdSet, + areaIdSetType AreaIdSetType OPTIONAL, + geoAreaMappingList GeoAreaMappingList OPTIONAL +} + +AreaIdSet ::= SEQUENCE SIZE (1..maxAreaId) OF AreaId + +AreaId ::= CHOICE { + gSMAreaId GSMAreaId, + wCDMAAreaId WCDMAAreaId, -- For TD-SCDMA networks, this parameter indicates a TD-SCDMA Area ID + cDMAAreaId CDMAAreaId, + hRPDAreaId HRPDAreaId, + uMBAreaId UMBAreaId, + lTEAreaId LTEAreaId, + wLANAreaId WLANAreaId, + wiMAXAreaId WimaxAreaId, + ... +} + +GSMAreaId ::= SEQUENCE { + refMCC INTEGER (0..999) OPTIONAL, -- Mobile Country Code + refMNC INTEGER (0..999) OPTIONAL, -- Mobile Network Code + refLAC INTEGER (0..65535) OPTIONAL, -- Location Area Code + refCI INTEGER (0..65535) OPTIONAL, -- Cell Id + ... +} + +-- if only CI is present, MCC, MNC and LAC are assumed to be identical to the current serving or camped on network values +-- if only CI + LAC are present, MCC and MNC are assumed to be identical to the current serving or camped on network values +-- if only CI + LAC + MNC are present, MCC is assumed to be identical to the current serving or camped on network values +-- if only LAC is present, MCC and MNC are assumed to be identical to the current serving or camped on network values +-- if only MNC is present, MCC is assumed to be identical to the current serving or camped on network value +WCDMAAreaId ::= SEQUENCE { + refMCC INTEGER (0..999) OPTIONAL, -- Mobile Country Code + refMNC INTEGER (0..999) OPTIONAL, -- Mobile Network Code + refLAC INTEGER (0..65535) OPTIONAL, -- Location Area Code + refUC INTEGER (0..268435455) OPTIONAL, -- Cell identity + ... +} + +-- if only UC is present, MCC and MNC are assumed to be identical to the current serving or camped on network values +-- if only LAC is present, MCC and MNC are assumed to be identical to the current serving or camped on network values +-- if only MNC is present, MCC is assumed to be identical to the current serving or camped on network value +CDMAAreaId ::= SEQUENCE { + refSID INTEGER (0..65535) OPTIONAL, -- System Id + refNID INTEGER (0..32767) OPTIONAL, -- Network Id + refBASEID INTEGER (0..65535) OPTIONAL, -- Base Station Id + ... +} + +-- if only BASEID is present, SID and NID are assumed to be identical to the current serving or camped on network values +-- if only NID is present, SID is assumed to be identical to the current serving or camped on network value +HRPDAreaId ::= SEQUENCE { + refSECTORID BIT STRING (SIZE (128)), -- HRPD Sector Id + ... +} + +UMBAreaId ::= SEQUENCE { + refMCC INTEGER (0..999) OPTIONAL, -- Mobile Country Code + refMNC INTEGER (0..999) OPTIONAL, -- Mobile Network Code + refSECTORID BIT STRING (SIZE (128)) OPTIONAL, -- UMB Sector Id + ... +} + +-- if only SECTORID is present, MCC and MNC are assumed to be identical to the current serving or camped on network values +-- if only SECTORID + MNC are present, MCC is assumed to be identical to the current serving or camped on network values +-- if only MNC is present, MCC is assumed to be identical to the current serving or camped on network value +LTEAreaId ::= SEQUENCE { + refMCC INTEGER (0..999) OPTIONAL, -- Mobile Country Code + refMNC INTEGER (0..999) OPTIONAL, -- Mobile Network Code + refCI BIT STRING (SIZE (29)) OPTIONAL, -- LTE Cell-Id including CSG bit + ... +} + +-- if only CI is present, MCC and MNC are assumed to be identical to the current serving or camped on network values +-- if only CI + MNC are present, MCC is assumed to be identical to the current serving or camped on network values +-- if only MNC is present, MCC is assumed to be identical to the current serving or camped on network value +WLANAreaId ::= SEQUENCE { + apMACAddress BIT STRING (SIZE (48)), -- AP MAC Address + ... +} + +WimaxAreaId ::= SEQUENCE { + bsID-MSB BIT STRING (SIZE (24)) OPTIONAL, + bsID-LSB BIT STRING (SIZE (24)) +} + +-- if only LSB is present, MSB is assumed to be identical to the current serving BS or clamped on network value +AreaIdSetType ::= ENUMERATED { + border (0), + within (1), + ... + } + +GeoAreaMappingList ::= SEQUENCE (SIZE (1..maxNumGeoArea)) OF GeoAreaIndex + +GeoAreaIndex ::= INTEGER (1..maxNumGeoArea) + +maxNumGeoArea INTEGER ::= 32 + +maxAreaId INTEGER ::= 256 + +maxAreaIdList INTEGER ::= 32 + +END diff --git a/asn.1/src/SUPL-TRIGGERED-STOP.asn b/asn.1/src/SUPL-TRIGGERED-STOP.asn new file mode 100644 index 00000000..06706fce --- /dev/null +++ b/asn.1/src/SUPL-TRIGGERED-STOP.asn @@ -0,0 +1,20 @@ +-- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 +-- OMA-TS-ULP-V2_0-20100806-D +-- +-- 11.2.15 SUPL TRIGGERED STOP +-- +SUPL-TRIGGERED-STOP DEFINITIONS AUTOMATIC TAGS ::= BEGIN + +EXPORTS + Ver2-SUPLTRIGGEREDSTOP; + +IMPORTS + StatusCode + FROM ULP-Components; + +Ver2-SUPLTRIGGEREDSTOP ::= SEQUENCE { + statusCode StatusCode OPTIONAL, + ... +} + +END \ No newline at end of file diff --git a/asn.1/src/SUPL.asn b/asn.1/src/SUPL.asn deleted file mode 100644 index d2fd051e..00000000 --- a/asn.1/src/SUPL.asn +++ /dev/null @@ -1,1005 +0,0 @@ --- SUPL.asn --- $Id$ --- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 --- OMA-TS-ULP-V2_0-20100806-D --- --- 11.2 Message Specific Part --- - --- --- 11.2.1 SUPL INIT --- - -SUPL-INIT DEFINITIONS AUTOMATIC TAGS ::= -BEGIN - -EXPORTS SUPLINIT, Notification; - -IMPORTS - SLPAddress, QoP, PosMethod -FROM ULP-Components - Ver2-SUPL-INIT-extension -FROM ULP-Version-2-message-extensions - Ver2-Notification-extension -FROM ULP-Version-2-parameter-extensions; - -SUPLINIT ::= SEQUENCE { - posMethod PosMethod, - notification Notification OPTIONAL, - sLPAddress SLPAddress OPTIONAL, - qoP QoP OPTIONAL, - sLPMode SLPMode, - mAC MAC OPTIONAL, -- included for backwards compatibility - keyIdentity KeyIdentity OPTIONAL, -- included for backwards compatibility - ..., --- version 2 extension element - ver2-SUPL-INIT-extension Ver2-SUPL-INIT-extension OPTIONAL } - -Notification ::= SEQUENCE { - notificationType NotificationType, - encodingType EncodingType OPTIONAL, - requestorId OCTET STRING(SIZE (1..maxReqLength)) OPTIONAL, - requestorIdType FormatIndicator OPTIONAL, - clientName OCTET STRING(SIZE (1..maxClientLength)) OPTIONAL, - clientNameType FormatIndicator OPTIONAL, - ..., - ver2-Notification-extension Ver2-Notification-extension OPTIONAL } - -NotificationType ::= ENUMERATED { - noNotificationNoVerification(0), notificationOnly(1), - notificationAndVerficationAllowedNA(2), - notificationAndVerficationDeniedNA(3), privacyOverride(4), ... } - -EncodingType ::= ENUMERATED { ucs2(0), gsmDefault(1), utf8(2), ... } - -maxReqLength INTEGER ::= 50 - -maxClientLength INTEGER ::= 50 - -FormatIndicator ::= ENUMERATED { - logicalName(0), e-mailAddress(1), msisdn(2), url(3), sipUrl(4), min(5), - mdn(6), iMSPublicidentity(7), ... } - -SLPMode ::= ENUMERATED { proxy(0), nonProxy(1) } - -MAC ::= BIT STRING(SIZE (64)) -- empty placeholder required for SUPL 1.0 backwards compatibility - -KeyIdentity ::= BIT STRING(SIZE (128)) -- empty placeholder required for SUPL 1.0 backwards compatibility - -END - --- --- 11.2.2 SUPL START --- -SUPL-START DEFINITIONS AUTOMATIC TAGS ::= -BEGIN - -EXPORTS SUPLSTART, SETCapabilities; - -IMPORTS - LocationId, QoP -FROM ULP-Components - Ver2-SUPL-START-extension -FROM ULP-Version-2-message-extensions - Ver2-SETCapabilities-extension, Ver2-PosProtocol-extension, Ver2-PosTechnology-extension -FROM ULP-Version-2-parameter-extensions; - -SUPLSTART ::= SEQUENCE { - sETCapabilities SETCapabilities, - locationId LocationId, - qoP QoP OPTIONAL, - ..., --- version 2 extension element - ver2-SUPL-START-extension Ver2-SUPL-START-extension OPTIONAL } - -SETCapabilities ::= SEQUENCE { - posTechnology PosTechnology, - prefMethod PrefMethod, - posProtocol PosProtocol, - ..., - ver2-SETCapabilities-extension Ver2-SETCapabilities-extension OPTIONAL } - -PosTechnology ::= SEQUENCE { - agpsSETassisted BOOLEAN, - agpsSETBased BOOLEAN, - autonomousGPS BOOLEAN, - aFLT BOOLEAN, - eCID BOOLEAN, - eOTD BOOLEAN, - oTDOA BOOLEAN, - ..., - ver2-PosTechnology-extension Ver2-PosTechnology-extension OPTIONAL } - -PrefMethod ::= ENUMERATED { - agpsSETassistedPreferred, agpsSETBasedPreferred, noPreference } --- To achieve compatibility with ULP V1.0 the names of the enumerations are --- kept the same as in ULP V1.0. agps shall be interpreted as agnss. - -PosProtocol ::= SEQUENCE { - tia801 BOOLEAN, - rrlp BOOLEAN, - rrc BOOLEAN, - ..., - ver2-PosProtocol-extension Ver2-PosProtocol-extension OPTIONAL } - -END - --- --- 11.2.3 SUPL RESPONSE --- -SUPL-RESPONSE DEFINITIONS AUTOMATIC TAGS ::= -BEGIN - -EXPORTS SUPLRESPONSE; - -IMPORTS - PosMethod, SLPAddress -FROM ULP-Components - Ver2-SUPL-RESPONSE-extension -FROM ULP-Version-2-message-extensions; - -SUPLRESPONSE ::= SEQUENCE { - posMethod PosMethod, - sLPAddress SLPAddress OPTIONAL, -sETAuthKey SETAuthKey OPTIONAL, -- included for backwards compatibility - keyIdentity4 KeyIdentity4 OPTIONAL, -- included for backwards compatibility - ..., --- version 2 extension element - ver2-SUPL-RESPONSE-extension Ver2-SUPL-RESPONSE-extension OPTIONAL } - -SETAuthKey ::= CHOICE { - shortKey BIT STRING(SIZE (128)), - longKey BIT STRING(SIZE (256)), - ... } - -KeyIdentity4 ::= BIT STRING(SIZE (128)) - -END - --- --- 11.2.4 SUPL POS INIT --- -SUPL-POS-INIT DEFINITIONS AUTOMATIC TAGS ::= -BEGIN - -EXPORTS SUPLPOSINIT; - -IMPORTS - SUPLPOS -FROM SUPL-POS - SETCapabilities -FROM SUPL-START - LocationId, Position, Ver -FROM ULP-Components - Ver2-SUPL-POS-INIT-extension -FROM ULP-Version-2-message-extensions - Ver2-RequestedAssistData-extension -FROM ULP-Version-2-parameter-extensions; - -SUPLPOSINIT ::= SEQUENCE { - sETCapabilities SETCapabilities, - requestedAssistData RequestedAssistData OPTIONAL, - locationId LocationId, - position Position OPTIONAL, - sUPLPOS SUPLPOS OPTIONAL, - ver Ver OPTIONAL, - ..., --- version 2 extension element - ver2-SUPL-POS-INIT-extension Ver2-SUPL-POS-INIT-extension OPTIONAL } - -RequestedAssistData ::= SEQUENCE { - almanacRequested BOOLEAN, - utcModelRequested BOOLEAN, - ionosphericModelRequested BOOLEAN, - dgpsCorrectionsRequested BOOLEAN, - referenceLocationRequested BOOLEAN, -- Note: Used also for GANSS - referenceTimeRequested BOOLEAN, - acquisitionAssistanceRequested BOOLEAN, - realTimeIntegrityRequested BOOLEAN, - navigationModelRequested BOOLEAN, - navigationModelData SUPL-NavigationModel OPTIONAL, - ..., - ver2-RequestedAssistData-extension Ver2-RequestedAssistData-extension OPTIONAL } - -SUPL-NavigationModel ::= SEQUENCE { - gpsWeek INTEGER(0..1023), - gpsToe INTEGER(0..167), - nSAT INTEGER(0..31), - toeLimit INTEGER(0..10), - satInfo SatelliteInfo OPTIONAL, -... } - --- Further information on this fields can be found --- in [3GPP RRLP]and [3GPP 49.031] - -SatelliteInfo ::= SEQUENCE (SIZE (1..31)) OF SatelliteInfoElement - -SatelliteInfoElement ::= SEQUENCE { - satId INTEGER(0..63), - iODE INTEGER(0..255), - ... } - -END - --- --- 11.2.5 SUPL POS --- -SUPL-POS DEFINITIONS AUTOMATIC TAGS ::= -BEGIN - -EXPORTS SUPLPOS; - -IMPORTS - ULP-Velocity -FROM ULP-Components - Ver2-SUPL-POS-extension -FROM ULP-Version-2-message-extensions -Ver2-PosPayLoad-extension -FROM ULP-Version-2-parameter-extensions; - -SUPLPOS ::= SEQUENCE { - posPayLoad PosPayLoad, - velocity ULP-Velocity OPTIONAL, - ..., --- version 2 extension element - ver2-SUPL-POS-extension Ver2-SUPL-POS-extension OPTIONAL } - -PosPayLoad ::= CHOICE { - tia801payload OCTET STRING(SIZE (1..8192)), - rrcPayload OCTET STRING(SIZE (1..8192)), - rrlpPayload OCTET STRING(SIZE (1..8192)), - ..., - ver2-PosPayLoad-extension Ver2-PosPayLoad-extension } - -END - --- --- 11.2.6 SUPL END --- -SUPL-END DEFINITIONS AUTOMATIC TAGS ::= -BEGIN - -EXPORTS SUPLEND; - -IMPORTS - StatusCode, Position, Ver -FROM ULP-Components - Ver2-SUPL-END-extension -FROM ULP-Version-2-message-extensions; - -SUPLEND ::= SEQUENCE { - position Position OPTIONAL, - statusCode StatusCode OPTIONAL, - ver Ver OPTIONAL, - ..., --- version 2 extension element - ver2-SUPL-END-extension Ver2-SUPL-END-extension OPTIONAL } - -END - --- --- 11.2.7 SUPL AUTH REQ --- -SUPL-AUTH-REQ DEFINITIONS AUTOMATIC TAGS ::= -BEGIN - -EXPORTS SUPLAUTHREQ; - -IMPORTS - Ver -FROM ULP-Components - SETCapabilities -FROM SUPL-START; - -SUPLAUTHREQ ::= SEQUENCE { - ver Ver OPTIONAL, - sETCapabilities SETCapabilities OPTIONAL, - ... } - -END - --- --- 11.2.8 SUPL AUTH RESP --- -SUPL-AUTH-RESP DEFINITIONS AUTOMATIC TAGS ::= -BEGIN - -EXPORTS SUPLAUTHRESP; - -IMPORTS - SPCSETKey, SPCTID, SPCSETKeylifetime -FROM Ver2-ULP-Components; - -SUPLAUTHRESP ::= SEQUENCE { - sPCSETKey SPCSETKey, - sPCTID SPCTID, - sPCSETKeylifetime SPCSETKeylifetime OPTIONAL, - ... } - -END - --- --- 11.2.9 SUPL NOTIFY --- -SUPL-NOTIFY DEFINITIONS AUTOMATIC TAGS ::= -BEGIN - -EXPORTS Ver2-SUPLNOTIFY; - -IMPORTS - Notification -FROM SUPL-INIT; - -Ver2-SUPLNOTIFY ::= SEQUENCE { - notification Notification, - ... } -END - --- --- 11.2.10 SUPL NOTIFY RESPONSE --- -SUPL-NOTIFY-RESPONSE DEFINITIONS AUTOMATIC TAGS ::= -BEGIN - -EXPORTS Ver2-SUPLNOTIFYRESPONSE; - -Ver2-SUPLNOTIFYRESPONSE ::= SEQUENCE { - notificationResponse NotificationResponse OPTIONAL, - ... } - -NotificationResponse ::= ENUMERATED { allowed(0), notAllowed(1), ... } - -END - --- --- 11.2.11 SUPL SET INIT --- -SUPL-SET-INIT DEFINITIONS AUTOMATIC TAGS ::= -BEGIN - -EXPORTS Ver2-SUPLSETINIT; - -IMPORTS - SETId, QoP -FROM ULP-Components -ApplicationID -FROM Ver2-ULP-Components; - -Ver2-SUPLSETINIT ::= SEQUENCE { - targetSETID SETId, -- Target SETid identifies the target SET to be located - qoP QoP OPTIONAL, - applicationID ApplicationID OPTIONAL, - ... } - -END - --- --- 11.2.12 SUPL TRIGGERED START --- -SUPL-TRIGGERED-START DEFINITIONS AUTOMATIC TAGS ::= -BEGIN - -EXPORTS Ver2-SUPLTRIGGEREDSTART, TriggerType, TriggerParams, maxNumGeoArea, maxAreaId, maxAreaIdList; - -IMPORTS - LocationId, QoP, Ver, Position -FROM ULP-Components - MultipleLocationIds, CauseCode, ThirdParty, ApplicationID, ReportingCap, Coordinate, CircularArea, EllipticalArea, PolygonArea -FROM Ver2-ULP-Components - SETCapabilities -FROM SUPL-START; - -Ver2-SUPLTRIGGEREDSTART ::= SEQUENCE { - sETCapabilities SETCapabilities, - locationId LocationId, - ver Ver OPTIONAL, - qoP QoP OPTIONAL, - multipleLocationIds MultipleLocationIds OPTIONAL, -thirdParty ThirdParty OPTIONAL, -applicationID ApplicationID OPTIONAL, - triggerType TriggerType OPTIONAL, - triggerParams TriggerParams OPTIONAL, - position Position OPTIONAL, - reportingCap ReportingCap OPTIONAL, - causeCode CauseCode OPTIONAL, -... } - -TriggerType ::= ENUMERATED { - periodic(0), areaEvent(1), - ... } - -TriggerParams ::= CHOICE { - periodicParams PeriodicParams, - areaEventParams AreaEventParams, - ... } - -PeriodicParams ::= SEQUENCE { - numberOfFixes INTEGER(1.. 8639999), - intervalBetweenFixes INTEGER(1.. 8639999), - startTime INTEGER(0..2678400) OPTIONAL, -... } --- intervalBetweenFixes and startTime are in seconds. --- numberOfFixes * intervalBetweenFixes shall not exceed 8639999 --- (100 days in seconds) for compatibility with OMA MLP and RLP --- startTime is in relative time in units of seconds measured from "now" --- a value of 0 signifies "now", a value of "startTime" signifies startTime --- seconds from "now" - -AreaEventParams ::= SEQUENCE { -areaEventType AreaEventType, -locationEstimate BOOLEAN, -repeatedReportingParams RepeatedReportingParams OPTIONAL, -startTime INTEGER(0..2678400) OPTIONAL, -stopTime INTEGER(0..11318399) OPTIONAL, -geographicTargetAreaList GeographicTargetAreaList OPTIONAL, -areaIdLists SEQUENCE (SIZE (1..maxAreaIdList)) OF AreaIdList OPTIONAL, -... } - --- startTime and stopTime are in seconds. --- startTime and stop Time are in relative time in units of seconds measured --- from "now" --- a value of 0 signifies "now" --- stopTime must be > startTime --- stopTime - startTime shall not exceed 8639999 --- (100 days in seconds) for compatibility with OMA MLP and RLP - -AreaEventType ::= ENUMERATED { enteringArea(0), insideArea(1), outsideArea(2), leavingArea(3), ... } - -RepeatedReportingParams ::= SEQUENCE { -minimumIntervalTime INTEGER (1..604800), -- time in seconds -maximumNumberOfReports INTEGER (1..1024), -... } - -GeographicTargetAreaList ::= SEQUENCE (SIZE (1..maxNumGeoArea)) OF GeographicTargetArea - -GeographicTargetArea ::= CHOICE { - circularArea CircularArea, - ellipticalArea EllipticalArea, - polygonArea PolygonArea, - ... } - -AreaIdList ::= SEQUENCE { - areaIdSet AreaIdSet, - areaIdSetType AreaIdSetType OPTIONAL, - geoAreaMappingList GeoAreaMappingList OPTIONAL } - -AreaIdSet ::= SEQUENCE SIZE (1..maxAreaId) OF AreaId - -AreaId ::= CHOICE { - gSMAreaId GSMAreaId, - wCDMAAreaId WCDMAAreaId, -- For TD-SCDMA networks, this parameter indicates a TD-SCDMA Area ID - cDMAAreaId CDMAAreaId, - hRPDAreaId HRPDAreaId, - uMBAreaId UMBAreaId, - lTEAreaId LTEAreaId, - wLANAreaId WLANAreaId, - wiMAXAreaId WimaxAreaId, - ... } - -GSMAreaId ::= SEQUENCE { - refMCC INTEGER(0..999) OPTIONAL, -- Mobile Country Code - refMNC INTEGER(0..999) OPTIONAL, -- Mobile Network Code - refLAC INTEGER(0..65535) OPTIONAL, -- Location Area Code - refCI INTEGER(0..65535) OPTIONAL, -- Cell Id - ... } - --- if only CI is present, MCC, MNC and LAC are assumed to be identical to the current serving or camped on network values --- if only CI + LAC are present, MCC and MNC are assumed to be identical to the current serving or camped on network values --- if only CI + LAC + MNC are present, MCC is assumed to be identical to the current serving or camped on network values --- if only LAC is present, MCC and MNC are assumed to be identical to the current serving or camped on network values --- if only MNC is present, MCC is assumed to be identical to the current serving or camped on network value - -WCDMAAreaId ::= SEQUENCE { - refMCC INTEGER(0..999) OPTIONAL, -- Mobile Country Code -refMNC INTEGER(0..999) OPTIONAL, -- Mobile Network Code - refLAC INTEGER(0..65535) OPTIONAL, -- Location Area Code -refUC INTEGER(0..268435455) OPTIONAL, -- Cell identity -... } - --- if only UC is present, MCC and MNC are assumed to be identical to the current serving or camped on network values --- if only LAC is present, MCC and MNC are assumed to be identical to the current serving or camped on network values --- if only MNC is present, MCC is assumed to be identical to the current serving or camped on network value - -CDMAAreaId ::= SEQUENCE { - refSID INTEGER(0..65535) OPTIONAL, -- System Id - refNID INTEGER(0..32767) OPTIONAL, -- Network Id - refBASEID INTEGER(0..65535) OPTIONAL, -- Base Station Id -... } - --- if only BASEID is present, SID and NID are assumed to be identical to the current serving or camped on network values --- if only NID is present, SID is assumed to be identical to the current serving or camped on network value - -HRPDAreaId ::= SEQUENCE { -refSECTORID BIT STRING(SIZE (128)), -- HRPD Sector Id -... } - -UMBAreaId ::= SEQUENCE { - refMCC INTEGER(0..999) OPTIONAL, -- Mobile Country Code - refMNC INTEGER(0..999) OPTIONAL, -- Mobile Network Code -refSECTORID BIT STRING(SIZE (128)) OPTIONAL, -- UMB Sector Id -... } - --- if only SECTORID is present, MCC and MNC are assumed to be identical to the current serving or camped on network values --- if only SECTORID + MNC are present, MCC is assumed to be identical to the current serving or camped on network values --- if only MNC is present, MCC is assumed to be identical to the current serving or camped on network value - -LTEAreaId ::= SEQUENCE { - refMCC INTEGER(0..999) OPTIONAL, -- Mobile Country Code - refMNC INTEGER(0..999) OPTIONAL, -- Mobile Network Code -refCI BIT STRING(SIZE (29)) OPTIONAL, -- LTE Cell-Id including CSG bit -... } - --- if only CI is present, MCC and MNC are assumed to be identical to the current serving or camped on network values --- if only CI + MNC are present, MCC is assumed to be identical to the current serving or camped on network values --- if only MNC is present, MCC is assumed to be identical to the current serving or camped on network value - -WLANAreaId ::= SEQUENCE { - apMACAddress BIT STRING(SIZE (48)), -- AP MAC Address -... } - -WimaxAreaId ::= SEQUENCE { - bsID-MSB BIT STRING (SIZE (24)) OPTIONAL, - bsID-LSB BIT STRING (SIZE (24)) } --- if only LSB is present, MSB is assumed to be identical to the current serving BS or clamped on network value - -AreaIdSetType ::= ENUMERATED { border(0), within(1), ... } - -GeoAreaMappingList ::= SEQUENCE (SIZE (1..maxNumGeoArea)) OF GeoAreaIndex - -GeoAreaIndex ::= INTEGER (1..maxNumGeoArea) - -maxNumGeoArea INTEGER ::= 32 - -maxAreaId INTEGER ::= 256 - -maxAreaIdList INTEGER ::= 32 - -END - --- --- 11.2.13 SUPL TRIGGERED RESPONSE --- -SUPL-TRIGGERED-RESPONSE DEFINITIONS AUTOMATIC TAGS ::= -BEGIN - -EXPORTS Ver2-SUPLTRIGGEREDRESPONSE; - -IMPORTS - PosMethod, SLPAddress -FROM ULP-Components - SupportedNetworkInformation, SPCSETKey, SPCTID, SPCSETKeylifetime, GNSSPosTechnology -FROM Ver2-ULP-Components - TriggerParams -FROM SUPL-TRIGGERED-START; - -Ver2-SUPLTRIGGEREDRESPONSE ::= SEQUENCE { - posMethod PosMethod, - triggerParams TriggerParams OPTIONAL, - sLPAddress SLPAddress OPTIONAL, - supportedNetworkInformation SupportedNetworkInformation OPTIONAL, - reportingMode ReportingMode OPTIONAL, - sPCSETKey SPCSETKey OPTIONAL, - sPCTID SPCTID OPTIONAL, - sPCSETKeylifetime SPCSETKeylifetime OPTIONAL, - gnssPosTechnology GNSSPosTechnology OPTIONAL, - ... } -ReportingMode ::= SEQUENCE { -repMode RepMode, -batchRepConditions BatchRepConditions OPTIONAL, -- only used for batch reporting -batchRepType BatchRepType OPTIONAL, -- only used for batch reporting -... } - -RepMode ::= ENUMERATED { realtime(1), quasirealtime(2), batch(3), ... } - -BatchRepConditions ::= CHOICE { - num-interval INTEGER (1..1024), -- number of periodic fixes/measurements after which the batch report is sent to the SLP - num-minutes INTEGER (1..2048), -- number of minutes after which the batch report is sent to the SLP - endofsession NULL, -- if selected batch report is to be sent at the end of the session - ... } - -BatchRepType ::= SEQUENCE { -reportPosition BOOLEAN, -- set to "true" if reporting of position is allowed -reportMeasurements BOOLEAN, -- set to "true" if reporting of measurements is allowed -intermediateReports BOOLEAN, -- set to "true" if the SET is allowed to send intermediate reports if it runs out of memory -discardOldest BOOLEAN OPTIONAL, -- set to "true" if the SET should discard the oldest positions or measurements of the batch report in order to save memory, set to "false" the SET should discard the latest positions or measurements -... } - -END - --- --- 11.2.14 SUPL REPORT --- -SUPL-REPORT DEFINITIONS AUTOMATIC TAGS ::= -BEGIN - -EXPORTS Ver2-SUPLREPORT; - -IMPORTS - SETCapabilities -FROM SUPL-START - Position, PosMethod, SessionID, Ver -FROM ULP-Components - MultipleLocationIds, GNSSPosTechnology, GANSSSignals -FROM Ver2-ULP-Components - maxGANSS -FROM ULP-Version-2-parameter-extensions; - -Ver2-SUPLREPORT ::= SEQUENCE { - sessionList SessionList OPTIONAL, - sETCapabilities SETCapabilities OPTIONAL, - reportDataList ReportDataList OPTIONAL, - ver Ver OPTIONAL, - moreComponents NULL OPTIONAL, -... } - -SessionList ::= SEQUENCE SIZE (1..maxnumSessions) OF SessionInformation - -SessionInformation ::= SEQUENCE { - sessionID SessionID, - ... } - -maxnumSessions INTEGER ::= 64 - -ReportDataList ::= SEQUENCE SIZE (1.. 1024) OF ReportData - -ReportData ::= SEQUENCE { - positionData SUPL-PositionData OPTIONAL, - multipleLocationIds MultipleLocationIds OPTIONAL, - resultCode ResultCode OPTIONAL, - timestamp TimeStamp OPTIONAL, - ... } - -SUPL-PositionData ::= SEQUENCE { - position Position, - posMethod PosMethod OPTIONAL, - gnssPosTechnology GNSSPosTechnology OPTIONAL, - ganssSignalsInfo GANSSsignalsInfo OPTIONAL, - ... } - -GANSSsignalsInfo ::= SEQUENCE SIZE (1..maxGANSS) OF GANSSSignalsDescription - -GANSSSignalsDescription ::= SEQUENCE { -ganssId INTEGER(0..15), -- coding according to parameter definition in section 10.10 -gANSSSignals GANSSSignals, -... } - -ResultCode ::= ENUMERATED { outofradiocoverage(1), noposition(2), nomeasurement(3), nopositionnomeasurement(4), outofmemory(5), outofmemoryintermediatereporting(6), other(7), ... } - -TimeStamp ::= CHOICE { - absoluteTime UTCTime, - relativeTime INTEGER (0..31536000) } -- relative time to when the SUPL REPORT message is sent in units of 1 sec, where 0 signifies "now" and n signifies n seconds in the past - -END - --- ---11.2.15 SUPL TRIGGERED STOP --- -SUPL-TRIGGERED-STOP DEFINITIONS AUTOMATIC TAGS ::= -BEGIN - -EXPORTS Ver2-SUPLTRIGGEREDSTOP; - -IMPORTS - StatusCode -FROM ULP-Components; - -Ver2-SUPLTRIGGEREDSTOP ::= SEQUENCE { - statusCode StatusCode OPTIONAL, - ... } - -END - --- ---11.3 Messsage Extensions (SUPL Version 2) --- -ULP-Version-2-message-extensions DEFINITIONS AUTOMATIC TAGS ::= -BEGIN - -EXPORTS -Ver2-SUPL-INIT-extension, Ver2-SUPL-START-extension, Ver2-SUPL-RESPONSE-extension, Ver2-SUPL-POS-INIT-extension, Ver2-SUPL-POS-extension, Ver2-SUPL-END-extension; - -IMPORTS - SLPAddress, Position, Ver -FROM ULP-Components - SETCapabilities -FROM SUPL-START - SupportedNetworkInformation, GNSSPosTechnology, MultipleLocationIds, UTRAN-GPSReferenceTimeResult, UTRAN-GANSSReferenceTimeResult, UTRAN-GPSReferenceTimeAssistance, UTRAN-GANSSReferenceTimeAssistance, SPCSETKey, SPCTID, SPCSETKeylifetime, ThirdParty, ApplicationID -FROM Ver2-ULP-Components - TriggerType -FROM SUPL-TRIGGERED-START; - -Ver2-SUPL-INIT-extension ::= SEQUENCE { - notificationMode NotificationMode OPTIONAL, - supportedNetworkInformation SupportedNetworkInformation OPTIONAL, - triggerType TriggerType OPTIONAL, - e-SLPAddress SLPAddress OPTIONAL, - historicReporting HistoricReporting OPTIONAL, - protectionLevel ProtectionLevel OPTIONAL, - gnssPosTechnology GNSSPosTechnology OPTIONAL, - minimumMajorVersion INTEGER (0..255) OPTIONAL, -... } - -NotificationMode ::= ENUMERATED { normal(0), basedOnLocation(1), ... } - -HistoricReporting ::= SEQUENCE { - allowedReportingType AllowedReportingType, - reportingCriteria ReportingCriteria OPTIONAL,... } - -AllowedReportingType ::= ENUMERATED { - positionsOnly(0), measurementsOnly(1), positionsAndMeasurements(2),... } - -ReportingCriteria ::= SEQUENCE { - timeWindow TimeWindow OPTIONAL, - maxNumberofReports INTEGER(1..65536) OPTIONAL, - minTimeInterval INTEGER(1..86400) OPTIONAL, -... } - -TimeWindow ::= SEQUENCE { - startTime INTEGER(-525600..-1), -- Time in minutes - stopTime INTEGER(-525599..0) } -- Time in minutes - -ProtectionLevel ::= SEQUENCE { - protlevel ProtLevel, - basicProtectionParams BasicProtectionParams OPTIONAL, -... } - -ProtLevel ::= ENUMERATED { - nullProtection(0), basicProtection(1), ... } - -BasicProtectionParams ::= SEQUENCE { - keyIdentifier OCTET STRING(SIZE (8)), - basicReplayCounter INTEGER(0..65535), - basicMAC BIT STRING(SIZE (32)), -... } - -Ver2-SUPL-START-extension ::= SEQUENCE { - multipleLocationIds MultipleLocationIds OPTIONAL, - thirdParty ThirdParty OPTIONAL, - applicationID ApplicationID OPTIONAL, - position Position OPTIONAL, -... } - -Ver2-SUPL-RESPONSE-extension ::= SEQUENCE { - supportedNetworkInformation SupportedNetworkInformation OPTIONAL, - sPCSETKey SPCSETKey OPTIONAL, - sPCTID SPCTID OPTIONAL, - sPCSETKeylifetime SPCSETKeylifetime OPTIONAL, - initialApproximateposition Position OPTIONAL, - gnssPosTechnology GNSSPosTechnology OPTIONAL, -... } - -Ver2-SUPL-POS-INIT-extension ::= SEQUENCE { - multipleLocationIds MultipleLocationIds OPTIONAL, - utran-GPSReferenceTimeResult UTRAN-GPSReferenceTimeResult OPTIONAL, - utran-GANSSReferenceTimeResult UTRAN-GANSSReferenceTimeResult OPTIONAL, -... } - -Ver2-SUPL-POS-extension ::= SEQUENCE { -utran-GPSReferenceTimeAssistance UTRAN-GPSReferenceTimeAssistance OPTIONAL, -utran-GPSReferenceTimeResult UTRAN-GPSReferenceTimeResult OPTIONAL, -utran-GANSSReferenceTimeAssistance UTRAN-GANSSReferenceTimeAssistance OPTIONAL, -utran-GANSSReferenceTimeResult UTRAN-GANSSReferenceTimeResult OPTIONAL, -... } - -Ver2-SUPL-END-extension ::= SEQUENCE { - sETCapabilities SETCapabilities OPTIONAL, -... } - -END - --- --- 11.4 Parameter Extensions (SUPL Version 2) --- - -ULP-Version-2-parameter-extensions DEFINITIONS AUTOMATIC TAGS ::= -BEGIN - -EXPORTS -maxGANSS, Ver2-Notification-extension, Ver2-SETCapabilities-extension, Ver2-PosProtocol-extension, Ver2-PosTechnology-extension, Ver2-RequestedAssistData-extension, Ver2-PosPayLoad-extension; - -IMPORTS - GANSSSignals, ReportingCap -FROM Ver2-ULP-Components - maxNumGeoArea, maxAreaId, maxAreaIdList -FROM SUPL-TRIGGERED-START; - -Ver2-Notification-extension ::= SEQUENCE { - emergencyCallLocation NULL OPTIONAL, - ... } - -Ver2-SETCapabilities-extension ::= SEQUENCE { -serviceCapabilities ServiceCapabilities OPTIONAL, -..., - supportedBearers SupportedBearers OPTIONAL } - -ServiceCapabilities ::= SEQUENCE { - servicesSupported ServicesSupported, - reportingCapabilities ReportingCap OPTIONAL, - eventTriggerCapabilities EventTriggerCapabilities OPTIONAL, - sessionCapabilities SessionCapabilities, -... } - -ServicesSupported ::= SEQUENCE { - periodicTrigger BOOLEAN, - areaEventTrigger BOOLEAN, -... } - -EventTriggerCapabilities ::= SEQUENCE { - geoAreaShapesSupported GeoAreaShapesSupported, - maxNumGeoAreaSupported INTEGER (0..maxNumGeoArea) OPTIONAL, - maxAreaIdListSupported INTEGER (0..maxAreaIdList) OPTIONAL, - maxAreaIdSupportedPerList INTEGER (0..maxAreaId) OPTIONAL, -... } - -GeoAreaShapesSupported ::= SEQUENCE { - ellipticalArea BOOLEAN, - polygonArea BOOLEAN, -... } - -SessionCapabilities ::= SEQUENCE { - maxNumberTotalSessions INTEGER (1..128), - maxNumberPeriodicSessions INTEGER (1..32), - maxNumberTriggeredSessions INTEGER (1..32), -... } - -SupportedBearers ::= SEQUENCE { - gsm BOOLEAN, - wcdma BOOLEAN, - lte BOOLEAN, - cdma BOOLEAN, - hprd BOOLEAN, - umb BOOLEAN, - wlan BOOLEAN, - wiMAX BOOLEAN, -... } - -Ver2-PosProtocol-extension ::= SEQUENCE { - lpp BOOLEAN, -posProtocolVersionRRLP PosProtocolVersion3GPP OPTIONAL, -posProtocolVersionRRC PosProtocolVersion3GPP OPTIONAL, -posProtocolVersionTIA801 PosProtocolVersion3GPP2 OPTIONAL, -posProtocolVersionLPP PosProtocolVersion3GPP OPTIONAL, -... } - -PosProtocolVersion3GPP ::= SEQUENCE { - majorVersionField INTEGER(0..255), - technicalVersionField INTEGER(0..255), - editorialVersionField INTEGER(0..255), -... } - -PosProtocolVersion3GPP2 ::= SEQUENCE (SIZE (1..8)) OF Supported3GPP2PosProtocolVersion - -Supported3GPP2PosProtocolVersion ::= SEQUENCE { - revisionNumber BIT STRING(SIZE (6)), -- the location standard revision number the SET supports coded according to 3GPP2 C.S0022 - pointReleaseNumber INTEGER(0..255), - internalEditLevel INTEGER(0..255), -... } - -Ver2-PosTechnology-extension ::= SEQUENCE { - gANSSPositionMethods GANSSPositionMethods OPTIONAL, -... } - -GANSSPositionMethods ::= SEQUENCE (SIZE (1..16)) OF GANSSPositionMethod - -GANSSPositionMethod ::= SEQUENCE { -ganssId INTEGER(0..15), -- coding according to parameter definition in section 10.10 -ganssSBASid BIT STRING(SIZE (3)) OPTIONAL, -- coding according to parameter definition in section 10.10 -gANSSPositioningMethodTypes GANSSPositioningMethodTypes, -gANSSSignals GANSSSignals, -... } - -GANSSPositioningMethodTypes ::= SEQUENCE { - setAssisted BOOLEAN, - setBased BOOLEAN, - autonomous BOOLEAN, -... } - -Ver2-RequestedAssistData-extension ::= SEQUENCE { - ganssRequestedCommonAssistanceDataList GanssRequestedCommonAssistanceDataList OPTIONAL, - ganssRequestedGenericAssistanceDataList GanssRequestedGenericAssistanceDataList OPTIONAL, - extendedEphemeris ExtendedEphemeris OPTIONAL, - extendedEphemerisCheck ExtendedEphCheck OPTIONAL, -... } - -GanssRequestedCommonAssistanceDataList ::= SEQUENCE { - ganssReferenceTime BOOLEAN, - ganssIonosphericModel BOOLEAN, - ganssAdditionalIonosphericModelForDataID00 BOOLEAN, - ganssAdditionalIonosphericModelForDataID11 BOOLEAN, - ganssEarthOrientationParameters BOOLEAN, -... } - -GanssRequestedGenericAssistanceDataList ::= SEQUENCE(SIZE (1..maxGANSS)) OF GanssReqGenericData - -GanssReqGenericData ::= SEQUENCE { - ganssId INTEGER(0..15), -- coding according to parameter definition in section 10.10 - ganssSBASid BIT STRING(SIZE (3)) OPTIONAL, -- coding according to parameter definition in section 10.10 - ganssRealTimeIntegrity BOOLEAN, - ganssDifferentialCorrection DGANSS-Sig-Id-Req OPTIONAL, - ganssAlmanac BOOLEAN, - ganssNavigationModelData GanssNavigationModelData OPTIONAL, - ganssTimeModels BIT STRING(SIZE (16)) OPTIONAL, - ganssReferenceMeasurementInfo BOOLEAN, - ganssDataBits GanssDataBits OPTIONAL, - ganssUTCModel BOOLEAN, - ganssAdditionalDataChoices GanssAdditionalDataChoices OPTIONAL, - ganssAuxiliaryInformation BOOLEAN, - ganssExtendedEphemeris ExtendedEphemeris OPTIONAL, - ganssExtendedEphemerisCheck GanssExtendedEphCheck OPTIONAL, -... } - -DGANSS-Sig-Id-Req ::= BIT STRING (SIZE (8)) -- coding according to parameter definition in section 10.9 - -GanssNavigationModelData ::= SEQUENCE { -ganssWeek INTEGER(0..4095), -ganssToe INTEGER(0..167), -t-toeLimit INTEGER(0..15), -satellitesListRelatedDataList SatellitesListRelatedDataList OPTIONAL, -... } - -SatellitesListRelatedDataList ::= SEQUENCE(SIZE (0..maxGANSSSat)) OF SatellitesListRelatedData - -SatellitesListRelatedData ::= SEQUENCE { - satId INTEGER(0..63), - iod INTEGER(0..1023), -... } - -maxGANSS INTEGER ::= 16 -maxGANSSSat INTEGER ::= 32 - -GanssDataBits ::= SEQUENCE { - ganssTODmin INTEGER (0..59), - reqDataBitAssistanceList ReqDataBitAssistanceList, -... } - -ReqDataBitAssistanceList ::= SEQUENCE { - gnssSignals GANSSSignals, - ganssDataBitInterval INTEGER (0..15), - ganssDataBitSatList SEQUENCE (SIZE (1..maxGANSSSat)) OF INTEGER (0..63) OPTIONAL, -... } - -GanssAdditionalDataChoices ::= SEQUENCE { - orbitModelID INTEGER(0..7) OPTIONAL, - clockModelID INTEGER(0..7) OPTIONAL, - utcModelID INTEGER(0..7) OPTIONAL, - almanacModelID INTEGER(0..7) OPTIONAL, -... } - -ExtendedEphemeris ::= SEQUENCE { - validity INTEGER (1..256), -- Requested validity in 4 hour steps - ... } - -ExtendedEphCheck ::= SEQUENCE { - beginTime SUPL-GPSTime, -- Begin time of ephemeris extension held by SET - endTime SUPL-GPSTime, -- End time of ephemeris extension held by SET - ... } - -GanssExtendedEphCheck ::= SEQUENCE { - beginTime GANSSextEphTime, -- Begin time of ephemeris extension held by SET - endTime GANSSextEphTime, -- End time of ephemeris extension held by SET - ... } - -SUPL-GPSTime ::= SEQUENCE { - gPSWeek INTEGER (0..1023), - gPSTOWhour INTEGER (0..167), -... } - -GANSSextEphTime ::= SEQUENCE { - gANSSday INTEGER (0..8191), - gANSSTODhour INTEGER (0..23), -... } - -Ver2-PosPayLoad-extension ::= SEQUENCE { - lPPPayload SEQUENCE (SIZE (1..3)) OF OCTET STRING(SIZE (1..60000)) OPTIONAL, - tIA801Payload SEQUENCE (SIZE (1..3)) OF OCTET STRING(SIZE (1..60000)) OPTIONAL, -... } - -END - --- ---11.5 Common elements (SUPL Version 1) --- - --- --- 11.6 Common elements (SUPL Version 2) --- diff --git a/asn.1/src/ULP-Components.asn b/asn.1/src/ULP-Components.asn old mode 100644 new mode 100755 index 26848f35..f085bf4d --- a/asn.1/src/ULP-Components.asn +++ b/asn.1/src/ULP-Components.asn @@ -1,222 +1,268 @@ --- ULP-Components.asn --- $Id$ -- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 -- OMA-TS-ULP-V2_0-20100806-D -- -- 11.5 Common elements (SUPL Version 1) -- +ULP-Components DEFINITIONS AUTOMATIC TAGS ::= BEGIN -ULP-Components DEFINITIONS AUTOMATIC TAGS ::= -BEGIN - -EXPORTS Version, SessionID, IPAddress, SLPAddress, LocationId, Position, StatusCode, ULP-Velocity, QoP, PosMethod, Ver, SETId, PrimaryCPICH-Info, CellParametersID, FQDN; +EXPORTS + Version, SessionID, IPAddress, SLPAddress, LocationId, Position, StatusCode, ULP-Velocity, QoP, PosMethod, Ver, SETId, PrimaryCPICH-Info, CellParametersID, FQDN; IMPORTS - Ver2-CellInfo-extension -FROM Ver2-ULP-Components; + Ver2-CellInfo-extension + FROM Ver2-ULP-Components; -- protocol version expressed as x.y.z (e.g., 5.1.0)-- Version ::= SEQUENCE { - maj INTEGER(0..255), - min INTEGER(0..255), - servind INTEGER(0..255)} + maj INTEGER (0..255), + min INTEGER (0..255), + servind INTEGER (0..255) +} SessionID ::= SEQUENCE { - setSessionID SetSessionID OPTIONAL, -- the semantics of OPTIONAL applies to the encoding only. The parameter itself is MANDATORY. This is introduced only to minimize bandwidth for the SUPL INIT message. Since the setSessionID is allocated by the SET, there is no setSessionID to be transmitted in the SUPL INIT message. - slpSessionID SlpSessionID OPTIONAL -- the semantics of OPTIONAL applies to the encoding only. The parameter itself is MANDATORY. This is introduced only to minimize bandwidth for the SUPL START, SUPL TRIGGERED START and SUPL SET INIT messages. Since the slpSessionID is allocated by the SLP, there is no slpSessionID to be transmitted in these messages (with the exception described in section 10.14).-- + setSessionID SetSessionID OPTIONAL, -- the semantics of OPTIONAL applies to the encoding only. The parameter itself is MANDATORY. This is introduced only to minimize bandwidth for the SUPL INIT message. Since the setSessionID is allocated by the SET, there is no setSessionID to be transmitted in the SUPL INIT message. + slpSessionID SlpSessionID OPTIONAL +-- the semantics of OPTIONAL applies to the encoding only. The parameter itself is MANDATORY. This is introduced only to minimize bandwidth for the SUPL START, SUPL TRIGGERED START and SUPL SET INIT messages. Since the slpSessionID is allocated by the SLP, there is no slpSessionID to be transmitted in these messages (with the exception described in section 10.14).-- } -SetSessionID ::= SEQUENCE {sessionId INTEGER(0..65535), - setId SETId} +SetSessionID ::= SEQUENCE { + sessionId INTEGER (0..65535), + setId SETId +} SETId ::= CHOICE { - msisdn OCTET STRING(SIZE (8)), - mdn OCTET STRING(SIZE (8)), - min BIT STRING(SIZE (34)), -- coded according to TIA-553 - imsi OCTET STRING(SIZE (8)), - nai IA5String(SIZE (1..1000)), - iPAddress IPAddress, - ...} + msisdn OCTET STRING (SIZE (8)), + mdn OCTET STRING (SIZE (8)), + min BIT STRING (SIZE (34)), -- coded according to TIA-553 + imsi OCTET STRING (SIZE (8)), + nai IA5String (SIZE (1..1000)), + iPAddress IPAddress, + ... +} + -- msisdn, mnd and imsi are a BCD (Binary Coded Decimal) string -- represent digits from 0 through 9, -- two digits per octet, each digit encoded 0000 to 1001 (0 to 9) -- bits 8765 of octet n encoding digit 2n -- bits 4321 of octet n encoding digit 2(n-1) +1 -- not used digits in the string shall be filled with 1111 - SlpSessionID ::= SEQUENCE { - sessionID OCTET STRING(SIZE (4)), - slpId SLPAddress} + sessionID OCTET STRING (SIZE (4)), + slpId SLPAddress +} IPAddress ::= CHOICE { - ipv4Address OCTET STRING(SIZE (4)), - ipv6Address OCTET STRING(SIZE (16))} + ipv4Address OCTET STRING (SIZE (4)), + ipv6Address OCTET STRING (SIZE (16)) +} -SLPAddress ::= CHOICE {iPAddress IPAddress, - fQDN FQDN, - ...} +SLPAddress ::= CHOICE { + iPAddress IPAddress, + fQDN FQDN, + ... +} -FQDN ::= - VisibleString(FROM ("a".."z" | "A".."Z" | "0".."9" |".-"))(SIZE (1..255)) +FQDN ::= VisibleString (FROM ("a".."z" | "A".."Z" | "0".."9" | ".-")) (SIZE (1..255)) -Ver ::= BIT STRING(SIZE (64)) +Ver ::= BIT STRING (SIZE (64)) -LocationId ::= SEQUENCE {cellInfo CellInfo, - status Status, - ...} +LocationId ::= SEQUENCE { + cellInfo CellInfo, + status Status, + ... +} -Status ::= ENUMERATED {stale(0), current(1), unknown(2), ...} +Status ::= ENUMERATED { + stale (0), + current (1), + unknown (2), + ... + } CellInfo ::= CHOICE { - gsmCell GsmCellInformation, - wcdmaCell WcdmaCellInformation, --WCDMA Cell Information/TD-SCDMA Cell Information - cdmaCell CdmaCellInformation, - ..., - ver2-CellInfo-extension Ver2-CellInfo-extension} + gsmCell GsmCellInformation, + wcdmaCell WcdmaCellInformation, --WCDMA Cell Information/TD-SCDMA Cell Information + cdmaCell CdmaCellInformation, + ..., + ver2-CellInfo-extension Ver2-CellInfo-extension +} Position ::= SEQUENCE { - timestamp UTCTime, -- shall include seconds and shall use UTC time. - positionEstimate PositionEstimate, - velocity ULP-Velocity OPTIONAL, - ...} + timestamp UTCTime, -- shall include seconds and shall use UTC time. + positionEstimate PositionEstimate, + velocity ULP-Velocity OPTIONAL, + ... +} PositionEstimate ::= SEQUENCE { - latitudeSign ENUMERATED {north, south}, - latitude INTEGER(0..8388607), - longitude INTEGER(-8388608..8388607), - uncertainty - SEQUENCE {uncertaintySemiMajor INTEGER(0..127), - uncertaintySemiMinor INTEGER(0..127), - orientationMajorAxis INTEGER(0..180)} OPTIONAL, -- angle in degree between major axis and North - confidence INTEGER(0..100) OPTIONAL, - altitudeInfo AltitudeInfo OPTIONAL, - ...} -- Coding as in [3GPP GAD] + latitudeSign ENUMERATED { + north, + south + }, + latitude INTEGER (0..8388607), + longitude INTEGER (-8388608..8388607), + uncertainty SEQUENCE { + uncertaintySemiMajor INTEGER (0..127), + uncertaintySemiMinor INTEGER (0..127), + orientationMajorAxis INTEGER (0..180) + } OPTIONAL, -- angle in degree between major axis and North + confidence INTEGER (0..100) OPTIONAL, + altitudeInfo AltitudeInfo OPTIONAL, + ... +} -- Coding as in [3GPP GAD] AltitudeInfo ::= SEQUENCE { - altitudeDirection ENUMERATED {height, depth}, - altitude INTEGER(0..32767), - altUncertainty INTEGER(0..127), - ... } -- based on [3GPP GAD] + altitudeDirection ENUMERATED { + height, + depth + }, + altitude INTEGER (0..32767), + altUncertainty INTEGER (0..127), + ... +} -- based on [3GPP GAD] CdmaCellInformation ::= SEQUENCE { - refNID INTEGER(0..65535), -- Network Id - refSID INTEGER(0..32767), -- System Id - refBASEID INTEGER(0..65535), -- Base Station Id - refBASELAT INTEGER(0..4194303), -- Base Station Latitude - reBASELONG INTEGER(0..8388607), -- Base Station Longitude - refREFPN INTEGER(0..511), -- Base Station PN Code - refWeekNumber INTEGER(0..65535), -- GPS Week Number - refSeconds INTEGER(0..4194303), -- GPS Seconds -- - ...} + refNID INTEGER (0..65535), -- Network Id + refSID INTEGER (0..32767), -- System Id + refBASEID INTEGER (0..65535), -- Base Station Id + refBASELAT INTEGER (0..4194303), -- Base Station Latitude + reBASELONG INTEGER (0..8388607), -- Base Station Longitude + refREFPN INTEGER (0..511), -- Base Station PN Code + refWeekNumber INTEGER (0..65535), -- GPS Week Number + refSeconds INTEGER (0..4194303), -- GPS Seconds -- + ... +} GsmCellInformation ::= SEQUENCE { - refMCC INTEGER(0..999), -- Mobile Country Code - refMNC INTEGER(0..999), -- Mobile Network Code - refLAC INTEGER(0..65535), -- Location area code - refCI INTEGER(0..65535), -- Cell identity - nMR NMR OPTIONAL, - tA INTEGER(0..255) OPTIONAL, --Timing Advance - ...} + refMCC INTEGER (0..999), -- Mobile Country Code + refMNC INTEGER (0..999), -- Mobile Network Code + refLAC INTEGER (0..65535), -- Location area code + refCI INTEGER (0..65535), -- Cell identity + nMR NMR OPTIONAL, + tA INTEGER (0..255) OPTIONAL, --Timing Advance + ... +} WcdmaCellInformation ::= SEQUENCE { - refMCC INTEGER(0..999), -- Mobile Country Code - refMNC INTEGER(0..999), -- Mobile Network Code - refUC INTEGER(0..268435455), -- Cell identity - frequencyInfo FrequencyInfo OPTIONAL, - primaryScramblingCode INTEGER(0..511) OPTIONAL, -- Not applicable for TDD - measuredResultsList ULP-MeasuredResultsList OPTIONAL, - ..., - cellParametersId INTEGER(0..127) OPTIONAL, -- Not applicable for FDD - timingAdvance TimingAdvance OPTIONAL -- Not applicable for FDD + refMCC INTEGER (0..999), -- Mobile Country Code + refMNC INTEGER (0..999), -- Mobile Network Code + refUC INTEGER (0..268435455), -- Cell identity + frequencyInfo FrequencyInfo OPTIONAL, + primaryScramblingCode INTEGER (0..511) OPTIONAL, -- Not applicable for TDD + measuredResultsList ULP-MeasuredResultsList OPTIONAL, + ..., + cellParametersId INTEGER (0..127) OPTIONAL, -- Not applicable for FDD + timingAdvance TimingAdvance OPTIONAL -- Not applicable for FDD } TimingAdvance ::= SEQUENCE { - tA INTEGER (0..8191), - tAResolution TAResolution OPTIONAL, --If missing, resolution is 0.125 chips - chipRate ChipRate OPTIONAL, --If missing, chip rate is 1.28 Mchip/s -...} - -TAResolution ::= ENUMERATED {res10chip(0),res05chip(1),res0125chip(2), ...} -- Corresponding to 1.0-chip, 0.5-chip and 0.125-chip resolutions, respectively + tA INTEGER (0..8191), + tAResolution TAResolution OPTIONAL, --If missing, resolution is 0.125 chips + chipRate ChipRate OPTIONAL, --If missing, chip rate is 1.28 Mchip/s + ... +} -ChipRate ::= ENUMERATED {tdd128(0),tdd384(1), tdd768(2), ...} --Corresponding to 1.28-Mchips/s, 3.84-Mchips/s and 7.68-Mchips/s chip rates, respectively +TAResolution ::= ENUMERATED { + res10chip (0), + res05chip (1), + res0125chip (2), + ... + } -- Corresponding to 1.0-chip, 0.5-chip and 0.125-chip resolutions, respectively +ChipRate ::= ENUMERATED { + tdd128 (0), + tdd384 (1), + tdd768 (2), + ... + } --Corresponding to 1.28-Mchips/s, 3.84-Mchips/s and 7.68-Mchips/s chip rates, respectively FrequencyInfo ::= SEQUENCE { - modeSpecificInfo CHOICE {fdd FrequencyInfoFDD, - tdd FrequencyInfoTDD, - ...}, - ...} + modeSpecificInfo CHOICE { + fdd FrequencyInfoFDD, + tdd FrequencyInfoTDD, + ... + }, + ... +} FrequencyInfoFDD ::= SEQUENCE { - uarfcn-UL UARFCN OPTIONAL, - uarfcn-DL UARFCN, - ...} + uarfcn-UL UARFCN OPTIONAL, + uarfcn-DL UARFCN, + ... +} -FrequencyInfoTDD ::= SEQUENCE {uarfcn-Nt UARFCN, - ...} +FrequencyInfoTDD ::= SEQUENCE { + uarfcn-Nt UARFCN, + ... +} -UARFCN ::= INTEGER(0..16383) +UARFCN ::= INTEGER (0..16383) NMR ::= SEQUENCE (SIZE (1..15)) OF NMRelement NMRelement ::= SEQUENCE { - aRFCN INTEGER(0..1023), - bSIC INTEGER(0..63), - rxLev INTEGER(0..63), - ...} + aRFCN INTEGER (0..1023), + bSIC INTEGER (0..63), + rxLev INTEGER (0..63), + ... +} ULP-MeasuredResultsList ::= SEQUENCE (SIZE (1..maxFreq)) OF MeasuredResults MeasuredResults ::= SEQUENCE { - frequencyInfo FrequencyInfo OPTIONAL, - utra-CarrierRSSI UTRA-CarrierRSSI OPTIONAL, - cellMeasuredResultsList CellMeasuredResultsList OPTIONAL} + frequencyInfo FrequencyInfo OPTIONAL, + utra-CarrierRSSI UTRA-CarrierRSSI OPTIONAL, + cellMeasuredResultsList CellMeasuredResultsList OPTIONAL +} -CellMeasuredResultsList ::= - SEQUENCE (SIZE (1..maxCellMeas)) OF CellMeasuredResults +CellMeasuredResultsList ::= SEQUENCE (SIZE (1..maxCellMeas)) OF CellMeasuredResults -- SPARE: UTRA-CarrierRSSI, Max = 76 -- Values above Max are spare -UTRA-CarrierRSSI ::= INTEGER(0..127) +UTRA-CarrierRSSI ::= INTEGER (0..127) CellMeasuredResults ::= SEQUENCE { - cellIdentity INTEGER(0..268435455) OPTIONAL, - modeSpecificInfo - CHOICE {fdd - SEQUENCE {primaryCPICH-Info PrimaryCPICH-Info, - cpich-Ec-N0 CPICH-Ec-N0 OPTIONAL, - cpich-RSCP CPICH-RSCP OPTIONAL, - pathloss Pathloss OPTIONAL}, - tdd - SEQUENCE {cellParametersID CellParametersID, - proposedTGSN TGSN OPTIONAL, - primaryCCPCH-RSCP PrimaryCCPCH-RSCP OPTIONAL, - pathloss Pathloss OPTIONAL, - timeslotISCP-List TimeslotISCP-List OPTIONAL --NOTE: TimeSlotISCP measurement list cannot be interpreted without the knowledge of Cell Info as defined in [3GPP RRC] -}}} - -CellParametersID ::= INTEGER(0..127) - -TGSN ::= INTEGER(0..14) - -PrimaryCCPCH-RSCP ::= INTEGER(0..127) + cellIdentity INTEGER (0..268435455) OPTIONAL, + modeSpecificInfo CHOICE { + fdd SEQUENCE { + primaryCPICH-Info PrimaryCPICH-Info, + cpich-Ec-N0 CPICH-Ec-N0 OPTIONAL, + cpich-RSCP CPICH-RSCP OPTIONAL, + pathloss Pathloss OPTIONAL + }, + tdd SEQUENCE { + cellParametersID CellParametersID, + proposedTGSN TGSN OPTIONAL, + primaryCCPCH-RSCP PrimaryCCPCH-RSCP OPTIONAL, + pathloss Pathloss OPTIONAL, + timeslotISCP-List TimeslotISCP-List OPTIONAL --NOTE: TimeSlotISCP measurement list cannot be interpreted without the knowledge of Cell Info as defined in [3GPP RRC] + } + } +} + +CellParametersID ::= INTEGER (0..127) + +TGSN ::= INTEGER (0..14) + +PrimaryCCPCH-RSCP ::= INTEGER (0..127) -- SPARE: TimeslotISCP, Max = 91 -- Values above Max are spare -TimeslotISCP ::= INTEGER(0..127) +TimeslotISCP ::= INTEGER (0..127) TimeslotISCP-List ::= SEQUENCE (SIZE (1..maxTS)) OF TimeslotISCP -PrimaryCPICH-Info ::= SEQUENCE {primaryScramblingCode INTEGER(0..511)} +PrimaryCPICH-Info ::= SEQUENCE { + primaryScramblingCode INTEGER (0..511) +} -- SPARE: CPICH-Ec-No, Max = 49 -- Values above Max are spare -CPICH-Ec-N0 ::= INTEGER(0..63) +CPICH-Ec-N0 ::= INTEGER (0..63) -- SPARE: CPICH- RSCP, data range from 0 to 91 and from 123 to 127. -- Values from 92 to 122 are spare -- the encoding of cpich-RSCP is (as per [3GPP RRC] V5.11.0) - -- cpich-RSCP = 123 CPICH RSCP <-120 dBm -- cpich-RSCP = 124 -120 = CPICH RSCP < -119 dBm -- cpich-RSCP = 125 -119 = CPICH RSCP < -118 dBm @@ -228,527 +274,113 @@ CPICH-Ec-N0 ::= INTEGER(0..63) -- cpich-RSCP = 89 -27 = CPICH RSCP < -26 dBm -- cpich-RSCP = 90 -26 = CPICH RSCP < -25 dBm -- cpich-RSCP = 91 -25 = CPICH RSCP dBm - -CPICH-RSCP ::= INTEGER(0..127) +CPICH-RSCP ::= INTEGER (0..127) -- SPARE: Pathloss, Max = 158 -- Values above Max are spare -Pathloss ::= INTEGER(46..173) +Pathloss ::= INTEGER (46..173) -maxCellMeas INTEGER ::= 32 +maxCellMeas INTEGER ::= 32 -maxFreq INTEGER ::= 8 +maxFreq INTEGER ::= 8 -maxTS INTEGER ::= 14 +maxTS INTEGER ::= 14 StatusCode ::= ENUMERATED { - unspecified(0), systemFailure(1), unexpectedMessage(2), protocolError(3), - dataMissing(4), unexpectedDataValue(5), posMethodFailure(6), - posMethodMismatch(7), posProtocolMismatch(8), targetSETnotReachable(9), - versionNotSupported(10), resourceShortage(11), invalidSessionId(12), - nonProxyModeNotSupported(13), proxyModeNotSupported(14), - positioningNotPermitted(15), authNetFailure(16), authSuplinitFailure(17), consentDeniedByUser(100), consentGrantedByUser(101), ..., ver2-incompatibleProtectionLevel(18), ver2-serviceNotSupported(19), ver2-insufficientInterval(20), ver2-noSUPLCoverage(21), ver2-sessionStopped(102)} + unspecified (0), + systemFailure (1), + unexpectedMessage (2), + protocolError (3), + dataMissing (4), + unexpectedDataValue (5), + posMethodFailure (6), + posMethodMismatch (7), + posProtocolMismatch (8), + targetSETnotReachable (9), + versionNotSupported (10), + resourceShortage (11), + invalidSessionId (12), + nonProxyModeNotSupported (13), + proxyModeNotSupported (14), + positioningNotPermitted (15), + authNetFailure (16), + authSuplinitFailure (17), + consentDeniedByUser (100), + consentGrantedByUser (101), + ..., + ver2-incompatibleProtectionLevel (18), + ver2-serviceNotSupported (19), + ver2-insufficientInterval (20), + ver2-noSUPLCoverage (21), + ver2-sessionStopped (102) + } QoP ::= SEQUENCE { - horacc INTEGER(0..127), - veracc INTEGER(0..127) OPTIONAL, -- as defined in [3GPP GAD] "uncertainty altitude"-- - maxLocAge INTEGER(0..65535) OPTIONAL, - delay INTEGER(0..7) OPTIONAL, -- as defined in [3GPP RRLP] - ...} - -ULP-Velocity ::= CHOICE { -- velocity definition as per [3GPP GAD] - horvel Horvel, - horandvervel Horandvervel, - horveluncert Horveluncert, - horandveruncert Horandveruncert, - ...} - -Horvel ::= SEQUENCE { - bearing BIT STRING(SIZE (9)), - horspeed BIT STRING(SIZE (16)), - ...} - -Horandvervel ::= SEQUENCE { - verdirect BIT STRING(SIZE (1)), - bearing BIT STRING(SIZE (9)), - horspeed BIT STRING(SIZE (16)), - verspeed BIT STRING(SIZE (8)), - ...} - -Horveluncert ::= SEQUENCE { - bearing BIT STRING(SIZE (9)), - horspeed BIT STRING(SIZE (16)), - uncertspeed BIT STRING(SIZE (8)), - ...} - -Horandveruncert ::= SEQUENCE { - verdirect BIT STRING(SIZE (1)), - bearing BIT STRING(SIZE (9)), - horspeed BIT STRING(SIZE (16)), - verspeed BIT STRING(SIZE (8)), - horuncertspeed BIT STRING(SIZE (8)), - veruncertspeed BIT STRING(SIZE (8)), - ...} - -PosMethod ::= ENUMERATED { -agpsSETassisted(0), agpsSETbased(1), agpsSETassistedpref(2), agpsSETbasedpref(3), autonomousGPS(4), aFLT(5), eCID(6), eOTD(7), oTDOA(8), noPosition(9), ..., ver2-historicalDataRetrieval(10), ver2-agnssSETassisted(11), ver2-agnssSETbased(12), ver2-agnssSETassistedpref(13), ver2-agnssSETbasedpref(14), ver2-autonomousGNSS(15), ver2-sessioninfoquery(16)} - -END - --- --- 11.6 Common elements (SUPL Version 2) --- - -Ver2-ULP-Components DEFINITIONS AUTOMATIC TAGS ::= -BEGIN - -EXPORTS Ver2-CellInfo-extension, MultipleLocationIds, SupportedNetworkInformation, CauseCode, UTRAN-GPSReferenceTimeAssistance, UTRAN-GPSReferenceTimeResult, SPCSETKey, SPCTID, SPCSETKeylifetime, UTRAN-GANSSReferenceTimeAssistance, UTRAN-GANSSReferenceTimeResult, GNSSPosTechnology, GANSSSignals, ThirdParty, ApplicationID, ReportingCap, Coordinate, CircularArea, EllipticalArea, PolygonArea; - -IMPORTS - LocationId, PrimaryCPICH-Info, CellParametersID, FQDN -FROM ULP-Components; - -MultipleLocationIds ::= SEQUENCE SIZE (1..maxLidSize) OF LocationIdData - -LocationIdData ::= SEQUENCE { -locationId LocationId, -relativetimestamp RelativeTime OPTIONAL, -- if relativetimestamp is present, then data represents historical measurement, if absent, data represents current measurements -servingFlag BOOLEAN, -- if "true?measurements represent serving cell -...} - -RelativeTime ::= INTEGER (0..65535) -- relative time to "current?Location Id in multiples of 0.01sec - -maxLidSize INTEGER ::= 64 - -SupportedNetworkInformation ::= SEQUENCE { - wLAN BOOLEAN, - supportedWLANInfo SupportedWLANInfo OPTIONAL, - supportedWLANApsList SupportedWLANApsList OPTIONAL, - gSM BOOLEAN, - wCDMA BOOLEAN, - supportedWCDMAInfo SupportedWCDMAInfo OPTIONAL, - cDMA BOOLEAN, - hRDP BOOLEAN, - uMB BOOLEAN, - lTE BOOLEAN, - wIMAX BOOLEAN, - historic BOOLEAN, - nonServing BOOLEAN, - uTRANGPSReferenceTime BOOLEAN, - uTRANGANSSReferenceTime BOOLEAN, - ...} - -SupportedWLANInfo ::= SEQUENCE { - apTP BOOLEAN, -- AP transmit power - apAG BOOLEAN, -- AP antenna gain - apSN BOOLEAN, -- AP S/N received at SET - apDevType BOOLEAN, -- Device type - apRSSI BOOLEAN, -- AP signal strength at SET - apChanFreq BOOLEAN, -- AP channel/frequency of Tx/Rx - apRTD BOOLEAN, -- Round Trip Delay between SET and AP - setTP BOOLEAN, -- SET transmit power - setAG BOOLEAN, -- SET antenna gain - setSN BOOLEAN, -- SET S/N received at AP - setRSSI BOOLEAN, -- SET signal strength at AP - apRepLoc BOOLEAN, -- AP Location as reported by AP - ...} - -maxWLANApDataSize INTEGER ::= 128 - -SupportedWLANApsList ::= SEQUENCE { - supportedWLANApDataList SEQUENCE (SIZE (1..maxWLANApDataSize)) OF SupportedWLANApData, - supportedWLANapsChannel11a SupportedWLANApsChannel11a OPTIONAL, - supportedWLANapsChannel11bg SupportedWLANApsChannel11bg OPTIONAL, - ... + horacc INTEGER (0..127), + veracc INTEGER (0..127) OPTIONAL, -- as defined in [3GPP GAD] "uncertainty altitude"-- + maxLocAge INTEGER (0..65535) OPTIONAL, + delay INTEGER (0..7) OPTIONAL, -- as defined in [3GPP RRLP] + ... } -SupportedWLANApsChannel11a ::= SEQUENCE { - ch34 BOOLEAN, - ch36 BOOLEAN, - ch38 BOOLEAN, - ch40 BOOLEAN, - ch42 BOOLEAN, - ch44 BOOLEAN, - ch46 BOOLEAN, - ch48 BOOLEAN, - ch52 BOOLEAN, - ch56 BOOLEAN, - ch60 BOOLEAN, - ch64 BOOLEAN, - ch149 BOOLEAN, - ch153 BOOLEAN, - ch157 BOOLEAN, - ch161 BOOLEAN +ULP-Velocity ::= CHOICE { -- velocity definition as per [3GPP GAD] + horvel Horvel, + horandvervel Horandvervel, + horveluncert Horveluncert, + horandveruncert Horandveruncert, + ... } -SupportedWLANApsChannel11bg ::= SEQUENCE { - ch1 BOOLEAN, - ch2 BOOLEAN, - ch3 BOOLEAN, - ch4 BOOLEAN, - ch5 BOOLEAN, - ch6 BOOLEAN, - ch7 BOOLEAN, - ch8 BOOLEAN, - ch9 BOOLEAN, - ch10 BOOLEAN, - ch11 BOOLEAN, - ch12 BOOLEAN, - ch13 BOOLEAN, - ch14 BOOLEAN +Horvel ::= SEQUENCE { + bearing BIT STRING (SIZE (9)), + horspeed BIT STRING (SIZE (16)), + ... } -SupportedWLANApData ::= SEQUENCE { - apMACAddress BIT STRING (SIZE (48)), - apDevType ENUMERATED {wlan802-11a(0), wlan802-11b(1), wlan802-11g(2), ...}, - ...} - -SupportedWCDMAInfo ::= SEQUENCE { - mRL BOOLEAN, -- Measured Results List - ...} - -Ver2-CellInfo-extension ::= CHOICE { - hrpdCell HrpdCellInformation, - umbCell UmbCellInformation, - lteCell LteCellInformation, - wlanAP WlanAPInformation, - wimaxBS WimaxBSInformation, - ...} - -HrpdCellInformation ::= SEQUENCE { - refSECTORID BIT STRING(SIZE (128)) OPTIONAL, -- HRPD Sector Id - refBASELAT INTEGER(0..4194303), -- Base Station Latitude - reBASELONG INTEGER(0..8388607), -- Base Station Longitude - refWeekNumber INTEGER(0..65535), -- GPS Week Number - refSeconds INTEGER(0..4194303), -- GPS Seconds -- - ...} - -UmbCellInformation ::= SEQUENCE { - refSECTORID BIT STRING(SIZE (128)), -- UMB Sector Id - refMCC INTEGER(0..999), -- Mobile Country Code - refMNC INTEGER(0..999), -- Mobile Network Code - refBASELAT INTEGER(0..4194303), -- Base Station Latitude - reBASELONG INTEGER(0..8388607), -- Base Station Longitude - refWeekNumber INTEGER(0..65535), -- GPS Week Number - refSeconds INTEGER(0..4194303), -- GPS Seconds -- - ...} - --- LTE Cell info per 3GPP TS 36.331. -- --- If not otherwise stated info is related to serving cell -- - -LteCellInformation ::= SEQUENCE { - cellGlobalIdEUTRA CellGlobalIdEUTRA, - physCellId PhysCellId, - trackingAreaCode TrackingAreaCode, - rsrpResult RSRP-Range OPTIONAL, - rsrqResult RSRQ-Range OPTIONAL, - tA INTEGER(0..1282) OPTIONAL, -- Timing Advance as per 3GPP TS 36.321 - measResultListEUTRA MeasResultListEUTRA OPTIONAL, --Neighbour measurements - ...} - --- Measured results of neighbours cells per 3GPP TS 36.331 -- - -MeasResultListEUTRA ::= SEQUENCE (SIZE (1..maxCellReport)) OF MeasResultEUTRA - -MeasResultEUTRA ::= SEQUENCE { - physCellId PhysCellId, - cgi-Info SEQUENCE { - cellGlobalId CellGlobalIdEUTRA, - trackingAreaCode TrackingAreaCode -} OPTIONAL, - measResult SEQUENCE { - rsrpResult RSRP-Range OPTIONAL, -- Mapping to measured values - rsrqResult RSRQ-Range OPTIONAL, -- in 3GPP TS 36.133 - ... - } +Horandvervel ::= SEQUENCE { + verdirect BIT STRING (SIZE (1)), + bearing BIT STRING (SIZE (9)), + horspeed BIT STRING (SIZE (16)), + verspeed BIT STRING (SIZE (8)), + ... } -PhysCellId ::= INTEGER (0..503) - -TrackingAreaCode ::= BIT STRING (SIZE (16)) - -CellGlobalIdEUTRA ::= SEQUENCE { - plmn-Identity PLMN-Identity, - cellIdentity CellIdentity, - ... +Horveluncert ::= SEQUENCE { + bearing BIT STRING (SIZE (9)), + horspeed BIT STRING (SIZE (16)), + uncertspeed BIT STRING (SIZE (8)), + ... } -PLMN-Identity ::= SEQUENCE { - mcc MCC OPTIONAL, - mnc MNC +Horandveruncert ::= SEQUENCE { + verdirect BIT STRING (SIZE (1)), + bearing BIT STRING (SIZE (9)), + horspeed BIT STRING (SIZE (16)), + verspeed BIT STRING (SIZE (8)), + horuncertspeed BIT STRING (SIZE (8)), + veruncertspeed BIT STRING (SIZE (8)), + ... } -CellIdentity ::= BIT STRING (SIZE (28)) - -MCC ::= SEQUENCE (SIZE (3)) OF MCC-MNC-Digit - -MNC ::= SEQUENCE (SIZE (2..3)) OF MCC-MNC-Digit - -MCC-MNC-Digit ::= INTEGER (0..9) - -RSRP-Range ::= INTEGER(0..97) -RSRQ-Range ::= INTEGER(0..34) -maxCellReport INTEGER ::= 8 - -WlanAPInformation ::= SEQUENCE { -- as per [IEEE 802.11v] - apMACAddress BIT STRING(SIZE (48)), -- AP MAC Address - apTransmitPower INTEGER(-127..128) OPTIONAL, -- AP transmit power in dbm - apAntennaGain INTEGER(-127..128) OPTIONAL, -- AP antenna gain in dBi - apSignaltoNoise INTEGER(-127..128) OPTIONAL, -- AP S/N received at SET - apDeviceType ENUMERATED {wlan802-11a(0), wlan802-11b(1), wlan802-11g(2), ...} OPTIONAL, - apSignalStrength INTEGER(-127..128) OPTIONAL, -- AP signal strength at SET - apChannelFrequency INTEGER(0..256) OPTIONAL, -- AP channel/frequency of Tx/Rx - apRoundTripDelay RTD OPTIONAL, -- Round Trip Delay between SET and AP - setTransmitPower INTEGER(-127..128) OPTIONAL, -- SET transmit power in dBm - setAntennaGain INTEGER (-127..128) OPTIONAL, -- SET antenna gain in dBi - setSignaltoNoise INTEGER (-127..128) OPTIONAL, -- SET S/N received at AP - setSignalStrength INTEGER(-127..128) OPTIONAL, -- SET signal strength at AP - apReportedLocation ReportedLocation OPTIONAL, -- AP Location reported by AP - ...} - -RTD ::= SEQUENCE { -- as per [IEEE 802.11v] - rTDValue INTEGER(0..16777216), -- measured RTD value corresponding to --- about 500km in units of 1/10 of nanoseconds - rTDUnits RTDUnits, -- units of RTD - rTDAccuracy INTEGER(0..255) OPTIONAL, -- RTD accuracy - ...} - -RTDUnits ::= ENUMERATED { - microseconds(0), hundredsofnanoseconds(1), tensofnanoseconds(2), nanoseconds(3), tenthsofnanoseconds(4), ...} - -ReportedLocation ::= SEQUENCE { -- as per [IEEE 802.11v] - locationEncodingDescriptor LocationEncodingDescriptor, - locationData LocationData, -- location data field - ...} - -LocationEncodingDescriptor ::= ENUMERATED { - lCI(0), aSN1(1), ...} - -LocationData ::= SEQUENCE { - locationAccuracy INTEGER(0..4294967295) OPTIONAL, - locationValue OCTET STRING (SIZE(1..128)), - ...} - -WimaxBSInformation ::= SEQUENCE { - wimaxBsID WimaxBsID, -- WiMax serving base station ID - wimaxRTD WimaxRTD OPTIONAL, -- Round Trip Delay measurements - wimaxNMRList WimaxNMRList OPTIONAL, -- Network measurements - ...} - -WimaxBsID ::= SEQUENCE { - bsID-MSB BIT STRING (SIZE(24)) OPTIONAL, - bsID-LSB BIT STRING (SIZE(24)), -...} --- if only LSB is present, MSB is assumed to be identical to the current serving BS or clamped on network value - -WimaxRTD ::= SEQUENCE { - rTD INTEGER (0..65535), -- Round trip delay of serving BS in units of 10 ns - rTDstd INTEGER (0..1023) OPTIONAL, -- Standard deviation of round trip delay in units of 10 ns -...} - -WimaxNMRList ::= SEQUENCE (SIZE (1..maxWimaxBSMeas)) OF WimaxNMR - -WimaxNMR ::= SEQUENCE { - wimaxBsID WimaxBsID, -- WiMax BS ID for the measurement - relDelay INTEGER (-32768..32767) OPTIONAL, -- Relative delay for this neighbouring BSs to the serving cell in units of 10 ns - relDelaystd INTEGER (0..1023) OPTIONAL, -- Standard deviation of Relative delay in units of 10 ns - rSSI INTEGER (0..255) OPTIONAL, -- RSSI in 0.25 dBm steps, starting from -103.75 dBm - rSSIstd INTEGER (0..63) OPTIONAL, -- Standard deviation of RSSI in dB - bSTxPower INTEGER (0..255) OPTIONAL, -- BS transmit power in 0.25 dBm steps, starting from -103.75 dBm - cINR INTEGER (0..255) OPTIONAL, -- in dB - cINRstd INTEGER (0..63) OPTIONAL, -- Standard deviation of CINR in dB - bSLocation ReportedLocation OPTIONAL, -- Reported location of the BS -...} - -maxWimaxBSMeas INTEGER ::= 32 - -UTRAN-GPSReferenceTimeAssistance ::= SEQUENCE { -utran-GPSReferenceTime UTRAN-GPSReferenceTime, -gpsReferenceTimeUncertainty INTEGER (0..127) OPTIONAL, -utranGPSDriftRate UTRANGPSDriftRate OPTIONAL} - -UTRAN-GPSReferenceTime ::= SEQUENCE { --- For utran-GPSTimingOfCell values above 2322431999999 are not used in this version of the specification. Actual value utran-GPSTimingOfCell = (ms-part * 4294967296) + ls-part used on the downlink i.e. sent from the SLP to the SET - utran-GPSTimingOfCell SEQUENCE { - ms-part INTEGER (0..1023), - ls-part INTEGER (0..4294967295)}, - modeSpecificInfo CHOICE { - fdd SEQUENCE { - referenceIdentity PrimaryCPICH-Info}, - tdd SEQUENCE { - referenceIdentity CellParametersID}} OPTIONAL, - sfn INTEGER (0..4095)} - -UTRANGPSDriftRate ::= ENUMERATED { - utran-GPSDrift0, utran-GPSDrift1, utran-GPSDrift2, - utran-GPSDrift5, utran-GPSDrift10, utran-GPSDrift15, - utran-GPSDrift25, utran-GPSDrift50, utran-GPSDrift-1, - utran-GPSDrift-2, utran-GPSDrift-5, utran-GPSDrift-10, - utran-GPSDrift-15, utran-GPSDrift-25, utran-GPSDrift-50} - -UTRAN-GPSReferenceTimeResult ::= SEQUENCE { --- For ue-GPSTimingOfCell values above 37158911999999 are not used in this version of the specification. Actual value utran-GPSTimingOfCell = (ms-part * 4294967296) + ls-part used on the uplink i.e. reported by the SET to the SLP - set-GPSTimingOfCell SEQUENCE { - ms-part INTEGER (0.. 16383), - ls-part INTEGER (0..4294967295)}, - modeSpecificInfo CHOICE { - fdd SEQUENCE { - referenceIdentity PrimaryCPICH-Info}, - tdd SEQUENCE { - referenceIdentity CellParametersID}} OPTIONAL, - sfn INTEGER (0..4095), - gpsReferenceTimeUncertainty INTEGER (0..127) OPTIONAL, - ...} - -UTRAN-GANSSReferenceTimeAssistance ::= SEQUENCE { -ganssDay INTEGER (0..8191) OPTIONAL, -ganssTimeID INTEGER (0..15), -utran-GANSSReferenceTime UTRAN-GANSSReferenceTime, -utranGANSSDriftRate UTRANGANSSDriftRate OPTIONAL} - -UTRAN-GANSSReferenceTime ::= SEQUENCE { - - ganssTOD INTEGER (0..86399), - utran-GANSSTimingOfCell INTEGER (0..3999999)OPTIONAL, - modeSpecificInfo CHOICE { - fdd SEQUENCE { - referenceIdentity PrimaryCPICH-Info}, - tdd SEQUENCE { - referenceIdentity CellParametersID}} OPTIONAL, - sfn INTEGER (0..4095), - ganss-TODUncertainty INTEGER (0..127) OPTIONAL, -...} - -UTRANGANSSDriftRate ::= ENUMERATED { - utran-GANSSDrift0, utran-GANSSDrift1, utran-GANSSDrift2, - utran-GANSSDrift5, utran-GANSSDrift10, utran-GANSSDrift15, - utran-GANSSDrift25, utran-GANSSDrift50, utran-GANSSDrift-1, - utran-GANSSDrift-2, utran-GANSSDrift-5, utran-GANSSDrift-10, - utran-GANSSDrift-15, utran-GANSSDrift-25, utran-GANSSDrift-50} - -UTRAN-GANSSReferenceTimeResult ::= SEQUENCE { - ganssTimeID INTEGER (0..15), - set-GANSSReferenceTime SET-GANSSReferenceTime, - ...} - -SET-GANSSReferenceTime ::= SEQUENCE { --- Actual value [ns] = (ms-Part * 4294967296 + ls-Part) * 250 --- Actual values [ns] > 86399999999750 are reserved and are considered a --- protocol error - set-GANSSTimingOfCell SEQUENCE { - ms-part INTEGER (0..80), - ls-part INTEGER (0..4294967295)} OPTIONAL, - modeSpecificInfo CHOICE { - fdd SEQUENCE { - referenceIdentity PrimaryCPICH-Info}, - tdd SEQUENCE { - referenceIdentity CellParametersID}} OPTIONAL, - sfn INTEGER (0..4095), - ganss-TODUncertainty INTEGER (0..127) OPTIONAL, -...} - -GNSSPosTechnology ::= SEQUENCE { - gps BOOLEAN, - galileo BOOLEAN, - sbas BOOLEAN, - modernized-gps BOOLEAN, - qzss BOOLEAN, - glonass BOOLEAN, -...} - --- indicates MS support for particular GANSS signals and frequencies coding according to parameter definition in section 10.9 - -GANSSSignals ::= BIT STRING { - signal1 (0), - signal2 (1), - signal3 (2), - signal4 (3), - signal5 (4), - signal6 (5), - signal7 (6), - signal8 (7)} (SIZE (1..8)) - -SPCSETKey ::= BIT STRING(SIZE (128)) - -SPCTID ::= SEQUENCE { - rAND BIT STRING(SIZE (128)), - slpFQDN FQDN, - ...} - -SPCSETKeylifetime ::= INTEGER (1..24) -- units in hours - -CauseCode ::= ENUMERATED { -servingNetWorkNotInAreaIdList(0), sETCapabilitiesChanged(1), noSUPLCoverage(2), ...} - -ThirdParty ::= SEQUENCE (SIZE (1..64)) OF ThirdPartyID - -ThirdPartyID ::= CHOICE { - logicalName IA5String(SIZE (1..1000)), - msisdn OCTET STRING(SIZE (8)), - emailaddr IA5String(SIZE (1..1000)), --- sip-uri VisibleString(FROM ("a".."z" | "A".."Z" | "0".."9" | ":./-_~%#@?")) (SIZE (1..255)), --- ims-public-identity VisibleString(FROM ("a".."z" | "A".."Z" | "0".."9" | ":./-_~%#@?")) (SIZE (1..255)), --- # asn2wrs does not handle '%' in the resticted string - sip-uri VisibleString(FROM ("a".."z" | "A".."Z" | "0".."9" | ":./-_~#@?")) (SIZE (1..255)), - ims-public-identity VisibleString(FROM ("a".."z" | "A".."Z" | "0".."9" | ":./-_~#@?")) (SIZE (1..255)), - min BIT STRING(SIZE (34)), -- coded according to TIA-553 - mdn OCTET STRING(SIZE (8)), --- uri VisibleString(FROM ("a".."z" | "A".."Z" | "0".."9" | "./-_~%#")) (SIZE (1..255)), - uri VisibleString(FROM ("a".."z" | "A".."Z" | "0".."9" | "./-_~#")) (SIZE (1..255)), -...} - -ApplicationID ::= SEQUENCE { - appProvider IA5String(SIZE (1..24)), -- The application provider - appName IA5String(SIZE (1..32)), -- The application name - appVersion IA5String(SIZE (1..8)) OPTIONAL, -- The application version -...} - -ReportingCap ::= SEQUENCE { - minInt INTEGER (1..3600), -- units in seconds - maxInt INTEGER (1..1440) OPTIONAL, -- units in minutes -repMode RepMode-cap, -batchRepCap BatchRepCap OPTIONAL, -- only used for batch and quasi real time reporting -...} - -RepMode-cap ::= SEQUENCE { -realtime BOOLEAN, -quasirealtime BOOLEAN, -batch BOOLEAN, -...} - -BatchRepCap ::= SEQUENCE { -report-position BOOLEAN, -- set to "true"if reporting of position is supported -report-measurements BOOLEAN, -- set to "true"if reporting of measurements is supported -max-num-positions INTEGER (1..1024) OPTIONAL, -max-num-measurements INTEGER (1..1024) OPTIONAL, -...} - -Coordinate::= SEQUENCE { - latitudeSign ENUMERATED {north(0), south(1)}, - latitude INTEGER(0..8388607), - longitude INTEGER(-8388608..8388607)} -- Coding as in [3GPP GAD] - -CircularArea ::= SEQUENCE { - coordinate Coordinate, - radius INTEGER(1..1000000), -- radius in meters - radius-min INTEGER(1..1000000) OPTIONAL, -- hysteresis minimum radius - radius-max INTEGER(1..1500000) OPTIONAL} -- hysteresis maximum radius - -EllipticalArea ::= SEQUENCE { - coordinate Coordinate, - semiMajor INTEGER(1..1000000), -- units in meters - semiMajor-min INTEGER(1..1000000) OPTIONAL, -- hysteresis minimum semiMajor - semiMajor-max INTEGER(1..1500000) OPTIONAL, -- hysteresis maximum semiMajor - semiMinor INTEGER(1..1000000), -- units in meters - semiMinor-min INTEGER(1..1000000) OPTIONAL, -- hysteresis minimum semiMinor - semiMinor-max INTEGER(1..1500000) OPTIONAL, -- hysteresis maximum semiMinor - angle INTEGER(0.. 179)} -- units in degrees "the angle is defined as the angle between the semi-major axis and North, increasing in a clockwise direction. An angle of 0 represents an ellipse with the semi-major axis pointing North/South while an angle of 90 represents an ellipse with the semi-major axis pointing East/West. - -PolygonArea ::= SEQUENCE { - polygonDescription PolygonDescription, - polygonHysteresis INTEGER(1..100000) OPTIONAL} -- units in meters - -PolygonDescription ::= SEQUENCE (SIZE (3..15)) OF Coordinate - -END - +PosMethod ::= ENUMERATED { + agpsSETassisted (0), + agpsSETbased (1), + agpsSETassistedpref (2), + agpsSETbasedpref (3), + autonomousGPS (4), + aFLT (5), + eCID (6), + eOTD (7), + oTDOA (8), + noPosition (9), + ..., + ver2-historicalDataRetrieval (10), + ver2-agnssSETassisted (11), + ver2-agnssSETbased (12), + ver2-agnssSETassistedpref (13), + ver2-agnssSETbasedpref (14), + ver2-autonomousGNSS (15), + ver2-sessioninfoquery (16) + } + +END \ No newline at end of file diff --git a/asn.1/src/ULP-Version-2-message-extensions.asn b/asn.1/src/ULP-Version-2-message-extensions.asn new file mode 100644 index 00000000..839274ec --- /dev/null +++ b/asn.1/src/ULP-Version-2-message-extensions.asn @@ -0,0 +1,121 @@ +-- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 +-- OMA-TS-ULP-V2_0-20100806-D +-- +-- 11.3 Messsage Extensions (SUPL Version 2) +-- +ULP-Version-2-message-extensions DEFINITIONS AUTOMATIC TAGS ::= BEGIN + +EXPORTS + Ver2-SUPL-INIT-extension, Ver2-SUPL-START-extension, Ver2-SUPL-RESPONSE-extension, Ver2-SUPL-POS-INIT-extension, Ver2-SUPL-POS-extension, Ver2-SUPL-END-extension; + +IMPORTS + SLPAddress, Position, Ver + FROM ULP-Components + SETCapabilities + FROM SUPL-START + SupportedNetworkInformation, GNSSPosTechnology, MultipleLocationIds, UTRAN-GPSReferenceTimeResult, UTRAN-GANSSReferenceTimeResult, UTRAN-GPSReferenceTimeAssistance, UTRAN-GANSSReferenceTimeAssistance, SPCSETKey, SPCTID, SPCSETKeylifetime, ThirdParty, ApplicationID + FROM Ver2-ULP-Components + TriggerType + FROM SUPL-TRIGGERED-START; + +Ver2-SUPL-INIT-extension ::= SEQUENCE { + notificationMode NotificationMode OPTIONAL, + supportedNetworkInformation SupportedNetworkInformation OPTIONAL, + triggerType TriggerType OPTIONAL, + e-SLPAddress SLPAddress OPTIONAL, + historicReporting HistoricReporting OPTIONAL, + protectionLevel ProtectionLevel OPTIONAL, + gnssPosTechnology GNSSPosTechnology OPTIONAL, + minimumMajorVersion INTEGER (0..255) OPTIONAL, + ... +} + +NotificationMode ::= ENUMERATED { + normal (0), + basedOnLocation (1), + ... + } + +HistoricReporting ::= SEQUENCE { + allowedReportingType AllowedReportingType, + reportingCriteria ReportingCriteria OPTIONAL, + ... +} + +AllowedReportingType ::= ENUMERATED { + positionsOnly (0), + measurementsOnly (1), + positionsAndMeasurements (2), + ... + } + +ReportingCriteria ::= SEQUENCE { + timeWindow TimeWindow OPTIONAL, + maxNumberofReports INTEGER (1..65536) OPTIONAL, + minTimeInterval INTEGER (1..86400) OPTIONAL, + ... +} + +TimeWindow ::= SEQUENCE { + startTime INTEGER (-525600..-1), -- Time in minutes + stopTime INTEGER (-525599..0) +} -- Time in minutes + +ProtectionLevel ::= SEQUENCE { + protlevel ProtLevel, + basicProtectionParams BasicProtectionParams OPTIONAL, + ... +} + +ProtLevel ::= ENUMERATED { + nullProtection (0), + basicProtection (1), + ... + } + +BasicProtectionParams ::= SEQUENCE { + keyIdentifier OCTET STRING (SIZE (8)), + basicReplayCounter INTEGER (0..65535), + basicMAC BIT STRING (SIZE (32)), + ... +} + +Ver2-SUPL-START-extension ::= SEQUENCE { + multipleLocationIds MultipleLocationIds OPTIONAL, + thirdParty ThirdParty OPTIONAL, + applicationID ApplicationID OPTIONAL, + position Position OPTIONAL, + ... +} + +Ver2-SUPL-RESPONSE-extension ::= SEQUENCE { + supportedNetworkInformation SupportedNetworkInformation OPTIONAL, + sPCSETKey SPCSETKey OPTIONAL, + sPCTID SPCTID OPTIONAL, + sPCSETKeylifetime SPCSETKeylifetime OPTIONAL, + initialApproximateposition Position OPTIONAL, + gnssPosTechnology GNSSPosTechnology OPTIONAL, + ... +} + +Ver2-SUPL-POS-INIT-extension ::= SEQUENCE { + multipleLocationIds MultipleLocationIds OPTIONAL, + utran-GPSReferenceTimeResult UTRAN-GPSReferenceTimeResult OPTIONAL, + utran-GANSSReferenceTimeResult UTRAN-GANSSReferenceTimeResult OPTIONAL, + ... +} + +Ver2-SUPL-POS-extension ::= SEQUENCE { + utran-GPSReferenceTimeAssistance UTRAN-GPSReferenceTimeAssistance OPTIONAL, + utran-GPSReferenceTimeResult UTRAN-GPSReferenceTimeResult OPTIONAL, + utran-GANSSReferenceTimeAssistance UTRAN-GANSSReferenceTimeAssistance OPTIONAL, + utran-GANSSReferenceTimeResult UTRAN-GANSSReferenceTimeResult OPTIONAL, + ... +} + +Ver2-SUPL-END-extension ::= SEQUENCE { + sETCapabilities SETCapabilities OPTIONAL, + ... +} + +END \ No newline at end of file diff --git a/asn.1/src/ULP-Version-2-parameter-extensions.asn b/asn.1/src/ULP-Version-2-parameter-extensions.asn new file mode 100644 index 00000000..41f011cb --- /dev/null +++ b/asn.1/src/ULP-Version-2-parameter-extensions.asn @@ -0,0 +1,237 @@ +-- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 +-- OMA-TS-ULP-V2_0-20100806-D +-- +-- 11.4 Parameter Extensions (SUPL Version 2) +-- +ULP-Version-2-parameter-extensions DEFINITIONS AUTOMATIC TAGS ::= BEGIN + +EXPORTS + maxGANSS, Ver2-Notification-extension, Ver2-SETCapabilities-extension, Ver2-PosProtocol-extension, Ver2-PosTechnology-extension, Ver2-RequestedAssistData-extension, Ver2-PosPayLoad-extension; + +IMPORTS + GANSSSignals, ReportingCap + FROM Ver2-ULP-Components + maxNumGeoArea, maxAreaId, maxAreaIdList + FROM SUPL-TRIGGERED-START; + +Ver2-Notification-extension ::= SEQUENCE { + emergencyCallLocation NULL OPTIONAL, + ... +} + +Ver2-SETCapabilities-extension ::= SEQUENCE { + serviceCapabilities ServiceCapabilities OPTIONAL, + ..., + supportedBearers SupportedBearers OPTIONAL +} + +ServiceCapabilities ::= SEQUENCE { + servicesSupported ServicesSupported, + reportingCapabilities ReportingCap OPTIONAL, + eventTriggerCapabilities EventTriggerCapabilities OPTIONAL, + sessionCapabilities SessionCapabilities, + ... +} + +ServicesSupported ::= SEQUENCE { + periodicTrigger BOOLEAN, + areaEventTrigger BOOLEAN, + ... +} + +EventTriggerCapabilities ::= SEQUENCE { + geoAreaShapesSupported GeoAreaShapesSupported, + maxNumGeoAreaSupported INTEGER (0..maxNumGeoArea) OPTIONAL, + maxAreaIdListSupported INTEGER (0..maxAreaIdList) OPTIONAL, + maxAreaIdSupportedPerList INTEGER (0..maxAreaId) OPTIONAL, + ... +} + +GeoAreaShapesSupported ::= SEQUENCE { + ellipticalArea BOOLEAN, + polygonArea BOOLEAN, + ... +} + +SessionCapabilities ::= SEQUENCE { + maxNumberTotalSessions INTEGER (1..128), + maxNumberPeriodicSessions INTEGER (1..32), + maxNumberTriggeredSessions INTEGER (1..32), + ... +} + +SupportedBearers ::= SEQUENCE { + gsm BOOLEAN, + wcdma BOOLEAN, + lte BOOLEAN, + cdma BOOLEAN, + hprd BOOLEAN, + umb BOOLEAN, + wlan BOOLEAN, + wiMAX BOOLEAN, + ... +} + +Ver2-PosProtocol-extension ::= SEQUENCE { + lpp BOOLEAN, + posProtocolVersionRRLP PosProtocolVersion3GPP OPTIONAL, + posProtocolVersionRRC PosProtocolVersion3GPP OPTIONAL, + posProtocolVersionTIA801 PosProtocolVersion3GPP2 OPTIONAL, + posProtocolVersionLPP PosProtocolVersion3GPP OPTIONAL, + ... +} + +PosProtocolVersion3GPP ::= SEQUENCE { + majorVersionField INTEGER (0..255), + technicalVersionField INTEGER (0..255), + editorialVersionField INTEGER (0..255), + ... +} + +PosProtocolVersion3GPP2 ::= SEQUENCE (SIZE (1..8)) OF Supported3GPP2PosProtocolVersion + +Supported3GPP2PosProtocolVersion ::= SEQUENCE { + revisionNumber BIT STRING (SIZE (6)), -- the location standard revision number the SET supports coded according to 3GPP2 C.S0022 + pointReleaseNumber INTEGER (0..255), + internalEditLevel INTEGER (0..255), + ... +} + +Ver2-PosTechnology-extension ::= SEQUENCE { + gANSSPositionMethods GANSSPositionMethods OPTIONAL, + ... +} + +GANSSPositionMethods ::= SEQUENCE (SIZE (1..16)) OF GANSSPositionMethod + +GANSSPositionMethod ::= SEQUENCE { + ganssId INTEGER (0..15), -- coding according to parameter definition in section 10.10 + ganssSBASid BIT STRING (SIZE (3)) OPTIONAL, -- coding according to parameter definition in section 10.10 + gANSSPositioningMethodTypes GANSSPositioningMethodTypes, + gANSSSignals GANSSSignals, + ... +} + +GANSSPositioningMethodTypes ::= SEQUENCE { + setAssisted BOOLEAN, + setBased BOOLEAN, + autonomous BOOLEAN, + ... +} + +Ver2-RequestedAssistData-extension ::= SEQUENCE { + ganssRequestedCommonAssistanceDataList GanssRequestedCommonAssistanceDataList OPTIONAL, + ganssRequestedGenericAssistanceDataList GanssRequestedGenericAssistanceDataList OPTIONAL, + extendedEphemeris ExtendedEphemeris OPTIONAL, + extendedEphemerisCheck ExtendedEphCheck OPTIONAL, + ... +} + +GanssRequestedCommonAssistanceDataList ::= SEQUENCE { + ganssReferenceTime BOOLEAN, + ganssIonosphericModel BOOLEAN, + ganssAdditionalIonosphericModelForDataID00 BOOLEAN, + ganssAdditionalIonosphericModelForDataID11 BOOLEAN, + ganssEarthOrientationParameters BOOLEAN, + ... +} + +GanssRequestedGenericAssistanceDataList ::= SEQUENCE (SIZE (1..maxGANSS)) OF GanssReqGenericData + +GanssReqGenericData ::= SEQUENCE { + ganssId INTEGER (0..15), -- coding according to parameter definition in section 10.10 + ganssSBASid BIT STRING (SIZE (3)) OPTIONAL, -- coding according to parameter definition in section 10.10 + ganssRealTimeIntegrity BOOLEAN, + ganssDifferentialCorrection DGANSS-Sig-Id-Req OPTIONAL, + ganssAlmanac BOOLEAN, + ganssNavigationModelData GanssNavigationModelData OPTIONAL, + ganssTimeModels BIT STRING (SIZE (16)) OPTIONAL, + ganssReferenceMeasurementInfo BOOLEAN, + ganssDataBits GanssDataBits OPTIONAL, + ganssUTCModel BOOLEAN, + ganssAdditionalDataChoices GanssAdditionalDataChoices OPTIONAL, + ganssAuxiliaryInformation BOOLEAN, + ganssExtendedEphemeris ExtendedEphemeris OPTIONAL, + ganssExtendedEphemerisCheck GanssExtendedEphCheck OPTIONAL, + ... +} + +DGANSS-Sig-Id-Req ::= BIT STRING (SIZE (8)) -- coding according to parameter definition in section 10.9 + +GanssNavigationModelData ::= SEQUENCE { + ganssWeek INTEGER (0..4095), + ganssToe INTEGER (0..167), + t-toeLimit INTEGER (0..15), + satellitesListRelatedDataList SatellitesListRelatedDataList OPTIONAL, + ... +} + +SatellitesListRelatedDataList ::= SEQUENCE (SIZE (0..maxGANSSSat)) OF SatellitesListRelatedData + +SatellitesListRelatedData ::= SEQUENCE { + satId INTEGER (0..63), + iod INTEGER (0..1023), + ... +} + +maxGANSS INTEGER ::= 16 + +maxGANSSSat INTEGER ::= 32 + +GanssDataBits ::= SEQUENCE { + ganssTODmin INTEGER (0..59), + reqDataBitAssistanceList ReqDataBitAssistanceList, + ... +} + +ReqDataBitAssistanceList ::= SEQUENCE { + gnssSignals GANSSSignals, + ganssDataBitInterval INTEGER (0..15), + ganssDataBitSatList SEQUENCE (SIZE (1..maxGANSSSat)) OF INTEGER (0..63) OPTIONAL, + ... +} + +GanssAdditionalDataChoices ::= SEQUENCE { + orbitModelID INTEGER (0..7) OPTIONAL, + clockModelID INTEGER (0..7) OPTIONAL, + utcModelID INTEGER (0..7) OPTIONAL, + almanacModelID INTEGER (0..7) OPTIONAL, + ... +} + +ExtendedEphemeris ::= SEQUENCE { + validity INTEGER (1..256), -- Requested validity in 4 hour steps + ... +} + +ExtendedEphCheck ::= SEQUENCE { + beginTime SUPL-GPSTime, -- Begin time of ephemeris extension held by SET + endTime SUPL-GPSTime, -- End time of ephemeris extension held by SET + ... +} + +GanssExtendedEphCheck ::= SEQUENCE { + beginTime GANSSextEphTime, -- Begin time of ephemeris extension held by SET + endTime GANSSextEphTime, -- End time of ephemeris extension held by SET + ... +} + +SUPL-GPSTime ::= SEQUENCE { + gPSWeek INTEGER (0..1023), + gPSTOWhour INTEGER (0..167), + ... +} + +GANSSextEphTime ::= SEQUENCE { + gANSSday INTEGER (0..8191), + gANSSTODhour INTEGER (0..23), + ... +} + +Ver2-PosPayLoad-extension ::= SEQUENCE { + lPPPayload SEQUENCE (SIZE (1..3)) OF OCTET STRING (SIZE (1..60000)) OPTIONAL, + tIA801Payload SEQUENCE (SIZE (1..3)) OF OCTET STRING (SIZE (1..60000)) OPTIONAL, + ... +} + +END \ No newline at end of file diff --git a/asn.1/src/ULP.asn b/asn.1/src/ULP.asn old mode 100644 new mode 100755 index 2482d7a0..20ed1cd4 --- a/asn.1/src/ULP.asn +++ b/asn.1/src/ULP.asn @@ -1,72 +1,69 @@ --- ULP.asn --- --- Taken from OMA UserPlane Location Protocol --- http://member.openmobilealliance.org/ftp/Public_documents/LOC/Permanent_documents/OMA-TS-ULP-V2_0-20100816-C.zip +-- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 +-- OMA-TS-ULP-V2_0-20100806-D -- -- 11.1 Common Part -- - -ULP DEFINITIONS AUTOMATIC TAGS ::= -BEGIN +ULP DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS - Version, SessionID -FROM ULP-Components - SUPLINIT -FROM SUPL-INIT - SUPLSTART -FROM SUPL-START - SUPLRESPONSE -FROM SUPL-RESPONSE - SUPLPOSINIT -FROM SUPL-POS-INIT - SUPLPOS -FROM SUPL-POS - SUPLEND -FROM SUPL-END - SUPLAUTHREQ -FROM SUPL-AUTH-REQ - SUPLAUTHRESP -FROM SUPL-AUTH-RESP - Ver2-SUPLTRIGGEREDSTART -FROM SUPL-TRIGGERED-START - Ver2-SUPLTRIGGEREDRESPONSE -FROM SUPL-TRIGGERED-RESPONSE - Ver2-SUPLREPORT -FROM SUPL-REPORT - Ver2-SUPLTRIGGEREDSTOP -FROM SUPL-TRIGGERED-STOP - Ver2-SUPLSETINIT -FROM SUPL-SET-INIT - Ver2-SUPLNOTIFY -FROM SUPL-NOTIFY - Ver2-SUPLNOTIFYRESPONSE -FROM SUPL-NOTIFY-RESPONSE; + Version, SessionID + FROM ULP-Components + SUPLINIT + FROM SUPL-INIT + SUPLSTART + FROM SUPL-START + SUPLRESPONSE + FROM SUPL-RESPONSE + SUPLPOSINIT + FROM SUPL-POS-INIT + SUPLPOS + FROM SUPL-POS + SUPLEND + FROM SUPL-END + SUPLAUTHREQ + FROM SUPL-AUTH-REQ + SUPLAUTHRESP + FROM SUPL-AUTH-RESP + Ver2-SUPLTRIGGEREDSTART + FROM SUPL-TRIGGERED-START + Ver2-SUPLTRIGGEREDRESPONSE + FROM SUPL-TRIGGERED-RESPONSE + Ver2-SUPLREPORT + FROM SUPL-REPORT + Ver2-SUPLTRIGGEREDSTOP + FROM SUPL-TRIGGERED-STOP + Ver2-SUPLSETINIT + FROM SUPL-SET-INIT + Ver2-SUPLNOTIFY + FROM SUPL-NOTIFY + Ver2-SUPLNOTIFYRESPONSE + FROM SUPL-NOTIFY-RESPONSE; -- general ULP PDU layout;-- ULP-PDU ::= SEQUENCE { - length INTEGER(0..65535), - version Version, - sessionID SessionID, - message UlpMessage} + length INTEGER (0..65535), + version Version, + sessionID SessionID, + message UlpMessage +} UlpMessage ::= CHOICE { - msSUPLINIT SUPLINIT, - msSUPLSTART SUPLSTART, - msSUPLRESPONSE SUPLRESPONSE, - msSUPLPOSINIT SUPLPOSINIT, - msSUPLPOS SUPLPOS, - msSUPLEND SUPLEND, - msSUPLAUTHREQ SUPLAUTHREQ, - msSUPLAUTHRESP SUPLAUTHRESP, - ..., - msSUPLTRIGGEREDSTART Ver2-SUPLTRIGGEREDSTART, - msSUPLTRIGGEREDRESPONSE Ver2-SUPLTRIGGEREDRESPONSE, - msSUPLTRIGGEREDSTOP Ver2-SUPLTRIGGEREDSTOP, - msSUPLNOTIFY Ver2-SUPLNOTIFY, - msSUPLNOTIFYRESPONSE Ver2-SUPLNOTIFYRESPONSE, - msSUPLSETINIT Ver2-SUPLSETINIT, -msSUPLREPORT Ver2-SUPLREPORT} + msSUPLINIT SUPLINIT, + msSUPLSTART SUPLSTART, + msSUPLRESPONSE SUPLRESPONSE, + msSUPLPOSINIT SUPLPOSINIT, + msSUPLPOS SUPLPOS, + msSUPLEND SUPLEND, + msSUPLAUTHREQ SUPLAUTHREQ, + msSUPLAUTHRESP SUPLAUTHRESP, + ..., + msSUPLTRIGGEREDSTART Ver2-SUPLTRIGGEREDSTART, + msSUPLTRIGGEREDRESPONSE Ver2-SUPLTRIGGEREDRESPONSE, + msSUPLTRIGGEREDSTOP Ver2-SUPLTRIGGEREDSTOP, + msSUPLNOTIFY Ver2-SUPLNOTIFY, + msSUPLNOTIFYRESPONSE Ver2-SUPLNOTIFYRESPONSE, + msSUPLSETINIT Ver2-SUPLSETINIT, + msSUPLREPORT Ver2-SUPLREPORT +} END - diff --git a/asn.1/src/Ver2-ULP-Components.asn b/asn.1/src/Ver2-ULP-Components.asn new file mode 100644 index 00000000..a7d0b2ec --- /dev/null +++ b/asn.1/src/Ver2-ULP-Components.asn @@ -0,0 +1,555 @@ +-- From OMA UserPlane Location Protocol Candidate Version 2.0 06 Aug 2010 +-- OMA-TS-ULP-V2_0-20100806-D +-- +-- 11.6 Common elements (SUPL Version 2) +-- +Ver2-ULP-Components DEFINITIONS AUTOMATIC TAGS ::= BEGIN + +EXPORTS + Ver2-CellInfo-extension, MultipleLocationIds, SupportedNetworkInformation, CauseCode, UTRAN-GPSReferenceTimeAssistance, UTRAN-GPSReferenceTimeResult, SPCSETKey, SPCTID, SPCSETKeylifetime, UTRAN-GANSSReferenceTimeAssistance, UTRAN-GANSSReferenceTimeResult, GNSSPosTechnology, GANSSSignals, ThirdParty, ApplicationID, + ReportingCap, Coordinate, CircularArea, EllipticalArea, PolygonArea; + +IMPORTS + LocationId, PrimaryCPICH-Info, CellParametersID, FQDN + FROM ULP-Components; + +MultipleLocationIds ::= SEQUENCE SIZE (1..maxLidSize) OF LocationIdData + +LocationIdData ::= SEQUENCE { + locationId LocationId, + relativetimestamp RelativeTime OPTIONAL, -- if relativetimestamp is present, then data represents historical measurement, if absent, data represents current measurements + servingFlag BOOLEAN, -- if "true?measurements represent serving cell + ... +} + +RelativeTime ::= INTEGER (0..65535) -- relative time to "current?Location Id in multiples of 0.01sec + +maxLidSize INTEGER ::= 64 + +SupportedNetworkInformation ::= SEQUENCE { + wLAN BOOLEAN, + supportedWLANInfo SupportedWLANInfo OPTIONAL, + supportedWLANApsList SupportedWLANApsList OPTIONAL, + gSM BOOLEAN, + wCDMA BOOLEAN, + supportedWCDMAInfo SupportedWCDMAInfo OPTIONAL, + cDMA BOOLEAN, + hRDP BOOLEAN, + uMB BOOLEAN, + lTE BOOLEAN, + wIMAX BOOLEAN, + historic BOOLEAN, + nonServing BOOLEAN, + uTRANGPSReferenceTime BOOLEAN, + uTRANGANSSReferenceTime BOOLEAN, + ... +} + +SupportedWLANInfo ::= SEQUENCE { + apTP BOOLEAN, -- AP transmit power + apAG BOOLEAN, -- AP antenna gain + apSN BOOLEAN, -- AP S/N received at SET + apDevType BOOLEAN, -- Device type + apRSSI BOOLEAN, -- AP signal strength at SET + apChanFreq BOOLEAN, -- AP channel/frequency of Tx/Rx + apRTD BOOLEAN, -- Round Trip Delay between SET and AP + setTP BOOLEAN, -- SET transmit power + setAG BOOLEAN, -- SET antenna gain + setSN BOOLEAN, -- SET S/N received at AP + setRSSI BOOLEAN, -- SET signal strength at AP + apRepLoc BOOLEAN, -- AP Location as reported by AP + ... +} + +maxWLANApDataSize INTEGER ::= 128 + +SupportedWLANApsList ::= SEQUENCE { + supportedWLANApDataList SEQUENCE (SIZE (1..maxWLANApDataSize)) OF SupportedWLANApData, + supportedWLANapsChannel11a SupportedWLANApsChannel11a OPTIONAL, + supportedWLANapsChannel11bg SupportedWLANApsChannel11bg OPTIONAL, + ... +} + +SupportedWLANApsChannel11a ::= SEQUENCE { + ch34 BOOLEAN, + ch36 BOOLEAN, + ch38 BOOLEAN, + ch40 BOOLEAN, + ch42 BOOLEAN, + ch44 BOOLEAN, + ch46 BOOLEAN, + ch48 BOOLEAN, + ch52 BOOLEAN, + ch56 BOOLEAN, + ch60 BOOLEAN, + ch64 BOOLEAN, + ch149 BOOLEAN, + ch153 BOOLEAN, + ch157 BOOLEAN, + ch161 BOOLEAN +} + +SupportedWLANApsChannel11bg ::= SEQUENCE { + ch1 BOOLEAN, + ch2 BOOLEAN, + ch3 BOOLEAN, + ch4 BOOLEAN, + ch5 BOOLEAN, + ch6 BOOLEAN, + ch7 BOOLEAN, + ch8 BOOLEAN, + ch9 BOOLEAN, + ch10 BOOLEAN, + ch11 BOOLEAN, + ch12 BOOLEAN, + ch13 BOOLEAN, + ch14 BOOLEAN +} + +SupportedWLANApData ::= SEQUENCE { + apMACAddress BIT STRING (SIZE (48)), + apDevType ENUMERATED { + wlan802-11a (0), + wlan802-11b (1), + wlan802-11g (2), + ... + }, + ... +} + +SupportedWCDMAInfo ::= SEQUENCE { + mRL BOOLEAN, -- Measured Results List + ... +} + +Ver2-CellInfo-extension ::= CHOICE { + hrpdCell HrpdCellInformation, + umbCell UmbCellInformation, + lteCell LteCellInformation, + wlanAP WlanAPInformation, + wimaxBS WimaxBSInformation, + ... +} + +HrpdCellInformation ::= SEQUENCE { + refSECTORID BIT STRING (SIZE (128)) OPTIONAL, -- HRPD Sector Id + refBASELAT INTEGER (0..4194303), -- Base Station Latitude + reBASELONG INTEGER (0..8388607), -- Base Station Longitude + refWeekNumber INTEGER (0..65535), -- GPS Week Number + refSeconds INTEGER (0..4194303), -- GPS Seconds -- + ... +} + +UmbCellInformation ::= SEQUENCE { + refSECTORID BIT STRING (SIZE (128)), -- UMB Sector Id + refMCC INTEGER (0..999), -- Mobile Country Code + refMNC INTEGER (0..999), -- Mobile Network Code + refBASELAT INTEGER (0..4194303), -- Base Station Latitude + reBASELONG INTEGER (0..8388607), -- Base Station Longitude + refWeekNumber INTEGER (0..65535), -- GPS Week Number + refSeconds INTEGER (0..4194303), -- GPS Seconds -- + ... +} + +-- LTE Cell info per 3GPP TS 36.331. -- +-- If not otherwise stated info is related to serving cell -- +LteCellInformation ::= SEQUENCE { + cellGlobalIdEUTRA CellGlobalIdEUTRA, + physCellId PhysCellId, + trackingAreaCode TrackingAreaCode, + rsrpResult RSRP-Range OPTIONAL, + rsrqResult RSRQ-Range OPTIONAL, + tA INTEGER (0..1282) OPTIONAL, -- Timing Advance as per 3GPP TS 36.321 + measResultListEUTRA MeasResultListEUTRA OPTIONAL, --Neighbour measurements + ... +} + +-- Measured results of neighbours cells per 3GPP TS 36.331 -- +MeasResultListEUTRA ::= SEQUENCE (SIZE (1..maxCellReport)) OF MeasResultEUTRA + +MeasResultEUTRA ::= SEQUENCE { + physCellId PhysCellId, + cgi-Info SEQUENCE { + cellGlobalId CellGlobalIdEUTRA, + trackingAreaCode TrackingAreaCode + } OPTIONAL, + measResult SEQUENCE { + rsrpResult RSRP-Range OPTIONAL, -- Mapping to measured values + rsrqResult RSRQ-Range OPTIONAL, -- in 3GPP TS 36.133 + ... + } +} + +PhysCellId ::= INTEGER (0..503) + +TrackingAreaCode ::= BIT STRING (SIZE (16)) + +CellGlobalIdEUTRA ::= SEQUENCE { + plmn-Identity PLMN-Identity, + cellIdentity CellIdentity, + ... +} + +PLMN-Identity ::= SEQUENCE { + mcc MCC OPTIONAL, + mnc MNC +} + +CellIdentity ::= BIT STRING (SIZE (28)) + +MCC ::= SEQUENCE (SIZE (3)) OF MCC-MNC-Digit + +MNC ::= SEQUENCE (SIZE (2..3)) OF MCC-MNC-Digit + +MCC-MNC-Digit ::= INTEGER (0..9) + +RSRP-Range ::= INTEGER (0..97) + +RSRQ-Range ::= INTEGER (0..34) + +maxCellReport INTEGER ::= 8 + +WlanAPInformation ::= SEQUENCE { -- as per [IEEE 802.11v] + apMACAddress BIT STRING (SIZE (48)), -- AP MAC Address + apTransmitPower INTEGER (-127..128) OPTIONAL, -- AP transmit power in dbm + apAntennaGain INTEGER (-127..128) OPTIONAL, -- AP antenna gain in dBi + apSignaltoNoise INTEGER (-127..128) OPTIONAL, -- AP S/N received at SET + apDeviceType ENUMERATED { + wlan802-11a (0), + wlan802-11b (1), + wlan802-11g (2), + ... + } OPTIONAL, + apSignalStrength INTEGER (-127..128) OPTIONAL, -- AP signal strength at SET + apChannelFrequency INTEGER (0..256) OPTIONAL, -- AP channel/frequency of Tx/Rx + apRoundTripDelay RTD OPTIONAL, -- Round Trip Delay between SET and AP + setTransmitPower INTEGER (-127..128) OPTIONAL, -- SET transmit power in dBm + setAntennaGain INTEGER (-127..128) OPTIONAL, -- SET antenna gain in dBi + setSignaltoNoise INTEGER (-127..128) OPTIONAL, -- SET S/N received at AP + setSignalStrength INTEGER (-127..128) OPTIONAL, -- SET signal strength at AP + apReportedLocation ReportedLocation OPTIONAL, -- AP Location reported by AP + ... +} + +RTD ::= SEQUENCE { -- as per [IEEE 802.11v] + rTDValue INTEGER (0..16777216), -- measured RTD value corresponding to + -- about 500km in units of 1/10 of nanoseconds + rTDUnits RTDUnits, -- units of RTD + rTDAccuracy INTEGER (0..255) OPTIONAL, -- RTD accuracy + ... +} + +RTDUnits ::= ENUMERATED { + microseconds (0), + hundredsofnanoseconds (1), + tensofnanoseconds (2), + nanoseconds (3), + tenthsofnanoseconds (4), + ... + } + +ReportedLocation ::= SEQUENCE { -- as per [IEEE 802.11v] + locationEncodingDescriptor LocationEncodingDescriptor, + locationData LocationData, -- location data field + ... +} + +LocationEncodingDescriptor ::= ENUMERATED { + lCI (0), + aSN1 (1), + ... + } + +LocationData ::= SEQUENCE { + locationAccuracy INTEGER (0..4294967295) OPTIONAL, + locationValue OCTET STRING (SIZE (1..128)), + ... +} + +WimaxBSInformation ::= SEQUENCE { + wimaxBsID WimaxBsID, -- WiMax serving base station ID + wimaxRTD WimaxRTD OPTIONAL, -- Round Trip Delay measurements + wimaxNMRList WimaxNMRList OPTIONAL, -- Network measurements + ... +} + +WimaxBsID ::= SEQUENCE { + bsID-MSB BIT STRING (SIZE (24)) OPTIONAL, + bsID-LSB BIT STRING (SIZE (24)), + ... +} + +-- if only LSB is present, MSB is assumed to be identical to the current serving BS or clamped on network value +WimaxRTD ::= SEQUENCE { + rTD INTEGER (0..65535), -- Round trip delay of serving BS in units of 10 ns + rTDstd INTEGER (0..1023) OPTIONAL, -- Standard deviation of round trip delay in units of 10 ns + ... +} + +WimaxNMRList ::= SEQUENCE (SIZE (1..maxWimaxBSMeas)) OF WimaxNMR + +WimaxNMR ::= SEQUENCE { + wimaxBsID WimaxBsID, -- WiMax BS ID for the measurement + relDelay INTEGER (-32768..32767) OPTIONAL, -- Relative delay for this neighbouring BSs to the serving cell in units of 10 ns + relDelaystd INTEGER (0..1023) OPTIONAL, -- Standard deviation of Relative delay in units of 10 ns + rSSI INTEGER (0..255) OPTIONAL, -- RSSI in 0.25 dBm steps, starting from -103.75 dBm + rSSIstd INTEGER (0..63) OPTIONAL, -- Standard deviation of RSSI in dB + bSTxPower INTEGER (0..255) OPTIONAL, -- BS transmit power in 0.25 dBm steps, starting from -103.75 dBm + cINR INTEGER (0..255) OPTIONAL, -- in dB + cINRstd INTEGER (0..63) OPTIONAL, -- Standard deviation of CINR in dB + bSLocation ReportedLocation OPTIONAL, -- Reported location of the BS + ... +} + +maxWimaxBSMeas INTEGER ::= 32 + +UTRAN-GPSReferenceTimeAssistance ::= SEQUENCE { + utran-GPSReferenceTime UTRAN-GPSReferenceTime, + gpsReferenceTimeUncertainty INTEGER (0..127) OPTIONAL, + utranGPSDriftRate UTRANGPSDriftRate OPTIONAL +} + +UTRAN-GPSReferenceTime ::= SEQUENCE { + -- For utran-GPSTimingOfCell values above 2322431999999 are not used in this version of the specification. Actual value utran-GPSTimingOfCell = (ms-part * 4294967296) + ls-part used on the downlink i.e. sent from the SLP to the SET + utran-GPSTimingOfCell SEQUENCE { + ms-part INTEGER (0..1023), + ls-part INTEGER (0..4294967295) + }, + modeSpecificInfo CHOICE { + fdd SEQUENCE { + referenceIdentity PrimaryCPICH-Info + }, + tdd SEQUENCE { + referenceIdentity CellParametersID + } + } OPTIONAL, + sfn INTEGER (0..4095) +} + +UTRANGPSDriftRate ::= ENUMERATED { + utran-GPSDrift0, + utran-GPSDrift1, + utran-GPSDrift2, + utran-GPSDrift5, + utran-GPSDrift10, + utran-GPSDrift15, + utran-GPSDrift25, + utran-GPSDrift50, + utran-GPSDrift-1, + utran-GPSDrift-2, + utran-GPSDrift-5, + utran-GPSDrift-10, + utran-GPSDrift-15, + utran-GPSDrift-25, + utran-GPSDrift-50 + } + +UTRAN-GPSReferenceTimeResult ::= SEQUENCE { + -- For ue-GPSTimingOfCell values above 37158911999999 are not used in this version of the specification. Actual value utran-GPSTimingOfCell = (ms-part * 4294967296) + ls-part used on the uplink i.e. reported by the SET to the SLP + set-GPSTimingOfCell SEQUENCE { + ms-part INTEGER (0..16383), + ls-part INTEGER (0..4294967295) + }, + modeSpecificInfo CHOICE { + fdd SEQUENCE { + referenceIdentity PrimaryCPICH-Info + }, + tdd SEQUENCE { + referenceIdentity CellParametersID + } + } OPTIONAL, + sfn INTEGER (0..4095), + gpsReferenceTimeUncertainty INTEGER (0..127) OPTIONAL, + ... +} + +UTRAN-GANSSReferenceTimeAssistance ::= SEQUENCE { + ganssDay INTEGER (0..8191) OPTIONAL, + ganssTimeID INTEGER (0..15), + utran-GANSSReferenceTime UTRAN-GANSSReferenceTime, + utranGANSSDriftRate UTRANGANSSDriftRate OPTIONAL +} + +UTRAN-GANSSReferenceTime ::= SEQUENCE { + ganssTOD INTEGER (0..86399), + utran-GANSSTimingOfCell INTEGER (0..3999999) OPTIONAL, + modeSpecificInfo CHOICE { + fdd SEQUENCE { + referenceIdentity PrimaryCPICH-Info + }, + tdd SEQUENCE { + referenceIdentity CellParametersID + } + } OPTIONAL, + sfn INTEGER (0..4095), + ganss-TODUncertainty INTEGER (0..127) OPTIONAL, + ... +} + +UTRANGANSSDriftRate ::= ENUMERATED { + utran-GANSSDrift0, + utran-GANSSDrift1, + utran-GANSSDrift2, + utran-GANSSDrift5, + utran-GANSSDrift10, + utran-GANSSDrift15, + utran-GANSSDrift25, + utran-GANSSDrift50, + utran-GANSSDrift-1, + utran-GANSSDrift-2, + utran-GANSSDrift-5, + utran-GANSSDrift-10, + utran-GANSSDrift-15, + utran-GANSSDrift-25, + utran-GANSSDrift-50 + } + +UTRAN-GANSSReferenceTimeResult ::= SEQUENCE { + ganssTimeID INTEGER (0..15), + set-GANSSReferenceTime SET-GANSSReferenceTime, + ... +} + +SET-GANSSReferenceTime ::= SEQUENCE { + -- Actual value [ns] = (ms-Part * 4294967296 + ls-Part) * 250 + -- Actual values [ns] > 86399999999750 are reserved and are considered a + -- protocol error + set-GANSSTimingOfCell SEQUENCE { + ms-part INTEGER (0..80), + ls-part INTEGER (0..4294967295) + } OPTIONAL, + modeSpecificInfo CHOICE { + fdd SEQUENCE { + referenceIdentity PrimaryCPICH-Info + }, + tdd SEQUENCE { + referenceIdentity CellParametersID + } + } OPTIONAL, + sfn INTEGER (0..4095), + ganss-TODUncertainty INTEGER (0..127) OPTIONAL, + ... +} + +GNSSPosTechnology ::= SEQUENCE { + gps BOOLEAN, + galileo BOOLEAN, + sbas BOOLEAN, + modernized-gps BOOLEAN, + qzss BOOLEAN, + glonass BOOLEAN, + ... +} + +-- indicates MS support for particular GANSS signals and frequencies coding according to parameter definition in section 10.9 +GANSSSignals ::= BIT STRING { + signal1 (0), + signal2 (1), + signal3 (2), + signal4 (3), + signal5 (4), + signal6 (5), + signal7 (6), + signal8 (7) + } (SIZE (1..8)) + +SPCSETKey ::= BIT STRING (SIZE (128)) + +SPCTID ::= SEQUENCE { + rAND BIT STRING (SIZE (128)), + slpFQDN FQDN, + ... +} + +SPCSETKeylifetime ::= INTEGER (1..24) -- units in hours + +CauseCode ::= ENUMERATED { + servingNetWorkNotInAreaIdList (0), + sETCapabilitiesChanged (1), + noSUPLCoverage (2), + ... + } + +ThirdParty ::= SEQUENCE (SIZE (1..64)) OF ThirdPartyID + +ThirdPartyID ::= CHOICE { + logicalName IA5String (SIZE (1..1000)), + msisdn OCTET STRING (SIZE (8)), + emailaddr IA5String (SIZE (1..1000)), + -- sip-uri VisibleString(FROM ("a".."z" | "A".."Z" | "0".."9" | ":./-_~%#@?")) (SIZE (1..255)), + -- ims-public-identity VisibleString(FROM ("a".."z" | "A".."Z" | "0".."9" | ":./-_~%#@?")) (SIZE (1..255)), + -- # asn2wrs does not handle '%' in the resticted string + sip-uri VisibleString (FROM ("a".."z" | "A".."Z" | "0".."9" | ":./-_~#@?")) (SIZE (1..255)), + ims-public-identity VisibleString (FROM ("a".."z" | "A".."Z" | "0".."9" | ":./-_~#@?")) (SIZE (1..255)), + min BIT STRING (SIZE (34)), -- coded according to TIA-553 + mdn OCTET STRING (SIZE (8)), + -- uri VisibleString(FROM ("a".."z" | "A".."Z" | "0".."9" | "./-_~%#")) (SIZE (1..255)), + uri VisibleString (FROM ("a".."z" | "A".."Z" | "0".."9" | "./-_~#")) (SIZE (1..255)), + ... +} + +ApplicationID ::= SEQUENCE { + appProvider IA5String (SIZE (1..24)), -- The application provider + appName IA5String (SIZE (1..32)), -- The application name + appVersion IA5String (SIZE (1..8)) OPTIONAL, -- The application version + ... +} + +ReportingCap ::= SEQUENCE { + minInt INTEGER (1..3600), -- units in seconds + maxInt INTEGER (1..1440) OPTIONAL, -- units in minutes + repMode RepMode-cap, + batchRepCap BatchRepCap OPTIONAL, -- only used for batch and quasi real time reporting + ... +} + +RepMode-cap ::= SEQUENCE { + realtime BOOLEAN, + quasirealtime BOOLEAN, + batch BOOLEAN, + ... +} + +BatchRepCap ::= SEQUENCE { + report-position BOOLEAN, -- set to "true"if reporting of position is supported + report-measurements BOOLEAN, -- set to "true"if reporting of measurements is supported + max-num-positions INTEGER (1..1024) OPTIONAL, + max-num-measurements INTEGER (1..1024) OPTIONAL, + ... +} + +Coordinate ::= SEQUENCE { + latitudeSign ENUMERATED { + north (0), + south (1) + }, + latitude INTEGER (0..8388607), + longitude INTEGER (-8388608..8388607) +} -- Coding as in [3GPP GAD] + +CircularArea ::= SEQUENCE { + coordinate Coordinate, + radius INTEGER (1..1000000), -- radius in meters + radius-min INTEGER (1..1000000) OPTIONAL, -- hysteresis minimum radius + radius-max INTEGER (1..1500000) OPTIONAL +} -- hysteresis maximum radius + +EllipticalArea ::= SEQUENCE { + coordinate Coordinate, + semiMajor INTEGER (1..1000000), -- units in meters + semiMajor-min INTEGER (1..1000000) OPTIONAL, -- hysteresis minimum semiMajor + semiMajor-max INTEGER (1..1500000) OPTIONAL, -- hysteresis maximum semiMajor + semiMinor INTEGER (1..1000000), -- units in meters + semiMinor-min INTEGER (1..1000000) OPTIONAL, -- hysteresis minimum semiMinor + semiMinor-max INTEGER (1..1500000) OPTIONAL, -- hysteresis maximum semiMinor + angle INTEGER (0..179) +} -- units in degrees "the angle is defined as the angle between the semi-major axis and North, increasing in a clockwise direction. An angle of 0 represents an ellipse with the semi-major axis pointing North/South while an angle of 90 represents an ellipse with the semi-major axis pointing East/West. + +PolygonArea ::= SEQUENCE { + polygonDescription PolygonDescription, + polygonHysteresis INTEGER (1..100000) OPTIONAL +} -- units in meters + +PolygonDescription ::= SEQUENCE (SIZE (3..15)) OF Coordinate + +END diff --git a/asn.1/supl_generated/AllowedReportingType.c b/asn.1/supl_generated/AllowedReportingType.c new file mode 100644 index 00000000..4bf74012 --- /dev/null +++ b/asn.1/supl_generated/AllowedReportingType.c @@ -0,0 +1,67 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "AllowedReportingType.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AllowedReportingType_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_AllowedReportingType_value2enum_1[] = { + { 0, 13, "positionsOnly" }, + { 1, 16, "measurementsOnly" }, + { 2, 24, "positionsAndMeasurements" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_AllowedReportingType_enum2value_1[] = { + 1, /* measurementsOnly(1) */ + 2, /* positionsAndMeasurements(2) */ + 0 /* positionsOnly(0) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_AllowedReportingType_specs_1 = { + asn_MAP_AllowedReportingType_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_AllowedReportingType_enum2value_1, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 4, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_AllowedReportingType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AllowedReportingType = { + "AllowedReportingType", + "AllowedReportingType", + &asn_OP_NativeEnumerated, + asn_DEF_AllowedReportingType_tags_1, + sizeof(asn_DEF_AllowedReportingType_tags_1) + /sizeof(asn_DEF_AllowedReportingType_tags_1[0]), /* 1 */ + asn_DEF_AllowedReportingType_tags_1, /* Same as above */ + sizeof(asn_DEF_AllowedReportingType_tags_1) + /sizeof(asn_DEF_AllowedReportingType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AllowedReportingType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_AllowedReportingType_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AllowedReportingType.h b/asn.1/supl_generated/AllowedReportingType.h similarity index 79% rename from asn.1/generated/AllowedReportingType.h rename to asn.1/supl_generated/AllowedReportingType.h index c3b9b7f7..f6587734 100644 --- a/asn.1/generated/AllowedReportingType.h +++ b/asn.1/supl_generated/AllowedReportingType.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _AllowedReportingType_H_ @@ -36,12 +36,10 @@ extern asn_per_constraints_t asn_PER_type_AllowedReportingType_constr_1; extern asn_TYPE_descriptor_t asn_DEF_AllowedReportingType; extern const asn_INTEGER_specifics_t asn_SPC_AllowedReportingType_specs_1; asn_struct_free_f AllowedReportingType_free; -asn_struct_print_f AllowedReportingType_print; asn_constr_check_f AllowedReportingType_constraint; -ber_type_decoder_f AllowedReportingType_decode_ber; -der_type_encoder_f AllowedReportingType_encode_der; xer_type_decoder_f AllowedReportingType_decode_xer; xer_type_encoder_f AllowedReportingType_encode_xer; +jer_type_encoder_f AllowedReportingType_encode_jer; per_type_decoder_f AllowedReportingType_decode_uper; per_type_encoder_f AllowedReportingType_encode_uper; diff --git a/asn.1/supl_generated/AltitudeInfo.c b/asn.1/supl_generated/AltitudeInfo.c new file mode 100644 index 00000000..8525e2c2 --- /dev/null +++ b/asn.1/supl_generated/AltitudeInfo.c @@ -0,0 +1,222 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "AltitudeInfo.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_altitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_altUncertainty_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_altitudeDirection_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_altitude_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_altUncertainty_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_altitudeDirection_value2enum_2[] = { + { 0, 6, "height" }, + { 1, 5, "depth" } +}; +static const unsigned int asn_MAP_altitudeDirection_enum2value_2[] = { + 1, /* depth(1) */ + 0 /* height(0) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_altitudeDirection_specs_2 = { + asn_MAP_altitudeDirection_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_altitudeDirection_enum2value_2, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_altitudeDirection_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_altitudeDirection_2 = { + "altitudeDirection", + "altitudeDirection", + &asn_OP_NativeEnumerated, + asn_DEF_altitudeDirection_tags_2, + sizeof(asn_DEF_altitudeDirection_tags_2) + /sizeof(asn_DEF_altitudeDirection_tags_2[0]) - 1, /* 1 */ + asn_DEF_altitudeDirection_tags_2, /* Same as above */ + sizeof(asn_DEF_altitudeDirection_tags_2) + /sizeof(asn_DEF_altitudeDirection_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_altitudeDirection_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_altitudeDirection_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_AltitudeInfo_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AltitudeInfo, altitudeDirection), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_altitudeDirection_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "altitudeDirection" + }, + { ATF_NOFLAGS, 0, offsetof(struct AltitudeInfo, altitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_altitude_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_altitude_constraint_1 + }, + 0, 0, /* No default value */ + "altitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct AltitudeInfo, altUncertainty), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_altUncertainty_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_altUncertainty_constraint_1 + }, + 0, 0, /* No default value */ + "altUncertainty" + }, +}; +static const ber_tlv_tag_t asn_DEF_AltitudeInfo_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AltitudeInfo_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* altitudeDirection */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* altitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* altUncertainty */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AltitudeInfo_specs_1 = { + sizeof(struct AltitudeInfo), + offsetof(struct AltitudeInfo, _asn_ctx), + asn_MAP_AltitudeInfo_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AltitudeInfo = { + "AltitudeInfo", + "AltitudeInfo", + &asn_OP_SEQUENCE, + asn_DEF_AltitudeInfo_tags_1, + sizeof(asn_DEF_AltitudeInfo_tags_1) + /sizeof(asn_DEF_AltitudeInfo_tags_1[0]), /* 1 */ + asn_DEF_AltitudeInfo_tags_1, /* Same as above */ + sizeof(asn_DEF_AltitudeInfo_tags_1) + /sizeof(asn_DEF_AltitudeInfo_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AltitudeInfo_1, + 3, /* Elements count */ + &asn_SPC_AltitudeInfo_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AltitudeInfo.h b/asn.1/supl_generated/AltitudeInfo.h similarity index 82% rename from asn.1/generated/AltitudeInfo.h rename to asn.1/supl_generated/AltitudeInfo.h index e74fc9b8..836abd31 100644 --- a/asn.1/generated/AltitudeInfo.h +++ b/asn.1/supl_generated/AltitudeInfo.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _AltitudeInfo_H_ diff --git a/asn.1/supl_generated/ApplicationID.c b/asn.1/supl_generated/ApplicationID.c new file mode 100644 index 00000000..afb85f85 --- /dev/null +++ b/asn.1/supl_generated/ApplicationID.c @@ -0,0 +1,245 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ApplicationID.h" + +static int check_permitted_alphabet_2(const void *sptr) { + /* The underlying type is IA5String */ + const IA5String_t *st = (const IA5String_t *)sptr; + const uint8_t *ch = st->buf; + const uint8_t *end = ch + st->size; + + for(; ch < end; ch++) { + uint8_t cv = *ch; + if(!(cv <= 127UL)) return -1; + } + return 0; +} + +static int check_permitted_alphabet_3(const void *sptr) { + /* The underlying type is IA5String */ + const IA5String_t *st = (const IA5String_t *)sptr; + const uint8_t *ch = st->buf; + const uint8_t *end = ch + st->size; + + for(; ch < end; ch++) { + uint8_t cv = *ch; + if(!(cv <= 127UL)) return -1; + } + return 0; +} + +static int check_permitted_alphabet_4(const void *sptr) { + /* The underlying type is IA5String */ + const IA5String_t *st = (const IA5String_t *)sptr; + const uint8_t *ch = st->buf; + const uint8_t *end = ch + st->size; + + for(; ch < end; ch++) { + uint8_t cv = *ch; + if(!(cv <= 127UL)) return -1; + } + return 0; +} + +static int +memb_appProvider_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const IA5String_t *st = (const IA5String_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size >= 1UL && size <= 24UL) + && !check_permitted_alphabet_2(st)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_appName_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const IA5String_t *st = (const IA5String_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size >= 1UL && size <= 32UL) + && !check_permitted_alphabet_3(st)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_appVersion_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const IA5String_t *st = (const IA5String_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size >= 1UL && size <= 8UL) + && !check_permitted_alphabet_4(st)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_appProvider_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_CONSTRAINED, 5, 5, 1, 24 } /* (SIZE(1..24)) */, + 0, 0 /* No PER character map necessary */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_appName_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER character map necessary */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_appVersion_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER character map necessary */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_ApplicationID_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ApplicationID, appProvider), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_IA5String, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_appProvider_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_appProvider_constraint_1 + }, + 0, 0, /* No default value */ + "appProvider" + }, + { ATF_NOFLAGS, 0, offsetof(struct ApplicationID, appName), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_IA5String, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_appName_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_appName_constraint_1 + }, + 0, 0, /* No default value */ + "appName" + }, + { ATF_POINTER, 1, offsetof(struct ApplicationID, appVersion), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_IA5String, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_appVersion_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_appVersion_constraint_1 + }, + 0, 0, /* No default value */ + "appVersion" + }, +}; +static const int asn_MAP_ApplicationID_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_ApplicationID_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ApplicationID_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* appProvider */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* appName */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* appVersion */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ApplicationID_specs_1 = { + sizeof(struct ApplicationID), + offsetof(struct ApplicationID, _asn_ctx), + asn_MAP_ApplicationID_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_ApplicationID_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ApplicationID = { + "ApplicationID", + "ApplicationID", + &asn_OP_SEQUENCE, + asn_DEF_ApplicationID_tags_1, + sizeof(asn_DEF_ApplicationID_tags_1) + /sizeof(asn_DEF_ApplicationID_tags_1[0]), /* 1 */ + asn_DEF_ApplicationID_tags_1, /* Same as above */ + sizeof(asn_DEF_ApplicationID_tags_1) + /sizeof(asn_DEF_ApplicationID_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ApplicationID_1, + 3, /* Elements count */ + &asn_SPC_ApplicationID_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/ApplicationID.h b/asn.1/supl_generated/ApplicationID.h new file mode 100644 index 00000000..d161997f --- /dev/null +++ b/asn.1/supl_generated/ApplicationID.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _ApplicationID_H_ +#define _ApplicationID_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* ApplicationID */ +typedef struct ApplicationID { + IA5String_t appProvider; + IA5String_t appName; + IA5String_t *appVersion; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ApplicationID_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ApplicationID; +extern asn_SEQUENCE_specifics_t asn_SPC_ApplicationID_specs_1; +extern asn_TYPE_member_t asn_MBR_ApplicationID_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ApplicationID_H_ */ +#include diff --git a/asn.1/supl_generated/AreaEventParams.c b/asn.1/supl_generated/AreaEventParams.c new file mode 100644 index 00000000..22fdae37 --- /dev/null +++ b/asn.1/supl_generated/AreaEventParams.c @@ -0,0 +1,336 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "AreaEventParams.h" + +#include "RepeatedReportingParams.h" +#include "GeographicTargetAreaList.h" +#include "AreaIdList.h" +static int +memb_startTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2678400L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stopTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 11318399L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_areaIdLists_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 32UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_areaIdLists_constr_8 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_startTime_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, 0, 2678400 } /* (0..2678400) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stopTime_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, 0, 11318399 } /* (0..11318399) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_areaIdLists_constr_8 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_areaIdLists_8[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_AreaIdList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_areaIdLists_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_areaIdLists_specs_8 = { + sizeof(struct AreaEventParams__areaIdLists), + offsetof(struct AreaEventParams__areaIdLists, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_areaIdLists_8 = { + "areaIdLists", + "areaIdLists", + &asn_OP_SEQUENCE_OF, + asn_DEF_areaIdLists_tags_8, + sizeof(asn_DEF_areaIdLists_tags_8) + /sizeof(asn_DEF_areaIdLists_tags_8[0]) - 1, /* 1 */ + asn_DEF_areaIdLists_tags_8, /* Same as above */ + sizeof(asn_DEF_areaIdLists_tags_8) + /sizeof(asn_DEF_areaIdLists_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_areaIdLists_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_areaIdLists_8, + 1, /* Single element */ + &asn_SPC_areaIdLists_specs_8 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_AreaEventParams_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AreaEventParams, areaEventType), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AreaEventType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "areaEventType" + }, + { ATF_NOFLAGS, 0, offsetof(struct AreaEventParams, locationEstimate), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationEstimate" + }, + { ATF_POINTER, 5, offsetof(struct AreaEventParams, repeatedReportingParams), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RepeatedReportingParams, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "repeatedReportingParams" + }, + { ATF_POINTER, 4, offsetof(struct AreaEventParams, startTime), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_startTime_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_startTime_constraint_1 + }, + 0, 0, /* No default value */ + "startTime" + }, + { ATF_POINTER, 3, offsetof(struct AreaEventParams, stopTime), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stopTime_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stopTime_constraint_1 + }, + 0, 0, /* No default value */ + "stopTime" + }, + { ATF_POINTER, 2, offsetof(struct AreaEventParams, geographicTargetAreaList), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GeographicTargetAreaList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "geographicTargetAreaList" + }, + { ATF_POINTER, 1, offsetof(struct AreaEventParams, areaIdLists), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + 0, + &asn_DEF_areaIdLists_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_areaIdLists_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_areaIdLists_constraint_1 + }, + 0, 0, /* No default value */ + "areaIdLists" + }, +}; +static const int asn_MAP_AreaEventParams_oms_1[] = { 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_AreaEventParams_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AreaEventParams_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* areaEventType */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* locationEstimate */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* repeatedReportingParams */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* startTime */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* stopTime */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* geographicTargetAreaList */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* areaIdLists */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AreaEventParams_specs_1 = { + sizeof(struct AreaEventParams), + offsetof(struct AreaEventParams, _asn_ctx), + asn_MAP_AreaEventParams_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_AreaEventParams_oms_1, /* Optional members */ + 5, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AreaEventParams = { + "AreaEventParams", + "AreaEventParams", + &asn_OP_SEQUENCE, + asn_DEF_AreaEventParams_tags_1, + sizeof(asn_DEF_AreaEventParams_tags_1) + /sizeof(asn_DEF_AreaEventParams_tags_1[0]), /* 1 */ + asn_DEF_AreaEventParams_tags_1, /* Same as above */ + sizeof(asn_DEF_AreaEventParams_tags_1) + /sizeof(asn_DEF_AreaEventParams_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AreaEventParams_1, + 7, /* Elements count */ + &asn_SPC_AreaEventParams_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/AreaEventParams.h b/asn.1/supl_generated/AreaEventParams.h new file mode 100644 index 00000000..964cb4ad --- /dev/null +++ b/asn.1/supl_generated/AreaEventParams.h @@ -0,0 +1,64 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _AreaEventParams_H_ +#define _AreaEventParams_H_ + + +#include + +/* Including external dependencies */ +#include "AreaEventType.h" +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct RepeatedReportingParams; +struct GeographicTargetAreaList; +struct AreaIdList; + +/* AreaEventParams */ +typedef struct AreaEventParams { + AreaEventType_t areaEventType; + BOOLEAN_t locationEstimate; + struct RepeatedReportingParams *repeatedReportingParams; /* OPTIONAL */ + long *startTime; /* OPTIONAL */ + long *stopTime; /* OPTIONAL */ + struct GeographicTargetAreaList *geographicTargetAreaList; /* OPTIONAL */ + struct AreaEventParams__areaIdLists { + A_SEQUENCE_OF(struct AreaIdList) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *areaIdLists; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} AreaEventParams_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_AreaEventParams; +extern asn_SEQUENCE_specifics_t asn_SPC_AreaEventParams_specs_1; +extern asn_TYPE_member_t asn_MBR_AreaEventParams_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _AreaEventParams_H_ */ +#include diff --git a/asn.1/supl_generated/AreaEventType.c b/asn.1/supl_generated/AreaEventType.c new file mode 100644 index 00000000..7a4bf57e --- /dev/null +++ b/asn.1/supl_generated/AreaEventType.c @@ -0,0 +1,69 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "AreaEventType.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AreaEventType_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_AreaEventType_value2enum_1[] = { + { 0, 12, "enteringArea" }, + { 1, 10, "insideArea" }, + { 2, 11, "outsideArea" }, + { 3, 11, "leavingArea" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_AreaEventType_enum2value_1[] = { + 0, /* enteringArea(0) */ + 1, /* insideArea(1) */ + 3, /* leavingArea(3) */ + 2 /* outsideArea(2) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_AreaEventType_specs_1 = { + asn_MAP_AreaEventType_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_AreaEventType_enum2value_1, /* N => "tag"; sorted by N */ + 4, /* Number of elements in the maps */ + 5, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_AreaEventType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AreaEventType = { + "AreaEventType", + "AreaEventType", + &asn_OP_NativeEnumerated, + asn_DEF_AreaEventType_tags_1, + sizeof(asn_DEF_AreaEventType_tags_1) + /sizeof(asn_DEF_AreaEventType_tags_1[0]), /* 1 */ + asn_DEF_AreaEventType_tags_1, /* Same as above */ + sizeof(asn_DEF_AreaEventType_tags_1) + /sizeof(asn_DEF_AreaEventType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AreaEventType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_AreaEventType_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AreaEventType.h b/asn.1/supl_generated/AreaEventType.h similarity index 79% rename from asn.1/generated/AreaEventType.h rename to asn.1/supl_generated/AreaEventType.h index fa75e810..6ba5462c 100644 --- a/asn.1/generated/AreaEventType.h +++ b/asn.1/supl_generated/AreaEventType.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _AreaEventType_H_ @@ -37,12 +37,10 @@ extern asn_per_constraints_t asn_PER_type_AreaEventType_constr_1; extern asn_TYPE_descriptor_t asn_DEF_AreaEventType; extern const asn_INTEGER_specifics_t asn_SPC_AreaEventType_specs_1; asn_struct_free_f AreaEventType_free; -asn_struct_print_f AreaEventType_print; asn_constr_check_f AreaEventType_constraint; -ber_type_decoder_f AreaEventType_decode_ber; -der_type_encoder_f AreaEventType_encode_der; xer_type_decoder_f AreaEventType_decode_xer; xer_type_encoder_f AreaEventType_encode_xer; +jer_type_encoder_f AreaEventType_encode_jer; per_type_decoder_f AreaEventType_decode_uper; per_type_encoder_f AreaEventType_encode_uper; diff --git a/asn.1/supl_generated/AreaId.c b/asn.1/supl_generated/AreaId.c new file mode 100644 index 00000000..afa7a929 --- /dev/null +++ b/asn.1/supl_generated/AreaId.c @@ -0,0 +1,196 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "AreaId.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AreaId_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 7 } /* (0..7,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_AreaId_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AreaId, choice.gSMAreaId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GSMAreaId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gSMAreaId" + }, + { ATF_NOFLAGS, 0, offsetof(struct AreaId, choice.wCDMAAreaId), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WCDMAAreaId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wCDMAAreaId" + }, + { ATF_NOFLAGS, 0, offsetof(struct AreaId, choice.cDMAAreaId), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CDMAAreaId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cDMAAreaId" + }, + { ATF_NOFLAGS, 0, offsetof(struct AreaId, choice.hRPDAreaId), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HRPDAreaId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "hRPDAreaId" + }, + { ATF_NOFLAGS, 0, offsetof(struct AreaId, choice.uMBAreaId), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UMBAreaId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "uMBAreaId" + }, + { ATF_NOFLAGS, 0, offsetof(struct AreaId, choice.lTEAreaId), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LTEAreaId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lTEAreaId" + }, + { ATF_NOFLAGS, 0, offsetof(struct AreaId, choice.wLANAreaId), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WLANAreaId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wLANAreaId" + }, + { ATF_NOFLAGS, 0, offsetof(struct AreaId, choice.wiMAXAreaId), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WimaxAreaId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wiMAXAreaId" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_AreaId_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gSMAreaId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* wCDMAAreaId */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cDMAAreaId */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* hRPDAreaId */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* uMBAreaId */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* lTEAreaId */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* wLANAreaId */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* wiMAXAreaId */ +}; +asn_CHOICE_specifics_t asn_SPC_AreaId_specs_1 = { + sizeof(struct AreaId), + offsetof(struct AreaId, _asn_ctx), + offsetof(struct AreaId, present), + sizeof(((struct AreaId *)0)->present), + asn_MAP_AreaId_tag2el_1, + 8, /* Count of tags in the map */ + 0, 0, + 8 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_AreaId = { + "AreaId", + "AreaId", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AreaId_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_AreaId_1, + 8, /* Elements count */ + &asn_SPC_AreaId_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AreaId.h b/asn.1/supl_generated/AreaId.h similarity index 86% rename from asn.1/generated/AreaId.h rename to asn.1/supl_generated/AreaId.h index 97a450a6..88c670d4 100644 --- a/asn.1/generated/AreaId.h +++ b/asn.1/supl_generated/AreaId.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _AreaId_H_ diff --git a/asn.1/supl_generated/AreaIdList.c b/asn.1/supl_generated/AreaIdList.c new file mode 100644 index 00000000..c613931e --- /dev/null +++ b/asn.1/supl_generated/AreaIdList.c @@ -0,0 +1,105 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "AreaIdList.h" + +#include "GeoAreaMappingList.h" +asn_TYPE_member_t asn_MBR_AreaIdList_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AreaIdList, areaIdSet), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AreaIdSet, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "areaIdSet" + }, + { ATF_POINTER, 2, offsetof(struct AreaIdList, areaIdSetType), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AreaIdSetType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "areaIdSetType" + }, + { ATF_POINTER, 1, offsetof(struct AreaIdList, geoAreaMappingList), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GeoAreaMappingList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "geoAreaMappingList" + }, +}; +static const int asn_MAP_AreaIdList_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_AreaIdList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AreaIdList_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* areaIdSet */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* areaIdSetType */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* geoAreaMappingList */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AreaIdList_specs_1 = { + sizeof(struct AreaIdList), + offsetof(struct AreaIdList, _asn_ctx), + asn_MAP_AreaIdList_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_AreaIdList_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AreaIdList = { + "AreaIdList", + "AreaIdList", + &asn_OP_SEQUENCE, + asn_DEF_AreaIdList_tags_1, + sizeof(asn_DEF_AreaIdList_tags_1) + /sizeof(asn_DEF_AreaIdList_tags_1[0]), /* 1 */ + asn_DEF_AreaIdList_tags_1, /* Same as above */ + sizeof(asn_DEF_AreaIdList_tags_1) + /sizeof(asn_DEF_AreaIdList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AreaIdList_1, + 3, /* Elements count */ + &asn_SPC_AreaIdList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/AreaIdList.h b/asn.1/supl_generated/AreaIdList.h new file mode 100644 index 00000000..823568aa --- /dev/null +++ b/asn.1/supl_generated/AreaIdList.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _AreaIdList_H_ +#define _AreaIdList_H_ + + +#include + +/* Including external dependencies */ +#include "AreaIdSet.h" +#include "AreaIdSetType.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GeoAreaMappingList; + +/* AreaIdList */ +typedef struct AreaIdList { + AreaIdSet_t areaIdSet; + AreaIdSetType_t *areaIdSetType; /* OPTIONAL */ + struct GeoAreaMappingList *geoAreaMappingList; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} AreaIdList_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_AreaIdList; +extern asn_SEQUENCE_specifics_t asn_SPC_AreaIdList_specs_1; +extern asn_TYPE_member_t asn_MBR_AreaIdList_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _AreaIdList_H_ */ +#include diff --git a/asn.1/supl_generated/AreaIdSet.c b/asn.1/supl_generated/AreaIdSet.c new file mode 100644 index 00000000..35ad59e9 --- /dev/null +++ b/asn.1/supl_generated/AreaIdSet.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "AreaIdSet.h" + +#include "AreaId.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AreaIdSet_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (SIZE(1..256)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_AreaIdSet_1[] = { + { ATF_POINTER, 0, 0, + -1 /* Ambiguous tag (CHOICE?) */, + 0, + &asn_DEF_AreaId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_AreaIdSet_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_AreaIdSet_specs_1 = { + sizeof(struct AreaIdSet), + offsetof(struct AreaIdSet, _asn_ctx), + 2, /* XER encoding is XMLValueList */ +}; +asn_TYPE_descriptor_t asn_DEF_AreaIdSet = { + "AreaIdSet", + "AreaIdSet", + &asn_OP_SEQUENCE_OF, + asn_DEF_AreaIdSet_tags_1, + sizeof(asn_DEF_AreaIdSet_tags_1) + /sizeof(asn_DEF_AreaIdSet_tags_1[0]), /* 1 */ + asn_DEF_AreaIdSet_tags_1, /* Same as above */ + sizeof(asn_DEF_AreaIdSet_tags_1) + /sizeof(asn_DEF_AreaIdSet_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AreaIdSet_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_AreaIdSet_1, + 1, /* Single element */ + &asn_SPC_AreaIdSet_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AreaIdSet.h b/asn.1/supl_generated/AreaIdSet.h similarity index 77% rename from asn.1/generated/AreaIdSet.h rename to asn.1/supl_generated/AreaIdSet.h index 7fc9312f..f0f2a87d 100644 --- a/asn.1/generated/AreaIdSet.h +++ b/asn.1/supl_generated/AreaIdSet.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _AreaIdSet_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_AreaIdSet_constr_1; } #endif -/* Referred external types */ -#include "AreaId.h" - #endif /* _AreaIdSet_H_ */ #include diff --git a/asn.1/supl_generated/AreaIdSetType.c b/asn.1/supl_generated/AreaIdSetType.c new file mode 100644 index 00000000..f2af34ee --- /dev/null +++ b/asn.1/supl_generated/AreaIdSetType.c @@ -0,0 +1,65 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "AreaIdSetType.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AreaIdSetType_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_AreaIdSetType_value2enum_1[] = { + { 0, 6, "border" }, + { 1, 6, "within" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_AreaIdSetType_enum2value_1[] = { + 0, /* border(0) */ + 1 /* within(1) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_AreaIdSetType_specs_1 = { + asn_MAP_AreaIdSetType_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_AreaIdSetType_enum2value_1, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_AreaIdSetType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AreaIdSetType = { + "AreaIdSetType", + "AreaIdSetType", + &asn_OP_NativeEnumerated, + asn_DEF_AreaIdSetType_tags_1, + sizeof(asn_DEF_AreaIdSetType_tags_1) + /sizeof(asn_DEF_AreaIdSetType_tags_1[0]), /* 1 */ + asn_DEF_AreaIdSetType_tags_1, /* Same as above */ + sizeof(asn_DEF_AreaIdSetType_tags_1) + /sizeof(asn_DEF_AreaIdSetType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AreaIdSetType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_AreaIdSetType_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/AreaIdSetType.h b/asn.1/supl_generated/AreaIdSetType.h similarity index 77% rename from asn.1/generated/AreaIdSetType.h rename to asn.1/supl_generated/AreaIdSetType.h index 6ee8e284..6542dc17 100644 --- a/asn.1/generated/AreaIdSetType.h +++ b/asn.1/supl_generated/AreaIdSetType.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _AreaIdSetType_H_ @@ -35,12 +35,10 @@ extern asn_per_constraints_t asn_PER_type_AreaIdSetType_constr_1; extern asn_TYPE_descriptor_t asn_DEF_AreaIdSetType; extern const asn_INTEGER_specifics_t asn_SPC_AreaIdSetType_specs_1; asn_struct_free_f AreaIdSetType_free; -asn_struct_print_f AreaIdSetType_print; asn_constr_check_f AreaIdSetType_constraint; -ber_type_decoder_f AreaIdSetType_decode_ber; -der_type_encoder_f AreaIdSetType_encode_der; xer_type_decoder_f AreaIdSetType_decode_xer; xer_type_encoder_f AreaIdSetType_encode_xer; +jer_type_encoder_f AreaIdSetType_encode_jer; per_type_decoder_f AreaIdSetType_decode_uper; per_type_encoder_f AreaIdSetType_encode_uper; diff --git a/asn.1/supl_generated/BasicProtectionParams.c b/asn.1/supl_generated/BasicProtectionParams.c new file mode 100644 index 00000000..0b175664 --- /dev/null +++ b/asn.1/supl_generated/BasicProtectionParams.c @@ -0,0 +1,205 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "BasicProtectionParams.h" + +static int +memb_keyIdentifier_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_basicReplayCounter_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_basicMAC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 32UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_keyIdentifier_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_basicReplayCounter_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_basicMAC_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 32, 32 } /* (SIZE(32..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BasicProtectionParams_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BasicProtectionParams, keyIdentifier), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OCTET_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_keyIdentifier_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_keyIdentifier_constraint_1 + }, + 0, 0, /* No default value */ + "keyIdentifier" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicProtectionParams, basicReplayCounter), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_basicReplayCounter_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_basicReplayCounter_constraint_1 + }, + 0, 0, /* No default value */ + "basicReplayCounter" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicProtectionParams, basicMAC), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_basicMAC_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_basicMAC_constraint_1 + }, + 0, 0, /* No default value */ + "basicMAC" + }, +}; +static const ber_tlv_tag_t asn_DEF_BasicProtectionParams_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BasicProtectionParams_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* keyIdentifier */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* basicReplayCounter */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* basicMAC */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BasicProtectionParams_specs_1 = { + sizeof(struct BasicProtectionParams), + offsetof(struct BasicProtectionParams, _asn_ctx), + asn_MAP_BasicProtectionParams_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BasicProtectionParams = { + "BasicProtectionParams", + "BasicProtectionParams", + &asn_OP_SEQUENCE, + asn_DEF_BasicProtectionParams_tags_1, + sizeof(asn_DEF_BasicProtectionParams_tags_1) + /sizeof(asn_DEF_BasicProtectionParams_tags_1[0]), /* 1 */ + asn_DEF_BasicProtectionParams_tags_1, /* Same as above */ + sizeof(asn_DEF_BasicProtectionParams_tags_1) + /sizeof(asn_DEF_BasicProtectionParams_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BasicProtectionParams_1, + 3, /* Elements count */ + &asn_SPC_BasicProtectionParams_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/BasicProtectionParams.h b/asn.1/supl_generated/BasicProtectionParams.h similarity index 79% rename from asn.1/generated/BasicProtectionParams.h rename to asn.1/supl_generated/BasicProtectionParams.h index 581fde59..470553d8 100644 --- a/asn.1/generated/BasicProtectionParams.h +++ b/asn.1/supl_generated/BasicProtectionParams.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _BasicProtectionParams_H_ diff --git a/asn.1/supl_generated/BatchRepCap.c b/asn.1/supl_generated/BatchRepCap.c new file mode 100644 index 00000000..0dccc7d3 --- /dev/null +++ b/asn.1/supl_generated/BatchRepCap.c @@ -0,0 +1,186 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "BatchRepCap.h" + +static int +memb_max_num_positions_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1024L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_max_num_measurements_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1024L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_max_num_positions_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (1..1024) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_max_num_measurements_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (1..1024) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BatchRepCap_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BatchRepCap, report_position), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "report-position" + }, + { ATF_NOFLAGS, 0, offsetof(struct BatchRepCap, report_measurements), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "report-measurements" + }, + { ATF_POINTER, 2, offsetof(struct BatchRepCap, max_num_positions), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_max_num_positions_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_max_num_positions_constraint_1 + }, + 0, 0, /* No default value */ + "max-num-positions" + }, + { ATF_POINTER, 1, offsetof(struct BatchRepCap, max_num_measurements), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_max_num_measurements_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_max_num_measurements_constraint_1 + }, + 0, 0, /* No default value */ + "max-num-measurements" + }, +}; +static const int asn_MAP_BatchRepCap_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_BatchRepCap_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BatchRepCap_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* report-position */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* report-measurements */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* max-num-positions */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* max-num-measurements */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BatchRepCap_specs_1 = { + sizeof(struct BatchRepCap), + offsetof(struct BatchRepCap, _asn_ctx), + asn_MAP_BatchRepCap_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_BatchRepCap_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BatchRepCap = { + "BatchRepCap", + "BatchRepCap", + &asn_OP_SEQUENCE, + asn_DEF_BatchRepCap_tags_1, + sizeof(asn_DEF_BatchRepCap_tags_1) + /sizeof(asn_DEF_BatchRepCap_tags_1[0]), /* 1 */ + asn_DEF_BatchRepCap_tags_1, /* Same as above */ + sizeof(asn_DEF_BatchRepCap_tags_1) + /sizeof(asn_DEF_BatchRepCap_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BatchRepCap_1, + 4, /* Elements count */ + &asn_SPC_BatchRepCap_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/BatchRepCap.h b/asn.1/supl_generated/BatchRepCap.h new file mode 100644 index 00000000..e46803fa --- /dev/null +++ b/asn.1/supl_generated/BatchRepCap.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _BatchRepCap_H_ +#define _BatchRepCap_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* BatchRepCap */ +typedef struct BatchRepCap { + BOOLEAN_t report_position; + BOOLEAN_t report_measurements; + long *max_num_positions; /* OPTIONAL */ + long *max_num_measurements; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BatchRepCap_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BatchRepCap; +extern asn_SEQUENCE_specifics_t asn_SPC_BatchRepCap_specs_1; +extern asn_TYPE_member_t asn_MBR_BatchRepCap_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BatchRepCap_H_ */ +#include diff --git a/asn.1/supl_generated/BatchRepConditions.c b/asn.1/supl_generated/BatchRepConditions.c new file mode 100644 index 00000000..938ee8e3 --- /dev/null +++ b/asn.1/supl_generated/BatchRepConditions.c @@ -0,0 +1,170 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-RESPONSE" + * found in "src/SUPL-TRIGGERED-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "BatchRepConditions.h" + +static int +memb_num_interval_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1024L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_num_minutes_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 2048L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_num_interval_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (1..1024) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_num_minutes_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 1, 2048 } /* (1..2048) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_BatchRepConditions_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BatchRepConditions_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BatchRepConditions, choice.num_interval), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_num_interval_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_num_interval_constraint_1 + }, + 0, 0, /* No default value */ + "num-interval" + }, + { ATF_NOFLAGS, 0, offsetof(struct BatchRepConditions, choice.num_minutes), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_num_minutes_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_num_minutes_constraint_1 + }, + 0, 0, /* No default value */ + "num-minutes" + }, + { ATF_NOFLAGS, 0, offsetof(struct BatchRepConditions, choice.endofsession), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "endofsession" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_BatchRepConditions_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* num-interval */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* num-minutes */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* endofsession */ +}; +asn_CHOICE_specifics_t asn_SPC_BatchRepConditions_specs_1 = { + sizeof(struct BatchRepConditions), + offsetof(struct BatchRepConditions, _asn_ctx), + offsetof(struct BatchRepConditions, present), + sizeof(((struct BatchRepConditions *)0)->present), + asn_MAP_BatchRepConditions_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, + 3 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_BatchRepConditions = { + "BatchRepConditions", + "BatchRepConditions", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_BatchRepConditions_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_BatchRepConditions_1, + 3, /* Elements count */ + &asn_SPC_BatchRepConditions_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/BatchRepConditions.h b/asn.1/supl_generated/BatchRepConditions.h similarity index 84% rename from asn.1/generated/BatchRepConditions.h rename to asn.1/supl_generated/BatchRepConditions.h index 72d0614e..f351b592 100644 --- a/asn.1/generated/BatchRepConditions.h +++ b/asn.1/supl_generated/BatchRepConditions.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-TRIGGERED-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-TRIGGERED-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _BatchRepConditions_H_ diff --git a/asn.1/supl_generated/BatchRepType.c b/asn.1/supl_generated/BatchRepType.c new file mode 100644 index 00000000..e7b80993 --- /dev/null +++ b/asn.1/supl_generated/BatchRepType.c @@ -0,0 +1,122 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-RESPONSE" + * found in "src/SUPL-TRIGGERED-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "BatchRepType.h" + +asn_TYPE_member_t asn_MBR_BatchRepType_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BatchRepType, reportPosition), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reportPosition" + }, + { ATF_NOFLAGS, 0, offsetof(struct BatchRepType, reportMeasurements), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reportMeasurements" + }, + { ATF_NOFLAGS, 0, offsetof(struct BatchRepType, intermediateReports), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "intermediateReports" + }, + { ATF_POINTER, 1, offsetof(struct BatchRepType, discardOldest), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "discardOldest" + }, +}; +static const int asn_MAP_BatchRepType_oms_1[] = { 3 }; +static const ber_tlv_tag_t asn_DEF_BatchRepType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BatchRepType_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* reportPosition */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* reportMeasurements */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* intermediateReports */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* discardOldest */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BatchRepType_specs_1 = { + sizeof(struct BatchRepType), + offsetof(struct BatchRepType, _asn_ctx), + asn_MAP_BatchRepType_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_BatchRepType_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BatchRepType = { + "BatchRepType", + "BatchRepType", + &asn_OP_SEQUENCE, + asn_DEF_BatchRepType_tags_1, + sizeof(asn_DEF_BatchRepType_tags_1) + /sizeof(asn_DEF_BatchRepType_tags_1[0]), /* 1 */ + asn_DEF_BatchRepType_tags_1, /* Same as above */ + sizeof(asn_DEF_BatchRepType_tags_1) + /sizeof(asn_DEF_BatchRepType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BatchRepType_1, + 4, /* Elements count */ + &asn_SPC_BatchRepType_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/BatchRepType.h b/asn.1/supl_generated/BatchRepType.h similarity index 75% rename from asn.1/generated/BatchRepType.h rename to asn.1/supl_generated/BatchRepType.h index 0e3eb3e4..18e253cb 100644 --- a/asn.1/generated/BatchRepType.h +++ b/asn.1/supl_generated/BatchRepType.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-TRIGGERED-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-TRIGGERED-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _BatchRepType_H_ @@ -24,7 +24,7 @@ typedef struct BatchRepType { BOOLEAN_t reportPosition; BOOLEAN_t reportMeasurements; BOOLEAN_t intermediateReports; - BOOLEAN_t *discardOldest /* OPTIONAL */; + BOOLEAN_t *discardOldest; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/supl_generated/CDMAAreaId.c b/asn.1/supl_generated/CDMAAreaId.c new file mode 100644 index 00000000..466792ef --- /dev/null +++ b/asn.1/supl_generated/CDMAAreaId.c @@ -0,0 +1,200 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "CDMAAreaId.h" + +static int +memb_refSID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refNID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refBASEID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refSID_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refNID_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refBASEID_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_CDMAAreaId_1[] = { + { ATF_POINTER, 3, offsetof(struct CDMAAreaId, refSID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refSID_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refSID_constraint_1 + }, + 0, 0, /* No default value */ + "refSID" + }, + { ATF_POINTER, 2, offsetof(struct CDMAAreaId, refNID), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refNID_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refNID_constraint_1 + }, + 0, 0, /* No default value */ + "refNID" + }, + { ATF_POINTER, 1, offsetof(struct CDMAAreaId, refBASEID), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refBASEID_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refBASEID_constraint_1 + }, + 0, 0, /* No default value */ + "refBASEID" + }, +}; +static const int asn_MAP_CDMAAreaId_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_CDMAAreaId_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CDMAAreaId_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refSID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refNID */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* refBASEID */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CDMAAreaId_specs_1 = { + sizeof(struct CDMAAreaId), + offsetof(struct CDMAAreaId, _asn_ctx), + asn_MAP_CDMAAreaId_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_CDMAAreaId_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CDMAAreaId = { + "CDMAAreaId", + "CDMAAreaId", + &asn_OP_SEQUENCE, + asn_DEF_CDMAAreaId_tags_1, + sizeof(asn_DEF_CDMAAreaId_tags_1) + /sizeof(asn_DEF_CDMAAreaId_tags_1[0]), /* 1 */ + asn_DEF_CDMAAreaId_tags_1, /* Same as above */ + sizeof(asn_DEF_CDMAAreaId_tags_1) + /sizeof(asn_DEF_CDMAAreaId_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CDMAAreaId_1, + 3, /* Elements count */ + &asn_SPC_CDMAAreaId_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/CDMAAreaId.h b/asn.1/supl_generated/CDMAAreaId.h new file mode 100644 index 00000000..05cc3541 --- /dev/null +++ b/asn.1/supl_generated/CDMAAreaId.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _CDMAAreaId_H_ +#define _CDMAAreaId_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* CDMAAreaId */ +typedef struct CDMAAreaId { + long *refSID; /* OPTIONAL */ + long *refNID; /* OPTIONAL */ + long *refBASEID; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CDMAAreaId_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CDMAAreaId; +extern asn_SEQUENCE_specifics_t asn_SPC_CDMAAreaId_specs_1; +extern asn_TYPE_member_t asn_MBR_CDMAAreaId_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _CDMAAreaId_H_ */ +#include diff --git a/asn.1/supl_generated/CPICH-Ec-N0.c b/asn.1/supl_generated/CPICH-Ec-N0.c new file mode 100644 index 00000000..48c3659f --- /dev/null +++ b/asn.1/supl_generated/CPICH-Ec-N0.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "CPICH-Ec-N0.h" + +int +CPICH_Ec_N0_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CPICH_Ec_N0_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_CPICH_Ec_N0_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CPICH_Ec_N0 = { + "CPICH-Ec-N0", + "CPICH-Ec-N0", + &asn_OP_NativeInteger, + asn_DEF_CPICH_Ec_N0_tags_1, + sizeof(asn_DEF_CPICH_Ec_N0_tags_1) + /sizeof(asn_DEF_CPICH_Ec_N0_tags_1[0]), /* 1 */ + asn_DEF_CPICH_Ec_N0_tags_1, /* Same as above */ + sizeof(asn_DEF_CPICH_Ec_N0_tags_1) + /sizeof(asn_DEF_CPICH_Ec_N0_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CPICH_Ec_N0_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CPICH_Ec_N0_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/supl_generated/CPICH-Ec-N0.h b/asn.1/supl_generated/CPICH-Ec-N0.h new file mode 100644 index 00000000..7e444da3 --- /dev/null +++ b/asn.1/supl_generated/CPICH-Ec-N0.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _CPICH_Ec_N0_H_ +#define _CPICH_Ec_N0_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* CPICH-Ec-N0 */ +typedef long CPICH_Ec_N0_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CPICH_Ec_N0_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CPICH_Ec_N0; +asn_struct_free_f CPICH_Ec_N0_free; +asn_constr_check_f CPICH_Ec_N0_constraint; +xer_type_decoder_f CPICH_Ec_N0_decode_xer; +xer_type_encoder_f CPICH_Ec_N0_encode_xer; +jer_type_encoder_f CPICH_Ec_N0_encode_jer; +per_type_decoder_f CPICH_Ec_N0_decode_uper; +per_type_encoder_f CPICH_Ec_N0_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CPICH_Ec_N0_H_ */ +#include diff --git a/asn.1/supl_generated/CPICH-RSCP.c b/asn.1/supl_generated/CPICH-RSCP.c new file mode 100644 index 00000000..59a65def --- /dev/null +++ b/asn.1/supl_generated/CPICH-RSCP.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "CPICH-RSCP.h" + +int +CPICH_RSCP_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CPICH_RSCP_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_CPICH_RSCP_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CPICH_RSCP = { + "CPICH-RSCP", + "CPICH-RSCP", + &asn_OP_NativeInteger, + asn_DEF_CPICH_RSCP_tags_1, + sizeof(asn_DEF_CPICH_RSCP_tags_1) + /sizeof(asn_DEF_CPICH_RSCP_tags_1[0]), /* 1 */ + asn_DEF_CPICH_RSCP_tags_1, /* Same as above */ + sizeof(asn_DEF_CPICH_RSCP_tags_1) + /sizeof(asn_DEF_CPICH_RSCP_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CPICH_RSCP_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CPICH_RSCP_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/supl_generated/CPICH-RSCP.h b/asn.1/supl_generated/CPICH-RSCP.h new file mode 100644 index 00000000..0684bada --- /dev/null +++ b/asn.1/supl_generated/CPICH-RSCP.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _CPICH_RSCP_H_ +#define _CPICH_RSCP_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* CPICH-RSCP */ +typedef long CPICH_RSCP_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CPICH_RSCP_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CPICH_RSCP; +asn_struct_free_f CPICH_RSCP_free; +asn_constr_check_f CPICH_RSCP_constraint; +xer_type_decoder_f CPICH_RSCP_decode_xer; +xer_type_encoder_f CPICH_RSCP_encode_xer; +jer_type_encoder_f CPICH_RSCP_encode_jer; +per_type_decoder_f CPICH_RSCP_decode_uper; +per_type_encoder_f CPICH_RSCP_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CPICH_RSCP_H_ */ +#include diff --git a/asn.1/supl_generated/CauseCode.c b/asn.1/supl_generated/CauseCode.c new file mode 100644 index 00000000..2a7939a7 --- /dev/null +++ b/asn.1/supl_generated/CauseCode.c @@ -0,0 +1,67 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "CauseCode.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CauseCode_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_CauseCode_value2enum_1[] = { + { 0, 29, "servingNetWorkNotInAreaIdList" }, + { 1, 22, "sETCapabilitiesChanged" }, + { 2, 14, "noSUPLCoverage" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_CauseCode_enum2value_1[] = { + 2, /* noSUPLCoverage(2) */ + 1, /* sETCapabilitiesChanged(1) */ + 0 /* servingNetWorkNotInAreaIdList(0) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_CauseCode_specs_1 = { + asn_MAP_CauseCode_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_CauseCode_enum2value_1, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 4, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_CauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CauseCode = { + "CauseCode", + "CauseCode", + &asn_OP_NativeEnumerated, + asn_DEF_CauseCode_tags_1, + sizeof(asn_DEF_CauseCode_tags_1) + /sizeof(asn_DEF_CauseCode_tags_1[0]), /* 1 */ + asn_DEF_CauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_CauseCode_tags_1) + /sizeof(asn_DEF_CauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_CauseCode_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/CauseCode.h b/asn.1/supl_generated/CauseCode.h similarity index 78% rename from asn.1/generated/CauseCode.h rename to asn.1/supl_generated/CauseCode.h index 64e2c4e6..8aa969d9 100644 --- a/asn.1/generated/CauseCode.h +++ b/asn.1/supl_generated/CauseCode.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _CauseCode_H_ @@ -36,12 +36,10 @@ extern asn_per_constraints_t asn_PER_type_CauseCode_constr_1; extern asn_TYPE_descriptor_t asn_DEF_CauseCode; extern const asn_INTEGER_specifics_t asn_SPC_CauseCode_specs_1; asn_struct_free_f CauseCode_free; -asn_struct_print_f CauseCode_print; asn_constr_check_f CauseCode_constraint; -ber_type_decoder_f CauseCode_decode_ber; -der_type_encoder_f CauseCode_encode_der; xer_type_decoder_f CauseCode_decode_xer; xer_type_encoder_f CauseCode_encode_xer; +jer_type_encoder_f CauseCode_encode_jer; per_type_decoder_f CauseCode_decode_uper; per_type_encoder_f CauseCode_encode_uper; diff --git a/asn.1/supl_generated/CdmaCellInformation.c b/asn.1/supl_generated/CdmaCellInformation.c new file mode 100644 index 00000000..0f3c1ea7 --- /dev/null +++ b/asn.1/supl_generated/CdmaCellInformation.c @@ -0,0 +1,448 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "CdmaCellInformation.h" + +static int +memb_refNID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refSID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refBASEID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refBASELAT_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4194303L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_reBASELONG_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refREFPN_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refWeekNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refSeconds_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4194303L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refNID_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refSID_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, 0, 32767 } /* (0..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refBASEID_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refBASELAT_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, 0, 4194303 } /* (0..4194303) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_reBASELONG_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refREFPN_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refWeekNumber_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refSeconds_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, 0, 4194303 } /* (0..4194303) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_CdmaCellInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CdmaCellInformation, refNID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refNID_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refNID_constraint_1 + }, + 0, 0, /* No default value */ + "refNID" + }, + { ATF_NOFLAGS, 0, offsetof(struct CdmaCellInformation, refSID), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refSID_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refSID_constraint_1 + }, + 0, 0, /* No default value */ + "refSID" + }, + { ATF_NOFLAGS, 0, offsetof(struct CdmaCellInformation, refBASEID), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refBASEID_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refBASEID_constraint_1 + }, + 0, 0, /* No default value */ + "refBASEID" + }, + { ATF_NOFLAGS, 0, offsetof(struct CdmaCellInformation, refBASELAT), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refBASELAT_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refBASELAT_constraint_1 + }, + 0, 0, /* No default value */ + "refBASELAT" + }, + { ATF_NOFLAGS, 0, offsetof(struct CdmaCellInformation, reBASELONG), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_reBASELONG_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_reBASELONG_constraint_1 + }, + 0, 0, /* No default value */ + "reBASELONG" + }, + { ATF_NOFLAGS, 0, offsetof(struct CdmaCellInformation, refREFPN), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refREFPN_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refREFPN_constraint_1 + }, + 0, 0, /* No default value */ + "refREFPN" + }, + { ATF_NOFLAGS, 0, offsetof(struct CdmaCellInformation, refWeekNumber), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refWeekNumber_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refWeekNumber_constraint_1 + }, + 0, 0, /* No default value */ + "refWeekNumber" + }, + { ATF_NOFLAGS, 0, offsetof(struct CdmaCellInformation, refSeconds), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refSeconds_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refSeconds_constraint_1 + }, + 0, 0, /* No default value */ + "refSeconds" + }, +}; +static const ber_tlv_tag_t asn_DEF_CdmaCellInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CdmaCellInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refNID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refSID */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* refBASEID */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* refBASELAT */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* reBASELONG */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* refREFPN */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* refWeekNumber */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* refSeconds */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CdmaCellInformation_specs_1 = { + sizeof(struct CdmaCellInformation), + offsetof(struct CdmaCellInformation, _asn_ctx), + asn_MAP_CdmaCellInformation_tag2el_1, + 8, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 8, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CdmaCellInformation = { + "CdmaCellInformation", + "CdmaCellInformation", + &asn_OP_SEQUENCE, + asn_DEF_CdmaCellInformation_tags_1, + sizeof(asn_DEF_CdmaCellInformation_tags_1) + /sizeof(asn_DEF_CdmaCellInformation_tags_1[0]), /* 1 */ + asn_DEF_CdmaCellInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_CdmaCellInformation_tags_1) + /sizeof(asn_DEF_CdmaCellInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CdmaCellInformation_1, + 8, /* Elements count */ + &asn_SPC_CdmaCellInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/CdmaCellInformation.h b/asn.1/supl_generated/CdmaCellInformation.h similarity index 80% rename from asn.1/generated/CdmaCellInformation.h rename to asn.1/supl_generated/CdmaCellInformation.h index bc7c6dba..b3bac89e 100644 --- a/asn.1/generated/CdmaCellInformation.h +++ b/asn.1/supl_generated/CdmaCellInformation.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _CdmaCellInformation_H_ diff --git a/asn.1/supl_generated/CellGlobalIdEUTRA.c b/asn.1/supl_generated/CellGlobalIdEUTRA.c new file mode 100644 index 00000000..9b093988 --- /dev/null +++ b/asn.1/supl_generated/CellGlobalIdEUTRA.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "CellGlobalIdEUTRA.h" + +asn_TYPE_member_t asn_MBR_CellGlobalIdEUTRA_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdEUTRA, plmn_Identity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PLMN_Identity, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "plmn-Identity" + }, + { ATF_NOFLAGS, 0, offsetof(struct CellGlobalIdEUTRA, cellIdentity), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CellIdentity, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellIdentity" + }, +}; +static const ber_tlv_tag_t asn_DEF_CellGlobalIdEUTRA_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CellGlobalIdEUTRA_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* plmn-Identity */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cellIdentity */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CellGlobalIdEUTRA_specs_1 = { + sizeof(struct CellGlobalIdEUTRA), + offsetof(struct CellGlobalIdEUTRA, _asn_ctx), + asn_MAP_CellGlobalIdEUTRA_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CellGlobalIdEUTRA = { + "CellGlobalIdEUTRA", + "CellGlobalIdEUTRA", + &asn_OP_SEQUENCE, + asn_DEF_CellGlobalIdEUTRA_tags_1, + sizeof(asn_DEF_CellGlobalIdEUTRA_tags_1) + /sizeof(asn_DEF_CellGlobalIdEUTRA_tags_1[0]), /* 1 */ + asn_DEF_CellGlobalIdEUTRA_tags_1, /* Same as above */ + sizeof(asn_DEF_CellGlobalIdEUTRA_tags_1) + /sizeof(asn_DEF_CellGlobalIdEUTRA_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CellGlobalIdEUTRA_1, + 2, /* Elements count */ + &asn_SPC_CellGlobalIdEUTRA_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/CellGlobalIdEUTRA.h b/asn.1/supl_generated/CellGlobalIdEUTRA.h similarity index 79% rename from asn.1/generated/CellGlobalIdEUTRA.h rename to asn.1/supl_generated/CellGlobalIdEUTRA.h index 5c515a32..e37e67b6 100644 --- a/asn.1/generated/CellGlobalIdEUTRA.h +++ b/asn.1/supl_generated/CellGlobalIdEUTRA.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _CellGlobalIdEUTRA_H_ diff --git a/asn.1/supl_generated/CellIdentity.c b/asn.1/supl_generated/CellIdentity.c new file mode 100644 index 00000000..daa35979 --- /dev/null +++ b/asn.1/supl_generated/CellIdentity.c @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "CellIdentity.h" + +int +CellIdentity_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 28UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using BIT_STRING, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CellIdentity_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 28, 28 } /* (SIZE(28..28)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_CellIdentity_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CellIdentity = { + "CellIdentity", + "CellIdentity", + &asn_OP_BIT_STRING, + asn_DEF_CellIdentity_tags_1, + sizeof(asn_DEF_CellIdentity_tags_1) + /sizeof(asn_DEF_CellIdentity_tags_1[0]), /* 1 */ + asn_DEF_CellIdentity_tags_1, /* Same as above */ + sizeof(asn_DEF_CellIdentity_tags_1) + /sizeof(asn_DEF_CellIdentity_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CellIdentity_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CellIdentity_constraint + }, + 0, 0, /* No members */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/CellIdentity.h b/asn.1/supl_generated/CellIdentity.h new file mode 100644 index 00000000..e8f1f853 --- /dev/null +++ b/asn.1/supl_generated/CellIdentity.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _CellIdentity_H_ +#define _CellIdentity_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* CellIdentity */ +typedef BIT_STRING_t CellIdentity_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CellIdentity_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CellIdentity; +asn_struct_free_f CellIdentity_free; +asn_constr_check_f CellIdentity_constraint; +xer_type_decoder_f CellIdentity_decode_xer; +xer_type_encoder_f CellIdentity_encode_xer; +jer_type_encoder_f CellIdentity_encode_jer; +per_type_decoder_f CellIdentity_decode_uper; +per_type_encoder_f CellIdentity_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CellIdentity_H_ */ +#include diff --git a/asn.1/supl_generated/CellInfo.c b/asn.1/supl_generated/CellInfo.c new file mode 100644 index 00000000..c021bfc4 --- /dev/null +++ b/asn.1/supl_generated/CellInfo.c @@ -0,0 +1,124 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "CellInfo.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CellInfo_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_CellInfo_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CellInfo, choice.gsmCell), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GsmCellInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gsmCell" + }, + { ATF_NOFLAGS, 0, offsetof(struct CellInfo, choice.wcdmaCell), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WcdmaCellInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wcdmaCell" + }, + { ATF_NOFLAGS, 0, offsetof(struct CellInfo, choice.cdmaCell), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CdmaCellInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cdmaCell" + }, + { ATF_NOFLAGS, 0, offsetof(struct CellInfo, choice.ver2_CellInfo_extension), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_Ver2_CellInfo_extension, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ver2-CellInfo-extension" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_CellInfo_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gsmCell */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* wcdmaCell */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cdmaCell */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ver2-CellInfo-extension */ +}; +asn_CHOICE_specifics_t asn_SPC_CellInfo_specs_1 = { + sizeof(struct CellInfo), + offsetof(struct CellInfo, _asn_ctx), + offsetof(struct CellInfo, present), + sizeof(((struct CellInfo *)0)->present), + asn_MAP_CellInfo_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, + 3 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_CellInfo = { + "CellInfo", + "CellInfo", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CellInfo_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_CellInfo_1, + 4, /* Elements count */ + &asn_SPC_CellInfo_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/CellInfo.h b/asn.1/supl_generated/CellInfo.h similarity index 85% rename from asn.1/generated/CellInfo.h rename to asn.1/supl_generated/CellInfo.h index 96d855ef..aa862ff7 100644 --- a/asn.1/generated/CellInfo.h +++ b/asn.1/supl_generated/CellInfo.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _CellInfo_H_ diff --git a/asn.1/supl_generated/CellMeasuredResults.c b/asn.1/supl_generated/CellMeasuredResults.c new file mode 100644 index 00000000..436de371 --- /dev/null +++ b/asn.1/supl_generated/CellMeasuredResults.c @@ -0,0 +1,447 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "CellMeasuredResults.h" + +#include "TimeslotISCP-List.h" +static int +memb_cellIdentity_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 268435455L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_modeSpecificInfo_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cellIdentity_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 28, -1, 0, 268435455 } /* (0..268435455) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_fdd_4[] = { + { ATF_NOFLAGS, 0, offsetof(struct CellMeasuredResults__modeSpecificInfo__fdd, primaryCPICH_Info), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PrimaryCPICH_Info, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "primaryCPICH-Info" + }, + { ATF_POINTER, 3, offsetof(struct CellMeasuredResults__modeSpecificInfo__fdd, cpich_Ec_N0), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CPICH_Ec_N0, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cpich-Ec-N0" + }, + { ATF_POINTER, 2, offsetof(struct CellMeasuredResults__modeSpecificInfo__fdd, cpich_RSCP), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CPICH_RSCP, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cpich-RSCP" + }, + { ATF_POINTER, 1, offsetof(struct CellMeasuredResults__modeSpecificInfo__fdd, pathloss), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Pathloss, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pathloss" + }, +}; +static const int asn_MAP_fdd_oms_4[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_fdd_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_fdd_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* primaryCPICH-Info */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cpich-Ec-N0 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cpich-RSCP */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* pathloss */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_fdd_specs_4 = { + sizeof(struct CellMeasuredResults__modeSpecificInfo__fdd), + offsetof(struct CellMeasuredResults__modeSpecificInfo__fdd, _asn_ctx), + asn_MAP_fdd_tag2el_4, + 4, /* Count of tags in the map */ + asn_MAP_fdd_oms_4, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fdd_4 = { + "fdd", + "fdd", + &asn_OP_SEQUENCE, + asn_DEF_fdd_tags_4, + sizeof(asn_DEF_fdd_tags_4) + /sizeof(asn_DEF_fdd_tags_4[0]) - 1, /* 1 */ + asn_DEF_fdd_tags_4, /* Same as above */ + sizeof(asn_DEF_fdd_tags_4) + /sizeof(asn_DEF_fdd_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_fdd_4, + 4, /* Elements count */ + &asn_SPC_fdd_specs_4 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_tdd_9[] = { + { ATF_NOFLAGS, 0, offsetof(struct CellMeasuredResults__modeSpecificInfo__tdd, cellParametersID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CellParametersID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellParametersID" + }, + { ATF_POINTER, 4, offsetof(struct CellMeasuredResults__modeSpecificInfo__tdd, proposedTGSN), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TGSN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "proposedTGSN" + }, + { ATF_POINTER, 3, offsetof(struct CellMeasuredResults__modeSpecificInfo__tdd, primaryCCPCH_RSCP), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PrimaryCCPCH_RSCP, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "primaryCCPCH-RSCP" + }, + { ATF_POINTER, 2, offsetof(struct CellMeasuredResults__modeSpecificInfo__tdd, pathloss), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Pathloss, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pathloss" + }, + { ATF_POINTER, 1, offsetof(struct CellMeasuredResults__modeSpecificInfo__tdd, timeslotISCP_List), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TimeslotISCP_List, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "timeslotISCP-List" + }, +}; +static const int asn_MAP_tdd_oms_9[] = { 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_tdd_tags_9[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_tdd_tag2el_9[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellParametersID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* proposedTGSN */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* primaryCCPCH-RSCP */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* pathloss */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* timeslotISCP-List */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_tdd_specs_9 = { + sizeof(struct CellMeasuredResults__modeSpecificInfo__tdd), + offsetof(struct CellMeasuredResults__modeSpecificInfo__tdd, _asn_ctx), + asn_MAP_tdd_tag2el_9, + 5, /* Count of tags in the map */ + asn_MAP_tdd_oms_9, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_tdd_9 = { + "tdd", + "tdd", + &asn_OP_SEQUENCE, + asn_DEF_tdd_tags_9, + sizeof(asn_DEF_tdd_tags_9) + /sizeof(asn_DEF_tdd_tags_9[0]) - 1, /* 1 */ + asn_DEF_tdd_tags_9, /* Same as above */ + sizeof(asn_DEF_tdd_tags_9) + /sizeof(asn_DEF_tdd_tags_9[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_tdd_9, + 5, /* Elements count */ + &asn_SPC_tdd_specs_9 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_modeSpecificInfo_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct CellMeasuredResults__modeSpecificInfo, choice.fdd), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_fdd_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fdd" + }, + { ATF_NOFLAGS, 0, offsetof(struct CellMeasuredResults__modeSpecificInfo, choice.tdd), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_tdd_9, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tdd" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_modeSpecificInfo_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */ +}; +static asn_CHOICE_specifics_t asn_SPC_modeSpecificInfo_specs_3 = { + sizeof(struct CellMeasuredResults__modeSpecificInfo), + offsetof(struct CellMeasuredResults__modeSpecificInfo, _asn_ctx), + offsetof(struct CellMeasuredResults__modeSpecificInfo, present), + sizeof(((struct CellMeasuredResults__modeSpecificInfo *)0)->present), + asn_MAP_modeSpecificInfo_tag2el_3, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_modeSpecificInfo_3 = { + "modeSpecificInfo", + "modeSpecificInfo", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_modeSpecificInfo_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_modeSpecificInfo_3, + 2, /* Elements count */ + &asn_SPC_modeSpecificInfo_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_CellMeasuredResults_1[] = { + { ATF_POINTER, 1, offsetof(struct CellMeasuredResults, cellIdentity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cellIdentity_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cellIdentity_constraint_1 + }, + 0, 0, /* No default value */ + "cellIdentity" + }, + { ATF_NOFLAGS, 0, offsetof(struct CellMeasuredResults, modeSpecificInfo), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_modeSpecificInfo_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "modeSpecificInfo" + }, +}; +static const int asn_MAP_CellMeasuredResults_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_CellMeasuredResults_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CellMeasuredResults_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellIdentity */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* modeSpecificInfo */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CellMeasuredResults_specs_1 = { + sizeof(struct CellMeasuredResults), + offsetof(struct CellMeasuredResults, _asn_ctx), + asn_MAP_CellMeasuredResults_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_CellMeasuredResults_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CellMeasuredResults = { + "CellMeasuredResults", + "CellMeasuredResults", + &asn_OP_SEQUENCE, + asn_DEF_CellMeasuredResults_tags_1, + sizeof(asn_DEF_CellMeasuredResults_tags_1) + /sizeof(asn_DEF_CellMeasuredResults_tags_1[0]), /* 1 */ + asn_DEF_CellMeasuredResults_tags_1, /* Same as above */ + sizeof(asn_DEF_CellMeasuredResults_tags_1) + /sizeof(asn_DEF_CellMeasuredResults_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CellMeasuredResults_1, + 2, /* Elements count */ + &asn_SPC_CellMeasuredResults_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/CellMeasuredResults.h b/asn.1/supl_generated/CellMeasuredResults.h similarity index 76% rename from asn.1/generated/CellMeasuredResults.h rename to asn.1/supl_generated/CellMeasuredResults.h index 9a5bee14..08e9f813 100644 --- a/asn.1/generated/CellMeasuredResults.h +++ b/asn.1/supl_generated/CellMeasuredResults.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _CellMeasuredResults_H_ @@ -39,25 +39,25 @@ struct TimeslotISCP_List; /* CellMeasuredResults */ typedef struct CellMeasuredResults { - long *cellIdentity /* OPTIONAL */; + long *cellIdentity; /* OPTIONAL */ struct CellMeasuredResults__modeSpecificInfo { CellMeasuredResults__modeSpecificInfo_PR present; union CellMeasuredResults__modeSpecificInfo_u { struct CellMeasuredResults__modeSpecificInfo__fdd { PrimaryCPICH_Info_t primaryCPICH_Info; - CPICH_Ec_N0_t *cpich_Ec_N0 /* OPTIONAL */; - CPICH_RSCP_t *cpich_RSCP /* OPTIONAL */; - Pathloss_t *pathloss /* OPTIONAL */; + CPICH_Ec_N0_t *cpich_Ec_N0; /* OPTIONAL */ + CPICH_RSCP_t *cpich_RSCP; /* OPTIONAL */ + Pathloss_t *pathloss; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } fdd; struct CellMeasuredResults__modeSpecificInfo__tdd { CellParametersID_t cellParametersID; - TGSN_t *proposedTGSN /* OPTIONAL */; - PrimaryCCPCH_RSCP_t *primaryCCPCH_RSCP /* OPTIONAL */; - Pathloss_t *pathloss /* OPTIONAL */; - struct TimeslotISCP_List *timeslotISCP_List /* OPTIONAL */; + TGSN_t *proposedTGSN; /* OPTIONAL */ + PrimaryCCPCH_RSCP_t *primaryCCPCH_RSCP; /* OPTIONAL */ + Pathloss_t *pathloss; /* OPTIONAL */ + struct TimeslotISCP_List *timeslotISCP_List; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -81,8 +81,5 @@ extern asn_TYPE_member_t asn_MBR_CellMeasuredResults_1[2]; } #endif -/* Referred external types */ -#include "TimeslotISCP-List.h" - #endif /* _CellMeasuredResults_H_ */ #include diff --git a/asn.1/supl_generated/CellMeasuredResultsList.c b/asn.1/supl_generated/CellMeasuredResultsList.c new file mode 100644 index 00000000..02463f62 --- /dev/null +++ b/asn.1/supl_generated/CellMeasuredResultsList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "CellMeasuredResultsList.h" + +#include "CellMeasuredResults.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CellMeasuredResultsList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_CellMeasuredResultsList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_CellMeasuredResults, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_CellMeasuredResultsList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_CellMeasuredResultsList_specs_1 = { + sizeof(struct CellMeasuredResultsList), + offsetof(struct CellMeasuredResultsList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_CellMeasuredResultsList = { + "CellMeasuredResultsList", + "CellMeasuredResultsList", + &asn_OP_SEQUENCE_OF, + asn_DEF_CellMeasuredResultsList_tags_1, + sizeof(asn_DEF_CellMeasuredResultsList_tags_1) + /sizeof(asn_DEF_CellMeasuredResultsList_tags_1[0]), /* 1 */ + asn_DEF_CellMeasuredResultsList_tags_1, /* Same as above */ + sizeof(asn_DEF_CellMeasuredResultsList_tags_1) + /sizeof(asn_DEF_CellMeasuredResultsList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CellMeasuredResultsList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_CellMeasuredResultsList_1, + 1, /* Single element */ + &asn_SPC_CellMeasuredResultsList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/CellMeasuredResultsList.h b/asn.1/supl_generated/CellMeasuredResultsList.h similarity index 80% rename from asn.1/generated/CellMeasuredResultsList.h rename to asn.1/supl_generated/CellMeasuredResultsList.h index d748d28c..7ffa5d53 100644 --- a/asn.1/generated/CellMeasuredResultsList.h +++ b/asn.1/supl_generated/CellMeasuredResultsList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _CellMeasuredResultsList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_CellMeasuredResultsList_constr_1; } #endif -/* Referred external types */ -#include "CellMeasuredResults.h" - #endif /* _CellMeasuredResultsList_H_ */ #include diff --git a/asn.1/supl_generated/CellParametersID.c b/asn.1/supl_generated/CellParametersID.c new file mode 100644 index 00000000..211981f2 --- /dev/null +++ b/asn.1/supl_generated/CellParametersID.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "CellParametersID.h" + +int +CellParametersID_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CellParametersID_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_CellParametersID_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CellParametersID = { + "CellParametersID", + "CellParametersID", + &asn_OP_NativeInteger, + asn_DEF_CellParametersID_tags_1, + sizeof(asn_DEF_CellParametersID_tags_1) + /sizeof(asn_DEF_CellParametersID_tags_1[0]), /* 1 */ + asn_DEF_CellParametersID_tags_1, /* Same as above */ + sizeof(asn_DEF_CellParametersID_tags_1) + /sizeof(asn_DEF_CellParametersID_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CellParametersID_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CellParametersID_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/supl_generated/CellParametersID.h b/asn.1/supl_generated/CellParametersID.h new file mode 100644 index 00000000..dd0a8f7a --- /dev/null +++ b/asn.1/supl_generated/CellParametersID.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _CellParametersID_H_ +#define _CellParametersID_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* CellParametersID */ +typedef long CellParametersID_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CellParametersID_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CellParametersID; +asn_struct_free_f CellParametersID_free; +asn_constr_check_f CellParametersID_constraint; +xer_type_decoder_f CellParametersID_decode_xer; +xer_type_encoder_f CellParametersID_encode_xer; +jer_type_encoder_f CellParametersID_encode_jer; +per_type_decoder_f CellParametersID_decode_uper; +per_type_encoder_f CellParametersID_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CellParametersID_H_ */ +#include diff --git a/asn.1/supl_generated/ChipRate.c b/asn.1/supl_generated/ChipRate.c new file mode 100644 index 00000000..fb80698a --- /dev/null +++ b/asn.1/supl_generated/ChipRate.c @@ -0,0 +1,67 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ChipRate.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ChipRate_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_ChipRate_value2enum_1[] = { + { 0, 6, "tdd128" }, + { 1, 6, "tdd384" }, + { 2, 6, "tdd768" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_ChipRate_enum2value_1[] = { + 0, /* tdd128(0) */ + 1, /* tdd384(1) */ + 2 /* tdd768(2) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_ChipRate_specs_1 = { + asn_MAP_ChipRate_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_ChipRate_enum2value_1, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 4, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ChipRate_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ChipRate = { + "ChipRate", + "ChipRate", + &asn_OP_NativeEnumerated, + asn_DEF_ChipRate_tags_1, + sizeof(asn_DEF_ChipRate_tags_1) + /sizeof(asn_DEF_ChipRate_tags_1[0]), /* 1 */ + asn_DEF_ChipRate_tags_1, /* Same as above */ + sizeof(asn_DEF_ChipRate_tags_1) + /sizeof(asn_DEF_ChipRate_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ChipRate_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ChipRate_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ChipRate.h b/asn.1/supl_generated/ChipRate.h similarity index 77% rename from asn.1/generated/ChipRate.h rename to asn.1/supl_generated/ChipRate.h index 639328c9..5f8893cb 100644 --- a/asn.1/generated/ChipRate.h +++ b/asn.1/supl_generated/ChipRate.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _ChipRate_H_ @@ -36,12 +36,10 @@ extern asn_per_constraints_t asn_PER_type_ChipRate_constr_1; extern asn_TYPE_descriptor_t asn_DEF_ChipRate; extern const asn_INTEGER_specifics_t asn_SPC_ChipRate_specs_1; asn_struct_free_f ChipRate_free; -asn_struct_print_f ChipRate_print; asn_constr_check_f ChipRate_constraint; -ber_type_decoder_f ChipRate_decode_ber; -der_type_encoder_f ChipRate_encode_der; xer_type_decoder_f ChipRate_decode_xer; xer_type_encoder_f ChipRate_encode_xer; +jer_type_encoder_f ChipRate_encode_jer; per_type_decoder_f ChipRate_decode_uper; per_type_encoder_f ChipRate_encode_uper; diff --git a/asn.1/supl_generated/CircularArea.c b/asn.1/supl_generated/CircularArea.c new file mode 100644 index 00000000..4323470c --- /dev/null +++ b/asn.1/supl_generated/CircularArea.c @@ -0,0 +1,218 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "CircularArea.h" + +static int +memb_radius_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1000000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_radius_min_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1000000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_radius_max_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1500000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_radius_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 20, -1, 1, 1000000 } /* (1..1000000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_radius_min_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 20, -1, 1, 1000000 } /* (1..1000000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_radius_max_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, 1, 1500000 } /* (1..1500000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_CircularArea_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CircularArea, coordinate), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Coordinate, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "coordinate" + }, + { ATF_NOFLAGS, 0, offsetof(struct CircularArea, radius), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_radius_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_radius_constraint_1 + }, + 0, 0, /* No default value */ + "radius" + }, + { ATF_POINTER, 2, offsetof(struct CircularArea, radius_min), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_radius_min_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_radius_min_constraint_1 + }, + 0, 0, /* No default value */ + "radius-min" + }, + { ATF_POINTER, 1, offsetof(struct CircularArea, radius_max), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_radius_max_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_radius_max_constraint_1 + }, + 0, 0, /* No default value */ + "radius-max" + }, +}; +static const int asn_MAP_CircularArea_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_CircularArea_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CircularArea_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* coordinate */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* radius */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* radius-min */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* radius-max */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CircularArea_specs_1 = { + sizeof(struct CircularArea), + offsetof(struct CircularArea, _asn_ctx), + asn_MAP_CircularArea_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_CircularArea_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CircularArea = { + "CircularArea", + "CircularArea", + &asn_OP_SEQUENCE, + asn_DEF_CircularArea_tags_1, + sizeof(asn_DEF_CircularArea_tags_1) + /sizeof(asn_DEF_CircularArea_tags_1[0]), /* 1 */ + asn_DEF_CircularArea_tags_1, /* Same as above */ + sizeof(asn_DEF_CircularArea_tags_1) + /sizeof(asn_DEF_CircularArea_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CircularArea_1, + 4, /* Elements count */ + &asn_SPC_CircularArea_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/CircularArea.h b/asn.1/supl_generated/CircularArea.h new file mode 100644 index 00000000..a33aa6d5 --- /dev/null +++ b/asn.1/supl_generated/CircularArea.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _CircularArea_H_ +#define _CircularArea_H_ + + +#include + +/* Including external dependencies */ +#include "Coordinate.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* CircularArea */ +typedef struct CircularArea { + Coordinate_t coordinate; + long radius; + long *radius_min; /* OPTIONAL */ + long *radius_max; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CircularArea_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CircularArea; +extern asn_SEQUENCE_specifics_t asn_SPC_CircularArea_specs_1; +extern asn_TYPE_member_t asn_MBR_CircularArea_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _CircularArea_H_ */ +#include diff --git a/asn.1/supl_generated/Coordinate.c b/asn.1/supl_generated/Coordinate.c new file mode 100644 index 00000000..4b7e6268 --- /dev/null +++ b/asn.1/supl_generated/Coordinate.c @@ -0,0 +1,222 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Coordinate.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_latitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_longitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_latitudeSign_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_latitude_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_longitude_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_latitudeSign_value2enum_2[] = { + { 0, 5, "north" }, + { 1, 5, "south" } +}; +static const unsigned int asn_MAP_latitudeSign_enum2value_2[] = { + 0, /* north(0) */ + 1 /* south(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_latitudeSign_specs_2 = { + asn_MAP_latitudeSign_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_latitudeSign_enum2value_2, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_latitudeSign_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_latitudeSign_2 = { + "latitudeSign", + "latitudeSign", + &asn_OP_NativeEnumerated, + asn_DEF_latitudeSign_tags_2, + sizeof(asn_DEF_latitudeSign_tags_2) + /sizeof(asn_DEF_latitudeSign_tags_2[0]) - 1, /* 1 */ + asn_DEF_latitudeSign_tags_2, /* Same as above */ + sizeof(asn_DEF_latitudeSign_tags_2) + /sizeof(asn_DEF_latitudeSign_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_latitudeSign_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_latitudeSign_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_Coordinate_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Coordinate, latitudeSign), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_latitudeSign_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "latitudeSign" + }, + { ATF_NOFLAGS, 0, offsetof(struct Coordinate, latitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_latitude_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_latitude_constraint_1 + }, + 0, 0, /* No default value */ + "latitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct Coordinate, longitude), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_longitude_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_longitude_constraint_1 + }, + 0, 0, /* No default value */ + "longitude" + }, +}; +static const ber_tlv_tag_t asn_DEF_Coordinate_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Coordinate_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeSign */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* latitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* longitude */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Coordinate_specs_1 = { + sizeof(struct Coordinate), + offsetof(struct Coordinate, _asn_ctx), + asn_MAP_Coordinate_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Coordinate = { + "Coordinate", + "Coordinate", + &asn_OP_SEQUENCE, + asn_DEF_Coordinate_tags_1, + sizeof(asn_DEF_Coordinate_tags_1) + /sizeof(asn_DEF_Coordinate_tags_1[0]), /* 1 */ + asn_DEF_Coordinate_tags_1, /* Same as above */ + sizeof(asn_DEF_Coordinate_tags_1) + /sizeof(asn_DEF_Coordinate_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Coordinate_1, + 3, /* Elements count */ + &asn_SPC_Coordinate_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Coordinate.h b/asn.1/supl_generated/Coordinate.h similarity index 80% rename from asn.1/generated/Coordinate.h rename to asn.1/supl_generated/Coordinate.h index c210a065..60f6890b 100644 --- a/asn.1/generated/Coordinate.h +++ b/asn.1/supl_generated/Coordinate.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _Coordinate_H_ diff --git a/asn.1/supl_generated/DGANSS-Sig-Id-Req.c b/asn.1/supl_generated/DGANSS-Sig-Id-Req.c new file mode 100644 index 00000000..5d7e6917 --- /dev/null +++ b/asn.1/supl_generated/DGANSS-Sig-Id-Req.c @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "DGANSS-Sig-Id-Req.h" + +int +DGANSS_Sig_Id_Req_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using BIT_STRING, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DGANSS_Sig_Id_Req_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_DGANSS_Sig_Id_Req_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DGANSS_Sig_Id_Req = { + "DGANSS-Sig-Id-Req", + "DGANSS-Sig-Id-Req", + &asn_OP_BIT_STRING, + asn_DEF_DGANSS_Sig_Id_Req_tags_1, + sizeof(asn_DEF_DGANSS_Sig_Id_Req_tags_1) + /sizeof(asn_DEF_DGANSS_Sig_Id_Req_tags_1[0]), /* 1 */ + asn_DEF_DGANSS_Sig_Id_Req_tags_1, /* Same as above */ + sizeof(asn_DEF_DGANSS_Sig_Id_Req_tags_1) + /sizeof(asn_DEF_DGANSS_Sig_Id_Req_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DGANSS_Sig_Id_Req_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + DGANSS_Sig_Id_Req_constraint + }, + 0, 0, /* No members */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/DGANSS-Sig-Id-Req.h b/asn.1/supl_generated/DGANSS-Sig-Id-Req.h new file mode 100644 index 00000000..288c9267 --- /dev/null +++ b/asn.1/supl_generated/DGANSS-Sig-Id-Req.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _DGANSS_Sig_Id_Req_H_ +#define _DGANSS_Sig_Id_Req_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* DGANSS-Sig-Id-Req */ +typedef BIT_STRING_t DGANSS_Sig_Id_Req_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_DGANSS_Sig_Id_Req_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_DGANSS_Sig_Id_Req; +asn_struct_free_f DGANSS_Sig_Id_Req_free; +asn_constr_check_f DGANSS_Sig_Id_Req_constraint; +xer_type_decoder_f DGANSS_Sig_Id_Req_decode_xer; +xer_type_encoder_f DGANSS_Sig_Id_Req_encode_xer; +jer_type_encoder_f DGANSS_Sig_Id_Req_encode_jer; +per_type_decoder_f DGANSS_Sig_Id_Req_decode_uper; +per_type_encoder_f DGANSS_Sig_Id_Req_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _DGANSS_Sig_Id_Req_H_ */ +#include diff --git a/asn.1/supl_generated/EllipticalArea.c b/asn.1/supl_generated/EllipticalArea.c new file mode 100644 index 00000000..816e3de9 --- /dev/null +++ b/asn.1/supl_generated/EllipticalArea.c @@ -0,0 +1,418 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "EllipticalArea.h" + +static int +memb_semiMajor_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1000000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_semiMajor_min_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1000000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_semiMajor_max_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1500000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_semiMinor_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1000000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_semiMinor_min_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1000000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_semiMinor_max_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1500000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_angle_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 179L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_semiMajor_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 20, -1, 1, 1000000 } /* (1..1000000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_semiMajor_min_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 20, -1, 1, 1000000 } /* (1..1000000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_semiMajor_max_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, 1, 1500000 } /* (1..1500000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_semiMinor_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 20, -1, 1, 1000000 } /* (1..1000000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_semiMinor_min_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 20, -1, 1, 1000000 } /* (1..1000000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_semiMinor_max_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, 1, 1500000 } /* (1..1500000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_angle_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 179 } /* (0..179) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_EllipticalArea_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct EllipticalArea, coordinate), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Coordinate, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "coordinate" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipticalArea, semiMajor), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_semiMajor_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_semiMajor_constraint_1 + }, + 0, 0, /* No default value */ + "semiMajor" + }, + { ATF_POINTER, 2, offsetof(struct EllipticalArea, semiMajor_min), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_semiMajor_min_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_semiMajor_min_constraint_1 + }, + 0, 0, /* No default value */ + "semiMajor-min" + }, + { ATF_POINTER, 1, offsetof(struct EllipticalArea, semiMajor_max), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_semiMajor_max_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_semiMajor_max_constraint_1 + }, + 0, 0, /* No default value */ + "semiMajor-max" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipticalArea, semiMinor), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_semiMinor_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_semiMinor_constraint_1 + }, + 0, 0, /* No default value */ + "semiMinor" + }, + { ATF_POINTER, 2, offsetof(struct EllipticalArea, semiMinor_min), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_semiMinor_min_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_semiMinor_min_constraint_1 + }, + 0, 0, /* No default value */ + "semiMinor-min" + }, + { ATF_POINTER, 1, offsetof(struct EllipticalArea, semiMinor_max), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_semiMinor_max_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_semiMinor_max_constraint_1 + }, + 0, 0, /* No default value */ + "semiMinor-max" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipticalArea, angle), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_angle_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_angle_constraint_1 + }, + 0, 0, /* No default value */ + "angle" + }, +}; +static const int asn_MAP_EllipticalArea_oms_1[] = { 2, 3, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_EllipticalArea_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_EllipticalArea_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* coordinate */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* semiMajor */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* semiMajor-min */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* semiMajor-max */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* semiMinor */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* semiMinor-min */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* semiMinor-max */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* angle */ +}; +asn_SEQUENCE_specifics_t asn_SPC_EllipticalArea_specs_1 = { + sizeof(struct EllipticalArea), + offsetof(struct EllipticalArea, _asn_ctx), + asn_MAP_EllipticalArea_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_EllipticalArea_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_EllipticalArea = { + "EllipticalArea", + "EllipticalArea", + &asn_OP_SEQUENCE, + asn_DEF_EllipticalArea_tags_1, + sizeof(asn_DEF_EllipticalArea_tags_1) + /sizeof(asn_DEF_EllipticalArea_tags_1[0]), /* 1 */ + asn_DEF_EllipticalArea_tags_1, /* Same as above */ + sizeof(asn_DEF_EllipticalArea_tags_1) + /sizeof(asn_DEF_EllipticalArea_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_EllipticalArea_1, + 8, /* Elements count */ + &asn_SPC_EllipticalArea_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/EllipticalArea.h b/asn.1/supl_generated/EllipticalArea.h new file mode 100644 index 00000000..fcda7173 --- /dev/null +++ b/asn.1/supl_generated/EllipticalArea.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _EllipticalArea_H_ +#define _EllipticalArea_H_ + + +#include + +/* Including external dependencies */ +#include "Coordinate.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* EllipticalArea */ +typedef struct EllipticalArea { + Coordinate_t coordinate; + long semiMajor; + long *semiMajor_min; /* OPTIONAL */ + long *semiMajor_max; /* OPTIONAL */ + long semiMinor; + long *semiMinor_min; /* OPTIONAL */ + long *semiMinor_max; /* OPTIONAL */ + long angle; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} EllipticalArea_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_EllipticalArea; +extern asn_SEQUENCE_specifics_t asn_SPC_EllipticalArea_specs_1; +extern asn_TYPE_member_t asn_MBR_EllipticalArea_1[8]; + +#ifdef __cplusplus +} +#endif + +#endif /* _EllipticalArea_H_ */ +#include diff --git a/asn.1/supl_generated/EncodingType.c b/asn.1/supl_generated/EncodingType.c new file mode 100644 index 00000000..8e12960b --- /dev/null +++ b/asn.1/supl_generated/EncodingType.c @@ -0,0 +1,67 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-INIT" + * found in "src/SUPL-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "EncodingType.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EncodingType_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_EncodingType_value2enum_1[] = { + { 0, 4, "ucs2" }, + { 1, 10, "gsmDefault" }, + { 2, 4, "utf8" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_EncodingType_enum2value_1[] = { + 1, /* gsmDefault(1) */ + 0, /* ucs2(0) */ + 2 /* utf8(2) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_EncodingType_specs_1 = { + asn_MAP_EncodingType_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_EncodingType_enum2value_1, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 4, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_EncodingType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EncodingType = { + "EncodingType", + "EncodingType", + &asn_OP_NativeEnumerated, + asn_DEF_EncodingType_tags_1, + sizeof(asn_DEF_EncodingType_tags_1) + /sizeof(asn_DEF_EncodingType_tags_1[0]), /* 1 */ + asn_DEF_EncodingType_tags_1, /* Same as above */ + sizeof(asn_DEF_EncodingType_tags_1) + /sizeof(asn_DEF_EncodingType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EncodingType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_EncodingType_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/EncodingType.h b/asn.1/supl_generated/EncodingType.h similarity index 78% rename from asn.1/generated/EncodingType.h rename to asn.1/supl_generated/EncodingType.h index d3517a27..ca657690 100644 --- a/asn.1/generated/EncodingType.h +++ b/asn.1/supl_generated/EncodingType.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _EncodingType_H_ @@ -36,12 +36,10 @@ extern asn_per_constraints_t asn_PER_type_EncodingType_constr_1; extern asn_TYPE_descriptor_t asn_DEF_EncodingType; extern const asn_INTEGER_specifics_t asn_SPC_EncodingType_specs_1; asn_struct_free_f EncodingType_free; -asn_struct_print_f EncodingType_print; asn_constr_check_f EncodingType_constraint; -ber_type_decoder_f EncodingType_decode_ber; -der_type_encoder_f EncodingType_encode_der; xer_type_decoder_f EncodingType_decode_xer; xer_type_encoder_f EncodingType_encode_xer; +jer_type_encoder_f EncodingType_encode_jer; per_type_decoder_f EncodingType_decode_uper; per_type_encoder_f EncodingType_encode_uper; diff --git a/asn.1/supl_generated/EventTriggerCapabilities.c b/asn.1/supl_generated/EventTriggerCapabilities.c new file mode 100644 index 00000000..9efa40c3 --- /dev/null +++ b/asn.1/supl_generated/EventTriggerCapabilities.c @@ -0,0 +1,218 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "EventTriggerCapabilities.h" + +static int +memb_maxNumGeoAreaSupported_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 32L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_maxAreaIdListSupported_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 32L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_maxAreaIdSupportedPerList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 256L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxNumGeoAreaSupported_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 32 } /* (0..32) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxAreaIdListSupported_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 32 } /* (0..32) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxAreaIdSupportedPerList_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 256 } /* (0..256) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_EventTriggerCapabilities_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct EventTriggerCapabilities, geoAreaShapesSupported), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GeoAreaShapesSupported, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "geoAreaShapesSupported" + }, + { ATF_POINTER, 3, offsetof(struct EventTriggerCapabilities, maxNumGeoAreaSupported), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxNumGeoAreaSupported_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxNumGeoAreaSupported_constraint_1 + }, + 0, 0, /* No default value */ + "maxNumGeoAreaSupported" + }, + { ATF_POINTER, 2, offsetof(struct EventTriggerCapabilities, maxAreaIdListSupported), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxAreaIdListSupported_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxAreaIdListSupported_constraint_1 + }, + 0, 0, /* No default value */ + "maxAreaIdListSupported" + }, + { ATF_POINTER, 1, offsetof(struct EventTriggerCapabilities, maxAreaIdSupportedPerList), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxAreaIdSupportedPerList_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxAreaIdSupportedPerList_constraint_1 + }, + 0, 0, /* No default value */ + "maxAreaIdSupportedPerList" + }, +}; +static const int asn_MAP_EventTriggerCapabilities_oms_1[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_EventTriggerCapabilities_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_EventTriggerCapabilities_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* geoAreaShapesSupported */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxNumGeoAreaSupported */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* maxAreaIdListSupported */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* maxAreaIdSupportedPerList */ +}; +asn_SEQUENCE_specifics_t asn_SPC_EventTriggerCapabilities_specs_1 = { + sizeof(struct EventTriggerCapabilities), + offsetof(struct EventTriggerCapabilities, _asn_ctx), + asn_MAP_EventTriggerCapabilities_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_EventTriggerCapabilities_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_EventTriggerCapabilities = { + "EventTriggerCapabilities", + "EventTriggerCapabilities", + &asn_OP_SEQUENCE, + asn_DEF_EventTriggerCapabilities_tags_1, + sizeof(asn_DEF_EventTriggerCapabilities_tags_1) + /sizeof(asn_DEF_EventTriggerCapabilities_tags_1[0]), /* 1 */ + asn_DEF_EventTriggerCapabilities_tags_1, /* Same as above */ + sizeof(asn_DEF_EventTriggerCapabilities_tags_1) + /sizeof(asn_DEF_EventTriggerCapabilities_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_EventTriggerCapabilities_1, + 4, /* Elements count */ + &asn_SPC_EventTriggerCapabilities_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/EventTriggerCapabilities.h b/asn.1/supl_generated/EventTriggerCapabilities.h new file mode 100644 index 00000000..1069584a --- /dev/null +++ b/asn.1/supl_generated/EventTriggerCapabilities.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _EventTriggerCapabilities_H_ +#define _EventTriggerCapabilities_H_ + + +#include + +/* Including external dependencies */ +#include "GeoAreaShapesSupported.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* EventTriggerCapabilities */ +typedef struct EventTriggerCapabilities { + GeoAreaShapesSupported_t geoAreaShapesSupported; + long *maxNumGeoAreaSupported; /* OPTIONAL */ + long *maxAreaIdListSupported; /* OPTIONAL */ + long *maxAreaIdSupportedPerList; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} EventTriggerCapabilities_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_EventTriggerCapabilities; +extern asn_SEQUENCE_specifics_t asn_SPC_EventTriggerCapabilities_specs_1; +extern asn_TYPE_member_t asn_MBR_EventTriggerCapabilities_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _EventTriggerCapabilities_H_ */ +#include diff --git a/asn.1/supl_generated/ExtendedEphCheck.c b/asn.1/supl_generated/ExtendedEphCheck.c new file mode 100644 index 00000000..953aa24e --- /dev/null +++ b/asn.1/supl_generated/ExtendedEphCheck.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ExtendedEphCheck.h" + +asn_TYPE_member_t asn_MBR_ExtendedEphCheck_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ExtendedEphCheck, beginTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SUPL_GPSTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "beginTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct ExtendedEphCheck, endTime), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SUPL_GPSTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "endTime" + }, +}; +static const ber_tlv_tag_t asn_DEF_ExtendedEphCheck_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ExtendedEphCheck_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* beginTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* endTime */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ExtendedEphCheck_specs_1 = { + sizeof(struct ExtendedEphCheck), + offsetof(struct ExtendedEphCheck, _asn_ctx), + asn_MAP_ExtendedEphCheck_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ExtendedEphCheck = { + "ExtendedEphCheck", + "ExtendedEphCheck", + &asn_OP_SEQUENCE, + asn_DEF_ExtendedEphCheck_tags_1, + sizeof(asn_DEF_ExtendedEphCheck_tags_1) + /sizeof(asn_DEF_ExtendedEphCheck_tags_1[0]), /* 1 */ + asn_DEF_ExtendedEphCheck_tags_1, /* Same as above */ + sizeof(asn_DEF_ExtendedEphCheck_tags_1) + /sizeof(asn_DEF_ExtendedEphCheck_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ExtendedEphCheck_1, + 2, /* Elements count */ + &asn_SPC_ExtendedEphCheck_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ExtendedEphCheck.h b/asn.1/supl_generated/ExtendedEphCheck.h similarity index 77% rename from asn.1/generated/ExtendedEphCheck.h rename to asn.1/supl_generated/ExtendedEphCheck.h index c0db4cab..2f3dea40 100644 --- a/asn.1/generated/ExtendedEphCheck.h +++ b/asn.1/supl_generated/ExtendedEphCheck.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _ExtendedEphCheck_H_ diff --git a/asn.1/supl_generated/ExtendedEphemeris.c b/asn.1/supl_generated/ExtendedEphemeris.c new file mode 100644 index 00000000..75f12203 --- /dev/null +++ b/asn.1/supl_generated/ExtendedEphemeris.c @@ -0,0 +1,98 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ExtendedEphemeris.h" + +static int +memb_validity_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 256L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_validity_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 1, 256 } /* (1..256) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_ExtendedEphemeris_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ExtendedEphemeris, validity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_validity_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_validity_constraint_1 + }, + 0, 0, /* No default value */ + "validity" + }, +}; +static const ber_tlv_tag_t asn_DEF_ExtendedEphemeris_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ExtendedEphemeris_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* validity */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ExtendedEphemeris_specs_1 = { + sizeof(struct ExtendedEphemeris), + offsetof(struct ExtendedEphemeris, _asn_ctx), + asn_MAP_ExtendedEphemeris_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ExtendedEphemeris = { + "ExtendedEphemeris", + "ExtendedEphemeris", + &asn_OP_SEQUENCE, + asn_DEF_ExtendedEphemeris_tags_1, + sizeof(asn_DEF_ExtendedEphemeris_tags_1) + /sizeof(asn_DEF_ExtendedEphemeris_tags_1[0]), /* 1 */ + asn_DEF_ExtendedEphemeris_tags_1, /* Same as above */ + sizeof(asn_DEF_ExtendedEphemeris_tags_1) + /sizeof(asn_DEF_ExtendedEphemeris_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ExtendedEphemeris_1, + 1, /* Elements count */ + &asn_SPC_ExtendedEphemeris_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ExtendedEphemeris.h b/asn.1/supl_generated/ExtendedEphemeris.h similarity index 77% rename from asn.1/generated/ExtendedEphemeris.h rename to asn.1/supl_generated/ExtendedEphemeris.h index a6be28f0..2b2f5dfb 100644 --- a/asn.1/generated/ExtendedEphemeris.h +++ b/asn.1/supl_generated/ExtendedEphemeris.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _ExtendedEphemeris_H_ diff --git a/asn.1/generated/FQDN.c b/asn.1/supl_generated/FQDN.c similarity index 80% rename from asn.1/generated/FQDN.c rename to asn.1/supl_generated/FQDN.c index f56ccd98..bc353240 100644 --- a/asn.1/generated/FQDN.c +++ b/asn.1/supl_generated/FQDN.c @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #include "FQDN.h" @@ -54,7 +54,7 @@ FQDN_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, size = st->size; - if((size >= 1 && size <= 255) + if((size >= 1UL && size <= 255UL) && !check_permitted_alphabet_1(st)) { /* Constraint check succeeded */ return 0; @@ -80,12 +80,14 @@ static int asn_PER_MAP_FQDN_1_c2v(unsigned int code) { * This type is implemented using VisibleString, * so here we adjust the DEF accordingly. */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) asn_per_constraints_t asn_PER_type_FQDN_constr_1 CC_NOTUSED = { { APC_CONSTRAINED, 6, 6, 45, 122 } /* (45..122) */, { APC_CONSTRAINED, 8, 8, 1, 255 } /* (SIZE(1..255)) */, asn_PER_MAP_FQDN_1_v2c, /* Value to PER code map */ asn_PER_MAP_FQDN_1_c2v /* PER code to value map */ }; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_FQDN_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)) }; @@ -99,7 +101,15 @@ asn_TYPE_descriptor_t asn_DEF_FQDN = { asn_DEF_FQDN_tags_1, /* Same as above */ sizeof(asn_DEF_FQDN_tags_1) /sizeof(asn_DEF_FQDN_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_FQDN_constr_1, FQDN_constraint }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_FQDN_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + FQDN_constraint + }, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/asn.1/supl_generated/FQDN.h b/asn.1/supl_generated/FQDN.h new file mode 100644 index 00000000..d0306733 --- /dev/null +++ b/asn.1/supl_generated/FQDN.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _FQDN_H_ +#define _FQDN_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* FQDN */ +typedef VisibleString_t FQDN_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_FQDN_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_FQDN; +asn_struct_free_f FQDN_free; +asn_constr_check_f FQDN_constraint; +xer_type_decoder_f FQDN_decode_xer; +xer_type_encoder_f FQDN_encode_xer; +jer_type_encoder_f FQDN_encode_jer; +per_type_decoder_f FQDN_decode_uper; +per_type_encoder_f FQDN_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _FQDN_H_ */ +#include diff --git a/asn.1/supl_generated/FormatIndicator.c b/asn.1/supl_generated/FormatIndicator.c new file mode 100644 index 00000000..1a3e94b7 --- /dev/null +++ b/asn.1/supl_generated/FormatIndicator.c @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-INIT" + * found in "src/SUPL-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "FormatIndicator.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_FormatIndicator_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 7 } /* (0..7,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_FormatIndicator_value2enum_1[] = { + { 0, 11, "logicalName" }, + { 1, 13, "e-mailAddress" }, + { 2, 6, "msisdn" }, + { 3, 3, "url" }, + { 4, 6, "sipUrl" }, + { 5, 3, "min" }, + { 6, 3, "mdn" }, + { 7, 17, "iMSPublicidentity" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_FormatIndicator_enum2value_1[] = { + 1, /* e-mailAddress(1) */ + 7, /* iMSPublicidentity(7) */ + 0, /* logicalName(0) */ + 6, /* mdn(6) */ + 5, /* min(5) */ + 2, /* msisdn(2) */ + 4, /* sipUrl(4) */ + 3 /* url(3) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_FormatIndicator_specs_1 = { + asn_MAP_FormatIndicator_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_FormatIndicator_enum2value_1, /* N => "tag"; sorted by N */ + 8, /* Number of elements in the maps */ + 9, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_FormatIndicator_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_FormatIndicator = { + "FormatIndicator", + "FormatIndicator", + &asn_OP_NativeEnumerated, + asn_DEF_FormatIndicator_tags_1, + sizeof(asn_DEF_FormatIndicator_tags_1) + /sizeof(asn_DEF_FormatIndicator_tags_1[0]), /* 1 */ + asn_DEF_FormatIndicator_tags_1, /* Same as above */ + sizeof(asn_DEF_FormatIndicator_tags_1) + /sizeof(asn_DEF_FormatIndicator_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_FormatIndicator_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_FormatIndicator_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/FormatIndicator.h b/asn.1/supl_generated/FormatIndicator.h similarity index 80% rename from asn.1/generated/FormatIndicator.h rename to asn.1/supl_generated/FormatIndicator.h index 30e511bc..25688465 100644 --- a/asn.1/generated/FormatIndicator.h +++ b/asn.1/supl_generated/FormatIndicator.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _FormatIndicator_H_ @@ -41,12 +41,10 @@ extern asn_per_constraints_t asn_PER_type_FormatIndicator_constr_1; extern asn_TYPE_descriptor_t asn_DEF_FormatIndicator; extern const asn_INTEGER_specifics_t asn_SPC_FormatIndicator_specs_1; asn_struct_free_f FormatIndicator_free; -asn_struct_print_f FormatIndicator_print; asn_constr_check_f FormatIndicator_constraint; -ber_type_decoder_f FormatIndicator_decode_ber; -der_type_encoder_f FormatIndicator_encode_der; xer_type_decoder_f FormatIndicator_decode_xer; xer_type_encoder_f FormatIndicator_encode_xer; +jer_type_encoder_f FormatIndicator_encode_jer; per_type_decoder_f FormatIndicator_decode_uper; per_type_encoder_f FormatIndicator_encode_uper; diff --git a/asn.1/supl_generated/FrequencyInfo.c b/asn.1/supl_generated/FrequencyInfo.c new file mode 100644 index 00000000..869a7d54 --- /dev/null +++ b/asn.1/supl_generated/FrequencyInfo.c @@ -0,0 +1,146 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "FrequencyInfo.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_modeSpecificInfo_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_modeSpecificInfo_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct FrequencyInfo__modeSpecificInfo, choice.fdd), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FrequencyInfoFDD, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fdd" + }, + { ATF_NOFLAGS, 0, offsetof(struct FrequencyInfo__modeSpecificInfo, choice.tdd), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FrequencyInfoTDD, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tdd" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_modeSpecificInfo_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */ +}; +static asn_CHOICE_specifics_t asn_SPC_modeSpecificInfo_specs_2 = { + sizeof(struct FrequencyInfo__modeSpecificInfo), + offsetof(struct FrequencyInfo__modeSpecificInfo, _asn_ctx), + offsetof(struct FrequencyInfo__modeSpecificInfo, present), + sizeof(((struct FrequencyInfo__modeSpecificInfo *)0)->present), + asn_MAP_modeSpecificInfo_tag2el_2, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_modeSpecificInfo_2 = { + "modeSpecificInfo", + "modeSpecificInfo", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_modeSpecificInfo_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_modeSpecificInfo_2, + 2, /* Elements count */ + &asn_SPC_modeSpecificInfo_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_FrequencyInfo_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct FrequencyInfo, modeSpecificInfo), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_modeSpecificInfo_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "modeSpecificInfo" + }, +}; +static const ber_tlv_tag_t asn_DEF_FrequencyInfo_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_FrequencyInfo_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* modeSpecificInfo */ +}; +asn_SEQUENCE_specifics_t asn_SPC_FrequencyInfo_specs_1 = { + sizeof(struct FrequencyInfo), + offsetof(struct FrequencyInfo, _asn_ctx), + asn_MAP_FrequencyInfo_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_FrequencyInfo = { + "FrequencyInfo", + "FrequencyInfo", + &asn_OP_SEQUENCE, + asn_DEF_FrequencyInfo_tags_1, + sizeof(asn_DEF_FrequencyInfo_tags_1) + /sizeof(asn_DEF_FrequencyInfo_tags_1[0]), /* 1 */ + asn_DEF_FrequencyInfo_tags_1, /* Same as above */ + sizeof(asn_DEF_FrequencyInfo_tags_1) + /sizeof(asn_DEF_FrequencyInfo_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_FrequencyInfo_1, + 1, /* Elements count */ + &asn_SPC_FrequencyInfo_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/FrequencyInfo.h b/asn.1/supl_generated/FrequencyInfo.h similarity index 86% rename from asn.1/generated/FrequencyInfo.h rename to asn.1/supl_generated/FrequencyInfo.h index 8f54734c..e49bf901 100644 --- a/asn.1/generated/FrequencyInfo.h +++ b/asn.1/supl_generated/FrequencyInfo.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _FrequencyInfo_H_ diff --git a/asn.1/supl_generated/FrequencyInfoFDD.c b/asn.1/supl_generated/FrequencyInfoFDD.c new file mode 100644 index 00000000..e92f5dcd --- /dev/null +++ b/asn.1/supl_generated/FrequencyInfoFDD.c @@ -0,0 +1,86 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "FrequencyInfoFDD.h" + +asn_TYPE_member_t asn_MBR_FrequencyInfoFDD_1[] = { + { ATF_POINTER, 1, offsetof(struct FrequencyInfoFDD, uarfcn_UL), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UARFCN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "uarfcn-UL" + }, + { ATF_NOFLAGS, 0, offsetof(struct FrequencyInfoFDD, uarfcn_DL), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UARFCN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "uarfcn-DL" + }, +}; +static const int asn_MAP_FrequencyInfoFDD_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_FrequencyInfoFDD_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_FrequencyInfoFDD_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* uarfcn-UL */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* uarfcn-DL */ +}; +asn_SEQUENCE_specifics_t asn_SPC_FrequencyInfoFDD_specs_1 = { + sizeof(struct FrequencyInfoFDD), + offsetof(struct FrequencyInfoFDD, _asn_ctx), + asn_MAP_FrequencyInfoFDD_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_FrequencyInfoFDD_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_FrequencyInfoFDD = { + "FrequencyInfoFDD", + "FrequencyInfoFDD", + &asn_OP_SEQUENCE, + asn_DEF_FrequencyInfoFDD_tags_1, + sizeof(asn_DEF_FrequencyInfoFDD_tags_1) + /sizeof(asn_DEF_FrequencyInfoFDD_tags_1[0]), /* 1 */ + asn_DEF_FrequencyInfoFDD_tags_1, /* Same as above */ + sizeof(asn_DEF_FrequencyInfoFDD_tags_1) + /sizeof(asn_DEF_FrequencyInfoFDD_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_FrequencyInfoFDD_1, + 2, /* Elements count */ + &asn_SPC_FrequencyInfoFDD_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/FrequencyInfoFDD.h b/asn.1/supl_generated/FrequencyInfoFDD.h similarity index 75% rename from asn.1/generated/FrequencyInfoFDD.h rename to asn.1/supl_generated/FrequencyInfoFDD.h index c1eb7849..70ff9a82 100644 --- a/asn.1/generated/FrequencyInfoFDD.h +++ b/asn.1/supl_generated/FrequencyInfoFDD.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _FrequencyInfoFDD_H_ @@ -21,7 +21,7 @@ extern "C" { /* FrequencyInfoFDD */ typedef struct FrequencyInfoFDD { - UARFCN_t *uarfcn_UL /* OPTIONAL */; + UARFCN_t *uarfcn_UL; /* OPTIONAL */ UARFCN_t uarfcn_DL; /* * This type is extensible, diff --git a/asn.1/supl_generated/FrequencyInfoTDD.c b/asn.1/supl_generated/FrequencyInfoTDD.c new file mode 100644 index 00000000..8b9ac740 --- /dev/null +++ b/asn.1/supl_generated/FrequencyInfoTDD.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "FrequencyInfoTDD.h" + +asn_TYPE_member_t asn_MBR_FrequencyInfoTDD_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct FrequencyInfoTDD, uarfcn_Nt), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UARFCN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "uarfcn-Nt" + }, +}; +static const ber_tlv_tag_t asn_DEF_FrequencyInfoTDD_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_FrequencyInfoTDD_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* uarfcn-Nt */ +}; +asn_SEQUENCE_specifics_t asn_SPC_FrequencyInfoTDD_specs_1 = { + sizeof(struct FrequencyInfoTDD), + offsetof(struct FrequencyInfoTDD, _asn_ctx), + asn_MAP_FrequencyInfoTDD_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_FrequencyInfoTDD = { + "FrequencyInfoTDD", + "FrequencyInfoTDD", + &asn_OP_SEQUENCE, + asn_DEF_FrequencyInfoTDD_tags_1, + sizeof(asn_DEF_FrequencyInfoTDD_tags_1) + /sizeof(asn_DEF_FrequencyInfoTDD_tags_1[0]), /* 1 */ + asn_DEF_FrequencyInfoTDD_tags_1, /* Same as above */ + sizeof(asn_DEF_FrequencyInfoTDD_tags_1) + /sizeof(asn_DEF_FrequencyInfoTDD_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_FrequencyInfoTDD_1, + 1, /* Elements count */ + &asn_SPC_FrequencyInfoTDD_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/FrequencyInfoTDD.h b/asn.1/supl_generated/FrequencyInfoTDD.h similarity index 77% rename from asn.1/generated/FrequencyInfoTDD.h rename to asn.1/supl_generated/FrequencyInfoTDD.h index cb942dec..73724043 100644 --- a/asn.1/generated/FrequencyInfoTDD.h +++ b/asn.1/supl_generated/FrequencyInfoTDD.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _FrequencyInfoTDD_H_ diff --git a/asn.1/supl_generated/GANSSPositionMethod.c b/asn.1/supl_generated/GANSSPositionMethod.c new file mode 100644 index 00000000..9769a169 --- /dev/null +++ b/asn.1/supl_generated/GANSSPositionMethod.c @@ -0,0 +1,192 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GANSSPositionMethod.h" + +static int +memb_ganssId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ganssSBASid_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 3UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ganssId_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ganssSBASid_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GANSSPositionMethod_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GANSSPositionMethod, ganssId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ganssId_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ganssId_constraint_1 + }, + 0, 0, /* No default value */ + "ganssId" + }, + { ATF_POINTER, 1, offsetof(struct GANSSPositionMethod, ganssSBASid), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ganssSBASid_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ganssSBASid_constraint_1 + }, + 0, 0, /* No default value */ + "ganssSBASid" + }, + { ATF_NOFLAGS, 0, offsetof(struct GANSSPositionMethod, gANSSPositioningMethodTypes), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GANSSPositioningMethodTypes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gANSSPositioningMethodTypes" + }, + { ATF_NOFLAGS, 0, offsetof(struct GANSSPositionMethod, gANSSSignals), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GANSSSignals, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gANSSSignals" + }, +}; +static const int asn_MAP_GANSSPositionMethod_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_GANSSPositionMethod_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GANSSPositionMethod_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssSBASid */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gANSSPositioningMethodTypes */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* gANSSSignals */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GANSSPositionMethod_specs_1 = { + sizeof(struct GANSSPositionMethod), + offsetof(struct GANSSPositionMethod, _asn_ctx), + asn_MAP_GANSSPositionMethod_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_GANSSPositionMethod_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GANSSPositionMethod = { + "GANSSPositionMethod", + "GANSSPositionMethod", + &asn_OP_SEQUENCE, + asn_DEF_GANSSPositionMethod_tags_1, + sizeof(asn_DEF_GANSSPositionMethod_tags_1) + /sizeof(asn_DEF_GANSSPositionMethod_tags_1[0]), /* 1 */ + asn_DEF_GANSSPositionMethod_tags_1, /* Same as above */ + sizeof(asn_DEF_GANSSPositionMethod_tags_1) + /sizeof(asn_DEF_GANSSPositionMethod_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GANSSPositionMethod_1, + 4, /* Elements count */ + &asn_SPC_GANSSPositionMethod_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GANSSPositionMethod.h b/asn.1/supl_generated/GANSSPositionMethod.h similarity index 77% rename from asn.1/generated/GANSSPositionMethod.h rename to asn.1/supl_generated/GANSSPositionMethod.h index d96fb41e..a43b7b16 100644 --- a/asn.1/generated/GANSSPositionMethod.h +++ b/asn.1/supl_generated/GANSSPositionMethod.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _GANSSPositionMethod_H_ @@ -25,7 +25,7 @@ extern "C" { /* GANSSPositionMethod */ typedef struct GANSSPositionMethod { long ganssId; - BIT_STRING_t *ganssSBASid /* OPTIONAL */; + BIT_STRING_t *ganssSBASid; /* OPTIONAL */ GANSSPositioningMethodTypes_t gANSSPositioningMethodTypes; GANSSSignals_t gANSSSignals; /* diff --git a/asn.1/supl_generated/GANSSPositionMethods.c b/asn.1/supl_generated/GANSSPositionMethods.c new file mode 100644 index 00000000..04ce3133 --- /dev/null +++ b/asn.1/supl_generated/GANSSPositionMethods.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GANSSPositionMethods.h" + +#include "GANSSPositionMethod.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GANSSPositionMethods_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GANSSPositionMethods_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GANSSPositionMethod, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GANSSPositionMethods_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GANSSPositionMethods_specs_1 = { + sizeof(struct GANSSPositionMethods), + offsetof(struct GANSSPositionMethods, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GANSSPositionMethods = { + "GANSSPositionMethods", + "GANSSPositionMethods", + &asn_OP_SEQUENCE_OF, + asn_DEF_GANSSPositionMethods_tags_1, + sizeof(asn_DEF_GANSSPositionMethods_tags_1) + /sizeof(asn_DEF_GANSSPositionMethods_tags_1[0]), /* 1 */ + asn_DEF_GANSSPositionMethods_tags_1, /* Same as above */ + sizeof(asn_DEF_GANSSPositionMethods_tags_1) + /sizeof(asn_DEF_GANSSPositionMethods_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GANSSPositionMethods_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GANSSPositionMethods_1, + 1, /* Single element */ + &asn_SPC_GANSSPositionMethods_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GANSSPositionMethods.h b/asn.1/supl_generated/GANSSPositionMethods.h similarity index 79% rename from asn.1/generated/GANSSPositionMethods.h rename to asn.1/supl_generated/GANSSPositionMethods.h index 3dd8ba5b..82246b75 100644 --- a/asn.1/generated/GANSSPositionMethods.h +++ b/asn.1/supl_generated/GANSSPositionMethods.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _GANSSPositionMethods_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GANSSPositionMethods_constr_1; } #endif -/* Referred external types */ -#include "GANSSPositionMethod.h" - #endif /* _GANSSPositionMethods_H_ */ #include diff --git a/asn.1/supl_generated/GANSSPositioningMethodTypes.c b/asn.1/supl_generated/GANSSPositioningMethodTypes.c new file mode 100644 index 00000000..2a41681b --- /dev/null +++ b/asn.1/supl_generated/GANSSPositioningMethodTypes.c @@ -0,0 +1,102 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GANSSPositioningMethodTypes.h" + +asn_TYPE_member_t asn_MBR_GANSSPositioningMethodTypes_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GANSSPositioningMethodTypes, setAssisted), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "setAssisted" + }, + { ATF_NOFLAGS, 0, offsetof(struct GANSSPositioningMethodTypes, setBased), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "setBased" + }, + { ATF_NOFLAGS, 0, offsetof(struct GANSSPositioningMethodTypes, autonomous), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "autonomous" + }, +}; +static const ber_tlv_tag_t asn_DEF_GANSSPositioningMethodTypes_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GANSSPositioningMethodTypes_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* setAssisted */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* setBased */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* autonomous */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GANSSPositioningMethodTypes_specs_1 = { + sizeof(struct GANSSPositioningMethodTypes), + offsetof(struct GANSSPositioningMethodTypes, _asn_ctx), + asn_MAP_GANSSPositioningMethodTypes_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GANSSPositioningMethodTypes = { + "GANSSPositioningMethodTypes", + "GANSSPositioningMethodTypes", + &asn_OP_SEQUENCE, + asn_DEF_GANSSPositioningMethodTypes_tags_1, + sizeof(asn_DEF_GANSSPositioningMethodTypes_tags_1) + /sizeof(asn_DEF_GANSSPositioningMethodTypes_tags_1[0]), /* 1 */ + asn_DEF_GANSSPositioningMethodTypes_tags_1, /* Same as above */ + sizeof(asn_DEF_GANSSPositioningMethodTypes_tags_1) + /sizeof(asn_DEF_GANSSPositioningMethodTypes_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GANSSPositioningMethodTypes_1, + 3, /* Elements count */ + &asn_SPC_GANSSPositioningMethodTypes_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GANSSPositioningMethodTypes.h b/asn.1/supl_generated/GANSSPositioningMethodTypes.h similarity index 79% rename from asn.1/generated/GANSSPositioningMethodTypes.h rename to asn.1/supl_generated/GANSSPositioningMethodTypes.h index 248f0036..fede2b55 100644 --- a/asn.1/generated/GANSSPositioningMethodTypes.h +++ b/asn.1/supl_generated/GANSSPositioningMethodTypes.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _GANSSPositioningMethodTypes_H_ diff --git a/asn.1/supl_generated/GANSSSignals.c b/asn.1/supl_generated/GANSSSignals.c new file mode 100644 index 00000000..b55d0b25 --- /dev/null +++ b/asn.1/supl_generated/GANSSSignals.c @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GANSSSignals.h" + +int +GANSSSignals_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1UL && size <= 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using BIT_STRING, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GANSSSignals_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_GANSSSignals_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_GANSSSignals = { + "GANSSSignals", + "GANSSSignals", + &asn_OP_BIT_STRING, + asn_DEF_GANSSSignals_tags_1, + sizeof(asn_DEF_GANSSSignals_tags_1) + /sizeof(asn_DEF_GANSSSignals_tags_1[0]), /* 1 */ + asn_DEF_GANSSSignals_tags_1, /* Same as above */ + sizeof(asn_DEF_GANSSSignals_tags_1) + /sizeof(asn_DEF_GANSSSignals_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GANSSSignals_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + GANSSSignals_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/asn.1/generated/GANSSSignals.h b/asn.1/supl_generated/GANSSSignals.h similarity index 78% rename from asn.1/generated/GANSSSignals.h rename to asn.1/supl_generated/GANSSSignals.h index 5337d086..c3bfd714 100644 --- a/asn.1/generated/GANSSSignals.h +++ b/asn.1/supl_generated/GANSSSignals.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _GANSSSignals_H_ @@ -37,12 +37,10 @@ typedef BIT_STRING_t GANSSSignals_t; extern asn_per_constraints_t asn_PER_type_GANSSSignals_constr_1; extern asn_TYPE_descriptor_t asn_DEF_GANSSSignals; asn_struct_free_f GANSSSignals_free; -asn_struct_print_f GANSSSignals_print; asn_constr_check_f GANSSSignals_constraint; -ber_type_decoder_f GANSSSignals_decode_ber; -der_type_encoder_f GANSSSignals_encode_der; xer_type_decoder_f GANSSSignals_decode_xer; xer_type_encoder_f GANSSSignals_encode_xer; +jer_type_encoder_f GANSSSignals_encode_jer; per_type_decoder_f GANSSSignals_decode_uper; per_type_encoder_f GANSSSignals_encode_uper; diff --git a/asn.1/supl_generated/GANSSSignalsDescription.c b/asn.1/supl_generated/GANSSSignalsDescription.c new file mode 100644 index 00000000..8be42e05 --- /dev/null +++ b/asn.1/supl_generated/GANSSSignalsDescription.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-REPORT" + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GANSSSignalsDescription.h" + +static int +memb_ganssId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ganssId_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GANSSSignalsDescription_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GANSSSignalsDescription, ganssId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ganssId_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ganssId_constraint_1 + }, + 0, 0, /* No default value */ + "ganssId" + }, + { ATF_NOFLAGS, 0, offsetof(struct GANSSSignalsDescription, gANSSSignals), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GANSSSignals, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gANSSSignals" + }, +}; +static const ber_tlv_tag_t asn_DEF_GANSSSignalsDescription_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GANSSSignalsDescription_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gANSSSignals */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GANSSSignalsDescription_specs_1 = { + sizeof(struct GANSSSignalsDescription), + offsetof(struct GANSSSignalsDescription, _asn_ctx), + asn_MAP_GANSSSignalsDescription_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GANSSSignalsDescription = { + "GANSSSignalsDescription", + "GANSSSignalsDescription", + &asn_OP_SEQUENCE, + asn_DEF_GANSSSignalsDescription_tags_1, + sizeof(asn_DEF_GANSSSignalsDescription_tags_1) + /sizeof(asn_DEF_GANSSSignalsDescription_tags_1[0]), /* 1 */ + asn_DEF_GANSSSignalsDescription_tags_1, /* Same as above */ + sizeof(asn_DEF_GANSSSignalsDescription_tags_1) + /sizeof(asn_DEF_GANSSSignalsDescription_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GANSSSignalsDescription_1, + 2, /* Elements count */ + &asn_SPC_GANSSSignalsDescription_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GANSSSignalsDescription.h b/asn.1/supl_generated/GANSSSignalsDescription.h similarity index 80% rename from asn.1/generated/GANSSSignalsDescription.h rename to asn.1/supl_generated/GANSSSignalsDescription.h index bf9b7489..a2baf1f5 100644 --- a/asn.1/generated/GANSSSignalsDescription.h +++ b/asn.1/supl_generated/GANSSSignalsDescription.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _GANSSSignalsDescription_H_ diff --git a/asn.1/supl_generated/GANSSextEphTime.c b/asn.1/supl_generated/GANSSextEphTime.c new file mode 100644 index 00000000..e8e0f5f8 --- /dev/null +++ b/asn.1/supl_generated/GANSSextEphTime.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GANSSextEphTime.h" + +static int +memb_gANSSday_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gANSSTODhour_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 23L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gANSSday_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, 0, 8191 } /* (0..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gANSSTODhour_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 23 } /* (0..23) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GANSSextEphTime_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GANSSextEphTime, gANSSday), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gANSSday_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gANSSday_constraint_1 + }, + 0, 0, /* No default value */ + "gANSSday" + }, + { ATF_NOFLAGS, 0, offsetof(struct GANSSextEphTime, gANSSTODhour), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gANSSTODhour_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gANSSTODhour_constraint_1 + }, + 0, 0, /* No default value */ + "gANSSTODhour" + }, +}; +static const ber_tlv_tag_t asn_DEF_GANSSextEphTime_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GANSSextEphTime_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gANSSday */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gANSSTODhour */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GANSSextEphTime_specs_1 = { + sizeof(struct GANSSextEphTime), + offsetof(struct GANSSextEphTime, _asn_ctx), + asn_MAP_GANSSextEphTime_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GANSSextEphTime = { + "GANSSextEphTime", + "GANSSextEphTime", + &asn_OP_SEQUENCE, + asn_DEF_GANSSextEphTime_tags_1, + sizeof(asn_DEF_GANSSextEphTime_tags_1) + /sizeof(asn_DEF_GANSSextEphTime_tags_1[0]), /* 1 */ + asn_DEF_GANSSextEphTime_tags_1, /* Same as above */ + sizeof(asn_DEF_GANSSextEphTime_tags_1) + /sizeof(asn_DEF_GANSSextEphTime_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GANSSextEphTime_1, + 2, /* Elements count */ + &asn_SPC_GANSSextEphTime_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GANSSextEphTime.h b/asn.1/supl_generated/GANSSextEphTime.h similarity index 77% rename from asn.1/generated/GANSSextEphTime.h rename to asn.1/supl_generated/GANSSextEphTime.h index c5a4b37c..91f32810 100644 --- a/asn.1/generated/GANSSextEphTime.h +++ b/asn.1/supl_generated/GANSSextEphTime.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _GANSSextEphTime_H_ diff --git a/asn.1/supl_generated/GANSSsignalsInfo.c b/asn.1/supl_generated/GANSSsignalsInfo.c new file mode 100644 index 00000000..3dcfcab5 --- /dev/null +++ b/asn.1/supl_generated/GANSSsignalsInfo.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-REPORT" + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GANSSsignalsInfo.h" + +#include "GANSSSignalsDescription.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GANSSsignalsInfo_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GANSSsignalsInfo_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GANSSSignalsDescription, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GANSSsignalsInfo_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GANSSsignalsInfo_specs_1 = { + sizeof(struct GANSSsignalsInfo), + offsetof(struct GANSSsignalsInfo, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GANSSsignalsInfo = { + "GANSSsignalsInfo", + "GANSSsignalsInfo", + &asn_OP_SEQUENCE_OF, + asn_DEF_GANSSsignalsInfo_tags_1, + sizeof(asn_DEF_GANSSsignalsInfo_tags_1) + /sizeof(asn_DEF_GANSSsignalsInfo_tags_1[0]), /* 1 */ + asn_DEF_GANSSsignalsInfo_tags_1, /* Same as above */ + sizeof(asn_DEF_GANSSsignalsInfo_tags_1) + /sizeof(asn_DEF_GANSSsignalsInfo_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GANSSsignalsInfo_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GANSSsignalsInfo_1, + 1, /* Single element */ + &asn_SPC_GANSSsignalsInfo_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GANSSsignalsInfo.h b/asn.1/supl_generated/GANSSsignalsInfo.h similarity index 79% rename from asn.1/generated/GANSSsignalsInfo.h rename to asn.1/supl_generated/GANSSsignalsInfo.h index 682e5729..111457d2 100644 --- a/asn.1/generated/GANSSsignalsInfo.h +++ b/asn.1/supl_generated/GANSSsignalsInfo.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _GANSSsignalsInfo_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GANSSsignalsInfo_constr_1; } #endif -/* Referred external types */ -#include "GANSSSignalsDescription.h" - #endif /* _GANSSsignalsInfo_H_ */ #include diff --git a/asn.1/supl_generated/GNSSPosTechnology.c b/asn.1/supl_generated/GNSSPosTechnology.c new file mode 100644 index 00000000..2e74fbba --- /dev/null +++ b/asn.1/supl_generated/GNSSPosTechnology.c @@ -0,0 +1,156 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GNSSPosTechnology.h" + +asn_TYPE_member_t asn_MBR_GNSSPosTechnology_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GNSSPosTechnology, gps), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gps" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSSPosTechnology, galileo), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "galileo" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSSPosTechnology, sbas), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sbas" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSSPosTechnology, modernized_gps), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "modernized-gps" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSSPosTechnology, qzss), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "qzss" + }, + { ATF_NOFLAGS, 0, offsetof(struct GNSSPosTechnology, glonass), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "glonass" + }, +}; +static const ber_tlv_tag_t asn_DEF_GNSSPosTechnology_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GNSSPosTechnology_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gps */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* galileo */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sbas */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* modernized-gps */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* qzss */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* glonass */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GNSSPosTechnology_specs_1 = { + sizeof(struct GNSSPosTechnology), + offsetof(struct GNSSPosTechnology, _asn_ctx), + asn_MAP_GNSSPosTechnology_tag2el_1, + 6, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GNSSPosTechnology = { + "GNSSPosTechnology", + "GNSSPosTechnology", + &asn_OP_SEQUENCE, + asn_DEF_GNSSPosTechnology_tags_1, + sizeof(asn_DEF_GNSSPosTechnology_tags_1) + /sizeof(asn_DEF_GNSSPosTechnology_tags_1[0]), /* 1 */ + asn_DEF_GNSSPosTechnology_tags_1, /* Same as above */ + sizeof(asn_DEF_GNSSPosTechnology_tags_1) + /sizeof(asn_DEF_GNSSPosTechnology_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GNSSPosTechnology_1, + 6, /* Elements count */ + &asn_SPC_GNSSPosTechnology_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GNSSPosTechnology.h b/asn.1/supl_generated/GNSSPosTechnology.h similarity index 79% rename from asn.1/generated/GNSSPosTechnology.h rename to asn.1/supl_generated/GNSSPosTechnology.h index 7655979a..3e192960 100644 --- a/asn.1/generated/GNSSPosTechnology.h +++ b/asn.1/supl_generated/GNSSPosTechnology.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _GNSSPosTechnology_H_ diff --git a/asn.1/supl_generated/GSMAreaId.c b/asn.1/supl_generated/GSMAreaId.c new file mode 100644 index 00000000..00f46772 --- /dev/null +++ b/asn.1/supl_generated/GSMAreaId.c @@ -0,0 +1,250 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GSMAreaId.h" + +static int +memb_refMCC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refMNC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refLAC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refCI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refMCC_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refMNC_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refLAC_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refCI_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GSMAreaId_1[] = { + { ATF_POINTER, 4, offsetof(struct GSMAreaId, refMCC), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refMCC_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refMCC_constraint_1 + }, + 0, 0, /* No default value */ + "refMCC" + }, + { ATF_POINTER, 3, offsetof(struct GSMAreaId, refMNC), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refMNC_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refMNC_constraint_1 + }, + 0, 0, /* No default value */ + "refMNC" + }, + { ATF_POINTER, 2, offsetof(struct GSMAreaId, refLAC), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refLAC_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refLAC_constraint_1 + }, + 0, 0, /* No default value */ + "refLAC" + }, + { ATF_POINTER, 1, offsetof(struct GSMAreaId, refCI), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refCI_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refCI_constraint_1 + }, + 0, 0, /* No default value */ + "refCI" + }, +}; +static const int asn_MAP_GSMAreaId_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_GSMAreaId_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GSMAreaId_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refMCC */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refMNC */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* refLAC */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* refCI */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GSMAreaId_specs_1 = { + sizeof(struct GSMAreaId), + offsetof(struct GSMAreaId, _asn_ctx), + asn_MAP_GSMAreaId_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_GSMAreaId_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GSMAreaId = { + "GSMAreaId", + "GSMAreaId", + &asn_OP_SEQUENCE, + asn_DEF_GSMAreaId_tags_1, + sizeof(asn_DEF_GSMAreaId_tags_1) + /sizeof(asn_DEF_GSMAreaId_tags_1[0]), /* 1 */ + asn_DEF_GSMAreaId_tags_1, /* Same as above */ + sizeof(asn_DEF_GSMAreaId_tags_1) + /sizeof(asn_DEF_GSMAreaId_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GSMAreaId_1, + 4, /* Elements count */ + &asn_SPC_GSMAreaId_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/GSMAreaId.h b/asn.1/supl_generated/GSMAreaId.h new file mode 100644 index 00000000..13b83deb --- /dev/null +++ b/asn.1/supl_generated/GSMAreaId.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _GSMAreaId_H_ +#define _GSMAreaId_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GSMAreaId */ +typedef struct GSMAreaId { + long *refMCC; /* OPTIONAL */ + long *refMNC; /* OPTIONAL */ + long *refLAC; /* OPTIONAL */ + long *refCI; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GSMAreaId_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GSMAreaId; +extern asn_SEQUENCE_specifics_t asn_SPC_GSMAreaId_specs_1; +extern asn_TYPE_member_t asn_MBR_GSMAreaId_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GSMAreaId_H_ */ +#include diff --git a/asn.1/supl_generated/GanssAdditionalDataChoices.c b/asn.1/supl_generated/GanssAdditionalDataChoices.c new file mode 100644 index 00000000..8dbb916b --- /dev/null +++ b/asn.1/supl_generated/GanssAdditionalDataChoices.c @@ -0,0 +1,250 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GanssAdditionalDataChoices.h" + +static int +memb_orbitModelID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_clockModelID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utcModelID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_almanacModelID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_orbitModelID_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_clockModelID_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utcModelID_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_almanacModelID_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GanssAdditionalDataChoices_1[] = { + { ATF_POINTER, 4, offsetof(struct GanssAdditionalDataChoices, orbitModelID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_orbitModelID_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_orbitModelID_constraint_1 + }, + 0, 0, /* No default value */ + "orbitModelID" + }, + { ATF_POINTER, 3, offsetof(struct GanssAdditionalDataChoices, clockModelID), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_clockModelID_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_clockModelID_constraint_1 + }, + 0, 0, /* No default value */ + "clockModelID" + }, + { ATF_POINTER, 2, offsetof(struct GanssAdditionalDataChoices, utcModelID), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utcModelID_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utcModelID_constraint_1 + }, + 0, 0, /* No default value */ + "utcModelID" + }, + { ATF_POINTER, 1, offsetof(struct GanssAdditionalDataChoices, almanacModelID), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_almanacModelID_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_almanacModelID_constraint_1 + }, + 0, 0, /* No default value */ + "almanacModelID" + }, +}; +static const int asn_MAP_GanssAdditionalDataChoices_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_GanssAdditionalDataChoices_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GanssAdditionalDataChoices_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* orbitModelID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* clockModelID */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* utcModelID */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* almanacModelID */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GanssAdditionalDataChoices_specs_1 = { + sizeof(struct GanssAdditionalDataChoices), + offsetof(struct GanssAdditionalDataChoices, _asn_ctx), + asn_MAP_GanssAdditionalDataChoices_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_GanssAdditionalDataChoices_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GanssAdditionalDataChoices = { + "GanssAdditionalDataChoices", + "GanssAdditionalDataChoices", + &asn_OP_SEQUENCE, + asn_DEF_GanssAdditionalDataChoices_tags_1, + sizeof(asn_DEF_GanssAdditionalDataChoices_tags_1) + /sizeof(asn_DEF_GanssAdditionalDataChoices_tags_1[0]), /* 1 */ + asn_DEF_GanssAdditionalDataChoices_tags_1, /* Same as above */ + sizeof(asn_DEF_GanssAdditionalDataChoices_tags_1) + /sizeof(asn_DEF_GanssAdditionalDataChoices_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GanssAdditionalDataChoices_1, + 4, /* Elements count */ + &asn_SPC_GanssAdditionalDataChoices_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/GanssAdditionalDataChoices.h b/asn.1/supl_generated/GanssAdditionalDataChoices.h new file mode 100644 index 00000000..f1db9959 --- /dev/null +++ b/asn.1/supl_generated/GanssAdditionalDataChoices.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _GanssAdditionalDataChoices_H_ +#define _GanssAdditionalDataChoices_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GanssAdditionalDataChoices */ +typedef struct GanssAdditionalDataChoices { + long *orbitModelID; /* OPTIONAL */ + long *clockModelID; /* OPTIONAL */ + long *utcModelID; /* OPTIONAL */ + long *almanacModelID; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GanssAdditionalDataChoices_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GanssAdditionalDataChoices; +extern asn_SEQUENCE_specifics_t asn_SPC_GanssAdditionalDataChoices_specs_1; +extern asn_TYPE_member_t asn_MBR_GanssAdditionalDataChoices_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GanssAdditionalDataChoices_H_ */ +#include diff --git a/asn.1/supl_generated/GanssDataBits.c b/asn.1/supl_generated/GanssDataBits.c new file mode 100644 index 00000000..b39fc0fd --- /dev/null +++ b/asn.1/supl_generated/GanssDataBits.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GanssDataBits.h" + +static int +memb_ganssTODmin_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 59L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ganssTODmin_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 59 } /* (0..59) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GanssDataBits_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GanssDataBits, ganssTODmin), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ganssTODmin_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ganssTODmin_constraint_1 + }, + 0, 0, /* No default value */ + "ganssTODmin" + }, + { ATF_NOFLAGS, 0, offsetof(struct GanssDataBits, reqDataBitAssistanceList), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReqDataBitAssistanceList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reqDataBitAssistanceList" + }, +}; +static const ber_tlv_tag_t asn_DEF_GanssDataBits_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GanssDataBits_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssTODmin */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* reqDataBitAssistanceList */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GanssDataBits_specs_1 = { + sizeof(struct GanssDataBits), + offsetof(struct GanssDataBits, _asn_ctx), + asn_MAP_GanssDataBits_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GanssDataBits = { + "GanssDataBits", + "GanssDataBits", + &asn_OP_SEQUENCE, + asn_DEF_GanssDataBits_tags_1, + sizeof(asn_DEF_GanssDataBits_tags_1) + /sizeof(asn_DEF_GanssDataBits_tags_1[0]), /* 1 */ + asn_DEF_GanssDataBits_tags_1, /* Same as above */ + sizeof(asn_DEF_GanssDataBits_tags_1) + /sizeof(asn_DEF_GanssDataBits_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GanssDataBits_1, + 2, /* Elements count */ + &asn_SPC_GanssDataBits_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GanssDataBits.h b/asn.1/supl_generated/GanssDataBits.h similarity index 78% rename from asn.1/generated/GanssDataBits.h rename to asn.1/supl_generated/GanssDataBits.h index be05775c..9eaf6acf 100644 --- a/asn.1/generated/GanssDataBits.h +++ b/asn.1/supl_generated/GanssDataBits.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _GanssDataBits_H_ diff --git a/asn.1/supl_generated/GanssExtendedEphCheck.c b/asn.1/supl_generated/GanssExtendedEphCheck.c new file mode 100644 index 00000000..97bcc9b3 --- /dev/null +++ b/asn.1/supl_generated/GanssExtendedEphCheck.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GanssExtendedEphCheck.h" + +asn_TYPE_member_t asn_MBR_GanssExtendedEphCheck_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GanssExtendedEphCheck, beginTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GANSSextEphTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "beginTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct GanssExtendedEphCheck, endTime), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GANSSextEphTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "endTime" + }, +}; +static const ber_tlv_tag_t asn_DEF_GanssExtendedEphCheck_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GanssExtendedEphCheck_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* beginTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* endTime */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GanssExtendedEphCheck_specs_1 = { + sizeof(struct GanssExtendedEphCheck), + offsetof(struct GanssExtendedEphCheck, _asn_ctx), + asn_MAP_GanssExtendedEphCheck_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GanssExtendedEphCheck = { + "GanssExtendedEphCheck", + "GanssExtendedEphCheck", + &asn_OP_SEQUENCE, + asn_DEF_GanssExtendedEphCheck_tags_1, + sizeof(asn_DEF_GanssExtendedEphCheck_tags_1) + /sizeof(asn_DEF_GanssExtendedEphCheck_tags_1[0]), /* 1 */ + asn_DEF_GanssExtendedEphCheck_tags_1, /* Same as above */ + sizeof(asn_DEF_GanssExtendedEphCheck_tags_1) + /sizeof(asn_DEF_GanssExtendedEphCheck_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GanssExtendedEphCheck_1, + 2, /* Elements count */ + &asn_SPC_GanssExtendedEphCheck_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GanssExtendedEphCheck.h b/asn.1/supl_generated/GanssExtendedEphCheck.h similarity index 78% rename from asn.1/generated/GanssExtendedEphCheck.h rename to asn.1/supl_generated/GanssExtendedEphCheck.h index 0c88efe8..45f5d240 100644 --- a/asn.1/generated/GanssExtendedEphCheck.h +++ b/asn.1/supl_generated/GanssExtendedEphCheck.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _GanssExtendedEphCheck_H_ diff --git a/asn.1/supl_generated/GanssNavigationModelData.c b/asn.1/supl_generated/GanssNavigationModelData.c new file mode 100644 index 00000000..2a281411 --- /dev/null +++ b/asn.1/supl_generated/GanssNavigationModelData.c @@ -0,0 +1,219 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GanssNavigationModelData.h" + +#include "SatellitesListRelatedDataList.h" +static int +memb_ganssWeek_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ganssToe_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 167L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_t_toeLimit_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ganssWeek_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ganssToe_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 167 } /* (0..167) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_t_toeLimit_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GanssNavigationModelData_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GanssNavigationModelData, ganssWeek), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ganssWeek_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ganssWeek_constraint_1 + }, + 0, 0, /* No default value */ + "ganssWeek" + }, + { ATF_NOFLAGS, 0, offsetof(struct GanssNavigationModelData, ganssToe), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ganssToe_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ganssToe_constraint_1 + }, + 0, 0, /* No default value */ + "ganssToe" + }, + { ATF_NOFLAGS, 0, offsetof(struct GanssNavigationModelData, t_toeLimit), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_t_toeLimit_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_t_toeLimit_constraint_1 + }, + 0, 0, /* No default value */ + "t-toeLimit" + }, + { ATF_POINTER, 1, offsetof(struct GanssNavigationModelData, satellitesListRelatedDataList), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SatellitesListRelatedDataList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "satellitesListRelatedDataList" + }, +}; +static const int asn_MAP_GanssNavigationModelData_oms_1[] = { 3 }; +static const ber_tlv_tag_t asn_DEF_GanssNavigationModelData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GanssNavigationModelData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssWeek */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssToe */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* t-toeLimit */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* satellitesListRelatedDataList */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GanssNavigationModelData_specs_1 = { + sizeof(struct GanssNavigationModelData), + offsetof(struct GanssNavigationModelData, _asn_ctx), + asn_MAP_GanssNavigationModelData_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_GanssNavigationModelData_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GanssNavigationModelData = { + "GanssNavigationModelData", + "GanssNavigationModelData", + &asn_OP_SEQUENCE, + asn_DEF_GanssNavigationModelData_tags_1, + sizeof(asn_DEF_GanssNavigationModelData_tags_1) + /sizeof(asn_DEF_GanssNavigationModelData_tags_1[0]), /* 1 */ + asn_DEF_GanssNavigationModelData_tags_1, /* Same as above */ + sizeof(asn_DEF_GanssNavigationModelData_tags_1) + /sizeof(asn_DEF_GanssNavigationModelData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GanssNavigationModelData_1, + 4, /* Elements count */ + &asn_SPC_GanssNavigationModelData_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GanssNavigationModelData.h b/asn.1/supl_generated/GanssNavigationModelData.h similarity index 79% rename from asn.1/generated/GanssNavigationModelData.h rename to asn.1/supl_generated/GanssNavigationModelData.h index 21e121c9..cdb6fa1a 100644 --- a/asn.1/generated/GanssNavigationModelData.h +++ b/asn.1/supl_generated/GanssNavigationModelData.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _GanssNavigationModelData_H_ @@ -27,7 +27,7 @@ typedef struct GanssNavigationModelData { long ganssWeek; long ganssToe; long t_toeLimit; - struct SatellitesListRelatedDataList *satellitesListRelatedDataList /* OPTIONAL */; + struct SatellitesListRelatedDataList *satellitesListRelatedDataList; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -46,8 +46,5 @@ extern asn_TYPE_member_t asn_MBR_GanssNavigationModelData_1[4]; } #endif -/* Referred external types */ -#include "SatellitesListRelatedDataList.h" - #endif /* _GanssNavigationModelData_H_ */ #include diff --git a/asn.1/supl_generated/GanssReqGenericData.c b/asn.1/supl_generated/GanssReqGenericData.c new file mode 100644 index 00000000..0293c1fe --- /dev/null +++ b/asn.1/supl_generated/GanssReqGenericData.c @@ -0,0 +1,415 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GanssReqGenericData.h" + +#include "GanssNavigationModelData.h" +#include "GanssDataBits.h" +#include "GanssAdditionalDataChoices.h" +#include "ExtendedEphemeris.h" +#include "GanssExtendedEphCheck.h" +static int +memb_ganssId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ganssSBASid_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 3UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ganssTimeModels_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 16UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ganssId_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ganssSBASid_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ganssTimeModels_constr_8 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GanssReqGenericData_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GanssReqGenericData, ganssId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ganssId_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ganssId_constraint_1 + }, + 0, 0, /* No default value */ + "ganssId" + }, + { ATF_POINTER, 1, offsetof(struct GanssReqGenericData, ganssSBASid), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ganssSBASid_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ganssSBASid_constraint_1 + }, + 0, 0, /* No default value */ + "ganssSBASid" + }, + { ATF_NOFLAGS, 0, offsetof(struct GanssReqGenericData, ganssRealTimeIntegrity), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ganssRealTimeIntegrity" + }, + { ATF_POINTER, 1, offsetof(struct GanssReqGenericData, ganssDifferentialCorrection), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DGANSS_Sig_Id_Req, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ganssDifferentialCorrection" + }, + { ATF_NOFLAGS, 0, offsetof(struct GanssReqGenericData, ganssAlmanac), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ganssAlmanac" + }, + { ATF_POINTER, 2, offsetof(struct GanssReqGenericData, ganssNavigationModelData), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GanssNavigationModelData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ganssNavigationModelData" + }, + { ATF_POINTER, 1, offsetof(struct GanssReqGenericData, ganssTimeModels), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ganssTimeModels_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ganssTimeModels_constraint_1 + }, + 0, 0, /* No default value */ + "ganssTimeModels" + }, + { ATF_NOFLAGS, 0, offsetof(struct GanssReqGenericData, ganssReferenceMeasurementInfo), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ganssReferenceMeasurementInfo" + }, + { ATF_POINTER, 1, offsetof(struct GanssReqGenericData, ganssDataBits), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GanssDataBits, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ganssDataBits" + }, + { ATF_NOFLAGS, 0, offsetof(struct GanssReqGenericData, ganssUTCModel), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ganssUTCModel" + }, + { ATF_POINTER, 1, offsetof(struct GanssReqGenericData, ganssAdditionalDataChoices), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GanssAdditionalDataChoices, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ganssAdditionalDataChoices" + }, + { ATF_NOFLAGS, 0, offsetof(struct GanssReqGenericData, ganssAuxiliaryInformation), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ganssAuxiliaryInformation" + }, + { ATF_POINTER, 2, offsetof(struct GanssReqGenericData, ganssExtendedEphemeris), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ExtendedEphemeris, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ganssExtendedEphemeris" + }, + { ATF_POINTER, 1, offsetof(struct GanssReqGenericData, ganssExtendedEphemerisCheck), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GanssExtendedEphCheck, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ganssExtendedEphemerisCheck" + }, +}; +static const int asn_MAP_GanssReqGenericData_oms_1[] = { 1, 3, 5, 6, 8, 10, 12, 13 }; +static const ber_tlv_tag_t asn_DEF_GanssReqGenericData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GanssReqGenericData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssSBASid */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ganssRealTimeIntegrity */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ganssDifferentialCorrection */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ganssAlmanac */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ganssNavigationModelData */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ganssTimeModels */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ganssReferenceMeasurementInfo */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ganssDataBits */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* ganssUTCModel */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* ganssAdditionalDataChoices */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* ganssAuxiliaryInformation */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ganssExtendedEphemeris */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 } /* ganssExtendedEphemerisCheck */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GanssReqGenericData_specs_1 = { + sizeof(struct GanssReqGenericData), + offsetof(struct GanssReqGenericData, _asn_ctx), + asn_MAP_GanssReqGenericData_tag2el_1, + 14, /* Count of tags in the map */ + asn_MAP_GanssReqGenericData_oms_1, /* Optional members */ + 8, 0, /* Root/Additions */ + 14, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GanssReqGenericData = { + "GanssReqGenericData", + "GanssReqGenericData", + &asn_OP_SEQUENCE, + asn_DEF_GanssReqGenericData_tags_1, + sizeof(asn_DEF_GanssReqGenericData_tags_1) + /sizeof(asn_DEF_GanssReqGenericData_tags_1[0]), /* 1 */ + asn_DEF_GanssReqGenericData_tags_1, /* Same as above */ + sizeof(asn_DEF_GanssReqGenericData_tags_1) + /sizeof(asn_DEF_GanssReqGenericData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GanssReqGenericData_1, + 14, /* Elements count */ + &asn_SPC_GanssReqGenericData_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/GanssReqGenericData.h b/asn.1/supl_generated/GanssReqGenericData.h new file mode 100644 index 00000000..1776551e --- /dev/null +++ b/asn.1/supl_generated/GanssReqGenericData.h @@ -0,0 +1,67 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _GanssReqGenericData_H_ +#define _GanssReqGenericData_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include "DGANSS-Sig-Id-Req.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GanssNavigationModelData; +struct GanssDataBits; +struct GanssAdditionalDataChoices; +struct ExtendedEphemeris; +struct GanssExtendedEphCheck; + +/* GanssReqGenericData */ +typedef struct GanssReqGenericData { + long ganssId; + BIT_STRING_t *ganssSBASid; /* OPTIONAL */ + BOOLEAN_t ganssRealTimeIntegrity; + DGANSS_Sig_Id_Req_t *ganssDifferentialCorrection; /* OPTIONAL */ + BOOLEAN_t ganssAlmanac; + struct GanssNavigationModelData *ganssNavigationModelData; /* OPTIONAL */ + BIT_STRING_t *ganssTimeModels; /* OPTIONAL */ + BOOLEAN_t ganssReferenceMeasurementInfo; + struct GanssDataBits *ganssDataBits; /* OPTIONAL */ + BOOLEAN_t ganssUTCModel; + struct GanssAdditionalDataChoices *ganssAdditionalDataChoices; /* OPTIONAL */ + BOOLEAN_t ganssAuxiliaryInformation; + struct ExtendedEphemeris *ganssExtendedEphemeris; /* OPTIONAL */ + struct GanssExtendedEphCheck *ganssExtendedEphemerisCheck; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GanssReqGenericData_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GanssReqGenericData; +extern asn_SEQUENCE_specifics_t asn_SPC_GanssReqGenericData_specs_1; +extern asn_TYPE_member_t asn_MBR_GanssReqGenericData_1[14]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GanssReqGenericData_H_ */ +#include diff --git a/asn.1/supl_generated/GanssRequestedCommonAssistanceDataList.c b/asn.1/supl_generated/GanssRequestedCommonAssistanceDataList.c new file mode 100644 index 00000000..c197c75c --- /dev/null +++ b/asn.1/supl_generated/GanssRequestedCommonAssistanceDataList.c @@ -0,0 +1,138 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GanssRequestedCommonAssistanceDataList.h" + +asn_TYPE_member_t asn_MBR_GanssRequestedCommonAssistanceDataList_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GanssRequestedCommonAssistanceDataList, ganssReferenceTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ganssReferenceTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct GanssRequestedCommonAssistanceDataList, ganssIonosphericModel), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ganssIonosphericModel" + }, + { ATF_NOFLAGS, 0, offsetof(struct GanssRequestedCommonAssistanceDataList, ganssAdditionalIonosphericModelForDataID00), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ganssAdditionalIonosphericModelForDataID00" + }, + { ATF_NOFLAGS, 0, offsetof(struct GanssRequestedCommonAssistanceDataList, ganssAdditionalIonosphericModelForDataID11), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ganssAdditionalIonosphericModelForDataID11" + }, + { ATF_NOFLAGS, 0, offsetof(struct GanssRequestedCommonAssistanceDataList, ganssEarthOrientationParameters), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ganssEarthOrientationParameters" + }, +}; +static const ber_tlv_tag_t asn_DEF_GanssRequestedCommonAssistanceDataList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GanssRequestedCommonAssistanceDataList_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssReferenceTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssIonosphericModel */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ganssAdditionalIonosphericModelForDataID00 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ganssAdditionalIonosphericModelForDataID11 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ganssEarthOrientationParameters */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GanssRequestedCommonAssistanceDataList_specs_1 = { + sizeof(struct GanssRequestedCommonAssistanceDataList), + offsetof(struct GanssRequestedCommonAssistanceDataList, _asn_ctx), + asn_MAP_GanssRequestedCommonAssistanceDataList_tag2el_1, + 5, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GanssRequestedCommonAssistanceDataList = { + "GanssRequestedCommonAssistanceDataList", + "GanssRequestedCommonAssistanceDataList", + &asn_OP_SEQUENCE, + asn_DEF_GanssRequestedCommonAssistanceDataList_tags_1, + sizeof(asn_DEF_GanssRequestedCommonAssistanceDataList_tags_1) + /sizeof(asn_DEF_GanssRequestedCommonAssistanceDataList_tags_1[0]), /* 1 */ + asn_DEF_GanssRequestedCommonAssistanceDataList_tags_1, /* Same as above */ + sizeof(asn_DEF_GanssRequestedCommonAssistanceDataList_tags_1) + /sizeof(asn_DEF_GanssRequestedCommonAssistanceDataList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GanssRequestedCommonAssistanceDataList_1, + 5, /* Elements count */ + &asn_SPC_GanssRequestedCommonAssistanceDataList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GanssRequestedCommonAssistanceDataList.h b/asn.1/supl_generated/GanssRequestedCommonAssistanceDataList.h similarity index 82% rename from asn.1/generated/GanssRequestedCommonAssistanceDataList.h rename to asn.1/supl_generated/GanssRequestedCommonAssistanceDataList.h index 42b44017..10017a2a 100644 --- a/asn.1/generated/GanssRequestedCommonAssistanceDataList.h +++ b/asn.1/supl_generated/GanssRequestedCommonAssistanceDataList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _GanssRequestedCommonAssistanceDataList_H_ diff --git a/asn.1/supl_generated/GanssRequestedGenericAssistanceDataList.c b/asn.1/supl_generated/GanssRequestedGenericAssistanceDataList.c new file mode 100644 index 00000000..86770f20 --- /dev/null +++ b/asn.1/supl_generated/GanssRequestedGenericAssistanceDataList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GanssRequestedGenericAssistanceDataList.h" + +#include "GanssReqGenericData.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GanssRequestedGenericAssistanceDataList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GanssRequestedGenericAssistanceDataList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GanssReqGenericData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GanssRequestedGenericAssistanceDataList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GanssRequestedGenericAssistanceDataList_specs_1 = { + sizeof(struct GanssRequestedGenericAssistanceDataList), + offsetof(struct GanssRequestedGenericAssistanceDataList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GanssRequestedGenericAssistanceDataList = { + "GanssRequestedGenericAssistanceDataList", + "GanssRequestedGenericAssistanceDataList", + &asn_OP_SEQUENCE_OF, + asn_DEF_GanssRequestedGenericAssistanceDataList_tags_1, + sizeof(asn_DEF_GanssRequestedGenericAssistanceDataList_tags_1) + /sizeof(asn_DEF_GanssRequestedGenericAssistanceDataList_tags_1[0]), /* 1 */ + asn_DEF_GanssRequestedGenericAssistanceDataList_tags_1, /* Same as above */ + sizeof(asn_DEF_GanssRequestedGenericAssistanceDataList_tags_1) + /sizeof(asn_DEF_GanssRequestedGenericAssistanceDataList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GanssRequestedGenericAssistanceDataList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GanssRequestedGenericAssistanceDataList_1, + 1, /* Single element */ + &asn_SPC_GanssRequestedGenericAssistanceDataList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GanssRequestedGenericAssistanceDataList.h b/asn.1/supl_generated/GanssRequestedGenericAssistanceDataList.h similarity index 81% rename from asn.1/generated/GanssRequestedGenericAssistanceDataList.h rename to asn.1/supl_generated/GanssRequestedGenericAssistanceDataList.h index bae4f32c..d765c96f 100644 --- a/asn.1/generated/GanssRequestedGenericAssistanceDataList.h +++ b/asn.1/supl_generated/GanssRequestedGenericAssistanceDataList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _GanssRequestedGenericAssistanceDataList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GanssRequestedGenericAssistanceDataLis } #endif -/* Referred external types */ -#include "GanssReqGenericData.h" - #endif /* _GanssRequestedGenericAssistanceDataList_H_ */ #include diff --git a/asn.1/supl_generated/GeoAreaIndex.c b/asn.1/supl_generated/GeoAreaIndex.c new file mode 100644 index 00000000..1fd3854e --- /dev/null +++ b/asn.1/supl_generated/GeoAreaIndex.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GeoAreaIndex.h" + +int +GeoAreaIndex_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 32L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GeoAreaIndex_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (1..32) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_GeoAreaIndex_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_GeoAreaIndex = { + "GeoAreaIndex", + "GeoAreaIndex", + &asn_OP_NativeInteger, + asn_DEF_GeoAreaIndex_tags_1, + sizeof(asn_DEF_GeoAreaIndex_tags_1) + /sizeof(asn_DEF_GeoAreaIndex_tags_1[0]), /* 1 */ + asn_DEF_GeoAreaIndex_tags_1, /* Same as above */ + sizeof(asn_DEF_GeoAreaIndex_tags_1) + /sizeof(asn_DEF_GeoAreaIndex_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GeoAreaIndex_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + GeoAreaIndex_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/supl_generated/GeoAreaIndex.h b/asn.1/supl_generated/GeoAreaIndex.h new file mode 100644 index 00000000..3cdd4b42 --- /dev/null +++ b/asn.1/supl_generated/GeoAreaIndex.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _GeoAreaIndex_H_ +#define _GeoAreaIndex_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* GeoAreaIndex */ +typedef long GeoAreaIndex_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_GeoAreaIndex_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_GeoAreaIndex; +asn_struct_free_f GeoAreaIndex_free; +asn_constr_check_f GeoAreaIndex_constraint; +xer_type_decoder_f GeoAreaIndex_decode_xer; +xer_type_encoder_f GeoAreaIndex_encode_xer; +jer_type_encoder_f GeoAreaIndex_encode_jer; +per_type_decoder_f GeoAreaIndex_decode_uper; +per_type_encoder_f GeoAreaIndex_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _GeoAreaIndex_H_ */ +#include diff --git a/asn.1/supl_generated/GeoAreaMappingList.c b/asn.1/supl_generated/GeoAreaMappingList.c new file mode 100644 index 00000000..d955670c --- /dev/null +++ b/asn.1/supl_generated/GeoAreaMappingList.c @@ -0,0 +1,67 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GeoAreaMappingList.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GeoAreaMappingList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GeoAreaMappingList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_GeoAreaIndex, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GeoAreaMappingList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GeoAreaMappingList_specs_1 = { + sizeof(struct GeoAreaMappingList), + offsetof(struct GeoAreaMappingList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GeoAreaMappingList = { + "GeoAreaMappingList", + "GeoAreaMappingList", + &asn_OP_SEQUENCE_OF, + asn_DEF_GeoAreaMappingList_tags_1, + sizeof(asn_DEF_GeoAreaMappingList_tags_1) + /sizeof(asn_DEF_GeoAreaMappingList_tags_1[0]), /* 1 */ + asn_DEF_GeoAreaMappingList_tags_1, /* Same as above */ + sizeof(asn_DEF_GeoAreaMappingList_tags_1) + /sizeof(asn_DEF_GeoAreaMappingList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GeoAreaMappingList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GeoAreaMappingList_1, + 1, /* Single element */ + &asn_SPC_GeoAreaMappingList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GeoAreaMappingList.h b/asn.1/supl_generated/GeoAreaMappingList.h similarity index 78% rename from asn.1/generated/GeoAreaMappingList.h rename to asn.1/supl_generated/GeoAreaMappingList.h index 407bd58c..f35360da 100644 --- a/asn.1/generated/GeoAreaMappingList.h +++ b/asn.1/supl_generated/GeoAreaMappingList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _GeoAreaMappingList_H_ diff --git a/asn.1/supl_generated/GeoAreaShapesSupported.c b/asn.1/supl_generated/GeoAreaShapesSupported.c new file mode 100644 index 00000000..cc66dcbc --- /dev/null +++ b/asn.1/supl_generated/GeoAreaShapesSupported.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GeoAreaShapesSupported.h" + +asn_TYPE_member_t asn_MBR_GeoAreaShapesSupported_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GeoAreaShapesSupported, ellipticalArea), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ellipticalArea" + }, + { ATF_NOFLAGS, 0, offsetof(struct GeoAreaShapesSupported, polygonArea), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "polygonArea" + }, +}; +static const ber_tlv_tag_t asn_DEF_GeoAreaShapesSupported_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GeoAreaShapesSupported_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ellipticalArea */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* polygonArea */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GeoAreaShapesSupported_specs_1 = { + sizeof(struct GeoAreaShapesSupported), + offsetof(struct GeoAreaShapesSupported, _asn_ctx), + asn_MAP_GeoAreaShapesSupported_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GeoAreaShapesSupported = { + "GeoAreaShapesSupported", + "GeoAreaShapesSupported", + &asn_OP_SEQUENCE, + asn_DEF_GeoAreaShapesSupported_tags_1, + sizeof(asn_DEF_GeoAreaShapesSupported_tags_1) + /sizeof(asn_DEF_GeoAreaShapesSupported_tags_1[0]), /* 1 */ + asn_DEF_GeoAreaShapesSupported_tags_1, /* Same as above */ + sizeof(asn_DEF_GeoAreaShapesSupported_tags_1) + /sizeof(asn_DEF_GeoAreaShapesSupported_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GeoAreaShapesSupported_1, + 2, /* Elements count */ + &asn_SPC_GeoAreaShapesSupported_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GeoAreaShapesSupported.h b/asn.1/supl_generated/GeoAreaShapesSupported.h similarity index 78% rename from asn.1/generated/GeoAreaShapesSupported.h rename to asn.1/supl_generated/GeoAreaShapesSupported.h index 4f9697a6..29350590 100644 --- a/asn.1/generated/GeoAreaShapesSupported.h +++ b/asn.1/supl_generated/GeoAreaShapesSupported.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _GeoAreaShapesSupported_H_ diff --git a/asn.1/supl_generated/GeographicTargetArea.c b/asn.1/supl_generated/GeographicTargetArea.c new file mode 100644 index 00000000..cd9199e1 --- /dev/null +++ b/asn.1/supl_generated/GeographicTargetArea.c @@ -0,0 +1,106 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GeographicTargetArea.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GeographicTargetArea_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GeographicTargetArea_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GeographicTargetArea, choice.circularArea), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CircularArea, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "circularArea" + }, + { ATF_NOFLAGS, 0, offsetof(struct GeographicTargetArea, choice.ellipticalArea), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EllipticalArea, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ellipticalArea" + }, + { ATF_NOFLAGS, 0, offsetof(struct GeographicTargetArea, choice.polygonArea), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PolygonArea, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "polygonArea" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_GeographicTargetArea_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* circularArea */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ellipticalArea */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* polygonArea */ +}; +asn_CHOICE_specifics_t asn_SPC_GeographicTargetArea_specs_1 = { + sizeof(struct GeographicTargetArea), + offsetof(struct GeographicTargetArea, _asn_ctx), + offsetof(struct GeographicTargetArea, present), + sizeof(((struct GeographicTargetArea *)0)->present), + asn_MAP_GeographicTargetArea_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, + 3 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_GeographicTargetArea = { + "GeographicTargetArea", + "GeographicTargetArea", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GeographicTargetArea_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_GeographicTargetArea_1, + 3, /* Elements count */ + &asn_SPC_GeographicTargetArea_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GeographicTargetArea.h b/asn.1/supl_generated/GeographicTargetArea.h similarity index 85% rename from asn.1/generated/GeographicTargetArea.h rename to asn.1/supl_generated/GeographicTargetArea.h index 3acb1f6a..39c5b200 100644 --- a/asn.1/generated/GeographicTargetArea.h +++ b/asn.1/supl_generated/GeographicTargetArea.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _GeographicTargetArea_H_ diff --git a/asn.1/supl_generated/GeographicTargetAreaList.c b/asn.1/supl_generated/GeographicTargetAreaList.c new file mode 100644 index 00000000..7dee4558 --- /dev/null +++ b/asn.1/supl_generated/GeographicTargetAreaList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GeographicTargetAreaList.h" + +#include "GeographicTargetArea.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GeographicTargetAreaList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GeographicTargetAreaList_1[] = { + { ATF_POINTER, 0, 0, + -1 /* Ambiguous tag (CHOICE?) */, + 0, + &asn_DEF_GeographicTargetArea, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GeographicTargetAreaList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_GeographicTargetAreaList_specs_1 = { + sizeof(struct GeographicTargetAreaList), + offsetof(struct GeographicTargetAreaList, _asn_ctx), + 2, /* XER encoding is XMLValueList */ +}; +asn_TYPE_descriptor_t asn_DEF_GeographicTargetAreaList = { + "GeographicTargetAreaList", + "GeographicTargetAreaList", + &asn_OP_SEQUENCE_OF, + asn_DEF_GeographicTargetAreaList_tags_1, + sizeof(asn_DEF_GeographicTargetAreaList_tags_1) + /sizeof(asn_DEF_GeographicTargetAreaList_tags_1[0]), /* 1 */ + asn_DEF_GeographicTargetAreaList_tags_1, /* Same as above */ + sizeof(asn_DEF_GeographicTargetAreaList_tags_1) + /sizeof(asn_DEF_GeographicTargetAreaList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GeographicTargetAreaList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GeographicTargetAreaList_1, + 1, /* Single element */ + &asn_SPC_GeographicTargetAreaList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GeographicTargetAreaList.h b/asn.1/supl_generated/GeographicTargetAreaList.h similarity index 80% rename from asn.1/generated/GeographicTargetAreaList.h rename to asn.1/supl_generated/GeographicTargetAreaList.h index ed16c04e..7ea1d19c 100644 --- a/asn.1/generated/GeographicTargetAreaList.h +++ b/asn.1/supl_generated/GeographicTargetAreaList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _GeographicTargetAreaList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_GeographicTargetAreaList_constr_1; } #endif -/* Referred external types */ -#include "GeographicTargetArea.h" - #endif /* _GeographicTargetAreaList_H_ */ #include diff --git a/asn.1/supl_generated/GsmCellInformation.c b/asn.1/supl_generated/GsmCellInformation.c new file mode 100644 index 00000000..0678dac1 --- /dev/null +++ b/asn.1/supl_generated/GsmCellInformation.c @@ -0,0 +1,319 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "GsmCellInformation.h" + +#include "NMR.h" +static int +memb_refMCC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refMNC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refLAC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refCI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_tA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refMCC_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refMNC_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refLAC_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refCI_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tA_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_GsmCellInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GsmCellInformation, refMCC), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refMCC_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refMCC_constraint_1 + }, + 0, 0, /* No default value */ + "refMCC" + }, + { ATF_NOFLAGS, 0, offsetof(struct GsmCellInformation, refMNC), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refMNC_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refMNC_constraint_1 + }, + 0, 0, /* No default value */ + "refMNC" + }, + { ATF_NOFLAGS, 0, offsetof(struct GsmCellInformation, refLAC), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refLAC_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refLAC_constraint_1 + }, + 0, 0, /* No default value */ + "refLAC" + }, + { ATF_NOFLAGS, 0, offsetof(struct GsmCellInformation, refCI), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refCI_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refCI_constraint_1 + }, + 0, 0, /* No default value */ + "refCI" + }, + { ATF_POINTER, 2, offsetof(struct GsmCellInformation, nMR), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NMR, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nMR" + }, + { ATF_POINTER, 1, offsetof(struct GsmCellInformation, tA), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tA_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tA_constraint_1 + }, + 0, 0, /* No default value */ + "tA" + }, +}; +static const int asn_MAP_GsmCellInformation_oms_1[] = { 4, 5 }; +static const ber_tlv_tag_t asn_DEF_GsmCellInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GsmCellInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refMCC */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refMNC */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* refLAC */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* refCI */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nMR */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* tA */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GsmCellInformation_specs_1 = { + sizeof(struct GsmCellInformation), + offsetof(struct GsmCellInformation, _asn_ctx), + asn_MAP_GsmCellInformation_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_GsmCellInformation_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GsmCellInformation = { + "GsmCellInformation", + "GsmCellInformation", + &asn_OP_SEQUENCE, + asn_DEF_GsmCellInformation_tags_1, + sizeof(asn_DEF_GsmCellInformation_tags_1) + /sizeof(asn_DEF_GsmCellInformation_tags_1[0]), /* 1 */ + asn_DEF_GsmCellInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_GsmCellInformation_tags_1) + /sizeof(asn_DEF_GsmCellInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GsmCellInformation_1, + 6, /* Elements count */ + &asn_SPC_GsmCellInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/GsmCellInformation.h b/asn.1/supl_generated/GsmCellInformation.h similarity index 75% rename from asn.1/generated/GsmCellInformation.h rename to asn.1/supl_generated/GsmCellInformation.h index f8861a0f..dcb52ab6 100644 --- a/asn.1/generated/GsmCellInformation.h +++ b/asn.1/supl_generated/GsmCellInformation.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _GsmCellInformation_H_ @@ -28,8 +28,8 @@ typedef struct GsmCellInformation { long refMNC; long refLAC; long refCI; - struct NMR *nMR /* OPTIONAL */; - long *tA /* OPTIONAL */; + struct NMR *nMR; /* OPTIONAL */ + long *tA; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -48,8 +48,5 @@ extern asn_TYPE_member_t asn_MBR_GsmCellInformation_1[6]; } #endif -/* Referred external types */ -#include "NMR.h" - #endif /* _GsmCellInformation_H_ */ #include diff --git a/asn.1/supl_generated/HRPDAreaId.c b/asn.1/supl_generated/HRPDAreaId.c new file mode 100644 index 00000000..5dbacce5 --- /dev/null +++ b/asn.1/supl_generated/HRPDAreaId.c @@ -0,0 +1,104 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "HRPDAreaId.h" + +static int +memb_refSECTORID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 128UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refSECTORID_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_HRPDAreaId_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HRPDAreaId, refSECTORID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refSECTORID_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refSECTORID_constraint_1 + }, + 0, 0, /* No default value */ + "refSECTORID" + }, +}; +static const ber_tlv_tag_t asn_DEF_HRPDAreaId_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HRPDAreaId_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* refSECTORID */ +}; +asn_SEQUENCE_specifics_t asn_SPC_HRPDAreaId_specs_1 = { + sizeof(struct HRPDAreaId), + offsetof(struct HRPDAreaId, _asn_ctx), + asn_MAP_HRPDAreaId_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_HRPDAreaId = { + "HRPDAreaId", + "HRPDAreaId", + &asn_OP_SEQUENCE, + asn_DEF_HRPDAreaId_tags_1, + sizeof(asn_DEF_HRPDAreaId_tags_1) + /sizeof(asn_DEF_HRPDAreaId_tags_1[0]), /* 1 */ + asn_DEF_HRPDAreaId_tags_1, /* Same as above */ + sizeof(asn_DEF_HRPDAreaId_tags_1) + /sizeof(asn_DEF_HRPDAreaId_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_HRPDAreaId_1, + 1, /* Elements count */ + &asn_SPC_HRPDAreaId_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/HRPDAreaId.h b/asn.1/supl_generated/HRPDAreaId.h similarity index 76% rename from asn.1/generated/HRPDAreaId.h rename to asn.1/supl_generated/HRPDAreaId.h index 86fd1e47..bffd73c8 100644 --- a/asn.1/generated/HRPDAreaId.h +++ b/asn.1/supl_generated/HRPDAreaId.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _HRPDAreaId_H_ diff --git a/asn.1/supl_generated/HistoricReporting.c b/asn.1/supl_generated/HistoricReporting.c new file mode 100644 index 00000000..51e6de00 --- /dev/null +++ b/asn.1/supl_generated/HistoricReporting.c @@ -0,0 +1,87 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "HistoricReporting.h" + +#include "ReportingCriteria.h" +asn_TYPE_member_t asn_MBR_HistoricReporting_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HistoricReporting, allowedReportingType), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AllowedReportingType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "allowedReportingType" + }, + { ATF_POINTER, 1, offsetof(struct HistoricReporting, reportingCriteria), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReportingCriteria, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reportingCriteria" + }, +}; +static const int asn_MAP_HistoricReporting_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_HistoricReporting_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HistoricReporting_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* allowedReportingType */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* reportingCriteria */ +}; +asn_SEQUENCE_specifics_t asn_SPC_HistoricReporting_specs_1 = { + sizeof(struct HistoricReporting), + offsetof(struct HistoricReporting, _asn_ctx), + asn_MAP_HistoricReporting_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_HistoricReporting_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_HistoricReporting = { + "HistoricReporting", + "HistoricReporting", + &asn_OP_SEQUENCE, + asn_DEF_HistoricReporting_tags_1, + sizeof(asn_DEF_HistoricReporting_tags_1) + /sizeof(asn_DEF_HistoricReporting_tags_1[0]), /* 1 */ + asn_DEF_HistoricReporting_tags_1, /* Same as above */ + sizeof(asn_DEF_HistoricReporting_tags_1) + /sizeof(asn_DEF_HistoricReporting_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_HistoricReporting_1, + 2, /* Elements count */ + &asn_SPC_HistoricReporting_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/HistoricReporting.h b/asn.1/supl_generated/HistoricReporting.h similarity index 75% rename from asn.1/generated/HistoricReporting.h rename to asn.1/supl_generated/HistoricReporting.h index d62e3706..e70c8dea 100644 --- a/asn.1/generated/HistoricReporting.h +++ b/asn.1/supl_generated/HistoricReporting.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _HistoricReporting_H_ @@ -25,7 +25,7 @@ struct ReportingCriteria; /* HistoricReporting */ typedef struct HistoricReporting { AllowedReportingType_t allowedReportingType; - struct ReportingCriteria *reportingCriteria /* OPTIONAL */; + struct ReportingCriteria *reportingCriteria; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -44,8 +44,5 @@ extern asn_TYPE_member_t asn_MBR_HistoricReporting_1[2]; } #endif -/* Referred external types */ -#include "ReportingCriteria.h" - #endif /* _HistoricReporting_H_ */ #include diff --git a/asn.1/supl_generated/Horandveruncert.c b/asn.1/supl_generated/Horandveruncert.c new file mode 100644 index 00000000..ebbd58c7 --- /dev/null +++ b/asn.1/supl_generated/Horandveruncert.c @@ -0,0 +1,384 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Horandveruncert.h" + +static int +memb_verdirect_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 1UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bearing_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 9UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_horspeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 16UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_verspeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_horuncertspeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_veruncertspeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_verdirect_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 1, 1 } /* (SIZE(1..1)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bearing_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 9, 9 } /* (SIZE(9..9)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horspeed_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_verspeed_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horuncertspeed_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_veruncertspeed_constr_7 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Horandveruncert_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Horandveruncert, verdirect), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_verdirect_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_verdirect_constraint_1 + }, + 0, 0, /* No default value */ + "verdirect" + }, + { ATF_NOFLAGS, 0, offsetof(struct Horandveruncert, bearing), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bearing_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bearing_constraint_1 + }, + 0, 0, /* No default value */ + "bearing" + }, + { ATF_NOFLAGS, 0, offsetof(struct Horandveruncert, horspeed), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horspeed_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horspeed_constraint_1 + }, + 0, 0, /* No default value */ + "horspeed" + }, + { ATF_NOFLAGS, 0, offsetof(struct Horandveruncert, verspeed), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_verspeed_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_verspeed_constraint_1 + }, + 0, 0, /* No default value */ + "verspeed" + }, + { ATF_NOFLAGS, 0, offsetof(struct Horandveruncert, horuncertspeed), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horuncertspeed_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horuncertspeed_constraint_1 + }, + 0, 0, /* No default value */ + "horuncertspeed" + }, + { ATF_NOFLAGS, 0, offsetof(struct Horandveruncert, veruncertspeed), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_veruncertspeed_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_veruncertspeed_constraint_1 + }, + 0, 0, /* No default value */ + "veruncertspeed" + }, +}; +static const ber_tlv_tag_t asn_DEF_Horandveruncert_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Horandveruncert_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* verdirect */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bearing */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* horspeed */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* verspeed */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* horuncertspeed */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* veruncertspeed */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Horandveruncert_specs_1 = { + sizeof(struct Horandveruncert), + offsetof(struct Horandveruncert, _asn_ctx), + asn_MAP_Horandveruncert_tag2el_1, + 6, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Horandveruncert = { + "Horandveruncert", + "Horandveruncert", + &asn_OP_SEQUENCE, + asn_DEF_Horandveruncert_tags_1, + sizeof(asn_DEF_Horandveruncert_tags_1) + /sizeof(asn_DEF_Horandveruncert_tags_1[0]), /* 1 */ + asn_DEF_Horandveruncert_tags_1, /* Same as above */ + sizeof(asn_DEF_Horandveruncert_tags_1) + /sizeof(asn_DEF_Horandveruncert_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Horandveruncert_1, + 6, /* Elements count */ + &asn_SPC_Horandveruncert_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Horandveruncert.h b/asn.1/supl_generated/Horandveruncert.h similarity index 80% rename from asn.1/generated/Horandveruncert.h rename to asn.1/supl_generated/Horandveruncert.h index 6cb69b0c..c6016514 100644 --- a/asn.1/generated/Horandveruncert.h +++ b/asn.1/supl_generated/Horandveruncert.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _Horandveruncert_H_ diff --git a/asn.1/supl_generated/Horandvervel.c b/asn.1/supl_generated/Horandvervel.c new file mode 100644 index 00000000..87c28c82 --- /dev/null +++ b/asn.1/supl_generated/Horandvervel.c @@ -0,0 +1,272 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Horandvervel.h" + +static int +memb_verdirect_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 1UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bearing_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 9UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_horspeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 16UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_verspeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_verdirect_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 1, 1 } /* (SIZE(1..1)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bearing_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 9, 9 } /* (SIZE(9..9)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horspeed_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_verspeed_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Horandvervel_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Horandvervel, verdirect), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_verdirect_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_verdirect_constraint_1 + }, + 0, 0, /* No default value */ + "verdirect" + }, + { ATF_NOFLAGS, 0, offsetof(struct Horandvervel, bearing), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bearing_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bearing_constraint_1 + }, + 0, 0, /* No default value */ + "bearing" + }, + { ATF_NOFLAGS, 0, offsetof(struct Horandvervel, horspeed), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horspeed_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horspeed_constraint_1 + }, + 0, 0, /* No default value */ + "horspeed" + }, + { ATF_NOFLAGS, 0, offsetof(struct Horandvervel, verspeed), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_verspeed_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_verspeed_constraint_1 + }, + 0, 0, /* No default value */ + "verspeed" + }, +}; +static const ber_tlv_tag_t asn_DEF_Horandvervel_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Horandvervel_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* verdirect */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bearing */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* horspeed */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* verspeed */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Horandvervel_specs_1 = { + sizeof(struct Horandvervel), + offsetof(struct Horandvervel, _asn_ctx), + asn_MAP_Horandvervel_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Horandvervel = { + "Horandvervel", + "Horandvervel", + &asn_OP_SEQUENCE, + asn_DEF_Horandvervel_tags_1, + sizeof(asn_DEF_Horandvervel_tags_1) + /sizeof(asn_DEF_Horandvervel_tags_1[0]), /* 1 */ + asn_DEF_Horandvervel_tags_1, /* Same as above */ + sizeof(asn_DEF_Horandvervel_tags_1) + /sizeof(asn_DEF_Horandvervel_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Horandvervel_1, + 4, /* Elements count */ + &asn_SPC_Horandvervel_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Horandvervel.h b/asn.1/supl_generated/Horandvervel.h similarity index 78% rename from asn.1/generated/Horandvervel.h rename to asn.1/supl_generated/Horandvervel.h index 95af76ce..678b695a 100644 --- a/asn.1/generated/Horandvervel.h +++ b/asn.1/supl_generated/Horandvervel.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _Horandvervel_H_ diff --git a/asn.1/supl_generated/Horvel.c b/asn.1/supl_generated/Horvel.c new file mode 100644 index 00000000..6f05ea40 --- /dev/null +++ b/asn.1/supl_generated/Horvel.c @@ -0,0 +1,160 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Horvel.h" + +static int +memb_bearing_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 9UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_horspeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 16UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bearing_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 9, 9 } /* (SIZE(9..9)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horspeed_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Horvel_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Horvel, bearing), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bearing_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bearing_constraint_1 + }, + 0, 0, /* No default value */ + "bearing" + }, + { ATF_NOFLAGS, 0, offsetof(struct Horvel, horspeed), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horspeed_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horspeed_constraint_1 + }, + 0, 0, /* No default value */ + "horspeed" + }, +}; +static const ber_tlv_tag_t asn_DEF_Horvel_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Horvel_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bearing */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* horspeed */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Horvel_specs_1 = { + sizeof(struct Horvel), + offsetof(struct Horvel, _asn_ctx), + asn_MAP_Horvel_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Horvel = { + "Horvel", + "Horvel", + &asn_OP_SEQUENCE, + asn_DEF_Horvel_tags_1, + sizeof(asn_DEF_Horvel_tags_1) + /sizeof(asn_DEF_Horvel_tags_1[0]), /* 1 */ + asn_DEF_Horvel_tags_1, /* Same as above */ + sizeof(asn_DEF_Horvel_tags_1) + /sizeof(asn_DEF_Horvel_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Horvel_1, + 2, /* Elements count */ + &asn_SPC_Horvel_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Horvel.h b/asn.1/supl_generated/Horvel.h similarity index 76% rename from asn.1/generated/Horvel.h rename to asn.1/supl_generated/Horvel.h index a423fec2..e40349f4 100644 --- a/asn.1/generated/Horvel.h +++ b/asn.1/supl_generated/Horvel.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _Horvel_H_ diff --git a/asn.1/supl_generated/Horveluncert.c b/asn.1/supl_generated/Horveluncert.c new file mode 100644 index 00000000..aed89a7b --- /dev/null +++ b/asn.1/supl_generated/Horveluncert.c @@ -0,0 +1,216 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Horveluncert.h" + +static int +memb_bearing_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 9UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_horspeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 16UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertspeed_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bearing_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 9, 9 } /* (SIZE(9..9)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horspeed_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertspeed_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Horveluncert_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Horveluncert, bearing), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bearing_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bearing_constraint_1 + }, + 0, 0, /* No default value */ + "bearing" + }, + { ATF_NOFLAGS, 0, offsetof(struct Horveluncert, horspeed), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horspeed_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horspeed_constraint_1 + }, + 0, 0, /* No default value */ + "horspeed" + }, + { ATF_NOFLAGS, 0, offsetof(struct Horveluncert, uncertspeed), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertspeed_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertspeed_constraint_1 + }, + 0, 0, /* No default value */ + "uncertspeed" + }, +}; +static const ber_tlv_tag_t asn_DEF_Horveluncert_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Horveluncert_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bearing */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horspeed */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* uncertspeed */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Horveluncert_specs_1 = { + sizeof(struct Horveluncert), + offsetof(struct Horveluncert, _asn_ctx), + asn_MAP_Horveluncert_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Horveluncert = { + "Horveluncert", + "Horveluncert", + &asn_OP_SEQUENCE, + asn_DEF_Horveluncert_tags_1, + sizeof(asn_DEF_Horveluncert_tags_1) + /sizeof(asn_DEF_Horveluncert_tags_1[0]), /* 1 */ + asn_DEF_Horveluncert_tags_1, /* Same as above */ + sizeof(asn_DEF_Horveluncert_tags_1) + /sizeof(asn_DEF_Horveluncert_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Horveluncert_1, + 3, /* Elements count */ + &asn_SPC_Horveluncert_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Horveluncert.h b/asn.1/supl_generated/Horveluncert.h similarity index 78% rename from asn.1/generated/Horveluncert.h rename to asn.1/supl_generated/Horveluncert.h index 891e7916..1d2d69c0 100644 --- a/asn.1/generated/Horveluncert.h +++ b/asn.1/supl_generated/Horveluncert.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _Horveluncert_H_ diff --git a/asn.1/supl_generated/HrpdCellInformation.c b/asn.1/supl_generated/HrpdCellInformation.c new file mode 100644 index 00000000..22c8aed2 --- /dev/null +++ b/asn.1/supl_generated/HrpdCellInformation.c @@ -0,0 +1,306 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "HrpdCellInformation.h" + +static int +memb_refSECTORID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 128UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refBASELAT_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4194303L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_reBASELONG_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refWeekNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refSeconds_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4194303L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refSECTORID_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refBASELAT_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, 0, 4194303 } /* (0..4194303) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_reBASELONG_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refWeekNumber_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refSeconds_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, 0, 4194303 } /* (0..4194303) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_HrpdCellInformation_1[] = { + { ATF_POINTER, 1, offsetof(struct HrpdCellInformation, refSECTORID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refSECTORID_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refSECTORID_constraint_1 + }, + 0, 0, /* No default value */ + "refSECTORID" + }, + { ATF_NOFLAGS, 0, offsetof(struct HrpdCellInformation, refBASELAT), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refBASELAT_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refBASELAT_constraint_1 + }, + 0, 0, /* No default value */ + "refBASELAT" + }, + { ATF_NOFLAGS, 0, offsetof(struct HrpdCellInformation, reBASELONG), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_reBASELONG_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_reBASELONG_constraint_1 + }, + 0, 0, /* No default value */ + "reBASELONG" + }, + { ATF_NOFLAGS, 0, offsetof(struct HrpdCellInformation, refWeekNumber), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refWeekNumber_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refWeekNumber_constraint_1 + }, + 0, 0, /* No default value */ + "refWeekNumber" + }, + { ATF_NOFLAGS, 0, offsetof(struct HrpdCellInformation, refSeconds), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refSeconds_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refSeconds_constraint_1 + }, + 0, 0, /* No default value */ + "refSeconds" + }, +}; +static const int asn_MAP_HrpdCellInformation_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_HrpdCellInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HrpdCellInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refSECTORID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refBASELAT */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* reBASELONG */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* refWeekNumber */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* refSeconds */ +}; +asn_SEQUENCE_specifics_t asn_SPC_HrpdCellInformation_specs_1 = { + sizeof(struct HrpdCellInformation), + offsetof(struct HrpdCellInformation, _asn_ctx), + asn_MAP_HrpdCellInformation_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_HrpdCellInformation_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_HrpdCellInformation = { + "HrpdCellInformation", + "HrpdCellInformation", + &asn_OP_SEQUENCE, + asn_DEF_HrpdCellInformation_tags_1, + sizeof(asn_DEF_HrpdCellInformation_tags_1) + /sizeof(asn_DEF_HrpdCellInformation_tags_1[0]), /* 1 */ + asn_DEF_HrpdCellInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_HrpdCellInformation_tags_1) + /sizeof(asn_DEF_HrpdCellInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_HrpdCellInformation_1, + 5, /* Elements count */ + &asn_SPC_HrpdCellInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/HrpdCellInformation.h b/asn.1/supl_generated/HrpdCellInformation.h similarity index 76% rename from asn.1/generated/HrpdCellInformation.h rename to asn.1/supl_generated/HrpdCellInformation.h index 939bc2d3..ad74b278 100644 --- a/asn.1/generated/HrpdCellInformation.h +++ b/asn.1/supl_generated/HrpdCellInformation.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _HrpdCellInformation_H_ @@ -22,7 +22,7 @@ extern "C" { /* HrpdCellInformation */ typedef struct HrpdCellInformation { - BIT_STRING_t *refSECTORID /* OPTIONAL */; + BIT_STRING_t *refSECTORID; /* OPTIONAL */ long refBASELAT; long reBASELONG; long refWeekNumber; diff --git a/asn.1/supl_generated/IPAddress.c b/asn.1/supl_generated/IPAddress.c new file mode 100644 index 00000000..c6761f57 --- /dev/null +++ b/asn.1/supl_generated/IPAddress.c @@ -0,0 +1,154 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "IPAddress.h" + +static int +memb_ipv4Address_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size == 4UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ipv6Address_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size == 16UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ipv4Address_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ipv6Address_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_IPAddress_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_IPAddress_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct IPAddress, choice.ipv4Address), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OCTET_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ipv4Address_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ipv4Address_constraint_1 + }, + 0, 0, /* No default value */ + "ipv4Address" + }, + { ATF_NOFLAGS, 0, offsetof(struct IPAddress, choice.ipv6Address), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OCTET_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ipv6Address_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ipv6Address_constraint_1 + }, + 0, 0, /* No default value */ + "ipv6Address" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_IPAddress_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ipv4Address */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ipv6Address */ +}; +asn_CHOICE_specifics_t asn_SPC_IPAddress_specs_1 = { + sizeof(struct IPAddress), + offsetof(struct IPAddress, _asn_ctx), + offsetof(struct IPAddress, present), + sizeof(((struct IPAddress *)0)->present), + asn_MAP_IPAddress_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_IPAddress = { + "IPAddress", + "IPAddress", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_IPAddress_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_IPAddress_1, + 2, /* Elements count */ + &asn_SPC_IPAddress_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/IPAddress.h b/asn.1/supl_generated/IPAddress.h similarity index 81% rename from asn.1/generated/IPAddress.h rename to asn.1/supl_generated/IPAddress.h index 77b6a903..255f8dee 100644 --- a/asn.1/generated/IPAddress.h +++ b/asn.1/supl_generated/IPAddress.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _IPAddress_H_ diff --git a/asn.1/supl_generated/KeyIdentity.c b/asn.1/supl_generated/KeyIdentity.c new file mode 100644 index 00000000..d8fa2a87 --- /dev/null +++ b/asn.1/supl_generated/KeyIdentity.c @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-INIT" + * found in "src/SUPL-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "KeyIdentity.h" + +int +KeyIdentity_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 128UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using BIT_STRING, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_KeyIdentity_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_KeyIdentity_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_KeyIdentity = { + "KeyIdentity", + "KeyIdentity", + &asn_OP_BIT_STRING, + asn_DEF_KeyIdentity_tags_1, + sizeof(asn_DEF_KeyIdentity_tags_1) + /sizeof(asn_DEF_KeyIdentity_tags_1[0]), /* 1 */ + asn_DEF_KeyIdentity_tags_1, /* Same as above */ + sizeof(asn_DEF_KeyIdentity_tags_1) + /sizeof(asn_DEF_KeyIdentity_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_KeyIdentity_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + KeyIdentity_constraint + }, + 0, 0, /* No members */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/KeyIdentity.h b/asn.1/supl_generated/KeyIdentity.h new file mode 100644 index 00000000..c670fd9f --- /dev/null +++ b/asn.1/supl_generated/KeyIdentity.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-INIT" + * found in "src/SUPL-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _KeyIdentity_H_ +#define _KeyIdentity_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* KeyIdentity */ +typedef BIT_STRING_t KeyIdentity_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_KeyIdentity_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_KeyIdentity; +asn_struct_free_f KeyIdentity_free; +asn_constr_check_f KeyIdentity_constraint; +xer_type_decoder_f KeyIdentity_decode_xer; +xer_type_encoder_f KeyIdentity_encode_xer; +jer_type_encoder_f KeyIdentity_encode_jer; +per_type_decoder_f KeyIdentity_decode_uper; +per_type_encoder_f KeyIdentity_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _KeyIdentity_H_ */ +#include diff --git a/asn.1/supl_generated/KeyIdentity4.c b/asn.1/supl_generated/KeyIdentity4.c new file mode 100644 index 00000000..2de5e321 --- /dev/null +++ b/asn.1/supl_generated/KeyIdentity4.c @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-RESPONSE" + * found in "src/SUPL-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "KeyIdentity4.h" + +int +KeyIdentity4_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 128UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using BIT_STRING, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_KeyIdentity4_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_KeyIdentity4_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_KeyIdentity4 = { + "KeyIdentity4", + "KeyIdentity4", + &asn_OP_BIT_STRING, + asn_DEF_KeyIdentity4_tags_1, + sizeof(asn_DEF_KeyIdentity4_tags_1) + /sizeof(asn_DEF_KeyIdentity4_tags_1[0]), /* 1 */ + asn_DEF_KeyIdentity4_tags_1, /* Same as above */ + sizeof(asn_DEF_KeyIdentity4_tags_1) + /sizeof(asn_DEF_KeyIdentity4_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_KeyIdentity4_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + KeyIdentity4_constraint + }, + 0, 0, /* No members */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/KeyIdentity4.h b/asn.1/supl_generated/KeyIdentity4.h new file mode 100644 index 00000000..141d300b --- /dev/null +++ b/asn.1/supl_generated/KeyIdentity4.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-RESPONSE" + * found in "src/SUPL-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _KeyIdentity4_H_ +#define _KeyIdentity4_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* KeyIdentity4 */ +typedef BIT_STRING_t KeyIdentity4_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_KeyIdentity4_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_KeyIdentity4; +asn_struct_free_f KeyIdentity4_free; +asn_constr_check_f KeyIdentity4_constraint; +xer_type_decoder_f KeyIdentity4_decode_xer; +xer_type_encoder_f KeyIdentity4_encode_xer; +jer_type_encoder_f KeyIdentity4_encode_jer; +per_type_decoder_f KeyIdentity4_decode_uper; +per_type_encoder_f KeyIdentity4_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _KeyIdentity4_H_ */ +#include diff --git a/asn.1/supl_generated/LTEAreaId.c b/asn.1/supl_generated/LTEAreaId.c new file mode 100644 index 00000000..d7ab8b2a --- /dev/null +++ b/asn.1/supl_generated/LTEAreaId.c @@ -0,0 +1,206 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "LTEAreaId.h" + +static int +memb_refMCC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refMNC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refCI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 29UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refMCC_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refMNC_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refCI_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 29, 29 } /* (SIZE(29..29)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_LTEAreaId_1[] = { + { ATF_POINTER, 3, offsetof(struct LTEAreaId, refMCC), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refMCC_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refMCC_constraint_1 + }, + 0, 0, /* No default value */ + "refMCC" + }, + { ATF_POINTER, 2, offsetof(struct LTEAreaId, refMNC), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refMNC_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refMNC_constraint_1 + }, + 0, 0, /* No default value */ + "refMNC" + }, + { ATF_POINTER, 1, offsetof(struct LTEAreaId, refCI), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refCI_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refCI_constraint_1 + }, + 0, 0, /* No default value */ + "refCI" + }, +}; +static const int asn_MAP_LTEAreaId_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_LTEAreaId_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LTEAreaId_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refMCC */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refMNC */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* refCI */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LTEAreaId_specs_1 = { + sizeof(struct LTEAreaId), + offsetof(struct LTEAreaId, _asn_ctx), + asn_MAP_LTEAreaId_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_LTEAreaId_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_LTEAreaId = { + "LTEAreaId", + "LTEAreaId", + &asn_OP_SEQUENCE, + asn_DEF_LTEAreaId_tags_1, + sizeof(asn_DEF_LTEAreaId_tags_1) + /sizeof(asn_DEF_LTEAreaId_tags_1[0]), /* 1 */ + asn_DEF_LTEAreaId_tags_1, /* Same as above */ + sizeof(asn_DEF_LTEAreaId_tags_1) + /sizeof(asn_DEF_LTEAreaId_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LTEAreaId_1, + 3, /* Elements count */ + &asn_SPC_LTEAreaId_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/LTEAreaId.h b/asn.1/supl_generated/LTEAreaId.h new file mode 100644 index 00000000..332fa2dc --- /dev/null +++ b/asn.1/supl_generated/LTEAreaId.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _LTEAreaId_H_ +#define _LTEAreaId_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* LTEAreaId */ +typedef struct LTEAreaId { + long *refMCC; /* OPTIONAL */ + long *refMNC; /* OPTIONAL */ + BIT_STRING_t *refCI; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LTEAreaId_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LTEAreaId; +extern asn_SEQUENCE_specifics_t asn_SPC_LTEAreaId_specs_1; +extern asn_TYPE_member_t asn_MBR_LTEAreaId_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _LTEAreaId_H_ */ +#include diff --git a/asn.1/supl_generated/LocationData.c b/asn.1/supl_generated/LocationData.c new file mode 100644 index 00000000..d53c7b10 --- /dev/null +++ b/asn.1/supl_generated/LocationData.c @@ -0,0 +1,202 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "LocationData.h" + +static int +locationAccuracy_2_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +static int +memb_locationAccuracy_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +static int +memb_locationValue_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size >= 1UL && size <= 128UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_locationAccuracy_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_locationAccuracy_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_locationValue_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 7, 7, 1, 128 } /* (SIZE(1..128)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_specifics_t asn_SPC_locationAccuracy_specs_2 = { + 0, 0, 0, 0, 0, + 0, /* Native long size */ + 1 /* Unsigned representation */ +}; +static const ber_tlv_tag_t asn_DEF_locationAccuracy_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_locationAccuracy_2 = { + "locationAccuracy", + "locationAccuracy", + &asn_OP_NativeInteger, + asn_DEF_locationAccuracy_tags_2, + sizeof(asn_DEF_locationAccuracy_tags_2) + /sizeof(asn_DEF_locationAccuracy_tags_2[0]) - 1, /* 1 */ + asn_DEF_locationAccuracy_tags_2, /* Same as above */ + sizeof(asn_DEF_locationAccuracy_tags_2) + /sizeof(asn_DEF_locationAccuracy_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_locationAccuracy_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + locationAccuracy_2_constraint + }, + 0, 0, /* No members */ + &asn_SPC_locationAccuracy_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_LocationData_1[] = { + { ATF_POINTER, 1, offsetof(struct LocationData, locationAccuracy), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_locationAccuracy_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_locationAccuracy_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_locationAccuracy_constraint_1 + }, + 0, 0, /* No default value */ + "locationAccuracy" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationData, locationValue), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OCTET_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_locationValue_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_locationValue_constraint_1 + }, + 0, 0, /* No default value */ + "locationValue" + }, +}; +static const int asn_MAP_LocationData_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_LocationData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LocationData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationAccuracy */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* locationValue */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LocationData_specs_1 = { + sizeof(struct LocationData), + offsetof(struct LocationData, _asn_ctx), + asn_MAP_LocationData_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_LocationData_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_LocationData = { + "LocationData", + "LocationData", + &asn_OP_SEQUENCE, + asn_DEF_LocationData_tags_1, + sizeof(asn_DEF_LocationData_tags_1) + /sizeof(asn_DEF_LocationData_tags_1[0]), /* 1 */ + asn_DEF_LocationData_tags_1, /* Same as above */ + sizeof(asn_DEF_LocationData_tags_1) + /sizeof(asn_DEF_LocationData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LocationData_1, + 2, /* Elements count */ + &asn_SPC_LocationData_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/LocationData.h b/asn.1/supl_generated/LocationData.h similarity index 76% rename from asn.1/generated/LocationData.h rename to asn.1/supl_generated/LocationData.h index e30fd1cd..f9d860f2 100644 --- a/asn.1/generated/LocationData.h +++ b/asn.1/supl_generated/LocationData.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _LocationData_H_ @@ -22,7 +22,7 @@ extern "C" { /* LocationData */ typedef struct LocationData { - unsigned long *locationAccuracy /* OPTIONAL */; + unsigned long *locationAccuracy; /* OPTIONAL */ OCTET_STRING_t locationValue; /* * This type is extensible, diff --git a/asn.1/supl_generated/LocationEncodingDescriptor.c b/asn.1/supl_generated/LocationEncodingDescriptor.c new file mode 100644 index 00000000..c5922e38 --- /dev/null +++ b/asn.1/supl_generated/LocationEncodingDescriptor.c @@ -0,0 +1,65 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "LocationEncodingDescriptor.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LocationEncodingDescriptor_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_LocationEncodingDescriptor_value2enum_1[] = { + { 0, 3, "lCI" }, + { 1, 4, "aSN1" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_LocationEncodingDescriptor_enum2value_1[] = { + 1, /* aSN1(1) */ + 0 /* lCI(0) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_LocationEncodingDescriptor_specs_1 = { + asn_MAP_LocationEncodingDescriptor_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_LocationEncodingDescriptor_enum2value_1, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_LocationEncodingDescriptor_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LocationEncodingDescriptor = { + "LocationEncodingDescriptor", + "LocationEncodingDescriptor", + &asn_OP_NativeEnumerated, + asn_DEF_LocationEncodingDescriptor_tags_1, + sizeof(asn_DEF_LocationEncodingDescriptor_tags_1) + /sizeof(asn_DEF_LocationEncodingDescriptor_tags_1[0]), /* 1 */ + asn_DEF_LocationEncodingDescriptor_tags_1, /* Same as above */ + sizeof(asn_DEF_LocationEncodingDescriptor_tags_1) + /sizeof(asn_DEF_LocationEncodingDescriptor_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LocationEncodingDescriptor_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_LocationEncodingDescriptor_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/LocationEncodingDescriptor.h b/asn.1/supl_generated/LocationEncodingDescriptor.h similarity index 78% rename from asn.1/generated/LocationEncodingDescriptor.h rename to asn.1/supl_generated/LocationEncodingDescriptor.h index c3b92f51..cb1723dc 100644 --- a/asn.1/generated/LocationEncodingDescriptor.h +++ b/asn.1/supl_generated/LocationEncodingDescriptor.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _LocationEncodingDescriptor_H_ @@ -35,12 +35,10 @@ extern asn_per_constraints_t asn_PER_type_LocationEncodingDescriptor_constr_1; extern asn_TYPE_descriptor_t asn_DEF_LocationEncodingDescriptor; extern const asn_INTEGER_specifics_t asn_SPC_LocationEncodingDescriptor_specs_1; asn_struct_free_f LocationEncodingDescriptor_free; -asn_struct_print_f LocationEncodingDescriptor_print; asn_constr_check_f LocationEncodingDescriptor_constraint; -ber_type_decoder_f LocationEncodingDescriptor_decode_ber; -der_type_encoder_f LocationEncodingDescriptor_encode_der; xer_type_decoder_f LocationEncodingDescriptor_decode_xer; xer_type_encoder_f LocationEncodingDescriptor_encode_xer; +jer_type_encoder_f LocationEncodingDescriptor_encode_jer; per_type_decoder_f LocationEncodingDescriptor_decode_uper; per_type_encoder_f LocationEncodingDescriptor_encode_uper; diff --git a/asn.1/supl_generated/LocationId.c b/asn.1/supl_generated/LocationId.c new file mode 100644 index 00000000..5dfd27ac --- /dev/null +++ b/asn.1/supl_generated/LocationId.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "LocationId.h" + +asn_TYPE_member_t asn_MBR_LocationId_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LocationId, cellInfo), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_CellInfo, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellInfo" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationId, status), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Status, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "status" + }, +}; +static const ber_tlv_tag_t asn_DEF_LocationId_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LocationId_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellInfo */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* status */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LocationId_specs_1 = { + sizeof(struct LocationId), + offsetof(struct LocationId, _asn_ctx), + asn_MAP_LocationId_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_LocationId = { + "LocationId", + "LocationId", + &asn_OP_SEQUENCE, + asn_DEF_LocationId_tags_1, + sizeof(asn_DEF_LocationId_tags_1) + /sizeof(asn_DEF_LocationId_tags_1[0]), /* 1 */ + asn_DEF_LocationId_tags_1, /* Same as above */ + sizeof(asn_DEF_LocationId_tags_1) + /sizeof(asn_DEF_LocationId_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LocationId_1, + 2, /* Elements count */ + &asn_SPC_LocationId_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/LocationId.h b/asn.1/supl_generated/LocationId.h similarity index 77% rename from asn.1/generated/LocationId.h rename to asn.1/supl_generated/LocationId.h index e7ed7493..7ce2fa59 100644 --- a/asn.1/generated/LocationId.h +++ b/asn.1/supl_generated/LocationId.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _LocationId_H_ diff --git a/asn.1/supl_generated/LocationIdData.c b/asn.1/supl_generated/LocationIdData.c new file mode 100644 index 00000000..953b8a21 --- /dev/null +++ b/asn.1/supl_generated/LocationIdData.c @@ -0,0 +1,104 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "LocationIdData.h" + +asn_TYPE_member_t asn_MBR_LocationIdData_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LocationIdData, locationId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationId" + }, + { ATF_POINTER, 1, offsetof(struct LocationIdData, relativetimestamp), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RelativeTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "relativetimestamp" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationIdData, servingFlag), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "servingFlag" + }, +}; +static const int asn_MAP_LocationIdData_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_LocationIdData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LocationIdData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* relativetimestamp */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* servingFlag */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LocationIdData_specs_1 = { + sizeof(struct LocationIdData), + offsetof(struct LocationIdData, _asn_ctx), + asn_MAP_LocationIdData_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_LocationIdData_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_LocationIdData = { + "LocationIdData", + "LocationIdData", + &asn_OP_SEQUENCE, + asn_DEF_LocationIdData_tags_1, + sizeof(asn_DEF_LocationIdData_tags_1) + /sizeof(asn_DEF_LocationIdData_tags_1[0]), /* 1 */ + asn_DEF_LocationIdData_tags_1, /* Same as above */ + sizeof(asn_DEF_LocationIdData_tags_1) + /sizeof(asn_DEF_LocationIdData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LocationIdData_1, + 3, /* Elements count */ + &asn_SPC_LocationIdData_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/LocationIdData.h b/asn.1/supl_generated/LocationIdData.h similarity index 75% rename from asn.1/generated/LocationIdData.h rename to asn.1/supl_generated/LocationIdData.h index 6eafb440..d09a4fd7 100644 --- a/asn.1/generated/LocationIdData.h +++ b/asn.1/supl_generated/LocationIdData.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _LocationIdData_H_ @@ -24,7 +24,7 @@ extern "C" { /* LocationIdData */ typedef struct LocationIdData { LocationId_t locationId; - RelativeTime_t *relativetimestamp /* OPTIONAL */; + RelativeTime_t *relativetimestamp; /* OPTIONAL */ BOOLEAN_t servingFlag; /* * This type is extensible, diff --git a/asn.1/supl_generated/LteCellInformation.c b/asn.1/supl_generated/LteCellInformation.c new file mode 100644 index 00000000..2636458e --- /dev/null +++ b/asn.1/supl_generated/LteCellInformation.c @@ -0,0 +1,209 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "LteCellInformation.h" + +#include "MeasResultListEUTRA.h" +static int +memb_tA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1282L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tA_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 1282 } /* (0..1282) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_LteCellInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LteCellInformation, cellGlobalIdEUTRA), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CellGlobalIdEUTRA, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellGlobalIdEUTRA" + }, + { ATF_NOFLAGS, 0, offsetof(struct LteCellInformation, physCellId), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PhysCellId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "physCellId" + }, + { ATF_NOFLAGS, 0, offsetof(struct LteCellInformation, trackingAreaCode), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TrackingAreaCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "trackingAreaCode" + }, + { ATF_POINTER, 4, offsetof(struct LteCellInformation, rsrpResult), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RSRP_Range, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rsrpResult" + }, + { ATF_POINTER, 3, offsetof(struct LteCellInformation, rsrqResult), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RSRQ_Range, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rsrqResult" + }, + { ATF_POINTER, 2, offsetof(struct LteCellInformation, tA), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tA_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tA_constraint_1 + }, + 0, 0, /* No default value */ + "tA" + }, + { ATF_POINTER, 1, offsetof(struct LteCellInformation, measResultListEUTRA), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MeasResultListEUTRA, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "measResultListEUTRA" + }, +}; +static const int asn_MAP_LteCellInformation_oms_1[] = { 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_LteCellInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LteCellInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellGlobalIdEUTRA */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* physCellId */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* trackingAreaCode */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* rsrpResult */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rsrqResult */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* tA */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* measResultListEUTRA */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LteCellInformation_specs_1 = { + sizeof(struct LteCellInformation), + offsetof(struct LteCellInformation, _asn_ctx), + asn_MAP_LteCellInformation_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_LteCellInformation_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_LteCellInformation = { + "LteCellInformation", + "LteCellInformation", + &asn_OP_SEQUENCE, + asn_DEF_LteCellInformation_tags_1, + sizeof(asn_DEF_LteCellInformation_tags_1) + /sizeof(asn_DEF_LteCellInformation_tags_1[0]), /* 1 */ + asn_DEF_LteCellInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_LteCellInformation_tags_1) + /sizeof(asn_DEF_LteCellInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LteCellInformation_1, + 7, /* Elements count */ + &asn_SPC_LteCellInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/LteCellInformation.h b/asn.1/supl_generated/LteCellInformation.h new file mode 100644 index 00000000..0e66a8c8 --- /dev/null +++ b/asn.1/supl_generated/LteCellInformation.h @@ -0,0 +1,58 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _LteCellInformation_H_ +#define _LteCellInformation_H_ + + +#include + +/* Including external dependencies */ +#include "CellGlobalIdEUTRA.h" +#include "PhysCellId.h" +#include "TrackingAreaCode.h" +#include "RSRP-Range.h" +#include "RSRQ-Range.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct MeasResultListEUTRA; + +/* LteCellInformation */ +typedef struct LteCellInformation { + CellGlobalIdEUTRA_t cellGlobalIdEUTRA; + PhysCellId_t physCellId; + TrackingAreaCode_t trackingAreaCode; + RSRP_Range_t *rsrpResult; /* OPTIONAL */ + RSRQ_Range_t *rsrqResult; /* OPTIONAL */ + long *tA; /* OPTIONAL */ + struct MeasResultListEUTRA *measResultListEUTRA; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LteCellInformation_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LteCellInformation; +extern asn_SEQUENCE_specifics_t asn_SPC_LteCellInformation_specs_1; +extern asn_TYPE_member_t asn_MBR_LteCellInformation_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _LteCellInformation_H_ */ +#include diff --git a/asn.1/supl_generated/MAC.c b/asn.1/supl_generated/MAC.c new file mode 100644 index 00000000..78f6e0de --- /dev/null +++ b/asn.1/supl_generated/MAC.c @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-INIT" + * found in "src/SUPL-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "MAC.h" + +int +MAC_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 64UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using BIT_STRING, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_MAC_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 64, 64 } /* (SIZE(64..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_MAC_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_MAC = { + "MAC", + "MAC", + &asn_OP_BIT_STRING, + asn_DEF_MAC_tags_1, + sizeof(asn_DEF_MAC_tags_1) + /sizeof(asn_DEF_MAC_tags_1[0]), /* 1 */ + asn_DEF_MAC_tags_1, /* Same as above */ + sizeof(asn_DEF_MAC_tags_1) + /sizeof(asn_DEF_MAC_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MAC_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + MAC_constraint + }, + 0, 0, /* No members */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/MAC.h b/asn.1/supl_generated/MAC.h new file mode 100644 index 00000000..12dd2130 --- /dev/null +++ b/asn.1/supl_generated/MAC.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-INIT" + * found in "src/SUPL-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _MAC_H_ +#define _MAC_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* MAC */ +typedef BIT_STRING_t MAC_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_MAC_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_MAC; +asn_struct_free_f MAC_free; +asn_constr_check_f MAC_constraint; +xer_type_decoder_f MAC_decode_xer; +xer_type_encoder_f MAC_encode_xer; +jer_type_encoder_f MAC_encode_jer; +per_type_decoder_f MAC_decode_uper; +per_type_encoder_f MAC_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _MAC_H_ */ +#include diff --git a/asn.1/supl_generated/MCC-MNC-Digit.c b/asn.1/supl_generated/MCC-MNC-Digit.c new file mode 100644 index 00000000..753dbf67 --- /dev/null +++ b/asn.1/supl_generated/MCC-MNC-Digit.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "MCC-MNC-Digit.h" + +int +MCC_MNC_Digit_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_MCC_MNC_Digit_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_MCC_MNC_Digit_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_MCC_MNC_Digit = { + "MCC-MNC-Digit", + "MCC-MNC-Digit", + &asn_OP_NativeInteger, + asn_DEF_MCC_MNC_Digit_tags_1, + sizeof(asn_DEF_MCC_MNC_Digit_tags_1) + /sizeof(asn_DEF_MCC_MNC_Digit_tags_1[0]), /* 1 */ + asn_DEF_MCC_MNC_Digit_tags_1, /* Same as above */ + sizeof(asn_DEF_MCC_MNC_Digit_tags_1) + /sizeof(asn_DEF_MCC_MNC_Digit_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MCC_MNC_Digit_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + MCC_MNC_Digit_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/supl_generated/MCC-MNC-Digit.h b/asn.1/supl_generated/MCC-MNC-Digit.h new file mode 100644 index 00000000..8be865dd --- /dev/null +++ b/asn.1/supl_generated/MCC-MNC-Digit.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _MCC_MNC_Digit_H_ +#define _MCC_MNC_Digit_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* MCC-MNC-Digit */ +typedef long MCC_MNC_Digit_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_MCC_MNC_Digit_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_MCC_MNC_Digit; +asn_struct_free_f MCC_MNC_Digit_free; +asn_constr_check_f MCC_MNC_Digit_constraint; +xer_type_decoder_f MCC_MNC_Digit_decode_xer; +xer_type_encoder_f MCC_MNC_Digit_encode_xer; +jer_type_encoder_f MCC_MNC_Digit_encode_jer; +per_type_decoder_f MCC_MNC_Digit_decode_uper; +per_type_encoder_f MCC_MNC_Digit_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _MCC_MNC_Digit_H_ */ +#include diff --git a/asn.1/supl_generated/MCC.c b/asn.1/supl_generated/MCC.c new file mode 100644 index 00000000..cbdd8fba --- /dev/null +++ b/asn.1/supl_generated/MCC.c @@ -0,0 +1,67 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "MCC.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_MCC_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_MCC_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_MCC_MNC_Digit, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_MCC_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_MCC_specs_1 = { + sizeof(struct MCC), + offsetof(struct MCC, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_MCC = { + "MCC", + "MCC", + &asn_OP_SEQUENCE_OF, + asn_DEF_MCC_tags_1, + sizeof(asn_DEF_MCC_tags_1) + /sizeof(asn_DEF_MCC_tags_1[0]), /* 1 */ + asn_DEF_MCC_tags_1, /* Same as above */ + sizeof(asn_DEF_MCC_tags_1) + /sizeof(asn_DEF_MCC_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MCC_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_MCC_1, + 1, /* Single element */ + &asn_SPC_MCC_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/MCC.h b/asn.1/supl_generated/MCC.h similarity index 75% rename from asn.1/generated/MCC.h rename to asn.1/supl_generated/MCC.h index 8a66d309..d25275e4 100644 --- a/asn.1/generated/MCC.h +++ b/asn.1/supl_generated/MCC.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _MCC_H_ diff --git a/asn.1/supl_generated/MNC.c b/asn.1/supl_generated/MNC.c new file mode 100644 index 00000000..bc5db693 --- /dev/null +++ b/asn.1/supl_generated/MNC.c @@ -0,0 +1,67 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "MNC.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_MNC_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 1, 1, 2, 3 } /* (SIZE(2..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_MNC_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_MCC_MNC_Digit, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_MNC_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_MNC_specs_1 = { + sizeof(struct MNC), + offsetof(struct MNC, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_MNC = { + "MNC", + "MNC", + &asn_OP_SEQUENCE_OF, + asn_DEF_MNC_tags_1, + sizeof(asn_DEF_MNC_tags_1) + /sizeof(asn_DEF_MNC_tags_1[0]), /* 1 */ + asn_DEF_MNC_tags_1, /* Same as above */ + sizeof(asn_DEF_MNC_tags_1) + /sizeof(asn_DEF_MNC_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MNC_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_MNC_1, + 1, /* Single element */ + &asn_SPC_MNC_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/MNC.h b/asn.1/supl_generated/MNC.h similarity index 75% rename from asn.1/generated/MNC.h rename to asn.1/supl_generated/MNC.h index ea775dc1..e3a4bfcd 100644 --- a/asn.1/generated/MNC.h +++ b/asn.1/supl_generated/MNC.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _MNC_H_ diff --git a/asn.1/supl_generated/MeasResultEUTRA.c b/asn.1/supl_generated/MeasResultEUTRA.c new file mode 100644 index 00000000..07cba060 --- /dev/null +++ b/asn.1/supl_generated/MeasResultEUTRA.c @@ -0,0 +1,260 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "MeasResultEUTRA.h" + +static asn_TYPE_member_t asn_MBR_cgi_Info_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct MeasResultEUTRA__cgi_Info, cellGlobalId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CellGlobalIdEUTRA, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellGlobalId" + }, + { ATF_NOFLAGS, 0, offsetof(struct MeasResultEUTRA__cgi_Info, trackingAreaCode), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TrackingAreaCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "trackingAreaCode" + }, +}; +static const ber_tlv_tag_t asn_DEF_cgi_Info_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_cgi_Info_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellGlobalId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* trackingAreaCode */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_cgi_Info_specs_3 = { + sizeof(struct MeasResultEUTRA__cgi_Info), + offsetof(struct MeasResultEUTRA__cgi_Info, _asn_ctx), + asn_MAP_cgi_Info_tag2el_3, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_cgi_Info_3 = { + "cgi-Info", + "cgi-Info", + &asn_OP_SEQUENCE, + asn_DEF_cgi_Info_tags_3, + sizeof(asn_DEF_cgi_Info_tags_3) + /sizeof(asn_DEF_cgi_Info_tags_3[0]) - 1, /* 1 */ + asn_DEF_cgi_Info_tags_3, /* Same as above */ + sizeof(asn_DEF_cgi_Info_tags_3) + /sizeof(asn_DEF_cgi_Info_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_cgi_Info_3, + 2, /* Elements count */ + &asn_SPC_cgi_Info_specs_3 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_measResult_6[] = { + { ATF_POINTER, 2, offsetof(struct MeasResultEUTRA__measResult, rsrpResult), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RSRP_Range, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rsrpResult" + }, + { ATF_POINTER, 1, offsetof(struct MeasResultEUTRA__measResult, rsrqResult), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RSRQ_Range, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rsrqResult" + }, +}; +static const int asn_MAP_measResult_oms_6[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_measResult_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_measResult_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rsrpResult */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* rsrqResult */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_measResult_specs_6 = { + sizeof(struct MeasResultEUTRA__measResult), + offsetof(struct MeasResultEUTRA__measResult, _asn_ctx), + asn_MAP_measResult_tag2el_6, + 2, /* Count of tags in the map */ + asn_MAP_measResult_oms_6, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_measResult_6 = { + "measResult", + "measResult", + &asn_OP_SEQUENCE, + asn_DEF_measResult_tags_6, + sizeof(asn_DEF_measResult_tags_6) + /sizeof(asn_DEF_measResult_tags_6[0]) - 1, /* 1 */ + asn_DEF_measResult_tags_6, /* Same as above */ + sizeof(asn_DEF_measResult_tags_6) + /sizeof(asn_DEF_measResult_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_measResult_6, + 2, /* Elements count */ + &asn_SPC_measResult_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_MeasResultEUTRA_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct MeasResultEUTRA, physCellId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PhysCellId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "physCellId" + }, + { ATF_POINTER, 1, offsetof(struct MeasResultEUTRA, cgi_Info), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_cgi_Info_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cgi-Info" + }, + { ATF_NOFLAGS, 0, offsetof(struct MeasResultEUTRA, measResult), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_measResult_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "measResult" + }, +}; +static const int asn_MAP_MeasResultEUTRA_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_MeasResultEUTRA_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MeasResultEUTRA_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cgi-Info */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* measResult */ +}; +asn_SEQUENCE_specifics_t asn_SPC_MeasResultEUTRA_specs_1 = { + sizeof(struct MeasResultEUTRA), + offsetof(struct MeasResultEUTRA, _asn_ctx), + asn_MAP_MeasResultEUTRA_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_MeasResultEUTRA_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_MeasResultEUTRA = { + "MeasResultEUTRA", + "MeasResultEUTRA", + &asn_OP_SEQUENCE, + asn_DEF_MeasResultEUTRA_tags_1, + sizeof(asn_DEF_MeasResultEUTRA_tags_1) + /sizeof(asn_DEF_MeasResultEUTRA_tags_1[0]), /* 1 */ + asn_DEF_MeasResultEUTRA_tags_1, /* Same as above */ + sizeof(asn_DEF_MeasResultEUTRA_tags_1) + /sizeof(asn_DEF_MeasResultEUTRA_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MeasResultEUTRA_1, + 3, /* Elements count */ + &asn_SPC_MeasResultEUTRA_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/MeasResultEUTRA.h b/asn.1/supl_generated/MeasResultEUTRA.h similarity index 79% rename from asn.1/generated/MeasResultEUTRA.h rename to asn.1/supl_generated/MeasResultEUTRA.h index 8a59a6a8..08704356 100644 --- a/asn.1/generated/MeasResultEUTRA.h +++ b/asn.1/supl_generated/MeasResultEUTRA.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _MeasResultEUTRA_H_ @@ -34,8 +34,8 @@ typedef struct MeasResultEUTRA { asn_struct_ctx_t _asn_ctx; } *cgi_Info; struct MeasResultEUTRA__measResult { - RSRP_Range_t *rsrpResult /* OPTIONAL */; - RSRQ_Range_t *rsrqResult /* OPTIONAL */; + RSRP_Range_t *rsrpResult; /* OPTIONAL */ + RSRQ_Range_t *rsrqResult; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/supl_generated/MeasResultListEUTRA.c b/asn.1/supl_generated/MeasResultListEUTRA.c new file mode 100644 index 00000000..ba69277d --- /dev/null +++ b/asn.1/supl_generated/MeasResultListEUTRA.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "MeasResultListEUTRA.h" + +#include "MeasResultEUTRA.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_MeasResultListEUTRA_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_MeasResultListEUTRA_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_MeasResultEUTRA, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_MeasResultListEUTRA_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_MeasResultListEUTRA_specs_1 = { + sizeof(struct MeasResultListEUTRA), + offsetof(struct MeasResultListEUTRA, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_MeasResultListEUTRA = { + "MeasResultListEUTRA", + "MeasResultListEUTRA", + &asn_OP_SEQUENCE_OF, + asn_DEF_MeasResultListEUTRA_tags_1, + sizeof(asn_DEF_MeasResultListEUTRA_tags_1) + /sizeof(asn_DEF_MeasResultListEUTRA_tags_1[0]), /* 1 */ + asn_DEF_MeasResultListEUTRA_tags_1, /* Same as above */ + sizeof(asn_DEF_MeasResultListEUTRA_tags_1) + /sizeof(asn_DEF_MeasResultListEUTRA_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MeasResultListEUTRA_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_MeasResultListEUTRA_1, + 1, /* Single element */ + &asn_SPC_MeasResultListEUTRA_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/MeasResultListEUTRA.h b/asn.1/supl_generated/MeasResultListEUTRA.h similarity index 79% rename from asn.1/generated/MeasResultListEUTRA.h rename to asn.1/supl_generated/MeasResultListEUTRA.h index 7b87892c..e60b0bc4 100644 --- a/asn.1/generated/MeasResultListEUTRA.h +++ b/asn.1/supl_generated/MeasResultListEUTRA.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _MeasResultListEUTRA_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_MeasResultListEUTRA_constr_1; } #endif -/* Referred external types */ -#include "MeasResultEUTRA.h" - #endif /* _MeasResultListEUTRA_H_ */ #include diff --git a/asn.1/supl_generated/MeasuredResults.c b/asn.1/supl_generated/MeasuredResults.c new file mode 100644 index 00000000..2ed0ba7e --- /dev/null +++ b/asn.1/supl_generated/MeasuredResults.c @@ -0,0 +1,106 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "MeasuredResults.h" + +#include "FrequencyInfo.h" +#include "CellMeasuredResultsList.h" +asn_TYPE_member_t asn_MBR_MeasuredResults_1[] = { + { ATF_POINTER, 3, offsetof(struct MeasuredResults, frequencyInfo), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FrequencyInfo, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "frequencyInfo" + }, + { ATF_POINTER, 2, offsetof(struct MeasuredResults, utra_CarrierRSSI), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTRA_CarrierRSSI, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utra-CarrierRSSI" + }, + { ATF_POINTER, 1, offsetof(struct MeasuredResults, cellMeasuredResultsList), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CellMeasuredResultsList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cellMeasuredResultsList" + }, +}; +static const int asn_MAP_MeasuredResults_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_MeasuredResults_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MeasuredResults_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* frequencyInfo */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* utra-CarrierRSSI */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* cellMeasuredResultsList */ +}; +asn_SEQUENCE_specifics_t asn_SPC_MeasuredResults_specs_1 = { + sizeof(struct MeasuredResults), + offsetof(struct MeasuredResults, _asn_ctx), + asn_MAP_MeasuredResults_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_MeasuredResults_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_MeasuredResults = { + "MeasuredResults", + "MeasuredResults", + &asn_OP_SEQUENCE, + asn_DEF_MeasuredResults_tags_1, + sizeof(asn_DEF_MeasuredResults_tags_1) + /sizeof(asn_DEF_MeasuredResults_tags_1[0]), /* 1 */ + asn_DEF_MeasuredResults_tags_1, /* Same as above */ + sizeof(asn_DEF_MeasuredResults_tags_1) + /sizeof(asn_DEF_MeasuredResults_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MeasuredResults_1, + 3, /* Elements count */ + &asn_SPC_MeasuredResults_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/MeasuredResults.h b/asn.1/supl_generated/MeasuredResults.h new file mode 100644 index 00000000..630328bd --- /dev/null +++ b/asn.1/supl_generated/MeasuredResults.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _MeasuredResults_H_ +#define _MeasuredResults_H_ + + +#include + +/* Including external dependencies */ +#include "UTRA-CarrierRSSI.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct FrequencyInfo; +struct CellMeasuredResultsList; + +/* MeasuredResults */ +typedef struct MeasuredResults { + struct FrequencyInfo *frequencyInfo; /* OPTIONAL */ + UTRA_CarrierRSSI_t *utra_CarrierRSSI; /* OPTIONAL */ + struct CellMeasuredResultsList *cellMeasuredResultsList; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} MeasuredResults_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_MeasuredResults; +extern asn_SEQUENCE_specifics_t asn_SPC_MeasuredResults_specs_1; +extern asn_TYPE_member_t asn_MBR_MeasuredResults_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _MeasuredResults_H_ */ +#include diff --git a/asn.1/supl_generated/MultipleLocationIds.c b/asn.1/supl_generated/MultipleLocationIds.c new file mode 100644 index 00000000..0481b85d --- /dev/null +++ b/asn.1/supl_generated/MultipleLocationIds.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "MultipleLocationIds.h" + +#include "LocationIdData.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_MultipleLocationIds_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_MultipleLocationIds_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_LocationIdData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_MultipleLocationIds_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_MultipleLocationIds_specs_1 = { + sizeof(struct MultipleLocationIds), + offsetof(struct MultipleLocationIds, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_MultipleLocationIds = { + "MultipleLocationIds", + "MultipleLocationIds", + &asn_OP_SEQUENCE_OF, + asn_DEF_MultipleLocationIds_tags_1, + sizeof(asn_DEF_MultipleLocationIds_tags_1) + /sizeof(asn_DEF_MultipleLocationIds_tags_1[0]), /* 1 */ + asn_DEF_MultipleLocationIds_tags_1, /* Same as above */ + sizeof(asn_DEF_MultipleLocationIds_tags_1) + /sizeof(asn_DEF_MultipleLocationIds_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MultipleLocationIds_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_MultipleLocationIds_1, + 1, /* Single element */ + &asn_SPC_MultipleLocationIds_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/MultipleLocationIds.h b/asn.1/supl_generated/MultipleLocationIds.h similarity index 79% rename from asn.1/generated/MultipleLocationIds.h rename to asn.1/supl_generated/MultipleLocationIds.h index eaa33ad7..62c0dd8c 100644 --- a/asn.1/generated/MultipleLocationIds.h +++ b/asn.1/supl_generated/MultipleLocationIds.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _MultipleLocationIds_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_MultipleLocationIds_constr_1; } #endif -/* Referred external types */ -#include "LocationIdData.h" - #endif /* _MultipleLocationIds_H_ */ #include diff --git a/asn.1/supl_generated/NMR.c b/asn.1/supl_generated/NMR.c new file mode 100644 index 00000000..9094fb2a --- /dev/null +++ b/asn.1/supl_generated/NMR.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "NMR.h" + +#include "NMRelement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NMR_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 15 } /* (SIZE(1..15)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NMR_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_NMRelement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_NMR_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_NMR_specs_1 = { + sizeof(struct NMR), + offsetof(struct NMR, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_NMR = { + "NMR", + "NMR", + &asn_OP_SEQUENCE_OF, + asn_DEF_NMR_tags_1, + sizeof(asn_DEF_NMR_tags_1) + /sizeof(asn_DEF_NMR_tags_1[0]), /* 1 */ + asn_DEF_NMR_tags_1, /* Same as above */ + sizeof(asn_DEF_NMR_tags_1) + /sizeof(asn_DEF_NMR_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NMR_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_NMR_1, + 1, /* Single element */ + &asn_SPC_NMR_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NMR.h b/asn.1/supl_generated/NMR.h similarity index 76% rename from asn.1/generated/NMR.h rename to asn.1/supl_generated/NMR.h index a586362d..e2a44b12 100644 --- a/asn.1/generated/NMR.h +++ b/asn.1/supl_generated/NMR.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _NMR_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_NMR_constr_1; } #endif -/* Referred external types */ -#include "NMRelement.h" - #endif /* _NMR_H_ */ #include diff --git a/asn.1/supl_generated/NMRelement.c b/asn.1/supl_generated/NMRelement.c new file mode 100644 index 00000000..574fad7c --- /dev/null +++ b/asn.1/supl_generated/NMRelement.c @@ -0,0 +1,198 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "NMRelement.h" + +static int +memb_aRFCN_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bSIC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_rxLev_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_aRFCN_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bSIC_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rxLev_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_NMRelement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct NMRelement, aRFCN), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_aRFCN_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_aRFCN_constraint_1 + }, + 0, 0, /* No default value */ + "aRFCN" + }, + { ATF_NOFLAGS, 0, offsetof(struct NMRelement, bSIC), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bSIC_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bSIC_constraint_1 + }, + 0, 0, /* No default value */ + "bSIC" + }, + { ATF_NOFLAGS, 0, offsetof(struct NMRelement, rxLev), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rxLev_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rxLev_constraint_1 + }, + 0, 0, /* No default value */ + "rxLev" + }, +}; +static const ber_tlv_tag_t asn_DEF_NMRelement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_NMRelement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* aRFCN */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bSIC */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* rxLev */ +}; +asn_SEQUENCE_specifics_t asn_SPC_NMRelement_specs_1 = { + sizeof(struct NMRelement), + offsetof(struct NMRelement, _asn_ctx), + asn_MAP_NMRelement_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_NMRelement = { + "NMRelement", + "NMRelement", + &asn_OP_SEQUENCE, + asn_DEF_NMRelement_tags_1, + sizeof(asn_DEF_NMRelement_tags_1) + /sizeof(asn_DEF_NMRelement_tags_1[0]), /* 1 */ + asn_DEF_NMRelement_tags_1, /* Same as above */ + sizeof(asn_DEF_NMRelement_tags_1) + /sizeof(asn_DEF_NMRelement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_NMRelement_1, + 3, /* Elements count */ + &asn_SPC_NMRelement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NMRelement.h b/asn.1/supl_generated/NMRelement.h similarity index 77% rename from asn.1/generated/NMRelement.h rename to asn.1/supl_generated/NMRelement.h index 78a2847b..111a4ed6 100644 --- a/asn.1/generated/NMRelement.h +++ b/asn.1/supl_generated/NMRelement.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _NMRelement_H_ diff --git a/asn.1/supl_generated/Notification.c b/asn.1/supl_generated/Notification.c new file mode 100644 index 00000000..fde834ac --- /dev/null +++ b/asn.1/supl_generated/Notification.c @@ -0,0 +1,243 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-INIT" + * found in "src/SUPL-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Notification.h" + +#include "Ver2-Notification-extension.h" +static int +memb_requestorId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size >= 1UL && size <= 50UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_clientName_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size >= 1UL && size <= 50UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_requestorId_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 50 } /* (SIZE(1..50)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_clientName_constr_6 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 50 } /* (SIZE(1..50)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Notification_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Notification, notificationType), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NotificationType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "notificationType" + }, + { ATF_POINTER, 6, offsetof(struct Notification, encodingType), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EncodingType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "encodingType" + }, + { ATF_POINTER, 5, offsetof(struct Notification, requestorId), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OCTET_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_requestorId_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_requestorId_constraint_1 + }, + 0, 0, /* No default value */ + "requestorId" + }, + { ATF_POINTER, 4, offsetof(struct Notification, requestorIdType), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FormatIndicator, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "requestorIdType" + }, + { ATF_POINTER, 3, offsetof(struct Notification, clientName), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OCTET_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_clientName_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_clientName_constraint_1 + }, + 0, 0, /* No default value */ + "clientName" + }, + { ATF_POINTER, 2, offsetof(struct Notification, clientNameType), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FormatIndicator, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "clientNameType" + }, + { ATF_POINTER, 1, offsetof(struct Notification, ver2_Notification_extension), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver2_Notification_extension, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ver2-Notification-extension" + }, +}; +static const int asn_MAP_Notification_oms_1[] = { 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_Notification_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Notification_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* notificationType */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* encodingType */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* requestorId */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* requestorIdType */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* clientName */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* clientNameType */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ver2-Notification-extension */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Notification_specs_1 = { + sizeof(struct Notification), + offsetof(struct Notification, _asn_ctx), + asn_MAP_Notification_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_Notification_oms_1, /* Optional members */ + 5, 1, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Notification = { + "Notification", + "Notification", + &asn_OP_SEQUENCE, + asn_DEF_Notification_tags_1, + sizeof(asn_DEF_Notification_tags_1) + /sizeof(asn_DEF_Notification_tags_1[0]), /* 1 */ + asn_DEF_Notification_tags_1, /* Same as above */ + sizeof(asn_DEF_Notification_tags_1) + /sizeof(asn_DEF_Notification_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Notification_1, + 7, /* Elements count */ + &asn_SPC_Notification_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/Notification.h b/asn.1/supl_generated/Notification.h new file mode 100644 index 00000000..196ecb1c --- /dev/null +++ b/asn.1/supl_generated/Notification.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-INIT" + * found in "src/SUPL-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _Notification_H_ +#define _Notification_H_ + + +#include + +/* Including external dependencies */ +#include "NotificationType.h" +#include "EncodingType.h" +#include +#include "FormatIndicator.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct Ver2_Notification_extension; + +/* Notification */ +typedef struct Notification { + NotificationType_t notificationType; + EncodingType_t *encodingType; /* OPTIONAL */ + OCTET_STRING_t *requestorId; /* OPTIONAL */ + FormatIndicator_t *requestorIdType; /* OPTIONAL */ + OCTET_STRING_t *clientName; /* OPTIONAL */ + FormatIndicator_t *clientNameType; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct Ver2_Notification_extension *ver2_Notification_extension; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Notification_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Notification; +extern asn_SEQUENCE_specifics_t asn_SPC_Notification_specs_1; +extern asn_TYPE_member_t asn_MBR_Notification_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Notification_H_ */ +#include diff --git a/asn.1/supl_generated/NotificationMode.c b/asn.1/supl_generated/NotificationMode.c new file mode 100644 index 00000000..71f1314a --- /dev/null +++ b/asn.1/supl_generated/NotificationMode.c @@ -0,0 +1,65 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "NotificationMode.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NotificationMode_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_NotificationMode_value2enum_1[] = { + { 0, 6, "normal" }, + { 1, 15, "basedOnLocation" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_NotificationMode_enum2value_1[] = { + 1, /* basedOnLocation(1) */ + 0 /* normal(0) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_NotificationMode_specs_1 = { + asn_MAP_NotificationMode_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_NotificationMode_enum2value_1, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_NotificationMode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_NotificationMode = { + "NotificationMode", + "NotificationMode", + &asn_OP_NativeEnumerated, + asn_DEF_NotificationMode_tags_1, + sizeof(asn_DEF_NotificationMode_tags_1) + /sizeof(asn_DEF_NotificationMode_tags_1[0]), /* 1 */ + asn_DEF_NotificationMode_tags_1, /* Same as above */ + sizeof(asn_DEF_NotificationMode_tags_1) + /sizeof(asn_DEF_NotificationMode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NotificationMode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_NotificationMode_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NotificationMode.h b/asn.1/supl_generated/NotificationMode.h similarity index 78% rename from asn.1/generated/NotificationMode.h rename to asn.1/supl_generated/NotificationMode.h index 45fb449f..6ae086af 100644 --- a/asn.1/generated/NotificationMode.h +++ b/asn.1/supl_generated/NotificationMode.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _NotificationMode_H_ @@ -35,12 +35,10 @@ extern asn_per_constraints_t asn_PER_type_NotificationMode_constr_1; extern asn_TYPE_descriptor_t asn_DEF_NotificationMode; extern const asn_INTEGER_specifics_t asn_SPC_NotificationMode_specs_1; asn_struct_free_f NotificationMode_free; -asn_struct_print_f NotificationMode_print; asn_constr_check_f NotificationMode_constraint; -ber_type_decoder_f NotificationMode_decode_ber; -der_type_encoder_f NotificationMode_encode_der; xer_type_decoder_f NotificationMode_decode_xer; xer_type_encoder_f NotificationMode_encode_xer; +jer_type_encoder_f NotificationMode_encode_jer; per_type_decoder_f NotificationMode_decode_uper; per_type_encoder_f NotificationMode_encode_uper; diff --git a/asn.1/supl_generated/NotificationResponse.c b/asn.1/supl_generated/NotificationResponse.c new file mode 100644 index 00000000..75ecfc43 --- /dev/null +++ b/asn.1/supl_generated/NotificationResponse.c @@ -0,0 +1,65 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-NOTIFY-RESPONSE" + * found in "src/SUPL-NOTIFY-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "NotificationResponse.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NotificationResponse_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_NotificationResponse_value2enum_1[] = { + { 0, 7, "allowed" }, + { 1, 10, "notAllowed" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_NotificationResponse_enum2value_1[] = { + 0, /* allowed(0) */ + 1 /* notAllowed(1) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_NotificationResponse_specs_1 = { + asn_MAP_NotificationResponse_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_NotificationResponse_enum2value_1, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_NotificationResponse_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_NotificationResponse = { + "NotificationResponse", + "NotificationResponse", + &asn_OP_NativeEnumerated, + asn_DEF_NotificationResponse_tags_1, + sizeof(asn_DEF_NotificationResponse_tags_1) + /sizeof(asn_DEF_NotificationResponse_tags_1[0]), /* 1 */ + asn_DEF_NotificationResponse_tags_1, /* Same as above */ + sizeof(asn_DEF_NotificationResponse_tags_1) + /sizeof(asn_DEF_NotificationResponse_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NotificationResponse_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_NotificationResponse_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NotificationResponse.h b/asn.1/supl_generated/NotificationResponse.h similarity index 78% rename from asn.1/generated/NotificationResponse.h rename to asn.1/supl_generated/NotificationResponse.h index 859e9723..9f02c961 100644 --- a/asn.1/generated/NotificationResponse.h +++ b/asn.1/supl_generated/NotificationResponse.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-NOTIFY-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-NOTIFY-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _NotificationResponse_H_ @@ -35,12 +35,10 @@ extern asn_per_constraints_t asn_PER_type_NotificationResponse_constr_1; extern asn_TYPE_descriptor_t asn_DEF_NotificationResponse; extern const asn_INTEGER_specifics_t asn_SPC_NotificationResponse_specs_1; asn_struct_free_f NotificationResponse_free; -asn_struct_print_f NotificationResponse_print; asn_constr_check_f NotificationResponse_constraint; -ber_type_decoder_f NotificationResponse_decode_ber; -der_type_encoder_f NotificationResponse_encode_der; xer_type_decoder_f NotificationResponse_decode_xer; xer_type_encoder_f NotificationResponse_encode_xer; +jer_type_encoder_f NotificationResponse_encode_jer; per_type_decoder_f NotificationResponse_decode_uper; per_type_encoder_f NotificationResponse_encode_uper; diff --git a/asn.1/supl_generated/NotificationType.c b/asn.1/supl_generated/NotificationType.c new file mode 100644 index 00000000..a305e874 --- /dev/null +++ b/asn.1/supl_generated/NotificationType.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-INIT" + * found in "src/SUPL-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "NotificationType.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NotificationType_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_NotificationType_value2enum_1[] = { + { 0, 28, "noNotificationNoVerification" }, + { 1, 16, "notificationOnly" }, + { 2, 35, "notificationAndVerficationAllowedNA" }, + { 3, 34, "notificationAndVerficationDeniedNA" }, + { 4, 15, "privacyOverride" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_NotificationType_enum2value_1[] = { + 0, /* noNotificationNoVerification(0) */ + 2, /* notificationAndVerficationAllowedNA(2) */ + 3, /* notificationAndVerficationDeniedNA(3) */ + 1, /* notificationOnly(1) */ + 4 /* privacyOverride(4) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_NotificationType_specs_1 = { + asn_MAP_NotificationType_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_NotificationType_enum2value_1, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 6, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_NotificationType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_NotificationType = { + "NotificationType", + "NotificationType", + &asn_OP_NativeEnumerated, + asn_DEF_NotificationType_tags_1, + sizeof(asn_DEF_NotificationType_tags_1) + /sizeof(asn_DEF_NotificationType_tags_1[0]), /* 1 */ + asn_DEF_NotificationType_tags_1, /* Same as above */ + sizeof(asn_DEF_NotificationType_tags_1) + /sizeof(asn_DEF_NotificationType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NotificationType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_NotificationType_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/NotificationType.h b/asn.1/supl_generated/NotificationType.h similarity index 80% rename from asn.1/generated/NotificationType.h rename to asn.1/supl_generated/NotificationType.h index 7727427e..8d906aac 100644 --- a/asn.1/generated/NotificationType.h +++ b/asn.1/supl_generated/NotificationType.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _NotificationType_H_ @@ -38,12 +38,10 @@ extern asn_per_constraints_t asn_PER_type_NotificationType_constr_1; extern asn_TYPE_descriptor_t asn_DEF_NotificationType; extern const asn_INTEGER_specifics_t asn_SPC_NotificationType_specs_1; asn_struct_free_f NotificationType_free; -asn_struct_print_f NotificationType_print; asn_constr_check_f NotificationType_constraint; -ber_type_decoder_f NotificationType_decode_ber; -der_type_encoder_f NotificationType_encode_der; xer_type_decoder_f NotificationType_decode_xer; xer_type_encoder_f NotificationType_encode_xer; +jer_type_encoder_f NotificationType_encode_jer; per_type_decoder_f NotificationType_decode_uper; per_type_encoder_f NotificationType_encode_uper; diff --git a/asn.1/supl_generated/PLMN-Identity.c b/asn.1/supl_generated/PLMN-Identity.c new file mode 100644 index 00000000..fad8daf3 --- /dev/null +++ b/asn.1/supl_generated/PLMN-Identity.c @@ -0,0 +1,87 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "PLMN-Identity.h" + +#include "MCC.h" +asn_TYPE_member_t asn_MBR_PLMN_Identity_1[] = { + { ATF_POINTER, 1, offsetof(struct PLMN_Identity, mcc), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MCC, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mcc" + }, + { ATF_NOFLAGS, 0, offsetof(struct PLMN_Identity, mnc), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MNC, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mnc" + }, +}; +static const int asn_MAP_PLMN_Identity_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_PLMN_Identity_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PLMN_Identity_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mcc */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* mnc */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PLMN_Identity_specs_1 = { + sizeof(struct PLMN_Identity), + offsetof(struct PLMN_Identity, _asn_ctx), + asn_MAP_PLMN_Identity_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_PLMN_Identity_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PLMN_Identity = { + "PLMN-Identity", + "PLMN-Identity", + &asn_OP_SEQUENCE, + asn_DEF_PLMN_Identity_tags_1, + sizeof(asn_DEF_PLMN_Identity_tags_1) + /sizeof(asn_DEF_PLMN_Identity_tags_1[0]), /* 1 */ + asn_DEF_PLMN_Identity_tags_1, /* Same as above */ + sizeof(asn_DEF_PLMN_Identity_tags_1) + /sizeof(asn_DEF_PLMN_Identity_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PLMN_Identity_1, + 2, /* Elements count */ + &asn_SPC_PLMN_Identity_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/PLMN-Identity.h b/asn.1/supl_generated/PLMN-Identity.h new file mode 100644 index 00000000..fbdadf2f --- /dev/null +++ b/asn.1/supl_generated/PLMN-Identity.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _PLMN_Identity_H_ +#define _PLMN_Identity_H_ + + +#include + +/* Including external dependencies */ +#include "MNC.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct MCC; + +/* PLMN-Identity */ +typedef struct PLMN_Identity { + struct MCC *mcc; /* OPTIONAL */ + MNC_t mnc; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PLMN_Identity_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PLMN_Identity; +extern asn_SEQUENCE_specifics_t asn_SPC_PLMN_Identity_specs_1; +extern asn_TYPE_member_t asn_MBR_PLMN_Identity_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PLMN_Identity_H_ */ +#include diff --git a/asn.1/supl_generated/Pathloss.c b/asn.1/supl_generated/Pathloss.c new file mode 100644 index 00000000..54d99d65 --- /dev/null +++ b/asn.1/supl_generated/Pathloss.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Pathloss.h" + +int +Pathloss_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 46L && value <= 173L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Pathloss_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 46, 173 } /* (46..173) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_Pathloss_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Pathloss = { + "Pathloss", + "Pathloss", + &asn_OP_NativeInteger, + asn_DEF_Pathloss_tags_1, + sizeof(asn_DEF_Pathloss_tags_1) + /sizeof(asn_DEF_Pathloss_tags_1[0]), /* 1 */ + asn_DEF_Pathloss_tags_1, /* Same as above */ + sizeof(asn_DEF_Pathloss_tags_1) + /sizeof(asn_DEF_Pathloss_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Pathloss_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + Pathloss_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/supl_generated/Pathloss.h b/asn.1/supl_generated/Pathloss.h new file mode 100644 index 00000000..9c8ae637 --- /dev/null +++ b/asn.1/supl_generated/Pathloss.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _Pathloss_H_ +#define _Pathloss_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Pathloss */ +typedef long Pathloss_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_Pathloss_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_Pathloss; +asn_struct_free_f Pathloss_free; +asn_constr_check_f Pathloss_constraint; +xer_type_decoder_f Pathloss_decode_xer; +xer_type_encoder_f Pathloss_encode_xer; +jer_type_encoder_f Pathloss_encode_jer; +per_type_decoder_f Pathloss_decode_uper; +per_type_encoder_f Pathloss_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _Pathloss_H_ */ +#include diff --git a/asn.1/supl_generated/PeriodicParams.c b/asn.1/supl_generated/PeriodicParams.c new file mode 100644 index 00000000..f3ba0c6f --- /dev/null +++ b/asn.1/supl_generated/PeriodicParams.c @@ -0,0 +1,200 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "PeriodicParams.h" + +static int +memb_numberOfFixes_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 8639999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_intervalBetweenFixes_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 8639999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_startTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 2678400L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_numberOfFixes_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, 1, 8639999 } /* (1..8639999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_intervalBetweenFixes_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, 1, 8639999 } /* (1..8639999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_startTime_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, 0, 2678400 } /* (0..2678400) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_PeriodicParams_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PeriodicParams, numberOfFixes), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_numberOfFixes_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_numberOfFixes_constraint_1 + }, + 0, 0, /* No default value */ + "numberOfFixes" + }, + { ATF_NOFLAGS, 0, offsetof(struct PeriodicParams, intervalBetweenFixes), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_intervalBetweenFixes_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_intervalBetweenFixes_constraint_1 + }, + 0, 0, /* No default value */ + "intervalBetweenFixes" + }, + { ATF_POINTER, 1, offsetof(struct PeriodicParams, startTime), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_startTime_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_startTime_constraint_1 + }, + 0, 0, /* No default value */ + "startTime" + }, +}; +static const int asn_MAP_PeriodicParams_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_PeriodicParams_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PeriodicParams_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* numberOfFixes */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* intervalBetweenFixes */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* startTime */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PeriodicParams_specs_1 = { + sizeof(struct PeriodicParams), + offsetof(struct PeriodicParams, _asn_ctx), + asn_MAP_PeriodicParams_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_PeriodicParams_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PeriodicParams = { + "PeriodicParams", + "PeriodicParams", + &asn_OP_SEQUENCE, + asn_DEF_PeriodicParams_tags_1, + sizeof(asn_DEF_PeriodicParams_tags_1) + /sizeof(asn_DEF_PeriodicParams_tags_1[0]), /* 1 */ + asn_DEF_PeriodicParams_tags_1, /* Same as above */ + sizeof(asn_DEF_PeriodicParams_tags_1) + /sizeof(asn_DEF_PeriodicParams_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PeriodicParams_1, + 3, /* Elements count */ + &asn_SPC_PeriodicParams_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/PeriodicParams.h b/asn.1/supl_generated/PeriodicParams.h similarity index 75% rename from asn.1/generated/PeriodicParams.h rename to asn.1/supl_generated/PeriodicParams.h index c2aaae95..13db514b 100644 --- a/asn.1/generated/PeriodicParams.h +++ b/asn.1/supl_generated/PeriodicParams.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _PeriodicParams_H_ @@ -23,7 +23,7 @@ extern "C" { typedef struct PeriodicParams { long numberOfFixes; long intervalBetweenFixes; - long *startTime /* OPTIONAL */; + long *startTime; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/supl_generated/PhysCellId.c b/asn.1/supl_generated/PhysCellId.c new file mode 100644 index 00000000..209d3a09 --- /dev/null +++ b/asn.1/supl_generated/PhysCellId.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "PhysCellId.h" + +int +PhysCellId_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 503L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PhysCellId_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 503 } /* (0..503) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_PhysCellId_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PhysCellId = { + "PhysCellId", + "PhysCellId", + &asn_OP_NativeInteger, + asn_DEF_PhysCellId_tags_1, + sizeof(asn_DEF_PhysCellId_tags_1) + /sizeof(asn_DEF_PhysCellId_tags_1[0]), /* 1 */ + asn_DEF_PhysCellId_tags_1, /* Same as above */ + sizeof(asn_DEF_PhysCellId_tags_1) + /sizeof(asn_DEF_PhysCellId_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PhysCellId_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + PhysCellId_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/supl_generated/PhysCellId.h b/asn.1/supl_generated/PhysCellId.h new file mode 100644 index 00000000..7e3c7afe --- /dev/null +++ b/asn.1/supl_generated/PhysCellId.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _PhysCellId_H_ +#define _PhysCellId_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* PhysCellId */ +typedef long PhysCellId_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_PhysCellId_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_PhysCellId; +asn_struct_free_f PhysCellId_free; +asn_constr_check_f PhysCellId_constraint; +xer_type_decoder_f PhysCellId_decode_xer; +xer_type_encoder_f PhysCellId_encode_xer; +jer_type_encoder_f PhysCellId_encode_jer; +per_type_decoder_f PhysCellId_decode_uper; +per_type_encoder_f PhysCellId_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _PhysCellId_H_ */ +#include diff --git a/asn.1/supl_generated/PolygonArea.c b/asn.1/supl_generated/PolygonArea.c new file mode 100644 index 00000000..e5ea152e --- /dev/null +++ b/asn.1/supl_generated/PolygonArea.c @@ -0,0 +1,118 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "PolygonArea.h" + +static int +memb_polygonHysteresis_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 100000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_polygonHysteresis_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 1, 100000 } /* (1..100000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_PolygonArea_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PolygonArea, polygonDescription), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PolygonDescription, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "polygonDescription" + }, + { ATF_POINTER, 1, offsetof(struct PolygonArea, polygonHysteresis), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_polygonHysteresis_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_polygonHysteresis_constraint_1 + }, + 0, 0, /* No default value */ + "polygonHysteresis" + }, +}; +static const int asn_MAP_PolygonArea_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_PolygonArea_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PolygonArea_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* polygonDescription */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* polygonHysteresis */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PolygonArea_specs_1 = { + sizeof(struct PolygonArea), + offsetof(struct PolygonArea, _asn_ctx), + asn_MAP_PolygonArea_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_PolygonArea_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PolygonArea = { + "PolygonArea", + "PolygonArea", + &asn_OP_SEQUENCE, + asn_DEF_PolygonArea_tags_1, + sizeof(asn_DEF_PolygonArea_tags_1) + /sizeof(asn_DEF_PolygonArea_tags_1[0]), /* 1 */ + asn_DEF_PolygonArea_tags_1, /* Same as above */ + sizeof(asn_DEF_PolygonArea_tags_1) + /sizeof(asn_DEF_PolygonArea_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PolygonArea_1, + 2, /* Elements count */ + &asn_SPC_PolygonArea_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/PolygonArea.h b/asn.1/supl_generated/PolygonArea.h new file mode 100644 index 00000000..017ce977 --- /dev/null +++ b/asn.1/supl_generated/PolygonArea.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _PolygonArea_H_ +#define _PolygonArea_H_ + + +#include + +/* Including external dependencies */ +#include "PolygonDescription.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* PolygonArea */ +typedef struct PolygonArea { + PolygonDescription_t polygonDescription; + long *polygonHysteresis; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PolygonArea_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PolygonArea; +extern asn_SEQUENCE_specifics_t asn_SPC_PolygonArea_specs_1; +extern asn_TYPE_member_t asn_MBR_PolygonArea_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PolygonArea_H_ */ +#include diff --git a/asn.1/supl_generated/PolygonDescription.c b/asn.1/supl_generated/PolygonDescription.c new file mode 100644 index 00000000..711883ac --- /dev/null +++ b/asn.1/supl_generated/PolygonDescription.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "PolygonDescription.h" + +#include "Coordinate.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PolygonDescription_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 3, 15 } /* (SIZE(3..15)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_PolygonDescription_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_Coordinate, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_PolygonDescription_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_PolygonDescription_specs_1 = { + sizeof(struct PolygonDescription), + offsetof(struct PolygonDescription, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_PolygonDescription = { + "PolygonDescription", + "PolygonDescription", + &asn_OP_SEQUENCE_OF, + asn_DEF_PolygonDescription_tags_1, + sizeof(asn_DEF_PolygonDescription_tags_1) + /sizeof(asn_DEF_PolygonDescription_tags_1[0]), /* 1 */ + asn_DEF_PolygonDescription_tags_1, /* Same as above */ + sizeof(asn_DEF_PolygonDescription_tags_1) + /sizeof(asn_DEF_PolygonDescription_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PolygonDescription_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_PolygonDescription_1, + 1, /* Single element */ + &asn_SPC_PolygonDescription_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/PolygonDescription.h b/asn.1/supl_generated/PolygonDescription.h similarity index 79% rename from asn.1/generated/PolygonDescription.h rename to asn.1/supl_generated/PolygonDescription.h index ece3f110..ee6d0992 100644 --- a/asn.1/generated/PolygonDescription.h +++ b/asn.1/supl_generated/PolygonDescription.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _PolygonDescription_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_PolygonDescription_constr_1; } #endif -/* Referred external types */ -#include "Coordinate.h" - #endif /* _PolygonDescription_H_ */ #include diff --git a/asn.1/generated/PosMethod.c b/asn.1/supl_generated/PosMethod.c similarity index 77% rename from asn.1/generated/PosMethod.c rename to asn.1/supl_generated/PosMethod.c index 0b6ce7c0..f930d6ad 100644 --- a/asn.1/generated/PosMethod.c +++ b/asn.1/supl_generated/PosMethod.c @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #include "PosMethod.h" @@ -11,11 +11,13 @@ * This type is implemented using NativeEnumerated, * so here we adjust the DEF accordingly. */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) asn_per_constraints_t asn_PER_type_PosMethod_constr_1 CC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 0, 9 } /* (0..9,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ static const asn_INTEGER_enum_map_t asn_MAP_PosMethod_value2enum_1[] = { { 0, 15, "agpsSETassisted" }, { 1, 12, "agpsSETbased" }, @@ -78,7 +80,15 @@ asn_TYPE_descriptor_t asn_DEF_PosMethod = { asn_DEF_PosMethod_tags_1, /* Same as above */ sizeof(asn_DEF_PosMethod_tags_1) /sizeof(asn_DEF_PosMethod_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_PosMethod_constr_1, NativeEnumerated_constraint }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PosMethod_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, 0, 0, /* Defined elsewhere */ &asn_SPC_PosMethod_specs_1 /* Additional specs */ }; diff --git a/asn.1/generated/PosMethod.h b/asn.1/supl_generated/PosMethod.h similarity index 83% rename from asn.1/generated/PosMethod.h rename to asn.1/supl_generated/PosMethod.h index fb28d34d..93469b76 100644 --- a/asn.1/generated/PosMethod.h +++ b/asn.1/supl_generated/PosMethod.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _PosMethod_H_ @@ -50,12 +50,10 @@ extern asn_per_constraints_t asn_PER_type_PosMethod_constr_1; extern asn_TYPE_descriptor_t asn_DEF_PosMethod; extern const asn_INTEGER_specifics_t asn_SPC_PosMethod_specs_1; asn_struct_free_f PosMethod_free; -asn_struct_print_f PosMethod_print; asn_constr_check_f PosMethod_constraint; -ber_type_decoder_f PosMethod_decode_ber; -der_type_encoder_f PosMethod_encode_der; xer_type_decoder_f PosMethod_decode_xer; xer_type_encoder_f PosMethod_encode_xer; +jer_type_encoder_f PosMethod_encode_jer; per_type_decoder_f PosMethod_decode_uper; per_type_encoder_f PosMethod_encode_uper; diff --git a/asn.1/supl_generated/PosPayLoad.c b/asn.1/supl_generated/PosPayLoad.c new file mode 100644 index 00000000..d5f897e9 --- /dev/null +++ b/asn.1/supl_generated/PosPayLoad.c @@ -0,0 +1,223 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-POS" + * found in "src/SUPL-POS.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "PosPayLoad.h" + +static int +memb_tia801payload_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size >= 1UL && size <= 8192UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_rrcPayload_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size >= 1UL && size <= 8192UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_rrlpPayload_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size >= 1UL && size <= 8192UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tia801payload_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 13, 13, 1, 8192 } /* (SIZE(1..8192)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rrcPayload_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 13, 13, 1, 8192 } /* (SIZE(1..8192)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rrlpPayload_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 13, 13, 1, 8192 } /* (SIZE(1..8192)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PosPayLoad_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_PosPayLoad_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PosPayLoad, choice.tia801payload), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OCTET_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tia801payload_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tia801payload_constraint_1 + }, + 0, 0, /* No default value */ + "tia801payload" + }, + { ATF_NOFLAGS, 0, offsetof(struct PosPayLoad, choice.rrcPayload), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OCTET_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rrcPayload_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rrcPayload_constraint_1 + }, + 0, 0, /* No default value */ + "rrcPayload" + }, + { ATF_NOFLAGS, 0, offsetof(struct PosPayLoad, choice.rrlpPayload), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OCTET_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rrlpPayload_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rrlpPayload_constraint_1 + }, + 0, 0, /* No default value */ + "rrlpPayload" + }, + { ATF_NOFLAGS, 0, offsetof(struct PosPayLoad, choice.ver2_PosPayLoad_extension), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver2_PosPayLoad_extension, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ver2-PosPayLoad-extension" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_PosPayLoad_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tia801payload */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* rrcPayload */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* rrlpPayload */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ver2-PosPayLoad-extension */ +}; +asn_CHOICE_specifics_t asn_SPC_PosPayLoad_specs_1 = { + sizeof(struct PosPayLoad), + offsetof(struct PosPayLoad, _asn_ctx), + offsetof(struct PosPayLoad, present), + sizeof(((struct PosPayLoad *)0)->present), + asn_MAP_PosPayLoad_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, + 3 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_PosPayLoad = { + "PosPayLoad", + "PosPayLoad", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PosPayLoad_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_PosPayLoad_1, + 4, /* Elements count */ + &asn_SPC_PosPayLoad_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/PosPayLoad.h b/asn.1/supl_generated/PosPayLoad.h similarity index 85% rename from asn.1/generated/PosPayLoad.h rename to asn.1/supl_generated/PosPayLoad.h index 34b1e292..43519b57 100644 --- a/asn.1/generated/PosPayLoad.h +++ b/asn.1/supl_generated/PosPayLoad.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-POS" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-POS.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _PosPayLoad_H_ diff --git a/asn.1/supl_generated/PosProtocol.c b/asn.1/supl_generated/PosProtocol.c new file mode 100644 index 00000000..bec01012 --- /dev/null +++ b/asn.1/supl_generated/PosProtocol.c @@ -0,0 +1,123 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-START" + * found in "src/SUPL-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "PosProtocol.h" + +#include "Ver2-PosProtocol-extension.h" +asn_TYPE_member_t asn_MBR_PosProtocol_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PosProtocol, tia801), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tia801" + }, + { ATF_NOFLAGS, 0, offsetof(struct PosProtocol, rrlp), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rrlp" + }, + { ATF_NOFLAGS, 0, offsetof(struct PosProtocol, rrc), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rrc" + }, + { ATF_POINTER, 1, offsetof(struct PosProtocol, ver2_PosProtocol_extension), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver2_PosProtocol_extension, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ver2-PosProtocol-extension" + }, +}; +static const int asn_MAP_PosProtocol_oms_1[] = { 3 }; +static const ber_tlv_tag_t asn_DEF_PosProtocol_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PosProtocol_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tia801 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* rrlp */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* rrc */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ver2-PosProtocol-extension */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PosProtocol_specs_1 = { + sizeof(struct PosProtocol), + offsetof(struct PosProtocol, _asn_ctx), + asn_MAP_PosProtocol_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_PosProtocol_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PosProtocol = { + "PosProtocol", + "PosProtocol", + &asn_OP_SEQUENCE, + asn_DEF_PosProtocol_tags_1, + sizeof(asn_DEF_PosProtocol_tags_1) + /sizeof(asn_DEF_PosProtocol_tags_1[0]), /* 1 */ + asn_DEF_PosProtocol_tags_1, /* Same as above */ + sizeof(asn_DEF_PosProtocol_tags_1) + /sizeof(asn_DEF_PosProtocol_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PosProtocol_1, + 4, /* Elements count */ + &asn_SPC_PosProtocol_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/PosProtocol.h b/asn.1/supl_generated/PosProtocol.h new file mode 100644 index 00000000..6a3cb5a5 --- /dev/null +++ b/asn.1/supl_generated/PosProtocol.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-START" + * found in "src/SUPL-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _PosProtocol_H_ +#define _PosProtocol_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct Ver2_PosProtocol_extension; + +/* PosProtocol */ +typedef struct PosProtocol { + BOOLEAN_t tia801; + BOOLEAN_t rrlp; + BOOLEAN_t rrc; + /* + * This type is extensible, + * possible extensions are below. + */ + struct Ver2_PosProtocol_extension *ver2_PosProtocol_extension; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PosProtocol_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PosProtocol; +extern asn_SEQUENCE_specifics_t asn_SPC_PosProtocol_specs_1; +extern asn_TYPE_member_t asn_MBR_PosProtocol_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PosProtocol_H_ */ +#include diff --git a/asn.1/supl_generated/PosProtocolVersion3GPP.c b/asn.1/supl_generated/PosProtocolVersion3GPP.c new file mode 100644 index 00000000..3fa96279 --- /dev/null +++ b/asn.1/supl_generated/PosProtocolVersion3GPP.c @@ -0,0 +1,198 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "PosProtocolVersion3GPP.h" + +static int +memb_majorVersionField_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_technicalVersionField_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_editorialVersionField_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_majorVersionField_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_technicalVersionField_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_editorialVersionField_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_PosProtocolVersion3GPP_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PosProtocolVersion3GPP, majorVersionField), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_majorVersionField_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_majorVersionField_constraint_1 + }, + 0, 0, /* No default value */ + "majorVersionField" + }, + { ATF_NOFLAGS, 0, offsetof(struct PosProtocolVersion3GPP, technicalVersionField), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_technicalVersionField_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_technicalVersionField_constraint_1 + }, + 0, 0, /* No default value */ + "technicalVersionField" + }, + { ATF_NOFLAGS, 0, offsetof(struct PosProtocolVersion3GPP, editorialVersionField), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_editorialVersionField_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_editorialVersionField_constraint_1 + }, + 0, 0, /* No default value */ + "editorialVersionField" + }, +}; +static const ber_tlv_tag_t asn_DEF_PosProtocolVersion3GPP_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PosProtocolVersion3GPP_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* majorVersionField */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* technicalVersionField */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* editorialVersionField */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PosProtocolVersion3GPP_specs_1 = { + sizeof(struct PosProtocolVersion3GPP), + offsetof(struct PosProtocolVersion3GPP, _asn_ctx), + asn_MAP_PosProtocolVersion3GPP_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PosProtocolVersion3GPP = { + "PosProtocolVersion3GPP", + "PosProtocolVersion3GPP", + &asn_OP_SEQUENCE, + asn_DEF_PosProtocolVersion3GPP_tags_1, + sizeof(asn_DEF_PosProtocolVersion3GPP_tags_1) + /sizeof(asn_DEF_PosProtocolVersion3GPP_tags_1[0]), /* 1 */ + asn_DEF_PosProtocolVersion3GPP_tags_1, /* Same as above */ + sizeof(asn_DEF_PosProtocolVersion3GPP_tags_1) + /sizeof(asn_DEF_PosProtocolVersion3GPP_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PosProtocolVersion3GPP_1, + 3, /* Elements count */ + &asn_SPC_PosProtocolVersion3GPP_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/PosProtocolVersion3GPP.h b/asn.1/supl_generated/PosProtocolVersion3GPP.h similarity index 79% rename from asn.1/generated/PosProtocolVersion3GPP.h rename to asn.1/supl_generated/PosProtocolVersion3GPP.h index b1822fdc..d54f03b6 100644 --- a/asn.1/generated/PosProtocolVersion3GPP.h +++ b/asn.1/supl_generated/PosProtocolVersion3GPP.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _PosProtocolVersion3GPP_H_ diff --git a/asn.1/supl_generated/PosProtocolVersion3GPP2.c b/asn.1/supl_generated/PosProtocolVersion3GPP2.c new file mode 100644 index 00000000..1fc4c2d2 --- /dev/null +++ b/asn.1/supl_generated/PosProtocolVersion3GPP2.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "PosProtocolVersion3GPP2.h" + +#include "Supported3GPP2PosProtocolVersion.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PosProtocolVersion3GPP2_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_PosProtocolVersion3GPP2_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_Supported3GPP2PosProtocolVersion, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_PosProtocolVersion3GPP2_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_PosProtocolVersion3GPP2_specs_1 = { + sizeof(struct PosProtocolVersion3GPP2), + offsetof(struct PosProtocolVersion3GPP2, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_PosProtocolVersion3GPP2 = { + "PosProtocolVersion3GPP2", + "PosProtocolVersion3GPP2", + &asn_OP_SEQUENCE_OF, + asn_DEF_PosProtocolVersion3GPP2_tags_1, + sizeof(asn_DEF_PosProtocolVersion3GPP2_tags_1) + /sizeof(asn_DEF_PosProtocolVersion3GPP2_tags_1[0]), /* 1 */ + asn_DEF_PosProtocolVersion3GPP2_tags_1, /* Same as above */ + sizeof(asn_DEF_PosProtocolVersion3GPP2_tags_1) + /sizeof(asn_DEF_PosProtocolVersion3GPP2_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PosProtocolVersion3GPP2_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_PosProtocolVersion3GPP2_1, + 1, /* Single element */ + &asn_SPC_PosProtocolVersion3GPP2_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/PosProtocolVersion3GPP2.h b/asn.1/supl_generated/PosProtocolVersion3GPP2.h similarity index 80% rename from asn.1/generated/PosProtocolVersion3GPP2.h rename to asn.1/supl_generated/PosProtocolVersion3GPP2.h index 99af0531..e529da7f 100644 --- a/asn.1/generated/PosProtocolVersion3GPP2.h +++ b/asn.1/supl_generated/PosProtocolVersion3GPP2.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _PosProtocolVersion3GPP2_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_PosProtocolVersion3GPP2_constr_1; } #endif -/* Referred external types */ -#include "Supported3GPP2PosProtocolVersion.h" - #endif /* _PosProtocolVersion3GPP2_H_ */ #include diff --git a/asn.1/supl_generated/PosTechnology.c b/asn.1/supl_generated/PosTechnology.c new file mode 100644 index 00000000..33d775dd --- /dev/null +++ b/asn.1/supl_generated/PosTechnology.c @@ -0,0 +1,195 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-START" + * found in "src/SUPL-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "PosTechnology.h" + +#include "Ver2-PosTechnology-extension.h" +asn_TYPE_member_t asn_MBR_PosTechnology_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PosTechnology, agpsSETassisted), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "agpsSETassisted" + }, + { ATF_NOFLAGS, 0, offsetof(struct PosTechnology, agpsSETBased), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "agpsSETBased" + }, + { ATF_NOFLAGS, 0, offsetof(struct PosTechnology, autonomousGPS), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "autonomousGPS" + }, + { ATF_NOFLAGS, 0, offsetof(struct PosTechnology, aFLT), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "aFLT" + }, + { ATF_NOFLAGS, 0, offsetof(struct PosTechnology, eCID), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eCID" + }, + { ATF_NOFLAGS, 0, offsetof(struct PosTechnology, eOTD), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eOTD" + }, + { ATF_NOFLAGS, 0, offsetof(struct PosTechnology, oTDOA), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "oTDOA" + }, + { ATF_POINTER, 1, offsetof(struct PosTechnology, ver2_PosTechnology_extension), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver2_PosTechnology_extension, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ver2-PosTechnology-extension" + }, +}; +static const int asn_MAP_PosTechnology_oms_1[] = { 7 }; +static const ber_tlv_tag_t asn_DEF_PosTechnology_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PosTechnology_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* agpsSETassisted */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* agpsSETBased */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* autonomousGPS */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* aFLT */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* eCID */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* eOTD */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* oTDOA */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* ver2-PosTechnology-extension */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PosTechnology_specs_1 = { + sizeof(struct PosTechnology), + offsetof(struct PosTechnology, _asn_ctx), + asn_MAP_PosTechnology_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_PosTechnology_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PosTechnology = { + "PosTechnology", + "PosTechnology", + &asn_OP_SEQUENCE, + asn_DEF_PosTechnology_tags_1, + sizeof(asn_DEF_PosTechnology_tags_1) + /sizeof(asn_DEF_PosTechnology_tags_1[0]), /* 1 */ + asn_DEF_PosTechnology_tags_1, /* Same as above */ + sizeof(asn_DEF_PosTechnology_tags_1) + /sizeof(asn_DEF_PosTechnology_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PosTechnology_1, + 8, /* Elements count */ + &asn_SPC_PosTechnology_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/PosTechnology.h b/asn.1/supl_generated/PosTechnology.h similarity index 80% rename from asn.1/generated/PosTechnology.h rename to asn.1/supl_generated/PosTechnology.h index 4bc08dcf..c132e313 100644 --- a/asn.1/generated/PosTechnology.h +++ b/asn.1/supl_generated/PosTechnology.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _PosTechnology_H_ @@ -35,7 +35,7 @@ typedef struct PosTechnology { * This type is extensible, * possible extensions are below. */ - struct Ver2_PosTechnology_extension *ver2_PosTechnology_extension /* OPTIONAL */; + struct Ver2_PosTechnology_extension *ver2_PosTechnology_extension; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -50,8 +50,5 @@ extern asn_TYPE_member_t asn_MBR_PosTechnology_1[8]; } #endif -/* Referred external types */ -#include "Ver2-PosTechnology-extension.h" - #endif /* _PosTechnology_H_ */ #include diff --git a/asn.1/supl_generated/Position.c b/asn.1/supl_generated/Position.c new file mode 100644 index 00000000..7396c14c --- /dev/null +++ b/asn.1/supl_generated/Position.c @@ -0,0 +1,105 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Position.h" + +#include "ULP-Velocity.h" +asn_TYPE_member_t asn_MBR_Position_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Position, timestamp), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTCTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "timestamp" + }, + { ATF_NOFLAGS, 0, offsetof(struct Position, positionEstimate), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositionEstimate, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "positionEstimate" + }, + { ATF_POINTER, 1, offsetof(struct Position, velocity), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_ULP_Velocity, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "velocity" + }, +}; +static const int asn_MAP_Position_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_Position_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Position_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* timestamp */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* positionEstimate */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* velocity */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Position_specs_1 = { + sizeof(struct Position), + offsetof(struct Position, _asn_ctx), + asn_MAP_Position_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_Position_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Position = { + "Position", + "Position", + &asn_OP_SEQUENCE, + asn_DEF_Position_tags_1, + sizeof(asn_DEF_Position_tags_1) + /sizeof(asn_DEF_Position_tags_1[0]), /* 1 */ + asn_DEF_Position_tags_1, /* Same as above */ + sizeof(asn_DEF_Position_tags_1) + /sizeof(asn_DEF_Position_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Position_1, + 3, /* Elements count */ + &asn_SPC_Position_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Position.h b/asn.1/supl_generated/Position.h similarity index 75% rename from asn.1/generated/Position.h rename to asn.1/supl_generated/Position.h index 2e4f504e..cbbe3ba8 100644 --- a/asn.1/generated/Position.h +++ b/asn.1/supl_generated/Position.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _Position_H_ @@ -27,7 +27,7 @@ struct ULP_Velocity; typedef struct Position { UTCTime_t timestamp; PositionEstimate_t positionEstimate; - struct ULP_Velocity *velocity /* OPTIONAL */; + struct ULP_Velocity *velocity; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -46,8 +46,5 @@ extern asn_TYPE_member_t asn_MBR_Position_1[3]; } #endif -/* Referred external types */ -#include "ULP-Velocity.h" - #endif /* _Position_H_ */ #include diff --git a/asn.1/supl_generated/PositionEstimate.c b/asn.1/supl_generated/PositionEstimate.c new file mode 100644 index 00000000..7d64d90a --- /dev/null +++ b/asn.1/supl_generated/PositionEstimate.c @@ -0,0 +1,502 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "PositionEstimate.h" + +#include "AltitudeInfo.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_uncertaintySemiMajor_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_uncertaintySemiMinor_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_orientationMajorAxis_constraint_7(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 180L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_latitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_longitude_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -8388608L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_confidence_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 100L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_latitudeSign_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintySemiMajor_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_uncertaintySemiMinor_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_orientationMajorAxis_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 180 } /* (0..180) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_latitude_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_longitude_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_confidence_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_latitudeSign_value2enum_2[] = { + { 0, 5, "north" }, + { 1, 5, "south" } +}; +static const unsigned int asn_MAP_latitudeSign_enum2value_2[] = { + 0, /* north(0) */ + 1 /* south(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_latitudeSign_specs_2 = { + asn_MAP_latitudeSign_value2enum_2, /* "tag" => N; sorted by tag */ + asn_MAP_latitudeSign_enum2value_2, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_latitudeSign_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_latitudeSign_2 = { + "latitudeSign", + "latitudeSign", + &asn_OP_NativeEnumerated, + asn_DEF_latitudeSign_tags_2, + sizeof(asn_DEF_latitudeSign_tags_2) + /sizeof(asn_DEF_latitudeSign_tags_2[0]) - 1, /* 1 */ + asn_DEF_latitudeSign_tags_2, /* Same as above */ + sizeof(asn_DEF_latitudeSign_tags_2) + /sizeof(asn_DEF_latitudeSign_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_latitudeSign_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_latitudeSign_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_uncertainty_7[] = { + { ATF_NOFLAGS, 0, offsetof(struct PositionEstimate__uncertainty, uncertaintySemiMajor), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintySemiMajor_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintySemiMajor_constraint_7 + }, + 0, 0, /* No default value */ + "uncertaintySemiMajor" + }, + { ATF_NOFLAGS, 0, offsetof(struct PositionEstimate__uncertainty, uncertaintySemiMinor), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uncertaintySemiMinor_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uncertaintySemiMinor_constraint_7 + }, + 0, 0, /* No default value */ + "uncertaintySemiMinor" + }, + { ATF_NOFLAGS, 0, offsetof(struct PositionEstimate__uncertainty, orientationMajorAxis), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_orientationMajorAxis_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_orientationMajorAxis_constraint_7 + }, + 0, 0, /* No default value */ + "orientationMajorAxis" + }, +}; +static const ber_tlv_tag_t asn_DEF_uncertainty_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_uncertainty_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* uncertaintySemiMajor */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uncertaintySemiMinor */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* orientationMajorAxis */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_uncertainty_specs_7 = { + sizeof(struct PositionEstimate__uncertainty), + offsetof(struct PositionEstimate__uncertainty, _asn_ctx), + asn_MAP_uncertainty_tag2el_7, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_uncertainty_7 = { + "uncertainty", + "uncertainty", + &asn_OP_SEQUENCE, + asn_DEF_uncertainty_tags_7, + sizeof(asn_DEF_uncertainty_tags_7) + /sizeof(asn_DEF_uncertainty_tags_7[0]) - 1, /* 1 */ + asn_DEF_uncertainty_tags_7, /* Same as above */ + sizeof(asn_DEF_uncertainty_tags_7) + /sizeof(asn_DEF_uncertainty_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_uncertainty_7, + 3, /* Elements count */ + &asn_SPC_uncertainty_specs_7 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_PositionEstimate_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PositionEstimate, latitudeSign), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_latitudeSign_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "latitudeSign" + }, + { ATF_NOFLAGS, 0, offsetof(struct PositionEstimate, latitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_latitude_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_latitude_constraint_1 + }, + 0, 0, /* No default value */ + "latitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct PositionEstimate, longitude), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_longitude_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_longitude_constraint_1 + }, + 0, 0, /* No default value */ + "longitude" + }, + { ATF_POINTER, 3, offsetof(struct PositionEstimate, uncertainty), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + 0, + &asn_DEF_uncertainty_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "uncertainty" + }, + { ATF_POINTER, 2, offsetof(struct PositionEstimate, confidence), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_confidence_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_confidence_constraint_1 + }, + 0, 0, /* No default value */ + "confidence" + }, + { ATF_POINTER, 1, offsetof(struct PositionEstimate, altitudeInfo), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AltitudeInfo, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "altitudeInfo" + }, +}; +static const int asn_MAP_PositionEstimate_oms_1[] = { 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_PositionEstimate_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PositionEstimate_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeSign */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* latitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* longitude */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* uncertainty */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* confidence */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* altitudeInfo */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PositionEstimate_specs_1 = { + sizeof(struct PositionEstimate), + offsetof(struct PositionEstimate, _asn_ctx), + asn_MAP_PositionEstimate_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_PositionEstimate_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PositionEstimate = { + "PositionEstimate", + "PositionEstimate", + &asn_OP_SEQUENCE, + asn_DEF_PositionEstimate_tags_1, + sizeof(asn_DEF_PositionEstimate_tags_1) + /sizeof(asn_DEF_PositionEstimate_tags_1[0]), /* 1 */ + asn_DEF_PositionEstimate_tags_1, /* Same as above */ + sizeof(asn_DEF_PositionEstimate_tags_1) + /sizeof(asn_DEF_PositionEstimate_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PositionEstimate_1, + 6, /* Elements count */ + &asn_SPC_PositionEstimate_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/PositionEstimate.h b/asn.1/supl_generated/PositionEstimate.h similarity index 81% rename from asn.1/generated/PositionEstimate.h rename to asn.1/supl_generated/PositionEstimate.h index cffae29a..1ac1c226 100644 --- a/asn.1/generated/PositionEstimate.h +++ b/asn.1/supl_generated/PositionEstimate.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _PositionEstimate_H_ @@ -42,8 +42,8 @@ typedef struct PositionEstimate { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *uncertainty; - long *confidence /* OPTIONAL */; - struct AltitudeInfo *altitudeInfo /* OPTIONAL */; + long *confidence; /* OPTIONAL */ + struct AltitudeInfo *altitudeInfo; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -63,8 +63,5 @@ extern asn_TYPE_member_t asn_MBR_PositionEstimate_1[6]; } #endif -/* Referred external types */ -#include "AltitudeInfo.h" - #endif /* _PositionEstimate_H_ */ #include diff --git a/asn.1/supl_generated/PrefMethod.c b/asn.1/supl_generated/PrefMethod.c new file mode 100644 index 00000000..fc390a7a --- /dev/null +++ b/asn.1/supl_generated/PrefMethod.c @@ -0,0 +1,65 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-START" + * found in "src/SUPL-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "PrefMethod.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PrefMethod_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_PrefMethod_value2enum_1[] = { + { 0, 24, "agpsSETassistedPreferred" }, + { 1, 21, "agpsSETBasedPreferred" }, + { 2, 12, "noPreference" } +}; +static const unsigned int asn_MAP_PrefMethod_enum2value_1[] = { + 1, /* agpsSETBasedPreferred(1) */ + 0, /* agpsSETassistedPreferred(0) */ + 2 /* noPreference(2) */ +}; +const asn_INTEGER_specifics_t asn_SPC_PrefMethod_specs_1 = { + asn_MAP_PrefMethod_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_PrefMethod_enum2value_1, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_PrefMethod_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PrefMethod = { + "PrefMethod", + "PrefMethod", + &asn_OP_NativeEnumerated, + asn_DEF_PrefMethod_tags_1, + sizeof(asn_DEF_PrefMethod_tags_1) + /sizeof(asn_DEF_PrefMethod_tags_1[0]), /* 1 */ + asn_DEF_PrefMethod_tags_1, /* Same as above */ + sizeof(asn_DEF_PrefMethod_tags_1) + /sizeof(asn_DEF_PrefMethod_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PrefMethod_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_PrefMethod_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/PrefMethod.h b/asn.1/supl_generated/PrefMethod.h similarity index 77% rename from asn.1/generated/PrefMethod.h rename to asn.1/supl_generated/PrefMethod.h index 2d1d3b1d..2bf95e91 100644 --- a/asn.1/generated/PrefMethod.h +++ b/asn.1/supl_generated/PrefMethod.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _PrefMethod_H_ @@ -33,12 +33,10 @@ extern asn_per_constraints_t asn_PER_type_PrefMethod_constr_1; extern asn_TYPE_descriptor_t asn_DEF_PrefMethod; extern const asn_INTEGER_specifics_t asn_SPC_PrefMethod_specs_1; asn_struct_free_f PrefMethod_free; -asn_struct_print_f PrefMethod_print; asn_constr_check_f PrefMethod_constraint; -ber_type_decoder_f PrefMethod_decode_ber; -der_type_encoder_f PrefMethod_encode_der; xer_type_decoder_f PrefMethod_decode_xer; xer_type_encoder_f PrefMethod_encode_xer; +jer_type_encoder_f PrefMethod_encode_jer; per_type_decoder_f PrefMethod_decode_uper; per_type_encoder_f PrefMethod_encode_uper; diff --git a/asn.1/supl_generated/PrimaryCCPCH-RSCP.c b/asn.1/supl_generated/PrimaryCCPCH-RSCP.c new file mode 100644 index 00000000..fd0287a4 --- /dev/null +++ b/asn.1/supl_generated/PrimaryCCPCH-RSCP.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "PrimaryCCPCH-RSCP.h" + +int +PrimaryCCPCH_RSCP_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PrimaryCCPCH_RSCP_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_PrimaryCCPCH_RSCP_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PrimaryCCPCH_RSCP = { + "PrimaryCCPCH-RSCP", + "PrimaryCCPCH-RSCP", + &asn_OP_NativeInteger, + asn_DEF_PrimaryCCPCH_RSCP_tags_1, + sizeof(asn_DEF_PrimaryCCPCH_RSCP_tags_1) + /sizeof(asn_DEF_PrimaryCCPCH_RSCP_tags_1[0]), /* 1 */ + asn_DEF_PrimaryCCPCH_RSCP_tags_1, /* Same as above */ + sizeof(asn_DEF_PrimaryCCPCH_RSCP_tags_1) + /sizeof(asn_DEF_PrimaryCCPCH_RSCP_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PrimaryCCPCH_RSCP_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + PrimaryCCPCH_RSCP_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/supl_generated/PrimaryCCPCH-RSCP.h b/asn.1/supl_generated/PrimaryCCPCH-RSCP.h new file mode 100644 index 00000000..3d74708e --- /dev/null +++ b/asn.1/supl_generated/PrimaryCCPCH-RSCP.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _PrimaryCCPCH_RSCP_H_ +#define _PrimaryCCPCH_RSCP_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* PrimaryCCPCH-RSCP */ +typedef long PrimaryCCPCH_RSCP_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_PrimaryCCPCH_RSCP_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_PrimaryCCPCH_RSCP; +asn_struct_free_f PrimaryCCPCH_RSCP_free; +asn_constr_check_f PrimaryCCPCH_RSCP_constraint; +xer_type_decoder_f PrimaryCCPCH_RSCP_decode_xer; +xer_type_encoder_f PrimaryCCPCH_RSCP_encode_xer; +jer_type_encoder_f PrimaryCCPCH_RSCP_encode_jer; +per_type_decoder_f PrimaryCCPCH_RSCP_decode_uper; +per_type_encoder_f PrimaryCCPCH_RSCP_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _PrimaryCCPCH_RSCP_H_ */ +#include diff --git a/asn.1/supl_generated/PrimaryCPICH-Info.c b/asn.1/supl_generated/PrimaryCPICH-Info.c new file mode 100644 index 00000000..94fb8483 --- /dev/null +++ b/asn.1/supl_generated/PrimaryCPICH-Info.c @@ -0,0 +1,98 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "PrimaryCPICH-Info.h" + +static int +memb_primaryScramblingCode_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_primaryScramblingCode_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_PrimaryCPICH_Info_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PrimaryCPICH_Info, primaryScramblingCode), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_primaryScramblingCode_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_primaryScramblingCode_constraint_1 + }, + 0, 0, /* No default value */ + "primaryScramblingCode" + }, +}; +static const ber_tlv_tag_t asn_DEF_PrimaryCPICH_Info_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PrimaryCPICH_Info_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* primaryScramblingCode */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PrimaryCPICH_Info_specs_1 = { + sizeof(struct PrimaryCPICH_Info), + offsetof(struct PrimaryCPICH_Info, _asn_ctx), + asn_MAP_PrimaryCPICH_Info_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PrimaryCPICH_Info = { + "PrimaryCPICH-Info", + "PrimaryCPICH-Info", + &asn_OP_SEQUENCE, + asn_DEF_PrimaryCPICH_Info_tags_1, + sizeof(asn_DEF_PrimaryCPICH_Info_tags_1) + /sizeof(asn_DEF_PrimaryCPICH_Info_tags_1[0]), /* 1 */ + asn_DEF_PrimaryCPICH_Info_tags_1, /* Same as above */ + sizeof(asn_DEF_PrimaryCPICH_Info_tags_1) + /sizeof(asn_DEF_PrimaryCPICH_Info_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PrimaryCPICH_Info_1, + 1, /* Elements count */ + &asn_SPC_PrimaryCPICH_Info_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/PrimaryCPICH-Info.h b/asn.1/supl_generated/PrimaryCPICH-Info.h similarity index 76% rename from asn.1/generated/PrimaryCPICH-Info.h rename to asn.1/supl_generated/PrimaryCPICH-Info.h index 70dc3055..33fb1d0e 100644 --- a/asn.1/generated/PrimaryCPICH-Info.h +++ b/asn.1/supl_generated/PrimaryCPICH-Info.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _PrimaryCPICH_Info_H_ diff --git a/asn.1/supl_generated/ProtLevel.c b/asn.1/supl_generated/ProtLevel.c new file mode 100644 index 00000000..09b44bcc --- /dev/null +++ b/asn.1/supl_generated/ProtLevel.c @@ -0,0 +1,65 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ProtLevel.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ProtLevel_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_ProtLevel_value2enum_1[] = { + { 0, 14, "nullProtection" }, + { 1, 15, "basicProtection" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_ProtLevel_enum2value_1[] = { + 1, /* basicProtection(1) */ + 0 /* nullProtection(0) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_ProtLevel_specs_1 = { + asn_MAP_ProtLevel_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_ProtLevel_enum2value_1, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ProtLevel_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ProtLevel = { + "ProtLevel", + "ProtLevel", + &asn_OP_NativeEnumerated, + asn_DEF_ProtLevel_tags_1, + sizeof(asn_DEF_ProtLevel_tags_1) + /sizeof(asn_DEF_ProtLevel_tags_1[0]), /* 1 */ + asn_DEF_ProtLevel_tags_1, /* Same as above */ + sizeof(asn_DEF_ProtLevel_tags_1) + /sizeof(asn_DEF_ProtLevel_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ProtLevel_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ProtLevel_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ProtLevel.h b/asn.1/supl_generated/ProtLevel.h similarity index 77% rename from asn.1/generated/ProtLevel.h rename to asn.1/supl_generated/ProtLevel.h index 4e49bcaf..9299a46c 100644 --- a/asn.1/generated/ProtLevel.h +++ b/asn.1/supl_generated/ProtLevel.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-message-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _ProtLevel_H_ @@ -35,12 +35,10 @@ extern asn_per_constraints_t asn_PER_type_ProtLevel_constr_1; extern asn_TYPE_descriptor_t asn_DEF_ProtLevel; extern const asn_INTEGER_specifics_t asn_SPC_ProtLevel_specs_1; asn_struct_free_f ProtLevel_free; -asn_struct_print_f ProtLevel_print; asn_constr_check_f ProtLevel_constraint; -ber_type_decoder_f ProtLevel_decode_ber; -der_type_encoder_f ProtLevel_encode_der; xer_type_decoder_f ProtLevel_decode_xer; xer_type_encoder_f ProtLevel_encode_xer; +jer_type_encoder_f ProtLevel_encode_jer; per_type_decoder_f ProtLevel_decode_uper; per_type_encoder_f ProtLevel_encode_uper; diff --git a/asn.1/supl_generated/ProtectionLevel.c b/asn.1/supl_generated/ProtectionLevel.c new file mode 100644 index 00000000..abc9e285 --- /dev/null +++ b/asn.1/supl_generated/ProtectionLevel.c @@ -0,0 +1,87 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ProtectionLevel.h" + +#include "BasicProtectionParams.h" +asn_TYPE_member_t asn_MBR_ProtectionLevel_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ProtectionLevel, protlevel), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ProtLevel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "protlevel" + }, + { ATF_POINTER, 1, offsetof(struct ProtectionLevel, basicProtectionParams), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BasicProtectionParams, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "basicProtectionParams" + }, +}; +static const int asn_MAP_ProtectionLevel_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_ProtectionLevel_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ProtectionLevel_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* protlevel */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* basicProtectionParams */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ProtectionLevel_specs_1 = { + sizeof(struct ProtectionLevel), + offsetof(struct ProtectionLevel, _asn_ctx), + asn_MAP_ProtectionLevel_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_ProtectionLevel_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ProtectionLevel = { + "ProtectionLevel", + "ProtectionLevel", + &asn_OP_SEQUENCE, + asn_DEF_ProtectionLevel_tags_1, + sizeof(asn_DEF_ProtectionLevel_tags_1) + /sizeof(asn_DEF_ProtectionLevel_tags_1[0]), /* 1 */ + asn_DEF_ProtectionLevel_tags_1, /* Same as above */ + sizeof(asn_DEF_ProtectionLevel_tags_1) + /sizeof(asn_DEF_ProtectionLevel_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ProtectionLevel_1, + 2, /* Elements count */ + &asn_SPC_ProtectionLevel_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/ProtectionLevel.h b/asn.1/supl_generated/ProtectionLevel.h new file mode 100644 index 00000000..5ba7398c --- /dev/null +++ b/asn.1/supl_generated/ProtectionLevel.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _ProtectionLevel_H_ +#define _ProtectionLevel_H_ + + +#include + +/* Including external dependencies */ +#include "ProtLevel.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct BasicProtectionParams; + +/* ProtectionLevel */ +typedef struct ProtectionLevel { + ProtLevel_t protlevel; + struct BasicProtectionParams *basicProtectionParams; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ProtectionLevel_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ProtectionLevel; +extern asn_SEQUENCE_specifics_t asn_SPC_ProtectionLevel_specs_1; +extern asn_TYPE_member_t asn_MBR_ProtectionLevel_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ProtectionLevel_H_ */ +#include diff --git a/asn.1/supl_generated/QoP.c b/asn.1/supl_generated/QoP.c new file mode 100644 index 00000000..840ffc93 --- /dev/null +++ b/asn.1/supl_generated/QoP.c @@ -0,0 +1,250 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "QoP.h" + +static int +memb_horacc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_veracc_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_maxLocAge_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_delay_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 7L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_horacc_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_veracc_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxLocAge_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_delay_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_QoP_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct QoP, horacc), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_horacc_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_horacc_constraint_1 + }, + 0, 0, /* No default value */ + "horacc" + }, + { ATF_POINTER, 3, offsetof(struct QoP, veracc), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_veracc_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_veracc_constraint_1 + }, + 0, 0, /* No default value */ + "veracc" + }, + { ATF_POINTER, 2, offsetof(struct QoP, maxLocAge), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxLocAge_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxLocAge_constraint_1 + }, + 0, 0, /* No default value */ + "maxLocAge" + }, + { ATF_POINTER, 1, offsetof(struct QoP, delay), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_delay_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_delay_constraint_1 + }, + 0, 0, /* No default value */ + "delay" + }, +}; +static const int asn_MAP_QoP_oms_1[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_QoP_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_QoP_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horacc */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* veracc */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* maxLocAge */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* delay */ +}; +asn_SEQUENCE_specifics_t asn_SPC_QoP_specs_1 = { + sizeof(struct QoP), + offsetof(struct QoP, _asn_ctx), + asn_MAP_QoP_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_QoP_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_QoP = { + "QoP", + "QoP", + &asn_OP_SEQUENCE, + asn_DEF_QoP_tags_1, + sizeof(asn_DEF_QoP_tags_1) + /sizeof(asn_DEF_QoP_tags_1[0]), /* 1 */ + asn_DEF_QoP_tags_1, /* Same as above */ + sizeof(asn_DEF_QoP_tags_1) + /sizeof(asn_DEF_QoP_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_QoP_1, + 4, /* Elements count */ + &asn_SPC_QoP_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/QoP.h b/asn.1/supl_generated/QoP.h new file mode 100644 index 00000000..bf89fcc1 --- /dev/null +++ b/asn.1/supl_generated/QoP.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _QoP_H_ +#define _QoP_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* QoP */ +typedef struct QoP { + long horacc; + long *veracc; /* OPTIONAL */ + long *maxLocAge; /* OPTIONAL */ + long *delay; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} QoP_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_QoP; +extern asn_SEQUENCE_specifics_t asn_SPC_QoP_specs_1; +extern asn_TYPE_member_t asn_MBR_QoP_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _QoP_H_ */ +#include diff --git a/asn.1/supl_generated/RSRP-Range.c b/asn.1/supl_generated/RSRP-Range.c new file mode 100644 index 00000000..44f042ca --- /dev/null +++ b/asn.1/supl_generated/RSRP-Range.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "RSRP-Range.h" + +int +RSRP_Range_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 97L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RSRP_Range_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 97 } /* (0..97) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_RSRP_Range_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RSRP_Range = { + "RSRP-Range", + "RSRP-Range", + &asn_OP_NativeInteger, + asn_DEF_RSRP_Range_tags_1, + sizeof(asn_DEF_RSRP_Range_tags_1) + /sizeof(asn_DEF_RSRP_Range_tags_1[0]), /* 1 */ + asn_DEF_RSRP_Range_tags_1, /* Same as above */ + sizeof(asn_DEF_RSRP_Range_tags_1) + /sizeof(asn_DEF_RSRP_Range_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RSRP_Range_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + RSRP_Range_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/supl_generated/RSRP-Range.h b/asn.1/supl_generated/RSRP-Range.h new file mode 100644 index 00000000..9cbd3018 --- /dev/null +++ b/asn.1/supl_generated/RSRP-Range.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _RSRP_Range_H_ +#define _RSRP_Range_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* RSRP-Range */ +typedef long RSRP_Range_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_RSRP_Range_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_RSRP_Range; +asn_struct_free_f RSRP_Range_free; +asn_constr_check_f RSRP_Range_constraint; +xer_type_decoder_f RSRP_Range_decode_xer; +xer_type_encoder_f RSRP_Range_encode_xer; +jer_type_encoder_f RSRP_Range_encode_jer; +per_type_decoder_f RSRP_Range_decode_uper; +per_type_encoder_f RSRP_Range_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _RSRP_Range_H_ */ +#include diff --git a/asn.1/supl_generated/RSRQ-Range.c b/asn.1/supl_generated/RSRQ-Range.c new file mode 100644 index 00000000..18b7bd3d --- /dev/null +++ b/asn.1/supl_generated/RSRQ-Range.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "RSRQ-Range.h" + +int +RSRQ_Range_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 34L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RSRQ_Range_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 34 } /* (0..34) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_RSRQ_Range_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RSRQ_Range = { + "RSRQ-Range", + "RSRQ-Range", + &asn_OP_NativeInteger, + asn_DEF_RSRQ_Range_tags_1, + sizeof(asn_DEF_RSRQ_Range_tags_1) + /sizeof(asn_DEF_RSRQ_Range_tags_1[0]), /* 1 */ + asn_DEF_RSRQ_Range_tags_1, /* Same as above */ + sizeof(asn_DEF_RSRQ_Range_tags_1) + /sizeof(asn_DEF_RSRQ_Range_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RSRQ_Range_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + RSRQ_Range_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/supl_generated/RSRQ-Range.h b/asn.1/supl_generated/RSRQ-Range.h new file mode 100644 index 00000000..327bc5db --- /dev/null +++ b/asn.1/supl_generated/RSRQ-Range.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _RSRQ_Range_H_ +#define _RSRQ_Range_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* RSRQ-Range */ +typedef long RSRQ_Range_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_RSRQ_Range_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_RSRQ_Range; +asn_struct_free_f RSRQ_Range_free; +asn_constr_check_f RSRQ_Range_constraint; +xer_type_decoder_f RSRQ_Range_decode_xer; +xer_type_encoder_f RSRQ_Range_encode_xer; +jer_type_encoder_f RSRQ_Range_encode_jer; +per_type_decoder_f RSRQ_Range_decode_uper; +per_type_encoder_f RSRQ_Range_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _RSRQ_Range_H_ */ +#include diff --git a/asn.1/supl_generated/RTD.c b/asn.1/supl_generated/RTD.c new file mode 100644 index 00000000..57503792 --- /dev/null +++ b/asn.1/supl_generated/RTD.c @@ -0,0 +1,168 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "RTD.h" + +static int +memb_rTDValue_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16777216L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_rTDAccuracy_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rTDValue_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 25, -1, 0, 16777216 } /* (0..16777216) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rTDAccuracy_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_RTD_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RTD, rTDValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rTDValue_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rTDValue_constraint_1 + }, + 0, 0, /* No default value */ + "rTDValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct RTD, rTDUnits), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RTDUnits, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rTDUnits" + }, + { ATF_POINTER, 1, offsetof(struct RTD, rTDAccuracy), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rTDAccuracy_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rTDAccuracy_constraint_1 + }, + 0, 0, /* No default value */ + "rTDAccuracy" + }, +}; +static const int asn_MAP_RTD_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_RTD_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RTD_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rTDValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* rTDUnits */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* rTDAccuracy */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RTD_specs_1 = { + sizeof(struct RTD), + offsetof(struct RTD, _asn_ctx), + asn_MAP_RTD_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_RTD_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RTD = { + "RTD", + "RTD", + &asn_OP_SEQUENCE, + asn_DEF_RTD_tags_1, + sizeof(asn_DEF_RTD_tags_1) + /sizeof(asn_DEF_RTD_tags_1[0]), /* 1 */ + asn_DEF_RTD_tags_1, /* Same as above */ + sizeof(asn_DEF_RTD_tags_1) + /sizeof(asn_DEF_RTD_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RTD_1, + 3, /* Elements count */ + &asn_SPC_RTD_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/RTD.h b/asn.1/supl_generated/RTD.h new file mode 100644 index 00000000..dbb72bc7 --- /dev/null +++ b/asn.1/supl_generated/RTD.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _RTD_H_ +#define _RTD_H_ + + +#include + +/* Including external dependencies */ +#include +#include "RTDUnits.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* RTD */ +typedef struct RTD { + long rTDValue; + RTDUnits_t rTDUnits; + long *rTDAccuracy; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RTD_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RTD; +extern asn_SEQUENCE_specifics_t asn_SPC_RTD_specs_1; +extern asn_TYPE_member_t asn_MBR_RTD_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _RTD_H_ */ +#include diff --git a/asn.1/supl_generated/RTDUnits.c b/asn.1/supl_generated/RTDUnits.c new file mode 100644 index 00000000..7b491626 --- /dev/null +++ b/asn.1/supl_generated/RTDUnits.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "RTDUnits.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RTDUnits_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_RTDUnits_value2enum_1[] = { + { 0, 12, "microseconds" }, + { 1, 21, "hundredsofnanoseconds" }, + { 2, 17, "tensofnanoseconds" }, + { 3, 11, "nanoseconds" }, + { 4, 19, "tenthsofnanoseconds" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_RTDUnits_enum2value_1[] = { + 1, /* hundredsofnanoseconds(1) */ + 0, /* microseconds(0) */ + 3, /* nanoseconds(3) */ + 2, /* tensofnanoseconds(2) */ + 4 /* tenthsofnanoseconds(4) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_RTDUnits_specs_1 = { + asn_MAP_RTDUnits_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_RTDUnits_enum2value_1, /* N => "tag"; sorted by N */ + 5, /* Number of elements in the maps */ + 6, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_RTDUnits_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RTDUnits = { + "RTDUnits", + "RTDUnits", + &asn_OP_NativeEnumerated, + asn_DEF_RTDUnits_tags_1, + sizeof(asn_DEF_RTDUnits_tags_1) + /sizeof(asn_DEF_RTDUnits_tags_1[0]), /* 1 */ + asn_DEF_RTDUnits_tags_1, /* Same as above */ + sizeof(asn_DEF_RTDUnits_tags_1) + /sizeof(asn_DEF_RTDUnits_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RTDUnits_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_RTDUnits_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/RTDUnits.h b/asn.1/supl_generated/RTDUnits.h similarity index 78% rename from asn.1/generated/RTDUnits.h rename to asn.1/supl_generated/RTDUnits.h index 362113b2..50a85a5f 100644 --- a/asn.1/generated/RTDUnits.h +++ b/asn.1/supl_generated/RTDUnits.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _RTDUnits_H_ @@ -38,12 +38,10 @@ extern asn_per_constraints_t asn_PER_type_RTDUnits_constr_1; extern asn_TYPE_descriptor_t asn_DEF_RTDUnits; extern const asn_INTEGER_specifics_t asn_SPC_RTDUnits_specs_1; asn_struct_free_f RTDUnits_free; -asn_struct_print_f RTDUnits_print; asn_constr_check_f RTDUnits_constraint; -ber_type_decoder_f RTDUnits_decode_ber; -der_type_encoder_f RTDUnits_encode_der; xer_type_decoder_f RTDUnits_decode_xer; xer_type_encoder_f RTDUnits_encode_xer; +jer_type_encoder_f RTDUnits_encode_jer; per_type_decoder_f RTDUnits_decode_uper; per_type_encoder_f RTDUnits_encode_uper; diff --git a/asn.1/supl_generated/RelativeTime.c b/asn.1/supl_generated/RelativeTime.c new file mode 100644 index 00000000..b846ccf4 --- /dev/null +++ b/asn.1/supl_generated/RelativeTime.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "RelativeTime.h" + +int +RelativeTime_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RelativeTime_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_RelativeTime_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RelativeTime = { + "RelativeTime", + "RelativeTime", + &asn_OP_NativeInteger, + asn_DEF_RelativeTime_tags_1, + sizeof(asn_DEF_RelativeTime_tags_1) + /sizeof(asn_DEF_RelativeTime_tags_1[0]), /* 1 */ + asn_DEF_RelativeTime_tags_1, /* Same as above */ + sizeof(asn_DEF_RelativeTime_tags_1) + /sizeof(asn_DEF_RelativeTime_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RelativeTime_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + RelativeTime_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/supl_generated/RelativeTime.h b/asn.1/supl_generated/RelativeTime.h new file mode 100644 index 00000000..4357939c --- /dev/null +++ b/asn.1/supl_generated/RelativeTime.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _RelativeTime_H_ +#define _RelativeTime_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* RelativeTime */ +typedef long RelativeTime_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_RelativeTime_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_RelativeTime; +asn_struct_free_f RelativeTime_free; +asn_constr_check_f RelativeTime_constraint; +xer_type_decoder_f RelativeTime_decode_xer; +xer_type_encoder_f RelativeTime_encode_xer; +jer_type_encoder_f RelativeTime_encode_jer; +per_type_decoder_f RelativeTime_decode_uper; +per_type_encoder_f RelativeTime_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _RelativeTime_H_ */ +#include diff --git a/asn.1/supl_generated/RepMode-cap.c b/asn.1/supl_generated/RepMode-cap.c new file mode 100644 index 00000000..a219e892 --- /dev/null +++ b/asn.1/supl_generated/RepMode-cap.c @@ -0,0 +1,102 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "RepMode-cap.h" + +asn_TYPE_member_t asn_MBR_RepMode_cap_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RepMode_cap, realtime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "realtime" + }, + { ATF_NOFLAGS, 0, offsetof(struct RepMode_cap, quasirealtime), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "quasirealtime" + }, + { ATF_NOFLAGS, 0, offsetof(struct RepMode_cap, batch), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "batch" + }, +}; +static const ber_tlv_tag_t asn_DEF_RepMode_cap_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RepMode_cap_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* realtime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* quasirealtime */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* batch */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RepMode_cap_specs_1 = { + sizeof(struct RepMode_cap), + offsetof(struct RepMode_cap, _asn_ctx), + asn_MAP_RepMode_cap_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RepMode_cap = { + "RepMode-cap", + "RepMode-cap", + &asn_OP_SEQUENCE, + asn_DEF_RepMode_cap_tags_1, + sizeof(asn_DEF_RepMode_cap_tags_1) + /sizeof(asn_DEF_RepMode_cap_tags_1[0]), /* 1 */ + asn_DEF_RepMode_cap_tags_1, /* Same as above */ + sizeof(asn_DEF_RepMode_cap_tags_1) + /sizeof(asn_DEF_RepMode_cap_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RepMode_cap_1, + 3, /* Elements count */ + &asn_SPC_RepMode_cap_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/RepMode-cap.h b/asn.1/supl_generated/RepMode-cap.h similarity index 77% rename from asn.1/generated/RepMode-cap.h rename to asn.1/supl_generated/RepMode-cap.h index bceaa0c0..145cc84d 100644 --- a/asn.1/generated/RepMode-cap.h +++ b/asn.1/supl_generated/RepMode-cap.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _RepMode_cap_H_ diff --git a/asn.1/supl_generated/RepMode.c b/asn.1/supl_generated/RepMode.c new file mode 100644 index 00000000..bcce185f --- /dev/null +++ b/asn.1/supl_generated/RepMode.c @@ -0,0 +1,67 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-RESPONSE" + * found in "src/SUPL-TRIGGERED-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "RepMode.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RepMode_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_RepMode_value2enum_1[] = { + { 1, 8, "realtime" }, + { 2, 13, "quasirealtime" }, + { 3, 5, "batch" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_RepMode_enum2value_1[] = { + 2, /* batch(3) */ + 1, /* quasirealtime(2) */ + 0 /* realtime(1) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_RepMode_specs_1 = { + asn_MAP_RepMode_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_RepMode_enum2value_1, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 4, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_RepMode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RepMode = { + "RepMode", + "RepMode", + &asn_OP_NativeEnumerated, + asn_DEF_RepMode_tags_1, + sizeof(asn_DEF_RepMode_tags_1) + /sizeof(asn_DEF_RepMode_tags_1[0]), /* 1 */ + asn_DEF_RepMode_tags_1, /* Same as above */ + sizeof(asn_DEF_RepMode_tags_1) + /sizeof(asn_DEF_RepMode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RepMode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_RepMode_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/RepMode.h b/asn.1/supl_generated/RepMode.h similarity index 77% rename from asn.1/generated/RepMode.h rename to asn.1/supl_generated/RepMode.h index d87e6968..7414efcb 100644 --- a/asn.1/generated/RepMode.h +++ b/asn.1/supl_generated/RepMode.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-TRIGGERED-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-TRIGGERED-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _RepMode_H_ @@ -36,12 +36,10 @@ extern asn_per_constraints_t asn_PER_type_RepMode_constr_1; extern asn_TYPE_descriptor_t asn_DEF_RepMode; extern const asn_INTEGER_specifics_t asn_SPC_RepMode_specs_1; asn_struct_free_f RepMode_free; -asn_struct_print_f RepMode_print; asn_constr_check_f RepMode_constraint; -ber_type_decoder_f RepMode_decode_ber; -der_type_encoder_f RepMode_encode_der; xer_type_decoder_f RepMode_decode_xer; xer_type_encoder_f RepMode_encode_xer; +jer_type_encoder_f RepMode_encode_jer; per_type_decoder_f RepMode_decode_uper; per_type_encoder_f RepMode_encode_uper; diff --git a/asn.1/supl_generated/RepeatedReportingParams.c b/asn.1/supl_generated/RepeatedReportingParams.c new file mode 100644 index 00000000..bd2fcfab --- /dev/null +++ b/asn.1/supl_generated/RepeatedReportingParams.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "RepeatedReportingParams.h" + +static int +memb_minimumIntervalTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 604800L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_maximumNumberOfReports_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1024L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_minimumIntervalTime_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 20, -1, 1, 604800 } /* (1..604800) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maximumNumberOfReports_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (1..1024) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_RepeatedReportingParams_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RepeatedReportingParams, minimumIntervalTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_minimumIntervalTime_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_minimumIntervalTime_constraint_1 + }, + 0, 0, /* No default value */ + "minimumIntervalTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct RepeatedReportingParams, maximumNumberOfReports), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maximumNumberOfReports_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maximumNumberOfReports_constraint_1 + }, + 0, 0, /* No default value */ + "maximumNumberOfReports" + }, +}; +static const ber_tlv_tag_t asn_DEF_RepeatedReportingParams_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RepeatedReportingParams_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* minimumIntervalTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* maximumNumberOfReports */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RepeatedReportingParams_specs_1 = { + sizeof(struct RepeatedReportingParams), + offsetof(struct RepeatedReportingParams, _asn_ctx), + asn_MAP_RepeatedReportingParams_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RepeatedReportingParams = { + "RepeatedReportingParams", + "RepeatedReportingParams", + &asn_OP_SEQUENCE, + asn_DEF_RepeatedReportingParams_tags_1, + sizeof(asn_DEF_RepeatedReportingParams_tags_1) + /sizeof(asn_DEF_RepeatedReportingParams_tags_1[0]), /* 1 */ + asn_DEF_RepeatedReportingParams_tags_1, /* Same as above */ + sizeof(asn_DEF_RepeatedReportingParams_tags_1) + /sizeof(asn_DEF_RepeatedReportingParams_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RepeatedReportingParams_1, + 2, /* Elements count */ + &asn_SPC_RepeatedReportingParams_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/RepeatedReportingParams.h b/asn.1/supl_generated/RepeatedReportingParams.h similarity index 79% rename from asn.1/generated/RepeatedReportingParams.h rename to asn.1/supl_generated/RepeatedReportingParams.h index ee129219..42ab5a38 100644 --- a/asn.1/generated/RepeatedReportingParams.h +++ b/asn.1/supl_generated/RepeatedReportingParams.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _RepeatedReportingParams_H_ diff --git a/asn.1/supl_generated/ReportData.c b/asn.1/supl_generated/ReportData.c new file mode 100644 index 00000000..7383ff5a --- /dev/null +++ b/asn.1/supl_generated/ReportData.c @@ -0,0 +1,125 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-REPORT" + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ReportData.h" + +#include "SUPL-PositionData.h" +#include "MultipleLocationIds.h" +#include "TimeStamp.h" +asn_TYPE_member_t asn_MBR_ReportData_1[] = { + { ATF_POINTER, 4, offsetof(struct ReportData, positionData), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SUPL_PositionData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "positionData" + }, + { ATF_POINTER, 3, offsetof(struct ReportData, multipleLocationIds), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MultipleLocationIds, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "multipleLocationIds" + }, + { ATF_POINTER, 2, offsetof(struct ReportData, resultCode), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ResultCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "resultCode" + }, + { ATF_POINTER, 1, offsetof(struct ReportData, timestamp), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_TimeStamp, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "timestamp" + }, +}; +static const int asn_MAP_ReportData_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_ReportData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ReportData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* positionData */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* multipleLocationIds */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* resultCode */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* timestamp */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ReportData_specs_1 = { + sizeof(struct ReportData), + offsetof(struct ReportData, _asn_ctx), + asn_MAP_ReportData_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_ReportData_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ReportData = { + "ReportData", + "ReportData", + &asn_OP_SEQUENCE, + asn_DEF_ReportData_tags_1, + sizeof(asn_DEF_ReportData_tags_1) + /sizeof(asn_DEF_ReportData_tags_1[0]), /* 1 */ + asn_DEF_ReportData_tags_1, /* Same as above */ + sizeof(asn_DEF_ReportData_tags_1) + /sizeof(asn_DEF_ReportData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ReportData_1, + 4, /* Elements count */ + &asn_SPC_ReportData_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/ReportData.h b/asn.1/supl_generated/ReportData.h new file mode 100644 index 00000000..f2d8f0ee --- /dev/null +++ b/asn.1/supl_generated/ReportData.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-REPORT" + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _ReportData_H_ +#define _ReportData_H_ + + +#include + +/* Including external dependencies */ +#include "ResultCode.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SUPL_PositionData; +struct MultipleLocationIds; +struct TimeStamp; + +/* ReportData */ +typedef struct ReportData { + struct SUPL_PositionData *positionData; /* OPTIONAL */ + struct MultipleLocationIds *multipleLocationIds; /* OPTIONAL */ + ResultCode_t *resultCode; /* OPTIONAL */ + struct TimeStamp *timestamp; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ReportData_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ReportData; +extern asn_SEQUENCE_specifics_t asn_SPC_ReportData_specs_1; +extern asn_TYPE_member_t asn_MBR_ReportData_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ReportData_H_ */ +#include diff --git a/asn.1/supl_generated/ReportDataList.c b/asn.1/supl_generated/ReportDataList.c new file mode 100644 index 00000000..9ad10439 --- /dev/null +++ b/asn.1/supl_generated/ReportDataList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-REPORT" + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ReportDataList.h" + +#include "ReportData.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ReportDataList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_ReportDataList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_ReportData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_ReportDataList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_ReportDataList_specs_1 = { + sizeof(struct ReportDataList), + offsetof(struct ReportDataList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_ReportDataList = { + "ReportDataList", + "ReportDataList", + &asn_OP_SEQUENCE_OF, + asn_DEF_ReportDataList_tags_1, + sizeof(asn_DEF_ReportDataList_tags_1) + /sizeof(asn_DEF_ReportDataList_tags_1[0]), /* 1 */ + asn_DEF_ReportDataList_tags_1, /* Same as above */ + sizeof(asn_DEF_ReportDataList_tags_1) + /sizeof(asn_DEF_ReportDataList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ReportDataList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_ReportDataList_1, + 1, /* Single element */ + &asn_SPC_ReportDataList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ReportDataList.h b/asn.1/supl_generated/ReportDataList.h similarity index 78% rename from asn.1/generated/ReportDataList.h rename to asn.1/supl_generated/ReportDataList.h index ed520808..96314010 100644 --- a/asn.1/generated/ReportDataList.h +++ b/asn.1/supl_generated/ReportDataList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _ReportDataList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_ReportDataList_constr_1; } #endif -/* Referred external types */ -#include "ReportData.h" - #endif /* _ReportDataList_H_ */ #include diff --git a/asn.1/supl_generated/ReportedLocation.c b/asn.1/supl_generated/ReportedLocation.c new file mode 100644 index 00000000..df4d99a8 --- /dev/null +++ b/asn.1/supl_generated/ReportedLocation.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ReportedLocation.h" + +asn_TYPE_member_t asn_MBR_ReportedLocation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ReportedLocation, locationEncodingDescriptor), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationEncodingDescriptor, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationEncodingDescriptor" + }, + { ATF_NOFLAGS, 0, offsetof(struct ReportedLocation, locationData), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationData" + }, +}; +static const ber_tlv_tag_t asn_DEF_ReportedLocation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ReportedLocation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locationEncodingDescriptor */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* locationData */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ReportedLocation_specs_1 = { + sizeof(struct ReportedLocation), + offsetof(struct ReportedLocation, _asn_ctx), + asn_MAP_ReportedLocation_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ReportedLocation = { + "ReportedLocation", + "ReportedLocation", + &asn_OP_SEQUENCE, + asn_DEF_ReportedLocation_tags_1, + sizeof(asn_DEF_ReportedLocation_tags_1) + /sizeof(asn_DEF_ReportedLocation_tags_1[0]), /* 1 */ + asn_DEF_ReportedLocation_tags_1, /* Same as above */ + sizeof(asn_DEF_ReportedLocation_tags_1) + /sizeof(asn_DEF_ReportedLocation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ReportedLocation_1, + 2, /* Elements count */ + &asn_SPC_ReportedLocation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ReportedLocation.h b/asn.1/supl_generated/ReportedLocation.h similarity index 79% rename from asn.1/generated/ReportedLocation.h rename to asn.1/supl_generated/ReportedLocation.h index 0e5c15cf..39d6783b 100644 --- a/asn.1/generated/ReportedLocation.h +++ b/asn.1/supl_generated/ReportedLocation.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _ReportedLocation_H_ diff --git a/asn.1/supl_generated/ReportingCap.c b/asn.1/supl_generated/ReportingCap.c new file mode 100644 index 00000000..53b1506a --- /dev/null +++ b/asn.1/supl_generated/ReportingCap.c @@ -0,0 +1,187 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ReportingCap.h" + +#include "BatchRepCap.h" +static int +memb_minInt_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 3600L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_maxInt_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 1440L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_minInt_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 1, 3600 } /* (1..3600) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxInt_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 1, 1440 } /* (1..1440) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_ReportingCap_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ReportingCap, minInt), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_minInt_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_minInt_constraint_1 + }, + 0, 0, /* No default value */ + "minInt" + }, + { ATF_POINTER, 1, offsetof(struct ReportingCap, maxInt), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxInt_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxInt_constraint_1 + }, + 0, 0, /* No default value */ + "maxInt" + }, + { ATF_NOFLAGS, 0, offsetof(struct ReportingCap, repMode), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RepMode_cap, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "repMode" + }, + { ATF_POINTER, 1, offsetof(struct ReportingCap, batchRepCap), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BatchRepCap, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "batchRepCap" + }, +}; +static const int asn_MAP_ReportingCap_oms_1[] = { 1, 3 }; +static const ber_tlv_tag_t asn_DEF_ReportingCap_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ReportingCap_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* minInt */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxInt */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* repMode */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* batchRepCap */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ReportingCap_specs_1 = { + sizeof(struct ReportingCap), + offsetof(struct ReportingCap, _asn_ctx), + asn_MAP_ReportingCap_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_ReportingCap_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ReportingCap = { + "ReportingCap", + "ReportingCap", + &asn_OP_SEQUENCE, + asn_DEF_ReportingCap_tags_1, + sizeof(asn_DEF_ReportingCap_tags_1) + /sizeof(asn_DEF_ReportingCap_tags_1[0]), /* 1 */ + asn_DEF_ReportingCap_tags_1, /* Same as above */ + sizeof(asn_DEF_ReportingCap_tags_1) + /sizeof(asn_DEF_ReportingCap_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ReportingCap_1, + 4, /* Elements count */ + &asn_SPC_ReportingCap_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/ReportingCap.h b/asn.1/supl_generated/ReportingCap.h new file mode 100644 index 00000000..1344e5f0 --- /dev/null +++ b/asn.1/supl_generated/ReportingCap.h @@ -0,0 +1,51 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _ReportingCap_H_ +#define _ReportingCap_H_ + + +#include + +/* Including external dependencies */ +#include +#include "RepMode-cap.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct BatchRepCap; + +/* ReportingCap */ +typedef struct ReportingCap { + long minInt; + long *maxInt; /* OPTIONAL */ + RepMode_cap_t repMode; + struct BatchRepCap *batchRepCap; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ReportingCap_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ReportingCap; +extern asn_SEQUENCE_specifics_t asn_SPC_ReportingCap_specs_1; +extern asn_TYPE_member_t asn_MBR_ReportingCap_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ReportingCap_H_ */ +#include diff --git a/asn.1/supl_generated/ReportingCriteria.c b/asn.1/supl_generated/ReportingCriteria.c new file mode 100644 index 00000000..d57dc0bd --- /dev/null +++ b/asn.1/supl_generated/ReportingCriteria.c @@ -0,0 +1,169 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ReportingCriteria.h" + +#include "TimeWindow.h" +static int +memb_maxNumberofReports_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 65536L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_minTimeInterval_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 86400L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxNumberofReports_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 16, -1, 1, 65536 } /* (1..65536) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_minTimeInterval_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 1, 86400 } /* (1..86400) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_ReportingCriteria_1[] = { + { ATF_POINTER, 3, offsetof(struct ReportingCriteria, timeWindow), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TimeWindow, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "timeWindow" + }, + { ATF_POINTER, 2, offsetof(struct ReportingCriteria, maxNumberofReports), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxNumberofReports_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxNumberofReports_constraint_1 + }, + 0, 0, /* No default value */ + "maxNumberofReports" + }, + { ATF_POINTER, 1, offsetof(struct ReportingCriteria, minTimeInterval), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_minTimeInterval_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_minTimeInterval_constraint_1 + }, + 0, 0, /* No default value */ + "minTimeInterval" + }, +}; +static const int asn_MAP_ReportingCriteria_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ReportingCriteria_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ReportingCriteria_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* timeWindow */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxNumberofReports */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* minTimeInterval */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ReportingCriteria_specs_1 = { + sizeof(struct ReportingCriteria), + offsetof(struct ReportingCriteria, _asn_ctx), + asn_MAP_ReportingCriteria_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_ReportingCriteria_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ReportingCriteria = { + "ReportingCriteria", + "ReportingCriteria", + &asn_OP_SEQUENCE, + asn_DEF_ReportingCriteria_tags_1, + sizeof(asn_DEF_ReportingCriteria_tags_1) + /sizeof(asn_DEF_ReportingCriteria_tags_1[0]), /* 1 */ + asn_DEF_ReportingCriteria_tags_1, /* Same as above */ + sizeof(asn_DEF_ReportingCriteria_tags_1) + /sizeof(asn_DEF_ReportingCriteria_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ReportingCriteria_1, + 3, /* Elements count */ + &asn_SPC_ReportingCriteria_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/ReportingCriteria.h b/asn.1/supl_generated/ReportingCriteria.h new file mode 100644 index 00000000..f2ba685c --- /dev/null +++ b/asn.1/supl_generated/ReportingCriteria.h @@ -0,0 +1,49 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _ReportingCriteria_H_ +#define _ReportingCriteria_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct TimeWindow; + +/* ReportingCriteria */ +typedef struct ReportingCriteria { + struct TimeWindow *timeWindow; /* OPTIONAL */ + long *maxNumberofReports; /* OPTIONAL */ + long *minTimeInterval; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ReportingCriteria_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ReportingCriteria; +extern asn_SEQUENCE_specifics_t asn_SPC_ReportingCriteria_specs_1; +extern asn_TYPE_member_t asn_MBR_ReportingCriteria_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ReportingCriteria_H_ */ +#include diff --git a/asn.1/supl_generated/ReportingMode.c b/asn.1/supl_generated/ReportingMode.c new file mode 100644 index 00000000..1f5f8a73 --- /dev/null +++ b/asn.1/supl_generated/ReportingMode.c @@ -0,0 +1,106 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-RESPONSE" + * found in "src/SUPL-TRIGGERED-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ReportingMode.h" + +#include "BatchRepConditions.h" +#include "BatchRepType.h" +asn_TYPE_member_t asn_MBR_ReportingMode_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ReportingMode, repMode), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RepMode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "repMode" + }, + { ATF_POINTER, 2, offsetof(struct ReportingMode, batchRepConditions), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_BatchRepConditions, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "batchRepConditions" + }, + { ATF_POINTER, 1, offsetof(struct ReportingMode, batchRepType), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BatchRepType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "batchRepType" + }, +}; +static const int asn_MAP_ReportingMode_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ReportingMode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ReportingMode_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* repMode */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* batchRepConditions */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* batchRepType */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ReportingMode_specs_1 = { + sizeof(struct ReportingMode), + offsetof(struct ReportingMode, _asn_ctx), + asn_MAP_ReportingMode_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_ReportingMode_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ReportingMode = { + "ReportingMode", + "ReportingMode", + &asn_OP_SEQUENCE, + asn_DEF_ReportingMode_tags_1, + sizeof(asn_DEF_ReportingMode_tags_1) + /sizeof(asn_DEF_ReportingMode_tags_1[0]), /* 1 */ + asn_DEF_ReportingMode_tags_1, /* Same as above */ + sizeof(asn_DEF_ReportingMode_tags_1) + /sizeof(asn_DEF_ReportingMode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ReportingMode_1, + 3, /* Elements count */ + &asn_SPC_ReportingMode_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/ReportingMode.h b/asn.1/supl_generated/ReportingMode.h new file mode 100644 index 00000000..45c4861e --- /dev/null +++ b/asn.1/supl_generated/ReportingMode.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-RESPONSE" + * found in "src/SUPL-TRIGGERED-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _ReportingMode_H_ +#define _ReportingMode_H_ + + +#include + +/* Including external dependencies */ +#include "RepMode.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct BatchRepConditions; +struct BatchRepType; + +/* ReportingMode */ +typedef struct ReportingMode { + RepMode_t repMode; + struct BatchRepConditions *batchRepConditions; /* OPTIONAL */ + struct BatchRepType *batchRepType; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ReportingMode_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ReportingMode; +extern asn_SEQUENCE_specifics_t asn_SPC_ReportingMode_specs_1; +extern asn_TYPE_member_t asn_MBR_ReportingMode_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ReportingMode_H_ */ +#include diff --git a/asn.1/supl_generated/ReqDataBitAssistanceList.c b/asn.1/supl_generated/ReqDataBitAssistanceList.c new file mode 100644 index 00000000..e4a38090 --- /dev/null +++ b/asn.1/supl_generated/ReqDataBitAssistanceList.c @@ -0,0 +1,261 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ReqDataBitAssistanceList.h" + +static int +memb_NativeInteger_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ganssDataBitInterval_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ganssDataBitSatList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 32UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ganssDataBitSatList_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ganssDataBitInterval_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ganssDataBitSatList_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ganssDataBitSatList_4[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_NativeInteger_constraint_4 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_ganssDataBitSatList_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_ganssDataBitSatList_specs_4 = { + sizeof(struct ReqDataBitAssistanceList__ganssDataBitSatList), + offsetof(struct ReqDataBitAssistanceList__ganssDataBitSatList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ganssDataBitSatList_4 = { + "ganssDataBitSatList", + "ganssDataBitSatList", + &asn_OP_SEQUENCE_OF, + asn_DEF_ganssDataBitSatList_tags_4, + sizeof(asn_DEF_ganssDataBitSatList_tags_4) + /sizeof(asn_DEF_ganssDataBitSatList_tags_4[0]) - 1, /* 1 */ + asn_DEF_ganssDataBitSatList_tags_4, /* Same as above */ + sizeof(asn_DEF_ganssDataBitSatList_tags_4) + /sizeof(asn_DEF_ganssDataBitSatList_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ganssDataBitSatList_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_ganssDataBitSatList_4, + 1, /* Single element */ + &asn_SPC_ganssDataBitSatList_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ReqDataBitAssistanceList_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ReqDataBitAssistanceList, gnssSignals), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GANSSSignals, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnssSignals" + }, + { ATF_NOFLAGS, 0, offsetof(struct ReqDataBitAssistanceList, ganssDataBitInterval), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ganssDataBitInterval_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ganssDataBitInterval_constraint_1 + }, + 0, 0, /* No default value */ + "ganssDataBitInterval" + }, + { ATF_POINTER, 1, offsetof(struct ReqDataBitAssistanceList, ganssDataBitSatList), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + 0, + &asn_DEF_ganssDataBitSatList_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ganssDataBitSatList_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ganssDataBitSatList_constraint_1 + }, + 0, 0, /* No default value */ + "ganssDataBitSatList" + }, +}; +static const int asn_MAP_ReqDataBitAssistanceList_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_ReqDataBitAssistanceList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ReqDataBitAssistanceList_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gnssSignals */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssDataBitInterval */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ganssDataBitSatList */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ReqDataBitAssistanceList_specs_1 = { + sizeof(struct ReqDataBitAssistanceList), + offsetof(struct ReqDataBitAssistanceList, _asn_ctx), + asn_MAP_ReqDataBitAssistanceList_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_ReqDataBitAssistanceList_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ReqDataBitAssistanceList = { + "ReqDataBitAssistanceList", + "ReqDataBitAssistanceList", + &asn_OP_SEQUENCE, + asn_DEF_ReqDataBitAssistanceList_tags_1, + sizeof(asn_DEF_ReqDataBitAssistanceList_tags_1) + /sizeof(asn_DEF_ReqDataBitAssistanceList_tags_1[0]), /* 1 */ + asn_DEF_ReqDataBitAssistanceList_tags_1, /* Same as above */ + sizeof(asn_DEF_ReqDataBitAssistanceList_tags_1) + /sizeof(asn_DEF_ReqDataBitAssistanceList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ReqDataBitAssistanceList_1, + 3, /* Elements count */ + &asn_SPC_ReqDataBitAssistanceList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ReqDataBitAssistanceList.h b/asn.1/supl_generated/ReqDataBitAssistanceList.h similarity index 82% rename from asn.1/generated/ReqDataBitAssistanceList.h rename to asn.1/supl_generated/ReqDataBitAssistanceList.h index 7d99b5c6..09afa7bb 100644 --- a/asn.1/generated/ReqDataBitAssistanceList.h +++ b/asn.1/supl_generated/ReqDataBitAssistanceList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _ReqDataBitAssistanceList_H_ diff --git a/asn.1/supl_generated/RequestedAssistData.c b/asn.1/supl_generated/RequestedAssistData.c new file mode 100644 index 00000000..b25fe4d0 --- /dev/null +++ b/asn.1/supl_generated/RequestedAssistData.c @@ -0,0 +1,250 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-POS-INIT" + * found in "src/SUPL-POS-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "RequestedAssistData.h" + +#include "SUPL-NavigationModel.h" +#include "Ver2-RequestedAssistData-extension.h" +asn_TYPE_member_t asn_MBR_RequestedAssistData_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RequestedAssistData, almanacRequested), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "almanacRequested" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestedAssistData, utcModelRequested), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utcModelRequested" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestedAssistData, ionosphericModelRequested), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ionosphericModelRequested" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestedAssistData, dgpsCorrectionsRequested), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dgpsCorrectionsRequested" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestedAssistData, referenceLocationRequested), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceLocationRequested" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestedAssistData, referenceTimeRequested), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceTimeRequested" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestedAssistData, acquisitionAssistanceRequested), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "acquisitionAssistanceRequested" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestedAssistData, realTimeIntegrityRequested), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "realTimeIntegrityRequested" + }, + { ATF_NOFLAGS, 0, offsetof(struct RequestedAssistData, navigationModelRequested), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "navigationModelRequested" + }, + { ATF_POINTER, 2, offsetof(struct RequestedAssistData, navigationModelData), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SUPL_NavigationModel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "navigationModelData" + }, + { ATF_POINTER, 1, offsetof(struct RequestedAssistData, ver2_RequestedAssistData_extension), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver2_RequestedAssistData_extension, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ver2-RequestedAssistData-extension" + }, +}; +static const int asn_MAP_RequestedAssistData_oms_1[] = { 9, 10 }; +static const ber_tlv_tag_t asn_DEF_RequestedAssistData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RequestedAssistData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* almanacRequested */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* utcModelRequested */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ionosphericModelRequested */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* dgpsCorrectionsRequested */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* referenceLocationRequested */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* referenceTimeRequested */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* acquisitionAssistanceRequested */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* realTimeIntegrityRequested */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* navigationModelRequested */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* navigationModelData */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 } /* ver2-RequestedAssistData-extension */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RequestedAssistData_specs_1 = { + sizeof(struct RequestedAssistData), + offsetof(struct RequestedAssistData, _asn_ctx), + asn_MAP_RequestedAssistData_tag2el_1, + 11, /* Count of tags in the map */ + asn_MAP_RequestedAssistData_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 10, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RequestedAssistData = { + "RequestedAssistData", + "RequestedAssistData", + &asn_OP_SEQUENCE, + asn_DEF_RequestedAssistData_tags_1, + sizeof(asn_DEF_RequestedAssistData_tags_1) + /sizeof(asn_DEF_RequestedAssistData_tags_1[0]), /* 1 */ + asn_DEF_RequestedAssistData_tags_1, /* Same as above */ + sizeof(asn_DEF_RequestedAssistData_tags_1) + /sizeof(asn_DEF_RequestedAssistData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RequestedAssistData_1, + 11, /* Elements count */ + &asn_SPC_RequestedAssistData_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/RequestedAssistData.h b/asn.1/supl_generated/RequestedAssistData.h similarity index 78% rename from asn.1/generated/RequestedAssistData.h rename to asn.1/supl_generated/RequestedAssistData.h index de4bb565..1db0de8d 100644 --- a/asn.1/generated/RequestedAssistData.h +++ b/asn.1/supl_generated/RequestedAssistData.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-POS-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-POS-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _RequestedAssistData_H_ @@ -34,12 +34,12 @@ typedef struct RequestedAssistData { BOOLEAN_t acquisitionAssistanceRequested; BOOLEAN_t realTimeIntegrityRequested; BOOLEAN_t navigationModelRequested; - struct SUPL_NavigationModel *navigationModelData /* OPTIONAL */; + struct SUPL_NavigationModel *navigationModelData; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. */ - struct Ver2_RequestedAssistData_extension *ver2_RequestedAssistData_extension /* OPTIONAL */; + struct Ver2_RequestedAssistData_extension *ver2_RequestedAssistData_extension; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -54,9 +54,5 @@ extern asn_TYPE_member_t asn_MBR_RequestedAssistData_1[11]; } #endif -/* Referred external types */ -#include "SUPL-NavigationModel.h" -#include "Ver2-RequestedAssistData-extension.h" - #endif /* _RequestedAssistData_H_ */ #include diff --git a/asn.1/supl_generated/ResultCode.c b/asn.1/supl_generated/ResultCode.c new file mode 100644 index 00000000..b4d3b00e --- /dev/null +++ b/asn.1/supl_generated/ResultCode.c @@ -0,0 +1,75 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-REPORT" + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ResultCode.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ResultCode_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 6 } /* (0..6,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_ResultCode_value2enum_1[] = { + { 1, 18, "outofradiocoverage" }, + { 2, 10, "noposition" }, + { 3, 13, "nomeasurement" }, + { 4, 23, "nopositionnomeasurement" }, + { 5, 11, "outofmemory" }, + { 6, 32, "outofmemoryintermediatereporting" }, + { 7, 5, "other" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_ResultCode_enum2value_1[] = { + 2, /* nomeasurement(3) */ + 1, /* noposition(2) */ + 3, /* nopositionnomeasurement(4) */ + 6, /* other(7) */ + 4, /* outofmemory(5) */ + 5, /* outofmemoryintermediatereporting(6) */ + 0 /* outofradiocoverage(1) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_ResultCode_specs_1 = { + asn_MAP_ResultCode_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_ResultCode_enum2value_1, /* N => "tag"; sorted by N */ + 7, /* Number of elements in the maps */ + 8, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_ResultCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ResultCode = { + "ResultCode", + "ResultCode", + &asn_OP_NativeEnumerated, + asn_DEF_ResultCode_tags_1, + sizeof(asn_DEF_ResultCode_tags_1) + /sizeof(asn_DEF_ResultCode_tags_1[0]), /* 1 */ + asn_DEF_ResultCode_tags_1, /* Same as above */ + sizeof(asn_DEF_ResultCode_tags_1) + /sizeof(asn_DEF_ResultCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ResultCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ResultCode_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ResultCode.h b/asn.1/supl_generated/ResultCode.h similarity index 80% rename from asn.1/generated/ResultCode.h rename to asn.1/supl_generated/ResultCode.h index 156d09b0..db404c1f 100644 --- a/asn.1/generated/ResultCode.h +++ b/asn.1/supl_generated/ResultCode.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _ResultCode_H_ @@ -40,12 +40,10 @@ extern asn_per_constraints_t asn_PER_type_ResultCode_constr_1; extern asn_TYPE_descriptor_t asn_DEF_ResultCode; extern const asn_INTEGER_specifics_t asn_SPC_ResultCode_specs_1; asn_struct_free_f ResultCode_free; -asn_struct_print_f ResultCode_print; asn_constr_check_f ResultCode_constraint; -ber_type_decoder_f ResultCode_decode_ber; -der_type_encoder_f ResultCode_encode_der; xer_type_decoder_f ResultCode_decode_xer; xer_type_encoder_f ResultCode_encode_xer; +jer_type_encoder_f ResultCode_encode_jer; per_type_decoder_f ResultCode_decode_uper; per_type_encoder_f ResultCode_encode_uper; diff --git a/asn.1/supl_generated/SET-GANSSReferenceTime.c b/asn.1/supl_generated/SET-GANSSReferenceTime.c new file mode 100644 index 00000000..7660983d --- /dev/null +++ b/asn.1/supl_generated/SET-GANSSReferenceTime.c @@ -0,0 +1,576 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SET-GANSSReferenceTime.h" + +static int +ls_part_4_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +static int +memb_ms_part_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 80L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ls_part_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +static int +memb_sfn_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ganss_TODUncertainty_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ls_part_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ms_part_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 80 } /* (0..80) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ls_part_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_modeSpecificInfo_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sfn_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ganss_TODUncertainty_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_specifics_t asn_SPC_ls_part_specs_4 = { + 0, 0, 0, 0, 0, + 0, /* Native long size */ + 1 /* Unsigned representation */ +}; +static const ber_tlv_tag_t asn_DEF_ls_part_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ls_part_4 = { + "ls-part", + "ls-part", + &asn_OP_NativeInteger, + asn_DEF_ls_part_tags_4, + sizeof(asn_DEF_ls_part_tags_4) + /sizeof(asn_DEF_ls_part_tags_4[0]) - 1, /* 1 */ + asn_DEF_ls_part_tags_4, /* Same as above */ + sizeof(asn_DEF_ls_part_tags_4) + /sizeof(asn_DEF_ls_part_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ls_part_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + ls_part_4_constraint + }, + 0, 0, /* No members */ + &asn_SPC_ls_part_specs_4 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_set_GANSSTimingOfCell_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct SET_GANSSReferenceTime__set_GANSSTimingOfCell, ms_part), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ms_part_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ms_part_constraint_2 + }, + 0, 0, /* No default value */ + "ms-part" + }, + { ATF_NOFLAGS, 0, offsetof(struct SET_GANSSReferenceTime__set_GANSSTimingOfCell, ls_part), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ls_part_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ls_part_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ls_part_constraint_2 + }, + 0, 0, /* No default value */ + "ls-part" + }, +}; +static const ber_tlv_tag_t asn_DEF_set_GANSSTimingOfCell_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_set_GANSSTimingOfCell_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ms-part */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ls-part */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_set_GANSSTimingOfCell_specs_2 = { + sizeof(struct SET_GANSSReferenceTime__set_GANSSTimingOfCell), + offsetof(struct SET_GANSSReferenceTime__set_GANSSTimingOfCell, _asn_ctx), + asn_MAP_set_GANSSTimingOfCell_tag2el_2, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_set_GANSSTimingOfCell_2 = { + "set-GANSSTimingOfCell", + "set-GANSSTimingOfCell", + &asn_OP_SEQUENCE, + asn_DEF_set_GANSSTimingOfCell_tags_2, + sizeof(asn_DEF_set_GANSSTimingOfCell_tags_2) + /sizeof(asn_DEF_set_GANSSTimingOfCell_tags_2[0]) - 1, /* 1 */ + asn_DEF_set_GANSSTimingOfCell_tags_2, /* Same as above */ + sizeof(asn_DEF_set_GANSSTimingOfCell_tags_2) + /sizeof(asn_DEF_set_GANSSTimingOfCell_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_set_GANSSTimingOfCell_2, + 2, /* Elements count */ + &asn_SPC_set_GANSSTimingOfCell_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_fdd_6[] = { + { ATF_NOFLAGS, 0, offsetof(struct SET_GANSSReferenceTime__modeSpecificInfo__fdd, referenceIdentity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PrimaryCPICH_Info, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceIdentity" + }, +}; +static const ber_tlv_tag_t asn_DEF_fdd_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_fdd_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* referenceIdentity */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_fdd_specs_6 = { + sizeof(struct SET_GANSSReferenceTime__modeSpecificInfo__fdd), + offsetof(struct SET_GANSSReferenceTime__modeSpecificInfo__fdd, _asn_ctx), + asn_MAP_fdd_tag2el_6, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fdd_6 = { + "fdd", + "fdd", + &asn_OP_SEQUENCE, + asn_DEF_fdd_tags_6, + sizeof(asn_DEF_fdd_tags_6) + /sizeof(asn_DEF_fdd_tags_6[0]) - 1, /* 1 */ + asn_DEF_fdd_tags_6, /* Same as above */ + sizeof(asn_DEF_fdd_tags_6) + /sizeof(asn_DEF_fdd_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_fdd_6, + 1, /* Elements count */ + &asn_SPC_fdd_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_tdd_8[] = { + { ATF_NOFLAGS, 0, offsetof(struct SET_GANSSReferenceTime__modeSpecificInfo__tdd, referenceIdentity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CellParametersID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceIdentity" + }, +}; +static const ber_tlv_tag_t asn_DEF_tdd_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_tdd_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* referenceIdentity */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_tdd_specs_8 = { + sizeof(struct SET_GANSSReferenceTime__modeSpecificInfo__tdd), + offsetof(struct SET_GANSSReferenceTime__modeSpecificInfo__tdd, _asn_ctx), + asn_MAP_tdd_tag2el_8, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_tdd_8 = { + "tdd", + "tdd", + &asn_OP_SEQUENCE, + asn_DEF_tdd_tags_8, + sizeof(asn_DEF_tdd_tags_8) + /sizeof(asn_DEF_tdd_tags_8[0]) - 1, /* 1 */ + asn_DEF_tdd_tags_8, /* Same as above */ + sizeof(asn_DEF_tdd_tags_8) + /sizeof(asn_DEF_tdd_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_tdd_8, + 1, /* Elements count */ + &asn_SPC_tdd_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_modeSpecificInfo_5[] = { + { ATF_NOFLAGS, 0, offsetof(struct SET_GANSSReferenceTime__modeSpecificInfo, choice.fdd), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_fdd_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fdd" + }, + { ATF_NOFLAGS, 0, offsetof(struct SET_GANSSReferenceTime__modeSpecificInfo, choice.tdd), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_tdd_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tdd" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_modeSpecificInfo_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */ +}; +static asn_CHOICE_specifics_t asn_SPC_modeSpecificInfo_specs_5 = { + sizeof(struct SET_GANSSReferenceTime__modeSpecificInfo), + offsetof(struct SET_GANSSReferenceTime__modeSpecificInfo, _asn_ctx), + offsetof(struct SET_GANSSReferenceTime__modeSpecificInfo, present), + sizeof(((struct SET_GANSSReferenceTime__modeSpecificInfo *)0)->present), + asn_MAP_modeSpecificInfo_tag2el_5, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_modeSpecificInfo_5 = { + "modeSpecificInfo", + "modeSpecificInfo", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_modeSpecificInfo_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_modeSpecificInfo_5, + 2, /* Elements count */ + &asn_SPC_modeSpecificInfo_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_SET_GANSSReferenceTime_1[] = { + { ATF_POINTER, 2, offsetof(struct SET_GANSSReferenceTime, set_GANSSTimingOfCell), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_set_GANSSTimingOfCell_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "set-GANSSTimingOfCell" + }, + { ATF_POINTER, 1, offsetof(struct SET_GANSSReferenceTime, modeSpecificInfo), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_modeSpecificInfo_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "modeSpecificInfo" + }, + { ATF_NOFLAGS, 0, offsetof(struct SET_GANSSReferenceTime, sfn), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sfn_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sfn_constraint_1 + }, + 0, 0, /* No default value */ + "sfn" + }, + { ATF_POINTER, 1, offsetof(struct SET_GANSSReferenceTime, ganss_TODUncertainty), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ganss_TODUncertainty_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ganss_TODUncertainty_constraint_1 + }, + 0, 0, /* No default value */ + "ganss-TODUncertainty" + }, +}; +static const int asn_MAP_SET_GANSSReferenceTime_oms_1[] = { 0, 1, 3 }; +static const ber_tlv_tag_t asn_DEF_SET_GANSSReferenceTime_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SET_GANSSReferenceTime_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* set-GANSSTimingOfCell */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* modeSpecificInfo */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sfn */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ganss-TODUncertainty */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SET_GANSSReferenceTime_specs_1 = { + sizeof(struct SET_GANSSReferenceTime), + offsetof(struct SET_GANSSReferenceTime, _asn_ctx), + asn_MAP_SET_GANSSReferenceTime_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_SET_GANSSReferenceTime_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SET_GANSSReferenceTime = { + "SET-GANSSReferenceTime", + "SET-GANSSReferenceTime", + &asn_OP_SEQUENCE, + asn_DEF_SET_GANSSReferenceTime_tags_1, + sizeof(asn_DEF_SET_GANSSReferenceTime_tags_1) + /sizeof(asn_DEF_SET_GANSSReferenceTime_tags_1[0]), /* 1 */ + asn_DEF_SET_GANSSReferenceTime_tags_1, /* Same as above */ + sizeof(asn_DEF_SET_GANSSReferenceTime_tags_1) + /sizeof(asn_DEF_SET_GANSSReferenceTime_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SET_GANSSReferenceTime_1, + 4, /* Elements count */ + &asn_SPC_SET_GANSSReferenceTime_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SET-GANSSReferenceTime.h b/asn.1/supl_generated/SET-GANSSReferenceTime.h similarity index 88% rename from asn.1/generated/SET-GANSSReferenceTime.h rename to asn.1/supl_generated/SET-GANSSReferenceTime.h index 22b5497d..e5770921 100644 --- a/asn.1/generated/SET-GANSSReferenceTime.h +++ b/asn.1/supl_generated/SET-GANSSReferenceTime.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SET_GANSSReferenceTime_H_ @@ -59,7 +59,7 @@ typedef struct SET_GANSSReferenceTime { asn_struct_ctx_t _asn_ctx; } *modeSpecificInfo; long sfn; - long *ganss_TODUncertainty /* OPTIONAL */; + long *ganss_TODUncertainty; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/supl_generated/SETAuthKey.c b/asn.1/supl_generated/SETAuthKey.c new file mode 100644 index 00000000..bec125d0 --- /dev/null +++ b/asn.1/supl_generated/SETAuthKey.c @@ -0,0 +1,164 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-RESPONSE" + * found in "src/SUPL-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SETAuthKey.h" + +static int +memb_shortKey_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 128UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_longKey_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 256UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_shortKey_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_longKey_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 256, 256 } /* (SIZE(256..256)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SETAuthKey_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SETAuthKey_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SETAuthKey, choice.shortKey), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_shortKey_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_shortKey_constraint_1 + }, + 0, 0, /* No default value */ + "shortKey" + }, + { ATF_NOFLAGS, 0, offsetof(struct SETAuthKey, choice.longKey), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_longKey_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_longKey_constraint_1 + }, + 0, 0, /* No default value */ + "longKey" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_SETAuthKey_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* shortKey */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* longKey */ +}; +asn_CHOICE_specifics_t asn_SPC_SETAuthKey_specs_1 = { + sizeof(struct SETAuthKey), + offsetof(struct SETAuthKey, _asn_ctx), + offsetof(struct SETAuthKey, present), + sizeof(((struct SETAuthKey *)0)->present), + asn_MAP_SETAuthKey_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_SETAuthKey = { + "SETAuthKey", + "SETAuthKey", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SETAuthKey_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_SETAuthKey_1, + 2, /* Elements count */ + &asn_SPC_SETAuthKey_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SETAuthKey.h b/asn.1/supl_generated/SETAuthKey.h similarity index 82% rename from asn.1/generated/SETAuthKey.h rename to asn.1/supl_generated/SETAuthKey.h index b3389772..6fd225da 100644 --- a/asn.1/generated/SETAuthKey.h +++ b/asn.1/supl_generated/SETAuthKey.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-RESPONSE" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SETAuthKey_H_ diff --git a/asn.1/supl_generated/SETCapabilities.c b/asn.1/supl_generated/SETCapabilities.c new file mode 100644 index 00000000..734ea5fc --- /dev/null +++ b/asn.1/supl_generated/SETCapabilities.c @@ -0,0 +1,123 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-START" + * found in "src/SUPL-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SETCapabilities.h" + +#include "Ver2-SETCapabilities-extension.h" +asn_TYPE_member_t asn_MBR_SETCapabilities_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SETCapabilities, posTechnology), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosTechnology, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posTechnology" + }, + { ATF_NOFLAGS, 0, offsetof(struct SETCapabilities, prefMethod), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PrefMethod, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "prefMethod" + }, + { ATF_NOFLAGS, 0, offsetof(struct SETCapabilities, posProtocol), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosProtocol, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posProtocol" + }, + { ATF_POINTER, 1, offsetof(struct SETCapabilities, ver2_SETCapabilities_extension), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver2_SETCapabilities_extension, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ver2-SETCapabilities-extension" + }, +}; +static const int asn_MAP_SETCapabilities_oms_1[] = { 3 }; +static const ber_tlv_tag_t asn_DEF_SETCapabilities_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SETCapabilities_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* posTechnology */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* prefMethod */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* posProtocol */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ver2-SETCapabilities-extension */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SETCapabilities_specs_1 = { + sizeof(struct SETCapabilities), + offsetof(struct SETCapabilities, _asn_ctx), + asn_MAP_SETCapabilities_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_SETCapabilities_oms_1, /* Optional members */ + 0, 1, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SETCapabilities = { + "SETCapabilities", + "SETCapabilities", + &asn_OP_SEQUENCE, + asn_DEF_SETCapabilities_tags_1, + sizeof(asn_DEF_SETCapabilities_tags_1) + /sizeof(asn_DEF_SETCapabilities_tags_1[0]), /* 1 */ + asn_DEF_SETCapabilities_tags_1, /* Same as above */ + sizeof(asn_DEF_SETCapabilities_tags_1) + /sizeof(asn_DEF_SETCapabilities_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SETCapabilities_1, + 4, /* Elements count */ + &asn_SPC_SETCapabilities_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SETCapabilities.h b/asn.1/supl_generated/SETCapabilities.h similarity index 80% rename from asn.1/generated/SETCapabilities.h rename to asn.1/supl_generated/SETCapabilities.h index 72fd44e8..d6ba8b88 100644 --- a/asn.1/generated/SETCapabilities.h +++ b/asn.1/supl_generated/SETCapabilities.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SETCapabilities_H_ @@ -33,7 +33,7 @@ typedef struct SETCapabilities { * This type is extensible, * possible extensions are below. */ - struct Ver2_SETCapabilities_extension *ver2_SETCapabilities_extension /* OPTIONAL */; + struct Ver2_SETCapabilities_extension *ver2_SETCapabilities_extension; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -48,8 +48,5 @@ extern asn_TYPE_member_t asn_MBR_SETCapabilities_1[4]; } #endif -/* Referred external types */ -#include "Ver2-SETCapabilities-extension.h" - #endif /* _SETCapabilities_H_ */ #include diff --git a/asn.1/supl_generated/SETId.c b/asn.1/supl_generated/SETId.c new file mode 100644 index 00000000..45fcaae2 --- /dev/null +++ b/asn.1/supl_generated/SETId.c @@ -0,0 +1,344 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SETId.h" + +static int check_permitted_alphabet_6(const void *sptr) { + /* The underlying type is IA5String */ + const IA5String_t *st = (const IA5String_t *)sptr; + const uint8_t *ch = st->buf; + const uint8_t *end = ch + st->size; + + for(; ch < end; ch++) { + uint8_t cv = *ch; + if(!(cv <= 127UL)) return -1; + } + return 0; +} + +static int +memb_msisdn_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_mdn_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_min_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 34UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_imsi_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size == 8UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nai_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const IA5String_t *st = (const IA5String_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size >= 1UL && size <= 1000UL) + && !check_permitted_alphabet_6(st)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_msisdn_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_mdn_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_min_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 34, 34 } /* (SIZE(34..34)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_imsi_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nai_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_CONSTRAINED, 10, 10, 1, 1000 } /* (SIZE(1..1000)) */, + 0, 0 /* No PER character map necessary */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SETId_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SETId_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SETId, choice.msisdn), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OCTET_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_msisdn_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_msisdn_constraint_1 + }, + 0, 0, /* No default value */ + "msisdn" + }, + { ATF_NOFLAGS, 0, offsetof(struct SETId, choice.mdn), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OCTET_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_mdn_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_mdn_constraint_1 + }, + 0, 0, /* No default value */ + "mdn" + }, + { ATF_NOFLAGS, 0, offsetof(struct SETId, choice.min), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_min_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_min_constraint_1 + }, + 0, 0, /* No default value */ + "min" + }, + { ATF_NOFLAGS, 0, offsetof(struct SETId, choice.imsi), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OCTET_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_imsi_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_imsi_constraint_1 + }, + 0, 0, /* No default value */ + "imsi" + }, + { ATF_NOFLAGS, 0, offsetof(struct SETId, choice.nai), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_IA5String, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nai_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nai_constraint_1 + }, + 0, 0, /* No default value */ + "nai" + }, + { ATF_NOFLAGS, 0, offsetof(struct SETId, choice.iPAddress), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_IPAddress, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "iPAddress" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_SETId_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* msisdn */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* mdn */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* min */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* imsi */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nai */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* iPAddress */ +}; +asn_CHOICE_specifics_t asn_SPC_SETId_specs_1 = { + sizeof(struct SETId), + offsetof(struct SETId, _asn_ctx), + offsetof(struct SETId, present), + sizeof(((struct SETId *)0)->present), + asn_MAP_SETId_tag2el_1, + 6, /* Count of tags in the map */ + 0, 0, + 6 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_SETId = { + "SETId", + "SETId", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SETId_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_SETId_1, + 6, /* Elements count */ + &asn_SPC_SETId_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SETId.h b/asn.1/supl_generated/SETId.h similarity index 84% rename from asn.1/generated/SETId.h rename to asn.1/supl_generated/SETId.h index 1dfc6115..2caa34ee 100644 --- a/asn.1/generated/SETId.h +++ b/asn.1/supl_generated/SETId.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SETId_H_ diff --git a/asn.1/supl_generated/SLPAddress.c b/asn.1/supl_generated/SLPAddress.c new file mode 100644 index 00000000..7c2ee342 --- /dev/null +++ b/asn.1/supl_generated/SLPAddress.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SLPAddress.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SLPAddress_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SLPAddress_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SLPAddress, choice.iPAddress), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_IPAddress, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "iPAddress" + }, + { ATF_NOFLAGS, 0, offsetof(struct SLPAddress, choice.fQDN), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FQDN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fQDN" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_SLPAddress_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iPAddress */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* fQDN */ +}; +asn_CHOICE_specifics_t asn_SPC_SLPAddress_specs_1 = { + sizeof(struct SLPAddress), + offsetof(struct SLPAddress, _asn_ctx), + offsetof(struct SLPAddress, present), + sizeof(((struct SLPAddress *)0)->present), + asn_MAP_SLPAddress_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_SLPAddress = { + "SLPAddress", + "SLPAddress", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SLPAddress_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_SLPAddress_1, + 2, /* Elements count */ + &asn_SPC_SLPAddress_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SLPAddress.h b/asn.1/supl_generated/SLPAddress.h similarity index 82% rename from asn.1/generated/SLPAddress.h rename to asn.1/supl_generated/SLPAddress.h index 8d0dd397..2eb16693 100644 --- a/asn.1/generated/SLPAddress.h +++ b/asn.1/supl_generated/SLPAddress.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SLPAddress_H_ diff --git a/asn.1/supl_generated/SLPMode.c b/asn.1/supl_generated/SLPMode.c new file mode 100644 index 00000000..b02a75ca --- /dev/null +++ b/asn.1/supl_generated/SLPMode.c @@ -0,0 +1,63 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-INIT" + * found in "src/SUPL-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SLPMode.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SLPMode_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_SLPMode_value2enum_1[] = { + { 0, 5, "proxy" }, + { 1, 8, "nonProxy" } +}; +static const unsigned int asn_MAP_SLPMode_enum2value_1[] = { + 1, /* nonProxy(1) */ + 0 /* proxy(0) */ +}; +const asn_INTEGER_specifics_t asn_SPC_SLPMode_specs_1 = { + asn_MAP_SLPMode_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_SLPMode_enum2value_1, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_SLPMode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SLPMode = { + "SLPMode", + "SLPMode", + &asn_OP_NativeEnumerated, + asn_DEF_SLPMode_tags_1, + sizeof(asn_DEF_SLPMode_tags_1) + /sizeof(asn_DEF_SLPMode_tags_1[0]), /* 1 */ + asn_DEF_SLPMode_tags_1, /* Same as above */ + sizeof(asn_DEF_SLPMode_tags_1) + /sizeof(asn_DEF_SLPMode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SLPMode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_SLPMode_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SLPMode.h b/asn.1/supl_generated/SLPMode.h similarity index 76% rename from asn.1/generated/SLPMode.h rename to asn.1/supl_generated/SLPMode.h index cfe625cb..5da2d25b 100644 --- a/asn.1/generated/SLPMode.h +++ b/asn.1/supl_generated/SLPMode.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SLPMode_H_ @@ -32,12 +32,10 @@ extern asn_per_constraints_t asn_PER_type_SLPMode_constr_1; extern asn_TYPE_descriptor_t asn_DEF_SLPMode; extern const asn_INTEGER_specifics_t asn_SPC_SLPMode_specs_1; asn_struct_free_f SLPMode_free; -asn_struct_print_f SLPMode_print; asn_constr_check_f SLPMode_constraint; -ber_type_decoder_f SLPMode_decode_ber; -der_type_encoder_f SLPMode_encode_der; xer_type_decoder_f SLPMode_decode_xer; xer_type_encoder_f SLPMode_encode_xer; +jer_type_encoder_f SLPMode_encode_jer; per_type_decoder_f SLPMode_decode_uper; per_type_encoder_f SLPMode_encode_uper; diff --git a/asn.1/supl_generated/SPCSETKey.c b/asn.1/supl_generated/SPCSETKey.c new file mode 100644 index 00000000..4a69498a --- /dev/null +++ b/asn.1/supl_generated/SPCSETKey.c @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SPCSETKey.h" + +int +SPCSETKey_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 128UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using BIT_STRING, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SPCSETKey_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_SPCSETKey_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SPCSETKey = { + "SPCSETKey", + "SPCSETKey", + &asn_OP_BIT_STRING, + asn_DEF_SPCSETKey_tags_1, + sizeof(asn_DEF_SPCSETKey_tags_1) + /sizeof(asn_DEF_SPCSETKey_tags_1[0]), /* 1 */ + asn_DEF_SPCSETKey_tags_1, /* Same as above */ + sizeof(asn_DEF_SPCSETKey_tags_1) + /sizeof(asn_DEF_SPCSETKey_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SPCSETKey_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SPCSETKey_constraint + }, + 0, 0, /* No members */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/SPCSETKey.h b/asn.1/supl_generated/SPCSETKey.h new file mode 100644 index 00000000..6f7282ce --- /dev/null +++ b/asn.1/supl_generated/SPCSETKey.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _SPCSETKey_H_ +#define _SPCSETKey_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* SPCSETKey */ +typedef BIT_STRING_t SPCSETKey_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_SPCSETKey_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_SPCSETKey; +asn_struct_free_f SPCSETKey_free; +asn_constr_check_f SPCSETKey_constraint; +xer_type_decoder_f SPCSETKey_decode_xer; +xer_type_encoder_f SPCSETKey_encode_xer; +jer_type_encoder_f SPCSETKey_encode_jer; +per_type_decoder_f SPCSETKey_decode_uper; +per_type_encoder_f SPCSETKey_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _SPCSETKey_H_ */ +#include diff --git a/asn.1/supl_generated/SPCSETKeylifetime.c b/asn.1/supl_generated/SPCSETKeylifetime.c new file mode 100644 index 00000000..948388eb --- /dev/null +++ b/asn.1/supl_generated/SPCSETKeylifetime.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SPCSETKeylifetime.h" + +int +SPCSETKeylifetime_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 24L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SPCSETKeylifetime_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 1, 24 } /* (1..24) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_SPCSETKeylifetime_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SPCSETKeylifetime = { + "SPCSETKeylifetime", + "SPCSETKeylifetime", + &asn_OP_NativeInteger, + asn_DEF_SPCSETKeylifetime_tags_1, + sizeof(asn_DEF_SPCSETKeylifetime_tags_1) + /sizeof(asn_DEF_SPCSETKeylifetime_tags_1[0]), /* 1 */ + asn_DEF_SPCSETKeylifetime_tags_1, /* Same as above */ + sizeof(asn_DEF_SPCSETKeylifetime_tags_1) + /sizeof(asn_DEF_SPCSETKeylifetime_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SPCSETKeylifetime_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SPCSETKeylifetime_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/supl_generated/SPCSETKeylifetime.h b/asn.1/supl_generated/SPCSETKeylifetime.h new file mode 100644 index 00000000..9f087491 --- /dev/null +++ b/asn.1/supl_generated/SPCSETKeylifetime.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _SPCSETKeylifetime_H_ +#define _SPCSETKeylifetime_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* SPCSETKeylifetime */ +typedef long SPCSETKeylifetime_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_SPCSETKeylifetime_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_SPCSETKeylifetime; +asn_struct_free_f SPCSETKeylifetime_free; +asn_constr_check_f SPCSETKeylifetime_constraint; +xer_type_decoder_f SPCSETKeylifetime_decode_xer; +xer_type_encoder_f SPCSETKeylifetime_encode_xer; +jer_type_encoder_f SPCSETKeylifetime_encode_jer; +per_type_decoder_f SPCSETKeylifetime_decode_uper; +per_type_encoder_f SPCSETKeylifetime_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _SPCSETKeylifetime_H_ */ +#include diff --git a/asn.1/supl_generated/SPCTID.c b/asn.1/supl_generated/SPCTID.c new file mode 100644 index 00000000..505c7a70 --- /dev/null +++ b/asn.1/supl_generated/SPCTID.c @@ -0,0 +1,122 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SPCTID.h" + +static int +memb_rAND_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 128UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rAND_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SPCTID_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SPCTID, rAND), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rAND_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rAND_constraint_1 + }, + 0, 0, /* No default value */ + "rAND" + }, + { ATF_NOFLAGS, 0, offsetof(struct SPCTID, slpFQDN), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FQDN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "slpFQDN" + }, +}; +static const ber_tlv_tag_t asn_DEF_SPCTID_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SPCTID_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rAND */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* slpFQDN */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SPCTID_specs_1 = { + sizeof(struct SPCTID), + offsetof(struct SPCTID, _asn_ctx), + asn_MAP_SPCTID_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SPCTID = { + "SPCTID", + "SPCTID", + &asn_OP_SEQUENCE, + asn_DEF_SPCTID_tags_1, + sizeof(asn_DEF_SPCTID_tags_1) + /sizeof(asn_DEF_SPCTID_tags_1[0]), /* 1 */ + asn_DEF_SPCTID_tags_1, /* Same as above */ + sizeof(asn_DEF_SPCTID_tags_1) + /sizeof(asn_DEF_SPCTID_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SPCTID_1, + 2, /* Elements count */ + &asn_SPC_SPCTID_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SPCTID.h b/asn.1/supl_generated/SPCTID.h similarity index 76% rename from asn.1/generated/SPCTID.h rename to asn.1/supl_generated/SPCTID.h index bcad791a..de736564 100644 --- a/asn.1/generated/SPCTID.h +++ b/asn.1/supl_generated/SPCTID.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SPCTID_H_ diff --git a/asn.1/supl_generated/SUPL-GPSTime.c b/asn.1/supl_generated/SUPL-GPSTime.c new file mode 100644 index 00000000..d222b27a --- /dev/null +++ b/asn.1/supl_generated/SUPL-GPSTime.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SUPL-GPSTime.h" + +static int +memb_gPSWeek_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gPSTOWhour_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 167L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gPSWeek_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gPSTOWhour_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 167 } /* (0..167) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SUPL_GPSTime_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SUPL_GPSTime, gPSWeek), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gPSWeek_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gPSWeek_constraint_1 + }, + 0, 0, /* No default value */ + "gPSWeek" + }, + { ATF_NOFLAGS, 0, offsetof(struct SUPL_GPSTime, gPSTOWhour), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gPSTOWhour_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gPSTOWhour_constraint_1 + }, + 0, 0, /* No default value */ + "gPSTOWhour" + }, +}; +static const ber_tlv_tag_t asn_DEF_SUPL_GPSTime_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SUPL_GPSTime_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gPSWeek */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gPSTOWhour */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SUPL_GPSTime_specs_1 = { + sizeof(struct SUPL_GPSTime), + offsetof(struct SUPL_GPSTime, _asn_ctx), + asn_MAP_SUPL_GPSTime_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SUPL_GPSTime = { + "SUPL-GPSTime", + "SUPL-GPSTime", + &asn_OP_SEQUENCE, + asn_DEF_SUPL_GPSTime_tags_1, + sizeof(asn_DEF_SUPL_GPSTime_tags_1) + /sizeof(asn_DEF_SUPL_GPSTime_tags_1[0]), /* 1 */ + asn_DEF_SUPL_GPSTime_tags_1, /* Same as above */ + sizeof(asn_DEF_SUPL_GPSTime_tags_1) + /sizeof(asn_DEF_SUPL_GPSTime_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SUPL_GPSTime_1, + 2, /* Elements count */ + &asn_SPC_SUPL_GPSTime_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SUPL-GPSTime.h b/asn.1/supl_generated/SUPL-GPSTime.h similarity index 76% rename from asn.1/generated/SUPL-GPSTime.h rename to asn.1/supl_generated/SUPL-GPSTime.h index ca57fa5a..bce95e46 100644 --- a/asn.1/generated/SUPL-GPSTime.h +++ b/asn.1/supl_generated/SUPL-GPSTime.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SUPL_GPSTime_H_ diff --git a/asn.1/supl_generated/SUPL-NavigationModel.c b/asn.1/supl_generated/SUPL-NavigationModel.c new file mode 100644 index 00000000..6c0c9cad --- /dev/null +++ b/asn.1/supl_generated/SUPL-NavigationModel.c @@ -0,0 +1,269 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-POS-INIT" + * found in "src/SUPL-POS-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SUPL-NavigationModel.h" + +#include "SatelliteInfo.h" +static int +memb_gpsWeek_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gpsToe_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 167L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_nSAT_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 31L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_toeLimit_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 10L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gpsWeek_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gpsToe_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 167 } /* (0..167) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_nSAT_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_toeLimit_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SUPL_NavigationModel_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SUPL_NavigationModel, gpsWeek), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gpsWeek_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gpsWeek_constraint_1 + }, + 0, 0, /* No default value */ + "gpsWeek" + }, + { ATF_NOFLAGS, 0, offsetof(struct SUPL_NavigationModel, gpsToe), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gpsToe_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gpsToe_constraint_1 + }, + 0, 0, /* No default value */ + "gpsToe" + }, + { ATF_NOFLAGS, 0, offsetof(struct SUPL_NavigationModel, nSAT), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_nSAT_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_nSAT_constraint_1 + }, + 0, 0, /* No default value */ + "nSAT" + }, + { ATF_NOFLAGS, 0, offsetof(struct SUPL_NavigationModel, toeLimit), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_toeLimit_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_toeLimit_constraint_1 + }, + 0, 0, /* No default value */ + "toeLimit" + }, + { ATF_POINTER, 1, offsetof(struct SUPL_NavigationModel, satInfo), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SatelliteInfo, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "satInfo" + }, +}; +static const int asn_MAP_SUPL_NavigationModel_oms_1[] = { 4 }; +static const ber_tlv_tag_t asn_DEF_SUPL_NavigationModel_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SUPL_NavigationModel_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gpsWeek */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gpsToe */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* nSAT */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* toeLimit */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* satInfo */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SUPL_NavigationModel_specs_1 = { + sizeof(struct SUPL_NavigationModel), + offsetof(struct SUPL_NavigationModel, _asn_ctx), + asn_MAP_SUPL_NavigationModel_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_SUPL_NavigationModel_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SUPL_NavigationModel = { + "SUPL-NavigationModel", + "SUPL-NavigationModel", + &asn_OP_SEQUENCE, + asn_DEF_SUPL_NavigationModel_tags_1, + sizeof(asn_DEF_SUPL_NavigationModel_tags_1) + /sizeof(asn_DEF_SUPL_NavigationModel_tags_1[0]), /* 1 */ + asn_DEF_SUPL_NavigationModel_tags_1, /* Same as above */ + sizeof(asn_DEF_SUPL_NavigationModel_tags_1) + /sizeof(asn_DEF_SUPL_NavigationModel_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SUPL_NavigationModel_1, + 5, /* Elements count */ + &asn_SPC_SUPL_NavigationModel_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SUPL-NavigationModel.h b/asn.1/supl_generated/SUPL-NavigationModel.h similarity index 77% rename from asn.1/generated/SUPL-NavigationModel.h rename to asn.1/supl_generated/SUPL-NavigationModel.h index 7ff1414e..c3cf2fb3 100644 --- a/asn.1/generated/SUPL-NavigationModel.h +++ b/asn.1/supl_generated/SUPL-NavigationModel.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-POS-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-POS-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SUPL_NavigationModel_H_ @@ -28,7 +28,7 @@ typedef struct SUPL_NavigationModel { long gpsToe; long nSAT; long toeLimit; - struct SatelliteInfo *satInfo /* OPTIONAL */; + struct SatelliteInfo *satInfo; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -47,8 +47,5 @@ extern asn_TYPE_member_t asn_MBR_SUPL_NavigationModel_1[5]; } #endif -/* Referred external types */ -#include "SatelliteInfo.h" - #endif /* _SUPL_NavigationModel_H_ */ #include diff --git a/asn.1/supl_generated/SUPL-PositionData.c b/asn.1/supl_generated/SUPL-PositionData.c new file mode 100644 index 00000000..512f9e71 --- /dev/null +++ b/asn.1/supl_generated/SUPL-PositionData.c @@ -0,0 +1,124 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-REPORT" + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SUPL-PositionData.h" + +#include "GNSSPosTechnology.h" +#include "GANSSsignalsInfo.h" +asn_TYPE_member_t asn_MBR_SUPL_PositionData_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SUPL_PositionData, position), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Position, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "position" + }, + { ATF_POINTER, 3, offsetof(struct SUPL_PositionData, posMethod), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosMethod, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posMethod" + }, + { ATF_POINTER, 2, offsetof(struct SUPL_PositionData, gnssPosTechnology), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSSPosTechnology, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnssPosTechnology" + }, + { ATF_POINTER, 1, offsetof(struct SUPL_PositionData, ganssSignalsInfo), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GANSSsignalsInfo, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ganssSignalsInfo" + }, +}; +static const int asn_MAP_SUPL_PositionData_oms_1[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_SUPL_PositionData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SUPL_PositionData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* position */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* posMethod */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gnssPosTechnology */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ganssSignalsInfo */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SUPL_PositionData_specs_1 = { + sizeof(struct SUPL_PositionData), + offsetof(struct SUPL_PositionData, _asn_ctx), + asn_MAP_SUPL_PositionData_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_SUPL_PositionData_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SUPL_PositionData = { + "SUPL-PositionData", + "SUPL-PositionData", + &asn_OP_SEQUENCE, + asn_DEF_SUPL_PositionData_tags_1, + sizeof(asn_DEF_SUPL_PositionData_tags_1) + /sizeof(asn_DEF_SUPL_PositionData_tags_1[0]), /* 1 */ + asn_DEF_SUPL_PositionData_tags_1, /* Same as above */ + sizeof(asn_DEF_SUPL_PositionData_tags_1) + /sizeof(asn_DEF_SUPL_PositionData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SUPL_PositionData_1, + 4, /* Elements count */ + &asn_SPC_SUPL_PositionData_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/SUPL-PositionData.h b/asn.1/supl_generated/SUPL-PositionData.h new file mode 100644 index 00000000..ee02abc1 --- /dev/null +++ b/asn.1/supl_generated/SUPL-PositionData.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-REPORT" + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _SUPL_PositionData_H_ +#define _SUPL_PositionData_H_ + + +#include + +/* Including external dependencies */ +#include "Position.h" +#include "PosMethod.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GNSSPosTechnology; +struct GANSSsignalsInfo; + +/* SUPL-PositionData */ +typedef struct SUPL_PositionData { + Position_t position; + PosMethod_t *posMethod; /* OPTIONAL */ + struct GNSSPosTechnology *gnssPosTechnology; /* OPTIONAL */ + struct GANSSsignalsInfo *ganssSignalsInfo; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SUPL_PositionData_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SUPL_PositionData; +extern asn_SEQUENCE_specifics_t asn_SPC_SUPL_PositionData_specs_1; +extern asn_TYPE_member_t asn_MBR_SUPL_PositionData_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SUPL_PositionData_H_ */ +#include diff --git a/asn.1/supl_generated/SUPLAUTHREQ.c b/asn.1/supl_generated/SUPLAUTHREQ.c new file mode 100644 index 00000000..6cbf0e79 --- /dev/null +++ b/asn.1/supl_generated/SUPLAUTHREQ.c @@ -0,0 +1,87 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-AUTH-REQ" + * found in "src/SUPL-AUTH-REQ.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SUPLAUTHREQ.h" + +#include "SETCapabilities.h" +asn_TYPE_member_t asn_MBR_SUPLAUTHREQ_1[] = { + { ATF_POINTER, 2, offsetof(struct SUPLAUTHREQ, ver), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ver" + }, + { ATF_POINTER, 1, offsetof(struct SUPLAUTHREQ, sETCapabilities), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SETCapabilities, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sETCapabilities" + }, +}; +static const int asn_MAP_SUPLAUTHREQ_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_SUPLAUTHREQ_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SUPLAUTHREQ_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ver */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* sETCapabilities */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SUPLAUTHREQ_specs_1 = { + sizeof(struct SUPLAUTHREQ), + offsetof(struct SUPLAUTHREQ, _asn_ctx), + asn_MAP_SUPLAUTHREQ_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_SUPLAUTHREQ_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SUPLAUTHREQ = { + "SUPLAUTHREQ", + "SUPLAUTHREQ", + &asn_OP_SEQUENCE, + asn_DEF_SUPLAUTHREQ_tags_1, + sizeof(asn_DEF_SUPLAUTHREQ_tags_1) + /sizeof(asn_DEF_SUPLAUTHREQ_tags_1[0]), /* 1 */ + asn_DEF_SUPLAUTHREQ_tags_1, /* Same as above */ + sizeof(asn_DEF_SUPLAUTHREQ_tags_1) + /sizeof(asn_DEF_SUPLAUTHREQ_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SUPLAUTHREQ_1, + 2, /* Elements count */ + &asn_SPC_SUPLAUTHREQ_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/SUPLAUTHREQ.h b/asn.1/supl_generated/SUPLAUTHREQ.h new file mode 100644 index 00000000..bbbc0452 --- /dev/null +++ b/asn.1/supl_generated/SUPLAUTHREQ.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-AUTH-REQ" + * found in "src/SUPL-AUTH-REQ.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _SUPLAUTHREQ_H_ +#define _SUPLAUTHREQ_H_ + + +#include + +/* Including external dependencies */ +#include "Ver.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SETCapabilities; + +/* SUPLAUTHREQ */ +typedef struct SUPLAUTHREQ { + Ver_t *ver; /* OPTIONAL */ + struct SETCapabilities *sETCapabilities; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SUPLAUTHREQ_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SUPLAUTHREQ; +extern asn_SEQUENCE_specifics_t asn_SPC_SUPLAUTHREQ_specs_1; +extern asn_TYPE_member_t asn_MBR_SUPLAUTHREQ_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SUPLAUTHREQ_H_ */ +#include diff --git a/asn.1/supl_generated/SUPLAUTHRESP.c b/asn.1/supl_generated/SUPLAUTHRESP.c new file mode 100644 index 00000000..f66e73ca --- /dev/null +++ b/asn.1/supl_generated/SUPLAUTHRESP.c @@ -0,0 +1,104 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-AUTH-RESP" + * found in "src/SUPL-AUTH-RESP.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SUPLAUTHRESP.h" + +asn_TYPE_member_t asn_MBR_SUPLAUTHRESP_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SUPLAUTHRESP, sPCSETKey), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SPCSETKey, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sPCSETKey" + }, + { ATF_NOFLAGS, 0, offsetof(struct SUPLAUTHRESP, sPCTID), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SPCTID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sPCTID" + }, + { ATF_POINTER, 1, offsetof(struct SUPLAUTHRESP, sPCSETKeylifetime), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SPCSETKeylifetime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sPCSETKeylifetime" + }, +}; +static const int asn_MAP_SUPLAUTHRESP_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_SUPLAUTHRESP_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SUPLAUTHRESP_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sPCSETKey */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sPCTID */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* sPCSETKeylifetime */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SUPLAUTHRESP_specs_1 = { + sizeof(struct SUPLAUTHRESP), + offsetof(struct SUPLAUTHRESP, _asn_ctx), + asn_MAP_SUPLAUTHRESP_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_SUPLAUTHRESP_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SUPLAUTHRESP = { + "SUPLAUTHRESP", + "SUPLAUTHRESP", + &asn_OP_SEQUENCE, + asn_DEF_SUPLAUTHRESP_tags_1, + sizeof(asn_DEF_SUPLAUTHRESP_tags_1) + /sizeof(asn_DEF_SUPLAUTHRESP_tags_1[0]), /* 1 */ + asn_DEF_SUPLAUTHRESP_tags_1, /* Same as above */ + sizeof(asn_DEF_SUPLAUTHRESP_tags_1) + /sizeof(asn_DEF_SUPLAUTHRESP_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SUPLAUTHRESP_1, + 3, /* Elements count */ + &asn_SPC_SUPLAUTHRESP_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/SUPLAUTHRESP.h b/asn.1/supl_generated/SUPLAUTHRESP.h new file mode 100644 index 00000000..91befdd8 --- /dev/null +++ b/asn.1/supl_generated/SUPLAUTHRESP.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-AUTH-RESP" + * found in "src/SUPL-AUTH-RESP.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _SUPLAUTHRESP_H_ +#define _SUPLAUTHRESP_H_ + + +#include + +/* Including external dependencies */ +#include "SPCSETKey.h" +#include "SPCTID.h" +#include "SPCSETKeylifetime.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* SUPLAUTHRESP */ +typedef struct SUPLAUTHRESP { + SPCSETKey_t sPCSETKey; + SPCTID_t sPCTID; + SPCSETKeylifetime_t *sPCSETKeylifetime; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SUPLAUTHRESP_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SUPLAUTHRESP; +extern asn_SEQUENCE_specifics_t asn_SPC_SUPLAUTHRESP_specs_1; +extern asn_TYPE_member_t asn_MBR_SUPLAUTHRESP_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SUPLAUTHRESP_H_ */ +#include diff --git a/asn.1/supl_generated/SUPLEND.c b/asn.1/supl_generated/SUPLEND.c new file mode 100644 index 00000000..b04e54de --- /dev/null +++ b/asn.1/supl_generated/SUPLEND.c @@ -0,0 +1,124 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-END" + * found in "src/SUPL-END.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SUPLEND.h" + +#include "Position.h" +#include "Ver2-SUPL-END-extension.h" +asn_TYPE_member_t asn_MBR_SUPLEND_1[] = { + { ATF_POINTER, 4, offsetof(struct SUPLEND, position), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Position, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "position" + }, + { ATF_POINTER, 3, offsetof(struct SUPLEND, statusCode), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StatusCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "statusCode" + }, + { ATF_POINTER, 2, offsetof(struct SUPLEND, ver), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ver" + }, + { ATF_POINTER, 1, offsetof(struct SUPLEND, ver2_SUPL_END_extension), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver2_SUPL_END_extension, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ver2-SUPL-END-extension" + }, +}; +static const int asn_MAP_SUPLEND_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_SUPLEND_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SUPLEND_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* position */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* statusCode */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ver */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ver2-SUPL-END-extension */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SUPLEND_specs_1 = { + sizeof(struct SUPLEND), + offsetof(struct SUPLEND, _asn_ctx), + asn_MAP_SUPLEND_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_SUPLEND_oms_1, /* Optional members */ + 3, 1, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SUPLEND = { + "SUPLEND", + "SUPLEND", + &asn_OP_SEQUENCE, + asn_DEF_SUPLEND_tags_1, + sizeof(asn_DEF_SUPLEND_tags_1) + /sizeof(asn_DEF_SUPLEND_tags_1[0]), /* 1 */ + asn_DEF_SUPLEND_tags_1, /* Same as above */ + sizeof(asn_DEF_SUPLEND_tags_1) + /sizeof(asn_DEF_SUPLEND_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SUPLEND_1, + 4, /* Elements count */ + &asn_SPC_SUPLEND_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/SUPLEND.h b/asn.1/supl_generated/SUPLEND.h new file mode 100644 index 00000000..716020ee --- /dev/null +++ b/asn.1/supl_generated/SUPLEND.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-END" + * found in "src/SUPL-END.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _SUPLEND_H_ +#define _SUPLEND_H_ + + +#include + +/* Including external dependencies */ +#include "StatusCode.h" +#include "Ver.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct Position; +struct Ver2_SUPL_END_extension; + +/* SUPLEND */ +typedef struct SUPLEND { + struct Position *position; /* OPTIONAL */ + StatusCode_t *statusCode; /* OPTIONAL */ + Ver_t *ver; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct Ver2_SUPL_END_extension *ver2_SUPL_END_extension; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SUPLEND_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SUPLEND; +extern asn_SEQUENCE_specifics_t asn_SPC_SUPLEND_specs_1; +extern asn_TYPE_member_t asn_MBR_SUPLEND_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SUPLEND_H_ */ +#include diff --git a/asn.1/supl_generated/SUPLINIT.c b/asn.1/supl_generated/SUPLINIT.c new file mode 100644 index 00000000..8afc4bd6 --- /dev/null +++ b/asn.1/supl_generated/SUPLINIT.c @@ -0,0 +1,198 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-INIT" + * found in "src/SUPL-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SUPLINIT.h" + +#include "Notification.h" +#include "SLPAddress.h" +#include "QoP.h" +#include "Ver2-SUPL-INIT-extension.h" +asn_TYPE_member_t asn_MBR_SUPLINIT_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SUPLINIT, posMethod), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosMethod, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posMethod" + }, + { ATF_POINTER, 3, offsetof(struct SUPLINIT, notification), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Notification, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "notification" + }, + { ATF_POINTER, 2, offsetof(struct SUPLINIT, sLPAddress), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_SLPAddress, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sLPAddress" + }, + { ATF_POINTER, 1, offsetof(struct SUPLINIT, qoP), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_QoP, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "qoP" + }, + { ATF_NOFLAGS, 0, offsetof(struct SUPLINIT, sLPMode), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SLPMode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sLPMode" + }, + { ATF_POINTER, 3, offsetof(struct SUPLINIT, mAC), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MAC, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mAC" + }, + { ATF_POINTER, 2, offsetof(struct SUPLINIT, keyIdentity), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_KeyIdentity, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "keyIdentity" + }, + { ATF_POINTER, 1, offsetof(struct SUPLINIT, ver2_SUPL_INIT_extension), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver2_SUPL_INIT_extension, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ver2-SUPL-INIT-extension" + }, +}; +static const int asn_MAP_SUPLINIT_oms_1[] = { 1, 2, 3, 5, 6, 7 }; +static const ber_tlv_tag_t asn_DEF_SUPLINIT_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SUPLINIT_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* posMethod */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* notification */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sLPAddress */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* qoP */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* sLPMode */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* mAC */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* keyIdentity */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* ver2-SUPL-INIT-extension */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SUPLINIT_specs_1 = { + sizeof(struct SUPLINIT), + offsetof(struct SUPLINIT, _asn_ctx), + asn_MAP_SUPLINIT_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_SUPLINIT_oms_1, /* Optional members */ + 5, 1, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SUPLINIT = { + "SUPLINIT", + "SUPLINIT", + &asn_OP_SEQUENCE, + asn_DEF_SUPLINIT_tags_1, + sizeof(asn_DEF_SUPLINIT_tags_1) + /sizeof(asn_DEF_SUPLINIT_tags_1[0]), /* 1 */ + asn_DEF_SUPLINIT_tags_1, /* Same as above */ + sizeof(asn_DEF_SUPLINIT_tags_1) + /sizeof(asn_DEF_SUPLINIT_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SUPLINIT_1, + 8, /* Elements count */ + &asn_SPC_SUPLINIT_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/SUPLINIT.h b/asn.1/supl_generated/SUPLINIT.h new file mode 100644 index 00000000..719098b5 --- /dev/null +++ b/asn.1/supl_generated/SUPLINIT.h @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-INIT" + * found in "src/SUPL-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _SUPLINIT_H_ +#define _SUPLINIT_H_ + + +#include + +/* Including external dependencies */ +#include "PosMethod.h" +#include "SLPMode.h" +#include "MAC.h" +#include "KeyIdentity.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct Notification; +struct SLPAddress; +struct QoP; +struct Ver2_SUPL_INIT_extension; + +/* SUPLINIT */ +typedef struct SUPLINIT { + PosMethod_t posMethod; + struct Notification *notification; /* OPTIONAL */ + struct SLPAddress *sLPAddress; /* OPTIONAL */ + struct QoP *qoP; /* OPTIONAL */ + SLPMode_t sLPMode; + MAC_t *mAC; /* OPTIONAL */ + KeyIdentity_t *keyIdentity; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct Ver2_SUPL_INIT_extension *ver2_SUPL_INIT_extension; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SUPLINIT_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SUPLINIT; +extern asn_SEQUENCE_specifics_t asn_SPC_SUPLINIT_specs_1; +extern asn_TYPE_member_t asn_MBR_SUPLINIT_1[8]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SUPLINIT_H_ */ +#include diff --git a/asn.1/supl_generated/SUPLPOS.c b/asn.1/supl_generated/SUPLPOS.c new file mode 100644 index 00000000..204c428d --- /dev/null +++ b/asn.1/supl_generated/SUPLPOS.c @@ -0,0 +1,106 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-POS" + * found in "src/SUPL-POS.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SUPLPOS.h" + +#include "ULP-Velocity.h" +#include "Ver2-SUPL-POS-extension.h" +asn_TYPE_member_t asn_MBR_SUPLPOS_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SUPLPOS, posPayLoad), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_PosPayLoad, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posPayLoad" + }, + { ATF_POINTER, 2, offsetof(struct SUPLPOS, velocity), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_ULP_Velocity, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "velocity" + }, + { ATF_POINTER, 1, offsetof(struct SUPLPOS, ver2_SUPL_POS_extension), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver2_SUPL_POS_extension, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ver2-SUPL-POS-extension" + }, +}; +static const int asn_MAP_SUPLPOS_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_SUPLPOS_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SUPLPOS_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* posPayLoad */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* velocity */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ver2-SUPL-POS-extension */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SUPLPOS_specs_1 = { + sizeof(struct SUPLPOS), + offsetof(struct SUPLPOS, _asn_ctx), + asn_MAP_SUPLPOS_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_SUPLPOS_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SUPLPOS = { + "SUPLPOS", + "SUPLPOS", + &asn_OP_SEQUENCE, + asn_DEF_SUPLPOS_tags_1, + sizeof(asn_DEF_SUPLPOS_tags_1) + /sizeof(asn_DEF_SUPLPOS_tags_1[0]), /* 1 */ + asn_DEF_SUPLPOS_tags_1, /* Same as above */ + sizeof(asn_DEF_SUPLPOS_tags_1) + /sizeof(asn_DEF_SUPLPOS_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SUPLPOS_1, + 3, /* Elements count */ + &asn_SPC_SUPLPOS_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/SUPLPOS.h b/asn.1/supl_generated/SUPLPOS.h new file mode 100644 index 00000000..8d45c534 --- /dev/null +++ b/asn.1/supl_generated/SUPLPOS.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-POS" + * found in "src/SUPL-POS.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _SUPLPOS_H_ +#define _SUPLPOS_H_ + + +#include + +/* Including external dependencies */ +#include "PosPayLoad.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ULP_Velocity; +struct Ver2_SUPL_POS_extension; + +/* SUPLPOS */ +typedef struct SUPLPOS { + PosPayLoad_t posPayLoad; + struct ULP_Velocity *velocity; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct Ver2_SUPL_POS_extension *ver2_SUPL_POS_extension; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SUPLPOS_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SUPLPOS; +extern asn_SEQUENCE_specifics_t asn_SPC_SUPLPOS_specs_1; +extern asn_TYPE_member_t asn_MBR_SUPLPOS_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SUPLPOS_H_ */ +#include diff --git a/asn.1/supl_generated/SUPLPOSINIT.c b/asn.1/supl_generated/SUPLPOSINIT.c new file mode 100644 index 00000000..0d3a1a4b --- /dev/null +++ b/asn.1/supl_generated/SUPLPOSINIT.c @@ -0,0 +1,180 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-POS-INIT" + * found in "src/SUPL-POS-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SUPLPOSINIT.h" + +#include "RequestedAssistData.h" +#include "Position.h" +#include "SUPLPOS.h" +#include "Ver2-SUPL-POS-INIT-extension.h" +asn_TYPE_member_t asn_MBR_SUPLPOSINIT_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SUPLPOSINIT, sETCapabilities), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SETCapabilities, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sETCapabilities" + }, + { ATF_POINTER, 1, offsetof(struct SUPLPOSINIT, requestedAssistData), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RequestedAssistData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "requestedAssistData" + }, + { ATF_NOFLAGS, 0, offsetof(struct SUPLPOSINIT, locationId), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationId" + }, + { ATF_POINTER, 4, offsetof(struct SUPLPOSINIT, position), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Position, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "position" + }, + { ATF_POINTER, 3, offsetof(struct SUPLPOSINIT, sUPLPOS), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SUPLPOS, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sUPLPOS" + }, + { ATF_POINTER, 2, offsetof(struct SUPLPOSINIT, ver), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ver" + }, + { ATF_POINTER, 1, offsetof(struct SUPLPOSINIT, ver2_SUPL_POS_INIT_extension), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver2_SUPL_POS_INIT_extension, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ver2-SUPL-POS-INIT-extension" + }, +}; +static const int asn_MAP_SUPLPOSINIT_oms_1[] = { 1, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_SUPLPOSINIT_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SUPLPOSINIT_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sETCapabilities */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* requestedAssistData */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* locationId */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* position */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* sUPLPOS */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ver */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ver2-SUPL-POS-INIT-extension */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SUPLPOSINIT_specs_1 = { + sizeof(struct SUPLPOSINIT), + offsetof(struct SUPLPOSINIT, _asn_ctx), + asn_MAP_SUPLPOSINIT_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_SUPLPOSINIT_oms_1, /* Optional members */ + 4, 1, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SUPLPOSINIT = { + "SUPLPOSINIT", + "SUPLPOSINIT", + &asn_OP_SEQUENCE, + asn_DEF_SUPLPOSINIT_tags_1, + sizeof(asn_DEF_SUPLPOSINIT_tags_1) + /sizeof(asn_DEF_SUPLPOSINIT_tags_1[0]), /* 1 */ + asn_DEF_SUPLPOSINIT_tags_1, /* Same as above */ + sizeof(asn_DEF_SUPLPOSINIT_tags_1) + /sizeof(asn_DEF_SUPLPOSINIT_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SUPLPOSINIT_1, + 7, /* Elements count */ + &asn_SPC_SUPLPOSINIT_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/SUPLPOSINIT.h b/asn.1/supl_generated/SUPLPOSINIT.h new file mode 100644 index 00000000..13f867c6 --- /dev/null +++ b/asn.1/supl_generated/SUPLPOSINIT.h @@ -0,0 +1,58 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-POS-INIT" + * found in "src/SUPL-POS-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _SUPLPOSINIT_H_ +#define _SUPLPOSINIT_H_ + + +#include + +/* Including external dependencies */ +#include "SETCapabilities.h" +#include "LocationId.h" +#include "Ver.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct RequestedAssistData; +struct Position; +struct SUPLPOS; +struct Ver2_SUPL_POS_INIT_extension; + +/* SUPLPOSINIT */ +typedef struct SUPLPOSINIT { + SETCapabilities_t sETCapabilities; + struct RequestedAssistData *requestedAssistData; /* OPTIONAL */ + LocationId_t locationId; + struct Position *position; /* OPTIONAL */ + struct SUPLPOS *sUPLPOS; /* OPTIONAL */ + Ver_t *ver; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct Ver2_SUPL_POS_INIT_extension *ver2_SUPL_POS_INIT_extension; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SUPLPOSINIT_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SUPLPOSINIT; +extern asn_SEQUENCE_specifics_t asn_SPC_SUPLPOSINIT_specs_1; +extern asn_TYPE_member_t asn_MBR_SUPLPOSINIT_1[7]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SUPLPOSINIT_H_ */ +#include diff --git a/asn.1/supl_generated/SUPLRESPONSE.c b/asn.1/supl_generated/SUPLRESPONSE.c new file mode 100644 index 00000000..620d38fc --- /dev/null +++ b/asn.1/supl_generated/SUPLRESPONSE.c @@ -0,0 +1,143 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-RESPONSE" + * found in "src/SUPL-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SUPLRESPONSE.h" + +#include "SLPAddress.h" +#include "SETAuthKey.h" +#include "Ver2-SUPL-RESPONSE-extension.h" +asn_TYPE_member_t asn_MBR_SUPLRESPONSE_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SUPLRESPONSE, posMethod), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosMethod, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posMethod" + }, + { ATF_POINTER, 4, offsetof(struct SUPLRESPONSE, sLPAddress), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_SLPAddress, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sLPAddress" + }, + { ATF_POINTER, 3, offsetof(struct SUPLRESPONSE, sETAuthKey), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_SETAuthKey, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sETAuthKey" + }, + { ATF_POINTER, 2, offsetof(struct SUPLRESPONSE, keyIdentity4), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_KeyIdentity4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "keyIdentity4" + }, + { ATF_POINTER, 1, offsetof(struct SUPLRESPONSE, ver2_SUPL_RESPONSE_extension), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver2_SUPL_RESPONSE_extension, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ver2-SUPL-RESPONSE-extension" + }, +}; +static const int asn_MAP_SUPLRESPONSE_oms_1[] = { 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_SUPLRESPONSE_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SUPLRESPONSE_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* posMethod */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sLPAddress */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sETAuthKey */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* keyIdentity4 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ver2-SUPL-RESPONSE-extension */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SUPLRESPONSE_specs_1 = { + sizeof(struct SUPLRESPONSE), + offsetof(struct SUPLRESPONSE, _asn_ctx), + asn_MAP_SUPLRESPONSE_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_SUPLRESPONSE_oms_1, /* Optional members */ + 3, 1, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SUPLRESPONSE = { + "SUPLRESPONSE", + "SUPLRESPONSE", + &asn_OP_SEQUENCE, + asn_DEF_SUPLRESPONSE_tags_1, + sizeof(asn_DEF_SUPLRESPONSE_tags_1) + /sizeof(asn_DEF_SUPLRESPONSE_tags_1[0]), /* 1 */ + asn_DEF_SUPLRESPONSE_tags_1, /* Same as above */ + sizeof(asn_DEF_SUPLRESPONSE_tags_1) + /sizeof(asn_DEF_SUPLRESPONSE_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SUPLRESPONSE_1, + 5, /* Elements count */ + &asn_SPC_SUPLRESPONSE_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/SUPLRESPONSE.h b/asn.1/supl_generated/SUPLRESPONSE.h new file mode 100644 index 00000000..1df64b66 --- /dev/null +++ b/asn.1/supl_generated/SUPLRESPONSE.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-RESPONSE" + * found in "src/SUPL-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _SUPLRESPONSE_H_ +#define _SUPLRESPONSE_H_ + + +#include + +/* Including external dependencies */ +#include "PosMethod.h" +#include "KeyIdentity4.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SLPAddress; +struct SETAuthKey; +struct Ver2_SUPL_RESPONSE_extension; + +/* SUPLRESPONSE */ +typedef struct SUPLRESPONSE { + PosMethod_t posMethod; + struct SLPAddress *sLPAddress; /* OPTIONAL */ + struct SETAuthKey *sETAuthKey; /* OPTIONAL */ + KeyIdentity4_t *keyIdentity4; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct Ver2_SUPL_RESPONSE_extension *ver2_SUPL_RESPONSE_extension; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SUPLRESPONSE_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SUPLRESPONSE; +extern asn_SEQUENCE_specifics_t asn_SPC_SUPLRESPONSE_specs_1; +extern asn_TYPE_member_t asn_MBR_SUPLRESPONSE_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SUPLRESPONSE_H_ */ +#include diff --git a/asn.1/supl_generated/SUPLSTART.c b/asn.1/supl_generated/SUPLSTART.c new file mode 100644 index 00000000..1ead4825 --- /dev/null +++ b/asn.1/supl_generated/SUPLSTART.c @@ -0,0 +1,124 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-START" + * found in "src/SUPL-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SUPLSTART.h" + +#include "QoP.h" +#include "Ver2-SUPL-START-extension.h" +asn_TYPE_member_t asn_MBR_SUPLSTART_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SUPLSTART, sETCapabilities), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SETCapabilities, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sETCapabilities" + }, + { ATF_NOFLAGS, 0, offsetof(struct SUPLSTART, locationId), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationId" + }, + { ATF_POINTER, 2, offsetof(struct SUPLSTART, qoP), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_QoP, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "qoP" + }, + { ATF_POINTER, 1, offsetof(struct SUPLSTART, ver2_SUPL_START_extension), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver2_SUPL_START_extension, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ver2-SUPL-START-extension" + }, +}; +static const int asn_MAP_SUPLSTART_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_SUPLSTART_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SUPLSTART_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sETCapabilities */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* locationId */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* qoP */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ver2-SUPL-START-extension */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SUPLSTART_specs_1 = { + sizeof(struct SUPLSTART), + offsetof(struct SUPLSTART, _asn_ctx), + asn_MAP_SUPLSTART_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_SUPLSTART_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SUPLSTART = { + "SUPLSTART", + "SUPLSTART", + &asn_OP_SEQUENCE, + asn_DEF_SUPLSTART_tags_1, + sizeof(asn_DEF_SUPLSTART_tags_1) + /sizeof(asn_DEF_SUPLSTART_tags_1[0]), /* 1 */ + asn_DEF_SUPLSTART_tags_1, /* Same as above */ + sizeof(asn_DEF_SUPLSTART_tags_1) + /sizeof(asn_DEF_SUPLSTART_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SUPLSTART_1, + 4, /* Elements count */ + &asn_SPC_SUPLSTART_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/SUPLSTART.h b/asn.1/supl_generated/SUPLSTART.h new file mode 100644 index 00000000..5de68d8d --- /dev/null +++ b/asn.1/supl_generated/SUPLSTART.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-START" + * found in "src/SUPL-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _SUPLSTART_H_ +#define _SUPLSTART_H_ + + +#include + +/* Including external dependencies */ +#include "SETCapabilities.h" +#include "LocationId.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct QoP; +struct Ver2_SUPL_START_extension; + +/* SUPLSTART */ +typedef struct SUPLSTART { + SETCapabilities_t sETCapabilities; + LocationId_t locationId; + struct QoP *qoP; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct Ver2_SUPL_START_extension *ver2_SUPL_START_extension; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SUPLSTART_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SUPLSTART; +extern asn_SEQUENCE_specifics_t asn_SPC_SUPLSTART_specs_1; +extern asn_TYPE_member_t asn_MBR_SUPLSTART_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SUPLSTART_H_ */ +#include diff --git a/asn.1/supl_generated/SatelliteInfo.c b/asn.1/supl_generated/SatelliteInfo.c new file mode 100644 index 00000000..b66b320c --- /dev/null +++ b/asn.1/supl_generated/SatelliteInfo.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-POS-INIT" + * found in "src/SUPL-POS-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SatelliteInfo.h" + +#include "SatelliteInfoElement.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SatelliteInfo_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 31 } /* (SIZE(1..31)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SatelliteInfo_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SatelliteInfoElement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SatelliteInfo_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SatelliteInfo_specs_1 = { + sizeof(struct SatelliteInfo), + offsetof(struct SatelliteInfo, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SatelliteInfo = { + "SatelliteInfo", + "SatelliteInfo", + &asn_OP_SEQUENCE_OF, + asn_DEF_SatelliteInfo_tags_1, + sizeof(asn_DEF_SatelliteInfo_tags_1) + /sizeof(asn_DEF_SatelliteInfo_tags_1[0]), /* 1 */ + asn_DEF_SatelliteInfo_tags_1, /* Same as above */ + sizeof(asn_DEF_SatelliteInfo_tags_1) + /sizeof(asn_DEF_SatelliteInfo_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SatelliteInfo_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SatelliteInfo_1, + 1, /* Single element */ + &asn_SPC_SatelliteInfo_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SatelliteInfo.h b/asn.1/supl_generated/SatelliteInfo.h similarity index 78% rename from asn.1/generated/SatelliteInfo.h rename to asn.1/supl_generated/SatelliteInfo.h index 775528d7..cee892a3 100644 --- a/asn.1/generated/SatelliteInfo.h +++ b/asn.1/supl_generated/SatelliteInfo.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-POS-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-POS-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SatelliteInfo_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_SatelliteInfo_constr_1; } #endif -/* Referred external types */ -#include "SatelliteInfoElement.h" - #endif /* _SatelliteInfo_H_ */ #include diff --git a/asn.1/supl_generated/SatelliteInfoElement.c b/asn.1/supl_generated/SatelliteInfoElement.c new file mode 100644 index 00000000..a6d75831 --- /dev/null +++ b/asn.1/supl_generated/SatelliteInfoElement.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-POS-INIT" + * found in "src/SUPL-POS-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SatelliteInfoElement.h" + +static int +memb_satId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_iODE_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_satId_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_iODE_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SatelliteInfoElement_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SatelliteInfoElement, satId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_satId_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_satId_constraint_1 + }, + 0, 0, /* No default value */ + "satId" + }, + { ATF_NOFLAGS, 0, offsetof(struct SatelliteInfoElement, iODE), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_iODE_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_iODE_constraint_1 + }, + 0, 0, /* No default value */ + "iODE" + }, +}; +static const ber_tlv_tag_t asn_DEF_SatelliteInfoElement_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SatelliteInfoElement_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* satId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iODE */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SatelliteInfoElement_specs_1 = { + sizeof(struct SatelliteInfoElement), + offsetof(struct SatelliteInfoElement, _asn_ctx), + asn_MAP_SatelliteInfoElement_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SatelliteInfoElement = { + "SatelliteInfoElement", + "SatelliteInfoElement", + &asn_OP_SEQUENCE, + asn_DEF_SatelliteInfoElement_tags_1, + sizeof(asn_DEF_SatelliteInfoElement_tags_1) + /sizeof(asn_DEF_SatelliteInfoElement_tags_1[0]), /* 1 */ + asn_DEF_SatelliteInfoElement_tags_1, /* Same as above */ + sizeof(asn_DEF_SatelliteInfoElement_tags_1) + /sizeof(asn_DEF_SatelliteInfoElement_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SatelliteInfoElement_1, + 2, /* Elements count */ + &asn_SPC_SatelliteInfoElement_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SatelliteInfoElement.h b/asn.1/supl_generated/SatelliteInfoElement.h similarity index 78% rename from asn.1/generated/SatelliteInfoElement.h rename to asn.1/supl_generated/SatelliteInfoElement.h index c5c17701..903e0466 100644 --- a/asn.1/generated/SatelliteInfoElement.h +++ b/asn.1/supl_generated/SatelliteInfoElement.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-POS-INIT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-POS-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SatelliteInfoElement_H_ diff --git a/asn.1/supl_generated/SatellitesListRelatedData.c b/asn.1/supl_generated/SatellitesListRelatedData.c new file mode 100644 index 00000000..e91b854c --- /dev/null +++ b/asn.1/supl_generated/SatellitesListRelatedData.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SatellitesListRelatedData.h" + +static int +memb_satId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_iod_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_satId_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_iod_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SatellitesListRelatedData_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SatellitesListRelatedData, satId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_satId_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_satId_constraint_1 + }, + 0, 0, /* No default value */ + "satId" + }, + { ATF_NOFLAGS, 0, offsetof(struct SatellitesListRelatedData, iod), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_iod_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_iod_constraint_1 + }, + 0, 0, /* No default value */ + "iod" + }, +}; +static const ber_tlv_tag_t asn_DEF_SatellitesListRelatedData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SatellitesListRelatedData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* satId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iod */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SatellitesListRelatedData_specs_1 = { + sizeof(struct SatellitesListRelatedData), + offsetof(struct SatellitesListRelatedData, _asn_ctx), + asn_MAP_SatellitesListRelatedData_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SatellitesListRelatedData = { + "SatellitesListRelatedData", + "SatellitesListRelatedData", + &asn_OP_SEQUENCE, + asn_DEF_SatellitesListRelatedData_tags_1, + sizeof(asn_DEF_SatellitesListRelatedData_tags_1) + /sizeof(asn_DEF_SatellitesListRelatedData_tags_1[0]), /* 1 */ + asn_DEF_SatellitesListRelatedData_tags_1, /* Same as above */ + sizeof(asn_DEF_SatellitesListRelatedData_tags_1) + /sizeof(asn_DEF_SatellitesListRelatedData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SatellitesListRelatedData_1, + 2, /* Elements count */ + &asn_SPC_SatellitesListRelatedData_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SatellitesListRelatedData.h b/asn.1/supl_generated/SatellitesListRelatedData.h similarity index 78% rename from asn.1/generated/SatellitesListRelatedData.h rename to asn.1/supl_generated/SatellitesListRelatedData.h index 1498f441..ad4e51e1 100644 --- a/asn.1/generated/SatellitesListRelatedData.h +++ b/asn.1/supl_generated/SatellitesListRelatedData.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SatellitesListRelatedData_H_ diff --git a/asn.1/supl_generated/SatellitesListRelatedDataList.c b/asn.1/supl_generated/SatellitesListRelatedDataList.c new file mode 100644 index 00000000..68fceb72 --- /dev/null +++ b/asn.1/supl_generated/SatellitesListRelatedDataList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SatellitesListRelatedDataList.h" + +#include "SatellitesListRelatedData.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SatellitesListRelatedDataList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 0, 32 } /* (SIZE(0..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SatellitesListRelatedDataList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SatellitesListRelatedData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SatellitesListRelatedDataList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SatellitesListRelatedDataList_specs_1 = { + sizeof(struct SatellitesListRelatedDataList), + offsetof(struct SatellitesListRelatedDataList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SatellitesListRelatedDataList = { + "SatellitesListRelatedDataList", + "SatellitesListRelatedDataList", + &asn_OP_SEQUENCE_OF, + asn_DEF_SatellitesListRelatedDataList_tags_1, + sizeof(asn_DEF_SatellitesListRelatedDataList_tags_1) + /sizeof(asn_DEF_SatellitesListRelatedDataList_tags_1[0]), /* 1 */ + asn_DEF_SatellitesListRelatedDataList_tags_1, /* Same as above */ + sizeof(asn_DEF_SatellitesListRelatedDataList_tags_1) + /sizeof(asn_DEF_SatellitesListRelatedDataList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SatellitesListRelatedDataList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SatellitesListRelatedDataList_1, + 1, /* Single element */ + &asn_SPC_SatellitesListRelatedDataList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SatellitesListRelatedDataList.h b/asn.1/supl_generated/SatellitesListRelatedDataList.h similarity index 80% rename from asn.1/generated/SatellitesListRelatedDataList.h rename to asn.1/supl_generated/SatellitesListRelatedDataList.h index 533c00ef..b81be95f 100644 --- a/asn.1/generated/SatellitesListRelatedDataList.h +++ b/asn.1/supl_generated/SatellitesListRelatedDataList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SatellitesListRelatedDataList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_SatellitesListRelatedDataList_constr_1 } #endif -/* Referred external types */ -#include "SatellitesListRelatedData.h" - #endif /* _SatellitesListRelatedDataList_H_ */ #include diff --git a/asn.1/supl_generated/ServiceCapabilities.c b/asn.1/supl_generated/ServiceCapabilities.c new file mode 100644 index 00000000..4997ed58 --- /dev/null +++ b/asn.1/supl_generated/ServiceCapabilities.c @@ -0,0 +1,124 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ServiceCapabilities.h" + +#include "ReportingCap.h" +#include "EventTriggerCapabilities.h" +asn_TYPE_member_t asn_MBR_ServiceCapabilities_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ServiceCapabilities, servicesSupported), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ServicesSupported, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "servicesSupported" + }, + { ATF_POINTER, 2, offsetof(struct ServiceCapabilities, reportingCapabilities), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReportingCap, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reportingCapabilities" + }, + { ATF_POINTER, 1, offsetof(struct ServiceCapabilities, eventTriggerCapabilities), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EventTriggerCapabilities, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eventTriggerCapabilities" + }, + { ATF_NOFLAGS, 0, offsetof(struct ServiceCapabilities, sessionCapabilities), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SessionCapabilities, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sessionCapabilities" + }, +}; +static const int asn_MAP_ServiceCapabilities_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ServiceCapabilities_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ServiceCapabilities_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* servicesSupported */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* reportingCapabilities */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* eventTriggerCapabilities */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* sessionCapabilities */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ServiceCapabilities_specs_1 = { + sizeof(struct ServiceCapabilities), + offsetof(struct ServiceCapabilities, _asn_ctx), + asn_MAP_ServiceCapabilities_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_ServiceCapabilities_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ServiceCapabilities = { + "ServiceCapabilities", + "ServiceCapabilities", + &asn_OP_SEQUENCE, + asn_DEF_ServiceCapabilities_tags_1, + sizeof(asn_DEF_ServiceCapabilities_tags_1) + /sizeof(asn_DEF_ServiceCapabilities_tags_1[0]), /* 1 */ + asn_DEF_ServiceCapabilities_tags_1, /* Same as above */ + sizeof(asn_DEF_ServiceCapabilities_tags_1) + /sizeof(asn_DEF_ServiceCapabilities_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ServiceCapabilities_1, + 4, /* Elements count */ + &asn_SPC_ServiceCapabilities_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/ServiceCapabilities.h b/asn.1/supl_generated/ServiceCapabilities.h new file mode 100644 index 00000000..cdf52815 --- /dev/null +++ b/asn.1/supl_generated/ServiceCapabilities.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _ServiceCapabilities_H_ +#define _ServiceCapabilities_H_ + + +#include + +/* Including external dependencies */ +#include "ServicesSupported.h" +#include "SessionCapabilities.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ReportingCap; +struct EventTriggerCapabilities; + +/* ServiceCapabilities */ +typedef struct ServiceCapabilities { + ServicesSupported_t servicesSupported; + struct ReportingCap *reportingCapabilities; /* OPTIONAL */ + struct EventTriggerCapabilities *eventTriggerCapabilities; /* OPTIONAL */ + SessionCapabilities_t sessionCapabilities; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ServiceCapabilities_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ServiceCapabilities; +extern asn_SEQUENCE_specifics_t asn_SPC_ServiceCapabilities_specs_1; +extern asn_TYPE_member_t asn_MBR_ServiceCapabilities_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ServiceCapabilities_H_ */ +#include diff --git a/asn.1/supl_generated/ServicesSupported.c b/asn.1/supl_generated/ServicesSupported.c new file mode 100644 index 00000000..b5093a13 --- /dev/null +++ b/asn.1/supl_generated/ServicesSupported.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ServicesSupported.h" + +asn_TYPE_member_t asn_MBR_ServicesSupported_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ServicesSupported, periodicTrigger), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "periodicTrigger" + }, + { ATF_NOFLAGS, 0, offsetof(struct ServicesSupported, areaEventTrigger), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "areaEventTrigger" + }, +}; +static const ber_tlv_tag_t asn_DEF_ServicesSupported_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ServicesSupported_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* periodicTrigger */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* areaEventTrigger */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ServicesSupported_specs_1 = { + sizeof(struct ServicesSupported), + offsetof(struct ServicesSupported, _asn_ctx), + asn_MAP_ServicesSupported_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ServicesSupported = { + "ServicesSupported", + "ServicesSupported", + &asn_OP_SEQUENCE, + asn_DEF_ServicesSupported_tags_1, + sizeof(asn_DEF_ServicesSupported_tags_1) + /sizeof(asn_DEF_ServicesSupported_tags_1[0]), /* 1 */ + asn_DEF_ServicesSupported_tags_1, /* Same as above */ + sizeof(asn_DEF_ServicesSupported_tags_1) + /sizeof(asn_DEF_ServicesSupported_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ServicesSupported_1, + 2, /* Elements count */ + &asn_SPC_ServicesSupported_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ServicesSupported.h b/asn.1/supl_generated/ServicesSupported.h similarity index 77% rename from asn.1/generated/ServicesSupported.h rename to asn.1/supl_generated/ServicesSupported.h index 3e56630f..ca159736 100644 --- a/asn.1/generated/ServicesSupported.h +++ b/asn.1/supl_generated/ServicesSupported.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _ServicesSupported_H_ diff --git a/asn.1/supl_generated/SessionCapabilities.c b/asn.1/supl_generated/SessionCapabilities.c new file mode 100644 index 00000000..72674d84 --- /dev/null +++ b/asn.1/supl_generated/SessionCapabilities.c @@ -0,0 +1,198 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SessionCapabilities.h" + +static int +memb_maxNumberTotalSessions_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 128L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_maxNumberPeriodicSessions_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 32L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_maxNumberTriggeredSessions_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 1L && value <= 32L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxNumberTotalSessions_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 128 } /* (1..128) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxNumberPeriodicSessions_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (1..32) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maxNumberTriggeredSessions_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (1..32) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SessionCapabilities_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SessionCapabilities, maxNumberTotalSessions), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxNumberTotalSessions_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxNumberTotalSessions_constraint_1 + }, + 0, 0, /* No default value */ + "maxNumberTotalSessions" + }, + { ATF_NOFLAGS, 0, offsetof(struct SessionCapabilities, maxNumberPeriodicSessions), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxNumberPeriodicSessions_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxNumberPeriodicSessions_constraint_1 + }, + 0, 0, /* No default value */ + "maxNumberPeriodicSessions" + }, + { ATF_NOFLAGS, 0, offsetof(struct SessionCapabilities, maxNumberTriggeredSessions), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maxNumberTriggeredSessions_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maxNumberTriggeredSessions_constraint_1 + }, + 0, 0, /* No default value */ + "maxNumberTriggeredSessions" + }, +}; +static const ber_tlv_tag_t asn_DEF_SessionCapabilities_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SessionCapabilities_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxNumberTotalSessions */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxNumberPeriodicSessions */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* maxNumberTriggeredSessions */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SessionCapabilities_specs_1 = { + sizeof(struct SessionCapabilities), + offsetof(struct SessionCapabilities, _asn_ctx), + asn_MAP_SessionCapabilities_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SessionCapabilities = { + "SessionCapabilities", + "SessionCapabilities", + &asn_OP_SEQUENCE, + asn_DEF_SessionCapabilities_tags_1, + sizeof(asn_DEF_SessionCapabilities_tags_1) + /sizeof(asn_DEF_SessionCapabilities_tags_1[0]), /* 1 */ + asn_DEF_SessionCapabilities_tags_1, /* Same as above */ + sizeof(asn_DEF_SessionCapabilities_tags_1) + /sizeof(asn_DEF_SessionCapabilities_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SessionCapabilities_1, + 3, /* Elements count */ + &asn_SPC_SessionCapabilities_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SessionCapabilities.h b/asn.1/supl_generated/SessionCapabilities.h similarity index 78% rename from asn.1/generated/SessionCapabilities.h rename to asn.1/supl_generated/SessionCapabilities.h index c44a77f5..48cece3f 100644 --- a/asn.1/generated/SessionCapabilities.h +++ b/asn.1/supl_generated/SessionCapabilities.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SessionCapabilities_H_ diff --git a/asn.1/supl_generated/SessionID.c b/asn.1/supl_generated/SessionID.c new file mode 100644 index 00000000..64dbe48c --- /dev/null +++ b/asn.1/supl_generated/SessionID.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SessionID.h" + +#include "SetSessionID.h" +#include "SlpSessionID.h" +asn_TYPE_member_t asn_MBR_SessionID_1[] = { + { ATF_POINTER, 2, offsetof(struct SessionID, setSessionID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SetSessionID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "setSessionID" + }, + { ATF_POINTER, 1, offsetof(struct SessionID, slpSessionID), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SlpSessionID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "slpSessionID" + }, +}; +static const int asn_MAP_SessionID_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_SessionID_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SessionID_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* setSessionID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* slpSessionID */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SessionID_specs_1 = { + sizeof(struct SessionID), + offsetof(struct SessionID, _asn_ctx), + asn_MAP_SessionID_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_SessionID_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SessionID = { + "SessionID", + "SessionID", + &asn_OP_SEQUENCE, + asn_DEF_SessionID_tags_1, + sizeof(asn_DEF_SessionID_tags_1) + /sizeof(asn_DEF_SessionID_tags_1[0]), /* 1 */ + asn_DEF_SessionID_tags_1, /* Same as above */ + sizeof(asn_DEF_SessionID_tags_1) + /sizeof(asn_DEF_SessionID_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SessionID_1, + 2, /* Elements count */ + &asn_SPC_SessionID_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/SessionID.h b/asn.1/supl_generated/SessionID.h new file mode 100644 index 00000000..6d0d3b59 --- /dev/null +++ b/asn.1/supl_generated/SessionID.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _SessionID_H_ +#define _SessionID_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SetSessionID; +struct SlpSessionID; + +/* SessionID */ +typedef struct SessionID { + struct SetSessionID *setSessionID; /* OPTIONAL */ + struct SlpSessionID *slpSessionID; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SessionID_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SessionID; +extern asn_SEQUENCE_specifics_t asn_SPC_SessionID_specs_1; +extern asn_TYPE_member_t asn_MBR_SessionID_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SessionID_H_ */ +#include diff --git a/asn.1/supl_generated/SessionInformation.c b/asn.1/supl_generated/SessionInformation.c new file mode 100644 index 00000000..cdc0b2d8 --- /dev/null +++ b/asn.1/supl_generated/SessionInformation.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-REPORT" + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SessionInformation.h" + +asn_TYPE_member_t asn_MBR_SessionInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SessionInformation, sessionID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SessionID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sessionID" + }, +}; +static const ber_tlv_tag_t asn_DEF_SessionInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SessionInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* sessionID */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SessionInformation_specs_1 = { + sizeof(struct SessionInformation), + offsetof(struct SessionInformation, _asn_ctx), + asn_MAP_SessionInformation_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SessionInformation = { + "SessionInformation", + "SessionInformation", + &asn_OP_SEQUENCE, + asn_DEF_SessionInformation_tags_1, + sizeof(asn_DEF_SessionInformation_tags_1) + /sizeof(asn_DEF_SessionInformation_tags_1[0]), /* 1 */ + asn_DEF_SessionInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_SessionInformation_tags_1) + /sizeof(asn_DEF_SessionInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SessionInformation_1, + 1, /* Elements count */ + &asn_SPC_SessionInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SessionInformation.h b/asn.1/supl_generated/SessionInformation.h similarity index 78% rename from asn.1/generated/SessionInformation.h rename to asn.1/supl_generated/SessionInformation.h index 2e95769d..3eabab76 100644 --- a/asn.1/generated/SessionInformation.h +++ b/asn.1/supl_generated/SessionInformation.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SessionInformation_H_ diff --git a/asn.1/supl_generated/SessionList.c b/asn.1/supl_generated/SessionList.c new file mode 100644 index 00000000..8c9366bf --- /dev/null +++ b/asn.1/supl_generated/SessionList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-REPORT" + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SessionList.h" + +#include "SessionInformation.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SessionList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SessionList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SessionInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SessionList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SessionList_specs_1 = { + sizeof(struct SessionList), + offsetof(struct SessionList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SessionList = { + "SessionList", + "SessionList", + &asn_OP_SEQUENCE_OF, + asn_DEF_SessionList_tags_1, + sizeof(asn_DEF_SessionList_tags_1) + /sizeof(asn_DEF_SessionList_tags_1[0]), /* 1 */ + asn_DEF_SessionList_tags_1, /* Same as above */ + sizeof(asn_DEF_SessionList_tags_1) + /sizeof(asn_DEF_SessionList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SessionList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SessionList_1, + 1, /* Single element */ + &asn_SPC_SessionList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SessionList.h b/asn.1/supl_generated/SessionList.h similarity index 78% rename from asn.1/generated/SessionList.h rename to asn.1/supl_generated/SessionList.h index bda86ecf..5c7334fb 100644 --- a/asn.1/generated/SessionList.h +++ b/asn.1/supl_generated/SessionList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SessionList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_SessionList_constr_1; } #endif -/* Referred external types */ -#include "SessionInformation.h" - #endif /* _SessionList_H_ */ #include diff --git a/asn.1/supl_generated/SetSessionID.c b/asn.1/supl_generated/SetSessionID.c new file mode 100644 index 00000000..29776189 --- /dev/null +++ b/asn.1/supl_generated/SetSessionID.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SetSessionID.h" + +static int +memb_sessionId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sessionId_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SetSessionID_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SetSessionID, sessionId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sessionId_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sessionId_constraint_1 + }, + 0, 0, /* No default value */ + "sessionId" + }, + { ATF_NOFLAGS, 0, offsetof(struct SetSessionID, setId), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_SETId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "setId" + }, +}; +static const ber_tlv_tag_t asn_DEF_SetSessionID_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SetSessionID_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sessionId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* setId */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SetSessionID_specs_1 = { + sizeof(struct SetSessionID), + offsetof(struct SetSessionID, _asn_ctx), + asn_MAP_SetSessionID_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SetSessionID = { + "SetSessionID", + "SetSessionID", + &asn_OP_SEQUENCE, + asn_DEF_SetSessionID_tags_1, + sizeof(asn_DEF_SetSessionID_tags_1) + /sizeof(asn_DEF_SetSessionID_tags_1[0]), /* 1 */ + asn_DEF_SetSessionID_tags_1, /* Same as above */ + sizeof(asn_DEF_SetSessionID_tags_1) + /sizeof(asn_DEF_SetSessionID_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SetSessionID_1, + 2, /* Elements count */ + &asn_SPC_SetSessionID_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SetSessionID.h b/asn.1/supl_generated/SetSessionID.h similarity index 76% rename from asn.1/generated/SetSessionID.h rename to asn.1/supl_generated/SetSessionID.h index d680eb62..c58d672f 100644 --- a/asn.1/generated/SetSessionID.h +++ b/asn.1/supl_generated/SetSessionID.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SetSessionID_H_ diff --git a/asn.1/supl_generated/SlpSessionID.c b/asn.1/supl_generated/SlpSessionID.c new file mode 100644 index 00000000..62ca4b5b --- /dev/null +++ b/asn.1/supl_generated/SlpSessionID.c @@ -0,0 +1,117 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SlpSessionID.h" + +static int +memb_sessionID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size == 4UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sessionID_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 4, 4 } /* (SIZE(4..4)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_SlpSessionID_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SlpSessionID, sessionID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OCTET_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sessionID_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sessionID_constraint_1 + }, + 0, 0, /* No default value */ + "sessionID" + }, + { ATF_NOFLAGS, 0, offsetof(struct SlpSessionID, slpId), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_SLPAddress, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "slpId" + }, +}; +static const ber_tlv_tag_t asn_DEF_SlpSessionID_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SlpSessionID_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sessionID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* slpId */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SlpSessionID_specs_1 = { + sizeof(struct SlpSessionID), + offsetof(struct SlpSessionID, _asn_ctx), + asn_MAP_SlpSessionID_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SlpSessionID = { + "SlpSessionID", + "SlpSessionID", + &asn_OP_SEQUENCE, + asn_DEF_SlpSessionID_tags_1, + sizeof(asn_DEF_SlpSessionID_tags_1) + /sizeof(asn_DEF_SlpSessionID_tags_1[0]), /* 1 */ + asn_DEF_SlpSessionID_tags_1, /* Same as above */ + sizeof(asn_DEF_SlpSessionID_tags_1) + /sizeof(asn_DEF_SlpSessionID_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SlpSessionID_1, + 2, /* Elements count */ + &asn_SPC_SlpSessionID_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SlpSessionID.h b/asn.1/supl_generated/SlpSessionID.h similarity index 76% rename from asn.1/generated/SlpSessionID.h rename to asn.1/supl_generated/SlpSessionID.h index 5ae0ef22..36ff3cda 100644 --- a/asn.1/generated/SlpSessionID.h +++ b/asn.1/supl_generated/SlpSessionID.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SlpSessionID_H_ diff --git a/asn.1/supl_generated/Status.c b/asn.1/supl_generated/Status.c new file mode 100644 index 00000000..e7b8dc14 --- /dev/null +++ b/asn.1/supl_generated/Status.c @@ -0,0 +1,67 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Status.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Status_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_Status_value2enum_1[] = { + { 0, 5, "stale" }, + { 1, 7, "current" }, + { 2, 7, "unknown" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_Status_enum2value_1[] = { + 1, /* current(1) */ + 0, /* stale(0) */ + 2 /* unknown(2) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_Status_specs_1 = { + asn_MAP_Status_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_Status_enum2value_1, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 4, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_Status_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Status = { + "Status", + "Status", + &asn_OP_NativeEnumerated, + asn_DEF_Status_tags_1, + sizeof(asn_DEF_Status_tags_1) + /sizeof(asn_DEF_Status_tags_1[0]), /* 1 */ + asn_DEF_Status_tags_1, /* Same as above */ + sizeof(asn_DEF_Status_tags_1) + /sizeof(asn_DEF_Status_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Status_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_Status_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Status.h b/asn.1/supl_generated/Status.h similarity index 76% rename from asn.1/generated/Status.h rename to asn.1/supl_generated/Status.h index 8a7e03cd..82074877 100644 --- a/asn.1/generated/Status.h +++ b/asn.1/supl_generated/Status.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _Status_H_ @@ -36,12 +36,10 @@ extern asn_per_constraints_t asn_PER_type_Status_constr_1; extern asn_TYPE_descriptor_t asn_DEF_Status; extern const asn_INTEGER_specifics_t asn_SPC_Status_specs_1; asn_struct_free_f Status_free; -asn_struct_print_f Status_print; asn_constr_check_f Status_constraint; -ber_type_decoder_f Status_decode_ber; -der_type_encoder_f Status_encode_der; xer_type_decoder_f Status_decode_xer; xer_type_encoder_f Status_encode_xer; +jer_type_encoder_f Status_encode_jer; per_type_decoder_f Status_decode_uper; per_type_encoder_f Status_encode_uper; diff --git a/asn.1/generated/StatusCode.c b/asn.1/supl_generated/StatusCode.c similarity index 81% rename from asn.1/generated/StatusCode.c rename to asn.1/supl_generated/StatusCode.c index dc3ae646..67de6033 100644 --- a/asn.1/generated/StatusCode.c +++ b/asn.1/supl_generated/StatusCode.c @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #include "StatusCode.h" @@ -11,11 +11,13 @@ * This type is implemented using NativeEnumerated, * so here we adjust the DEF accordingly. */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) asn_per_constraints_t asn_PER_type_StatusCode_constr_1 CC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 5, 5, 0, 19 } /* (0..19,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ static const asn_INTEGER_enum_map_t asn_MAP_StatusCode_value2enum_1[] = { { 0, 11, "unspecified" }, { 1, 13, "systemFailure" }, @@ -94,7 +96,15 @@ asn_TYPE_descriptor_t asn_DEF_StatusCode = { asn_DEF_StatusCode_tags_1, /* Same as above */ sizeof(asn_DEF_StatusCode_tags_1) /sizeof(asn_DEF_StatusCode_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_StatusCode_constr_1, NativeEnumerated_constraint }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_StatusCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, 0, 0, /* Defined elsewhere */ &asn_SPC_StatusCode_specs_1 /* Additional specs */ }; diff --git a/asn.1/generated/StatusCode.h b/asn.1/supl_generated/StatusCode.h similarity index 86% rename from asn.1/generated/StatusCode.h rename to asn.1/supl_generated/StatusCode.h index 442d4f86..d1fe0c62 100644 --- a/asn.1/generated/StatusCode.h +++ b/asn.1/supl_generated/StatusCode.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _StatusCode_H_ @@ -58,12 +58,10 @@ extern asn_per_constraints_t asn_PER_type_StatusCode_constr_1; extern asn_TYPE_descriptor_t asn_DEF_StatusCode; extern const asn_INTEGER_specifics_t asn_SPC_StatusCode_specs_1; asn_struct_free_f StatusCode_free; -asn_struct_print_f StatusCode_print; asn_constr_check_f StatusCode_constraint; -ber_type_decoder_f StatusCode_decode_ber; -der_type_encoder_f StatusCode_encode_der; xer_type_decoder_f StatusCode_decode_xer; xer_type_encoder_f StatusCode_encode_xer; +jer_type_encoder_f StatusCode_encode_jer; per_type_decoder_f StatusCode_decode_uper; per_type_encoder_f StatusCode_encode_uper; diff --git a/asn.1/supl_generated/Supported3GPP2PosProtocolVersion.c b/asn.1/supl_generated/Supported3GPP2PosProtocolVersion.c new file mode 100644 index 00000000..1c103b90 --- /dev/null +++ b/asn.1/supl_generated/Supported3GPP2PosProtocolVersion.c @@ -0,0 +1,204 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Supported3GPP2PosProtocolVersion.h" + +static int +memb_revisionNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 6UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_pointReleaseNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_internalEditLevel_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_revisionNumber_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_pointReleaseNumber_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_internalEditLevel_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Supported3GPP2PosProtocolVersion_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Supported3GPP2PosProtocolVersion, revisionNumber), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_revisionNumber_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_revisionNumber_constraint_1 + }, + 0, 0, /* No default value */ + "revisionNumber" + }, + { ATF_NOFLAGS, 0, offsetof(struct Supported3GPP2PosProtocolVersion, pointReleaseNumber), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_pointReleaseNumber_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_pointReleaseNumber_constraint_1 + }, + 0, 0, /* No default value */ + "pointReleaseNumber" + }, + { ATF_NOFLAGS, 0, offsetof(struct Supported3GPP2PosProtocolVersion, internalEditLevel), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_internalEditLevel_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_internalEditLevel_constraint_1 + }, + 0, 0, /* No default value */ + "internalEditLevel" + }, +}; +static const ber_tlv_tag_t asn_DEF_Supported3GPP2PosProtocolVersion_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Supported3GPP2PosProtocolVersion_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* revisionNumber */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* pointReleaseNumber */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* internalEditLevel */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Supported3GPP2PosProtocolVersion_specs_1 = { + sizeof(struct Supported3GPP2PosProtocolVersion), + offsetof(struct Supported3GPP2PosProtocolVersion, _asn_ctx), + asn_MAP_Supported3GPP2PosProtocolVersion_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Supported3GPP2PosProtocolVersion = { + "Supported3GPP2PosProtocolVersion", + "Supported3GPP2PosProtocolVersion", + &asn_OP_SEQUENCE, + asn_DEF_Supported3GPP2PosProtocolVersion_tags_1, + sizeof(asn_DEF_Supported3GPP2PosProtocolVersion_tags_1) + /sizeof(asn_DEF_Supported3GPP2PosProtocolVersion_tags_1[0]), /* 1 */ + asn_DEF_Supported3GPP2PosProtocolVersion_tags_1, /* Same as above */ + sizeof(asn_DEF_Supported3GPP2PosProtocolVersion_tags_1) + /sizeof(asn_DEF_Supported3GPP2PosProtocolVersion_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Supported3GPP2PosProtocolVersion_1, + 3, /* Elements count */ + &asn_SPC_Supported3GPP2PosProtocolVersion_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Supported3GPP2PosProtocolVersion.h b/asn.1/supl_generated/Supported3GPP2PosProtocolVersion.h similarity index 80% rename from asn.1/generated/Supported3GPP2PosProtocolVersion.h rename to asn.1/supl_generated/Supported3GPP2PosProtocolVersion.h index 96bb856b..bc7d5dbb 100644 --- a/asn.1/generated/Supported3GPP2PosProtocolVersion.h +++ b/asn.1/supl_generated/Supported3GPP2PosProtocolVersion.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _Supported3GPP2PosProtocolVersion_H_ diff --git a/asn.1/supl_generated/SupportedBearers.c b/asn.1/supl_generated/SupportedBearers.c new file mode 100644 index 00000000..c0c55311 --- /dev/null +++ b/asn.1/supl_generated/SupportedBearers.c @@ -0,0 +1,192 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SupportedBearers.h" + +asn_TYPE_member_t asn_MBR_SupportedBearers_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SupportedBearers, gsm), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gsm" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedBearers, wcdma), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wcdma" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedBearers, lte), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lte" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedBearers, cdma), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cdma" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedBearers, hprd), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "hprd" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedBearers, umb), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "umb" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedBearers, wlan), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wlan" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedBearers, wiMAX), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wiMAX" + }, +}; +static const ber_tlv_tag_t asn_DEF_SupportedBearers_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SupportedBearers_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gsm */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* wcdma */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* lte */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* cdma */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* hprd */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* umb */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* wlan */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* wiMAX */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SupportedBearers_specs_1 = { + sizeof(struct SupportedBearers), + offsetof(struct SupportedBearers, _asn_ctx), + asn_MAP_SupportedBearers_tag2el_1, + 8, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 8, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SupportedBearers = { + "SupportedBearers", + "SupportedBearers", + &asn_OP_SEQUENCE, + asn_DEF_SupportedBearers_tags_1, + sizeof(asn_DEF_SupportedBearers_tags_1) + /sizeof(asn_DEF_SupportedBearers_tags_1[0]), /* 1 */ + asn_DEF_SupportedBearers_tags_1, /* Same as above */ + sizeof(asn_DEF_SupportedBearers_tags_1) + /sizeof(asn_DEF_SupportedBearers_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SupportedBearers_1, + 8, /* Elements count */ + &asn_SPC_SupportedBearers_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SupportedBearers.h b/asn.1/supl_generated/SupportedBearers.h similarity index 79% rename from asn.1/generated/SupportedBearers.h rename to asn.1/supl_generated/SupportedBearers.h index 9db73b30..4376b33d 100644 --- a/asn.1/generated/SupportedBearers.h +++ b/asn.1/supl_generated/SupportedBearers.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SupportedBearers_H_ diff --git a/asn.1/supl_generated/SupportedNetworkInformation.c b/asn.1/supl_generated/SupportedNetworkInformation.c new file mode 100644 index 00000000..58192741 --- /dev/null +++ b/asn.1/supl_generated/SupportedNetworkInformation.c @@ -0,0 +1,323 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SupportedNetworkInformation.h" + +#include "SupportedWLANInfo.h" +#include "SupportedWLANApsList.h" +#include "SupportedWCDMAInfo.h" +asn_TYPE_member_t asn_MBR_SupportedNetworkInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, wLAN), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wLAN" + }, + { ATF_POINTER, 2, offsetof(struct SupportedNetworkInformation, supportedWLANInfo), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SupportedWLANInfo, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportedWLANInfo" + }, + { ATF_POINTER, 1, offsetof(struct SupportedNetworkInformation, supportedWLANApsList), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SupportedWLANApsList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportedWLANApsList" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, gSM), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gSM" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, wCDMA), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wCDMA" + }, + { ATF_POINTER, 1, offsetof(struct SupportedNetworkInformation, supportedWCDMAInfo), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SupportedWCDMAInfo, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportedWCDMAInfo" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, cDMA), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cDMA" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, hRDP), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "hRDP" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, uMB), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "uMB" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, lTE), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lTE" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, wIMAX), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wIMAX" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, historic), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "historic" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, nonServing), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "nonServing" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, uTRANGPSReferenceTime), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "uTRANGPSReferenceTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedNetworkInformation, uTRANGANSSReferenceTime), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "uTRANGANSSReferenceTime" + }, +}; +static const int asn_MAP_SupportedNetworkInformation_oms_1[] = { 1, 2, 5 }; +static const ber_tlv_tag_t asn_DEF_SupportedNetworkInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SupportedNetworkInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wLAN */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* supportedWLANInfo */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* supportedWLANApsList */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gSM */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* wCDMA */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* supportedWCDMAInfo */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* cDMA */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* hRDP */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* uMB */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* lTE */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* wIMAX */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* historic */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* nonServing */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* uTRANGPSReferenceTime */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 } /* uTRANGANSSReferenceTime */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SupportedNetworkInformation_specs_1 = { + sizeof(struct SupportedNetworkInformation), + offsetof(struct SupportedNetworkInformation, _asn_ctx), + asn_MAP_SupportedNetworkInformation_tag2el_1, + 15, /* Count of tags in the map */ + asn_MAP_SupportedNetworkInformation_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 15, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SupportedNetworkInformation = { + "SupportedNetworkInformation", + "SupportedNetworkInformation", + &asn_OP_SEQUENCE, + asn_DEF_SupportedNetworkInformation_tags_1, + sizeof(asn_DEF_SupportedNetworkInformation_tags_1) + /sizeof(asn_DEF_SupportedNetworkInformation_tags_1[0]), /* 1 */ + asn_DEF_SupportedNetworkInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_SupportedNetworkInformation_tags_1) + /sizeof(asn_DEF_SupportedNetworkInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SupportedNetworkInformation_1, + 15, /* Elements count */ + &asn_SPC_SupportedNetworkInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/SupportedNetworkInformation.h b/asn.1/supl_generated/SupportedNetworkInformation.h new file mode 100644 index 00000000..112bc065 --- /dev/null +++ b/asn.1/supl_generated/SupportedNetworkInformation.h @@ -0,0 +1,63 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _SupportedNetworkInformation_H_ +#define _SupportedNetworkInformation_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SupportedWLANInfo; +struct SupportedWLANApsList; +struct SupportedWCDMAInfo; + +/* SupportedNetworkInformation */ +typedef struct SupportedNetworkInformation { + BOOLEAN_t wLAN; + struct SupportedWLANInfo *supportedWLANInfo; /* OPTIONAL */ + struct SupportedWLANApsList *supportedWLANApsList; /* OPTIONAL */ + BOOLEAN_t gSM; + BOOLEAN_t wCDMA; + struct SupportedWCDMAInfo *supportedWCDMAInfo; /* OPTIONAL */ + BOOLEAN_t cDMA; + BOOLEAN_t hRDP; + BOOLEAN_t uMB; + BOOLEAN_t lTE; + BOOLEAN_t wIMAX; + BOOLEAN_t historic; + BOOLEAN_t nonServing; + BOOLEAN_t uTRANGPSReferenceTime; + BOOLEAN_t uTRANGANSSReferenceTime; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SupportedNetworkInformation_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SupportedNetworkInformation; +extern asn_SEQUENCE_specifics_t asn_SPC_SupportedNetworkInformation_specs_1; +extern asn_TYPE_member_t asn_MBR_SupportedNetworkInformation_1[15]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SupportedNetworkInformation_H_ */ +#include diff --git a/asn.1/supl_generated/SupportedWCDMAInfo.c b/asn.1/supl_generated/SupportedWCDMAInfo.c new file mode 100644 index 00000000..cdc843ae --- /dev/null +++ b/asn.1/supl_generated/SupportedWCDMAInfo.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SupportedWCDMAInfo.h" + +asn_TYPE_member_t asn_MBR_SupportedWCDMAInfo_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SupportedWCDMAInfo, mRL), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mRL" + }, +}; +static const ber_tlv_tag_t asn_DEF_SupportedWCDMAInfo_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SupportedWCDMAInfo_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* mRL */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SupportedWCDMAInfo_specs_1 = { + sizeof(struct SupportedWCDMAInfo), + offsetof(struct SupportedWCDMAInfo, _asn_ctx), + asn_MAP_SupportedWCDMAInfo_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SupportedWCDMAInfo = { + "SupportedWCDMAInfo", + "SupportedWCDMAInfo", + &asn_OP_SEQUENCE, + asn_DEF_SupportedWCDMAInfo_tags_1, + sizeof(asn_DEF_SupportedWCDMAInfo_tags_1) + /sizeof(asn_DEF_SupportedWCDMAInfo_tags_1[0]), /* 1 */ + asn_DEF_SupportedWCDMAInfo_tags_1, /* Same as above */ + sizeof(asn_DEF_SupportedWCDMAInfo_tags_1) + /sizeof(asn_DEF_SupportedWCDMAInfo_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SupportedWCDMAInfo_1, + 1, /* Elements count */ + &asn_SPC_SupportedWCDMAInfo_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SupportedWCDMAInfo.h b/asn.1/supl_generated/SupportedWCDMAInfo.h similarity index 77% rename from asn.1/generated/SupportedWCDMAInfo.h rename to asn.1/supl_generated/SupportedWCDMAInfo.h index 0ec7cfb6..7b2e1ba3 100644 --- a/asn.1/generated/SupportedWCDMAInfo.h +++ b/asn.1/supl_generated/SupportedWCDMAInfo.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SupportedWCDMAInfo_H_ diff --git a/asn.1/supl_generated/SupportedWLANApData.c b/asn.1/supl_generated/SupportedWLANApData.c new file mode 100644 index 00000000..b96be661 --- /dev/null +++ b/asn.1/supl_generated/SupportedWLANApData.c @@ -0,0 +1,182 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SupportedWLANApData.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_apMACAddress_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 48UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_apDevType_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_apMACAddress_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 48, 48 } /* (SIZE(48..48)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_apDevType_value2enum_3[] = { + { 0, 11, "wlan802-11a" }, + { 1, 11, "wlan802-11b" }, + { 2, 11, "wlan802-11g" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_apDevType_enum2value_3[] = { + 0, /* wlan802-11a(0) */ + 1, /* wlan802-11b(1) */ + 2 /* wlan802-11g(2) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_apDevType_specs_3 = { + asn_MAP_apDevType_value2enum_3, /* "tag" => N; sorted by tag */ + asn_MAP_apDevType_enum2value_3, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 4, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_apDevType_tags_3[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_apDevType_3 = { + "apDevType", + "apDevType", + &asn_OP_NativeEnumerated, + asn_DEF_apDevType_tags_3, + sizeof(asn_DEF_apDevType_tags_3) + /sizeof(asn_DEF_apDevType_tags_3[0]) - 1, /* 1 */ + asn_DEF_apDevType_tags_3, /* Same as above */ + sizeof(asn_DEF_apDevType_tags_3) + /sizeof(asn_DEF_apDevType_tags_3[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_apDevType_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_apDevType_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_SupportedWLANApData_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApData, apMACAddress), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_apMACAddress_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_apMACAddress_constraint_1 + }, + 0, 0, /* No default value */ + "apMACAddress" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApData, apDevType), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_apDevType_3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "apDevType" + }, +}; +static const ber_tlv_tag_t asn_DEF_SupportedWLANApData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SupportedWLANApData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* apMACAddress */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* apDevType */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SupportedWLANApData_specs_1 = { + sizeof(struct SupportedWLANApData), + offsetof(struct SupportedWLANApData, _asn_ctx), + asn_MAP_SupportedWLANApData_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SupportedWLANApData = { + "SupportedWLANApData", + "SupportedWLANApData", + &asn_OP_SEQUENCE, + asn_DEF_SupportedWLANApData_tags_1, + sizeof(asn_DEF_SupportedWLANApData_tags_1) + /sizeof(asn_DEF_SupportedWLANApData_tags_1[0]), /* 1 */ + asn_DEF_SupportedWLANApData_tags_1, /* Same as above */ + sizeof(asn_DEF_SupportedWLANApData_tags_1) + /sizeof(asn_DEF_SupportedWLANApData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SupportedWLANApData_1, + 2, /* Elements count */ + &asn_SPC_SupportedWLANApData_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SupportedWLANApData.h b/asn.1/supl_generated/SupportedWLANApData.h similarity index 84% rename from asn.1/generated/SupportedWLANApData.h rename to asn.1/supl_generated/SupportedWLANApData.h index 1e95201c..d0ba8bf8 100644 --- a/asn.1/generated/SupportedWLANApData.h +++ b/asn.1/supl_generated/SupportedWLANApData.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SupportedWLANApData_H_ diff --git a/asn.1/supl_generated/SupportedWLANApsChannel11a.c b/asn.1/supl_generated/SupportedWLANApsChannel11a.c new file mode 100644 index 00000000..ab2a2e8e --- /dev/null +++ b/asn.1/supl_generated/SupportedWLANApsChannel11a.c @@ -0,0 +1,336 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SupportedWLANApsChannel11a.h" + +asn_TYPE_member_t asn_MBR_SupportedWLANApsChannel11a_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch34), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch34" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch36), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch36" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch38), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch38" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch40), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch40" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch42), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch42" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch44), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch44" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch46), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch46" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch48), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch48" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch52), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch52" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch56), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch56" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch60), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch60" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch64), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch64" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch149), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch149" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch153), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch153" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch157), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch157" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11a, ch161), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch161" + }, +}; +static const ber_tlv_tag_t asn_DEF_SupportedWLANApsChannel11a_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SupportedWLANApsChannel11a_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ch34 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ch36 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ch38 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ch40 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ch42 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ch44 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ch46 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ch48 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ch52 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* ch56 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* ch60 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* ch64 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ch149 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* ch153 */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* ch157 */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 } /* ch161 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SupportedWLANApsChannel11a_specs_1 = { + sizeof(struct SupportedWLANApsChannel11a), + offsetof(struct SupportedWLANApsChannel11a, _asn_ctx), + asn_MAP_SupportedWLANApsChannel11a_tag2el_1, + 16, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SupportedWLANApsChannel11a = { + "SupportedWLANApsChannel11a", + "SupportedWLANApsChannel11a", + &asn_OP_SEQUENCE, + asn_DEF_SupportedWLANApsChannel11a_tags_1, + sizeof(asn_DEF_SupportedWLANApsChannel11a_tags_1) + /sizeof(asn_DEF_SupportedWLANApsChannel11a_tags_1[0]), /* 1 */ + asn_DEF_SupportedWLANApsChannel11a_tags_1, /* Same as above */ + sizeof(asn_DEF_SupportedWLANApsChannel11a_tags_1) + /sizeof(asn_DEF_SupportedWLANApsChannel11a_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SupportedWLANApsChannel11a_1, + 16, /* Elements count */ + &asn_SPC_SupportedWLANApsChannel11a_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SupportedWLANApsChannel11a.h b/asn.1/supl_generated/SupportedWLANApsChannel11a.h similarity index 82% rename from asn.1/generated/SupportedWLANApsChannel11a.h rename to asn.1/supl_generated/SupportedWLANApsChannel11a.h index 565752a6..4464bb7f 100644 --- a/asn.1/generated/SupportedWLANApsChannel11a.h +++ b/asn.1/supl_generated/SupportedWLANApsChannel11a.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SupportedWLANApsChannel11a_H_ diff --git a/asn.1/supl_generated/SupportedWLANApsChannel11bg.c b/asn.1/supl_generated/SupportedWLANApsChannel11bg.c new file mode 100644 index 00000000..0fe3f2bb --- /dev/null +++ b/asn.1/supl_generated/SupportedWLANApsChannel11bg.c @@ -0,0 +1,300 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SupportedWLANApsChannel11bg.h" + +asn_TYPE_member_t asn_MBR_SupportedWLANApsChannel11bg_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch1), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch1" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch2), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch2" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch3), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch3" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch4), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch4" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch5), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch5" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch6), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch6" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch7), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch7" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch8), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch8" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch9), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch9" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch10), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch10" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch11), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch11" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch12), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch12" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch13), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch13" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsChannel11bg, ch14), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ch14" + }, +}; +static const ber_tlv_tag_t asn_DEF_SupportedWLANApsChannel11bg_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SupportedWLANApsChannel11bg_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ch1 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ch2 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ch3 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ch4 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ch5 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ch6 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ch7 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ch8 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ch9 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* ch10 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* ch11 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* ch12 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ch13 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 } /* ch14 */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SupportedWLANApsChannel11bg_specs_1 = { + sizeof(struct SupportedWLANApsChannel11bg), + offsetof(struct SupportedWLANApsChannel11bg, _asn_ctx), + asn_MAP_SupportedWLANApsChannel11bg_tag2el_1, + 14, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SupportedWLANApsChannel11bg = { + "SupportedWLANApsChannel11bg", + "SupportedWLANApsChannel11bg", + &asn_OP_SEQUENCE, + asn_DEF_SupportedWLANApsChannel11bg_tags_1, + sizeof(asn_DEF_SupportedWLANApsChannel11bg_tags_1) + /sizeof(asn_DEF_SupportedWLANApsChannel11bg_tags_1[0]), /* 1 */ + asn_DEF_SupportedWLANApsChannel11bg_tags_1, /* Same as above */ + sizeof(asn_DEF_SupportedWLANApsChannel11bg_tags_1) + /sizeof(asn_DEF_SupportedWLANApsChannel11bg_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SupportedWLANApsChannel11bg_1, + 14, /* Elements count */ + &asn_SPC_SupportedWLANApsChannel11bg_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SupportedWLANApsChannel11bg.h b/asn.1/supl_generated/SupportedWLANApsChannel11bg.h similarity index 81% rename from asn.1/generated/SupportedWLANApsChannel11bg.h rename to asn.1/supl_generated/SupportedWLANApsChannel11bg.h index 6db00e1d..d9a87b68 100644 --- a/asn.1/generated/SupportedWLANApsChannel11bg.h +++ b/asn.1/supl_generated/SupportedWLANApsChannel11bg.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SupportedWLANApsChannel11bg_H_ diff --git a/asn.1/supl_generated/SupportedWLANApsList.c b/asn.1/supl_generated/SupportedWLANApsList.c new file mode 100644 index 00000000..74b0df26 --- /dev/null +++ b/asn.1/supl_generated/SupportedWLANApsList.c @@ -0,0 +1,200 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SupportedWLANApsList.h" + +#include "SupportedWLANApsChannel11a.h" +#include "SupportedWLANApsChannel11bg.h" +#include "SupportedWLANApData.h" +static int +memb_supportedWLANApDataList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 128UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_supportedWLANApDataList_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 7, 7, 1, 128 } /* (SIZE(1..128)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_supportedWLANApDataList_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 7, 7, 1, 128 } /* (SIZE(1..128)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_supportedWLANApDataList_2[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SupportedWLANApData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_supportedWLANApDataList_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_supportedWLANApDataList_specs_2 = { + sizeof(struct SupportedWLANApsList__supportedWLANApDataList), + offsetof(struct SupportedWLANApsList__supportedWLANApDataList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_supportedWLANApDataList_2 = { + "supportedWLANApDataList", + "supportedWLANApDataList", + &asn_OP_SEQUENCE_OF, + asn_DEF_supportedWLANApDataList_tags_2, + sizeof(asn_DEF_supportedWLANApDataList_tags_2) + /sizeof(asn_DEF_supportedWLANApDataList_tags_2[0]) - 1, /* 1 */ + asn_DEF_supportedWLANApDataList_tags_2, /* Same as above */ + sizeof(asn_DEF_supportedWLANApDataList_tags_2) + /sizeof(asn_DEF_supportedWLANApDataList_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_supportedWLANApDataList_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_supportedWLANApDataList_2, + 1, /* Single element */ + &asn_SPC_supportedWLANApDataList_specs_2 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_SupportedWLANApsList_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANApsList, supportedWLANApDataList), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_supportedWLANApDataList_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_supportedWLANApDataList_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_supportedWLANApDataList_constraint_1 + }, + 0, 0, /* No default value */ + "supportedWLANApDataList" + }, + { ATF_POINTER, 2, offsetof(struct SupportedWLANApsList, supportedWLANapsChannel11a), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SupportedWLANApsChannel11a, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportedWLANapsChannel11a" + }, + { ATF_POINTER, 1, offsetof(struct SupportedWLANApsList, supportedWLANapsChannel11bg), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SupportedWLANApsChannel11bg, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportedWLANapsChannel11bg" + }, +}; +static const int asn_MAP_SupportedWLANApsList_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_SupportedWLANApsList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SupportedWLANApsList_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* supportedWLANApDataList */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* supportedWLANapsChannel11a */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* supportedWLANapsChannel11bg */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SupportedWLANApsList_specs_1 = { + sizeof(struct SupportedWLANApsList), + offsetof(struct SupportedWLANApsList, _asn_ctx), + asn_MAP_SupportedWLANApsList_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_SupportedWLANApsList_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SupportedWLANApsList = { + "SupportedWLANApsList", + "SupportedWLANApsList", + &asn_OP_SEQUENCE, + asn_DEF_SupportedWLANApsList_tags_1, + sizeof(asn_DEF_SupportedWLANApsList_tags_1) + /sizeof(asn_DEF_SupportedWLANApsList_tags_1[0]), /* 1 */ + asn_DEF_SupportedWLANApsList_tags_1, /* Same as above */ + sizeof(asn_DEF_SupportedWLANApsList_tags_1) + /sizeof(asn_DEF_SupportedWLANApsList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SupportedWLANApsList_1, + 3, /* Elements count */ + &asn_SPC_SupportedWLANApsList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SupportedWLANApsList.h b/asn.1/supl_generated/SupportedWLANApsList.h similarity index 75% rename from asn.1/generated/SupportedWLANApsList.h rename to asn.1/supl_generated/SupportedWLANApsList.h index 15ecdc10..a9681882 100644 --- a/asn.1/generated/SupportedWLANApsList.h +++ b/asn.1/supl_generated/SupportedWLANApsList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SupportedWLANApsList_H_ @@ -33,8 +33,8 @@ typedef struct SupportedWLANApsList { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } supportedWLANApDataList; - struct SupportedWLANApsChannel11a *supportedWLANapsChannel11a /* OPTIONAL */; - struct SupportedWLANApsChannel11bg *supportedWLANapsChannel11bg /* OPTIONAL */; + struct SupportedWLANApsChannel11a *supportedWLANapsChannel11a; /* OPTIONAL */ + struct SupportedWLANApsChannel11bg *supportedWLANapsChannel11bg; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -53,10 +53,5 @@ extern asn_TYPE_member_t asn_MBR_SupportedWLANApsList_1[3]; } #endif -/* Referred external types */ -#include "SupportedWLANApsChannel11a.h" -#include "SupportedWLANApsChannel11bg.h" -#include "SupportedWLANApData.h" - #endif /* _SupportedWLANApsList_H_ */ #include diff --git a/asn.1/supl_generated/SupportedWLANInfo.c b/asn.1/supl_generated/SupportedWLANInfo.c new file mode 100644 index 00000000..4806cde1 --- /dev/null +++ b/asn.1/supl_generated/SupportedWLANInfo.c @@ -0,0 +1,264 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "SupportedWLANInfo.h" + +asn_TYPE_member_t asn_MBR_SupportedWLANInfo_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, apTP), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "apTP" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, apAG), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "apAG" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, apSN), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "apSN" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, apDevType), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "apDevType" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, apRSSI), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "apRSSI" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, apChanFreq), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "apChanFreq" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, apRTD), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "apRTD" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, setTP), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "setTP" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, setAG), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "setAG" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, setSN), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "setSN" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, setRSSI), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "setRSSI" + }, + { ATF_NOFLAGS, 0, offsetof(struct SupportedWLANInfo, apRepLoc), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "apRepLoc" + }, +}; +static const ber_tlv_tag_t asn_DEF_SupportedWLANInfo_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SupportedWLANInfo_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* apTP */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* apAG */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* apSN */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* apDevType */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* apRSSI */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* apChanFreq */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* apRTD */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* setTP */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* setAG */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* setSN */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* setRSSI */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* apRepLoc */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SupportedWLANInfo_specs_1 = { + sizeof(struct SupportedWLANInfo), + offsetof(struct SupportedWLANInfo, _asn_ctx), + asn_MAP_SupportedWLANInfo_tag2el_1, + 12, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 12, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SupportedWLANInfo = { + "SupportedWLANInfo", + "SupportedWLANInfo", + &asn_OP_SEQUENCE, + asn_DEF_SupportedWLANInfo_tags_1, + sizeof(asn_DEF_SupportedWLANInfo_tags_1) + /sizeof(asn_DEF_SupportedWLANInfo_tags_1[0]), /* 1 */ + asn_DEF_SupportedWLANInfo_tags_1, /* Same as above */ + sizeof(asn_DEF_SupportedWLANInfo_tags_1) + /sizeof(asn_DEF_SupportedWLANInfo_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SupportedWLANInfo_1, + 12, /* Elements count */ + &asn_SPC_SupportedWLANInfo_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/SupportedWLANInfo.h b/asn.1/supl_generated/SupportedWLANInfo.h similarity index 81% rename from asn.1/generated/SupportedWLANInfo.h rename to asn.1/supl_generated/SupportedWLANInfo.h index ba95e80e..d2a4d91d 100644 --- a/asn.1/generated/SupportedWLANInfo.h +++ b/asn.1/supl_generated/SupportedWLANInfo.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _SupportedWLANInfo_H_ diff --git a/asn.1/supl_generated/TAResolution.c b/asn.1/supl_generated/TAResolution.c new file mode 100644 index 00000000..c61580f1 --- /dev/null +++ b/asn.1/supl_generated/TAResolution.c @@ -0,0 +1,67 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "TAResolution.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TAResolution_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_TAResolution_value2enum_1[] = { + { 0, 9, "res10chip" }, + { 1, 9, "res05chip" }, + { 2, 11, "res0125chip" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_TAResolution_enum2value_1[] = { + 2, /* res0125chip(2) */ + 1, /* res05chip(1) */ + 0 /* res10chip(0) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_TAResolution_specs_1 = { + asn_MAP_TAResolution_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_TAResolution_enum2value_1, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 4, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_TAResolution_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TAResolution = { + "TAResolution", + "TAResolution", + &asn_OP_NativeEnumerated, + asn_DEF_TAResolution_tags_1, + sizeof(asn_DEF_TAResolution_tags_1) + /sizeof(asn_DEF_TAResolution_tags_1[0]), /* 1 */ + asn_DEF_TAResolution_tags_1, /* Same as above */ + sizeof(asn_DEF_TAResolution_tags_1) + /sizeof(asn_DEF_TAResolution_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TAResolution_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_TAResolution_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/TAResolution.h b/asn.1/supl_generated/TAResolution.h similarity index 77% rename from asn.1/generated/TAResolution.h rename to asn.1/supl_generated/TAResolution.h index a7224180..aa60f2d7 100644 --- a/asn.1/generated/TAResolution.h +++ b/asn.1/supl_generated/TAResolution.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _TAResolution_H_ @@ -36,12 +36,10 @@ extern asn_per_constraints_t asn_PER_type_TAResolution_constr_1; extern asn_TYPE_descriptor_t asn_DEF_TAResolution; extern const asn_INTEGER_specifics_t asn_SPC_TAResolution_specs_1; asn_struct_free_f TAResolution_free; -asn_struct_print_f TAResolution_print; asn_constr_check_f TAResolution_constraint; -ber_type_decoder_f TAResolution_decode_ber; -der_type_encoder_f TAResolution_encode_der; xer_type_decoder_f TAResolution_decode_xer; xer_type_encoder_f TAResolution_encode_xer; +jer_type_encoder_f TAResolution_encode_jer; per_type_decoder_f TAResolution_decode_uper; per_type_encoder_f TAResolution_encode_uper; diff --git a/asn.1/supl_generated/TGSN.c b/asn.1/supl_generated/TGSN.c new file mode 100644 index 00000000..e01ec62a --- /dev/null +++ b/asn.1/supl_generated/TGSN.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "TGSN.h" + +int +TGSN_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 14L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TGSN_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 14 } /* (0..14) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_TGSN_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TGSN = { + "TGSN", + "TGSN", + &asn_OP_NativeInteger, + asn_DEF_TGSN_tags_1, + sizeof(asn_DEF_TGSN_tags_1) + /sizeof(asn_DEF_TGSN_tags_1[0]), /* 1 */ + asn_DEF_TGSN_tags_1, /* Same as above */ + sizeof(asn_DEF_TGSN_tags_1) + /sizeof(asn_DEF_TGSN_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TGSN_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + TGSN_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/supl_generated/TGSN.h b/asn.1/supl_generated/TGSN.h new file mode 100644 index 00000000..e432e6e5 --- /dev/null +++ b/asn.1/supl_generated/TGSN.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _TGSN_H_ +#define _TGSN_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* TGSN */ +typedef long TGSN_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_TGSN_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_TGSN; +asn_struct_free_f TGSN_free; +asn_constr_check_f TGSN_constraint; +xer_type_decoder_f TGSN_decode_xer; +xer_type_encoder_f TGSN_encode_xer; +jer_type_encoder_f TGSN_encode_jer; +per_type_decoder_f TGSN_decode_uper; +per_type_encoder_f TGSN_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _TGSN_H_ */ +#include diff --git a/asn.1/supl_generated/ThirdParty.c b/asn.1/supl_generated/ThirdParty.c new file mode 100644 index 00000000..f6fe5e08 --- /dev/null +++ b/asn.1/supl_generated/ThirdParty.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ThirdParty.h" + +#include "ThirdPartyID.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ThirdParty_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_ThirdParty_1[] = { + { ATF_POINTER, 0, 0, + -1 /* Ambiguous tag (CHOICE?) */, + 0, + &asn_DEF_ThirdPartyID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_ThirdParty_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_ThirdParty_specs_1 = { + sizeof(struct ThirdParty), + offsetof(struct ThirdParty, _asn_ctx), + 2, /* XER encoding is XMLValueList */ +}; +asn_TYPE_descriptor_t asn_DEF_ThirdParty = { + "ThirdParty", + "ThirdParty", + &asn_OP_SEQUENCE_OF, + asn_DEF_ThirdParty_tags_1, + sizeof(asn_DEF_ThirdParty_tags_1) + /sizeof(asn_DEF_ThirdParty_tags_1[0]), /* 1 */ + asn_DEF_ThirdParty_tags_1, /* Same as above */ + sizeof(asn_DEF_ThirdParty_tags_1) + /sizeof(asn_DEF_ThirdParty_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ThirdParty_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_ThirdParty_1, + 1, /* Single element */ + &asn_SPC_ThirdParty_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ThirdParty.h b/asn.1/supl_generated/ThirdParty.h similarity index 77% rename from asn.1/generated/ThirdParty.h rename to asn.1/supl_generated/ThirdParty.h index 7172a420..ebbbbd39 100644 --- a/asn.1/generated/ThirdParty.h +++ b/asn.1/supl_generated/ThirdParty.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _ThirdParty_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_ThirdParty_constr_1; } #endif -/* Referred external types */ -#include "ThirdPartyID.h" - #endif /* _ThirdParty_H_ */ #include diff --git a/asn.1/generated/ThirdPartyID.c b/asn.1/supl_generated/ThirdPartyID.c similarity index 76% rename from asn.1/generated/ThirdPartyID.c rename to asn.1/supl_generated/ThirdPartyID.c index ac45bbe6..0ced1922 100644 --- a/asn.1/generated/ThirdPartyID.c +++ b/asn.1/supl_generated/ThirdPartyID.c @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #include "ThirdPartyID.h" @@ -15,7 +15,7 @@ static int check_permitted_alphabet_2(const void *sptr) { for(; ch < end; ch++) { uint8_t cv = *ch; - if(!(cv <= 127)) return -1; + if(!(cv <= 127UL)) return -1; } return 0; } @@ -28,7 +28,7 @@ static int check_permitted_alphabet_4(const void *sptr) { for(; ch < end; ch++) { uint8_t cv = *ch; - if(!(cv <= 127)) return -1; + if(!(cv <= 127UL)) return -1; } return 0; } @@ -144,7 +144,7 @@ memb_logicalName_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, size = st->size; - if((size >= 1 && size <= 1000) + if((size >= 1UL && size <= 1000UL) && !check_permitted_alphabet_2(st)) { /* Constraint check succeeded */ return 0; @@ -171,7 +171,7 @@ memb_msisdn_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, size = st->size; - if((size == 8)) { + if((size == 8UL)) { /* Constraint check succeeded */ return 0; } else { @@ -197,7 +197,7 @@ memb_emailaddr_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, size = st->size; - if((size >= 1 && size <= 1000) + if((size >= 1UL && size <= 1000UL) && !check_permitted_alphabet_4(st)) { /* Constraint check succeeded */ return 0; @@ -224,7 +224,7 @@ memb_sip_uri_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, size = st->size; - if((size >= 1 && size <= 255) + if((size >= 1UL && size <= 255UL) && !check_permitted_alphabet_5(st)) { /* Constraint check succeeded */ return 0; @@ -261,7 +261,7 @@ memb_ims_public_identity_constraint_1(const asn_TYPE_descriptor_t *td, const voi size = st->size; - if((size >= 1 && size <= 255) + if((size >= 1UL && size <= 255UL) && !check_permitted_alphabet_6(st)) { /* Constraint check succeeded */ return 0; @@ -303,7 +303,7 @@ memb_min_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, size = 0; } - if((size == 34)) { + if((size == 34UL)) { /* Constraint check succeeded */ return 0; } else { @@ -329,7 +329,7 @@ memb_mdn_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, size = st->size; - if((size == 8)) { + if((size == 8UL)) { /* Constraint check succeeded */ return 0; } else { @@ -355,7 +355,7 @@ memb_uri_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, size = st->size; - if((size >= 1 && size <= 255) + if((size >= 1UL && size <= 255UL) && !check_permitted_alphabet_9(st)) { /* Constraint check succeeded */ return 0; @@ -377,61 +377,87 @@ static int asn_PER_MAP_uri_9_c2v(unsigned int code) { return -1; return permitted_alphabet_code2value_9[code]; } +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) static asn_per_constraints_t asn_PER_memb_logicalName_constr_2 CC_NOTUSED = { { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, { APC_CONSTRAINED, 10, 10, 1, 1000 } /* (SIZE(1..1000)) */, 0, 0 /* No PER character map necessary */ }; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) static asn_per_constraints_t asn_PER_memb_msisdn_constr_3 CC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, 0, 0 /* No PER value map */ }; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) static asn_per_constraints_t asn_PER_memb_emailaddr_constr_4 CC_NOTUSED = { { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, { APC_CONSTRAINED, 10, 10, 1, 1000 } /* (SIZE(1..1000)) */, 0, 0 /* No PER character map necessary */ }; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) static asn_per_constraints_t asn_PER_memb_sip_uri_constr_5 CC_NOTUSED = { { APC_CONSTRAINED, 7, 7, 35, 126 } /* (35..126) */, { APC_CONSTRAINED, 8, 8, 1, 255 } /* (SIZE(1..255)) */, asn_PER_MAP_sip_uri_5_v2c, /* Value to PER code map */ asn_PER_MAP_sip_uri_5_c2v /* PER code to value map */ }; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) static asn_per_constraints_t asn_PER_memb_ims_public_identity_constr_6 CC_NOTUSED = { { APC_CONSTRAINED, 7, 7, 35, 126 } /* (35..126) */, { APC_CONSTRAINED, 8, 8, 1, 255 } /* (SIZE(1..255)) */, asn_PER_MAP_ims_public_identity_6_v2c, /* Value to PER code map */ asn_PER_MAP_ims_public_identity_6_c2v /* PER code to value map */ }; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) static asn_per_constraints_t asn_PER_memb_min_constr_7 CC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 0, 0, 34, 34 } /* (SIZE(34..34)) */, 0, 0 /* No PER value map */ }; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) static asn_per_constraints_t asn_PER_memb_mdn_constr_8 CC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, 0, 0 /* No PER value map */ }; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) static asn_per_constraints_t asn_PER_memb_uri_constr_9 CC_NOTUSED = { { APC_CONSTRAINED, 7, 7, 35, 126 } /* (35..126) */, { APC_CONSTRAINED, 8, 8, 1, 255 } /* (SIZE(1..255)) */, asn_PER_MAP_uri_9_v2c, /* Value to PER code map */ asn_PER_MAP_uri_9_c2v /* PER code to value map */ }; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) asn_per_constraints_t asn_PER_type_ThirdPartyID_constr_1 CC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 7 } /* (0..7,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ asn_TYPE_member_t asn_MBR_ThirdPartyID_1[] = { { ATF_NOFLAGS, 0, offsetof(struct ThirdPartyID, choice.logicalName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_IA5String, 0, - { 0, &asn_PER_memb_logicalName_constr_2, memb_logicalName_constraint_1 }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_logicalName_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_logicalName_constraint_1 + }, 0, 0, /* No default value */ "logicalName" }, @@ -440,7 +466,15 @@ asn_TYPE_member_t asn_MBR_ThirdPartyID_1[] = { -1, /* IMPLICIT tag at current level */ &asn_DEF_OCTET_STRING, 0, - { 0, &asn_PER_memb_msisdn_constr_3, memb_msisdn_constraint_1 }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_msisdn_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_msisdn_constraint_1 + }, 0, 0, /* No default value */ "msisdn" }, @@ -449,7 +483,15 @@ asn_TYPE_member_t asn_MBR_ThirdPartyID_1[] = { -1, /* IMPLICIT tag at current level */ &asn_DEF_IA5String, 0, - { 0, &asn_PER_memb_emailaddr_constr_4, memb_emailaddr_constraint_1 }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_emailaddr_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_emailaddr_constraint_1 + }, 0, 0, /* No default value */ "emailaddr" }, @@ -458,7 +500,15 @@ asn_TYPE_member_t asn_MBR_ThirdPartyID_1[] = { -1, /* IMPLICIT tag at current level */ &asn_DEF_VisibleString, 0, - { 0, &asn_PER_memb_sip_uri_constr_5, memb_sip_uri_constraint_1 }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sip_uri_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sip_uri_constraint_1 + }, 0, 0, /* No default value */ "sip-uri" }, @@ -467,7 +517,15 @@ asn_TYPE_member_t asn_MBR_ThirdPartyID_1[] = { -1, /* IMPLICIT tag at current level */ &asn_DEF_VisibleString, 0, - { 0, &asn_PER_memb_ims_public_identity_constr_6, memb_ims_public_identity_constraint_1 }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ims_public_identity_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ims_public_identity_constraint_1 + }, 0, 0, /* No default value */ "ims-public-identity" }, @@ -476,7 +534,15 @@ asn_TYPE_member_t asn_MBR_ThirdPartyID_1[] = { -1, /* IMPLICIT tag at current level */ &asn_DEF_BIT_STRING, 0, - { 0, &asn_PER_memb_min_constr_7, memb_min_constraint_1 }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_min_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_min_constraint_1 + }, 0, 0, /* No default value */ "min" }, @@ -485,7 +551,15 @@ asn_TYPE_member_t asn_MBR_ThirdPartyID_1[] = { -1, /* IMPLICIT tag at current level */ &asn_DEF_OCTET_STRING, 0, - { 0, &asn_PER_memb_mdn_constr_8, memb_mdn_constraint_1 }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_mdn_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_mdn_constraint_1 + }, 0, 0, /* No default value */ "mdn" }, @@ -494,7 +568,15 @@ asn_TYPE_member_t asn_MBR_ThirdPartyID_1[] = { -1, /* IMPLICIT tag at current level */ &asn_DEF_VisibleString, 0, - { 0, &asn_PER_memb_uri_constr_9, memb_uri_constraint_1 }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_uri_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_uri_constraint_1 + }, 0, 0, /* No default value */ "uri" }, @@ -527,7 +609,15 @@ asn_TYPE_descriptor_t asn_DEF_ThirdPartyID = { 0, /* No effective tags (count) */ 0, /* No tags (pointer) */ 0, /* No tags (count) */ - { 0, &asn_PER_type_ThirdPartyID_constr_1, CHOICE_constraint }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ThirdPartyID_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, asn_MBR_ThirdPartyID_1, 8, /* Elements count */ &asn_SPC_ThirdPartyID_specs_1 /* Additional specs */ diff --git a/asn.1/generated/ThirdPartyID.h b/asn.1/supl_generated/ThirdPartyID.h similarity index 86% rename from asn.1/generated/ThirdPartyID.h rename to asn.1/supl_generated/ThirdPartyID.h index bac11a77..9197ff20 100644 --- a/asn.1/generated/ThirdPartyID.h +++ b/asn.1/supl_generated/ThirdPartyID.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _ThirdPartyID_H_ diff --git a/asn.1/supl_generated/TimeStamp.c b/asn.1/supl_generated/TimeStamp.c new file mode 100644 index 00000000..b5bbd1ff --- /dev/null +++ b/asn.1/supl_generated/TimeStamp.c @@ -0,0 +1,120 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-REPORT" + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "TimeStamp.h" + +static int +memb_relativeTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 31536000L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_relativeTime_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 25, -1, 0, 31536000 } /* (0..31536000) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TimeStamp_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_TimeStamp_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct TimeStamp, choice.absoluteTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTCTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "absoluteTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct TimeStamp, choice.relativeTime), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_relativeTime_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_relativeTime_constraint_1 + }, + 0, 0, /* No default value */ + "relativeTime" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_TimeStamp_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* absoluteTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* relativeTime */ +}; +asn_CHOICE_specifics_t asn_SPC_TimeStamp_specs_1 = { + sizeof(struct TimeStamp), + offsetof(struct TimeStamp, _asn_ctx), + offsetof(struct TimeStamp, present), + sizeof(((struct TimeStamp *)0)->present), + asn_MAP_TimeStamp_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_TimeStamp = { + "TimeStamp", + "TimeStamp", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TimeStamp_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_TimeStamp_1, + 2, /* Elements count */ + &asn_SPC_TimeStamp_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/TimeStamp.h b/asn.1/supl_generated/TimeStamp.h similarity index 81% rename from asn.1/generated/TimeStamp.h rename to asn.1/supl_generated/TimeStamp.h index 37e143e2..516a845d 100644 --- a/asn.1/generated/TimeStamp.h +++ b/asn.1/supl_generated/TimeStamp.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-REPORT" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _TimeStamp_H_ diff --git a/asn.1/supl_generated/TimeWindow.c b/asn.1/supl_generated/TimeWindow.c new file mode 100644 index 00000000..f9bd367c --- /dev/null +++ b/asn.1/supl_generated/TimeWindow.c @@ -0,0 +1,148 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "TimeWindow.h" + +static int +memb_startTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -525600L && value <= -1L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_stopTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -525599L && value <= 0L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_startTime_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 20, -1, -525600, -1 } /* (-525600..-1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_stopTime_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 20, -1, -525599, 0 } /* (-525599..0) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_TimeWindow_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct TimeWindow, startTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_startTime_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_startTime_constraint_1 + }, + 0, 0, /* No default value */ + "startTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct TimeWindow, stopTime), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_stopTime_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_stopTime_constraint_1 + }, + 0, 0, /* No default value */ + "stopTime" + }, +}; +static const ber_tlv_tag_t asn_DEF_TimeWindow_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TimeWindow_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* startTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* stopTime */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TimeWindow_specs_1 = { + sizeof(struct TimeWindow), + offsetof(struct TimeWindow, _asn_ctx), + asn_MAP_TimeWindow_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TimeWindow = { + "TimeWindow", + "TimeWindow", + &asn_OP_SEQUENCE, + asn_DEF_TimeWindow_tags_1, + sizeof(asn_DEF_TimeWindow_tags_1) + /sizeof(asn_DEF_TimeWindow_tags_1[0]), /* 1 */ + asn_DEF_TimeWindow_tags_1, /* Same as above */ + sizeof(asn_DEF_TimeWindow_tags_1) + /sizeof(asn_DEF_TimeWindow_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TimeWindow_1, + 2, /* Elements count */ + &asn_SPC_TimeWindow_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/TimeWindow.h b/asn.1/supl_generated/TimeWindow.h new file mode 100644 index 00000000..d8417ee3 --- /dev/null +++ b/asn.1/supl_generated/TimeWindow.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _TimeWindow_H_ +#define _TimeWindow_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* TimeWindow */ +typedef struct TimeWindow { + long startTime; + long stopTime; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} TimeWindow_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_TimeWindow; +extern asn_SEQUENCE_specifics_t asn_SPC_TimeWindow_specs_1; +extern asn_TYPE_member_t asn_MBR_TimeWindow_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _TimeWindow_H_ */ +#include diff --git a/asn.1/supl_generated/TimeslotISCP-List.c b/asn.1/supl_generated/TimeslotISCP-List.c new file mode 100644 index 00000000..ab279e28 --- /dev/null +++ b/asn.1/supl_generated/TimeslotISCP-List.c @@ -0,0 +1,67 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "TimeslotISCP-List.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TimeslotISCP_List_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 14 } /* (SIZE(1..14)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_TimeslotISCP_List_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_TimeslotISCP, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_TimeslotISCP_List_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_TimeslotISCP_List_specs_1 = { + sizeof(struct TimeslotISCP_List), + offsetof(struct TimeslotISCP_List, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_TimeslotISCP_List = { + "TimeslotISCP-List", + "TimeslotISCP-List", + &asn_OP_SEQUENCE_OF, + asn_DEF_TimeslotISCP_List_tags_1, + sizeof(asn_DEF_TimeslotISCP_List_tags_1) + /sizeof(asn_DEF_TimeslotISCP_List_tags_1[0]), /* 1 */ + asn_DEF_TimeslotISCP_List_tags_1, /* Same as above */ + sizeof(asn_DEF_TimeslotISCP_List_tags_1) + /sizeof(asn_DEF_TimeslotISCP_List_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TimeslotISCP_List_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_TimeslotISCP_List_1, + 1, /* Single element */ + &asn_SPC_TimeslotISCP_List_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/TimeslotISCP-List.h b/asn.1/supl_generated/TimeslotISCP-List.h similarity index 78% rename from asn.1/generated/TimeslotISCP-List.h rename to asn.1/supl_generated/TimeslotISCP-List.h index a2251cf0..c7df18ae 100644 --- a/asn.1/generated/TimeslotISCP-List.h +++ b/asn.1/supl_generated/TimeslotISCP-List.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _TimeslotISCP_List_H_ diff --git a/asn.1/supl_generated/TimeslotISCP.c b/asn.1/supl_generated/TimeslotISCP.c new file mode 100644 index 00000000..75920ae0 --- /dev/null +++ b/asn.1/supl_generated/TimeslotISCP.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "TimeslotISCP.h" + +int +TimeslotISCP_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TimeslotISCP_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_TimeslotISCP_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TimeslotISCP = { + "TimeslotISCP", + "TimeslotISCP", + &asn_OP_NativeInteger, + asn_DEF_TimeslotISCP_tags_1, + sizeof(asn_DEF_TimeslotISCP_tags_1) + /sizeof(asn_DEF_TimeslotISCP_tags_1[0]), /* 1 */ + asn_DEF_TimeslotISCP_tags_1, /* Same as above */ + sizeof(asn_DEF_TimeslotISCP_tags_1) + /sizeof(asn_DEF_TimeslotISCP_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TimeslotISCP_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + TimeslotISCP_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/supl_generated/TimeslotISCP.h b/asn.1/supl_generated/TimeslotISCP.h new file mode 100644 index 00000000..dec421ec --- /dev/null +++ b/asn.1/supl_generated/TimeslotISCP.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _TimeslotISCP_H_ +#define _TimeslotISCP_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* TimeslotISCP */ +typedef long TimeslotISCP_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_TimeslotISCP_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_TimeslotISCP; +asn_struct_free_f TimeslotISCP_free; +asn_constr_check_f TimeslotISCP_constraint; +xer_type_decoder_f TimeslotISCP_decode_xer; +xer_type_encoder_f TimeslotISCP_encode_xer; +jer_type_encoder_f TimeslotISCP_encode_jer; +per_type_decoder_f TimeslotISCP_decode_uper; +per_type_encoder_f TimeslotISCP_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _TimeslotISCP_H_ */ +#include diff --git a/asn.1/supl_generated/TimingAdvance.c b/asn.1/supl_generated/TimingAdvance.c new file mode 100644 index 00000000..9c3e96c0 --- /dev/null +++ b/asn.1/supl_generated/TimingAdvance.c @@ -0,0 +1,136 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "TimingAdvance.h" + +static int +memb_tA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tA_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, 0, 8191 } /* (0..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_TimingAdvance_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct TimingAdvance, tA), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tA_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tA_constraint_1 + }, + 0, 0, /* No default value */ + "tA" + }, + { ATF_POINTER, 2, offsetof(struct TimingAdvance, tAResolution), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TAResolution, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tAResolution" + }, + { ATF_POINTER, 1, offsetof(struct TimingAdvance, chipRate), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ChipRate, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "chipRate" + }, +}; +static const int asn_MAP_TimingAdvance_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_TimingAdvance_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TimingAdvance_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tA */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tAResolution */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* chipRate */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TimingAdvance_specs_1 = { + sizeof(struct TimingAdvance), + offsetof(struct TimingAdvance, _asn_ctx), + asn_MAP_TimingAdvance_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_TimingAdvance_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TimingAdvance = { + "TimingAdvance", + "TimingAdvance", + &asn_OP_SEQUENCE, + asn_DEF_TimingAdvance_tags_1, + sizeof(asn_DEF_TimingAdvance_tags_1) + /sizeof(asn_DEF_TimingAdvance_tags_1[0]), /* 1 */ + asn_DEF_TimingAdvance_tags_1, /* Same as above */ + sizeof(asn_DEF_TimingAdvance_tags_1) + /sizeof(asn_DEF_TimingAdvance_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TimingAdvance_1, + 3, /* Elements count */ + &asn_SPC_TimingAdvance_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/TimingAdvance.h b/asn.1/supl_generated/TimingAdvance.h new file mode 100644 index 00000000..16c2bf5a --- /dev/null +++ b/asn.1/supl_generated/TimingAdvance.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _TimingAdvance_H_ +#define _TimingAdvance_H_ + + +#include + +/* Including external dependencies */ +#include +#include "TAResolution.h" +#include "ChipRate.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* TimingAdvance */ +typedef struct TimingAdvance { + long tA; + TAResolution_t *tAResolution; /* OPTIONAL */ + ChipRate_t *chipRate; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} TimingAdvance_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_TimingAdvance; +extern asn_SEQUENCE_specifics_t asn_SPC_TimingAdvance_specs_1; +extern asn_TYPE_member_t asn_MBR_TimingAdvance_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _TimingAdvance_H_ */ +#include diff --git a/asn.1/supl_generated/TrackingAreaCode.c b/asn.1/supl_generated/TrackingAreaCode.c new file mode 100644 index 00000000..f651bcea --- /dev/null +++ b/asn.1/supl_generated/TrackingAreaCode.c @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "TrackingAreaCode.h" + +int +TrackingAreaCode_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 16UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using BIT_STRING, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TrackingAreaCode_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_TrackingAreaCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TrackingAreaCode = { + "TrackingAreaCode", + "TrackingAreaCode", + &asn_OP_BIT_STRING, + asn_DEF_TrackingAreaCode_tags_1, + sizeof(asn_DEF_TrackingAreaCode_tags_1) + /sizeof(asn_DEF_TrackingAreaCode_tags_1[0]), /* 1 */ + asn_DEF_TrackingAreaCode_tags_1, /* Same as above */ + sizeof(asn_DEF_TrackingAreaCode_tags_1) + /sizeof(asn_DEF_TrackingAreaCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TrackingAreaCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + TrackingAreaCode_constraint + }, + 0, 0, /* No members */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/TrackingAreaCode.h b/asn.1/supl_generated/TrackingAreaCode.h new file mode 100644 index 00000000..1e1f2cd0 --- /dev/null +++ b/asn.1/supl_generated/TrackingAreaCode.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _TrackingAreaCode_H_ +#define _TrackingAreaCode_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* TrackingAreaCode */ +typedef BIT_STRING_t TrackingAreaCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_TrackingAreaCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_TrackingAreaCode; +asn_struct_free_f TrackingAreaCode_free; +asn_constr_check_f TrackingAreaCode_constraint; +xer_type_decoder_f TrackingAreaCode_decode_xer; +xer_type_encoder_f TrackingAreaCode_encode_xer; +jer_type_encoder_f TrackingAreaCode_encode_jer; +per_type_decoder_f TrackingAreaCode_decode_uper; +per_type_encoder_f TrackingAreaCode_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _TrackingAreaCode_H_ */ +#include diff --git a/asn.1/supl_generated/TriggerParams.c b/asn.1/supl_generated/TriggerParams.c new file mode 100644 index 00000000..bdcadfd7 --- /dev/null +++ b/asn.1/supl_generated/TriggerParams.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "TriggerParams.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TriggerParams_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_TriggerParams_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct TriggerParams, choice.periodicParams), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PeriodicParams, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "periodicParams" + }, + { ATF_NOFLAGS, 0, offsetof(struct TriggerParams, choice.areaEventParams), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AreaEventParams, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "areaEventParams" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_TriggerParams_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* periodicParams */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* areaEventParams */ +}; +asn_CHOICE_specifics_t asn_SPC_TriggerParams_specs_1 = { + sizeof(struct TriggerParams), + offsetof(struct TriggerParams, _asn_ctx), + offsetof(struct TriggerParams, present), + sizeof(((struct TriggerParams *)0)->present), + asn_MAP_TriggerParams_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_TriggerParams = { + "TriggerParams", + "TriggerParams", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TriggerParams_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_TriggerParams_1, + 2, /* Elements count */ + &asn_SPC_TriggerParams_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/TriggerParams.h b/asn.1/supl_generated/TriggerParams.h similarity index 83% rename from asn.1/generated/TriggerParams.h rename to asn.1/supl_generated/TriggerParams.h index 5ba16f1f..aa52d45b 100644 --- a/asn.1/generated/TriggerParams.h +++ b/asn.1/supl_generated/TriggerParams.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _TriggerParams_H_ diff --git a/asn.1/supl_generated/TriggerType.c b/asn.1/supl_generated/TriggerType.c new file mode 100644 index 00000000..633151bf --- /dev/null +++ b/asn.1/supl_generated/TriggerType.c @@ -0,0 +1,65 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "TriggerType.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TriggerType_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_TriggerType_value2enum_1[] = { + { 0, 8, "periodic" }, + { 1, 9, "areaEvent" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_TriggerType_enum2value_1[] = { + 1, /* areaEvent(1) */ + 0 /* periodic(0) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_TriggerType_specs_1 = { + asn_MAP_TriggerType_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_TriggerType_enum2value_1, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ + 3, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_TriggerType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TriggerType = { + "TriggerType", + "TriggerType", + &asn_OP_NativeEnumerated, + asn_DEF_TriggerType_tags_1, + sizeof(asn_DEF_TriggerType_tags_1) + /sizeof(asn_DEF_TriggerType_tags_1[0]), /* 1 */ + asn_DEF_TriggerType_tags_1, /* Same as above */ + sizeof(asn_DEF_TriggerType_tags_1) + /sizeof(asn_DEF_TriggerType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TriggerType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_TriggerType_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/TriggerType.h b/asn.1/supl_generated/TriggerType.h similarity index 77% rename from asn.1/generated/TriggerType.h rename to asn.1/supl_generated/TriggerType.h index 914e5cd1..f8a9840e 100644 --- a/asn.1/generated/TriggerType.h +++ b/asn.1/supl_generated/TriggerType.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _TriggerType_H_ @@ -35,12 +35,10 @@ extern asn_per_constraints_t asn_PER_type_TriggerType_constr_1; extern asn_TYPE_descriptor_t asn_DEF_TriggerType; extern const asn_INTEGER_specifics_t asn_SPC_TriggerType_specs_1; asn_struct_free_f TriggerType_free; -asn_struct_print_f TriggerType_print; asn_constr_check_f TriggerType_constraint; -ber_type_decoder_f TriggerType_decode_ber; -der_type_encoder_f TriggerType_encode_der; xer_type_decoder_f TriggerType_decode_xer; xer_type_encoder_f TriggerType_encode_xer; +jer_type_encoder_f TriggerType_encode_jer; per_type_decoder_f TriggerType_decode_uper; per_type_encoder_f TriggerType_encode_uper; diff --git a/asn.1/supl_generated/UARFCN.c b/asn.1/supl_generated/UARFCN.c new file mode 100644 index 00000000..2fe4f8d0 --- /dev/null +++ b/asn.1/supl_generated/UARFCN.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "UARFCN.h" + +int +UARFCN_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_UARFCN_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_UARFCN_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_UARFCN = { + "UARFCN", + "UARFCN", + &asn_OP_NativeInteger, + asn_DEF_UARFCN_tags_1, + sizeof(asn_DEF_UARFCN_tags_1) + /sizeof(asn_DEF_UARFCN_tags_1[0]), /* 1 */ + asn_DEF_UARFCN_tags_1, /* Same as above */ + sizeof(asn_DEF_UARFCN_tags_1) + /sizeof(asn_DEF_UARFCN_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_UARFCN_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + UARFCN_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/supl_generated/UARFCN.h b/asn.1/supl_generated/UARFCN.h new file mode 100644 index 00000000..02eedf9f --- /dev/null +++ b/asn.1/supl_generated/UARFCN.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _UARFCN_H_ +#define _UARFCN_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* UARFCN */ +typedef long UARFCN_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_UARFCN_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_UARFCN; +asn_struct_free_f UARFCN_free; +asn_constr_check_f UARFCN_constraint; +xer_type_decoder_f UARFCN_decode_xer; +xer_type_encoder_f UARFCN_encode_xer; +jer_type_encoder_f UARFCN_encode_jer; +per_type_decoder_f UARFCN_decode_uper; +per_type_encoder_f UARFCN_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _UARFCN_H_ */ +#include diff --git a/asn.1/supl_generated/ULP-MeasuredResultsList.c b/asn.1/supl_generated/ULP-MeasuredResultsList.c new file mode 100644 index 00000000..1dc76c2c --- /dev/null +++ b/asn.1/supl_generated/ULP-MeasuredResultsList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ULP-MeasuredResultsList.h" + +#include "MeasuredResults.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ULP_MeasuredResultsList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_ULP_MeasuredResultsList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_MeasuredResults, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_ULP_MeasuredResultsList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_ULP_MeasuredResultsList_specs_1 = { + sizeof(struct ULP_MeasuredResultsList), + offsetof(struct ULP_MeasuredResultsList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_ULP_MeasuredResultsList = { + "ULP-MeasuredResultsList", + "ULP-MeasuredResultsList", + &asn_OP_SEQUENCE_OF, + asn_DEF_ULP_MeasuredResultsList_tags_1, + sizeof(asn_DEF_ULP_MeasuredResultsList_tags_1) + /sizeof(asn_DEF_ULP_MeasuredResultsList_tags_1[0]), /* 1 */ + asn_DEF_ULP_MeasuredResultsList_tags_1, /* Same as above */ + sizeof(asn_DEF_ULP_MeasuredResultsList_tags_1) + /sizeof(asn_DEF_ULP_MeasuredResultsList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ULP_MeasuredResultsList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_ULP_MeasuredResultsList_1, + 1, /* Single element */ + &asn_SPC_ULP_MeasuredResultsList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ULP-MeasuredResultsList.h b/asn.1/supl_generated/ULP-MeasuredResultsList.h similarity index 80% rename from asn.1/generated/ULP-MeasuredResultsList.h rename to asn.1/supl_generated/ULP-MeasuredResultsList.h index ce9a8510..471817a4 100644 --- a/asn.1/generated/ULP-MeasuredResultsList.h +++ b/asn.1/supl_generated/ULP-MeasuredResultsList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _ULP_MeasuredResultsList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_ULP_MeasuredResultsList_constr_1; } #endif -/* Referred external types */ -#include "MeasuredResults.h" - #endif /* _ULP_MeasuredResultsList_H_ */ #include diff --git a/asn.1/supl_generated/ULP-PDU.c b/asn.1/supl_generated/ULP-PDU.c new file mode 100644 index 00000000..357fbef2 --- /dev/null +++ b/asn.1/supl_generated/ULP-PDU.c @@ -0,0 +1,152 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP" + * found in "src/ULP.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ULP-PDU.h" + +static int +memb_length_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_length_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_ULP_PDU_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ULP_PDU, length), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_length_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_length_constraint_1 + }, + 0, 0, /* No default value */ + "length" + }, + { ATF_NOFLAGS, 0, offsetof(struct ULP_PDU, version), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Version, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "version" + }, + { ATF_NOFLAGS, 0, offsetof(struct ULP_PDU, sessionID), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SessionID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sessionID" + }, + { ATF_NOFLAGS, 0, offsetof(struct ULP_PDU, message), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_UlpMessage, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "message" + }, +}; +static const ber_tlv_tag_t asn_DEF_ULP_PDU_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ULP_PDU_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* length */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* version */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sessionID */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* message */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ULP_PDU_specs_1 = { + sizeof(struct ULP_PDU), + offsetof(struct ULP_PDU, _asn_ctx), + asn_MAP_ULP_PDU_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ULP_PDU = { + "ULP-PDU", + "ULP-PDU", + &asn_OP_SEQUENCE, + asn_DEF_ULP_PDU_tags_1, + sizeof(asn_DEF_ULP_PDU_tags_1) + /sizeof(asn_DEF_ULP_PDU_tags_1[0]), /* 1 */ + asn_DEF_ULP_PDU_tags_1, /* Same as above */ + sizeof(asn_DEF_ULP_PDU_tags_1) + /sizeof(asn_DEF_ULP_PDU_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ULP_PDU_1, + 4, /* Elements count */ + &asn_SPC_ULP_PDU_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ULP-PDU.h b/asn.1/supl_generated/ULP-PDU.h similarity index 75% rename from asn.1/generated/ULP-PDU.h rename to asn.1/supl_generated/ULP-PDU.h index 62282fa6..7e275c19 100644 --- a/asn.1/generated/ULP-PDU.h +++ b/asn.1/supl_generated/ULP-PDU.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP" - * found in "/home/martin/repos/LPP-Client/asn/ULP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _ULP_PDU_H_ diff --git a/asn.1/supl_generated/ULP-Velocity.c b/asn.1/supl_generated/ULP-Velocity.c new file mode 100644 index 00000000..12698543 --- /dev/null +++ b/asn.1/supl_generated/ULP-Velocity.c @@ -0,0 +1,124 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "ULP-Velocity.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ULP_Velocity_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_ULP_Velocity_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ULP_Velocity, choice.horvel), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Horvel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horvel" + }, + { ATF_NOFLAGS, 0, offsetof(struct ULP_Velocity, choice.horandvervel), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Horandvervel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horandvervel" + }, + { ATF_NOFLAGS, 0, offsetof(struct ULP_Velocity, choice.horveluncert), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Horveluncert, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horveluncert" + }, + { ATF_NOFLAGS, 0, offsetof(struct ULP_Velocity, choice.horandveruncert), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Horandveruncert, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horandveruncert" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_ULP_Velocity_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horvel */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horandvervel */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* horveluncert */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* horandveruncert */ +}; +asn_CHOICE_specifics_t asn_SPC_ULP_Velocity_specs_1 = { + sizeof(struct ULP_Velocity), + offsetof(struct ULP_Velocity, _asn_ctx), + offsetof(struct ULP_Velocity, present), + sizeof(((struct ULP_Velocity *)0)->present), + asn_MAP_ULP_Velocity_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, + 4 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_ULP_Velocity = { + "ULP-Velocity", + "ULP-Velocity", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ULP_Velocity_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_ULP_Velocity_1, + 4, /* Elements count */ + &asn_SPC_ULP_Velocity_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/ULP-Velocity.h b/asn.1/supl_generated/ULP-Velocity.h similarity index 85% rename from asn.1/generated/ULP-Velocity.h rename to asn.1/supl_generated/ULP-Velocity.h index 558f42d3..5ea06207 100644 --- a/asn.1/generated/ULP-Velocity.h +++ b/asn.1/supl_generated/ULP-Velocity.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _ULP_Velocity_H_ diff --git a/asn.1/supl_generated/UMBAreaId.c b/asn.1/supl_generated/UMBAreaId.c new file mode 100644 index 00000000..1b6dc4c8 --- /dev/null +++ b/asn.1/supl_generated/UMBAreaId.c @@ -0,0 +1,206 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "UMBAreaId.h" + +static int +memb_refMCC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refMNC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refSECTORID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 128UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refMCC_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refMNC_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refSECTORID_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_UMBAreaId_1[] = { + { ATF_POINTER, 3, offsetof(struct UMBAreaId, refMCC), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refMCC_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refMCC_constraint_1 + }, + 0, 0, /* No default value */ + "refMCC" + }, + { ATF_POINTER, 2, offsetof(struct UMBAreaId, refMNC), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refMNC_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refMNC_constraint_1 + }, + 0, 0, /* No default value */ + "refMNC" + }, + { ATF_POINTER, 1, offsetof(struct UMBAreaId, refSECTORID), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refSECTORID_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refSECTORID_constraint_1 + }, + 0, 0, /* No default value */ + "refSECTORID" + }, +}; +static const int asn_MAP_UMBAreaId_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_UMBAreaId_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_UMBAreaId_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refMCC */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refMNC */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* refSECTORID */ +}; +asn_SEQUENCE_specifics_t asn_SPC_UMBAreaId_specs_1 = { + sizeof(struct UMBAreaId), + offsetof(struct UMBAreaId, _asn_ctx), + asn_MAP_UMBAreaId_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_UMBAreaId_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_UMBAreaId = { + "UMBAreaId", + "UMBAreaId", + &asn_OP_SEQUENCE, + asn_DEF_UMBAreaId_tags_1, + sizeof(asn_DEF_UMBAreaId_tags_1) + /sizeof(asn_DEF_UMBAreaId_tags_1[0]), /* 1 */ + asn_DEF_UMBAreaId_tags_1, /* Same as above */ + sizeof(asn_DEF_UMBAreaId_tags_1) + /sizeof(asn_DEF_UMBAreaId_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_UMBAreaId_1, + 3, /* Elements count */ + &asn_SPC_UMBAreaId_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/UMBAreaId.h b/asn.1/supl_generated/UMBAreaId.h new file mode 100644 index 00000000..e1895c07 --- /dev/null +++ b/asn.1/supl_generated/UMBAreaId.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _UMBAreaId_H_ +#define _UMBAreaId_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* UMBAreaId */ +typedef struct UMBAreaId { + long *refMCC; /* OPTIONAL */ + long *refMNC; /* OPTIONAL */ + BIT_STRING_t *refSECTORID; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} UMBAreaId_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_UMBAreaId; +extern asn_SEQUENCE_specifics_t asn_SPC_UMBAreaId_specs_1; +extern asn_TYPE_member_t asn_MBR_UMBAreaId_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _UMBAreaId_H_ */ +#include diff --git a/asn.1/supl_generated/UTRA-CarrierRSSI.c b/asn.1/supl_generated/UTRA-CarrierRSSI.c new file mode 100644 index 00000000..61a9ae3e --- /dev/null +++ b/asn.1/supl_generated/UTRA-CarrierRSSI.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "UTRA-CarrierRSSI.h" + +int +UTRA_CarrierRSSI_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_UTRA_CarrierRSSI_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_UTRA_CarrierRSSI_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_UTRA_CarrierRSSI = { + "UTRA-CarrierRSSI", + "UTRA-CarrierRSSI", + &asn_OP_NativeInteger, + asn_DEF_UTRA_CarrierRSSI_tags_1, + sizeof(asn_DEF_UTRA_CarrierRSSI_tags_1) + /sizeof(asn_DEF_UTRA_CarrierRSSI_tags_1[0]), /* 1 */ + asn_DEF_UTRA_CarrierRSSI_tags_1, /* Same as above */ + sizeof(asn_DEF_UTRA_CarrierRSSI_tags_1) + /sizeof(asn_DEF_UTRA_CarrierRSSI_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_UTRA_CarrierRSSI_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + UTRA_CarrierRSSI_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/asn.1/supl_generated/UTRA-CarrierRSSI.h b/asn.1/supl_generated/UTRA-CarrierRSSI.h new file mode 100644 index 00000000..2fbece89 --- /dev/null +++ b/asn.1/supl_generated/UTRA-CarrierRSSI.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _UTRA_CarrierRSSI_H_ +#define _UTRA_CarrierRSSI_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* UTRA-CarrierRSSI */ +typedef long UTRA_CarrierRSSI_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_UTRA_CarrierRSSI_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_UTRA_CarrierRSSI; +asn_struct_free_f UTRA_CarrierRSSI_free; +asn_constr_check_f UTRA_CarrierRSSI_constraint; +xer_type_decoder_f UTRA_CarrierRSSI_decode_xer; +xer_type_encoder_f UTRA_CarrierRSSI_encode_xer; +jer_type_encoder_f UTRA_CarrierRSSI_encode_jer; +per_type_decoder_f UTRA_CarrierRSSI_decode_uper; +per_type_encoder_f UTRA_CarrierRSSI_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _UTRA_CarrierRSSI_H_ */ +#include diff --git a/asn.1/supl_generated/UTRAN-GANSSReferenceTime.c b/asn.1/supl_generated/UTRAN-GANSSReferenceTime.c new file mode 100644 index 00000000..c61640b5 --- /dev/null +++ b/asn.1/supl_generated/UTRAN-GANSSReferenceTime.c @@ -0,0 +1,466 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "UTRAN-GANSSReferenceTime.h" + +static int +memb_ganssTOD_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 86399L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_utran_GANSSTimingOfCell_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 3999999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_sfn_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ganss_TODUncertainty_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_modeSpecificInfo_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ganssTOD_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 0, 86399 } /* (0..86399) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_utran_GANSSTimingOfCell_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, 0, 3999999 } /* (0..3999999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sfn_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ganss_TODUncertainty_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_fdd_5[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo__fdd, referenceIdentity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PrimaryCPICH_Info, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceIdentity" + }, +}; +static const ber_tlv_tag_t asn_DEF_fdd_tags_5[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_fdd_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* referenceIdentity */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_fdd_specs_5 = { + sizeof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo__fdd), + offsetof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo__fdd, _asn_ctx), + asn_MAP_fdd_tag2el_5, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fdd_5 = { + "fdd", + "fdd", + &asn_OP_SEQUENCE, + asn_DEF_fdd_tags_5, + sizeof(asn_DEF_fdd_tags_5) + /sizeof(asn_DEF_fdd_tags_5[0]) - 1, /* 1 */ + asn_DEF_fdd_tags_5, /* Same as above */ + sizeof(asn_DEF_fdd_tags_5) + /sizeof(asn_DEF_fdd_tags_5[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_fdd_5, + 1, /* Elements count */ + &asn_SPC_fdd_specs_5 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_tdd_7[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo__tdd, referenceIdentity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CellParametersID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceIdentity" + }, +}; +static const ber_tlv_tag_t asn_DEF_tdd_tags_7[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_tdd_tag2el_7[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* referenceIdentity */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_tdd_specs_7 = { + sizeof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo__tdd), + offsetof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo__tdd, _asn_ctx), + asn_MAP_tdd_tag2el_7, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_tdd_7 = { + "tdd", + "tdd", + &asn_OP_SEQUENCE, + asn_DEF_tdd_tags_7, + sizeof(asn_DEF_tdd_tags_7) + /sizeof(asn_DEF_tdd_tags_7[0]) - 1, /* 1 */ + asn_DEF_tdd_tags_7, /* Same as above */ + sizeof(asn_DEF_tdd_tags_7) + /sizeof(asn_DEF_tdd_tags_7[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_tdd_7, + 1, /* Elements count */ + &asn_SPC_tdd_specs_7 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_modeSpecificInfo_4[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo, choice.fdd), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_fdd_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fdd" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo, choice.tdd), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_tdd_7, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tdd" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_modeSpecificInfo_tag2el_4[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */ +}; +static asn_CHOICE_specifics_t asn_SPC_modeSpecificInfo_specs_4 = { + sizeof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo), + offsetof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo, _asn_ctx), + offsetof(struct UTRAN_GANSSReferenceTime__modeSpecificInfo, present), + sizeof(((struct UTRAN_GANSSReferenceTime__modeSpecificInfo *)0)->present), + asn_MAP_modeSpecificInfo_tag2el_4, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_modeSpecificInfo_4 = { + "modeSpecificInfo", + "modeSpecificInfo", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_modeSpecificInfo_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_modeSpecificInfo_4, + 2, /* Elements count */ + &asn_SPC_modeSpecificInfo_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_UTRAN_GANSSReferenceTime_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTime, ganssTOD), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ganssTOD_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ganssTOD_constraint_1 + }, + 0, 0, /* No default value */ + "ganssTOD" + }, + { ATF_POINTER, 2, offsetof(struct UTRAN_GANSSReferenceTime, utran_GANSSTimingOfCell), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_utran_GANSSTimingOfCell_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_utran_GANSSTimingOfCell_constraint_1 + }, + 0, 0, /* No default value */ + "utran-GANSSTimingOfCell" + }, + { ATF_POINTER, 1, offsetof(struct UTRAN_GANSSReferenceTime, modeSpecificInfo), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_modeSpecificInfo_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "modeSpecificInfo" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTime, sfn), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sfn_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sfn_constraint_1 + }, + 0, 0, /* No default value */ + "sfn" + }, + { ATF_POINTER, 1, offsetof(struct UTRAN_GANSSReferenceTime, ganss_TODUncertainty), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ganss_TODUncertainty_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ganss_TODUncertainty_constraint_1 + }, + 0, 0, /* No default value */ + "ganss-TODUncertainty" + }, +}; +static const int asn_MAP_UTRAN_GANSSReferenceTime_oms_1[] = { 1, 2, 4 }; +static const ber_tlv_tag_t asn_DEF_UTRAN_GANSSReferenceTime_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_UTRAN_GANSSReferenceTime_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssTOD */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* utran-GANSSTimingOfCell */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* modeSpecificInfo */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* sfn */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ganss-TODUncertainty */ +}; +asn_SEQUENCE_specifics_t asn_SPC_UTRAN_GANSSReferenceTime_specs_1 = { + sizeof(struct UTRAN_GANSSReferenceTime), + offsetof(struct UTRAN_GANSSReferenceTime, _asn_ctx), + asn_MAP_UTRAN_GANSSReferenceTime_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_UTRAN_GANSSReferenceTime_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_UTRAN_GANSSReferenceTime = { + "UTRAN-GANSSReferenceTime", + "UTRAN-GANSSReferenceTime", + &asn_OP_SEQUENCE, + asn_DEF_UTRAN_GANSSReferenceTime_tags_1, + sizeof(asn_DEF_UTRAN_GANSSReferenceTime_tags_1) + /sizeof(asn_DEF_UTRAN_GANSSReferenceTime_tags_1[0]), /* 1 */ + asn_DEF_UTRAN_GANSSReferenceTime_tags_1, /* Same as above */ + sizeof(asn_DEF_UTRAN_GANSSReferenceTime_tags_1) + /sizeof(asn_DEF_UTRAN_GANSSReferenceTime_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_UTRAN_GANSSReferenceTime_1, + 5, /* Elements count */ + &asn_SPC_UTRAN_GANSSReferenceTime_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/UTRAN-GANSSReferenceTime.h b/asn.1/supl_generated/UTRAN-GANSSReferenceTime.h similarity index 85% rename from asn.1/generated/UTRAN-GANSSReferenceTime.h rename to asn.1/supl_generated/UTRAN-GANSSReferenceTime.h index 8bf54e1d..d57304f6 100644 --- a/asn.1/generated/UTRAN-GANSSReferenceTime.h +++ b/asn.1/supl_generated/UTRAN-GANSSReferenceTime.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _UTRAN_GANSSReferenceTime_H_ @@ -32,7 +32,7 @@ typedef enum UTRAN_GANSSReferenceTime__modeSpecificInfo_PR { /* UTRAN-GANSSReferenceTime */ typedef struct UTRAN_GANSSReferenceTime { long ganssTOD; - long *utran_GANSSTimingOfCell /* OPTIONAL */; + long *utran_GANSSTimingOfCell; /* OPTIONAL */ struct UTRAN_GANSSReferenceTime__modeSpecificInfo { UTRAN_GANSSReferenceTime__modeSpecificInfo_PR present; union UTRAN_GANSSReferenceTime__modeSpecificInfo_u { @@ -54,7 +54,7 @@ typedef struct UTRAN_GANSSReferenceTime { asn_struct_ctx_t _asn_ctx; } *modeSpecificInfo; long sfn; - long *ganss_TODUncertainty /* OPTIONAL */; + long *ganss_TODUncertainty; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/supl_generated/UTRAN-GANSSReferenceTimeAssistance.c b/asn.1/supl_generated/UTRAN-GANSSReferenceTimeAssistance.c new file mode 100644 index 00000000..ad646017 --- /dev/null +++ b/asn.1/supl_generated/UTRAN-GANSSReferenceTimeAssistance.c @@ -0,0 +1,186 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "UTRAN-GANSSReferenceTimeAssistance.h" + +static int +memb_ganssDay_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8191L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ganssTimeID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ganssDay_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 13, 13, 0, 8191 } /* (0..8191) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ganssTimeID_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_UTRAN_GANSSReferenceTimeAssistance_1[] = { + { ATF_POINTER, 1, offsetof(struct UTRAN_GANSSReferenceTimeAssistance, ganssDay), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ganssDay_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ganssDay_constraint_1 + }, + 0, 0, /* No default value */ + "ganssDay" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTimeAssistance, ganssTimeID), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ganssTimeID_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ganssTimeID_constraint_1 + }, + 0, 0, /* No default value */ + "ganssTimeID" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTimeAssistance, utran_GANSSReferenceTime), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTRAN_GANSSReferenceTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utran-GANSSReferenceTime" + }, + { ATF_POINTER, 1, offsetof(struct UTRAN_GANSSReferenceTimeAssistance, utranGANSSDriftRate), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTRANGANSSDriftRate, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utranGANSSDriftRate" + }, +}; +static const int asn_MAP_UTRAN_GANSSReferenceTimeAssistance_oms_1[] = { 0, 3 }; +static const ber_tlv_tag_t asn_DEF_UTRAN_GANSSReferenceTimeAssistance_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_UTRAN_GANSSReferenceTimeAssistance_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssDay */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssTimeID */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* utran-GANSSReferenceTime */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* utranGANSSDriftRate */ +}; +asn_SEQUENCE_specifics_t asn_SPC_UTRAN_GANSSReferenceTimeAssistance_specs_1 = { + sizeof(struct UTRAN_GANSSReferenceTimeAssistance), + offsetof(struct UTRAN_GANSSReferenceTimeAssistance, _asn_ctx), + asn_MAP_UTRAN_GANSSReferenceTimeAssistance_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_UTRAN_GANSSReferenceTimeAssistance_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_UTRAN_GANSSReferenceTimeAssistance = { + "UTRAN-GANSSReferenceTimeAssistance", + "UTRAN-GANSSReferenceTimeAssistance", + &asn_OP_SEQUENCE, + asn_DEF_UTRAN_GANSSReferenceTimeAssistance_tags_1, + sizeof(asn_DEF_UTRAN_GANSSReferenceTimeAssistance_tags_1) + /sizeof(asn_DEF_UTRAN_GANSSReferenceTimeAssistance_tags_1[0]), /* 1 */ + asn_DEF_UTRAN_GANSSReferenceTimeAssistance_tags_1, /* Same as above */ + sizeof(asn_DEF_UTRAN_GANSSReferenceTimeAssistance_tags_1) + /sizeof(asn_DEF_UTRAN_GANSSReferenceTimeAssistance_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_UTRAN_GANSSReferenceTimeAssistance_1, + 4, /* Elements count */ + &asn_SPC_UTRAN_GANSSReferenceTimeAssistance_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/UTRAN-GANSSReferenceTimeAssistance.h b/asn.1/supl_generated/UTRAN-GANSSReferenceTimeAssistance.h similarity index 76% rename from asn.1/generated/UTRAN-GANSSReferenceTimeAssistance.h rename to asn.1/supl_generated/UTRAN-GANSSReferenceTimeAssistance.h index ba662f96..e3c990b8 100644 --- a/asn.1/generated/UTRAN-GANSSReferenceTimeAssistance.h +++ b/asn.1/supl_generated/UTRAN-GANSSReferenceTimeAssistance.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _UTRAN_GANSSReferenceTimeAssistance_H_ @@ -23,10 +23,10 @@ extern "C" { /* UTRAN-GANSSReferenceTimeAssistance */ typedef struct UTRAN_GANSSReferenceTimeAssistance { - long *ganssDay /* OPTIONAL */; + long *ganssDay; /* OPTIONAL */ long ganssTimeID; UTRAN_GANSSReferenceTime_t utran_GANSSReferenceTime; - UTRANGANSSDriftRate_t *utranGANSSDriftRate /* OPTIONAL */; + UTRANGANSSDriftRate_t *utranGANSSDriftRate; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/asn.1/supl_generated/UTRAN-GANSSReferenceTimeResult.c b/asn.1/supl_generated/UTRAN-GANSSReferenceTimeResult.c new file mode 100644 index 00000000..fea10b81 --- /dev/null +++ b/asn.1/supl_generated/UTRAN-GANSSReferenceTimeResult.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "UTRAN-GANSSReferenceTimeResult.h" + +static int +memb_ganssTimeID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 15L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ganssTimeID_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_UTRAN_GANSSReferenceTimeResult_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTimeResult, ganssTimeID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ganssTimeID_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ganssTimeID_constraint_1 + }, + 0, 0, /* No default value */ + "ganssTimeID" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GANSSReferenceTimeResult, set_GANSSReferenceTime), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SET_GANSSReferenceTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "set-GANSSReferenceTime" + }, +}; +static const ber_tlv_tag_t asn_DEF_UTRAN_GANSSReferenceTimeResult_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_UTRAN_GANSSReferenceTimeResult_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssTimeID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* set-GANSSReferenceTime */ +}; +asn_SEQUENCE_specifics_t asn_SPC_UTRAN_GANSSReferenceTimeResult_specs_1 = { + sizeof(struct UTRAN_GANSSReferenceTimeResult), + offsetof(struct UTRAN_GANSSReferenceTimeResult, _asn_ctx), + asn_MAP_UTRAN_GANSSReferenceTimeResult_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_UTRAN_GANSSReferenceTimeResult = { + "UTRAN-GANSSReferenceTimeResult", + "UTRAN-GANSSReferenceTimeResult", + &asn_OP_SEQUENCE, + asn_DEF_UTRAN_GANSSReferenceTimeResult_tags_1, + sizeof(asn_DEF_UTRAN_GANSSReferenceTimeResult_tags_1) + /sizeof(asn_DEF_UTRAN_GANSSReferenceTimeResult_tags_1[0]), /* 1 */ + asn_DEF_UTRAN_GANSSReferenceTimeResult_tags_1, /* Same as above */ + sizeof(asn_DEF_UTRAN_GANSSReferenceTimeResult_tags_1) + /sizeof(asn_DEF_UTRAN_GANSSReferenceTimeResult_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_UTRAN_GANSSReferenceTimeResult_1, + 2, /* Elements count */ + &asn_SPC_UTRAN_GANSSReferenceTimeResult_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/UTRAN-GANSSReferenceTimeResult.h b/asn.1/supl_generated/UTRAN-GANSSReferenceTimeResult.h similarity index 81% rename from asn.1/generated/UTRAN-GANSSReferenceTimeResult.h rename to asn.1/supl_generated/UTRAN-GANSSReferenceTimeResult.h index d06c7867..4a9ad6dd 100644 --- a/asn.1/generated/UTRAN-GANSSReferenceTimeResult.h +++ b/asn.1/supl_generated/UTRAN-GANSSReferenceTimeResult.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _UTRAN_GANSSReferenceTimeResult_H_ diff --git a/asn.1/supl_generated/UTRAN-GPSReferenceTime.c b/asn.1/supl_generated/UTRAN-GPSReferenceTime.c new file mode 100644 index 00000000..f72e270a --- /dev/null +++ b/asn.1/supl_generated/UTRAN-GPSReferenceTime.c @@ -0,0 +1,526 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "UTRAN-GPSReferenceTime.h" + +static int +ls_part_4_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +static int +memb_ms_part_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ls_part_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +static int +memb_sfn_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ls_part_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ms_part_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ls_part_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_modeSpecificInfo_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sfn_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_specifics_t asn_SPC_ls_part_specs_4 = { + 0, 0, 0, 0, 0, + 0, /* Native long size */ + 1 /* Unsigned representation */ +}; +static const ber_tlv_tag_t asn_DEF_ls_part_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ls_part_4 = { + "ls-part", + "ls-part", + &asn_OP_NativeInteger, + asn_DEF_ls_part_tags_4, + sizeof(asn_DEF_ls_part_tags_4) + /sizeof(asn_DEF_ls_part_tags_4[0]) - 1, /* 1 */ + asn_DEF_ls_part_tags_4, /* Same as above */ + sizeof(asn_DEF_ls_part_tags_4) + /sizeof(asn_DEF_ls_part_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ls_part_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + ls_part_4_constraint + }, + 0, 0, /* No members */ + &asn_SPC_ls_part_specs_4 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_utran_GPSTimingOfCell_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTime__utran_GPSTimingOfCell, ms_part), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ms_part_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ms_part_constraint_2 + }, + 0, 0, /* No default value */ + "ms-part" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTime__utran_GPSTimingOfCell, ls_part), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ls_part_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ls_part_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ls_part_constraint_2 + }, + 0, 0, /* No default value */ + "ls-part" + }, +}; +static const ber_tlv_tag_t asn_DEF_utran_GPSTimingOfCell_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_utran_GPSTimingOfCell_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ms-part */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ls-part */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_utran_GPSTimingOfCell_specs_2 = { + sizeof(struct UTRAN_GPSReferenceTime__utran_GPSTimingOfCell), + offsetof(struct UTRAN_GPSReferenceTime__utran_GPSTimingOfCell, _asn_ctx), + asn_MAP_utran_GPSTimingOfCell_tag2el_2, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_utran_GPSTimingOfCell_2 = { + "utran-GPSTimingOfCell", + "utran-GPSTimingOfCell", + &asn_OP_SEQUENCE, + asn_DEF_utran_GPSTimingOfCell_tags_2, + sizeof(asn_DEF_utran_GPSTimingOfCell_tags_2) + /sizeof(asn_DEF_utran_GPSTimingOfCell_tags_2[0]) - 1, /* 1 */ + asn_DEF_utran_GPSTimingOfCell_tags_2, /* Same as above */ + sizeof(asn_DEF_utran_GPSTimingOfCell_tags_2) + /sizeof(asn_DEF_utran_GPSTimingOfCell_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_utran_GPSTimingOfCell_2, + 2, /* Elements count */ + &asn_SPC_utran_GPSTimingOfCell_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_fdd_6[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTime__modeSpecificInfo__fdd, referenceIdentity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PrimaryCPICH_Info, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceIdentity" + }, +}; +static const ber_tlv_tag_t asn_DEF_fdd_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_fdd_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* referenceIdentity */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_fdd_specs_6 = { + sizeof(struct UTRAN_GPSReferenceTime__modeSpecificInfo__fdd), + offsetof(struct UTRAN_GPSReferenceTime__modeSpecificInfo__fdd, _asn_ctx), + asn_MAP_fdd_tag2el_6, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fdd_6 = { + "fdd", + "fdd", + &asn_OP_SEQUENCE, + asn_DEF_fdd_tags_6, + sizeof(asn_DEF_fdd_tags_6) + /sizeof(asn_DEF_fdd_tags_6[0]) - 1, /* 1 */ + asn_DEF_fdd_tags_6, /* Same as above */ + sizeof(asn_DEF_fdd_tags_6) + /sizeof(asn_DEF_fdd_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_fdd_6, + 1, /* Elements count */ + &asn_SPC_fdd_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_tdd_8[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTime__modeSpecificInfo__tdd, referenceIdentity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CellParametersID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceIdentity" + }, +}; +static const ber_tlv_tag_t asn_DEF_tdd_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_tdd_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* referenceIdentity */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_tdd_specs_8 = { + sizeof(struct UTRAN_GPSReferenceTime__modeSpecificInfo__tdd), + offsetof(struct UTRAN_GPSReferenceTime__modeSpecificInfo__tdd, _asn_ctx), + asn_MAP_tdd_tag2el_8, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_tdd_8 = { + "tdd", + "tdd", + &asn_OP_SEQUENCE, + asn_DEF_tdd_tags_8, + sizeof(asn_DEF_tdd_tags_8) + /sizeof(asn_DEF_tdd_tags_8[0]) - 1, /* 1 */ + asn_DEF_tdd_tags_8, /* Same as above */ + sizeof(asn_DEF_tdd_tags_8) + /sizeof(asn_DEF_tdd_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_tdd_8, + 1, /* Elements count */ + &asn_SPC_tdd_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_modeSpecificInfo_5[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTime__modeSpecificInfo, choice.fdd), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_fdd_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fdd" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTime__modeSpecificInfo, choice.tdd), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_tdd_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tdd" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_modeSpecificInfo_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */ +}; +static asn_CHOICE_specifics_t asn_SPC_modeSpecificInfo_specs_5 = { + sizeof(struct UTRAN_GPSReferenceTime__modeSpecificInfo), + offsetof(struct UTRAN_GPSReferenceTime__modeSpecificInfo, _asn_ctx), + offsetof(struct UTRAN_GPSReferenceTime__modeSpecificInfo, present), + sizeof(((struct UTRAN_GPSReferenceTime__modeSpecificInfo *)0)->present), + asn_MAP_modeSpecificInfo_tag2el_5, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_modeSpecificInfo_5 = { + "modeSpecificInfo", + "modeSpecificInfo", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_modeSpecificInfo_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_modeSpecificInfo_5, + 2, /* Elements count */ + &asn_SPC_modeSpecificInfo_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_UTRAN_GPSReferenceTime_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTime, utran_GPSTimingOfCell), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_utran_GPSTimingOfCell_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utran-GPSTimingOfCell" + }, + { ATF_POINTER, 1, offsetof(struct UTRAN_GPSReferenceTime, modeSpecificInfo), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_modeSpecificInfo_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "modeSpecificInfo" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTime, sfn), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sfn_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sfn_constraint_1 + }, + 0, 0, /* No default value */ + "sfn" + }, +}; +static const int asn_MAP_UTRAN_GPSReferenceTime_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_UTRAN_GPSReferenceTime_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_UTRAN_GPSReferenceTime_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utran-GPSTimingOfCell */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* modeSpecificInfo */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* sfn */ +}; +asn_SEQUENCE_specifics_t asn_SPC_UTRAN_GPSReferenceTime_specs_1 = { + sizeof(struct UTRAN_GPSReferenceTime), + offsetof(struct UTRAN_GPSReferenceTime, _asn_ctx), + asn_MAP_UTRAN_GPSReferenceTime_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_UTRAN_GPSReferenceTime_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_UTRAN_GPSReferenceTime = { + "UTRAN-GPSReferenceTime", + "UTRAN-GPSReferenceTime", + &asn_OP_SEQUENCE, + asn_DEF_UTRAN_GPSReferenceTime_tags_1, + sizeof(asn_DEF_UTRAN_GPSReferenceTime_tags_1) + /sizeof(asn_DEF_UTRAN_GPSReferenceTime_tags_1[0]), /* 1 */ + asn_DEF_UTRAN_GPSReferenceTime_tags_1, /* Same as above */ + sizeof(asn_DEF_UTRAN_GPSReferenceTime_tags_1) + /sizeof(asn_DEF_UTRAN_GPSReferenceTime_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_UTRAN_GPSReferenceTime_1, + 3, /* Elements count */ + &asn_SPC_UTRAN_GPSReferenceTime_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/UTRAN-GPSReferenceTime.h b/asn.1/supl_generated/UTRAN-GPSReferenceTime.h similarity index 89% rename from asn.1/generated/UTRAN-GPSReferenceTime.h rename to asn.1/supl_generated/UTRAN-GPSReferenceTime.h index d173b0fc..14822a87 100644 --- a/asn.1/generated/UTRAN-GPSReferenceTime.h +++ b/asn.1/supl_generated/UTRAN-GPSReferenceTime.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _UTRAN_GPSReferenceTime_H_ diff --git a/asn.1/supl_generated/UTRAN-GPSReferenceTimeAssistance.c b/asn.1/supl_generated/UTRAN-GPSReferenceTimeAssistance.c new file mode 100644 index 00000000..55734cf7 --- /dev/null +++ b/asn.1/supl_generated/UTRAN-GPSReferenceTimeAssistance.c @@ -0,0 +1,136 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "UTRAN-GPSReferenceTimeAssistance.h" + +static int +memb_gpsReferenceTimeUncertainty_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gpsReferenceTimeUncertainty_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_UTRAN_GPSReferenceTimeAssistance_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTimeAssistance, utran_GPSReferenceTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTRAN_GPSReferenceTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utran-GPSReferenceTime" + }, + { ATF_POINTER, 2, offsetof(struct UTRAN_GPSReferenceTimeAssistance, gpsReferenceTimeUncertainty), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gpsReferenceTimeUncertainty_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gpsReferenceTimeUncertainty_constraint_1 + }, + 0, 0, /* No default value */ + "gpsReferenceTimeUncertainty" + }, + { ATF_POINTER, 1, offsetof(struct UTRAN_GPSReferenceTimeAssistance, utranGPSDriftRate), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTRANGPSDriftRate, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utranGPSDriftRate" + }, +}; +static const int asn_MAP_UTRAN_GPSReferenceTimeAssistance_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_UTRAN_GPSReferenceTimeAssistance_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_UTRAN_GPSReferenceTimeAssistance_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utran-GPSReferenceTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gpsReferenceTimeUncertainty */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* utranGPSDriftRate */ +}; +asn_SEQUENCE_specifics_t asn_SPC_UTRAN_GPSReferenceTimeAssistance_specs_1 = { + sizeof(struct UTRAN_GPSReferenceTimeAssistance), + offsetof(struct UTRAN_GPSReferenceTimeAssistance, _asn_ctx), + asn_MAP_UTRAN_GPSReferenceTimeAssistance_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_UTRAN_GPSReferenceTimeAssistance_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_UTRAN_GPSReferenceTimeAssistance = { + "UTRAN-GPSReferenceTimeAssistance", + "UTRAN-GPSReferenceTimeAssistance", + &asn_OP_SEQUENCE, + asn_DEF_UTRAN_GPSReferenceTimeAssistance_tags_1, + sizeof(asn_DEF_UTRAN_GPSReferenceTimeAssistance_tags_1) + /sizeof(asn_DEF_UTRAN_GPSReferenceTimeAssistance_tags_1[0]), /* 1 */ + asn_DEF_UTRAN_GPSReferenceTimeAssistance_tags_1, /* Same as above */ + sizeof(asn_DEF_UTRAN_GPSReferenceTimeAssistance_tags_1) + /sizeof(asn_DEF_UTRAN_GPSReferenceTimeAssistance_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_UTRAN_GPSReferenceTimeAssistance_1, + 3, /* Elements count */ + &asn_SPC_UTRAN_GPSReferenceTimeAssistance_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/UTRAN-GPSReferenceTimeAssistance.h b/asn.1/supl_generated/UTRAN-GPSReferenceTimeAssistance.h new file mode 100644 index 00000000..0c011ddf --- /dev/null +++ b/asn.1/supl_generated/UTRAN-GPSReferenceTimeAssistance.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _UTRAN_GPSReferenceTimeAssistance_H_ +#define _UTRAN_GPSReferenceTimeAssistance_H_ + + +#include + +/* Including external dependencies */ +#include "UTRAN-GPSReferenceTime.h" +#include +#include "UTRANGPSDriftRate.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* UTRAN-GPSReferenceTimeAssistance */ +typedef struct UTRAN_GPSReferenceTimeAssistance { + UTRAN_GPSReferenceTime_t utran_GPSReferenceTime; + long *gpsReferenceTimeUncertainty; /* OPTIONAL */ + UTRANGPSDriftRate_t *utranGPSDriftRate; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} UTRAN_GPSReferenceTimeAssistance_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_UTRAN_GPSReferenceTimeAssistance; +extern asn_SEQUENCE_specifics_t asn_SPC_UTRAN_GPSReferenceTimeAssistance_specs_1; +extern asn_TYPE_member_t asn_MBR_UTRAN_GPSReferenceTimeAssistance_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _UTRAN_GPSReferenceTimeAssistance_H_ */ +#include diff --git a/asn.1/supl_generated/UTRAN-GPSReferenceTimeResult.c b/asn.1/supl_generated/UTRAN-GPSReferenceTimeResult.c new file mode 100644 index 00000000..ab44bfa6 --- /dev/null +++ b/asn.1/supl_generated/UTRAN-GPSReferenceTimeResult.c @@ -0,0 +1,576 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "UTRAN-GPSReferenceTimeResult.h" + +static int +ls_part_4_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +static int +memb_ms_part_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 16383L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_ls_part_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + + /* Constraint check succeeded */ + return 0; +} + +static int +memb_sfn_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4095L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_gpsReferenceTimeUncertainty_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ls_part_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ms_part_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_ls_part_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_modeSpecificInfo_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_sfn_constr_10 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_gpsReferenceTimeUncertainty_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_specifics_t asn_SPC_ls_part_specs_4 = { + 0, 0, 0, 0, 0, + 0, /* Native long size */ + 1 /* Unsigned representation */ +}; +static const ber_tlv_tag_t asn_DEF_ls_part_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_ls_part_4 = { + "ls-part", + "ls-part", + &asn_OP_NativeInteger, + asn_DEF_ls_part_tags_4, + sizeof(asn_DEF_ls_part_tags_4) + /sizeof(asn_DEF_ls_part_tags_4[0]) - 1, /* 1 */ + asn_DEF_ls_part_tags_4, /* Same as above */ + sizeof(asn_DEF_ls_part_tags_4) + /sizeof(asn_DEF_ls_part_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ls_part_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + ls_part_4_constraint + }, + 0, 0, /* No members */ + &asn_SPC_ls_part_specs_4 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_set_GPSTimingOfCell_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTimeResult__set_GPSTimingOfCell, ms_part), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ms_part_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ms_part_constraint_2 + }, + 0, 0, /* No default value */ + "ms-part" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTimeResult__set_GPSTimingOfCell, ls_part), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ls_part_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_ls_part_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_ls_part_constraint_2 + }, + 0, 0, /* No default value */ + "ls-part" + }, +}; +static const ber_tlv_tag_t asn_DEF_set_GPSTimingOfCell_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_set_GPSTimingOfCell_tag2el_2[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ms-part */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ls-part */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_set_GPSTimingOfCell_specs_2 = { + sizeof(struct UTRAN_GPSReferenceTimeResult__set_GPSTimingOfCell), + offsetof(struct UTRAN_GPSReferenceTimeResult__set_GPSTimingOfCell, _asn_ctx), + asn_MAP_set_GPSTimingOfCell_tag2el_2, + 2, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_set_GPSTimingOfCell_2 = { + "set-GPSTimingOfCell", + "set-GPSTimingOfCell", + &asn_OP_SEQUENCE, + asn_DEF_set_GPSTimingOfCell_tags_2, + sizeof(asn_DEF_set_GPSTimingOfCell_tags_2) + /sizeof(asn_DEF_set_GPSTimingOfCell_tags_2[0]) - 1, /* 1 */ + asn_DEF_set_GPSTimingOfCell_tags_2, /* Same as above */ + sizeof(asn_DEF_set_GPSTimingOfCell_tags_2) + /sizeof(asn_DEF_set_GPSTimingOfCell_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_set_GPSTimingOfCell_2, + 2, /* Elements count */ + &asn_SPC_set_GPSTimingOfCell_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_fdd_6[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo__fdd, referenceIdentity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PrimaryCPICH_Info, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceIdentity" + }, +}; +static const ber_tlv_tag_t asn_DEF_fdd_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_fdd_tag2el_6[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* referenceIdentity */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_fdd_specs_6 = { + sizeof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo__fdd), + offsetof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo__fdd, _asn_ctx), + asn_MAP_fdd_tag2el_6, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_fdd_6 = { + "fdd", + "fdd", + &asn_OP_SEQUENCE, + asn_DEF_fdd_tags_6, + sizeof(asn_DEF_fdd_tags_6) + /sizeof(asn_DEF_fdd_tags_6[0]) - 1, /* 1 */ + asn_DEF_fdd_tags_6, /* Same as above */ + sizeof(asn_DEF_fdd_tags_6) + /sizeof(asn_DEF_fdd_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_fdd_6, + 1, /* Elements count */ + &asn_SPC_fdd_specs_6 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_tdd_8[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo__tdd, referenceIdentity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CellParametersID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceIdentity" + }, +}; +static const ber_tlv_tag_t asn_DEF_tdd_tags_8[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_tdd_tag2el_8[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* referenceIdentity */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_tdd_specs_8 = { + sizeof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo__tdd), + offsetof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo__tdd, _asn_ctx), + asn_MAP_tdd_tag2el_8, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_tdd_8 = { + "tdd", + "tdd", + &asn_OP_SEQUENCE, + asn_DEF_tdd_tags_8, + sizeof(asn_DEF_tdd_tags_8) + /sizeof(asn_DEF_tdd_tags_8[0]) - 1, /* 1 */ + asn_DEF_tdd_tags_8, /* Same as above */ + sizeof(asn_DEF_tdd_tags_8) + /sizeof(asn_DEF_tdd_tags_8[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_tdd_8, + 1, /* Elements count */ + &asn_SPC_tdd_specs_8 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_modeSpecificInfo_5[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo, choice.fdd), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_fdd_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "fdd" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo, choice.tdd), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_tdd_8, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tdd" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_modeSpecificInfo_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */ +}; +static asn_CHOICE_specifics_t asn_SPC_modeSpecificInfo_specs_5 = { + sizeof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo), + offsetof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo, _asn_ctx), + offsetof(struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo, present), + sizeof(((struct UTRAN_GPSReferenceTimeResult__modeSpecificInfo *)0)->present), + asn_MAP_modeSpecificInfo_tag2el_5, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_modeSpecificInfo_5 = { + "modeSpecificInfo", + "modeSpecificInfo", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_modeSpecificInfo_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_modeSpecificInfo_5, + 2, /* Elements count */ + &asn_SPC_modeSpecificInfo_specs_5 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_UTRAN_GPSReferenceTimeResult_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTimeResult, set_GPSTimingOfCell), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_set_GPSTimingOfCell_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "set-GPSTimingOfCell" + }, + { ATF_POINTER, 1, offsetof(struct UTRAN_GPSReferenceTimeResult, modeSpecificInfo), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_modeSpecificInfo_5, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "modeSpecificInfo" + }, + { ATF_NOFLAGS, 0, offsetof(struct UTRAN_GPSReferenceTimeResult, sfn), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_sfn_constr_10, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_sfn_constraint_1 + }, + 0, 0, /* No default value */ + "sfn" + }, + { ATF_POINTER, 1, offsetof(struct UTRAN_GPSReferenceTimeResult, gpsReferenceTimeUncertainty), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_gpsReferenceTimeUncertainty_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_gpsReferenceTimeUncertainty_constraint_1 + }, + 0, 0, /* No default value */ + "gpsReferenceTimeUncertainty" + }, +}; +static const int asn_MAP_UTRAN_GPSReferenceTimeResult_oms_1[] = { 1, 3 }; +static const ber_tlv_tag_t asn_DEF_UTRAN_GPSReferenceTimeResult_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_UTRAN_GPSReferenceTimeResult_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* set-GPSTimingOfCell */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* modeSpecificInfo */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sfn */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* gpsReferenceTimeUncertainty */ +}; +asn_SEQUENCE_specifics_t asn_SPC_UTRAN_GPSReferenceTimeResult_specs_1 = { + sizeof(struct UTRAN_GPSReferenceTimeResult), + offsetof(struct UTRAN_GPSReferenceTimeResult, _asn_ctx), + asn_MAP_UTRAN_GPSReferenceTimeResult_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_UTRAN_GPSReferenceTimeResult_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_UTRAN_GPSReferenceTimeResult = { + "UTRAN-GPSReferenceTimeResult", + "UTRAN-GPSReferenceTimeResult", + &asn_OP_SEQUENCE, + asn_DEF_UTRAN_GPSReferenceTimeResult_tags_1, + sizeof(asn_DEF_UTRAN_GPSReferenceTimeResult_tags_1) + /sizeof(asn_DEF_UTRAN_GPSReferenceTimeResult_tags_1[0]), /* 1 */ + asn_DEF_UTRAN_GPSReferenceTimeResult_tags_1, /* Same as above */ + sizeof(asn_DEF_UTRAN_GPSReferenceTimeResult_tags_1) + /sizeof(asn_DEF_UTRAN_GPSReferenceTimeResult_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_UTRAN_GPSReferenceTimeResult_1, + 4, /* Elements count */ + &asn_SPC_UTRAN_GPSReferenceTimeResult_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/UTRAN-GPSReferenceTimeResult.h b/asn.1/supl_generated/UTRAN-GPSReferenceTimeResult.h similarity index 88% rename from asn.1/generated/UTRAN-GPSReferenceTimeResult.h rename to asn.1/supl_generated/UTRAN-GPSReferenceTimeResult.h index 2e4c0618..658c228d 100644 --- a/asn.1/generated/UTRAN-GPSReferenceTimeResult.h +++ b/asn.1/supl_generated/UTRAN-GPSReferenceTimeResult.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _UTRAN_GPSReferenceTimeResult_H_ @@ -59,7 +59,7 @@ typedef struct UTRAN_GPSReferenceTimeResult { asn_struct_ctx_t _asn_ctx; } *modeSpecificInfo; long sfn; - long *gpsReferenceTimeUncertainty /* OPTIONAL */; + long *gpsReferenceTimeUncertainty; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/generated/UTRANGANSSDriftRate.c b/asn.1/supl_generated/UTRANGANSSDriftRate.c similarity index 77% rename from asn.1/generated/UTRANGANSSDriftRate.c rename to asn.1/supl_generated/UTRANGANSSDriftRate.c index 998021a3..a8bbe914 100644 --- a/asn.1/generated/UTRANGANSSDriftRate.c +++ b/asn.1/supl_generated/UTRANGANSSDriftRate.c @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #include "UTRANGANSSDriftRate.h" @@ -11,11 +11,13 @@ * This type is implemented using NativeEnumerated, * so here we adjust the DEF accordingly. */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) asn_per_constraints_t asn_PER_type_UTRANGANSSDriftRate_constr_1 CC_NOTUSED = { { APC_CONSTRAINED, 4, 4, 0, 14 } /* (0..14) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ static const asn_INTEGER_enum_map_t asn_MAP_UTRANGANSSDriftRate_value2enum_1[] = { { 0, 17, "utran-GANSSDrift0" }, { 1, 17, "utran-GANSSDrift1" }, @@ -72,7 +74,15 @@ asn_TYPE_descriptor_t asn_DEF_UTRANGANSSDriftRate = { asn_DEF_UTRANGANSSDriftRate_tags_1, /* Same as above */ sizeof(asn_DEF_UTRANGANSSDriftRate_tags_1) /sizeof(asn_DEF_UTRANGANSSDriftRate_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_UTRANGANSSDriftRate_constr_1, NativeEnumerated_constraint }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_UTRANGANSSDriftRate_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, 0, 0, /* Defined elsewhere */ &asn_SPC_UTRANGANSSDriftRate_specs_1 /* Additional specs */ }; diff --git a/asn.1/generated/UTRANGANSSDriftRate.h b/asn.1/supl_generated/UTRANGANSSDriftRate.h similarity index 84% rename from asn.1/generated/UTRANGANSSDriftRate.h rename to asn.1/supl_generated/UTRANGANSSDriftRate.h index bee09994..9e05dd50 100644 --- a/asn.1/generated/UTRANGANSSDriftRate.h +++ b/asn.1/supl_generated/UTRANGANSSDriftRate.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _UTRANGANSSDriftRate_H_ @@ -45,12 +45,10 @@ extern asn_per_constraints_t asn_PER_type_UTRANGANSSDriftRate_constr_1; extern asn_TYPE_descriptor_t asn_DEF_UTRANGANSSDriftRate; extern const asn_INTEGER_specifics_t asn_SPC_UTRANGANSSDriftRate_specs_1; asn_struct_free_f UTRANGANSSDriftRate_free; -asn_struct_print_f UTRANGANSSDriftRate_print; asn_constr_check_f UTRANGANSSDriftRate_constraint; -ber_type_decoder_f UTRANGANSSDriftRate_decode_ber; -der_type_encoder_f UTRANGANSSDriftRate_encode_der; xer_type_decoder_f UTRANGANSSDriftRate_decode_xer; xer_type_encoder_f UTRANGANSSDriftRate_encode_xer; +jer_type_encoder_f UTRANGANSSDriftRate_encode_jer; per_type_decoder_f UTRANGANSSDriftRate_decode_uper; per_type_encoder_f UTRANGANSSDriftRate_encode_uper; diff --git a/asn.1/generated/UTRANGPSDriftRate.c b/asn.1/supl_generated/UTRANGPSDriftRate.c similarity index 76% rename from asn.1/generated/UTRANGPSDriftRate.c rename to asn.1/supl_generated/UTRANGPSDriftRate.c index f75abd4e..a7683990 100644 --- a/asn.1/generated/UTRANGPSDriftRate.c +++ b/asn.1/supl_generated/UTRANGPSDriftRate.c @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #include "UTRANGPSDriftRate.h" @@ -11,11 +11,13 @@ * This type is implemented using NativeEnumerated, * so here we adjust the DEF accordingly. */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) asn_per_constraints_t asn_PER_type_UTRANGPSDriftRate_constr_1 CC_NOTUSED = { { APC_CONSTRAINED, 4, 4, 0, 14 } /* (0..14) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ static const asn_INTEGER_enum_map_t asn_MAP_UTRANGPSDriftRate_value2enum_1[] = { { 0, 15, "utran-GPSDrift0" }, { 1, 15, "utran-GPSDrift1" }, @@ -72,7 +74,15 @@ asn_TYPE_descriptor_t asn_DEF_UTRANGPSDriftRate = { asn_DEF_UTRANGPSDriftRate_tags_1, /* Same as above */ sizeof(asn_DEF_UTRANGPSDriftRate_tags_1) /sizeof(asn_DEF_UTRANGPSDriftRate_tags_1[0]), /* 1 */ - { 0, &asn_PER_type_UTRANGPSDriftRate_constr_1, NativeEnumerated_constraint }, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_UTRANGPSDriftRate_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, 0, 0, /* Defined elsewhere */ &asn_SPC_UTRANGPSDriftRate_specs_1 /* Additional specs */ }; diff --git a/asn.1/generated/UTRANGPSDriftRate.h b/asn.1/supl_generated/UTRANGPSDriftRate.h similarity index 83% rename from asn.1/generated/UTRANGPSDriftRate.h rename to asn.1/supl_generated/UTRANGPSDriftRate.h index 6e77371b..de204bab 100644 --- a/asn.1/generated/UTRANGPSDriftRate.h +++ b/asn.1/supl_generated/UTRANGPSDriftRate.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _UTRANGPSDriftRate_H_ @@ -45,12 +45,10 @@ extern asn_per_constraints_t asn_PER_type_UTRANGPSDriftRate_constr_1; extern asn_TYPE_descriptor_t asn_DEF_UTRANGPSDriftRate; extern const asn_INTEGER_specifics_t asn_SPC_UTRANGPSDriftRate_specs_1; asn_struct_free_f UTRANGPSDriftRate_free; -asn_struct_print_f UTRANGPSDriftRate_print; asn_constr_check_f UTRANGPSDriftRate_constraint; -ber_type_decoder_f UTRANGPSDriftRate_decode_ber; -der_type_encoder_f UTRANGPSDriftRate_encode_der; xer_type_decoder_f UTRANGPSDriftRate_decode_xer; xer_type_encoder_f UTRANGPSDriftRate_encode_xer; +jer_type_encoder_f UTRANGPSDriftRate_encode_jer; per_type_decoder_f UTRANGPSDriftRate_decode_uper; per_type_encoder_f UTRANGPSDriftRate_encode_uper; diff --git a/asn.1/supl_generated/UlpMessage.c b/asn.1/supl_generated/UlpMessage.c new file mode 100644 index 00000000..5fceae93 --- /dev/null +++ b/asn.1/supl_generated/UlpMessage.c @@ -0,0 +1,322 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP" + * found in "src/ULP.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "UlpMessage.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_UlpMessage_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 7 } /* (0..7,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_UlpMessage_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLINIT), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SUPLINIT, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "msSUPLINIT" + }, + { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLSTART), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SUPLSTART, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "msSUPLSTART" + }, + { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLRESPONSE), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SUPLRESPONSE, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "msSUPLRESPONSE" + }, + { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLPOSINIT), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SUPLPOSINIT, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "msSUPLPOSINIT" + }, + { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLPOS), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SUPLPOS, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "msSUPLPOS" + }, + { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLEND), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SUPLEND, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "msSUPLEND" + }, + { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLAUTHREQ), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SUPLAUTHREQ, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "msSUPLAUTHREQ" + }, + { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLAUTHRESP), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SUPLAUTHRESP, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "msSUPLAUTHRESP" + }, + { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLTRIGGEREDSTART), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver2_SUPLTRIGGEREDSTART, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "msSUPLTRIGGEREDSTART" + }, + { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLTRIGGEREDRESPONSE), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "msSUPLTRIGGEREDRESPONSE" + }, + { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLTRIGGEREDSTOP), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver2_SUPLTRIGGEREDSTOP, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "msSUPLTRIGGEREDSTOP" + }, + { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLNOTIFY), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver2_SUPLNOTIFY, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "msSUPLNOTIFY" + }, + { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLNOTIFYRESPONSE), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver2_SUPLNOTIFYRESPONSE, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "msSUPLNOTIFYRESPONSE" + }, + { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLSETINIT), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver2_SUPLSETINIT, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "msSUPLSETINIT" + }, + { ATF_NOFLAGS, 0, offsetof(struct UlpMessage, choice.msSUPLREPORT), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver2_SUPLREPORT, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "msSUPLREPORT" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_UlpMessage_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* msSUPLINIT */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* msSUPLSTART */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* msSUPLRESPONSE */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* msSUPLPOSINIT */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* msSUPLPOS */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* msSUPLEND */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* msSUPLAUTHREQ */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* msSUPLAUTHRESP */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* msSUPLTRIGGEREDSTART */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* msSUPLTRIGGEREDRESPONSE */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* msSUPLTRIGGEREDSTOP */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* msSUPLNOTIFY */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* msSUPLNOTIFYRESPONSE */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* msSUPLSETINIT */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 } /* msSUPLREPORT */ +}; +asn_CHOICE_specifics_t asn_SPC_UlpMessage_specs_1 = { + sizeof(struct UlpMessage), + offsetof(struct UlpMessage, _asn_ctx), + offsetof(struct UlpMessage, present), + sizeof(((struct UlpMessage *)0)->present), + asn_MAP_UlpMessage_tag2el_1, + 15, /* Count of tags in the map */ + 0, 0, + 8 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_UlpMessage = { + "UlpMessage", + "UlpMessage", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_UlpMessage_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_UlpMessage_1, + 15, /* Elements count */ + &asn_SPC_UlpMessage_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/UlpMessage.h b/asn.1/supl_generated/UlpMessage.h similarity index 91% rename from asn.1/generated/UlpMessage.h rename to asn.1/supl_generated/UlpMessage.h index d6bdb1bf..437958ed 100644 --- a/asn.1/generated/UlpMessage.h +++ b/asn.1/supl_generated/UlpMessage.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP" - * found in "/home/martin/repos/LPP-Client/asn/ULP.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _UlpMessage_H_ diff --git a/asn.1/supl_generated/UmbCellInformation.c b/asn.1/supl_generated/UmbCellInformation.c new file mode 100644 index 00000000..c7a2a655 --- /dev/null +++ b/asn.1/supl_generated/UmbCellInformation.c @@ -0,0 +1,404 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "UmbCellInformation.h" + +static int +memb_refSECTORID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 128UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refMCC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refMNC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refBASELAT_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4194303L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_reBASELONG_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 8388607L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refWeekNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refSeconds_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 4194303L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refSECTORID_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 128, 128 } /* (SIZE(128..128)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refMCC_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refMNC_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refBASELAT_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, 0, 4194303 } /* (0..4194303) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_reBASELONG_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refWeekNumber_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refSeconds_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 22, -1, 0, 4194303 } /* (0..4194303) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_UmbCellInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct UmbCellInformation, refSECTORID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refSECTORID_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refSECTORID_constraint_1 + }, + 0, 0, /* No default value */ + "refSECTORID" + }, + { ATF_NOFLAGS, 0, offsetof(struct UmbCellInformation, refMCC), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refMCC_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refMCC_constraint_1 + }, + 0, 0, /* No default value */ + "refMCC" + }, + { ATF_NOFLAGS, 0, offsetof(struct UmbCellInformation, refMNC), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refMNC_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refMNC_constraint_1 + }, + 0, 0, /* No default value */ + "refMNC" + }, + { ATF_NOFLAGS, 0, offsetof(struct UmbCellInformation, refBASELAT), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refBASELAT_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refBASELAT_constraint_1 + }, + 0, 0, /* No default value */ + "refBASELAT" + }, + { ATF_NOFLAGS, 0, offsetof(struct UmbCellInformation, reBASELONG), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_reBASELONG_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_reBASELONG_constraint_1 + }, + 0, 0, /* No default value */ + "reBASELONG" + }, + { ATF_NOFLAGS, 0, offsetof(struct UmbCellInformation, refWeekNumber), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refWeekNumber_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refWeekNumber_constraint_1 + }, + 0, 0, /* No default value */ + "refWeekNumber" + }, + { ATF_NOFLAGS, 0, offsetof(struct UmbCellInformation, refSeconds), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refSeconds_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refSeconds_constraint_1 + }, + 0, 0, /* No default value */ + "refSeconds" + }, +}; +static const ber_tlv_tag_t asn_DEF_UmbCellInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_UmbCellInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refSECTORID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refMCC */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* refMNC */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* refBASELAT */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* reBASELONG */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* refWeekNumber */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* refSeconds */ +}; +asn_SEQUENCE_specifics_t asn_SPC_UmbCellInformation_specs_1 = { + sizeof(struct UmbCellInformation), + offsetof(struct UmbCellInformation, _asn_ctx), + asn_MAP_UmbCellInformation_tag2el_1, + 7, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_UmbCellInformation = { + "UmbCellInformation", + "UmbCellInformation", + &asn_OP_SEQUENCE, + asn_DEF_UmbCellInformation_tags_1, + sizeof(asn_DEF_UmbCellInformation_tags_1) + /sizeof(asn_DEF_UmbCellInformation_tags_1[0]), /* 1 */ + asn_DEF_UmbCellInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_UmbCellInformation_tags_1) + /sizeof(asn_DEF_UmbCellInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_UmbCellInformation_1, + 7, /* Elements count */ + &asn_SPC_UmbCellInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/UmbCellInformation.h b/asn.1/supl_generated/UmbCellInformation.h similarity index 80% rename from asn.1/generated/UmbCellInformation.h rename to asn.1/supl_generated/UmbCellInformation.h index 9cf640af..e4d11a10 100644 --- a/asn.1/generated/UmbCellInformation.h +++ b/asn.1/supl_generated/UmbCellInformation.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _UmbCellInformation_H_ diff --git a/asn.1/supl_generated/Ver.c b/asn.1/supl_generated/Ver.c new file mode 100644 index 00000000..bb0505e5 --- /dev/null +++ b/asn.1/supl_generated/Ver.c @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver.h" + +int +Ver_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 64UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using BIT_STRING, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Ver_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 64, 64 } /* (SIZE(64..64)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_Ver_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Ver = { + "Ver", + "Ver", + &asn_OP_BIT_STRING, + asn_DEF_Ver_tags_1, + sizeof(asn_DEF_Ver_tags_1) + /sizeof(asn_DEF_Ver_tags_1[0]), /* 1 */ + asn_DEF_Ver_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver_tags_1) + /sizeof(asn_DEF_Ver_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Ver_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + Ver_constraint + }, + 0, 0, /* No members */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/Ver.h b/asn.1/supl_generated/Ver.h new file mode 100644 index 00000000..0d217c9c --- /dev/null +++ b/asn.1/supl_generated/Ver.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _Ver_H_ +#define _Ver_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Ver */ +typedef BIT_STRING_t Ver_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_Ver_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_Ver; +asn_struct_free_f Ver_free; +asn_constr_check_f Ver_constraint; +xer_type_decoder_f Ver_decode_xer; +xer_type_encoder_f Ver_encode_xer; +jer_type_encoder_f Ver_encode_jer; +per_type_decoder_f Ver_decode_uper; +per_type_encoder_f Ver_encode_uper; + +#ifdef __cplusplus +} +#endif + +#endif /* _Ver_H_ */ +#include diff --git a/asn.1/supl_generated/Ver2-CellInfo-extension.c b/asn.1/supl_generated/Ver2-CellInfo-extension.c new file mode 100644 index 00000000..e349a21c --- /dev/null +++ b/asn.1/supl_generated/Ver2-CellInfo-extension.c @@ -0,0 +1,142 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-CellInfo-extension.h" + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Ver2_CellInfo_extension_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Ver2_CellInfo_extension_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Ver2_CellInfo_extension, choice.hrpdCell), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HrpdCellInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "hrpdCell" + }, + { ATF_NOFLAGS, 0, offsetof(struct Ver2_CellInfo_extension, choice.umbCell), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UmbCellInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "umbCell" + }, + { ATF_NOFLAGS, 0, offsetof(struct Ver2_CellInfo_extension, choice.lteCell), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LteCellInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lteCell" + }, + { ATF_NOFLAGS, 0, offsetof(struct Ver2_CellInfo_extension, choice.wlanAP), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WlanAPInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wlanAP" + }, + { ATF_NOFLAGS, 0, offsetof(struct Ver2_CellInfo_extension, choice.wimaxBS), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WimaxBSInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wimaxBS" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_CellInfo_extension_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* hrpdCell */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* umbCell */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* lteCell */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* wlanAP */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* wimaxBS */ +}; +asn_CHOICE_specifics_t asn_SPC_Ver2_CellInfo_extension_specs_1 = { + sizeof(struct Ver2_CellInfo_extension), + offsetof(struct Ver2_CellInfo_extension, _asn_ctx), + offsetof(struct Ver2_CellInfo_extension, present), + sizeof(((struct Ver2_CellInfo_extension *)0)->present), + asn_MAP_Ver2_CellInfo_extension_tag2el_1, + 5, /* Count of tags in the map */ + 0, 0, + 5 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_CellInfo_extension = { + "Ver2-CellInfo-extension", + "Ver2-CellInfo-extension", + &asn_OP_CHOICE, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Ver2_CellInfo_extension_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_Ver2_CellInfo_extension_1, + 5, /* Elements count */ + &asn_SPC_Ver2_CellInfo_extension_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Ver2-CellInfo-extension.h b/asn.1/supl_generated/Ver2-CellInfo-extension.h similarity index 87% rename from asn.1/generated/Ver2-CellInfo-extension.h rename to asn.1/supl_generated/Ver2-CellInfo-extension.h index 2f818225..ae19c03a 100644 --- a/asn.1/generated/Ver2-CellInfo-extension.h +++ b/asn.1/supl_generated/Ver2-CellInfo-extension.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _Ver2_CellInfo_extension_H_ diff --git a/asn.1/supl_generated/Ver2-Notification-extension.c b/asn.1/supl_generated/Ver2-Notification-extension.c new file mode 100644 index 00000000..cc4a6dc5 --- /dev/null +++ b/asn.1/supl_generated/Ver2-Notification-extension.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-Notification-extension.h" + +asn_TYPE_member_t asn_MBR_Ver2_Notification_extension_1[] = { + { ATF_POINTER, 1, offsetof(struct Ver2_Notification_extension, emergencyCallLocation), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "emergencyCallLocation" + }, +}; +static const int asn_MAP_Ver2_Notification_extension_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_Ver2_Notification_extension_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_Notification_extension_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* emergencyCallLocation */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ver2_Notification_extension_specs_1 = { + sizeof(struct Ver2_Notification_extension), + offsetof(struct Ver2_Notification_extension, _asn_ctx), + asn_MAP_Ver2_Notification_extension_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_Ver2_Notification_extension_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_Notification_extension = { + "Ver2-Notification-extension", + "Ver2-Notification-extension", + &asn_OP_SEQUENCE, + asn_DEF_Ver2_Notification_extension_tags_1, + sizeof(asn_DEF_Ver2_Notification_extension_tags_1) + /sizeof(asn_DEF_Ver2_Notification_extension_tags_1[0]), /* 1 */ + asn_DEF_Ver2_Notification_extension_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver2_Notification_extension_tags_1) + /sizeof(asn_DEF_Ver2_Notification_extension_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ver2_Notification_extension_1, + 1, /* Elements count */ + &asn_SPC_Ver2_Notification_extension_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Ver2-Notification-extension.h b/asn.1/supl_generated/Ver2-Notification-extension.h similarity index 75% rename from asn.1/generated/Ver2-Notification-extension.h rename to asn.1/supl_generated/Ver2-Notification-extension.h index e3c29c38..6e39ac3b 100644 --- a/asn.1/generated/Ver2-Notification-extension.h +++ b/asn.1/supl_generated/Ver2-Notification-extension.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _Ver2_Notification_extension_H_ @@ -21,7 +21,7 @@ extern "C" { /* Ver2-Notification-extension */ typedef struct Ver2_Notification_extension { - NULL_t *emergencyCallLocation /* OPTIONAL */; + NULL_t *emergencyCallLocation; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/supl_generated/Ver2-PosPayLoad-extension.c b/asn.1/supl_generated/Ver2-PosPayLoad-extension.c new file mode 100644 index 00000000..80bdba63 --- /dev/null +++ b/asn.1/supl_generated/Ver2-PosPayLoad-extension.c @@ -0,0 +1,338 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-PosPayLoad-extension.h" + +static int +memb_OCTET_STRING_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size >= 1UL && size <= 60000UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_OCTET_STRING_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size >= 1UL && size <= 60000UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_lPPPayload_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_tIA801Payload_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + /* Determine the number of elements */ + size = _A_CSEQUENCE_FROM_VOID(sptr)->count; + + if((size >= 1UL && size <= 3UL)) { + /* Perform validation of the inner elements */ + return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key); + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 16, 16, 1, 60000 } /* (SIZE(1..60000)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_lPPPayload_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_Member_constr_5 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 16, 16, 1, 60000 } /* (SIZE(1..60000)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_tIA801Payload_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_lPPPayload_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_tIA801Payload_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_lPPPayload_2[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), + 0, + &asn_DEF_OCTET_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_OCTET_STRING_constraint_2 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_lPPPayload_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_lPPPayload_specs_2 = { + sizeof(struct Ver2_PosPayLoad_extension__lPPPayload), + offsetof(struct Ver2_PosPayLoad_extension__lPPPayload, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_lPPPayload_2 = { + "lPPPayload", + "lPPPayload", + &asn_OP_SEQUENCE_OF, + asn_DEF_lPPPayload_tags_2, + sizeof(asn_DEF_lPPPayload_tags_2) + /sizeof(asn_DEF_lPPPayload_tags_2[0]) - 1, /* 1 */ + asn_DEF_lPPPayload_tags_2, /* Same as above */ + sizeof(asn_DEF_lPPPayload_tags_2) + /sizeof(asn_DEF_lPPPayload_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_lPPPayload_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_lPPPayload_2, + 1, /* Single element */ + &asn_SPC_lPPPayload_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_tIA801Payload_4[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), + 0, + &asn_DEF_OCTET_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_Member_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_OCTET_STRING_constraint_4 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_tIA801Payload_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_tIA801Payload_specs_4 = { + sizeof(struct Ver2_PosPayLoad_extension__tIA801Payload), + offsetof(struct Ver2_PosPayLoad_extension__tIA801Payload, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_tIA801Payload_4 = { + "tIA801Payload", + "tIA801Payload", + &asn_OP_SEQUENCE_OF, + asn_DEF_tIA801Payload_tags_4, + sizeof(asn_DEF_tIA801Payload_tags_4) + /sizeof(asn_DEF_tIA801Payload_tags_4[0]) - 1, /* 1 */ + asn_DEF_tIA801Payload_tags_4, /* Same as above */ + sizeof(asn_DEF_tIA801Payload_tags_4) + /sizeof(asn_DEF_tIA801Payload_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_tIA801Payload_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_tIA801Payload_4, + 1, /* Single element */ + &asn_SPC_tIA801Payload_specs_4 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_Ver2_PosPayLoad_extension_1[] = { + { ATF_POINTER, 2, offsetof(struct Ver2_PosPayLoad_extension, lPPPayload), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_lPPPayload_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_lPPPayload_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_lPPPayload_constraint_1 + }, + 0, 0, /* No default value */ + "lPPPayload" + }, + { ATF_POINTER, 1, offsetof(struct Ver2_PosPayLoad_extension, tIA801Payload), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_tIA801Payload_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_tIA801Payload_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_tIA801Payload_constraint_1 + }, + 0, 0, /* No default value */ + "tIA801Payload" + }, +}; +static const int asn_MAP_Ver2_PosPayLoad_extension_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_Ver2_PosPayLoad_extension_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_PosPayLoad_extension_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lPPPayload */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tIA801Payload */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ver2_PosPayLoad_extension_specs_1 = { + sizeof(struct Ver2_PosPayLoad_extension), + offsetof(struct Ver2_PosPayLoad_extension, _asn_ctx), + asn_MAP_Ver2_PosPayLoad_extension_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_Ver2_PosPayLoad_extension_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_PosPayLoad_extension = { + "Ver2-PosPayLoad-extension", + "Ver2-PosPayLoad-extension", + &asn_OP_SEQUENCE, + asn_DEF_Ver2_PosPayLoad_extension_tags_1, + sizeof(asn_DEF_Ver2_PosPayLoad_extension_tags_1) + /sizeof(asn_DEF_Ver2_PosPayLoad_extension_tags_1[0]), /* 1 */ + asn_DEF_Ver2_PosPayLoad_extension_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver2_PosPayLoad_extension_tags_1) + /sizeof(asn_DEF_Ver2_PosPayLoad_extension_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ver2_PosPayLoad_extension_1, + 2, /* Elements count */ + &asn_SPC_Ver2_PosPayLoad_extension_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Ver2-PosPayLoad-extension.h b/asn.1/supl_generated/Ver2-PosPayLoad-extension.h similarity index 83% rename from asn.1/generated/Ver2-PosPayLoad-extension.h rename to asn.1/supl_generated/Ver2-PosPayLoad-extension.h index 3afd9034..7f8ff6b8 100644 --- a/asn.1/generated/Ver2-PosPayLoad-extension.h +++ b/asn.1/supl_generated/Ver2-PosPayLoad-extension.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _Ver2_PosPayLoad_extension_H_ diff --git a/asn.1/supl_generated/Ver2-PosProtocol-extension.c b/asn.1/supl_generated/Ver2-PosProtocol-extension.c new file mode 100644 index 00000000..33e579f9 --- /dev/null +++ b/asn.1/supl_generated/Ver2-PosProtocol-extension.c @@ -0,0 +1,142 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-PosProtocol-extension.h" + +#include "PosProtocolVersion3GPP.h" +#include "PosProtocolVersion3GPP2.h" +asn_TYPE_member_t asn_MBR_Ver2_PosProtocol_extension_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Ver2_PosProtocol_extension, lpp), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BOOLEAN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lpp" + }, + { ATF_POINTER, 4, offsetof(struct Ver2_PosProtocol_extension, posProtocolVersionRRLP), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosProtocolVersion3GPP, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posProtocolVersionRRLP" + }, + { ATF_POINTER, 3, offsetof(struct Ver2_PosProtocol_extension, posProtocolVersionRRC), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosProtocolVersion3GPP, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posProtocolVersionRRC" + }, + { ATF_POINTER, 2, offsetof(struct Ver2_PosProtocol_extension, posProtocolVersionTIA801), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosProtocolVersion3GPP2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posProtocolVersionTIA801" + }, + { ATF_POINTER, 1, offsetof(struct Ver2_PosProtocol_extension, posProtocolVersionLPP), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosProtocolVersion3GPP, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posProtocolVersionLPP" + }, +}; +static const int asn_MAP_Ver2_PosProtocol_extension_oms_1[] = { 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_Ver2_PosProtocol_extension_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_PosProtocol_extension_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lpp */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* posProtocolVersionRRLP */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* posProtocolVersionRRC */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* posProtocolVersionTIA801 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* posProtocolVersionLPP */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ver2_PosProtocol_extension_specs_1 = { + sizeof(struct Ver2_PosProtocol_extension), + offsetof(struct Ver2_PosProtocol_extension, _asn_ctx), + asn_MAP_Ver2_PosProtocol_extension_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_Ver2_PosProtocol_extension_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_PosProtocol_extension = { + "Ver2-PosProtocol-extension", + "Ver2-PosProtocol-extension", + &asn_OP_SEQUENCE, + asn_DEF_Ver2_PosProtocol_extension_tags_1, + sizeof(asn_DEF_Ver2_PosProtocol_extension_tags_1) + /sizeof(asn_DEF_Ver2_PosProtocol_extension_tags_1[0]), /* 1 */ + asn_DEF_Ver2_PosProtocol_extension_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver2_PosProtocol_extension_tags_1) + /sizeof(asn_DEF_Ver2_PosProtocol_extension_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ver2_PosProtocol_extension_1, + 5, /* Elements count */ + &asn_SPC_Ver2_PosProtocol_extension_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/Ver2-PosProtocol-extension.h b/asn.1/supl_generated/Ver2-PosProtocol-extension.h new file mode 100644 index 00000000..ffaa2e59 --- /dev/null +++ b/asn.1/supl_generated/Ver2-PosProtocol-extension.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _Ver2_PosProtocol_extension_H_ +#define _Ver2_PosProtocol_extension_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct PosProtocolVersion3GPP; +struct PosProtocolVersion3GPP2; + +/* Ver2-PosProtocol-extension */ +typedef struct Ver2_PosProtocol_extension { + BOOLEAN_t lpp; + struct PosProtocolVersion3GPP *posProtocolVersionRRLP; /* OPTIONAL */ + struct PosProtocolVersion3GPP *posProtocolVersionRRC; /* OPTIONAL */ + struct PosProtocolVersion3GPP2 *posProtocolVersionTIA801; /* OPTIONAL */ + struct PosProtocolVersion3GPP *posProtocolVersionLPP; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Ver2_PosProtocol_extension_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Ver2_PosProtocol_extension; +extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_PosProtocol_extension_specs_1; +extern asn_TYPE_member_t asn_MBR_Ver2_PosProtocol_extension_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Ver2_PosProtocol_extension_H_ */ +#include diff --git a/asn.1/supl_generated/Ver2-PosTechnology-extension.c b/asn.1/supl_generated/Ver2-PosTechnology-extension.c new file mode 100644 index 00000000..5bc9e4f7 --- /dev/null +++ b/asn.1/supl_generated/Ver2-PosTechnology-extension.c @@ -0,0 +1,69 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-PosTechnology-extension.h" + +#include "GANSSPositionMethods.h" +asn_TYPE_member_t asn_MBR_Ver2_PosTechnology_extension_1[] = { + { ATF_POINTER, 1, offsetof(struct Ver2_PosTechnology_extension, gANSSPositionMethods), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GANSSPositionMethods, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gANSSPositionMethods" + }, +}; +static const int asn_MAP_Ver2_PosTechnology_extension_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_Ver2_PosTechnology_extension_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_PosTechnology_extension_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gANSSPositionMethods */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ver2_PosTechnology_extension_specs_1 = { + sizeof(struct Ver2_PosTechnology_extension), + offsetof(struct Ver2_PosTechnology_extension, _asn_ctx), + asn_MAP_Ver2_PosTechnology_extension_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_Ver2_PosTechnology_extension_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_PosTechnology_extension = { + "Ver2-PosTechnology-extension", + "Ver2-PosTechnology-extension", + &asn_OP_SEQUENCE, + asn_DEF_Ver2_PosTechnology_extension_tags_1, + sizeof(asn_DEF_Ver2_PosTechnology_extension_tags_1) + /sizeof(asn_DEF_Ver2_PosTechnology_extension_tags_1[0]), /* 1 */ + asn_DEF_Ver2_PosTechnology_extension_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver2_PosTechnology_extension_tags_1) + /sizeof(asn_DEF_Ver2_PosTechnology_extension_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ver2_PosTechnology_extension_1, + 1, /* Elements count */ + &asn_SPC_Ver2_PosTechnology_extension_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Ver2-PosTechnology-extension.h b/asn.1/supl_generated/Ver2-PosTechnology-extension.h similarity index 75% rename from asn.1/generated/Ver2-PosTechnology-extension.h rename to asn.1/supl_generated/Ver2-PosTechnology-extension.h index 77a3f3c6..8f666b8d 100644 --- a/asn.1/generated/Ver2-PosTechnology-extension.h +++ b/asn.1/supl_generated/Ver2-PosTechnology-extension.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Version-2-parameter-extensions" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _Ver2_PosTechnology_extension_H_ @@ -23,7 +23,7 @@ struct GANSSPositionMethods; /* Ver2-PosTechnology-extension */ typedef struct Ver2_PosTechnology_extension { - struct GANSSPositionMethods *gANSSPositionMethods /* OPTIONAL */; + struct GANSSPositionMethods *gANSSPositionMethods; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. @@ -42,8 +42,5 @@ extern asn_TYPE_member_t asn_MBR_Ver2_PosTechnology_extension_1[1]; } #endif -/* Referred external types */ -#include "GANSSPositionMethods.h" - #endif /* _Ver2_PosTechnology_extension_H_ */ #include diff --git a/asn.1/supl_generated/Ver2-RequestedAssistData-extension.c b/asn.1/supl_generated/Ver2-RequestedAssistData-extension.c new file mode 100644 index 00000000..da778eb5 --- /dev/null +++ b/asn.1/supl_generated/Ver2-RequestedAssistData-extension.c @@ -0,0 +1,126 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-RequestedAssistData-extension.h" + +#include "GanssRequestedCommonAssistanceDataList.h" +#include "GanssRequestedGenericAssistanceDataList.h" +#include "ExtendedEphemeris.h" +#include "ExtendedEphCheck.h" +asn_TYPE_member_t asn_MBR_Ver2_RequestedAssistData_extension_1[] = { + { ATF_POINTER, 4, offsetof(struct Ver2_RequestedAssistData_extension, ganssRequestedCommonAssistanceDataList), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GanssRequestedCommonAssistanceDataList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ganssRequestedCommonAssistanceDataList" + }, + { ATF_POINTER, 3, offsetof(struct Ver2_RequestedAssistData_extension, ganssRequestedGenericAssistanceDataList), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GanssRequestedGenericAssistanceDataList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ganssRequestedGenericAssistanceDataList" + }, + { ATF_POINTER, 2, offsetof(struct Ver2_RequestedAssistData_extension, extendedEphemeris), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ExtendedEphemeris, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "extendedEphemeris" + }, + { ATF_POINTER, 1, offsetof(struct Ver2_RequestedAssistData_extension, extendedEphemerisCheck), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ExtendedEphCheck, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "extendedEphemerisCheck" + }, +}; +static const int asn_MAP_Ver2_RequestedAssistData_extension_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_Ver2_RequestedAssistData_extension_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_RequestedAssistData_extension_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssRequestedCommonAssistanceDataList */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssRequestedGenericAssistanceDataList */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* extendedEphemeris */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* extendedEphemerisCheck */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ver2_RequestedAssistData_extension_specs_1 = { + sizeof(struct Ver2_RequestedAssistData_extension), + offsetof(struct Ver2_RequestedAssistData_extension, _asn_ctx), + asn_MAP_Ver2_RequestedAssistData_extension_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_Ver2_RequestedAssistData_extension_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_RequestedAssistData_extension = { + "Ver2-RequestedAssistData-extension", + "Ver2-RequestedAssistData-extension", + &asn_OP_SEQUENCE, + asn_DEF_Ver2_RequestedAssistData_extension_tags_1, + sizeof(asn_DEF_Ver2_RequestedAssistData_extension_tags_1) + /sizeof(asn_DEF_Ver2_RequestedAssistData_extension_tags_1[0]), /* 1 */ + asn_DEF_Ver2_RequestedAssistData_extension_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver2_RequestedAssistData_extension_tags_1) + /sizeof(asn_DEF_Ver2_RequestedAssistData_extension_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ver2_RequestedAssistData_extension_1, + 4, /* Elements count */ + &asn_SPC_Ver2_RequestedAssistData_extension_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/Ver2-RequestedAssistData-extension.h b/asn.1/supl_generated/Ver2-RequestedAssistData-extension.h new file mode 100644 index 00000000..e89809d1 --- /dev/null +++ b/asn.1/supl_generated/Ver2-RequestedAssistData-extension.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _Ver2_RequestedAssistData_extension_H_ +#define _Ver2_RequestedAssistData_extension_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GanssRequestedCommonAssistanceDataList; +struct GanssRequestedGenericAssistanceDataList; +struct ExtendedEphemeris; +struct ExtendedEphCheck; + +/* Ver2-RequestedAssistData-extension */ +typedef struct Ver2_RequestedAssistData_extension { + struct GanssRequestedCommonAssistanceDataList *ganssRequestedCommonAssistanceDataList; /* OPTIONAL */ + struct GanssRequestedGenericAssistanceDataList *ganssRequestedGenericAssistanceDataList; /* OPTIONAL */ + struct ExtendedEphemeris *extendedEphemeris; /* OPTIONAL */ + struct ExtendedEphCheck *extendedEphemerisCheck; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Ver2_RequestedAssistData_extension_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Ver2_RequestedAssistData_extension; +extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_RequestedAssistData_extension_specs_1; +extern asn_TYPE_member_t asn_MBR_Ver2_RequestedAssistData_extension_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Ver2_RequestedAssistData_extension_H_ */ +#include diff --git a/asn.1/supl_generated/Ver2-SETCapabilities-extension.c b/asn.1/supl_generated/Ver2-SETCapabilities-extension.c new file mode 100644 index 00000000..531138fd --- /dev/null +++ b/asn.1/supl_generated/Ver2-SETCapabilities-extension.c @@ -0,0 +1,88 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-SETCapabilities-extension.h" + +#include "ServiceCapabilities.h" +#include "SupportedBearers.h" +asn_TYPE_member_t asn_MBR_Ver2_SETCapabilities_extension_1[] = { + { ATF_POINTER, 2, offsetof(struct Ver2_SETCapabilities_extension, serviceCapabilities), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ServiceCapabilities, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "serviceCapabilities" + }, + { ATF_POINTER, 1, offsetof(struct Ver2_SETCapabilities_extension, supportedBearers), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SupportedBearers, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportedBearers" + }, +}; +static const int asn_MAP_Ver2_SETCapabilities_extension_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_Ver2_SETCapabilities_extension_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_SETCapabilities_extension_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* serviceCapabilities */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* supportedBearers */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ver2_SETCapabilities_extension_specs_1 = { + sizeof(struct Ver2_SETCapabilities_extension), + offsetof(struct Ver2_SETCapabilities_extension, _asn_ctx), + asn_MAP_Ver2_SETCapabilities_extension_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_Ver2_SETCapabilities_extension_oms_1, /* Optional members */ + 1, 1, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_SETCapabilities_extension = { + "Ver2-SETCapabilities-extension", + "Ver2-SETCapabilities-extension", + &asn_OP_SEQUENCE, + asn_DEF_Ver2_SETCapabilities_extension_tags_1, + sizeof(asn_DEF_Ver2_SETCapabilities_extension_tags_1) + /sizeof(asn_DEF_Ver2_SETCapabilities_extension_tags_1[0]), /* 1 */ + asn_DEF_Ver2_SETCapabilities_extension_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver2_SETCapabilities_extension_tags_1) + /sizeof(asn_DEF_Ver2_SETCapabilities_extension_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ver2_SETCapabilities_extension_1, + 2, /* Elements count */ + &asn_SPC_Ver2_SETCapabilities_extension_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/Ver2-SETCapabilities-extension.h b/asn.1/supl_generated/Ver2-SETCapabilities-extension.h new file mode 100644 index 00000000..33099ca4 --- /dev/null +++ b/asn.1/supl_generated/Ver2-SETCapabilities-extension.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-parameter-extensions" + * found in "src/ULP-Version-2-parameter-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _Ver2_SETCapabilities_extension_H_ +#define _Ver2_SETCapabilities_extension_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ServiceCapabilities; +struct SupportedBearers; + +/* Ver2-SETCapabilities-extension */ +typedef struct Ver2_SETCapabilities_extension { + struct ServiceCapabilities *serviceCapabilities; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + struct SupportedBearers *supportedBearers; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Ver2_SETCapabilities_extension_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Ver2_SETCapabilities_extension; +extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SETCapabilities_extension_specs_1; +extern asn_TYPE_member_t asn_MBR_Ver2_SETCapabilities_extension_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Ver2_SETCapabilities_extension_H_ */ +#include diff --git a/asn.1/supl_generated/Ver2-SUPL-END-extension.c b/asn.1/supl_generated/Ver2-SUPL-END-extension.c new file mode 100644 index 00000000..4b60bdea --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPL-END-extension.c @@ -0,0 +1,69 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-SUPL-END-extension.h" + +#include "SETCapabilities.h" +asn_TYPE_member_t asn_MBR_Ver2_SUPL_END_extension_1[] = { + { ATF_POINTER, 1, offsetof(struct Ver2_SUPL_END_extension, sETCapabilities), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SETCapabilities, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sETCapabilities" + }, +}; +static const int asn_MAP_Ver2_SUPL_END_extension_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_Ver2_SUPL_END_extension_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPL_END_extension_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* sETCapabilities */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_END_extension_specs_1 = { + sizeof(struct Ver2_SUPL_END_extension), + offsetof(struct Ver2_SUPL_END_extension, _asn_ctx), + asn_MAP_Ver2_SUPL_END_extension_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_Ver2_SUPL_END_extension_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_END_extension = { + "Ver2-SUPL-END-extension", + "Ver2-SUPL-END-extension", + &asn_OP_SEQUENCE, + asn_DEF_Ver2_SUPL_END_extension_tags_1, + sizeof(asn_DEF_Ver2_SUPL_END_extension_tags_1) + /sizeof(asn_DEF_Ver2_SUPL_END_extension_tags_1[0]), /* 1 */ + asn_DEF_Ver2_SUPL_END_extension_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver2_SUPL_END_extension_tags_1) + /sizeof(asn_DEF_Ver2_SUPL_END_extension_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ver2_SUPL_END_extension_1, + 1, /* Elements count */ + &asn_SPC_Ver2_SUPL_END_extension_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/Ver2-SUPL-END-extension.h b/asn.1/supl_generated/Ver2-SUPL-END-extension.h new file mode 100644 index 00000000..f731b403 --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPL-END-extension.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _Ver2_SUPL_END_extension_H_ +#define _Ver2_SUPL_END_extension_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SETCapabilities; + +/* Ver2-SUPL-END-extension */ +typedef struct Ver2_SUPL_END_extension { + struct SETCapabilities *sETCapabilities; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Ver2_SUPL_END_extension_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_END_extension; +extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_END_extension_specs_1; +extern asn_TYPE_member_t asn_MBR_Ver2_SUPL_END_extension_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Ver2_SUPL_END_extension_H_ */ +#include diff --git a/asn.1/supl_generated/Ver2-SUPL-INIT-extension.c b/asn.1/supl_generated/Ver2-SUPL-INIT-extension.c new file mode 100644 index 00000000..4d95c71e --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPL-INIT-extension.c @@ -0,0 +1,231 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-SUPL-INIT-extension.h" + +#include "SupportedNetworkInformation.h" +#include "SLPAddress.h" +#include "HistoricReporting.h" +#include "ProtectionLevel.h" +#include "GNSSPosTechnology.h" +static int +memb_minimumMajorVersion_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_minimumMajorVersion_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Ver2_SUPL_INIT_extension_1[] = { + { ATF_POINTER, 8, offsetof(struct Ver2_SUPL_INIT_extension, notificationMode), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NotificationMode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "notificationMode" + }, + { ATF_POINTER, 7, offsetof(struct Ver2_SUPL_INIT_extension, supportedNetworkInformation), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SupportedNetworkInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportedNetworkInformation" + }, + { ATF_POINTER, 6, offsetof(struct Ver2_SUPL_INIT_extension, triggerType), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TriggerType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "triggerType" + }, + { ATF_POINTER, 5, offsetof(struct Ver2_SUPL_INIT_extension, e_SLPAddress), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_SLPAddress, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "e-SLPAddress" + }, + { ATF_POINTER, 4, offsetof(struct Ver2_SUPL_INIT_extension, historicReporting), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HistoricReporting, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "historicReporting" + }, + { ATF_POINTER, 3, offsetof(struct Ver2_SUPL_INIT_extension, protectionLevel), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ProtectionLevel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "protectionLevel" + }, + { ATF_POINTER, 2, offsetof(struct Ver2_SUPL_INIT_extension, gnssPosTechnology), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSSPosTechnology, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnssPosTechnology" + }, + { ATF_POINTER, 1, offsetof(struct Ver2_SUPL_INIT_extension, minimumMajorVersion), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_minimumMajorVersion_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_minimumMajorVersion_constraint_1 + }, + 0, 0, /* No default value */ + "minimumMajorVersion" + }, +}; +static const int asn_MAP_Ver2_SUPL_INIT_extension_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7 }; +static const ber_tlv_tag_t asn_DEF_Ver2_SUPL_INIT_extension_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPL_INIT_extension_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* notificationMode */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* supportedNetworkInformation */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* triggerType */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* e-SLPAddress */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* historicReporting */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* protectionLevel */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* gnssPosTechnology */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* minimumMajorVersion */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_INIT_extension_specs_1 = { + sizeof(struct Ver2_SUPL_INIT_extension), + offsetof(struct Ver2_SUPL_INIT_extension, _asn_ctx), + asn_MAP_Ver2_SUPL_INIT_extension_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_Ver2_SUPL_INIT_extension_oms_1, /* Optional members */ + 8, 0, /* Root/Additions */ + 8, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_INIT_extension = { + "Ver2-SUPL-INIT-extension", + "Ver2-SUPL-INIT-extension", + &asn_OP_SEQUENCE, + asn_DEF_Ver2_SUPL_INIT_extension_tags_1, + sizeof(asn_DEF_Ver2_SUPL_INIT_extension_tags_1) + /sizeof(asn_DEF_Ver2_SUPL_INIT_extension_tags_1[0]), /* 1 */ + asn_DEF_Ver2_SUPL_INIT_extension_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver2_SUPL_INIT_extension_tags_1) + /sizeof(asn_DEF_Ver2_SUPL_INIT_extension_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ver2_SUPL_INIT_extension_1, + 8, /* Elements count */ + &asn_SPC_Ver2_SUPL_INIT_extension_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/Ver2-SUPL-INIT-extension.h b/asn.1/supl_generated/Ver2-SUPL-INIT-extension.h new file mode 100644 index 00000000..63ee4237 --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPL-INIT-extension.h @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _Ver2_SUPL_INIT_extension_H_ +#define _Ver2_SUPL_INIT_extension_H_ + + +#include + +/* Including external dependencies */ +#include "NotificationMode.h" +#include "TriggerType.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SupportedNetworkInformation; +struct SLPAddress; +struct HistoricReporting; +struct ProtectionLevel; +struct GNSSPosTechnology; + +/* Ver2-SUPL-INIT-extension */ +typedef struct Ver2_SUPL_INIT_extension { + NotificationMode_t *notificationMode; /* OPTIONAL */ + struct SupportedNetworkInformation *supportedNetworkInformation; /* OPTIONAL */ + TriggerType_t *triggerType; /* OPTIONAL */ + struct SLPAddress *e_SLPAddress; /* OPTIONAL */ + struct HistoricReporting *historicReporting; /* OPTIONAL */ + struct ProtectionLevel *protectionLevel; /* OPTIONAL */ + struct GNSSPosTechnology *gnssPosTechnology; /* OPTIONAL */ + long *minimumMajorVersion; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Ver2_SUPL_INIT_extension_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_INIT_extension; +extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_INIT_extension_specs_1; +extern asn_TYPE_member_t asn_MBR_Ver2_SUPL_INIT_extension_1[8]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Ver2_SUPL_INIT_extension_H_ */ +#include diff --git a/asn.1/supl_generated/Ver2-SUPL-POS-INIT-extension.c b/asn.1/supl_generated/Ver2-SUPL-POS-INIT-extension.c new file mode 100644 index 00000000..dcf01534 --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPL-POS-INIT-extension.c @@ -0,0 +1,107 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-SUPL-POS-INIT-extension.h" + +#include "MultipleLocationIds.h" +#include "UTRAN-GPSReferenceTimeResult.h" +#include "UTRAN-GANSSReferenceTimeResult.h" +asn_TYPE_member_t asn_MBR_Ver2_SUPL_POS_INIT_extension_1[] = { + { ATF_POINTER, 3, offsetof(struct Ver2_SUPL_POS_INIT_extension, multipleLocationIds), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MultipleLocationIds, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "multipleLocationIds" + }, + { ATF_POINTER, 2, offsetof(struct Ver2_SUPL_POS_INIT_extension, utran_GPSReferenceTimeResult), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTRAN_GPSReferenceTimeResult, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utran-GPSReferenceTimeResult" + }, + { ATF_POINTER, 1, offsetof(struct Ver2_SUPL_POS_INIT_extension, utran_GANSSReferenceTimeResult), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTRAN_GANSSReferenceTimeResult, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utran-GANSSReferenceTimeResult" + }, +}; +static const int asn_MAP_Ver2_SUPL_POS_INIT_extension_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_Ver2_SUPL_POS_INIT_extension_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPL_POS_INIT_extension_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* multipleLocationIds */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* utran-GPSReferenceTimeResult */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* utran-GANSSReferenceTimeResult */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_POS_INIT_extension_specs_1 = { + sizeof(struct Ver2_SUPL_POS_INIT_extension), + offsetof(struct Ver2_SUPL_POS_INIT_extension, _asn_ctx), + asn_MAP_Ver2_SUPL_POS_INIT_extension_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_Ver2_SUPL_POS_INIT_extension_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_POS_INIT_extension = { + "Ver2-SUPL-POS-INIT-extension", + "Ver2-SUPL-POS-INIT-extension", + &asn_OP_SEQUENCE, + asn_DEF_Ver2_SUPL_POS_INIT_extension_tags_1, + sizeof(asn_DEF_Ver2_SUPL_POS_INIT_extension_tags_1) + /sizeof(asn_DEF_Ver2_SUPL_POS_INIT_extension_tags_1[0]), /* 1 */ + asn_DEF_Ver2_SUPL_POS_INIT_extension_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver2_SUPL_POS_INIT_extension_tags_1) + /sizeof(asn_DEF_Ver2_SUPL_POS_INIT_extension_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ver2_SUPL_POS_INIT_extension_1, + 3, /* Elements count */ + &asn_SPC_Ver2_SUPL_POS_INIT_extension_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/Ver2-SUPL-POS-INIT-extension.h b/asn.1/supl_generated/Ver2-SUPL-POS-INIT-extension.h new file mode 100644 index 00000000..7fc8dd6b --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPL-POS-INIT-extension.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _Ver2_SUPL_POS_INIT_extension_H_ +#define _Ver2_SUPL_POS_INIT_extension_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct MultipleLocationIds; +struct UTRAN_GPSReferenceTimeResult; +struct UTRAN_GANSSReferenceTimeResult; + +/* Ver2-SUPL-POS-INIT-extension */ +typedef struct Ver2_SUPL_POS_INIT_extension { + struct MultipleLocationIds *multipleLocationIds; /* OPTIONAL */ + struct UTRAN_GPSReferenceTimeResult *utran_GPSReferenceTimeResult; /* OPTIONAL */ + struct UTRAN_GANSSReferenceTimeResult *utran_GANSSReferenceTimeResult; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Ver2_SUPL_POS_INIT_extension_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_POS_INIT_extension; +extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_POS_INIT_extension_specs_1; +extern asn_TYPE_member_t asn_MBR_Ver2_SUPL_POS_INIT_extension_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Ver2_SUPL_POS_INIT_extension_H_ */ +#include diff --git a/asn.1/supl_generated/Ver2-SUPL-POS-extension.c b/asn.1/supl_generated/Ver2-SUPL-POS-extension.c new file mode 100644 index 00000000..5808988d --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPL-POS-extension.c @@ -0,0 +1,126 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-SUPL-POS-extension.h" + +#include "UTRAN-GPSReferenceTimeAssistance.h" +#include "UTRAN-GPSReferenceTimeResult.h" +#include "UTRAN-GANSSReferenceTimeAssistance.h" +#include "UTRAN-GANSSReferenceTimeResult.h" +asn_TYPE_member_t asn_MBR_Ver2_SUPL_POS_extension_1[] = { + { ATF_POINTER, 4, offsetof(struct Ver2_SUPL_POS_extension, utran_GPSReferenceTimeAssistance), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTRAN_GPSReferenceTimeAssistance, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utran-GPSReferenceTimeAssistance" + }, + { ATF_POINTER, 3, offsetof(struct Ver2_SUPL_POS_extension, utran_GPSReferenceTimeResult), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTRAN_GPSReferenceTimeResult, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utran-GPSReferenceTimeResult" + }, + { ATF_POINTER, 2, offsetof(struct Ver2_SUPL_POS_extension, utran_GANSSReferenceTimeAssistance), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTRAN_GANSSReferenceTimeAssistance, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utran-GANSSReferenceTimeAssistance" + }, + { ATF_POINTER, 1, offsetof(struct Ver2_SUPL_POS_extension, utran_GANSSReferenceTimeResult), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTRAN_GANSSReferenceTimeResult, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "utran-GANSSReferenceTimeResult" + }, +}; +static const int asn_MAP_Ver2_SUPL_POS_extension_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_Ver2_SUPL_POS_extension_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPL_POS_extension_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utran-GPSReferenceTimeAssistance */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* utran-GPSReferenceTimeResult */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* utran-GANSSReferenceTimeAssistance */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* utran-GANSSReferenceTimeResult */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_POS_extension_specs_1 = { + sizeof(struct Ver2_SUPL_POS_extension), + offsetof(struct Ver2_SUPL_POS_extension, _asn_ctx), + asn_MAP_Ver2_SUPL_POS_extension_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_Ver2_SUPL_POS_extension_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_POS_extension = { + "Ver2-SUPL-POS-extension", + "Ver2-SUPL-POS-extension", + &asn_OP_SEQUENCE, + asn_DEF_Ver2_SUPL_POS_extension_tags_1, + sizeof(asn_DEF_Ver2_SUPL_POS_extension_tags_1) + /sizeof(asn_DEF_Ver2_SUPL_POS_extension_tags_1[0]), /* 1 */ + asn_DEF_Ver2_SUPL_POS_extension_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver2_SUPL_POS_extension_tags_1) + /sizeof(asn_DEF_Ver2_SUPL_POS_extension_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ver2_SUPL_POS_extension_1, + 4, /* Elements count */ + &asn_SPC_Ver2_SUPL_POS_extension_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/Ver2-SUPL-POS-extension.h b/asn.1/supl_generated/Ver2-SUPL-POS-extension.h new file mode 100644 index 00000000..5799a804 --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPL-POS-extension.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _Ver2_SUPL_POS_extension_H_ +#define _Ver2_SUPL_POS_extension_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct UTRAN_GPSReferenceTimeAssistance; +struct UTRAN_GPSReferenceTimeResult; +struct UTRAN_GANSSReferenceTimeAssistance; +struct UTRAN_GANSSReferenceTimeResult; + +/* Ver2-SUPL-POS-extension */ +typedef struct Ver2_SUPL_POS_extension { + struct UTRAN_GPSReferenceTimeAssistance *utran_GPSReferenceTimeAssistance; /* OPTIONAL */ + struct UTRAN_GPSReferenceTimeResult *utran_GPSReferenceTimeResult; /* OPTIONAL */ + struct UTRAN_GANSSReferenceTimeAssistance *utran_GANSSReferenceTimeAssistance; /* OPTIONAL */ + struct UTRAN_GANSSReferenceTimeResult *utran_GANSSReferenceTimeResult; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Ver2_SUPL_POS_extension_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_POS_extension; +extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_POS_extension_specs_1; +extern asn_TYPE_member_t asn_MBR_Ver2_SUPL_POS_extension_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Ver2_SUPL_POS_extension_H_ */ +#include diff --git a/asn.1/supl_generated/Ver2-SUPL-RESPONSE-extension.c b/asn.1/supl_generated/Ver2-SUPL-RESPONSE-extension.c new file mode 100644 index 00000000..886926d0 --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPL-RESPONSE-extension.c @@ -0,0 +1,162 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-SUPL-RESPONSE-extension.h" + +#include "SupportedNetworkInformation.h" +#include "SPCTID.h" +#include "Position.h" +#include "GNSSPosTechnology.h" +asn_TYPE_member_t asn_MBR_Ver2_SUPL_RESPONSE_extension_1[] = { + { ATF_POINTER, 6, offsetof(struct Ver2_SUPL_RESPONSE_extension, supportedNetworkInformation), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SupportedNetworkInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportedNetworkInformation" + }, + { ATF_POINTER, 5, offsetof(struct Ver2_SUPL_RESPONSE_extension, sPCSETKey), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SPCSETKey, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sPCSETKey" + }, + { ATF_POINTER, 4, offsetof(struct Ver2_SUPL_RESPONSE_extension, sPCTID), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SPCTID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sPCTID" + }, + { ATF_POINTER, 3, offsetof(struct Ver2_SUPL_RESPONSE_extension, sPCSETKeylifetime), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SPCSETKeylifetime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sPCSETKeylifetime" + }, + { ATF_POINTER, 2, offsetof(struct Ver2_SUPL_RESPONSE_extension, initialApproximateposition), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Position, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "initialApproximateposition" + }, + { ATF_POINTER, 1, offsetof(struct Ver2_SUPL_RESPONSE_extension, gnssPosTechnology), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSSPosTechnology, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnssPosTechnology" + }, +}; +static const int asn_MAP_Ver2_SUPL_RESPONSE_extension_oms_1[] = { 0, 1, 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_Ver2_SUPL_RESPONSE_extension_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPL_RESPONSE_extension_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* supportedNetworkInformation */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sPCSETKey */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sPCTID */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* sPCSETKeylifetime */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* initialApproximateposition */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* gnssPosTechnology */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_RESPONSE_extension_specs_1 = { + sizeof(struct Ver2_SUPL_RESPONSE_extension), + offsetof(struct Ver2_SUPL_RESPONSE_extension, _asn_ctx), + asn_MAP_Ver2_SUPL_RESPONSE_extension_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_Ver2_SUPL_RESPONSE_extension_oms_1, /* Optional members */ + 6, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_RESPONSE_extension = { + "Ver2-SUPL-RESPONSE-extension", + "Ver2-SUPL-RESPONSE-extension", + &asn_OP_SEQUENCE, + asn_DEF_Ver2_SUPL_RESPONSE_extension_tags_1, + sizeof(asn_DEF_Ver2_SUPL_RESPONSE_extension_tags_1) + /sizeof(asn_DEF_Ver2_SUPL_RESPONSE_extension_tags_1[0]), /* 1 */ + asn_DEF_Ver2_SUPL_RESPONSE_extension_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver2_SUPL_RESPONSE_extension_tags_1) + /sizeof(asn_DEF_Ver2_SUPL_RESPONSE_extension_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ver2_SUPL_RESPONSE_extension_1, + 6, /* Elements count */ + &asn_SPC_Ver2_SUPL_RESPONSE_extension_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/Ver2-SUPL-RESPONSE-extension.h b/asn.1/supl_generated/Ver2-SUPL-RESPONSE-extension.h new file mode 100644 index 00000000..dc14cdfd --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPL-RESPONSE-extension.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _Ver2_SUPL_RESPONSE_extension_H_ +#define _Ver2_SUPL_RESPONSE_extension_H_ + + +#include + +/* Including external dependencies */ +#include "SPCSETKey.h" +#include "SPCSETKeylifetime.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SupportedNetworkInformation; +struct SPCTID; +struct Position; +struct GNSSPosTechnology; + +/* Ver2-SUPL-RESPONSE-extension */ +typedef struct Ver2_SUPL_RESPONSE_extension { + struct SupportedNetworkInformation *supportedNetworkInformation; /* OPTIONAL */ + SPCSETKey_t *sPCSETKey; /* OPTIONAL */ + struct SPCTID *sPCTID; /* OPTIONAL */ + SPCSETKeylifetime_t *sPCSETKeylifetime; /* OPTIONAL */ + struct Position *initialApproximateposition; /* OPTIONAL */ + struct GNSSPosTechnology *gnssPosTechnology; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Ver2_SUPL_RESPONSE_extension_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_RESPONSE_extension; +extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_RESPONSE_extension_specs_1; +extern asn_TYPE_member_t asn_MBR_Ver2_SUPL_RESPONSE_extension_1[6]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Ver2_SUPL_RESPONSE_extension_H_ */ +#include diff --git a/asn.1/supl_generated/Ver2-SUPL-START-extension.c b/asn.1/supl_generated/Ver2-SUPL-START-extension.c new file mode 100644 index 00000000..f0b92bbf --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPL-START-extension.c @@ -0,0 +1,126 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-SUPL-START-extension.h" + +#include "MultipleLocationIds.h" +#include "ThirdParty.h" +#include "ApplicationID.h" +#include "Position.h" +asn_TYPE_member_t asn_MBR_Ver2_SUPL_START_extension_1[] = { + { ATF_POINTER, 4, offsetof(struct Ver2_SUPL_START_extension, multipleLocationIds), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MultipleLocationIds, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "multipleLocationIds" + }, + { ATF_POINTER, 3, offsetof(struct Ver2_SUPL_START_extension, thirdParty), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ThirdParty, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "thirdParty" + }, + { ATF_POINTER, 2, offsetof(struct Ver2_SUPL_START_extension, applicationID), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ApplicationID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "applicationID" + }, + { ATF_POINTER, 1, offsetof(struct Ver2_SUPL_START_extension, position), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Position, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "position" + }, +}; +static const int asn_MAP_Ver2_SUPL_START_extension_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_Ver2_SUPL_START_extension_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPL_START_extension_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* multipleLocationIds */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* thirdParty */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* applicationID */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* position */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_START_extension_specs_1 = { + sizeof(struct Ver2_SUPL_START_extension), + offsetof(struct Ver2_SUPL_START_extension, _asn_ctx), + asn_MAP_Ver2_SUPL_START_extension_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_Ver2_SUPL_START_extension_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_START_extension = { + "Ver2-SUPL-START-extension", + "Ver2-SUPL-START-extension", + &asn_OP_SEQUENCE, + asn_DEF_Ver2_SUPL_START_extension_tags_1, + sizeof(asn_DEF_Ver2_SUPL_START_extension_tags_1) + /sizeof(asn_DEF_Ver2_SUPL_START_extension_tags_1[0]), /* 1 */ + asn_DEF_Ver2_SUPL_START_extension_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver2_SUPL_START_extension_tags_1) + /sizeof(asn_DEF_Ver2_SUPL_START_extension_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ver2_SUPL_START_extension_1, + 4, /* Elements count */ + &asn_SPC_Ver2_SUPL_START_extension_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/Ver2-SUPL-START-extension.h b/asn.1/supl_generated/Ver2-SUPL-START-extension.h new file mode 100644 index 00000000..25834923 --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPL-START-extension.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Version-2-message-extensions" + * found in "src/ULP-Version-2-message-extensions.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _Ver2_SUPL_START_extension_H_ +#define _Ver2_SUPL_START_extension_H_ + + +#include + +/* Including external dependencies */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct MultipleLocationIds; +struct ThirdParty; +struct ApplicationID; +struct Position; + +/* Ver2-SUPL-START-extension */ +typedef struct Ver2_SUPL_START_extension { + struct MultipleLocationIds *multipleLocationIds; /* OPTIONAL */ + struct ThirdParty *thirdParty; /* OPTIONAL */ + struct ApplicationID *applicationID; /* OPTIONAL */ + struct Position *position; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Ver2_SUPL_START_extension_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPL_START_extension; +extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPL_START_extension_specs_1; +extern asn_TYPE_member_t asn_MBR_Ver2_SUPL_START_extension_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Ver2_SUPL_START_extension_H_ */ +#include diff --git a/asn.1/supl_generated/Ver2-SUPLNOTIFY.c b/asn.1/supl_generated/Ver2-SUPLNOTIFY.c new file mode 100644 index 00000000..7500fcd3 --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPLNOTIFY.c @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-NOTIFY" + * found in "src/SUPL-NOTIFY.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-SUPLNOTIFY.h" + +asn_TYPE_member_t asn_MBR_Ver2_SUPLNOTIFY_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Ver2_SUPLNOTIFY, notification), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Notification, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "notification" + }, +}; +static const ber_tlv_tag_t asn_DEF_Ver2_SUPLNOTIFY_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPLNOTIFY_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* notification */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLNOTIFY_specs_1 = { + sizeof(struct Ver2_SUPLNOTIFY), + offsetof(struct Ver2_SUPLNOTIFY, _asn_ctx), + asn_MAP_Ver2_SUPLNOTIFY_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLNOTIFY = { + "Ver2-SUPLNOTIFY", + "Ver2-SUPLNOTIFY", + &asn_OP_SEQUENCE, + asn_DEF_Ver2_SUPLNOTIFY_tags_1, + sizeof(asn_DEF_Ver2_SUPLNOTIFY_tags_1) + /sizeof(asn_DEF_Ver2_SUPLNOTIFY_tags_1[0]), /* 1 */ + asn_DEF_Ver2_SUPLNOTIFY_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver2_SUPLNOTIFY_tags_1) + /sizeof(asn_DEF_Ver2_SUPLNOTIFY_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ver2_SUPLNOTIFY_1, + 1, /* Elements count */ + &asn_SPC_Ver2_SUPLNOTIFY_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Ver2-SUPLNOTIFY.h b/asn.1/supl_generated/Ver2-SUPLNOTIFY.h similarity index 78% rename from asn.1/generated/Ver2-SUPLNOTIFY.h rename to asn.1/supl_generated/Ver2-SUPLNOTIFY.h index 591f3f5c..16926e8e 100644 --- a/asn.1/generated/Ver2-SUPLNOTIFY.h +++ b/asn.1/supl_generated/Ver2-SUPLNOTIFY.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-NOTIFY" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-NOTIFY.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _Ver2_SUPLNOTIFY_H_ diff --git a/asn.1/supl_generated/Ver2-SUPLNOTIFYRESPONSE.c b/asn.1/supl_generated/Ver2-SUPLNOTIFYRESPONSE.c new file mode 100644 index 00000000..be7b8fe4 --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPLNOTIFYRESPONSE.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-NOTIFY-RESPONSE" + * found in "src/SUPL-NOTIFY-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-SUPLNOTIFYRESPONSE.h" + +asn_TYPE_member_t asn_MBR_Ver2_SUPLNOTIFYRESPONSE_1[] = { + { ATF_POINTER, 1, offsetof(struct Ver2_SUPLNOTIFYRESPONSE, notificationResponse), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NotificationResponse, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "notificationResponse" + }, +}; +static const int asn_MAP_Ver2_SUPLNOTIFYRESPONSE_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_Ver2_SUPLNOTIFYRESPONSE_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPLNOTIFYRESPONSE_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* notificationResponse */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLNOTIFYRESPONSE_specs_1 = { + sizeof(struct Ver2_SUPLNOTIFYRESPONSE), + offsetof(struct Ver2_SUPLNOTIFYRESPONSE, _asn_ctx), + asn_MAP_Ver2_SUPLNOTIFYRESPONSE_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_Ver2_SUPLNOTIFYRESPONSE_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLNOTIFYRESPONSE = { + "Ver2-SUPLNOTIFYRESPONSE", + "Ver2-SUPLNOTIFYRESPONSE", + &asn_OP_SEQUENCE, + asn_DEF_Ver2_SUPLNOTIFYRESPONSE_tags_1, + sizeof(asn_DEF_Ver2_SUPLNOTIFYRESPONSE_tags_1) + /sizeof(asn_DEF_Ver2_SUPLNOTIFYRESPONSE_tags_1[0]), /* 1 */ + asn_DEF_Ver2_SUPLNOTIFYRESPONSE_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver2_SUPLNOTIFYRESPONSE_tags_1) + /sizeof(asn_DEF_Ver2_SUPLNOTIFYRESPONSE_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ver2_SUPLNOTIFYRESPONSE_1, + 1, /* Elements count */ + &asn_SPC_Ver2_SUPLNOTIFYRESPONSE_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/Ver2-SUPLNOTIFYRESPONSE.h b/asn.1/supl_generated/Ver2-SUPLNOTIFYRESPONSE.h new file mode 100644 index 00000000..7caccfbb --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPLNOTIFYRESPONSE.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-NOTIFY-RESPONSE" + * found in "src/SUPL-NOTIFY-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _Ver2_SUPLNOTIFYRESPONSE_H_ +#define _Ver2_SUPLNOTIFYRESPONSE_H_ + + +#include + +/* Including external dependencies */ +#include "NotificationResponse.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Ver2-SUPLNOTIFYRESPONSE */ +typedef struct Ver2_SUPLNOTIFYRESPONSE { + NotificationResponse_t *notificationResponse; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Ver2_SUPLNOTIFYRESPONSE_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLNOTIFYRESPONSE; +extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLNOTIFYRESPONSE_specs_1; +extern asn_TYPE_member_t asn_MBR_Ver2_SUPLNOTIFYRESPONSE_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Ver2_SUPLNOTIFYRESPONSE_H_ */ +#include diff --git a/asn.1/supl_generated/Ver2-SUPLREPORT.c b/asn.1/supl_generated/Ver2-SUPLREPORT.c new file mode 100644 index 00000000..567c3704 --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPLREPORT.c @@ -0,0 +1,143 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-REPORT" + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-SUPLREPORT.h" + +#include "SessionList.h" +#include "SETCapabilities.h" +#include "ReportDataList.h" +asn_TYPE_member_t asn_MBR_Ver2_SUPLREPORT_1[] = { + { ATF_POINTER, 5, offsetof(struct Ver2_SUPLREPORT, sessionList), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SessionList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sessionList" + }, + { ATF_POINTER, 4, offsetof(struct Ver2_SUPLREPORT, sETCapabilities), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SETCapabilities, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sETCapabilities" + }, + { ATF_POINTER, 3, offsetof(struct Ver2_SUPLREPORT, reportDataList), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReportDataList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reportDataList" + }, + { ATF_POINTER, 2, offsetof(struct Ver2_SUPLREPORT, ver), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ver" + }, + { ATF_POINTER, 1, offsetof(struct Ver2_SUPLREPORT, moreComponents), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NULL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "moreComponents" + }, +}; +static const int asn_MAP_Ver2_SUPLREPORT_oms_1[] = { 0, 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_Ver2_SUPLREPORT_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPLREPORT_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sessionList */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sETCapabilities */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* reportDataList */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ver */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* moreComponents */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLREPORT_specs_1 = { + sizeof(struct Ver2_SUPLREPORT), + offsetof(struct Ver2_SUPLREPORT, _asn_ctx), + asn_MAP_Ver2_SUPLREPORT_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_Ver2_SUPLREPORT_oms_1, /* Optional members */ + 5, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLREPORT = { + "Ver2-SUPLREPORT", + "Ver2-SUPLREPORT", + &asn_OP_SEQUENCE, + asn_DEF_Ver2_SUPLREPORT_tags_1, + sizeof(asn_DEF_Ver2_SUPLREPORT_tags_1) + /sizeof(asn_DEF_Ver2_SUPLREPORT_tags_1[0]), /* 1 */ + asn_DEF_Ver2_SUPLREPORT_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver2_SUPLREPORT_tags_1) + /sizeof(asn_DEF_Ver2_SUPLREPORT_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ver2_SUPLREPORT_1, + 5, /* Elements count */ + &asn_SPC_Ver2_SUPLREPORT_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/Ver2-SUPLREPORT.h b/asn.1/supl_generated/Ver2-SUPLREPORT.h new file mode 100644 index 00000000..f394ab62 --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPLREPORT.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-REPORT" + * found in "src/SUPL-REPORT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _Ver2_SUPLREPORT_H_ +#define _Ver2_SUPLREPORT_H_ + + +#include + +/* Including external dependencies */ +#include "Ver.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SessionList; +struct SETCapabilities; +struct ReportDataList; + +/* Ver2-SUPLREPORT */ +typedef struct Ver2_SUPLREPORT { + struct SessionList *sessionList; /* OPTIONAL */ + struct SETCapabilities *sETCapabilities; /* OPTIONAL */ + struct ReportDataList *reportDataList; /* OPTIONAL */ + Ver_t *ver; /* OPTIONAL */ + NULL_t *moreComponents; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Ver2_SUPLREPORT_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLREPORT; +extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLREPORT_specs_1; +extern asn_TYPE_member_t asn_MBR_Ver2_SUPLREPORT_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Ver2_SUPLREPORT_H_ */ +#include diff --git a/asn.1/supl_generated/Ver2-SUPLSETINIT.c b/asn.1/supl_generated/Ver2-SUPLSETINIT.c new file mode 100644 index 00000000..d574fe74 --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPLSETINIT.c @@ -0,0 +1,106 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-SET-INIT" + * found in "src/SUPL-SET-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-SUPLSETINIT.h" + +#include "QoP.h" +#include "ApplicationID.h" +asn_TYPE_member_t asn_MBR_Ver2_SUPLSETINIT_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Ver2_SUPLSETINIT, targetSETID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_SETId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "targetSETID" + }, + { ATF_POINTER, 2, offsetof(struct Ver2_SUPLSETINIT, qoP), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_QoP, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "qoP" + }, + { ATF_POINTER, 1, offsetof(struct Ver2_SUPLSETINIT, applicationID), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ApplicationID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "applicationID" + }, +}; +static const int asn_MAP_Ver2_SUPLSETINIT_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_Ver2_SUPLSETINIT_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPLSETINIT_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* targetSETID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* qoP */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* applicationID */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLSETINIT_specs_1 = { + sizeof(struct Ver2_SUPLSETINIT), + offsetof(struct Ver2_SUPLSETINIT, _asn_ctx), + asn_MAP_Ver2_SUPLSETINIT_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_Ver2_SUPLSETINIT_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLSETINIT = { + "Ver2-SUPLSETINIT", + "Ver2-SUPLSETINIT", + &asn_OP_SEQUENCE, + asn_DEF_Ver2_SUPLSETINIT_tags_1, + sizeof(asn_DEF_Ver2_SUPLSETINIT_tags_1) + /sizeof(asn_DEF_Ver2_SUPLSETINIT_tags_1[0]), /* 1 */ + asn_DEF_Ver2_SUPLSETINIT_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver2_SUPLSETINIT_tags_1) + /sizeof(asn_DEF_Ver2_SUPLSETINIT_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ver2_SUPLSETINIT_1, + 3, /* Elements count */ + &asn_SPC_Ver2_SUPLSETINIT_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/Ver2-SUPLSETINIT.h b/asn.1/supl_generated/Ver2-SUPLSETINIT.h new file mode 100644 index 00000000..f04d3b88 --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPLSETINIT.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-SET-INIT" + * found in "src/SUPL-SET-INIT.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _Ver2_SUPLSETINIT_H_ +#define _Ver2_SUPLSETINIT_H_ + + +#include + +/* Including external dependencies */ +#include "SETId.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct QoP; +struct ApplicationID; + +/* Ver2-SUPLSETINIT */ +typedef struct Ver2_SUPLSETINIT { + SETId_t targetSETID; + struct QoP *qoP; /* OPTIONAL */ + struct ApplicationID *applicationID; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Ver2_SUPLSETINIT_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLSETINIT; +extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLSETINIT_specs_1; +extern asn_TYPE_member_t asn_MBR_Ver2_SUPLSETINIT_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Ver2_SUPLSETINIT_H_ */ +#include diff --git a/asn.1/supl_generated/Ver2-SUPLTRIGGEREDRESPONSE.c b/asn.1/supl_generated/Ver2-SUPLTRIGGEREDRESPONSE.c new file mode 100644 index 00000000..0f541ea6 --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPLTRIGGEREDRESPONSE.c @@ -0,0 +1,218 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-RESPONSE" + * found in "src/SUPL-TRIGGERED-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-SUPLTRIGGEREDRESPONSE.h" + +#include "TriggerParams.h" +#include "SLPAddress.h" +#include "SupportedNetworkInformation.h" +#include "ReportingMode.h" +#include "SPCTID.h" +#include "GNSSPosTechnology.h" +asn_TYPE_member_t asn_MBR_Ver2_SUPLTRIGGEREDRESPONSE_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, posMethod), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosMethod, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posMethod" + }, + { ATF_POINTER, 8, offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, triggerParams), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_TriggerParams, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "triggerParams" + }, + { ATF_POINTER, 7, offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, sLPAddress), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_SLPAddress, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sLPAddress" + }, + { ATF_POINTER, 6, offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, supportedNetworkInformation), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SupportedNetworkInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "supportedNetworkInformation" + }, + { ATF_POINTER, 5, offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, reportingMode), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReportingMode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reportingMode" + }, + { ATF_POINTER, 4, offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, sPCSETKey), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SPCSETKey, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sPCSETKey" + }, + { ATF_POINTER, 3, offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, sPCTID), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SPCTID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sPCTID" + }, + { ATF_POINTER, 2, offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, sPCSETKeylifetime), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SPCSETKeylifetime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sPCSETKeylifetime" + }, + { ATF_POINTER, 1, offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, gnssPosTechnology), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GNSSPosTechnology, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "gnssPosTechnology" + }, +}; +static const int asn_MAP_Ver2_SUPLTRIGGEREDRESPONSE_oms_1[] = { 1, 2, 3, 4, 5, 6, 7, 8 }; +static const ber_tlv_tag_t asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPLTRIGGEREDRESPONSE_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* posMethod */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* triggerParams */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sLPAddress */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* supportedNetworkInformation */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* reportingMode */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* sPCSETKey */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* sPCTID */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* sPCSETKeylifetime */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* gnssPosTechnology */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLTRIGGEREDRESPONSE_specs_1 = { + sizeof(struct Ver2_SUPLTRIGGEREDRESPONSE), + offsetof(struct Ver2_SUPLTRIGGEREDRESPONSE, _asn_ctx), + asn_MAP_Ver2_SUPLTRIGGEREDRESPONSE_tag2el_1, + 9, /* Count of tags in the map */ + asn_MAP_Ver2_SUPLTRIGGEREDRESPONSE_oms_1, /* Optional members */ + 8, 0, /* Root/Additions */ + 9, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE = { + "Ver2-SUPLTRIGGEREDRESPONSE", + "Ver2-SUPLTRIGGEREDRESPONSE", + &asn_OP_SEQUENCE, + asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE_tags_1, + sizeof(asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE_tags_1) + /sizeof(asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE_tags_1[0]), /* 1 */ + asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE_tags_1) + /sizeof(asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ver2_SUPLTRIGGEREDRESPONSE_1, + 9, /* Elements count */ + &asn_SPC_Ver2_SUPLTRIGGEREDRESPONSE_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/Ver2-SUPLTRIGGEREDRESPONSE.h b/asn.1/supl_generated/Ver2-SUPLTRIGGEREDRESPONSE.h new file mode 100644 index 00000000..be87d60d --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPLTRIGGEREDRESPONSE.h @@ -0,0 +1,62 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-RESPONSE" + * found in "src/SUPL-TRIGGERED-RESPONSE.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _Ver2_SUPLTRIGGEREDRESPONSE_H_ +#define _Ver2_SUPLTRIGGEREDRESPONSE_H_ + + +#include + +/* Including external dependencies */ +#include "PosMethod.h" +#include "SPCSETKey.h" +#include "SPCSETKeylifetime.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct TriggerParams; +struct SLPAddress; +struct SupportedNetworkInformation; +struct ReportingMode; +struct SPCTID; +struct GNSSPosTechnology; + +/* Ver2-SUPLTRIGGEREDRESPONSE */ +typedef struct Ver2_SUPLTRIGGEREDRESPONSE { + PosMethod_t posMethod; + struct TriggerParams *triggerParams; /* OPTIONAL */ + struct SLPAddress *sLPAddress; /* OPTIONAL */ + struct SupportedNetworkInformation *supportedNetworkInformation; /* OPTIONAL */ + struct ReportingMode *reportingMode; /* OPTIONAL */ + SPCSETKey_t *sPCSETKey; /* OPTIONAL */ + struct SPCTID *sPCTID; /* OPTIONAL */ + SPCSETKeylifetime_t *sPCSETKeylifetime; /* OPTIONAL */ + struct GNSSPosTechnology *gnssPosTechnology; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Ver2_SUPLTRIGGEREDRESPONSE_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLTRIGGEREDRESPONSE; +extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLTRIGGEREDRESPONSE_specs_1; +extern asn_TYPE_member_t asn_MBR_Ver2_SUPLTRIGGEREDRESPONSE_1[9]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Ver2_SUPLTRIGGEREDRESPONSE_H_ */ +#include diff --git a/asn.1/supl_generated/Ver2-SUPLTRIGGEREDSTART.c b/asn.1/supl_generated/Ver2-SUPLTRIGGEREDSTART.c new file mode 100644 index 00000000..6ee44732 --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPLTRIGGEREDSTART.c @@ -0,0 +1,273 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-SUPLTRIGGEREDSTART.h" + +#include "QoP.h" +#include "MultipleLocationIds.h" +#include "ThirdParty.h" +#include "ApplicationID.h" +#include "TriggerParams.h" +#include "Position.h" +#include "ReportingCap.h" +asn_TYPE_member_t asn_MBR_Ver2_SUPLTRIGGEREDSTART_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Ver2_SUPLTRIGGEREDSTART, sETCapabilities), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SETCapabilities, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sETCapabilities" + }, + { ATF_NOFLAGS, 0, offsetof(struct Ver2_SUPLTRIGGEREDSTART, locationId), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "locationId" + }, + { ATF_POINTER, 10, offsetof(struct Ver2_SUPLTRIGGEREDSTART, ver), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ver, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ver" + }, + { ATF_POINTER, 9, offsetof(struct Ver2_SUPLTRIGGEREDSTART, qoP), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_QoP, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "qoP" + }, + { ATF_POINTER, 8, offsetof(struct Ver2_SUPLTRIGGEREDSTART, multipleLocationIds), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MultipleLocationIds, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "multipleLocationIds" + }, + { ATF_POINTER, 7, offsetof(struct Ver2_SUPLTRIGGEREDSTART, thirdParty), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ThirdParty, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "thirdParty" + }, + { ATF_POINTER, 6, offsetof(struct Ver2_SUPLTRIGGEREDSTART, applicationID), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ApplicationID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "applicationID" + }, + { ATF_POINTER, 5, offsetof(struct Ver2_SUPLTRIGGEREDSTART, triggerType), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TriggerType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "triggerType" + }, + { ATF_POINTER, 4, offsetof(struct Ver2_SUPLTRIGGEREDSTART, triggerParams), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_TriggerParams, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "triggerParams" + }, + { ATF_POINTER, 3, offsetof(struct Ver2_SUPLTRIGGEREDSTART, position), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Position, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "position" + }, + { ATF_POINTER, 2, offsetof(struct Ver2_SUPLTRIGGEREDSTART, reportingCap), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReportingCap, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reportingCap" + }, + { ATF_POINTER, 1, offsetof(struct Ver2_SUPLTRIGGEREDSTART, causeCode), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "causeCode" + }, +}; +static const int asn_MAP_Ver2_SUPLTRIGGEREDSTART_oms_1[] = { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static const ber_tlv_tag_t asn_DEF_Ver2_SUPLTRIGGEREDSTART_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPLTRIGGEREDSTART_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sETCapabilities */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* locationId */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ver */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* qoP */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* multipleLocationIds */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* thirdParty */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* applicationID */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* triggerType */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* triggerParams */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* position */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* reportingCap */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* causeCode */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLTRIGGEREDSTART_specs_1 = { + sizeof(struct Ver2_SUPLTRIGGEREDSTART), + offsetof(struct Ver2_SUPLTRIGGEREDSTART, _asn_ctx), + asn_MAP_Ver2_SUPLTRIGGEREDSTART_tag2el_1, + 12, /* Count of tags in the map */ + asn_MAP_Ver2_SUPLTRIGGEREDSTART_oms_1, /* Optional members */ + 10, 0, /* Root/Additions */ + 12, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLTRIGGEREDSTART = { + "Ver2-SUPLTRIGGEREDSTART", + "Ver2-SUPLTRIGGEREDSTART", + &asn_OP_SEQUENCE, + asn_DEF_Ver2_SUPLTRIGGEREDSTART_tags_1, + sizeof(asn_DEF_Ver2_SUPLTRIGGEREDSTART_tags_1) + /sizeof(asn_DEF_Ver2_SUPLTRIGGEREDSTART_tags_1[0]), /* 1 */ + asn_DEF_Ver2_SUPLTRIGGEREDSTART_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver2_SUPLTRIGGEREDSTART_tags_1) + /sizeof(asn_DEF_Ver2_SUPLTRIGGEREDSTART_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ver2_SUPLTRIGGEREDSTART_1, + 12, /* Elements count */ + &asn_SPC_Ver2_SUPLTRIGGEREDSTART_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/Ver2-SUPLTRIGGEREDSTART.h b/asn.1/supl_generated/Ver2-SUPLTRIGGEREDSTART.h new file mode 100644 index 00000000..a095c290 --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPLTRIGGEREDSTART.h @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _Ver2_SUPLTRIGGEREDSTART_H_ +#define _Ver2_SUPLTRIGGEREDSTART_H_ + + +#include + +/* Including external dependencies */ +#include "SETCapabilities.h" +#include "LocationId.h" +#include "Ver.h" +#include "TriggerType.h" +#include "CauseCode.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct QoP; +struct MultipleLocationIds; +struct ThirdParty; +struct ApplicationID; +struct TriggerParams; +struct Position; +struct ReportingCap; + +/* Ver2-SUPLTRIGGEREDSTART */ +typedef struct Ver2_SUPLTRIGGEREDSTART { + SETCapabilities_t sETCapabilities; + LocationId_t locationId; + Ver_t *ver; /* OPTIONAL */ + struct QoP *qoP; /* OPTIONAL */ + struct MultipleLocationIds *multipleLocationIds; /* OPTIONAL */ + struct ThirdParty *thirdParty; /* OPTIONAL */ + struct ApplicationID *applicationID; /* OPTIONAL */ + TriggerType_t *triggerType; /* OPTIONAL */ + struct TriggerParams *triggerParams; /* OPTIONAL */ + struct Position *position; /* OPTIONAL */ + struct ReportingCap *reportingCap; /* OPTIONAL */ + CauseCode_t *causeCode; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Ver2_SUPLTRIGGEREDSTART_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLTRIGGEREDSTART; +extern asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLTRIGGEREDSTART_specs_1; +extern asn_TYPE_member_t asn_MBR_Ver2_SUPLTRIGGEREDSTART_1[12]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Ver2_SUPLTRIGGEREDSTART_H_ */ +#include diff --git a/asn.1/supl_generated/Ver2-SUPLTRIGGEREDSTOP.c b/asn.1/supl_generated/Ver2-SUPLTRIGGEREDSTOP.c new file mode 100644 index 00000000..37d97d8e --- /dev/null +++ b/asn.1/supl_generated/Ver2-SUPLTRIGGEREDSTOP.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-STOP" + * found in "src/SUPL-TRIGGERED-STOP.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Ver2-SUPLTRIGGEREDSTOP.h" + +asn_TYPE_member_t asn_MBR_Ver2_SUPLTRIGGEREDSTOP_1[] = { + { ATF_POINTER, 1, offsetof(struct Ver2_SUPLTRIGGEREDSTOP, statusCode), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StatusCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "statusCode" + }, +}; +static const int asn_MAP_Ver2_SUPLTRIGGEREDSTOP_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_Ver2_SUPLTRIGGEREDSTOP_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Ver2_SUPLTRIGGEREDSTOP_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* statusCode */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Ver2_SUPLTRIGGEREDSTOP_specs_1 = { + sizeof(struct Ver2_SUPLTRIGGEREDSTOP), + offsetof(struct Ver2_SUPLTRIGGEREDSTOP, _asn_ctx), + asn_MAP_Ver2_SUPLTRIGGEREDSTOP_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_Ver2_SUPLTRIGGEREDSTOP_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Ver2_SUPLTRIGGEREDSTOP = { + "Ver2-SUPLTRIGGEREDSTOP", + "Ver2-SUPLTRIGGEREDSTOP", + &asn_OP_SEQUENCE, + asn_DEF_Ver2_SUPLTRIGGEREDSTOP_tags_1, + sizeof(asn_DEF_Ver2_SUPLTRIGGEREDSTOP_tags_1) + /sizeof(asn_DEF_Ver2_SUPLTRIGGEREDSTOP_tags_1[0]), /* 1 */ + asn_DEF_Ver2_SUPLTRIGGEREDSTOP_tags_1, /* Same as above */ + sizeof(asn_DEF_Ver2_SUPLTRIGGEREDSTOP_tags_1) + /sizeof(asn_DEF_Ver2_SUPLTRIGGEREDSTOP_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Ver2_SUPLTRIGGEREDSTOP_1, + 1, /* Elements count */ + &asn_SPC_Ver2_SUPLTRIGGEREDSTOP_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/Ver2-SUPLTRIGGEREDSTOP.h b/asn.1/supl_generated/Ver2-SUPLTRIGGEREDSTOP.h similarity index 75% rename from asn.1/generated/Ver2-SUPLTRIGGEREDSTOP.h rename to asn.1/supl_generated/Ver2-SUPLTRIGGEREDSTOP.h index 1d878f21..95818efe 100644 --- a/asn.1/generated/Ver2-SUPLTRIGGEREDSTOP.h +++ b/asn.1/supl_generated/Ver2-SUPLTRIGGEREDSTOP.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-TRIGGERED-STOP" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-TRIGGERED-STOP.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _Ver2_SUPLTRIGGEREDSTOP_H_ @@ -21,7 +21,7 @@ extern "C" { /* Ver2-SUPLTRIGGEREDSTOP */ typedef struct Ver2_SUPLTRIGGEREDSTOP { - StatusCode_t *statusCode /* OPTIONAL */; + StatusCode_t *statusCode; /* OPTIONAL */ /* * This type is extensible, * possible extensions are below. diff --git a/asn.1/supl_generated/Version.c b/asn.1/supl_generated/Version.c new file mode 100644 index 00000000..7295a4fd --- /dev/null +++ b/asn.1/supl_generated/Version.c @@ -0,0 +1,198 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "Version.h" + +static int +memb_maj_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_min_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_servind_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_maj_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_min_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_servind_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Version_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Version, maj), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_maj_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_maj_constraint_1 + }, + 0, 0, /* No default value */ + "maj" + }, + { ATF_NOFLAGS, 0, offsetof(struct Version, min), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_min_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_min_constraint_1 + }, + 0, 0, /* No default value */ + "min" + }, + { ATF_NOFLAGS, 0, offsetof(struct Version, servind), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_servind_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_servind_constraint_1 + }, + 0, 0, /* No default value */ + "servind" + }, +}; +static const ber_tlv_tag_t asn_DEF_Version_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Version_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maj */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* min */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* servind */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Version_specs_1 = { + sizeof(struct Version), + offsetof(struct Version, _asn_ctx), + asn_MAP_Version_tag2el_1, + 3, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_Version = { + "Version", + "Version", + &asn_OP_SEQUENCE, + asn_DEF_Version_tags_1, + sizeof(asn_DEF_Version_tags_1) + /sizeof(asn_DEF_Version_tags_1[0]), /* 1 */ + asn_DEF_Version_tags_1, /* Same as above */ + sizeof(asn_DEF_Version_tags_1) + /sizeof(asn_DEF_Version_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Version_1, + 3, /* Elements count */ + &asn_SPC_Version_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/Version.h b/asn.1/supl_generated/Version.h new file mode 100644 index 00000000..bddacc24 --- /dev/null +++ b/asn.1/supl_generated/Version.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _Version_H_ +#define _Version_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Version */ +typedef struct Version { + long maj; + long min; + long servind; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Version_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Version; +extern asn_SEQUENCE_specifics_t asn_SPC_Version_specs_1; +extern asn_TYPE_member_t asn_MBR_Version_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Version_H_ */ +#include diff --git a/asn.1/supl_generated/WCDMAAreaId.c b/asn.1/supl_generated/WCDMAAreaId.c new file mode 100644 index 00000000..f1021397 --- /dev/null +++ b/asn.1/supl_generated/WCDMAAreaId.c @@ -0,0 +1,250 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "WCDMAAreaId.h" + +static int +memb_refMCC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refMNC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refLAC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refUC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 268435455L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refMCC_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refMNC_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refLAC_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refUC_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 28, -1, 0, 268435455 } /* (0..268435455) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_WCDMAAreaId_1[] = { + { ATF_POINTER, 4, offsetof(struct WCDMAAreaId, refMCC), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refMCC_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refMCC_constraint_1 + }, + 0, 0, /* No default value */ + "refMCC" + }, + { ATF_POINTER, 3, offsetof(struct WCDMAAreaId, refMNC), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refMNC_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refMNC_constraint_1 + }, + 0, 0, /* No default value */ + "refMNC" + }, + { ATF_POINTER, 2, offsetof(struct WCDMAAreaId, refLAC), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refLAC_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refLAC_constraint_1 + }, + 0, 0, /* No default value */ + "refLAC" + }, + { ATF_POINTER, 1, offsetof(struct WCDMAAreaId, refUC), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refUC_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refUC_constraint_1 + }, + 0, 0, /* No default value */ + "refUC" + }, +}; +static const int asn_MAP_WCDMAAreaId_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_WCDMAAreaId_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WCDMAAreaId_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refMCC */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refMNC */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* refLAC */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* refUC */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WCDMAAreaId_specs_1 = { + sizeof(struct WCDMAAreaId), + offsetof(struct WCDMAAreaId, _asn_ctx), + asn_MAP_WCDMAAreaId_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_WCDMAAreaId_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WCDMAAreaId = { + "WCDMAAreaId", + "WCDMAAreaId", + &asn_OP_SEQUENCE, + asn_DEF_WCDMAAreaId_tags_1, + sizeof(asn_DEF_WCDMAAreaId_tags_1) + /sizeof(asn_DEF_WCDMAAreaId_tags_1[0]), /* 1 */ + asn_DEF_WCDMAAreaId_tags_1, /* Same as above */ + sizeof(asn_DEF_WCDMAAreaId_tags_1) + /sizeof(asn_DEF_WCDMAAreaId_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WCDMAAreaId_1, + 4, /* Elements count */ + &asn_SPC_WCDMAAreaId_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/WCDMAAreaId.h b/asn.1/supl_generated/WCDMAAreaId.h new file mode 100644 index 00000000..dbb7cade --- /dev/null +++ b/asn.1/supl_generated/WCDMAAreaId.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _WCDMAAreaId_H_ +#define _WCDMAAreaId_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* WCDMAAreaId */ +typedef struct WCDMAAreaId { + long *refMCC; /* OPTIONAL */ + long *refMNC; /* OPTIONAL */ + long *refLAC; /* OPTIONAL */ + long *refUC; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} WCDMAAreaId_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_WCDMAAreaId; +extern asn_SEQUENCE_specifics_t asn_SPC_WCDMAAreaId_specs_1; +extern asn_TYPE_member_t asn_MBR_WCDMAAreaId_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _WCDMAAreaId_H_ */ +#include diff --git a/asn.1/supl_generated/WLANAreaId.c b/asn.1/supl_generated/WLANAreaId.c new file mode 100644 index 00000000..7c746275 --- /dev/null +++ b/asn.1/supl_generated/WLANAreaId.c @@ -0,0 +1,104 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "WLANAreaId.h" + +static int +memb_apMACAddress_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 48UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_apMACAddress_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 48, 48 } /* (SIZE(48..48)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_WLANAreaId_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct WLANAreaId, apMACAddress), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_apMACAddress_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_apMACAddress_constraint_1 + }, + 0, 0, /* No default value */ + "apMACAddress" + }, +}; +static const ber_tlv_tag_t asn_DEF_WLANAreaId_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WLANAreaId_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* apMACAddress */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WLANAreaId_specs_1 = { + sizeof(struct WLANAreaId), + offsetof(struct WLANAreaId, _asn_ctx), + asn_MAP_WLANAreaId_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WLANAreaId = { + "WLANAreaId", + "WLANAreaId", + &asn_OP_SEQUENCE, + asn_DEF_WLANAreaId_tags_1, + sizeof(asn_DEF_WLANAreaId_tags_1) + /sizeof(asn_DEF_WLANAreaId_tags_1[0]), /* 1 */ + asn_DEF_WLANAreaId_tags_1, /* Same as above */ + sizeof(asn_DEF_WLANAreaId_tags_1) + /sizeof(asn_DEF_WLANAreaId_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WLANAreaId_1, + 1, /* Elements count */ + &asn_SPC_WLANAreaId_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/WLANAreaId.h b/asn.1/supl_generated/WLANAreaId.h similarity index 76% rename from asn.1/generated/WLANAreaId.h rename to asn.1/supl_generated/WLANAreaId.h index 8dd30936..064b678d 100644 --- a/asn.1/generated/WLANAreaId.h +++ b/asn.1/supl_generated/WLANAreaId.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "SUPL-TRIGGERED-START" - * found in "/home/martin/repos/LPP-Client/asn/SUPL.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _WLANAreaId_H_ diff --git a/asn.1/supl_generated/WcdmaCellInformation.c b/asn.1/supl_generated/WcdmaCellInformation.c new file mode 100644 index 00000000..f8175230 --- /dev/null +++ b/asn.1/supl_generated/WcdmaCellInformation.c @@ -0,0 +1,357 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "WcdmaCellInformation.h" + +#include "FrequencyInfo.h" +#include "ULP-MeasuredResultsList.h" +#include "TimingAdvance.h" +static int +memb_refMCC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refMNC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_refUC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 268435455L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_primaryScramblingCode_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cellParametersId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 127L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refMCC_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refMNC_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 999 } /* (0..999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_refUC_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 28, -1, 0, 268435455 } /* (0..268435455) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_primaryScramblingCode_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cellParametersId_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_WcdmaCellInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct WcdmaCellInformation, refMCC), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refMCC_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refMCC_constraint_1 + }, + 0, 0, /* No default value */ + "refMCC" + }, + { ATF_NOFLAGS, 0, offsetof(struct WcdmaCellInformation, refMNC), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refMNC_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refMNC_constraint_1 + }, + 0, 0, /* No default value */ + "refMNC" + }, + { ATF_NOFLAGS, 0, offsetof(struct WcdmaCellInformation, refUC), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_refUC_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_refUC_constraint_1 + }, + 0, 0, /* No default value */ + "refUC" + }, + { ATF_POINTER, 5, offsetof(struct WcdmaCellInformation, frequencyInfo), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FrequencyInfo, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "frequencyInfo" + }, + { ATF_POINTER, 4, offsetof(struct WcdmaCellInformation, primaryScramblingCode), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_primaryScramblingCode_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_primaryScramblingCode_constraint_1 + }, + 0, 0, /* No default value */ + "primaryScramblingCode" + }, + { ATF_POINTER, 3, offsetof(struct WcdmaCellInformation, measuredResultsList), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ULP_MeasuredResultsList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "measuredResultsList" + }, + { ATF_POINTER, 2, offsetof(struct WcdmaCellInformation, cellParametersId), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cellParametersId_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cellParametersId_constraint_1 + }, + 0, 0, /* No default value */ + "cellParametersId" + }, + { ATF_POINTER, 1, offsetof(struct WcdmaCellInformation, timingAdvance), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TimingAdvance, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "timingAdvance" + }, +}; +static const int asn_MAP_WcdmaCellInformation_oms_1[] = { 3, 4, 5, 6, 7 }; +static const ber_tlv_tag_t asn_DEF_WcdmaCellInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WcdmaCellInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refMCC */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refMNC */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* refUC */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* frequencyInfo */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* primaryScramblingCode */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* measuredResultsList */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* cellParametersId */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* timingAdvance */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WcdmaCellInformation_specs_1 = { + sizeof(struct WcdmaCellInformation), + offsetof(struct WcdmaCellInformation, _asn_ctx), + asn_MAP_WcdmaCellInformation_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_WcdmaCellInformation_oms_1, /* Optional members */ + 3, 2, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WcdmaCellInformation = { + "WcdmaCellInformation", + "WcdmaCellInformation", + &asn_OP_SEQUENCE, + asn_DEF_WcdmaCellInformation_tags_1, + sizeof(asn_DEF_WcdmaCellInformation_tags_1) + /sizeof(asn_DEF_WcdmaCellInformation_tags_1[0]), /* 1 */ + asn_DEF_WcdmaCellInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_WcdmaCellInformation_tags_1) + /sizeof(asn_DEF_WcdmaCellInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WcdmaCellInformation_1, + 8, /* Elements count */ + &asn_SPC_WcdmaCellInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/WcdmaCellInformation.h b/asn.1/supl_generated/WcdmaCellInformation.h new file mode 100644 index 00000000..baa83597 --- /dev/null +++ b/asn.1/supl_generated/WcdmaCellInformation.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ULP-Components" + * found in "src/ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _WcdmaCellInformation_H_ +#define _WcdmaCellInformation_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct FrequencyInfo; +struct ULP_MeasuredResultsList; +struct TimingAdvance; + +/* WcdmaCellInformation */ +typedef struct WcdmaCellInformation { + long refMCC; + long refMNC; + long refUC; + struct FrequencyInfo *frequencyInfo; /* OPTIONAL */ + long *primaryScramblingCode; /* OPTIONAL */ + struct ULP_MeasuredResultsList *measuredResultsList; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + long *cellParametersId; /* OPTIONAL */ + struct TimingAdvance *timingAdvance; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} WcdmaCellInformation_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_WcdmaCellInformation; +extern asn_SEQUENCE_specifics_t asn_SPC_WcdmaCellInformation_specs_1; +extern asn_TYPE_member_t asn_MBR_WcdmaCellInformation_1[8]; + +#ifdef __cplusplus +} +#endif + +#endif /* _WcdmaCellInformation_H_ */ +#include diff --git a/asn.1/supl_generated/WimaxAreaId.c b/asn.1/supl_generated/WimaxAreaId.c new file mode 100644 index 00000000..18f20495 --- /dev/null +++ b/asn.1/supl_generated/WimaxAreaId.c @@ -0,0 +1,162 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "WimaxAreaId.h" + +static int +memb_bsID_MSB_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 24UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bsID_LSB_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 24UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bsID_MSB_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 24, 24 } /* (SIZE(24..24)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bsID_LSB_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 24, 24 } /* (SIZE(24..24)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_WimaxAreaId_1[] = { + { ATF_POINTER, 1, offsetof(struct WimaxAreaId, bsID_MSB), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bsID_MSB_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bsID_MSB_constraint_1 + }, + 0, 0, /* No default value */ + "bsID-MSB" + }, + { ATF_NOFLAGS, 0, offsetof(struct WimaxAreaId, bsID_LSB), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bsID_LSB_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bsID_LSB_constraint_1 + }, + 0, 0, /* No default value */ + "bsID-LSB" + }, +}; +static const int asn_MAP_WimaxAreaId_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_WimaxAreaId_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WimaxAreaId_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bsID-MSB */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bsID-LSB */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WimaxAreaId_specs_1 = { + sizeof(struct WimaxAreaId), + offsetof(struct WimaxAreaId, _asn_ctx), + asn_MAP_WimaxAreaId_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_WimaxAreaId_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WimaxAreaId = { + "WimaxAreaId", + "WimaxAreaId", + &asn_OP_SEQUENCE, + asn_DEF_WimaxAreaId_tags_1, + sizeof(asn_DEF_WimaxAreaId_tags_1) + /sizeof(asn_DEF_WimaxAreaId_tags_1[0]), /* 1 */ + asn_DEF_WimaxAreaId_tags_1, /* Same as above */ + sizeof(asn_DEF_WimaxAreaId_tags_1) + /sizeof(asn_DEF_WimaxAreaId_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WimaxAreaId_1, + 2, /* Elements count */ + &asn_SPC_WimaxAreaId_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/WimaxAreaId.h b/asn.1/supl_generated/WimaxAreaId.h new file mode 100644 index 00000000..53a1bac5 --- /dev/null +++ b/asn.1/supl_generated/WimaxAreaId.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "SUPL-TRIGGERED-START" + * found in "src/SUPL-TRIGGERED-START.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _WimaxAreaId_H_ +#define _WimaxAreaId_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* WimaxAreaId */ +typedef struct WimaxAreaId { + BIT_STRING_t *bsID_MSB; /* OPTIONAL */ + BIT_STRING_t bsID_LSB; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} WimaxAreaId_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_WimaxAreaId; +extern asn_SEQUENCE_specifics_t asn_SPC_WimaxAreaId_specs_1; +extern asn_TYPE_member_t asn_MBR_WimaxAreaId_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _WimaxAreaId_H_ */ +#include diff --git a/asn.1/supl_generated/WimaxBSInformation.c b/asn.1/supl_generated/WimaxBSInformation.c new file mode 100644 index 00000000..143d246e --- /dev/null +++ b/asn.1/supl_generated/WimaxBSInformation.c @@ -0,0 +1,106 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "WimaxBSInformation.h" + +#include "WimaxRTD.h" +#include "WimaxNMRList.h" +asn_TYPE_member_t asn_MBR_WimaxBSInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct WimaxBSInformation, wimaxBsID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WimaxBsID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wimaxBsID" + }, + { ATF_POINTER, 2, offsetof(struct WimaxBSInformation, wimaxRTD), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WimaxRTD, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wimaxRTD" + }, + { ATF_POINTER, 1, offsetof(struct WimaxBSInformation, wimaxNMRList), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WimaxNMRList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wimaxNMRList" + }, +}; +static const int asn_MAP_WimaxBSInformation_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_WimaxBSInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WimaxBSInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wimaxBsID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* wimaxRTD */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* wimaxNMRList */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WimaxBSInformation_specs_1 = { + sizeof(struct WimaxBSInformation), + offsetof(struct WimaxBSInformation, _asn_ctx), + asn_MAP_WimaxBSInformation_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_WimaxBSInformation_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WimaxBSInformation = { + "WimaxBSInformation", + "WimaxBSInformation", + &asn_OP_SEQUENCE, + asn_DEF_WimaxBSInformation_tags_1, + sizeof(asn_DEF_WimaxBSInformation_tags_1) + /sizeof(asn_DEF_WimaxBSInformation_tags_1[0]), /* 1 */ + asn_DEF_WimaxBSInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_WimaxBSInformation_tags_1) + /sizeof(asn_DEF_WimaxBSInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WimaxBSInformation_1, + 3, /* Elements count */ + &asn_SPC_WimaxBSInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/WimaxBSInformation.h b/asn.1/supl_generated/WimaxBSInformation.h new file mode 100644 index 00000000..15cbe026 --- /dev/null +++ b/asn.1/supl_generated/WimaxBSInformation.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _WimaxBSInformation_H_ +#define _WimaxBSInformation_H_ + + +#include + +/* Including external dependencies */ +#include "WimaxBsID.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct WimaxRTD; +struct WimaxNMRList; + +/* WimaxBSInformation */ +typedef struct WimaxBSInformation { + WimaxBsID_t wimaxBsID; + struct WimaxRTD *wimaxRTD; /* OPTIONAL */ + struct WimaxNMRList *wimaxNMRList; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} WimaxBSInformation_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_WimaxBSInformation; +extern asn_SEQUENCE_specifics_t asn_SPC_WimaxBSInformation_specs_1; +extern asn_TYPE_member_t asn_MBR_WimaxBSInformation_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _WimaxBSInformation_H_ */ +#include diff --git a/asn.1/supl_generated/WimaxBsID.c b/asn.1/supl_generated/WimaxBsID.c new file mode 100644 index 00000000..18dd2e85 --- /dev/null +++ b/asn.1/supl_generated/WimaxBsID.c @@ -0,0 +1,162 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "WimaxBsID.h" + +static int +memb_bsID_MSB_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 24UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bsID_LSB_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 24UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bsID_MSB_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 24, 24 } /* (SIZE(24..24)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bsID_LSB_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 24, 24 } /* (SIZE(24..24)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_WimaxBsID_1[] = { + { ATF_POINTER, 1, offsetof(struct WimaxBsID, bsID_MSB), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bsID_MSB_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bsID_MSB_constraint_1 + }, + 0, 0, /* No default value */ + "bsID-MSB" + }, + { ATF_NOFLAGS, 0, offsetof(struct WimaxBsID, bsID_LSB), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bsID_LSB_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bsID_LSB_constraint_1 + }, + 0, 0, /* No default value */ + "bsID-LSB" + }, +}; +static const int asn_MAP_WimaxBsID_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_WimaxBsID_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WimaxBsID_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bsID-MSB */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bsID-LSB */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WimaxBsID_specs_1 = { + sizeof(struct WimaxBsID), + offsetof(struct WimaxBsID, _asn_ctx), + asn_MAP_WimaxBsID_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_WimaxBsID_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WimaxBsID = { + "WimaxBsID", + "WimaxBsID", + &asn_OP_SEQUENCE, + asn_DEF_WimaxBsID_tags_1, + sizeof(asn_DEF_WimaxBsID_tags_1) + /sizeof(asn_DEF_WimaxBsID_tags_1[0]), /* 1 */ + asn_DEF_WimaxBsID_tags_1, /* Same as above */ + sizeof(asn_DEF_WimaxBsID_tags_1) + /sizeof(asn_DEF_WimaxBsID_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WimaxBsID_1, + 2, /* Elements count */ + &asn_SPC_WimaxBsID_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/WimaxBsID.h b/asn.1/supl_generated/WimaxBsID.h new file mode 100644 index 00000000..23820f72 --- /dev/null +++ b/asn.1/supl_generated/WimaxBsID.h @@ -0,0 +1,45 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _WimaxBsID_H_ +#define _WimaxBsID_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* WimaxBsID */ +typedef struct WimaxBsID { + BIT_STRING_t *bsID_MSB; /* OPTIONAL */ + BIT_STRING_t bsID_LSB; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} WimaxBsID_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_WimaxBsID; +extern asn_SEQUENCE_specifics_t asn_SPC_WimaxBsID_specs_1; +extern asn_TYPE_member_t asn_MBR_WimaxBsID_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _WimaxBsID_H_ */ +#include diff --git a/asn.1/supl_generated/WimaxNMR.c b/asn.1/supl_generated/WimaxNMR.c new file mode 100644 index 00000000..d1daf16f --- /dev/null +++ b/asn.1/supl_generated/WimaxNMR.c @@ -0,0 +1,437 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "WimaxNMR.h" + +#include "ReportedLocation.h" +static int +memb_relDelay_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -32768L && value <= 32767L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_relDelaystd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_rSSI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_rSSIstd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_bSTxPower_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cINR_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 255L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_cINRstd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 63L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_relDelay_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_relDelaystd_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rSSI_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rSSIstd_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_bSTxPower_constr_7 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cINR_constr_8 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_cINRstd_constr_9 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_WimaxNMR_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct WimaxNMR, wimaxBsID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WimaxBsID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wimaxBsID" + }, + { ATF_POINTER, 8, offsetof(struct WimaxNMR, relDelay), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_relDelay_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_relDelay_constraint_1 + }, + 0, 0, /* No default value */ + "relDelay" + }, + { ATF_POINTER, 7, offsetof(struct WimaxNMR, relDelaystd), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_relDelaystd_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_relDelaystd_constraint_1 + }, + 0, 0, /* No default value */ + "relDelaystd" + }, + { ATF_POINTER, 6, offsetof(struct WimaxNMR, rSSI), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rSSI_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rSSI_constraint_1 + }, + 0, 0, /* No default value */ + "rSSI" + }, + { ATF_POINTER, 5, offsetof(struct WimaxNMR, rSSIstd), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rSSIstd_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rSSIstd_constraint_1 + }, + 0, 0, /* No default value */ + "rSSIstd" + }, + { ATF_POINTER, 4, offsetof(struct WimaxNMR, bSTxPower), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_bSTxPower_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_bSTxPower_constraint_1 + }, + 0, 0, /* No default value */ + "bSTxPower" + }, + { ATF_POINTER, 3, offsetof(struct WimaxNMR, cINR), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cINR_constr_8, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cINR_constraint_1 + }, + 0, 0, /* No default value */ + "cINR" + }, + { ATF_POINTER, 2, offsetof(struct WimaxNMR, cINRstd), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_cINRstd_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_cINRstd_constraint_1 + }, + 0, 0, /* No default value */ + "cINRstd" + }, + { ATF_POINTER, 1, offsetof(struct WimaxNMR, bSLocation), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReportedLocation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bSLocation" + }, +}; +static const int asn_MAP_WimaxNMR_oms_1[] = { 1, 2, 3, 4, 5, 6, 7, 8 }; +static const ber_tlv_tag_t asn_DEF_WimaxNMR_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WimaxNMR_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wimaxBsID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* relDelay */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* relDelaystd */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* rSSI */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rSSIstd */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* bSTxPower */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* cINR */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* cINRstd */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* bSLocation */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WimaxNMR_specs_1 = { + sizeof(struct WimaxNMR), + offsetof(struct WimaxNMR, _asn_ctx), + asn_MAP_WimaxNMR_tag2el_1, + 9, /* Count of tags in the map */ + asn_MAP_WimaxNMR_oms_1, /* Optional members */ + 8, 0, /* Root/Additions */ + 9, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WimaxNMR = { + "WimaxNMR", + "WimaxNMR", + &asn_OP_SEQUENCE, + asn_DEF_WimaxNMR_tags_1, + sizeof(asn_DEF_WimaxNMR_tags_1) + /sizeof(asn_DEF_WimaxNMR_tags_1[0]), /* 1 */ + asn_DEF_WimaxNMR_tags_1, /* Same as above */ + sizeof(asn_DEF_WimaxNMR_tags_1) + /sizeof(asn_DEF_WimaxNMR_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WimaxNMR_1, + 9, /* Elements count */ + &asn_SPC_WimaxNMR_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/WimaxNMR.h b/asn.1/supl_generated/WimaxNMR.h new file mode 100644 index 00000000..606a3317 --- /dev/null +++ b/asn.1/supl_generated/WimaxNMR.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _WimaxNMR_H_ +#define _WimaxNMR_H_ + + +#include + +/* Including external dependencies */ +#include "WimaxBsID.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ReportedLocation; + +/* WimaxNMR */ +typedef struct WimaxNMR { + WimaxBsID_t wimaxBsID; + long *relDelay; /* OPTIONAL */ + long *relDelaystd; /* OPTIONAL */ + long *rSSI; /* OPTIONAL */ + long *rSSIstd; /* OPTIONAL */ + long *bSTxPower; /* OPTIONAL */ + long *cINR; /* OPTIONAL */ + long *cINRstd; /* OPTIONAL */ + struct ReportedLocation *bSLocation; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} WimaxNMR_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_WimaxNMR; +extern asn_SEQUENCE_specifics_t asn_SPC_WimaxNMR_specs_1; +extern asn_TYPE_member_t asn_MBR_WimaxNMR_1[9]; + +#ifdef __cplusplus +} +#endif + +#endif /* _WimaxNMR_H_ */ +#include diff --git a/asn.1/supl_generated/WimaxNMRList.c b/asn.1/supl_generated/WimaxNMRList.c new file mode 100644 index 00000000..cb159b99 --- /dev/null +++ b/asn.1/supl_generated/WimaxNMRList.c @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "WimaxNMRList.h" + +#include "WimaxNMR.h" +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_WimaxNMRList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_WimaxNMRList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_WimaxNMR, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_WimaxNMRList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_WimaxNMRList_specs_1 = { + sizeof(struct WimaxNMRList), + offsetof(struct WimaxNMRList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_WimaxNMRList = { + "WimaxNMRList", + "WimaxNMRList", + &asn_OP_SEQUENCE_OF, + asn_DEF_WimaxNMRList_tags_1, + sizeof(asn_DEF_WimaxNMRList_tags_1) + /sizeof(asn_DEF_WimaxNMRList_tags_1[0]), /* 1 */ + asn_DEF_WimaxNMRList_tags_1, /* Same as above */ + sizeof(asn_DEF_WimaxNMRList_tags_1) + /sizeof(asn_DEF_WimaxNMRList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_WimaxNMRList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_WimaxNMRList_1, + 1, /* Single element */ + &asn_SPC_WimaxNMRList_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/generated/WimaxNMRList.h b/asn.1/supl_generated/WimaxNMRList.h similarity index 78% rename from asn.1/generated/WimaxNMRList.h rename to asn.1/supl_generated/WimaxNMRList.h index 87055fee..58e986fb 100644 --- a/asn.1/generated/WimaxNMRList.h +++ b/asn.1/supl_generated/WimaxNMRList.h @@ -1,8 +1,8 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ver2-ULP-Components" - * found in "/home/martin/repos/LPP-Client/asn/ULP-Components.asn" - * `asn1c -fcompound-names -no-gen-OER -pdu=all -no-gen-example -S /home/martin/repos/LPP-Client/ASN1C/skeletons` + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` */ #ifndef _WimaxNMRList_H_ @@ -40,8 +40,5 @@ extern asn_per_constraints_t asn_PER_type_WimaxNMRList_constr_1; } #endif -/* Referred external types */ -#include "WimaxNMR.h" - #endif /* _WimaxNMRList_H_ */ #include diff --git a/asn.1/supl_generated/WimaxRTD.c b/asn.1/supl_generated/WimaxRTD.c new file mode 100644 index 00000000..79ad5ba0 --- /dev/null +++ b/asn.1/supl_generated/WimaxRTD.c @@ -0,0 +1,150 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "WimaxRTD.h" + +static int +memb_rTD_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 65535L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_rTDstd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1023L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rTD_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_rTDstd_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_WimaxRTD_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct WimaxRTD, rTD), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rTD_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rTD_constraint_1 + }, + 0, 0, /* No default value */ + "rTD" + }, + { ATF_POINTER, 1, offsetof(struct WimaxRTD, rTDstd), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_rTDstd_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_rTDstd_constraint_1 + }, + 0, 0, /* No default value */ + "rTDstd" + }, +}; +static const int asn_MAP_WimaxRTD_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_WimaxRTD_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WimaxRTD_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rTD */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* rTDstd */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WimaxRTD_specs_1 = { + sizeof(struct WimaxRTD), + offsetof(struct WimaxRTD, _asn_ctx), + asn_MAP_WimaxRTD_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_WimaxRTD_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WimaxRTD = { + "WimaxRTD", + "WimaxRTD", + &asn_OP_SEQUENCE, + asn_DEF_WimaxRTD_tags_1, + sizeof(asn_DEF_WimaxRTD_tags_1) + /sizeof(asn_DEF_WimaxRTD_tags_1[0]), /* 1 */ + asn_DEF_WimaxRTD_tags_1, /* Same as above */ + sizeof(asn_DEF_WimaxRTD_tags_1) + /sizeof(asn_DEF_WimaxRTD_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WimaxRTD_1, + 2, /* Elements count */ + &asn_SPC_WimaxRTD_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/WimaxRTD.h b/asn.1/supl_generated/WimaxRTD.h new file mode 100644 index 00000000..d2c442fa --- /dev/null +++ b/asn.1/supl_generated/WimaxRTD.h @@ -0,0 +1,45 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _WimaxRTD_H_ +#define _WimaxRTD_H_ + + +#include + +/* Including external dependencies */ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* WimaxRTD */ +typedef struct WimaxRTD { + long rTD; + long *rTDstd; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} WimaxRTD_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_WimaxRTD; +extern asn_SEQUENCE_specifics_t asn_SPC_WimaxRTD_specs_1; +extern asn_TYPE_member_t asn_MBR_WimaxRTD_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _WimaxRTD_H_ */ +#include diff --git a/asn.1/supl_generated/WlanAPInformation.c b/asn.1/supl_generated/WlanAPInformation.c new file mode 100644 index 00000000..b65cc4dd --- /dev/null +++ b/asn.1/supl_generated/WlanAPInformation.c @@ -0,0 +1,672 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#include "WlanAPInformation.h" + +#include "RTD.h" +#include "ReportedLocation.h" +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static int +memb_apMACAddress_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 48UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_apTransmitPower_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -127L && value <= 128L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_apAntennaGain_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -127L && value <= 128L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_apSignaltoNoise_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -127L && value <= 128L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_apSignalStrength_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -127L && value <= 128L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_apChannelFrequency_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 256L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_setTransmitPower_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -127L && value <= 128L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_setAntennaGain_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -127L && value <= 128L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_setSignaltoNoise_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -127L && value <= 128L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_setSignalStrength_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -127L && value <= 128L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_apDeviceType_constr_6 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_apMACAddress_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 48, 48 } /* (SIZE(48..48)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_apTransmitPower_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -127, 128 } /* (-127..128) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_apAntennaGain_constr_4 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -127, 128 } /* (-127..128) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_apSignaltoNoise_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -127, 128 } /* (-127..128) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_apSignalStrength_constr_11 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -127, 128 } /* (-127..128) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_apChannelFrequency_constr_12 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 256 } /* (0..256) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_setTransmitPower_constr_14 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -127, 128 } /* (-127..128) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_setAntennaGain_constr_15 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -127, 128 } /* (-127..128) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_setSignaltoNoise_constr_16 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -127, 128 } /* (-127..128) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_setSignalStrength_constr_17 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -127, 128 } /* (-127..128) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +static const asn_INTEGER_enum_map_t asn_MAP_apDeviceType_value2enum_6[] = { + { 0, 11, "wlan802-11a" }, + { 1, 11, "wlan802-11b" }, + { 2, 11, "wlan802-11g" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_apDeviceType_enum2value_6[] = { + 0, /* wlan802-11a(0) */ + 1, /* wlan802-11b(1) */ + 2 /* wlan802-11g(2) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_apDeviceType_specs_6 = { + asn_MAP_apDeviceType_value2enum_6, /* "tag" => N; sorted by tag */ + asn_MAP_apDeviceType_enum2value_6, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 4, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_apDeviceType_tags_6[] = { + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_apDeviceType_6 = { + "apDeviceType", + "apDeviceType", + &asn_OP_NativeEnumerated, + asn_DEF_apDeviceType_tags_6, + sizeof(asn_DEF_apDeviceType_tags_6) + /sizeof(asn_DEF_apDeviceType_tags_6[0]) - 1, /* 1 */ + asn_DEF_apDeviceType_tags_6, /* Same as above */ + sizeof(asn_DEF_apDeviceType_tags_6) + /sizeof(asn_DEF_apDeviceType_tags_6[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_apDeviceType_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_apDeviceType_specs_6 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_WlanAPInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct WlanAPInformation, apMACAddress), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BIT_STRING, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_apMACAddress_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_apMACAddress_constraint_1 + }, + 0, 0, /* No default value */ + "apMACAddress" + }, + { ATF_POINTER, 12, offsetof(struct WlanAPInformation, apTransmitPower), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_apTransmitPower_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_apTransmitPower_constraint_1 + }, + 0, 0, /* No default value */ + "apTransmitPower" + }, + { ATF_POINTER, 11, offsetof(struct WlanAPInformation, apAntennaGain), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_apAntennaGain_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_apAntennaGain_constraint_1 + }, + 0, 0, /* No default value */ + "apAntennaGain" + }, + { ATF_POINTER, 10, offsetof(struct WlanAPInformation, apSignaltoNoise), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_apSignaltoNoise_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_apSignaltoNoise_constraint_1 + }, + 0, 0, /* No default value */ + "apSignaltoNoise" + }, + { ATF_POINTER, 9, offsetof(struct WlanAPInformation, apDeviceType), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_apDeviceType_6, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "apDeviceType" + }, + { ATF_POINTER, 8, offsetof(struct WlanAPInformation, apSignalStrength), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_apSignalStrength_constr_11, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_apSignalStrength_constraint_1 + }, + 0, 0, /* No default value */ + "apSignalStrength" + }, + { ATF_POINTER, 7, offsetof(struct WlanAPInformation, apChannelFrequency), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_apChannelFrequency_constr_12, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_apChannelFrequency_constraint_1 + }, + 0, 0, /* No default value */ + "apChannelFrequency" + }, + { ATF_POINTER, 6, offsetof(struct WlanAPInformation, apRoundTripDelay), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RTD, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "apRoundTripDelay" + }, + { ATF_POINTER, 5, offsetof(struct WlanAPInformation, setTransmitPower), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_setTransmitPower_constr_14, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_setTransmitPower_constraint_1 + }, + 0, 0, /* No default value */ + "setTransmitPower" + }, + { ATF_POINTER, 4, offsetof(struct WlanAPInformation, setAntennaGain), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_setAntennaGain_constr_15, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_setAntennaGain_constraint_1 + }, + 0, 0, /* No default value */ + "setAntennaGain" + }, + { ATF_POINTER, 3, offsetof(struct WlanAPInformation, setSignaltoNoise), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_setSignaltoNoise_constr_16, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_setSignaltoNoise_constraint_1 + }, + 0, 0, /* No default value */ + "setSignaltoNoise" + }, + { ATF_POINTER, 2, offsetof(struct WlanAPInformation, setSignalStrength), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_setSignalStrength_constr_17, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + memb_setSignalStrength_constraint_1 + }, + 0, 0, /* No default value */ + "setSignalStrength" + }, + { ATF_POINTER, 1, offsetof(struct WlanAPInformation, apReportedLocation), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReportedLocation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "apReportedLocation" + }, +}; +static const int asn_MAP_WlanAPInformation_oms_1[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static const ber_tlv_tag_t asn_DEF_WlanAPInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WlanAPInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* apMACAddress */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* apTransmitPower */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* apAntennaGain */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* apSignaltoNoise */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* apDeviceType */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* apSignalStrength */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* apChannelFrequency */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* apRoundTripDelay */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* setTransmitPower */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* setAntennaGain */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* setSignaltoNoise */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* setSignalStrength */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 } /* apReportedLocation */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WlanAPInformation_specs_1 = { + sizeof(struct WlanAPInformation), + offsetof(struct WlanAPInformation, _asn_ctx), + asn_MAP_WlanAPInformation_tag2el_1, + 13, /* Count of tags in the map */ + asn_MAP_WlanAPInformation_oms_1, /* Optional members */ + 12, 0, /* Root/Additions */ + 13, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_WlanAPInformation = { + "WlanAPInformation", + "WlanAPInformation", + &asn_OP_SEQUENCE, + asn_DEF_WlanAPInformation_tags_1, + sizeof(asn_DEF_WlanAPInformation_tags_1) + /sizeof(asn_DEF_WlanAPInformation_tags_1[0]), /* 1 */ + asn_DEF_WlanAPInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_WlanAPInformation_tags_1) + /sizeof(asn_DEF_WlanAPInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WlanAPInformation_1, + 13, /* Elements count */ + &asn_SPC_WlanAPInformation_specs_1 /* Additional specs */ +}; + diff --git a/asn.1/supl_generated/WlanAPInformation.h b/asn.1/supl_generated/WlanAPInformation.h new file mode 100644 index 00000000..adb2f538 --- /dev/null +++ b/asn.1/supl_generated/WlanAPInformation.h @@ -0,0 +1,73 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Ver2-ULP-Components" + * found in "src/Ver2-ULP-Components.asn" + * `asn1c -fcompound-names -fno-include-deps -no-gen-example -pdu=all -gen-XER -gen-JER -no-gen-OER -gen-UPER -no-gen-APER -no-gen-BER -no-gen-print -no-gen-random-fill -D supl_generated/ -S empty_skeleton/` + */ + +#ifndef _WlanAPInformation_H_ +#define _WlanAPInformation_H_ + + +#include + +/* Including external dependencies */ +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum WlanAPInformation__apDeviceType { + WlanAPInformation__apDeviceType_wlan802_11a = 0, + WlanAPInformation__apDeviceType_wlan802_11b = 1, + WlanAPInformation__apDeviceType_wlan802_11g = 2 + /* + * Enumeration is extensible + */ +} e_WlanAPInformation__apDeviceType; + +/* Forward declarations */ +struct RTD; +struct ReportedLocation; + +/* WlanAPInformation */ +typedef struct WlanAPInformation { + BIT_STRING_t apMACAddress; + long *apTransmitPower; /* OPTIONAL */ + long *apAntennaGain; /* OPTIONAL */ + long *apSignaltoNoise; /* OPTIONAL */ + long *apDeviceType; /* OPTIONAL */ + long *apSignalStrength; /* OPTIONAL */ + long *apChannelFrequency; /* OPTIONAL */ + struct RTD *apRoundTripDelay; /* OPTIONAL */ + long *setTransmitPower; /* OPTIONAL */ + long *setAntennaGain; /* OPTIONAL */ + long *setSignaltoNoise; /* OPTIONAL */ + long *setSignalStrength; /* OPTIONAL */ + struct ReportedLocation *apReportedLocation; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} WlanAPInformation_t; + +/* Implementation */ +/* extern asn_TYPE_descriptor_t asn_DEF_apDeviceType_6; // (Use -fall-defs-global to expose) */ +extern asn_TYPE_descriptor_t asn_DEF_WlanAPInformation; +extern asn_SEQUENCE_specifics_t asn_SPC_WlanAPInformation_specs_1; +extern asn_TYPE_member_t asn_MBR_WlanAPInformation_1[13]; + +#ifdef __cplusplus +} +#endif + +#endif /* _WlanAPInformation_H_ */ +#include diff --git a/asn.1/supl_generated/asn_config.h b/asn.1/supl_generated/asn_config.h new file mode 100644 index 00000000..764c38e2 --- /dev/null +++ b/asn.1/supl_generated/asn_config.h @@ -0,0 +1,7 @@ +// Generated automatically. Don't edit manually! + +#define ASN_DISABLE_BER_SUPPORT 1 +#define ASN_DISABLE_OER_SUPPORT 1 +#define ASN_DISABLE_APER_SUPPORT 1 +#define ASN_DISABLE_PRINT_SUPPORT 1 +#define ASN_DISABLE_RFILL_SUPPORT 1 diff --git a/asn.1/supl_generated/asn_constant.h b/asn.1/supl_generated/asn_constant.h new file mode 100644 index 00000000..b2e436f8 --- /dev/null +++ b/asn.1/supl_generated/asn_constant.h @@ -0,0 +1,65 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + */ + +#ifndef _ASN_CONSTANT_H +#define _ASN_CONSTANT_H + +#ifdef __cplusplus +extern "C" { +#endif + +#define maxReqLength (50) +#define maxClientLength (50) +#define maxnumSessions (64) +#define min_val_GeoAreaIndex (1) +#define max_val_GeoAreaIndex (32) +#define maxNumGeoArea (32) +#define maxAreaId (256) +#define maxAreaIdList (32) +#define min_val_UARFCN (0) +#define max_val_UARFCN (16383) +#define min_val_UTRA_CarrierRSSI (0) +#define max_val_UTRA_CarrierRSSI (127) +#define min_val_CellParametersID (0) +#define max_val_CellParametersID (127) +#define min_val_TGSN (0) +#define max_val_TGSN (14) +#define min_val_PrimaryCCPCH_RSCP (0) +#define max_val_PrimaryCCPCH_RSCP (127) +#define min_val_TimeslotISCP (0) +#define max_val_TimeslotISCP (127) +#define min_val_CPICH_Ec_N0 (0) +#define max_val_CPICH_Ec_N0 (63) +#define min_val_CPICH_RSCP (0) +#define max_val_CPICH_RSCP (127) +#define min_val_Pathloss (46) +#define max_val_Pathloss (173) +#define maxCellMeas (32) +#define maxFreq (8) +#define maxTS (14) +#define maxGANSS (16) +#define maxGANSSSat (32) +#define min_val_RelativeTime (0) +#define max_val_RelativeTime (65535) +#define maxLidSize (64) +#define maxWLANApDataSize (128) +#define min_val_PhysCellId (0) +#define max_val_PhysCellId (503) +#define min_val_MCC_MNC_Digit (0) +#define max_val_MCC_MNC_Digit (9) +#define min_val_RSRP_Range (0) +#define max_val_RSRP_Range (97) +#define min_val_RSRQ_Range (0) +#define max_val_RSRQ_Range (34) +#define maxCellReport (8) +#define maxWimaxBSMeas (32) +#define min_val_SPCSETKeylifetime (1) +#define max_val_SPCSETKeylifetime (24) + + +#ifdef __cplusplus +} +#endif + +#endif /* _ASN_CONSTANT_H */ diff --git a/examples/client/CMakeLists.txt b/examples/client/CMakeLists.txt index 9598b8f9..0c114ae1 100644 --- a/examples/client/CMakeLists.txt +++ b/examples/client/CMakeLists.txt @@ -14,7 +14,7 @@ target_link_libraries(example_client PRIVATE generator::spartn2) target_link_libraries(example_client PRIVATE dependency::interface) target_link_libraries(example_client PRIVATE receiver::ublox) target_link_libraries(example_client PRIVATE receiver::nmea) -target_link_libraries(example_client PRIVATE asn1::generated asn1::helper) +target_link_libraries(example_client PRIVATE asn1::generated::lpp asn1::helper) target_link_libraries(example_client PRIVATE scheduler supl lpp loglet) set_target_properties(example_client PROPERTIES OUTPUT_NAME "example-client") diff --git a/examples/lpp/CMakeLists.txt b/examples/lpp/CMakeLists.txt index e865bac4..4df4adec 100644 --- a/examples/lpp/CMakeLists.txt +++ b/examples/lpp/CMakeLists.txt @@ -17,7 +17,7 @@ target_link_libraries(example_lpp PRIVATE args) target_link_libraries(example_lpp PRIVATE dependency::interface) target_link_libraries(example_lpp PRIVATE receiver::ublox) target_link_libraries(example_lpp PRIVATE receiver::nmea) -target_link_libraries(example_lpp PRIVATE asn1::generated asn1::helper) +target_link_libraries(example_lpp PRIVATE asn1::generated::lpp asn1::helper) if(${INCLUDE_GENERATOR_RTCM}) target_compile_definitions(example_lpp PRIVATE "INCLUDE_GENERATOR_RTCM=1") diff --git a/examples/lpp/location_information.cpp b/examples/lpp/location_information.cpp index e63614ce..e00b6ddb 100644 --- a/examples/lpp/location_information.cpp +++ b/examples/lpp/location_information.cpp @@ -15,8 +15,9 @@ double gOverrideHorizontalConfidence = -1; using namespace location_information; -bool provide_location_information_callback(UNUSED LocationInformation& location, - UNUSED HaGnssMetrics& metrics, UNUSED void* userdata) { +PLI_Result provide_location_information_callback(UNUSED LocationInformation& location, + UNUSED HaGnssMetrics& metrics, + UNUSED void* userdata) { #if 0 // Example implementation location.tai_time = TAI_Time::now(); @@ -32,29 +33,30 @@ bool provide_location_information_callback(UNUSED LocationInformation& location, location.vertical_speed_accuracy = 3; location.vertical_velocity_direction = VerticalDirection::UP; - metrics.fixq = FixQuality::MANUAL_INPUT; - metrics.sats = 5; - metrics.age = 0; - metrics.hdop = 0; - metrics.vdop = 0; - return true; + metrics.fixq = FixQuality::RTK_FIX; + metrics.sats = 30; + metrics.age = 5; + metrics.hdop = 10; + metrics.vdop = 15; + return PLI_Result::LI_AND_METRICS; #else - return false; + return PLI_Result::NOT_AVAILABLE; #endif } -bool provide_location_information_callback_ublox(UNUSED LocationInformation& location, - UNUSED HaGnssMetrics& metrics, void* userdata) { +PLI_Result provide_location_information_callback_ublox(UNUSED LocationInformation& location, + UNUSED HaGnssMetrics& metrics, + void* userdata) { auto receiver = reinterpret_cast(userdata); - if (!receiver) return false; + if (!receiver) return PLI_Result::NOT_AVAILABLE; auto nav_pvt = receiver->nav_pvt(); - if (!nav_pvt) return false; + if (!nav_pvt) return PLI_Result::NOT_AVAILABLE; // TODO(ewasjon): Should we use the system time if the UTC time from u-blox is invalid? if (!nav_pvt->valid_time()) { printf("u-blox time is invalid\n"); - return false; + return PLI_Result::NOT_AVAILABLE; } auto semi_major = nav_pvt->h_acc(); @@ -99,13 +101,13 @@ bool provide_location_information_callback_ublox(UNUSED LocationInformation& loc metrics.number_of_satellites = nav_pvt->num_sv(); metrics.pdop = nav_pvt->p_dop(); - return true; + return PLI_Result::LI_AND_METRICS; } -bool provide_location_information_callback_nmea(LocationInformation& location, - HaGnssMetrics& metrics, void* userdata) { +PLI_Result provide_location_information_callback_nmea(LocationInformation& location, + HaGnssMetrics& metrics, void* userdata) { auto receiver = reinterpret_cast(userdata); - if (!receiver) return false; + if (!receiver) return PLI_Result::NOT_AVAILABLE; // NOTE(ewasjon): We require GGA, VTG, and GST message to produce a valid location information, // if either is missing we will skip sending a provider location information message. @@ -113,7 +115,7 @@ bool provide_location_information_callback_nmea(LocationInformation& location, auto vtg = receiver->vtg(); auto gst = receiver->gst(); if (!gga || !vtg || !gst) { - return false; + return PLI_Result::NOT_AVAILABLE; } auto semi_major = gst->semi_major(); @@ -155,21 +157,33 @@ bool provide_location_information_callback_nmea(LocationInformation& location, break; } - return true; + return PLI_Result::LI_AND_METRICS; } -bool provide_location_information_callback_fake(LocationInformation& location, - UNUSED HaGnssMetrics& metrics, void* userdata) { +PLI_Result provide_location_information_callback_fake(LocationInformation& location, + UNUSED HaGnssMetrics& metrics, + void* userdata) { auto options = reinterpret_cast(userdata); - if (!options) return false; + if (!options) return PLI_Result::NOT_AVAILABLE; location.time = TAI_Time::now(); location.location = LocationShape::ha_ellipsoid_altitude_with_uncertainty( options->latitude, options->longitude, options->altitude, HorizontalAccuracy::from_ellipse(0.5, 0.5, 0), VerticalAccuracy::from_1sigma(0.5)); - metrics.fix_quality = FixQuality::STANDALONE; - return true; + location.velocity = VelocityShape::horizontal_vertical_with_uncertainty(10, 0.5, 90, 1, 0.5, + VerticalDirection::Up); + + if(rand() % 2 == 0) { + metrics.fix_quality = FixQuality::RTK_FIX; + } else { + metrics.fix_quality = FixQuality::RTK_FLOAT; + } + metrics.age_of_corrections = 5; + metrics.number_of_satellites = 1; + metrics.hdop = 10; + metrics.pdop = 15; + return PLI_Result::LI_AND_METRICS; } bool provide_ecid_callback(ECIDInformation& ecid, void* userdata) { diff --git a/examples/lpp/location_information.h b/examples/lpp/location_information.h index 990ffe79..3bd5f876 100644 --- a/examples/lpp/location_information.h +++ b/examples/lpp/location_information.h @@ -1,4 +1,5 @@ #pragma once +#include "lpp/location_information.h" namespace location_information { struct LocationInformation; @@ -8,18 +9,21 @@ struct ECIDInformation; struct LocationInformationOptions; -bool provide_location_information_callback(location_information::LocationInformation& location, +location_information::PLI_Result +provide_location_information_callback(location_information::LocationInformation& location, + location_information::HaGnssMetrics& metrics, void* userdata); +location_information::PLI_Result +provide_location_information_callback_ublox(location_information::LocationInformation& location, + location_information::HaGnssMetrics& metrics, + void* userdata); +location_information::PLI_Result +provide_location_information_callback_nmea(location_information::LocationInformation& location, location_information::HaGnssMetrics& metrics, void* userdata); -bool provide_location_information_callback_ublox( - location_information::LocationInformation& location, - location_information::HaGnssMetrics& metrics, void* userdata); -bool provide_location_information_callback_nmea(location_information::LocationInformation& location, +location_information::PLI_Result + provide_location_information_callback_fake(location_information::LocationInformation& location, location_information::HaGnssMetrics& metrics, - void* userdata); -bool provide_location_information_callback_fake(location_information::LocationInformation& location, - location_information::HaGnssMetrics& metrics, - void* userdata); + void* userdata); bool provide_ecid_callback(location_information::ECIDInformation& ecid, void* userdata); extern bool gConvertConfidence95To39; diff --git a/examples/lpp2spartn/CMakeLists.txt b/examples/lpp2spartn/CMakeLists.txt index 9e177044..99934e10 100644 --- a/examples/lpp2spartn/CMakeLists.txt +++ b/examples/lpp2spartn/CMakeLists.txt @@ -6,7 +6,7 @@ add_executable(examples::lpp2spartn ALIAS example_lpp2spartn) target_include_directories(example_lpp2spartn PRIVATE "./") target_link_libraries(example_lpp2spartn PRIVATE args) -target_link_libraries(example_lpp2spartn PRIVATE asn1::generated asn1::helper) +target_link_libraries(example_lpp2spartn PRIVATE asn1::generated::lpp asn1::helper) target_link_libraries(example_lpp2spartn PRIVATE dependency::interface) if(${INCLUDE_GENERATOR_SPARTN}) diff --git a/generator/rtcm/CMakeLists.txt b/generator/rtcm/CMakeLists.txt index 54ac1888..3d8db4b6 100644 --- a/generator/rtcm/CMakeLists.txt +++ b/generator/rtcm/CMakeLists.txt @@ -27,6 +27,6 @@ add_library(generator::rtcm ALIAS generator_rtcm) target_include_directories(generator_rtcm PRIVATE "./" "include/generator/rtcm/") target_include_directories(generator_rtcm PUBLIC "include/") -target_link_libraries(generator_rtcm PRIVATE asn1::generated asn1::helper) +target_link_libraries(generator_rtcm PRIVATE asn1::generated::lpp asn1::helper) setup_target(generator_rtcm) diff --git a/generator/rtcm/extract/auxiliary_information.cpp b/generator/rtcm/extract/auxiliary_information.cpp index d819e027..5e039c36 100644 --- a/generator/rtcm/extract/auxiliary_information.cpp +++ b/generator/rtcm/extract/auxiliary_information.cpp @@ -5,6 +5,7 @@ #pragma GCC diagnostic ignored "-Wreserved-macro-identifier" #pragma GCC diagnostic ignored "-Wreserved-identifier" #pragma GCC diagnostic ignored "-Wundef" +#pragma GCC diagnostic ignored "-Wunused-function" #include #include #include diff --git a/generator/rtcm/extract/extract.cpp b/generator/rtcm/extract/extract.cpp index 651b1c03..0274fad7 100644 --- a/generator/rtcm/extract/extract.cpp +++ b/generator/rtcm/extract/extract.cpp @@ -5,6 +5,7 @@ #pragma GCC diagnostic ignored "-Wreserved-macro-identifier" #pragma GCC diagnostic ignored "-Wreserved-identifier" #pragma GCC diagnostic ignored "-Wundef" +#pragma GCC diagnostic ignored "-Wunused-function" #include #include #pragma GCC diagnostic pop diff --git a/generator/rtcm/extract/extract_bias_information.cpp b/generator/rtcm/extract/extract_bias_information.cpp index ffedad6a..f8bd74b5 100644 --- a/generator/rtcm/extract/extract_bias_information.cpp +++ b/generator/rtcm/extract/extract_bias_information.cpp @@ -5,6 +5,7 @@ #pragma GCC diagnostic ignored "-Wreserved-macro-identifier" #pragma GCC diagnostic ignored "-Wreserved-identifier" #pragma GCC diagnostic ignored "-Wundef" +#pragma GCC diagnostic ignored "-Wunused-function" #include #pragma GCC diagnostic pop diff --git a/generator/rtcm/extract/extract_common_observation_info.cpp b/generator/rtcm/extract/extract_common_observation_info.cpp index 73892f47..fb8f4478 100644 --- a/generator/rtcm/extract/extract_common_observation_info.cpp +++ b/generator/rtcm/extract/extract_common_observation_info.cpp @@ -5,6 +5,7 @@ #pragma GCC diagnostic ignored "-Wreserved-macro-identifier" #pragma GCC diagnostic ignored "-Wreserved-identifier" #pragma GCC diagnostic ignored "-Wundef" +#pragma GCC diagnostic ignored "-Wunused-function" #include #pragma GCC diagnostic pop diff --git a/generator/rtcm/extract/extract_observations.cpp b/generator/rtcm/extract/extract_observations.cpp index 3b153402..a680c1c7 100644 --- a/generator/rtcm/extract/extract_observations.cpp +++ b/generator/rtcm/extract/extract_observations.cpp @@ -5,6 +5,7 @@ #pragma GCC diagnostic ignored "-Wreserved-macro-identifier" #pragma GCC diagnostic ignored "-Wreserved-identifier" #pragma GCC diagnostic ignored "-Wundef" +#pragma GCC diagnostic ignored "-Wunused-function" #include #include #include diff --git a/generator/rtcm/extract/extract_reference_station_info.cpp b/generator/rtcm/extract/extract_reference_station_info.cpp index 3b91973a..7bcdac66 100644 --- a/generator/rtcm/extract/extract_reference_station_info.cpp +++ b/generator/rtcm/extract/extract_reference_station_info.cpp @@ -5,6 +5,7 @@ #pragma GCC diagnostic ignored "-Wreserved-macro-identifier" #pragma GCC diagnostic ignored "-Wreserved-identifier" #pragma GCC diagnostic ignored "-Wundef" +#pragma GCC diagnostic ignored "-Wunused-function" #include #include #pragma GCC diagnostic pop diff --git a/generator/rtcm/extract/residuals.cpp b/generator/rtcm/extract/residuals.cpp index adb361d8..379eeadb 100644 --- a/generator/rtcm/extract/residuals.cpp +++ b/generator/rtcm/extract/residuals.cpp @@ -5,6 +5,7 @@ #pragma GCC diagnostic ignored "-Wreserved-macro-identifier" #pragma GCC diagnostic ignored "-Wreserved-identifier" #pragma GCC diagnostic ignored "-Wundef" +#pragma GCC diagnostic ignored "-Wunused-function" #include #include #pragma GCC diagnostic pop diff --git a/generator/rtcm/generator.cpp b/generator/rtcm/generator.cpp index c7f28318..869a6e1a 100644 --- a/generator/rtcm/generator.cpp +++ b/generator/rtcm/generator.cpp @@ -14,6 +14,7 @@ #pragma GCC diagnostic ignored "-Wreserved-macro-identifier" #pragma GCC diagnostic ignored "-Wreserved-identifier" #pragma GCC diagnostic ignored "-Wundef" +#pragma GCC diagnostic ignored "-Wunused-function" #include #include #include @@ -47,7 +48,7 @@ static void extract_generic_element_data(RtkData& da case GNSS_ID__gnss_id_bds: gnss_id = GenericGnssId::BEIDOU; break; case GNSS_ID__gnss_id_sbas: case GNSS_ID__gnss_id_qzss: - case GNSS_ID__gnss_id_navic_v16xy: return; + case GNSS_ID__gnss_id_navic_v1610: return; } if (src_generic.gnss_AuxiliaryInformation) { diff --git a/generator/spartn/CMakeLists.txt b/generator/spartn/CMakeLists.txt index d50235da..e22baa1c 100644 --- a/generator/spartn/CMakeLists.txt +++ b/generator/spartn/CMakeLists.txt @@ -8,7 +8,7 @@ add_library(generator::spartn ALIAS generator_spartn) target_include_directories(generator_spartn PRIVATE "./" "include/generator/spartn/") target_include_directories(generator_spartn PUBLIC "include/") -target_link_libraries(generator_spartn PRIVATE asn1::generated asn1::helper) +target_link_libraries(generator_spartn PRIVATE asn1::generated::lpp asn1::helper) target_link_libraries(generator_spartn PRIVATE utility) if (USE_ASAN) diff --git a/generator/spartn2/CMakeLists.txt b/generator/spartn2/CMakeLists.txt index 4b6315c7..4f0f5525 100644 --- a/generator/spartn2/CMakeLists.txt +++ b/generator/spartn2/CMakeLists.txt @@ -12,7 +12,7 @@ add_library(generator::spartn2 ALIAS generator_spartn2) target_include_directories(generator_spartn2 PRIVATE "./" "include/generator/spartn2/") target_include_directories(generator_spartn2 PUBLIC "include/") -target_link_libraries(generator_spartn2 PRIVATE asn1::generated asn1::helper) +target_link_libraries(generator_spartn2 PRIVATE asn1::generated::lpp asn1::helper) target_link_libraries(generator_spartn2 PRIVATE utility) if (SPARTN_DEBUG_PRINT) diff --git a/generator/spartn2/generator.cpp b/generator/spartn2/generator.cpp index cf409714..a295937a 100644 --- a/generator/spartn2/generator.cpp +++ b/generator/spartn2/generator.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #pragma GCC diagnostic pop #include diff --git a/generator/spartn2/hpac.cpp b/generator/spartn2/hpac.cpp index f5fec4f2..177f84f8 100644 --- a/generator/spartn2/hpac.cpp +++ b/generator/spartn2/hpac.cpp @@ -11,6 +11,12 @@ #include #include #include +#include +#include +#include +#include +#include +#include #pragma GCC diagnostic pop #include diff --git a/generator/spartn2/ocb.cpp b/generator/spartn2/ocb.cpp index 8263ba1f..6899b758 100644 --- a/generator/spartn2/ocb.cpp +++ b/generator/spartn2/ocb.cpp @@ -14,8 +14,20 @@ #include #include #include +#include +#include +#include +#include +#include +#include #include #include +#include +#include +#include +#include +#include +#include #pragma GCC diagnostic pop #include diff --git a/libs/lpp/CMakeLists.txt b/libs/lpp/CMakeLists.txt index 2bd62121..a9d53162 100644 --- a/libs/lpp/CMakeLists.txt +++ b/libs/lpp/CMakeLists.txt @@ -12,7 +12,7 @@ add_library(lpp ) target_include_directories(lpp PUBLIC "include/") target_link_libraries(lpp PRIVATE Threads::Threads atomic) -target_link_libraries(lpp PRIVATE asn1::generated asn1::helper) +target_link_libraries(lpp PRIVATE asn1::generated::lpp asn1::helper) target_link_libraries(lpp PRIVATE loglet supl scheduler) target_compile_options(lpp PUBLIC "-Wno-unused-private-field") diff --git a/libs/lpplib/CMakeLists.txt b/libs/lpplib/CMakeLists.txt index 99f3248f..61ea5a3b 100644 --- a/libs/lpplib/CMakeLists.txt +++ b/libs/lpplib/CMakeLists.txt @@ -20,7 +20,7 @@ add_library(lpplib ${LPP_SOURCES}) target_include_directories(lpplib PUBLIC "include/") target_include_directories(lpplib PRIVATE "include/lpp/") target_link_libraries(lpplib PRIVATE utility Threads::Threads) -target_link_libraries(lpplib PRIVATE asn1::generated asn1::helper) +target_link_libraries(lpplib PRIVATE asn1::skeleton asn1::generated::lpp asn1::helper) if (USE_OPENSSL) target_link_libraries(lpplib PRIVATE OpenSSL::SSL) @@ -31,4 +31,7 @@ if (DEBUG_LPP_LIB) target_compile_definitions(lpplib PRIVATE "DEBUG_LPP_LIB=1") endif (DEBUG_LPP_LIB) +# TODO(ewasjon): Remove later when we have fixed all warnings +target_compile_options(lpplib PUBLIC "-Wno-unused-function") + setup_target(lpplib) diff --git a/libs/lpplib/include/lpp/asn_helper.h b/libs/lpplib/include/lpp/asn_helper.h index e9f5d041..e1fc19ff 100644 --- a/libs/lpplib/include/lpp/asn_helper.h +++ b/libs/lpplib/include/lpp/asn_helper.h @@ -58,7 +58,7 @@ MCC* supl_create_mcc(int mcc_value); void supl_fill_mcc(MCC* mcc, int mcc_value); void supl_fill_mnc(MNC* mnc, int mnc_value); ECGI* ecgi_create(long mcc, long mnc, unsigned long long id); -NCGI_r15* ncgi_create(long mcc, long mnc, unsigned long long id); +struct NCGI_r15* ncgi_create(long mcc, long mnc, unsigned long long id); double long_pointer2scaled_double(long* ptr, double def, double arg); double long_pointer(long* ptr, long def); long gnss2long(GNSS_SignalID_t gnss_id); diff --git a/libs/lpplib/include/lpp/asnlib.h b/libs/lpplib/include/lpp/asnlib.h index c08229b9..d2107e7c 100644 --- a/libs/lpplib/include/lpp/asnlib.h +++ b/libs/lpplib/include/lpp/asnlib.h @@ -20,6 +20,7 @@ #include #include #include +#include #pragma GCC diagnostic pop typedef BIT_STRING_t BIT_STRING; diff --git a/libs/lpplib/include/lpp/internal_lpp.h b/libs/lpplib/include/lpp/internal_lpp.h index 514d50cf..b87203bf 100644 --- a/libs/lpplib/include/lpp/internal_lpp.h +++ b/libs/lpplib/include/lpp/internal_lpp.h @@ -5,6 +5,10 @@ #include "cell_id.h" #include "lpp.h" +#include +#include +#include + #define LPP_MSG_MAX_COUNT 10 bool lpp_harvest_transaction(LPP_Transaction* transaction, LPP_Message* lpp); @@ -87,7 +91,7 @@ inline int lpp_get_request_location_interval(LPP_Message* lpp) { LPP_Message* lpp_PLI_location_estimate(LPP_Transaction* transaction, location_information::LocationInformation* li, - bool has_information); + location_information::HaGnssMetrics* metrics); LPP_Message* lpp_PLI_location_measurements(LPP_Transaction* transaction, location_information::ECIDInformation* li, bool has_information); diff --git a/libs/lpplib/include/lpp/location_information.h b/libs/lpplib/include/lpp/location_information.h index ecd166b1..645ac036 100644 --- a/libs/lpplib/include/lpp/location_information.h +++ b/libs/lpplib/include/lpp/location_information.h @@ -5,6 +5,12 @@ namespace location_information { +enum class PLI_Result { + NOT_AVAILABLE, + LI, + LI_AND_METRICS, +}; + template struct Optional { T value; diff --git a/libs/lpplib/include/lpp/lpp.h b/libs/lpplib/include/lpp/lpp.h index 8ce1a0ee..f756c4d6 100644 --- a/libs/lpplib/include/lpp/lpp.h +++ b/libs/lpplib/include/lpp/lpp.h @@ -2,10 +2,13 @@ #include #include #include + #include "asn_helper.h" #include "asnlib.h" #include "location_information.h" +#include + #define AD_REQUEST_INVALID (static_cast(0)) struct LPP_Transaction { @@ -19,8 +22,8 @@ class LPP_Client { public: typedef int32_t AD_Request; typedef void (*AD_Callback)(LPP_Client*, LPP_Transaction*, LPP_Message*, void*); - typedef bool (*PLI_Callback)(location_information::LocationInformation&, - location_information::HaGnssMetrics&, void*); + typedef location_information::PLI_Result (*PLI_Callback)( + location_information::LocationInformation&, location_information::HaGnssMetrics&, void*); typedef bool (*PECID_Callback)(location_information::ECIDInformation&, void*); struct ProvideLI { @@ -37,12 +40,12 @@ class LPP_Client { void set_identity_msisdn(unsigned long long msisdn); void set_identity_imsi(unsigned long long imsi); - void set_identity_ipv4(const std::string& ipv4); + void set_identity_ipv4(std::string const& ipv4); // Open connection to location server. // The 'cell' arguments is required for backwards compatibility and SHOULD // match the cell-id used in the first request_assistance_data call. - bool connect(const std::string& host, int port, bool use_ssl, CellID cell); + bool connect(std::string const& host, int port, bool use_ssl, CellID cell); bool disconnect(); // Run process loop of receive/send LPP messages. @@ -88,7 +91,7 @@ class LPP_Client { bool supl_send_posinit(CellID cell); bool supl_receive(std::vector& messages, int timeout_ms, bool blocking); bool supl_send(LPP_Message* message); - bool supl_send(const std::vector& messages); + bool supl_send(std::vector const& messages); LPP_Transaction new_transaction(); diff --git a/libs/lpplib/src/asn_helper.cpp b/libs/lpplib/src/asn_helper.cpp index 47898ef3..15bf69d6 100644 --- a/libs/lpplib/src/asn_helper.cpp +++ b/libs/lpplib/src/asn_helper.cpp @@ -4,6 +4,8 @@ #include #include +#include + static void BIT_STRING_initialize(BIT_STRING_s* bit_string, size_t bits) { BIT_STRING_free(&asn_DEF_BIT_STRING, bit_string, ASFM_FREE_UNDERLYING_AND_RESET); diff --git a/libs/lpplib/src/assistance_data.cpp b/libs/lpplib/src/assistance_data.cpp index 076df1b4..7ef5c708 100644 --- a/libs/lpplib/src/assistance_data.cpp +++ b/libs/lpplib/src/assistance_data.cpp @@ -1,6 +1,37 @@ #include "internal_lpp.h" #include "lpp.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + static GNSS_ReferenceTimeReq_t* request_reference_time(long gnss_id) { auto element = ALLOC_ZERO(GNSS_ReferenceTimeReq_t); asn_sequence_empty(&element->gnss_TimeReqPrefList.list); diff --git a/libs/lpplib/src/capabilities.cpp b/libs/lpplib/src/capabilities.cpp index 5eb03d6f..a654f41c 100644 --- a/libs/lpplib/src/capabilities.cpp +++ b/libs/lpplib/src/capabilities.cpp @@ -1,6 +1,22 @@ #include "internal_lpp.h" #include "lpp.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + static GNSS_SupportElement* build_support_element(long gnss_id) { auto element = ALLOC_ZERO(GNSS_SupportElement); element->gnss_ID.gnss_id = gnss_id; diff --git a/libs/lpplib/src/internal_lpp.cpp b/libs/lpplib/src/internal_lpp.cpp index 5d963cfb..7c7d0593 100644 --- a/libs/lpplib/src/internal_lpp.cpp +++ b/libs/lpplib/src/internal_lpp.cpp @@ -3,6 +3,22 @@ #include "lpp.h" #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -219,7 +235,7 @@ static long encode_confidence(double confidence) { return value; } -static LocationCoordinates_t* encode_haepue(const location_information::LocationShape& shape) { +static LocationCoordinates_t* encode_haepue(location_information::LocationShape const& shape) { auto location_coordinates = ALLOC_ZERO(LocationCoordinates_t); location_coordinates->present = LocationCoordinates_PR_highAccuracyEllipsoidPointWithUncertaintyEllipse_v1510; @@ -238,7 +254,7 @@ static LocationCoordinates_t* encode_haepue(const location_information::Location return location_coordinates; } -static LocationCoordinates_t* encode_haepaue(const location_information::LocationShape& shape) { +static LocationCoordinates_t* encode_haepaue(location_information::LocationShape const& shape) { auto location_coordinates = ALLOC_ZERO(LocationCoordinates_t); location_coordinates->present = LocationCoordinates_PR_highAccuracyEllipsoidPointWithAltitudeAndUncertaintyEllipsoid_v1510; @@ -264,7 +280,7 @@ static LocationCoordinates_t* encode_haepaue(const location_information::Locatio } static LocationCoordinates_t* -lpp_LocationCoordinates(const location_information::LocationShape& shape) { +lpp_LocationCoordinates(location_information::LocationShape const& shape) { using namespace location_information; switch (shape.kind) { @@ -300,7 +316,7 @@ static long encode_bearing(double bearing) { return value; } -static Velocity_t* lpp_HorizontalVelocity(const location_information::VelocityShape& shape) { +static Velocity_t* lpp_HorizontalVelocity(location_information::VelocityShape const& shape) { auto element = ALLOC_ZERO(Velocity_t); element->present = Velocity_PR_horizontalVelocity; @@ -311,7 +327,7 @@ static Velocity_t* lpp_HorizontalVelocity(const location_information::VelocitySh } static Velocity_t* -lpp_HorizontalVelocityWithUncertainty(const location_information::VelocityShape& shape) { +lpp_HorizontalVelocityWithUncertainty(location_information::VelocityShape const& shape) { auto element = ALLOC_ZERO(Velocity_t); element->present = Velocity_PR_horizontalVelocityWithUncertainty; @@ -323,7 +339,7 @@ lpp_HorizontalVelocityWithUncertainty(const location_information::VelocityShape& } static Velocity_t* -lpp_HorizontalWithVerticalVelocity(const location_information::VelocityShape& shape) { +lpp_HorizontalWithVerticalVelocity(location_information::VelocityShape const& shape) { using namespace location_information; auto element = ALLOC_ZERO(Velocity_t); @@ -340,7 +356,7 @@ lpp_HorizontalWithVerticalVelocity(const location_information::VelocityShape& sh } static Velocity_t* -lpp_HorizontalWithVerticalVelocityAndUncertainty(const location_information::VelocityShape& shape) { +lpp_HorizontalWithVerticalVelocityAndUncertainty(location_information::VelocityShape const& shape) { using namespace location_information; auto element = ALLOC_ZERO(Velocity_t); @@ -359,7 +375,7 @@ lpp_HorizontalWithVerticalVelocityAndUncertainty(const location_information::Vel return element; } -static Velocity_t* lpp_Velocity(const location_information::VelocityShape& shape) { +static Velocity_t* lpp_Velocity(location_information::VelocityShape const& shape) { using namespace location_information; switch (shape.kind) { @@ -375,7 +391,7 @@ static Velocity_t* lpp_Velocity(const location_information::VelocityShape& shape } static CommonIEsProvideLocationInformation_t::CommonIEsProvideLocationInformation__ext2* -lpp_PLI_CIE_ext2(const location_information::LocationInformation& location) { +lpp_PLI_CIE_ext2(location_information::LocationInformation const& location) { auto ext2 = ALLOC_ZERO( CommonIEsProvideLocationInformation_t::CommonIEsProvideLocationInformation__ext2); ext2->locationSource_r13 = @@ -392,21 +408,23 @@ lpp_PLI_CIE_ext2(const location_information::LocationInformation& location) { } static CommonIEsProvideLocationInformation_t* lpp_PLI_CommonIEsProvideLocationInformation( - const location_information::LocationInformation& location, bool has_information) { + location_information::LocationInformation const* location, + location_information::HaGnssMetrics const* metrics +) { auto CIE_PLI = ALLOC_ZERO(CommonIEsProvideLocationInformation_t); - if (has_information) { - if (location.location.has_value()) { - CIE_PLI->locationEstimate = lpp_LocationCoordinates(location.location.const_value()); + if (location) { + if (location->location.has_value()) { + CIE_PLI->locationEstimate = lpp_LocationCoordinates(location->location.const_value()); } - if (location.velocity.has_value()) { - CIE_PLI->velocityEstimate = lpp_Velocity(location.velocity.const_value()); + if (location->velocity.has_value()) { + CIE_PLI->velocityEstimate = lpp_Velocity(location->velocity.const_value()); } - CIE_PLI->ext2 = lpp_PLI_CIE_ext2(location); + CIE_PLI->ext2 = lpp_PLI_CIE_ext2(*location); } else { - auto LE = ALLOC_ZERO(LocationError_t); + auto LE = ALLOC_ZERO(LocationError); LE->locationfailurecause = LocationFailureCause_periodicLocationMeasurementsNotAvailable; CIE_PLI->locationError = LE; } @@ -414,8 +432,47 @@ static CommonIEsProvideLocationInformation_t* lpp_PLI_CommonIEsProvideLocationIn return CIE_PLI; } +static HA_GNSS_Metrics_r17* +lpp_ha_GNSS_Metrics_r17(location_information::HaGnssMetrics const& metrics) { + auto element = ALLOC_ZERO(HA_GNSS_Metrics_r17); + element->nrOfUsedSatellites_r17 = metrics.number_of_satellites; + + switch (metrics.fix_quality) { + case location_information::FixQuality::RTK_FIX: { + element->fixType_r17 = ALLOC_ZERO(long); + *element->fixType_r17 = HA_GNSS_Metrics_r17__fixType_r17_carrier_phase_fix; + } break; + case location_information::FixQuality::RTK_FLOAT: { + element->fixType_r17 = ALLOC_ZERO(long); + *element->fixType_r17 = HA_GNSS_Metrics_r17__fixType_r17_carrier_phase_float; + } break; + default: break; + } + + if (metrics.age_of_corrections.has_value() && metrics.age_of_corrections.const_value() >= 0 && + metrics.age_of_corrections.const_value() < 1000.0) { + element->age_r17 = ALLOC_ZERO(long); + *element->age_r17 = static_cast(metrics.age_of_corrections.const_value() / 0.1); + } + + if (metrics.hdop.has_value() && metrics.hdop.const_value() >= 0.1 && + metrics.hdop.const_value() < 2560) { + element->hdopi_r17 = ALLOC_ZERO(long); + *element->hdopi_r17 = static_cast(metrics.hdop.const_value() / 0.1); + } + + if (metrics.pdop.has_value() && metrics.pdop.const_value() >= 0.1 && + metrics.pdop.const_value() < 2560) { + element->pdopi_r17 = ALLOC_ZERO(long); + *element->pdopi_r17 = static_cast(metrics.pdop.const_value() / 0.1); + } + + return element; +} + static GNSS_LocationInformation* -lpp_LocationInformation(const location_information::LocationInformation& location) { +lpp_LocationInformation(location_information::LocationInformation const& location, + location_information::HaGnssMetrics const* metrics) { auto location_information = ALLOC_ZERO(GNSS_LocationInformation); auto& mrt = location_information->measurementReferenceTime; @@ -438,23 +495,32 @@ lpp_LocationInformation(const location_information::LocationInformation& locatio .set(GNSS_ID_Bitmap__gnss_ids_galileo) .into_bit_string(6, &location_information->agnss_List.gnss_ids); + if (metrics) { + auto ha_GNSS_Metrics_r17 = lpp_ha_GNSS_Metrics_r17(*metrics); + if (ha_GNSS_Metrics_r17) { + auto ext1 = ALLOC_ZERO(GNSS_LocationInformation::GNSS_LocationInformation__ext1); + ext1->ha_GNSS_Metrics_r17 = ha_GNSS_Metrics_r17; + location_information->ext1 = ext1; + } + } + return location_information; } static A_GNSS_ProvideLocationInformation* -lpp_PLI_A_GNSS_ProvideLocationInformation(const location_information::LocationInformation& location, - bool has_information) { - if (!has_information) return nullptr; +lpp_PLI_A_GNSS_ProvideLocationInformation(location_information::LocationInformation const* location, + location_information::HaGnssMetrics const* metrics) { + if (!location) return nullptr; auto provide_location_information = ALLOC_ZERO(A_GNSS_ProvideLocationInformation); - provide_location_information->gnss_LocationInformation = lpp_LocationInformation(location); - + provide_location_information->gnss_LocationInformation = + lpp_LocationInformation(*location, metrics); return provide_location_information; } LPP_Message* lpp_PLI_location_estimate(LPP_Transaction* transaction, location_information::LocationInformation* li, - bool has_information) { + location_information::HaGnssMetrics* metrics) { // // Init body // @@ -468,10 +534,9 @@ LPP_Message* lpp_PLI_location_estimate(LPP_Transaction* &body->choice.c1.choice.provideLocationInformation.criticalExtensions.choice.c1.choice .provideLocationInformation_r9; - auto CIE_PLI = lpp_PLI_CommonIEsProvideLocationInformation(*li, has_information); + auto CIE_PLI = lpp_PLI_CommonIEsProvideLocationInformation(li, metrics); PLI->commonIEsProvideLocationInformation = CIE_PLI; - PLI->a_gnss_ProvideLocationInformation = - lpp_PLI_A_GNSS_ProvideLocationInformation(*li, has_information); + PLI->a_gnss_ProvideLocationInformation = lpp_PLI_A_GNSS_ProvideLocationInformation(li, metrics); return lpp; } @@ -560,4 +625,4 @@ LPP_Message* lpp_PLI_location_measurements(LPP_Transaction* lpp_PLI_get_ECID_ProvideLocationInformation(ecid, has_information); return lpp; -} \ No newline at end of file +} diff --git a/libs/lpplib/src/lpp.cpp b/libs/lpplib/src/lpp.cpp index f2390a91..c4b901e6 100644 --- a/libs/lpplib/src/lpp.cpp +++ b/libs/lpplib/src/lpp.cpp @@ -2,7 +2,10 @@ #include "internal_lpp.h" #include "supl.h" +#include #include +#include +#include #include LPP_Client::LPP_Client(bool segmentation) { @@ -39,7 +42,7 @@ void LPP_Client::set_identity_imsi(unsigned long long imsi) { mSUPL->set_session(SUPL_Session::imsi(0, imsi, mSuplIdentityFix)); } -void LPP_Client::set_identity_ipv4(const std::string& ipv4) { +void LPP_Client::set_identity_ipv4(std::string const& ipv4) { if (connected) return; mSUPL->set_session(SUPL_Session::ip_address(0, ipv4)); } @@ -56,8 +59,8 @@ bool LPP_Client::supl_start(CellID cell) { { // LPP Version auto lpp_pos_protocol = ALLOC_ZERO(PosProtocolVersion3GPP_t); - lpp_pos_protocol->majorVersionField = 16; - lpp_pos_protocol->technicalVersionField = 4; + lpp_pos_protocol->majorVersionField = 18; + lpp_pos_protocol->technicalVersionField = 1; lpp_pos_protocol->editorialVersionField = 0; auto pos_protocol_ext = ALLOC_ZERO(Ver2_PosProtocol_extension); @@ -108,7 +111,6 @@ bool LPP_Client::supl_start(CellID cell) { lte_cell->rsrpResult = OPTIONAL_MISSING; lte_cell->rsrqResult = OPTIONAL_MISSING; lte_cell->measResultListEUTRA = OPTIONAL_MISSING; - } return mSUPL->send(message); @@ -140,8 +142,8 @@ bool LPP_Client::supl_send_posinit(CellID cell) { { // LPP Version auto lpp_pos_protocol = ALLOC_ZERO(PosProtocolVersion3GPP_t); - lpp_pos_protocol->majorVersionField = 16; - lpp_pos_protocol->technicalVersionField = 4; + lpp_pos_protocol->majorVersionField = 18; + lpp_pos_protocol->technicalVersionField = 1; lpp_pos_protocol->editorialVersionField = 0; auto pos_protocol_ext = ALLOC_ZERO(Ver2_PosProtocol_extension); @@ -214,7 +216,7 @@ bool LPP_Client::supl_send(LPP_Message* message) { return supl_send(messages); } -bool LPP_Client::supl_send(const std::vector& messages) { +bool LPP_Client::supl_send(std::vector const& messages) { auto message = mSUPL->create_message(UlpMessage_PR_msSUPLPOS); { @@ -248,7 +250,7 @@ LPP_Message* LPP_Client::decode(OCTET_STRING* data) { return lpp_decode(data); } -bool LPP_Client::connect(const std::string& host, int port, bool use_ssl, CellID supl_cell) { +bool LPP_Client::connect(std::string const& host, int port, bool use_ssl, CellID supl_cell) { #if DEBUG_LPP_LIB printf("DEBUG: Connecting to SUPL server %s:%d\n", host.c_str(), port); #endif @@ -363,7 +365,8 @@ bool LPP_Client::process() { std::chrono::seconds update_interval{}; if (mLocationUpdateUnlocked) { - update_interval = duration_cast(std::chrono::milliseconds(provide_li.interval)); + update_interval = + duration_cast(std::chrono::milliseconds(provide_li.interval)); } else { update_interval = std::chrono::seconds(1); } @@ -599,12 +602,20 @@ bool LPP_Client::handle_provide_location_information(LPP_Client::ProvideLI* pli) if (pli->type == LocationInformationType_locationEstimateRequired) { LocationInformation li{}; HaGnssMetrics metrics{}; - bool has_information = false; - if (pli_callback && pli_callback(li, metrics, pli_userdata)) { - has_information = true; + + LocationInformation* li_ptr = nullptr; + HaGnssMetrics* metrics_ptr = nullptr; + if (pli_callback) { + auto result = pli_callback(li, metrics, pli_userdata); + if (result == PLI_Result::LI) { + li_ptr = &li; + } else if (result == PLI_Result::LI_AND_METRICS) { + li_ptr = &li; + metrics_ptr = &metrics; + } } - message = lpp_PLI_location_estimate(&pli->transaction, &li, has_information); + message = lpp_PLI_location_estimate(&pli->transaction, li_ptr, metrics_ptr); } else if (pli->type == LocationInformationType_locationMeasurementsRequired) { ECIDInformation ecid{}; bool has_information = false; @@ -618,7 +629,9 @@ bool LPP_Client::handle_provide_location_information(LPP_Client::ProvideLI* pli) } assert(message); - if (!supl_send(message)) { + auto result = supl_send(message); + lpp_destroy(message); + if (!result) { printf("ERROR: Failed to send LPP message\n"); return false; } diff --git a/libs/lpplib/src/supl.cpp b/libs/lpplib/src/supl.cpp index d794ca0c..764cf32d 100644 --- a/libs/lpplib/src/supl.cpp +++ b/libs/lpplib/src/supl.cpp @@ -2,6 +2,10 @@ #include +#include +#include +#include + template <> void ASN_Deleter::operator()(ULP_PDU* ptr) { if (ptr) { diff --git a/libs/supl/CMakeLists.txt b/libs/supl/CMakeLists.txt index ec7f7137..27932d78 100644 --- a/libs/supl/CMakeLists.txt +++ b/libs/supl/CMakeLists.txt @@ -8,7 +8,7 @@ add_library(supl ) target_include_directories(supl PUBLIC "include/") target_link_libraries(supl PRIVATE Threads::Threads atomic) -target_link_libraries(supl PRIVATE asn1::generated asn1::helper) +target_link_libraries(supl PRIVATE asn1::generated::supl asn1::helper) target_link_libraries(supl PRIVATE loglet) target_compile_options(supl PUBLIC "-Wno-unused-private-field") diff --git a/receiver/nmea/CMakeLists.txt b/receiver/nmea/CMakeLists.txt index aebac2c2..1751b98e 100644 --- a/receiver/nmea/CMakeLists.txt +++ b/receiver/nmea/CMakeLists.txt @@ -17,14 +17,10 @@ target_link_libraries(receiver_nmea PRIVATE utility) if(${RECEIVER_NMEA_THREADED}) target_compile_definitions(receiver_nmea PUBLIC RECEIVER_NMEA_THREADED=1) -else() -target_compile_definitions(receiver_nmea PUBLIC RECEIVER_NMEA_THREADED=0) endif() if(${RECEIVER_NMEA_DEBUG}) target_compile_definitions(receiver_nmea PUBLIC RECEIVER_NMEA_DEBUG=1) -else() -target_compile_definitions(receiver_nmea PUBLIC RECEIVER_NMEA_DEBUG=0) endif() setup_target(receiver_nmea)